1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[118],{36987:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/submissions",function(){return t(36239)}])},36239:function(e,s,t){"use strict";t.r(s),t.d(s,{SubmissionsPage:function(){return N},default:function(){return _}});var a,n,r=t(85893),c=t(36465),i=t.n(c),o=t(67294);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}var d=function(e){return o.createElement("svg",l({"data-sanity-icon":"home",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=o.createElement("path",{d:"M6.5 8.75v9.75h12V8.75M4.5 10l8-5 8 5m-6 8.5v-7h-4v7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})))};function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}var u=function(e){return o.createElement("svg",h({"data-sanity-icon":"download",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=o.createElement("path",{d:"M19.5 17v2.5h-14V17m7-1V5M17.5 11l-5 5-5-5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})))}
1,m=t(92935),b=t(64209),p=t(89734),f=t.n(p),v=t(83461);let j=[{accessor:"submitted",sortable:!0,render:e=>new Date(e.submitted).toLocaleString()},{accessor:"name"},{accessor:"email"},{accessor:"phone"},{accessor:"suburb"},{accessor:"message",width:"30%"}],x=e=>{let{}=e,[s,t]=(0,o.useState)([]),[a,n]=(0,o.useState)(1),[c,i]=(0,o.useState)({columnAccessor:"submitted",direction:"desc"});return(0,o.useEffect)(()=>{let e=async()=>{let{data:e,error:s}=await m.Z.from("makings contact").select();s&&t([]),e&&t(e.reverse())};e()},[]),(0,o.useEffect)(()=>{let e=f()(s,c.columnAccessor);t("desc"===c.direction?e.reverse():e)},[c]),(0,r.jsx)("section",{className:"section-data-table",children:(0,r.jsxs)("div",{className:"data-table",children:[(0,r.jsxs)("div",{className:"data-table__header",children:[(0,r.jsx)("h1",{children:"Website form submissions"}),(0,r.jsxs)("a",{href:"/",children:[(0,r.jsx)("span",{children:"back to site"}),(0,r.jsx)("figure",{children:(0,r.jsx)(d,{})})]})]}),(0,r.jsx)("div",{className:"data-table__options",children:(0,r.jsx)("div",{className:"data-table__options-csv",children:(0,r.jsxs)(v.CSVLink,{data:s,filename:"form-response.csv",children:[(0,r.jsx)(u,{}),(0,r.jsx)("span",{children:"Download CSV"})]})})}),(0,r.jsx)("div",{className:"data-table__table",children:(0,r.jsx)(b.wQ,{withColumnBorders:!0,highlightOnHover:!0,verticalSpacing:"sm",verticalAlignment:"top",totalRecords:s.length,recordsPerPage:15,page:a,onPageChange:e=>n(e),sortStatus:c,onSortStatusChange:i,columns:j,records:s})}),(0,r.jsx)("div",{className:"data-table__footer",children:(0,r.jsxs)("p",{children:[(0,r.jsx)("em",{children:"Table not displaying correctly or need any assistance? Contact:"}),(0,r.jsx)("br",{}),"[email protected] ",(0,r.jsx)("br",{}),(0,r.jsx)("em",{children:"or call "}),"0452 561 158"]})})]})})};var g=t(4298),w=t.n(g);let N=()=>(0,r.jsxs)("div",{className:"jsx-a2bd2b6c1134e2fd staticshield-div",children:[(0,r.jsx)(w(),{src:"https://staticshield.vercel.app/script.js","data-cap":"","data-site-id":"a374cd0d-9c12-4ee4-b347-be479ae8771f",strategy:"beforeInteractive"}),(0,r.jsx)(i(),{id:"a2bd2b6c1134e2fd",children:".staticshield-div.jsx-a2bd2b6c1134e2fd{display:none}"}),(0,r.jsx)("noscript",{className:"jsx-a2bd2b6c1134e2fd",children:(0,r.jsx)("meta",{httpEquiv:"refresh",content:"0; url=https://staticshield.vercel.app/errors/noscript",className:"jsx-a2bd2b6c1134e2fd"})}),(0,r.jsx)(x,{})]});var _=N},92935:function(e,s,t){"use strict";var a=t(2515);let n=(0,a.eI)("https://lbfsdnauaalpseiliqth.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImxiZnNkbmF1YWFscHNlaWxpcXRoIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTAxNzE2NTUsImV4cCI6MjAwNTc0NzY1NX0.oSlQchMPkhvhbkYTFfG5UMaOoF1Q9eBGx7ggGczuqFM");s.Z=n}},function(e){e.O(0,[666,594,943,875,942,774,888,179],function(){return e(e.s=36987)}),_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.