PageSourceSearch

https://cmz-webapp-dev.netlify.app/_next/static/chunks/2384.a15ee0c2d15adec0.js

js cmz-webapp-dev.netlify.app collected 2026-10-03 11:38:55 UTC 14,495 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2384,5796],{80184:(e,r,t)=>{t.r(r),t.d(r,{default:()=>m});var a=t(95155),o=t(12115),n=t(31497),c=t(978),s=t(75828);let l=(0,s.createServerReference)("403a25b31bc30de818b52d2bf7b122b01b95791ce4",s.callServer,void 0,s.findSourceMapURL,"getEventsByMasjidsAction");var i=t(98160),d=t(97995);function m(e){let{masjidId:r}=e,t=(0,n.c3)(),[s,m]=(0,o.useState)([]),[u,y]=(0,o.useState)(!0),[g,h]=(0,o.useState)(null),[f,b]=(0,o.useState)("");return((0,o.useEffect)(()=>{b((0,d.k)())},[]),(0,o.useEffect)(()=>{let e=async()=>{try{y(!0);let e=await l({masjidIds:[r],page:1,limit:6});e.success&&e.data&&e.data.length>0?m(e.data):e.success||h(e.error||t("content.page.grid.events.noContent")),y(!1)}catch(e){h(t("content.page.grid.events.noContent")),y(!1)}};r&&e()},[r]),u)?(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 md:gap-4",children:Array.from({length:3}).map((e,r)=>(0,a.jsx)(i.A,{},r))}):g?(0,a.jsx)("div",{className:"text-center p-8",children:(0,a.jsx)("p",{className:"text-red-500",children:g})}):s&&0!==s.length?(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 md:gap-4",children:s.map(e=>(0,a.jsx)(c.A,{event:e,returnUrl:f},e.events[0]._id))}):(0,a.jsx)("div",{className:"text-center p-8",children:(0,a.jsx)("p",{className:"text-gray-500",children:t("content.carousel.noContent.events")})})}},98160:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(95155);function o(){return(0,a.jsxs)("div",{className:"bg-white/80 backdrop-blur-sm rounded-2xl overflow-hidden shadow-lg mb-4 relative",children:[(0,a.jsx)("div",{className:"absolute -left-3 -top-3 w-6 h-6 bg-[#154f30]/10 rounded-full"}),(0,a.jsx)("div",{className:"absolute -right-3 -bottom-3 w-6 h-6 bg-[#154f30]/10 rounded-full"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"w-full bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer",style:{height:"200px",backgroundSize:"200% 100%"}}),(0,a.jsx)("div",{className:"absolute top-3 left-3 w-20 h-6 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-full shadow-md"}),(0,a.jsx)("div",{className:"absolute bottom-3 left-3",children:(0,a.jsx)("div",{className:"w-16 h-6 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-full shadow-md"})})]}),(0,a.jsxs)("div",{className:"p-5",children:[(0,a.jsx)("div",{className:"w-full h-6 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-md mb-3"}),(0,a.jsx)("div",{className:"w-2/3 h-6 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-md mb-4"}),(0,a.jsxs)("div",{className:"flex gap-2 mb-4",children:[(0,a.jsx)("div",{className:"w-16 h-6 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-full shadow-sm"}),(0,a.jsx)("div",{className:"w-20 h-6 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-full shadow-sm"})]}),(0,a.jsxs)("div",{className:"flex gap-2 mb-2",children:[(0,a.jsx)("div",{className:"w-4 h-4 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-full"}),(0,a.jsx)("div",{className:"w-24 h-4 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-md"})]}),(0,a.jsxs)("div",{className:"flex gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-4 h-4 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-full"}),(0,a.jsx)("div",{className:"w-32 h-4 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-md"})]}),(0,a.jsxs)("div",{className:"flex gap-2 mb-4",children:[(0,a.jsx)("div",{className:"w-4 h-4 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-full"}),(0,a.jsx)("div",{className:"w-40 h-4 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-md"})]}),(0,a.jsx)("div",{className:"pt-3 border-t border-gray-100",children:(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("div",{className:"w-24 h-6 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-full"}),(0,a.jsx)("div",{className:"w-20 h-6 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer rounded-full"})]})})]})]})}},46815:(e,r,t)=>{t.d(r,{Q:()=>i,TimeFormatProvider:()=>l});var a=t(95155),o=t(12115);let n=(0,o.createContext)(void 0),c="timeFormat",s="12_HOUR";function l(e){let{children:r}=e,[t,l]=(0,o.useState)(s),[i,d]=(0,o.useState)(!1);(0,o.useEffect)(()=>{try{let e=localStorage.getItem(c);("12_HOUR"===e||"24_HOUR"===e)&&l(e)}catch(e){console.error("Error loading time format from localStorage:",e)}finally{d(!0)}},[]);let m=e=>{l(e);try{localStorage.setItem(c,e)}catch(e){console.error("Error saving time format to localStorage:",e)}},u=i?{timeFormat:t,setTimeFormat:m}:{timeFormat:s,setTimeFormat:m};return(0,a.jsx)(n.Provider,{value:u,children:r})}function i(){let e=(0,o.useContext)(n);if(void 0===e)throw Error("useTimeFormat must be used within a TimeFormatProvider");return e}},27809:(e,r,t)=>{t.d(r,{a:()=>n});var a=t(46815),o=t(78173);function n(){let{timeFormat:e}=(0,a.Q)();return{formatUnixTime:function(r,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hh:mm A";if("24_HOUR"===e){let e=(0,o.Uv)(r,t,"HH:mm");return"string"==typeof e?e:e.format("HH:mm")}let n=(0,o.Uv)(r,t,a);return"string"==typeof n?n:n.format(a)},formatISOTime:function(r,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hh:mm A";if("24_HOUR"===e){let e=(0,o.Vo)(r,t,"HH:mm");return"string"==typeof e?e:e.format("HH:mm")}let n=(0,o.Vo)(r,t,a);return"string"==typeof n?n:n.format(a)},timeFormat:e}}},9560:(e,r,t)=>{t.d(r,{H3:()=>l,Qn:()=>c});var a=t(12115),o=t(488);let n={USD:"$",EUR:"€",GBP:"\xa3",CAD:"C$",AUD:"A$",INR:"₹",PKR:"₨",BDT:"৳",LKR:"Rs",AED:"د.إ",SAR:"﷼",QAR:"﷼",KWD:"د.ك",BHD:".د.ب",OMR:"﷼",TRY:"₺",EGP:"E\xa3",JOD:"د.ا",LBP:"\xa3",IQD:"ع.د",MYR:"RM",SGD:"S$",IDR:"Rp",THB:"฿",PHP:"₱",NGN:"₦",ZAR:"R",KES:"KSh",MAD:"د.م.",GHS:"₵",JPY:"\xa5",CNY:"\xa5",KRW:"₩",HKD:"HK$",BRL:"R$",MXN:"Mex$",ARS:"$",COP:"$",PEN:"S/",SEK:"kr",NOK:"kr",DKK:"kr",CHF:"CHF",PLN:"zł",NZD:"NZ$",ILS:"₪"};function c(e){return e&&n[e.trim().toUpperCase()]||"$"}let s={currency:"USD",symbol:"$",country:"United States",rate:1};function l(e){let{settingsCurrency:r}=e,t=(0,a.useMemo)(()=>{var e;let t=null==r?void 0:null===(e=r.trim())||void 0===e?void 0:e.toUpperCase();
1return t&&n[t]?{currency:t,symbol:n[t],country:"",rate:1}:s},[r]),c=(0,a.useMemo)(()=>e=>o.A.convertPrice(e,"USD",t.currency,t.rate),[t]),l=(0,a.useMemo)(()=>e=>{let r=c(e);return o.A.formatPrice(r,t.currency,t.symbol)},[t,c]);return{currency:t.currency,symbol:t.symbol,country:t.country,rate:t.rate,convertPrice:c,formatPrice:l,isLoading:!1,error:null}}},78173:(e,r,t)=>{t.d(r,{Uv:()=>y,V$:()=>u,Vo:()=>g,WD:()=>m});var a=t(21455),o=t.n(a),n=t(73474),c=t.n(n),s=t(10543),l=t.n(s),i=t(73304),d=t.n(i);function m(e){try{return d()(e.latitude,e.longitude)}catch(o){console.error("Error getting timezone from coordinates:",o);let r=Math.round(e.longitude/15),t=r<=0?"+":"-",a=Math.abs(r);return 0===r?"UTC":"Etc/GMT".concat(t).concat(a)}}function u(e,r){let t=m(e),a=o()().tz(t);return r?a.format(r):a}function y(e,r,t){let a=m(r),n=o().unix(e>1e12?e/1e3:e).tz(a);return t?n.format(t):n}function g(e,r,t){let a=m(r),n=o().utc(e).tz(a);return t?n.format(t):n}o().extend(c()),o().extend(l())},97995:(e,r,t)=>{function a(e,r){if(!r)return e;let t=e.includes("?")?"&":"?";return"".concat(e).concat(t,"returnUrl=").concat(encodeURIComponent(r))}function o(){return window.location.pathname+window.location.search}t.d(r,{k:()=>o,o:()=>a})},32578:(e,r,t)=>{t.d(r,{y:()=>a});function a(e){return e.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g," ").trim().replace(/\s/g,"-").replace(/-+/g,"-")}},9110:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(67401).A)("building-2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},66889:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(67401).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},20591:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(67401).A)("heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]])},66507:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(67401).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},8427:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(67401).A)("log-in",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]])},57517:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(67401).A)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]])},1466:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(67401).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},488:(e,r,t)=>{t.d(r,{A:()=>o});class a{async getCurrencyFromCoordinates(e,r){try{let t=await fetch("https://api.bigdatacloud.net/data/reverse-geocode-client?latitude=".concat(e,"&longitude=").concat(r,"&localityLanguage=en"));if(!t.ok)throw Error("Failed to get location data");let a=(await t.json()).countryName,o=this.getCurrencyFromCountry(a);return{country:a,currency:o.code,symbol:o.symbol,rate:1}}catch(e){return console.error("Error detecting currency:",e),{country:"United States",currency:"USD",symbol:"$",rate:1}}}async getCurrencyFromMasjidCoordinates(e,r,t,a){console.log("\uD83D\uDD4C === MASJID CURRENCY DETECTION ==="),console.log("\uD83D\uDCCD Masjid ID:",e),console.log("\uD83D\uDCCD Masjid Name:",r),console.log("\uD83D\uDCCD Masjid Coordinates:",{latitude:t,longitude:a});try{let e=await fetch("https://api.bigdatacloud.net/data/reverse-geocode-client?latitude=".concat(t,"&longitude=").concat(a,"&localityLanguage=en"));if(!e.ok)throw Error("Failed to get location data");let r=(await e.json()).countryName,o=this.getCurrencyFromCountry(r);return console.log("\uD83C\uDF0D Detected Country:",r),console.log("\uD83D\uDCB0 Assigned Currency:",o.co
1de),console.log("\uD83D\uDCB2 Currency Symbol:",o.symbol),console.log("\uD83D\uDCCA Exchange Rate:",1,"(no conversion)"),console.log("================================="),{country:r,currency:o.code,symbol:o.symbol,rate:1}}catch(e){return console.error("❌ Error detecting masjid currency:",e),console.log("⚠️ Falling back to USD"),console.log("================================="),{country:"United States",currency:"USD",symbol:"$",rate:1}}}async getCurrencyFromIP(){try{let e=await fetch("https://ipapi.co/json/"),r=await e.json(),t=this.getCurrencyFromCountry(r.country_name);return{country:r.country_name,currency:t.code,symbol:t.symbol,rate:1}}catch(e){return console.error("Error getting currency from IP:",e),{country:"United States",currency:"USD",symbol:"$",rate:1}}}async getExchangeRates(){let e=this.getCachedRates();if(e)return e;try{let e=await fetch("https://api.exchangerate-api.com/v4/latest/".concat(this.baseCurrency));if(!e.ok)throw Error("Failed to get exchange rates");let r=(await e.json()).rates;return this.setCachedRates(r),r}catch(e){return console.error("Error getting exchange rates:",e),{USD:1,EUR:.85,GBP:.73,CAD:1.25,AUD:1.35,INR:75}}}async getExchangeRate(e){return e===this.baseCurrency?1:(await this.getExchangeRates())[e]||1}convertPrice(e,r,t,a){return e}formatPrice(e,r,t){let a="number"==typeof e?e:parseFloat(String(e)),o=(isNaN(a)?0:a).toFixed(2);switch(r){case"USD":return"$".concat(o);case"EUR":return"€".concat(o);case"GBP":return"\xa3".concat(o);case"INR":return"₹".concat(o);default:return"".concat(t).concat(o)}}getCurrencyFromCountry(e){let r=e.toLowerCase().trim();if(r.includes("united kingdom")||r.includes("great britain")||r.includes("britain")||"uk"===r||"gb"===r)return{code:"GBP",symbol:"\xa3"};if(r.includes("united states")||"usa"===r||"us"===r)return{code:"USD",symbol:"$"};let t={canada:{code:"CAD",symbol:"C$"},england:{code:"GBP",symbol:"\xa3"},scotland:{code:"GBP",symbol:"\xa3"},wales:{code:"GBP",symbol:"\xa3"},"northern ireland":{code:"GBP",symbol:"\xa3"},germany:{code:"EUR",symbol:"€"},france:{code:"EUR",symbol:"€"},italy:{code:"EUR",symbol:"€"},spain:{code:"EUR",symbol:"€"},netherlands:{code:"EUR",symbol:"€"},belgium:{code:"EUR",symbol:"€"},austria:{code:"EUR",symbol:"€"},portugal:{code:"EUR",symbol:"€"},ireland:{code:"EUR",symbol:"€"},australia:{code:"AUD",symbol:"A$"},india:{code:"INR",symbol:"₹"},japan:{code:"JPY",symbol:"\xa5"},china:{code:"CNY",symbol:"\xa5"},brazil:{code:"BRL",symbol:"R$"},mexico:{code:"MXN",symbol:"$"},"south africa":{code:"ZAR",symbol:"R"},pakistan:{code:"PKR",symbol:"₨"},bangladesh:{code:"BDT",symbol:"৳"},"united arab emirates":{code:"AED",symbol:"د.إ"},uae:{code:"AED",symbol:"د.إ"},"saudi arabia":{code:"SAR",symbol:"﷼"},malaysia:{code:"MYR",symbol:"RM"},indonesia:{code:"IDR",symbol:"Rp"},turkey:{code:"TRY",symbol:"₺"}
1,egypt:{code:"EGP",symbol:"E\xa3"}};if(t[r])return t[r];for(let[e,a]of Object.entries(t))if(r.includes(e))return a;return console.warn('⚠️ No currency mapping found for country: "'.concat(e,'", defaulting to USD')),{code:"USD",symbol:"$"}}getCachedRates(){try{let e=localStorage.getItem(this.cacheKey);if(e){let{rates:r,timestamp:t}=JSON.parse(e);if(Date.now()-t<this.cacheExpiry)return r}}catch(e){console.error("Error reading cached rates:",e)}return null}setCachedRates(e){try{localStorage.setItem(this.cacheKey,JSON.stringify({rates:e,timestamp:Date.now()}))}catch(e){console.error("Error caching rates:",e)}}constructor(){this.baseCurrency="USD",this.cacheKey="currency_rates",this.cacheExpiry=36e5}}let o=new 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.