1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8048],{4492:function(e,t,r){"use strict";var n=r(6835);r(7294);var a=r(2793),s=r(4865),i=r(1664),o=r.n(i),l=r(5893);t.Z=function(e){var t=e.title,r=e.link,i=e.children;return(0,l.jsxs)("div",{className:"w-full h-full bg-[#F5F4F9]",children:[(0,l.jsx)("div",{className:"w-full mb-16",children:(0,l.jsx)(a.Z,{})}),(0,l.jsx)("div",{className:"w-full flex flex-col justify-start py-16 bg-[#F5F4F9]",children:(0,l.jsxs)("div",{className:"font-kanit mx-auto w-[95%] lg:w-[90%]",children:[(0,l.jsx)("h1",{className:"w-full text-center text-3xl sm:text-4xl lg:text-5xl font-semibold font-poppins my-2 text-[#242331]",children:t||""}),(0,l.jsxs)("div",{className:"w-full flex justify-center items-center text-[#888888] text-xs font-medium mb-10 gap-1",children:[(0,l.jsx)(o(),{href:"/",className:"hover:underline hover:text-[#6957AF]",children:"home"}),Object.entries(r||{}).map(function(e,t){var r=(0,n.Z)(e,2),a=r[0],s=r[1];return s&&a&&void 0!=a&&"undefined"!=a?(0,l.jsxs)("div",{className:"flex justify-center items-center gap-1",children:[(0,l.jsx)("span",{children:" / "}),(0,l.jsx)(o(),{href:s,className:"hover:underline hover:text-[#6957AF]",children:a||""})]},"link-bread-crumb_idx_".concat(t)):(0,l.jsx)("div",{},"link-bread-crumb_idx_".concat(t))})]}),(0,l.jsx)("div",{className:"w-full",children:i})]})}),(0,l.jsx)(s.Z,{})]})}},3835:function(e,t,r){"use strict";var n=r(7294),a=r(5893);t.Z=function(e){var t=e.currentPage,r=e.setCurrentPage,s=e.filtered,i=(e.finalArray,e.setFinalArray),o=(0,n.useState)(24)[0];(0,n.useEffect)(function(){if(s&&o){var e=t*o,r=e-o;i((s||[]).slice(r,e)||[])}},[t,s,o]);var l=function(e){r(e)},c=Math.ceil((s||[]).length/o),u=[];
1if(c<=5)for(var d=1;d<=c;d++)u.push(d);else{var f=Math.max(1,t-Math.floor(2.5)),m=Math.min(c,f+5-1);m-f+1<5&&(f=m-5+1),f>1&&(u.push(1),f>2&&u.push("..."));for(var p=f;p<=m;p++)u.push(p);m<c&&(m<c-1&&u.push("..."),u.push(c))}return(0,a.jsxs)("div",{className:"w-full flex justify-center items-center gap-8 py-6 border-t-2 border-[#AFAFAF82]",children:[(0,a.jsxs)("div",{className:"flex gap-2 justify-center items-center",children:[(0,a.jsx)("button",{onClick:function(){return l(1)},disabled:1===t,className:"px-2 py-1 border-2 text-sm font-medium font-poppins rounded ".concat(1===t?"border-gray-400 text-gray-500 cursor-not-allowed":"border-[#7D54AF] text-[#7D54AF] hover:bg-[#7D54AF] hover:text-white duration-200 transition"," "),children:"First"}),(0,a.jsx)("button",{onClick:function(){return l(t-1)},disabled:1===t,className:"px-2 py-1 border-2 text-sm font-medium font-poppins rounded ".concat(1===t?"border-gray-400 text-gray-500 cursor-not-allowed":"border-[#7D54AF] text-[#7D54AF] hover:bg-[#7D54AF] hover:text-white duration-200 transition"," "),children:"Prev"})]}),(0,a.jsx)("div",{className:"flex justify-center items-center gap-2 space-x-2",children:u.map(function(e){return(0,a.jsx)("div",{className:"w-8 h-8 rounded-sm flex justify-center items-center border-2 cursor-pointer border-[#7D54AF] ".concat(e===t?"bg-[#7D54AF] text-white":"text-[#7D54AF]"),onClick:function(){return l(e)},children:e},e)})}),(0,a.jsxs)("div",{className:"flex gap-2 justify-center items-center",children:[(0,a.jsx)("button",{onClick:function(){return l(t+1)},disabled:t===c,className:"px-2 py-1 border-2 text-sm font-medium font-poppins rounded ".concat(t===c?"border-gray-400 text-gray-500 cursor-not-allowed":"border-[#7D54AF] text-[#7D54AF] hover:bg-[#7D54AF] hover:text-white duration-200 transition"," "),children:"Next"}),(0,a.jsx)("button",{onClick:function(){return l(c)},disabled:t===c,className:"px-2 py-1 border-2 text-sm font-medium font-poppins rounded ".concat(t===c?"border-gray-400 text-gray-500 cursor-not-allowed":"border-[#7D54AF] text-[#7D54AF] hover:bg-[#7D54AF] hover:text-white duration-200 transition"," "),children:"Last"})]})]})}},9088:function(e,t,r){"use strict";r.r(t);var n=r(7812),a=r(9499),s=r(29),i=r(7794),o=r.n(i),l=r(7294),c=r(8952),u=r(9828),d=r(1664),f=r.n(d),m=r(1163),p=r(948),x=r(2962),h=r(3612),g=r(4492),v=r(3835),y=r(5893);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}t.default=function(){var e,t,r=(0,l.useState)([]),i=r[0],d=r[1],w=(0,l.useState)([]),j=w[0],N=w[1],A=(0,l.useState)(!0),F=A[0],D=A[1],S=(0,l.useState)("All"),O=S[0],I=S[1],T=(0,l.useState)("All"),k=T[0],_=T[1],P=(0,l.useState)([]),E=P[0],Z=P[1];(0,l.useState)(12)[0];var C=(0,l.useState)(1),M=C[0],J=C[1],U=(0,l.useState)([]),B=U[0],L=U[1];(0,m.useRouter)();var q=(e=(0,s.Z)(o().mark(function e(t,r,n,a){var s,i,l;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s=[],i=(0,u.hJ)(c.db,t),e.next=5,(0,u.PL)(i);case 5:if(!(l=e.sent).empty){e.next=8;break}return e.abrupt("return");case 8:l.forEach(function(e){var t=e.data();for(var a in t){var i=t[a];i&&i[r]===n&&s.push(i)}}),a(s),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.error("Error fetching data: ",e.t0);case 15:case"end":return e.stop()}},e,null,[[0,12]])})),function(t,r,n,a){return e.apply(this,arguments)});(0,l.useEffect)(function(){var e=localStorage.getItem("unasweredForumsData"),t=localStorage.getItem("unasweredForumsDataTimestamp");if(e&&t){if(new Date().getTime()-parseInt(t)<h.px){N(JSON.parse(e)),D(!1);return}q("forums","unaswered",!0,function(e){N(e),D(!1),localStorage.setItem("unasweredForumsData",JSON.stringify(e)),localStorage.setItem("unasweredForumsDataTimestamp",new Date().getTime())})}else q("forums","unaswered",!0,function(e){N(e),D(!1),localStorage.setItem("unasweredForumsData",JSON.stringify(e)),localStorage.setItem("unasweredForumsDataTimestamp",new Date().getTime())})},[]);var R=(t=(0,s.Z)(o().mark(function e(t,r){var n,a,s;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=(0,u.JU)(c.db,"Iain-abernethy","categories"),e.next=4,(0,u.QT)(n);case 4:(a=e.sent).exists()&&r(Object.keys(s=a.data()).map(function(e){return b(b({},s[e]),{},{id:e,lastPost:null})})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error("Error fetching data: ",e.t0);case 11:case"end":return e.stop()}},e,null,[[0,8]])})),function(e,r){return t.apply(this,arguments)});(0,l.useEffect)(function(){var e=localStorage.getItem("forumTypesData"),t=localStorage.getItem("forumTypesDataTimestamp");if(e&&t){if(new Date().getTime()-parseInt(t)<h.px){d(JSON.parse(e));return}R("Iain-abernethy",function(e){d(e),D(!1),localStorage.setItem("forumTypesData",JSON.stringify(e)),localStorage.setItem("forumTypesDataTimestamp",new Date().getTime())})}else R("Iain-abernethy",function(e){d(e),D(!1),localStorage.setItem("forumTypesData",JSON.stringify(e)),localStorage.setItem("forumTypesDataTimestamp",new Date().getTime())})},[]),(0,l.useEffect)(function(){j&&k&&Z((0,n.Z)(j||[]).filter(function(e){return"All"==k||(null==e?void 0:e.categoryId)==k}).sort(function(e,t){return new Date(t.createdOn)-new Date(e.createdOn)})||[])},[j,k]);var X=function(e){if(!e)return"";var t=new Date(e),r=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0"),s=String(t.getHours()).padStart(2,"0"),i=String(t.getMinutes()).padStart(2,"0"),o=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][t.getDay()];return"".concat(o,", ").concat(r,"-").concat(n,"-").concat(a," ").concat(s,":").concat(i)},z={Categorical:"/forum/","Active topics":"/forum/active","New & updated topic":"/forum/new","Unanswered topics":"/forum/unanswered"};return(0,y.jsxs)("div",{className:"w-full",children:[(0,y.jsx)(x.PB,{title:"Unanswered - Forum for Iain Abernethy",description:"A community forum dedicated to discu
1ssions and resources related to Iain Abernethy, martial arts, and self-defense techniques.",titleTemplate:"%s",additionalMetaTags:[{httpEquiv:"content-type",content:"text/html; charset=utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1.0"},{name:"keywords",content:"Iain Abernethy â Practical Karate"},{name:"msapplication-TileImage",content:"/favicon.ico"}],additionalLinkTags:[{rel:"icon",href:"/favicon.png"},{rel:"apple-touch-icon",href:"/favicon.png"}],canonical:"https://iainabernethy.com/forum/unanswered",openGraph:{url:"https://iainabernethy.com/forum/unanswered",title:"Unanswered - Forum for Iain Abernethy",description:"A community forum dedicated to discussions and resources related to Iain Abernethy, martial arts, and self-defense techniques.",images:[{url:"/911978bd-6878-44ae-a59b-b3c31fb1592ff770058a-703e-4dfd-844a-e1d4ac86435c.jpg",width:1200,height:620,alt:"brand logo",type:"image/png"}],type:"website",siteName:"Iain Abernethy"},twitter:{handle:"@iainabernethy",site:"@iainabernethy",cardType:"/1f84d3e0-7777-494e-865d-9f9b6dd5eea9847d7968-b8cd-46d2-9674-431afb1ae2db.jpg"}}),(0,y.jsxs)(g.Z,{title:"Unanswered topics",link:(0,a.Z)({forums:"/forum/"},"Unanswered topics","/forum/unanswered"),children:[(0,y.jsx)(function(e){var t=e.active;return(0,y.jsx)("div",{className:"w-full flex flex-wrap justify-center items-center gap-4 text-xs md:text-sm font-poppins",children:Object.keys(z||{}).map(function(e){var r=(null==z?void 0:z[e])||"/forum/";return(0,y.jsx)(f(),{href:r,className:"px-5 py-2 ".concat(t==e?"bg-[#6957AF] text-white":"text-[#808080] bg-[#EAEAEA]"," rounded-md active:scale-95 duration-200 transition"),children:e||""},"FIlter_button_val_".concat(e))})})},{active:"Unanswered topics"}),(0,y.jsxs)("div",{className:"w-full border-t-2 border-[#AFAFAF82] my-8 py-4",children:[(0,y.jsxs)("div",{className:"px-2 flex items-end justify-start gap-4",children:[(0,y.jsxs)("div",{className:"flex flex-col justify-start items-start gap-2",children:[(0,y.jsx)("label",{htmlFor:"edit-forum",className:"text-sm font-normal font-poppins",children:"Show active topics in:"}),(0,y.jsxs)("select",{id:"edit-forum",name:"forum",value:O,onChange:function(e){I(e.target.value)},className:"w-full font-poppins text-xs md:text-sm px-4 py-1.5 bg-white border rounded",children:[(0,y.jsx)("option",{value:"All",children:"All Categories"}),i.map(function(e,t){return(0,y.jsx)("option",{value:e.slug,children:e.name},t)})]})]}),(0,y.jsx)("div",{className:"flex justify-center items-center h-full ",children:(0,y.jsx)("button",{className:"px-6 py-2 rounded bg-[#6957AF] text-white text-xs md:text-sm font-medium active:scale-95 duration-200 transition",onClick:function(){_(O||"")},children:"Apply"})})]}),F?(0,y.jsx)("div",{className:"py-6 md:py-12",children:(0,y.jsx)(p.Z,{})}):(0,y.jsxs)("div",{className:"w-full flex flex-col justify-start items-start gap-4 py-6",children:[(0,y.jsxs)("div",{className:"w-full grid grid-cols-12 text-xs text-[#545454] font-poppins font-medium gap-2 md:gap-4 px-4 md:px-8",children:[(0,y.jsx)("div",{className:"w-full text-left flex justify-start items-center col-span-6",children:"Topic"}),(0,y.jsx)("div",{className:"w-full text-center flex justify-center items-center col-span-1",children:"Replies"}),(0,y.jsx)("div",{className:"w-full text-center flex justify-center items-center col-span-1",children:"Views"}),(0,y.jsx)("div",{className:"w-full text-left flex justify-start items-center col-span-2",children:"Last Post"}),(0,y.jsx)("div",{className:"w-full text-left flex justify-center items-center col-span-2",children:"Forum"})]}),(B||[]).sort(function(e,t){return new Date(t.createdOn)-new Date(e.createdOn)}).map(function(e,t){return(0,y.jsxs)("div",{className:"w-full grid grid-cols-12 gap-2 md:gap-4 px-4 md:px-8 py-4 rounded-md bg-white shadow-md",children:[(0,y.jsxs)("div",{className:"w-full flex flex-col justify-start items-center gap-2 col-span-6",children:[(0,y.jsx)(f(),{href:"/content/".concat(null==e?void 0:e.slug),className:"w-full text-left font-semibold text-lg md:text-xl text-[#000000] font-poppins",children:(null==e?void 0:e.title)||""}),(0,y.jsxs)("div",{className:"w-full flex flex-col justify-start items-start gap-2 text-xs",children:[(0,y.jsxs)("span",{className:"text-[#000]",children:["by ",null==e?void 0:e.createdBy]}),(0,y.jsxs)("span",{className:"text-[#545454]",children:["on ",X(null==e?void 0:e.createdOn)]})]})]}),(0,y.jsx)("div",{className:"w-full col-span-1 flex justify-center items-center text-center text-sm md:text-base text-[#686868] font-medium font-poppins",children:(null==e?void 0:e.repliesCount)||0}),(0,y.jsx)("div",{className:"w-full col-span-1 flex justify-center items-center text-center text-sm md:text-base text-[#686868] font-medium font-poppins",children:(null==e?void 0:e.viewsCount)||0}),(0,y.jsx)("div",{className:"w-full col-span-2 flex flex-col justify-center items-center gap-2",children:(0,y.jsxs)("div",{className:"w-full flex flex-col justify-start items-start gap-2 text-xs",children:[(0,y.jsxs)("span",{className:"text-[#000]",children:["by ",null==e?void 0:e.lastModifiedBy]}),(0,y.jsxs)("span",{className:"text-[#545454]",children:["on ",X(null==e?void 0:e.lastModifiedOn)]})]})}),(0,y.jsx)("div",{className:"w-full col-span-2 flex justify-center items-center text-center",children:(0,y.jsx)(f(),{href:"/forum/".concat(null==e?void 0:e.categoryId),className:"w-full text-sm md:text-base text-[#6957AF] font-medium font-poppins",children:(null==e?void 0:e.category)||""})})]},"forum_table_index_".concat(t))})]}),(0,y.jsx)(v.Z,{currentPage:M,setCurrentPage:J,filtered:E,finalArray:B,setFinalArray:L}),(0,y.jsx)("div",{className:"py-6 sm:py-12 w-[580px] ",children:(0,y.jsx)("div",{className:"content",children:(0,y.jsx)("iframe",{className:"border-none overflow-hidden w-[580px] md:max-w-screen-lg h-[588px]",frameBorder:"0",scrolling:"no",loading:"lazy",src:"//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fiainabernethy%3Fref%3Dts%26fref%3Dts&width=920&height=558&show_faces=true&colorscheme=light&stream=true&show_border=false&header=false&appId=530334500365627"})})})]})]})]})}},5239:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forum/unanswered",function(){return r(9088)}])},7812:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(2587),a=r(2937);function s(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,a.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}},function(e){e.O(0,[2016,5801,5445,8290,326,2962,3253,2793,4865,9774,2888,179],function(){return e(e.s=5239)}),_N_E=e.O()}]);
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.