1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[66],{2042:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return c},default:function(){return u}});var s=t(7294),o=t(9008),n=t.n(o),a=t(1664),d=t.n(a),i=t(8835),h=t(8075),m=t(3371),l=t(5893),c=!0;function u(){var e=(0,i.$G)("common").t,r=(0,s.useState)(null),t=r[0],o=r[1];switch(t){case"Error":throw new Error("Test.PageTestError.Error");case"AppError":throw new m.g("Test.PageTestError.AppError")}return(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)(n(),{children:(0,l.jsx)("title",{children:"Test Error - ".concat(e("site.title"))})}),(0,l.jsx)("div",{className:"container xl:max-w-screen-lg text-primary",children:(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,l.jsx)("h2",{className:"mb-4",children:"Test Error"}),(0,l.jsx)("div",{className:"mb-2",children:"This is for testing error with LTMAN error reporting system. Expect errors to be reported within 10 seconds."}),(0,l.jsx)("div",{className:"mb-4",children:(0,l.jsxs)("div",{className:"text-error bg-error rounded p-4",children:[(0,l.jsxs)("div",{className:"mb-4",children:["Clicking the button below will asynchronously throw an error",(0,l.jsx)("br",{}),"(throw in event onClick)."]}),(0,l.jsx)("button",{className:"m-2 bg-primary text-white rounded px-2 py-1 text-sm",onClick:function(){throw new Error("Test.PageTestError.Error")},children:"Throw Error"}),(0,l.jsx)("button",{className:"m-2 bg-primary text-white rounded px-2 py-1 text-sm",onClick:function(){throw new m.g("Test.PageTestError.AppError")},children:"Throw AppError"})]})}),(0,l.jsx)("div",{className:"mb-4",children:(0,l.jsxs)("div",{className:"text-error bg-error rounded p-4",children:[(0,l.jsxs)("div",{className:"mb-4",children:["Clicking the button below will synchronously throw an error",(0,l.jsx)("br",{}),"(throw in next render)."]}),(0,l.jsx)("button",{className:"m-2 bg-primary text-white rounded px-2 py-1 text-sm",onClick:function(){o("Error")},children:"Throw Error"}),(0,l.jsx)("button",{className:"m-2 bg-primary text-white rounded px-2 py-1 text-sm",onClick:function(){o("AppError")},children:"Throw AppError"})]})}),(0,l.jsx)("div",{className:"mb-4",children:(0,l.jsxs)("div",{className:"text-error bg-error rounded p-4",children:[(0,l.jsx)("div",{className:"mb-4",children:"Clicking the button below will go to a page that always throw an error."}),(0,l.jsx)(d(),{href:"/demo/test-error/throw-error",children:(0,l.jsx)("a",{className:"m-2 bg-primary text-white hover:text-white rounded px-2 py-1 text-sm",children:"Go + Throw Error"})}),(0,l.jsx)(d(),{href:"/demo/test-error/throw-app-error",children:(0,l.jsx)("a",{className:"m-2 bg-primary text-white hover:text-white rounded px-2 py-1 text-sm",children:"Go + Throw AppError"})}),(0,l.jsx)(d(),{href:"/demo/test-error/throw-app-error-initial",children:(0,l.jsx)("a",{className:"m-2 bg-primary text-white hover:text-white rounded px-2 py-1 text-sm",children:"Go + Throw @ getInitialProps"})})]})})]})})})]})}u.Layout=h.Z},8075:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});t(7294);var s=t(9580),o=t(7030),n=[{title:"Feed",href:"/demo",extras:{logoBrand:!0,targets:{demo:"placeholder"}},shows:["menuhead","menuside"]},{title:"Post",href:"/demo/[id]",as:"/demo/7930",extras:{targets:{demo:"placeholder"}},shows:["menuhead","menuside"]},{title:"Error",href:"/demo/test-error",extras:{},shows:["menuhead","menuside"]},{title:"SngE-Feed 1",href:"/demo/category/[slug]",as:"/demo/category/snge-health-beauty",extras:{termId:4,targets:{demo:"synergy-e"}},shows:["menuhead","menuside"]},{title:"SngE-Feed 2",href:"/demo/category/[slug]",as:"/demo/category/snge-lifestyle",extras:{termId:6,targets:{demo:"synergy-e"}},shows:["menuhead","menuside"]},{title:"SngE-Post",href:"/demo/[id]",as:"/demo/7722",extras:{targets:{demo:"synergy-e"}},shows:["menuhead","menuside"]},{title:"SngE-No-DFP-1",href:"/demo/snge/no-dfp-1",extras:{targets:{demo:"synergy-e"}},shows:["menuhead","menuside"]},{title:"SngE-No-DFP-2",href:"/demo/snge/no-dfp-2",extras:{targets:{demo:"synergy-e"}},shows:["menuhead","menuside"]},{title:"FO-Feed 1",href:"/demo/category/[slug]",as:"/demo/category/fo-health-beauty",extras:{termId:4,targets:{demo:"freakout"}},shows:["menuhead","menuside"]},{title:"FO-Feed 2",href:"/demo/category/[slug]",as:"/demo/category/fo-lifestyle",extras:{termId:6,targets:{demo:"freakout"}},shows:["menuhead","menuside"]},{title:"FO-Post",href:"/demo/[id]",as:"/demo/7587",extras:{targets:{demo:"freakout"}},shows:["menuhead","menuside"]}],a=t(5893);function d(e){var r=e.children;return(0,a.jsx)(o.UT,{value:n,children:(0,a.jsx)(s.P,{children:r})})}d.menus=n;var i=d},3525:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/demo/test-error",function(){return t(2042)}])}},function(e){e.O(0,[887,580,774,888,179],(function(){return r=3525,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
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.