"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[398,795,985],{99127:function(n,e,t){t.r(e),t.d(e,{default:function(){return E}});var i=t(15215),o=t(74848),r=t(96540),s=t(46517),a=t(37851),u=t(99525),c=t(26580),l=t(96773),d=t(75015),f=t(8119),_=t(76294),m=t(91651),h=t(91196),v=t(57510),p=t(83375),N=t(33798),b=t(61681),A=t(80181),I=t(72983),T=t(41669),E=(0,r.memo)(function(){var n,e,t,E,g,O,S,C=(0,r.useState)(!1),w=C[0],y=C[1],D=(0,r.useState)(!1),L=D[0],x=D[1],k=(0,s.d4)(function(n){return n.chatBeforeOfflineNotificationOptions})||{},F=k.memberDisplayName,P=void 0===F?"":F,R=k.memberUserName,U=void 0===R?"":R,j=k.modelGender,B=void 0===j?"":j,H=k.modelNextTimeOnline,M=void 0===H?0:H,V=k.modelOfflineNotificationTtl,W=void 0===V?0:V,G=k.modelProfileImage,Y=void 0===G?"":G,q=(0,s.d4)(l.Wz),z=q||{},J=z.username,K=z.isSubscribedForEmail,X=z.isSubscribedForPush,Z=(0,r.useState)(null),Q=Z[0],$=Z[1],nn=(0,s.d4)(function(n){return n.onlineNotificationSettings}),en=(0,h.t)({modelUsername:J,isSubscribedForEmail:K,isSubscribedForPush:X}),tn=en.actions,on=tn.handleGetNotificationWithModernWrapper,rn=tn.handleCloseNotificationPopup,sn=en.states,an=sn.contentPopoverNotificationData,un=sn.isAnyNotificationSubscriptionActive,cn=(0,r.useRef)(null),ln=(0,r.useMemo)(function(){if(!M)return"";var n=new Date(M),e={date:(0,N.i)(n,"d F"),time:n.format("H:i")};return w?__("Will be back %date% at %time%",e):__("See you again %date% at %time%!",e)},[M,w]),dn=(0,r.useMemo)(function(){return nn[J]?nn[J]:((null==q?void 0:q.isSubscribedForEmail)||(null==q?void 0:q.isSubscribedForPush))&&(null==q?void 0:q.username)===J},[nn,J,q]),fn=(0,r.useCallback)(function(n){var e,t=(0,A.json_parse)(_.DT.getItem(f.Z.DISABLED_OFFLINE_NOTIFICATION_LIST))||{},o=t[U]||{},r=Date.now();return(0,v.loopv)(o,function(n,e){r>n+3e5&&delete o[e]}),n&&J&&(o[J]=Date.now()),_.DT.setItem(f.Z.DISABLED_OFFLINE_NOTIFICATION_LIST,JSON.stringify((0,i.Cl)((0,i.Cl)({},t),((e={})[U]=o,e)))),$(o[J]),o},[U,J]),_n=(0,r.useCallback)(function(){fn(!0),u.A.dispatch(a.g)()},[fn]),mn=(0,r.useCallback)(function(){_n(),_.DT.removeItem(f.Z.DISABLED_OFFLINE_NOTIFICATION_LIST)},[_n]),hn=(0,r.useMemo)(function(){if(W<5)return!1;var n=1e3*W,e=fn();return clearTimeout(cn.current),cn.current=setTimeout(mn,n),!e[U]},[U,W,fn,mn]);(0,r.useEffect)(function(){L||Promise.all([(0,m.i)("extra/model_offline_notification.css",document.head,null,(0,b.j)()),I.isRTLCulture?(0,m.i)("extra/arabic_model_offline_notification.css",document.head):Promise.resolve()]).then(function(){x(!0)})},[L]),(0,r.useEffect)(function(){var n=function(){if(clearTimeout(cn.current),cn.current=null,hn){y(dn);var n=1e3*W;clearTimeout(cn.current),cn.current=setTimeout(_n,n)}};return T(document).on("miniProfile:update",n),function(){T(document).off("miniProfile:update",n)}},[dn,hn,W]);var vn=null===(E=null===(t=null===(e=u.A.getState())||void 0===e?void 0:e.notificationModelOnline[J])||void 0===t?void 0:t.subscribe)||void 0===E?void 0:E.isSubscribedForPush,pn=null===(S=null===(O=null===(g=u.A.getState())||void 0===g?void 0:g.notificationModelOnline[J])||void 0===O?void 0:O.subscribe)||void 0===S?void 0:S.isSubscribedForEmail,Nn=(0,r.useMemo)(function(){return!vn&&!pn},[hn]);return hn&&L&&!Q?(0,o.jsxs)("div",{className:"model_offline_notification",children:[(0,o.jsxs)("div",{className:"mon_content bc_flex",children:[(0,o.jsx)("div",{className:(0,p.n)((n={},n["__".concat(B)]=Boolean(B),n.mon_avatar_wrp=!0,n)),children:(0,o.jsx)("img",{className:"mon_avatar",alt:"",src:Y})}),(0,o.jsxs)("div",{className:"mon_info",children:[(0,o.jsx)("p",{className:"mon_title",children:"".concat(P,"!")}),(0,o.jsx)("p",{className:"mon_desc",children:__("Don't miss me next time!")})]})]}),Boolean(M)&&(0,o.jsx)("div",{className:(0,p.n)({mon_alert:!0,__mon_clear:w}),children:(0,o.jsx)("div",{className:"mon_a_inner",children:ln})}),Nn&&(0,o.jsx)(d.y,{className:"popover_online_notification",content:function(n){var e=n.setPopoverClose;return(0,o.jsx)(h.o,{data:an,onCloseClick:e})},trigger:(0,o.jsxs)("button",{className:(0,p.n)({mon_btn:!0,__notify_off:un,__notify_on:!un}),children:[(0,o.jsxs)("span",{className:"mon_btn_inner bc_flex bc_flex_full_center",children:[(0,o.jsx)(c.A,{group:"mon_btn_icon",icon:un?"#svg_mon_notify_off":"#svg_mon_notify_on",url:"sprite/bc/model_offline_notification.svg"}),(0,o.jsx)("span",{className:"mon_btn_text",children:un?__("Turn off notifications"):__("Notify when online")})]}),(0,o.jsxs)("span",{className:"mon_btn_inner bc_flex bc_flex_full_center __shadow",children:[(0,o.jsx)("span",{className:"mon_btn_icon"}),(0,o.jsx)("span",{className:"mon_btn_text",children:un?__("Notify when online"):__("Turn off notifications")})]})]}),onBeforeOpen:on,onClose:rn}),(0,o.jsx)("div",{className:"mon_close",onClick:_n,children:(0,o.jsx)(c.A,{group:"mon_close_icon",icon:"#svg_mon_close",url:"sprite/bc/model_offline_notification.svg"})})]}):null})},81408:function(n,e,t){t.d(e,{$n:function(){return S},tV:function(){return g},vx:function(){return A},qJ:function(){return h}});var i=t(74848),o=t(96540),r=t(15215),s=t(46517),a=t(40172),u=t(49635),c=t(96575),l=t(2597),d=t(40522),f=t(71854),_=t(69666),m=t(99948),h=(0,o.memo)(function(n){var e,t,o,h,v,p,N,b,A,I,T=n.className,E=n.children,g=n.icon,O=(e=n,t=e.data,o=e.holder,h=void 0===o?f.f.PROFILE:o,v=e.popupOptions,p=e.onClick,N=t.modelDisplayName,b=t.modelUsername,A=(0,s.d4)(u.EV),I=(0,s.d4)(a.UQ),{actions:{handleClickOnTip:function(){var n=!0;if(p&&(n=p()),n)if(I)if(A===l.A.FREE)(0,_.h)();else{var e={displayName:N,holder:h,popupOptions:(0,r.Cl)({disableClickOutside:!0,styleVariant:d.W.MODERN},v),username:b};(0,c.R)("@@ChatEvent/openTip",e)}else(0,m.a)()}}}).actions.handleClickOnTip;return(0,i.jsx)(S,{className:T,icon:g,variant:"success",onClick:O,children:E})}),v=t(20043),p=t(26580),N=t(83375),b=function(n){var e,t=n.hint,i=n.size,o=n.variant,r=n.isLoading;return(e={bc_mrn_btn:!0})["__mrn_".concat(o," __mrn_def bc_inline_flex bc_flex_full_center")]=Boolean(o),e["__mrns_".concat(i)]=Boolean(i),e.__hint=t,e.__mrn_loading=r,e},A=(0,o.memo)(function(n){var e,t,o=n.className,s=n.classNameHint,a=n.children,u=n.hint,c=n.icon,l=n.label,d=n.size,f=n.variant,_=(0,r.Tt)(n,["className","classNameHint","children","hint","icon","label","size","variant"]);return(0,i.jsxs)(v.N_,(0,r.Cl)({className:(0,N.n)((0,r.Cl)((e={},e[String(o)]=Boolean(o),e),b({hint:u,size:d,variant:f})))},_,{children:[c&&(0,i.jsx)(p.A,{group:(0,N.n)((t={mrn_b_icon:!0},t[c.group]=c.group,t)),icon:c.type,url:c.url}),(l||a)&&(0,i.jsx)("span",{className:"mrn_inner bc_inline_flex bc_flex_full_center",children:l||a}),u&&(0,i.jsx)("span",{className:s,children:u})]}))}),I=t(80554),T=t(81714),E=t(18736),g=(0,o.memo)(function(n){var e,t,o,l,d,f,h=n.className,v=n.classNameHint,p=n.children,N=n.hint,b=n.icon,A=n.variant,g=(e=n,t=e.imTarget,o=e.popupOptions,l=(0,s.d4)(a.UQ),d=(0,s.d4)(u.EV),f=(0,s.d4)(u.bG),{actions:{handleOpenIMWindow:function(){if(l)if(f===T.A.ROLE_MODERATOR)(0,c.R)("@@ChatEvent/privateConversation",{username:t.username}),document.dispatchEvent(new CustomEvent(I.R.IM_WINDOW_OPEN,{detail:t.username}));else if(d&&d!==E.A.FREE||f===T.A.ROLE_MODERATOR){var n=(0,r.Cl)((0,r.Cl)({},t),{popupOptions:o});(0,c.R)("@@ChatEvent/openPopupNewMessage",n)}else(0,_.h)();else(0,m.a)()}}}).actions.handleOpenIMWindow;return(0,i.jsx)(S,{className:h,classNameHint:v,hint:N,icon:b,variant:A,onClick:g,children:p})}),O=t(53336),S=(0,o.memo)((0,o.forwardRef)(function(n,e){var t,o,s,a=n.className,u=n.classNameChildren,c=n.classNameHint,l=n.children,d=n.hint,f=n.icon,_=n.label,m=n.size,h=n.variant,v=n.isLoading,A=(0,r.Tt)(n,["className","classNameChildren","classNameHint","children","hint","icon","label","size","variant","isLoading"]);return(0,i.jsxs)("button",(0,r.Cl)({ref:e,className:(0,N.n)((0,r.Cl)((0,r.Cl)({},b({hint:d,size:m,variant:h,isLoading:v})),(t={},t[String(a)]=Boolean(a),t))),type:"button"},A,{children:[v&&(0,i.jsx)("span",{className:"bc_spinner_wrp __show mrn_spinner_wrp",children:(0,i.jsx)(p.A,{group:(0,N.n)({bc_spinner:!0,__sp_primary:"success"===h||"danger"===h}),icon:"#svg_ui_circle_loader",url:O.Jp})}),f&&(0,i.jsx)(p.A,{group:(0,N.n)((o={mrn_icon:!0},o[f.group]=f.group,o)),icon:f.type,url:f.url}),(_||l)&&(0,i.jsx)("span",{className:(0,N.n)((s={"mrn_inner bc_inline_flex bc_flex_full_center":!0,__hide:v},s[String(u)]=Boolean(u),s)),children:_||l}),d&&(0,i.jsx)("span",{className:c,children:d})]}))}))},20043:function(n,e,t){t.d(e,{N_:function(){return d},DL:function(){return u},KO:function(){return i}});var i,o=t(74848),r=t(96540),s=t(26580),a=t(83375),u=(0,r.memo)(function(n){var e=n.children,t=n.icon,i=n.isLoading;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:(0,a.jc)("l_inner bc_inline_flex bc_flex_full_center",!!t&&i&&"__hide_cnt"),children:e}),!!t&&i&&(0,o.jsx)("span",{className:(0,a.jc)("l_icon_loading_wrp",t.classNameIconWrapper),children:(0,o.jsx)(s.A,{className:t.className,group:t.group,icon:t.icon,url:t.url},t.key)})]})});!function(n){n.NATIVE="0",n.ROUTER="1",n.NAV_ROUTER="2"}(i||(i={}));var c=t(15215),l=t(84976),d=function(n){var e=n.children,t=n.linkType,r=(0,c.Tt)(n,["children","linkType"]);if(t===i.NATIVE){n.linkType;var s=n.to,a=(0,c.Tt)(n,["linkType","to"]);return(0,o.jsx)("a",(0,c.Cl)({href:s},a,{children:e}))}return t===i.NAV_ROUTER?(0,o.jsx)(l.k2,(0,c.Cl)({},r,{children:e})):(0,o.jsx)(l.N_,(0,c.Cl)({},r,{children:e}))}},96773:function(n,e,t){t.d(e,{PE:function(){return o},Wz:function(){return a},n8:function(){return r},pJ:function(){return s}});var i=t(40793);function o(n){var e;return null===(e=(0,i.c)(n))||void 0===e?void 0:e.actions}function r(n){var e;return null===(e=o(n))||void 0===e?void 0:e.followButton}function s(n){var e;return null===(e=o(n))||void 0===e?void 0:e.pinModelButton}function a(n){var e;return null===(e=o(n))||void 0===e?void 0:e.subscribeOnlineNotificationButton}},40793:function(n,e,t){if(t.d(e,{c:function(){return o},r:function(){return r}}),!/^(27[24]|10)$/.test(t.j))var i=t(22078);var o=function(n){return n.miniProfile},r=function(n){return(0,i.j)(o(n))}},19769:function(n,e,t){t.d(e,{a:function(){return u}});var i=t(96540),o=t(73437),r=t(63861),s=t(63065),a=t(85340),u=function(n){var e=n.followLinkUrl,t=n.send,u=n.successCallback,c=void 0===u?o.noop:u,l=n.username,d=n.isAuthenticated,f=n.isNeedBuyToken,_=n.onError,m=void 0===_?o.noop:_,h=n.onIsNeedBuyToken,v=n.onNotIsAuthenticated,p=n.onSend,N=void 0===p?o.noop:p,b=function(n){var e=n.isAuthenticated,t=n.isNeedBuyToken,r=(0,i.useCallback)(function(n){var i=n.sendFollowLocal,r=void 0===i?o.noop:i,s=n.onIsNeedBuyToken,a=void 0===s?o.noop:s,u=n.onNotIsAuthenticated,c=void 0===u?o.noop:u;return function(n){n.preventDefault(),e?t?a():r():c()}},[e,t]);return{handleFollowBuilder:r}}({isAuthenticated:d,isNeedBuyToken:f}).handleFollowBuilder,A=function(n){var e=n.followLinkUrl,t=n.username,o=(0,a.h)().sendApiRequest;return{sendFollow:(0,i.useCallback)(function(){var n=e||(0,r.ip)("@api_follower_follow"),i={username:(0,s.o)(t)};return o(n,{body:JSON.stringify(i),headers:{"Content-Type":"application/json"}})},[e,t,o])}}({followLinkUrl:e,username:l}).sendFollow;return{handleDefaultFollow:b({sendFollowLocal:(0,i.useCallback)(function(){N(),(t||A)().then(function(n){!n||n.errors?m():c(n)})},[m,N,t,A,c]),onIsNeedBuyToken:h||o.noop,onNotIsAuthenticated:v||o.noop})}}},27560:function(n,e,t){t.d(e,{N:function(){return u}});var i=t(96540),o=t(73437),r=t(63861),s=t(63065),a=t(85340),u=function(n){var e=n.send,t=n.successCallback,u=void 0===t?o.noop:t,c=n.unfollowLinkUrl,l=n.username,d=n.isAuthenticated,f=n.isNeedBuyToken,_=n.onError,m=void 0===_?o.noop:_,h=n.onIsNeedBuyToken,v=n.onNotIsAuthenticated,p=n.onSend,N=void 0===p?o.noop:p,b=function(n){var e=n.isAuthenticated,t=n.isNeedBuyToken,r=(0,i.useCallback)(function(n){var i=n.sendUnFollowLocal,r=void 0===i?o.noop:i,s=n.onIsNeedBuyToken,a=void 0===s?o.noop:s,u=n.onNotIsAuthenticated,c=void 0===u?o.noop:u;return function(n){n.preventDefault(),e?t?a():r():c()}},[e,t]);return{handleUnFollowBuilder:r}}({isAuthenticated:d,isNeedBuyToken:f}).handleUnFollowBuilder,A=function(n){var e=n.unfollowLinkUrl,t=n.username,o=(0,a.h)().sendApiRequest;return{sendUnFollow:(0,i.useCallback)(function(){var n=e||(0,r.ip)("@api_follower_unfollow"),i=(0,s.o)(t);return o(n,{body:JSON.stringify({username:i}),headers:{"Content-Type":"application/json"}})},[o,e,t])}}({unfollowLinkUrl:c,username:l}).sendUnFollow;return{handleDefaultUnFollow:b({sendUnFollowLocal:(0,i.useCallback)(function(){N(),(e||A)().then(function(n){!n||n.errors?m():u(n)})},[m,N,e,A,u]),onIsNeedBuyToken:h||o.noop,onNotIsAuthenticated:v||o.noop})}}},17448:function(n,e,t){t.d(e,{EA:function(){return o},KE:function(){return s},tX:function(){return a},aL:function(){return u.a},NS:function(){return c.N}});var i=t(22078),o=function(n){return!(0,i.j)(n)||!((!(null==n?void 0:n.isBannedProfile2Logged)||(null==n?void 0:n.isAlreadyFollow))&&((null==n?void 0:n.isUnfollowButtonVisible)||(null==n?void 0:n.isFollowButtonVisible)||(null==n?void 0:n.isRequestedButtonVisible))&&!(null==n?void 0:n.isBannedLogged2Profile))},r=t(15215),s=function(n,e){var t=e.isFollowingDisabled,i=e.isFollow,o=(null==e?void 0:e.isFollowRequested)||!1,s=void 0===e.canFollow||e.canFollow,a=!0===e.isAvailable||!0===(null==n?void 0:n.isAvailable);return(0,r.Cl)((0,r.Cl)({},n),{isAlreadyFollow:Boolean(i&&!o),isAvailable:a,isFollowButtonVisible:a&&!t&&!i&&!o&&s,isFollowRequested:o,isRequestedButtonVisible:o,isUnfollowButtonVisible:Boolean(i&&!o)})},a=function(n,e){return(0,r.Cl)((0,r.Cl)({},n),e)},u=t(19769),c=t(27560)},69666:function(n,e,t){t.d(e,{h:function(){return r}});var i=t(15215),o=t(42338),r=function(n){(0,o.q)((0,i.Cl)((0,i.Cl)({},n),{isBuyTokens:!0}))}},67257:function(n,e,t){var i;t.d(e,{y:function(){return i}}),function(n){n.ACCOUNT_SETTINGS_ERROR="account_settings_error",n.ACCOUNT_SETTINGS_SUCCESS="account_settings_success",n.BAN="ban",n.FAN_BOOST_RECEIVED="fanBoostReceived",n.FOLLOW="follow",n.GIFT_SENT="gift_sent",n.LOVE_SEND="loveSend",n.LOVE_WAS_SENDED="loveWasSended",n.MESSAGE_SENT="messageSent;",n.NOTIFICATION_DISABLE="disableNotification",n.NOTIFICATION_ENABLE="enableNotification",n.PIN="pin",n.PIN_TOO_MANY="pin_too_many",n.RESTRICTION="restriction",n.TIP_WAS_SENDED="tipWasSended",n.UN_BAN="un_ban",n.UNFOLLOW="unfollow",n.UNPIN="unpin",n.WISH_TIP_SENT="wishTipSent"}(i||(i={}))},99655:function(n,e,t){t.d(e,{c:function(){return o}});var i=t(15215),o=function(n){(0,i.sH)(void 0,void 0,void 0,function(){return(0,i.YH)(this,function(e){switch(e.label){case 0:return[4,Promise.all([t.e(295),t.e(774)]).then(t.bind(t,81490))];case 1:return e.sent().openToastrContentUserSync(n),[2]}})})}},11575:function(n,e,t){t.d(e,{w:function(){return f}});var i=t(15215),o=t(8119),r=t(76294),s=t(80181),a=function(){function n(){}return n.create=function(n){if(!n)throw new Error("[LocalStorageInstance]: storage key not must empty");return{setItem:function(e){return r.DT.setItem(n,JSON.stringify(e)),e},getItem:function(){return(0,s.json_parse)(r.DT.getItem(n))},removeItem:function(){return r.DT.removeItem(n)}}},n}(),u=t(57933),c=t(63861),l=t(1325),d=function(){function n(){}var e;return e=n,n.requestIsSubscribedOnlinePushNotification=function(n,t){return(0,i.sH)(void 0,void 0,void 0,function(){var o,r,s;return(0,i.YH)(e,function(e){switch(e.label){case 0:return o=(0,c.ip)("@is_subscribed_on_online_push_notification?username=".concat(t)),r={method:"POST"},o=(0,l.K)(o,"hash",n),[4,(0,u.AT)(o,r)];case 1:return[2,null==(s=e.sent().data)?void 0:s.is_subscribed]}})})},n}(),f=function(){function n(){this.storage=a.create(o.Z.SUBSCRIBE_ONLINE_MODULE_GUEST)}return Object.defineProperty(n,"instance",{get:function(){return this._instance},enumerable:!1,configurable:!0}),n.prototype.getHash=function(){return this.storage.getItem()},n.prototype.setHash=function(n){this.storage.setItem(n)},n.prototype.removeHash=function(){this.storage.removeItem()},n.prototype.checkCurrentUserSubscribedOnlineNotification=function(n){return(0,i.sH)(this,void 0,void 0,function(){var e;return(0,i.YH)(this,function(t){return(e=this.getHash())?[2,d.requestIsSubscribedOnlinePushNotification(e,n)]:[2,!1]})})},n._instance=new n,n}()},1606:function(n,e,t){t.d(e,{w:function(){return i.w}});var i=t(11575)},67374:function(n,e,t){t.d(e,{I_:function(){return d},qu:function(){return i},bk:function(){return u},xc:function(){return a}});var i={maxDelay:6e5,retries:1/0},o=t(15215),r=t(41669),s=[],a=function(n){r.noticeSocket&&n&&s.indexOf(n)>=0&&(s=s.filter(function(e){return e!==n}),r.noticeSocket.send({data:{data:{model:n},type:2},type:"cms"}))},u=function(n){(0,o.fX)([],s,!0).map(function(n){return a(n)}),function(n){r.noticeSocket&&n&&s.indexOf(n)<0&&(s.push(n),r.noticeSocket.send({data:{data:{model:n},type:1},type:"cms"}))}(n)},c=t(99525),l=t(26859),d=function(){function n(){var e=c.A.getState().isAuthenticated;this.isAuthenticated=e,this.idb=new l.bp(n.dbName)}return n.getInstance=function(){return n.instance||(n.instance=new this),n.instance},n.prototype.isAvailable=function(){return this.idb.isAvailable()},n.prototype.checkAndSaveAllowing=function(n){return(0,o.sH)(this,void 0,void 0,function(){var e,t,i,r,s;return(0,o.YH)(this,function(o){switch(o.label){case 0:return n?this.isAvailable()?(e=this.getUnmuteKey(),[4,this.getData(e)]):[2,!0]:[2,!1];case 1:return t=o.sent()||{},i=t[n],(r=!i||Date.now()>=i)?(s=c.A.getState().config,t[n]=Date.now()+(null==s?void 0:s.notificationsMutePeriod),[4,this.setData(e,t)]):[3,3];case 2:o.sent(),o.label=3;case 3:return[2,r]}})})},n.prototype.clearNotificationMuteData=function(){return(0,o.sH)(this,void 0,void 0,function(){var n;return(0,o.YH)(this,function(e){switch(e.label){case 0:return this.isAvailable()?(n=this.getUnmuteKey(),[4,this.removeData(n)]):[2];case 1:return e.sent(),[2]}})})},n.prototype.getNotificationMuteData=function(){},n.prototype.checkIsAuth=function(){return(0,o.sH)(this,void 0,void 0,function(){var n;return(0,o.YH)(this,function(e){switch(e.label){case 0:return[4,this.getData("isAuth")];case 1:return n=e.sent(),!this.isAuthenticated||n?[3,3]:[4,this.setData("isAuth",!0)];case 2:return e.sent(),[3,5];case 3:return this.isAuthenticated||!n?[3,5]:[4,this.removeData("isAuth")];case 4:e.sent(),e.label=5;case 5:return[2]}})})},n.prototype.getToken=function(){return this.getData("token")},n.prototype.saveToken=function(n){return(0,o.sH)(this,void 0,void 0,function(){return(0,o.YH)(this,function(e){switch(e.label){case 0:return[4,this.setData("token",n)];case 1:return e.sent(),[2]}})})},n.prototype.removeToken=function(){return(0,o.sH)(this,void 0,void 0,function(){return(0,o.YH)(this,function(n){switch(n.label){case 0:return[4,this.removeData("token")];case 1:return n.sent(),[2]}})})},n.prototype.updateConfig=function(){return(0,o.sH)(this,void 0,void 0,function(){var n;return(0,o.YH)(this,function(e){switch(e.label){case 0:return this.isAvailable()?(n=c.A.getState().config,[4,this.setData("mutePeriod",null==n?void 0:n.notificationsMutePeriod)]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},n.prototype.getData=function(n){return(0,o.sH)(this,void 0,void 0,function(){return(0,o.YH)(this,function(e){switch(e.label){case 0:return[4,this.idb.open()];case 1:return e.sent(),[2,this.idb.getItem(n)]}})})},n.prototype.setData=function(n,e){return(0,o.sH)(this,void 0,void 0,function(){return(0,o.YH)(this,function(t){switch(t.label){case 0:return[4,this.idb.open()];case 1:return t.sent(),[4,this.idb.setItem(n,e)];case 2:return t.sent(),[2]}})})},n.prototype.removeData=function(n){return(0,o.sH)(this,void 0,void 0,function(){return(0,o.YH)(this,function(e){switch(e.label){case 0:return[4,this.idb.open()];case 1:return e.sent(),[4,this.idb.removeItem(n)];case 2:return e.sent(),[2]}})})},n.prototype.getUnmuteKey=function(){var e=c.A.getState().user;return"".concat("um_").concat((null==e?void 0:e.username)||n.guestName)},n.dbName="notificationSettings",n.guestName="guest",n}()},35733:function(n,e,t){var i,o=t(15215),r=t(18736),s=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return(0,o.C6)(e,n),e.getIconName=function(n){switch(n){case r.A.FREE:return"ms_free";case r.A.GOLD:return"ms_gold";case r.A.PLATINUM:return"ms_platinum";case r.A.UNLIMITED:return"ms_unlimited";case r.A.SAPPHIRE:return"ms_sapphire";case r.A.TITAN:return"ms_titan";case r.A.DIAMOND:return"ms_diamond";case r.A.EXCLUSIVE:return"ms_exclusive";default:return"ms_free"}},e.membershipTitles=((i={})[r.A.FREE]=__("Free"),i[r.A.DIAMOND]=__("Diamond Membership"),i[r.A.EXCLUSIVE]=__("Exclusive Membership"),i[r.A.GOLD]=__("Gold Membership"),i[r.A.PLATINUM]=__("Platinum Membership"),i[r.A.SAPPHIRE]=__("Sapphire Membership"),i[r.A.TITAN]=__("Titan Membership"),i[r.A.UNLIMITED]=__("Unlimited Membership"),i),e}(r.A);e.A=s},18736:function(n,e,t){var i,o=t(15215),r=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return(0,o.C6)(e,n),e.FREE="free",e.GOLD="gold",e.PLATINUM="platinum",e.UNLIMITED="unlimited",e.DIAMOND="diamond",e.EXCLUSIVE="exclusive",e.TITAN="titan",e.SAPPHIRE="sapphire",e.titles=((i={})[e.FREE]=__("Free"),i[e.GOLD]=__("Gold"),i[e.PLATINUM]=__("Platinum"),i[e.UNLIMITED]=__("Unlimited"),i[e.DIAMOND]=__("Diamond"),i[e.EXCLUSIVE]=__("Exclusive"),i[e.TITAN]=__("Titan"),i[e.SAPPHIRE]=__("Sapphire"),i),e}(t(53767).A);e.A=r},40522:function(n,e,t){var i;t.d(e,{W:function(){return i}}),function(n){n.DEFAULT="default",n.MODERN="modern"}(i||(i={}))},71854:function(n,e,t){var i;t.d(e,{f:function(){return i}}),function(n){n.CHAT_HOLDER="chat_holder",n.CHAT_LEGACY="chat_legacy",n.CHAT_OFFLINE_HOLDER="chat_offline_holder",n.IM="im",n.MINI_PROFILE_HOLDER="mini_profile_holder",n.MINI_PROFILE_LEGACY="mini_profile_legacy",n.POPUP_TAG="popup_tag",n.PROFILE="profile",n.TIP_KING_HOLDER="tip_king_holder"}(i||(i={}))}}]);