PageSourceSearch

https://youthfireit.com/assets/MarketingLayout-BLN0ZMvC.js

js youthfireit.com collected 2026-10-05 02:40:07 UTC 19,159 bytes, 1 lines download raw bytes

1import{_ as B}from"./pdf-BQaX5Z90.js";import{j as e}from"./radix-C7m_p3hd.js";import{a as x,F as D,a1 as C,J as I,b$ as R,c6 as Y,c7 as $,al as q,c8 as Q,c9 as U,ca as V,P as G,ao as X,p as E,X as O,bw as z,c0 as J,s as K,aS as Z}from"./icons-Byb5nA6I.js";import{f as v,Z as S,h as T,b as w,k as _,dG as M,dH as ee,L as l,d as F,cR as te,i as re,dI as se,u as ae}from"./index-QwT9_GrP.js";import{B as b}from"./button-aZOsfQvV.js";import{S as W,a as ne,b as H,d as P,c as oe}from"./sheet-CqEFehDD.js";import{h as le}from"./use-haptic-D9-71G6K.js";function ie(){const{lang:n,toggle:i,t}=v(),[d,o]=x.useState(!1),[c,m]=x.useState(!1),u=S(r=>r.items.reduce((g,y)=>g+y.qty,0)),h=S(r=>r.setOpen),s=T(),j=w(),{data:f=[]}=_(M("header")),k=(f.length>0?f:ee).filter(r=>!r.parent_id),p=s.brand_name||"YouthFireIT",N=p.length>5?p.slice(0,p.length-2):p,a=p.length>5?p.slice(-2):"";return x.useEffect(()=>{const r=()=>m(window.scrollY>80);return window.addEventListener("scroll",r,{passive:!0}),()=>window.removeEventListener("scroll",r)},[]),e.jsx("header",{className:F("sticky top-0 z-50 w-full border-b backdrop-blur-xl transition-all duration-300 ease-out",c?"border-border/60 bg-background/85 shadow-[0_4px_20px_-8px_rgb(11_37_69/0.08)] supports-[backdrop-filter]:bg-background/65":"border-transparent bg-background/40 md:bg-transparent supports-[backdrop-filter]:bg-background/25 md:supports-[backdrop-filter]:bg-transparent"),style:{paddingTop:"env(safe-area-inset-top)"},children:e.jsxs("div",{className:"container mx-auto flex h-14 max-w-7xl items-center justify-between px-4 md:h-[72px]",children:[e.jsxs(l,{to:"/",className:"group flex items-center gap-2.5 font-bold text-base md:text-lg",children:[s.logo_url?e.jsx("img",{src:s.logo_url,alt:p,width:44,height:44,decoding:"async",fetchPriority:"high",className:"h-9 w-9 rounded-xl object-contain transition-transform group-hover:scale-105 md:h-11 md:w-11"}):e.jsx("span",{className:"grid h-9 w-9 place-items-center rounded-xl bg-gradient-fire text-primary-foreground shadow-[var(--shadow-glow-primary)] ring-2 ring-primary/15 transition-transform duration-300 group-hover:scale-105 group-hover:rotate-3 md:h-11 md:w-11",children:e.jsx(D,{className:"h-4 w-4 md:h-5 md:w-5",strokeWidth:2.2})}),e.jsxs("span",{className:"tracking-tight",children:[N,a&&e.jsx("span",{className:"text-primary-strong",children:a})]})]}),e.jsx("nav",{className:"hidden items-center gap-1 lg:flex",children:k.map(r=>{const g=n==="bn"&&r.label_bn?r.label_bn:r.label_en;return r.external?e.jsx("a",{href:r.path,target:"_blank",rel:"noreferrer",className:"nav-link-premium rounded-pill px-3.5 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground",children:g},r.id):e.jsx(l,{to:r.path,className:"nav-link-premium rounded-pill px-3.5 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground",activeProps:{className:"text-foreground","data-status":"active"},children:g},r.id)})}),e.jsxs("div",{className:"flex items-center gap-2",children:[j.bangla&&e.jsxs("button",{type:"button",onClick:i,className:F("hidden h-9 items-center rounded-pill border border-border/60 px-2.5 text-xs font-semibold text-muted-foreground transition-colors hover:bg-muted hover:text-foreground sm:flex"),"aria-label":"Toggle language",children:[n==="en"?"EN":"BN"," ",e.jsx("span",{className:"mx-1.5 text-border",children:"/"}),e.jsx("span",{className:"opacity-50",children:n==="en"?"BN":"EN"})]}),j.cart&&e.jsxs("button",{type:"button",onClick:()=>h(!0),className:"relative grid h-9 w-9 place-items-center rounded-pill text-muted-foreground transition-colors hover:bg-muted hover:text-foreground","aria-label":"Open cart",children:[e.jsx(C,{className:"h-5 w-5"}),u>0&&e.jsx("span",{className:"absolute -right-1 -top-1 grid h-4 min-w-4 place-items-center rounded-full bg-gradient-fire px-1 text-[10px] font-bold text-primary-foreground",children:u})]}),s.whatsapp_number&&e.jsxs("a",{href:`https://wa.me/${s.whatsapp_number.replace(/[^\d]/g,"")}?text=${encodeURIComponent("Hi, I'm interested in learning how YouthFireIT can help my business. Can we schedule a call?")}`,target:"_blank",rel:"noreferrer","aria-label":"Chat on WhatsApp",t
1itle:"Chat on WhatsApp",className:"hidden h-9 items-center gap-1.5 rounded-pill border border-secondary/30 bg-secondary/10 px-2.5 text-xs font-semibold text-secondary transition-colors hover:bg-secondary hover:text-secondary-foreground sm:inline-flex",children:[e.jsx(I,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden md:inline",children:"WhatsApp"})]}),e.jsx(b,{asChild:!0,variant:"ghost",size:"sm",className:"hidden rounded-pill text-muted-foreground hover:text-foreground md:inline-flex",children:e.jsx(l,{to:"/login",children:t("nav.signIn")})}),e.jsx(b,{asChild:!0,size:"sm",className:"shimmer-sweep hidden rounded-pill bg-gradient-fire text-primary-foreground shadow-[var(--shadow-glow-primary)] transition-transform hover:scale-[1.03] md:inline-flex",children:e.jsx(l,{to:"/book",children:t("nav.bookCall")})}),e.jsxs(W,{open:d,onOpenChange:o,children:[e.jsx(ne,{asChild:!0,children:e.jsx(b,{variant:"ghost",size:"icon",className:"lg:hidden","aria-label":t("nav.menu"),children:e.jsx(R,{className:"h-5 w-5","aria-hidden":"true"})})}),e.jsxs(H,{side:"right",className:"w-72",children:[e.jsx(P,{className:"text-base",children:t("nav.menu")}),e.jsxs("nav",{className:"mt-6 flex flex-col gap-1",children:[k.map(r=>{const g=n==="bn"&&r.label_bn?r.label_bn:r.label_en;return r.external?e.jsx("a",{href:r.path,target:"_blank",rel:"noreferrer",onClick:()=>o(!1),className:"rounded-xl px-3 py-2 text-sm font-medium text-muted-foreground hover:bg-muted hover:text-foreground",children:g},r.id):e.jsx(l,{to:r.path,onClick:()=>o(!1),className:"rounded-xl px-3 py-2 text-sm font-medium text-muted-foreground hover:bg-muted hover:text-foreground",children:g},r.id)}),e.jsxs("div",{className:"mt-4 flex flex-col gap-2 border-t border-border pt-4",children:[e.jsx(b,{asChild:!0,variant:"outline",size:"sm",className:"rounded-pill",children:e.jsx(l,{to:"/login",children:t("nav.signIn")})}),e.jsx(b,{asChild:!0,size:"sm",className:"rounded-pill bg-primary text-primary-foreground",children:e.jsx(l,{to:"/book",children:t("nav.bookCall")})})]})]})]})]})]})]})})}const A={facebook:U,instagram:Q,linkedin:q,x:$,youtube:Y,whatsapp:I};function de(){const{t:n,lang:i}=v(),t=T(),{data:d=[]}=_(M("footer")),o=t.brand_name||"YouthFireIT",c=o.length>5?o.slice(0,o.length-2):o,m=o.length>5?o.slice(-2):"",u=i==="bn"?t.footer_tagline_bn:t.footer_tagline_en,h=i==="bn"?t.footer_copy_bn:t.footer_copy_en,s=(a,r)=>i==="bn"&&r?r:a,f=((a,r)=>(i==="bn"?r||a:a||r)||"")(t.contact_address_en,t.contact_address_bn),p=d.filter(a=>!a.parent_id).map(a=>({id:a.id,title:s(a.label_en,a.label_bn),links:d.filter(r=>r.parent_id===a.id).map(r=>({id:r.id,label:s(r.label_en,r.label_bn),path:r.path,external:r.external}))})),N=Object.keys(A).map(a=>({key:a,url:t.socials?.[a],Icon:A[a]})).filter(a=>!!a.url);return e.jsxs("footer",{className:"relative overflow-hidden bg-ink text-ink-foreground",children:[e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 bg-aurora-dark opacity-50"}),e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute -left-32 top-0 h-[400px] w-[400px] rounded-full opacity-25 blur-3xl",style:{background:"radial-gradient(circle, oklch(0.69 0.175 50 / 0.5) 0%, transparent 70%)"}}),e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute -right-40 bottom-0 h-[400px] w-[400px] rounded-full opacity-20 blur-3xl",style:{background:"radial-gradient(circle, oklch(0.65 0.11 185 / 0.5) 0%, transparent 70%)"}}),e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 h-px divider-iridescent"}),e.jsxs("div",{className:"container relative mx-auto max-w-7xl px-4 py-20",children:[e.jsxs("div",{className:"grid gap-12 md:grid-cols-4",children:[e.jsxs("div",{className:"space-y-5",children:[e.jsxs(l,{to:"/",className:"group flex items-center gap-2 text-lg font-bold text-ink-foreground",children:[t.logo_url?e.jsx("img",{src:t.logo_url,alt:o,width:44,height:44,loading:"lazy",decoding:"async",className:"h-11 w-11 rounded-xl object-contain transition-transform group-hover:scale-105"}):e.jsx("span",{className:"grid h-11 w-11 place-items-center rounded-xl bg-gradient-fire text-primary-foreground shadow-[var(--shadow-glow-primary)] ring-2 ring-primary/20 transition-transform duration-300 group-hover:scale-105 group-hover:rotate-3",children:e.jsx(D,{className:"h-5 w-5",strokeWidth:2.2})}),c,m&&e.jsx("span",{className:"-ml-2 text-primary-strong",children:m})]}),e.jsx("p",{className:"max-w-xs text-sm leading-relaxed text-ink-foreground
1/80",children:u}),N.length>0&&e.jsx("div",{className:"flex gap-2 pt-2",children:N.map(({key:a,url:r,Icon:g})=>{const y=a==="x"?"X (Twitter)":a.charAt(0).toUpperCase()+a.slice(1);return e.jsx("a",{href:r,target:"_blank",rel:"noreferrer","aria-label":`Visit our ${y} page`,title:y,className:"group/social grid h-10 w-10 place-items-center rounded-full border border-ink-foreground/10 bg-ink-foreground/5 text-ink-foreground/60 backdrop-blur-sm transition-all duration-300 hover:-translate-y-0.5 hover:border-primary/40 hover:bg-gradient-fire hover:text-primary-foreground hover:shadow-[var(--shadow-glow-primary)]",children:e.jsx(g,{className:"h-4 w-4","aria-hidden":"true"})},a)})}),t.support_email&&e.jsx("p",{className:"text-xs text-ink-foreground/75",children:e.jsx("a",{href:`mailto:${t.support_email}`,className:"hover:text-primary-strong transition-colors",children:t.support_email})}),f&&e.jsx("p",{className:"whitespace-pre-line text-xs text-ink-foreground/75",children:f})]}),p.map(a=>e.jsxs("div",{children:[e.jsx("h2",{className:"mb-5 text-xs font-semibold uppercase tracking-[0.18em] text-ink-foreground/80",children:a.title}),e.jsx("ul",{className:"space-y-3",children:a.links.map(r=>e.jsx("li",{children:r.external?e.jsx("a",{href:r.path,target:"_blank",rel:"noreferrer",className:"group/link inline-flex items-center gap-1 text-sm text-ink-foreground/80 transition-all hover:text-primary-strong",children:e.jsx("span",{className:"border-b border-transparent transition-colors group-hover/link:border-primary/40",children:r.label})}):e.jsx(l,{to:r.path,className:"group/link inline-flex items-center gap-1 text-sm text-ink-foreground/80 transition-all hover:text-primary-strong",children:e.jsx("span",{className:"border-b border-transparent transition-colors group-hover/link:border-primary/40",children:r.label})})},r.id))})]},a.id))]}),e.jsxs("div",{className:"mt-16 flex flex-col gap-4 border-t border-ink-foreground/10 pt-8 text-xs text-ink-foreground/75 md:flex-row md:items-center md:justify-between",children:[e.jsx("p",{children:h}),e.jsxs("div",{className:"flex gap-6",children:[e.jsx(l,{to:"/legal/privacy",className:"transition-colors hover:text-primary-strong",children:n("footer.privacy")}),e.jsx(l,{to:"/legal/terms",className:"transition-colors hover:text-primary-strong",children:n("footer.terms")}),e.jsx(l,{to:"/legal/refund",className:"transition-colors hover:text-primary-strong",children:n("footer.refund")})]})]})]})]})}function ce(){const{items:n,open:i,setOpen:t,remove:d,increment:o,decrement:c,totalPrice:m}=S(),{lang:u}=v(),{data:h=[]}=_(te("cart"));return e.jsx(W,{open:i,onOpenChange:t,children:e.jsxs(H,{side:"right",className:"flex w-full flex-col sm:max-w-md",children:[e.jsx(oe,{children:e.jsxs(P,{className:"flex items-center gap-2",children:[e.jsx(C,{className:"h-5 w-5"})," Your cart"]})}),n.length===0?e.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center text-center",children:[e.jsx("div",{className:"grid h-14 w-14 place-items-center rounded-full bg-muted text-muted-foreground",children:e.jsx(C,{className:"h-7 w-7"})}),e.jsx("p",{className:"mt-4 font-medium",children:"Your cart is empty"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Browse the marketplace to add tools."}),e.jsx(b,{asChild:!0,className:"mt-6",onClick:()=>t(!1),children:e.jsx(l,{to:"/tools",children:"Browse tools"})})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex-1 overflow-y-auto py-4",children:e.jsx("ul",{className:"space-y-3",children:n.map(s=>e.jsxs("li",{className:"flex items-center gap-3 rounded-2xl border border-border/60 bg-card p-3",children:[e.jsx("div",{className:"grid h-12 w-12 place-items-center rounded-lg bg-muted text-2xl",children:s.emoji}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"truncate text-sm font-medium",children:s.name}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s.price===0?"Free":`BDT ${s.price.toLocaleString()}`}),e.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5",children:[e.jsx("button",{type:"button",onClick:()=>c(s.slug),className:"grid h-6 w-6 place-items-center rounded-md border border-border text-muted-foreground hover:bg-muted hover:text-foreground","aria-label":"Decrease quantity",children:e.jsx(V,{className:"h-3 w-3"})}),e.jsx("span",{className:"min-w-[1.5rem] text-center text-xs font-medium",children:s.qty}),e.jsx("button",{type:"button",onClick:()=>o(s.slug),className:"grid h-6 w-6 place-items-center rounded-md border border-border text-muted-foreground hover:bg-muted hover:text-foreground","aria-label":"Increase quantity",children:e.jsx(G,{className:"h-3 w-3"})})]})]}),e.jsx("button",{type:"button",onClick:()=>d(s.slug),className:"grid h-8 w-8 place-items-center rounded-md text-muted-foreground hover:bg-muted hover:text-destructive","aria-label":"Remove",children:e.jsx(X,{className:"h-4 w-4"})})]},s.slug))})}),e.jsxs("div",{className:"border-t border-border pt-4",children:[e.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[e.jsx("span",{children:"Subtotal"}),e.jsx("span",{className:"text-base font-semibold text-foreground",children:m()===0?"Free":`BDT ${m().toLocaleStr
1ing()}`})]}),e.jsx(b,{asChild:!0,size:"lg",className:"mt-4 w-full bg-primary hover:bg-primary/90",onClick:()=>t(!1),children:e.jsx(l,{to:"/checkout",children:"Checkout"})}),e.jsx("div",{className:"mt-3 flex flex-wrap items-center justify-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:h.length>0?h.map(s=>{const j=re(s.icon)??E,f=u==="bn"?s.text_bn||s.text_en:s.text_en||s.text_bn;return e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(j,{className:"h-3 w-3"})," ",f]},s.id)}):e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(E,{className:"h-3 w-3"})," Secure checkout"]})}),e.jsxs("button",{type:"button",onClick:()=>t(!1),className:"mt-2 flex w-full items-center justify-center gap-1 text-xs text-muted-foreground hover:text-foreground",children:[e.jsx(O,{className:"h-3 w-3"})," Continue browsing"]})]})]})]})})}const L="yfit-announcement-dismissed";function me(){const n=w(),{lang:i}=v(),{data:t}=_(se()),[d,o]=x.useState(!1);if(x.useEffect(()=>{typeof window>"u"||o(window.localStorage.getItem(L)===(t?.message_en??""))},[t?.message_en]),!n.announcement||!t||!t.visible)return null;const c=Date.now();if(t.starts_at&&new Date(t.starts_at).getTime()>c||t.ends_at&&new Date(t.ends_at).getTime()<c)return null;const m=i==="bn",u=m?t.message_bn||t.message_en:t.message_en||t.message_bn,h=m?t.link_label_bn||t.link_label_en:t.link_label_en||t.link_label_bn;if(!u||d&&t.dismissible)return null;const s=t.bg_color&&t.bg_color.trim();return e.jsx("div",{className:s?"text-primary-foreground":"bg-gradient-fire text-primary-foreground",style:s?{background:s}:void 0,children:e.jsxs("div",{className:"container mx-auto flex items-center justify-center gap-3 px-4 py-2 text-sm",children:[e.jsx("span",{className:"text-balance",children:u}),t.link_href&&h&&e.jsxs(l,{to:t.link_href,className:"font-semibold underline underline-offset-2 hover:opacity-90",children:[h," →"]}),t.dismissible&&e.jsx("button",{"aria-label":"Dismiss announcement",className:"ml-2 rounded p-1 hover:bg-white/20",onClick:()=>{try{window.localStorage.setItem(L,t.message_en)}catch{}o(!0)},children:e.jsx(O,{className:"h-3.5 w-3.5"})})]})})}function xe({children:n}){const i=w(),t=T(),{lang:d}=v(),{hasRole:o}=ae();if(!i.maintenance||o("admin"))return e.jsx(e.Fragment,{children:n});const c=d==="bn"?t.maintenance_message_bn:t.maintenance_message_en;return e.jsx("div",{className:"grid min-h-screen place-items-center bg-background px-6",children:e.jsxs("div",{className:"max-w-md text-center",children:[e.jsx("div",{className:"mx-auto mb-6 grid h-14 w-14 place-items-center rounded-full bg-primary/10 text-primary-strong",children:e.jsx(z,{className:"h-6 w-6","aria-hidden":!0})}),e.jsx("h1",{className:"text-2xl font-bold tracking-tight text-foreground",children:t.brand_name}),e.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:c}),t.support_email&&e.jsx("p",{className:"mt-6 text-xs text-muted-foreground",children:e.jsx("a",{className:"underline",href:`mailto:${t.support_email}`,children:t.support_email})})]})})}const ue=[{to:"/",label:"Home",icon:J,exact:!0},{to:"/services",label:"Services",icon:K,exact:!1},{to:"/tools",label:"Tools",icon:z,exact:!1},{to:"/contact",label:"Contact",icon:I,exact:!1},{to:"/login",label:"Account",icon:Z,exact:!1}];function he(){return e.jsx("nav",{"aria-label":"Site navigation",className:"fixed inset-x-0 bottom-0 z-40 grid grid-cols-5 border-t border-border/60 bg-background/85 backdrop-blur-xl supports-[backdrop-filter]:bg-background/70 md:hidden print:hidden",style:{paddingBottom:"env(safe-area-inset-bottom)"},children:ue.map(n=>e.jsxs(l,{to:n.to,activeOptions:{exact:n.exact},activeProps:{"data-active":"true"},onClick:()=>le.tap(),className:"group relative flex h-16 min-w-[44px] flex-col items-center justify-center gap-0.5 px-2 text-[11px] font-medium text-muted-foreground transition active:scale-[0.92] data-[active=true]:text-primary-strong",children:[e.jsx("span",{className:"absolute top-1 h-1 w-1 rounded-full bg-transparent group-data-[active=true]:bg-primary"}),e.jsx(n.icon,{className:"h-[22px] w-[22px] transition-transform group-data-[active=true]:scale-110",strokeWidth:2}),e.jsx("span",{className:"leading-none",children:n.label})]},n.to))})}const pe=x.lazy(()=>B(()=>import("./ChatWidget-i7lCcJtH.js"),[]).then(n=>({default:n.ChatWidget}))),ge=x.lazy(()=>B(()=>import("./ExitIntentModal-Lz9XHbZm.js"),[]).then(n=>({default:n.ExitIntentModal})));function _e({children:n}){const i=w(),[t,d]=x.useState(!1);return x.useEffect(()=>{const o=requestAnimationFrame(()=>d(!0));return()=>cancelAnimationFrame(o)},[]),e.jsx(xe,{children:e.jsxs("div",{className:"flex min-h-screen flex-col bg-background",children:[e.jsx("a",{href:"#main",className:"sr-only focu
1s:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-[100] focus:rounded-md focus:bg-primary focus:px-4 focus:py-2 focus:text-primary-foreground",children:"Skip to content"}),e.jsx(me,{}),e.jsx(ie,{}),e.jsx("main",{id:"main",className:"flex-1 pb-16 md:pb-0",children:n}),e.jsx(de,{}),t&&e.jsxs(x.Suspense,{fallback:null,children:[i.cart&&e.jsx(ce,{}),i.chatWidget&&e.jsx(pe,{}),e.jsx(ge,{})]}),e.jsx(he,{})]})})}export{_e as M};

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.