PageSourceSearch

https://myflyers.ai/_next/static/chunks/223-9404e64a28600fe1.js

js myflyers.ai collected 2026-10-05 15:14:50 UTC 16,573 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[223],{13901:(e,n,r)=>{r.d(n,{S:()=>a});var t=r(12147),i=r(36399);function a(e){let{variant:n="default",size:r=24,onDark:a=!1}=e,l=(0,t.jsxs)("span",{className:"wordmark",style:{fontSize:r,...a?{"--wordmark-my":"rgba(255,255,255,0.55)","--wordmark-flyers":"#FFFFFF"}:{}},children:[(0,t.jsx)("span",{className:"my",style:a?{color:"rgba(255,255,255,0.55)"}:void 0,children:"my"}),(0,t.jsx)("span",{className:"flyers",style:a?{color:"#FFFFFF"}:void 0,children:"flyers"}),(0,t.jsx)("span",{className:"dotai",children:".ai"})]});return"lola-inline"===n?(0,t.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:14},children:[l,(0,t.jsx)("span",{"aria-hidden":!0,style:{height:Math.max(14,.7*r),width:1,background:"var(--rule)",opacity:.6}}),(0,t.jsxs)("span",{className:"lola-lockup",style:{fontSize:Math.max(10,.42*r)},children:[(0,t.jsx)("span",{children:"POWERED BY"}),(0,t.jsx)(i._,{size:Math.max(12,.55*r)}),(0,t.jsx)("span",{className:"lola-name",style:{fontSize:Math.max(13,.6*r)},children:"Lola"})]})]}):"lola-stacked"===n?(0,t.jsxs)("span",{style:{display:"inline-flex",flexDirection:"column",gap:6,alignItems:"flex-start"},children:[l,(0,t.jsxs)("span",{className:"lola-lockup",style:{fontSize:Math.max(9,.36*r)},children:[(0,t.jsx)("span",{children:"POWERED BY"}),(0,t.jsx)(i._,{size:Math.max(10,.45*r)}),(0,t.jsx)("span",{className:"lola-name",style:{fontSize:Math.max(12,.5*r)},children:"Lola"})]})]}):l}},36399:(e,n,r)=>{r.d(n,{_:()=>a});var t=r(12147);let i=!1;function a(e){let{size:n=14,animated:r=!0,thinking:a=!1}=e;return!function(){if(i||"undefined"==typeof document)return;if(document.getElementById("lola-orb-styles")){i=!0;return}let e=document.createElement("style");e.id="lola-orb-styles",e.textContent="\n@keyframes lola-morph {\n  0%   { border-radius: 50%; transform: scale(1) rotate(0deg); filter: brightness(1); box-shadow: 0 0 12px rgba(123,97,255,0.5), inset -2px -3px 6px rgba(0,0,0,0.20), inset 2px 2px 4px rgba(255,255,255,0.30); }\n  20%  { border-radius: 56% 44% 60% 40% / 50% 60% 40% 50%; transform: scale(1.06) rotate(8deg);  filter: brightness(1.18); box-shadow: 0 0 22px rgba(157,135,255,0.75), inset -2px -3px 6px rgba(0,0,0,0.20), inset 2px 2px 4px rgba(255,255,255,0.40); }\n  40%  { border-radius: 42% 58% 38% 62% / 55% 42% 58% 45%; transform: scale(1.02) rotate(-4deg); filter: brightness(1.08); box-shadow: 0 0 16px rgba(123,97,255,0.6),  inset -2px -3px 6px rgba(0,0,0,0.20), inset 2px 2px 4px rgba(255,255,255,0.30); }\n  60%  { border-radius: 60% 40% 55% 45% / 45% 55% 50% 50%; transform: scale(0.97) rotate(6deg);  filter: brightness(1.14); box-shadow: 0 0 20px rgba(157,135,255,0.7),  inset -2px -3px 6px rgba(0,0,0,0.20), inset 2px 2px 4px rgba(255,255,255,0.35); }\n  80%  { border-radius: 48% 52% 62% 38% / 60% 45% 55% 40%; transform: scale(1.04) rotate(-2deg); filter: brightness(1.12); box-shadow: 0 0 18px rgba(123,97,255,0.65), inset -2px -3px 6px rgba(0,0,0,0.20), inset 2px 2px 4px rgba(255,255,255,0.32); }\n  100% { border-radius: 50%; transform: scale(1) rotate(0deg); filter: brightness(1); box-shadow: 0 0 12px rgba(123,97,255,0.5), inset -2px -3px 6px rgba(0,0,0,0.20), inset 2px 2px 4px rgba(255,255,255,0.30); }\n}\n@keyframes lola-breathe {\n  0%, 100% { opacity: 0.85; }\n  50%      { opacity: 1; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .lola-orb-thinking { animation: lola-breathe 2.4s ease-in-out infinite !important; }\n}\n",document.head.appendChild(e),i=!0}(),(0,t.jsx)("span",{className:a?"lola-orb-thinking":void 0,style:{display:"inline-block",width:n,height:n,borderRadius:"50%",background:"radial-gradient(circle at 35% 30%, #C8B9FF 0%, #9D87FF 35%, #6B4FE5 75%, #4A33B8 100%)",boxShadow:"0 0 12px rgba(123,97,255,0.5), inset -2px -3px 6px rgba(0,0,0,0.20), inset 2px 2px 4px rgba(255,255,255,0.30)",animation:a?"lola-morph 2.4s ease-in-out infinite":r?"lola-float 3.5s ease-in-out infinite":void 0,flexShrink:0,willChange:a?"border-radius, transform, filter, box-shadow":void 0}})}},39687:(e,n,r)=>{r.d(n,{l:()=>d});var t=r(79603),i=r(99856),a=r(94848);let l=null,s=null;async function o(e){return l&&l.uid===e?l.role:s||(s=(async()=>{try{var n;
1let r=await (0,a.VM)(e),t=null!=(n=null==r?void 0:r.role)?n:null;return l={uid:e,role:t},t}catch(e){return null}finally{s=null}})())}function d(){var e;let{user:n}=(0,i.iZ)(),[r,a]=(0,t.useState)(null!=(e=null==l?void 0:l.role)?e:null);return(0,t.useEffect)(()=>{if(!n)return void a(null);let e=!1;return o(n.uid).then(n=>{e||a(n)}),()=>{e=!0}},[n]),r}},84202:(e,n,r)=>{r.d(n,{K:()=>l});var t=r(40457),i=r(52738),a=r(98827);async function l(e){var n,r,l;if(await (0,a.Z)(e,"myflyers"))return{isAdmin:!0,source:"grant"};let{db:s}=(0,i.getClient)();try{let r=await (0,t.x7)((0,t.H9)(s,"users",e,"chat","main"));if(r.exists()&&(null==(n=r.data())?void 0:n.role)==="admin")return{isAdmin:!0,source:"loaniq"}}catch(e){console.warn("[admin check] loaniq lookup failed",e)}try{let n=await (0,t.x7)((0,t.H9)(s,"myflyers",e,"profile","main")),i=null==(r=n.data())?void 0:r.role;if(n.exists()&&("admin"===i||(null==(l=n.data())?void 0:l.isMyflyersAdmin)===!0))return{isAdmin:!0,source:"myflyers"}}catch(e){console.warn("[admin check] myflyers lookup failed",e)}return{isAdmin:!1,source:null}}},90223:(e,n,r)=>{r.d(n,{TopNav:()=>z});var t=r(12147),i=r(79603),a=r(14791),l=r.n(a),s=r(55864),o=r(99856),d=r(39687),c=r(13901),p=r(70744),f=r(52738),x=r(84202),u=r(94848);function h(){let e=(0,s.useRouter)(),{user:n,loading:r}=(0,o.iZ)(),[a,d]=(0,i.useState)(!1),[c,h]=(0,i.useState)(null),[b,v]=(0,i.useState)(!1),[k,j]=(0,i.useState)(!1),w=(0,i.useRef)(null);if((0,i.useEffect)(()=>{(0,f.ensureMyflyersFirebase)()},[]),(0,i.useEffect)(()=>{n&&(async()=>{var e;let r=await (0,u.VM)(n.uid),t=null!=(e=null==r?void 0:r.role)?e:null;h(t),v(!!await (0,u.DY)(n.uid,"loan_officer"===t?"realtor":"loan_officer")),j((await (0,x.K)(n.uid)).isAdmin)})().catch(e=>console.warn("[UserMenu] resolve failed",e))},[n]),(0,i.useEffect)(()=>{if(a)return document.addEventListener("mousedown",e),document.addEventListener("keydown",n),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",n)};function e(e){w.current&&(w.current.contains(e.target)||d(!1))}function n(e){"Escape"===e.key&&d(!1)}},[a]),r||!n)return null;let A=(n.displayName||n.email||"?").slice(0,1).toUpperCase(),S="loan_officer"===c?"realtor":"loan_officer";async function F(){try{let{auth:n}=(0,f.getClient)();await (0,p.CI)(n),e.replace("/")}catch(e){console.warn("[sign out] failed",e)}}async function C(){if(n){if(d(!1),b){let r=await (0,u.zA)(n.uid,S);if(r.switched)return void e.push("loan_officer"===r.role?"/lo-dashboard":"/dashboard")}e.push("loan_officer"===S?"/onboarding/loan-officer":"/onboarding/realtor")}}return(0,t.jsxs)("div",{ref:w,style:{position:"relative"},children:[(0,t.jsx)("button",{type:"button","aria-haspopup":"menu","aria-expanded":a,onClick:()=>d(e=>!e),style:{width:32,height:32,borderRadius:"50%",border:"none",cursor:"pointer",background:"linear-gradient(135deg, #E8573A 0%, #2EBDBD 100%)",color:"#fff",display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:13,padding:0},title:n.displayName||n.email||"Account",children:A}),a&&(0,t.jsxs)("div",{role:"menu",style:{position:"absolute",right:0,top:"calc(100% + 8px)",minWidth:240,background:"var(--paper)",border:"1px solid var(--line)",borderRadius:12,boxShadow:"0 16px 40px -12px rgba(10,37,64,0.28), 0 0 0 1px rgba(10,37,64,0.04)",zIndex:100,overflow:"hidden"},children:[(0,t.jsxs)("div",{style:{padding:"12px 16px",borderBottom:"1px solid var(--line)"},children:[(0,t.jsx)("div",{style:{fontSize:11,color:"var(--ink-muted)",textTransform:"uppercase",letterSpacing:"0.10em",marginBottom:2},children:"Signed in as"}),(0,t.jsx)("div",{style:{fontSize:13,color:"var(--ink)",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n.email||n.displayName||n.uid}),c&&(0,t.jsx)("div",{style:{marginTop:6},children:(0,t.jsx)("span",{style:{display:"inline-block",padding:"2px 8px",borderRadius:999,fontFamily:"var(--font-mono)",fontSize:10,letterSpacing:"0.12em",textTransform:"uppercase",fontWeight:600,background:"realtor"===c?"rgba(232,87,58,0.10)":"rgba(46,189,189,0.10)",color:"realtor"===c?"var(--coral-deep)":"var(--teal-deep)"},children:c.replace("_"," ")})})]}),(0,t.jsx)(y,{as:l(),href:"/daily",onClick:()=>d(!1),children:"▢ Drops"}),(0,t.jsx)(y,{as:l(),href:"/brand",onClick:()=>d(!1),children:"◈ Brand"}),(0,t.jsx)(y,{as:l(),href:"/dashboard/financing",onClick:()=>d(!1),children:"$ Financing"}),(0,t.jsx)(y,{as:l(),href:"/settings",onClick:()=>d(!1),children:"✦ Settings"}
1),k&&c&&(0,t.jsxs)(y,{onClick:C,children:["↺ Switch to ","realtor"===S?"Realtor view":"Loan Officer view"]}),k&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g,{}),(0,t.jsx)(m,{children:"Admin"}),(0,t.jsx)(y,{as:l(),href:"/admin",onClick:()=>d(!1),children:"⚙ Admin overview"}),(0,t.jsx)(y,{as:l(),href:"/admin/waitlist",onClick:()=>d(!1),children:"\uD83D\uDCE5 Waitlist"}),(0,t.jsx)(y,{as:l(),href:"/admin/users",onClick:()=>d(!1),children:"\uD83D\uDC65 Users"}),(0,t.jsx)(y,{as:l(),href:"/admin/listings",onClick:()=>d(!1),children:"\uD83D\uDCCB Listings"})]}),(0,t.jsx)(g,{}),(0,t.jsx)(y,{onClick:F,danger:!0,children:"↩ Sign out"})]})]})}function g(){return(0,t.jsx)("div",{style:{height:1,background:"var(--line)"}})}function m(e){let{children:n}=e;return(0,t.jsx)("div",{style:{padding:"8px 16px 4px",fontFamily:"var(--font-mono)",fontSize:10,letterSpacing:"0.14em",textTransform:"uppercase",color:"var(--ink-muted)"},children:n})}function y(e){let n={display:"block",padding:"10px 16px",fontSize:13.5,color:e.danger?"var(--coral-deep)":"var(--ink)",background:"transparent",border:"none",width:"100%",textAlign:"left",cursor:"pointer",textDecoration:"none",fontFamily:"inherit"};return e.as?(0,t.jsx)(l(),{href:e.href,onClick:n=>{var r;return null==(r=e.onClick)?void 0:r.call(e,n)},style:n,children:e.children}):(0,t.jsx)("button",{type:"button",onClick:n=>{var r;return null==(r=e.onClick)?void 0:r.call(e,n)},style:n,children:e.children})}let b=[{key:"realtors",href:"/realtors",label:"For Realtors"},{key:"loan-officers",href:"/loan-officers",label:"For Loan Officers"}],v=["/create","/design"],k=["/daily","/dashboard","/lo-dashboard","/library","/saved","/contacts","/campaigns"],j=["/strategy","/playbook"],w=["/my-listings","/listing"],A=["/my-agents"],S=["/my-market"],F=["/brand"];function C(e,n){return n.some(n=>e===n||e.startsWith("".concat(n,"/"))||e.startsWith("".concat(n,"?")))}function z(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let{user:e,loading:n}=(0,o.iZ)(),r=(0,s.usePathname)()||"",a=(0,d.l)(),[p,f]=(0,i.useState)(!1),x=C(r,v),u=C(r,k),g=C(r,j),m=C(r,w),y=C(r,A),z=C(r,S),M=C(r,F),W=r.startsWith("/realtors"),_=r.startsWith("/loan-officers"),B="/"===r;(0,i.useEffect)(()=>{f(!1)},[r]),(0,i.useEffect)(()=>{if(p){let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[p]);let L=[{href:"/design",label:"MyFlyers",isActive:x},{href:"/daily",label:"MyDaily",isActive:u&&!x&&!M&&!z&&!m&&!y&&!g},..."realtor"===a?[{href:"/my-listings",label:"MyListings",isActive:m}]:[],..."loan_officer"===a?[{href:"/my-agents",label:"MyAgents",isActive:y}]:[],{href:"/my-market",label:"MyMarket",isActive:z},{href:"/brand",label:"MyBrand",isActive:M}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("nav",{style:{position:"sticky",top:0,zIndex:80,background:"rgba(255,255,255,0.94)",backdropFilter:"blur(14px) saturate(160%)",WebkitBackdropFilter:"blur(14px) saturate(160%)",borderBottom:"1px solid #F0F0F0"},children:(0,t.jsxs)("div",{className:"container-1300",style:{display:"flex",alignItems:"center",height:60,gap:24},children:[(0,t.jsx)(l(),{href:e?"/daily":"/",style:{display:"inline-flex",alignItems:"center",flexShrink:0},"aria-label":"MyFlyers home",children:(0,t.jsx)(c.S,{variant:"default",size:20})}),(0,t.jsx)("div",{className:"topnav-center",style:{display:"flex",gap:4,alignItems:"center",margin:"0 auto",flexShrink:0},children:n?null:e?L.map(e=>(0,t.jsx)(E,{href:e.href,label:e.label,isActive:e.isActive},e.href)):b.map(e=>(0,t.jsx)(E,{href:e.href,label:e.label,isActive:"realtors"===e.key?W:"loan-officers"===e.key?_:"home"===e.key&&B},e.key))}),(0,t.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:10,flexShrink:0},children:[n?null:e?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(h,{})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l(),{href:"/sign-in",className:"btn btn-ghost topnav-sign-in",style:{fontSize:13,padding:"8px 14px"},children:"Sign in"}),(0,t.jsx)(l(),{href:"/get-started",className:"btn btn-primary",style:{fontSize:13,padding:"8px 14px"},children:"Get started"})]}),(0,t.jsx)("button",{type:"button",className:"topnav-hamburger","aria-label":p?"Close menu":"Open menu","aria-expanded":p,onClick:()=>f(e=>!e),style:{display:"none",alignItems:"center",justifyContent:"center",width:38,height:38,padding:0,background:"transparent",border:"1px solid var(--line)",borderRadius:8,cursor:"pointer"},children:(0,t.jsx)(D,{open:p})})]})]})}),p&&(0,t.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":"Navigation menu",className:"topnav-mobile-drawer",onClick:()=>f(!1),style:{position:"fixed",inset:0,zIndex:79,background:"rgba(10,10,10,0.45)",backdropFilter:"blur(2px)"},children:(0,t.jsx)("div",{onClick:e=>e.stopPropagation(),style:{position:"absolute",top:60,right:0,width:"min(320px, 86vw)",maxHeight:"calc(100vh - 60px)",background:"#fff",borderLeft:"1px solid var(--line)",boxShadow:"-12px 0 28px rgba(10,37,64,0.08)",padding:"14px 14px 28px",overflowY:"auto"},children:n?null:e?(0,t.jsxs)(t.Fragment,{children:[L.map(e=>(0,t.jsx)(N,{href:e.href,label:e.label,isActive:e.isActive},e.href)),(0,t.jsx)("div",{style:{height:1,background:"var(--line)",margin:"10px 4px"}}),(0,t.jsx)(N,{href:"/settings",label:"Settings",isActive:r.startsWith("/settings")})]}):(0,t.jsxs)(t.Fragment,{children:[b.map(e=>(0,t.jsx)(N,{href:e.href,label:e.label,isActive:"realtors"===e.key?W:"loan-officers"===e.key&&_},e.key)),(0,t.jsx)("div",{style:{height:1,background:"var(--line)",margin:"10px 4px"}}),(0,t.jsx)(N,{href:"/sign-in",label:"Sign in",isActive:!1}),(0,t.jsx)(N,{href:"/get-started",label:"Get started",isActive:!1,accent:!0})]})})}),(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n        @media (max-width: 767px) {\n          .topnav-center { display: none !important; }\n          .topnav-hamburger { display: inline-flex !important; }\n          .topnav-new-listing { display: none !important; }\n        }\n        @media (min-width: 768px) {\n          .topnav-mobile-drawer { display: none !important; }\n        }\n      "}})]})}function E(e){let{href:n,label:r,isActive:i}=e;return(0,t.jsx)(l(),{href:n,style:{padding:"8px 14px",borderRadius:8,fontSize:14,fontWeight:500,color:i?"#fff":"#3F3F46",background:i?"#0A0A0A":"transparent",transition:"background .15s, color .15s",textDecoration:"none"},children:r})}function N(e){let{href:n,label:r,isActive:i,accent:a}=e;return(0,t.jsx)(l(),{href:n,style:{display:"block",padding:"12px 14px",borderRadius:10,fontSize:15,fontWeight:600,color:i?"#fff":a?"var(--brand-coral, #e07857)":"var(--ink, #0A0A0A)",background:i?"#0A0A0A":"transparent",textDecoration:"none",marginBottom:2},children:r})}function D(e){let{open:n}=e;return(0,t.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18","aria-hidden":"true",children:[(0,t.jsx)("line",{x1:"2",x2:"16",y1:n?9:4.5,y2:n?9:4.5,stroke:"#0A0A0A",strokeWidth:"1.6",strokeLinecap:"round",transform:n?"rotate(45 9 9)":"",style:{transition:"transform .18s"}}),(0,t.jsx)("line",{x1:"2",x2:"16",y1:"9",y2:"9",stroke:"#0A0A0A",strokeWidth:"1.6",strokeLinecap:"round",opacity:+!n,style:{transition:"opacity .12s"}}),(0,t.jsx)("line",{x1:"2",x2:"16",y1:n?9:13.5,y2:n?9:13.5,stroke:"#0A0A0A",strokeWidth:"1.6",strokeLinecap:"round",transform:n?"rotate(-45 9 9)":"",style:{transition:"transform .18s"}})]})}},98827:(e,n,r)=>{r.d(n,{Z:()=>l});var t=r(40457);let i=Object.freeze(["impersonate"]);var a=r(52738);async function l(e,n){if("string"!=typeof e||0===e.length)return!1;try{let r=await (0,t.x7)((0,t.H9)((0,a.getClient)().db,"_globalAdmins",e));return r.exists()&&function(e,n){if("string"!=typeof n||0===n.length||!Array.isArray(e)||0===e.length)return!1;let r=e.filter(e=>"string"==typeof e&&e.length>0);return!!r.includes(n)||!i.includes(n)&&r.includes("*")}(r.get("scopes"),n)}catch(e){return!1}}}}]);

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.