1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7160],{75256:function(e,a,r){var t=r(85893),s=r(67294),n=r(41664),l=r.n(n),o=r(11163),i=r(49633),d=r(66610),c=r(13245),u=r(76850),g=r(31415),m=r(10050);let useRegionDetection=()=>{let[e,a]=(0,s.useState)(null),[r,t]=(0,s.useState)(!0),[n,l]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=localStorage.getItem("userRegion");if(e)try{let r=JSON.parse(e);a(r),t(!1)}catch(e){console.log("Invalid saved region data")}else{let detectUserLocation=async()=>{try{setTimeout(()=>{let e=[{name:"England",country:"uk",slug:"england",flag:"\uD83C\uDDEC\uD83C\uDDE7"},{name:"California",country:"us",slug:"california",flag:"\uD83C\uDDFA\uD83C\uDDF8"},{name:"New York",country:"us",slug:"new-york",flag:"\uD83C\uDDFA\uD83C\uDDF8"},{name:"Texas",country:"us",slug:"texas",flag:"\uD83C\uDDFA\uD83C\uDDF8"}],r=e[Math.floor(Math.random()*e.length)];a(r),t(!1)},1e3)}catch(e){console.log("Region detection not available")}};detectUserLocation()}},[]),{userRegion:e,showRegionPrompt:r,setShowRegionPrompt:t,saveUserRegion:e=>{a(e),t(!1),localStorage.setItem("userRegion",JSON.stringify(e)),l(!0),setTimeout(()=>{l(!1)},3e3)},showSuccessMessage:n}},RegionSearch=e=>{let{onRegionSelect:a}
1=e,[r,n]=(0,s.useState)(""),[l,o]=(0,s.useState)([]),d=[{name:"England",slug:"england",country:"uk",flag:"\uD83C\uDDEC\uD83C\uDDE7"},{name:"Scotland",slug:"scotland",country:"uk",flag:"\uD83C\uDDEC\uD83C\uDDE7"},{name:"Wales",slug:"wales",country:"uk",flag:"\uD83C\uDDEC\uD83C\uDDE7"},{name:"Northern Ireland",slug:"northern-ireland",country:"uk",flag:"\uD83C\uDDEC\uD83C\uDDE7"},{name:"Australia",slug:"au",country:"au",flag:"\uD83C\uDDE6\uD83C\uDDFA"},...["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"].map(e=>({name:e,slug:e.toLowerCase().replace(/ /g,"-"),country:"us",flag:"\uD83C\uDDFA\uD83C\uDDF8"})),{name:"Alberta",slug:"alberta",country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"},{name:"British Columbia",slug:"british-columbia",country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"},{name:"Manitoba",slug:"manitoba",country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"},{name:"New Brunswick",slug:"new-brunswick",country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"},{name:"Newfoundland and Labrador",slug:"newfoundland-and-labrador",country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"},{name:"Northwest Territories",slug:"northwest-territories",country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"},{name:"Nova Scotia",slug:"nova-scotia",country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"},{name:"Nunavut",slug:"nunavut",country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"},{name:"Ontario",slug:"ontario",country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"},{name:"Prince Edward Island",slug:"prince-edward-island",country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"},{name:"Quebec",slug:"quebec",country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"},{name:"Saskatchewan",slug:"saskatchewan",country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"},{name:"Yukon",slug:"yukon",country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"}];return(0,s.useEffect)(()=>{let e=d.filter(e=>e.name.toLowerCase().includes(r.toLowerCase()));o(e.slice(0,6))},[r]),(0,t.jsxs)("div",{className:"relative mb-4",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(i.Z,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"}),(0,t.jsx)("input",{type:"text",placeholder:"Search regions...",value:r,onChange:e=>n(e.target.value),className:"w-full pl-9 pr-4 py-2 border border-gray-300 dark:border-gray-700 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent text-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-400 transition-colors"})]}),r&&l.length>0&&(0,t.jsx)("div",{className:"absolute z-10 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-lg shadow-lg max-h-48 overflow-y-auto search-dropdown transition-colors",children:l.map(e=>(0,t.jsxs)("button",{onClick:()=>{a(e),n("")},className:"w-full flex items-center p-2 hover:bg-gray-50 dark:hover:bg-gray-700 border-b dark:border-gray-700 last:border-b-0 transition-colors text-sm text-left",children:[(0,t.jsx)("span",{className:"text-base mr-2 flex-shrink-0",children:e.flag}),(0,t.jsx)("span",{className:"font-medium text-gray-800 dark:text-gray-100 flex-1 min-w-0 break-words",children:e.name}),(0,t.jsx)("span",{className:"ml-2 text-xs text-gray-500 dark:text-gray-400 capitalize flex-shrink-0",children:e.country})]},"".concat(e.country,"-").concat(e.slug)))})]})},CollapsibleRegions=e=>{let{onRegionSelect:a}
1=e,[r,n]=(0,s.useState)(null),[l,o]=(0,s.useState)(""),i=["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"].filter(e=>e.toLowerCase().includes(l.toLowerCase()));return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden bg-white dark:bg-gray-800 transition-colors",children:[(0,t.jsxs)("button",{onClick:()=>n("uk"===r?null:"uk"),className:"w-full p-3 bg-gradient-to-r from-indigo-50 to-indigo-100 dark:from-indigo-900/40 dark:to-indigo-800/30 flex items-center justify-between hover:from-indigo-100 hover:to-indigo-200 dark:hover:from-indigo-900/50 dark:hover:to-indigo-800/40 transition-colors",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("span",{className:"text-lg mr-2",children:"\uD83C\uDDEC\uD83C\uDDE7"}),(0,t.jsx)("span",{className:"font-medium text-gray-800 dark:text-gray-100",children:"UK Regions"})]}),"uk"===r?(0,t.jsx)(d.Z,{className:"w-4 h-4 text-gray-600 dark:text-gray-300"}):(0,t.jsx)(c.Z,{className:"w-4 h-4 text-gray-600 dark:text-gray-300"})]}),"uk"===r&&(0,t.jsx)("div",{className:"p-3 bg-white dark:bg-gray-800 transition-colors",children:(0,t.jsx)("div",{className:"grid grid-cols-1 gap-2",children:[{name:"England",slug:"england",description:"Tax-adjusted salary and bonus calculator for England."},{name:"Scotland",slug:"scotland",description:"Includes Scottish tax bands, student loans, and pension."},{name:"Wales",slug:"wales",description:"Welsh income tax and NI thresholds included."},{name:"Northern Ireland",slug:"northern-ireland",description:"Full salary calculator for Northern Ireland."}].map(e=>(0,t.jsxs)("button",{onClick:()=>a({name:e.name,slug:e.slug,country:"uk",flag:"\uD83C\uDDEC\uD83C\uDDE7"}),className:"w-full flex items-start p-2 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors text-left",children:[(0,t.jsx)("span",{className:"text-base mr-3 flex-shrink-0",children:"\uD83C\uDDEC\uD83C\uDDE7"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("div",{className:"font-medium text-gray-800 dark:text-gray-100 break-words",children:e.name}),(0,t.jsx)("div",{className:"text-xs text-gray-600 dark:text-gray-300 break-words",children:e.description})]})]},e.slug))})})]}),(0,t.jsx)("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden bg-white dark:bg-gray-800 transition-colors",children:(0,t.jsx)("button",{onClick:()=>a({name:"Australia",slug:"au",country:"au",flag:"\uD83C\uDDE6\uD83C\uDDFA"}),className:"w-full p-3 bg-gradient-to-r from-green-50 to-green-100 dark:from-green-900/40 dark:to-green-800/30 flex items-center justify-between hover:from-green-100 hover:to-green-200 dark:hover:from-green-900/50 dark:hover:to-green-800/40 transition-colors",children:(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("span",{className:"text-lg mr-2",children:"\uD83C\uDDE6\uD83C\uDDFA"}),(0,t.jsx)("span",{className:"font-medium text-gray-800 dark:text-gray-100",children:"Australia"})]})})}),(0,t.jsxs)("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden bg-white dark:bg-gray-800 transition-colors",children:[(0,t.jsxs)("button",{onClick:()=>n("us"===r?null:"us"),className:"w-full p-3 bg-gradient-to-r from-purple-50 to-purple-100 dark:from-purple-900/40 dark:to-purple-800/30 flex items-center justify-between hover:from-purple-100 hover:to-purple-200 dark:hover:from-purple-900/50 dark:hover:to-purple-800/40 transition-colors",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("span",{className:"text-lg mr-2",children:"\uD83C\uDDFA\uD83C\uDDF8"}),(0,t.jsx)("span",{className:"font-medium text-gray-800 dark:text-gray-100",children:"US States"})]}),"us"===r?(0,t.jsx)(d.Z,{className:"w-4 h-4 text-gray-600 dark:text-gray-300"}):(0,t.jsx)(c.Z,{className:"w-4 h-4 text-gray-600 dark:text-gray-300"})]}),"us"===r&&(0,t.jsxs)("div",{className:"p-3 bg-white dark:bg-gray-800 transition-colors",children:[(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsx)("input",{type:"text",placeholder:"Search US states...",value:l,onCh
1ange:e=>o(e.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-700 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent text-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-400 transition-colors"})}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-2 max-h-48 overflow-y-auto",children:i.map(e=>(0,t.jsxs)("button",{onClick:()=>a({name:e,slug:e.toLowerCase().replace(/ /g,"-"),country:"us",flag:"\uD83C\uDDFA\uD83C\uDDF8"}),className:"w-full flex items-center p-2 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors text-left",children:[(0,t.jsx)("span",{className:"text-base mr-3 flex-shrink-0",children:"\uD83C\uDDFA\uD83C\uDDF8"}),(0,t.jsx)("div",{className:"font-medium text-gray-800 dark:text-gray-100 flex-1 min-w-0 break-words",children:e})]},e))})]})]}),(0,t.jsxs)("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden bg-white dark:bg-gray-800 transition-colors",children:[(0,t.jsxs)("button",{onClick:()=>n("ca"===r?null:"ca"),className:"w-full p-3 bg-gradient-to-r from-red-50 to-red-100 dark:from-red-900/40 dark:to-red-800/30 flex items-center justify-between hover:from-red-100 hover:to-red-200 dark:hover:from-red-900/50 dark:hover:to-red-800/40 transition-colors",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("span",{className:"text-lg mr-2",children:"\uD83C\uDDE8\uD83C\uDDE6"}),(0,t.jsx)("span",{className:"font-medium text-gray-800 dark:text-gray-100",children:"Canada Provinces"})]}),"ca"===r?(0,t.jsx)(d.Z,{className:"w-4 h-4 text-gray-600 dark:text-gray-300"}):(0,t.jsx)(c.Z,{className:"w-4 h-4 text-gray-600 dark:text-gray-300"})]}),"ca"===r&&(0,t.jsx)("div",{className:"p-3 bg-white dark:bg-gray-800 transition-colors",children:(0,t.jsx)("div",{className:"grid grid-cols-1 gap-2 max-h-48 overflow-y-auto",children:[{name:"Alberta",slug:"alberta"},{name:"British Columbia",slug:"british-columbia"},{name:"Manitoba",slug:"manitoba"},{name:"New Brunswick",slug:"new-brunswick"},{name:"Newfoundland and Labrador",slug:"newfoundland-and-labrador"},{name:"Northwest Territories",slug:"northwest-territories"},{name:"Nova Scotia",slug:"nova-scotia"},{name:"Nunavut",slug:"nunavut"},{name:"Ontario",slug:"ontario"},{name:"Prince Edward Island",slug:"prince-edward-island"},{name:"Quebec",slug:"quebec"},{name:"Saskatchewan",slug:"saskatchewan"},{name:"Yukon",slug:"yukon"}].map(e=>(0,t.jsxs)("button",{onClick:()=>a({name:e.name,slug:e.slug,country:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"}),className:"w-full flex items-center p-2 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors text-left",children:[(0,t.jsx)("span",{className:"text-base mr-3 flex-shrink-0",children:"\uD83C\uDDE8\uD83C\uDDE6"}),(0,t.jsx)("div",{className:"font-medium text-gray-800 dark:text-gray-100 flex-1 min-w-0 break-words",children:e.name})]},e.slug))})})]})]})};a.Z=e=>{let{className:a="",compact:r=!1,currentCalculatorSlug:s,enableNavigation:n=!1}=e,i=(0,o.useRouter)(),{userRegion:d,showRegionPrompt:c,setShowRegionPrompt:x,saveUserRegion:h,showSuccessMessage:D}=useRegionDetection(),handleRegionSelect=e=>{if(h(e),n&&s){let a=s;"retirement-calculator"===s&&"uk"===e.country?a="sipp-calculator":"sipp-calculator"===s&&"us"===e.country&&(a="retirement-calculator");let r="au"===e.country?"/tools/au/".concat(a):"/tools/".concat(e.country,"/").concat(e.slug,"/").concat(a);i.push(r)}else if(n){let a="au"===e.country?"/tools/au":"/tools/".concat(e.country,"/").concat(e.slug);i.push(a)}};return r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-xl border border-gray-200 dark:border-gray-700 shadow-sm transition-colors duration-200 ".concat(a),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsxs)("h3",{className:"text-sm font-semibold text-gray-900 dark:text-gray-100 flex items-center",children:[(0,t.jsx)(u.Z,{className:"w-4 h-4 mr-2 text-indigo-600 flex-shrink-0"}),"Region"]}),d&&(0,t.jsx)("button",{onClick:()=>x(!0),className:"text-xs text-indigo-600 dark:text-indigo-400 hover:text-indigo-700 dark:hover:text-indigo-300 font-medium",children:"Change"})]}),d?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("span",{className:"text-lg mr-2 flex-shrink-0",children:d.flag}),(0,t.jsx)("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100 truncate",children:d.name})]}),(0,t.jsx)(l(),{href:"au"===d.country?"/tools/au":"/tools/".concat(d.country,"/").concat(d.slug),className:"inline-flex items-center px-3 py-1.5 bg-indigo-600 text-white text-xs font-medium rounded-lg hover:bg-indigo-700 transition-colors whitespace-nowrap",children:"View Tools"})]}):(0,t.jsxs)("button",{onClick:()=>x(!0),className:"w-full flex items-center justify-center px-4 py-2 bg-indigo-600 text-white text-sm font-medium rounded-lg hover:bg-indigo-700 transition-colors",children:[(0,t.jsx)(u.Z,{className:"w-4 h-4 mr-2"}),"Select Region"]})]}),c&&(0,t.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,t.jsxs)("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-xl max-w-md w-full max-h-[80vh] overflow-hidden",children:[(0,t.jsxs)("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:"Select Region"}),(0,t.jsx)("button",{onClick:()=>x(!1),className:"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",children:(0,t.jsx)(g.Z,{className:"w-5 h-5"})})]}),(0,t.jsx)("p",{className:"text-xs text-gray-600 dark:text-gray-400 mt-2",children:n&&s?"Search or browse to select a different region. You'll be redirected to the same calculator for the new region.":"Search or browse to select a different region"})]}),(0,t.jsxs)("div",{className:"p-4 overflow-y-auto max-h-[60vh]",children:[(0,t.jsx)(RegionSearch,{onRegionSelect:handleRegionSelect}),(0,t.jsx)(CollapsibleRegions,{onRegionSelect:handleRegionSelect})]})]})})]}):(0,t.jsxs)("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-xl border border-gray-200 dark:border-gray-700 shadow-sm transition-colors duration-200 ".concat(a),children:[(0,t.jsxs)("h3",{className:"text-lg font-bold mb-4 flex items-center text-gray-900 dark:text-gray-100",children:[(0,t.jsx)(u.Z,{className:"w-4 h-4 mr-2 text-indigo-600"}),"Region Selector"]}),D&&(0,t.jsxs)("div",{className:"mb-4 p-3 bg-green-50 dark:bg-green-900/40 border border-green-200 dark:border-green-600 rounded-lg flex items-center transition-colors duration-200",children:[(0,t.jsx)(m.Z,{className:"w-5 h-5 text-green-700 dark:text-green-300 mr-2 flex-shrink-0"}),(0,t.jsx)("span",{className:"text-green-800 dark:text-green-100 text-sm font-medium",children:n&&s?"Region updated to ".concat(null==d?void 0:d.name,"! Redirecting to ").concat(null==d?void 0:d.name," calculator..."):"Region updated to ".concat(null==d?void 0:d.name,"! Calculators will now show data for your selected regi
1on.")})]}),(0,t.jsxs)("div",{className:"bg-gradient-to-r from-green-50 to-emerald-50 dark:from-green-900/25 dark:to-emerald-900/25 p-4 rounded-lg mb-4 border-2 border-green-200 dark:border-green-600 transition-colors duration-200",children:[(0,t.jsxs)("h4",{className:"text-sm font-bold mb-3 text-green-800 dark:text-green-100 flex items-center",children:[(0,t.jsx)(u.Z,{className:"w-4 h-4 mr-1 flex-shrink-0"}),"Currently Selected"]}),d?(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-start",children:[(0,t.jsx)("span",{className:"text-2xl mr-3 flex-shrink-0",children:d.flag}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("p",{className:"font-bold text-lg text-green-900 dark:text-green-100 break-words",children:d.name}),(0,t.jsx)("p",{className:"text-sm text-green-700 dark:text-green-200",children:"Personalized calculators for your region"})]})]}),(0,t.jsx)("div",{className:"flex justify-center sm:justify-start",children:(0,t.jsx)(l(),{href:"/tools/".concat(d.country,"/").concat(d.slug),className:"inline-flex items-center px-4 py-2 bg-gradient-to-r from-green-600 to-emerald-600 text-white font-medium rounded-lg hover:from-green-700 hover:to-emerald-700 transition-all duration-300 shadow-md hover:shadow-lg transform hover:-translate-y-1 text-sm whitespace-nowrap",children:"View Calculators"})})]}):(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"mb-3 text-green-700 dark:text-green-300 text-sm",children:"No region selected yet"}),(0,t.jsxs)("button",{onClick:()=>x(!0),className:"inline-flex items-center px-4 py-2 bg-gradient-to-r from-green-600 to-emerald-600 text-white font-medium rounded-lg hover:from-green-700 hover:to-emerald-700 transition-all duration-300 shadow-md hover:shadow-lg transform hover:-translate-y-1 text-sm",children:[(0,t.jsx)(u.Z,{className:"w-4 h-4 mr-2"}),"Select Your Region"]})]})]}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("h4",{className:"text-sm font-bold mb-3 text-gray-700 dark:text-gray-200",children:"Change Region"}),(0,t.jsx)("p",{className:"text-xs text-gray-600 dark:text-gray-400 mb-3",children:n&&s?"Search or browse to select a different region. You'll be redirected to the same calculator for the new region.":"Search or browse to select a different region"}),(0,t.jsx)(RegionSearch,{onRegionSelect:handleRegionSelect}),(0,t.jsx)(CollapsibleRegions,{onRegionSelect:handleRegionSelect})]})]})}},67160:function(e,a,r){r.d(a,{Z:function(){return SidebarWrapper}});var t=r(85893),s=r(67294),n=r(75256);function SidebarWrapper(e){let{children:a,showSidebar:r=!1,sidebarContent:l}=e;return r?(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row gap-8",children:[(0,t.jsx)("div",{className:"lg:hidden w-full",children:(0,t.jsx)("div",{className:"mb-6",children:l?s.isValidElement(l)&&l.type===n.Z?s.cloneElement(l,{...l.props,compact:!0}):l:(0,t.jsx)(n.Z,{compact:!0,enableNavigation:!0})})}),(0,t.jsx)("div",{className:"flex-1",children:a}),(0,t.jsx)("div",{className:"hidden lg:block lg:w-80 flex-shrink-0",children:(0,t.jsx)("div",{className:"sticky top-8 space-y-6",children:l||(0,t.jsx)(n.Z,{enableNavigation:!0})})})]})}):(0,t.jsx)(t.Fragment,{children:a})}}}]);
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.