1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2488],{42488:function(e,t,l){l.r(t),l.d(t,{DeniedAccessContent:function(){return h}});var i=l(11527),d=l(50959),o=l(88717),s=l(63947),n=l(48558),c=l(19048),u=l(31719),a=l(53346),r=l(7242),f=l(71428),g=l(5754),p=l(57897),x=l(8807),m=l(11260);let h=e=>{let{type:t="default",redirectId:l,className:o}=e,{t:u}=(0,r.$G)("popup"),{onUpdateRedirectId:a}=(0,n.t)(),{studio:f,portal:p,accessGroup:x,onUpdateCurrentPopup:h}=(0,s.D)(),v="default"===t&&(null==x?void 0:x.upgrade.isLinkToCustomURL)&&"string"==typeof x.upgrade.limitLink&&x.upgrade.limitLink.trim().length>0?x.upgrade.limitLink.trim():null,j=(0,d.useMemo)(()=>{if("logout"===t)return{title:u("logoutDeniedAccess.title",{defaultValue:"Login required"}),body:u("logoutDeniedAccess.body",{defaultValue:"You need to log in to view this page."}),cta:u("logoutDeniedAccess.ctaBtn",{defaultValue:"Log in"})};if("restricted"===t)return{title:u("deniedAccess.title",{defaultValue:"Restricted access"}),body:u("logoutDeniedAccess.body",{defaultValue:"You need to log in to view this page."}),cta:u("logoutDeniedAccess.ctaBtn",{defaultValue:"Log in"})};if(v){var e,l;return{title:(null==p?void 0:p.lockoutTitle)||u("deniedAccess.title",{defaultValue:"Restricted access"}),body:(null==x?void 0:null===(e=x.upgrade.limitMessage)||void 0===e?void 0:e.trim())||(null==p?void 0:p.lockoutMessage)||u("deniedAccess.body",{defaultValue:"You need to upgrade to another tier or buy more credits"}),cta:(null==x?void 0:null===(l=x.upgrade.limitCTA)||void 0===l?void 0:l.trim())||(null==p?void 0:p.lockoutCTA)||u("deniedAccess.upgradeBtn",{defaultValue:"Upgrade to continue"})}}return{title:(null==p?void 0:p.lockoutTitle)||u("deniedAccess.title",{defaultValue:"Restricted access"}),body:(null==p?void 0:p.lockoutMessage)||u("deniedAccess.body",{defaultValue:"You need to upgrade to another tier or buy more credits"}),cta:(null==p?void 0:p.lockoutCTA)||u("deniedAccess.upgradeBtn",{defaultValue:"Upgrade to continue"})}},[t,p,v,x]);return(0,i.jsx)("div",{className:(0,c.cn)("flex flex-col items-center",o),children:(0,i.jsxs)("div",{className:"flex w-full max-w-[341px] flex-col items-center",children:[(0,i.jsxs)(g.qE,{className:"h-[68px] w-[68px]",children:[(0,i.jsx)(g.F$,{src:null==f?void 0:f.image,alt:"".concat(null==f?void 0:f.name," Logo")}),(0,i.jsx)(g.Q5,{})]}),(0,i.jsxs)("div",{className:"mt-4 flex flex-col gap-2 text-center",children:[(0,i.jsx)("h3",{className:"text-2xl font-semibold",children:j.title}),(0,i.jsx)("p",{children:j.body})]}),(0,i.jsx)("div",{className:"mt-6 flex w-full flex-col gap-2",children:(0,i.jsx)(m.z,{variant:"primary",onClick:()=>{if("logout"===t||"restricted"===t){l&&a(l),h("login");return}if(v){window.location.href=v;return}h("pricing")},children:j.cta})})]})})};t.default=e=>{let{isOpen:t,onClose:l}=e,{t:n}=(0,r.$G)("popup"),{portal:c}=(0,s.D)(),{style:g}=(0,o.H)(),m=(0,d.useMemo)(()=>({title:(null==c?void 0:c.lockoutTitle)||n("deniedAccess.title",{defaultValue:"Restricted access"}),body:(null==c?void 0:c.lockoutMessage)||n("deniedAccess.body",{defaultValue:"You need to upgrade to another tier or buy more credits"}),cta:(null==c?void 0:c.lockoutCTA)||n("deniedAccess.upgradeBtn",{defaultValue:"Upgrade to continue"})}),[c]);return(0,i.jsx)(x.Vq,{open:t,onOpenChange:l,children:(0,i.jsxs)(x.cZ,{className:"glass-color pb-12 md:max-w-[813px]",..."Real Head Pro"!==g.font&&{style:{fontFamily:g.font}},children:[(0,i.jsx)(a.TX,{children:(0,i.jsxs)(x.fK,{children:[(0,i.jsx)(x.$N,{children:m.title}),(0,i.jsx)(u.Be,{children:m.body})]})}),(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(p.z,{variant:"glass",size:"icon",onClick:l,children:(0,i.jsx)(f.Z,{})})}),(0,i.jsx)(h,{})]})})}}}]);
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.