PageSourceSearch

https://ecomitram.org/_next/static/chunks/224-2b1532f4e355a355.js

js ecomitram.org collected 2026-10-10 01:45:36 UTC 24,823 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[224],{11877:(e,t,a)=>{a.d(t,{n:()=>c});var r=a(84157),n=a(41865),l=a(28285),o=a(47329);function i(e){let{permalink:t}=e,[a,l]=(0,n.useState)(!1),i=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!a)return;let e=!1,t=new MutationObserver(()=>{var e,t;let a=null==(e=i.current)?void 0:e.querySelector("iframe.instagram-media-rendered, iframe.instagram-media");a&&(a.style.position="absolute",a.style.top="-".concat(s,"px"),a.style.left="0",a.style.width="100%",a.style.height=(null!=(t=a.getAttribute("height"))?t:"706")+"px",a.style.minWidth="0",a.style.maxWidth="none")});return i.current&&t.observe(i.current,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["height","style"]}),(()=>{if(window.instgrm)return Promise.resolve();let e=document.querySelector('script[data-ig-embed-loader="1"]');return new Promise(e?t=>{e.addEventListener("load",()=>t(),{once:!0}),e.addEventListener("error",()=>t(),{once:!0})}:e=>{let t=document.createElement("script");t.src="https://www.instagram.com/embed.js",t.async=!0,t.dataset.igEmbedLoader="1",t.addEventListener("load",()=>e(),{once:!0}),t.addEventListener("error",()=>e(),{once:!0}),document.body.appendChild(t)})})().then(()=>{var t;e||null==(t=window.instgrm)||t.Embeds.process()}),()=>{e=!0,t.disconnect()}},[t,a]);let c="".concat(t).concat(t.includes("?")?"&":"?","utm_source=ig_embed&utm_campaign=loading"),u=(0,n.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),l(!0)},[]);return a?(0,r.jsx)("div",{ref:i,className:"ig-embed-container relative w-full overflow-hidden rounded-xl bg-black",style:{maxWidth:400,height:d},"data-testid":"instagram-embed",children:(0,r.jsx)("blockquote",{className:"instagram-media","data-instgrm-permalink":c,"data-instgrm-version":"14",style:{background:"#FFF",border:0,margin:0,maxWidth:"none",minWidth:0,padding:0,width:"100%"},children:(0,r.jsx)("div",{style:{padding:16},children:(0,r.jsx)("a",{href:c,target:"_blank",rel:"noopener noreferrer",style:{background:"#FFFFFF",lineHeight:0,padding:0,textAlign:"center",textDecoration:"none",width:"100%"},children:"View on Instagram"})})})}):(0,r.jsxs)("button",{onClick:u,className:"relative flex w-full flex-col items-center justify-center gap-2 overflow-hidden rounded-xl bg-gray-200 text-gray-500 focus:outline-none focus:ring-2 focus:ring-green-500",style:{maxWidth:400,height:d},"aria-label":"Tap to view Instagram post","data-testid":"instagram-embed-placeholder",children:[(0,r.jsx)(o.A,{className:"h-10 w-10","aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-sm font-medium",children:"Tap to view Instagram post"})]})}let s=54,d=500;function c(e){var t;let{videoData:a,posterUrl:o}
1=e,[s,d]=(0,n.useState)(!1),[c,m]=(0,n.useState)(!1);if("instagram"===a.provider){let e=a.embedUrl.replace(/\/embed\/?$/,"/");return(0,r.jsx)(i,{permalink:e})}let f=(0,n.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),d(!0)},[]),p=(0,n.useCallback)(()=>{m(!0)},[]),h="youtube"===a.provider?"https://img.youtube.com/vi/".concat(a.embedId,"/hqdefault.jpg"):null,g=null!=(t=a.aspectRatio)?t:"16 / 9",x="9 / 16"===g?"max-w-[400px]":"",v="1 / 1"===g?"max-w-[540px]":"";if(s)return(0,r.jsx)("div",{className:"relative w-full overflow-hidden rounded-lg bg-black ".concat(x," ").concat(v).trim(),style:{aspectRatio:g},"data-testid":"video-iframe-container",children:(0,r.jsx)("iframe",{src:a.embedUrl,title:"Video player",className:"absolute inset-0 h-full w-full",allow:"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,loading:"lazy","data-testid":"video-iframe"})});let b=o||a.thumbnail||null,w=!b&&!h,y=c?h:b||h;return(0,r.jsx)("button",{onClick:f,className:"relative block w-full overflow-hidden rounded-lg bg-gray-200 focus:outline-none focus:ring-2 focus:ring-green-500 ".concat(x," ").concat(v).trim(),style:{aspectRatio:g},"aria-label":"Play ".concat(a.provider," video"),"data-testid":"video-play-button",children:w||!y?(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-300","data-testid":"video-placeholder",children:(0,r.jsx)(u,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.default,{src:y,alt:"",fill:!0,sizes:"(max-width: 540px) 100vw, 540px",className:"object-cover",unoptimized:!0,onError:p,"data-testid":"video-thumbnail"}),(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,r.jsx)(u,{})})]})})}function u(){return(0,r.jsx)("div",{className:"flex h-[60px] w-[60px] items-center justify-center rounded-full bg-black/50","data-testid":"play-icon",children:(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"white",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M8 5v14l11-7z"})})})}},13144:(e,t,a)=>{a.d(t,{Z:()=>d});var r=a(84157),n=a(41865),l=a(78079),o=a(35114),i=a(56764);let s=[{key:"spam",label:"Spam"},{key:"harassment",label:"Harassment or bullying"},{key:"misinformation",label:"Misinformation"},{key:"inappropriate",label:"Inappropriate content"},{key:"impersonation",label:"Impersonation"},{key:"other",label:"Other"}];function d(e){let{isOpen:t,onClose:a,targetType:d,targetId:c}=e,[u,m]=(0,n.useState)(null),[f,p]=(0,n.useState)(""),[h,g]=(0,n.useState)(!1),[x,v]=(0,n.use
1State)(null),{requireUpgrade:b}=(0,i.F)();(0,n.useEffect)(()=>{t&&(m(null),p(""),v(null),g(!1))},[t,c]),(0,n.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"===e.key&&a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t,a]);let w=(0,n.useCallback)(async()=>{if(u){if(!b({kind:"report",refId:c}))return void a();g(!0),v(null);try{let e=f.trim();await (0,o.apiMutate)("/reports",{method:"POST",body:{targetType:d,targetId:c,reason:u,...e&&{details:e}}}),a()}catch(e){if(e instanceof l.hD){if("AUTH_REQUIRED"===e.errorCode)return void a();409===e.status?v("You have already reported this."):429===e.status?v("Too many reports. Please try again later."):v(e.message||"Something went wrong. Please try again.")}else v("Something went wrong. Please try again.")}finally{g(!1)}}},[u,f,d,c,a,b]);return t?(0,r.jsxs)("div",{className:"fixed inset-0 z-[60] flex items-end justify-center bg-black/40","data-testid":"report-dialog",role:"dialog","aria-modal":"true","aria-label":"Report content",children:[(0,r.jsx)("div",{className:"absolute inset-0",onClick:a,"aria-hidden":"true"}),(0,r.jsxs)("div",{className:"relative max-h-[85dvh] w-full max-w-lg overflow-y-auto rounded-t-2xl bg-white px-4 pb-6 pt-4",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)("button",{onClick:a,className:"absolute right-4 top-4 min-h-[44px] min-w-[44px] flex items-center justify-center text-gray-500 hover:text-gray-800","data-testid":"report-close","aria-label":"Close report dialog",children:"✕"}),(0,r.jsx)("h2",{className:"mb-4 text-lg font-semibold text-gray-900",children:"Report"}),(0,r.jsx)("div",{className:"space-y-2",children:s.map(e=>{let{key:t,label:a}=e;return(0,r.jsxs)("label",{className:"flex min-h-[44px] cursor-pointer items-center gap-3 rounded-lg border px-3 py-2 hover:bg-gray-50","data-testid":"report-reason-".concat(t),children:[(0,r.jsx)("input",{type:"radio",name:"report-reason",value:t,checked:u===t,onChange:()=>m(t),className:"h-4 w-4 accent-green-600"}),(0,r.jsx)("span",{className:"text-sm text-gray-800",children:a})]},t)})}),(0,r.jsx)("textarea",{value:f,onChange:e=>p(e.target.value),placeholder:"Additional details (optional)","aria-label":"Additional details (optional)",maxLength:2e3,className:"mt-3 w-full rounded-lg border px-3 py-2 text-sm",rows:3,"data-testid":"report-details"}),x&&(0,r.jsx)("div",{className:"mt-2 rounded-md bg-red-50 px-3 py-2 text-sm text-red-700",role:"alert",children:x}),(0,r.jsx)("button",{onClick:w,disabled:!u||h,className:"mt-4 w-full min-h-[44px] rounded-lg bg-red-600 px-4 py-2.5 text-sm font-medium text-white hover:bg-red-700 disabled:opacity-50","data-testid":"report-submit",children:h?"Submitting...":"Submit Report"})]})]}):null}},15127:(e,t,a)=>{a.d(t,{Zp:()=>l,bw:()=>o});var r=a(84157);a(41865);var n=a(47104);function l(e){let{className:t,as:a="div",ref:l,...o}=e;return(0,r.jsx)(a,{ref:l,"data-slot":"pwa-card",className:(0,n.cn)("bg-card text-foreground rounded-2xl border border-border-soft overflow-hidden",t),...o})}function o(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"pwa-card-body",className:(0,n.cn)("p-4",t),...a})}},15958:(e,t,a)=>{a.d(t,{d:()=>l,i:()=>n});var r=a(60582);function n(){var e,t;let{user:a,loading:n}=(0,r.As)();return{uid:null!=(e=null==a?void 0:a._id)?e:null,trustLevel:null!=(t=null==a?void 0:a.trustLevel)?t:null,loading:n}}function l(e){let{uid:t}=n();return!!(t&&null!=e&&String(e)===t)}},24412:(e,t,a)=>{a.d(t,{j:()=>o});var r=a(84157),n=a(68737),l=a(54488);function o(e){var t,a,o;let{ogPreview:i}=e,s=(0,n.R)(i),d=null!=(a=null!=(t=i.description)?t:i.title)?a:"",{handle:c,platform:u}=function(e,t){let a,r;try{let t=new URL(e);a=t.hostname.replace(/^www\./,"").toLowerCase(),r=t.pathname.split("/").filter(Boolean)}catch(a){return{handle:null,platform:null!=t?t:(0,l.a)(e)}}if("twitter.com"===a||"x.com"===a){let e=r[0];return{handle:e&&"i"!==e&&"status"===r[1]?"@".concat(e):null,platform:"X"}}if("instagram.com"===a){let e=r[0],t=r[1];return{handle:e&&"p"!==e&&"reel"!==e&&("p"===t||"reel"===t||"tv"===t)?"@".concat(e):null,platform:"Instagram"}}if("facebook.com"===a||"fb.com"===a||"fb.watch"===a){let e=r[0],t=r[1],a=new Set(["share","watch","groups","permalink.php","story.php"]);return{handle:e&&!a.has(e)&&("posts"===t||"videos"===t||"photos"===t)?"@".concat(e):null,platform:"Facebook"}}return{handle:null,platform:null!=t?t:a}}(i.url,i.siteName);return(0,r.jsxs)("div",{"data-testid":"native-social-post","data-media-type":null!=(o=i.mediaType)?o:"unknown",children:[d&&(0,r.jsx)("p",{className:"whitespace-pre-wrap text-gray-800","data-testid":"native-social-body",children:d}),s&&(0,r.jsx)("a",{href:i.url,target:"_blank",rel:"noopener noreferrer",className:"mt-3 block overflow-hidden rounded-lg bg-gray-100","data-testid":"native-social-photo-link",children:(0,r.jsx)("img",{src:s,alt:"",className:"h-auto w-full object-cover","data-testid":"native-social-photo"})}),(0,r.jsxs)("a",{href:i.url,target:"_blank",rel:"noopener noreferrer",className:"mt-2 block text-xs text-gray-500 hover:text-gray-700","data-testid":"native-social-attribution",children:["via ",c?"".concat(c," on "):"",u]}
1)]})}},31158:(e,t,a)=>{a.d(t,{X:()=>i});var r=a(84157),n=a(47104),l=a(68737),o=a(54488);function i(e){let{ogPreview:t,className:a}=e,i=(0,l.R)(t);return(0,r.jsxs)("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:(0,n.cn)("block rounded-2xl border border-border-soft overflow-hidden hover:bg-muted transition-colors",a),"data-testid":"link-post-card",children:[i&&(0,r.jsx)("div",{className:"aspect-video overflow-hidden bg-muted",children:(0,r.jsx)("img",{src:i,alt:"",loading:"lazy",className:"h-full w-full object-cover"})}),(0,r.jsxs)("div",{className:"p-3",children:[t.title&&(0,r.jsx)("div",{className:"font-semibold text-foreground line-clamp-2",children:t.title}),t.description&&(0,r.jsx)("div",{className:"mt-1 text-sm text-muted-foreground line-clamp-2",children:t.description}),(0,r.jsxs)("div",{className:"mt-1.5 flex items-center gap-1 text-xs text-muted-foreground","data-testid":"link-source-domain",children:[(0,r.jsx)("span",{children:"\uD83D\uDD17"}),(0,r.jsx)("span",{children:(0,o.a)(t.url)})]})]})]})}},35426:(e,t,a)=>{a.d(t,{r:()=>n});var r=a(41865);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4,[t,a]=(0,r.useState)(!1),n=(0,r.useRef)(null),l=(0,r.useCallback)(()=>{a(!1),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>a(!0),e)},[e]),o=(0,r.useCallback)(()=>{l()},[l]);return(0,r.useEffect)(()=>(l(),()=>{n.current&&clearTimeout(n.current)}),[l]),{timedOut:t,reset:o}}},44059:(e,t,a)=>{a.d(t,{W:()=>d});var r=a(84157),n=a(41865),l=a(82142),o=a(11804),i=a(19511);function s(e){let{src:t,alt:a="",isOpen:l,onClose:s}=e,[d,c]=(0,n.useState)(!1),u=(0,n.useRef)(null),m=(0,n.useRef)(null);(0,n.useEffect)(()=>{c(!0)},[]),(0,n.useEffect)(()=>{if(!l)return;let e=e=>{"Escape"===e.key&&s()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[l,s]),(0,n.useEffect)(()=>{if(!l)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[l]);let f=(0,n.useCallback)(e=>{let t=e.touches[0];t&&(u.current=t.clientY)},[]),p=(0,n.useCallback)(e=>{if(null===u.current)return;let t=e.changedTouches[0];t&&(t.clientY-u.current>100&&s(),u.current=null)},[s]);if(!l||!d)return null;let h=(0,r.jsxs)("div",{ref:m,className:"fixed inset-0 z-50 flex items-center justify-center bg-black/90",role:"dialog","aria-modal":"true","aria-label":"Image viewer",onTouchStart:f,onTouchEnd:p,children:[(0,r.jsx)("button",{onClick:s,className:"absolute right-4 top-4 z-10 flex h-10 w-10 items-center justify-center rounded-full bg-black/50 text-white hover:bg-black/70","aria-label":"Close image viewer",children:(0,r.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,r.jsx)(i.GT,{initialScale:1,minScale:.5,maxScale:5,doubleClick:{mode:"toggle",step:2},wheel:{step:.2},children:(0,r.jsx)(i.WZ,{wrapperStyle:{width:"100%",height:"100%"},contentStyle:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)("img",{src:t,alt:a,className:"max-h-full max-w-full object-contain","data-testid":"image-viewer-img"})})})]});return(0,o.createPortal)(h,document.body)}function d(e){let{imageKey:t,alt:a="",className:o,"data-testid":i="post-image",priority:d=!1,width:c,height:u}=e,[m,f]=(0,n.useState)(!1),p=(0,n.useCallback)(()=>{f(!0)},[]),h=(0,n.useCallback)(()=>{f(!1)},[]),g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{delay:a=500,threshold:r=10}=t,l=(0,n.useRef)(null),o=(0,n.useRef)(null),i=(0,n.useCallback)(()=>{l.current&&(clearTimeout(l.current),l.current=null),o.current=null},[]),s=(0,n.useCallback)(t=>{let r=t.touches[0];r&&(o.current={x:r.clientX,y:r.clientY},l.current=setTimeout(()=>{e(),l.current=null},a))},[e,a]),d=(0,n.useCallback)(e=>{if(!o.current||!l.current)return;let t=e.touches[0];if(!t)return;let a=Math.abs(t.clientX-o.current.x),n=Math.abs(t.clientY-o.current.y);(a>r||n>r)&&i()},[r,i]);return{onTouchStart:s,onTouchEnd:(0,n.useCallback)(()=>{i()},[i]),onTouchMove:d,onContextMenu:(0,n.useCallback)(t=>{t.preventDefault(),e()},[e])}}(p),x=(0,l.t)(t,1920);return(0,r.jsxs)("div",{className:"cursor-zoom-in overflow-hidden rounded-lg bg-gray-100 ".concat(null!=o?o:""),"data-interactive":!0,role:"button",tabIndex:0,"aria-label":"Open image",onClick:p,onKeyDown:e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),p())},...g,children:[(0,r.jsx)("img",{src:(0,l.t)(t,640),srcSet:"".concat((0,l.t)(t,320)," 320w, ").concat((0,l.t)(t,640)," 640w, ").concat((0,l.t)(t,960)," 960w"),sizes:"(max-width: 640px) 100vw, 640px",alt:a,loading:d?"eager":"lazy",fetchPriority:d?"high":"auto",...c&&u?{width:c,height:u}:{},className:"h-auto max-h-[80vh] w-full object-contain","data-testid":i}),(0,r.jsx)(s,{src:x,alt:a,isOpen:m,onClose:h})]})}},54488:(e,t,a)=>{a.d(t,{a:()=>r});function r(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch(t){return e}}},56591:(e,t,a)=>{function r(e){let t=Math.floor((Date.now()-new Date(e).getTime())/1e3);if(t<60)return"just now";let a=Math.floor(t/60);if(a<60)return"".concat(a,"m ago");let r=Math.floor(a/60);if(r<24)return"".concat(r,"h ago");let n=Math.floor(r/24);if(n<30)return"".concat(n,"d ago");let l=Math.floor(n/30);return l<12?"".concat(l,"mo ago"):"".concat(Math.floor(l/12),"y ago")}function n(e){let t=Date.now(),a=new Date(e).getTime()-t;if(a<=0)return"";let r=Math.floor(a/6e4);if(r<60)return 1===r?"in 1 minute":"in ".concat(r," minutes");let n=Math.floor(r/60);if(n<24)return 1===n?"in 1 hour":"in ".concat(n," hours");let l=Math.floor(n/24);if(1===l)return"Tomorrow";if(l<7)return"in ".concat(l," days");if(l<60){let e=Math.floor(l/7);return 1===e?"in 1 week":"in ".concat(e," weeks")}let o=Math.floor(l/30);return 1===o?"in 1 month":"in ".concat(o," months")}a.d(t,{K:()=>r,x:()=>n})},56764:(e,t,a)=>{a.d(t,{F:()=>o});var r=a(41865),n=a(44996),l=a(43431);function o(){let{state:e,loading:t}=(0,n.useAuth)(),{requireVerified:a}=(0,n.useAuthModal)(),o=(0,r.useCallback)(r=>!!t||"verified"===e||((0,l.lM)({kind:r.kind,refId:r.refId}),a(),!1),[e,t,a]);return(0,r.useMemo)(()=>({requireUpgrade:o}),[o])}},56921:(e,t,a)=>{a.d(t,{Qg:()=>l,Te:()=>n});var r=a(49379);function n(e,t){return r.oR.success(e,t)}function l(e,t){return r.oR.error(e,t)}},68737:(e,t,a)=>{a.d(t,{R:()=>n});var r=a(82142);function n(e){return e?e.imageKey?(0,r.B)(e.imageKey,600,315,"webp"):e.image?e.image:null:null}},80149:(e,t,a)=>{a.d(t,{z:()=>n});var r=a(72331);function n(e){var t,a,n,l;if(e.videoData)return e.videoData;if("link"!==e.postMode)return null;let o=null==(t=e.linkData)?void 0:t.url;return o?(0,r.extractVideoData)(o,null!=(l=null==(a=e.ogPreview)?void 0:a.image)?l:null,null==(n=e.ogPreview)?void 0:n.mediaType):null}},81954:(e,t,a)=>{a.d(t,{E:()=>l});var r=a(84157),n=a(47104);function l(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"skeleton",className:(0,n.cn)("bg-accent animate-pulse motion-reduce:animate-none rounded-md",t),...a})}},82142:(e,t,a)=>{function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"webp";if(e.startsWith("http")||e.startsWith("/"))return e;let n="https://img.ecomitram.org",l="ecomitram-v3";if(!n||!l){let t="https://cdn.ecomitram.org";return t?"".concat(t,"/").concat(e):""}let o="s3://".concat(l,"/").concat(e);return"".concat(n,"/insecure/rs:fit:").concat(t,":").concat(a,"/plain/").concat(encodeURIComponent(o),"@").concat(r)}function n(e,t){if(e.startsWith("http"))return e;let a="https://img.ecomitram.org",r="ecomitram-v3";if(!a||!r){let t="https://cdn.ecomitram.org";return t?"".concat(t,"/").concat(e):"https://ecomitram-v3.blr1.digitaloceanspaces.com/".concat(e)}let n="s3://".concat(r,"/").concat(e);return"".concat(a,"/insecure/rs:fit:").concat(t,":0/plain/").concat(encodeURIComponent(n),"@webp")}a.d(t,{B:()=>r,t:()=>n})},86558:(e,t,a)=>{a.d(t,{E:()=>i});var r=a(84157);a(41865);var n=a(54572),l=a(47104);let o=(0,n.F)("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[11px] font-semibold leading-tight whitespace-nowrap",{variants:{tone:{"solid-success":"bg-success text-[var(--color-success-foreground)]","solid-warning":"bg-warning text-[var(--color-warning-foreground)]","solid-danger":"bg-destructive text-[var(--color-destructive-foreground)]","solid-info":"bg-info text-[var(--color-info-foreground)]","solid-vana":"bg-primary text-primary-foreground","solid-haldi":"bg-accent text-accent-foreground","solid-muted":"bg-muted text-muted-foreground","soft-success":"bg-success-soft text-success","soft-warning":"bg-warning-soft text-warning","soft-danger":"bg-destructive-soft text-destructive","soft-info":"bg-info-soft text-info","soft-vana":"bg-primary-soft text-primary","soft-muted":"bg-muted text-muted-foreground"}}
1,defaultVariants:{tone:"soft-muted"}});function i(e){let{className:t,tone:a,...n}=e;return(0,r.jsx)("span",{"data-slot":"pwa-badge",className:(0,l.cn)(o({tone:a,className:t})),...n})}},87948:(e,t,a)=>{a.d(t,{SQ:()=>s,_2:()=>d,lp:()=>c,mB:()=>u,rI:()=>o,ty:()=>i});var r=a(84157);a(41865);var n=a(71519),l=a(47104);function o(e){let{...t}=e;return(0,r.jsx)(n.bL,{"data-slot":"dropdown-menu",...t})}function i(e){let{...t}=e;return(0,r.jsx)(n.l9,{"data-slot":"dropdown-menu-trigger",...t})}function s(e){let{className:t,sideOffset:a=4,...o}=e;return(0,r.jsx)(n.ZL,{children:(0,r.jsx)(n.UC,{"data-slot":"dropdown-menu-content",sideOffset:a,className:(0,l.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...o})})}function d(e){let{className:t,inset:a,variant:o="default",...i}=e;return(0,r.jsx)(n.q7,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":o,className:(0,l.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...i})}function c(e){let{className:t,inset:a,...o}=e;return(0,r.jsx)(n.JU,{"data-slot":"dropdown-menu-label","data-inset":a,className:(0,l.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...o})}function u(e){let{className:t,...a}=e;return(0,r.jsx)(n.wv,{"data-slot":"dropdown-menu-separator",className:(0,l.cn)("bg-border -mx-1 my-1 h-px",t),...a})}},88817:(e,t,a)=>{a.d(t,{w:()=>n});var r=a(84157);function n(e){let{trustLevel:t,isModerator:a}=e;return"admin"===t||a?(0,r.jsxs)("span",{className:"inline-flex items-center gap-0.5 rounded-full bg-amber-100 px-2 py-0.5 text-xs font-medium text-amber-800","data-testid":"trust-badge","aria-label":"Moderator",children:[(0,r.jsx)("svg",{className:"h-3 w-3",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M10 1a2 2 0 00-2 2v1.5a2 2 0 01-.586 1.414l-1.828 1.828A2 2 0 005 9.172V10a5 5 0 1010 0v-.828a2 2 0 00-.586-1.414l-1.828-1.828A2 2 0 0112 4.516V3a2 2 0 00-2-2z",clipRule:"evenodd"})}),"Moderator"]}):t&&"untrusted"!==t&&"trusted"===t?(0,r.jsxs)("span",{className:"inline-flex items-center gap-0.5 rounded-full bg-green-100 px-2 py-0.5 text-xs font-medium text-green-800","data-testid":"trust-badge","aria-label":"Verified user",children:[(0,r.jsx)("svg",{className:"h-3 w-3",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),"Verified"]}):null}},94385:(e,t,a)=>{a.d(t,{C:()=>i});var r=a(84157),n=a(6724),l=a(45863),o=a(41865);function i(e){let{active:t,count:a,onClick:i,disabled:s=!1,...d}=e,[c,u]=(0,o.useState)(0);return s?(0,r.jsxs)("span",{className:"flex min-h-[44px] items-center gap-1.5 px-2 text-muted-foreground",title:"You can't cheer your own post",...d,children:[(0,r.jsx)(n.A,{className:"size-4","aria-hidden":"true"}),a>0?a:"Cheers"]}):(0,r.jsxs)("button",{onClick:()=>{t||u(e=>e+1),i()},className:"relative flex min-h-[44px] items-center gap-1.5 px-2 ".concat(t?"font-medium text-primary":"hover:text-primary"),"aria-label":t?"Remove cheer":"Cheer","aria-pressed":t,...d,children:[(0,r.jsxs)("span",{className:"relative inline-flex",children:[(0,r.jsx)(n.A,{className:"size-4 ".concat(c>0?"motion-safe:animate-cheer-pop":""),"aria-hidden":"true"},c),c>0&&(0,r.jsx)(l.A,{className:"pointer-events-none absolute -top-1 left-1/2 size-3.5 -translate-x-1/2 text-primary opacity-0 motion-safe:animate-cheer-float","aria-hidden":"true"},"leaf-".concat(c))]}),a>0?a:"Cheer"]})}},97670:(e,t,a)=>{a.d(t,{x:()=>l});var r=a(84157),n=a(54488);function l(e){let{url:t}=e,a=(0,n.a)(t);return(0,r.jsxs)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"block rounded-lg border bg-gray-50 p-3 hover:bg-gray-100 transition-colors","data-testid":"link-fallback-card",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium text-gray-700",children:[(0,r.jsx)("span",{"aria-hidden":"true",children:"\uD83D\uDD17"}),(0,r.jsx)("span",{className:"truncate",children:a})]}),(0,r.jsx)("div",{className:"mt-1 text-xs text-gray-500 break-all line-clamp-2",children:t}),(0,r.jsx)("div",{className:"mt-1 text-[11px] text-gray-400 italic",children:"Preview unavailable"})]})}}}]);

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.