PageSourceSearch

https://northcascades.com/_next/static/chunks/pages/dashboard/classifieds-8de851c1b7a2b30a.js

js northcascades.com collected 2026-09-26 21:25:04 UTC 8,864 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9511],{14313:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),s=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},a=r(42135),o=function(e,t){return s.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))};var l=s.forwardRef(o)},26346:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),s=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M603.3 327.5l-246 178a7.95 7.95 0 000 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"left-circle",theme:"outlined"},a=r(42135),o=function(e,t){return s.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))};var l=s.forwardRef(o)},68913:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/classifieds",function(){return r(29410)}])},59143:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(85893),s=r(26346),i=r(14313),a=r(67294),o=r(41248),l=r(68966);function c(e){var t=e.links,r=t.length-1,c=t[r],u=(0,o.v9)((function(e){var t;return c&&(null===(t=e.itemNavigation[c.href])||void 0===t?void 0:t.query)}));return(0,n.jsx)("div",{className:"d-flex align-self-start gap-2",children:t.map((function(e,t){var o=t===r&&u?e.href+(0,l.WH)(u):e.href;return(0,n.jsxs)(a.Fragment,{children:[0===t?(0,n.jsx)(s.Z,{className:"fs-4"}):(0,n.jsx)(i.Z,{}),(0,n.jsx)("a",{href:o,children:e.text})]},t)}))})}},76910:function(e,t,r){"use strict";var n=r(85893),s=r(9008),i=r.n(s),a=r(11163),o=r(67294),l=r(85518),c=r(64261);t.Z=function(e){var t,r,s=e.message,u=e.errorCode,d=(0,a.useRouter)(),h=(0,o.useState)(!0),f=h[0],m=h[1];return(0,o.useEffect)((function(){setTimeout((function(){m(!1)}),3e3)})),f?(0,n.jsx)(c.Z,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i(),{children:(0,n.jsxs)("title",{children:["object"===typeof s?null===s||void 0===s||null===(t=s.title)||void 0===t?void 0:t.toString().substring(0,50):null===s||void 0===s?void 0:s.toString().substring(0,50),"..."]})}),(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-around",alignItems:"center",maxWidth:"100%",height:"30vh",marginLeft:"20px",marginRight:"20px"},children:[(0,n.jsx)("h1",{children:s&&"object"===typeof s?null===s||void 0===s?void 0:s.status:u}),(0,n.jsxs)("h3",{style:{fontSize:!l.nI&&"1em"},children:["Sorry"," ",s?"object"===typeof s?null===s||void 0===s||null===(r=s.title)||void 0===r?void 0:r.toString().substring(0,50):null===s||void 0===s?void 0:s.toString().substring(0,50):"something went wrong","..."]}),"/"!==d.asPath&&(0,n.jsx)("button",{onClick:function(){return d.push("/")},className:"btn btn-secondary btn-sm",children:"Back Home"})]})]})}},2144:function(e,t,r){"use strict";var n=r(85893),s=r(11163),i=r(67294),a=r(97346),o=r(34051),l=r(31555),c=r(85518);t.Z=function(e){var t=e.content,r=e.filterProperty,u=e.categoryProperty,d=(e.toChild,e.sendToParent),h=e.setCurrentPage,f=(0,s.useRouter)(),m=(0,i.useState)(""),v=m[0],g=m[1],x=(0,i.useState)(""),p=x[0],j=x[1];(0,i.useEffect)((function(){(f.query.search||f.query.category)&&(y(),""==v&&""==p||d(t.filter((function(e){return r.some((function(t){var r;return null===(r=e[t])||void 0===r?void 0:r.toLowerCase().includes(v.toLowerCase())}))})).filter((function(e){var t;return null===(t=e[u])||void 0===t?void 0:t.toLowerCase().includes(p.toLowerCase())}))))}),[f.query.search,f.query.category]);var y=function(){var e,t;g(null!==(e=f.query.search)&&void 0!==e?e:""),j(null!==(t=f.query.category)&&void 0!==t?t:"")};return(0,n.jsx)(a.Z,{className:"form",onSubmit:function(e){e.preventDefault(),d(t.filter((function(e){return r.some((function(t){var r;return null===(r=e[t])||void 0===r?void 0:r.toLowerCase().includes(v.toLowerCase())}))})).filter((function(e){var t;return null===(t=e[u])||void 0===t?void 0:t.toLowerCase().includes(p.toLowerCase())}))),void 0!==h&&h(1),(v||p)&&f.push({query:{search:v,category:p}})},children:(0,n.jsxs)(o.Z,{className:"align-items-end mb-2 gap-2 ".concat(c.nI&&"p-2"),style:{paddingRight:"10px"},children:[(0,n.jsxs)(l.Z,{xs:12,sm:4,children:[(0,n.jsx)(a.Z.Label,{column:"sm",children:"Search"}
1),(0,n.jsx)(a.Z.Control,{size:"sm",type:"text",value:v,onChange:function(e){return g(e.target.value)}})]}),(0,n.jsxs)(l.Z,{xs:12,sm:4,children:[(0,n.jsx)(a.Z.Label,{column:"sm",children:"Category"}),(0,n.jsxs)(a.Z.Select,{size:"sm",value:p,onChange:function(e){return j(e.target.value)},children:[(0,n.jsx)("option",{value:"",children:"All"}),t.slice().sort((function(e,t){var r;return null===(r=e[u])||void 0===r?void 0:r.localeCompare(t[u])})).map((function(e,t,r){return(0,n.jsx)(i.Fragment,{children:(0==t||e[u]!=r[t-1][u])&&(0,n.jsx)("option",{value:e[u],children:e[u]})},t)}))]})]}),(0,n.jsx)(l.Z,{xs:12,sm:4,md:4,lg:2,children:(0,n.jsx)(a.Z.Control,{size:"sm",type:"submit",value:"Search"})})]})})}},64913:function(e,t,r){"use strict";var n=r(85893),s=r(9008),i=r.n(s);t.Z=function(e){var t=e.headTitle;return(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:t})})}},29410:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return j}});var n=r(85893),s=r(11004),i=r(32835),a=r(33299),o=r(11163),l=r(67294),c=r(10682),u=r(34051),d=r(35005),h=r(85518),f=r(59143),m=r(66073),v=r(76910),g=r(2144),x=r(64913),p=r(39941),j=!0;t.default=function(e){var t=e.content,r=(e.redirectURL,e.responseStatus),j=e.context,y=(0,a.useSession)(),b=(y.data,y.status,(0,o.useRouter)());if(200===r){var C=(0,l.useState)(t.items),Z=C[0],w=C[1],S=(0,l.useState)(1),N=S[0],_=S[1],L=(0,l.useState)({}),P=L[0],k=L[1],q=(0,l.useState)(!1),T=q[0],z=q[1],E=function(){z(!1)};return(0,l.useLayoutEffect)((function(){j.pageNumber?_(j.pageNumber):_(1)}),[j.pageNumber]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.Z,{headTitle:t.pageTitle}),(0,n.jsxs)(c.Z,{children:[(0,n.jsx)("div",{className:"my-3",children:(0,n.jsx)(f.Z,{links:[{text:"Dashboard",href:"/dashboard"}]})}),(0,n.jsx)(p.Z,{marquees:t.marquees,marqueeDialogs:t.marqueeDialogs,paragraphTop:t.paragraphTop,body:t.body}),(0,n.jsx)("div",{className:"".concat(h.nI?"":"row"),children:(0,n.jsx)(g.Z,{content:t.items,filterProperty:["headline","body"],categoryProperty:["category"],toChild:Z,sendToParent:w,setCurrentPage:_})}),t.submitPage&&(0,n.jsx)("h5",{className:"my-3 text-end",children:(0,n.jsx)("a",{href:"/submit".concat(t.submitPage.filepath.replace(".html","")),children:t.submitPage.displaysText})}),(0,n.jsx)(u.Z,{children:Z.slice(20*(N-1),20*N).map((function(e,r){return(0,n.jsxs)(u.Z,{children:[(0,n.jsx)("h4",{children:e.headline}),(0,n.jsxs)("p",{children:[e.body.slice(0,250),"...",(0,n.jsx)("a",{href:"#",onClick:function(){var r;k(null===t||void 0===t||null===(r=t.items)||void 0===r?void 0:r.find((function(t){return t.idClassified==e.idClassified}))),z(!0)},children:"Read More"})]})]},r)}))}),Z.length>19&&(0,n.jsx)("div",{className:"my-3",children:(0,n.jsx)(s.Z,{defaultCurrent:N,total:Z.length,pageSize:20,showSizeChanger:!1,onChange:function(e){_(e),window.scrollTo({top:0,behavior:"auto"}),b.push({query:{pageNumber:e}})}})}),(0,n.jsx)(u.Z,{children:(0,n.jsx)(p.Z,{paragraphBottom:t.paragraphBottom})}),(0,n.jsxs)(i.Z,{keyboard:!0,closable:!1,centered:!0,width:"auto",style:{maxWidth:"80vw"},bodyStyle:{height:"auto",maxHeight:"70vh",overflow:"scroll",overflowX:"hidden"},footer:[(0,n.jsx)(d.Z,{variant:"secondary",size:"sm",onClick:E,children:"Close"},"back")],title:P.headline,open:T,onCancel:E,children:[(0,n.jsx)("p",{style:{whiteSpace:"pre-line"},children:P.body}),(0,n.jsxs)("p",{children:[P.phoneVoice&&(0,n.jsxs)(n.Fragment,{children:["Call us: ",P.phoneVoice,","]})," ",P.email&&(0,n.jsxs)(n.Fragment,{children:["Email:"," ",(0,n.jsx)("a",{href:"mailto:".concat(P.email),children:P.email}),","]})," ",P.lastDate&&(0,n.jsxs)(n.Fragment,{children:["Offer ends: ",(0,m.Jw)(P.lastDate)," or sooner. All discounts are first come, first serve."," "]})," ",P.urlActual&&P.urlDisplay&&(0,n.jsxs)(n.Fragment,{children:["For more detail:"," ",(0,n.jsx)("a",{href:P.urlActual,target:"_blank",rel:"noopener noreferrer",children:P.urlDisplay}),","]})," ",P.idClassified&&(0,n.jsxs)(n.Fragment,{children:["Mention Ad #",(0,m.Yb)(P.idClassified)]})]})]})]})]})}return(0,n.jsx)(v.Z,{message:t,errorCode:r})}}},function(e){e.O(0,[7604,8529,2441,1004,4350,9941,9774,2888,179],(function(){return t=68913,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.