1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2471],{88413:function(a){a.exports=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}},74902:function(a){function b(){return a.exports=b=Object.assign||function(d){for(var a=1;a<arguments.length;a++){var b=arguments[a];for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(d[c]=b[c])}return d},b.apply(this,arguments)}a.exports=b},68342:function(a,c,b){var d=b(63034);a.exports=function(b,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(a&&a.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),a&&d(b,a)}},88213:function(a){a.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}},63034:function(a){function b(c,d){return a.exports=b=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},b(c,d)}a.exports=b},99893:function(g,d,a){"use strict";a.d(d,{Z:function(){return t}});var h=a(79221),i=a(13659),j=a(41108),e=a(32466),f=a(32852),k=a.n(f),l=a(67571),m=a(86675),n=a(21151),o=function(b,e){var d={};for(var a in b)Object.prototype.hasOwnProperty.call(b,a)&&0>e.indexOf(a)&&(d[a]=b[a]);if(null!=b&&"function"==typeof Object.getOwnPropertySymbols)for(var c=0,a=Object.getOwnPropertySymbols(b);c<a.length;c++)0>e.indexOf(a[c])&&Object.prototype.propertyIsEnumerable.call(b,a[c])&&(d[a[c]]=b[a[c]]);return d},c=a(72176),p=a(98258),q=function(b,e){var d={};for(var a in b)Object.prototype.hasOwnProperty.call(b,a)&&0>e.indexOf(a)&&(d[a]=b[a]);if(null!=b&&"function"==typeof Object.getOwnPropertySymbols)for(var c=0,a=Object.getOwnPropertySymbols(b);c<a.length;c++)0>e.indexOf(a[c])&&Object.prototype.propertyIsEnumerable.call(b,a[c])&&(d[a[c]]=b[a[c]]);return d},r=new RegExp("^(".concat(c.Y.join("|"),")(-inverse)?$")),s=new RegExp("^(".concat(c.E.join("|"),")$")),b=e.forwardRef(function(a,B){var c,C=a.prefixCls,D=a.className,E=a.style,d=a.children,F=a.icon,f=a.color,P=a.onClose,o=a.closeIcon,t=a.closable,g=q(a,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),u=e.useContext(n.E_),G=u.getPrefixCls,H=u.direction,I=e.useState(!0),v=(0,j.Z)(I,2),J=v[0],Q=v[1];e.useEffect(function(){"visible"in g&&Q(g.visible)},[g.visible]);var w=function(){return!!f&&(r.test(f)||s.test(f))},K=(0,i.Z)({backgroundColor:f&&!w()?f:void 0},E),x=w(),b=G("tag",C),L=k()(b,(c={},(0,h.Z)(c,"".concat(b,"-").concat(f),x),(0,h.Z)(c,"".concat(b,"-has-color"),f&&!x),(0,h.Z)(c,"".concat(b,"-hidden"),!J),(0,h.Z)(c,"".concat(b,"-rtl"),"rtl"===H),c),D),y=function(a){a.stopPropagation(),null==P||P(a),!a.defaultPrevented&&("visible"in g||Q(!1))},M="onClick"in g||d&&"a"===d.type,N=(0,l.Z)(g,["visible"]),z=F||null,O=z?e.createElement(e.Fragment,null,z,e.createElement("span",null,d)):d,A=e.createElement("span",(0,i.Z)({},N,{ref:B,className:L,style:K}),O,void 0!==t&&t?o?e.createElement("span",{className:"".concat(b,"-close-icon"),onClick:y},o):e.createElement(m.Z,{className:"".concat(b,"-close-icon"),onClick:y}):null);return M?e.createElement(p.Z,null,A):A});b.displayName="Tag",b.CheckableTag=function(a){var b,d=a.prefixCls,f=a.className,g=a.checked,q=a.onChange,r=a.onClick,j=o(a,["prefixCls","className","checked","onChange","onClick"]),l=e.useContext(n.E_),m=l.getPrefixCls,c=m("tag",d),p=k()(c,(b={},(0,h.Z)(b,"".concat(c,"-checkable"),!0),(0,h.Z)(b,"".concat(c,"-checkable-checked"),g),b),f);return e.createElement("span",(0,i.Z)({},j,{className:p,onClick:function(a){null==q||q(!g),null==r||r(a)}}))};var t=b},48297:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/live/[creatorUsername]",function(){return c(7270)}])},12276:function(c,b,a){"use strict";a.d(b,{X:function(){return f}});var d=a(93288);a(32466);var e=a(10930),f=function(a){var b=a.amount,c=a.currency,f=(0,e.h)(c,b).amountTranslated;return(0,d.jsx)(d.Fragment,{children:f})}},59664:function(c,b,a){"use strict";a.d(b,{L:function(){return i}});var d=a(93288),e=a(32466),f=a(49666),g=function(a){var b,e=a.media,c=a.source,f=a.videoNodeRef;return(0,d.jsx)("div",{"data-vjs-player":!0,children:(0,d.jsx)("video",{ref:f,className:"video-js",children:e?null===(b=e.resolutions)|| void 0===b?void 0:b.map(function(a){return"failed"!==a.status&&(0,d.jsx)("source",{src:a.url},a.id)}):c?(0,d.jsx)("source",{src:c.url,type:c.type}):(0,d.jsx)(d.Fragment,{})})})},h={media:void 0,source:{url:"",type:""},options:{loop:!0,controls:!0,fluid:!0,autoplay:!0,controlBar:{children:["playToggle","progressControl","volumePanel","qualitySelector","fullscreenToggle"]}},className:""},i=function(){var a=arguments.length>0&& void 0!==arguments[0]?arguments[0]:h,j=a.options,c=a.media,i=a.source,k=a.className,l=a.additionalClass,b=(0,e.useRef)();return(0,e.useEffect)(function(){if(b.current){var a=(0,f.Z)(b.current,j);return a.addClass(k),l&&a.addClass(l),function(){a&&a.dispose()}}},[b]),(0,d.jsx)(g,{media:c,source:i,videoNodeRef:b})}},47231:function(c,b,a){"use strict";a.d(b,{G:function(){return f}});var d=a(27118),e=a(14199),f=function(){var a=(0,e.x)();return(null==a?void 0:a.payout_currency)||d.F.USD}},10930:function(c,b,a){"use strict";a.d(b,{h:function(){return f}});var d=a(28435),e=a(74349),f=function(b,c,f){var g=(0,d.Q)(),a=(0,e.f)();return{amountTranslated:new Intl.NumberFormat(a[0].toLowerCase()+a[1].toLowerCase()+a.slice(2),f||{currency:b||g,style:"currency"}).format(c||0)}}},28435:function(c,b,a){"use strict";a.d(b,{Q:function(){return e}});var d=a(14199),e=function(){var a=(0,d.x)();return(null==a?void 0:a.currency)||"USD"}},74349:function(c,b,a){"use strict";a.d(b,{f:function(){return e}});var d=a(1989),e=function(){var a;return a=(0,d.v9)(function(a){return a.authenticationReducer}).appLanguage,/en|EN/.test(a)?"EN-GB":/fr|FR/.test(a)?"FR-FR":/de|DE/.test(a)?"DE-DE":/es|ES/.test(a)?"ES-ES":/it|IT/.test(a)?"IT-IT":/ru|RU/.test(a)?"RU-RU":/pt|PT/.test(a)?"PT-PT":"EN-GB"}},7270:function(v,b,a){"use strict";a.r(b),a.d(b,{"default":function(){return a$}});var w=a(93288),x=a(32466),y=a(44926),z=a(26087),A=a(66020),B=a(1989),C=a(21395),c=a(63177),D=a.n(c),E=a(78718),F=a(31966),G=a(14199),H=a(47859);function I(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var J=function(){var c=(0,B.I0)(),a=(0,B.v9)(function(a){return a.liveReducer}).currentUserStreamData,b=(0,G.x)();(0,x.useEffect)(function(){if(b&&(null==a?void 0:a.id)){var c={cluster:"eu",authEndpoint:H.env.NEXT_PUBLIC_API_ENDPOINT+"/broadcasting/auth",auth:{headers:{Authorization:"Bearer ".concat(b.access_token)}}},e=new(D())(H.env.NEXT_PUBLIC_PUSHER_API_KEY||"",c),f="private-live_stream.".concat(a.id),g=e.subscribe(f);return g.bind_global(function(a,b){d({event:a,data:b})}),function(){g.unbind_global(function(){return e.unsubscribe(f)})}}},[null==b?void 0:b.id,null==a?void 0:a.id]);var d=function(g){var h=g.event,d=g.data;if(h===F.$.NEW_LIVE_STREAM_MESSAGE){var e,f,i=(null==d?void 0:null===(e=d.live_stream)|| void 0===e?void 0:null===(f=e.message)|| void 0===f?void 0:f.from.id)!==(null==b?void 0:b.id),a=function(d){for(var a=1;a<arguments.length;a++){var c=null!=arguments[a]?arguments[a]:{},b=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(b=b.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),b.forEach(function(a){I(d,a,c[a])})}return d}({},d.live_stream.message);a.user=a.from,delete a.from,i&&c((0,E.w)(a))}};return null},K=a(32235),L=a(74109),M=a(88082),d=a(36088),N=a.n(d),e=function(a){var b=a.like
1s;return(0,w.jsxs)("div",{className:N()["live-stats-view-container__item"],children:[b," ",(0,w.jsx)("img",{className:N()["live-stats-view-container__item__icon"],src:"/images/icons/live/likes.svg"})]})},f=function(a){var b=a.views,e=a.toggleViewersDrawerVisibility,c=a.isViewersDrawerVisible,f=a.preview,d=(0,M.Z)().t;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:N()["live-stats-view-container__item"],onClick:function(){return!f&&e()},children:[b," ",(0,w.jsx)("img",{className:N()["live-stats-view-container__item__icon"],src:"/images/icons/live/views.svg"})]}),(0,w.jsx)(L.Z,{className:N()["viewers-list-container__drawer"],title:d("common:living.stats.views.title"),placement:"bottom",closable:!0,onClose:function(){return e()},visible:c})]})},g=function(a){var b=a.comments;return(0,w.jsxs)("div",{className:N()["live-stats-view-container__item"],children:[b," ",(0,w.jsx)("img",{className:N()["live-stats-view-container__item__icon"],src:"/images/icons/live/comment.svg"})]})},O={Likes:e,Views:f,Comments:g,All:function(a){var b=a.likes,c=a.views,d=a.comments,h=a.toggleViewersDrawerVisibility,i=a.isViewersDrawerVisible,j=a.preview;return(0,w.jsxs)("div",{className:N()["live-stats-view-container"],children:[(0,w.jsx)(e,{likes:b}),(0,w.jsx)(f,{preview:j,views:c,toggleViewersDrawerVisibility:h,isViewersDrawerVisible:i}),(0,w.jsx)(g,{comments:d})]})}},h=a(10391);function P(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function Q(d){for(var a=1;a<arguments.length;a++){var c=null!=arguments[a]?arguments[a]:{},b=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(b=b.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),b.forEach(function(a){P(d,a,c[a])})}return d}var R=(0,h.P1)([function(a){return a.livingChatState.messages},function(a){return a.livingChatState.users},function(a){return a.livingChatState.userProfiles},function(a){return a.livingChatState.medias}],function(a,b,c,d){return Object.values(a).map(function(a){var e,f=b[a.user],g=c[f.profile],h=null===(e=a.medias)|| void 0===e?void 0:e.map(function(a){return d[a]});return Q({},a,{medias:h,user:Q({},f,{profile:g})})})}),S=function(a){var g=a.stat,b=a.preview,c=(0,x.useState)(!1),d=c[0],i=c[1],e=function(){i(function(a){return!a})},h=(0,B.v9)(R),f=h.length;switch(g){case"likes":return(0,w.jsx)(O.Likes,{likes:0});case"views":return(0,w.jsx)(O.Views,{views:0,toggleViewersDrawerVisibility:e,isViewersDrawerVisible:d,preview:b||!1});case"comments":return(0,w.jsx)(O.Comments,{comments:f});default:return(0,w.jsx)(O.All,{likes:0,views:0,comments:f,toggleViewersDrawerVisibility:e,isViewersDrawerVisible:d,preview:b||!1})}},i=a(23219),T=a.n(i),U=a(12276),j=a(88565),V=a.n(j),W=a(36340),X=a(10801),Y=a(93487),Z=function(a){var b=a.form,c=a.sendMessage,d=a.handleKeyUp,e=(0,M.Z)().t;return(0,w.jsx)(W.Z,{form:b,onFinish:c,onKeyPress:d,children:(0,w.jsx)(W.Z.Item,{name:"text",noStyle:!0,rules:[{required:!0}],children:(0,w.jsx)(Y.Z,{required:!0,bordered:!1,className:T()["creator-living-footer-container__input"],placeholder:e("common:living.creator.footer.placeholder"),id:"text"})})})};function $(c,a){(null==a||a>c.length)&&(a=c.length);for(var b=0,d=new Array(a);b<a;b++)d[b]=c[b];return d}function _(c,d,e,f,g,h,i){try{var a=c[h](i),b=a.value}catch(j){e(j);return}a.done?d(b):Promise.resolve(b).then(f,g)}var aa=function(){var a,b,c,d,g=(0,B.I0)(),e=(a=W.Z.useForm(),b=1,function(a){if(Array.isArray(a))return a}(a)||function(b,e){var f,g,a=null==b?null:"undefined"!=typeof Symbol&&b[Symbol.iterator]||b["@@iterator"];if(null!=a){var c=[],d=!0,h=!1;try{for(a=a.call(b);!(d=(f=a.next()).done)&&(c.push(f.value),!e||c.length!==e);d=!0);}catch(i){h=!0,g=i}finally{try{d||null==a.return||a.return()}finally{if(h)throw g}}return c}}(a,b)||function(a,c){if(a){if("string"==typeof a)return $(a,c);var b=Object.prototype.toString.call(a).slice(8,-1);if("Object"===b&&a.constructor&&(b=a.constructor.name),"Map"===b||"Set"===b)return Array.from(b);if("Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return $(a,c)}}
1(a,b)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],f=(d=(c=V().mark(function a(b){var c;return V().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c=b.text,e.resetFields(),a.prev=2,a.next=5,g((0,E.F)(c));case 5:a.next=10;break;case 7:a.prev=7,a.t0=a.catch(2),X.ZP.error(a.t0.message);case 10:case"end":return a.stop()}},a,null,[[2,7]])}),function(){var a=this,b=arguments;return new Promise(function(e,f){var g=c.apply(a,b);function d(a){_(g,e,f,d,h,"next",a)}function h(a){_(g,e,f,d,h,"throw",a)}d(void 0)})}),function(a){return d.apply(this,arguments)});return(0,w.jsx)(Z,{form:e,sendMessage:f,handleKeyUp:function(a){13===a.keyCode&&e.submit()}})},ab=a(47231),ac=function(a){var b=a.amount,c=(0,ab.G)();return(0,w.jsxs)("div",{className:T()["creator-living-footer-container"],children:[(0,w.jsx)(aa,{}),(0,w.jsx)("div",{className:T()["creator-living-footer-container__divider"]}),(0,w.jsxs)("div",{className:T()["creator-living-footer-container__infos"],children:[(0,w.jsx)(S,{}),(0,w.jsxs)("div",{className:T()["creator-living-footer-container__infos__tips"],children:[(0,w.jsx)(U.X,{currency:c,amount:b})," ",(0,w.jsx)("img",{className:T()["creator-living-footer-container__infos__tips__icon"],src:"/images/icons/live/tip.svg",alt:""})]})]})]})},ad=function(){return(0,w.jsx)(ac,{amount:0})},ae=a(62844),af=a(88663),k=a(41515),ag=a.n(k),ah=a(21828),ai=a(6319),aj=function(a){var b=a.username,c=a.displayName,d=a.avatarSubtitle;return(0,w.jsx)(ai.Z,{href:"/u/".concat(b),children:(0,w.jsxs)("a",{className:ag()["living-avatar-container"],children:[(0,w.jsx)(ah.m,{minified:!0,userInfos:{username:b,displayName:c},size:"small",customSize:32}),(0,w.jsxs)("div",{className:ag()["living-avatar-container__infos"],children:[(0,w.jsx)("span",{className:ag()["living-avatar-container__infos__username"],children:c}),(0,w.jsx)("span",{className:ag()["living-avatar-container__infos__time"],children:d})]})]})})},ak=a(4474),al=function(){var b,c,d=(0,M.Z)().t,a=(0,B.v9)(function(a){return a.liveReducer}).live.creator,e=(0,G.x)(),f=(null==e?void 0:e.id)===(null==a?void 0:a.id),g=(0,ak.zS)(new Date),h=d("common:living.avatar.living-info")+" "+g,i=d(f?"common:living.avatar.creator-subtitle":"common:living.avatar.user-subtitle"),j=(null==a?void 0:null===(b=a.live_stream)|| void 0===b?void 0:b.is_online)||!1;return(0,w.jsx)(aj,{username:(null==a?void 0:a.username)||"",displayName:(null==a?void 0:null===(c=a.profile)|| void 0===c?void 0:c.display_name)||"",avatarSubtitle:j?h:i})},l=a(9769),am=a.n(l),an=function(b){var d=b.children,h=b.afterStopLive,c=(0,B.v9)(function(a){return a.liveReducer}),e=c.callState,f=c.currentUserStreamData,i=e.callObject,a=f.room_name,g=(null==a?void 0:a.length)<=0||null===a;return g?null:(0,w.jsx)("span",{onClick:function(){if(!g)try{i.stopLiveStreaming(),h&&h()}catch(a){X.ZP.error(a.message)}},children:d})},ao=a(30181),ap=a(20857),aq=a(398),m=a(9460),ar=a.n(m),as=function(a){var b=a.onClose;return(0,w.jsx)("button",{className:ar()["user-living-header-close"],onClick:b,children:(0,w.jsx)("img",{src:"/images/icons/live/cross.svg",alt:"close icon"})})},at=a(51331),au=function(b){var c=b.redirectCloseLink,a=(0,at.D)(),d=a.router,e=a.currentUserLang;return(0,w.jsx)(as,{onClose:function(){null==d||d.push("/".concat(e,"/").concat(c))}})},av=function(b){var f=b.onToggleModalVisibility,c=b.isModalVisible,d=b.afterStopLive,e=b.endLiveBtnIsDisabled,a=(0,M.Z)().t;return(0,w.jsxs)("div",{className:am()["creator-living-header-container"],children:[(0,w.jsxs)("div",{className:am()["creator-living-header-container__content"],children:[(0,w.jsx)(al,{}),(0,w.jsx)(ap.L,{}),(0,w.jsx)(aq.s,{}),e?(0,w.jsx)(au,{redirectCloseLink:"/live/start"}):(0,w.jsxs)(ae.Z,{className:am()["creator-living-header-container__cta"],onClick:function(){return f()},children:[(0,w.jsx)("img",{src:"/images/icons/live/record.svg"}),a("common:living.creator.header.end-live")]}),(0,w.jsx)(af.Z,{visible:c,onCancel:function(){return f()},centered:!0,width:340,title:a("common:living.creator.header.end-live-video"),footer:[(0,w.jsx)(ae.Z,{type:"link",onClick:function(){return f()},children:a("common:living.creator.header.cancel")},"cancel"),(0,w.jsx)(an,{afterStopLive:d,children:(0,w.jsx)(ae.Z,{type:"primary",children:a("common:living.creator.header.end-live")},"submit")},"end-live-btn"),],children:a("common:living.creator.header.modal-content")})]}),(0,w.jsxs)("div",{className:am()["creator-living-header-container__edit-desc"],children:[(0,w.jsx)("label",{htmlFor:"edit-live-desc",className:am()["creator-living-header-container__edit-desc__label"],children:(0,w.jsx)("img",{src:"/images/icons/edit_outline_white.svg"})}),(0,w.jsx)(ao.I,{id:"edit-live-desc",className:am()["creator-living-header-container__edit-desc__input"]})]})]})},aw=function(){var a=(0,x.useState)(!1),d=a[0],g=a[1],e=(0,B.v9)(function(a){return a.liveReducer}).currentUserStreamData,b=(0,at.D)(),h=b.router,i=b.currentUserLang,c=e.room_name,f=(null==c?void 0:c.length)<=0;return(0,w.jsx)(av,{onToggleModalVisibility:function(){g(function(a){return!a})},isModalVisible:d,afterStopLive:function(){g(!1),null==h||h.push("/".concat(i,"/live/start"))},endLiveBtnIsDisabled:f})},n=a(62991),o=a(43804),ax=a.n(o),ay=function(b){var a=b.viewers;return(0,w.jsx)("div",{className:ax()["viewers-list-container"],children:null==a?void 0:a.map(function(a,b){return(0,w.jsxs)("div",{className:ax()["viewers-list-container__item"],children:[(0,w.jsx)(ah.m,{minified:!0,userInfos:{username:a.username,displayName:a.profile.display_name},size:"small",customSize:32}),(0,w.jsx)("span",{className:ax()["viewers-list-container__item__name"],children:a.profile.display_name})]},b)})})},p=a(65947),az=a.n(p),q=a(9230),aA=a.n(q),aB=a(99893),r=a(21163),aC=a.n(r),aD=function(i){var e,f,g,c,d,h,b=i.message,j=(0,M.Z)().t,a=b.user;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:aC()["live-comment-item-container"],children:[(0,w.jsx)(ah.m,{minified:!0,userInfos:{username:(null==a?void 0:a.username)||"",dis
1playName:null==a?void 0:a.profile.display_name},size:"small",customSize:32,isAlink:!0}),(0,w.jsxs)("div",{className:aC()["live-comment-item-container__infos"],children:[(0,w.jsx)(ai.Z,{href:"/u/".concat(null==a?void 0:a.username),children:(0,w.jsx)("a",{className:aC()["live-comment-item-container__infos__username"],children:null==a?void 0:a.profile.display_name})}),(0,w.jsx)("span",{className:(0,K.Z)(aC()["live-comment-item-container__infos__content"],(c={},d=aC()["live-comment-item-container__infos__content--tip"],h=((null==b?void 0:b.amount)||0)>0,d in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h,c)),children:b.text})]})]}),((null===(e=b.transaction_tip)|| void 0===e?void 0:e.amount_tax_included)||0)>0&&(0,w.jsxs)(aB.Z,{color:"#ffa56e",className:aC()["live-comment-item-container__tip"],children:[(0,w.jsx)("img",{className:aC()["live-comment-item-container__tip__icon"],src:"/images/icons/live/tip_white.svg",alt:""}),j("common:living.comment.item.tipped")," ",(0,w.jsx)(U.X,{amount:(null===(f=b.transaction_tip)|| void 0===f?void 0:f.amount_tax_included)||0,currency:null===(g=b.transaction_tip)|| void 0===g?void 0:g.currency})]})]})},aE=function(a){var b=a.messages;return(0,w.jsx)("div",{className:aA()["live-comments-list-container"],children:b.map(function(a){return(0,w.jsx)(aD,{message:a},a.id)})})},aF=function(){var a=(0,B.v9)(R);return(0,w.jsx)(aE,{messages:a})},aG=n.Z.TabPane,aH=function(a){var c=a.viewers,d=a.isCreator,b=(0,M.Z)().t;return(0,w.jsxs)(n.Z,{className:az()["live-infos-container"],children:[(0,w.jsx)(aG,{tab:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{children:b("common:living.infos.comments")}),(0,w.jsx)(S,{stat:"comments"})]}),children:(0,w.jsx)(aF,{})},"comments"),d&&(0,w.jsx)(aG,{tab:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{children:b("common:living.infos.viewers")}),(0,w.jsx)(S,{stat:"views",preview:!0})]}),children:(0,w.jsx)(ay,{viewers:c})},"viewers")]})},aI=function(){return(0,w.jsx)(aH,{isCreator:!0})},s=a(84144),aJ=a.n(s),aK=a(49009),aL=function(b){var a=b.creator,c=(0,M.Z)().t;return(0,w.jsxs)("div",{className:aJ()["user-living-footer-container"],children:[(0,w.jsx)(aa,{}),(0,w.jsx)("button",{className:aJ()["user-living-footer-container__action"],disabled:!0,children:(0,w.jsx)("img",{src:"/images/icons/live/smile.svg"})}),a&&(0,w.jsx)(aK.a,{tippingCta:(0,w.jsxs)("button",{className:aJ()["user-living-footer-container__action-tip"],children:[(0,w.jsx)("img",{src:"/images/icons/live/tip_white.svg",className:aJ()["user-living-footer-container__action-tip__icon"]}),c("common:living.viewer.footer.tip")]}),user:a,isLiveStreamTip:!0})]})},aM=function(){var a=(0,B.v9)(function(a){return a.liveReducer}).live.creator;return(0,w.jsx)(aL,{creator:a})},t=a(25820),aN=a.n(t),aO=function(){return(0,w.jsxs)("div",{className:aN()["user-living-header-container"],children:[(0,w.jsx)(al,{}),(0,w.jsxs)("div",{className:aN()["user-living-header-container__actions"],children:[(0,w.jsx)("button",{className:aN()["user-living-header-container__actions__item"],children:(0,w.jsx)("img",{className:aN()["live-stats-view-container__item__icon"],src:"/images/icons/live/like_outline.svg"})}),(0,w.jsx)(S,{stat:"likes"}),(0,w.jsx)(au,{redirectCloseLink:"/"})]})]})},aP=function(){return(0,w.jsx)(aO,{})},u=a(80032),aQ=a.n(u),aR=a(59664),aS=function(a){var b=a.liveVideoUrl,c=a.className;return b?(0,w.jsx)(aR.L,{source:{url:b},className:c,options:{loop:!0,controls:!0,fluid:!0,autoplay:!0,controlBar:{children:["playToggle","progressControl","volumePanel","qualitySelector","fullscreenToggle"]}}}):null},aT=function(a){var b=a.className,c=(0,B.v9)(function(a){return a.liveReducer}).currentUserStreamData.hls_playback_url;return(0,w.jsx)(aS,{liveVideoUrl:c,className:b})}
1,aU=a(4464),aV=function(b){var a=b.isCreator;return(0,w.jsxs)("div",{className:(0,K.Z)(aQ()["living-container"],aQ()["living-container--".concat(a?"is-creator":"is-user")]),children:[(0,w.jsxs)("div",{className:aQ()["living-container__preview"],children:[a?(0,w.jsx)(aU.f,{isLivePreview:!0}):(0,w.jsx)(aT,{className:aQ()["video-js"]}),(0,w.jsx)(aF,{})]}),(0,w.jsx)("div",{className:aQ()["living-container__content"],children:a?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(aw,{}),(0,w.jsx)(aI,{}),(0,w.jsx)(ad,{})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(aP,{}),(0,w.jsx)(aI,{}),(0,w.jsx)(aM,{})]})})]})},aW=a(47407),aX=a(81742),aY=function(){var b,l=(0,B.I0)(),e=(0,C.useRouter)(),a=(0,B.v9)(function(a){return a.liveReducer}),f=a.live,g=a.currentUserStreamData,h=a.callState,i=a.liveState,c=f.creator,j=h.callObject,d=(0,G.x)(),k=(null==c?void 0:c.id)===(null==d?void 0:d.id),m=null===(b=e.query.creatorUsername)|| void 0===b?void 0:b.toString();(0,x.useEffect)(function(){m&&l((0,aW.ql)(m))},[]),(0,x.useEffect)(function(){n()},[g,j,i]);var n=function(){g.room_token&&g.room_name&&!g.is_online&&j&&i===aX.P.STATE_JOINED&&l((0,aW.lB)())};return J(),(0,w.jsx)(aV,{isCreator:k})},aZ=a(26039),a$=function(){var a=(0,aZ.R)("living.seo.title");return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(y.default,{children:(0,w.jsx)("title",{children:a})}),(0,w.jsx)(z.e,{children:(0,w.jsx)(A.z,{children:(0,w.jsx)(aY,{})})})]})}},4474:function(c,b,a){"use strict";a.d(b,{e0:function(){return i},j8:function(){return j},pb:function(){return l},zS:function(){return k}});var d=a(47315),e=a(67342),f=a(32035),g=a(16212),h=a(88082),i=function(a){switch(a){case"en":return f.Z;case"fr":return g.Z;default:return f.Z}};function j(a){var b=(0,h.Z)().lang;return(0,d.Z)(a,{locale:i(b),addSuffix:!0})}function k(b){var a,c=(0,h.Z)().lang;return(a=(0,e.Z)(b,{locale:i(c)}).split(" "))[0]+a[1].substring(0,1)}var l=function(a){switch(a){case"EN-GB":return f.Z;case"FR-FR":return g.Z;default:return f.Z}}},21163:function(a){a.exports={"live-comment-item-container":"live-comment-item_live-comment-item-container__bET1l","live-comment-item-container__infos":"live-comment-item_live-comment-item-container__infos__UFCcP","live-comment-item-container__infos__username":"live-comment-item_live-comment-item-container__infos__username__YeF_E","live-comment-item-container__infos__content":"live-comment-item_live-comment-item-container__infos__content__yLaAp","live-comment-item-container__infos__content--tip":"live-comment-item_live-comment-item-container__infos__content--tip__RdHrD","live-comment-item-container__tip":"live-comment-item_live-comment-item-container__tip__ba8nq","live-comment-item-container__tip__icon":"live-comment-item_live-comment-item-container__tip__icon__MEBrv"}},9230:function(a){a.exports={"live-comments-list-container":"live-comments-list_live-comments-list-container__z6Dg6","live-comments-list-coming-soon":"live-comments-list_live-comments-list-coming-soon__dQ0Qf"}},9460:function(a){a.exports={"user-living-header-close":"close-btn_user-living-header-close__GelDK"}},23219:function(a){a.exports={"creator-living-footer-container":"creator-living-footer_creator-living-footer-container__DRqK9","creator-living-footer-container__input":"creator-living-footer_creator-living-footer-container__input__POauh","creator-living-footer-container__divider":"creator-living-footer_creator-living-footer-container__divider__ffbhk","creator-living-footer-container__infos":"creator-living-footer_creator-living-footer-container__infos__XAA3t","creator-living-footer-container__infos__tips":"creator-living-footer_creator-living-footer-container__infos__tips__ufuzp","creator-living-footer-container__infos__tips__icon":"creator-living-footer_creator-living-footer-container__infos__tips__icon__g_f9y"}},9769:function(a){a.exports={"creator-living-header-container":"creator-living-header_creator-living-header-container__n9PIb","creator-living-header-container__cta":"creator-living-header_creator-living-header-container__cta__kY0Ni","creator-living-header-container__content":"creator-living-header_creator-living-header-container__content__hWiJb","creator-living-header-container__edit-desc":"creator-living-header_creator-living-header-container__edit-desc__A_Vsl","creator-living-header-container__edit-desc__label":"creator-living-header_creator-living-header-container__edit-desc__label__rg87t","creator-living-header-container__edit-desc__input":"creator-living-header_creator-living-header-container__edit-desc__input__yVGu_"}},65947:function(a){a.exports={"live-infos-container":"live-infos_live-infos-container__UT4bY"}},36088:function(a){a.exports={"live-stats-view-container":"live-stats_live-stats-view-container__TVkrp","live-stats-view-container__item":"live-stats_live-stats-view-container__item__ZXZ2_","live-stats-view-container__item__icon":"live-stats_live-stats-view-container__item__icon__OKIBS"}},41515:function(a){a.exports={"living-avatar-container":"living-avatar_living-avatar-container__zvWb6","living-avatar-container__infos":"living-avatar_living-avatar-container__infos__KcoFj","living-avatar-container__infos__username":"living-avatar_living-avatar-container__infos__username__cG7bB","living-avatar-container__infos__time":"living-avatar_living-avatar-container__infos__time__Tgq5G"}},84144:function(a){a.exports={"user-living-footer-container":"user-living-footer_user-living-footer-container__hxrEu","user-living-footer-container__input":"user-living-footer_user-living-footer-container__input__xn0hh","user-living-footer-container__action":"user-living-footer_user-living-footer-container__action__lGQNX","user-living-footer-container__action-tip":"user-living-footer_user-living-footer-container__action-tip__s6bHe","user-living-footer-container__action-tip__icon":"user-living-footer_user-living-footer-container__action-tip__icon__Sp_Ab"}},25820:function(a){a.exports={"user-living-header-container":"user-living-header_user-living-header-container__yV6CE","user-living-header-container__actions":"user-living-header_user-living-header-container__actions__VhSfN","user-living-header-container__actions__item":"user-living-header_user-living-header-container__actions__item__Dn4YR"}},43804:function(a){a.exports={"viewers-list-container__item":"viewers-list_viewers-list-container__item__Pi98A","viewers-list-container__item__name":"viewers-list_viewers-list-container__item__name__EuJ69","viewers-list-container__drawer":"viewers-list_viewers-list-container__drawer__vOU2L","viewers-list-container":"viewers-list_viewers-list-container__sZqtk"}},25893:function(){}},function(a){a.O(0,[2544,5186,7187,2074,2238,6378,2966,3294,4702,8420,2368,4261,2991,2491,4160,704,9009,9774,2888,179],function(){return a(a.s=48297)}),_N_E=a.O()}])
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.