1function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}!function(){try{var e="u">("undefined"==typeof window?"undefined":_type_of(window))?window:"u">("undefined"==typeof global?"undefined":_type_of(global))?global:"u">("undefined"==typeof globalThis?"undefined":_type_of(globalThis))?globalThis:"u">("undefined"==typeof self?"undefined":_type_of(self))?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7c0b62e5-f96d-44f3-8328-c1935266b31d",e._sentryDebugIdIdentifier="sentry-dbid-7c0b62e5-f96d-44f3-8328-c1935266b31d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[76211],{1698:function(e){e.exports={reply:"_6psKD8","reply--isPc":"rWKW5S",reply__form:"invT_b",reply__input:"_4dgIwG",reply__send:"o_drPn","reply__send--fill":"OLH4Ch"}},7902:function(e,n,l){"use strict";l.d(n,{A:function(){return y}});var r=l(76653),t=l(31827),i=l(34458),o=l(99195),s=l(33231),a=l.n(s),u=l(43206),c=l.n(u),d=l(39876),f=l(99537),v=l(38476),_=l(58408),p=l(80105),m=l(86043),h=l(48670),g=function(e){var n,l;"mouseup"===e.type&&(null==(n=(l=e.target).closest)?void 0:n.call(l,".bs-light-carousel"))||e.stopPropagation()},y=function(e){var n,l,s=e.reelId,u=e.source,y=e.product,x=e.className,w=e.comesFrom,b=e.vendorTitle,j=e.onProductClick,k=e.vendorIdentifier,I=(0,_.A)(),C=(0,h.d)().reelComesFromPage,N=(0,p.U)().ua.isPc,S=(0,o.useRef)(!1),E=0===(null==y?void 0:y.inventory);return(0,t.jsxs)("div",{onMouseUp:g,onClick:function(){(null==y?void 0:y.id)&&(null==j||j(),setTimeout(function(){var e,n,l,r,t=k||(null==y||null==(r=y.vendor)?void 0:r.identifier),i=(null==y?void 0:y.url)||(t?"/".concat(t,"/product/").concat(y.id):"/p/".concat(y.id)),o=i.startsWith("/p/")&&t?"/".concat(t,"/product/").concat(y.id):i;(0,v.Vm)({targetUrl:o,component:null!=(e=null==w?void 0:w.component)?e:u,meta:null!=(n=null==w?void 0:w.meta)?n:JSON.stringify({reelId:s}),from:null!=(l=null==w?void 0:w.from)?l:w?null:C}),I.push(i)},200))},className:(0,i.default)(a()["new-product-entity"],(l={},(0,r._)(l,a()["new-product-entity--out-of-stock"],E),(0,r._)(l,a()["new-product-entity--with-vendor"],!!b),l),x),children:[(0,t.jsx)("div",{className:a()["new-product-entity-img"],children:(0,t.jsx)("img",{draggable:!1,src:null==y||null==(n=y.photo)?void 0:n.small,alt:y.title})}),(0,t.jsxs)("div",{className:a()["new-product-entity__detail"],children:[(0,t.jsx)("div",{className:a()["new-product-entity__detail-title"],children:y.title}),b&&(0,t.jsxs)("div",{className:a()["new-product-entity__detail-vendor"],children:[(0,t.jsx)(c(),{name:"bi-vendor",size:N?"20":"16",color:"var(--gray-600)"}),(0,t.jsx)("span",{children:b})]}),(0,t.jsx)("div",{className:a()["new-product-entity__detail-price"],children:E?(0,t.jsx)("span",{children:"ÙØ§Ù
ÙØ¬Ùد"}):(0,t.jsxs)(t.Fragment,{children:[(0,m.n8)((0,m.f2)(y.price)),(0,t.jsx)(c(),{name:"bi-toman",size:N?"20":"16",color:"var(--gray-600)"})]})})]}),!E&&(0,t.jsx)("div",{className:a()["new-product-entity__add-to-cart"],children:(0,t.jsx)(f.A,{square:!0,size:N?"lg":"sm",product:y,light:!0,buttonProps:{variant:"text"},onAfterAddToCart:function(e){S.current=!0,(0,d.publishEvent)("reelsAddToCart",{reelId:s,source:u,productId:e.id})}})})]})}},8447:function(e,n,l){"use strict";l.d(n,{A:function(){return m}});var r=l(31827),t=l(34458),i=l(99195),o=l(73094),s=l.n(o),a=l(90101),u=l(86759),c=l(7902),d=l(71075),f=l.n(d),v=l(34884),_=l(45293),p=function(e){e.stopPropagation()},m=function(e){var n=e.links,l=e.reelId,o=e.source,d=e.onClose,m=e.products,h=e.hashtags,g=e.sellerUsers,y=e.isInfluencer,x=e.onSellerClick,w=e.vendorIdentifier,b=e.onSellerListOpen,j=e.sellerProductsRef,k=e.onSellerListClose,I=e.isReelInstance,C=void 0!==I&&I,N=(0,_.u)().source,S=null!=o?o:N,E=(0,i.useMemo)(function(){return Array.isArray(n)?n:[]},[n]),P=(0,i.useMemo)(function(){return Array.isArray(m)?m:[]},[m]),L=(0,i.useMemo)(function(){return Array.isArray(h)?h:[]},[h]),A=P.length>0,T=L.length>0,U=E.length>0,R=y&&A&&(null==g?void 0:g.length)>0;if(!A&&!U&&!T)return null;var M=(R?0:P.length)+E.length;return(0,r.jsxs)("div",{className:s().wrapper,onClick:p,onMouseDown:p,onTouchEnd:p,onTouchStart:p,onTouchMove:p,children:[R&&(0,r.jsx)(v.A,{ref:j,reelId:l,source:S,products:P,sellerUsers:g,onSellerClick:x,onSellerListOpen:b,onSellerListClose:k,onLeaveReelViewer:d}),(!R||U)&&(A||U)&&(0,r.jsxs)(f(),{align:"start",className:s().wrapper__carousel,children:[A&&!R&&P.map(function(e){return(0,r.jsx)(f().Item,{className:(0,t.default)(s()["wrapper__carousel-item"],M>1&&s()["wrapper__carousel-item--multiple"]),children:(0,r.jsx)(c.A,{product:e,onProductClick:d,vendorIdentifier:w,reelId:l,source:S})},null==e?void 0:e.id)}),U&&E.map(function(e,n){return(0,r.jsx)(f().Item,{className:(0,t.default)(s()["wrapper__carousel-item"],M>1&&s()["wrapper__carousel-item--multiple"]),children:(0,r.jsx)(a.A,{link:e,onLinkClick:d})},"link-".concat(n))})]}),T&&(0,r.jsx)(f(),{align:"start",className:s()["wrapper__hashtags-carousel"],children:L.map(function(e){return(0,r.jsx)(f().Item,{className:s()["wrapper__hashtags-item"],children:(0,r.jsx)(u.A,{hashtag:e,onHashtagClick:d,isReelInstance:C})},null==e?void 0:e.id)})})]})}},13511:function(e){e.exports={reels:"iIjHAd",reels__container:"gwOgqt","reels__back-action-icon":"DpoW4e",reels__item:"ev5Wty","reels__not-available":"_sa3W4",reels__modal:"u4RNQC","reels__current-reel-loading":"BKhAvC",reels__loading:"sqkuWB",reels__navigation:"Agpp6_",reels__next:"NUsPLY",reels__prev:"y3woNa","gesture-hint":"j1lUyA",swipe:"IG1n_Q"}},15415:function(e,n,l){"use strict";l.d(n,{i:function(){return c}});var r=l(3808),t=l(82322),i=l(99195),o=l(11074),s=l(57803),a=l(44258),u=l(63224),c=function(){var e=(0,o.jE)();return(0,i.useCallback)(function(n,l){(0,t._)(e.getQueriesData({queryKey:["reels"],exact:!1})).concat((0,t._)(e.getQueriesData({queryKey:["mixed-page-discovery"],exact:!1}
1))).forEach(function(t){var i=(0,r._)(t,1)[0];e.setQueryData(i,function(e){return function(e,n,l){if(!e)return e;if((null==e?void 0:e.id)===n&&(0,u.rV)(e))return(0,s._)({},e,l);if(Array.isArray(e)){var r=!1,t=e.map(function(e){return(null==e?void 0:e.id)===n?(r=!0,(0,s._)({},e,l)):e});return r?t:e}if(null==e?void 0:e.pages){var i=!1,o=e.pages.map(function(e){if(null==e?void 0:e.reels){var r=!1,t=e.reels.map(function(e){return(null==e?void 0:e.id)===n?(r=!0,(0,s._)({},e,l)):e});if(r)return i=!0,(0,a._)((0,s._)({},e),{reels:t})}if(null==e?void 0:e.components){var o=!1,u=e.components.map(function(e){var r;return"reel"===(null==e?void 0:e.type)&&(null==e||null==(r=e.reel)?void 0:r.id)===n?(o=!0,(0,a._)((0,s._)({},e),{reel:(0,s._)({},e.reel,l)})):e});if(o)return i=!0,(0,a._)((0,s._)({},e),{components:u})}return e});return i?(0,a._)((0,s._)({},e),{pages:o}):e}if(null==e?void 0:e.reels){var c=!1,d=e.reels.map(function(e){return(null==e?void 0:e.id)===n?(c=!0,(0,s._)({},e,l)):e});return c?(0,a._)((0,s._)({},e),{reels:d}):e}if(null==e?void 0:e.openapiRawData){var f=!1,v=e.openapiRawData.map(function(e){return(null==e?void 0:e.id)===n?(f=!0,(0,s._)({},e,l)):e});return f?(0,a._)((0,s._)({},e),{openapiRawData:v}):e}return e}(e,n,l)})})},[e])}},16008:function(e,n,l){"use strict";var r=function(e){var n=e.buttonProps,l=e.targetUserId,r=e.eventData,_=void 0===r?null:r,y=e.targetUserHashId,x=(0,m.Z2)(["isLoggedIn","currentUser"]),w=x.isLoggedIn,b=x.currentUser,j=(0,s._)((0,d.useState)(!1),2),k=j[0],I=j[1],C=(0,v.jE)(),N=(0,h.V)().authForm.toggleModal,S=(0,g.Y)(l,{enabled:w&&!!l}),E=S.data,P=S.isLoading,L=(0,g.s)({enabled:!!y,targetUserHashid:y,action:k?"unfollow":"follow"},{onSuccess:function(){_&&"object"===(void 0===_?"undefined":(0,a._)(_))&&(0,f.publishEvent)("followClicked",{name:_.n
1ame,isUnfollow:!k,vendorId:_.vendorId,vendorName:_.vendorName,targetUserId:_.targetUserId,followSource:_.followSource,vendorIdentifier:_.vendorIdentifier}),I(function(e){return!e}),C.invalidateQueries({exact:!0,queryKey:["user-following-status",l]}),C.invalidateQueries({queryKey:["follow-stats"]}),C.invalidateQueries({queryKey:["latest-followings"]}),C.invalidateQueries({queryKey:["followings",null==b?void 0:b.id]})}}),A=L.mutate,T=L.isPending,U=(P||T)&&w,R="function"==typeof n?n({isFollowing:k}):n;return(0,d.useEffect)(function(){I(null==E?void 0:E.hasFollowed)},[null==E?void 0:E.hasFollowed]),(0,c.jsx)(p(),(0,o._)((0,i._)({loading:U,color:k?"secondary":"primary",variant:k?"outline":"fill",label:k?"Ø¯ÙØ¨Ø§Ù کردÙâØ§ÛØ¯":"Ø¯ÙØ¨Ø§Ù Ú©ÙÛØ¯"},R),{onClick:function(e){return(0,t._)(function(){return(0,u._)(this,function(n){switch(n.label){case 0:return e.stopPropagation(),[4,window.scheduler.yield()];case 1:return n.sent(),w?A():N(),[2]}})})()}}))};l.d(n,{A:function(){return r}});var t=l(3050),i=l(57803),o=l(44258),s=l(3808),a=l(852),u=l(65699),c=l(31827),d=l(99195),f=l(39876),v=l(11074),_=l(90327),p=l.n(_),m=l(9953),h=l(83118),g=l(17890)},17890:function(e,n,l){"use strict";l.d(n,{Y:function(){return o},s:function(){return s}});var r=l(57803),t=l(11074),i=l(38559),o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,t.IT)(["user-following-status",e],function(){return(0,i.JZ)(e)},(0,r._)({},n))},s=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,t.n_)(function(){return(0,i.pz)(e)},n)}},24981:function(e,n,l){"use strict";l.d(n,{A:function(){return d}});var r=l(31827),t=l(28164),i=l.n(t),o=l(40618),s=l.n(o),a=l(99195),u=l(91616),c=(0,a.memo)(s()),d=(0,a.memo)(function(e){var n=e.muted,l=e.video,t=e.onEnd,o=e.onLoad,s=e.poster,d=e.onPlay,f=e.preload,v=e.onLoading,_=e.shouldPlay,p=e.loop,m=e.onTimeUpdate,h=(0,a.useRef)(null);return(0,a.useEffect)(function(){null!==h.current&&(h.current.mute=n)},[n]),(0,a.useEffect)(function(){var e=function(){var e;null==o||o(null==(e=h.current)?void 0:e.duration)},n=function(){null==t||t()},l=function(){null==v||v()},r=function(){null==d||d()},i=function(){m&&h.current&&m({currentTime:h.current.currentTime,duration:h.current.duration})},s=function(){var e,n=h.current;(null==n?void 0:n.error)&&console.warn("Video playback error:",(null==(e=n.error)?void 0:e.message)||"Unknown error")},a=h.current;return null==a||a.addEventListener("loadedmetadata",e),null==a||a.addEventListener("ended",n),null==a||a.addEventListener("waiting",l),null==a||a.addEventListener("canplay",r),null==a||a.addEventListener("timeupdate",i),null==a||a.addEventListener("error",s),function(){null==a||a.removeEventListener("loadedmetadata",e),null==a||a.removeEventListener("ended",n),null==a||a.removeEventListener("waiting",l),null==a||a.removeEventListener("canplay",r),null==a||a.removeEventListener("timeupdate",i),null==a||a.removeEventListener("error",s)}},[o,t,d,_,v,m]),(0,a.useEffect)(function(){var e=h.current;if(e){if(_){var n=e.play();(null==n?void 0:n.catch)&&n.catch(function(e){(0,u.dI)(e)})}else e.pause();return function(){e.pause()}}},[_]),(0,r.jsx)(c,{poster:s,playsInline:!0,ref:h,muted:n,controls:!1,className:i()["story-video-content"],src:l.url,loop:void 0!==p&&p,preload:f,children:(0,r.jsx)("source",{src:l.url,type:"video/mp4"})})})},28164:function(e){e.exports={"story-video-content":"tHH_XH"}},33231:function(e){e.exports={"new-product-entity":"_9cxQpR","new-product-entity-img":"_0bprAg","new-product-entity__detail":"Lhlgol","new-product-entity__detail-title":"IY0_Dj","new-product-entity__detail-vendor":"evTlzN","new-product-entity__detail-price":"iIFoc7","new-product-entity__add-to-cart":"lhlgSa","new-product-entity--with-vendor":"wdPE0k","new-product-entity--out-of-stock":"_6KpIB"}},34884:function(e,n,l){"use strict";l.d(n,{A:function(){return k}});var r=l(76653),t=l(57803),i=l(3808),o=l(31827),s=l(34458),a=l(64030),u=l.n(a),c=l(36501),d=l.n(c),f=l(16008),v=l(73025),_=l(9953),p=l(7902),m=l(20736),h=l(80105),g=l(58594),y=l.n(g),x=l(71075),w=l.n(x),b=l(99195),j=u()(function(){return Promise.all([l.e(39615),l.e(3964)]).then(l.bind(l,3964))},{loadableGenerated:{webpack:function(){return[3964]}},ssr:!1}),k=(0,b.forwardRef)(function(e,n){var l,a=e.reelId,u=e.source,c=e.children,g=e.products,x=e.sellerUsers,k=e.onSellerClick,I=e.onSellerListOpen,C=e.onSellerListClose,N=e.showSellerChat,S=e.onLeaveReelViewer,E=e.tone,P=void 0===E?"on-media":E,L=e.layout,A=e.sellerSummaryPlacement,T=void 0===A?"before-products":A,U=(0,h.U)().ua,R=(0,_.Z2)(["userId"]).userId,M=(0,i._)((0,v.j1)(),2),
1V=M[0],D=M[1],z=D.open,F=D.close,O=(0,b.useMemo)(function(){var e=new Map(x.map(function(e){return[e.id,e]})),n=new Map;return{productSellerPairs:g.flatMap(function(l){var r=l.userId,t=e.get(r);if(!t)return[];var i=n.get(r)||[];return i.push(l),n.set(r,i),[{product:l,sellerUser:t}]}),sellerProductGroups:x.flatMap(function(e){var l=n.get(e.id);return l?[{sellerUser:e,products:l}]:[]})}},[g,x]),q=O.productSellerPairs,H=O.sellerProductGroups,K=function(){0!==q.length&&(null==I||I(),z())};if((0,b.useImperativeHandle)(n,function(){return{openSellerList:K}}),0===q.length)return null;var G=H.slice(0,3).map(function(e){return e.sellerUser}),Q=H[0].sellerUser,B=Q.vendor.title,Y=H.length-1,W=H.length>1,X=1===H.length&&Q.id!==R,Z=function(e){var n=e.product,l=e.sellerUser;return(0,o.jsx)(p.A,{product:n,vendorTitle:W?l.vendor.title:void 0,vendorIdentifier:l.vendor.identifier,reelId:a,source:u,onProductClick:S},n.id)},J=(0,o.jsxs)("div",{className:d()["influencer-seller-products__seller-summary"],children:[(0,o.jsxs)("div",{className:d()["influencer-seller-products__seller-trigger"],onClick:function(){1!==H.length?K():null==k||k(H[0].sellerUser)},children:[(0,o.jsx)("span",{className:d()["influencer-seller-products__avatars"],children:G.map(function(e){var n;return(0,o.jsx)(y(),{size:W?"40":"44",lazy:!0,src:(null==(n=e.avatar)?void 0:n.small)||m.x.src,className:d()["influencer-seller-products__avatar"]},e.id)})}),(0,o.jsxs)("span",{className:d()["influencer-seller-products__seller-details"],children:[(0,o.jsx)("span",{className:d()["influencer-seller-products__seller-label"],children:H.length>1?"غرÙÙâÙØ§":"غرÙÙ"}),(0,o.jsxs)("span",{className:d()["influencer-seller-products__seller-title"],children:[(0,o.jsx)("span",{className:d()["influencer-seller-products__primary-seller-title"],children:B}),Y>0&&(0,o.jsx)("span",{className:d()["influencer-seller-products__additional-sellers-title"],children:" Ù ".concat(Y," غرÙ٠دÛگر")})]})]})]}),X&&(0,o.jsx)("div",{className:d()["influencer-seller-products__summary-action"],children:(0,o.jsx)(f.A,{eventData:{name:Q.name,targetUserId:Q.id,vendorId:Q.vendor.id,vendorName:Q.vendor.title,vendorIdentifier:Q.vendor.identifier,followSource:"default"===P?"reel-page":u?"reel-".concat(u):"reel"},targetUserId:Q.id,targetUserHashId:Q.hashId,buttonProps:(0,t._)({size:U.isPc?"xs":"xxs"},"default"!==P&&{variant:"fill"})})})]}),$="stacked"===(void 0===L?"carousel":L)?(0,o.jsx)("div",{className:d()["influencer-seller-products__stack"],children:q.map(function(e){return Z(e)})}):(0,o.jsx)(w(),{align:"start",className:d()["influencer-seller-products__carousel"],children:q.map(function(e){return(0,o.jsx)(w().Item,{className:(0,s.default)(d()["influencer-seller-products__carousel-item"],q.length>1&&d()["influencer-seller-products__carousel-item--multiple"]),children:Z(e)},e.product.id)})});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:(0,s.default)(d()["influencer-seller-products"],(l={},(0,r._)(l,d()["influencer-seller-products--default-tone"],"default"===P),(0,r._)(l,d()["influencer-seller-products--summary-after"],"after-products"===T),l)),children:["before-products"===T&&J,$,c&&(0,o.jsx)("div",{className:d()["influencer-seller-products__supplemental-content"],children:c}),"after-products"===T&&J]}),V&&(0,o.jsx)(j,{reelId:a,source:u,showSellerChat:void 0===N||N,sellerProductGroups:H,onClose:function(){F(),null==C||C()},onLeaveReelViewer:function(){F(),null==S||S()}})]})})},34953:function(e){e.exports={ss:"WWkWpL",ss__footer:"_9NB24v","ss__footer--reply":"nB4xA1",ss__header:"p6iN4o",ss__vendor:"_4NxAgK","ss__vendor-introduction":"Ufxzoj","ss__vendor-identifier":"wqqcig","ss__vendor-identifier-title":"_922SPR","ss__vendor-identifier-name":"_6thire","ss__vendor-bottom-action":"ARXLCs","ss__vendor-info":"vLSdZm","ss__vendor-hashtags":"Mi7mrc","ss__vendor-product-info":"f3tXgL","ss__thumbnail-bg":"iEjdhC",ss__content:"tiVhxn","ss__meta-product":"KQOp3B","ss__meta-hashtag":"v0GeEB",mute:"Bkivs_","ss__top-actions":"KNP0_N","ss__top-actions--hidden":"F_yA41","ss__bottom-actions":"_1yg3qM",ss__views:"AhwMd5","ss__views--hidden":"_ylG8f","ss__play-pause-indicator":"g3m5gT"}},36501:function(e){e.exports={"influencer-seller-products__carousel":"_3SVgpq","influencer-seller-products__carousel-item":"Tvc
1auy","influencer-seller-products__carousel-item--multiple":"xwDKb8","influencer-seller-products__seller-summary":"eviKrY","influencer-seller-products__seller-trigger":"flOI0z","influencer-seller-products__avatars":"SG_eGY","influencer-seller-products__avatar":"cR6yEW","influencer-seller-products__seller-details":"sxiH9K","influencer-seller-products__seller-label":"_1tFpLa","influencer-seller-products__seller-title":"hYtf5_","influencer-seller-products__primary-seller-title":"i87Wqt","influencer-seller-products__additional-sellers-title":"T_S9lO","influencer-seller-products__summary-action":"zuU3Ui","influencer-seller-products__stack":"Uxmuph","influencer-seller-products__supplemental-content":"f525tL","influencer-seller-products--summary-after":"RK4pql","influencer-seller-products--default-tone":"cU8__B"}},45293:function(e,n,l){"use strict";var r=function(e){var n,l,r,t=e.value,u=e.children,c=null!=(n=null==t?void 0:t.source)?n:s.source,d=null!=(l=null==t?void 0:t.origin)?l:s.origin,f=null!=(r=null==t?void 0:t.canManageReels)?r:s.canManageReels,v=(0,o.useMemo)(function(){return{source:c,origin:d,canManageReels:f}},[c,d,f]);return(0,i.jsx)(a.Provider,{value:v,children:u})},t=function(){return(0,o.useContext)(a)};l.d(n,{V:function(){return r},u:function(){return t}});var i=l(31827),o=l(99195),s={source:null,origin:null,canManageReels:!1},a=(0,o.createContext)(s)},48670:function(e,n,l){"use strict";l.d(n,{d:function(){return s}});var r=l(99195),t=l(49522),i=l(58408),o=[{keys:["reelId"],page:t.i4.share},{keys:["uId"],page:t.i4.pgp},{keys:["hashtag"],page:t.i4.hashtag},{keys:["vendorIdentifier","productId"],page:t.i4.pdp},{keys:["vendorIdentifier"],page:t.i4.vendor}],s=function(){var e=(0,i.A)().query;return{reelComesFromPage:(0,r.useMemo)(function(){var n=!0,l=!1,r=void 0;try{for(var i,s=o[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var a=i.value,u=a.keys,c=a.page;if(u.every(function(n){return n in e}))return c}}catch(e){l=!0,r=e}finally{try{n||null==s.return||s.return()}finally{if(l)throw r}}return t.i4.home},[e])}}},53262:function(e){e.exports={"new-hashtag-entity":"sicIHP","new-hashtag-entity__detail":"_4x6DTo"}},56871:function(e,n,l){"use strict";var r=function(e){var n=e.primaryAction,l=e.backgroundImage,r=e.secondaryAction,i=e.loading,s=void 0!==i&&i,u=e.title,d=void 0===u?"اداÙ
Ù Ù
Ø³ÛØ±":u,v=e.subtitle,p=void 0===v?"Ù
ÛâØ®ÙØ§Û بازÙ
ÙÛØ¯Ø¦Ù ببÛÙÛØ":v;return(0,t.jsxs)("div",{className:o()["load-more-slide"],children:[l&&(0,t.jsx)(_(),{src:l,ratio:1.7,alt:"load-more",className:o()["load-more-slide__bg"]}),(0,t.jsx)("div",{className:o()["load-more-slide__overlay"]}),(0,t.jsxs)("div",{className:o()["load-more-slide__content"],children:[(0,t.jsx)(f(),{name:"bi-vendor-video",size:"32",color:"var(--white)"}),(0,t.jsxs)(a(),{display:"flex",flexDirection:"column",gap:8,children:[d&&(0,t.jsx)("h3",{className:o()["load-more-slide__title"],children:d}),p&&(0,t.jsx)("p",{className:o()["load-more-slide__subtitle"],children:p})]}),(n||r)&&(0,t.jsxs)(a(),{display:"flex",alignItems:"center",gap:12,children:[r&&(0,t.jsx)(c(),{onClick:r.onClick,label:r.label,variant:"fill",color:"secondary",size:"xs"}),n&&(0,t.jsx)(c(),{onClick:n.onClick,disabled:s,loading:s,label:n.label,size:"xs"})]})]})]})};l.d(n,{A:function(){return r}});var t=l(31827),i=l(96030),o=l.n(i),s=l(46312),a=l.n(s),u=l(90327),c=l.n(u),d=l(43206),f=l.n(d),v=l(57152),_=l.n(v)},59358:function(e){e.exports={"reel-actions":"EAIdr5","reel-actions__icon":"nS6S1p","reel-actions__more-item":"FSpDHY","reel-actions__more-item-head":"mlHfF8","reel-actions__more-item-label":"McdVAw"}},73094:function(e){e.exports={wrapper:"Wjeng_","wrapper__carousel-item":"UgxVHP","wrapper__carousel-item--multiple":"rB9w4l",wrapper__carousel:"TkE_fm","wrapper__hashtags-carousel":"VDAMnk","wrapper__hashtags-item":"_7KrT2T"}},75916:function(e){e.exports={"base-image-content":"qvYZk1"}},75940:function(e){e.exports={"new-link-entity":"ohEzVu","new-link-entity-icon":"SCwXjE","new-link-entity__detail":"zOT2gp","new-link-entity__detail-title":"PGO9jU","new-link-entity__detail-path":"y_SJZ_"}},76211:function(e,n,l){"use strict";var r=function(e){var n,l,r=e.show,d=e.onClose,f=e.isLoading,v=e.reels,_=void 0===v?[]:v,p=e.showVendor,m=e.hasNextPage,h=e.fetchNextPage,x=e.setCheckPoint,w=e.viewerContext,b=e.loadMoreConfig,j=e.isFetchingNextPage,k=e.currentContentIdOnClicked,I=(0,M.U)().ua,C=(0,o._)((0,y.useState)(!1),2),N=C[0],S=C[1],E=(0,o._)((0,y.useState)(!1),2),P=E[0],L=E[1],A=(0,o._)((0,y.useState)(!!b),2),T=A[0],U=A[1];(0,y.useEffect)(function(){b||U(!1)},[b]);var V=(0,y.useRef)(),D=(0,y.useRef)(null),F=null==b?void 0:b.afterCount,O=(0,y.useMemo)(function(){return T&&F?null==_?void 0:_.slice(0,F):_},[_,F,T]),q=T&&F&&(null==O?void 0:O.length)>=F,H=(null==O?void 0:O.length)>0?null==(l=O.at(-1))||null==(n=l.video)?void 0:n.thumbnail:null,K=(0,y.useMemo)(function(){return O?q?(0,s._)(O).concat([{__isLoadMore:!0}]):O:[]},[O,q]),G=(0,y.useMemo)(function(){return null==O?void 0:O.findIndex(function(e){return(null==e?void 0:e.id)===k})},[O,k]),Q=(0,o._)((0,y.useState)(G),2),B=Q[0],Y=Q[1],W=(0,y.useMemo)(function(){var e=new Set;return B>0&&e.add(B-1),B<K.length-1&&e.add(B+1),e},[B,K.length]);(0,y.useEffect)(function(){Y(G)},[G]);var X=(0,y.useCallback)(function(){S(!1)},[]),Z=(0,y.useCallback)(function(){S(!0)},[]),J=(0,y.useCallback)(function(){S(!1)},[]),$=(0,y.useCallback)(function(){return(0,t._)(function(){return(0,a._)(this,function(e){switch(e.label){case 0:return[4,h()];case 1:return e.sent(),U(!1),[2]}})})()},[h]),ee=(0,y.useCallback)(function(){null==d||d()},[d]),ne=(0,y.useCallback)(function(e){return(0,t._)(function(){var n;return(0,a._)(this,function(l){switch(l.label){case 0:return[4,window.scheduler.yield()];case 1:return l.sent(),Y(e),null==x||x(e),n=T&&F?Math.min((null==_?void 0:_.length)||0,F):(null==_?void 0:_.length)||0,!T&&e>=n-5&&m&&h(),[2]}})})()},[_,m,h,x,T,F]),le=(0,y.useCallback)(function(){return(0,t._)(function(){return(0,a._)(this,function(e){switch(e.label){case 0:return[4,window.scheduler.yield()];case 1:return e.sent(),null==d||d(),[2]}})})()},[d]);return(0,y.useEffect)(function(){var e=setTimeout(function(){var e=null==(l=V.current)?void 0:l.swiper,n=D.current;if(e&&n){var l,r,t=n.querySelector(".".concat(Se().reels__prev)),i=n.querySelector(".".concat(Se().reels__next));if(t&&i&&(e.params.navigation.prevEl=t,e.params.navigation.nextEl=i,e.navigation.destroy(),e.navigation.init(),e.navigation.update()),!O||O.length-1!==G)return;null==(r=V.current)||r.slideTo(G)}},150);return function(){return clearTimeout(e)}},[r,G,O]),(0,y.useEffect)(function(){try{var e=Number.parseInt(localStorage.getItem("reelsGestureHintCount")||"0",10);e<4&&!I.isPc?(localStorage.setItem("reelsGestureHintCount",e+1),L(!0)):L(!1)}catch(e){L(!1)}},[null==I?void 0:I.isPc]),(0,u.jsx)(z.V,{value:w,children:(0,u.jsx)(R(),{show:r,isPlain:!0,isFullScreen:!I.isDesktop,hasPopstate:!0,onClose:le,size:"lg",className:Se().reels__modal,children:(0,u.jsxs)("div",{className:Se().reels__container,children:[(0,u.jsx)("div",{className:Se()["reels__back-action-icon"],onMouseUp:function(e){return e.stopPropagation()},onClick:le,children:(0,u.jsx)(g(),{name:"bi-right",color:"var(--white)"})}),I.isPc&&(null==K?void 0:K.length)>1&&(0,u.jsx)(ue(),{target:".bs-modal__container",children:(0,u.jsxs)("div",{className:Se().reels__navigation,ref:D,children:[(0,u.jsx)(ie(),{className:Se().reels__next,color:"secondary",variant:"outline",icon:"bi-angle-down",size:"lg",square:!0}),(0,u.jsx)(ie(),{className:Se().reels__prev,color:"secondary",variant:"outline",icon:"bi-angle-up",size:"lg",square:!0})]})}),(0,u.jsx)(Le(),{onSlideChange:function(e){return ne(e.activeIndex)},ref:V,userAgent:I.ua,isVertical:!0,slidesPerView:I.isMobile?1:1.1,spaceBetween:30*!I.isMobile,className:Se().reels,virtual:!0,keyboard:!0,otherOptions:{initialSlide:B,touchStartPreventDefault:!1,virtual:{addSlidesAfter:1,addSlidesBefore:1}},navigation:{prevEl:".".concat(Se().reels__prev),nextEl:".".concat(Se().reels__next)},children:null==K?void 0:K.map(function(e,n){var l,r,t,o,s,a;return e.__isLoadMore?(0,u.jsx)(Le().Item,{virtualIndex:n,className:Se().reels__item,children:(0,u.jsx)(Ee.A,{backgroundImage:H,icon:null==b?void 0:b.icon,iconSize:null==b?void 0:b.iconSize,title:null==b?void 0:b.title,subtitle:null==b?void 0:b.subtitle,loading:j,primaryAction:{label:null==b||null==(t=b.primaryAction)?void 0:t.label,onClick:null!=(l=null==b||null==(o=b.primaryAction)?void 0:o.onClick)?l:$},secondaryAction:{label:null==b||null==(s=b.secondaryAction)?void 0:s.label,onClick:null!=(r=null==b||null==(a=b.secondaryAction)?void 0:a.onClick)?r:ee}})}
1,"load-more"):(0,u.jsx)(Le().Item,{virtualIndex:n,className:(0,c.default)(Se().reels__item,(0,i._)({},Se()["gesture-hint"],!(null==I?void 0:I.isPc)&&P&&G===n)),children:f||j?(0,u.jsx)("div",{className:Se().reels__loading,children:(0,u.jsx)(Te(),{})}):void 0===e?(0,u.jsx)("div",{className:Se()["reels__not-available"],children:(0,u.jsxs)("div",{children:[(0,u.jsx)("i",{className:"bi-info"}),(0,u.jsx)("span",{children:" Ù
ØªØ§Ø³ÙØ§Ù٠اÛÙ ÙÛØ¯Ø¦Ù در دسترس ÙÛØ³Øª"})]})}):(0,u.jsxs)(u.Fragment,{children:[N&&(0,u.jsx)("div",{className:Se()["reels__current-reel-loading"],children:(0,u.jsx)(Te(),{})}),(0,u.jsx)(Ce,{content:e,user:null==e?void 0:e.user,onLoad:J,onStart:X,onResume:X,onLoading:Z,onWait:!0,onClose:le,showVendor:p,playReel:n===B,preload:W.has(n)})]})},null==e?void 0:e.id)})})]})})})};l.r(n),l.d(n,{default:function(){return r}});var t=l(3050),i=l(76653),o=l(3808),s=l(82322),a=l(65699),u=l(31827),c=l(34458),d=l(57803),f=l(44258),v=l(34953),_=l.n(v),p=l(95822),m=l.n(p),h=l(43206),g=l.n(h),y=l(99195),x=(0,y.memo)(function(e){var n=e.show,l=e.onComplete,r=e.duration,t=void 0===r?2e3:r,i=(0,o._)((0,y.useState)(!1),2),s=i[0],a=i[1];return(0,y.useEffect)(function(){if(n){a(!0);var e=setTimeout(function(){a(!1),null==l||l()},t);return function(){return clearTimeout(e)}}},[n,l,t]),s?(0,u.jsx)("div",{className:m()["like-animation"],children:(0,u.jsx)(g(),{name:"bi-liked",className:m()["like-animation__heart"]})}):null}),w=l(39876),b=l(16008),j=l(49939),k=l(86043),I=l(9953),C=l(64030),N=l.n(C),S=l(59358),E=l.n(S),P=l(11074),L=l(81767),A=l(63224),T=l(49522),U=l(2796),R=l.n(U),M=l(80105),V=l(73025),D=l(92840),z=l(45293),F=N()(function(){return l.e(255).then(l.bind(l,255))},{loadableGenerated:{webpack:function(){return[255]}},ssr:!1}),O=N()(function(){return Promise.all([l.e(60439),l.e(70234)]).then(l.bind(l,70234))},{loadableGenerated:{webpack:function(){return[70234]}},ssr:!1}),q=N()(function(){return l.e(6501).then(l.bind(l,6501))},{loadableGenerated:{webpack:function(){return[6501]}},ssr:!1}),H=function(e){var n=e.content,l=e.isMuted,r=e.className,t=e.toggleMute,i=e.setIsEditing,s=(0,V.kQ)().emitEvent,a=(0,D.K)().isReelsOwner,v=(0,z.u)().canManageReels,_=(0,M.U)().ua.isPc,p=(0,o._)((0,V.j1)(),2),m=p[0],h=p[1],x=h.open,w=h.close,b=(0,o._)((0,V.j1)(),2),j=b[0],k=b[1],I=k.open,C=k.close,N=(0,o._)((0,V.j1)(),2),S=N[0],U=N[1],H=U.open,K=U.close,G=(0,o._)((0,V.j1)(),2),Q=G[0],B=G[1],Y=B.open,W=B.close,X=(0,P.jE)(),Z=(0,y.useCallback)(function(){X.setQueryData(["reels",T.Kn.owner_reels,"confirmed"],function(e){var l=(null==e?void 0:e.pages)||[];return(0,f._)((0,d._)({},e),{pages:l.map(function(e){return(0,f._)((0,d._)({},e),{reels:e.reels.filter(function(e){return(null==e?void 0:e.id)!==(null==n?void 0:n.id)}),metadata:(0,f._)((0,d._)({},e.metadata),{countConfirmed:e.metadata.countConfirmed-1})})})})})},[X,null==n?void 0:n.id]),J=(0,y.useCallback)(function(){s("show-report-content-modal",{entityType:"STORY",entityId:n.id,source:"STORY_SINGLE",reportType:L.r0.STORY})},[s,n.id]),$=(0,A.rV)(n),ee=a&&$&&v,ne=(0,y.useMemo)(function(){var e=[];return(null==n?void 0:n.video)&&e.push({id:"mute",onClick:t,label:l?"Ø±ÙØ´Ù کرد٠صدا":"بÛâØµØ¯Ø§ کردÙ",icon:l?"bi-sound-mute":"bi-sound-open"}),ee&&e.push({id:"addToStory",icon:"bi-story",label:"Ø§ÙØ²ÙØ¯Ù Ø¨Ù Ø§Ø³ØªÙØ±Û",onClick:x},{id:"edit",label:"ÙÛØ±Ø§ÛØ´",icon:"bi-edit-square",onClick:function(){i(!0),Y()}},{id:"delete",label:"ØØ°Ù",icon:"bi-trash",onClick:I}),$||e.push({id:"report",icon:"bi-report",label:"گزارش تخÙÙ",onClick:J}),e},[null==n?void 0:n.video,l,ee,$,t,Y,I,x,J,i]),le=ne.slice(0,2),re=ne.slice(2),te=re.length>0,ie=(0,y.useCallback)(function(e){K(),e.onClick()},[K]);return(0,u.jsxs)("div",{className:(0,c.default)(E()["reel-actions"],r),children:[le.map(function(e){return(0,u.jsx)("div",{className:E()["reel-actions__icon"],onClick:e.onClick,title:e.label,children:(0,u.jsx)(g(),{name:e.icon,color:"var(--white)"})},e.id)}),te&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:E()["reel-actions__icon"],onClick:H,children:(0,u.jsx)(g(),{name:"bi-more-v",color:"var(--white)"})}),(0,u.jsx)(R(),{size:"sm",show:S,onClose:K,showHeader:!0,showClose:_,children:re.map(function(e){return(0,u.jsxs)("div",{className:E()["reel-actions__more-item"],onClick:function(){return ie(e)},children:[(0,u.jsxs)("div",{className:E()["reel-actions__more-item-head"],children:[(0,u.jsx)(g(),{name:e.icon,color:"var(--gray-700)"}),(0,u.jsx)("span",{className:E()["reel-actions__more-item-label"],children:e.label})]}),(0,u.jsx)(g(),{name:"bi-angle-left"})]},e.id)})})]}),(0,u.jsx)(O,{show:m,onClose:w,content:n}),(0,u.jsx)(q,{show:Q,onClose:W,content:n,onEditComplete:function(){return i(!1)}}),(0,u.jsx)(F,{show:j,onClose:C,reelId:null==n?void 0:n.id,updateCache:Z})]})},K=l(94614),G=l(8447),Q=l(72709),B=l(98607),Y=l.n(B),W=l(83118),X=l(15415),Z=l(64090),J=N()(function(){return Promise.all([l.e(2603),l.e(82386)]).then(l.bind(l,82386))},{loadableGenerated:{webpack:function(){return[82386]}},ssr:!1}),$=function(e){var n=e.user,l=e.story,r=e.openChat,i=e.className,s=e.isReplying,v=e.show,_=e.onLikeReady,p=(0,W.V)().authForm.toggleModal,m=(0,I.Z2)(["banStatus","isLoggedIn","userId"]),h=m.banStatus,x=m.isLoggedIn,b=m.userId,C=(0,V.kQ)().emitEvent,N=(0,z.u)().source,S=(0,Z.o9)(),E=(0,j.cx)(),P=(0,Z.Pu)(),L=(0,X.i)(),T=(0,Z.yC)(),U=(0,o._)((0,y.useState)(!1),2),R=U[0],M=U[1],D=(0,o._)((0,y.useState)(0),2),F=D[0],O=D[1],q=(0,y.useRef)(null),H=(0,o._)((0,V.j1)(),2),K=H[0],G=H[1],Q=G.open,B=G.close,$=(0,A.rV)(l),ee=(0,y.useCallback)(function(e){e.stopPropagation()},[]),ne=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,w.publishEvent)(e,(0,d._)({reelId:null==l?void 0:l.id,sourceClick:N,reelViewUserId:b},n))},le=function(){var e=!R;M(e),O(function(n){return n+(e?1:-1)}),ne("reelLikeClick",{reelIsLiked:e});var n=(0,A.D_)(l);$?(E.mutate({reelId:null==l?void 0:l.id,like:e}),L(l.id,{isLiked:e,like:e?n+1:n-1,likeCount:e?n+1:n-1})):((e?S:P).mutate(null==l?void 0:l.id),null==T||T(l.id,{isLiked:!R,like:R?n-1:n+1}))},re=function(){return(0,t._)(function(){return(0,a._)(this,function(e){switch(e.label){case 0:return x?h.social?(C("open-ban-modal"),[2]):[4,window.scheduler.yield()]:(p({callback:le}),[2]);case 1:return e.sent(),le(),[2]}})})()};return(0,y.useEffect)(function(){q.current=re}),(0,y.useEffect)(function(){M(null==l?void 0:l.isLiked),O((0,A.D_)(l))},[l]),(0,y.useEffect)(function(){_&&_(function(){var e;return null==(e=q.current)?void 0:e.call(q)})},[_]),(void 0===v||v)&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:(0,
1c.default)(Y()["reel-actions"],i),onClick:ee,children:[(0,u.jsxs)("div",{onClick:re,className:Y()["reel-actions__icon"],children:[(0,u.jsx)(g(),{name:R?"bi-liked":"bi-like",size:"32",color:R?"var(--primary)":"white"}),(0,u.jsx)("div",{className:Y()["reel-actions__title"],children:"".concat((0,k.SV)(F,1e3)).replace(/^\+/,"")})]}),(0,u.jsxs)("div",{onClick:function(){return(0,t._)(function(){return(0,a._)(this,function(e){switch(e.label){case 0:return[4,window.scheduler.yield()];case 1:return e.sent(),null==r||r(),s||ne("reelChatClick"),[2]}})})()},className:Y()["reel-actions__icon"],children:[(0,u.jsx)(g(),{color:s?"var(--primary)":"var(--white)",name:s?"bi-massage-points-fill":"bi-massage-points",size:"32"}),(0,u.jsx)("div",{className:Y()["reel-actions__title"],children:"Ú¯ÙØªâÙÚ¯Ù"})]}),(0,u.jsxs)("div",{onClick:function(){return(0,t._)(function(){return(0,a._)(this,function(e){switch(e.label){case 0:return[4,window.scheduler.yield()];case 1:return e.sent(),Q(),K||ne("reelShareClick"),[2]}})})()},className:Y()["reel-actions__icon"],children:[(0,u.jsx)(g(),{color:K?"var(--primary)":"var(--white)",name:K?"bi-share-fill":"bi-share",size:"32"}),(0,u.jsx)("div",{className:Y()["reel-actions__title"],children:"اشتراکâگذارÛ"})]})]}),(0,u.jsx)(J,{type:$?"REEL":"STORY",entity:(0,f._)((0,d._)({},l),{vendor:(0,d._)({},null==n?void 0:n.vendor)}),show:K,onClose:B})]})},ee=l(58408),ne=l(67016),le=l(1698),re=l.n(le),te=l(90327),ie=l.n(te),oe=l(23177),se=l.n(oe),ae=l(13545),ue=l.n(ae),ce=l(19764),de=l(24952),fe=function(e){e.stopPropagation()},ve=(0,ce.getBasalamServiceHosts)(),_e=function(e){var n=e.user,l=e.play,r=e.story,s=e.pause,d=e.closeChat,f=e.currentUser,v=e.show,_=void 0!==v&&v,p=e.onReplyFocus,m=e.focus,h=void 0!==m&&m,g=e.handleReplyText,x=(0,y.useRef)(null),b=(0,V.dh)(),j=b.showSuccessSnackbar,k=b.showErrorSnackbar,I=(0,de.n)(),C=I.mutateAsync,N=I.isPending,S=(0,de.b)(),E=S.mutateAsync,P=S.isPending,L=(0,M.U)().ua,T=(0,z.u)().source,U=(0,o._)((0,y.useState)(""),2),R=U[0],D=U[1],F=(0,o._)((0,y.useState)(!1),2),O=F[0],q=F[1],H=(0,A.rV)(r),K=(0,W.V)().authForm.toggleModal;(0,y.useEffect)(function(){h&&setTimeout(function(){var e;null==(e=x.current)||e.focus()},0)},[h]),(0,y.useEffect)(function(){D(""),g("")},[null==r?void 0:r.id]),(0,y.useEffect)(function(){_&&window.history.pushState({modal:!0},"")},[_]),(0,y.useEffect)(function(){var e=function(e){var n;(null==(n=e.state)?void 0:n.isCustomHistory)&&(null==d||d())};return window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}},[_,d]);var G=function(e){return(0,t._)(function(){var t,i,o,s;return(0,a._)(this,function(a){switch(a.label){case 0:if(e.preventDefault(),0===R.length)return[2];a.label=1;case 1:return a.trys.push([1,4,,5]),[4,C({hashId:n.hashId,chatType:"PRIVATE"})];case 2:return t=a.sent().data,i={},H?(o=r.user.vendor.identifier,s="پاسخ داد٠شد٠ب٠ÙÛØ¯Ø¦Ù: \n".concat(ve.baseUrl,"/").concat(o,"/reel/").concat(r.id," \n--------------- \n").concat(R),i={chatId:t.id,messageType:"TEXT",message:{text:s}}):i={chatId:t.id,messageType:"STORY",message:{text:R,entityId:r.id}},[4,E(i)];case 3:return a.sent(),D(""),null==d||d(),l(),j("Ù¾ÛØ§Ù
با Ù
ÙÙÙÛØª ارسا٠شد"),(0,w.publishEvent)("reelChatSubmit",{reelId:null==r?void 0:r.id,sourceClick:T,reelViewUserId:null==n?void 0:n.id}),[3,5];case 4:return a.sent(),k("Ù¾ÛØ§Ù
Ø§Ø±Ø³Ø§Ù ÙØ´Ø¯ Ù
جددا ØªÙØ§Ø´ Ú©ÙÛØ¯"),[3,5];case 5:return[2]}})})()};if(!_)return null;var Q=(0,u.jsx)("div",{className:(0,c.default)([re().reply,(0,i._)({},re()["reply--isPc"],L.isPc)]),onClick:function(e){fe(e),q(!1),null==d||d(),l()},children:(0,u.jsxs)("form",{className:re().reply__form,onClick:fe,onSubmit:G,children:[(R.length>0||O)&&(0,u.jsx)("div",{onPointerDown:G,children:(0,u.jsx)(ie(),{loading:N||P,variant:R.length>0?"fill":"outline",color:R.length>0?"primary":"secondary",icon:"bi-send-right",className:(0,c.default)([re().reply__send,(0,i._)({},re()["reply__send--fill"],R.length)])})}),(0,u.jsx)(se(),{ref:x,onChange:function(e){D(e.target.value),null==g||g(e.target.value)}
1,value:R,placeholder:"Ø³ÙØ§Ùت ر٠ازش بپرس",wrapperClassName:re().reply__input,onFocus:function(e){if(void 0===f)return e.preventDefault(),void K();q(!0),null==p||p(),s()},readonly:void 0===f})]})});return L.isPc?Q:(0,u.jsx)(ue(),{children:Q})},pe=l(48670),me=l(84941),he=l(63407),ge=l(24981),ye=l(38476),xe=l(58594),we=l.n(xe),be=l(57152),je=l.n(be),ke=l(96600),Ie=l.n(ke),Ce=(0,y.memo)(function(e){var n,l,r,s,v,p,m,h,C,N,S,E,P,L,T=e.user,U=e.onLoad,R=e.content,V=e.onStart,F=e.onClose,O=e.onResume,q=e.playReel,B=e.onLoading,Y=e.preload,X=void 0!==Y&&Y,J=e.showVendor,le=void 0===J||J,re=(0,ee.A)(),te=(0,M.U)().ua,ie=(0,I.Z2)(["isLoggedIn","currentUser","userId"]),oe=ie.isLoggedIn,se=ie.currentUser,ae=ie.userId,ue=null!==(null==R?void 0:R.video),ce=(0,ne._q)(["isIosApp"]).isIosApp,de=!(ue&&ce),fe=(0,o._)((0,y.useState)(!1),2),ve=fe[0],xe=fe[1],be=(0,o._)((0,y.useState)(!1),2),ke=be[0],Ce=be[1],Ne=(0,o._)((0,y.useState)(!1),2),Se=Ne[0],Ee=Ne[1],Pe=(0,o._)((0,y.useState)(!1),2),Le=Pe[0],Ae=Pe[1],Te=(0,o._)((0,y.useState)(!1),2),Ue=Te[0],Re=Te[1],Me=(0,o._)((0,y.useState)(""),2),Ve=Me[0],De=Me[1],ze=(0,o._)((0,y.useState)(!1),2),Fe=ze[0],Oe=ze[1],qe=(0,o._)((0,y.useState)(!1),2),He=qe[0],Ke=qe[1],Ge=(0,o._)((0,y.useState)(!1),2),Qe=Ge[0],Be=Ge[1],Ye=(0,y.useRef)(null),We=(0,y.useRef)(null),Xe=(0,y.useRef)(!1),Ze=(0,y.useRef)(!1),Je=(0,y.useRef)(null),$e=(0,W.V)().authForm.toggleModal,en=(0,Z.Vf)().mutate,nn=(0,j.yO)().mutate,ln=(0,D.K)().isReelsOwner,rn=(0,pe.d)().reelComesFromPage,tn=(0,z.u)().source,on=(0,he.O)({source:tn,reelId:null==R?void 0:R.id,reelViewUserId:ae,reelType:null==R?void 0:R.type}),sn=on.handleTimeUpdate,an=on.resetProgress,un=Ue&&te.isPc,cn=Ue&&!te.isPc,dn=(0,A.rV)(R),fn=!0===(null==R?void 0:R.isInfluencer),vn=1===(null==R||null==(h=R.sellerUsers)?void 0:h.length)?R.sellerUsers[0]:null,_n=fn?vn:T;(0,ye.uv)({enable:q,component:tn,page:rn,meta:JSON.stringify({reelId:null==R?void 0:R.id})});var pn=function(){de&&q&&(xe(!0),null==O||O())},mn=function(){xe(!1)};(0,y.useEffect)(function(){Qe?(Xe.current=Se,mn(),Ee(!0)):(pn(),Ee(Xe.current))},[Qe]);var hn=function(e){return(0,t._)(function(){return(0,a._)(this,function(n){switch(n.label){case 0:return e?[4,window.scheduler.yield()]:[2];case 1:return n.sent(),F(),setTimeout(function(){(0,ye.Vm)({component:tn,targetUrl:e,from:rn,meta:JSON.stringify({reelId:null==R?void 0:R.id})}),re.push(e)},200),[2]}})})()},gn=(0,y.useCallback)(function(e){e.stopPropagation()},[]);(0,y.useEffect)(function(){de&&q&&(null==V||V(),xe(!0))},[q,V,de]),(0,y.useEffect)(function(){q&&(function(){var e,n,l,r,t,i,o,s,a,u,c,v,_;dn?(0,w.publishEvent)("reelNewView",(0,f._)((0,d._)({reelComesFromPage:rn,reelId:null==R?void 0:R.id,reelType:null==R?void 0:R.type,reelUserIdCreated:null==T?void 0:T.id,reelVideoId:null==R?void 0:R.videoId,reelLabel:null!=(e=null==R?void 0:R.label)?e:null,reelCreatedAt:null==R?void 0:R.createdAt,reelViewedUserId:null==se?void 0:se.id},(null==R?void 0:R.viewMeta)&&{viewMeta:R.viewMeta}),{reelComesFromComponent:tn,reelIsSeen:String(null==R?void 0:R.isSeen),vendorId:null==R||null==(l=R.user)||null==(n=l.vendor)?void 0:n.id,reelLikeCount:(0,A.D_)(R),reelSeenCount:(0,A.Bi)(R),reelIsLike:String(null==R?void 0:R.isLiked),vendorName:null==R||null==(t=R.user)||null==(r=t.vendor)?void 0:r.title,reelIsFollow:(null==R?void 0:R.isFollowed)||null,vendorIdentifier:null==R||null==(o=R.user)||null==(i=o.vendor)?void 0:i.identifier,reelProductIds:null==R||null==(s=R.products)?void 0:s.map(function(e){return null==e?void 0:e.id}),reelHashtags:null==R||null==(a=R.hashtags)?void 0:a.map(function(e){return null==e?void 0:e.hashtag})})):(0,w.publishEvent)("newStoryViewed",{storyId:null==R?void 0:R.id,isSeen:null==R?void 0:R.seenAt,userIdCreated:null==T?void 0:T.id,isLike:null==R?void 0:R.isLiked,hasVideo:!!(null==R?void 0:R.video),vendorId:null==T||null==(u=T.vendor)?void 0:u.id,isFollow:null==R?void 0:R.isFollowed,createdAt:null==R?void 0:R.createdAt,userIdViewed:null==se?void 0:se.id,vendorName:null==T||null==(c=T.vendor)?void 0:c.title,entityId:(null==R||null==(v=R.entity)?void 0:v.id)||0,vendorIdentifier:null==T||null==(_=T.vend
1or)?void 0:_.identifier,hasPhoto:(null==R?void 0:R.photo)?"true":"false",entityTypeId:(null==R?void 0:R.entityTypeId)?String(null==R?void 0:R.entityTypeId):""})}(),Ae(!1),Re(!1),an())},[q,null==R?void 0:R.id]),(0,y.useEffect)(function(){void 0!==se&&q&&(dn?nn(null==R?void 0:R.id):en(null==R?void 0:R.id))},[null==R?void 0:R.id,nn,en,dn,q,se]),(0,y.useEffect)(function(){if(Ce(!1),null==T||null==(e=T.avatar)?void 0:e.small){var e,n,l=new Image;l.src=null==T||null==(n=T.avatar)?void 0:n.small,l.addEventListener("load",function(){Ce(!0)})}},[T]);var yn=(0,y.useMemo)(function(){var e,n,l;return T?{name:null==T?void 0:T.name,targetUserId:null==T?void 0:T.id,vendorId:null==T||null==(e=T.vendor)?void 0:e.id,vendorName:null==T||null==(n=T.vendor)?void 0:n.title,vendorIdentifier:null==T||null==(l=T.vendor)?void 0:l.identifier,followSource:tn?"reel-".concat(tn):"reel"}:null},[T,tn]),xn=(0,y.useCallback)(function(e){We.current=e},[]),wn=(0,y.useCallback)(function(){oe?We.current&&(Ke(!0),(null==R?void 0:R.isLiked)||We.current()):$e()},[null==R?void 0:R.isLiked,oe,$e]),bn=(0,y.useCallback)(function(){Ke(!1)},[]),jn=(l=(n={onSingleTap:function(){Ye.current&&clearTimeout(Ye.current),ve?(mn(),Oe(!0)):(pn(),Oe(!0),de||Ae(!0)),Ye.current=setTimeout(function(){Oe(!1)},1e3)},onDoubleTap:wn}).onDoubleTap,r=n.onSingleTap,v=void 0===(s=n.delay)?300:s,p=(0,y.useRef)(0),m=(0,y.useRef)(null),(0,y.useEffect)(function(){return function(){m.current&&clearTimeout(m.current)}},[]),{handleClick:(0,y.useCallback)(function(e){var n=Date.now(),t=n-p.current;m.current&&(clearTimeout(m.current),m.current=null),t<v&&t>0?(p.current=0,clearTimeout(m.current),m.current=null,null==l||l(e)):(p.current=n,m.current=setTimeout(function(){null==r||r(e),p.current=0},v))},[l,r,v])}).handleClick,kn=(0,A.Bi)(R),In=(0,y.useMemo)(function(){return kn<5?null:"".concat((0,k.SV)(kn,1e3)).replace(/^\+/,"")},[kn]);return(0,u.jsxs)("div",{className:_().ss,children:[(0,u.jsx)("header",{className:_().ss__header,onMouseUp:gn,children:(0,u.jsx)(H,{className:(0,c.default)(_()["ss__top-actions"],!q&&_()["ss__top-actions--hidden"]),content:R,toggleMute:function(){Ee(!Se)}
1,isMuted:Se,isEditing:Qe,setIsEditing:Be})}),In&&(0,u.jsxs)("div",{className:(0,c.default)(_().ss__views,!q&&_()["ss__views--hidden"]),"aria-label":"".concat(kn," Ø¨Ø§Ø²Ø¯ÛØ¯"),children:[(0,u.jsx)(g(),{name:"bi-eye-fill",color:"var(--white)"}),(0,u.jsx)("span",{children:In})]}),fn&&(0,u.jsx)(K.A,{name:null==T?void 0:T.name,avatar:ke?null==T||null==(C=T.avatar)?void 0:C.small:null,hidden:!q,onClick:function(){var e,n=null==T||null==(e=T.vendor)?void 0:e.identifier;hn(n?"".concat((0,Q.u)(n),"/reels"):null)}}),(0,u.jsxs)("div",{className:_().ss__content,onClick:jn,children:[(null==R||null==(N=R.video)?void 0:N.thumbnail)&&(X||!ve)&&(0,u.jsx)(je(),{src:R.video.thumbnail,alt:"",className:_()["ss__thumbnail-bg"],withPlaceHolder:!0},R.id),(null==R?void 0:R.photo)&&(0,u.jsx)(me.A,{photo:R.photo}),(null==R?void 0:R.video)&&(q||X)&&(0,u.jsx)(ge.A,{poster:null==(S=R.video)?void 0:S.thumbnail,muted:!!X||Se,video:R.video,videoUrls:R.videoUrls,onLoad:X?void 0:function(){q&&(null==U||U(),xe(!!de))},shouldPlay:!X&&ve,onPlay:X?void 0:function(){(de||Le)&&q&&(xe(!0),null==V||V())},onLoading:X?void 0:function(){null==mn||mn(),null==B||B()},onTimeUpdate:X?void 0:sn,playReel:q,loop:!0,preload:X?"metadata":void 0}),(0,u.jsx)(x,{show:He,onComplete:bn}),(0,u.jsx)(Ie(),{mounted:Fe,transition:"fade",duration:400,children:function(e){return(0,u.jsx)("div",{className:_()["ss__play-pause-indicator"],style:e,children:(0,u.jsx)(g(),{name:ve?"bi-play":"bi-pause",size:"24",color:"white"})})}})]}),(0,u.jsxs)("footer",{className:(0,c.default)(_().ss__footer,(0,i._)({},_()["ss__footer--reply"],Ue)),children:[(0,u.jsx)(_e,{show:Ue,story:R,source:tn,user:_n,currentUser:se,play:pn,pause:mn,handleReplyText:function(e){De(e)},text:Ve,focus:Ue,closeChat:function(){Re(!1)}}),!cn&&(0,u.jsxs)("div",{className:!un&&_().ss__vendor,children:[!un&&(0,u.jsxs)("div",{className:_()["ss__vendor-bottom-action"],children:[!fn&&(0,u.jsx)("div",{className:_()["ss__vendor-info"],children:(0,u.jsxs)("div",{onClick:le?function(){var e,n=null==T||null==(e=T.vendor)?void 0:e.identifier;hn(n?(0,Q.u)(n):null)}:void 0,className:_()["ss__vendor-introduction"],children:[(0,u.jsx)(we(),{size:"40",src:ke?null==T||null==(E=T.avatar)?void 0:E.small:null}),le&&(0,u.jsxs)("div",{className:_()["ss__vendor-identifier"],children:[(0,u.jsx)("span",{className:_()["ss__vendor-identifier-title"],children:null==T||null==(P=T.vendor)?void 0:P.title}),(0,u.jsx)("span",{className:_()["ss__vendor-identifier-name"],children:null==T?void 0:T.name})]}),!(null==R?void 0:R.isFollowed)&&!ln&&(0,u.jsx)(b.A,{eventData:yn,targetUserId:null==T?void 0:T.id,targetUserHashId:null==T?void 0:T.hashId,buttonProps:{size:"xxs",variant:"fill"}})]})}),(0,u.jsx)(G.A,{hashtags:R.hashtags,products:R.products,links:(0,A.CY)(R),sellerUsers:R.sellerUsers,isInfluencer:R.isInfluencer,sellerProductsRef:Je,isReelInstance:dn,onClose:F,onSellerListOpen:function(){Ze.current=ve,mn()},onSellerListClose:function(){Ze.current&&pn(),Ze.current=!1},onSellerClick:function(e){var n,l=null==e||null==(n=e.vendor)?void 0:n.identifier;hn(l?(0,Q.u)(l):null)},vendorIdentifier:null==T||null==(L=T.vendor)?void 0:L.identifier,reelId:null==R?void 0:R.id})]}),(0,u.jsx)($,{story:R,openChat:function(){return(0,t._)(function(){var e;return(0,a._)(this,function(n){switch(n.label){case 0:return Ue?[4,window.scheduler.yield()]:[3,2];case 1:return n.sent(),Re(!1),pn(),[2];case 2:return fn&&!vn?(null==(e=Je.current)||e.openSellerList(),[2]):[4,window.scheduler.yield()];case 3:return n.sent(),oe?Re(!0):$e(),[2]}})})()},isReplying:Ue,className:_()["ss__bottom-actions"],playReel:q,user:T,onLikeReady:xn})]})]})]})}),Ne=l(13511),Se=l.n(Ne),Ee=l(56871),Pe=l(40481),Le=l.n(Pe),Ae=l(82669),Te=l.n(Ae)},83671:function(e){e.exports={"reel-creator-info":"SeI_Ki","reel-creator-info__avatar":"xmuqZ6","reel-creator-info__identity":"qXIbsg","reel-creator-info__name":"XRSRaK","reel-creator-info__role":"XAXOrQ","reel-creator-info__action":"nurBP9","reel-creator-info--inline":"_0lsdhr","reel-creator-info--hidden":"YM_b_v"}},84941:function(e,n,l){"use strict";var r=function(e){var n=e.photo,l=e.onImageLoad,r=e.className,o=(0,a.useRef)(new Image);return(0,a.useEffect)(function(){o.current.crossorigin=!0,o.current.src=n.url},[n.url]),(0,a.useEffect)(function(){if(l){var e=o.current;return e.addEventListener("load",l),function(){e.removeEventListener("load",l)}}},[l]),(0,t.jsx)("div",{className:(0,i.default)(s()["base-image-content"],r),style:{backgroundImage:"url(".concat(n.url,")")}})};l.d(n,{A:function(){return r}});var t=l(31827),i=l(34458),o=l(75916),s=l.n(o),a=l(99195)},86759:function(e,n,l){"use strict";var r=function(e){var n,l,r,i=e.hashtag,s=e.onHashtagClick,d=e.isReelInstance,f=void 0!==d&&d,v=(0,u.A)(),_=(null!=(n=null==i||null==(l=i.hashtag)?void 0:l.lastIndexOf("#"))?n:-1)+1,p=null==i||null==(r=i.hashtag)?void 0:r.slice(_);return(0,t.jsxs)("div",{onMouseUp:c,onClick:function(e){e.stopPropagation(),null==s||s(),setTimeout(function(){v.push(f?"/reel/hashtag/".concat(p):"/story/hashtag/".concat(p))},1e3)},className:o()["new-hashtag-entity"],children:[(0,t.jsx)(a(),{size:"16",name:"bi-hashtag"}),(0,t.jsx)("div",{className:o()["new-hashtag-entity__detail"],children:p})]})};l.d(n,{A:function(){return r}});var t=l(31827),i=l(53262),o=l.n(i),s=l(43206),a=l.n(s),u=l(58408),c=function(e){var n,l;"mouseup"===e.type&&(null==(n=(l=e.target).closest)?void 0:n.call(l,".bs-light-carousel"))||e.stopPropagation()}},90101:function(e,n,l){"use strict";l.d(n,{A:function(){return c}});var r=l(31827),t=l(75940),i=l.n(t),o=l(43206),s=l.n(o),a=l(58408),u=function(e){var n,l;"mouseup"===e.type&&(null==(n=(l=e.target).closest)?void 0:n.call(l,".bs-light-carousel"))||e.stopPropagation()},c=function(e){var n=e.link,l=e.onLinkClick,t=(0,a.A)();return(0,r.jsxs)("div",{onMouseUp:u,onClick:function(){null==l||l(),setTimeout(function(){t.push(null==n?void 0:n.link)},500)}
1,className:i()["new-link-entity"],children:[(0,r.jsx)("div",{className:i()["new-link-entity-icon"],children:(0,r.jsx)(s(),{size:"32",name:"bi-link"})}),(0,r.jsxs)("div",{className:i()["new-link-entity__detail"],children:[(0,r.jsx)("div",{className:i()["new-link-entity__detail-title"],children:null==n?void 0:n.title}),(0,r.jsx)("div",{className:i()["new-link-entity__detail-path"],children:null==n?void 0:n.link})]})]})}},94614:function(e,n,l){"use strict";l.d(n,{A:function(){return v}});var r=l(76653),t=l(31827),i=l(34458),o=l(83671),s=l.n(o),a=l(58594),u=l.n(a),c=l(43206),d=l.n(c),f=l(80105),v=function(e){var n,l=e.avatar,o=e.name,a=e.hidden,c=e.onClick,v=e.variant,_=(0,f.U)().ua;return o?(0,t.jsxs)("div",{onClick:c,className:(0,i.default)(s()["reel-creator-info"],(n={},(0,r._)(n,s()["reel-creator-info--hidden"],void 0!==a&&a),(0,r._)(n,s()["reel-creator-info--inline"],"inline"===(void 0===v?"overlay":v)),n)),children:[(0,t.jsx)(u(),{size:_.isPc?"44":"40",src:l,className:s()["reel-creator-info__avatar"]}),(0,t.jsxs)("span",{className:s()["reel-creator-info__identity"],children:[(0,t.jsx)("span",{className:s()["reel-creator-info__name"],children:o}),(0,t.jsx)("span",{className:s()["reel-creator-info__role"],children:"Ø³Ø§Ø²ÙØ¯Ù ÙÛØ¯Ø¦Ù"})]}),(0,t.jsxs)("span",{className:s()["reel-creator-info__action"],children:[(0,t.jsx)(d(),{name:"bi-angle-left",size:_.isPc?"24":"20",color:"var(--primary)"}),(0,t.jsx)("span",{children:"ÙÛØ¯Ø¦ÙÙØ§"})]})]}):null}},95822:function(e){e.exports={"like-animation":"fNQwmT","like-animation__heart":"H_Dd_d","like-heart":"cUi4rj"}},96030:function(e){e.exports={"load-more-slide":"PDCcZ5","load-more-slide__bg":"_0XJWHx","load-more-slide__overlay":"_6wroX9","load-more-slide__content":"f1q9jc","load-more-slide__title":"p50kIi","load-more-slide__subtitle":"vvV8KY"}},98607:function(e){e.exports={"reel-actions":"_Q1fVI","reel-actions__icon":"yUB5Ih","reel-actions__title":"_6QR7Ez"}}}]);
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.