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FACA,kFACA,8HACH,EAELpB,SAAU,CACNgB,KAAM,EACV,EACAlB,KAAM,CACFuB,GAAI,qEACJC,GAAI,qEACJC,GAAI,qEACJC,GAAI,qEACJC,GAAI,oEACR,CACJ,EACA/C,iBAAkB,CAId,CACIV,QAAS,SACT+B,MAAO,UACPtC,UAAW,CACP,gCACA,iFACA,oGACA,8EACA,0GACH,EAEL,CACIO,QAAS,QACT+B,MAAO,UACPtC,UAAW,CACP,sCACA,mGACA,sHACA,wIACA,gHACH,EAEL,CACIO,QAAS,QACT+B,MAAO,UACPtC,UAAW,CACP,sCACA,2EACA,wEACA,sCACH,EAKL,CACIO,QAAS,SACT+B,MAAO,MACPtC,UAAW,CACP,uGACA,0EACA,gDACH,EAEL,CACIO,QAAS,QACT+B,MAAO,MACPtC,UAAW,CACP,+HACA,sFACA,8GACH,EAEL,CACIO,QAAS,QACT+B,MAAO,MACPtC,UAAW,CACP,wHACA,sEACA,sCACH,EAKL,CACIuC,SAAU,GACVF,KAAM,KACNrC,UAAW,gCACf,EACA,CACIuC,SAAU,GACVF,KAAM,KACNrC,UAAW,gCACf,EACA,CACIuC,SAAU,GACVF,KAAM,KACNrC,UAAW,gCACf,EACA,CACIuC,SAAU,GACVF,KAAM,KACNrC,UAAW,gCACf,EACA,CACIuC,SAAU,GACVF,KAAM,KACNrC,UAAW,gCACf,EACH,CACDC,gBAAiB,CACbM,QAAS,SACT+B,MAAO,UACPD,KAAM,IACV,CACJ,GACaK,EAAajD,CAAAA,EAAAA,EAAAA,CAAAA,EAAI,WAAY,CACtCI,SAAU,CACNwC,KAAM,CACFuB,GAAI,oCACJC,GAAI,oCACJC,GAAI,oCACJC,GAAI,oCACJC,GAAI,mCACR,EACAzB,SAAU,CACNgB,KAAM,EACV,CACJ,EACAtC,iBAAkB,CACd,CACIsB,SAAU,GACVF,KAAM,KACNrC,UAAW,6CACf,EACA,CACIuC,SAAU,GACVF,KAAM,KACNrC,UAAW,6CACf,EACA,CACIuC,SAAU,GACVF,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,mBAAqBpH,EAAA,cAAAuG,EAAA,EAAoB,EAAG,CAAAa,EAAA,EAAAkB,EAASlI,EAAAmI,OAAS,OAAOC,KAAA/B,EAAAgC,SAAApB,EAAAqB,aAAApB,EAAAqB,OAAAf,EAAAgB,KAAAf,EAAAzJ,KAAA0J,EAAAe,OAAA9B,EAAA+B,aAAAf,EAAAgB,eAAAf,EAAAgB,aAAAf,EAAAgB,UAAAf,EAAAgB,WAAAvI,EAAAwI,YAAAhB,EAAAiB,YAAAf,EAAAgB,UAAAjB,CAAA,GAAiL,CAAA3B,EAAAY,EAAAC,EAAAM,EAAAC,EAAAC,EAAAf,EAAAgB,EAAAC,EAAAC,EAAAC,EAAAvH,EAAAwH,EAAAE,EAAAD,EAAA,EAAmC,OAAOhI,EAAAY,aAAe,CAAAsI,EAAAC,QAAA,EAAatT,MAAAqS,CAAA,EAAS/I,EAAA,EAAIiK,EAAA,KAAQ,IAAAzK,EAAMqB,EAAAqJ,UAAY,CAA1hJtJ,GAA8hJ,GAAApB,KAAA,IAAAA,EAAA,qEAAuF,OAAAA,CAAA,EAAU2K,EAAA,IAAAF","sources":["webpack://_N_E/../../node_modules/class-variance-authority/dist/index.esm.js","webpack://_N_E/../../node_modules/next/dist/api/link.js","webpack://_N_E/../ds/dist/src/components/Button/Button.js","webpack://_N_E/../ds/dist/src/components/Button/Button.styles.js","webpack://_N_E/../ds/dist/src/utils/cn.js","webpack://_N_E/../icons/dist/icons/Loader2Filled.js","webpack://_N_E/../icons/dist/src/Icons.utils.js","webpack://_N_E/./components/ErrorFallback/ErrorFallback.tsx","webpack://_N_E/./components/open-support-button.tsx","webpack://_N_E/../../node_modules/react-use-intercom/dist/index.mjs"],"sourcesContent":["const falsyToString = (value)=>typeof value === \"boolean\" ? \"\".concat(value) : value === 0 ? \"0\" : value;\nexport const cx = function() // @ts-ignore\n{\n for(var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++){\n classes[_key] = arguments[_key];\n }\n return classes.flat(Infinity).filter(Boolean).join(\" \");\n};\nexport const cva = (base, config)=>{\n return (props)=>{\n var ref;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants , defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1)=>{\n let { class: cvClass , className: cvClassName , ...compoundVariantOptions } = param1;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n};\n\n\n//# sourceMappingURL=index.esm.js.map","export { default } from \"../client/link\";\nexport * from \"../client/link\";\n\n//# sourceMappingURL=link.js.map","import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { cloneElement, forwardRef } from 'react';\nimport { Loader2Filled } from '@zealy/icons';\nimport { cn } from '../../utils/cn';\nimport { buttonStyles, iconStyles } from './Button.styles';\nexport const Button = forwardRef(({ as: Component = 'button', type, children, leftIcon, rightIcon, isDisabled, loading, loadingText, size, color, variant, onlyIcon, className, mutedText, ...props }, ref) => {\n const iconClassName = iconStyles({ size, onlyIcon });\n return (_jsx(Component, { className: cn(buttonStyles({\n size,\n color,\n variant,\n onlyIcon,\n mutedText,\n }), className), \"data-state\": loading ? 'loading' : isDisabled ? 'disabled' : undefined, type: type, disabled: isDisabled, ref: ref, ...props, children: loading ? (_jsxs(_Fragment, { children: [_jsx(Loader2Filled, { className: cn(iconClassName, 'animate-spin') }), loadingText] })) : (_jsxs(_Fragment, { children: [leftIcon &&\n cloneElement(leftIcon, {\n className: cn(leftIcon.props.className, iconClassName),\n }), onlyIcon ? _jsx(\"span\", { className: \"sr-only\", children: children }) : children, !onlyIcon &&\n rightIcon &&\n cloneElement(rightIcon, {\n className: cn(rightIcon.props.className, iconClassName),\n })] })) }));\n});\n","import { cva } from 'class-variance-authority';\nexport const buttonStyles = cva([\n 'items-center',\n 'select-none',\n 'box-border',\n '::before:box-border',\n '::after:box-border',\n 'flex',\n 'flex-row',\n 'flex-shrink-0',\n 'min-w-fit',\n 'justify-center',\n 'focus:outline-none',\n 'focus-visible:ring-button-focus',\n 'transition-colors',\n 'duration-100',\n 'ease-in-out',\n 'whitespace-nowrap',\n 'disabled:cursor-not-allowed',\n 'data-[state=loading]:cursor-wait',\n], {\n variants: {\n variant: {\n filled: '',\n muted: '',\n ghost: 'bg-transparent',\n dashed: [\n 'border-dashed border-button-dashed border-button hover:border-button-dashed-hover active:border-button-dashed-press disabled:border-button-dashed-disabled',\n 'bg-button-dashed hover:bg-button-dashed-hover',\n 'active:bg-button-dashed-press disabled:bg-button-dashed-disabled disabled:text-button-onneutral-muted-disabled',\n 'data-[state=loading]:bg-button-dashed-loading',\n ],\n },\n mutedText: {\n true: '!text-button-onneutral-muted-tertiary hover:!text-button-onneutral-muted-primary',\n },\n blurEffect: {\n true: 'backdrop-blur',\n },\n color: {\n default: '',\n cta: '',\n destructive: [\n 'bg-button-destructive-muted border border-button-destructive text-button-ondestructive-muted-primary',\n 'hover:bg-button-destructive-muted-hover hover:border-button-destructive-hover',\n 'active:bg-button-destructive-muted-press active:border-button-destructive-press',\n 'disabled:text-button-ondestructive-muted-disabled disabled:bg-button-destructive-muted-disabled disabled:border-transparent',\n ],\n },\n onlyIcon: {\n true: '',\n },\n size: {\n xs: 'h-button-xs px-button-xs rounded-button-xs button-xs gap-button-xs',\n sm: 'h-button-sm px-button-sm rounded-button-sm button-sm gap-button-sm',\n md: 'h-button-md px-button-md rounded-button-md button-md gap-button-md',\n lg: 'h-button-lg px-button-lg rounded-button-lg button-lg gap-button-lg',\n xl: 'h-button-xl px-button-xl rounded-button-xl button-xl gap-button-xl',\n },\n },\n compoundVariants: [\n /**\n * Default\n */\n {\n variant: 'filled',\n color: 'default',\n className: [\n 'text-button-onneutral-primary',\n 'bg-button-neutral hover:bg-button-neutral-hover active:bg-button-neutral-press',\n 'border border-button-neutral hover:border-button-neutral-hover active:border-button-neutral-press',\n 'disabled:bg-button-neutral-disabled disabled:text-button-onneutral-disabled',\n 'data-[state=loading]:bg-button-neutral-loading data-[state=loading]:icon-button-onneutral-muted-primary',\n ],\n },\n {\n variant: 'muted',\n color: 'default',\n className: [\n 'text-button-onneutral-muted-primary',\n 'bg-button-neutral-muted hover:bg-button-neutral-muted-hover active:bg-button-neutral-muted-press',\n 'border border-button-neutral-muted hover:border-button-neutral-muted-hover active:border-button-neutral-muted-press',\n 'disabled:bg-button-neutral-muted-disabled disabled:text-button-onneutral-muted-disabled disabled:border-button-neutral-muted-disabled',\n 'data-[state=loading]:bg-button-neutral-muted-loading data-[state=loading]:border-button-neutral-muted-loading',\n ],\n },\n {\n variant: 'ghost',\n color: 'default',\n className: [\n 'text-button-onneutral-muted-primary',\n 'hover:bg-button-neutral-muted-hover active:bg-button-neutral-muted-press',\n 'disabled:text-button-onneutral-muted-disabled disabled:bg-transparent',\n 'data-[state=loading]:bg-transparent',\n ],\n },\n /**\n * CTA\n */\n {\n variant: 'filled',\n color: 'cta',\n className: [\n 'text-button-onbrand-primary bg-button-brand hover:bg-button-brand-hover active:bg-button-brand-press',\n 'disabled:bg-button-brand-disabled disabled:text-button-onbrand-disabled',\n 'data-[state=loading]:bg-button-brand-loading ',\n ],\n },\n {\n variant: 'muted',\n color: 'cta',\n className: [\n 'text-button-onbrand-muted-primary bg-button-brand-muted hover:bg-button-brand-muted-hover active:bg-button-brand-muted-press',\n 'disabled:bg-button-brand-muted-disabled disabled:text-button-onbrand-muted-disabled',\n 'data-[state=loading]:bg-button-brand-muted-loading data-[state=loading]:icon-button-onneutral-muted-primary',\n ],\n },\n {\n variant: 'ghost',\n color: 'cta',\n className: [\n 'text-button-onbrand-muted-primary bg-transparent hover:bg-button-brand-muted-hover active:bg-button-brand-muted-press',\n 'disabled:text-button-onbrand-muted-disabled disabled:bg-transparent',\n 'data-[state=loading]:bg-transparent',\n ],\n },\n /**\n * Only Icon\n */\n {\n onlyIcon: true,\n size: 'xs',\n className: 'w-button-xs !px-0 component-xs',\n },\n {\n onlyIcon: true,\n size: 'sm',\n className: 'w-button-sm !px-0 component-sm',\n },\n {\n onlyIcon: true,\n size: 'md',\n className: 'w-button-md !px-0 component-md',\n },\n {\n onlyIcon: true,\n size: 'lg',\n className: 'w-button-lg !px-0 component-lg',\n },\n {\n onlyIcon: true,\n size: 'xl',\n className: 'w-button-xl !px-0 component-xl',\n },\n ],\n defaultVariants: {\n variant: 'filled',\n color: 'default',\n size: 'md',\n },\n});\nexport const iconStyles = cva('shrink-0', {\n variants: {\n size: {\n xs: 'w-button-icon-xs h-button-icon-xs',\n sm: 'w-button-icon-sm h-button-icon-sm',\n md: 'w-button-icon-md h-button-icon-md',\n lg: 'w-button-icon-lg h-button-icon-lg',\n xl: 'w-button-icon-xl h-button-icon-xl',\n },\n onlyIcon: {\n true: '',\n },\n },\n compoundVariants: [\n {\n onlyIcon: true,\n size: 'xs',\n className: 'w-button-icon-only-xs h-button-icon-only-xs',\n },\n {\n onlyIcon: true,\n size: 'sm',\n className: 'w-button-icon-only-sm h-button-icon-only-sm',\n },\n {\n onlyIcon: true,\n size: 'md',\n className: 'w-button-icon-only-md h-button-icon-only-md',\n },\n {\n onlyIcon: true,\n size: 'lg',\n className: 'w-button-icon-only-lg h-button-icon-only-lg',\n },\n {\n onlyIcon: true,\n size: 'xl',\n className: 'w-button-icon-only-xl h-button-icon-only-xl',\n },\n ],\n defaultVariants: {\n size: 'md',\n },\n});\n","import { clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\nexport function cn(...inputs) {\n return twMerge(clsx(inputs));\n}\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { withBaseIcon } from '../src/Icons.utils';\nexport const Loader2Filled = (props) => withBaseIcon(_jsx(\"svg\", { width: 24, height: 24, viewBox: \"0 0 24 24\", fill: \"none\", role: \"img\", children: _jsx(\"path\", { d: \"M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 10.4035 2.37412 8.8944 3.03947 7.55556\", stroke: \"currentColor\", strokeWidth: 2, strokeLinecap: \"round\", strokeLinejoin: \"round\" }) }), props);\nLoader2Filled.iconName = 'loader-2';\nLoader2Filled.displayName = 'Loader2Filled';\nexport default Loader2Filled;\n","import React from 'react';\nconst DEFAULT_ICON_SIZE = 24;\nexport const withBaseIcon = (icon, { size = DEFAULT_ICON_SIZE, width = size, height = size, ...rest }) => {\n return React.cloneElement(icon, { width, height, ...rest });\n};\n","import { FallbackProps } from 'react-error-boundary';\nimport { useTranslations } from 'next-intl';\nimport Link from 'next/link';\n\nimport { Button } from '@zealy/design-system';\n\nimport { OpenSupportButton } from '../open-support-button';\n\nexport interface ErrorFallbackProps extends FallbackProps {\n /**\n * Type of the error the user is experiencing.\n */\n meta?: string;\n title?: string;\n description?: string;\n customErrorMessage?: string;\n retryActionText?: string;\n}\n\n/**\n * Used to display an error message to the client in case something happens.\n * Use this component to wrap UI elements that are are prone to produce errors.\n * @example\n * ```tsx\n * // In parent component\n * import { ErrorBoundary } from \"react-error-boundary\"\n * import { ErrorFallback } from \"#components/ErrorFallback\"\n * import { ChildComponentWithPossibleError } from \"#components/ChildComponentWithPossibleError\"\n *\n * function ParentComponentWithErrorProneChild() {\n * return (\n * \n * \n * \n * )\n * }\n *\n * // In child component\n * import { useEffect } from \"react\"\n * import { useErrorBoundary } from \"react-error-boundary\"\n *\n * function ChildComponentWithPossibleError() {\n * const { showBoundary } = useErrorBoundary()\n *\n * async function possibleFailAction () {\n * try {\n * throw new Error(\"Catch me if you can :p\")\n * } catch (e: Error) {\n * // Calling this will render the ErrorBoundary component.\n * showBoundary(error)\n * }\n * }\n *\n * useEffect(() => {\n * possibleFailAction()\n * }, [])\n * }\n * ```\n */\nexport function ErrorFallback(props: ErrorFallbackProps) {\n const t = useTranslations('error-boundary');\n\n const {\n error,\n customErrorMessage = t('description'),\n meta = t('subtitle'),\n title = t('title'),\n retryActionText = t('try-again'),\n resetErrorBoundary,\n ...rest\n } = props;\n\n return (\n
\n
\n

