1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0ebec-afdc-7441-b5d8-9489decff67d")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,118621,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(156132);let i=r.forwardRef(({className:e,type:r,...i},a)=>(0,t.jsx)("input",{type:r,className:(0,s.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive/20 md:text-sm",e),ref:a,...i}));i.displayName="Input",e.s(["Input",0,i])},772382,e=>{"use strict";let t=(0,e.i(456420).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],772382)},724983,e=>{"use strict";let t=(0,e.i(456420).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["default",0,t])},422768,e=>{"use strict";var t=e.i(724983);e.s(["CircleAlert",()=>t.default])},408230,e=>{"use strict";var t=e.i(604570),r=e.i(69123);let s=(e,r)=>{try{t.default.capture(e,r&&Object.keys(r).length?r:void 0)}catch(e){console.error("Error capturing PostHog event:",e)}};e.s(["captureDateFilterClicked",0,(e,t)=>{s(r.POSTHOG_EVENTS.DATE_FILTER_CLICKED,{[r.POSTHOG_EVENT_PROPERTIES.DATE_FILTER_PAGE]:e,[r.POSTHOG_EVENT_PROPERTIES.DATE_FILTER_VALUE]:t})},"capturePostHogEvent",0,s])},511398,225913,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(991918),i=e.i(207670);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=i.clsx,o=(e,t)=>r=>{var s;if((null==t?void 0:t.variants)==null)return n(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:o}=t,l=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],s=null==o?void 0:o[e];if(null===t)return null;let n=a(t)||a(s);return i[e][n]}),d=r&&Object.entries(r).reduce((e,t)=>{let[r,s]=t;return void 0===s||(e[r]=s),e},{});return n(e,l,null==t||null==(s=t.compoundVariants)?void 0:s.reduce((e,t)=>{let{class:r,className:s,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...d}[t]):({...o,...d})[t]===r})?[...e,r,s]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)};e.s(["cva",0,o],225913);var l=e.i(156132);let d=o("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 active:bg-primary/80 active:scale-[0.98]",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground active:bg-accent active:scale-[0.98]",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 active:bg-secondary/60 active:scale-[0.98]",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef(({className:e,variant:r,size:i,asChild:a=!1,...n},o)=>{let c=a?s.Slot:"button";return(0,t.jsx)(c,{className:(0,l.cn)(d({variant:r,size:i,className:e})),ref:o,...n})});c.displayName="Button",e.s(["Button",0,c],511398)},75830,586318,e=>{"use strict";var t=e.i(271645),r=e.i(30030),s=e.i(820783),i=e.i(991918),a=e.i(843476),n=Object.defineProperty,o=(e,t)=>n(e,"name",{value:t,configurable:!0});function l(e){let n=e+"CollectionProvider",[l,d]=(0,r.createContextScope)(n),[c,u]=l(n,{collectionRef:{current:null},itemMap:new Map}),f=o(e=>{let{scope:r,children:s}=e,i=t.useRef(null),n=t.useRef(new Map).current;return(0,a.jsx)(c,{scope:r,itemMap:n,collectionRef:i,children:s})},"CollectionProvider");f.displayName=n;let m=e+"CollectionSlot",p=(0,i.createSlot)(m),h=t.forwardRef((e,t)=>
1{let{scope:r,children:i}=e,n=u(m,r),o=(0,s.useComposedRefs)(t,n.collectionRef);return(0,a.jsx)(p,{ref:o,children:i})});h.displayName=m;let g=e+"CollectionItemSlot",x="data-radix-collection-item",b=(0,i.createSlot)(g),v=t.forwardRef((e,r)=>{let{scope:i,children:n,...o}=e,l=t.useRef(null),d=(0,s.useComposedRefs)(r,l),c=u(g,i);return t.useEffect(()=>(c.itemMap.set(l,{ref:l,...o}),()=>void c.itemMap.delete(l))),(0,a.jsx)(b,{...{[x]:""},ref:d,children:n})});function w(r){let s=u(e+"CollectionConsumer",r);return t.useCallback(()=>{let e=s.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${x}]`));return Array.from(s.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[s.collectionRef,s.itemMap])}return v.displayName=g,o(w,"useCollection"),[{Provider:f,Slot:h,ItemSlot:v},w,d]}o(l,"createCollection");var d=new WeakMap,c=class e extends Map{static{o(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],d.set(this,!0)}set(e,t){return d.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let s,i=this.has(t),a=this.#e.length,n=m(e),o=n>=0?n:a+n,l=o<0||o>=a?-1:o;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,r),this;let d=this.size+ +!i;n<0&&o++;let c=[...this.#e],u=!1;for(let e=o;e<d;e++)if(o===e){let a=c[e];c[e]===t&&(a=c[e+1]),i&&this.delete(t),s=this.get(a),this.set(t,r)}else{u||c[e-1]!==t||(u=!0);let r=c[u?e:e-1],i=s;s=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,s){let i=new e(this);return i.insert(t,r,s),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let s=this.#e.indexOf(e);return -1===s?this:this.insert(s,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let s=this.#e.indexOf(e);return -1===s?this:this.insert(s+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=u(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=u(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return u(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return s;r++}}findIndex(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return r;r++}return -1}filter(t,r){let s=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&s.push(e),i++;return new e(s)}map(t,r){let s=[],i=0;for(let e of this)s.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(s)}reduce(...e){let[t,r]=e,s=0,i=r??this.at(0);for(let r of this)i=0===s&&1===e.length?r:Reflect.apply(t,this,[i,r,s,this]),s++;return i}reduceRight(...e){let[t,r]=e,s=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);s=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[s,i,r,this])}return s}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),s=this.get(r);t.set(r,s)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let s=new e,i=this.size-1;if(void 0===t)return s;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);s.set(t,r)}return s}every(e,t){let r=0;for(let s of this){if(!Reflect.apply(e,t,[s,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return!0;r++}return!1}};function u(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=f(e,t);return -1===r?void 0:e[r]}function f(e,t){let r=e.length,s=m(t),i=s>=0?s:r+s;return i<0||i>=r?-1:i}function m(e){return e!=e||0===e?0:Math.trunc(e)}function p(e,t){if(e===t)return!0;
1if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(let s of r)if(!Object.prototype.hasOwnProperty.call(t,s)||e[s]!==t[s])return!1;return!0}function h(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function g(e,t){return e[1].element&&t[1].element?h(e[1].element,t[1].element)?-1:1:0}function x(e){return new MutationObserver(t=>{for(let r of t)if("childList"===r.type)return void e()})}o(u,"at"),o(f,"toSafeIndex"),o(m,"toSafeInteger"),o(function(e){let n=e+"CollectionProvider",[l,d]=(0,r.createContextScope)(n),[u,f]=l(n,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new c,setItemMap:o(()=>void 0,"setItemMap")}),m=o(({state:e,...t})=>e?(0,a.jsx)(b,{...t,state:e}):(0,a.jsx)(h,{...t}),"CollectionProvider");m.displayName=n;let h=o(e=>{let t=S();return(0,a.jsx)(b,{...e,state:t})},"CollectionInit");h.displayName=n+"Init";let b=o(e=>{let{scope:r,children:i,state:n}=e,o=t.useRef(null),[l,d]=t.useState(null),c=(0,s.useComposedRefs)(o,d),[f,m]=n;return t.useEffect(()=>{if(!l)return;let e=x(()=>{});return e.observe(l,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[l]),(0,a.jsx)(u,{scope:r,itemMap:f,setItemMap:m,collectionRef:c,collectionRefObject:o,collectionElement:l,children:i})},"CollectionProviderImpl");b.displayName=n+"Impl";let v=e+"CollectionSlot",w=(0,i.createSlot)(v),y=t.forwardRef((e,t)=>{let{scope:r,children:i}=e,n=f(v,r),o=(0,s.useComposedRefs)(t,n.collectionRef);return(0,a.jsx)(w,{ref:o,children:i})});y.displayName=v;let k=e+"CollectionItemSlot",j=(0,i.createSlot)(k),N=t.forwardRef((e,r)=>{let{scope:i,children:n,...o}=e,l=t.useRef(null),[d,u]=t.useState(null),m=(0,s.useComposedRefs)(r,l,u),{setItemMap:h}=f(k,i),x=t.useRef(o);p(x.current,o)||(x.current=o);let b=x.current;return t.useEffect(()=>(h(e=>d?e.has(d)?e.set(d,{...b,element:d}).toSorted(g):(e.set(d,{...b,element:d}),e.toSorted(g)):e),()=>{h(e=>d&&e.has(d)?(e.delete(d),new c(e)):e)}),[d,b,h]),(0,a.jsx)(j,{"data-radix-collection-item":"",ref:m,children:n})});function S(){return t.useState(new c)}function E(t){let{itemMap:r}=f(e+"CollectionConsumer",t);return r}return N.displayName=k,o(S,"useInitCollection"),o(E,"useCollection"),[{Provider:m,Slot:y,ItemSlot:N},{createCollectionScope:d,useCollection:E,useInitCollection:S}]},"createCollection"),o(p,"shallowEqual"),o(h,"isElementPreceding"),o(g,"sortByDocumentPosition"),o(x,"getChildListObserver"),e.s(["createCollection",0,l],75830);var b=Object.defineProperty,v=t.createContext(void 0);function w(e){let r=t.useContext(v);return e||r||"ltr"}b(w,"name",{value:"useDirection",configurable:!0}),e.s(["useDirection",0,w],586318)},109756,e=>{"use strict";let t="facebook",r="tiktok",s=[t,r];e.s(["AD_PLATFORM_LABELS",0,{facebook:"Facebook",tiktok:"TikTok"},"AD_PLATFORM_SLOT_CAP_ERROR_FRAGMENT",0,"Ad Platform limit","FACEBOOK_AD_PLATFORM",0,t,"LIVE_AD_PLATFORM_ORDER",0,s,"RECONNECT_BANNER_DISMISS_KEY",0,"pf_reconnect_banner_dismissed","RECONNECT_CONNECTION_STATUSES",0,["revoked","needs_reauth"],"REMOVE_PIXELS_DOCS_URL",0,"https://docs.pixelflow.so/remove-pixels-from-your-site-xlv8s","TIKTOK_AD_PLATFORM",0,r,"TIKTOK_CONNECT_DOCS_URL",0,"https://docs.pixelflow.so/how-to-connect-your-tiktok-pixel-conversions-api-4b52v","TIKTOK_EVENTS_MANAGER_URL",0,"https://ads.tiktok.com/i18n/events_manager/datasource/list"])},767660,e=>{"use strict";var t=e.i(271645),r=e.i(30030),s=e.i(75830),i=e.i(820783),a=e.i(981140),n=e.i(369340),o=e.i(248425),l=e.i(934620),d=e.i(296626),c=e.i(610772),u=e.i(843476),f=Object.defineProperty,m=(e,t)=>f(e,"name",{value:t,configurable:!0}),p="Collapsible",[h,g]=(0,r.createContextScope)(p),[x,b]=h(p),v=t.forwardRef(m(function(e,r){let{__scopeCollapsible:s,open:i,defaultOpen:a,disabled:l,onOpenChange:d,...f}=e,[m,h]=(0,n.useControllableState)({prop:i,defaultProp:a??!1,onChange:d,caller:p});return(0,u.jsx)(x,{scope:s,disabled:l,contentId:(0,c.useId)(),open:m,onOpenToggle:t.useCallback(()=>h(e=>!e),[h]),children:(0,u.jsx)(o.Primitive.div,{"data-state":N(m),"data-disabled":l?"":void 0,...f,ref:r})})},"Collapsible")),w=t.forwardRef(m(function(e,t){let{__scopeCollapsible:r,...s}=e,i=b("CollapsibleTrigger",r);return(0,u.jsx)(o.Primitive.button,{type:"button","aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":N(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...s,ref:t,onClick:(0,a.composeEventHandlers)(e.onClick,i.onOpenToggle)})},"CollapsibleTrigger")),y="CollapsibleContent",k=t.forwardRef(m(function(e,t){let{forceMount:r,...s}=e,i=b(y,e.__scopeCollapsible);return(0,u.jsx)(d.Presence,{present:r||i.open,children:({present:e})=>(0,u.jsx)(j,{...s,ref:t,present:e})})},"CollapsibleContent")),j=t.forwardRef(m(function(e,r){let{__scopeCollapsible:s,present:a,children:n,...d}=e,c=b(y,s),[f,m]=t.useState(a),p=t.useRef(null),h=(0,i.useComposedRefs)(r,p),g=t.useRef(0),x=g.current,v=t.useRef(0),w=v.current,k=c.open||f,j=t.useRef(k),S=t.useRef(void 0);return t.useEffect(()=>{let e=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,l.useLayoutEffect)(()=>{let e=p.current;if(e){S.current=S.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,v.current=t.width,j.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),m(a)}},[c.open,a]),(0,u.jsx)(o.Primitive.div,{"data-state":N(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!k,...d,ref:h,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:k&&n})},"CollapsibleContentImpl"));function N(e){return e?"open":"closed"}m(N,"getState");var S=e.i(586318),E=Object.defineProperty,T=(e,t)=>
1E(e,"name",{value:t,configurable:!0}),C="Accordion",R=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[P,A,_]=(0,s.createCollection)(C),[I,O]=(0,r.createContextScope)(C,[_,g]),F=g(),M=t.forwardRef(T(function(e,t){let{type:r,...s}=e;return(0,u.jsx)(P.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,u.jsx)(U,{...s,ref:t}):(0,u.jsx)(K,{...s,ref:t})})},"Accordion")),[L,D]=I(C),[G,z]=I(C,{collapsible:!1}),K=t.forwardRef(T(function(e,r){let{value:s,defaultValue:i,onValueChange:a=T(()=>{},"onValueChange"),collapsible:o=!1,...l}=e,[d,c]=(0,n.useControllableState)({prop:s,defaultProp:i??"",onChange:a,caller:C});return(0,u.jsx)(L,{scope:e.__scopeAccordion,value:t.useMemo(()=>d?[d]:[],[d]),onItemOpen:c,onItemClose:t.useCallback(()=>o&&c(""),[o,c]),children:(0,u.jsx)(G,{scope:e.__scopeAccordion,collapsible:o,children:(0,u.jsx)(q,{...l,ref:r})})})},"AccordionImplSingle")),U=t.forwardRef(T(function(e,r){let{value:s,defaultValue:i,onValueChange:a=T(()=>{},"onValueChange"),...o}=e,[l,d]=(0,n.useControllableState)({prop:s,defaultProp:i??[],onChange:a,caller:C}),c=t.useCallback(e=>d((t=[])=>[...t,e]),[d]),f=t.useCallback(e=>d((t=[])=>t.filter(t=>t!==e)),[d]);return(0,u.jsx)(L,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:f,children:(0,u.jsx)(G,{scope:e.__scopeAccordion,collapsible:!0,children:(0,u.jsx)(q,{...o,ref:r})})})},"AccordionImplMultiple")),[V,H]=I(C),q=t.forwardRef(T(function(e,r){let{__scopeAccordion:s,disabled:n,dir:l,orientation:d="vertical",...c}=e,f=t.useRef(null),m=(0,i.useComposedRefs)(f,r),p=A(s),h="ltr"===(0,S.useDirection)(l),g=(0,a.composeEventHandlers)(e.onKeyDown,e=>{if(!R.includes(e.key))return;let t=e.target,r=p().filter(e=>!e.ref.current?.disabled),s=r.findIndex(e=>e.ref.current===t),i=r.length;if(-1===s)return;e.preventDefault();let a=s,n=i-1,o=T(()=>{(a=s+1)>n&&(a=0)},"moveNext"),l=T(()=>{(a=s-1)<0&&(a=n)},"movePrev");switch(e.key){case"Home":a=0;break;case"End":a=n;break;case"ArrowRight":"horizontal"===d&&(h?o():l());break;case"ArrowDown":"vertical"===d&&o();break;case"ArrowLeft":"horizontal"===d&&(h?l():o());break;case"ArrowUp":"vertical"===d&&l()}let c=a%i;r[c].ref.current?.focus()});return(0,u.jsx)(V,{scope:s,disabled:n,direction:l,orientation:d,children:(0,u.jsx)(P.Slot,{scope:s,children:(0,u.jsx)(o.Primitive.div,{...c,"data-orientation":d,ref:m,onKeyDown:n?void 0:g})})})},"AccordionImpl")),B="AccordionItem",[Y,$]=I(B),W=t.forwardRef(T(function(e,t){let{__scopeAccordion:r,value:s,...i}=e,a=H(B,r),n=D(B,r),o=F(r),l=(0,c.useId)(),d=s&&n.value.includes(s)||!1,f=a.disabled||e.disabled;return(0,u.jsx)(Y,{scope:r,open:d,disabled:f,triggerId:l,children:(0,u.jsx)(v,{"data-orientation":a.orientation,"data-state":ee(d),...o,...i,ref:t,disabled:f,open:d,onOpenChange:e=>{e?n.onItemOpen(s):n.onItemClose(s)}})})},"AccordionItem")),Z=t.forwardRef(T(function(e,t){let{__scopeAccordion:r,...s}=e,i=H(C,r),a=$("AccordionHeader",r);return(0,u.jsx)(o.Primitive.h3,{"data-orientation":i.orientation,"data-state":ee(a.open),"data-disabled":a.disabled?"":void 0,...s,ref:t})},"AccordionHeader")),X="AccordionTrigger",Q=t.forwardRef(T(function(e,t){let{__scopeAccordion:r,...s}=e,i=H(C,r),a=$(X,r),n=z(X,r),o=F(r);return(0,u.jsx)(P.ItemSlot,{scope:r,children:(0,u.jsx)(w,{"aria-disabled":a.open&&!n.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...o,...s,ref:t})})},"AccordionTrigger")),J=t.forwardRef(T(function(e,t){let{__scopeAccordion:r,...s}=e,i=H(C,r),a=$("AccordionContent",r),n=F(r);return(0,u.jsx)(k,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...n,...s,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})},"AccordionContent"));function ee(e){return e?"open":"closed"}T(ee,"getState"),e.s(["Content",0,J,"Header",0,Z,"Item",0,W,"Root",0,M,"Trigger",0,Q],767660)},371010,e=>{"use strict";let t=["/site-setup"];e.s(["getSubscriptionError",0,(e,t,r)=>`Your ${e?.tenant?.tenant_subscription_id?"subscription plan":"free trial"} has ended. Please ${e?.tenant?.tenant_subscription_id?"activate":"choose"} a plan to ${t} a ${r}.`,"hasPlan",0,e=>!!e?.tenant?.tenant_subscription,"hasSubscriptionAccess",0,e=>e?.is_subscription_active??!1,"routeRequiresActiveSubscription",0,e=>t.some(t=>e===t||e.startsWith(`${t}/`))])},255394,e=>{"use strict";var t=e.i(796746);let r="auth",{useRegisterMutation:s,useLoginMutation:i,useForgotPasswordMutation:a,useResetPasswordMutation:n,useLogoutMutation:o,useGoogleAuthMutation:l,useGetToolkitTokenMutation:d,useTransferOwnershipMutation:c,useSwitchTenantMutation:u,useProvisionTenantMutation:f}=t.default.injectEndpoints({endpoints:e=>({register:e.mutation({query:e=>({url:`${r}/register`,method:"POST",body:e})}),login:e.mutation({query:e=>({url:`${r}/login`,method:"POST",body:e})}),googleAuth:e.mutation({query:e=>({url:`${r}/google`,method:"POST",body:e})}),forgotPassword:e.mutation({query:e=>({url:`${r}/forgot-password`,method:"POST",body:e})}),resetPassword:e.mutation({query:e=>({url:`${r}/reset-password`,method:"POST",body:e})}),logout:e.mutation({query:()=>({url:`${r}/logout-all`,method:"POST"})}),getToolkitToken:e.mutation({query:()=>({url:`${r}/toolkit-token`,method:"POST"})}),transferOwnership:e.mutation({query:e=>({url:`${r}/transfer-ownership`,method:"POST",body:e})}),switchTenant:e.mutation({query:e=>({url:`${r}/switch-tenant`,method:"POST",body:e})}),provisionTenant:e.mutation({query:()=>({url:`${r}/provision-tenant`,method:"POST"})})}),overrideExisting:!1});e.s(["useForgotPasswordMutation",0,a,"useGetToolkitTokenMutation",0,d,"useGoogleAuthMutation",0,l,"useLoginMutation",0,i,"useLogoutMutation",0,o,"useProvisionTenantMutation",0,f,"useRegisterMutation",0,s,"useResetPasswordMutation",0,n,"useSwitchTenantMutation",0,u,"useTransferOwnershipMutation",0,c])},973741,e=>{"use strict";var t=e.i(271645),r=e.i(248425),s=e.i(843476),i=Object.defineProperty,a=t.forwardRef(i(function(e,t){return(0,s.jsx)(r.Primitive.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0}));
1e.s(["Root",0,a])},716327,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],716327)},257152,e=>{"use strict";var t=e.i(843476);e.s(["default",0,({width:e="45",height:r="45"})=>(0,t.jsxs)("svg",{width:e,height:r,viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M44.6641 23.1534C44.6641 24.1158 43.8839 24.896 42.9216 24.896H26.8032C25.8408 24.896 25.0606 25.6762 25.0606 26.6386V42.7579C25.0606 43.7203 24.2804 44.5005 23.318 44.5005H2.4067C1.4443 44.5005 0.664124 43.7203 0.664124 42.7579V21.8466C0.664124 20.8842 1.4443 20.104 2.4067 20.104H18.5251C19.4875 20.104 20.2676 19.3238 20.2676 18.3614V2.24306C20.2676 1.28067 21.0478 0.500488 22.0102 0.500488H42.9216C43.8839 0.500488 44.6641 1.28067 44.6641 2.24306V23.1534Z",fill:"url(#paint0_linear_72_45)"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"paint0_linear_72_45",x1:"1.00258",y1:"44.9235",x2:"51.5636",y2:"12.0588",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#FF2CFF"}),(0,t.jsx)("stop",{offset:"0.5",stopColor:"#722CFF"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#2C72FF"})]})})]})])},18268,e=>{"use strict";var t=e.i(843476),r=e.i(257152);e.s(["default",0,()=>(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(r.default,{width:20,height:20}),(0,t.jsx)("span",{className:"font-primary text-[24px] font-medium tracking-tight text-[#121212]",children:"Pixel Flow"})]})])},575332,e=>{"use strict";var t=e.i(843476);e.s(["default",0,({children:e})=>(0,t.jsx)("div",{className:"flex h-full w-full flex-col justify-center bg-cover bg-center px-auth-panel-x py-12 text-white",style:{backgroundImage:"url('/marketing/auth-panel-bg.webp'), linear-gradient(135deg, var(--auth-panel-from) 0%, var(--auth-panel-to) 100%)",backgroundColor:"var(--auth-panel-to)"},children:e})])},711241,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],711241)},786563,e=>{"use strict";let t=(0,e.i(456420).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",0,t],786563)},768877,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],768877)},138035,548348,987545,712224,888098,e=>{"use strict";var t=e.i(843476),r=e.i(511398),s=e.i(271645),i=e.i(711241),a=e.i(768877),n=e.i(408230),o=e.i(69123);let l=({steps:e,tabs:r,activeStepIndex:l=0,onSlideChange:d,title:c,description:u,tabGroups:f,analyticsStep:m})=>
1{let[p,h]=(0,s.useState)(0),[g,x]=(0,s.useState)(()=>f?f.map(()=>0):[]),b=e.filter(e=>e.slide),[v,w]=(0,s.useState)(0);(0,s.useEffect)(()=>{if(f)return;let t=b.findIndex((t,r)=>e.indexOf(b[r])===l);t>=0&&t!==v&&w(t)},[l]);let y=(0,s.useCallback)((e,t)=>{m&&(0,n.capturePostHogEvent)(o.POSTHOG_EVENTS.SITE_SETUP_RAIL_NAVIGATED,{[o.POSTHOG_EVENT_PROPERTIES.STEP_NAME]:m,[o.POSTHOG_EVENT_PROPERTIES.DIRECTION]:e,[o.POSTHOG_EVENT_PROPERTIES.SLIDE_INDEX]:t})},[m]),k=(0,s.useCallback)(e=>{h(e)},[]),j=(0,s.useCallback)(()=>{let e=Math.max(0,(g[p]??0)-1);x(t=>{let r=[...t];return r[p]=e,r}),y("left",e)},[p,g,y]),N=(0,s.useCallback)(e=>{let t=Math.min(e-1,(g[p]??0)+1);x(e=>{let r=[...e];return r[p]=t,r}),y("right",t)},[p,g,y]),S=(0,s.useCallback)(()=>{let t=Math.max(0,v-1);w(t),y("left",t),d?.(e.indexOf(b[t]))},[v,d,b,e,y]),E=(0,s.useCallback)(()=>{let t=Math.min(b.length-1,v+1);w(t),y("right",t),d?.(e.indexOf(b[t]))},[v,d,b,e,y]),T=(0,s.useCallback)(t=>{w(t),d?.(e.indexOf(b[t]))},[d,b,e]);if(f&&f.length>0){let e=f[p],r=g[p]??0,s=e?.slides[r],n=e?.slides.length??0;return(0,t.jsxs)("div",{className:"flex flex-col gap-9 w-full max-w-[539px]",children:[(c||u)&&(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[c&&(0,t.jsx)("p",{className:"text-xl font-semibold leading-none text-card-foreground",children:c}),u&&(0,t.jsx)("p",{className:"text-sm font-normal leading-5 text-muted-foreground",children:u})]}),(0,t.jsx)("div",{className:"inline-flex h-9 w-fit shrink-0 items-center rounded-lg bg-muted p-[3px]",children:f.map((e,r)=>(0,t.jsx)("button",{type:"button",onClick:()=>k(r),className:r===p?"flex h-full items-center justify-center rounded-md bg-card px-2 py-1 shadow-sm":"flex h-full items-center justify-center rounded-md px-2 py-1",children:(0,t.jsx)("span",{className:`text-sm font-medium leading-5 whitespace-nowrap ${r===p?"text-foreground":"text-muted-foreground"}`,children:e.label})},e.label))}),s&&(0,t.jsx)("div",{className:"rounded-[14px] border border-border bg-card p-6 shadow-sm flex flex-col gap-6",children:(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsx)("div",{className:"text-sm leading-5 text-muted-foreground",children:s.description}),(0,t.jsx)("div",{className:"relative h-[318px] overflow-hidden rounded-[6px] border border-border",children:(0,t.jsx)("img",{src:s.image,alt:s.caption,className:"absolute left-0 top-0 w-full h-[111%]"})})]})}),n>1&&(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:j,disabled:0===r,"aria-label":"Previous slide",className:"flex size-10 items-center justify-center rounded-md border border-input bg-card shadow-sm disabled:opacity-40",children:(0,t.jsx)(i.ArrowLeft,{className:"size-4 text-foreground"})}),(0,t.jsx)("button",{type:"button",onClick:()=>N(n),disabled:r===n-1,"aria-label":"Next slide",className:"flex size-10 items-center justify-center rounded-md border border-input bg-card shadow-sm disabled:opacity-40",children:(0,t.jsx)(a.ArrowRight,{className:"size-4 text-foreground"})})]})]})}if(0===b.length)return null;let C=b[v],R=r&&r.length>0;return(0,t.jsxs)("div",{className:"flex flex-col gap-9 w-full max-w-[539px]",children:[(c||u)&&(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[c&&(0,t.jsx)("p",{className:"text-xl font-semibold leading-none text-card-foreground",children:c}),u&&(0,t.jsx)("p",{className:"text-sm font-normal leading-5 text-muted-foreground",children:u})]}),R&&(0,t.jsx)("div",{className:"inline-flex h-9 w-fit shrink-0 items-center rounded-lg bg-muted p-[3px]",children:r.map((e,r)=>(0,t.jsx)("button",{type:"button",onClick:()=>T(r),className:r===v?"flex h-full items-center justify-center rounded-md bg-card px-2 py-1 shadow-sm":"flex h-full items-center justify-center rounded-md px-2 py-1",children:(0,t.jsx)("span",{className:`text-sm font-medium leading-5 whitespace-nowrap ${r===v?"text-foreground":"text-muted-foreground"}`,children:e})},e))}),(0,t.jsx)("div",{className:"rounded-[14px] border border-border bg-card p-6 shadow-sm flex flex-col gap-6",children:C.slide&&(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsx)("div",{className:"text-sm leading-5 text-muted-foreground",children:C.description}),(0,t.jsx)("div",{className:"relative h-[318px] overflow-hidden rounded-[6px] border border-border",children:(0,t.jsx)("img",{src:C.slide.image,alt:C.slide.caption,className:"absolute left-0 top-0 w-full h-[111%]"})})]})}),b.length>1&&(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:S,disabled:0===v,"aria-label":"Previous slide",className:"flex size-10 items-center justify-center rounded-md border border-input bg-card shadow-sm disabled:opacity-40",children:(0,t.jsx)(i.ArrowLeft,{className:"size-4 text-foreground"})}),(0,t.jsx)("button",{type:"button",onClick:E,disabled:v===b.length-1,"aria-label":"Next slide",className:"flex size-10 items-center justify-center rounded-md border border-input bg-card shadow-sm disabled:opacity-40",children:(0,t.jsx)(a.ArrowRight,{className:"size-4 text-foreground"})})]})]})};e.s(["default",0,l],548348);var d=e.i(716327),c=e.i(767660);let u=({title:e,children:r,defaultOpen:s=!1,value:i="item-1"})=>(0,t.jsx)(c.Root,{type:"single",collapsible:!0,defaultValue:s?i:void 0,className:"w-full overflow-clip rounded-lg border border-border",children:(0,t.jsxs)(c.Item,{value:i,children:[(0,t.jsxs)(c.Trigger,{className:"flex w-full items-center justify-between px-4 py-4 text-sm font-medium leading-5 text-foreground [&[data-state=open]>
1svg]:rotate-180",children:[e,(0,t.jsx)(d.ChevronDown,{className:"size-4 shrink-0 text-foreground transition-transform duration-200","aria-hidden":!0})]}),(0,t.jsx)(c.Content,{className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",children:(0,t.jsx)("div",{className:"flex flex-col gap-3 px-4 pb-4",children:r})})]})});e.s(["default",0,u],987545);var f=e.i(786563);let m=({headline:e,body:r,testimonial:s,checklist:i})=>(0,t.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)("h2",{className:"text-6xl font-semibold leading-none text-white",children:e}),r&&(0,t.jsx)("p",{className:"text-lg leading-7 text-white/90",children:r})]}),i&&i.length>0&&(0,t.jsx)("ul",{className:"flex flex-col gap-3",children:i.map((e,r)=>(0,t.jsxs)("li",{className:"flex items-start gap-2.5 text-sm leading-5 text-white/90",children:[(0,t.jsx)("span",{className:"mt-0.5 shrink-0 size-4 rounded-full bg-white/15 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"size-2.5 text-white",viewBox:"0 0 10 10","aria-hidden":!0,children:(0,t.jsx)("polyline",{points:"1.5,5 4,7.5 8.5,2.5",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),e]},r))}),s&&(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsx)("div",{className:"flex gap-1.5",children:Array.from({length:5}).map((e,r)=>(0,t.jsx)(f.Star,{className:"h-4 w-4 fill-rating text-rating"},r))}),(0,t.jsxs)("blockquote",{className:"text-xl font-semibold leading-7 text-white",children:["â",s.quote,"â"]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[s.avatarUrl?(0,t.jsx)("img",{src:s.avatarUrl,alt:s.name,width:50,height:50,className:"size-testimonial-avatar shrink-0 rounded-full object-cover"}):(0,t.jsx)("div",{className:"size-testimonial-avatar shrink-0 rounded-full bg-white/20 flex items-center justify-center","aria-hidden":!0,children:(0,t.jsx)("span",{className:"text-xs font-semibold text-white",children:s.name.split(" ").map(e=>e[0]).join("").slice(0,2).toUpperCase()})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium text-white",children:s.name}),(0,t.jsx)("p",{className:"text-sm text-white",children:s.company})]})]})]})]});e.s(["default",0,m],712224),e.s(["default",0,({widget:e,instructionSteps:s,activeInstructionIndex:i,onSlideChange:a,analyticsStep:n})=>{switch(e.type){case"MarketingPanel":return(0,t.jsx)(m,{headline:e.headline,body:e.body,testimonial:e.testimonial,checklist:e.checklist});case"ValueProp":return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("p",{className:"text-xl font-semibold leading-none text-card-foreground",children:e.headline}),(0,t.jsx)("p",{className:"text-sm leading-5 text-muted-foreground",children:e.body})]});case"StepChecklist":return(0,t.jsx)("ul",{className:"flex flex-col gap-2",children:e.items.map((e,r)=>(0,t.jsxs)("li",{className:"flex items-start gap-2 text-sm leading-5 text-foreground",children:[(0,t.jsx)("span",{className:"mt-0.5 size-4 rounded-full bg-primary/10 flex items-center justify-center shrink-0",children:(0,t.jsx)("svg",{className:"size-2.5 text-primary",viewBox:"0 0 10 10","aria-hidden":!0,children:(0,t.jsx)("polyline",{points:"1.5,5 4,7.5 8.5,2.5",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),e]},r))});case"HelpAccordion":return(0,t.jsxs)(u,{title:e.question,children:[(0,t.jsx)("p",{className:"text-xs leading-4 text-muted-foreground",children:e.answer}),e.ctaLabel&&e.ctaHref&&(0,t.jsx)(r.Button,{variant:"secondary",className:"w-fit",asChild:!0,children:(0,t.jsx)("a",{href:e.ctaHref,target:"_blank",rel:"noopener noreferrer",children:e.ctaLabel})})]});case"Testimonial":return(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("p",{className:"text-sm leading-5 text-foreground",children:["â",e.quote,"â"]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[e.avatarUrl&&(0,t.jsx)("img",{src:e.avatarUrl,alt:e.name,className:"size-10 rounded-full object-cover"}),(0,t.jsxs)("p",{className:"text-sm font-medium leading-5 text-foreground",children:[e.name,(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"text-muted-foreground font-normal",children:e.company})]})]})]});case"SecurityReassurance":return(0,t.jsx)("ul",{className:"flex flex-col gap-1",children:e.lines.map((e,r)=>(0,t.jsx)("li",{className:"text-xs leading-4 text-muted-foreground",children:e},r))});case"LiveStatus":return(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"size-2 roun
1ded-full bg-success animate-pulse","aria-hidden":!0}),(0,t.jsx)("p",{className:"text-sm leading-5 text-muted-foreground",children:e.label})]});case"StepImageCarousel":return(0,t.jsx)(l,{steps:s??e.steps,tabs:e.tabs,activeStepIndex:i,onSlideChange:a,title:e.title,description:e.description,tabGroups:e.tabGroups,analyticsStep:n});default:return null}}],138035);var p=e.i(109756);let h={quote:"I was banging my head against a wall with Google Tag Manager for days. This is just so simple, thank you.",name:"Abby Wood",company:"TheContentLab.ie",avatarUrl:"/testimonials/abby-wood.png"},g={login:{background:"site-setup-rail-gradient",widgets:[{type:"MarketingPanel",headline:"Send ads the data they are missing",testimonial:h}]},register:{background:"site-setup-rail-gradient",widgets:[{type:"MarketingPanel",headline:(0,t.jsxs)(t.Fragment,{children:["Accurate tracking,",(0,t.jsx)("br",{}),"lower cost per result"]}),body:"7-day free trial · No credit card · Live in 10 min",testimonial:h}]},welcome:{background:"site-setup-rail-gradient",widgets:[{type:"MarketingPanel",headline:"Better tracking starts here. Better results follow.",body:"Ad platforms see every click and purchase â even the ones iOS and ad blockers would normally drop. Setup takes 10 minutes.",testimonial:{quote:"Setup was effortless. PixelFlow was super fast, personable, and saved me tons of time and ad spend.",name:"Dustin",company:"couchguy.com",avatarUrl:"/testimonials/couch-guy.webp"}}]},platform:{background:"site-setup-rail-gradient",widgets:[{type:"MarketingPanel",headline:(0,t.jsxs)(t.Fragment,{children:["Server-side tracking",(0,t.jsx)("br",{}),"live in 10 minutes."]}),body:"Pick your website builder. PixelFlow handles the connection; no developer, no configuration.",testimonial:h}]},"add-site":{background:"site-setup-rail-gradient",widgets:[{type:"MarketingPanel",headline:"Your domain. Here's what it unlocks.",body:"PixelFlow fires both browser and server-side events to ad platforms simultaneously â with deduplication, extended cookies, and bot filtering built in.",testimonial:{quote:"Since adding the Conversions API to our website, Facebook is sending us better traffic, we have more accurate ad manager reporting and we're now able to spend less while knowing which campaigns to scale.",name:"Niall Doherty",company:"ReviewFox.co",avatarUrl:"/testimonials/naill_doherty.webp"}}]},"connect-capi":{background:"bg-slate-50",widgets:[{type:"StepImageCarousel",title:"Never done this before?",description:"Facebook's interface isn't the most intuitive. Follow the steps below and you'll have your Pixel ID and access token in under two minutes.",tabs:["Pixel ID","Access token"],steps:[{id:"find-pixel-id",kind:"plain",description:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-foreground font-medium",children:"1."})," Go to"," ",(0,t.jsx)("a",{href:"https://business.facebook.com/events_manager",target:"_blank",rel:"noopener noreferrer",className:"text-foreground font-normal underline",children:"Facebook Events Manager"})," ","â Datasets. Your Pixel ID is listed there."]}),slide:{image:"/onboarding/shared/meta-pixel-id.webp",caption:"Find your Pixel ID"}},{id:"get-access-token",kind:"plain",description:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-foreground font-medium",children:"1."})," Open your Pixel â"," ",(0,t.jsx)("span",{className:"text-foreground font-medium",children:"Settings"})," â"," ",(0,t.jsx)("span",{className:"text-foreground font-medium",children:"Conversions API"}),". Generate or copy your access token."]}),slide:{image:"/onboarding/shared/pixel-access-token.webp",caption:"Get your access token"}}]}]},"connect-capi-auto":{background:"bg-slate-50",widgets:[{type:"StepImageCarousel",title:"What's a Business Portfolio?",description:"It's where Facebook keeps your ad accounts and Pixels together, the Conversions API connects through it. If you don't have one, you can set one up in minutes.",steps:[{id:"business-portfolio",kind:"plain",description:(0,t.jsxs)(t.Fragment,{children:["Go to your"," ",(0,t.jsx)("a",{href:"https://adsmanager.facebook.com/adsmanager/manage/accounts",target:"_blank",rel:"noopener noreferrer",className:"text-foreground underline",children:"Facebook account"})," ","and create a Business Portfolio if you don't have one yet."]}),slide:{image:"/meta/meta-create-business-portfolio.webp",caption:"Facebook Business Portfolio"}}]}]}
1,"connect-capi-manual":{background:"bg-slate-50",widgets:[{type:"StepImageCarousel",title:"Never done this before?",description:"Facebook's interface isn't the most intuitive. Follow the steps below and you'll have your Pixel ID and access token in under two minutes.",steps:[],tabGroups:[{label:"Pixel ID",slides:[{description:(0,t.jsxs)(t.Fragment,{children:["Go to"," ",(0,t.jsx)("a",{href:"https://business.facebook.com/events_manager",target:"_blank",rel:"noopener noreferrer",className:"text-foreground underline",children:"Facebook Events Manager"})," ","â Datasets and select your dataset (Pixel) â Click Settings â Copy Dataset ID and paste in Pixel ID field"]}),image:"/meta/meta-pixel-id.webp",caption:"Find your Pixel ID in Facebook Events Manager"}]},{label:"Access token",slides:[{description:(0,t.jsxs)(t.Fragment,{children:["1. Go to"," ",(0,t.jsx)("a",{href:"https://business.facebook.com/events_manager",target:"_blank",rel:"noopener noreferrer",className:"text-foreground underline",children:"Facebook Events Manager"})," ","â Datasets and select your dataset (Pixel) â Click Settings â Scroll down to Setup Direct Integration section â Click Generate Access Token"]}),image:"/meta/meta-access-token-generate.webp",caption:"Generate access token in Facebook Events Manager"},{description:(0,t.jsx)(t.Fragment,{children:"2. Copy generated access token and paste it in the Access token field"}),image:"/meta/meta-access-token-copy.webp",caption:"Copy and paste the generated access token"}]}]}]},"connect-capi-tiktok-oauth":{background:"bg-slate-50",widgets:[{type:"StepImageCarousel",title:"Need a Pixel first?",description:"Connect with TikTok only lists Pixels that already exist on the ad account. If you don't have one, you can create it in Events Manager in a few minutes.",steps:[{id:"tiktok-pixel",kind:"plain",description:(0,t.jsxs)(t.Fragment,{children:["Go to"," ",(0,t.jsx)("a",{href:p.TIKTOK_EVENTS_MANAGER_URL,target:"_blank",rel:"noopener noreferrer",className:"text-foreground underline",children:"TikTok Events Manager"})," ","â Click Connect data source â Web â Paste your website URL â Manual setup â TikTok Pixel + Events API â Next â Finish"]}),slide:{image:"/tiktok/tiktok-create-pixel.webp",caption:"Create a TikTok Pixel"}}]}]},"connect-capi-tiktok-manual":{background:"bg-slate-50",widgets:[{type:"StepImageCarousel",title:"Never done this before?",description:(0,t.jsxs)(t.Fragment,{children:["TikTok's interface isn't the most intuitive. Follow the steps below and you'll have your Pixel ID and access token in under two minutes."," ",(0,t.jsx)("a",{href:p.TIKTOK_CONNECT_DOCS_URL,target:"_blank",rel:"noopener noreferrer",className:"text-foreground underline",children:"Read the guide"})]}),steps:[],tabGroups:[{label:"Pixel ID",slides:[{description:(0,t.jsxs)(t.Fragment,{children:["Go to"," ",(0,t.jsx)("a",{href:p.TIKTOK_EVENTS_MANAGER_URL,target:"_blank",rel:"noopener noreferrer",className:"text-foreground underline",children:"TikTok"})," ","â Tools â Events Manager â select your Data Source â Copy Pixel ID and paste in Pixel ID field"]}),image:"/tiktok/tiktok-pixel-id.png",caption:"Find your Pixel ID in TikTok Events Manager"}]},{label:"Access token",slides:[{description:(0,t.jsxs)(t.Fragment,{children:["Go to"," ",(0,t.jsx)("a",{href:p.TIKTOK_EVENTS_MANAGER_URL,target:"_blank",rel:"noopener noreferrer",className:"text-foreground underline",children:"TikTok"})," ","â Tools â Events Manager â select your Data Source â Settings â Events API â Generate access token and paste it in the Access token field"]}),image:"/tiktok/tiktok-access-token.png",caption:"Generate access token in TikTok Events Manager"}]}]}]},"install-script":{background:"bg-slate-50",widgets:[{type:"StepImageCarousel",steps:[],title:"How to add your tracking snippet",description:"Follow the steps below to get your PixelFlow snippet installed. No technical knowledge required."}]},verify:{background:"site-setup-rail-gradient",widgets:[{type:"MarketingPanel",headline:"Something just changed for your Facebook ads.",body:"Events appear in Facebook Events Manager within minutes. Targeting and reporting start improving within 48 hours.",testimonial:{quote:"We saw our costs drop 40% which is allowing us to scale massively.",name:"ADPlayers",company:"ADPlayers.org",avatarUrl:"/testimonials/ad-players.av
1if"}}]},congrats:{background:"site-setup-rail-gradient",widgets:[{type:"MarketingPanel",headline:"Complete. Your ads just got a significant upgrade.",body:"Server-side events are live. EMQ improves as data builds. Configure your key conversions with customer data extraction - takes minutes, no code - to unlock higher scores.",testimonial:{quote:"PixelFlow puts us at the top of the paid social game with an average Event Match Quality of 9.3.",name:"Sebastian",company:"Studio-baguette.com",avatarUrl:"/testimonials/studio-baguette.avif"}}]}};e.s(["RIGHT_RAIL_REGISTRY",0,g],888098)},45658,e=>{"use strict";e.s(["getRewardfulReferral",0,()=>new Promise(e=>{if("function"!=typeof window.rewardful)return void e(null);let t=!1,r=r=>{t||(t=!0,e(r))};window.rewardful("ready",()=>{r(window.Rewardful?.referral??null)}),window.setTimeout(()=>r(null),3e3)})])},249020,e=>{"use strict";var t=e.i(843476);e.s(["IconGoogle",0,function({...e}){return(0,t.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("path",{d:"M16.2449 13.8184V18.4657H22.8349C22.5455 19.9602 21.6771 21.2257 20.3747 22.0766L24.3487 25.0985C26.6642 23.004 28 19.9276 28 16.273C28 15.4221 27.9221 14.6039 27.7773 13.8185L16.2449 13.8184Z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M5.3137 10.6221C4.47886 12.2366 4.00024 14.0584 4.00024 16.0002C4.00024 17.942 4.47886 19.7639 5.3137 21.3784C5.3137 21.3892 9.388 18.2802 9.388 18.2802C9.14311 17.5602 8.99835 16.7966 8.99835 16.0001C8.99835 15.2036 9.14311 14.44 9.388 13.72L5.3137 10.6221Z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M16.2448 8.77821C18.0482 8.77821 19.6511 9.3891 20.9313 10.5673L24.4378 7.13097C22.3116 5.18917 19.551 4 16.2448 4C11.4582 4 7.32833 6.69456 5.31348 10.6219L9.38766 13.7201C10.3561 10.8837 13.0611 8.77821 16.2448 8.77821Z",fill:"#EA4335"}),(0,t.jsx)("path",{d:"M9.38238 18.2842L8.48609 18.9566L5.31348 21.3784C7.32833 25.2947 11.4579 28.0002 16.2445 28.0002C19.5506 28.0002 22.3224 26.9311 24.3484 25.0984L20.3744 22.0766C19.2835 22.7966 17.892 23.233 16.2445 23.233C13.0609 23.233 10.3559 21.1275 9.38739 18.2911L9.38238 18.2842Z",fill:"#34A853"})]})}])},686247,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(156132);let i=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("div",{ref:i,className:(0,s.cn)("rounded-lg border border-border bg-card text-card-foreground shadow-sm",e),...r}));i.displayName="Card";let a=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("div",{ref:i,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",e),...r}));a.displayName="CardHeader",r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("div",{ref:i,className:(0,s.cn)("text-2xl font-semibold leading-none tracking-tight",e),...r})).displayName="CardTitle",r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("div",{ref:i,className:(0,s.cn)("text-sm text-muted-foreground",e),...r})).displayName="CardDescription";let n=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("div",{ref:i,className:(0,s.cn)("p-6 pt-0",e),...r}));n.displayName="CardContent",r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("div",{ref:i,className:(0,s.cn)("flex items-center p-6 pt-0",e),...r})).displayName="CardFooter",e.s(["Card",0,i,"CardContent",0,n,"CardHeader",0,a])},715524,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(225913),i=e.i(156132);let a=(0,s.cva)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),n=r.forwardRef(({className:e,variant:r,...s},n)=>(0,t.jsx)("div",{ref:n,role:"alert",className:(0,i.cn)(a({variant:r}),e),...s}));n.displayName="Alert";let o=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)("h5",{ref:s,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",e),...r}));o.displayName="AlertTitle";let l=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)("div",{ref:s,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",e),...r}));l.displayName="AlertDescription",e.s(["Alert",0,n,"AlertDescription",0,l,"AlertTitle",0,o])}
1,991677,e=>{"use strict";var t=e.i(843476),r=e.i(18268),s=e.i(575332);e.s(["default",0,({children:e,panel:i,footer:a})=>(0,t.jsxs)("div",{className:"flex min-h-screen min-w-0 overflow-x-hidden",children:[(0,t.jsxs)("div",{className:"flex w-full min-w-0 flex-col lg:w-1/2",children:[(0,t.jsx)("div",{className:"px-10 pt-8",children:(0,t.jsx)("a",{href:"/","aria-label":"PixelFlow home",children:(0,t.jsx)(r.default,{})})}),(0,t.jsx)("div",{className:"flex flex-1 items-center justify-center px-6 py-12",children:e}),a&&(0,t.jsx)("div",{className:"px-10 pb-8",children:a})]}),(0,t.jsx)("div",{className:"hidden lg:flex lg:w-1/2",children:(0,t.jsx)(s.default,{children:i})})]})])},248474,e=>{"use strict";var t=e.i(681307);let r=t.z.object({email:t.z.string().min(1,"Email is required").email("Invalid email address"),password:t.z.string().min(1,"Password is required"),turnstileToken:t.z.string().min(1,"Please complete the verification")}),s={minLength:e=>e.length>=8,hasLetter:e=>/[a-zA-Z]/.test(e),hasNumberOrSpecial:e=>/[^a-zA-Z]/.test(e)},i=t.z.object({name:t.z.string().min(2,"Full name must be at least 2 characters"),email:t.z.string().min(1,"Email is required").email("Invalid email address"),password:t.z.string().min(8,"Password must be at least 8 characters").refine(s.hasLetter,"Password must contain at least one letter").refine(s.hasNumberOrSpecial,"Password must contain at least one number or special character"),turnstileToken:t.z.string().min(1,"Please complete the verification")}),a=t.z.object({email:t.z.string().min(1,"Email is required").email("Invalid email address"),turnstileToken:t.z.string().min(1,"Please complete the verification")}),n=t.z.object({password:t.z.string().min(8,"Password must be at least 8 characters").refine(s.hasLetter,"Password must contain at least one letter").refine(s.hasNumberOrSpecial,"Password must contain at least one number or special character"),confirmPassword:t.z.string()}).refine(e=>e.password===e.confirmPassword,{message:"Passwords do not match",path:["confirmPassword"]});e.s(["forgotPasswordSchema",0,a,"loginSchema",0,r,"passwordRules",0,s,"registerSchema",0,i,"resetPasswordSchema",0,n])},630305,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(772382);let i=(0,e.i(456420).default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var a=e.i(118621),n=e.i(156132);let o=(0,r.forwardRef)(({className:e,"aria-invalid":o,...l},d)=>{let[c,u]=(0,r.useState)(!1);return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(a.Input,{...l,ref:d,type:c?"text":"password","aria-invalid":o,className:(0,n.cn)("pr-9",e)}),(0,t.jsx)("button",{type:"button",onClick:()=>u(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:c?(0,t.jsx)(i,{className:"h-4 w-4"}):(0,t.jsx)(s.Eye,{className:"h-4 w-4"})})]})});o.displayName="PasswordField",e.s(["default",0,o],630305)},809916,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let s="cloudflare-turnstile-script";e.s(["default",0,({onSuccess:e,onError:i,onExpired:a,resetTrigger:n,theme:o="auto",size:l="normal",appearance:d="always"})=>{let c=(0,r.useRef)(null),u=(0,r.useRef)(null),f=(0,r.useRef)({onSuccess:e,onError:i,onExpired:a}),m="0x4AAAAAAB_gLOxh_9hkVByE";(0,r.useEffect)(()=>{f.current={onSuccess:e,onError:i,onExpired:a}},[e,i,a]);let p=(0,r.useCallback)(()=>{if(u.current&&window.turnstile)try{window.turnstile.reset(u.current)}catch(e){console.warn("Error resetting Turnstile widget:",e instanceof Error?e.message:String(e))}},[]),h=(0,r.useCallback)(()=>{if(c.current&&window.turnstile&&!u.current&&m)try{u.current=window.turnstile.render(c.current,{sitekey:m,theme:o,size:l,appearance:d,callback:e=>{f.current.onSuccess?.(e)},"error-callback":e=>{console.warn("Turnstile error:",e),f.current.onError?.(e)},"expired-callback":()=>{f.current.onExpired?.()}})}catch(e){console.warn("Error rendering Turnstile widget:",e instanceof Error?e.message:String(e))}},[m,o,l,d]);return(0,r.useEffect)(()=>
1{if(document.getElementById(s)||window.turnstileScriptLoaded)if(window.turnstile)h();else{let e=setInterval(()=>{window.turnstile&&(clearInterval(e),h())},100);return()=>clearInterval(e)}else{let e=document.createElement("script");e.id=s,e.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",e.async=!0,e.defer=!0,e.onload=()=>{window.turnstileScriptLoaded=!0,h()},e.onerror=()=>{console.warn("Failed to load Cloudflare Turnstile script")},document.head.appendChild(e)}return()=>{if(u.current&&window.turnstile)try{window.turnstile.remove(u.current),u.current=null}catch(e){console.warn("Error removing Turnstile widget:",e instanceof Error?e.message:String(e))}}},[m,o,l,d,h]),(0,r.useEffect)(()=>{"number"==typeof n&&p()},[n,p]),(0,t.jsx)("div",{ref:c,className:"mx-auto w-full"})}])},987612,e=>{"use strict";e.s(["PENDING_INVITE_TOKEN_KEY",0,"PENDING_INVITE_TOKEN","PLUGIN_AUTH_STORAGE_TTL_MS",0,9e5])},343496,e=>{"use strict";var t=e.i(271645),r=e.i(618566),s=e.i(68385),i=e.i(987612);e.s(["usePluginAuthContext",0,()=>{let e=(0,r.useSearchParams)(),a=e.get("sessionKey"),n=e.get("platform");(0,t.useEffect)(()=>{a&&s.localStorageService.setItem(s.STORAGE_KEYS.SESSION_KEY,a,i.PLUGIN_AUTH_STORAGE_TTL_MS),n&&s.localStorageService.setItem(s.STORAGE_KEYS.PLATFORM,n,i.PLUGIN_AUTH_STORAGE_TTL_MS)},[a,n]);let o=a||s.localStorageService.getItem(s.STORAGE_KEYS.SESSION_KEY);return{sessionKey:o,platform:n||s.localStorageService.getItem(s.STORAGE_KEYS.PLATFORM),clearPluginStorage:(0,t.useCallback)(()=>{s.localStorageService.removeItem(s.STORAGE_KEYS.SESSION_KEY),s.localStorageService.removeItem(s.STORAGE_KEYS.PLATFORM),s.localStorageService.removeItem(s.STORAGE_KEYS.PLUGIN_SITE_EXTERNAL_ID)},[])}}])},158888,345426,935506,12091,939210,e=>{"use strict";var t=e.i(271645),r=e.i(618566),s=e.i(698494),i=e.i(881266),a=e.i(192536),n=e.i(149856),o=e.i(68385),l=e.i(375494),d=e.i(273231);let c=async e=>{let t={};if(!window.pixelFlow?.utils?.normalizeCustomerData)return t;if(e.email&&(t.em=e.email),e.name){let[r,s]=e.name.split(" ");t.fn=r,t.ln=s}return await window.pixelFlow.utils.normalizeCustomerData(t)},u=async e=>{if(window.pixelFlow?.trackEvent){let t=await c(e);window.pixelFlow?.trackEvent("Lead",{},t)}else setTimeout(()=>u(e),500)};var f=e.i(408230),m=e.i(371010),p=e.i(987612);let h=()=>"u"<typeof sessionStorage?null:sessionStorage.getItem(p.PENDING_INVITE_TOKEN_KEY),g=()=>{"u">
1typeof sessionStorage&&sessionStorage.removeItem(p.PENDING_INVITE_TOKEN_KEY)};e.s(["clearPendingInviteToken",0,g,"readPendingInviteToken",0,h],345426);var x=e.i(62342),b=e.i(69123);e.s(["useAuthSuccessFlow",0,()=>{let e=(0,r.useRouter)(),{openSuccessSnackbar:c}=(0,a.useSnackbar)(),{setCurrentUser:v}=(0,s.useUsersMutations)(),{isHydrated:w}=(0,i.useUsersSelector)(),y=(0,l.useAppDispatch)(),k=(0,t.useRef)(null),j=(0,t.useCallback)(async({authData:t,sessionKey:r,platformFromAuth:s,pendingInviteToken:i,pluginSnackbarMessage:a,analyticsMode:l})=>{let j=void 0!==i?i:h();if(r){c(a);let e=(e=>{let t=e.split(".")[1];if(!t)return null;try{let e=JSON.parse(atob(t.replace(/-/g,"+").replace(/_/g,"/")));return"string"==typeof e.site_external_id&&e.site_external_id.length>0?e.site_external_id:null}catch{return null}})(r);e&&o.localStorageService.setItem(o.STORAGE_KEYS.PLUGIN_SITE_EXTERNAL_ID,e,p.PLUGIN_AUTH_STORAGE_TTL_MS)}n.authService.setAuthData({accessToken:t.accessToken,refreshToken:t.refreshToken,tokenType:t.tokenType}),v(t.user),!j&&("register"===l||t.isNewUser)&&(await u(t.user),(0,f.capturePostHogEvent)(b.POSTHOG_EVENTS.TRIAL_STARTED,{[b.POSTHOG_EVENT_PROPERTIES.PLATFORM]:s??null}));let N=s??o.localStorageService.getItem(o.STORAGE_KEYS.PLATFORM);if(N){let e=(t.user.platforms??[]).find(e=>e.name===N);e&&y((0,d.setPlatformIdReducer)(e.id))}if(o.localStorageService.removeItem(o.STORAGE_KEYS.SESSION_KEY),o.localStorageService.removeItem(o.STORAGE_KEYS.PLATFORM),j){g(),e.push(`${x.default.INVITE_ACCEPT}?token=${j}`);return}let S="register"===l||t.isNewUser,E=0===(t.user.sites??[]).length,T=!!r,C=(0,m.hasSubscriptionAccess)(t.user),R=(S||E||T)&&C?x.default.SITE_SETUP:x.default.OVERVIEW;w?e.push(R):k.current=R},[c,v,y,e,w]);if(w&&k.current){let t=k.current;k.current=null,e.push(t)}return{completeAuthSession:j}}],158888);var v=e.i(693936),w=e.i(45658);let y=async({code:e,sessionKey:t,platform:r,pendingInviteToken:s})=>{let i={code:e,platform:r??void 0,sessionKey:t??void 0,invitation_token:s??void 0};if(!s){let e=await (0,w.getRewardfulReferral)();e&&(i.referral_id=e)}return i};var k=e.i(894596);e.s(["useAuthGoogleLogin",0,({form:e,sessionKey:t,platform:r,googleAuth:s,completeAuthSession:i,pluginSnackbarMessage:a,analyticsMode:n,errorContext:o})=>(0,v.useGoogleLogin)({onSuccess:async l=>{try{let e=h(),o=await y({code:l.code,sessionKey:t,platform:r,pendingInviteToken:e}),d=await s(o).unwrap();await i({authData:d,sessionKey:t,platformFromAuth:r,..."register"===n?{pendingInviteToken:e}:{},pluginSnackbarMessage:a,analyticsMode:n})}catch(t){e.setError("root",{message:(0,k.getApiErrorText)(t,o)})}},onError:t=>{e.setError("root",{message:(0,k.getApiErrorText)(t,o)})},flow:"auth-code"})],935506),e.s(["useTurnstileFieldReset",0,e=>{let[r,s]=(0,t.useState)(0);return{turnstileResetTrigger:r,resetTurnstile:()=>{e.setValue("turnstileToken","",{shouldValidate:!1}),s(e=>e+1)}}}],12091);var j=e.i(843476),N=e.i(511398),S=e.i(249020);e.s(["default",0,({onClick:e})=>(0,j.jsxs)(N.Button,{variant:"outline",type:"button",className:"w-full",onClick:e,children:[(0,j.jsx)(S.IconGoogle,{className:"h-5 w-5 shrink-0"}),"Continue with Google"]})],939210)},623992,e=>{"use strict";var t=e.i(843476),r=e.i(522016),s=e.i(422768),i=e.i(271645),a=e.i(653145),n=e.i(994814),o=e.i(255394),l=e.i(343496),d=e.i(158888),c=e.i(935506),u=e.i(12091),f=e.i(894596),m=e.i(248474),p=e.i(254755);let h="You have been successfully logged in! You can proceed using dashboard or get back to PixelFlow plugin.";var g=e.i(313351),x=e.i(511398),b=e.i(118621),v=e.i(715524),w=e.i(686247),y=e.i(991677),k=e.i(630305),j=e.i(939210),N=e.i(809916),S=e.i(138035),E=e.i(888098),T=e.i(62342);e.s(["default",0,()=>{let{form:e,onSubmit:C,handleGoogleAuth:R,turnstileResetTrigger:P}=(()=>{let{sessionKey:e,platform:t,clearPluginStorage:r}=(0,l.usePluginAuthContext)(),{completeAuthSession:s}=(0,d.useAuthSuccessFlow)(),[g]=(0,o.useLoginMutation)(),[x]=(0,o.useGoogleAuthMutation)(),b=(0,a.useForm)({resolver:(0,n.zodResolver)(m.loginSchema),defaultValues:{email:"",password:"",turnstileToken:""},mode:"onTouched"}),{turnstileResetTrigger:v,resetTurnstile:w}=(0,u.useTurnstileFieldReset)(b);(0,i.useEffect)(()=>{let e=b.watch((e,{name:t})=>{("email"===t||"password"===t)&&b.formState.errors.email?.type==="credentials"&&b.clearErrors(["email","password"])});return()=>e.unsubscribe()},[b]);let y=b.handleSubmit(async i=>{try{let r=e?{...i,sessionKey:e}:i,a=await g(r).unwrap();await s({authData:a,sessionKey:e,platformFromAuth:t??null,pluginSnackbarMessage:h,analyticsMode:"login"})}catch(e){(0,p.isAUnAuthorizedException)(e)?(r(),b.setError("email",{type:"credentials",message:"Email or password is incorrect"}),b.setError("password",{type:"credentials",message:"Email or password is incorrect"})):b.setError("root",{message:(0,f.getApiErrorText)(e,"login")}),w()}}),k=(0,c.useAuthGoogleLogin)({form:b,sessionKey:e,platform:t,googleAuth:x,completeAuthSession:s,pluginSnackbarMessage:h,analyticsMode:"login",errorContext:"sign in with Google"});return{form:b,onSubmit:y,handleGoogleAuth:k,turnstileResetTrigger:v}})(),{formState:{errors:A,isSubmitting:_,isValid:I},setValue:O}=e;return(0,t.jsx)(y.default,{panel:(0,t.jsx)(S.default,{widget:E.RIGHT_RAIL_REGISTRY.login.widgets[0]}),children:(0,t.jsxs)("div",{className:"flex w-full max-w-col-form flex-col gap-6",children:[(0,t.jsx)("h2",{className:"text-center text-2xl font-semibold leading-none text-foreground",children:"Sign in to PixelFlow"}),(0,t.jsx)(w.Card,{className:"rounded-xl shadow-sm",children:(0,t.jsxs)(w.CardContent,{className:"flex flex-col gap-5 p-6",children:[(0,t.jsx)(j.default,{onClick:R}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-border"}),(0,t.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:"OR"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-border"})]}),(0,t.jsx)(g.Form,{...e,children:(0,t.jsxs)("form",{onSubmit:C,className:"flex flex-col gap-3",noValidate:!0,children:[(0,t.jsx)(g.FormField,{control:e.control,name:"email",render:({field:e})=>(0,t.jsxs)(g.FormItem,{className:"gap-3",children:[(0,t.jsx)(g.FormLabel,{children:"Email [Required]"}
1),(0,t.jsx)(g.FormControl,{children:(0,t.jsx)(b.Input,{...e,id:"email",type:"email",autoComplete:"email"})}),(0,t.jsx)(g.FormMessage,{})]})}),(0,t.jsx)(g.FormField,{control:e.control,name:"password",render:({field:e})=>(0,t.jsxs)(g.FormItem,{className:"gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(g.FormLabel,{children:"Password [Required]"}),(0,t.jsx)(r.default,{href:T.default.FORGOT_PASSWORD,className:"text-sm text-foreground underline hover:text-muted-foreground",tabIndex:-1,children:"Forgot your password?"})]}),(0,t.jsx)(g.FormControl,{noErrorIcon:!0,children:(0,t.jsx)(k.default,{...e})}),(0,t.jsx)(g.FormMessage,{})]})}),(0,t.jsx)(N.default,{resetTrigger:P,onSuccess:e=>O("turnstileToken",e,{shouldValidate:!0}),onError:()=>O("turnstileToken","",{shouldValidate:!0}),onExpired:()=>O("turnstileToken","",{shouldValidate:!0})}),A.root&&(0,t.jsxs)(v.Alert,{variant:"destructive",className:"py-3",children:[(0,t.jsx)(s.CircleAlert,{className:"h-4 w-4"}),(0,t.jsx)(v.AlertDescription,{children:A.root.message})]}),(0,t.jsx)(x.Button,{type:"submit",className:"w-full",disabled:_||!I,children:_?"Signing inâ¦":"Sign in"})]})}),(0,t.jsxs)("p",{className:"text-center text-sm text-foreground",children:["Don't have an account?"," ",(0,t.jsx)(r.default,{href:T.default.REGISTRATION,className:"underline hover:text-muted-foreground",children:"Sign up"})]})]})})]})})}],623992)}]); 2 3//# chunkId=01a0ebec-afdc-7441-b5d8-9489decff67d
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.