1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1631],{66204:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/devices",function(){return n(84274)}])},14564:function(e,s,n){"use strict";var a=n(85893),t=n(67799),i=n(68547),c=n(59860),o=n.n(c);s.Z=e=>{let{appBrowser:s=t.OG.WebView}=e;return s===t.OG.WebView||void 0===s?(0,a.jsx)("div",{className:o().loading,children:(0,a.jsx)(i.Z,{})}):(0,a.jsx)(i.Z,{})}},80899:function(e,s,n){"use strict";n.d(s,{Z:function(){return r}});var a=n(85893),t=n(67294),i=n(73935),c=n(97163),o=n(67799),l=n(26299),d=n.n(l);class r extends t.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:s,children:n,forArticle:t=!1}=this.props;return e?t?(0,a.jsx)("div",{children:s?(0,a.jsx)("div",{className:d().back,onClick:this.handleBackdropClick,children:n}):(0,a.jsx)("div",{className:"".concat(d().overlay),onClick:this.handleBackdropClick,children:n})}):(0,i.createPortal)((0,a.jsx)("div",{children:s?(0,a.jsx)("div",{className:d().back,onClick:this.handleBackdropClick,children:n}):(0,a.jsx)("div",{className:"".concat(d().overlay," ").concat(this.context===o.Q2.dark?d().dark:""),onClick:this.handleBackdropClick,children:n})}),this.el):null}constructor(e){super(e),this.modalRoot=null,this.setBodyOverflow=!1,this.handleBackdropClick=e=>{var s;if(e.target!==e.currentTarget)return;let n=null!==(s=this.props.onClickOverlay)&&void 0!==s?s:this.props.closeModal;null==n||n()},this.el="undefined"!=typeof document?document.createElement("div"):{}}}r.contextType=c.Ni},98904:function(e,s,n){"use strict";var a=n(85893),t=n(95813),i=n.n(t),c=n(80899),o=n(67294),l=n(67799),d=n(97163);s.Z=e=>{let{isOpen:s,closeModal:n,okText:t="بÙÙ",cancelText:r="ÙÙ",message:m="Ù
Ø·Ù
ئÙÛØ",onOk:_=n,onCancel:h=n,children:u}=e,v=(0,o.useContext)(d.Ni);return(0,a.jsx)(c.Z,{isfull:!1,isOpen:s,closeModal:n,onClickOverlay:n,children:(0,a.jsxs)("div",{className:"".concat(i().modal," ").concat(v===l.Q2.dark?i().dark:""),onClick:e=>e.stopPropagation(),children:[m&&(0,a.jsx)("p",{className:i().message,children:m}),u&&(0,a.jsx)("p",{className:i().message,children:u}),(0,a.jsxs)("div",{className:"".concat(i().buttons," d-flex"),children:[(0,a.jsx)("div",{className:i().cancel,onClick:()=>{h()},children:r}),(0,a.jsx)("div",{className:i().ok,onClick:()=>{_()},children:t})]})]})})}},4461:function(e,s,n){"use strict";n.d(s,{F:function(){return l}});var a=n(85893),t=n(67294),i=n(49706),c=n(97163),o=n(14564);function l(e){return()=>{let{isAuthenticated:s,loading:n}=(0,t.useContext)(i.V),l=(0,t.useContext)(c.pB);return(0,t.useEffect)(()=>{s||n||window.location.replace("/login")},[n,s]),n?(0,a.jsx)(o.Z,{appBrowser:l}):s?(0,a.jsx)(e,{}):(0,a.jsx)(o.Z,{appBrowser:l})}}},84274:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return y}});var a=n(85893),t=n(9008),i=n.n(t),c=n(87447),o=n(11163),l=n(67294),d=n(14564),r=n(98904),m=n(97163),_=n(44419),h=n(4896),u=n(60550),v=n(76446);let p=()=>v.ZP.get("/v4/profile/devices",{}),x=e=>v.ZP.post("/v4/profile/devices/deactivate",{deviceId:e});var g=n(67799),j=n(45219),f=n.n(j),k=e=>{var s;let{info:n,deactivate:t,disable:i}=e,c=(0,l.useContext)(m.Ni);return(0,a.jsxs)("div",{className:"".concat(f().device," ").concat(t?"":f().curDevice," ").concat(c===g.Q2.dark?f().dark:""),children:[!t&&(0,a.jsxs)("div",{className:f().curTitle,children:[(0,a.jsx)("h2",{children:"Ø¯Ø³ØªÚ¯Ø§Ù ÙØ¹ÙÛ"}),(0,a.jsxs)("div",{className:f().lastUsage,children:[(0,a.jsx)("span",{className:f().text,children:"آخرÛ٠اتصاÙ: "}),(0,a.jsx)("span",{className:f().time,children:"Ù
تصÙ"})]})]}),(0,a.jsxs)("div",{className:f().appModel,children:[(0,a.jsx)("span",{children:n.appName})," ",(0,a.jsx)("span",{className:f().osVersion,children:null!==(s=n.osVersion)&&void 0!==s?s:"android"})," ",(0,a.jsx)("span",{children:n.taaghcheVersion})]}),(0,a.jsxs)("div",{className:f().deviceModel,children:[n.brand," ",n.model]}),t&&(0,a.jsxs)("div",{className:f().connectionPart,children:[(0,a.jsxs)("div",{className:f().lastUsage,children:[(0,a.jsx)("span",{className:f().text,children:"آخرÛ٠اتصاÙ: "}),(0,a.jsx)("span",{className:f().time,children:(0,u.cJ)(new Date(n.lastUsage))})]}),(0,a.jsx)("button",{className:"".concat(f().button," ").concat(i?f().disable:""),onClick:()=>{t(n)},children:"ØØ°Ù دستگاÙ"})]})]})},N=n(77426),C=n.n(N),M=()=>{let[e,s]=(0,l.useState)(!1),[n,t]=(0,l.useState)(null),[i,v]=(0,l.useState)(),[j,f]=(0,l.useState)(null),[N,M]=(0,l.useState)(),[y,b]=(0,l.useState)(!1),{loginEvent:w}=(0,l.useContext)(m.Gf),O=(0,l.useContext)(h.uL),B=(0,l.useContext)(m.Ni),T=(0,l.useContext)(m.pB),F=(0,l.useContext)(_.Xo),V=(0,o.useRouter)(),P=e=>{t(e)},E=()=>{N>0?x(n.id).then(e=>{s(!0),e.status===g.kF.Success?(M(N-1),v(i.filter(e=>
1e.id!==n.id)),y||(b(!0),T===g.OG.WebView&&w()),O({type:"push",value:{type:h.pC.Info,msg:"دستگا٠".concat(n.model," با Ù
ÙÙÙÛØª ØØ°Ù شد.")}})):O({type:"push",value:{type:h.pC.Error,msg:e.message}}),s(!1)}):O({type:"push",value:{type:h.pC.Error,msg:"ØØ¯Ø§Ú©Ø«Ø± تعداد Ø¯ÙØ¹ÙâÙØ§Û ØØ°Ù Ù
جاز پر شد٠است."}})};return(0,l.useEffect)(()=>{if(p().then(e=>{if(e.status===g.kF.Success){let s=[],n=null;e.devices.forEach(a=>{a.id===e.currentDeviceId?n=a:s.push(a)}),f(n),v(s),M(e.deviceCountToDelete)}else O({type:"push",value:{type:h.pC.Error,msg:e.message}})}),T!==g.OG.WebView)return F({showFooter:!1,showCopyRight:!0}),()=>{F({showFooter:!0,showCopyRight:!0})}},[]),(0,a.jsx)("div",{className:"".concat(B===g.Q2.dark?C().dark:""," ").concat(T===g.OG.WebView?C().inWebView:""),children:!e&&i?(0,a.jsxs)("div",{className:"".concat(C().management," container"),children:[T!==g.OG.WebView&&(0,a.jsx)("h1",{children:"Ù
Ø¯ÛØ±Ûت دستگاÙâÙØ§"}),(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"Ù
ÛâØªÙØ§ÙÛ Ø¨Ø§ ÛÚ© ØØ³Ø§Ø¨ Ú©Ø§Ø±Ø¨Ø±Û Ø¯Ø± Ûµ Ø¯Ø³ØªÚ¯Ø§Ù ÙØ§Ø±Ø¯ Ø´ÙÛ."}),(0,a.jsx)("li",{children:"ÙÙØªÛ در ÛÚ© Ø¯Ø³ØªÚ¯Ø§Ù ÙØ§Ø±Ø¯ ØØ³Ø§Ø¨ کاربرÛâØ§Øª بشÙÛØ آ٠دستگا٠ب٠ÙÙØ±Ø³Øª \xabدستگاÙâÙØ§Û Ø§Ø³ØªÙØ§Ø¯ÙâØ´Ø¯Ù\xbb اضاÙÙ Ù
ÛâØ´ÙØ¯."}),(0,a.jsxs)("li",{children:["در ÙØ± شش Ù
ا٠Ù
ÛâØªÙØ§ÙÛ Û³ دستگا٠اضاÙ٠را از ÙÙØ±Ø³Øª ØØ°Ù Ú©ÙÛ (Ù
Ø«ÙØ§Ù ÙÙØªÛ Ûµ دستگا٠در ÙÙØ±Ø³Øª Ø¯Ø§Ø±Û Ù Ù
ÛâØ®ÙØ§ÙÛ Ø§Ø² Ø¯Ø³ØªÚ¯Ø§Ù Ø¬Ø¯ÛØ¯Û Ø§Ø³ØªÙØ§Ø¯Ù Ú©ÙÛ).",N>0&&(0,a.jsxs)("p",{className:C().deactivateText,children:["تعداد Ø¯ÙØ¹ÙâÙØ§Û Ù
جاز ØØ°Ù دستگاÙ:",(0,a.jsx)("span",{className:C().deactivateCount,children:(0,u.Iq)(N)})]})]})]}),j?(0,a.jsx)("div",{className:C().currentBox,children:(0,a.jsx)(k,{info:j})}):T===g.OG.Browser&&y&&(0,a.jsx)("button",{className:C().loginButton,onClick:()=>{V.push("taaghche://taaghche.com")},children:"ÙØ±Ùد ب٠طاÙÚÙ"}),j?(0,a.jsx)("h2",{children:"دÛگر دستگاÙâÙØ§Û Ø§Ø³ØªÙØ§Ø¯Ù شدÙ"}):(0,a.jsx)("h2",{children:"دستگاÙâÙØ§Û Ø§Ø³ØªÙØ§Ø¯Ù شدÙ"}),0===N&&(0,a.jsx)("div",{className:C().errorBox,children:(0,a.jsx)("div",{className:C().text,children:"ÙØ¹Ùا٠ÙÙ
ÛâØªÙØ§ÙÛ Ø¯Ø³ØªÚ¯Ø§ÙÛ Ø±Ø§ ØØ°Ù Ú©ÙÛ: در 6 Ù
ا٠گذشت٠۳ بار Ø¯Ø³ØªÚ¯Ø§Ù Ø®ÙØ¯ را از ÙÙØ±Ø³Øª Ø²ÛØ± ØØ°Ù کردÙâØ§Û."})}),i.length>0?(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:C().tableHeaders,children:[(0,a.jsx)("div",{children:"ÙØ³Ø®Ù طاÙÚÙ"}),(0,a.jsx)("div",{children:"ÙÙØ¹ دستگاÙ"}),(0,a.jsx)("div",{children:"آخرÛ٠اتصاÙ"})]}),i.map(e=>(0,a.jsx)(k,{info:e,deactivate:P,disable:0===N},e.id))]}):(0,a.jsxs)("div",{className:C().empty,children:[B===g.Q2.dark?(0,a.jsx)("img",{className:C().emptyImg,src:"images/deviceManagement/empty-dark.svg",alt:""}):(0,a.jsx)("img",{className:C().emptyImg,src:"images/deviceManagement/empty.svg",alt:""}),(0,a.jsx)("p",{className:C().caption,children:"در ØØ§Ù ØØ§Ø¶Ø± از دستگاÙÛ Ø§Ø³ØªÙØ§Ø¯Ù ÙØ´Ø¯Ù است."}),T===g.OG.None&&(0,a.jsx)("button",{className:C().button,onClick:()=>{V.push("/download")},children:"ÙØµØ¨ ".concat(c.Z.appNameFA)})]}),n&&(0,a.jsx)(r.Z,{isOpen:!!n,closeModal:()=>{t(null)},onOk:()=>{E(),t(null)},okText:"تاÛÛØ¯",cancelText:"Ø§ÙØµØ±Ø§Ù",message:"",children:(0,a.jsxs)("div",{className:C().modalContent,children:[(0,a.jsx)("div",{className:C().question,children:"Ø¢ÛØ§ Ù
ÛâØ®ÙØ§ÙÛ Ø¯Ø³ØªÚ¯Ø§Ù Ø²ÛØ± را ØØ°Ù Ú©ÙÛØ"}),(0,a.jsxs)("div",{className:C().info,children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:C().appModel,children:[(0,a.jsx)("span",{children:"Taaghche"})," ",(0,a.jsx)("span",{className:C().osVersion,children:n.osVersion})," ",(0,a.jsx)("span",{children:n.taaghcheVersion})]}),(0,a.jsxs)("div",{className:C().deviceModel,children:[n.brand," ",n.model,","," ",(0,a.jsx)("span",{children:n.osVersion})]})]}),(0,a.jsxs)("div",{className:C().lastUsage,children:[(0,a.jsxs)("span",{className:C().text,children:["آخرÛ٠اتصاÙ:"," "]}),(0,a.jsx)("span",{className:C().time,children:(0,u.cJ)(new Date(n.lastUsage))})]})]})]})})]}):(0,a.jsx)(d.Z,{appBrowser:T})})},y=(0,n(4461).F)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:"Ù
Ø¯ÛØ±ÛØªâ Ø¯Ø³ØªÚ¯Ø§ÙâÙØ§ | ".concat(c.Z.appNameFA)}),(0,a.jsx)("meta",{name:"description",content:"دستگاÙâÙØ§Û Ø®ÙØ¯ را Ù
Ø¯ÛØ±Ûت Ú©ÙÛØ¯"}),(0,a.jsx)("meta",{name:"robots",content:"noindex"}),(0,a.jsx)("meta",{name:"og:title",content:"Ù
Ø¯ÛØ±Ûت دستگاÙâÙØ§ | طاÙÚÙ"}),(0,a.jsx)("meta",{name:"og:type",content:"article"}),(0,a.jsx)("meta",{name:"og:url",content:"https://taaghche.com/devices"}),(0,a.jsx)("meta",{name:"og:description",content:"دستگاÙâÙØ§Û Ø®ÙØ¯ را Ù
Ø¯ÛØ±Ûت Ú©ÙÛØ¯"})]}),(0,a.jsx)(M,{})]}))},59860:function(e){e.exports={loading:"fullScreenLoading_loading__OXHe7"}},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"}},45219:function(e){e.exports={device:"device_device__YFPS3",appModel:"device_appModel__JrFwy",deviceModel:"device_deviceModel__4swRT",connectionPart:"device_connectionPart__o_tbE",button:"device_button__gWE4c",disable:"device_disable__K850u",lastUsage:"device_lastUsage__tPcRp",text:"device_text__qfMSd",time:"device_time__9W6P8",curDevice:"device_curDevice__I4Mxl",curTitle:"device_curTitle__uixAB",dark:"device_dark__iQqfX",handleOverflow:"device_handleOverflow__L5_qm"}},77426:function(e){e.exports={management:"deviceManagement_management__LJ6iA",deactivateText:"deviceManagement_deactivateText__7mP18",deactivateCount:"deviceManagement_deactivateCount__axkrf",currentBox:"deviceManagement_currentBox__8aZTA",errorBox:"deviceManagement_errorBox__bUFnG",text:"deviceManagement_text__tLMRK",tableHeaders:"deviceManagement_tableHeaders__x3CTe",button:"deviceManagement_button__b47gO",loginButton:"deviceManagement_loginButton__KbqEf",empty:"deviceManagement_empty__ooHjI",emptyImg:"deviceManagement_emptyImg__GUHmL",caption:"deviceManagement_caption__BSm2_",secondLine:"deviceManagement_secondLine__yL7Dh",dark:"deviceManagement_dark___q7og",loadingText:"deviceManagement_loadingText__BdlAA",modalContent:"deviceManagement_modalContent__cNwMW",question:"deviceManagement_question__CZvUN",appModel:"deviceManagement_appModel__1PqAI",deviceModel:"deviceManagement_deviceModel__97244",lastUsage:"deviceManagement_lastUsage__PshSE",info:"deviceManagement_info__fPVxp",inWebView:"deviceManagement_inWebView__MRIi8"}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=66204)}),_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.