{meta}

\n

{title}

\n

\n {customErrorMessage || error.toString?.() || error.message}\n

\n
\n \n {resetErrorBoundary && }\n \n
\n
\n
\n );\n}\n","'use client';\n\nimport React from 'react';\nimport { useIntercom } from 'react-use-intercom';\n\nimport { Button } from '@zealy/design-system';\n\nexport const OpenSupportButton = ({ title = 'Contact support' }) => {\n const intercom = useIntercom();\n\n return (\n \n );\n};\n","import * as o from 'react';\n\nvar re=Object.defineProperty;var R=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var W=(e,t,r)=>t in e?re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=(e,t)=>{for(var r in t||(t={}))j.call(t,r)&&W(e,r,t[r]);if(R)for(var r of R(t))F.call(t,r)&&W(e,r,t[r]);return e};var H=(e,t)=>{var r={};for(var c in e)j.call(e,c)&&t.indexOf(c)<0&&(r[c]=e[c]);if(e!=null&&R)for(var c of R(e))t.indexOf(c)<0&&F.call(e,c)&&(r[c]=e[c]);return r};var p=(e,t)=>{let r=\"[react-use-intercom]\";switch(e){case\"info\":console.log(`${r} ${t}`);break;case\"warn\":console.warn(`${r} ${t}`);break;case\"error\":console.error(`${r} ${t}`);break;default:console.log(`${r} ${t}`);}};var I=typeof window==\"undefined\",A=e=>(Object.keys(e).forEach(t=>{e[t]&&typeof e[t]==\"object\"?A(e[t]):e[t]===void 0&&delete e[t];}),e);var ne=(e,...t)=>{if(!I&&window.Intercom)return window.Intercom.apply(null,[e,...t]);p(\"error\",`${e} Intercom instance is not initalized yet`);},s=ne;var ae=o.createContext(void 0),P=ae;var se=(e,t=0)=>{var r=window,c=r.Intercom;if(typeof c==\"function\")c(\"reattach_activator\"),c(\"update\",r.intercomSettings);else {var w=document,l=function(){l.c(arguments);};l.q=[],l.c=function(u){l.q.push(u);},r.Intercom=l;var f=function(){setTimeout(function(){var u=w.createElement(\"script\");u.type=\"text/javascript\",u.async=!0,u.src=\"https://widget.intercom.io/widget/\"+e;var d=w.getElementsByTagName(\"script\")[0];d.parentNode.insertBefore(u,d);},t);};document.readyState===\"complete\"?f():r.attachEvent?r.attachEvent(\"onload\",f):r.addEventListener(\"load\",f,!1);}},J=se;var ce=e=>({custom_launcher_selector:e.customLauncherSelector,alignment:e.alignment,vertical_padding:e.verticalPadding,horizontal_padding:e.horizontalPadding,hide_default_launcher:e.hideDefaultLauncher,session_duration:e.sessionDuration,action_color:e.actionColor,background_color:e.backgroundColor}),Q=e=>m({company_id:e.companyId,name:e.name,created_at:e.createdAt,plan:e.plan,monthly_spend:e.monthlySpend,user_count:e.userCount,size:e.size,website:e.website,industry:e.industry},e.customAttributes),ie=e=>({type:e.type,image_url:e.imageUrl}),me=e=>{var t;return m({email:e.email,user_id:e.userId,created_at:e.createdAt,name:e.name,phone:e.phone,last_request_at:e.lastRequestAt,unsubscribed_from_emails:e.unsubscribedFromEmails,language_override:e.languageOverride,utm_campaign:e.utmCampaign,utm_content:e.utmContent,utm_medium:e.utmMedium,utm_source:e.utmSource,utm_term:e.utmTerm,avatar:e.avatar&&ie(e.avatar),user_hash:e.userHash,company:e.company&&Q(e.company),companies:(t=e.companies)==null?void 0:t.map(Q)},e.customAttributes)},y=e=>A(m(m({},ce(e)),me(e)));var le=de=>{var _=de,{appId:e,autoBoot:t=!1,autoBootProps:r,children:c,onHide:w,onShow:l,onUnreadCountChange:f,onUserEmailSupplied:u,shouldInitialize:d=!I,apiBase:v,initializeDelay:Y}=_,Z=H(_,[\"appId\",\"autoBoot\",\"autoBootProps\",\"children\",\"onHide\",\"onShow\",\"onUnreadCountChange\",\"onUserEmailSupplied\",\"shouldInitialize\",\"apiBase\",\"initializeDelay\"]);let g=o.useRef(!1),b=o.useRef(!1),x=Object.keys(Z).filter(n=>!n.startsWith(\"data-\"));x.length>0&&p(\"warn\",[\"some invalid props were passed to IntercomProvider. \",`Please check following props: ${x.join(\", \")}.`].join(\"\"));let C=o.useCallback(n=>{if(!window.Intercom&&!d){p(\"warn\",\"Intercom instance is not initialized because `shouldInitialize` is set to `false` in `IntercomProvider`\");return}let i=m(m({app_id:e},v&&{api_base:v}),n&&y(n));window.intercomSettings=i,s(\"boot\",i),g.current=!0;},[v,e,d]),[k,h]=o.useState(!1),ee=o.useCallback(()=>{h(!1),w&&w();},[w,h]),te=o.useCallback(()=>{h(!0),l&&l();},[l,h]);!I&&d&&!b.current&&(J(e,Y),s(\"onHide\",ee),s(\"onShow\",te),s(\"onUserEmailSupplied\",u),f&&s(\"onUnreadCountChange\",f),t&&C(r),b.current=!0);let a=o.useCallback((n,i)=>{if(!window.Intercom&&!d){p(\"warn\",\"Intercom instance is not initialized because `shouldInitialize` is set to `false` in `IntercomProvider`\");return}if(!g.current){p(\"warn\",[`\"${n}\" was called but Intercom has not booted yet. `,`Please call 'boot' before calling '${n}' or `,\"set 'autoBoot' to true in the IntercomProvider.\"].join(\"\"));return}return i()},[d]),S=o.useCallback(()=>{g.current&&(s(\"shutdown\"),delete window.intercomSettings,g.current=!1);},[]),D=o.useCallback(()=>{g.current&&(s(\"shutdown\"),delete window.Intercom,delete window.intercomSettings,g.current=!1);},[]),M=o.useCallback(()=>{a(\"update\",()=>{let n=Math.floor(new Date().getTime()/1e3);s(\"update\",{last_request_at:n});});},[a]),E=o.useCallback(n=>{a(\"update\",()=>{if(!n){M();return}let i=y(n);window.intercomSettings=m(m({},window.intercomSettings),i),s(\"update\",i);});},[a,M]),T=o.useCallback(()=>{a(\"hide\",()=>{s(\"hide\");});},[a]),$=o.useCallback(()=>{a(\"show\",()=>s(\"show\"));},[a]),V=o.useCallback(()=>{a(\"showMessages\",()=>{s(\"showMessages\");});},[a]),z=o.useCallback(n=>{a(\"showNewMessage\",()=>{n?s(\"showNewMessage\",n):s(\"showNewMessage\");});},[a]),L=o.useCallback(()=>a(\"getVisitorId\",()=>s(\"getVisitorId\")),[a]),N=o.useCallback(n=>{a(\"startTour\",()=>{s(\"startTour\",n);});},[a]),q=o.useCallback((n,i)=>{a(\"trackEvent\",()=>{i?s(\"trackEvent\",n,i):s(\"trackEvent\",n);});},[a]),O=o.useCallback(n=>a(\"showArticle\",()=>{s(\"showArticle\",n);}),[a]),B=o.useCallback(n=>a(\"showSpace\",()=>{s(\"showSpace\",n);}),[a]),U=o.useCallback(n=>{a(\"startSurvey\",()=>{s(\"startSurvey\",n);});},[a]),oe=o.useMemo(()=>({boot:C,shutdown:S,hardShutdown:D,update:E,hide:T,show:$,isOpen:k,showMessages:V,showNewMessage:z,getVisitorId:L,startTour:N,trackEvent:q,showArticle:O,startSurvey:U,showSpace:B}),[C,S,D,E,T,$,k,V,z,L,N,q,O,U,B]);return o.createElement(P.Provider,{value:oe},c)},X=()=>{let e=o.useContext(P);if(e===void 0)throw new Error('\"useIntercom\" must be used within `IntercomProvider`.');return e};var ue=()=>X();\n\nexport { le as IntercomProvider, ue as useIntercom };\n//# sourceMappingURL=out.js.map\n//# sourceMappingURL=index.mjs.map"],"names":["falsyToString","value","concat","cx","_len","arguments","length","classes","_key","flat","Infinity","filter","Boolean","join","cva","base","config","ref","variants","props","class","className","defaultVariants","getVariantClassNames","Object","keys","map","variantProp","variant","defaultVariantProp","variantKey","propsWithoutUndefined","entries","reduce","acc","param","key","undefined","compoundVariants","param1","cvClass","cvClassName","compoundVariantOptions","every","Array","isArray","includes","Button","forwardRef","as","Component","type","children","leftIcon","rightIcon","isDisabled","loading","loadingText","size","color","onlyIcon","mutedText","iconClassName","iconStyles","_jsx","cn","buttonStyles","disabled","_jsxs","_Fragment","Loader2Filled","cloneElement","filled","muted","ghost","dashed","true","blurEffect","default","cta","destructive","xs","sm","md","lg","xl","inputs","twMerge","clsx","withBaseIcon","width","height","viewBox","fill","role","d","stroke","strokeWidth","strokeLinecap","strokeLinejoin","iconName","displayName","__webpack_exports__","Z","icon","rest","React","ErrorFallback","error","t","useTranslations","customErrorMessage","meta","title","retryActionText","resetErrorBoundary","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","main","jsxs","div","h4","h1","p","toString","message","Link","href","onClick","OpenSupportButton","intercom","useIntercom","show","re","defineProperty","R","getOwnPropertySymbols","j","prototype","hasOwnProperty","F","propertyIsEnumerable","W","e","r","enumerable","configurable","writable","m","call","H","c","indexOf","console","log","warn","I","window","A","forEach","s","Intercom","apply","ae","react__WEBPACK_IMPORTED_MODULE_0__","createContext","J","intercomSettings","w","document","l","q","u","push","f","setTimeout","createElement","async","src","getElementsByTagName","parentNode","insertBefore","readyState","attachEvent","addEventListener","ce","custom_launcher_selector","customLauncherSelector","alignment","vertical_padding","verticalPadding","horizontal_padding","horizontalPadding","hide_default_launcher","hideDefaultLauncher","session_duration","sessionDuration","action_color","actionColor","background_color","backgroundColor","Q","company_id","companyId","name","created_at","createdAt","plan","monthly_spend","monthlySpend","user_count","userCount","website","industry","customAttributes","ie","image_url","imageUrl","me","email","user_id","userId","phone","last_request_at","lastRequestAt","unsubscribed_from_emails","unsubscribedFromEmails","language_override","languageOverride","utm_campaign","utmCampaign","utm_content","utmContent","utm_medium","utmMedium","utm_source","utmSource","utm_term","utmTerm","avatar","user_hash","userHash","company","companies","y","le","de","appId","autoBoot","autoBootProps","onHide","onShow","onUnreadCountChange","onUserEmailSupplied","shouldInitialize","apiBase","v","initializeDelay","Y","g","useRef","b","x","n","startsWith","C","useCallback","i","app_id","api_base","current","k","h","useState","ee","te","a","S","D","M","Math","floor","Date","getTime","E","T","$","V","z","L","N","O","B","U","oe","useMemo","boot","shutdown","hardShutdown","update","hide","isOpen","showMessages","showNewMessage","getVisitorId","startTour","trackEvent","showArticle","startSurvey","showSpace","P","Provider","X","useContext","ue"],"sourceRoot":""}