PageSourceSearch

https://taaghche.com/tmp/_next/static/chunks/5519.0af6504be9b3f4b7.js

js taaghche.com collected 2026-09-24 09:19:27 UTC 8,898 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5519],{85519:function(e,t,l){"use strict";l.r(t);var n,i,o=l(85893),r=l(67294),a=l(92962),s=l.n(a),u=l(60550),d=l(8198),_=l(55386),c=l(6998),f=l(76446),m=l(49706),x=l(14976);(n=i||(i={}))[n.NotFollowed=0]="NotFollowed",n[n.Loading=1]="Loading",n[n.Followed=2]="Followed",t.default=e=>{let{box:t}=e,l=null==t?void 0:t.followData,n=null==l?void 0:l.description,i=null==l?void 0:l.property,a=null==l?void 0:l.value,{isMobile:h}=(0,_.V)(),{windowWidth:p}=(0,c.Z)(),{isAuthenticated:B,loading:g}=(0,r.useContext)(m.V),{toggleLoginModal:y}=(0,r.useContext)(x.a),v=(0,r.useRef)(null),w=(0,r.useRef)(null),b=(0,r.useRef)(null),[C,N]=(0,r.useState)(!1),[j,S]=(0,r.useState)(!1),[T,I]=(0,r.useState)(h),[P,W]=(0,r.useState)(null),[k,O]=(0,r.useState)(1);(0,r.useEffect)(()=>{let e=async()=>{let e=await f.ZP.get("/mybook/v2/follow",{property:i,value:a});(null==e?void 0:e.isFollowing)?O(2):O(0)};!g&&B?e():g||B||O(0)},[g,B]),(0,r.useEffect)(()=>{I(p<=768)},[p]);let E=e=>{let t=b.current,l=w.current;if(e&&t&&l&&!T){let e=parseFloat(getComputedStyle(l).paddingTop);W(t.getBoundingClientRect().top-l.getBoundingClientRect().top-e)}else W(null);N(e)},L=(0,r.useRef)(E);L.current=E,(0,r.useEffect)(()=>{W(null)},[p]);let Z=C&&null!==P?{alignSelf:"flex-start",marginTop:P}:void 0,F=()=>(0,o.jsxs)("div",{className:s().statisticsContainer,children:[(0,o.jsxs)("div",{className:s().stats,children:[(0,o.jsx)("p",{className:s().statsValue,children:null==l?void 0:l.followerCount}),(0,o.jsx)("p",{className:s().statsLabel,children:"دنبال کننده"})]}),(0,o.jsxs)("div",{className:s().stats,children:[(0,o.jsx)("p",{className:s().statsValue,children:(0,u.Iq)(null==l?void 0:l.episodeCount)}),(0,o.jsx)("p",{className:s().statsLabel,children:"قسمت"})]}),(0,o.jsxs)("div",{className:s().stats,children:[(0,o.jsx)("p",{className:s().statsValue,children:(0,u.Iq)(null==l?void 0:l.rating)}),(0,o.jsx)("p",{className:s().statsLabel,children:null==l?void 0:l.ratingCopy})]})]});return(0,r.useEffect)(()=>{let e=v.current;if(!e)return;let t=()=>e.scrollHeight-e.clientHeight<=1,l=()=>{if(e.innerHTML=n,C)return;if(t()){S(!1);return}S(!0);let l=document.createElement("button");l.type="button",l.className=s().moreButton,l.textContent="بیشتر",l.addEventListener("click",()=>L.current(!0));let i=document.createElement("span");for(i.className=s().moreTail,i.appendChild(document.createTextNode("... ")),i.appendChild(l);e.lastChild&&!t();){let l=e.lastChild;if(e.removeChild(l),t()){e.appendChild(l);break}}let o=()=>{let t;let l=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t=l.nextNode();)!i.contains(t)&&t.textContent.trim()&&(n=t);return n},r=e=>{i.remove(),e.parentNode.insertBefore(i,e.nextSibling)},a=o();for(a&&r(a);a&&!t();){let t=a.textContent.trimEnd().split(" ");if(t.pop(),a.textContent=t.join(" "),a.textContent.trim())continue;let l=a.parentElement;a.remove(),i.remove(),l===e||l.textContent.trim()||l.remove(),(a=o())&&r(a)}a&&(a.textContent=a.textContent.trimEnd())};if(l(),"undefined"==typeof ResizeObserver)return;let i=new ResizeObserver(l);return i.observe(e.parentElement),()=>i.disconnect()},[n,C]),(0,o.jsxs)("div",{className:s().followBox,ref:w,children:[(null==l?void 0:l.imageUrl)?(0,o.jsx)("img",{ref:b,className:s().profileImage,src:l.imageUrl,alt:"profile",style:Z}):(0,o.jsx)("div",{ref:b,className:s().emptyProfile,style:Z}),(0,o.jsxs)("div",{className:s().infoContainer,children:[(0,o.jsxs)("div",{className:s().mainInfoContainer,children:[(0,o.jsxs)("div",{className:s().info,children:[(0,o.jsx)("h3",{className:s().title,children:null==t?void 0:t.title}),(null==t?void 0:t.subtitle)&&(0,o.jsx)("h4",{className:s().subtitle,children:null==t?void 0:t.subtitle})]}),!T&&(0,o.jsx)(F,{})]}),n&&(0,o.jsxs)("div",{className:s().descriptionWrapper,children:[(0,o.jsx)("div",{ref:v,className:"".concat(s().description," ").concat(C?s().expanded:""),dangerouslySetInnerHTML:{__html:n}}),j&&C&&(0,o.jsx)("button",{type:"button",className:s().lessButton,onClick:()=>E(!1),children:"کمتر"})]}),T&&(0,o.jsx)(F,{}),(0,o.jsx)(d.Z,{label:k?"دنبال شده":"دنبال کردن",level:"primary",type:0===k?"fill":"outline",className:s().followButton,loading:1===k,onClick:()=>{let e=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f.ZP.post("/mybook/v2/follow/update",{isFollowing:e,isNotifEnable:t,property:i,value:a})};switch(k){case 1:return;case 2:e(!1),O(0);break;case 0:!g&&B?(e(!0),O(2)):g||B||y(!0)}}})]})]})}},8198:function(e,t,l){"use strict";var n=l(85893);l(67294);var i=l(59901),o=l(58377),r=l.n(o);t.Z=e=>{let{label:t,level:l="primary",type:o="fill",size:a=40,leftIcon:s,rightIcon:u,centerIcon:d,fullWidth:_=!1,loading:c=!1,disabled:f=!1,className:m="",onClick:x,children:h,buttonType:p="button",id:B,title:g,leftIconSize:y=null,rightIconSize:v=null,centerIconSize:w=null}=e,b="fill"===o?({primary:r().fillPrimary,secondary:r().fillSecondary,infinit:r().fillInfinit,third:r().fillThird})[l]:"outline"===o?({primary:r().outlinePrimary,secondary:r().outlineSecondary,infinit:r().outlineInfinit,third:r().outlineThird})[l]:"fill-with-outline"===o?({primary:r().fillPrimaryWithOutlinePrimary,secondary:r().fillSecondaryWithOutlineSecondary,infinit:r().fillInfinitWithOutlineInfinit,third:r().fillThirdWithOutlineThird})[l]:({primary:r().textPrimary,secondary:r().textSecondary,infinit:r().textInfinit,third:r().textThird})[l],C=!!d,N=[r().button,b,r()["size".concat(a)],C?r().centerIcon:"",_?r().fullWidth:"",c?r().loading:"",f?r().disabled:"",m].filter(
1Boolean).join(" "),j=()=>32===a||36===a?16:20,S=(e,t)=>(0,n.jsx)(i.Z,{name:e,size:t||j(),className:r().icon});return(0,n.jsx)("button",{type:p,id:B,className:N,onClick:x,disabled:f||c,title:g,children:c?(0,n.jsx)("div",{className:r().loader,children:(0,n.jsx)("div",{className:r().spinner})}):(()=>{if(h)return h;let e=(0,n.jsx)(n.Fragment,{children:t});return d?(0,n.jsxs)(n.Fragment,{children:[e,S(d,w)]}):(0,n.jsxs)(n.Fragment,{children:[u&&S(u,v),e,s&&S(s,y)]})})()})}},59901:function(e,t,l){"use strict";l.d(t,{J:function(){return i}});var n=l(85893);let i=e=>{let{name:t,size:l=24,path:i="icons",inline:o=!1,className:r="",style:a,...s}=e,u=o?"icon-inline":"icon",d=r?"".concat(u," ").concat(r).trim():u,_={display:o?"inline-block":"block",...a};return(0,n.jsx)("img",{src:"/".concat(i,"/").concat(t,".svg"),alt:t,width:l,height:l,className:d,style:_,"aria-hidden":!s["aria-label"]||void 0,...s})};t.Z=i},92962:function(e){e.exports={followBox:"followBox_followBox__oBhxY",infoContainer:"followBox_infoContainer__H_zKC",mainInfoContainer:"followBox_mainInfoContainer__5c7oI",info:"followBox_info__dBuEy",title:"followBox_title__3TgZZ",subtitle:"followBox_subtitle__FHy9G",descriptionWrapper:"followBox_descriptionWrapper__4ysBX",description:"followBox_description__Qu9xn",expanded:"followBox_expanded__IDac5",moreButton:"followBox_moreButton__4Z8Wq",lessButton:"followBox_lessButton__hvnT0",moreTail:"followBox_moreTail__0VCbD",followButton:"followBox_followButton__uokHg",emptyProfile:"followBox_emptyProfile__4iFgg",profileImage:"followBox_profileImage__XXwyj",statisticsContainer:"followBox_statisticsContainer__V5yS_",stats:"followBox_stats__xUEu7",statsValue:"followBox_statsValue__Pf1j7",statsLabel:"followBox_statsLabel__LvSO3"}},58377:function(e){e.exports={button:"generalButton_button__N96Dh",disabled:"generalButton_disabled__MJd44",fillPrimary:"generalButton_fillPrimary__VSRpQ",fillPrimaryWithOutlinePrimary:"generalButton_fillPrimaryWithOutlinePrimary__fLkTT",fillSecondary:"generalButton_fillSecondary__eY_Tc",fillSecondaryWithOutlineSecondary:"generalButton_fillSecondaryWithOutlineSecondary__HfFoe",fillInfinit:"generalButton_fillInfinit__tR2J2",fillInfinitWithOutlineInfinit:"generalButton_fillInfinitWithOutlineInfinit__Y_Ug_",fillThird:"generalButton_fillThird__Hh7Yj",fillThirdWithOutlineThird:"generalButton_fillThirdWithOutlineThird__AKK9w",outlineBase:"generalButton_outlineBase__OSIN7",outlineThird:"generalButton_outlineThird__kacQu",outlineInfinit:"generalButton_outlineInfinit__PVWuH",outlineSecondary:"generalButton_outlineSecondary__sc7pT",outlinePrimary:"generalButton_outlinePrimary__oqs_Q",textBase:"generalButton_textBase__SRZ8M",textThird:"generalButton_textThird__Z2MxX",textInfinit:"generalButton_textInfinit__iBY2S",textSecondary:"generalButton_textSecondary__Hrv8P",textPrimary:"generalButton_textPrimary__qDRKv",size32:"generalButton_size32__CZZNL",size36:"generalButton_size36__LKhWR",size40:"generalButton_size40__ld7s3",size42:"generalButton_size42__xLcUl",fullWidth:"generalButton_fullWidth__fZnp2",loading:"generalButton_loading__xuFM1",loader:"generalButton_loader____D8I",spinner:"generalButton_spinner__SccxV",spin:"generalButton_spin__vmC0A",label:"generalButton_label__uMqvh",icon:"generalButton_icon__stCXD",centerIcon:"generalButton_centerIcon__0_bP4"}}}]);

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.