1 line
76 KiB
JavaScript
1 line
76 KiB
JavaScript
|
|
(()=>{var e,t,n,r,s={5553:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6087),s=n(5556),i=n.n(s),o=n(7723),a=n(273);class u extends r.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null,copied:!1},this.resetError=this.resetError.bind(this),this.copyError=this.copyError.bind(this)}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){this.setState({error:e,errorInfo:t})}resetError(){this.setState({hasError:!1,error:null,errorInfo:null})}copyError(){navigator.clipboard.writeText(`${this.state.error&&this.state.error.toString()}\nStack trace: ${this.state.errorInfo&&this.state.errorInfo.componentStack}`),this.setState({copied:!0})}render(){return this.state.hasError?(0,r.createElement)("div",{className:"burst-error-boundary"},(0,r.createElement)("h3",null,(0,o.__)("Uh-oh! We stumbled upon an error.","burst-statistics")),(0,r.createElement)("div",{className:"burst-error-boundary__copy-error"},(0,r.createElement)("p",{className:"burst-error-boundary__error-code"},this.state.error&&this.state.error.toString()),(0,r.createElement)("p",{className:"burst-error-boundary__error-stack"},"Stack trace: ",this.state.errorInfo&&this.state.errorInfo.componentStack),(0,r.createElement)("button",{className:"burst-button burst-button--secondary",onClick:this.copyError},this.state.copied?(0,o.__)("Copied","burst-statistics"):(0,o.__)("Copy Error","burst-statistics"))),burst_settings.is_pro?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,(0,o.__)("We apologize for the inconvenience. As a valued Burst Pro user, we are here to assist you. Please follow the steps below to report this issue:","burst-statistics")),(0,r.createElement)("ol",null,(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Copy the error details by clicking the %s button above.","burst-statistics"),'"Copy Error"')),(0,r.createElement)("li",null,(0,r.createElement)("a",{href:(0,a.UA)("support",{burst_source:"error-boundary",burst_content:"support"}),target:"_blank",rel:"noreferrer"},(0,o.__)("Visit our support page.","burst-statistics"))),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Under %s, provide your Name, Email, Website, and License details.","burst-statistics"),'"Log a Support Ticket"')),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("In the %s field, paste the copied error details and describe what you were doing when the error occurred.","burst-statistics"),'"What\'s the problem?"')),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("If possible, attach any relevant files.","burst-statistics"))),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Click %s to send your support request. We strive to reply to all support tickets within 24 hours, and within 48 hours during weekends.","burst-statistics"),'"Submit"')))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,(0,o.__)("We're sorry for the trouble. Please take a moment to report this issue on the WordPress forums so we can work on fixing it. Here’s how you can report the issue:","burst-statistics")),(0,r.createElement)("ol",null,(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Copy the error details by clicking the %s button above.","burst-statistics"),'"Copy Error"')),(0,r.createElement)("li",null,(0,r.createElement)("a",{href:"https://wordpress.org/support/plugin/burst-statistics/#new-topic-0"},(0,o.__)("Navigate to the Support Forum.","burst-statistics"))),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("If you haven’t already, log in to your WordPress.org account or create a new account.","burst-statistics"))),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Once logged in, click on %s under the Burst Statistics forum.","burst-statistics"),'"Create Topic"')),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Title: Mention %s along with a brief hint of the error.","burst-statistics"),"'Error Encountered'")),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Description: Paste the copied error details and explain what you were doing when the error occurred.","burst-statistics"
|