1 line
9.4 KiB
JavaScript
1 line
9.4 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{1118:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(1937)}])},7205:function(e,t,n){"use strict";n.d(t,{O_:function(){return u},Zv:function(){return r},a_:function(){return o},oZ:function(){return l}});let r=30,l={PHOTOS:"photos",VIDEOS:"videos"},o="MMXXIV",u=27},9720:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return l},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return u},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return i},ACTION_SERVER_ACTION:function(){return c},isThenable:function(){return f}});let l="refresh",o="navigate",u="restore",a="server-patch",s="prefetch",i="fast-refresh",c="server-action";function f(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},245:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(9082),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1032:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return v}});let r=n(8754)._(n(7294)),l=n(4879),o=n(1572),u=n(8373),a=n(6221),s=n(5933),i=n(4167),c=n(8874),f=n(6342),d=n(245),p=n(6015),m=n(9720),h=new Set;function b(e,t,n,r,l,u){if(u||(0,o.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let l=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(h.has(l))return;h.add(l)}Promise.resolve(u?e.prefetch(t,l):e.prefetch(t,n,r)).catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let v=r.default.forwardRef(function(e,t){let n,u;let{href:h,as:v,children:x,prefetch:_=null,passHref:g,replace:j,shallow:O,scroll:N,locale:C,onClick:E,onMouseEnter:M,onTouchStart:k,legacyBehavior:P=!1,...T}=e;n=x,P&&("string"==typeof n||"number"==typeof n)&&(n=r.default.createElement("a",null,n));let w=r.default.useContext(i.RouterContext),I=r.default.useContext(c.AppRouterContext),R=null!=w?w:I,A=!w,S=!1!==_,L=null===_?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:z,as:U}=r.default.useMemo(()=>{if(!w){let e=y(h);return{href:e,as:v?y(v):e}}let[e,t]=(0,l.resolveHref)(w,h,!0);return{href:e,as:v?(0,l.resolveHref)(w,v):t||e}},[w,h,v]),D=r.default.useRef(z),F=r.default.useRef(U);P&&(u=r.default.Children.only(n));let H=P?u&&"object"==typeof u&&u.ref:t,[K,V,B]=(0,f.useIntersection)({rootMargin:"200px"}),X=r.default.useCallback(e=>{(F.current!==U||D.current!==z)&&(B(),F.current=U,D.current=z),K(e),H&&("function"==typeof H?H(e):"object"==typeof H&&(H.current=e))},[U,H,z,B,K]);r.default.useEffect(()=>{R&&V&&S&&b(R,z,U,{locale:C},{kind:L},A)},[U,z,V,C,S,null==w?void 0:w.locale,R,A,L]);let G={ref:X,onClick(e){P||"function"!=typeof E||E(e),P&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,n,l,u,a,s,i,c){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,o.isLocalURL)(n)))return;e.preventDefault();let d=()=>{let e=null==s||s;"beforePopState"in t?t[u?"replace":"push"](n,l,{shallow:a,locale:i,scroll:e}):t[u?"replace":"push"](l||n,{scroll:e})};c?r.default.startTransition(d):d()}(e,R,z,U,j,O,N,C,A)},onMouseEnter(e){P||"function"!=typeof M||M(e),P&&u.props&&"function"==typeof u.props.onMouseEnter&&u.props.onMouseEnter(e),R&&(S||!A)&&b(R,z,U,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:L},A)},onTouchStart(e){P||"function"!=typeof k||k(e),P&&u.props&&"function"==typeof u.props.onTouchStart&&u.props.onTouchStart(e),R&&(S||!A)&&b(R,z,U,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:L},A)}};if((0,a.isAbsoluteUrl)(U))G.href=U;else if(!P||g||"a"===u.type&&!("href"in u.props)){let e=void 0!==C?C:null==w?void 0:w.locale,t=(null==w?void 0:w.isLocaleDomain)&&(0,d.getDomainLocale)(U,e,null==w?void 0:w.locales,null==w?void 0:w.domainLocales);G.href=t||(0,p.addBasePath)((0,s.addLocale)(U,e,null==w?void 0:w.defaultLocale))}return P?r.default.cloneElement(u,G):r.default.createElement("a",{...T,...G},n)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6342:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(7294),l=n(6231),o="function"==typeof IntersectionObserver,u=new Map,a=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,i=s||!o,[c,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(i||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:l,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=u.get(r)))return t;let l=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=l.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:l},a.push(n),u.set(n,t),t}(n);return o.set(e,t),l.observe(e),function(){if(o.delete(e),l.unobserve(e),0===o.size){l.disconnect(),u.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,l.requestIdleCallback)(()=>f(!0));return()=>(0,l.cancelIdleCallback)(e)}},[i,n,t,c,d.current]),[p,c,(0,r.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1937:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(5893);n(7133);var l=n(7294),o=n(1664),u=n.n(o),a=e=>{let{name:t,logo:n}=e;return(0,r.jsx)("nav",{className:"flex py-2 border-b",children:(0,r.jsx)("div",{className:"w-3/12 md:w-7/12 md:mx-auto",children:(0,r.jsx)("div",{className:"md:w-2/12",children:(0,r.jsx)(u(),{href:"/",children:n?(0,r.jsx)("img",{alt:t,src:n,className:"w-full"}):(0,r.jsx)("h1",{className:"font-bold leading-relaxed tracking-tight text-2xl text-neutral-800",children:t})})})})})},s=n(7205),i=e=>{let{license:t,links:n,repo:l,commitID:o}=e;return(0,r.jsx)("footer",{className:"flex py-4 text-center md:mt-10 mt-5",children:(0,r.jsxs)("div",{className:"md:w-7/12 mx-auto font-semibold",children:[(0,r.jsxs)("div",{className:"md:text-sm mb-10",children:[n.map(e=>{let{url:t,label:n}=e;return(0,r.jsx)(u(),{href:t,className:"md:mx-4 mb-1 md:inline block",children:n},t+n)}),(0,r.jsx)(u(),{href:l,className:"mx-4",children:"Source Code"})]}),(0,r.jsx)("div",{className:"text-sm font-normal text-neutral-400",children:(0,r.jsxs)("p",{children:["\xa9 ",s.a_," ",(0,r.jsx)(u(),{className:"text-neutral-600",target:"_blank",rel:"noopener noreferer",href:"https://github.com/faultables",children:"faultables"})," ","• All media is licensed under"," ",(0,r.jsx)(u(),{className:"underline",href:t.url,children:t.name})," ","unless stated otherwise •"," ",(0,r.jsx)(u(),{className:"text-neutral-600",target:"_blank",rel:"noopener noreferer",href:"".concat(l,"/commit/").concat(o),children:o})]})})]})})},c=n(356);let f=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"flex items-center justify-between w-full my-5",children:(0,r.jsx)("div",{className:"lg:w-7/12 mx-auto",children:t})})};var d=e=>{let{Component:t,pageProps:n}=e;return(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(a,{name:c.mx.I,logo:c.mx.j}),(0,r.jsx)(f,{children:(0,r.jsx)(t,{...n})}),(0,r.jsx)(i,{repo:c.Mv.O9,links:c.Mv.Ok,license:c.Mv.Vl,commitID:"f8e6502"})]})}},7133:function(){},1664:function(e,t,n){e.exports=n(1032)},356:function(e){"use strict";e.exports=JSON.parse('{"mx":{"I":"not instagram™","j":"https://s3.rizaldy.club/0x0/d43840c5ee4ec66a3bee3c6e2.png"},"N5":{"avatar":"https://s3.rizaldy.club/0x0/IMG_6279.JPG","username":"faultables","follow_url":"https://edgy.social/@rizaldy","message_url":"mailto:rizaldy@duck.com","display_name":"rizaldy","about":"SRE, DevOps, and everything in between","link":"rizaldy.club"},"Mv":{"O9":"https://github.com/faultables/ig.rizaldy.club","Ok":[{"label":"About","url":"/static/about"},{"label":"Blog","url":"https://rizaldy.club"},{"label":"Mastodon","url":"https://edgy.social/@rizaldy"},{"label":"Bluesky","url":"https://bsky.app/profile/rizaldy.club"}],"Vl":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"}}}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(1118),t(2937)}),_N_E=e.O()}]); |