"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[136,523,712],{99127:function(n,e,t){t.r(e),t.d(e,{default:function(){return T}});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),m=t(76294),_=t(91651),h=t(91196),v=t(57510),p=t(83375),b=t(33798),N=t(61681),A=t(80181),g=t(72983),I=t(41669),T=(0,r.memo)(function(){var n,e,t,T,w,y,E,D=(0,r.useState)(!1),x=D[0],C=D[1],k=(0,r.useState)(!1),O=k[0],S=k[1],F=(0,s.d4)(function(n){return n.chatBeforeOfflineNotificationOptions})||{},L=F.memberDisplayName,j=void 0===L?"":L,U=F.memberUserName,B=void 0===U?"":U,M=F.modelGender,P=void 0===M?"":M,H=F.modelNextTimeOnline,R=void 0===H?0:H,V=F.modelOfflineNotificationTtl,W=void 0===V?0:V,Y=F.modelProfileImage,q=void 0===Y?"":Y,G=(0,s.d4)(l.Wz),z=G||{},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(!R)return"";var n=new Date(R),e={date:(0,b.i)(n,"d F"),time:n.format("H:i")};return x?__("Will be back %date% at %time%",e):__("See you again %date% at %time%!",e)},[R,x]),dn=(0,r.useMemo)(function(){return nn[J]?nn[J]:((null==G?void 0:G.isSubscribedForEmail)||(null==G?void 0:G.isSubscribedForPush))&&(null==G?void 0:G.username)===J},[nn,J,G]),fn=(0,r.useCallback)(function(n){var e,t=(0,A.json_parse)(m.DT.getItem(f.Z.DISABLED_OFFLINE_NOTIFICATION_LIST))||{},o=t[B]||{},r=Date.now();return(0,v.loopv)(o,function(n,e){r>n+3e5&&delete o[e]}),n&&J&&(o[J]=Date.now()),m.DT.setItem(f.Z.DISABLED_OFFLINE_NOTIFICATION_LIST,JSON.stringify((0,i.Cl)((0,i.Cl)({},t),((e={})[B]=o,e)))),$(o[J]),o},[B,J]),mn=(0,r.useCallback)(function(){fn(!0),u.A.dispatch(a.g)()},[fn]),_n=(0,r.useCallback)(function(){mn(),m.DT.removeItem(f.Z.DISABLED_OFFLINE_NOTIFICATION_LIST)},[mn]),hn=(0,r.useMemo)(function(){if(W<5)return!1;var n=1e3*W,e=fn();return clearTimeout(cn.current),cn.current=setTimeout(_n,n),!e[B]},[B,W,fn,_n]);(0,r.useEffect)(function(){O||Promise.all([(0,_.i)("extra/model_offline_notification.css",document.head,null,(0,N.j)()),g.isRTLCulture?(0,_.i)("extra/arabic_model_offline_notification.css",document.head):Promise.resolve()]).then(function(){S(!0)})},[O]),(0,r.useEffect)(function(){var n=function(){if(clearTimeout(cn.current),cn.current=null,hn){C(dn);var n=1e3*W;clearTimeout(cn.current),cn.current=setTimeout(mn,n)}};return I(document).on("miniProfile:update",n),function(){I(document).off("miniProfile:update",n)}},[dn,hn,W]);var vn=null===(T=null===(t=null===(e=u.A.getState())||void 0===e?void 0:e.notificationModelOnline[J])||void 0===t?void 0:t.subscribe)||void 0===T?void 0:T.isSubscribedForPush,pn=null===(E=null===(y=null===(w=u.A.getState())||void 0===w?void 0:w.notificationModelOnline[J])||void 0===y?void 0:y.subscribe)||void 0===E?void 0:E.isSubscribedForEmail,bn=(0,r.useMemo)(function(){return!vn&&!pn},[hn]);return hn&&O&&!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(P)]=Boolean(P),n.mon_avatar_wrp=!0,n)),children:(0,o.jsx)("img",{className:"mon_avatar",alt:"",src:q})}),(0,o.jsxs)("div",{className:"mon_info",children:[(0,o.jsx)("p",{className:"mon_title",children:"".concat(j,"!")}),(0,o.jsx)("p",{className:"mon_desc",children:__("Don't miss me next time!")})]})]}),Boolean(R)&&(0,o.jsx)("div",{className:(0,p.n)({mon_alert:!0,__mon_clear:x}),children:(0,o.jsx)("div",{className:"mon_a_inner",children:ln})}),bn&&(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:mn,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 y},tV:function(){return T},vx:function(){return N},qJ:function(){return _}});var i=t(74848),o=t(96540),r=t(15215),s=t(46517),a=t(2597),u=t(40522),c=t(69666),l=t(99948),d=t(40172),f=t(49635),m=t(96575),_=(0,o.memo)(function(n){var e,t,o,_,h,v,p,b,N=n.className,A=n.children,g=n.icon,I=(e=n,t=e.data,o=e.popupOptions,_=e.onClick,h=t.modelDisplayName,v=t.modelUsername,p=(0,s.d4)(f.EV),b=(0,s.d4)(d.UQ),{actions:{handleClickOnTip:function(){var n=!0;if(_&&(n=_()),n)if(b)if(p===a.A.FREE)(0,c.h)();else{var e={displayName:h,holder:"profile",popupOptions:(0,r.Cl)({disableClickOutside:!0,styleVariant:u.W.MODERN},o),username:v};(0,m.R)("@@ChatEvent/openTip",e)}else(0,l.a)()}}}).actions.handleClickOnTip;return(0,i.jsx)(y,{className:N,icon:g,variant:"success",onClick:I,children:A})}),h=t(20043),v=t(26580),p=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},N=(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,m=(0,r.Tt)(n,["className","classNameHint","children","hint","icon","label","size","variant"]);return(0,i.jsxs)(h.N_,(0,r.Cl)({className:(0,p.n)((0,r.Cl)((e={},e[String(o)]=Boolean(o),e),b({hint:u,size:d,variant:f})))},m,{children:[c&&(0,i.jsx)(v.A,{group:(0,p.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})]}))}),A=t(80554),g=t(81714),I=t(18736),T=(0,o.memo)(function(n){var e,t,o,a,u,_,h=n.className,v=n.classNameHint,p=n.children,b=n.hint,N=n.icon,T=n.variant,w=(e=n,t=e.imTarget,o=e.popupOptions,a=(0,s.d4)(d.UQ),u=(0,s.d4)(f.EV),_=(0,s.d4)(f.bG),{actions:{handleOpenIMWindow:function(){if(a)if(_===g.A.ROLE_MODERATOR)(0,m.R)("@@ChatEvent/privateConversation",{username:t.username}),document.dispatchEvent(new CustomEvent(A.R.IM_WINDOW_OPEN,{detail:t.username}));else if(u&&u!==I.A.FREE||_===g.A.ROLE_MODERATOR){var n=(0,r.Cl)((0,r.Cl)({},t),{popupOptions:o});(0,m.R)("@@ChatEvent/openPopupNewMessage",n)}else(0,c.h)();else(0,l.a)()}}}).actions.handleOpenIMWindow;return(0,i.jsx)(y,{className:h,classNameHint:v,hint:b,icon:N,variant:T,onClick:w,children:p})}),w=t(53336),y=(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,m=n.label,_=n.size,h=n.variant,N=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,p.n)((0,r.Cl)((0,r.Cl)({},b({hint:d,size:_,variant:h,isLoading:N})),(t={},t[String(a)]=Boolean(a),t))),type:"button"},A,{children:[N&&(0,i.jsx)("span",{className:"bc_spinner_wrp __show mrn_spinner_wrp",children:(0,i.jsx)(v.A,{group:(0,p.n)({bc_spinner:!0,__sp_primary:"success"===h||"danger"===h}),icon:"#svg_ui_circle_loader",url:w.Jp})}),f&&(0,i.jsx)(v.A,{group:(0,p.n)((o={mrn_icon:!0},o[f.group]=f.group,o)),icon:f.type,url:f.url}),(m||l)&&(0,i.jsx)("span",{className:(0,p.n)((s={"mrn_inner bc_inline_flex bc_flex_full_center":!0,__hide:N},s[String(u)]=Boolean(u),s)),children:m||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}}),!/^(21|22|9)$/.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,m=n.onError,_=void 0===m?o.noop:m,h=n.onIsNeedBuyToken,v=n.onNotIsAuthenticated,p=n.onSend,b=void 0===p?o.noop:p,N=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:N({sendFollowLocal:(0,i.useCallback)(function(){b(),(t||A)().then(function(n){!n||n.errors?_():c(n)})},[_,b,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,m=n.onError,_=void 0===m?o.noop:m,h=n.onIsNeedBuyToken,v=n.onNotIsAuthenticated,p=n.onSend,b=void 0===p?o.noop:p,N=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:N({sendUnFollowLocal:(0,i.useCallback)(function(){b(),(e||A)().then(function(n){!n||n.errors?_():u(n)})},[_,b,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}))}},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(38),t.e(503)]).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={}))}}]);