PageSourceSearch

https://wnctimes.com/_next/static/chunks/70a14f413c5aa3e9.js?dpl=dpl_8GYDWrGyRxBNrs35SR2Fng4BKUWp

js wnctimes.com collected 2026-10-07 20:58:03 UTC 34,373 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,603969,463482,361220,e=>{"use strict";e.i(247167),e.i(436180);var t=e.i(98925),r=e.i(959141),a=e.i(965379);function i(e,t=Date.now()){return!0!==e.paidAdvertisingManaged||!0!==e.billingPaused&&"number"==typeof e.paidAdvertisingValidUntil&&Number.isFinite(e.paidAdvertisingValidUntil)&&e.paidAdvertisingValidUntil>t}function n(e){if(!e||"object"!=typeof e||Array.isArray(e))return!1;let t=["header_main","article_inline","sidebar_top","sidebar_sticky"],r=e=>null===e||"number"==typeof e&&Number.isSafeInteger(e)&&e>=0&&e<=864e13;return 1===e.version&&Array.isArray(e.selectedPlacements)&&e.selectedPlacements.length>0&&e.selectedPlacements.every(e=>t.includes(e))&&new Set(e.selectedPlacements).size===e.selectedPlacements.length&&["all","home","sections"].includes(e.pageScope)&&Array.isArray(e.categoryIds)&&e.categoryIds.every(e=>"string"==typeof e&&e.length>0)&&("sections"===e.pageScope?e.categoryIds.length>0:0===e.categoryIds.length)&&Array.isArray(e.devices)&&e.devices.length>0&&e.devices.every(e=>"mobile"===e||"desktop"===e)&&new Set(e.devices).size===e.devices.length&&r(e.startsAt)&&r(e.endsAt)&&(null===e.startsAt||null===e.endsAt||e.startsAt<e.endsAt)}function l(e){return e<1024?"mobile":"desktop"}function s(e,t,r){let a=r.now??Date.now();if("active"!==e.status||!0===e.ownerRemoved||!0===e.billingPaused||!i({paidAdvertisingManaged:e.paidAdvertisingManaged,paidAdvertisingValidUntil:e.paidAdvertisingValidUntil,billingPaused:e.billingPaused},a))return!1;let l=e.campaignDelivery;return void 0===l?"header_main"!==t||"number"==typeof r.viewportWidth&&r.viewportWidth>=1280:!!n(l)&&!!Array.isArray(l.selectedPlacements)&&!!l.selectedPlacements.some(e=>e===t)&&!!r.device&&!!Array.isArray(l.devices)&&!!l.devices.includes(r.device)&&(null===l.startsAt||"number"==typeof l.startsAt&&!!Number.isFinite(l.startsAt)&&!(a<l.startsAt))&&(null===l.endsAt||"number"==typeof l.endsAt&&!!Number.isFinite(l.endsAt)&&!(a>=l.endsAt))&&("all"===l.pageScope||("home"===l.pageScope?"home"===r.page.kind:"sections"===l.pageScope&&"section"===r.page.kind&&!!r.page.categoryId&&Array.isArray(l.categoryIds)&&l.categoryIds.includes(r.page.categoryId)))}function o(e,t){let r=e.flatMap(e=>{let t=n(e.campaignDelivery)?e.campaignDelivery:null;return[t?.startsAt,t?.endsAt,!0===e.paidAdvertisingManaged?e.paidAdvertisingValidUntil:null]}).filter(e=>"number"==typeof e&&Number.isFinite(e)&&e>t);return r.length?Math.min(...r):null}e.s(["hasCurrentAdvertisingPlan",()=>i],463482),e.s(["campaignDeviceForWidth",()=>l,"isCampaignEligible",()=>s,"nextCampaignBoundary",()=>o],361220);let c=(0,a.getCollectionPath)("advertising"),d="wnct-times\r\n",u=`tenants/${d}/advertising`;async function h(e,i={device:null,page:{kind:"unresolved"}}){let n=(0,r.getDb)(),l=i.now??Date.now(),g=null;async function m(r){let a=(0,t.collection)(n,r),c=(0,t.query)(a,(0,t.where)("position","==",e),(0,t.where)("status","==","active")),d=(await (0,t.getDocs)(c)).docs.map(e=>({id:e.id,...e.data()})),u=o(d,l);return null!==u&&(g=null===g?u:Math.min(g,u)),d.filter(t=>s(t,e,{...i,now:l})).slice(0,5)}let p=await m(c);if(p.length>0)return{ads:p,nextChangeAt:g};if(d&&a.TENANT_ID!==d)try{return{ads:await m(u),nextChangeAt:g}}catch(t){console.warn("[Advertising] House-ad fallback failed for position",e,t)}return{ads:[],nextChangeAt:g}}async function g(e){let a=(0,r.getDb)(),i=(0,t.collection)(a,c),n=(0,t.query)(i,(0,t.where)("clientId","==",e),(0,t.orderBy)("createdAt","desc"));return(await (0,t.getDocs)(n)).docs.map(e=>({id:e.id,...e.data()}))}async function m(e){await f(e,"impression")}async function p(e){await f(e,"click")}async function f(e,t){if(e)try{await fetch("/api/advertising/track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adId:e,metric:t}),keepalive:!0})}catch{}}async function v(e){return(await w({action:"create",updates:e})).id}async function w(e){let t=r.auth.currentUser;if(!t)throw Error("Sign in to manage advertisements.");let a=await t.getIdToken();if(r.auth.currentUser?.uid!==t.uid)throw Error("Your account changed. Refresh before managing advertisements.");let i=await fetch("/api/advertising/campaigns",{method:"POST",cac
1he:"no-store",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json"},body:JSON.stringify(e)});if(!i.headers.get("content-type")?.includes("application/json"))throw Error("Advertisement management is temporarily unavailable.");let n=await i.json();if(!i.ok)throw Error("string"==typeof n.error?n.error:"Unable to save this advertisement.");if("string"!=typeof n.id||e.id&&n.id!==e.id)throw Error("The advertisement response could not be confirmed. Refresh your advertisements.");return n}async function y(e,t){await w({action:"update",updates:t,id:e})}async function b(){let e=(0,r.getDb)(),a=(0,t.collection)(e,c),i=(0,t.query)(a,(0,t.orderBy)("updatedAt","desc"));return(await (0,t.getDocs)(i)).docs.map(e=>({id:e.id,...e.data()}))}async function x(e){await w({action:"delete",id:e})}async function k(){let e=(0,r.getDb)(),a=(0,t.collection)(e,c),i=(0,t.query)(a,(0,t.where)("status","==","pending_review"),(0,t.orderBy)("createdAt","asc"));return(await (0,t.getDocs)(i)).docs.map(e=>({id:e.id,...e.data()}))}async function A(e,t){await y(e,{status:"active",reviewedAt:new Date,reviewedBy:t})}async function j(e,t,r){await y(e,{status:"rejected",reviewedAt:new Date,reviewedBy:t,rejectionReason:r})}async function N(){let e=(0,r.getDb)(),i=(0,t.doc)(e,(0,a.getSettingsCollection)(),"advertising"),n=await (0,t.getDoc)(i);return n.exists()?n.data():null}async function C(e){let i=(0,r.getDb)(),n=(0,t.doc)(i,(0,a.getSettingsCollection)(),"advertising");await (0,t.updateDoc)(n,{...e,updatedAt:(0,t.serverTimestamp)()})}e.s(["approveAdCampaign",()=>A,"createAdCampaign",()=>v,"deleteAdCampaign",()=>x,"getAdDeliveryByPosition",()=>h,"getAdvertisingSettings",()=>N,"getAllCampaigns",()=>b,"getClientCampaigns",()=>g,"getPendingReviewCampaigns",()=>k,"recordClick",()=>p,"recordImpression",()=>m,"rejectAdCampaign",()=>j,"requestAdCampaignMutation",()=>w,"updateAdCampaign",()=>y,"updateAdvertisingSettings",()=>C],603969)},503030,779125,e=>{"use strict";var t=e.i(959141);e.i(436180);var r=e.i(98925);let a=[{name:"News",slug:"news",color:"#2563eb",description:"Breaking news and current events",editorialDirective:"Lead with the direct impact on local residents — what changed, who is affected, and what happens next. Prioritize official sources: city council actions, police reports, school board decisions, and government agency statements. Provide context for policy decisions by explaining what prompted them and what they mean practically. When covering emergencies or crime, include safety information and community resources.",isActive:!0,sortOrder:1,articleCount:0},{name:"Sports",slug:"sports",color:"#dc2626",description:"Local and regional sports coverage",editorialDirective:"Tell the story of the game, not just the score — describe key plays, momentum shifts, and the atmosphere. Spotlight individual athletes and their journeys, especially underdog and comeback stories. Cover high school, recreational, and youth sports with equal enthusiasm. Connect athletic achievements to community pride and school spirit. Include standings and schedules when relevant, but lead with narrative.",isActive:!0,sortOrder:2,articleCount:0},{name:"Business",slug:"business",color:"#059669",description:"Local business and economic news",editorialDirective:"Highlight the people behind the businesses — founder stories, motivations, and what they bring to the community. Include practical details readers care about: location, hours, what they offer, and opening dates. Connect individual business stories to broader local economic trends like downtown revitalization, job growth, or industry shifts. Explain how new developments affect specific neighborhoods and residents.",isActive:!0,sortOrder:3,articleCount:0},{name:"Entertainment",slug:"entertainment",color:"#7c3aed",description:"Arts, culture, and entertainment",editorialDirective:"Always include the practical details readers need: event dates, ticket prices, venue location, and how to participate. Profile the artists and performers — who they are, their local connections, and what makes this event special. Preview upcoming seasons and festivals with enough detail to build anticipation. Connect cultural events to community identity and what makes the area unique.",isActive:!0,sortOrder:4,articleCount:0},{name:"Lifestyle",slug:"lifestyle",color:"#db2777",description:"Community life and human interest",editorialDirective:'Focus on stories that could only happen in this community — the "only here" angle. Profile long-time residents, community pillars, and unsung heroes. Cover local traditions, seasonal rituals, and the small moments that define neighborhood life. Highlight volunteer efforts, civic engagement, and acts of generosity. Write with warmth and specificity — use names, places, and details that make the story feel intimate and real.',isActive:!0,sortOrder:5,articleCount:0}
1,{name:"Outdoors",slug:"outdoors",color:"#16a34a",description:"Outdoor recreation and nature",editorialDirective:"Include seasonal timing, current conditions, and practical tips so readers can plan their outings. Feature lesser-known trails, fishing spots, and parks alongside popular destinations. Connect outdoor stories to conservation efforts, wildlife updates, and land management decisions. Provide family-friendly recommendations with difficulty levels and accessibility notes. Write with the enthusiasm of someone who has been there.",isActive:!0,sortOrder:6,articleCount:0}];e.s(["CATEGORY_COLORS",0,[{name:"Blue",value:"#2563eb"},{name:"Red",value:"#dc2626"},{name:"Green",value:"#059669"},{name:"Purple",value:"#7c3aed"},{name:"Pink",value:"#db2777"},{name:"Orange",value:"#ea580c"},{name:"Teal",value:"#0d9488"},{name:"Indigo",value:"#4f46e5"},{name:"Yellow",value:"#ca8a04"},{name:"Slate",value:"#475569"}],"DEFAULT_CATEGORIES",0,a],779125);var i=e.i(965379);let n=(0,i.getCategoriesCollection)();function l(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)+/g,"")}async function s(e=!1){try{let a=(await (0,r.getDocs)((0,r.collection)((0,t.getDb)(),n))).docs.map(e=>{let t=e.data();return{id:e.id,name:t.name||"",slug:t.slug||"",color:t.color||"#2563eb",description:t.description||"",editorialDirective:t.editorialDirective||"",isActive:t.isActive??!0,sortOrder:t.sortOrder??999,articleCount:t.articleCount??0,...t.beatReporterId?{beatReporterId:t.beatReporterId}:{},...t.rssFeeds?.length?{rssFeeds:t.rssFeeds}:{},createdAt:t.createdAt||new Date().toISOString(),updatedAt:t.updatedAt||new Date().toISOString(),createdBy:t.createdBy||""}});if(a.sort((e,t)=>e.sortOrder!==t.sortOrder?e.sortOrder-t.sortOrder:e.name.localeCompare(t.name)),e)return a.filter(e=>e.isActive);return a}catch(e){return console.error("Error fetching categories:",e),[]}}async function o(e){try{let t=await s(),r=t.find(t=>t.name.toLowerCase()===e.toLowerCase());if(r)return r;let a=l(e);return t.find(e=>e.slug.toLowerCase()===a)||null}catch(e){return console.error("Error fetching category by name:",e),null}}async function c(e){try{let a=new Date().toISOString();return(await (0,r.addDoc)((0,r.collection)((0,t.getDb)(),n),{...e,slug:e.slug||l(e.name),articleCount:0,createdAt:a,updatedAt:a})).id}catch(e){throw console.error("Error creating category:",e),e}}async function d(e,a){try{let i=(0,r.doc)((0,t.getDb)(),n,e);await (0,r.updateDoc)(i,{...a,updatedAt:new Date().toISOString()})}catch(e){throw console.error("Error updating category:",e),e}}async function u(e){try{let a=(0,r.doc)((0,t.getDb)(),n,e);await (0,r.deleteDoc)(a)}catch(e){throw console.error("Error deleting category:",e),e}}async function h(e){try{let a=(0,r.writeBatch)((0,t.getDb)());e.forEach(e=>{let i=(0,r.doc)((0,t.getDb)(),n,e);a.delete(i)}),await a.commit()}catch(e){throw console.error("Error bulk deleting categories:",e),e}}async function g(e,a){try{let i=(0,r.writeBatch)((0,t.getDb)()),l=new Date().toISOString();e.forEach(e=>{let s=(0,r.doc)((0,t.getDb)(),n,e);i.update(s,{isActive:a,updatedAt:l})}),await i.commit()}catch(e){throw console.error("Error bulk updating category status:",e),e}}async function m(e,a){try{let i=(0,r.doc)((0,t.getDb)(),n,e);await (0,r.updateDoc)(i,{isActive:!a,updatedAt:new Date().toISOString()})}catch(e){throw console.error("Error toggling category status:",e),e}}async function p(e){try{if((await s()).length>0)return void console.log("Categories already exist, skipping seed");let i=(0,r.writeBatch)((0,t.getDb)()),l=new Date().toISOString();a.forEach(a=>{let s=(0,r.doc)((0,r.collection)((0,t.getDb)(),n));i.set(s,{...a,createdBy:e,createdAt:l,updatedAt:l})}),await i.commit(),console.log("Default categories seeded successfully")}catch(e){throw console.error("Error seeding default categories:",e),e}}async function f(){try{let e=await s(),a=await (0,r.getDocs)((0,r.collection)((0,t.getDb)(),(0,i.getArticlesCollection)())),o=new Map;a.docs.forEach(e=>{let t=e.data().category;if(t){let e=l(t);o.set(e,(o.get(e)||0)+1)}});let c=(0,r.writeBatch)((0,t.getDb)()),d=new Date().toISOString();
1e.forEach(e=>{let a=o.get(e.slug.toLowerCase())||0,i=(0,r.doc)((0,t.getDb)(),n,e.id);c.update(i,{articleCount:a,updatedAt:d})}),await c.commit(),console.log("Article counts recalculated successfully")}catch(e){throw console.error("Error recalculating article counts:",e),e}}e.s(["bulkDeleteCategories",()=>h,"bulkUpdateCategoryStatus",()=>g,"createCategory",()=>c,"deleteCategory",()=>u,"generateSlug",()=>l,"getAllCategories",()=>s,"getCategoryByName",()=>o,"recalculateArticleCounts",()=>f,"seedDefaultCategories",()=>p,"toggleCategoryStatus",()=>m,"updateCategory",()=>d],503030)},96389,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(603969),i=e.i(361220),n=e.i(503030),l=e.i(803466),s=e.i(965379);let o=new Map;async function c(e){if("/"===e)return{kind:"home"};let t=/^\/category\/([^/]+)\/?$/.exec(e),r=/^\/article\/([^/]+)\/?$/.exec(e);if(!t&&!r)return{kind:"other"};let a=t?decodeURIComponent(t[1]):(await (0,l.getArticleBySlug)(decodeURIComponent(r[1])))?.category;if(!a)return{kind:"unresolved"};let i=await (0,n.getCategoryByName)(a);return i?.id&&!1!==i.isActive?{kind:"section",categoryId:i.id}:{kind:"unresolved"}}var d=e.i(618566);let u=new Map,h=new Map,g=0;function m(e,t){return JSON.stringify([e,t])}function p(e){if("string"!=typeof e||!e.trim())return null;try{let t=window.location.origin,r=new URL(e.trim(),t);return r.hash="",`asset:${r.href}`}catch{return null}}function f(e){return!!e&&h.get(e.pageKey)?.get(e.slotKey)?.token===e.token&&e.identities.every(t=>u.get(e.pageKey)?.get(t)?.token===e.token)}function v(e,t,r,a){let i=[...new Set(r.map(e=>e.trim()).filter(Boolean))].sort();if(!i.length)return null;let n=u.get(e)||new Map,l=h.get(e)||new Map,s=l.get(t);if(a&&(!f(a)||a.pageKey!==e||a.slotKey!==t))return null;if(s&&i.length===s.identities.length&&i.every((e,t)=>e===s.identities[t]))return s;if(s&&a?.token!==s.token||i.some(e=>{let t=n.get(e);return t&&t.token!==s?.token}))return null;s&&w(s);let o=Object.freeze({pageKey:e,slotKey:t,token:++g,identities:Object.freeze(i)});for(let t of(u.set(e,n),h.set(e,l),i))n.set(t,o);return l.set(t,o),o}function w(e){if(!e)return;let t=u.get(e.pageKey),r=h.get(e.pageKey);for(let r of e.identities)t?.get(r)?.token===e.token&&t.delete(r);r?.get(e.slotKey)?.token===e.token&&r.delete(e.slotKey),t?.size===0&&u.delete(e.pageKey),r?.size===0&&h.delete(e.pageKey)}let y=e=>"string"==typeof e&&e.trim()?e.trim():null,b=new Map;function x(e){let t=y(e.generationJobId)||y(e.setId),r=y(e.id),a=t?`campaign:${t}`:r?`record:${r}`:null;return a?[a,p(e.imageUrl),p(e.mobileImageUrl)].filter(e=>null!==e):[]}var k=e.i(302747);let A=[{slug:"farrington-development",name:"Farrington Development",url:"https://farringtondevelopment.com/"},{slug:"newsroomaios",name:"Newsroom AIOS",url:"https://newsroomaios.com/"},{slug:"getfound3",name:"GetFound3",url:"https://getfound3.com/"},{slug:"getremedy3",name:"GetRemedy3",url:"https://www.getremedy3.com/"},{slug:"octicc",name:"Octi Command Center",url:"https://octicc.com/"},{slug:"openocti",name:"OpenOcti",url:"https://openocti.com/"},{slug:"gorillaskills",name:"GorillaSkills",url:"https://gorillaskills.com/"},{slug:"vibnflow",name:"VibNFlow",url:"https://vibnflow.com/"},{slug:"vibnflip",name:"VibNFlip",url:"https://vibnflip.com/"},{slug:"myvtc",name:"MyVTC",url:"https://myvtc.com/"}],j=["header_main","sidebar_top","sidebar_sticky","article_inline","footer_wide"],N={leaderboard:e=>`/house-ads/${e}/728x90.webp`,mobile:e=>`/house-ads/${e}/320x100.webp`,rectangle:e=>`/house-ads/${e}/300x250.webp`,halfpage:e=>`/house-ads/${e}/300x600.webp`},C=null;function D(){if(!C){C=[...A];for(let e=C.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1));[C[e],C[t]]=[C[t],C[e]]}}return C}function S(e,t,r,a){let i=Number.isInteger(r)&&r>=0&&r<D().length?D()[r]:void 0;if(!i)return null;let n=v(e,t,[`house:${i.slug}`,...Object.values(N).map(e=>p(e(i.slug))).filter(e=>!!e)],a?.lease);return n?{index:r,ad:i,lease:n}:null}let _=null;function I({position:e,className:a="",rotate:i=!0}){let n,l,o=(0,r.useId)(),c=`house:${e}:${o}`,u=(0,d.usePathname)()||"",h=m(s.TENANT_ID,u),[g,p]=(0,r.useState)(null),v=null!==g,y=(0,r.useRef)(null),[b,x]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{let e=!0,t=function(e,t,r){for(let r=0;r<D().length;r++){let a=S(e,t,r);if(a)return a}return null}(h,c);return y.current=t,Promise.resolve().then(()=>{e&&y.current===t&&(!t||f(t.lease))&&(p(t),x(!1))}),()=>{e=!1;let t=y.current;t?.lease.pageKey===h&&t.lease.slotKey===c&&(t&&w(t.lease),y.current=null)}},[h,c]),(0,r.useEffect)(()=>
1{if(!i||"sidebar_sticky"!==e||!v)return;let t=!1;Promise.resolve().then(()=>{t||x(!1)});let r=null,a=setInterval(()=>{let e=y.current;e&&e.lease.pageKey===h&&f(e.lease)&&(x(!0),r=setTimeout(()=>{if(t)return;let e=y.current;if(!e||e.lease.pageKey!==h||!f(e.lease))return;let a=function(e,t,r){if(r.lease.pageKey!==e||r.lease.slotKey!==t||!f(r.lease))return null;for(let a=1;a<D().length;a++){let i=S(e,t,(r.index+a)%D().length,r);if(i)return i}return f(r.lease)?r:null}(h,c,e);y.current=a,p(a),x(!1),r=null},350))},15e3);return()=>{t=!0,clearInterval(a),null!==r&&clearTimeout(r)}},[e,h,c,i,v]),!g||g.lease.pageKey!==h||g.lease.slotKey!==c||!f(g.lease))return null;let k=g.ad,A={href:(n=window.location.hostname.replace(/^www\./,""),(l=new URL(k.url)).searchParams.set("utm_source",n),l.searchParams.set("utm_medium","house_ad"),l.searchParams.set("utm_campaign","newsroomaios_network"),l.searchParams.set("utm_content",e),l.toString()),target:"_blank",rel:"noopener sponsored","aria-label":`${k.name} (advertisement)`},j=`block w-full h-auto transition-opacity duration-300 ${b&&i&&"sidebar_sticky"===e?"opacity-0":"opacity-100"}`;if("header_main"===e)return(0,t.jsx)("div",{className:`w-[728px] h-[90px] overflow-hidden rounded-lg ${a}`,"data-house-ad":k.slug,children:(0,t.jsx)("a",{...A,className:"block w-full h-full",children:(0,t.jsx)("img",{src:N.leaderboard(k.slug),alt:`${k.name} advertisement`,width:728,height:90,className:"w-[728px] h-[90px] object-cover"})})});let C="sidebar_top"===e||"sidebar_sticky"===e,_=(0,t.jsx)("span",{className:"block text-center text-[9px] text-muted-foreground/50 uppercase tracking-[0.2em] font-black mb-1",children:"Advertisement"});if(C){let r="sidebar_top"===e?N.rectangle(k.slug):N.halfpage(k.slug),i="sidebar_top"===e?"300 / 250":"300 / 600";return(0,t.jsxs)("div",{className:`relative w-full ${a}`,"data-house-ad":k.slug,children:[_,(0,t.jsx)("div",{className:"relative w-full overflow-hidden rounded-xl shadow-sm border border-border/50",style:{aspectRatio:i},children:(0,t.jsx)("a",{...A,className:"block w-full h-full",children:(0,t.jsx)("img",{src:r,alt:`${k.name} advertisement`,className:`${j} h-full object-cover`})})})]})}return(0,t.jsxs)("div",{className:`relative ${a}`,"data-house-ad":k.slug,children:[_,(0,t.jsx)("div",{className:"relative mx-auto overflow-hidden rounded-xl shadow-sm border border-border/50 w-full max-w-[320px] md:max-w-[728px]",children:(0,t.jsx)("a",{...A,className:"block",children:(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{media:"(max-width: 767px)",srcSet:N.mobile(k.slug)}),(0,t.jsx)("img",{src:N.leaderboard(k.slug),alt:`${k.name} advertisement`,className:j})]})})})]})}function $({position:e,fallback:n,fallbackKey:l="system:advertise",fallbackAssetUrl:u,className:h,priority:g,noRotate:y}){let A=(0,d.usePathname)()||"",[N,C]=(0,r.useState)(null),D=null===N?null:(0,i.campaignDeviceForWidth)(N),[S,$]=(0,r.useState)(null),E=(0,r.useRef)(null),[O,P]=(0,r.useState)(null),[R,M]=(0,r.useState)(0),[T,B]=(0,r.useState)(!1),[L,U]=(0,r.useState)(!0),W=(0,r.useRef)(null),K=(0,r.useRef)(null),F=e+(0,r.useId)(),z=m(s.TENANT_ID,A),V=`${e}:${A}:${D}:${null!==N&&N>=1280?"xl":"narrow"}`,H=S?.key===V&&f(S.lease)&&S.ad&&(0,i.isCampaignEligible)(S.ad,e,{device:D,viewportWidth:N,page:S.page})?S.ad:null,q=(0,r.useRef)({key:V,ad:H});q.current={key:V,ad:H},(0,r.useEffect)(()=>{let e=()=>C(e=>null!==e&&(0,i.campaignDeviceForWidth)(e)===(0,i.campaignDeviceForWidth)(window.innerWidth)&&e>=1280==window.innerWidth>=1280?e:window.innerWidth);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,r.useEffect)(()=>()=>{let e=E.current;e?.key===V&&(w(e.lease),E.current=null)},[V]),(0,r.useEffect)(()=>{if(!D)return;let t=!1;return U(!0),async function(){try{var r;let[n,l]=await Promise.all([(function(e,t=s.TENANT_ID){let r=`${t}:${e}`,a=o.get(r);if(a)return a;let i=c(e).catch(()=>({kind:"unresolved"}));return o.set(r,i),o.size>100&&o.delete(o.keys().next().value),i})(A).then(t=>(0,a.getAdDeliveryByPosition)(e,{device:D,viewportWidth:N,page:t}).then(e=>({...e,page:t}))),j.includes(e)?(r=()=>(0,a.getAdvertisingSettings)(),!_&&(_=r().then(e=>e?.houseAdsEnabled!==!1).catch(()=>!0)),_):Promise.resolve(!1)]);if(t)return;B(l);let d=n.ads.filter(t=>(0,i.isCampaignEligible)(t,e,{device:D,viewportWidth:N,page:n.page})),u=function(e,t,r,a,i=r[0]?.position||"article_inline"){if(a&&f(a.lease)&&a.lease.pageKey===e&&a.lease.slotKey===t){let i=r.find(e=>e.id===a.ad.id);if(i){let r=v(e,t,x(i),a.lease);if(r)return{ad:i,lease:r}}}if(w(a?.lease),!r.length)return null;let n=JSON.stringify([e,i]);!b.has(n)&&(b.set(n,Math.floor(Math.random()*r.length)),b.size>256&&b.delete(b.keys().next().value));let l=b.get(n);for(let a=0;a<r.length;a++){let i=r[(l+a)%r.length],n=v(e,t,x(i));if(n)return{ad:i,lease:n}}return null}(z,F,d,E.current,e);E.current=u?{...u,key:V}:null,$({ad:u?.ad??null,lease:u?.lease??null,key:V,page:n.page,nextChangeAt:n.nextChangeAt})}catch(r){if(t)return;console.error("Error loading ad for position:",e,r),w(E.current?.lease),E.current=null,$({ad:null,lease:null,key:V,page:{kind:"unresolved"},nextChangeAt:null}),B(j.includes(e))}finally{t||U(!1)}}(),()=>{t=!0}},[e,F,A,D,N,z,V,R]),(0,r.useEffect)(()=>
1{if(L||S?.key!==V||H||T||"header_main"===e&&null!==N&&N<1280)return;let t=v(z,`${F}:fallback`,[l,p(u)].filter(e=>null!==e));return t&&P({key:V,lease:t}),()=>w(t)},[L,S,V,H,T,e,N,z,F,l,u]),(0,r.useEffect)(()=>{if(S?.key!==V||null==S.nextChangeAt)return;let e=window.setTimeout(()=>M(e=>e+1),Math.min(0x7fffffff,Math.max(0,S.nextChangeAt-Date.now())));return()=>window.clearTimeout(e)},[S,V]),(0,r.useEffect)(()=>{let t=`${e}:${A}:${H?.id}`;if(!H||W.current===t||"u"<typeof IntersectionObserver)return;let r=!1,n=new IntersectionObserver(l=>{!r&&q.current.key===V&&q.current.ad?.id===H.id&&f(S?.lease)&&W.current!==t&&l.some(e=>e.isIntersecting&&e.intersectionRatio>=.5)&&(0,i.isCampaignEligible)(H,e,{device:(0,i.campaignDeviceForWidth)(window.innerWidth),viewportWidth:window.innerWidth,page:S.page})&&(W.current=t,(0,a.recordImpression)(H.id),n.disconnect())},{threshold:.5});return K.current&&n.observe(K.current),()=>{r=!0,n.disconnect()}},[H,e,A,S,V]);let Y=()=>{H&&q.current.key===V&&q.current.ad?.id===H.id&&f(S?.lease)&&(0,i.isCampaignEligible)(H,e,{device:(0,i.campaignDeviceForWidth)(window.innerWidth),viewportWidth:window.innerWidth,page:S.page})&&(0,a.recordClick)(H.id)};if(L||null===D||S?.key!==V){if("header_main"===e)return(0,t.jsx)(k.Skeleton,{className:`w-full max-w-[728px] aspect-[320/100] lg:aspect-[728/90] rounded-lg ${h}`});let r="sidebar_sticky"===e?"aspect-[300/600]":"sidebar_top"===e?"aspect-[300/250]":"min-h-[100px]";return(0,t.jsxs)("div",{className:`flex flex-col gap-2 ${h}`,children:[(0,t.jsx)(k.Skeleton,{className:`w-full h-full ${r} rounded-lg`}),(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground/40 uppercase tracking-widest font-black self-center",children:"Advertisement"})]})}if(!H){if("header_main"===e&&null!==N&&N<1280)return null;if(T)return(0,t.jsx)(I,{position:e,className:h,rotate:!y});if(O?.key!==V||!f(O.lease))return null;if(n)return(0,t.jsx)(t.Fragment,{children:n});if("header_main"===e)return(0,t.jsxs)("a",{href:"/contact",className:`group relative block w-full max-w-[728px] overflow-hidden rounded-lg bg-gradient-to-r from-blue-50 via-slate-50 to-blue-50 dark:from-slate-800 dark:via-slate-700 dark:to-slate-800 border-2 border-dashed border-slate-300 dark:border-slate-600 hover:border-blue-400 dark:hover:border-blue-500 transition-all ${h}`,style:{aspectRatio:"728/90"},children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent dark:via-white/5 opacity-0 group-hover:opacity-100 transition-opacity"}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center gap-3",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-xs md:text-sm font-bold uppercase tracking-wider text-slate-500 dark:text-slate-400 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors",children:"Your Ad Could Be Here"}),(0,t.jsx)("p",{className:"text-[10px] text-slate-400 dark:text-slate-500 mt-0.5",children:"Click to learn more"})]})})]});let r={sidebar_top:"aspect-[300/250]",sidebar_sticky:"aspect-[300/600]",article_inline:"aspect-[320/100] md:aspect-[728/90]",footer_wide:"aspect-[320/100] md:aspect-[728/90]",popup_overlay:"aspect-video lg:aspect-[4/3] max-w-2xl"}[e]||"aspect-video";return"footer_wide"===e||"article_inline"===e?(0,t.jsxs)("a",{href:"/contact",className:`group relative block w-full overflow-hidden rounded-lg bg-gradient-to-r from-blue-600 via-blue-500 to-blue-600 hover:from-blue-700 hover:via-blue-600 hover:to-blue-700 transition-all shadow-lg hover:shadow-xl ${r} ${h}`,children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000"}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center gap-4 px-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"bg-white/20 rounded-full p-2 backdrop-blur-sm",children:(0,t.jsx)("svg",{className:"w-5 h-5 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z"})})}),(0,t.jsxs)("div",{className:"text-left",children:[(0,t.jsx)("p",{className:"text-sm md:text-base font-bold text-white",children:"This Could Be Your Ad!"}),(0,t.jsx)("p",{className:"text-[10px] md:text-xs text-white/90",children:"Reach thousands of local readers • Click to learn more"})]})]})})]}):"sidebar_sticky"===e?(0,t.jsxs)("a",{href:"/contact",className:`group relative block w-full overflow-hidden rounded-lg bg-gradient-to-br from-blue-600 via-purple-600 to-blue-700 hover:from-blue-700 hover:via-purple-700 hover:to-blue-800 transition-all shadow-lg hover:shadow-xl ${r} ${h}`,children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-transparent via-white/20 to-transparent -translate-x-full -translate-y-full group-hover:translate-x-full group-hover:translate-y-full transition-transform duration-1000"}),(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-between p-8 text-center",children:[(0,t.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center",children:[(0,t.jsx)("div",{className:"bg-white/20 rounded-full p-6 backdrop-blur-sm mb-6",children:(0,t.jsx)("svg",{className:"w-12 h-12 text-white",f
1ill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z"})})}),(0,t.jsxs)("h3",{className:"text-2xl font-bold text-white mb-4 leading-tight",children:["This Could Be",(0,t.jsx)("br",{}),"Your Ad!"]}),(0,t.jsxs)("div",{className:"space-y-3 mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-white/90",children:[(0,t.jsx)("svg",{className:"w-4 h-4 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),(0,t.jsx)("span",{className:"text-sm",children:"Reach Local Readers"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-white/90",children:[(0,t.jsx)("svg",{className:"w-4 h-4 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),(0,t.jsx)("span",{className:"text-sm",children:"Targeted Audience"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-white/90",children:[(0,t.jsx)("svg",{className:"w-4 h-4 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),(0,t.jsx)("span",{className:"text-sm",children:"Affordable Rates"})]})]})]}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)("div",{className:"bg-white/20 backdrop-blur-sm px-6 py-3 rounded-full border-2 border-white/30 group-hover:bg-white/30 transition-all",children:(0,t.jsx)("p",{className:"text-sm font-bold text-white",children:"Click to Learn More →"})})})]})]}):(0,t.jsxs)("a",{href:"/contact",className:`group relative block w-full overflow-hidden rounded-lg bg-gradient-to-br from-blue-600 via-purple-600 to-blue-700 hover:from-blue-700 hover:via-purple-700 hover:to-blue-800 transition-all shadow-lg hover:shadow-xl ${r} ${h}`,children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-transparent via-white/20 to-transparent -translate-x-full -translate-y-full group-hover:translate-x-full group-hover:translate-y-full transition-transform duration-1000"}),(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center p-6 text-center",children:[(0,t.jsx)("div",{className:"bg-white/20 rounded-full p-4 backdrop-blur-sm mb-4",children:(0,t.jsx)("svg",{className:"w-8 h-8 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z"})})}),(0,t.jsx)("p",{className:"text-xl font-bold text-white mb-2",children:"This Could Be Your Ad!"}),(0,t.jsx)("p",{className:"text-sm text-white/90 mb-4",children:"Reach your local community"}),(0,t.jsx)("div",{className:"bg-white/20 backdrop-blur-sm px-4 py-2 rounded-full",children:(0,t.jsx)("p",{className:"text-xs font-bold text-white",children:"Learn More →"})})]})]})}if("header_main"===e)return(0,t.jsxs)("div",{ref:K,className:`w-full max-w-[728px] overflow-hidden rounded-lg ${h}`,children:["image"===H.type&&(0,t.jsx)("a",{href:H.targetUrl,target:"_blank",rel:"noopener noreferrer",onClick:Y,className:"block w-full h-full",children:(0,t.jsxs)("picture",{children:[H.mobileImageUrl&&(0,t.jsx)("source",{media:"(max-width: 1023px)",srcSet:H.mobileImageUrl}),(0,t.jsx)("img",{src:H.imageUrl||"",alt:H.title,width:728,height:90,fetchPriority:g?"high":void 0,className:"block w-full h-auto"})]})}),"html"===H.type&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:H.htmlContent||""}
1,className:"w-full aspect-[320/100] lg:aspect-[728/90]"})]});let G={sidebar_sticky:{width:300,height:600},sidebar_top:{width:300,height:250},article_inline:{width:728,height:90},footer_wide:{width:728,height:90},popup_overlay:{width:800,height:600}}[e]||{width:300,height:250},J="sidebar_top"===e||"sidebar_sticky"===e,Q="article_inline"===e||"footer_wide"===e;return(0,t.jsxs)("div",{ref:K,className:`relative ${J?"w-full":""} ${h}`,children:[(0,t.jsx)("span",{className:"block text-center text-[9px] text-muted-foreground/50 uppercase tracking-[0.2em] font-black mb-1",children:"Advertisement"}),(0,t.jsxs)("div",{className:`relative group rounded-xl shadow-sm hover:shadow-md transition-all border border-border/50 bg-muted/20 overflow-hidden ${J?"w-full":""}`,style:J?void 0:{maxWidth:G.width,margin:"0 auto"},children:["image"===H.type&&(0,t.jsx)("a",{href:H.targetUrl,target:"_blank",rel:"noopener noreferrer",onClick:Y,className:"block",children:(0,t.jsxs)("picture",{children:[Q&&H.mobileImageUrl&&(0,t.jsx)("source",{media:"(max-width: 1023px)",srcSet:H.mobileImageUrl}),(0,t.jsx)("img",{src:H.imageUrl||"",alt:H.title,className:"block w-full h-auto transition-opacity duration-300 group-hover:opacity-90"})]})}),"html"===H.type&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:H.htmlContent||""},className:`w-full ${Q?"aspect-[320/100] md:aspect-[728/90]":""}`,style:Q?void 0:{aspectRatio:`${G.width} / ${G.height}`}})]})]})}e.s(["AdDisplay",()=>$],96389)}]);

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.