1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4],{6156:function(e,s,n){"use strict";function t(e,s,n){return s in e?Object.defineProperty(e,s,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[s]=n,e}n.d(s,{Z:function(){return t}})},6700:function(e,s,n){var t={"./af":2786,"./af.js":2786,"./ar":867,"./ar-dz":4130,"./ar-dz.js":4130,"./ar-kw":6135,"./ar-kw.js":6135,"./ar-ly":6440,"./ar-ly.js":6440,"./ar-ma":7702,"./ar-ma.js":7702,"./ar-sa":6040,"./ar-sa.js":6040,"./ar-tn":7100,"./ar-tn.js":7100,"./ar.js":867,"./az":1083,"./az.js":1083,"./be":9808,"./be.js":9808,"./bg":8338,"./bg.js":8338,"./bm":7438,"./bm.js":7438,"./bn":8905,"./bn-bd":6225,"./bn-bd.js":6225,"./bn.js":8905,"./bo":1560,"./bo.js":1560,"./br":1278,"./br.js":1278,"./bs":622,"./bs.js":622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":877,"./cv.js":877,"./cy":7373,"./cy.js":7373,"./da":4780,"./da.js":4780,"./de":9740,"./de-at":217,"./de-at.js":217,"./de-ch":894,"./de-ch.js":894,"./de.js":9740,"./dv":5300,"./dv.js":5300,"./el":837,"./el.js":837,"./en-au":8348,"./en-au.js":8348,"./en-ca":7925,"./en-ca.js":7925,"./en-gb":2243,"./en-gb.js":2243,"./en-ie":6436,"./en-ie.js":6436,"./en-il":7207,"./en-il.js":7207,"./en-in":4175,"./en-in.js":4175,"./en-nz":6319,"./en-nz.js":6319,"./en-sg":1662,"./en-sg.js":1662,"./eo":2915,"./eo.js":2915,"./es":5655,"./es-do":2088,"./es-do.js":2088,"./es-mx":6112,"./es-mx.js":6112,"./es-us":1146,"./es-us.js":1146,"./es.js":5655,"./et":5603,"./et.js":5603,"./eu":7763,"./eu.js":7763,"./fa":6959,"./fa.js":6959,"./fi":1897,"./fi.js":1897,"./fil":2549,"./fil.js":2549,"./fo":4694,"./fo.js":4694,"./fr":4470,"./fr-ca":3049,"./fr-ca.js":3049,"./fr-ch":2330,"./fr-ch.js":2330,"./fr.js":4470,"./fy":5044,"./fy.js":5044,"./ga":9295,"./ga.js":9295,"./gd":2101,"./gd.js":2101,"./gl":8794,"./gl.js":8794,"./gom-deva":7884,"./gom-deva.js":7884,"./gom-latn":7149,"./gom-latn.js":7149,"./gu":5349,"./gu.js":5349,"./he":4206,"./he.js":4206,"./hi":94,"./hi.js":94,"./hr":316,"./hr.js":316,"./hu":2138,"./hu.js":2138,"./hy-am":1423,"./hy-am.js":1423,"./id":9218,"./id.js":9218,"./is":135,"./is.js":135,"./it":626,"./it-ch":150,"./it-ch.js":150,"./it.js":626,"./ja":9183,"./ja.js":9183,"./jv":4286,"./jv.js":4286,"./ka":2105,"./ka.js":2105,"./kk":7772,"./kk.js":7772,"./km":8758,"./km.js":8758,"./kn":9282,"./kn.js":9282,"./ko":3730,"./ko.js":3730,"./ku":1408,"./ku.js":1408,"./ky":3291,"./ky.js":3291,"./lb":6841,"./lb.js":6841,"./lo":5466,"./lo.js":5466,"./lt":7010,"./lt.js":7010,"./lv":7595,"./lv.js":7595,"./me":9861,"./me.js":9861,"./mi":5493,"./mi.js":5493,"./mk":5966,"./mk.js":5966,"./ml":7341,"./ml.js":7341,"./mn":5115,"./mn.js":5115,"./mr":370,"./mr.js":370,"./ms":9847,"./ms-my":1237,"./ms-my.js":1237,"./ms.js":9847,"./mt":2126,"./mt.js":2126,"./my":6165,"./my.js":6165,"./nb":4924,"./nb.js":4924,"./ne":6744,"./ne.js":6744,"./nl":3901,"./nl-be":9814,"./nl-be.js":9814,"./nl.js":3901,"./nn":3877,"./nn.js":3877,"./oc-lnc":2135,"./oc-lnc.js":2135,"./pa-in":5858,"./pa-in.js":5858,"./pl":4495,"./pl.js":4495,"./pt":9520,"./pt-br":7971,"./pt-br.js":7971,"./pt.js":9520,"./ro":6459,"./ro.js":6459,"./ru":1793,"./ru.js":1793,"./sd":950,"./sd.js":950,"./se":490,"./se.js":490,"./si":124,"./si.js":124,"./sk":4249,"./sk.js":4249,"./sl":4985,"./sl.js":4985,"./sq":1104,"./sq.js":1104,"./sr":9131,"./sr-cyrl":9915,"./sr-cyrl.js":9915,"./sr.js":9131,"./ss":5606,"./ss.js":5606,"./sv":8760,"./sv.js":8760,"./sw":1172,"./sw.js":1172,"./ta":7333,"./ta.js":7333,"./te":3110,"./te.js":3110,"./tet":2095,"./tet.js":2095,"./tg":7321,"./tg.js":7321,"./th":9041,"./th.js":9041,"./tk":9005,"./tk.js":9005,"./tl-ph":5768,"./tl-ph.js":5768,"./tlh":9444,"./tlh.js":9444,"./tr":2397,"./tr.js":2397,"./tzl":8254,"./tzl.js":8254,"./tzm":1106,"./tzm-latn":699,"./tzm-latn.js":699,"./tzm.js":1106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":7691,"./uk.js":7691,"./ur":3795,"./ur.js":3795,"./uz":6791,"./uz-latn":588,"./uz-latn.js":588,"./uz.js":6791,"./vi":9822,"./vi.js":9822,"./x-pseudo":4378,"./x-pseudo.js":4378,"./yo":5805,"./yo.js":5805,"./zh-cn":3839,"./zh-cn.js":3839,"./zh-hk":5726,"./zh-hk.js":5726,"./zh-mo":9807,"./zh-mo.js":9807,"./zh-tw":4152,"./zh-tw.js":4152};function r(e){var s=i(e);return n(s)}function i(e){if(!n.o(t,e)){var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}return t[e]}r.keys=function(){return Object.keys(t)},r.resolve=i,e.exports=r,r.id=6700},6115:function(e,s,n){"use strict";n.d(s,{Z:function(){return u}});var t=n(5893),r=n(7294),i=n(1664),o=n(381),a=n.n(o),l=function(e){var s,n,r,o,l,c="".concat(null===(s=e.blogType)||void 0===s?void 0:s.Name,"/").concat(encodeURIComponent(e.blog.TitleSlug)),d=null!==(n=null===(r=e.blog)||void 0===r||null===(o=r.Keywords)||void 0===o?void 0:o.split(","))&&void 0!==n?n:[],j=e.blog;return(0,t.jsxs)("div",{className:" border-gray-300 border-2 mb-2 shadow-md bg-gray-100",children:[(0,t.jsx)(i.default,{href:c,children:(0,t.jsx)("a",{children:(0,t.jsx)("img",{className:"float-left w-36 mr-2 mx-1 my-1 rounded-xl border-solid border-gray-400 border-2",src:j.ImageUrl,alt:"Blog Tag"})})}),(0,t.jsx)(i.default,{href:c,children:(0,t.jsx)("a",{className:"text-2xl font-bold hover:underline",children:j.Title})}),(0,t.jsx)("br",{}),(0,t.jsx)("div",{className:"mt-0",children:j.Description}),(0,t.jsxs)("div",{children:["Published: ",a()(j.PublishDate).format("MM/DD/yyyy")]}),(0,t.jsxs)("div",{children:["Comments: ",null!==(l=null===j||void 0===j?void 0:j.CommentCount)&&void 0!==l?l:0]}),d.sort().map((function(s,n){return(0,t.jsx)("span",{className:"inline-block m-1 px-1 rounded-md mt-2 mb-1 bg-gray-300 hover:bg-gray-400 hover:text-gray-200 cursor-pointer text-sm",onClick:function(){return e.handleKeywordClick(s)},children:s.trim()},n)}))]})},c=n(2426),d=n(2971),j=n(1350),u=function(e){var s=(0,r.useState)([]),n=s[0],i=s[1],o=(0,r.useState)(""),a=o[0],u=o[1],h=function(e){u(e.trim())};return(0,r.useEffect)((function(){if(a.length>0)i(null===e||void 0===e?void 0:e.blogs.filter((function(e){return e.Keywords.toLowerCase().includes(a.toLowerCase().trim())})));else{var s=(0,c.D)(null===e||void 0===e?void 0:e.blogs,(function(e){return e.PublishDate}),!1);i(s)}}),[a]),(0,r.useEffect)((function(){var s=(0,c.D)(null===e||void 0===e?void 0:e.blogs,(function(e){return e.PublishDate}),!1);i(s)}),[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.p,{title:"Allan Chadwick ".concat(e.blogType.Title),description:"The blog of Allan Chadwick",keywords:"C# Sql Javascript",imageSrc:null}),n?(0,t.jsxs)("div",{className:"flex flex-col",children:[a&&(0,t.jsx)("button",{onClick:function(){return u("")},children:(0,t.jsxs)("span",{className:"rounded-md mt-2 mb-1 bg-gray-300 hover:bg-gray-400 hover:text-gray-200 cursor-pointer text-sm px-1",children:['Remove "',a,'" key word filter']})}),null===n||void 0===n?void 0:n.map((function(s){return(0,t.jsx)(l,{blog:s,blogType:e.blogType,handleKeywordClick:h},s.BlogGuid)}))]}):(0,t.jsx)(d.N,{})]})}},3993:function(e,s,n){"use strict";n.d(s,{A:function(){return u}});var t=n(5893),r=n(7294),i=n(8812),o=n(1664),a=n(7625),l=n(1417),c=(n(5001),function(){var e=(0,r.useState)(!1),s=e[0],n=e[1];function c(){window.innerWidth>768&&s&&n(!1)}return(0,r.useEffect)((function(){return window.addEventListener("resize",c),function(){window.removeEventListener("resize",c)}}),[s]),(0,t.jsxs)("div",{style:{minHeight:"48px"},className:"flex flex-wrap px-2 mb-2 items-center bg-gradient-to-b from-gray-600 via-gray-700 to-gray-600 text-gray-200 justify-between rounded-md",children:[(0,t.jsx)("div",{children:(0,t.jsx)("h1",{className:"hover:text-gray-400 ",children:(0,t.jsx)(o.default,{href:"/",children:(0,t.jsx)("a",{children:"Allan Chadwick"})})})}),(0,t.jsx)("div",{className:"md:hidden hover:text-gray-400 ",children:(0,t.jsx)(i.ZP,{toggled:s,toggle:n})}
1),(0,t.jsxs)("div",{className:s?"w-full flex flex-col":"nav-hide",children:[(0,t.jsx)("a",{href:"/DeveloperBlog",className:"px-2 py-2 hover:text-gray-400",children:"Code"}),(0,t.jsx)("a",{href:"/MusicBlog",className:"px-2 py-2 hover:text-gray-400",children:"Music"}),(0,t.jsx)("a",{href:"/ElectronicsBlog",className:"px-2 py-2 hover:text-gray-400",children:"Electronics"}),(0,t.jsx)("a",{href:"https://github.com/thedev6","aria-label":"Link to Github Account",target:"_blank",className:"px-2 py-2 hover:text-gray-400",children:(0,t.jsx)(a.G,{size:"2x",icon:l.zhw})}),(0,t.jsx)("a",{href:"https://stackoverflow.com/users/697660/thedev6","aria-label":"Link to Stack Overflow Account",target:"_blank",className:"px-2 py-2 hover:text-gray-400",children:(0,t.jsx)(a.G,{icon:l.mGT,size:"2x"})}),(0,t.jsx)("a",{target:"_blank",className:"px-2 py-2 hover:text-gray-400",href:"https://www.nuget.org/packages?q=thedev6",children:"Nuget"})]})]})}),d=function(){return(0,t.jsx)("div",{className:"flex flex-wrap px-2 mt-2 items-center bg-gradient-to-b from-gray-600 via-gray-700 to-gray-600 text-gray-200 justify-between rounded-md",children:(0,t.jsxs)("span",{children:["\xa9 Chadwick ",(new Date).getFullYear().toString()]})})},j=n(1516),u=function(e){return(0,r.useEffect)((function(){j.ZP.initialize("UA-39446091-1"),j.ZP.pageview(window.location.pathname+window.location.search)}),[]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"mr-8",children:[(0,t.jsx)(c,{}),e.children,(0,t.jsx)(d,{})]})})}},1350:function(e,s,n){"use strict";n.d(s,{p:function(){return i}});var t=n(5893),r=(n(7294),n(9008)),i=function(e){var s=e.title,n=void 0===s?"Allan Chadwick Developer Musician Amp Designer C# Sql Javascript":s,i=e.description,o=e.keywords,a=e.imageSrc,l=void 0===a?"":a,c="".concat(i," ").concat(o);return(0,t.jsxs)(r.default,{children:[(0,t.jsx)("title",{children:n}),(0,t.jsx)("meta",{content:"width=device-width, initial-scale=1.0",name:"viewport"}),(0,t.jsx)("meta",{content:"Allan Chadwick",name:"author"}),(0,t.jsx)("meta",{content:c,name:"description"}),(0,t.jsx)("meta",{property:"og:title",content:n}),(0,t.jsx)("meta",{property:"og:description",content:c}),(0,t.jsx)("meta",{property:"og:type",content:"blog"}),"(imageSrc ? ",(0,t.jsx)("meta",{property:"og:image",content:l})," )",(0,t.jsx)("meta",{name:"robots",content:"index, follow"})]})}},2971:function(e,s,n){"use strict";n.d(s,{N:function(){return r}});var t=n(5893),r=function(){return(0,t.jsx)("div",{className:"border bg-gray-300 shadow rounded-md p-4 w-full mx-auto mb-2",children:(0,t.jsxs)("div",{className:"animate-pulse flex space-x-4",children:[(0,t.jsx)("div",{className:"bg-gray-200 h-20 w-24 rounded-md"}),(0,t.jsxs)("div",{className:"flex-1 space-y-4 py-1",children:[(0,t.jsx)("div",{className:"h-4 bg-gray-200 rounded w-3/4"}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"h-4 bg-gray-200 rounded"}),(0,t.jsx)("div",{className:"h-4 bg-gray-200 rounded w-5/6"})]})]})]})})}},3085:function(e,s,n){"use strict";n.r(s),n.d(s,{__N_SSG:function(){return a},default:function(){return l}});var t=n(5893),r=n(6115),i=n(3993),o=n(5292),a=!0;function l(e){return(0,t.jsx)(i.A,{children:(0,t.jsx)(r.Z,{blogs:e.blogs,blogType:o.L.DeveloperBlog})})}},5292:function(e,s,n){"use strict";n.d(s,{L:function(){return i}});var t=n(6156),r=function e(s,n,r){!function(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}(this,e),(0,t.Z)(this,"Name",void 0),(0,t.Z)(this,"BlogTypeGuid",void 0),(0,t.Z)(this,"Title",void 0),this.Name=s,this.BlogTypeGuid=n,this.Title=r},i={DeveloperBlog:new r("DeveloperBlog","09A3254D-1A3E-41EC-ABE4-27F74DB5FE05","Developer Blog"),MusicBlog:new r("MusicBlog","7E8646EB-0EDE-418C-ACF4-2806144669AB","Music Blog"),ElectronicsBlog:new r("ElectronicsBlog","8F1330A5-F65F-414B-9CB8-923E5D70687F","Electronics Blog")}},2426:function(e,s,n){"use strict";function t(e,s){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],t=function(e,t){var r=s(n?e:t),i=s(n?t:e);return"number"===typeof r&&"number"===typeof i?r-i<0?-1:r-i>0?1:0:r<i?-1:r>i?1:0};return null===e||void 0===e?void 0:e.sort(t)}function r(e){for(var s,n,t=e.length;0!==t;)n=Math.floor(Math.random()*t),s=e[t-=1],e[t]=e[n],e[n]=s;return e}n.d(s,{D:function(){return t},T:function(){return r}})},6864:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/DeveloperBlog",function(){return n(3085)}])}},function(e){e.O(0,[774,112,885,351,485,762],(function(){return s=6864,e(e.s=s);var s}));var s=e.O();_N_E=s}]);
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.