PageSourceSearch

https://fuego.io/_next/static/chunks/pages/admin/merchants-f0dfa199a1d0668a.js

js fuego.io collected 2026-09-26 10:01:34 UTC 12,597 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8507],{7021:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var l=n(14232);let a=l.forwardRef(function(e,t){let{title:n,titleId:a,...r}=e;return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},r),n?l.createElement("title",{id:a},n):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))})},9749:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/merchants",function(){return n(60138)}])},17204:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var l=n(14232);let a=l.forwardRef(function(e,t){let{title:n,titleId:a,...r}=e;return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},r),n?l.createElement("title",{id:a},n):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))})},18787:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var l=n(14232);let a=l.forwardRef(function(e,t){let{title:n,titleId:a,...r}=e;return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},r),n?l.createElement("title",{id:a},n):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))})},24079:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var l=n(37876),a=n(49504),r=n(83513),s=n(11629),i=n(14232),o=n(39912);function c(e){let{children:t,focus:n,isOpen:c,setIsOpen:d,size:u,title:m,Action:x,yolo:h}=e,{fontFamily:f}=(0,i.useContext)(o.AppContext);return(0,l.jsx)(a.e,{appear:!0,show:c,as:i.Fragment,children:(0,l.jsxs)(r.l,{initialFocus:n,as:"div",className:"fixed inset-0 z-10 overflow-y-auto overscroll-none",onClose:()=>{h||d(!1)},children:[(0,l.jsx)(r.l.Overlay,{className:"fixed inset-0 bg-black opacity-70 overscroll-none"}),(0,l.jsxs)("div",{className:"min-h-screen px-4 text-center",children:[(0,l.jsx)(a.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,l.jsx)(r.l.Overlay,{className:"fixed inset-0"})}),(0,l.jsx)("span",{className:"inline-block h-screen align-middle","aria-hidden":"true",children:"​"}),(0,l.jsx)(a.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,l.jsxs)("div",{className:"inline-block w-full ".concat(u||"max-w-lg"," p-4 my-8 text-left align-middle transition-all transform bg-white shadow-xl rounded-2xl text-gray-950"),style:{fontFamily:f},children:[m?(0,l.jsxs)("div",{className:"flex-between",children:[(0,l.jsx)(r.l.Title,{as:"div",className:"text-xl font-bold tracking-tight leading-6 text-gray-900",children:m}),x||(0,l.jsx)("button",{className:"icon-btn icon-cancel",onClick:()=>d(!1),children:(0,l.jsx)(s.A,{className:"icon"})})]}):null,t]}
1)})]})]})})}},53490:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var l=n(37876),a=n(74287),r=n(14232),s=n(20267);function i(e){let[t,n]=(0,r.useState)("init");return(0,l.jsxs)("button",{className:"".concat(e.iconBtn?"icon-btn":"btn"," ").concat(e.color||(e.iconBtn?"":"btn-gray")," ").concat(e.classNames),ref:e._ref,type:"button",onClick:async l=>{e.stopPropagation&&l.stopPropagation(),"load"!=t&&(e.noLoad||e.sync||n("load"),await e.fn()?n("done"):n("init"))},children:["init"==t&&(0,l.jsxs)(l.Fragment,{children:[e.icon?(0,l.jsx)(e.icon,{className:"".concat(e.iconBtn?"icon-small":"icon"," opacity-50 flex-shrink-0")}):null,e.iconBtn?null:(0,l.jsx)("span",{children:e.init||"Button"})]}),"load"==t&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.A,{size:e.iconBtn?"w-3 h-3":null}),e.iconBtn?null:(0,l.jsx)("span",{children:e.load||"Processing"})]}),"done"==t&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.A,{className:"".concat(e.iconBtn?"icon-small":"icon")}),e.iconBtn?null:(0,l.jsxs)("span",{children:[e.done||"Done"," "]})]})]})}},60138:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Brand:()=>m,default:()=>h});var l=n(37876);n(14232);var a=n(997),r=n(20267);n(24079),n(53490);var s=n(90418),i=n(48230),o=n.n(i),c=n(17204),d=n(95036),u=n(75656);function m(e){var t,n,a,r;let{brand:s,subscriber:i,gmv:u}=e,m=s.asc_slug&&s.asc_app_id&&s.expo_id;return(0,l.jsxs)(o(),{href:"/admin/merchants/".concat(s.id),className:"flex gap-3 items-start card card-clickable !p-3 !rounded-xl",children:[(0,l.jsx)("img",{src:(null==s?void 0:s.icon)||"/placeholder/icon.png",className:"w-16 h-16 rounded-lg outline outline-1 outline-black/5"}),(0,l.jsxs)("div",{className:"flex flex-col  text-xs gap-0.5 items-start",children:[(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("span",{className:"font-semibold text-sm line-clamp-1",children:null==s?void 0:s.name}),s.subscription?(0,l.jsxs)("span",{className:"bg-emerald-100 rounded-full px-2 text-emerald-950 font-semibold flex-center text-[11px]",children:["$",null==s||null==(t=s.subscription)?void 0:t.price]}):null]}),(0,l.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,l.jsxs)("span",{className:"line-clamp-1",children:[(null==s?void 0:s.domain)||(null==s?void 0:s.myshopify)||(null==s||null==(n=s.brand)?void 0:n.shadow)," "]}),(null==s?void 0:s.access_token)?(0,l.jsx)("div",{className:"flex gap-1 rounded-full text-gray-700",children:(0,l.jsx)(c.A,{className:"w-3 h-3 stroke-[4]"})}):null]}),i&&!m?(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)("div",{className:"flex gap-1 rounded-full bg-rose-100 text-rose-700 text-xs items-center px-2 py-0.5",children:(0,l.jsx)("span",{className:"text-[10px] font-[400]",children:" Build Not Configured "})})}):null,u[null==s?void 0:s.id]?(0,l.jsxs)("div",{className:"flex gap-1 rounded-full bg-gray-100 font-bold text-gray-700 text-[10px] mt-0.5 items-center px-2 py-0.5",children:[(0,d.y8)((null==(a=u[null==s?void 0:s.id])?void 0:a.sum)||0,null==s||null==(r=s.data)?void 0:r.currency)," / D"]}):null]})]},s.id)}function x(e){let{merchants:t,title:n,gmv:a}=e;return(0,l.jsx)("div",{className:"grid md:grid-cols-3 gap-4",children:t.map(e=>(0,l.jsx)(m,{gmv:a,subscriber:!0,brand:e},e.id))})}function h(e){var t,n,i;let{data:o}=(0,u.Ay)("/admin/merchants",a.get),c=(0,u.Ay)("/admin/analytics",a.get),m=(null==c||null==(n=c.data)||null==(t=n.data)?void 0:t.gmv)||{},h=null==o?void 0:o.data,f=(Array.isArray(h)&&(null==(i=h.find(e=>"Subscribers"==e.title))?void 0:i.brands)||[]).reduce((e,t)=>{var n;return e+((null==(n=t.subscription)?void 0:n.price)||0)},0);return(0,l.jsx)(s.A,{active:"Subscribers",children:(0,l.jsxs)("div",{className:"text-sm flex flex-col gap-6",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start space-y-1 rounded-lg card elevate",children:[(0,l.jsx)("div",{className:"text-xl font-medium",children:(0,d.y8)(f,"USD")}),(0,l.jsx)("div",{className:"text-[13px] font-medium text-gray-500",children:"MRR"})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start space-y-1 rounded-lg card elevate",children:[(0,l.jsx)("div",{className:"text-xl font-medium",children:(0,d.y8)(12*f,"USD")}),(0,l.jsx)("div",{className:"text-[13px] font-medium text-gray-500",children:"ARR"})]})]}),Array.isArray(h)?h.map(e=>"Subscribers"==e.title?(0,l.jsx)(x,{build:!0,merchants:e.brands,title:e.title,gmv:m}):null):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-2 font-medium p-6",children:[(0,l.jsx)(r.A,{}),(0,l.jsx)("span",{children:"Loading Merchants"})]})]})})}}
1,65283:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var l=n(14232);let a=l.forwardRef(function(e,t){let{title:n,titleId:a,...r}=e;return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},r),n?l.createElement("title",{id:a},n):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))})},74287:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var l=n(14232);let a=l.forwardRef(function(e,t){let{title:n,titleId:a,...r}=e;return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},r),n?l.createElement("title",{id:a},n):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))})}
1,81354:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var l=n(14232);let a=l.forwardRef(function(e,t){let{title:n,titleId:a,...r}=e;return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},r),n?l.createElement("title",{id:a},n):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"}))})},83283:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var l=n(14232);let a=l.forwardRef(function(e,t){let{title:n,titleId:a,...r}=e;return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},r),n?l.createElement("title",{id:a},n):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m-3-2.818.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))})},90418:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var l=n(37876);n(14232);var a=n(83283),r=n(7021),s=n(65283),i=n(94471),o=n(81354),c=n(18787);n(48230),n(997),n(31820),n(89099);var d=n(35505);let u=[{name:"Subscribers",href:"/admin/merchants",icon:a.A},{name:"Leads",href:"/admin/leads",icon:r.A},{name:"Support",href:"https://dhh.fuego.io/",icon:s.A},{name:"Builds",href:"/admin/builds",icon:i.A},{name:"Templates",href:"/admin/templates",icon:o.A},{name:"Analytics",href:"/admin/analytics",icon:c.A}];function m(e){return(0,l.jsx)(d.mO,{...e,navigation:u})}},94471:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var l=n(14232);let a=l.forwardRef(function(e,t){let{title:n,titleId:a,...r}=e;return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},r),n?l.createElement("title",{id:a},n):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"}))})}},e=>{e.O(0,[4471,9965,8230,7012,3513,5663,8464,6585,3868,5505,636,6593,8792],()=>e(e.s=9749)),_N_E=e.O()}]);

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.