1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1270],{91688:function(e,l){l.Z={src:"/_next/static/media/liveicon.fee2050b.png",height:40,width:40,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAdVBMVEX///79/f7///79/f79/P7///79/f7///72+f71+P7///7v5f7v5P6Xsv6TsP7///749/749f7n2P7S2/7P2/7O2/7Q2f7T1f7I1v7P0f7H1f7Rz/7Pzv7Gw/7Fwv68vv7OtP7Os/62uP6huv6euP6oqf6Ym/4gE9aNAAAAD3RSTlMAACkpKcHB7Ozs+fn5+fknfbSgAAAASElEQVR42hXLRRKAMBAEwIlsAotEcHf+/0SKvjeEJmbSAsqGGINVMC479twZsJ+XdfIM7t5zewYGVcV9lS1Bpk0/1okE5N8lPn/1A6LcoKzoAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},36487:function(e,l,n){var t=n(85893),i=n(67294),o=n(22529),r=n(93946),a=n(55819),d=n(55353),s=n(61724),u=n(47538),c=n(5152),v=n.n(c),p=n(45007),h=n(11163),m=n(54490),C=n(91688),g=n(20831);let f=v()(()=>n.e(2441).then(n.bind(n,62441)),{loadableGenerated:{webpack:()=>[62441]},ssr:!1});l.Z=e=>{var l,n,c;let{propsObj:v,filteredTabs:b,selectedVideoCategory:x,isAuthorised:E,setReelData:A}=e,y=(0,p.I0)(),O=(0,h.useRouter)(),[S,j]=(0,i.useState)(null),M=!!S,_=(0,i.useMemo)(()=>{var e,l,n;let t=null==v?void 0:null===(e=v.tabState)||void 0===e?void 0:e.activeTabIndex;return 0===t?null===(l=d.STATIC_VALUES.HOME.TABS[0])||void 0===l?void 0:l.label:"number"==typeof t&&t>-1?null===(n=d.STATIC_VALUES.HOME.TABS[t])||void 0===n?void 0:n.label:null==x?void 0:x.current},[null==v?void 0:null===(l=v.tabState)||void 0===l?void 0:l.activeTabIndex,x]),handleClose=e=>{var l;j(null),e&&(null==v?void 0:null===(l=v.tabState)||void 0===l?void 0:l.activeTab)!==(null==e?void 0:e.index)&&(null==v||v.setTabState({activeTabIndex:null==e?void 0:e.index,activeTab:null==e?void 0:e.index}),x&&(x.current=null==e?void 0:e.label),null==A||A([]),null==v||v.setSelectedCategoryID(""),null==v||v.setParamsObj(e=>({...e,start:d.STATIC_VALUES.COMMON.PAGINATION.START,end:d.STATIC_VALUES.COMMON.PAGINATION.END})))};return(0,t.jsxs)(o.E.ReelHeader,{children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)(r.Z,{className:"iconBtn",onClick:e=>{j(e.currentTarget)},size:"small","aria-label":"more",id:"long-button","aria-controls":M?"long-menu":void 0,"aria-expanded":M?"true":void 0,"aria-haspopup":"true",children:[_,(0,t.jsx)(s.G6,{width:16,height:9,color:(0,u.EC)().WHITE})]}),(0,t.jsxs)(f,{id:"long-menu",MenuListProps:{"aria-labelledby":"long-button"},anchorEl:S,open:M,onClose:()=>handleClose(),slotProps:{paper:{style:{maxHeight:"fit-content",width:"17ch",zIndex:999999,color:null===(n=(0,u.EC)())||void 0===n?void 0:n.WHITE,backgroundColor:null===(c=(0,u.EC)())||void 0===c?void 0:c.INPUT_BACKGROUND_BLACK,borderRadius:"16px"}}},children:[(0,t.jsxs)(a.Z,{children:[(0,t.jsx)("div",{className:"hidden",children:(0,t.jsx)(s.nQ,{})}),d.TITLES.HOME.SELECT_TYPE]}),(0,t.jsx)(m.i,{margin:"0px"}),(null!=b?b:[]).map((e,l)=>{var n,r;return(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)(a.Z,{divider:!0,selected:_===(null==e?void 0:e.label),onClick:()=>handleClose(e),children:(0,t.jsxs)(o.E.IconContainer,{children:[(0,t.jsx)("div",{style:{visibility:_===(null==e?void 0:e.label)?"visible":"hidden"},children:(0,t.jsx)(s.nQ,{})}),null==e?void 0:e.label]})}),l!==(null!==(n=null==b?void 0:b.length)&&void 0!==n?n:0)-1?(0,t.jsx)(m.i,{margin:"0px"}):null]},null!==(r=null==e?void 0:e.label)&&void 0!==r?r:l)})]})]}),(0,t.jsxs)(o.E.IconContainer,{children:[(0,t.jsx)(o.E.StyledIcons,{children:(0,t.jsx)(s.W1,{color:(0,u.EC)().WHITE,height:25,width:25,onClick:()=>y((0,g.Aj)({open:!0}))})}),E?(0,t.jsx)(o.E.StyledLiveIcon,{src:C.Z,alt:"live-icon",onClick:()=>O.push(d.ROUTES.HOME.LIVE_STREAMING)}):null]})]})}},11270:function(e,l,n){n.d(l,{Z:function(){return Home_Reel}});var t=n(85893),i=n(99966),o=n(55353),r=n(33461),a=n(48828),d=n(39711),s=n(67294),u=n(45007),c=n(20831),v=n(93041);let useVideoPlayer=e=>{let{videoUrl:l,trendId:n,currentlyPlayingVideo:t,setCurrentlyPlayingVideo:i,isSearchModalOpen:o,isAnyModalOpen:r}=e,a=(0,u.I0)(),{isMuted:p}=(0,u.v9)(e=>null==e?void 0:e.home),h=(0,s.useRef)(null),m=(0,s.useRef)(null),C=(0,s.useRef)(0),[g,f]=(0,s.useState)(!1),[b,x]=(0,s.use
1State)(!1),[E,A]=(0,s.useState)(0),[y,O]=(0,s.useState)(!0);(0,s.useEffect)(()=>{if(h.current&&l){if(v.ZP.isSupported()){let e=new v.ZP({autoStartLoad:!0});return e.loadSource(l),e.attachMedia(h.current),e.on(v.ZP.Events.MANIFEST_PARSED,()=>{O(!1)}),e.on(v.ZP.Events.ERROR,()=>{O(!1)}),()=>e.destroy()}h.current.canPlayType("application/vnd.apple.mpegurl")&&(h.current.src=l,O(!1))}},[l]),(0,s.useEffect)(()=>{h.current&&(h.current.muted=p)},[p]);let S=(0,s.useCallback)(()=>{if(!h.current)return;let{currentTime:e,duration:l}=h.current;if(!l||Number.isNaN(l))return;let n=e/l*100,t=Date.now(),i=t-C.current;i>=500&&n!==E&&(A(n),C.current=t)},[E]);(0,s.useEffect)(()=>{let e=h.current;if(e)return e.addEventListener("timeupdate",S),()=>e.removeEventListener("timeupdate",S)},[S]),(0,s.useEffect)(()=>{let e=h.current;if(!e)return;let l=t===e,i=r||o;if(l&&!i){e.play().then(()=>{f(!0),x(!1)}).catch(()=>{f(!1)}),n&&!m.current&&(0,d.Cc)({trend_id:n}).then(e=>{(null==e?void 0:e.tavvid)&&(m.current=e.tavvid)});return}e.paused||e.pause(),f(!1)},[t,r,o,n]);let j=(0,s.useCallback)(()=>{let e=h.current;if(e){if(e.paused){null==i||i(e),e.play().then(()=>{f(!0),x(!1)}).catch(()=>{f(!1)});return}e.pause(),f(!1),x(!0),n&&m.current&&(0,d._d)({trend_id:n,tavvid:m.current,watch_time:e.currentTime})}},[n,i]),M=(0,s.useCallback)(()=>{a((0,c.aA)())},[a]),_=(0,s.useCallback)(e=>{let l=Number(e.target.value);A(l),h.current&&h.current.duration&&(h.current.currentTime=l/100*h.current.duration)},[]);return{videoRef:h,tavvidRef:m,isMuted:p,isPlaying:g,setIsPlaying:f,showPauseIcon:b,setShowPauseIcon:x,progress:E,isLoading:y,setIsLoading:O,togglePlayPause:j,toggleMute:M,handleProgressChange:_,getWatchTime:()=>{var e,l;return null!==(l=null===(e=h.current)||void 0===e?void 0:e.currentTime)&&void 0!==l?l:0}}},getAllReelVideos=()=>Array.from(document.querySelectorAll('video[data-reel-video="true"]')),pauseAllReelVideosExcept=e=>{getAllReelVideos().forEach(l=>{l===e||l.paused||l.pause()})},getMostVisibleReelVideo=()=>{let e=getAllReelVideos(),l=null,n=0;return e.forEach(e=>{let t=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,o=Math.max(t.top,0),r=Math.min(t.bottom,i),a=t.height>0?Math.min(1,Math.max(0,r-o)/t.height):0;a>n&&(n=a,l=e)}),{bestVideo:l,bestRatio:n}},useVideoVisibility=e=>{let{reelRef:l,videoRef:n,isSearchModalOpen:t,showComment:i,isLoading:o,setCurrentlyPlayingVideo:r,setCurrentVideo:a,onClickOutside:d}=e;(0,s.useEffect)(()=>{let e=l.current,s=n.current;if(!e||!s)return;let u=new IntersectionObserver(()=>{let e=n.current;if(!e)return;if(i||t||o){e.pause();return}let{bestVideo:l,bestRatio:d}=getMostVisibleReelVideo();l&&(d>=.6&&l===e?(pauseAllReelVideosExcept(e),r(e),a(e)):e.paused||e.pause())},{threshold:[0,.15,.3,.45,.6,.75,.9,1]});u.observe(e),document.addEventListener("mousedown",d);let onScrollOrResize=()=>{let e=n.current;if(!e)return;if(i||t||o){e.pause();return}let{bestVideo:l,bestRatio:d}=getMostVisibleReelVideo();l&&(d>=.6&&l===e?(pauseAllReelVideosExcept(e),r(e),a(e)):e.paused||e.pause())};return window.addEventListener("scroll",onScrollOrResize,{passive:!0}),window.addEventListener("resize",onScrollOrResize),()=>{u.disconnect(),window.removeEventListener("scroll",onScrollOrResize),window.removeEventListener("resize",onScrollOrResize),document.removeEventListener("mousedown",d)}},[l,n,t,i,o,r,a,d])};var p=n(47538),h=n(87078),m=n(55678);let useComments=e=>{var l;let{videoData:n,userDetails:t,videoList:i,index:r,setReelData:a,isVideoDetailsPage:u,handleVideoDetails:c,STATUS_CODES:v}=e,[C,g]=(0,s.useState)([]),[f,b]=(0,s.useState)(null!==(l=null==n?void 0:n.comments)&&void 0!==l?l:0),x=(0,s.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=(0,p.mt)(n,t);h.U.homeAgent.commentsList(s).then(t=>{if((0,d.Bn)(t)&&(0,d.Rl)(t)){var s,v,h;if(g(null!==(h=null==t?void 0:null===(v=t.data)||void 0===v?void 0:null===(s=v.results)||void 0===s?void 0:s.comments)&&void 0!==h?h:[]),e){let e=l?f-1:f+1;u?(null==a||a({videoData:n,title:o.TITLES.COMMON.COMMENT_2,count:e}),null==c||c()):null==a||a((0,p.YD)(i,n,r,o.TITLES.COMMON.COMMENT_2,e)),b(e)}}else m.Am.error(o.TITLES.COMMON.ERROR_MESSAGE)}).catch(e=>{var l;return m.Am.error(null!==(l=null==e?void 0:e.data)&&void 0!==l?l:o.TITLES.COMMON.ERROR_MESSAGE)})},[n,t,i,r,f,u]),E=(0,s.useCallback)(function(e,l,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r={tavccid:e,tavuid:null==t?void 0:t.tavuid},a=(null==l?void 0:l.is_liked)?h.U.homeAgent.unlikeComment(r):h.U.homeAgent.likeComment(r);a.then(e=>{if((null==e?void 0:e.status)===v.SUCCESS){var l;(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.code)!==v.SUCCESS&&m.Am.error(o.TITLES.COMMON.ERROR_MESSAGE)}}).catch(e=>{var l;return m.Am.error(null!==(l=null==e?void 0:e.data)&&void 0!==l?l:o.TITLES.COMMON.ERROR_MESSAGE)}),g((0,p.BI)(C,l,n,o.STATIC_VALUES.HOME.HOME_LIKE,i))},[C,t,v]),A=(0,s.useCallback)((e,l)=>{let i={...(0,p.mt)(n,t),tavccid:null==e?void 0:e.tavccid};h.U.homeAgent.commentsReplies(i).then(n=>{(0,d.Bn)(n)&&(0,d.Rl)(n)?g((0,p.BI)(C,e,l,o.STATIC_VALUES.HOME.HOME_REPL
1IES,null,n)):m.Am.error(o.TITLES.COMMON.ERROR_MESSAGE)}).catch(e=>{var l;return m.Am.error(null!==(l=null==e?void 0:e.data)&&void 0!==l?l:o.TITLES.COMMON.ERROR_MESSAGE)})},[C,n,t]),y=(0,s.useCallback)(e=>{let l={...(0,p.mt)(n,t),tavccid:null==e?void 0:e.tavccid};h.U.homeAgent.deleteComments(l).then(e=>{(0,d.Bn)(e)&&(0,d.Rl)(e)?x(!0,!0):m.Am.error(o.TITLES.COMMON.ERROR_MESSAGE)}).catch(e=>{var l;return m.Am.error(null!==(l=null==e?void 0:e.data)&&void 0!==l?l:o.TITLES.COMMON.ERROR_MESSAGE)})},[n,t,x]);return{allComments:C,commentsCount2:f,fetchCommentsList:x,handleCommentLikePress:E,handleOnRepliesPress:A,handleOnDeletePress:y}};var C=n(96486),g=n.n(C);let useProductCart=e=>{let[l,n]=(0,s.useState)([]),[t,i]=(0,s.useState)(0),[r,a]=(0,s.useState)(0),getItemPrice=e=>(null==e?void 0:e.sales_price)>0?null==e?void 0:e.sales_price:null==e?void 0:e.price,u=(0,s.useCallback)(l=>{e("buynow"),h.U.marketAgent.videoProducts({trend_id:null==l?void 0:l.trend_id}).then(e=>{if((0,d.Bn)(e)&&(0,d.Rl)(e)){var l;n(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.results)}else m.Am.error(o.TITLES.COMMON.ERROR_MESSAGE)}).catch(e=>{var l;return m.Am.error(null!==(l=null==e?void 0:e.data)&&void 0!==l?l:o.TITLES.COMMON.ERROR_MESSAGE)})},[e]),c=(0,s.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=g().cloneDeep(l);o.forEach(l=>{if((null==l?void 0:l.id)===(null==e?void 0:e.id)){let e=(null==l?void 0:l.is_add_cart_qty)||0;l.is_add_cart_qty=t?e+1:1,l.is_add_cart=!0}}),n(o),i(e=>e+1),a(l=>l+getItemPrice(e))},[l]),v=(0,s.useCallback)(e=>{let t=g().cloneDeep(l);t.forEach(l=>{if((null==l?void 0:l.id)===(null==e?void 0:e.id)){let e=(null==l?void 0:l.is_add_cart_qty)-1;l.is_add_cart_qty=e,l.is_add_cart=0!==e}}),n(t),i(e=>e-1),a(l=>l-getItemPrice(e))},[l]);return{products:l,totalItems:t,totalPrice:r,handleFetchProducts:u,handleAddProduct:c,handleAddProductMinus:v}},useReelMenu=e=>{let{videoData:l,userDetails:n,tavsid:t,fromVideoProduct:i,handleOpenVideoDetails:r,openModal:a,STATUS_CODES:u}=e,c=(0,s.useRef)(null),[v,p]=(0,s.useState)(!1),[C,g]=(0,s.useState)(!1),[f,b]=(0,s.useState)(!1),[x,E]=(0,s.useState)(null),[A,y]=(0,s.useState)(""),{NOT_INTERESTED:O,REPORT:S,BLOCK_USER:j,CLOSE:M}=o.TITLES.HOME.MENU_OPTIONS,_=(0,s.useCallback)(e=>{c.current&&!c.current.contains(e.target)&&p(!1)},[]),T=(0,s.useCallback)(()=>{let e={tavuid:null==n?void 0:n.tavuid,trend_id:null==l?void 0:l.trend_id,interest:o.TITLES.COMMON.NO_2,action:o.TITLES.COMMON.INTEREST_2};h.U.homeAgent.notInterested(e).then(e=>{(0,d.Bn)(e)&&(0,d.Rl)(e)?(p(!1),m.Am.success(o.ALERTS.HOME.NOT_INTERESTED_SUCCESS)):m.Am.error(o.TITLES.COMMON.ERROR_MESSAGE)}).catch(e=>{var l;m.Am.error(null!==(l=null==e?void 0:e.data)&&void 0!==l?l:o.ALERTS.COMMON.SOMETHING_WRONG),p(!1)})},[l,n]),R=(0,s.useCallback)(()=>{g(!1);let e={blocked_handle:null==l?void 0:l.handle,tavuid:null==n?void 0:n.tavuid};h.U.homeAgent.block(e).then(e=>{(0,d.Bn)(e)&&(0,d.Rl)(e)?(m.Am.success(o.ALERTS.HOME.BLOCKED_SUCCESS),p(!1)):m.Am.error(o.TITLES.COMMON.ERROR_MESSAGE)}).catch(e=>{var l;m.Am.error(null!==(l=null==e?void 0:e.data)&&void 0!==l?l:o.ALERTS.HOME.BLOCKED_FAILED),p(!1)})},[l,n]),I=(0,s.useCallback)(()=>{if(null===x){m.Am.error(o.TITLES.COMMON.ERROR_MESSAGE);return}let e=o.STATIC_VALUES.HOME.REPORTS_REASON_LIST[x],i={trend_id:null==l?void 0:l.trend_id,tavuid:null==n?void 0:n.tavuid,tavsid:t,report_type:null==e?void 0:e.label,sub_report_type:"",description:A};h.U.homeAgent.report(i).then(e=>{var l;(null==e?void 0:e.status)===u.SUCCESS&&(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.code)===u.SUCCESS?(m.Am.success(o.TITLES.HOME.REPORT_SUCCESS),E(null),y(""),p(!1)):m.Am.error(o.TITLES.COMMON.ERROR_MESSAGE)}).catch(e=>{var l;m.Am.error(null!==(l=null==e?void 0:e.data)&&void 0!==l?l:o.ALERTS.COMMON.SOMETHING_WRONG),p(!1)})},[x,A,l,n,t,u]),k=(0,s.useCallback)(e=>{if(i){var n,t,d;let i=o.STATIC_VALUES.HOME.PRODUCT_VIDEO_MENU_OPTIONS_LIST;(null==e?void 0:e.label)===(null===(n=i[0])||void 0===n?void 0:n.label)&&(null==r||r(l)),(null==e?void 0:e.label)===(null===(t=i[1])||void 0===t?void 0:t.label)&&R(),(null==e?void 0:e.label)===(null===(d=i[2])||void 0===d?void 0:d.label)&&a("report")}else(null==e?void 0:e.label)===O&&T(),(null==e?void 0:e.label)===j&&g(!0),(null==e?void 0:e.label)===S&&a("report"),(null==e?void 0:e.label)===M&&p(!1),p(!1)},[i,l,T,R,a]),L=(0,s.useCallback)(()=>{E(null),y("")},[]);return{dropdownRef:c,showOptions:v,setShowOptions:p,modalOpen:C,setModalOpen:g,reportModalOpen:f,setReportModalOpen:b,selectedReportOption:x,setSelectedReportOption:E,description:A,setDescription:y,handleClickOutside:_,handleOnBlockPress:R,handleReportSubmit:I,handleItem
1Click:k,resetReport:L}};var f=n(29199);let useReelModals=()=>{let{isModalOpen:e,openModal:l,closeModal:n}=(0,f.d)(),[t,i]=(0,s.useState)(""),[o,r]=(0,s.useState)(!1),[a,d]=(0,s.useState)(!1),[u,c]=(0,s.useState)({isOpen:!1,data:null}),v=(0,s.useCallback)(()=>{c({isOpen:!1,data:null})},[]),p=(0,s.useCallback)(e=>{c({isOpen:!0,data:e})},[]),h=(0,s.useMemo)(()=>e("tips")||e("buynow")||e("other")||e("login")||e("otherLearnMore")||e("report")||u.isOpen,[u.isOpen]);return{isModalOpen:e,openModal:l,closeModal:n,url:t,setUrl:i,tipDonated:o,setTipDonated:r,saveLoader:a,setSaveLoader:d,paymentModal:u,openPaymentModal:p,closePaymentModal:v,isAnyModalOpen:h}};var b=n(22529),x=n(30080);let safeCount=function(){for(var e=arguments.length,l=Array(e),n=0;n<e;n++)l[n]=arguments[n];for(let e of l){if("number"==typeof e)return e;if("string"==typeof e&&""!==e.trim()&&!Number.isNaN(Number(e)))return Number(e)}return 0},circleStyle=e=>({width:"mobile"===e?46:40,height:"mobile"===e?46:40,borderRadius:"999px",display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255,255,255,0.14)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",color:"#fff"}),menuContainerStyle=e=>({position:"absolute",right:"mobile"===e?62:66,top:0,zIndex:50,minWidth:190,borderRadius:16,background:"rgba(15,15,15,0.96)",border:"1px solid rgba(255,255,255,0.08)",boxShadow:"0 12px 32px rgba(0,0,0,0.35)",overflow:"hidden"}),menuButtonStyle=e=>({display:"block",width:"100%",textAlign:"left",padding:"12px 14px",color:"#fff",background:"transparent",border:"none",cursor:"pointer",borderBottom:e?"none":"1px solid rgba(255,255,255,0.06)",fontSize:14}),E={vote:x.rWj,like:x.Yqy,comment:x.wbT,favourite:x.AAE,tag:x.Rtn,share:x.D6S,menu:x.xr$},IconItem=e=>{let{variant:l,icon:n,count:i,onClick:o,label:r}=e,a="mobile"===l?b.E.IconButtonForMobile:b.E.IconButton,d="mobile"===l?20:18;return(0,t.jsxs)(a,{type:"button",onClick:o,children:[(0,t.jsx)("span",{"aria-hidden":"true",style:circleStyle(l),children:(0,t.jsx)(n,{size:d,color:"#fff"})}),r?(0,t.jsx)(b.E.IconCount,{children:r}):null,"number"==typeof i?(0,t.jsx)(b.E.IconCount,{children:i}):null]})};var A=s.memo(e=>{var l,n,i;let{videoData:o,isLiked:r,isFavourated:a,variant:d="desktop",showOptions:s=!1,setShowOptions:u,dropdownRef:c,menuOption:v=[],productVideoMenuOption:p=[],handleOnVotePress:h,handleOnLikePress:m,handleOnCommentPress:C,handleOnFavouritePress:g,handleOnTagPress:f,shareButtonClickHandle:b,handleItemClick:x}=e,A=safeCount(null==o?void 0:o.total_likes,null==o?void 0:o.likes,null==o?void 0:null===(l=o.activity)||void 0===l?void 0:l.likes),y=safeCount(null==o?void 0:o.total_votes,null==o?void 0:o.votes,null==o?void 0:null===(n=o.activity)||void 0===n?void 0:n.votes),O=safeCount(null==o?void 0:o.commentsCount2,null==o?void 0:o.total_comments,null==o?void 0:o.comments),S=safeCount(null==o?void 0:o.total_favourites,null==o?void 0:o.favorites,null==o?void 0:o.favourites,null==o?void 0:o.saved_count),j=safeCount(null==o?void 0:null===(i=o.tags)||void 0===i?void 0:i.length),M=safeCount(null==o?void 0:o.total_shares,null==o?void 0:o.shares),_=(null==o?void 0:o.campaign_type)===2?p:v;return(0,t.jsxs)("div",{style:{height:"auto"},children:[(0,t.jsx)(IconItem,{variant:d,icon:E.vote,label:"VOTE",count:y,onClick:h}),(0,t.jsx)(IconItem,{variant:d,icon:E.like,count:A,onClick:m}),(0,t.jsx)(IconItem,{variant:d,icon:E.comment,count:O,onClick:C}),(0,t.jsx)(IconItem,{variant:d,icon:E.favourite,count:S,onClick:g}),(0,t.jsx)(IconItem,{variant:d,icon:E.tag,count:j,onClick:f}),(0,t.jsx)(IconItem,{variant:d,icon:E.share,count:M,onClick:b}),!!(null==_?void 0:_.length)&&(0,t.jsxs)("div",{style:{position:"relative"},children:[(0,t.jsx)(IconItem,{variant:d,icon:E.menu,onClick:()=>null==u?void 0:u(e=>!e)}),s?(0,t.jsx)("div",{ref:c,style:{position:"relative"},children:(0,t.jsx)("div",{style:menuContainerStyle(d),children:null==_?void 0:_.map((e,l)=>{var n,i,o,r;return(0,t.jsx)("button",{type:"button",onClick:()=>{null==x||x(e),null==u||u(!1)},style:menuButtonStyle(l===_.length-1),children:null!==(i=null!==(n=null==e?void 0:e.label)&&void 0!==n?n:null==e?void 0:e.title)&&void 0!==i?i:"Option"},"".concat(null!==(r=null!==(o=null==e?void 0:e.label)&&void 0!==o?o:null==e?void 0:e.title)&&void 0!==r?r:"option","-").concat(l))})})}):null]})]})}),y=n(9404),O=n(26093),S=n(5152),j=n.n(S),M={src:"/_next/static/media/suggested-acc-3.0384898c.png",height:104,width:104,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAABE0lEQVR4nAEIAff+Af///wD+AAApgIaKmKZ7dzkNJCIAITxEx1lUTmgWFRnXAf///ynX3d/FXlJJEWA+KAA6LygAhpCJABNGde+Yjoo7Afr28sHd3do+n31Y+k9EWAYZFQ4AmaCb+uwdQgaIg3zCAcPEvfoKCAUFzrqvAC0JAwANDQkAfJCSAEZqgQAvLyv7AcTMyPoG/vwFwKCOADseCgDX1s4AACtIAC9JWAD08/b7AbWEi8Hx3uI+CiMB+igR/Abo7OwABgcZ+vkgOwb/HBTCAYYAACkJMUjFLU4gERogEgAHCQcA2LTWAO/lA+8cg2Q7AXkAAAAVZ4EpHvzPmCQ5ITn3+AQA0r/vx/D182giSz/XPiRrvHFofFQAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8};let _={userNameText:{letterSpacing:".2px",color:(0,p.EC)().WHITE}},T=j()(()=>n.e(1770).then(n.bind(n,21770)),{loadableGenerated:{webpack:()=>[21770]},ssr:!1});var components_VideoOverlay=e=>{var l;let{videoData:n,isMobile:i,isVideoDetailsPage:r,isFollowing:a,isAuthorised:d,isMuted:s,muteIcon:u,handleAction:c,handleOnFollowPress:v,handleProfilePressParent:p,openModal:h,handleLearnMoreModal2:m,handleVideoCardProdAddToCart:C,toggleMute:g,isShopable:f,index:x}=e,{FOLLOW:E,TIPS:A,BUY_NOW:S}=o.TITLES.HOME,{FOLLOWING:j}=o.TITLES.COMMON;return(0,t.jsxs)(b.E.OverlayBottom,{isMobile:i,children:[(0,t.jsxs)(b.E.Info,{children:[(0,t.jsx)(b.E.Ava,{children:(0,t.jsx)(b.E.Avatar,{onClick:e=>{e.stopPropagation(),null==p||p(n)},children:(0,t.jsx)(b.E.ImageContainer,{children:(0,t.jsx)(b.E.StyledImage,{alt:"avatar_image",src:null!==(l=null==n?void 0:n.avatar_url)&&void 0!==l?l:M,layout:"fill",loading:"lazy",decoding:"async",unoptimized:!0})})})}),(0,t.jsxs)(b.E.UserInfo,{children:[(0,t.jsx)(O.default,{className:"long_text",...null==_?void 0:_.userNameText,onClick:e=>{e.stopPropagation(),null==p||p(n)},children:null==n?void 0:n.handle}),(0,t.jsxs)(b.E.ButtonGroup,{children:[r?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y.Z,{text:a?j:E,isLoading:!1,disabled:!1,onClick:()=>c(v),...b.E.commonProps}),(null==n?void 0:n.campaign_type)===1?(0,t.jsx)(y.Z,{text:o.TITLES.HOME.LEARN_MORE,isLoading:!1,disabled:!1,onClick:()=>c(()=>h("other")),...b.E.commonProps}):null,(null==n?void 0:n.campaign_type)===3?(0,t.jsx)(y.Z,{text:o.TITLES.HOME.LEARN_MORE,isLoading:!1,disabled:!1,onClick:m,...b.E.commonProps}):null,(null==n?void 0:n.campaign_type)===4?(0,t.jsx)(y.Z,{text:A,isLoading:!1,disabled:!1,onClick:()=>c(()=>h("tips")),...b.E.commonProps}):null,f?(0,t.jsx)(y.Z,{text:S,isLoading:!1,disabled:!1,onClick:()=>c(()=>C(n,x)),...b.E.commonProps}):null]}),i?(0,t.jsxs)(b.E.IconContainer,{children:[r?(0,t.jsx)(O.default,{className:"long_text",...null==_?void 0:_.userNameText,children:null==n?void 0:n.name}):null,(0,t.jsx)(b.E.MuteToggle,{isMobile:i,onClick:g,children:u})]}):null]})]})]}),(0,t.jsx)(T,{text:(null==n?void 0:n.description)||""})]})},R=n(57006),I=n(50323),k=n(69417),L=n(92699);let P={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"min(92vw, 520px)",bgcolor:"#111",color:"#fff",borderRadius:"18px",border:"1px solid rgba(255,255,255,0.08)",boxShadow:"0 20px 60px rgba(0,0,0,0.45)",p:3,outline:"none"},w={display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},N={background:"transparent",color:"#fff",border:"none",cursor:"pointer",fontSize:20};var V=s.memo(e=>{let{videoData:l,isModalOpen:n,closeModal:i,showComment:o,setShowComment:r,setShowPau
1seIcon:a,allComments:d=[],handleCommentLikePress:u,handleOnRepliesPress:c,handleOnDeletePress:v,commentVideoRef:p,showTag:h,tagProfile:m=[],tagCloseHandle:C,followUnfollowHandler:g,isSendVideoModalOpen:f,shareVideoCloseHandle:b,reelUpdateShareHandle:x,selectedReportOption:E,setSelectedReportOption:A,description:y="",setDescription:O,handleReportSubmit:S,resetReport:j,handleOnBlockPress:M,titleHandlePress:_,sendTipBtnClickHandle:T,handleAdvInfoModal:V,paymentModal:D,closePaymentModal:U,products:Z=[],totalItems:H=0,totalPrice:B=0,handleAddProduct:G,handleAddProductMinus:z}=e,F=(0,s.useMemo)(()=>{var e;return(null===(e=window.location)||void 0===e?void 0:e.href)||(null==l?void 0:l.share_url)||""},[null==l?void 0:l.share_url]),onCloseComments=()=>{var e;r(!1),a(!1),null===(e=p.current)||void 0===e||e.pause()},copyShareLink=async()=>{try{var e,l;(null===(l=navigator)||void 0===l?void 0:null===(e=l.clipboard)||void 0===e?void 0:e.writeText)&&F&&(await navigator.clipboard.writeText(F),null==x||x(1))}catch(e){}finally{b()}},nativeShare=async()=>{try{navigator.share&&F&&(await navigator.share({title:(null==l?void 0:l.title)||"Trend video",text:"Check out this video",url:F}),null==x||x(1))}catch(e){}finally{b()}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(R.Z,{open:o,onClose:onCloseComments,children:(0,t.jsxs)(I.Z,{sx:P,children:[(0,t.jsxs)("div",{style:w,children:[(0,t.jsx)("h3",{style:{margin:0},children:"Comments"}),(0,t.jsx)("button",{type:"button",onClick:onCloseComments,style:N,children:"â"})]}),(0,t.jsx)("div",{style:{maxHeight:"60vh",overflowY:"auto",display:"flex",flexDirection:"column",gap:12},children:d.length?d.map((e,l)=>{var n;return(0,t.jsxs)("div",{style:{padding:12,borderRadius:12,background:"rgba(255,255,255,0.05)"},children:[(0,t.jsx)("div",{style:{fontWeight:700,marginBottom:6},children:(null==e?void 0:e.user_name)||(null==e?void 0:e.username)||"User"}),(0,t.jsx)("div",{style:{marginBottom:10},children:(null==e?void 0:e.comment)||(null==e?void 0:e.text)||""}),(0,t.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,t.jsx)(k.Z,{size:"small",variant:"outlined",onClick:()=>{var n,t;return null==u?void 0:u(null!==(t=null!==(n=null==e?void 0:e.tavccid)&&void 0!==n?n:null==e?void 0:e.id)&&void 0!==t?t:null,e,l)},children:"Like"}),(0,t.jsx)(k.Z,{size:"small",variant:"outlined",onClick:()=>null==c?void 0:c(e,l),children:"Replies"}),(0,t.jsx)(k.Z,{size:"small",variant:"outlined",color:"error",onClick:()=>null==v?void 0:v(e,l),children:"Delete"})]})]},null!==(n=null==e?void 0:e.id)&&void 0!==n?n:l)}):(0,t.jsx)("div",{style:{opacity:.8},children:"No comments yet."})})]})}),(0,t.jsx)(R.Z,{open:h,onClose:C,children:(0,t.jsxs)(I.Z,{sx:P,children:[(0,t.jsxs)("div",{style:w,children:[(0,t.jsx)("h3",{style:{margin:0},children:"Tagged profiles"}),(0,t.jsx)("button",{type:"button",onClick:C,style:N,children:"â"})]}),(0,t.jsx)("div",{style:{maxHeight:"55vh",overflowY:"auto",display:"flex",flexDirection:"column",gap:10},children:m.length?m.map((e,l)=>{var n,i;return(0,t.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:12,padding:12,borderRadius:12,background:"rgba(255,255,255,0.05)"},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{fontWeight:700},children:(null==e?void 0:e.name)||(null==e?void 0:e.full_name)||(null==e?void 0:e.handle)||"Profile"}),(0,t.jsxs)("div",{style:{opacity:.8},children:["@",(null==e?void 0:e.handle)||(null==e?void 0:e.username)||"user"]})]}),(0,t.jsx)(k.Z,{size:"small",variant:"contained",onClick:()=>null==g?void 0:g(e),children:"Follow"})]},null!==(i=null!==(n=null==e?void 0:e.tavuid)&&void 0!==n?n:null==e?void 0:e.handle)&&void 0!==i?i:l)}):(0,t.jsx)("div",{style:{opacity:.8},children:"No tagged profiles."})})]})}),(0,t.jsx)(R.Z,{open:f,onClose:b,children:(0,t.jsxs)(I.Z,{sx:P,children:[(0,t.jsxs)("div",{style:w,children:[(0,t.jsx)("h3",{style:{margin:0},children:"Share video"}),(0,t.jsx)("button",{type:"button",onClick:b,style:N,children:"â"})]}),(0,t.jsxs)("div",{style:{display:"grid",gap:12},children:[(0,t.jsx)(k.Z,{variant:"contained",onClick:copyShareLink,children:"Copy link"}),(0,t.jsx)(k.Z,{variant:"outlined",onClick:nativeShare,children:"Share"})]})]})}),(0,t.jsx)(R.Z,{open:n("tips"),onClose:()=>i("tips"),children:(0,t.jsxs)(I.Z,{sx:P,children:[(0,t.jsxs)("div",{style:w,children:[(0,t.jsx)("h3",{style:{margin:0},children:"Send tip"}),(0,t.jsx)("button",{type:"button",onClick:()=>i("tips"),style:N,children:"â"})]}),(0,t.jsxs)("div",{style:{display:"grid",gap:12},children:[(0,t.jsx)("div",{style:{opacity:.8},children:"Support this creator with a tip."}),(0,t.jsx)(k.Z,{variant:"contained",onClick:()=>null==T?void 0:T(),children:"Continue"})]})]})}),(0,t.jsx)(R.Z,{open:n("buynow")||!!(null==D?void 0:D.isOpen),onClose:()=>{i("buynow"),null==U||U()},children:(0,t.jsxs)(I.Z,{sx:P,children:[(0,t.jsxs)("div",{style:w,children:[(0,t.jsx)("h3",{style:{margin:0},children:"Products"}),(0,t.jsx)("button",{type:"button",onClick:()=>{i("buynow"),null==U||U()},style:N,children:"â"})]}),(0,t.jsxs)("div",{style:{display:"grid",gap:12},children:[Z.length?Z.map((e,l)=>{var n;return(0,t.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:12,padding:12,borderRadius:12,background:"rgba(255,255,255,0.05)"},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{fontWeight:700},children:(null==e?void 0:e.title)||(null==e?void 0:e.name)||"Product"}),(0,t.jsx)("div",{style:{opacity:.8},children:(null==e?void 0:e.price)||(null==e?void 0:e.amount)||""})]}),(0,t.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,t.jsx)(k.Z,{size:"small",variant:"outlined",onClick:()=>null==z?void 0:z(e),children:"-"}),(0,t.jsx)(k.Z,{size:"small",variant:"contained",onClick:()=>null==G?void 0:G(e,!0),children:"+"})]})]},null!==(n=null==e?void 0:e.id)&&void 0!==n?n:l)}):(0,t.jsx)("div",{style:{opacity:.8},children:"No products available."}),(0,t.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontWeight:700,marginTop:8},children:[(0,t.jsxs)("span",{children:["Total items: ",H]}),(0,t.jsxs)("span",{children:["Total: ",B]})]})]})]})}),(0,t.jsx)(R.Z,{open:n("report"),onClose:()=>i("report"),children:(0,t.jsxs)(I.Z,{sx:P,children:[(0,t.jsxs)("div",{style:w,children:[(0,t.jsx)("h3",{style:{margin:0},children:"Report video"}),(0,t.jsx)("button",{type:"button",onClick:()=>{null==j||j(),i("report")},style:N,children:"â"})]}),(0,t.jsxs)("div",{style:{display:"grid",gap:12},children:[(0,t.jsx)("div",{style:{display:"grid",gap:8},children:["Spam","Harassment","Violence","False information","Other"].map((e,l)=>(0,t.jsx)(k.Z,{variant:E===l?"contained":"outlined",onClick:()=>null==A?void 0:A(l),children:e},"".concat(e,"-").concat(l)))}),(0,t.jsx)(L.Z,{fullWidth:!0,multiline:!0,minRows:3,value:y,onChange:e=>null==O?void 0:O(e.target.value),placeholder:"Add more details"}),(0,t.jsx)(k.Z,{variant:"contained",onClick:S,children:"Submit report"}),(0,t.jsx)(k.Z,{variant:"outlined",color:"error",onClick:M,children:"Block user"})]})]})}),(0,t.jsx)(R.Z,{open:n("other"),onClose:()=>i("other"),children:(0,t.jsxs)(I.Z,{sx:P,children:[(0,t.jsxs)("div",{style:w,children:[(0,t.jsx)("h3",{style:{margin:0},children:"More info"}),(0,t.jsx)("button",{type:"button",onClick:()=>i("other"),style:N,children:"â"})]}),(0,t.jsxs)("div",{style:{display:"grid",gap:12},children:[(0,t.jsx)("div",{style:{opacity:.85},children:"Learn more about this content or open the product page."}),(0,t.jsx)(k.Z,{variant:"outlined",onClick:_,children:"Open product page"}),(0,t.jsx)(k.Z,{variant:"contained",onClick:()=>null==V?void 0:V(),children:"Continue"})]})]})}),(0,t.jsx)(R.Z,{open:n("otherLearnMore"),onClose:()=>i("otherLearnMore"),children:(0,t.jsxs)(I.Z,{sx:P,children:[(0,t.jsxs)("div",{style:w,children:[(0,t.jsx)("h3",{style:{margin:0},children:"Learn more"}),(0,t.jsx)("button",{type:"button",onClick:()=>i("otherLearnMore"),style:N,children:"â"})]}),(0,t.jsx)("div",{style:{opacity:.85},children:(null==l?void 0:l.description)||(null==l?void 0:l.title)||"More information about this video."})]})}),(0,t.jsx)(R.Z,{open:n("login"),onClose:()=>i("login"),children:(0,t.jsxs)(I.Z,{sx:P,children:[(0,t.jsxs)("div",{style:w,children:[(0,t.jsx)("h3",{style:{margin:0},children:"Login required"}),(0,t.jsx)("button",{type:"button",onClick:()=>i("login"),style:N,children:"â"})]}),(0,t.jsx)("div",{style:{opacity:.85},children:"Please log in to continue with this action."})]})})]})}),D=n(36487),Home_Reel=e=>{var l,n,c;let{videoData:v,videoList:p,index:h,userDetails:m,handleOnLikePress:C,handleOnVotePress:g,handleOnFavouritePress:f,handleOnFollowPress:x,handleProfilePressParent:E,setReelData:y,isVoted:O,isLiked:S,isFavourated:j,isShopable:M,isFollowing:_,isAuthorised:T,countryList:R,className:I,fromVideoProduct:k,handleOpenVideoDetails:L,height:P,isVideoDetailsPage:w,handleVideoDetails:N,trend_id:U,propsObj:Z}=e,{STATUS_CODES:H}=o.STATIC_VALUES.COMMON,B=o.STATIC_VALUES.HOME.MENU_OPTIONS_LIST,G=o.STATIC_VALUES.HOME.PRODUCT_VIDEO_MENU_OPTIONS_LIST,{deviceType:z}=(0,r.Z)(),F=z===o.STATIC_VALUES.COMMON.DEVICE_TYPE.TABLET,W=z===o.STATIC_VALUES.COMMON.DEVICE_TYPE.MOBILE,{isSearchModalOpen:K}=(0,u.v9)(e=>null==e?void 0:e.home),{isUploadModalOpen:Y}=(0,u.v9)(e=>e.modal),Q=(0,s.useRef)(null),q=(0,s.useRef)(null),J=(0,s.useRef)(null),X=a.g.get(o.y$.TAVSID);a.g.get(o.y$.USERDATA);
1let[$,ee]=(0,s.useState)(null),[el,en]=(0,s.useState)(!1),[et,ei]=(0,s.useState)(!1),[eo]=(0,s.useState)(null!==(l=null==v?void 0:v.tags)&&void 0!==l?l:[]),[er,ea]=(0,s.useState)(!1),ed=useReelModals(),es=ed.isModalOpen("tips")||ed.isModalOpen("buynow")||ed.isModalOpen("other")||ed.isModalOpen("login")||ed.isModalOpen("otherLearnMore")||ed.isModalOpen("report")||ed.paymentModal.isOpen||Y||el||et||er,eu=useVideoPlayer({videoUrl:null==v?void 0:v.videoUrl,trendId:null==v?void 0:v.trend_id,currentlyPlayingVideo:e.currentlyPlayingVideo,setCurrentlyPlayingVideo:e.setCurrentlyPlayingVideo,isSearchModalOpen:K,isAnyModalOpen:es}),ec=useReelMenu({videoData:v,userDetails:m,tavsid:X,isAuthorised:T,fromVideoProduct:k,handleOpenVideoDetails:L,openModal:ed.openModal,STATUS_CODES:H}),ev=useComments({videoData:v,userDetails:m,videoList:p,index:h,setReelData:y,isVideoDetailsPage:w,handleVideoDetails:N,STATUS_CODES:H}),ep=useProductCart(ed.openModal),eh=(0,s.useMemo)(()=>T?o.STATIC_VALUES.HOME.TABS:o.STATIC_VALUES.HOME.TABS.filter(e=>(null==e?void 0:e.label)!==o.TITLES.COMMON.FOLLOWING),[T]);useVideoVisibility({reelRef:Q,videoRef:eu.videoRef,isSearchModalOpen:K,showComment:el,isLoading:eu.isLoading,setCurrentlyPlayingVideo:e.setCurrentlyPlayingVideo,setCurrentVideo:ee,onClickOutside:ec.handleClickOutside}),(0,s.useEffect)(()=>{var e;J.current=null===(e=o.STATIC_VALUES.HOME.TABS[0])||void 0===e?void 0:e.label},[]),(0,s.useEffect)(()=>{if(el)document.body.style.overflow="hidden",q.current&&(q.current.currentTime=0,q.current.pause());else{var e;null===(e=q.current)||void 0===e||e.pause(),document.body.style.overflow="auto"}return()=>{document.body.style.overflow="auto"}},[el]),(0,s.useEffect)(()=>{if((0,d.uG)(),!U)return;eu.setIsLoading(!1),null==N||N();let l=eu.videoRef.current;if(l){var n;null===(n=e.setCurrentlyPlayingVideo)||void 0===n||n.call(e,l),ee(l)}},[U,N,e.setCurrentlyPlayingVideo,eu.videoRef,eu.setIsLoading]),(0,s.useEffect)(()=>{if(0===h&&eu.videoRef.current&&!e.currentlyPlayingVideo){var l;null===(l=e.setCurrentlyPlayingVideo)||void 0===l||l.call(e,eu.videoRef.current),ee(eu.videoRef.current)}},[h,e.currentlyPlayingVideo,e.setCurrentlyPlayingVideo,eu.videoRef]);let em=(0,s.useCallback)(e=>{let l=document.querySelectorAll('video[data-reel-video="true"]');l.forEach(l=>{l===e||l.paused||l.pause()})},[]),eC=(0,s.useCallback)(()=>{var l;let n=eu.videoRef.current;n&&(em(n),null===(l=e.setCurrentlyPlayingVideo)||void 0===l||l.call(e,n),ee(n),eu.togglePlayPause())},[em,eu.togglePlayPause,e.setCurrentlyPlayingVideo,eu.videoRef]),eg=(0,s.useCallback)(e=>{T?e():ed.openModal("login")},[T,ed.openModal]),ef=(0,s.useCallback)(()=>{if(T){var e;en(!0),ev.fetchCommentsList(),null===(e=eu.videoRef.current)||void 0===e||e.pause()}else ed.openModal("login")},[T,ev.fetchCommentsList,ed.openModal,eu.videoRef]),eb=(0,s.useCallback)(()=>{if(T){var e;null===(e=eu.videoRef.current)||void 0===e||e.pause(),ei(!0)}else ed.openModal("login")},[T,ed.openModal,eu.videoRef]),ex=(0,s.useCallback)(()=>{var l;ei(!1);let n=eu.videoRef.current;n&&(null===(l=e.setCurrentlyPlayingVideo)||void 0===l||l.call(e,n),ee(n))},[e.setCurrentlyPlayingVideo,eu.videoRef]),eE=(0,s.useCallback)(()=>{var l;ea(!1);let n=eu.videoRef.current;n&&(null===(l=e.setCurrentlyPlayingVideo)||void 0===l||l.call(e,n),ee(n))},[e.setCurrentlyPlayingVideo,eu.videoRef]),eA=(0,s.useCallback)(()=>{var e;let l=null!==(e=null==v?void 0:v.product_url)&&void 0!==e?e:null==v?void 0:v.productUrl;l&&window.open(l,"_blank")},[v]),ey=(0,s.useCallback)(()=>{ed.openModal("otherLearnMore")},[ed.openModal]),eO=(0,s.useCallback)(()=>{ed.openModal("other")},[ed.openModal]),eS=(0,s.useCallback)(()=>{T?ed.openModal("tips"):ed.openModal("login")},[T,ed.openModal]),ej=(0,s.useCallback)(e=>
1{(null==v?void 0:v.video_id)&&(null==y||y(l=>l.map(l=>{var n;return(null==l?void 0:l.video_id)===v.video_id?{...l,total_shares:(null!==(n=null==l?void 0:l.total_shares)&&void 0!==n?n:0)+e}:l})))},[y,null==v?void 0:v.video_id]),eM=(0,s.useCallback)(()=>{null==x||x()},[x]),e_=(0,s.useCallback)(()=>{null==E||E()},[E]),eT=(0,s.useCallback)(()=>{eg(()=>null==C?void 0:C())},[eg,C]),eR=(0,s.useCallback)(()=>{eg(()=>null==g?void 0:g())},[eg,g]),eI=(0,s.useCallback)(()=>{eg(()=>null==f?void 0:f())},[eg,f]),ek=(0,s.useCallback)(()=>{eg(()=>{eu.isPlaying&&eu.togglePlayPause(),ea(!0)})},[eg,eu.isPlaying,eu.togglePlayPause]),eL={videoData:v,isVoted:O,isLiked:S,isFavourated:j,isAuthorised:T,isTablet:F,isMobile:W,isVideoDetailsPage:w,fromVideoProduct:k,showOptions:ec.showOptions,setShowOptions:ec.setShowOptions,dropdownRef:ec.dropdownRef,menuOption:B,productVideoMenuOption:G,handleAction:eg,handleOnVotePress:eR,handleOnLikePress:eT,handleOnCommentPress:ef,handleOnFavouritePress:eI,handleOnTagPress:eb,shareButtonClickHandle:ek,handleItemClick:ec.handleItemClick},eP=eu.isMuted?"\uD83D\uDD07":"\uD83D\uDD0A";return(0,t.jsxs)(b.E.ReelContainer,{ref:Q,className:I,"data-reel-item":"true","data-reel-index":h,isMobile:W,isTablet:F,children:[W||F?(0,t.jsxs)(b.E.VideoContainerForMobile,{height:P,isMobile:W,children:[eu.isLoading?(0,t.jsx)(i.Z,{}):null,(0,t.jsx)(b.E.VideoFrame,{className:"video-reel",ref:eu.videoRef,"data-reel-video":"true","data-reel-index":h,"data-trend-id":null!==(c=null==v?void 0:v.trend_id)&&void 0!==c?c:"",onClick:eC,loop:!0,playsInline:!0,muted:eu.isMuted,controls:!1,preload:"metadata",onLoadedData:()=>eu.setIsLoading(!1),onCanPlay:()=>eu.setIsLoading(!1),onError:()=>eu.setIsLoading(!1),children:(0,t.jsx)("source",{src:null==v?void 0:v.videoUrl,type:"video/mp4"})}),(0,t.jsx)(b.E.PauseIcon,{onClick:eC,show:eu.showPauseIcon,children:eu.isPlaying?null:(0,t.jsx)("div",{className:"pointer",children:(0,t.jsx)(b.E.CircleButton,{onClick:eC,children:"â¶ï¸"})})}),T?(0,t.jsx)(D.Z,{propsObj:Z,filteredTabs:eh,selectedVideoCategory:J,isAuthorised:T,setReelData:y}):null,(0,t.jsx)(components_VideoOverlay,{videoData:v,isMobile:!0,isVideoDetailsPage:w,isFollowing:_,isAuthorised:T,isMuted:eu.isMuted,muteIcon:eP,handleAction:eg,handleOnFollowPress:x,handleProfilePressParent:e_,openModal:ed.openModal,handleLearnMoreModal2:ey,handleVideoCardProdAddToCart:ep.handleFetchProducts,toggleMute:eu.toggleMute,isShopable:M,index:h}),(0,t.jsx)(b.E.VerticalIconsContainerForMobile,{children:(0,t.jsx)(A,{...eL,variant:"mobile"})})]}):(0,t.jsx)(b.E.DesktopStage,{children:(0,t.jsxs)(b.E.DesktopVideoRail,{children:[(0,t.jsxs)(b.E.VideoContainer,{children:[eu.isLoading?(0,t.jsx)(i.Z,{}):null,(0,t.jsx)(b.E.VideoFrame,{ref:eu.videoRef,"data-reel-video":"true","data-reel-index":h,"data-trend-id":null!==(n=null==v?void 0:v.trend_id)&&void 0!==n?n:"",onClick:eC,loop:!0,playsInline:!0,muted:eu.isMuted,controls:!1,preload:"metadata",onLoadedData:()=>eu.setIsLoading(!1),onCanPlay:()=>eu.setIsLoading(!1),onError:()=>eu.setIsLoading(!1),style:{opacity:eu.isLoading?0:1},children:(0,t.jsx)("source",{src:null==v?void 0:v.videoUrl,type:"video/mp4"})}),eu.isLoading?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.E.PauseIcon,{onClick:eC,show:eu.showPauseIcon,children:eu.isPlaying?null:(0,t.jsx)("div",{className:"pointer",children:(0,t.jsx)(b.E.CircleButton,{onClick:eC,children:"â¶ï¸"})})}),(0,t.jsx)(b.E.MuteToggle,{onClick:eu.toggleMute,children:eP}),(0,t.jsx)(components_VideoOverlay,{videoData:v,isMobile:!1,isVideoDetailsPage:w,isFollowing:_,isAuthorised:T,isMuted:eu.isMuted,muteIcon:eP,handleAction:eg,handleOnFollowPress:x,handleProfilePressParent:e_,openModal:ed.openModal,handleLearnMoreModal2:ey,handleVideoCardProdAddToCart:ep.handleFetchProducts,toggleMute:eu.toggleMute,isShopable:M,index:h})]})]}),eu.isLoading?null:(0,t.jsx)(b.E.VerticalIconsContainer,{children:(0,t.jsx)(A,{...eL,variant:"desktop"})})]})}),(0,t.jsx)(V,{videoData:v,videoList:p,index:h,userDetails:m,isMobile:W,isTablet:F,isAuthorised:T,isVideoDetailsPage:w,handleVideoDetails:N,setReelData:y,countryList:R,isModalOpen:ed.isModalOpen,openModal:ed.openModal,closeModal:ed.closeModal,url:ed.url,tipDonated:ed.tipDonated,setTipDonated:ed.setTipDonated,saveLoader:ed.saveLoader,paymentModal:ed.paymentModal,closePaymentModal:ed.closePaymentModal,showComment:el,setShowComment:en,setShowPau
1seIcon:eu.setShowPauseIcon,allComments:ev.allComments,commentsCount2:ev.commentsCount2,fetchCommentsList:ev.fetchCommentsList,handleCommentLikePress:ev.handleCommentLikePress,handleOnRepliesPress:ev.handleOnRepliesPress,handleOnDeletePress:ev.handleOnDeletePress,commentVideoRef:q,videoRef:eu.videoRef,tavvidRef:eu.tavvidRef,showTag:et,tagProfile:eo,tagCloseHandle:ex,followUnfollowHandler:eM,isSendVideoModalOpen:er,shareVideoCloseHandle:eE,reelUpdateShareHandle:ej,selectedReportOption:ec.selectedReportOption,setSelectedReportOption:ec.setSelectedReportOption,description:ec.description,setDescription:ec.setDescription,handleReportSubmit:ec.handleReportSubmit,setReportModalOpen:ec.setReportModalOpen,reportModalOpen:ec.reportModalOpen,resetReport:ec.resetReport,modalOpen:ec.modalOpen,setModalOpen:ec.setModalOpen,handleOnBlockPress:ec.handleOnBlockPress,titleHandlePress:eA,sendTipBtnClickHandle:eS,handleAdvInfoModal:eO,products:ep.products,totalItems:ep.totalItems,totalPrice:ep.totalPrice,handleAddProduct:ep.handleAddProduct,handleAddProductMinus:ep.handleAddProductMinus})]})}},54490:function(e,l,n){n.d(l,{Y:function(){return E},i:function(){return x}});var t=n(82729),i=n(55353),o=n(47538),r=n(35480);function _templateObject(){let e=(0,t._)(["\n margin: 0.2rem;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,t._)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 10px;\n\n .form {\n width: 100%;\n }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,t._)(["\n color: ",";\n font-size: 0.75rem;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,t._)(["\n display: flex;\n flex: 1;\n justify-content: center;\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,t._)(["\n padding: 0.625rem;\n border-radius: 5px;\n border: none;\n width: 100%;\n font-size: 0.875rem;\n background-color: ",";\n color: "," !important;\n &:focus {\n border-color: #007bff;\n outline: none;\n }\n &::placeholder {\n color: ",";\n }\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,t._)(["\n margin-top: 1rem;\n padding: 0.625rem;\n border: none;\n border-radius: 4px;\n min-height: 100px;\n resize: vertical;\n width: 100%;\n background-color: ",";\n font-size: 0.875rem;\n color: "," !important;\n &:focus {\n border-color: #007bff;\n outline: none;\n }\n &::placeholder {\n color: ",";\n }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,t._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 20px;\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,t._)(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 50%;\n margin-top: 1rem;\n\n @media only screen and (max-width: 320px) {\n width: 100%;\n }\n\n @media only screen and (min-width: 321px) and (max-width: 768px) {\n width: 100%;\n }\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,t._)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,t._)(["\n width: 100%;\n margin-top: 0.4rem;\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,t._)([""]);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,t._)(["\n width: ",";\n margin-top: 1rem;\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){let e=(0,t._)(["\n width: 100%;\n border: 1px solid #474747;\n margin: ",";\n"]);return _templateObject12=function(){return e},e}let{DARK_THEME_COLORS:a}=i.STATIC_VALUES.COMMON,d=r.default.div(_templateObject()),s=r.default.div(_templateObject1()),u=r.default.h2(_templateObject2(),(0,o.EC)().RED),c=r.default.div(_templateObject3()),v=r.default.input(_templateOb
1ject4(),a.INPUT_BACKGROUND_BLACK_2,(0,o.EC)().WHITE,a.DARK_GREY),p=r.default.textarea(_templateObject5(),a.INPUT_BACKGROUND_BLACK_2,(0,o.EC)().WHITE,a.DARK_GREY),h=r.default.div(_templateObject6()),m=r.default.div(_templateObject7()),C=r.default.div(_templateObject8()),g=(0,r.default)(m)(_templateObject9()),f=(0,r.default)(C)(_templateObject10()),b=r.default.div(_templateObject11(),e=>{let{width:l}=e;return null!=l?l:""}),x=r.default.div(_templateObject12(),e=>{let{margin:l}=e;return l||"20px 0px"}),E={StyledContainer:d,StyledRatingDiv:s,ErrorDiv:u,RatingContainer:c,StyledInput:v,StyledTextarea:p,MainIconTitleContainer:h,MainIconcontainer:m,ButtonIconContainer:C,SmileTextContainer:g,StyledButtonIconContainer:f,ButtonWrapper:b,Divider:x}}}]);
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.