PageSourceSearch

https://domicile.ladakh.gov.in/build/assets/Navbar-yHDWR6Bb.js

js ladakh.gov.in collected 2026-10-02 10:55:38 UTC 6,508 bytes, 62 lines download raw bytes

1import{r as s,q as y,j as e}from"./app-B1zCEdht.js";/**
2 * @license lucide-react v0.513.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const w=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),j=o=>o.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),p=o=>{const t=j(o);return t.charAt(0).toUpperCase()+t.slice(1)},x=(...o)=>o.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),k=o=>{for(const t in o)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
7 * @license lucide-react v0.513.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */var v={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12 * @license lucide-react v0.513.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const C=s.forwardRef(({color:o="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:a,iconNode:d,...m},c)=>s.createElement("svg",{ref:c,...v,width:t,height:t,stroke:o,strokeWidth:r?Number(n)*24/Number(t):n,className:x("lucide",l),...!a&&!k(m)&&{"aria-hidden":"true"},...m},[...d.map(([u,h])=>s.createElement(u,h)),...Array.isArray(a)?a:[a]]));/**
17 * @license lucide-react v0.513.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const f=(o,t)=>{const n=s.forwardRef(({className:r,...l},a)=>s.createElement(C,{ref:a,iconNode:t,className:x(`lucide-${w(p(o))}`,`lucide-${o}`,r),...l}));return n.displayName=p(o),n};/**
22 * @license lucide-react v0.513.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */const N=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],z=f("moon",N);/**
27 * @license lucide-react v0.513.0 - ISC
28 *
29 * This source code is licensed under the ISC license.
30 * See the LICENSE file in the root directory of this source tree.
31 */const M=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],A=f("sun",M),L=({onToggleMenu:o})=>{const{auth:t}=y().props;t==null||t.user;const[n,r]=s.useState(!1),[l,a]=s.useState(16),[d,m]=s.useState("none"),[c,u]=s.useState("light"),h=s.useRef(null);s.useEffect(()=>{const i=b=>{h.current&&!h.current.contains(b.target)&&r(!1)};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[]),s.useEffect(()=>{document.body.className=`theme-${c} color-${d}`,document.body.style.setProperty("--global-font-size",`${l}px`)},[l,d,c]);const g=()=>{u(i=>i==="light"?"dark":"light")};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"w-full fixed top-0 left-0 right-0 z-50 flex items-center justify-end px-3 h-[20px] gap-4",style:{background:"#05467bff"},children:[e.jsx("button",{onClick:()=>a(i=>Math.max(i-2,12)),className:"bg-white/80 text-[10px] font-semibold w-8 h-4 flex items-center justify-center rounded hover:bg-white transition",title:"Decrease font size",children:"A-"}),e.jsx("button",{onClick:()=>a(16),className:"bg-white/80 text-[10px] font-semibold w-8 h-4 flex items-center justify-center rounded hover:bg-white transition",title:"Reset font size",children:"A"}),e.jsx("button",{onClick:()=>a(i=>Math.min(i+2,24)),className:"bg-white/80 text-[10px] font-semibold w-8 h-4 flex items-center justify-center rounded hover:bg-white transition",title:"Increase font size",children:"A+"}),e.jsx("button",{onClick:g,className:"bg-white/80 w-8 h-4 flex items-center justify-center rounded hover:bg-white transition",title:"Toggle theme",children:c==="light"?e.jsx(z,{size:10}):e.jsx(A,{size:10})}),e.jsxs("select",{value:d,onChange:i=>m(i.target.value),className:"bg-white/80 text-[12px] px-2 pt-[0px] pb-[0px] h-[16px] leading-[0.75rem] rounded border border-gray-300 focus:outline-none",title:"Color Mode",children:[e.jsx("option",{value:"none",children:"Default"}),e.jsx("option",{value:"protanopia",children:"Protanopia"}),e.jsx("option",{value:"deuteranopia",children:"Deuteranopia"}),e.jsx("option",{value:"tritanopia",children:"Tritanopia"}),e.jsx("option",{value:"monochrome",children:"Monochrome"})]})]}),e.jsx("nav",{className:"fixed top-[20px] left-0 right-0 border-b shadow z-40 py-4 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-2 md:px-10 flex items-center justify-between gap-2 sm:gap-4",children:[e.jsxs("div",{className:`flex items-center gap-3 sm:gap-5 flex-shrink min-w-0 lg:-ml-18 xl:-ml-10\r
32`,children:[e.jsx("img",{src:"/images/Emblem_of_India_black.png",alt:"UT Ladakh Emblem",className:"h-14 sm:h-18 md:h-24 w-auto"}),e.jsxs("div",{className:"leading-tight min-w-0",children:[e.jsx("h1",{className:"text-sm sm:text-lg md:text-2xl font-serif font-semibold text-amber-800 truncate",children:"Administration of UT Ladakh"}),e.jsx("h1",{className:"text-xs sm:text-lg md:text-2xl font-serif font-semibold text-gray-800 truncate",children:"Domicile Certificate Issuance Portal"})]})]}),e.jsx("div",{className:"flex-shrink-0",children:e.jsx("img",{src:"/images/digi.png",alt:"DigiLocker",className:"h-12 sm:h-16 md:h-24 w-auto"})})]})}),e.jsx("style",{children:`
33  body {
34    --global-font-size: 16px;
35    transition: background-color 0.3s ease, color 0.3s ease, filter 0.3s ease;
36  }
37
38  body,
39  body * {
40    font-size: var(--global-font-size);
41  }
42
43  body.color-protanopia {
44    filter: hue-rotate(30deg) contrast(1.2) saturate(1.2);
45  }
46
47  body.color-deuteranopia {
48    filter: hue-rotate(60deg) contrast(1.2) saturate(1.2);
49  }
50
51  body.color-tritanopia {
52    filter: hue-rotate(180deg) saturate(1.5);
53  }
54
55  body.color-monochrome {
56    filter: grayscale(100%);
57  }
58
59  body.color-none {
60    filter: none;
61  }
62`}),e.jsx("div",{className:`fixed inset-0 z-[999] bg-black transition-opacity duration-500 pointer-events-none ${c==="dark"?"opacity-60":"opacity-0"}`})]})};export{L as N,f as c};

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.