1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9ee690c7-bce0-4c51-8ce2-51effde94a8c",e._sentryDebugIdIdentifier="sentry-dbid-9ee690c7-bce0-4c51-8ce2-51effde94a8c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5231],{15089:(e,t,i)=>{i.d(t,{$r:()=>a,Wk:()=>o,dW:()=>l,useDevAccessOverride:()=>s});var n=i(12115);let o={roleOverride:null,permissionOverrides:{},configOverride:{},entitlementOverride:{},planNameOverride:void 0,billingUsageDemoEnabled:!1},r=()=>{},a={...o,enabled:!1,isActive:!1,setRoleOverride:r,setPermissionOverride:r,setPermissionOverrides:r,setConfigOverride:r,setConfigOverrides:r,setEntitlementOverride:r,setEntitlementOverrides:r,setPlanNameOverride:r,setBillingUsageDemoEnabled:r,reset:r},l=(0,n.createContext)(a);function s(){return(0,n.useContext)(l)}},15610:(e,t,i)=>{i.d(t,{L:()=>c,default:()=>d});var n=i(95155),o=i(12115),r=i(97566),a=i(91983);let l=(e,t)=>{if(void 0===window.Intercom){let i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src="https://widget.intercom.io/widget/".concat("z6wlfbti"),i.onload=()=>{"function"==typeof e&&e(t)},document.head.appendChild(i)}else"function"==typeof e&&e(t)},s=e=>{let t="z6wlfbti";if("string"!=typeof t||""===t.trim())return;let i=((e,t)=>{let i={app_id:e,created_at:Math.floor(Date.now()/1e3)};if(!(0,r.h)(t)&&(0,a.A)(t)){let{userId:e,email:n,userHash:o}=t;(0,r.h)(e)||(i.user_id=e),(0,r.h)(n)||(i.email=n),(0,r.h)(o)||(i.intercom_user_jwt=o)}return i})(t,e);if("function"==typeof window.Intercom){window.Intercom("reattach_activator"),window.Intercom("update",i);return}window.Intercom=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];(0,r.h)(window.Intercom)||(Array.isArray(window.Intercom.q)||(window.Intercom.q=[]),window.Intercom.q.push(t))},window.Intercom.q=[],window.Intercom("boot",i)},c=e=>{l(s,e),"function"==typeof window.Intercom&&window.Intercom("show")},d=e=>{let{loadImmediately:t=!1,user:i}=e,r=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=()=>{l(s,i)};if(t)e();else{let t=setTimeout(()=>{e()},1e4);if("IntersectionObserver"in window){let i=new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting&&(e(),i.disconnect(),clearTimeout(t))})},{threshold:.1});return null!==r.current&&i.observe(r.current),()=>{i.disconnect(),clearTimeout(t)}}}},[t,i]),(0,n.jsx)("div",{ref:r})}},22480:(e,t,i)=>{i.d(t,{Z:()=>n});let n=e=>void 0===e||(null==e?void 0:e.trim().length)===0||null===e},24296:(e,t,i)=>{i.d(t,{r:()=>o});var n=i(61005);let o=[{label:"Dashboard",icon:"pi pi-home",to:"/app",schematicKey:"dashboard",navPermissions:[n.a.FinanceBillingView,n.a.PromotionsView,n.a.RecipientsView,n.a.RecipientsActivityView,n.a.FinanceLedgerView]},{label:"Separator",separator:!0},{label:"Promotions",icon:"pi pi-gift",to:"/app/promotions",navPermissions:[n.a.PromotionsView]},{label:"Recipients",icon:"pi pi-users",to:"/app/recipients",navPermissions:[n.a.RecipientsView]},{label:"Automations",icon:"pi pi-bolt",to:"/app/automations",navPermissions:[n.a.AdminIntegrationsManage]},{label:"Separator",separator:!0},{label:"Reports",icon:"pi pi-chart-bar",to:"/app/reports",navPermissions:[n.a.RecipientsActivityView]},{label:"Ledger",icon:"pi pi-book",to:"/app/ledger",navPermissions:[n.a.FinanceLedgerView]},{label:"Spend Predictions",icon:"pi pi-calculator",to:"/app/spend-predictions"},{label:"Separator",separator:!0},{label:"Billing",icon:"pi pi-dollar",to:"/app/billing",navPermissions:[n.a.FinanceBillingView]},{label:"Settings",icon:"pi pi-cog",to:"/app/settings",schematicKey:"account-settings"}]},32745:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(95155),o=i(12115),r=i(97566);function a(e){let{classes:t,onClickHandler:i}=e;return(0,n.jsx)("i",{className:"pi pi-exclamation-circle ".concat(t),onClick:e=>{e.stopPropagation(),(0,r.h)(i)||i()}})}var l=i(81164);function s(e){let{disabled:t,disabledFeatureName:i,message:s,children:c,infoIconClassName:d,featureClassName:u,canUpgrade:p=!1}=e,[m,f]=(0,o.useState)(!1),v=null!=s?s:(0,l.ix)(i);return(0,n.jsxs)("div",{className:"w-full flex flex-col relative ".concat(null!=u?u:""),children:[t&&p&&(0,n.jsxs)("div",{className:"w-full text-xs flex flex-col font-semibold",children:[m&&(0,n.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",role:"presentation",onClick:()=>{f(!1)},children:(0,n.jsxs)("div",{className:"w-full max-w-xs rounded-lg bg-white p-4 shadow-lg",role:"dialog","aria-modal":"true","aria-labelledby":"feature-upgrade-title",onClick:e=>{e.stopPropagation()},children:[(0,n.jsxs)("div",{className:"mb-3 flex items-start justify-between gap-2",children:[(0,n.jsx)("h2",{id:"feature-upgrade-title",className:"m-0 text-base font-semibold text-gray-900",children:i}),(0,n.jsx)("button",{type:"button",className:"inline-flex size-7 shrink-0 items-center justify-center rounded-md text-blue-600 hover:bg-gray-100","aria-label":"Close",onClick:()=>{f(!1)},children:(0,n.jsx)("i",{className:"pi pi-times","aria-hidden":!0})})]}),(0,n.jsx)("p",{className:"my-2 font-openSans text-sm text-gray-700",children:v}),(0,n.jsx)("button",{type:"button",className:"mt-2 rounded-md bg-blue-500 px-4 py-2 text-sm font-semibold text-white hover:bg-blue-600",onClick:()=>{(0,r.h)(window.Intercom)||window.Intercom("show")},children:"Contact us to upgrade"})]})}),(0,n.jsx)("div",{children:(0,n.jsx)(a,{classes:"h-3 w-3 text-white bg-blue-500 rounded-full z-10 absolute"+d,onClickHandler:()=>{f(!0)}})})]}),c]})}},49286:(e,t,i)=>{i.d(t,{M:()=>l,U:()=>s});var n=i(95155),o=i(12115);let r=()=>{},a=async()=>{await Promise.resolve()},l=(0,o.createContext)({layoutConfig:{ripple:!1,inputStyle:"outlined",menuMode:"static",theme:"lara-light-purple"},setLayoutConfig:r,layoutState:{staticMenuDesktopInactive:!1,overlayMenuActive:!1,profileSidebarVisible:!1,staticMenuMobileActive:!1,menuHoverActive:!1,pageTitleHidden:!1},setLayoutState:r,onMenuToggle:r,showProfileSidebar:r,logoutFn:a}),s=e=>{let{logoutFn:t,children:i}=e,[r,a]=(0,o.useState)({ripple:!1,inputStyle:"outlined",menuMode:"static",theme:"lara-light-indigo"}),[s,c]=(0,o.useState)({staticMenuDesktopInactive:!1,overlayMenuActive:!1,profileSidebarVisible:!1,staticMenuMobileActive:!1,menuHoverActive:!1,pageTitleHidden:!1});return(0,n.jsx)(l.Provider,{value:{layoutConfig:r,setLayoutConfig:a,layoutState:s,setLayoutState:c,onMenuToggle:()=>{"overlay"===r.menuMode&&c(e=>({...e,overlayMenuActive:!e.overlayMenuActive})),window.innerWidth>991?c(e=>({...e,staticMenuDesktopInactive:!e.staticMenuDesktopInactive})):c(e=>({...e,staticMenuMobileActive:!e.staticMenuMobileActive}))},showProfileSidebar:()=>{c(e=>({...e,profileSidebarVisible:!e.profileSidebarVisible}))},logoutFn:t},children:i})}},68745:(e,t,i)=>{i.d(t,{z:()=>c});
1var n=i(95155),o=i(49286),r=i(75974),a=i(52619),l=i.n(a),s=i(12115);let c=e=>{var t;let{color:i="blue",onClick:a}=e,c=(0,s.useContext)(o.M),d=null!=(t=null==c?void 0:c.layoutConfig)?t:{theme:"blue"},u=(0,s.useMemo)(()=>{let e=["blue","black","white"],t="string"==typeof d.theme?d.theme:void 0,n="blue";return"string"==typeof t&&t.length>0&&e.includes(t)?n=t:e.includes(i)&&(n=i),"/logos/favordrop-".concat(n,".svg")},[d.theme,i]);return s.useEffect(()=>{let e=[];return["blue","black","white"].forEach(t=>{let i=new Image;i.src="/logos/favordrop-".concat(t,".svg"),e.push(i)}),()=>{e.forEach(()=>{})}},[]),(0,n.jsx)(l(),{href:"/",className:"layout-logo",style:{flex:"none"},onClick:e=>{(0,r.b)(a)||(e.preventDefault(),a())},children:(0,n.jsx)("img",{src:u,className:"object-contain",alt:"Favordrop Logo",loading:"eager",style:{height:"2rem",width:"auto",display:"block"},height:40,width:160})})};c.displayName="AppLogoWithLink"},84186:(e,t,i)=>{i.d(t,{Y:()=>l});var n=i(12115),o=i(40621),r=i(15089);let a="development"===i(87358).env.NEXT_PUBLIC_APP_ENV;function l(){let{config:e}=(0,o.UN)(),{enabled:t,configOverride:i}=(0,r.useDevAccessOverride)();return(0,n.useMemo)(()=>a&&t?{...e,...i}:e,[e,t,i])}}}]);
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.