PageSourceSearch

https://www.armidaleexpress.com.au/assets/_next/static/chunks/9070.2b1c547a8c8dc748.js

js armidaleexpress.com.au collected 2026-10-02 10:16:34 UTC 9,145 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9070],{1912:(e,n,t)=>{t.d(n,{A:()=>c});var l=t(91167),r=t(60143),i=t(90030),a=t(45159),o=t(622),s=t(54504),u=t(81423);function c(e){var n,t,c,d,m,v,f,h,g,x,p=e.children,b=e.className,N=e.classNameInner,y=e.direction,j=void 0===y?u.T.DOWN:y,w=e.label,E=e.position,k=void 0===E?u.b.RIGHT:E,T=e.preventAutoClose,C=void 0!==T&&T,R=e.selectionClassName,A=e.showCloseBtn,_=e.style,U=(0,l._)((0,a.useState)(!1),2),I=U[0],P=U[1],W=(0,a.useRef)(null),M=(0,a.useRef)(null),L=(0,s.lW)().width,O=null==(h=W.current)?void 0:h.getBoundingClientRect(),S=null!=(t=null==(g=M.current)?void 0:g.getBoundingClientRect().width)?t:0,B=L-(null!=(c=null==O?void 0:O.right)?c:0),H=null!=(d=null==O?void 0:O.left)?d:0,F=H+(null!=(m=null==O?void 0:O.width)?m:0)/2,G=null!=(v=null==O?void 0:O.bottom)?v:0,D=null!=(f=null==(x=M.current)?void 0:x.getBoundingClientRect().height)?f:0,z=j===u.T.DOWN?"top":"bottom",Q=j===u.T.DOWN?G:Math.round(D)+30,K=k===u.b.RIGHT?"right":"left",V=Math.max(20,Math.min(L-20-S,H)),$=Math.max(20-S/2,Math.min(L-20-S/2,F)),q=Math.max(20,Math.min(L-20-S,B)),J={[u.b.CENTER]:$,[u.b.LEFT]:V,[u.b.RIGHT]:q}[k];(0,a.useEffect)(function(){var e=function(e){var n;C&&(null==(n=M.current)?void 0:n.contains(e.target))||P(!1)};return I?document.addEventListener("click",e):document.removeEventListener("click",e),function(){document.removeEventListener("click",e)}},[I,C]);var Y=(0,l._)((0,a.useState)(0),2)[1];return(0,a.useEffect)(function(){var e=function(){Y(window.scrollY)};return I&&document.addEventListener("scroll",e),function(){document.removeEventListener("scroll",e)}},[I]),(0,r.jsxs)("div",{className:"relative",ref:W,style:_,children:[(0,r.jsx)("button",{"aria-expanded":I,"aria-haspopup":"true",className:b,onClick:(n=function(){return P(!I)},function(e){e.stopPropagation(),n()}),type:"button",children:w}),(0,r.jsx)("div",{className:"pointer-events-none fixed inset-0 z-20",children:(0,r.jsxs)("div",{"aria-labelledby":"menu-button","aria-orientation":"vertical",className:(0,o.QP)("pointer-events-auto absolute mt-2 w-11/12 rounded-md md:w-56","bg-white shadow-lg ring-1 ring-black/5","z-20 text-left transition focus:outline-none",N,k===u.b.CENTER&&"-translate-x-1/2",I?"duration-100 ease-out":"duration-75 ease-in",I?"visible scale-100 opacity-100":"invisible scale-95 opacity-0"),ref:M,role:"menu",style:{[z]:Q,[K]:J},tabIndex:-1,children:[void 0!==A&&A&&(0,r.jsx)("div",{className:"my-2 flex items-center py-1 md:border-0 md:pt-3 lg:mb-0 lg:border-0",children:(0,r.jsx)("button",{"aria-label":"Close",className:"ml-1 flex size-10 grow-0 flex-col items-center justify-center rounded bg-white transition-colors duration-600 ease-default hover:bg-gray-100 md:ml-6",onClick:function(){return P(!1)},type:"button",children:(0,r.jsx)(i.A,{className:"size-6"})})}),(0,r.jsx)("div",{className:(0,o.QP)("whitespace-pre-wrap py-1",R),role:"none",children:p})]})})]})}},16870:(e,n,t)=>{t.d(n,{b:()=>r});var l,r=((l={}).Tab="tab",l.Pill="pill",l)},31885:(e,n,t)=>{t.d(n,{A:()=>s});var l=t(76367),r=t(30694),i=t(22514),a=t(60143);t(45159);var o=t(622);function s(e){var n=e.children,t=e.className,s=e.tag,u=void 0===s?"a":s,c=(0,i._)(e,["children","className","tag"]);return(0,a.jsx)(u,(0,r._)((0,l._)({className:(0,o.QP)("flex items-center px-4 py-2 text-sm text-gray-700 hover:text-gray-900","hover:bg-gray-100","button"===u&&"w-full text-left",t),role:"menuitem",tabIndex:-1},c),{children:n}))}},41629:(e,n,t)=>{t.d(n,{i:()=>r,l:()=>i});var l=t(26748);function r(e){return{href:(0,l.K1)(e.url),rel:e.newWindow&&(0,l.i9)(e.url)?"noopener":void 0,target:e.newWindow?"_blank":void 0}}function i(e){return e.replace(/^\/+/,"").replace(/\/+$/,"")}},49070:(e,n,t)=>{t.d(n,{A:()=>k});
1var l=t(76367),r=t(91167),i=t(60143),a=t(92584),o=t(29722),s=t(45159),u=t(54166),c=t(62715),d=t(1912),m=t(31885),v=t(16870),f=t(62129),h=t(63233),g=t(54504),x=t(26748),p=t(40229),b=t(65019),N=t(41629);function y(e){var n=e.currentUrl,t=e.fontStyle,r=e.page;return(0,i.jsx)(b.A,(0,l._)({children:r.menuName||r.name,className:(0,o.A)("inline-flex shrink-0 items-center rounded bg-white px-2 py-1 leading-4 text-gray-900 transition-colors duration-600 ease-default hover:bg-gray-100 focus:transition-none",t,{"bg-gray-100":r.url===n}),"data-testid":"nav-secondary-link",noStyle:!0},(0,N.i)(r)),r.url)}function j(e,n,t){var l,r,i,a,s,u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]&&arguments[4],d=(null==t||null==(l=t.default)?void 0:l.textBackground)||"bg-gray-350 hover:bg-gray-100",m=(null==t||null==(r=t.default)?void 0:r.textColor)||"text-slate-750",v=(null==t||null==(i=t.default)?void 0:i.icon)||"";return(null==t?void 0:t[e])?(d=t[e].textBackground||d,m=t[e].textColor||m,v=t[e].icon||v):(null==t?void 0:t.currentUrl)&&u&&(d=t.currentUrl.textBackground||d,m=t.currentUrl.textColor||m,v=(null==t||null==(a=t[e])?void 0:a.selectedIcon)||v),c&&(v=(null==t||null==(s=t.externalUrl)?void 0:s.icon)||v),{className:(0,o.A)("inline-flex shrink-0 items-center rounded-full p-2.5 leading-4 transition-colors duration-600 ease-default focus:transition-none",d,m,n),icon:v}}function w(e){var n=e.currentUrl,t=e.fontStyle,r=e.navTheme,a=e.page,o=a.menuName||a.name,s=j((0,p.Wj)(o),t,r,(0,N.l)(a.url)===(0,N.l)(n),a.newWindow),u=s.className,c=s.icon,d=c?(0,i.jsxs)("span",{className:"flex items-center justify-center gap-x-1.5",children:[(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:c}}),(0,i.jsx)("span",{children:o})]}):(0,i.jsx)("span",{children:o});return(0,i.jsx)(b.A,(0,l._)({children:d,className:u,"data-testid":"nav-secondary-link",noStyle:!0,onClick:function(){(0,h.CI)({data:{label:o},event:"pill_interaction"})}},(0,N.i)(a)),a.url)}function E(e){var n=e.activeRef,t=e.className,l=e.currentUrl,r=e.navUpdate,a=e.shortcutPages;return a?(0,i.jsx)(i.Fragment,{children:a.map(function(e){return(0,i.jsx)("div",{className:(0,o.A)("inline-block",t),ref:l===e.url?n:null,children:r(e)},e.url)})}):null}function k(e){var n=e.currentAsHeading,t=void 0!==n&&n,h=e.desktopMoreOptionEnabled,p=e.fontStyle,b=void 0===p?"text-xs font-medium uppercase":p,k=e.maxLinksBeforeOther,T=void 0===k?0:k,C=e.mobileMoreOptionEnabled,R=e.moreOptionInline,A=void 0!==R&&R,_=e.moreOptionLabel,U=void 0===_?"More":_,I=e.navClassName,P=e.navWrapperClassName,W=e.navigationType,M=void 0===W?v.b.Tab:W,L=e.pages,O=e.shortcutPages,S=e.theme,B=(0,c.GV)(function(e){return e.page.url}),H=(0,g.e7)().primaryPage,F=(0,g.lW)().width,G=(0,r._)((0,s.use
1State)(T?L.length-T:0),2),D=G[0],z=G[1],Q=(0,s.useRef)(null),K=(0,s.useRef)(void 0),V=(0,g.QK)()===f.bq.MOBILE,$=(0,s.useRef)(null),q=(0,g.pn)(),J=O&&q?O.filter(function(e){return(0,x.sv)(e.url)in q}):null,Y=V?void 0===C||C:void 0===h||h;if((0,s.useEffect)(function(){V&&$.current&&$.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[V]),(0,s.useEffect)(function(){if(L.length&&!T)return K.current&&clearTimeout(K.current),K.current=setTimeout(function(){z(-1)},1e3/30),function(){K.current&&clearTimeout(K.current)}},[T,L.length,F]),(0,s.useEffect)(function(){if(L.length&&Y){if(D>L.length)throw Error("Could not fully collapse menu");if(!T){var e,n,t=(null==(e=Q.current)?void 0:e.clientWidth)||0;(((null==(n=Q.current)?void 0:n.scrollWidth)||0)>t||D<0)&&z(function(e){return Math.max(e+1,0)})}}},[T,Y,D,L.length]),!L.length)return null;var X=function(e){return M===v.b.Pill?(0,i.jsx)(w,{currentUrl:B,fontStyle:b,navTheme:S,page:e}):(0,i.jsx)(y,{currentUrl:B,fontStyle:b,page:e})},Z=Y&&D>0&&(0,i.jsx)("div",{className:"inline-block shrink-0",children:(0,i.jsx)(d.A,{className:M===v.b.Pill?(0,o.A)(!A&&"ml-2",j(U,b,S).className):(0,o.A)("py-2.5 pl-2.5 md:py-3 md:pl-4",b),label:(0,i.jsxs)(i.Fragment,{children:[U,(0,i.jsx)(u.y,{className:"ml-3",icon:a.Jt$})]}),children:L.slice(-1*D).map(function(e){return(0,i.jsx)(m.A,(0,l._)({children:e.menuName||e.name},(0,N.i)(e)),e.url)})})});return(0,i.jsx)("div",{className:(0,o.A)("relative max-w-full text-xs font-medium",void 0===P?"border-b-2 border-gray-900 mb-2 md:mb-10":P),id:"nav--secondary",children:(0,i.jsxs)("nav",{className:(0,o.A)("flex h-9 items-center justify-start whitespace-nowrap",b,void 0===I?"border-t border-gray-300":I),children:[(0,i.jsxs)("div",{className:"flex gap-2 overflow-x-auto scrollbar-hide",ref:Q,children:[L.slice(0,L.length-D).map(function(e){var n=t&&B===e.url&&(null==H?void 0:H.url)!==e.url?"h1":"div";return(0,i.jsx)(n,{className:"inline-block",ref:B===e.url?$:null,children:X(e)},e.url)}),A&&Z,J&&J.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"mx-1 border-l-1 border-gray-300 md:hidden"}),(0,i.jsx)(E,{activeRef:$,className:"md:hidden",currentUrl:B,navUpdate:X,shortcutPages:J})]})]}),!A&&Z,J&&J.length>0&&(0,i.jsxs)("div",{className:"hidden gap-2 md:flex",children:[(0,i.jsx)("div",{className:"ml-2 border-l-1 border-gray-300"}),(0,i.jsx)(E,{activeRef:$,currentUrl:B,navUpdate:X,shortcutPages:J})]})]})})}},81423:(e,n,t)=>{t.d(n,{T:()=>a,b:()=>i});var l,r,i=((l={})[l.CENTER=0]="CENTER",l[l.LEFT=1]="LEFT",l[l.RIGHT=2]="RIGHT",l),a=((r={})[r.UP=0]="UP",r[r.DOWN=1]="DOWN",r)}}]);

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.