PageSourceSearch

https://www.jansuraaj.org/_next/static/chunks/5181.82e7ac30c3a3e1cf.js

js jansuraaj.org collected 2026-10-03 00:25:50 UTC 13,680 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5181],{10639:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(14294).A)("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},45181:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>p});var r=s(95155),i=s(88661),n=s.n(i),o=s(12115),d=s(26497),a=s(35634),c=s(26615),l=s(10639),u=s(89679),h=s(29253);let f={30:{districtId:"30",districtName:"पटना",address:"मकान नं 27 - पाटलिपुत्र कॉलोनी, पोस्ट - पाटलिपुत्र, पटना, बिहार - 800013",phone:"+91 612 1234567",email:"[email protected]"},14:{districtId:"14",districtName:"पश्चिमी चंपारण",address:"जन सुराज कार्यालय, बेतिया, पश्चिमी चंपारण",phone:"+91 98765 43210"},13:{districtId:"13",districtName:"पूर्वी चंपारण",address:"जन सुराज कार्यालय, मोतीहारी, पूर्वी चंपारण"},22:{districtId:"22",districtName:"मुजफ्फरपुर",address:"जन सुराज कार्यालय, मुजफ्फरपुर"},10:{districtId:"10",districtName:"गया",address:"जन सुराज कार्यालय, गया"}},p=()=>{let[e,t]=(0,o.useState)(!1),[s,i]=(0,o.useState)(null),p=o.useRef(null);return(0,o.useEffect)(()=>{let e=()=>t(e=>!e);return window.addEventListener("toggle-office-map",e),()=>window.removeEventListener("toggle-office-map",e)},[]),(0,o.useEffect)(()=>{let s=e=>{let s=e.target;!p.current||p.current.contains(s)||s.closest(".social-btn-wrap")||t(!1)};return e&&document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[e]),(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(!1)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.N,{children:e&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(a.P.div,{initial:{opacity:0,scale:.8,x:20,originX:1,originY:.5},animate:{opacity:1,scale:1,x:0,transition:{type:"spring",damping:25,stiffness:200}},exit:{opacity:0,scale:.8,x:20,transition:{duration:.2}},style:{top:"50%",transform:"translateY(-50%)"},className:"fixed right-[70px] w-[300px] bg-zinc-950/95 border border-white/10 rounded-2xl shadow-[0_10px_40px_rgba(0,0,0,0.7)] z-50 overflow-hidden flex flex-col pointer-events-auto",ref:p,children:[(0,r.jsxs)("div",{className:"jsx-cf4e733dfb405fd4 flex items-center justify-between px-4 py-1.5 border-b border-white/10 bg-zinc-900/80",children:[(0,r.jsxs)("div",{className:"jsx-cf4e733dfb405fd4 flex items-center gap-2",children:[(0,r.jsx)("div",{className:"jsx-cf4e733dfb405fd4 w-1.5 h-1.5 bg-amber-500 rounded-full animate-pulse"}),(0,r.jsx)("h2",{className:"jsx-cf4e733dfb405fd4 text-[9px] font-bold text-white uppercase tracking-widest",children:"Office Map"})]}),(0,r.jsx)("button",{onClick:()=>t(!1),className:"jsx-cf4e733dfb405fd4 p-0.5 hover:bg-white/10 rounded-full transition-colors",children:(0,r.jsx)(c.A,{className:"w-3 h-3 text-gray-400"})})]}),(0,r.jsxs)("div",{className:"jsx-cf4e733dfb405fd4 relative p-2.5 min-h-[200px] flex flex-col",children:[(0,r.jsx)("div",{className:"jsx-cf4e733dfb405fd4 w-full flex-1 flex items-center justify-center",children:(0,r.jsx)("svg",{viewBox:"0 0 1122 655",className:"jsx-cf4e733dfb405fd4 w-full h-auto drop-shadow-lg",children:Object.keys(h).map(e=>{let t=h[e],n=!!f[e],o=e===s;return(0,r.jsx)(a.P.path,{d:t.path,fill:o?"#f59e0b":n?"#78350f":"#1c1917",stroke:o?"#ffffff":"#44403c",strokeWidth:o?"4":"1",whileHover:{fill:o?"#fbbf24":n?"#92400e":"#292524",strokeWidth:o?"4":"2"},onClick:()=>i(e),className:"cursor-pointer transition-colors"},e)})})}),(0,r.jsx)(d.N,{children:s&&f[s]&&(0,r.jsxs)(a.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:5},className:"mt-3 bg-zinc-900 border border-white/5 rounded-xl p-3 shadow-inner",children:[(0,r.jsx)("div",{className:"jsx-cf4e733dfb405fd4 flex justify-between items-center mb-1.5",children:(0,r.jsx)("h3",{className:"jsx-cf4e733dfb405fd4 text-sm font-bold text-amber-500",children:f[s].districtName})}),(0,r.jsxs)("div",{className:"jsx-cf4e733dfb405fd4 space-y-2",children:[(0,r.jsxs)("div",{className:"jsx-cf4e733dfb405fd4 flex items-start gap-2",children:[(0,r.jsx)(l.A,{className:"w-3 h-3 text-amber-500 shrink-0 mt-0.5"}),(0,r.jsx)("p",{className:"jsx-cf4e733dfb405fd4 text-[10px] text-gray-300 leading-tight",children:f[s].address})]}),f[s].phone&&(0,r.jsxs)("div",{className:"jsx-cf4e733dfb405fd4 flex items-center gap-2",children:[(0,r.jsx)(u.A,{className:"w-3 h-3 text-emerald-500 shrink-0"}),(0,r.jsx)("p",{className:"jsx-cf4e733dfb405fd4 text-[10px] text-gray-300 font-mono",children:f[s].phone})]})]})]})})]}),(0,r.jsx)("div",{className:"jsx-cf4e733dfb405fd4 px-4 py-1.5 bg-black/40 border-t border-white/10 text-center",children:(0,r.jsx)("span",{className:"jsx-cf4e733dfb405fd4 text-[8px] text-gray-500 font-bold uppercase tracking-tighter italic",children:"Jan Suraaj District Network"})})]})})}),(0,r.jsx)(n(),{id:"cf4e733dfb405fd4",children:".custom-scrollbar::-webkit-scrollbar{width:4px}.custom-scrollbar::-webkit-scrollbar-track{background:transparent}.custom-scrollbar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:10px}.custom-scrollbar::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.2)}"})]})}},45688:(e,t,s)=>{"use strict";var r=s(95704);s(86340);var i=s(12115),n=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),o=void 0!==r&&r.env&&!0,d=function(e){return"[object String]"===Object.prototype.toString.call(e)},a=function(){function e(e){var t=void 0===e?{}
1:e,s=t.name,r=void 0===s?"stylesheet":s,i=t.optimizeForSpeed,n=void 0===i?o:i;c(d(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",c("boolean"==typeof n,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=n,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var a="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=a?a.getAttribute("content"):null}var t,s=e.prototype;return s.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},s.isOptimizeForSpeed=function(){return this._optimizeForSpeed},s.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,s){return"number"==typeof s?e._serverSheet.cssRules[s]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),s},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},s.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},s.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},s.insertRule=function(e,t){if(c(d(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var s=this.getSheet();"number"!=typeof t&&(t=s.cssRules.length);try{s.insertRule(e,t)}catch(t){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},s.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var s="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!s.cssRules[e])return e;s.deleteRule(e);try{s.insertRule(t,e)}catch(r){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),s.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];c(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},s.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},s.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},s.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,s){return s?t=t.concat(Array.prototype.map.call(e.getSheetForTag(s).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},s.makeStyleTag=function(e,t,s){t&&c(d(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return s?i.insertBefore(r,s):i.appendChild(r),r},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var l=function(e){for(var t=5381,s=e.length;s;)t=33*t^e.charCodeAt(--s);return t>>>0},u={};function h(e,t){if(!t)return"jsx-"+e;var s=String(t),r=e+s;return u[r]||(u[r]="jsx-"+l(e+"-"+s)),u[r]}function f(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var s=e+t;return u[s]||(u[s]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[s]}var p=function(){function e(e){var t=void 0===e?{}:e,s=t.styleSheet,r=void 0===s?null:s,i=t.optimizeForSpeed,n=void 0!==i&&i;this._sheet=r||new a({name:"styled-jsx",optimizeForSpeed:n}),this._sheet.inject(),r&&"boolean"==typeof n&&(this._sheet.setOptimizeForSpeed(n),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var s=this.getIdAndRules(e),r=s.styleId,i=s.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var n=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=n,this._instancesCounts[r]=1},t.remove=function(e){var t=this,s=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(s in this._instancesCounts,"styleId: `"+s+"` not found"),this._instancesCounts[s]-=1,this._instancesCounts[s]<1){var r=this._fromServer&&this._fromServer[s];r?(r.parentNode.removeChild(r),delete this._fromServer[s]):(this._indices[s].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[s]),delete this._instancesCounts[s]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],s=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return s[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,s;return t=this.cssRules(),void 0===(s=e)&&(s={}),t.map(function(e){var t=e[0],r=e[1];return n.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:s.nonce?s.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,s=e.dynamic,r=e.id;if(s){var i=h(r,s);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:h(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);m.displayName="StyleSheetContext";var _=n.default.useInsertionEffect||n.default.useLayoutEffect,v="undefined"!=typeof window?new p:void 0;function y(e){var t=v||i.useContext(m);return t&&("undefined"==typeof window?t.add(e):_(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}y.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=y},86340:()=>{},88661:(e,t,s)=>{"use strict";e.exports=s(45688).style}}]);

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.