1"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[359],{3366:function(e,t,n){n.d(t,{A:function(){return d}});var i=n(2030),a=n(6942),l=n.n(a),o=n(4794),r=n(6540),s=n(3401);function c(e){var t,n,a,c,d,m,u,g,h,v;let{slide:p}=e;const f="undefined"!=typeof navigator&&!navigator.onLine,E="/"+p.category+"/"+p.id;return r.createElement("div",{className:"slide"},r.createElement("div",{className:"slide__image-wrapper"},r.createElement(i.N_,{as:o.Link,className:"inline-flex",to:E,unstyled:!0},r.createElement(i.vb,{alt:p.title+" Painting",animated:!1,className:l()("slide__image",{"slide__image--no-border":"boolean"==typeof p.imageBorder&&!1===p.imageBorder}),width:null===(t=p.image)||void 0===t?void 0:t.sharp.original.width,height:null===(n=p.image)||void 0===n?void 0:n.sharp.original.height,src:null===(a=p.image)||void 0===a?void 0:a.sharp.original.src,showLoadingSpinner:!f}))),r.createElement("div",{className:"slide__text-wrapper"},r.createElement("div",{className:"slide__text-container w-full"},r.createElement(i.EY,{className:"ml-xxxs",transform:"capitalize",type:"eyebrow",weight:"700"},p.date),r.createElement(i.EY,{as:"h1",marginBottom:"sm",type:"title-lg",weight:"800"},p.title),r.createElement(i.EY,{className:"description text-pretty opacity-90",marginBottom:"lg",type:"body"},p.description_short||p.description),r.createElement(i.N_,{as:p.customLink?"a":o.Link,external:Boolean(p.customLink),style:{marginLeft:"-4px"},href:(null===(c=p.customLink)||void 0===c?void 0:c.href)||E,unstyled:!0},r.createElement(s.A,{icon:null===(d=p.customLink)||void 0===d?void 0:d.icon,iconProps:{color:"youtube"===(null===(m=p.customLink)||void 0===m?void 0:m.icon)?"red":void 0,type:"string"==typeof(null===(u=p.customLink)||void 0===u?void 0:u.icon)&&(null===(g=p.customLink)||void 0===g?void 0:g.icon)in i.wP?"social":"material"},iconAlignment:(null===(h=p.customLink)||void 0===h?void 0:h.iconAlignment)||"trailing"},(null===(v=p.customLink)||void 0===v?void 0:v.name)||"More Details")))))}function d(e){let{category:t,location:n,slides:a=[]}=e;const s=(0,i.aq)(),d=(0,i.Ub)("(max-width: 1365px)"),m=new URLSearchParams(n.search),u=s?function(e,t,n){if(n.has("index"))return(Number.parseInt(n.get("index"))||0)%e.length;if(n.has("id")){const t=e.findIndex(e=>e.id===n.get("id"));return-1==t?0:t}return function(e){if(e&&"undefined"!=typeof sessionStorage){const t=sessionStorage.getItem(e+"-slide");return t?Number.parseInt(t):0}return 0}(t)%e.length}(a,t,m):0,g=u>=0&&u<a.length?a[u]:null,h=(0,r.useCallback)(e=>{e>=a.length&&(e=0),e<0&&(e=a.length-1),function(e,t){e&&"undefined"!=typeof sessionStorage&&sessionStorage.setItem(e+"-slide",String(t))}(t,e),(0,o.navigate)("/"+t+"?index="+e,{replace:!0})},[t,a,u]);return(0,r.useEffect)(()=>{if("undefined"!=typeof document){const e=()=>h(u-1),t=()=>h(u+1);return document.addEventListener("previous_slide",e),document.addEventListener("next_slide",t),()=>{document.removeEventListener("previous_slide",e),document.removeEventListener("next_slide",t)}}},[u]),r.createElement("div",{className:l()("gallery",{"gallery--vertical":d}),id:t},r.createElement("button",{"aria-label":"Previous Slide",className:"gallery__button previous",onClick:()=>h(u-1)},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"48px",height:"48px"},r.createElement("path",{d:"M14.71 6.71c-.39-.39-1.02-.39-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L10.83 12l3.88-3.88c.39-.39.38-1.03 0-1.41z"}))),r.createElement("div",{className:"gallery__slides"},g&&r.createElement(c,{slide:g})),r.createElement("button",{"aria-label":"Next Slide",className:"gallery__button next",onClick:()=>h(u+1)},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"48px",height:"48px"},r.createElement("path",{d:"M9.29 6.71c-.39.39-.39 1.02 0 1.41L13.17 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01z"}))))}},3401:function(e,t,n){n.d(t,{A:function(){return c}});var i=n(8587),a=n(2030),l=n(6942),o=n.n(l),r=n(6540);const s=["children","className"];function c(e){let{children:t,className:n}=e,l=(0,i.A)(e,s);return r.createElement(a.$n,Object.assign({className:o()("shadow-button",n),shape:"pill",size:"sm"},l),t)}},9003:function(e,t,n){n.r(t),n.d(t,{Head:function(){return c},default:function(){return s}});var i=n(6540),a=n(3366),l=n(6466),o=n(8524),r=n(3815);function s(e){let{data:t,location:n}=e;return i.createElement(o.A,{id:"tech",title:"Tech Showcases",location:n},i.createElement(a.A,{category:"tech",location:n,slides:t.json.slides}))}const c=()=>i.createElement(l.A,{page:{url:r.wW+"/tech",title:"Adam Graham ⢠Tech Showcases"}})}}]); 2//# sourceMappingURL=component---src-pages-tech-tsx-29217cb306edb43b7057.js.map
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.