userflow.js-self-hosted 0.1.1013066 → 0.1.1013102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BannerApp.js +1 -1
- package/DebuggerUI.js +1 -1
- package/EmbedApp.js +1 -1
- package/FlowChrome.js +2 -2
- package/NotificationsApp.js +1 -1
- package/ResourceCenterApp.js +1 -1
- package/hash.txt +1 -1
- package/package.json +1 -1
- package/userflow.js +1 -1
- package/vendor.core-js.js +1 -1
- package/vendor.fortawesome.pro-regular-svg-icons.js +1 -1
package/BannerApp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r
|
|
1
|
+
import{r,R as n}from"./vendor.react.js";import{x as s,E as x}from"./userflow.js";import{u as A,i as v}from"./client-context.js";import{o as R}from"./vendor.obj-str.js";import{u as C,a as D,D as O}from"./stylesheets.js";import{C as $}from"./vendor.fortawesome.pro-regular-svg-icons.js";import{u as P,S as W,b as Y,R as z,B as U}from"./use-selector-element-monitoring.js";import{g as H}from"./flow-condition-types.js";import{f as K,w as Z}from"./flow-host.styl.js";import{r as q}from"./vendor.react-dom.js";import{F as G}from"./Frame.js";import{h as i}from"./roots.js";import{u as J}from"./use-element-rect.js";import"./vendor.core-js.js";import"./vendor.object-assign.js";import"./vendor.phoenix.js";import"./vendor.uuid.js";import"./vendor.i18next.js";import"./vendor.babel.runtime.js";import"./vendor.react-i18next.js";import"./vendor.fortawesome.pro-solid-svg-icons.js";import"./vendor.date-fns.js";import"./vendor.scheduler.js";import"./use-window-resize.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[d]="1285af94-f9e6-47e6-a796-5f0aa73057f2",a._sentryDebugIdIdentifier="sentry-dbid-1285af94-f9e6-47e6-a796-5f0aa73057f2")}catch{}})();const Le=({session:a})=>{const d=A(),{version:c}=a,e=c.banner,p=C(c.theme),g=a.locale?a.locale.standardLocaleId:a.version.theme.languageId;r.useEffect(()=>{v.changeLanguage(g)},[g]);const t=r.useMemo(()=>document.createElement("div"),[]),[k,w]=r.useState(!1),{loaded:T}=D(window,K,p),[I,h]=r.useState(!1),E=T&&I,[M,B]=r.useState(0),u=r.useCallback(()=>{h(!1),B(o=>o+1)},[]),f=![s.BODY_FIRST,s.BODY_LAST].includes(e.embedMode),[l,S]=r.useState(null),F=r.useCallback(({targetEl:o})=>{S(o)},[]),N=r.useCallback(()=>{f&&console.warn(`Userflow.js: Could not find embed element for banner "${a.flow.name||a.flow.id}"`),S(null)},[f,a.flow.name,a.flow.id]);P({selector:e.embedSelector,targetMoved:F,targetLost:N});const b=r.useCallback(()=>{t.parentElement?.removeChild(t),w(!1),u()},[t,u]);r.useLayoutEffect(()=>{let o=null,m=null;if(f){if(!l){b();return}(e.overlay||e.sticky)&&(e.embedMode===s.ELEMENT_BEFORE||e.embedMode===s.ELEMENT_AFTER?m=l.parentElement:m=l,window.getComputedStyle(m).position==="static"&&(o=m.style.position,m.style.position="relative"))}switch(e.embedMode){case s.BODY_FIRST:document.body.insertAdjacentElement("afterbegin",t);break;case s.BODY_LAST:document.body.insertAdjacentElement("beforeend",t);break;case s.ELEMENT_FIRST:l.insertAdjacentElement("afterbegin",t);break;case s.ELEMENT_LAST:l.insertAdjacentElement("beforeend",t);break;case s.ELEMENT_BEFORE:l.insertAdjacentElement("beforebegin",t);break;case s.ELEMENT_AFTER:l.insertAdjacentElement("afterend",t);break}return w(!0),u(),()=>{m&&o!=null&&(m.style.position=o)}},[b,t,f,l,e.overlay,e.sticky,e.embedMode,u]),r.useLayoutEffect(()=>b,[b]);const L=R({"userflowjs-banner":!0,[`userflowjs-banner--animate-${String(e.animate)}`]:!0,[`userflowjs-banner--embed-mode-${e.embedMode}`]:!0,[`userflowjs-banner--sticky-${String(e.sticky)}`]:!0,[`userflowjs-banner--overlay-${e.overlay}`]:!0});r.useLayoutEffect(()=>{t.className=L||""},[t,L]);const y=e.zIndex||Z(0);r.useLayoutEffect(()=>{t.style.zIndex=y==null?"":String(y),t.style.position=E?"":"absolute",t.style.visibility=E?"":"hidden"},[t,y,E]);const{height:j,setEl:_}=J();return r.useLayoutEffect(()=>{t.style.setProperty("--userflowjs-banner-height",i(j+(e.marginTop||0)+(e.marginBottom||0))||"")},[t,j,e.marginTop,e.marginBottom]),k?q.createPortal(n.createElement(W.Provider,{value:a},n.createElement(G,{key:M,className:"userflowjs-banner-frame",style:{maxWidth:i(e.maxWidth),marginTop:i(e.marginTop),marginRight:i(e.marginRight),marginBottom:i(e.marginBottom),marginLeft:i(e.marginLeft),borderRadius:i(e.borderRadius)},stylesheet:Y,theme:p,onStylesheetsLoad:h,title:"Banner"},n.createElement("div",{ref:_,className:R({"userflowjs-banner-root":!0,[`userflowjs-banner-root--content-layout-${e.contentLayout}`]:!0,"userflowjs-theme-root":!0}),dir:v.dir()},n.createElement("div",{className:"userflowjs-banner-start-spacer"}),n.createElement("div",{className:"userflowjs-banner-inner",style:{maxWidth:i(e.maxContentWidth)}},n.createElement("div",{className:"userflowjs-banner-content"},n.createElement(z,{doc:e.content,lookupAttribute:H(a.data)})),e.buttons.length>0&&n.createElement("div",{className:"userflowjs-banner-buttons"},e.buttons.map(o=>n.createElement(U,{key:o.id,button:o})))),c.closeDisabled?n.createElement("div",{className:"userflowjs-banner-start-spacer"}):n.createElement("button",{"data-testid":"userflow-banner-dismiss",className:"userflowjs-banner-close",onClick:()=>d.endFlow(a,{endReason:x.USER_CLOSED})},n.createElement(O,{icon:$}))))),t):null};export{Le as BannerApp,Le as default};
|
|
2
2
|
//# sourceMappingURL=BannerApp.js.map
|
package/DebuggerUI.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["flow-condition-types.js","userflow.js","vendor.core-js.js","vendor.phoenix.js","vendor.uuid.js","vendor.date-fns.js","vendor.babel.runtime.js","roots.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as i,R as e}from"./vendor.react.js";import{r as he}from"./vendor.react-dom.js";import{u as q,U as ct}from"./client-context.js";import{d as _e,a as G,b as M,c as Y,e as se,f as d,A as Fe,W as R,g as z,h as O,S as ut,i as dt,_ as mt,j as pt}from"./userflow.js";import{F as ft}from"./Frame.js";import{S as gt}from"./logomark.js";import{f as X,a as ht,b as Ce,c as qe,d as U,e as Et,g as Ge,h as ye,i as vt,j as bt,k as ze,l as wt,m as _t,n as W,o as A,p as Ct,q as Ye,r as yt,s as xt,t as Nt,u as Tt,v as St,w as Ot,x as Z,y as Dt,z as je,A as Pt,B as It,C as Ft,D as Rt,E as Lt,F as Mt,G as me,H as At}from"./vendor.fortawesome.pro-regular-svg-icons.js";import{f as Ut,a as kt}from"./vendor.fortawesome.pro-solid-svg-icons.js";import{D as m}from"./stylesheets.js";import{o as E}from"./vendor.obj-str.js";import"./vendor.core-js.js";import{_ as Ee,l as Xe}from"./vendor.lodash.js";import{F as ve}from"./vendor.fortawesome.react-fontawesome.js";import"./vendor.react-day-picker.js";import{f as xe,p as Vt,a as Ht}from"./vendor.date-fns.js";import{m as Bt}from"./vendor.memoize-one.js";import{c as Wt}from"./roots.js";import"./vendor.object-assign.js";import"./vendor.scheduler.js";import"./vendor.i18next.js";import"./vendor.babel.runtime.js";import"./vendor.react-i18next.js";import"./vendor.phoenix.js";import"./vendor.uuid.js";import"./flow-condition-types.js";import"./vendor.fortawesome.fontawesome-svg-core.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="7a3460b8-eec6-424d-8349-aa7175beed06",t._sentryDebugIdIdentifier="sentry-dbid-7a3460b8-eec6-424d-8349-aa7175beed06")}catch{}})();const qt=new URL("debugger.css",import.meta.url).href,$e=i.createContext(void 0),F=()=>i.useContext($e),Ke=i.createContext(null),Ne=()=>i.useContext(Ke),Ze=i.createContext({debuggerClientConditions:new Map,meta:void 0,buildId:void 0}),J=()=>i.useContext(Ze),oe={verifySetup:{name:"Verify setup",icon:X},checkAutoStart:{name:"Check auto-start",icon:ht},currentUser:{name:"Current user",icon:Ce}},Qe=i.createContext(void 0),Gt=({children:t})=>{const n=q(),[r,s]=i.useState(n.getSessionStorageState().debuggerApp?.selectedTab??"verifySetup");return i.useEffect(()=>{n.setSessionStorageState(o=>!o.debuggerApp||!o.debuggerApp.x?o:{...o,debuggerApp:{...o.debuggerApp,selectedTab:r}}),_e("Debugger Route changed to",r)},[r]),e.createElement(Qe.Provider,{value:{debuggerRoute:r,setDebuggerRoute:s}},t)},Te=()=>{const t=i.useContext(Qe);if(t===void 0)throw new Error("useDebuggerRouteHandler must be used within a DebuggerRouteProvider");return{debuggerRoute:t.debuggerRoute,setDebuggerRoute:t.setDebuggerRoute}},zt=t=>{const n=i.useRef(null),r=Ne();return i.useEffect(()=>{const s=r?.current,o=a=>{n.current&&!n.current.contains(a.target)&&t(a)};return document.addEventListener("mousedown",o),s?.contentDocument?.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o),s?.contentDocument?.removeEventListener("mousedown",o)}},[t,r,n]),n},Yt=()=>e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M18.4393 5.56066C18.158 5.27936 18 4.89782 18 4.5C18 4.10218 18.158 3.72064 18.4393 3.43934C18.7206 3.15804 19.1022 3 19.5 3C19.8978 3 20.2794 3.15804 20.5607 3.43934C20.842 3.72064 21 4.10218 21 4.5C21 4.89782 20.842 5.27936 20.5607 5.56066C20.2794 5.84196 19.8978 6 19.5 6C19.1022 6 18.7206 5.84196 18.4393 5.56066Z",fill:"#537388"}),e.createElement("path",{d:"M3.43934 5.56066C3.15804 5.27936 3 4.89782 3 4.5C3 4.10218 3.15804 3.72064 3.43934 3.43934C3.72064 3.15804 4.10218 3 4.5 3C4.89782 3 5.27936 3.15804 5.56066 3.43934C5.84196 3.72064 6 4.10218 6 4.5C6 4.89782 5.84196 5.27936 5.56066 5.56066C5.27936 5.84196 4.89782 6 4.5 6C4.10218 6 3.72064 5.84196 3.43934 5.56066Z",fill:"#537388"}),e.createElement("path",{d:"M10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12C10.5 11.6022 10.658 11.2206 10.9393 10.9393C11.2206 10.658 11.6022 10.5 12 10.5C12.3978 10.5 12.7794 10.658 13.0607 10.9393C13.342 11.2206 13.5 11.6022 13.5 12C13.5 12.3978 13.342 12.7794 13.0607 13.0607C12.7794 13.342 12.3978 13.5 12 13.5C11.6022 13.5 11.2206 13.342 10.9393 13.0607Z",fill:"#537388"}),e.createElement("path",{d:"M3.43934 20.5607C3.15804 20.2794 3 19.8978 3 19.5C3 19.1022 3.15804 18.7206 3.43934 18.4393C3.72064 18.158 4.10218 18 4.5 18C4.89782 18 5.27936 18.158 5.56066 18.4393C5.84196 18.7206 6 19.1022 6 19.5C6 19.8978 5.84196 20.2794 5.56066 20.5607C5.27936 20.842 4.89782 21 4.5 21C4.10218 21 3.72064 20.842 3.43934 20.5607Z",fill:"#537388"}),e.createElement("path",{d:"M3.43934 13.0607C3.15804 12.7794 3 12.3978 3 12C3 11.6022 3.15804 11.2206 3.43934 10.9393C3.72064 10.658 4.10218 10.5 4.5 10.5C4.89782 10.5 5.27936 10.658 5.56066 10.9393C5.84196 11.2206 6 11.6022 6 12C6 12.3978 5.84196 12.7794 5.56066 13.0607C5.27936 13.342 4.89782 13.5 4.5 13.5C4.10218 13.5 3.72064 13.342 3.43934 13.0607Z",fill:"#537388"}),e.createElement("path",{d:"M10.9393 5.56066C10.658 5.27936 10.5 4.89782 10.5 4.5C10.5 4.10218 10.658 3.72064 10.9393 3.43934C11.2206 3.15804 11.6022 3 12 3C12.3978 3 12.7794 3.15804 13.0607 3.43934C13.342 3.72064 13.5 4.10218 13.5 4.5C13.5 4.89782 13.342 5.27936 13.0607 5.56066C12.7794 5.84196 12.3978 6 12 6C11.6022 6 11.2206 5.84196 10.9393 5.56066Z",fill:"#537388"})),jt={prefix:"far",iconName:"custom-hand-pointer-slash",icon:[641,512,[],"???","M185.554191,59.5126699 C189.248662,26.0794907 217.382589,0 251.429,0 C287.979,0 317.715,30.056 317.715,67 L317.715,140.634 C338.128,137.776 359.183,144.576 374.31,160.263 C401.503,147.416 434.689,154.593 454.182,179.361 C497.375,162.727 544,195.156 544,242 L544,326 C544,330.296189 543.590626,334.580726 542.780274,338.796073 L495.999,302.221942 L495.999,242 C495.999,216.84 459.428,216.879 459.428,242 C459.428,250.836 452.265,258 443.428,258 L439.435556,258 L420.622383,243.291649 C420.588346,242.865584 420.571,242.434817 420.571,242 L420.571,221 C420.571,197.943344 389.858993,196.049429 384.724023,215.225903 L269.713,125.308981 L269.713,67 C269.713,41.84 233.142,41.88 233.142,67 L233.142,96.717359 L185.554191,59.5126699 Z M162.172457,223.995642 L233.142,279.479508 L233.142,308.493 C233.142,324.063 213.106,330.402 204.111,317.776 L176.985,279.697 C162.585,259.485 133.185,282.08 147.591,302.303 L257.303,456.303 C260.737,461.122 266.231,464 272,464 L450.285,464 C455.041109,464 459.427079,462.119816 462.713129,458.957818 L500.616335,488.590478 C488.331086,503.061811 470.146238,512 450.286,512 L272,512 C250.741,512 230.632,501.59 218.209,484.154 L108.51,330.153 C87.267,300.334 93.705,258.796 123.06,237.001 C134.952446,228.171597 148.664261,223.998532 162.172457,223.995642 Z M272.143,309.970422 L306.143,336.551563 L306.143,400 C306.143,408.837 299.875,416 292.143,416 L286.143,416 C278.41,416 272.143,408.837 272.143,400 L272.143,309.970422 Z M347.571,368.939901 L381.571,395.521042 L381.571,400 C381.571,408.837 375.303,416 367.571,416 L361.571,416 C353.839,416 347.571,408.837 347.571,400 L347.571,368.939901 Z M633.994211,471.020009 C640.904211,476.540009 642.014211,486.610009 636.494211,493.510009 L626.494211,506 C620.964211,512.890009 610.904211,514.010009 604.004211,508.490009 L6.00421069,40.9800088 C-0.895789309,35.4600088 -2.01578931,25.3900088 3.51421069,18.4900088 L13.5142107,6 C19.0342107,-0.899991212 29.1042107,-2.00999121 36.0042107,3.51000879 L633.994211,471.020009 Z"]},Xt={CLICK:qe,DISABLED:U,MOUSEDOWN:Et,NOT_CLICK:jt,NOT_DISABLED:X,NOT_PRESENT:Ge,PRESENT:ye},$t={COMPLETED:X,NOT_COMPLETED:U,NOT_SEEN:Ge,ACTIVE:vt,NOT_ACTIVE:bt,SEEN:ye},Kt={CLICK:"is clicked",DISABLED:"is disabled",MOUSEDOWN:"has mouse down on it",NOT_CLICK:"is not clicked",NOT_DISABLED:"is not disabled",NOT_PRESENT:"is not present",PRESENT:"is present"};function Zt(t){return Kt[t]}const Qt={COMPLETED:"completed",NOT_COMPLETED:"not completed",NOT_SEEN:"not seen",ACTIVE:"is currently active",NOT_ACTIVE:"is not currently active",SEEN:"seen"};function Jt(t){return Qt[t]}function en(t,n){let r=(n||"").toLowerCase();return(t.eventTimeOperator===M.RELATIVE_BETWEEN?t.eventRelativeValue2:t.eventRelativeValue)!==1&&(r+="s"),t.eventTimeOperator!==M.RELATIVE_GT&&(r+=" ago"),r}function tn(t){return(t.eventFrequencyOperator===Y.BETWEEN?t.eventFrequencyValue2:t.eventFrequencyValue)===1?"time":"times"}const nn={CURRENT_USER:"by current user in any company",CURRENT_USER_CURRENT_GROUP:"by current user in current company",CURRENT_GROUP:"by any user in current company"};function rn(t){return nn[t]}function sn(t){if(!t)return"";switch(t){case Y.BETWEEN:return"between";case Y.EQ:return"exactly";case Y.GTE:return"at least";case Y.LTE:return"at most"}}function on(t){if(!t)return"";switch(t){case M.ANY:return"at any point in time";case M.RELATIVE_BETWEEN:return"between";case M.RELATIVE_GT:return"in the last";case M.RELATIVE_LT:return"more than"}}const an={1:"Lowest",2:"Low",3:"Medium",4:"High",5:"Highest"};function ln(t){return`${an[t]||String(t)} priority`}function be(t,n){switch(t){case se.DAY:return n===1?"day":"days";case se.HOUR:return n===1?"hour":"hours";case se.MINUTE:return n===1?"minute":"minutes";case se.SECOND:return n===1?"second":"seconds"}}function Re(t){switch(t){case"USER":return Ce;case"GROUP":return _t;case"GROUP_MEMBERSHIP":return wt;case"EVENT":return ze}}function cn(t){const n=t.split("/");if(n.length===1)return["USER",t];switch(n[0]){case"group":return["GROUP",n[1]];case"group_membership":return["GROUP_MEMBERSHIP",n[1]];case"event":return["EVENT",n[1]]}return console.warn("parseAttributeDefinitionFqn: Invalid attribute definition FQN",t),["USER",t]}const un={[G.BANNER]:"banner",[G.CHECKLIST]:"checklist",[G.FLOW]:"flow",[G.EMBED]:"embed",[G.LAUNCHER]:"launcher",[G.RESOURCE_CENTER]:"resource center"};function dn(t,{title:n,plural:r}={}){let s=un[t];return n&&(s=Ee.upperFirst(s)),r&&(s+="s"),s}let Le=!1;const Q=[];function Me(t){Q.push(t),Le||(Le=!0,window.addEventListener("keydown",n=>{if(n.key==="Escape"){const r=Q[Q.length-1];r&&(r(),n.stopImmediatePropagation())}}))}function Ae(t){const n=Q.indexOf(t);n>=0&&Q.splice(n,1)}const I=[];let Se=0;typeof window<"u"&&window.document.documentElement.addEventListener("mousedown",()=>Se++,{capture:!0});function mn(t){const n={cmp:t,zIndex:Je(),mountMouseDownCounter:Se};I.push(n),I.length===1&&document.documentElement.addEventListener("click",et,{capture:!0})}function pn(t){const n=I.findIndex(r=>r.cmp===t);I.splice(n,1),I.length===0&&document.documentElement.removeEventListener("click",et,{capture:!0})}function fn(t){const n=I.find(r=>r.cmp===t);return n?n.zIndex:Je()}function Je(){const t=I[I.length-1];return t?t.zIndex+100:1e3}function gn(t,n){const r=t.rootRef.current;return!!r&&r.contains(n)}function et(t){const n=t.target;if(n.closest("#userflow-ui, #notifications"))return;const r=I.findIndex(s=>gn(s.cmp,n));for(let s=I.length-1;s>r;s--){const o=I[s];o&&o.mountMouseDownCounter<Se&&o.cmp.closeLayer(t)}}const we=8,hn=we*2,En=8,Ue=50,j=8,ke=24,vn=8;class tt extends e.PureComponent{constructor(){super(...arguments),this.rootRef=e.createRef(),this.notchRef=e.createRef(),this.bodyRef=e.createRef(),this.state={},this.onAnimationFrame=()=>{this.reposition(),this.requestAnimationFrame()},this.onClick=n=>{n.stopPropagation(),this.props.onClick&&this.props.onClick(n)},this.closeLayer=n=>{if(this.props.ignoreTargetClick){const r=this.props.target,s=n.target;if(r&&s&&r.contains(s))return}this.fireOnDismiss({reason:"outside-click",event:n})},this.onEscape=()=>this.fireOnDismiss({reason:"escape"})}get el(){return this.rootRef.current}componentDidMount(){mn(this),this.props.onDismiss&&Me(this.onEscape),window.addEventListener("userflow:hideAllPopovers",this.closeLayer),this.requestAnimationFrame(),this.reposition()}componentWillUnmount(){pn(this),Ae(this.onEscape),window.removeEventListener("userflow:hideAllPopovers",this.closeLayer),window.cancelAnimationFrame(this.raf)}componentDidUpdate(n){const{props:r}=this;this.reposition(),!n.onDismiss&&r.onDismiss?Me(this.onEscape):n.onDismiss&&!r.onDismiss&&Ae(this.onEscape)}render(){const{props:n}=this,r=this.state,s=["popover"];n.className&&s.push(n.className),s.push(`popover--placement-${r.actualPlacement}`);const o=e.createElement("div",{className:s.join(" "),ref:this.rootRef,onMouseDown:n.onMouseDown,onMouseEnter:n.onMouseEnter,onClick:this.onClick,style:{zIndex:fn(this)}},e.createElement("div",{className:"popover__body",ref:this.bodyRef},n.children),!n.noNotch&&this.renderNotch());return he.createPortal(o,(n.document||document).body)}renderNotch(){const n=we,r=n*2;return e.createElement("div",{ref:this.notchRef,className:"popover__notch"},e.createElement("svg",{viewBox:`0 0 ${r} ${n}`},e.createElement("polygon",{className:"popover__notch-border",points:`${r/2},0 ${r},${n} 0,${n}`}),e.createElement("polygon",{className:"popover__notch-fill",points:`${r/2},1 ${r},${n+1} 0,${n+1}`})))}requestAnimationFrame(){this.raf=window.requestAnimationFrame(this.onAnimationFrame)}reposition(){const{props:n}=this,r=n.target,s=this.rootRef.current,o=this.notchRef.current,a=n.placement||"bottom",l=ae(a),c=!!n.forceDimension,g=n.horizontalAlign,_=n.verticalAlign,h=!!n.noNotch,v=document.documentElement.clientWidth,y=document.documentElement.clientHeight,p=r?.getBoundingClientRect(),b=p?.left,f=p?.top,w=p?.width,u=p?.height;let C=n.width;n.matchWidth&&(C=w);let x=n.minWidth;n.matchMinWidth&&w!=null&&(x=Math.max(w,x||0)),(this.lastPopoverCssWidth!==C||this.lastPopoverMinWidth!==x)&&(s.style.width=C==null?"":Math.round(C)+"px",s.style.minWidth=x==null?"":Math.round(x)+"px");const k=s.getBoundingClientRect(),D=k?.width,P=k?.height,V=parseInt((window.getComputedStyle(s).borderTopLeftRadius||"").replace(/px/,""),10),ee=window.scrollX,te=window.scrollY;if(this.lastPlacement===a&&this.lastForceDimension===c&&this.lastHorizontalAlign===g&&this.lastVerticalAlign===_&&this.lastNoNotch===h&&this.lastViewportWidth===v&&this.lastViewportHeight===y&&this.lastTargetX===b&&this.lastTargetY===f&&this.lastTargetWidth===w&&this.lastTargetHeight===u&&this.lastPopoverCssWidth===C&&this.lastPopoverMinWidth===x&&this.lastPopoverWidth===D&&this.lastPopoverHeight===P&&this.lastPopoverBorderRadius===V&&this.lastScrollX===ee&&this.lastScrollY===te)return;let ne,H=null;if(b!=null&&f!=null&&w!=null&&u!=null){ne=!0;const L=h?0:En,Pe=Ve(b,w,D,v,g||"left"),Ie=Ve(f,u,P,y,_||"top");let re=[{placement:"top",x:Pe,y:f-P-L,fits:P<f-L-j},{placement:"bottom",x:Pe,y:f+u+L,fits:P<y-(f+u)-L-j},{placement:"left",x:b-D-L,y:Ie,fits:D<=b-L-j},{placement:"right",x:b+w+L,y:Ie,fits:D<=v-(b+w)-L-j}];c&&(re=re.filter(T=>ae(T.placement)===l)),re.sort((T,N)=>{const S=ae(T.placement),B=ae(N.placement);return T.fits!==N.fits?T.fits?-1:1:T.placement===a?-1:N.placement===a?1:S!==B?S===l?-1:1:T.placement==="bottom"||T.placement==="right"?-1:1});const de=re[0];let $=de.x,K=de.y;if(H=de.placement,$+=ee,K+=te,$=Math.round($),K=Math.round(K),s.style.transform=`translate3d(${$}px, ${K}px, 0px)`,!h&&o){const T=Math.max(vn,V);let N,S;if(H==="left"||H==="right"){const B=f+u/2-we/2;u<=Ue||_==="center"?S=B:S=Math.min(f,B),S+=-K+te,S=Math.max(T,Math.min(P-T,S))}else{const B=b+w/2-hn/2;w<=Ue||g==="center"?N=B:N=Math.min(b,B),N+=-$+ee,N=Math.max(T,Math.min(D-T,N))}N=N&&Math.round(N),S=S&&Math.round(S),o.style.left=N==null?"":N+"px",o.style.top=S==null?"":S+"px"}}else ne=!1,s.style.transform="translate3d(-999999px, -999999px, 0px)";ne&&!this.lastVisible&&n.onShow&&n.onShow(),H!==this.lastActualPlacement&&(this.setState({actualPlacement:H}),n.onPlacementChange&&n.onPlacementChange(H)),this.lastVisible=ne,this.lastPlacement=a,this.lastActualPlacement=H,this.lastForceDimension=c,this.lastHorizontalAlign=g,this.lastVerticalAlign=_,this.lastNoNotch=h,this.lastViewportWidth=v,this.lastViewportHeight=y,this.lastTargetX=b,this.lastTargetY=f,this.lastTargetWidth=w,this.lastTargetHeight=u,this.lastPopoverCssWidth=C,this.lastPopoverMinWidth=x,this.lastPopoverWidth=D,this.lastPopoverHeight=P,this.lastPopoverBorderRadius=V,this.lastScrollX=ee,this.lastScrollY=te}fireOnDismiss(n){const{onDismiss:r}=this.props;r&&r(n),!this.props.noTargetRefocus&&n.reason==="escape"&&this.props.target&&this.props.target.focus()}}function ae(t){return t==="left"||t==="right"?"x":"y"}function Ve(t,n,r,s,o){let a;return o==="center"?a=t+n/2-r/2:a=t,a=Math.max(a,j),a=Math.min(a,s-r-j),a=Math.max(a,t+ke-r),a=Math.min(a,t+n-ke),a}const bn=["yyyy-MM-dd","yyyy/MM/dd","MM-dd yyyy","MM/dd yyyy","MM-dd-yyyy","MM/dd/yyyy","MM-dd","MM/dd","dd MMM yyyy","dd MMMM yyyy","MMM dd yyyy","MMMM dd yyyy","dd MMM","dd MMMM","MMM dd","MMMM dd"],wn=["hh:mmaaa","hh.mmaaa","hh:mm aaa","hh.mm aaa","HH:mm","HH.mm","hhaaa","hh aaa","HH"];for(const t of bn)for(const n of wn);const _n="d MMM yyyy";function He(t){if(t==null)return"";const n=yn?t.getMinutes()===0?"h aaa":"h:mm aaa":"HH:mm";return xe(t,_n+", "+n)}function Cn(t){if(!t)return null;const n=Vt(t,"yyyy-MM-dd",new Date);return isNaN(n.valueOf())?null:n}function Be(t){if(!t)return null;const n=Ht(t);return isNaN(n.valueOf())?null:n}const yn=Intl.DateTimeFormat(Intl.DateTimeFormat().resolvedOptions().locale,{hour:"numeric"}).resolvedOptions().hourCycle==="h12";var nt=(t=>(t.EVENT="EVENT",t.GROUP="GROUP",t.GROUP_MEMBERSHIP="GROUP_MEMBERSHIP",t.USER="USER",t))(nt||{});function ce(){const[t,n]=i.useState(!1),r=i.useRef(null),s=i.useCallback(()=>n(!0),[]),o=i.useCallback(()=>n(!1),[]),a=i.useCallback(()=>n(!0),[]),l=i.useCallback(()=>n(!1),[]);return{ref:r,hovered:t,eventHandlers:{onPointerEnter:s,onPointerLeave:o,onFocus:a,onBlur:l}}}function We(t){return({condition:n})=>{throw new Error(`conditionOperators.${n.operator}.${t} is not supported`)}}const pe={[d.ABSOLUTE_EQ]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"on")," ",e.createElement("span",{className:"nowrap text-bold"},ge(t.value)))},[d.ABSOLUTE_GT]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"after")," ",e.createElement("span",{className:"nowrap text-bold"},ge(t.value)))},[d.ABSOLUTE_LT]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"before")," ",e.createElement("span",{className:"nowrap text-bold"},ge(t.value)))},[d.AND]:{Preview:We("Preview")},[d.BETWEEN]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is between")," ",e.createElement("b",null,t.value)," ",e.createElement("span",{className:"text-secondary"},"and")," ",e.createElement("b",null,t.value2))},[d.CONTAINS]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"contains")," ",e.createElement("b",null,t.value))},[d.EMPTY]:{Preview:()=>e.createElement("span",{className:"text-secondary"},"is empty")},[d.ENDS_WITH]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"ends with")," ",e.createElement("b",null,t.value))},[d.EQ]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is")," ",e.createElement("b",null,t.dataType===Fe.FLOW&&t.value?e.createElement("span",null,t?.eventDisplayName??t.eventName):t.value))},[d.EXCLUDES_ALL]:{Preview:({condition:t})=>le(t,"does not include","all of")},[d.EXCLUDES_ANY]:{Preview:({condition:t})=>le(t,"does not include","at least one of")},[d.FALSE]:{Preview:()=>e.createElement("span",{className:"text-secondary"},"is false")},[d.GT]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is greater than")," ",e.createElement("b",null,t.value))},[d.GTE]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is greater than or equal to")," ",e.createElement("b",null,t.value))},[d.INCLUDES_ALL]:{Preview:({condition:t})=>le(t,"includes","all of")},[d.INCLUDES_ANY]:{Preview:({condition:t})=>le(t,"includes","at least one of")},[d.LT]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is less than")," ",e.createElement("b",null,t.value))},[d.LTE]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is less than or equal to")," ",e.createElement("b",null,t.value))},[d.NE]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is not")," ",e.createElement("b",null,t.dataType===Fe.FLOW&&t.value?e.createElement("span",null," ",t?.eventDisplayName??t.eventName):t.value))},[d.NOT_CONTAINS]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"does not contain")," ",e.createElement("b",null,t.value))},[d.NOT_EMPTY]:{Preview:()=>e.createElement("span",{className:"text-secondary"},"has any value")},[d.NOT_REGEX]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"does not match")," ",e.createElement("b",null,t.value))},[d.OR]:{Preview:We("Preview")},[d.REGEX]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"matches")," ",e.createElement("b",null,t.value))},[d.RELATIVE_EQ]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"exactly")," ",e.createElement("span",{className:"nowrap text-bold"},fe(t.value))," ",e.createElement("span",{className:"text-secondary"},"ago"))},[d.RELATIVE_GT]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"less than")," ",e.createElement("span",{className:"nowrap text-bold"},fe(t.value))," ",e.createElement("span",{className:"text-secondary"},"ago"))},[d.RELATIVE_LT]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"more than")," ",e.createElement("span",{className:"nowrap text-bold"},fe(t.value))," ",e.createElement("span",{className:"text-secondary"},"ago"))},[d.STARTS_WITH]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"starts with")," ",e.createElement("b",null,t.value))},[d.TRUE]:{Preview:()=>e.createElement("span",{className:"text-secondary"},"is true")},[d.URL]:{Preview:({condition:t})=>{const{urlPattern:n}=t;if(!n)return e.createElement("span",{className:"text-secondary"},"matches ...");const{includes:r,excludes:s}=n;return e.createElement(e.Fragment,null,r.length>0&&e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"matches")," ",r.map((o,a)=>e.createElement(e.Fragment,{key:a},a>0&&e.createElement("span",{className:"text-secondary"},", "),e.createElement("b",null,o)))),r.length>0&&s.length>0&&e.createElement("span",{className:"text-secondary"}," and "),s.length>0&&e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"does not match")," ",s.map((o,a)=>e.createElement(e.Fragment,{key:a},a>0&&e.createElement("span",{className:"text-secondary"},", "),e.createElement("b",null,o)))))}}};function xn(t){return parseInt(t,10)}function fe(t){if(!t)return"days";const n=xn(t);return isNaN(n)?"days":n+" "+(n===1?"day":"days")}function ge(t){if(!t)return"";const n=Cn(t);return n?xe(n,"PP"):""}function le(t,n,r){const s=t.values||[];return e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},n+(s.length>1?" "+r:""))," ",s.map((o,a)=>e.createElement(e.Fragment,{key:a},a>0&&e.createElement("span",{className:"text-secondary"},", "),e.createElement("b",{key:a},o))))}const Oe=t=>({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__success":t===!0,"userflow-debugger-condition__item__danger":t===!1,"userflow-debugger-condition__item__intermediate":t===null}),De=t=>t===!0?A:t===!1?U:W,rt=(t,n)=>{const r=F();return i.useMemo(()=>{const a=(n?r?.hiddenCondition?.breakdown:r?.startCondition?.breakdown)?.find(l=>l.conditionId===t.id);return{classes:Oe(a?.match),icon:De(a?.match)}},[t,r,n])},ie=t=>{const{condition:n,isHideCond:r}=t,{classes:s,icon:o}=rt(n,r),a=n.type;if(a===O.CLAUSE)return e.createElement(Tn,{...t});const l=ot[a];return e.createElement("div",{className:E(s)},e.createElement("span",{className:"d-flex gap-8 align-center userflow-debugger-condition__item__icon"},l.icon?e.createElement(m,{icon:l.icon({condition:n})}):null,e.createElement(l.Preview,{...t})),e.createElement(m,{dataAttrs:{"data-condition-status":"true"},icon:o}))},Nn=()=>{const t=F(),[n,r]=i.useState(!1),s=i.useMemo(()=>t?.hiddenCondition?.breakdown.find(a=>a.conditionId===t?.hiddenCondition?.condition.id),[t?.hiddenCondition]);return t?.hiddenCondition?.condition?e.createElement("div",{role:"button",className:E({"d-flex gap-8 flex-column margin-8":!0,"userflow-debugger-condition__clause":!0,"userflow-debugger-hide-condition__clause__success":s?.match===!0,"userflow-debugger-hide-condition__clause__danger":s?.match===!1,"userflow-debugger-hide-condition__clause__expanded":n}),onClick:o=>{r(!n),o.stopPropagation()}},e.createElement("div",{className:"d-flex gap-8 justify-space-between align-center"},e.createElement("span",null,"Termporarily hide flow"," ",e.createElement("span",{className:"userflow-debugger-info-text"},"Click to ",n?"collapse":"expand")),e.createElement(m,{icon:Z})),n&&e.createElement(ie,{isRoot:!0,isHideCond:!0,condition:t?.hiddenCondition?.condition})):null},Tn=({condition:t,isRoot:n=!1,isHideCond:r=!1})=>{const[s,o]=i.useState(!1),{classes:a,icon:l}=rt(t,r);return n?e.createElement(e.Fragment,null,t.conditions.map((c,g)=>e.createElement(ie,{isHideCond:r,key:g,condition:c}))):e.createElement("div",{role:"button",className:E({"d-flex flex-column gap-8":!0,"userflow-debugger-condition__clause":s,...s?{"userflow-debugger-condition__item__success__expanded":a["userflow-debugger-condition__item__success"],"userflow-debugger-condition__item__danger__expanded":a["userflow-debugger-condition__item__danger"],"userflow-debugger-condition__item__intermediate__expanded":a["userflow-debugger-condition__item__intermediate"]}:a}),onClick:c=>{o(!s),c.stopPropagation()}},e.createElement("div",{className:"d-flex justify-space-between align-center w-full"},e.createElement("span",{className:"d-flex gap-8 align-center"},e.createElement(m,{icon:Dt})," ",e.createElement("strong",null,"Logic Group")," ",e.createElement("span",{className:"userflow-debugger-info-text"},"Click to ",s?"collapse":"expand")),!s&&e.createElement(m,{dataAttrs:{"data-condition-status":"true"},icon:l})),s&&e.createElement(e.Fragment,null,t.conditions.map((c,g)=>e.createElement("div",{key:g,className:E({"userflow-debugger-condition__clause__operator__wrapper":!0})},g>0&&e.createElement("div",{className:E({"userflow-debugger-condition__clause__operator":!0})},e.createElement(st,{condition:t})),e.createElement(ie,{isHideCond:r,condition:c})))))},st=({condition:t})=>{const n=t.operator;return n?e.createElement("span",{className:E({"userflow-debugger-condition__item__operator":!0,"userflow-debugger-condition__item__operator__and":n===d.AND,"userflow-debugger-condition__item__operator__or":n===d.OR})},n===d.AND&&"AND",n===d.OR&&"OR"):null},Sn={[R.NONE]:U,[R.PENDING_SCHEDULE]:U,[R.SCHEDULED]:W,[R.FIRED]:A},On=e.memo(()=>{const t=F(),{waitTimer:n}=t||{},r=t?.startCondition?.condition.waitTime,{ref:s,hovered:o,eventHandlers:a}=ce();return!r||!n||n===R.NONE?null:e.createElement("div",{ref:s,...a,className:E({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__danger":n===R.PENDING_SCHEDULE,"userflow-debugger-condition__item__intermediate":n===R.SCHEDULED,"userflow-debugger-condition__item__success":n===R.FIRED})},e.createElement("span",{className:"d-flex gap-8 align-center"},e.createElement(m,{icon:Ct}),e.createElement("span",null,"Wait ",e.createElement("strong",null,r)," seconds")),e.createElement(m,{dataAttrs:{"data-condition-status":"true"},icon:Sn[n]}),e.createElement(ue,{target:s,hovered:o&&n===R.PENDING_SCHEDULE},"Timer activates once all conditions are satisfied"))}),Dn=e.memo(()=>{const t=F(),[n,r]=i.useState(!1),{startFrequency:s,listFlowLatestVersion:o}=t||{startFrequency:{}};if(!s||!o?.startFrequency||o?.startFrequency===z.NEVER)return null;const{currentFlowIntervalThrottle:a,frequency:l,frequencyUsage:c}=s,g=De(l),_=Oe(l);if(o.startFrequency===z.ONCE||o.startFrequency===z.ONCE_PER_GROUP)return e.createElement("div",{className:E(_)},e.createElement("span",{className:"d-flex gap-8 align-center"},e.createElement(m,{icon:Ye}),e.createElement("strong",null,"Once per user"," ",o.startFrequency===z.ONCE_PER_GROUP&&"per company")),e.createElement(m,{dataAttrs:{"data-condition-status":"true"},icon:g}));if(o.startFrequency===z.ALWAYS&&o.startIntervalValue&&o.startIntervalUnit)return e.createElement("div",{className:E({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__success":a===!0,"userflow-debugger-condition__item__intermediate":a===!1})},e.createElement("span",null,"Every ",e.createElement("strong",null,o.startIntervalValue)," ",e.createElement("span",{className:"userflow-debugger-info-text"},be(o.startIntervalUnit,o.startIntervalValue)," ","apart")),e.createElement(m,{dataAttrs:{"data-condition-status":"true"},icon:a===!1?W:A}));if(o.startFrequency===z.MULTIPLE){const h=l===!0&&a===!0,v=l===!0&&a===!1,y=l===!1;return e.createElement("div",{className:E({"d-flex flex-column gap-8":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__clause":n,...n?{"userflow-debugger-condition-frequency__success__expanded":h,"userflow-debugger-condition-frequency__intermediate__expanded":v,"userflow-debugger-condition-frequency__danger__expanded":y}:{"userflow-debugger-condition-frequency__success":h,"userflow-debugger-condition-frequency__intermediate":v,"userflow-debugger-condition-frequency__danger":y}}),onClick:p=>{r(!n),p.stopPropagation()}},e.createElement("div",{className:"d-flex gap-8 justify-space-between"},e.createElement("div",{className:"d-flex gap-8 align-center"},e.createElement("strong",null,"Start multiple times")," ",e.createElement("span",{className:"userflow-debugger-info-text"},"Click to expand")),!n&&e.createElement(m,{dataAttrs:{"data-condition-status":"true"},icon:h?A:v?W:U})),n&&e.createElement(e.Fragment,null,e.createElement("div",{className:E(_)},e.createElement("span",null,e.createElement("strong",null,o.startLimit)," ",e.createElement("span",{className:"userflow-debugger-info-text"},"(started ",c," times)")),e.createElement(m,{dataAttrs:{"data-condition-status":"true"},icon:g})),o.startIntervalUnit&&o.startIntervalValue&&e.createElement("div",{className:E({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__success":a===!0,"userflow-debugger-condition__item__intermediate":a===!1})},e.createElement("span",null,e.createElement("strong",null,o.startIntervalValue)," ",e.createElement("span",{className:"userflow-debugger-info-text"},be(o.startIntervalUnit,o.startIntervalValue)," ","apart")),e.createElement(m,{dataAttrs:{"data-condition-status":"true"},icon:a===!1?W:A}))))}return null}),Pn=()=>{const t=F(),{priority:n}=t||{};return n?.priority?e.createElement("div",{className:E({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__priority":!0})},e.createElement("span",null,e.createElement("strong",null,ln(n?.priority))," ",e.createElement("span",{className:"userflow-debugger-info-text"},"Click to learn more")),e.createElement("a",{href:"https://docs.userflow.com/docs/trouble/using-the-debugger#flow-trigger-precedence",target:"_blank",rel:"noreferrer noopener"},e.createElement(m,{icon:je}))):null},In=()=>{const t=F(),{startFrequency:n}=t||{},{onlyIfNotCompleted:r}=n||{};return r==null?null:e.createElement("div",{className:E({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__success":r===!0,"userflow-debugger-condition__item__danger":r===!1})},"Only if not completed",e.createElement(m,{icon:r===!0?A:U}))},Fn=()=>{const t=F(),{startFrequency:n}=t||{},{hovered:r,eventHandlers:s,ref:o}=ce();return!n||n?.scopeByGroup===null||n.scopeByGroup===void 0||n.scopeByGroup===!0?null:e.createElement("div",{ref:o,...s,className:E({"d-flex align-center margin-8":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__danger":!0})},"Constrain to current company",e.createElement(m,{icon:De(n.scopeByGroup)}),e.createElement(ue,{target:o,hovered:r},"User is not associated with a company"))},Rn=()=>{const t=F(),{startFrequency:n,listFlowLatestVersion:r}=t||{},{anyFlowIntervalThrottle:s}=n||{},{throttleUnit:o,throttleValue:a}=r||{};return s===null||o===null||a===null||o===void 0||a===void 0?null:e.createElement("div",{className:E({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__success":s===!0,"userflow-debugger-condition__item__intermediate":s===!1})},e.createElement("span",null,"Atleast ",e.createElement("strong",null,r?.throttleValue)," ",be(o,a)," after any flow"),e.createElement(m,{dataAttrs:{"data-condition-status":"true"},icon:s===!0?A:W}))},Ln=e.memo(()=>{const{hovered:t,eventHandlers:n,ref:r}=ce(),s=F(),{snoozed:o}=s||{},a=i.useMemo(()=>{if(o?.until)return xe(new Date(o.until),"MMM do, h:mm a")},[o?.until]);return o?e.createElement("div",{ref:r,...n,className:E({"d-flex align-center margin-8":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__intermediate":!0})},e.createElement("span",{className:"d-flex gap-8 align-center"},e.createElement(m,{icon:yt}),e.createElement("span",null,"This flow is currently ",e.createElement("strong",null,"snoozed"))),e.createElement(m,{dataAttrs:{"data-condition-status":"true"},icon:W}),e.createElement(ue,{target:r,hovered:t},"Snoozed until ",a)):null}),ot={[O.PAGE]:{icon:()=>xt,Preview:({condition:t})=>{const n=t.operator&&pe[t.operator];return e.createElement("span",null,"URL"," ",e.createElement("strong",null,n&&e.createElement(n.Preview,{condition:t})))}},[O.ATTRIBUTE]:{icon:({condition:t})=>{if(!t||!t.attributeName)return Re(nt.EVENT);const[n]=cn(t.attributeName);return Re(n)},Preview:({condition:t})=>{const n=t.operator&&pe[t.operator];return e.createElement("span",null,e.createElement("strong",null,t.attributeDisplayName?t.attributeDisplayName:"Attribute")," ",e.createElement("span",{className:"userflow-debugger-info-text"},n&&e.createElement(n.Preview,{condition:t})))}},[O.SEGMENT]:{icon:()=>Nt,Preview:({condition:t})=>{const{segment:n}=t;return e.createElement("span",null,e.createElement("strong",null,n?.subjectType===ut.GROUP?"Company":"User")," ",e.createElement("span",{className:"text-secondary"},t.operator===d.FALSE?"is not in":"is in")," ",e.createElement("strong",null,n?.name||"Segment"))}},[O.ELEMENT]:{icon:({condition:t})=>t.elementState?Xt[t.elementState]:Tt,Preview:({condition:t})=>e.createElement("span",null,"Element"," ",t.elementState&&e.createElement("strong",null,Zt(t.elementState)))},[O.INPUT_VALUE]:{icon:()=>St,Preview:({condition:t})=>{const n=t.operator&&pe[t.operator];return e.createElement("span",null,"The value of input"," ",e.createElement("strong",null,n&&e.createElement(n.Preview,{condition:t})))}},[O.FILLED_IN_INPUT]:{icon:()=>Ot,Preview:()=>e.createElement("span",null,"User fills an input")},[O.FLOW]:{icon:({condition:t})=>t.flowState?$t[t.flowState]:ye,Preview:({condition:t})=>e.createElement("span",null,t.flow?e.createElement(e.Fragment,null,dn(t.flow.type,{title:!0})," ",e.createElement("strong",null,t.flow.name)):"Flow/checklist"," ",t.flowState&&Jt(t.flowState))},[O.TIME]:{icon:()=>Ye,Preview:({condition:t})=>{const n=t.value?Be(t.value):null,r=n&&e.createElement("strong",{style:{whiteSpace:"nowrap"}},He(n)),s=t.value2?Be(t.value2):null,o=s&&e.createElement("strong",{style:{whiteSpace:"nowrap"}},He(s));return r&&o?e.createElement("span",null,"Current time is between ",r," and ",o):r?e.createElement(e.Fragment,null,"Current time is after ",r):o?e.createElement(e.Fragment,null,"Current time is before ",o):e.createElement(e.Fragment,null,"Current time is ...")}},[O.EVENT]:{icon:()=>ze,Preview:({condition:t})=>{const{ref:n,hovered:r,eventHandlers:s}=ce();return e.createElement("div",{ref:n,...s},e.createElement("strong",null,t.eventDisplayName?t.eventDisplayName:"Event")," ",e.createElement("span",{className:"userflow-debugger-info-text"},sn(t.eventFrequencyOperator))," ",e.createElement("strong",null,t.eventFrequencyValue),t.eventFrequencyOperator===Y.BETWEEN&&e.createElement(e.Fragment,null," ",e.createElement("span",{className:"userflow-debugger-info-text"},"and")," ",e.createElement("strong",null,t.eventFrequencyValue2))," ",e.createElement("span",{className:"userflow-debugger-info-text"},tn(t),","," ",on(t.eventTimeOperator)),t.eventTimeOperator!==M.ANY&&e.createElement(e.Fragment,null," ",e.createElement("strong",null,t.eventRelativeValue),t.eventTimeOperator===M.RELATIVE_BETWEEN&&e.createElement(e.Fragment,null," ",e.createElement("span",{className:"userflow-debugger-info-text"},"and")," ",e.createElement("strong",null,t.eventRelativeValue2))," ",e.createElement("span",{className:"userflow-debugger-info-text"},en(t,t.eventRelativeUnit))),t.eventActor&&t.eventActor!==dt.CURRENT_USER?e.createElement(e.Fragment,null," ",e.createElement("strong",null,rn(t.eventActor))):"",t.whereCondition&&r&&e.createElement(ue,{hovered:!0,target:n},"Where ",e.createElement("br",null),e.createElement(at,{condition:t.whereCondition})))}},[O.ALWAYS_TRUE]:{icon:()=>A,Preview:()=>e.createElement("span",null,"Water is wet")},[O.CHECKLIST_TASK_CLICKED]:{icon:()=>qe,Preview:()=>e.createElement("span",null,"Task is clicked")}},at=t=>e.createElement("div",null,t.condition.conditions.map((n,r)=>e.createElement("div",{key:n.id}," ",r===0?null:e.createElement("span",{className:"userflow-debugger-info-text"},t.condition.operator?.toLowerCase())," ",n.type==="ATTRIBUTE"&&ot.ATTRIBUTE.Preview({condition:n,isRoot:!0,isHideCond:!1}),n.type==="CLAUSE"&&e.createElement(e.Fragment,null,"(",e.createElement(at,{condition:n}),")")))),ue=({hovered:t,children:n,target:r})=>{const s=Ne();return t?e.createElement(tt,{className:"userflow-debugger-popover",target:r.current,placement:"top",horizontalAlign:"center",verticalAlign:"center",document:s?.current?.contentDocument||void 0},n):null};class Mn extends e.PureComponent{constructor(n){super(n),this.rootRef=e.createRef(),this.optionsElRef=e.createRef(),this.input=null,this.popoverRef=e.createRef(),this.isMouseDown=!1,this.isCreateOpen=!1,this.setInput=r=>{this.input=r;const{inputRef:s}=this.props;s&&(typeof s=="function"?s(r):s.current=r)},this.onInputChange=r=>{r.stopPropagation();const{value:s}=r.target;s!==""&&this.openPopover();const o=this.memoizedFilterOptions(this.props.options,s);this.setState({inputValue:s,q:s,highlightedIndex:o.length>0?0:-1,createHighlighted:o.length===0}),s===""&&!this.props.noEmpty&&this.triggerOnChange(null),this.props.onSearchChange&&this.props.onSearchChange(s)},this.onPopoverPlacementChange=r=>this.setState({popoverPlacement:r}),this.onMouseDown=r=>{r.preventDefault(),this.isMouseDown=!0;const s=()=>{this.isMouseDown=!1,this.props.document?.removeEventListener("mouseup",s),document.body.removeEventListener("mouseup",s)};this.props.document?.addEventListener("mouseup",s),document.body.addEventListener("mouseup",s)},this.onFocus=r=>{this.input&&!this.props.noSearch&&this.input.select(),this.props.onFocus&&this.props.onFocus(r)},this.onBlur=r=>{this.isMouseDown||this.closePopover(),this.props.onBlur&&!this.isCreateOpen&&this.props.onBlur(r)},this.onTriggerClick=()=>{this.props.readOnly||this.props.disabled||(this.state.popoverOpen?this.closePopover():(this.input&&this.input.focus(),this.openPopover()))},this.onKeyDown=r=>{const{popoverOpen:s,highlightedIndex:o,createHighlighted:a}=this.state,l=this.getFilteredOptions(),c=l.length-1;switch(r.key){case"ArrowUp":r.preventDefault(),s&&(a?this.setState({highlightedIndex:c,createHighlighted:!1}):o>0&&this.setState({highlightedIndex:o-1}));break;case"ArrowDown":r.preventDefault(),s?this.props.onCreate&&(o===c||a)?this.setState({highlightedIndex:-1,createHighlighted:!0}):o<c&&this.setState({highlightedIndex:o+1}):this.props.noOpenOnDown||this.openPopover();break;case"Enter":if(s)if(r.preventDefault(),a)this.fireOnCreate();else{const g=l[o];(g||!this.props.noEmpty)&&this.selectOption(g)}else this.props.onEnter?this.props.onEnter():this.openPopover();break;case"Tab":s&&this.selectOption(l[o]);break;case"Escape":s&&(r.preventDefault(),r.stopPropagation(),this.setState({popoverOpen:!1}));break}},this.selectOption=r=>{r===this.props.value?this.setState({popoverOpen:!1,inputValue:this.renderOptionText(r),q:""}):(this.setState({popoverOpen:!1,inputValue:"",q:""}),this.triggerOnChange(r))},this.highlightOption=r=>{this.setState({highlightedIndex:r,createHighlighted:!1})},this.highlightCreate=()=>{this.setState({highlightedIndex:-1,createHighlighted:!0})},this.fireOnCreate=()=>{const{onCreate:r}=this.props;if(r){this.isCreateOpen=!0;const s={q:Ee.upperFirst(this.state.q),callback:o=>{this.isCreateOpen=!1,o!=null&&this.selectOption(o),this.input&&this.input.focus()}};r(s),this.closePopover()}},this.openPopover=()=>{if(!this.state.popoverOpen){const r=this.getFilteredOptions();let s=0,o=!1;if(r.length===0)s=-1,o=!0;else{const{value:a}=this.props,l=r.findIndex(c=>c===a);l!==-1&&(s=l)}this.setState({popoverOpen:!0,highlightedIndex:s,createHighlighted:o})}},this.memoizedFilterOptions=Bt((r,s)=>(r=r||[],s?r.filter(o=>this.filter(o,s)):r)),this.state={inputValue:this.renderOptionText(n.value==null?null:n.value),q:"",popoverOpen:!1,popoverPlacement:null,highlightedIndex:-1,createHighlighted:!1}}componentDidUpdate(n,r){const{value:s}=this.props;if(s!==n.value){const o=this.renderOptionText(s??null);o!==this.state.inputValue&&this.setState({inputValue:o})}r.highlightedIndex!==this.state.highlightedIndex&&this.scrollHighlightedOptionIntoView()}render(){let n;const{props:r}=this,s=this.state,o=s.popoverPlacement==="top"?"above":"below";if(s.popoverOpen&&this.rootRef.current){const l=this.getFilteredOptions();let c;if(l.length>0){let g=null;c=l.reduce((_,h,v)=>{const y=this.getOptionGroup(h);y&&y!==g&&_.push(e.createElement("div",{key:"group:"+y,className:"combo-box__group-header"},y)),g=y;const p=["combo-box__option"];return v===s.highlightedIndex&&p.push("combo-box__option--highlighted"),_.push(e.createElement(An,{key:this.getOptionKey(h,v),className:p.join(" "),option:h,idx:v,renderOptionText:r.renderOptionText,renderOptionItem:r.renderOptionItem,getOptionIcon:r.getOptionIcon,onClick:this.selectOption,onHover:this.highlightOption})),r.hasSeparatorAfter&&r.hasSeparatorAfter(h)&&_.push(e.createElement("div",{key:"sep-"+v,className:"combo-box__option-sep"})),_},[])}else r.loading?c=e.createElement("div",{className:"combo-box__no-results"},"Loading..."):c=e.createElement("div",{className:"combo-box__no-results"},"No matching ",r.nounPlural||"items");n=e.createElement(tt,{ref:this.popoverRef,className:"combo-box-popover"+(r.popoverNotch?"":` combo-box-popover--${o}`),noNotch:!r.popoverNotch,target:this.rootRef.current,forceDimension:!0,matchWidth:!0,minWidth:r.popoverMinWidth,onMouseDown:this.onMouseDown,onPlacementChange:this.onPopoverPlacementChange,document:r.document},e.createElement("div",{ref:this.optionsElRef,className:E({"combo-box__options":!0,"combo-box__options--with-create":!!r.onCreate})},c),r.onCreate&&e.createElement("div",{key:"create",className:E({"combo-box__option":!0,"combo-box__option--create":!0,"combo-box__option--highlighted":s.createHighlighted}),onClick:this.fireOnCreate,onMouseMove:this.highlightCreate},e.createElement("div",{className:"combo-box__create-icon"},e.createElement(ve,{icon:Pt})),e.createElement("div",{className:"combo-box__create-text"},"Create"," ",s.q===""?"new"+(r.noun?` ${r.noun}`:""):e.createElement("b",null,Ee.upperFirst(s.inputValue)))))}const a=["input-group","combo-box"];return s.popoverOpen&&(a.push("combo-box--open"),r.popoverNotch||a.push(`combo-box--with-popover-${o}`)),r.disabled&&a.push("input-group--disabled"),r.noSearch&&a.push("combo-box--no-search"),r.className&&a.push(r.className),e.createElement(e.Fragment,null,e.createElement("div",{className:a.join(" "),style:{width:r.width?r.width+"px":void 0},ref:this.rootRef,onClick:r.readOnly||r.disabled?void 0:()=>{this.input?.focus(),this.openPopover()}},r.childrenBefore,r.value&&r.getOptionIcon&&e.createElement("div",{className:"combobox__input-icon"},it(r.value,r.getOptionIcon)),e.createElement("input",{type:"text",className:r.inputClassName,name:r.name,value:s.inputValue,onChange:this.onInputChange,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onMouseDown:this.openPopover,placeholder:r.placeholder,readOnly:r.readOnly||r.noSearch,disabled:r.disabled,autoComplete:"off",ref:this.setInput,...r.inputHtmlAttributes}),!r.noTrigger&&e.createElement("div",{"data-testid":r.triggerTestId||"combo-box-trigger",className:"input-group__append input-group__trigger",onClick:this.onTriggerClick,onMouseDown:this.onMouseDown},e.createElement(ve,{icon:It})),r.childrenAfter),n)}scrollHighlightedOptionIntoView(){const n=this.optionsElRef.current;if(this.state.popoverOpen&&n){const r=n.querySelector(".combo-box__option--highlighted");if(r){const s=n.getBoundingClientRect(),o=r.getBoundingClientRect();o.top<s.top?n.scrollTop+=o.top-s.top:o.bottom>s.bottom&&(n.scrollTop+=o.bottom-s.bottom)}}}triggerOnChange(n){const{onChange:r}=this.props;r&&r(n)}closePopover(){this.setState({popoverOpen:!1,inputValue:this.renderOptionText(this.props.value==null?null:this.props.value),q:""})}renderOptionText(n){return n==null?"":lt(n,this.props.renderOptionText)}getFilteredOptions(){return this.memoizedFilterOptions(this.props.options,this.state.q)}filter(n,r){return this.props.filter?this.props.filter(n,r):this.renderOptionText(n).toLowerCase().includes(r.toLowerCase())}getOptionKey(n,r){return n&&n.id||r}getOptionGroup(n){return this.props.getOptionGroup?this.props.getOptionGroup(n):n&&n.group||null}}class An extends e.PureComponent{constructor(){super(...arguments),this.state={isOptionDisabled:!1},this.onClick=()=>{this.state.isOptionDisabled||this.props.onClick(this.props.option)},this.onHover=()=>{this.state.isOptionDisabled||this.props.onHover(this.props.idx)}}componentDidMount(){const n=this.props.option!==void 0&&typeof this.props.option=="object"&&this.props.option!==null&&"disabled"in this.props.option&&this.props.option.disabled===!0;this.setState({isOptionDisabled:n})}componentDidUpdate(){const n=this.props.option!==void 0&&typeof this.props.option=="object"&&this.props.option!==null&&"disabled"in this.props.option&&this.props.option.disabled===!0;this.setState({isOptionDisabled:n})}render(){const{isOptionDisabled:n}=this.state,{props:r}=this;return e.createElement("div",{className:E({[r.className]:!0,"combo-box__option--disabled":n}),onClick:this.onClick,onMouseMove:this.onHover},Un(r.option,r.renderOptionText,r.renderOptionItem,r.getOptionIcon))}}function lt(t,n){return n?n(t):typeof t=="string"||typeof t=="number"?t:t?t.name:"?"}function Un(t,n,r,s){if(r)return r(t);{let o=lt(t,n);return s?e.createElement("div",{className:"d-flex align-flex-start"},e.createElement("div",{className:"combobox__option-icon"},it(t,s)),e.createElement("div",{className:"flex-1"},o)):o}}function it(t,n){const r=n(t);return kn(r)?e.createElement(ve,{icon:r}):r}function kn(t){return Wt(t)&&"iconName"in t}const Vn=({selectedFlow:t,setSelectedFlow:n,flows:r,debugAutoStartCondition:s})=>{const o=q(),a=Ne();i.useEffect(()=>{if(!t)return;s(t.latestVersion);const c=()=>{s(t.latestVersion)};return o.on("private:checkSessionsAck",c),document.addEventListener("visibilitychange",c),()=>{o.off("private:checkSessionsAck",c),document.removeEventListener("visibilitychange",c)}},[t]);const l=i.useCallback(c=>{!c||t?.latestVersion?.id===c.latestVersion.id||n(c)},[t]);return e.createElement(e.Fragment,null,e.createElement("div",{className:"d-flex align-center justify-space-between"},e.createElement("div",{className:"d-flex justify-space-between align-center"},"Select Flow"),e.createElement(Mn,{className:"userflow-debugger__flow__selector",value:t,options:r,placeholder:"Select flow",document:a?.current?.contentDocument||void 0,onChange:l,renderOptionItem:c=>c.name})),e.createElement(Hn,{selectedFlow:t,selectedFlowVersionsId:t?.latestVersion?.id}))},Hn=({selectedFlowVersionsId:t,selectedFlow:n})=>{const r=q(),[s,o]=i.useState(!1),a=F(),l=a&&a?.activeFlow?.id===n?.id;return i.useEffect(()=>(o(!1),r.on("private:setFlowSession",c=>{o(c===t)}),()=>{r.off("private:setFlowSession",()=>o(!1))}),[t]),i.useEffect(()=>{l||o(!1)},[l]),a?.activeFlow===null?null:e.createElement(e.Fragment,null,a?.locale?.match===!1&&e.createElement("div",{className:E(Oe(!1))},e.createElement("span",{className:"d-flex gap-8 align-center"},e.createElement(m,{icon:U}),e.createElement("span",null,"The flow will not auto start ",e.createElement("br",null)," ",e.createElement("b",null,"User locale (",a?.locale?.code,") is not enabled.")))),s?e.createElement("div",{className:E({"d-flex align-center fade-in":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__flow__status":!0})},e.createElement("span",{className:"d-flex align-center gap-8"},e.createElement(m,{icon:Z}),e.createElement("span",null,"This flow ",e.createElement("strong",null,"just")," started"))):null,l&&!s&&e.createElement("div",{className:E({"userflow-debugger-condition__item":!0,"userflow-debugger-condition__flow__status":!0})},e.createElement("span",{className:"d-flex align-center gap-8"},e.createElement(m,{icon:Z}),e.createElement("span",null,"This flow is currently active"))),!l&&a&&e.createElement("div",{className:E({"userflow-debugger-condition__item":!0,"userflow-debugger-condition__flow__status":!0})},e.createElement("span",{className:"d-flex gap-8 align-center"},e.createElement(m,{icon:Z,size:16}),e.createElement("span",null,"Another flow is currently active"))))},Bn=({close:t})=>{const n=q(),r=i.useRef(null),[s,o]=i.useState(!!n.clientToken),[a,l]=i.useState(()=>{const u=n.getSessionStorageState(),C=u?.debuggerApp?.x,x=u?.debuggerApp?.y||50;return{x:C??(document.body.clientWidth?Number(document.body.clientWidth)-450:50),y:x}}),[c,g]=i.useState(!1),_=i.useRef(null),{meta:h}=J(),{debuggerRoute:v}=Te(),[y,p]=i.useState(!1),b=i.useRef(null),f=i.useRef({mouseX:0,mouseY:0,elementX:0,elementY:0});i.useEffect(()=>{a&&n.setSessionStorageState(u=>({...u,debuggerApp:{...u.debuggerApp,x:a.x,y:a.y}}))},[a]),i.useEffect(()=>{if(!c)return;const u=x=>{const k=x.clientX-f.current.mouseX,D=x.clientY-f.current.mouseY,P=Math.min(f.current.elementX+k,window.document.body.clientWidth-200),V=Math.max(f.current.elementY+D,0);b.current||(b.current=requestAnimationFrame(()=>{l({x:P,y:V}),b.current=null}))},C=()=>{g(!1)};return document.addEventListener("mousemove",u),document.addEventListener("mouseup",C),()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",C),b.current&&(cancelAnimationFrame(b.current),b.current=null)}},[c,a]),i.useEffect(()=>{const u=()=>{l(x=>{const k=document.body.clientWidth-500,D=document.body.clientHeight-100,P=Math.max(Math.min(x.x,k),0),V=Math.max(Math.min(x.y,D),0);return{x:P,y:V}})},C=()=>{o(!!n.clientToken)};return window.addEventListener("resize",u),n.on("private:initialised",C),()=>{window.removeEventListener("resize",u),n.off("private:initialised",C)}},[]);const w=u=>{r.current&&(g(!0),u.preventDefault())};return e.createElement("div",{ref:r,style:{left:"0",top:"0",position:"absolute",willChange:"transform",transform:`translate3d(${a.x}px, ${a.y}px, 0)`,zIndex:1234620}},e.createElement("div",{onMouseDown:w,style:{height:"50px",cursor:"move",userSelect:"none",position:"absolute",width:"50px"}}),e.createElement(ft,{title:"Debugger",stylesheet:qt,style:{borderRadius:"8px",width:"400px",height:v==="checkAutoStart"?"600px":s?"500px":"400px"},elRef:_,onStylesheetsLoad:p},e.createElement(Ke.Provider,{value:_},e.createElement("div",{className:"d-flex flex-column userflow-debugger-app",style:{visibility:y?"visible":"hidden"}},e.createElement("div",{className:"d-flex justify-space-between userflow-debugger-app__header"},e.createElement(Yt,null),e.createElement("div",{className:"d-flex align-center userflow-debugger-app__title"},e.createElement(gt,null),e.createElement("span",null,"Userflow debugger")),e.createElement("button",{role:"button",className:"userflow-debugger-app__close",onClick:()=>{n.getSessionStorageState().debuggerApp&&n.setSessionStorageState(u=>({...u,debuggerApp:null})),t()}},e.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.1836 4.49609L8.90234 7.77734L12.1562 11.0312C12.4297 11.2773 12.4297 11.6875 12.1562 11.9336C11.9102 12.207 11.5 12.207 11.2539 11.9336L7.97266 8.67969L4.71875 11.9336C4.47266 12.207 4.0625 12.207 3.81641 11.9336C3.54297 11.6875 3.54297 11.2773 3.81641 11.0039L7.07031 7.75L3.81641 4.49609C3.54297 4.25 3.54297 3.83984 3.81641 3.56641C4.0625 3.32031 4.47266 3.32031 4.74609 3.56641L8 6.84766L11.2539 3.59375C11.5 3.32031 11.9102 3.32031 12.1836 3.59375C12.4297 3.83984 12.4297 4.25 12.1836 4.49609Z",fill:"white"})))),e.createElement(Wn,null),v==="verifySetup"&&e.createElement(qn,null),h?.endUser?.debuggerEnabled&&v==="checkAutoStart"&&e.createElement(Gn,null),v==="currentUser"&&e.createElement(zn,null)))))},Wn=()=>{const t=q(),{meta:n}=J(),[r,s]=i.useState(!1),{debuggerRoute:o,setDebuggerRoute:a}=Te(),l=t.isIdentified(),c=zt(()=>s(!1));return i.useEffect(()=>{n&&n?.endUser.debuggerEnabled===!1&&o==="checkAutoStart"&&a("verifySetup")},[n]),l?e.createElement("div",{ref:c},e.createElement("div",{className:"d-flex align-center justify-space-between userflow-debugger-menu",onClick:()=>s(!r)},e.createElement("div",{className:E({"d-flex align-center":!0,"userflow-debugger-menu__title":!0,"userflow-debugger-menu__title--open":r})},e.createElement(m,{icon:oe[o].icon}),e.createElement("span",null,oe[o].name)),e.createElement("button",{className:"userflow-debugger-menu__toggle"},e.createElement(m,{icon:Ft}))),r&&e.createElement("ul",{className:"userflow-debugger-menu__list"},Object.keys(oe).map(g=>{if(!n?.endUser?.debuggerEnabled&&g==="checkAutoStart")return null;const _=oe[g];return e.createElement("li",{key:g,className:"d-flex align-center userflow-debugger-app__item",onClick:()=>{a&&a(g),s(!1)}},e.createElement(m,{icon:_.icon}),_.name)}))):null},qn=()=>{const{meta:t,buildId:n}=J(),r=q(),[s,o]=i.useState(!!r.clientToken),a=i.useMemo(()=>r.isIdentified(),[r,t]),{setDebuggerRoute:l}=Te();i.useEffect(()=>{const h=()=>{o(!!r.clientToken)};return r.on("private:initialised",h),()=>{r.off("private:initialised",h)}},[]);const c=i.useMemo(()=>{let h=me;const v={"d-flex flex-column gap-8":!0,"userflow-debugger-installation__step":!0};return s?(h=X,v["userflow-debugger-installation__step__success"]=!0):(h=At,v["userflow-debugger-installation__step__danger"]=!0),{icon:h,classes:v}},[s]),g=i.useMemo(()=>{let h=me;const v={"d-flex flex-column gap-8":!0,"userflow-debugger-installation__step":!0};return!s&&!a&&(h=me,v["userflow-debugger-installation__step__failed"]=!0),s&&!a&&(h=Z,v["userflow-debugger-installation__step__warning"]=!0),s&&a&&(h=X,v["userflow-debugger-installation__step__success"]=!0),{icon:h,classes:v}},[s,a]),_=()=>a?t?.endUser.debuggerEnabled?e.createElement(e.Fragment,null,e.createElement("span",{className:"userflow-debugger-details"},t?.env.company.name),e.createElement("span",{className:"userflow-debugger-details"},t?.env.name)):e.createElement("div",{className:"userflow-debugger-details__access__denied"},"The"," ",e.createElement("button",{onClick:()=>l("currentUser")},"currently signed-in user")," ","does not have debugger access"):e.createElement(e.Fragment,null,e.createElement("span",{className:"userflow-debugger-details"},"Unknown company"),e.createElement("span",{className:"userflow-debugger-details"},"Unknown environment"));return e.createElement("div",{className:"space-evenly userflow-debugger-app__content"},e.createElement("div",{className:"userflow-debugger-installation__steps"},e.createElement("div",{className:E({"d-flex gap-8 flex-column":!0,"userflow-debugger-installation__step":!0,"userflow-debugger-installation__step__success":!0})},e.createElement(m,{icon:X,size:32}),"Userflow ",e.createElement("br",null),"installed"),e.createElement("div",{className:E(c.classes)},e.createElement(m,{icon:c.icon,size:32}),"Userflow ",e.createElement("br",null)," ",s?"":"not"," initialized"),e.createElement("div",{className:E(g.classes)},e.createElement(m,{icon:g.icon,size:32}),"User ",e.createElement("br",null)," ",a&&s?"":"not"," ","identified")),!s&&!a&&e.createElement("div",{className:E({"d-flex gap-8 flex-column":!0,"userflow-debugger-installation__not__initialized":!0})},"Remember to initialize Userflow by calling",e.createElement("div",null,"userflow.init('YOUR_USERFLOW_TOKEN')")),s&&e.createElement("div",{className:"d-flex gap-8 flex-column userflow-debugger-details__wrapper"},e.createElement("div",{className:"userflow-debugger-details__env__details"},e.createElement("div",{className:"d-flex gap-8 flex-column justify-space-around"},e.createElement(m,{size:20,icon:Rt}),e.createElement(m,{size:20,icon:Lt})),e.createElement("div",{className:"d-flex flex-column align-flex-start gap-8"},_())),e.createElement("div",{className:"d-flex gap-8 align-center"},e.createElement(m,{size:20,icon:Mt}),e.createElement("span",{className:"userflow-debugger-details"},r.getInitToken())),e.createElement("div",{className:"d-flex gap-8 align-center"},e.createElement(m,{size:20,icon:Ce}),e.createElement("span",{className:"userflow-debugger-details"},a?r.getIdentifiedUser()?.externalId:"User not identified"))),e.createElement("div",{className:"userflow-debugger-installation__version"},e.createElement("a",{href:"https://docs.userflow.com/docs/dev/userflow-js-installation",target:"_blank",rel:"noreferrer"},"Visit the Userflow Developer Docs for help")," ",e.createElement("br",null),"Userflow.js version 0.1.",n))},Gn=()=>{const t=q(),{debuggerClientConditions:n}=J(),[r,s]=i.useState(void 0),[o,a]=i.useState([]),[l,c]=i.useState(),g=i.useMemo(()=>{if(l?.startCondition?.match===!1||l?.hiddenCondition?.match===!1||l?.locale?.match===!1)return!1;const p=l?.startFrequency;return!(p&&(p.onlyIfNotCompleted===!1||p.scopeByGroup===!1||p.frequency===!1))},[l]);i.useEffect(()=>(y().then(p=>{if(p?.length&&(a(p),!r)){const b=t.getSessionStorageState()?.debuggerApp?.selectedFlowVersionId,f=p.find(w=>w.latestVersion.id===b);h(f??p[0])}}),document.addEventListener("visibilitychange",y),()=>{document.removeEventListener("visibilitychange",y)}),[]),i.useEffect(()=>{r&&v(r.latestVersion)},[r]);const _=Xe.debounce(async p=>{const b=[];for(const[u,C]of n.entries())b.push({conditionId:u,isTrue:C.isTrue});const f={kind:"DebugFlowAutostartCondition",flowVersionId:p.id,clientConditions:b},w=await t.send(f);c({...w,listFlowLatestVersion:p}),w.latestVersion?.id&&p.id!==w.latestVersion?.id&&(y().then(u=>{if(!u)return;a(u);const C=u?.find(x=>x.latestVersion.id===w.latestVersion?.id);C&&h(C)}),_(w.latestVersion))},300),h=p=>{s(p);const b=t.getSessionStorageState().debuggerApp;b&&b?.x&&t.setSessionStorageState(f=>({...f,debuggerApp:{...b,selectedFlowVersionId:p.latestVersion.id}}))},v=async p=>{n.forEach(f=>{f.untrack?.()}),n.clear();const{conditionTypes:b}=await mt(async()=>{const{conditionTypes:f}=await import("./flow-condition-types.js").then(w=>w.f);return{conditionTypes:f}},__vite__mapDeps([0,1,2,3,4,5,6,7]));for(const f of p.clientConditions){n.set(f.id,{condition:f,isTrue:null});const w=b[f.type];if(!w){console.error(`Unknown condition type ${f.type}`);continue}const u=n.get(f.id);u&&(u.untrack=w.track({sessionData:new pt([]),condition:f,callback:C=>{u.isTrue!==C&&(u.isTrue=C,_(p))}}))}},y=async()=>{try{return(await t.send({kind:"ListFlows",hasAutostartCondition:!0},{handlesRejection:!0})).flows?.filter(f=>f.type==="FLOW")}catch(p){p.code==="debugger_access_denied"&&_e("Access defined for List Flows");return}};return e.createElement("div",{className:"userflow-debugger-app__content"},e.createElement($e.Provider,{value:l},e.createElement(Vn,{flows:o,selectedFlow:r,setSelectedFlow:h,debugAutoStartCondition:_}),e.createElement("div",{className:"d-flex flex-column gap-8 userflow-debugger-app__wrapper"},l?.startCondition?.condition&&e.createElement("div",null,e.createElement("div",{className:E({"d-flex gap-8 align-center":!0,"userflow-debugger-app__wrapper__passing":g,"userflow-debugger-app__wrapper__failed":!g})},e.createElement(m,{icon:g?Ut:kt}),e.createElement("strong",null,"Auto-start conditions")),e.createElement("span",null,"These are"," ",e.createElement(st,{condition:l.startCondition.condition}),e.createElement("b",null,"-conditions"),", meaning"," ",l.startCondition.condition.type==="CLAUSE"&&l.startCondition.condition.operator==="AND"&&e.createElement(e.Fragment,null,"all conditions must pass for the flow to start."),l.startCondition?.condition.type==="CLAUSE"&&l.startCondition.condition.operator==="OR"&&e.createElement(e.Fragment,null,"only one condition must pass for the flow to start."))),l?.startCondition?.condition&&e.createElement(ie,{isRoot:!0,isHideCond:!1,condition:l.startCondition.condition}),e.createElement(On,null),e.createElement(Dn,null),e.createElement(In,null),e.createElement(Rn,null),e.createElement(Pn,null),e.createElement(Nn,null),e.createElement(Fn,null),e.createElement(Ln,null))))},zn=e.memo(()=>{const{meta:t,buildId:n}=J();if(!t)return null;const r="https://app.userflow.com/app/"+t.env.company.slug+"/settings/debugger?external_id="+t.endUser.externalId;return e.createElement("div",{className:"d-flex flex-column space-evenly flex-1"},e.createElement("div",{className:"d-flex flex-column gap-8"},e.createElement("div",{className:"d-flex flex-column"},t.endUser.avatarUrl?e.createElement("img",{src:t.endUser.avatarUrl,className:"userflow-debugger-user__image"}):e.createElement("div",{className:"userflow-debugger-user__image"}),e.createElement("span",{className:"userflow-debugger-user__name"},t.endUser?.name||"Unknown name"),e.createElement("span",{className:"userflow-debugger-user__email"},t?.endUser?.email||"Unknown email address"),(!t.endUser.email||!t.endUser.name)&&e.createElement("span",{className:"userflow-debugger__external__id"},t.endUser.externalId)),!t.endUser.debuggerEnabled&&e.createElement(e.Fragment,null,e.createElement("div",{className:"userflow-debugger-user__info"},"This user doesn't have access to the Userflow debugger. You can grant access through the debugger settings in Userflow."),e.createElement("a",{className:"userflow-debugger-user__button",href:r,target:"_blank",rel:"noreferrer"},"Grant access in Userflow ",e.createElement(m,{icon:je})))),e.createElement("div",{className:"userflow-debugger-installation__version"},e.createElement("a",{href:"https://docs.userflow.com/docs/dev/userflow-js-installation",target:"_blank",rel:"noreferrer"},"Visit the Userflow Developer Docs for help")," ",e.createElement("br",null),"Userflow.js version 0.1.",n))});class br{constructor(n,r){this.client=n,this.buildId=r,this.debuggerClientConditions=new Map}mount(){if(this.container)throw new Error("UI has already been mounted");this.container=document.createElement("div"),this.container.id="userflow-debugger-ui",document.body.appendChild(this.container),he.render(e.createElement(Yn,{client:this.client,debuggerClientConditions:this.debuggerClientConditions,buildId:this.buildId,unmount:()=>this.unmount()}),this.container)}unmount(){this.container&&(he.unmountComponentAtNode(this.container),document.body.contains(this.container)&&document.body.removeChild(this.container),this.client.unMountDebugger(),delete this.container)}}const Yn=({client:t,debuggerClientConditions:n,buildId:r,unmount:s})=>{const[o,a]=i.useState(void 0),l=Xe.debounce(async()=>{try{const c=await t.send({kind:"GetCurrentEndUser"},{handlesRejection:!0});a(c)}catch(c){c.code==="debugger_access_denied"&&_e("debugger access denied"),a(void 0)}},300);return i.useEffect(()=>(l(),document.addEventListener("visibilitychange",l),t.on("private:identified",l),()=>{document.removeEventListener("visibilitychange",l),t.off("private:identified",l)}),[]),e.createElement(ct.Provider,{value:t},e.createElement(Ze.Provider,{value:{meta:o,debuggerClientConditions:n,buildId:r}},e.createElement(Gt,null,e.createElement(Bn,{close:s}))))};export{br as DebuggerUI};
|
|
2
|
+
import{r as i,R as e}from"./vendor.react.js";import{r as Ee}from"./vendor.react-dom.js";import{u as q,U as ct}from"./client-context.js";import{d as _e,a as G,b as M,c as Y,e as se,f as p,A as Fe,W as R,g as z,h as O,S as ut,i as dt,_ as mt,j as pt}from"./userflow.js";import{F as ft}from"./Frame.js";import{S as gt}from"./logomark.js";import{f as X,a as ht,b as Ce,c as qe,d as U,e as Et,g as Ge,h as ye,i as vt,j as bt,k as ze,l as wt,m as _t,n as W,o as A,p as Ct,q as Ye,r as yt,s as xt,t as Nt,u as Tt,v as St,w as Ot,x as Z,y as Dt,z as je,A as Pt,B as It,C as Ft,D as Rt,E as Lt,F as Mt,G as At,H as pe,I as Ut}from"./vendor.fortawesome.pro-regular-svg-icons.js";import{f as kt,a as Vt}from"./vendor.fortawesome.pro-solid-svg-icons.js";import{D as f}from"./stylesheets.js";import{o as v}from"./vendor.obj-str.js";import"./vendor.core-js.js";import{_ as ve,l as Xe}from"./vendor.lodash.js";import{F as ie}from"./vendor.fortawesome.react-fontawesome.js";import"./vendor.react-day-picker.js";import{f as xe,p as Ht,a as Bt}from"./vendor.date-fns.js";import{m as Wt}from"./vendor.memoize-one.js";import{c as qt}from"./roots.js";import"./vendor.object-assign.js";import"./vendor.scheduler.js";import"./vendor.i18next.js";import"./vendor.babel.runtime.js";import"./vendor.react-i18next.js";import"./vendor.phoenix.js";import"./vendor.uuid.js";import"./flow-condition-types.js";import"./vendor.fortawesome.fontawesome-svg-core.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="019a0a48-ba47-4ea4-a270-2688cf388dd3",t._sentryDebugIdIdentifier="sentry-dbid-019a0a48-ba47-4ea4-a270-2688cf388dd3")}catch{}})();const Gt=new URL("debugger.css",import.meta.url).href,$e=i.createContext(void 0),F=()=>i.useContext($e),Ke=i.createContext(null),Ne=()=>i.useContext(Ke),Ze=i.createContext({debuggerClientConditions:new Map,meta:void 0,buildId:void 0}),J=()=>i.useContext(Ze),oe={verifySetup:{name:"Verify setup",icon:X},checkAutoStart:{name:"Check auto-start",icon:ht},currentUser:{name:"Current user",icon:Ce}},Qe=i.createContext(void 0),zt=({children:t})=>{const n=q(),[r,s]=i.useState(n.getSessionStorageState().debuggerApp?.selectedTab??"verifySetup");return i.useEffect(()=>{n.setSessionStorageState(o=>!o.debuggerApp||!o.debuggerApp.x?o:{...o,debuggerApp:{...o.debuggerApp,selectedTab:r}}),_e("Debugger Route changed to",r)},[r]),e.createElement(Qe.Provider,{value:{debuggerRoute:r,setDebuggerRoute:s}},t)},Te=()=>{const t=i.useContext(Qe);if(t===void 0)throw new Error("useDebuggerRouteHandler must be used within a DebuggerRouteProvider");return{debuggerRoute:t.debuggerRoute,setDebuggerRoute:t.setDebuggerRoute}},Yt=t=>{const n=i.useRef(null),r=Ne();return i.useEffect(()=>{const s=r?.current,o=a=>{n.current&&!n.current.contains(a.target)&&t(a)};return document.addEventListener("mousedown",o),s?.contentDocument?.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o),s?.contentDocument?.removeEventListener("mousedown",o)}},[t,r,n]),n},jt=()=>e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M18.4393 5.56066C18.158 5.27936 18 4.89782 18 4.5C18 4.10218 18.158 3.72064 18.4393 3.43934C18.7206 3.15804 19.1022 3 19.5 3C19.8978 3 20.2794 3.15804 20.5607 3.43934C20.842 3.72064 21 4.10218 21 4.5C21 4.89782 20.842 5.27936 20.5607 5.56066C20.2794 5.84196 19.8978 6 19.5 6C19.1022 6 18.7206 5.84196 18.4393 5.56066Z",fill:"#537388"}),e.createElement("path",{d:"M3.43934 5.56066C3.15804 5.27936 3 4.89782 3 4.5C3 4.10218 3.15804 3.72064 3.43934 3.43934C3.72064 3.15804 4.10218 3 4.5 3C4.89782 3 5.27936 3.15804 5.56066 3.43934C5.84196 3.72064 6 4.10218 6 4.5C6 4.89782 5.84196 5.27936 5.56066 5.56066C5.27936 5.84196 4.89782 6 4.5 6C4.10218 6 3.72064 5.84196 3.43934 5.56066Z",fill:"#537388"}),e.createElement("path",{d:"M10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12C10.5 11.6022 10.658 11.2206 10.9393 10.9393C11.2206 10.658 11.6022 10.5 12 10.5C12.3978 10.5 12.7794 10.658 13.0607 10.9393C13.342 11.2206 13.5 11.6022 13.5 12C13.5 12.3978 13.342 12.7794 13.0607 13.0607C12.7794 13.342 12.3978 13.5 12 13.5C11.6022 13.5 11.2206 13.342 10.9393 13.0607Z",fill:"#537388"}),e.createElement("path",{d:"M3.43934 20.5607C3.15804 20.2794 3 19.8978 3 19.5C3 19.1022 3.15804 18.7206 3.43934 18.4393C3.72064 18.158 4.10218 18 4.5 18C4.89782 18 5.27936 18.158 5.56066 18.4393C5.84196 18.7206 6 19.1022 6 19.5C6 19.8978 5.84196 20.2794 5.56066 20.5607C5.27936 20.842 4.89782 21 4.5 21C4.10218 21 3.72064 20.842 3.43934 20.5607Z",fill:"#537388"}),e.createElement("path",{d:"M3.43934 13.0607C3.15804 12.7794 3 12.3978 3 12C3 11.6022 3.15804 11.2206 3.43934 10.9393C3.72064 10.658 4.10218 10.5 4.5 10.5C4.89782 10.5 5.27936 10.658 5.56066 10.9393C5.84196 11.2206 6 11.6022 6 12C6 12.3978 5.84196 12.7794 5.56066 13.0607C5.27936 13.342 4.89782 13.5 4.5 13.5C4.10218 13.5 3.72064 13.342 3.43934 13.0607Z",fill:"#537388"}),e.createElement("path",{d:"M10.9393 5.56066C10.658 5.27936 10.5 4.89782 10.5 4.5C10.5 4.10218 10.658 3.72064 10.9393 3.43934C11.2206 3.15804 11.6022 3 12 3C12.3978 3 12.7794 3.15804 13.0607 3.43934C13.342 3.72064 13.5 4.10218 13.5 4.5C13.5 4.89782 13.342 5.27936 13.0607 5.56066C12.7794 5.84196 12.3978 6 12 6C11.6022 6 11.2206 5.84196 10.9393 5.56066Z",fill:"#537388"})),Xt={prefix:"far",iconName:"custom-hand-pointer-slash",icon:[641,512,[],"???","M185.554191,59.5126699 C189.248662,26.0794907 217.382589,0 251.429,0 C287.979,0 317.715,30.056 317.715,67 L317.715,140.634 C338.128,137.776 359.183,144.576 374.31,160.263 C401.503,147.416 434.689,154.593 454.182,179.361 C497.375,162.727 544,195.156 544,242 L544,326 C544,330.296189 543.590626,334.580726 542.780274,338.796073 L495.999,302.221942 L495.999,242 C495.999,216.84 459.428,216.879 459.428,242 C459.428,250.836 452.265,258 443.428,258 L439.435556,258 L420.622383,243.291649 C420.588346,242.865584 420.571,242.434817 420.571,242 L420.571,221 C420.571,197.943344 389.858993,196.049429 384.724023,215.225903 L269.713,125.308981 L269.713,67 C269.713,41.84 233.142,41.88 233.142,67 L233.142,96.717359 L185.554191,59.5126699 Z M162.172457,223.995642 L233.142,279.479508 L233.142,308.493 C233.142,324.063 213.106,330.402 204.111,317.776 L176.985,279.697 C162.585,259.485 133.185,282.08 147.591,302.303 L257.303,456.303 C260.737,461.122 266.231,464 272,464 L450.285,464 C455.041109,464 459.427079,462.119816 462.713129,458.957818 L500.616335,488.590478 C488.331086,503.061811 470.146238,512 450.286,512 L272,512 C250.741,512 230.632,501.59 218.209,484.154 L108.51,330.153 C87.267,300.334 93.705,258.796 123.06,237.001 C134.952446,228.171597 148.664261,223.998532 162.172457,223.995642 Z M272.143,309.970422 L306.143,336.551563 L306.143,400 C306.143,408.837 299.875,416 292.143,416 L286.143,416 C278.41,416 272.143,408.837 272.143,400 L272.143,309.970422 Z M347.571,368.939901 L381.571,395.521042 L381.571,400 C381.571,408.837 375.303,416 367.571,416 L361.571,416 C353.839,416 347.571,408.837 347.571,400 L347.571,368.939901 Z M633.994211,471.020009 C640.904211,476.540009 642.014211,486.610009 636.494211,493.510009 L626.494211,506 C620.964211,512.890009 610.904211,514.010009 604.004211,508.490009 L6.00421069,40.9800088 C-0.895789309,35.4600088 -2.01578931,25.3900088 3.51421069,18.4900088 L13.5142107,6 C19.0342107,-0.899991212 29.1042107,-2.00999121 36.0042107,3.51000879 L633.994211,471.020009 Z"]},$t={CLICK:qe,DISABLED:U,MOUSEDOWN:Et,NOT_CLICK:Xt,NOT_DISABLED:X,NOT_PRESENT:Ge,PRESENT:ye},Kt={COMPLETED:X,NOT_COMPLETED:U,NOT_SEEN:Ge,ACTIVE:vt,NOT_ACTIVE:bt,SEEN:ye},Zt={CLICK:"is clicked",DISABLED:"is disabled",MOUSEDOWN:"has mouse down on it",NOT_CLICK:"is not clicked",NOT_DISABLED:"is not disabled",NOT_PRESENT:"is not present",PRESENT:"is present"};function Qt(t){return Zt[t]}const Jt={COMPLETED:"completed",NOT_COMPLETED:"not completed",NOT_SEEN:"not seen",ACTIVE:"is currently active",NOT_ACTIVE:"is not currently active",SEEN:"seen"};function en(t){return Jt[t]}function tn(t,n){let r=(n||"").toLowerCase();return(t.eventTimeOperator===M.RELATIVE_BETWEEN?t.eventRelativeValue2:t.eventRelativeValue)!==1&&(r+="s"),t.eventTimeOperator!==M.RELATIVE_GT&&(r+=" ago"),r}function nn(t){return(t.eventFrequencyOperator===Y.BETWEEN?t.eventFrequencyValue2:t.eventFrequencyValue)===1?"time":"times"}const rn={CURRENT_USER:"by current user in any company",CURRENT_USER_CURRENT_GROUP:"by current user in current company",CURRENT_GROUP:"by any user in current company"};function sn(t){return rn[t]}function on(t){if(!t)return"";switch(t){case Y.BETWEEN:return"between";case Y.EQ:return"exactly";case Y.GTE:return"at least";case Y.LTE:return"at most"}}function an(t){if(!t)return"";switch(t){case M.ANY:return"at any point in time";case M.RELATIVE_BETWEEN:return"between";case M.RELATIVE_GT:return"in the last";case M.RELATIVE_LT:return"more than"}}const ln={1:"Lowest",2:"Low",3:"Medium",4:"High",5:"Highest"};function cn(t){return`${ln[t]||String(t)} priority`}function be(t,n){switch(t){case se.DAY:return n===1?"day":"days";case se.HOUR:return n===1?"hour":"hours";case se.MINUTE:return n===1?"minute":"minutes";case se.SECOND:return n===1?"second":"seconds"}}function Re(t){switch(t){case"USER":return Ce;case"GROUP":return _t;case"GROUP_MEMBERSHIP":return wt;case"EVENT":return ze}}function un(t){const n=t.split("/");if(n.length===1)return["USER",t];switch(n[0]){case"group":return["GROUP",n[1]];case"group_membership":return["GROUP_MEMBERSHIP",n[1]];case"event":return["EVENT",n[1]]}return console.warn("parseAttributeDefinitionFqn: Invalid attribute definition FQN",t),["USER",t]}const dn={[G.BANNER]:"banner",[G.CHECKLIST]:"checklist",[G.FLOW]:"flow",[G.EMBED]:"embed",[G.LAUNCHER]:"launcher",[G.RESOURCE_CENTER]:"resource center"};function mn(t,{title:n,plural:r}={}){let s=dn[t];return n&&(s=ve.upperFirst(s)),r&&(s+="s"),s}let Le=!1;const Q=[];function Me(t){Q.push(t),Le||(Le=!0,window.addEventListener("keydown",n=>{if(n.key==="Escape"){const r=Q[Q.length-1];r&&(r(),n.stopImmediatePropagation())}}))}function Ae(t){const n=Q.indexOf(t);n>=0&&Q.splice(n,1)}const I=[];let Se=0;typeof window<"u"&&window.document.documentElement.addEventListener("mousedown",()=>Se++,{capture:!0});function pn(t){const n={cmp:t,zIndex:Je(),mountMouseDownCounter:Se};I.push(n),I.length===1&&document.documentElement.addEventListener("click",et,{capture:!0})}function fn(t){const n=I.findIndex(r=>r.cmp===t);I.splice(n,1),I.length===0&&document.documentElement.removeEventListener("click",et,{capture:!0})}function gn(t){const n=I.find(r=>r.cmp===t);return n?n.zIndex:Je()}function Je(){const t=I[I.length-1];return t?t.zIndex+100:1e3}function hn(t,n){const r=t.rootRef.current;return!!r&&r.contains(n)}function et(t){const n=t.target;if(n.closest("#userflow-ui, #notifications"))return;const r=I.findIndex(s=>hn(s.cmp,n));for(let s=I.length-1;s>r;s--){const o=I[s];o&&o.mountMouseDownCounter<Se&&o.cmp.closeLayer(t)}}const we=8,En=we*2,vn=8,Ue=50,j=8,ke=24,bn=8;class tt extends e.PureComponent{constructor(){super(...arguments),this.rootRef=e.createRef(),this.notchRef=e.createRef(),this.bodyRef=e.createRef(),this.state={},this.onAnimationFrame=()=>{this.reposition(),this.requestAnimationFrame()},this.onClick=n=>{n.stopPropagation(),this.props.onClick&&this.props.onClick(n)},this.closeLayer=n=>{if(this.props.ignoreTargetClick){const r=this.props.target,s=n.target;if(r&&s&&r.contains(s))return}this.fireOnDismiss({reason:"outside-click",event:n})},this.onEscape=()=>this.fireOnDismiss({reason:"escape"})}get el(){return this.rootRef.current}componentDidMount(){pn(this),this.props.onDismiss&&Me(this.onEscape),window.addEventListener("userflow:hideAllPopovers",this.closeLayer),this.requestAnimationFrame(),this.reposition()}componentWillUnmount(){fn(this),Ae(this.onEscape),window.removeEventListener("userflow:hideAllPopovers",this.closeLayer),window.cancelAnimationFrame(this.raf)}componentDidUpdate(n){const{props:r}=this;this.reposition(),!n.onDismiss&&r.onDismiss?Me(this.onEscape):n.onDismiss&&!r.onDismiss&&Ae(this.onEscape)}render(){const{props:n}=this,r=this.state,s=["popover"];n.className&&s.push(n.className),s.push(`popover--placement-${r.actualPlacement}`);const o=e.createElement("div",{className:s.join(" "),ref:this.rootRef,onMouseDown:n.onMouseDown,onMouseEnter:n.onMouseEnter,onClick:this.onClick,style:{zIndex:gn(this)}},e.createElement("div",{className:"popover__body",ref:this.bodyRef},n.children),!n.noNotch&&this.renderNotch());return Ee.createPortal(o,(n.document||document).body)}renderNotch(){const n=we,r=n*2;return e.createElement("div",{ref:this.notchRef,className:"popover__notch"},e.createElement("svg",{viewBox:`0 0 ${r} ${n}`},e.createElement("polygon",{className:"popover__notch-border",points:`${r/2},0 ${r},${n} 0,${n}`}),e.createElement("polygon",{className:"popover__notch-fill",points:`${r/2},1 ${r},${n+1} 0,${n+1}`})))}requestAnimationFrame(){this.raf=window.requestAnimationFrame(this.onAnimationFrame)}reposition(){const{props:n}=this,r=n.target,s=this.rootRef.current,o=this.notchRef.current,a=n.placement||"bottom",l=ae(a),c=!!n.forceDimension,d=n.horizontalAlign,_=n.verticalAlign,E=!!n.noNotch,b=document.documentElement.clientWidth,y=document.documentElement.clientHeight,u=r?.getBoundingClientRect(),h=u?.left,g=u?.top,w=u?.width,m=u?.height;let C=n.width;n.matchWidth&&(C=w);let x=n.minWidth;n.matchMinWidth&&w!=null&&(x=Math.max(w,x||0)),(this.lastPopoverCssWidth!==C||this.lastPopoverMinWidth!==x)&&(s.style.width=C==null?"":Math.round(C)+"px",s.style.minWidth=x==null?"":Math.round(x)+"px");const k=s.getBoundingClientRect(),D=k?.width,P=k?.height,V=parseInt((window.getComputedStyle(s).borderTopLeftRadius||"").replace(/px/,""),10),ee=window.scrollX,te=window.scrollY;if(this.lastPlacement===a&&this.lastForceDimension===c&&this.lastHorizontalAlign===d&&this.lastVerticalAlign===_&&this.lastNoNotch===E&&this.lastViewportWidth===b&&this.lastViewportHeight===y&&this.lastTargetX===h&&this.lastTargetY===g&&this.lastTargetWidth===w&&this.lastTargetHeight===m&&this.lastPopoverCssWidth===C&&this.lastPopoverMinWidth===x&&this.lastPopoverWidth===D&&this.lastPopoverHeight===P&&this.lastPopoverBorderRadius===V&&this.lastScrollX===ee&&this.lastScrollY===te)return;let ne,H=null;if(h!=null&&g!=null&&w!=null&&m!=null){ne=!0;const L=E?0:vn,Pe=Ve(h,w,D,b,d||"left"),Ie=Ve(g,m,P,y,_||"top");let re=[{placement:"top",x:Pe,y:g-P-L,fits:P<g-L-j},{placement:"bottom",x:Pe,y:g+m+L,fits:P<y-(g+m)-L-j},{placement:"left",x:h-D-L,y:Ie,fits:D<=h-L-j},{placement:"right",x:h+w+L,y:Ie,fits:D<=b-(h+w)-L-j}];c&&(re=re.filter(T=>ae(T.placement)===l)),re.sort((T,N)=>{const S=ae(T.placement),B=ae(N.placement);return T.fits!==N.fits?T.fits?-1:1:T.placement===a?-1:N.placement===a?1:S!==B?S===l?-1:1:T.placement==="bottom"||T.placement==="right"?-1:1});const me=re[0];let $=me.x,K=me.y;if(H=me.placement,$+=ee,K+=te,$=Math.round($),K=Math.round(K),s.style.transform=`translate3d(${$}px, ${K}px, 0px)`,!E&&o){const T=Math.max(bn,V);let N,S;if(H==="left"||H==="right"){const B=g+m/2-we/2;m<=Ue||_==="center"?S=B:S=Math.min(g,B),S+=-K+te,S=Math.max(T,Math.min(P-T,S))}else{const B=h+w/2-En/2;w<=Ue||d==="center"?N=B:N=Math.min(h,B),N+=-$+ee,N=Math.max(T,Math.min(D-T,N))}N=N&&Math.round(N),S=S&&Math.round(S),o.style.left=N==null?"":N+"px",o.style.top=S==null?"":S+"px"}}else ne=!1,s.style.transform="translate3d(-999999px, -999999px, 0px)";ne&&!this.lastVisible&&n.onShow&&n.onShow(),H!==this.lastActualPlacement&&(this.setState({actualPlacement:H}),n.onPlacementChange&&n.onPlacementChange(H)),this.lastVisible=ne,this.lastPlacement=a,this.lastActualPlacement=H,this.lastForceDimension=c,this.lastHorizontalAlign=d,this.lastVerticalAlign=_,this.lastNoNotch=E,this.lastViewportWidth=b,this.lastViewportHeight=y,this.lastTargetX=h,this.lastTargetY=g,this.lastTargetWidth=w,this.lastTargetHeight=m,this.lastPopoverCssWidth=C,this.lastPopoverMinWidth=x,this.lastPopoverWidth=D,this.lastPopoverHeight=P,this.lastPopoverBorderRadius=V,this.lastScrollX=ee,this.lastScrollY=te}fireOnDismiss(n){const{onDismiss:r}=this.props;r&&r(n),!this.props.noTargetRefocus&&n.reason==="escape"&&this.props.target&&this.props.target.focus()}}function ae(t){return t==="left"||t==="right"?"x":"y"}function Ve(t,n,r,s,o){let a;return o==="center"?a=t+n/2-r/2:a=t,a=Math.max(a,j),a=Math.min(a,s-r-j),a=Math.max(a,t+ke-r),a=Math.min(a,t+n-ke),a}const wn=["yyyy-MM-dd","yyyy/MM/dd","MM-dd yyyy","MM/dd yyyy","MM-dd-yyyy","MM/dd/yyyy","MM-dd","MM/dd","dd MMM yyyy","dd MMMM yyyy","MMM dd yyyy","MMMM dd yyyy","dd MMM","dd MMMM","MMM dd","MMMM dd"],_n=["hh:mmaaa","hh.mmaaa","hh:mm aaa","hh.mm aaa","HH:mm","HH.mm","hhaaa","hh aaa","HH"];for(const t of wn)for(const n of _n);const Cn="d MMM yyyy";function He(t){if(t==null)return"";const n=xn?t.getMinutes()===0?"h aaa":"h:mm aaa":"HH:mm";return xe(t,Cn+", "+n)}function yn(t){if(!t)return null;const n=Ht(t,"yyyy-MM-dd",new Date);return isNaN(n.valueOf())?null:n}function Be(t){if(!t)return null;const n=Bt(t);return isNaN(n.valueOf())?null:n}const xn=Intl.DateTimeFormat(Intl.DateTimeFormat().resolvedOptions().locale,{hour:"numeric"}).resolvedOptions().hourCycle==="h12";var nt=(t=>(t.EVENT="EVENT",t.GROUP="GROUP",t.GROUP_MEMBERSHIP="GROUP_MEMBERSHIP",t.USER="USER",t))(nt||{});function ue(){const[t,n]=i.useState(!1),r=i.useRef(null),s=i.useCallback(()=>n(!0),[]),o=i.useCallback(()=>n(!1),[]),a=i.useCallback(()=>n(!0),[]),l=i.useCallback(()=>n(!1),[]);return{ref:r,hovered:t,eventHandlers:{onPointerEnter:s,onPointerLeave:o,onFocus:a,onBlur:l}}}function We(t){return({condition:n})=>{throw new Error(`conditionOperators.${n.operator}.${t} is not supported`)}}const fe={[p.ABSOLUTE_EQ]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"on")," ",e.createElement("span",{className:"nowrap text-bold"},he(t.value)))},[p.ABSOLUTE_GT]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"after")," ",e.createElement("span",{className:"nowrap text-bold"},he(t.value)))},[p.ABSOLUTE_LT]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"before")," ",e.createElement("span",{className:"nowrap text-bold"},he(t.value)))},[p.AND]:{Preview:We("Preview")},[p.BETWEEN]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is between")," ",e.createElement("b",null,t.value)," ",e.createElement("span",{className:"text-secondary"},"and")," ",e.createElement("b",null,t.value2))},[p.CONTAINS]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"contains")," ",e.createElement("b",null,t.value))},[p.EMPTY]:{Preview:()=>e.createElement("span",{className:"text-secondary"},"is empty")},[p.ENDS_WITH]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"ends with")," ",e.createElement("b",null,t.value))},[p.EQ]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is")," ",e.createElement("b",null,t.dataType===Fe.FLOW&&t.value?e.createElement("span",null,t?.eventDisplayName??t.eventName):t.value))},[p.EXCLUDES_ALL]:{Preview:({condition:t})=>le(t,"does not include","all of")},[p.EXCLUDES_ANY]:{Preview:({condition:t})=>le(t,"does not include","at least one of")},[p.FALSE]:{Preview:()=>e.createElement("span",{className:"text-secondary"},"is false")},[p.GT]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is greater than")," ",e.createElement("b",null,t.value))},[p.GTE]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is greater than or equal to")," ",e.createElement("b",null,t.value))},[p.INCLUDES_ALL]:{Preview:({condition:t})=>le(t,"includes","all of")},[p.INCLUDES_ANY]:{Preview:({condition:t})=>le(t,"includes","at least one of")},[p.LT]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is less than")," ",e.createElement("b",null,t.value))},[p.LTE]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is less than or equal to")," ",e.createElement("b",null,t.value))},[p.NE]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"is not")," ",e.createElement("b",null,t.dataType===Fe.FLOW&&t.value?e.createElement("span",null," ",t?.eventDisplayName??t.eventName):t.value))},[p.NOT_CONTAINS]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"does not contain")," ",e.createElement("b",null,t.value))},[p.NOT_EMPTY]:{Preview:()=>e.createElement("span",{className:"text-secondary"},"has any value")},[p.NOT_REGEX]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"does not match")," ",e.createElement("b",null,t.value))},[p.OR]:{Preview:We("Preview")},[p.REGEX]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"matches")," ",e.createElement("b",null,t.value))},[p.RELATIVE_EQ]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"exactly")," ",e.createElement("span",{className:"nowrap text-bold"},ge(t.value))," ",e.createElement("span",{className:"text-secondary"},"ago"))},[p.RELATIVE_GT]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"less than")," ",e.createElement("span",{className:"nowrap text-bold"},ge(t.value))," ",e.createElement("span",{className:"text-secondary"},"ago"))},[p.RELATIVE_LT]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"more than")," ",e.createElement("span",{className:"nowrap text-bold"},ge(t.value))," ",e.createElement("span",{className:"text-secondary"},"ago"))},[p.STARTS_WITH]:{Preview:({condition:t})=>e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"starts with")," ",e.createElement("b",null,t.value))},[p.TRUE]:{Preview:()=>e.createElement("span",{className:"text-secondary"},"is true")},[p.URL]:{Preview:({condition:t})=>{const{urlPattern:n}=t;if(!n)return e.createElement("span",{className:"text-secondary"},"matches ...");const{includes:r,excludes:s}=n;return e.createElement(e.Fragment,null,r.length>0&&e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"matches")," ",r.map((o,a)=>e.createElement(e.Fragment,{key:a},a>0&&e.createElement("span",{className:"text-secondary"},", "),e.createElement("b",null,o)))),r.length>0&&s.length>0&&e.createElement("span",{className:"text-secondary"}," and "),s.length>0&&e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},"does not match")," ",s.map((o,a)=>e.createElement(e.Fragment,{key:a},a>0&&e.createElement("span",{className:"text-secondary"},", "),e.createElement("b",null,o)))))}}};function Nn(t){return parseInt(t,10)}function ge(t){if(!t)return"days";const n=Nn(t);return isNaN(n)?"days":n+" "+(n===1?"day":"days")}function he(t){if(!t)return"";const n=yn(t);return n?xe(n,"PP"):""}function le(t,n,r){const s=t.values||[];return e.createElement(e.Fragment,null,e.createElement("span",{className:"text-secondary"},n+(s.length>1?" "+r:""))," ",s.map((o,a)=>e.createElement(e.Fragment,{key:a},a>0&&e.createElement("span",{className:"text-secondary"},", "),e.createElement("b",{key:a},o))))}const Oe=t=>({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__success":t===!0,"userflow-debugger-condition__item__danger":t===!1,"userflow-debugger-condition__item__intermediate":t===null}),De=t=>t===!0?A:t===!1?U:W,rt=(t,n)=>{const r=F();return i.useMemo(()=>{const a=(n?r?.hiddenCondition?.breakdown:r?.startCondition?.breakdown)?.find(l=>l.conditionId===t.id);return{classes:Oe(a?.match),icon:De(a?.match)}},[t,r,n])},ce=t=>{const{condition:n,isHideCond:r}=t,{classes:s,icon:o}=rt(n,r),a=n.type;if(a===O.CLAUSE)return e.createElement(Sn,{...t});const l=ot[a];return e.createElement("div",{className:v(s)},e.createElement("span",{className:"d-flex gap-8 align-center userflow-debugger-condition__item__icon"},l.icon?e.createElement(f,{icon:l.icon({condition:n})}):null,e.createElement(l.Preview,{...t})),e.createElement(f,{dataAttrs:{"data-condition-status":"true"},icon:o}))},Tn=()=>{const t=F(),[n,r]=i.useState(!1),s=i.useMemo(()=>t?.hiddenCondition?.breakdown.find(a=>a.conditionId===t?.hiddenCondition?.condition.id),[t?.hiddenCondition]);return t?.hiddenCondition?.condition?e.createElement("div",{role:"button",className:v({"d-flex gap-8 flex-column margin-8":!0,"userflow-debugger-condition__clause":!0,"userflow-debugger-hide-condition__clause__success":s?.match===!0,"userflow-debugger-hide-condition__clause__danger":s?.match===!1,"userflow-debugger-hide-condition__clause__expanded":n}),onClick:o=>{r(!n),o.stopPropagation()}},e.createElement("div",{className:"d-flex gap-8 justify-space-between align-center"},e.createElement("span",null,"Termporarily hide flow"," ",e.createElement("span",{className:"userflow-debugger-info-text"},"Click to ",n?"collapse":"expand")),e.createElement(f,{icon:Z})),n&&e.createElement(ce,{isRoot:!0,isHideCond:!0,condition:t?.hiddenCondition?.condition})):null},Sn=({condition:t,isRoot:n=!1,isHideCond:r=!1})=>{const[s,o]=i.useState(!1),{classes:a,icon:l}=rt(t,r);return n?e.createElement(e.Fragment,null,t.conditions.map((c,d)=>e.createElement(ce,{isHideCond:r,key:d,condition:c}))):e.createElement("div",{role:"button",className:v({"d-flex flex-column gap-8":!0,"userflow-debugger-condition__clause":s,...s?{"userflow-debugger-condition__item__success__expanded":a["userflow-debugger-condition__item__success"],"userflow-debugger-condition__item__danger__expanded":a["userflow-debugger-condition__item__danger"],"userflow-debugger-condition__item__intermediate__expanded":a["userflow-debugger-condition__item__intermediate"]}:a}),onClick:c=>{o(!s),c.stopPropagation()}},e.createElement("div",{className:"d-flex justify-space-between align-center w-full"},e.createElement("span",{className:"d-flex gap-8 align-center"},e.createElement(f,{icon:Dt})," ",e.createElement("strong",null,"Logic Group")," ",e.createElement("span",{className:"userflow-debugger-info-text"},"Click to ",s?"collapse":"expand")),!s&&e.createElement(f,{dataAttrs:{"data-condition-status":"true"},icon:l})),s&&e.createElement(e.Fragment,null,t.conditions.map((c,d)=>e.createElement("div",{key:d,className:v({"userflow-debugger-condition__clause__operator__wrapper":!0})},d>0&&e.createElement("div",{className:v({"userflow-debugger-condition__clause__operator":!0})},e.createElement(st,{condition:t})),e.createElement(ce,{isHideCond:r,condition:c})))))},st=({condition:t})=>{const n=t.operator;return n?e.createElement("span",{className:v({"userflow-debugger-condition__item__operator":!0,"userflow-debugger-condition__item__operator__and":n===p.AND,"userflow-debugger-condition__item__operator__or":n===p.OR})},n===p.AND&&"AND",n===p.OR&&"OR"):null},On={[R.NONE]:U,[R.PENDING_SCHEDULE]:U,[R.SCHEDULED]:W,[R.FIRED]:A},Dn=e.memo(()=>{const t=F(),{waitTimer:n}=t||{},r=t?.startCondition?.condition.waitTime,{ref:s,hovered:o,eventHandlers:a}=ue();return!r||!n||n===R.NONE?null:e.createElement("div",{ref:s,...a,className:v({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__danger":n===R.PENDING_SCHEDULE,"userflow-debugger-condition__item__intermediate":n===R.SCHEDULED,"userflow-debugger-condition__item__success":n===R.FIRED})},e.createElement("span",{className:"d-flex gap-8 align-center"},e.createElement(f,{icon:Ct}),e.createElement("span",null,"Wait ",e.createElement("strong",null,r)," seconds")),e.createElement(f,{dataAttrs:{"data-condition-status":"true"},icon:On[n]}),e.createElement(de,{target:s,hovered:o&&n===R.PENDING_SCHEDULE},"Timer activates once all conditions are satisfied"))}),Pn=e.memo(()=>{const t=F(),[n,r]=i.useState(!1),{startFrequency:s,listFlowLatestVersion:o}=t||{startFrequency:{}};if(!s||!o?.startFrequency||o?.startFrequency===z.NEVER)return null;const{currentFlowIntervalThrottle:a,frequency:l,frequencyUsage:c}=s,d=De(l),_=Oe(l);if(o.startFrequency===z.ONCE||o.startFrequency===z.ONCE_PER_GROUP)return e.createElement("div",{className:v(_)},e.createElement("span",{className:"d-flex gap-8 align-center"},e.createElement(f,{icon:Ye}),e.createElement("strong",null,"Once per user"," ",o.startFrequency===z.ONCE_PER_GROUP&&"per company")),e.createElement(f,{dataAttrs:{"data-condition-status":"true"},icon:d}));if(o.startFrequency===z.ALWAYS&&o.startIntervalValue&&o.startIntervalUnit)return e.createElement("div",{className:v({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__success":a===!0,"userflow-debugger-condition__item__intermediate":a===!1})},e.createElement("span",null,"Every ",e.createElement("strong",null,o.startIntervalValue)," ",e.createElement("span",{className:"userflow-debugger-info-text"},be(o.startIntervalUnit,o.startIntervalValue)," ","apart")),e.createElement(f,{dataAttrs:{"data-condition-status":"true"},icon:a===!1?W:A}));if(o.startFrequency===z.MULTIPLE){const E=l===!0&&a===!0,b=l===!0&&a===!1,y=l===!1;return e.createElement("div",{className:v({"d-flex flex-column gap-8":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__clause":n,...n?{"userflow-debugger-condition-frequency__success__expanded":E,"userflow-debugger-condition-frequency__intermediate__expanded":b,"userflow-debugger-condition-frequency__danger__expanded":y}:{"userflow-debugger-condition-frequency__success":E,"userflow-debugger-condition-frequency__intermediate":b,"userflow-debugger-condition-frequency__danger":y}}),onClick:u=>{r(!n),u.stopPropagation()}},e.createElement("div",{className:"d-flex gap-8 justify-space-between"},e.createElement("div",{className:"d-flex gap-8 align-center"},e.createElement("strong",null,"Start multiple times")," ",e.createElement("span",{className:"userflow-debugger-info-text"},"Click to expand")),!n&&e.createElement(f,{dataAttrs:{"data-condition-status":"true"},icon:E?A:b?W:U})),n&&e.createElement(e.Fragment,null,e.createElement("div",{className:v(_)},e.createElement("span",null,e.createElement("strong",null,o.startLimit)," ",e.createElement("span",{className:"userflow-debugger-info-text"},"(started ",c," times)")),e.createElement(f,{dataAttrs:{"data-condition-status":"true"},icon:d})),o.startIntervalUnit&&o.startIntervalValue&&e.createElement("div",{className:v({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__success":a===!0,"userflow-debugger-condition__item__intermediate":a===!1})},e.createElement("span",null,e.createElement("strong",null,o.startIntervalValue)," ",e.createElement("span",{className:"userflow-debugger-info-text"},be(o.startIntervalUnit,o.startIntervalValue)," ","apart")),e.createElement(f,{dataAttrs:{"data-condition-status":"true"},icon:a===!1?W:A}))))}return null}),In=()=>{const t=F(),{priority:n}=t||{};return n?.priority?e.createElement("div",{className:v({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__priority":!0})},e.createElement("span",null,e.createElement("strong",null,cn(n?.priority))," ",e.createElement("span",{className:"userflow-debugger-info-text"},"Click to learn more")),e.createElement("a",{href:"https://docs.userflow.com/docs/trouble/using-the-debugger#flow-trigger-precedence",target:"_blank",rel:"noreferrer noopener"},e.createElement(f,{icon:je}))):null},Fn=()=>{const t=F(),{startFrequency:n}=t||{},{onlyIfNotCompleted:r}=n||{};return r==null?null:e.createElement("div",{className:v({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__success":r===!0,"userflow-debugger-condition__item__danger":r===!1})},"Only if not completed",e.createElement(f,{icon:r===!0?A:U}))},Rn=()=>{const t=F(),{startFrequency:n}=t||{},{hovered:r,eventHandlers:s,ref:o}=ue();return!n||n?.scopeByGroup===null||n.scopeByGroup===void 0||n.scopeByGroup===!0?null:e.createElement("div",{ref:o,...s,className:v({"d-flex align-center margin-8":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__danger":!0})},"Constrain to current company",e.createElement(f,{icon:De(n.scopeByGroup)}),e.createElement(de,{target:o,hovered:r},"User is not associated with a company"))},Ln=()=>{const t=F(),{startFrequency:n,listFlowLatestVersion:r}=t||{},{anyFlowIntervalThrottle:s}=n||{},{throttleUnit:o,throttleValue:a}=r||{};return s===null||o===null||a===null||o===void 0||a===void 0?null:e.createElement("div",{className:v({"d-flex align-center":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__success":s===!0,"userflow-debugger-condition__item__intermediate":s===!1})},e.createElement("span",null,"Atleast ",e.createElement("strong",null,r?.throttleValue)," ",be(o,a)," after any flow"),e.createElement(f,{dataAttrs:{"data-condition-status":"true"},icon:s===!0?A:W}))},Mn=e.memo(()=>{const{hovered:t,eventHandlers:n,ref:r}=ue(),s=F(),{snoozed:o}=s||{},a=i.useMemo(()=>{if(o?.until)return xe(new Date(o.until),"MMM do, h:mm a")},[o?.until]);return o?e.createElement("div",{ref:r,...n,className:v({"d-flex align-center margin-8":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__item__intermediate":!0})},e.createElement("span",{className:"d-flex gap-8 align-center"},e.createElement(f,{icon:yt}),e.createElement("span",null,"This flow is currently ",e.createElement("strong",null,"snoozed"))),e.createElement(f,{dataAttrs:{"data-condition-status":"true"},icon:W}),e.createElement(de,{target:r,hovered:t},"Snoozed until ",a)):null}),ot={[O.PAGE]:{icon:()=>xt,Preview:({condition:t})=>{const n=t.operator&&fe[t.operator];return e.createElement("span",null,"URL"," ",e.createElement("strong",null,n&&e.createElement(n.Preview,{condition:t})))}},[O.ATTRIBUTE]:{icon:({condition:t})=>{if(!t||!t.attributeName)return Re(nt.EVENT);const[n]=un(t.attributeName);return Re(n)},Preview:({condition:t})=>{const n=t.operator&&fe[t.operator];return e.createElement("span",null,e.createElement("strong",null,t.attributeDisplayName?t.attributeDisplayName:"Attribute")," ",e.createElement("span",{className:"userflow-debugger-info-text"},n&&e.createElement(n.Preview,{condition:t})))}},[O.SEGMENT]:{icon:()=>Nt,Preview:({condition:t})=>{const{segment:n}=t;return e.createElement("span",null,e.createElement("strong",null,n?.subjectType===ut.GROUP?"Company":"User")," ",e.createElement("span",{className:"text-secondary"},t.operator===p.FALSE?"is not in":"is in")," ",e.createElement("strong",null,n?.name||"Segment"))}},[O.ELEMENT]:{icon:({condition:t})=>t.elementState?$t[t.elementState]:Tt,Preview:({condition:t})=>e.createElement("span",null,"Element"," ",t.elementState&&e.createElement("strong",null,Qt(t.elementState)))},[O.INPUT_VALUE]:{icon:()=>St,Preview:({condition:t})=>{const n=t.operator&&fe[t.operator];return e.createElement("span",null,"The value of input"," ",e.createElement("strong",null,n&&e.createElement(n.Preview,{condition:t})))}},[O.FILLED_IN_INPUT]:{icon:()=>Ot,Preview:()=>e.createElement("span",null,"User fills an input")},[O.FLOW]:{icon:({condition:t})=>t.flowState?Kt[t.flowState]:ye,Preview:({condition:t})=>e.createElement("span",null,t.flow?e.createElement(e.Fragment,null,mn(t.flow.type,{title:!0})," ",e.createElement("strong",null,t.flow.name)):"Flow/checklist"," ",t.flowState&&en(t.flowState))},[O.TIME]:{icon:()=>Ye,Preview:({condition:t})=>{const n=t.value?Be(t.value):null,r=n&&e.createElement("strong",{style:{whiteSpace:"nowrap"}},He(n)),s=t.value2?Be(t.value2):null,o=s&&e.createElement("strong",{style:{whiteSpace:"nowrap"}},He(s));return r&&o?e.createElement("span",null,"Current time is between ",r," and ",o):r?e.createElement(e.Fragment,null,"Current time is after ",r):o?e.createElement(e.Fragment,null,"Current time is before ",o):e.createElement(e.Fragment,null,"Current time is ...")}},[O.EVENT]:{icon:()=>ze,Preview:({condition:t})=>{const{ref:n,hovered:r,eventHandlers:s}=ue();return e.createElement("div",{ref:n,...s},e.createElement("strong",null,t.eventDisplayName?t.eventDisplayName:"Event")," ",e.createElement("span",{className:"userflow-debugger-info-text"},on(t.eventFrequencyOperator))," ",e.createElement("strong",null,t.eventFrequencyValue),t.eventFrequencyOperator===Y.BETWEEN&&e.createElement(e.Fragment,null," ",e.createElement("span",{className:"userflow-debugger-info-text"},"and")," ",e.createElement("strong",null,t.eventFrequencyValue2))," ",e.createElement("span",{className:"userflow-debugger-info-text"},nn(t),","," ",an(t.eventTimeOperator)),t.eventTimeOperator!==M.ANY&&e.createElement(e.Fragment,null," ",e.createElement("strong",null,t.eventRelativeValue),t.eventTimeOperator===M.RELATIVE_BETWEEN&&e.createElement(e.Fragment,null," ",e.createElement("span",{className:"userflow-debugger-info-text"},"and")," ",e.createElement("strong",null,t.eventRelativeValue2))," ",e.createElement("span",{className:"userflow-debugger-info-text"},tn(t,t.eventRelativeUnit))),t.eventActor&&t.eventActor!==dt.CURRENT_USER?e.createElement(e.Fragment,null," ",e.createElement("strong",null,sn(t.eventActor))):"",t.whereCondition&&r&&e.createElement(de,{hovered:!0,target:n},"Where ",e.createElement("br",null),e.createElement(at,{condition:t.whereCondition})))}},[O.ALWAYS_TRUE]:{icon:()=>A,Preview:()=>e.createElement("span",null,"Water is wet")},[O.CHECKLIST_TASK_CLICKED]:{icon:()=>qe,Preview:()=>e.createElement("span",null,"Task is clicked")}},at=t=>e.createElement("div",null,t.condition.conditions.map((n,r)=>e.createElement("div",{key:n.id}," ",r===0?null:e.createElement("span",{className:"userflow-debugger-info-text"},t.condition.operator?.toLowerCase())," ",n.type==="ATTRIBUTE"&&ot.ATTRIBUTE.Preview({condition:n,isRoot:!0,isHideCond:!1}),n.type==="CLAUSE"&&e.createElement(e.Fragment,null,"(",e.createElement(at,{condition:n}),")")))),de=({hovered:t,children:n,target:r})=>{const s=Ne();return t?e.createElement(tt,{className:"userflow-debugger-popover",target:r.current,placement:"top",horizontalAlign:"center",verticalAlign:"center",document:s?.current?.contentDocument||void 0},n):null};class An extends e.PureComponent{constructor(n){super(n),this.rootRef=e.createRef(),this.optionsElRef=e.createRef(),this.input=null,this.popoverRef=e.createRef(),this.isMouseDown=!1,this.isCreateOpen=!1,this.setInput=r=>{this.input=r;const{inputRef:s}=this.props;s&&(typeof s=="function"?s(r):s.current=r)},this.onInputChange=r=>{r.stopPropagation();const{value:s}=r.target;s!==""&&this.openPopover();const o=this.memoizedFilterOptions(this.props.options,s);this.setState({inputValue:s,q:s,highlightedIndex:o.length>0?0:-1,createHighlighted:o.length===0}),s===""&&!this.props.noEmpty&&this.triggerOnChange(null),this.props.onSearchChange&&this.props.onSearchChange(s)},this.onPopoverPlacementChange=r=>this.setState({popoverPlacement:r}),this.onMouseDown=r=>{r.preventDefault(),this.isMouseDown=!0;const s=()=>{this.isMouseDown=!1,this.props.document?.removeEventListener("mouseup",s),document.body.removeEventListener("mouseup",s)};this.props.document?.addEventListener("mouseup",s),document.body.addEventListener("mouseup",s)},this.onFocus=r=>{this.input&&!this.props.noSearch&&this.input.select(),this.props.onFocus&&this.props.onFocus(r)},this.onBlur=r=>{this.isMouseDown||this.closePopover(),this.props.onBlur&&!this.isCreateOpen&&this.props.onBlur(r)},this.onClose=()=>{this.state.popoverOpen&&this.closePopover(),this.props.onClose&&this.props.onClose()},this.onTriggerClick=()=>{this.props.readOnly||this.props.disabled||(this.state.popoverOpen?this.closePopover():(this.input&&this.input.focus(),this.openPopover()))},this.onKeyDown=r=>{const{popoverOpen:s,highlightedIndex:o,createHighlighted:a}=this.state,l=this.getFilteredOptions(),c=l.length-1;switch(r.key){case"ArrowUp":r.preventDefault(),s&&(a?this.setState({highlightedIndex:c,createHighlighted:!1}):o>0&&this.setState({highlightedIndex:o-1}));break;case"ArrowDown":r.preventDefault(),s?this.props.onCreate&&(o===c||a)?this.setState({highlightedIndex:-1,createHighlighted:!0}):o<c&&this.setState({highlightedIndex:o+1}):this.props.noOpenOnDown||this.openPopover();break;case"Enter":if(s)if(r.preventDefault(),a&&!this.props.disableCreate)this.fireOnCreate();else{const d=l[o];d||!this.props.noEmpty?this.selectOption(d):!d&&this.props.hideOnEmpty&&this.props.onEnter&&this.props.onEnter()}else this.props.onEnter?this.props.onEnter():this.openPopover();break;case"Tab":s&&!this.props.ignoreTab&&this.selectOption(l[o]);break;case"Escape":s&&(r.preventDefault(),r.stopPropagation(),this.setState({popoverOpen:!1}));break}},this.selectOption=r=>{r===this.props.value?this.setState({popoverOpen:!1,inputValue:this.renderOptionText(r),q:""}):(this.setState({popoverOpen:!1,inputValue:"",q:""}),this.triggerOnChange(r))},this.highlightOption=r=>{this.setState({highlightedIndex:r,createHighlighted:!1})},this.highlightCreate=()=>{this.setState({highlightedIndex:-1,createHighlighted:!0})},this.fireOnCreate=()=>{const{onCreate:r}=this.props;if(r){this.isCreateOpen=!0;const s={q:ve.upperFirst(this.state.q),callback:o=>{this.isCreateOpen=!1,o!=null&&this.selectOption(o),this.input&&this.input.focus()}};r(s),this.closePopover()}},this.openPopover=()=>{if(!this.state.popoverOpen){const r=this.getFilteredOptions();let s=0,o=!1;if(r.length===0)s=-1,o=!0;else{const{value:a}=this.props,l=r.findIndex(c=>c===a);l!==-1&&(s=l)}this.setState({popoverOpen:!0,highlightedIndex:s,createHighlighted:o})}},this.memoizedFilterOptions=Wt((r,s)=>(r=r||[],s?r.filter(o=>this.filter(o,s)):r)),this.state={inputValue:this.renderOptionText(n.value==null?null:n.value),q:"",popoverOpen:!1,popoverPlacement:null,highlightedIndex:-1,createHighlighted:!1}}componentDidUpdate(n,r){const{value:s}=this.props;if(s!==n.value){const o=this.renderOptionText(s??null);o!==this.state.inputValue&&this.setState({inputValue:o})}r.highlightedIndex!==this.state.highlightedIndex&&this.scrollHighlightedOptionIntoView()}render(){let n,r=!1;const{props:s}=this,o=this.state,a=o.popoverPlacement==="top"?"above":"below";if(o.popoverOpen&&this.rootRef.current){const c=this.getFilteredOptions();if(this.props.hideOnEmpty&&c.length===0)r=!0;else{let d;if(c.length>0){let _=null;d=c.reduce((E,b,y)=>{const u=this.getOptionGroup(b);u&&u!==_&&E.push(e.createElement("div",{key:"group:"+u,className:"combo-box__group-header"},u)),_=u;const h=["combo-box__option"];return y===o.highlightedIndex&&h.push("combo-box__option--highlighted"),this.props.optionClassName&&h.push(this.props.optionClassName),E.push(e.createElement(Un,{key:this.getOptionKey(b,y),className:h.join(" "),option:b,idx:y,renderOptionText:s.renderOptionText,renderOptionItem:s.renderOptionItem,getOptionIcon:s.getOptionIcon,onClick:this.selectOption,onHover:this.highlightOption})),s.hasSeparatorAfter&&s.hasSeparatorAfter(b)&&E.push(e.createElement("div",{key:"sep-"+y,className:"combo-box__option-sep"})),E},[])}else s.loading?d=e.createElement("div",{className:"combo-box__no-results"},"Loading..."):d=e.createElement("div",{className:"combo-box__no-results"},"No matching ",s.nounPlural||"items");n=e.createElement(tt,{ref:this.popoverRef,className:"combo-box-popover"+(s.popoverNotch?"":` combo-box-popover--${a}`),noNotch:!s.popoverNotch,target:this.rootRef.current,forceDimension:!0,matchWidth:!0,minWidth:s.popoverMinWidth,onMouseDown:this.onMouseDown,onPlacementChange:this.onPopoverPlacementChange,document:s.document},e.createElement("div",{ref:this.optionsElRef,className:v({"combo-box__options":!0,"combo-box__options--with-create":!!s.onCreate})},d),s.onCreate&&e.createElement("div",{key:"create",className:v({"combo-box__option":!0,"combo-box__option--create":!0,"combo-box__option--highlighted":o.createHighlighted}),onClick:this.fireOnCreate,onMouseMove:this.highlightCreate},e.createElement("div",{className:"combo-box__create-icon"},e.createElement(ie,{icon:Pt})),e.createElement("div",{className:"combo-box__create-text"},"Create"," ",o.q===""?"new"+(s.noun?` ${s.noun}`:""):e.createElement("b",null,ve.upperFirst(o.inputValue)))))}}const l=["input-group","combo-box"];return o.popoverOpen&&!r&&(l.push("combo-box--open"),s.popoverNotch||l.push(`combo-box--with-popover-${a}`)),s.disabled&&l.push("input-group--disabled"),s.noSearch&&l.push("combo-box--no-search"),s.className&&l.push(s.className),e.createElement(e.Fragment,null,e.createElement("div",{className:l.join(" "),style:{width:s.width?s.width+"px":void 0},ref:this.rootRef,onClick:s.readOnly||s.disabled?void 0:()=>{this.input?.focus(),this.openPopover()}},s.childrenBefore,s.value&&s.getOptionIcon&&e.createElement("div",{className:"combobox__input-icon"},it(s.value,s.getOptionIcon)),e.createElement("input",{type:"text",className:s.inputClassName,name:s.name,value:o.inputValue,onChange:this.onInputChange,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onMouseDown:this.openPopover,placeholder:s.placeholder,readOnly:s.readOnly||s.noSearch,disabled:s.disabled,autoComplete:"off",ref:this.setInput,...s.inputHtmlAttributes}),!s.noTrigger&&e.createElement("div",{"data-testid":s.triggerTestId||"combo-box-trigger",className:"input-group__append input-group__trigger",onClick:this.onTriggerClick,onMouseDown:this.onMouseDown},e.createElement(ie,{icon:It})),s.onClose&&e.createElement("div",{className:"input-group__append input-group__trigger",onClick:this.onClose},e.createElement(ie,{icon:Ft})),s.childrenAfter),n)}scrollHighlightedOptionIntoView(){const n=this.optionsElRef.current;if(this.state.popoverOpen&&n){const r=n.querySelector(".combo-box__option--highlighted");if(r){const s=n.getBoundingClientRect(),o=r.getBoundingClientRect();o.top<s.top?n.scrollTop+=o.top-s.top:o.bottom>s.bottom&&(n.scrollTop+=o.bottom-s.bottom)}}}triggerOnChange(n){const{onChange:r}=this.props;r&&r(n)}closePopover(){this.setState({popoverOpen:!1,inputValue:this.renderOptionText(this.props.value==null?null:this.props.value),q:""})}renderOptionText(n){return n==null?"":lt(n,this.props.renderOptionText)}getFilteredOptions(){return this.memoizedFilterOptions(this.props.options,this.state.q)}filter(n,r){return this.props.filter?this.props.filter(n,r):this.renderOptionText(n).toLowerCase().includes(r.toLowerCase())}getOptionKey(n,r){return n&&n.id||r}getOptionGroup(n){return this.props.getOptionGroup?this.props.getOptionGroup(n):n&&n.group||null}}class Un extends e.PureComponent{constructor(){super(...arguments),this.state={isOptionDisabled:!1},this.onClick=()=>{this.state.isOptionDisabled||this.props.onClick(this.props.option)},this.onHover=()=>{this.state.isOptionDisabled||this.props.onHover(this.props.idx)}}componentDidMount(){const n=this.props.option!==void 0&&typeof this.props.option=="object"&&this.props.option!==null&&"disabled"in this.props.option&&this.props.option.disabled===!0;this.setState({isOptionDisabled:n})}componentDidUpdate(){const n=this.props.option!==void 0&&typeof this.props.option=="object"&&this.props.option!==null&&"disabled"in this.props.option&&this.props.option.disabled===!0;this.setState({isOptionDisabled:n})}render(){const{isOptionDisabled:n}=this.state,{props:r}=this;return e.createElement("div",{className:v({[r.className]:!0,"combo-box__option--disabled":n}),onClick:this.onClick,onMouseMove:this.onHover},kn(r.option,r.renderOptionText,r.renderOptionItem,r.getOptionIcon))}}function lt(t,n){return n?n(t):typeof t=="string"||typeof t=="number"?t:t?t.name:"?"}function kn(t,n,r,s){if(r)return r(t);{let o=lt(t,n);return s?e.createElement("div",{className:"d-flex align-flex-start"},e.createElement("div",{className:"combobox__option-icon"},it(t,s)),e.createElement("div",{className:"flex-1"},o)):o}}function it(t,n){const r=n(t);return Vn(r)?e.createElement(ie,{icon:r}):r}function Vn(t){return qt(t)&&"iconName"in t}const Hn=({selectedFlow:t,setSelectedFlow:n,flows:r,debugAutoStartCondition:s})=>{const o=q(),a=Ne();i.useEffect(()=>{if(!t)return;s(t.latestVersion);const c=()=>{s(t.latestVersion)};return o.on("private:checkSessionsAck",c),document.addEventListener("visibilitychange",c),()=>{o.off("private:checkSessionsAck",c),document.removeEventListener("visibilitychange",c)}},[t]);const l=i.useCallback(c=>{!c||t?.latestVersion?.id===c.latestVersion.id||n(c)},[t]);return e.createElement(e.Fragment,null,e.createElement("div",{className:"d-flex align-center justify-space-between"},e.createElement("div",{className:"d-flex justify-space-between align-center"},"Select Flow"),e.createElement(An,{className:"userflow-debugger__flow__selector",value:t,options:r,placeholder:"Select flow",document:a?.current?.contentDocument||void 0,onChange:l,renderOptionItem:c=>c.name})),e.createElement(Bn,{selectedFlow:t,selectedFlowVersionsId:t?.latestVersion?.id}))},Bn=({selectedFlowVersionsId:t,selectedFlow:n})=>{const r=q(),[s,o]=i.useState(!1),a=F(),l=a&&a?.activeFlow?.id===n?.id;return i.useEffect(()=>(o(!1),r.on("private:setFlowSession",c=>{o(c===t)}),()=>{r.off("private:setFlowSession",()=>o(!1))}),[t]),i.useEffect(()=>{l||o(!1)},[l]),a?.activeFlow===null?null:e.createElement(e.Fragment,null,a?.locale?.match===!1&&e.createElement("div",{className:v(Oe(!1))},e.createElement("span",{className:"d-flex gap-8 align-center"},e.createElement(f,{icon:U}),e.createElement("span",null,"The flow will not auto start ",e.createElement("br",null)," ",e.createElement("b",null,"User locale (",a?.locale?.code,") is not enabled.")))),s?e.createElement("div",{className:v({"d-flex align-center fade-in":!0,"userflow-debugger-condition__item":!0,"userflow-debugger-condition__flow__status":!0})},e.createElement("span",{className:"d-flex align-center gap-8"},e.createElement(f,{icon:Z}),e.createElement("span",null,"This flow ",e.createElement("strong",null,"just")," started"))):null,l&&!s&&e.createElement("div",{className:v({"userflow-debugger-condition__item":!0,"userflow-debugger-condition__flow__status":!0})},e.createElement("span",{className:"d-flex align-center gap-8"},e.createElement(f,{icon:Z}),e.createElement("span",null,"This flow is currently active"))),!l&&a&&e.createElement("div",{className:v({"userflow-debugger-condition__item":!0,"userflow-debugger-condition__flow__status":!0})},e.createElement("span",{className:"d-flex gap-8 align-center"},e.createElement(f,{icon:Z,size:16}),e.createElement("span",null,"Another flow is currently active"))))},Wn=({close:t})=>{const n=q(),r=i.useRef(null),[s,o]=i.useState(!!n.clientToken),[a,l]=i.useState(()=>{const m=n.getSessionStorageState(),C=m?.debuggerApp?.x,x=m?.debuggerApp?.y||50;return{x:C??(document.body.clientWidth?Number(document.body.clientWidth)-450:50),y:x}}),[c,d]=i.useState(!1),_=i.useRef(null),{meta:E}=J(),{debuggerRoute:b}=Te(),[y,u]=i.useState(!1),h=i.useRef(null),g=i.useRef({mouseX:0,mouseY:0,elementX:0,elementY:0});i.useEffect(()=>{a&&n.setSessionStorageState(m=>({...m,debuggerApp:{...m.debuggerApp,x:a.x,y:a.y}}))},[a]),i.useEffect(()=>{if(!c)return;const m=x=>{const k=x.clientX-g.current.mouseX,D=x.clientY-g.current.mouseY,P=Math.min(g.current.elementX+k,window.document.body.clientWidth-200),V=Math.max(g.current.elementY+D,0);h.current||(h.current=requestAnimationFrame(()=>{l({x:P,y:V}),h.current=null}))},C=()=>{d(!1)};return document.addEventListener("mousemove",m),document.addEventListener("mouseup",C),()=>{document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",C),h.current&&(cancelAnimationFrame(h.current),h.current=null)}},[c,a]),i.useEffect(()=>{const m=()=>{l(x=>{const k=document.body.clientWidth-500,D=document.body.clientHeight-100,P=Math.max(Math.min(x.x,k),0),V=Math.max(Math.min(x.y,D),0);return{x:P,y:V}})},C=()=>{o(!!n.clientToken)};return window.addEventListener("resize",m),n.on("private:initialised",C),()=>{window.removeEventListener("resize",m),n.off("private:initialised",C)}},[]);const w=m=>{r.current&&(d(!0),m.preventDefault())};return e.createElement("div",{ref:r,style:{left:"0",top:"0",position:"absolute",willChange:"transform",transform:`translate3d(${a.x}px, ${a.y}px, 0)`,zIndex:1234620}},e.createElement("div",{onMouseDown:w,style:{height:"50px",cursor:"move",userSelect:"none",position:"absolute",width:"50px"}}),e.createElement(ft,{title:"Debugger",stylesheet:Gt,style:{borderRadius:"8px",width:"400px",height:b==="checkAutoStart"?"600px":s?"500px":"400px"},elRef:_,onStylesheetsLoad:u},e.createElement(Ke.Provider,{value:_},e.createElement("div",{className:"d-flex flex-column userflow-debugger-app",style:{visibility:y?"visible":"hidden"}},e.createElement("div",{className:"d-flex justify-space-between userflow-debugger-app__header"},e.createElement(jt,null),e.createElement("div",{className:"d-flex align-center userflow-debugger-app__title"},e.createElement(gt,null),e.createElement("span",null,"Userflow debugger")),e.createElement("button",{role:"button",className:"userflow-debugger-app__close",onClick:()=>{n.getSessionStorageState().debuggerApp&&n.setSessionStorageState(m=>({...m,debuggerApp:null})),t()}},e.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.1836 4.49609L8.90234 7.77734L12.1562 11.0312C12.4297 11.2773 12.4297 11.6875 12.1562 11.9336C11.9102 12.207 11.5 12.207 11.2539 11.9336L7.97266 8.67969L4.71875 11.9336C4.47266 12.207 4.0625 12.207 3.81641 11.9336C3.54297 11.6875 3.54297 11.2773 3.81641 11.0039L7.07031 7.75L3.81641 4.49609C3.54297 4.25 3.54297 3.83984 3.81641 3.56641C4.0625 3.32031 4.47266 3.32031 4.74609 3.56641L8 6.84766L11.2539 3.59375C11.5 3.32031 11.9102 3.32031 12.1836 3.59375C12.4297 3.83984 12.4297 4.25 12.1836 4.49609Z",fill:"white"})))),e.createElement(qn,null),b==="verifySetup"&&e.createElement(Gn,null),E?.endUser?.debuggerEnabled&&b==="checkAutoStart"&&e.createElement(zn,null),b==="currentUser"&&e.createElement(Yn,null)))))},qn=()=>{const t=q(),{meta:n}=J(),[r,s]=i.useState(!1),{debuggerRoute:o,setDebuggerRoute:a}=Te(),l=t.isIdentified(),c=Yt(()=>s(!1));return i.useEffect(()=>{n&&n?.endUser.debuggerEnabled===!1&&o==="checkAutoStart"&&a("verifySetup")},[n]),l?e.createElement("div",{ref:c},e.createElement("div",{className:"d-flex align-center justify-space-between userflow-debugger-menu",onClick:()=>s(!r)},e.createElement("div",{className:v({"d-flex align-center":!0,"userflow-debugger-menu__title":!0,"userflow-debugger-menu__title--open":r})},e.createElement(f,{icon:oe[o].icon}),e.createElement("span",null,oe[o].name)),e.createElement("button",{className:"userflow-debugger-menu__toggle"},e.createElement(f,{icon:Rt}))),r&&e.createElement("ul",{className:"userflow-debugger-menu__list"},Object.keys(oe).map(d=>{if(!n?.endUser?.debuggerEnabled&&d==="checkAutoStart")return null;const _=oe[d];return e.createElement("li",{key:d,className:"d-flex align-center userflow-debugger-app__item",onClick:()=>{a&&a(d),s(!1)}},e.createElement(f,{icon:_.icon}),_.name)}))):null},Gn=()=>{const{meta:t,buildId:n}=J(),r=q(),[s,o]=i.useState(!!r.clientToken),a=i.useMemo(()=>r.isIdentified(),[r,t]),{setDebuggerRoute:l}=Te();i.useEffect(()=>{const E=()=>{o(!!r.clientToken)};return r.on("private:initialised",E),()=>{r.off("private:initialised",E)}},[]);const c=i.useMemo(()=>{let E=pe;const b={"d-flex flex-column gap-8":!0,"userflow-debugger-installation__step":!0};return s?(E=X,b["userflow-debugger-installation__step__success"]=!0):(E=Ut,b["userflow-debugger-installation__step__danger"]=!0),{icon:E,classes:b}},[s]),d=i.useMemo(()=>{let E=pe;const b={"d-flex flex-column gap-8":!0,"userflow-debugger-installation__step":!0};return!s&&!a&&(E=pe,b["userflow-debugger-installation__step__failed"]=!0),s&&!a&&(E=Z,b["userflow-debugger-installation__step__warning"]=!0),s&&a&&(E=X,b["userflow-debugger-installation__step__success"]=!0),{icon:E,classes:b}},[s,a]),_=()=>a?t?.endUser.debuggerEnabled?e.createElement(e.Fragment,null,e.createElement("span",{className:"userflow-debugger-details"},t?.env.company.name),e.createElement("span",{className:"userflow-debugger-details"},t?.env.name)):e.createElement("div",{className:"userflow-debugger-details__access__denied"},"The"," ",e.createElement("button",{onClick:()=>l("currentUser")},"currently signed-in user")," ","does not have debugger access"):e.createElement(e.Fragment,null,e.createElement("span",{className:"userflow-debugger-details"},"Unknown company"),e.createElement("span",{className:"userflow-debugger-details"},"Unknown environment"));return e.createElement("div",{className:"space-evenly userflow-debugger-app__content"},e.createElement("div",{className:"userflow-debugger-installation__steps"},e.createElement("div",{className:v({"d-flex gap-8 flex-column":!0,"userflow-debugger-installation__step":!0,"userflow-debugger-installation__step__success":!0})},e.createElement(f,{icon:X,size:32}),"Userflow ",e.createElement("br",null),"installed"),e.createElement("div",{className:v(c.classes)},e.createElement(f,{icon:c.icon,size:32}),"Userflow ",e.createElement("br",null)," ",s?"":"not"," initialized"),e.createElement("div",{className:v(d.classes)},e.createElement(f,{icon:d.icon,size:32}),"User ",e.createElement("br",null)," ",a&&s?"":"not"," ","identified")),!s&&!a&&e.createElement("div",{className:v({"d-flex gap-8 flex-column":!0,"userflow-debugger-installation__not__initialized":!0})},"Remember to initialize Userflow by calling",e.createElement("div",null,"userflow.init('YOUR_USERFLOW_TOKEN')")),s&&e.createElement("div",{className:"d-flex gap-8 flex-column userflow-debugger-details__wrapper"},e.createElement("div",{className:"userflow-debugger-details__env__details"},e.createElement("div",{className:"d-flex gap-8 flex-column justify-space-around"},e.createElement(f,{size:20,icon:Lt}),e.createElement(f,{size:20,icon:Mt})),e.createElement("div",{className:"d-flex flex-column align-flex-start gap-8"},_())),e.createElement("div",{className:"d-flex gap-8 align-center"},e.createElement(f,{size:20,icon:At}),e.createElement("span",{className:"userflow-debugger-details"},r.getInitToken())),e.createElement("div",{className:"d-flex gap-8 align-center"},e.createElement(f,{size:20,icon:Ce}),e.createElement("span",{className:"userflow-debugger-details"},a?r.getIdentifiedUser()?.externalId:"User not identified"))),e.createElement("div",{className:"userflow-debugger-installation__version"},e.createElement("a",{href:"https://docs.userflow.com/docs/dev/userflow-js-installation",target:"_blank",rel:"noreferrer"},"Visit the Userflow Developer Docs for help")," ",e.createElement("br",null),"Userflow.js version 0.1.",n))},zn=()=>{const t=q(),{debuggerClientConditions:n}=J(),[r,s]=i.useState(void 0),[o,a]=i.useState([]),[l,c]=i.useState(),d=i.useMemo(()=>{if(l?.startCondition?.match===!1||l?.hiddenCondition?.match===!1||l?.locale?.match===!1)return!1;const u=l?.startFrequency;return!(u&&(u.onlyIfNotCompleted===!1||u.scopeByGroup===!1||u.frequency===!1))},[l]);i.useEffect(()=>(y().then(u=>{if(u?.length&&(a(u),!r)){const h=t.getSessionStorageState()?.debuggerApp?.selectedFlowVersionId,g=u.find(w=>w.latestVersion.id===h);E(g??u[0])}}),document.addEventListener("visibilitychange",y),()=>{document.removeEventListener("visibilitychange",y)}),[]),i.useEffect(()=>{r&&b(r.latestVersion)},[r]);const _=Xe.debounce(async u=>{const h=[];for(const[m,C]of n.entries())h.push({conditionId:m,isTrue:C.isTrue});const g={kind:"DebugFlowAutostartCondition",flowVersionId:u.id,clientConditions:h},w=await t.send(g);c({...w,listFlowLatestVersion:u}),w.latestVersion?.id&&u.id!==w.latestVersion?.id&&(y().then(m=>{if(!m)return;a(m);const C=m?.find(x=>x.latestVersion.id===w.latestVersion?.id);C&&E(C)}),_(w.latestVersion))},300),E=u=>{s(u);const h=t.getSessionStorageState().debuggerApp;h&&h?.x&&t.setSessionStorageState(g=>({...g,debuggerApp:{...h,selectedFlowVersionId:u.latestVersion.id}}))},b=async u=>{n.forEach(g=>{g.untrack?.()}),n.clear();const{conditionTypes:h}=await mt(async()=>{const{conditionTypes:g}=await import("./flow-condition-types.js").then(w=>w.f);return{conditionTypes:g}},__vite__mapDeps([0,1,2,3,4,5,6,7]));for(const g of u.clientConditions){n.set(g.id,{condition:g,isTrue:null});const w=h[g.type];if(!w){console.error(`Unknown condition type ${g.type}`);continue}const m=n.get(g.id);m&&(m.untrack=w.track({sessionData:new pt([]),condition:g,callback:C=>{m.isTrue!==C&&(m.isTrue=C,_(u))}}))}},y=async()=>{try{return(await t.send({kind:"ListFlows",hasAutostartCondition:!0},{handlesRejection:!0})).flows?.filter(g=>g.type==="FLOW")}catch(u){u.code==="debugger_access_denied"&&_e("Access defined for List Flows");return}};return e.createElement("div",{className:"userflow-debugger-app__content"},e.createElement($e.Provider,{value:l},e.createElement(Hn,{flows:o,selectedFlow:r,setSelectedFlow:E,debugAutoStartCondition:_}),e.createElement("div",{className:"d-flex flex-column gap-8 userflow-debugger-app__wrapper"},l?.startCondition?.condition&&e.createElement("div",null,e.createElement("div",{className:v({"d-flex gap-8 align-center":!0,"userflow-debugger-app__wrapper__passing":d,"userflow-debugger-app__wrapper__failed":!d})},e.createElement(f,{icon:d?kt:Vt}),e.createElement("strong",null,"Auto-start conditions")),e.createElement("span",null,"These are"," ",e.createElement(st,{condition:l.startCondition.condition}),e.createElement("b",null,"-conditions"),", meaning"," ",l.startCondition.condition.type==="CLAUSE"&&l.startCondition.condition.operator==="AND"&&e.createElement(e.Fragment,null,"all conditions must pass for the flow to start."),l.startCondition?.condition.type==="CLAUSE"&&l.startCondition.condition.operator==="OR"&&e.createElement(e.Fragment,null,"only one condition must pass for the flow to start."))),l?.startCondition?.condition&&e.createElement(ce,{isRoot:!0,isHideCond:!1,condition:l.startCondition.condition}),e.createElement(Dn,null),e.createElement(Pn,null),e.createElement(Fn,null),e.createElement(Ln,null),e.createElement(In,null),e.createElement(Tn,null),e.createElement(Rn,null),e.createElement(Mn,null))))},Yn=e.memo(()=>{const{meta:t,buildId:n}=J();if(!t)return null;const r="https://app.userflow.com/app/"+t.env.company.slug+"/settings/debugger?external_id="+t.endUser.externalId;return e.createElement("div",{className:"d-flex flex-column space-evenly flex-1"},e.createElement("div",{className:"d-flex flex-column gap-8"},e.createElement("div",{className:"d-flex flex-column"},t.endUser.avatarUrl?e.createElement("img",{src:t.endUser.avatarUrl,className:"userflow-debugger-user__image"}):e.createElement("div",{className:"userflow-debugger-user__image"}),e.createElement("span",{className:"userflow-debugger-user__name"},t.endUser?.name||"Unknown name"),e.createElement("span",{className:"userflow-debugger-user__email"},t?.endUser?.email||"Unknown email address"),(!t.endUser.email||!t.endUser.name)&&e.createElement("span",{className:"userflow-debugger__external__id"},t.endUser.externalId)),!t.endUser.debuggerEnabled&&e.createElement(e.Fragment,null,e.createElement("div",{className:"userflow-debugger-user__info"},"This user doesn't have access to the Userflow debugger. You can grant access through the debugger settings in Userflow."),e.createElement("a",{className:"userflow-debugger-user__button",href:r,target:"_blank",rel:"noreferrer"},"Grant access in Userflow ",e.createElement(f,{icon:je})))),e.createElement("div",{className:"userflow-debugger-installation__version"},e.createElement("a",{href:"https://docs.userflow.com/docs/dev/userflow-js-installation",target:"_blank",rel:"noreferrer"},"Visit the Userflow Developer Docs for help")," ",e.createElement("br",null),"Userflow.js version 0.1.",n))});class wr{constructor(n,r){this.client=n,this.buildId=r,this.debuggerClientConditions=new Map}mount(){if(this.container)throw new Error("UI has already been mounted");this.container=document.createElement("div"),this.container.id="userflow-debugger-ui",document.body.appendChild(this.container),Ee.render(e.createElement(jn,{client:this.client,debuggerClientConditions:this.debuggerClientConditions,buildId:this.buildId,unmount:()=>this.unmount()}),this.container)}unmount(){this.container&&(Ee.unmountComponentAtNode(this.container),document.body.contains(this.container)&&document.body.removeChild(this.container),this.client.unMountDebugger(),delete this.container)}}const jn=({client:t,debuggerClientConditions:n,buildId:r,unmount:s})=>{const[o,a]=i.useState(void 0),l=Xe.debounce(async()=>{try{const c=await t.send({kind:"GetCurrentEndUser"},{handlesRejection:!0});a(c)}catch(c){c.code==="debugger_access_denied"&&_e("debugger access denied"),a(void 0)}},300);return i.useEffect(()=>(l(),document.addEventListener("visibilitychange",l),t.on("private:identified",l),()=>{document.removeEventListener("visibilitychange",l),t.off("private:identified",l)}),[]),e.createElement(ct.Provider,{value:t},e.createElement(Ze.Provider,{value:{meta:o,debuggerClientConditions:n,buildId:r}},e.createElement(zt,null,e.createElement(Wn,{close:s}))))};export{wr as DebuggerUI};
|
|
3
3
|
//# sourceMappingURL=DebuggerUI.js.map
|
package/EmbedApp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as o,R as l}from"./vendor.react.js";import{K as m,E as z}from"./userflow.js";import{u as P,i as k}from"./client-context.js";import{o as M}from"./vendor.obj-str.js";import{u as U,a as Y,g as q,D as
|
|
1
|
+
import{r as o,R as l}from"./vendor.react.js";import{K as m,E as z}from"./userflow.js";import{u as P,i as k}from"./client-context.js";import{o as M}from"./vendor.obj-str.js";import{u as U,a as Y,g as q,D as Z}from"./stylesheets.js";import{C as G}from"./vendor.fortawesome.pro-regular-svg-icons.js";import{u as J,S as Q,b as V}from"./use-selector-element-monitoring.js";import{w as X,f as ee}from"./flow-host.styl.js";import{r as te}from"./vendor.react-dom.js";import{F as re}from"./Frame.js";import{h as d}from"./roots.js";import{u as ne}from"./use-element-rect.js";import{C as oe}from"./ChecklistUI.js";import"./vendor.core-js.js";import"./vendor.object-assign.js";import"./vendor.phoenix.js";import"./vendor.uuid.js";import"./vendor.i18next.js";import"./vendor.babel.runtime.js";import"./vendor.react-i18next.js";import"./vendor.fortawesome.pro-solid-svg-icons.js";import"./flow-condition-types.js";import"./vendor.date-fns.js";import"./vendor.scheduler.js";import"./use-window-resize.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[a]="a6f16513-f26d-47a2-876e-c50256875a5b",r._sentryDebugIdIdentifier="sentry-dbid-a6f16513-f26d-47a2-876e-c50256875a5b")}catch{}})();const ke=({session:r,checklistSession:a})=>{const p=P(),{version:i}=r,t=i.embed,y=U(i.theme),L=r.locale?r.locale.standardLocaleId:r.version.theme.languageId,b=r.version.embed?.blocks||[],S=b.length===1&&b[0]?.type==="CHECKLIST";o.useEffect(()=>{k.changeLanguage(L)},[L]);const e=o.useRef(null);o.useLayoutEffect(()=>{e.current=document.createElement("div")},[]);const[N,v]=o.useState(!1),{loaded:D}=Y(window,ee,y),[F,I]=o.useState(!1),h=D&&F,[A,_]=o.useState(0),j=o.useCallback(()=>{I(!1),_(n=>n+1)},[]),E=![m.BODY_FIRST,m.BODY_LAST].includes(t.embedMode),[f,x]=o.useState(null),B=o.useCallback(({targetEl:n})=>{x(n)},[]),O=o.useCallback(()=>{E&&console.warn(`Userflow.js: Could not find embed element for banner "${r.flow.name||r.flow.id}"`),x(null)},[E,r.flow.name,r.flow.id]);J({selector:t.embedSelector,targetMoved:B,targetLost:O});const[T,$]=o.useState(!1),c=o.useCallback(()=>{const n=e.current;n&&n.parentElement&&(n.parentElement.removeChild(n),v(!1))},[e]),W=o.useCallback(()=>{r.kind==="embed"&&($(!0),p.endFlow(r,{endReason:z.USER_CLOSED}),c())},[c,r,p]);o.useLayoutEffect(()=>{try{if(S&&!a){c();return}if(!e.current?.parentElement){if(E&&!f){c();return}switch(t.embedMode){case m.BODY_FIRST:document.body.insertAdjacentElement("afterbegin",e.current);break;case m.BODY_LAST:document.body.insertAdjacentElement("beforeend",e.current);break;case m.ELEMENT_FIRST:f.insertAdjacentElement("afterbegin",e.current);break;case m.ELEMENT_LAST:f.insertAdjacentElement("beforeend",e.current);break;case m.ELEMENT_BEFORE:f.insertAdjacentElement("beforebegin",e.current);break;case m.ELEMENT_AFTER:f.insertAdjacentElement("afterend",e.current);break;default:document.body.insertAdjacentElement("afterbegin",e.current)}v(!0),j()}}catch(n){console.error("Error during element insertion:",n)}},[c,e,E,f,i.embed?.overlay,i.embed?.sticky,t.embedMode,j,a]);const g=n=>M({"userflowjs-embed":!0,[`userflowjs-embed--embed-mode-${t.embedMode}`]:!0,[`userflowjs-embed--animate-${String(t.animate)}`]:n&&t.animate});o.useLayoutEffect(()=>{e.current&&(e.current.className=g(!1))},[e,t.embedMode,t.animate]);const w=t.zIndex||X(0);o.useLayoutEffect(()=>{e.current&&(e.current.style.zIndex=w==null?"":String(w),e.current.style.position=h?"":"absolute",e.current.style.visibility=h?"":"hidden")},[e,w,h]);const{height:u,setEl:H}=ne();o.useLayoutEffect(()=>{e.current&&e.current.style.setProperty("--userflowjs-embed-height",u&&d(u+(t.marginTop||0)+(t.marginBottom||0))||"0px")},[e,u,t.marginTop,t.marginBottom]);const K=()=>{if(!r.version.embed?.blocks?.length)return null;const n=(s,C)=>l.createElement("div",{className:"userflowjs-embed-wrapper",key:C},l.createElement("div",{className:"userflowjs-bubble-toolbar"},r.draftMode&&l.createElement("div",{className:"userflowjs-bubble-draft"},"Preview"),!i.closeDisabled&&l.createElement("button",{"data-testid":"userflow-embed-dismiss",className:"userflowjs-bubble-toolbar-button",onClick:W,"aria-label":"Close embed"},l.createElement(Z,{icon:G}))),s);return b.map(s=>{switch(s.type){case"CHECKLIST":return a?n(l.createElement("div",{style:{...q(y),paddingTop:i.closeDisabled?"0px":"32px"},className:"userflowjs-embedded-checklist"},l.createElement(oe,{session:a})),s.id):null;default:return console.warn(`Unknown embed block type: ${s.type}`),null}})};return o.useLayoutEffect(()=>{const n=`userflow-${r.id}`;return e.current.id=n,()=>{T||document.getElementById(n)===e.current&&c()}},[e,r.id,c,T]),o.useLayoutEffect(()=>{const n=r.version.embed?.blocks?.length&&r.version.embed.blocks.some(s=>s.type==="CHECKLIST"?a:!1);u&&u>0&&n?(e.current.style.height=`${u}px`,e.current.className=g(t.animate)):(e.current.style.height="0px",e.current.className=g(!1))},[e,u,a,t.animate]),o.useEffect(()=>{if(!e.current)return;const n=new ResizeObserver(C=>{for(const R of C)R.contentRect&&!t.embedMode&&(e.current.style.height=`${R.contentRect.height}px`)}),s=e.current.querySelector("iframe");return s&&n.observe(s),()=>{n.disconnect()}},[e,t.embedMode]),!N||!b.length||S&&!a?null:te.createPortal(l.createElement(Q.Provider,{value:r},l.createElement(re,{key:A,className:"userflowjs-embed-frame",style:{maxWidth:t.maxWidth?d(t.maxWidth):"100%",width:"100%",height:r.version.embed?.blocks?.length?"100%":"auto",minHeight:0,marginTop:d(t.marginTop),marginRight:d(t.marginRight),marginBottom:d(t.marginBottom),marginLeft:d(t.marginLeft),borderRadius:d(t.borderRadius)},stylesheet:V,theme:y,onStylesheetsLoad:I,title:"Embedded Content"},l.createElement("div",{ref:H,className:M({"userflowjs-embed-root":!0,[`userflowjs-embed-root--content-layout-${t.contentLayout}`]:!0,"userflowjs-theme-root":!0,"userflowjs-embed-root-blocks":b.length>0}),dir:k.dir(),style:{width:"100%",maxWidth:t.maxContentWidth?d(t.maxContentWidth):"100%",margin:"0 auto"}},K()))),e.current)};export{ke as EmbedApp,ke as default};
|
|
2
2
|
//# sourceMappingURL=EmbedApp.js.map
|
package/FlowChrome.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{S as Te,T as we,M as Ee,
|
|
2
|
-
`,{type:r.type,autoData:mt,excludeText:r.excludeText,precision:r.precision,text:r.text,css:r.css})}jt(),i.tooltipTargetMissing=!0,Q.current()}},U)}Q.current()},[a,L,r,t.tooltipMissingToleranceSeconds]),de=l.useCallback(i=>{const U=A.current;jt(),U.tooltipTargetParams&&U.tooltipTargetParams.targetEl!==i.targetEl&&(U.tooltipPlacement=null),U.tooltipTargetParams=i,Y({forceUpdatePosition:!0})},[Y]);Re({selector:a===y.TOOLTIP&&r||null,targetMoved:de,targetLost:fe,onTargetClick:v});const be=l.useCallback(()=>Y({forceAppearanceLayout:!0}),[Y]);Pe(be),l.useEffect(()=>{if(!X||R||typeof ie!="function")return;let i;const U=new ie(()=>{i||(i=window.requestAnimationFrame(()=>{i=void 0,Q.current()}))});return U.observe(X,{childList:!0,attributes:!0,subtree:!0}),()=>{U.disconnect(),i&&window.cancelAnimationFrame(i)}},[X,R]);const{startConfetti:me}=Ae({stepType:a,theme:t,bubbleFrame:lt.current,isBubbleVisible:O,confettiDelay:400});l.useEffect(()=>{O&&ot&<.current&&me(!0)},[ot,s,O]),l.useLayoutEffect(()=>{Q.current()}),l.useLayoutEffect(()=>{V==="absolute"&&Y({forceAppearanceLayout:!0})},[V,T,E]);const bt=i=>{i.preventDefault(),i.stopPropagation()};return Fe(t,!!M&&j===y.BUBBLE),p.createElement("div",{ref:ft,"data-testid":"flow-chrome",className:"userflowjs-flow-chrome userflowjs-theme-root",style:ve(t),dir:nt},p.createElement("div",{className:"userflowjs-bubble",ref:ht,style:{zIndex:pt}},p.createElement("div",{className:zt({"userflowjs-bubble-outline":!0,[`userflowjs-bubble-outline--bubble-placement-${(t.bubblePlacement||"").toLowerCase().replace(/_/,"-")}`]:!0,"userflowjs-bubble-outline--minimizable":!!F,"userflowjs-bubble-outline--minimized":c})},p.createElement("div",{className:"userflowjs-bubble__frame-wrapper",..._},p.createElement(re,{className:"userflowjs-bubble__frame",elRef:lt,stylesheet:_e,theme:t,onStylesheetsLoad:Nt,noIframe:R,title:a.toLowerCase()},p.createElement("div",{className:"userflowjs-bubble-frame-root",ref:i=>{B&&B(i),_t(i)},style:w?{backgroundImage:`url("${encodeURI(w)}")`}:void 0},n,e.flowBranding&&!f&&p.createElement("div",{className:"userflowjs-bubble-made-with-userflow"},p.createElement("div",{className:"userflowjs-bubble-made-with-userflow__absolute"},p.createElement(at,{company:e},p.createElement(ke,null),p.createElement("div",null,"Made with Userflow"))))))),p.createElement("div",{ref:gt,className:"userflowjs-bubble__avatar-notch"})),p.createElement(re,{className:zt({"userflowjs-bubble__avatar":!0,"userflowjs-bubble__avatar--minimizable":!!F,"userflowjs-bubble__avatar--speaking":!!D}),elRef:Tt,stylesheet:De,theme:t,onStylesheetsLoad:St,noIframe:R,ariaHidden:!0,title:a.toLowerCase()},p.createElement("div",{className:zt({"userflowjs-avatar-frame-root":!0,"userflowjs-avatar-frame-root--minimizable":!!F}),onClick:F?()=>S(i=>!i):void 0},p.createElement(Ue,{theme:t}))),p.createElement("div",{ref:wt,className:"userflowjs-bubble__tooltip-notch"})),p.createElement("div",{ref:Et,className:"userflowjs-tooltip-backdrop",onMouseDown:bt,style:{zIndex:J,pointerEvents:z?void 0:"none"}}),p.createElement("div",{ref:Lt,className:"userflowjs-tooltip-block",onMouseDown:bt,style:{zIndex:J}}),p.createElement("div",{ref:yt,className:"userflowjs-tooltip-block",onMouseDown:bt,style:{zIndex:J}}),p.createElement("div",{ref:vt,className:"userflowjs-tooltip-block",onMouseDown:bt,style:{zIndex:J}}),p.createElement("div",{ref:Bt,className:"userflowjs-tooltip-block",onMouseDown:bt,style:{zIndex:J}}),p.createElement("div",{ref:Mt,className:"userflowjs-modal-backdrop",onMouseDown:bt,onClick:q,style:{zIndex:J}}),N&&N({visible:O,bubbleFrame:lt.current}))},Ue=({theme:e})=>{const t="https://js.userflow.com/cartoon-avatars-no-bg/";let o;return e.avatarType===ut.ASSET&&e.avatarAsset?o=e.avatarAsset.assetUrl:e.avatarType===ut.CARTOON&&e.avatarName?o=t+e.avatarName+".svg?3":e.avatarType===ut.URL&&e.avatarUrl?o=e.avatarUrl:o=t+"none.svg",p.createElement("img",{src:o,alt:""})},Ve=({company:e,children:t})=>p.createElement("a",{href:"https://userflow.com/?utm_source=made-with-userflow&utm_medium=link&utm_campaign=made-with-userflow-"+e.slug,target:"_blank",rel:"noopener noreferrer"},t);function We({layoutState:{appearance:e,theme:t,backdrop:o,tooltipTargetMissing:T},width:E,position:s,absoluteWidth:a,root:d,bubble:w,bubbleFrameRoot:r,avatar:L,avatarNotch:I,modalBackdrop:C,dir:z}){const tt=s==="absolute"?a||1024:ct(Ft()),{avatarSize:k,bubblePlacement:v}=t;let x=t.bubbleWidth,q=null,et=null,D=`userflowjs-bubble-frame-root userflowjs-bubble-frame-root--appearance-${e?.toLowerCase()}`,R="hidden",u=null,F=null,M=null,B=null,_="userflowjs-bubble__avatar-notch",N="hidden",n=null,f=null,ot=null,V=null,H="userflowjs-modal-backdrop";switch((e===y.MODAL||!T&&e===y.BUBBLE&&o)&&(H+=" userflowjs-modal-backdrop--visible"),e){case y.BUBBLE:if(t.avatarType!==ut.NONE){R="",N="",v===P.TOP_LEFT||v===P.TOP_CENTER||v===P.TOP_RIGHT?(q=k+It,u=0,n=-2*It,_+=" userflowjs-bubble__avatar-notch--top"):(et=k+It,M=0,ot=-2*It,_+=" userflowjs-bubble__avatar-notch--bottom");const at=v===P.TOP_LEFT||v===P.TOP_CENTER||v===P.BOTTOM_LEFT||v===P.BOTTOM_CENTER||v===P.CENTER;z==="ltr"&&at||z==="rtl"&&!at?(B=0,V=k,_+=" userflowjs-bubble__avatar-notch--left"):(F=0,f=k,_+=" userflowjs-bubble__avatar-notch--right")}break;case y.MODAL:x=t.modalWidth,t.avatarType!==ut.NONE&&(R="",B=`calc(50% - ${k/2}px)`,u=-k/2);break;case y.TOOLTIP:x=t.tooltipWidth;break}E!=null&&(x=E),x=Math.min(x,tt-2*Gt),d.classList.toggle("userflowjs-flow-chrome--position-absolute",s==="absolute"),d.classList.toggle("userflowjs-flow-chrome--position-relative",s==="relative"),d.classList.toggle("userflowjs-flow-chrome--position-fixed",s==="fixed"),d.classList.toggle("userflowjs-flow-chrome--appearance-modal",e===y.MODAL);const $=e!=null&&e!==y.HIDDEN;d.style.position="",d.style.top="",d.style.left="",d.style.visibility=$?"":"hidden",d.style.animation=$?"":"none",m(w,"width",ct(x)),m(w,"padding-top",q),m(w,"padding-bottom",et),r.className=D,m(L,"width",ct(t.avatarSize)),m(L,"height",ct(t.avatarSize)),L.style.visibility=R,m(L,"top",u),m(L,"right",F),m(L,"bottom",M),m(L,"left",B),I.className=_,I.style.visibility=N,m(I,"top",n),m(I,"right",f),m(I,"bottom",ot),m(I,"left",V),C.className=H}function ze({layoutState:e,animateIn:t,position:o,absoluteWidth:T,absoluteHeight:E,desiredTooltipPlacement:s,root:a,bubble:d,tooltipNotch:w,tooltipBackdrop:r,tooltipBlockTop:L,tooltipBlockRight:I,tooltipBlockBottom:C,tooltipBlockLeft:z,dir:tt}){const{appearance:k,theme:v,tooltipTargetParams:x,backdrop:q,backdropPadding:et}=e,{bubblePlacement:D}=v,R=Gt,u=v.tooltipNotchSize,F=10,{width:M,height:B}=d.getBoundingClientRect(),_=o==="absolute"?T||1024:ct(Ft()),N=o==="absolute"?E||768:ct(Yt());let n=0,f=0,ot="userflowjs-bubble__tooltip-notch",V="hidden",H=null,$=null,at=null,rt=null,pt="userflowjs-tooltip-backdrop",J=null,Rt=null,nt=null,ft=null,ht=null,lt=null,X=null,_t=null,gt="userflowjs-tooltip-block userflowjs-tooltip-block--top",Tt=null,wt=null,Et="userflowjs-tooltip-block userflowjs-tooltip-block--right",Lt=null,yt=null,vt="userflowjs-tooltip-block userflowjs-tooltip-block--bottom",Bt=null,Mt=null,Pt="userflowjs-tooltip-block userflowjs-tooltip-block--left",kt=null,Nt=null;switch(k){case y.BUBBLE:{D===P.TOP_LEFT||D===P.BOTTOM_LEFT?n=v.bubbleX:D===P.TOP_CENTER||D===P.CENTER||D===P.BOTTOM_CENTER?n=(_-M)/2:n=_-M-v.bubbleX,D===P.TOP_LEFT||D===P.TOP_CENTER||D===P.TOP_RIGHT?f=v.bubbleY:D===P.CENTER?f=(N-B)/2:f=N-B-v.bubbleY,tt==="rtl"&&(n=_-n-M),n=Math.max(0,Math.min(_-M,n)),f=Math.max(0,Math.min(N-B,f));break}case y.MODAL:{let h=R;v.avatarType!==ut.NONE&&(h+=v.avatarSize/2),n=R+(_-R*2-M)/2,f=h+(N-h-R-B)/2;break}case y.TOOLTIP:{let h;if(x){let{targetRect:c,viewportClipRect:S}=x;if(o==="absolute"){const O=a.offsetParent.getBoundingClientRect();S={top:0,right:_,bottom:N,left:0},c={top:c.top-O.top,right:c.right-O.left,bottom:c.bottom-O.top,left:c.left-O.left,width:c.width,height:c.height}}let A=0;if(q){const{paddingTop:O,paddingRight:dt,paddingBottom:Y,paddingLeft:Q}=$e(et);c={top:c.top-O,right:c.right+dt,bottom:c.bottom+Y,left:c.left-Q,width:c.width+Q+dt,height:c.height+O+Y},A=Math.min(O,dt,Y,Q)}const j=c,K=v.backdropHighlightType==Me.OUTSIDE?v.backdropHighlightSpread:0;if(q&&K&&(c={top:c.top-K,right:c.right+K,bottom:c.bottom+K,left:c.left-K,width:c.width+2*K,height:c.height+2*K}),h=Ye({targetRect:c,bubbleWidth:M,bubbleHeight:B,containerWidth:_,containerHeight:N,viewportClipRect:S,tooltipNotchSize:u,currentTooltipPlacement:e.tooltipPlacement,desiredTooltipPlacement:s}),h===b.BELOW||h===b.ABOVE?(n=c.left+c.width/2-M/2,n=Math.max(R,Math.min(_-M-R,n)),rt=Math.max(F,Math.min(M-F-u*2,c.left+c.width/2-u-n)),h===b.BELOW?H=-u*2:at=-u*2):h===b.RIGHT?(n=c.right+u,n=Math.max(n,S.left+u),n=Math.min(n,S.right+u),n=Math.max(n,u),n=Math.min(n,_-M)):(n=c.left-u-M,n=Math.max(n,S.left-M-u),n=Math.min(n,S.right-M-u),n=Math.max(n,0),n=Math.min(n,_-M-u)),h===b.LEFT||h===b.RIGHT?(f=c.top+c.height/2-B/2,f=Math.max(R,Math.min(N-B-R,f)),H=Math.max(F,Math.min(B-F-u*2,c.top+c.height/2-u-f)),h===b.LEFT?$=-u*2:rt=-u*2):h===b.BELOW?(f=c.bottom+u,f=Math.max(f,S.top+u),f=Math.min(f,S.bottom+u),f=Math.max(f,u),f=Math.min(f,N-B)):(f=c.top-u-B,f=Math.max(f,S.top-B-u),f=Math.min(f,S.bottom-B-u),f=Math.max(f,0),f=Math.min(f,N-B-u)),q){const O=window.getComputedStyle(x.targetEl);J=Math.max(0,j.top),Rt=Math.max(0,_-j.right),nt=Math.max(0,N-j.bottom),ft=Math.max(0,j.left),ht=Math.max(0,Dt(O.borderTopLeftRadius)+A),lt=Math.max(0,Dt(O.borderTopRightRadius)+A),X=Math.max(0,Dt(O.borderBottomRightRadius)+A),_t=Math.max(0,Dt(O.borderBottomLeftRadius)+A),Tt=Math.max(0,j.right),wt=Math.max(0,j.top),Lt=Math.max(0,j.right),yt=Math.max(0,j.bottom),Bt=Math.max(0,j.left),Mt=Math.max(0,j.bottom),kt=Math.max(0,j.left),Nt=Math.max(0,j.top)}}else h=s||b.BELOW,(h===b.BELOW||h===b.ABOVE)&&(rt=M/2-u,h===b.BELOW?H=-u*2:at=-u*2),(h===b.LEFT||h===b.RIGHT)&&(H=B/2-u,h===b.LEFT?$=-u*2:rt=-u*2);e.tooltipPlacement=h,ot+=` userflowjs-bubble__tooltip-notch--${h.toLowerCase()}`,V="",q&&(pt+=" userflowjs-tooltip-backdrop--visible",gt+=" userflowjs-tooltip-block--visible",Et+=" userflowjs-tooltip-block--visible",vt+=" userflowjs-tooltip-block--visible",Pt+=" userflowjs-tooltip-block--visible");break}}d.style.transition="";let Ht=n,St=f;if(t&&(d.style.opacity="0",k===y.TOOLTIP))switch(e.tooltipPlacement){case b.BELOW:f+=24;break;case b.ABOVE:f-=24;break;case b.RIGHT:n+=24;break;case b.LEFT:n-=24;break}if(o!=="relative"&&ce(d,n,f),w.className=ot,w.style.visibility=V,m(w,"top",H),m(w,"right",$),m(w,"bottom",at),m(w,"left",rt),r.className=pt,m(r,"top",J),m(r,"right",Rt),m(r,"bottom",nt),m(r,"left",ft),m(r,"border-top-left-radius",ht),m(r,"border-top-right-radius",lt),m(r,"border-bottom-right-radius",X),m(r,"border-bottom-left-radius",_t),L.className=gt,m(L,"width",Tt),m(L,"height",wt),I.className=Et,m(I,"left",Lt),m(I,"height",yt),C.className=vt,m(C,"left",Bt),m(C,"top",Mt),z.className=Pt,m(z,"width",kt),m(z,"top",Nt),t){d.offsetWidth;const h="opacity 250ms linear";k===y.TOOLTIP?d.style.transition=`${h}, transform 500ms cubic-bezier(0.25, 0.8, 0.5, 1)`:d.style.transition=h,d.style.opacity="1",o!=="relative"&&ce(d,Ht,St)}}function Ye({targetRect:e,bubbleWidth:t,bubbleHeight:o,containerWidth:T,containerHeight:E,viewportClipRect:s,tooltipNotchSize:a,currentTooltipPlacement:d,desiredTooltipPlacement:w}){if(e.bottom<=s.top)return o+a<=E-s.top?b.BELOW:b.ABOVE;if(e.top>=s.bottom)return o+a<=s.bottom?b.ABOVE:b.BELOW;if(e.right<=s.left)return t+a<=T-s.left?b.RIGHT:b.LEFT;if(e.left>=s.right)return t+a<=s.right?b.LEFT:b.RIGHT;const r=I=>{const C=e.left+e.width/2,z=C>=s.left&&C<=s.right,tt=e.top+e.height/2,k=tt>=s.top&&tt<=s.bottom;switch(I){case b.BELOW:return E-e.bottom>o+a&&z;case b.ABOVE:return e.top>o+a&&z;case b.RIGHT:return T-e.right>t+a&&k;case b.LEFT:return e.left>t+a&&k}};if(w&&r(w))return w;if(d&&r(d))return d;const L=[{placement:b.BELOW,dist:e.top},{placement:b.ABOVE,dist:E-e.bottom},{placement:b.RIGHT,dist:e.left},{placement:b.LEFT,dist:T-e.right}];L.sort((I,C)=>I.dist-C.dist);for(const{placement:I}of L)if(r(I))return I;return b.BELOW}function m(e,t,o){o==null?e.style.removeProperty(t):e.style.setProperty(t,typeof o=="number"?o+"px":o,"important")}function ce(e,t,o){t=Math.round(t),o=Math.round(o),e.style.transform=`translate3d(${t}px, ${o}px, 0px)`}function Ge(e){if(G.customScrollIntoView){G.customScrollIntoView(e);return}const{scrollPadding:t}=G;if(t&&je(e)===document.scrollingElement){const o=t.top||0,T=t.right||0,E=t.bottom||0,s=t.left||0;let a=0,d=0;const w=e.getBoundingClientRect(),r=Ft(),L=Yt();if(w.top<o?a=w.top-o:w.bottom>L-E&&(a=w.bottom-L+E),w.left<s?d=w.left-s:w.right>r-T&&(d=w.right-r+T),a!=0||d!=0){window.scrollBy({top:a,left:d,behavior:"smooth"});return}}try{e.scrollIntoView({behavior:"smooth",block:"nearest"})}catch(o){console.warn("Userflow.js: scrollIntoView error (falling back to no options).",o),e.scrollIntoView()}}function $e(e){if(!e||e==="0")return{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0};const t=e.trim().split(" ");if(t.length===1){const o=it(t[0]);return{paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o}}else if(t.length===2){const o=it(t[0]),T=it(t[1]);return{paddingTop:o,paddingRight:T,paddingBottom:o,paddingLeft:T}}else return{paddingTop:it(t[0]),paddingRight:it(t[1]),paddingBottom:it(t[2]),paddingLeft:it(t[3])}}function it(e){const t=parseInt(e,10);return isNaN(t)?0:t}export{io as B,co as F};
|
|
1
|
+
import{S as Te,T as we,M as Ee,C as Le}from"./vendor.fortawesome.pro-regular-svg-icons.js";import{R as p,r as l}from"./vendor.react.js";import{D as xt,a as ye,g as ve}from"./stylesheets.js";import"./vendor.core-js.js";import{u as ce}from"./vendor.react-i18next.js";import{F as re}from"./Frame.js";import{l as G,q as y,I as ct,F as Be,J as P,$ as Me,Z as b}from"./userflow.js";import{a as Oe,f as Ie}from"./flow-host.styl.js";import{u as Re,b as _e}from"./use-selector-element-monitoring.js";import{u as Pe}from"./use-window-resize.js";import{S as ke}from"./logomark.js";import{o as zt}from"./vendor.obj-str.js";import{e as Yt,d as Ft,j as ut,s as Ne,l as ne,M as ie,q as Dt,t as je,p as Ce}from"./roots.js";import{c as xe}from"./vendor.canvas-confetti.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="30a73e5b-9fa4-4c41-9ae4-2f748e801958",e._sentryDebugIdIdentifier="sentry-dbid-30a73e5b-9fa4-4c41-9ae4-2f748e801958")}catch{}})();const io=({draftMode:e,muted:t,toggleMuted:o,close:T,minimize:E})=>{const{t:s}=ce();return p.createElement("div",{className:"userflowjs-bubble-toolbar"},e&&p.createElement("div",{className:"userflowjs-bubble-draft"},typeof e=="string"?e:"Preview"),o&&p.createElement("button",{className:"userflowjs-bubble-toolbar-button",onClick:o,"aria-label":t?"Unmute":"Mute"},t?p.createElement(xt,{icon:Te}):p.createElement(xt,{icon:we})),E&&p.createElement("button",{"data-testid":"minimize-button",className:"userflowjs-bubble-toolbar-button",onClick:E,"aria-label":"Minimize checklist"},p.createElement(xt,{icon:Ee})),T&&p.createElement("button",{"data-testid":"close-button",className:"userflowjs-bubble-toolbar-button",onClick:T,"aria-label":s("menu.close")},p.createElement(xt,{icon:Le})))},De=new URL("avatar-frame.css",import.meta.url).href;function Fe(e,t){const o=window.Intercom;l.useEffect(()=>{if(!(!t||!e.autoHideIntercom||typeof o!="function"||G.autoHide3pDisabled)){try{o("update",{hide_default_launcher:!0})}catch(a){console.warn("Userflow.js: Error when hiding Intercom launcher",a)}return()=>{if(!G.autoHide3pDisabled)try{o("update",{hide_default_launcher:!1})}catch(a){console.warn("Userflow.js: Error when unhiding Intercom launcher",a)}}}},[o,e.autoHideIntercom,t]);const T=window.$crisp;l.useEffect(()=>{if(!(!t||!e.autoHideCrisp||!T||G.autoHide3pDisabled)){try{T.push(["do","chat:hide"])}catch(a){console.warn("Userflow.js: Error when hiding Crisp Chat",a)}return()=>{if(!G.autoHide3pDisabled)try{T.push(["do","chat:show"])}catch(a){console.warn("Userflow.js: Error when unhiding Crisp Chat",a)}}}},[T,e.autoHideCrisp,t]);const E=window.HubSpotConversations;l.useEffect(()=>{if(!(!t||!e.autoHideHubspot||!E||G.autoHide3pDisabled)){try{E.widget.remove()}catch(a){console.warn("Userflow.js: Error when hiding HubSpot Chat",a)}return()=>{if(!G.autoHide3pDisabled)try{E.widget.load()}catch(a){console.warn("Userflow.js: Error when unhiding HubSpot Chat",a)}}}},[E,e.autoHideHubspot,t]);const s=window.drift;l.useEffect(()=>{if(!(!t||!e.autoHideDrift||!s||G.autoHide3pDisabled)){try{s.api.widget.hide()}catch(a){console.warn("Userflow.js: Error when hiding Drift Chat",a)}return()=>{if(!G.autoHide3pDisabled)try{s.api.widget.show()}catch(a){console.warn("Userflow.js: Error when unhiding Drift Chat",a)}}}},[s,e.autoHideDrift,t])}const st={PARTICLE_COUNT:400,ANIMATION_DELAY:400,DEFAULT_SPREAD:360,DEFAULT_GRAVITY:1,DEFAULT_TICKS:100,DEFAULT_Z_INDEX:5,TOOLTIP_DECAY:.85,TOOLTIP_START_VELOCITY:30},He={particleCount:st.PARTICLE_COUNT,spread:st.DEFAULT_SPREAD,gravity:st.DEFAULT_GRAVITY,ticks:st.DEFAULT_TICKS,angle:90,zIndex:st.DEFAULT_Z_INDEX,disableForReducedMotion:!0},Se=e=>{if(!e)return{x:.5,y:.5};const t=e.getBoundingClientRect();return{x:t.left>=0?(t.left+t.width/2)/window.innerWidth:.5,y:t.top>=0?(t.top+t.height/2)/window.innerHeight:.5}},Ae=({bubbleFrame:e,isBubbleVisible:t,theme:o,stepType:T,onAnimationComplete:E,confettiDelay:s})=>{const[a,d]=l.useState(!1);return l.useEffect(()=>{if(!t||!a||!o.confettiColors||o.confettiColors.length===0)return;const w=setTimeout(()=>{try{const r=Se(e),L={...He,colors:o.confettiColors||void 0,origin:r,...T===y.TOOLTIP&&{decay:st.TOOLTIP_DECAY,startVelocity:st.TOOLTIP_START_VELOCITY}};xe(L)}catch(r){console.warn("Error launching confetti:",r)}finally{E?.(),d(!1)}},s||st.ANIMATION_DELAY);return()=>clearTimeout(w)},[t,a,o.confettiColors,e,T,E,s]),{startConfetti:d}},Gt=16,It=20,uo=({company:e,theme:t,position:o,absoluteWidth:T,absoluteHeight:E,stepKey:s,stepAppearance:a,width:d,backgroundImageUrl:w,tooltipSelector:r,allowMissingTooltipTarget:L,tooltipPlacement:I,backdrop:C,tooltipTargetBlocked:z,backdropPadding:tt,zIndex:k,onTooltipTargetClick:v,onTooltipTargetMissingChange:x,onModalBackdropClick:q,onVisibleChange:et,speaking:D,noIframe:R,MadeWithUserflow:c,minimizeOnAvatarClick:F,autoHide3pEnabled:M,bubbleFrameRootRef:B,frameWrapperHtmlAttributes:_,rootChildren:N,children:n,isModalAnnouncement:f,confettiEnabled:ot})=>{const V=o||"absolute",H=I||null,$=tt||"0",at=c||Ve,rt=Oe(),pt=V==="fixed"?k??rt+1:1,J=pt-1,{i18n:Rt}=ce(),nt=Rt.dir(),ft=l.useRef(null),ht=l.useRef(null),lt=l.useRef(null),[X,_t]=l.useState(null),gt=l.useRef(null),Tt=l.useRef(null),wt=l.useRef(null),Et=l.useRef(null),Lt=l.useRef(null),yt=l.useRef(null),vt=l.useRef(null),Bt=l.useRef(null),Mt=l.useRef(null);l.useLayoutEffect(()=>{const i=ft.current.style;i.animation="none",i.visibility="hidden",i.position="absolute",i.top="-99999px",i.left="-99999px"},[]);const{loaded:Pt}=ye(window,Ie,t),[kt,Nt]=l.useState(!1),[Ht,St]=l.useState(!1),h=Pt&&kt&&Ht;let[u,S]=l.useState(!1);a!==y.BUBBLE&&(F=!1,u=!1),l.useEffect(()=>{S(!1)},[s]);const A=l.useRef({appearance:null,width:null,theme:t,bubbleFrameHeight:0,backdrop:!1,backdropPadding:"0",prevTooltipTargetParams:null,tooltipTargetParams:null,desiredTooltipPlacement:null,tooltipPlacement:null,lastReportedTooltipTargetMissing:!1,tooltipTargetMissing:!1,tooltipTargetMissingTimeout:void 0,stepKeyScrolledIntoView:void 0,targetScrolledIntoView:null}),[j,K]=l.useState(null),O=j!=null&&h;l.useEffect(()=>{et&&et(O)},[et,O]);const dt=l.useCallback(i=>{A.current.lastReportedTooltipTargetMissing!==i&&(A.current.lastReportedTooltipTargetMissing=i,x&&x(i))},[x]),Y=l.useCallback(({forceAppearanceLayout:i,forceUpdatePosition:U}={})=>{const mt=ft.current,Ct=ht.current,Ot=lt.current,Xt=Tt.current,Zt=gt.current,qt=wt.current,Jt=Et.current,Kt=Lt.current,Qt=yt.current,te=vt.current,ee=Bt.current,oe=Mt.current;if(!mt||!Ct||!Ot||!X||!Xt||!Zt||!qt||!Jt||!Kt||!Qt||!te||!ee||!oe||!h)return;const g=A.current,{tooltipTargetParams:At}=g;Ce();let W=a,ae=!1;W===y.TOOLTIP&&!L&&!At&&(g.tooltipTargetMissing?(W=y.BUBBLE,ae=!0):W=null);const le=W!==g.appearance,pe=d!==g.width;if((i||le||pe||t!==g.theme||C!=g.backdrop||$!=g.backdropPadding||H!==g.desiredTooltipPlacement)&&(g.appearance=W,g.width=d,g.theme=t,g.backdrop=C,g.backdropPadding=$,g.desiredTooltipPlacement=H,U=!0,We({layoutState:g,width:d,position:V,absoluteWidth:T,root:mt,bubble:Ct,bubbleFrameRoot:X,avatar:Xt,avatarNotch:Zt,modalBackdrop:oe,dir:nt})),!R){const Z=X.offsetHeight,Ut=Yt(),Vt=Ft()<800?0:Gt,he=t.avatarType===ct.NONE?0:W===y.BUBBLE?It+t.avatarSize:W===y.MODAL?t.avatarSize/2:0,se=Ut-2*Vt-he,Wt=Math.min(Z,se);if(W&&Wt!==g.bubbleFrameHeight){if(g.bubbleFrameHeight=Wt,m(Ot,"height",ut(Wt)),Ne(Ot)&&Ot.contentDocument){const ge=Ot.contentDocument.documentElement;ge.style.overflowY=Z<=se?"hidden":"scroll"}U=!0}}if(U&&W){let Z=le;if(W===y.TOOLTIP){const Ut=g.tooltipTargetParams&&g.tooltipTargetParams.targetEl,Vt=g.prevTooltipTargetParams&&g.prevTooltipTargetParams.targetEl;Ut!==Vt&&(Z=!0)}g.prevTooltipTargetParams=g.tooltipTargetParams,ze({layoutState:g,animateIn:Z,position:V,absoluteWidth:T,absoluteHeight:E,desiredTooltipPlacement:H,root:mt,bubble:Ct,tooltipNotch:qt,tooltipBackdrop:Jt,tooltipBlockTop:Kt,tooltipBlockRight:Qt,tooltipBlockBottom:te,tooltipBlockLeft:ee,dir:nt})}if(W===y.TOOLTIP){const Z=At&&At.targetEl;Z&&g.stepKeyScrolledIntoView!==s&&g.targetScrolledIntoView!==Z&&(g.stepKeyScrolledIntoView=s,g.targetScrolledIntoView=Z,Ge(Z))}else g.stepKeyScrolledIntoView=void 0,g.targetScrolledIntoView=null;dt(ae),K(W)},[h,X,s,a,d,t,V,T,E,L,H,C,$,R,dt,nt]),Q=l.useRef(Y);Q.current=Y;const $t=l.useRef(!1);l.useEffect(()=>{const i=()=>{$t.current=!0};return window.addEventListener("pagehide",i),()=>window.removeEventListener("pagehide",i)},[]);const jt=()=>{window.clearTimeout(A.current.tooltipTargetMissingTimeout),A.current.tooltipTargetMissingTimeout=void 0};l.useEffect(()=>jt,[]);const fe=l.useCallback(()=>{const i=A.current;if(i.tooltipTargetParams=null,L||(i.tooltipPlacement=null),a!==y.TOOLTIP){jt(),i.tooltipTargetMissing=!1;return}if(!L&&!i.tooltipTargetMissingTimeout){i.tooltipTargetMissing=!1;const U=r&&!ne(r)&&r.type===Be.AUTO&&!r.autoData?1:parseFloat(t.tooltipMissingToleranceSeconds)*1e3;i.tooltipTargetMissingTimeout=window.setTimeout(()=>{if(!$t.current){if(r&&!ne(r)){let mt=r.autoData;if(r.autoData)try{mt=JSON.parse(r.autoData)}catch{}console.warn(`Userflow.js: Tooltip target not found on page.
|
|
2
|
+
`,{type:r.type,autoData:mt,excludeText:r.excludeText,precision:r.precision,text:r.text,css:r.css})}jt(),i.tooltipTargetMissing=!0,Q.current()}},U)}Q.current()},[a,L,r,t.tooltipMissingToleranceSeconds]),de=l.useCallback(i=>{const U=A.current;jt(),U.tooltipTargetParams&&U.tooltipTargetParams.targetEl!==i.targetEl&&(U.tooltipPlacement=null),U.tooltipTargetParams=i,Y({forceUpdatePosition:!0})},[Y]);Re({selector:a===y.TOOLTIP&&r||null,targetMoved:de,targetLost:fe,onTargetClick:v});const be=l.useCallback(()=>Y({forceAppearanceLayout:!0}),[Y]);Pe(be),l.useEffect(()=>{if(!X||R||typeof ie!="function")return;let i;const U=new ie(()=>{i||(i=window.requestAnimationFrame(()=>{i=void 0,Q.current()}))});return U.observe(X,{childList:!0,attributes:!0,subtree:!0}),()=>{U.disconnect(),i&&window.cancelAnimationFrame(i)}},[X,R]);const{startConfetti:me}=Ae({stepType:a,theme:t,bubbleFrame:lt.current,isBubbleVisible:O,confettiDelay:400});l.useEffect(()=>{O&&ot&<.current&&me(!0)},[ot,s,O]),l.useLayoutEffect(()=>{Q.current()}),l.useLayoutEffect(()=>{V==="absolute"&&Y({forceAppearanceLayout:!0})},[V,T,E]);const bt=i=>{i.preventDefault(),i.stopPropagation()};return Fe(t,!!M&&j===y.BUBBLE),p.createElement("div",{ref:ft,"data-testid":"flow-chrome",className:"userflowjs-flow-chrome userflowjs-theme-root",style:ve(t),dir:nt},p.createElement("div",{className:"userflowjs-bubble",ref:ht,style:{zIndex:pt}},p.createElement("div",{className:zt({"userflowjs-bubble-outline":!0,[`userflowjs-bubble-outline--bubble-placement-${(t.bubblePlacement||"").toLowerCase().replace(/_/,"-")}`]:!0,"userflowjs-bubble-outline--minimizable":!!F,"userflowjs-bubble-outline--minimized":u})},p.createElement("div",{className:"userflowjs-bubble__frame-wrapper",..._},p.createElement(re,{className:"userflowjs-bubble__frame",elRef:lt,stylesheet:_e,theme:t,onStylesheetsLoad:Nt,noIframe:R,title:a.toLowerCase()},p.createElement("div",{className:"userflowjs-bubble-frame-root",ref:i=>{B&&B(i),_t(i)},style:w?{backgroundImage:`url("${encodeURI(w)}")`}:void 0},n,e.flowBranding&&!f&&p.createElement("div",{className:"userflowjs-bubble-made-with-userflow"},p.createElement("div",{className:"userflowjs-bubble-made-with-userflow__absolute"},p.createElement(at,{company:e},p.createElement(ke,null),p.createElement("div",null,"Made with Userflow"))))))),p.createElement("div",{ref:gt,className:"userflowjs-bubble__avatar-notch"})),p.createElement(re,{className:zt({"userflowjs-bubble__avatar":!0,"userflowjs-bubble__avatar--minimizable":!!F,"userflowjs-bubble__avatar--speaking":!!D}),elRef:Tt,stylesheet:De,theme:t,onStylesheetsLoad:St,noIframe:R,ariaHidden:!0,title:a.toLowerCase()},p.createElement("div",{className:zt({"userflowjs-avatar-frame-root":!0,"userflowjs-avatar-frame-root--minimizable":!!F}),onClick:F?()=>S(i=>!i):void 0},p.createElement(Ue,{theme:t}))),p.createElement("div",{ref:wt,className:"userflowjs-bubble__tooltip-notch"})),p.createElement("div",{ref:Et,className:"userflowjs-tooltip-backdrop",onMouseDown:bt,style:{zIndex:J,pointerEvents:z?void 0:"none"}}),p.createElement("div",{ref:Lt,className:"userflowjs-tooltip-block",onMouseDown:bt,style:{zIndex:J}}),p.createElement("div",{ref:yt,className:"userflowjs-tooltip-block",onMouseDown:bt,style:{zIndex:J}}),p.createElement("div",{ref:vt,className:"userflowjs-tooltip-block",onMouseDown:bt,style:{zIndex:J}}),p.createElement("div",{ref:Bt,className:"userflowjs-tooltip-block",onMouseDown:bt,style:{zIndex:J}}),p.createElement("div",{ref:Mt,className:"userflowjs-modal-backdrop",onMouseDown:bt,onClick:q,style:{zIndex:J}}),N&&N({visible:O,bubbleFrame:lt.current}))},Ue=({theme:e})=>{const t="https://js.userflow.com/cartoon-avatars-no-bg/";let o;return e.avatarType===ct.ASSET&&e.avatarAsset?o=e.avatarAsset.assetUrl:e.avatarType===ct.CARTOON&&e.avatarName?o=t+e.avatarName+".svg?3":e.avatarType===ct.URL&&e.avatarUrl?o=e.avatarUrl:o=t+"none.svg",p.createElement("img",{src:o,alt:""})},Ve=({company:e,children:t})=>p.createElement("a",{href:"https://userflow.com/?utm_source=made-with-userflow&utm_medium=link&utm_campaign=made-with-userflow-"+e.slug,target:"_blank",rel:"noopener noreferrer"},t);function We({layoutState:{appearance:e,theme:t,backdrop:o,tooltipTargetMissing:T},width:E,position:s,absoluteWidth:a,root:d,bubble:w,bubbleFrameRoot:r,avatar:L,avatarNotch:I,modalBackdrop:C,dir:z}){const tt=s==="absolute"?a||1024:ut(Ft()),{avatarSize:k,bubblePlacement:v}=t;let x=t.bubbleWidth,q=null,et=null,D=`userflowjs-bubble-frame-root userflowjs-bubble-frame-root--appearance-${e?.toLowerCase()}`,R="hidden",c=null,F=null,M=null,B=null,_="userflowjs-bubble__avatar-notch",N="hidden",n=null,f=null,ot=null,V=null,H="userflowjs-modal-backdrop";switch((e===y.MODAL||!T&&e===y.BUBBLE&&o)&&(H+=" userflowjs-modal-backdrop--visible"),e){case y.BUBBLE:if(t.avatarType!==ct.NONE){R="",N="",v===P.TOP_LEFT||v===P.TOP_CENTER||v===P.TOP_RIGHT?(q=k+It,c=0,n=-2*It,_+=" userflowjs-bubble__avatar-notch--top"):(et=k+It,M=0,ot=-2*It,_+=" userflowjs-bubble__avatar-notch--bottom");const at=v===P.TOP_LEFT||v===P.TOP_CENTER||v===P.BOTTOM_LEFT||v===P.BOTTOM_CENTER||v===P.CENTER;z==="ltr"&&at||z==="rtl"&&!at?(B=0,V=k,_+=" userflowjs-bubble__avatar-notch--left"):(F=0,f=k,_+=" userflowjs-bubble__avatar-notch--right")}break;case y.MODAL:x=t.modalWidth,t.avatarType!==ct.NONE&&(R="",B=`calc(50% - ${k/2}px)`,c=-k/2);break;case y.TOOLTIP:x=t.tooltipWidth;break}E!=null&&(x=E),x=Math.min(x,tt-2*Gt),d.classList.toggle("userflowjs-flow-chrome--position-absolute",s==="absolute"),d.classList.toggle("userflowjs-flow-chrome--position-relative",s==="relative"),d.classList.toggle("userflowjs-flow-chrome--position-fixed",s==="fixed"),d.classList.toggle("userflowjs-flow-chrome--appearance-modal",e===y.MODAL);const $=e!=null&&e!==y.HIDDEN;d.style.position="",d.style.top="",d.style.left="",d.style.visibility=$?"":"hidden",d.style.animation=$?"":"none",m(w,"width",ut(x)),m(w,"padding-top",q),m(w,"padding-bottom",et),r.className=D,m(L,"width",ut(t.avatarSize)),m(L,"height",ut(t.avatarSize)),L.style.visibility=R,m(L,"top",c),m(L,"right",F),m(L,"bottom",M),m(L,"left",B),I.className=_,I.style.visibility=N,m(I,"top",n),m(I,"right",f),m(I,"bottom",ot),m(I,"left",V),C.className=H}function ze({layoutState:e,animateIn:t,position:o,absoluteWidth:T,absoluteHeight:E,desiredTooltipPlacement:s,root:a,bubble:d,tooltipNotch:w,tooltipBackdrop:r,tooltipBlockTop:L,tooltipBlockRight:I,tooltipBlockBottom:C,tooltipBlockLeft:z,dir:tt}){const{appearance:k,theme:v,tooltipTargetParams:x,backdrop:q,backdropPadding:et}=e,{bubblePlacement:D}=v,R=Gt,c=v.tooltipNotchSize,F=10,{width:M,height:B}=d.getBoundingClientRect(),_=o==="absolute"?T||1024:ut(Ft()),N=o==="absolute"?E||768:ut(Yt());let n=0,f=0,ot="userflowjs-bubble__tooltip-notch",V="hidden",H=null,$=null,at=null,rt=null,pt="userflowjs-tooltip-backdrop",J=null,Rt=null,nt=null,ft=null,ht=null,lt=null,X=null,_t=null,gt="userflowjs-tooltip-block userflowjs-tooltip-block--top",Tt=null,wt=null,Et="userflowjs-tooltip-block userflowjs-tooltip-block--right",Lt=null,yt=null,vt="userflowjs-tooltip-block userflowjs-tooltip-block--bottom",Bt=null,Mt=null,Pt="userflowjs-tooltip-block userflowjs-tooltip-block--left",kt=null,Nt=null;switch(k){case y.BUBBLE:{D===P.TOP_LEFT||D===P.BOTTOM_LEFT?n=v.bubbleX:D===P.TOP_CENTER||D===P.CENTER||D===P.BOTTOM_CENTER?n=(_-M)/2:n=_-M-v.bubbleX,D===P.TOP_LEFT||D===P.TOP_CENTER||D===P.TOP_RIGHT?f=v.bubbleY:D===P.CENTER?f=(N-B)/2:f=N-B-v.bubbleY,tt==="rtl"&&(n=_-n-M),n=Math.max(0,Math.min(_-M,n)),f=Math.max(0,Math.min(N-B,f));break}case y.MODAL:{let h=R;v.avatarType!==ct.NONE&&(h+=v.avatarSize/2),n=R+(_-R*2-M)/2,f=h+(N-h-R-B)/2;break}case y.TOOLTIP:{let h;if(x){let{targetRect:u,viewportClipRect:S}=x;if(o==="absolute"){const O=a.offsetParent.getBoundingClientRect();S={top:0,right:_,bottom:N,left:0},u={top:u.top-O.top,right:u.right-O.left,bottom:u.bottom-O.top,left:u.left-O.left,width:u.width,height:u.height}}let A=0;if(q){const{paddingTop:O,paddingRight:dt,paddingBottom:Y,paddingLeft:Q}=$e(et);u={top:u.top-O,right:u.right+dt,bottom:u.bottom+Y,left:u.left-Q,width:u.width+Q+dt,height:u.height+O+Y},A=Math.min(O,dt,Y,Q)}const j=u,K=v.backdropHighlightType==Me.OUTSIDE?v.backdropHighlightSpread:0;if(q&&K&&(u={top:u.top-K,right:u.right+K,bottom:u.bottom+K,left:u.left-K,width:u.width+2*K,height:u.height+2*K}),h=Ye({targetRect:u,bubbleWidth:M,bubbleHeight:B,containerWidth:_,containerHeight:N,viewportClipRect:S,tooltipNotchSize:c,currentTooltipPlacement:e.tooltipPlacement,desiredTooltipPlacement:s}),h===b.BELOW||h===b.ABOVE?(n=u.left+u.width/2-M/2,n=Math.max(R,Math.min(_-M-R,n)),rt=Math.max(F,Math.min(M-F-c*2,u.left+u.width/2-c-n)),h===b.BELOW?H=-c*2:at=-c*2):h===b.RIGHT?(n=u.right+c,n=Math.max(n,S.left+c),n=Math.min(n,S.right+c),n=Math.max(n,c),n=Math.min(n,_-M)):(n=u.left-c-M,n=Math.max(n,S.left-M-c),n=Math.min(n,S.right-M-c),n=Math.max(n,0),n=Math.min(n,_-M-c)),h===b.LEFT||h===b.RIGHT?(f=u.top+u.height/2-B/2,f=Math.max(R,Math.min(N-B-R,f)),H=Math.max(F,Math.min(B-F-c*2,u.top+u.height/2-c-f)),h===b.LEFT?$=-c*2:rt=-c*2):h===b.BELOW?(f=u.bottom+c,f=Math.max(f,S.top+c),f=Math.min(f,S.bottom+c),f=Math.max(f,c),f=Math.min(f,N-B)):(f=u.top-c-B,f=Math.max(f,S.top-B-c),f=Math.min(f,S.bottom-B-c),f=Math.max(f,0),f=Math.min(f,N-B-c)),q){const O=window.getComputedStyle(x.targetEl);J=Math.max(0,j.top),Rt=Math.max(0,_-j.right),nt=Math.max(0,N-j.bottom),ft=Math.max(0,j.left),ht=Math.max(0,Dt(O.borderTopLeftRadius)+A),lt=Math.max(0,Dt(O.borderTopRightRadius)+A),X=Math.max(0,Dt(O.borderBottomRightRadius)+A),_t=Math.max(0,Dt(O.borderBottomLeftRadius)+A),Tt=Math.max(0,j.right),wt=Math.max(0,j.top),Lt=Math.max(0,j.right),yt=Math.max(0,j.bottom),Bt=Math.max(0,j.left),Mt=Math.max(0,j.bottom),kt=Math.max(0,j.left),Nt=Math.max(0,j.top)}}else h=s||b.BELOW,(h===b.BELOW||h===b.ABOVE)&&(rt=M/2-c,h===b.BELOW?H=-c*2:at=-c*2),(h===b.LEFT||h===b.RIGHT)&&(H=B/2-c,h===b.LEFT?$=-c*2:rt=-c*2);e.tooltipPlacement=h,ot+=` userflowjs-bubble__tooltip-notch--${h.toLowerCase()}`,V="",q&&(pt+=" userflowjs-tooltip-backdrop--visible",gt+=" userflowjs-tooltip-block--visible",Et+=" userflowjs-tooltip-block--visible",vt+=" userflowjs-tooltip-block--visible",Pt+=" userflowjs-tooltip-block--visible");break}}d.style.transition="";let Ht=n,St=f;if(t&&(d.style.opacity="0",k===y.TOOLTIP))switch(e.tooltipPlacement){case b.BELOW:f+=24;break;case b.ABOVE:f-=24;break;case b.RIGHT:n+=24;break;case b.LEFT:n-=24;break}if(o!=="relative"&&ue(d,n,f),w.className=ot,w.style.visibility=V,m(w,"top",H),m(w,"right",$),m(w,"bottom",at),m(w,"left",rt),r.className=pt,m(r,"top",J),m(r,"right",Rt),m(r,"bottom",nt),m(r,"left",ft),m(r,"border-top-left-radius",ht),m(r,"border-top-right-radius",lt),m(r,"border-bottom-right-radius",X),m(r,"border-bottom-left-radius",_t),L.className=gt,m(L,"width",Tt),m(L,"height",wt),I.className=Et,m(I,"left",Lt),m(I,"height",yt),C.className=vt,m(C,"left",Bt),m(C,"top",Mt),z.className=Pt,m(z,"width",kt),m(z,"top",Nt),t){d.offsetWidth;const h="opacity 250ms linear";k===y.TOOLTIP?d.style.transition=`${h}, transform 500ms cubic-bezier(0.25, 0.8, 0.5, 1)`:d.style.transition=h,d.style.opacity="1",o!=="relative"&&ue(d,Ht,St)}}function Ye({targetRect:e,bubbleWidth:t,bubbleHeight:o,containerWidth:T,containerHeight:E,viewportClipRect:s,tooltipNotchSize:a,currentTooltipPlacement:d,desiredTooltipPlacement:w}){if(e.bottom<=s.top)return o+a<=E-s.top?b.BELOW:b.ABOVE;if(e.top>=s.bottom)return o+a<=s.bottom?b.ABOVE:b.BELOW;if(e.right<=s.left)return t+a<=T-s.left?b.RIGHT:b.LEFT;if(e.left>=s.right)return t+a<=s.right?b.LEFT:b.RIGHT;const r=I=>{const C=e.left+e.width/2,z=C>=s.left&&C<=s.right,tt=e.top+e.height/2,k=tt>=s.top&&tt<=s.bottom;switch(I){case b.BELOW:return E-e.bottom>o+a&&z;case b.ABOVE:return e.top>o+a&&z;case b.RIGHT:return T-e.right>t+a&&k;case b.LEFT:return e.left>t+a&&k}};if(w&&r(w))return w;if(d&&r(d))return d;const L=[{placement:b.BELOW,dist:e.top},{placement:b.ABOVE,dist:E-e.bottom},{placement:b.RIGHT,dist:e.left},{placement:b.LEFT,dist:T-e.right}];L.sort((I,C)=>I.dist-C.dist);for(const{placement:I}of L)if(r(I))return I;return b.BELOW}function m(e,t,o){o==null?e.style.removeProperty(t):e.style.setProperty(t,typeof o=="number"?o+"px":o,"important")}function ue(e,t,o){t=Math.round(t),o=Math.round(o),e.style.transform=`translate3d(${t}px, ${o}px, 0px)`}function Ge(e){if(G.customScrollIntoView){G.customScrollIntoView(e);return}const{scrollPadding:t}=G;if(t&&je(e)===document.scrollingElement){const o=t.top||0,T=t.right||0,E=t.bottom||0,s=t.left||0;let a=0,d=0;const w=e.getBoundingClientRect(),r=Ft(),L=Yt();if(w.top<o?a=w.top-o:w.bottom>L-E&&(a=w.bottom-L+E),w.left<s?d=w.left-s:w.right>r-T&&(d=w.right-r+T),a!=0||d!=0){window.scrollBy({top:a,left:d,behavior:"smooth"});return}}try{e.scrollIntoView({behavior:"smooth",block:"nearest"})}catch(o){console.warn("Userflow.js: scrollIntoView error (falling back to no options).",o),e.scrollIntoView()}}function $e(e){if(!e||e==="0")return{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0};const t=e.trim().split(" ");if(t.length===1){const o=it(t[0]);return{paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o}}else if(t.length===2){const o=it(t[0]),T=it(t[1]);return{paddingTop:o,paddingRight:T,paddingBottom:o,paddingLeft:T}}else return{paddingTop:it(t[0]),paddingRight:it(t[1]),paddingBottom:it(t[2]),paddingLeft:it(t[3])}}function it(e){const t=parseInt(e,10);return isNaN(t)?0:t}export{io as B,uo as F};
|
|
3
3
|
//# sourceMappingURL=FlowChrome.js.map
|
package/NotificationsApp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{R as t}from"./vendor.react.js";import{u as i}from"./client-context.js";import{w as a,f as r,N as n}from"./flow-host.styl.js";import{a as
|
|
1
|
+
import{R as t}from"./vendor.react.js";import{u as i}from"./client-context.js";import{w as a,f as r,N as n}from"./flow-host.styl.js";import{a as c,D as l}from"./stylesheets.js";import{C as m}from"./vendor.fortawesome.pro-regular-svg-icons.js";import"./vendor.core-js.js";import"./vendor.object-assign.js";import"./vendor.i18next.js";import"./vendor.babel.runtime.js";import"./vendor.react-i18next.js";import"./userflow.js";import"./vendor.phoenix.js";import"./vendor.uuid.js";import"./vendor.fortawesome.pro-solid-svg-icons.js";import"./flow-condition-types.js";import"./vendor.date-fns.js";import"./roots.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="bc128a40-118f-40fa-998f-dcbb9c47fceb",e._sentryDebugIdIdentifier="sentry-dbid-bc128a40-118f-40fa-998f-dcbb9c47fceb")}catch{}})();const T=({notifications:e})=>{const{loaded:s}=c(window,r);return s?t.createElement("div",{className:"userflowjs-notifications",style:{zIndex:a(n)}},e.map(o=>t.createElement(f,{key:o.id,notification:o}))):null},f=({notification:e})=>{const s=i();return t.createElement("div",{className:"userflowjs-notifications__toast"},t.createElement("div",{className:"userflowjs-notifications__toast-content"},t.createElement("span",{className:"userflowjs-notifications__toast-label"},e.label),e.message),t.createElement("div",{className:"userflowjs-notifications__toast-dismiss",onClick:()=>s.dismissNotification(e.id)},t.createElement(l,{icon:m})))};export{T as NotificationsApp,T as default};
|
|
2
2
|
//# sourceMappingURL=NotificationsApp.js.map
|
package/ResourceCenterApp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["ResourceCenterAssistantChat.js","vendor.react.js","vendor.core-js.js","vendor.object-assign.js","userflow.js","vendor.phoenix.js","vendor.uuid.js","client-context.js","vendor.i18next.js","vendor.babel.runtime.js","vendor.react-i18next.js","vendor.fortawesome.pro-regular-svg-icons.js","vendor.dompurify.js","vendor.marked.js","vendor.obj-str.js","use-selector-element-monitoring.js","flow-condition-types.js","vendor.date-fns.js","roots.js","stylesheets.js","vendor.fortawesome.pro-solid-svg-icons.js","vendor.react-dom.js","vendor.scheduler.js","flow-host.styl.js","Frame.js","use-window-resize.js","logomark.js","ChecklistUI.js","FlowChrome.js","vendor.canvas-confetti.js","vendor.memoize-one.js","vendor.bignumber.js.js","use-element-rect.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{k as j,C as U,l as Ce,u as le,m as Qt,n as tt,o as nt,E as Zt,p as Y,q as Gt,r as Jt,s as Xt,a as rt,t as st,v as Yt,w as ot,_ as en}from"./userflow.js";import{r as l,R as e}from"./vendor.react.js";import{u as _,i as ie}from"./client-context.js";import{f as tn,u as nn,w as rn,C as sn}from"./flow-host.styl.js";import{S as on,b as Me,R as z,h as cn,s as Fe,a as q,n as an}from"./use-selector-element-monitoring.js";import{g as R}from"./flow-condition-types.js";import{D as I,u as De,a as ln,g as Ct}from"./stylesheets.js";import{F as Pe}from"./Frame.js";import{o as F}from"./vendor.obj-str.js";import{M as ke,d as ct,e as at}from"./roots.js";import{u as un}from"./use-window-resize.js";import{S as dn}from"./logomark.js";import"./vendor.core-js.js";import{f as mn,C as fn}from"./ChecklistUI.js";import{
|
|
2
|
+
import{k as j,C as U,l as Ce,u as le,m as Qt,n as tt,o as nt,E as Zt,p as Y,q as Gt,r as Jt,s as Xt,a as rt,t as st,v as Yt,w as ot,_ as en}from"./userflow.js";import{r as l,R as e}from"./vendor.react.js";import{u as _,i as ie}from"./client-context.js";import{f as tn,u as nn,w as rn,C as sn}from"./flow-host.styl.js";import{S as on,b as Me,R as z,h as cn,s as Fe,a as q,n as an}from"./use-selector-element-monitoring.js";import{g as R}from"./flow-condition-types.js";import{D as I,u as De,a as ln,g as Ct}from"./stylesheets.js";import{F as Pe}from"./Frame.js";import{o as F}from"./vendor.obj-str.js";import{M as ke,d as ct,e as at}from"./roots.js";import{u as un}from"./use-window-resize.js";import{S as dn}from"./logomark.js";import"./vendor.core-js.js";import{f as mn,C as fn}from"./ChecklistUI.js";import{J as hn,C as $e,K as wn,L as En,M as pn,N as kt,O as Z,z as bn,P as gn,Q as vn,R as Cn}from"./vendor.fortawesome.pro-regular-svg-icons.js";import{F as kn,B as Nn}from"./FlowChrome.js";import{m as lt}from"./vendor.memoize-one.js";import{B as Nt}from"./vendor.bignumber.js.js";import{u as jn}from"./use-element-rect.js";import{u as G}from"./vendor.react-i18next.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="f778052b-f148-401c-8dc9-07cb105e041b",t._sentryDebugIdIdentifier="sentry-dbid-f778052b-f148-401c-8dc9-07cb105e041b")}catch{}})();function yn(t,n,r){return t.resourceCenterAutoDividers?it(n)||it(r):!1}function it(t){return t!==j.ACTION&&t!==j.ANNOUNCEMENTS&&t!==j.ASSISTANT&&t!==j.CONTACT&&t!==j.FLOWS&&t!==j.KNOWLEDGE_BASE&&t!==j.SUBPAGE}const m=window,Ne={[U.CRISP]:{configure:({onShow:t,onHide:n})=>{Sn();let r=!1,s=!1;const c=()=>{r||s?(m.$crisp.push(["do","chat:show"]),t()):(m.$crisp.push(["do","chat:hide"]),n())},a=()=>{r=!0,c()};m.$crisp.push(["on","chat:opened",a]);const o=()=>{r=!1,c()};m.$crisp.push(["on","chat:closed",o]);const u=()=>{s=!0,c()};m.$crisp.push(["on","message:received",u]);const d=()=>{const E=document.getElementById("crisp-chatbox");if(!E||window.getComputedStyle(E).display!=="block")return!1;const f=E.querySelector('[data-id="new_messages"]');return!(!f||window.getComputedStyle(f).display!=="block")},i=()=>{const E=d();E!==s&&(s=E,c())},g=window.setInterval(i,200);return()=>{m.$crisp.push(["off","chat:opened",a]),m.$crisp.push(["off","chat:closed",o]),m.$crisp.push(["off","message:received",u]),window.clearInterval(g)}},show:()=>{m.$crisp.push(["do","chat:show"]),m.$crisp.push(["do","chat:open"])},hide:()=>{m.$crisp.push(["do","chat:hide"]),m.$crisp.push(["do","chat:close"])}},[U.CUSTOM]:{configure:()=>()=>{},show:({block:t})=>{try{new Function(`"use strict";
|
|
3
3
|
`+t.chatCode)()}catch(n){console.error(`Userflow.js: Showing custom chat provider failed. Code: ${t.chatCode}`,n)}},hide:()=>{}},[U.FRESHCHAT]:{configure:({onShow:t,onHide:n})=>{if(!m.fcWidget)throw new Error("Freshchat is not installed");let r=!1,s=!1;const c=()=>{r||s?t():n()},a=()=>{r=!0,c()};m.fcWidget.on("widget:opened",a);const o=()=>{r=!1,c()};m.fcWidget.on("widget:closed",o);const u=()=>{const i=!!document.querySelector("#fc_frame.h-open-notify");i!==s&&(s=i,c())},d=window.setInterval(u,200);return m.fcWidget.on("unreadCount:notify",u),()=>{m.fcWidget.off("widget:opened",a),m.fcWidget.off("widget:closed",o),m.fcWidget.off("unreadCount:notify",u),window.clearInterval(d)}},show:()=>{m.fcWidget.open()},hide:()=>{m.fcWidget.close()}},[U.HELPSCOUT]:{configure:({onShow:t,onHide:n})=>{if(!m.Beacon)throw new Error("Help Scout is not installed");In();let r=!1,s=!1;const c=()=>{r||s?(mt(),t()):(je(),n())},a=()=>{r=!0,c()};m.Beacon("on","open",a),m.Beacon("info")?.status.isOpened&&a();const o=()=>{r=!1,c()};m.Beacon("on","close",o);const u=()=>{const i=!!document.querySelector(".BeaconNotificationsFrame");i!==s&&(s=i,c())},d=window.setInterval(u,200);return()=>{m.Beacon("off","open",a),m.Beacon("off","close",o),window.clearInterval(d)}},show:()=>{mt(),m.Beacon("open")},hide:()=>{je(),m.Beacon("close")}},[U.HUBSPOT]:{configure:({onShow:t,onHide:n})=>{const r=()=>{const a=document.getElementById("hubspot-messages-iframe-container");if(!m.HubSpotConversations||!a)return;window.clearInterval(c),An();let o=!1,u=!1;const d=()=>{o||u?(ye(),t()):(Se(),n())},i=()=>{const f=!!document.querySelector("#hubspot-messages-iframe-container .hs-shadow-container.active");f!==o&&(o=f,d())},g=new ke(i);g.observe(a,{attributes:!0,subtree:!0,attributeFilter:["class"]}),i();const E=({unreadCount:f})=>{const h=f>0;h!==u&&(u=h,d())};m.HubSpotConversations.on("unreadConversationCountChanged",E),s=()=>{g.disconnect(),m.HubSpotConversations.off("unreadConversationCountChanged",E)}};let s=()=>{window.clearInterval(c)};const c=window.setInterval(r,100);return r(),()=>{s()}},show:()=>{ye(),m.HubSpotConversations.widget.open()},hide:()=>{Se(),m.HubSpotConversations.widget.close()}},[U.INTERCOM]:{configure:({onShow:t,onHide:n})=>{if(!m.Intercom)throw new Error("Intercom is not installed");return Rn(),Ie.add(t),Ae.add(n),()=>{Ie.delete(t),Ae.delete(n)}},show:()=>{jt(),m.Intercom("show")},hide:()=>{Re(),m.Intercom("hide")}},[U.ZENDESK]:{configure:({onShow:t,onHide:n})=>{if(!m.zE)throw new Error("Zendesk is not installed");_n();let r=!1,s=!1;const c=()=>{r||s?(m.zE("webWidget","show"),t()):(m.zE("webWidget","hide"),n())},a=()=>{r=!0,s=!1,c()};_e.add(a);const o=()=>{r=!1,s=!1,c()};Te.add(o);const u=d=>{const i=d>0;i!==s&&(s=i,c())};return xe.add(u),()=>{_e.delete(a),Te.delete(o),xe.delete(u)}},show:()=>{m.zE("webWidget","show"),m.zE("webWidget","open")},hide:()=>{m.zE("webWidget","hide"),m.zE("webWidget","close")}},[U.ZENDESK_MESSENGER]:{configure:({onShow:t,onHide:n})=>{if(!m.zE)throw new Error("Zendesk is not installed");const r=()=>{t()},s=()=>{n()};return Le.add(r),Be.add(s),Tn(),()=>{Le.delete(r),Be.delete(s)}},show:()=>{m.zE("messenger","open")},hide:()=>{m.zE("messenger","close")}}};let ut=!1;function Sn(){ut||(ut=!0,m.$crisp||(m.$crisp=[]),m.$crisp.push(["do","chat:hide"]))}let dt=!1;function In(){dt||(dt=!0,je())}function mt(){m.Beacon("config",{display:{style:"icon"}})}function je(){m.Beacon("config",{display:{style:"manual"}})}let ft=!1,He=!1;function An(){ft||(ft=!0,He?ye():Se())}function ye(){He=!0,document.getElementById("hubspot-messages-iframe-container")?.style.setProperty("visibility","visible","important")}function Se(){He=!1,document.getElementById("hubspot-messages-iframe-container")?.style.setProperty("visibility","hidden","important")}let ht=!1,Ie=new Set,Ae=new Set;function Rn(){if(ht)return;ht=!0,Re();let t=!1,n=!1;const r=()=>{jt();for(const o of Ie)o()},s=()=>{Re();for(const o of Ae)o()},c=()=>{t||n?r():s()};m.Intercom("onShow",()=>{t=!0,c()}),m.Intercom("onHide",()=>{t=!1,c()});const a=()=>{const o=!!document.querySelector('iframe[name="intercom-borderless-frame"], iframe[name="intercom-notifications-frame"]');n!==o&&(n=o,c())};m.Intercom("onUnreadCountChange",()=>{a()}),window.setInterval(a,200)}function jt(){m.Intercom("update",{hide_default_launcher:!1,vertical_padding:20})}function Re(){m.Intercom("update",{hide_default_launcher:!0,vertical_padding:100})}let wt=!1,_e=new Set,Te=new Set,xe=new Set;function _n(){wt||(wt=!0,m.zE("webWidget","hide"),m.zE("webWidget","close"),m.zE("webWidget:on","open",()=>{for(const t of _e)t()}),m.zE("webWidget:on","close",()=>{for(const t of Te)t()}),m.zE("webWidget:on","chat:unreadMessages",t=>{for(const n of xe)n(t)}))}let Et=!1,Le=new Set,Be=new Set;function Tn(){Et||(Et=!0,m.zE("messenger:on","open",function(){for(const t of Le)t()}),m.zE("messenger:on","close",function(){for(const t of Be)t()}))}const xn=t=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),l.createElement("path",{fill:"currentColor",d:"M24.049 79.74h36.003c8.185 0 15.985-6.621 17.43-14.814l6.091-34.556h3.997c8.149 0 13.645 6.63 12.2 14.815l-7.051 40C91.274 93.363 83.474 100 75.288 100h-40c-8.185 0-13.645-6.667-12.2-14.815l.96-5.444Z"}),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.437 69.63h40c8.148 0 15.978-6.637 17.422-14.815l7.052-40C78.355 6.63 72.896 0 64.711 0h-40C16.533 0 8.726 6.63 7.281 14.815l-7.052 40C-1.215 62.963 4.252 69.63 12.437 69.63Zm33.628-33.798c3.756-2.064 8.725-4.795 9.907-11.844C57.385 15.458 50.065 8.983 42.168 9c-7.452 0-12.771 3.195-17.508 8.892-.858 1.034-.884 2.45-.053 3.212l3.472 3.196c.847.767 2.25.589 3.176-.406 2.842-3.068 4.869-4.83 8.51-4.83 2.864 0 6.077 1.934 5.59 4.847-.37 2.223-2.292 3.334-5.4 5.001l-.28.151c-3.582 1.92-8.134 4.362-9.124 10.247l-.16.956c-.055.28-.05.571.014.85.065.278.188.538.362.76.173.222.391.4.639.522.247.121.518.183.79.18h6.744a2.709 2.709 0 0 0 1.712-.688c.481-.426.81-1.01.934-1.657l.095-.556c.266-1.582 2.101-2.59 4.384-3.845ZM32.837 59c3.552 0 6.955-3.034 7.58-6.769.63-3.729-1.742-6.763-5.293-6.763-3.552 0-6.934 3.028-7.58 6.763C26.9 55.966 29.286 59 32.837 59Z"})),$=({center:t,fadeIn:n})=>e.createElement("div",{className:F({"userflowjs-spinner":!0,"userflowjs-spinner--center":!!t,"userflowjs-spinner--fade-in":!!n})},e.createElement("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{className:"userflowjs-spinner__bg",fill:"none",cx:12,cy:12,r:10,style:{strokeWidth:"4px"}}),e.createElement("circle",{className:"userflowjs-spinner__fill",fill:"none",cx:12,cy:12,r:10,transform:"translate(12, 12) rotate(-90) translate(-12, -12)",style:{strokeWidth:"4px",strokeDasharray:10*2*Math.PI*.25+"px, 1000"}})));function ue({message:t,skip:n}){const r=_(),[s,c]=l.useState(!0),[a,o]=l.useState(!1),[u,d]=l.useState(null),[i,g]=l.useState(null),[E,f]=l.useState(null),h=l.useRef(0),w=l.useRef(null),v=l.useRef(()=>{});return l.useEffect(()=>{if(n)return;const N=JSON.stringify(t);if(N===w.current)return;w.current=N;const y=++h.current;let k,C;const x=async()=>{c(!0);try{C=t;const T=await r.send(t,{handlesRejection:!0});if(y!==h.current)return;k=T,d(k),g(t),f(null)}catch(T){if(y!==h.current)return;f(T)}finally{c(!1)}};let H=!1;v.current=async(T,J)=>{if(!H){H=!0,o(!0);try{const B=T(k,C);C=B;const te=await r.send(B,{handlesRejection:!0});if(y!==h.current)return;k=J(k,te),d(k),f(null)}catch(B){if(y!==h.current)return;f(B)}finally{H=!1,o(!1)}}},x()},[n,r,t]),{loading:s,loadingMore:a,data:u,messageForData:i,error:E,loadMore:v.current}}const Ln=200;function Ue(t,n){const[r,s]=l.useState(t),c=l.useRef(void 0),a=l.useCallback(u=>{window.clearTimeout(c.current),s(u),n(u)},[n]),o=l.useCallback(u=>{window.clearTimeout(c.current),s(u),c.current=window.setTimeout(()=>{n(u)},Ln)},[n]);return l.useEffect(()=>()=>{window.clearTimeout(c.current)},[]),[r,o,a]}const Bn={xs:[16,3],sm:[24,4],md32:[32,4],md:[40,4],lg:[56,4]};class Mn extends e.PureComponent{constructor(){super(...arguments),this.memoizedBgStyle=lt(n=>({strokeWidth:`${n}px`})),this.memoizedFillStyle=lt((n,r,s)=>({strokeWidth:`${n}px`,strokeDasharray:r*2*Math.PI*new Nt(s).toNumber()+"px, 1000"}))}render(){const{props:n}=this,{size:r,indeterminate:s,className:c,center:a,right:o,color:u}=this.props,d=["progress-spinner"];r&&d.push(`progress-spinner--${r}`),s&&d.push("progress-spinner--indeterminate"),c&&d.push(c);const i=s?.25:n.progress||0,[g,E]=Bn[r||"md"],f=g/2,h=(g-E)/2;let w=e.createElement("div",{className:d.join(" ")},e.createElement("svg",{viewBox:`0 0 ${g} ${g}`,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{className:"progress-spinner__bg",fill:"none",cx:f,cy:f,r:h,style:this.memoizedBgStyle(E)}),e.createElement("circle",{className:u==="purple"?"progress-spinner__fill-purple":"progress-spinner__fill",fill:"none",cx:f,cy:f,r:h,transform:`translate(${f}, ${f}) rotate(-90) translate(-${f}, -${f})`,style:this.memoizedFillStyle(E,h,i)})));return a?w=e.createElement("div",{className:"progress-spinner-center-aligner"},w):o&&(w=e.createElement("div",{className:"progress-spinner-right-aligner"},w)),w}}const Fn=({textareaRef:t,value:n,onChange:r,onBlur:s,onKeyDown:c,onMouseDown:a,placeholder:o,disabled:u,readOnly:d,className:i,mirrorClassName:g,textareaClassName:E,icon:f,onIconClick:h,loading:w=!1,children:v})=>{let N=n||o||"";(N===""||N.endsWith(`
|
|
4
4
|
`))&&(N+=" "),i=i||"growing-textarea",g=g||i+"__mirror";const[y,k]=l.useState(!1);return e.createElement("div",{className:F({[i]:!0,[`${i}__loading`]:w})},e.createElement("div",{className:g+" "+(E||"")},N),e.createElement("textarea",{ref:t,value:n,onChange:C=>r&&r(C.target.value),onBlur:s,onKeyDown:C=>{if(C.key==="Enter"&&y){C.preventDefault();return}c&&c(C)},onMouseDown:a,placeholder:o,disabled:u||w,readOnly:d,className:F({"growing-textarea__input":!0,[E||""]:!0,[`${i}__with-icon`]:!!f,[`${i}__loading-input`]:w}),onCompositionStart:()=>k(!0),onCompositionEnd:()=>k(!1)}),f&&!w&&e.createElement("div",{className:`${i}__icon`},e.createElement("button",{className:"btn btn--plain-blue btn--square btn--md32",onClick:h},e.createElement(I,{icon:f}))),w&&e.createElement("div",{className:`${i}__loader`},e.createElement(Mn,{indeterminate:!0,size:"xs",color:"purple"})),v)},Dn=({textareaRef:t,value:n,onChange:r,onSubmit:s,placeholder:c,readOnly:a})=>{const o=()=>{s&&s()};return e.createElement("div",{className:"userflowjs-assistant-chat-input"},e.createElement(Fn,{textareaRef:t,className:"userflowjs-growing-textarea",mirrorClassName:"userflowjs-growing-textarea__mirror",textareaClassName:"userflowjs-textarea userflowjs-assistant-chat-input__textarea",placeholder:c,readOnly:a,value:n||"",onChange:r,onKeyDown:u=>{!u.shiftKey&&u.key==="Enter"&&(u.preventDefault(),o())}}),e.createElement("button",{"data-testid":"assistant-chat-input-submit",className:"userflowjs-assistant-chat-input__submit",onClick:()=>o()},e.createElement(I,{icon:hn})))};function Pn(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function yt(t){return Ce.linkUrlDecorator?Ce.linkUrlDecorator(t):t}const pt=5,$n=async()=>(await en(async()=>{const{ResourceCenterAssistantChat:t}=await import("./ResourceCenterAssistantChat.js");return{ResourceCenterAssistantChat:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]))).ResourceCenterAssistantChat,bt=({session:t,isOpen:n,flowSession:r,checklistSession:s})=>{const c=_(),{t:a}=G(),{company:o}=t.flow,{version:u}=t,d=u.resourceCenter,i=De(u.theme),g=t.locale?t.locale.standardLocaleId:t.version.theme.languageId;l.useEffect(()=>{ie.changeLanguage(g)},[g]);const{loaded:E}=ln(window,tn,i),[f,h]=l.useState(!1),w=E&&f,[v,N]=l.useState(ct()),[y,k]=l.useState(at()),C=l.useCallback(()=>{N(ct()),k(at())},[]);un(C);const{zIndex:x,bringToFront:H}=nn(),[T,J]=l.useState(null),[B,te]=l.useState(null),[O,Lt]=l.useState(null),de=l.useRef(null),[X,Bt]=l.useState(null),[ze,Mt]=l.useState(null),[Oe,Ft]=l.useState(null),[Dt,Pt]=l.useState(0),[$t,Ht]=l.useState(0),me=l.useCallback(()=>{B&&Pt(Math.round(B.offsetWidth)),Ht(Math.round((O?.offsetHeight||0)+(X?.offsetHeight||0)+(ze?.offsetHeight||0)+(Oe?.offsetHeight||0)))},[B,O,X,ze,Oe]);l.useLayoutEffect(()=>{if(!T||typeof ke!="function")return;const p=new ke(()=>{me()});return p.observe(T,{childList:!0,attributes:!0,subtree:!0}),()=>{p.disconnect()}},[T,me]),l.useLayoutEffect(()=>{me()});const[Ve,qe]=l.useState(!1),fe=l.useRef(),ne=l.useCallback(()=>{qe(!0),window.clearTimeout(fe.current),fe.current=window.setTimeout(()=>{qe(!1)},i.resourceCenterTransitionDuration)},[i.resourceCenterTransitionDuration]);l.useEffect(()=>()=>{window.clearTimeout(fe.current)},[]);const re=l.useCallback(()=>{H(),ne(),c.openResourceCenter()},[H,c,ne]),he=l.useCallback(()=>{ne(),c.closeResourceCenter()},[c,ne]),[Ke,K]=l.useState(!1);l.useEffect(()=>{if(Ke){if(!Pn())if(n){const p='button:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"]), input, textarea';let S=X?.querySelector(".userflowjs-assistant-chat-input textarea")||X?.querySelector(p)||O?.querySelector(p);if(S){const M=S.closest&&S.closest(".userflowjs-resource-center-checklist")||null;M?mn(M):S.focus({preventScroll:!0})}}else B?.focus({preventScroll:!0});K(!1)}},[Ke,n,X,O,B]),l.useEffect(()=>{const p=T?.ownerDocument.defaultView;if(!n||!p)return;const S=M=>{M.key==="Escape"&&(he(),K(!0))};return p.addEventListener("keydown",S),()=>p.removeEventListener("keydown",S)},[n,T,K,he]);const[b,we]=l.useState(()=>zn(t,le.getItem(`resourceCenterRoute:v1:${t.id}`))),D=l.useCallback((p,S)=>{we(p);const M=Wn(p);M?le.setItem(`resourceCenterRoute:v1:${t.id}`,M):le.removeItem(`resourceCenterRoute:v1:${t.id}`),S?.detail===0&&K(!0)},[t.id]);l.useEffect(()=>{if(!t.draftMode||!b||!("block"in b)||!b.block)return;const p=d.blocks.find(S=>S.cvid===b.block.cvid);p?JSON.stringify(p)!==JSON.stringify(b.block)&&we({...b,block:p}):we(null),b.block},[t.draftMode,d,b]);const se=l.useMemo(()=>d.blocks.filter(p=>!(p.type===j.CHECKLIST&&!s||p.type===j.DIVIDER&&i.resourceCenterAutoDividers||p.hiddenWhenFlowsActive&&p.hiddenWhenFlowsActive.some(S=>S===r?.flow.id||S===s?.flow.id))),[d,r,s,i.resourceCenterAutoDividers]),Ee=l.useMemo(()=>It(se),[se]),pe=l.useMemo(()=>!s||!d.blocks.some(p=>p.type===j.CHECKLIST)?0:Qt(s),[d,s]),L=l.useMemo(()=>d.blocks.find(p=>p.type===j.CONTACT&&p.chatEnabled&&p.chatProvider),[d]),[Ut,Qe]=l.useState(!1),oe=l.useCallback(()=>{c.closeResourceCenter(),L&&L.chatProvider!==U.CUSTOM&&Qe(!0)},[c,L]),ce=l.useCallback(()=>{Qe(!1)},[]),Ze=l.useCallback(()=>{if(L)try{Ne[L.chatProvider].hide({block:L}),ce()}catch(p){console.error(`Userflow.js: Error when hiding ${L.chatProvider}:`,p)}},[L,ce]);l.useEffect(()=>{if(!L)return;Ce.autoHide3pDisabled=!0;const p=Ne[L.chatProvider];try{const S=p.configure({block:L,onShow:oe,onHide:ce});return()=>{S()}}catch(S){console.error(`Userflow.js: Error when configuring ${L.chatProvider}:`,S);return}},[L,oe,ce]),l.useEffect(()=>{n&&Ze()},[Ze,n]);const P=l.useMemo(()=>d.blocks.find(p=>p.type===j.ANNOUNCEMENTS),[d]),Wt=!!b&&(b.kind==="search"||b.kind==="flows"||b.kind==="knowledgeBase"),Ge=b?.kind==="assistant"||b?.kind==="announcementList"||b?.kind==="announcementShow",be=Math.min(Ge?i.resourceCenterFullWidth:i.resourceCenterWidth,v-2*i.resourceCenterPaddingX),zt=540,Ot=720,Vt={zIndex:i.resourceCenterZIndex!=null?i.resourceCenterZIndex:n?x:rn(sn),position:w?void 0:"absolute",visibility:w&&!Ut?void 0:"hidden"},qt={width:(n?be:Dt)+"px",height:n?Math.min(Wt?zt:Ge?Ot:$t,y-2*i.resourceCenterPaddingY,i.resourceCenterMaxHeight==null?Number.MAX_VALUE:i.resourceCenterMaxHeight)+"px":void 0},[Kt,Je]=l.useState(!1),Xe=()=>{re(),K(!0)},Ye=i.resourceCenterDisplayChecklistProgress&&s&&pe>0?e.createElement("div",{"data-testid":"resource-center-launcher-badge",className:"userflowjs-resource-center-launcher-badge"},pe,e.createElement("div",{className:"userflowjs-a11y-only"},"uncompleted tasks")):null;let ae="",ge="";return i.resourceCenterLauncherTextMode===tt.CHECKLIST_OVERRIDE&&s&&pe>0?ae=s.version.checklist?.launcherText||"Get Started":i.resourceCenterLauncherTextMode!==tt.NONE&&(ge=d.buttonText),e.createElement(on.Provider,{value:t},e.createElement("div",{"data-testid":"resource-center-app",className:"userflowjs-resource-center-app userflowjs-theme-root",style:Ct(i),dir:ie.dir()},e.createElement("div",{className:F({"userflowjs-resource-center":!0,"userflowjs-resource-center--fixed":!0,[`userflowjs-resource-center--placement-${i.resourceCenterPlacement.toLowerCase().replace(/_/g,"-")}`]:!0}),style:Vt},e.createElement("div",{className:"userflowjs-resource-center-frame-wrapper",onMouseEnter:()=>Je(!0),onMouseLeave:()=>Je(!1)},e.createElement(Pe,{className:F({"userflowjs-resource-center-frame":!0,"userflowjs-resource-center-frame--animating":Ve,"userflowjs-resource-center-frame--open":n,"userflowjs-resource-center-frame--closed":!n}),style:qt,stylesheet:Me,theme:i,onStylesheetsLoad:h,title:"Resource center"},w&&e.createElement(e.Fragment,null,e.createElement("div",{ref:J,className:F({"userflowjs-resource-center-frame-root":!0,[`userflowjs-resource-center-frame-root--placement-${i.resourceCenterPlacement.toLowerCase().replace(/_/g,"-")}`]:!0,"userflowjs-resource-center-frame-root--animating":Ve,"userflowjs-resource-center-frame-root--open":n,"userflowjs-resource-center-frame-root--closed":!n}),role:n?"dialog":void 0,"aria-label":n?d.headerText:void 0},e.createElement("div",{className:"userflowjs-resource-center-launcher-container"},e.createElement("button",{ref:te,className:F({"userflowjs-resource-center-launcher-button":!0,"userflowjs-resource-center-launcher-button--hover":Kt}),onClick:Xe,"aria-label":`Open ${d.headerText}`},Ye,ae&&e.createElement("div",{"data-testid":"resource-center-launcher-text",className:"userflowjs-resource-center-launcher-text"},ae),(Ye||ae)&&e.createElement("div",{className:"userflowjs-resource-center-launcher-divider"}),ge&&e.createElement("div",{"data-testid":"resource-center-launcher-text",className:"userflowjs-resource-center-launcher-text"},ge),e.createElement("div",{className:"userflowjs-resource-center-launcher-icon"},i.resourceCenterLauncherIconType===nt.PLAINTEXT?"?":i.resourceCenterLauncherIconType===nt.DEFAULT?e.createElement(xn,null):i.rcIconAsset&&i.rcIconAsset.assetUrl?e.createElement("img",{src:i.rcIconAsset.assetUrl,className:"company-icon",style:{height:`${i.rcIconSize}px`,width:`${i.rcIconSize}px`}}):e.createElement("span",null)))),e.createElement("div",{ref:de,className:"userflowjs-resource-center-body",style:{width:be+"px"}},e.createElement("div",{ref:Bt,className:F({"userflowjs-resource-center-body-content":!0,"userflowjs-resource-center-body-content--padding":b?.kind!=="assistant","userflowjs-resource-center-body-content--same-background":i.sameBackground,"userflowjs-resource-center-body-content--with-made-with-userflow":o.resourceCenterBranding})},n&&e.createElement(e.Fragment,null,b?b.kind==="search"?e.createElement(On,{session:t,navigate:D}):b.kind==="email"?e.createElement(Vn,{block:b.block,session:t}):b.kind==="phone"?e.createElement(qn,{block:b.block,session:t}):b.kind==="flows"?e.createElement(Kn,{block:b.block,initialQ:b.initialQ,session:t,navigate:D}):b.kind==="knowledgeBase"?e.createElement(Qn,{block:b.block,initialQ:b.initialQ,session:t,bodyRef:de}):b.kind==="subpage"?e.createElement(Zn,{block:b.block,session:t}):b.kind==="announcementList"||b.kind==="announcementShow"?e.createElement(Gn,{bodyRef:de,session:t,route:b,navigate:D}):b.kind==="assistant"?e.createElement(Yn,{block:b.block,initialUserContent:b.initialUserContent,session:t,navigate:D,chatBlock:L,onChatShow:oe}):null:e.createElement(e.Fragment,null,se.map((p,S)=>{const M=ee[p.type],et=se[S+1];return M?e.createElement(e.Fragment,{key:p.id},e.createElement(M.View,{session:t,flowSession:r,checklistSession:s,block:p,navigate:D,onChatShow:oe}),et&&yn(i,p.type,et.type)&&e.createElement("div",{className:"userflowjs-resource-center-divider"})):null}))))),o.resourceCenterBranding&&e.createElement("div",{className:"userflowjs-resource-center-made-with-userflow"},e.createElement("div",{className:"userflowjs-resource-center-made-with-userflow-content",ref:Mt},e.createElement("a",{href:"https://userflow.com/?utm_source=made-with-userflow&utm_medium=link&utm_campaign=made-with-userflow-"+o.slug+"&utm_content=resource-center",target:"_blank",rel:"noopener noreferrer"},e.createElement(dn,null),e.createElement("div",null,"Made with Userflow")))),t.draftMode&&e.createElement("div",{className:"userflowjs-resource-center-preview"},e.createElement("div",{ref:Ft,className:"userflowjs-resource-center-preview-content"},e.createElement("div",{className:"userflowjs-resource-center-preview-text"},"Preview"),e.createElement("button",{className:"userflowjs-resource-center-preview-button",onClick:()=>{c.endFlow(t,{endReason:Zt.USER_CLOSED})}},e.createElement(I,{icon:$e})))),e.createElement("div",{className:"userflowjs-resource-center-header",style:{width:be+"px"}},e.createElement("div",{ref:Lt,className:"userflowjs-resource-center-header-content"},b==null?e.createElement("div",{className:"userflowjs-resource-center-header-text"},d.headerText):e.createElement("button",{className:"userflowjs-resource-center-icon-button",onClick:p=>D(b?.kind==="announcementShow"?{kind:"announcementList",block:b.block}:null,p)},e.createElement("div",{className:"userflowjs-rtl-mirrored"},e.createElement(I,{icon:wn})),e.createElement("div",{className:"userflowjs-resource-center-icon-button__text"},a("resource_center.back"))),e.createElement("div",{className:"flex-1"}),Ee.length>0&&e.createElement("button",{className:"userflowjs-resource-center-icon-button",onClick:()=>{let p={kind:"search"};if(Ee.length===1){const S=Ee[0],M=ee[S.type];M.routeTo&&(p=M.routeTo({block:S}))}b?.kind==="search"?D(null):(A(c,t,null,"Search icon"),D(p))},"aria-label":"Search"},e.createElement(I,{icon:En})),e.createElement("button",{className:"userflowjs-resource-center-icon-button userflowjs-resource-center-close-button",onClick:p=>{he(),p.detail===0&&K(!0)},"aria-label":`Close ${d.headerText}`},e.createElement(I,{icon:pn}))))))),!n&&!r&&P&&P.unreadAnnouncementCount>0&&e.createElement(Hn,{theme:i,count:P.unreadAnnouncementCount,onClick:Xe})),!n&&!r&&P?.popoutAnnouncement&&e.createElement(gt,{session:t,open:re,navigate:D,block:P}),!n&&!r&&P?.boosterAnnouncement&&P?.boosterAnnouncement.level===Y.MODAL&&e.createElement(Un,{session:t,open:re,navigate:D,block:P}),!n&&!r&&P?.boosterAnnouncement&&P?.boosterAnnouncement.level===Y.TOAST&&e.createElement(gt,{session:t,open:re,navigate:D,block:P,rcPlacement:i.resourceCenterPlacement}))))},Hn=({theme:t,count:n,onClick:r})=>{const[s,c]=l.useState(!1);return e.createElement(Pe,{className:F({"userflowjs-resource-center-launcher-unread-badge":!0}),noScroll:!0,style:{position:s?void 0:"absolute",visibility:s?void 0:"hidden"},stylesheet:Me,theme:t,onStylesheetsLoad:c,title:"Resource center unread badge"},e.createElement(St,{count:n,onClick:r}))},St=({count:t,onClick:n})=>{let r=null;return t>9&&(t=9,r=e.createElement("span",{className:"userflowjs-unread-badge-plus"},"+")),e.createElement("div",{className:F({"userflowjs-unread-badge":!0,"userflowjs-unread-badge--clickable":!!n}),onClick:n},e.createElement("span",null,t),r)},gt=({session:t,open:n,navigate:r,block:s,rcPlacement:c})=>{const a=l.useRef(null),o=s.popoutAnnouncement??s.boosterAnnouncement,u=De(o.theme),d=u.toastPlacement,i=!!s.boosterAnnouncement,g=d===c;let E=null,f=null;o&&(E=o.toastAutoDismiss??u.toastAutoDismiss,f=o.toastWidth?o.toastWidth:u.toastWidth);const h=_(),[w,v]=l.useState(!1),{height:N,setEl:y}=jn();l.useEffect(()=>{const T=a.current;if(!T||E===null)return;const J=Date.now(),B=()=>{const O=1-(Date.now()-J)/(new Nt(E||0).toNumber()*1e3);O<=0?(T.style.width="0%",o&&W(h,o)):(T.style.width=`${O*100}%`,requestAnimationFrame(B))};return requestAnimationFrame(B),()=>{T&&(T.style.width="0%")}},[a.current,E,h,o,W]);const k=()=>{o&&W(h,o)},C=20,x=l.useMemo(()=>CSS.supports("height: 100dvh")?"dvh":"vh",[]),H=()=>{i&&o&&(W(h,o),A(h,t,s,o.title),r({kind:"announcementShow",block:s,announcementId:o.id}),n())};return o?e.createElement("div",{className:F({"userflowjs-resource-center-popout":!i,"userflowjs-resource-center-toast":i,[`userflowjs-resource-center-toast--${d?.toLowerCase().replace(/_/g,"-")}`]:!g&&!!d&&i}),style:Ct(u)},e.createElement(Pe,{className:F({"userflowjs-resource-center-popout-frame":!0}),style:{height:`calc(min(${N}px, 100${x} - 2 * var(--userflow-resource-center-padding-y) - var(--userflow-resource-center-collapsed-height) - ${C}px)`,position:w?void 0:"absolute",visibility:w?void 0:"hidden",...f&&i?{width:f}:{}},stylesheet:Me,theme:u,onStylesheetsLoad:v,title:"Resource center popout"},i&&e.createElement("div",{className:"userflowjs-bubble-progress--default"},e.createElement("div",{className:"userflowjs-bubble-progress__fill",ref:a})),e.createElement("div",{ref:y,className:"userflowjs-resource-center-popout-frame-root",style:{cursor:i?"pointer":"auto",padding:i&&u.toastPadding||void 0}},e.createElement("div",{onClick:H},e.createElement("h2",{className:"userflowjs-announcement-title"},e.createElement("span",{className:"userflowjs-unread-dot"}),e.createElement("span",null,o.title)),e.createElement("div",{className:"userflowjs-announcement-time"},e.createElement("div",{className:"userflowjs-announcement-time-text"},We(o.time))),e.createElement("div",{className:"userflowjs-announcement-content userflowjs-bubble-content"},e.createElement(z,{doc:o.content,buttons:o.buttons,lookupAttribute:R(o.data)})),!i&&e.createElement(e.Fragment,null,o.moreEnabled&&e.createElement("div",{className:"userflowjs-announcement-more"},e.createElement("button",{className:"userflowjs-tertiary-button",onClick:()=>{W(h,o),A(h,t,s,o.title),r({kind:"announcementShow",block:s,announcementId:o.id}),n()}},e.createElement("div",null,(o.moreEnabled?o.moreButtonText:null)||"Read more"),!i&&e.createElement("span",{className:"userflowjs-rtl-mirrored"},e.createElement(I,{icon:kt})))))),i&&o.moreEnabled&&e.createElement("div",{onClick:H,className:"userflowjs-announcement-more--toast"},(o.moreEnabled?o.moreButtonText:null)||"Read more"),e.createElement("div",{className:"userflowjs-bubble-toolbar"},e.createElement("button",{className:"userflowjs-bubble-toolbar-button",onClick:k,"aria-label":"Dismiss announcement"},e.createElement(I,{icon:$e}))))),!i&&e.createElement("div",{className:"userflowjs-resource-center-popout-notch"})):null},Un=({session:t,open:n,navigate:r,block:s})=>{const c=s.boosterAnnouncement,a=_(),o=De(c.theme),u=()=>{W(a,c)};return e.createElement(kn,{company:t.flow.company,theme:o,position:"fixed",width:c.modalWidth,stepAppearance:Gt.MODAL,zIndex:o.checklistZIndex,autoHide3pEnabled:!0,onModalBackdropClick:u,noIframe:!0,isModalAnnouncement:!0},e.createElement("div",{id:"userflowjs-bubble-content",className:"userflowjs-bubble-content"},e.createElement("h1",null,c.title),e.createElement(z,{doc:c.content,buttons:c.buttons,lookupAttribute:R(c.data)})),e.createElement("div",{className:"userflowjs-bubble-toolbar"},e.createElement("button",{className:"userflowjs-bubble-toolbar-button",onClick:u,"aria-label":"Dismiss announcement"},e.createElement(I,{icon:$e}))),c.moreEnabled&&e.createElement("div",{className:"userflowjs-announcement-more--modal"},e.createElement("button",{className:"userflowjs-bubble-button--primary",onClick:()=>{W(a,c),A(a,t,s,c.title),r({kind:"announcementShow",block:s,announcementId:c.id}),n()}},e.createElement("div",null,(c.moreEnabled?c.moreButtonText:null)||"Read more"))))};function It(t){return t.filter(n=>{const r=ee[n.type];return r.isSearchable?r.isSearchable(n):!!r.search})}const ee={[j.ACTION]:{View:t=>{const{block:n,session:r,flowSession:s,checklistSession:c}=t,a=_(),[o,u]=l.useState(!1),d=s?.id,i=c?.id;return l.useEffect(()=>{u(!1)},[d,i]),e.createElement("button",{className:"userflowjs-resource-center-block userflowjs-resource-center-block--clickable",onClick:o?void 0:()=>{A(a,r,n);const g=n.actions.find(E=>E.type===Jt.START_FLOW);g?g.otherFlow?.id!==c?.flow.id&&u(!0):a.closeResourceCenter(),cn(a,r,n.actions)},disabled:o},e.createElement(Q,{...t}),e.createElement(V,{...t}),o&&e.createElement($,null))}},[j.ANNOUNCEMENTS]:{View:t=>{const{block:n,session:r,navigate:s}=t,c=_();return e.createElement("button",{className:"userflowjs-resource-center-block userflowjs-resource-center-block--clickable",onClick:a=>{A(c,r,n),s({kind:"announcementList",block:n},a)}},n.unreadAnnouncementCount>0?e.createElement("div",{className:"userflowjs-resource-center-block-icon"},e.createElement(St,{count:n.unreadAnnouncementCount})):e.createElement(Q,{...t}),e.createElement(V,{...t}),e.createElement("div",{className:"userflowjs-resource-center-block-nav-icon"},e.createElement(I,{icon:Z})))}},[j.ASSISTANT]:{View:t=>{const{block:n,session:r,navigate:s}=t,c=_(),[a,o]=l.useState("");return n.assistantAppearance===Xt.INPUT?e.createElement("div",{className:"userflowjs-resource-center-assistant-block"},e.createElement(Dn,{value:a,onChange:o,placeholder:Fe(n.name,{lookupAttribute:R(r.data)}),onSubmit:()=>{A(c,r,n),s({kind:"assistant",block:n,initialUserContent:a})}})):e.createElement("button",{className:"userflowjs-resource-center-block userflowjs-resource-center-block--clickable",onClick:()=>{A(c,r,n),s({kind:"assistant",block:n,initialUserContent:""})}},e.createElement(Q,{...t}),e.createElement(V,{...t}))}},[j.CHECKLIST]:{View:({checklistSession:t})=>e.createElement("div",{"data-testid":"resource-center-checklist",className:"userflowjs-resource-center-checklist"},e.createElement(fn,{session:t}),e.createElement(Nn,{draftMode:t.draftMode?"CHECKLIST PREVIEW":!1}))},[j.CONTACT]:{View:t=>{const{block:n,session:r,navigate:s,onChatShow:c}=t,a=_(),o=[];return n.emailEnabled&&o.push({icon:gn,label:"Email",isRoute:!0,onClick:u=>{A(a,r,n,"Email"),s({kind:"email",block:n},u)}}),n.phoneEnabled&&o.push({icon:vn,label:"Phone",isRoute:!0,onClick:u=>{A(a,r,n,"Phone"),s({kind:"phone",block:n},u)}}),n.chatEnabled&&o.push({icon:Cn,label:"Live-chat",isRoute:!1,onClick:()=>{A(a,r,n,"Chat"),xt(r,n,c)}}),e.createElement("div",{className:F({"userflowjs-resource-center-block":!0,"userflowjs-resource-center-block--clickable":o.length===1}),onClick:o.length===1?o[0].onClick:void 0},o.length===1&&e.createElement("div",{className:"userflowjs-resource-center-block-icon"},e.createElement(I,{icon:o[0].icon})),e.createElement(V,{...t}),o.length>1&&o.map(({icon:u,label:d,onClick:i},g)=>e.createElement("button",{key:g,className:"userflowjs-resource-center-icon-button",onClick:i,"aria-label":d},e.createElement(I,{icon:u}))),o.length===1&&o[0].isRoute&&e.createElement("div",{className:"userflowjs-resource-center-block-nav-icon"},e.createElement(I,{icon:Z})))}},[j.DIVIDER]:{View:()=>e.createElement("div",{className:"userflowjs-resource-center-divider"})},[j.FLOWS]:{View:t=>{const{block:n,session:r,navigate:s}=t,c=_();return e.createElement("button",{className:"userflowjs-resource-center-block userflowjs-resource-center-block--clickable",onClick:a=>{A(c,r,n),s({kind:"flows",block:n},a)}},e.createElement(Q,{...t}),e.createElement(V,{...t}),e.createElement("div",{className:"userflowjs-resource-center-block-nav-icon"},e.createElement(I,{icon:Z})))},routeTo:({block:t,initialQ:n})=>({kind:"flows",block:t,initialQ:n}),isSearchable:t=>!!t.searchEnabled,search:async({client:t,session:n,block:r,q:s})=>{const{flows:c}=await t.send({kind:"ListResourceCenterBlockFlows",sessionId:n.id,blockCvid:r.cvid},{handlesRejection:!0}),a=At(c,s),o=a.slice(0,pt);return{block:r,truncated:o.length===a.length,results:o.map(u=>({kind:"flow",flow:u}))}}},[j.KNOWLEDGE_BASE]:{View:t=>{const{block:n,session:r,navigate:s}=t,c=_();return e.createElement("button",{className:"userflowjs-resource-center-block userflowjs-resource-center-block--clickable",onClick:a=>{A(c,r,n),s({kind:"knowledgeBase",block:n},a)}},e.createElement(Q,{...t}),e.createElement(V,{...t}),e.createElement("div",{className:"userflowjs-resource-center-block-nav-icon"},e.createElement(I,{icon:Z})))},routeTo:({block:t,initialQ:n})=>({kind:"knowledgeBase",block:t,initialQ:n}),search:async({client:t,session:n,block:r,q:s})=>{const{truncated:c,articles:a}=await t.send({kind:"SearchKnowledgeBase",sessionId:n.id,blockCvid:r.cvid,q:s,offset:0,limit:pt},{handlesRejection:!0});return{block:r,truncated:c,results:a.map(o=>({kind:"article",article:o}))}}},[j.MESSAGE]:{View:({block:t,session:n})=>e.createElement("div",{className:"userflowjs-resource-center-block"},e.createElement("div",{className:"userflowjs-resource-center-block-text userflowjs-bubble-content"},e.createElement(z,{doc:t.content,lookupAttribute:R(n.data)})))},[j.SUBPAGE]:{View:t=>{const{block:n,session:r,navigate:s}=t,c=_();return e.createElement("button",{className:"userflowjs-resource-center-block userflowjs-resource-center-block--clickable",onClick:a=>{A(c,r,n),s({kind:"subpage",block:n},a)}},e.createElement(Q,{...t}),e.createElement(V,{...t}),e.createElement("div",{className:"userflowjs-resource-center-block-nav-icon"},e.createElement(I,{icon:Z})))}}},Q=({block:t})=>t.icon?e.createElement("div",{className:"userflowjs-resource-center-block-icon"},e.createElement(I,{icon:t.icon,size:16})):null,V=({block:t,session:n})=>e.createElement("div",{className:"userflowjs-resource-center-block-text"},e.createElement(q,{doc:t.name,lookupAttribute:R(n.data)}));function Wn(t){if(!t)return null;let n;"block"in t&&t.block!=null&&(n=t.block.cvid);const r={kind:t.kind,blockCvid:n};switch(t.kind){case"announcementShow":r.announcementId=t.announcementId;break}return JSON.stringify(r)}function zn(t,n){if(!n)return null;const r=JSON.parse(n);let s;if(r.blockCvid&&(s=t.version.resourceCenter?.blocks.find(a=>a.cvid===r.blockCvid)),!s&&r.kind!=="search")return null;const c={kind:r.kind,block:s};switch(c.kind){case"announcementShow":c.announcementId=r.announcementId;break}return c}const On=({session:t,navigate:n})=>{const r=_(),s=t.version.resourceCenter.blocks,c=It(s),{t:a}=G(),o=l.useRef(null),[u,d]=l.useState(""),[i,g]=Ue(u,d),[E,f]=l.useState(null);return l.useEffect(()=>{if(u.trim()===""){f(null);return}let h=!1;return(async()=>{f(null);const v=await Promise.all(s.map(async N=>{const{search:y}=ee[N.type];if(!y)return null;try{return await y({client:r,session:t,block:N,q:u})}catch(k){return console.error(`Userflow.js: Global search failed for ${N.type} block=`,N,"error=",k),null}}));h||f(v.filter(N=>N!=null&&N.results.length>0))})(),()=>{h=!0}},[r,t,s,u]),l.useEffect(()=>{o.current?.focus({preventScroll:!0})},[]),e.createElement(e.Fragment,null,e.createElement("div",{className:"userflowjs-resource-center-list-route-search"},e.createElement("input",{ref:o,className:"userflowjs-text-input",type:"text",value:i,onChange:h=>g(h.target.value),placeholder:a("resource_center.search_placeholder")})),u.trim()===""?e.createElement("div",{"data-testid":"resource-center-empty-query",className:"userflowjs-resource-center-list-route-error"},a("resource_center.search_in")," ",c.map((h,w)=>e.createElement(e.Fragment,{key:h.cvid},w>0&&(w===c.length-1?` ${a("and")} `:", "),e.createElement("b",null,e.createElement(q,{doc:h.name,lookupAttribute:R(t.data)})))),"."):E?E.length===0?e.createElement("div",{className:"userflowjs-resource-center-list-route-error"},a("resource_center.no_results_found")):E.map(({block:h,truncated:w,results:v},N)=>{const y=ee[h.type],k=y.routeTo&&y.routeTo({block:h,initialQ:u});return e.createElement(e.Fragment,{key:h.cvid},N>0&&e.createElement("div",{className:"userflowjs-resource-center-divider"}),e.createElement("div",{className:"userflowjs-resource-center-label"},e.createElement(q,{doc:h.name,lookupAttribute:R(t.data)})),v.map((C,x)=>C.kind==="flow"?e.createElement(Rt,{key:C.flow.id,block:h,session:t,flow:C.flow,navigate:n}):C.kind==="article"?e.createElement(_t,{key:x,block:h,session:t,article:C.article}):null),!w&&k&&e.createElement("button",{className:"userflowjs-resource-center-block userflowjs-resource-center-block--clickable",onClick:C=>{A(r,t,h),n(k,C)}},e.createElement("div",{className:"userflowjs-resource-center-block-text"},a("more"),":"," ",e.createElement(q,{doc:h.name,lookupAttribute:R(t.data)})),e.createElement("div",{className:"userflowjs-resource-center-block-nav-icon"},e.createElement(I,{icon:Z}))))}):e.createElement("div",{className:"userflowjs-resource-center-list-route-spinner"},e.createElement($,null)))},Vn=({block:t,session:n})=>e.createElement("div",{className:"userflowjs-resource-center-content-route userflowjs-bubble-content"},e.createElement(z,{doc:t.emailContent,lookupAttribute:R(n.data)})),qn=({block:t,session:n})=>e.createElement("div",{className:"userflowjs-resource-center-content-route userflowjs-bubble-content"},e.createElement(z,{doc:t.phoneContent,lookupAttribute:R(n.data)})),Kn=({block:t,initialQ:n,session:r,navigate:s})=>{const{t:c}=G(),a=l.useRef(null),[o,u]=l.useState(n||""),[d,i]=Ue(o,u),{data:g,error:E}=ue({message:{kind:"ListResourceCenterBlockFlows",sessionId:r.id,blockCvid:t.cvid}}),f=g?.flows,h=l.useMemo(()=>f?At(f,o):null,[f,o]);return l.useEffect(()=>{a.current?.focus({preventScroll:!0})},[]),e.createElement(e.Fragment,null,e.createElement("div",{className:"userflowjs-resource-center-list-route-header"},e.createElement("div",{className:"userflowjs-resource-center-list-route-title"},e.createElement(q,{doc:t.name,lookupAttribute:R(r.data)}))),t.searchEnabled&&e.createElement("div",{className:"userflowjs-resource-center-list-route-search"},e.createElement("input",{ref:a,className:"userflowjs-text-input",type:"text",value:d,onChange:w=>i(w.target.value),placeholder:c("resource_center.search_placeholder")})),E?e.createElement("div",{className:"userflowjs-resource-center-list-route-error"},c("resource_center.generic_error")):h?h.length===0?e.createElement("div",{className:"userflowjs-resource-center-list-route-error"},c("resource_center.no_results_found")):h.map(w=>e.createElement(Rt,{key:w.id,block:t,session:r,flow:w,navigate:s})):e.createElement("div",{className:"userflowjs-resource-center-list-route-spinner"},e.createElement($,{fadeIn:!0})))};function At(t,n){const r=n.toLowerCase().trim();return r===""?t:t.filter(s=>s.name.toLowerCase().includes(r))}const Rt=({block:t,session:n,flow:r,navigate:s})=>{const c=_(),[a,o]=l.useState(!1);return l.useEffect(()=>{if(!a||r.type!==rt.CHECKLIST)return;const u=()=>{c.checklistSession?.flow.id===r.id&&(d(),s(null))},d=()=>{c.off("checklistChanged",u)};return c.on("checklistChanged",u),d},[c,a,r.type,r.id,s]),e.createElement("button",{className:"userflowjs-resource-center-block userflowjs-resource-center-block--clickable",onClick:()=>{if(A(c,n,t,r.name),c.checklistSession?.flow.id===r.id){s(null);return}c.startFlow({flowId:r.id,startReason:n.draftMode?st.DRAFT:st.RESOURCE_CENTER,replaceCurrent:!0}),o(!0);const u=Fe(r.url,{lookupAttribute:R(n.data)});u&&an(u)},disabled:a},r.iconSetting!==Yt.HIDE&&e.createElement("div",{className:"userflowjs-resource-center-block-icon"},r.icon?e.createElement(I,{icon:r.icon,size:16}):e.createElement(I,{icon:r.type===rt.CHECKLIST?"regular/tasks":"regular/shoe-prints",size:16})),n.draftMode&&!r.published&&e.createElement("div",{className:"userflowjs-resource-center-code-block"},e.createElement("div",{title:"Unpublished. Preview only"},e.createElement("code",null,"P"))),e.createElement("div",{className:"userflowjs-resource-center-block-text"},r.name),a&&e.createElement($,null))},Qn=({block:t,initialQ:n,session:r,bodyRef:s})=>{const{t:c}=G(),a=l.useRef(null),[o,u]=l.useState(n||""),[d,i]=Ue(o,u),{loading:g,loadingMore:E,data:f,messageForData:h,error:w,loadMore:v}=ue({message:{kind:"SearchKnowledgeBase",sessionId:r.id,blockCvid:t.cvid,q:o,offset:0}}),N=f?.truncated,y=l.useCallback(()=>{v((C,x)=>({...x,offset:C.articles.length}),(C,x)=>({...x,articles:[...C.articles,...x.articles]}))},[v]);Tt({bodyRef:s,loading:g,loadingMore:E,truncated:N,loadMoreHelper:y}),l.useEffect(()=>{a.current?.focus({preventScroll:!0})},[]);let k=t.knowledgeBaseUrl||"";return k.match(/^https?:\/\//)||(k=`http://${k}`),k=yt(k),e.createElement(e.Fragment,null,e.createElement("div",{className:"userflowjs-resource-center-list-route-header"},e.createElement("div",{className:"userflowjs-resource-center-list-route-title"},e.createElement(q,{doc:t.name,lookupAttribute:R(r.data)})),e.createElement("a",{className:"userflowjs-resource-center-icon-button",href:k,target:"_blank",rel:"noopener noreferrer"},e.createElement(I,{icon:bn}))),e.createElement("div",{className:"userflowjs-resource-center-list-route-search"},e.createElement("input",{ref:a,className:"userflowjs-text-input",type:"text",value:d,onChange:C=>i(C.target.value),placeholder:c("resource_center.search_placeholder")})),w?e.createElement("div",{className:"userflowjs-resource-center-list-route-error"},w.code==="quota_exceeded"?"Sorry, this company has reached its max number of searches. Consider asking Userflow to be moved to a dedicated search engine for a higher quota.":w.humanMessage||c("resource_center.generic_error")):g||!f?e.createElement("div",{className:"userflowjs-resource-center-list-route-spinner"},e.createElement($,null)):f.articles.length===0?h?.q===""?null:e.createElement("div",{className:"userflowjs-resource-center-list-route-error"},c("resource_center.no_results_found")):e.createElement(e.Fragment,null,h?.q===""&&e.createElement("div",{className:"userflowjs-resource-center-label"},c("resource_center.suggested_articles")),f.articles.map((C,x)=>e.createElement(_t,{key:x,block:t,session:r,article:C})),E&&e.createElement("div",{className:"userflowjs-resource-center-list-route-spinner"},e.createElement($,null))))},_t=({block:t,article:n,session:r})=>{const s=_();return e.createElement("a",{className:"userflowjs-resource-center-block userflowjs-resource-center-block--clickable",onClick:()=>{A(s,r,t,n.title)},href:yt(n.url),target:"_blank",rel:"noopener noreferrer"},e.createElement("div",{className:"userflowjs-resource-center-block-icon"},e.createElement(I,{icon:"regular/file-alt",size:16})),e.createElement("div",{className:"userflowjs-resource-center-block-text"},e.createElement("span",{dangerouslySetInnerHTML:{__html:n.htmlTitle}}),e.createElement("div",{className:"userflowjs-resource-center-block-subtext",dangerouslySetInnerHTML:{__html:n.htmlSnippet}})))},Zn=({block:t,session:n})=>e.createElement("div",{className:"userflowjs-resource-center-content-route userflowjs-bubble-content"},e.createElement(z,{doc:t.content,lookupAttribute:R(n.data)})),Gn=({bodyRef:t,session:n,route:r,navigate:s})=>{const c=_(),a=ue({message:{kind:"ListAnnouncements",beforeAnnouncementId:null},skip:r?.kind!=="announcementList"}),{loading:o,loadingMore:u,data:d,loadMore:i}=a,g=d?.truncated,E=l.useCallback(()=>{i((w,v)=>w.announcements.length>0?{...v,beforeAnnouncementId:w.announcements[w.announcements.length-1].id}:v,(w,v)=>({...v,announcements:[...w.announcements,...v.announcements]}))},[i]);Tt({bodyRef:t,loading:o,loadingMore:u,truncated:g,loadMoreHelper:E});const[f,h]=l.useState(void 0);return l.useLayoutEffect(()=>{t.current&&f!=null&&r?.kind==="announcementList"&&(t.current.scrollTop=f)},[t,f,r?.kind]),r?.kind==="announcementList"?e.createElement(Jn,{bodyRef:t,session:n,block:r.block,onMoreClick:w=>{h(t.current?.scrollTop),A(c,n,r.block,w.title),s({kind:"announcementShow",block:r.block,announcementId:w.id})},...a}):r?.kind==="announcementShow"?e.createElement(Xn,{block:r.block,announcementId:r.announcementId}):null},Jn=({bodyRef:t,block:n,session:r,onMoreClick:s,error:c,loading:a,loadingMore:o,data:u})=>{const{t:d}=G(),[i,g]=l.useMemo(()=>{const f=[],h=[];if(u){let w=-1;for(const v of u.announcements)w++,w<u.pageSize&&!v.seen&&v.level!==Y.SILENT?f.push(v):h.push(v)}return[f,h]},[u]),E=i.length;return e.createElement(e.Fragment,null,e.createElement("div",{className:"userflowjs-resource-center-list-route-header"},e.createElement("div",{className:"userflowjs-resource-center-list-route-title"},e.createElement(q,{doc:n.name,lookupAttribute:R(r.data)}))),c?e.createElement("div",{className:"userflowjs-resource-center-list-route-error"},c.humanMessage||d("resource_center.generic_error")):a||!u?e.createElement("div",{className:"userflowjs-resource-center-list-route-spinner"},e.createElement($,null)):u.announcements.length===0?e.createElement("div",{className:"userflowjs-resource-center-list-route-error"},ie.exists("resource_center.no_announcements",{fallbackLng:[]})?d("resource_center.no_announcements"):d("resource_center.no_results_found")):e.createElement(e.Fragment,null,E>0&&e.createElement("div",{className:"userflowjs-announcement-unread-header"},d("resource_center.unread",{count:E})),i.map((f,h)=>e.createElement(vt,{key:h,bodyRef:t,onMoreClick:()=>s(f),announcement:f})),i.length>0&&g.length>0&&e.createElement("div",{className:"userflowjs-announcement-seen-divider"}),g.map((f,h)=>e.createElement(vt,{key:h,bodyRef:t,onMoreClick:()=>s(f),announcement:f})),o&&e.createElement("div",{className:"userflowjs-resource-center-list-route-spinner"},e.createElement($,null))))},ve=new Set;function W(t,n){if(!(ve.has(n.id)&&n.seen)&&(ve.add(n.id),t.setResourceCenterSession(r=>r?{...r,version:{...r.version,resourceCenter:{...r.version.resourceCenter,blocks:r.version.resourceCenter.blocks.map(s=>s.type===j.ANNOUNCEMENTS?{...s,unreadAnnouncementCount:n.level===Y.SILENT?s.unreadAnnouncementCount:s.unreadAnnouncementCount-1,popoutAnnouncement:s.popoutAnnouncement?.id===n.id?null:s.popoutAnnouncement,boosterAnnouncement:s.boosterAnnouncement?.id===n.id?null:s.boosterAnnouncement}:s)}}}:null),t.toggleUI(),ve.has(n.id))){t.send({kind:"MarkAnnouncementSeen",announcementId:n.id,versionId:n.versionId});return}}const vt=({bodyRef:t,onMoreClick:n,announcement:r})=>{const s=_(),c=l.useRef(null),a=l.useRef(!1);return l.useEffect(()=>{if(a.current||r.seen)return;const o=new IntersectionObserver(d=>{const i=d[0];i&&i.isIntersecting&&(W(s,r),a.current=!0,u())},{root:t.current,threshold:1}),u=()=>{o.disconnect()};return o.observe(c.current),u},[t,s,r]),e.createElement("div",{className:"userflowjs-announcement-list-item"},e.createElement("div",{className:"userflowjs-announcement-time-divider"},e.createElement("div",{className:"userflowjs-announcement-time-divider-line"}),e.createElement("div",{className:"userflowjs-announcement-time-text"},We(r.time)),e.createElement("div",{className:"userflowjs-announcement-time-divider-line"})),e.createElement("h2",{ref:c,className:"userflowjs-announcement-title"},!r.seen&&r.level!==Y.SILENT&&e.createElement("span",{className:"userflowjs-unread-dot"}),e.createElement("span",null,r.title)),e.createElement("div",{className:"userflowjs-announcement-content userflowjs-bubble-content"},e.createElement(z,{doc:r.content,buttons:r.buttons,lookupAttribute:R(r.data)})),e.createElement("div",{className:"userflowjs-announcement-more"},r.moreEnabled&&e.createElement("button",{className:"userflowjs-tertiary-button",onClick:n},e.createElement("div",null,r.moreButtonText||"Read more"),e.createElement("span",{className:"userflowjs-rtl-mirrored"},e.createElement(I,{icon:kt})))))},Xn=({announcementId:t})=>{const n=_(),{t:r}=G(),{loading:s,data:c,error:a}=ue({message:{kind:"GetAnnouncement",announcementId:t}}),o=c?.announcement;return l.useEffect(()=>{!o||o.seen||W(n,o)},[n,o]),e.createElement(e.Fragment,null,a?e.createElement("div",{className:"userflowjs-resource-center-list-route-error"},a.humanMessage||r("resource_center.generic_error")):s||!o?e.createElement("div",{className:"userflowjs-resource-center-list-route-spinner"},e.createElement($,null)):e.createElement(e.Fragment,null,e.createElement("div",{className:"userflowjs-announcement-show"},e.createElement("h2",{className:"userflowjs-announcement-title"},o?.title),e.createElement("div",{className:"userflowjs-announcement-time"},e.createElement("div",{className:"userflowjs-announcement-time-text"},We(o.time))),e.createElement("div",{className:"userflowjs-bubble-content"},e.createElement(z,{doc:o.content,buttons:o.buttons,lookupAttribute:R(o.data)}),o.moreEnabled&&e.createElement(z,{doc:o.moreContent,buttons:o.moreButtons,lookupAttribute:R(o.data)})))))},Yn=({block:t,initialUserContent:n,session:r,navigate:s,onChatShow:c})=>{const a=t.assistantFlowId,o=_(),[u,d]=l.useState(null),[i,g]=l.useState(null),[E,f]=l.useState(null),[h]=l.useState(n);l.useEffect(()=>{n&&s({kind:"assistant",block:t,initialUserContent:""})},[n,t,s]),l.useEffect(()=>{let v=!1;return(async()=>{try{const y=le.getItem("assistantConversationId:"+a),[k,C]=await Promise.all([$n(),o.send({kind:"GetAssistant",assistantFlowId:a,conversationId:y},{handlesRejection:!0,endBatch:!0})]);if(v)return;d(()=>k),g(C)}catch(y){console.error("Resource center assistant route failed to load:",y),f(y.humanMessage||"Sorry, something went wrong. Please try again or contact my human friends.")}})(),()=>{v=!0}},[o,a]);const w=l.useMemo(()=>{if(!t.assistantContactEnabled)return;const v=r.version.resourceCenter?.blocks.find(N=>N.type===j.CONTACT);if(v)return()=>{switch(A(o,r,t,t.assistantContactButtonText||void 0),t.assistantContactMethod){case ot.EMAIL:s({kind:"email",block:v});break;case ot.PHONE:s({kind:"phone",block:v});break;default:s(null),xt(r,v,c);break}}},[o,r,t,c,s]);return E?e.createElement("div",{className:"userflowjs-assistant-chat"},e.createElement("div",{className:"userflowjs-assistant-chat__content"},e.createElement("div",{className:"userflowjs-assistant-chat__error"},E))):!u||!i?e.createElement($,{center:!0,fadeIn:!0}):e.createElement(u,{block:t,session:r,assistantReply:i,initialUserContent:h,onContactClick:w,contactButtonText:t.assistantContactButtonText||void 0})};function A(t,n,r,s){t.send({kind:"ClickResourceCenter",sessionId:n.id,description:r?Fe(r.name,{lookupAttribute:R(n.data)})+(s?` - ${s}`:""):s},{batch:!0})}function Tt({bodyRef:t,loading:n,loadingMore:r,truncated:s,loadMoreHelper:c}){l.useEffect(()=>{const a=t.current;if(!a||n||r||s)return;const o=()=>{a.scrollHeight-a.clientHeight-a.scrollTop>400||c()};return a.addEventListener("scroll",o),()=>{a.removeEventListener("scroll",o)}},[t,n,r,s,c])}function We(t){const n=t?new Date(t):new Date;let r=new Intl.DateTimeFormat(ie.language,{weekday:"long",day:"numeric",month:"short",year:n.getFullYear()===new Date().getFullYear()?void 0:"numeric"}).format(n);return r.substring(0,1).toUpperCase()+r.substring(1)}function xt(t,n,r){if(n.chatProvider){const s=Ne[n.chatProvider];try{s.show({block:n})}catch(c){console.error(`Userflow.js: Error when showing ${n.chatProvider}:`,c)}r()}else t.draftMode&&window.alert("You have not selected a chat provider. Go to the resource center builder in Userflow. Click the Contact block. Pick a chat provider in the side panel.")}const vr=Object.freeze(Object.defineProperty({__proto__:null,ResourceCenterApp:bt,default:bt},Symbol.toStringTag,{value:"Module"}));export{Dn as A,Fn as G,vr as R,yt as d};
|
|
5
5
|
//# sourceMappingURL=ResourceCenterApp.js.map
|
package/hash.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a77d8c7c4934580cc4ae63b6e67a33652192d0b5
|
package/package.json
CHANGED
package/userflow.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["ResourceCenterApp.js","vendor.react.js","vendor.core-js.js","vendor.object-assign.js","client-context.js","vendor.i18next.js","vendor.babel.runtime.js","vendor.react-i18next.js","flow-host.styl.js","use-selector-element-monitoring.js","flow-condition-types.js","vendor.date-fns.js","roots.js","stylesheets.js","vendor.fortawesome.pro-regular-svg-icons.js","vendor.fortawesome.pro-solid-svg-icons.js","vendor.obj-str.js","Frame.js","vendor.react-dom.js","vendor.scheduler.js","use-window-resize.js","logomark.js","ChecklistUI.js","FlowChrome.js","vendor.canvas-confetti.js","vendor.memoize-one.js","vendor.bignumber.js.js","use-element-rect.js","BannerApp.js","vendor.phoenix.js","vendor.uuid.js","implicit-tracking.js","DebuggerUI.js","vendor.lodash.js","vendor.fortawesome.react-fontawesome.js","vendor.fortawesome.fontawesome-svg-core.js","vendor.react-day-picker.js","ui.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import"./vendor.core-js.js";import{S as j}from"./vendor.phoenix.js";import{v as U}from"./vendor.uuid.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e0faa25b-2abc-4d44-af22-1bddaaf4d6c8",t._sentryDebugIdIdentifier="sentry-dbid-e0faa25b-2abc-4d44-af22-1bddaaf4d6c8")}catch{}})();const Y="modulepreload",z=function(t){return new URL("./",import.meta.url).toString()+t},v={},g=function(e,s,i){let n=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),h=a?.nonce||a?.getAttribute("nonce");n=Promise.allSettled(s.map(c=>{if(c=z(c),c in v)return;v[c]=!0;const u=c.endsWith(".css"),T=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${T}`))return;const E=document.createElement("link");if(E.rel=u?"stylesheet":Y,u||(E.as="script"),E.crossOrigin="",E.href=c,h&&E.setAttribute("nonce",h),document.head.appendChild(E),u)return new Promise(($,F)=>{E.addEventListener("load",$),E.addEventListener("error",()=>F(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(a){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=a,window.dispatchEvent(h),!h.defaultPrevented)throw a}return n.then(a=>{for(const h of a||[])h.status==="rejected"&&r(h.reason);return e().catch(r)})};class l extends Error{constructor(e,s,i){super(e),Object.setPrototypeOf(this,l.prototype),this.name="UserflowError",this.code=s,this.humanMessage=i}}class B{constructor(e){this.type=e,this.testState={}}formatKey(e){return`userflow:${e}`}isSupported(){if(typeof window>"u")return!1;try{return window[this.type]!=null}catch{return!1}}getItem(e){return e=this.formatKey(e),this.isSupported()?window[this.type].getItem(e):null}setItem(e,s){e=this.formatKey(e);{if(!this.isSupported())return;window[this.type].setItem(e,s)}}removeItem(e){return e=this.formatKey(e),this.isSupported()?window[this.type].removeItem(e):void 0}clear(){return this.isSupported()?window[this.type].clear():void 0}}const I=new B("localStorage"),f=new B("sessionStorage");function it(t){window.location.href=t}function x(){return window.location.href}function N(t){window.postMessage(t,window.origin)}function H(t){const e=i=>{if(i.source!==window||i.origin!==window.origin)return;const n=i.data;!n||typeof n!="object"||typeof n.kind!="string"||!n.kind.startsWith("userflow:")||t(n)===!0&&s()};window.addEventListener("message",e);const s=()=>window.removeEventListener("message",e);return s}function J(t){return new Promise(e=>{H(s=>{const i=t(s);return i?(e(i),!0):!1})})}const A=new Set;let O=!1;function Q(t){return X(),A.add(t),()=>{G(t)}}function G(t){A.delete(t)}function w(){A.forEach(t=>t())}function X(){if(O)return;O=!0;const{history:t}=window,e=s=>{const i=t[s];t[s]=(...n)=>{const r=i.apply(t,n);return w(),r}};window.__userflowStatePatched?(window.addEventListener("userflow:pushstate",()=>{w()}),window.addEventListener("userflow:replacestate",()=>{w()})):(e("pushState"),e("replaceState")),window.addEventListener("popstate",()=>{w()})}class Z{destroy(){this.unregisterOnMessage&&this.unregisterOnMessage()}postBuilderMessage(e){N({kind:"userflow:crxSendProxyMessage",direction:"targetToBuilder",message:e})}onBuilderMessage(e){return this.unregisterOnMessage=H(e),!1}async captureScreenshot(e,s,i,n){return N({kind:"userflow:crxScreenshot",x:e,y:s,width:i,height:n,devicePixelRatio:window.devicePixelRatio}),(await J(a=>a.kind==="userflow:crxScreenshotResult"?a:null)).imageDataUrl}}var C=(t=>(t.ACTION="ACTION",t.LAUNCHER_DEACTIVATED="LAUNCHER_DEACTIVATED",t.REPLACED="REPLACED",t.SNOOZED="SNOOZED",t.TOOLTIP_TARGET_MISSING="TOOLTIP_TARGET_MISSING",t.USERFLOWJS="USERFLOWJS",t.USER_CLOSED="USER_CLOSED",t))(C||{}),q=(t=>(t.SECOND="SECOND",t.MINUTE="MINUTE",t.HOUR="HOUR",t.DAY="DAY",t))(q||{}),m=(t=>(t.ACTION="ACTION",t.DRAFT="DRAFT",t.LINK="LINK",t.LAUNCHER_SEEN="LAUNCHER_SEEN",t.RESOURCE_CENTER="RESOURCE_CENTER",t.USERFLOWJS="USERFLOWJS",t))(m||{}),ee=(t=>(t.LIKE="LIKE",t.DISLIKE="DISLIKE",t))(ee||{}),S=(t=>(t.STRING="STRING",t.BOOLEAN="BOOLEAN",t.NUMBER="NUMBER",t.DATETIME="DATETIME",t.LIST="LIST",t.RANDOM_AB="RANDOM_AB",t.RANDOM_NUMBER="RANDOM_NUMBER",t.CHECKLIST_TASK="CHECKLIST_TASK",t.FLOW="FLOW",t.FLOW_SESSION="FLOW_SESSION",t.FLOW_STEP="FLOW_STEP",t.FLOW_VERSION="FLOW_VERSION",t))(S||{}),k=(t=>(t.FLOW="FLOW",t.BANNER="BANNER",t.EMBED="EMBED",t.CHECKLIST="CHECKLIST",t.LAUNCHER="LAUNCHER",t.RESOURCE_CENTER="RESOURCE_CENTER",t))(k||{}),te=(t=>(t.ALWAYS_TRUE="ALWAYS_TRUE",t.ATTRIBUTE="ATTRIBUTE",t.CHECKLIST_TASK_CLICKED="CHECKLIST_TASK_CLICKED",t.CLAUSE="CLAUSE",t.ELEMENT="ELEMENT",t.EVENT="EVENT",t.FILLED_IN_INPUT="FILLED_IN_INPUT",t.FLOW="FLOW",t.INPUT_VALUE="INPUT_VALUE",t.PAGE="PAGE",t.SEGMENT="SEGMENT",t.TIME="TIME",t))(te||{}),se=(t=>(t.AUTO="AUTO",t.MANUAL="MANUAL",t))(se||{}),ie=(t=>(t.INPUT="INPUT",t))(ie||{}),ne=(t=>(t.ABSOLUTE_EQ="ABSOLUTE_EQ",t.ABSOLUTE_GT="ABSOLUTE_GT",t.ABSOLUTE_LT="ABSOLUTE_LT",t.AND="AND",t.BETWEEN="BETWEEN",t.CONTAINS="CONTAINS",t.EMPTY="EMPTY",t.ENDS_WITH="ENDS_WITH",t.EQ="EQ",t.EXCLUDES_ALL="EXCLUDES_ALL",t.EXCLUDES_ANY="EXCLUDES_ANY",t.FALSE="FALSE",t.GT="GT",t.GTE="GTE",t.INCLUDES_ALL="INCLUDES_ALL",t.INCLUDES_ANY="INCLUDES_ANY",t.LT="LT",t.LTE="LTE",t.NE="NE",t.NOT_CONTAINS="NOT_CONTAINS",t.NOT_EMPTY="NOT_EMPTY",t.NOT_REGEX="NOT_REGEX",t.OR="OR",t.REGEX="REGEX",t.RELATIVE_EQ="RELATIVE_EQ",t.RELATIVE_GT="RELATIVE_GT",t.RELATIVE_LT="RELATIVE_LT",t.STARTS_WITH="STARTS_WITH",t.TRUE="TRUE",t.URL="URL",t))(ne||{}),re=(t=>(t.CLICK="CLICK",t.DISABLED="DISABLED",t.MOUSEDOWN="MOUSEDOWN",t.NOT_CLICK="NOT_CLICK",t.NOT_DISABLED="NOT_DISABLED",t.NOT_PRESENT="NOT_PRESENT",t.PRESENT="PRESENT",t))(re||{}),oe=(t=>(t.END_USER="END_USER",t.GROUP="GROUP",t))(oe||{}),ae=(t=>(t.BETWEEN="BETWEEN",t.EQ="EQ",t.GTE="GTE",t.LTE="LTE",t))(ae||{}),ce=(t=>(t.ANY="ANY",t.RELATIVE_BETWEEN="RELATIVE_BETWEEN",t.RELATIVE_GT="RELATIVE_GT",t.RELATIVE_LT="RELATIVE_LT",t))(ce||{}),ue=(t=>(t.CURRENT_USER="CURRENT_USER",t.CURRENT_USER_CURRENT_GROUP="CURRENT_USER_CURRENT_GROUP",t.CURRENT_GROUP="CURRENT_GROUP",t))(ue||{}),le=(t=>(t.ASSET="ASSET",t.CARTOON="CARTOON",t.NONE="NONE",t.URL="URL",t))(le||{}),he=(t=>(t.INSIDE="INSIDE",t.OUTSIDE="OUTSIDE",t))(he||{}),de=(t=>(t.TOP_LEFT="TOP_LEFT",t.TOP_CENTER="TOP_CENTER",t.TOP_RIGHT="TOP_RIGHT",t.BOTTOM_RIGHT="BOTTOM_RIGHT",t.BOTTOM_CENTER="BOTTOM_CENTER",t.BOTTOM_LEFT="BOTTOM_LEFT",t.CENTER="CENTER",t))(de||{}),fe=(t=>(t.GOOGLE="GOOGLE",t.STANDARD="STANDARD",t))(fe||{}),Ee=(t=>(t.DISMISS_FIRST_MENU_AFTER="DISMISS_FIRST_MENU_AFTER",t.DISMISS="DISMISS",t))(Ee||{}),Se=(t=>(t.DISMISS="DISMISS",t.NONE="NONE",t))(Se||{}),Te=(t=>(t.DEFAULT="DEFAULT",t.NARROW="NARROW",t.CHAINED_SQUARED="CHAINED_SQUARED",t.CHAINED_ROUNDED="CHAINED_ROUNDED",t.DOTTED="DOTTED",t.NUMBERED="NUMBERED",t))(Te||{}),ge=(t=>(t.TOP="TOP",t.BOTTOM="BOTTOM",t))(ge||{}),Ie=(t=>(t.DEFAULT="DEFAULT",t.PLAINTEXT="PLAINTEXT",t.CUSTOM="CUSTOM",t))(Ie||{}),we=(t=>(t.CHECKLIST_OVERRIDE="CHECKLIST_OVERRIDE",t.RESOURCE_CENTER_ONLY="RESOURCE_CENTER_ONLY",t.NONE="NONE",t))(we||{}),Ce=(t=>(t.BUBBLE="BUBBLE",t.END="END",t.ERROR="ERROR",t.FLAG="FLAG",t))(Ce||{}),ke=(t=>(t.MANUAL="MANUAL",t.NONE="NONE",t.SYNTHETIC="SYNTHETIC",t))(ke||{}),me=(t=>(t.BUBBLE="BUBBLE",t.HIDDEN="HIDDEN",t.MODAL="MODAL",t.TOOLTIP="TOOLTIP",t))(me||{}),Ue=(t=>(t.ABOVE="ABOVE",t.BELOW="BELOW",t.LEFT="LEFT",t.RIGHT="RIGHT",t))(Ue||{}),pe=(t=>(t.CLOSE_FLOW="CLOSE_FLOW",t.EVAL_JS="EVAL_JS",t.GO_TO_STEP="GO_TO_STEP",t.NAVIGATE="NAVIGATE",t.SET_ATTRIBUTE="SET_ATTRIBUTE",t.SNOOZE="SNOOZE",t.START_FLOW="START_FLOW",t.TRACK_BUTTON_EVENT="TRACK_BUTTON_EVENT",t))(pe||{}),Le=(t=>(t.NEW_TAB="NEW_TAB",t.SAME_TAB="SAME_TAB",t))(Le||{}),Ne=(t=>(t.SET="SET",t.SET_DATETIME="SET_DATETIME",t.SET_DATETIME_ONCE="SET_DATETIME_ONCE",t.SET_ONCE="SET_ONCE",t.ADD="ADD",t.SUBTRACT="SUBTRACT",t.APPEND="APPEND",t.PREPEND="PREPEND",t.REMOVE="REMOVE",t.UNSET="UNSET",t))(Ne||{}),_e=(t=>(t.MULTILINE_TEXT="MULTILINE_TEXT",t.MULTIPLE_CHOICE="MULTIPLE_CHOICE",t.NPS="NPS",t.SCALE="SCALE",t.STARS="STARS",t.TEXT="TEXT",t))(_e||{}),_=(t=>(t.ACTION="ACTION",t.ANNOUNCEMENTS="ANNOUNCEMENTS",t.ASSISTANT="ASSISTANT",t.CHECKLIST="CHECKLIST",t.CONTACT="CONTACT",t.DIVIDER="DIVIDER",t.FLOWS="FLOWS",t.KNOWLEDGE_BASE="KNOWLEDGE_BASE",t.MESSAGE="MESSAGE",t.SUBPAGE="SUBPAGE",t))(_||{}),Ae=(t=>(t.CRISP="CRISP",t.CUSTOM="CUSTOM",t.FRESHCHAT="FRESHCHAT",t.HELPSCOUT="HELPSCOUT",t.HUBSPOT="HUBSPOT",t.INTERCOM="INTERCOM",t.ZENDESK="ZENDESK",t.ZENDESK_MESSENGER="ZENDESK_MESSENGER",t))(Ae||{}),Re=(t=>(t.BUTTON="BUTTON",t.INPUT="INPUT",t))(Re||{}),ve=(t=>(t.EMAIL="EMAIL",t.PHONE="PHONE",t.CHAT="CHAT",t))(ve||{}),Oe=(t=>(t.SILENT="SILENT",t.BADGE="BADGE",t.POPOUT="POPOUT",t.MODAL="MODAL",t.TOAST="TOAST",t))(Oe||{}),be=(t=>(t.LAUNCHER_CLICK="LAUNCHER_CLICK",t.LAUNCHER_HOVER="LAUNCHER_HOVER",t.TARGET_CLICK="TARGET_CLICK",t.TARGET_HOVER="TARGET_HOVER",t.LAUNCHER_TARGET_CLICK="LAUNCHER_TARGET_CLICK",t.LAUNCHER_TARGET_HOVER="LAUNCHER_TARGET_HOVER",t))(be||{}),W=(t=>(t.ACTIVATE="ACTIVATE",t.DEACTIVATE="DEACTIVATE",t.NEVER="NEVER",t))(W||{}),De=(t=>(t.AUTO="AUTO",t.TOP="TOP",t.RIGHT="RIGHT",t.BOTTOM="BOTTOM",t.LEFT="LEFT",t))(De||{}),ye=(t=>(t.START="START",t.CENTER="CENTER",t.END="END",t))(ye||{}),Me=(t=>(t.PERCENT="PERCENT",t.PX="PX",t))(Me||{}),Pe=(t=>(t.BEACON="BEACON",t.BUTTON="BUTTON",t.HIDDEN="HIDDEN",t.ICON="ICON",t))(Pe||{}),Be=(t=>(t.LAUNCHER="LAUNCHER",t.TARGET="TARGET",t))(Be||{}),xe=(t=>(t.BODY_FIRST="BODY_FIRST",t.BODY_LAST="BODY_LAST",t.ELEMENT_FIRST="ELEMENT_FIRST",t.ELEMENT_LAST="ELEMENT_LAST",t.ELEMENT_BEFORE="ELEMENT_BEFORE",t.ELEMENT_AFTER="ELEMENT_AFTER",t))(xe||{}),He=(t=>(t.BODY_FIRST="BODY_FIRST",t.BODY_LAST="BODY_LAST",t.ELEMENT_FIRST="ELEMENT_FIRST",t.ELEMENT_LAST="ELEMENT_LAST",t.ELEMENT_BEFORE="ELEMENT_BEFORE",t.ELEMENT_AFTER="ELEMENT_AFTER",t))(He||{}),Ge=(t=>(t.ALWAYS="ALWAYS",t.MULTIPLE="MULTIPLE",t.NEVER="NEVER",t.ONCE="ONCE",t.ONCE_PER_GROUP="ONCE_PER_GROUP",t))(Ge||{}),We=(t=>(t.NONE="NONE",t.PENDING_SCHEDULE="PENDING_SCHEDULE",t.SCHEDULED="SCHEDULED",t.FIRED="FIRED",t))(We||{}),Ve=(t=>(t.NONE="NONE",t.LIKE="LIKE",t.SCALE="SCALE",t))(Ve||{}),Ke=(t=>(t.HIDE="HIDE",t.BLOCK="BLOCK",t.OTHERS="OTHERS",t))(Ke||{});function $e(){return{customInputs:[],customNavigate:null,urlFilter:null,linkUrlDecorator:null,customScrollIntoView:null,scrollPadding:null,inferenceAttributeNames:["data-for","data-id","data-testid","data-test-id","for","id","name","placeholder","role"],inferenceAttributeFilters:{id:[t=>!t.match(/\d$/)],"data-id":[t=>!t.match(/\d$/)]},inferenceClassNameFilters:[t=>!t.startsWith("css-")],baseZIndex:1234500,evalJsDisabled:!1}}const d=$e();function b(t){return Array.isArray(t)||(t=t?[t]:[]),t=t.map(e=>typeof e=="string"?new RegExp(e):e),t}function nt(t,e){return t.every(s=>typeof s=="function"?s(e):s instanceof RegExp?s.test(e):!0)}function Fe(){let t=x();if(d.urlFilter){if(t=d.urlFilter(t),typeof t!="string")throw new l("Userflow.js: URL filter returned non-string value. Please check your userflow.setUrlFilter() implementation.");try{new URL(t)}catch(e){throw new l(`Userflow.js: URL filter returned an invalid URL. Please check your userflow.setUrlFilter() implementation.
|
|
3
3
|
Returned URL: `+t+`
|
|
4
|
-
Error message: `+e.message)}}return t}let V="";try{V=localStorage.getItem("debug")||""}catch{}const K=V.split(",").some(t=>t==="*"||t.startsWith("userflow:*")),o=R("log");o.group=R("group");o.groupCollapsed=R("groupCollapsed");o.groupEnd=function(){K&&console.groupEnd()};let p;function R(t){return function(e,...s){if(K){const i=performance.now(),n=p?Math.round(i-p):0;p=i,console[t](`%cuserflow %c${e} %c+${n}ms`,"color:#1a57e6;","","color:#1a57e6;",...s)}}}const je=()=>g(()=>import("./ResourceCenterApp.js").then(t=>t.R),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]));function Ye(t){const s=t.version.checklist.tasks.length;return Math.max(0,s-t.taskCompletions.length)}class D{constructor(e){this.observers=new Set,this._value=e}get value(){return this._value}update(e){if(e!==this._value){this._value=e;for(const s of this.observers)s()}}observe(e){return this.observers.add(e),()=>this.observers.delete(e)}}const y=["page:before-change","page:change","turbo:before-cache","turbo:load","turbo:visit","turbolinks:before-cache","turbolinks:load","turbolinks:visit"],ze=()=>g(()=>import("./BannerApp.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,16,13,14,15,10,11,12,9,8,18,19,17,27,20,29,30])),L="
|
|
4
|
+
Error message: `+e.message)}}return t}let V="";try{V=localStorage.getItem("debug")||""}catch{}const K=V.split(",").some(t=>t==="*"||t.startsWith("userflow:*")),o=R("log");o.group=R("group");o.groupCollapsed=R("groupCollapsed");o.groupEnd=function(){K&&console.groupEnd()};let p;function R(t){return function(e,...s){if(K){const i=performance.now(),n=p?Math.round(i-p):0;p=i,console[t](`%cuserflow %c${e} %c+${n}ms`,"color:#1a57e6;","","color:#1a57e6;",...s)}}}const je=()=>g(()=>import("./ResourceCenterApp.js").then(t=>t.R),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]));function Ye(t){const s=t.version.checklist.tasks.length;return Math.max(0,s-t.taskCompletions.length)}class D{constructor(e){this.observers=new Set,this._value=e}get value(){return this._value}update(e){if(e!==this._value){this._value=e;for(const s of this.observers)s()}}observe(e){return this.observers.add(e),()=>this.observers.delete(e)}}const y=["page:before-change","page:change","turbo:before-cache","turbo:load","turbo:visit","turbolinks:before-cache","turbolinks:load","turbolinks:visit"],ze=()=>g(()=>import("./BannerApp.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,16,13,14,15,10,11,12,9,8,18,19,17,27,20,29,30])),L="1013102",Je=import.meta.url,M=50,Qe=5*60*1e3,P="userflowClientState";class Xe{constructor(){this.clientToken=null,this.externalId=null,this.signature=null,this.groupId=null,this.groupSignature=null,this._socketStatus="disconnected",this.socket=null,this.channel=null,this.logrocketAppId=null,this.debounceInactiveDisconnectTimeout=void 0,this.inBatch=!1,this.endBatchTimeout=void 0,this.pushRateLimitMinute=0,this.pushRateLimitMinuteExpires=0,this.clientClock=1,this.serverClock=1,this.flowSession=null,this.flowSessionClock=0,this.checklistSession=null,this.checklistExpanded=!1,this.checklistExpandPending=!1,this.checklistSessionClock=0,this.bannerSession=null,this.resourceCenterSession=null,this.resourceCenterOpen=!1,this.resourceCenterLauncherHidden=!1,this.launcherSessions=[],this.activeLauncherFlowId=null,this.notifications=[],this.embedSessions=[],this.notificationIdCounter=0,this.sessionStorageState=null,this.clientContext=null,this.flushUrlChangeTimeout=void 0,this.onFirstIdentifyRun=!1,this.onFirstIdentifyTimeout=void 0,this.firstIdentifyCallback=null,this.ui=null,this.debuggerUI=null,this.debuggerMountInProgress=!1,this.unackedTasks=new Set,this.clientConditions=new Map,this.trackers=new Map,this.conditionWaitTimers=new Map,this.listeners=new Map,this.targetEnv=null,this.idempotencyKeysSeen=new Set,this.testUserIdentified=!1,this.cspIssueReported=!1,this.uiDisabled=!1,this.audio=null,this.audioReady=!1,this.pageTrackingDisabled=!1,this.refCounter=1,this.implicitTrackingQueue=[],this.onBuilderMessage=e=>(this.handleBuilderMessage(e),!1),this.handleBuilderMessage=async e=>{o(`builder ${e.kind} message received`,e);const s="idempotencyKey"in e&&typeof e.idempotencyKey=="string"?e.idempotencyKey:null;if(s&&this.idempotencyKeysSeen.has(s))return;const i=()=>{s&&this.idempotencyKeysSeen.add(s)};switch(e.kind){case"userflow:selectElement":{i(),this.getTargetEnv().postBuilderMessage({kind:"userflow:selectElementAck",idempotencyKey:e.idempotencyKey}),this.setSessionStorageState(n=>({...n,isTargetTab:!0,activeApp:"elementSelection",elementSelection:{mode:"select",elementType:e.elementType}}));return}case"userflow:selectElementCancel":{this.setSessionStorageState(n=>({...n,activeApp:null,elementSelection:null}));return}case"userflow:startFlowWithToken":{i(),this.getTargetEnv().postBuilderMessage({kind:"userflow:startFlowWithTokenAck",idempotencyKey:e.idempotencyKey}),this.setSessionStorageState(n=>({...n,isTargetTab:!0,activeApp:null,testStartConditionToken:void 0})),f.setItem("previewFlowId",e.flowId),e.testUser?this.identifyTestUser(e.testUser):this.resetTestUser(),e.testStartCondition?this.setSessionStorageState(n=>({...n,activeApp:"startConditionTesting",testStartConditionToken:e.token})):this.onceIdentified(()=>{if(this.startFlowWithToken(e.token),e.isResourceCenter){const n=()=>{const r=this.resourceCenterSession;r&&r.draftMode&&r.flow.id===e.flowId&&(this.openResourceCenter(),this.off("resourceCenterChanged",n))};this.on("resourceCenterChanged",n),n()}});return}case"userflow:testTracker":{i(),this.getTargetEnv().postBuilderMessage({kind:"userflow:testTrackerAck",idempotencyKey:e.idempotencyKey}),this.setSessionStorageState(n=>({...n,isTargetTab:!0})),e.testUser?this.identifyTestUser(e.testUser):this.resetTestUser(),this.setSessionStorageState(n=>({...n,activeApp:"trackerTesting",trackerTesting:{trackerName:e.trackerName,token:e.token,events:0}}));return}case"userflow:testTrackerCancel":{this.setSessionStorageState(n=>({...n,activeApp:null,trackerTesting:null}));return}}},this.onUrlChange=()=>{this.externalId&&(window.clearTimeout(this.flushUrlChangeTimeout),this.flushUrlChangeTimeout=window.setTimeout(()=>this.flushUrlChange(),M))},this.onUserActivity=()=>this.ensureConnected(),this.remountIfNecessary=()=>{!this.ui?.container||document.contains(this.ui.container)||(o("remounting UI because container was missing"),this.remount())},o("constructor, build="+L),Q(this.onUrlChange),this.setTargetEnv(new Z),this.checkTestUserAtBoot(),this.toggleUI(),this.checkDebuggerSession();for(const e of y)document.addEventListener(e,this.remountIfNecessary)}get socketStatus(){return this._socketStatus}destroy(){o("destroy"),this.reset(),G(this.onUrlChange),this.destroyTargetEnv();for(const e of y)document.removeEventListener(e,this.remountIfNecessary)}setTargetEnv(e){this.destroyTargetEnv(),this.targetEnv=e,e.onBuilderMessage(this.onBuilderMessage)}destroyTargetEnv(){this.targetEnv&&(this.targetEnv.destroy(),this.targetEnv=null)}getTargetEnv(){if(!this.targetEnv)throw new l("Userflow.js: Cannot call getTargetEnv when protocol is not set");return this.targetEnv}setSessionStorageState(e){const s=e(this.getSessionStorageState());f.setItem(P,JSON.stringify(s)),this.sessionStorageState=s,this.toggleUI()}getSessionStorageState(){let e=this.sessionStorageState;if(!e){const s=f.getItem(P);if(s)try{e=JSON.parse(s)}catch(i){console.error("Userflow.js: Parse ElementSelectionState error:",i)}e||(e={testUser:null,activeApp:null,elementSelection:null,trackerTesting:null}),this.sessionStorageState=e}return e}checkTestUserAtBoot(){const e=this.getSessionStorageState().testUser;e&&(o("checkTestUserAtBoot identifying test user"),this.identifyTestUser(e))}async identifyTestUser(e){this.setSessionStorageState(n=>({...n,testUser:e})),this.reset(),this.init(e.clientToken),this.testUserIdentified=!0,this.externalId=e.id;const s=[this.identify(e.id,{name:e.name,email:e.email,signed_up_at:{set_once:new Date().toISOString(),data_type:"datetime"}},{signature:e.signature})],{group:i}=e;i&&(this.groupId=i.id,s.push(this.group(i.id,{name:i.name},{signature:i.signature}))),await Promise.all(s)}resetTestUser(){this.setSessionStorageState(e=>({...e,testUser:null}))}init(e){if(o("init",e),!e)throw new l("userflow.init() was called but missing Userflow.js Token");if(this.clientToken!==e){if(this.testUserIdentified){o("init() ignoring new token since a test user has been identified");return}this.clientToken&&(o("init() resetting due to new client token"),this.reset()),this.clientToken=e,this.emit("private:initialised")}}ensureInit(){if(!this.clientToken)throw new l("You must call userflow.init() first")}ensureIdentified(){if(this.ensureInit(),!this.externalId)throw new l("You must call userflow.identify() first");return this.externalId}ensureGroup(){if(this.ensureIdentified(),!this.groupId)throw new l("You must call userflow.group() first");return this.groupId}ensureConnected(){if(!this.clientToken||!this.externalId||(this.debounceInactiveDisconnect(),this.socket))return;this._socketStatus="connecting",o("connecting to socket");let e=d.serverEndpoint||"e.userflow.com";new URL(Je).hostname==="js.getuserflow.com"&&e==="e.userflow.com"&&(e="e.getuserflow.com");const s="wss://"+e+"/end-users/"+this.clientToken+"/socket";this.socket=new j(s,{reconnectAfterMs:i=>[100,500,1e3,5e3][i-1]||1e4,timeout:20*1e3}),this.socket.connect(),this.socket.onOpen(()=>{o("socket opened")}),this.socket.onClose(()=>{this.emit("private:disconnect")}),this.socket.onError(i=>{console.log("Userflow.js socket error",i),this.reportCspIssue()}),this.channel=this.socket.channel(`end_users:${this.externalId}`,()=>this.makeChannelJoinPayload()),this.channel.join().receive("ok",i=>{this.logrocketAppId=i.logrocketAppId,this.featureFlags=new Set(i.featureFlags),o("channel joined"),this._socketStatus!=="connected"&&(this._socketStatus="connected"),this.flushImplicitTrackingQueue(),this.featureFlagEnabled("cff_implicit_events")===!0&&this.startImplicitTracking()}).receive("error",i=>{["company_closed","invalid_client_token","invalid_user_external_id","incorrect_user_signature","rate_limit_exceeded","user_signature_required"].includes(i.code)?(console.error(`Userflow.js resetting due to: [${i.code}] ${i.message}`),this.reset(),this.clientToken=null):i.code==="invalid_protocol_version"?(console.error(`Userflow.js destroying due to: [${i.code}] ${i.message}`),this.destroy()):console.log("Userflow.js channel join error",i)}),this.channel.on("server_message",i=>this.handleServerMessage(i)),this.channel.on("server_error",i=>{console.log(`Userflow.js server error (${i.code}): ${i.message}`+(i.details&&i.details.length>0?`
|
|
5
5
|
Details:
|
|
6
6
|
`+i.details.map(n=>(n.path?`${n.path}: `:"")+n.message):""))}),this.channel.onClose(()=>{this.flushImplicitTrackingQueue(),this.implicitTracking?.stop()})}async startImplicitTracking(){await g(()=>import("./implicit-tracking.js"),__vite__mapDeps([31,12,2,30,29])).then(e=>this.implicitTracking=new e.ImplicitTracking(this)).catch(e=>o(`Implicit tracking failed to load ${e}`)),this.implicitTracking.start()}flushImplicitTrackingQueue(){this.featureFlagEnabled("cff_implicit_events")===!0&&this.implicitTrackingQueue.forEach(e=>{this.trackRawEvent({name:"page_viewed",attributes:e})}),this.implicitTrackingQueue=[]}makeChannelJoinPayload(){const e=this.buildClientContext();this.clientContext=e;const s={protocolVersion:2,userflowClientBuild:L,signature:this.signature,groupExternalId:this.groupId,groupSignature:this.groupSignature,flowSessionId:this.flowSession?.id||null,checklistSessionId:this.checklistSession?.id||null,bannerSessionId:this.bannerSession?.id||null,resourceCenterSessionId:this.resourceCenterSession?.id||null,launchers:this.launcherSessions.map(i=>({flowId:i.flow.id})),trackers:Array.from(this.trackers.values()).map(i=>({flowId:i.tracker.flowId})),hasDraftSession:this.hasDraftSession(),clientConditions:Array.from(this.clientConditions.values()).map(i=>({conditionId:i.condition.id,isTrue:i.isTrue})),previewFlowId:f.getItem("previewFlowId"),clientContext:e};return o("channel join payload",s),s}disconnect(){window.clearTimeout(this.debounceInactiveDisconnectTimeout),this.socket&&this.socket.disconnect(),this._socketStatus="disconnected",this.socket=null,this.channel=null}debounceInactiveDisconnect(){window.clearTimeout(this.debounceInactiveDisconnectTimeout),this.debounceInactiveDisconnectTimeout=window.setTimeout(()=>{if(this.hasDraftSession()||this.assistantMessageInProgress){this.debounceInactiveDisconnect();return}o("disconnecting from socket due to inactivity"),this.disconnect()},Qe)}hasDraftSession(){return!!this.flowSession?.draftMode||!!this.checklistSession?.draftMode||!!this.bannerSession?.draftMode||!!this.resourceCenterSession?.draftMode||this.launcherSessions.some(e=>e.draftMode)}async send(e,{batch:s,endBatch:i,handlesRejection:n}={}){return(!this.inBatch||!["ToggleClientCondition","UpdateClientContext"].includes(e.kind))&&this.checkPushRateLimit(),this.ensureConnected(),s&&!this.inBatch&&(this.inBatch=!0,this.sendRaw({kind:"BeginBatch"})),this.inBatch&&(window.clearTimeout(this.endBatchTimeout),i?this.endBatch():this.endBatchTimeout=window.setTimeout(()=>{this.endBatch()},M)),this.sendRaw(e,{handlesRejection:n})}async sendRaw(e,{handlesRejection:s}={}){return new Promise((i,n)=>{if(!this.channel){const c=`Userflow.js: send() should not be called if channel is not set. Message kind=${e.kind}`;if(s)throw Error(c);console.log(c,`
|
|
7
7
|
Client message:`,e);return}o(`push ${e.kind} message`,e);const r=this.clientClock,a=()=>{this.serverClock=r,this.channel?.off("phx_error",h)},h=this.channel.on("phx_error",c=>{a();const u=`Userflow.js send ${e.kind} got phx_error`;this._socketStatus==="connected"&&console.log(u,`
|
package/vendor.core-js.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="142b35c6-43d7-44ea-80c0-996431fb4cc1",r._sentryDebugIdIdentifier="sentry-dbid-142b35c6-43d7-44ea-80c0-996431fb4cc1")}catch{}})();var Ze=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};Ze.SENTRY_RELEASE={id:"2751559bff03a2986eb5dc2045e6e4752ab0a7b2"};var F=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var P=function(r){return r&&r.Math===Math&&r},f=P(typeof globalThis=="object"&&globalThis)||P(typeof window=="object"&&window)||P(typeof self=="object"&&self)||P(typeof F=="object"&&F)||P(typeof F=="object"&&F)||function(){return this}()||Function("return this")(),gr={},h=function(r){try{return!!r()}catch{return!0}},Qe=h,g=!Qe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),rt=h,Or=!rt(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),et=Or,B=Function.prototype.call,O=et?B.bind(B):function(){return B.apply(B,arguments)},fe={},se={}.propertyIsEnumerable,ye=Object.getOwnPropertyDescriptor,tt=ye&&!se.call({1:2},1);fe.f=tt?function(e){var t=ye(this,e);return!!t&&t.enumerable}:se;var $e=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}},de=Or,pe=Function.prototype,sr=pe.call,nt=de&&pe.bind.bind(sr,sr),b=de?nt:function(r){return function(){return sr.apply(r,arguments)}},be=b,at=be({}.toString),ot=be("".slice),q=function(r){return ot(at(r),8,-1)},it=b,vt=h,ut=q,H=Object,ct=it("".split),lt=vt(function(){return!H("z").propertyIsEnumerable(0)})?function(r){return ut(r)==="String"?ct(r,""):H(r)}:H,Sr=function(r){return r==null},ft=Sr,st=TypeError,he=function(r){if(ft(r))throw new st("Can't call method on "+r);return r},yt=lt,$t=he,Er=function(r){return yt($t(r))},X=typeof document=="object"&&document.all,$=typeof X>"u"&&X!==void 0?function(r){return typeof r=="function"||r===X}:function(r){return typeof r=="function"},dt=$,_=function(r){return typeof r=="object"?r!==null:dt(r)},Z=f,pt=$,bt=function(r){return pt(r)?r:void 0},ge=function(r,e){return arguments.length<2?bt(Z[r]):Z[r]&&Z[r][e]},ht=b,Oe=ht({}.isPrototypeOf),gt=f,_r=gt.navigator,Dr=_r&&_r.userAgent,Se=Dr?String(Dr):"",Ee=f,Q=Se,Mr=Ee.process,Ar=Ee.Deno,Fr=Mr&&Mr.versions||Ar&&Ar.version,Br=Fr&&Fr.v8,d,W;Br&&(d=Br.split("."),W=d[0]>0&&d[0]<4?1:+(d[0]+d[1]));!W&&Q&&(d=Q.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=Q.match(/Chrome\/(\d+)/),d&&(W=+d[1])));var Te=W,Lr=Te,Ot=h,St=f,Et=St.String,we=!!Object.getOwnPropertySymbols&&!Ot(function(){var r=Symbol("symbol detection");return!Et(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&Lr&&Lr<41}),Tt=we,Ie=Tt&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wt=ge,It=$,mt=Oe,Rt=Ie,Pt=Object,me=Rt?function(r){return typeof r=="symbol"}:function(r){var e=wt("Symbol");return It(e)&&mt(e.prototype,Pt(r))},Ct=String,Tr=function(r){try{return Ct(r)}catch{return"Object"}},jt=$,Nt=Tr,_t=TypeError,D=function(r){if(jt(r))return r;throw new _t(Nt(r)+" is not a function")},Dt=D,Mt=Sr,wr=function(r,e){var t=r[e];return Mt(t)?void 0:Dt(t)},rr=O,er=$,tr=_,At=TypeError,Ft=function(r,e){var t,n;if(e==="string"&&er(t=r.toString)&&!tr(n=rr(t,r))||er(t=r.valueOf)&&!tr(n=rr(t,r))||e!=="string"&&er(t=r.toString)&&!tr(n=rr(t,r)))return n;throw new At("Can't convert object to primitive value")},Re={exports:{}},Ur=f,Bt=Object.defineProperty,Ir=function(r,e){try{Bt(Ur,r,{value:e,configurable:!0,writable:!0})}catch{Ur[r]=e}return e},Lt=f,Ut=Ir,Gr="__core-js_shared__",xr=Re.exports=Lt[Gr]||Ut(Gr,{});(xr.versions||(xr.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"});var mr=Re.exports,Kr=mr,Pe=function(r,e){return Kr[r]||(Kr[r]=e||{})},Gt=he,xt=Object,Kt=function(r){return xt(Gt(r))},Vt=b,kt=Kt,Wt=Vt({}.hasOwnProperty),S=Object.hasOwn||function(e,t){return Wt(kt(e),t)},zt=b,Yt=0,qt=Math.random(),Jt=zt(1 .toString),Ce=function(r){return"Symbol("+(r===void 0?"":r)+")_"+Jt(++Yt+qt,36)},Ht=f,Xt=Pe,Vr=S,Zt=Ce,Qt=we,rn=Ie,m=Ht.Symbol,nr=Xt("wks"),en=rn?m.for||m:m&&m.withoutSetter||Zt,E=function(r){return Vr(nr,r)||(nr[r]=Qt&&Vr(m,r)?m[r]:en("Symbol."+r)),nr[r]},tn=O,kr=_,Wr=me,nn=wr,an=Ft,on=E,vn=TypeError,un=on("toPrimitive"),cn=function(r,e){if(!kr(r)||Wr(r))return r;var t=nn(r,un),n;if(t){if(e===void 0&&(e="default"),n=tn(t,r,e),!kr(n)||Wr(n))return n;throw new vn("Can't convert object to primitive value")}return e===void 0&&(e="number"),an(r,e)},ln=cn,fn=me,je=function(r){var e=ln(r,"string");return fn(e)?e:e+""},sn=f,zr=_,yr=sn.document,yn=zr(yr)&&zr(yr.createElement),$n=function(r){return yn?yr.createElement(r):{}},dn=g,pn=h,bn=$n,Ne=!dn&&!pn(function(){return Object.defineProperty(bn("div"),"a",{get:function(){return 7}}).a!==7}),hn=g,gn=O,On=fe,Sn=$e,En=Er,Tn=je,wn=S,In=Ne,Yr=Object.getOwnPropertyDescriptor;gr.f=hn?Yr:function(e,t){if(e=En(e),t=Tn(t),In)try{return Yr(e,t)}catch{}if(wn(e,t))return Sn(!gn(On.f,e,t),e[t])};var J={},mn=g,Rn=h,Pn=mn&&Rn(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Cn=_,jn=String,Nn=TypeError,M=function(r){if(Cn(r))return r;throw new Nn(jn(r)+" is not an object")},_n=g,Dn=Ne,Mn=Pn,L=M,qr=je,An=TypeError,ar=Object.defineProperty,Fn=Object.getOwnPropertyDescriptor,or="enumerable",ir="configurable",vr="writable";J.f=_n?Mn?function(e,t,n){if(L(e),t=qr(t),L(n),typeof e=="function"&&t==="prototype"&&"value"in n&&vr in n&&!n[vr]){var a=Fn(e,t);a&&a[vr]&&(e[t]=n.value,n={configurable:ir in n?n[ir]:a[ir],enumerable:or in n?n[or]:a[or],writable:!1})}return ar(e,t,n)}:ar:function(e,t,n){if(L(e),t=qr(t),L(n),Dn)try{return ar(e,t,n)}catch{}if("get"in n||"set"in n)throw new An("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Bn=g,Ln=J,Un=$e,_e=Bn?function(r,e,t){return Ln.f(r,e,Un(1,t))}:function(r,e,t){return r[e]=t,r},De={exports:{}},$r=g,Gn=S,Me=Function.prototype,xn=$r&&Object.getOwnPropertyDescriptor,Rr=Gn(Me,"name"),Kn=Rr&&function(){}.name==="something",Vn=Rr&&(!$r||$r&&xn(Me,"name").configurable),kn={EXISTS:Rr,PROPER:Kn,CONFIGURABLE:Vn},Wn=b,zn=$,dr=mr,Yn=Wn(Function.toString);zn(dr.inspectSource)||(dr.inspectSource=function(r){return Yn(r)});var Ae=dr.inspectSource,qn=f,Jn=$,Jr=qn.WeakMap,Hn=Jn(Jr)&&/native code/.test(String(Jr)),Xn=Pe,Zn=Ce,Hr=Xn("keys"),Qn=function(r){return Hr[r]||(Hr[r]=Zn(r))},Fe={},ra=Hn,Be=f,ea=_,ta=_e,ur=S,cr=mr,na=Qn,aa=Fe,Xr="Object already initialized",pr=Be.TypeError,oa=Be.WeakMap,z,N,Y,ia=function(r){return Y(r)?N(r):z(r,{})},va=function(r){return function(e){var t;if(!ea(e)||(t=N(e)).type!==r)throw new pr("Incompatible receiver, "+r+" required");return t}};if(ra||cr.state){var p=cr.state||(cr.state=new oa);p.get=p.get,p.has=p.has,p.set=p.set,z=function(r,e){if(p.has(r))throw new pr(Xr);return e.facade=r,p.set(r,e),e},N=function(r){return p.get(r)||{}},Y=function(r){return p.has(r)}}else{var I=na("state");aa[I]=!0,z=function(r,e){if(ur(r,I))throw new pr(Xr);return e.facade=r,ta(r,I,e),e},N=function(r){return ur(r,I)?r[I]:{}},Y=function(r){return ur(r,I)}}var ua={set:z,get:N,has:Y,enforce:ia,getterFor:va},Pr=b,ca=h,la=$,U=S,br=g,fa=kn.CONFIGURABLE,sa=Ae,Le=ua,ya=Le.enforce,$a=Le.get,Zr=String,K=Object.defineProperty,da=Pr("".slice),pa=Pr("".replace),ba=Pr([].join),ha=br&&!ca(function(){return K(function(){},"length",{value:8}).length!==8}),ga=String(String).split("String"),Oa=De.exports=function(r,e,t){da(Zr(e),0,7)==="Symbol("&&(e="["+pa(Zr(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!U(r,"name")||fa&&r.name!==e)&&(br?K(r,"name",{value:e,configurable:!0}):r.name=e),ha&&t&&U(t,"arity")&&r.length!==t.arity&&K(r,"length",{value:t.arity});try{t&&U(t,"constructor")&&t.constructor?br&&K(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch{}var n=ya(r);return U(n,"source")||(n.source=ba(ga,typeof e=="string"?e:"")),r};Function.prototype.toString=Oa(function(){return la(this)&&$a(this).source||sa(this)},"toString");var Sa=De.exports,Ea=$,Ta=J,wa=Sa,Ia=Ir,ma=function(r,e,t,n){n||(n={});var a=n.enumerable,o=n.name!==void 0?n.name:e;if(Ea(t)&&wa(t,o,n),n.global)a?r[e]=t:Ia(e,t);else{try{n.unsafe?r[e]&&(a=!0):delete r[e]}catch{}a?r[e]=t:Ta.f(r,e,{value:t,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return r},Ue={},Ra=Math.ceil,Pa=Math.floor,Ca=Math.trunc||function(e){var t=+e;return(t>0?Pa:Ra)(t)},ja=Ca,Ge=function(r){var e=+r;return e!==e||e===0?0:ja(e)},Na=Ge,_a=Math.max,Da=Math.min,Ma=function(r,e){var t=Na(r);return t<0?_a(t+e,0):Da(t,e)},Aa=Ge,Fa=Math.min,Ba=function(r){var e=Aa(r);return e>0?Fa(e,9007199254740991):0},La=Ba,xe=function(r){return La(r.length)},Ua=Er,Ga=Ma,xa=xe,Qr=function(r){return function(e,t,n){var a=Ua(e),o=xa(a);if(o===0)return!r&&-1;var i=Ga(n,o),v;if(r&&t!==t){for(;o>i;)if(v=a[i++],v!==v)return!0}else for(;o>i;i++)if((r||i in a)&&a[i]===t)return r||i||0;return!r&&-1}},Ka={includes:Qr(!0),indexOf:Qr(!1)},Va=b,lr=S,ka=Er,Wa=Ka.indexOf,za=Fe,re=Va([].push),Ya=function(r,e){var t=ka(r),n=0,a=[],o;for(o in t)!lr(za,o)&&lr(t,o)&&re(a,o);for(;e.length>n;)lr(t,o=e[n++])&&(~Wa(a,o)||re(a,o));return a},qa=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ja=Ya,Ha=qa,Xa=Ha.concat("length","prototype");Ue.f=Object.getOwnPropertyNames||function(e){return Ja(e,Xa)};var Ke={};Ke.f=Object.getOwnPropertySymbols;var Za=ge,Qa=b,ro=Ue,eo=Ke,to=M,no=Qa([].concat),ao=Za("Reflect","ownKeys")||function(e){var t=ro.f(to(e)),n=eo.f;return n?no(t,n(e)):t},ee=S,oo=ao,io=gr,vo=J,uo=function(r,e,t){for(var n=oo(e),a=vo.f,o=io.f,i=0;i<n.length;i++){var v=n[i];!ee(r,v)&&!(t&&ee(t,v))&&a(r,v,o(e,v))}},co=h,lo=$,fo=/#|\.prototype\./,A=function(r,e){var t=yo[so(r)];return t===po?!0:t===$o?!1:lo(e)?co(e):!!e},so=A.normalize=function(r){return String(r).replace(fo,".").toLowerCase()},yo=A.data={},$o=A.NATIVE="N",po=A.POLYFILL="P",Ve=A,G=f,bo=gr.f,ho=_e,go=ma,Oo=Ir,So=uo,Eo=Ve,To=function(r,e){var t=r.target,n=r.global,a=r.stat,o,i,v,u,c,s;if(n?i=G:a?i=G[t]||Oo(t,{}):i=G[t]&&G[t].prototype,i)for(v in e){if(c=e[v],r.dontCallGetSet?(s=bo(i,v),u=s&&s.value):u=i[v],o=Eo(n?v:t+(a?".":"#")+v,r.forced),!o&&u!==void 0){if(typeof c==typeof u)continue;So(c,u)}(r.sham||u&&u.sham)&&ho(c,"sham",!0),go(i,v,c,r)}},ke={},te=D,wo=TypeError,Io=function(r){var e,t;this.promise=new r(function(n,a){if(e!==void 0||t!==void 0)throw new wo("Bad Promise constructor");e=n,t=a}),this.resolve=te(e),this.reject=te(t)};ke.f=function(r){return new Io(r)};var mo=function(r){try{return{error:!1,value:r()}}catch(e){return{error:!0,value:e}}},Ro=q,Po=b,Co=function(r){if(Ro(r)==="Function")return Po(r)},ne=Co,jo=D,No=Or,_o=ne(ne.bind),Do=function(r,e){return jo(r),e===void 0?r:No?_o(r,e):function(){return r.apply(e,arguments)}},We={},Mo=E,Ao=We,Fo=Mo("iterator"),Bo=Array.prototype,Lo=function(r){return r!==void 0&&(Ao.Array===r||Bo[Fo]===r)},Uo=E,Go=Uo("toStringTag"),ze={};ze[Go]="z";var xo=String(ze)==="[object z]",Ko=xo,Vo=$,V=q,ko=E,Wo=ko("toStringTag"),zo=Object,Yo=V(function(){return arguments}())==="Arguments",qo=function(r,e){try{return r[e]}catch{}},Jo=Ko?V:function(r){var e,t,n;return r===void 0?"Undefined":r===null?"Null":typeof(t=qo(e=zo(r),Wo))=="string"?t:Yo?V(e):(n=V(e))==="Object"&&Vo(e.callee)?"Arguments":n},Ho=Jo,ae=wr,Xo=Sr,Zo=We,Qo=E,ri=Qo("iterator"),Ye=function(r){if(!Xo(r))return ae(r,ri)||ae(r,"@@iterator")||Zo[Ho(r)]},ei=O,ti=D,ni=M,ai=Tr,oi=Ye,ii=TypeError,vi=function(r,e){var t=arguments.length<2?oi(r):e;if(ti(t))return ni(ei(t,r));throw new ii(ai(r)+" is not iterable")},ui=O,oe=M,ci=wr,li=function(r,e,t){var n,a;oe(r);try{if(n=ci(r,"return"),!n){if(e==="throw")throw t;return t}n=ui(n,r)}catch(o){a=!0,n=o}if(e==="throw")throw t;if(a)throw n;return oe(n),t},fi=Do,si=O,yi=M,$i=Tr,di=Lo,pi=xe,ie=Oe,bi=vi,hi=Ye,ve=li,gi=TypeError,k=function(r,e){this.stopped=r,this.result=e},ue=k.prototype,Oi=function(r,e,t){var n=t&&t.that,a=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),i=!!(t&&t.IS_ITERATOR),v=!!(t&&t.INTERRUPTED),u=fi(e,n),c,s,T,R,l,w,Cr,jr=function(y){return c&&ve(c,"normal",y),new k(!0,y)},Nr=function(y){return a?(yi(y),v?u(y[0],y[1],jr):u(y[0],y[1])):v?u(y,jr):u(y)};if(o)c=r.iterator;else if(i)c=r;else{if(s=hi(r),!s)throw new gi($i(r)+" is not iterable");if(di(s)){for(T=0,R=pi(r);R>T;T++)if(l=Nr(r[T]),l&&ie(ue,l))return l;return new k(!1)}c=bi(r,s)}for(w=o?r.next:c.next;!(Cr=si(w,c)).done;){try{l=Nr(Cr.value)}catch(y){ve(c,"throw",y)}if(typeof l=="object"&&l&&ie(ue,l))return l}return new k(!1)},Si=f,qe=Si.Promise,Ei=E,Je=Ei("iterator"),He=!1;try{var Ti=0,ce={next:function(){return{done:!!Ti++}},return:function(){He=!0}};ce[Je]=function(){return this},Array.from(ce,function(){throw 2})}catch{}var wi=function(r,e){try{if(!e&&!He)return!1}catch{return!1}var t=!1;try{var n={};n[Je]=function(){return{next:function(){return{done:t=!0}}}},r(n)}catch{}return t},C=f,Ii=Se,mi=q,x=function(r){return Ii.slice(0,r.length)===r},Ri=function(){return x("Bun/")?"BUN":x("Cloudflare-Workers")?"CLOUDFLARE":x("Deno/")?"DENO":x("Node.js/")?"NODE":C.Bun&&typeof Bun.version=="string"?"BUN":C.Deno&&typeof Deno.version=="object"?"DENO":mi(C.process)==="process"?"NODE":C.window&&C.document?"BROWSER":"REST"}(),Pi=f,j=qe,Ci=$,ji=Ve,Ni=Ae,_i=E,le=Ri,fr=Te;j&&j.prototype;var Di=_i("species"),hr=!1,Xe=Ci(Pi.PromiseRejectionEvent),Mi=ji("Promise",function(){var r=Ni(j),e=r!==String(j);if(!e&&fr===66)return!0;if(!fr||fr<51||!/native code/.test(r)){var t=new j(function(o){o(1)}),n=function(o){o(function(){},function(){})},a=t.constructor={};if(a[Di]=n,hr=t.then(function(){})instanceof n,!hr)return!0}return!e&&(le==="BROWSER"||le==="DENO")&&!Xe}),Ai={CONSTRUCTOR:Mi,REJECTION_EVENT:Xe,SUBCLASSING:hr},Fi=qe,Bi=wi,Li=Ai.CONSTRUCTOR,Ui=Li||!Bi(function(r){Fi.all(r).then(void 0,function(){})}),Gi=To,xi=O,Ki=D,Vi=ke,ki=mo,Wi=Oi,zi=Ui;Gi({target:"Promise",stat:!0,forced:zi},{allSettled:function(e){var t=this,n=Vi.f(t),a=n.resolve,o=n.reject,i=ki(function(){var v=Ki(t.resolve),u=[],c=0,s=1;Wi(e,function(T){var R=c++,l=!1;s++,xi(v,t,T).then(function(w){l||(l=!0,u[R]={status:"fulfilled",value:w},--s||a(u))},function(w){l||(l=!0,u[R]={status:"rejected",reason:w},--s||a(u))})}),--s||a(u)});return i.error&&o(i.value),n.promise}});export{F as c,Yi as g};
|
|
1
|
+
(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="2207c134-4c51-4796-8348-2aa6596f2a3e",r._sentryDebugIdIdentifier="sentry-dbid-2207c134-4c51-4796-8348-2aa6596f2a3e")}catch{}})();var Ze=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};Ze.SENTRY_RELEASE={id:"47272864a2e61a8396498ab026bb2760b4c451f8"};var F=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var P=function(r){return r&&r.Math===Math&&r},f=P(typeof globalThis=="object"&&globalThis)||P(typeof window=="object"&&window)||P(typeof self=="object"&&self)||P(typeof F=="object"&&F)||P(typeof F=="object"&&F)||function(){return this}()||Function("return this")(),gr={},h=function(r){try{return!!r()}catch{return!0}},Qe=h,g=!Qe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),rt=h,Or=!rt(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),et=Or,B=Function.prototype.call,O=et?B.bind(B):function(){return B.apply(B,arguments)},fe={},se={}.propertyIsEnumerable,ye=Object.getOwnPropertyDescriptor,tt=ye&&!se.call({1:2},1);fe.f=tt?function(e){var t=ye(this,e);return!!t&&t.enumerable}:se;var $e=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}},de=Or,pe=Function.prototype,sr=pe.call,nt=de&&pe.bind.bind(sr,sr),b=de?nt:function(r){return function(){return sr.apply(r,arguments)}},be=b,at=be({}.toString),ot=be("".slice),q=function(r){return ot(at(r),8,-1)},it=b,vt=h,ut=q,H=Object,ct=it("".split),lt=vt(function(){return!H("z").propertyIsEnumerable(0)})?function(r){return ut(r)==="String"?ct(r,""):H(r)}:H,Sr=function(r){return r==null},ft=Sr,st=TypeError,he=function(r){if(ft(r))throw new st("Can't call method on "+r);return r},yt=lt,$t=he,Er=function(r){return yt($t(r))},X=typeof document=="object"&&document.all,$=typeof X>"u"&&X!==void 0?function(r){return typeof r=="function"||r===X}:function(r){return typeof r=="function"},dt=$,_=function(r){return typeof r=="object"?r!==null:dt(r)},Z=f,pt=$,bt=function(r){return pt(r)?r:void 0},ge=function(r,e){return arguments.length<2?bt(Z[r]):Z[r]&&Z[r][e]},ht=b,Oe=ht({}.isPrototypeOf),gt=f,_r=gt.navigator,Dr=_r&&_r.userAgent,Se=Dr?String(Dr):"",Ee=f,Q=Se,Mr=Ee.process,Ar=Ee.Deno,Fr=Mr&&Mr.versions||Ar&&Ar.version,Br=Fr&&Fr.v8,d,W;Br&&(d=Br.split("."),W=d[0]>0&&d[0]<4?1:+(d[0]+d[1]));!W&&Q&&(d=Q.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=Q.match(/Chrome\/(\d+)/),d&&(W=+d[1])));var Te=W,Lr=Te,Ot=h,St=f,Et=St.String,we=!!Object.getOwnPropertySymbols&&!Ot(function(){var r=Symbol("symbol detection");return!Et(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&Lr&&Lr<41}),Tt=we,Ie=Tt&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wt=ge,It=$,mt=Oe,Rt=Ie,Pt=Object,me=Rt?function(r){return typeof r=="symbol"}:function(r){var e=wt("Symbol");return It(e)&&mt(e.prototype,Pt(r))},Ct=String,Tr=function(r){try{return Ct(r)}catch{return"Object"}},jt=$,Nt=Tr,_t=TypeError,D=function(r){if(jt(r))return r;throw new _t(Nt(r)+" is not a function")},Dt=D,Mt=Sr,wr=function(r,e){var t=r[e];return Mt(t)?void 0:Dt(t)},rr=O,er=$,tr=_,At=TypeError,Ft=function(r,e){var t,n;if(e==="string"&&er(t=r.toString)&&!tr(n=rr(t,r))||er(t=r.valueOf)&&!tr(n=rr(t,r))||e!=="string"&&er(t=r.toString)&&!tr(n=rr(t,r)))return n;throw new At("Can't convert object to primitive value")},Re={exports:{}},Ur=f,Bt=Object.defineProperty,Ir=function(r,e){try{Bt(Ur,r,{value:e,configurable:!0,writable:!0})}catch{Ur[r]=e}return e},Lt=f,Ut=Ir,Gr="__core-js_shared__",xr=Re.exports=Lt[Gr]||Ut(Gr,{});(xr.versions||(xr.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"});var mr=Re.exports,Kr=mr,Pe=function(r,e){return Kr[r]||(Kr[r]=e||{})},Gt=he,xt=Object,Kt=function(r){return xt(Gt(r))},Vt=b,kt=Kt,Wt=Vt({}.hasOwnProperty),S=Object.hasOwn||function(e,t){return Wt(kt(e),t)},zt=b,Yt=0,qt=Math.random(),Jt=zt(1 .toString),Ce=function(r){return"Symbol("+(r===void 0?"":r)+")_"+Jt(++Yt+qt,36)},Ht=f,Xt=Pe,Vr=S,Zt=Ce,Qt=we,rn=Ie,m=Ht.Symbol,nr=Xt("wks"),en=rn?m.for||m:m&&m.withoutSetter||Zt,E=function(r){return Vr(nr,r)||(nr[r]=Qt&&Vr(m,r)?m[r]:en("Symbol."+r)),nr[r]},tn=O,kr=_,Wr=me,nn=wr,an=Ft,on=E,vn=TypeError,un=on("toPrimitive"),cn=function(r,e){if(!kr(r)||Wr(r))return r;var t=nn(r,un),n;if(t){if(e===void 0&&(e="default"),n=tn(t,r,e),!kr(n)||Wr(n))return n;throw new vn("Can't convert object to primitive value")}return e===void 0&&(e="number"),an(r,e)},ln=cn,fn=me,je=function(r){var e=ln(r,"string");return fn(e)?e:e+""},sn=f,zr=_,yr=sn.document,yn=zr(yr)&&zr(yr.createElement),$n=function(r){return yn?yr.createElement(r):{}},dn=g,pn=h,bn=$n,Ne=!dn&&!pn(function(){return Object.defineProperty(bn("div"),"a",{get:function(){return 7}}).a!==7}),hn=g,gn=O,On=fe,Sn=$e,En=Er,Tn=je,wn=S,In=Ne,Yr=Object.getOwnPropertyDescriptor;gr.f=hn?Yr:function(e,t){if(e=En(e),t=Tn(t),In)try{return Yr(e,t)}catch{}if(wn(e,t))return Sn(!gn(On.f,e,t),e[t])};var J={},mn=g,Rn=h,Pn=mn&&Rn(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Cn=_,jn=String,Nn=TypeError,M=function(r){if(Cn(r))return r;throw new Nn(jn(r)+" is not an object")},_n=g,Dn=Ne,Mn=Pn,L=M,qr=je,An=TypeError,ar=Object.defineProperty,Fn=Object.getOwnPropertyDescriptor,or="enumerable",ir="configurable",vr="writable";J.f=_n?Mn?function(e,t,n){if(L(e),t=qr(t),L(n),typeof e=="function"&&t==="prototype"&&"value"in n&&vr in n&&!n[vr]){var a=Fn(e,t);a&&a[vr]&&(e[t]=n.value,n={configurable:ir in n?n[ir]:a[ir],enumerable:or in n?n[or]:a[or],writable:!1})}return ar(e,t,n)}:ar:function(e,t,n){if(L(e),t=qr(t),L(n),Dn)try{return ar(e,t,n)}catch{}if("get"in n||"set"in n)throw new An("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Bn=g,Ln=J,Un=$e,_e=Bn?function(r,e,t){return Ln.f(r,e,Un(1,t))}:function(r,e,t){return r[e]=t,r},De={exports:{}},$r=g,Gn=S,Me=Function.prototype,xn=$r&&Object.getOwnPropertyDescriptor,Rr=Gn(Me,"name"),Kn=Rr&&function(){}.name==="something",Vn=Rr&&(!$r||$r&&xn(Me,"name").configurable),kn={EXISTS:Rr,PROPER:Kn,CONFIGURABLE:Vn},Wn=b,zn=$,dr=mr,Yn=Wn(Function.toString);zn(dr.inspectSource)||(dr.inspectSource=function(r){return Yn(r)});var Ae=dr.inspectSource,qn=f,Jn=$,Jr=qn.WeakMap,Hn=Jn(Jr)&&/native code/.test(String(Jr)),Xn=Pe,Zn=Ce,Hr=Xn("keys"),Qn=function(r){return Hr[r]||(Hr[r]=Zn(r))},Fe={},ra=Hn,Be=f,ea=_,ta=_e,ur=S,cr=mr,na=Qn,aa=Fe,Xr="Object already initialized",pr=Be.TypeError,oa=Be.WeakMap,z,N,Y,ia=function(r){return Y(r)?N(r):z(r,{})},va=function(r){return function(e){var t;if(!ea(e)||(t=N(e)).type!==r)throw new pr("Incompatible receiver, "+r+" required");return t}};if(ra||cr.state){var p=cr.state||(cr.state=new oa);p.get=p.get,p.has=p.has,p.set=p.set,z=function(r,e){if(p.has(r))throw new pr(Xr);return e.facade=r,p.set(r,e),e},N=function(r){return p.get(r)||{}},Y=function(r){return p.has(r)}}else{var I=na("state");aa[I]=!0,z=function(r,e){if(ur(r,I))throw new pr(Xr);return e.facade=r,ta(r,I,e),e},N=function(r){return ur(r,I)?r[I]:{}},Y=function(r){return ur(r,I)}}var ua={set:z,get:N,has:Y,enforce:ia,getterFor:va},Pr=b,ca=h,la=$,U=S,br=g,fa=kn.CONFIGURABLE,sa=Ae,Le=ua,ya=Le.enforce,$a=Le.get,Zr=String,K=Object.defineProperty,da=Pr("".slice),pa=Pr("".replace),ba=Pr([].join),ha=br&&!ca(function(){return K(function(){},"length",{value:8}).length!==8}),ga=String(String).split("String"),Oa=De.exports=function(r,e,t){da(Zr(e),0,7)==="Symbol("&&(e="["+pa(Zr(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!U(r,"name")||fa&&r.name!==e)&&(br?K(r,"name",{value:e,configurable:!0}):r.name=e),ha&&t&&U(t,"arity")&&r.length!==t.arity&&K(r,"length",{value:t.arity});try{t&&U(t,"constructor")&&t.constructor?br&&K(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch{}var n=ya(r);return U(n,"source")||(n.source=ba(ga,typeof e=="string"?e:"")),r};Function.prototype.toString=Oa(function(){return la(this)&&$a(this).source||sa(this)},"toString");var Sa=De.exports,Ea=$,Ta=J,wa=Sa,Ia=Ir,ma=function(r,e,t,n){n||(n={});var a=n.enumerable,o=n.name!==void 0?n.name:e;if(Ea(t)&&wa(t,o,n),n.global)a?r[e]=t:Ia(e,t);else{try{n.unsafe?r[e]&&(a=!0):delete r[e]}catch{}a?r[e]=t:Ta.f(r,e,{value:t,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return r},Ue={},Ra=Math.ceil,Pa=Math.floor,Ca=Math.trunc||function(e){var t=+e;return(t>0?Pa:Ra)(t)},ja=Ca,Ge=function(r){var e=+r;return e!==e||e===0?0:ja(e)},Na=Ge,_a=Math.max,Da=Math.min,Ma=function(r,e){var t=Na(r);return t<0?_a(t+e,0):Da(t,e)},Aa=Ge,Fa=Math.min,Ba=function(r){var e=Aa(r);return e>0?Fa(e,9007199254740991):0},La=Ba,xe=function(r){return La(r.length)},Ua=Er,Ga=Ma,xa=xe,Qr=function(r){return function(e,t,n){var a=Ua(e),o=xa(a);if(o===0)return!r&&-1;var i=Ga(n,o),v;if(r&&t!==t){for(;o>i;)if(v=a[i++],v!==v)return!0}else for(;o>i;i++)if((r||i in a)&&a[i]===t)return r||i||0;return!r&&-1}},Ka={includes:Qr(!0),indexOf:Qr(!1)},Va=b,lr=S,ka=Er,Wa=Ka.indexOf,za=Fe,re=Va([].push),Ya=function(r,e){var t=ka(r),n=0,a=[],o;for(o in t)!lr(za,o)&&lr(t,o)&&re(a,o);for(;e.length>n;)lr(t,o=e[n++])&&(~Wa(a,o)||re(a,o));return a},qa=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ja=Ya,Ha=qa,Xa=Ha.concat("length","prototype");Ue.f=Object.getOwnPropertyNames||function(e){return Ja(e,Xa)};var Ke={};Ke.f=Object.getOwnPropertySymbols;var Za=ge,Qa=b,ro=Ue,eo=Ke,to=M,no=Qa([].concat),ao=Za("Reflect","ownKeys")||function(e){var t=ro.f(to(e)),n=eo.f;return n?no(t,n(e)):t},ee=S,oo=ao,io=gr,vo=J,uo=function(r,e,t){for(var n=oo(e),a=vo.f,o=io.f,i=0;i<n.length;i++){var v=n[i];!ee(r,v)&&!(t&&ee(t,v))&&a(r,v,o(e,v))}},co=h,lo=$,fo=/#|\.prototype\./,A=function(r,e){var t=yo[so(r)];return t===po?!0:t===$o?!1:lo(e)?co(e):!!e},so=A.normalize=function(r){return String(r).replace(fo,".").toLowerCase()},yo=A.data={},$o=A.NATIVE="N",po=A.POLYFILL="P",Ve=A,G=f,bo=gr.f,ho=_e,go=ma,Oo=Ir,So=uo,Eo=Ve,To=function(r,e){var t=r.target,n=r.global,a=r.stat,o,i,v,u,c,s;if(n?i=G:a?i=G[t]||Oo(t,{}):i=G[t]&&G[t].prototype,i)for(v in e){if(c=e[v],r.dontCallGetSet?(s=bo(i,v),u=s&&s.value):u=i[v],o=Eo(n?v:t+(a?".":"#")+v,r.forced),!o&&u!==void 0){if(typeof c==typeof u)continue;So(c,u)}(r.sham||u&&u.sham)&&ho(c,"sham",!0),go(i,v,c,r)}},ke={},te=D,wo=TypeError,Io=function(r){var e,t;this.promise=new r(function(n,a){if(e!==void 0||t!==void 0)throw new wo("Bad Promise constructor");e=n,t=a}),this.resolve=te(e),this.reject=te(t)};ke.f=function(r){return new Io(r)};var mo=function(r){try{return{error:!1,value:r()}}catch(e){return{error:!0,value:e}}},Ro=q,Po=b,Co=function(r){if(Ro(r)==="Function")return Po(r)},ne=Co,jo=D,No=Or,_o=ne(ne.bind),Do=function(r,e){return jo(r),e===void 0?r:No?_o(r,e):function(){return r.apply(e,arguments)}},We={},Mo=E,Ao=We,Fo=Mo("iterator"),Bo=Array.prototype,Lo=function(r){return r!==void 0&&(Ao.Array===r||Bo[Fo]===r)},Uo=E,Go=Uo("toStringTag"),ze={};ze[Go]="z";var xo=String(ze)==="[object z]",Ko=xo,Vo=$,V=q,ko=E,Wo=ko("toStringTag"),zo=Object,Yo=V(function(){return arguments}())==="Arguments",qo=function(r,e){try{return r[e]}catch{}},Jo=Ko?V:function(r){var e,t,n;return r===void 0?"Undefined":r===null?"Null":typeof(t=qo(e=zo(r),Wo))=="string"?t:Yo?V(e):(n=V(e))==="Object"&&Vo(e.callee)?"Arguments":n},Ho=Jo,ae=wr,Xo=Sr,Zo=We,Qo=E,ri=Qo("iterator"),Ye=function(r){if(!Xo(r))return ae(r,ri)||ae(r,"@@iterator")||Zo[Ho(r)]},ei=O,ti=D,ni=M,ai=Tr,oi=Ye,ii=TypeError,vi=function(r,e){var t=arguments.length<2?oi(r):e;if(ti(t))return ni(ei(t,r));throw new ii(ai(r)+" is not iterable")},ui=O,oe=M,ci=wr,li=function(r,e,t){var n,a;oe(r);try{if(n=ci(r,"return"),!n){if(e==="throw")throw t;return t}n=ui(n,r)}catch(o){a=!0,n=o}if(e==="throw")throw t;if(a)throw n;return oe(n),t},fi=Do,si=O,yi=M,$i=Tr,di=Lo,pi=xe,ie=Oe,bi=vi,hi=Ye,ve=li,gi=TypeError,k=function(r,e){this.stopped=r,this.result=e},ue=k.prototype,Oi=function(r,e,t){var n=t&&t.that,a=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),i=!!(t&&t.IS_ITERATOR),v=!!(t&&t.INTERRUPTED),u=fi(e,n),c,s,T,R,l,w,Cr,jr=function(y){return c&&ve(c,"normal",y),new k(!0,y)},Nr=function(y){return a?(yi(y),v?u(y[0],y[1],jr):u(y[0],y[1])):v?u(y,jr):u(y)};if(o)c=r.iterator;else if(i)c=r;else{if(s=hi(r),!s)throw new gi($i(r)+" is not iterable");if(di(s)){for(T=0,R=pi(r);R>T;T++)if(l=Nr(r[T]),l&&ie(ue,l))return l;return new k(!1)}c=bi(r,s)}for(w=o?r.next:c.next;!(Cr=si(w,c)).done;){try{l=Nr(Cr.value)}catch(y){ve(c,"throw",y)}if(typeof l=="object"&&l&&ie(ue,l))return l}return new k(!1)},Si=f,qe=Si.Promise,Ei=E,Je=Ei("iterator"),He=!1;try{var Ti=0,ce={next:function(){return{done:!!Ti++}},return:function(){He=!0}};ce[Je]=function(){return this},Array.from(ce,function(){throw 2})}catch{}var wi=function(r,e){try{if(!e&&!He)return!1}catch{return!1}var t=!1;try{var n={};n[Je]=function(){return{next:function(){return{done:t=!0}}}},r(n)}catch{}return t},C=f,Ii=Se,mi=q,x=function(r){return Ii.slice(0,r.length)===r},Ri=function(){return x("Bun/")?"BUN":x("Cloudflare-Workers")?"CLOUDFLARE":x("Deno/")?"DENO":x("Node.js/")?"NODE":C.Bun&&typeof Bun.version=="string"?"BUN":C.Deno&&typeof Deno.version=="object"?"DENO":mi(C.process)==="process"?"NODE":C.window&&C.document?"BROWSER":"REST"}(),Pi=f,j=qe,Ci=$,ji=Ve,Ni=Ae,_i=E,le=Ri,fr=Te;j&&j.prototype;var Di=_i("species"),hr=!1,Xe=Ci(Pi.PromiseRejectionEvent),Mi=ji("Promise",function(){var r=Ni(j),e=r!==String(j);if(!e&&fr===66)return!0;if(!fr||fr<51||!/native code/.test(r)){var t=new j(function(o){o(1)}),n=function(o){o(function(){},function(){})},a=t.constructor={};if(a[Di]=n,hr=t.then(function(){})instanceof n,!hr)return!0}return!e&&(le==="BROWSER"||le==="DENO")&&!Xe}),Ai={CONSTRUCTOR:Mi,REJECTION_EVENT:Xe,SUBCLASSING:hr},Fi=qe,Bi=wi,Li=Ai.CONSTRUCTOR,Ui=Li||!Bi(function(r){Fi.all(r).then(void 0,function(){})}),Gi=To,xi=O,Ki=D,Vi=ke,ki=mo,Wi=Oi,zi=Ui;Gi({target:"Promise",stat:!0,forced:zi},{allSettled:function(e){var t=this,n=Vi.f(t),a=n.resolve,o=n.reject,i=ki(function(){var v=Ki(t.resolve),u=[],c=0,s=1;Wi(e,function(T){var R=c++,l=!1;s++,xi(v,t,T).then(function(w){l||(l=!0,u[R]={status:"fulfilled",value:w},--s||a(u))},function(w){l||(l=!0,u[R]={status:"rejected",reason:w},--s||a(u))})}),--s||a(u)});return i.error&&o(i.value),n.promise}});export{F as c,Yi as g};
|
|
2
2
|
//# sourceMappingURL=vendor.core-js.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[a]="149a371a-e0af-41ed-9ded-d32945c905a2",c._sentryDebugIdIdentifier="sentry-dbid-149a371a-e0af-41ed-9ded-d32945c905a2")}catch{}})();var e={prefix:"far",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M160 368c26.5 0 48 21.5 48 48v16l72.5-54.4c8.3-6.2 18.4-9.6 28.8-9.6H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64c-8.8 0-16 7.2-16 16V352c0 8.8 7.2 16 16 16h96zm48 124l-.2 .2-5.1 3.8-17.1 12.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3V474.7v-6.4V468v-4V416H112 64c-35.3 0-64-28.7-64-64V64C0 28.7 28.7 0 64 0H448c35.3 0 64 28.7 64 64V352c0 35.3-28.7 64-64 64H309.3L208 492z"]},p=e,s={prefix:"far",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120z"]},t=s,h={prefix:"far",iconName:"laptop-code",icon:[640,512,[],"f5fc","M128 80H512c8.8 0 16 7.2 16 16V320h48V96c0-35.3-28.7-64-64-64H128C92.7 32 64 60.7 64 96V320h48V96c0-8.8 7.2-16 16-16zM50.7 400H589.3c-6.6 18.6-24.4 32-45.3 32H96c-20.9 0-38.7-13.4-45.3-32zM32 352c-17.7 0-32 14.3-32 32c0 53 43 96 96 96H544c53 0 96-43 96-96c0-17.7-14.3-32-32-32H32zM281 177c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-48 48c-9.4 9.4-9.4 24.6 0 33.9l48 48c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-31-31 31-31zM393 143c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l31 31-31 31c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l48-48c9.4-9.4 9.4-24.6 0-33.9l-48-48z"]},x={prefix:"far",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 88C0 74.7 10.7 64 24 64H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H24C10.7 112 0 101.3 0 88zM0 248c0-13.3 10.7-24 24-24H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24zM448 408c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24s10.7-24 24-24H424c13.3 0 24 10.7 24 24z"]},N={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M297.2 248.9C311.6 228.3 320 203.2 320 176c0-70.7-57.3-128-128-128S64 105.3 64 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H109c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C27.6 247.9 16 213.3 16 176C16 78.8 94.8 0 192 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H226.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM192 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H272v16c0 44.2-35.8 80-80 80z"]},d={prefix:"far",iconName:"face-frown-slight",icon:[512,512,[],"e376","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM334.4 385.9C319.2 369.5 293.2 352 256 352s-63.2 17.5-78.4 33.9c-9 9.7-24.2 10.4-33.9 1.4s-10.4-24.2-1.4-33.9c22-23.8 60-49.4 113.6-49.4s91.7 25.5 113.6 49.4c9 9.7 8.4 24.9-1.4 33.9s-24.9 8.4-33.9-1.4zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},g={prefix:"far",iconName:"users",icon:[640,512,[],"f0c0","M144 160A80 80 0 1 0 144 0a80 80 0 1 0 0 160zm368 0A80 80 0 1 0 512 0a80 80 0 1 0 0 160zM0 298.7C0 310.4 9.6 320 21.3 320H234.7c.2 0 .4 0 .7 0c-26.6-23.5-43.3-57.8-43.3-96c0-7.6 .7-15 1.9-22.3c-13.6-6.3-28.7-9.7-44.6-9.7H106.7C47.8 192 0 239.8 0 298.7zM405.3 320H618.7c11.8 0 21.3-9.6 21.3-21.3C640 239.8 592.2 192 533.3 192H490.7c-15.9 0-31 3.5-44.6 9.7c1.3 7.2 1.9 14.7 1.9 22.3c0 38.2-16.8 72.5-43.3 96c.2 0 .4 0 .7 0zM320 176a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm0 144a96 96 0 1 0 0-192 96 96 0 1 0 0 192zm-58.7 80H378.7c39.8 0 73.2 27.2 82.6 64H178.7c9.5-36.8 42.9-64 82.6-64zm0-48C187.7 352 128 411.7 128 485.3c0 14.7 11.9 26.7 26.7 26.7H485.3c14.7 0 26.7-11.9 26.7-26.7C512 411.7 452.3 352 378.7 352H261.3z"]},u={prefix:"far",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zm151 118.3C226 97.7 269.5 80 320 80c65.2 0 118.8 29.6 159.9 67.7C518.4 183.5 545 226 558.6 256c-12.6 28-36.6 66.8-70.9 100.9l-53.8-42.2c9.1-17.6 14.2-37.5 14.2-58.7c0-70.7-57.3-128-128-128c-32.2 0-61.7 11.9-84.2 31.5l-46.1-36.1zM394.9 284.2l-81.5-63.9c4.2-8.5 6.6-18.2 6.6-28.3c0-5.5-.7-10.9-2-16c.7 0 1.3 0 2 0c44.2 0 80 35.8 80 80c0 9.9-1.8 19.4-5.1 28.2zm9.4 130.3C378.8 425.4 350.7 432 320 432c-65.2 0-118.8-29.6-159.9-67.7C121.6 328.5 95 286 81.4 256c8.3-18.4 21.5-41.5 39.4-64.8L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5l-41.9-33zM192 256c0 70.7 57.3 128 128 128c13.3 0 26.1-2 38.2-5.8L302 334c-23.5-5.4-43.1-21.2-53.7-42.3l-56.1-44.2c-.2 2.8-.3 5.6-.3 8.5z"]},A={prefix:"far",iconName:"stopwatch",icon:[448,512,[9201],"f2f2","M144 24c0-13.3 10.7-24 24-24H280c13.3 0 24 10.7 24 24s-10.7 24-24 24H248V97.4c43.4 5 82.8 23.3 113.8 50.9L391 119c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-31 31c24 33.9 38.1 75.3 38.1 120c0 114.9-93.1 208-208 208S16 418.9 16 304C16 197.2 96.4 109.3 200 97.4V48H168c-13.3 0-24-10.7-24-24zm80 440a160 160 0 1 0 0-320 160 160 0 1 0 0 320zm24-248V320c0 13.3-10.7 24-24 24s-24-10.7-24-24V216c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},b={prefix:"far",iconName:"face-grin-wide",icon:[512,512,[128515,"grin-alt"],"f581","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm349.5 52.4c18.7-4.4 35.9 12 25.5 28.1C350.4 374.6 306.3 400 255.9 400s-94.5-25.4-119.1-63.5c-10.4-16.1 6.8-32.5 25.5-28.1c28.9 6.8 60.5 10.5 93.6 10.5s64.7-3.7 93.6-10.5zM224 192c0 35.3-14.3 64-32 64s-32-28.7-32-64s14.3-64 32-64s32 28.7 32 64zm96 64c-17.7 0-32-28.7-32-64s14.3-64 32-64s32 28.7 32 64s-14.3 64-32 64z"]},y={prefix:"far",iconName:"angle-right",icon:[320,512,[8250],"f105","M273 239c9.4 9.4 9.4 24.6 0 33.9L113 433c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l143-143L79 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L273 239z"]},w={prefix:"far",iconName:"user",icon:[448,512,[128100,62144],"f007","M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z"]},k={prefix:"far",iconName:"globe",icon:[512,512,[127760],"f0ac","M256 464c7.4 0 27-7.2 47.6-48.4c8.8-17.7 16.4-39.2 22-63.6H186.4c5.6 24.4 13.2 45.9 22 63.6C229 456.8 248.6 464 256 464zM178.5 304h155c1.6-15.3 2.5-31.4 2.5-48s-.9-32.7-2.5-48h-155c-1.6 15.3-2.5 31.4-2.5 48s.9 32.7 2.5 48zm7.9-144H325.6c-5.6-24.4-13.2-45.9-22-63.6C283 55.2 263.4 48 256 48s-27 7.2-47.6 48.4c-8.8 17.7-16.4 39.2-22 63.6zm195.3 48c1.5 15.5 2.2 31.6 2.2 48s-.8 32.5-2.2 48h76.7c3.6-15.4 5.6-31.5 5.6-48s-1.9-32.6-5.6-48H381.8zm58.8-48c-21.4-41.1-56.1-74.1-98.4-93.4c14.1 25.6 25.3 57.5 32.6 93.4h65.9zm-303.3 0c7.3-35.9 18.5-67.7 32.6-93.4c-42.3 19.3-77 52.3-98.4 93.4h65.9zM53.6 208c-3.6 15.4-5.6 31.5-5.6 48s1.9 32.6 5.6 48h76.7c-1.5-15.5-2.2-31.6-2.2-48s.8-32.5 2.2-48H53.6zM342.1 445.4c42.3-19.3 77-52.3 98.4-93.4H374.7c-7.3 35.9-18.5 67.7-32.6 93.4zm-172.2 0c-14.1-25.6-25.3-57.5-32.6-93.4H71.4c21.4 41.1 56.1 74.1 98.4 93.4zM256 512A256 256 0 1 1 256 0a256 256 0 1 1 0 512z"]},S={prefix:"far",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M385.1 419.1L92.9 126.9C64.8 162.3 48 207.2 48 256c0 114.9 93.1 208 208 208c48.8 0 93.7-16.8 129.1-44.9zm33.9-33.9C447.2 349.7 464 304.8 464 256c0-114.9-93.1-208-208-208c-48.8 0-93.7 16.8-129.1 44.9L419.1 385.1zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},P={prefix:"far",iconName:"snooze",icon:[448,512,[128164,"zzz"],"f880","M184 0c-13.3 0-24 10.7-24 24s10.7 24 24 24h59.1l-77.2 88.2c-6.2 7.1-7.7 17.1-3.8 25.7S174.6 176 184 176H296c13.3 0 24-10.7 24-24s-10.7-24-24-24H236.9l77.2-88.2c6.2-7.1 7.7-17.1 3.8-25.7S305.4 0 296 0H184zM312 224c-13.3 0-24 10.7-24 24s10.7 24 24 24h62.9L293.1 377.3c-5.6 7.2-6.6 17-2.6 25.3s12.4 13.5 21.6 13.5H424c13.3 0 24-10.7 24-24s-10.7-24-24-24H361.1l81.9-105.3c5.6-7.2 6.6-17 2.6-25.3s-12.4-13.5-21.6-13.5H312zM24 224c-13.3 0-24 10.7-24 24s10.7 24 24 24H152.6L4.6 473.8c-5.3 7.3-6.1 17-2.1 25S15 512 24 512H200c13.3 0 24-10.7 24-24s-10.7-24-24-24H71.4l148-201.8c5.3-7.3 6.1-17 2.1-25S209 224 200 224H24z"]},r={prefix:"far",iconName:"messages",icon:[640,512,["comments-alt"],"f4b6","M48 72c0-13.3 10.7-24 24-24H344c13.3 0 24 10.7 24 24V248c0 13.3-10.7 24-24 24H216c-4.7 0-9.4 1.4-13.3 4L144 315.2V296c0-13.3-10.7-24-24-24H72c-13.3 0-24-10.7-24-24V72zM72 0C32.2 0 0 32.2 0 72V248c0 39.8 32.2 72 72 72H96v40c0 8.9 4.9 17 12.7 21.2s17.3 3.7 24.6-1.2l90-60H344c39.8 0 72-32.2 72-72V72c0-39.8-32.2-72-72-72H72zM256 376c0 39.8 32.2 72 72 72h88.7l90 60c7.4 4.9 16.8 5.4 24.6 1.2S544 496.9 544 488V448h24c39.8 0 72-32.2 72-72V200c0-39.8-32.2-72-72-72H448v48H568c13.3 0 24 10.7 24 24V376c0 13.3-10.7 24-24 24H520c-13.3 0-24 10.7-24 24v19.2L437.3 404c-3.9-2.6-8.6-4-13.3-4H328c-13.3 0-24-10.7-24-24V352H256v24z"]},F=r,T={prefix:"far",iconName:"volume",icon:[576,512,[128265,"volume-medium"],"f6a8","M191.9 201.9L304 102.3V409.7L191.9 310.1c-4.4-3.9-10.1-6.1-15.9-6.1H88c-4.4 0-8-3.6-8-8V216c0-4.4 3.6-8 8-8h88c5.9 0 11.6-2.2 15.9-6.1zM322.2 32c-7.3 0-14.3 2.7-19.8 7.5L166.9 160H88c-30.9 0-56 25.1-56 56v80c0 30.9 25.1 56 56 56h78.9L302.4 472.5c5.5 4.8 12.5 7.5 19.8 7.5c16.5 0 29.8-13.3 29.8-29.8V61.8C352 45.3 338.7 32 322.2 32zm182.9 75c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C507.3 170.7 528 210.9 528 256s-20.7 85.3-53.2 111.8c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5c43.2-35.2 70.9-88.9 70.9-149s-27.7-113.8-70.9-149zm-60.5 74.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C425.1 227.6 432 241 432 256s-6.9 28.4-17.7 37.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C466.1 312.9 480 286.1 480 256s-13.9-56.9-35.4-74.5z"]},f={prefix:"far",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c7.6-4.2 16.8-4.1 24.3 .5l144 88c7.1 4.4 11.5 12.1 11.5 20.5s-4.4 16.1-11.5 20.5l-144 88c-7.4 4.5-16.7 4.7-24.3 .5s-12.3-12.2-12.3-20.9V168c0-8.7 4.7-16.7 12.3-20.9z"]},B=f,i={prefix:"far",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},D=i,l={prefix:"far",iconName:"circle-stop",icon:[512,512,[62094,"stop-circle"],"f28d","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm192-96H320c17.7 0 32 14.3 32 32V320c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32z"]},E=l,I={prefix:"far",iconName:"filter",icon:[512,512,[],"f0b0","M0 73.7C0 50.7 18.7 32 41.7 32H470.3c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5V447.7c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3V304.5L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2v68.4l64 50.8V296c0-5.5 1.9-10.9 5.4-15.2L457 80H55z"]},U={prefix:"far",iconName:"code",icon:[640,512,[],"f121","M399.1 1.1c-12.7-3.9-26.1 3.1-30 15.8l-144 464c-3.9 12.7 3.1 26.1 15.8 30s26.1-3.1 30-15.8l144-464c3.9-12.7-3.1-26.1-15.8-30zm71.4 118.5c-9.1 9.7-8.6 24.9 1.1 33.9L580.9 256 471.6 358.5c-9.7 9.1-10.2 24.3-1.1 33.9s24.3 10.2 33.9 1.1l128-120c4.8-4.5 7.6-10.9 7.6-17.5s-2.7-13-7.6-17.5l-128-120c-9.7-9.1-24.9-8.6-33.9 1.1zm-301 0c-9.1-9.7-24.3-10.2-33.9-1.1l-128 120C2.7 243 0 249.4 0 256s2.7 13 7.6 17.5l128 120c9.7 9.1 24.9 8.6 33.9-1.1s8.6-24.9-1.1-33.9L59.1 256 168.4 153.5c9.7-9.1 10.2-24.3 1.1-33.9z"]},n={prefix:"far",iconName:"arrow-up-right-from-square",icon:[512,512,["external-link"],"f08e","M304 24c0 13.3 10.7 24 24 24H430.1L207 271c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l223-223V184c0 13.3 10.7 24 24 24s24-10.7 24-24V24c0-13.3-10.7-24-24-24H328c-13.3 0-24 10.7-24 24zM72 32C32.2 32 0 64.2 0 104V440c0 39.8 32.2 72 72 72H408c39.8 0 72-32.2 72-72V312c0-13.3-10.7-24-24-24s-24 10.7-24 24V440c0 13.3-10.7 24-24 24H72c-13.3 0-24-10.7-24-24V104c0-13.3 10.7-24 24-24H200c13.3 0 24-10.7 24-24s-10.7-24-24-24H72z"]},q=n,R={prefix:"far",iconName:"arrow-right",icon:[448,512,[8594],"f061","M440.6 273.4c4.7-4.5 7.4-10.8 7.4-17.4s-2.7-12.8-7.4-17.4l-176-168c-9.6-9.2-24.8-8.8-33.9 .8s-8.8 24.8 .8 33.9L364.1 232 24 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l340.1 0L231.4 406.6c-9.6 9.2-9.9 24.3-.8 33.9s24.3 9.9 33.9 .8l176-168z"]},G={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},o={prefix:"far",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},_=o,X={prefix:"far",iconName:"typewriter",icon:[512,512,[],"f8e7","M128 64c0-8.8 7.2-16 16-16H335.4c4.2 0 8.3 1.7 11.3 4.7l32.6 32.6c3 3 4.7 7.1 4.7 11.3V160h48V96.6c0-17-6.7-33.3-18.7-45.3L380.7 18.7C368.7 6.7 352.4 0 335.4 0H144C108.7 0 80 28.7 80 64v96h48V64zM0 224v32c0 17.7 14.3 32 32 32V448c0 35.3 28.7 64 64 64H416c35.3 0 64-28.7 64-64V288c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32H365.3c-8.5 0-16.6 3.4-22.6 9.4l-13.3 13.3c-6 6-14.1 9.4-22.6 9.4H205.3c-8.5 0-16.6-3.4-22.6-9.4l-13.3-13.3c-6-6-14.1-9.4-22.6-9.4H32c-17.7 0-32 14.3-32 32zm80 64H432V448c0 8.8-7.2 16-16 16H96c-8.8 0-16-7.2-16-16V288zm48 112v16c0 8.8 7.2 16 16 16H368c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16zm40-60a20 20 0 1 0 -40 0 20 20 0 1 0 40 0zm52 20a20 20 0 1 0 0-40 20 20 0 1 0 0 40zm92-20a20 20 0 1 0 -40 0 20 20 0 1 0 40 0zm52 20a20 20 0 1 0 0-40 20 20 0 1 0 0 40z"]},Q={prefix:"far",iconName:"eye",icon:[576,512,[128065],"f06e","M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z"]},W={prefix:"far",iconName:"pen",icon:[512,512,[128394],"f304","M36.4 360.9L13.4 439 1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1L73 498.6l78.1-23c12.4-3.6 23.7-9.9 33.4-18.4c1.4-1.2 2.7-2.5 4-3.8L492.7 149.3c21.9-21.9 24.6-55.6 8.2-80.5c-2.3-3.5-5.1-6.9-8.2-10L453.3 19.3c-25-25-65.5-25-90.5 0L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4zm46 13.5c1.7-5.6 4.5-10.8 8.4-15.2c.6-.6 1.1-1.2 1.7-1.8L321 129 383 191 154.6 419.5c-4.7 4.7-10.6 8.2-17 10.1l-23.4 6.9L59.4 452.6l16.1-54.8 6.9-23.4z"]},j={prefix:"far",iconName:"hand-pointer",icon:[448,512,[],"f25a","M160 64c0-8.8 7.2-16 16-16s16 7.2 16 16V200c0 10.3 6.6 19.5 16.4 22.8s20.6-.1 26.8-8.3c3-3.9 7.6-6.4 12.8-6.4c8.8 0 16 7.2 16 16c0 10.3 6.6 19.5 16.4 22.8s20.6-.1 26.8-8.3c3-3.9 7.6-6.4 12.8-6.4c7.8 0 14.3 5.6 15.7 13c1.6 8.2 7.3 15.1 15.1 18s16.7 1.6 23.3-3.6c2.7-2.1 6.1-3.4 9.9-3.4c8.8 0 16 7.2 16 16l0 16V392c0 39.8-32.2 72-72 72H272 212.3h-.9c-37.4 0-72.4-18.7-93.2-49.9L50.7 312.9c-4.9-7.4-2.9-17.3 4.4-22.2s17.3-2.9 22.2 4.4L116 353.2c5.9 8.8 16.8 12.7 26.9 9.7s17-12.4 17-23V320 64zM176 0c-35.3 0-64 28.7-64 64V261.7C91.2 238 55.5 232.8 28.5 250.7C-.9 270.4-8.9 310.1 10.8 339.5L78.3 440.8c29.7 44.5 79.6 71.2 133.1 71.2h.9H272h56c66.3 0 120-53.7 120-120V288l0-16c0-35.3-28.7-64-64-64c-4.5 0-8.8 .5-13 1.3c-11.7-15.4-30.2-25.3-51-25.3c-6.9 0-13.5 1.1-19.7 3.1C288.7 170.7 269.6 160 248 160c-2.7 0-5.4 .2-8 .5V64c0-35.3-28.7-64-64-64zm48 304c0-8.8-7.2-16-16-16s-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304zm48-16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304c0-8.8-7.2-16-16-16zm80 16c0-8.8-7.2-16-16-16s-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304z"]},J={prefix:"far",iconName:"spinner-third",icon:[512,512,[],"f3f4","M457 372c11.5 6.6 26.3 2.7 31.8-9.3C503.7 330.2 512 294.1 512 256C512 122.7 410.1 13.2 280 1.1C266.8-.1 256 10.7 256 24v0c0 13.3 10.8 23.9 24 25.4C383.5 61.2 464 149.2 464 256c0 29.3-6.1 57.3-17 82.6c-5.3 12.2-1.5 26.8 10 33.5v0z"]},K={prefix:"far",iconName:"phone",icon:[512,512,[128222,128379],"f095","M375.8 275.2c-16.4-7-35.4-2.4-46.7 11.4l-33.2 40.6c-46-26.7-84.4-65.1-111.1-111.1L225.3 183c13.8-11.3 18.5-30.3 11.4-46.7l-48-112C181.2 6.7 162.3-3.1 143.6 .9l-112 24C13.2 28.8 0 45.1 0 64v0C0 295.2 175.2 485.6 400.1 509.5c9.8 1 19.6 1.8 29.6 2.2c0 0 0 0 0 0c0 0 .1 0 .1 0c6.1 .2 12.1 .4 18.2 .4l0 0c18.9 0 35.2-13.2 39.1-31.6l24-112c4-18.7-5.8-37.6-23.4-45.1l-112-48zM441.5 464C225.8 460.5 51.5 286.2 48.1 70.5l99.2-21.3 43 100.4L154.4 179c-18.2 14.9-22.9 40.8-11.1 61.2c30.9 53.3 75.3 97.7 128.6 128.6c20.4 11.8 46.3 7.1 61.2-11.1l29.4-35.9 100.4 43L441.5 464zM48 64v0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0s0 0 0 0"]},O={prefix:"far",iconName:"arrow-left",icon:[448,512,[8592],"f060","M7.4 273.4C2.7 268.8 0 262.6 0 256s2.7-12.8 7.4-17.4l176-168c9.6-9.2 24.8-8.8 33.9 .8s8.8 24.8-.8 33.9L83.9 232 424 232c13.3 0 24 10.7 24 24s-10.7 24-24 24L83.9 280 216.6 406.6c9.6 9.2 9.9 24.3 .8 33.9s-24.3 9.9-33.9 .8l-176-168z"]},Y={prefix:"far",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M64 112c-8.8 0-16 7.2-16 16v22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1V128c0-8.8-7.2-16-16-16H64zM48 212.2V384c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V212.2L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"]},z={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8V248c0-13.3-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h24v64H216zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Z=z,$={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},c2={prefix:"far",iconName:"face-meh",icon:[512,512,[128528,"meh"],"f11a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM176.4 240a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm192-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM184 328c-13.3 0-24 10.7-24 24s10.7 24 24 24H328c13.3 0 24-10.7 24-24s-10.7-24-24-24H184z"]},a2={prefix:"far",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M321.7 0c19.1 0 32.9 18.3 27.6 36.6L295.8 224h85.2c19.3 0 34.9 15.6 34.9 34.9c0 10.3-4.5 20-12.3 26.6L144.9 505.2c-5.2 4.4-11.8 6.8-18.6 6.8c-19.1 0-32.9-18.3-27.6-36.6L152.2 288H65.7C47.1 288 32 272.9 32 254.3c0-9.9 4.3-19.2 11.8-25.6L303.1 6.9C308.3 2.4 314.9 0 321.7 0zM285.6 85L104.4 240H184c7.5 0 14.6 3.5 19.2 9.5s6 13.8 3.9 21L162.3 427.5 345.5 272H264c-7.5 0-14.6-3.5-19.2-9.5s-6-13.8-3.9-21L285.6 85z"]},m={prefix:"far",iconName:"screen-users",icon:[640,512,["users-class"],"f63d","M80 320a16 16 0 1 1 32 0 16 16 0 1 1 -32 0zm80 0A64 64 0 1 0 32 320a64 64 0 1 0 128 0zM64 416c-35.3 0-64 28.7-64 64c0 17.7 14.3 32 32 32H160c17.7 0 32-14.3 32-32c0-35.3-28.7-64-64-64H64zm240-96a16 16 0 1 1 32 0 16 16 0 1 1 -32 0zm80 0a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zm-96 96c-35.3 0-64 28.7-64 64c0 17.7 14.3 32 32 32H384c17.7 0 32-14.3 32-32c0-35.3-28.7-64-64-64H288zM544 304a16 16 0 1 1 0 32 16 16 0 1 1 0-32zm0 80a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-96 96c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32c0-35.3-28.7-64-64-64H512c-35.3 0-64 28.7-64 64zM544 48H96c-8.8 0-16 7.2-16 16V225.3c-18.3 3.1-34.8 11.3-48 23.1V64C32 28.7 60.7 0 96 0H544c35.3 0 64 28.7 64 64V248.4c-13.2-11.8-29.7-20.1-48-23.1V64c0-8.8-7.2-16-16-16z"]},e2=m,H={prefix:"far",iconName:"brackets-square",icon:[448,512,["brackets"],"f7e9","M56 32C25.1 32 0 57.1 0 88V424c0 30.9 25.1 56 56 56h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H56c-4.4 0-8-3.6-8-8V88c0-4.4 3.6-8 8-8h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H56zm336 0H328c-13.3 0-24 10.7-24 24s10.7 24 24 24h64c4.4 0 8 3.6 8 8V424c0 4.4-3.6 8-8 8H328c-13.3 0-24 10.7-24 24s10.7 24 24 24h64c30.9 0 56-25.1 56-56V88c0-30.9-25.1-56-56-56z"]},s2=H,r2={prefix:"far",iconName:"angle-down",icon:[448,512,[8964],"f107","M241 337c-9.4 9.4-24.6 9.4-33.9 0L47 177c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l143 143L367 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L241 337z"]},f2={prefix:"far",iconName:"thumbs-down",icon:[512,512,[128078,61576],"f165","M323.8 477.2c-38.2 10.9-78.1-11.2-89-49.4l-5.7-20c-3.7-13-10.4-25-19.5-35l-51.3-56.4c-8.9-9.8-8.2-25 1.6-33.9s25-8.2 33.9 1.6l51.3 56.4c14.1 15.5 24.4 34 30.1 54.1l5.7 20c3.6 12.7 16.9 20.1 29.7 16.5s20.1-16.9 16.5-29.7l-5.7-20c-5.7-19.9-14.7-38.7-26.6-55.5c-5.2-7.3-5.8-16.9-1.7-24.9s12.3-13 21.3-13L448 288c8.8 0 16-7.2 16-16c0-6.8-4.3-12.7-10.4-15c-7.4-2.8-13-9-14.9-16.7s.1-15.8 5.3-21.7c2.5-2.8 4-6.5 4-10.6c0-7.8-5.6-14.3-13-15.7c-8.2-1.6-15.1-7.3-18-15.2s-1.6-16.7 3.6-23.3c2.1-2.7 3.4-6.1 3.4-9.9c0-6.7-4.2-12.6-10.2-14.9c-11.5-4.5-17.7-16.9-14.4-28.8c.4-1.3 .6-2.8 .6-4.3c0-8.8-7.2-16-16-16H286.5c-12.6 0-25 3.7-35.5 10.7l-61.7 41.1c-11 7.4-25.9 4.4-33.3-6.7s-4.4-25.9 6.7-33.3l61.7-41.1c18.4-12.3 40-18.8 62.1-18.8H384c34.7 0 62.9 27.6 64 62c14.6 11.7 24 29.7 24 50c0 4.5-.5 8.8-1.3 13c15.4 11.7 25.3 30.2 25.3 51c0 6.5-1 12.8-2.8 18.7C504.8 238.3 512 254.3 512 272c0 35.3-28.6 64-64 64l-92.3 0c4.7 10.4 8.7 21.2 11.8 32.2l5.7 20c10.9 38.2-11.2 78.1-49.4 89zM32 384c-17.7 0-32-14.3-32-32V128c0-17.7 14.3-32 32-32H96c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H32z"]},i2={prefix:"far",iconName:"bullseye-pointer",icon:[512,512,[],"f649","M256 464c114.9 0 208-93.1 208-208s-93.1-208-208-208S48 141.1 48 256c0 5.5 .2 10.9 .6 16.3L1.8 286.1C.6 276.2 0 266.2 0 256C0 114.6 114.6 0 256 0S512 114.6 512 256s-114.6 256-256 256c-10.2 0-20.2-.6-30.1-1.8l13.8-46.9c5.4 .4 10.8 .6 16.3 .6zm-2.4-48l14.3-48.6C324.2 361.4 368 313.8 368 256c0-61.9-50.1-112-112-112c-57.8 0-105.4 43.8-111.4 100.1L96 258.4c0-.8 0-1.6 0-2.4c0-88.4 71.6-160 160-160s160 71.6 160 160s-71.6 160-160 160c-.8 0-1.6 0-2.4 0zM39 308.5l204.8-60.2c12.1-3.6 23.4 7.7 19.9 19.9L203.5 473c-4.1 13.9-23.2 15.6-29.7 2.6l-28.7-57.3c-.7-1.3-1.5-2.6-2.5-3.7l-88 88c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l88-88c-1.1-1-2.3-1.9-3.7-2.5L36.4 338.2c-13-6.5-11.3-25.6 2.6-29.7z"]},l2={prefix:"far",iconName:"play",icon:[384,512,[9654],"f04b","M48 432L336 256 48 80l0 352zM24.5 38.1C39.7 29.6 58.2 30 73 39L361 215c14.3 8.7 23 24.2 23 41s-8.7 32.2-23 41L73 473c-14.8 9.1-33.4 9.4-48.5 .9S0 449.4 0 432V80C0 62.6 9.4 46.6 24.5 38.1z"]},M={prefix:"far",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1L505 471c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L337.1 371.1z"]},n2=M,o2={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},v={prefix:"far",iconName:"list-check",icon:[512,512,["tasks"],"f0ae","M153.8 72.1c8.9-9.9 8.1-25-1.8-33.9s-25-8.1-33.9 1.8L63.1 101.1 41 79C31.6 69.7 16.4 69.7 7 79s-9.4 24.6 0 33.9l40 40c4.7 4.7 11 7.2 17.6 7s12.8-3 17.2-7.9l72-80zm0 160c8.9-9.9 8.1-25-1.8-33.9s-25-8.1-33.9 1.8L63.1 261.1 41 239c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l40 40c4.7 4.7 11 7.2 17.6 7s12.8-3 17.2-7.9l72-80zM216 120H488c13.3 0 24-10.7 24-24s-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24zM192 256c0 13.3 10.7 24 24 24H488c13.3 0 24-10.7 24-24s-10.7-24-24-24H216c-13.3 0-24 10.7-24 24zM160 416c0 13.3 10.7 24 24 24H488c13.3 0 24-10.7 24-24s-10.7-24-24-24H184c-13.3 0-24 10.7-24 24zm-64 0a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},z2=v,m2={prefix:"far",iconName:"megaphone",icon:[576,512,[128227],"f675","M552 32c-13.3 0-24 10.7-24 24v5.7L48 192.6V184c0-13.3-10.7-24-24-24s-24 10.7-24 24v21.7V224v64 18.3V328c0 13.3 10.7 24 24 24s24-10.7 24-24v-8.6l117.6 32.1C162 361.7 160 372.6 160 384c0 53 43 96 96 96c46.9 0 86-33.6 94.3-78.1L528 450.3V456c0 13.3 10.7 24 24 24s24-10.7 24-24V432 80 56c0-13.3-10.7-24-24-24zM528 400.6L48 269.7V242.3L528 111.4V400.6zM208 384c0-7.1 1.5-13.8 4.3-19.8l91.5 24.9c-2.6 24.1-23 42.8-47.7 42.8c-26.5 0-48-21.5-48-48z"]},H2={prefix:"far",iconName:"volume-xmark",icon:[576,512,["volume-mute","volume-times"],"f6a9","M159.9 201.9L272 102.3V409.7L159.9 310.1c-4.4-3.9-10.1-6.1-15.9-6.1H56c-4.4 0-8-3.6-8-8V216c0-4.4 3.6-8 8-8h88c5.9 0 11.6-2.2 15.9-6.1zM290.2 32c-7.3 0-14.3 2.7-19.8 7.5L134.9 160H56c-30.9 0-56 25.1-56 56v80c0 30.9 25.1 56 56 56h78.9L270.4 472.5c5.5 4.8 12.5 7.5 19.8 7.5c16.5 0 29.8-13.3 29.8-29.8V61.8C320 45.3 306.7 32 290.2 32zM425 167c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l55 55-55 55c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55 55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-55-55 55-55c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55-55-55z"]},M2={prefix:"far",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24V232H40c-13.3 0-24 10.7-24 24s10.7 24 24 24H200V440c0 13.3 10.7 24 24 24s24-10.7 24-24V280H408c13.3 0 24-10.7 24-24s-10.7-24-24-24H248V72z"]},V={prefix:"far",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"]},v2=V,V2={prefix:"far",iconName:"chevron-right",icon:[320,512,[9002],"f054","M305 239c9.4 9.4 9.4 24.6 0 33.9L113 465c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l175-175L79 81c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L305 239z"]},C2={prefix:"far",iconName:"face-smile",icon:[512,512,[128578,"smile"],"f118","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm177.6 62.1C192.8 334.5 218.8 352 256 352s63.2-17.5 78.4-33.9c9-9.7 24.2-10.4 33.9-1.4s10.4 24.2 1.4 33.9c-22 23.8-60 49.4-113.6 49.4s-91.7-25.5-113.6-49.4c-9-9.7-8.4-24.9 1.4-33.9s24.9-8.4 33.9 1.4zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},L2={prefix:"far",iconName:"building",icon:[384,512,[127970,61687],"f1ad","M64 48c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16h80V400c0-26.5 21.5-48 48-48s48 21.5 48 48v64h80c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H320c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zm88 40c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v48c0 8.8-7.2 16-16 16H104c-8.8 0-16-7.2-16-16V104zM232 88h48c8.8 0 16 7.2 16 16v48c0 8.8-7.2 16-16 16H232c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zM88 232c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v48c0 8.8-7.2 16-16 16H104c-8.8 0-16-7.2-16-16V232zm144-16h48c8.8 0 16 7.2 16 16v48c0 8.8-7.2 16-16 16H232c-8.8 0-16-7.2-16-16V232c0-8.8 7.2-16 16-16z"]},p2={prefix:"far",iconName:"browser",icon:[512,512,[128468],"f37e","M.3 89.5C.1 91.6 0 93.8 0 96v64V416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64V160 96c0-35.3-28.7-64-64-64H64c-2.2 0-4.4 .1-6.5 .3c-9.2 .9-17.8 3.8-25.5 8.2C21.8 46.5 13.4 55.1 7.7 65.5c-3.9 7.3-6.5 15.4-7.4 24zM48 160H464l0 256c0 8.8-7.2 16-16 16L64 432c-8.8 0-16-7.2-16-16l0-256z"]},t2={prefix:"far",iconName:"shoe-prints",icon:[640,512,[],"f54b","M323.7 62.6C355.1 54.7 390.3 48 416 48c41.2 0 89.8 10.6 126.5 28.9C582 96.7 592 116.3 592 128c0 9.4-5.1 21.5-35.9 33.1c-29.4 11.1-67 14.9-92.1 14.9c-34.7 0-53.5-10.4-80.2-25.7l-.7-.4c-20.6-11.8-45.1-25.8-79.1-33V67.8c6-1.7 12.7-3.4 19.7-5.2zM256 160c48 0 76 16 104 32s56 32 104 32c56.4 0 176-16 176-96S512 0 416 0C352.3 0 256 32 256 32v80 48h0zM128 96c0 35.3 28.7 64 64 64h32V32H192c-35.3 0-64 28.7-64 64zm67.7 353.4c-7-1.8-13.7-3.5-19.7-5.2V395.1c34-7.3 58.5-21.3 79.1-33l.7-.4C282.5 346.4 301.3 336 336 336c25.2 0 62.7 3.7 92.1 14.9C458.9 362.5 464 374.6 464 384c0 11.7-10 31.3-49.5 51.1C377.8 453.4 329.2 464 288 464c-25.7 0-60.9-6.7-92.3-14.6zM128 352h0v48 80s96.3 32 160 32c96 0 224-48 224-128s-119.6-96-176-96c-48 0-76 16-104 32s-56 32-104 32zM0 416c0 35.3 28.7 64 64 64H96V352H64c-35.3 0-64 28.7-64 64z"]},h2={prefix:"far",iconName:"face-angry",icon:[512,512,[128544,"angry"],"f556","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm72.4-118.5c9.7-9 10.2-24.2 1.2-33.9C315.3 344.3 290.6 328 256 328s-59.3 16.3-73.5 31.6c-9 9.7-8.5 24.9 1.2 33.9s24.9 8.5 33.9-1.2c7.4-7.9 20-16.4 38.5-16.4s31.1 8.5 38.5 16.4c9 9.7 24.2 10.2 33.9 1.2zM176.4 272c17.7 0 32-14.3 32-32c0-1.5-.1-3-.3-4.4l10.9 3.6c8.4 2.8 17.4-1.7 20.2-10.1s-1.7-17.4-10.1-20.2l-96-32c-8.4-2.8-17.4 1.7-20.2 10.1s1.7 17.4 10.1 20.2l30.7 10.2c-5.8 5.8-9.3 13.8-9.3 22.6c0 17.7 14.3 32 32 32zm192-32c0-8.9-3.6-17-9.5-22.8l30.2-10.1c8.4-2.8 12.9-11.9 10.1-20.2s-11.9-12.9-20.2-10.1l-96 32c-8.4 2.8-12.9 11.9-10.1 20.2s11.9 12.9 20.2 10.1l11.7-3.9c-.2 1.5-.3 3.1-.3 4.7c0 17.7 14.3 32 32 32s32-14.3 32-32z"]},x2={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},N2={prefix:"far",iconName:"user-tag",icon:[640,512,[],"f507","M224 208a80 80 0 1 0 0-160 80 80 0 1 0 0 160zM224 0a128 128 0 1 1 0 256A128 128 0 1 1 224 0zM398.7 464c-.5-3.4-1.1-6.7-1.8-10l45.6 45.6c-5.4 7.5-14.2 12.5-24.2 12.5H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304H224h45.7c17.5 0 34.3 2.5 50.3 7.2v33c0 6.4 .8 12.7 2.3 18.8c-16.1-7.1-33.9-11-52.6-11H178.3c-65.7 0-120.1 48.7-129 112H398.7zM384 224h82.7c17 0 33.3 6.7 45.3 18.7L619.3 350.1c18.7 18.7 18.7 49.1 0 67.9l-73.4 73.4c-18.7 18.7-49.1 18.7-67.9 0L370.7 384c-12-12-18.7-28.3-18.7-45.3V256c0-17.7 14.3-32 32-32zm72 80a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},C={prefix:"far",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M248.4 84.3c1.6-2.7 4.5-4.3 7.6-4.3s6 1.6 7.6 4.3L461.9 410c1.4 2.3 2.1 4.9 2.1 7.5c0 8-6.5 14.5-14.5 14.5H62.5c-8 0-14.5-6.5-14.5-14.5c0-2.7 .7-5.3 2.1-7.5L248.4 84.3zm-41-25L9.1 385c-6 9.8-9.1 21-9.1 32.5C0 452 28 480 62.5 480h387c34.5 0 62.5-28 62.5-62.5c0-11.5-3.2-22.7-9.1-32.5L304.6 59.3C294.3 42.4 275.9 32 256 32s-38.3 10.4-48.6 27.3zM288 368a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-184c0-13.3-10.7-24-24-24s-24 10.7-24 24v96c0 13.3 10.7 24 24 24s24-10.7 24-24V184z"]},d2=C,g2={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376V479.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},u2={prefix:"far",iconName:"calendar-day",icon:[448,512,[],"f783","M128 0c13.3 0 24 10.7 24 24V64H296V24c0-13.3 10.7-24 24-24s24 10.7 24 24V64h40c35.3 0 64 28.7 64 64v16 48V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192 144 128C0 92.7 28.7 64 64 64h40V24c0-13.3 10.7-24 24-24zM400 192H48V448c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V192zM112 256h96c8.8 0 16 7.2 16 16v96c0 8.8-7.2 16-16 16H112c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16z"]},A2={prefix:"far",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"]},b2={prefix:"far",iconName:"thumbs-up",icon:[512,512,[128077,61575],"f164","M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5c-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13L448 224c8.8 0 16 7.2 16 16c0 6.8-4.3 12.7-10.4 15c-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6c0 7.8-5.6 14.3-13 15.7c-8.2 1.6-15.1 7.3-18 15.1s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9c0 6.7-4.2 12.6-10.2 14.9c-11.5 4.5-17.7 16.9-14.4 28.8c.4 1.3 .6 2.8 .6 4.3c0 8.8-7.2 16-16 16H286.5c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8H384c34.7 0 62.9-27.6 64-62c14.6-11.7 24-29.7 24-50c0-4.5-.5-8.8-1.3-13c15.4-11.7 25.3-30.2 25.3-51c0-6.5-1-12.8-2.8-18.7C504.8 273.7 512 257.7 512 240c0-35.3-28.6-64-64-64l-92.3 0c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89zM32 192c-17.7 0-32 14.3-32 32V448c0 17.7 14.3 32 32 32H96c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32H32z"]},y2={prefix:"far",iconName:"rectangle-wide",icon:[640,512,[],"f2fc","M576 112c8.8 0 16 7.2 16 16V384c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V128c0-8.8 7.2-16 16-16H576zM64 64C28.7 64 0 92.7 0 128V384c0 35.3 28.7 64 64 64H576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H64z"]},w2={prefix:"far",iconName:"graduation-cap",icon:[640,512,[127891,"mortar-board"],"f19d","M320 80c2.5 0 5 .4 7.4 1.3l218 78.7-218 78.7c-2.4 .9-4.9 1.3-7.4 1.3s-5-.4-7.4-1.3L184.9 192.6l140.8-52.8c8.3-3.1 12.5-12.3 9.4-20.6s-12.3-12.5-20.6-9.4L154.9 169.6c-5.2 2-10.3 4.2-15.3 6.6L94.7 160l218-78.7c2.4-.9 4.9-1.3 7.4-1.3zM15.8 182.6l77.4 27.9c-27.2 28.7-43.7 66.7-45.1 107.7c-.1 .6-.1 1.2-.1 1.8c0 28.4-10.8 57.8-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7c-3.2-14-7.5-28.3-13.4-41.5c1.9-37 19.2-70.9 46.7-94.2l169.5 61.2c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1L624.2 182.6c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32s-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6zm480.8 80l-46.5 16.8 12.7 120.5c-4.8 3.5-12.8 8-24.6 12.6C410 423.6 368 432 320 432s-90-8.4-118.3-19.4c-11.8-4.6-19.8-9.2-24.6-12.6l12.7-120.5-46.5-16.8L128 408c0 35.3 86 72 192 72s192-36.7 192-72L496.7 262.6zM467.4 396a.7 .7 0 1 0 -1.2-.7 .7 .7 0 1 0 1.2 .7zm-294.8 0a.7 .7 0 1 0 1.2-.6 .7 .7 0 1 0 -1.2 .6z"]};export{W as $,M2 as A,r2 as B,x as C,L2 as D,k as E,U as F,G,A2 as H,g2 as I,v2 as J,O as K,n2 as L,o2 as M,R as N,V2 as O,Y as P,K as Q,F as R,H2 as S,T,u2 as U,p as V,d2 as W,t as X,w2 as Y,N as Z,m2 as _,l2 as a,_ as a0,t2 as a1,z2 as a2,g as a3,f2 as a4,b2 as a5,y as a6,d as a7,C2 as a8,c2 as a9,h2 as aa,b as ab,w as b,j as c,S as d,i2 as e,D as f,u as g,Q as h,B as i,E as j,a2 as k,N2 as l,e2 as m,J as n,x2 as o,A as p,$ as q,P as r,p2 as s,I as t,h as u,y2 as v,X as w,Z as x,s2 as y,q as z};
|
|
1
|
+
(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[a]="6632ad44-a5c9-4cf9-a015-189501d153f9",c._sentryDebugIdIdentifier="sentry-dbid-6632ad44-a5c9-4cf9-a015-189501d153f9")}catch{}})();var s={prefix:"far",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M160 368c26.5 0 48 21.5 48 48v16l72.5-54.4c8.3-6.2 18.4-9.6 28.8-9.6H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64c-8.8 0-16 7.2-16 16V352c0 8.8 7.2 16 16 16h96zm48 124l-.2 .2-5.1 3.8-17.1 12.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3V474.7v-6.4V468v-4V416H112 64c-35.3 0-64-28.7-64-64V64C0 28.7 28.7 0 64 0H448c35.3 0 64 28.7 64 64V352c0 35.3-28.7 64-64 64H309.3L208 492z"]},p=s,e={prefix:"far",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120z"]},t=e,h={prefix:"far",iconName:"laptop-code",icon:[640,512,[],"f5fc","M128 80H512c8.8 0 16 7.2 16 16V320h48V96c0-35.3-28.7-64-64-64H128C92.7 32 64 60.7 64 96V320h48V96c0-8.8 7.2-16 16-16zM50.7 400H589.3c-6.6 18.6-24.4 32-45.3 32H96c-20.9 0-38.7-13.4-45.3-32zM32 352c-17.7 0-32 14.3-32 32c0 53 43 96 96 96H544c53 0 96-43 96-96c0-17.7-14.3-32-32-32H32zM281 177c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-48 48c-9.4 9.4-9.4 24.6 0 33.9l48 48c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-31-31 31-31zM393 143c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l31 31-31 31c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l48-48c9.4-9.4 9.4-24.6 0-33.9l-48-48z"]},x={prefix:"far",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 88C0 74.7 10.7 64 24 64H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H24C10.7 112 0 101.3 0 88zM0 248c0-13.3 10.7-24 24-24H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24zM448 408c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24s10.7-24 24-24H424c13.3 0 24 10.7 24 24z"]},N={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M297.2 248.9C311.6 228.3 320 203.2 320 176c0-70.7-57.3-128-128-128S64 105.3 64 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H109c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C27.6 247.9 16 213.3 16 176C16 78.8 94.8 0 192 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H226.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM192 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H272v16c0 44.2-35.8 80-80 80z"]},d={prefix:"far",iconName:"face-frown-slight",icon:[512,512,[],"e376","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM334.4 385.9C319.2 369.5 293.2 352 256 352s-63.2 17.5-78.4 33.9c-9 9.7-24.2 10.4-33.9 1.4s-10.4-24.2-1.4-33.9c22-23.8 60-49.4 113.6-49.4s91.7 25.5 113.6 49.4c9 9.7 8.4 24.9-1.4 33.9s-24.9 8.4-33.9-1.4zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},g={prefix:"far",iconName:"users",icon:[640,512,[],"f0c0","M144 160A80 80 0 1 0 144 0a80 80 0 1 0 0 160zm368 0A80 80 0 1 0 512 0a80 80 0 1 0 0 160zM0 298.7C0 310.4 9.6 320 21.3 320H234.7c.2 0 .4 0 .7 0c-26.6-23.5-43.3-57.8-43.3-96c0-7.6 .7-15 1.9-22.3c-13.6-6.3-28.7-9.7-44.6-9.7H106.7C47.8 192 0 239.8 0 298.7zM405.3 320H618.7c11.8 0 21.3-9.6 21.3-21.3C640 239.8 592.2 192 533.3 192H490.7c-15.9 0-31 3.5-44.6 9.7c1.3 7.2 1.9 14.7 1.9 22.3c0 38.2-16.8 72.5-43.3 96c.2 0 .4 0 .7 0zM320 176a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm0 144a96 96 0 1 0 0-192 96 96 0 1 0 0 192zm-58.7 80H378.7c39.8 0 73.2 27.2 82.6 64H178.7c9.5-36.8 42.9-64 82.6-64zm0-48C187.7 352 128 411.7 128 485.3c0 14.7 11.9 26.7 26.7 26.7H485.3c14.7 0 26.7-11.9 26.7-26.7C512 411.7 452.3 352 378.7 352H261.3z"]},u={prefix:"far",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zm151 118.3C226 97.7 269.5 80 320 80c65.2 0 118.8 29.6 159.9 67.7C518.4 183.5 545 226 558.6 256c-12.6 28-36.6 66.8-70.9 100.9l-53.8-42.2c9.1-17.6 14.2-37.5 14.2-58.7c0-70.7-57.3-128-128-128c-32.2 0-61.7 11.9-84.2 31.5l-46.1-36.1zM394.9 284.2l-81.5-63.9c4.2-8.5 6.6-18.2 6.6-28.3c0-5.5-.7-10.9-2-16c.7 0 1.3 0 2 0c44.2 0 80 35.8 80 80c0 9.9-1.8 19.4-5.1 28.2zm9.4 130.3C378.8 425.4 350.7 432 320 432c-65.2 0-118.8-29.6-159.9-67.7C121.6 328.5 95 286 81.4 256c8.3-18.4 21.5-41.5 39.4-64.8L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5l-41.9-33zM192 256c0 70.7 57.3 128 128 128c13.3 0 26.1-2 38.2-5.8L302 334c-23.5-5.4-43.1-21.2-53.7-42.3l-56.1-44.2c-.2 2.8-.3 5.6-.3 8.5z"]},A={prefix:"far",iconName:"stopwatch",icon:[448,512,[9201],"f2f2","M144 24c0-13.3 10.7-24 24-24H280c13.3 0 24 10.7 24 24s-10.7 24-24 24H248V97.4c43.4 5 82.8 23.3 113.8 50.9L391 119c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-31 31c24 33.9 38.1 75.3 38.1 120c0 114.9-93.1 208-208 208S16 418.9 16 304C16 197.2 96.4 109.3 200 97.4V48H168c-13.3 0-24-10.7-24-24zm80 440a160 160 0 1 0 0-320 160 160 0 1 0 0 320zm24-248V320c0 13.3-10.7 24-24 24s-24-10.7-24-24V216c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},b={prefix:"far",iconName:"face-grin-wide",icon:[512,512,[128515,"grin-alt"],"f581","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm349.5 52.4c18.7-4.4 35.9 12 25.5 28.1C350.4 374.6 306.3 400 255.9 400s-94.5-25.4-119.1-63.5c-10.4-16.1 6.8-32.5 25.5-28.1c28.9 6.8 60.5 10.5 93.6 10.5s64.7-3.7 93.6-10.5zM224 192c0 35.3-14.3 64-32 64s-32-28.7-32-64s14.3-64 32-64s32 28.7 32 64zm96 64c-17.7 0-32-28.7-32-64s14.3-64 32-64s32 28.7 32 64s-14.3 64-32 64z"]},y={prefix:"far",iconName:"angle-right",icon:[320,512,[8250],"f105","M273 239c9.4 9.4 9.4 24.6 0 33.9L113 433c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l143-143L79 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L273 239z"]},w={prefix:"far",iconName:"user",icon:[448,512,[128100,62144],"f007","M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z"]},k={prefix:"far",iconName:"globe",icon:[512,512,[127760],"f0ac","M256 464c7.4 0 27-7.2 47.6-48.4c8.8-17.7 16.4-39.2 22-63.6H186.4c5.6 24.4 13.2 45.9 22 63.6C229 456.8 248.6 464 256 464zM178.5 304h155c1.6-15.3 2.5-31.4 2.5-48s-.9-32.7-2.5-48h-155c-1.6 15.3-2.5 31.4-2.5 48s.9 32.7 2.5 48zm7.9-144H325.6c-5.6-24.4-13.2-45.9-22-63.6C283 55.2 263.4 48 256 48s-27 7.2-47.6 48.4c-8.8 17.7-16.4 39.2-22 63.6zm195.3 48c1.5 15.5 2.2 31.6 2.2 48s-.8 32.5-2.2 48h76.7c3.6-15.4 5.6-31.5 5.6-48s-1.9-32.6-5.6-48H381.8zm58.8-48c-21.4-41.1-56.1-74.1-98.4-93.4c14.1 25.6 25.3 57.5 32.6 93.4h65.9zm-303.3 0c7.3-35.9 18.5-67.7 32.6-93.4c-42.3 19.3-77 52.3-98.4 93.4h65.9zM53.6 208c-3.6 15.4-5.6 31.5-5.6 48s1.9 32.6 5.6 48h76.7c-1.5-15.5-2.2-31.6-2.2-48s.8-32.5 2.2-48H53.6zM342.1 445.4c42.3-19.3 77-52.3 98.4-93.4H374.7c-7.3 35.9-18.5 67.7-32.6 93.4zm-172.2 0c-14.1-25.6-25.3-57.5-32.6-93.4H71.4c21.4 41.1 56.1 74.1 98.4 93.4zM256 512A256 256 0 1 1 256 0a256 256 0 1 1 0 512z"]},S={prefix:"far",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M385.1 419.1L92.9 126.9C64.8 162.3 48 207.2 48 256c0 114.9 93.1 208 208 208c48.8 0 93.7-16.8 129.1-44.9zm33.9-33.9C447.2 349.7 464 304.8 464 256c0-114.9-93.1-208-208-208c-48.8 0-93.7 16.8-129.1 44.9L419.1 385.1zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},P={prefix:"far",iconName:"snooze",icon:[448,512,[128164,"zzz"],"f880","M184 0c-13.3 0-24 10.7-24 24s10.7 24 24 24h59.1l-77.2 88.2c-6.2 7.1-7.7 17.1-3.8 25.7S174.6 176 184 176H296c13.3 0 24-10.7 24-24s-10.7-24-24-24H236.9l77.2-88.2c6.2-7.1 7.7-17.1 3.8-25.7S305.4 0 296 0H184zM312 224c-13.3 0-24 10.7-24 24s10.7 24 24 24h62.9L293.1 377.3c-5.6 7.2-6.6 17-2.6 25.3s12.4 13.5 21.6 13.5H424c13.3 0 24-10.7 24-24s-10.7-24-24-24H361.1l81.9-105.3c5.6-7.2 6.6-17 2.6-25.3s-12.4-13.5-21.6-13.5H312zM24 224c-13.3 0-24 10.7-24 24s10.7 24 24 24H152.6L4.6 473.8c-5.3 7.3-6.1 17-2.1 25S15 512 24 512H200c13.3 0 24-10.7 24-24s-10.7-24-24-24H71.4l148-201.8c5.3-7.3 6.1-17 2.1-25S209 224 200 224H24z"]},r={prefix:"far",iconName:"messages",icon:[640,512,["comments-alt"],"f4b6","M48 72c0-13.3 10.7-24 24-24H344c13.3 0 24 10.7 24 24V248c0 13.3-10.7 24-24 24H216c-4.7 0-9.4 1.4-13.3 4L144 315.2V296c0-13.3-10.7-24-24-24H72c-13.3 0-24-10.7-24-24V72zM72 0C32.2 0 0 32.2 0 72V248c0 39.8 32.2 72 72 72H96v40c0 8.9 4.9 17 12.7 21.2s17.3 3.7 24.6-1.2l90-60H344c39.8 0 72-32.2 72-72V72c0-39.8-32.2-72-72-72H72zM256 376c0 39.8 32.2 72 72 72h88.7l90 60c7.4 4.9 16.8 5.4 24.6 1.2S544 496.9 544 488V448h24c39.8 0 72-32.2 72-72V200c0-39.8-32.2-72-72-72H448v48H568c13.3 0 24 10.7 24 24V376c0 13.3-10.7 24-24 24H520c-13.3 0-24 10.7-24 24v19.2L437.3 404c-3.9-2.6-8.6-4-13.3-4H328c-13.3 0-24-10.7-24-24V352H256v24z"]},F=r,T={prefix:"far",iconName:"volume",icon:[576,512,[128265,"volume-medium"],"f6a8","M191.9 201.9L304 102.3V409.7L191.9 310.1c-4.4-3.9-10.1-6.1-15.9-6.1H88c-4.4 0-8-3.6-8-8V216c0-4.4 3.6-8 8-8h88c5.9 0 11.6-2.2 15.9-6.1zM322.2 32c-7.3 0-14.3 2.7-19.8 7.5L166.9 160H88c-30.9 0-56 25.1-56 56v80c0 30.9 25.1 56 56 56h78.9L302.4 472.5c5.5 4.8 12.5 7.5 19.8 7.5c16.5 0 29.8-13.3 29.8-29.8V61.8C352 45.3 338.7 32 322.2 32zm182.9 75c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C507.3 170.7 528 210.9 528 256s-20.7 85.3-53.2 111.8c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5c43.2-35.2 70.9-88.9 70.9-149s-27.7-113.8-70.9-149zm-60.5 74.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C425.1 227.6 432 241 432 256s-6.9 28.4-17.7 37.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C466.1 312.9 480 286.1 480 256s-13.9-56.9-35.4-74.5z"]},f={prefix:"far",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c7.6-4.2 16.8-4.1 24.3 .5l144 88c7.1 4.4 11.5 12.1 11.5 20.5s-4.4 16.1-11.5 20.5l-144 88c-7.4 4.5-16.7 4.7-24.3 .5s-12.3-12.2-12.3-20.9V168c0-8.7 4.7-16.7 12.3-20.9z"]},B=f,i={prefix:"far",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},D=i,l={prefix:"far",iconName:"circle-stop",icon:[512,512,[62094,"stop-circle"],"f28d","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm192-96H320c17.7 0 32 14.3 32 32V320c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32z"]},E=l,I={prefix:"far",iconName:"filter",icon:[512,512,[],"f0b0","M0 73.7C0 50.7 18.7 32 41.7 32H470.3c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5V447.7c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3V304.5L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2v68.4l64 50.8V296c0-5.5 1.9-10.9 5.4-15.2L457 80H55z"]},U={prefix:"far",iconName:"code",icon:[640,512,[],"f121","M399.1 1.1c-12.7-3.9-26.1 3.1-30 15.8l-144 464c-3.9 12.7 3.1 26.1 15.8 30s26.1-3.1 30-15.8l144-464c3.9-12.7-3.1-26.1-15.8-30zm71.4 118.5c-9.1 9.7-8.6 24.9 1.1 33.9L580.9 256 471.6 358.5c-9.7 9.1-10.2 24.3-1.1 33.9s24.3 10.2 33.9 1.1l128-120c4.8-4.5 7.6-10.9 7.6-17.5s-2.7-13-7.6-17.5l-128-120c-9.7-9.1-24.9-8.6-33.9 1.1zm-301 0c-9.1-9.7-24.3-10.2-33.9-1.1l-128 120C2.7 243 0 249.4 0 256s2.7 13 7.6 17.5l128 120c9.7 9.1 24.9 8.6 33.9-1.1s8.6-24.9-1.1-33.9L59.1 256 168.4 153.5c9.7-9.1 10.2-24.3 1.1-33.9z"]},n={prefix:"far",iconName:"arrow-up-right-from-square",icon:[512,512,["external-link"],"f08e","M304 24c0 13.3 10.7 24 24 24H430.1L207 271c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l223-223V184c0 13.3 10.7 24 24 24s24-10.7 24-24V24c0-13.3-10.7-24-24-24H328c-13.3 0-24 10.7-24 24zM72 32C32.2 32 0 64.2 0 104V440c0 39.8 32.2 72 72 72H408c39.8 0 72-32.2 72-72V312c0-13.3-10.7-24-24-24s-24 10.7-24 24V440c0 13.3-10.7 24-24 24H72c-13.3 0-24-10.7-24-24V104c0-13.3 10.7-24 24-24H200c13.3 0 24-10.7 24-24s-10.7-24-24-24H72z"]},q=n,R={prefix:"far",iconName:"arrow-right",icon:[448,512,[8594],"f061","M440.6 273.4c4.7-4.5 7.4-10.8 7.4-17.4s-2.7-12.8-7.4-17.4l-176-168c-9.6-9.2-24.8-8.8-33.9 .8s-8.8 24.8 .8 33.9L364.1 232 24 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l340.1 0L231.4 406.6c-9.6 9.2-9.9 24.3-.8 33.9s24.3 9.9 33.9 .8l176-168z"]},G={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},o={prefix:"far",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},_=o,X={prefix:"far",iconName:"typewriter",icon:[512,512,[],"f8e7","M128 64c0-8.8 7.2-16 16-16H335.4c4.2 0 8.3 1.7 11.3 4.7l32.6 32.6c3 3 4.7 7.1 4.7 11.3V160h48V96.6c0-17-6.7-33.3-18.7-45.3L380.7 18.7C368.7 6.7 352.4 0 335.4 0H144C108.7 0 80 28.7 80 64v96h48V64zM0 224v32c0 17.7 14.3 32 32 32V448c0 35.3 28.7 64 64 64H416c35.3 0 64-28.7 64-64V288c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32H365.3c-8.5 0-16.6 3.4-22.6 9.4l-13.3 13.3c-6 6-14.1 9.4-22.6 9.4H205.3c-8.5 0-16.6-3.4-22.6-9.4l-13.3-13.3c-6-6-14.1-9.4-22.6-9.4H32c-17.7 0-32 14.3-32 32zm80 64H432V448c0 8.8-7.2 16-16 16H96c-8.8 0-16-7.2-16-16V288zm48 112v16c0 8.8 7.2 16 16 16H368c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16zm40-60a20 20 0 1 0 -40 0 20 20 0 1 0 40 0zm52 20a20 20 0 1 0 0-40 20 20 0 1 0 0 40zm92-20a20 20 0 1 0 -40 0 20 20 0 1 0 40 0zm52 20a20 20 0 1 0 0-40 20 20 0 1 0 0 40z"]},Q={prefix:"far",iconName:"eye",icon:[576,512,[128065],"f06e","M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z"]},W={prefix:"far",iconName:"pen",icon:[512,512,[128394],"f304","M36.4 360.9L13.4 439 1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1L73 498.6l78.1-23c12.4-3.6 23.7-9.9 33.4-18.4c1.4-1.2 2.7-2.5 4-3.8L492.7 149.3c21.9-21.9 24.6-55.6 8.2-80.5c-2.3-3.5-5.1-6.9-8.2-10L453.3 19.3c-25-25-65.5-25-90.5 0L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4zm46 13.5c1.7-5.6 4.5-10.8 8.4-15.2c.6-.6 1.1-1.2 1.7-1.8L321 129 383 191 154.6 419.5c-4.7 4.7-10.6 8.2-17 10.1l-23.4 6.9L59.4 452.6l16.1-54.8 6.9-23.4z"]},j={prefix:"far",iconName:"hand-pointer",icon:[448,512,[],"f25a","M160 64c0-8.8 7.2-16 16-16s16 7.2 16 16V200c0 10.3 6.6 19.5 16.4 22.8s20.6-.1 26.8-8.3c3-3.9 7.6-6.4 12.8-6.4c8.8 0 16 7.2 16 16c0 10.3 6.6 19.5 16.4 22.8s20.6-.1 26.8-8.3c3-3.9 7.6-6.4 12.8-6.4c7.8 0 14.3 5.6 15.7 13c1.6 8.2 7.3 15.1 15.1 18s16.7 1.6 23.3-3.6c2.7-2.1 6.1-3.4 9.9-3.4c8.8 0 16 7.2 16 16l0 16V392c0 39.8-32.2 72-72 72H272 212.3h-.9c-37.4 0-72.4-18.7-93.2-49.9L50.7 312.9c-4.9-7.4-2.9-17.3 4.4-22.2s17.3-2.9 22.2 4.4L116 353.2c5.9 8.8 16.8 12.7 26.9 9.7s17-12.4 17-23V320 64zM176 0c-35.3 0-64 28.7-64 64V261.7C91.2 238 55.5 232.8 28.5 250.7C-.9 270.4-8.9 310.1 10.8 339.5L78.3 440.8c29.7 44.5 79.6 71.2 133.1 71.2h.9H272h56c66.3 0 120-53.7 120-120V288l0-16c0-35.3-28.7-64-64-64c-4.5 0-8.8 .5-13 1.3c-11.7-15.4-30.2-25.3-51-25.3c-6.9 0-13.5 1.1-19.7 3.1C288.7 170.7 269.6 160 248 160c-2.7 0-5.4 .2-8 .5V64c0-35.3-28.7-64-64-64zm48 304c0-8.8-7.2-16-16-16s-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304zm48-16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304c0-8.8-7.2-16-16-16zm80 16c0-8.8-7.2-16-16-16s-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304z"]},J={prefix:"far",iconName:"spinner-third",icon:[512,512,[],"f3f4","M457 372c11.5 6.6 26.3 2.7 31.8-9.3C503.7 330.2 512 294.1 512 256C512 122.7 410.1 13.2 280 1.1C266.8-.1 256 10.7 256 24v0c0 13.3 10.8 23.9 24 25.4C383.5 61.2 464 149.2 464 256c0 29.3-6.1 57.3-17 82.6c-5.3 12.2-1.5 26.8 10 33.5v0z"]},K={prefix:"far",iconName:"phone",icon:[512,512,[128222,128379],"f095","M375.8 275.2c-16.4-7-35.4-2.4-46.7 11.4l-33.2 40.6c-46-26.7-84.4-65.1-111.1-111.1L225.3 183c13.8-11.3 18.5-30.3 11.4-46.7l-48-112C181.2 6.7 162.3-3.1 143.6 .9l-112 24C13.2 28.8 0 45.1 0 64v0C0 295.2 175.2 485.6 400.1 509.5c9.8 1 19.6 1.8 29.6 2.2c0 0 0 0 0 0c0 0 .1 0 .1 0c6.1 .2 12.1 .4 18.2 .4l0 0c18.9 0 35.2-13.2 39.1-31.6l24-112c4-18.7-5.8-37.6-23.4-45.1l-112-48zM441.5 464C225.8 460.5 51.5 286.2 48.1 70.5l99.2-21.3 43 100.4L154.4 179c-18.2 14.9-22.9 40.8-11.1 61.2c30.9 53.3 75.3 97.7 128.6 128.6c20.4 11.8 46.3 7.1 61.2-11.1l29.4-35.9 100.4 43L441.5 464zM48 64v0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0s0 0 0 0"]},O={prefix:"far",iconName:"arrow-left",icon:[448,512,[8592],"f060","M7.4 273.4C2.7 268.8 0 262.6 0 256s2.7-12.8 7.4-17.4l176-168c9.6-9.2 24.8-8.8 33.9 .8s8.8 24.8-.8 33.9L83.9 232 424 232c13.3 0 24 10.7 24 24s-10.7 24-24 24L83.9 280 216.6 406.6c9.6 9.2 9.9 24.3 .8 33.9s-24.3 9.9-33.9 .8l-176-168z"]},Y={prefix:"far",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M64 112c-8.8 0-16 7.2-16 16v22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1V128c0-8.8-7.2-16-16-16H64zM48 212.2V384c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V212.2L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"]},z={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8V248c0-13.3-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h24v64H216zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Z=z,$={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},c2={prefix:"far",iconName:"face-meh",icon:[512,512,[128528,"meh"],"f11a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM176.4 240a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm192-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM184 328c-13.3 0-24 10.7-24 24s10.7 24 24 24H328c13.3 0 24-10.7 24-24s-10.7-24-24-24H184z"]},a2={prefix:"far",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M321.7 0c19.1 0 32.9 18.3 27.6 36.6L295.8 224h85.2c19.3 0 34.9 15.6 34.9 34.9c0 10.3-4.5 20-12.3 26.6L144.9 505.2c-5.2 4.4-11.8 6.8-18.6 6.8c-19.1 0-32.9-18.3-27.6-36.6L152.2 288H65.7C47.1 288 32 272.9 32 254.3c0-9.9 4.3-19.2 11.8-25.6L303.1 6.9C308.3 2.4 314.9 0 321.7 0zM285.6 85L104.4 240H184c7.5 0 14.6 3.5 19.2 9.5s6 13.8 3.9 21L162.3 427.5 345.5 272H264c-7.5 0-14.6-3.5-19.2-9.5s-6-13.8-3.9-21L285.6 85z"]},m={prefix:"far",iconName:"screen-users",icon:[640,512,["users-class"],"f63d","M80 320a16 16 0 1 1 32 0 16 16 0 1 1 -32 0zm80 0A64 64 0 1 0 32 320a64 64 0 1 0 128 0zM64 416c-35.3 0-64 28.7-64 64c0 17.7 14.3 32 32 32H160c17.7 0 32-14.3 32-32c0-35.3-28.7-64-64-64H64zm240-96a16 16 0 1 1 32 0 16 16 0 1 1 -32 0zm80 0a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zm-96 96c-35.3 0-64 28.7-64 64c0 17.7 14.3 32 32 32H384c17.7 0 32-14.3 32-32c0-35.3-28.7-64-64-64H288zM544 304a16 16 0 1 1 0 32 16 16 0 1 1 0-32zm0 80a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-96 96c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32c0-35.3-28.7-64-64-64H512c-35.3 0-64 28.7-64 64zM544 48H96c-8.8 0-16 7.2-16 16V225.3c-18.3 3.1-34.8 11.3-48 23.1V64C32 28.7 60.7 0 96 0H544c35.3 0 64 28.7 64 64V248.4c-13.2-11.8-29.7-20.1-48-23.1V64c0-8.8-7.2-16-16-16z"]},s2=m,H={prefix:"far",iconName:"brackets-square",icon:[448,512,["brackets"],"f7e9","M56 32C25.1 32 0 57.1 0 88V424c0 30.9 25.1 56 56 56h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H56c-4.4 0-8-3.6-8-8V88c0-4.4 3.6-8 8-8h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H56zm336 0H328c-13.3 0-24 10.7-24 24s10.7 24 24 24h64c4.4 0 8 3.6 8 8V424c0 4.4-3.6 8-8 8H328c-13.3 0-24 10.7-24 24s10.7 24 24 24h64c30.9 0 56-25.1 56-56V88c0-30.9-25.1-56-56-56z"]},e2=H,r2={prefix:"far",iconName:"angle-down",icon:[448,512,[8964],"f107","M241 337c-9.4 9.4-24.6 9.4-33.9 0L47 177c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l143 143L367 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L241 337z"]},f2={prefix:"far",iconName:"thumbs-down",icon:[512,512,[128078,61576],"f165","M323.8 477.2c-38.2 10.9-78.1-11.2-89-49.4l-5.7-20c-3.7-13-10.4-25-19.5-35l-51.3-56.4c-8.9-9.8-8.2-25 1.6-33.9s25-8.2 33.9 1.6l51.3 56.4c14.1 15.5 24.4 34 30.1 54.1l5.7 20c3.6 12.7 16.9 20.1 29.7 16.5s20.1-16.9 16.5-29.7l-5.7-20c-5.7-19.9-14.7-38.7-26.6-55.5c-5.2-7.3-5.8-16.9-1.7-24.9s12.3-13 21.3-13L448 288c8.8 0 16-7.2 16-16c0-6.8-4.3-12.7-10.4-15c-7.4-2.8-13-9-14.9-16.7s.1-15.8 5.3-21.7c2.5-2.8 4-6.5 4-10.6c0-7.8-5.6-14.3-13-15.7c-8.2-1.6-15.1-7.3-18-15.2s-1.6-16.7 3.6-23.3c2.1-2.7 3.4-6.1 3.4-9.9c0-6.7-4.2-12.6-10.2-14.9c-11.5-4.5-17.7-16.9-14.4-28.8c.4-1.3 .6-2.8 .6-4.3c0-8.8-7.2-16-16-16H286.5c-12.6 0-25 3.7-35.5 10.7l-61.7 41.1c-11 7.4-25.9 4.4-33.3-6.7s-4.4-25.9 6.7-33.3l61.7-41.1c18.4-12.3 40-18.8 62.1-18.8H384c34.7 0 62.9 27.6 64 62c14.6 11.7 24 29.7 24 50c0 4.5-.5 8.8-1.3 13c15.4 11.7 25.3 30.2 25.3 51c0 6.5-1 12.8-2.8 18.7C504.8 238.3 512 254.3 512 272c0 35.3-28.6 64-64 64l-92.3 0c4.7 10.4 8.7 21.2 11.8 32.2l5.7 20c10.9 38.2-11.2 78.1-49.4 89zM32 384c-17.7 0-32-14.3-32-32V128c0-17.7 14.3-32 32-32H96c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H32z"]},i2={prefix:"far",iconName:"bullseye-pointer",icon:[512,512,[],"f649","M256 464c114.9 0 208-93.1 208-208s-93.1-208-208-208S48 141.1 48 256c0 5.5 .2 10.9 .6 16.3L1.8 286.1C.6 276.2 0 266.2 0 256C0 114.6 114.6 0 256 0S512 114.6 512 256s-114.6 256-256 256c-10.2 0-20.2-.6-30.1-1.8l13.8-46.9c5.4 .4 10.8 .6 16.3 .6zm-2.4-48l14.3-48.6C324.2 361.4 368 313.8 368 256c0-61.9-50.1-112-112-112c-57.8 0-105.4 43.8-111.4 100.1L96 258.4c0-.8 0-1.6 0-2.4c0-88.4 71.6-160 160-160s160 71.6 160 160s-71.6 160-160 160c-.8 0-1.6 0-2.4 0zM39 308.5l204.8-60.2c12.1-3.6 23.4 7.7 19.9 19.9L203.5 473c-4.1 13.9-23.2 15.6-29.7 2.6l-28.7-57.3c-.7-1.3-1.5-2.6-2.5-3.7l-88 88c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l88-88c-1.1-1-2.3-1.9-3.7-2.5L36.4 338.2c-13-6.5-11.3-25.6 2.6-29.7z"]},l2={prefix:"far",iconName:"play",icon:[384,512,[9654],"f04b","M48 432L336 256 48 80l0 352zM24.5 38.1C39.7 29.6 58.2 30 73 39L361 215c14.3 8.7 23 24.2 23 41s-8.7 32.2-23 41L73 473c-14.8 9.1-33.4 9.4-48.5 .9S0 449.4 0 432V80C0 62.6 9.4 46.6 24.5 38.1z"]},M={prefix:"far",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1L505 471c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L337.1 371.1z"]},n2=M,o2={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},v={prefix:"far",iconName:"list-check",icon:[512,512,["tasks"],"f0ae","M153.8 72.1c8.9-9.9 8.1-25-1.8-33.9s-25-8.1-33.9 1.8L63.1 101.1 41 79C31.6 69.7 16.4 69.7 7 79s-9.4 24.6 0 33.9l40 40c4.7 4.7 11 7.2 17.6 7s12.8-3 17.2-7.9l72-80zm0 160c8.9-9.9 8.1-25-1.8-33.9s-25-8.1-33.9 1.8L63.1 261.1 41 239c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l40 40c4.7 4.7 11 7.2 17.6 7s12.8-3 17.2-7.9l72-80zM216 120H488c13.3 0 24-10.7 24-24s-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24zM192 256c0 13.3 10.7 24 24 24H488c13.3 0 24-10.7 24-24s-10.7-24-24-24H216c-13.3 0-24 10.7-24 24zM160 416c0 13.3 10.7 24 24 24H488c13.3 0 24-10.7 24-24s-10.7-24-24-24H184c-13.3 0-24 10.7-24 24zm-64 0a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},z2=v,m2={prefix:"far",iconName:"megaphone",icon:[576,512,[128227],"f675","M552 32c-13.3 0-24 10.7-24 24v5.7L48 192.6V184c0-13.3-10.7-24-24-24s-24 10.7-24 24v21.7V224v64 18.3V328c0 13.3 10.7 24 24 24s24-10.7 24-24v-8.6l117.6 32.1C162 361.7 160 372.6 160 384c0 53 43 96 96 96c46.9 0 86-33.6 94.3-78.1L528 450.3V456c0 13.3 10.7 24 24 24s24-10.7 24-24V432 80 56c0-13.3-10.7-24-24-24zM528 400.6L48 269.7V242.3L528 111.4V400.6zM208 384c0-7.1 1.5-13.8 4.3-19.8l91.5 24.9c-2.6 24.1-23 42.8-47.7 42.8c-26.5 0-48-21.5-48-48z"]},H2={prefix:"far",iconName:"volume-xmark",icon:[576,512,["volume-mute","volume-times"],"f6a9","M159.9 201.9L272 102.3V409.7L159.9 310.1c-4.4-3.9-10.1-6.1-15.9-6.1H56c-4.4 0-8-3.6-8-8V216c0-4.4 3.6-8 8-8h88c5.9 0 11.6-2.2 15.9-6.1zM290.2 32c-7.3 0-14.3 2.7-19.8 7.5L134.9 160H56c-30.9 0-56 25.1-56 56v80c0 30.9 25.1 56 56 56h78.9L270.4 472.5c5.5 4.8 12.5 7.5 19.8 7.5c16.5 0 29.8-13.3 29.8-29.8V61.8C320 45.3 306.7 32 290.2 32zM425 167c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l55 55-55 55c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55 55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-55-55 55-55c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55-55-55z"]},M2={prefix:"far",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24V232H40c-13.3 0-24 10.7-24 24s10.7 24 24 24H200V440c0 13.3 10.7 24 24 24s24-10.7 24-24V280H408c13.3 0 24-10.7 24-24s-10.7-24-24-24H248V72z"]},V={prefix:"far",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"]},v2=V,V2={prefix:"far",iconName:"chevron-right",icon:[320,512,[9002],"f054","M305 239c9.4 9.4 9.4 24.6 0 33.9L113 465c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l175-175L79 81c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L305 239z"]},C2={prefix:"far",iconName:"face-smile",icon:[512,512,[128578,"smile"],"f118","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm177.6 62.1C192.8 334.5 218.8 352 256 352s63.2-17.5 78.4-33.9c9-9.7 24.2-10.4 33.9-1.4s10.4 24.2 1.4 33.9c-22 23.8-60 49.4-113.6 49.4s-91.7-25.5-113.6-49.4c-9-9.7-8.4-24.9 1.4-33.9s24.9-8.4 33.9 1.4zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},L2={prefix:"far",iconName:"building",icon:[384,512,[127970,61687],"f1ad","M64 48c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16h80V400c0-26.5 21.5-48 48-48s48 21.5 48 48v64h80c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H320c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zm88 40c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v48c0 8.8-7.2 16-16 16H104c-8.8 0-16-7.2-16-16V104zM232 88h48c8.8 0 16 7.2 16 16v48c0 8.8-7.2 16-16 16H232c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zM88 232c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v48c0 8.8-7.2 16-16 16H104c-8.8 0-16-7.2-16-16V232zm144-16h48c8.8 0 16 7.2 16 16v48c0 8.8-7.2 16-16 16H232c-8.8 0-16-7.2-16-16V232c0-8.8 7.2-16 16-16z"]},p2={prefix:"far",iconName:"browser",icon:[512,512,[128468],"f37e","M.3 89.5C.1 91.6 0 93.8 0 96v64V416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64V160 96c0-35.3-28.7-64-64-64H64c-2.2 0-4.4 .1-6.5 .3c-9.2 .9-17.8 3.8-25.5 8.2C21.8 46.5 13.4 55.1 7.7 65.5c-3.9 7.3-6.5 15.4-7.4 24zM48 160H464l0 256c0 8.8-7.2 16-16 16L64 432c-8.8 0-16-7.2-16-16l0-256z"]},t2={prefix:"far",iconName:"shoe-prints",icon:[640,512,[],"f54b","M323.7 62.6C355.1 54.7 390.3 48 416 48c41.2 0 89.8 10.6 126.5 28.9C582 96.7 592 116.3 592 128c0 9.4-5.1 21.5-35.9 33.1c-29.4 11.1-67 14.9-92.1 14.9c-34.7 0-53.5-10.4-80.2-25.7l-.7-.4c-20.6-11.8-45.1-25.8-79.1-33V67.8c6-1.7 12.7-3.4 19.7-5.2zM256 160c48 0 76 16 104 32s56 32 104 32c56.4 0 176-16 176-96S512 0 416 0C352.3 0 256 32 256 32v80 48h0zM128 96c0 35.3 28.7 64 64 64h32V32H192c-35.3 0-64 28.7-64 64zm67.7 353.4c-7-1.8-13.7-3.5-19.7-5.2V395.1c34-7.3 58.5-21.3 79.1-33l.7-.4C282.5 346.4 301.3 336 336 336c25.2 0 62.7 3.7 92.1 14.9C458.9 362.5 464 374.6 464 384c0 11.7-10 31.3-49.5 51.1C377.8 453.4 329.2 464 288 464c-25.7 0-60.9-6.7-92.3-14.6zM128 352h0v48 80s96.3 32 160 32c96 0 224-48 224-128s-119.6-96-176-96c-48 0-76 16-104 32s-56 32-104 32zM0 416c0 35.3 28.7 64 64 64H96V352H64c-35.3 0-64 28.7-64 64z"]},h2={prefix:"far",iconName:"face-angry",icon:[512,512,[128544,"angry"],"f556","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm72.4-118.5c9.7-9 10.2-24.2 1.2-33.9C315.3 344.3 290.6 328 256 328s-59.3 16.3-73.5 31.6c-9 9.7-8.5 24.9 1.2 33.9s24.9 8.5 33.9-1.2c7.4-7.9 20-16.4 38.5-16.4s31.1 8.5 38.5 16.4c9 9.7 24.2 10.2 33.9 1.2zM176.4 272c17.7 0 32-14.3 32-32c0-1.5-.1-3-.3-4.4l10.9 3.6c8.4 2.8 17.4-1.7 20.2-10.1s-1.7-17.4-10.1-20.2l-96-32c-8.4-2.8-17.4 1.7-20.2 10.1s1.7 17.4 10.1 20.2l30.7 10.2c-5.8 5.8-9.3 13.8-9.3 22.6c0 17.7 14.3 32 32 32zm192-32c0-8.9-3.6-17-9.5-22.8l30.2-10.1c8.4-2.8 12.9-11.9 10.1-20.2s-11.9-12.9-20.2-10.1l-96 32c-8.4 2.8-12.9 11.9-10.1 20.2s11.9 12.9 20.2 10.1l11.7-3.9c-.2 1.5-.3 3.1-.3 4.7c0 17.7 14.3 32 32 32s32-14.3 32-32z"]},x2={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},N2={prefix:"far",iconName:"user-tag",icon:[640,512,[],"f507","M224 208a80 80 0 1 0 0-160 80 80 0 1 0 0 160zM224 0a128 128 0 1 1 0 256A128 128 0 1 1 224 0zM398.7 464c-.5-3.4-1.1-6.7-1.8-10l45.6 45.6c-5.4 7.5-14.2 12.5-24.2 12.5H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304H224h45.7c17.5 0 34.3 2.5 50.3 7.2v33c0 6.4 .8 12.7 2.3 18.8c-16.1-7.1-33.9-11-52.6-11H178.3c-65.7 0-120.1 48.7-129 112H398.7zM384 224h82.7c17 0 33.3 6.7 45.3 18.7L619.3 350.1c18.7 18.7 18.7 49.1 0 67.9l-73.4 73.4c-18.7 18.7-49.1 18.7-67.9 0L370.7 384c-12-12-18.7-28.3-18.7-45.3V256c0-17.7 14.3-32 32-32zm72 80a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},C={prefix:"far",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M248.4 84.3c1.6-2.7 4.5-4.3 7.6-4.3s6 1.6 7.6 4.3L461.9 410c1.4 2.3 2.1 4.9 2.1 7.5c0 8-6.5 14.5-14.5 14.5H62.5c-8 0-14.5-6.5-14.5-14.5c0-2.7 .7-5.3 2.1-7.5L248.4 84.3zm-41-25L9.1 385c-6 9.8-9.1 21-9.1 32.5C0 452 28 480 62.5 480h387c34.5 0 62.5-28 62.5-62.5c0-11.5-3.2-22.7-9.1-32.5L304.6 59.3C294.3 42.4 275.9 32 256 32s-38.3 10.4-48.6 27.3zM288 368a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-184c0-13.3-10.7-24-24-24s-24 10.7-24 24v96c0 13.3 10.7 24 24 24s24-10.7 24-24V184z"]},d2=C,g2={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376V479.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},u2={prefix:"far",iconName:"calendar-day",icon:[448,512,[],"f783","M128 0c13.3 0 24 10.7 24 24V64H296V24c0-13.3 10.7-24 24-24s24 10.7 24 24V64h40c35.3 0 64 28.7 64 64v16 48V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192 144 128C0 92.7 28.7 64 64 64h40V24c0-13.3 10.7-24 24-24zM400 192H48V448c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V192zM112 256h96c8.8 0 16 7.2 16 16v96c0 8.8-7.2 16-16 16H112c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16z"]},A2={prefix:"far",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"]},b2={prefix:"far",iconName:"thumbs-up",icon:[512,512,[128077,61575],"f164","M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5c-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13L448 224c8.8 0 16 7.2 16 16c0 6.8-4.3 12.7-10.4 15c-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6c0 7.8-5.6 14.3-13 15.7c-8.2 1.6-15.1 7.3-18 15.1s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9c0 6.7-4.2 12.6-10.2 14.9c-11.5 4.5-17.7 16.9-14.4 28.8c.4 1.3 .6 2.8 .6 4.3c0 8.8-7.2 16-16 16H286.5c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8H384c34.7 0 62.9-27.6 64-62c14.6-11.7 24-29.7 24-50c0-4.5-.5-8.8-1.3-13c15.4-11.7 25.3-30.2 25.3-51c0-6.5-1-12.8-2.8-18.7C504.8 273.7 512 257.7 512 240c0-35.3-28.6-64-64-64l-92.3 0c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89zM32 192c-17.7 0-32 14.3-32 32V448c0 17.7 14.3 32 32 32H96c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32H32z"]},y2={prefix:"far",iconName:"rectangle-wide",icon:[640,512,[],"f2fc","M576 112c8.8 0 16 7.2 16 16V384c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V128c0-8.8 7.2-16 16-16H576zM64 64C28.7 64 0 92.7 0 128V384c0 35.3 28.7 64 64 64H576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H64z"]},w2={prefix:"far",iconName:"graduation-cap",icon:[640,512,[127891,"mortar-board"],"f19d","M320 80c2.5 0 5 .4 7.4 1.3l218 78.7-218 78.7c-2.4 .9-4.9 1.3-7.4 1.3s-5-.4-7.4-1.3L184.9 192.6l140.8-52.8c8.3-3.1 12.5-12.3 9.4-20.6s-12.3-12.5-20.6-9.4L154.9 169.6c-5.2 2-10.3 4.2-15.3 6.6L94.7 160l218-78.7c2.4-.9 4.9-1.3 7.4-1.3zM15.8 182.6l77.4 27.9c-27.2 28.7-43.7 66.7-45.1 107.7c-.1 .6-.1 1.2-.1 1.8c0 28.4-10.8 57.8-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7c-3.2-14-7.5-28.3-13.4-41.5c1.9-37 19.2-70.9 46.7-94.2l169.5 61.2c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1L624.2 182.6c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32s-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6zm480.8 80l-46.5 16.8 12.7 120.5c-4.8 3.5-12.8 8-24.6 12.6C410 423.6 368 432 320 432s-90-8.4-118.3-19.4c-11.8-4.6-19.8-9.2-24.6-12.6l12.7-120.5-46.5-16.8L128 408c0 35.3 86 72 192 72s192-36.7 192-72L496.7 262.6zM467.4 396a.7 .7 0 1 0 -1.2-.7 .7 .7 0 1 0 1.2 .7zm-294.8 0a.7 .7 0 1 0 1.2-.6 .7 .7 0 1 0 -1.2 .6z"]};export{W as $,M2 as A,r2 as B,v2 as C,x as D,L2 as E,k as F,U as G,G as H,A2 as I,g2 as J,O as K,n2 as L,o2 as M,R as N,V2 as O,Y as P,K as Q,F as R,H2 as S,T,u2 as U,p as V,d2 as W,t as X,w2 as Y,N as Z,m2 as _,l2 as a,_ as a0,t2 as a1,z2 as a2,g as a3,f2 as a4,b2 as a5,y as a6,d as a7,C2 as a8,c2 as a9,h2 as aa,b as ab,w as b,j as c,S as d,i2 as e,D as f,u as g,Q as h,B as i,E as j,a2 as k,N2 as l,s2 as m,J as n,x2 as o,A as p,$ as q,P as r,p2 as s,I as t,h as u,y2 as v,X as w,Z as x,e2 as y,q as z};
|
|
2
2
|
//# sourceMappingURL=vendor.fortawesome.pro-regular-svg-icons.js.map
|