PageSourceSearch

https://www.aiornot.com/_next/static/chunks/57920-3500b149e6db3a16.js

js aiornot.com collected 2026-10-03 21:27:15 UTC 46,587 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[57920],{62010:function(e,t,n){n.d(t,{N:function(){return r}});var a=n(96203),s=n(52048);async function r(e,t){let n;try{await (0,a.w)()}catch(e){n=e}if(s.Mixpanel.reset(),null==t?void 0:t.redirectTo){window.location.href=t.redirectTo;return}if(n)throw n;!function(e){if(!(null==e?void 0:e.identities))return!1;try{var t;let n=JSON.parse(e.identities);return(null==n?void 0:null===(t=n[0])||void 0===t?void 0:t.providerName)==="Google"}catch(e){return!1}}(e)&&(window.location.href="".concat("https://www.aiornot.com"))}},46616:function(e,t,n){n.d(t,{Z:function(){return c}});var a=n(57437),s=n(74291),r=n(33145),l=n(52048),i=n(77088),o=n(94992);function c(e){let{open:t,setOpen:n}=e;return(0,a.jsx)(s.Vq,{open:t,onOpenChange:n,children:(0,a.jsxs)(s.cZ,{className:"h-full w-full md:w-[600px] md:h-[668px] bg-[#1D1D1D] border-[#3A3A3A] !z-[99999] !rounded-none !p-0 gap-0 overflow-hidden",children:[(0,a.jsx)(s.fK,{className:"w-full h-[48px] justify-center items-end p-[12px] md:flex hidden border-b border-[#3A3A3A]",children:(0,a.jsxs)(s.GG,{style:{outline:"none"},children:[(0,a.jsx)(r.default,{src:"/images/icons/cross-icon.svg",alt:"Close",height:24,width:24,className:"h-[24px] w-[24px]"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})}),(0,a.jsxs)("div",{className:"p-[20px] flex flex-col justify-center items-center gap-[12px]",children:[(0,a.jsxs)("div",{className:"flex flex-col justify-center items-center gap-[8px] px-[14px]",children:[(0,a.jsx)("h2",{className:"font-semibold text-[28px] md:text-[32px] leading-[130%] tracking-[-0.01em] text-center text-white",children:"Detect AI Content Fast"}),(0,a.jsx)("p",{className:"font-normal text-[14px] leading-[170%] tracking-[0] text-center text-[#8F8F8F]",children:"Scan images, text, audio, and video directly in your browser. Get instant results so you can verify content before you trust or share it."})]}),(0,a.jsx)("div",{className:"w-full h-auto md:h-[338px] border border-[#3A3A3A] rounded-none overflow-hidden",children:(0,a.jsx)(i.default,{})})]}),(0,a.jsx)(s.cN,{className:"h-[76px] flex justify-center items-center p-[20px] border-t border-[#3A3A3A]",children:(0,a.jsx)(o.Z,{variant:"ghost",onClick:function(){l.Mixpanel.action("ai_blocker_get_extension_clicked"),window.open("https://chromewebstore.google.com/detail/ai-blocker/jhigdcjaokfemfaofdiibcohjpgnmidc?authuser=3&hl=en","_blank")},containerClassName:"rounded-none bg-[rgba(29,29,29,1)] border-[1px] border-[#505050] py-[10px] px-[16px] relative flex justify-center items-center w-full hover:bg-[#474747] hover:border-[#909090] transition-all duration-200",className:"text-[14px] leading-[100%] tracking-[-0.48px] text-white font-sans whitespace-nowrap uppercase",children:"Get Chrome Extension"})})]})})}},14795:function(e,t,n){var a=n(57437),s=n(2265);t.Z=e=>{let{children:t,glitchColors:n=["#7A7A7A","#8F8F8F","#7A7A7A"],glitchSpeed:r=50,smooth:l=!0,className:i="",config:o={fontSize:8,charWidth:10,charHeight:20},onClick:c,showGlitch:d=!0,dataTestId:x="letter-glitch-button"}=e,{charWidth:u=10,charHeight:p=20}=o,m=(0,s.useRef)(null),f=(0,s.useRef)(null),h=(0,s.useRef)([]),g=(0,s.useRef)({columns:0,rows:0}),b=(0,s.useRef)(null),v=(0,s.useRef)(Date.now()),j=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","!","@","#","$","&","*","(",")","-","_","+","=","/","[","]","{","}",";",":","<",">",",","0","1","2","3","4","5","6","7","8","9"],N=()=>j[Math.floor(Math.random()*j.length)],w=()=>n[Math.floor(Math.random()*n.length)],y=e=>{e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,n,a)=>t+t+n+n+a+a);let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},k=(e,t,n)=>{let a={r:Math.round(e.r+(t.r-e.r)*n),g:Math.round(e.g+(t.g-e.g)*n),b:Math.round(e.b+(t.b-e.b)*n)};return"rgb(".concat(a.r,", ").concat(a.g,", ").concat(a.b,")")},C=(e,t)=>({columns:Math.ceil(e/u),rows:Math.ceil(t/p)}),A=(e,t)=>{g.current={columns:e,rows:t},h.current=Array.from({length:e*t},()=>({char:N(),color:w(),targetColor:w(),colorProgress:1}))},E=()=>{let e=m.current;if(!e)return;let t=e.parentElement;if(!t)return;let n=window.devicePixelRatio||1,a=t.getBoundingClientRect();e.width=a.width*n,e.height=a.height*n,e.style.width="".concat(a.width,"px"),e.style.height="".concat(a.height,"px"),b.current&&b.current.setTransform(n,0,0,n,0,0);let{columns:s,rows:r}=C(a.width,a.height);A(s,r),_()},_=()=>{if(!b||!m||!m.current||!b.current||0===h.current.length)return;let e=b.current,{width:t,height:n}=m.current.getBoundingClientRect();e.clearRect(0,0,t,n),e.font="300 6px monospace",e.textBaseline="top",h.current.forEach((t,n)=>{let a=n%g.current.columns*u,s=Math.floor(n/g.current.columns)*p;e.fillStyle=t.color,e.fillText(t.char,a,s)})},F=()=>
1{if(!h.current||0===h.current.length)return;let e=Math.max(1,Math.floor(.05*h.current.length));for(let t=0;t<e;t++){let e=Math.floor(Math.random()*h.current.length);h.current[e]&&(h.current[e].char=N(),h.current[e].targetColor=w(),l?h.current[e].colorProgress=0:(h.current[e].color=h.current[e].targetColor,h.current[e].colorProgress=1))}},S=()=>{let e=!1;h.current.forEach(t=>{if(t.colorProgress<1){t.colorProgress+=.05,t.colorProgress>1&&(t.colorProgress=1);let n=y(t.color),a=y(t.targetColor);n&&a&&(t.color=k(n,a,t.colorProgress),e=!0)}}),e&&_()},D=()=>{let e=Date.now();e-v.current>=r&&(F(),_(),v.current=e),l&&S(),f.current=requestAnimationFrame(D)};return(0,s.useEffect)(()=>{let e;let t=m.current;if(!t)return;b.current=t.getContext("2d"),E();let n=null;l?D():n=setInterval(()=>{F(),_()},r);let a=()=>{clearTimeout(e),e=setTimeout(()=>{cancelAnimationFrame(f.current),E(),l&&D()},100)};window.addEventListener("resize",a);let s=t.parentElement,i=s&&"undefined"!=typeof ResizeObserver?new ResizeObserver(()=>a()):null;return i&&s&&i.observe(s),()=>{n&&clearInterval(n),cancelAnimationFrame(f.current),window.removeEventListener("resize",a),i&&i.disconnect()}},[r,l]),(0,a.jsxs)("div",{role:"button","data-testid":x,className:"relative w-full h-full bg-black overflow-hidden ".concat(i," p-[2px]"),onClick:()=>c&&c(),children:[d&&(0,a.jsx)("canvas",{ref:m,className:"block w-full h-full"}),(0,a.jsx)("div",{className:"absolute top-0 left-0 w-full h-full flex items-center justify-center pointer-events-none ",children:t})]})}},6613:function(e,t,n){n.r(t),n.d(t,{NumberTicker:function(){return c}});var a=n(57437),s=n(88523),r=n(46956),l=n(6724),i=n(2265),o=n(38452);function c(e){let{value:t,startValue:n=0,direction:c="up",delay:d=0,className:x,wrapperClassName:u,decimalPlaces:p=0,prefix:m="",suffix:f="",...h}=e,g=(0,i.useRef)(null),b=(0,s.c)("down"===c?t:n),v=(0,r.q)(b,{damping:60,stiffness:100}),j=(0,l.Y)(g,{once:!0,margin:"0px"});return(0,i.useEffect)(()=>{if(j){let e=setTimeout(()=>{b.set("down"===c?n:t)},1e3*d);return()=>clearTimeout(e)}},[b,j,d,t,c,n]),(0,i.useEffect)(()=>v.on("change",e=>{g.current&&(g.current.textContent=Intl.NumberFormat("en-US",{minimumFractionDigits:p,maximumFractionDigits:p}).format(Number(e.toFixed(p))))}),[v,p]),(0,a.jsxs)("div",{className:(0,o.cn)("flex items-center gap-0",u),children:[m&&(0,a.jsx)("span",{className:(0,o.cn)("tracking-wider text-black dark:text-white",x),children:m}),(0,a.jsx)("span",{ref:g,className:(0,o.cn)("inline-block tabular-nums tracking-wider text-black dark:text-white",x),...h,children:n}),f&&(0,a.jsx)("span",{className:(0,o.cn)("tracking-wider text-black dark:text-white",x),children:f})]})}},17949:function(e,t,n){var a=n(57437);t.Z=e=>{let{label:t,isActive:n,onClick:s,className:r=""}=e;return(0,a.jsx)("button",{onClick:s,className:"px-[12px] py-[6px] border border-[rgba(80,80,80,1)] cursor-pointer\n				".concat(n?"bg-[rgba(45,45,45,1)] text-white transition-all duration-200":"bg-[rgba(29,29,29,1)] text-[rgba(143,143,143,1)] hover:bg-[rgba(55,55,55,1)] hover:text-[rgba(200,200,200,1)] transition-all duration-200","\n				").concat(r),children:t})}},19156:function(e,t,n){var a=n(57437),s=n(2265);t.Z=e=>{let{url:t,className:n="",...r}=e,[l,i]=(0,s.useState)(null);return((0,s.useEffect)(()=>{fetch(t).then(e=>{if(!e.ok)throw Error("Failed to fetch SVG");return e.text()}).then(e=>i(e)).catch(e=>{console.error(e),i(null)})},[t]),l)?(0,a.jsx)("div",{className:n,...r,dangerouslySetInnerHTML:{__html:l.replace(/<svg/,'<svg class="'.concat(n,'"'))}}):(0,a.jsx)("div",{className:n,...r,children:"..."})}},88317:function(e,t,n){n.d(t,{Z:function(){return s}});var a=n(57437);function s(e){let{className:t,wrapperClassName:n,title:s,desc:r}=e;return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center ".concat(n),children:[(0,a.jsxs)("div",{className:"flex space-x-2",children:[(0,a.jsx)("div",{className:"h-5 w-5 bg-primary rounded-full transform scale-0 animate-chase ".concat(t)}),(0,a.jsx)("div",{className:"h-5 w-5 bg-primary rounded-full transform scale-0 animate-chase ".concat(t)}),(0,a.jsx)("div",{className:"h-5 w-5 bg-primary rounded-full transform scale-0 animate-chase ".concat(t)})]}),(s||r)&&(0,a.jsxs)("div",{className:"mt-1 text-center",children:[s&&(0,a.jsx)("p",{className:"text-lg font-semibold text-white pt-1",children:s}),r&&(0,a.jsx)("p",{className:"text-sm text-gray-500",children:r})]})]})}n(2265)},83971:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});
1var a=n(57437),s=n(2265),r=n(27648),l=n(30401),i=n(98487),o=n(51621),c=n(97687),d=n(14795),x=n(94992),u=n(19156),p=n(17949);let m=["$10 in credits included every month","Pay-as-you-go credits available","Monthly credit rollovers"],f=["$100 in credits instantly","Pay-as-you-go credits available","Monthly credit rollovers"];function h(e){let{open:t,onClose:n,location:h="upgrade_pro_modal"}=e,{startPlanCheckout:g}=(0,o.N)(),[b,v]=(0,s.useState)(!1);if(!t)return null;let j=b?f:m,N=b?i.hf:i.DU;return(0,a.jsx)("div",{className:"fixed inset-0 z-[9999] backdrop-blur-[2px] bg-[rgba(12,13,14,0.92)] flex items-start sm:items-center justify-center px-[12px] sm:px-[32px] py-[24px] overflow-y-auto",onClick:n,children:(0,a.jsxs)("div",{className:"border border-[#303030] bg-[#1d1d1d] flex flex-col md:flex-row w-full max-w-[920px] max-h-[calc(100vh-48px)] overflow-y-auto my-auto",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"relative md:w-[42%] shrink-0 min-h-[220px] md:min-h-[600px] border-b md:border-b-0 md:border-r border-[#303030] overflow-hidden",children:[(0,a.jsxs)("div",{className:"absolute inset-0",children:[(0,a.jsx)(d.Z,{glitchColors:["#ffffff","#d0d0d0","#8eff4e"],glitchSpeed:30,smooth:!0,className:"w-full h-full",children:(0,a.jsx)("span",{})}),(0,a.jsx)("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(circle at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.88) 70%)"}})]}),(0,a.jsxs)("div",{className:"absolute z-10 top-[50px] left-[20px] md:top-[54px] md:left-[28px] flex flex-col gap-[6px]",children:[(0,a.jsx)("p",{className:"font-sans font-semibold text-[36px] leading-[1.1] text-white",children:"Pro"}),(0,a.jsxs)("p",{className:"font-sans font-medium text-white",children:[(0,a.jsx)("span",{className:"text-[24px] leading-[1.2]",children:b?"$50":"$5"}),(0,a.jsx)("span",{className:"text-[14px] font-medium text-[#c9c9c9] ml-[2px]",children:b?"/year":"/month"})]})]}),(0,a.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center pointer-events-none",children:(0,a.jsx)(u.Z,{url:"/svg/aiornot-icon.svg",className:"w-[96px] h-[96px] md:w-[120px] md:h-[120px] opacity-95"})})]}),(0,a.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col",children:[(0,a.jsxs)("div",{className:"bg-[#1d1d1d] border-b border-[#303030] px-[12px] sm:px-[20px] py-[8px] flex items-center gap-[8px]",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0 flex items-center gap-[6px]",children:[(0,a.jsx)(p.Z,{label:"Monthly",isActive:!b,onClick:()=>v(!1),className:"text-[11px] md:text-[12px] desktop:text-[14px] whitespace-nowrap shrink-0"}),(0,a.jsx)(p.Z,{label:"Annual - $50 in Free Credits",isActive:b,onClick:()=>v(!0),className:"text-[10px] md:text-[12px] desktop:text-[14px] whitespace-nowrap shrink-0"})]}),(0,a.jsx)("button",{onClick:n,className:"w-[20px] h-[20px] flex items-center justify-center cursor-pointer","aria-label":"Close upgrade modal",children:(0,a.jsx)(u.Z,{url:"/svg/close_x.svg",className:"w-[20px] h-[20px]"})})]}),(0,a.jsxs)("div",{className:"flex-1 flex flex-col p-[20px] md:p-[28px] gap-[20px]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,a.jsx)("h2",{className:"font-sans font-medium text-[20px] leading-[1.4] text-white",children:"Upgrade to Pro"}),(0,a.jsx)("p",{className:"font-sans font-normal text-[14px] leading-[1.6] text-[#c9c9c9]",children:b?"Unlock every modality and get $100 in credits instantly.":"Unlock every modality with credits that roll over monthly."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[j.map(e=>(0,a.jsxs)("div",{className:"flex items-start gap-[8px]",children:[(0,a.jsx)(l.Z,{className:"w-[18px] h-[18px] mt-[2px] shrink-0",color:"#8eff4e"}),(0,a.jsx)("span",{className:"font-sans font-normal text-[14px] leading-[1.4] text-white",children:e})]},e)),(0,a.jsxs)("div",{className:"flex items-start gap-[8px]",children:[(0,a.jsx)(l.Z,{className:"w-[18px] h-[18px] mt-[2px] shrink-0",color:"#8eff4e"}),(0,a.jsxs)("div",{className:"flex flex-col gap-[6px]",children:[(0,a.jsx)("span",{className:"font-sans font-normal text-[14px] leading-[1.4] text-white",children:i.hV}),(0,a.jsx)("ul",{className:"flex flex-col gap-[2px] pl-[14px] list-disc list-outside",children:N.map(e=>(0,a.jsx)("li",{className:"font-sans font-normal text-[12px] leading-[1.5] text-[#8f8f8f]",children:e},e))})]})]})]}),(0,a.jsx)("p",{className:"font-sans font-normal text-[13px] leading-[1.4] text-[#8f8f8f]",children:i.iW}),(0,a.jsxs)("div",{className:"mt-auto pt-[8px]",children:[(0,a.jsxs)("div",{className:"crosshair-target relative",children:[(0,a.jsx)("div",{className:"ch-corner ch-tl"}),(0,a.jsx)("div",{className:"ch-corner ch-tr"}),(0,a.jsx)("div",{className:"ch-corner ch-bl"}),(0,a.jsx)("div",{className:"ch-corner ch-br"}),(0,a.jsx)("div",{className:"ch-tick ch-tick-top"}),(0,a.jsx)("div",{className:"ch-tick ch-tick-right"}),(0,a.jsx)("div",{className:"ch-tick ch-tick-bottom"}),(0,a.jsx)("div",{className:"ch-tick ch-tick-left"}),(0,a.jsx)(x.Z,{containerClassName:"bg-white hover:bg-[#e8e8e8] w-full py-[10px] px-[16px] flex justify-center items-center rounded-none h-auto",className:"text-black text-[14px] font-medium leading-[1.4] bg-transparent",onClick:()=>
1{let e=b?"aion_pro_annual":"aion_pro_monthly";(0,c.track)({name:"plan_selected",properties:{plan_id:e,plan_name:e,billing_cycle:b?"annual":"monthly",location:h}}),n(),g({productId:e})},corner:!1,children:"Upgrade"})]}),(0,a.jsx)(r.default,{href:"/dashboard/pricing",onClick:n,className:"block text-center mt-[12px] text-[12px] leading-[1.4] text-[#8f8f8f] underline underline-offset-2 hover:text-white transition-colors",children:"Compare all plans, including Business"})]})]})]})]})})}},1631:function(e,t,n){n.d(t,{Z:function(){return A}});var a=n(57437),s=n(32731),r=n(88317),l=n(2265),i=n(54887),o=n(89819),c=n(6613),d=n(30654),x=n(38452),u=n(33145);let p=e=>{switch(!0){case e<=20:return{textClass:"text-[#E45757]",bgClass:"bg-[#E45757]"};case e<=60:return{textClass:"text-[#E4BC57]",bgClass:"bg-[#E4BC57]"};default:return{textClass:"text-[#57E496]",bgClass:"bg-[#57E496]"}}};var m=()=>{var e;let{data:t}=(0,s.X)(),n=null==t?void 0:null===(e=t.subscription)||void 0===e?void 0:e.usage,r=(0,l.useMemo)(()=>{var e,t;let a=null!==(e=null==n?void 0:n.balance)&&void 0!==e?e:0,s=null!==(t=null==n?void 0:n.credits_spent)&&void 0!==t?t:0;return{limit:a+s,spent:s,remaining:Math.max(a,0)}},[null==n?void 0:n.balance,null==n?void 0:n.credits_spent]),i=(0,l.useMemo)(()=>r.limit<=0?null:(0,a.jsx)("p",{className:"text-[#8F8F8F] text-xs font-normal font-mono leading-[160%] w-full tracking-normal",children:"Need more?"}),[r]);return(0,a.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[(0,a.jsx)(f,{limit:r.limit,spent:r.spent}),i]})};let f=e=>{let{limit:t,spent:n}=e,s=t>0,r=s?(0,x._1)(t,n):0,l=p(r),i="credit-balance-percentage";return(0,a.jsxs)("div",{className:"flex flex-col gap-[4px] w-full h-fit",children:[(0,a.jsxs)("div",{className:"flex justify-between min-h-[19px] w-full ",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center gap-[8px]",children:[(0,a.jsx)(u.default,{src:"/svg/coins-stacked.svg",width:16,height:16,alt:"Icons"}),(0,a.jsx)("p",{className:"text-white text-[14px] font-normal leading-[160%] font-sans flex items-center whitespace-nowrap",children:"Available credits"})]}),s?(0,a.jsx)(c.NumberTicker,{decimalPlaces:2,suffix:"%",value:r,"data-testid":i,className:"".concat(l.textClass," text-[12px] !text-white bg-transparent font-normal font-mono leading-[20px]")}):(0,a.jsx)("span",{"data-testid":i,className:"text-[12px] text-[#8F8F8F] bg-transparent font-normal font-mono leading-[20px]",children:"—"})]}),(0,a.jsx)(d.Z,{value:r})]})};var h=n(52048),g=n(19156),b=n(94992),v=n(71488),j=n(28853),N=n(99376),w=()=>{var e,t,n,r,l,i,o,c;let d=(0,N.useRouter)(),{data:x}=(0,s.X)(),u=(null==x?void 0:x.creditBalanceData)?(0,j.JK)(x.creditBalanceData):{showWallet:!0,showTopOff:!0,showAutoRecharge:!0};if(!u.showWallet)return null;let p=null!==(c=null!==(o=null==x?void 0:null===(e=x.creditBalanceData)||void 0===e?void 0:e.balance)&&void 0!==o?o:null==x?void 0:null===(t=x.subscription)||void 0===t?void 0:t.usage.balance)&&void 0!==c?c:null,m=!(null==x?void 0:null===(n=x.creditBalanceData)||void 0===n?void 0:n.is_recharge_enabled)&&!!(null==x?void 0:x.subscription)&&u.showAutoRecharge&&null!==p&&p<=5;return(0,a.jsxs)("div",{className:"flex flex-col justify-between gap-[24px]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[(0,a.jsxs)("div",{className:"flex gap-[8px] items-center",children:[(0,a.jsx)("div",{className:"w-1 h-1 grid place-items-center",children:(0,a.jsx)(g.Z,{url:"/assets/icons/credit.svg",className:"w-[16px] h-[16px]"})}),(0,a.jsx)("p",{className:"text-white text-[14px] font-normal leading-[160%] font-sans flex items-center whitespace-nowrap",children:"Credit Balance"}),(0,a.jsx)(v.pn,{children:(0,a.jsx)(v.u,{delayDuration:200,children:(0,a.jsx)(v.aJ,{asChild:!0,children:(0,a.jsx)("div",{className:"w-[12px] h-[12px]",children:(0,a.jsx)(g.Z,{url:"/assets/icons/info-icon.svg",className:"w-[12px] h-[12px]"})})})})})]}),(0,a.jsxs)("p",{className:"text-[20px] font-semibold text-white leading-[120%]",children:["$ ",(null==x?void 0:null===(l=x.creditBalanceData)||void 0===l?void 0:null===(r=l.balance)||void 0===r?void 0:r.toFixed(2))||"0.00"]}),(null==x?void 0:null===(i=x.creditBalanceData)||void 0===i?void 0:i.is_recharge_enabled)&&(0,a.jsx)("p",{className:"text-[11px] font-medium font-sans text-green leading-[140%]",children:"● Auto re
1charge on"})]}),(0,a.jsx)(b.Z,{variant:"ghost","data-testid":"sidebar-add-credit-button",containerClassName:u.showTopOff&&!m?"rounded-none bg-[rgba(29,29,29,1)] border-[1px] border-[#505050] py-[6px] px-[12px] relative z-[1px] flex justify-center align-center":"hidden",onClick:()=>{h.Mixpanel.action("upgrade_plan_button_pressed"),d.push("/dashboard/credits?action=addBalance")},children:"Add Credits"}),m&&(0,a.jsxs)("div",{className:"w-full h-fit rounded-[8px] border border-[#1E3328] gap-1 p-[12px] flex flex-col justify-between]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[4px] ",children:[(0,a.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,a.jsx)(g.Z,{url:"/assets/icons/warning.svg",className:"w-1 h-1"}),(0,a.jsx)("p",{className:"font-sans font-medium text-[12px] leading-[20px] text-white",children:"Low Credit Balance"})]}),(0,a.jsx)("p",{className:"font-sans font-normal text-[12px] leading-[160%] text-secondary",children:"Never run out of credits, automatically top up."})]}),(0,a.jsxs)("button",{type:"button","data-testid":"sidebar-enable-auto-recharge-button",onClick:()=>{d.push("/dashboard/credits?action=autoRecharge")},className:"crosshair-target relative w-full py-[6px] px-[12px] rounded-none bg-white hover:bg-[#e0e0e0] border border-white flex justify-center items-center cursor-pointer transition-colors duration-200",children:[(0,a.jsx)("div",{className:"ch-corner ch-tl"}),(0,a.jsx)("div",{className:"ch-corner ch-tr"}),(0,a.jsx)("div",{className:"ch-corner ch-bl"}),(0,a.jsx)("div",{className:"ch-corner ch-br"}),(0,a.jsx)("div",{className:"ch-tick ch-tick-top"}),(0,a.jsx)("div",{className:"ch-tick ch-tick-right"}),(0,a.jsx)("div",{className:"ch-tick ch-tick-bottom"}),(0,a.jsx)("div",{className:"ch-tick ch-tick-left"}),(0,a.jsx)("span",{className:"z-10 text-black text-[14px] text-center whitespace-nowrap",children:"Enable Auto-Recharge"})]})]})]})},y=()=>(0,a.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[(0,a.jsxs)("div",{className:"flex gap-[8px] items-center",children:[(0,a.jsx)("div",{className:"w-1 h-1 grid place-items-center",children:(0,a.jsx)(g.Z,{url:"/assets/icons/credit.svg",className:"w-[16px] h-[16px]"})}),(0,a.jsx)("p",{className:"text-white text-[14px] font-normal leading-[160%] font-sans flex items-center whitespace-nowrap",children:"Credit Usage"}),(0,a.jsx)(v.pn,{children:(0,a.jsx)(v.u,{delayDuration:200,children:(0,a.jsx)(v.aJ,{asChild:!0,children:(0,a.jsx)("div",{className:"w-[12px] h-[12px]",children:(0,a.jsx)(g.Z,{url:"/assets/icons/info-icon.svg",className:"w-[12px] h-[12px]"})})})})})]}),(0,a.jsx)("p",{className:"text-[14px] font-semibold text-white leading-[120%]","data-testid":"enterprise-credit-usage",children:"Custom Pricing Policy In Place"})]}),k=n(33215),C=n(83971),A=e=>{var t,n,c,d,u,p,f,g,v,j,N;let{className:A=""}=e,[E,_]=(0,l.useState)(!1),[F,S]=(0,l.useState)(!1),{data:D,isLoading:z}=(0,s.X)();return((0,l.useEffect)(()=>S(!0),[]),(0,k.F)(null!==(v=null==D?void 0:D.subscription)&&void 0!==v?v:null))?(0,a.jsx)(a.Fragment,{}):(0,a.jsxs)(a.Fragment,{children:[F&&(0,i.createPortal)((0,a.jsx)(C.default,{open:E,onClose:()=>_(!1),location:"sidebar_add_credits"}),document.body),(0,a.jsxs)("div",{className:(0,x.cn)("px-[12px] py-[24px] lg:p-[24px] flex flex-col justify-between gap-[24px] border-y-[1px] border-solid border-[#3A3A3A]",A),children:[z&&(0,a.jsx)("div",{className:"absolute left-0 top-0 w-full h-full bg-dark-green/30 flex items-center justify-center rounded-[4px] backdrop-blur-[2px] z-10",children:(0,a.jsx)(r.Z,{className:"!w-2 !h-2"})}),((null==D?void 0:null===(n=D.subscription)||void 0===n?void 0:null===(t=n.plan)||void 0===t?void 0:t.type)===o.Q.FREE||(null==D?void 0:null===(c=D.subscription)||void 0===c?void 0:c.plan.type)===o.Q.BASE)&&(0,a.jsx)(m,{}),(null==D?void 0:null===(d=D.subscription)||void 0===d?void 0:d.plan.type)!==o.Q.BASE&&(null==D?void 0:null===(u=D.subscription)||void 0===u?void 0:u.plan.t
1ype)!==o.Q.ENTERPRISE&&!(0,k.f)(null==D?void 0:null===(p=D.subscription)||void 0===p?void 0:p.plan.type)&&(0,a.jsx)(b.Z,{variant:"ghost","data-testid":"header-upgrade-button",containerClassName:"rounded-none bg-[rgba(29,29,29,1)] border-[1px] border-[#505050] py-[6px] px-[12px] relative z-[1px] flex justify-center align-center",onClick:()=>{h.Mixpanel.action("upgrade_plan_button_pressed"),_(!0)},children:"Add Credits"}),(0,k.f)(null==D?void 0:null===(g=D.subscription)||void 0===g?void 0:null===(f=g.plan)||void 0===f?void 0:f.type)&&!(0,k.F)(null!==(j=null==D?void 0:D.subscription)&&void 0!==j?j:null)&&(0,a.jsx)(w,{}),(0,k.F)(null!==(N=null==D?void 0:D.subscription)&&void 0!==N?N:null)&&(0,a.jsx)(y,{})]})]})}},57920:function(e,t,n){n.r(t),n.d(t,{default:function(){return D}});var a=n(57437),s=n(2265),r=n(27648),l=n(1631),i=n(38452),o=n(93306),c=n(32731),d=n(88317),x=n(81976),u=n(62010),p=n(6893),m=n(19156),f=n(30767),h=n(17146),g=n(33145),b={src:"/_next/static/media/profile-badge-icon.7f55a1e7.svg"};function v(e){let{src:t,alt:n="Avatar",size:s=48,badgeSize:r=18,showBadge:l=!0,isImpersonating:o=!1,className:c}=e;return(0,a.jsxs)("div",{className:(0,i.cn)("relative",c),style:{width:s,height:s},children:[(0,a.jsx)("div",{className:"absolute inset-0 z-50 rounded-full",style:{padding:"0.92px",background:o?"#d97706":"linear-gradient(249.47deg, #57E496 -0.28%, rgba(87, 228, 150, 0) 31.11%, rgba(87, 228, 150, 0) 79.16%, #57E496 104.88%)",borderRadius:"999px",WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude"}}),(0,a.jsx)(g.default,{src:t||"/images/avatar.png",alt:n,title:n,layout:"fill",quality:100,className:"object-cover object-center rounded-full",style:o?{filter:"sepia(100%) saturate(300%) hue-rotate(-10deg) brightness(0.9)"}:void 0}),l&&(0,a.jsx)("div",{className:"absolute bottom-0 right-0 rounded-full z-50",children:(0,a.jsx)(g.default,{src:b.src,alt:"Badge Icon",title:"Badge Icon",width:r,height:r,className:"object-cover object-center rounded-full"})})]})}var j=n(55850),N=n(99376);let w=e=>{let[t]=e.split(/[?#]/);return t&&t.replace(/\/+$/,"")||"/"},y=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||!t||t.startsWith("#"))return!1;let a=w(e),s=w(t);return"/"===s?"/"===a:n.exact?a===s:a===s||a.startsWith("".concat(s,"/"))};function k(e){var t;let{item:n,variant:s,isCollapsed:l=!1,onAction:o}=e,c=(0,N.usePathname)(),d=null!==(t=n.icon)&&void 0!==t?t:"",x=y(c,n.href,{exact:n.exact}),u=!!d,p="sidebar"===s,f=(0,i.cn)(p?u?"p-[12px] font-normal leading-6 font-body flex items-center gap-[8px] transition-all duration-500":"text-center w-full p-[12px] font-normal leading-6 font-body flex items-center gap-[8px] transition-all duration-500":"h-[44px] flex justify-center items-center w-[44px] p-[10px] rounded-[8px] transition-all duration-500",x?"bg-[#2d2d2d] border-l border-solid border-[#505050] text-white":"bg-transparent text-[#8F8F8F] hover:bg-[#1A1A1A] hover:text-[#BBBBBB]",p&&(l?"justify-center":"justify-start")),h=p?"".concat(u?"navlink":"public-navlink","-").concat(n.name.toLowerCase()):void 0,g=n.badge&&p&&!l?(0,a.jsxs)("div",{className:"relative rounded-[2px] p-[1px]",children:[(0,a.jsx)("div",{className:"absolute inset-[1px] rounded-[3px] pointer-events-none gradient-border-mask"}),(0,a.jsx)("div",{className:"relative rounded-[2px] bg-white/[0.02] shadow-[inset_0_0_46.7px_-18px_rgba(87,235,153,0.49),inset_0_0_30.9px_0_rgba(87,235,153,0.12)] flex justify-center items-center w-[38px] h-[16px] text-[#57E496] text-[12px]",children:n.badge.label})]}):null,b=u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"text-[16px] flex items-center",children:u&&(0,a.jsx)(m.Z,{url:d,className:"w-[16px] h-[16px]"})}),(0,a.jsx)("span",{className:(0,i.cn)("text-body-sm transition-[opacity,max-width] duration-1000 whitespace-nowrap",l?"absolute top-[100%] opacity-0 max-w-0 pointer-events-none":"opacity-100 max-w-[200px]"),children:n.name}),g]}):l?null:(0,a.jsxs)("div",{className:(0,i.cn)("w-full",g&&"flex items-center justify-center gap-[8px]"),children:[(0,a.jsx)("span",{className:"text-body-sm transition-opacity duration-300",children:n.name}),g]}),v=u?(0,a.jsx)(m.Z,{className:"h-[21px] w-[21px]",url:d}):(0,a.jsx)("span",{className:"text-body-sm",children:n.name}),j=p?b:v,w=()=>{null==o||o(n.action)};return n.href?(0,a.jsx)(r.default,{href:n.href,className:f,onClick:w,"data-testid":h,children:j}):(0,a.jsx)("button",{type:"button",className:f,onClick:w,"data-testid":h,"aria-label":n.name,children:j})}function C(e){let{items:t,variant:n,isCollapsed:s=!1,onAction:r}=e;return(0,a.jsx)(a.Fragment,{children:t.map(e=>(0,a.jsx)(k,{item:e,variant:n,isCollapsed:s,onAction:r},e.id))})}var A=n(47714),E=n(46616),_=n(52048),F=n(48697);let S=e=>"unknown"===e?"Custom Plan":e;function D(e){var t;let{type:n="DASHBOARD",closeHeaderDrawer:g,topOffset:b=0}=e,{authStatus:N}=(0,o.Z)(e=>[e.authStatus]),{userInfo:w,isUserInfoLoading:y}=(0,x.Z)(),{isImpersonating:k}=(0,F.u)(),{openAuthModal:D}=(0,p.f)(),{isSidebarCollapsed:z,setIsSidebarCollapsed:R}
1=(0,A.Z)(),[Z,B]=(0,s.useState)("/images/avatar.png"),[I,M]=(0,s.useState)(!1);(0,s.useEffect)(()=>{y||B((null==w?void 0:w.picture)||"/images/avatar.png")},[y,null==w?void 0:w.picture]);let{data:P}=(0,c.X)(),L=null==P?void 0:P.subscription,T=S((null==L?void 0:null===(t=L.plan)||void 0===t?void 0:t.name)||"Free"),O=y?"":(null==w?void 0:w.name)||"",$=e=>{null==g||g(),"open-ai-blocker"===e&&(_.Mixpanel.action("ai_blocker_menu_clicked"),M(!0))},U=52+b;return(0,a.jsxs)("aside",{className:(0,i.cn)("transition-all duration-300 ease-in-out","fixed left-0 z-20 flex flex-col overflow-y-auto overflow-visible border-r-[1px] border-solid border-[#3A3A3A]",z?"w-[96px]":"w-[225px] desktop:w-[250px] lg:w-[280px]",e.isHeaderDrawer?"bg-transparent":"bg-[#1D1D1D]",e.className),style:{top:U,height:"calc(100vh - ".concat(U,"px)")},children:["authenticated"!==N&&"DASHBOARD"===n?(0,a.jsx)(d.Z,{}):(0,a.jsxs)("div",{className:"flex flex-col justify-between h-full",children:["authenticated"!=N&&"PUBLIC"===n&&(0,a.jsxs)("nav",{className:"flex flex-col p-[12px] lg:p-[24px] items-center",children:[(0,a.jsx)(C,{items:j.W,variant:"sidebar",isCollapsed:z,onAction:$}),(0,a.jsx)("button",{type:"button",className:"text-center w-full p-[12px] font-normal leading-6 font-body flex items-center gap-[8px] justify-center bg-[#2d2d2d] border-l border-solid border-[#505050] text-white",onClick:()=>{null==g||g(),D()},children:(0,a.jsx)("span",{className:"text-body-sm",children:"Sign In"})})]}),"authenticated"===N&&"PUBLIC"===n&&(0,a.jsxs)("nav",{className:"flex flex-col p-[12px] lg:p-[24px] items-center",children:[(0,a.jsx)(C,{items:j.W,variant:"sidebar",isCollapsed:z,onAction:$}),(0,a.jsx)(r.default,{href:"/dashboard/home",className:"text-center w-full p-[12px] font-normal leading-6 font-body flex items-center gap-[8px] justify-center bg-[#2d2d2d] border-l border-solid border-[#505050] text-white",onClick:()=>null==g?void 0:g(),children:(0,a.jsx)("span",{className:"text-body-sm",children:"Dashboard"})})]}),"authenticated"!=N&&"PUBLIC"!==n&&(0,a.jsx)("nav",{className:"flex flex-col p-[12px] lg:p-[24px] items-center",children:(0,a.jsx)(C,{items:j.W,variant:"sidebar",isCollapsed:z,onAction:$})}),"authenticated"===N&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("nav",{className:"flex flex-col p-[12px] lg:p-[24px]",children:(0,a.jsx)(C,{items:j.F,variant:"sidebar",isCollapsed:z,onAction:$})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[!z&&(0,a.jsx)(l.Z,{}),(0,a.jsxs)("div",{className:(0,i.cn)("flex items-center justify-between p-[12px] lg:p-[24px] backdrop-blur-[4px]",z&&"border-t border-[#3A3A3A]"),children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-[12px] flex-1",children:[(0,a.jsx)(v,{src:Z,size:48,badgeSize:18,isImpersonating:k}),!z&&(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h4",{className:(0,i.cn)("text-[14px] font-normal font-body leading-5 line-clamp-1",k?"text-amber-500":"text-white"),children:k?"[IMPERSONATED]":O}),(0,a.jsxs)("p",{className:"text-[#FFFFFFB2] text-[12px] font-normal",children:["You are on the"," ",(0,a.jsx)("span",{className:"text-white","data-testid":"plan-name",children:T})]})]})]}),!z&&(0,a.jsxs)(f.aR,{children:[(0,a.jsx)(f.vW,{asChild:!0,children:(0,a.jsx)("div",{className:"w-[24px] h-[24px] flex items-center justify-center",children:(0,a.jsx)("button",{"data-testid":"sign-out-button","aria-label":"Sign out",className:"hover:bg-white/[0.06] rounded-[4px] transition-all duration-200 p-1",children:(0,a.jsx)(m.Z,{url:"/svg/log-out.svg"})})})}),(0,a.jsxs)(f._T,{className:"w-16 !rounded-none bg-[#1D1D1D] border-[#2D2D2D]",children:[(0,a.jsxs)(f.fY,{children:[(0,a.jsx)(f.f$,{children:"Log out"}),(0,a.jsx)(f.yT,{children:"Are you sure you want to log out?"})]}),(0,a.jsxs)(f.xo,{className:"flex-col md:flex-row",children:[(0,a.jsx)(f.le,{className:"bg-none border-none !flex",children:(0,a.jsx)(h.Z,{className:"bg-transparent rounded-none font-medium text-[13px] leading-[140%] tracking-normal text-center align-middle whitespace-nowrap",containerClassName:"rounded-none bg-[rgba(29,29,29,1)] border-[1px] border-[rgba(80,80,80,1)] py-[6px] px-[12px] w-full relative z-[1px] flex justify-center align-center",children:"Cancel"})}),(0,a.jsx)(f.OL,{onClick:()=>(0,u.N)(w),children:(0,a.jsx)(h.Z,{className:"bg-transparent roun
1ded-none font-medium text-[13px] leading-[140%] tracking-normal text-center align-middle whitespace-nowrap",containerClassName:"rounded-none bg-[rgba(80,80,80,1)] hover:bg-[rgba(80,80,80,1)] border-[1px] border-[rgba(80,80,80,1)] py-[6px] px-[12px] w-full relative z-[1px] flex justify-center align-center",children:"Log Out"})})]})]})]})]})]})]}),(0,a.jsx)("button",{onClick:()=>{R(!z)},className:"hidden absolute top-[38px] right-[-12px] w-[28px] h-[28px] z-10 rounded-none bg-[#2D2D2D] md:flex items-center justify-center cursor-pointer hover:bg-[#3A3A3A] transition-colors duration-200","aria-label":"Sidebar toggle",role:"button",tabIndex:0,children:(0,a.jsx)(m.Z,{url:"/assets/icons/right-arrow-icon.svg",className:(0,i.cn)("transition-transform duration-300 text-[#8F8F8F]",z?"rotate-90":"rotate-0")})})]}),(0,a.jsx)(E.Z,{open:I,setOpen:M})]})}},77088:function(e,t,n){var a=n(57437),s=n(33145),r=n(2265);t.default=()=>{let[e,t]=(0,r.useState)(50),n=(0,r.useRef)(null),l=(0,r.useRef)(!1),i=()=>{l.current=!0},o=()=>{l.current=!1},c=e=>{if(!l.current||!n.current)return;let a=n.current.getBoundingClientRect();t(Math.max(2,Math.min(98,(e.clientX-a.left)/a.width*100)))},d=e=>{if(!l.current||!n.current)return;let a=n.current.getBoundingClientRect();t(Math.max(2,Math.min(98,(e.touches[0].clientX-a.left)/a.width*100)))};return(0,r.useEffect)(()=>(document.addEventListener("mousemove",c),document.addEventListener("mouseup",o),document.addEventListener("touchmove",d),document.addEventListener("touchend",o),()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",d),document.removeEventListener("touchend",o)}),[]),(0,a.jsxs)("div",{ref:n,className:"relative w-full overflow-hidden select-none h-full",style:{touchAction:"none",aspectRatio:"3/2",userSelect:"none"},children:[(0,a.jsx)("div",{className:"absolute inset-0 w-full h-full pointer-events-none",children:(0,a.jsx)(s.default,{src:"/images/after.png",alt:"Blocker preview 2",fill:!0,priority:!0,draggable:!1,loading:"eager",title:"after",fetchPriority:"high",className:"object-cover",sizes:"(max-width: 768px) 100vw, (max-width: 1146px) 50vw, 1146px"})}),(0,a.jsx)("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",style:{width:"".concat(e,"%")},children:(0,a.jsx)("div",{className:"h-full relative",style:{width:e>0?"".concat(100/e*100,"%"):"200%"},children:(0,a.jsx)(s.default,{src:"/images/before.png",alt:"Blocker preview 1",fill:!0,priority:!0,draggable:!1,loading:"eager",title:"before",className:"object-cover",sizes:"(max-width: 768px) 100vw, (max-width: 1146px) 50vw, 1146px"})})}),(0,a.jsx)("div",{className:"absolute top-0 bottom-0 w-[3px] bg-[rgba(255,255,255,0.9)] border border-white opacity-90 cursor-ew-resize z-20",style:{left:"".concat(e,"%"),transform:"translateX(-50%)",borderWidth:"0.76px",boxShadow:"4px 0px 7px 1px white"},onMouseDown:i,onTouchStart:i,children:(0,a.jsx)("div",{className:"absolute bg-white w-5 h-5 sm:w-[32px] sm:h-[32px] rounded-[5px] flex items-center justify-center top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none",style:{pointerEvents:"auto"},onMouseDown:i,onTouchStart:i,children:(0,a.jsx)(s.default,{src:"/svg/ai-blocker-logo.svg",alt:"Logo",className:"object-contain w-full",width:17,height:20,title:"aiBlocker-logo",style:{color:"black",width:"17px",height:"20px"},draggable:!1})})})]})}},17146:function(e,t,n){n.d(t,{Z:function(){return r}});var a=n(57437);n(2265);var s=n(38452);function r(e){let{children:t,containerClassName:n,className:r,corner:l=!0,onClick:i,...o}=e;return(0,a.jsxs)("div",{className:(0,s.cn)(n),onClick:i,...o,children:[(0,a.jsx)("div",{className:"border-none h-full bg-transparent",children:(0,a.jsx)("div",{className:(0,s.cn)("z-10 text-white",r),children:t})}),l&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"buttonCorner btnCorner-tl"}),(0,a.jsx)("div",{className:"buttonCorner btnCorner-tr"}),(0,a.jsx)("div",{className:"buttonCorner btnCorner-bl"}),(0,a.jsx)("div",{className:"buttonCorner btnCorner-br"})]})]})}},30767:function(e,t,n){n.d(t,{OL:function(){return g},_T:function(){return u},aR:function(){return o},f$:function(){return f},fY:function(){return p},le:function(){return b},vW:function(){return c},xo:function(){return m},yT:function(){return h}});
1var a=n(57437),s=n(2265),r=n(7880),l=n(38452),i=n(12381);let o=r.fC,c=r.xz,d=r.h_,x=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.aV,{className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...s,ref:t})});x.displayName=r.aV.displayName;let u=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsxs)(d,{children:[(0,a.jsx)(x,{}),(0,a.jsx)(r.VY,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] md:w-[400px] max-w-none  translate-x-[-50%] translate-y-[-50%] rounded-[16px] md:rounded-[24px] border bg-[#192421] border-[#1E3328] !p-1 gap-[42px] flex-col flex outline-none ring-0 !z-[1000] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-[24px]",n),...s})]})});u.displayName=r.VY.displayName;let p=e=>{let{className:t,...n}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col",t),...n})};p.displayName="AlertDialogHeader";let m=e=>{let{className:t,...n}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex justify-between items-center gap-1 w-full",t),...n})};m.displayName="AlertDialogFooter";let f=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.Dx,{ref:t,className:(0,l.cn)("text-[17px] md:text-[24px] font-medium font-sans leading-[22px] md:leading-[160%] text-white border-b border-b-[#307E5333] -mx-1 px-1 md:border-b-0 md:mx-0 md:p-0 pb-[16px] md:pb-0",n),...s})});f.displayName=r.Dx.displayName;let h=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.dk,{ref:t,className:(0,l.cn)("text-md text-white/80",n),...s})});h.displayName=r.dk.displayName;let g=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.aU,{ref:t,"data-testid":"continue-button",className:(0,l.cn)((0,i.d)({variant:"outline"}),"md:bg-transparent font-sans w-full h-[40px] flex text-[14px] tracking-[-0.14px] leading-[28px] text-center font-[500]",n),...s})});g.displayName=r.aU.displayName;let b=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.$j,{ref:t,"data-testid":"close-button",className:(0,l.cn)((0,i.d)({variant:"outline"}),"font-sans w-full h-[40px] text-[14px] tracking-[-0.14px] leading-[28px] text-center font-[500] hidden md:flex",n),...s})});b.displayName=r.$j.displayName},74291:function(e,t,n){n.d(t,{$N:function(){return m},Be:function(){return f},GG:function(){return c},Vq:function(){return i},cN:function(){return p},cZ:function(){return x},fK:function(){return u}});
1var a=n(57437),s=n(2265),r=n(70001),l=n(38452);let i=r.fC;r.xz;let o=r.h_,c=r.x8,d=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.aV,{ref:t,className:(0,l.cn)("fixed inset-0 z-[1000] bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...s})});d.displayName=r.aV.displayName;let x=s.forwardRef((e,t)=>{let{className:n,children:s,showCloseIconOnMobile:i=!0,...c}=e;return(0,a.jsxs)(o,{children:[(0,a.jsx)(d,{className:"backdrop-blur-[6px]"}),(0,a.jsxs)(r.VY,{ref:t,className:(0,l.cn)("fixed z-[1001] grid w-full gap-4 border bg-background p-6 shadow-lg duration-200","left-0 right-0 bottom-0 max-h-[87vh] overflow-y-auto rounded-t-[24px] rounded-b-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:slide-out-to-bottom-full data-[state=open]:slide-in-from-bottom-full","md:left-[50%] md:top-[50%] md:bottom-auto md:right-auto","md:translate-x-[-50%] md:translate-y-[-50%] md:max-h-[95vh] md:rounded-lg md:rounded-t-lg","md:data-[state=closed]:zoom-out-95 md:data-[state=open]:zoom-in-95","md:data-[state=closed]:slide-out-to-left-1/2 md:data-[state=closed]:slide-out-to-top-[48%]","md:data-[state=open]:slide-in-from-left-1/2 md:data-[state=open]:slide-in-from-top-[48%]",n),...c,children:[s,i&&(0,a.jsxs)(r.x8,{className:"absolute right-1 top-1 ... block md:hidden",children:[(0,a.jsx)("img",{src:"/svg/close_x.svg",alt:"Close",className:"h-[24px] w-[24px]"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.VY.displayName;let u=e=>{let{className:t,...n}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...n})};u.displayName="DialogHeader";let p=e=>{let{className:t,...n}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n})};p.displayName="DialogFooter";let m=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",n),...s})});m.displayName=r.Dx.displayName;let f=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",n),...s})});f.displayName=r.dk.displayName}
1,30654:function(e,t,n){var a=n(57437),s=n(2265),r=n(1505),l=n(38452);let i=s.forwardRef((e,t)=>{let{className:n,value:s=0,indicatorClassName:i,...o}=e;return(0,a.jsxs)(r.fC,{ref:t,className:(0,l.cn)("relative h-[16px] overflow-hidden bg-transparent",n),...o,children:[(0,a.jsx)(r.z$,{className:"absolute inset-0 h-full bg-transparent z-10 my-[2px]",style:{backgroundImage:"linear-gradient(90deg, #404040 50%, transparent 50%)",backgroundSize:"5px 10px",width:"100%"}}),(0,a.jsx)(r.z$,{className:(0,l.cn)("absolute inset-0 h-full bg-white z-20 transition-[width] duration-500 ease-out my-[2px]",i),style:{backgroundImage:"linear-gradient(90deg, #404040 50%, transparent 50%)",backgroundSize:"5px 10px",width:"".concat(s,"%")}})]})});i.displayName=r.fC.displayName,t.Z=i},71488:function(e,t,n){n.d(t,{_v:function(){return d},aJ:function(){return c},pn:function(){return i},u:function(){return o}});var a=n(57437),s=n(2265),r=n(91668),l=n(38452);let i=r.zt,o=r.fC,c=r.xz,d=s.forwardRef((e,t)=>{let{className:n,sideOffset:s=4,variant:i,...o}=e;return(0,a.jsxs)(r.VY,{ref:t,sideOffset:s,align:"center",className:(0,l.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",n,"bottom"===i&&"border-[#25503E] rounded-[8px] p-[12px] gap-[12px] flex flex-col tooltip-content bg-[#192421]"),...o,children:["bottom"===i&&(0,a.jsx)("div",{className:"w-[11px] absolute right-[12px] -top-[5px] h-[11px] border border-[#25503E] bg-[#192421] border-b-0 border-r-0 transform rotate-45"}),o.children]})});d.displayName=r.VY.displayName},57342:function(e,t,n){n.d(t,{H:function(){return d},O:function(){return c}});
1var a=n(57437),s=n(2265),r=n(10924);let l="impersonatedUserId",i="impersonatedUserEmail",o=(0,s.createContext)({isAdmin:!1,isLoading:!0,isImpersonating:!1,impersonatedUserId:null,impersonatedUserEmail:null,startImpersonation:()=>{},stopImpersonation:()=>{}}),c=()=>(0,s.useContext)(o),d=e=>{let{children:t}=e,[n,c]=(0,s.useState)(!1),[d,x]=(0,s.useState)(!0),[u,p]=(0,s.useState)(null),[m,f]=(0,s.useState)(null),h=(0,s.useCallback)(()=>{p(null),f(null),sessionStorage.removeItem(l),sessionStorage.removeItem(i)},[]),g=(0,s.useCallback)((e,t)=>{if(!n){console.warn("Only admins can impersonate users");return}p(e),f(t||null),sessionStorage.setItem(l,e),t?sessionStorage.setItem(i,t):sessionStorage.removeItem(i)},[n]);(0,s.useEffect)(()=>{(async()=>{try{var e,t;let n=await (0,r.y)(),a=null===(e=n.tokens)||void 0===e?void 0:e.idToken;if(a){let e=a.payload["cognito:groups"],n=null!==(t=null==e?void 0:e.includes("Admins"))&&void 0!==t&&t;c(n)}else c(!1)}catch(e){c(!1)}finally{x(!1)}})()},[]),(0,s.useEffect)(()=>{{let e=sessionStorage.getItem(l),t=sessionStorage.getItem(i);e&&(p(e),f(t))}},[]),(0,s.useEffect)(()=>{d||n||!u||h()},[u,n,d,h]);let b=null!==u;return(0,a.jsx)(o.Provider,{value:{isAdmin:n,isLoading:d,isImpersonating:b,impersonatedUserId:u,impersonatedUserEmail:m,startImpersonation:g,stopImpersonation:h},children:t})}},96371:function(e,t,n){n.d(t,{N:function(){return r},t:function(){return l}});var a=n(57437),s=n(2265);let r=(0,s.createContext)({isSidebarCollapsed:!1,setIsSidebarCollapsed:()=>{},isContentExpanded:!1,setIsContentExpanded:()=>{}}),l=e=>{let{children:t}=e,[n,l]=(0,s.useState)(!1),[i,o]=(0,s.useState)(!1),c=(0,s.useMemo)(()=>({isSidebarCollapsed:n,setIsSidebarCollapsed:l,isContentExpanded:i,setIsContentExpanded:o}),[n,i]);return(0,a.jsx)(r.Provider,{value:c,children:t})}},48697:function(e,t,n){n.d(t,{u:function(){return s}});var a=n(57342);let s=()=>{let{isImpersonating:e,impersonatedUserId:t,impersonatedUserEmail:n,startImpersonation:s,stopImpersonation:r}=(0,a.O)();return{isImpersonating:e,impersonatedUserId:t,impersonatedUserEmail:n,startImpersonation:s,stopImpersonation:r}}},55850:function(e,t,n){n.d(t,{F:function(){return a},W:function(){return s}});let a=[{id:"home",name:"Home",icon:"/assets/icons/home-icon.svg",href:"/dashboard/home"},{id:"api",name:"API",icon:"/assets/icons/code-icon.svg",href:"/dashboard/api"},{id:"settings",name:"Settings",icon:"/assets/icons/settings-icon.svg",href:"/dashboard/settings"},{id:"credits",name:"Credits",icon:"/assets/icons/credit-card.svg",href:"/dashboard/credits"}],s=[{id:"products",name:"Products",href:"#product"},{id:"pricing",name:"Pricing",href:"/pricing"},{id:"developers",name:"Developers",href:"https://docs.aiornot.com/"}]},47714:function(e,t,n){var a=n(2265),s=n(96371);t.Z=()=>(0,a.useContext)(s.N)}}]);

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.