PageSourceSearch

https://baskadia.com/_next/static/chunks/pages/auth/history-8e4f81799467d51f.js

js baskadia.com collected 2026-10-01 10:34:02 UTC 4,991 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6744],{67882:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/history",function(){return t(80788)}])},37648:function(n,e,t){"use strict";var r=t(828),i=t(85893),o=t(60357),c=t.n(o),a=t(67294),u=t(95477),s=t(61164);e.Z=function(n){var e=n.loading,t=n.completed,o=n.style,l=n.onIntersect,d=(0,r.Z)((0,s.o)(),1)[0].isIntersectionObserverEnabled,f=a.useRef(null);return a.useEffect((function(){if(d){var n=f.current;if(n&&!e&&!t){var r=new IntersectionObserver((function(n){n.forEach((function(n){n.isIntersecting&&l()}))}),{root:null,rootMargin:"2800px",threshold:0});return r.observe(n),function(){r.unobserve(n)}}}}),[t,d,e,l]),(0,i.jsxs)("div",{ref:f,style:o,className:"jsx-5625bc950d002bc8",children:[!t&&(0,i.jsx)(u.Z,{size:24}),(0,i.jsx)(c(),{id:"5625bc950d002bc8",children:"div.jsx-5625bc950d002bc8{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;height:24px;overflow-anchor:none}"})]})}},11173:function(n,e,t){"use strict";var r=t(47568),i=t(26042),o=t(69396),c=t(20414),a=t(11163),u=t(20958),s=t(36808),l=t.n(s);e.Z=function(n,e,t){var s=(0,a.useRouter)().locale,d=function(){var n=(0,r.Z)((function(n,e){var r,a,u,s,d;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return r="".concat("https://api.baskadia.com").concat(n),a=(0,o.Z)((0,i.Z)({},t),{credentials:"omit",headers:(0,i.Z)({Accept:"application/json","Accept-Language":e,"Content-Type":"application/json"},null===t||void 0===t?void 0:t.headers)}),(u=l().get("auth._token.local"))&&(a=(0,o.Z)((0,i.Z)({},a),{credentials:"include",headers:(0,i.Z)({Authorization:u},a.headers)})),[4,fetch(r,a)];case 1:return[4,(s=c.sent()).text()];case 2:if(d=c.sent(),s.ok)try{return[2,JSON.parse(d)]}catch(f){return[2,null]}throw new Error(d)}}))}));return function(e,t){return n.apply(this,arguments)}}(),f=(0,i.Z)({},e);return(0,u.ZP)((function(e,t){var r=null===n||void 0===n?void 0:n(e,t);return r?[r,s||"en"]:null}),d,f)}},80788:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSG:function(){return m},default:function(){return _}});var r=t(47568),i=t(29815),o=t(20414),c=t(85893),a=t(67294),u=t(9008),s=t.n(u),l=t(60253),d=t(8936),f=t(49384),h=t(11173),v=t(26042),p=t(69396),x=t(92843),b=function(n){var e,t=n.history,r=n.onHistoryUpdate,i=a.useMemo((function(){return(null===t||void 0===t?void 0:t.Content)||{}}),[null===t||void 0===t?void 0:t.Content]),o="";i.ID&&(o="/post/".concat(i.ID.toString(36)),(null===(e=t.Page)||void 0===e?void 0:e.ID)&&(o+="/page/".concat(t.Page.ID)));var u=a.useCallback((function(n){r((0,p.Z)((0,v.Z)({},t),{Content:n}))}),[t,r]);return(0,c.jsx)(x.Z,{content:i,href:o,onContentUpdate:u})},g=t(62284),Z=t(86263),y=t(73844),k=t(37648),j=t(17674),m=!0,_=function(n){var e,t=n.data,u=(0,h.Z)((function(n,e){if(!n)return"/auth/history?last_id=0";if(!(null===e||void 0===e?void 0:e.length))return null;var t=e[e.length-1].ID;return t?"/auth/history?last_id=".concat(t):null}),{fallbackData:t?[t]:void 0}),v=u.data,p=u.mutate,x=u.size,m=u.setSize,_=(0,l.$G)().t,w=!v,I=((null===v||void 0===v?void 0:v.length)||0)<x,C=0===(null===v||void 0===v||null===(e=v[0])||void 0===e?void 0:e.length),D=null===v||void 0===v?void 0:v[(null===v||void 0===v?void 0:v.length)-1],E=C||D&&D.length<20,N=a.useMemo((function(){var n;if(!v)return[];var e=v.filter((function(n){return!!n}));return(0,f.D8)((n=[]).concat.apply(n,(0,i.Z)(e)))}),[v]),z=a.useCallback(function(){var n=(0,r.Z)((function(n){var e;return(0,o.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,p((function(e){if(!e)return e;for(var t=(0,i.Z)(e),r=0;r<t.length;r+=1)for(var o=(0,i.Z)(t[r]||[]),c=0;c<o.length;c+=1)if(o[c].ID===n.ID){o.splice(c,1,n),t.splice(r,1,o);break}return t}),!1)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),(0,f.kg)(e),[3,3];case 3:return[2]}}
1))}));return function(e){return n.apply(this,arguments)}}(),[p]),A=a.useCallback((function(){return m((function(n){return n+1}))}),[m]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s(),{children:(0,c.jsx)("title",{children:"Baskadia"})}),(0,c.jsx)(g.Z,{component:"main",style:{marginTop:"16px"},children:(0,c.jsxs)(Z.Z,{children:[w&&Array.from(Array(20).keys()).map((function(n){return(0,c.jsx)(y.Z,{children:(0,c.jsx)(j.Z,{})},n)})),C&&(0,c.jsx)(y.Z,{children:(0,c.jsx)(d.Z,{severity:"info",variant:"filled",children:_("no-results-found")})}),N.map((function(n){return(0,c.jsx)(y.Z,{children:(0,c.jsx)(b,{history:n,onHistoryUpdate:z})},n.ID)})),(0,c.jsx)(y.Z,{children:(0,c.jsx)(k.Z,{loading:I,completed:!!E,onIntersect:A})})]})})]})}}},function(n){n.O(0,[8652,3576,868,4116,4314,6405,1208,9774,2888,179],(function(){return e=67882,n(n.s=e);var e}));var e=n.O();_N_E=e}]);

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.