(this["webpackJsonpexclusive-platform"]=this["webpackJsonpexclusive-platform"]||[]).push([[8],{1:function(e,t,a){"use strict";a.d(t,"N",(function(){return n})),a.d(t,"me",(function(){return o})),a.d(t,"lc",(function(){return i})),a.d(t,"L",(function(){return r})),a.d(t,"k",(function(){return s})),a.d(t,"Rb",(function(){return l})),a.d(t,"K",(function(){return c})),a.d(t,"R",(function(){return d})),a.d(t,"P",(function(){return m})),a.d(t,"m",(function(){return p})),a.d(t,"M",(function(){return u})),a.d(t,"Lb",(function(){return g})),a.d(t,"o",(function(){return h})),a.d(t,"E",(function(){return b})),a.d(t,"rb",(function(){return f})),a.d(t,"Z",(function(){return _})),a.d(t,"Bb",(function(){return y})),a.d(t,"Ab",(function(){return E})),a.d(t,"v",(function(){return v})),a.d(t,"Ec",(function(){return w})),a.d(t,"Fb",(function(){return x})),a.d(t,"w",(function(){return k})),a.d(t,"bc",(function(){return N})),a.d(t,"Sc",(function(){return S})),a.d(t,"ac",(function(){return C})),a.d(t,"cc",(function(){return T})),a.d(t,"X",(function(){return O})),a.d(t,"fd",(function(){return P})),a.d(t,"yc",(function(){return I})),a.d(t,"Ac",(function(){return A})),a.d(t,"wd",(function(){return M})),a.d(t,"u",(function(){return j})),a.d(t,"t",(function(){return F})),a.d(t,"Db",(function(){return L})),a.d(t,"Cb",(function(){return D})),a.d(t,"zb",(function(){return $})),a.d(t,"y",(function(){return R})),a.d(t,"Uc",(function(){return B})),a.d(t,"id",(function(){return U})),a.d(t,"jb",(function(){return G})),a.d(t,"pd",(function(){return z})),a.d(t,"cb",(function(){return W})),a.d(t,"sb",(function(){return H})),a.d(t,"Hc",(function(){return q})),a.d(t,"kb",(function(){return V})),a.d(t,"a",(function(){return Y})),a.d(t,"tb",(function(){return K})),a.d(t,"W",(function(){return J})),a.d(t,"O",(function(){return X})),a.d(t,"db",(function(){return Q})),a.d(t,"Q",(function(){return Z})),a.d(t,"ub",(function(){return ee})),a.d(t,"gc",(function(){return te})),a.d(t,"fc",(function(){return ae})),a.d(t,"md",(function(){return ne})),a.d(t,"yb",(function(){return oe})),a.d(t,"x",(function(){return ie})),a.d(t,"F",(function(){return re})),a.d(t,"H",(function(){return se})),a.d(t,"J",(function(){return le})),a.d(t,"Jd",(function(){return ce})),a.d(t,"Id",(function(){return de})),a.d(t,"ld",(function(){return me})),a.d(t,"l",(function(){return pe})),a.d(t,"Od",(function(){return ue})),a.d(t,"hc",(function(){return ge})),a.d(t,"Jb",(function(){return he})),a.d(t,"Pc",(function(){return be})),a.d(t,"Qc",(function(){return fe})),a.d(t,"n",(function(){return _e})),a.d(t,"Ob",(function(){return ye})),a.d(t,"qc",(function(){return Ee})),a.d(t,"Mb",(function(){return ve})),a.d(t,"d",(function(){return we})),a.d(t,"Ic",(function(){return xe})),a.d(t,"fe",(function(){return ke})),a.d(t,"ge",(function(){return Ne})),a.d(t,"je",(function(){return Se})),a.d(t,"Lc",(function(){return Ce})),a.d(t,"Rc",(function(){return Te})),a.d(t,"Qb",(function(){return Oe})),a.d(t,"Pb",(function(){return Pe})),a.d(t,"ud",(function(){return Ie})),a.d(t,"nd",(function(){return Ae})),a.d(t,"S",(function(){return Me})),a.d(t,"c",(function(){return je})),a.d(t,"Zc",(function(){return Fe})),a.d(t,"h",(function(){return Le})),a.d(t,"U",(function(){return De})),a.d(t,"f",(function(){return $e})),a.d(t,"e",(function(){return Re})),a.d(t,"V",(function(){return Be})),a.d(t,"Kd",(function(){return Ue})),a.d(t,"g",(function(){return Ge})),a.d(t,"Ld",(function(){return ze})),a.d(t,"rc",(function(){return We})),a.d(t,"Sb",(function(){return He})),a.d(t,"Fc",(function(){return qe})),a.d(t,"tc",(function(){return Ve})),a.d(t,"sc",(function(){return Ye})),a.d(t,"od",(function(){return Ke})),a.d(t,"D",(function(){return Je})),a.d(t,"he",(function(){return Xe})),a.d(t,"G",(function(){return Qe})),a.d(t,"I",(function(){return Ze})),a.d(t,"Eb",(function(){return et})),a.d(t,"xc",(function(){return tt})),a.d(t,"dc",(function(){return at})),a.d(t,"vc",(function(){return nt})),a.d(t,"zc",(function(){return ot})),a.d(t,"Tb",(function(){return it})),a.d(t,"uc",(function(){return rt})),a.d(t,"Ed",(function(){return st})),a.d(t,"C",(function(){return lt})),a.d(t,"mc",(function(){return ct})),a.d(t,"ad",(function(){return dt})),a.d(t,"kd",(function(){return mt})),a.d(t,"Zb",(function(){return pt})),a.d(t,"Gd",(function(){return ut})),a.d(t,"Fd",(function(){return gt})),a.d(t,"ce",(function(){return ht})),a.d(t,"Ub",(function(){return bt})),a.d(t,"jd",(function(){return ft})),a.d(t,"Yd",(function(){return _t})),a.d(t,"zd",(function(){return yt})),a.d(t,"ee",(function(){return Et})),a.d(t,"Nc",(function(){return vt})),a.d(t,"de",(function(){return wt})),a.d(t,"nc",(function(){return xt})),a.d(t,"A",(function(){return kt})),a.d(t,"z",(function(){return Nt})),a.d(t,"oc",(function(){return St})),a.d(t,"Oc",(function(){return Ct})),a.d(t,"Wb",(function(){return Tt})),a.d(t,"wb",(function(){return Ot})),a.d(t,"Ib",(function(){return Pt})),a.d(t,"ie",(function(){return It})),a.d(t,"lb",(function(){return At})),a.d(t,"Md",(function(){return Mt})),a.d(t,"Gb",(function(){return jt})),a.d(t,"Jc",(function(){return Ft})),a.d(t,"xb",(function(){return Lt})),a.d(t,"ic",(function(){return Dt})),a.d(t,"Kb",(function(){return $t})),a.d(t,"Bc",(function(){return Rt})),a.d(t,"s",(function(){return Bt})),a.d(t,"ke",(function(){return Ut})),a.d(t,"p",(function(){return Gt})),a.d(t,"q",(function(){return zt})),a.d(t,"le",(function(){return Wt})),a.d(t,"ae",(function(){return Ht})),a.d(t,"r",(function(){return qt})),a.d(t,"be",(function(){return Vt})),a.d(t,"Vc",(function(){return Yt})),a.d(t,"Xb",(function(){return Kt})),a.d(t,"Yc",(function(){return Jt})),a.d(t,"Xc",(function(){return Xt})),a.d(t,"Wc",(function(){return Qt})),a.d(t,"Xd",(function(){return Zt})),a.d(t,"rd",(function(){return ea})),a.d(t,"td",(function(){return ta})),a.d(t,"ed",(function(){return aa})),a.d(t,"Hb",(function(){return na})),a.d(t,"vb",(function(){return oa})),a.d(t,"ab",(function(){return ia})),a.d(t,"bb",(function(){return ra})),a.d(t,"cd",(function(){return sa})),a.d(t,"pc",(function(){return la})),a.d(t,"sd",(function(){return ca})),a.d(t,"dd",(function(){return da})),a.d(t,"Y",(function(){return ma})),a.d(t,"Pd",(function(){return pa})),a.d(t,"qd",(function(){return ua})),a.d(t,"bd",(function(){return ga})),a.d(t,"Dc",(function(){return ha})),a.d(t,"gd",(function(){return ba})),a.d(t,"qb",(function(){return fa})),a.d(t,"pb",(function(){return _a})),a.d(t,"Zd",(function(){return ya})),a.d(t,"Kc",(function(){return Ea})),a.d(t,"gb",(function(){return va})),a.d(t,"hb",(function(){return wa})),a.d(t,"wc",(function(){return xa})),a.d(t,"ib",(function(){return ka})),a.d(t,"eb",(function(){return Na})),a.d(t,"fb",(function(){return Sa})),a.d(t,"Yb",(function(){return Ca})),a.d(t,"Tc",(function(){return Ta})),a.d(t,"Wd",(function(){return Oa})),a.d(t,"Bd",(function(){return Pa})),a.d(t,"kc",(function(){return Ia})),a.d(t,"jc",(function(){return Aa})),a.d(t,"Dd",(function(){return Ma})),a.d(t,"Ad",(function(){return ja})),a.d(t,"Td",(function(){return Fa})),a.d(t,"Cd",(function(){return La})),a.d(t,"vd",(function(){return Da})),a.d(t,"Ud",(function(){return $a})),a.d(t,"Vd",(function(){return Ra})),a.d(t,"Cc",(function(){return Ba})),a.d(t,"i",(function(){return Ua})),a.d(t,"Nb",(function(){return Ga})),a.d(t,"Gc",(function(){return za})),a.d(t,"T",(function(){return Wa})),a.d(t,"b",(function(){return Ha})),a.d(t,"ec",(function(){return qa})),a.d(t,"xd",(function(){return Va})),a.d(t,"B",(function(){return Ya})),a.d(t,"Hd",(function(){return Ka})),a.d(t,"j",(function(){return Ja})),a.d(t,"Vb",(function(){return Xa})),a.d(t,"hd",(function(){return Qa})),a.d(t,"Mc",(function(){return Za})),a.d(t,"Sd",(function(){return en})),a.d(t,"yd",(function(){return tn})),a.d(t,"Nd",(function(){return an})),a.d(t,"ob",(function(){return nn})),a.d(t,"nb",(function(){return on})),a.d(t,"mb",(function(){return rn})),a.d(t,"Rd",(function(){return sn})),a.d(t,"Qd",(function(){return ln}));const n="GET_ERRORS",o="USER_LOADING",i="SET_CURRENT_USER",r="GET_BLOG_DATA",s="ADD_NEW_BLOG",l="RESET_CURRENT_PAGE",c="GET_ADMIN_USER",d="GET_SUBSCRIBERS",m="GET_PRODUCTS",p="ADD_NEW_PRODUCT",u="GET_CART",g="REMOVE_FROM_CART",h="ADD_TO_CART",b="EMPTY_CART",f="LOAD_APP_SETTINGS",_="IS_LOADING",y="PAYMENT_PROCESSING",E="PAYMENT_COMPLETED",v="CHAT_USER_LIST",w="SET_MESSAGES",x="PROFILE_PHOTO_UPLOADING",k="CHAT_USER_PROFILE_INFO",N="SET_ALL_USERS",S="SET_TRANSACTION_AMOUNT",C="SET_ALL_TRANSACTION_AMOUNT",T="SET_ALL_USERS_TRANSACTIONS",O="IS_BLUR_LOADING",P="STOP_IS_BLUR_LOADING",I="SET_IS_PROFILE_READY",A="SET_IS_USER_LIST_LOADING",M="UPDATE_BLOG_DATA",j="BLOG_UNLOCK_PAYMENT_PROCESSING",F="BLOG_UNLOCK_PAYMENT_COMPLETED",L="PHOTO_ID_UPLOADING",D="PHOTO_ID_UPLOADED",$="OPEN_PHOTO_ID_MODAL",R="CLOSE_PHOTO_ID_MODAL",B="SET_UNREAD_COUNT",U="TIPS_LIST",G="IS_PRODUCT_LIST_LOADING",z="TOGGLE_SIDEBAR",W="IS_MORE_MESSAGE_LOADING",H="LOAD_MORE_MESSAGE",q="SET_PRODUCT",V="IS_PRODUCT_LOADING",Y="ADDRESS_LIST",K="LOAD_SINGLE_ADDRESS",J="IS_ADDRESS_LIST_LOADING",X="GET_ORDERS",Q="IS_ORDER_LIST_LOADING",Z="GET_SINGLE_ORDER",ee="LOAD_THEME_3_SETTINGS",te="SET_CHAT_SELECTED_ID",ae="SET_CHAT_MODEL_ID",ne="TOGGLE_NEW_PAYMENT_MODAL",oe="OPEN_COPY_TO_CLIPBOARD_TOAST",ie="CLOSE_COPY_TO_CLIPBOARD_TOAST",re="GALLERY_ADD_FILE",se="GALLERY_REMOVE_FILE",le="GALLERY_RESET",ce="UPDATE_GALLERY_PROGRESS",de="UPDATE_GALLERY_INDEX",me="TOGGLE_MISCELLANEOUS_POP_UP",pe="ADD_NEW_MESSAGE_IN_END",ue="UPDATE_MESSAGE",ge="SET_CHAT_TIMER",he="REMOVE_CHAT_TIMER",be="SET_SOCKET_CONNECTED",fe="SET_SOCKET_DISCONNECTED",_e="ADD_PAY_PER_MESSAGE_CREDIT",ye="REMOVE_PAY_PER_MESSAGE_CREDIT",Ee="SET_GROUP_LIVE_STREAM",ve="REMOVE_GROUP_LIVE_STREAM",we="ADD_GROUP_MESSAGE",xe="SET_PROMOTION",ke="UPDATE_USER_OPT_IN_DETAIL",Ne="UPDATE_USER_OPT_IN_EMAIL_STATUS",Se="UPDATE_USER_SUBSCRIPTION_STATUS",Ce="SET_RESUBSCRIPTION_OFFER",Te="SET_SWEET_ALERT",Oe="REMOVE_SWEET_ALERT",Pe="REMOVE_RESUBSCRIPTION_OFFER",Ie="UNSET_NOTIFICATION_POPUP",Ae="TOGGLE_NOTIFICATION_POPUP",Me="HIDE_MIGRATION_SUBSCRIPTION_POP",je="ADD_CUSTOM_MENU_LINKS",Fe="SET_USER_SUBSCRIPTION_TO_0",Le="ADD_INFLUENCER_HELP_POPUP",De="INFLUENCER_HELP_POPUP_HIDE",$e="ADD_INFLUENCER_HELP_LIST",Re="ADD_INFLUENCER_HELP_DETAIL",Be="INFLUENCER_HELP_RESUME_API_CALL",Ue="UPDATE_INFLUENCER_HELP_LIST",Ge="ADD_INFLUENCER_HELP_LIST_NOTIFICATION",ze="UPDATE_INFLUENCER_HELP_LIST_NOTIFICATION",We="SET_HELP_NOTIFICATION_UNREAD_COUNT",He="RESET_HELP_NOTIFICATION",qe="SET_NOTIFICATION_FILTER",Ve="SET_HELP_TAG_FILTER",Ye="SET_HELP_TAGS",Ke="TOGGLE_PAYMENT_MODAL",Je="DISPLAY_MST_TIME_FOR_NOTIFICATION",Xe="UPDATE_USER_REBILL_FAILED_STATUS",Qe="GALLERY_ADD_FILE_IN_PREVIEW",Ze="GALLERY_REMOVE_FILE_IN_PREVIEW",et="PREVIEW_GALLERY_RESET",tt="SET_IS_PREVIEW_MODE_ENABLE",at="SET_BLOG_IN_PROCESSING",nt="SET_IS_HELP_ENABLE",ot="SET_IS_PUBLIC_POST_ENABLE",it="RESET_PROMOTION",rt="SET_IS_BLOG_COMMENTS_ENABLE",st="UPDATE_FEED_LIKE_COUNT",lt="DELETE_MESSAGE",ct="SET_DEFAULT_PAYMENT_METHOD",dt="SET_WALLET_AMOUNT",mt="TOGGLE_CHAT_TIP_POPUP",pt="SELECTED_FEED_TAG",ut="UPDATE_FEED_TAG_SETTINGS",gt="UPDATE_FEED_TAG_LIST",ht="UPDATE_USER_LAST_SEEN",bt="RESET_REBILL_NOTIFICATION_POPUP",ft="TOGGLE_ANNOUNCEMENT_BANNER",_t="UPDATE_USER_AMOUNT_SPENT",yt="UPDATE_CHAT_LIST_OPTIONS",Et="UPDATE_USER_NICKNAME",vt="SET_ROTATE_IMAGE",wt="UPDATE_USER_LIST",xt="SET_FEED_TAG",kt="CLOSE_RESUBSCRIPTION_BANNER",Nt="CLOSE_PROMOTION_BANNER",St="SET_FEED_TAG_LIST",Ct="SET_SHOW_MEDIA_COUNT_IN_EXCLUSIVE_CONTENT",Tt="RESET_UNREAD_COUNT",Ot="LOGOUT_USER_LOADER",Pt="REMOVE_BLOG_DATA",It="UPDATE_USER_SUBSCRIPTION_PAYMENT_GATEWAY",At="IS_PROGRESSIVE_WEB_APP_POPUP_VISIBLE",Mt="UPDATE_LINK_PAGE_DATA",jt="PROGRESSIVE_WEB_APP_POPUP_SHOW_AGAIN",Ft="SET_PUSH_NOTIFICATION_PROMPT",Lt="ONE_SIGNAL_INITIALIZED",Dt="SET_CONFIRM_SWEET_ALERT",$t="REMOVE_CONFIRM_SWEET_ALERT",Rt="SET_LOADER",Bt="ADD_USER_INFLUENCER_HELP_POPUP",Ut="USER_INFLUENCER_HELP_POPUP_HIDE",Gt="ADD_USER_INFLUENCER_HELP_DETAIL",zt="ADD_USER_INFLUENCER_HELP_LIST",Wt="USER_INFLUENCER_HELP_RESUME_API_CALL",Ht="UPDATE_USER_INFLUENCER_HELP_LIST",qt="ADD_USER_INFLUENCER_HELP_LIST_NOTIFICATION",Vt="UPDATE_USER_INFLUENCER_HELP_LIST_NOTIFICATION",Yt="SET_USER_HELP_NOTIFICATION_UNREAD_COUNT",Kt="RESET_USER_HELP_NOTIFICATION",Jt="SET_USER_NOTIFICATION_FILTER",Xt="SET_USER_HELP_TAG_FILTER",Qt="SET_USER_HELP_TAGS",Zt="UPDATE_UNREAD_COUNT",ea="UNIVERSAL_LOGIN_MERGE_WEBSITE_LIST",ta="UNIVERSAL_LOGIN_WEBSITE_LIST",aa="SHOW_UNIVERSAL_LOGIN_ADD_ACCOUNT_POPUP",na="REGISTER_USER_INFO",oa="LOGIN_USER_INFO",ia="IS_LOADING_LOGIN_BUTTON",ra="IS_LOADING_SIGN_UP_BUTTON",sa="SHOW_FORGOT_PASSWORD_POPUP",la="SET_FORGOT_PASSWORD_EMAIL",ca="UNIVERSAL_LOGIN_OLD_USER_WEBSITE_LIST",da="SHOW_OLD_USER_MERGE_ACCOUNT_POPUP",ma="IS_ENABLED_UNIVERSAL_LOGIN_SETTING",pa="UPDATE_PAYMENT_PROCESSING_STATUS",ua="UNIVERSAL_LOGIN_DIFFERENT_PASSWORD_SITE_LIST",ga="SHOW_DIFFERENT_PASSWORD_SITE_POPUP",ha="SET_MERGE_OLD_USER",ba="SUBSCRIPTION_EMAIL_NOTIFICATION_SETTINGS",fa="IS_SUBSCRIPTION_EMAIL_NOTIFICATION_SETTINGS_LOADING",_a="IS_SUBSCRIPTION_EMAIL_NOTIFICATION_BUTTON_LOADING",ya="UPDATE_USER_EMAIL_AFTER_VERIFIED",Ea="SET_RESET_PASSWORD_PAGE_LOADER",va="IS_PAGINATION_ON_EXCLUSIVE_CONTENT_BUTTON_LOADING",wa="IS_PAGINATION_ON_EXCLUSIVE_CONTENT_ENABLED",xa="SET_IS_PAGINATION_ON_EXCLUSIVE_CONTENT_ENABLED",ka="IS_PAGINATION_ON_EXCLUSIVE_CONTENT_SETTING_LOADING",Na="IS_PAGE_DATA_LOADING",Sa="IS_PAGE_DATA_SAVING",Ca="RESTORE_FIRST_PAGE_BLOGS",Ta="SET_UNIVERSAL_LOGIN_DIFFERENT_PASSWORD_POPUP_VISIBILITY",Oa="UPDATE_TIPS_PAGE_DATA",Pa="UPDATE_COUPON_LOADING",Ia="SET_COUPON_DETAILS",Aa="SET_COUPON_CODE",Ma="UPDATE_COUPON_STATUS",ja="UPDATE_COUPON_LIST",Fa="UPDATE_SINGLE_COUPON_IN_LIST",La="UPDATE_COUPON_REPORT_PAGINATION",Da="UPDATE_APP_SETTING_SINGLE_KEY",$a="UPDATE_THEME_2_BANNER_SETTINGS",Ra="UPDATE_THEME_2_BANNER_SETTINGS_AFTER_FILE_UPLOAD",Ba="SET_MEDIA",Ua="ADD_MEDIA",Ga="REMOVE_MEDIA",za="SET_PROCESSED_MEDIA",Wa="INC_MEDIA_COUNT",Ha="ADD_CATEGORY",qa="SET_CATEGORY",Va="UPDATE_CATEGORY",Ya="DELETE_CATEGORY",Ka="UPDATE_FILTER",Ja="ADD_MEDIA_ON_SCROLL",Xa="RESET_STATE",Qa="SWITCH_GALLERY",Za="SET_ROTATE_CHAT_IMAGE",en="UPDATE_SELECTED_CATEGORY",tn="UPDATE_CATEGORY_COUNT",an="UPDATE_MEDIA_COUNT_IN_CATEGORY",nn="IS_REDIS_CACHE_SETTING_LOADING",on="IS_REDIS_CACHE_ENABLED",rn="IS_REDIS_CACHE_BUTTON_LOADING",sn="UPDATE_PROCESSING_INDEX",ln="UPDATE_PROCESSED_INDEX"},106:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(8),r=a(29),s=a(14),l=a(2),c=a.n(l),d=a(6),m=a(19),p=a(32),u=a(57),g=a(3),h=a.n(g),b=a(1),f=a(22);const _=Object(f.a)(),y=e=>({type:b.hc,payload:e});var E=a(104);var v=Object(i.b)(e=>({auth:e.auth,chatBookingTimer:e.chatBookingTimer}),{getChatBookingTimerData:e=>t=>{h.a.post(_+"/api/chat/get_next_meeting_time",e).then(e=>{t(y(e.data))})},removeChatTimer:e=>({type:b.Jb,payload:e})})(Object(r.g)((function(e){return Object(n.useEffect)(()=>{const{chat_booking_enabled:t}=e.auth.appSettings;if(e.auth.isAuthenticated&&!0===t){const t={isAdmin:e.auth.user.isAdmin};e.getChatBookingTimerData(t)}else e.removeChatTimer()},[]),o.a.createElement(o.a.Fragment,null,null!==e.chatBookingTimer.chatTimeRemaining&&0===e.chatBookingTimer.numberOfLiveChatUser&&o.a.createElement("div",null," Next chat starts in: \xa0\xa0",o.a.createElement(E.a,{date:e.chatBookingTimer.chatTimeRemaining,onComplete:()=>{const{chat_booking_enabled:t}=e.auth.appSettings;if(e.auth.isAuthenticated&&!0===t){const t={isAdmin:e.auth.user.isAdmin};e.getChatBookingTimerData(t)}},renderer:e=>{let{days:t,hours:a,minutes:n,seconds:i,completed:r}=e;return r?o.a.createElement(o.a.Fragment,null):t>0?t+" days":0===t&&a>0?a+" hours, "+n+" mins":0===t&&0===a&&n>0?n+" mins":0===t&&0===a&&0===n&&i>0?i+" seconds":void 0}})),e.chatBookingTimer.numberOfLiveChatUser>0&&o.a.createElement("div",null,"Your chat is live."))})));var w=Object(i.b)(e=>({auth:e.auth,chat:e.chat,liveStream:e.liveStream}),{})(Object(r.g)((function(e){const{content_color:t,content_font_color:a,model_id:i}=e.auth.appSettings,[r,s]=Object(n.useState)("");return Object(n.useEffect)(()=>{void 0!==e.chat.userProfileInfo[i]&&s(e.chat.userProfileInfo[i].name)},[]),o.a.createElement(o.a.Fragment,null,!0===e.liveStream.isGroupLiveStreamStarted&&o.a.createElement("div",null,r," is now live!",o.a.createElement("button",{className:"btn btn-sm",style:{backgroundColor:t,color:a,fontSize:"11px"},onClick:()=>{e.history.push({pathname:"/group-live-stream",state:{from:e.location.pathname}})}},"Join Stream")))}))),x=a(84),k=a(153);var N=Object(i.b)(e=>({auth:e.auth}),{updateUserOptInStatus:k.b,resendChangeEmailRequest:m.u,dismissChangeEmailRequest:m.h})(Object(r.g)((function(e){const t=e.auth.appSettings,a=c.a.get(e.auth.user,"emailOptInStatus",!1),i=c.a.get(e.auth.user,"emailEventType","none"),[r,s]=Object(n.useState)(!1);let l=c.a.get(e.auth.user,"emailLog",null);const[d,m]=Object(n.useState)(!1),[p,u]=Object(n.useState)(""),g=t=>{const a={};let n=!1;if("resend"===t){let e=localStorage.getItem("link_sent_date_time");new Date(e).setMinutes(new Date(e).getMinutes()+2)<=new Date?(n=!0,a.opt_in_status="link_sent",localStorage.setItem("link_sent_date_time",new Date)):(m(!0),s(!0))}else"dismiss"===t&&(n=!0,a.opt_in_status="dismissed");!0===n&&e.updateUserOptInStatus(a,()=>{"resend"===t&&alert("Please check your email.")})};Object(n.useEffect)(()=>{!0===d&&setInterval(()=>h(),1e3),l=c.a.get(e.auth.user,"emailLog",null)},[d,e.auth.user]);const h=()=>{let e;e=null===l?localStorage.getItem("link_sent_date_time"):localStorage.getItem("change_email_link_sent_date_time");let t=new Date(e).setMinutes(new Date(e).getMinutes()+2)-new Date;const a=Math.floor(t/1e3);u(a),0===a&&(m(!1),s(!1))},b=t.email_ribbon_padding_top+"px",f=t.email_ribbon_padding_bottom+"px";return null!==l?o.a.createElement("div",{style:{backgroundColor:t.email_ribbon_bg_color,color:t.email_ribbon_text_color,fontSize:t.email_ribbon_font_size,paddingTop:b,paddingBottom:f,fontFamily:t.email_ribbon_font_family}},o.a.createElement("span",{className:"mt-2"}," You have requested to change your email to ",l.email,". Please check your email and click on the confirmation link. If you don\u2019t see the email, be sure to check your spam folder.",o.a.createElement("br",null),o.a.createElement("span",{className:"mr-4",style:{textDecoration:"underline",cursor:"pointer"},onClick:()=>(()=>{let t=localStorage.getItem("change_email_link_sent_date_time");new Date(new Date(t).setMinutes(new Date(t).getMinutes()+2))<=new Date?(e.resendChangeEmailRequest(),localStorage.setItem("change_email_link_sent_date_time",new Date)):(m(!0),s(!0))})()},"Resend"),o.a.createElement("span",{className:"mr-4",style:{textDecoration:"underline",cursor:"pointer"},onClick:()=>{e.dismissChangeEmailRequest()}},"Dismiss"),!0===r?o.a.createElement("div",{className:"col-12 text-center text-red mx-3"},"Please wait ",p," second",p>1?"s":"","  before requesting an email resend."):null)):o.a.createElement(o.a.Fragment,null,"link_sent"===a&&"none"===i&&o.a.createElement("div",{style:{backgroundColor:t.email_ribbon_bg_color,color:t.email_ribbon_text_color,fontSize:t.email_ribbon_font_size,paddingTop:b,paddingBottom:f,fontFamily:t.email_ribbon_font_family}},"Please check your email to confirm that you wish to receive notifications.",o.a.createElement("br",null),o.a.createElement("span",{className:"mr-1 ml-1",style:{textDecoration:"underline",cursor:"pointer"},onClick:()=>g("resend")},"Resend"),"|",o.a.createElement("span",{className:"ml-1",style:{textDecoration:"underline",cursor:"pointer"},onClick:()=>g("dismiss")},"Dismiss"),!0===r&&null===l?o.a.createElement("div",{className:"col-12 text-center text-red mx-3"},"Please wait ",p," second",p>1?"s":"","  before requesting an email resend."):null))}))),S=a(87),C=a(154),T=a(116),O=a(127),P=a.n(O),I=a(56),A=a(45),M=a(44),j=a(33),F=a(4);const L=d.a.div`
    font-size: 24px;
    font-family: ${e=>e.fontFamily};
    color: ${e=>e.ribbonColor};
`,D=d.a.div`
width: 100%;
    h2, p {
        color: ${e=>e.color} !important;
    }
    h2 {
        font-size: 1.25rem !important;
        font-weight: 500 !important;
    }
    p {
        margin-top: 0px !important;
        font-size: 15px !important;
    }
    .custom-confirm-btn {
        display: none;
    }
`;var $=Object(i.b)(e=>({auth:e.auth,resubscriptionOffer:e.resubscriptionOffer,utility:e.utility}),{checkUserEligibleForOffer:C.a,setSubscriptionOffer:C.g,userResubscriptionWithCard:I.f,updateUserSubscriptionStatus:I.e,userResubscription:A.l,purchaseFromWallet:M.i,updateWalletAmount:M.k,closeResubscriptionBanner:p.b,setSweetAlert:F.e,updateUserSubscriptionPaymentGateway:I.d})(Object(r.g)((function(e){const{content_color:t,site_font_color:a,card_background_color:i,content_font_color:r,resubscribe_offer_settings:l,enable_ccbill_rest_api:d}=e.auth.appSettings,[m,p]=Object(n.useState)(!1),[u,g]=Object(n.useState)(!1),{default_payment_method:h,wallet_amount:b}=e.auth.user;Object(n.useEffect)(()=>{const{ccbillSubscriptionStatus:t,isAdmin:a}=e.auth.user;"2"!==t&&!1===a&&!0===l.is_enabled&&!0===d&&!1===e.resubscriptionOffer.isCheckOffer&&e.checkUserEligibleForOffer()},[]);const f=c.a.get(l,"ribbon_background_color",r),_=c.a.get(l,"ribbon_text_color",t),y=c.a.get(l,"ribbon_text_font","inherit"),E=c.a.get(l,"ribbon_animation","zoomInUp"),v=c.a.get(l,"animation_delay","inherit"),w=c.a.get(l,"animation_duration","inherit"),x=async()=>{if(!1!==e.resubscriptionOffer.offer.for_subscribers_only){g(!0);const t={offer:e.resubscriptionOffer.offer};if("v1"===c.a.get(e.auth.appSettings,"payment_api_version","v1"))e.userResubscriptionWithCard(t,t=>{const a=c.a.get(t,"data.accepted",!1);if(g(!1),!0===a)return e.updateUserSubscriptionStatus(),alert("Thank you for subscribing"),void e.history.push("/");{const e=c.a.get(t,"data.error",!1);!1!==e?alert(e):alert(t)}});else{let a;if("crypto_currency"===h){if(0===Number(b)){const t={description:"Please Add Funds in wallet to subscribe."};return e.setSweetAlert(t),void g(!1)}t.payment_for="resubscription",a=await e.purchaseFromWallet(t)}else a=await e.userResubscription(t);g(!1);if(1===c.a.get(a,"success",0))return"crypto_currency"===h&&(e.updateWalletAmount(a.data.wallet_balance),e.updateUserSubscriptionPaymentGateway("forumpay")),e.updateUserSubscriptionStatus(),alert("Thank you for subscribing"),e.history.push("/"),void p(!1);if("crypto_currency"===h){const t=c.a.get(a,"message",!1),n={description:!1!==t?t:a};e.setSweetAlert(n),p(!1)}else{const t=c.a.get(a,"data.error",!1),n={description:!1!==t?t:a};e.setSweetAlert(n)}}}else e.history.push("/subscribe")},k=Object(n.useMemo)(()=>{const{offer:t}=e.resubscriptionOffer;return c.a.isEmpty(t.promo_banner_text)?!0===e.resubscriptionOffer.offer.for_subscribers_only?0===e.resubscriptionOffer.offer.give_free_month_subscription?`Resubscribe in just $${e.resubscriptionOffer.offer.recurring_price}/month.`:-1===e.resubscriptionOffer.offer.give_free_month_subscription?"Resubscribe for free. There will be no subscription charge!":`Resubscribe for ${e.resubscriptionOffer.offer.give_free_month_subscription} free month(s), then $${e.resubscriptionOffer.offer.recurring_price}/month.`:0===e.resubscriptionOffer.offer.give_free_month_subscription?`Subscribe in just $${e.resubscriptionOffer.offer.recurring_price}/month.`:-1===e.resubscriptionOffer.offer.give_free_month_subscription?"Subscribe for free. There will be no subscription charge!":`Subscribe for ${e.resubscriptionOffer.offer.give_free_month_subscription} free month(s), then $${e.resubscriptionOffer.offer.recurring_price}/month.`:t.promo_banner_text},[e.resubscriptionOffer]);return o.a.createElement(j.a,null,!0===e.resubscriptionOffer.isUserEligibleForOffer&&e.utility.isResubscriptionBannerOpen&&o.a.createElement(T.Animated,{animationIn:E,animationInDelay:v,animationInDuration:w,isVisible:!0},o.a.createElement("div",{className:"float-right"},o.a.createElement("button",{className:"close mr-2 mt-1",style:{color:"#ffffff",opacity:"1.0",fontSize:"1.3em"},onClick:()=>e.closeResubscriptionBanner(!1)})),o.a.createElement("div",{className:"text-center",style:{width:"100%",background:f,padding:"10px"}},o.a.createElement(L,{ribbonColor:_,fontFamily:y},k,o.a.createElement("button",{className:"btn ml-1",onClick:()=>{!1!==e.resubscriptionOffer.offer.for_subscribers_only?p(!0):e.history.push("/subscribe")},style:{color:r,background:t}},!0===e.resubscriptionOffer.offer.for_subscribers_only?"Resubscribe":"Subscribe")))),!0===m&&o.a.createElement(D,{backgroundColor:t,color:a,btnFontColor:r},o.a.createElement(P.a,{title:"",onConfirm:x,style:{backgroundColor:i,color:r},confirmBtnCssClass:"custom-confirm-btn",cancelBtnCssClass:"custom-confirm-btn",btnSize:"md",confirmBtnText:u?"Payment process...":"Resubscribe"},o.a.createElement("div",{className:"row",style:{marginTop:"-12px"}},o.a.createElement("div",{className:"col-12 text-right"},o.a.createElement("i",{className:"fas fa-times",disabled:u,onClick:()=>p(!1),style:{cursor:"pointer",color:a}}))),o.a.createElement("div",{className:"mb-3",style:{color:a}},k),o.a.createElement("button",{className:"btn mb-3",onClick:x,style:{backgroundColor:t,color:r},disabled:u},!0===e.resubscriptionOffer.offer.for_subscribers_only?"RESUBSCRIBE":"SUBSCRIBE"),!0===e.resubscriptionOffer.offer.for_subscribers_only&&o.a.createElement(o.a.Fragment,null,"crypto_currency"===h?o.a.createElement("div",{className:"mt-3"},o.a.createElement(s.b,{className:"styled-link",disabled:u,to:"/profile/wallet"},"Add Funds to wallet")):o.a.createElement("div",{className:"mt-3"},o.a.createElement(s.b,{className:"styled-link",disabled:u,to:"/profile/payment-method"},"I want to add a new credit card"))))))}))),R=a(28),B=a(46),U=a(15),G=a(25);const z=Object(d.a)(s.b)`
    font-size: 15px;
    color: ${e=>e.color} !important;

    :hover {
        color: ${e=>e.color};
    }

    @media (max-width: 991px){
        margin: ${e=>e.centerenabled?"auto":"unset"}
    }
    @media (min-width: ${G.c.mobileS}) and (max-width: ${G.c.tablet}) {
        font-size: 20px;
        padding: 5px !important;
    }
`,W=Object(d.a)(s.b)`
    vertical-align: middle;
    display: inline-flex !important;
    width: 100%;
    font-size: 15px;
    color: ${e=>e.color} !important;
    font-weight: ${e=>e.fontWeight} !important;

    :hover {
        color: ${e=>e.color};
    }
    
    @media (min-width: ${G.c.mobileS}) and (max-width: ${G.c.tablet}) {
        font-size: 20px;
        padding: 5px !important;
    }
`,H=d.a.span`
    width: 100%;
    font-size: 15px;
    font-weight: ${e=>e.fontWeight} !important;

    :hover {
        color: ${e=>e.color};
    }

    @media (min-width: ${G.c.mobileS}) and (max-width: ${G.c.tablet}) {
        font-size: 20px;
    }
`,q=d.a.a`
    font-size: 15px;
    color: ${e=>e.color};
    font-weight: ${e=>e.fontWeight};

    :hover {
        color: ${e=>e.color};
    }

    :focus {
        color: ${e=>e.color};
        text-decoration: none;
    }

    @media (max-width: 991px){
        margin: ${e=>e.centerenabled?"auto":"unset"}
    }

    @media (min-width: ${G.c.mobileS}) and (max-width: ${G.c.tablet}) {
        font-size: 20px;
        padding: 5px !important;
        margin: ${e=>e.centerenabled?"auto":"unset"}
    }
`,V=d.a.div`
    width: 24px;
    height: 24px;
    background-color: ${e=>e.color};
    mask: url(${e=>e.image});
    -webkit-mask: url(${e=>e.image}) no-repeat center / cover;
`,Y=d.a.div`
    font-size: 15px;
    color: ${e=>e.color};
    font-weight: ${e=>e.fontWeight};
    @media (min-width: 320px) and (max-width: 768px) {
        font-size: 20px;
        padding: 5px !important;
    }
`,K=d.a.div`
    color: ${e=>e.content_font_color} !important;
    background: ${e=>e.content_color} !important;
    font-size: 75%;
    height: 25px;
    width: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
`,J=d.a.div`
    @media (min-width: ${G.c.mobileS}) and (max-width: 363px) {
        width: 48%;
        display: flex;
    }

    @media (min-width: 364px) and (max-width: ${G.c.tablet}) {
        width: ${e=>e.isAuthenticated&&void 0!==window.orientation&&!window.matchMedia("(display-mode: standalone)").matches?"56%":"64%"};
        display: flex;
    }
`,X=d.a.nav`
    background-color: ${e=>e.themeColor} !important;
    padding: ${e=>e.padding} !important;
    z-index: 2;
    justify-content: space-between;
    align-items: center;

    @media (min-width: ${G.c.mobileS}) and (max-width: ${G.c.tabletL}) {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }

`,Q=d.a.div`
    @media (min-width: 1312px) {
        top: 34px !important;
    }

    top: 46px !important;

    @media (min-width: ${G.c.mobileS}) and (max-width: ${G.c.tabletL}) {
        left: auto !important;
        right: -5px !important;
        top: 43px !important;
    }
}
`,Z=d.a.div`
    display: flex;
`,ee=d.a.div`
    align-content: center;
    display: flex;
    flex-wrap: wrap;
    color: ${e=>e.color};
    cursor: pointer;
`,te=d.a.div`
    @media (min-width: 991px) {
        min-width: 120px;
        margin-right: 18px;
        word-break: break-word;
    }
`,ae=d.a.strong`
    @media (min-width: ${G.c.mobileS}) and (max-width: ${G.c.tablet}) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
`,ne=d.a.li`
    @media (min-width: ${G.c.mobileS}) and (max-width: ${G.c.tablet}) {
        padding-right: 0px !important;
    }
`;class oe extends n.Component{constructor(e){super(e),this.state={isOpen:!1,chatStartTime:null},this.toggleCollapse=this.toggleCollapse.bind(this),this.onLogout=this.onLogout.bind(this),this.onNotificationBellClick=this.onNotificationBellClick.bind(this),this.openProgressiveWebAppPopup=this.openProgressiveWebAppPopup.bind(this)}onLogout(e){e.preventDefault(),this.props.resetCurrentPage(),this.props.logoutUser(this.props.history),S.a.emit("LOGOUT_USER");!0===this.props.history.location.pathname.includes("/feed/")&&this.props.history.push("/")}toggleCollapse(){this.setState({isOpen:!this.state.isOpen})}onNotificationBellClick(){this.props.toggleNotificationPopup()}upcomingChatCountdownRenderer(e){let{days:t,hours:a,minutes:n,seconds:i,completed:r}=e;return r?o.a.createElement(o.a.Fragment,null):t>0?t+" days":0===t&&a>0?a+" hours, "+n+" mins":0===t&&0===a&&n>0?n+" mins":0===t&&0===a&&0===n&&i>0?i+" seconds":void 0}getUserRole(){let e="";return e=this.props.auth.isAuthenticated?!0===this.props.auth.user.isAdmin?"content_manager"===this.props.auth.user.role?"content_manager":!0===this.props.auth.isModel?"admin":"live_stream_manager"===this.props.auth.user.role?"live_stream_manager":"super_admin":!0===this.props.auth.user.payment.membership?"subscriber":"user":"guest",e}getCustomMenuLinks(e,t,a){return this.props.auth.customMenuLinks.map((n,i)=>{const r=n.url;return o.a.createElement("li",{className:"nav-item",key:i},o.a.createElement(q,{centerenabled:e,href:r,className:"nav-link",color:t,fontWeight:a,target:!0===n.open_in_new_tab?"_blank":"_self",rel:"noreferrer"},n.name))})}notificationUnreadCounts(e){return e>99?"99+":e}openProgressiveWebAppPopup(e){if(document.querySelector("body").style.overflow="hidden",e.preventDefault(),!1===this.props.utility.isProgressiveWebAppPopupVisible){this.props.handleIsProgressiveWebAppPopupVisible(!0),this.props.handleProgressiveWebAppPopupShowAgain(!1);const e={is_running_from_pwa:!0===window.matchMedia("(display-mode: standalone)").matches,user_id:!0===this.props.auth.isAuthenticated?this.props.auth.user._id:"",user_agent:window.navigator.userAgent,is_popup_opened:!0,ccbill_subscription_status:this.props.auth.user.ccbillSubscriptionStatus};this.props.sendMobileInfoToServices(e)}}render(){let e,t,a;const{model_name:n,theme_color:i,theme_font_color:r,exclusive_content_navbar_name:s,chat_navbar_name:l,settings_navbar_name:d,shop_navbar_name:m,user_details_navbar_name:p,tips_navbar_name:u,log_in_navbar_name:g,sign_up_navbar_name:h,log_out_navbar_name:b,transaction_reports_navbar_name:f,links_page_navbar_name:_,shop_menu:y,tips_menu:E,chat_menu:k,gallery_menu:S,links_menu:C,navbar_welcome_text:T,navbar_font_weight:O,navbar_padding:P,enable_internal_shop:I,chat_booking_enabled:A,chat_settings:M,enable_recently_purchased_for_subscribers:j,recently_purchased_navbar_name:F,enable_csv_download_for_content_managers:L,content_color:D,content_font_color:R,enable_purchase_notification:G,enable_socket_debug:q,my_account_navbar_name:oe,enable_center_navigation_menu:ie,promotion_settings:re,card_background_color:se,site_font_color:le,influencer_help_enabled:ce,user_influencer_help_enabled:de,show_reporting_page_to_content_manager:me,hide_earnings:pe,is_feed_comment_enabled:ue,is_feed_like_enabled:ge,is_crypto_payment_enabled:he,navbar:be,model_id:fe}=this.props.auth.appSettings,{isAdmin:_e,ccbillSubscriptionStatus:ye,role:Ee}=this.props.auth.user,{isAuthenticated:ve,customMenuLinks:we}=this.props.auth;let xe=ie?1:0;const ke=M.notification_bar_background_color,Ne=M.notification_bar_text_color;let Se=void 0===P||""===P?"0.5rem 1rem":P,Ce=!1,Te=!1,Oe=!1,Pe=!1,Ie=!0,Ae=!0,Me=!0,je=!1,Fe=!1,Le=!1,De=!1;const $e=c.a.get(this.props.auth,"user.payment.membership","false");let Re=c.a.get(re,"subscription_promotion_ribbon_position","above menu");(!0===_e||[B.j,B.k].includes(ye))&&(Re=c.a.get(re,"locked_content_promotion_ribbon_position","above menu"));const Be=["/","/chat","/tips","/shop"].includes(window.location.pathname)||!0===window.location.pathname.includes("/private-chat"),Ue=!0===$e?"/purchased-contents":"/membership",Ge=window.location.pathname.includes("profile"),ze=window.location.pathname,We=!1===ve&&"/login"===ze,He=!1===ve&&"/login"!==ze;ve?(e=o.a.createElement("li",{className:"nav-item",style:{margin:!0===ie&&window.innerWidth<992?"auto":"unset"}},o.a.createElement(Y,{color:r,fontWeight:O,onClick:this.onLogout},b)),t=null,a=this.props.auth.user.avatarUrl?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link d-md-block d-none",to:"/profile/update",fontWeight:O,color:r},o.a.createElement("img",{src:this.props.auth.user.avatarUrl,style:{height:"34px",borderRadius:"17px",marginRight:"5px"},alt:""})," ",oe),o.a.createElement(z,{centerenabled:xe,className:"nav-link d-md-none",to:"/profile",fontWeight:O,color:r},o.a.createElement("img",{src:this.props.auth.user.avatarUrl,style:{height:"34px",borderRadius:"17px",marginRight:"5px"},alt:""})," ",oe),!0===q&&o.a.createElement(o.a.Fragment,null,!0===this.props.socket.isSocketConnected?o.a.createElement("div",{style:{background:"green",height:"10px",width:"10px",borderRadius:"50%"}}):o.a.createElement("div",{style:{background:"red",height:"10px",width:"10px",borderRadius:"50%"}}))):o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link d-md-block d-none",to:"/profile/update",fontWeight:O,color:r},o.a.createElement("img",{src:Object(U.a)("faces/avatar.png"),alt:"User Avatar",style:{height:"34px",borderRadius:"17px",marginRight:"5px"}})," ",oe),o.a.createElement(z,{centerenabled:xe,className:"nav-link d-md-none",to:"/profile",fontWeight:O,color:r},o.a.createElement("img",{src:Object(U.a)("faces/avatar.png"),alt:"User Avatar",style:{height:"34px",borderRadius:"17px",marginRight:"5px"}})," ",oe),!0===q&&o.a.createElement(o.a.Fragment,null,!0===this.props.socket.isSocketConnected?o.a.createElement("div",{style:{background:"green",height:"10px",width:"10px",borderRadius:"50%"}}):o.a.createElement("div",{style:{background:"red",height:"10px",width:"10px",borderRadius:"50%"}})))):(e=o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/login",color:r,fontWeight:O},g)),t=o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/register",color:r,fontWeight:O},h)),a=null),!0===this.props.auth.isModel&&(Me=!1),"content_manager"===this.getUserRole()?(Oe=!0,Me=!1,Ie=!0,pe&&(De=!0),me&&!pe||(Ae=!1)):"live_stream_manager"===this.getUserRole()?(Oe=!0,Ie=!1,Me=!1,Ae=!1):(Ce=y[this.getUserRole()],Te=E[this.getUserRole()],Oe=k[this.getUserRole()],Pe=S[this.getUserRole()],je=C[this.getUserRole()],Le=y[this.getUserRole()]&&ve),window.location.pathname.includes("/admin")&&(Fe=!0);const qe="NA"===this.props.auth.user.wallet_amount?this.props.auth.user.wallet_amount:"$"+parseFloat(this.props.auth.user.wallet_amount).toFixed(2),Ve=be.avatar_url?be.avatar_url:!!this.props.chat.userProfileInfo[fe]&&this.props.chat.userProfileInfo[fe].profile,Ye=be.influencer_name_color?be.influencer_name_color:r,Ke=o.a.createElement("div",{className:"py-md-0 p-1 position-relative nav-link d-flex",id:"navbarDropdown",role:"button"},o.a.createElement("div",{className:"d-flex align-items-center",onClick:this.onNotificationBellClick},o.a.createElement(V,{image:Object(U.a)("images/notifications.svg"),style:{minWidth:"24px"},color:r}),(this.props.auth.user.totalUnreadCount>0||this.props.influencerHelp.unread_count>0)&&o.a.createElement(H,{color:r,fontWeight:O,style:{color:r}},"\xa0\xa0",this.props.auth.user.totalUnreadCount+(this.props.influencerHelp.unread_count>0?this.props.influencerHelp.unread_count:0))),!0===this.props.utility.showNotificationPopup&&o.a.createElement(Q,{className:"dropdown-menu show",style:{background:se,color:le,minWidth:"11em",maxWidth:"12em"}},!De&&o.a.createElement(W,{className:"p-2 nav-link",to:"/notification/purchased",fontWeight:O,color:le},"Purchased",this.props.auth.user.purchasedNotificationUnreadCount>0&&o.a.createElement(K,{className:"ml-auto rounded-pill",content_color:D,content_font_color:R},this.notificationUnreadCounts(this.props.auth.user.purchasedNotificationUnreadCount))),o.a.createElement(W,{className:"p-2 nav-link",to:"/notification/subscription",fontWeight:O,color:le},"Subscription",this.props.auth.user.subscriptionNotificationUnreadCount>0&&o.a.createElement(K,{className:"ml-auto rounded-pill",content_color:D,content_font_color:R},this.notificationUnreadCounts(this.props.auth.user.subscriptionNotificationUnreadCount))),!0===ue&&o.a.createElement(W,{className:"p-2 nav-link",to:"/notification/comments",fontWeight:O,color:le},"Comments",this.props.auth.user.feedCommentNotificationUnreadCount>0&&o.a.createElement(K,{className:"ml-auto rounded-pill",content_color:D,content_font_color:R},this.notificationUnreadCounts(this.props.auth.user.feedCommentNotificationUnreadCount))),!0===ge&&o.a.createElement(W,{className:"p-2 nav-link",to:"/notification/likes",fontWeight:O,color:le},"Likes",this.props.auth.user.feedLikeNotificationUnreadCount>0&&o.a.createElement(K,{className:"ml-auto rounded-pill",content_color:D,content_font_color:R},this.notificationUnreadCounts(this.props.auth.user.feedLikeNotificationUnreadCount))),!0===ce&&o.a.createElement(W,{className:"p-2 nav-link",to:"/notification/notification",fontWeight:O,color:le},"Notification",this.props.influencerHelp.unread_count>0&&o.a.createElement(K,{className:"ml-auto rounded-pill",content_color:D,content_font_color:R},this.notificationUnreadCounts(this.props.influencerHelp.unread_count))))),Je=o.a.createElement(ne,{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/profile/wallet",fontWeight:O},o.a.createElement("i",{className:"fas fa-wallet",style:{color:r}}),o.a.createElement("span",{style:{color:r}},"\xa0\xa0",qe)));return this.props.auth.isSupport?o.a.createElement("nav",{className:"navbar navbar-expand-lg",style:{backgroundColor:i,padding:Se,zIndex:2}},!this.props.auth.isContentManager&&Fe?o.a.createElement("button",{className:"navbar-toggler d-md-none",type:"button","data-toggle":"collapse","data-target":"#sidebarMenu","aria-controls":"sidebarMenu","aria-expanded":"true","aria-label":"Toggle navigation",onClick:this.props.toggleSideBar},o.a.createElement("i",{className:"fas fa-cogs",style:{color:r}})):null,be.show_avatar_image&&Ve&&o.a.createElement("img",{src:Ve,style:{height:"34px",borderRadius:"17px",marginRight:"5px"},alt:""}),be.show_influencer_name&&o.a.createElement("strong",{style:{color:Ye,fontSize:"18px"}},void 0===T||""===T?"WELCOME TO "+n.toUpperCase():""+T),o.a.createElement("button",{className:"navbar-toggler collapsed",type:"button","data-toggle":"collapse",onClick:this.toggleCollapse},o.a.createElement("i",{className:"fas fa-bars",style:{color:r}})),o.a.createElement("div",{className:this.state.isOpen?"collapse navbar-collapse show":"collapse navbar-collapse",id:"navbarsExampleDefault"},o.a.createElement("ul",{className:"navbar-nav mr-auto"}),o.a.createElement("ul",{className:"navbar-nav"},o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/admin/transactions",color:r,fontWeight:O},f)),a,e,t))):this.props.auth.user.isAdmin?o.a.createElement(o.a.Fragment,null,Be&&"above menu"===Re?o.a.createElement(x.a,null):o.a.createElement(o.a.Fragment,null),o.a.createElement(X,{className:"navbar navbar-expand-lg",themeColor:i,padding:Se},o.a.createElement("div",{className:"d-flex align-items-center"},be.show_avatar_image&&Ve&&o.a.createElement("img",{src:Ve,style:{height:"34px",borderRadius:"17px",marginRight:"5px"},alt:""}),be.show_influencer_name&&o.a.createElement(te,{style:{color:Ye,fontSize:"18px",fontWeight:"600"}},void 0===T||""===T?"WELCOME TO "+n.toUpperCase():""+T)),o.a.createElement(Z,null,ve&&void 0!==window.orientation&&!window.matchMedia("(display-mode: standalone)").matches&&o.a.createElement(ee,{className:"d-lg-none",onClick:this.openProgressiveWebAppPopup,color:r},o.a.createElement(V,{image:Object(U.a)("images/ios-share.svg"),alt:"share",color:r})),ve&&Ee!==B.g&&o.a.createElement("div",{className:"d-lg-none"},Ke)),o.a.createElement("div",{className:"collapse navbar-collapse",id:"navbarsExampleDefault"},o.a.createElement("ul",{className:"navbar-nav mr-auto"}),o.a.createElement("ul",{className:"navbar-nav"},o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/",color:r,fontWeight:O},s)),this.props.auth.isContentManager&&!0===L?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/admin/settings/export-users",color:r,fontWeight:O},"EXPORT USERS")):null,Oe?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/chat",color:r,fontWeight:O},l)):null,Te?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/tips",color:r,fontWeight:O},u)):null,Ie?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/admin/settings",color:r,fontWeight:O},d)):null,Ce?o.a.createElement(o.a.Fragment,null,I&&o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/shop",color:r,fontWeight:O},m))):null,we.length>0&&this.getCustomMenuLinks(xe,r,O),Pe?o.a.createElement("li",{className:"nav-item d-none"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/gallery",color:r,fontWeight:O},"GALLERY")):null,Ae?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/admin/subscribers",color:r,fontWeight:O},p)):null,Me?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/admin/transactions",color:r,fontWeight:O},f)):null,je?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/links",color:r,fontWeight:O},_)):null,!ve||Ee!==B.e&&Ee!==B.h&&Ee!==B.f&&Ee!==B.i?null:o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/admin/content-manager",fontWeight:O},o.a.createElement("i",{className:"fas fa-photo-video",style:{color:r,fontSize:"19px"}}))),ve&&Ee!==B.g?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link p-md-0",to:"/chat",color:r,fontWeight:O},o.a.createElement("div",{className:"d-flex justify-content-center align-items-center"},o.a.createElement(V,{image:Object(U.a)("images/email.svg"),color:r}),this.props.auth.counts.userUnreadMessage>0&&o.a.createElement("span",{style:{color:r}},"\xa0\xa0",this.props.auth.counts.userUnreadMessage)))):null,ve&&Ee!==B.g?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link p-md-0",to:"/admin/chat/tips-list",color:r,fontWeight:O},o.a.createElement("div",{className:"d-flex justify-content-center align-items-center"},o.a.createElement(V,{image:Object(U.a)("images/dollar.svg"),color:r}),this.props.auth.counts.modelUnreadTips>0&&o.a.createElement("span",{style:{color:r}},"\xa0\xa0",this.props.auth.counts.modelUnreadTips)))):null,Le&&this.props.auth.counts.totalQuantity>0&&I?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/shop/view-cart",fontWeight:O},o.a.createElement("i",{className:"fas fa-shopping-cart",style:{color:r}}),o.a.createElement("span",{style:{color:r}},"\xa0\xa0",this.props.auth.counts.totalQuantity))):null,G&&Ee!==B.g&&o.a.createElement("li",{className:ie?"nav-item dropdown d-flex px-1":"nav-item dropdown d-flex"},Ke),ce&&Ee!==B.g&&o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:ie?"nav-link p-md-0 mx-auto":"nav-link p-md-0",to:"/help",color:r,fontWeight:O},o.a.createElement(V,{image:Object(U.a)("images/question-solid.svg"),color:r,onClick:this.onNotificationBellClick,style:{maxHeight:"20px",margin:"auto"}}))),a,e,t))),ve&&A&&1!==this.props.chatBookingTimer.numberOfLiveChatUser&&o.a.createElement("div",{className:"text-center",onClick:()=>this.props.history.push("/admin/settings/set-chat-availability/booking-list"),style:{width:"100%",background:ke,color:Ne,cursor:"pointer"}},o.a.createElement(v,null)),ve&&A&&1===this.props.chatBookingTimer.numberOfLiveChatUser&&o.a.createElement("div",{className:"text-center",onClick:()=>this.props.history.push("/private-chat/"+this.props.chatBookingTimer.liveChatUserId),style:{width:"100%",background:ke,color:Ne,cursor:"pointer"}},o.a.createElement(v,null)),ve&&[B.j,B.k].includes(ye)&&o.a.createElement("div",{className:"text-center",style:{width:"100%",background:R,color:D}},o.a.createElement(w,null)),this.props.auth.user.isAdmin&&"model"!==this.props.auth.user.role&&o.a.createElement("div",{className:"text-center",style:{width:"100%",background:R,color:D}},o.a.createElement(w,null)),Be&&"above hero"===Re?o.a.createElement(x.a,null):o.a.createElement(o.a.Fragment,null)):o.a.createElement(o.a.Fragment,null,"above menu"===Re?o.a.createElement(x.a,null):o.a.createElement(o.a.Fragment,null),ye!==B.j&&o.a.createElement($,null),o.a.createElement(X,{className:"navbar navbar-expand-lg",themeColor:i,padding:Se},o.a.createElement(J,{isAuthenticated:ve},be.show_avatar_image&&Ve&&o.a.createElement("img",{src:Ve,style:{height:"34px",borderRadius:"17px",marginRight:"5px"},alt:""}),be.show_influencer_name&&o.a.createElement(ae,{style:{color:Ye,fontSize:"18px",paddingTop:"0.359rem",paddingBottom:"0.359rem"}},void 0===T||""===T?"WELCOME TO "+n.toUpperCase():""+T)),o.a.createElement(Z,null,ve&&void 0!==window.orientation&&!window.matchMedia("(display-mode: standalone)").matches&&o.a.createElement(ee,{className:"d-lg-none",onClick:this.openProgressiveWebAppPopup,color:r},o.a.createElement(V,{image:Object(U.a)("images/ios-share.svg"),alt:"share",color:r})),!0===He&&o.a.createElement(z,{className:"nav-link navbar-toggler",to:"/login",fontWeight:O,color:r},g),!0===We&&o.a.createElement(z,{className:"nav-link navbar-toggler",to:"/register",color:r,fontWeight:O},h),ve&&he&&o.a.createElement("div",{className:"d-lg-none"},Je)),o.a.createElement("div",{className:"collapse navbar-collapse",id:"navbarsExampleDefault"},o.a.createElement("ul",{className:"navbar-nav mr-auto"}),o.a.createElement("ul",{className:"navbar-nav"},o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/",color:r,fontWeight:O},s)),j&&ve?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:Ue,color:r,fontWeight:O},F)):null,Oe?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"0"===ye?"/chat":"/private-chat",color:r,fontWeight:O},l)):null,Ce?o.a.createElement(o.a.Fragment,null,I&&o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/shop",color:r,fontWeight:O},m))):null,we.length>0&&this.getCustomMenuLinks(xe,r,O),Te?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/tips",color:r,fontWeight:O},u)):null,Pe?o.a.createElement("li",{className:"nav-item d-none"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/gallery",color:r,fontWeight:O},"GALLERY")):null,je?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/links",color:r,fontWeight:O},_)):null,ve&&this.props.auth.counts.userUnreadMessage>0?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link p-md-0",to:"/chat",color:r,fontWeight:O},o.a.createElement("div",{className:"d-flex justify-content-center align-items-center"},o.a.createElement(V,{image:Object(U.a)("images/email.svg"),color:r}),this.props.auth.counts.userUnreadMessage>0&&o.a.createElement("span",{style:{color:r}},"\xa0\xa0",this.props.auth.counts.userUnreadMessage)))):null,ve&&de?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link p-md-0",to:"/user-notification/notification",color:r,fontWeight:O},o.a.createElement("div",{className:"d-flex justify-content-center align-items-center"},o.a.createElement(V,{image:Object(U.a)("images/notifications.svg"),color:r}),this.props.userInfluencerHelp.unread_count>0&&o.a.createElement("span",{style:{color:r}},"\xa0\xa0",this.props.userInfluencerHelp.unread_count)))):null,ve&&de&&o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:ie?"nav-link p-md-0 mx-auto":"nav-link p-md-0",to:"/user-help",color:r,fontWeight:O},o.a.createElement(V,{image:Object(U.a)("images/question-solid.svg"),color:r,style:{maxHeight:"20px",margin:"auto"}}))),Le&&this.props.auth.counts.totalQuantity>0&&I?o.a.createElement("li",{className:"nav-item"},o.a.createElement(z,{centerenabled:xe,className:"nav-link",to:"/shop/view-cart",fontWeight:O},o.a.createElement("i",{className:"fas fa-shopping-cart",style:{color:r}}),o.a.createElement("span",{style:{color:r}},"\xa0",this.props.auth.counts.totalQuantity))):null,ve&&he&&o.a.createElement(o.a.Fragment,null,Je),a,e,t))),ve&&A&&0===this.props.chatBookingTimer.numberOfLiveChatUser&&o.a.createElement("div",{className:"text-center",onClick:()=>this.props.history.push("/book-slot/booking-list"),style:{width:"100%",background:ke,color:Ne,cursor:"pointer"}},o.a.createElement(v,null)),ve&&A&&this.props.chatBookingTimer.numberOfLiveChatUser>0&&o.a.createElement("div",{className:"text-center",onClick:()=>this.props.history.push("/chat"),style:{width:"100%",background:ke,color:Ne,cursor:"pointer"}},o.a.createElement(v,null)),ve&&[B.j,B.k].includes(ye)&&o.a.createElement("div",{className:"text-center",style:{width:"100%",background:R,color:D}},o.a.createElement(w,null)),ve&&!0===this.props.auth.user.shouldPresentEmailOptIn&&"link_sent"===this.props.auth.user.emailOptInStatus||null!==this.props.auth.user.emailLog?o.a.createElement("div",{className:"text-center",style:{width:"100%",background:R,color:D}},o.a.createElement(N,null)):null,this.props.auth.user.isAdmin&&"model"!==this.props.auth.user.role&&o.a.createElement("div",{className:"text-center",style:{width:"100%",background:R,color:D}},o.a.createElement(w,null)),"above hero"===Re&&o.a.createElement(x.a,null),("/login"===window.location.pathname||"/register"===window.location.pathname||"/forgot-password"===window.location.pathname||!0===Ge)&&"below hero"===Re&&o.a.createElement(x.a,null))}}var ie=Object(i.b)(e=>({auth:e.auth,chat:e.chat,errors:e.errors,chatBookingTimer:e.chatBookingTimer,socket:e.socket,promotion:e.promotion,utility:e.utility,userInfluencerHelp:e.userInfluencerHelp,influencerHelp:e.influencerHelp}),{logoutUser:m.p,toggleSideBar:p.n,getNextMeetingTime:u.h,resetCurrentPage:R.p,toggleNotificationPopup:p.l,handleIsProgressiveWebAppPopupVisible:p.c,sendMobileInfoToServices:p.f,handleProgressiveWebAppPopupShowAgain:p.d})(Object(r.g)(oe)),re=a(186);const se=d.a.div`
    font-size: 23px;
    font-weight: bold;
    text-align: center;
`;class le extends n.Component{constructor(){super(),this.state={isDialogOpen:null===localStorage.getItem("age")},this.closeDialogBlog=this.closeDialogBlog.bind(this)}closeDialogBlog(){this.setState({isDialogOpen:!1}),localStorage.setItem("age",!0)}render(){const{model_name:e,content_color:t,model_id:a,show_age_modal:n,content_font_color:i,card_background_color:r}=this.props.auth.appSettings,s=this.props.chat.userProfileInfo[a]?this.props.chat.userProfileInfo[a].profile:Object(U.a)("faces/avatar.png"),l=this.state.isDialogOpen&&!1===this.props.auth.isAuthenticated&&n;return o.a.createElement(j.a,null,l?o.a.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#000000ef"}},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered",role:"document"},o.a.createElement("div",{className:"modal-content"},o.a.createElement("div",{className:"modal-body",style:{backgroundColor:r}},o.a.createElement(se,null,"You must be 18+ to view this content"),o.a.createElement("div",{className:"text-center mt-5 mb-5"},o.a.createElement("img",{src:s,className:"img-fluid",alt:"",style:{height:"60px",borderRadius:"30px"},draggable:!1})),o.a.createElement("p",{className:"text-center"},o.a.createElement("b",null,e)," is posting content you must be 18+ to view. Are you 18 years of age or older?"),o.a.createElement("button",{type:"button",className:"btn btn-block btn-pill",onClick:this.closeDialogBlog,style:{backgroundColor:t,color:i}},"Yes, I am 18 or older"))))):null)}}var ce=Object(i.b)(e=>({auth:e.auth,chat:e.chat}))(Object(r.g)(le));const de=Object(f.a)();class me extends n.Component{constructor(){super(),this.redirectToCCBill=this.redirectToCCBill.bind(this)}redirectToCCBill(){h.a.get(de+"/api/ccbill/set_payment_method").then(e=>{e.data.action&&window.location.replace(e.data.url)})}render(){const{content_color:e,content_font_color:t,card_background_color:a}=this.props.auth.appSettings,n=this.props.utility.isNewPaymentModalOpen;return o.a.createElement(j.a,null,n?o.a.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#000000ef"}},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered",role:"document"},o.a.createElement("div",{className:"modal-content"},o.a.createElement("div",{className:"modal-header",style:{backgroundColor:a}},o.a.createElement("h5",{className:"modal-title"},"Set Up a Payment Method"),o.a.createElement("button",{className:"close",onClick:()=>this.props.toggleNewPaymentModal(),style:{color:t}})),o.a.createElement("div",{className:"modal-body",style:{backgroundColor:a}},o.a.createElement("p",{className:"text-center"},"You have not set a payment method. Please set a payment method to continue. You will be redirected to another site to set up your payment method."),o.a.createElement("button",{type:"button",className:"btn btn-block btn-pill",onClick:this.redirectToCCBill,style:{backgroundColor:e,color:t}},"Set Payment Method"))))):null)}}var pe=Object(i.b)(e=>({auth:e.auth,utility:e.utility}),{toggleNewPaymentModal:p.k})(Object(r.g)(me)),ue=a(238),ge=a(188),he=a(235);var be=Object(i.b)(e=>({auth:e.auth,chat:e.chat,utility:e.utility}),{toggleMiscellaneousPopUp:p.j})(Object(r.g)(e=>{const[t,a]=Object(n.useState)(!1),{content_color:i,model_id:r,show_misc_pop_up:s,misc_pop_up_text:l,content_font_color:c,card_background_color:d}=e.auth.appSettings,m=e.chat.userProfileInfo[r]?e.chat.userProfileInfo[r].profile:Object(U.a)("faces/avatar.png"),p=t&&s;return Object(n.useEffect)(()=>{a(e.utility.isMiscellaneousPopUpOpen)}),o.a.createElement(j.a,null,p?o.a.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#000000ef"}},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered",role:"document"},o.a.createElement("div",{className:"modal-content"},o.a.createElement("div",{className:"modal-body",style:{backgroundColor:d}},o.a.createElement("div",{className:"text-center mt-5 mb-5"},o.a.createElement("img",{src:m,className:"img-fluid",alt:"",style:{height:"60px",borderRadius:"30px"},draggable:!1})),o.a.createElement("p",{className:"text-center"},l?l.split("\n").map((e,t)=>o.a.createElement("div",{key:t},e,o.a.createElement("br",null))):""),o.a.createElement("button",{type:"button",className:"btn btn-block btn-pill",onClick:e.toggleMiscellaneousPopUp,style:{backgroundColor:i,color:c}},"Ok"))))):null)})),fe=a(216),_e=a(175),ye=a(112),Ee=a(162);var ve=Object(i.b)(e=>({auth:e.auth}),{cancelSubscription:fe.a,subscription:fe.f,migrateUserSubscription:A.f,purchaseFromWallet:M.i,updateWalletAmount:M.k,setSweetAlert:F.e,hideMigrationPopup:m.l,updateUserCCbillSubscriptionStatus:A.k})(Object(r.g)((function(e){const{content_color:t,content_font_color:a,card_background_color:i,migrate_subscription:r,returning_recurring_membership_price:s,is_cancel_subscription_reason_enabled:l,site_font_color:d}=e.auth.appSettings,{showMigrationPopup:m,default_payment_method:p,wallet_amount:u,role:g}=e.auth.user,[h,b]=Object(n.useState)(!1),[f,_]=Object(n.useState)(!0),[y,E]=Object(n.useState)(!1),[v,w]=Object(n.useState)(0),[x,k]=Object(n.useState)(!1),N=async function(t){let a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];b(!0);let n=u;!0===c.a.isNumber(t)&&(n=t);let o,i=`Please Confirm Your Purchase of $${s}.`;"crypto_currency"===p&&(i+=`You currently have $${n} in your wallet. Amount will be debited from your wallet balance.`);const r=c.a.get(e.auth.appSettings,"payment_api_version","v1");if("v1"===r)e.subscription(()=>{b(!1)});else{if("crypto_currency"===p)if(n>=s){if(o=!1===a||window.confirm(i),!0===o){const t={payment_for:"migration"},a=await e.purchaseFromWallet(t);if(1===c.a.get(a,"success",0)){let t={description:c.a.get(a,"message","Thank you for subscribing")};e.setSweetAlert(t),e.updateWalletAmount(a.data.wallet_balance),e.hideMigrationPopup()}else{const t=c.a.get(a,"message",!1),n=c.a.get(a,"errors.cancelled",!1);let o={description:!1!==t?t:a};e.setSweetAlert(o),!0===n&&(e.hideMigrationPopup(),e.updateUserCCbillSubscriptionStatus())}}}else 0!==u&&w(Math.ceil(s-u)),k(!0);else o=window.confirm(i),!0===o&&await e.migrateUserSubscription();b(!1)}};return Object(n.useEffect)(()=>{!0===m&&(document.querySelector("body").style.overflow="hidden")},[m,h]),o.a.createElement(j.a,null,m&&f?o.a.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#000000ef"}},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered modal-lg modal-dialog-scrollable",role:"document"},o.a.createElement("div",{className:"modal-content"},o.a.createElement("div",{className:"modal-body",style:{backgroundColor:i}},"proxy_user"===g&&o.a.createElement("button",{className:"close",onClick:()=>{_(!1),document.querySelector("body").style.overflow="visible"},style:{color:d,opacity:1}}),o.a.createElement(ye.a,{dangerouslySetInnerHTML:{__html:r.message_content}}),o.a.createElement("div",{className:"row justify-content-center mt-6"},o.a.createElement("button",{type:"button",className:"col-6 col-md-auto btn",onClick:N,style:{backgroundColor:t,color:a},disabled:h},!0===h&&o.a.createElement("span",{className:"spinner-border spinner-border-sm mr-2"}),"Subscribe for $",s),o.a.createElement("button",{type:"button",className:"col-6 btn-danger col-md-auto btn ml-md-6",onClick:()=>{if(!0===l)return E(!0),!1;b(!0),e.cancelSubscription(()=>{b(!1)})},disabled:h},!0===h&&o.a.createElement("span",{className:"spinner-border spinner-border-sm mr-2"}),"Cancel Subscription")))))):null,!0===y&&o.a.createElement(_e.a,{onClose:()=>{E(!1)},requestFrom:"migration"}),!0===x&&o.a.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#00000080"}},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},o.a.createElement("div",{className:"modal-content",style:{backgroundColor:i}},o.a.createElement("div",{className:"modal-header align-items-center"},o.a.createElement("button",{className:"close",onClick:()=>{k(!1)},style:{color:d,opacity:1}})),o.a.createElement("div",{className:"modal-body"},o.a.createElement("div",{className:"container"},o.a.createElement(Ee.a,{type:"subscription",transactionAmount:Number(s),remainAmount:v,onCompleteTransaction:e=>{k(!1),e&&N(e,!1)}})))))))}))),we=a(242),xe=a(51),ke=a(30),Ne=a(69),Se=a(68),Ce=a(20),Te=a(38),Oe=a.n(Te);var Pe=Object(i.b)(e=>({auth:e.auth,errors:e.errors}),{togglePaymentModal:p.m,cancelSubscription:Se.c,cancelStickyIoSubscription:Ne.d,cancelUserSubscription:A.d,setSweetAlert:F.e})(Object(r.g)((function(e){const t=!["/subscribe","/profile/add-new-payment-method"].includes(e.history.location.pathname),[a,i]=Object(n.useState)(t),[r,s]=Object(n.useState)(!1),{cardAuthorizedByAllGateway:l,payment_gateway:d,next_billing_date:m,role:p}=e.auth.user,[u,g]=Object(n.useState)(!1),{is_cancel_subscription_reason_enabled:h,returning_recurring_membership_price:b}=e.auth.appSettings;!0===a&&Object(Ce.b)("show","rebill_fail_popup","rebill failed");let f="Your recent rebill for subscription failed. Please enter your existing card information again or try a new card.";return!0===l&&(f="Your recent rebill for subscription failed. Your existing card is not working, Please add new card."),"forumpay"===d&&(f=`Your subscription renewal of $${b} is due as of ${Oe()(m).format("MM/DD/YYYY")}. Please press renew subscription to fund your wallet in order to pay for your renewal`),o.a.createElement(o.a.Fragment,null,!0===a&&o.a.createElement(xe.a,{closeBtnFontSize:20,title:"I want you back!",handleClose:()=>{i(!1)},showCloseBtn:"proxy_user"===p},o.a.createElement(o.a.Fragment,null,o.a.createElement("p",null,f),o.a.createElement("div",{className:"modal-button row d-flex justify-content-center"},o.a.createElement(ke.a,{loading:r,type:"button",onClick:async()=>{if(!0===h)return g(!0),!1;if(!1===window.confirm("Are you sure you want to cancel your subscription?"))return!1;Object(Ce.b)("button_click","rebill_fail_popup","cancel subscription"),s(!0);return"v2"===c.a.get(e.auth.appSettings,"payment_api_version","v1")?(await e.cancelUserSubscription(),s(!1),!0):!0===e.auth.appSettings.is_sticky_io_enabled?(e.cancelStickyIoSubscription(),s(!1),!0):(e.cancelSubscription(),s(!1),!0)},classes:"btn btn-danger text-white col-6 col-md-auto"},"Cancel Subscription"),o.a.createElement(ke.a,{loading:!1,type:"button",classes:"btn ms-md-3 col-6 col-md-auto ml-md-6",onClick:()=>{Object(Ce.b)("button_click","rebill_fail_popup","renew subscription"),e.history.push("/subscribe")}},"Renew Subscription")))),!0===u&&o.a.createElement(_e.a,{onClose:()=>{g(!1)}}))}))),Ie=a(240),Ae=a(196);const Me=Object(f.a)(),je=async()=>{try{return(await h.a.post(Me+"/api/users/updateRebillNotificationDate")).data}catch(e){return e.response.data}};var Fe=Object(i.b)(e=>({auth:e.auth,errors:e.errors}),{updateUserNotificationDate:je,setSweetAlert:F.e})(Object(r.g)((function(e){const[t,a]=Object(n.useState)(!0),r=Object(i.c)(),{is_notification_enable:s,subscription_detail:l,expiration_date:c,payment_gateway:d}=e.auth.user;let m="";return"forumpay"===d&&(m=`Hi, Your subscription of $${l.recurring_price} will expires on ${Oe()(c).format("MM/DD/YYYY")}. \n        please keep your wallet balance of $${l.recurring_price} or above to continue your subscription.`),o.a.createElement(o.a.Fragment,null,s&&!1===l.is_rebill_failed&&!0===t&&o.a.createElement(xe.a,{showCloseBtn:!1,showHeader:!1},o.a.createElement(o.a.Fragment,null,o.a.createElement("p",{className:"pt-3"},m),o.a.createElement("div",{className:"modal-button row d-flex justify-content-center my-4"},o.a.createElement(ke.a,{loading:!1,type:"button",classes:"btn ms-md-3 col-6 col-md-auto ml-md-4 mb-0",style:{minWidth:"8.375rem"},onClick:async()=>{const t=await je();if(0===t.success){const n={description:t.message};return a(!1),e.setSweetAlert(n)}r({type:b.Ub}),a(!1)}},"OK")))))}))),Le=a(53),De=a(48);const $e=d.a.div`
    .modal {
        display: none;
        background-color: #00000080;
        top: 0 !important;
    }
    .modal-content {
        background-color: ${e=>e.card_background_color};
        width: 100vw;
        margin: 0;
        border-radius: 15px 15px 0 0;
    }
    hr {
        margin: 0;
    }
    p {
        margin: 0;
    }
    span {
        color: ${e=>e.site_font_color} !important;
        margin: 0 5px;
        border: none;
    }
    .instructions {
        display: flex;
        align-item: center;
        padding: 20px 0;
    }
    .circleNumber {
        color : ${e=>e.card_background_color} !important;
        background-color : ${e=>e.site_font_color};
        border-radius : 50%;
        text-align: center;
        width: 25px;
        height: 25px;
        font-weight: bold;
        padding: 1px 0 0 0;
        margin: 0 0 0 -10px;
    }
    .instructions .instructions-text {
        width: 93%;
        text-align: center;
    }
    .highlightIcon {
        padding: 7px 7px 10px 7px;
        background-color : ${e=>e.site_font_color}1f;
        border-radius: 5px;
    }
    .highlightText {
        padding: 8px;
        background-color : ${e=>e.site_font_color}1f;
        border-radius: 5px;
    }
    .close-button {
        position: absolute;
        right: 15px;
        top: 15px
        padding: 5px 17px;
        border-radius: 50%;
        opacity: 1;
        font-size: 30px;
        color: ${e=>e.site_font_color};
        background-color : ${e=>e.site_font_color}1f;
    }
    @media only screen and (max-width: 991px) {
        .modal {
            display: block;
        }
    }
`,Re=d.a.span`
    width: 20px;
    height: 20px;
    display: inline-block;
    background-color: ${e=>e.color};
    mask: url(${e=>e.image});
    -webkit-mask: url(${e=>e.image}) no-repeat center / cover;
    margin: 0 0 -6px 0 !important;
`;var Be=Object(i.b)(e=>({auth:e.auth,chat:e.chat,utility:e.utility}),{handleIsProgressiveWebAppPopupVisible:p.c,sendMobileInfoToServices:p.f,handleProgressiveWebAppPopupShowAgain:p.d})(Object(r.g)((function(e){const{isProgressiveWebAppPopupVisible:t,progressiveWebAppPopupShowAgain:a}=e.utility,i=Object(n.useRef)(!1),{card_background_color:r,site_font_color:s,model_id:l,model_name:d,manifest_icons:m}=e.auth.appSettings,[p,u]=Object(n.useState)(!1),[g,h]=Object(n.useState)(""),b=o.a.createElement("p",{className:"text-center py-5"},"Enjoy a better app-like experience, improved performance, and access ",o.a.createElement("b",null,d)," easier directly from your home screen."),f=o.a.createElement("p",{className:"text-center py-5"},"Do you want to enjoy an app-like experience with this website?  If you follow the steps below you will be able to launch this site right from your phone without using the browser, and the experience will be similar to all of your apps.",o.a.createElement("br",null),o.a.createElement("br",null)," We honor your privacy so therefore, the icon that is saved to your phone is discrete and will not bring any unwanted attention to you."),_=o.a.createElement("p",{className:"text-center py-5"},"We noticed you haven't yet chosen to save the app on your phone. We strongly suggest you do so now to access the site faster, enjoy the full size of your phone screen to view videos and photos, and have an overall app-like experience."),y=o.a.createElement("p",{className:"text-center py-5"},"We are sorry to be a pain, but we noticed that you are still accessing the site via your browser. If you follow the steps below, you will have direct access to the site via a discrete icon on your phone. The site will be much faster, you will have your full screen to enjoy videos and photos, and the site will work just like any other app. What are you waiting for? Just do it!");Object(n.useEffect)(()=>{"50"===localStorage.getItem("showProgressiveWebPopUp")&&localStorage.setItem("showProgressiveWebPopUp",12),E()},[p,t,localStorage.getItem("showProgressiveWebPopUp")]);const E=async()=>{p&&window.innerWidth<=991&&(document.querySelector("body").style.overflow="hidden");let t=localStorage.getItem("showProgressiveWebPopUp");h(b),3===Number(t)&&h(b),12===Number(t)&&h(f),21===Number(t)&&h(_),30===Number(t)&&h(y);let a=!1;if(a=[3,12,21,30].includes(Number(t)),window.innerWidth<=991&&void 0!==window.orientation&&t&&!1!==t&&a&&(u(!0),e.handleIsProgressiveWebAppPopupVisible(!0),e.handleProgressiveWebAppPopupShowAgain(!0),!1===i.current)){i.current=!0;const t={is_running_from_pwa:!0===window.matchMedia("(display-mode: standalone)").matches,user_id:!0===e.auth.isAuthenticated?e.auth.user._id:"",user_agent:window.navigator.userAgent,is_popup_opened:!0,ccbill_subscription_status:e.auth.user.ccbillSubscriptionStatus};await e.sendMobileInfoToServices(t),i.current=!1}};let v=e.chat.userProfileInfo[l]?e.chat.userProfileInfo[l].profile:Object(U.a)("faces/avatar.png");return c.a.isEmpty(m)||(v=m[12].url),o.a.createElement(o.a.Fragment,null,(p||t)&&o.a.createElement(j.a,null,o.a.createElement($e,{card_background_color:r,site_font_color:s},o.a.createElement("div",{className:"modal show",role:"dialog"},o.a.createElement("div",{className:"modal-content position-fixed fixed-bottom"},o.a.createElement("div",{className:"modal-body mt-0 mb-5",style:{padding:"10px 40px"}},o.a.createElement("button",{className:"close close-button",onClick:()=>(()=>{document.querySelector("body").style.overflow="visible";const t=localStorage.getItem("showProgressiveWebPopUp");"50"===t?localStorage.setItem("showProgressiveWebPopUp",12):localStorage.setItem("showProgressiveWebPopUp",Number(t)+1),e.handleIsProgressiveWebAppPopupVisible(!1),u(!1)})()}),!c.a.isEmpty(v)&&o.a.createElement("div",{className:"d-flex justify-content-center my-5 w-100"},o.a.createElement("img",{src:v,alt:"",style:{height:"70px",borderRadius:"10px"},draggable:!1})),o.a.createElement("h3",{className:"text-center m-0"},"Add ",o.a.createElement("b",null,d)," to the home screen"),g,o.a.createElement("hr",null),o.a.createElement("p",{className:"instructions"},o.a.createElement("span",{className:"circleNumber"},"1"),o.a.createElement("span",{className:"instructions-text"},"Tap on the",De.isIOS?o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"highlightIcon"},o.a.createElement(Re,{image:Object(U.a)("images/ios-share.svg"),color:s})),"button below"):o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"highlightIcon"},o.a.createElement(Re,{image:Object(U.a)("images/three-dots.svg"),color:s})),"three-dots"))),o.a.createElement("hr",null),o.a.createElement("p",{className:"instructions"},o.a.createElement("span",{className:"circleNumber"},"2"),o.a.createElement("span",{className:"instructions-text"},De.isIOS?"Then":"Then click",o.a.createElement("span",{className:"highlightText"},De.isIOS?"Add to Home Screen":"Install App"," "))),o.a.createElement("hr",null),"never"!==localStorage.getItem("showProgressiveWebPopUp")&&!0===a&&o.a.createElement("p",{className:"nav-item instructions text-decoration-underline pb-0",style:{width:"max-content"},onClick:()=>{document.querySelector("body").style.overflow="visible",localStorage.setItem("showProgressiveWebPopUp","never"),e.handleIsProgressiveWebAppPopupVisible(!1),u(!1)}},"Don't show this again")))))))}))),Ue=a(270),Ge=a(243),ze=a(55);const We=d.a.div`
width: 100%;

    .modal {
        display: block;
        background-color: #00000080;
    }
    .prompt-box {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100vw;
    }
    .prompt-box-container {
        padding: 20px;
        margin: 0 20px;
        width: 400px;
        text-align: center;
        background-color: ${e=>e.card_background_color};
        color: ${e=>e.site_font_color};
    }
    .prompt-box-description {}
    .subscribe-btn {
        width: 200px;
        border-radius: 5px;
    }
    .cancel-btn{
        margin: 8px 0;
        border: transparent;
        background-color: transparent;
        color: ${e=>e.site_font_color};
        text-decoration: underline;
        padding : 0px;
    }
`;var He=Object(i.b)(e=>({auth:e.auth}),{setPushNotificationPrompt:m.A})(Object(r.g)((function(e){const{appSettings:t,user:a}=e.auth,r=Object(i.c)(),{card_background_color:s,site_font_color:l,is_feed_like_enabled:d,is_feed_comment_enabled:m}=t,p=c.a.get(a,"_id",!1),u=c.a.get(a,"isAdmin",!1),g=c.a.get(a,"is_allow_web_notification",!1),[h,b]=Object(n.useState)("");Object(n.useEffect)(()=>{let e=o.a.createElement("p",null,"Would you like to receive a ",o.a.createElement("b",null,"Push Notification")," any time I send you a direct message, post new content or when I am going to be live on the website.");u&&(e=d&&m?o.a.createElement("p",null,"We will send you a ",o.a.createElement("b",null,"Push Notification")," when user sends a message, purchases any content, sends a tip, on new subscriptions, cancel subscriptions, likes and comments on exclusive content!"):d?o.a.createElement("p",null,"We will send you a ",o.a.createElement("b",null,"Push Notification")," when user sends a message, purchases any content, sends a tip, on new subscriptions, cancel subscriptions, likes on exclusive content!"):m?o.a.createElement("p",null,"We will send you a ",o.a.createElement("b",null,"Push Notification")," when user sends a message, purchases any content, sends a tip, on new subscriptions, cancel subscriptions, comments on exclusive content!"):o.a.createElement("p",null,"We will send you a ",o.a.createElement("b",null,"Push Notification")," when user sends a message, purchases any content, sends a tip, on new subscriptions, cancel subscriptions!")),b(e)},[]);const f=()=>{!1===g&&function(){let e={};e=u?{messages:!0,tip:!0,subscription:!0,rebill_subscription:!0,cancel_subscription:!0,purchase:!0,likes:!0,comments:!0}:{content:!0,offers:!0,live_stream:!0,messages:!0};r(Object(Ge.b)({user_id:p,web_notification_preferences:e}))}(),Object(ze.g)(),_(!0),Object(ze.e)(p),u||Object(ze.a)(a)},_=t=>{const a=localStorage.getItem("hide_notification_prompt")?JSON.parse(localStorage.getItem("hide_notification_prompt")):{};a[p]=t,localStorage.setItem("hide_notification_prompt",JSON.stringify(a)),e.setPushNotificationPrompt(!1)};return o.a.createElement(We,{card_background_color:s,site_font_color:l},o.a.createElement("div",{className:"modal fade show",role:"dialog"},o.a.createElement("div",{className:"prompt-box",role:"document"},o.a.createElement("div",{className:"prompt-box-container"},o.a.createElement("div",{className:"prompt-box-description"},h),o.a.createElement("div",{className:"prompt-box-btn"},o.a.createElement(ke.a,{loading:!1,type:"submit",onClick:()=>f(),classes:"mx-0 my-2 subscribe-btn"},"Subscribe"),o.a.createElement("button",{className:"cancel-btn",type:"button",onClick:()=>{_(!1)}},"NO THANKS, MAYBE AT ANOTHER TIME"))))))}))),qe=a(59),Ve=a(161);const Ye=d.a.div`
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
`,Ke=d.a.div`
    button:focus {
        box-shadow: none;
    }

    @media(max-width: 768px) {
        .left-button,
        .right-button {
            width: 100%;
        }
        .left-button {
            margin-bottom: 10px !important;
        }
    }
`,Je=d.a.div` 
    color: ${e=>e.siteFontColor};
    text-decoration: ${e=>"underline "+e.siteFontColor} !important;
    cursor: pointer;

    button:focus {
        box-shadow: none;
    }

    i {
        font-size: 13px;
    }
`,Xe=d.a.a`
    color: ${e=>e.siteFontColor};
    text-decoration: underline;

    :hover {
        color: ${e=>e.siteFontColor};
    }
`;var Qe=Object(i.b)(e=>({auth:e.auth,universalLogin:e.universalLogin,utility:e.utility,login:e.login}),{forgotPassword:m.i,setConfirmSweetAlert:F.d,setAlertLoader:F.c,removeConfirmSweetAlert:F.a,universalLoginDifferentPasswordSite:qe.k,showDifferentPasswordSitePopup:qe.e,loginButtonLoading:m.n,setUniversalLoginDifferentPasswordPopupVisibility:p.g})(Object(r.g)((function(e){const[t,a]=Object(n.useState)(!1),[i,r]=Object(n.useState)(!1),[s,l]=Object(n.useState)(!1),{site_font_color:d}=e.auth.appSettings,{forgotPassword:m,setConfirmSweetAlert:p,setAlertLoader:u,removeConfirmSweetAlert:g,universalLogin:h,showDifferentPasswordSitePopup:b,utility:f}=e,{differentPasswordSiteList:_}=h,{email:y}=e.login.loginUserInfo;let E=!f.isProgressiveWebAppPopupVisible;return Object(n.useEffect)(()=>{e.setUniversalLoginDifferentPasswordPopupVisibility(!0)},[]),E?o.a.createElement(o.a.Fragment,null,o.a.createElement(xe.a,{classes:"modal-md pb-0",modalMaxHeight:"30em",showHeader:!1,showCloseBtn:!1},o.a.createElement("p",{className:"mb-2"},"We've found that your email is being used across multiple McCandless Group website",_.length>1&&"s",", but your password is different. Click ",o.a.createElement("strong",null,"SEND RESET PASSWORD MAIL")," to reset your password to use the same credentials across all websites."),o.a.createElement("p",null,"Please click ",o.a.createElement("strong",null,"REMIND ME LATER")," to continue without changing your password."),_.length>0&&!1===s&&o.a.createElement(Je,{siteFontColor:d,onClick:()=>{l(!s)}},"Show all website",_.length>1&&"s",o.a.createElement("i",{className:"fas fa-chevron-down pl-1"})),_.length>0&&s&&o.a.createElement(Ye,null,_.map((e,t)=>o.a.createElement("div",{key:t},((e,t)=>{const a="https://"+e;return o.a.createElement(Xe,{siteFontColor:d,className:"px-0",href:a,index:t,rel:"noopener noreferrer",target:"_blank"},e)})(e,t)))),o.a.createElement(Ke,{className:"pt-4"},o.a.createElement(ke.a,{classes:"btn float-left m-0 left-button",loading:t,onClick:()=>{e.setUniversalLoginDifferentPasswordPopupVisibility(!1);let t=Number(localStorage.getItem("differentPasswordPopupReminderCount"));t>=45?localStorage.setItem("differentPasswordPopupReminderCount",1):localStorage.setItem("differentPasswordPopupReminderCount",t+1),b(!1)},type:"button"},"Remind Me Later"),o.a.createElement(ke.a,{classes:"btn float-right m-0 right-button",loading:t,onClick:()=>{r(!0),p({description:"Are you sure you want to reset your password?"})},type:"button"},"Send Reset Password Mail"))),i&&o.a.createElement(Ve.a,{onConfirm:()=>{u(!0),(async()=>{e.setUniversalLoginDifferentPasswordPopupVisibility(!1);let t=y;c.a.isEmpty(y)&&(t=e.auth.user.email),a(!0);const n={email:t,requestFrom:"oldUser"};await m(n),g(),b(!1),a(!1)})()},onCancel:()=>r(!1)})):o.a.createElement(o.a.Fragment,null)})));const Ze=d.a.div`
    @media (min-width: ${G.c.mobileS}) and (max-width: ${G.c.tabletL}) {
        padding-bottom:${De.isIOS&&window.matchMedia("(display-mode: standalone)").matches?"90px":"60px"};
    }
    
    @media (max-width: 320px) {
        padding-bottom:60px;
    }
`;class et extends n.Component{getUTMParams(e){const t=new URLSearchParams(e),a={};let n=!1;if(["source","medium","campaign","term","content"].forEach(e=>{const o=t.get("utm_"+e);if(null!==o){n=!0;a["utm_"+e]=o}}),!0===n){(new Ie.a).set("pcp_utm_params",JSON.stringify(a),{maxAge:Date.now()+31536e3})}}componentDidMount(){const{is_crypto_payment_enabled:e,enable_forumpay_payment_live_mode:t}=this.props.auth.appSettings;if(!1===e)return;const a=document.createElement("script");a.src=!0===t?"https://api.forumpay.com/pay/events/payment.js":"https://sandbox.api.forumpay.com/pay/events/payment.js",document.body.appendChild(a)}render(){this.getUTMParams(this.props.location.search);const e=window.location.pathname,{maintenance_mode:t,payment_api_version:a,enable_ccbill_rest_api:n,is_universal_login_enabled:i}=this.props.auth.appSettings,{showAlert:r}=this.props.sweetAlert,{setNotificationPrompt:s}=this.props.pushNotification,l="true"===Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_NODE_ENV:"production",REACT_APP_INSTAGRAM_APP_ID:"2495735110694117",REACT_APP_PUBLIC_URL:"http://localhost:3000"}).REACT_APP_MAINTENANCE_MODE||!0===t,d=this.props.copyToClipboard.toastType,{isAdmin:m,isRebillFailed:p,logout_user_loader:u,role:g}=this.props.auth.user;let{showDifferentPasswordSitePopup:h}=this.props.universalLogin,b=!0;(navigator.standalone||window.matchMedia("(display-mode: standalone)").matches)&&(b=!1);const f=localStorage.getItem("differentPasswordPopupReminderCount");f&&[0,12,23,31,45].includes(Number(f))&&(h=!0);const _=e.split("/");return"change-password"===_[_.length-2]&&(h=!1),"/login"!==e&&l&&(!1===m||void 0===m)&&c.a.isEmpty(localStorage.getItem("dev"))?o.a.createElement(j.a,null,o.a.createElement(ge.a,null)):o.a.createElement(o.a.Fragment,null,u?o.a.createElement("div",{className:"d-flex flex-column min-vh-100 justify-content-center align-items-center"},o.a.createElement(Le.a,{loading:u,size:10})):o.a.createElement(o.a.Fragment,null,i&&!1===m&&h&&o.a.createElement(Qe,null),o.a.createElement(Ae.a,null),o.a.createElement(Fe,null),o.a.createElement(ie,null),o.a.createElement(Ze,{id:"RemovePadding"},this.props.children),e.includes("/private-chat")?o.a.createElement(o.a.Fragment,null):o.a.createElement(re.a,null),o.a.createElement(ce,null),o.a.createElement(pe,null),o.a.createElement(ve,null),"copy"===d&&o.a.createElement(ue.a,{toastContent:"Copied to clipboard."}),o.a.createElement(be,null),o.a.createElement(he.a,null),!0===this.props.utility.showPaymentModel&&o.a.createElement(we.a,{addCardAndSubscription:!1}),!0===p&&!1===m&&("v2"===a||"v1"===a&&!0===n)&&o.a.createElement(Pe,null),b&&o.a.createElement(Be,null),o.a.createElement(Ue.a,null),s&&!1===r&&"live_stream_manager"!==g&&o.a.createElement(He,null)))}}t.a=Object(r.g)(Object(i.b)(e=>({auth:e.auth,copyToClipboard:e.copyToClipboard,utility:e.utility,sweetAlert:e.sweetAlert,pushNotification:e.pushNotification,universalLogin:e.universalLogin}))(et))},112:function(e,t,a){"use strict";const n=a(6).a.div`
    * {
        color: inherit !important;
        background-color: inherit !important;
    }
`;t.a=n},113:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(6),r=a(30),s=a(8),l=a(306),c=a(42);const d=i.a.div`
    .modal-body {
        padding-bottom: 0px !important;
    }

    .modal-content{
        min-width: fit-content;
    }
`,m=i.a.div`
    width: 100%;

    .media-modal-body {
        height: 96vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .modal {
        display: block;
    }

    .media-modal-content {
        color: ${e=>e.siteFontColor};
        min-height: ${e=>e.modalHeight} !important;
        width: 100vw;
        max-width: 1200px !important;
    }

    .modal-header, .modal-body {
        background-color: ${e=>e.cardBackgroundColor};
    }

    .modal-body {
        max-height: ${e=>e.modalBodyMaxHeight};
    }

    .close {
        color: ${e=>e.siteFontColor};
        opacity: 1;
    }

    .close:hover {
        color: ${e=>e.siteFontColor};
        opacity: 1;
        cursor: pointer;
    }
    .modal-dialog-scrollable .modal-body {
        overflow-x: hidden;
        padding: 16px 16px 15px 16px;
    }

    .select {
        background-color: ${e=>e.cardBackgroundColor};
        z-index: 11;
    }

    @media (min-width: 576px) {
        .media-modal-dialog {
            width: 100vw;
            max-width: 1200px !important;
        }
    }
`;t.a=Object(s.b)(e=>({auth:e.auth,mediaState:e.media}),{resetState:c.j})(e=>{const{card_background_color:t,site_font_color:a}=e.auth.appSettings,i=Object(n.useRef)(null),[s,c]=Object(n.useState)([]),[p,u]=Object(n.useState)(!1);return Object(n.useEffect)(()=>{c(t=>[...e.prevSelectedMedia,...t])},[e.prevSelectedMedia]),Object(n.useEffect)(()=>()=>{"/"===window.location.pathname&&(document.body.style.overflow="auto"),e.resetState()},[]),o.a.createElement(d,null,o.a.createElement(m,{siteFontColor:a,cardBackgroundColor:t},o.a.createElement("div",{className:"modal fade show",role:"dialog"},o.a.createElement("div",{id:"media-selection-popup",className:"media-modal-dialog modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},o.a.createElement("div",{className:"media-modal-content modal-content position-relative"},o.a.createElement("div",{className:"modal-header align-items-center"},o.a.createElement("h5",{className:"modal-title"},e.title?e.title:"Content Manager"),o.a.createElement("button",{className:"close",onClick:()=>{e.onClose()}})),o.a.createElement("div",{id:"media-modal-body",className:"media-modal-body modal-body p-0",ref:i},o.a.createElement(l.default,{isPopup:!0,onSelection:e=>{c(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},setShowSelectButton:u,prevSelectedMedia:s}),p&&o.a.createElement("div",{className:"select position-sticky bottom-0 d-flex justify-content-center"},o.a.createElement(r.a,{loading:0===s.length,onClick:()=>{e.onSelection(s)},style:{width:window.screen.width<992?"92%":"auto"}},"Select"))))))))})},115:function(e,t,a){"use strict";a.d(t,"b",(function(){return m})),a.d(t,"c",(function(){return p})),a.d(t,"d",(function(){return u})),a.d(t,"a",(function(){return g})),a.d(t,"e",(function(){return h})),a.d(t,"f",(function(){return b}));var n=a(3),o=a.n(n),i=a(2),r=a.n(i),s=a(22),l=a(4),c=a(1);const d=Object(s.a)(),m=e=>()=>{o.a.get(d+"/api/ccbill/get-payment-card").then(t=>{e(t.data)}).catch(t=>{alert(t.response.data.message),e(t.response)})},p=(e,t)=>a=>{o.a.post(d+"/api/ccbill/set-primary-card",e).then(e=>{if(t(e.data),"crypto_currency"===e.data.data.paymentMethod){a(b({payment_method:"credit_card"}))}}).catch(e=>{const n={description:e.response.data.message};a(Object(l.e)(n)),t(e.response)})},u=(e,t)=>a=>{o.a.post(d+"/api/ccbill/remove-card",e).then(e=>{t(e.data)}).catch(e=>{const n={description:e.response.data.message};a(Object(l.e)(n)),t(e.response)})},g=()=>async()=>{try{return(await o.a.get(d+"/api/v2/get-payment-card")).data}catch(e){return alert(e.response.data.message),e.response}},h=e=>async t=>{try{return await o.a.post(d+"/user/change-payment-method",e),t(b(e)),!0}catch(a){const e=r.a.get(a,"response.data.message","There was problem while update payment method");return t(Object(l.e)({description:e})),!1}},b=e=>({type:c.mc,payload:e})},118:function(e,t,a){"use strict";a.d(t,"g",(function(){return p})),a.d(t,"a",(function(){return u})),a.d(t,"c",(function(){return g})),a.d(t,"e",(function(){return h})),a.d(t,"b",(function(){return b})),a.d(t,"d",(function(){return f})),a.d(t,"f",(function(){return _})),a.d(t,"j",(function(){return y})),a.d(t,"i",(function(){return E})),a.d(t,"h",(function(){return v})),a.d(t,"k",(function(){return w}));var n=a(3),o=a.n(n),i=a(2),r=a.n(i),s=a(22),l=a(4),c=a(43),d=a(1);const m=Object(s.a)(),p=e=>async t=>{const a=m+"/api/coupon/save";try{const n=await o.a.post(a,e);return t(Object(c.Mb)("enable_coupons",e.enable_coupons)),t(Object(c.Mb)("display_coupon_box_to_user",e.display_coupon_box_to_user)),void t(Object(l.e)({description:n.data.message}))}catch(n){const e=r.a.get(n,"response.data.message","Error while save coupon code settings.");throw t(Object(l.e)({description:e})),new Error(e)}},u=e=>async t=>{const a=m+"/api/coupon/add";try{const n=await o.a.post(a,e);return void t(Object(l.e)({description:n.data.message}))}catch(n){const e=r.a.get(n,"response.data.message","Error while add coupon code.");throw t(Object(l.e)({description:e})),new Error(e)}},g=e=>async t=>{const a=m+"/api/coupon/edit";try{const n=await o.a.post(a,e);t(Object(l.e)({description:n.data.message}));const i=r.a.get(n,"data.data.couponDetails",{});return r.a.isEmpty(i)||t(k(i)),n.data.data.couponDetails}catch(n){const e=r.a.get(n,"response.data.message","Error while update coupon code details.");throw t(Object(l.e)({description:e})),new Error(e)}},h=e=>async t=>{const a=m+"/api/coupon/get-coupons";try{const n={params:{pageNum:e}},i=await o.a.get(a,n),s=r.a.get(i,"data.data.couponList",[]);t(x(s));const l=r.a.get(i,"data.data.paginationData",{currentPage:1,totalPages:0,totalRows:0,limit:0});return t(N(l)),i.data.data}catch(n){const e=r.a.get(n,"response.data.message","Error while save coupon code settings.");throw t(Object(l.e)({description:e})),new Error(e)}},b=e=>async t=>{const a=m+"/api/coupon/check";try{const n=await o.a.post(a,e);return t(v(e.code)),t(E(n.data.data)),t(w("valid")),n.data.data}catch(n){t(v("")),t(E({})),t(w("invalid"));const e=r.a.get(n,"response.data.errors.code",""),a=r.a.get(n,"response.data.message","Something went wrong please try again after some time");throw r.a.isEmpty(e)&&t(Object(l.e)({description:a})),new Error(e)}finally{t(y(!1))}},f=(e,t)=>async a=>{const n=m+"/api/coupon/get-details";try{const a={params:{couponId:e,pageNum:t}};return(await o.a.get(n,a)).data.data}catch(i){const e=r.a.get(i,"response.data.message","Error while get coupon details.");throw a(Object(l.e)({description:e})),new Error(e)}},_=()=>e=>{e(y(!1)),e(E({})),e(v("")),e(w("notChecked"))},y=e=>({type:d.Bd,payload:e}),E=e=>({type:d.kc,payload:e}),v=e=>({type:d.jc,payload:e}),w=e=>({type:d.Dd,payload:e}),x=e=>({type:d.Ad,payload:e}),k=e=>({type:d.Td,payload:e}),N=e=>({type:d.Cd,payload:e})},119:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(8);t.a=Object(i.b)(e=>({auth:e.auth}),{})((function(e){Object(n.useEffect)(()=>(document.querySelector("body").style.overflow="hidden",()=>{document.querySelector("body").style.overflow="visible"}));const{site_font_color:t,card_background_color:a}=e.auth.appSettings;return o.a.createElement("div",{className:"modal fade show text-left",role:"dialog",style:{display:"block",backgroundColor:"#00000080"}},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},o.a.createElement("div",{className:"modal-content"},o.a.createElement("div",{className:"modal-header",style:{backgroundColor:a}},o.a.createElement("button",{className:"close",onClick:t=>{t.preventDefault(),e.setHelperModelOpen(!1)},style:{color:t,opacity:1}})),o.a.createElement("div",{className:"modal-body",style:{backgroundColor:a}},o.a.createElement("p",null,"A preview can be an image or video that the subscriber can view at no cost to help sell the locked content. While previews are a great way to give your subscribers a sneak peak of your content, it can also backfire if the preview does not give the subscriber a true indication of what you are selling.",o.a.createElement("br",null),o.a.createElement("br",null),"For example, if you have a 5 photo gallery and choose to use your most PG13 photo from the gallery as the preview, the subscriber might get the wrong impression and think that the rest of the gallery is not what they are interested in.  For this reason, if you do use previews, make sure it helps to SELL the gallery. Some ideas that we have found to be successful:"),o.a.createElement("ul",null,o.a.createElement("li",null,"take your most sexy image from the gallery and cover up the parts you don't want them to see with a stickers - for this method we suggest you make it clear in the caption that the full unlocked gallery does not include stickers."),o.a.createElement("li",null,"blur one of the photos just enough to allow the subscribers to see what it is they are buying, without giving away too much of the photo."),o.a.createElement("li",null,"for videos, you can use a 5-10 second clip of the full video and end it just as you are about to start the sexy part of the full video.")),o.a.createElement("p",null,"In summary, use your imagination, there is no right or wrong method.  However, remember that the preview is meant to sell the full upload, so be sure that it accomplishes that goal!")))))}))},15:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return o}));const n=e=>"https://d3cn8z1d1ca676.cloudfront.net/"+e,o=()=>({instagram:"social-icons/svg/instagram.svg",tiktok:"social-icons/svg/tiktok.svg",www:"social-icons/svg/www-2.svg",twitter:"social-icons/svg/twitter.svg",twitch:"social-icons/svg/twitch.svg",discord:"social-icons/svg/discord.svg",facebook:"social-icons/svg/facebook.svg",snapchat:"social-icons/svg/snapchat.svg",youtube:"social-icons/svg/youtube.svg",amazon:"social-icons/svg/amazon.svg",brush_stroke:"social-icons/svg/brush-stroke.svg"})},153:function(e,t,a){"use strict";a.d(t,"b",(function(){return m})),a.d(t,"d",(function(){return p})),a.d(t,"c",(function(){return u})),a.d(t,"a",(function(){return g}));var n=a(3),o=a.n(n),i=a(22),r=a(1),s=a(2),l=a.n(s),c=a(4);const d=Object(i.a)(),m=(e,t)=>a=>{o.a.post(d+"/api/opt-in-email-settings/update-user-opt-in-status",e).then(n=>{1===n.data.success&&(["dismissed","no_thanks","no_thanks_opt_out"].includes(e.opt_in_status)&&a(b()),t())}).catch(e=>{let t=l.a.get(e,"response.data.message","There was a problem in update status.");return alert(t)})},p=(e,t)=>a=>{o.a.post(d+"/api/opt-in-email-settings/user-opt-in-email-verification",e).then(e=>{1===e.data.success&&(a(b()),alert("Email verified successfully."),t())}).catch(e=>{let a=l.a.get(e,"response.data.message","There was a problem in opt in email verification.");alert(a),t({})})},u=(e,t)=>a=>{o.a.post(d+"/api/change-email-settings/user-change-email-verification",e).then(e=>{1===e.data.success&&(a(b()),a(f(e.data.data)),a(Object(c.e)({description:"Change Email Verified Successfully"})),t())}).catch(e=>{let n=l.a.get(e,"response.data.message","There was a problem in change email verification.");a(Object(c.e)({description:n})),t({})})},g=()=>e=>{e(h())},h=()=>({type:r.ge}),b=()=>({type:r.fe}),f=e=>({type:r.Zd,payload:e})},154:function(e,t,a){"use strict";a.d(t,"b",(function(){return m})),a.d(t,"e",(function(){return p})),a.d(t,"a",(function(){return u})),a.d(t,"d",(function(){return g})),a.d(t,"g",(function(){return h})),a.d(t,"f",(function(){return b})),a.d(t,"c",(function(){return f}));var n=a(3),o=a.n(n),i=a(2),r=a.n(i),s=a(22),l=a(1),c=a(4);const d=Object(s.a)(),m=e=>()=>{o.a.get(d+"/api/resubscribe-offer/get-settings").then(t=>{e(t.data.data)}).catch(t=>{alert(t.message),e()})},p=(e,t)=>a=>{o.a.put(d+"/api/resubscribe-offer/save-settings",e).then(e=>{a(Object(c.e)({description:e.data.message})),t(e.data)}).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");alert(a),t()})},u=()=>e=>{o.a.get(d+"/api/offer/check-offer").then(t=>{e(h(t.data.data))}).catch(e=>{const t=r.a.get(e.response,"data.message","Invalid request.");alert(t)})},g=(e,t)=>a=>{o.a.put(d+"/api/resubscribe-offer/save-offer",e).then(e=>{t(e.data),a(Object(c.e)({description:e.data.message}))}).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");alert(a),t()})},h=e=>({type:l.Lc,payload:e}),b=e=>async t=>{try{const a=await o.a.post(d+"/api/resubscribe-offer/request-new-resubscription-user-report",e);t(Object(c.e)({description:a.data.message}))}catch(a){const e=r.a.get(a.response,"data.message","Invalid request.");t(Object(c.e)({description:e}))}},f=e=>async t=>{try{return(await o.a.post(d+"/api/resubscribe-offer/get-new-resubscription-user-report",e)).data}catch(a){const e=r.a.get(a.response,"data.message","Invalid request.");t(Object(c.e)({description:e}))}}},156:function(e,t,a){"use strict";a.d(t,"d",(function(){return p})),a.d(t,"b",(function(){return u})),a.d(t,"c",(function(){return g})),a.d(t,"a",(function(){return h}));var n=a(3),o=a.n(n),i=a(2),r=a.n(i),s=a(22),l=a(4),c=a(43),d=a(1);const m=Object(s.a)(),p=e=>async t=>{const a=m+"/api/feed-tags/";try{const n=await o.a.post(a,e),i={description:n.data.message};t({type:d.Gd,payload:n.data.data}),t(Object(l.e)(i))}catch(n){const e={description:r.a.get(n.response,"data.message","Invalid request.")};t(Object(l.e)(e))}},u=e=>async t=>{const a=m+"/api/feed-tags/add-or-update";try{const n=await o.a.post(a,e);return t({type:d.Fd,payload:n.data.data.feed_tags}),t({type:d.oc,payload:n.data.data.feed_tags}),n.data}catch(n){return n.response}},g=e=>async t=>{const a=`${m}/api/feed-tags/delete/${e}`;try{const e=await o.a.delete(a),n={description:e.data.message};return t({type:d.Fd,payload:e.data.data}),t({type:d.oc,payload:e.data.data}),t(Object(l.e)(n)),e.data}catch(n){const e={description:n.message};t(Object(l.e)(e))}},h=e=>async t=>{const a=m+"/api/feed-tags/add-or-remove-tag";try{const n=await o.a.post(a,e);return t(Object(c.g)(()=>{})),n.data}catch(n){return n.response}}},158:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(8),r=a(6);const s="320px",l="767px",c="1024px",d=r.a.div`
    position: absolute;
    top: calc(50% - 15px);
    left: 0;
    cursor: pointer;
    z-index: 1;
    padding: 12px 5px;
`,m=r.a.div`
    position: absolute;
    top: calc(50% - 15px);
    right: 0;
    cursor: pointer;
    z-index: 1;
    padding: 12px 5px;
`,p=r.a.img`
    cursor: ${e=>e.isLocked?"inherit":"pointer"};
    height: calc(60vh - 70px);
    object-fit: cover;
    width: 100%;

    @media (min-width: ${s}) and (max-width: ${l}) {
        height: auto;
        max-height: auto;
    }

    @media (min-width: ${l}) and (max-width: ${c}) {
        height: auto;
        max-height: auto;
    }
`,u=r.a.div`
    position: absolute;
    top: calc(48.5%);
    left: calc(47.5%);
    cursor: pointer;

    .video-button-span {
        font-size: 30px;
        color: rgb(211, 211, 211);
        background-color: black;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        position: relative;
        display: inline-block;
    }

    .play-icon {
        font-size: 30px;
        position: absolute;
        border-radius: 51px;
        left: -5px;
        top: -5px;
    }
`;t.a=Object(i.b)(e=>({auth:e.auth}))(e=>{const{media:t,setCurrentMediaIndex:a,isLocked:i,contentLeftForProcessing:r}=e,[s,l]=Object(n.useState)(0),c=!(r>0)&&(!1===i&&t.length>1);let g="";return t[s]&&(g=!0===Boolean(i)?t[s].blur_url:"video"===t[s].content_type?t[s].thumbnail_url:t[s].url),o.a.createElement("div",{style:{position:"relative"}},c&&o.a.createElement(d,{onClick:()=>{let e=s-1;if(s<=0)return e=t.length-1,a(e),l(e);a(e),l(e)}},o.a.createElement("i",{className:"fas fa-chevron-left fa-2x"})),o.a.createElement("div",{className:"text-center"},o.a.createElement("div",{style:{position:"relative"},onClick:()=>{!0!==Boolean(i)&&0===Number(r)&&e.openDlgBlog(e.i,s)}},Number(r)>0||void 0===t?o.a.createElement("span",{className:"mb-2",style:{height:"150px",display:"inline-block"}},"This post is under process.",o.a.createElement("br",null),"It will be visible once processing is completed."):o.a.createElement(o.a.Fragment,null,o.a.createElement(p,{draggable:!1,src:g,alt:"",isLocked:e.isLocked})),0===Number(r)&&!1===Boolean(i)&&t[s]&&"video"===t[s].content_type&&o.a.createElement(u,null,o.a.createElement("span",{className:"video-button-span"},o.a.createElement("i",{className:"fas fa-play-circle play-icon"}))))),c&&o.a.createElement(m,{onClick:()=>{let e=s+1;if(s>=t.length-1)return a(0),l(0);a(e),l(e)}},o.a.createElement("i",{className:"fas fa-chevron-right fa-2x"})))})},161:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(8),s=a(127),l=a.n(s),c=a(4),d=a(6),m=a(30);const p=d.a.div`
    width: 100%;
    p {
        color: ${e=>e.color} !important;
        font-size: 15px !important;
        margin-top: 0px !important;
        white-space: pre-line;
    }
    .custom-cancel-btn {
        text-transform: capitalize !important;
    }
    .custom-cancel-btn:hover {
        text-decoration: none !important;
    }
`;t.a=Object(r.b)(e=>({auth:e.auth,sweetAlert:e.sweetAlert}),{setConfirmSweetAlert:c.d,removeConfirmSweetAlert:c.a})(Object(i.g)((function(e){const{card_background_color:t,content_color:a,site_font_color:n,content_font_color:i}=e.auth.appSettings,{confirmDescription:r,onConfirmUrl:s,showConfirmAlert:c,isLoading:d}=e.sweetAlert;return o.a.createElement(o.a.Fragment,null,!0===c&&o.a.createElement(p,{backgroundColor:a,color:n,btnFontColor:i},o.a.createElement(l.a,{title:"",hideCloseButton:!0,style:{backgroundColor:t,color:i},closeOnClickOutside:!1,openAnim:!1,allowEscape:!1,showConfirm:!1},""!==r&&o.a.createElement("p",null,r),o.a.createElement("div",null,o.a.createElement(m.a,{type:"button",classes:"custom-cancel-btn",onClick:()=>{e.onCancel(),e.removeConfirmSweetAlert()},loading:d},"CANCEL"),o.a.createElement(m.a,{classes:"ml-3",type:"button",variant:"primary",onClick:()=>{e.onConfirm(),""!==s&&e.history.push(s)},loading:d},d?o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"spinner-border spinner-border-sm mr-2"}),"OK"):"OK")))))})))},162:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(8),s=a(2),l=a.n(s),c=a(30),d=a(51),m=a(237),p=a(33),u=a(4),g=a(265);t.a=Object(r.b)(e=>({auth:e.auth,promotion:e.promotion,resubscriptionOffer:e.resubscriptionOffer,payment:e.payment,couponCode:e.couponCode}),{setSweetAlert:u.e})(Object(i.g)((function(e){const{wallet_settings:t,content_font_color:a,content_color:i,membership_price:r,recurring_membership_price:s,returning_membership_price:u,enable_promotion:h,returning_recurring_membership_price:b,enable_coupons:f}=e.auth.appSettings,{isSubscribedEver:_,wallet_amount:y,isRebillFailed:E}=e.auth.user,v=l.a.get(e,"remainAmount",0),{isPaymentProcessing:w}=e.payment,{subscriptionPromotion:x}=e.promotion,k=Object(n.useMemo)(()=>{let e=[];return l.a.isEmpty(t.add_fund_default_options)||(e=t.add_fund_default_options.split(",").filter(e=>parseFloat(e)>parseFloat(v))),e},[t,v]),[N,S]=Object(n.useState)(0===v?k[3]:v),[C,T]=Object(n.useState)(N),[O,P]=Object(n.useState)(!1),[I,A]=Object(n.useState)(!1);let M=parseInt(t.add_fund_minimum_amount,10),j=parseInt(t.add_fund_maximum_amount,10);const F=Object(n.useMemo)(()=>"subscription"===e.type?`ADD $${N} TO WALLET AND SUBSCRIBE`:"blog"===e.type||"chat"===e.type?`ADD $${N} TO WALLET AND UNLOCK`:"tips"===e.type?`ADD $${N} TO WALLET AND TIP`:`ADD $${N} TO WALLET`,[e.type,N]);let L=Number(r),D=Number(s);!0===_&&(L=Number(u),D=Number(b));const{couponCodeDetails:$,couponStatus:R}=e.couponCode;return!1===l.a.isEmpty($)&&"valid"===R&&("percentage"===$.discount_type?(L=Number(L)-Number(L)*$.discount_value_for_initial/100,0!==$.discount_value_for_recurring&&(D=Number(D)-Number(D)*$.discount_value_for_recurring/100)):(L=Number(L)-$.discount_value_for_initial,0!==$.discount_value_for_recurring&&(D=Number(D)-$.discount_value_for_recurring)),L=parseFloat(L.toFixed(2)),D=parseFloat(D.toFixed(2))),l.a.isEmpty($)&&h&&!1!==x&&("ALL_USERS"===x.applicable_to||!0===_&&"OLD_USERS"===x.applicable_to||!0!==_&&"NEW_USERS"===x.applicable_to)&&(L=x.subscription_initial_amount,D=x.subscription_recurring_amount),l.a.isEmpty($)&&!0===e.resubscriptionOffer.isUserEligibleForOffer&&(L=0!==e.resubscriptionOffer.offer.give_free_month_subscription?"0.00":e.resubscriptionOffer.offer.recurring_price,D=e.resubscriptionOffer.offer.recurring_price),o.a.createElement(p.a,null,o.a.createElement("div",{className:"p-3 text-center"},!1===I&&o.a.createElement(o.a.Fragment,null,o.a.createElement("h3",{className:"mb-2"},"CRYPTO FUNDING AMOUNT"),o.a.createElement("p",{className:"text-start"},(()=>{if("subscription"===e.type){let e="";return 0===parseFloat(L)?`Our minimum cryptocurrency funding amount is $${M}.`:(e=parseFloat(D)===parseFloat(L)?`$${L}/month`:`$${L} for First Month then $${D}/month`,`Your purchase request is for ${e}. Our minimum cryptocurrency funding\n            amount is $${M}.`)}return"blog"===e.type||"chat"===e.type||"tips"===e.type?0===v?`Your purchase request is for $${e.transactionAmount}. Our minimum cryptocurrency funding\n                amount is $${M}.`:`Your purchase request is for $${e.transactionAmount} and your current balance is $${y}. You will need to fund your balance with at least $${Math.ceil(e.transactionAmount-y)}.`:""})()," Please choose an amount to fund your balance via this cryptocurrency transaction. You can choose any amount up to $",j," USD. All funds will be kept in site balance and will be available for future transactions on this site."),o.a.createElement("div",null,0!==v&&!1===k.includes(v.toString())&&o.a.createElement(c.a,{type:"button",onClick:()=>S(v),classes:"px-4",style:{fontSize:"16px",backgroundColor:N===v?i:a,color:N===v?a:i}},"$",v),k.length>0&&k.map((e,t)=>o.a.createElement(c.a,{key:t,type:"button",onClick:()=>{S(e),T(e)},classes:"px-4",style:{fontSize:"16px",backgroundColor:N===e?i:a,color:N===e?a:i},loading:!1},"$",e)),o.a.createElement(c.a,{type:"button",onClick:()=>P(!0),classes:"px-4",style:{fontSize:"16px",backgroundColor:a,color:i},loading:!1},"Other")),f&&"subscription"===e.type&&!0!==E&&o.a.createElement(g.a,{classes:"mt-3 text-start"}),o.a.createElement("div",{className:"mt-3"},o.a.createElement(c.a,{type:"button",onClick:()=>{A(!0)},classes:"px-4",style:{fontSize:"16px",whiteSpace:"break-spaces"},loading:w},F)),O&&o.a.createElement(d.a,{title:"Other amount",handleClose:()=>P(!1),closeBtnFontSize:"initial",expandBackground:!0,parentModalId:"add-fund-wallet"},o.a.createElement("input",{type:"number",name:"amount",className:"form-control",value:C,onChange:e=>T(e.target.value),min:M,max:j,placeholder:"Enter fund amount"}),o.a.createElement(c.a,{classes:"mt-5",type:"button",onClick:()=>l.a.isEmpty(C)?e.setSweetAlert({description:"Please enter a valid amount"}):/^[0-9]*(\.[0-9]{0,2})?$/.test(C)?parseInt(C,10)>j||parseInt(C,10)<M?e.setSweetAlert({description:`Choose a fund amount between ${M} and ${j}`}):(P(!1),void S(C)):e.setSweetAlert({description:"Please enter a valid amount"}),loading:!1},"Confirm"))),I&&o.a.createElement(m.a,{requestFrom:e.requestFrom,onHideAddFundsForm:e.onHideAddFund,hideCryptoFormStatus:e.type,onHideCryptoForm:e.onHideAddFundForm,amount:N,onChangeAmount:()=>A(!1),onCompleteTransaction:t=>{A(!1),void 0!==e.onCompleteTransaction&&e.onCompleteTransaction(t)}})))})))},164:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(27),r=a.n(i);t.a=e=>{let{name:t,placeholder:a,value:n,label:i,error:s,info:l,type:c="text",onChange:d,disabled:m,id:p,required:u,maxLength:g}=e;return o.a.createElement("div",{className:"form-group "},o.a.createElement("label",{className:"float-left",htmlFor:p},i),o.a.createElement("input",{type:c,className:r()("form-control",{"is-invalid":s}),placeholder:a,name:t,value:n,onChange:d,disabled:m,required:u,maxLength:g,autoComplete:"off",id:p}),l&&o.a.createElement("small",{className:"form-text text-muted text-left"},l),s&&o.a.createElement("div",{className:"invalid-feedback text-left"},s))}},166:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(27),r=a.n(i);t.a=e=>{let{name:t,value:a,error:n,info:i,onChange:s,options:l,id:c,label:d,isRequired:m,disabled:p}=e;const u=l.map((e,t)=>o.a.createElement("option",{key:t,value:e._id},e.name));return o.a.createElement("div",{className:"form-group"},d&&o.a.createElement("label",{htmlFor:c},d),o.a.createElement("select",{className:r()("form-control form-select",{"is-invalid":n}),disabled:p,name:t,value:a,onChange:s,required:m},u),i&&o.a.createElement("small",{className:"form-text text-muted"},i),n&&o.a.createElement("div",{className:"invalid-feedback"},n))}},174:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));const n=[{_id:"Pacific/Niue",name:"(GMT - 11: 00) Niue Time"},{_id:"Pacific/Pago_Pago",name:"(GMT - 11: 00) Samoa Standard Time"},{_id:"Pacific/Rarotonga",name:"(GMT - 10: 00) Cook Islands Standard Time"},{_id:"Pacific/Honolulu",name:"(GMT - 10: 00) Hawaii- Aleutian Standard Time"},{_id:"Pacific/Tahiti",name:"(GMT - 10: 00) Tahiti Time"},{_id:"Pacific/Marquesas",name:"(GMT - 09: 30) Marquesas Time"},{_id:"Pacific/Gambier",name:"(GMT - 09: 00) Gambier Time"},{_id:"America/Adak",name:"(GMT - 09: 00) Hawaii - Aleutian Time(Adak)"},{_id:"America/Anchorage",name:"(GMT - 08: 00) Alaska Time - Anchorage"},{_id:"America/Juneau",name:"(GMT - 08: 00) Alaska Time - Juneau"},{_id:"America/Metlakatla",name:"(GMT - 08: 00) Alaska Time - Metlakatla"},{_id:"America/Nome",name:"(GMT - 08: 00) Alaska Time - Nome"},{_id:"America/Sitka",name:"(GMT - 08: 00) Alaska Time - Sitka"},{_id:"America/Yakutat",name:"(GMT - 08: 00) Alaska Time - Yakutat"},{_id:"Pacific/Pitcairn",name:"(GMT - 08: 00) Pitcairn Time"},{_id:"America/Hermosillo",name:"(GMT - 07: 00) Mexican Pacific Standard Time"},{_id:"America/Chihuahua",name:"(GMT - 07: 00) Mexican Pacific Time - Chihuahua"},{_id:"America/Mazatlan",name:"(GMT - 07: 00) Mexican Pacific Time - Mazatlan"},{_id:"America/Creston",name:"(GMT - 07: 00) Mountain Standard Time - Creston"},{_id:"America/Dawson_Creek",name:"(GMT - 07: 00) Mountain Standard Time - Dawson Creek"},{_id:"America/Fort_Nelson",name:"(GMT - 07: 00) Mountain Standard Time - Fort Nelson"},{_id:"America/Phoenix",name:"(GMT - 07: 00) Mountain Standard Time - Phoenix"},{_id:"America/Dawson",name:"(GMT - 07: 00) Mountain Time(Dawson)"},{_id:"America/Whitehorse",name:"(GMT - 07: 00) Mountain Time(Whitehorse)"},{_id:"America/Los_Angeles",name:"(GMT - 07: 00) Pacific Time - Los Angeles"},{_id:"America/Tijuana",name:"(GMT - 07: 00) Pacific Time - Tijuana"},{_id:"America/Vancouver",name:"(GMT - 07: 00) Pacific Time - Vancouver"},{_id:"America/Belize",name:"(GMT - 06: 00) Central Standard Time - Belize"},{_id:"America/Costa_Rica",name:"(GMT - 06: 00) Central Standard Time - Costa Rica"},{_id:"America/El_Salvador",name:"(GMT - 06: 00) Central Standard Time - El Salvador"},{_id:"America/Guatemala",name:"(GMT - 06: 00) Central Standard Time - Guatemala"},{_id:"America/Managua",name:"(GMT - 06: 00) Central Standard Time - Managua"},{_id:"America/Regina",name:"(GMT - 06: 00) Central Standard Time - Regina"},{_id:"America/Swift_Current",name:"(GMT - 06: 00) Central Standard Time - Swift Current"},{_id:"America/Tegucigalpa",name:"(GMT - 06: 00) Central Standard Time - Tegucigalpa"},{_id:"America/Bahia_Banderas",name:"(GMT - 06: 00) Central Time(Bahia Banderas)"},{_id:"America/Merida",name:"(GMT - 06: 00) Central Time(Merida)"},{_id:"America/Mexico_City",name:"(GMT - 06: 00) Central Time(Mexico)"},{_id:"America/Monterrey",name:"(GMT - 06: 00) Central Time(Monterrey)"},{_id:"Pacific/Galapagos",name:"(GMT - 06: 00) Galapagos Time"},{_id:"America/Boise",name:"(GMT - 06: 00) Mountain Time - Boise"},{_id:"America/Cambridge_Bay",name:"(GMT - 06: 00) Mountain Time - Cambridge Bay"},{_id:"America/Denver",name:"(GMT - 06: 00) Mountain Time - Denver"},{_id:"America/Edmonton",name:"(GMT - 06: 00) Mountain Time - Edmonton"},{_id:"America/Inuvik",name:"(GMT - 06: 00) Mountain Time - Inuvik"},{_id:"America/Ojinaga",name:"(GMT - 06: 00) Mountain Time - Ojinaga"},{_id:"America/Yellowknife",name:"(GMT - 06: 00) Mountain Time - Yellowknife"},{_id:"America/Eirunepe",name:"(GMT - 05: 00) Acre Standard Time - Eirunepe"},{_id:"America/Rio_Branco",name:"(GMT - 05: 00) Acre Standard Time - Rio Branco"},{_id:"America/North_Dakota/Beulah",name:"(GMT - 05: 00) Central Time - Beulah, North Dakota"},{_id:"America/North_Dakota/Center",name:"(GMT - 05: 00) Central Time - Center, North Dakota"},{_id:"America/Chicago",name:"(GMT - 05: 00) Central Time - Chicago"},{_id:"America/Indiana/Kno",name:"(GMT - 05: 00) Central Time - Knox, Indiana"},{_id:"America/Matamoros",name:"(GMT - 05: 00) Central Time - Matamoros"},{_id:"America/Menominee",name:"(GMT - 05: 00) Central Time - Menominee"},{_id:"America/North_Dakota/New_Sale",name:"(GMT - 05: 00) Central Time - New Salem, North Dakota"},{_id:"America/Rainy_River",name:"(GMT - 05: 00) Central Time - Rainy River"},{_id:"America/Rankin_Inlet",name:"(GMT - 05: 00) Central Time - Rankin Inlet"},{_id:"America/Resolute",name:"(GMT - 05: 00) Central Time - Resolute"},{_id:"America/Indiana/Tell_Cit",name:"(GMT - 05: 00) Central Time - Tell City, Indiana"},{_id:"America/Winnipeg",name:"(GMT - 05: 00) Central Time - Winnipeg"},{_id:"America/Bogota",name:"(GMT - 05: 00) Colombia Standard Time"},{_id:"Pacific/Easter",name:"(GMT - 05: 00) Easter Island Time"},{_id:"America/Atikokan",name:"(GMT - 05: 00) Eastern Standard Time - Atikokan"},{_id:"America/Cancun",name:"(GMT - 05: 00) Eastern Standard Time - Cancun"},{_id:"America/Jamaica",name:"(GMT - 05: 00) Eastern Standard Time - Jamaica"},{_id:"America/Panama",name:"(GMT - 05: 00) Eastern Standard Time - Panama"},{_id:"America/Guayaquil",name:"(GMT - 05: 00) Ecuador Time"},{_id:"America/Lima",name:"(GMT - 05: 00) Peru Standard Time"},{_id:"America/Boa_Vista",name:"(GMT - 04: 00) Amazon Standard Time - Boa Vista"},{_id:"America/Campo_Grande",name:"(GMT - 04: 00) Amazon Standard Time - Campo Grande"},{_id:"America/Cuiaba",name:"(GMT - 04: 00) Amazon Standard Time - Cuiaba"},{_id:"America/Manaus",name:"(GMT - 04: 00) Amazon Standard Time - Manaus"},{_id:"America/Porto_Velho",name:"(GMT - 04: 00) Amazon Standard Time - Porto Velho"},{_id:"America/Barbados",name:"(GMT - 04: 00) Atlantic Standard Time - Barbados"},{_id:"America/Blanc-Sablon",name:"(GMT - 04: 00) Atlantic Standard Time - Blanc - Sablon"},{_id:"America/Curacao",name:"(GMT - 04: 00) Atlantic Standard Time - Cura\xe7ao"},{_id:"America/Martinique",name:"(GMT - 04: 00) Atlantic Standard Time - Martinique"},{_id:"America/Port_of_Spain",name:"(GMT - 04: 00) Atlantic Standard Time - Port of Spain"},{_id:"America/Puerto_Rico",name:"(GMT - 04: 00) Atlantic Standard Time - Puerto Rico"},{_id:"America/Santo_Domingo",name:"(GMT - 04: 00) Atlantic Standard Time - Santo Domingo"},{_id:"America/La_Paz",name:"(GMT - 04: 00) Bolivia Time"},{_id:"America/Havana",name:"(GMT - 04: 00) Cuba Time"},{_id:"America/Detroit",name:"(GMT - 04: 00) Eastern Time - Detroit"},{_id:"America/Grand_Turk",name:"(GMT - 04: 00) Eastern Time - Grand Turk"},{_id:"America/Indiana/Indianapolis",name:"(GMT - 04: 00) Eastern Time - Indianapolis"},{_id:"America/Iqaluit",name:"(GMT - 04: 00) Eastern Time - Iqaluit"},{_id:"America/Kentucky/Louisville",name:"(GMT - 04: 00) Eastern Time - Louisville"},{_id:"America/Indiana/Marengo",name:"(GMT - 04: 00) Eastern Time - Marengo, Indiana"},{_id:"America/Kentucky/Monticello",name:"(GMT - 04: 00) Eastern Time - Monticello, Kentucky"},{_id:"America/Nassau",name:"(GMT - 04: 00) Eastern Time - Nassau"},{_id:"America/New_York",name:"(GMT - 04: 00) Eastern Time - New York"},{_id:"America/Nipigon",name:"(GMT - 04: 00) Eastern Time - Nipigon"},{_id:"America/Pangnirtung",name:"(GMT - 04: 00) Eastern Time - Pangnirtung"},{_id:"America/Indiana/Petersburg",name:"(GMT - 04: 00) Eastern Time - Petersburg, Indiana"},{_id:"America/Port - a",name:"(GMT - 04: 00) Eastern Time - Port - au - Prince"},{_id:"America/Thunder_Bay",name:"(GMT - 04: 00) Eastern Time - Thunder Bay"},{_id:"America/Toronto",name:"(GMT - 04: 00) Eastern Time - Toronto"},{_id:"America/Indiana/Vevay",name:"(GMT - 04: 00) Eastern Time - Vevay, Indiana"},{_id:"America/Indiana/Vincennes",name:"(GMT - 04: 00) Eastern Time - Vincennes, Indiana"},{_id:"America/Indiana/Winamac",name:"(GMT - 04: 00) Eastern Time - Winamac, Indiana"},{_id:"America/Guyana",name:"(GMT - 04: 00) Guyana Time"},{_id:"America/Caracas",name:"(GMT - 04: 00) Venezuela Time"},{_id:"America/Argentina/Buenos_Aires",name:"(GMT - 03: 00) Argentina Standard Time - Buenos Aires"},{_id:"America/Argentina/Catamarca",name:"(GMT - 03: 00) Argentina Standard Time - Catamarca"},{_id:"America/Argentina/Cordoba",name:"(GMT - 03: 00) Argentina Standard Time - Cordoba"},{_id:"America/Argentina/Jujuy",name:"(GMT - 03: 00) Argentina Standard Time - Jujuy"},{_id:"America/Argentina/La_Rioja",name:"(GMT - 03: 00) Argentina Standard Time - La Rioja"},{_id:"America/Argentina/Mendoza",name:"(GMT - 03: 00) Argentina Standard Time - Mendoza"},{_id:"America/Argentina/Rio_Gallegos",name:"(GMT - 03: 00) Argentina Standard Time - Rio Gallegos"},{_id:"America/Argentina/Salta",name:"(GMT - 03: 00) Argentina Standard Time - Salta"},{_id:"America/Argentina/San_Juan",name:"(GMT - 03: 00) Argentina Standard Time - San Juan"},{_id:"America/Argentina/San_Luis",name:"(GMT - 03: 00) Argentina Standard Time - San Luis"},{_id:"America/Argentina/Tucuman",name:"(GMT - 03: 00) Argentina Standard Time - Tucuman"},{_id:"America/Argentina/Ushuaia",name:"(GMT - 03: 00) Argentina Standard Time - Ushuaia"},{_id:"Atlantic/Bermuda",name:"(GMT - 03: 00) Atlantic Time - Bermuda"},{_id:"America/Glace_Bay",name:"(GMT - 03: 00) Atlantic Time - Glace Bay"},{_id:"America/Goose_Bay",name:"(GMT - 03: 00) Atlantic Time - Goose Bay"},{_id:"America/Halifax",name:"(GMT - 03: 00) Atlantic Time - Halifax"},{_id:"America/Moncton",name:"(GMT - 03: 00) Atlantic Time - Moncton"},{_id:"America/Thule",name:"(GMT - 03: 00) Atlantic Time - Thule"},{_id:"America/Araguaina",name:"(GMT - 03: 00) Brasilia Standard Time - Araguaina"},{_id:"America/Bahia",name:"(GMT - 03: 00) Brasilia Standard Time - Bahia"},{_id:"America/Belem",name:"(GMT - 03: 00) Brasilia Standard Time - Belem"},{_id:"America/Fortaleza",name:"(GMT - 03: 00) Brasilia Standard Time - Fortaleza"},{_id:"America/Maceio",name:"(GMT - 03: 00) Brasilia Standard Time - Maceio"},{_id:"America/Recife",name:"(GMT - 03: 00) Brasilia Standard Time - Recife"},{_id:"America/Santarem",name:"(GMT - 03: 00) Brasilia Standard Time - Santarem"},{_id:"America/Sao_Paulo",name:"(GMT - 03: 00) Brasilia Standard Time - Sao Paulo"},{_id:"America/Santiago",name:"(GMT - 03: 00) Chile Time"},{_id:"Atlantic/Stanley",name:"(GMT - 03: 00) Falkland Islands Standard Time"},{_id:"America/Cayenne",name:"(GMT - 03: 00) French Guiana Time"},{_id:"Antarctica/Palmer",name:"(GMT - 03: 00) Palmer Time"},{_id:"America/Asuncion",name:"(GMT - 03: 00) Paraguay Time"},{_id:"America/Punta_Arenas",name:"(GMT - 03: 00) Punta Arenas Time"},{_id:"Antarctica/Rothera",name:"(GMT - 03: 00) Rothera Time"},{_id:"America/Paramaribo",name:"(GMT - 03: 00) Suri_id Time"},{_id:"America/Montevideo",name:"(GMT - 03: 00) Uruguay Standard Time"},{_id:"America/St_Johns",name:"(GMT - 02: 30) Newfoundland Time"},{_id:"America/Noronha",name:"(GMT - 02: 00) Fernando de Noronha Standard Time"},{_id:"Atlantic/South_Georgia",name:"(GMT - 02: 00) South Georgia Time"},{_id:"America/Miquelon",name:"(GMT - 02: 00) St.Pierre & amp; Miquelon Time"},{_id:"Atlantic/Azores",name:"(GMT - 01: 00) Azores Time"},{_id:"Atlantic/Cape_Verde",name:"(GMT - 01: 00) Cape Verde Standard Time"},{_id:"America/Scoresbysund",name:"(GMT - 01: 00) East Greenland Time"},{_id:"UTC",name:"(GMT + 00: 00) Coordinated Universal Time"},{_id:"Etc/GMT",name:"(GMT + 00: 00) Greenwich Mean Time"},{_id:"Africa/Abidjan",name:"(GMT + 00: 00) Greenwich Mean Time - Abidjan"},{_id:"Africa/Accra",name:"(GMT + 00: 00) Greenwich Mean Time - Accra"},{_id:"Africa/Bissau",name:"(GMT + 00: 00) Greenwich Mean Time - Bissau"},{_id:"America/Danmarkshavn",name:"(GMT + 00: 00) Greenwich Mean Time - Danmarkshavn"},{_id:"Africa/Monrovia",name:"(GMT + 00: 00) Greenwich Mean Time - Monrovia"},{_id:"Atlantic/Reykjavik",name:"(GMT + 00: 00) Greenwich Mean Time - Reykjavik"},{_id:"Africa/Sao_Tome",name:"(GMT + 00: 00) Greenwich Mean Time - S\xe3o Tom\xe9"},{_id:"Europe/Dublin",name:"(GMT + 00: 00) Ireland Time"},{_id:"Antarctica/Troll",name:"(GMT + 00: 00) Troll Time"},{_id:"Europe/London",name:"(GMT + 00: 00) United Kingdom Time"},{_id:"Atlantic/Canary",name:"(GMT + 00: 00) Western European Time - Canary"},{_id:"Atlantic/Faroe",name:"(GMT + 00: 00) Western European Time - Faroe"},{_id:"Europe/Lisbon",name:"(GMT + 00: 00) Western European Time - Lisbon"},{_id:"Atlantic/Madeira",name:"(GMT + 00: 00) Western European Time - Madeira"},{_id:"Africa/Algiers",name:"(GMT + 01: 00) Central European Standard Time - Algiers"},{_id:"Africa/Tunis",name:"(GMT + 01: 00) Central European Standard Time - Tunis"},{_id:"Europe/Amsterdam",name:"(GMT + 01: 00) Central European Time - Amsterdam"},{_id:"Europe/Andorra",name:"(GMT + 01: 00) Central European Time - Andorra"},{_id:"Europe/Belgrade",name:"(GMT + 01: 00) Central European Time - Belgrade"},{_id:"Europe/Berlin",name:"(GMT + 01: 00) Central European Time - Berlin"},{_id:"Europe/Brussels",name:"(GMT + 01: 00) Central European Time - Brussels"},{_id:"Europe/Budapest",name:"(GMT + 01: 00) Central European Time - Budapest"},{_id:"Africa/Ceuta",name:"(GMT + 01: 00) Central European Time - Ceuta"},{_id:"Europe/Copenhagen",name:"(GMT + 01: 00) Central European Time - Copenhagen"},{_id:"Europe/Gibraltar",name:"(GMT + 01: 00) Central European Time - Gibraltar"},{_id:"Europe/Luxembourg",name:"(GMT + 01: 00) Central European Time - Luxembourg"},{_id:"Europe/Madrid",name:"(GMT + 01: 00) Central European Time - Madrid"},{_id:"Europe/Malta",name:"(GMT + 01: 00) Central European Time - Malta"},{_id:"Europe/Monaco",name:"(GMT + 01: 00) Central European Time - Monaco"},{_id:"Europe/Oslo",name:"(GMT + 01: 00) Central European Time - Oslo"},{_id:"Europe/Paris",name:"(GMT + 01: 00) Central European Time - Paris"},{_id:"Europe/Prague",name:"(GMT + 01: 00) Central European Time - Prague"},{_id:"Europe/Rome",name:"(GMT + 01: 00) Central European Time - Rome"},{_id:"Europe/Stockholm",name:"(GMT + 01: 00) Central European Time - Stockholm"},{_id:"Europe/Tirane",name:"(GMT + 01: 00) Central European Time - Tirane"},{_id:"Europe/Vienna",name:"(GMT + 01: 00) Central European Time - Vienna"},{_id:"Europe/Warsaw",name:"(GMT + 01: 00) Central European Time - Warsaw"},{_id:"Europe/Zurich",name:"(GMT + 01: 00) Central European Time - Zurich"},{_id:"Africa/Casablanca",name:"(GMT + 01: 00) Morocco Time"},{_id:"Africa/Lagos",name:"(GMT + 01: 00) West Africa Standard Time - Lagos"},{_id:"Africa/Ndjamena",name:"(GMT + 01: 00) West Africa Standard Time - Ndjamena"},{_id:"Africa/El_Aaiun",name:"(GMT + 01: 00) Western Sahara Time"},{_id:"Africa/Juba",name:"(GMT + 02: 00) Central Africa Time - Juba"},{_id:"Africa/Khartoum",name:"(GMT + 02: 00) Central Africa Time - Khartoum"},{_id:"Africa/Maputo",name:"(GMT + 02: 00) Central Africa Time - Maputo"},{_id:"Africa/Windhoek",name:"(GMT + 02: 00) Central Africa Time - Windhoek"},{_id:"Africa/Cairo",name:"(GMT + 02: 00) Eastern European Standard Time - Cairo"},{_id:"Europe/Kaliningrad",name:"(GMT + 02: 00) Eastern European Standard Time - Kaliningrad"},{_id:"Africa/Tripoli",name:"(GMT + 02: 00) Eastern European Standard Time - Tripoli"},{_id:"Asia/Amman",name:"(GMT + 02: 00) Eastern European Time - Amman"},{_id:"Europe/Athens",name:"(GMT + 02: 00) Eastern European Time - Athens"},{_id:"Asia/Beirut",name:"(GMT + 02: 00) Eastern European Time - Beirut"},{_id:"Europe/Bucharest",name:"(GMT + 02: 00) Eastern European Time - Bucharest"},{_id:"Europe/Chisinau",name:"(GMT + 02: 00) Eastern European Time - Chisinau"},{_id:"Asia/Damascus",name:"(GMT + 02: 00) Eastern European Time - Damascus"},{_id:"Asia/Gaza",name:"(GMT + 02: 00) Eastern European Time - Gaza"},{_id:"Asia/Hebron",name:"(GMT + 02: 00) Eastern European Time - Hebron"},{_id:"Europe/Helsinki",name:"(GMT + 02: 00) Eastern European Time - Helsinki"},{_id:"Europe/Kiev",name:"(GMT + 02: 00) Eastern European Time - Kiev"},{_id:"Asia/Nicosia",name:"(GMT + 02: 00) Eastern European Time - Nicosia"},{_id:"Europe/Riga",name:"(GMT + 02: 00) Eastern European Time - Riga"},{_id:"Europe/Sofia",name:"(GMT + 02: 00) Eastern European Time - Sofia"},{_id:"Europe/Tallinn",name:"(GMT + 02: 00) Eastern European Time - Tallinn"},{_id:"Europe/Uzhgorod",name:"(GMT + 02: 00) Eastern European Time - Uzhhorod"},{_id:"Europe/Vilnius",name:"(GMT + 02: 00) Eastern European Time - Vilnius"},{_id:"Europe/Zaporozhye",name:"(GMT + 02: 00) Eastern European Time - Zaporozhye"},{_id:"Asia/Famagusta",name:"(GMT + 02: 00) Famagusta Time"},{_id:"Asia/Jerusalem",name:"(GMT + 02: 00) Israel Time"},{_id:"Africa/Johannesburg",name:"(GMT + 02: 00) South Africa Standard Time"},{_id:"Asia/Baghdad",name:"(GMT + 03: 00) Arabian Standard Time - Baghdad"},{_id:"Asia/Qatar",name:"(GMT + 03: 00) Arabian Standard Time - Qatar"},{_id:"Asia/Riyadh",name:"(GMT + 03: 00) Arabian Standard Time - Riyadh"},{_id:"Africa/Nairobi",name:"(GMT + 03: 00) East Africa Time"},{_id:"Europe/Kirov",name:"(GMT + 03: 00) Kirov Time"},{_id:"Europe/Minsk",name:"(GMT + 03: 00) Moscow Standard Time - Minsk"},{_id:"Europe/Moscow",name:"(GMT + 03: 00) Moscow Standard Time - Moscow"},{_id:"Europe/Simferopol",name:"(GMT + 03: 00) Moscow Standard Time - Simferopol"},{_id:"Antarctica/Syowa",name:"(GMT + 03: 00) Syowa Time"},{_id:"Europe/Istanbul",name:"(GMT + 03: 00) Turkey Time"},{_id:"Europe/Volgograd",name:"(GMT + 03: 00) Volgograd Standard Time"},{_id:"Asia/Tehran",name:"(GMT + 03: 30) Iran Time"},{_id:"Asia/Yerevan",name:"(GMT + 04: 00) Armenia Standard Time"},{_id:"Europe/Astrakhan",name:"(GMT + 04: 00) Astrakhan Time"},{_id:"Asia/Baku",name:"(GMT + 04: 00) Azerbaijan Standard Time"},{_id:"Asia/Tbilisi",name:"(GMT + 04: 00) Georgia Standard Time"},{_id:"Asia/Dubai",name:"(GMT + 04: 00) Gulf Standard Time"},{_id:"Indian/Mauritius",name:"(GMT + 04: 00) Mauritius Standard Time"},{_id:"Indian/Reunion",name:"(GMT + 04: 00) R\xe9union Time"},{_id:"Europe/Samara",name:"(GMT + 04: 00) Samara Standard Time"},{_id:"Europe/Saratov",name:"(GMT + 04: 00) Saratov Time"},{_id:"Indian/Mahe",name:"(GMT + 04: 00) Seychelles Time"},{_id:"Europe/Ulyanovsk",name:"(GMT + 04: 00) Ulyanovsk Time"},{_id:"Asia/Kabul",name:"(GMT + 04: 30) Afghanistan Time"},{_id:"Indian/Kerguelen",name:"(GMT + 05: 00) French Southern & amp; Antarctic Time"},{_id:"Indian/Maldives",name:"(GMT + 05: 00) Maldives Time"},{_id:"Antarctica/Mawson",name:"(GMT + 05: 00) Mawson Time"},{_id:"Asia/Karachi",name:"(GMT + 05: 00) Pakistan Standard Time"},{_id:"Asia/Dushanbe",name:"(GMT + 05: 00) Tajikistan Time"},{_id:"Asia/Ashgabat",name:"(GMT + 05: 00) Turkmenistan Standard Time"},{_id:"Asia/Samarkand",name:"(GMT + 05: 00) Uzbekistan Standard Time - Samarkand"},{_id:"Asia/Tashkent",name:"(GMT + 05: 00) Uzbekistan Standard Time - Tashkent"},{_id:"Asia/Aqtau",name:"(GMT + 05: 00) West Kazakhstan Time - Aqtau"},{_id:"Asia/Aqtobe",name:"(GMT + 05: 00) West Kazakhstan Time - Aqtobe"},{_id:"Asia/Atyrau",name:"(GMT + 05: 00) West Kazakhstan Time - Atyrau"},{_id:"Asia/Oral",name:"(GMT + 05: 00) West Kazakhstan Time - Oral"},{_id:"Asia/Qyzylorda",name:"(GMT + 05: 00) West Kazakhstan Time - Qyzylorda"},{_id:"Asia/Yekaterinburg",name:"(GMT + 05: 00) Yekaterinburg Standard Time"},{_id:"Asia/Colombo",name:"(GMT + 05: 30) India Standard Time - Colombo"},{_id:"Asia/Kolkata",name:"(GMT + 05: 30) India Standard Time - Kolkata"},{_id:"Asia/Kathmandu",name:"(GMT + 05: 45) Nepal Time"},{_id:"Asia/Dhaka",name:"(GMT + 06: 00) Bangladesh Standard Time"},{_id:"Asia/Thimphu",name:"(GMT + 06: 00) Bhutan Time"},{_id:"Asia/Almaty",name:"(GMT + 06: 00) East Kazakhstan Time - Almaty"},{_id:"Asia/Qostanay",name:"(GMT + 06: 00) East Kazakhstan Time - Kostanay"},{_id:"Indian/Chagos",name:"(GMT + 06: 00) Indian Ocean Time"},{_id:"Asia/Bishkek",name:"(GMT + 06: 00) Kyrgyzstan Time"},{_id:"Asia/Omsk",name:"(GMT + 06: 00) Omsk Standard Time"},{_id:"Asia/Urumqi",name:"(GMT + 06: 00) Urumqi Time"},{_id:"Antarctica/Vostok",name:"(GMT + 06: 00) Vostok Time"},{_id:"Indian/Cocos",name:"(GMT + 06: 30) Cocos Islands Time"},{_id:"Asia/Yangon",name:"(GMT + 06: 30) Myanmar Time"},{_id:"Asia/Barnaul",name:"(GMT + 07: 00) Barnaul Time"},{_id:"Indian/Christmas",name:"(GMT + 07: 00) Christmas Island Time"},{_id:"Antarctica/Davis",name:"(GMT + 07: 00) Davis Time"},{_id:"Asia/Hovd",name:"(GMT + 07: 00) Hovd Standard Time"},{_id:"Asia/Bangkok",name:"(GMT + 07: 00) Indochina Time - Bangkok"},{_id:"Asia/Ho_Chi_Minh",name:"(GMT + 07: 00) Indochina Time - Ho Chi Minh City"},{_id:"Asia/Krasnoyarsk",name:"(GMT + 07: 00) Krasnoyarsk Standard Time - Krasnoyarsk"},{_id:"Asia/Novokuznetsk",name:"(GMT + 07: 00) Krasnoyarsk Standard Time - Novokuznetsk"},{_id:"Asia/Novosibirsk",name:"(GMT + 07: 00) Novosibirsk Standard Time"},{_id:"Asia/Tomsk",name:"(GMT + 07: 00) Tomsk Time"},{_id:"Asia/Jakarta",name:"(GMT + 07: 00) Western Indonesia Time - Jakarta"},{_id:"Asia/Pontianak",name:"(GMT + 07: 00) Western Indonesia Time - Pontianak"},{_id:"Australia/Perth",name:"(GMT + 08: 00) Australian Western Standard Time"},{_id:"Asia/Brunei",name:"(GMT + 08: 00) Brunei Darussalam Time"},{_id:"Asia/Makassar",name:"(GMT + 08: 00) Central Indonesia Time"},{_id:"Asia/Macau",name:"(GMT + 08: 00) China Standard Time - Macao"},{_id:"Asia/Shanghai",name:"(GMT + 08: 00) China Standard Time - Shanghai"},{_id:"Asia/Hong_Kong",name:"(GMT + 08: 00) Hong Kong Standard Time"},{_id:"Asia/Irkutsk",name:"(GMT + 08: 00) Irkutsk Standard Time"},{_id:"Asia/Kuala_Lumpur",name:"(GMT + 08: 00) Malaysia Time - Kuala Lumpur"},{_id:"Asia/Kuching",name:"(GMT + 08: 00) Malaysia Time - Kuching"},{_id:"Asia/Manila",name:"(GMT + 08: 00) Philippine Standard Time"},{_id:"Asia/Singapore",name:"(GMT + 08: 00) Singapore Standard Time"},{_id:"Asia/Taipei",name:"(GMT + 08: 00) Taipei Standard Time"},{_id:"Asia/Choibalsan",name:"(GMT + 08: 00) Ulaanbaatar Standard Time - Choibalsan"},{_id:"Asia/Ulaanbaatar",name:"(GMT + 08: 00) Ulaanbaatar Standard Time - Ulaanbaatar"},{_id:"Australia/Eucla",name:"(GMT + 08: 45) Australian Central Western Standard Time"},{_id:"Asia/Dili",name:"(GMT + 09: 00) East Timor Time"},{_id:"Asia/Jayapura",name:"(GMT + 09: 00) Eastern Indonesia Time"},{_id:"Asia/Tokyo",name:"(GMT + 09: 00) Japan Standard Time"},{_id:"Asia/Pyongyang",name:"(GMT + 09: 00) Korean Standard Time - Pyongyang"},{_id:"Asia/Seoul",name:"(GMT + 09: 00) Korean Standard Time - Seoul"},{_id:"Pacific/Palau",name:"(GMT + 09: 00) Palau Time"},{_id:"Asia/Chita",name:"(GMT + 09: 00) Yakutsk Standard Time - Chita"},{_id:"Asia/Khandyga",name:"(GMT + 09: 00) Yakutsk Standard Time - Khandyga"},{_id:"Asia/Yakutsk",name:"(GMT + 09: 00) Yakutsk Standard Time - Yakutsk"},{_id:"Australia/Darwin",name:"(GMT + 09: 30) Australian Central Standard Time"},{_id:"Australia/Brisbane",name:"(GMT + 10: 00) Australian Eastern Standard Time - Brisbane"},{_id:"Australia/Lindeman",name:"(GMT + 10: 00) Australian Eastern Standard Time - Lindeman"},{_id:"Pacific/Guam",name:"(GMT + 10: 00) Chamorro Standard Time"},{_id:"Pacific/Chuuk",name:"(GMT + 10: 00) Chuuk Time"},{_id:"Antarctica/DumontDUrville",name:"(GMT + 10: 00) Dumont - d\u2019Urville Time"},{_id:"Pacific/Port_Moresby",name:"(GMT + 10: 00) Papua New Guinea Time"},{_id:"Asia/Ust - Ner",name:"(GMT + 10: 00) Vladivostok Standard Time - Ust - Nera"},{_id:"Asia/Vladivostok",name:"(GMT + 10: 00) Vladivostok Standard Time - Vladivostok"},{_id:"Australia/Adelaide",name:"(GMT + 10: 30) Central Australia Time - Adelaide"},{_id:"Australia/Broken_Hill",name:"(GMT + 10: 30) Central Australia Time - Broken Hill"},{_id:"Pacific/Bougainville",name:"(GMT + 11: 00) Bougainville Time"},{_id:"Antarctica/Casey",name:"(GMT + 11: 00) Casey Time"},{_id:"Australia/Hobart",name:"(GMT + 11: 00) Eastern Australia Time - Hobart"},{_id:"Antarctica/Macquarie",name:"(GMT + 11: 00) Eastern Australia Time - Macquarie"},{_id:"Australia/Melbourne",name:"(GMT + 11: 00) Eastern Australia Time - Melbourne"},{_id:"Australia/Sydney",name:"(GMT + 11: 00) Eastern Australia Time - Sydney"},{_id:"Pacific/Kosrae",name:"(GMT + 11: 00) Kosrae Time"},{_id:"Australia/Lord_Howe",name:"(GMT + 11: 00) Lord Howe Time"},{_id:"Asia/Magadan",name:"(GMT + 11: 00) Magadan Standard Time"},{_id:"Pacific/Noumea",name:"(GMT + 11: 00) New Caledonia Standard Time"},{_id:"Pacific/Pohnpei",name:"(GMT + 11: 00) Ponape Time"},{_id:"Asia/Sakhalin",name:"(GMT + 11: 00) Sakhalin Standard Time"},{_id:"Pacific/Guadalcanal",name:"(GMT + 11: 00) Solomon Islands Time"},{_id:"Asia/Srednekolymsk",name:"(GMT + 11: 00) Srednekolymsk Time"},{_id:"Pacific/Efate",name:"(GMT + 11: 00) Vanuatu Standard Time"},{_id:"Asia/Anadyr",name:"(GMT + 12: 00) Anadyr Standard Time"},{_id:"Pacific/Fiji",name:"(GMT + 12: 00) Fiji Time"},{_id:"Pacific/Tarawa",name:"(GMT + 12: 00) Gilbert Islands Time"},{_id:"Pacific/Kwajalein",name:"(GMT + 12: 00) Marshall Islands Time - Kwajalein"},{_id:"Pacific/Majuro",name:"(GMT + 12: 00) Marshall Islands Time - Majuro"},{_id:"Pacific/Nauru",name:"(GMT + 12: 00) Nauru Time"},{_id:"Pacific/Norfolk",name:"(GMT + 12: 00) Norfolk Island Time"},{_id:"Asia/Kamchatka",name:"(GMT + 12: 00) Petropavlovsk - Kamchatski Standard Time"},{_id:"Pacific/Funafuti",name:"(GMT + 12: 00) Tuvalu Time"},{_id:"Pacific/Wake",name:"(GMT + 12: 00) Wake Island Time"},{_id:"Pacific/Wallis",name:"(GMT + 12: 00) Wallis & amp; Futuna Time"},{_id:"Pacific/Auckland",name:"(GMT + 13: 00) New Zealand Time"},{_id:"Pacific/Enderbury",name:"(GMT + 13: 00) Phoenix Islands Time"},{_id:"Pacific/Fakaofo",name:"(GMT + 13: 00) Tokelau Time"},{_id:"Pacific/Tongatapu",name:"(GMT + 13: 00) Tonga Standard Time"},{_id:"Pacific/Chatham",name:"(GMT + 13: 45) Chatham Time"},{_id:"Pacific/Apia",name:"(GMT + 14: 00) Apia Time"},{_id:"Pacific/Kiritimati",name:"(GMT + 14: 00) Line Islands Time"}]},175:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(8),s=a(69),l=a(45),c=a(68),d=a(2),m=a.n(d),p=a(30),u=a(82),g=a(6),h=a(4),b=a(44),f=a(154),_=a(19);const y=g.a.div`
    width: 100%;
    z-index: 55 !important;

    .modal {
        display: block;
        background-color: #00000080;
    }

    .modal-content {
        color: ${e=>e.siteFontColor};
    }

    .modal-header, .modal-body {
        background-color: ${e=>e.cardBackgroundColor};
    }

    .modal-body {
        max-height: ${e=>e.modalBodyMaxHeight};
    }
    .close {
        color: ${e=>e.siteFontColor};
        opacity: 1;
    }

    .close:hover {
        color: ${e=>e.siteFontColor};
        opacity: 1;
        cursor: pointer;
    }
`;t.a=Object(r.b)(e=>({appSettings:e.auth.appSettings,user:e.auth.user}),{cancelStickyIoSubscription:s.d,cancelUserSubscription:l.d,setSweetAlert:h.e,cancelSubscription:c.c,cancelUserSubscriptionForCrypto:b.b,cancelComplimentarySubscription:_.c,checkUserEligibleForOffer:f.a})(Object(i.g)((function(e){const t=m.a.get(e.user,"has_complimentary_subscription",!1),[a,i]=Object(n.useState)(!1),{register:r,handleSubmit:s,formState:{errors:l},watch:c}=Object(u.b)(),{site_font_color:d,card_background_color:g,reason_for_cancellation_popup_title:h}=e.appSettings;return o.a.createElement(y,{siteFontColor:d,cardBackgroundColor:g},o.a.createElement("div",{className:"modal fade show",role:"dialog"},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},o.a.createElement("div",{className:"modal-content"},o.a.createElement("div",{className:"modal-body"},o.a.createElement("h5",{className:"mt-2 mb-5"},h),o.a.createElement("form",{onSubmit:s(async a=>{if("Other"===a.cancellation_reason){if(""===a.other_reason.trim()){const t={description:"Please enter valid reason for cancellation"};return e.setSweetAlert(t)}a.cancellation_reason=a.other_reason,delete a.other_reason}if(!1===window.confirm("Are you sure you want to cancel your subscription?"))return!1;if(i(!0),t)return await e.cancelComplimentarySubscription(),i(!1),void e.onClose();const n=m.a.get(e.appSettings,"payment_api_version","v1"),{payment_gateway:o}=e.user;if("forumpay"===o)return m.a.isEmpty(e.requestFrom)||(a.request_from=e.requestFrom),await e.cancelUserSubscriptionForCrypto(a),e.onClose(),void i(!1);"v1"===n?!0===e.appSettings.is_sticky_io_enabled?e.cancelStickyIoSubscription(a):e.cancelSubscription(a):(await e.cancelUserSubscription(a),e.onClose())})},o.a.createElement("div",{className:"form-check"},o.a.createElement("label",{htmlFor:"reason1"},o.a.createElement("input",{ref:r({required:!0}),type:"radio",name:"cancellation_reason",value:"Can't Afford Right Now, But I'll Be Back!",className:"form-check-input",id:"reason1"}),"Can't Afford Right Now, But I'll Be Back!")),o.a.createElement("div",{className:"form-check"},o.a.createElement("label",{htmlFor:"reason2"},o.a.createElement("input",{ref:r({required:!0}),type:"radio",name:"cancellation_reason",value:"Not Enough Content",className:"form-check-input",id:"reason2"}),"Not Enough Content")),o.a.createElement("div",{className:"form-check"},o.a.createElement("label",{htmlFor:"reason3"},o.a.createElement("input",{ref:r({required:!0}),type:"radio",name:"cancellation_reason",value:"Content Isn't Sexy Enough",className:"form-check-input",id:"reason3"}),"Content Isn't Sexy Enough")),o.a.createElement("div",{className:"form-check"},o.a.createElement("label",{htmlFor:"reason4"},o.a.createElement("input",{ref:r({required:!0}),type:"radio",name:"cancellation_reason",value:"Other",className:"form-check-input",id:"reason4"}),"Other")),"Other"===c("cancellation_reason")&&o.a.createElement("div",{className:"mb-3"},o.a.createElement("label",{htmlFor:"other_reason",className:"form-label"},"Enter Your Reason: "),o.a.createElement("textarea",{className:"form-control",id:"other_reason",rows:"3",name:"other_reason",ref:r({required:!0})}),l.other_reason&&o.a.createElement("span",{className:"text-danger"},"Please Write Reason for cancellation")),l.cancellation_reason&&o.a.createElement("span",{className:"text-danger"},"Please Select Reason for Cancellation"),o.a.createElement("div",{className:"modal-button d-flex justify-content-center mt-4 flex-column flex-sm-row"},o.a.createElement(p.a,{classes:"btn-sm-inline btn-block m-2 ",loading:a,type:"submit"},!0===a&&o.a.createElement("span",{className:"spinner-border spinner-border-sm mr-2"}),"Cancel Subscription"),o.a.createElement(p.a,{classes:"btn-sm-inline btn-block m-2 ",loading:!1,type:"button",onClick:()=>{e.checkUserEligibleForOffer(),e.onClose()}},"Close"))))))))})))},176:function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return l})),a.d(t,"a",(function(){return c}));var n=a(3),o=a.n(n),i=a(22);const r=Object(i.a)(),s=e=>()=>{o.a.get(r+"/api/users/get_all_countries").then(t=>{e(t.data)})},l=(e,t)=>()=>{o.a.post(r+"/api/users/get_states_of_country",e).then(e=>{t(e.data)})},c=(e,t)=>()=>{o.a.post(r+"/api/users/get_cities_of_state",e).then(e=>{t(e.data)})}},186:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(8),r=a(35),s=a(14),l=a(6),c=a(25);const d=l.a.div`
    @media (max-width: ${c.c.tabletL}) {
        display: none;
    }
`;class m extends n.Component{render(){const{classes:e}=this.props,{model_name:t,theme_color:a,theme_font_color:n,footer_text_html:i,show_like_the_website_form:r}=this.props.auth.appSettings,l=r?o.a.createElement(o.a.Fragment,null,"\xa0|\xa0",o.a.createElement(s.b,{to:"/like-the-website",style:{color:n}},"Like the website? Contact me")):null;return o.a.createElement(d,{className:e.footer,style:{backgroundColor:a,color:n,wordBreak:"break-word"}},o.a.createElement("div",{className:"mb-2"},o.a.createElement(s.b,{to:"/terms-of-service",style:{color:n}},"Terms of Service"),"\xa0|\xa0",o.a.createElement(s.b,{to:"/privacy-policy",style:{color:n}},"Privacy Policy"),"\xa0|\xa0",o.a.createElement(s.b,{to:"/dmca",style:{color:n}},"DMCA"),"\xa0|\xa0",o.a.createElement(s.b,{to:"/2257",style:{color:n}},"2257"),"\xa0|\xa0",o.a.createElement(s.b,{to:"/content-removal",style:{color:n}},"Content Removal"),"\xa0|\xa0",o.a.createElement(s.b,{to:"/faq",style:{color:n}},"FAQ"),"\xa0|\xa0",o.a.createElement(s.b,{to:"/contact-us",style:{color:n}},"Contact"),l),""===i?o.a.createElement(o.a.Fragment,null,"\xa9 Copyright @",(new Date).getFullYear()," ",t," Powered by ",o.a.createElement("a",{target:"_blank",href:"https://www.themccandlessgroup.com",rel:"noopener noreferrer",style:{color:n}},"McCandless Group")):o.a.createElement(o.a.Fragment,null,"\xa9 Copyright @",(new Date).getFullYear()," ",o.a.createElement("span",{dangerouslySetInnerHTML:{__html:i},style:{color:n}})))}}t.a=Object(i.b)(e=>({auth:e.auth}))(Object(r.a)(e=>({footer:{padding:"1rem",textAlign:"center"}}))(m))},188:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(3),r=a.n(i),s=a(22),l=a(112);const c=Object(s.a)();class d extends n.Component{constructor(){super(),this.state={textMaintenance:""}}componentDidMount(){r.a.get(c+"/api/pages/get_html?slug=maintenance").then(e=>{this.setState({textMaintenance:e.data.html})})}render(){return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"row"},o.a.createElement(l.a,{className:"col pt-5 pb-5",dangerouslySetInnerHTML:{__html:this.state.textMaintenance}}))))}}t.a=d},19:function(e,t,a){"use strict";a.d(t,"s",(function(){return N})),a.d(t,"o",(function(){return S})),a.d(t,"r",(function(){return O})),a.d(t,"m",(function(){return P})),a.d(t,"i",(function(){return I})),a.d(t,"f",(function(){return A})),a.d(t,"v",(function(){return M})),a.d(t,"e",(function(){return j})),a.d(t,"d",(function(){return F})),a.d(t,"k",(function(){return L})),a.d(t,"u",(function(){return D})),a.d(t,"h",(function(){return $})),a.d(t,"j",(function(){return R})),a.d(t,"D",(function(){return B})),a.d(t,"b",(function(){return U})),a.d(t,"y",(function(){return H})),a.d(t,"p",(function(){return q})),a.d(t,"q",(function(){return X})),a.d(t,"g",(function(){return Q})),a.d(t,"w",(function(){return Z})),a.d(t,"a",(function(){return ee})),a.d(t,"t",(function(){return te})),a.d(t,"l",(function(){return ne})),a.d(t,"A",(function(){return ie})),a.d(t,"c",(function(){return re})),a.d(t,"C",(function(){return se})),a.d(t,"n",(function(){return le})),a.d(t,"B",(function(){return ce})),a.d(t,"z",(function(){return de})),a.d(t,"x",(function(){return pe}));var n=a(3),o=a.n(n),i=a(94),r=a(1),s=a(22),l=a(2),c=a.n(l),d=a(57),m=a(20),p=a(28),u=a(43),g=a(32),h=a(65),b=a(4),f=a(55),_=a(89),y=a(59),E=a(34),v=a(52),w=a(44),x=a(115);const k=Object(s.a)(),N=(e,t,a)=>async n=>{try{const r=await Object(h.g)(h.c),s=await o.a.post(k+"/api/users/register",e,{headers:r}),l=E.a.getState();c.a.get(l.auth.appSettings,"is_pagination_on_exclusive_content_enabled",!1)&&n(Object(p.q)());if(c.a.get(l.auth.appSettings,"is_universal_login_enabled",!1)){if(c.a.get(s,"data.data.showMergePopup",!1))return void n(Object(y.c)(s,e,v.d));if(c.a.get(s,"data.data.showForgotPasswordPopup",!1))return void n(Object(y.h)(s,e.email));if(c.a.get(s,"data.data.showOldUserMergePopup",!1))return void n(Object(y.g)(s,e,v.d))}const{token:d,userId:u,url:g}=s.data.data;localStorage.setItem("AuthToken",d),Object(i.a)(d);let b="0-"+u;Object(m.a)("purchase",b,"0","registration","registration","registration");const f=c.a.get(e,"action","");n(T(a,v.d,f,t,g))}catch(r){n(C(r))}},S=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return async n=>{try{const r=await Object(h.g)(h.b),s=await o.a.post(k+"/api/users/login",e,{headers:r}),l=E.a.getState();if(c.a.get(l.auth.appSettings,"is_universal_login_enabled",!1)){if(c.a.get(s,"data.data.showMergePopup",!1))return void n(Object(y.c)(s,e,v.b));if(c.a.get(s,"data.data.showForgotPasswordPopup",!1))return void n(Object(y.h)(s,e.email));if(c.a.get(s,"data.data.showOldUserMergePopup",!1))return void n(Object(y.g)(s,e,v.b))}const{token:d,url:m}=s.data.data;localStorage.setItem("AuthToken",d),Object(i.a)(d);c.a.get(l.auth.appSettings,"is_pagination_on_exclusive_content_enabled",!1)&&n(Object(p.q)());const u=c.a.get(e,"action","");n(T(t,v.b,u,a,m))}catch(r){if(429===r.response.data.status){let e=c.a.get(r.response,"data.message","You sent too many requests. Please wait a while then try again");return n(Z(r.response.data)),void n(Object(b.e)({description:e}))}if(430===r.response.data.status){n(Z(r.response.data));return void(!1===Object(h.e)()&&window.location.reload())}if("ERR_10001"===r.response.data.errors.errorCode){let e=c.a.get(r.response,"data.message","Invalid request")+' (<a href="/contact-us" target="_blank">Contact Us</a>) (ERR_10001).';return n(Z(r.response.data)),void n(Object(b.e)({description:e}))}n(Z(r.response.data));let e=c.a.get(r.response,"data.message","Invalid email or password.");n(Object(b.e)({description:e}))}}},C=e=>t=>{let a="",n={};const o=c.a.get(e.response,"data.errors",{});if(c.a.isEmpty(o)||(n=o,c.a.forEach(o,(function(e){a+=e+"\n"}))),429===e.response.data.status&&(a=c.a.get(e.response,"data.message","You sent too many requests. Please wait a while then try again"),n=e.response.data),430!==e.response.data.status)c.a.isEmpty(o)&&(a=c.a.get(e.response,"data.message","Invalid request"),n=e.response.data),"ERR_10001"===e.response.data.errors.errorCode&&(a=c.a.get(e.response,"data.message","Invalid request")+' (<a href="/contact-us" target="_blank">Contact Us</a>) (ERR_10001).',n=e.response.data),t(Z(n)),t(Object(b.e)({description:a}));else{t(Z(e.response.data));!1===Object(h.e)()&&window.location.reload()}},T=function(e,t,a){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return i=>{const r=E.a.getState();i(L(()=>{c.a.get(r.auth.appSettings,"is_universal_login_enabled",!1)&&(a===v.a&&i(Object(y.b)(e,t,n,o)),a===v.c&&i(Object(y.d)(t)));const s=c.a.get(r,"universalLogin.differentPasswordSiteList",[]);if(t===v.d)i(se(!1)),i(O(e,n,o)),s.length>0&&i(Object(y.e)(!0));else if(t===v.b&&["",v.c].includes(a)){i(le(!1));const t=localStorage.getItem("routeBeforeLogin")||"";if(""!==t&&void 0!==t){const a=t.split("/"),n=a[a.length-1],o="/"+a[a.length-2]+"/"+n,i=""===o?"/":o;e.push(i)}else{localStorage.getItem("newUser")?(localStorage.removeItem("newUser"),e.push("/subscribe")):e.push("/"),s.length>0&&i(Object(y.e)(!0))}}},!0)),i(oe())}},O=(e,t,a)=>()=>{if("newRegisterPage"===t)return window.location.replace(a);"ccbillRestApi"!==t&&"stickyIo"!==t?e.push("/membership"):e.push("/subscribe")},P=(e,t)=>async a=>{try{const n=await o.a.post(k+"/api/users/login-as-proxy-user",e),{token:s}=n.data.data;return localStorage.setItem("ProxyUserToken",s),Object(i.a)(s),a(Object(_.d)(()=>{})),a(oe()),a(L(()=>{a(Object(p.g)(!1,{pageNum:1},()=>{})),t.push("/"),a({type:r.Wb,payload:0})},!1)),!0}catch(n){let e,t;return 429===n.response.status?(e=c.a.get(n.response,"data.message","You sent too many requests. Please wait a while then try again"),a(Z(n.response.data)),t={description:e},a(Object(b.e)(t)),!1):(a(Z(n.response.data)),e=c.a.get(n.response,"data.message","Invalid User Id"),t={description:e},a(Object(b.e)(t)),!1)}},I=e=>async t=>{try{await o.a.post(k+"/api/users/forgot_password",e);const a={description:"A password reset link was just emailed to you."};"forgot_password"===c.a.get(e,"requestFrom","")&&(a.onConfirmUrl="/login"),t(Object(b.e)(a))}catch(a){if(429===a.response.status){let e=c.a.get(a.response,"data.message","You sent too many requests. Please wait a while then try again");t(Z(a.response.data));const n={description:e};return void t(Object(b.e)(n))}const e={description:c.a.get(a.response,"data.message","Error in sent forgot password link")};t(Object(b.e)(e))}},A=e=>async t=>{try{await o.a.post(k+"/api/users/check_token/"+e),t(me(!1))}catch(a){const e={description:c.a.get(a,"response.data.message","Invalid token."),onConfirmUrl:"/"};t(Object(b.e)(e))}},M=e=>async t=>{try{const a=await o.a.post(k+"/api/users/reset_password",e);let n="Password updated successfully.";a.data.data.userUniversalAccountCount>1&&(n="Password updated successfully.\n\nPlease use the same password for all McCandless Group websites.");const r=c.a.get(a,"data.data.newUser",!1),s=c.a.get(a,"data.data.user",{});!1===c.a.isEmpty(s)&&(t(Object(w.k)(s.wallet_amount)),t(Object(x.f)({payment_method:s.default_payment_method}))),r&&localStorage.setItem("newUser",r);const l={description:n,onConfirmUrl:"/login"},d=c.a.get(a,"data.data.token","");c.a.isEmpty(d)||(localStorage.setItem("AuthToken",d),Object(i.a)(d),l.onConfirmUrl="/"),t(Object(b.a)()),t(Object(b.e)(l))}catch(a){t(Object(b.a)());const e={description:c.a.get(a,"response.data.message","There was a problem in change password.")};t(Object(b.e)(e))}},j=e=>async t=>{t(V());try{await o.a.post(k+"/api/users/change_profile_details",e),t(L()),t(Object(b.e)({description:"Profile Details Updated Successfully."}))}catch(a){const e=c.a.get(a,"response.data.message","There was a problem in edit profile.");t(L()),t(Object(b.e)({description:e}))}},F=e=>async t=>{try{const a=await o.a.post(k+"/api/users/change_old_password",e);if(!1===a.data.data.action){const e={description:c.a.get(a,"data.message","Invalid data")};return t(Object(b.e)(e))}const n=c.a.get(a,"data.data.token","");if(c.a.isEmpty(n))return t(Object(b.e)({description:"Invalid token."})),void t(q());localStorage.setItem("AuthToken",n),Object(i.a)(n);let r="Password updated successfully.";a.data.data.userUniversalAccountCount>1&&(r="Password updated successfully.\n\nPlease use the same password for all McCandless Group websites."),t(Object(b.e)({description:r}))}catch(a){const e={description:c.a.get(a.response,"data.message","There was an error while change password.")};t(Object(b.e)(e))}},L=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a=>{if(!localStorage.AuthToken)return a(H()),void(e&&e());o.a.get(k+"/api/users/me?is_request_from_login_or_signup_api="+t).then(n=>{a(G(n,t)),e&&e()}).catch(t=>{a(z(t)),e&&e()})}},D=()=>e=>{o.a.post(k+"/api/change-email-settings/resend-change-email-request",{}).then(()=>{e(L()),alert("Resend change Email Request Successfully")}).catch(e=>{const t=c.a.get(e,"response.data.message","There was a problem in resend change email request.");alert(t)})},$=()=>e=>{o.a.post(k+"/api/change-email-settings/dismiss-change-email-request",{}).then(()=>{e(L());e(Object(b.e)({description:"Your change email request has been cancelled, if you want to change email then please request again."}))}).catch(t=>{const a=c.a.get(t,"response.data.message","There was a problem in dismiss change email request.");e(Object(b.e)({description:a}))})},R=()=>e=>{o.a.get(k+"/api/users/get_model_details").then(t=>{e(Y(t.data))})},B=e=>t=>{t(K()),o.a.post(k+"/api/users/upload_photo_id",e).then(()=>(t(J()),t(L()),t(Q()),alert("Photo ID uploaded. Your transaction limit has now been increased."))).catch(e=>alert(e))},U=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return async t=>{if(localStorage.AuthToken)try{const a=await o.a.get(k+"/api/users/me?is_request_from_login_or_signup_api="+e);return void t(G(a,e))}catch(a){return void t(z(a))}else t(H())}},G=(e,t)=>a=>{a(W(e.data)),a(H()),a(Object(d.o)()),"2"===e.data.ccbillSubscriptionStatus&&a(Object(g.i)(!0)),!0===e.data.isAdmin&&!0===t&&a(Object(u.u)(()=>{})),!1===e.data.isAdmin&&!0===t&&a(Object(_.d)(()=>{}));const n=c.a.get(e,"data.siteListOfDifferentPassword",[]);if(n.length>0){const e=localStorage.getItem("differentPasswordPopupReminderCount");e?[0,12,23,31,45].includes(Number(e))&&a(Object(y.e)(!0)):(localStorage.setItem("differentPasswordPopupReminderCount",0),a(Object(y.e)(!0))),a(Object(y.k)(n))}const o={is_running_from_pwa:!0===window.matchMedia("(display-mode: standalone)").matches,user_id:e.data._id,user_agent:window.navigator.userAgent,ccbill_subscription_status:e.data.ccbillSubscriptionStatus};a(Object(g.f)(o)),a(Object(f.h)())},z=e=>t=>{e.response&&401===e.response.status&&t(q()),t(H())},W=e=>({type:r.lc,payload:e}),H=()=>({type:r.yc}),q=e=>t=>{localStorage.removeItem("differentPasswordPopupReminderCount"),t(Object(y.k)([]));const a=localStorage.getItem("ProxyUserToken");if(void 0!==a&&null!==a)localStorage.removeItem("ProxyUserToken"),Object(i.a)(localStorage.getItem("AuthToken")),t({type:r.wb,payload:!0}),t(Object(_.e)()),t(L(()=>{e.push("/admin/transactions")},!1));else{t(Object(u.W)()),t(Object(_.e)()),Object(f.d)(),localStorage.removeItem("AuthToken"),localStorage.removeItem("showEmailNotificationPrompt"),Object(i.a)(!1),t(W({}));const e={pageNum:1};t(Object(p.g)(!1,e,()=>{})),t(Object(p.p)()),t(ae()),t(oe())}},V=()=>({type:r.Fb}),Y=e=>({type:r.w,payload:e}),K=()=>({type:r.Db}),J=()=>({type:r.Cb}),X=()=>({type:r.zb}),Q=()=>({type:r.y}),Z=e=>({type:r.N,payload:e}),ee=()=>({type:r.n}),te=()=>({type:r.Ob}),ae=()=>({type:r.Pb}),ne=()=>(document.querySelector("body").style.overflow="visible",{type:r.S}),oe=()=>({type:r.Tb}),ie=e=>(document.querySelector("body").style.overflow=e?"hidden":"visible",{type:r.Jc,payload:e}),re=()=>async e=>{const t=k+"/api/users/cancel_complimentary_subscription";let a="";try{const n=await o.a.post(t,{});await e(U(!1)),e(Object(p.g)(!1,{pageNum:1},()=>{})),a=n.data.message}catch(n){a=c.a.get(n,"response.data.message","Error in cancel subscription")}finally{e(Object(b.e)({description:a}))}},se=e=>({type:r.bb,payload:e}),le=e=>({type:r.ab,payload:e}),ce=e=>({type:r.Hb,payload:e}),de=e=>({type:r.vb,payload:e}),me=e=>({type:r.Kc,payload:e}),pe=e=>({type:r.wc,payload:e})},196:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(8),s=a(269),l=a(2),c=a.n(l),d=a(6),m=a(116),p=a(32);const u="320px",g="767px",h="1024px",b="1440px",f=d.a.div`
    font-size: ${e=>e.promoFontSize[3]};
    font-family: ${e=>e.promoFontFamily};
    color: ${e=>e.ribbonColor};
    padding-bottom: ${e=>e.ribbonBottomPadding}px;

    @media (min-width: ${u}) and (max-width: ${g}) {
        font-size: ${e=>e.promoFontSize[0]};
    }

    @media (min-width: ${g}) and (max-width: ${h}) {
        font-size: ${e=>e.promoFontSize[1]};
    }

    @media (min-width: ${h}) and (max-width: ${b}) {
        font-size: ${e=>e.promoFontSize[2]};
    }
`;var _=Object(r.b)(e=>({auth:e.auth,utility:e.utility}),{toggleAnnouncementBanner:p.i})(Object(i.g)((function(e){const{content_color:t,content_font_color:a,announcement_banner_settings:n}=e.auth.appSettings,i=c.a.get(n,"ribbon_background_color",a),r=c.a.get(n,"ribbon_padding_top","0"),s=c.a.get(n,"ribbon_padding_bottom","0"),l=c.a.get(n,"promo_text_color",t);let d=c.a.get(n,"promo_text_font_size","25px|25px|30px|30px");const p=c.a.get(n,"promo_text_font","inherit");return d=d.split("|"),4!==d.length&&(d=["25px","25px","30px","30px"]),o.a.createElement(o.a.Fragment,null,e.utility.isAnnouncementBannerOpen&&o.a.createElement(m.Animated,{animationIn:n.ribbon_animation,animationInDelay:n.animation_delay,animationInDuration:n.animation_duration,isVisible:!0},o.a.createElement("div",{style:{width:"100%",background:i,justifyContent:"center",alignContent:"center",paddingTop:r+"px",paddingBottom:s+"px"}},o.a.createElement("div",{className:"float-right"},o.a.createElement("button",{className:"close mr-2",style:{color:"#ffffff",opacity:"1.0",fontSize:"1.3em"},onClick:()=>e.toggleAnnouncementBanner(!1)})),o.a.createElement("div",{className:"text-center mt-2",style:{fontSize:"25px",wordBreak:"break-word",padding:"5px 20px"}},o.a.createElement(f,{ribbonColor:l,promoFontSize:d,promoFontFamily:p},e.banner_text)))))})));t.a=Object(r.b)(e=>({auth:e.auth}),{getAnnouncementSettings:s.a})(Object(i.g)((function(e){const{announcement_banner_settings:t}=e.auth.appSettings,[a,i]=Object(n.useState)(!1),[r,s]=Object(n.useState)(!1);let l=c.a.get(e.auth.user,"ccbillSubscriptionStatus","0"),d=c.a.get(e.auth.user,"isAdmin",!1);return Object(n.useEffect)(()=>{s(!1),i(!1),!0!==t.is_announcement_banner_enabled_for_subscribers||!1!==d||"1"!==l&&"2"!==l||(i(!0),s(!1)),!0===t.is_announcement_banner_enabled_for_non_subscribers&&!1===d&&"0"===l&&(s(!0),i(!1))}),o.a.createElement(o.a.Fragment,null,!0===r&&o.a.createElement(_,{banner_text:t.non_subscriber_announcement_banner_text}),!0===a&&"/subscribe"!==e.history.location.pathname&&o.a.createElement(_,{banner_text:t.subscriber_announcement_banner_text}))})))},20:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return s})),a.d(t,"b",(function(){return l}));var n=a(110),o=a.n(n),i=a(34);const r=(e,t,a,n,r,s)=>{""!==i.a.getState().auth.appSettings.google_analytics_4_measurement_id&&("purchase"===e?o()("event",e,{transaction_id:t,value:a,currency:"USD",items:[{item_id:n,item_name:r,item_category:s,quantity:1,price:a}]}):o()("event",e,{items:[{item_id:n,item_name:r,item_category:s,quantity:1,price:a}]}))},s=(e,t)=>{""!==i.a.getState().auth.appSettings.google_analytics_4_measurement_id&&o()("event","promotions",{id:e,name:t})},l=(e,t,a)=>{""!==i.a.getState().auth.appSettings.google_analytics_4_measurement_id&&o()("event",e,{event_category:t,event_label:a})}},216:function(e,t,a){"use strict";a.d(t,"b",(function(){return u})),a.d(t,"e",(function(){return g})),a.d(t,"d",(function(){return h})),a.d(t,"a",(function(){return b})),a.d(t,"f",(function(){return f})),a.d(t,"c",(function(){return _}));var n=a(3),o=a.n(n),i=a(22),r=a(4),s=a(2),l=a.n(s),c=a(19),d=a(20),m=a(1);const p=Object(i.a)(),u=e=>()=>{o.a.get(p+"/api/migrate-subscription").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},g=(e,t)=>a=>{o.a.post(p+"/api/migrate-subscription",e).then(e=>{const n={description:e.data.message};return a(Object(r.e)(n)),t()}).catch(e=>{const n={description:l.a.get(e.response,"data.message","Invalid request.")};return a(Object(r.e)(n)),t()})},h=(e,t)=>a=>{o.a.post(p+"/api/save-condition",e).then(e=>{const n={description:e.data.message};return a(Object(r.e)(n)),t(e.data)}).catch(e=>{const n={description:l.a.get(e.response,"data.message","Invalid request.")};return a(Object(r.e)(n)),t()})},b=e=>t=>{o.a.post(p+"/api/cancel-subscription").then(a=>{if(!0===a.data.data.cancelled){const e={description:a.data.message};t(Object(r.e)(e)),t(Object(c.l)()),"0"===a.data.data.ccbill_subscription_status&&t(y())}else{const e={description:"There was a problem cancelling your subscription. Please try again after an hour."};t(Object(r.e)(e))}e()}).catch(a=>{const n={description:l.a.get(a.response,"data.message","Invalid request.")};t(Object(r.e)(n)),e()})},f=e=>t=>{o.a.post(p+"/api/migrate-subscription-for-user").then(a=>{if(!0===a.data.data.accepted){const{transactionId:e,amount:t}=a.data.data;Object(d.a)("purchase",e,t,"CCBill API","subscription","subscription-migration")}else"0"===a.data.data.ccbill_subscription_status&&t(y());let n={description:a.data.message};t(Object(r.e)(n)),t(Object(c.l)()),e()}).catch(a=>{const n=l.a.get(a.response,"data.message","Invalid request.");let o={description:n};"An unknown error occurred while canceling the subscription. Please try after some time"!==n&&t(Object(c.l)()),t(Object(r.e)(o)),e()})},_=e=>t=>{o.a.get(p+"/api/migration-data").then(t=>e(t.data)).catch(a=>{const n={description:l.a.get(a.response,"data.message","Invalid request.")};return t(Object(r.e)(n)),e()})},y=()=>({type:m.Zc})},22:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return o}));const n=function(){if("localhost"===window.location.hostname)return"http://localhost:8000";let e=window.location.host,t=window.location.protocol;if(e.startsWith("www.")){return`${t}//www.api.${e.replace("www.","")}`}return`${t}//api.${e}`},o=function(){if("localhost"===window.location.hostname){return"http://localhost:"+window.location.port}let e=window.location.host,t=window.location.protocol;if(e.startsWith("www.")){return`${t}//www.${e.replace("www.","")}`}return`${t}//${e}`}},229:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(14),r=a(29),s=a(8),l=a(27),c=a.n(l);t.a=Object(s.b)(e=>({auth:e.auth}))(Object(r.g)((function(e){return o.a.createElement("div",{className:c()("d-lg-none row m-1",e.classes)},o.a.createElement("div",{className:"col-12"},o.a.createElement(i.b,{to:e.link},o.a.createElement("h4",{style:{color:e.auth.appSettings.site_font_color}},o.a.createElement("i",{className:"fas fa-chevron-left mr-3"}),e.text))))})))},230:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n=a(1);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";return t=>{t({type:n.yb,payload:e}),setTimeout(()=>{t({type:n.x})},2e3)}}},231:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(27),r=a.n(i),s=a(29),l=a(8);const c=a(6).a.div`
    background-color: ${e=>e.cardColor} !important;

    .card-header {
        border-bottom: 1px solid ${e=>e.cardHeaderBorderColor};
    }
`;t.a=Object(l.b)(e=>({auth:e.auth}))(Object(s.g)((function(e){const{card_background_color:t,card_header_border_color:a}=e.auth.appSettings;return o.a.createElement("div",{className:r()("row",e.className)},o.a.createElement("div",{className:"col-12"},o.a.createElement(c,{className:"card",cardColor:t,cardHeaderBorderColor:a},e.title?o.a.createElement("div",{className:"card-header"},e.title):o.a.createElement(o.a.Fragment,null),o.a.createElement("div",{className:"card-body"},e.children))))})))},232:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(6),r=a(2),s=a.n(r);const l=i.a.ul`
    .page-item .page-link {
        border: 1px solid ${e=>e.contentColor} !important;
        background-color: #fff;
        color: #000;
    }

    .page-item .page-link:hover {
        background-color: ${e=>e.contentColor};
        color: ${e=>e.contentFontColor};
    }
    
    .active-link{
        background-color: ${e=>e.contentColor} !important;
        color: ${e=>e.contentFontColor} !important;
    }
`;t.a=e=>{let t=e.currentPage?e.currentPage:1;const a=e.totalPages,n=e.contentColor||"#fff",i=e.contentFontColor||"#000",r=e.totalItems||0,c=e.totalAllItems||0,d=e.itemsPerPage||0,m=e.isFiltered||!1,p=e.showFirstAndLastBtn||!1,u=s.a.get(e,"isLoading",!1),g=t=>{e.onItemClick&&e.onItemClick(t)};let h=((e,t)=>{let a=[];if(t<=3)for(let n=1;n<t;n++)a.push(n);if(t>3)for(let n=t-3;n<t;n++)a.push(n);if(a.push(t),e>t)for(let n=t+1;n<=e&&!(n>t+3);n++)a.push(n);return a})(a,t),b=d*t;b>r&&(b=r);let f="";return r>0&&(f=`Showing ${d*(t-1)+1} to ${b} of ${r} entries`),m&&(f+=` (filtered from ${c} total entries)`),o.a.createElement("div",{className:"row position-relative",style:{pointerEvents:u?"none":"auto"}},f&&o.a.createElement("div",{className:"col"},f),o.a.createElement("div",{className:"col"},o.a.createElement("nav",null,o.a.createElement(l,{className:"pagination justify-content-end",contentColor:n,contentFontColor:i},p?o.a.createElement("li",{className:1===t||u?"page-item disabled":"page-item"},o.a.createElement("span",{className:"page-link",onClick:()=>g(1)},"<<")):null,h.map((e,a)=>{let n=t===e;return o.a.createElement("li",{key:a,className:n&&!u?"page-item active":"page-item"},o.a.createElement("span",{className:n&&!u?"page-link active-link":"page-link",onClick:()=>n?null:g(e)},e))}),p?o.a.createElement("li",{className:a===t||u?"page-item disabled":"page-item"},o.a.createElement("span",{className:"page-link",onClick:()=>g(a)},">>")):null))))}},234:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(8),r=a(6),s=a(2),l=a.n(s),c=a(301),d=a(29),m=(a(455),a(98)),p=a(48),u=a(111);const g=r.a.div`
    width: 100%;
    height: 100%;

    .pcp-gallery-slider {
        background: transparent;
    }

    .pcp-gallery-slider li {
        padding-right: 50px;
        padding-left: 50px;
        max-width: 100%;
    }

    .pcp-gallery-slider li > div {
        height: 100vh !important
    }

    .pcp-gallery-slider div > span {
        background: transparent !important;
        color: white;
    }

    video {
        width: 100%;
    }

    img {
        object-fit: contain;
    }

    video, img {
        max-height: var(--app-height);
    }

    @media(max-width: 767px) {
        .pcp-gallery-slider li {
            padding-right: 0;
            padding-left: 0;
        }

        video, img {
            max-height: ${e=>e.isIOS?"var(--app-height)":"90vh"};
        }

        .pcp-gallery-slider li > div {
            height: ${e=>e.isIOS?"var(--app-height)":"90vh"} !important;
        }

        .sc-frDJqD {
            padding: 40px 12px 40px 40px !important;
        }
    
        .sc-hmzhuo {
            padding: 40px 40px 40px 12px !important;
        }
    }

    .sc-frDJqD {
        padding: 70px 12px 70px 70px;
    }

    .sc-hmzhuo {
        padding: 70px 70px 70px 12px;
    }
`,h=r.a.img`
    margin: auto;
    display: block;
    object-fit: contain;
    pointer-events: none;
`,b=r.a.div`
    position: absolute;
    top: calc(50% - 15px);
    left: 0;
    cursor: pointer;
    z-index: 1;
    color: ${e=>e.color};
    padding: 12px;
`,f=r.a.div`
    position: absolute;
    top: calc(50% - 15px);
    right: 0;
    cursor: pointer;
    z-index: 1;
    color: ${e=>e.color};
    padding: 12px;
`;var _=Object(i.b)(e=>({auth:e.auth}))(Object(d.g)(e=>{const t=e.auth.user._id,a=l.a.get(e,"media",[]),i=l.a.get(e,"currentIndex",0),r=l.a.get(e,"auth.appSettings.content_font_color",""),s=Object(n.useRef)([]);Object(n.useEffect)(()=>{s.current=s.current.slice(0,a.length),d(),window.addEventListener("resize",d)},[a]);const d=()=>{document.documentElement.style.setProperty("--app-height",window.innerHeight+"px")},_={index:i,hasThumbnails:!1,minIcon:!1,maxIcon:!1,playIcon:!1,pauseIcon:!1,hasIndexBoard:"bottomLeft",canAutoPlay:!1,className:"pcp-gallery-slider",leftIcon:o.a.createElement(b,{color:r},o.a.createElement("i",{className:"fas fa-chevron-left fa-2x"})),rightIcon:o.a.createElement(f,{color:r},o.a.createElement("i",{className:"fas fa-chevron-right fa-2x"})),onIndexChange:()=>{l.a.forEach(s.current,e=>{e.pause&&e.pause()})}};return o.a.createElement(g,{isIOS:p.isIOS,key:Object(u.v4)()},o.a.createElement(c.a,_,a.map((e,a)=>{const{url:n,content_type:i,video_poster:r}=e,l="video"===i;return o.a.createElement(m.a,{userId:t,key:a,className:"gallery-content-overlay"},l?o.a.createElement("video",{key:a,controls:!0,controlsList:"nodownload",poster:r,ref:e=>s.current[a]=e},o.a.createElement("source",{src:n})):o.a.createElement(h,{key:a,draggable:!1,src:n,alt:"",ref:e=>s.current[a]=e}))})))}));const y=r.a.div`
width: 100%;
z-index: 55 !important;

    .modal {
        display: block;
        background-color: #000000e6;
    }
`,E=r.a.button`
    background-color: ${e=>e.content_color} !important; 
    color: ${e=>e.content_font_color} !important;
    border-radius: 77%;
    height: 30px;
    width: 30px;
    right: 10px; 
    position: absolute; 
    top: 20px;
    cursor: pointer;
    z-index: 10;
    display: inherit;
    align-items: center;
    justify-content: center;
    overflow: hidden;
`;t.a=Object(i.b)(e=>({auth:e.auth}))(e=>{const t=l.a.get(e,"isPreviewEnable",!1),a=l.a.get(e,"isLocked",!1);let i=0;i="blog"!==e.contentFrom?!0===t&&!0===a?[e.previewEnableImages[0]]:e.galleryImages:!0===t&&!0===a?[e.media[0]]:e.media;const r=()=>{let t=!1;for(let e=0;e<i.length-1;e++)"video"===i[e].content_type&&(t=!0);!0===t&&document.querySelectorAll(".myVideoPause").forEach(e=>e.pause()),e.closeDialogBlog()};Object(n.useEffect)(()=>{const t=t=>{27===t.keyCode&&e.closeDialogBlog()};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[]),Object(n.useEffect)(()=>(window.addEventListener("mousedown",s),()=>window.removeEventListener("mousedown",s)),[e.contentFrom]);const s=e=>{let t=e.target,a=!1;for(;t;){if(t.classList.contains("gallery-content-overlay")){a=!0;break}t=t.parentElement}for(t=e.target;t;){if(t.classList.contains("fa-chevron-left")){a=!0;break}t=t.parentElement}for(t=e.target;t;){if(t.classList.contains("fa-chevron-right")){a=!0;break}t=t.parentElement}for(t=e.target;t;){if(t.classList.contains("sc-frDJqD")){a=!0;break}t=t.parentElement}for(t=e.target;t;){if(t.classList.contains("sc-hmzhuo")){a=!0;break}t=t.parentElement}a||r()};let c=[];if("massMessage"!==e.contentFrom&&"blog"!==e.contentFrom&&"chat"!==e.contentFrom&&"liveStream"!==e.contentFrom||(c=l.a.get(e,"media",[])),0===c.length)for(let n of i)c.push({url:n,content_type:"photo"});return o.a.createElement(y,{className:"media-popup"},o.a.createElement("div",{className:"modal fade show"},o.a.createElement("div",{className:"modal-dialog modal-fullscreen",style:{width:"100%",margin:"0%",maxWidth:"100%"}},o.a.createElement("div",{className:"modal-content",style:{backgroundColor:"transparent"}},o.a.createElement("div",{className:"modal-body",style:{backgroundColor:"transparent",margin:"0",padding:"0",height:"100vh"}},o.a.createElement(E,{className:"close",content_color:e.auth.appSettings.content_color,content_font_color:e.auth.appSettings.content_font_color,onClick:r}),o.a.createElement("div",{className:"d-flex flex-column justify-content-center align-items-center"},o.a.createElement(_,{media:c,currentIndex:e.galleryIndex})))))))})},235:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(8),s=a(127),l=a.n(s),c=a(4),d=a(6),m=a(30);const p=d.a.div`
width: 100%;
    h2, p, .description {
        color: ${e=>e.color} !important;
    }
    p, .description {
        font-size: 15px !important;
        margin-top: 0px !important;
    }

    .btn-primary:not(:disabled):not(.disabled):active {
        background-color: ${e=>e.backgroundColor} !important;
      }
`;t.a=Object(r.b)(e=>({auth:e.auth,sweetAlert:e.sweetAlert}),{setSweetAlert:c.e,removeSweetAlert:c.b})(Object(i.g)((function(e){const{card_background_color:t,content_color:a,site_font_color:n,content_font_color:i,button_shadow_color:r}=e.auth.appSettings,{description:s,onConfirmUrl:c}=e.sweetAlert,{showAlert:d}=e.sweetAlert;return o.a.createElement(o.a.Fragment,null,!0===d&&o.a.createElement(p,{backgroundColor:a,color:n,btnFontColor:i,button_shadow_color:r},o.a.createElement(l.a,{title:"",style:{backgroundColor:t,color:i},btnSize:"md",showConfirm:!1},"object"===typeof s?o.a.createElement("p",null,s):o.a.createElement("p",{dangerouslySetInnerHTML:{__html:s}}),o.a.createElement(m.a,{type:"button",variant:"primary",onClick:()=>{e.removeSweetAlert(),""!==c&&e.history.push(c)}},"OK"))))})))},237:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(8),s=a(44),l=a(56),c=a(53),d=a(6),m=a(230),p=a(115),u=a(20),g=a(30),h=a(19),b=a(4),f=a(1),_=a(111);const y=d.a.i`
    color: #495057;
`,E=d.a.div`
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    z-index: 1;
    visibility: ${e=>e.show?"visible":"hidden"};
`,v=d.a.div`
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
`;t.a=Object(r.b)(e=>({auth:e.auth}),{getCryptoCurrencyList:s.e,startNewPayment:s.j,checkTransactionForAddFund:s.c,updateUserSubscriptionStatus:l.e,openCopyToClipboardToast:m.a,getTransactionData:s.f,updateDefaultPaymentMethod:p.f,addFund:s.a,updateWalletAmount:s.k,purchaseFromWallet:s.i,generatePaymentId:s.d,getUserDetails:h.k,setSweetAlert:b.e})(Object(i.g)((function(e){const{card_background_color:t,enable_forumpay_payment_live_mode:a,content_color:i}=e.auth.appSettings,{last_used_crypto_currency:s}=e.auth.user,[l,d]=Object(n.useState)([]),[m,p]=Object(n.useState)(""),[h,b]=Object(n.useState)(!0),[w,x]=Object(n.useState)(0),[k,N]=Object(n.useState)(""),[S,C]=Object(n.useState)(""),[T,O]=Object(n.useState)(""),[P,I]=Object(n.useState)(!1),[A,M]=Object(n.useState)(""),[j,F]=Object(n.useState)(""),[L,D]=Object(n.useState)(!1),[$,R]=Object(n.useState)(""),[B,U]=Object(n.useState)(""),[G,z]=Object(n.useState)([]),W=Object(n.useRef)(null),H=Object(n.useRef)(j),q=Object(n.useRef)(L),V=Object(n.useRef)(T),Y=Object(n.useRef)($),K=Object(n.useRef)(B),J=Object(n.useRef)(m),X=Object(n.useRef)(!1),Q=Object(n.useRef)(!1),Z=Object(r.c)();Object(n.useEffect)(()=>{if(P){const e=setInterval(()=>{te()},5e3);return()=>{clearInterval(e)}}if(""===J.current&&(b(!0),ae()),!1===Q.current&&!1===P){const e=setInterval(()=>{oe()},5e3);return()=>{clearInterval(e)}}},[P]),Object(n.useEffect)(()=>{!1!==P&&""!==J.current||(H.current="",oe())},[m,P]);const ee=(t,a)=>{"amount"===a&&window.CryptoPaymentStats.onAmountCopy(),"payment_address"===a&&window.CryptoPaymentStats.onAddressCopy(),navigator.clipboard.writeText(t),e.openCopyToClipboardToast()},te=async()=>{if(""!==H.current&&!0!==q.current&&!1===X.current){b(!0);const t={pos_id:Y.current,currency:J.current,address:V.current,payment_id:K.current,transaction_id:H.current};X.current=!0;const a=await e.checkTransactionForAddFund(t);if(X.current=!1,a){if(b(!1),!1===a.data.is_payment_confirmed)return;{const t={payment_method:"crypto_currency"};e.updateDefaultPaymentMethod(t),e.getUserDetails(()=>{D(!0),q.current=!0,window.CryptoPaymentStats.beforeClose(),e.onCompleteTransaction(a.data.wallet_balance)},!1)}}else b(!1),D(!0),q.current=!0,e.setSweetAlert({description:"Payment failed."}),window.CryptoPaymentStats.beforeClose(),e.onCompleteTransaction(!1)}},ae=async()=>{const t=await e.getCryptoCurrencyList(e.requestFrom);t?(d(t.data),p(s),J.current=s):("blog"!==e.hideCryptoFormStatus&&"chat"!==e.hideCryptoFormStatus&&"tips"!==e.hideCryptoFormStatus&&"add_fund"!==e.hideCryptoFormStatus||e.onHideAddFundsForm(),"tips"===e.hideCryptoFormStatus&&Z({type:f.kd,payload:!1}),e.onChangeAmount()),b(!1)},ne=Object(n.useMemo)(()=>l.map(e=>o.a.createElement("option",{key:e.currency,value:e.currency},e.description)),[l]),oe=async()=>{if(""!==J.current&&!1===Q.current){Q.current=!0,b(!0);const t={currency:J.current,amount:e.amount.toString()},a=await e.generatePaymentId(t);if(1===a.success)x(a.data.amount),U(a.data.payment_id),K.current=a.data.payment_id,b(!1),Q.current=!1;else{const t={description:a.message};e.setSweetAlert(t),e.onCompleteTransaction(!1)}}};return o.a.createElement("div",{style:{background:t}},o.a.createElement("div",null,o.a.createElement("div",null,o.a.createElement("h4",{className:"m-0"},"Transaction Amount: $",e.amount," USD"),o.a.createElement("p",{className:"m-0",style:{textDecoration:"underline",cursor:"pointer"},onClick:()=>e.onChangeAmount()},"(change amount)")),o.a.createElement(E,{show:h||0===ne.length},o.a.createElement(v,null),o.a.createElement(c.a,{loading:h})),o.a.createElement("div",null,o.a.createElement("p",null,!0===P?o.a.createElement(o.a.Fragment,null,"Use the wallet QR code below or copy and paste the coin amount and wallet address."):o.a.createElement(o.a.Fragment,null,"Please select a cryptocurrency from the options below."))),o.a.createElement("div",{className:"form-group"},o.a.createElement("select",{className:"form-select",value:m,onChange:e=>{p(e.target.value),J.current=e.target.value,oe()},ref:W,disabled:P},ne)),o.a.createElement("div",{className:"form-group"},o.a.createElement("div",{className:"input-group"},o.a.createElement("div",{className:"input-group-prepend"},o.a.createElement("span",{className:"input-group-text form-control"},m)),o.a.createElement("input",{type:"text",className:"form-control",value:w,disabled:!0}),o.a.createElement("div",{className:"input-group-append",style:{cursor:"pointer"},onClick:()=>ee(w,"amount")},o.a.createElement("span",{className:"input-group-text form-control"},o.a.createElement(y,{className:"fas fa-copy"}))))),!0===P?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"text-center"},o.a.createElement("div",{className:"form-group"},o.a.createElement("div",{className:"input-group"},o.a.createElement("div",{className:"input-group-prepend"},o.a.createElement("span",{className:"input-group-text form-control"},"Address")),o.a.createElement("input",{type:"text",className:"form-control",value:T,disabled:!0}),o.a.createElement("div",{className:"input-group-append",style:{cursor:"pointer"},onClick:()=>ee(T,"payment_address")},o.a.createElement("span",{className:"input-group-text form-control"},o.a.createElement(y,{className:"fas fa-copy"}))))),G.length>0&&o.a.createElement("div",{className:"text-left mt-5"},G.map(e=>o.a.createElement("div",{key:Object(_.v4)(),className:"alert alert-danger"},e.code,": ",e.message))),o.a.createElement("div",{className:"form-group"},o.a.createElement("img",{src:k,width:"200px",alt:"",onLoad:"window.CryptoPaymentStats.onQRCodeLoad(true)",onError:"window.CryptoPaymentStats.onQRCodeLoad(false)"})),o.a.createElement("div",{className:"form-group"},o.a.createElement("small",null,"Expected time to confirm: ",A,"."),o.a.createElement("small",null,"Please do not close this tab.")),!1===a&&o.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:S},"Click here for payment")),o.a.createElement("div",{className:"text-left mt-5 p-2",style:{border:"1px solid "+i}},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-1"},o.a.createElement("i",{className:"fas fa-info-circle"})),o.a.createElement("div",{className:"col-10"},"You will have 15 minutes from the time you select your cryptocurrency to complete your transaction. If you are unable to complete your transaction, you can start over again. All orders are final.")))):o.a.createElement(g.a,{type:"button",onClick:async()=>{if(""!==m.current){b(!0),I(!0);const t={currency:J.current,transaction_type:"add_fund",amount:e.amount.toString(),payment_for:"add_fund",payment_id:K.current},a=await e.addFund(t);if(1===a.success){const{paymentData:e,pos_id:t}=a.data,{amount:n,qr_img:o,qr:i,address:r,wait_time:s,reference_no:l,payment_id:c,stats_token:d,currency:m,notices:p}=e;x(n),N(o),C(i),O(r),M(s),F(l),R(t),z(p),H.current=l,V.current=r,Y.current=t,K.current=c,window.CryptoPaymentStats.setToken(d),Object(u.a)("add_fund",t,n,"CRYPTO","add_fund",m)}else e.setSweetAlert({description:a.message})}},classes:"px-4",style:{fontSize:"16px"},loading:h},"Start Crypto Payment")))})))},238:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(8),r=a(6),s=a(33);const l=r.a.div`
    position: fixed;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    top: 70vh;
    z-index: 99999;
`;t.a=Object(i.b)(e=>({auth:e.auth,copyToClipboard:e.copyToClipboard}))(e=>{const{card_background_color:t}=e.auth.appSettings;return e.copyToClipboard.isCopyToClipboardToastOpen?o.a.createElement(s.a,null,o.a.createElement(l,{className:"toast text-center show",style:{backgroundColor:t}},o.a.createElement("div",{className:"toast-body"},e.toastContent))):o.a.createElement(o.a.Fragment,null)})},239:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(8),s=a(19);class l extends o.a.Component{constructor(){super(),this.handlePhotoIdSelectedFile=e=>{this.setState({[e.target.name]:e.target.files[0]})},this.handlePhotoIdDialogClose=()=>{this.props.closePhotoIdModal()},this.state={photoId:null},this.setPhotoId=this.setPhotoId.bind(this),this.handlePhotoIdDialogClose=this.handlePhotoIdDialogClose.bind(this)}setPhotoId(e){if(e.preventDefault(),null===this.state.photoId)return alert("Please select photo ID file.");let t=new FormData;null!==this.state.photoId&&t.set("photoId",this.state.photoId,this.state.photoId.name),this.props.uploadPhotoId(t),this.setState({photoId:null})}render(){const{content_color:e,content_font_color:t}=this.props.auth.appSettings,{isPhotoIdUploading:a}=this.props.auth,{isPhotoIdAccepted:n}=this.props.auth.user;return o.a.createElement("div",null,o.a.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#000000ef"}},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered",role:"document"},o.a.createElement("div",{className:"modal-content"},o.a.createElement("div",{className:"modal-header"},o.a.createElement("h5",{className:"modal-title"},"Upload Photo ID"),o.a.createElement("button",{className:"close",onClick:this.handlePhotoIdDialogClose})),o.a.createElement("div",{className:"modal-body"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col"},o.a.createElement("form",{onSubmit:this.setPhotoId},o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"col"},void 0===n?o.a.createElement("div",{className:"mb-4"},"To prevent fraud, please provide a picture of your Photo ID for verification. Once this is provided, you will no longer have any limits for your account."):o.a.createElement("div",{className:"mb-4"},"The Photo ID that you provided is not valid. Please upload a valid Photo ID and you will no longer have any limits for your account."),o.a.createElement("input",{type:"file",accept:"image/*, application/pdf",src:this.state.photoId,alt:"",onChange:this.handlePhotoIdSelectedFile,name:"photoId"}))),o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"col text-right"},o.a.createElement("button",{className:"btn mt-4",type:"submit",style:{backgroundColor:e,color:t},disabled:a},a?o.a.createElement(o.a.Fragment,null,"Uploading"):o.a.createElement(o.a.Fragment,null,"Upload"))))))))))))}}t.a=Object(r.b)(e=>({auth:e.auth,errors:e.errors}),{uploadPhotoId:s.D,closePhotoIdModal:s.g})(Object(i.g)(l))},242:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(8),s=a(6),l=a(176),c=a(56),d=a(69),m=a(2),p=a.n(m),u=a(82),g=a(203),h=a(115),b=a(88),f=a(53),_=a(45),y=a(32),E=a(51),v=a(15);const w="320px",x="767px",k=s.a.div`

input, textarea, select {
    padding: 15px;
    border: 1px solid #0028641f;
    width: -webkit-fill-available !important;
}
input:focus, textarea:focus, select:focus {
    outline: 1px solid #0028641f;
    box-shadow: none;
    border: 1px border transparent;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.form-control__input input {
    margin: 5px 0px;
}
.form-control__control {
    padding-left: 8px;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}
select {
    height: auto !important;
}
img {
    object-fit: contain;
}
.form-control__menu {
    color: black
}
.selection>div>div {
    border-color: hsl(0, 0%, 90%);
}
.payment_billing_information, .payment_card_information {
    padding-left: 50px;
    padding-right: 50px;
}

@media (min-width: ${w}) and (max-width: ${x}) {
    input, textarea, select {
        padding-right: 5px;
        padding-left: 5px;
    }
    .payment_billing_information, .payment_card_information {
        padding-left: 5px;
        padding-right: 5px;
    }
    .card_number img{
        right: 20px !important;
    }
}
`,N=s.a.button`
    border-radius: calc(1.5em + 0.37rem + 1px) !important;
    background-color: ${e=>e.contentColor} !important;
    color: ${e=>e.contentFontColor} !important;
    
    &:hover {
        color: ${e=>e.contentFontColor} !important;
    }
`;t.a=Object(r.b)(e=>({auth:e.auth,errors:e.errors,promotion:e.promotion,resubscriptionOffer:e.resubscriptionOffer,utility:e.utility}),{getCountries:l.b,getStates:l.c,getCities:l.a,newUserSubscription:c.b,updateUserSubscriptionStatus:c.e,getUsersPaymentMethod:h.b,userSubscriptionWithCard:c.g,getCountryFromIP:c.a,subscriptionUsingStickyIo:d.j,addNewCardStickyIo:d.a,userSubscriptionWithCardStickyIo:d.k,subscriptionPayment:_.h,blogPurchasePayment:_.c,chatPurchasePayment:_.e,togglePaymentModal:y.m,TipPayment:_.a})(Object(i.g)((function(e){const{register:t,handleSubmit:a,errors:i,setValue:r,watch:s,control:l}=Object(u.b)(),c=s("country"),d=s("state");let[m,h]=Object(n.useState)(!1),[_,y]=Object(n.useState)([]),[w,x]=Object(n.useState)([]),[S,C]=Object(n.useState)([]),[T,O]=Object(n.useState)(!1);const[P,I]=Object(n.useState)(""),[A,M]=Object(n.useState)(!1),[j,F]=Object(n.useState)(""),[L,D]=Object(n.useState)(""),[$,R]=Object(n.useState)(!1);let[B,U]=Object(n.useState)(!1),[G,z]=Object(n.useState)(!1);const[W,H]=Object(n.useState)("");let[q,V]=Object(n.useState)([]),[Y,K]=Object(n.useState)([]);const J=t=>{let a={countryId:t};h(!0),C([]),e.getStates(a,e=>{const t=e.data.states.map(e=>({label:e.name,value:e._id}));x(t),K(e.data.states),h(!1)})};Object(n.useEffect)(()=>{""!==c&&void 0!==c&&J(c)},[c]),Object(n.useEffect)(()=>{if(""!==d&&void 0!==d){let t={stateId:d,countryId:c};h(!0),C([]),e.getCities(t,e=>{const t=e.data.cities.map(e=>({label:e.name,value:e._id}));C(t),h(!1)})}},[d]),Object(n.useEffect)(()=>{const t=e.auth.user.email;r("email",t),I(t),e.getCountryFromIP(t=>{const a=p.a.get(t,"data.country","");e.getCountries(e=>{h(!1);const t=e.data.countries.map(e=>({label:e.name,value:e._id}));y(t),V(e.data.countries);const n=e.data.countries.filter(e=>e.iso2.toLowerCase()===a);n.length>0&&(R(!0),D(n[0]._id),J(n[0]._id),R(!1))})}),!0===e.addCardAndSubscription?X():(M(!0),U(!0))},[]);const X=()=>{h(!0),U(!1),e.getUsersPaymentMethod(e=>{M(!(e.data.length>0)),h(!1),U(!0)})},{content_color:Q,content_font_color:Z,new_signup_design_title_font_size:ee,new_signup_design_description_font_size:te,card_background_color:ae,site_font_color:ne,payment_form_bg_color:oe,payment_form_text_color:ie,payment_form_border_radius:re,payment_form_btn_bg_color:se,payment_form_btn_text_color:le,payment_form_padding:ce}=e.auth.appSettings,de=!0===e.addCardAndSubscription&&ie||ne,me=!0===e.addCardAndSubscription&&re||"0",pe=!0===e.addCardAndSubscription&&se||Q,ue=!0===e.addCardAndSubscription&&le||Z,ge=!0===e.addCardAndSubscription&&ce||"15";let he=ae;!0===e.addCardAndSubscription&&(he=void 0!==oe&&""!==oe?oe:"#fff"===ae.toLowerCase()||"#ffffff"===ae.toLowerCase()?"#fffcf6":ae);let be=ee.split("|");4!==be.length&&(be=["55px","65px","75px","85px"]);let fe=te.split("|");4!==fe.length&&(fe=["25px","25px","35px","35px"]);const _e=[{value:"01",label:"01 - January"},{value:"02",label:"02 - February"},{value:"03",label:"03 - March"},{value:"04",label:"04 - April"},{value:"05",label:"05 - May"},{value:"06",label:"06 - June"},{value:"07",label:"07 - July"},{value:"08",label:"08 - August"},{value:"09",label:"09 - September"},{value:"10",label:"10 - October"},{value:"11",label:"11 - November"},{value:"12",label:"12 - December"}].map(e=>o.a.createElement("option",{key:e.label,value:e.value},e.label)),ye=Object(n.useMemo)(()=>{const e=(new Date).getFullYear();let t=[];for(let a=0;a<15;a++)t.push(e+a);return t.map(e=>o.a.createElement("option",{key:e,value:e},e))}),Ee=e=>{z(e),h(e),O(e)},ve=/^[0-9]{0,19}$/,we=e=>{const t=function(e){const t=new RegExp("^(?:2131|1800|35)[0-9]{0,}$"),a=new RegExp("^3[47][0-9]{0,}$"),n=new RegExp("^3(?:0[0-59]{1}|[689])[0-9]{0,}$"),o=new RegExp("^4[0-9]{0,}$"),i=new RegExp("^(5[1-5]|222[1-9]|22[3-9]|2[3-6]|27[01]|2720)[0-9]{0,}$"),r=new RegExp("^(5[06789]|6)[0-9]{0,}$"),s=new RegExp("^(6011|65|64[4-9]|62212[6-9]|6221[3-9]|622[2-8]|6229[01]|62292[0-5])[0-9]{0,}$");let l="unknown";return(e=e.replace(/\D/g,"")).match(t)?l="jcb":e.match(a)?l="amex":e.match(n)?l="diners_club":e.match(o)?l="visa":e.match(i)?l="mastercard":e.match(s)?l="discover":e.match(r)&&(l="5"===e[0]?"mastercard":"maestro"),l}(e);if(F(t),!0===ve.test(e))return r("cardNumber",e),void H(e);r("cardNumber",W)};return!0===B&&o.a.createElement(E.a,{title:"Add Card Details",handleClose:()=>e.togglePaymentModal({}),modalBodyMaxHeight:"100vh"},o.a.createElement("form",{autoComplete:"off",onSubmit:a(t=>{if("unknown"===j)return alert("Invalid payment card type."),!1;(t={...t,...e.utility.paymentRequest}).addCardAndSubscription=e.addCardAndSubscription,t.payment_cascade=e.utility.paymentCascade,t.is_cascade=!0,t.email=t.email.trim(),t.address=t.address.trim(),t.country=t.country.trim(),t.state=t.state.trim(),t.city=t.city.trim(),t.pincode=t.pincode.trim(),t.firstName=t.firstName.trim(),t.lastName=t.lastName.trim(),t.cardNumber=t.cardNumber.trim(),t.cvv=t.cvv.trim(),t.month=t.month.trim(),t.year=t.year.trim(),t.card_type="mastercard"===j?"master":j.trim(),async function(t){const a=q.filter(e=>e._id===t.country);t.country=a[0].iso2;const n=Y.filter(e=>e._id===t.state);t.state=n[0]?n[0].state_code:"";const o=S.filter(e=>e.value===t.city);let i;t.city=o[0]?o[0].label:"",Ee(!0),"blog"===t.action&&(i=await e.blogPurchasePayment(t));"chat"===t.action&&(i=await e.chatPurchasePayment(t));"tips"===t.action&&(i=await e.TipPayment(t,e.auth.user._id));Ee(!1),1===i.success&&(document.querySelector("body").style.overflow="",e.togglePaymentModal({}))}(t)}),style:{borderRadius:me+"px",overflow:"hidden"}},o.a.createElement(k,{contentColor:Q,contentFontColor:Z},!0===A&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"payment_billing_information mb-5",style:{background:he,padding:ge+"px",borderBottomLeftRadius:me+"px",borderBottomRightRadius:me+"px"}},o.a.createElement("div",{className:"col-12"},o.a.createElement("h2",{className:"text-center",style:{color:de}},"BILLING INFORMATION")),o.a.createElement("div",{className:"form-group row mb-0"},o.a.createElement("div",{className:"col-12 mb-2"},o.a.createElement("input",{type:"email",name:"email",className:"form-control w-100 text-secondary h-auto",placeholder:"Email Address",defaultValue:P,ref:t({required:!0,pattern:/^\S+@\S+$/i}),disabled:G}),i.email&&o.a.createElement(o.a.Fragment,null,"required"===i.email.type&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter an email."),"pattern"===i.email.type&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a valid email."))),o.a.createElement("div",{className:"col-12 mb-2"},o.a.createElement("textarea",{name:"address",rows:"1",className:"form-control w-100 h-auto",placeholder:"Address",ref:t({required:!0}),disabled:G}),i.address&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter an address.")),!1===$&&o.a.createElement("div",{className:"col-12 selection mb-2"},o.a.createElement(u.a,{control:l,defaultValue:L,name:"country",render:e=>{let{onChange:t,value:a,ref:n}=e;return o.a.createElement(g.a,{style:{color:ne},inputRef:n,classNamePrefix:"form-control",options:_,value:_.find(e=>e.value===a),onChange:e=>t(e.value),placeholder:"Select country",disabled:G})},rules:{required:!0}}),i.country&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a country.")),o.a.createElement("div",{className:"col-12 selection mb-2"},o.a.createElement(u.a,{control:l,defaultValue:"",name:"state",render:e=>{let{onChange:t,value:a,ref:n}=e;return o.a.createElement(g.a,{style:{color:ne},inputRef:n,classNamePrefix:"form-control",options:w,value:w.find(e=>e.value===a),onChange:e=>t(e.value),placeholder:"Select state/province",disabled:G})},rules:{required:Y.length>0}}),i.state&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a state/province.")),o.a.createElement("div",{className:"col-12 selection mb-2"},o.a.createElement(u.a,{control:l,defaultValue:"",name:"city",render:e=>{let{onChange:t,value:a,ref:n}=e;return o.a.createElement(b.a,{style:{color:ne},classNamePrefix:"form-control",isClearable:!0,onChange:e=>t(null!==e?e.value:null),onCreateOption:e=>{(e=>{const t={label:e,value:e.trim()};S=[...S,t],C(S)})(e),t(e)},options:S,value:S.find(e=>e.value===a),placeholder:"Select city",inputRef:n,disabled:G,formatCreateLabel:e=>e})},rules:{required:S.length>0}}),i.city&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a city.")),o.a.createElement("div",{className:"col-12"},o.a.createElement("input",{type:"text",id:"pincode",name:"pincode",className:"form-control w-100 text-secondary h-auto",placeholder:"Postal Code",ref:t({required:!0}),disabled:G}),i.pincode&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a postal code.")))),o.a.createElement("div",{className:"payment_card_information",style:{background:he,padding:ge+"px",borderTopLeftRadius:me+"px",borderTopRightRadius:me+"px"}},o.a.createElement("div",{className:"col-12 text-center"},o.a.createElement("h2",{style:{color:de}},"CARD PAYMENT INFORMATION"),o.a.createElement("img",{src:Object(v.a)("payment-icon/visa.png"),alt:"visa",className:"m-2",width:"30px",height:"30px"}),o.a.createElement("img",{src:Object(v.a)("payment-icon/mastercard.png"),alt:"mastercard",className:"m-2",width:"30px",height:"30px"}),o.a.createElement("img",{src:Object(v.a)("payment-icon/discover.png"),alt:"discover",className:"m-2",width:"30px",height:"30px"}),o.a.createElement("img",{src:Object(v.a)("payment-icon/jcb.png"),alt:"jcb",className:"m-2",width:"30px",height:"30px"}),o.a.createElement("img",{src:Object(v.a)("payment-icon/maestro.png"),alt:"maestro",className:"m-2",width:"30px",height:"30px"}),o.a.createElement("img",{src:Object(v.a)("payment-icon/diners_club.png"),alt:"diners_club",className:"m-2",width:"30px",height:"30px"})),o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12 mb-2"},o.a.createElement("input",{type:"text",name:"firstName",className:"form-control w-100 h-auto",placeholder:"First Name",ref:t({required:!0}),disabled:G}),i.firstName&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a first name.")),o.a.createElement("div",{className:"col-12 mb-2"},o.a.createElement("input",{type:"text",name:"lastName",className:"form-control w-100 h-auto",placeholder:"Last Name",ref:t({required:!0}),disabled:G}),i.lastName&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a last name.")),o.a.createElement("div",{className:"col-12 mb-2"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-8 d-inline-block card_number"},""!==j&&"unknown"!==j&&o.a.createElement("img",{src:Object(v.a)(`payment-icon/${j}.png`),alt:j,width:"40px",height:"30px",style:{position:"absolute",right:"30px",top:"16px"}}),o.a.createElement("input",{name:"cardNumber",type:"text",className:"form-control text-secondary w-100 d-inline h-auto",placeholder:"Enter only numbers. No spaces or dashes.",style:{paddingRight:"25px"},ref:t({required:!0,maxLength:19,minLength:13,pattern:ve}),defaultValue:W,onChange:e=>we(e.target.value),disabled:G}),i.cardNumber&&o.a.createElement(o.a.Fragment,null,"required"===i.cardNumber.type&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a card number."),"maxLength"===i.cardNumber.type&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a valid card number."),"minLength"===i.cardNumber.type&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a valid card number."),"pattern"===i.cardNumber.type&&o.a.createElement("span",{className:"text-red mx-3 d-block"},"Please enter a valid card number (Only numbers allowed)"))),o.a.createElement("div",{className:"col-4 d-inline-block pl-0"},o.a.createElement("input",{type:"password",name:"cvv",className:"form-control w-100 h-auto",placeholder:"CVV",ref:t({required:!0,minLength:3,maxLength:4,pattern:/\d+/}),disabled:G}),i.cvv&&o.a.createElement(o.a.Fragment,null,"required"===i.cvv.type&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a cvv."),"maxLength"===i.cvv.type&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a valid cvv."),"minLength"===i.cvv.type&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a valid cvv."),"pattern"===i.cvv.type&&o.a.createElement("span",{className:"text-red mx-3"},"Please enter a valid cvv."))))),o.a.createElement("div",{className:"col-12 mb-2"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-6 d-inline-block"},o.a.createElement("select",{id:"inputMonth",name:"month",className:"form-control custom-select",ref:t({required:!0}),disabled:G},o.a.createElement("option",{value:""},"Choose Month"),_e),i.month&&o.a.createElement("span",{className:"text-red mx-3"},"Please select month.")),o.a.createElement("div",{className:"col-6 d-inline-block pl-0"},o.a.createElement("select",{id:"inputYear",name:"year",className:"form-control custom-select",ref:t({required:!0}),disabled:G},o.a.createElement("option",{value:""},"Choose Year"),ye),i.year&&o.a.createElement("span",{className:"text-red mx-3"},"Please select year."))))))),o.a.createElement("div",{className:"col-12 text-center submit_btn",style:{background:he,padding:ge+"px",paddingTop:"0"}},!0===e.addCardAndSubscription?o.a.createElement(o.a.Fragment,null,o.a.createElement("p",{style:{color:de}},"By completing this order, I confirm that I am 18 (some locations 21) years or older and agree with the ",o.a.createElement("a",{className:"styled-link",href:"/privacy-policy",target:"_blank"},"privacy statement")," and ",o.a.createElement("a",{className:"styled-link",href:"/terms-of-service",target:"_blank"},"general terms and conditions"),"."),o.a.createElement(N,{type:"submit",className:"btn z-depth-1 btn-lg mx-auto",contentColor:pe,contentFontColor:ue,disabled:m},!0===T?"Payment processing":"Subscribe Now",o.a.createElement(f.a,{loading:T,color:ue,size:10}))):o.a.createElement(N,{type:"submit",className:"btn z-depth-1 btn-lg mx-auto",contentColor:pe,contentFontColor:ue,disabled:m},!0===T?"Processing Card":"Add Card",o.a.createElement(f.a,{loading:T,color:ue,size:10}))))))})))},243:function(e,t,a){"use strict";a.d(t,"a",(function(){return u})),a.d(t,"c",(function(){return g})),a.d(t,"b",(function(){return h}));var n=a(3),o=a.n(n),i=a(2),r=a.n(i),s=a(22),l=a(4),c=a(43),d=a(19),m=a(55);const p=Object(s.a)(),u=()=>async e=>{const t=p+"/api/notifications/create-one-signal-account";try{const a=await o.a.get(t);return 1===a.data.success?(e(Object(c.g)(()=>{})),e(Object(l.e)({description:a.data.message})),a.data.data):(e(Object(l.e)({description:"Error while create one signal account"})),!1)}catch(a){const t=r.a.get(a.response,"data.message","Error while creating one signal account.");return e(Object(l.e)({description:t})),!1}},g=e=>async t=>{const a=p+"/api/notifications/save-web-push-notification-settings";try{const n=await o.a.post(a,e);return 1===n.data.success?(t(Object(c.g)(()=>{})),t(Object(l.e)({description:n.data.message})),n.data.data):(t(Object(l.e)({description:"Error while save web notification settings."})),!1)}catch(n){const e=r.a.get(n.response,"data.message","Error while save web notification settings.");return t(Object(l.e)({description:e})),!1}},h=e=>async t=>{const a=p+"/api/notifications/save-user-notification-preferences";try{const n=await o.a.post(a,e);return 1===n.data.success?(t(Object(d.k)(()=>{t(Object(m.f)())})),n.data):(t(Object(l.e)({description:"Error while save web notification settings."})),n.data)}catch(n){return n.response.data}}},25:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return i})),a.d(t,"d",(function(){return r}));const n=e=>{let t=e.split(/\.(?=[^.]+$)/);return 2===t.length?t[1]:""},o=e=>e.split(/\.(?=[^.]+$)/),i={mobileS:"320px",mobileM:"375px",mobileL:"425px",tablet:"767px",tabletL:"991px",laptop:"1024px",laptopL:"1440px",desktop:"1850px",desktopL:"2560px"};function r(e,t){const a=new Map(t.map((e,t)=>[e,t]));return e.sort((e,t)=>a.get(e._id)-a.get(t._id))}},265:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(6),r=a(29),s=a(8),l=a(2),c=a.n(l),d=a(118),m=a(4),p=a(25);const u=i.a.div`
    .coupon-input {
        height: 46px;
        padding: 10px 15px;
        text-transform: uppercase;
        width: 70% !important;
    }

    .coupon-input::placeholder {
        text-transform: capitalize;
    }

    .coupon-btn {
        height: 46px;
        border-left: transparent !important;
    }
    
    .coupon-input:focus {
        outline: none !important;
        box-shadow: none !important;
        border: 1px solid #0028641f !important;
        border-right: transparent !important;
    }
    
    .coupon-btn:focus {
        outline: none !important;
        box-shadow: none !important;
        border: 1px solid #0028641f !important;
        border-left: transparent !important;
    }

    @media (min-width: ${p.c.mobileS}) and (max-width: ${p.c.tablet}) {
        .coupon-input {
            padding: 10px 5px;
            width: 60% !important;
            border-right: transparent !important;
        }
    }
`;t.a=Object(s.b)(e=>({auth:e.auth,couponCode:e.couponCode,resubscriptionOffer:e.resubscriptionOffer,promotion:e.promotion,payment:e.payment}),{updateCouponLoading:d.j,checkCouponIsValid:d.b,setCouponDetails:d.i,updateCouponStatus:d.k,setCouponCode:d.h,setSweetAlert:m.e})(Object(r.g)((function(e){const{disabled:t,classes:a}=e,{display_coupon_box_to_user:i,enable_promotion:r}=e.auth.appSettings,{isSubscribedEver:s,isRebillFailed:l}=e.auth.user,{subscriptionPromotion:d}=e.promotion,{isUserEligibleForOffer:m}=e.resubscriptionOffer,{isLoading:p,couponCode:g,couponStatus:h,couponCodeDetails:b}=e.couponCode,{isPaymentProcessing:f}=e.payment;let _=m;r&&!1!==d&&("ALL_USERS"===d.applicable_to||"NEW_USERS"===d.applicable_to&&!0!==s||"OLD_USERS"===d.applicable_to&&!0===s)&&(_=!0);const[y,E]=Object(n.useState)(""),[v,w]=Object(n.useState)(""),[x,k]=Object(n.useState)(!1);Object(n.useEffect)(()=>{c.a.isEmpty(g)||!0===l||(E(g),"valid"!==h&&N(g))},[]),Object(n.useEffect)(()=>{b&&_&&x&&S()},[b,_,x]);const N=async t=>{try{if(t=t.trim().toUpperCase(),e.updateCouponLoading(!0),w(""),e.setCouponDetails({}),c.a.isEmpty(t.trim()))return w("Enter valid coupon"),e.updateCouponStatus("notChecked"),void e.updateCouponLoading(!1);await e.checkCouponIsValid({code:t}),k(!0)}catch(a){w(a.message)}},S=()=>{let t="";const{discount_type:a,discount_value_for_initial:n,discount_value_for_recurring:i}=b;t="percentage"===a?0===i?`You have received a flat ${n}% discount on the first month membership price.`:n===i?`You have received a flat ${n}% discount on the membership price.`:`You have received a ${n}% discount on your first month membership price and ${i}% discount on the membership price after the first month.`:0===i?`You have received a flat $${n} discount on the first month membership price.`:n===i?`You have received a flat $${n} discount on the membership price.`:`You have received a $${n} discount on your first month membership price and $${i} discount on the membership price after the first month.`;const r=o.a.createElement("div",null,o.a.createElement("h2",null," ",o.a.createElement("span",{role:"img","aria-label":"party-icon"},"\ud83c\udf89")," Coupon Applied Successfully! ",o.a.createElement("span",{role:"img","aria-label":"party-icon"},"\ud83c\udf89")),t&&o.a.createElement("p",null,t));e.setSweetAlert({description:r}),k(!1)};return!0!==i?o.a.createElement(o.a.Fragment,null):o.a.createElement("div",{className:a},o.a.createElement(u,{className:"input-group"},o.a.createElement("input",{type:"text",className:"form-control coupon-input",name:"coupon-code",value:y,onChange:e=>{E(e.target.value),w("")},placeholder:"Enter Coupon Code",disabled:t||p||"valid"===h||f}),"valid"===h?o.a.createElement("button",{type:"button",className:"form-control coupon-btn",onClick:()=>(async()=>{e.updateCouponLoading(!0),E(""),w(""),e.setCouponCode(""),e.updateCouponStatus("notChecked"),e.setCouponDetails({}),e.updateCouponLoading(!1)})(),disabled:p||f},"Remove"):o.a.createElement("button",{type:"button",className:"form-control coupon-btn",onClick:()=>N(y),disabled:p||f},"Apply")),_&&o.a.createElement("small",{className:"form-text text-muted mx-1",style:{whiteSpace:"pre-wrap"}},"Note: You can not combine coupon with other offers."),!1===c.a.isEmpty(v)&&o.a.createElement("span",{className:"text-red mx-1"},v),"valid"===h&&o.a.createElement("span",{className:"text-green mx-1"},"Coupon Code Applied!"))})))},269:function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return l}));var n=a(3),o=a.n(n),i=a(22);const r=Object(i.a)(),s=e=>async()=>{const t=r+"/api/save-announcement-banner-settings";try{return(await o.a.post(t,e)).data}catch(a){return a.response.data}},l=()=>async()=>{const e=r+"/api/get-announcement-banner-settings";try{return(await o.a.get(e)).data}catch(t){return t.message}}},270:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(8),r=a(14),s=a(29),l=a(6),c=a(2),d=a.n(c),m=a(19),p=a(32),u=a(57),g=a(87),h=a(28),b=a(27),f=a.n(b);const _=l.a.nav`
    background-color: ${e=>e.content_color};
    padding: ${e=>e.padding};
    z-index: 1000 !important;
    border-top: 1px solid ${e=>e.content_font_color};
`,y=Object(l.a)(r.c)`
    color: ${e=>e.color} !important;

    :hover {
        color: ${e=>e.color};
    }

    span {
        font-size: 13px;
        text-transform: capitalize;
    }
`,E=l.a.a`
    color: ${e=>e.color} !important;

    :hover {
        color: ${e=>e.color};
    }

    span {
        font-size: 13px;
        text-transform: capitalize;
    }
`,v=l.a.div`
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px) !important;
    
    .nav-link {
        padding-top: 8px !important;
        border-bottom: 4px solid transparent;
    }
    
    .active {
        background: ${e=>e.color}17;
        border-bottom: 4px solid ${e=>e.color};
        text-decoration: none;
        font-weight: bold;
    }

    .unread-count {
        position: absolute;
        top: -5px;
        right: -15px;
        background: #ff0000;
        color: #fff;
        font-size: 9px;
        border-radius: 50%;
        min-height: 22px;
        min-width: 22px;
        text-align: center;
        line-height: 22px;
    }

    .unread-count-position {
        right: -2px !important; 
    }
`,w=l.a.i`
    font-size: 1.3rem;
`;class x extends n.Component{constructor(e){super(e),this.onLogout=this.onLogout.bind(this)}onLogout(e){e.preventDefault(),this.props.resetCurrentPage(),this.props.logoutUser(this.props.history),g.a.emit("LOGOUT_USER");!0===this.props.history.location.pathname.includes("/feed/")&&this.props.history.push("/")}render(){const{content_color:e,content_font_color:t,navbar_font_weight:a,navbar_padding:n,links_menu:i}=this.props.auth.appSettings,{isAuthenticated:r,user:s,counts:l,customMenuLinks:c,linkPageData:m}=this.props.auth;let p=void 0===n||""===n?"0.5rem 1rem":n,u="/chat";"1"!==s.ccbillSubscriptionStatus&&"2"!==s.ccbillSubscriptionStatus||(u="/private-chat");const g=this.props.location.pathname;let h,b=!1;if(b=d.a.isEmpty(s)?i.guest:s.isAdmin?"admin"===s.role?i.super_admin:i.admin:"1"===s.ccbillSubscriptionStatus||"2"===s.ccbillSubscriptionStatus?i.subscriber:i.user,c.length>0||b&&m.length>0){let e=0;c&&c.length>0&&(1===c.length?e+=1:e=c.length),b&&m&&m.length>0&&(e+=1),h=1===e?b&&m&&m.length>0?o.a.createElement(y,{to:"/links",className:f()("nav-link justify-content-center",{active:"/links"===g}),color:t,fontWeight:a},o.a.createElement("div",{className:"text-center"},o.a.createElement("div",null,o.a.createElement(w,{className:"fas fa-ellipsis-h"})),o.a.createElement("span",null,"Links"))):o.a.createElement(E,{href:c[0].url,target:c[0].open_in_new_tab?"_blank":"_self",rel:"noopener noreferrer",className:"nav-link justify-content-center",color:t,fontWeight:a},o.a.createElement("div",{className:"text-center"},o.a.createElement("div",null,o.a.createElement(w,{className:"fas fa-ellipsis-h"})),o.a.createElement("span",null,c[0].name.length>5?c[0].name.substring(0,5)+"...":c[0].name))):o.a.createElement(y,{to:"/more-links",className:f()("nav-link justify-content-center",{active:"/links"===g||"/more-links"===g}),color:t,fontWeight:a},o.a.createElement("div",{className:"text-center"},o.a.createElement("div",null,o.a.createElement(w,{className:"fas fa-ellipsis-h"})),o.a.createElement("span",null,"More")))}return this.props.auth.isSupport?o.a.createElement(o.a.Fragment,null):o.a.createElement(_,{id:"BottomNavBar",className:"fixed-bottom d-lg-none p-0",role:"navigation",padding:p,content_color:e,content_font_color:t},o.a.createElement("div",{className:"row m-0"},o.a.createElement(v,{className:"col",color:t},o.a.createElement(y,{exact:!0,to:"/",className:"nav-link justify-content-center",activeClassName:"active",color:t,fontWeight:a},o.a.createElement("div",{className:"text-center"},o.a.createElement("div",null,o.a.createElement(w,{className:"fas fa-home"})),o.a.createElement("span",null,"Feed")))),o.a.createElement(v,{className:"col chat-nav",color:t},o.a.createElement(y,{to:u,className:"nav-link justify-content-center",activeClassName:"active",color:t,fontWeight:a},o.a.createElement("div",{className:"text-center position-relative"},o.a.createElement("div",null,o.a.createElement(w,{className:"fas fa-comment-alt"})),o.a.createElement("span",null,"Chat"),l.userUnreadMessage>0&&r&&o.a.createElement("span",{className:"unread-count"},l.userUnreadMessage>99?"99+":l.userUnreadMessage)))),"live_stream_manager"===s.role?o.a.createElement(o.a.Fragment,null):s.isAdmin?o.a.createElement(v,{className:"col",color:t},o.a.createElement(y,{to:"/admin/chat/tips-list",className:"nav-link justify-content-center",activeClassName:"active",color:t,fontWeight:a},o.a.createElement("div",{className:"text-center position-relative"},o.a.createElement("div",null,o.a.createElement(w,{className:"fas fa-dollar-sign"})),o.a.createElement("span",null,"Tips"),this.props.auth.counts.modelUnreadTips>0&&o.a.createElement("span",{className:"unread-count"},this.props.auth.counts.modelUnreadTips>99?"99+":this.props.auth.counts.modelUnreadTips)))):o.a.createElement(v,{className:"col",color:t},o.a.createElement(y,{to:"/tips",className:"nav-link justify-content-center",activeClassName:"active",color:t,fontWeight:a},o.a.createElement("div",{className:"text-center"},o.a.createElement("div",null,o.a.createElement(w,{className:"fas fa-dollar-sign"})),o.a.createElement("span",null,"Tips")))),r&&o.a.createElement(v,{className:"col",color:t},o.a.createElement(y,{to:"/profile",className:"nav-link justify-content-center",activeClassName:"active",color:t,fontWeight:a},o.a.createElement("div",{className:"text-center position-relative"},o.a.createElement("div",null,o.a.createElement(w,{className:"fas fa-user-circle"})),o.a.createElement("span",null,"Account"),this.props.userInfluencerHelp.unread_count>0&&o.a.createElement("span",{className:"unread-count unread-count-position"},this.props.userInfluencerHelp.unread_count>99?"99+":this.props.userInfluencerHelp.unread_count)))),s.isAdmin&&"live_stream_manager"!==s.role&&o.a.createElement(v,{className:"col",color:t},o.a.createElement(y,{to:"/admin/reporting",className:f()("nav-link justify-content-center",{active:"/admin/settings"===g||"/admin/reporting"===g||"/links"===g||"/more-links"===g}),color:t,fontWeight:a},o.a.createElement("div",{className:"text-center"},o.a.createElement("div",null,o.a.createElement(w,{className:"fas fa-ellipsis-h"})),o.a.createElement("span",null,"More")))),!s.isAdmin&&h&&o.a.createElement(v,{className:"col",color:t},h)))}}t.a=Object(i.b)(e=>({auth:e.auth,errors:e.errors,chatBookingTimer:e.chatBookingTimer,socket:e.socket,promotion:e.promotion,utility:e.utility,influencerHelp:e.influencerHelp,userInfluencerHelp:e.userInfluencerHelp}),{logoutUser:m.p,toggleSideBar:p.n,getNextMeetingTime:u.h,resetCurrentPage:h.p,toggleNotificationPopup:p.l})(Object(s.g)(x))},272:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(82),s=a(8),l=a(156),c=a(6),d=a(51),m=a(2),p=a.n(m),u=a(164),g=a(30),h=a(1),b=a(4);const f=c.a.button`
        border-color: ${e=>e.btnBorderColor} !important;
        color: ${e=>e.btnColor} !important;
        box-shadow : none;
        margin-right:20px;
        paddingX: 50px;
`;t.a=Object(s.b)(e=>({auth:e.auth,blog:e.blog}),{addOrUpdateFeedTag:l.b})(Object(i.g)((function(e){const{register:t,handleSubmit:a}=Object(r.b)(),{content_color:i,site_font_color:l,feed_tags:c}=e.auth.appSettings,[m,_]=Object(n.useState)({name:"",slug:""}),[y,E]=Object(n.useState)(""),[v,w]=Object(n.useState)(!1),[x,k]=Object(n.useState)(!0),N=Object(s.c)();Object(n.useEffect)(()=>{e.feedTags&&(""!==e.feedTags.name?_(e.feedTags):_({name:"",slug:""}))},[]);const S=()=>{_({name:"",slug:""})},C=()=>{e.hideAddNewTag(),S(),E("")};return o.a.createElement(d.a,{classes:"modal-md",title:void 0===m||p.a.isEmpty(e.feedTags.name)?"Add Tag":"Update Tag",showCloseBtn:!1,modalBodyMaxHeight:"30vh"},o.a.createElement("form",{onSubmit:a(async()=>{w(!0),k(!0);let t={id:p.a.get(m,"id",""),name:m.name.trim(),slug:m.name.toLowerCase().trim(),blogId:p.a.get(e,"blogId","")};const a=c.filter(e=>e.slug===t.slug);if(!1===p.a.isEmpty(a))if(a[0]._id===t.id&&a[0].slug===t.slug&&a[0].name===t.name)C(),N(Object(b.e)({description:"Tag update successfully"}));else if(a[0]._id!==t.id&&a[0].slug===t.slug)E("Tag already exist");else{const a=await e.addOrUpdateFeedTag(t);200===a.status?(N(Object(b.e)({description:a.message})),C()):E(a.data.message)}else{const a=p.a.get(e,"isAddNewTag",!1);if(""!==t.name){_(t);const n=await e.addOrUpdateFeedTag(t);!1===a?200===n.status?(e.feedTagList(n.data.feed_tags),N(Object(b.e)({description:n.message})),C()):E(n.data.message):(N({type:h.nc,payload:n.data.feedData}),C())}else E("Enter Valid Tag Name"),S()}k(!0),w(!1)})},o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"form-group col-12 mb-0"},o.a.createElement(u.a,{id:"feed-tag",label:"Enter tag name",type:"text",name:"feedTags",value:m.name,required:!0,formRef:t(),onChange:e=>(e=>{k(!1),_({...m,name:e.target.value,slug:e.target.value.toLowerCase()}),E("")})(e),maxLength:30,error:y,disabled:v}))),o.a.createElement("div",{className:"d-flex flex-row-reverse"},o.a.createElement(g.a,{loading:x,type:"submit",classes:"m-0 px-5"},v&&o.a.createElement("span",{className:"spinner-border spinner-border-sm mr-2"}),p.a.isEmpty(e.feedTags.name)?"Add":"Update"),o.a.createElement(f,{className:"btn",type:"button",btnColor:l,btnBorderColor:i,disabled:v,onClick:()=>C()},"Cancel"))))})))},28:function(e,t,a){"use strict";a.d(t,"g",(function(){return _})),a.d(t,"m",(function(){return y})),a.d(t,"l",(function(){return v})),a.d(t,"t",(function(){return w})),a.d(t,"e",(function(){return x})),a.d(t,"f",(function(){return k})),a.d(t,"i",(function(){return N})),a.d(t,"n",(function(){return S})),a.d(t,"s",(function(){return C})),a.d(t,"p",(function(){return T})),a.d(t,"b",(function(){return O})),a.d(t,"j",(function(){return P})),a.d(t,"h",(function(){return I})),a.d(t,"a",(function(){return A})),a.d(t,"o",(function(){return M})),a.d(t,"k",(function(){return j})),a.d(t,"c",(function(){return F})),a.d(t,"d",(function(){return L})),a.d(t,"r",(function(){return $})),a.d(t,"q",(function(){return R}));var n=a(3),o=a.n(n),i=a(126),r=a.n(i),s=a(1),l=a(22),c=a(2),d=a.n(c),m=a(34),p=a(38),u=a.n(p),g=a(4),h=a(43),b=a(96);const f=Object(l.a)(),_=(e,t,a)=>n=>{const i=m.a.getState(),r=i.auth.appSettings.is_pagination_on_exclusive_content_enabled;let l,c=localStorage.getItem("AuthToken");void 0===e&&c&&(e=E(c));let p=d.a.get(t,"feedTagId","");l=!0===i.auth.appSettings.feed_tags_enable&&""!==p?f+(!0===e?`/api/blogs/all?page_num=${t.pageNum}&feed_tag_id=${p}`:`/api/blogs?page_num=${t.pageNum}&feed_tag_id=${p}`):!0===e?f+"/api/blogs/all?page_num="+t.pageNum:f+"/api/blogs?page_num="+t.pageNum,o.a.get(l).then(e=>{e.data.isPaginationEnabled=r,n({type:s.L,payload:e.data}),a()}).catch(e=>{console.log(e),a()})},y=(e,t)=>a=>{const n=f+"/api/blog/reuse-blog",i=m.a.getState();o.a.post(n,e).then(e=>{a(_(!0,{pageNum:1,feedTagId:i.blog.selectedTag},()=>{})),d.a.isEmpty(e.data.data.feedTagList)||(a({type:s.Fd,payload:e.data.data.feedTagList}),a({type:s.oc,payload:e.data.data.feedTagList})),t(e.data)}).catch(e=>{t(e)})},E=e=>r()(e).isAdmin,v=(e,t)=>a=>{o.a.post(f+"/api/blog/add-new-blog",e).then(e=>{const n=e.data.data;a({type:s.k,payload:n.result}),d.a.isEmpty(e.data.data.feedTagList)||(a({type:s.Fd,payload:e.data.data.feedTagList}),a({type:s.oc,payload:e.data.data.feedTagList}));const o={description:!0===d.a.get(n,"selectFromContentManager",!1)?"Content posted successfully.":"The uploaded post is being processed and will be visible in some time."};a(Object(g.e)(o)),t()}).catch(e=>{const n={description:d.a.get(e,"response.data.message",navigator.onLine?"There was a problem in content post.":"Seems you are offline. Please check your internet connection and post again.")};a(Object(g.e)(n)),t()})},w=(e,t)=>a=>{o.a.post(f+"/api/upload/upload_file",e).then(n=>{const i=n.data.Location,r=n.data.fileSize;let l={};for(let t of e.entries())l[t[0]]=t[1];let c={title:l.title,blogType:l.blogType,url:i,description:l.description,author:l.author,public:l.public,privateBlur:l.privateBlur,processing:!1,blurUrl:n.data.blurLocation,isLocked:l.isLocked,amount:l.amount,model:l.model,captionBlur:l.captionBlur,content_size:r,media:{url:i,thumbnail_url:"",blur_url:n.data.blurLocation,is_process:!0},type:l.blogType};if("true"===l.isSchedule){let e=u()(l.schedulePostTime).utc();e=new Date(l.schedulePostTime),c.date=e}a(C(!0)),a(((e,t)=>a=>{o.a.post(f+"/api/blogs",e).then(e=>{"gallery"!==e.data.blogType&&a({type:s.k,payload:e.data}),t(e.data)}).catch(e=>{console.log(e)})})(c,t))}).catch(e=>{let n=d.a.get(e.response,"data.message","There was an error while uploading the image.");alert(n),a(C(!1)),t()})},x=(e,t)=>a=>{a(Object(b.p)()),o.a.post(f+"/api/blogs/delete",e).then(()=>{alert("Post deleted."),a({type:s.Ib,payload:e}),a(Object(b.r)()),a(Object(h.g)(()=>{})),a(Object(b.r)()),t()}).catch(e=>{console.log(e),a(Object(b.r)()),t()})},k=(e,t)=>a=>{o.a.post(f+"/api/blogs/edit",e).then(e=>{a({type:s.wd,payload:e.data}),t()}).catch(e=>{console.log(e),t()})},N=(e,t)=>()=>{const a=f+"/api/blog/get-blog-data-by-id?id="+e;o.a.get(a).then(e=>{t(e.data)}).catch(e=>{console.log(e),t(!1)})},S=(e,t)=>a=>{const n=m.a.getState();o.a.post(f+"/api/blog/post-reviewed-blog",e).then(e=>{a(Object(g.e)({description:"Content reviewed successfully."})),d.a.isEmpty(e.data.data.feedTagList)||(a({type:s.Fd,payload:e.data.data.feedTagList}),a({type:s.oc,payload:e.data.data.feedTagList}));let o={pageNum:1,feedTagId:n.blog.selectedTag};a(_(!0,o,()=>{})),t(e.data)}).catch(e=>{const n={description:d.a.get(e,"response.data.message","There was a problem in content post.")};a(Object(g.e)(n)),t()})},C=e=>({type:s.Z,payload:e}),T=()=>({type:s.Rb,payload:0}),O=e=>({type:s.k,payload:e}),P=e=>async()=>{const t=f+"/api/blog/get-blog-info",a={blog_id:e};try{return(await o.a.post(t,a)).data.data}catch(n){return!1}},I=e=>async()=>{const t=f+"/api/blog/get-blog-comment";try{return(await o.a.post(t,e)).data}catch(a){return!1}},A=e=>async t=>{const a=f+"/api/blog/save-blog-comment";try{return(await o.a.post(a,e)).data}catch(n){const e={description:n.response.data.message};return t(Object(g.e)(e)),!1}},M=e=>async()=>{const t=f+"/api/blog/remove-blog-comment";try{return(await o.a.post(t,e)).data}catch(a){return a}},j=e=>async()=>{const t=f+"/api/blog/hide-blog-comment";try{return(await o.a.post(t,e)).data}catch(a){return!1}},F=e=>async t=>{t(D(e));const a=f+"/api/blog/like-dislike";try{return(await o.a.post(a,e)).data}catch(n){const e={description:d.a.get(n,"response.data.message","Invalid Request")};return t(Object(g.e)(e)),!1}},L=e=>async()=>{const t=f+"/api/blog/block-user-from-commenting";try{return(await o.a.post(t,e)).data}catch(a){return!1}},D=e=>({type:s.Ed,payload:e}),$=e=>({type:s.Zb,payload:e}),R=()=>({type:s.Yb,payload:[]})},285:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(8),r=a(29),s=a(141),l=a(33),c=a(167),d=a.n(c),m=a(165),p=a.n(m),u=(a(233),a(6)),g=a(88),h=a(28),b=a(38),f=a.n(b),_=a(2),y=a.n(_),E=a(48),v=a(4),w=a(25),x=a(58),k=a(119),N=a(15),S=a(113);const C=u.a.div`
    .react-datepicker__input-time-container .react-datepicker-time__input-container
    .react-datepicker-time__input input {
        width: auto;
    }
    .react-datepicker-wrapper {
        width:100%
    }
    .react-datepicker-input {
        text-align: center
    }
`,T=u.a.button`
border-radius: 25px;
border: none;
font-size: 20px;
vertical-align: middle;
`,O=u.a.div`
    color:${e=>e.site_font_color} !important;
    .custom-control-input:checked ~ .custom-control-label::before {
        background-color: ${e=>e.site_font_color} !important;
    }
    .custom-control-input:checked~.custom-control-label::before {
        border-color: ${e=>e.site_font_color} !important;
    }
`,P=u.a.section`
    width: 100%;
    height: fit-content;
    border: solid;
    border-width: 2px;
    border-radius: 5px;
    padding: 12px;
    border-color: ${e=>e.site_font_color};
`,I=u.a.label`
    background-color: ${e=>e.content_color};
    color: ${e=>e.content_font_color};
    height: 100%;
    border-radius: 5px;
    cursor: ${e=>!1===e.disabled?"pointer":"inherit"};
    display: flex;
    cursor: pointer;
    box-shadow: 0 5px 15px 0 ${e=>e.button_shadow_color}44, 0 4px 15px 0 ${e=>e.button_shadow_color}44 !important;
`,A=u.a.div`
    width: 100%;
    margin-bottom: ${e=>!0===e.isUploading?"50px":"20px"};
    
    .positioning {
        display: none !important;
    }

    .form-group {
        position: absolute;
        bottom: -24px;
    }

    .progress-span {
        position: absolute;
        bottom: -44px;
        width: 88%;
    }
    .progress {
        border-radius: 5px;
    }

    .progress-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media(max-width: 767px) {
        .positioning {
            display: inline-block !important;
            width: 20%;
        }

        .progress {
            width: 82%;
            display: inline-block !important;
            border-radius: 5px;
        }

        .positioning i {
            color: ${e=>e.site_font_color};
            border-radius: 50%;
            width: 29px;
            height: 29px;
        }
    }
`,M=u.a.button`
    right: 5px; 
    top: 0;
    position: absolute; 
    border-radius: 82%; 
    width: 24px;
    background-color: ${e=>e.content_color} !important; 
    color: ${e=>e.content_font_color} !important;
    cursor: pointer;

    :before {
        font-size: medium;
    }

    @media(max-width: 767px) {
        right: ${e=>!0===e.isRearrangeModeEnable?"20%":"13%"};
    }
`,j=u.a.div`
    width: 100%;
    position: relative;
    cursor: pointer;
    border-radius: 5px;

    video{
        object-fit: cover;
        border-radius: 5px;
    }
    
    .progress {
        border-radius: 5px;
    }

    @media (min-width:991px) and (max-width:1280px) {

        video{
            max-width: 153px;
        }
    }
    @media (min-width:767px) and (max-width:991px) {

        video{
            max-width: 183px;
        }
    }
    
    @media (max-width:767px) {
        max-width: 80%;
        display: inline-block;
        video{
            max-width: 100%;
        }

        .progress {
            width: 82%;
            display: inline-block !important;
            border-radius: 5px;
        }
    }
`,F=u.a.div`
    width: 100%;
    height: ${e=>"video"===e.type?"150px":"100%"};
    max-width: ${e=>"video"===e.type?"210px":"100%"};
    position: absolute;
    background-color: #FFFFFF4F;
    z-index: 4;
    padding: 0 20px;
    border-radius: 5px;
    display: ${e=>!0===e.isRearrangeModeEnable?"block":"none"};
    left: ${e=>"video"===e.type?"3px":"0px"};

    @media (min-width:991px) and (max-width:1280px) {
        left: ${e=>"video"===e.type?"5px":"0px"};
        max-width: ${e=>"video"===e.type?"153px":"100%"};
    }
    @media (min-width:767px) and (max-width:991px) {
        left: ${e=>"video"===e.type?"5px":"0px"};
        max-width: ${e=>"video"===e.type?"183px":"100%"};        
    }
    @media (max-width:767px) {
        left: 0px !important;
        max-width: 100% !important;
    }
`,L=u.a.div`
    position: absolute;
    top: calc(45.5%);
    left: calc(47.5%);
    cursor: pointer;

    .video-button-span {
        font-size: 30px;
        color: rgb(211, 211, 211);
        background-color: black;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        position: relative;
        display: inline-block;
    }

    .play-icon {
        font-size: 30px;
        position: absolute;
        border-radius: 51px;
        left: -5px;
        top: -5px;
    }
`,D=u.a.div`
    background-image: ${e=>e.imageUrl};
    height:150px;
    background-position:center;
    background-repeat:no-repeat;
    background-size: cover;
    background-color: #000000;
    position: relative;
    cursor: pointer;
    border-radius: 5px;
    width: inherit;

    @media (max-width:767px) {
        max-width: 80%;
        display: inline-block !important;
        margin-bottom: 1%;
    }
`,$=u.a.div`
    color:${e=>e.site_font_color} !important;
    .custom-control-input:checked ~ .custom-control-label::before {
        background-color: ${e=>e.content_color} !important;
    }
    .custom-control-input:checked~.custom-control-label::before {
        border-color: ${e=>e.content_color} !important;
    }
`;t.a=Object(i.b)(e=>({auth:e.auth,blog:e.blog,mediaState:e.media}),{getBlogDataById:h.i,postReuseBlogWithNewDesign:h.m,getAllBlogs:h.g,setLoading:h.s,setSweetAlert:v.e})(Object(r.g)((function(e){const t=e.auth.appSettings,[a,i]=Object(n.useState)(""),[r,c]=Object(n.useState)(!1),[m,u]=Object(n.useState)(!1),[h,b]=Object(n.useState)(!1),[_,v]=Object(n.useState)("0"),[R,B]=Object(n.useState)(!1),[U,G]=Object(n.useState)((new Date).setDate((new Date).getDate()+1)),[z,W]=Object(n.useState)(((new Date).getHours()+24)%12||12),[H,q]=Object(n.useState)((new Date).getMinutes()),[V,Y]=Object(n.useState)((new Date).getHours()>12?"PM":"AM"),[K,J]=Object(n.useState)(!1),[X,Q]=Object(n.useState)(!1),[Z,ee]=Object(n.useState)([]),[te,ae]=Object(n.useState)([]),[ne,oe]=Object(n.useState)(!1),[ie,re]=Object(n.useState)(""),[se,le]=Object(n.useState)(!1),[ce,de]=Object(n.useState)(!1),[me,pe]=Object(n.useState)(""),[ue,ge]=Object(n.useState)(""),[he,be]=Object(n.useState)(""),[fe,_e]=Object(n.useState)(!1),[ye,Ee]=Object(n.useState)(""),[ve,we]=Object(n.useState)(!1),[xe,ke]=Object(n.useState)([]),[Ne,Se]=Object(n.useState)(""),[Ce,Te]=Object(n.useState)(!1),[Oe,Pe]=Object(n.useState)(!1),[Ie,Ae]=Object(n.useState)([]),[Me,je]=Object(n.useState)([]);Object(n.useEffect)(()=>{e.getBlogDataById(e.editBlogId,a=>{if(a){const e=a.data;i(e.description),u(e.captionBlur),v(e.amount),B(e.privateBlur),ee(e.media),Ae(e.media.filter(e=>e._id).map(e=>e._id)),Ee(e.date);const n=y.a.get(e,"media_preview",[]);ae(n),n.length>0&&le(!0);const o=y.a.get(e,"feed_tags",void 0);if(void 0!==o){let e=[];for(let a of o){let n=t.feed_tags.find(e=>e._id===a.id);if(n){let t=n.name,a=n._id;e.push({label:t,value:a})}}ke(e)}new Date<new Date(e.date)&&(b(!0),G(new Date(e.date)),W((new Date(e.date).getHours()+24)%12||12),q(new Date(e.date).getMinutes()),Y(new Date(e.date).getHours()>12?"PM":"AM"))}else alert("Something went wrong"),e.handleReuseBlogDialogClose();c(!0)})},[]);let Fe=new Array(12).fill(0),Le=new Array(60).fill(0);const De=(e,t)=>{if(be(""),"preview"===t)ae([]),je([]);else{const t=[...Z],a=[...t.slice(0,e),...t.slice(e+1)];ee(a);const n=a.filter(e=>!!e&&(!!e._id||!(!e.selectedFile||!e.selectedFile._id))).map(e=>e._id||e.selectedFile._id);Ae(n)}},$e=e=>{!0===ne&&re(e)},Re=e=>{if(!0===ne&&""!==ie){const t=[...Z],a=t[ie];t.splice(ie,1),t.splice(e,0,a),ee(t),re("")}re("")},Be=e=>o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"col-12 col-md-4 mt-3 mb-2",style:{height:"150px",marginBottom:"3%",maxWidth:"150px",outlineColor:"transparent"}},o.a.createElement(I,{htmlFor:e,content_color:t.content_color,fullWidth:!0,className:"align-items-center justify-content-center",content_font_color:t.content_font_color,disabled:K,button_shadow_color:t.button_shadow_color,onClick:()=>{K||("original"===e?Pe(!0):Te(!0))}},o.a.createElement("i",{className:"fas fa-plus","aria-hidden":"true"})))),Ue=(e,t)=>{let a=[...Z];const n=a[e];a[e]=a[t],a[t]=n,ee(a)},Ge=(e,t)=>{!1===e.is_process&&(e.is_selected_from_original_file=!0),ae([e]),be(t)},ze=e=>{const a="preview"===e?te:Z;return o.a.createElement(o.a.Fragment,null,a.map((a,n)=>{let i="url("+a.renderFile+")",r=a.renderFile;a.url&&(r=a.url,i="url("+a.url+")");const s=y.a.get(a,"selectedFile.type",a.content_type),l=y.a.get(a,"renderFile",a.url);return o.a.createElement(A,{isUploading:K,content_color:t.content_color,site_font_color:t.site_font_color,key:n,className:"col-12 col-md-4 d-flex justify-content-center align-items-center flex-column mt-3"},["video/quicktime","video/mp4","video"].includes(s)?o.a.createElement(o.a.Fragment,null,o.a.createElement(M,{className:"align-items-center close d-flex justify-content-center mr-4 mt-2",content_color:t.content_color,content_font_color:t.content_font_color,type:"video",onClick:t=>{t.preventDefault(),De(n,e)},disabled:K,style:{zIndex:"5"},isRearrangeModeEnable:ne}),o.a.createElement(j,{onClick:()=>{We(r,"video")},onDragOver:e=>e.preventDefault(),onDragStart:()=>{$e(n)},onDrop:e=>{e.preventDefault(),Re(n)},draggable:!(!ne||"original"!==e)},o.a.createElement(F,{type:"video",isRearrangeModeEnable:ne}),E.isIOS?o.a.createElement("video",{src:l,poster:Object(N.a)("images/no-preview-video.png"),id:"uploaded-video",style:{height:"150px",width:"100%",position:"relative",backgroundColor:"black"}}):o.a.createElement("video",{src:l,id:"uploaded-video",style:{height:"150px",width:"100%",position:"relative",backgroundColor:"black"}}),o.a.createElement(L,null,o.a.createElement("span",{className:"video-button-span"},o.a.createElement("i",{className:"fas fa-play-circle play-icon"})))),!0===ne&&"original"===e&&o.a.createElement("div",{className:"positioning text-dark d-inline"},o.a.createElement("i",{className:"fas fa-arrow-up fa-2x",style:{display:0===n&&"none",marginTop:n===Z.length-1?"3rem":"2rem"},onClick:e=>{e.preventDefault(),Ue(n,n-1)}}),n>0&&o.a.createElement("br",null),o.a.createElement("i",{className:"fas fa-arrow-down fa-2x",style:{display:n===Z.length-1&&"none",marginTop:0===n?"3rem":n<Z.length-1&&n>0?"1rem":"2rem"},onClick:e=>{e.preventDefault(),Ue(n,n+1)}})),"original"===e&&se&&!ne&&o.a.createElement("div",{className:"form-check mt-2"},o.a.createElement("input",{className:"form-check-input",type:"checkbox",checked:n===he,name:"media_preview",onChange:()=>Ge(a,n),id:"media_preview"+n,disabled:K}),o.a.createElement("label",{className:"form-check-label",htmlFor:"media_preview"+n},"Set as Preview"))):o.a.createElement(o.a.Fragment,null,o.a.createElement(M,{className:"align-items-center close d-flex justify-content-center mr-3 mt-2",content_color:t.content_color,content_font_color:t.content_font_color,type:"image",onClick:t=>{t.preventDefault(),De(n,e)},disabled:K,style:{zIndex:"5"},isRearrangeModeEnable:ne}),o.a.createElement(D,{onClick:()=>{We(r,"photo")},imageUrl:i,draggable:!(!ne||"original"!==e),onDragOver:e=>e.preventDefault(),onDragStart:()=>{$e(n)},onDrop:e=>{e.preventDefault(),Re(n)}},o.a.createElement(F,{type:"image",isRearrangeModeEnable:ne})),!0===ne&&"original"===e&&o.a.createElement("div",{className:"positioning text-dark d-inline"},o.a.createElement("i",{className:"fas fa-arrow-up fa-2x",style:{display:0===n&&"none",marginTop:n===Z.length-1?"3rem":"2rem"},onClick:e=>{e.preventDefault(),Ue(n,n-1)}}),n>0&&o.a.createElement("br",null),o.a.createElement("i",{className:"fas fa-arrow-down fa-2x",style:{display:n===Z.length-1&&"none",marginTop:0===n?"3rem":n<Z.length-1&&n>0?"1rem":"2rem"},onClick:e=>{e.preventDefault(),Ue(n,n+1)}})),"original"===e&&se&&!ne&&o.a.createElement("div",{className:"form-check mt-2"},o.a.createElement("input",{className:"form-check-input",type:"checkbox",checked:n===he,name:"media_preview",onChange:()=>Ge(a,n),id:"media_preview"+n,disabled:K}),o.a.createElement("label",{className:"form-check-label",htmlFor:"media_preview"+n},"Set as Preview"))))}))},We=(e,t)=>{!1!==r&&(document.querySelector("body").style.overflow=!0===!ce?"hidden":"visible",pe(e),ge(t),de(!ce))};return o.a.createElement(l.a,null,!0===ce&&o.a.createElement(x.a,{url:me,handleClose:()=>{We("","")},type:ue,showWatermark:!1}),o.a.createElement("div",{className:"modal fade show",role:"dialog",style:{display:ce?"none":"block",backgroundColor:"#00000080"}},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered modal-dialog-scrollable modal-lg",role:"document"},o.a.createElement("div",{className:"modal-content",style:{backgroundColor:t.card_background_color}},o.a.createElement("div",{className:"modal-header align-items-center"},o.a.createElement("h5",{className:"modal-title"},"Reuse Post"),o.a.createElement(T,{onClick:e=>{e.preventDefault(),Q(!0)},style:{backgroundColor:"transparent",color:t.content_color}},o.a.createElement("i",{className:"fas fa-question-circle"})),o.a.createElement("button",{className:"close",onClick:e.handleReuseBlogDialogClose,style:{color:t.site_font_color,opacity:1},disabled:K})),o.a.createElement("div",{className:"modal-body"},o.a.createElement("div",{className:"container"},!1===r?o.a.createElement("div",{className:"text-center"},o.a.createElement("div",{className:"spinner-border",role:"status",style:{color:t.content_color}},o.a.createElement("span",{className:"sr-only"},"Loading..."))):o.a.createElement("form",{autoComplete:"off"},o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"form-group col"},o.a.createElement("textarea",{id:"description",name:"description",className:"form-control",value:a,onChange:e=>i(e.target.value),disabled:K}))),o.a.createElement("div",{className:"text-center"},o.a.createElement(P,{content_color:t.content_color,site_font_color:t.site_font_color,className:""},o.a.createElement("h4",{style:{marginBottom:"0%",fontWeight:400}},"Choose from Content Manager"),o.a.createElement("div",{className:"row d-flex justify-content-center"},ze("original"),!1===ne&&o.a.createElement(o.a.Fragment,null,Be("original"))),Z.length>1&&o.a.createElement($,{content_color:t.content_color,site_font_color:t.site_font_color,className:"ml-3",style:{textAlign:"left"}},o.a.createElement("div",{className:"custom-control custom-switch"},o.a.createElement("input",{type:"checkbox",className:"custom-control-input",id:"REORDER_MODE",name:"ReorderMode",onChange:()=>{oe(!ne),be("")},checked:ne,disabled:K}),o.a.createElement("label",{className:"custom-control-label",htmlFor:"REORDER_MODE"},"Reorder"))),Z.length>0&&o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12 px-5",style:{textAlign:"left"}},o.a.createElement(O,{content_color:t.content_color,site_font_color:t.site_font_color},o.a.createElement("div",{className:"custom-control custom-switch"},o.a.createElement("input",{type:"checkbox",className:"custom-control-input",id:"PREVIEW_MODE_REUSE",name:"PreviewMode",onChange:()=>{!0===se&&ae([]),be(""),le(!se)},checked:se,disabled:K}),o.a.createElement("label",{className:"custom-control-label",htmlFor:"PREVIEW_MODE_REUSE"},"Add Preview")),o.a.createElement(T,{className:"mx-1",disabled:K,onClick:e=>{e.preventDefault(),we(!0)},style:{backgroundColor:"transparent",color:t.content_color}},o.a.createElement("i",{className:"fas fa-question-circle"}))))))),!0===se&&Z.length>0&&o.a.createElement("div",{className:"mt-2 text-center"},o.a.createElement(P,{content_color:t.content_color,site_font_color:t.site_font_color,className:"my-3"},o.a.createElement("h4",{style:{color:t.site_font_color,marginBottom:"0%"}},"Preview"),o.a.createElement("div",{className:"row d-flex justify-content-center"},ze("preview"),0===te.length&&Be("preview")))),o.a.createElement("div",{className:"row mt-3 mb-5"},o.a.createElement("div",{className:"col-12"},h?o.a.createElement(o.a.Fragment,null,o.a.createElement("label",{style:{display:"flex",alignItems:"center",margin:"0",paddingTop:"10px"}},"Date"),o.a.createElement("div",{className:"ml-1"},o.a.createElement(C,null,o.a.createElement(p.a,{selected:U,onChange:e=>G(e),minDate:new Date,className:"form-control react-datepicker-input",dateFormat:"MMMM d, yyyy",disabled:K}))),o.a.createElement("div",{className:"whole-time-box pt-2"},o.a.createElement("label",{style:{display:"flex",alignItems:"center",margin:"0"}},"Time"),o.a.createElement("div",{className:"schedule-box",style:{display:"flex",justifyContent:"center",alignItems:"center"}},o.a.createElement("select",{name:"schedulePostHour",value:z,onChange:e=>W(e.target.value),className:"form-control ml-1 form-select",style:{textAlignLast:"center"},disabled:K},Fe.map((e,t)=>o.a.createElement("option",{key:"hour"+t,value:t+1},t+1))),o.a.createElement("select",{name:"schedulePostMin",value:H,onChange:e=>q(e.target.value),className:"form-control ml-1 form-select",style:{textAlignLast:"center"},disabled:K},Le.map((e,t)=>o.a.createElement("option",{key:"min"+t,value:t},t<10?"0"+t:t))),o.a.createElement("select",{name:"schedulePostTimeFormat",value:V,onChange:e=>Y(e.target.value),className:"form-control ml-1 form-select",style:{textAlignLast:"center"},disabled:K},o.a.createElement("option",{value:"AM"},"AM"),o.a.createElement("option",{value:"PM"},"PM"))),o.a.createElement("div",{className:"mt-3"},o.a.createElement("button",{className:"btn",onClick:()=>b(!1),style:{backgroundColor:t.content_color,color:t.content_font_color},disabled:K},"Cancel")))):o.a.createElement(s.a,{onClick:()=>b(!0),style:{textTransform:"none",color:t.content_font_color,boxShadow:`0 5px 15px 0 ${t.button_shadow_color}44, 0 4px 15px 0 ${t.button_shadow_color}44`,backgroundColor:t.content_color},disabled:K},o.a.createElement(d.a,{style:{fontSize:"30px"}}),"\xa0Schedule Post"))),o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"col"},o.a.createElement(o.a.Fragment,null,o.a.createElement("label",null,"Blur Photo/Video"),o.a.createElement("div",{className:"form-group"},o.a.createElement("div",{className:"from-check form-check-inline"},o.a.createElement("label",{className:"form-check-label",htmlFor:"REUSE_PHOTO_BLUR"},o.a.createElement("input",{className:"form-check-input",type:"radio",value:!0,checked:!0===R,onChange:()=>B(!0),name:"privateBlur",id:"REUSE_PHOTO_BLUR",disabled:K}),"Enable Blur")),o.a.createElement("div",{className:"from-check form-check-inline"},o.a.createElement("label",{className:"form-check-label",htmlFor:"REUSE_PHOTO_NOT_BLUR"},o.a.createElement("input",{className:"form-check-input",type:"radio",value:!1,checked:!1===R,onChange:()=>B(!1),name:"privateBlur",id:"REUSE_PHOTO_NOT_BLUR",disabled:K}),"Disable Blur")))),o.a.createElement("label",null,"Blur Caption"),o.a.createElement("div",{className:"form-group"},o.a.createElement("div",{className:"from-check form-check-inline"},o.a.createElement("label",{className:"form-check-label",htmlFor:"enableCaption"},o.a.createElement("input",{className:"form-check-input",type:"radio",value:!0,checked:!0===m,onChange:()=>u(!0),name:"captionBlur",id:"enableCaption",disabled:K}),"Enable Blur")),o.a.createElement("div",{className:"from-check form-check-inline"},o.a.createElement("label",{className:"form-check-label",htmlFor:"disableCaption"},o.a.createElement("input",{className:"form-check-input",type:"radio",value:!1,checked:!1===m,onChange:()=>u(!1),name:"captionBlur",id:"disableCaption",disabled:K}),"Disable Blur"))))),o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"form-group col col-md-6 col-lg-6"},o.a.createElement("label",{htmlFor:"amount"},"Amount"),o.a.createElement("input",{type:"number",className:"form-control",id:"amount",name:"amount",value:_,onChange:e=>v(e.target.value),min:t.tips_minimum_amount,max:t.tips_maximum_amount,disabled:K}))),o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"col"},t.feed_tags_enable&&o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"form-group col-md-12 col-lg-6"},o.a.createElement("label",{htmlFor:"feed-tag"},"Tag"),o.a.createElement(g.a,{className:"text-dark",isMulti:!0,options:e.blog.tagList,value:xe,onChange:t=>(t=>{Se("");let a=[];for(const n of t){const t=n.value.trim().toLowerCase(),o=y.a.get(n,"__isNew__",!1);if(""===t)Se("Tag not allow empty");else if(o){void 0!==e.auth.appSettings.feed_tags.find(e=>e.slug===t)?Se("Tag already added"):a.push(n)}else a.push(n)}ke(a)})(t),noOptionsMessage:()=>"No Tags Available",isDisabled:K}),""!==Ne&&o.a.createElement("div",{className:"invalid-feedback d-block"},Ne))))),o.a.createElement("div",{className:"form-group"},o.a.createElement("div",{className:"form-check form-check-inline"},o.a.createElement("input",{className:"form-check-input",type:"checkbox",id:"date-check",defaultChecked:fe,onChange:e=>_e(e.target.checked)}),o.a.createElement("label",{className:"form-check-label",htmlFor:"date-check"},"Keep date the same and don't bring it to the top."))),o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col"},o.a.createElement("button",{className:"btn btn-block",style:{backgroundColor:t.content_color,color:t.content_font_color,boxShadow:`0 5px 15px 0 ${t.button_shadow_color}44, 0 4px 15px 0 ${t.button_shadow_color}44`},onClick:n=>{(async n=>{n.preventDefault(),J(!0);let o=parseInt(_,10),i=parseInt(t.tips_minimum_amount,10),r=parseInt(t.tips_maximum_amount,10);if(!(i<=o&&o<=r))return alert(`Choose an amount between ${i} and ${r}`),void J(!1);if(0===Z.length)return J(!1),e.setSweetAlert({description:"Please Select Media"});for(let t=0;t<Z.length;t++){const a=Z[t];if(!0===a.is_new_file){let n=Object(w.a)(a.selectedFile.name);if(n=n.toUpperCase(),!["PNG","JPG","JPEG","MP4","MOV"].includes(n))return J(!1),e.setSweetAlert({description:`Image Number ${t+1} media format is not supported.`})}}for(let t=0;t<te.length;t++){const a=te[t];if(!0===a.is_new_file&&!0!==a.is_selected_from_original_file){let t=Object(w.a)(a.selectedFile.name);if(t=t.toUpperCase(),!["PNG","JPG","JPEG","MP4","MOV"].includes(t))return J(!1),e.setSweetAlert({description:"Preview media format is not supported."})}}let s=new Date;if(h){s=new Date(U);let e=z+""+V,t=f()(e,["HHA"]).format("HH");s.setHours(t),s.setMinutes(H)}else!0===fe&&(s=ye);const l=[...Z].filter(e=>!0===e.is_new_file);const c=[...te].filter(e=>!0===e.is_new_file);let d={_id:e.editBlogId,description:a,privateBlur:R,captionBlur:m,amount:_,date:s,contentLeftForProcessing:l.length+c.length,media:[],media_preview:[],feed_tags:xe,media_item:[]};for(let e=0;e<te.length;e++){const t=te[e];!0!==t.is_new_file||!0===t.is_selected_from_original_file?(d.media_preview_item=t._id,d.media_preview.push({_id:t._id,content_type:t.content_type,url:t.url})):(d.media_preview_item=t.selectedFile._id,d.media_preview.push({_id:t.selectedFile._id,content_type:t.selectedFile.type.includes("image")?"photo":"video",url:t.selectedFile.path}))}for(let e=0;e<Z.length;e++){const t=Z[e];!0===t.is_new_file?(d.media_item.push(t.selectedFile._id),d.media.push({_id:t.selectedFile._id,content_type:t.selectedFile.type.includes("image")?"photo":"video",url:t.selectedFile.path})):(d.media_item.push(t._id),d.media.push({_id:t._id,content_type:t.content_type,url:t.url}))}e.postReuseBlogWithNewDesign(d,t=>{if(1===t.success){e.setLoading(!0),e.handleReuseBlogDialogClose();return"lockedExclusive"===y.a.get(e,"requestFrom","")&&e.refreshData(t.data.reuseBlog.udid),e.setSweetAlert({description:t.message})}let a=y.a.get(t,"response.data.reuseBlog.message","There was a problem in reuse post.");return J(!1),alert(a)})})(n)},disabled:K},K&&o.a.createElement("span",{className:"spinner-border spinner-border-sm mr-2"}),"Reuse Post"))),o.a.createElement("br",null),o.a.createElement("span",null,"Note: This action will reuse this as a NEW Post to those who have NOT PURCHASED this post. Those who have already purchased will not see this post refreshed."))))))),!0===X&&o.a.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#00000080"}},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered",role:"document"},o.a.createElement("div",{className:"modal-content"},o.a.createElement("div",{className:"modal-header",style:{backgroundColor:t.card_background_color}},o.a.createElement("h5",{className:"modal-title"},"Reuse Post "),o.a.createElement("button",{className:"close",onClick:e=>{e.preventDefault(),Q(!1)},style:{color:t.site_font_color,opacity:1}})),o.a.createElement("div",{className:"modal-body",style:{backgroundColor:t.card_background_color}},o.a.createElement("p",null,"The REUSE post feature allows you to repurpose old posts from the Exclusive Content feed. This is a great idea on days when you don\u2019t have any content to post. We find that it\u2019s best to use this feature on posts that are at least a month old and if possible, use it for posts that are 2-3 months old. Subscribers who have previously purchased the post do not see the new post."),o.a.createElement("p",null,"When using REUSE POST we suggest you make a few modifications to the caption and minor adjustments to the price. This way if the subscriber has viewed the caption in the past, they won\u2019t recognize it as an old post. This is also your opportunity to adjust the caption with keywords and emojis associated with posts that have sold well in the past."),o.a.createElement("p",null,"All reused posts are grouped together with older versions of the same post in reporting. "))))),!0===ve&&o.a.createElement(k.a,{setHelperModelOpen:we}),(Ce||Oe)&&o.a.createElement(S.a,{title:Ce?"Select Preview":"Select Media",onClose:()=>{Oe?Pe(!1):Te(!1)},prevSelectedMedia:Oe?Ie:Me,onSelection:t=>{const a=Oe?"original":"preview";let n=Oe?Z:te;n=n.filter(e=>!!e&&(!!e._id||!(!e.selectedFile||!e.selectedFile._id))).map(e=>e._id||e.selectedFile._id);const o=[];if(Oe)for(let e=0;e<n.length;e++)t.includes(n[e])||o.push(e);if("original"===a)Pe(!1),Ae(t);else if(Te(!1),je(t),t.length>1)return je([]),void e.setSweetAlert({description:"You can not add more than one preview."});const{allMedia:i}=e.mediaState,r=i.filter(e=>t.includes(e._id)),s=Object(w.d)(r,t);if(s.length>0){const t=s.map(e=>({_id:e._id,path:e.path,small_thumb:e.small_thumb,format:"modern",type:"photo"===e.type?"image/jpeg":"video/mp4",size:e.size,name:e._id+("photo"===e.type?".jpeg":".mp4")}));"original"===a?function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=Z.length,o=45-n<t.length?45-n:t.length,i=t.length+n;for(let c=0;c<o;c++){if(!["video/mp4","video/quicktime","image/jpeg","image/jpeg","image/png"].includes(t[c].type))return e.setSweetAlert({description:"Media format is not supported."})}let r=[];for(let e=0;e<o;e++)if(t[e]){const a=t[e].name,n=t[e].size;if(-1===y.a.findIndex(Z,(function(e){return!0===e.is_new_file&&e.selectedFile.name===a&&e.selectedFile.size===n&&e}))){let a={selectedFile:t[e],renderFile:"modern"===t[e].format?t[e].type.includes("video")?t[e].path:t[e].small_thumb:URL.createObjectURL(t[e]),is_new_file:!0};r.push(a)}}let s=[...Z];a.length>0&&(s=s.filter((e,t)=>!a.includes(t)));const l=Z.filter(e=>e._id).map(e=>e._id);r=r.filter(e=>!l.includes(e.selectedFile._id)),r.length>0?(s=s.concat(r),ee(s)):ee(s),i>45&&e.setSweetAlert({description:`You have selected ${i} images, maximum 45 images allowed.`})}(t,o):(t=>{if(t.length>1)return e.setSweetAlert({description:"You can not add more than one preview."});const a=t[0];if(!["video/mp4","video/quicktime","image/jpeg","image/jpeg","image/png"].includes(a.type))return e.setSweetAlert({description:"Media format is not supported."});if(a){let e={selectedFile:a,renderFile:"modern"===a.format?a.type.includes("video")?a.path:a.small_thumb:URL.createObjectURL(a),is_new_file:!0};ae([e])}})(t)}}}))})))},286:function(e,t,a){"use strict";var n=a(0),o=a(8),i=a(14),r=a(6),s=a(2),l=a.n(s),c=a(43),d=a(33),m=a(186),p=a(53),u=a(84),g=a(196),h=a(15);const b=r.a.div`
background-color: ${e=>e.landingPageBackgroundColor?e.landingPageBackgroundColor:"transparent"};
`,f=r.a.section`
    width: 100%;
    padding: 0px;
    box-sizing: border-box;
    position: relative;
    margin-bottom: -6px;
    video {
        min-height: 100vh;
        max-height: 100vh;
        object-fit: cover;
        overflow: hidden;
        max-width: 100%;
        min-width: 100%;
    }
    a {
        &:hover {
            text-decoration: none;
        }
    }

    .btn-mute-unmute{
        position: absolute;
        right: 10px;
        bottom: 0;
    }

    .btn-mute-unmute i {
        font-size: 2.5rem;
    }

    .homepage_banner_image {
        width: 100%;
        position: ${e=>!0===e.videoBannerEnabled?"absolute":"relative"};
        height: ${e=>!0===e.fullScreenMobileBanner?"100vh":"90vh"};
        background-image: ${e=>e.videoBannerEnabled?"":`url(${e.bannerImage})`};
        background-repeat: no-repeat;
        background-size: cover;
        background-position-x: center;
        top: ${e=>!0===e.videoBannerEnabled?"0":"unset"};
        bottom: ${e=>!0===e.videoBannerEnabled?"0":"unset"};
        left: ${e=>!0===e.videoBannerEnabled?"0":"unset"};
        right: ${e=>!0===e.videoBannerEnabled?"0":"unset"};
        margin: ${e=>!0===e.videoBannerEnabled?"auto":"unset"};
    }

    .homepage_banner_image .bottom-content {
        position: absolute;
        bottom: 40px;
        display: block;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 100%;
    }

    .homepage_banner_top_links.social_icons {
        right: auto;
        left: 60px;
    }

    /* bottom content */
    .homepage_banner_image h1 {
        color: ${e=>e.bannerModelNameColor};
        font-size: 140px;
        line-height: 1.6;
    }

    .btn-custom-light {
        background: transparent;
        color: ${e=>e.bannerSubscribeNowTextColor} !important;
        border: 3px solid ${e=>e.bannerSubscribeNowTextColor} !important;
        transition: ease-out 0.5s;
        font-weight: bold;
        border-radius: 0;
        font-size: 1.25rem;
        padding: 15px 30px;
        font-family: 'Baron Neue';
        letter-spacing: 5px;
    }

    /* top content */
    .homepage_banner_top_links {
        position: absolute;
        width: auto;
        right: 60px;
        top: 60px;
        vertical-align: middle;
    }
    .homepage_banner_top_links a {
        color: ${e=>e.bannerLoginSignUpColor};
        font-size: 28px;
        margin-right: 20px;
    }
    .homepage_banner_top_links a:last-child{
        margin-right: 0;
    }
    .login-input-button{
        width: fit-content;
        border: none !important;
        color: ${e=>e.newInputLoginColor} !important;
    }

    @media only screen and (max-width: 1350px) and (min-width: 1300px) {
        .homepage_banner_image .bottom-content h1 {
            // font-size: 130px;
            width: 100%;
        }
        .homepage_banner_image .bottom-content .right-content {
            padding-right: 40px;
            position: absolute;
            right: 0;
            bottom: 0;
        }
    }
    @media only screen and (max-width: 1300px) and (min-width: 1024px) {
        .homepage_banner_image .bottom-content{
            bottom: 30px;
        }
        .homepage_banner_image .bottom-content h1 {
            font-size: 112px;
            width: 100%;
            padding-right: 310px;
        }
        .homepage_banner_image .bottom-content .right-content {
            padding-right: 40px;
            position: absolute;
            right: 0;
            bottom: 0;
        }
    }

    @media (max-width: 1023px) and (min-width: 1000px){
        .homepage_banner_image h1 {
            font-size: 102px;
        }
    }

    @media only screen and (max-width: 999px) and (min-width: 768px){
        .homepage_banner_image .bottom-content{
            bottom: 20px;
        }
        .homepage_banner_image .bottom-content .right-content {
            position: absolute;
            right: 30px;
            bottom: 10px;
            padding: 0;
        }
        .homepage_banner_image h1 {
            font-size: 92px;
        }
        .homepage_banner_top_links{
            right: 20px;
            top: 20px;
        }
        .homepage_banner_top_links.social_icons {
            left: 20px;
            top: 20px;
        }
        .homepage_banner_top_links a {
            color: ${e=>e.bannerLoginSignUpColor};
            font-size: 24px;
            margin-right: 20px;
        }
        .homepage_banner_image {
            height: unset;
            padding: 250px 0px;
        }
    }

    @media only screen and (max-width: 767px) and (min-width: 426px){
        .homepage_banner_image .bottom-content .right-content{
            display: none;
        }
        .homepage_banner_image {
            height: ${e=>!0===e.fullScreenMobileBanner?"100vh":"unset"};
            padding: 180px 0px;
        }
        .homepage_banner_image{
            text-align: center;
            margin-top: -60px;
        }
        .homepage_banner_image .bottom-content{
            bottom: 0px;
        }
        .homepage_banner_image h1 {
            font-size: 72px;
        }
        .homepage_banner_top_links{
            right: 15px;
            top: 15px;
        }
        .homepage_banner_top_links a{
            font-size: 24px;
            margin-right: 10px;
        }
        .btn-custom-dark {
            background: transparent;
            color: ${e=>e.section2SubscribeNowTextColor};
            border: 3px solid ${e=>e.section2SubscribeNowTextColor} !important;
            -webkit-transition: ease-out 0.5s;
            transition: ease-out 0.5s;
            font-weight: bold;
            border-radius: 0;
            font-size: 1.25rem;
            padding: 15px 30px;
            font-family: 'Baron Neue';
            -webkit-letter-spacing: 5px;
            -moz-letter-spacing: 5px;
            -ms-letter-spacing: 5px;
            letter-spacing: 5px;
        }
    }
    @media only screen and (max-width: 425px) and (min-width: 318px) {
        .homepage_banner_image h1 {
            font-size: 50px;
        }
        .homepage_banner_image {
            height: ${e=>!0===e.fullScreenMobileBanner?"100vh":"unset"};
            padding: 85px 0px;
        }
        .homepage_banner_image{
            text-align: center;
            margin-top: -60px;
        }
        .btn-custom-light, .btn-custom-dark{
            font-size: small;
        }
        .btn-custom-dark {
            background: transparent;
            color: ${e=>e.section2SubscribeNowTextColor};
            border: 3px solid ${e=>e.section2SubscribeNowTextColor} !important;
            -webkit-transition: ease-out 0.5s;
            transition: ease-out 0.5s;
            font-weight: bold;
            border-radius: 0;
            font-size: 1.25rem;
            padding: 15px 30px;
            font-family: 'Baron Neue';
            -webkit-letter-spacing: 5px;
            -moz-letter-spacing: 5px;
            -ms-letter-spacing: 5px;
            letter-spacing: 5px;
        }
    }
`,_=r.a.section`
    width: 100%;
    padding: 0px;
    box-sizing: border-box;
    position: relative;
    
    video {
        min-height: 100vh;
        max-height: 100vh;
        object-fit: cover;
        overflow: hidden;
        max-width: 100%;
        min-width: 100%;
    }
    a {
        &:hover {
            text-decoration: none;
        }
    }

    .btn-mute-unmute{
        position: absolute;
        right: 10px;
        bottom: 0;
    }

    .btn-mute-unmute i {
        font-size: 2.5rem;
    }

    .homepage_banner_image {
        width: 100%;
        position: ${e=>!0===e.videoBannerEnabled?"absolute":"relative"};
        height: ${e=>!0===e.fullScreenMobileBanner?"100vh":"90vh"};
        background-image: ${e=>e.videoBannerEnabled?"":`url(${e.bannerImage})`};
        background-repeat: no-repeat;
        background-size: cover;
        background-position-x: center;
        top: ${e=>!0===e.videoBannerEnabled?"0":"unset"};
        bottom: ${e=>!0===e.videoBannerEnabled?"0":"unset"};
        left: ${e=>!0===e.videoBannerEnabled?"0":"unset"};
        right: ${e=>!0===e.videoBannerEnabled?"0":"unset"};
        margin: ${e=>!0===e.videoBannerEnabled?"auto":"unset"};
    }

    .homepage_banner_image .bottom-content {
        position: absolute;
        bottom: 40px;
        display: block;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 100%;
    }

    .homepage_banner_top_links.social_icons {
        right: auto;
        left: 60px;
    }

    /* bottom content */
    .homepage_banner_image h1 {
        color: ${e=>e.bannerModelNameColor};
        font-size: 140px;
        line-height: 1.6;
    }

    .btn-custom-light {
        background: transparent;
        color: ${e=>e.bannerSubscribeNowTextColor} !important;
        border: 3px solid ${e=>e.bannerSubscribeNowTextColor} !important;
        transition: ease-out 0.5s;
        font-weight: bold;
        border-radius: 0;
        font-size: 1.25rem;
        padding: 15px 30px;
        font-family: 'Baron Neue';
        letter-spacing: 5px;
    }

    .homepage_banner_image .bottom-content .right-content {
        float: right;
        width: auto;
        padding-right: 40px;
        position: absolute;
        right: 30px;
        bottom: 10px;
    }
    .right-content.mobile-show{
        display: none;
    }
    .homepage_banner_image .bottom-content .right-content .homepage_banner_subscribe {
        font-size: 28px;
        color: ${e=>e.bannerSubscribeNowTextColor};
        border: 2px solid ${e=>e.bannerSubscribeNowTextColor};
        padding: 5px 40px;
        border-radius: 10px;
        display: inline-block;
        margin-top: 18px;
        text-decoration-line: none;
    }
    .homepage_banner_image .bottom-content .right-content .banner_social_icon a {
        display: inline-block;
        width: 45px;
        height: 45px;
        border: 2px solid ${e=>e.bannerSocialMediaIconsAndBorderColor};
        border-radius: 100px;
        color: ${e=>e.bannerSocialMediaIconsAndBorderColor};
        font-size: 24px;
        text-align: center;
        margin-right: 7px;
        margin-top: 18px;
        line-height: 2.8rem;
    }
    .homepage_banner_image .bottom-content .right-content .banner_social_icon a:last-child{
        margin-right: 0px;
    }
    .homepage_banner_image .bottom-content .right-content .banner_social_icon a img {
        width: 100%;
        padding: 0 12px 4px 12px;
        vertical-align: middle;
    }

    .social_icons .banner_social_icon a {
        margin: 0 5px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }
    .social_icons .banner_social_icon a i {
        color: #000;
    }

    /* top content */
    .homepage_banner_top_links {
        position: absolute;
        width: auto;
        right: 60px;
        top: 60px;
        vertical-align: middle;
    }
    .homepage_banner_top_links a {
        color: ${e=>e.bannerLoginSignUpColor};
        font-size: 28px;
        margin-right: 20px;
    }
    .homepage_banner_top_links a:last-child{
        margin-right: 0;
    }
    .login-input-button{
        width: fit-content;
        border: none !important;
        color: ${e=>e.newInputLoginColor} !important;
    }

    .instagram-svg{
        -webkit-mask-image: url(${e=>Object(h.a)(e.socialIcons.instagram)});
        width: 40px;
        height: 40px;
        -webkit-mask-size: cover;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        background-color: ${e=>e.bannerSocialMediaIconColor};
    }

    .tiktok-svg{
        -webkit-mask-image: url(${e=>Object(h.a)(e.socialIcons.tiktok)});
        width: 40px;
        height: 40px;
        -webkit-mask-size: cover;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        background-color: ${e=>e.bannerSocialMediaIconColor};
    }

    .website-svg{
        -webkit-mask-image: url(${e=>Object(h.a)(e.socialIcons.www)});
        width: 40px;
        height: 40px;
        -webkit-mask-size: cover;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        background-color: ${e=>e.bannerSocialMediaIconColor};
    }

    .twitter-svg{
        -webkit-mask-image: url(${e=>Object(h.a)(e.socialIcons.twitter)});
        width: 40px;
        height: 40px;
        -webkit-mask-size: cover;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        background-color: ${e=>e.bannerSocialMediaIconColor};
    }

    .twitch-svg{
        -webkit-mask-image: url(${e=>Object(h.a)(e.socialIcons.twitch)});
        width: 40px;
        height: 40px;
        -webkit-mask-size: cover;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        background-color: ${e=>e.bannerSocialMediaIconColor};
    }

    .discord-svg {
        -webkit-mask-image: url(${e=>Object(h.a)(e.socialIcons.discord)});
        width: 40px;
        height: 40px;
        -webkit-mask-size: cover;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        background-color: ${e=>e.bannerSocialMediaIconColor};
    }

    .facebook-svg{
        -webkit-mask-image: url(${e=>Object(h.a)(e.socialIcons.facebook)});
        width: 40px;
        height: 40px;
        -webkit-mask-size: cover;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        background-color: ${e=>e.bannerSocialMediaIconColor};
    }

    .snapchat-svg{
        -webkit-mask-image: url(${e=>Object(h.a)(e.socialIcons.snapchat)});
        width: 40px;
        height: 40px;
        -webkit-mask-size: cover;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        background-color: ${e=>e.bannerSocialMediaIconColor};
    }

    .youtube-svg{
        -webkit-mask-image: url(${e=>Object(h.a)(e.socialIcons.youtube)});
        width: 40px;
        height: 40px;
        -webkit-mask-size: cover;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        background-color: ${e=>e.bannerSocialMediaIconColor};
    }

    .amazon-svg{
        -webkit-mask-image: url(${e=>Object(h.a)(e.socialIcons.amazon)});
        width: 40px;
        height: 40px;
        -webkit-mask-size: cover;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        background-color: ${e=>e.bannerSocialMediaIconColor};
    }

    @media only screen and (max-width: 1350px) and (min-width: 1300px) {
        .homepage_banner_image .bottom-content h1 {
            // font-size: 130px;
            width: 100%;
        }
        .homepage_banner_image .bottom-content .right-content {
            padding-right: 40px;
            position: absolute;
            right: 0;
            bottom: 0;
        }
    }
    @media only screen and (max-width: 1300px) and (min-width: 1025px) {
        .homepage_banner_image .bottom-content{
            bottom: 30px;
        }
        .homepage_banner_image .bottom-content h1 {
            font-size: 112px;
            width: 100%;
            padding-right: 310px;
        }
        .homepage_banner_image .bottom-content .right-content {
            padding-right: 40px;
            position: absolute;
            right: 0;
            bottom: 0;
        }
    }

    @media only screen and (max-width: 1024px) and (min-width: 768px){
        .homepage_banner_image .bottom-content{
            bottom: 20px;
        }
        .homepage_banner_image .bottom-content .right-content {
            position: absolute;
            right: 30px;
            bottom: 10px;
            padding: 0;
        }
        .homepage_banner_image h1 {
            font-size: 92px;
        }
        .homepage_banner_top_links{
            right: 20px;
            top: 20px;
        }
        .homepage_banner_top_links.social_icons {
            left: 20px;
            top: 20px;
        }
        .homepage_banner_top_links a {
            color: ${e=>e.bannerLoginSignUpColor};
            font-size: 24px;
            margin-right: 20px;
        }
        .homepage_banner_image {
            height: unset;
            padding: 250px 0px;
            background-position-x: ${e=>e.backgroundPosition};
            background-position-y: center;
        }
    }

    @media only screen and (max-width: 767px) and (min-width: 480px){
        .homepage_banner_image .bottom-content .right-content{
            display: none;
        }
        .homepage_banner_image {
            height: ${e=>!0===e.fullScreenMobileBanner?"100vh":"unset"}
            padding: 180px 0px;
            background-position-x: ${e=>e.backgroundPosition};
            background-position-y: center;
        }
        .mobile-hide{
            display: none;
        }
        .mobile-show {
            display: block !important;
            position: ${e=>!0===e.videoBannerEnabled?"absolute":"unset"};
            width: ${e=>!0===e.videoBannerEnabled?"100%":"auto"};
            z-index: ${e=>!0===e.videoBannerEnabled?"2":"1"};
        }
        .right-content.mobile-show {
            display: block;
            padding: 0;
            width: 100%;
            text-align: center;
            margin-top: 20px;
        }
        .right-content.mobile-show .homepage_banner_subscribe {
            border: 2px solid ${e=>e.bannerSubscribeNowBgColorMobile};
            padding: 5px 40px;
            display: inline-block;
            margin-top: 18px;
            color: ${e=>e.bannerSubscribeNowTextColorMobile};
            background-color: ${e=>e.bannerSubscribeNowBgColorMobile};
            font-size: 18px;
            width: 80%;
            border-radius: 10px;
        }
        .right-content .banner_social_icon a {
            display: inline-block;
            width: 45px;
            height: 45px;
            border: 2px solid ${e=>e.bannerSocialMediaIconsAndBorderColorMobile};
            border-radius: 100px;
            color: ${e=>e.bannerSocialMediaIconsAndBorderColorMobile};
            font-size: 24px;
            text-align: center;
            margin-right: 7px;
            margin-top: 18px;
            line-height: 44px;
        }
        .right-content .banner_social_icon a:last-child{
            margin-right: 0px;
        }
        .right-content .banner_social_icon a img {
            width: 100%;
            padding: 0 12px 4px 12px;
            vertical-align: middle;
        }
        .right-content .banner_social_icon a img{
            padding: 0 10px 4px 10px;
        }

        .homepage_banner_image{
            text-align: center;
            margin-top: -60px;
        }
        .homepage_banner_image .bottom-content{
            bottom: 0px;
        }
        .homepage_banner_image h1 {
            font-size: 72px;
        }
        .homepage_banner_top_links{
            right: 15px;
            top: 15px;
        }
        .homepage_banner_top_links a{
            font-size: 24px;
            margin-right: 10px;
        }
        button.navbar-toggler.collapsed{
            z-index: 2;
            color: ${e=>e.bannerNavbarButtonColorClosed};
        }
        .collapse.show {
            height: 100vh;
        }
        .social-icons {
            position: absolute;
            width: unset;
            bottom: 100px;
            left: 0;
            right: 0;
            display: inline-block;
            margin: auto !important;
            text-align: center;
        }
        .access-links {
            text-align: center;
        }
        .access-links li {
            text-align: center;
            display: block;
            font-size: 34px;
        }
        .access-links a.nav-link {
            color: black !important;
        }
        li.showinmenu {
            display: block !important;
        }
        .showinmenu p span {
            color: ${e=>e.bannerModelLastNameColorSideMenu};
        }
        .showinmenu p {
            color: ${e=>e.bannerModelFirstNameColorSideMenu};
            font-family: ${e=>e.bannerModelNameFontFamily};
            font-size: xxx-large;
            font-weight: 400;
        }
        
        .social-icons li {
            background-color: ${e=>e.bannerSocialMediaTextColorMobile};
            border-radius: 50px;
            margin: 0 5px;
            width: fit-content;
            margin: 2px;
            display: inline-block;
        }
        .social-icons li {
            background-color: ${e=>e.bannerSocialMediaTextColorMobile};
            width: 40px;
            height: 40px;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            margin: 0px 5px;
        }
        .social-icons li a {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            object-fit: cover;
            padding: 9px 22px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: rgb(103 137 138) !important;
            display: inline-flex;
        }
        .social-icons a {
            line-height: 40px;
            margin: 0 4px;
            width: 40px;
            height: 40px;
            background: ${e=>e.bannerSocialMediaIconColorMobile};
            font-size: 40px;
            border-radius: 50%;
            display: inline-flex;
        }
        .access-links li.nav-item {
            margin-top: 20px;
        }
        .access-links li.nav-item a{
            color: #000;
        }
        .access-links .btn-custom-dark {
            color: ${e=>e.bannerSubscribeNowTextColorSideMenuMobile} !important;
            border: 2px solid ${e=>e.bannerSubscribeNowTextColorSideMenuMobile} !important;
        }
        .btn-custom-dark {
            background: transparent;
            color: ${e=>e.section2SubscribeNowTextColor};
            border: 3px solid ${e=>e.section2SubscribeNowTextColor} !important;
            -webkit-transition: ease-out 0.5s;
            transition: ease-out 0.5s;
            font-weight: bold;
            border-radius: 0;
            font-size: 1.25rem;
            padding: 15px 30px;
            font-family: 'Baron Neue';
            -webkit-letter-spacing: 5px;
            -moz-letter-spacing: 5px;
            -ms-letter-spacing: 5px;
            letter-spacing: 5px;
        }
    }
    @media only screen and (max-width: 480px) and (min-width: 318px) {
        .homepage_banner_image h1 {
            font-size: 50px;
        }
        .access-links .btn-custom-dark {
            color: ${e=>e.bannerSubscribeNowTextColorSideMenuMobile} !important;
            border: 2px solid ${e=>e.bannerSubscribeNowTextColorSideMenuMobile} !important;
        }
        .homepage_banner_image {
            background-image: ${e=>e.videoBannerEnabled?"":`url(${e.bannerImageForMobile})`};
            height: ${e=>!0===e.fullScreenMobileBanner?"100vh":"unset"};
            padding: 85px 0px;
            background-position-x: ${e=>e.backgroundPosition};
            background-position-y: center;
        }
        .mobile-hide{
            display: none;
        }
        .mobile-show {
            display: block !important;
            position: ${e=>!0===e.videoBannerEnabled?"absolute":"unset"};
            width: ${e=>!0===e.videoBannerEnabled?"100%":"auto"};
            z-index: ${e=>!0===e.videoBannerEnabled?"2":"1"};
        }
        .homepage_banner_image{
            text-align: center;
            margin-top: -60px;
        }
        button.navbar-toggler.collapsed{
            z-index: 2;
            color: ${e=>e.bannerNavbarButtonColorClosed};
        }
        .collapse.show {
            height: 100vh;
        }
        .social-icons {
            position: absolute;
            width: unset;
            bottom: 100px;
            left: 0;
            right: 0;
            display: inline-block;
            margin: auto !important;
            text-align: center;
        }
        .access-links {
            text-align: center;
        }
        .access-links li {
            text-align: center;
            display: block;
            font-size: 25px;
        }
        .access-links a.nav-link {
            color: black !important;
        }
        li.showinmenu {
            display: block !important;
        }
        
        .showinmenu p span {
            color: ${e=>e.bannerModelLastNameColorSideMenu};;
        }

        .showinmenu p {
            color: ${e=>e.bannerModelFirstNameColorSideMenu};
            font-family: ${e=>e.bannerModelNameFontFamily};
            font-size: 2.4rem;
            font-weight: 400;
        }
        
        .social-icons li {
            background-color: #fff;
            border-radius: 50px;
            margin: 0 5px;
            width: fit-content;
            margin: 2px;
            display: inline-block;
        }
        .social-icons li {
            background-color: ${e=>e.bannerSocialMediaTextColorMobile};
            width: 40px;
            height: 40px;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            margin: 0px 5px;
        }
        .social-icons li a {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            object-fit: cover;
            padding: 9px 22px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: rgb(103 137 138) !important;
            display: inline-flex;
        }
        .social-icons a {
            line-height: 40px;
            margin: 0 4px;
            width: 40px;
            height: 40px;
            background: ${e=>e.bannerSocialMediaIconColorMobile};
            font-size: 40px;
            border-radius: 50%;
            display: inline-flex;
        }
        .access-links li.nav-item {
            margin-top: 20px;
        }
        .access-links li.nav-item a{
            color: #000;
        }
        .btn-custom-light, .btn-custom-dark{
            font-size: small;
        }
        .btn-custom-dark {
            background: transparent;
            color: ${e=>e.section2SubscribeNowTextColor};
            border: 3px solid ${e=>e.section2SubscribeNowTextColor} !important;
            -webkit-transition: ease-out 0.5s;
            transition: ease-out 0.5s;
            font-weight: bold;
            border-radius: 0;
            font-size: 1.25rem;
            padding: 15px 30px;
            font-family: 'Baron Neue';
            -webkit-letter-spacing: 5px;
            -moz-letter-spacing: 5px;
            -ms-letter-spacing: 5px;
            letter-spacing: 5px;
        }
    }
`,y=r.a.section`
    width: 100%;
    padding: 0px;

    body {
        font-family: 'Nobile';
        font-weight: 100;
    }

    .landing-section h1 {
        font-size: 112px;
        color: #f4cedd;
        font-family: ${e=>e.bannerModelNameFontFamily};
    }

    .landing-section h1 span {
        color: #fff;
    }

    .btn-custom-dark {
        background: transparent;
        color: ${e=>e.section2SubscribeNowTextColor};
        border: 3px solid ${e=>e.section2SubscribeNowTextColor} !important;
        -webkit-transition: ease-out 0.5s;
        -webkit-transition: ease-out 0.5s;
        transition: ease-out 0.5s;
        font-weight: bold;
        border-radius: 0;
        font-size: 1.25rem;
        padding: 15px 30px;
        font-family: 'Baron Neue';
        -webkit-letter-spacing: 5px;
        -moz-letter-spacing: 5px;
        -ms-letter-spacing: 5px;
        -webkit-letter-spacing: 5px;
        -moz-letter-spacing: 5px;
        -ms-letter-spacing: 5px;
        letter-spacing: 5px;
    }

    .btn-custom-dark:hover {
        background: transparent;
        color: ${e=>e.section2SubscribeNowTextColor};
        transition: ease-in 0.5s;
    }

    .btn-custom-light {
        border: 3px solid white;
        background: transparent;
        color: white;
        transition: ease-out 0.5s;
        font-weight: bold;
        border-radius: 0;
        letter-spacing: 5px;
        font-family: 'Baron Neue';
    }

    .btn-custom-light:hover {
        background: transparent;
        color: white;
        transition: ease-in 0.5s;
    }

    .img-model-round {
        width: 75vh;
        height: 75vh;
        /* border: 2px solid red; */
        border-radius: 50%;
        border-left: none;
        border-top: none;
        border-bottom: none;
        padding-right: 20px;
        padding-bottom: 20px;
        object-fit: cover;
        object-position: center;
    }

    .right-section .img-model-round {
        border: none;
        border-radius: 0px;
        height: auto;
        width: 100%;
        padding: 0;
        margin-top: -20px;
        margin-left: 20px;
        margin-bottom: 20px;
        object-fit: cover;
    }

    .box {
        border: 3px solid ${e=>e.section2ImageBorder};
        max-width: 604px;
        margin: auto;
    }

    .box1 {
        border: 3px solid ${e=>e.section1ImageBorderColor};
        border-radius: 100%;
        width: 75vh;
        height: 75vh;
        border-left: none;
        border-top: none;
        margin: auto;
    }
    .title {
        position: relative;
        margin: 25px 0px 10px;
    }
    .highlight {
        background-repeat: no-repeat;
        padding: 25px 0;
        background-size: cover;
        -webkit-mask-image: url(${e=>Object(h.a)(e.socialIcons.brush_stroke)});
        mask-image: url(${e=>Object(h.a)(e.socialIcons.brush_stroke)});
        background-color: ${e=>e.section1TitleBackgroundColor};
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        -webkit-mask-size: contain;
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: contain;
        left: 0;
        top: 0;
        position: absolute;
        width: 100%;
        top: calc(50% - 52.5px);
        margin: 0px;
    }

    h2.brushed-h2 {
        text-align: center;
        font-size: 3rem;
        font-family:  ${e=>e.titleFontStyle};
        color: ${e=>e.section1TitleColor};
        z-index: 1;
        position: relative;
        max-width: 640px;
        width: 100%;
        margin-inline: auto;
    }
    .right-section h2.brushed-h2 {
        text-align: center;
        font-size: 3rem;
        font-family:  ${e=>e.titleFontStyle};
        color: ${e=>e.section2TitleColor};
    }

    h2.highlight,
    .last-section h2 {
        font-size: 50px;
        font-family:  ${e=>e.titleFontStyle};
        font-weight: bold;
        text-align: center;
        border: none;
        color: ${e=>e.section1TitleColor};
    }
    .right-section  h2.brushed-h2 {
        color: ${e=>e.section2TitleColor};
        font-family:  ${e=>e.titleFontStyle};
    }
    ,right-section p {
        color: ${e=>e.section2DescriptionColor};
    }
    .right-section .highlight {
        background-color: ${e=>e.section2TitleBackgroundColor};
    }
    .right-section .btn-custom-dark{
        color: ${e=>e.section2SubscribeNowTextColor} !important;
        border-color: ${e=>e.section2SubscribeNowTextColor} !important;
    }
    .last-section h2{
        color: ${e=>e.section3TitleColor};
    }
    .last-section p{
        color: ${e=>e.section3DescriptionColor} !important;
    }
    .last-section .btn-custom-light{
        color: ${e=>e.section3SubscribeNowColor};
        border-color: ${e=>e.section3SubscribeNowColor};
    }
    .left-section {
        border: ${e=>e.section1BorderColor};
    }
    .left-section p,
    .right-section p,
    .last-section p {
        font-size: large;
        padding-left: 30px;
        padding-right: 30px;
        font-family: ${e=>e.descriptionFontStyle};
    }
    .left-section p {
        color: ${e=>e.section1DescriptionColor};
    }

    .grid-layout {
        margin: auto;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .grid-container {
        display: grid;
        padding-top: 20px;
        position: inherit;
        width: inherit;
        justify-content: inherit;
        grid-template-columns: 23% 25% 25% 23%;
        grid-template-rows: 25% 25% 25% 25%;
        grid-template-areas:
            'img1 img2 img3 img3'
            'img1 img2 img3 img3'
            'img4 img4 img5 img6'
            'img4 img4 img5 img6';
        object-fit: cover;
        grid-gap: 0;
        grid-gap: 5px;
    }

    .grid-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .item-a {
        grid-area: img1;
    }

    .item-b {
        grid-area: img2;
    }

    .item-c {
        grid-area: img3;
    }

    .item-d {
        grid-area: img4;
    }

    .item-e {
        grid-area: img5;
    }

    .item-f {
        grid-area: img6;
    }

    .left-section, .right-section {
        height: 100vh
    }

    .last-section p {
        text-align: center;
        margin: 0 auto;
        width: 100%;
        max-width: 70%;
    }

    .landing-section {
        background: url('./ALEXA-DELLANOS_01.jpg');
        background-size: cover;
        background-position-x: center;
        margin-top: -100px;
        height: 100vh;
    }


    .right-section {
        background: url(${e=>e.section2BackgroundImage});
        background-size: cover;
        background-position-x: center;
    }
    @media(max-width: 1280px) {
        .right-section-wrapper {
            flex-direction: column-reverse;
        }
    }

    .last-section {
        background: url(${e=>e.section3BackgroundImage});
        background-size: cover;
        background-position-x: center;
        height: 94vh;
        margin-top: 25px;
        padding: 20px;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .social-icons li {
        background-color: #fff;
        border-radius: 50px;
        margin: 0 5px;
    }

    .access-links li {
        font-size: 34px;
        font-variant: all-petite-caps;
        font-weight: bold;
        margin: auto 10px;
        color: white;
    }

    .access-links a.nav-link {
        color: #fff !important;
        font-family: ${e=>e.bannerLoginSignUpFontFamily};
        font-weight: 100;
    }

    .bar-container {
        display: inline-block;
        cursor: pointer;
    }

    .bar1,
    .bar2,
    .bar3 {
        width: 35px;
        height: 5px;
        background-color: #fff;
        margin: 6px 0;
        transition: 0.4s;
    }

    .change .bar1 {
        -webkit-transform: rotate(-45deg) translate(-9px, 6px);
        transform: rotate(-45deg) translate(-9px, 6px);
        background-color: #000 !important;
    }

    .change .bar2 {
        opacity: 0;
    }

    .change .bar3 {
        -webkit-transform: rotate(45deg) translate(-9px, -7px);
        transform: rotate(45deg) translate(-9px, -7px);
        background-color: #000 !important;
    }

    .navbar-toggler {
        border: none !important;
    }

    .navbar-toggler:focus {
        text-decoration: none;
        border: none !important;
        outline: none;
    }

    .social-icons li a {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
        padding: 9px 22px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: rgb(103 137 138) !important;
    }

    .svg-icon {
        fill: #fff;
    }

    .svg-icon:hover {
        fill: white;
    }
    .last-section .row.h-100.justify-content-center.align-items-center{
        border: 5px solid ${e=>e.section3BorderColor};
    }

    @media (min-width:991px) and (max-width:1440px) {

        .img-model-round,
        .box1 {
            width: 50vh;
            height: 50vh;
        }
    }

    @media (max-width: 1201px) and (min-width: 1081px){
        .right-section {
            height: unset;
            padding-top: 100px;
            padding-bottom: 100px;
        }
    }

    @media (min-width: 1080px) {
        .last-section h2{
            font-size: 80px;
            margin-bottom: 30px;
        }
        .left-section p, .right-section p, .last-section p{
            font-size: x-large;
            width: 90%
            margin-bottom: 20px;
        }
        .right-section p {
            padding-right: 0px;
            margin-right: 0;
            width: 100%;
            margin-bottom: 50px;
        }
        .left-section p {
            width: 100%;
        }
    }

    @media (min-width:991px) and (max-width:1080px)  {
        .last-section {
            height: fit-content;
            padding-top: 30px;
            padding-bottom: 30px;
        }
        .right-section {
            height: unset;
            padding-top: 100px;
            padding-bottom: 100px;
        }
    }

    @media (max-width:991px) {
        .highlight {
            background-size: 100% 100%;
            text-align: center !important;
        }

        h2.highlight,
        .last-section h2 {
            padding-left: unset;
        }

        .last-section {
            height: unset;
        }

        .landing-section {
            margin-top: -115px;
            height: unset;
            padding: 200px 0px;
        }
        .left-section, .right-section {
            height: unset;
            padding-top: 50px;
            padding-bottom: 50px;
        }
    }

    @media (max-width:768px) {

        .img-model-round,
        .box1 {
            max-width: 80vw;
            max-height: 80vw;
            margin: auto;
        }
        .right-section .img-model-round{
            max-height: fit-content;
        }
        .highlight {
            background-size: 100% 100%;
            text-align: center !important;
        }

        h2.highlight,
        .last-section h2 {
            padding-left: unset;
        }

        .right-section .img-model-round {
            max-width: 100%;
        }

        .landing-section h1 {
            font-size: 72px;
        }

        .left-section p,
        .right-section p,
        .last-section p {
            font-size: x-large;
            padding-left: unset;
            padding-right: unset;
        }

        .last-section p {
            text-align: center;
            margin: 0 auto;
            width: 100%;
            max-width: 80%;
        }
    }

    @media(max-width:767px) {
        .landing-section {
            margin-top: -68px;
        }

        ul.social-icons {
            display: block;
            margin: 0 auto;
            width: -webkit-fill-available;
            text-align: center;
        }

        .social-icons li {
            background-color: #fff;
            border-radius: 50px;
            margin: 0 5px;
            width: fit-content;
            margin: 2px;
            display: inline-block;
        }

        .main-header .custom-nav {
            color: #000 !important;
        }

        .change .custom-nav {
            background: #fff !important;
        }

        .change .social-icons li {
            background-color: #f4cedd;
        }

        .change .social-icons svg {
            color: #000;
        }

        .change .social-icons {
            position: absolute;
            width: unset;
            bottom: 40px;
            left: 0;
            right: 0;
        }

        .left-section p,
        .right-section p,
        .last-section p {
            font-size: large;
            padding-left: unset;
            padding-right: unset;
        }

        .svg-icon {
            fill: #000;
            max-width: 32px;
        }

        .change .access-links a.nav-link {
            color: black !important;
        }

        .change .navbar-collapse.collapse.show {
            height: 93vh;
        }

        .change .access-links {
            text-align: center;
        }

        .change li.showinmenu {
            display: block !important;
        }

        .showinmenu p {
            color: ${e=>e.bannerModelFirstNameColorSideMenu};
            font-family: ${e=>e.bannerModelNameFontFamily};
            font-size: xxx-large;
            font-weight: 400;
        }

        .last-section {
            height: unset;
        }


        .change li#svg-icon-id {
            background-color: #f4cedd !important;
        }

        .landing-section {
            padding: 180px 0px;
        }
        .right-section .row.h-100.justify-content-center.align-items-center {
            padding-right: 20px;
            padding-left: 20px;
        }

    }
    @media (max-width: 666px) and (min-width: 476px){
        .col-xl-7.text-center.mt-5{
            padding: 0px 45px;
        }
    }
    @media (max-width: 475px) {

        .btn-custom-light,
        .btn-custom-dark {
            width: 90%;
        }

        .landing-section {
            padding: 80px 0px;
        }
        .col-xl-7.text-center.mt-5{
            padding: 0px 45px;
        }
        .last-section p {
            max-width: 100%;
        }
        h2.brushed-h2, .right-section h2.brushed-h2 {
            font-size: 2.5rem;
            bottom: 0;
            display: inline-flex;
            height: 110px;
            justify-content: center;
            align-items: center;
        }
        .right-section .btn.btn-lg, .last-section .btn.btn-lg {
            padding: 15px 5px;
            width: 90%;
            white-space: normal;
        }
        .left-section .img-model-round, .left-section .box1 {
            max-width: 85vw;
            max-height: 85vw;
        }
    }

    @media (max-width:425px) {

        .img-model-round,
        .box1 {
            max-width: 30vh;
            max-height: 30vh;
        }
        .btn-custom-dark, .btn-custom-light {
            font-size: medium;
        }
        .highlight {
            background-size: 100% 95%;
        }

        .right-section .img-model-round {
            max-width: 100%;
        }

        .landing-section h1 {
            font-size: 50px;
        }

        .grid-container {
            grid-template-columns: 49% 49%;
            grid-template-rows: 25% 25% 25% 25%;
            grid-template-areas:
                'img1 img2'
                'img3 img3'
                'img5 img6'
                'img4 img4';
        }

        .last-section {
            padding: 15px 10px;
        }
        .img-model-round {
            padding-right: 10px;
            padding-bottom: 10px;
        }
        h2.highlight, .last-section h2{
            font-size: 40px;
            padding-bottom: 25px;
        }
        .last-section h2{
            margin-bottom: 0px;
        }
        .last-section .btn.btn-lg {
            padding: 15px 0px;
        }
    }
    @media (max-width: 400px){
        .left-section .img-model-round, .left-section .box1 {
            max-width: 80VW;
            max-height: 80VW;
        }
    }
`;class E extends n.Component{constructor(e){super(e),this.state={isOpen:!1,videoIsMuted:!1,width:window.innerWidth,isLoading:!0},this.toggleCollapse=this.toggleCollapse.bind(this),this.videoMuteUnMute=this.videoMuteUnMute.bind(this),this.toggleMute=this.toggleMute.bind(this),this.updateDimensions=this.updateDimensions.bind(this)}updateDimensions(){this.setState({width:window.innerWidth})}componentDidMount(){window.addEventListener("resize",this.updateDimensions),this.props.getAllTheme3Settings(()=>{this.setState({isLoading:!1})})}componentWillUnmount(){window.removeEventListener("resize",this.updateDimensions)}toggleCollapse(){this.setState({isOpen:!this.state.isOpen})}toggleMute(){let e=document.getElementById("myVideo");this.setState({videoIsMuted:!this.state.videoIsMuted}),e.muted=!e.muted}videoMuteUnMute(){return n.createElement(n.Fragment,null,!1===this.state.videoIsMuted?n.createElement("button",{className:"btn btn-sm-lg shadow-none text-white btn-mute-unmute",onClick:this.toggleMute}," ",n.createElement("i",{className:"fas fa-volume-off fa-5x"})):n.createElement("button",{className:"btn btn-sm-lg shadow-none text-white btn-mute-unmute",onClick:this.toggleMute}," ",n.createElement("i",{className:"fas fa-volume-up fa-2x"})))}render(){const e=l.a.get(this.props.auth.theme3Settings,"theme3Settings",""),{theme_2_instagram_url:t,theme_2_twitter_url:a,theme_2_facebook_url:o,theme_2_tiktok_url:r,theme_2_twitch_url:s,theme_2_discord_url:c,theme_2_snapchat_url:E,theme_2_website_url:v,theme_2_youtube_url:w,theme_2_amazon_wishlist_url:x,log_in_navbar_name:k,sign_up_navbar_name:N,promotion_settings:S}=this.props.auth.appSettings,C=l.a.get(S,"subscription_promotion_ribbon_position","above menu"),T={fontFamily:e.model_name_font,fontWeight:"100",color:e.banner_model_first_name_color},O={fontFamily:e.theme_1_banner_model_name_font,fontWeight:"100",color:e.theme_1_banner_model_name_color,marginBottom:"0"},P={fontFamily:e.model_name_font,fontWeight:"100",color:e.banner_model_first_name_color_side_menu},I={fontFamily:e.model_name_font,fontWeight:"100",color:e.banner_model_last_name_color,display:"inline-block"},A={fontFamily:e.login_signup_font,color:e.banner_login_signup_color},M={fontFamily:e.login_signup_font,color:e.banner_login_signup_color_mobile},j={color:!0===this.state.isOpen?e.side_menu_button_color_open:e.side_menu_button_color_closed},F={backgroundColor:!0===this.state.isOpen?e.side_menu_background_color:"transparent"};let L=""!==t&&void 0!==t,D=""!==a&&void 0!==a,$=""!==E&&void 0!==E,R=""!==o&&void 0!==o,B=""!==w&&void 0!==w,U=""!==v&&void 0!==v,G=""!==r&&void 0!==r,z=""!==x&&void 0!==x,W=""!==s&&void 0!==s,H=""!==c&&void 0!==c;const[q,...V]=l.a.isEmpty(e)?"":e.banner_model_name.split(" "),Y=V.join(" "),K=this.state.width;let J=e.desktop_video_banner_url;if((K<999||""===e.desktop_video_banner_url)&&(J=e.video_banner_url),""===e.video_banner_url&&""!==e.desktop_video_banner_url&&(J=e.desktop_video_banner_url),!0===this.state.isLoading)return n.createElement("div",{className:"d-flex flex-column min-vh-100 justify-content-center align-items-center"},n.createElement(p.a,{loading:!0,size:10}));let X=e.banner_image_for_mobile;l.a.isEmpty(X)&&(X=e.banner_image);const Q=Object(h.b)();return n.createElement(d.a,null,n.createElement(b,{landingPageBackgroundColor:e.landing_page_background_color},n.createElement(g.a,null),"above menu"===C||"above hero"===C?n.createElement(u.a,null):n.createElement(n.Fragment,null),!0===e.enable_theme_1_banner_section?n.createElement(f,{bannerSubscribeNowTextColor:e.theme_1_banner_subscribe_now_text_color,bannerModelNameFontFamily:e.theme_1_banner_model_name_font,fullScreenMobileBanner:e.enable_banner_section_full_mobile,videoBannerEnabled:e.enable_theme_1_banner_section,newInputLoginColor:e.theme_1_banner_login_text_color},!0===e.enable_theme_1_banner_section?n.createElement(n.Fragment,null,n.createElement("video",{id:"myVideo",src:e.theme_1_video_banner_url,type:"mp4",playsInline:!0,autoPlay:!0,loop:!0,muted:!0})):null,n.createElement("div",{className:"homepage_banner_image"},!0===e.enable_video_banner?this.videoMuteUnMute():null,n.createElement("div",{className:"container h-100"},n.createElement("div",{className:"row h-100 justify-content-center align-items-end align-items-md-center"},n.createElement("div",{className:"col-12 text-center"},n.createElement("h1",{style:O},e.theme_1_banner_model_name),n.createElement(i.b,{className:"btn btn-sm-lg btn-custom-light shadow-none text-lowercase",to:"/register"},e.theme_1_banner_subscribe_now_text),n.createElement(i.b,{className:"btn login-input-button btn-custom-light btn-sm-lg d-block m-auto shadow-none text-lowercase",to:"/login"},e.theme_1_banner_login_text)))))):null,!0===e.enable_banner_section?n.createElement(_,{bannerImage:e.banner_image,bannerSubscribeNowTextColor:e.banner_subscribe_now_text_color,bannerSocialMediaIconColor:e.banner_social_media_icon_color,bannerSocialMediaIconColorMobile:e.banner_social_media_icon_color_mobile,bannerSocialMediaTextColorMobile:e.banner_social_media_text_color_mobile,bannerSubscribeNowTextColorSideMenuMobile:e.banner_subscribe_now_text_color_side_menu_mobile,bannerModelFirstNameColorSideMenu:e.banner_model_first_name_color_side_menu,bannerModelLastNameColorSideMenu:e.banner_model_last_name_color_side_menu,bannerLoginSignUpColor:e.banner_login_signup_color,bannerSocialMediaIconsAndBorderColor:e.banner_social_media_icon_and_border_color,bannerSocialMediaIconsAndBorderColorMobile:e.banner_social_media_icon_and_border_color_mobile,bannerModelNameFontFamily:e.model_name_font,bannerLoginSignUpFontFamily:e.login_signup_font,bannerNavbarButtonColorClosed:e.side_menu_button_color_closed,bannerNavbarButtonColorOpen:e.side_menu_button_color_open,bannerNavbarBackgroundColor:e.side_menu_background_color,fullScreenMobileBanner:e.enable_banner_section_full_mobile,videoBannerEnabled:e.enable_video_banner,backgroundPosition:e.mobile_banner_background_position,bannerImageForMobile:X,socialIcons:Q},n.createElement("div",{className:"mobile-show d-none"},n.createElement("nav",{className:"navbar shadow-none",style:F},n.createElement("button",{className:"navbar-toggler collapsed",style:j,type:"button","data-toggle":"collapse",onClick:this.toggleCollapse},!0===this.state.isOpen?n.createElement("i",{className:"fas fa-times fa-2x"}):n.createElement("i",{className:"fas fa-bars fa-2x"})),n.createElement("div",{className:this.state.isOpen?"collapse navbar-collapse show":"collapse navbar-collapse",id:"navbarsExampleDefault"},n.createElement("ul",{className:"navbar-nav mr-auto mt-2 mt-lg-0 social-icons"},L?n.createElement("li",null,n.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"instagram-svg"})," "):n.createElement(n.Fragment,null),G?n.createElement("li",null,n.createElement("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"tiktok-svg"})):n.createElement(n.Fragment,null),R?n.createElement("li",null,n.createElement("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"facebook-svg"})):n.createElement(n.Fragment,null),D?n.createElement("li",null,n.createElement("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"twitter-svg"})):n.createElement(n.Fragment,null),W?n.createElement("li",null,n.createElement("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"twitch-svg"})):n.createElement(n.Fragment,null),H?n.createElement("li",null,n.createElement("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"discord-svg"})):n.createElement(n.Fragment,null),$?n.createElement("li",null,n.createElement("a",{href:E,target:"_blank",rel:"noopener noreferrer",className:"snapchat-svg"})):n.createElement(n.Fragment,null),B?n.createElement("li",null,n.createElement("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"youtube-svg"})):n.createElement(n.Fragment,null),U?n.createElement("li",{style:{height:"10px"}},n.createElement("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"website-svg"})):n.createElement(n.Fragment,null),z?n.createElement("li",null,n.createElement("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:"amazon-svg"})):n.createElement(n.Fragment,null)),n.createElement("ul",{className:"navbar-nav my-2 my-lg-0 access-links"},n.createElement("li",{className:"showinmenu d-none"},n.createElement("p",{style:P},q,"\xa0",n.createElement("span",{style:{display:"inline-block"}},Y))),n.createElement("li",{className:"nav-item"},n.createElement(i.b,{className:"mx-5",to:"/login",style:M},k)),n.createElement("li",{className:"nav-item"},n.createElement(i.b,{className:"mx-5",to:"/register",style:M},N)),n.createElement("li",{className:"nav-item"},n.createElement(i.b,{className:"btn btn-sm-lg btn-custom-dark shadow-none text-lowercase",to:"/register"},e.banner_subscribe_now_text)))))),!0===e.enable_video_banner?n.createElement(n.Fragment,null,n.createElement("video",{id:"myVideo",src:J,type:"mp4",playsInline:!0,autoPlay:!0,loop:!0,muted:!0})):null,n.createElement("div",{className:"homepage_banner_image"},!0===e.enable_video_banner?this.videoMuteUnMute():null,n.createElement("div",{className:"container h-100"},n.createElement("div",{className:"row h-100 justify-content-center align-items-center"},n.createElement("div",{className:"col-12 text-center"},n.createElement("h1",{style:T},q,"\xa0",n.createElement("span",{style:I},Y)),n.createElement(i.b,{className:"btn btn-sm-lg  btn-custom-light shadow-none text-lowercase",to:"/register"},e.banner_subscribe_now_text))),n.createElement("div",{className:"homepage_banner_top_links social_icons mobile-hide"},n.createElement("div",{className:"banner_social_icon"},L?n.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"instagram-svg"}):n.createElement(n.Fragment,null),G?n.createElement("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"tiktok-svg"}):n.createElement(n.Fragment,null),R?n.createElement("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"facebook-svg"}):n.createElement(n.Fragment,null),D?n.createElement("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"twitter-svg"}):n.createElement(n.Fragment,null),W?n.createElement("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"twitch-svg"}):n.createElement(n.Fragment,null),H?n.createElement("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"discord-svg"}):n.createElement(n.Fragment,null),$?n.createElement("a",{href:E,target:"_blank",rel:"noopener noreferrer",className:"snapchat-svg"}):n.createElement(n.Fragment,null),B?n.createElement("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"youtube-svg"}):n.createElement(n.Fragment,null),U?n.createElement("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"website-svg"}):n.createElement(n.Fragment,null),z?n.createElement("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:"amazon-svg"}):n.createElement(n.Fragment,null))),n.createElement("div",{className:"homepage_banner_top_links mobile-hide"},n.createElement(i.b,{className:"mx-5",to:"/login",style:A},k),n.createElement(i.b,{className:"mx-5",to:"/register",style:A},N))))):null,"below hero"===C&&n.createElement(u.a,null),n.createElement(y,{section1ImageBorderColor:e.section_1_image_border_color,section1TitleColor:e.section_1_title_color,section1TitleBackgroundColor:e.section_1_title_background_color,section1DescriptionColor:e.section_1_description_color,section2BackgroundImage:e.section_2_background_image,section2ImageBorder:e.section_2_image_border_color,section2TitleColor:e.section_2_title_color,section2TitleBackgroundColor:e.section_2_title_background_color,section2DescriptionColor:e.section_2_description_color,section2SubscribeNowButtonText:e.section_2_subscribe_now_text,section2SubscribeNowTextColor:e.section_2_subscribe_now_text_color,section3BackgroundImage:e.section_3_image,section3BorderColor:e.section_3_border_color,section3TitleColor:e.section_3_title_color,section3DescriptionColor:e.section_3_description_color,section3SubscribeNowColor:e.section_3_subscribe_now_text_color,titleFontStyle:e.title_font,descriptionFontStyle:e.description_font,socialIcons:Q,section1BorderColor:e.section_1_border_color},!0===e.enable_section_1?n.createElement("div",{className:"left-section"},n.createElement("div",{className:"container-fluid h-100 px-lg-5"},n.createElement("div",{className:"row h-100 justify-content-center align-items-center"},n.createElement("div",{className:"col-xl-6 text-center mt-2"},n.createElement("div",{className:"box1"},n.createElement("img",{src:e.section_1_image,alt:"section_1_image",className:"img-model-round"}))),n.createElement("div",{className:"col-xl-6 mt-2"},n.createElement("div",{className:"title"},n.createElement("h2",{className:"highlight"},"\xa0"),n.createElement("h2",{className:"brushed-h2"},e.section_1_title)),n.createElement("p",{style:{whiteSpace:"pre-wrap",textAlign:e.section_1_description_alignment}},e.section_1_description))))):null,!0===e.enable_section_2?n.createElement("div",{className:"right-section"},n.createElement("div",{className:"container-fluid h-100 px-lg-5"},n.createElement("div",{className:"row h-100 justify-content-center align-items-center right-section-wrapper"},n.createElement("div",{className:"col-xl-6 text-center mt-2"},n.createElement("div",{className:"title"},n.createElement("h2",{className:"highlight"},"\xa0"),n.createElement("h2",{className:"brushed-h2"},e.section_2_title)),n.createElement("p",{style:{textAlign:e.section_2_description_alignment,whiteSpace:"pre-wrap"}},e.section_2_description),n.createElement(i.b,{className:"btn btn-lg  btn-custom-dark shadow-none text-lowercase",to:"/register"},e.section_2_subscribe_now_text)),n.createElement("div",{className:"col-xl-6 text-center mt-5"},n.createElement("div",{className:"box"},n.createElement("img",{src:e.section_2_image,alt:"section_2_image",className:"img-model-round"})))))):null,!0===e.enable_grid_section?n.createElement("div",{className:"grid-layout"},n.createElement("div",{className:"grid-container"},n.createElement("div",{className:"item-a"},n.createElement("img",{src:e.grid_section_image_1,alt:"grid_section_image_1"})),n.createElement("div",{className:"item-b"},n.createElement("img",{src:e.grid_section_image_2,alt:"grid_section_image_2"})),n.createElement("div",{className:"item-c"},n.createElement("img",{src:e.grid_section_image_3,alt:"grid_section_image_3"})),n.createElement("div",{className:"item-d"},n.createElement("img",{src:e.grid_section_image_4,alt:"grid_section_image_4"})),n.createElement("div",{className:"item-e"},n.createElement("img",{src:e.grid_section_image_5,alt:"grid_section_image_5"})),n.createElement("div",{className:"item-f"},n.createElement("img",{src:e.grid_section_image_6,alt:"grid_section_image_6"})))):null,!0===e.enable_section_3?n.createElement("div",{className:"last-section"},n.createElement("div",{className:"container-fluid",style:{height:"100%"}},n.createElement("div",{className:"row h-100 justify-content-center align-items-center"},n.createElement("div",{className:"col-12 text-center py-4"},n.createElement("h2",null,e.section_3_title),n.createElement("p",{style:{textAlign:e.section_3_description_alignment,whiteSpace:"pre-wrap"}},e.section_3_description),n.createElement(i.b,{className:"btn btn-lg  btn-custom-light mt-4 shadow-none text-lowercase",to:"/register"},e.section_3_subscribe_now_text))))):null),n.createElement(m.a,null)))}}t.a=Object(o.b)(e=>({auth:e.auth,errors:e.errors,admin:e.admin}),{getAllTheme3Settings:c.f,getCloudFrontAssetsUrl:h.a,socialMediaSvgIcons:h.b})(E)},287:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(8),r=a(29),s=a(33),l=a(141),c=a(2),d=a.n(c),m=a(153),p=a(14),u=a(3),g=a.n(u),h=a(22),b=a(6);const f=Object(h.a)(),_=b.a.div`
    display: flex;
    justify-content: space-around;

    .btn-no-thanks, .btn-enable{
        display: inline-block;
    }
    .btn-no-thanks {
        width: 100px;
    }

    @media(max-width: 479px) {
        display: block;
        .btn-no-thanks, .btn-enable{
            display: block;
            margin: 0 auto;
            width: 260px;
        }
        .btn-enable {
            margin: 0 auto 10px;
        }
    }
`,y=e=>{const[t,a]=Object(n.useState)(e),o=Object(n.useRef)(()=>{});return Object(n.useEffect)(()=>{o.current&&o.current()},[t]),[t,(e,t)=>{o.current=t,a(e)}]};t.a=Object(i.b)(e=>({auth:e.auth}),{updateUserOptInStatus:m.b,updateUserDetail:m.a})(Object(r.g)((function(e){const t=e.auth.appSettings,[a,i]=Object(n.useState)(""),[r,c]=Object(n.useState)(!0),[m,u]=y(d.a.get(e.auth.user,"emailOptInStatus",!1)),h=d.a.get(e.auth.user,"email",!1),[b,E]=Object(n.useState)(!1);let v=localStorage.getItem("link_sent_date_time");const w=d.a.get(e.auth.user,"emailEventType","none"),x=d.a.get(e.auth.user,"emailEventStatus",!1),[k,N]=Object(n.useState)(!1),[S,C]=Object(n.useState)(""),[T,O]=Object(n.useState)(!1),P=y(d.a.get(e.auth.user,"shouldPresentEmailOptInForExistingUser",!1)),[I,A]=Object(n.useState)(!1),M=e=>{["bounce","spamreport"].includes(w)&&"pending"===x?i(`We could not deliver your email notifications to ${h}.  If you wish to continue to receive notifications, please update your email now.`):"pending"===e?i(!0===P?o.a.createElement(o.a.Fragment,null,"Do you wish to continue receiving ",o.a.createElement("b",null,"Email Notifications")," each time I send you a chat message or respond to one of your messages?  I\u2019ll also be notifying you when I Go Live. If you don\u2019t see the email, be sure to check your spam folder."):o.a.createElement(o.a.Fragment,null,"Do you wish to receive ",o.a.createElement("b",null,"Email Notifications")," each time I send you a chat message or respond to one of your messages?  I\u2019ll also be notifying you when I Go Live.")):"opt_out"===e?i(o.a.createElement(o.a.Fragment,null,"Do you wish to continue receiving ",o.a.createElement("b",null,"Email Notifications")," each time I send you a chat message or respond to one of your messages?  I\u2019ll also be notifying you when I Go Live. If you don\u2019t see the email, be sure to check your spam folder.")):"link_sent"===e&&i(`We just sent an email to ${h}.  Please check your email and click on the confirmation link.  If you don\u2019t see the email, be sure to check your spam folder.`)};Object(n.useEffect)(()=>{if(!1===I&&!1===e.auth.user.isOptInEmailPopupDisplayed&&g.a.get(f+"/api/update-opt-in-email-popup-display-status").then(e=>{A(!0)}),"none"!==w&&"pending"===x&&"/profile/update"===window.location.pathname&&O(!0),!0===r){!1!==m&&M(m),c(!1),new Date(new Date(v).setMinutes(new Date(v).getMinutes()+2))>new Date&&E(!1)}!0===k&&setInterval(()=>j(),1e3)},[m,r,k]);const j=()=>{let e;e="link_sent"===m&&"none"===w?localStorage.getItem("link_sent_date_time"):localStorage.getItem("change_email_link_sent_date_time");let t=new Date(e).setMinutes(new Date(e).getMinutes()+2)-new Date;const a=Math.floor(t/1e3);C(a),0===a&&(N(!1),E(!1))};if(!0===r)return o.a.createElement("div",{className:"text-center mt-3"},o.a.createElement("div",{className:"spinner-border",role:"status",style:{color:t.site_font_color}},o.a.createElement("span",{className:"sr-only"},"Loading...")));const F=t=>{const a={};let n=!1;if("yes"===t)n=!0,a.opt_in_status="link_sent",localStorage.setItem("link_sent_date_time",new Date);else if("no_thanks"===t)n=!0,localStorage.removeItem("showEmailNotificationPrompt"),a.opt_in_status="no_thanks",u("no_thanks");else if("continue"===t)e.updateUserDetail();else if("resend"===t){E(!1);let e=localStorage.getItem("link_sent_date_time");new Date(new Date(e).setMinutes(new Date(e).getMinutes()+2))<=new Date?(n=!0,a.opt_in_status="link_sent",localStorage.setItem("link_sent_date_time",new Date)):(N(!0),E(!0))}else"change_my_email"===t?(e.updateUserDetail(),"/profile/update"===window.location.pathname&&O(!0),e.history.push("/profile/update")):"no_thanks_opt_out"===t&&(n=!0,a.opt_in_status="no_thanks_opt_out",u("no_thanks_opt_out"));!0===n&&e.updateUserOptInStatus(a,()=>{"yes"===t?(M("link_sent"),u("link_sent",()=>{})):"resend"===t&&alert("Resend email successfully")})};return!0===T?o.a.createElement(o.a.Fragment,null):["pending","opt_out","link_sent"].includes(m)||"pending"===x&&["bounce","spamreport"].includes(w)?o.a.createElement(s.a,null,o.a.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#00000080"}},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},o.a.createElement("div",{className:"modal-content",style:{backgroundColor:t.card_background_color}},o.a.createElement("div",{className:"modal-body px-2"},o.a.createElement("div",{className:"container"},a,o.a.createElement("div",{className:"row mt-5"},(()=>{if("none"!==w&&"pending"===x)return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"col-12 col-md-6 mb-3 text-md-right text-center"},o.a.createElement(l.a,{onClick:()=>F("change_my_email"),style:{textTransform:"none",backgroundColor:t.content_color,color:t.content_font_color,width:"100px"},className:"btn shadow-none w-100 py-2"},"CHANGE MY EMAIL ADDRESS")),o.a.createElement("div",{className:"col-12 col-md-6 mb-3 text-md-left text-center"},o.a.createElement(l.a,{onClick:()=>F("no_thanks"),style:{textTransform:"none",backgroundColor:t.content_color,color:t.content_font_color,width:"100px"},className:"btn shadow-none w-100 py-2"},"NO THANKS")));if(["opt_out","pending"].includes(m)){const e="opt_out"===m?"no_thanks_opt_out":"no_thanks";return o.a.createElement(o.a.Fragment,null,o.a.createElement(_,{className:"col-12"},o.a.createElement(l.a,{onClick:()=>F("yes"),style:{textTransform:"none",backgroundColor:t.content_color,color:t.content_font_color},className:"btn shadow-none py-2 btn-enable"},"ENABLE EMAIL NOTIFICATION"),o.a.createElement(l.a,{onClick:()=>F(e),className:"btn shadow-none py-2 btn-no-thanks",style:{textTransform:"none",backgroundColor:t.content_color,color:t.content_font_color}},"NO THANKS")))}return"link_sent"===m?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"col-12 text-center"},o.a.createElement(l.a,{onClick:()=>F("continue"),style:{textTransform:"none",backgroundColor:t.content_color,color:t.content_font_color,width:"100px"},className:"btn shadow-none py-2 px-9"},"CONTINUE")),o.a.createElement("div",{className:"col-12 text-sm-right text-center mt-5"},o.a.createElement(p.b,{onClick:()=>F("resend"),style:{textDecoration:"underline",textTransform:"none",color:t.site_font_color},className:"shadow-none px-1"},"Resend"),"|",o.a.createElement(p.b,{onClick:()=>F("change_my_email"),style:{textDecoration:"underline",textTransform:"none",color:t.site_font_color},className:"shadow-none px-1"},"Change my email"))):void 0})()),!0===b?o.a.createElement("div",{className:"col-12 text-center text-red mx-3"},"Please wait ",S," second",S>1?"s":"","  before requesting an email resend."):null)))))):o.a.createElement(o.a.Fragment,null)})))},288:function(e,t,a){"use strict";a.r(t);var n=a(0),o=a(106),i=a(289);t.default=function(){return n.createElement(o.a,null,n.createElement(i.a,null))}},289:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(8),s=a(30),l=a(33);t.a=Object(r.b)()(Object(i.g)((function(e){return o.a.createElement(l.a,null,o.a.createElement("div",{className:"page text-center"},o.a.createElement("div",{className:"container"},o.a.createElement("h1",{className:"h1 mt-0 mb-4 display-1 mb-5 mt-7"},"404"),o.a.createElement("h2",{className:"h2 mt-0 mb-4"},"Oops... You just found an error page..."),o.a.createElement("h4",{className:"h4 mt-0 mb-4 font-weight-normal mb-7"},"We are sorry but the page you have requested can not be found..."),o.a.createElement(s.a,{classes:"btn mb-7",onClick:()=>e.history.push("/")},o.a.createElement("i",{className:"fe fe-arrow-left mr-2"}),"Go To Home"))))})))},30:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(27),r=a.n(i),s=a(29),l=a(8),c=a(2),d=a.n(c);t.a=Object(l.b)(e=>({auth:e.auth}))(Object(s.g)((function(e){const t=d.a.get(e,"type","button");return o.a.createElement("button",{className:r()("btn",e.classes),type:t,style:{backgroundColor:e.auth.appSettings.content_color,color:e.auth.appSettings.content_font_color,...e.style},disabled:e.loading,onClick:e.onClick},e.children)})))},306:function(e,t,a){"use strict";a.r(t);var n=a(0),o=a.n(n),i=a(106),r=a(8),s=a(42),l=a(2),c=a.n(l),d=a(4),m=a(6),p=a(27),u=a.n(p),g=a(82),h=a(29),b=a(33),f=a(58),_=a(15),y=a(38),E=a.n(y);const v=m.a.div`
    aspect-ratio: 1;
    width: 100%;
`,w=m.a.img`
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
`,x=m.a.div`
    position: relative;
    width: 100%;
    height: 100%;

    label {
        padding: 5px 5px 50px 50px;
        position: absolute;
        top: 2px; 
        right: 2px;
        z-index: 10;
    }

    input {
        position: absolute;
        top: 0px; 
        right: 6px;
        height: 24px;
        width: 24px;
        border-radius: 50% !important;
        border: 1px solid white;
        background: rgba(0, 0, 0, 0.5);
    }

    input:focus {
        border-color: transparent;
        box-shadow: none;
    }

    .meta {
        position: absolute;
        inset: 0 0 0 0;
        z-index: 9;
    }
    
    .meta span {
        position: absolute;
        background: rgba(0,0,0,0.5);
        color: white;
        padding: 0px 6px;
        border-radius: 6px;
        font-size: 12px;
    }

    @media(max-width: 767px) {
        .meta span {
            font-size: 10px;
        }
        .meta .size {
          right: 4px;  
        }
        .meta .duration {
            left: 4px;
        }
        .meta .date {
            left: 4px;
        }
        input {
            right: 4px;
        }
    }

    .meta .size {
        right: 6px;
        bottom: 6px;
    }

    .meta .duration { 
        left: 6px;
        bottom: 6px;
    }

    .meta .date { 
        left: 6px;
        top: 6px;
    }

    span.video-handler {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        height: 30px;
        width: 30px;
        background-color: rgba(255,255,255,0.7);
        color: black;
    }

    span.processing-video-handler {
        position: absolute;
        top: 90%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 30px;
        padding: 3px;
        border-radius: 4px;
        background-color: rgba(255,255,255,0.4);
        color: black;
    }

    span i.fa-play {
        position: relative;
        left: 1px;
    }
`;var k=e=>{const[t,a]=Object(n.useState)(!1),{media:i,isSuperAdmin:r,selectedMedia:s,requestFrom:l,contentColor:c,contentFontColor:d}=e,m=e=>Number(e).toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:2}),p="category"===l||"popup"===l?t=>{e.setMediaList(t.target.value)}:t=>{e.mediaList(t)};return o.a.createElement(v,{className:u()("grid-item",{pointer:!i.processing})},o.a.createElement(x,{contentColor:c,contentFontColor:d},i.processing?o.a.createElement(o.a.Fragment,null,o.a.createElement(w,{src:Object(_.a)("images/processing.jpg"),alt:"Media not found"}),"video"===i.type&&o.a.createElement("span",{className:"processing-video-handler d-flex align-items-center justify-content-center"},o.a.createElement("i",{className:"fas fa-video"}))):i.isError?o.a.createElement(o.a.Fragment,null,o.a.createElement("input",{id:"category"===l?"cat-"+i._id:i._id,className:"form-check-input checkbox",checked:s&&s.includes(i._id),onChange:p,type:"checkbox",value:"category"===l?"cat-"+i._id:i._id}),o.a.createElement("label",{htmlFor:"category"===l?"cat-"+i._id:i._id,className:"d-flex justify-content-center align-items-center"}),o.a.createElement(w,{src:Object(_.a)("images/error.png"),alt:"Media not found"}),"video"===i.type&&o.a.createElement("span",{className:"processing-video-handler d-flex align-items-center justify-content-center"},o.a.createElement("i",{className:"fas fa-video"}))):o.a.createElement(o.a.Fragment,null,o.a.createElement("input",{id:"category"===l?"cat-"+i._id:i._id,className:"form-check-input checkbox",checked:s&&s.includes(i._id),onChange:p,type:"checkbox",value:"category"===l?"cat-"+i._id:i._id}),o.a.createElement("label",{htmlFor:"category"===l?"cat-"+i._id:i._id,className:"d-flex justify-content-center align-items-center"}),o.a.createElement("div",{className:"meta",onClick:()=>{a(!0)}},i.size&&r&&o.a.createElement("span",{className:"size"},(e=>{const t="photo"===i.type?1e3:1024,a=e/(t*t);if(a<1){return m(e/t)+" kB"}if(a>=1e3){return m(a/t)+" GB"}return m(a)+" MB"})(i.size)),"video"===i.type&&o.a.createElement("span",{className:"duration"},(e=>{let t=Math.floor(e/3600),a=Math.floor(e%3600/60),n=e%60;return t=String(t).padStart(2,"0"),a=String(a).padStart(2,"0"),n=String(n).padStart(2,"0"),("00"!==t?t+":":"")+a+":"+n})(i.video_duration)),i.createdAt&&o.a.createElement("span",{className:"date"},(e=>{let t=E()(e),a=t.format("MMM D"),n=E()();return t.isSame(n,"day")?a="Today":t.isSame(n.clone().subtract(1,"day"),"day")&&(a="Yesterday"),a})(i.createdAt))),"photo"===i.type?o.a.createElement(w,{src:i.small_thumb||i.path,alt:"Media not found"}):o.a.createElement(o.a.Fragment,null,o.a.createElement(w,{src:i.small_thumb||i.path,alt:"Media not found"}),o.a.createElement("span",{className:"video-handler d-flex align-items-center justify-content-center"},o.a.createElement("i",{className:"fas fa-play"}))))),t&&o.a.createElement(f.a,{url:i.path,handleClose:()=>{a(!1)},type:i.type,reqFrom:e.requestFrom,offsetX:"popup"===e.requestFrom&&document.getElementById("media-selection-popup").offsetLeft,offsetY:"popup"===e.requestFrom&&document.getElementById("media-selection-popup").offsetTop}))},N=a(51),S=a(164),C=a(53),T=a(48),O=a(152),P=a(46),I=a(30),A=a(3),M=a.n(A),j=a(75),F=a(25);const L=m.a.section`
    width: 100%;
    height: fit-content;
    border: dashed;
    border-width: 1px;
    border-radius: 5px;
    padding: 12px;
    border-color: ${e=>e.site_font_color};

    .plus-button {
        height: 150px;
        max-width: 150px;
    }

    .drop-zone-div {
        text-align: center;
        outline: transparent;
    }
`,D=m.a.div`
    width: 100%;
    margin-bottom: ${e=>!0===e.isUploading?"50px":"20px"};
    
    .positioning {
        display: none !important;
    }

    .form-group {
        position: absolute;
        bottom: -24px;
    }

    .progress-span {
        position: absolute;
        bottom: -44px;
        width: 88%;
    }

    .progress {
        border-radius: 5px;
    }

    .progress-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: ${e=>e.site_font_color};
    }

    @media(max-width: 767px) {
        .positioning {
            display: inline-block !important;
            width: 20%;
        }

        .progress {
            width: 82%;
            display: inline-block !important;
            border-radius: 5px;
        }

        .positioning i {
            color: ${e=>e.site_font_color};
            border-radius: 50%;
            width: 29px;
            height: 29px;
        }
    }
`,$=m.a.div`
    width: 100%;
    position: relative;
    cursor: pointer;
    border-radius: 5px;

    video{
        object-fit: cover;
        border-radius: 5px;
        height: 150px;
        width: 100%; 
        position: relative;
        background-color: black;
    }
    
    .progress {
        border-radius: 5px;
    }

    @media (max-width:767px) {
        max-width: 80%;
        display: inline-block;
        video{
            max-width: 100%;
        }

        .progress {
            width: 82%;
            display: inline-block !important;
            border-radius: 5px;
        }
    }
`,R=m.a.button`
    right: 5px;
    top: 0;
    position: absolute;
    border-radius: 82%;
    width: 24px;
    background-color: ${e=>e.content_color} !important;
    color: ${e=>e.content_font_color} !important;
    cursor: pointer;
    z-index: 5;

    :before {
        font-size: medium;
    }

    @media(max-width: 767px) {
        right: 13%;
    }
`,B=m.a.div`
    position: absolute;
    top: calc(45.5%);
    left: calc(47.5%);
    cursor: pointer;

    .video-button-span {
        font-size: 30px;
        color: rgb(211, 211, 211);
        background-color: black;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        position: relative;
        display: inline-block;
    }

    .play-icon {
        font-size: 30px;
        position: absolute;
        border-radius: 51px;
        left: -5px;
        top: -5px;
    }
`,U=m.a.div`
    background-image: ${e=>e.imageUrl};
    height: 150px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #000000;
    position: relative;
    cursor: pointer;
    border-radius: 5px;
    width: inherit;

    @media (max-width:767px) {
        max-width: 80%;
        display: inline-block !important;
        margin-bottom: 1%;
    }
`,G=m.a.label`
    background-color: ${e=>e.content_color};
    color: ${e=>e.content_font_color};
    height: 100%;
    border-radius: 5px;
    cursor: ${e=>!1===e.disabled?"pointer":"inherit"};
    display: flex;
    cursor: pointer;
    box-shadow: 0 5px 15px 0 ${e=>e.button_shadow_color}44, 0 4px 15px 0 ${e=>e.button_shadow_color}44 !important;

    input {
        display: none;
    }
`,z=m.a.div`
    width: ${e=>e.width};
    color: ${e=>e.fontColor} !important;
    background-color: ${e=>e.backgroundColor} !important;
`;var W=Object(r.b)(e=>({auth:e.auth,media:e.media}),{setSweetAlert:d.e,addMedia:s.c,incrementMediaCount:s.h,saveMediaData:s.k,updateMediaCountInCategory:s.n})(Object(h.g)((function(e){const{content_color:t,site_font_color:a,content_font_color:i,button_shadow_color:r,card_header_border_color:s}=e.auth.appSettings,{_id:l}=e.auth.user,{filter:d}=e.media,[m,p]=Object(n.useState)([]),[u,g]=Object(n.useState)(0),[h,b]=Object(n.useState)(!1),[y,E]=Object(n.useState)({}),[v,w]=Object(n.useState)(!1),[x,k]=Object(n.useState)(""),[N,S]=Object(n.useState)(""),C=Object(n.useRef)(null),A=async function(t,a,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const i=M.a.CancelToken.source(),r={onUploadProgress:t=>{let a=Math.round(100*t.loaded/t.total);window.addEventListener("offline",(function(){return i.cancel("Network error"),e.setSweetAlert({description:"Seems you are offline. Please check your internet connection and post again."})}));E({progress:a+"%",index:o,progressNumber:a})},cancelToken:i.token},s=M.a.create();delete s.defaults.headers.common.Authorization,s.defaults.headers["Content-Type"]="video"===t?"video/mp4":"image/jpg";let l=await s.put(a,n,r);return 200===l.status},W=async t=>{const a=e.media.category.find(t=>t._id===e.media.filter.activeCategory),{_id:n,slug:o}=a;"all media"!==o&&(t.category=n),t.categorySlug=o;!await e.saveMediaData(t)||d.type!==t.type&&"all"!==d.type||e.addMedia({_id:0,processing:!0,type:t.type}),e.updateMediaCountInCategory({slug:o,mediaType:t.type}),"all media"!==o&&e.updateMediaCountInCategory({slug:"all media",mediaType:t.type}),g(e=>++e),E({})};function H(e){const t=e.type;return t.startsWith("video/")?"video":t.startsWith("image/")?"image":null}const q=async()=>{try{for(let t=0;t<m.length;t++){let a=Object(F.a)(m[t].selectedFile.name);if([P.b].includes(a.toLocaleLowerCase()))return e.setSweetAlert({description:"Media format is not supported."});b(!0);const n=m[t].selectedFile,o="image"===H(n)?"photo":"video",i=await Object(j.a)(n.name,"media",o);if(""===i.presigned_url){b(!1);break}if(!0===await A(o,i.presigned_url,n,t)){const e={path:i.file_name,upload_by:l,type:o,processing:!0};W(e)}else e.setSweetAlert({description:"Error occured while uploading media"})}}catch(t){e.setSweetAlert({description:t.message?t.message:"Error occured while uploading media"}),b(!1)}},V=(e,t)=>{!0!==h&&(document.querySelector("body").style.overflow=!0===!v?"hidden":"visible",k(e),S(t),w(!v))},Y=e=>{C.current&&(C.current.value=null);const t=[...m],a=[...t.slice(0,e),...t.slice(e+1)];p(a)},K=t=>{for(let o=0;o<t.length;o++){if(!["video/mp4","video/quicktime","image/jpeg","image/jpeg","image/png"].includes(t[o].type))return e.setSweetAlert({description:"Media format is not supported."})}const a=[];for(let o=0;o<t.length;o++){const n=c.a.get(t[o],"size",-1);if(-1!==n&&n>P.a)e.setSweetAlert({description:`File ${t[o].name} size is too large.`});else{const e=t[o];if(e){const t=e.name,n=e.size,o=m;let i=-1;if(i=c.a.findIndex(o,(function(e){return e.selectedFile.name===t&&e.selectedFile.size===n&&e})),-1===i){let t={selectedFile:e,renderFile:URL.createObjectURL(e)};a.push(t)}}}}let n=[...m];n=n.concat(a),p(n)},J=e=>{const a=c.a.get(y,"progress",""),n=c.a.get(y,"index",""),r=c.a.get(y,"progressNumber","");return""!==a&&n===e?o.a.createElement("span",{className:"progress-span mt-1"},o.a.createElement("div",{className:"progress"},o.a.createElement(z,{className:"progress-bar progress-bar-striped progress-bar-animated",backgroundColor:t,fontColor:i,width:a,role:"progressbar"},a)),((e,t)=>{let a=0,n=0;const i=m[e].selectedFile;return a=(c.a.get(i,"size",0)/1024/1024).toFixed(2),n=(a*t/100).toFixed(2),o.a.createElement("div",{className:"progress-text"},"Uploading ",n," MB Of ",a," MB")})(n,r)):o.a.createElement(o.a.Fragment,null)},X=()=>{let e="button-gallery";return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"col-12 col-md-4 mt-3 mb-2 plus-button"},o.a.createElement(G,{htmlFor:e,content_color:t,fullWidth:!0,className:"align-items-center justify-content-center",content_font_color:i,disabled:h,button_shadow_color:r},o.a.createElement("input",{ref:C,accept:"image/png,image/jpg,image/jpeg,video/mp4,video/quicktime",id:e,onChange:e=>(e=>{const t=e.target.files;K(t)})(e),type:"file",disabled:h,multiple:!0}),o.a.createElement("i",{className:"fas fa-plus","aria-hidden":"true"}))))};return Object(n.useEffect)(()=>{m.length&&m.length===u&&(b(!1),g(0),p([]),e.setSweetAlert({description:"Media uploaded successfully"}),C.current.value=null)},[u]),o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"my-5 px-0 mt-lg-0 px-lg-5"},o.a.createElement(O.a,{multiple:!0,onDrop:e=>{K(e)},noDrag:h},e=>{let{getRootProps:n}=e;return o.a.createElement(L,{site_font_color:s},o.a.createElement("div",Object.assign({className:"drop-zone-div"},n()),o.a.createElement("div",{className:"row d-flex justify-content-center my-3"},(()=>{const e=m;return o.a.createElement(o.a.Fragment,null,e.map((e,n)=>{let r="",s=!1;return void 0===e.url?r="url("+e.renderFile+")":(r="url("+e.url+")",s=!0),o.a.createElement(D,{isUploading:h,content_color:t,site_font_color:a,key:n,className:"align-items-center col-12 col-md-4 d-flex justify-content-center mt-3"},["video/quicktime","video/mp4","video"].includes(!0===s?e.content_type:e.selectedFile.type)?o.a.createElement(o.a.Fragment,null,!h&&o.a.createElement(R,{className:"align-items-center close d-flex justify-content-center mr-4 mt-2",content_color:t,content_font_color:i,onClick:e=>{e.preventDefault(),Y(n)}}),o.a.createElement($,{onClick:()=>{V(!0===s?e.url:e.renderFile,"video")}},T.isIOS?o.a.createElement("video",{src:!0===s?e.url:e.renderFile,poster:Object(_.a)("images/no-preview-video.png"),id:"uploaded-video"}):o.a.createElement("video",{src:!0===s?e.url:e.renderFile,id:"uploaded-video"}),o.a.createElement(B,null,o.a.createElement("span",{className:"video-button-span"},o.a.createElement("i",{className:"fas fa-play-circle play-icon"})))),h&&J(n)):o.a.createElement(o.a.Fragment,null,!h&&o.a.createElement(R,{className:"align-items-center close d-flex justify-content-center mr-3 mt-2",content_color:t,content_font_color:i,onClick:e=>{e.preventDefault(),Y(n)},disabled:h}),o.a.createElement(U,{imageUrl:r,onClick:()=>{V(!0===s?e.url:e.renderFile,"photo")}}),h&&J(n)))}))})(),X()),m.length>0&&o.a.createElement(I.a,{loading:h,classes:"mt-0",onClick:q},h?o.a.createElement(o.a.Fragment,null,"Uploading"):o.a.createElement(o.a.Fragment,null,"Upload Media"))))})),!0===v&&o.a.createElement(f.a,{url:x,handleClose:()=>{V("","")},type:N,showWatermark:!1}))})));const H=m.a.div`
    h3 {
        text-align: center;
    }

    .category {
        cursor: pointer;
        transition: all 0.13s ease;
        height: 70px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid ${e=>e.border_color} !important;
        border-top: 0px !important;

        h4 {
            font-size: 14px;
        }
    }

    .category.active {
        color: ${e=>e.content_font_color};
        background-color: ${e=>e.content_color};

        .fa-ellipsis-v {
            color: ${e=>e.content_font_color} !important;   
        }

        .small-dot {
            background-color: ${e=>e.content_font_color};
        }
    }

    .small-dot {
        position: relative;
        width: 5px;
        height: 5px;
        background-color: ${e=>e.site_font_color};
        border-radius: 50%;
        right: 6px;
        bottom: 2px;
    }

    .not-found {
        font-size: 16px;
        font-weight: 600;
    }

    .btn-assign {
        position: sticky !important;
        bottom: -14px;
        margin-bottom: -15px; 
        width: calc(100% + 30px);
        margin-left: -16px;
    }
`,q=m.a.div`
    inset: 0 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 18px;
`;var V=Object(r.b)(e=>({auth:e.auth,media:e.media}),{addCategoryInMedia:s.b})(Object(h.g)(e=>{const{card_header_border_color:t,content_color:a,content_font_color:i,site_font_color:r}=e.auth.appSettings,{category:s,filter:l}=e.media,[c,d]=Object(n.useState)(""),[m,p]=Object(n.useState)(""),[g,h]=Object(n.useState)(!1);Object(n.useEffect)(()=>{p(e.newCategoryId)},[e.newCategoryId]);const b=s.filter(e=>!["all media"].includes(e.slug.toLowerCase())&&e.name.toLowerCase().includes(c.trim().toLowerCase()));return o.a.createElement(H,{content_color:a,content_font_color:i,border_color:t,site_font_color:r,className:"container"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col col-12 col-lg-12"},o.a.createElement("div",{className:u()("row",{"ml-lg-3":e.isPopup})},o.a.createElement("div",{className:"col-12 d-flex justify-content-between align-items-center pb-2 px-0"},o.a.createElement("input",{className:"form-control mr-2",placeholder:"Search category",onChange:e=>{d(e.target.value)},disabled:g}),o.a.createElement(I.a,{style:{paddingTop:"4px",paddingBottom:"4px"},onClick:()=>{e.handleAddOrUpdateCategory("add_category"),e.setShowCategoryPopup(!1),e.setIsOpenCategory(!0),e.setIsMoveCategory(!0)},loading:g},o.a.createElement("i",{className:"fas fa-plus"}),"\xa0")),0===b.length?o.a.createElement("h5",{className:"text-center"},"No category added"):b.map(t=>!0!==t.is_deleted&&!["all media"].includes(t.slug)&&o.a.createElement("div",{className:u()("category col-12 p-0",{active:t._id===m,disabled:g}),key:t._id},o.a.createElement(q,{onClick:()=>{var e;e=t._id,p(m===e?"":e)},className:"w-100 h-100"},o.a.createElement("h4",{className:"m-0 fw-bold"},t.name),e.renderPhotoVideoCounts(t))))))),b.length>0&&o.a.createElement("div",{className:"modal-header btn-assign p-0 justify-content-center",style:{borderBottom:"none"}},o.a.createElement(I.a,{loading:""===m||g,onClick:async()=>{h(!0),e.setCategoryPopupLoading(!0);const t={mediaId:e.selectedIds,categoryId:m,activeCategoryId:l.activeCategory};await e.addCategoryInMedia(t),h(!1),e.setCategoryPopupLoading(!1),e.setShowCategoryPopup(!1),e.setSelectedIds([]),e.setNewCategoryId("")},type:"button"},g&&o.a.createElement("span",{className:"spinner-border spinner-border-sm mr-2"}),"Assign Media")))})),Y=a(229);const K=m.a.div`
    h3 {
        text-align: center;
    }

    .outline {
        outline: 1px solid ${e=>e.border_color} !important;
    }

    .category {
        cursor: pointer;
        transition: all 0.13s ease;
        height: 70px;
        display: flex;
        align-items: center;
        border-top: ${e=>e.borderTop?"1px solid "+e.border_color:"none"};
        border-bottom: ${e=>e.borderBottom?"1px solid "+e.border_color:"none"};

        h4 {
            font-size: 14px;
        }
    }

    .category.active {
        color: ${e=>e.content_font_color};
        background-color: ${e=>e.content_color};

        .fa-ellipsis-v {
            color: ${e=>e.content_font_color} !important;   
        }

        .small-dot {
            background-color: ${e=>e.content_font_color};
        }
    }

    .small-dot {
        position: relative;
        width: 5px;
        height: 5px;
        background-color: ${e=>e.site_font_color};
        border-radius: 50%;
        right: 6px;
        bottom: 2px;
    }

    .not-found {
        font-size: 16px;
        font-weight: 600;
    }

    .small-dot {
        position: relative;
        width: 5px;
        height: 5px;
        background-color: ${e=>e.site_font_color};
        border-radius: 50%;
        right: 6px;
        bottom: 2px;
    }

    .category.active {
        .small-dot {
            background-color: ${e=>e.content_font_color};
        }
    }

    .category.active {
        .fa-ellipsis-v {
            color: ${e=>e.content_font_color} !important;   
        }
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 2 columns for small screens and up */
        gap: 1rem; /* Adjust as needed */
    }

    .grid-item.pointer {
        cursor: pointer;
    }

    .react-select__option--is-selected {
        .small-dot {
            background-color: ${e=>e.content_font_color} !important;
        }
    }

    @media (max-width: 576px) {
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;

        .grid-container {
            gap: 0.5rem;
        }
    }

    @media (min-width: 992px) {
        .grid-container {
            grid-template-columns: repeat(4, 1fr); /* 4 columns for large screens and up */
        }
    }

    @media (min-width: 1280px) {
        .grid-container {
            grid-template-columns: repeat(5, 1fr); /* 5 columns for extra large screens */
        }
    }
`,J=m.a.div`
    width: 100%;
    padding-left: 0px !important;
    padding-right: 0px !important;
    .main-tabs {
        display: flex !important;
        justify-content: center;
    }
    .main-tabs button.btn.btn-primary {
        background-color: ${e=>e.content_color} !important;
        color: ${e=>e.content_font_color};
        border-color: transparent !important;
    }
    .main-tabs button.btn.btn-outline-primary {
        color: ${e=>e.content_color} !important;
        background-color: ${e=>e.content_font_color} !important;
        border-color: transparent !important;
        padding: 5px 12px;
    }

    .main-tabs button {
        outline: 1px solid ${e=>e.content_color};
    }
    .main-tabs button.btn.btn-primary {
        box-shadow: 0 2px 5px 0 ${e=>e.button_shadow_color}, 0 2px 10px 0 ${e=>e.button_shadow_color};
        border-color: transparent !important;
    }

    button.btn.mx-0 {
        width: 20%;
    }

    @media(max-width: 991px) {
        .btn-group.main-tabs {
            width: -webkit-fill-available;
        }

        .main-tabs button.btn {
            width: 30%;
        }
    }

    @media(max-width: 767px) {
        button.btn.mx-0 {
            width: 40%;
        }

        .main-tabs {
            flex-direction: column;
        }
        .main-tabs button.btn {
            width: 100%;
        }
    }
`,X=m.a.button`
    border-color: ${e=>e.btnBorderColor} !important;
    color: ${e=>e.btnColor} !important;
    box-shadow: none;
    margin-right: 20px;
    padding-x: 50px;
`,Q=m.a.span`
    position: absolute;
    right: -6px;
    top: 10px;
`,Z=m.a.button`
    box-shadow: none;
    border-radius: 20px !important;
    color: ${e=>e.site_font_color};
    &:hover, &:focus {
        box-shadow: none !important;
        border-radius: 20px;
        color: ${e=>e.site_font_color};
    }
`,ee=m.a.div`
    cursor: pointer;
    &:hover, &:active, &:focus {
        color: #16181b !important;
    }
`,te=m.a.div`
    right: 9px;
    left: -10px !important;
    top: 35px !important;
    z-index: 12 !important;
`,ae=m.a.div`
    inset: 0 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 18px;
`,ne=m.a.div`
    pointer-events: ${e=>e.disableDiv?"none":""};
`;var oe=Object(r.b)(e=>({auth:e.auth,promotion:e.promotion,media:e.media}),{updateSelectedCategory:s.o})(Object(h.g)(e=>{const{handleSubmit:t}=Object(g.b)(),[a,i]=Object(n.useState)(""),[r,s]=Object(n.useState)(window.innerWidth),[l,d]=Object(n.useState)(-1),[m,p]=Object(n.useState)(!1),[h,f]=Object(n.useState)(!1),[_,y]=Object(n.useState)(!1),[E,v]=Object(n.useState)(""),{content_color:w,content_font_color:x,card_header_border_color:T,site_font_color:O,button_shadow_color:P}=e.auth.appSettings,{media:A,category:M}=e.media,j=c.a.isEmpty(e.isError),F=M.filter(e=>e.name.toLowerCase().includes(a.trim().toLowerCase()));Object(n.useEffect)(()=>(window.addEventListener("resize",()=>{s(window.innerWidth),window.innerWidth>992&&y(!1)}),window.innerWidth>992&&e.isPopup&&e.setShowSelectButton(!0),()=>{window.removeEventListener("resize",()=>s(window.innerWidth))}),[]);const L=t=>{y(t),e.isPopup&&e.setShowSelectButton(t)};return Object(n.useEffect)(()=>{window.innerWidth>=992&&y(!1)},[]),o.a.createElement(b.a,null,o.a.createElement("div",{className:"container"},e.isPopup||_?o.a.createElement(o.a.Fragment,null):o.a.createElement(Y.a,{classes:"row m-1 mt-5",link:"/admin/reporting",text:"Reporting"}),o.a.createElement(K,{content_color:w,loading:e.isLoading,content_font_color:x,border_color:T,site_font_color:O,id:"media-page",isPopup:e.isPopup,className:"my-3 my-lg-5",borderTop:r>=992,borderBottom:r<992},r<992&&_?o.a.createElement("div",{className:"d-flex align-items-center p-0 m-0 mt-5"},o.a.createElement("i",{className:"fa fa-chevron-left",onClick:()=>L(!1),"aria-hidden":"true"}),o.a.createElement("h4",{className:"mt-0 mb-0 p-0 ml-3",onClick:()=>L(!1)},E)):!e.isPopup&&o.a.createElement("h3",null,"Content Manager"),o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col col-12 col-lg-3 p-0"},o.a.createElement("div",{className:!1===_&&r>=992&&u()("row outline",{"ml-lg-3":e.isPopup})},!1===_&&o.a.createElement("div",{className:r<992?"d-flex px-0":"d-flex p-3"},o.a.createElement("input",{className:"form-control m-0",onChange:e=>{i(e.target.value)},placeholder:"Search category"}),r<992&&o.a.createElement(I.a,{style:{paddingTop:"4px",paddingBottom:"4px"},loading:e.isLoading,classes:"m-0 ml-3",onClick:()=>e.handleAddOrUpdateCategory("add_category")},o.a.createElement("i",{className:"fas fa-plus"}))),r>=992&&o.a.createElement("div",{className:"px-3 pb-3 m-0"},o.a.createElement(I.a,{style:{paddingTop:"4px",paddingBottom:"4px"},loading:e.isLoading,classes:"float-right m-0",onClick:()=>e.handleAddOrUpdateCategory("add_category")},o.a.createElement("i",{className:"fas fa-plus"}),"\xa0Add Category")),e.isCategoryLoading?o.a.createElement("div",{className:"d-flex justify-content-center align-items-center my-5 pb-5"},o.a.createElement(C.a,{loading:e.isLoading,size:10})):M.length>0&&r<992?!1===_&&o.a.createElement("div",{className:"pb-5",style:{zIndex:100}},F.map(t=>!0!==t.is_deleted&&o.a.createElement("div",{className:u()("category col-12 p-0"),key:t._id},o.a.createElement(ae,{onClick:()=>{L(!0),e.updateSelectedCategory(t._id),e.media.filter.activeCategory!==t._id&&e.getAllMediaByType(e.activeTab,t._id),p(!1),v(t.name)},className:"w-100 h-100"},o.a.createElement("h4",{className:"m-0 fw-bold"},t.name),e.renderPhotoVideoCounts(t,e.isPopup))))):F.map((t,a)=>!0!==t.is_deleted&&o.a.createElement("div",{className:u()("category col-12 p-0",{active:t._id===e.media.filter.activeCategory,disabled:e.isLoading}),key:t._id},o.a.createElement(ae,{onClick:()=>{e.updateSelectedCategory(t._id),e.media.filter.activeCategory!==t._id&&e.getAllMediaByType(e.activeTab,t._id),p(!1)},className:"w-100 h-100"},o.a.createElement("h4",{className:"m-0 fw-bold"},t.name),e.renderPhotoVideoCounts(t,e.isPopup)),"All Media"!==t.name&&"Preview"!==t.name&&o.a.createElement(Q,{className:"dropdown-action"},o.a.createElement(Z,{className:"btn",onClick:()=>{(e=>{p(!0),d(e),!0===m&&l===e&&p(!1)})(a),e.updateSelectedCategory(t._id),e.media.filter.activeCategory!==t._id&&e.getAllMediaByType(e.activeTab,t._id)},site_font_color:O},o.a.createElement("i",{className:"fas fa-ellipsis-v"})),m&&a===l&&o.a.createElement(te,{className:"dropdown-menu show","aria-label":a},o.a.createElement(ee,{className:"dropdown-item",onClick:()=>{e.handleAddOrUpdateCategory("update_category",t._id,t.name),p(!1)}},"Edit"),o.a.createElement(ee,{className:"dropdown-item",onClick:()=>{e.handleDeleteCategory(t._id,t.name),p(!1)}},"Delete"))))))),_&&r<992?o.a.createElement("div",{className:"col col-12 col-lg-9"},o.a.createElement("div",{className:"row"},!e.isPopup&&o.a.createElement(W,null),o.a.createElement(J,{className:"col-12 pb-5",content_color:w,content_font_color:x,button_shadow_color:P},o.a.createElement("div",{className:u()("btn-group main-tabs d-flex flex-row",{"mt-5 mt-lg-0":e.isPopup})},o.a.createElement("button",{type:"button",disabled:e.isLoading||e.isMediaLoadingOnScroll,onClick:()=>{e.handleChangeType("all"),p(!1)},className:u()("btn mx-0 mt-0",{"btn-primary":"all"===e.activeTab,"btn-outline-primary":"all"!==e.activeTab})},"All"),o.a.createElement("button",{type:"button",disabled:e.isLoading||e.isMediaLoadingOnScroll,onClick:()=>{e.handleChangeType("photo"),p(!1)},className:u()("btn mx-0 mt-0",{"btn-primary":"photo"===e.activeTab,"btn-outline-primary":"photo"!==e.activeTab})},"Images"),o.a.createElement("button",{type:"button",disabled:e.isLoading||e.isMediaLoadingOnScroll,onClick:()=>{e.handleChangeType("video"),p(!1)},className:u()("btn mx-0 mt-0",{"btn-primary":"video"===e.activeTab,"btn-outline-primary":"video"!==e.activeTab})},"Videos")),o.a.createElement("div",{className:"d-flex justify-content-end",style:{minHeight:"30px",marginTop:"15px",marginBottom:"-6px"}},e.selectedIds.length>0&&j&&o.a.createElement(ne,{onClick:()=>e.setShowCategoryPopup(!0),style:{cursor:"pointer",alignContent:"center"},disableDiv:e.isLoading||e.isMediaLoadingOnScroll},o.a.createElement("i",{className:"fas fa-folder-plus",style:{fontSize:"24px",color:O,paddingRight:"25px"}})),e.selectedIds.length>0&&o.a.createElement(ne,{onClick:()=>{e.deleteMedia()},style:{cursor:"pointer",alignContent:"center"},disableDiv:e.isLoading||e.isMediaLoadingOnScroll},o.a.createElement("i",{className:"fas fa-trash",style:{fontSize:"24px",color:O,paddingRight:"25px"}})),o.a.createElement(ne,{onClick:()=>{e.getAllMediaByType(e.activeTab,e.media.filter.activeCategory,!0),e.setSelectedIds([])},style:{cursor:"pointer",alignContent:"center"},disableDiv:e.isLoading||e.isMediaLoadingOnScroll},o.a.createElement("i",{className:"fas fa-redo-alt",style:{fontSize:"24px",color:O}})))),e.isLoading?o.a.createElement("div",{className:"d-flex justify-content-center align-items-center my-5 pb-5"},o.a.createElement(C.a,{loading:e.isLoading,size:10})):o.a.createElement(o.a.Fragment,null,0===A.length&&_?o.a.createElement("h4",{className:"w-100 d-flex justify-content-center align-items-center"},"No Media Available"):o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"grid-container p-0"},A.map(t=>o.a.createElement(k,{isSuperAdmin:e.auth.isSuperAdmin,key:t._id,media:t,mediaList:e.mediaList,requestFrom:e.isPopup?"popup":"content-manager",setMediaList:t=>e.isPopup?e.onSelection(t):null,selectedMedia:e.isPopup?e.prevSelectedMedia:e.selectedIds}))),o.a.createElement("div",{className:"d-flex justify-content-center align-items-center mt-3"},o.a.createElement(C.a,{loading:e.isMediaLoadingOnScroll,size:10})))))):o.a.createElement("div",{className:"col col-12 col-lg-9"},o.a.createElement("div",{className:"row"},r>=992&&o.a.createElement(o.a.Fragment,null,!e.isPopup&&o.a.createElement(W,null),o.a.createElement(J,{className:"col-12 pb-5",content_color:w,content_font_color:x,button_shadow_color:P},o.a.createElement("div",{className:u()("btn-group main-tabs",{"mt-5 mt-lg-0":e.isPopup})},o.a.createElement("button",{type:"button",disabled:e.isLoading||e.isMediaLoadingOnScroll,onClick:()=>{e.handleChangeType("all"),p(!1)},className:u()("btn mx-0 mt-0",{"btn-primary":"all"===e.activeTab,"btn-outline-primary":"all"!==e.activeTab})},"All"),o.a.createElement("button",{type:"button",disabled:e.isLoading||e.isMediaLoadingOnScroll,onClick:()=>{e.handleChangeType("photo"),p(!1)},className:u()("btn mx-0 mt-0",{"btn-primary":"photo"===e.activeTab,"btn-outline-primary":"photo"!==e.activeTab})},"Images"),o.a.createElement("button",{type:"button",disabled:e.isLoading||e.isMediaLoadingOnScroll,onClick:()=>{e.handleChangeType("video"),p(!1)},className:u()("btn mx-0 mt-0",{"btn-primary":"video"===e.activeTab,"btn-outline-primary":"video"!==e.activeTab})},"Videos")),o.a.createElement("div",{className:"d-flex justify-content-end pr-5 mt-3",style:{minHeight:"30px"}},e.selectedIds.length>0&&j&&o.a.createElement(ne,{onClick:()=>e.setShowCategoryPopup(!0),style:{cursor:"pointer",alignContent:"center"},disableDiv:e.isLoading||e.isMediaLoadingOnScroll},o.a.createElement("i",{className:"fas fa-folder-plus",style:{fontSize:"24px",color:O,paddingRight:"25px"}})),e.selectedIds.length>0&&o.a.createElement(ne,{onClick:()=>{e.deleteMedia()},style:{cursor:"pointer",alignContent:"center"},disableDiv:e.isLoading||e.isMediaLoadingOnScroll},o.a.createElement("i",{className:"fas fa-trash",style:{fontSize:"24px",color:O,paddingRight:"25px"}})),o.a.createElement(ne,{onClick:()=>{e.getAllMediaByType(e.activeTab,e.media.filter.activeCategory,!0),e.setSelectedIds([])},style:{cursor:"pointer",alignContent:"center"},disableDiv:e.isLoading||e.isMediaLoadingOnScroll},o.a.createElement("i",{className:"fas fa-redo-alt",style:{fontSize:"24px",color:O}}))))),e.isLoading&&r>992?o.a.createElement("div",{className:"d-flex justify-content-center align-items-center my-5 pb-5"},o.a.createElement(C.a,{loading:e.isLoading,size:10})):o.a.createElement(o.a.Fragment,null,0===A.length&&r>=992?o.a.createElement("h4",{className:"w-100 d-flex justify-content-center align-items-center"},"No Media Available"):r>=992&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"grid-container px-5"},A.map(t=>o.a.createElement(k,{isSuperAdmin:e.auth.isSuperAdmin,key:t._id,media:t,mediaList:e.mediaList,requestFrom:e.isPopup?"popup":"content-manager",setMediaList:t=>e.isPopup?e.onSelection(t):null,selectedMedia:e.isPopup?e.prevSelectedMedia:e.selectedIds}))),o.a.createElement("div",{className:"d-flex justify-content-center align-items-center mt-3"},o.a.createElement(C.a,{loading:e.isMediaLoadingOnScroll,size:10}))))))),e.showAddCategoryPopup&&o.a.createElement(N.a,{classes:"modal-md",title:"add_category"===e.addOrUpdateCategory?"Add Category":"Update Category",showCloseBtn:!1,modalBodyMaxHeight:"30vh",requestFrom:"category"},o.a.createElement("form",{autoComplete:"off",onSubmit:t(e.handleCategory)},o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"form-group col-12 mb-0"},o.a.createElement(S.a,{label:"Enter category name",type:"text",name:"category",id:"category",onChange:t=>{e.setCategoryName(t.target.value),e.setErrorText("")},value:e.categoryName,maxLength:30,error:e.categoryName.length>30?"Category name cannot be more than 30 characters":e.errorText,disabled:e.isDisableCategory}))),o.a.createElement("div",{className:"d-flex flex-row-reverse"},o.a.createElement(I.a,{type:"submit",classes:"m-0 px-5",onClick:e.handleCategory,loading:e.isDisableCategory||e.categoryName&&e.categoryName.length>30},e.isDisableCategory&&o.a.createElement("span",{className:"spinner-border spinner-border-sm mr-2"}),"add_category"===e.addOrUpdateCategory?"Add":"Update"),o.a.createElement(X,{className:"btn",type:"button",btnColor:O,btnBorderColor:w,onClick:e.hideCategoryPopup,disabled:e.isDisableCategory},"Cancel")))),e.showCategoryPopup&&o.a.createElement(N.a,{classes:"modal-md",title:"Category",handleClose:()=>{e.setShowCategoryPopup(!1),e.setIsOpenCategory(!1),e.setNewCategoryId(""),e.setIsMoveCategory(!1)},modalBodyMaxHeight:"40vh",closeBtnFontSize:"initial",isLoading:h},o.a.createElement(V,{renderPhotoVideoCounts:e.renderPhotoVideoCounts,selectedIds:e.selectedIds,newCategoryId:e.newCategoryId,setNewCategoryId:()=>e.setNewCategoryId(""),setShowCategoryPopup:e.setShowCategoryPopup,handleAddOrUpdateCategory:()=>e.handleAddOrUpdateCategory("add_category"),setIsMoveCategory:t=>e.setIsMoveCategory(t),setSelectedIds:e.setSelectedIds,setIsOpenCategory:t=>e.setIsOpenCategory(t),activeCategoryId:e.activeCategory,setCategoryPopupLoading:f})))))})),ie=a(161);const re=m.a.div`
    font-size: 14px;
    opacity: .5;
    span {
        padding-right: 5px;
        line-height: 0;
    }
    i {
        padding-right: 5px;
    }
    .padding-right {
        padding-right: 10px;
    }
`;t.default=Object(r.b)(e=>({auth:e.auth,promotion:e.promotion,media:e.media}),{getAllMedia:s.f,addCategory:s.a,getAllCategory:s.e,updateCategory:s.l,setSweetAlert:d.e,setConfirmSweetAlert:d.d,setAlertLoader:d.c,removeConfirmSweetAlert:d.a,deleteCategory:s.d,updateFilter:s.m,addMedia:s.c,getMediaOnScroll:s.g,removeMedia:s.i,updateSelectedCategory:s.o})((function(e){const[t,a]=Object(n.useState)(e.isPopup?"all":e.media.filter.type),{category:r,currentPage:s,totalPages:l,media:d}=e.media,[m,p]=Object(n.useState)(!1),{getAllMedia:u,addCategory:g,getAllCategory:h,updateCategory:b,getMediaOnScroll:f}=e,[_,y]=Object(n.useState)(!0),[E,v]=Object(n.useState)(""),[w,x]=Object(n.useState)(!1),[k,N]=Object(n.useState)(""),[S,C]=Object(n.useState)(!1),[T,O]=Object(n.useState)("add_category"),[P,I]=Object(n.useState)(""),[A,M]=Object(n.useState)(""),[j,F]=Object(n.useState)(!1),[L,D]=Object(n.useState)(!1),[$,R]=Object(n.useState)(0),[B,U]=Object(n.useState)([]),[G,z]=Object(n.useState)(""),[W,H]=Object(n.useState)(0),[q,V]=Object(n.useState)(0),[Y,K]=Object(n.useState)(!1),[J,X]=Object(n.useState)(!1),[Q,Z]=Object(n.useState)(""),[ee,te]=Object(n.useState)(!1),[ae,ne]=Object(n.useState)([]),se=r&&r.length>0&&r.find(e=>"all media"===e.slug),le=e.media.filter.activeCategory&&!e.isPopup?e.media.filter.activeCategory:se?se._id:"",ce=a=>{if(a.preventDefault(),(!_||!L)&&l>s&&$===s-1){let a=0,n=0;if(e.isPopup){const e=document.getElementById("media-modal-body");a=e.scrollTop||e.scrollTop,n=e.scrollHeight-e.clientHeight}else a=document.body.scrollTop||document.documentElement.scrollTop,n=document.documentElement.scrollHeight-document.documentElement.clientHeight;a/n>.98&&(async()=>{R(s),D(!0),await f({type:t,page:s+1,getProcessedMedia:!!e.isPopup}),D(!1)})()}},de=async function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.updateFilter({type:t}),y(!0);const o={type:t,categoryId:a||e.media.filter.activeCategory,getProcessedMedia:!!e.isPopup,mediaLeftForProcessing:n};await u(o),y(!1)};Object(n.useEffect)(()=>{let a="";const{media:n,filter:o}=e.media,i=(()=>{let t=!1;return e.media.category&&e.media.category.length>0&&e.media.category.forEach(e=>{e.photo_count===e.processed_photo_count&&e.video_count===e.processed_video_count||(t=!0)}),t})(),r="all"!==e.media.filter.type,s=e.media.filter.activeCategory!==le;0===W&&e.isPopup&&s&&(a=le,e.updateSelectedCategory(le));const l=0===W&&(0===n.length||e.isPopup&&(r||s))||0!==W||i||o.stateHadBeenReset;0===W&&H(1),l?de(t,a,i):y(!1)},[t]),Object(n.useEffect)(()=>{const t=0===q&&0===e.media.category.length;0===q&&V(1),t&&(async()=>{x(!0),await h(),x(!1)})()},[]);const me=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(c.a.isEmpty(e))return N("Name is required"),!1;if(e.length>100)return N("Name cannot be more than 100 characters."),!1;if("add_category"===t||"update_category"===t&&a.trim().toLowerCase()!==e.toLowerCase()){if(-1!==r.filter(e=>!0!==e.is_deleted).findIndex(t=>t.name.toLowerCase()===e.toLowerCase()))return N("Name already exist. Please add another category."),!1}return!0};function pe(e){return e>=1e3?(e/1e3).toFixed(1)+"K":e}const ue=()=>{p(!1),v(""),N(""),!0===J&&K(!0)};Object(n.useEffect)(()=>{let t;return e.isPopup?(t=document.getElementById("media-modal-body"),t&&t.addEventListener("scroll",ce)):window.addEventListener("scroll",ce),()=>{t?t.removeEventListener("scroll",ce):window.removeEventListener("scroll",ce)}}),Object(n.useEffect)(()=>{R(s-1)},[s]);const ge=async()=>{switch(G){case"delete_media":1===await e.removeMedia({mediaIds:B})&&U([]);break;case"delete_category":(async()=>{C(!0),await e.deleteCategory({categoryId:P}),C(!1),F(!1);const a=e.media.category.find(e=>"all media"===e.slug);e.updateSelectedCategory(a?a._id:""),de(t,a._id)})()}},he={isPopup:e.isPopup||!1,showAddCategoryPopup:m,onSelection:e.onSelection,isLoading:_,handleCategory:e=>{"add_category"===T?(async e=>{e.preventDefault();const t=E.trim();if(!1===me(t,"add_category"))return;C(!0);const a=await g({name:t});!0===ee&&Z(a),C(!1),ue()})(e):(async e=>{e.preventDefault();const t=E.trim();if(!1===me(t,"update_category",A))return;C(!0);const a={name:t,id:P};await b(a),C(!1),ue()})(e)},addOrUpdateCategory:T,renderPhotoVideoCounts:(e,t)=>{const{photo_count:a,video_count:n,processed_photo_count:i,processed_video_count:r,slug:s}=e;let l=0,c=0;t?(l=i,c=r):(l=a||0,c=n||0);return 0===l&&0===c||void 0===l&&void 0===c?o.a.createElement(re,{className:"d-flex pt-2 align-items-baseline lh-1"},"Empty"):o.a.createElement(re,{className:"d-flex pt-2 align-items-baseline lh-1"},0!==l&&void 0!==l&&o.a.createElement(o.a.Fragment,null,o.a.createElement("i",{className:"fas fa-image"}),o.a.createElement("span",{className:"padding-right"},pe(l))),0!==l&&0!==c&&o.a.createElement("div",{className:"small-dot"}),0!==c&&void 0!==c&&o.a.createElement(o.a.Fragment,null,o.a.createElement("i",{className:"fas fa-video"}),o.a.createElement("span",null,pe(c))))},isDisableCategory:S,isMediaLoadingOnScroll:L,handleChangeType:e=>{a(e)},handleDeleteCategory:(t,a)=>{F(!0),I(t),e.setConfirmSweetAlert({description:`Are you sure you want to delete ${a} category?`}),z("delete_category")},handleAddOrUpdateCategory:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";O(e),p(!0),"update_category"===e&&(I(t),v(a),M(a))},deleteMedia:()=>{F(!0),e.setConfirmSweetAlert({description:"Are you sure you want to delete the selected media?"}),z("delete_media")},mediaList:e=>{const t=e.target.value;e.target.checked?(ne(e=>{const a=d.find(e=>e._id===t);return a&&a.isError?[...e,a._id]:e}),U(e=>[...e,t])):(U(e=>e.filter(e=>e!==t)),ne(e=>e.filter(e=>e!==t)))},activeTab:t,isCategoryLoading:w,hideCategoryPopup:ue,selectedIds:B,setActiveTab:a,categoryId:P,setCategoryName:v,setErrorText:N,categoryName:E,setSelectedIds:U,getAllMediaByType:de,errorText:k,setShowCategoryPopup:K,showCategoryPopup:Y,setIsOpenCategory:X,newCategoryId:Q,setNewCategoryId:Z,setIsMoveCategory:te,setShowSelectButton:e.setShowSelectButton,prevSelectedMedia:e.prevSelectedMedia,setIsError:ne,isError:ae};return o.a.createElement(o.a.Fragment,null,e.isPopup?o.a.createElement(oe,he):o.a.createElement(i.a,null,o.a.createElement(oe,he)),j&&o.a.createElement(ie.a,{onConfirm:()=>{e.setAlertLoader(!0),ge()},onCancel:()=>F(!1)}))}))},32:function(e,t,a){"use strict";a.d(t,"n",(function(){return l})),a.d(t,"k",(function(){return c})),a.d(t,"j",(function(){return d})),a.d(t,"e",(function(){return m})),a.d(t,"l",(function(){return p})),a.d(t,"m",(function(){return u})),a.d(t,"h",(function(){return g})),a.d(t,"i",(function(){return h})),a.d(t,"a",(function(){return b})),a.d(t,"b",(function(){return f})),a.d(t,"c",(function(){return _})),a.d(t,"d",(function(){return y})),a.d(t,"f",(function(){return E})),a.d(t,"g",(function(){return v}));var n=a(3),o=a.n(n),i=a(1),r=a(22);const s=Object(r.a)(),l=()=>e=>{e({type:i.pd})},c=()=>e=>{e({type:i.md})},d=()=>e=>{e({type:i.ld})},m=()=>e=>{e({type:i.ud})},p=()=>e=>{e({type:i.nd})},u=e=>t=>{t({type:i.od,payload:e})},g=()=>e=>{e({type:i.D})},h=e=>t=>{t({type:i.jd,payload:e})},b=e=>t=>{t({type:i.z,payload:e})},f=e=>t=>{t({type:i.A,payload:e})},_=e=>t=>{t({type:i.lb,payload:e})},y=e=>t=>{t({type:i.Gb,payload:e})},E=e=>async()=>{try{return void await o.a.post(s+"/api/services/send-device-info",e)}catch(t){return void console.log(t.message)}},v=e=>t=>{t({type:i.Tc,payload:e})}},33:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(8);const s=a(6).a.div`
    color: ${e=>e.siteFontColor} !important;

    .styled-link a, a.styled-link {
        color: ${e=>e.siteFontColor} !important;
        text-decoration: underline !important;
        cursor: pointer;
    }

    .breadcrumb-item.active.styled-link, .breadcrumb-item + .breadcrumb-item::before {
        color: ${e=>e.siteFontColor} !important;
    }
`;class l extends n.Component{render(){const{site_font_color:e,site_heading_font_color:t}=this.props.auth.appSettings;return o.a.createElement(s,{siteFontColor:e,siteHeadingColor:t},this.props.children)}}t.a=Object(r.b)(e=>({auth:e.auth}))(Object(i.g)(l))},338:function(e,t,a){e.exports=a(505)},34:function(e,t,a){"use strict";var n=a(134),o=a(292),i=a(1),r=a(291),s=a.n(r),l=a(2),c=a.n(l);const d={isAuthenticated:!1,user:{},loading:!1,accessToken:"",appSettings:{},bannerImages:[],isReady:!1,profilePhotoUploading:!1,isAdmin:!1,isModel:!1,isSuperAdmin:!1,isContentManager:!1,isSupport:!1,isBlocked:!1,isProfileReady:!1,isPhotoIdUploading:!1,isPhotoIdModalOpen:!1,theme3Settings:{},counts:{},isSubAdmin:!1,customMenuLinks:[],linkPageData:[],resetPasswordPageLoader:!0};const m={};const p={blog:[],isLoading:!0,totalPages:0,currentPage:0,isBlogMenu:!0,tagList:[],selectedTag:"",isPaginationEnabled:!1,firstPageBlogs:[]};var u=a(38),g=a.n(u);const h={loading:!0,admin:{},subscribers:[],rows:[],currentPageSubscribers:0,currentPageTrasnsactions:0,totalPages:0,totalRows:0,offset:0,limit:20,todaysEarning:0,currentMonthEarnings:0,totalEarnings:0,todaysModelEarning:0,currentMonthModelEarnings:0,totalModelEarnings:0,todaysPlatformEarning:0,currentMonthPlatformEarnings:0,totalPlatformEarnings:0,todaysCCBillEarning:0,currentMonthCBillEarnings:0,totalCCBillEarnings:0,todaysTotalEarnings:0,currentMonthTotalEarnings:0,totalLifetimeEarnings:0,isBlurLoading:!1,view:"all",isUserListLoading:!1,allUserRows:0,allTransactionRows:0,limitTransaction:0};var b=a(182),f=a.n(b);const _={products:[],isLoading:!1,totalPages:0,currentPage:0,product:{},isProductLoading:!1,orders:[],isOrderListLoading:!1,ordersCurrentPage:1,ordersTotalPages:1,itemsPerPage:10,totalRows:1,order:{},orderDetails:[]};const y={cart:[],shippingCharge:0,isLoading:!0};const E={files:[],previewFiles:[],uploadProgress:{progress:"",index:"",progressNumber:"",type:""},processingIndex:-1,processedIndex:[],isPreviewModeEnable:!1,secondaryGallery:{files:[],previewFiles:[],uploadProgress:{progress:"",index:"",progressNumber:"",type:""},isPreviewModeEnable:!1,processingIndex:-1,processedIndex:[]}};const v={isLoading:!1,isBlogPaymentLoading:!1};const w={isAdmin:!1,userInfo:{},messages:[],shouldLoadMessages:!1,userList:[],isLoading:!1,totalPages:0,currentPage:0,tipsList:[],totalTipsPages:0,currentTipsPage:0,userProfileInfo:{},sortBy:"",isMoreMessageLoading:!1,totalMessagesPage:0,currentMessagesPage:0,selectedUserId:"",selectedModelId:"",isLiveStreamAvailable:!1,sortBySubscribers:"",shouldLoadMoreMessages:!1,showChatTipPopup:!1};const x={isSideBarOpen:!1,isNewPaymentModalOpen:!1,isMiscellaneousPopUpOpen:!0,showNotificationPopup:!1,showPaymentModel:!1,paymentCascade:{},paymentRequest:{},isAnnouncementBannerOpen:!0,showDateAndTime:!1,isPromotionBannerOpen:!0,isResubscriptionBannerOpen:!0,isProgressiveWebAppPopupVisible:!1,progressiveWebAppPopupShowAgain:!0,isUniversalLoginDifferentPasswordPopupVisible:!1};const k={addresses:[],address:{},isAddressListLoading:!1};const N={isCopyToClipboardToastOpen:!1,toastType:"copy"};const S={numberOfLiveChatUser:0,chatTimeRemaining:null,liveChatUserId:null};const C={isSocketConnected:!1,isSocketInitialyConnected:!1};const T={isGroupLiveStreamStarted:!1,groupMessages:[]};const O={isSetPromotion:!1,subscriptionPromotion:!1,lockedContentPromotion:!1};const P={isCheckOffer:!1,isUserEligibleForOffer:!1,offer:{}};const I={showAlert:!1,description:"",onConfirmUrl:"",confirmDescription:"",showConfirmAlert:!1,isLoading:!1};const A={popup_data:null,help_list:{data:[],totalPages:0,currentPage:1,totalRows:0,limit:0},show_popup:!1,help_detail:null,block_api_call:!1,notification:{data:[],totalPages:0,currentPage:1,totalRows:0,limit:0},help_tags:[],notification_filter:"unread",help_tag_filter:[],unread_count:0,is_notification_filter_changed:!1};const M={setNotificationPrompt:!1,isOneSignalInitialized:!1};const j={popup_data:null,help_list:{data:[],totalPages:0,currentPage:1,totalRows:0,limit:0},show_popup:!1,help_detail:null,block_api_call:!1,notification:{data:[],totalPages:0,currentPage:1,totalRows:0,limit:0},help_tags:[],notification_filter:"unread",help_tag_filter:[],user_unread_count:0,is_notification_filter_changed:!1};const F={universalMergeWebsiteList:[],siteListOfMergeAccount:[],showUniversalLoginPopup:!1,showUniversalLoginForgotPasswordPopup:!1,email:"",showOldUserMergeAccountPopup:!1,siteListOfOldUserWebsiteList:[],differentPasswordSiteList:[],showDifferentPasswordSitePopup:!1,isOldUser:!1};const L={isLoading:!1,loginUserInfo:{}};const D={isLoading:!1,registerUserInfo:{}};const $={isPaymentProcessing:!1};const R={subscriptionEmailNotification:"",isSubscriptionEmailNotificationSettingsLoading:!0,isSubscriptionEmailNotificationButtonLoading:!1,isPaginationOnExclusiveContentEnabled:!1,isPaginationOnExclusiveContentSettingLoading:!0,isPaginationOnExclusiveContentButtonLoading:!1,isRedisCacheSettingLoading:!0,isRedisCacheButtonLoading:!1,isRedisCacheEnabled:!1};const B={isPageDataLoading:!1,isPageDataSaving:!1};const U={isLoading:!1,couponCodeDetails:{},couponCode:"",couponStatus:"notChecked",couponList:[],couponReportPagination:{currentPage:1,totalPages:0,totalRows:0,limit:0}};const G={media:[],processedMedia:{media:[],currentPage:1,totalPages:1},filter:{type:"all",activeCategory:"",selectedCategory:{},stateHadBeenReset:!1},category:[],totalPages:1,currentPage:1,allMedia:[]};var z=Object(n.b)({auth:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;const a=e.user,n=e.appSettings,o=c.a.get(t.payload,"role",!1),r=!s()(t.payload),l="content_manager"===o,m="model"===o,p="admin"===o,u="sub_admin"===o,g="support"===o,h=c.a.get(t.payload,"isAdmin",!1),b=e.counts;let f,_=[];const y=e.counts;switch(t.type){case i.lc:return{...e,isAuthenticated:r,user:t.payload,profilePhotoUploading:!1,isAdmin:h,isModel:m,isContentManager:l,isSuperAdmin:p,isSupport:g,isSubAdmin:u};case i.me:return{...e,loading:!0};case i.rb:return document.title=t.payload.appSettings.model_name,t.payload.appSettings.theme_2_banner_images_url&&(_=t.payload.appSettings.theme_2_banner_images_url.split(",")),{...e,isReady:!0,isBlocked:t.payload.blocked,appSettings:t.payload.appSettings,bannerImages:_};case i.ub:return{...e,theme3Settings:t.payload.data};case i.Fb:return{...e,profilePhotoUploading:!0};case i.Db:return{...e,isPhotoIdUploading:!0};case i.Cb:return{...e,isPhotoIdUploading:!1};case i.zb:return{...e,isPhotoIdModalOpen:!0};case i.y:return{...e,isPhotoIdModalOpen:!1};case i.yc:return{...e,isProfileReady:!0};case i.Uc:return{...e,counts:t.payload};case i.n:return a.payPerMessageCredit=a.payPerMessageCredit+1,{...e,user:a};case i.Ob:return a.payPerMessageCredit=a.payPerMessageCredit>0?a.payPerMessageCredit-1:0,{...e,user:a};case i.fe:return void 0!==a.shouldPresentEmailOptIn&&(a.shouldPresentEmailOptIn=!1,a.emailOptInStatus="no_thanks",a.emailEventStatus="no_thanks",a.chat_email_notifications=!1,a.ChatEmailNotifications=!1),{...e,user:a};case i.ge:return a.emailOptInStatus="link_sent",{...e,user:a};case i.je:return a.ccbillSubscriptionStatus="2",a.payment.membership=!0,a.isRebillFailed=!1,{...e,user:a};case i.S:return a.showMigrationPopup=!1,{...e,user:a};case i.c:return{...e,customMenuLinks:t.payload};case i.Zc:return a.ccbillSubscriptionStatus="0",a.payment.membership=!1,{...e,user:a};case i.he:return a.isRebillFailed=!1,{...e,user:a};case i.vc:return n.influencer_help_enabled=t.payload.influencer_help_enabled,{...e,appSettings:n};case i.zc:return n.enable_public_post=t.payload.enable_public_post,{...e,appSettings:n};case i.uc:return n.is_feed_comment_enabled=t.payload.is_feed_comment_enabled,n.is_feed_like_enabled=t.payload.is_feed_like_enabled,n.comment_visibility=t.payload.comment_visibility,n.like_visibility=t.payload.comment_visibility,{...e,appSettings:n};case i.mc:return a.default_payment_method=t.payload.payment_method,{...e,user:a};case i.ad:return a.wallet_amount=t.payload,{...e,user:a};case i.Gd:return n.feed_tags_enable=t.payload.feed_tags_enable,n.feed_tag_filter_button_text=t.payload.feed_tag_filter_button_text,{...e,appSettings:n};case i.wb:return a.logout_user_loader=t.payload,{...e,user:a};case i.Ub:return a.is_notification_enable=!1,{...e,user:a};case i.zd:return n.is_enable_mute_unmute_mass_message=t.payload.is_enable_mute_unmute_mass_message,n.is_enable_user_block_access=t.payload.is_enable_user_block_access,n.is_enable_sort_by_subscription_expire=t.payload.is_enable_sort_by_subscription_expire,n.is_enable_mark_as_unread=t.payload.is_enable_mark_as_unread,{...e,appSettings:n};case i.de:return n.is_enable_user_list=t.payload.is_enable_user_list,{...e,appSettings:n};case i.Oc:return n.show_media_count_in_exclusive_content=t.payload,{...e,appSettings:n};case i.oc:return n.feed_tags=t.payload,{...e,appSettings:n};case i.Wb:return f=b.userUnreadMessage=t.payload,{...e,counts:f};case i.ie:return a.payment_gateway=t.payload,{...e,user:a};case i.Md:return{...e,linkPageData:t.payload};case i.Xd:return y.userUnreadMessage+=t.payload,{...e,counts:y};case i.Y:return n.is_universal_login_enabled=t.payload,{...e,appSettings:n};case i.Zd:return a.emailLog=t.payload.emailLog,a.email=t.payload.newEmail,{...e,user:a};case i.Kc:return{...e,resetPasswordPageLoader:t.payload};case i.wc:return{...e,appSettings:{...e.appSettings,is_pagination_on_exclusive_content_enabled:t.payload}};case i.Wd:return{...e,appSettings:{...e.appSettings,tips_page_send_tip_button_text:t.payload.tips_page_send_tip_button_text,text_tips_banner:t.payload.text_tips_banner,tips_page_header_text:t.payload.tips_page_header_text,tip_amounts:t.payload.tip_amounts,tips_button_border_color_and_size:t.payload.tips_button_border_color_and_size}};case i.Ud:return{...e,appSettings:{...e.appSettings,...t.payload}};case i.Vd:const{key:o,value:s}=t.payload,c=s.split("/").pop(),d=e.appSettings[t.payload.key].split("/");d.pop(),d.push(c);const E=d.join("/"),v={};return v[o]=E,{...e,appSettings:{...e.appSettings,...v}};case i.vd:return n[t.payload.key]=t.payload.value,{...e,appSettings:n};default:return e}},blog:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=arguments.length>1?arguments[1]:void 0,a=[],n=t.payload,o=[],r=[...e.blog],s=!1;switch(t.type){case i.L:return a=1===t.payload.currentPage||t.payload.isPaginationEnabled?t.payload.blogs:e.blog.concat(t.payload.blogs),s=1===t.payload.currentPage,{...e,blog:a,isLoading:!1,totalPages:0===t.payload.totalPages?1:t.payload.totalPages,currentPage:parseInt(t.payload.currentPage),isPaginationEnabled:t.payload.isPaginationEnabled,firstPageBlogs:s?a:e.firstPageBlogs};case i.k:return""!==e.selectedTag?c.a.isEmpty(t.payload.feed_tags)||-1===Object.values(t.payload.feed_tags[0]).indexOf(e.selectedTag)||e.isPaginationEnabled&&e.currentPage>1||a.push(t.payload):e.isPaginationEnabled&&e.currentPage>1||a.push(t.payload),e.blog.forEach(e=>{a.push(e)}),{...e,blog:a,isLoading:!1};case i.wd:for(let t=0;t<e.blog.length;t++){let a=e.blog[t];a._id===n._id?(a=n,o.push(a)):o.push(a)}return{...e,blog:o,isLoading:!1};case i.Z:return{...e,isLoading:t.payload};case i.Rb:return{...e,currentPage:t.payload};case i.dc:for(let t=0;t<e.blog.length;t++){let a=e.blog[t];a._id===n&&(a.processing=!0,a.isError=!1),o.push(a)}return{...e,blog:o};case i.Ed:for(let e=0;e<r.length;e++)r[e]._id===t.payload.id&&(r[e].user_feed_like=t.payload.is_like,r[e].total_likes=t.payload.total_likes);return{...e,blog:r};case i.nc:const l=t.payload,d=r.findIndex(e=>e._id===t.payload._id);return r[d].feed_tags=l.feed_tags,{...e,blog:r};case i.Zb:return{...e,selectedTag:t.payload};case i.Fd:{let a=[];return t.payload.length>0&&(a=t.payload.map(e=>({value:e._id,label:e.name}))),{...e,tagList:a}}case i.Nc:{const a=t.payload,n=r.findIndex(e=>e._id===a._id);return"modern"===a.format?(a.media[0].thumbnail_url=a.media[0].thumbnail_url?a.media[0].thumbnail_url:a.media[0].path,r[n].media=r[n].media.map((e,t)=>t===a.mediaIndex?a.media[0]:e)):r[n].media=a.media,void 0!==r[n].url&&(r[n].url=a.url),{...e,blog:r}}case i.Ib:const{id:m}=t.payload,p=e.blog.filter((function(e){return e._id.toString()!==m.toString()}));return{...e,blog:p};case i.Yb:return{...e,blog:e.firstPageBlogs,currentPage:0};default:return e}},product:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.P:return{...e,products:t.payload.products,totalPages:t.payload.totalPages,currentPage:parseInt(t.payload.currentPage),isLoading:!1};case i.O:return{...e,orders:t.payload.orders,ordersTotalPages:parseInt(t.payload.totalPages,10),ordersCurrentPage:parseInt(t.payload.currentPage,10),itemsPerPage:parseInt(t.payload.limit,10),totalRows:parseInt(t.payload.totalRows,10),isOrderListLoading:!1};case i.Q:return{...e,order:t.payload.order,orderDetails:t.payload.orderDetails};case i.m:return{...e,products:f()(e.products,{$push:[t.payload]})};case i.Hc:return{...e,product:t.payload,isProductLoading:!1};case i.jb:return{...e,isLoading:!0};case i.kb:return{...e,isProductLoading:!0};case i.db:return{...e,isOrderListLoading:!0};default:return e}},errors:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.N:return t.payload;default:return e}},admin:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.K:return{...e,admin:t.payload};case i.R:return{...e,subscribers:t.payload,loading:!1};case i.bc:return{...e,subscribers:t.payload.rows,currentPageSubscribers:parseInt(t.payload.currentPage,10),totalPages:t.payload.totalPages,totalRows:t.payload.totalRows,offset:t.payload.offset,view:t.payload.view,isUserListLoading:!1,limit:t.payload.limit,allUserRows:t.payload.allRows};case i.cc:for(let e=0;e<t.payload.rows.length;e++){let a=t.payload.rows[e];a.ccbill_subscription_status="1"===a.ccbill_subscription_status||"2"===a.ccbill_subscription_status?a.ccbill_subscription_status:"0",a.total_amount_spent=a.total_amount_spent?"$"+a.total_amount_spent.toFixed(2):"$0.00",a.total_void_amount=a.total_void_amount?"$"+a.total_void_amount.toFixed(2):"$0.00",a.total_refund_amount=a.total_refund_amount?"$"+a.total_refund_amount.toFixed(2):"$0.00",a.total_chargeback_amount=a.total_chargeback_amount?"$"+a.total_chargeback_amount.toFixed(2):"$0.00",a.total_chargeback_count=a.total_chargeback_count?"$"+(25*a.total_chargeback_count).toFixed(2):"$0.00",a.date=g()(a.date).format("MMMM Do YYYY, hh:mm:ss a"),a.expiration_date&&null!==a.expiration_date?a.expiration_date=g()(a.expiration_date).format("MMMM Do YYYY, hh:mm:ss a"):a.next_billing_date&&null!==a.next_billing_date&&(a.expiration_date=g()(a.next_billing_date).format("MMMM Do YYYY, hh:mm:ss a")),!0!==a.is_photo_id_accepted&&!1!==a.is_photo_id_accepted||(a.is_photo_id_accepted=a.is_photo_id_accepted.toString())}return{...e,rows:t.payload.rows,currentPageTrasnsactions:parseInt(t.payload.currentPage,10),totalPages:t.payload.totalPages,totalRows:t.payload.totalRows,offset:t.payload.offset,isUserListLoading:!1,limitTransaction:t.payload.limit,allTransactionRows:t.payload.allRows};case i.Sc:return{...e,todaysEarning:t.payload.todaysEarning[0].sum,currentMonthEarnings:t.payload.currentMonthEarnings[0].sum,totalEarnings:t.payload.totalEarnings[0].sum};case i.ac:return{...e,todaysModelEarning:t.payload.todaysModelEarnings[0].sum,currentMonthModelEarnings:t.payload.currentMonthModelEarnings[0].sum,totalModelEarnings:t.payload.totalModelEarnings[0].sum,todaysPlatformEarning:t.payload.todaysPlatformEarnings[0].sum,currentMonthPlatformEarnings:t.payload.currentMonthPlatformEarnings[0].sum,totalPlatformEarnings:t.payload.totalPlatformEarnings[0].sum,todaysCCBillEarning:t.payload.todaysCCBillEarnings[0].sum,currentMonthCBillEarnings:t.payload.currentMonthCBillEarnings[0].sum,totalCCBillEarnings:t.payload.totalCCBillEarnings[0].sum,todaysTotalEarnings:t.payload.todaysTotalEarnings[0].sum,currentMonthTotalEarnings:t.payload.currentMonthTotalEarnings[0].sum,totalLifetimeEarnings:t.payload.totalLifetimeEarnings[0].sum};case i.Z:return{...e,loading:!0};case i.X:return{...e,isBlurLoading:!0};case i.fd:return{...e,isBlurLoading:!1};case i.Ac:return{...e,isUserListLoading:!0};default:return e}},cart:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.M:return{...e,cart:t.payload.cartItems,shippingCharge:t.payload.shippingCharge,isLoading:!1};case i.o:return{...e,cart:f()(e.cart,{$push:[t.payload]})};case i.Lb:return{...e,cart:e.cart.splice(t.payload,1)};case i.E:return{...e,cart:[]};default:return e}},gallery:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0,a=t.payload;switch(t.type){case i.F:return{...e,files:[...e.files,t.payload]};case i.H:return{...e,files:[...e.files.slice(0,t.payload),...e.files.slice(t.payload+1)]};case i.J:return E;case i.Jd:return{...e,uploadProgress:a};case i.Id:return{...e,files:a};case i.G:return{...e,previewFiles:[...e.previewFiles,t.payload]};case i.I:return{...e,previewFiles:[...e.previewFiles.slice(0,t.payload),...e.previewFiles.slice(t.payload+1)]};case i.Eb:return{...e,previewFiles:[],uploadProgress:{progress:"",index:"",progressNumber:"",type:""},secondaryGallery:{...e.secondaryGallery,previewFiles:[],uploadProgress:{progress:"",index:"",progressNumber:"",type:""},isPreviewModeEnable:!1}};case i.xc:return{...e,isPreviewModeEnable:!e.isPreviewModeEnable};case i.hd:return{...e.secondaryGallery,secondaryGallery:{files:e.files,previewFiles:e.previewFiles,uploadProgress:e.uploadProgress,isPreviewModeEnable:e.isPreviewModeEnable}};case i.Rd:return{...e,processingIndex:t.payload};case i.Qd:{const a=[...e.processedIndex];return a.includes(t.payload)||a.push(t.payload),{...e,processedIndex:a}}default:return e}},ccbill:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.Bb:return{...e,isLoading:!0};case i.Ab:return{...e,isLoading:!1};case i.u:return{...e,isBlogPaymentLoading:!0};case i.t:return{...e,isBlogPaymentLoading:!1};default:return e}},chat:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.v:return{...e,userList:t.payload.userList,totalPages:t.payload.totalPages,currentPage:parseInt(t.payload.currentPage,10),sortBy:t.payload.sortBy,sortBySubscribers:t.payload.sortBySubscribers,isLoading:!1};case i.id:return{...e,tipsList:t.payload.tipsList,totalTipsPages:t.payload.totalPages,currentTipsPage:t.payload.currentPage,isLoading:!1};case i.w:{let a=Object.assign(e.userProfileInfo);return a[t.payload._id]={profile:t.payload.avatarUrl,name:t.payload.name,nick_name:t.payload.nick_name,totalAmountSpent:t.payload.total_amount_spent,isLiveStreamAvailable:t.payload.isLiveStreamAvailable,totalRefundAmount:void 0!==t.payload.total_refund_amount?t.payload.total_refund_amount:0,totalVoidAmount:void 0!==t.payload.total_void_amount?t.payload.total_void_amount:0,totalChargeBackAmount:void 0!==t.payload.total_chargeback_amount?t.payload.total_chargeback_amount:0,totalChargeBackCount:void 0!==t.payload.total_chargeback_count?t.payload.total_chargeback_count:0,lastSeen:t.payload.last_seen,wallet_amount:t.payload.wallet_amount},{...e,userProfileInfo:a}}case i.ee:{let a=e.userProfileInfo;return void 0!==a[t.payload.userId]&&(a[t.payload.userId]={...a[t.payload.userId],nick_name:t.payload.nickName}),{...e,userProfileInfo:a}}case i.Z:return{...e,isLoading:!0};case i.cb:return{...e,isMoreMessageLoading:!0};case i.Ec:return{...e,messages:t.payload.messages,totalMessagesPage:t.payload.totalPages,currentMessagesPage:t.payload.currentPage,shouldLoadMoreMessages:t.payload.shouldLoadMoreMessages};case i.sb:{let a=[];for(let o=0;o<t.payload.messages.length;o++){const n=t.payload.messages[o];for(let t=0;t<e.messages.length;t++){if(e.messages[t]._id!==n._id){a.push(n);break}}}let n=a.concat(e.messages);return{...e,messages:n,totalMessagesPage:t.payload.totalPages,currentMessagesPage:t.payload.currentPage,isMoreMessageLoading:!1,shouldLoadMoreMessages:t.payload.shouldLoadMoreMessages}}case i.gc:return{...e,selectedUserId:t.payload};case i.fc:return{...e,selectedModelId:t.payload};case i.l:{let a=[...e.messages],n=a.filter(e=>e._id===t.payload._id),o=a.filter(e=>e._id===t.payload.old_message_id);if(n.length>0&&!0===n[0].processing&&!1===t.payload.processing){let a=[...e.messages];const n=a.findIndex(e=>e._id===t.payload._id);return n>-1&&a.splice(n,1),a.push(t.payload),{...e,messages:a}}if(o.length>0){let a=[...e.messages];const n=a.findIndex(e=>e._id===t.payload.old_message_id);return n>-1&&a.splice(n,1),a.push(t.payload),{...e,messages:a}}return n.length>0?{...e}:{...e,messages:[...e.messages,t.payload]}}case i.Od:{const a=[...e.messages];for(let e=0;e<a.length;e++){a[e]._id===t.payload._id.toString()&&(a[e]=t.payload)}return{...e,messages:a}}case i.C:{let a=[...e.messages];const n=a.findIndex(e=>e._id===t.payload._id);return n>-1&&a.splice(n,1),{...e,messages:a}}case i.kd:return{...e,showChatTipPopup:t.payload};case i.ce:{let a=e.userProfileInfo;return a[t.payload].lastSeen=new Date,{...e,userProfileInfo:a}}case i.Yd:{let a=e.userProfileInfo,n=e.userList;const o=t.payload.userId,i=n.findIndex(e=>e._id===o);return-1!==i&&(n[i].total_amount_spent=t.payload.totalAmountSpent,n[i].wallet_amount=t.payload.walletAmount),void 0!==a[o]&&(a[o].totalAmountSpent=t.payload.totalAmountSpent,a[o].wallet_amount=t.payload.walletAmount),{...e,userProfileInfo:a,userList:n}}case i.Mc:{const a=t.payload,n=e.messages.findIndex(e=>e._id===a._id);return e.messages[n].media=a.media,void 0!==e.messages[n].url&&(e.messages[n].url=a.url),{...e,messages:e.messages}}default:return e}},utility:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.pd:return{...e,isSideBarOpen:!e.isSideBarOpen};case i.md:return{...e,isNewPaymentModalOpen:!e.isNewPaymentModalOpen};case i.ld:return{...e,isMiscellaneousPopUpOpen:!e.isMiscellaneousPopUpOpen};case i.ud:return{...e,showNotificationPopup:!1};case i.nd:return{...e,showNotificationPopup:!e.showNotificationPopup};case i.D:return{...e,showDateAndTime:!e.showDateAndTime};case i.od:return{...e,showPaymentModel:!e.showPaymentModel,paymentCascade:t.payload.paymentCascade,paymentRequest:t.payload.paymentRequest};case i.jd:return{...e,isAnnouncementBannerOpen:t.payload};case i.z:return{...e,isPromotionBannerOpen:t.payload};case i.A:return{...e,isResubscriptionBannerOpen:t.payload};case i.lb:return{...e,isProgressiveWebAppPopupVisible:t.payload};case i.Gb:return{...e,progressiveWebAppPopupShowAgain:t.payload};case i.Tc:return{...e,isUniversalLoginDifferentPasswordPopupVisible:t.payload};default:return e}},shipping:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.a:return{...e,addresses:t.payload,isAddressListLoading:!1};case i.tb:return{...e,address:t.payload};case i.W:return{...e,isAddressListLoading:!0};default:return e}},copyToClipboard:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.yb:return{...e,isCopyToClipboardToastOpen:!0,toastType:t.payload};case i.x:return{...e,isCopyToClipboardToastOpen:!1};default:return e}},chatBookingTimer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.hc:return{numberOfLiveChatUser:t.payload.numberOfLiveChatUser,chatTimeRemaining:t.payload.chatTimeRemaining,liveChatUserId:t.payload.liveChatUserId};case i.Jb:return{numberOfLiveChatUser:0,chatTimeRemaining:null,liveChatUserId:null};default:return e}},socket:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.Pc:return{...e,isSocketConnected:!0,isSocketInitialyConnected:!0};case i.Qc:return{...e,isSocketConnected:!1};default:return e}},liveStream:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.qc:return{...e,isGroupLiveStreamStarted:!0};case i.Mb:return{groupMessages:[],isGroupLiveStreamStarted:!1};case i.d:{-1===e.groupMessages.findIndex(e=>e._id===t.payload._id)&&e.groupMessages.unshift(t.payload);const a=e.groupMessages;return{...e,groupMessages:a}}default:return e}},promotion:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.Ic:return{...e,isSetPromotion:!0,subscriptionPromotion:t.payload.subscription_promotion,lockedContentPromotion:t.payload.locked_content_promotion};case i.Tb:return{...e,isSetPromotion:!1,subscriptionPromotion:!1,lockedContentPromotion:!1};default:return e}},resubscriptionOffer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.Lc:return{...e,isCheckOffer:!0,isUserEligibleForOffer:t.payload.isUserEligibleForOffer,offer:t.payload.offer};case i.Pb:return{isCheckOffer:!1,isUserEligibleForOffer:!1,offer:{}};default:return e}},sweetAlert:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.Rc:return{...e,showAlert:!0,description:void 0===t.payload.description?e.description:t.payload.description,onConfirmUrl:void 0===t.payload.onConfirmUrl?e.onConfirmUrl:t.payload.onConfirmUrl};case i.Qb:return{...e,showAlert:!1,description:"",onConfirmUrl:""};case i.ic:return{...e,isLoading:!1,showConfirmAlert:!0,confirmDescription:void 0===t.payload.description?e.description:t.payload.description,onConfirmUrl:void 0===t.payload.onConfirmUrl?e.onConfirmUrl:t.payload.onConfirmUrl};case i.Kb:return{...e,isLoading:!1,showConfirmAlert:!1,confirmDescription:"",onConfirmUrl:""};case i.Bc:return{...e,isLoading:t.payload};default:return e}},influencerHelp:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0,a=t.payload;const n=c.a.get(a,"unread_count",0);let o=!1;if(void 0!==a&&null!==a.popup&&(o=!0),n>0&&delete a.unread_count,["UPDATE_INFLUENCER_HELP_LIST","UPDATE_INFLUENCER_HELP_LIST_NOTIFICATION"].includes(t.type)){const n=("UPDATE_INFLUENCER_HELP_LIST"===t.type?[...e.help_list.data]:[...e.notification.data]).concat(a.data);a.data=n}switch(t.type){case i.h:return{...e,popup_data:a.popup,unread_count:n,show_popup:o};case i.f:case i.Kd:return{...e,help_list:a};case i.e:return{...e,help_detail:a.helpDetail,block_api_call:!0};case i.U:return{...e,show_popup:!1,popup_data:null};case i.V:return{...e,block_api_call:!1};case i.g:return{...e,notification:a,is_notification_filter_changed:!1};case i.Ld:return{...e,notification:a};case i.rc:let r=e.notification.data,s=e.notification_filter,l=e.is_notification_filter_changed;0===a.unreadCount&&"all"!==s&&(s="all",l=!0);for(let e=0;e<r.length;e++){const t=r[e];"all"!==s&&t._id.toString()===a.id?r.splice(e,1):t._id.toString()===a.id&&(r[e].isReadNotification=!0)}return{...e,unread_count:a.unreadCount,notification:{...e,data:r},notification_filter:s,is_notification_filter_changed:l};case i.Sb:return{...e,notification:{data:[],totalPages:0,currentPage:1,totalRows:0,limit:0}};case i.Fc:return{...e,notification_filter:t.payload};case i.tc:return{...e,help_tag_filter:t.payload};case i.sc:return{...e,help_tags:t.payload};default:return e}},pushNotification:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.Jc:return{...e,setNotificationPrompt:t.payload};case i.xb:return{...e,isOneSignalInitialized:t.payload};default:return e}},userInfluencerHelp:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1?arguments[1]:void 0,a=t.payload;const n=c.a.get(a,"user_unread_count",0);let o=!1;if(void 0!==a&&null!==a.popup&&(o=!0),n>0&&delete a.user_unread_count,["UPDATE_USER_INFLUENCER_HELP_LIST","UPDATE_USER_INFLUENCER_HELP_LIST_NOTIFICATION"].includes(t.type)){const n=("UPDATE_USER_INFLUENCER_HELP_LIST"===t.type?[...e.help_list.data]:[...e.notification.data]).concat(a.data);a.data=n}let r=e.notification.data,s=e.notification_filter,l=e.is_notification_filter_changed;switch(t.type){case i.s:return{...e,popup_data:a.popup,unread_count:n,show_popup:o};case i.q:case i.ae:return{...e,help_list:a};case i.p:return{...e,help_detail:a.helpDetail,block_api_call:!0};case i.ke:return{...e,show_popup:!1,popup_data:null};case i.le:return{...e,block_api_call:!1};case i.r:return{...e,notification:a,is_notification_filter_changed:!1};case i.be:return{...e,notification:a};case i.Vc:0===a.unreadCount&&"all"!==s&&(s="all",l=!0);for(let e=0;e<r.length;e++){const t=r[e];"all"!==s&&t._id.toString()===a.id?r.splice(e,1):t._id.toString()===a.id&&(r[e].isReadNotification=!0)}return{...e,unread_count:a.unreadCount,notification:{...e,data:r},notification_filter:s,is_notification_filter_changed:l};case i.Xb:return{...e,notification:{data:[],totalPages:0,currentPage:1,totalRows:0,limit:0},popup_data:null};case i.Yc:return{...e,notification_filter:t.payload};case i.Xc:return{...e,help_tag_filter:t.payload};case i.Wc:return{...e,help_tags:t.payload};default:return e}},universalLogin:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.rd:return{...e,universalMergeWebsiteList:t.payload};case i.td:return{...e,siteListOfMergeAccount:t.payload};case i.ed:return{...e,showUniversalLoginPopup:t.payload};case i.cd:return{...e,showUniversalLoginForgotPasswordPopup:t.payload};case i.pc:return{...e,email:t.payload};case i.dd:return{...e,showOldUserMergeAccountPopup:t.payload};case i.sd:return{...e,siteListOfOldUserWebsiteList:t.payload};case i.qd:return{...e,differentPasswordSiteList:t.payload};case i.bd:return{...e,showDifferentPasswordSitePopup:t.payload};case i.Dc:return{...e,isOldUser:t.payload};default:return e}},login:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.ab:return{...e,isLoading:t.payload};case i.vb:return{...e,loginUserInfo:t.payload};default:return e}},register:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.bb:return{...e,isLoading:t.payload};case i.Hb:return{...e,registerUserInfo:t.payload};default:return e}},payment:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.Pd:return{...e,isPaymentProcessing:t.payload};default:return e}},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.qb:return{...e,isSubscriptionEmailNotificationSettingsLoading:t.payload};case i.pb:return{...e,isSubscriptionEmailNotificationButtonLoading:t.payload};case i.gd:return{...e,subscriptionEmailNotification:t.payload};case i.ib:return{...e,isPaginationOnExclusiveContentSettingLoading:t.payload};case i.gb:return{...e,isPaginationOnExclusiveContentButtonLoading:t.payload};case i.hb:return{...e,isPaginationOnExclusiveContentEnabled:t.payload};case i.ob:return{...e,isRedisCacheSettingLoading:t.payload};case i.nb:return{...e,isRedisCacheEnabled:t.payload};case i.mb:return{...e,isRedisCacheButtonLoading:t.payload};default:return e}},page:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.eb:return{...e,isPageDataLoading:t.payload};case i.fb:return{isPageDataSaving:t.payload};default:return e}},couponCode:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.Bd:return{...e,isLoading:t.payload};case i.jc:return{...e,couponCode:t.payload};case i.Dd:return{...e,couponStatus:t.payload};case i.kc:return{...e,couponCodeDetails:t.payload};case i.Ad:return{...e,couponList:t.payload};case i.Td:{const a=e.couponList,n=a.findIndex(e=>e._id===t.payload._id);return a[n]=t.payload,{...e,couponList:a}}case i.Cd:return{...e,couponReportPagination:t.payload};default:return e}},media:function(){let e,t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G,n=arguments.length>1?arguments[1]:void 0,o=[];switch(n.type){case i.Cc:{const e=n.payload.media.filter(e=>!0!==e.processing&&!a.allMedia.some(t=>t._id===e._id));return{...a,media:n.payload.media,currentPage:n.payload.currentPage,totalPages:n.payload.totalPages,allMedia:[...a.allMedia,...e],filter:{...a.filter,stateHadBeenReset:!1}}}case i.j:{e=n.payload.media,t=n.payload.currentPage;const o=n.payload.media.filter(e=>!0!==e.processing&&!a.allMedia.some(t=>t._id===e._id));return{...a,media:[...a.media,...e],currentPage:t,allMedia:[...a.allMedia,...o]}}case i.i:return{...a,media:[n.payload,...a.media]};case i.Nb:{const e=a.media.filter(e=>!n.payload.includes(e._id));return{...a,media:e}}case i.Gc:{const{media:e,currentPage:t,totalPages:o}=n.payload;return{...a,processedMedia:{...a.processedMedia,media:[...a.processedMedia.media,...e],currentPage:t,totalPages:o}}}case i.b:return{...a,category:[...a.category,n.payload]};case i.ec:{const e=n.payload.find(e=>"all media"===e.slug);return{...a,category:n.payload,filter:{...a.filter,activeCategory:a.filter.activeCategory?a.filter.activeCategory:e._id,selectedCategory:a.filter.selectedCategory.slug?a.filter.selectedCategory:e}}}case i.Sd:return{...a,filter:{...a.filter,activeCategory:n.payload}};case i.xd:for(let e=0;e<a.category.length;e++){let t=a.category[e];t._id===n.payload._id?(t=n.payload,o.push(t)):o.push(t)}return{...a,category:o};case i.yd:{const{category:e,newMediaId:t,activeCategoryId:o}=n.payload,i=a.category.map(t=>{const a=e.find(e=>e._id===t._id);return a||t}),r=a.category.find(e=>e._id===o);let s=[];return"all media"!==r.slug&&(s=a.allMedia.filter(e=>t.some(t=>t._id===e._id))),{...a,category:i,media:"all media"!==r.slug?s:a.media}}case i.B:{const e=a.category.filter(e=>e._id!==n.payload);return{...a,category:e}}case i.Hd:return{...a,filter:{...a.filter,...n.payload}};case i.T:{const{type:e}=n.payload;let t=a.category.map(t=>"all media"===t.slug?{...t,photo_count:"photo"===e?t.photo_count+1:t.photo_count,video_count:"video"===e?t.video_count+1:t.video_count}:t);return{...a,category:t}}case i.Vb:{const{filter:e,category:t}=a,n=t.filter(e=>"all media"===e.slug),o={};return"all"!==e.type&&(o.type="all",o.stateHadBeenReset=!0),e.activeCategory!==n[0]._id&&(o.activeCategory=n[0]._id,o.stateHadBeenReset=!0),{...a,filter:{...a.filter,...o}}}case i.Nd:{const{slug:e,mediaType:t}=n.payload;let o=a.category;return a.category&&a.category.length>0&&(o=a.category.map(a=>(a.slug===e&&("video"===t?a.video_count=a.video_count?a.video_count+1:1:a.photo_count=a.photo_count?a.photo_count+1:1),a))),{...a,category:o}}default:return a}}});const W={},H=[o.a];let q;q=Object(n.d)(z,W,Object(n.c)(Object(n.a)(...H)));t.a=q},343:function(e,t,a){},344:function(e,t,a){},347:function(e,t,a){},4:function(e,t,a){"use strict";a.d(t,"e",(function(){return o})),a.d(t,"b",(function(){return i})),a.d(t,"d",(function(){return r})),a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return l}));var n=a(1);const o=e=>t=>{document.body.style.overflow="hidden",t({type:n.Rc,payload:e}),document.body.style.overflow="hidden"},i=()=>e=>{e({type:n.Qb}),document.body.style.overflow="visible"},r=e=>t=>{t({type:n.ic,payload:e}),document.body.style.overflow="hidden"},s=()=>e=>{e({type:n.Kb}),document.body.style.overflow="visible"},l=e=>t=>{t({type:n.Bc,payload:e})}},42:function(e,t,a){"use strict";a.d(t,"f",(function(){return m})),a.d(t,"g",(function(){return p})),a.d(t,"e",(function(){return u})),a.d(t,"a",(function(){return g})),a.d(t,"l",(function(){return h})),a.d(t,"d",(function(){return b})),a.d(t,"c",(function(){return f})),a.d(t,"h",(function(){return _})),a.d(t,"k",(function(){return y})),a.d(t,"i",(function(){return E})),a.d(t,"m",(function(){return v})),a.d(t,"b",(function(){return w})),a.d(t,"j",(function(){return x})),a.d(t,"o",(function(){return k})),a.d(t,"n",(function(){return N}));var n=a(3),o=a.n(n),i=a(22),r=a(4),s=a(2),l=a.n(s),c=a(1);const d=Object(i.a)(),m=e=>async t=>{try{const a=await o.a.post(d+"/api/media/get",e),n=l.a.get(a,"data.data",{media:[],currentPage:1,totalPages:1});t({type:c.Cc,payload:n}),n.category&&t({type:c.ec,payload:n.category})}catch(a){console.log("error",a.response);const e=l.a.get(a,"response.data.message","Error occurred while get media");t(Object(r.e)({description:e}))}},p=e=>async t=>{try{const a=await o.a.post(d+"/api/media/get",e),n=l.a.get(a,"data.data",{media:[],currentPage:1,totalPages:1});t({type:c.j,payload:n})}catch(a){console.log("error",a.response);const e=l.a.get(a,"response.data.message","Error while get media");t(Object(r.e)({description:e}))}},u=()=>async e=>{try{const t=await o.a.get(d+"/api/media/category");e({type:c.ec,payload:t.data.data})}catch(t){const a=l.a.get(t,"response.data.message","Error while fetch category");e(Object(r.e)({description:a}))}},g=e=>async t=>{try{const a=await o.a.post(d+"/api/media/category",e);return t({type:c.b,payload:a.data.data}),t(Object(r.e)({description:a.data.message})),a.data.data._id}catch(a){const e=l.a.get(a,"response.data.message","Error while add new category");t(Object(r.e)({description:e}))}},h=e=>async t=>{try{const a=await o.a.post(d+"/api/media/category/update",e);t({type:c.xd,payload:a.data.data}),t(Object(r.e)({description:a.data.message}))}catch(a){const e=l.a.get(a,"response.data.message","Error while update category");t(Object(r.e)({description:e}))}},b=e=>async t=>{try{const a=await o.a.post(d+"/api/media/category/delete",e),{categoryId:n}=a.data.data;t({type:c.B,payload:n}),t(Object(r.e)({description:a.data.message})),t(Object(r.a)())}catch(a){const e=l.a.get(a,"response.data.message","Error while update category");t(Object(r.e)({description:e})),t(Object(r.a)())}},f=e=>t=>{t({type:c.i,payload:e})},_=e=>t=>{t({type:c.T,payload:{type:e}})},y=e=>async t=>{try{return(await o.a.post(d+"/api/media",e)).data}catch(a){console.log("error",a.response);const e=l.a.get(a,"response.data.message","Error occurred while saving media");t(Object(r.e)({description:e}))}},E=e=>async t=>{const a=d+"/api/media/remove-media";try{const n=await o.a.post(a,e),{categories:i}=n.data.data.resData;return t({type:c.ec,payload:i}),t({type:c.Nb,payload:e.mediaIds}),t(Object(r.e)({description:n.data.message})),t(Object(r.a)()),n.data.success}catch(n){const e=l.a.get(n,"response.data.message","Error while remove media");return t(Object(r.e)({description:e})),t(Object(r.a)()),n.response.data.success}},v=e=>t=>{t({type:c.Hd,payload:e})},w=e=>async t=>{try{const a=await o.a.post(d+"/api/media/add-media-from-category",e);t({type:c.yd,payload:a.data.data}),t(Object(r.e)({description:a.data.message}))}catch(a){const e=l.a.get(a,"response.data.message","Error while add category in media");t(Object(r.e)({description:e}))}},x=()=>e=>{e({type:c.Vb})},k=e=>t=>{t({type:c.Sd,payload:e})},N=e=>t=>{t({type:c.Nd,payload:e})}},43:function(e,t,a){"use strict";a.d(t,"g",(function(){return u})),a.d(t,"f",(function(){return h})),a.d(t,"Tb",(function(){return b})),a.d(t,"b",(function(){return f})),a.d(t,"Sb",(function(){return _})),a.d(t,"Rb",(function(){return y})),a.d(t,"Nb",(function(){return E})),a.d(t,"J",(function(){return v})),a.d(t,"vb",(function(){return w})),a.d(t,"k",(function(){return x})),a.d(t,"cb",(function(){return k})),a.d(t,"c",(function(){return N})),a.d(t,"X",(function(){return S})),a.d(t,"E",(function(){return C})),a.d(t,"qb",(function(){return T})),a.d(t,"G",(function(){return O})),a.d(t,"sb",(function(){return P})),a.d(t,"I",(function(){return I})),a.d(t,"ub",(function(){return A})),a.d(t,"q",(function(){return M})),a.d(t,"ib",(function(){return j})),a.d(t,"j",(function(){return F})),a.d(t,"o",(function(){return L})),a.d(t,"bb",(function(){return D})),a.d(t,"gb",(function(){return $})),a.d(t,"y",(function(){return U})),a.d(t,"lb",(function(){return G})),a.d(t,"Q",(function(){return z})),a.d(t,"Cb",(function(){return W})),a.d(t,"M",(function(){return H})),a.d(t,"yb",(function(){return q})),a.d(t,"O",(function(){return V})),a.d(t,"Ab",(function(){return Y})),a.d(t,"x",(function(){return K})),a.d(t,"kb",(function(){return J})),a.d(t,"S",(function(){return X})),a.d(t,"Eb",(function(){return Q})),a.d(t,"R",(function(){return Z})),a.d(t,"Db",(function(){return ee})),a.d(t,"P",(function(){return te})),a.d(t,"Bb",(function(){return ae})),a.d(t,"T",(function(){return ne})),a.d(t,"Fb",(function(){return oe})),a.d(t,"h",(function(){return ie})),a.d(t,"Z",(function(){return re})),a.d(t,"z",(function(){return se})),a.d(t,"mb",(function(){return le})),a.d(t,"d",(function(){return ce})),a.d(t,"Y",(function(){return de})),a.d(t,"n",(function(){return me})),a.d(t,"fb",(function(){return pe})),a.d(t,"Ob",(function(){return ue})),a.d(t,"e",(function(){return ge})),a.d(t,"a",(function(){return he})),a.d(t,"m",(function(){return be})),a.d(t,"eb",(function(){return fe})),a.d(t,"w",(function(){return _e})),a.d(t,"jb",(function(){return ye})),a.d(t,"A",(function(){return Ee})),a.d(t,"nb",(function(){return ve})),a.d(t,"K",(function(){return we})),a.d(t,"wb",(function(){return xe})),a.d(t,"u",(function(){return ke})),a.d(t,"Gb",(function(){return Se})),a.d(t,"V",(function(){return Te})),a.d(t,"r",(function(){return Oe})),a.d(t,"s",(function(){return Ae})),a.d(t,"U",(function(){return je})),a.d(t,"t",(function(){return Fe})),a.d(t,"W",(function(){return $e})),a.d(t,"Lb",(function(){return Re})),a.d(t,"Hb",(function(){return Be})),a.d(t,"l",(function(){return Ge})),a.d(t,"db",(function(){return ze})),a.d(t,"B",(function(){return We})),a.d(t,"ob",(function(){return He})),a.d(t,"p",(function(){return qe})),a.d(t,"hb",(function(){return Ve})),a.d(t,"Jb",(function(){return Ye})),a.d(t,"F",(function(){return Ke})),a.d(t,"rb",(function(){return Je})),a.d(t,"Kb",(function(){return Xe})),a.d(t,"i",(function(){return Qe})),a.d(t,"ab",(function(){return Ze})),a.d(t,"Ib",(function(){return et})),a.d(t,"L",(function(){return tt})),a.d(t,"xb",(function(){return at})),a.d(t,"C",(function(){return nt})),a.d(t,"v",(function(){return ot})),a.d(t,"N",(function(){return it})),a.d(t,"zb",(function(){return rt})),a.d(t,"D",(function(){return mt})),a.d(t,"pb",(function(){return ut})),a.d(t,"Pb",(function(){return ht})),a.d(t,"Qb",(function(){return bt})),a.d(t,"Mb",(function(){return ft})),a.d(t,"H",(function(){return _t})),a.d(t,"tb",(function(){return vt}));var n=a(3),o=a.n(n),i=a(2),r=a.n(i),s=a(1),l=a(22),c=a(4),d=a(28),m=a(19);const p=Object(l.a)(),u=e=>t=>{o.a.get(p+"/api/app_settings/get").then(a=>{t(R(a.data)),!1===r.a.isEmpty(a.data.appSettings.feed_tags)&&t({type:s.Fd,payload:a.data.appSettings.feed_tags}),e(),t(g())})},g=()=>()=>{o.a.post(p+"/api/users/update_last_seen").then(()=>{})},h=e=>t=>{o.a.get(p+"/api/app_settings/get_all_theme_3_settings").then(a=>{t(B(a.data)),e()})},b=(e,t)=>a=>{o.a.post(p+"/api/app_settings/upload-theme-image",e).then(e=>{1===e.data.success&&alert(e.data.message),a(u(t))})},f=(e,t)=>a=>{o.a.post(p+"/api/app_settings/delete-theme-image",e).then(e=>{1===e.data.success&&alert(e.data.message),a(u(t))}).catch(e=>{console.log(e.message),alert(e.message)})},_=(e,t)=>a=>{o.a.post(p+"/api/app_settings/upload_theme_background_image",e).then(e=>{1===e.data.success&&(alert(e.data.message),a(u(t)))}).catch(e=>{console.log(e.message),alert(e.message)})},y=(e,t)=>a=>{o.a.post(p+"/api/app_settings/update_use_background_image_key",e).then(e=>{1===e.data.success&&(alert(e.data.message),a(u(t)))}).catch(e=>{console.log(e.message),alert(e.message)})},E=(e,t)=>()=>{o.a.post(p+"/api/app_settings/update_chat_settings",e).then(e=>{1===e.data.success&&(alert(e.data.message),t())}).catch(e=>{console.log(e.message),alert(e.message)})},v=e=>()=>{o.a.get(p+"/api/app_settings/get_resend_mass_message_settings").then(t=>{e(t.data.data)}).catch(t=>{console.log(t.message),alert(t.message),e()})},w=(e,t)=>a=>{o.a.post(p+"/api/app_settings/save_resend_mass_message_settings",e).then(e=>{alert(e.data.message),a(u(t))}).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");alert(a),t()})},x=e=>()=>{o.a.get(p+"/api/ccbill-settings/get-ccbill-settings").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},k=(e,t)=>()=>{o.a.post(p+"/api/ccbill-settings/save-ccbill-settings",e).then(e=>(alert(e.data.message),t())).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");return alert(a),t()})},N=e=>()=>{o.a.get(p+"/api/aws-settings/get-aws-settings").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},S=(e,t)=>()=>{o.a.post(p+"/api/aws-settings/save-aws-settings",e).then(e=>(alert(e.data.message),t())).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");return alert(a),t()})},C=e=>()=>{o.a.get(p+"/api/platform-settings/get-platform-settings").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},T=(e,t)=>()=>{o.a.post(p+"/api/platform-settings/save-platform-settings",e).then(e=>(alert(e.data.message),t())).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");return alert(a),t()})},O=e=>()=>{o.a.get(p+"/api/settings/purchase-notification-settings").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},P=(e,t)=>()=>{o.a.post(p+"/api/settings/purchase-notification-settings",e).then(e=>(alert(e.data.message),t())).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");return alert(a),t()})},I=e=>t=>{o.a.get(p+"/api/reporting-page").then(t=>{e(t.data.data)}).catch(a=>{console.log(a.message);const n={description:a.message};t(Object(c.e)(n)),e()})},A=(e,t)=>a=>{o.a.post(p+"/api/reporting-page",e).then(e=>{const n={description:e.data.message};a(Object(c.e)(n)),a(u(t))}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};a(Object(c.e)(n)),t()})},M=()=>async e=>{const t=p+"/api/reporting-page/hide-earnings";try{return(await o.a.get(t)).data.data}catch(a){const t={description:a.message};e(Object(c.e)(t))}},j=e=>async t=>{const a=p+"/api/reporting-page/hide-earnings";try{const n={description:(await o.a.post(a,e)).data.message};t(Object(c.e)(n))}catch(n){const e={description:r.a.get(n.response,"data.message","Invalid request.")};t(Object(c.e)(e))}},F=e=>()=>{o.a.get(p+"/api/app_settings/get_ccbill_settings").then(t=>{e(t.data)}).catch(e=>{const t=r.a.get(e.response,"data.message","Invalid request.");alert(t)})},L=e=>()=>{o.a.get(p+"/api/app_settings/get_email_configuration_settings").then(t=>{e(t.data.data)}).catch(t=>{console.log(t.message),alert(t.message),e()})},D=(e,t)=>a=>{o.a.post(p+"/api/app_settings/save_ccbill_settings",e).then(e=>{const n={description:e.data.message};a(Object(c.e)(n)),t(e.data)}).catch(e=>{const t=r.a.get(e.response,"data.message","Invalid request.");alert(t)})},$=(e,t)=>a=>{o.a.post(p+"/api/app_settings/save_email_configuration",e).then(e=>{alert(e.data.message),a(u(t))}).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");alert(a),t()})},R=e=>({type:s.rb,payload:e}),B=e=>({type:s.ub,payload:e}),U=e=>()=>{o.a.get(p+"/api/menu-settings/get-menu-settings").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},G=(e,t)=>()=>{o.a.post(p+"/api/menu-settings/save-menu-settings",e).then(e=>(alert(e.data.message),t())).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");return alert(a),t()})},z=e=>t=>{o.a.get(p+"/api/tip-page-settings/get-tip-page-settings").then(t=>e(t.data.data)).catch(a=>{const n={description:r.a.get(a.response,"data.message","There was a problem while getting tips page settings.")};return t(Object(c.e)(n)),e()})},W=(e,t)=>a=>{o.a.post(p+"/api/tip-page-settings/save-tip-page-settings",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),a(gt(e.data.data.data)),t()}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};return a(Object(c.e)(n)),t()})},H=e=>()=>{o.a.get(p+"/api/signup-page-settings/get-signup-page-settings").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},q=(e,t)=>()=>{o.a.post(p+"/api/signup-page-settings/save-signup-page-settings",e).then(e=>(alert(e.data.message),t())).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");return alert(a),t()})},V=e=>()=>{o.a.get(p+"/api/settings/theme-2-settings").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},Y=(e,t)=>()=>{o.a.post(p+"/api/settings/theme-2-settings",e).then(e=>(alert(e.data.message),t())).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");return alert(a),t()})},K=e=>()=>{o.a.get(p+"/api/get/membership-price").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},J=(e,t)=>()=>{o.a.post(p+"/api/update/membership-price",e).then(e=>(alert(e.data.message),t())).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");return alert(a),t()})},X=e=>()=>{o.a.get(p+"/api/get/website-settings").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},Q=(e,t)=>()=>{o.a.put(p+"/api/update/website-settings",e).then(e=>(alert(e.data.message),t())).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");return alert(a),t()})},Z=e=>()=>{o.a.get(p+"/api/watermark-settings/watermark-settings").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},ee=(e,t)=>a=>{o.a.post(p+"/api/watermark-settings/watermark-settings",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};return a(Object(c.e)(n)),t()})},te=e=>()=>{o.a.get(p+"/api/theme-settings").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},ae=(e,t)=>a=>{o.a.post(p+"/api/theme-settings",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};return a(Object(c.e)(n)),t()})},ne=e=>()=>{o.a.get(p+"/api/website-settings").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},oe=(e,t)=>a=>{o.a.post(p+"/api/website-settings",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};return a(Object(c.e)(n)),t()})},ie=e=>()=>{o.a.get(p+"/api/banner-image-text").then(t=>e(t.data.data)).catch(t=>(alert(t.message),e()))},re=(e,t)=>a=>{o.a.post(p+"/api/banner-image-text",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};return a(Object(c.e)(n)),t()})},se=e=>()=>{o.a.get(p+"/api/minimum-and-maximum-amounts").then(t=>e(t.data.data)).catch(()=>e())},le=(e,t)=>a=>{o.a.post(p+"/api/minimum-and-maximum-amounts",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};return a(Object(c.e)(n)),t()})},ce=e=>()=>{o.a.get(p+"/api/age-modal").then(t=>e(t.data.data)).catch(()=>e())},de=(e,t)=>a=>{o.a.post(p+"/api/age-modal",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};return a(Object(c.e)(n)),t()})},me=(e,t)=>()=>{o.a.get(p+"/api/custom-menu/get?page_num="+e).then(e=>t(e.data.data)).catch(e=>(alert(e.message),t()))},pe=(e,t)=>()=>{o.a.post(p+"/api/custom-menu/save",e).then(e=>(alert(e.data.message),t(e.data.data))).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");return alert(a),t()})},ue=(e,t)=>()=>{o.a.post(p+"/api/custom-menu/status/update",e).then(e=>(alert(e.data.message),t())).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");return alert(a),t()})},ge=e=>t=>{o.a.get(p+"/api/custom-menu/all/get").then(a=>{t(he(a.data.data)),e()})},he=e=>({type:s.c,payload:e}),be=e=>()=>{o.a.get(p+"/api/contact-us-settings").then(t=>e(t.data.data)).catch(()=>e())},fe=(e,t)=>a=>{o.a.post(p+"/api/contact-us-settings",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};return a(Object(c.e)(n)),t()})},_e=e=>()=>{o.a.get(p+"/api/login-and-signup-title").then(t=>e(t.data.data)).catch(()=>e())},ye=(e,t)=>a=>{o.a.post(p+"/api/login-and-signup-title",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};return a(Object(c.e)(n)),t()})},Ee=e=>()=>{o.a.get(p+"/api/miscellaneous-pop-up").then(t=>e(t.data.data)).catch(()=>e())},ve=(e,t)=>a=>{o.a.post(p+"/api/miscellaneous-pop-up",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};return a(Object(c.e)(n)),t()})},we=e=>()=>{o.a.get(p+"/api/shop").then(t=>e(t.data.data)).catch(()=>e())},xe=(e,t)=>a=>{o.a.post(p+"/api/shop",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};return a(Object(c.e)(n)),t()})},ke=e=>t=>{o.a.get(p+"/help/popup-with-notification-count").then(a=>(t(Ne(a.data.data)),e())).catch(()=>e())},Ne=e=>({type:s.h,payload:e}),Se=e=>t=>{o.a.get(p+"/help/read/"+e).then(e=>{t(Ce(e.data.data))})},Ce=e=>({type:s.rc,payload:e}),Te=()=>({type:s.U,payload:{}}),Oe=(e,t)=>a=>{o.a.post(p+"/help/list",e).then(n=>{const o={currentPage:n.data.data.currentPage,totalPages:n.data.data.totalPages};return 1===e.pageNum?(a(Pe(n.data.data)),a(Ue(n.data.data.helpTagsData)),o.helpTags=n.data.data.helpTagsData):a(Ie(n.data.data)),t(o)}).catch(()=>t({currentPage:1,totalPages:0}))},Pe=e=>({type:s.f,payload:e}),Ie=e=>({type:s.Kd,payload:e}),Ae=(e,t)=>a=>{o.a.get(p+"/help/details/"+e).then(e=>(a(Me(e.data.data)),t())).catch(()=>t())},Me=e=>({type:s.e,payload:e}),je=()=>({type:s.V}),Fe=(e,t)=>a=>{o.a.post(p+"/help/list/notifications",e).then(n=>{1===e.pageNum?a(Le(n.data.data)):a(De(n.data.data));const o={currentPage:n.data.data.currentPage,totalPages:n.data.data.totalPages,isChangeUnreadToAll:n.data.data.isChangeUnreadToAll};return!0===n.data.data.isChangeUnreadToAll&&a(Re("all")),t(o)}).catch(()=>t({currentPage:1,totalPages:0}))},Le=e=>({type:s.g,payload:e}),De=e=>({type:s.Ld,payload:e}),$e=()=>({type:s.Sb}),Re=e=>({type:s.Fc,payload:e}),Be=e=>({type:s.tc,payload:e}),Ue=e=>({type:s.sc,payload:e}),Ge=e=>()=>{o.a.get(p+"/api/csv-download").then(t=>e(t.data.data)).catch(()=>e())},ze=(e,t)=>a=>{o.a.post(p+"/api/csv-download",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};return a(Object(c.e)(n)),t()})},We=e=>()=>{o.a.get(p+"/api/miscellaneous-settings").then(t=>e(t.data.data)).catch(()=>e())},He=(e,t)=>a=>{o.a.post(p+"/api/miscellaneous-settings",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const n={description:r.a.get(e.response,"data.message","Invalid request.")};return a(Object(c.e)(n)),t()})},qe=e=>()=>{o.a.get(p+"/api/help-settings/get").then(t=>e(t.data.data)).catch(e=>{alert(e.message)})},Ve=(e,t)=>a=>{o.a.post(p+"/api/help-settings/save",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");return alert(a),t()})},Ye=e=>({type:s.vc,payload:e}),Ke=e=>()=>{o.a.get(p+"/api/public-post-settings/get").then(t=>e(t.data.data)).catch(e=>{alert(e.message)})},Je=(e,t)=>a=>{o.a.post(p+"/api/public-post-settings/save",e).then(e=>{const n={description:e.data.message};return a(Object(c.e)(n)),t()}).catch(e=>{const a=r.a.get(e.response,"data.message","Invalid request.");return alert(a),t()})},Xe=e=>({type:s.zc,payload:e}),Qe=()=>async()=>{try{const e=p+"/api/blog-comment-setting/get";return(await o.a.get(e)).data.data}catch(e){alert(e.message)}},Ze=e=>async t=>{const a=p+"/api/blog-comment-setting/save";try{const n={description:(await o.a.post(a,e)).data.message};return void t(Object(c.e)(n))}catch(n){const e={description:r.a.get(n.response,"data.message","Invalid request.")};return void t(Object(c.e)(e))}},et=e=>({type:s.uc,payload:e}),tt=()=>async e=>{const t=p+"/api/payment-icons/show-payment-icons";try{return(await o.a.get(t)).data.data}catch(a){const t={description:a.message};e(Object(c.e)(t))}},at=e=>async t=>{const a=p+"/api/payment-icons/show-payment-icons";try{const n={description:(await o.a.post(a,e)).data.message};t(Object(c.e)(n))}catch(n){const e={description:r.a.get(n.response,"data.message","Invalid request.")};t(Object(c.e)(e))}},nt=()=>async()=>{const e=p+"/api/app_settings/get-model-profile";try{return(await o.a.get(e)).data.data}catch(t){return t.response.data}},ot=()=>async e=>{const t=p+"/api/app_settings/get_links_page";try{const a=await o.a.get(t);e({type:s.Md,payload:a.data.data})}catch(a){const t={description:r.a.get(a.response,"data.message","Something wrong")};e(Object(c.e)(t))}},it=()=>async e=>{try{e(lt(!0));const t=await o.a.get(p+"/api/subscription-email-notification");return e(st(t.data.data.send_subscription_email_notifications_to)),void e(lt(!1))}catch(t){const a={description:r.a.get(t.response,"data.message","There was a problem fetching subscription email notification settings")};return e(Object(c.e)(a)),void e(lt(!1))}},rt=e=>async t=>{try{t(ct(!0));const a={description:(await o.a.post(p+"/api/subscription-email-notification",e)).data.message};return t(Object(c.e)(a)),void t(ct(!1))}catch(a){const e={description:r.a.get(a.response,"data.message","There was a problem while updating subscription email notification settings.")};return t(Object(c.e)(e)),void t(ct(!1))}},st=e=>({type:s.gd,payload:e}),lt=e=>({type:s.qb,payload:e}),ct=e=>({type:s.pb,payload:e}),dt=e=>({type:s.ib,payload:e}),mt=()=>async e=>{try{e(dt(!0));const a=await o.a.get(p+"/api/pagination-on-exclusive-content");return e((t=a.data.data.isPaginationOnExclusiveContentEnabled,{type:s.hb,payload:t})),void e(dt(!1))}catch(a){const t={description:r.a.get(a.response,"data.message","There was a problem while getting pagination on exclusive content settings.")};e(Object(c.e)(t)),e(dt(!1))}var t},pt=e=>({type:s.gb,payload:e}),ut=e=>async t=>{try{t(pt(!0));const a=await o.a.post(p+"/api/pagination-on-exclusive-content",e),n={description:a.data.message},i=r.a.get(a,"data.data.isPaginationOnExclusiveContentEnabled",!1);return t(Object(m.x)(i)),t(Object(d.q)()),t(Object(c.e)(n)),void t(pt(!1))}catch(a){const e={description:r.a.get(a,"response.data.message","There was a problem while updating pagination on exclusive content settings.")};t(Object(c.e)(e)),t(dt(!1))}},gt=e=>({type:s.Wd,payload:e}),ht=e=>t=>{t({type:s.Ud,payload:e})},bt=e=>t=>{t({type:s.Vd,payload:e})},ft=(e,t)=>({type:s.vd,payload:{key:e,value:t}}),_t=()=>async e=>{try{e(yt(!0));const t=await o.a.get(p+"/api/redis-cache-setting");return e(Et(t.data.data.isRedisCacheEnabled)),void e(yt(!1))}catch(t){const a={description:r.a.get(t.response,"data.message","There was a problem while getting redis cache settings.")};e(Object(c.e)(a)),e(yt(!1))}},yt=e=>({type:s.ob,payload:e}),Et=e=>({type:s.nb,payload:e}),vt=e=>async t=>{try{t(wt(!0));const a=await o.a.post(p+"/api/redis-cache-setting",e),n={description:a.data.message},i=r.a.get(a,"data.data.isRedisCacheEnabled",!1);return t(Et(i)),t(Object(c.e)(n)),t(wt(!1)),{success:1}}catch(a){const e={description:r.a.get(a,"response.data.message","There was a problem while saving redis cache settings.")};return t(Object(c.e)(e)),t(wt(!1)),{success:0}}},wt=e=>({type:s.mb,payload:e})},44:function(e,t,a){"use strict";a.d(t,"e",(function(){return _})),a.d(t,"j",(function(){return y})),a.d(t,"a",(function(){return E})),a.d(t,"c",(function(){return v})),a.d(t,"f",(function(){return w})),a.d(t,"i",(function(){return x})),a.d(t,"b",(function(){return k})),a.d(t,"h",(function(){return N})),a.d(t,"g",(function(){return S})),a.d(t,"d",(function(){return C})),a.d(t,"k",(function(){return T}));var n=a(3),o=a.n(n),i=a(2),r=a.n(i),s=a(20),l=a(22),c=a(68),d=a(56),m=a(57),p=a(45),u=a(69),g=a(1),h=a(4),b=a(19);const f=Object(l.a)(),_=e=>async t=>{try{return(await o.a.get(f+"/api/crypto/get-currency-list")).data}catch(a){if(void 0!==e&&"live-stream"===e)t(Object(h.e)({description:a.response.data.message}));else{const e={description:a.response.data.message};t(Object(h.e)(e))}return!1}},y=e=>async()=>{const{url:t,...a}=e;try{return(await o.a.post(`${f}/api/crypto/${t}`,a)).data}catch(n){return!1}},E=e=>async()=>{try{return(await o.a.post(f+"/api/crypto/add-fund-and-payment",e)).data}catch(t){return t.response.data}},v=e=>async()=>{try{return(await o.a.post(f+"/api/crypto/get-transaction-status",e)).data}catch(t){return!1}},w=e=>async t=>{try{const{type:a,userId:n,...i}=e;"blog"===a?t(Object(c.b)()):["tips","message"].includes(a)&&t(Object(c.i)());const l=await o.a.post(f+"/api/crypto/get-transaction-info",i),d=l.data;if("blog"===a){if(t(Object(u.c)()),0===d.data.success)return t(Object(h.e)({description:d.data.message})),d.data;t(Object(p.j)(d.data.blogData));const a=r.a.get(l,"data.blogData.udid","").length>1,o=r.a.get(l,"data.blogData.blogType",""),i=r.a.get(l,"data.blogData.title",""),c=r.a.get(l,"data.blogData.amount",""),m=n?`${d.data.transactionId}-${n}`:d.data.transactionId,g="photo"===o?"image":o,b=!0===a?"unlock reuse feed":"unlock feed";Object(s.a)("purchase",m,c,g,b,i),!0===e.is_promotion_applied&&!1!==e.promotion_id&&Object(s.c)(e.promotion_id,e.ribbon_text)}else if("tips"===a){t(Object(p.g)());const a=void 0!==n?`${l.data.transactionId}-${n}`:l.data.transactionId,o=e.tipFrom,i="go live stream"===e.tipFrom?"go live tip":"tip";Object(s.a)("purchase",a,e.amount,o,i,"")}else if("message"===a){t(Object(p.g)()),t(Object(m.y)(d.data.messageObject));const a=void 0!==n?`${d.data.transactionId}-${n}`:d.data.transactionId;Object(s.a)("purchase",a,e.amount,e.productSKU,e.productName,e.productCategory),!1!==e.promotion_id&&Object(s.c)(e.promotion_id,e.ribbon_text)}return l.data}catch(a){return!1}},x=e=>async t=>{try{const{userId:a,...n}=e;"blog"===e.payment_for?t(Object(c.b)()):"chat"!==e.payment_for&&"tips"!==e.payment_for||t(Object(c.i)());const i=await o.a.post(f+"/api/crypto/purchase-from-wallet",n),l=i.data;if("blog"===e.payment_for){t(Object(u.c)()),t(Object(p.j)(l.data.blogData));const n=r.a.get(i,"data.blogData.udid","").length>1,o=r.a.get(i,"data.blogData.blogType",""),c=r.a.get(i,"data.blogData.title",""),d=r.a.get(i,"data.blogData.amount",""),m=a?`${l.data.transactionId}-${a}`:l.data.transactionId,g="photo"===o?"image":o,h=!0===n?"unlock reuse feed":"unlock feed";Object(s.a)("purchase",m,d,g,h,c),!0===e.is_promotion_applied&&!1!==e.promotion_id&&Object(s.c)(e.promotion_id,e.ribbon_text)}else if("chat"===e.payment_for){t(Object(p.g)()),t(Object(m.y)(l.data.messageObject));const n=void 0!==a?`${l.data.transactionId}-${a}`:l.data.transactionId;Object(s.a)("purchase",n,e.amount,e.productSKU,e.productName,e.productCategory),!1!==e.promotion_id&&Object(s.c)(e.promotion_id,e.ribbon_text)}else"tips"===e.payment_for&&t(Object(p.g)());return i.data}catch(a){return"blog"===e.payment_for?t(Object(u.c)()):"chat"===e.payment_for&&t(Object(p.g)()),a.response.data}},k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{cancellation_reason:""};return async t=>{const a=f+"/api/crypto/cancel-subscription";try{const n=(await o.a.post(a,e)).data,i={description:"There was a problem cancelling your subscription. Please try again after an hour."};!0===n.data.cancelled&&(i.description="Subscription Cancelled",Object(d.c)(),await t(Object(b.b)(!1))),t(Object(h.e)(i))}catch(n){const e={description:r.a.get(n,"response.data.message","Invalid Request")};return void t(Object(h.e)(e))}}},N=e=>async()=>{try{return(await o.a.post(f+"/api/crypto/wallet-history",e)).data}catch(t){return!1}},S=e=>async()=>(await o.a.post(f+"/api/crypto/get-transaction-details",e)).data,C=e=>async()=>{try{return(await o.a.post(f+"/api/crypto/generate-payment-id",e)).data}catch(t){return t.response.data}},T=e=>({type:g.ad,payload:e})},45:function(e,t,a){"use strict";a.d(t,"h",(function(){return E})),a.d(t,"i",(function(){return v})),a.d(t,"j",(function(){return k})),a.d(t,"c",(function(){return N})),a.d(t,"e",(function(){return S})),a.d(t,"a",(function(){return C})),a.d(t,"g",(function(){return T})),a.d(t,"d",(function(){return O})),a.d(t,"b",(function(){return P})),a.d(t,"l",(function(){return I})),a.d(t,"f",(function(){return A})),a.d(t,"k",(function(){return M}));var n=a(3),o=a.n(n),i=a(22),r=a(2),s=a.n(r),l=a(1),c=a(34),d=a(20),m=a(57),p=a(32),u=a(65),g=a(56),h=a(4),b=a(19),f=a(55),_=a(28);const y=Object(i.a)(),E=e=>async()=>{const t=y+"/api/v2/purchase/subscription";try{const a=await Object(u.g)(u.d);return(await o.a.post(t,e,{headers:a})).data}catch(a){const e=s.a.get(a,"response.data.message","Invalid Request"),t=s.a.get(a,"response.status",400);if(Object(d.b)("subscription_with_new_card","error",e),430===t){return!1===await Object(u.e)()?void window.location.reload():e}return e}},v=e=>async t=>{const a=y+"/api/v2/purchase/subscription-with-card";try{const n=await o.a.post(a,e);return t(Object(f.h)()),t(Object(_.s)(!0)),t(Object(_.g)(!1,{pageNum:1},()=>{})),n.data}catch(n){const e=s.a.get(n,"response.data.message","Invalid Request");return Object(d.b)("subscription_with_old_card","error",e),e}},w=()=>({type:l.t}),x=()=>({type:l.Bb}),k=e=>({type:l.wd,payload:e}),N=e=>async t=>{t({type:l.u});const a=y+"/api/v2/purchase/blog-content-purchase";try{const n=await o.a.post(a,e),i=n.data;if(t(w()),0===i.data.success)return alert(i.data.message),i.data;t(k(i.data.blogData));const r=s.a.get(n,"data.blogData.udid","").length>1,l=c.a.getState(),m=s.a.get(l,"auth.user._id",!1),p=m?`${i.data.transactionId}-${m}`:i.data.transactionId,u="photo"===e.blogType?"image":e.blogType,g=!0===r?"unlock reuse feed":"unlock feed";return Object(d.a)("purchase",p,e.amount,u,g,e.title),!0===e.is_promotion_applied&&!1!==e.promotion_id&&Object(d.c)(e.promotion_id,e.ribbon_text),alert(i.data.message),i}catch(n){t(w());const a=s.a.get(n,"response.data.errors",{});if(!1===s.a.get(n,"response.data.errors.allow_cascade",!1)){const e=s.a.get(n,"response.data.message","Invalid Request");return alert(e),a}alert("Problem in card authorization please re-enter your card details or add new card.");const o={paymentCascade:{error_from:a.error_from,transaction_id:a.transactionId},paymentRequest:e};return t(Object(p.m)(o)),a}},S=e=>async t=>{const a=y+"/api/v2/purchase/chat-content-purchase";t(x());try{const n=(await o.a.post(a,e)).data;if(t(T()),t(Object(m.y)(n.data.messageObject)),0===n.success)return t(Object(h.e)({description:n.data.message})),n.data;const i=c.a.getState(),r=s.a.get(i,"auth.user._id",!1),l=void 0!==r?`${n.data.transactionId}-${r}`:n.data.transactionId;return Object(d.a)("purchase",l,e.amount,e.productSKU,e.productName,e.productCategory),"chat"===e.action&&!1!==e.promotion_id&&Object(d.c)(e.promotion_id,e.ribbon_text),t(Object(h.e)({description:n.data.message})),n}catch(n){t(T());const a=s.a.get(n,"response.data.errors",{});if(!1===s.a.get(n,"response.data.errors.allow_cascade",!1)){const e=s.a.get(n,"response.data.message","Invalid Request");return t(Object(h.e)({description:e})),a}t(Object(h.e)({description:"Problem in card authorization please re-enter your card details or add new card."}));const o={paymentCascade:{error_from:a.error_from,transaction_id:a.transactionId},paymentRequest:e};return t(Object(p.m)(o)),a}},C=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return async n=>{const i=y+"/api/v2/purchase/send-tip";n(x());try{const a=await o.a.post(i,e),r=a.data,s=void 0!==t?`${a.data.transactionId}-${t}`:a.data.transactionId,l=e.tipFrom,c="go live stream"===e.tipFrom?"go live tip":"tip";return Object(d.a)("purchase",s,e.amount,l,c,""),n(T()),0===r.success?(n(Object(h.e)({description:r.data.message})),r.data):(n(Object(h.e)({description:r.data.message})),r)}catch(r){n(T());if(401===s.a.get(r,"response.data.status",{})&&""!==a)return a.push("/register");const t=s.a.get(r,"response.data.errors",{});if(!1===s.a.get(r,"response.data.errors.allow_cascade",!1)){const e=s.a.get(r,"response.data.message","Invalid Request");return n(Object(h.e)({description:e})),t}n(Object(h.e)({description:"Problem in card authorization please re-enter your card details or add new card."}));const o={paymentCascade:{error_from:t.error_from,transaction_id:t.transactionId},paymentRequest:e};return n(Object(p.m)(o)),t}}},T=()=>({type:l.Ab}),O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{cancellation_reason:""};return async t=>{const a=y+"/api/v2/subscription/cancel-subscription";try{const n=(await o.a.post(a,e)).data,i={description:"There was a problem cancelling your subscription. Please try again after an hour."};return!0===n.data.cancelled&&(i.description="Subscription Cancelled",Object(g.c)(),await t(Object(b.b)(!1))),void t(Object(h.e)(i))}catch(n){const e={description:s.a.get(n,"response.data.message","Invalid Request")};return void t(Object(h.e)(e))}}},P=e=>async()=>{const t=y+"/api/v2/purchase/add-new-card";try{const a=await Object(u.g)(u.a);return(await o.a.post(t,e,{headers:a})).data}catch(a){const e=s.a.get(a,"response.data.message","Invalid Request"),t=s.a.get(a,"response.status",400);if(Object(d.b)("add_new_card","error",e),430===t){return!1===await Object(u.e)()?void window.location.reload():e}return e}},I=e=>async t=>{const a=y+"/api/v2/purchase/resubscribe-with-card";try{const n=await o.a.post(a,e);return t(Object(_.s)(!0)),t(Object(_.g)(!1,{pageNum:1},()=>{})),n.data}catch(n){return s.a.get(n,"response.data.message","Invalid Request")}},A=()=>async e=>{try{const t=await o.a.post(y+"/api/v2/purchase/migrate-subscription");if(!0===t.data.data.accepted){const{transactionId:e,amount:a,product_sku:n,product_name:o,product_category:i}=t.data.data;Object(d.a)("purchase",e,a,n,o,i),Object(d.b)("purchase","v2 payment","migrate subscription "+n)}else"0"===t.data.data.ccbill_subscription_status&&e(M());const a=s.a.get(t.data.is_cascade,"is_cascade",!1),n=!0===a?t.data.message+" \n Redirecting to subscription page. Please re-enter your card details or add new card.":t.data.message;let i={description:n,onConfirmUrl:!0===a?"/subscribe":""};return e(Object(h.e)(i)),void e(Object(b.l)())}catch(t){const a=s.a.get(t.response.data.errors,"is_cascade",!1),n=s.a.get(t.response,"data.message","Invalid request.");let o={description:!0===a?n+" \n Redirecting to subscription page. Please re-enter your card details or add new card.":n,onConfirmUrl:!0===a?"/subscribe":""};"0"===s.a.get(t.response.data.errors,"ccbill_subscription_status","2")&&e(M());return!0===s.a.get(t,"response.data.errors.cancelled",!1)&&e(Object(b.l)()),void e(Object(h.e)(o))}},M=()=>({type:l.Zc})},454:function(e,t,a){},46:function(e,t,a){"use strict";a.d(t,"j",(function(){return n})),a.d(t,"k",(function(){return o})),a.d(t,"a",(function(){return i})),a.d(t,"e",(function(){return r})),a.d(t,"h",(function(){return s})),a.d(t,"f",(function(){return l})),a.d(t,"i",(function(){return c})),a.d(t,"g",(function(){return d})),a.d(t,"d",(function(){return m})),a.d(t,"c",(function(){return p})),a.d(t,"b",(function(){return u})),a.d(t,"l",(function(){return g}));const n="2",o="1",i=5e9,r="admin",s="model",l="content_manager",c="sub_admin",d="live_stream_manager",m="mp4",p="mov",u="m4v",g=["photo","video","gallery"]},505:function(e,t,a){"use strict";a.r(t);var n=a(0),o=a.n(n),i=a(36),r=a.n(i),s=(a(343),a(344),a(345),a(346),a(14)),l=a(29),c=a(8),d=a(34),m=(a(347),a(348),a(126)),p=a.n(m),u=a(94),g=a(19),h=a(106),b=a(35),f=a(6),_=a(2),y=a.n(_),E=a(38),v=a.n(E),w=a(539),x=a(98),k=a(25);const N=f.a.div`
    position: absolute;
    top: calc(50% - 15px);
    left: 0;
    cursor: pointer;
    z-index: 1;
`,S=f.a.div`
    position: absolute;
    top: calc(50% - 15px);
    right: 0;
    cursor: pointer;
    z-index: 1;
`,C=f.a.img`
    cursor: ${e=>e.isLocked?"inherit":"pointer"};
    max-height: 80vh;
    height: 70vh;
    object-fit: cover;
    width: 100%;
`,T=f.a.div`
    position: absolute;
    top: calc(48.5%);
    left: calc(47.5%);
    cursor: pointer;

    .video-button-span {
        font-size: 30px;
        color: rgb(211, 211, 211);
        background-color: black;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        position: relative;
        display: inline-block;
    }

    .play-icon {
        font-size: 30px;
        position: absolute;
        border-radius: 51px;
        left: -5px;
        top: -5px;
    }
`;var O=Object(c.b)(e=>({auth:e.auth}))(e=>{const[t,a]=Object(n.useState)(0);let i=e.thumbnailUrlGallery;void 0!==e.thumbnailUrlGallery&&0!==e.thumbnailUrlGallery.length&&!0!==e.isLocked||(i=e.galleryImages);let r=!1,s="",l="",c=y.a.get(e,"contentLeftForProcessing",0);r=!(c>0)&&!1===e.isLocked,0===c&&void 0!==e.galleryImages&&void 0!==e.galleryImages[t]&&(s=Object(k.a)(e.galleryImages[t]),void 0!==s&&(l=s.split("?")));return o.a.createElement("div",{style:{position:"relative"}},r?o.a.createElement(N,{onClick:()=>{let n=t-1;if(t<=0)return n=i.length-1,e.setGalleryImageIndex(n),a(n);e.setGalleryImageIndex(n),a(n)}},o.a.createElement("i",{className:"fas fa-chevron-left fa-2x"})):null,o.a.createElement("div",{className:"text-center"},o.a.createElement("div",{style:{position:"relative"},onClick:()=>{!0!==Boolean(e.isLocked)&&e.openDlgBlog(e.i,t)}},Number(c)>0||void 0===e.galleryImages?o.a.createElement("span",{className:"mb-2",style:{height:"150px",display:"inline-block"}},"This post is under process. It will be visible once processing is completed."):o.a.createElement(o.a.Fragment,null,!1===e.is_published&&e.gallery_process_error_index.includes(t)?o.a.createElement("span",{className:"mb-2",style:{height:"150px",display:"inline-block"}},"Error: There was a problem with this content. we will investigate and let you know."):o.a.createElement(C,{draggable:!1,src:"mp4"===l[0]?i[t]:e.galleryImages[t],alt:"",isLocked:e.isLocked})),["mp4","mov"].includes(l[0])&&o.a.createElement(T,null,o.a.createElement("span",{className:"video-button-span"},o.a.createElement("i",{className:"fas fa-play-circle play-icon"}))))),r?o.a.createElement(S,{onClick:()=>{let n=t+1;if(t>=i.length-1)return e.setGalleryImageIndex(0),a(0);e.setGalleryImageIndex(n),a(n)}},o.a.createElement("i",{className:"fas fa-chevron-right fa-2x"})):null)}),P=a(58),I=a(158),A=a(33),M=a(28),j=a(4),F=a(3),L=a.n(F),D=a(48),$=a(271),R=a(75),B=a(20),U=a(88),G=a(15);const z=f.a.label`
    background-color: ${e=>e.content_color};
    color: ${e=>e.content_font_color};
    height: 100%;
    border-radius: 5px;
    cursor: ${e=>!1===e.disabled?"pointer":"inherit"};
    display: flex;
    cursor: pointer;
    box-shadow: 0 5px 15px 0 ${e=>e.button_shadow_color}44, 0 4px 15px 0 ${e=>e.button_shadow_color}44 !important;
`,W=f.a.div`
    width: 100%;
    margin-bottom: ${e=>!0===e.isUploading?"50px":"20px"};
    
    .positioning {
        display: none !important;
    }

    .form-group {
        position: absolute;
        bottom: -24px;
    }

    .progress-span {
        position: absolute;
        bottom: -44px;
        width: 88%;
    }
    .progress {
        border-radius: 5px;
    }

    .progress-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media(max-width: 767px) {
        .positioning {
            display: inline-block !important;
            width: 20%;
        }

        .progress {
            width: 82%;
            display: inline-block !important;
            border-radius: 5px;
        }

        .positioning i {
            color: ${e=>e.site_font_color};
            border-radius: 50%;
            width: 29px;
            height: 29px;
        }
    }
`,H=f.a.button`
    right: 5px; 
    top: 0;
    position: absolute; 
    border-radius: 82%; 
    width: 24px;
    background-color: ${e=>e.content_color} !important; 
    color: ${e=>e.content_font_color} !important;
    cursor: pointer;

    :before {
        font-size: medium;
    }

    @media(max-width: 767px) {
        right: ${e=>!0===e.isRearrangeModeEnable?"20%":"13%"};
    }
`,q=f.a.div`
    width: 100%;
    position: relative;
    cursor: pointer;
    border-radius: 5px;

    video{
        object-fit: cover;
        border-radius: 5px;
    }
    
    .progress {
        border-radius: 5px;
    }

    @media (min-width:991px) and (max-width:1280px) {

        video{
            max-width: 153px;
        }
    }
    @media (min-width:767px) and (max-width:991px) {

        video{
            max-width: 183px;
        }
    }
    
    @media (max-width:767px) {
        max-width: 80%;
        display: inline-block;
        video{
            max-width: 100%;
        }

        .progress {
            width: 82%;
            display: inline-block !important;
            border-radius: 5px;
        }
    }
`,V=f.a.div`
    width: 100%;
    height: ${e=>"video"===e.type?"150px":"100%"};
    max-width: ${e=>"video"===e.type?"210px":"100%"};
    position: absolute;
    background-color: #FFFFFF4F;
    z-index: 4;
    padding: 0 20px;
    border-radius: 5px;
    display: ${e=>!0===e.isRearrangeModeEnable?"block":"none"};
    left: ${e=>"video"===e.type?"3px":"0px"};

    @media (min-width:991px) and (max-width:1280px) {
        left: ${e=>"video"===e.type?"5px":"0px"};
        max-width: ${e=>"video"===e.type?"153px":"100%"};
    }
    @media (min-width:767px) and (max-width:991px) {
        left: ${e=>"video"===e.type?"5px":"0px"};
        max-width: ${e=>"video"===e.type?"183px":"100%"};        
    }
    @media (max-width:767px) {
        left: 0px !important;
        max-width: 100% !important;
    }
`,Y=f.a.div`
    position: absolute;
    top: calc(45.5%);
    left: calc(47.5%);
    cursor: pointer;

    .video-button-span {
        font-size: 30px;
        color: rgb(211, 211, 211);
        background-color: black;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        position: relative;
        display: inline-block;
    }

    .play-icon {
        font-size: 30px;
        position: absolute;
        border-radius: 51px;
        left: -5px;
        top: -5px;
    }
`,K=f.a.div`
    background-image: ${e=>e.imageUrl};
    height:150px;
    background-position:center;
    background-repeat:no-repeat;
    background-size: cover;
    background-color: #000000;
    position: relative;
    cursor: pointer;
    border-radius: 5px;
    width: inherit;

    @media (max-width:767px) {
        max-width: 80%;
        display: inline-block !important;
        margin-bottom: 1%;
    }
`,J=f.a.div`
    color:${e=>e.site_font_color} !important;
    .custom-control-input:checked ~ .custom-control-label::before {
        background-color: ${e=>e.site_font_color} !important;
    }
    .custom-control-input:checked~.custom-control-label::before {
        border-color: ${e=>e.site_font_color} !important;
    }
`,X=f.a.section`
    width: 100%;
    height: fit-content;
    border: solid;
    border-width: 2px;
    border-radius: 5px;
    padding: 12px;
    border-color: ${e=>e.site_font_color};
`;var Q=Object(c.b)(e=>({auth:e.auth,blog:e.blog}),{getBlogDataById:M.i,setSweetAlert:j.e,postReviewedBlog:M.n})(Object(l.g)((function(e){const{card_background_color:t,content_color:a,content_font_color:i,site_font_color:r,content_unlock_minimum_amount:s,content_unlock_maximum_amount:l,button_shadow_color:c,feed_tags_enable:d,feed_tags:m}=e.auth.appSettings,[p,u]=Object(n.useState)(!1),[g,h]=Object(n.useState)(!1),[b,f]=Object(n.useState)([]),[_,E]=Object(n.useState)({progress:"",index:"",progressNumber:"",type:""}),[v,w]=Object(n.useState)([]),[x,N]=Object(n.useState)(!1),[S,C]=Object(n.useState)(""),[T,O]=Object(n.useState)(!1),[I,M]=Object(n.useState)(""),[j,F]=Object(n.useState)(""),[Q,Z]=Object(n.useState)(!0),[ee,te]=Object(n.useState)(""),[ae,ne]=Object(n.useState)(!0),[oe,ie]=Object(n.useState)(!0),[re,se]=Object(n.useState)(5),[le,ce]=Object(n.useState)({}),[de,me]=Object(n.useState)(""),[pe,ue]=Object(n.useState)(0),[ge,he]=Object(n.useState)(0),be=Object(n.useMemo)(()=>{if(!1!==p){const e=p.media.filter(e=>!0!==e.is_error);w(e)}return[]},[p]);Object(n.useEffect)(()=>{e.getBlogDataById(e.blog_id,t=>{if(t){if(u(t.data),te(t.data.description),ne(t.data.privateBlur),ie(t.data.captionBlur),se(t.data.amount),Z(!1),void 0!==t.data.feed_tags){const a=t.data.feed_tags.map(t=>({label:e.blog.tagList.find(e=>e.value===t.id).label,value:t.id}));ce(a)}}else alert("Something went wrong"),e.onClose()})},[e.blog_id]);const fe=Object(n.useMemo)(()=>!1!==p?p.media.filter(e=>!0===e.is_error):[],[p]),_e=Object(n.useMemo)(()=>!1!==p?p.media_preview.filter(e=>!0===e.is_error):[],[p]),ye=Object(n.useMemo)(()=>!1!==p?_e.length>0&&0===fe.length?"There was an error uploading the following preview media. Please try to post again, or add new preview media below.":_e.length>0&&fe.length>0?"There was an error uploading the following media. Please try to post again, or add new media above. The preview media was not uploaded, so be sure to choose the Add Preview option to try again.":"There was an error uploading the following media. Please try to post again, or add new media above.":"",[p]),Ee=t=>{if(t.length>1)return e.setSweetAlert({description:"You can not add more than one preview."});const a=t[0];if(!["video/mp4","video/quicktime","image/jpeg","image/jpeg","image/png"].includes(a.type))return e.setSweetAlert({description:"Media format is not supported."});if(a){let e={selectedFile:a,renderFile:URL.createObjectURL(a),is_new_file:!0};f([e])}},ve=t=>{const a=be.length,n=45-a<t.length?45-a:t.length,o=t.length+a;for(let r=0;r<n;r++){if(!["video/mp4","video/quicktime","image/jpeg","image/jpeg","image/png"].includes(t[r].type))return e.setSweetAlert({description:"Media format is not supported."})}let i=[];for(let e=0;e<n;e++)if(t[e]){const a=t[e].name,n=t[e].size;if(-1===y.a.findIndex(v,(function(e){return!0===e.is_new_file&&e.selectedFile.name===a&&e.selectedFile.size===n&&e}))){let a={selectedFile:t[e],renderFile:URL.createObjectURL(t[e]),is_new_file:!0};i.push(a)}}if(i.length>0){let e=[...v];e=e.concat(i),w(e)}o>45&&e.setSweetAlert({description:`You have selected ${o} images, maximum 45 images allowed.`})},we=async function(t,a,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"original";const r=L.a.CancelToken.source(),s={onUploadProgress:t=>{let a=Math.round(100*t.loaded/t.total);window.addEventListener("offline",(function(){return r.cancel("Network error"),h(!1),e.setSweetAlert({description:"Seems you are offline. Please check your internet connection and post again."})}));E({progress:a+"%",index:o,progressNumber:a,type:i})},cancelToken:r.token},l=L.a.create();delete l.defaults.headers.common.Authorization,l.defaults.headers["Content-Type"]="video"===t?"video/mp4":"image/jpg";let c=await l.put(a,n,s);return 200===c.status},xe=e=>o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"col-12 col-md-4 mt-3 mb-2",style:{height:"150px",marginBottom:"3%",maxWidth:"150px",outlineColor:"transparent"}},o.a.createElement(z,{htmlFor:e,content_color:a,fullWidth:!0,className:"align-items-center justify-content-center",content_font_color:i,disabled:g,button_shadow_color:c},o.a.createElement("input",{accept:"image/png,image/jpg,image/jpeg,video/mp4,video/quicktime",id:e,onChange:t=>((e,t)=>{const a=e.target.files;"original"===t?ve(a):Ee(a)})(t,e),className:"d-none",type:"file",disabled:g,multiple:!0,name:e}),o.a.createElement("i",{className:"fas fa-plus","aria-hidden":"true"})))),ke=(e,t)=>{if("preview"===t)f([]);else{const t=[...v],a=[...t.slice(0,e),...t.slice(e+1)];1===a.length&&!0===x&&N(!1),w(a)}},Ne=e=>{const t=y.a.get(_,"progress",""),n=y.a.get(_,"index",""),s=y.a.get(_,"progressNumber","");return""!==t&&n===e?o.a.createElement("span",{className:"progress-span mt-1"},o.a.createElement("div",{className:"progress"},o.a.createElement("div",{className:"progress-bar progress-bar-striped progress-bar-animated",role:"progressbar",style:{width:t,backgroundColor:a,color:i}},t)),((e,t)=>{let a=0,n="0";const i="original"===y.a.get(_,"type","")?v[e].selectedFile:b[e].selectedFile;return a=y.a.get(i,"size",0)/1024/1024,n=(a*t/100).toFixed(2),o.a.createElement("div",{className:"progress-text",style:{color:r}},"Uploading ",n," MB Of ",a.toFixed(2)," MB")})(n,s)):o.a.createElement(o.a.Fragment,null)},Se=e=>{const t="preview"===e?b:v;return o.a.createElement(o.a.Fragment,null,t.map((t,n)=>{let s="url("+t.renderFile+")",l=t.renderFile;t.url&&(l=t.url,s="url("+t.url+")");const c=y.a.get(t,"selectedFile.type",t.content_type),d=y.a.get(t,"renderFile",t.url);return o.a.createElement(W,{isUploading:g,content_color:a,site_font_color:r,key:n,className:"col-12 col-md-4 d-flex justify-content-center mt-3"},["video/quicktime","video/mp4","video"].includes(c)?o.a.createElement(o.a.Fragment,null,o.a.createElement(H,{className:"align-items-center close d-flex justify-content-center mr-4 mt-2",content_color:a,content_font_color:i,type:"video",onClick:t=>{t.preventDefault(),ke(n,e)},disabled:g,style:{zIndex:"5"},isRearrangeModeEnable:x}),o.a.createElement(q,{onClick:()=>{Oe(l,"video")},onDragOver:e=>e.preventDefault(),onDragStart:()=>{Ce(n)},onDrop:e=>{e.preventDefault(),Te(n)},draggable:!(!x||"original"!==e)},o.a.createElement(V,{type:"video",isRearrangeModeEnable:x}),D.isIOS?o.a.createElement("video",{src:d,poster:Object(G.a)("images/no-preview-video.png"),id:"uploaded-video",style:{height:"150px",width:"100%",position:"relative",backgroundColor:"black"}}):o.a.createElement("video",{src:d,id:"uploaded-video",style:{height:"150px",width:"100%",position:"relative",backgroundColor:"black"}}),o.a.createElement(Y,null,o.a.createElement("span",{className:"video-button-span"},o.a.createElement("i",{className:"fas fa-play-circle play-icon"})))),!0===x&&"original"===e&&o.a.createElement("div",{className:"positioning text-dark d-inline"},o.a.createElement("i",{className:"fas fa-arrow-up fa-2x",style:{display:0===n&&"none",marginTop:n===v.length-1?"3rem":"2rem"},onClick:e=>{e.preventDefault(),Ie(n,n-1)}}),n>0&&o.a.createElement("br",null),o.a.createElement("i",{className:"fas fa-arrow-down fa-2x",style:{display:n===v.length-1&&"none",marginTop:0===n?"3rem":n<v.length-1&&n>0?"1rem":"2rem"},onClick:e=>{e.preventDefault(),Ie(n,n+1)}})),e===_.type&&g&&Ne(n)):o.a.createElement(o.a.Fragment,null,o.a.createElement(H,{className:"align-items-center close d-flex justify-content-center mr-3 mt-2",content_color:a,content_font_color:i,type:"image",onClick:t=>{t.preventDefault(),ke(n,e)},disabled:g,style:{zIndex:"5"},isRearrangeModeEnable:x}),o.a.createElement(K,{onClick:()=>{Oe(l,"photo")},imageUrl:s,draggable:!(!x||"original"!==e),onDragOver:e=>e.preventDefault(),onDragStart:()=>{Ce(n)},onDrop:e=>{e.preventDefault(),Te(n)}},o.a.createElement(V,{type:"image",isRearrangeModeEnable:x})),!0===x&&"original"===e&&o.a.createElement("div",{className:"positioning text-dark d-inline"},o.a.createElement("i",{className:"fas fa-arrow-up fa-2x",style:{display:0===n&&"none",marginTop:n===v.length-1?"3rem":"2rem"},onClick:e=>{e.preventDefault(),Ie(n,n-1)}}),n>0&&o.a.createElement("br",null),o.a.createElement("i",{className:"fas fa-arrow-down fa-2x",style:{display:n===v.length-1&&"none",marginTop:0===n?"3rem":n<v.length-1&&n>0?"1rem":"2rem"},onClick:e=>{e.preventDefault(),Ie(n,n+1)}})),e===_.type&&g&&Ne(n)))}))},Ce=e=>{!0===x&&C(e)},Te=e=>{if(!0===x&&""!==S){const t=[...v],a=t[S];t.splice(S,1),t.splice(e,0,a),w(t),C("")}C("")},Oe=(e,t)=>{!0!==g&&(document.querySelector("body").style.overflow=!0===!T?"hidden":"visible",M(e),F(t),O(!T))},Pe=Object(n.useMemo)(()=>!1!==p?p.description.length>80?p.description.slice(0,80)+"...":p.description:"",[p.description]),Ie=(e,t)=>{let a=[...v];const n=a[e];a[e]=a[t],a[t]=n,w(a)};return o.a.createElement(A.a,null,!0===T&&o.a.createElement(P.a,{url:I,handleClose:()=>{Oe("","")},type:j,showWatermark:!1}),o.a.createElement("div",{className:"modal fade show",role:"dialog",style:{display:T?"none":"block",backgroundColor:"#00000080"}},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered modal-lg modal-dialog-scrollable",role:"document"},o.a.createElement("div",{className:"modal-content",style:{backgroundColor:t}},o.a.createElement("div",{className:"modal-header align-items-center"},!1!==p&&o.a.createElement(o.a.Fragment,null,o.a.createElement("h4",{className:"modal-title trancated-text","data-tip":p.description},Pe),o.a.createElement($.a,{place:"top",type:"info",effect:"solid"})),o.a.createElement("button",{className:"close",onClick:()=>e.onClose(),style:{color:r,opacity:1},disabled:g})),o.a.createElement("div",{className:"modal-body"},!0===Q?o.a.createElement("div",{className:"text-center"},o.a.createElement("div",{className:"spinner-border",role:"status",style:{color:r}},o.a.createElement("span",{className:"sr-only"},"Loading..."))):o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"form-group col"},o.a.createElement("textarea",{id:"description",name:"description",className:"form-control",value:ee,onChange:e=>te(e.target.value),disabled:g}))),o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"col"},o.a.createElement(o.a.Fragment,null,o.a.createElement("label",null,"Blur Photo/Video"),o.a.createElement("div",{className:"form-group"},o.a.createElement("div",{className:"from-check form-check-inline"},o.a.createElement("input",{className:"form-check-input",type:"radio",value:!0,checked:!0===ae,onChange:()=>ne(!0),name:"privateBlur1",id:"REVIEW_PHOTO_BLUR1",disabled:g}),o.a.createElement("label",{className:"form-check-label",htmlFor:"REVIEW_PHOTO_BLUR1"},"Enable Blur")),o.a.createElement("div",{className:"from-check form-check-inline"},o.a.createElement("input",{className:"form-check-input",type:"radio",value:!1,checked:!1===ae,onChange:()=>ne(!1),name:"privateBlur1",id:"REVIEW_PHOTO_NOT_BLUR1",disabled:g}),o.a.createElement("label",{className:"form-check-label",htmlFor:"REVIEW_PHOTO_NOT_BLUR1"},"Disable Blur")))),o.a.createElement("label",null,"Blur Caption"),o.a.createElement("div",{className:"form-group"},o.a.createElement("div",{className:"from-check form-check-inline"},o.a.createElement("input",{className:"form-check-input",type:"radio",value:!0,checked:!0===oe,onChange:()=>ie(!0),name:"captionBlur1",id:"enableCaption1",disabled:g}),o.a.createElement("label",{className:"form-check-label",htmlFor:"enableCaption1"},"Enable Blur")),o.a.createElement("div",{className:"from-check form-check-inline"},o.a.createElement("input",{className:"form-check-input",type:"radio",value:!1,checked:!1===oe,onChange:()=>ie(!1),name:"captionBlur1",id:"disableCaption1",disabled:g}),o.a.createElement("label",{className:"form-check-label",htmlFor:"disableCaption1"},"Disable Blur"))))),!1!==p&&!0===p.isLocked&&o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"form-group col col-md-6 col-lg-6"},o.a.createElement("label",{htmlFor:"amount"},"Amount"),o.a.createElement("input",{type:"number",className:"form-control",id:"amount",name:"amount",value:re,onChange:e=>se(e.target.value),min:s,max:l,disabled:g}))),d&&o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"form-group col-md-12 col-lg-6"},o.a.createElement("label",{htmlFor:"feed-tag"},"Tag"),o.a.createElement(U.a,{name:"FeedTag",className:"text-dark",isMulti:!0,options:e.blog.tagList,value:le,onChange:e=>(e=>{me("");let t=[];for(const a of e){const e=a.value.trim().toLowerCase(),n=y.a.get(a,"__isNew__",!1);if(""===e)me("Tag not allow empty");else if(n){void 0!==m.find(t=>t.slug===e)?me("Tag already added"):t.push(a)}else t.push(a)}ce(t)})(e),noOptionsMessage:()=>"No Tags Available",isDisabled:g}),""!==de&&o.a.createElement("div",{className:"invalid-feedback d-block"},de))),o.a.createElement("div",{style:{height:"100%",textAlign:"center",color:"#ECECEC",outline:"0px"}},o.a.createElement(X,{content_color:a,site_font_color:r},o.a.createElement("h4",{style:{color:r,marginBottom:"0%"}},"Upload Media"),o.a.createElement("div",{className:"row justify-content-center"},Se("original"),!1===x&&o.a.createElement(o.a.Fragment,null,xe("original"))),v.length>1&&o.a.createElement(J,{content_color:a,site_font_color:r,className:"mt-3 ml-3 mb-3"},o.a.createElement("div",{className:"custom-control custom-switch"},o.a.createElement("input",{type:"checkbox",className:"custom-control-input",id:"REORDER_MODE",name:"ReorderMode",onChange:()=>{N(!x)},checked:x,disabled:g}),o.a.createElement("label",{className:"custom-control-label",htmlFor:"REORDER_MODE"},"Reorder")))),_e.length>0&&fe.length>0&&o.a.createElement("hr",{className:"my-2"}),_e.length>0&&o.a.createElement(X,{content_color:a,className:"my-3"},o.a.createElement("div",{className:"text-center"},o.a.createElement("h4",{style:{color:r,marginBottom:"0%"}},"Preview"),o.a.createElement("div",{className:"row justify-content-center"},b.length>0?o.a.createElement(o.a.Fragment,null,Se("preview")):o.a.createElement(o.a.Fragment,null,xe("preview"))))),o.a.createElement("label",{className:"d-flex justify-content-center mt-2",style:{color:r}},o.a.createElement("span",{className:"text-danger",style:{fontSize:"24px"}},"*"),ye),o.a.createElement("div",{className:"row justify-content-center my-3"},fe.map((e,t)=>o.a.createElement("div",{key:t,className:"col-md-4 col-12"},["video"].includes(e.content_type)?o.a.createElement(q,{onClick:()=>{Oe(e.url,"video")}},D.isIOS?o.a.createElement("video",{src:e.url,poster:Object(G.a)("images/no-preview-video.png"),id:"uploaded-video",style:{height:"150px",width:"100%",position:"relative",backgroundColor:"black",border:"1px solid red"}}):o.a.createElement("video",{src:e.url,id:"uploaded-video",style:{height:"150px",width:"100%",position:"relative",backgroundColor:"black",border:"1px solid red"}}),o.a.createElement(Y,null,o.a.createElement("span",{className:"video-button-span"},o.a.createElement("i",{className:"fas fa-play-circle play-icon"})))):o.a.createElement("div",{onClick:()=>{Oe(e.url,"photo")}},o.a.createElement("img",{src:e.url,style:{border:"1px solid red"},alt:"error-content"})))),_e.map((e,t)=>o.a.createElement("div",{key:t,className:"col-md-4 col-12"},["video"].includes(e.content_type)?o.a.createElement(q,{onClick:()=>{Oe(e.url,"video")}},D.isIOS?o.a.createElement("video",{src:e.url,poster:Object(G.a)("images/no-preview-video.png"),id:"uploaded-video",style:{height:"150px",width:"100%",position:"relative",backgroundColor:"black",border:"1px solid red"}}):o.a.createElement("video",{src:e.url,id:"uploaded-video",style:{height:"150px",width:"100%",position:"relative",backgroundColor:"black",border:"1px solid red"}}),o.a.createElement(Y,null,o.a.createElement("span",{className:"video-button-span"},o.a.createElement("i",{className:"fas fa-play-circle play-icon"})))):o.a.createElement("div",{onClick:()=>{Oe(e.url,"photo")}},o.a.createElement("img",{src:e.url,style:{border:"1px solid red"},alt:"error-content"})),o.a.createElement("label",null,"Preview"))))),o.a.createElement("button",{className:"btn btn-block",disabled:g,style:{backgroundColor:a,color:i,boxShadow:`0 5px 15px 0 ${c}44, 0 4px 15px 0 ${c}44`},onClick:async t=>{if(t.preventDefault(),0===v.length)return e.setSweetAlert({description:"Please Select Media"});if(re<s||re>l)return e.setSweetAlert({description:`Choose an amount between ${s} and ${l}`}),se(s);h(!0);for(let i=0;i<v.length;i++){const t=v[i];if(!0===t.is_new_file){let a=Object(k.a)(t.selectedFile.name);if(a=a.toUpperCase(),!["PNG","JPG","JPEG","MP4","MOV"].includes(a))return h(!1),e.setSweetAlert({description:`Image Number ${i+1} media format is not supported.`})}}for(let i=0;i<b.length;i++){const t=b[i];let a=Object(k.a)(t.selectedFile.name);if(a=a.toUpperCase(),!["PNG","JPG","JPEG","MP4","MOV"].includes(a))return h(!1),e.setSweetAlert({description:"Preview media format is not supported."})}let a=[...v];const n=a.filter(e=>!0===e.is_new_file),o={blog_id:e.blog_id,contentLeftForProcessing:n.length+b.length,privateBlur:ae,captionBlur:oe,description:ee,media:[],media_preview:[],feed_tags:le};p.isLocked&&(o.amount=re);for(let i=0;i<b.length;i++){const t=b[i];let a=Object(k.a)(t.selectedFile.name),n="photo";["mp4","mov","MP4","MOV"].includes(a)&&(n="video"),he(e=>e+1);let r=await Object(R.a)(t.selectedFile.name,"blog",n);if(""===r.presigned_url)return h(!1),Object(B.b)("presigned_url_generate","error",r.message),e.setSweetAlert({description:r.message});if(!0!==await we(n,r.presigned_url,t.selectedFile,i,"preview"))return h(!1),Object(B.b)("presigned_url_generate","error",r.message),e.setSweetAlert({description:r.message});o.media_preview.push({url:r.file_name,is_process:!0,content_type:n,is_error:!1})}for(let i=0;i<a.length;i++){const t=a[i];if(!0===t.is_new_file){let a=Object(k.a)(t.selectedFile.name),n="photo";["mp4","mov","MP4","MOV"].includes(a)&&(n="video"),he(e=>e+1);let r=await Object(R.a)(t.selectedFile.name,"blog",n);if(""===r.presigned_url)return h(!1),Object(B.b)("presigned_url_generate","error",r.message),e.setSweetAlert({description:r.message});if(!0!==await we(n,r.presigned_url,t.selectedFile,i))return h(!1),Object(B.b)("presigned_url_generate","error",r.message),e.setSweetAlert({description:r.message});o.media.push({url:r.file_name,is_process:!0,content_type:n,is_error:!1,is_new_file:!0})}else o.media.push({url:t.url,is_process:!1,content_type:t.content_type,is_error:!1})}e.postReviewedBlog(o,()=>{e.onClose(),h(!1),ue(0),he(0)})}},g&&pe>0&&o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"spinner-border spinner-border-sm mr-2"}),"uploading \xa0",pe>0&&`${1===pe?1:ge}/${pe}`),(!g||0===pe)&&"Exclude error content and post")))))))}))),Z=a(51),ee=a(156),te=a(1);a(454);const ae=f.a.div`
    padding-left: 10px;
    position: relative;
    border: 1px solid lightgray;
    cursor: pointer;
    min-height: 60px;
    margin-bottom: 8px;
    border-radius: 5px;
    :hover {
        background-color: rgba(0, 0, 0, 0.08);
    }
`,ne=f.a.button`
    box-shadow: none;
    border-radius: 20px !important;
    color: ${e=>e.site_font_color};
    position: absolute;
    top: 5px;
    right: 10px;
    &:hover {
        box-shadow: none;
        border-radius: 20px;
        color: ${e=>e.site_font_color};
    }
`,oe=f.a.div`
    cursor: pointer;

    &:hover, &:active, &:focus {
        background: transparent;
        color: #16181b;
    }

`;var ie=Object(c.b)(e=>({auth:e.auth,blog:e.blog,user:e.user}),{setSweetAlert:j.e,deleteFeedTag:ee.c,addOrRemoveFeedTag:ee.a,getAllBlogs:M.g,setLoading:M.s})(Object(l.g)((function(e){const[t,a]=Object(n.useState)(!0),[i,r]=Object(n.useState)([]),[s,l]=Object(n.useState)([]),[d,m]=Object(n.useState)(!1),[p,u]=Object(n.useState)([]),[g,h]=Object(n.useState)(""),[b,f]=Object(n.useState)(!1),[_,E]=Object(n.useState)(!1),{site_font_color:v,content_color:w,content_font_color:x,feed_tags:k}=e.auth.appSettings,N=Object(c.c)();Object(n.useEffect)(()=>{C();const t=y.a.clone(e.feedTags);if(t){l(t);let e=t.map((function(e){return e.id}));r(e)}},[]);const S=e=>{f(!1);const t=e.target.value;let a=k.find(e=>e._id===t),n=s||[];if(i.includes(t))a&&(n=n.filter(e=>e.id!==t)),r(i.filter(e=>e!==t));else{a&&n.push({id:a._id,slug:a.slug});const e=i;e.push(a._id),r(e)}l(n)},C=async()=>{a(!0);const t=e.auth.appSettings.feed_tags;u(t),a(!1)},T=()=>{(async()=>{const t={feedTags:s,blogId:e.blogId};m(!0),a(!0);const n=await e.addOrRemoveFeedTag(t);l(n.data.feed_tags),N({type:te.nc,payload:n.data}),m(!1),a(!1),e.onShowFeedTag(),N(Object(j.e)({description:n.message}))})()};return o.a.createElement(o.a.Fragment,null,!0===e.isAddTag&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{style:{paddingLeft:"2px"}},o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"form-group col"},o.a.createElement("div",{className:"d-flex align-items-end"},o.a.createElement("input",{type:"text",id:"tag-name",className:"form-control input-name",placeholder:"Search here...",name:"tag-name",disabled:d,value:g,style:{width:"100%"},onChange:t=>(t=>{f(!1);let a=t.target.value;h(a);let n=[];n=e.auth.appSettings.feed_tags.filter(e=>-1!==e.name.toLowerCase().search(a.toLowerCase())),u(n)})(t)}))))),o.a.createElement(o.a.Fragment,null,!1===d&&t?o.a.createElement("div",{className:"text-center"},o.a.createElement("div",{className:"spinner-border",role:"status",style:{color:v}},o.a.createElement("span",{className:"sr-only"},"Loading..."))):p.length>0?p.map((t,n)=>o.a.createElement("div",{key:t._id,className:"form-row",style:{pointerEvents:d?"none":""}},o.a.createElement("div",{className:"form-group col mb-0"},o.a.createElement(ae,null,o.a.createElement("input",{className:"form-check-input ml-2",style:{opacity:d?.5:"",marginTop:"18px",height:"20px",width:"20px",borderRadius:"1.25em"},onChange:S,type:"checkbox",name:"products",value:t._id,defaultChecked:i&&i.includes(t._id),id:t._id}),o.a.createElement("label",{className:"form-check-label pt-4",style:{cursor:"pointer",height:"52px",marginTop:"2px",width:"90%",paddingLeft:"40px"},htmlFor:t._id},t.name),o.a.createElement(ne,{className:"btn",site_font_color:v,onClick:()=>(e=>{f(!b),E(e)})(n)},o.a.createElement("i",{className:"fas fa-ellipsis-v"}))),b&&n===_&&o.a.createElement("div",{className:"dropdown-menu show",style:{right:"5px",top:"57px",left:"auto"}},o.a.createElement(oe,{className:"dropdown-item",onClick:()=>{e.showAddNewTag({id:t._id,name:t.name,slug:t.slug})}},"Edit"),o.a.createElement(oe,{className:"dropdown-item",onClick:()=>(async t=>{const n=y.a.clone(e.feedTags);if(n){l(n);let e=n.map((function(e){return e.id}));r(e)}else l([]),r([]);if(window.confirm("Are you sure you want to delete this tag?")){a(!0);const n=await e.deleteFeedTag(t);u(n.data),a(!1)}if(f(!1),e.blog.selectedTag===t){e.setLoading(!0);let t={pageNum:1};await e.getAllBlogs(e.auth.user.isAdmin,t,()=>{})}})(t._id)},"Delete"))))):o.a.createElement("div",{className:"text-center mb-4"},"No Record Found")),o.a.createElement("div",{className:"modal-header align-items-center border-top btn-create custom-responsive-btns p-3",style:{borderBottom:"none"}},o.a.createElement("button",{className:"btn float-left",style:{backgroundColor:w,color:x},disabled:d||t,onClick:()=>{e.showAddNewTag({name:"",slug:""})},type:"button"},"Create New Tag"),o.a.createElement("button",{className:"btn float-right",style:{backgroundColor:w,color:x},disabled:d||t||0===p.length,onClick:()=>T(),type:"button"},(d||t)&&o.a.createElement("span",{className:"spinner-border spinner-border-sm mr-2"}),"Update"))))}))),re=a(272);const se=Object(w.a)(()=>({colorBackgr:{display:"grid",height:"250px",backgroundColor:"0xff0000",alignItems:"center",justifyContent:"center"},lockBackgr:{position:"relative"},lockAsideImg:{position:"absolute",top:"calc(50% - 25px)",left:"calc(15% - 25px)",width:"50px",height:"50px"},lockTopImg:{width:"50px",height:"50px",padding:"5px",borderRadius:"100px",WebkitMaskSize:"50px 40px",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center",backgroundColor:"#e91e63",mask:`url(${Object(G.a)("blog/lock.svg")})`,WebkitMask:`url(${Object(G.a)("blog/lock.svg")})`,margin:"auto"},dollarTopImg:{width:"50px",height:"50px",padding:"5px",borderRadius:"100px"},lockTxt:{position:"absolute",top:"calc(50% + 30px)",left:"calc(50% - 100px)",textAlign:"center"},container:{position:"relative",color:"white"},centered:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textDecoration:"none",marginTop:"40px",color:"#000000"},lockBackgrNewGallery:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center"}})),le="320px",ce="767px",de="1024px",me="1440px",pe=f.a.div`
    top: calc(50% - 42px);
    left: 0;
    right: 0;
    position: absolute;
    text-align: center;
    width: 100%;

    div:nth-child(1) {
        width: fit-content;
        width: -moz-fit-content;
        min-width: 50px;
        background-color: ${e=>e.lockIconColor};
    }
`,ue=f.a.div`
    position: absolute;
    text-align: center;
    width: 100%;
    top: calc(50% - 25px);
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
`,ge=f.a.div`
    bottom: ${e=>e.marginBottom};
    left: 0;
    right: 0;
    position: absolute;
    text-align: center;
    width: 90%;
    margin: auto;

    button {
        font-size: ${e=>e.buttonFontSize[3]} !important;
    }
    @media (min-width: ${le}) and (max-width: ${ce}) {
        button {
            font-size: ${e=>e.buttonFontSize[0]} !important;
        }
    }

    @media (min-width: ${ce}) and (max-width: ${de}) {
        button {
            font-size: ${e=>e.buttonFontSize[1]} !important;
        }
    }

    @media (min-width: ${de}) and (max-width: ${me}) {
        button {
            font-size: ${e=>e.buttonFontSize[2]} !important;
        }
    }
`,he=f.a.button`
    box-shadow: none;
    border-radius: 20px !important;

    &:hover {
        box-shadow: none;
        background-color: #c7c7c7;
        border-radius: 20px;
    }
`,be=f.a.div`
    background-color: ${e=>e.cardColor} !important;

    .card-header {
        border-bottom: 1px solid ${e=>e.sitesFontColor};
    }
`,fe=f.a.i`
    color: ${e=>e.sitesFontColor};
`,_e=f.a.h4`
    color: transparent;
    text-shadow: 0 0 ${e=>e.postCaptionBlurIntensity}px ${e=>e.sitesFontColor};
`,ye=f.a.img`
    cursor: pointer;
    max-height: 80vh;
    min-width: 100%;
    object-fit: contain;
`,Ee=f.a.div`
    position: absolute;
    top: calc(48.5%);
    left: calc(47.5%);
    cursor: pointer;

    .video-button-span {
        font-size: 30px;
        color: rgb(211, 211, 211);
        background-color: black;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        position: relative;
        display: inline-block;
    }

    .play-icon {
        font-size: 30px;
        position: absolute;
        border-radius: 51px;
        left: -5px;
        top: -5px;
    }
`,ve=f.a.div`
    padding: 0 1.5rem;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;

    @media (min-width: ${le}) and (max-width: ${ce}) {
        padding: 0;
        height: auto;
    }

    @media (min-width: ${ce}) and (max-width: ${de}) {
        padding: 0;
        height: auto;
    }
`,we=f.a.div`
    font-size: 16px;
    color: #000000;
    text-align: center;
    position: ${e=>e.position};
    ${e=>e.topBottomPosition};
    ${e=>e.leftRightPosition};
    background-color: transparent !important;

    > span { 
        background-color: #ddddddaa;
        border-radius: 5px;
        padding: 0 5px;
        display: inline-block;
    }

    span > span {
        margin-right: 5px;
    }

    i {
        margin: ${e=>e.mt} 2px 7px 7px;
    }
`,xe=f.a.div`
    padding: 5px 0;

    @media (min-width: ${le}) and (max-width: ${de}) {
        padding: 5px 10px;
    }
`,ke=f.a.div`
    @media (min-width: ${le}) and (max-width: ${de}) {
        margin-top: 0.75rem !important;
    }
`;var Ne=Object(c.b)(e=>({auth:e.auth}),{addOrDeleteFeedLike:M.c})(Object(l.g)((function(e){let{id:t,format:a,lock:o,locked:i,blur:r,description:l,index:c,avatarUrl:d,authorName:m,date:p,blogType:u,contentURL:g="",openDlgBlog:h,thumbnailUrl:b,deletePost:f,isAdmin:_,isAuthenticated:E,processing:w,openEditBlogDialog:k,blurUrl:N,isBlurLoading:S,refreshBlurImage:C,isModel:T,role:A,rotateImageLeft:M,rotateImageRight:j,openDropdown:F,closeDropdown:L,isDropdownOpen:D,dropdownIndex:$,isLocked:R,amount:B,unlockContent:U,isPaymentProcessing:z,contentColor:W,contentFontColor:H,createVideoProcessingRequest:q,isPostLocked:V,enableWatermark:Y,userId:K,cardBackgroundColor:J,siteFontColor:X,captionBlur:ee,postCaptionBlurIntensity:te,userMembership:ae,galleryImages:ne,blurGalleryImages:oe,error:le,openReuseBlogDialogBox:ce,lockIconColor:de,subscribeText:me,promotionPercentage:Ne,lineThroughColor:Se,content_length:Ce,unlockButtonFontSize:Te,thumbnailUrlGallery:Oe,contentLeftForProcessing:Pe,isPreviewEnable:Ie,contentCount:Ae,show_content_length:Me,blogSubType:je,is_published:Fe,gallery_process_error_index:Le,showTimestamp:De,media:$e,media_preview:Re,auth:Be,history:Ue,total_comments:Ge,total_likes:ze,user_feed_like:We,addOrDeleteFeedLike:He,feed_tags:qe,onGetBlogs:Ve}=e;const Ye=e=>{if(e<60)return`The video is ${e} seconds.`;let t=Math.floor(e/60),a=e-60*t;return 1===t?0===a||1===a?`The video is ${t} minute ${a} second.`:`The video is ${t} minute ${a} seconds.`:0===a||1===a?`The video is ${t} minutes ${a} second.`:`The video is ${t} minutes ${a} seconds.`},[Ke,Je]=n.useState(!1),[Xe,Qe]=n.useState(!1),[Ze,et]=n.useState(""),[tt,at]=n.useState(""),[nt,ot]=n.useState(!1),[it,rt]=n.useState(!1),{is_feed_comment_enabled:st,comment_visibility:lt,is_feed_like_enabled:ct,like_visibility:dt,feed_tags_enable:mt,show_media_count_in_exclusive_content:pt,font_family:ut,enable_like_count_for_private_locked_post:gt,enable_comment_count_for_private_locked_post:ht}=Be.appSettings,[bt,ft]=n.useState(!1),[_t,yt]=n.useState({name:"",slug:""}),[Et,vt]=n.useState(""),[wt,xt]=n.useState(!1),[kt,Nt]=n.useState(!1),[St,Ct]=n.useState(!0);n.useEffect(()=>{!0===st&&Tt(st,lt,ot),!0===ct&&Tt(ct,dt,rt)},[Be.isAuthenticated]);const Tt=(e,t,a)=>{const n=y.a.get(Be,"isAuthenticated",!1),o=y.a.get(Be,"user.ccbillSubscriptionStatus","0"),i=["0","1","2"],r=["1","2"];!0!==le&&!1===w&&!0===e?!1===n?a("everyone"===t):("everyone"===t&&a(!0),"registered_and_subscribers"===t&&i.includes(o)&&a(!0),"subscribers"===t&&r.includes(o)&&a(!0),!0===_&&a(!0)):a(!1)},Ot=()=>{document.querySelector("body").style.overflow="hidden",Qe(!0)},Pt=e=>{et(e.url),at(e.content_type),Je(!Ke)},[It,At]=n.useState(0),Mt=se();let jt=ee;const Ft=e=>Math.ceil(e*(100-Ne)/100),Lt=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"absolute";const a=y.a.get(Ae,"photo",0),o=y.a.get(Ae,"video",0);let i=a,r=o;"user"!==A&&void 0!==A&&"proxy_user"!==A||pt||(i="",r="");const{watermark_position:s}=Be.appSettings,l="bottom-left"===s||"bottom-right"===s||!0===e?"top: 5px;":"bottom: 5px;";let c;return c="absolute"===t?!0===e?"right: auto; top: auto; bottom: 60px; left: 50%; transform: translateX(-50%);":"left: 0px; right: 0px; margin: 5px auto 0px;":"margin: 0px auto;",n.createElement(we,{contentColor:W,mt:"Myriad Pro Regular"===ut?"7px":"8px",fontColor:H,topBottomPosition:l,leftRightPosition:c,position:t},n.createElement("span",{style:{fontSize:e?"1.1rem":""}},a>0&&o>0&&n.createElement(n.Fragment,null,n.createElement("i",{className:"fas fa-image"})," ",i," | ",n.createElement("i",{className:"fas fa-video"})," ",n.createElement("span",null,r)),a>0&&0===o&&n.createElement(n.Fragment,null,n.createElement("i",{className:"fas fa-image"})," ",n.createElement("span",null,i)),0===a&&o>0&&n.createElement(n.Fragment,null,n.createElement("i",{className:"fas fa-video"})," ",n.createElement("span",null,r))))};let Dt;!0!==_&&!0!==ae||(jt=!1);let $t,Rt=E?"/membership":"/register",Bt=!1,Ut=me||"Please Subscribe to See Content";const Gt=(e,t,a,o)=>n.createElement("button",{className:"btn btn-block btn-sm mt-3 px-1",onClick:()=>Pt(e),disabled:t,style:{backgroundColor:a,color:o}},"PREVIEW");let zt;$t=Y?n.createElement(x.a,{userId:K},n.createElement(ye,{className:"mb-2",src:g,alt:"",draggable:!1,onClick:()=>h(c)})):n.createElement(ye,{className:"mb-2",src:g,alt:"",draggable:!1,onClick:()=>h(c)}),zt=Y?n.createElement(x.a,{userId:K},n.createElement("video",{key:g,poster:b,style:{maxHeight:"80vh",maxWidth:"100%"},onClick:()=>h(c)},n.createElement("source",{src:g})),n.createElement(Ee,null,n.createElement("span",{className:"video-button-span"},n.createElement("i",{className:"fas fa-play-circle play-icon"})))):n.createElement(n.Fragment,null,n.createElement("video",{key:g,poster:b,style:{maxHeight:"80vh",maxWidth:"100%"},onClick:()=>h(c)},n.createElement("source",{src:g})),n.createElement(Ee,null,n.createElement("span",{className:"video-button-span"},n.createElement("i",{className:"fas fa-play-circle play-icon"})))),Dt=!0===le?"video"===u?n.createElement("div",{style:{textAlign:"center"}},"Error: There was a problem with this video. Please try again.",n.createElement("button",{className:"btn btn-block",onClick:Ot,style:{backgroundColor:W,color:H}},"Review And Post")):n.createElement("div",{style:{textAlign:"center"}},"Error: There is problem in processing one or multiple content.",n.createElement("button",{className:"btn btn-block",onClick:Ot,style:{backgroundColor:W,color:H}},"Review And Post")):!0===w?n.createElement("div",{style:{textAlign:"center",padding:"5px"}},"This post is under process.",n.createElement("br",null),"It will be visible once processing is completed."):o?r?N?n.createElement(s.b,{className:Mt.lockBackgr,to:Rt,style:{display:"block"}},n.createElement("div",{className:"text-center",style:{overflow:"hidden",width:"100%",minWidth:"245px"}},n.createElement("img",{key:t,draggable:!1,src:N,alt:"",style:{maxHeight:"80vh"}})),n.createElement(pe,{lockIconColor:de},n.createElement("div",{style:{backgroundColor:"white",width:"fit-content",margin:"auto",borderRadius:"25px"}},n.createElement("div",{draggable:!1,className:Mt.lockTopImg})),n.createElement("div",{className:"mt-3",style:{color:"#000000",textShadow:"#fff 1px 0 10px"}},Ut),Lt(!0,"relative"))):n.createElement(s.b,{className:Mt.lockBackgr,to:Rt,style:{display:"block"}},n.createElement("div",{className:"text-center",style:{overflow:"hidden",width:"100%",minWidth:"245px"}},n.createElement("img",{key:t,draggable:!1,src:"photo"===u?g:b,style:{filter:"blur(15px)",maxHeight:"80vh"},alt:""})),n.createElement(pe,{lockIconColor:de},n.createElement("div",{style:{backgroundColor:"white",width:"fit-content",margin:"auto",borderRadius:"25px"}},n.createElement("div",{draggable:!1,className:Mt.lockTopImg})),n.createElement("div",{className:"mt-3",style:{color:"#000000",textShadow:"#fff 1px 0 10px"}},Ut),Lt(!0,"relative"))):n.createElement(s.b,{className:Mt.lockBackgr,to:Rt,style:{display:"block"}},n.createElement("div",{className:"card-img-top",style:{width:"100%",minWidth:"245px"}},n.createElement("img",{key:t,draggable:!1,className:"card-img-top",src:Object(G.a)("blog/lockback.jpg"),alt:"Lock Background",style:{height:"calc(60vh - 20px)"}})),n.createElement(pe,{lockIconColor:de},n.createElement("div",{style:{backgroundColor:"white",width:"fit-content",margin:"auto",borderRadius:"25px"}},n.createElement("div",{draggable:!1,className:Mt.lockTopImg})),n.createElement("div",{className:"mt-3",style:{color:"#000000"}},Ut),n.createElement("div",{className:"position-relative"},Lt(!0,"relative")))):R?n.createElement("div",{className:Mt.lockBackgr,style:{display:"block"}},n.createElement("div",{className:"text-center",style:{overflow:"hidden",paddingBottom:"10px",position:"relative"}},r?n.createElement("img",{key:t,draggable:!1,src:N,alt:"",style:{maxHeight:"80vh"}}):n.createElement("img",{key:t,draggable:!1,className:"card-img-top",src:Object(G.a)("blog/lockback.jpg"),alt:"Lock Background"}),n.createElement(ge,{marginBottom:"20px",buttonFontSize:Te},z?n.createElement("button",{className:"btn btn-block btn-sm",disabled:z,style:{backgroundColor:W,color:H}},"Payment Processing"):n.createElement(n.Fragment,null,0===Ne?n.createElement("button",{className:"btn btn-block",onClick:()=>U(t,B,u,l,!1),disabled:z,style:{backgroundColor:W,color:H}},"UNLOCK THIS ",u," FOR $",B):n.createElement("button",{className:"btn btn-block px-1",onClick:()=>U(t,Ft(B),u,l,!0),disabled:z,style:{backgroundColor:W,color:H}},"UNLOCK THIS ",u," FOR ",n.createElement("span",{style:{textDecoration:"line-through",textDecorationColor:Se,textDecorationThickness:"2px"}},"$",B)," $",Ft(B)))),!r&&!1===Ie&&n.createElement(ue,null,n.createElement("i",{className:"fas fa-dollar-sign fa-3x",style:{color:de}}))),void 0!==Ce&&0!==Ce&&!0===Me&&n.createElement(n.Fragment,null,n.createElement("span",{className:"text-center",style:{fontSize:"0.9em"}},Ye(Ce)),n.createElement("br",null)),0===Ne?n.createElement("span",{className:"text-center",style:{fontSize:"0.9em"}},"crypto_currency"===Be.user.default_payment_method?n.createElement(n.Fragment,null,"$",B," will be debited from wallet balance."):n.createElement(n.Fragment,null,"$",B," will be charged to the payment method you used previously on the website.")):n.createElement("span",{className:"text-center",style:{fontSize:"0.9em"}},"crypto_currency"===Be.user.default_payment_method?n.createElement(n.Fragment,null,"$",Ft(B)," will be debited from wallet balance."):n.createElement(n.Fragment,null,"$",Ft(B)," will be charged to the payment method you used previously on the website."))):n.createElement("div",{className:"text-center"},"photo"===u?$t:"video"===u?zt:null),!0!==le&&"gallery"===u&&!0!==w&&(o?r&&(Dt=n.createElement(s.b,{className:Mt.lockBackgr,to:Rt,style:{display:"block"}},n.createElement("div",{className:"text-center",style:{overflow:"hidden",width:"100%",minWidth:"245px"}},n.createElement(O,{is_published:Fe,gallery_process_error_index:Le,openDlgBlog:h,isPreviewEnable:Ie,contentLeftForProcessing:Pe,galleryImages:oe,thumbnailUrlGallery:Oe,isLocked:o,setGalleryImageIndex:At,i:c})),n.createElement(pe,{lockIconColor:de},n.createElement("div",{style:{backgroundColor:"white",width:"fit-content",margin:"auto",borderRadius:"25px"}},n.createElement("div",{draggable:!1,className:Mt.lockTopImg})),n.createElement("div",{className:"mt-3",style:{color:"#000000",textShadow:"#fff 1px 0 10px"}},Ut),Lt(!0,"relative")))):Dt=R?n.createElement("div",{className:Mt.lockBackgr,style:{display:"block"}},n.createElement("div",{className:"text-center",style:{overflow:"hidden",position:"relative"}},r?n.createElement(O,{is_published:Fe,gallery_process_error_index:Le,openDlgBlog:h,isPreviewEnable:Ie,contentLeftForProcessing:Pe,galleryImages:oe,thumbnailUrlGallery:Oe,isLocked:R,i:c,setGalleryImageIndex:At}):n.createElement("img",{key:t,draggable:!1,className:"card-img-top",src:Object(G.a)("blog/lockback.jpg"),alt:"Lock Background"}),n.createElement(ge,{marginBottom:"10px",buttonFontSize:Te},z?n.createElement("button",{className:"btn btn-block btn-sm",disabled:z,style:{backgroundColor:W,color:H}},"Payment Processing"):n.createElement(n.Fragment,null,0===Ne?n.createElement("button",{className:"btn btn-block btn-sm",onClick:()=>U(t,B,je,l,!1),disabled:z,style:{backgroundColor:W,color:H}},"UNLOCK THIS ",u," FOR $",B," ",n.createElement("br",null)):n.createElement("button",{className:"btn btn-block btn-sm px-1",onClick:()=>U(t,Ft(B),je,l,!0),disabled:z,style:{backgroundColor:W,color:H}},"UNLOCK THIS ",u," FOR ",n.createElement("span",{style:{textDecoration:"line-through",textDecorationColor:Se,textDecorationThickness:"2px"}},"$",B)," $",Ft(B)," ",n.createElement("br",null)),!0===Ke&&n.createElement(P.a,{url:Ze,handleClose:()=>{Pt("")},type:tt}))),!r&&!1===Ie&&n.createElement(ue,null,n.createElement("i",{className:"fas fa-dollar-sign fa-3x",style:{color:de}}))),Lt(!0),0===Ne?n.createElement("span",{className:"d-flex",style:{fontSize:"0.9em"}},"crypto_currency"===Be.user.default_payment_method?n.createElement(n.Fragment,null,"$",B," will be debited from wallet balance."):n.createElement(n.Fragment,null,"$",B," will be charged to the payment method you used previously on the website.")):n.createElement("span",{className:"d-flex",style:{fontSize:"0.9em"}},"crypto_currency"===Be.user.default_payment_method?n.createElement(n.Fragment,null,"$",Ft(B)," will be debited from wallet balance."):n.createElement(n.Fragment,null,"$",Ft(B)," will be charged to the payment method you used previously on the website."))):Pe>0?n.createElement(O,{is_published:Fe,gallery_process_error_index:Le,contentLeftForProcessing:Pe,galleryImages:ne,thumbnailUrlGallery:Oe,isLocked:!1,openDlgBlog:h,isPreviewEnable:Ie,i:c,setGalleryImageIndex:At}):n.createElement(x.a,{userId:K},n.createElement(O,{is_published:Fe,gallery_process_error_index:Le,contentLeftForProcessing:Pe,galleryImages:ne,thumbnailUrlGallery:Oe,isLocked:!1,openDlgBlog:h,isPreviewEnable:Ie,i:c,setGalleryImageIndex:At}),Lt(!1))),!0!==le&&!0!==w&&(o?r&&(Dt=n.createElement(s.b,{className:Mt.lockBackgrNewGallery,to:Rt,style:{textDecoration:"none"}},n.createElement("div",{className:"text-center",style:{overflow:"hidden",width:"100%",minWidth:"245px"}},n.createElement(I.a,{media:$e,isLocked:o,setCurrentMediaIndex:At,isPreviewEnable:Ie,is_published:Fe,openDlgBlog:h,i:c,contentLeftForProcessing:Pe})),n.createElement(pe,{lockIconColor:de},n.createElement("div",{style:{backgroundColor:"white",width:"fit-content",margin:"auto",borderRadius:"25px"}},n.createElement("div",{draggable:!1,className:Mt.lockTopImg})),n.createElement("div",{className:"mt-3",style:{color:"#000000",textShadow:"#fff 1px 0 10px"}},Ut),n.createElement("div",{className:"position-relative"},Lt(!0,"relative"))),void 0!==Re&&Re.length>0&&Gt(Re[0],z,W,H))):R?Dt=n.createElement("div",{className:Mt.lockBackgrNewGallery},n.createElement("div",{className:"text-center",style:{overflow:"hidden",position:"relative"}},r?n.createElement(I.a,{media:$e,isLocked:R,setCurrentMediaIndex:At,isPreviewEnable:Ie,is_published:Fe,openDlgBlog:h,i:c,contentLeftForProcessing:Pe}):n.createElement("img",{key:t,draggable:!1,className:"card-img-top",src:Object(G.a)("blog/lockback.jpg"),alt:"Lock Background",style:{height:"calc(60vh - 20px)"}}),n.createElement(ge,{marginBottom:"10px",buttonFontSize:Te},z?n.createElement("button",{className:"btn btn-block btn-sm",disabled:z,style:{backgroundColor:W,color:H}},"Payment Processing"):n.createElement(n.Fragment,null,0===Ne?n.createElement("button",{className:"btn btn-block btn-sm",onClick:()=>U(t,B,je,l,!1),disabled:z,style:{backgroundColor:W,color:H}},"UNLOCK THIS ",u," FOR $",B," ",n.createElement("br",null)):n.createElement("button",{className:"btn btn-block btn-sm px-1",onClick:()=>U(t,Ft(B),je,l,!0),disabled:z,style:{backgroundColor:W,color:H}},"UNLOCK THIS ",u," FOR ",n.createElement("span",{style:{textDecoration:"line-through",textDecorationColor:Se,textDecorationThickness:"2px"}},"$",B)," $",Ft(B)," ",n.createElement("br",null)),n.createElement("div",{className:"position-relative"},Lt(!0)),void 0!==Re&&Re.length>0&&Gt(Re[0],z,W,H),!0===Ke&&n.createElement(P.a,{url:Ze,handleClose:()=>{Pt("")},type:tt}))),!r&&!1===Ie&&n.createElement(ue,null,n.createElement("i",{className:"fas fa-dollar-sign fa-3x",style:{color:de}}))),n.createElement(xe,null,!0===Me&&"video"===u&&n.createElement("span",{className:"mb-2 d-flex",style:{fontSize:"0.9em",padding:"0"}},Ye(Ce)),0===Ne?n.createElement("span",{className:"d-flex",style:{fontSize:"0.9em",padding:"0"}},"crypto_currency"===Be.user.default_payment_method?n.createElement(n.Fragment,null,"$",B," will be debited from wallet balance."):n.createElement(n.Fragment,null,"$",B," will be charged to the payment method you used previously on the website.")):n.createElement("span",{className:"d-flex",style:{fontSize:"0.9em",padding:"0"}},"crypto_currency"===Be.user.default_payment_method?n.createElement(n.Fragment,null,"$",Ft(B)," will be debited from wallet balance."):n.createElement(n.Fragment,null,"$",Ft(B)," will be charged to the payment method you used previously on the website.")))):Pe>0?Dt=n.createElement(I.a,{media:$e,isLocked:!1,setCurrentMediaIndex:At,isPreviewEnable:Ie,is_published:Fe,openDlgBlog:h,i:c,contentLeftForProcessing:Pe}):(Dt=n.createElement("div",{className:"mb-2"},n.createElement(x.a,{userId:K},n.createElement(I.a,{media:$e,isLocked:!1,setCurrentMediaIndex:At,isPreviewEnable:Ie,is_published:Fe,openDlgBlog:h,i:c,contentLeftForProcessing:Pe}),Lt(!1)),void 0!==Re&&Re.length>0&&Gt(Re[0],z,W,H)),Bt=!0));const Wt=()=>{xt(!1),ft(!0)};return n.createElement("div",{className:"col-12 col-lg-4 mb-5",id:"feed_"+t},n.createElement(be,{className:"card h-100",cardColor:J,sitesFontColor:X},n.createElement("div",{className:"card-body pb-0"},n.createElement("div",{style:{paddingTop:"0px !important",display:"flex",alignItems:"center"}},n.createElement("img",{src:d,className:"img-fluid",alt:"",style:{height:"50px",borderRadius:"25px"},draggable:!1}),n.createElement("span",{className:"pl-2 w-auto"},m,n.createElement("br",null),_||!1!==De?""+v()(p).fromNow():""),_&&E?n.createElement("div",{className:"row ml-auto"},V?n.createElement("button",{className:"btn w-auto d-flex align-items-center",style:{boxShadow:"none"},disabled:!0},n.createElement(fe,{className:"fas fa-dollar-sign",sitesFontColor:X})):i?n.createElement("button",{className:"btn w-auto",style:{boxShadow:"none"},disabled:!0},n.createElement(fe,{className:"fas fa-lock",sitesFontColor:X})):n.createElement("button",{className:"btn w-auto",style:{boxShadow:"none"},disabled:!0},n.createElement(fe,{className:"fas fa-globe-americas",sitesFontColor:X})),"live_stream_manager"===A?n.createElement(n.Fragment,null):n.createElement("div",{className:"dropdown w-auto",id:c},D&&c===$?n.createElement(he,{className:"btn",onClick:()=>L()},n.createElement(fe,{className:"fas fa-chevron-up",sitesFontColor:X})):n.createElement(he,{className:"btn",onClick:()=>(e=>F(e))(c)},n.createElement(fe,{className:"fas fa-chevron-down",sitesFontColor:X})),D&&c===$?S?n.createElement("div",{className:" dropdown-menu show text-center","aria-labelledby":c,style:{right:"0",left:"auto"}},n.createElement("div",{className:"spinner-border",role:"status",style:{color:"#000000"}},n.createElement("span",{className:"sr-only"},"Loading..."))):n.createElement("div",{className:"dropdown-menu show","aria-labelledby":c,style:{right:"0",left:"auto",zIndex:"1"}},!0!==le&&!1===w&&n.createElement(n.Fragment,null,n.createElement("button",{className:"dropdown-item",style:{boxShadow:"none"},onClick:()=>k(t,l,ee,V,i,Re,$e,qe)},n.createElement("i",{className:"fas fa-edit"}),"\xa0\xa0\xa0 Edit Post"),mt&&n.createElement("button",{className:"dropdown-item",style:{boxShadow:"none"},onClick:()=>(e=>{vt(e),ft(!0)})(t)},n.createElement("i",{className:"fas fa-plus"}),"\xa0\xa0\xa0 Add / remove Tags"),!1===T&&"content_manager"!==A&&r?n.createElement("button",{className:"dropdown-item",onClick:()=>C(t,a),disabled:S},n.createElement("i",{className:"fas fa-sync"}),"\xa0\xa0\xa0 Refresh Blur Image"):null,"photo"!==u&&"gallery"!==u||"photo"!==$e[It].content_type?null:n.createElement("button",{className:"dropdown-item",onClick:()=>M(t,It,a),disabled:S},n.createElement("i",{className:"fas fa-undo"}),"\xa0\xa0\xa0 Rotate Image Left"),"photo"!==u&&"gallery"!==u||"photo"!==$e[It].content_type?null:n.createElement("button",{className:"dropdown-item",onClick:()=>j(t,It,a),disabled:S},n.createElement("i",{className:"fas fa-redo-alt"}),"\xa0\xa0\xa0 Rotate Image Right"),!0===V?n.createElement("button",{className:"dropdown-item",style:{boxShadow:"none"},onClick:()=>ce(t)},n.createElement("i",{className:"fas fa-paper-plane"}),"\xa0\xa0\xa0 Reuse Post"):null),n.createElement("button",{className:"dropdown-item",style:{boxShadow:"none"},onClick:()=>{f(t)}},n.createElement("i",{className:"fas fa-trash"}),"\xa0\xa0\xa0 Delete Post"),!1===T&&"content_manager"!==A&&"video"===u&&!0===w?n.createElement("button",{className:"dropdown-item",onClick:()=>q(t,r,g),disabled:S},n.createElement("i",{className:"fas fa-sync"}),"\xa0\xa0\xa0 Send Video Process Request"):null):null)):n.createElement(n.Fragment,null)),n.createElement("div",{style:{paddingTop:"20px"}},jt?n.createElement(_e,{sitesFontColor:X,postCaptionBlurIntensity:te},l):n.createElement("h4",null,l),_&&E&&V&&"live_stream_manager"!==A&&((e,t,a)=>n.createElement("div",{className:"d-block ml-1",style:{fontSize:"15px"}},0===e?n.createElement("span",null," $",t," "):n.createElement(n.Fragment,null,n.createElement("span",{style:{textDecoration:"line-through",textDecorationColor:a,textDecorationThickness:"2px"}},"$",t)," $",Ft(t))))(Ne,B,Se))),!0===bt&&n.createElement(Z.a,{classes:"modal-md pb-0",title:"SELECT TAGS",showCloseBtn:!0,handleClose:()=>ft(!1),fromChatList:!0,closeBtnFontSize:"25px",modalHeight:"38em",modalBodyMaxHeight:"30vh"},n.createElement(ie,{isAddTag:!0,onShowFeedTag:()=>{ft(!1),Ve(),L()},showAddNewTag:e=>{xt(!0),yt(e),ft(!1)},newTagStatus:kt,feedTags:qe,blogId:Et})),!0===wt&&n.createElement(re.a,{isAddNewTag:!_t.id,blogId:Et,addNewTag:()=>{Nt(!0)},feedTagList:Wt,feedTags:_t,hideAddNewTag:Wt}),n.createElement(ve,null,Dt),"live_stream_manager"===A?n.createElement(n.Fragment,null):(!0===nt||!0===it)&&n.createElement(ke,{className:"card-body py-0 mb-2 d-flex"},!0===it&&n.createElement("span",{className:"d-flex align-items-center mr-3",style:{cursor:"pointer",pointerEvents:!1===St?"none":"",opacity:!1===St?"0.4":"1.0"},onClick:()=>(async()=>{if(!1===Be.isAuthenticated)return!1;const e=y.a.get(Be,"user.ccbillSubscriptionStatus","0");if(("1"===e||"2"===e)&&!1===Bt)return!1;if(!1===Bt)return void Ue.push(Rt);const a=0===We?1:0;let n,o=ze;o=0===We?o+1:o-1,"proxy_user"===Be.user.role?(Ct(!1),n={}):n={id:t,is_like:a,total_likes:o},await He(n),Ct(!0)})()},(!1===E||0===We)&&n.createElement(fe,{className:"fas fa-light fa-heart mr-2","aria-hidden":"true",sitesFontColor:X,style:{fontSize:"22px",fontWeight:"normal",opacity:!1===Bt?"0.4":"1"}}),0!==We&&n.createElement(fe,{className:"fas fa-solid fa-heart mr-2",sitesFontColor:X,style:{fontSize:"22px"}}),gt||Bt?`${ze||0} Like${1===ze?"":"s"}`:""),!0===nt&&n.createElement("span",{onClick:()=>(e=>{const a=y.a.get(Be,"user.ccbillSubscriptionStatus","0");if(("1"===a||"2"===a)&&!1===e)return!1;!0===e?Ue.push("/feed/"+t):Ue.push(Rt)})(Bt),style:{cursor:"pointer"},className:"d-flex align-items-center"},n.createElement(fe,{className:"fas fa-light fa-comment mr-2",sitesFontColor:X,style:{fontSize:"22px",fontWeight:"normal",opacity:!1===Bt?"0.4":"1"}})," ",ht||Bt?`${Ge||0} Comment${1===Ge?"":"s"}`:""))),Xe?n.createElement(Q,{blog_id:t,onClose:()=>{document.querySelector("body").style.overflow="visible",Qe(!1)}}):null,!0===Ke&&n.createElement(P.a,{url:Ze,handleClose:()=>{Pt("")},type:tt}))}))),Se=a(96),Ce=a(68),Te=a(239),Oe=a(32),Pe=a(234),Ie=a(273),Ae=a.n(Ie),Me=a(181),je=a.n(Me),Fe=a(542),Le=a(545),De=a(541),$e=a(46),Re=a(119),Be=a(113);const Ue=f.a.section`
    width: 100%;
    height: fit-content;
    border: solid;
    border-width: 2px;
    border-radius: 5px;
    padding: 12px;
    border-color: ${e=>e.site_font_color};
`,Ge=f.a.button`
    right: 5px; 
    top: 0;
    position: absolute; 
    border-radius: 82%; 
    width: 24px;
    background-color: ${e=>e.content_color} !important; 
    color: ${e=>e.content_font_color} !important;
    cursor: pointer;

    :before {
        font-size: medium;
    }

    @media(max-width: 767px) {
        right: ${e=>!0===e.isRearrangeModeEnable?"20%":"13%"};
    }
`,ze=f.a.label`
    background-color: ${e=>e.content_color};
    color: ${e=>e.content_font_color};
    height: 100%;
    border-radius: 5px;
    cursor: ${e=>!1===e.disabled?"pointer":"inherit"};
    display: flex;
    cursor: pointer;
    box-shadow: 0 5px 15px 0 ${e=>e.button_shadow_color}44, 0 4px 15px 0 ${e=>e.button_shadow_color}44 !important;
`,We=f.a.div`
    width: 100%;
    margin-bottom: ${e=>!0===e.isUploading?"50px":"20px"};
    
    .positioning {
        display: none !important;
    }

    .form-group {
        position: absolute;
        bottom: -24px;
    }

    .progress-span {
        position: absolute;
        bottom: -44px;
        width: 88%;
    }

    .progress {
        border-radius: 5px;
    }

    .progress-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media(max-width: 767px) {
        .positioning {
            display: inline-block !important;
            width: 20%;
        }

        .progress {
            width: 82%;
            display: inline-block !important;
            border-radius: 5px;
        }

        .positioning i {
            color: ${e=>e.site_font_color};
            border-radius: 50%;
            width: 29px;
            height: 29px;
        }
    }
`,He=f.a.div`
    width: 100%;
    position: relative;
    cursor: pointer;
    border-radius: 5px;

    video {
        max-width: 210px;
        object-fit: cover;
        border-radius: 5px;
        height: 150px;
        width: 100%;
        position: relative;
        background-color: black;
    }
    
    .progress {
        border-radius: 5px;
    }

    img {
        object-fit: cover;
        height: 150px;
        width: 100%;
        position: relative;
        background-color: black 
    }
    
    @media (min-width:991px) and (max-width:1280px) {

        video{
            max-width: 153px;
        }
    }
    @media (min-width:767px) and (max-width:991px) {

        video{
            max-width: 183px;
        }
    }
    @media (max-width:767px) {
        max-width: 80%;
        display: inline-block;
        video{
            max-width: 100%;
        }

        .progress {
            width: 82%;
            display: inline-block !important;
            border-radius: 5px;
        }
    }
`,qe=f.a.div`
    position: absolute;
    top: calc(45.5%);
    left: calc(47.5%);
    cursor: pointer;

    .video-button-span {
        font-size: 30px;
        color: rgb(211, 211, 211);
        background-color: black;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        position: relative;
        display: inline-block;
    }

    .play-icon {
        font-size: 30px;
        position: absolute;
        border-radius: 51px;
        left: -5px;
        top: -5px;
    }
`,Ve=f.a.div`
    background-image: ${e=>e.imageUrl};
    height:150px;
    background-position:center;
    background-repeat:no-repeat;
    background-size: cover;
    background-color: #000000;
    position: relative;
    cursor: pointer;
    border-radius: 5px;
    width: inherit;

    @media (max-width:767px) {
        max-width: 80%;
        display: inline-block !important;
        margin-bottom: 1%;
    }

`,Ye=f.a.div`
    color:${e=>e.site_font_color} !important;
    .custom-control-input:checked ~ .custom-control-label::before {
        background-color: ${e=>e.site_font_color} !important;
    }
    .custom-control-input:checked~.custom-control-label::before {
        border-color: ${e=>e.site_font_color} !important;
    }
`,Ke=f.a.button`
    border-radius: 25px;
    border: none;
    font-size: 20px;
    vertical-align: middle;
`;var Je=Object(c.b)(e=>({auth:e.auth,blog:e.blog,mediaState:e.media}),{setSweetAlert:j.e,editPost:M.f})(Object(l.g)(Object(b.a)(()=>({selectForm:{padding:"5px",height:"40px",border:"none"}}))((function(e){const t=e.auth.appSettings,[a,i]=Object(n.useState)(e.mediaPreview),[r,s]=Object(n.useState)(e.description),[l,c]=Object(n.useState)(e.captionBlur),[d,m]=Object(n.useState)(e.editPostOption),[p,u]=Object(n.useState)(!1),[g,h]=Object(n.useState)(""),[b,f]=Object(n.useState)(""),[_,E]=Object(n.useState)(!1),[v,w]=Object(n.useState)(!1),[x,N]=Object(n.useState)(e.mediaPreview.length>0),[S,C]=Object(n.useState)(""),[T,O]=Object(n.useState)(!1),[I,M]=Object(n.useState)(!1),[j,F]=Object(n.useState)([]);Object(n.useEffect)(()=>{["true",!0].includes(e.captionBlur)?c("enabledCaptionBlur"):["false",!1].includes(e.captionBlur)&&c("disabledCaptionBlur")},[e.captionBlur]);const L=e=>{if(e){let t={selectedFile:e,renderFile:"modern"===e.format?e.small_thumb:URL.createObjectURL(e),is_process:!0};w(!0),i([t])}},$=(e,t)=>{!0!==_&&(document.querySelector("body").style.overflow=!0===!p?"hidden":"visible",h(e),f(t),u(!p))},R=n=>{const r="original"===n?e.media:a;return o.a.createElement("div",{className:"row justify-content-center"},r.map((e,a)=>{let r="",s=!1;return void 0===e.url?r="url("+e.renderFile+")":(r="url("+e.url+")",s=!0),o.a.createElement(We,{isUploading:_,content_color:t.content_color,site_font_color:t.site_font_color,key:a,className:"align-items-center col-12 col-md-4 d-flex justify-content-center flex-column mt-3"},["video/quicktime","video/mp4","video"].includes(!0===s?e.content_type:e.selectedFile.type)?o.a.createElement(o.a.Fragment,null,"preview"===n&&o.a.createElement(Ge,{className:"align-items-center close d-flex justify-content-center mr-4 mt-2",content_color:t.content_color,content_font_color:t.content_font_color,type:"video",onClick:e=>{e.preventDefault(),w(!0),i([]),F([]),C("")},disabled:_,style:{zIndex:"5"}}),o.a.createElement(He,{onClick:()=>{$(!0===s?e.url:e.renderFile,"video")},draggable:!1,onDragOver:e=>e.preventDefault()},e.selectedFile&&"modern"===e.selectedFile.format?o.a.createElement("img",{src:e.renderFile,alt:"Media not found",id:"image"}):D.isIOS?o.a.createElement("video",{src:!0===s?e.url:e.renderFile,poster:Object(G.a)("images/no-preview-video.png"),id:"uploaded-video"}):o.a.createElement("video",{src:!0===s?e.url:e.renderFile,id:"uploaded-video"}),o.a.createElement(qe,null,o.a.createElement("span",{className:"video-button-span"},o.a.createElement("i",{className:"fas fa-play-circle play-icon"})))),"original"===n&&x&&o.a.createElement("div",{className:"form-check mt-2"},o.a.createElement("input",{className:"form-check-input",type:"checkbox",checked:a===S,name:"media_preview",onChange:()=>B(e,a),id:"media_preview"+a,disabled:_}),o.a.createElement("label",{className:"form-check-label",style:{color:t.site_font_color},htmlFor:"media_preview"+a},"Set as Preview"))):o.a.createElement(o.a.Fragment,null,"preview"===n&&o.a.createElement(Ge,{className:"align-items-center close d-flex justify-content-center mr-3 mt-2",content_color:t.content_color,content_font_color:t.content_font_color,type:"image",onClick:e=>{e.preventDefault(),w(!0),i([]),F([]),C("")},disabled:_,style:{zIndex:"5"}}),o.a.createElement(Ve,{imageUrl:r,onClick:()=>{$(!0===s?e.url:e.renderFile,"photo")},draggable:!1,onDragOver:e=>e.preventDefault()}),"original"===n&&x&&o.a.createElement("div",{className:"form-check mt-2"},o.a.createElement("input",{className:"form-check-input",type:"checkbox",checked:a===S,name:"media_preview",onChange:()=>B(e,a),id:"media_preview"+a,disabled:_}),o.a.createElement("label",{className:"form-check-label",style:{color:t.site_font_color},htmlFor:"media_preview"+a},"Set as Preview"))))}))},B=(e,t)=>{e.is_selected_from_original_file=!0,i([e]),C(t),w(!0)};return o.a.createElement(o.a.Fragment,null,o.a.createElement(A.a,null,!0===p&&o.a.createElement(P.a,{url:g,handleClose:()=>{$("","")},type:b}),!1===p&&o.a.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#00000080"}},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered modal-lg modal-dialog-scrollable",role:"document"},o.a.createElement("div",{className:"modal-content",style:{backgroundColor:t.card_background_color}},o.a.createElement("div",{className:"modal-header"},o.a.createElement("h5",{className:"modal-title"},"Edit Post"),o.a.createElement("button",{className:"close",onClick:e.handleEditBlogDialogClose,style:{color:t.site_font_color,opacity:1},disabled:_})),o.a.createElement("div",{className:"modal-body"},o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"form-group col"},o.a.createElement("textarea",{id:"description",name:"description",className:"form-control",value:r,onChange:e=>s(e.target.value),disabled:_}))),e.isEditPostLocked&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"mt-2 mb-2"},o.a.createElement(Ue,{content_color:t.content_color,site_font_color:t.site_font_color},o.a.createElement("div",{style:{height:"100%",textAlign:"center",color:"#ECECEC",outline:"0px"}},o.a.createElement("h4",{style:{color:t.site_font_color,marginBottom:"0%"}},"Media"),R("original")),o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12 px-5",style:{textAlign:"left"}},o.a.createElement(Ye,{content_color:t.content_color,site_font_color:t.site_font_color},o.a.createElement("div",{className:"custom-control custom-switch"},o.a.createElement("input",{type:"checkbox",className:"custom-control-input",id:"PREVIEW_MODE_REUSE",name:"PreviewMode",onChange:()=>{!0===x&&(i([]),F([])),C(""),N(!x)},checked:x,disabled:_}),o.a.createElement("label",{className:"custom-control-label",htmlFor:"PREVIEW_MODE_REUSE"},"Add Preview")),o.a.createElement(Ke,{className:"mx-1",disabled:_,onClick:e=>{e.preventDefault(),O(!0)},style:{backgroundColor:"transparent",color:t.content_color}},o.a.createElement("i",{className:"fas fa-question-circle"}))))))),x&&o.a.createElement("div",{className:"mt-2 mb-2"},o.a.createElement(Ue,{content_color:t.content_color,site_font_color:t.site_font_color},o.a.createElement("div",{style:{height:"100%",textAlign:"center",color:"#ECECEC",outline:"0px"}},o.a.createElement("h4",{style:{color:t.site_font_color,marginBottom:"0%"}},"Preview"),R("preview"),0===a.length&&(e=>{let n="button-gallery-"+e;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"col-12 col-md-4 mt-3 mb-2",style:{height:"150px",marginBottom:"3%",margin:"original"!==e&&0===a.length?"auto":"0%",maxWidth:"150px",outlineColor:"transparent"},name:e},o.a.createElement(ze,{htmlFor:n,content_color:t.content_color,fullWidth:!0,className:"align-items-center justify-content-center",content_font_color:t.content_font_color,disabled:_,name:e,button_shadow_color:t.button_shadow_color,onClick:()=>{M(!0)}},o.a.createElement("i",{className:"fas fa-plus","aria-hidden":"true"}))))})("preview"))))),o.a.createElement("div",{className:"form-row"},o.a.createElement("div",{className:"col"},o.a.createElement("label",null,"Blur Caption"),o.a.createElement("div",{className:"form-group"},o.a.createElement("div",{className:"from-check form-check-inline"},o.a.createElement("input",{className:"form-check-input",type:"radio",value:"enabledCaptionBlur",checked:"enabledCaptionBlur"===l,onChange:()=>c("enabledCaptionBlur"),name:"caption_blur",id:"CAPTION_BLUR_ENABLED"}),o.a.createElement("label",{className:"form-check-label",htmlFor:"CAPTION_BLUR_ENABLED"},"Enable Blur")),o.a.createElement("div",{className:"from-check form-check-inline"},o.a.createElement("input",{className:"form-check-input",type:"radio",value:"disabledCaptionBlur",checked:"disabledCaptionBlur"===l,onChange:()=>c("disabledCaptionBlur"),name:"caption_blur",id:"CAPTION_BLUR_DISABLED"}),o.a.createElement("label",{className:"form-check-label",htmlFor:"CAPTION_BLUR_DISABLED"},"Disable Blur"))))),!e.isEditPostLocked&&o.a.createElement("div",{className:"row mb-3"},o.a.createElement("div",{className:"col"},o.a.createElement(Fe.a,{name:"editPostOption",value:d,onChange:e=>m(e.target.value),className:e.classes.selectForm,style:{color:t.site_font_color}},o.a.createElement(Le.a,{value:"Private"},o.a.createElement(Ae.a,{style:{fontSize:"25px",verticalAlign:"middle"}}),o.a.createElement(De.a,{component:"span",style:{paddingLeft:"10px"}},"Private")),o.a.createElement(Le.a,{value:"Public"},o.a.createElement(je.a,{style:{fontSize:"25px",verticalAlign:"middle"}}),o.a.createElement(De.a,{component:"span",style:{paddingLeft:"10px"}},"Public"))))),o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col"},o.a.createElement("button",{className:"btn btn-block",style:{backgroundColor:t.content_color,color:t.content_font_color,boxShadow:`0 5px 15px 0 ${t.button_shadow_color}44, 0 4px 15px 0 ${t.button_shadow_color}44`},onClick:async t=>{if(t.preventDefault(),""===r.trim())return e.setSweetAlert({description:"Please Add Caption"});if(a.length>1)return e.setSweetAlert({description:"You can only select 1 content"});const n={postId:e.postId,description:r,pageNum:e.blog.currentPage,isCaptionBlur:"enabledCaptionBlur"===l,isPublicPost:"Public"===d,isMediaUpdate:v,media_preview:[],processing:!1};E(!0);for(let e=0;e<a.length;e++)if(!0===a[e].is_process){const t=a[e];"modern"===t.selectedFile.format&&(n.media_preview_item=[t.selectedFile._id],n.isMediaUpdate=!1)}else n.media_preview=a,n.selectedPreviewIndex=S;e.editPost(n,()=>(E(!1),e.handleEditBlogDialogClose(),e.setSweetAlert({description:"Post updated successfully."})))},disabled:_},!0===_&&o.a.createElement("span",{className:"spinner-border spinner-border-sm mr-2"})," Update")))))))),!0===T&&o.a.createElement(Re.a,{setHelperModelOpen:O}),I&&o.a.createElement(Be.a,{title:"Select Preview",onClose:()=>{M(!1)},prevSelectedMedia:j,onSelection:t=>{if(M(!1),F(t),t.length>1)return F([]),void e.setSweetAlert({description:"You can not add more than one preview."});const{allMedia:n}=e.mediaState,o=n.filter(e=>t.includes(e._id)),i=Object(k.d)(o,t);if(i.length>0){((t,n)=>{const o=a.length,i=1-o<t.length?1-o:t.length,r=t.length+o;for(let a=0;a<i;a++){if(!["video/mp4","video/quicktime","image/jpg","image/jpeg","image/png"].includes(t[a].type))return e.setSweetAlert({description:"Media format is not supported."})}for(let a=0;a<i;a++){const o=y.a.get(t[a],"size",-1);-1!==o&&o>$e.a?e.setSweetAlert({description:`File ${t[a].name} size is too large.`}):L(t[a],n)}r>1&&e.setSweetAlert({description:`You have selected ${r} images, maximum 1 images allowed.`})})(i.map(e=>{const t=Object(k.a)(e.path).split("?")[0];return{_id:e._id,path:e.path,small_thumb:e.small_thumb,format:"modern",type:`${"photo"===e.type?"image":"video"}/${t}`,size:e.size,name:`${e._id}.${t}`}}),"preview")}}})))})))),Xe=a(84),Qe=a(69),Ze=a(53),et=a(45),tt=a(141),at=a(303),nt=a.n(at),ot=a(167),it=a.n(ot),rt=a(274),st=a.n(rt),lt=a(165),ct=a.n(lt),dt=(a(233),a(22)),mt=a(231),pt=a(62),ut=a(152),gt=a(42);const ht=f.a.section`
    width: 100%;
    height: fit-content;
    border: solid;
    border-width: 2px;
    border-radius: 5px;
    padding: 12px;
    border-color: ${e=>e.site_font_color};

    .category-label {
        color: ${e=>e.site_font_color};
    }
`,bt=f.a.button`
    right: 5px; 
    top: 0;
    position: absolute; 
    border-radius: 82%; 
    width: 24px;
    background-color: ${e=>e.content_color} !important; 
    color: ${e=>e.content_font_color} !important;
    cursor: pointer;

    :before {
        font-size: medium;
    }

    @media(max-width: 767px) {
        right: ${e=>!0===e.isRearrangeModeEnable&&"original"===e.name?"20%":"13%"};
    }
`,ft=f.a.label`
    background-color: ${e=>e.content_color};
    color: ${e=>e.content_font_color};
    height: 100%;
    border-radius: 5px;
    cursor: ${e=>!1===e.disabled?"pointer":"inherit"};
    display: flex;
    cursor: pointer;
    box-shadow: 0 5px 15px 0 ${e=>e.button_shadow_color}44, 0 4px 15px 0 ${e=>e.button_shadow_color}44 !important;

    :hover {
        box-shadow: 0 5px 15px 0 ${e=>e.button_shadow_color}44, 0 4px 15px 0 ${e=>e.button_shadow_color}44 !important;
    }
`,_t=f.a.div`
    background-image: ${e=>e.imageUrl};
    height:150px;
    background-position:center;
    background-repeat:no-repeat;
    background-size: cover;
    background-color: #000000;
    position: relative;
    cursor: pointer;
    border-radius: 5px;
    width: inherit;

    @media (max-width:767px) {
        max-width: 80%;
        display: inline-block !important;
        margin-bottom: 1%;
    }

`,yt=f.a.div`
    width: 100%;
    margin-bottom: ${e=>!0===e.isUploading?"50px":"20px"};
    
    .positioning {
        display: none !important;
    }

    .form-group {
        position: absolute;
        bottom: -24px;
    }

    .progress-span {
        position: absolute;
        bottom: -44px;
        width: 88%;
    }

    .progress {
        border-radius: 5px;
    }

    .progress-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media(max-width: 767px) {
        .positioning {
            display: inline-block !important;
            width: 20%;
        }

        .progress {
            width: 82%;
            display: inline-block !important;
            border-radius: 5px;
        }

        .positioning i {
            color: ${e=>e.site_font_color};
            border-radius: 50%;
            width: 29px;
            height: 29px;
        }

        .progress-span {
            width: 92%;
        }
    }
`,Et=f.a.div`
    width: 100%;
    position: relative;
    cursor: pointer;
    border-radius: 5px;

    video {
        max-width: 210px;
        object-fit: cover;
        border-radius: 5px;
    }
    
    .progress {
        border-radius: 5px;
    }
    
    @media (min-width:991px) and (max-width:1280px) {

        video {
            max-width: 153px;
        }
    }
    @media (min-width:767px) and (max-width:991px) {

        video {
            max-width: 183px;
        }
    }
    @media (max-width:767px) {
        max-width: 80%;
        display: inline-block;
        video {
            max-width: 100%;
        }

        .progress {
            width: 82%;
            display: inline-block !important;
            border-radius: 5px;
        }
    }
`,vt=f.a.div`
    position: absolute;
    top: calc(45.5%);
    left: calc(47.5%);
    cursor: pointer;

    .video-button-span {
        font-size: 30px;
        color: rgb(211, 211, 211);
        background-color: black;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        position: relative;
        display: inline-block;
    }

    .play-icon {
        font-size: 30px;
        position: absolute;
        border-radius: 51px;
        left: -5px;
        top: -5px;
    }
`,wt=f.a.div`
color:${e=>e.site_font_color} !important;
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: ${e=>e.site_font_color} !important;
}
.custom-control-input:checked~.custom-control-label::before {
    border-color: ${e=>e.site_font_color} !important;
}
`,xt=f.a.div`
display: flex;
align-items: center;
margin-bottom: 2px;
color:${e=>e.site_font_color} !important;
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: ${e=>e.site_font_color} !important;
}
.custom-control-input:checked~.custom-control-label::before {
    border-color: ${e=>e.site_font_color} !important;
}
`,kt=f.a.div`
    width: 100%;
    height: ${e=>"video"===e.type?"150px":"100%"};
    max-width: ${e=>"video"===e.type?"210px":"100%"};
    position: absolute;
    background-color: #FFFFFF4F;
    z-index: 4;
    padding: 0 20px;
    border-radius: 5px;
    display: ${e=>!0===e.isRearrangeModeEnable?"block":"none"};
    left: ${e=>"video"===e.type?"3px":"0px"};

    @media (min-width:991px) and (max-width:1280px) {
        left: ${e=>"video"===e.type?"5px":"0px"};
        max-width: ${e=>"video"===e.type?"153px":"100%"};
    }
    @media (min-width:767px) and (max-width:991px) {
        left: ${e=>"video"===e.type?"5px":"0px"};
        max-width: ${e=>"video"===e.type?"183px":"100%"};        
    }
    @media (max-width:767px) {
        left: 0px !important;
        max-width: 100% !important;
    }
`,Nt=f.a.button`
    border-radius: 25px;
    border: none;
    font-size: 20px;
    vertical-align: middle;
`;var St=Object(c.b)(e=>({auth:e.auth,media:e.media,content_color:e.auth.appSettings.content_color,content_font_color:e.auth.appSettings.content_font_color,gallery:e.gallery}),{galleryAddFile:pt.b,galleryRemoveFile:pt.d,galleryReset:pt.f,setSweetAlert:j.e,dragDropImage:pt.a,galleryAddFileInPreviewFile:pt.c,galleryRemoveFileInPreviewFile:pt.e,previewGalleryReset:pt.g,setIsPreviewModeEnable:pt.h,getAllCategory:gt.e})(e=>{const{content_color:t,site_font_color:a,button_shadow_color:i}=e.auth.appSettings,{selectFromContentManager:r}=e,[s,l]=Object(n.useState)(!1),[c,d]=Object(n.useState)(""),[m,p]=Object(n.useState)(""),[u,g]=Object(n.useState)(),[h,b]=Object(n.useState)(!1),[f,_]=Object(n.useState)(!1),[E,v]=Object(n.useState)(r?h:f),[w,x]=Object(n.useState)(!1),[N,S]=Object(n.useState)(!1),[C,T]=Object(n.useState)(!1),[O,I]=Object(n.useState)([]),[A,M]=Object(n.useState)([]),{category:j}=e.media,[F,L]=Object(n.useState)([]);Object(n.useEffect)(()=>{e.galleryReset(),e.previewGalleryReset()},[]),Object(n.useEffect)(()=>{v(r?h:f)},[r,h,f]),Object(n.useEffect)(()=>{0===j.length&&e.getAllCategory()},[]),Object(n.useEffect)(()=>{const e=j.filter(e=>"all media"!==e.slug&&"preview"!==e.slug).map(e=>({value:e._id,label:e.name}));L(e)},[j]);const $=()=>{l(!1),d(""),p(""),g(""),b(!1),_(!1)},R=(t,a)=>{if(!0!==E||"preview"===a){const n=e.gallery.files.length,o=45-n<t.length?45-n:t.length,i=t.length+n;let r="gallery";for(let a=0;a<o;a++){if(!["video/mp4","video/quicktime","image/jpeg","image/jpeg","image/png"].includes(t[a].type))return e.setSweetAlert({description:"Media format is not supported."});1===i&&(["video/mp4","video/quicktime"].includes(t[a].type)?r="video":["image/jpeg","image/jpeg","image/png"].includes(t[a].type)&&(r="photo"))}for(let s=0;s<o;s++){const n=y.a.get(t[s],"size",-1);-1!==n&&n>$e.a?e.setSweetAlert({description:`File ${t[s].name} size is too large.`}):B(t[s],a)}i>45?e.setSweetAlert({description:`You have selected ${i} images, maximum 45 images allowed.`}):e.setPostType(r)}},B=(t,a)=>{if(t){const n=t.name,o=t.size,i="original"===a?e.gallery.files:e.gallery.previewFiles;let r=-1;if("original"===a&&(r=y.a.findIndex(i,(function(e){return e.selectedFile.name===n&&e.selectedFile.size===o&&e}))),-1===r){let n={selectedFile:t,renderFile:"modern"===t.format?t.path:URL.createObjectURL(t)};"original"===a?e.galleryAddFile(n):e.galleryAddFileInPreviewFile(n)}}},z=(t,a)=>{let n=H.length;"original"===a?(2===n&&(r?b(!1):_(!1)),n-=1,e.galleryRemoveFile(t)):e.galleryRemoveFileInPreviewFile(t),n<1&&(Y&&e.setIsPreviewModeEnable(),e.previewGalleryReset())},{classes:W}=e,{files:H,uploadProgress:q,previewFiles:V,isPreviewModeEnable:Y}=e.gallery,K=(t,a)=>{!0!==e.disableButtons&&(document.querySelector("body").style.overflow=!0===!s?"hidden":"visible",d(t),p(a),l(!s))},J=e=>{!0===E&&g(e)},X=t=>{if(!0===E&&""!==u){const a=H[u];H.splice(u,1),H.splice(t,0,a),e.dragDropImage(H),""!==e.previewIndex&&(Number(e.previewIndex)===Number(u)?e.setIndex(t):Number(e.previewIndex)===Number(t)&&e.setIndex(u)),g("")}g("")},Q=(t,a)=>{const n=H[t];H[t]=H[a],H[a]=n,e.dragDropImage(H),""!==e.previewIndex&&(Number(e.previewIndex)===Number(u)?e.setIndex(a):Number(e.previewIndex)===Number(a)&&e.setIndex(u))},Z=(t,a)=>{const n=y.a.get(q,"progress",""),i=y.a.get(q,"index",""),r=y.a.get(q,"progressNumber",""),s=y.a.get(q,"type",""),l=e.gallery.processingIndex,c=e.gallery.processedIndex;return-1!==l&&l===t?o.a.createElement("span",{style:{color:e.auth.appSettings.site_font_color},className:"progress-span"},"Processing"):""!==n&&"100%"!==n&&i===t?o.a.createElement("span",{className:"progress-span mt-1"},o.a.createElement("div",{className:"progress"},o.a.createElement("div",{className:"progress-bar progress-bar-striped progress-bar-animated",role:"progressbar",style:{width:n,backgroundColor:e.content_color,color:e.content_font_color}},n)),((t,a,n)=>{let i=0,r="0";const s="original"===n?H[t].selectedFile:V[t].selectedFile;return i=y.a.get(s,"size",0)/1024/1024,r=(i*a/100).toFixed(2),o.a.createElement("div",{className:"progress-text",style:{color:e.auth.appSettings.site_font_color}},"Uploading ",r," MB Of ",i.toFixed(2)," MB")})(i,r,s)):"preview"!==a&&c&&c.includes(t)?o.a.createElement("span",{style:{color:e.auth.appSettings.site_font_color},className:"progress-span"},"Uploaded"):o.a.createElement(o.a.Fragment,null)},ee=n=>{let i="original"===n?H:V;return o.a.createElement("div",{className:"row justify-content-center"},i.map((i,r)=>{const{format:s,small_thumb:l}=i.selectedFile;let c="modern"===s?l:i.renderFile;return c=`url(${c})`,o.a.createElement(yt,{isUploading:e.disableButtons,content_color:t,site_font_color:a,key:r,className:"align-items-center col-12 col-md-4 d-flex justify-content-center mt-3"},["video/quicktime","video/mp4"].includes(i.selectedFile.type)?o.a.createElement(o.a.Fragment,null,o.a.createElement(bt,{className:"align-items-center close d-flex justify-content-center mr-4 mt-2",content_color:e.content_color,content_font_color:e.content_font_color,type:"video",onClick:e=>{e.preventDefault(),z(r,n)},disabled:e.disableButtons,style:{zIndex:"5"},isRearrangeModeEnable:E,name:n}),o.a.createElement(Et,{className:"d-flex justify-content-center align-items-center",onClick:()=>{K(i.renderFile,"video")},draggable:!0===E&&"original"===n,onDragOver:e=>e.preventDefault(),onDragStart:()=>{J(r)},onDrop:e=>{e.preventDefault(),X(r)}},o.a.createElement(kt,{type:"video",isRearrangeModeEnable:E}),"modern"===s?o.a.createElement("img",{src:l,id:"uploaded-video",style:{objectFit:"cover",height:"150px",width:"100%",position:"relative",backgroundColor:"black"}}):D.isIOS?o.a.createElement("video",{src:i.renderFile,poster:Object(G.a)("images/no-preview-video.png"),id:"uploaded-video",style:{height:"150px",width:"100%",position:"relative",backgroundColor:"black"}}):o.a.createElement("video",{src:i.renderFile,id:"uploaded-video",style:{height:"150px",width:"100%",position:"relative",backgroundColor:"black"}}),o.a.createElement(vt,null,o.a.createElement("span",{className:"video-button-span"},o.a.createElement("i",{className:"fas fa-play-circle play-icon"})))),!0===E&&"original"===n&&o.a.createElement("div",{className:"positioning text-dark d-inline"},o.a.createElement("i",{className:"fas fa-arrow-up fa-2x",style:{display:0===r&&"none"},onClick:e=>{e.preventDefault(),Q(r,r-1)}}),r>0&&o.a.createElement("br",null),o.a.createElement("i",{className:"fas fa-arrow-down fa-2x",style:{display:r===H.length-1&&"none",marginTop:0===r?"0px":"1rem"},onClick:e=>{e.preventDefault(),Q(r,r+1)}})),(n===q.type||-1!==e.gallery.processingIndex)&&e.disableButtons&&Z(r,n)):o.a.createElement(o.a.Fragment,null,o.a.createElement(bt,{className:"align-items-center close d-flex justify-content-center mr-3 mt-2",content_color:e.content_color,content_font_color:e.content_font_color,type:"image",onClick:e=>{e.preventDefault(),z(r,n)},disabled:e.disableButtons,style:{zIndex:"5"},isRearrangeModeEnable:E,name:n}),o.a.createElement(_t,{imageUrl:c,onClick:()=>{K(i.renderFile,"photo")},draggable:!0===E&&"original"===n,onDragOver:e=>e.preventDefault(),onDragStart:()=>{J(r)},onDrop:e=>{e.preventDefault(),X(r)}},o.a.createElement(kt,{type:"image",isRearrangeModeEnable:E})),!0===E&&"original"===n&&o.a.createElement("div",{className:"positioning text-dark d-inline"},o.a.createElement("i",{className:"fas fa-arrow-up fa-2x",style:{display:0===r&&"none"},onClick:e=>{e.preventDefault(),Q(r,r-1)}}),r>0&&o.a.createElement("br",null),o.a.createElement("i",{className:"fas fa-arrow-down fa-2x",style:{display:r===H.length-1&&"none",marginTop:0===r?"0px":"1rem"},onClick:e=>{e.preventDefault(),Q(r,r+1)}})),(n===q.type||-1!==e.gallery.processingIndex)&&e.disableButtons&&Z(r,n)))}),H.length<45&&H.length>0&&!1===E&&"preview"!==n?te(n):null)},te=t=>{let a="button-gallery-"+t;const{files:n,previewFiles:s}=e.gallery;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"col-12 col-md-4 mt-3 mb-5",style:{height:"150px",marginBottom:"3%",margin:"original"===t&&0===n.length||"original"!==t&&0===s.length?"auto":"0%",maxWidth:"150px",outlineColor:"transparent"},name:t},o.a.createElement(ft,{htmlFor:a,content_color:e.content_color,fullWidth:!0,className:"align-items-center justify-content-center",content_font_color:e.content_font_color,disabled:e.disableButtons,name:t,button_shadow_color:i,onClick:()=>{r&&(document.body.style.overflow="hidden","original"===t?S(!0):T(!0))}},!r&&o.a.createElement("input",{accept:"image/png,image/jpg,image/jpeg,video/mp4,video/quicktime,mp4/*",className:W.upload_input,id:a,onChange:a=>((t,a)=>{const n=t.target.files;if("preview"===a){if(n.length>1)return e.previewGalleryReset(),e.setSweetAlert({description:"You can not add more than one preview."});if(!["video/mp4","video/quicktime","image/jpeg","image/jpeg","image/png"].includes(n[0].type))return e.setSweetAlert({description:"Media format is not supported."});B(n[0],a)}else R(n,a)})(a,t),style:{display:"none"},type:"file",disabled:e.disableButtons,multiple:!0,name:t}),o.a.createElement("i",{className:"fas fa-plus","aria-hidden":"true"}))))},ae=!0===E;return Object(n.useEffect)(()=>{const t=e.gallery.files.map(e=>e.selectedFile._id);I(t)},[e.gallery.files]),Object(n.useEffect)(()=>{const t=e.gallery.previewFiles.map(e=>e.selectedFile._id);M(t)},[e.gallery.previewFiles]),o.a.createElement(o.a.Fragment,null,!0===s&&o.a.createElement(P.a,{url:c,handleClose:()=>{K("","")},type:m,showWatermark:!1}),o.a.createElement(ut.a,{multiple:!0,onDrop:t=>{r||e.isUploading||R(t,"original")},noDrag:ae},n=>{let{getRootProps:i}=n;return o.a.createElement(ht,{content_color:t,site_font_color:a},o.a.createElement("div",Object.assign({},i(),{style:{height:"100%",textAlign:"center",color:"#ECECEC",outline:"0px"}}),o.a.createElement("h4",{style:{color:a,marginBottom:"0%"}},r?"Choose from Content Manager":"Upload Media"),ee("original"),0===H.length&&te("original"),o.a.createElement("div",{className:"row align-items-center"},o.a.createElement("div",{className:"col-12 col-md-6 px-5 mt-1 text-left"},H.length>1&&!D.isIPad13&&o.a.createElement(wt,{content_color:t,site_font_color:a},o.a.createElement("div",{className:"custom-control custom-switch"},o.a.createElement("input",{type:"checkbox",className:"custom-control-input",id:"REORDER_MODE",name:"ReorderMode",onChange:()=>{r?b(!h):_(!f)},checked:E,disabled:e.disableButtons}),o.a.createElement("label",{className:"custom-control-label",htmlFor:"REORDER_MODE"},"Reorder"))),"Locked"===e.isLocked&&o.a.createElement(xt,{content_color:t,site_font_color:a},o.a.createElement("div",{className:"custom-control custom-switch"},o.a.createElement("input",{type:"checkbox",className:"custom-control-input",id:"PREVIEW_MODE",name:"PreviewMode",onChange:()=>{e.setIsPreviewModeEnable()},checked:Y,disabled:e.disableButtons}),o.a.createElement("label",{className:"custom-control-label",htmlFor:"PREVIEW_MODE"},"Add Preview")),o.a.createElement(Nt,{className:"mx-1",disabled:e.disableButtons,onClick:e=>{e.preventDefault(),x(!0)},style:{backgroundColor:"transparent",color:t}},o.a.createElement("i",{className:"fas fa-question-circle"})))),!e.selectFromContentManager&&o.a.createElement("div",{className:"col-12 col-md-6 mt-1 mt-md-0 text-left"},o.a.createElement(U.a,{className:"text-dark",styles:{menu:e=>({...e,zIndex:10})},isMulti:!1,value:e.selectedCategoryOption,options:F,onChange:t=>e.setSelectedCategoryOption(t),noOptionsMessage:()=>"No Category Available",isDisabled:e.disableButtons,isClearable:!0,placeholder:"Select Category"}))),!0===e.disableButtons&&$()))}),!0===Y&&"Locked"===e.isLocked&&o.a.createElement("div",{className:"mt-2"},o.a.createElement(ut.a,{multiple:!0,onDrop:t=>{if(!r&&!e.isUploading)return 0!==e.gallery.previewFiles.length?(e.previewGalleryReset(),e.setSweetAlert({description:"You can not add more than one preview."})):void R([t[0]],"preview")},noDrag:ae},n=>{let{getRootProps:i}=n;return o.a.createElement(ht,{content_color:t},o.a.createElement("div",Object.assign({},i(),{style:{height:"100%",textAlign:"center",color:"#ECECEC",outline:"0px"}}),o.a.createElement("h4",{style:{color:a,marginBottom:"0%"}},"Preview"),ee("preview"),0===V.length&&te("preview"),!0===e.disableButtons&&$()))})),!0===w&&o.a.createElement(Re.a,{setHelperModelOpen:x}),(N||C)&&o.a.createElement(Be.a,{title:C?"Select Preview":"Select Media",onClose:()=>{N?S(!1):T(!1)},prevSelectedMedia:N?O:A,onSelection:t=>{let a=N?e.gallery.files:e.gallery.previewFiles;a=a.map(e=>e.selectedFile._id);const n=[],o=N?"original":"preview";for(let e=0;e<a.length;e++)t.includes(a[e])||n.push(e);for(let e=n.length-1;e>=0;e--)z(n[e],o);((t,a)=>{if("preview"==a){if(T(!1),M(t),t.length>1)return e.previewGalleryReset(),void e.setSweetAlert({description:"You can not add more than one preview."})}else S(!1),I(t);const n=e.media.allMedia.filter(e=>t.includes(e._id)),o=Object(k.d)(n,t);if(o.length>0){const e=o.map(e=>({_id:e._id,path:e.path,small_thumb:e.small_thumb,format:"modern",type:"photo"===e.type?"image/jpeg":"video/mp4",size:e.size,name:e._id+("photo"===e.type?".jpeg":".mp4")}));R(e,a)}})(t,o)}}))}),Ct=a(27),Tt=a.n(Ct);const Ot=Object(dt.a)(),Pt=f.a.button`
    border-radius: 25px;
    border: none;
    font-size: 20px;
    vertical-align: middle;
`,It=f.a.div`
    .react-datepicker__input-time-container .react-datepicker-time__input-container
    .react-datepicker-time__input input {
        width: auto;
    }
    .react-datepicker-wrapper {
        width: 100%;
    }
    .react-datepicker-input {
        text-align: center;
    }
`,At=f.a.div`
    width:100%;

    button.btn.mb-2.p-2.shadow-none.m-0:hover {
        background-color: ${e=>e.content_color};
        color: ${e=>e.content_font_color} !important;
        outline: 1px solid ${e=>e.content_color} !important;
        box-shadow: 0 5px 15px 0 ${e=>e.button_shadow_color}44, 0 4px 15px 0 ${e=>e.button_shadow_color}44 !important;
    }

    button.btn.mb-2.p-2.m-0.border-2:focus {
        box-shadow: 0 5px 15px 0 ${e=>e.button_shadow_color}44, 0 4px 15px 0 ${e=>e.button_shadow_color}44 !important;
    }
    button.btn.selectedOption {
        box-shadow: 0 5px 15px 0 ${e=>e.button_shadow_color}44, 0 5px 15px 0 ${e=>e.button_shadow_color}44 !important;
    }

    button.btn.mb-2.p-2.shadow-none.m-0:focus-visible, button.btn.mb-2.p-2.shadow-none.m-0:focus {
        outline: transparent !important;
    }

    @media (max-width: 1279px) and (min-width: 991px) {
        button.btn.mb-2.p-2.shadow-none.m-0 {
            font-size: 0.7125rem;
        }
    }

    @media (max-width: 767px) {
        flex-direction: column;

        .selectedOption {
            flex-basis: auto;
        }

        button.btn.mb-2.p-2.shadow-none.m-0 {
            display: block;
            width: 100% !important;
            min-height: auto;
        }

        button.rounded-corners {
            border: 2px solid ${e=>e.content_color} !important;
            border-radius: 5px !important;
        }
    }

    .left-icon {
        float: left;
    }
    
    @media (min-width: 767px) {
        .desktop-text {
            position: relative;
            left: 74px;
        }
    }

    @media (max-width: 767px) {
        .justify-center {
            justify-content: center;
        }
    }

`,Mt=f.a.div`
    width: 100%;
`;class jt extends n.Component{constructor(){super(),this.state={option:"Locked",postType:"gallery",uploading:!1,gallery:[],description:"",isSchedule:!1,privateOptionDlg:!1,privateBlur:"NOT_BLUR",selectedFile:null,title:"",author:"",uploadProgress:0,fileName:"",renderFile:"",schedulePostTime:(new Date).setDate((new Date).getDate()+1),amount:20,captionBlur:!1,schedulePostHour:(new Date).getHours()>12?(new Date).getHours()-12:(new Date).getHours(),schedulePostMin:(new Date).getMinutes(),schedulePostTimeFormat:(new Date).getHours()>12?"PM":"AM",showVideoLength:!1,showNumberOfGalleryImage:!1,videoDuration:0,previewIndex:"",feedTags:[],errorText:"",openHelperPopup:!1,selectFromContentManager:!0,selectedCategoryOption:null,totalMedia:0,uploadedMediaCount:0},this.handlePostSubmit=this.handlePostSubmit.bind(this),this.handleVideoUpload=this.handleVideoUpload.bind(this),this.handlePhotoChange=this.handlePhotoChange.bind(this),this.handleVideoChange=this.handleVideoChange.bind(this),this.onChange=this.onChange.bind(this),this.handleIsScheduleChange=this.handleIsScheduleChange.bind(this),this.onGallerySelect=this.onGallerySelect.bind(this),this.handlePostGallerySubmit=this.handlePostGallerySubmit.bind(this),this.handleCheckBoxChange=this.handleCheckBoxChange.bind(this),this.setPreviewIndex=this.setPreviewIndex.bind(this),this.setPostType=this.setPostType.bind(this),this.onSelectPublicPost=this.onSelectPublicPost.bind(this),this.onSelectPrivatePost=this.onSelectPrivatePost.bind(this),this.setFeedTags=this.setFeedTags.bind(this),this.setSelectFromContentManager=this.setSelectFromContentManager.bind(this),this.setSelectedCategoryOption=this.setSelectedCategoryOption.bind(this),this.validateAndAssignSelectedCategory=this.validateAndAssignSelectedCategory.bind(this)}componentDidMount(){this.setState({title:"Blog posted by "+this.props.auth.appSettings.model_name,author:""+this.props.auth.appSettings.model_name})}setSelectedCategoryOption(e){this.setState({selectedCategoryOption:e})}async handlePostSubmit(e){e.preventDefault();let t=this.state.selectedFile;if(1===this.props.gallery.files.length&&(t=this.props.gallery.files[0].selectedFile),null===t)return this.props.setSweetAlert({description:"Please Select Media"});let a=this.state.amount,n=this.props.auth.appSettings.content_unlock_minimum_amount,o=this.props.auth.appSettings.content_unlock_maximum_amount;if((a<n||a>o)&&"Locked"===this.state.option)return this.props.setSweetAlert({description:`Choose an amount between ${n} and ${o}`});if(null!==t){let e=Object(k.a)(t.name);if(e=e.toUpperCase(),!["PNG","JPG","JPEG"].includes(e))return this.setState({selectedFile:null,postType:""}),this.props.setSweetAlert({description:"Media format is not supported."});let a=this.getFormattedDateTime(),n={title:this.state.title,blogType:"photo",description:this.state.description,author:this.state.author,public:"Public"===this.state.option,privateBlur:"BLUR"===this.state.privateBlur,processing:!0,isLocked:"Locked"===this.state.option,amount:this.state.amount,model:this.props.auth.appSettings.model_id,captionBlur:this.state.captionBlur,date:new Date,isPreviewEnable:!1,contentLeftForProcessing:1,blogSubType:"photo",showNumberOfGalleryImage:!1,show_content_length:!1,media_preview:[],selectFromContentManager:this.state.selectFromContentManager};const[o,i]=this.validateAndAssignSelectedCategory(n);if(o)return void this.props.setSweetAlert({description:i});if(this.setState({uploading:!0}),this.state.feedTags.length>0&&this.props.auth.appSettings.feed_tags_enable&&(n.feed_tags=this.state.feedTags),!0===this.state.isSchedule){let e=v()(a).utc();e=new Date(a),n.date=e}if("modern"===t.format)n.media_item=[t._id];else{this.setState(e=>({uploadedMediaCount:e.uploadedMediaCount+1})),this.props.updateProcessingIndex(0);let e=await Object(R.a)(t.name,"blog","photo");if(""===e.presigned_url)return this.setState({uploading:!1}),Object(B.b)("presigned_url_generate","error",e.message),this.props.setSweetAlert({description:e.message});if(!0!==await this.uploadFileUsingPresignedUrl("photo",e.presigned_url,t))return this.setState({uploading:!1}),Object(B.b)("presigned_url_generate","error",e.message),this.props.setSweetAlert({description:e.message});this.props.updateMediaCountInCategory({slug:"all media",mediaType:"photo"}),n.url=e.file_name,n.media=[{url:e.file_name,thumbnail_url:"",blur_url:"",is_process:!0,content_type:"photo",is_error:!1}]}for(let t=0;t<this.props.gallery.previewFiles.length;t++){let e=this.state.uploadProgress;e+=1,this.setState({uploadProgress:e});const a=this.props.gallery.previewFiles[t];let o=Object(k.a)(a.selectedFile.name),i="photo";if(["mp4","mov","MP4","MOV"].includes(o)&&(i="video"),"modern"===a.selectedFile.format)n.media_preview_item=[a.selectedFile._id];else{this.setState(e=>({uploadedMediaCount:e.uploadedMediaCount+1}));let e=await Object(R.a)(a.selectedFile.name,"blog",i);if(""===e.presigned_url)return this.setState({uploading:!1}),Object(B.b)("presigned_url_generate","error",e.message),this.props.setSweetAlert({description:e.message});if(!0!==await this.uploadFileUsingPresignedUrl(i,e.presigned_url,a.selectedFile,t,"preview"))return this.setState({uploading:!1}),Object(B.b)("presigned_url_generate","error",e.message),this.props.setSweetAlert({description:e.message});this.props.updateMediaCountInCategory({slug:"preview",mediaType:i}),n.media_preview.push({url:e.file_name,thumbnail_url:"",is_process:!0,content_type:i}),n.contentLeftForProcessing+=1}}this.props.newPostNewBlog(n,()=>{this.resetFormState()})}}onGallerySelect(e){e.preventDefault(),this.setState({postType:"gallery"})}handlePhotoChange(e){e.target.files[0]&&this.setState({postType:"photo",selectedFile:e.target.files[0],renderFile:URL.createObjectURL(e.target.files[0])})}handleVideoChange(e){e.target.files[0]&&this.setState({postType:"video",selectedFile:e.target.files[0],renderFile:URL.createObjectURL(e.target.files[0])})}setPostType(e){this.setState({postType:e})}onChange(e){let t=e.target.value;"true"===t&&(t=!0),"false"===t&&(t=!1),this.setState({[e.target.name]:t}),"option"===e.target.name&&this.setState({previewIndex:""})}handleIsScheduleChange(){this.setState({isSchedule:!this.state.isSchedule})}async handleVideoUpload(e){e.preventDefault();let t=this.state.selectedFile;if(1===this.props.gallery.files.length&&(t=this.props.gallery.files[0].selectedFile),null===t)return this.props.setSweetAlert({description:"Please Select Media"});let a=this.state.amount,n=this.props.auth.appSettings.content_unlock_minimum_amount,o=this.props.auth.appSettings.content_unlock_maximum_amount;if((a<n||a>o)&&"Locked"===this.state.option)return this.props.setSweetAlert({description:`Choose an amount between ${n} and ${o}`});let i=Object(k.a)(t.name),r=i.toUpperCase();if(!["MOV","MP4"].includes(r))return this.setState({selectedFile:null,postType:""}),this.props.setSweetAlert({description:"Media format is not supported."});i=i.toLowerCase();let s=this.getFormattedDateTime(),l={title:this.state.title,blogType:"video",description:this.state.description,author:this.state.author,public:"Public"===this.state.option,privateBlur:"BLUR"===this.state.privateBlur,processing:!0,isLocked:"Locked"===this.state.option,amount:this.state.amount,model:this.props.auth.appSettings.model_id,captionBlur:this.state.captionBlur,date:new Date,isPreviewEnable:!1,contentLeftForProcessing:1,blogSubType:"video",showNumberOfGalleryImage:!1,show_content_length:this.state.showVideoLength,media_preview:[],feed_tags:this.state.feedTags,selectFromContentManager:this.state.selectFromContentManager};const[c,d]=this.validateAndAssignSelectedCategory(l);if(c)this.props.setSweetAlert({description:d});else{if(this.setState({uploading:!0}),!0===this.state.isSchedule){let e=v()(s).utc();e=new Date(s),l.date=e}if("modern"===t.format)l.media_item=[t._id];else{this.setState(e=>({uploadedMediaCount:e.uploadedMediaCount+1})),this.props.updateProcessingIndex(0);let e=await Object(R.a)(t.name,"blog","video");if(""===e.presigned_url)return this.setState({uploading:!1}),Object(B.b)("presigned_url_generate","error",e.message),this.props.setSweetAlert({description:e.message});if(!0!==await this.uploadFileUsingPresignedUrl("video",e.presigned_url,t))return this.setState({uploading:!1}),Object(B.b)("presigned_url_generate","error",e.message),this.props.setSweetAlert({description:e.message});this.props.updateMediaCountInCategory({slug:"all media",mediaType:"video"}),l.url=e.file_name,l.media=[{url:e.file_name,thumbnail_url:"",blur_url:"",is_process:!0,content_type:"video",is_error:!1}]}for(let e=0;e<this.props.gallery.previewFiles.length;e++){let a=this.state.uploadProgress;a+=1,this.setState({uploadProgress:a});const n=this.props.gallery.previewFiles[e];let o=Object(k.a)(n.selectedFile.name),i="photo";if(["mp4","mov","MP4","MOV"].includes(o)&&(i="video"),"modern"===t.format)l.media_preview_item=[n.selectedFile._id];else{this.setState(e=>({uploadedMediaCount:e.uploadedMediaCount+1}));let t=await Object(R.a)(n.selectedFile.name,"blog",i);if(""===t.presigned_url)return this.setState({uploading:!1}),Object(B.b)("presigned_url_generate","error",t.message),this.props.setSweetAlert({description:t.message});if(!0!==await this.uploadFileUsingPresignedUrl(i,t.presigned_url,n.selectedFile,e,"preview"))return this.setState({uploading:!1}),Object(B.b)("presigned_url_generate","error",t.message),this.props.setSweetAlert({description:t.message});this.props.updateMediaCountInCategory({slug:"preview",mediaType:i}),l.media_preview.push({url:t.file_name,thumbnail_url:"",is_process:!0,content_type:i}),l.contentLeftForProcessing+=1}}this.props.newPostNewBlog(l,()=>{this.resetFormState()})}}resetFormState(){this.setState({option:"Locked",postType:"",uploading:!1,gallery:[],description:"",isSchedule:!1,privateOptionDlg:!1,privateBlur:"NOT_BLUR",selectedFile:null,uploadProgress:0,captionBlur:!1,showVideoLength:!1,showNumberOfGalleryImage:!1,amount:20,feedTags:[],selectedCategoryOption:null,totalMedia:0,uploadedMediaCount:0,selectFromContentManager:!0}),this.props.galleryReset(),this.props.previewGalleryReset(),!0===this.props.gallery.isPreviewModeEnable&&this.props.setIsPreviewModeEnable()}async handlePostGallerySubmit(e){if(e.preventDefault(),""===this.state.description.trim())return this.props.setSweetAlert({description:"Please Add Caption"});if(0===this.props.gallery.files.length)return this.props.setSweetAlert({description:"Please Select Media"});if(1===this.props.gallery.files.length){let t=Object(k.a)(this.props.gallery.files[0].selectedFile.name);return["mp4","mov","MP4","MOV"].includes(t)?this.handleVideoUpload(e):this.handlePostSubmit(e)}let t=this.state.amount,a=this.props.auth.appSettings.content_unlock_minimum_amount,n=this.props.auth.appSettings.content_unlock_maximum_amount;if((t<a||t>n)&&"Locked"===this.state.option)return this.props.setSweetAlert({description:`Choose an amount between ${a} and ${n}`});let o=0,i=0;for(let g=0;g<this.props.gallery.files.length;g++){const e=this.props.gallery.files[g];let t=Object(k.a)(e.selectedFile.name);t=t.toUpperCase();let a=["PNG","JPG","JPEG","MP4","MOV"];if(["PNG","JPG","JPEG"].includes(t)?o+=1:i+=1,!a.includes(t))return this.setState({selectedFile:null,postType:""}),this.props.setSweetAlert({description:`Image Number ${g+1} media format is not supported.`})}let r=[...this.props.gallery.files],s=!1;if(""!==this.state.previewIndex&&"Locked"===this.state.option){r=[],s=!0,r.push(this.props.gallery.files[this.state.previewIndex]);for(let e=0;e<this.props.gallery.files.length;e++)e!==Number(this.state.previewIndex)&&r.push(this.props.gallery.files[e]);this.props.dragDropImage(r)}let l=this.getFormattedDateTime(),c="";o>0&&i>0?c="mixGallery":o>0&&0===i?c="gallery":0===o&&i>0&&(c="videoGallery");const d={title:this.state.title,blogType:"gallery",description:this.state.description,author:this.state.author,public:"Public"===this.state.option,privateBlur:"BLUR"===this.state.privateBlur,processing:!0,isLocked:"Locked"===this.state.option,amount:this.state.amount,model:this.props.auth.appSettings.model_id,captionBlur:this.state.captionBlur,contentLeftForProcessing:this.props.gallery.files.length+this.props.gallery.previewFiles.length,gallery:[],blurUrlGallery:[],thumbnailUrlGallery:[],date:new Date,isPreviewEnable:s,blogSubType:c,show_content_length:this.state.showNumberOfGalleryImage,showNumberOfGalleryImage:this.state.showNumberOfGalleryImage,media:[],media_preview:[],feed_tags:this.state.feedTags,selectFromContentManager:this.state.selectFromContentManager},[m,p]=this.validateAndAssignSelectedCategory(d);if(m)return void this.props.setSweetAlert({description:p});if(this.setState({uploading:!0}),!0===this.state.isSchedule){let e=v()(l).utc();e=new Date(l),d.date=e}let u=[];for(let g=0;g<r.length;g++){let e=this.state.uploadProgress;e+=1,this.setState({uploadProgress:e});const t=r[g];let a=Object(k.a)(t.selectedFile.name),n="photo";if(["mp4","mov","MP4","MOV"].includes(a)&&(n="video"),"modern"===t.selectedFile.format)u.push(t.selectedFile._id),d.media_item=u;else{this.setState(e=>({uploadedMediaCount:e.uploadedMediaCount+1})),this.props.updateProcessingIndex(g);let e=await Object(R.a)(t.selectedFile.name,"blog",n);if(""===e.presigned_url)return this.setState({uploading:!1}),Object(B.b)("presigned_url_generate","error",e.message),this.props.setSweetAlert({description:e.message});if(!0!==await this.uploadFileUsingPresignedUrl(n,e.presigned_url,t.selectedFile,g))return this.setState({uploading:!1}),Object(B.b)("presigned_url_generate","error",e.message),this.props.setSweetAlert({description:e.message});this.props.updateMediaCountInCategory({slug:"all media",mediaType:n}),d.gallery.push(e.file_name),d.blurUrlGallery.push(""),d.thumbnailUrlGallery.push(""),d.media.push({url:e.file_name,thumbnail_url:"",blur_url:"",is_process:!0,content_type:n,is_error:!1})}g+1===r.length&&0===this.props.gallery.previewFiles.length&&this.props.newPostNewBlog(d,()=>{this.resetFormState()})}for(let g=0;g<this.props.gallery.previewFiles.length;g++){let e=this.state.uploadProgress;e+=1,this.setState({uploadProgress:e});const t=this.props.gallery.previewFiles[g];let a=Object(k.a)(t.selectedFile.name),n="photo";if(["mp4","mov","MP4","MOV"].includes(a)&&(n="video"),"modern"===t.selectedFile.format)d.media_preview_item=[t.selectedFile._id];else{this.setState(e=>({uploadedMediaCount:e.uploadedMediaCount+1}));let e=await Object(R.a)(t.selectedFile.name,"blog",n);if(""===e.presigned_url)return this.setState({uploading:!1}),Object(B.b)("presigned_url_generate","error",e.message),this.props.setSweetAlert({description:e.message});if(!0!==await this.uploadFileUsingPresignedUrl(n,e.presigned_url,t.selectedFile,g,"preview"))return this.setState({uploading:!1}),Object(B.b)("presigned_url_generate","error",e.message),this.props.setSweetAlert({description:e.message});this.props.updateMediaCountInCategory({slug:"preview",mediaType:n}),d.media_preview.push({url:e.file_name,thumbnail_url:"",is_process:!0,content_type:n})}this.props.newPostNewBlog(d,()=>{this.resetFormState()})}}async uploadFileUsingPresignedUrl(e,t,a){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"original";const i=L.a.CancelToken.source(),r={onUploadProgress:e=>{let t=Math.round(100*e.loaded/e.total);const a=this;window.addEventListener("offline",(function(){return i.cancel("Network error"),a.setState({uploading:!1}),a.props.setSweetAlert({description:"Seems you are offline. Please check your internet connection and post again."})}));const r={progress:t+"%",index:n,progressNumber:t,type:o};this.props.updateProcessingIndex(-1),this.props.updateProcessedIndex(n),this.props.updateGalleryProgress(r)},cancelToken:i.token},s=L.a.create();return delete s.defaults.headers.common.Authorization,s.defaults.headers["Content-Type"]="video"===e?"video/mp4":"image/jpg",200===(await s.put(t,a,r)).status}async uploadGalleryImage(e){let t=await L.a.post(Ot+"/api/upload/upload_gallery_file",e);return!0===t.data.uploaded&&this.props.addNewBlog(t.data.data),new Promise(e=>{e()})}dateOnChange(e){this.setState({schedulePostTime:e})}getFormattedDateTime(){let e=new Date(this.state.schedulePostTime),t=this.state.schedulePostHour+""+this.state.schedulePostTimeFormat,a=v()(t,["HHA"]).format("HH");return e.setHours(a),e.setMinutes(this.state.schedulePostMin),new Date(e).toISOString()}handleCheckBoxChange(e){this.setState({[e.target.name]:e.target.checked})}setPreviewIndex(e){let t=this.state.previewIndex===e.toString()?"":e.toString();this.setState({previewIndex:t})}showVideoLengthOption(){let e=Object(k.a)(this.props.gallery.files[0].selectedFile.name);if(["mp4","mov","MP4","MOV"].includes(e))return n.createElement("div",{className:"form-group"},n.createElement("div",{className:"form-check form-check-inline"},n.createElement("input",{type:"checkbox",className:"form-check-input",name:"showVideoLength",id:"show-video-length",checked:this.state.showVideoLength,onChange:this.handleCheckBoxChange}),n.createElement("label",{className:"form-check-label",htmlFor:"show-video-length"},"Show length of video")))}onSelectPublicPost(){this.setState({option:"Public",privateBlur:"NOT_BLUR",captionBlur:!1,showVideoLength:!1,showNumberOfGalleryImage:!1}),this.props.previewGalleryReset()}onSelectPrivatePost(){this.setState({option:"Private",showVideoLength:!1,showNumberOfGalleryImage:!1}),this.props.previewGalleryReset()}setFeedTags(e){this.setState({errorText:""});let t=[];for(const a of e){const e=a.value.trim().toLowerCase(),n=y.a.get(a,"__isNew__",!1);if(""===e)this.setState({errorText:"Tag not allow empty"});else if(n){void 0!==this.props.auth.appSettings.feed_tags.find(t=>t.slug===e)?this.setState({errorText:"Tag already added"}):t.push(a)}else t.push(a)}this.setState({feedTags:t})}setSelectFromContentManager(e){this.state.selectFromContentManager!==e&&(this.props.switchGallery(),this.setState({selectFromContentManager:e}))}validateAndAssignSelectedCategory(e){const t=this.state.selectedCategoryOption,a=t?t.label:"",n=!(!t||!t.__isNew__),o=t?t.value:"";let i=!1,r="Invalid Category";if(a.length>30)return r="Category name cannot be more than 30 characters",i=!0,[i,r];if(n){const e=this.props.media.category;for(let t=0;t<e.length;t++)if(e[t].slug===a.trim().toLowerCase()){i=!0;break}}return e.category={id:o,name:a,isNew:n},[i,r]}render(){const{content_color:e,content_font_color:t,site_font_color:a,enable_public_post:o,button_shadow_color:i,feed_tags_enable:r}=this.props.auth.appSettings;let s=new Array(12).fill(0),l=new Array(60).fill(0);return n.createElement(A.a,null,n.createElement(mt.a,{title:""},n.createElement("div",{className:"row"},n.createElement("div",{className:"col"},n.createElement("div",{style:{padding:"10px 0px",position:"relative"}},n.createElement("form",null,n.createElement("div",{className:"form-group"},n.createElement("textarea",{id:"description",name:"description",className:"form-control",rows:"3",value:this.state.description,onChange:this.onChange,placeholder:"Say what is on your mind....",disabled:this.state.uploading})))))),n.createElement("span",null,"Select Media from:"),n.createElement(At,{className:"button-group d-flex mt-2 mb-4",content_color:e,content_font_color:t,button_shadow_color:i},n.createElement("button",{type:"button",className:Tt()("btn col mb-2 p-2 m-0 rounded-start shadow-none w-100 position-relative",{"border-2 selectedOption":this.state.selectFromContentManager,"shadow-none":this.state.selectFromContentManager}),onClick:()=>this.setSelectFromContentManager(!0),style:{borderRadius:"0% 0% 0% 0%",backgroundColor:this.state.selectFromContentManager&&e,color:this.state.selectFromContentManager?t:a,borderColor:!this.state.selectFromContentManager&&e},disabled:this.state.uploading},n.createElement("i",{className:"fas fa-photo-video mr-2 float-start position-absolute",style:{left:"10px",top:"50%",transform:"translateY(-50%)",fontSize:"18px"}}),n.createElement("span",{className:""},"CONTENT MANAGER")),n.createElement("button",{type:"button",className:Tt()("btn col mb-2 p-2 m-0 rounded-end shadow-none w-100 position-relative",{"border-2 selectedOption":!this.state.selectFromContentManager,"":!this.state.selectFromContentManager}),onClick:()=>this.setSelectFromContentManager(!1),style:{borderRadius:"0% 0% 0% 0%",backgroundColor:!this.state.selectFromContentManager&&e,color:this.state.selectFromContentManager?a:t,borderColor:this.state.selectFromContentManager&&e},disabled:this.state.uploading},n.createElement("i",{className:"fas fa-upload mr-2 float-start position-absolute",style:{left:"10px",top:"50%",transform:"translateY(-50%)",fontSize:"18px"}}),n.createElement("span",{className:""},"UPLOAD NEW MEDIA"))),n.createElement("div",{className:"row",style:{textAlign:"center"}},n.createElement("div",{className:"col-12 col-md-12"},n.createElement(St,{classes:this.props.classes,disableButtons:this.state.uploading,setIndex:this.setPreviewIndex,previewIndex:this.state.previewIndex,isLocked:this.state.option,setPostType:this.setPostType,selectFromContentManager:this.state.selectFromContentManager,isUploading:this.state.uploading,setSelectedCategoryOption:this.setSelectedCategoryOption,selectedCategoryOption:this.state.selectedCategoryOption}))),n.createElement(At,{className:"button-group d-flex mt-5",content_color:e,content_font_color:t,button_shadow_color:i},n.createElement("button",{type:"button",className:Tt()("btn col mb-2 p-2 m-0 rounded-start rounded-corners",{"border-2 selectedOption":"Locked"===this.state.option,"shadow-none":"Locked"!==this.state.option}),onClick:()=>this.setState({option:"Locked"}),style:{borderRadius:"0% 0% 0% 0%",backgroundColor:"Locked"===this.state.option&&e,color:"Locked"===this.state.option?t:a,borderColor:"Locked"!==this.state.option&&e},disabled:this.state.uploading},n.createElement(st.a,{className:"left-icon",style:{fontSize:"25px",verticalAlign:"middle"}})," PAYMENT REQUIRED"),n.createElement("button",{type:"button",className:Tt()("btn col mb-2 p-2 m-0 rounded-0 rounded-corners",{"border-2 selectedOption":"Private"===this.state.option,"shadow-none":"Private"!==this.state.option}),onClick:this.onSelectPrivatePost,style:{borderRadius:"0% 0% 0% 0%",backgroundColor:"Private"===this.state.option&&e,color:"Private"===this.state.option?t:a,borderColor:"Private"!==this.state.option&&e},disabled:this.state.uploading},n.createElement(nt.a,{className:"left-icon",style:{fontSize:"25px",verticalAlign:"middle"}})," FREE FOR SUBSCRIBERS"),!0===o&&n.createElement("button",{type:"button",className:Tt()("btn col mb-2 p-2 m-0 border-left-0 rounded-end rounded-corners",{"border-2 selectedOption":"Public"===this.state.option,"shadow-none":"Public"!==this.state.option}),onClick:this.onSelectPublicPost,style:{borderRadius:"0% 0% 0% 0%",backgroundColor:"Public"===this.state.option&&e,color:"Public"===this.state.option?t:a,borderColor:"Public"!==this.state.option&&e},disabled:this.state.uploading},n.createElement(je.a,{className:"left-icon",style:{fontSize:"25px",verticalAlign:"middle"}})," PUBLIC")),n.createElement("div",{className:"row"},n.createElement("div",{className:"col-md-12 col-12 mt-1"},this.state.isSchedule?n.createElement(n.Fragment,null,n.createElement("label",{className:"mb-1",style:{display:"flex",alignItems:"center",margin:"0",paddingTop:"10px"}},"Date"),n.createElement("div",{className:"ml-1"},n.createElement(It,null,n.createElement(ct.a,{selected:this.state.schedulePostTime,onChange:e=>this.dateOnChange(e),minDate:new Date,className:"form-control react-datepicker-input",dateFormat:"MMMM d, yyyy",disabled:this.state.uploading}))),n.createElement("div",{className:"whole-time-box pt-2"},n.createElement("label",{className:"mb-1",style:{display:"flex",alignItems:"center",margin:"0"}},"Time"),n.createElement("div",{className:"schedule-box",style:{display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement("select",{name:"schedulePostHour",value:this.state.schedulePostHour,onChange:this.onChange,disabled:this.state.uploading,className:"form-control ml-1 form-select",style:{textAlignLast:"center"}},s.map((e,t)=>n.createElement("option",{key:"hour"+t,value:t+1},t+1))),n.createElement("select",{name:"schedulePostMin",value:this.state.schedulePostMin,onChange:this.onChange,disabled:this.state.uploading,className:"form-control ml-1 form-select",style:{textAlignLast:"center"}},l.map((e,t)=>n.createElement("option",{key:"min"+t,value:t},t<10?"0"+t:t))),n.createElement("select",{name:"schedulePostTimeFormat",value:this.state.schedulePostTimeFormat,onChange:this.onChange,disabled:this.state.uploading,className:"form-control ml-1 form-select",style:{textAlignLast:"center"}},n.createElement("option",{value:"AM"},"AM"),n.createElement("option",{value:"PM"},"PM"))),n.createElement("div",{className:"my-3"},n.createElement("button",{className:"btn",onClick:this.handleIsScheduleChange,style:{backgroundColor:e,color:t},disabled:this.state.uploading},"Cancel")))):n.createElement(Mt,null,n.createElement(tt.a,{onClick:this.handleIsScheduleChange,style:{textTransform:"none",backgroundColor:e,color:t,boxShadow:`0 5px 15px 0 ${i}44, 0 4px 15px 0 ${i}44`},disabled:this.state.uploading,className:"btn mt-2 mb-4 px-3"},n.createElement(it.a,{style:{fontSize:"30px"}}),"\xa0Schedule Post")))),"Public"!==this.state.option?n.createElement(n.Fragment,null,n.createElement("label",null,"Blur Photo/Video"),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"from-check form-check-inline"},n.createElement("input",{className:"form-check-input",type:"radio",value:"BLUR",checked:"BLUR"===this.state.privateBlur,onChange:this.onChange,name:"privateBlur",id:"PHOTO_BLUR",disabled:this.state.uploading}),n.createElement("label",{className:"form-check-label",htmlFor:"PHOTO_BLUR"},"Enable Blur")),n.createElement("div",{className:"from-check form-check-inline"},n.createElement("input",{className:"form-check-input",type:"radio",value:"NOT_BLUR",checked:"NOT_BLUR"===this.state.privateBlur,onChange:this.onChange,name:"privateBlur",id:"PHOTO_NOT_BLUR",disabled:this.state.uploading}),n.createElement("label",{className:"form-check-label",htmlFor:"PHOTO_NOT_BLUR"},"Disable Blur"))),n.createElement("label",null,"Blur Caption"),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"from-check form-check-inline"},n.createElement("input",{className:"form-check-input",type:"radio",value:!0,checked:!0===this.state.captionBlur,onChange:this.onChange,name:"captionBlur",id:"CAPTION_BLUR",disabled:this.state.uploading}),n.createElement("label",{className:"form-check-label",htmlFor:"CAPTION_BLUR"},"Enable Blur")),n.createElement("div",{className:"from-check form-check-inline"},n.createElement("input",{className:"form-check-input",type:"radio",value:!1,checked:!1===this.state.captionBlur,onChange:this.onChange,name:"captionBlur",id:"CAPTION_NOT_BLUR",disabled:this.state.uploading}),n.createElement("label",{className:"form-check-label",htmlFor:"CAPTION_NOT_BLUR"},"Disable Blur")))):null,"Locked"===this.state.option?n.createElement("div",{className:"form-row"},n.createElement("div",{className:"form-group col col-md-6 col-lg-6"},n.createElement("label",{htmlFor:"amount"},"Amount"),n.createElement("input",{type:"number",className:"form-control",id:"amount",name:"amount",value:this.state.amount,onChange:this.onChange,required:!0,min:5,max:450,disabled:this.state.uploading}))):null,"Locked"===this.state.option&&n.createElement(n.Fragment,null,1===this.props.gallery.files.length&&this.showVideoLengthOption()),r&&n.createElement("div",{className:"form-row"},n.createElement("div",{className:"form-group col col-md-6 col-lg-6"},n.createElement("label",{htmlFor:"feed-tag"},"Tags"),n.createElement(Pt,{disabled:this.state.uploading,style:{color:e,fontSize:"18px",backgroundColor:"transparent"},onClick:()=>this.setState({openHelperPopup:!0})},n.createElement("i",{className:"fas fa-question-circle"})),n.createElement(U.a,{className:"text-dark",isMulti:!0,value:this.state.feedTags,options:this.props.blog.tagList,onChange:e=>this.setFeedTags(e),noOptionsMessage:()=>"No Tags Available",isDisabled:this.state.uploading}),""!==this.state.errorText&&n.createElement("div",{className:"invalid-feedback d-block"},this.state.errorText))),n.createElement("div",{className:"row",style:{textAlign:"center"}},n.createElement("div",{className:"col"},n.createElement("button",{className:"btn btn-block",onClick:this.handlePostGallerySubmit,style:{backgroundColor:e,color:t,boxShadow:`0 5px 15px 0 ${i}44, 0 4px 15px 0 ${i}44`},disabled:this.state.uploading},this.state.uploading&&!1===this.state.selectFromContentManager&&n.createElement(n.Fragment,null,n.createElement("span",{className:"spinner-border spinner-border-sm mr-2"}),"uploading \xa0",this.props.gallery.files.length+this.props.gallery.previewFiles.length>0&&`${this.props.gallery.files.length+this.props.gallery.previewFiles.length===1?1:this.state.uploadedMediaCount}/${this.props.gallery.files.length+this.props.gallery.previewFiles.length}`),!0===this.state.selectFromContentManager&&this.state.uploading?n.createElement(n.Fragment,null,n.createElement("span",{className:"spinner-border spinner-border-sm mr-2"}),"post"):!this.state.uploading&&"post"))),this.state.openHelperPopup&&n.createElement(Z.a,{classes:"modal-lg",closeBtnFontSize:"initial",handleClose:()=>{this.setState({openHelperPopup:!1})}},n.createElement("div",{className:"row pr-4 pl-4"},"You can assign one or more tags to this upload. Tags make it easy for both you and your subscribers to filter the content in the feed. Each time you choose a tag from the dropdown it will show inside of the Tags field. You can add more than one tag and you can also remove selected tags by hitting the 'x' next to the tag name. If you would like to add a new tag simply type the name of the tag and you will be given the opportunity to add the new tag."))))}}var Ft=Object(c.b)(e=>({auth:e.auth,media:e.media,errors:e.errors,blog:e.blog,chat:e.chat,gallery:e.gallery}),{newPostNewBlog:M.l,uploadBlogImage:M.t,addNewBlog:M.b,galleryReset:pt.f,updateGalleryProgress:pt.j,updateProcessingIndex:pt.l,updateProcessedIndex:pt.k,setSweetAlert:j.e,dragDropImage:pt.a,previewGalleryReset:pt.g,setIsPreviewModeEnable:pt.h,switchGallery:pt.i,updateMediaCountInCategory:gt.n})(Object(l.g)(Object(b.a)(()=>({container:{padding:"10px"},row:{marginLeft:"0px",marginRight:"0px"},upload_input:{display:"none"},btn_text:{marginRight:"auto",textTransform:"none !important"},upload_button:{backgroundColor:"rgb(236, 236, 236)",height:"40px",borderRadius:"20px",padding:"5px"},selectForm:{padding:"5px",height:"40px",border:"none"},post_button:{color:"white"}}))(jt))),Lt=a(285);var Dt=Object(c.b)(e=>({auth:e.auth,blog:e.blog}))(Object(l.g)((function(e){const{content_color:t,content_font_color:a,site_background_color:n,site_font_color:i}=e.auth.appSettings,r=y.a.get(e,"showCount",!1);return o.a.createElement("div",{className:"button-group text-center"},e.tagList.map(t=>{if(void 0!==t._id){let a=e.selectedTag===t._id?{backgroundColor:i,color:n,textTransform:"none"}:{backgroundColor:n,color:i,borderColor:i,textTransform:"none"};return o.a.createElement("button",{className:Tt()("btn col-auto rounded-pill shadow-none px-4 py-1"),onClick:()=>e.onClick(t._id),key:t._id,style:a,disabled:e.disabled},t.name,"  ",e.auth.isAdmin&&r?o.a.createElement(o.a.Fragment,null,"(",t.count,")"):null)}return null}),o.a.createElement("button",{className:"btn col-auto shadow-none",onClick:e.onReset,style:{backgroundColor:t,color:a},disabled:e.disabled},"Reset"))})));var $t=Object(c.b)(e=>({auth:e.auth}))(Object(l.g)((function(e){const t=e.auth.appSettings.show_payment_icons,a=y.a.get(e.auth,"user.ccbillSubscriptionStatus","0"),n=y.a.get(e.auth,"appSettings.is_crypto_payment_enabled",!1);return"0"===a&&!0===t?o.a.createElement("div",{className:"col-12 text-center p-0 mt-5"},o.a.createElement("img",{src:Object(G.a)("payment-icon/visa.png"),alt:"visa",className:"mx-2 my-1",width:"40"}),o.a.createElement("img",{src:Object(G.a)("payment-icon/mastercard.png"),alt:"mastercard",className:"mx-2 my-1",width:"40"}),o.a.createElement("img",{src:Object(G.a)("payment-icon/discover.png"),alt:"discover",className:"mx-2 my-1",width:"40"}),o.a.createElement("img",{src:Object(G.a)("payment-icon/jcb.png"),alt:"jcb",className:"mx-2 my-1",width:"40"}),o.a.createElement("img",{src:Object(G.a)("payment-icon/maestro.png"),alt:"maestro",className:"mx-2 my-1",width:"40"}),o.a.createElement("img",{src:Object(G.a)("payment-icon/diners_club.png"),alt:"diners_club",className:"mx-2 my-1",width:"40"}),n&&o.a.createElement("img",{src:Object(G.a)("payment-icon/coins.svg"),alt:"crypto",className:"mx-2 my-1",width:"35"})):o.a.createElement(o.a.Fragment,null)}))),Rt=a(162),Bt=a(44),Ut=a(232);const Gt="320px",zt="425px",Wt="767px",Ht="1024px",qt="1440px",Vt=f.a.div`
    position: relative;
    text-align: center;
    color: white;
    max-height: 800px;
    width: auto;
    overflow: hidden;
    opacity: ${e=>e.opacity}%;
`,Yt=f.a.div`
    position: absolute;
    top: ${e=>e.theme2BannerTopPercentage}%;
    left: ${e=>e.theme2BannerLeftPercentage}%;
    transform: translate(-50%, -50%);
    width: fit-content;
`,Kt=f.a.div`
    font-size: ${e=>e.theme2FontSize[3]};
    font-family: ${e=>e.theme2BannerFontFamily};
    line-height: 1;
    padding-top: 40px;
    color:${e=>e.theme2BannerTextColor};

    @media (min-width: ${Gt}) and (max-width: ${Wt}) {
        font-size: ${e=>e.theme2FontSize[0]};
        max-width: 288px;
        padding-top: 20px;
    }

    @media (min-width: ${Wt}) and (max-width: ${Ht}) {
        font-size: ${e=>e.theme2FontSize[1]};
    }

    @media (min-width: ${Ht}) and (max-width: ${qt}) {
        font-size: ${e=>e.theme2FontSize[2]};
    }
`,Jt=f.a.img`
    height: ${e=>e.theme.imageSize[0]};

    @media (min-width: ${Gt}) and (max-width: ${Wt}) {
        height: ${e=>e.theme.imageSize[3]};;
    }

    @media (min-width: ${Wt}) and (max-width: ${Ht}) {
        height: ${e=>e.theme.imageSize[2]};;
    }

    @media (min-width: ${Ht}) and (max-width: ${qt}) {
        height: ${e=>e.theme.imageSize[1]};;
    }
`,Xt=f.a.div`
    font-size: ${e=>e.theme2FontSize[3]};
    padding-top: ${e=>e.theme2BannerTextImageUrl?"25px":"0px"};
    margin-top: ${e=>e.marginTop} !important;

    @media (min-width: ${Gt}) and (max-width: ${Wt}) {
        font-size: ${e=>e.theme2FontSize[0]};
        max-width: 320px;
        top: 65%;
        padding-top: ${e=>e.theme2BannerTextImageUrl?"5px":"0px"};
    }

    @media (min-width: ${Wt}) and (max-width: ${Ht}) {
        font-size: ${e=>e.theme2FontSize[1]};
        padding-top: ${e=>e.theme2BannerTextImageUrl?"10px":"0px"};
    }

    @media (min-width: ${Ht}) and (max-width: ${qt}) {
        font-size: ${e=>e.theme2FontSize[2]};
        padding-top: ${e=>e.theme2BannerTextImageUrl?"20px":"0px"};
    }
`,Qt=f.a.div`
    font-size: ${e=>`calc(${e.theme2FontSize[3]} - 15px)`};
    padding-top: ${e=>e.theme2BannerTextImageUrl?"25px":"0px"};

    @media (min-width: ${Gt}) and (max-width: ${Wt}) {
        font-size: ${e=>`calc(${e.theme2FontSize[0]} - 5px)`};
        max-width: 320px;
        top: 65%;
        padding-top: ${e=>e.theme2BannerTextImageUrl?"5px":"0px"};
    }

    @media (min-width: ${Wt}) and (max-width: ${Ht}) {
        font-size: ${e=>`calc(${e.theme2FontSize[1]} - 10px)`};
        padding-top: ${e=>e.theme2BannerTextImageUrl?"10px":"0px"};
    }

    @media (min-width: ${Ht}) and (max-width: ${qt}) {
        font-size: ${e=>`calc(${e.theme2FontSize[2]} - 15px)`};
        padding-top: ${e=>e.theme2BannerTextImageUrl?"20px":"0px"};
    }
`,Zt=f.a.div`
    font-size: ${e=>e.exclusiveContentBannerFontSize[3]} !important;
    text-align: center;
    padding-top: 20px;

    font-family: ${e=>e.textExclusiveContentBannerFontStyle} !important;

    @media (min-width: ${Gt}) and (max-width: ${Wt}) {
        font-size: ${e=>e.exclusiveContentBannerFontSize[0]} !important;
    }

    @media (min-width: ${Wt}) and (max-width: ${Ht}) {
        font-size: ${e=>e.exclusiveContentBannerFontSize[1]} !important;
    }

    @media (min-width: ${Ht}) and (max-width: ${qt}) {
        font-size: ${e=>e.exclusiveContentBannerFontSize[2]} !important;
    }
`,ea=f.a.div`
    font-size: 20px;

    @media (min-width: ${Gt}) and (max-width: ${Wt}) {
        font-size: 16px;
    }

    @media (min-width: ${Wt}) and (max-width: ${Ht}) {
        font-size: 17px;
    }

    @media (min-width: ${Ht}) and (max-width: ${qt}) {
        font-size: 18px;
    }
`,ta=f.a.img`
    height: 30px;

    @media (min-width: ${Gt}) and (max-width: ${zt}) {
        height: 30px;
    }
`,aa=f.a.div`
    position: absolute;
    top: 50%;
    left: 16px;
    cursor: pointer;
    transform: translate(-50%, -50%);
`,na=f.a.div`
    position: absolute;
    top: 50%;
    right: 0;
    cursor: pointer;
    transform: translate(-50%, -50%);
`,oa=f.a.button`
    border-radius: 25px;
    border: none;
    font-size: 20px;
    vertical-align: middle;
`,ia=f.a.span`
    position: absolute;
    margin-left: -15px;
    background: ${e=>e.content_font_color};
    color: ${e=>e.content_color} !important;
`,ra=f.a.div`
    .row{
        text-align: center;
        padding: 0 12px;
        margin: 0 !important;
    }
    .row .col{
        margin: 0 !important;
        padding: 0 !important;
    }

    @media (max-width: 576px) {
        .row{
            justify-content: ${e=>"live_stream_manager"===e.role?"center":"space-between"};
        }
        .col{
            display: flex;
            flex: 0 0 48%;
            justify-content: space-between;
            white-space: nowrap;
        }
        .badge-pill{
            margin-left: 80%;
            margin-top: -10px;
        }
        .col .btn{
            width: 85%;
            margin: 0;
            box-sizing: border-box;
        }
        .col :last-child{
            width: 10%;
            padding: 0;
            margin: 0 4px 0 0;
        }
    }
    @media (max-width: 425px){
        .row {
            display: block !important;
        }
        .badge-pill{
            margin-left: 87%;
            margin-top: 0px;
        }
        .col .btn{
            width: 90%;
            margin: 10px 0;
            box-sizing: border-box;
        }
        .col :last-child{
            margin: 0;
        }
    }
`,sa=f.a.div`
    padding : 0 32px;
    @media  (max-width: 425px) {
        .row{
            margin: 0 !important;
            justify-content: space-between;
        }
        .row .col{
            margin: 0;
            padding: 0;
        }
        .row :nth-child(1){
            flex: 0 0 15%;
        }
        .row .admin-promotion-btn{
            flex: 0 0 70%;
            display: flex;
            justify-content: space-between;
        }
        .col .btn{
            margin: 0;
        }
        .admin-promotion-btn .btn{
            flex: 0 0 85%;
        }
        .admin-promotion-btn :last-child{
            flex: 0 0 10%;
            margin: 0;
            padding: 0;
        }
    }
    @media  (max-width: 300px) {
        .row {
            display: block !important;
        }
        .admin-promotion-btn{
            margin: 10px 0 0 0 !important;
        }
    }
`;class la extends n.Component{constructor(){super(),this.state={blogs:{},isLoading:!1,isBlogOpen:!1,index:-1,openEditBlogDialoag:!1,description:"",postId:"",selectedIndex:0,totalBannerImages:0,isDropdownOpen:!1,dropdownIndex:-1,galleryIndex:0,openReuseBlogDialog:!1,contentUrl:"",blurGalleryImages:[],blogType:"",privateBlur:!1,payment_cascade:{error_from:"",transaction_id:""},payment_request:{},is_unlock_by_crypto:!1,isPromotionApplied:!1,promotionId:!1,unlockBlogId:!1,showAddFundPopup:!1,remainAmount:0,feedTagId:"",openDialogCategory:!1,navHeight:0,clientWidth:576},this.openDialogBlog=this.openDialogBlog.bind(this),this.closeDialogBlog=this.closeDialogBlog.bind(this),this.deleteBlog=this.deleteBlog.bind(this),this.openEditBlogDialog=this.openEditBlogDialog.bind(this),this.handleEditBlogDialogClose=this.handleEditBlogDialogClose.bind(this),this.onChange=this.onChange.bind(this),this.onSubmit=this.onSubmit.bind(this),this.addPageNumbers=this.addPageNumbers.bind(this),this.refreshBlurImage=this.refreshBlurImage.bind(this),this.goToPreviousBannerImage=this.goToPreviousBannerImage.bind(this),this.goToNextBannerImage=this.goToNextBannerImage.bind(this),this.rotateImageLeft=this.rotateImageLeft.bind(this),this.rotateImageRight=this.rotateImageRight.bind(this),this.openDropdown=this.openDropdown.bind(this),this.closeDropdown=this.closeDropdown.bind(this),this.unlockContent=this.unlockContent.bind(this),this.createVideoProcessingRequest=this.createVideoProcessingRequest.bind(this),this.sendUnlockContentRequest=this.sendUnlockContentRequest.bind(this),this.openReuseBlogDialogBox=this.openReuseBlogDialogBox.bind(this),this.handleReuseBlogDialogClose=this.handleReuseBlogDialogClose.bind(this),this.listenToScroll=this.listenToScroll.bind(this),this.scrollToPost=this.scrollToPost.bind(this),this.resetSelectedFeedTag=this.resetSelectedFeedTag.bind(this),this.hideAddFundForm=this.hideAddFundForm.bind(this),this.setFeedTag=this.setFeedTag.bind(this),this.getBlogs=this.getBlogs.bind(this),this.changePage=this.changePage.bind(this),this.getNavHeight=this.getNavHeight.bind(this),this.setClientWidth=this.setClientWidth.bind(this)}componentDidMount(){let e={pageNum:0!==this.props.blog.currentPage?this.props.blog.currentPage:1};if(this.props.blog.selectedTag?(e.feedTagId=this.props.blog.selectedTag,this.setState({openDialogCategory:!0})):this.resetSelectedFeedTag(),navigator.standalone||window.matchMedia("(display-mode: standalone)").matches){v()(localStorage.getItem("last_feed_visited")).diff(v()(),"second")<-900&&(this.props.setLoading(!0),localStorage.setItem("last_feed_visited",v()().format("YYYY-MM-DD HH:mm:ss")),this.props.getAllBlogs(this.props.auth.user.isAdmin,e,()=>{}))}0===this.props.blog.currentPage?(localStorage.setItem("last_feed_visited",v()().format("YYYY-MM-DD HH:mm:ss")),this.props.getAllBlogs(this.props.auth.user.isAdmin,e,()=>{})):this.setState({isLoading:!1}),this.props.auth.appSettings.is_pagination_on_exclusive_content_enabled||window.addEventListener("scroll",this.listenToScroll);const{isAuthenticated:t,isAdmin:a}=this.props.auth;if(t&&void 0!==window.orientation){let e=localStorage.getItem("showProgressiveWebPopUp");"never"===e||(e?"false"!==e&&Number(e)<50&&(e=Number(e)+1,localStorage.setItem("showProgressiveWebPopUp",e)):localStorage.setItem("showProgressiveWebPopUp",1))}if(t&&!1===a){const e=localStorage.getItem("differentPasswordPopupReminderCount");e&&e&&e<=50&&localStorage.setItem("differentPasswordPopupReminderCount",Number(e)+1)}this.getNavHeight(),this.setClientWidth(),window.addEventListener("resize",()=>{this.getNavHeight(),this.setClientWidth()})}setClientWidth(){this.setState({clientWidth:window.innerWidth})}getNavHeight(){let e=0,t=document.querySelector(".navbar");t&&(e+=t.clientHeight);let a=document.querySelector("#BottomNavBar");a&&(e+=a.clientHeight),this.setState({navHeight:e})}listenToScroll(e){if(e.preventDefault(),!1===this.state.isLoading&&this.props.blog.totalPages>this.props.blog.currentPage&&!1===this.props.blog.isLoading){(document.body.scrollTop||document.documentElement.scrollTop)/(document.documentElement.scrollHeight-document.documentElement.clientHeight)>.98&&this.setState({isLoading:!this.props.blog.isLoading},()=>{let e={pageNum:this.props.blog.currentPage+1,feedTagId:this.props.blog.selectedTag};this.props.getAllBlogs(this.props.auth.user.isAdmin,e,()=>{this.setState({isLoading:!1}),window.removeEventListener("scroll",{},!1)})})}}changePage(e){this.setState({isLoading:!0},()=>{let t={pageNum:e,feedTagId:this.props.blog.selectedTag,isPaginationEnabled:!0};this.props.getAllBlogs(this.props.auth.user.isAdmin,t,()=>{this.setState({isLoading:!1});const e=document.getElementById("recent-posts");if(e){const t=document.documentElement.scrollTop,a=e.getBoundingClientRect().top+t;window.scrollTo({top:a,behavior:"instant"})}})})}scrollToPost(){const e=window.location.hash.replace("#",""),t=document.getElementById(e);null!==t&&(window.scrollTo({top:t.offsetTop,behavior:"smooth"}),this.props.history.push("/"))}UNSAFE_componentWillReceiveProps(e){if(void 0!==e.chat.userProfileInfo[e.auth.appSettings.model_id]){document.getElementById("favicon").href=""===e.chat.userProfileInfo[e.auth.appSettings.model_id].profile?Object(G.a)("faces/avatar.png"):e.chat.userProfileInfo[e.auth.appSettings.model_id].profile}this.scrollToPost()}openDropdown(e){this.setState({isDropdownOpen:!0,index:e,dropdownIndex:e})}closeDropdown(){this.setState({isDropdownOpen:!1,index:-1,dropdownIndex:-1})}openDialogBlog(e,t){void 0===t&&(t=0),!1===this.props.blog.blog[e].processing&&this.setState({isBlogOpen:!0,index:e,galleryIndex:t})}closeDialogBlog(){this.setState({isBlogOpen:!1,index:-1})}deleteBlog(e){if(!0===window.confirm("Are you sure you want to delete this post?")){this.setState({index:-1});let t={id:e,pageNum:this.props.blog.currentPage,feedTagId:this.props.blog.selectedTag};this.props.deleteBlogPost(t,()=>{this.setState({isDropdownOpen:!1})})}}openEditBlogDialog(e,t,a,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],s=arguments.length>7?arguments[7]:void 0,l=!0===o?"Private":"Public",c=s?s.id:"";document.querySelector("body").style.overflow="hidden",this.setState({openEditBlogDialoag:!0,description:t,postId:e,captionBlur:a||!1,isEditPostLocked:n,editPostOption:l,mediaPreview:i,media:r,feedTagId:c})}handleEditBlogDialogClose(){document.querySelector("body").style.overflow="visible",this.setState({openEditBlogDialoag:!1,postId:"",isDropdownOpen:!1})}openReuseBlogDialogBox(e){document.querySelector("body").style.overflow="hidden",this.setState({openReuseBlogDialog:!0,postId:e})}handleReuseBlogDialogClose(){document.querySelector("body").style.overflow="visible",this.setState({openReuseBlogDialog:!1,postId:"",isDropdownOpen:!1})}onChange(e){let t=e.target.value;"true"===t&&(t=!0),"false"===t&&(t=!1),this.setState({[e.target.name]:t})}onSubmit(e){e.preventDefault();let t={postId:this.state.postId,description:this.state.description,pageNum:this.props.blog.currentPage,isCaptionBlur:this.state.captionBlur,isPublicPost:"Public"===this.state.editPostOption};this.props.editPost(t,()=>{this.setState({openEditBlogDialoag:!1,postId:"",isDropdownOpen:!1}),alert("Updated blog data successfully.")})}addPageNumbers(){let e=[],{currentPage:t,totalPages:a}=this.props.blog;if(t<=3)for(let n=1;n<t;n++)e.push(n);if(t>3)for(let n=t-3;n<t;n++)e.push(n);if(e.push(t),a>t)for(let n=t+1;n<=a&&!(n>t+3);n++)e.push(n);return e}refreshBlurImage(e,t){let a={id:e,type:"blog",format:t};this.props.refreshBlurImage(a)}goToNextBannerImage(){let e=this.state.selectedIndex+1;e>=this.props.auth.bannerImages.length&&(e=0),this.setState({selectedIndex:e})}goToPreviousBannerImage(){let e=this.state.selectedIndex-1;e<0&&(e=this.props.auth.bannerImages.length-1),this.setState({selectedIndex:e})}async rotateImageLeft(e,t,a){if(window.confirm("Are you sure you want to rotate this image?")){let n={id:e,type:"blog",rotate_angle:-90,imageIndex:t,format:a};await this.props.rotateImage(n),this.closeDropdown()}}async rotateImageRight(e,t,a){if(window.confirm("Are you sure you want to rotate this image?")){let n={id:e,type:"blog",rotate_angle:90,imageIndex:t,format:a};await this.props.rotateImage(n),this.closeDropdown()}}unlockContent(e,t,a,n,o){this.sendUnlockContentRequest(e,t,a,n,o)}async sendUnlockContentRequest(e,t,a,n,o){let i=a;"photo"===i&&(i="image"),Object(B.a)("add_to_cart","",t,i,"unlock feed",n);let r,s=`Please Confirm Your Purchase of $${t}.`;"crypto_currency"===this.props.auth.user.default_payment_method&&(s+=`You currently have $${this.props.auth.user.wallet_amount} in your wallet. Amount will be debited from your wallet balance.`),r="crypto_currency"!==this.props.auth.user.default_payment_method?window.confirm(s):!(this.props.auth.user.wallet_amount>=parseFloat(t))||window.confirm(s);const{enable_promotion:l}=this.props.auth.appSettings,{lockedContentPromotion:c}=this.props.promotion;let d=!1;if(l&&!1!==c&&!0===o&&(d=y.a.get(c,"_id",!1)),!0===o&&!1===d)return alert("Sorry promotion expired.");if(!0===r){let i={blogId:e,amount:t,recurring:!1,email:this.props.auth.user.email,action:"blog",blogType:a,title:n};!1!==d&&!0===o&&(i.ribbon_text=c.ribbon_text,i.promotion_id=d,i.is_promotion_applied=o);const r=y.a.get(this.props.auth.appSettings,"payment_api_version","v1");if("crypto_currency"===this.props.auth.user.default_payment_method)return this.setState({unlockData:i}),void this.unlockUsingCrypto(i);"v1"===r?!0===this.props.auth.appSettings.is_sticky_io_enabled?this.props.blogContentPurchase(i):this.props.blogChargeByPrevious(i):await this.props.blogPurchasePayment(i)}}async unlockUsingCrypto(e){let t=this.props.auth.user.wallet_amount,a=!0;!0===y.a.isNumber(e)&&(t=e,e=this.state.unlockData,a=!1);const n=Number(parseFloat(e.amount).toFixed(2)),o={payment_for:"blog",content_id:e.blogId,userId:this.props.auth.user._id};if(!1!==y.a.get(e,"promotion_id",!1)&&(o.promotion_id=e.promotion_id,o.is_promotion_applied=e.is_promotion_applied),t>=n){const e=await this.props.purchaseFromWallet(o);if(1===e.success)this.props.updateWalletAmount(e.data.wallet_balance),this.setState({unlockData:{}}),a||0===e.data.wallet_balance?alert(e.data.message):alert(`The payment of $${e.data.transaction_amount} was successful. Your content was unlocked. The remainder of your crypto deposit is stored in your wallet and can be used for future transactions.`);else{const t=y.a.get(e,"message","Payment failed.");alert(t)}}else if(0===t)this.setState({showAddFundPopup:!0,remainAmount:0});else{const e=Math.ceil(n-t);this.setState({showAddFundPopup:!0,remainAmount:e})}}createVideoProcessingRequest(e,t,a){let n={id:e,videoFrom:"blog",udid:"",isMassMessage:!1,s3FilePath:"originalVideos/"+a,shouldGenerateBlurImage:t};this.props.sendVideoProcessingRequest(n,()=>{this.setState({isDropdownOpen:!1})})}async setFeedTag(e){if(this.closeDropdown(),e!==this.props.blog.selectedTag){this.props.selectedFeedTag(e),this.props.setLoading(!0);let t={pageNum:1,feedTagId:e};await this.props.getAllBlogs(this.props.auth.user.isAdmin,t,()=>{})}}async getBlogs(){if(this.props.blog.selectedTag){this.props.setLoading(!0);let e={pageNum:1,feedTagId:this.props.blog.selectedTag};await this.props.getAllBlogs(this.props.auth.user.isAdmin,e,()=>{})}}hideAddFundForm(){this.setState({showAddFundPopup:!1})}async resetSelectedFeedTag(){if(this.closeDropdown(),""!==this.props.blog.selectedTag){this.props.setLoading(!0),this.props.selectedFeedTag("");let e={pageNum:1};await this.props.getAllBlogs(this.props.auth.user.isAdmin,e,()=>{})}this.setState({openDialogCategory:!1})}render(){const{classes:e}=this.props,{text_exclusive_content_banner:t,content_color:a,content_font_color:o,theme_2_banner_images_opacity:i,theme_2_show_social_media_icon:r,theme_2_instagram_url:l,theme_2_twitter_url:c,theme_2_snapchat_url:d,theme_2_facebook_url:m,theme_2_youtube_url:p,theme_2_website_url:u,theme_2_tiktok_url:g,theme_2_amazon_wishlist_url:h,theme_2_twitch_url:b,theme_2_discord_url:f,theme_2_banner_top_percentage:_,theme_2_banner_left_percentage:E,theme_2_banner_text_image_url:v,theme_2_banner_text_image_size:w,theme_2_banner_font_family:x,theme_2_banner_text:k,exclusive_content_recent_posts_text:N,theme_2_banner_subscribe_now_text:S,enable_watermark:C,watermark_color:T,watermark_size:O,watermark_position:I,theme_2_banner_text_font_size:M,theme_2_banner_subscribe_now_text_font_size:j,theme_2_banner_subscribe_now_type:F,theme_2_banner_subscribe_now_button_color:L,theme_2_banner_subscribe_now_button_font_color:D,theme_2_banner_subscribe_now_font_padding:$,theme_2_banner_extra_button_redirect_url:R,theme_2_banner_extra_button_text:B,theme_2_banner_extra_button_color:U,theme_2_banner_extra_button_font_color:z,theme_2_banner_extra_button_font_padding:W,card_background_color:H,site_font_color:q,theme_2_banner_text_color:V,theme_2_banner_arrow_icon_color:Y,theme_2_banner_subscribe_now_text_link_color:K,lock_icon_color:J,enable_group_live_streaming:X,theme_2_banner_subscribe_now_button_font_style:Q,theme_2_banner_subscribe_now_button_radius:Z,theme_2_banner_subscribe_now_button_border_size:ee,theme_2_banner_subscribe_now_button_border_color:te,theme_2_banner_subscribe_now_button_padding:ae,theme_2_banner_subscribe_now_button_above_spacing:ne,enable_promotion:oe,promotion_settings:ie,blog_unlock_button_text_font_size:re,text_exclusive_content_banner_font_style:se,text_exclusive_content_banner_font_size:le,chat_navbar_name:ce,feed_tags:de,feed_tags_enable:me,feed_tag_filter_button_text:pe,theme_2_banner_video_url:ue,theme_2_banner_video_url_mobile:ge,enable_theme_2_banner_video:he}=this.props.auth.appSettings,{isAdmin:be,ccbillSubscriptionStatus:fe,role:_e}=this.props.auth.user,{userUnreadMessage:ye}=this.props.auth.counts,Ee=!1===be&&("2"===fe||"1"===fe);let ve=y.a.get(ie,"subscription_promotion_ribbon_position","above menu");!0!==be&&"2"!==fe&&"1"!==fe||(ve=y.a.get(ie,"locked_content_promotion_ribbon_position","above menu"));let we=""!==l&&void 0!==l,xe=""!==c&&void 0!==c,ke=""!==d&&void 0!==d,Se=""!==m&&void 0!==m,Ce=""!==p&&void 0!==p,Oe=""!==u&&void 0!==u,Ie=""!==g&&void 0!==g,Ae=""!==h&&void 0!==h,Me=""!==b&&void 0!==b,je=""!==f&&void 0!==f,Fe=w.split(" ");4!==Fe.length&&(Fe=["250px","160px","130px","60px"]);let Le=M.split("|");4!==Le.length&&(Le=["40px","90px","100px","120px"]);let De=j.split("|");4!==De.length&&(De=["13px","30px","30px","35px"]);let $e=le.split("|");4!==$e.length&&($e=["16px","17px","18px","20px"]);let Re=re.split("|");4!==Re.length&&(Re=["12px","12px","12px","12px"]);let Be=this.props.auth.bannerImages.length>1;const{isAuthenticated:Ue,isModel:Ge,bannerImages:ze,isPhotoIdModalOpen:We}=this.props.auth;let He=Ue?"/membership":"/register",qe=$,Ve=ae;y.a.isEmpty(qe)&&(qe="8px 30px 8px 30px"),y.a.isEmpty(Ve)&&(Ve="8px 30px 8px 30px");let Ye=n.createElement(Xt,{className:"centered mx-auto",theme2BannerTextImageUrl:v,theme2FontSize:De},n.createElement(s.b,{to:He,style:{color:K,textDecoration:"none",padding:qe}},S));"button"===F&&(Ye=n.createElement(Xt,{className:"centered mx-auto",marginTop:ne,theme2BannerTextImageUrl:v,theme2FontSize:De},n.createElement(s.b,{to:He,style:{color:D,textDecoration:"none",background:L,fontFamily:Q,borderRadius:Z,border:ee+" solid",borderColor:te,padding:Ve}},S)));let Ke=null;if(!y.a.isEmpty(R)){let e=W;y.a.isEmpty(e)&&(e="8px 30px 8px 30px"),Ke=n.createElement(Qt,{className:"centered mx-auto mt-5",theme2BannerTextImageUrl:v,theme2FontSize:De},n.createElement("a",{href:R,style:{color:z,textDecoration:"none",background:U,padding:e,borderRadius:"16px"}},B))}let Qe={};Qe=this.props.blog.blog;const{lockedContentPromotion:et}=this.props.promotion;let tt=0;oe&&!1!==et&&"LOCKED_CONTENT"===et.type&&("EXCLUSIVE_CONTENT_AND_MASS_MESSAGE"!==et.applicable_to&&"EXCLUSIVE_CONTENT"!==et.applicable_to||(tt=parseInt(et.discount_percentage)));let at=[];for(let s=0;s<Qe.length;s++){const e=Qe[s],t=e.user.avatarUrl?e.user.avatarUrl:Object(G.a)("faces/avatar.png");at.push(n.createElement(Ne,{id:e._id,format:e.format,blogType:e.blogType,lock:(!this.props.auth.isAuthenticated||!0!==this.props.auth.user.payment.membership)&&!e.public,locked:!e.public,blur:e.privateBlur,contentURL:e.url,description:e.description,authorName:e.user.name,avatarUrl:t,date:e.date,height:800,key:e._id,index:s,openDlgBlog:this.openDialogBlog,thumbnailUrl:e.thumbnailUrl,deletePost:this.deleteBlog,isAdmin:this.props.auth.user.isAdmin,isAuthenticated:this.props.auth.isAuthenticated,processing:e.processing,openEditBlogDialog:this.openEditBlogDialog,blurUrl:e.blurUrl,isBlurLoading:this.props.admin.isBlurLoading,refreshBlurImage:this.refreshBlurImage,isModel:Ge,role:this.props.auth.user.role,rotateImageLeft:this.rotateImageLeft,rotateImageRight:this.rotateImageRight,openDropdown:this.openDropdown,closeDropdown:this.closeDropdown,isDropdownOpen:this.state.isDropdownOpen,dropdownIndex:this.state.dropdownIndex,isLocked:(!this.props.auth.isAuthenticated||!0!==this.props.auth.user.isAdmin)&&e.isLocked,amount:e.amount,unlockContent:this.unlockContent,isPaymentProcessing:this.props.ccbill.isBlogPaymentLoading,contentColor:a,contentFontColor:o,createVideoProcessingRequest:this.createVideoProcessingRequest,isPostLocked:e.isLocked,enableWatermark:C,watermarkColor:T,watermarkSize:O,watermarkPosition:I,userId:this.props.auth.user._id,cardBackgroundColor:H,siteFontColor:q,captionBlur:e.captionBlur,postCaptionBlurIntensity:this.props.auth.appSettings.post_caption_blur_intensity,userMembership:!y.a.isEmpty(this.props.auth.user)&&this.props.auth.user.payment.membership,galleryImages:e.gallery,blurGalleryImages:e.blurUrlGallery,error:!!e.isError&&e.isError,openReuseBlogDialogBox:this.openReuseBlogDialogBox,lockIconColor:J,subscribeText:this.props.auth.appSettings.subscribe_text_for_locked_content,promotionPercentage:tt,lineThroughColor:ie.price_strike_through_color,content_length:e.content_length,unlockButtonFontSize:Re,thumbnailUrlGallery:e.thumbnailUrlGallery,contentLeftForProcessing:e.contentLeftForProcessing,isPreviewEnable:e.isPreviewEnable,contentCount:e.contentCount,previewEnableImages:e.previewEnableImages,showNumberOfGalleryImage:e.showNumberOfGalleryImage,show_content_length:e.show_content_length,blogSubType:e.blogSubType,is_published:e.is_published,gallery_process_error_index:e.gallery_process_error_index,showTimestamp:this.props.auth.appSettings.timestamp_visibility.home_feed,media:e.media,media_preview:e.media_preview,total_comments:e.total_comments,total_likes:e.total_likes,user_feed_like:e.user_feed_like,feed_tags:e.feed_tags,onGetBlogs:this.getBlogs}))}return n.createElement("div",null,We?n.createElement(Te.a,null):null,n.createElement(Vt,{opacity:i},he?n.createElement(n.Fragment,null,this.state.clientWidth<576?n.createElement("video",{src:ge||ue,type:"video/mp4",playsInline:!0,autoPlay:!0,loop:!0,muted:!0,style:{width:"100vw",maxHeight:`calc(100vh - ${this.state.navHeight}px)`}}):n.createElement("video",{src:ue,type:"video/mp4",playsInline:!0,autoPlay:!0,loop:!0,muted:!0,style:{width:"100vw"}})):n.createElement(n.Fragment,null,n.createElement("img",{className:"img-fluid",src:ze[this.state.selectedIndex],alt:"",draggable:!1}),Be?n.createElement(aa,{onClick:this.goToPreviousBannerImage},n.createElement("i",{style:{color:Y},className:"fas fa-chevron-left fa-2x"})):null,Be?n.createElement(na,{onClick:this.goToNextBannerImage},n.createElement("i",{style:{color:Y},className:"fas fa-chevron-right fa-2x"})):null),n.createElement(Yt,{theme2BannerTopPercentage:_,theme2BannerLeftPercentage:E},v?n.createElement(Jt,{src:v,theme:{imageSize:Fe}}):n.createElement(Kt,{className:"centered",theme2BannerFontFamily:x,theme2FontSize:Le,theme2BannerTextColor:V},k),this.props.auth.isAuthenticated&&!0===this.props.auth.user.payment.membership?null:n.createElement(n.Fragment,null,Ye),Ke)),"below hero"===ve&&n.createElement(Xe.a,null),n.createElement("div",{className:"container"},n.createElement($t,null),n.createElement(A.a,null,n.createElement(Zt,{textExclusiveContentBannerFontStyle:se,exclusiveContentBannerFontSize:$e},t.split("\n").map((e,t)=>n.createElement("div",{key:t},e,n.createElement("br",null)))),r?n.createElement("div",{className:"row row-eq-height pt-3"},n.createElement("div",{className:"col text-center"},we?n.createElement("a",{href:l,target:"_blank",rel:"noopener noreferrer"},n.createElement(ta,{src:Object(G.a)("social-icons/instagram.png"),alt:"Instagram"})):null,xe?n.createElement("a",{className:"pl-4",href:c,target:"_blank",rel:"noopener noreferrer"},n.createElement(ta,{src:Object(G.a)("social-icons/twitter.png"),alt:"Twitter"})):null,ke?n.createElement("a",{className:"pl-4",href:d,target:"_blank",rel:"noopener noreferrer"},n.createElement(ta,{src:Object(G.a)("social-icons/snapchat.png"),alt:"Snapchat"})):null,Se?n.createElement("a",{className:"pl-4",href:m,target:"_blank",rel:"noopener noreferrer"},n.createElement(ta,{src:Object(G.a)("social-icons/facebook.png"),alt:"Facebook"})):null,Ce?n.createElement("a",{className:"pl-4",href:p,target:"_blank",rel:"noopener noreferrer"},n.createElement(ta,{src:Object(G.a)("social-icons/youtube.png"),alt:"YouTube"})):null,Oe?n.createElement("a",{className:"pl-4",href:u,target:"_blank",rel:"noopener noreferrer"},n.createElement(ta,{src:Object(G.a)("social-icons/website.png"),alt:"website"})):null,Ie?n.createElement("a",{className:"pl-4",href:g,target:"_blank",rel:"noopener noreferrer"},n.createElement(ta,{src:Object(G.a)("social-icons/tiktok.png"),alt:"tiktok"})):null,Ae?n.createElement("a",{className:"pl-4",href:h,target:"_blank",rel:"noopener noreferrer"},n.createElement(ta,{src:Object(G.a)("social-icons/amazon.png"),alt:"amazon"})):null,Me?n.createElement("a",{className:"pl-4",href:b,target:"_blank",rel:"noopener noreferrer"},n.createElement(ta,{src:Object(G.a)("social-icons/twitch.png"),alt:"twitch"})):null,je?n.createElement("a",{className:"pl-4",href:f,target:"_blank",rel:"noopener noreferrer"},n.createElement(ta,{src:Object(G.a)("social-icons/discord.png"),alt:"discord"})):null)):null),!0===Ee&&n.createElement("div",{className:"text-center mt-3"},n.createElement(s.b,{to:"/private-chat"},n.createElement("button",{className:"btn",style:{backgroundColor:a,color:o}},ce),ye>0&&n.createElement(ia,{className:"badge badge-pill py-1",content_color:a,content_font_color:o},ye))),be&&"live_stream_manager"!==_e?n.createElement("div",{className:"row mt-5 justify-content-center"},n.createElement("div",{className:"col-lg-8"},n.createElement(Ft,null))):null,("model"===_e||"live_stream_manager"===_e)&&n.createElement("div",{className:Tt()("row justify-content-center mb-3",{"mt-5":"live_stream_manager"===_e})},n.createElement(ra,{className:"col col-lg-8 col-md-8 p-0",role:_e},n.createElement("div",{className:"row"},X&&n.createElement("div",{className:"col"},n.createElement("button",{className:"btn",style:{backgroundColor:a,color:o,position:"relative"},onClick:this.props.onStartGoLive},"GO LIVE NOW"),n.createElement(ia,{className:"badge badge-pill py-1",content_color:a,content_font_color:o},this.props.onlineUserCount," / ",this.props.onlineAllUsersCount),n.createElement(oa,{onClick:this.props.setHelperModelOpen,style:{backgroundColor:"transparent",color:a}},n.createElement("i",{className:"fas fa-question-circle"}))),!0===oe&&"live_stream_manager"!==_e&&n.createElement("div",{className:"col"},n.createElement("button",{className:"btn",onClick:this.props.setPromotionModelOpen,style:{backgroundColor:a,color:o}},this.props.promotionButtonText),n.createElement(oa,{onClick:this.props.setHelperModelOpenForPromotion,style:{backgroundColor:"transparent",color:a}},n.createElement("i",{className:"fas fa-question-circle"})))))),("admin"===this.props.auth.user.role||"sub_admin"===this.props.auth.user.role||"content_manager"===this.props.auth.user.role)&&n.createElement("div",{className:"row justify-content-center mb-3"},n.createElement(sa,{className:"col col-lg-8"},n.createElement("div",{className:"row",style:{textAlign:"center"}},n.createElement("div",{className:"col"},n.createElement("button",{className:"btn",style:{backgroundColor:a,color:o}},n.createElement("i",{className:"fas fa-eye"})),n.createElement(ia,{className:"badge badge-pill py-1",content_color:a,content_font_color:o},this.props.onlineUserCount," / ",this.props.onlineAllUsersCount)),!0===oe&&n.createElement("div",{className:"col admin-promotion-btn",style:{whiteSpace:"nowrap"}},n.createElement("button",{className:"btn",onClick:this.props.setPromotionModelOpen,style:{backgroundColor:a,color:o,width:"175px"}},this.props.promotionButtonText),n.createElement(oa,{onClick:this.props.setHelperModelOpenForPromotion,style:{backgroundColor:"transparent",color:a}},n.createElement("i",{className:"fas fa-question-circle"})))))),n.createElement(A.a,null,n.createElement("div",{className:"row justify-content-center",style:{paddingTop:"15px"}},n.createElement("div",{className:"col-8",style:{border:"0.5px solid "+q}})),n.createElement(ea,{id:"recent-posts",className:"p-5 text-center"},N),me&&this.props.blog.tagList.length>0&&void 0!==this.props.auth.user._id&&n.createElement("div",{className:"d-flex flex-row-reverse pb-5"},this.state.openDialogCategory?n.createElement(Dt,{tagList:de,onClick:this.setFeedTag,onReset:this.resetSelectedFeedTag,selectedTag:this.props.blog.selectedTag,disabled:this.props.blog.isLoading,showCount:!1}):n.createElement("button",{className:"btn",onClick:()=>{this.setState({openDialogCategory:!0}),this.closeDropdown()},style:{backgroundColor:a,color:o}},pe," ",n.createElement("i",{className:"fas fa-filter"}))),this.props.blog.isLoading?n.createElement("div",{className:"d-flex flex-column justify-content-center align-items-center"},n.createElement(Ze.a,{loading:!0,size:10})):n.createElement(n.Fragment,null,n.createElement("div",{className:"row",onTouchMove:this.props.auth.appSettings.is_pagination_on_exclusive_content_enabled?null:this.listenToScroll},at.length>0?!(this.props.auth.appSettings.is_pagination_on_exclusive_content_enabled&&this.state.isLoading)&&at:n.createElement("div",{className:"text-center my-4"},n.createElement("h4",null,"No Posts Found")))),!0===this.state.isLoading?n.createElement("div",{className:"text-center"},n.createElement("div",{className:"d-flex flex-column justify-content-center align-items-center"},n.createElement(Ze.a,{loading:!0,size:10}))):null,this.props.auth.appSettings.is_pagination_on_exclusive_content_enabled&&n.createElement("div",{className:"pagination justify-content-center"},n.createElement(Ut.a,{totalPages:this.props.blog.totalPages,currentPage:this.props.blog.currentPage,contentColor:a,contentFontColor:o,isFiltered:!1,onItemClick:this.changePage,showFirstAndLastBtn:!0,isLoading:this.state.isLoading||this.props.blog.isLoading})))),!0===this.state.isBlogOpen&&this.state.index>=0&&"gallery"===Qe[this.state.index].blogType&&n.createElement(Pe.a,{galleryImages:Qe[this.state.index].gallery,closeDialogBlog:this.closeDialogBlog,classes:e,userId:this.props.auth.user._id,galleryIndex:this.state.galleryIndex,isPreviewEnable:Qe[this.state.index].isPreviewEnable,previewEnableImages:Qe[this.state.index].previewEnableImages,isLocked:Qe[this.state.index].isLocked,contentCount:Qe[this.state.index].contentCount,thumbImages:Qe[this.state.index].thumbnailUrlGallery,media:Qe[this.state.index].media,contentFrom:"blog"}),!0===this.state.isBlogOpen&&this.state.index>=0&&"gallery"!==Qe[this.state.index].blogType&&n.createElement(P.a,{type:this.state.index>=0&&"video"===Qe[this.state.index].blogType?"video":"photo",url:this.state.index>=0?Qe[this.state.index].media[0].url:"",handleClose:this.closeDialogBlog}),this.state.openEditBlogDialoag?n.createElement(Je,{onSubmit:this.onSubmit,onChange:this.onChange,handleEditBlogDialogClose:this.handleEditBlogDialogClose,description:this.state.description,captionBlur:this.state.captionBlur,isEditPostLocked:this.state.isEditPostLocked,editPostOption:this.state.editPostOption,mediaPreview:this.state.mediaPreview,postId:this.state.postId,media:this.state.media,feedTagId:this.state.feedTagId}):null,this.state.openReuseBlogDialog&&n.createElement(Lt.a,{handleReuseBlogDialogClose:this.handleReuseBlogDialogClose,editBlogId:this.state.postId}),!0===this.state.showAddFundPopup&&n.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#00000080"}},n.createElement("div",{className:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},n.createElement("div",{className:"modal-content",style:{backgroundColor:H}},n.createElement("div",{className:"modal-header align-items-center"},n.createElement("button",{className:"close",onClick:()=>{this.setState({showAddFundPopup:!1})},style:{color:q,opacity:1}})),n.createElement("div",{className:"modal-body"},n.createElement("div",{className:"container"},n.createElement(Rt.a,{onHideAddFund:this.hideAddFundForm,type:"blog",transactionAmount:Number(this.state.unlockData.amount),remainAmount:this.state.remainAmount,onCompleteTransaction:e=>{this.setState({showAddFundPopup:!1}),e&&this.unlockUsingCrypto(e)}})))))))}}var ca=Object(c.b)(e=>({auth:e.auth,errors:e.errors,chat:e.chat,blog:e.blog,admin:e.admin,ccbill:e.ccbill,promotion:e.promotion,utility:e.utility}),{getAllBlogs:M.g,deleteBlogPost:M.e,editPost:M.f,refreshBlurImage:Se.k,rotateImage:Se.m,blogChargeByPrevious:Ce.a,sendVideoProcessingRequest:Se.o,toggleNewPaymentModal:Oe.k,blogContentPurchase:Qe.b,blogPurchasePayment:et.c,purchaseFromWallet:Bt.i,updateWalletAmount:Bt.k,selectedFeedTag:M.r,setLoading:M.s})(Object(l.g)(Object(b.a)(e=>({container:{marginLeft:"auto",marginRight:"auto",[e.breakpoints.up("lg")]:{maxWidth:900}},row:{marginLeft:"0px",marginRight:"0px"}}))(la))),da=a(286),ma=a(87),pa=a(140),ua=a(104),ga=a(83),ha=a(174),ba=a(166);const fa=f.a.div`
    width: 100%;
        .modal-dialog {
            max-width: 500px;
        }

        @media(max-width: 575px) {
            .modal-dialog{
                max-width: 320px
                margin: auto;
            }
        }

        @media(max-width: 375px) {
            .modal-dialog{
                max-width: 310px
                margin: auto;
                margin-top: 5px;
            }
        }

`,_a=f.a.div`
    width: 100%;
        .nav-item a.nav-link {
            display: block;
            width: -webkit-fill-available;
        }
        .tab-content {
            margin-top: 12px;
        }
        ul.nav.nav-tabs{
            margin: 0px -16px;
            border: none;
        }
        li.nav-item {
            padding: 0px;
        }
        a.nav-link.active {
            background-color: ${e=>e.cardColor};
            border: 0px;
            color: ${e=>e.siteFontColor} !important;
        }
        a.nav-link {
            background-color: ${e=>e.contentColor};
            color: ${e=>e.contentFontColor} !important;
            border: 0px;
            font-weight: bold;
        }
        button {
            background-color: ${e=>e.contentColor} ;
            color: ${e=>e.contentFontColor};
        }
        button:hover{
            color: ${e=>e.contentFontColor};
        }
        .options-div {
            margin: 6px 0px;
        }
        .save-btn, .close-btn {
            width: 120px;
        }
`;var ya=Object(c.b)(e=>({auth:e.auth}),{savePromotionOffer:ga.h,getPromotionOffer:ga.d,endPromotionOffer:ga.b})(Object(l.g)((function(e){const{site_font_color:t,card_background_color:a,content_color:i,content_font_color:r,membership_price:s,recurring_membership_price:l}=e.auth.appSettings,{isSuperAdmin:c,isSubAdmin:d}=e.auth;let[m,p]=Object(n.useState)(0),[u,g]=Object(n.useState)(0),[h,b]=Object(n.useState)(0),[f,_]=Object(n.useState)(1),[y,E]=Object(n.useState)("free first month"),[v,w]=Object(n.useState)(!1),[x,k]=Object(n.useState)(!1),[N,S]=Object(n.useState)(""),[C,T]=Object(n.useState)("New Subscriber Promotion"),[O,P]=Object(n.useState)(""),[I,A]=Object(n.useState)("New Subscriber Promotion"),[M,j]=Object(n.useState)(50),[F,L]=Object(n.useState)(!0),[D,$]=Object(n.useState)("UTC"),[R,B]=Object(n.useState)(!1);const[U,G]=Object(n.useState)(!1),[z,W]=Object(n.useState)(!1),[H,q]=Object(n.useState)(!1),[V,Y]=Object(n.useState)(30),[K,J]=Object(n.useState)(!1),[X,Q]=Object(n.useState)(!1);Object(n.useEffect)(()=>{if(""!==O){L(!0);const t={promotion_type:O};e.getPromotionOffer(t,e=>{if(null!==e.data)w(!0),k(e.data.date_expire),E(e.data.ribbon_text),S(e.data._id),B(e.data.is_repeat_promotion);else if(w(!1),S(""),"SUBSCRIPTION"===O){const e=ee[m];E(e.text),A("New Subscriber Promotion"),T("New Subscriber Promotion")}else g(0),A("Exclusive Content and Mass Message Promotion"),T("Exclusive Content and Mass Message Promotion");L(!1)})}},[O]);const Z=Object(n.useMemo)(()=>"0.00"!==s||"0.00"!==l,[s,l]);Object(n.useEffect)(()=>{P(!1===Z?"LOCKED_CONTENT":"SUBSCRIPTION")},[]);const ee=Object(n.useMemo)(()=>{const e=[{label:`free for initial trial period, $${l} recurring price`,price:0,recurring_price:l,value:0,text:"free for initial trial period"}];let t=[];for(let a=s-1;a>1;a--)t.push(a),t.reverse();return t.sort((function(e,t){return e-t})),t.forEach((t,a)=>{const n=parseFloat(t).toFixed(2),o={label:`$${n} for initial trial period, $${l} recurring price`,price:n,recurring_price:l,value:a+1,text:`$${n} for initial trial period`};e.push(o)}),e.push({label:"free for life",price:0,recurring_price:0,value:t.length+1,text:"free for life"}),e},[]),te=Object(n.useMemo)(()=>{const e=[{value:1,label:"1 hour"}];for(let t=2;t<=24;t++)e.push({value:t,label:t+" hours"});for(let t=2;t<=30;t++)e.push({value:24*t,label:t+" days"});return e.push({value:"END_OF_DAY",label:"End of day"}),e.push({value:"END_OF_MONTH",label:"End of month"}),e},[]),ae=Object(n.useMemo)(()=>{const e=[{value:30,label:"1 Month"}];for(let t=1;t<30;t++)e.push({value:t,label:`${t} day${t>1?"s":""}`});return e},[]),ne=Object(n.useMemo)(()=>{const e=[];for(let t=10;t<=80;t++)e.push({value:t,label:t+"% off"});return e},[]),oe=e=>{_(e.target.value)},ie=Object(n.useMemo)(()=>{let e=C;!1===U&&(e+=" - "+y);const t=""+(30===V?"first month":`${V} Day${V>1?"s":""}`);return e=e.replace("initial trial period",t),e},[C,y,U,V]),re=Object(n.useMemo)(()=>{let e=C;return!1===z&&(e+=" - "+M+"% off"),e},[C,z,M]),se=()=>{const t={date_expire:f,type:O,is_repeat_promotion:R,is_trial_offer:30!==V,initial_period:V};if("END_OF_MONTH"!==f&&"END_OF_DAY"!==f||(t.timezone=D,t.is_repeat_promotion=!1),"SUBSCRIPTION"===O){t.ribbon_text=ie;const e=ee.filter(e=>e.value===m);t.subscription_initial_amount=e[0].price,t.subscription_recurring_amount=e[0].recurring_price,t.applicable_to=0===h?"ALL_USERS":1===h?"NEW_USERS":"OLD_USERS"}else t.applicable_to=0===u?"EXCLUSIVE_CONTENT_AND_MASS_MESSAGE":1===u?"EXCLUSIVE_CONTENT":"MASS_MESSAGE",t.discount_percentage=M,t.ribbon_text=re;Q(!0),e.savePromotionOffer(t,()=>{Q(!1),e.handlePromotionModelClose(),e.setPromotionButtonTextAfterSave()})},le=()=>{let t="Are you sure that you want to end the New Subscriber Promotion?";if("SUBSCRIPTION"!==O&&(t="Are you sure that you want to end the Locked Content Promotion?"),window.confirm(t)){const t={id:N};Q(!0),e.endPromotionOffer(t,()=>{Q(!1),e.handlePromotionModelClose(),e.setPromotionButtonTextAfterSave()})}},ce=e=>{let{days:t,hours:a,minutes:n,seconds:i,completed:r}=e;return r?o.a.createElement(o.a.Fragment,null):t>0?t+" Days, "+a+" hours, "+n+" minutes":0===t&&a>0?1===a?a+" hour, "+n+" minutes":a+" hours, "+n+" minutes":0===t&&0===a&&n>0?n+" minutes, "+i+" seconds":0===t&&0===a&&0===n&&i>0?i+" seconds":void 0},de=e=>{g(e),ue(e)},me=e=>{j(e.target.value)},pe=e=>{if(!1===Z)return g(0),P("LOCKED_CONTENT"),j(50),A("Exclusive Content and Mass Message Promotion"),void T("Exclusive Content and Mass Message Promotion");if(0===e){P("SUBSCRIPTION");const e=ee[m];E(e.text),A("New Subscriber Promotion"),T("New Subscriber Promotion")}else g(0),P("LOCKED_CONTENT"),j(50),A("Exclusive Content and Mass Message Promotion"),T("Exclusive Content and Mass Message Promotion")},ue=e=>{0===e?(T("Exclusive Content and Mass Message Promotion"),A("Exclusive Content and Mass Message Promotion")):1===e?(T("Exclusive Content Promotion"),A("Exclusive Content Promotion")):(T("Mass Message Promotion"),A("Mass Message Promotion"))};return o.a.createElement(fa,null,o.a.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#00000080"}},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},o.a.createElement("div",{className:"modal-content",style:{color:t,borderRadius:"5px",background:"transparent"}},o.a.createElement("div",{className:"modal-body pt-0",style:{backgroundColor:a}},o.a.createElement(_a,{contentColor:i,contentFontColor:r,cardColor:a,siteFontColor:t},!0===Z?o.a.createElement(pa.Tabs,{className:"nav-pills nav-fill",onSelect:e=>pe(e),disabled:X},o.a.createElement(pa.Tab,{label:"NEW SUBSCRIBERS"},!0===F?o.a.createElement("div",{className:"text-center"},o.a.createElement("div",{className:"spinner-border",role:"status",style:{color:t}},o.a.createElement("span",{className:"sr-only"},"Loading..."))):o.a.createElement("div",{className:"row"},!1===v?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"col-12 mb-3"},o.a.createElement("h4",{className:"text-center mt-3 mb-4"},"NEW SUBSCRIBER PROMOTION"),ee.map((e,t)=>o.a.createElement("div",{className:"options-div",key:"offer_"+t},o.a.createElement("div",{className:"form-check"},o.a.createElement("input",{className:"form-check-input",type:"radio",name:"radio",id:"radio"+t,onChange:()=>(e=>{p(e);const t=ee[e];E(t.text);const a=0===t.price&&0===t.recurring_price;J(a),!0===a&&Y(30)})(t),checked:t===m}),o.a.createElement("label",{className:"form-check-label",htmlFor:"radio"+t},e.label)))),(!0===c||!0===d)&&o.a.createElement("div",{className:"options-div mt-4"},o.a.createElement("div",{className:"form-check"},o.a.createElement("input",{className:"form-check-input",type:"checkbox",id:"checkbox-1",defaultChecked:U,onChange:()=>G(!U)}),o.a.createElement("label",{className:"form-check-label",htmlFor:"checkbox-1"},'Exclude "',y,'" from promotion message'))),!1===K&&o.a.createElement(o.a.Fragment,null,o.a.createElement("hr",{className:"my-5",style:{borderTop:"3px solid #0000006b",borderRadius:"25px",maxWidth:"100px"}}),o.a.createElement("label",null,"Initial Trial Period"),o.a.createElement("br",null),o.a.createElement("select",{className:"custom-select py-1 form-control w-auto",onChange:e=>{q(!1),b(0),parseInt(e.target.value)<30&&(q(!0),b(1)),Y(parseInt(e.target.value))}},ae.map((e,t)=>o.a.createElement("option",{key:t,value:e.value},e.label)))),o.a.createElement("hr",{className:"my-5",style:{borderTop:"3px solid #0000006b",borderRadius:"25px",maxWidth:"100px"}}),o.a.createElement("label",null,"How long should the promotion be active?"),o.a.createElement("br",null),o.a.createElement("select",{className:"custom-select py-1 form-select w-auto","aria-label":"Default select example",onChange:oe},te.map((e,t)=>o.a.createElement("option",{key:t,value:e.value},e.label))),("END_OF_DAY"===f||"END_OF_MONTH"===f)&&o.a.createElement("div",{className:"form-row mt-2"},o.a.createElement("div",{className:"col-12 col-md-12 col-lg-12"},o.a.createElement(ba.a,{id:"max-s",label:"Timezone",name:"website_timezone",onChange:e=>$(e.target.value),options:ha.a,value:D}))),"END_OF_DAY"!==f&&"END_OF_MONTH"!==f&&o.a.createElement("div",{className:"form-check mt-4"},o.a.createElement("input",{type:"checkbox",className:"form-check-input",name:"repeat-promotion",id:"repeat-promotion",onChange:e=>B(e.target.checked)}),o.a.createElement("label",{className:"form-check-label mt-1",htmlFor:"repeat-promotion"},"Repeat the promotion once time expires")),o.a.createElement("hr",{className:"my-5",style:{borderTop:"3px solid #0000006b",borderRadius:"25px",maxWidth:"100px"}}),o.a.createElement("div",{className:"options-div"},o.a.createElement("div",{className:"form-check"},o.a.createElement("input",{className:"form-check-input",type:"radio",name:"radio3",id:"offer_radio1",onChange:()=>b(0),checked:0===h,disabled:H}),o.a.createElement("label",{className:"form-check-label",htmlFor:"offer_radio1"},"for both new subscriber and old subscriber"))),o.a.createElement("div",{className:"options-div"},o.a.createElement("div",{className:"form-check"},o.a.createElement("input",{className:"form-check-input",type:"radio",name:"radio3",id:"offer_radio2",onChange:()=>b(1),checked:1===h,disabled:H}),o.a.createElement("label",{className:"form-check-label",htmlFor:"offer_radio2"},"for only new subscriber"))),o.a.createElement("div",{className:"options-div"},o.a.createElement("div",{className:"form-check"},o.a.createElement("input",{className:"form-check-input",type:"radio",name:"radio3",id:"offer_radio3",onChange:()=>b(2),checked:2===h,disabled:H}),o.a.createElement("label",{className:"form-check-label",htmlFor:"offer_radio3"},"for only old subscriber"))),o.a.createElement("hr",{className:"my-5",style:{borderTop:"3px solid #0000006b",borderRadius:"25px",maxWidth:"100px"}}),o.a.createElement("h6",{className:"text-center mt-1"},"Message on Landing Page"),o.a.createElement("label",null,ie),o.a.createElement("div",{className:"input-group"},o.a.createElement("input",{type:"text",className:"form-control",placeholder:"New Subscriber Promotion","aria-label":"Coupon Code","aria-describedby":"button-addon2",onChange:e=>A(e.target.value),value:I}),o.a.createElement("button",{className:"btn my-0",style:{padding:"0.295rem 0.75rem"},type:"button",id:"button-addon2",onClick:()=>T(I)},"Apply")),o.a.createElement("small",{id:"couponcode",className:"form-text text-muted mt-0"},"Change promotion message.")),o.a.createElement("div",{className:"col-6 text-center text-md-right"},o.a.createElement("button",{className:"btn save-btn",onClick:se,disabled:X},"Save")),o.a.createElement("div",{className:"col-6 text-center text-md-left"},o.a.createElement("button",{className:"btn close-btn",onClick:e.handlePromotionModelClose,disabled:X},"Cancel"))):o.a.createElement("div",{className:"col-12 text-center"},o.a.createElement("h4",{className:"text-center mt-1"},"New Subscriber Promotion is Currently active",R?" - Repeated":""),o.a.createElement("p",null,y),o.a.createElement("p",null," Ends in \xa0",!1!==x&&o.a.createElement(ua.a,{date:x,onComplete:e.handlePromotionModelClose,renderer:ce})),o.a.createElement("button",{className:"btn",type:"button",id:"button-addon2",onClick:le,disabled:X},"END PROMOTION"),o.a.createElement("button",{className:"btn close-btn",onClick:e.handlePromotionModelClose},"Cancel")))),o.a.createElement(pa.Tab,{label:"LOCKED CONTENT",disabled:X},!0===F?o.a.createElement("div",{className:"text-center"},o.a.createElement("div",{className:"spinner-border",role:"status",style:{color:t}},o.a.createElement("span",{className:"sr-only"},"Loading..."))):o.a.createElement("div",{className:"row"},!1===v?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"col-12 mb-3"},o.a.createElement("h4",{className:"text-center mt-3 mb-4"},"LOCKED CONTENT PROMOTION"),o.a.createElement("div",{className:"form-check"},o.a.createElement("input",{className:"form-check-input",type:"radio",name:"radio1",id:"radio11",onChange:()=>de(0),checked:0===u}),o.a.createElement("label",{className:"form-check-label",htmlFor:"radio11"},"both exclusive content and mass messages")),o.a.createElement("div",{className:"form-check"},o.a.createElement("input",{className:"form-check-input",type:"radio",name:"radio1",id:"radio21",onChange:()=>de(1),checked:1===u}),o.a.createElement("label",{className:"form-check-label",htmlFor:"radio21"},"exclusive content only")),o.a.createElement("div",{className:"form-check"},o.a.createElement("input",{className:"form-check-input",type:"radio",name:"radio1",id:"radio31",onChange:()=>de(2),checked:2===u}),o.a.createElement("label",{className:"form-check-label",htmlFor:"radio31"},"mass messages only")),(!0===c||!0===d)&&o.a.createElement("div",{className:"mt-4"},o.a.createElement("div",{className:"form-check"},o.a.createElement("input",{className:"form-check-input",type:"checkbox",id:"checkbox-1",defaultChecked:z,onChange:()=>W(!z)}),o.a.createElement("label",{className:"form-check-label",htmlFor:"checkbox-1"},'Exclude "',M+"% off",'" from promotion message'))),o.a.createElement("br",null),"LOCKED_CONTENT"===O&&o.a.createElement("select",{className:"custom-select py-1 form-select w-auto","aria-label":"Default select example",onChange:me},ne.map((e,t)=>o.a.createElement("option",{key:t,value:e.value,selected:M===e.value},e.label))),o.a.createElement("hr",{className:"my-5",style:{borderTop:"3px solid #0000006b",borderRadius:"25px",maxWidth:"100px"}}),o.a.createElement("label",null,"How long do you need to set the promotion?"),o.a.createElement("br",null),o.a.createElement("select",{className:"custom-select py-1 form-select w-auto","aria-label":"Default select example",onChange:oe},te.map((e,t)=>o.a.createElement("option",{key:t,value:e.value},e.label))),("END_OF_DAY"===f||"END_OF_MONTH"===f)&&o.a.createElement("div",{className:"form-row mt-2"},o.a.createElement("div",{className:"col-12 col-md-12 col-lg-12"},o.a.createElement(ba.a,{id:"max-s",label:"Timezone",name:"website_timezone",onChange:e=>$(e.target.value),options:ha.a,value:D}))),o.a.createElement("hr",{className:"mx-9 my-5",style:{borderTop:"3px solid #0000006b",borderRadius:"25px"}}),o.a.createElement("label",null,re),o.a.createElement("div",{className:"input-group"},o.a.createElement("input",{type:"text",className:"form-control",value:I,"aria-label":"Coupon Code","aria-describedby":"button-addon2",onChange:e=>A(e.target.value)}),o.a.createElement("button",{className:"btn my-0",style:{padding:"0.295rem 0.75rem"},type:"button",id:"button-addon2",onClick:()=>T(I)},"Apply")),o.a.createElement("small",{id:"couponcode",className:"form-text text-muted mt-0"},"Change promotion message.")),o.a.createElement("div",{className:"col-6 text-center text-md-right"},o.a.createElement("button",{className:"btn save-btn",onClick:se,disabled:X},"Save")),o.a.createElement("div",{className:"col-6 text-center text-md-left"},o.a.createElement("button",{className:"btn close-btn",onClick:e.handlePromotionModelClose,disabled:X},"Cancel"))):o.a.createElement("div",{className:"col-12 text-center"},o.a.createElement("h4",{className:"text-center mt-1"},"Locked Content Promotion is Currently active"),o.a.createElement("p",null,y),o.a.createElement("p",null," Ends in \xa0",!1!==x&&o.a.createElement(ua.a,{date:x,onComplete:e.handlePromotionModelClose,renderer:ce})),o.a.createElement("button",{className:"btn",type:"button",id:"button-addon2",onClick:le,disabled:X},"END PROMOTION"),o.a.createElement("button",{className:"btn close-btn",onClick:e.handlePromotionModelClose},"Cancel"))))):o.a.createElement(pa.Tabs,{className:"nav-pills nav-fill",onSelect:e=>pe(e)},o.a.createElement(pa.Tab,{label:"LOCKED CONTENT"},!0===F?o.a.createElement("div",{className:"text-center"},o.a.createElement("div",{className:"spinner-border",role:"status",style:{color:t}},o.a.createElement("span",{className:"sr-only"},"Loading..."))):o.a.createElement("div",{className:"row"},!1===v?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"col-12 mb-3"},o.a.createElement("h4",{className:"text-center mt-3 mb-4"},"LOCKED CONTENT PROMOTION"),o.a.createElement("div",{className:"form-check"},o.a.createElement("input",{className:"form-check-input",type:"radio",name:"radio1",id:"radio11",onChange:()=>de(0),checked:0===u}),o.a.createElement("label",{className:"form-check-label",htmlFor:"radio11"},"both exclusive content and mass messages")),o.a.createElement("div",{className:"form-check"},o.a.createElement("input",{className:"form-check-input",type:"radio",name:"radio1",id:"radio21",onChange:()=>de(1),checked:1===u}),o.a.createElement("label",{className:"form-check-label",htmlFor:"radio21"},"exclusive content only")),o.a.createElement("div",{className:"form-check"},o.a.createElement("input",{className:"form-check-input",type:"radio",name:"radio1",id:"radio31",onChange:()=>de(2),checked:2===u}),o.a.createElement("label",{className:"form-check-label",htmlFor:"radio31"},"mass messages only")),o.a.createElement("br",null),"LOCKED_CONTENT"===O&&o.a.createElement("select",{className:"custom-select py-1 form-select w-auto","aria-label":"Default select example",onChange:me},ne.map((e,t)=>o.a.createElement("option",{key:t,value:e.value,selected:M===e.value},e.label))),o.a.createElement("hr",{className:"my-5",style:{borderTop:"3px solid #0000006b",borderRadius:"25px",maxWidth:"100px"}}),o.a.createElement("label",null,"How long do you need to set the promotion?"),o.a.createElement("br",null),o.a.createElement("select",{className:"custom-select py-1 form-select w-auto","aria-label":"Default select example",onChange:oe},te.map((e,t)=>o.a.createElement("option",{key:t,value:e.value},e.label))),("END_OF_DAY"===f||"END_OF_MONTH"===f)&&o.a.createElement("div",{className:"form-row mt-2"},o.a.createElement("div",{className:"col-12 col-md-12 col-lg-12"},o.a.createElement(ba.a,{id:"max-s",label:"Timezone",name:"website_timezone",onChange:e=>$(e.target.value),options:ha.a,value:D}))),o.a.createElement("hr",{className:"mx-9 my-5",style:{borderTop:"3px solid #0000006b",borderRadius:"25px"}}),o.a.createElement("label",null,C+" - "+M+"% off"),o.a.createElement("div",{className:"input-group"},o.a.createElement("input",{type:"text",className:"form-control",value:I,"aria-label":"Coupon Code","aria-describedby":"button-addon2",onChange:e=>A(e.target.value)}),o.a.createElement("button",{className:"btn my-0",style:{padding:"0.295rem 0.75rem"},type:"button",id:"button-addon2",onClick:()=>T(I)},"Apply")),o.a.createElement("small",{id:"couponcode",className:"form-text text-muted mt-0"},"Change promotion message.")),o.a.createElement("div",{className:"col-6 text-center text-md-right"},o.a.createElement("button",{className:"btn save-btn",onClick:se,disabled:X},"Save")),o.a.createElement("div",{className:"col-6 text-center text-md-left"},o.a.createElement("button",{className:"btn close-btn",onClick:e.handlePromotionModelClose,disabled:X},"Cancel"))):o.a.createElement("div",{className:"col-12 text-center"},o.a.createElement("h4",{className:"text-center mt-1"},"Locked Content Promotion is Currently active"),o.a.createElement("p",null,y),o.a.createElement("p",null," Ends in \xa0",!1!==x&&o.a.createElement(ua.a,{date:x,onComplete:e.handlePromotionModelClose,renderer:ce})),o.a.createElement("button",{className:"btn",type:"button",id:"button-addon2",onClick:le,disabled:X},"END PROMOTION"),o.a.createElement("button",{className:"btn close-btn",onClick:e.handlePromotionModelClose},"Cancel")))))))))))}))),Ea=a(287),va=a(43),wa=a(89),xa=a(112),ka=a(188);const Na=Object(f.a)(s.b)`
    font-size: medium !important;
    width: fit-content;
    border-radius: 5px !important;
    color: ${e=>e.color} !important;
    background-color: ${e=>e.backgroundcolor};

    :hover {
        color: ${e=>e.color};
    }
`;class Sa extends n.Component{constructor(){super(),this.state={onlineUserCount:0,onlineAllUsersCount:0,helperModelOpen:!1,showPopup:!1,promotionModelOpen:!1,promotionButtonText:"SET PROMOTION",helperModelOpenForPromotion:!1,showInfluencerHelpPopup:!1,popupData:null},this.loadSocketEvent=this.loadSocketEvent.bind(this),this.setHelperModelOpen=this.setHelperModelOpen.bind(this),this.setHelperModelOpenForPromotion=this.setHelperModelOpenForPromotion.bind(this),this.setPromotionModelOpen=this.setPromotionModelOpen.bind(this),this.handleHelperModelClose=this.handleHelperModelClose.bind(this),this.handleHelperModelCloseForPromotion=this.handleHelperModelCloseForPromotion.bind(this),this.handlePromotionModelClose=this.handlePromotionModelClose.bind(this),this.onStartGoLive=this.onStartGoLive.bind(this),this.onClose=this.onClose.bind(this),this.setUrl=this.setUrl.bind(this),this.setPromotionButtonTextAfterSave=this.setPromotionButtonTextAfterSave.bind(this)}componentDidMount(){this.loadSocketEvent(),ma.a.emit("CHECK_ONLINE_USER"),ma.a.emit("CHECK_ONLINE_EVERY_USER"),"undefined"!==typeof this.props.auth.user._id&&!1===this.props.auth.user.isAdmin&&"proxy_user"!==this.props.auth.user.role&&ma.a.emit("USER_ONLINE",this.props.auth.user._id);const{enable_promotion:e}=this.props.auth.appSettings,{role:t}=this.props.auth.user;if(!e||"admin"!==t&&"model"!==t&&"sub_admin"!==t&&"content_manager"!==t||this.props.checkPromotion(e=>{e&&this.setState({promotionButtonText:e.data.promotion_button_text})}),"?offers"===this.props.location.search||"?feed"===this.props.location.search)return this.props.history.push("/")}setHelperModelOpen(){document.querySelector("body").style.overflow="hidden",this.setState({helperModelOpen:!0})}setHelperModelOpenForPromotion(){document.querySelector("body").style.overflow="hidden",this.setState({helperModelOpenForPromotion:!0})}setPromotionModelOpen(){document.querySelector("body").style.overflow="hidden",this.setState({promotionModelOpen:!0})}handlePromotionModelClose(){document.querySelector("body").style.overflow="visible",this.setState({promotionModelOpen:!1})}handleHelperModelClose(){document.querySelector("body").style.overflow="visible",this.setState({helperModelOpen:!1})}handleHelperModelCloseForPromotion(){document.querySelector("body").style.overflow="visible",this.setState({helperModelOpenForPromotion:!1})}loadSocketEvent(){ma.a.on("ONLINE_MODEL",e=>{this.setState({onlineUserCount:e})}),ma.a.on("ALL_USERS_COUNT",e=>{this.setState({onlineAllUsersCount:e})})}UNSAFE_componentWillReceiveProps(e){if(void 0!==e.chat.userProfileInfo[e.auth.appSettings.model_id]){document.getElementById("favicon").href=""===e.chat.userProfileInfo[e.auth.appSettings.model_id].profile?Object(G.a)("faces/avatar.png"):e.chat.userProfileInfo[e.auth.appSettings.model_id].profile}!0===this.props.auth.user.isAdmin&&null!==e.influencerHelp.popup_data&&!0===e.influencerHelp.show_popup&&this.setState({popupData:e.influencerHelp.popup_data,showInfluencerHelpPopup:!0}),!1===this.props.auth.user.isAdmin&&null!==e.userInfluencerHelp.popup_data&&!0===e.userInfluencerHelp.show_popup&&this.setState({popupData:e.userInfluencerHelp.popup_data,showInfluencerHelpPopup:!0})}onStartGoLive(){this.setState({showPopup:!0})}onClose(){if(document.querySelector("body").style.overflow="visible",this.setState({showInfluencerHelpPopup:!1}),!0===this.props.auth.user.isAdmin&&void 0!==this.props.auth.user.isAdmin)this.props.setHelpDataAsRead(this.props.influencerHelp.popup_data._id),this.props.influencerPopupHide();else{if("proxy_user"===this.props.auth.user.role)return void this.props.userInfluencerPopupHide();this.props.setUserHelpDataAsRead(this.props.userInfluencerHelp.popup_data._id),this.props.userInfluencerPopupHide()}}setUrl(){return!0===this.props.auth.user.isAdmin?"/help/home/"+this.props.influencerHelp.popup_data._id:"/user-help/home/"+this.props.userInfluencerHelp.popup_data._id}setPromotionButtonTextAfterSave(){const{enable_promotion:e}=this.props.auth.appSettings,{role:t}=this.props.auth.user;!e||"admin"!==t&&"model"!==t&&"sub_admin"!==t&&"content_manager"!==t||this.props.checkPromotion(e=>{this.setState({promotionButtonText:e.data.promotion_button_text})})}render(){const{is_theme_3_enabled:e,card_background_color:t,content_color:a,content_font_color:o,site_font_color:i,maintenance_mode:r}=this.props.auth.appSettings,l=y.a.get(this.props.auth.user,"shouldPresentEmailOptIn",!1),c=y.a.get(this.props.auth.user,"emailOptInStatus",!1),d=y.a.get(this.props.auth.user,"emailEventType","none"),m=y.a.get(this.props.auth.user,"emailEventStatus",!1),p=y.a.get(this.props.auth.user,"isAdmin",!1),u=y.a.get(this.props.auth.user,"is_allow_web_notification",!1);let g=y.a.get(this.props.auth.user,"subscription_detail.created_at",!1);g=g?new Date(g):new Date,g.setDate(g.getDate()+5);const b=localStorage.getItem("showEmailNotificationPrompt"),{setNotificationPrompt:f}=this.props.pushNotification,{showAlert:_}=this.props.sweetAlert;return!0===r&&!1===p?n.createElement(A.a,null,n.createElement(ka.a,null)):!0===e&&!1===this.props.auth.isAuthenticated?n.createElement(da.a,null):!0===this.props.auth.isSupport?n.createElement(h.a,null):n.createElement("div",null,n.createElement(h.a,null,!1===_&&(g<new Date&&!1===u||"true"===b)&&(!0===l&&["opt_out","pending"].includes(c)||"none"!==d&&"pending"===m)?n.createElement(Ea.a,null):null,!1===f&&null!==this.state.popupData&&!0===this.state.showInfluencerHelpPopup&&n.createElement(Z.a,{classes:"modal-lg",popup_title:this.state.popupData.title,handleClose:()=>{this.onClose()}},n.createElement("div",{className:"row"},n.createElement(xa.a,{dangerouslySetInnerHTML:{__html:this.state.popupData.popup_intro}})),n.createElement("div",{className:"text-center"},n.createElement(Na,{backgroundcolor:a,color:o,className:"btn px-4 py-2 mb-2",to:this.setUrl},"View Detail"))),n.createElement(ca,{onlineUserCount:this.state.onlineUserCount,onlineAllUsersCount:this.state.onlineAllUsersCount,setHelperModelOpenForPromotion:this.setHelperModelOpenForPromotion,setHelperModelOpen:this.setHelperModelOpen,setPromotionModelOpen:this.setPromotionModelOpen,onStartGoLive:this.onStartGoLive,promotionButtonText:this.state.promotionButtonText}),this.state.showPopup&&n.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#00000080"}},n.createElement("div",{className:"modal-dialog modal-dialog-centered",role:"document",style:{justifyContent:"center"}},n.createElement("div",{className:"modal-content",style:{backgroundColor:"white",color:"black",width:"275px"}},n.createElement("div",{className:"modal-body"},n.createElement("div",{className:"container"},n.createElement("div",{className:"row text-center mb-2"},n.createElement("div",{className:"col"},"You are about to start a Go Live Session with all online subscribers")),n.createElement("div",{className:"row p-2 text-center"},n.createElement("div",{className:"col-md-6 col-12"},n.createElement(s.b,{to:"/group-live-stream",style:{textDecoration:"none"}},n.createElement("button",{className:"btn btn-block pay-btn px-1",style:{backgroundColor:a,color:o,borderRadius:"3px"}},"Continue"))),n.createElement("div",{className:"col-md-6 col-12 mt-2 mt-md-0",style:{display:"flex",alignItems:"center",justifyContent:"center"}},n.createElement("button",{className:"btn btn-block pay-btn",style:{backgroundColor:a,color:o,borderRadius:"3px"},onClick:()=>this.setState({showPopup:!1})},"Cancel"))))))))),this.state.helperModelOpen&&n.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#00000080"}},n.createElement("div",{className:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},n.createElement("div",{className:"modal-content",style:{color:i}},n.createElement("div",{className:"modal-header",style:{backgroundColor:t}},n.createElement("h5",{className:"modal-title"},"Go Live Stream"),n.createElement("button",{className:"close",onClick:this.handleHelperModelClose,style:{color:i,opacity:1}})),n.createElement("div",{className:"modal-body",style:{backgroundColor:t}},n.createElement("b",null,"GO LIVE NOW"),n.createElement("p",null,"Go Live will start an online video session with all subscribers who are currently online.  The bubble on the top-right of the GO LIVE NOW button indicates how many users are currently on the website."),n.createElement("p",null,"Once you are live, all online subscribers will be automatically added to the session and you will see an indication of how many subscribers are currently watching you. They can see and hear you and can type messages and you will be able to see both the messages and who sent them. Subscribers can only see their own messages."),n.createElement("p",null,"Subscribers can tip you and all subscribers will see all tips. They will have the option of sending the tips anonymously, so other subscribers will not see their names, although you will see their names. You should have fun and encourage subscribers to send you tips. For example, you might offer to answer questions or take requests from anyone who sends a tip of a certain amount. Perhaps you can offer to have a private chat with the subscribers who sends the largest tip or send special private content. It's up to you, so have fun with it."),n.createElement("p",null,"You can end the session at any time by clicking the X at the top right of the Go Live session screen. Subscribers can leave the session and re-join. When they leave, they will see a ribbon at the top of every screen with a button to make it easy to re-join."),n.createElement("b",null,"MARKETING THE SESSION AND RUNNING PROMOTIONS"),n.createElement("p",null,"Many of our influencers market the session in advance by sending a Mass Message announcing the session along with the day and time. Be sure to mention the time zone. You should also promote the session on your social media accounts a day or two before the session and just before you start the session."),n.createElement("p",null,"You can consider running a new subscriber promotion during the session where you either discount the first month to a lower price, say $1.99, or make the subscription free for the first month. We're happy to help you with this."))))),this.state.helperModelOpenForPromotion&&n.createElement("div",{className:"modal fade show",role:"dialog",style:{display:"block",backgroundColor:"#00000080"}},n.createElement("div",{className:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},n.createElement("div",{className:"modal-content",style:{color:i}},n.createElement("div",{className:"modal-header",style:{backgroundColor:t}},n.createElement("h5",{className:"modal-title"},this.state.promotionButtonText),n.createElement("button",{className:"close",onClick:this.handleHelperModelCloseForPromotion,style:{color:i,opacity:1}})),n.createElement("div",{className:"modal-body",style:{backgroundColor:t}},n.createElement("p",null,"The promotion engine allows you to run promotions for both the first month of the subscription price and for the price of locked content. You\u2019ll see a new \u201cSET PROMOTION\u201d button under the content posting form on the main page. There are two tabs: New Subscriber Promotion and Locked Content Promotion."),n.createElement("b",null,"NEW SUBSCRIBER PROMOTIONS"),n.createElement("p",null,"This option allows you to discount the first month for new subscribers. You can set the first month at a price that is less than what it\u2019s currently set at. For example, if your current first month is $9.99, you\u2019ll be able to discount the first month from $8.99 all the way down to free. If on the other hand your first month is set to $4.99, your promotion price will start at $3.99."),n.createElement("p",null,"You can set a time-frame for the promotion starting at 1 hour all the way up to many days. Users who visit your site will see a banner across the top of the screen announcing the promotion along with a ticking clock to make it clear that time is running out and giving them a sense of urgency."),n.createElement("b",null,"LOCKED CONTENT PROMOTIONS"),n.createElement("p",null,"Here you can discount the price of your locked content. You can choose to reduce the price on all locked content, only exclusive/feed content or only mass messages. You can choose any discount % along with the time-frame that you want to run the promotion."),n.createElement("b",null,"PROMOTION RIBBON AND MESSAGING"),n.createElement("p",null,"For both options we display a ribbon across the top of the screen that shows the sale info and displays a ticking clock to build a sense of urgency. There will be a default message based on the options you selected, but you can also personalize the message."),n.createElement("img",{src:Object(G.a)("images/promotion_image.png"),alt:"Promotion",className:"my-2 mx-auto"}),n.createElement("p",null,"We offer many different options for the ribbon look such as background colors, font colors and size, padding and even the initial animation of the banner to help grab the attention of your users. These options are in the Settings area under \u201cPromotions Settings.\u201d Play around with different options or feel free to contact us and we\u2019ll adjust it for you. The default settings should work well for most sites."),n.createElement("b",null,"ENDING A PROMOTION EARLY"),n.createElement("p",null,"The promotion will end by itself after the selected time-frame is over, but if you wish to stop a promotion before the designated time, simply go into the \u201cSET PROMOTION\u201d area again and while a promotion is running you\u2019ll see an option to end it early."))))),this.state.promotionModelOpen&&n.createElement(ya,{handlePromotionModelClose:this.handlePromotionModelClose,setPromotionButtonTextAfterSave:this.setPromotionButtonTextAfterSave}))}}var Ca=Object(c.b)(e=>({auth:e.auth,errors:e.errors,chat:e.chat,promotion:e.promotion,influencerHelp:e.influencerHelp,userInfluencerHelp:e.userInfluencerHelp,pushNotification:e.pushNotification,sweetAlert:e.sweetAlert}),{checkPromotion:ga.a,setHelpDataAsRead:va.Gb,influencerPopupHide:va.V,getAllPromotionOffers:ga.c,setUserHelpDataAsRead:wa.f,userInfluencerPopupHide:wa.j})(Sa),Ta=a(288);var Oa=Object(c.b)(e=>({auth:e.auth}))(e=>{let{component:t,auth:a,...n}=e;return o.a.createElement(l.b,Object.assign({},n,{render:e=>!0===a.isAuthenticated?o.a.createElement(o.a.Fragment,null,!0===((e,t,a,n,o,i,r)=>{let s="user";return t&&a?s="content_manager":t&&n?s="model":t&&o?s="admin":t&&i?s="support":t&&r&&(s="sub_admin"),e.includes(s)})(n.allow,a.isAdmin,a.isContentManager,a.isModel,a.isSuperAdmin,a.isSupport,a.isSubAdmin)?o.a.createElement(t,e):o.a.createElement(Ta.default,null)):(()=>{const e=window.location.href.split("/"),t=e[e.length-2];return["opt-in-email-verification","change-email-verification"].includes(t)&&localStorage.setItem("routeBeforeLogin",window.location.href),o.a.createElement(l.a,{to:"/login"})})()}))});const Pa=f.a.div`
    font-family: ${e=>e.fontFamily};
`;class Ia extends n.Component{constructor(){super(),this.state={isBackgroundSet:!1}}componentDidMount(){this.props.getUserDetails(()=>{this.props.getAppSettings(()=>{!0===this.props.auth.appSettings.influencer_help_enabled&&!0===this.props.auth.isAdmin&&!1===this.props.auth.isSupport&&this.props.getInfluencerHelpPopupData(()=>{}),!0===this.props.auth.appSettings.user_influencer_help_enabled&&!1===this.props.auth.user.isAdmin&&this.props.getUserInfluencerHelpPopupData(()=>{})})}),this.props.getModelDetails(),this.props.getAllCustomMenuLinks(()=>{}),this.props.getLinkPageData()}componentDidUpdate(){!0===this.props.auth.isReady&&!1===this.state.isBackgroundSet&&(this.setFavicon(),this.setBackground(),this.setState({isBackgroundSet:!0}))}setFavicon(){const{model_id:e}=this.props.auth.appSettings;if(void 0!==this.props.chat.userProfileInfo[e]){document.getElementById("favicon").href=this.props.chat.userProfileInfo[e].profile}}setBackground(){const{use_background_image:e,theme_background_image:t,site_background_color:a}=this.props.auth.appSettings;document.body.style=e&&""!==t?`background: url(${t}); background-size: 'contain';`:`background: ${a};`}render(){const{font_family:e}=this.props.auth.appSettings;return this.props.auth.isBlocked?o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col"},o.a.createElement("h3",null,o.a.createElement("center",null,"This website is blocked in your area."))))):this.props.auth.isReady&&this.props.auth.isProfileReady&&!0===this.props.socket.isSocketInitialyConnected?o.a.createElement(Pa,{fontFamily:e},this.props.children):o.a.createElement(o.a.Fragment,null)}}var Aa=Object(c.b)(e=>({auth:e.auth,errors:e.errors,chat:e.chat,socket:e.socket}),{getAppSettings:va.g,getModelDetails:g.j,getUserDetails:g.k,getAllCustomMenuLinks:va.e,getInfluencerHelpPopupData:va.u,getLinkPageData:va.v,getUserInfluencerHelpPopupData:wa.d})(Ia),Ma=a(200),ja=a.n(Ma),Fa=a(110),La=a(65);window.isGALoaded=!1;class Da extends n.Component{componentDidMount(){Object(La.f)()}render(){const{google_analytics_4_measurement_id:e}=this.props.auth.appSettings;if(this.props.auth.isReady&&!y.a.isEmpty(e)&&!1===window.isGALoaded){ja.a.initialize(e),Object(Fa.install)(e);let t=this.props.history.location.pathname;(t.includes("private-chat")||t.includes("purchased-contents"))&&(t=t.substring(0,t.lastIndexOf("/")+1),t+="user_id"),t.includes("purchased-by/locked-exclusive-content/")&&(t=t.substring(0,t.lastIndexOf("/")+1),t+="blog_id"),t.includes("mass-message")&&(t=t.substring(0,t.lastIndexOf("/")+1),t+="udid"),ja.a.send({hitType:"pageview",page:t}),this.props.history.listen(e=>{t=e.pathname,(t.includes("private-chat")||t.includes("purchased-contents"))&&(t=t.substring(0,t.lastIndexOf("/")+1),t+="user_id"),t.includes("purchased-by/locked-exclusive-content/")&&(t=t.substring(0,t.lastIndexOf("/")+1),t+="blog_id"),t.includes("mass-message")&&(t=t.substring(0,t.lastIndexOf("/")+1),t+="udid"),ja.a.send({hitType:"pageview",page:t})}),window.isGALoaded=!0}return this.props.history.listen(()=>{this.props.hideNotificationPopup()}),o.a.createElement(o.a.Fragment,null,this.props.children)}}var $a=Object(c.b)(e=>({auth:e.auth,chat:e.chat}),{hideNotificationPopup:Oe.e})(Object(l.g)(Da)),Ra=a(9),Ba=a.n(Ra),Ua=a(93),Ga=a(55);function za(e){const{appSettings:t,user:a,isAdmin:i,isSupport:r}=e.auth,s=Object(c.c)(),{one_signal:l,web_push_notification_enabled:d}=t,{app_id:m,safari_web_id:p}=l,u=y.a.get(a,"_id",!1);return Object(n.useEffect)(()=>{y.a.isEmpty(m)||y.a.isEmpty(p)||!d||r||s(Object(Ga.c)())},[]),Ua.a.on("subscriptionChange",(async function(e){e&&u?(setTimeout(()=>{Object(Ga.e)(u),i||Object(Ga.a)(a)},[3e3]),Object(Ga.e)(u),i||Object(Ga.a)(a)):Object(Ga.d)()})),o.a.createElement(o.a.Fragment,null)}za.propTypes={children:Ba.a.any,auth:Ba.a.object.isRequired,pushNotification:Ba.a.object.isRequired};var Wa=Object(c.b)(e=>({auth:e.auth,pushNotification:e.pushNotification}),{})(Object(l.g)(za));a(504);const Ha=n.lazy(()=>Promise.all([a.e(107),a.e(142)]).then(a.bind(null,1131))),qa=n.lazy(()=>Promise.all([a.e(4),a.e(143)]).then(a.bind(null,1266))),Va=n.lazy(()=>Promise.all([a.e(1),a.e(2),a.e(3),a.e(15),a.e(14)]).then(a.bind(null,1263))),Ya=n.lazy(()=>a.e(106).then(a.bind(null,1268))),Ka=n.lazy(()=>a.e(173).then(a.bind(null,1137))),Ja=n.lazy(()=>a.e(174).then(a.bind(null,1276))),Xa=n.lazy(()=>a.e(172).then(a.bind(null,1138))),Qa=n.lazy(()=>Promise.all([a.e(5),a.e(86)]).then(a.bind(null,1269))),Za=n.lazy(()=>a.e(42).then(a.bind(null,1267))),en=n.lazy(()=>Promise.all([a.e(168),a.e(103)]).then(a.bind(null,1139))),tn=n.lazy(()=>a.e(92).then(a.bind(null,1140))),an=n.lazy(()=>a.e(95).then(a.bind(null,1141))),nn=n.lazy(()=>a.e(53).then(a.bind(null,1142))),on=n.lazy(()=>Promise.all([a.e(4),a.e(101)]).then(a.bind(null,1270))),rn=n.lazy(()=>a.e(81).then(a.bind(null,1143))),sn=n.lazy(()=>a.e(37).then(a.bind(null,1271))),ln=n.lazy(()=>Promise.all([a.e(0),a.e(152)]).then(a.bind(null,1144))),cn=n.lazy(()=>Promise.all([a.e(0),a.e(151)]).then(a.bind(null,1145))),dn=n.lazy(()=>Promise.all([a.e(0),a.e(148)]).then(a.bind(null,1146))),mn=n.lazy(()=>Promise.all([a.e(0),a.e(146)]).then(a.bind(null,1147))),pn=n.lazy(()=>Promise.all([a.e(0),a.e(149)]).then(a.bind(null,1148))),un=n.lazy(()=>Promise.all([a.e(0),a.e(150)]).then(a.bind(null,1149))),gn=n.lazy(()=>a.e(183).then(a.bind(null,1150))),hn=n.lazy(()=>a.e(179).then(a.bind(null,1151))),bn=n.lazy(()=>a.e(176).then(a.bind(null,1152))),fn=n.lazy(()=>Promise.all([a.e(5),a.e(11),a.e(177)]).then(a.bind(null,1277))),_n=n.lazy(()=>a.e(165).then(a.bind(null,1153))),yn=n.lazy(()=>a.e(164).then(a.bind(null,1154))),En=n.lazy(()=>a.e(162).then(a.bind(null,1155))),vn=n.lazy(()=>a.e(157).then(a.bind(null,1156))),wn=n.lazy(()=>a.e(163).then(a.bind(null,1157))),xn=n.lazy(()=>a.e(161).then(a.bind(null,1158))),kn=n.lazy(()=>Promise.resolve().then(a.bind(null,288))),Nn=n.lazy(()=>a.e(180).then(a.bind(null,1159))),Sn=n.lazy(()=>a.e(144).then(a.bind(null,1160))),Cn=n.lazy(()=>a.e(100).then(a.bind(null,1161))),Tn=n.lazy(()=>a.e(77).then(a.bind(null,1162))),On=n.lazy(()=>a.e(78).then(a.bind(null,1163))),Pn=n.lazy(()=>a.e(116).then(a.bind(null,1278))),In=n.lazy(()=>a.e(137).then(a.bind(null,1279))),An=n.lazy(()=>a.e(139).then(a.bind(null,1164))),Mn=n.lazy(()=>a.e(138).then(a.bind(null,1165))),jn=n.lazy(()=>a.e(110).then(a.bind(null,1166))),Fn=n.lazy(()=>a.e(128).then(a.bind(null,1167))),Ln=n.lazy(()=>a.e(156).then(a.bind(null,1168))),Dn=n.lazy(()=>a.e(154).then(a.bind(null,1169))),$n=n.lazy(()=>a.e(155).then(a.bind(null,1170))),Rn=n.lazy(()=>a.e(141).then(a.bind(null,1171))),Bn=n.lazy(()=>a.e(140).then(a.bind(null,1172))),Un=n.lazy(()=>a.e(89).then(a.bind(null,1173))),Gn=n.lazy(()=>a.e(88).then(a.bind(null,1174))),zn=n.lazy(()=>a.e(52).then(a.bind(null,1175))),Wn=n.lazy(()=>Promise.all([a.e(135),a.e(51)]).then(a.bind(null,1176))),Hn=n.lazy(()=>a.e(125).then(a.bind(null,1177))),qn=n.lazy(()=>a.e(93).then(a.bind(null,1178))),Vn=n.lazy(()=>a.e(76).then(a.bind(null,1179))),Yn=n.lazy(()=>Promise.all([a.e(1),a.e(35)]).then(a.bind(null,1280))),Kn=n.lazy(()=>Promise.all([a.e(1),a.e(36)]).then(a.bind(null,1272))),Jn=n.lazy(()=>a.e(68).then(a.bind(null,1180))),Xn=n.lazy(()=>Promise.all([a.e(7),a.e(175)]).then(a.bind(null,1181))),Qn=n.lazy(()=>a.e(55).then(a.bind(null,1182))),Zn=n.lazy(()=>Promise.all([a.e(3),a.e(6),a.e(181)]).then(a.bind(null,1183))),eo=n.lazy(()=>a.e(79).then(a.bind(null,1184))),to=n.lazy(()=>a.e(34).then(a.bind(null,1185))),ao=n.lazy(()=>a.e(91).then(a.bind(null,1281))),no=n.lazy(()=>a.e(96).then(a.bind(null,1186))),oo=n.lazy(()=>Promise.all([a.e(4),a.e(102)]).then(a.bind(null,1187))),io=n.lazy(()=>Promise.all([a.e(1),a.e(166)]).then(a.bind(null,1282))),ro=n.lazy(()=>a.e(99).then(a.bind(null,1188))),so=n.lazy(()=>a.e(113).then(a.bind(null,1189))),lo=n.lazy(()=>a.e(178).then(a.bind(null,1190))),co=n.lazy(()=>a.e(56).then(a.bind(null,1191))),mo=n.lazy(()=>a.e(43).then(a.bind(null,1192))),po=n.lazy(()=>Promise.all([a.e(2),a.e(3),a.e(6),a.e(75)]).then(a.bind(null,1193))),uo=n.lazy(()=>Promise.all([a.e(2),a.e(49)]).then(a.bind(null,1194))),go=n.lazy(()=>a.e(67).then(a.bind(null,1283))),ho=n.lazy(()=>a.e(40).then(a.bind(null,1195))),bo=n.lazy(()=>a.e(84).then(a.bind(null,1196))),fo=n.lazy(()=>a.e(28).then(a.bind(null,1284))),_o=n.lazy(()=>a.e(182).then(a.bind(null,1197))),yo=n.lazy(()=>a.e(133).then(a.bind(null,1198))),Eo=n.lazy(()=>a.e(131).then(a.bind(null,1199))),vo=n.lazy(()=>a.e(130).then(a.bind(null,1200))),wo=n.lazy(()=>a.e(121).then(a.bind(null,1201))),xo=n.lazy(()=>a.e(126).then(a.bind(null,1285))),ko=n.lazy(()=>a.e(132).then(a.bind(null,1202))),No=n.lazy(()=>a.e(167).then(a.bind(null,1203))),So=n.lazy(()=>a.e(17).then(a.bind(null,1204))),Co=n.lazy(()=>Promise.all([a.e(7),a.e(129)]).then(a.bind(null,1205))),To=n.lazy(()=>a.e(25).then(a.bind(null,1206))),Oo=n.lazy(()=>a.e(30).then(a.bind(null,1286))),Po=n.lazy(()=>a.e(31).then(a.bind(null,1207))),Io=n.lazy(()=>a.e(115).then(a.bind(null,1208))),Ao=n.lazy(()=>a.e(26).then(a.bind(null,1209))),Mo=n.lazy(()=>a.e(20).then(a.bind(null,1210))),jo=n.lazy(()=>a.e(24).then(a.bind(null,1211))),Fo=n.lazy(()=>a.e(124).then(a.bind(null,1212))),Lo=n.lazy(()=>a.e(118).then(a.bind(null,1287))),Do=n.lazy(()=>a.e(29).then(a.bind(null,1288))),$o=n.lazy(()=>a.e(33).then(a.bind(null,1213))),Ro=n.lazy(()=>a.e(170).then(a.bind(null,1214))),Bo=n.lazy(()=>a.e(41).then(a.bind(null,1215))),Uo=n.lazy(()=>a.e(13).then(a.bind(null,1216))),Go=n.lazy(()=>a.e(122).then(a.bind(null,1217))),zo=n.lazy(()=>a.e(80).then(a.bind(null,1218))),Wo=n.lazy(()=>a.e(117).then(a.bind(null,1219))),Ho=n.lazy(()=>a.e(22).then(a.bind(null,1289))),qo=n.lazy(()=>a.e(32).then(a.bind(null,1220))),Vo=n.lazy(()=>Promise.all([a.e(1),a.e(145)]).then(a.bind(null,1265))),Yo=n.lazy(()=>a.e(74).then(a.bind(null,1221))),Ko=n.lazy(()=>a.e(48).then(a.bind(null,1222))),Jo=n.lazy(()=>a.e(169).then(a.bind(null,1223))),Xo=n.lazy(()=>a.e(44).then(a.bind(null,1224))),Qo=n.lazy(()=>Promise.all([a.e(0),a.e(19)]).then(a.bind(null,1225))),Zo=n.lazy(()=>a.e(64).then(a.bind(null,1226))),ei=n.lazy(()=>a.e(54).then(a.bind(null,1227))),ti=n.lazy(()=>a.e(59).then(a.bind(null,1228))),ai=n.lazy(()=>a.e(63).then(a.bind(null,1229))),ni=n.lazy(()=>a.e(65).then(a.bind(null,1230))),oi=n.lazy(()=>a.e(69).then(a.bind(null,1231))),ii=n.lazy(()=>a.e(18).then(a.bind(null,1290))),ri=n.lazy(()=>a.e(39).then(a.bind(null,1232))),si=n.lazy(()=>a.e(160).then(a.bind(null,1233))),li=n.lazy(()=>a.e(159).then(a.bind(null,1234))),ci=n.lazy(()=>a.e(66).then(a.bind(null,1235))),di=n.lazy(()=>a.e(57).then(a.bind(null,1236))),mi=n.lazy(()=>a.e(27).then(a.bind(null,1291))),pi=n.lazy(()=>a.e(104).then(a.bind(null,1237))),ui=n.lazy(()=>a.e(98).then(a.bind(null,1292))),gi=n.lazy(()=>a.e(97).then(a.bind(null,1293))),hi=n.lazy(()=>a.e(50).then(a.bind(null,1238))),bi=n.lazy(()=>a.e(87).then(a.bind(null,1239))),fi=n.lazy(()=>a.e(82).then(a.bind(null,1240))),_i=n.lazy(()=>a.e(83).then(a.bind(null,1241))),yi=n.lazy(()=>a.e(105).then(a.bind(null,1294))),Ei=n.lazy(()=>a.e(111).then(a.bind(null,1295))),vi=n.lazy(()=>a.e(46).then(a.bind(null,1296))),wi=n.lazy(()=>a.e(21).then(a.bind(null,1297))),xi=n.lazy(()=>a.e(90).then(a.bind(null,1242))),ki=n.lazy(()=>a.e(153).then(a.bind(null,1243))),Ni=n.lazy(()=>a.e(23).then(a.bind(null,1298))),Si=n.lazy(()=>a.e(45).then(a.bind(null,1244))),Ci=n.lazy(()=>a.e(158).then(a.bind(null,1299))),Ti=n.lazy(()=>a.e(62).then(a.bind(null,1245))),Oi=n.lazy(()=>a.e(38).then(a.bind(null,1246))),Pi=n.lazy(()=>a.e(71).then(a.bind(null,1247))),Ii=n.lazy(()=>a.e(127).then(a.bind(null,1248))),Ai=n.lazy(()=>a.e(16).then(a.bind(null,1249))),Mi=n.lazy(()=>Promise.all([a.e(12),a.e(120)]).then(a.bind(null,1273))),ji=n.lazy(()=>a.e(58).then(a.bind(null,1300))),Fi=n.lazy(()=>a.e(119).then(a.bind(null,1274))),Li=n.lazy(()=>a.e(70).then(a.bind(null,1301))),Di=n.lazy(()=>a.e(114).then(a.bind(null,1302))),$i=n.lazy(()=>a.e(108).then(a.bind(null,1303))),Ri=n.lazy(()=>a.e(47).then(a.bind(null,1304))),Bi=n.lazy(()=>a.e(134).then(a.bind(null,1250))),Ui=n.lazy(()=>a.e(109).then(a.bind(null,1251))),Gi=n.lazy(()=>a.e(73).then(a.bind(null,1252))),zi=n.lazy(()=>a.e(171).then(a.bind(null,1253))),Wi=n.lazy(()=>a.e(85).then(a.bind(null,1254))),Hi=n.lazy(()=>a.e(72).then(a.bind(null,1255))),qi=n.lazy(()=>a.e(61).then(a.bind(null,1256))),Vi=n.lazy(()=>a.e(60).then(a.bind(null,1257))),Yi=n.lazy(()=>a.e(123).then(a.bind(null,1258))),Ki=n.lazy(()=>a.e(112).then(a.bind(null,1259))),Ji=n.lazy(()=>a.e(136).then(a.bind(null,1260))),Xi=n.lazy(()=>Promise.all([a.e(0),a.e(147)]).then(a.bind(null,1261))),Qi=n.lazy(()=>Promise.resolve().then(a.bind(null,306))),Zi=n.lazy(()=>a.e(94).then(a.bind(null,1262)));if(localStorage.AuthToken){const e=p()(localStorage.AuthToken),t=Date.now()/1e3;e.exp<t?d.a.dispatch(Object(g.p)()):(Object(u.a)(localStorage.AuthToken),Object(g.k)())}else d.a.dispatch(Object(g.y)());const er=["user","content_manager","model","admin","support","sub_admin"],tr=["model","admin","sub_admin"],ar=["admin","sub_admin"],nr=["admin","model","content_manager","sub_admin"],or=["support","admin","sub_admin"],ir=["content_manager","admin","sub_admin"],rr=["admin"],sr=["admin","content_manager","model","sub_admin","support"],lr=["model","admin","sub_admin","content_manager"],cr=["user"],dr=["admin","model"],mr=["user","content_manager","model","admin","support","sub_admin","live_stream_manager"];class pr extends n.Component{render(){return n.createElement(c.a,{store:d.a},n.createElement(Aa,null,n.createElement(s.a,null,n.createElement($a,null,n.createElement(Wa,null),n.createElement(n.Suspense,{fallback:n.createElement("div",{className:"d-flex flex-column min-vh-100 justify-content-center align-items-center"},n.createElement(Ze.a,{loading:!0,size:10}))},n.createElement(uo,null,n.createElement(l.d,null,n.createElement(l.b,{exact:!0,path:"/",component:Ca}),n.createElement(l.b,{exact:!0,path:"/home",component:Ca}),n.createElement(l.b,{exact:!0,path:"/forgot-password",component:Ka}),n.createElement(l.b,{exact:!0,path:"/change-password/:token",component:Xa}),n.createElement(l.b,{exact:!0,path:"/login",component:Ya}),n.createElement(l.b,{exact:!0,path:"/register",component:Qa}),n.createElement(l.b,{exact:!0,path:"/tips",component:Ha}),n.createElement(l.b,{exact:!0,path:"/subscription-video",component:zi}),n.createElement(l.b,{exact:!0,path:"/chat",component:qa}),n.createElement(Oa,{exact:!0,path:"/private-chat/:id?",component:Va,allow:er}),n.createElement(Oa,{exact:!0,path:"/membership",component:Ja,allow:er}),n.createElement(l.b,{exact:!0,path:"/404",component:kn}),n.createElement(l.b,{exact:!0,path:"/gallery",component:bn}),n.createElement(l.b,{exact:!0,path:"/single-gallery/:id",component:fn}),n.createElement(l.b,{exact:!0,path:"/like-the-website",component:hn}),n.createElement(l.b,{exact:!0,path:"/shop",component:In}),n.createElement(Oa,{exact:!0,path:"/shop/view-cart",component:Mn,allow:er}),n.createElement(Oa,{exact:!0,path:"/shop/checkout/:id?",component:Fn,allow:er}),n.createElement(Oa,{exact:!0,path:"/shop/shipping-details",component:Ln,allow:er}),n.createElement(Oa,{exact:!0,path:"/shop/shipping-details/add",component:Dn,allow:er}),n.createElement(Oa,{exact:!0,path:"/shop/shipping-details/edit/:id",component:$n,allow:er}),n.createElement(Oa,{exact:!0,path:"/shop/order-history",component:Rn,allow:er}),n.createElement(Oa,{exact:!0,path:"/shop/order-history/:id",component:Bn,allow:er}),n.createElement(l.b,{exact:!0,path:"/shop/:id",component:An}),n.createElement(l.b,{exact:!0,path:"/terms-of-service",component:_n}),n.createElement(l.b,{exact:!0,path:"/privacy-policy",component:yn}),n.createElement(l.b,{exact:!0,path:"/dmca",component:En}),n.createElement(l.b,{exact:!0,path:"/2257",component:vn}),n.createElement(l.b,{exact:!0,path:"/faq",component:wn}),n.createElement(l.b,{exact:!0,path:"/contact-us",component:xn}),n.createElement(l.b,{exact:!0,path:"/links",component:Nn}),n.createElement(Oa,{exact:!0,path:"/upload-photo-id",component:gn,allow:er}),n.createElement(Oa,{exact:!0,path:"/admin/subscribers",component:en,allow:lr}),n.createElement(Oa,{exact:!0,path:"/admin/settings",component:tn,allow:nr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/links-page-settings",component:nn,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/landing-page-settings",component:zn,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/edit-terms-of-service",component:ln,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/edit-privacy-policy",component:cn,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/edit-dmca",component:dn,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/edit-2257",component:mn,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/edit-faq",component:pn,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/edit-maintenance-mode",component:un,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/mass-messages",component:on,allow:lr}),n.createElement(Oa,{exact:!0,path:"/admin/locked-exclusive-content",component:Cn,allow:lr}),n.createElement(Oa,{exact:!0,path:"/admin/transactions",component:Za,allow:or}),n.createElement(Oa,{exact:!0,path:"/admin/super-admin-tools",component:rn,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/super-admin-tools/lookup",component:sn,allow:or}),n.createElement(Oa,{exact:!0,path:"/admin/chat/tips-list",component:Sn,allow:nr}),n.createElement(Oa,{exact:!0,path:"/admin/shop/add-product",component:Tn,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/shop/edit-product/:id",component:On,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/shop/product-list",component:Pn,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/shop/order-list",component:Un,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/shop/order/edit/:id",component:Gn,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/logs",component:jn,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/upload-theme-image",component:Wn,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/upload-theme2-banner-image",component:Wn,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/upload-theme-image/model-profile",component:Wn,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/purchased-by/mass-message/:_id/:promotion_id?",component:Hn,allow:lr}),n.createElement(Oa,{exact:!0,path:"/admin/promotion-subscribe-users/:promotion_id",component:Hn,allow:lr}),n.createElement(Oa,{exact:!0,path:"/admin/purchased-by/locked-exclusive-content/:blogId/:promotion_id?",component:Hn,allow:lr}),n.createElement(Oa,{exact:!0,path:"/admin/generate-subscription-url",component:an,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/background-settings",component:qn,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/chat-booking-settings",component:Vn,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/set-chat-availability/:page",component:Yn,allow:tr}),n.createElement(Oa,{exact:!0,path:"/book-slot/:page",component:Kn,allow:er}),n.createElement(Oa,{exact:!0,path:"/admin/settings/reporting-page",component:Jn,allow:rr}),n.createElement(Oa,{exact:!0,path:"/live-stream",component:Zn,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/live-streaming-settings",component:eo,allow:ir}),n.createElement(Oa,{exact:!0,path:"/admin/settings/email-configuration",component:to,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/live-stream-sessions/:id?",component:ao,allow:nr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/stagger-message-settings",component:no,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/email-configuration",component:to,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/welcome-messages",component:oo,allow:nr}),n.createElement(Oa,{exact:!0,path:"/purchased-contents/:id?",component:io,allow:er}),n.createElement(Oa,{exact:!0,path:"/admin/settings/purchased-content-settings",component:ro,allow:["model","admin"]}),n.createElement(Oa,{exact:!0,path:"/admin/settings/export-users",component:so,allow:nr}),n.createElement(Oa,{exact:!0,path:"/admin/purchased-by/welcome-message/:_id",component:Hn,allow:tr}),n.createElement(Oa,{exact:!0,path:"/landing-page-preview",component:lo,allow:sr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/ccbill-settings",component:co,allow:rr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/aws-settings",component:mo,allow:rr}),n.createElement(Oa,{exact:!0,path:"/group-live-stream",component:po,allow:mr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/platform-settings",component:ho,allow:rr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/purchase-notification-settings",component:bo,allow:rr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/pay-per-message",component:go,allow:ar}),n.createElement(l.b,{exact:!0,path:"/opt-in-email-verification/:token",component:_o}),n.createElement(Oa,{exact:!0,path:"/change-email-verification/:token",component:_o,allow:cr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/seo-setting",component:fo,allow:["admin"]}),n.createElement(Oa,{exact:!0,path:"/subscribe",component:Xn,allow:er}),n.createElement(Oa,{exact:!0,path:"/admin/settings/ccbill-rest-api-settings",component:Qn,allow:rr}),n.createElement(Oa,{exact:!0,path:"/profile",component:No,allow:er}),n.createElement(Oa,{exact:!0,path:"/profile/update",component:yo,allow:er}),n.createElement(Oa,{exact:!0,path:"/profile/change-password",component:Eo,allow:er}),n.createElement(Oa,{exact:!0,path:"/profile/cancel-subscription",component:vo,allow:cr}),n.createElement(Oa,{exact:!0,path:"/profile/notification-preference",component:wo,allow:er}),n.createElement(Oa,{exact:!0,path:"/profile/payment-method",component:xo,allow:cr}),n.createElement(Oa,{exact:!0,path:"/profile/order-list",component:ko,allow:er}),n.createElement(Oa,{exact:!0,path:"/admin/settings/promotion-settings",component:So,allow:nr}),n.createElement(Oa,{exact:!0,path:"/profile/add-new-payment-method",component:Co,allow:cr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/menu-settings",component:To,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/subscription-page-settings",component:Oo,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/tip-page-settings",component:Po,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/promotion-reports",component:Io,allow:nr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/signup-design",component:Ao,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/theme-2-settings",component:Mo,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/membership-price-settings",component:jo,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/opt-in-report",component:Fo,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/user-card-list",component:Lo,allow:["support","admin"]}),n.createElement(Oa,{exact:!0,path:"/admin/settings/sticky-io-setting",component:Do,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/website-settings",component:$o,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/sticky-io-transactions",component:Bo,allow:["admin","support"]}),n.createElement(Oa,{exact:!0,path:"/admin/ccbill-test-flex-form",component:Go,allow:ir}),n.createElement(l.b,{exact:!0,path:"/service-stopped",component:Ro}),n.createElement(Oa,{exact:!0,path:"/admin/settings/resubscribe-offer-settings",component:Uo,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/user-report",component:zo,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/watermark",component:qo,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/sticky-io-subscription-products",component:Wo,allow:["admin"]}),n.createElement(Oa,{exact:!0,path:"/admin/super-admin-tools/sticky-io-lookup",component:Ho,allow:or}),n.createElement(Oa,{exact:!0,path:"/notification/:page/:promotionId?",component:Vo,allow:lr}),n.createElement(Oa,{exact:!0,path:"/user-notification/:page",component:Vo,allow:["user","proxy_user"]}),n.createElement(Oa,{exact:!0,path:"/purchase-notification",component:Jo,allow:lr}),n.createElement(Oa,{exact:!0,path:"/admin/banner-image-text",component:Xo,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/website",component:Yo,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/theme",component:Ko,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/migrate-subscription",component:Qo,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/minimum-and-maximum-amounts",component:Zo,allow:"admin"}),n.createElement(Oa,{exact:!0,path:"/admin/settings/age-modal",component:ei,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/contact-us-settings",component:ti,allow:"admin"}),n.createElement(Oa,{exact:!0,path:"/admin/settings/login-and-signup-title",component:ai,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/miscellaneous-pop-up",component:ni,allow:"admin"}),n.createElement(Oa,{exact:!0,path:"/admin/settings/shop",component:oi,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/payment-setting",component:ii,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/custom-menu-links",component:ri,allow:tr}),n.createElement(Oa,{exact:!0,path:"/help",component:li,allow:lr}),n.createElement(Oa,{exact:!0,path:"/help/:page/:id?",component:si,allow:lr}),n.createElement(Oa,{exact:!0,path:"/user-help",component:li,allow:["user","proxy_user"]}),n.createElement(Oa,{exact:!0,path:"/user-help/:page/:id?",component:si,allow:["user","proxy_user"]}),n.createElement(Oa,{exact:!0,path:"/admin/settings/miscellaneous-settings",component:ci,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/csv-download",component:di,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/recaptcha-setting",component:mi,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/unlocked-content-user-list",component:pi,allow:rr}),n.createElement(Oa,{exact:!0,path:"/admin/health-info",component:ui,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/timestamp-visibility",component:gi,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/universal-block",component:hi,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/universal-block-logs",component:bi,allow:["admin"]}),n.createElement(Oa,{exact:!0,path:"/admin/settings/help-setting",component:fi,allow:rr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/public-post-setting",component:_i,allow:rr}),n.createElement(Oa,{exact:!0,path:"/admin/user-utm-params",component:yi,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/cancellation",component:Ei,allow:dr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/subscription-cancellation-reason",component:vi,allow:rr}),n.createElement(Oa,{exact:!0,path:"/admin/redirect-url/:route?",component:wi,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/list-redirect-url",component:xi,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/forum-pay-setting",component:Ni,allow:rr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/comments",component:Si,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/hide-earnings",component:Ti,allow:rr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/feed-tags",component:Oi,allow:nr}),n.createElement(Oa,{exact:!0,path:"/admin/voids-refund-and-chargeback",component:Mi,allow:ar}),n.createElement(l.b,{exact:!0,path:"/feed/:blog_id/:from_notification?",component:Ci}),n.createElement(Oa,{exact:!0,path:"/profile/wallet",component:Ii,allow:cr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/announcement-banner",component:Ai,allow:dr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/show-payment-icons",component:Pi,allow:rr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/chat-list",component:ji,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/user-purchase-history",component:Fi,allow:or}),n.createElement(Oa,{exact:!0,path:"/admin/settings/show-media-count-in-exclusive-content",component:Li,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/influencer-activity",component:Di,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/manage-mass-messages",component:$i,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/navbar",component:Ri,allow:tr}),n.createElement(Oa,{exact:!0,path:"/admin/reporting",component:Bi,allow:nr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/web-push-notification",component:Gi,allow:rr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/universal-login",component:Wi,allow:rr}),n.createElement(Oa,{exact:!0,path:"/admin/settings/coupon",component:Vi,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/coupon-reports",component:Ki,allow:nr}),n.createElement(Oa,{exact:!0,path:"/admin/coupon-reports/coupon-details/:couponId",component:Yi,allow:nr}),n.createElement(l.b,{exact:!0,path:"/more-links",component:Ui}),n.createElement(l.b,{exact:!0,path:"/content-removal",component:Ji}),n.createElement(l.b,{exact:!0,path:"/:path",component:ki}),n.createElement(Oa,{exact:!0,path:"/admin/settings/subscription-email-notification",component:Hi,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/settings/display-pagination-on-exclusive-content",component:qi,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/edit-content-removal",component:Xi,allow:ar}),n.createElement(Oa,{exact:!0,path:"/admin/content-manager",component:Qi,allow:["model","admin","content_manager","sub_admin"]}),n.createElement(Oa,{exact:!0,path:"/admin/settings/redis-cache",component:Zi,allow:ar}),n.createElement(l.b,{component:kn}))))))))}}var ur=pr;const gr=document.getElementById("root");r.a.render(o.a.createElement("div",{id:"scrollBottom",className:"disableSave",onContextMenu:function(e){return"localhost"===window.location.hostname||"modelplatform.themccandlessgroup.com"===window.location.hostname||"demo1.themccandlessgroup.com"===window.location.hostname||"demo.themccandlessgroup.com"===window.location.hostname||"demo2.themccandlessgroup.com"===window.location.hostname||(e.preventDefault(),!1)}},o.a.createElement(ur,null)),gr)},51:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(8),s=a(6),l=a(2),c=a.n(l);const d=s.a.div`
width: 100%;

    .modal {
        display: block;
        background-color: #00000080;
        left: ${e=>e.leftPosition}px;
        top: ${e=>e.topPosition}px;
        width: ${e=>e.expandBackground&&"100dvw"};
        height: ${e=>e.expandBackground&&"100dvh"};
    }

    .modal-content {
        color: ${e=>e.siteFontColor};
        max-height: ${e=>e.modalHeight} !important;
    }

    .modal-header, .modal-body {
        background-color: ${e=>e.cardBackgroundColor};
    }

    .modal-body {
        max-height: ${e=>e.modalBodyMaxHeight};
    }
    .close {
        color: ${e=>e.siteFontColor};
        opacity: 1;
    }

    .close:hover {
        color: ${e=>e.siteFontColor};
        opacity: 1;
        cursor: pointer;
    }
    .modal-dialog-scrollable .modal-body {
        overflow-x: hidden;
        padding: 16px 16px 15px 16px
    }
`;t.a=Object(r.b)(e=>({auth:e.auth}))(Object(i.g)((function(e){const{site_font_color:t,card_background_color:a}=e.auth.appSettings;let i="modal-dialog modal-dialog-centered modal-dialog-scrollable",r=0,s=0;if(e.expandBackground){let t=document.getElementById(e.parentModalId);r=t?-t.offsetLeft:0,s=t?-t.offsetTop:0}const l=c.a.get(e,"classes","");""!==l&&(i=i+" "+l);const m=c.a.get(e,"showCloseBtn",!0),p=c.a.get(e,"showHeader",!0),u=c.a.get(e,"closeBtnFontSize",""),g=c.a.get(e,"popup_title",""),h=c.a.get(e,"isLoading",!1);return Object(n.useEffect)(()=>(document.querySelector("body").style.overflow="hidden",()=>{e.parentModalId||(document.querySelector("body").style.overflow="visible")}),[]),o.a.createElement(d,{siteFontColor:t,cardBackgroundColor:a,leftPosition:r,topPosition:s,expandBackground:e.expandBackground},o.a.createElement("div",{className:"modal fade show",role:"dialog"},o.a.createElement("div",{className:i,role:"document"},o.a.createElement("div",{className:"modal-content"},!0===p&&o.a.createElement("div",{className:"modal-header align-items-center"},""!==g&&o.a.createElement("div",{className:"row d-block text-center"},o.a.createElement("h3",{className:"mb-0"},g)),o.a.createElement("h5",{className:"modal-title"},e.title),!0===m&&o.a.createElement("button",{className:"close",disabled:h,style:{fontSize:u||"xx-large"},onClick:()=>{e.parentModalId||(document.querySelector("body").style.overflow="visible"),e.handleClose()}})),o.a.createElement("div",{className:"modal-body",ref:e.modalRef},e.children)))))})))},52:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return o})),a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return r}));const n="ADD_ACCOUNT",o="register",i="login",r="MERGE_ACCOUNT"},53:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(300),r=a.n(i),s=a(29),l=a(8);const c=a(6).a.div`
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    margin-left: 10px;
`;t.a=Object(l.b)(e=>({auth:e.auth}))(Object(s.g)((function(e){const{site_font_color:t}=e.auth.appSettings;return!0===e.loading&&o.a.createElement(c,{style:{...e.style}},o.a.createElement(r.a,{color:e.color||t,loading:e.loading,size:e.size}))})))},55:function(e,t,a){"use strict";a.d(t,"c",(function(){return l})),a.d(t,"f",(function(){return c})),a.d(t,"h",(function(){return d})),a.d(t,"a",(function(){return b})),a.d(t,"e",(function(){return f})),a.d(t,"g",(function(){return _})),a.d(t,"b",(function(){return y})),a.d(t,"d",(function(){return E}));var n=a(93),o=a(2),i=a.n(o),r=a(1),s=a(34);const l=()=>async e=>{try{const t=s.a.getState(),{pushNotification:a,auth:o}=t,{isOneSignalInitialized:l}=a,{appSettings:m}=o,{one_signal:p,web_push_notification_enabled:u}=m,{app_id:g,safari_web_id:h}=p;if(i.a.isEmpty(g)||i.a.isEmpty(h)||!u||l)return;let b={welcomeNotification:{disable:!0},appId:g,safari_web_id:h,autoResubscribe:!0,notificationClickHandlerAction:"navigate",notificationClickHandlerMatch:"origin"};"localhost"===window.location.hostname&&(b.allowLocalhostAsSecureOrigin=!0),await n.a.init(b),e({type:r.xb,payload:!0}),e(c()),e(d())}catch(t){e({type:r.xb,payload:!1}),console.log(t)}},c=()=>async()=>{const e=s.a.getState(),{pushNotification:t,auth:a}=e,{isOneSignalInitialized:n}=t,{user:o,isAdmin:r,isAuthenticated:l}=a,c=i.a.get(o,"_id",!1);if(!n||!l)return;const d=localStorage.getItem("hide_notification_prompt")?JSON.parse(localStorage.getItem("hide_notification_prompt")):{};"granted"===await y()&&Object.keys(d).includes(c)&&d[c]&&(f(c),r||b(o))},d=()=>async e=>{const t=s.a.getState(),{isOneSignalInitialized:a}=t.pushNotification,{appSettings:n,user:o,isAdmin:l,isAuthenticated:c}=t.auth,{web_push_notification_enabled:d}=n,m=i.a.get(o,"ccbillSubscriptionStatus","0"),p=i.a.get(o,"_id",!1);if(!a||!c||!d||["proxy_user","support"].includes(t.auth.user.role)||!l&&!["1","2"].includes(m))return;const u=await y(),g=localStorage.getItem("hide_notification_prompt")?JSON.parse(localStorage.getItem("hide_notification_prompt")):{};["default","granted"].includes(u)&&!1===Object.keys(g).includes(p)&&(l||["1","2"].includes(m))&&"live_stream_manager"!==o.role&&(document.querySelector("body").style.overflow="hidden",e({type:r.Jc,payload:!0}))},m="A",p="B",u="C",g="D",h="E",b=e=>{let t="",a="";const o=i.a.get(e,"web_notification_preferences.content",!1),r=i.a.get(e,"web_notification_preferences.offers",!1),s=i.a.get(e,"web_notification_preferences.live_stream",!1),l=i.a.get(e,"web_notification_preferences.messages",!1),c=i.a.get(e,"web_notification_preferences.mass_messages",!1);t+=o?m:"0",t+=r?p:"0",t+=s?u:"0",t+=l?g:"0",a+=c?h:"0",a+="000";const d={preferences1:t,preferences2:a};n.a.sendTags(d)},f=e=>{n.a.setExternalUserId(e)},_=()=>{n.a.showNativePrompt()},y=async()=>await n.a.getNotificationPermission(),E=()=>{n.a.removeExternalUserId(),n.a.deleteTags(["preferences1","preferences2"])}},56:function(e,t,a){"use strict";a.d(t,"b",(function(){return d})),a.d(t,"e",(function(){return m})),a.d(t,"g",(function(){return p})),a.d(t,"a",(function(){return u})),a.d(t,"f",(function(){return g})),a.d(t,"c",(function(){return h})),a.d(t,"d",(function(){return b}));var n=a(3),o=a.n(n),i=a(22),r=a(2),s=a.n(r),l=a(1);const c=Object(i.a)(),d=(e,t)=>()=>{const a=c+"/api/ccbill/subscribe_user";o.a.post(a,e).then(e=>{t(e.data)}).catch(e=>{const a=s.a.get(e,"response.data.message",e.response.data.errors.generalMessage);t(a)})},m=()=>({type:l.je}),p=(e,t)=>()=>{const a=c+"/api/ccbill/subscribe-with-card";o.a.post(a,e).then(e=>{t(e.data)}).catch(e=>{const a=s.a.get(e,"response.data.errors.generalMessage",e.response.data.message);t(a)})},u=e=>()=>{const t=c+"/api/ccbill/get-country-from-ip";o.a.get(t).then(t=>{e(t.data)}).catch(t=>{const a=s.a.get(t,"response.data.message",t.response.data.message);e(a)})},g=(e,t)=>()=>{const a=c+"/api/ccbill/resubscribe-with-card";o.a.post(a,e).then(e=>{t(e.data)}).catch(e=>{const a=s.a.get(e,"response.data.errors.generalMessage",e.response.data.message);t(a)})},h=()=>({type:l.he}),b=e=>({type:l.ie,payload:e})},57:function(e,t,a){"use strict";a.d(t,"j",(function(){return _})),a.d(t,"k",(function(){return y})),a.d(t,"m",(function(){return E})),a.d(t,"n",(function(){return w})),a.d(t,"o",(function(){return x})),a.d(t,"c",(function(){return k})),a.d(t,"A",(function(){return N})),a.d(t,"f",(function(){return S})),a.d(t,"h",(function(){return C})),a.d(t,"r",(function(){return T})),a.d(t,"e",(function(){return O})),a.d(t,"s",(function(){return P})),a.d(t,"l",(function(){return I})),a.d(t,"i",(function(){return A})),a.d(t,"p",(function(){return M})),a.d(t,"w",(function(){return j})),a.d(t,"q",(function(){return F})),a.d(t,"g",(function(){return L})),a.d(t,"u",(function(){return q})),a.d(t,"t",(function(){return V})),a.d(t,"v",(function(){return Y})),a.d(t,"a",(function(){return K})),a.d(t,"y",(function(){return J})),a.d(t,"d",(function(){return X})),a.d(t,"x",(function(){return Q})),a.d(t,"b",(function(){return Z})),a.d(t,"B",(function(){return ee})),a.d(t,"z",(function(){return te}));var n=a(3),o=a.n(n),i=a(126),r=a.n(i),s=a(1),l=a(22),c=a(34),d=a(68),m=a(19),p=a(44),u=a(2),g=a.n(u),h=a(4),b=a(20);const f=Object(l.a)(),_=e=>t=>{t(D()),o.a.get(`${f}/api/chat/get_user_list?page_num=${e.pageNum}&sort_by=${e.sortBy}&user_name=${e.userName}&sort_by_subscribers=${e.sortBySubscribers}&list_id=${e.list_id}`).then(e=>{t(R(e.data))})},y=(e,t,a)=>n=>{n(D());let i=localStorage.getItem("AuthToken");void 0===t&&i&&(t=n(v(i))),n({type:s.gc,payload:e.selectedUserId});const r=!0===t?f+`/api/chat/get_messages_admin?selected_model_id=${e.selectedModelId}&selected_user_id=${e.selectedUserId}&page_num=${e.pageNum}`:f+`/api/chat/get_messages?selected_user_id=${e.selectedUserId}&page_num=${e.pageNum}`;o.a.get(r).then(o=>{if(!0===g.a.get(o,"data.should_hide_in_chat",!1))return void a(!1);n(B(o.data));let i={userId:e.selectedUserId};!0===t&&(i.modelId=e.selectedModelId),"admin"!==e.role&&n(w(i,t)),a&&a(!0)})},E=(e,t,a)=>n=>{n($());let i=localStorage.getItem("AuthToken");void 0===t&&i&&(t=n(v(i)));const r=!0===t?f+`/api/chat/get_messages_admin?selected_user_id=${e.userId}&selected_model_id=${e.modelId}&page_num=${e.pageNum}`:f+`/api/chat/get_messages?selected_user_id=${e.userId}&page_num=${e.pageNum}`;o.a.get(r).then(e=>{n(U(e.data)),a()})},v=e=>()=>r()(e).isAdmin,w=(e,t)=>a=>{const n=!0===t?f+"/api/chat/read_message_model":f+"/api/chat/read_message_user";o.a.post(n,e).then(()=>{a(x())})},x=()=>e=>{o.a.get(f+"/api/users/get_unread_count").then(t=>{e(H(t.data))})};window.skipLookup={};const k=e=>t=>{void 0!==e&&!0!==window.skipLookup[e]&&(window.skipLookup[e]=!0,o.a.get(f+"/api/chat/get_user_details?user_id="+e).then(e=>{t(z(e.data))}))},N=e=>t=>{void 0!==e.userId&&t(W(e))},S=(e,t)=>()=>{void 0!==e.userId&&o.a.get(f+`/api/chat/get_user_booked_slot_data?user_id=${e.userId}&timezone=${e.timezone}`).then(e=>{t(e.data)})},C=(e,t)=>()=>{o.a.post(f+"/api/chat/get_next_meeting_time",e).then(e=>{t(e.data)})},T=(e,t)=>a=>{o.a.post(f+"/api/chat/send_message",e).then(e=>{if(!1!==e.data.wallet_balance&&a(Object(p.k)(e.data.wallet_balance)),a(Object(m.t)()),a(K(e.data)),t(!0),!1===e.data.fromAdmin&&!0===e.data.is_pay_per_message){const t=e.data.transactionId+"-"+e.data.senderId;Object(b.a)("purchase",t,e.data.amount,"chat","pay per message","")}}).catch(e=>{e.message=g.a.get(e,"response.data.message",e.message);if(!1===g.a.get(e.response.data.errors,"cascade.allow_cascade",!1))return a(Object(h.e)({description:"Could not send Message: "+e.message})),t(!0);a(Object(h.e)({description:"Could not send Message: Problem in card authorization please re-enter your card details or add new card."})),t(!1)})},O=e=>t=>{t(D()),o.a.post(f+"/api/chat/get_tips_list",e).then(e=>{t(G(e.data))})},P=(e,t)=>()=>{o.a.post(f+"/api/chat/update_allow_user_to_chat",e).then(()=>{t()})},I=(e,t)=>()=>{o.a.post(f+"/api/chat/get_user_send_message_status",e).then(e=>{t(e)})},A=e=>t=>{if(!1===g.a.get(e,"messageId",!1))return t(Object(d.j)());o.a.get(f+"/api/chat/get_chat_message?id="+e.messageId).then(e=>{t(J(e.data.data)),t(Object(d.j)())})},M=e=>async()=>{try{return await o.a.post(f+"/api/message/send-mass-message",e),!0}catch(t){return t.message=g.a.get(t,"response.data.message",t.message),alert("Could not send Message: "+t.message),!1}},j=e=>async()=>{try{return await o.a.post(f+"/api/message/set-welcome-message",e),!0}catch(t){return t.message=g.a.get(t,"response.data.message",t.message),alert("Could not set Message: "+t.message),!1}},F=e=>async()=>{try{return(await o.a.post(f+"/api/message/send-message",e)).data.data}catch(t){return{isError:!0,error:t}}},L=()=>async()=>{try{return(await o.a.get(f+"/admin/get-error-mass-messages")).data.data}catch(e){return{isError:!0,error:e}}},D=()=>({type:s.Z}),$=()=>({type:s.cb}),R=e=>({type:s.v,payload:e}),B=e=>({type:s.Ec,payload:e}),U=e=>({type:s.sb,payload:e}),G=e=>({type:s.id,payload:e}),z=e=>({type:s.w,payload:e}),W=e=>({type:s.ee,payload:e}),H=e=>({type:s.Uc,payload:e}),q=(e,t)=>a=>{const n=c.a.getState();!0===n.auth.isAdmin?(a(Y(n.auth.appSettings.model_id)),a(V(e)),t.push("/private-chat/"+e)):(a(V(e)),t.push("/private-chat"))},V=e=>({type:s.gc,payload:e}),Y=e=>({type:s.fc,payload:e}),K=e=>({type:s.l,payload:e}),J=e=>({type:s.Od,payload:e}),X=e=>({type:s.C,payload:e}),Q=e=>({type:s.kd,payload:e}),Z=(e,t)=>a=>{o.a.post(f+"/api/v2/admin/block-user",e).then(e=>{const t={description:e.data.message};a(Object(h.e)(t)),a(Object(h.a)())}).catch(e=>{const n=g.a.get(e,"response.data.message","There was a problem in Block user.");a(Object(h.a)());const o={description:n};return a(Object(h.e)(o)),t()})},ee=e=>({type:s.ce,payload:e}),te=e=>({type:s.Yd,payload:e})},58:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(8),s=a(6),l=a(48),c=a(98),d=a(2),m=a.n(d),p=a(111);const u=s.a.div`
width: 100%;
z-index: 55 !important;

    .modal {
        display: block;
        background-color: #000000e6;
        width: ${e=>e.width};
        height: ${e=>e.height};
        left: ${e=>e.offsetX}px;
        top: ${e=>e.offsetY}px;
    }

    .d-flex.flex-column.justify-content-center.align-items-center {
        padding-right: 50px;
        padding-left: 50px;
    }

    video {
        max-width: 100% !important;
    }

    img {
        object-fit: contain;
    }

    .media-popup {
        height: 100vh;
    }

    video, img {
        max-height: var(--app-height);
    }

    .content {
        height: 100% !important;
        overflow-y: hidden;
    }

    @media(max-width: 767px) {
        .d-flex.flex-column.justify-content-center.align-items-center {
            padding-right: 0;
            padding-left: 0;
        } 
        
        video, img {
            max-height: ${e=>e.isIOS?"var(--app-height)":"90vh"};
        }

        .media-popup {
            height: ${e=>e.isIOS?"var(--app-height)":"90vh"} !important;
        }
    }
`,g=s.a.button`
    background-color: ${e=>e.content_color} !important; 
    color: ${e=>e.content_font_color} !important;
    border-radius: 77%;
    height: 30px;
    width: 30px;
    right: 10px; 
    position: absolute; 
    top: 20px;
    cursor: pointer;
    z-index: 10;
    display: inherit;
    align-items: center;
    justify-content: center;
    overflow: hidden;
`;t.a=Object(r.b)(e=>({auth:e.auth}))(Object(i.g)((function(e){const t=e.auth.user._id,a=m.a.get(e,"showWatermark",!0),i="popup"===e.reqFrom?"100dvw":"100%",r="popup"===e.reqFrom?"100dvh":"100%",s="popup"===e.reqFrom?"-"+e.offsetX:"0",d="popup"===e.reqFrom?"-"+e.offsetY:"0",h=()=>o.a.createElement("div",{className:"content-modal"},"photo"===e.type&&""!==e.url&&o.a.createElement("img",{className:"",draggable:!1,src:e.url,alt:"not found"}),"video"===e.type&&""!==e.url&&o.a.createElement(o.a.Fragment,null,o.a.createElement("video",{id:"myVideo",key:e.url,autoPlay:!0,playsInline:!1,src:e.url,controls:!0,controlsList:"nodownload"})));Object(n.useEffect)(()=>(b(),window.addEventListener("resize",b),window.addEventListener("mousedown",f),()=>{window.removeEventListener("mousedown",f)}),[]),Object(n.useEffect)(()=>{const t=t=>{27===t.keyCode&&e.handleClose()};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[]);const b=()=>{document.documentElement.style.setProperty("--app-height",window.innerHeight+"px")},f=t=>{let a=t.target,n=!1;for(;a;){if(a.classList.contains("content-modal")){n=!0;break}a=a.parentElement}n||e.handleClose()};return o.a.createElement(u,{className:"media-popup",isIOS:l.isIOS,width:i,offsetX:s,offsetY:d,height:r},o.a.createElement("div",{className:"modal fade show",key:Object(p.v4)()},o.a.createElement("div",{className:"modal-dialog modal-fullscreen",style:{height:"100%",width:"100%",margin:"0%",maxHeight:"100%",maxWidth:"100%"}},o.a.createElement("div",{className:"modal-content",style:{backgroundColor:"transparent"}},o.a.createElement("div",{className:"modal-body",style:{backgroundColor:"transparent",margin:"0",padding:"0"}},o.a.createElement(g,{className:"close",content_color:e.auth.appSettings.content_color,content_font_color:e.auth.appSettings.content_font_color,onClick:()=>{"video"===e.type&&document.querySelectorAll(".myVideoPause").forEach(e=>e.pause()),e.handleClose()}}),o.a.createElement("div",{className:"content d-flex flex-column justify-content-center align-items-center media-popup"},o.a.createElement("div",{className:"content-modal"},!0===a?o.a.createElement(c.a,{userId:t},h()):h())))))))})))},59:function(e,t,a){"use strict";a.d(t,"m",(function(){return u})),a.d(t,"l",(function(){return g})),a.d(t,"c",(function(){return h})),a.d(t,"b",(function(){return b})),a.d(t,"i",(function(){return y})),a.d(t,"h",(function(){return E})),a.d(t,"f",(function(){return v})),a.d(t,"g",(function(){return x})),a.d(t,"d",(function(){return k})),a.d(t,"j",(function(){return S})),a.d(t,"k",(function(){return C})),a.d(t,"e",(function(){return T})),a.d(t,"a",(function(){return I}));var n=a(3),o=a.n(n),i=a(22),r=a(4),s=a(2),l=a.n(s),c=a(1),d=a(19),m=a(52);const p=Object(i.a)(),u=e=>async t=>{try{const a=await o.a.post(p+"/api/universal-login/save-settings",e),n={description:a.data.message};t(P(a.data.data)),t(Object(r.e)(n))}catch(a){const e=l.a.get(a.response,"data.message","There was a problem updating Universal Login settings");t(Object(r.e)({description:e}))}},g=e=>async t=>{const a=`${p}/api/universal-login/universal-login-merge-domain-list?email=${e}`;try{const e=await o.a.get(a);e&&1===e.data.success&&t(f(e.data.data))}catch(n){const e=l.a.get(n.response,"data.message","There was a problem while fetching merged websites list.");t(Object(r.e)({description:e}))}},h=(e,t,a)=>n=>{const o=l.a.get(e,"data.data.siteListOfMergeAccount",[]);n(_(o)),n(y(!0)),a===m.b&&n(Object(d.z)(t)),a===m.d&&n(Object(d.B)(t))},b=(e,t,a,n)=>o=>{o(_([])),o(y(!1)),t===m.b&&(o(Object(d.n)(!1)),o(Object(d.z)({})),o(Object(d.r)(e,a,n))),t===m.d&&o(Object(d.B)({}))},f=e=>({type:c.rd,payload:e}),_=e=>({type:c.td,payload:e}),y=e=>({type:c.ed,payload:e}),E=(e,t)=>a=>{a(v(!0)),a(w(t));const n=l.a.get(e,"data.data.siteListOfMergeAccount",[]);a(_(n));const o=l.a.get(e,"data.data.mergeOldUser",!1);a(O(o))},v=e=>({type:c.cd,payload:e}),w=e=>({type:c.pc,payload:e}),x=(e,t,a)=>n=>{const o=l.a.get(e,"data.data.siteListOfMergeOldAccount",[]),i=l.a.get(e,"data.data.siteListOfDifferentPassword",[]);n(N(o)),n(S(!0)),i.length>0&&localStorage.setItem("differentPasswordPopupReminderCount",0),n(C(i)),a===m.b&&n(Object(d.z)(t)),a===m.d&&n(Object(d.B)(t))},k=e=>t=>{t(N([])),t(S(!1)),e===m.b&&t(Object(d.z)({})),e===m.d&&t(Object(d.B)({}))},N=e=>({type:c.sd,payload:e}),S=e=>({type:c.dd,payload:e}),C=e=>({type:c.qd,payload:e}),T=e=>({type:c.bd,payload:e}),O=e=>({type:c.Dc,payload:e}),P=e=>({type:c.Y,payload:e}),I=e=>async t=>{const a=p+"/api/universal-login/block-user-universally";try{return(await o.a.post(a,{email:e})).data}catch(n){const e=l.a.get(n.response,"data.message","There was a problem while block user universally");return t(Object(r.e)({description:e})),{}}}},62:function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"d",(function(){return i})),a.d(t,"f",(function(){return r})),a.d(t,"j",(function(){return s})),a.d(t,"a",(function(){return l})),a.d(t,"c",(function(){return c})),a.d(t,"e",(function(){return d})),a.d(t,"g",(function(){return m})),a.d(t,"h",(function(){return p})),a.d(t,"i",(function(){return u})),a.d(t,"l",(function(){return x})),a.d(t,"k",(function(){return k}));var n=a(1);const o=e=>t=>{t(h(e))},i=e=>t=>{t(b(e))},r=()=>e=>{e(f())},s=e=>t=>{t(_(e))},l=e=>t=>{t(g(e))},c=e=>t=>{t(y(e))},d=e=>t=>{t(E(e))},m=()=>e=>{e(v())},p=()=>e=>{e(w())},u=()=>e=>{e({type:n.hd})},g=e=>({type:n.Id,payload:e}),h=e=>({type:n.F,payload:e}),b=e=>({type:n.H,payload:e}),f=()=>({type:n.J}),_=e=>({type:n.Jd,payload:e}),y=e=>({type:n.G,payload:e}),E=e=>({type:n.I,payload:e}),v=()=>({type:n.Eb}),w=()=>({type:n.xc}),x=e=>({type:n.Rd,payload:e}),k=e=>({type:n.Qd,payload:e})},65:function(e,t,a){"use strict";a.d(t,"f",(function(){return l})),a.d(t,"g",(function(){return c})),a.d(t,"e",(function(){return d})),a.d(t,"c",(function(){return o})),a.d(t,"b",(function(){return i})),a.d(t,"d",(function(){return r})),a.d(t,"a",(function(){return s}));var n=a(34);const o="register",i="login",r="subscription",s="add_card",l=()=>{const e=n.a.getState(),{is_recaptcha_enabled:t,recaptcha_site_key:a}=e.auth.appSettings;if(!1===t)return!0;if(!document.getElementById("recaptcha-key")){const e=document.createElement("script");e.type="text/javascript",e.src="https://www.google.com/recaptcha/api.js?render="+a,e.id="recaptcha-key",document.body.appendChild(e)}},c=async e=>await new Promise(t=>{const a=n.a.getState(),{is_recaptcha_enabled:o,recaptcha_site_key:i}=a.auth.appSettings;if(!1===o)return t({});console.log({action:e}),window.grecaptcha.ready(()=>{window.grecaptcha.execute(i,{action:e}).then(e=>t({"g-recaptcha":e}))})}),d=()=>{const e=n.a.getState(),{is_recaptcha_enabled:t}=e.auth.appSettings;return t}},68:function(e,t,a){"use strict";a.d(t,"h",(function(){return b})),a.d(t,"l",(function(){return f})),a.d(t,"c",(function(){return _})),a.d(t,"d",(function(){return y})),a.d(t,"a",(function(){return E})),a.d(t,"e",(function(){return v})),a.d(t,"k",(function(){return w})),a.d(t,"g",(function(){return x})),a.d(t,"f",(function(){return k})),a.d(t,"i",(function(){return N})),a.d(t,"j",(function(){return S})),a.d(t,"b",(function(){return C}));var n=a(3),o=a.n(n),i=a(1),r=a(22),s=a(19),l=a(57),c=a(34),d=a(20),m=a(2),p=a.n(m),u=a(56),g=a(4);const h=Object(r.a)(),b=(e,t)=>a=>{const n=void 0!==t?h+"/api/ccbill/pay":h+"/api/ccbill/pay-guest";a(N()),o.a.post(n,e).then(n=>{if(n.data.failureCode)return a(S()),"-23"===n.data.failureCode||"-24"===n.data.failureCode?void a(Object(s.q)()):alert(n.data.error);if(n.data.error)return a(S()),alert(n.data.error);if(!0===n.data.accepted){if("tips"===e.action){let a=n.data.transactionId;void 0!==t&&(a=a+"-"+t);let o="menu";Object(d.a)("purchase",a,e.amount,o,"tip","")}return"subscription"===e.action&&!1!==e.promotion_id&&Object(d.c)(e.promotion_id,e.ribbon_text),a(S()),alert(n.data.message)}n.data.action&&window.location.replace(n.data.url)})},f=(e,t,a)=>n=>{const i=h+"/api/ccbill/tip_from_chat_charge_by_previous";n(N()),o.a.post(i,e).then(o=>{if(o.data.failureCode&&("-23"!==o.data.failureCode&&"-24"!==o.data.failureCode||n(Object(s.q)())),!0===o.data.accepted&&"tips"===e.action){let a=o.data.transactionId+"-"+t,n="chat",i="tip";"go live stream"===e.tipFrom&&(i="go live tip",n=e.tipFrom),Object(d.a)("purchase",a,e.amount,n,i,"")}n(S()),a(o)})},_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{cancellation_reason:""};return async t=>{try{const a=await o.a.post(h+"/api/ccbill/cancel_subscription",e),n={description:"There was a problem cancelling your subscription. Please try again after an hour."};!0===a.data.cancelled&&(n.description="Subscription Cancelled",Object(u.c)(),await t(Object(s.b)(!1))),t(Object(g.e)(n))}catch(a){const e={description:p.a.get(a,"response.data.message","Invalid Request")};return t(Object(g.e)(e))}}},y=e=>t=>{t(N()),o.a.post(h+"/api/ccbill/charge_by_previous",e).then(a=>{if(t(Object(l.i)(a.data.messageObject)),a.data.failureCode)return"-23"===a.data.failureCode||"-24"===a.data.failureCode?void t(Object(s.q)()):alert(a.data.error);if(a.data.alreadyCharged)return alert("Content already unlocked.");if(a.data.error)return alert(a.data.error);if(!1===a.data.accepted)return alert("Could not unlock content.");if(!0===a.data.accepted){const t=c.a.getState();let n=p.a.get(t,"auth.user._id",!1),o=n?a.data.transactionId+"-"+n:a.data.transactionId;return Object(d.a)("purchase",o,e.amount,e.productSKU,e.productName,e.productCategory),"chat"===e.action&&!1!==e.promotion_id&&Object(d.c)(e.promotion_id,e.ribbon_text),alert(a.data.message)}a.data.action&&window.location.replace(a.data.url)})},E=e=>t=>{t(C()),o.a.post(h+"/api/ccbill/blog_charge_by_previous",e).then(a=>{if(t(T()),a.data.failureCode)return"-23"===a.data.failureCode||"-24"===a.data.failureCode?void t(Object(s.q)()):alert(a.data.error);if(a.data.alreadyCharged)return alert("Content already unlocked.");if(a.data.error)return alert(a.data.error);if(!1===a.data.accepted)return alert("Could not unlock content.");if(!0===a.data.accepted){t({type:i.wd,payload:a.data.blogData});const n=p.a.get(a,"data.blogData.udid","").length>1,o=c.a.getState();let r=p.a.get(o,"auth.user._id",!1),s=r?a.data.transactionId+"-"+r:a.data.transactionId,l=e.blogType,m="unlock feed";return"photo"===l&&(l="image"),!0===n&&(m="unlock reuse feed"),Object(d.a)("purchase",s,e.amount,l,m,e.title),!0===e.is_promotion_applied&&!1!==e.promotion_id&&Object(d.c)(e.promotion_id,e.ribbon_text),alert(a.data.message)}a.data.action&&window.location.replace(a.data.url)})},v=(e,t)=>a=>{o.a.post(h+"/api/ccbill/chat_booking_charge_by_previous",e).then(e=>{t(e.data)}).catch(e=>{if("-23"===e.response.data.errors.failureCode||"-24"===e.response.data.errors.failureCode)return a(Object(s.q)()),void t();const n=p.a.get(e.response,"data.message","Invalid request.");alert(n),t()})},w=(e,t)=>a=>{a(N()),o.a.post(h+"/api/ccbill/shop_payment",e).then(e=>(a(S()),e.data.failureCode?"-23"===e.data.failureCode||"-24"===e.data.failureCode?void a(Object(s.q)()):alert(e.data.error):e.data.alreadyCharged?alert("Content already unlocked."):e.data.error?alert(e.data.error):!1===e.data.accepted?alert("Could not unlock content."):!0===e.data.accepted?(alert(e.data.message),a(Object(l.o)()),t.push("/")):void(e.data.action&&window.location.replace(e.data.url))))},x=(e,t)=>()=>{o.a.post(h+"/api/users/get_users_data_from_email",e).then(e=>{t(e.data)})},k=(e,t)=>()=>{o.a.post(h+"/api/generate_subscription_url/generate_subscription_url",e).then(e=>{t(e.data)})},N=()=>({type:i.Bb}),S=()=>({type:i.Ab}),C=()=>({type:i.u}),T=()=>({type:i.t})},69:function(e,t,a){"use strict";a.d(t,"j",(function(){return b})),a.d(t,"k",(function(){return f})),a.d(t,"d",(function(){return _})),a.d(t,"b",(function(){return y})),a.d(t,"c",(function(){return v})),a.d(t,"e",(function(){return x})),a.d(t,"i",(function(){return k})),a.d(t,"g",(function(){return S})),a.d(t,"h",(function(){return C})),a.d(t,"f",(function(){return T})),a.d(t,"a",(function(){return O}));var n=a(3),o=a.n(n),i=a(22),r=a(2),s=a.n(r),l=a(1),c=a(34),d=a(20),m=a(57),p=a(56),u=a(19),g=a(4);const h=Object(i.a)(),b=(e,t)=>()=>{const a=h+"/api/sticky-io/subscription";o.a.post(a,e).then(e=>{t(e.data)}).catch(e=>{const a=s.a.get(e,"response.data.message","Invalid Request");t(a)})},f=(e,t)=>()=>{const a=h+"/api/sticky-io/subscribe-with-card";o.a.post(a,e).then(e=>{t(e.data)}).catch(e=>{const a=s.a.get(e,"response.data.message","Invalid Request");t(a)})},_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{cancellation_reason:""};return async t=>{const a=h+"/api/sticky-io/cancel-subscription";try{const n=(await o.a.post(a,e)).data,i={description:"There was a problem cancelling your subscription. Please try again after an hour."};!0===n.data.cancelled&&(i.description="Subscription Cancelled",Object(p.c)(),await t(Object(u.b)(!1))),t(Object(g.e)(i))}catch(n){const e={description:s.a.get(n,"response.data.message","Invalid Request")};return t(Object(g.e)(e))}}},y=e=>async t=>{t(E());const a=h+"/api/sticky-io/blog-content-purchase";try{const n=await o.a.post(a,e),i=n.data;if(t(v()),0===i.data.success)return alert(i.data.message);t({type:l.wd,payload:i.data.blogData});const r=s.a.get(n,"data.blogData.udid","").length>1,m=c.a.getState(),p=s.a.get(m,"auth.user._id",!1),u=p?i.data.transactionId+"-"+p:i.data.transactionId,g="photo"===e.blogType?"image":e.blogType,h=!0===r?"unlock reuse feed":"unlock feed";return Object(d.a)("purchase",u,e.amount,g,h,e.title),!0===e.is_promotion_applied&&!1!==e.promotion_id&&Object(d.c)(e.promotion_id,e.ribbon_text),alert(i.data.message)}catch(n){t(v());const e=s.a.get(n,"response.data.message","Invalid Request");return alert(e)}},E=()=>({type:l.u}),v=()=>({type:l.t}),w=()=>({type:l.Bb}),x=e=>async t=>{t(w());const a=h+"/api/sticky-io/chat-content-purchase";try{const n=(await o.a.post(a,e)).data;if(t(Object(m.i)(n.data.messageObject)),0===n.data.success)return alert(n.data.message);const i=c.a.getState();let r=s.a.get(i,"auth.user._id",!1),l=r?n.data.transactionId+"-"+r:n.data.transactionId;return Object(d.a)("purchase",l,e.amount,e.productSKU,e.productName,e.productCategory),"chat"===e.action&&!1!==e.promotion_id&&Object(d.c)(e.promotion_id,e.ribbon_text),alert(n.data.message)}catch(n){const e=s.a.get(n,"response.data.message","Invalid Request");return alert(e)}},k=(e,t,a)=>async n=>{const i=h+"/api/sticky-io/send-tip-from-chat";n(w());try{const r=(await o.a.post(i,e)).data;if("tips"===e.action){const a=`${r.data.transactionId}-${t}`,n="go live stream"===e.tipFrom?e.tipFrom:"chat";let o="go live stream"===e.tipFrom?"go live tip":"tip";Object(d.a)("purchase",a,e.amount,n,o,"")}n(N()),a(r)}catch(r){const e=s.a.get(r,"response.data.message","Invalid Request");return n(Object(g.e)({description:e}))}},N=()=>({type:l.Ab}),S=(e,t)=>async a=>{const n=void 0!==t?h+"/api/sticky-io/send-tip":h+"/api/ccbill/pay-guest";a(w());try{const i=await o.a.post(n,e),r=i.data;if(0===r.data.success)return a(N()),alert(r.data.message);if("tips"===e.action){const a=void 0!==t?`${i.data.transactionId}-${t}`:i.data.transactionId,n="menu";Object(d.a)("purchase",a,e.amount,n,"tip","")}return"subscription"===e.action&&!1!==e.promotion_id&&Object(d.c)(e.promotion_id,e.ribbon_text),a(N()),alert(i.data.message)}catch(i){const e=s.a.get(i,"response.data.message","Invalid Request");return alert(e)}},C=(e,t)=>async a=>{const n=h+"/api/sticky-io/shop-payment";a(w());try{const i=await o.a.post(n,e),r=i.data;return 0===r.data.success?(a(N()),alert(r.data.message)):(alert(i.data.message),a(Object(m.o)()),t.push("/"))}catch(i){const e=s.a.get(i,"response.data.message","Invalid Request");return alert(e)}},T=(e,t)=>()=>{o.a.post(h+"/api/sticky-io-subscription-products",e).then(e=>{t(e.data.data)}).catch(e=>{const a={isError:!0,message:e.response.data.message};t(a)})},O=(e,t)=>()=>{const a=h+"/api/sticky-io/add-payment-method";o.a.post(a,e).then(e=>{t(e.data)}).catch(e=>{const a=s.a.get(e,"response.data.message","Invalid Request");t(a)})}},75:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a(3),o=a.n(n),i=a(2),r=a.n(i),s=a(22);const l=Object(s.a)();async function c(e,t,a){try{let n=await o.a.post(l+"/api/upload/generate_presigned_url",{file_name:e,content_type:t,media_type:a});const i=r.a.get(n,"data.message","Successful");return 200===n.data.status?n.data.data:{presigned_url:"",message:i}}catch(n){return{presigned_url:"",message:r.a.get(n,"response.data.message",n.message)}}}},83:function(e,t,a){"use strict";a.d(t,"f",(function(){return p})),a.d(t,"i",(function(){return u})),a.d(t,"h",(function(){return g})),a.d(t,"d",(function(){return h})),a.d(t,"b",(function(){return b})),a.d(t,"a",(function(){return f})),a.d(t,"e",(function(){return _})),a.d(t,"c",(function(){return y})),a.d(t,"g",(function(){return v}));var n=a(3),o=a.n(n),i=a(22),r=a(1),s=a(43),l=a(2),c=a.n(l),d=a(4);const m=Object(i.a)(),p=e=>()=>{o.a.get(m+"/api/promotion-setting/get-promotion-settings").then(t=>{e(t.data)}).catch(t=>{alert(t),e()})},u=(e,t)=>a=>{o.a.post(m+"/api/promotion-setting/save-promotion-settings",e).then(()=>{a(Object(s.g)(()=>{alert("update settings successfully."),t()}))}).catch(e=>{const a=c.a.get(e,"response.data.message","Error in update settings.");alert(a),t()})},g=(e,t)=>a=>{o.a.post(m+"/api/promotion-setting/save-promotion",e).then(()=>{if(!0===e.is_repeat_promotion){let t="";if(1===parseInt(e.date_expire))t="1 hour";else if(parseInt(e.date_expire)<25)t=e.date_expire+" hours";else{t=parseInt(e.date_expire)/24+" days"}const n={description:`The promotion will repeat every ${t}. You'll need to manually cancel the promotion when you want it to end.`};a(Object(d.e)(n))}else a(Object(d.e)({description:"Promotion successfully saved."}));t()}).catch(e=>{const n=c.a.get(e,"response.data.message","Error in save promotion.");a(Object(d.e)({description:n})),t()})},h=(e,t)=>()=>{o.a.post(m+"/api/promotion-setting/promotion",e).then(e=>{t(e.data)}).catch(e=>{const a=c.a.get(e,"response.data.message","Error in get promotion.");alert(a),t()})},b=(e,t)=>()=>{o.a.post(m+"/api/promotion-setting/end-promotion",e).then(e=>{t(e.data)}).catch(e=>{const a=c.a.get(e,"response.data.message","Error in end promotion.");alert(a),t()})},f=e=>()=>{o.a.post(m+"/api/promotion-setting/check-promotion").then(t=>{e(t.data)}).catch(t=>{console.log(t),e(!1)})},_=(e,t)=>()=>{o.a.post(m+"/api/promotion-setting/get-promotion-reports",e).then(e=>{t(e.data)}).catch(e=>{const a=c.a.get(e,"response.data.message","Error in getting promotion reports data.");alert(a),t()})},y=()=>e=>{o.a.get(m+"/api/offer/check-offer").then(t=>{e(E(t.data.data))}).catch(e=>{console.log(e)})},E=e=>({type:r.Ic,payload:e}),v=()=>({type:r.Tb})},84:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(29),r=a(8),s=a(104),l=a(83),c=a(2),d=a.n(c),m=a(6),p=a(116);var u=a(32);const g="320px",h="767px",b="1024px",f="1440px",_=m.a.div`
    font-size: ${e=>e.promoFontSize[3]};
    font-family: ${e=>e.promoFontFamily};
    color: ${e=>e.ribbonColor};
    padding-bottom: ${e=>e.ribbonBottomPadding}px;

    @media (min-width: ${g}) and (max-width: ${h}) {
        font-size: ${e=>e.promoFontSize[0]};
    }

    @media (min-width: ${h}) and (max-width: ${b}) {
        font-size: ${e=>e.promoFontSize[1]};
    }

    @media (min-width: ${b}) and (max-width: ${f}) {
        font-size: ${e=>e.promoFontSize[2]};
    }
`,y=m.a.div`
    font-size: ${e=>e.promoFontSize[3]};
    font-family: ${e=>e.promoFontFamily};
    color: ${e=>e.ribbonColor};

    @media (min-width: ${g}) and (max-width: ${h}) {
        font-size: ${e=>e.promoFontSize[0]};
    }

    @media (min-width: ${h}) and (max-width: ${b}) {
        font-size: ${e=>e.promoFontSize[1]};
    }

    @media (min-width: ${b}) and (max-width: ${f}) {
        font-size: ${e=>e.promoFontSize[2]};
    }
`;t.a=Object(r.b)(e=>({auth:e.auth,promotion:e.promotion,utility:e.utility}),{getAllPromotionOffers:l.c,resetPromotion:l.g,closePromotionBanner:u.a})(Object(i.g)((function(e){const{enable_promotion:t,content_color:a,content_font_color:i,promotion_settings:r}=e.auth.appSettings,[l,c]=Object(n.useState)(!1),{isAdmin:m,ccbillSubscriptionStatus:u,isSubscribedEver:g}=e.auth.user,{isAuthenticated:h}=e.auth,{subscriptionPromotion:b,lockedContentPromotion:f,isSetPromotion:E}=e.promotion;Object(n.useEffect)(()=>{if(t)if(!1===E&&e.getAllPromotionOffers(),!0===m||"2"===u||"1"===u)c(f);else if(!0===h)("ALL_USERS"===b.applicable_to||"NEW_USERS"===b.applicable_to&&!0!==g||"OLD_USERS"===b.applicable_to&&!0===g)&&c(b);else{["ALL_USERS","NEW_USERS"].includes(b.applicable_to)&&c(b)}},[e.promotion,h]);const v=d.a.get(r,"ribbon_background_color",i),w=d.a.get(r,"ribbon_padding_top","0"),x=d.a.get(r,"ribbon_padding_bottom","0"),k=d.a.get(r,"ribbon_padding_between","0"),N=d.a.get(r,"promo_text_color",a);let S=d.a.get(r,"promo_text_font_size","25px|25px|30px|30px");const C=d.a.get(r,"promo_text_font","inherit"),T=d.a.get(r,"time_remaining_text_color",a);let O=d.a.get(r,"time_remaining_text_font_size","20px|20px|25px|25px");const P=d.a.get(r,"time_remaining_text_font","inherit"),I=d.a.get(r,"ribbon_animation","none"),A=d.a.get(r,"animation_delay",0),M=d.a.get(r,"animation_duration",1e3);return S=S.split("|"),O=O.split("|"),4!==S.length&&(O=["25px","25px","30px","30px"]),4!==O.length&&(O=["20px","20px","25px","25px"]),o.a.createElement(o.a.Fragment,null,!0===t&&!1!==l&&e.utility.isPromotionBannerOpen&&o.a.createElement(p.Animated,{animationIn:I,animationInDelay:A,animationInDuration:M,isVisible:!0},o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"float-right"},o.a.createElement("button",{className:"close mr-2 mt-1",style:{color:"#ffffff",opacity:"1.0",fontSize:"1.3em"},onClick:()=>e.closePromotionBanner(!1)})),o.a.createElement("div",{className:"text-center",style:{width:"100 %",background:v,paddingTop:w+"px",paddingBottom:x+"px"}},o.a.createElement(_,{ribbonColor:N,ribbonBottomPadding:k,promoFontSize:S,promoFontFamily:C}," ",l.ribbon_text),o.a.createElement(y,{ribbonColor:T,promoFontSize:O,promoFontFamily:P},"Ends in \xa0",o.a.createElement(s.a,{date:l.date_expire,onComplete:()=>{c(!1),e.resetPromotion()},renderer:e=>{let{days:t,hours:a,minutes:n,seconds:i,completed:r}=e;if(r)return o.a.createElement(o.a.Fragment,null);return function(e,t,a,n){let o,i,r;return 1===e&&(o=e+" Day, "),e>1&&(o=e+" Days, "),t<2&&(i=t+" Hour, "),t>1&&(i=t+" Hours, "),a<2&&(r=a+" Minute"),a>1&&(r=a+" Minutes"),e>0?o+i+r:0===e&&t>0?i+r:0===e&&0===t&&a>0?r+", "+n+" Seconds":0===e&&0===t&&0===a&&n>0?1===n?n+" Second":n+" Seconds":void 0}(t,a,n,i)}}))))))})))},87:function(e,t,a){"use strict";var n=a(305),o=a(34),i=a(22),r=a(1),s=a(2),l=a.n(s);const c=Object(i.a)(),d=Object(n.a)(c);d.on("connect",()=>{const e=o.a.getState(),t=l.a.get(e,"auth.user._id",!1),a=l.a.get(e,"auth.user.isAdmin",!1),n=l.a.get(e,"auth.user.role","");t&&!1===a&&"proxy_user"!==n&&d.emit("USER_ONLINE",t),console.log("socket: client connected "+d.id),o.a.dispatch({type:r.Pc})}),d.on("disconnect",()=>{o.a.dispatch({type:r.Qc}),console.log("client disconnected")}),t.a=d},89:function(e,t,a){"use strict";a.d(t,"d",(function(){return l})),a.d(t,"f",(function(){return d})),a.d(t,"j",(function(){return m})),a.d(t,"a",(function(){return u})),a.d(t,"b",(function(){return b})),a.d(t,"i",(function(){return _})),a.d(t,"c",(function(){return y})),a.d(t,"h",(function(){return w})),a.d(t,"e",(function(){return x})),a.d(t,"g",(function(){return k}));var n=a(3),o=a.n(n),i=a(22),r=a(1);const s=Object(i.a)(),l=()=>e=>{o.a.get(s+"/user-help/popup-with-notification-count").then(t=>{e(c(t.data.data))}).catch(e=>{console.log(e)})},c=e=>({type:r.s,payload:e}),d=e=>t=>{o.a.get(s+"/user-help/read/"+e).then(e=>{t(p(e.data.data))})},m=()=>({type:r.ke,payload:{}}),p=e=>({type:r.Vc,payload:e}),u=(e,t)=>a=>{o.a.post(s+"/user-help/list",e).then(n=>{const o={currentPage:n.data.data.currentPage,totalPages:n.data.data.totalPages};return 1===e.pageNum?(a(g(n.data.data)),a(N(n.data.data.helpTagsData)),o.helpTags=n.data.data.helpTagsData):a(h(n.data.data)),t(o)}).catch(()=>t({currentPage:1,totalPages:0}))},g=e=>({type:r.q,payload:e}),h=e=>({type:r.ae,payload:e}),b=(e,t)=>a=>{o.a.get(s+"/user-help/details/"+e).then(e=>(a(f(e.data.data)),t())).catch(e=>(console.log(e),t()))},f=e=>({type:r.p,payload:e}),_=()=>({type:r.le}),y=(e,t)=>a=>{o.a.post(s+"/user-help/list/notifications",e).then(n=>{1===e.pageNum?a(E(n.data.data)):a(v(n.data.data));const o={currentPage:n.data.data.currentPage,totalPages:n.data.data.totalPages,isChangeUnreadToAll:n.data.data.isChangeUnreadToAll};return!0===n.data.data.isChangeUnreadToAll&&a(w("all")),t(o)}).catch(e=>(console.log(e),t({currentPage:1,totalPages:0})))},E=e=>({type:r.r,payload:e}),v=e=>({type:r.be,payload:e}),w=e=>({type:r.Yc,payload:e}),x=()=>({type:r.Xb}),k=e=>({type:r.Xc,payload:e}),N=e=>({type:r.Wc,payload:e})},94:function(e,t,a){"use strict";var n=a(3),o=a.n(n),i=a(2),r=a.n(i);t.a=e=>{if(e){const t=localStorage.getItem("ProxyUserToken");o.a.defaults.headers.common.Authorization=e,r.a.isEmpty(t)||(o.a.defaults.headers.common.Authorization=t)}else delete o.a.defaults.headers.common.Authorization}},96:function(e,t,a){"use strict";a.d(t,"e",(function(){return p})),a.d(t,"d",(function(){return u})),a.d(t,"c",(function(){return g})),a.d(t,"b",(function(){return h})),a.d(t,"l",(function(){return b})),a.d(t,"h",(function(){return f})),a.d(t,"q",(function(){return _})),a.d(t,"k",(function(){return y})),a.d(t,"m",(function(){return E})),a.d(t,"n",(function(){return v})),a.d(t,"o",(function(){return w})),a.d(t,"j",(function(){return x})),a.d(t,"s",(function(){return k})),a.d(t,"g",(function(){return N})),a.d(t,"u",(function(){return S})),a.d(t,"t",(function(){return C})),a.d(t,"a",(function(){return T})),a.d(t,"v",(function(){return O})),a.d(t,"w",(function(){return P})),a.d(t,"i",(function(){return I})),a.d(t,"f",(function(){return A})),a.d(t,"p",(function(){return M})),a.d(t,"r",(function(){return j}));var n=a(3),o=a.n(n),i=a(2),r=a.n(i),s=a(1),l=a(22),c=a(19),d=a(4);const m=Object(l.a)(),p=e=>t=>{t(F()),o.a.post(m+`/api/users/get_users_list?page_num=${e.pageNum}&view=${e.view}`,e).then(e=>{t({type:s.bc,payload:e.data.data})})},u=(e,t)=>a=>{o.a.post(m+"/api/users/get_users_list_from_email?page_num="+e.pageNum,e).then(e=>(a({type:s.cc,payload:e.data}),t()))},g=()=>e=>{o.a.get(m+"/api/admin/get_transactions_details").then(t=>{e({type:s.Sc,payload:t.data})})},h=(e,t,a)=>n=>{o.a.get(m+"/api/admin/delete_user?user_id="+e).then(e=>{const o={description:r.a.get(e.data,"message","User Deleted")};n(Object(d.e)(o)),n(Object(d.a)()),n(u(t,()=>a()))}).catch(e=>{const t={description:r.a.get(e,"response.data.message","There was a problem in delete user.")};return n(Object(d.e)(t)),a()}).catch(e=>{const t={description:r.a.get(e,"response.data.message","There was a problem in delete user.")};n(Object(d.e)(t))})},b=(e,t)=>a=>{o.a.post(m+"/api/admin/update_is_photo_id_accepted_status",e).then(()=>{a(Object(d.e)({description:"Override limit access revoked."})),a(Object(d.a)()),a(u(e,()=>t()))})},f=(e,t)=>a=>{o.a.post(m+"/api/admin/update_hide_from_chat_status",e).then(()=>{a(Object(d.e)({description:"User hidden from chat list."})),a(Object(d.a)()),a(u(e,()=>t()))})},_=(e,t)=>a=>{o.a.post(m+"/api/admin/update_hide_from_chat_status",e).then(()=>{a(Object(d.e)({description:"User shown in chat list."})),a(Object(d.a)()),a(u(e,()=>t()))})},y=e=>t=>{t(M());const a="modern"===e.format?"refresh_blur_modern_picture":"refresh_blur_picture";o.a.post(`${m}/api/upload/${a}`,e).then(e=>{!0===e.data.updated&&(alert("Blur image refreshed."),window.location.reload()),!1===e.data.updated&&alert("There was a problem in generating blur image.")}).catch(e=>{console.log(e),t(j())})},E=e=>async t=>{t(M());const a="modern"===e.format&&"message"!==e.type?"rotate_modern_image":"rotate_image",n=`${m}/api/upload/${a}`;try{const a=await o.a.post(n,e);return alert(a.data.message),t(j()),"message"===e.type?t({type:s.Mc,payload:a.data.data.response}):t({type:s.Nc,payload:a.data.data.response}),a.data}catch(i){let e=r.a.get(i.response,"data.message","There was an error while rotating the image.");alert(e),t(j())}},v=(e,t)=>a=>{o.a.post(m+"/api/users/save_email_preferences",e).then(e=>{if(!0===e.data.updated)return a(Object(c.k)(()=>{t()})),alert("Email Preferences Updated")}).catch(e=>{const t={description:r.a.get(e.response,"data.message","There was an error while updating email preferences.")};a(Object(d.e)(t))})},w=(e,t)=>a=>{a(M()),o.a.post(m+"/api/admin/send_video_process_request",e).then(()=>(a(j()),alert("Video processing request sent."),t())).catch(e=>{console.log(e),a(j()),t()})},x=(e,t)=>a=>{o.a.post(m+"/api/admin/mute_message_for_user",e).then(()=>{a(Object(d.e)({description:"Mass messages muted for user."})),a(Object(d.a)());!1===r.a.get(e,"muteFromChat",!1)&&a(u(e,()=>t()))})},k=(e,t)=>a=>{o.a.post(m+"/api/admin/mute_message_for_user",e).then(()=>{a(Object(d.e)({description:"Mass messages unmuted for user."})),a(Object(d.a)());!1===r.a.get(e,"muteFromChat",!1)&&a(u(e,()=>t()))})},N=(e,t)=>a=>{o.a.post(m+"/api/admin/add_is_photo_id_accepted_status",e).then(()=>{a(Object(d.e)({description:"Override limit access granted."})),a(Object(d.a)()),a(u(e,()=>t()))})},S=(e,t)=>a=>{o.a.post(m+"/api/admin/update_user_chat_email_notifications",e).then(n=>{const o={description:n.data.message};a(Object(d.e)(o)),a(Object(d.a)()),a(u(e,()=>t()))})},C=(e,t)=>a=>{o.a.post(m+"/api/admin/update_user_block_status",e).then(n=>{const o={description:n.data.message};a(Object(d.e)(o)),a(Object(d.a)()),a(u(e,()=>t()))}).catch(e=>{const n=r.a.get(e,"response.data.message","There was a problem in Block user.");a(Object(d.a)());const o={description:n};return a(Object(d.e)(o)),t()})},T=(e,t)=>a=>{o.a.post(m+"/api/v2/admin/block-user",e).then(n=>{const o={description:n.data.message};a(Object(d.e)(o)),a(Object(d.a)()),a(u(e,()=>t()))}).catch(e=>{const n={description:r.a.get(e,"response.data.message","There was a problem in Block user.")};return a(Object(d.e)(n)),a(Object(d.a)()),t()})},O=(e,t)=>a=>{o.a.post(m+"/api/admin/update_user_migration_subscription",e).then(n=>{const o={description:n.data.message};a(Object(d.e)(o)),a(Object(d.a)()),a(u(e,()=>t()))}).catch(e=>{const n={description:r.a.get(e,"response.data.message","There was a problem in update user detail.")};return a(Object(d.e)(n)),a(Object(d.a)()),t()})},P=(e,t)=>()=>{o.a.post(m+"/api/users/add_nick_name",e).then(e=>t(e.data.message))},I=e=>async t=>{const a=m+"/api/admin/mark-chat-as-unread";try{const n=await o.a.post(a,e),i={description:n.data.message};return t(Object(d.e)(i)),1===n.data.success&&t(L(n.data.data)),n.data}catch(n){const e={description:r.a.get(n.response,"data.message","Invalid request.")};return t(Object(d.e)(e)),n.response.data}},A=(e,t)=>async a=>{const n=m+"/api/admin/give_complimentary_subscription";let i="";try{i=(await o.a.post(n,e)).data.message,a(u(t,()=>{}))}catch(s){i=r.a.get(s,"response.data.message","Error in give a complimentary subscription to the user")}finally{a(Object(d.a)()),a(Object(d.e)({description:i}))}},M=()=>({type:s.X}),j=()=>({type:s.fd}),F=()=>({type:s.Ac}),L=e=>({type:s.Xd,payload:e})},98:function(e,t,a){"use strict";var n=a(6),o=a(8),i=a(29);const r="320px",s="767px",l=n.a.div`
    margin: auto;
    position: relative;
    display: block;
    width: fit-content;
    padding: 0px;
    height: auto;

    &::after {
        content: '${e=>!0===e.auth.appSettings.enable_watermark?e.userId:""}';
        font-size: ${e=>e.auth.appSettings.watermark_size}rem;
        color: ${e=>e.auth.appSettings.watermark_color};
        position: absolute;
        margin-bottom: 0.5rem;
        
        ${e=>"top-left"===e.auth.appSettings.watermark_position?"top: 0; left: 2px;":"top-right"===e.auth.appSettings.watermark_position?"top: 0; right: 2px;":"bottom-left"===e.auth.appSettings.watermark_position?"bottom: 0; left: 2px;":"bottom-right"===e.auth.appSettings.watermark_position?"bottom: 0; right: 2px;":"top: 0;"}
    }

    @media (min-width: ${r}) and (max-width: ${s}) {
        &::after{
            font-size: 1em;
        }
    }
`;t.a=Object(i.g)(Object(o.b)(e=>({auth:e.auth}))(l))}},[[338,9,10]]]);
//# sourceMappingURL=main.a2da5631.chunk.js.map