1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2487],{26291:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/gift",function(){return t(80828)}])},80899:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var o=t(85893),i=t(67294),s=t(73935),r=t(97163),a=t(67799),l=t(26299),c=t.n(l);class d extends i.PureComponent{componentDidMount(){"undefined"!=typeof document&&(this.modalRoot=document.body,this.modalRoot.appendChild(this.el),this.props.isOpen&&(document.body.style.overflow="hidden",this.setBodyOverflow=!0))}componentDidUpdate(e){"undefined"!=typeof document&&(this.props.isOpen&&!e.isOpen?(document.body.style.overflow="hidden",this.setBodyOverflow=!0):!this.props.isOpen&&e.isOpen&&this.setBodyOverflow&&(document.body.style.overflow="auto",this.setBodyOverflow=!1))}componentWillUnmount(){this.modalRoot.removeChild(this.el),document.body.style.overflow="auto"}render(){let{isOpen:e,isfull:n,children:t,forArticle:i=!1}=this.props;return e?i?(0,o.jsx)("div",{children:n?(0,o.jsx)("div",{className:c().back,onClick:this.handleBackdropClick,children:t}):(0,o.jsx)("div",{className:"".concat(c().overlay),onClick:this.handleBackdropClick,children:t})}):(0,s.createPortal)((0,o.jsx)("div",{children:n?(0,o.jsx)("div",{className:c().back,onClick:this.handleBackdropClick,children:t}):(0,o.jsx)("div",{className:"".concat(c().overlay," ").concat(this.context===a.Q2.dark?c().dark:""),onClick:this.handleBackdropClick,children:t})}),this.el):null}constructor(e){super(e),this.modalRoot=null,this.setBodyOverflow=!1,this.handleBackdropClick=e=>{var n;if(e.target!==e.currentTarget)return;let t=null!==(n=this.props.onClickOverlay)&&void 0!==n?n:this.props.closeModal;null==t||t()},this.el="undefined"!=typeof document?document.createElement("div"):{}}}d.contextType=r.Ni},98904:function(e,n,t){"use strict";var o=t(85893),i=t(95813),s=t.n(i),r=t(80899),a=t(67294),l=t(67799),c=t(97163);n.Z=e=>{let{isOpen:n,closeModal:t,okText:i="بÙÙ",cancelText:d="ÙÙ",message:u="Ù
Ø·Ù
ئÙÛØ",onOk:h=t,onCancel:p=t,children:_}=e,m=(0,a.useContext)(c.Ni);return(0,o.jsx)(r.Z,{isfull:!1,isOpen:n,closeModal:t,onClickOverlay:t,children:(0,o.jsxs)("div",{className:"".concat(s().modal," ").concat(m===l.Q2.dark?s().dark:""),onClick:e=>e.stopPropagation(),children:[u&&(0,o.jsx)("p",{className:s().message,children:u}),_&&(0,o.jsx)("p",{className:s().message,children:_}),(0,o.jsxs)("div",{className:"".concat(s().buttons," d-flex"),children:[(0,o.jsx)("div",{className:s().cancel,onClick:()=>{p()},children:d}),(0,o.jsx)("div",{className:s().ok,onClick:()=>{h()},children:i})]})]})})}},11143:function(e,n,t){"use strict";var o=t(85893),i=t(84947),s=t.n(i);n.Z=e=>{var n,t;let{icon:i,book:r,children:a}=e,l=r?"".concat(null==r?void 0:r.prefix," \xab").concat(null==r?void 0:r.title,"\xbb"):"";return(0,o.jsxs)("div",{className:s().panel,children:[(0,o.jsxs)("div",{className:s().imageBox,children:[(0,o.jsx)("img",{className:(null==r?void 0:null===(n=r.type)||void 0===n?void 0:n.toLowerCase())==="audio"?s().audioBookCover:s().bookCover,src:null!==(t=null==r?void 0:r.coverUri)&&void 0!==t?t:"/images/gift/untitleBook.svg",alt:l,title:l}),(0,o.jsx)("img",{className:s().icon,src:"/images/gift/".concat(i,".svg"),alt:"ÙØ¯ÛÙ"})]}),(0,o.jsx)("div",{children:a})]})}},63952:function(e,n,t){"use strict";var o,i,s,r;t.d(n,{M:function(){return i},Y:function(){return o}}),(s=o||(o={}))[s.Valid=0]="Valid",s[s.Used=1]="Used",s[s.Invalid=2]="Invalid",(r=i||(i={}))[r.Success=0]="Success",r[r.InvalidForSender=1]="InvalidForSender",r[r.Used=2]="Used",r[r.AlreadyInYourLibrary=3]="AlreadyInYourLibrary",r[r.InvalidToken=4]="InvalidToken",r[r.Error=5]="Error",r[r.Expired=6]="Expired",r[r.SignupAlert=7]="SignupAlert"},9273:function(e,n,t){"use strict";var o=t(85893),i=t(67294),s=t(4896),r=t(60550),a=t(1431),l=t.n(a);n.Z=e=>{let[n,t]=(0,i.useState)(e.content),a=(0,i.useRef)(),c=(0,i.useContext)(s.uL);return(0,i.useEffect)(()=>{t(e.content)},[e.content]),(0,o.jsxs)("div",{className:"".concat(l().giftShare," container"),children:[(0,o.jsx)("h1",{children:"Ø§Ø±Ø³Ø§Ù ÙØ¯ÛÙ"}),(0,o.jsx)("h2",{children:"ÙØ·Ùا٠Ù
ØªÙ Ø²ÛØ± را Ø¨Ø±Ø§Û Ø¯ÙØ³Øª Ø®ÙØ¯ ارسا٠کÙÛØ¯ تا ÙØ¯ÛÙâÛ Ø´Ù
ا را Ø¯Ø±ÛØ§Ùت Ú©ÙØ¯."}),(0,o.jsx)("p",{children:"در ØµÙØ±Øª تÙ
اÛÙ Ù
ÛâØªÙØ§ÙÛØ¯ Ù
ت٠را تغÛÛØ± دÙÛØ¯Ø اÙ
ا ØªÙØ¬Ù Ø¯Ø§Ø´ØªÙ Ø¨Ø§Ø´ÛØ¯ Ú©Ù ÙÛÙÚ© Ù
ÙØ¬Ùد در Ù
ت٠را ØØ°Ù Ù
1Ú©ÙÛØ¯."}),(0,o.jsx)("textarea",{id:"message",name:"string",className:"faq-answer",rows:8,value:n,onChange:e=>{t(e.target.value)},ref:a}),(0,o.jsx)("div",{className:l().copyContainer,children:(0,o.jsx)("button",{onClick:()=>(0,r.SO)(a,c),children:"Ú©Ù¾Û"})})]})}},80828:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return y},default:function(){return j}});var o,i,s=t(85893),r=t(9008),a=t.n(r),l=t(67294),c=t(11163),d=t(84947),u=t.n(d),h=t(11143),p=t(9273),_=t(71549),m=t(4896),f=t(63952),v=t(98904);(o=i||(i={}))[o.Share=100]="Share";let x={...f.Y,...i};var g=e=>{let{token:n,info:t}=e,{book:o,status:i,giftUrl:r}=t,[a,d]=(0,l.useState)(i),[g,k]=(0,l.useState)(!1),y=(0,l.useContext)(m.uL),j=(0,c.useRouter)(),C=()=>{var e;j.push("/mylibrary?type=".concat((null==o?void 0:null===(e=o.type)||void 0===e?void 0:e.toLowerCase())==="audio"?"audio":"text"))},b=async()=>{let e=await (0,_.Hp)(n);k(!1),e===f.M.Success?(C(),y({type:"push",value:{type:m.pC.Success,msg:"عÙ
ÙÛØ§Øª با Ù
ÙÙÙÛØª Ø§ÙØ¬Ø§Ù
شد."}})):e===f.M.AlreadyInYourLibrary?y({type:"push",value:{type:m.pC.Error,msg:"".concat(o.prefix," را ÙØ¨Ùا Ø¯Ø±ÛØ§Ùت کردÙâØ§ÛØ¯ ٠در کتابâÙØ§Û Ø´Ù
ا Ù
ÙØ¬Ùد است.")}}):e===f.M.Error&&y({type:"push",value:{type:m.pC.Error,msg:"خطاÛÛ Ø¯Ø± Ø³ÛØ³ØªÙ
رخ دادÙ. ÙØ·Ùا Ø¯ÙØ¨Ø§Ø±Ù ØªÙØ§Ø´ Ú©ÙÛØ¯."}})};return(0,s.jsxs)("div",{className:"container ".concat(u().giftPage),children:[(0,s.jsx)(h.Z,{icon:a===x.Invalid||a===x.Used?"warning":"gift",book:o,children:a===x.Valid?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{children:[" ","ÙÛÙÚ© ",o.prefix," \xab",o.title,"\xbb Ø¨Ø±Ø§Û ÙØ¯Û٠ب٠ÛÚ© Ø¯ÙØ³Øª Ø¢Ù
اد٠است."]}),(0,s.jsxs)("p",{children:["اگر ÙØµØ¯ ÙØ¯ÛÙ Ø¯Ø§Ø¯Ù ÙØ¯Ø§Ø±ÛØ Ù
ÛâØªÙØ§ÙÛ Ø¨Ø§ Ø§ÙØªØ®Ø§Ø¨ \xabØ§ÙØ²Ùد٠ب٠کتابâââÙØ§Û Ù
Ù\xbb ",o.prefix," را در کتابخاÙÙâÛ Ø®ÙØ¯Øª Ùگ٠دارÛ."]})]}):a===x.Used?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:u().errorMsg,children:"اÛ٠کد ÙØ¯ÛÙ ÙØ¨Ùا Ø§Ø³ØªÙØ§Ø¯Ù شدÙ."}),(0,s.jsxs)("p",{children:["اگر Ø®ÙØ¯Øª از Ø¢Ù Ø§Ø³ØªÙØ§Ø¯Ù کردÙâØ§ÛØ Ø¨Ù ÙØ³Ù
ت \xabکتابâÙØ§Û Ù
Ù\xbb برÙ. ",o.prefix," \xab",o.title,"\xbb را در Ø¢Ù ÙØ³Ù
ت Ù
ÛâØªÙØ§ÙÛ Ù¾ÛØ¯Ø§ Ú©ÙÛ."]})]}):a===x.Invalid?(0,s.jsx)("p",{className:u().errorMsg,children:"اÛ٠کد ÙØ¯ÛÙ ÙØ§Ù
عتبر است."}):a===x.Share?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(p.Z,{content:"Ø³ÙØ§Ù
Ø¯ÙØ³Øª Ø¹Ø²ÛØ²\n".concat(o.prefix," \xab").concat(o.title,"\xbb ÙØ¯ÛÙâØ§Û Ø¨Ø±Ø§Û Ø´Ù
است. \nاÛÙ ÙØ¯Û٠را Ù
ÛâØªÙØ§ÙÛ Ø§Ø² ÙÛÙÚ© Ø²ÛØ± Ø¯Ø±ÛØ§Ùت Ú©ÙÛ. اÙ
ÛØ¯ÙارÙ
از Ù
Ø·Ø§ÙØ¹Ùâ٠آ٠در اپÙÛÚ©ÛØ´Ù طاÙÚÙ ÙØ°Øª ببرÛ.\n").concat(r)})}):(0,s.jsx)(s.Fragment,{})}),a===x.Valid?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:u().button,onClick:()=>{d(x.Share),scrollTo(0,0)},children:["ارسا٠ÙÛÙÚ© ",o.prefix," ب٠عÙÙØ§Ù ÙØ¯ÛÙ"]}),(0,s.jsx)("a",{onClick:()=>{k(!0)},children:"Ø§ÙØµØ±Ø§Ù از ÙØ¯ÛÙ Ø¯Ø§Ø¯Ù Ù Ø§ÙØ²Ùد٠ب٠کتابââÙØ§Û Ù
Ù"})]}):a===x.Used?(0,s.jsx)("div",{className:u().button,onClick:C,children:"ÙØ±Ùد ب٠کتابâÙØ§Û Ù
Ù"}):a===x.Share?(0,s.jsx)("a",{onClick:()=>{k(!0)},children:"Ø§ÙØµØ±Ø§Ù از ÙØ¯ÛÙ Ø¯Ø§Ø¯Ù Ù Ø§ÙØ²Ùد٠ب٠کتابââÙØ§Û Ù
Ù"}):(0,s.jsx)("div",{}),g&&(0,s.jsx)(v.Z,{isOpen:g,closeModal:()=>{k(!1)},onOk:b,message:"",okText:"تاÛÛØ¯",cancelText:"Ø§ÙØµØ±Ø§Ù",children:(0,s.jsxs)("div",{className:u().confirmMessage,children:["Ø´Ù
ا اÛÙ ",o.prefix," را ب٠عÙÙØ§Ù ÙØ¯ÛÙ Ø®Ø±ÛØ¯ÙâØ§Û. Ø¢ÛØ§ Ù
ÛâØ®ÙØ§ÙÛ Ø¨Ù Ú©ØªØ§Ø¨Ø®Ø§ÙÙâÛ Ø®ÙØ¯Øª اضاÙÙ Ø´ÙØ¯Ø در اÛÙ ØµÙØ±Øª ÙÙ
ÛâØªÙØ§ÙÛ Ø¢Ù Ø±Ø§ ب٠شخص دÛÚ¯Ø±Û ÙØ¯Û٠بدÙÛ."]})})]})},k=t(87447),y=!0,j=e=>{let{token:n,info:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a(),{children:[(0,s.jsx)("title",{children:"ÙØ¯ÛÙ | ".concat(k.Z.appNameFA)}),(0,s.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,s.jsx)(g,{token:n,info:t})]})}},71549:function(e,n,t){"use strict";t.d(n,{Hp:function(){return i},KG:function(){return s}});var o=t(76446);let i=async e=>await o.ZP.post("/mybook/gift/add-to-sender",{token:e}),s=async(e,n)=>await o.ZP.post("/mybook/gift/receive",{token:e,receiver:n})},26299:function(e){e.exports={back:"modal_back__6USx7",BackFlash:"modal_BackFlash__b92aa",overlay:"modal_overlay__MR62_",OverlayFlash:"modal_OverlayFlash__9gYzB",content:"modal_content__ChqFp",OverlayFlashDark:"modal_OverlayFlashDark__H8t0a",dark:"modal_dark__Q7Thb"}},95813:function(e){e.exports={modal:"whiteConfirmModal_modal__9x_qJ",dark:"whiteConfirmModal_dark__QQp_z",buttons:"whiteConfirmModal_buttons__dh3Ak",cancel:"whiteConfirmModal_cancel__JxrjY",message:"whiteConfirmModal_message__OVrRg",ok:"whiteConfirmModal_ok__KkYKC"}},84947:function(e){e.exports={giftPage:"gift_giftPage__m1zZo",button:"gift_button__3kO4l",errorMsg:"gift_errorMsg__pEccq",greenText:"gift_greenText__QnxpI",form:"gift_form__z_Gtq",panel:"gift_panel__l_97f",imageBox:"gift_imageBox__WRtDS",bookCover:"gift_bookCover__68BW1",audioBookCover:"gift_audioBookCover__hOt6p",icon:"gift_icon__h5oES",confirmMessage:"gift_confirmMessage__ayQC4"}},1431:function(e){e.exports={giftShare:"share_giftShare__papIK",copyContainer:"share_copyContainer__HD43j"}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=26291)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.