1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9196,2488],{32036:function(e,l,t){var s,r=t(50959);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e}).apply(null,arguments)}l.Z=function(e){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),s||(s=r.createElement("path",{fill:"currentColor",d:"M4.995 18.336q-.687 0-1.177-.49a1.6 1.6 0 0 1-.49-1.177V8.336q0-.687.49-1.177.489-.49 1.177-.49h.833V5.003q0-1.73 1.219-2.948Q8.265.835 9.995.835t2.948 1.22q1.219 1.218 1.219 2.948v1.666h.833q.687 0 1.177.49t.49 1.177v8.333q0 .688-.49 1.177t-1.177.49zm0-1.667h10V8.336h-10zm5-2.5q.687 0 1.177-.49.49-.489.49-1.176 0-.688-.49-1.178a1.6 1.6 0 0 0-1.177-.49q-.687 0-1.177.49t-.49 1.178.49 1.177 1.177.49m-2.5-7.5h5V5.003q0-1.042-.73-1.771a2.4 2.4 0 0 0-1.77-.73 2.4 2.4 0 0 0-1.771.73 2.4 2.4 0 0 0-.73 1.77z"})))}},98664:function(e,l,t){t.d(l,{Kb:function(){return s},WW:function(){return a},XQ:function(){return i},co:function(){return r}});let s="glass-color border-0 p-0 md:max-w-[1344px] md:rounded-[var(--portal-roundness)]",r="min-[860px]:top-[120px] min-[860px]:bottom-8 min-[860px]:translate-y-0 min-[860px]:overflow-hidden",a="xl:left-[349px] xl:right-4 xl:w-auto xl:max-w-none xl:translate-x-0",i="xl:pl-[349px] xl:pr-4"},42488:function(e,l,t){t.r(l),t.d(l,{DeniedAccessContent:function(){return g}});var s=t(11527),r=t(50959),a=t(88717),i=t(63947),n=t(48558),o=t(19048),d=t(31719),c=t(53346),u=t(7242),f=t(71428),p=t(5754),x=t(57897),m=t(8807),v=t(11260);let g=e=>{let{type:l="default",redirectId:t,className:a}=e,{t:d}=(0,u.$G)("popup"),{onUpdateRedirectId:c}=(0,n.t)(),{studio:f,portal:x,accessGroup:m,onUpdateCurrentPopup:g}=(0,i.D)(),h="default"===l&&(null==m?void 0:m.upgrade.isLinkToCustomURL)&&"string"==typeof m.upgrade.limitLink&&m.upgrade.limitLink.trim().length>0?m.upgrade.limitLink.trim():null,j=(0,r.useMemo)(()=>{if("logout"===l)return{title:d("logoutDeniedAccess.title",{defaultValue:"Login required"}),body:d("logoutDeniedAccess.body",{defaultValue:"You need to log in to view this page."}),cta:d("logoutDeniedAccess.ctaBtn",{defaultValue:"Log in"})};if("restricted"===l)return{title:d("deniedAccess.title",{defaultValue:"Restricted access"}),body:d("logoutDeniedAccess.body",{defaultValue:"You need to log in to view this page."}),cta:d("logoutDeniedAccess.ctaBtn",{defaultValue:"Log in"})};if(h){var e,t;return{title:(null==x?void 0:x.lockoutTitle)||d("deniedAccess.title",{defaultValue:"Restricted access"}),body:(null==m?void 0:null===(e=m.upgrade.limitMessage)||void 0===e?void 0:e.trim())||(null==x?void 0:x.lockoutMessage)||d("deniedAccess.body",{defaultValue:"You need to upgrade to another tier or buy more credits"}),cta:(null==m?void 0:null===(t=m.upgrade.limitCTA)||void 0===t?void 0:t.trim())||(null==x?void 0:x.lockoutCTA)||d("deniedAccess.upgradeBtn",{defaultValue:"Upgrade to continue"})}}return{title:(null==x?void 0:x.lockoutTitle)||d("deniedAccess.title",{defaultValue:"Restricted access"}),body:(null==x?void 0:x.lockoutMessage)||d("deniedAccess.body",{defaultValue:"You need to upgrade to another tier or buy more credits"}),cta:(null==x?void 0:x.lockoutCTA)||d("deniedAccess.upgradeBtn",{defaultValue:"Upgrade to continue"})}},[l,x,h,m]);return(0,s.jsx)("div",{className:(0,o.cn)("flex flex-col items-center",a),children:(0,s.jsxs)("div",{className:"flex w-full max-w-[341px] flex-col items-center",children:[(0,s.jsxs)(p.qE,{className:"h-[68px] w-[68px]",children:[(0,s.jsx)(p.F$,{src:null==f?void 0:f.image,alt:"".concat(null==f?void 0:f.name," Logo")}),(0,s.jsx)(p.Q5,{})]}),(0,s.jsxs)("div",{className:"mt-4 flex flex-col gap-2 text-center",children:[(0,s.jsx)("h3",{className:"text-2xl font-semibold",children:j.title}),(0,s.jsx)("p",{children:j.body})]}),(0,s.jsx)("div",{className:"mt-6 flex w-full flex-col gap-2",children:(0,s.jsx)(v.z,{variant:"primary",onClick:()=>{if("logout"===l||"restricted"===l){t&&c(t),g("login");return}if(h){window.location.href=h;return}g("pricing")},children:j.cta})})]})})};l.default=e=>{let{isOpen:l,onClose:t}=e,{t:n}=(0,u.$G)("popup"),{portal:o}=(0,i.D)(),{style:p}=(0,a.H)(),v=(0,r.useMemo)(()=>({title:(null==o?void 0:o.lockoutTitle)||n("deniedAccess.title",{defaultValue:"Restricted access"}),body:(null==o?void 0:o.lockoutMessage)||n("deniedAccess.body",{defaultValue:"You need to upgrade to another tier or buy more credits"}),cta:(null==o?void 0:o.lockoutCTA)||n("deniedAccess.upgradeBtn",{defaultValue:"Upgrade to continue"})}),[o]);return(0,s.jsx)(m.Vq,{open:l,onOpenChange:t,children:(0,s.jsxs)(m.cZ,{className:"glass-color pb-12 md:max-w-[813px]",..."Real Head Pro"!==p.font&&{style:{fontFamily:p.font}},children:[(0,s.jsx)(c.TX,{children:(0,s.jsxs)(m.fK,{children:[(0,s.jsx)(m.$N,{
1children:v.title}),(0,s.jsx)(d.Be,{children:v.body})]})}),(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)(x.z,{variant:"glass",size:"icon",onClick:t,children:(0,s.jsx)(f.Z,{})})}),(0,s.jsx)(g,{})]})})}},84130:function(e,l,t){t.d(l,{a:function(){return f}});var s=t(11527),r=t(50959);t(88717);var a=t(27930),i=t(63947),n=t(19048),o=t(7242),d=t(32036);t(71428),t(57897),t(8807);var c=t(42488),u=t(16906);let f=e=>{let{portalItemId:l,className:t}=e,{t:f}=(0,o.$G)("popup"),{portal:p}=(0,i.D)(),{isCheckingOut:x,onCheckoutOffer:m}=(0,a.t)(),v=(0,r.useMemo)(()=>null==p?void 0:p.items.find(e=>e.id===l),[null==p?void 0:p.items,l]);return v?(0,s.jsxs)("div",{className:(0,n.cn)("flex flex-col items-center gap-6 p-6",t),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(d.Z,{className:"size-8 shrink-0"}),(0,s.jsx)("h3",{className:"text-lg font-semibold",children:f("pricing.offers.title",{defaultValue:"Locked content"})})]}),(0,s.jsx)(u.Z,{data:v,className:"w-full max-w-[647px] shadow-[inset_0_0_0_1px_rgba(255,255,255,0.4),0_10px_30px_rgba(0,0,0,0.1)]",style:{backgroundColor:"hsl(var(--card))",color:"hsl(var(--card-foreground))"},isDisabled:x,onCheckout:()=>m(v.id)})]}):(0,s.jsx)(c.DeniedAccessContent,{className:t})}},54731:function(e,l,t){var s=t(11527),r=t(50959),a=t(27930),i=t(63947),n=t(88197),o=t(43352),d=t(19048),c=t(7242),u=t(5754),f=t(57897),p=t(50863),x=t(20203),m=t(11260),v=t(42488),g=t(29269);l.Z=e=>{var l,t;let{className:h}=e,{t:j}=(0,c.$G)("popup"),{studio:y,accessGroup:N}=(0,i.D)(),{isCheckingOut:b,onCheckout:w}=(0,a.t)(),[k,C]=(0,r.useState)(null),A=(null==N?void 0:N.upgrade.isLinkToCustomURL)&&"string"==typeof N.upgrade.limitLink&&N.upgrade.limitLink.trim().length>0?N.upgrade.limitLink.trim():null,V=o.S.studio.get.upgradeAccessGroups.useQuery({accessGroupIds:Array.from([null!==(t=null==N?void 0:N.accessGroupId)&&void 0!==t?t:"",...(null==N?void 0:N.upgrade.accessGroupIds)||[]])},{enabled:!!(!A&&(null==N?void 0:N.upgrade.isUpgradeToAnotherGroup)&&N.upgrade.accessGroupIds.length>0)}),I=(0,r.useMemo)(()=>V.data?V.data.filter(e=>{if("public"===e.type||(null==N?void 0:N.type)==="members"&&e.accessGroupId===N.accessGroupId)return!1;let l=(null==y?void 0:y.currency)||"usd",t=e.currency||"usd";return"free"===e.priceType||l===t}):[],[N,V.data,y]),z=(0,r.useMemo)(()=>{let e=Array.from(new Set(I.map(e=>{var l;return"free"===e.priceType?"free":null!==(l=e.priceInterval)&&void 0!==l?l:"one_time"}))).filter(Boolean);return(0,n.id)(e)},[I]),G=(0,r.useMemo)(()=>!k||z.length<=1?I:I.filter(e=>{var l;return"free"===e.priceType?"free"===k:(null!==(l=e.priceInterval)&&void 0!==l?l:"one_time")===k}),[I,k,z]),L=(null==N?void 0:null===(l=N.upgrade.limitCTA)||void 0===l?void 0:l.trim())||j("pricing.upgrade",{defaultValue:"Upgrade"}),D=!A&&!!(null==N?void 0:N.upgrade.isUpgradeToAnotherGroup)&&!!(null==N?void 0:N.upgrade.accessGroupIds.length)&&(V.isLoading||G.length>0);return((0,r.useEffect)(()=>{z.length&&!k&&C(z[0])},[z,k]),y&&N&&(A||D))?(0,s.jsxs)("div",{className:(0,d.cn)("flex flex-col items-center gap-6 p-6",h),children:[(0,s.jsx)("div",{className:"flex w-full max-w-[341px] flex-col items-center",children:(0,s.jsxs)(u.qE,{className:"h-[68px] w-[68px]",children:[(0,s.jsx)(u.F$,{src:y.image,alt:"".concat(y.name," Logo")}),(0,s.jsx)(u.Q5,{})]})}),(0,s.jsx)("section",{className:"glass flex w-full max-w-[813px] flex-col gap-4 px-8 py-6",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[(0,s.jsx)(x.$,{className:"flex-1",children:(0,s.jsx)(x.E,{value:N.upgrade.limitMessage,className:"font-medium"})}),A&&(0,s.jsx)(m.z,{variant:"primary",className:"w-full shrink-0 md:w-auto",onClick:()=>{window.location.href=A},children:L})]})}),D&&(0,s.jsxs)("section",{className:"glass flex w-full max-w-[813px] flex-col gap-4 px-8 py-6",children:[z.length>1&&(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)("div",{className:"flex gap-2 rounded-[var(--portal-roundness)] border p-2",style:{backgroundColor:"hsl(var(--background))"},children:z.map(e=>(0,s.jsx)(f.z,{variant:"glass",className:"rounded-[var(--portal-roundness)] opacity-50 disabled:opacity-100",onClick:()=>C(e),disabled:k===e,children:"free"===e?j("pricing.free",{defaultValue:"Free"}):j("pricing.suffix.".concat(e,".title"),{defaultValue:e})},e))})}),G.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:"text-center text-lg font-semibold",children:j("pickaxe:available-plans",{defaultValue:"Available Plans"})}),(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(p.lr,{className:"w-full space-y-4",style:{maxWidth:"".concat(G.length>0?267*G.length+(G.length-1)*16:0,"px")},children:(0,s.jsx)(p.KI,{className:"-ml-4",children:G.map((e,l)=>{var t;
1return(0,s.jsx)(p.d$,{style:{flex:"0 0 267px",...l>0&&{marginLeft:"16px"}},children:(0,s.jsx)(g.Z,{data:e,isDisabled:b,isCredits:!!(null===(t=y.usage)||void 0===t?void 0:t.isCredits),onCheckout:()=>w(e.accessGroupId)})},e.accessGroupId)})})})})]})]})]}):(0,s.jsx)(v.DeniedAccessContent,{className:h})}},16906:function(e,l,t){var s=t(11527),r=t(50959),a=t(63947),i=t(27363),n=t(19048),o=t(7242),d=t(5754),c=t(11260);l.Z=e=>{var l,t,u,f,p,x,m,v,g;let{data:h,className:j,style:y,isDisabled:N,onCheckout:b}=e,{t:w}=(0,o.$G)("popup"),{portal:k}=(0,a.D)(),C=(0,r.useMemo)(()=>{var e;return null!==(e=i.m.find(e=>{var l,t;return e.id===(null!==(t=null===(l=h.offer)||void 0===l?void 0:l.currency)&&void 0!==t?t:"usd")}))&&void 0!==e?e:i.m[0]},[h]);return(0,s.jsxs)("div",{className:(0,n.cn)("flex min-h-[238px] w-[647px] flex-col justify-between gap-6 rounded-[var(--portal-roundness)] border bg-white p-6 glass-dark:bg-black",j),...y&&{style:y},children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center items-center justify-between gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)(d.qE,{className:"size-8",children:[(0,s.jsx)(d.F$,{src:null!==(m=null===(l=h.offer)||void 0===l?void 0:l.icon)&&void 0!==m?m:"",alt:"Offer icon"}),(0,s.jsx)(d.Q5,{})]}),(0,s.jsx)("p",{className:"text-xl font-semibold",children:(null===(t=h.offer)||void 0===t?void 0:t.name)||""})]}),(0,s.jsx)("p",{className:"text-2xl font-semibold",children:"".concat(C.symbol).concat(null!==(v=null===(u=h.offer)||void 0===u?void 0:u.price)&&void 0!==v?v:0)})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"line-clamp-2 text-primary",children:(null===(f=h.offer)||void 0===f?void 0:f.description)||""}),(0,s.jsxs)("div",{className:"flex flex-col border-t border-input pt-4",children:["folder"===h.type&&(null===(p=h.offer)||void 0===p?void 0:p.isShowContent)&&(0,s.jsxs)("p",{className:"mb-[40px] text-primary",children:[(0,s.jsxs)("span",{className:"font-medium",children:[w("pricing.offers.includes",{defaultValue:"Includes:"}),"\xa0"]}),(0,s.jsx)("span",{children:(null!==(g=null==k?void 0:k.items)&&void 0!==g?g:[]).filter(e=>e.parentId===h.id).map(e=>e.displayName||e.id).join(", ")||w("pricing.offers.noContent",{defaultValue:"No content"})})]}),!!b&&(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)(c.z,{useDesignColors:!0,variant:"primary",className:"w-full max-w-[119px]",onClick:b,...N&&{disabled:!0},children:(null===(x=h.offer)||void 0===x?void 0:x.ctaText)||w("pricing.offers.unlock",{defaultValue:"Unlock"})})})]})]})]})}},50863:function(e,l,t){t.d(l,{KI:function(){return x},d$:function(){return m},lr:function(){return p}});var s=t(11527),r=t(50959),a=t(97442),i=t(16084),n=t(79260),o=t(7398),d=t(7242),c=t(57897);let u=r.createContext(null);function f(){let e=r.useContext(u);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let p=r.forwardRef((e,l)=>{let{orientation:t="horizontal",opts:n,setApi:o,plugins:d,className:c,children:f,...p}=e,[x,m]=(0,i.Z)({...n,axis:"horizontal"===t?"x":"y"},d),[v,g]=r.useState(!1),[h,j]=r.useState(!1),y=r.useCallback(e=>{e&&(g(e.canScrollPrev()),j(e.canScrollNext()))},[]),N=r.useCallback(()=>{null==m||m.scrollPrev()},[m]),b=r.useCallback(()=>{null==m||m.scrollNext()},[m]),w=r.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),N()):"ArrowRight"===e.key&&(e.preventDefault(),b())},[N,b]);return r.useEffect(()=>{m&&o&&o(m)},[m,o]),r.useEffect(()=>{if(m)return y(m),m.on("reInit",y),m.on("select",y),()=>{null==m||m.off("select",y)}},[m,y]),(0,s.jsx)(u.Provider,{value:{carouselRef:x,api:m,opts:n,orientation:t||((null==n?void 0:n.axis)==="y"?"vertical":"horizontal"),scrollPrev:N,scrollNext:b,canScrollPrev:v,canScrollNext:h},children:(0,s.jsx)("div",{ref:l,onKeyDownCapture:w,className:(0,a.Z)("relative",c),role:"region","aria-roledescription":"carousel",...p,children:f})})});p.displayName="Carousel";let x=r.forwardRef((e,l)=>{let{className:t,...r}=e,{carouselRef:i,orientation:n}=f();return(0,s.jsx)("div",{ref:i,className:"overflow-hidden",children:(0,s.jsx)("div",{ref:l,className:(0,a.Z)("flex","horizontal"===n?"-ml-4":"-mt-4 flex-col",t),...r})})});
1x.displayName="CarouselContent";let m=r.forwardRef((e,l)=>{let{className:t,...r}=e,{orientation:i}=f();return(0,s.jsx)("div",{ref:l,role:"group","aria-roledescription":"slide",className:(0,a.Z)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===i?"pl-4":"pt-4",t),...r})});m.displayName="CarouselItem",r.forwardRef((e,l)=>{let{className:t,variant:r="glass",size:i="icon",...o}=e,{t:u}=(0,d.$G)("popup"),{orientation:p,scrollPrev:x,canScrollPrev:m}=f();return(0,s.jsxs)(c.z,{ref:l,variant:r,size:i,className:(0,a.Z)("absolute h-8 w-8 rounded-full","horizontal"===p?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!m,onClick:x,...o,children:[(0,s.jsx)(n.Z,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:u("carousel.previousSlide",{defaultValue:"Previous slide"})})]})}).displayName="CarouselPrevious",r.forwardRef((e,l)=>{let{className:t,variant:r="glass",size:i="icon",...n}=e,{t:u}=(0,d.$G)("popup"),{orientation:p,scrollNext:x,canScrollNext:m}=f();return(0,s.jsxs)(c.z,{ref:l,variant:r,size:i,className:(0,a.Z)("absolute h-8 w-8 rounded-full","horizontal"===p?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!m,onClick:x,...n,children:[(0,s.jsx)(o.Z,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:u("carousel.nextSlide",{defaultValue:"Next slide"})})]})}).displayName="CarouselNext"},53843:function(e,l,t){t.d(l,{p:function(){return n}});var s=t(50959),r=t(35577),a=t(43352),i=t(63947);let n=()=>{let{portal:e,currentPage:l,accessGroup:t}=(0,i.D)(),n=a.S.user.get.offerLinks.useQuery({portalId:(null==e?void 0:e.portalId)||""},{refetchOnWindowFocus:!0});return{lockType:(0,s.useMemo)(()=>{let s=n.data;return Array.isArray(s)?e&&l?(0,r.L_)({items:e.items,itemId:l.id,unlockedItemIds:new Set(s.map(e=>e.id)),accessGroupId:null==t?void 0:t.accessGroupId}):{type:"upgrade_preview"}:{type:"loading"}},[e,l,null==t?void 0:t.accessGroupId,n.data])}}}}]);
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.