PageSourceSearch

https://www.sunnxt.com/_next/static/chunks/6084-e09b7a9bc6ce98de.js

js sunnxt.com collected 2026-09-27 20:56:05 UTC 11,433 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6084],{6084:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(2777),s=n(2262),o=n(748),a=n(5959),i=n(3553),l=n(7247),c=n(9499),p=n(7294),u=n(732),d=n(1163),x=n.n(d),v=n(775),h=n(495),m=n(5893);function f(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.Z)(e);if(t){var s=(0,l.Z)(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return(0,i.Z)(this,n)}}var g=function(e){(0,a.Z)(n,e);var t=f(n);function n(e){var s;return(0,r.Z)(this,n),s=t.call(this,e),(0,c.Z)((0,o.Z)(s),"handleCardClick",(function(e){s.props.onContentClick&&s.props.onContentClick(),(0,h.E)(e,x(),s.context.setShowSignin,{})})),s.state={isWatchHover:!1,isShareHover:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e,t,n,r,s,o,a,i,l,c,p,d,x=this,v=this.props,h=v.content,f=v.isLastInRow,g=v.watchListStatus,w=v.onFavorite,b=v.onShare,k=v.positionClass,N=v.disableButton;if(!h)return null;var y=k||(f?"right-[50%]":"left-[60%]"),S=this.props.topPosition||"top-[40%]";return(0,m.jsx)("div",{className:"hidden lg:block absolute ".concat(S," z-[90] w-[clamp(220px,15.5vw,298px)] rounded-[8px] border border-white/20 bg-black/30 backdrop-blur-[8px] ").concat(y),style:{boxShadow:"0px -3px 6px #00000029"},onClick:function(e){return e.stopPropagation()},onMouseEnter:function(){x.props.onMouseEnterPopup&&x.props.onMouseEnterPopup()},onMouseLeave:function(){x.props.onMouseLeavePopup&&x.props.onMouseLeavePopup()},children:(0,m.jsxs)("div",{className:"p-[clamp(10px,1vw,16px)]",children:[(0,m.jsx)("h3",{className:"text-white !text-[clamp(13px,1.4vw,18px)] !font-base mb-[clamp(4px,0.4vw,8px)] line-clamp-1",children:null===(e=h.generalInfo)||void 0===e?void 0:e.title}),"promotion"!==(null===(t=h.generalInfo)||void 0===t?void 0:t.type)&&(0,m.jsxs)("div",{className:"flex flex-wrap items-center gap-[clamp(4px,0.4vw,6px)] mb-[clamp(6px,0.6vw,12px)]",children:[(null===(n=h.content)||void 0===n?void 0:n.categoryType)&&(0,m.jsx)("span",{className:"text-white bg-[#333333] px-[clamp(4px,0.4vw,6px)] py-[1px] rounded text-[clamp(9px,0.7vw,11px)]",children:h.content.categoryType}),(null===(r=h.content)||void 0===r?void 0:r.videoQuality)&&(0,m.jsx)("span",{className:"text-white bg-[#333333] px-[clamp(4px,0.4vw,6px)] py-[1px] rounded text-[clamp(9px,0.7vw,11px)]",children:h.content.videoQuality}),(null===(s=h.subtitles)||void 0===s||null===(o=s.values)||void 0===o?void 0:o.length)>0&&(0,m.jsx)("span",{className:"text-white bg-[#333333] px-[clamp(4px,0.4vw,6px)] py-[1px] rounded text-[clamp(9px,0.7vw,11px)]",children:"SUB"}),(null===(a=h.content)||void 0===a?void 0:a.serialNo)&&(0,m.jsxs)("span",{className:"text-white bg-[#333333] px-[clamp(4px,0.4vw,6px)] py-[1px] rounded text-[clamp(9px,0.7vw,11px)]",children:["EP ",h.content.serialNo]})]}),(null===(i=h.generalInfo)||void 0===i?void 0:i.briefDescription)&&(0,m.jsx)("p",{className:"text-white/70 text-[clamp(10px,0.9vw,14px)] line-clamp-4 mb-[clamp(6px,0.6vw,12px)] leading-relaxed",children:h.generalInfo.briefDescription}),(0,m.jsxs)("div",{className:"text-[clamp(10px,0.9vw,14px)] mb-[clamp(8px,0.8vw,16px)] space-y-[clamp(2px,0.2vw,4px)]",children:[(null===(l=h.content)||void 0===l||null===(c=l.language)||void 0===c?void 0:c.length)>0&&(0,m.jsxs)("p",{className:"text-white",children:[(0,m.jsx)("span",{className:"text-white/60",children:"Language: "}),(0,m.jsx)("span",{className:"font-semibold",children:(0,u.Yq)(h.content.language)})]}),(null===(p=h.content)||void 0===p||null===(d=p.genre)||void 0===d?void 0:d.length)>0&&(0,m.jsxs)("p",{className:"text-white",children:[(0,m.jsx)("span",{className:"text-white/60",children:"Genres: "}),(0,m.jsx)("span",{className:"font-semibold",children:(0,u.OT)(h.content.genre)})]})]}),!N&&(0,m.jsxs)("div",{className:"flex items-center gap-[clamp(6px,0.5vw,8px)]",children:[(0,m.jsxs)("button",{onClick:function(e){e.stopPropagation(),x.handleCardClick(h)},className:"flex items-center gap-[clamp(4px,0.5vw,8px)] rounded-[6px] px-[clamp(8px,0.8vw,12px)] py-[clamp(6px,0.5vw,8px)] text-[clamp(11px,1vw,16px)] font-semibold bg-white text-black transition-all duration-300 cursor-pointer justify-center hover:bg-white/90 flex-1",children:[(0,m.jsx)("span",{className:"flex items-center justify-center w-[clamp(18px,1.4vw,24px)] h-[clamp(18px,1.4vw,24px)] rounded-full bg-black flex-shrink-0",children:(0,m.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"white",className:"w-[clamp(10px,0.8vw,14px)] h-[clamp(10px,0.8vw,14px)]",children:(0,m.jsx)("path",{d:"M8 5v14l11-7z"})})}),(0,m.jsx)("span",{className:"whitespace-nowrap",children:"Watch Now"})]}),(0,m.jsxs)("div",{className:"relative group",children:[(0,m.jsx)("span",{className:"absolute bottom-full mb-2 left-1/2 -translate-x-1/2 bg-white text-black text-xs px-2 py-1 rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-50",children:"Watchlist"}),(0,m.jsx)("button",{onClick:function(e){e.stopPropagation(),e.preventDefault(),w&&w(h)},className:"flex items-center justify-center w-[clamp(28px,2.2vw,36px)] h-[clamp(28px,2.2vw,36px)] rounded-full border border-white/30 transition-all duration-300 flex-shrink-0 ".concat(g||this.state.isWatchHover?"bg-white":"bg-[#333333]"),onMouseEnter:function(){return x.setState({isWatchHover:!0})},onMouseLeave:function(){return x.setState({isWatchHover:!1})},children:(0,m.jsx)("img",{src:g?"/images/shorts_icons/Watchlist_selected.svg":this.state.isWatchHover?"/images/shorts_icons/Watchlist_unselected-1.svg":"/images/shorts_icons/Watchlist_unselected.svg",alt:"Watchlist",className:"w-[clamp(14px,1.2vw,20px)] h-[clamp(14px,1.2vw,20px)]"})})]}),(0,m.jsxs)("div",{className:"relative group",children:[(0,m.jsx)("span",{className:"absolute bottom-full mb-2 left-1/2 -translate-x-1/2 bg-white text-black text-xs px-2 py-1 rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-50",children:"Share"}),(0,m.jsx)("button",{onClick:function(e){e.stopPropagation(),e.preventDefault(),b&&b(h)},className:"flex items-center justify-center w-[clamp(28px,2.2vw,36px)] h-[clamp(28px,2.2vw,36px)] rounded-full border border-white/30 transition-all duration-300 flex-shrink-0 ".concat(this.state.isShareHover?"bg-white":"bg-[#333333]"),onMouseEnter:function(){return x.setState({isShareHover:!0})},onMouseLeave:function(){return x.setState({isShareHover:!1})},children:(0,m.jsx)("img",{src:this.state.isShareHover?"/images/shorts_icons/Share_hover.svg":"/images/shorts_icons/share.svg",alt:"Share",className:"w-[clamp(14px,1.2vw,20px)] h-[clamp(14px,1.2vw,20px)]"})})]})]})]})})}}]),n}(p.Component);(0,c.Z)(g,"contextType",v.Z)},495:function(e,t,n){n.d(t,{E:function(){return d}});var r=n(7812),s=n(29),o=n(7794),a=n.n(o),i=n(5658),l=n(1388),c=n(5518),p=n(732),u=n(6388);function d(e,t,n){return x.apply(this,arguments)}function x(){return x=(0,s.Z)(a().mark((function e(t,n,s){var o,d,x,v,h,m,f,g,w,b,k,N,y,S,j,_,E,C,I,M,R,P,Z,L,D,H,W,O,G,B=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v=B.length>3&&void 0!==B[3]?B[3]:{},!c.tq){e.next=6;break}return b=null!==(h=null===(m=t.generalInfo)||void 0===m||null===(f=m.contentRights)||void 0===f?void 0:f[0])&&void 0!==h?h:"",k=null!==(g=null===(w=t.generalInfo)||void 0===w?void 0:w._id)&&void 0!==g?g:"",(0,p.B5)(b,k),e.abrupt("return");case 6:if(setTimeout((function(){(0,u.bv)("content_click",t)}),500),null!=localStorage.getItem("Logged-in")&&void 0!=localStorage.getItem("Logged-in")&&"true"===localStorage.getItem("Logged-in")){e.next=11;break}return s(!0),e.abrupt("return");case 11:if(N=null!==(o=t.generalInfo._id)&&void 0!==o?o:"",y=null===(d=t.generalInfo)||void 0===d||null===(x=d.type)||void 0===x?void 0:x.toLowerCase(),e.prev=13,_=N,E=null,"vodchannelmd"!==y){e.next=32;break}return C="GID_".concat(N),e.next=20,i.default.shortsGetEpisodes(C,1,500);case 20:if(!((I=e.sent)&&I.data&&I.data.results&&I.data.results.length>0)){e.next=30;break}if(0!==(M=I.data.results.filter((function(e){return e._id!==N}))).length){e.next=26;break}return console.error("No child episodes found after filtering parent for vodchannelmd:",N),e.abrupt("return");case 26:R=(0,r.Z)(M).sort((function(e,t){var n,r,s,o;return(null!==(n=null===(r=e.content)||void 0===r?void 0:r.siblingOrder)&&void 0!==n?n:999)-(null!==(s=null===(o=t.content)||void 0===o?void 0:o.siblingOrder)&&void 0!==s?s:999)})),_=R[0]._id,e.next=32;break;case 30:return console.error("No episodes found for vodchannelmd:",N),e.abrupt("return");case 32:if("showmd"!==y){e.next=54;break}return e.next=35,i.default.shortsGetEpisodes("GID_".concat(N),1,500);case 35:if(!((P=e.sent)&&P.data&&P.data.results&&P.data.results.length>0)){e.next=52;break}return Z=(0,r.Z)(P.data.results).sort((function(e,t){var n,r,s,o;return(null!==(n=null===(r=e.content)||void 0===r?void 0:r.siblingOrder)&&void 0!==n?n:999)-(null!==(s=null===(o=t.content)||void 0===o?void 0:o.siblingOrder)&&void 0!==s?s:999)})),L=Z[0],E=L._id,e.next=42,i.default.shortsGetEpisodes("GID_".concat(L._id),1,500);case 42:if(!((D=e.sent)&&D.data&&D.data.results&&D.data.results.length>0)){e.next=48;break}H=(0,r.Z)(D.data.results).sort((function(e,t){var n,r,s,o;return(null!==(n=null===(r=e.content)||void 0===r?void 0:r.siblingOrder)&&void 0!==n?n:999)-(null!==(s=null===(o=t.content)||void 0===o?void 0:o.siblingOrder)&&void 0!==s?s:999)})),_=H[0]._id,e.next=50;break;case 48:return console.error("No episodes found in first season:",L._id),e.abrupt("return");case 50:e.next=54;break;
1case 52:return console.error("No seasons found for show:",N),e.abrupt("return");case 54:return e.next=56,i.default.shortsGetMediaLinks(_,1,!1);case 56:if((W=e.sent)&&200===W.status){e.next=60;break}return console.error("Media API failed:",W),e.abrupt("return");case 60:if((O=(0,l.Z)(W.data.response,"A3s68aORSgHs$71P"))&&200===O.code&&"SUCCESS"===O.status&&!(!(null!==(S=O.results)&&void 0!==S&&S.length)>0)){e.next=64;break}return console.error("Media response invalid:",O),e.abrupt("return");case 64:if(G=null===(j=O.results[0])||void 0===j?void 0:j.videos){e.next=68;break}return console.error("No videos found in media response"),e.abrupt("return");case 68:"ERR_USER_NOT_SUBSCRIBED"===G.status||"ERR_UPGRADE_PREMIUM"===G.status?(sessionStorage.setItem("isPaidContent","true"),sessionStorage.setItem("isFromShorts","/micro-drama"),n.push("/subscription/plans")):G&&G.values&&G.values.length>0?"vodchannelmd"===y?n.push("/micro-drama/player/".concat(_,"?parentId=").concat(N)):"showmd"===y?n.push("/micro-drama/player/".concat(_,"?parentId=").concat(N,"&seasonId=").concat(E)):n.push("/micro-drama/player/".concat(_)):"ERR_STREAMS_LIMIT_EXCEEDED"===G.status?v.setConcurrentErrorMsg&&v.setShowConcurrentPopUp?(v.setConcurrentErrorMsg(G.message),v.setShowConcurrentPopUp(!0)):window.dispatchEvent(new CustomEvent("shorts-concurrent-error",{detail:{message:G.message}})):console.error("No valid video values found"),e.next=74;break;case 71:e.prev=71,e.t0=e.catch(13),console.error("handleShortsCardClick error:",e.t0);case 74:case"end":return e.stop()}}),e,null,[[13,71]])}))),x.apply(this,arguments)}}}]);

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.