(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[573],{87089:function(e,t,n){Promise.resolve().then(n.t.bind(n,81749,23)),Promise.resolve().then(n.t.bind(n,25250,23)),Promise.resolve().then(n.bind(n,10211)),Promise.resolve().then(n.bind(n,40589)),Promise.resolve().then(n.bind(n,16160)),Promise.resolve().then(n.bind(n,43292)),Promise.resolve().then(n.bind(n,47488)),Promise.resolve().then(n.bind(n,72191)),Promise.resolve().then(n.bind(n,98675)),Promise.resolve().then(n.bind(n,48211))},10211:function(e,t,n){"use strict";n.r(t);var l=n(57437),a=n(61396),i=n.n(a);t.default=function(e){var t=e.article;return(0,l.jsx)("div",{className:"w-full p-3 sm:w-1/2 sm:basis-1/2",children:(0,l.jsxs)(i(),{href:t.data.url,className:"flex w-full flex-col rounded-lg border border-gray-300 p-3 hover:border-gray-500",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:t.data.menuTitle||t.data.title}),(0,l.jsx)("p",{children:t.data.title})]})})}},40589:function(e,t,n){"use strict";n.r(t);var l=n(57437),a=n(61396),i=n.n(a),r=n(25446);t.default=function(e){var t=e.lastUpdated,n=e.prevArticle,a=e.nextArticle;return(0,l.jsxs)("div",{className:"mt-12 border-t",children:[(0,l.jsx)("div",{className:"flex w-full flex-col py-12 sm:flex-row",children:(0,l.jsxs)("div",{className:"text-left sm:w-1/2 sm:basis-1/2",children:["Last updated on"," ",(0,l.jsx)("span",{className:"font-bold",children:new Date(t).toLocaleDateString("en-us",{year:"numeric",month:"short",day:"numeric"})})]})}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-8 py-12 sm:flex-row",children:[n&&(0,l.jsx)("div",{className:"w-full px-3 sm:basis-1/2",children:(0,l.jsxs)(i(),{href:n.data.url,className:"flex h-full w-full flex-col gap-2 rounded-[5px] bg-[#163341] p-[15px] text-white hover:bg-[#102a36]",children:[(0,l.jsxs)("span",{className:"flex items-center gap-2",children:[(0,l.jsx)(r.Z,{icon:"arrow-left",size:14,color:"#fff"}),"Previous"]}),n.data.title]})}),a&&(0,l.jsx)("div",{className:"w-full px-3 sm:basis-1/2",children:(0,l.jsxs)(i(),{href:a.data.url,className:"flex h-full w-full flex-col items-end gap-2 rounded-[5px] bg-[#163341] p-[15px] text-right text-white hover:bg-[#102a36]",children:[(0,l.jsxs)("span",{className:"flex items-center gap-2",children:["Next",(0,l.jsx)(r.Z,{icon:"arrow-right",size:14,color:"#fff"})]}),a.data.title]})})]})]})}},16160:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var l=n(24670),a=n(57437),i=n(65251),r=n(2265),o=n(25446),s=n(1801),c=n(61396),u=n.n(c),d=n(90820),h=function(e){var t=e.list,n=e.level,c=void 0===n?0:n,m=e.slug,f=[];t.map(function(e,t){e.isOpen&&f.push(t)});var p=(0,l._)((0,r.useState)(f),2),x=p[0],v=p[1],g=function(e){x.includes(e)?v(x.filter(function(t){return t!==e})):v((0,s._)(x).concat([e]))},b=["pl-0","pl-4","pl-4","pl-4","pl-4","pl-4","pl-4"],y=["left-1","left-4","left-4","left-4","left-4","left-4","left-4"];return(0,a.jsx)(a.Fragment,{children:t.map(function(e,t){var n,l,r,s,f="/"===e.article.data.url.slice(-1)?e.article.data.url.slice(0,-1):e.article.data.url;return(0,a.jsxs)("li",{className:"py-1 leading-tight",children:[(null==e?void 0:null===(n=e.children)||void 0===n?void 0:n.length)&&(null==e?void 0:null===(l=e.children)||void 0===l?void 0:l.length)>0?(0,a.jsxs)("span",{className:"flex w-full cursor-pointer items-center gap-2 py-0.5 text-[15px] ".concat(m===f?"text-[#091A23]":"text-[#5C707A]"," ").concat(b[c]),onClick:function(){return g(t)},children:[0===c&&(0,a.jsx)("span",{className:"flex transition-all ".concat(x.includes(t)?"rotate-90":""),children:(0,a.jsx)(o.Z,{icon:"arrow-right",size:12,color:"#333"})}),e.article.data.menuTitle||e.article.data.title,(0,a.jsx)("span",{className:"flex transition-all ".concat(x.includes(t)?"rotate-90":""),children:(0,a.jsx)(o.Z,{icon:"chevron-right",size:10,color:"#333"})})]}):(0,a.jsxs)(u(),{href:f,className:"relative flex cursor-pointer items-center gap-2 py-1 text-[15px] leading-tight ".concat(m===f?"active-item text-[#091A23]":"text-[#5C707A]"," ").concat(b[c]),children:[0===c&&(e.article.data.menuTitle||e.article.data.title)&&(0,a.jsx)("span",{className:"flex transition-all",children:(0,a.jsx)(o.Z,{icon:"arrow-right",size:12,color:"#333"})}),e.article.data.menuTitle||e.article.data.title,c>0&&m===f&&(0,a.jsx)(i.E.div,{className:"absolute left-0 top-0 h-full w-1 rounded bg-[#091A23]",layoutId:"side-background-".concat(c),layoutDependency:!0})]}),!!(null==e?void 0:null===(r=e.children)||void 0===r?void 0:r.length)&&(0,a.jsx)(i.E.ul,{className:"relative flex list-none flex-col overflow-hidden before:absolute ".concat(y[c]," before:top-0 before:h-full before:w-1 before:rounded before:bg-gray-100\n ").concat(e.isOpen?"":"h-0 opacity-0"),variants:d.g,animate:x.includes(t)?"open":"closed",children:(0,a.jsx)(h,{list:e.children,slug:m,level:c+1})},null==e?void 0:null===(s=e.article)||void 0===s?void 0:s.id)]},null==e?void 0:e.article.id)})})},m=function(e){var t=e.articleList,n=e.slug,s=(0,l._)((0,r.useState)(!0),2),c=s[0],u=s[1],d=(0,r.useRef)(null);return(0,r.useEffect)(function(){var e=document.querySelector(".active-item");if(e&&d.current){var t=e.getBoundingClientRect(),n=d.current.getBoundingClientRect();t.y-n.y>n.height&&d.current.scrollTo({top:t.y-n.y-n.height+150,behavior:"smooth"})}},[]),(0,a.jsxs)("div",{className:"rounded-md border",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between border-b p-4",children:[(0,a.jsx)("h3",{className:"text-[15px] font-bold",children:"Learn"}),(0,a.jsx)(o.Z,{icon:"chevron-down",size:12,className:"cursor-pointer transition-transform md:hidden ".concat(c?"rotate-180":""),onClick:function(){u(!c)}})]}),(0,a.jsx)(i.E.div,{ref:d,className:"sidebar-wrapper h-40 max-h-[300px] overflow-auto px-4 md:max-h-[calc(100vh-260px)] ".concat(c?"":"h-0 opacity-0"),variants:{open:{opacity:1,height:"auto",transition:{height:{duration:.4},opacity:{duration:.25,delay:.15}}},closed:{opacity:0,height:0,transition:{height:{duration:.4},opacity:{duration:.25}}}},animate:c?"open":"closed",children:(0,a.jsx)("ul",{className:"relative flex list-none flex-col py-4",children:(0,a.jsx)(h,{list:t,slug:n})})})]})}},43292:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var l=n(24670),a=n(57437),i=n(65251),r=n(61396),o=n.n(r),s=n(2265),c=n(35769),u=(0,n(67606).j)(["text-[15px]","relative","py-2","leading-tight"],{variants:{headingAs:{h2:["pl-4"],h3:["pl-8"],h4:["pl-12"],h5:["pl-16"],h6:["pl-20"]}}}),d=function(e){var t=e.list,n=e.slug,r=(0,l._)((0,s.useState)(0),2),d=r[0],h=r[1];return(0,s.useEffect)(function(){var e=function(){null==t||t.map(function(e,n){var l,a=null==e?void 0:e.heading,i=null===(l=t[n+1])||void 0===l?void 0:l.heading,r=null==a?void 0:a.toString().toLowerCase().replace(/x[\d]+;/g,"").replace(/[^a-z0-9\s]+/g,"").replace(/\s/g,"-"),o=null==i?void 0:i.toString().toLowerCase().replace(/x[\d]+;/g,"").replace(/[^a-z0-9\s]+/g,"").replace(/\s/g,"-"),s=document.getElementById(r);if(s){var c=s.getBoundingClientRect();if(c.top<150){if(o){var u=document.getElementById(o);if(u){var d=u.getBoundingClientRect();d.top>150&&h(c.top<0&&d.top1280||m(e)};return(0,i.jsxs)("li",{onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)},children:[(0,i.jsxs)(c(),{href:r||"",className:"flex items-center gap-1 p-3 font-space text-sm text-[#091A23] hover:font-bold lg:py-5",onClick:function(){return b(!s)},children:[l,!!(null==n?void 0:n.length)&&(0,i.jsx)(C.Z,{icon:"chevron-down",size:12,color:"#FF4438",className:"-rotate-90 xl:rotate-0"})]}),(0,i.jsx)(N.M,{mode:"wait",children:!!(null==n?void 0:n.length)&&s&&(0,i.jsxs)(k.E.div,{className:(0,d.m)(v({index:t})),initial:f?p.exit:x.exit,layoutId:"dropdown",layoutDependency:!0,animate:f?p.enter:x.enter,exit:f?p.exit:x.exit,children:[(0,i.jsxs)("button",{className:"flex items-center gap-2 pl-4 xl:hidden",onClick:function(){return b(!s)},children:[(0,i.jsx)(C.Z,{icon:"chevron-right",size:14,className:"rotate-180"}),"Back"]}),(0,i.jsx)("div",{className:"flex w-full flex-col gap-y-8 py-6 lg:flex-row",children:n.map(function(e,t){return(0,i.jsx)("div",{className:"flex w-[288px] flex-col gap-6 px-6 ".concat(0!==t?"border-l border-[#B9C2C6]":""),children:e.menuBlock.map(function(e,n){return(0,i.jsxs)("div",{className:"flex flex-col gap-3 ".concat(0!==n?"border-t border-[#B9C2C6] pt-6":""),children:[e.title&&(0,i.jsx)("h6",{className:"font-space text-sm uppercase",children:e.title}),e.image&&(0,i.jsx)(T.Z,{alt:"",source:e.image,height:34,width:200,className:"w-full max-w-[200px]"}),e.description&&(0,i.jsx)("p",{className:"text-sm",children:e.description}),(0,i.jsx)("ul",{className:"flex flex-col gap-3",children:e.menuList.map(function(e){return"link"===e.hierarchy?(0,i.jsxs)(c(),{href:e.link||"",className:"flex w-full flex-col font-space hover:font-bold",children:[(0,i.jsx)("span",{className:"text-sm hover:font-bold",children:e.label}),e.description&&(0,i.jsx)("span",{className:"font-spaceGrotesk text-sm font-normal text-[#5C707A]",children:e.description})]},e.label):(0,i.jsx)(h.Z,{hierarchy:e.hierarchy,href:e.link,children:e.label},e.label)})})]},"block-".concat(t+n+1))})},"column-".concat(t+1))})})]},"popup")})]},l)},E=n(55666),L=n.n(E),_=n(35954),z=n(1454),F=n(54887),I=(0,u.forwardRef)(function(e,t){var n=e.isOpen,l=e.children,a=e.className;return n?F.createPortal((0,i.jsx)("div",{className:"fixed inset-0 z-50 grid h-screen place-items-start overflow-auto bg-black/60",children:(0,i.jsx)("div",{className:a,ref:t,children:l})}),document.body,"modal"):null}),S=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a._)((0,u.useState)(t),2),l=n[0],i=n[1];return(0,u.useEffect)(function(){if(e){var t=function(t){e.current&&!e.current.contains(t.target)&&i(!1)},n=function(e){"Escape"===e.key&&i(!1)};return l&&(document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),document.addEventListener("keydown",n)),function(){document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t),document.removeEventListener("keydown",n)}}},[e,l]),(0,u.useEffect)(function(){var e=document.body;return l?e.classList.add("disable-scrolling"):e.classList.remove("disable-scrolling"),function(){e.classList.remove("disable-scrolling")}},[l]),[l,i]},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a._)(S(e,t),2),l=n[0],i=n[1],r=function(){i(!0)},o=function(){i(!1)};return[l,{openModal:r,closeModal:o,toggleModal:function(){l?o():r()}}]},Z=n(45787),D=n(24033),G=function(e){var t=e.inputRef,n=e.onChange,l=e.placeholder,r=e.value,o=e.onClose,s=(0,a._)((0,u.useState)(0),2),c=s[0],d=s[1],h=(0,D.useRouter)();return(0,u.useEffect)(function(){var e,t=document.getElementById("result-container");t&&(null===(e=t.querySelector(".active"))||void 0===e||e.classList.remove("active"),t.children[c].children[0].classList.add("active"))},[c]),(0,i.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,i.jsxs)("div",{className:"flex w-full items-center",children:[(0,i.jsx)("div",{className:"mr-4 flex w-8 items-center justify-center",children:(0,i.jsx)(C.Z,{icon:"search",size:20})}),(0,i.jsx)("input",{ref:t,placeholder:l,maxLength:512,type:"search",value:r,onChange:n,onKeyDown:function(e){if("ArrowUp"===e.code){e.preventDefault(),e.stopPropagation();var t,n=(null===(t=document.getElementById("result-container"))||void 0===t?void 0:t.childElementCount)||1;d(c-1<0?n-1:c-1)}if("ArrowDown"===e.code){e.preventDefault(),e.stopPropagation();var l,a=(null===(l=document.getElementById("result-container"))||void 0===l?void 0:l.childElementCount)||1;d(c+1>=a?c+1-a:c+1)}if("Escape"===e.code&&o(),"Enter"===e.code){var i=document.getElementById("result-container"),r=null==i?void 0:i.querySelector(".active");if(r){var s=r.getAttribute("href");s&&h.push(s)}}},className:"h-[56px] w-full border-0 p-2 outline-0"})]})})},R=function(e){var t=e.placeholder,n=e.onClose,l=(0,Z.l)(e),r=l.query,o=l.refine,s=(0,a._)((0,u.useState)(r),2),c=s[0],d=s[1],h=(0,u.useRef)(null);return(0,u.useEffect)(function(){var e=setTimeout(function(){return o(c)},200);return function(){clearTimeout(e)}},[c]),(0,i.jsx)(G,{inputRef:h,onChange:function(e){d(e.currentTarget.value)},onClose:n,placeholder:t,value:c})},B=n(45315),M=n(78453),q=function(){var e=(0,B.O)().hits;return(0,i.jsx)("div",{className:"flex w-full max-w-[670px] flex-col",children:(0,i.jsxs)("dl",{className:"flex flex-col gap-[10px]",id:"search-result",children:[(0,i.jsx)("dt",{className:"search-item-source",children:"Documentation"}),e&&e.slice(0,9).map(function(e){return(0,i.jsx)("dd",{className:"search-item overflow-hidden rounded",children:(0,i.jsx)(c(),{href:null==e?void 0:e.url,className:"flex w-full items-center bg-gray-100 px-6 py-3 hover:bg-[#091A23] hover:text-white",children:(0,i.jsxs)("div",{className:"flex w-full items-center justify-between gap-4",children:[(0,i.jsx)("div",{className:"search-item-icon flex h-6 w-6 shrink-0 basis-6 items-center justify-center",children:(0,i.jsx)(C.Z,{icon:"copy",size:16})}),(0,i.jsxs)("div",{className:"flex grow flex-col",children:[(0,i.jsx)(M.y,{hit:e,attribute:"category"}),(0,i.jsx)(M.y,{hit:e,attribute:"title"})]}),(0,i.jsx)("div",{className:"search-item-action flex h-6 w-6 shrink-0 basis-6 items-center justify-center",children:(0,i.jsx)(C.Z,{icon:"chevron-right",size:16})})]})})},"".concat(e.objectID))})]})})},O=function(){var e=(0,B.O)().hits,t=(0,Z.l)().query;return t&&""!==t&&e.length>0?(0,i.jsx)("div",{className:"flex max-h-[400px] min-h-[300px] flex-col overflow-auto p-6",children:(0,i.jsx)("div",{className:"mb-6",children:(0,i.jsx)(q,{headingText:""})})}):(0,i.jsx)("div",{className:"flex w-full flex-col items-center gap-4 py-16 text-gray-600",children:(0,i.jsx)("span",{children:"No results"})})},H=L()("HRGS1GKZM7","92111e983b1a97c3e8549fc16eb7ce48"),U=function(e){var t=e.onClose,n=(0,u.useRef)(null),l=(0,a._)(P(n),2),r=l[0],o=l[1].toggleModal;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"cursor-pointer",onClick:function(){return o()},children:(0,i.jsx)(C.Z,{icon:"search",size:20})}),(0,i.jsx)(I,{isOpen:r,ref:n,className:"relative top-[150px] flex w-full justify-center px-16",children:(0,i.jsx)("div",{className:"flex w-full max-w-[770px] flex-col rounded-lg bg-white shadow-[0_10px_15px_-3px_rgba(0,0,0,0.1)]",children:(0,i.jsxs)(_.p,{searchClient:H,indexName:"document",children:[(0,i.jsx)("div",{className:"flex border-b border-gray-200 px-4",children:(0,i.jsx)(R,{placeholder:"Search Documents",onClose:function(){t&&t()}})}),(0,i.jsx)(O,{}),(0,i.jsx)("div",{className:"flex items-center justify-between gap-2 p-5",children:(0,i.jsx)(z.C,{className:"w-[120px]",theme:"light"})})]})})})]})},W=function(e){var t=e.callToActions,n=e.logo,r=e.menus,s=(0,a._)((0,u.useState)(!1),2),m=s[0],v=s[1],b=A("(min-width: 1280px)");return(0,u.useEffect)(function(){b||(m?document.body.classList.add("disable-scrolling"):document.body.classList.remove("disable-scrolling"))},[m]),(0,i.jsx)("header",{className:(0,d.m)(f()),"data-site-header":!0,children:(0,i.jsx)("div",{className:(0,d.m)(p()),children:(0,i.jsxs)("div",{className:(0,d.m)(x()),children:[(0,i.jsxs)("div",{className:"flex h-[70px] items-center gap-4",children:[n?(0,i.jsx)(c(),{className:"flex items-center space-x-3",href:"https://redis.io","data-event-name":"Header","data-event-label":"Logo",children:(0,i.jsx)(o(),{src:(null==n?void 0:n.source)||"",width:(null==n?void 0:n.width)||170,height:(null==n?void 0:n.height)||40,alt:(null==n?void 0:n.alt)||"eager",loading:"lazy"})}):null,(0,i.jsxs)("div",{id:"mega-menu-full",className:"".concat(m?"visible fixed left-0 top-[70px] flex h-[calc(100vh-70px)] flex-col overflow-auto bg-white":"hidden"," w-full items-center font-medium xl:relative xl:left-auto xl:top-auto xl:flex xl:h-auto xl:w-auto xl:overflow-visible"),children:[(0,i.jsx)("ul",{className:"mb-0 flex w-full flex-col p-0 font-space xl:flex-row xl:border-0",children:(null==r?void 0:r.length)&&(null==r?void 0:r.map(function(e,t){return(0,i.jsx)(V,(0,l._)({index:t},e),null==e?void 0:e.menuLabel)}))}),(0,i.jsx)("ul",{className:"mx-auto mt-16 flex w-full max-w-[500px] flex-col-reverse gap-6 px-4 py-0 xl:hidden",children:(null==t?void 0:t.length)&&(null==t?void 0:t.map(function(e){var t,n,l,a,r,o,s,c,u,d;return(0,i.jsx)("li",{children:(null==e?void 0:null===(t=e.background)||void 0===t?void 0:t.toLowerCase())==="red"?(0,i.jsx)(h.Z,{hierarchy:"primary",label:null==e?void 0:null===(n=e.callToAction)||void 0===n?void 0:n.label,href:null==e?void 0:null===(l=e.callToAction)||void 0===l?void 0:l.href,isFullWidth:!0}):(null==e?void 0:null===(r=e.callToAction)||void 0===r?void 0:null===(a=r.label)||void 0===a?void 0:a.toLowerCase())==="login"&&(0,i.jsx)(h.Z,{hierarchy:"link",label:null==e?void 0:null===(o=e.callToAction)||void 0===o?void 0:o.label,href:null==e?void 0:null===(s=e.callToAction)||void 0===s?void 0:s.href,endIcon:"arrow-right",isFullWidth:!0})||(0,i.jsx)(h.Z,{hierarchy:"secondary",label:null==e?void 0:null===(c=e.callToAction)||void 0===c?void 0:c.label,href:null==e?void 0:null===(u=e.callToAction)||void 0===u?void 0:u.href,isFullWidth:!0})},null==e?void 0:null===(d=e.callToAction)||void 0===d?void 0:d.label)}))})]})]}),(0,i.jsxs)("div",{className:"flex items-center gap-8 xl:gap-4",children:[(0,i.jsx)("div",{className:"relative flex",children:(0,i.jsx)(U,{})}),(0,i.jsx)("div",{id:"cta-menu-full",className:"hidden w-full items-center justify-between font-medium xl:visible xl:order-1 xl:flex xl:w-auto",children:(0,i.jsx)("ul",{className:"mt-4 flex flex-col rounded-lg p-0 xl:mt-0 xl:flex-row xl:gap-4 xl:border-0",children:(null==t?void 0:t.length)&&(null==t?void 0:t.map(function(e){var t,n,l,a,r;return(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:null==e?void 0:null===(t=e.callToAction)||void 0===t?void 0:t.href,className:(0,d.m)(g({background:null==e?void 0:null===(n=e.background)||void 0===n?void 0:n.toLowerCase()}),"h-[70px] justify-center text-center",(null==e?void 0:null===(l=e.background)||void 0===l?void 0:l.toLowerCase())==="red"?"min-w-[168px]":""),children:null==e?void 0:null===(a=e.callToAction)||void 0===a?void 0:a.label})},null==e?void 0:null===(r=e.callToAction)||void 0===r?void 0:r.label)}))})}),(0,i.jsx)(j,{isOpen:m,onClick:function(){return v(!m)}})]})]})})})},X=W},97046:function(e,t,n){"use strict";n.d(t,{$Y:function(){return a},_E:function(){return r},nk:function(){return i},sT:function(){return o}});var l=n(67606),a=(0,l.j)(["inline-flex","items-center","justify-center","gap-2","text-center","rounded-lg","transition-colors","w-full","h-11","text-[15px]","whitespace-nowrap","font-normal","font-space"],{variants:{hierarchy:{primary:["bg-[#DCFF1E]","text-[#091A23]","rounded-[5px]","py-[15px]","px-[15px]","border","border-[#5C707A]"],secondary:["bg-transparent","rounded-[5px]","py-[15px]","px-[15px]","border","active:bg-[#DCFF1E]","active:text-[#091A23]"],link:["p-0","bg-transparent","active:text-[#DCFF1E]","h-auto","active:bg-transparent"]},size:{sm:["px-4 py-[10px] text-xs"],md:["px-8 py-[14px] text-sm"]},theme:{light:[],dark:["active:bg-white"]}},compoundVariants:[{theme:"light",hierarchy:"primary",className:"active:bg-[#163341] active:text-white"},{theme:"dark",hierarchy:"primary",className:"active:bg-white"},{theme:"light",hierarchy:"secondary",className:"border-[#091A23] text-[#091A23]"},{theme:"dark",hierarchy:"secondary",className:"border-white text-white"},{theme:"light",hierarchy:"link",className:"text-[#091A23]"},{theme:"dark",hierarchy:"link",className:"text-white"},{hierarchy:"link",size:"sm",className:"p-0"},{hierarchy:"link",size:"md",className:"p-0"}],defaultVariants:{hierarchy:"primary",size:"md",theme:"light"}}),i=["primary","secondary","link"],r={xs:14,sm:16,md:20,lg:22,xl:24,"2xl":26},o=(0,l.j)(["fill-current"],{variants:{color:{white:["fill-white"],black:["fill-black"],blue:["fill-pb-blue-500"]}}})},73398:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var l=n(35029),a=n(88965),i=n(8001),r=n(57437),o=n(2265),s=n(23451),c={"display-2xl":["4.5rem",{lineHeight:"1.25",letterSpacing:"-0.02em"}],"display-xl":["3.75rem",{lineHeight:"1.2",letterSpacing:"-0.02em"}],"display-lg":["3rem",{lineHeight:"1.2",letterSpacing:"-0.02em"}],"display-md":["2.25rem",{lineHeight:"1.22",letterSpacing:"-0.02em"}],"display-sm":["1.875rem","1.26"],"display-xs":["1.5rem","1.33"],xl:["1.25rem","1.5"],lg:["1.125rem","1.55"],md:["1rem","1.5"],sm:["0.875rem","1.42"],xs:["0.75rem","1.5"]},u=(0,s.q)({classGroups:{"font-size":[{text:[function(e){return Object.hasOwn(c,e)}]}]}}),d=n(97046),h=n(25446),m=n(61396),f=n.n(m),p=function(e){if(!e)return{Component:"div",href:""};if("/"===e[0])return{href:e,as:f()};var t,n="localhost";try{t=new URL(e)}catch(t){throw Error("Invalid URL: ".concat(e))}var l=t.hostname==="www.".concat(n)||t.hostname===n;return{Component:l?f():"a",rel:l?"":"noreferrer noopener",target:l?"":"_blank",href:l?t.href.split(t.host)[1]:e}},x=n(22977),v=function(){function e(t){(0,x._)(this,e),this.el=t,this.chars="AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz",this.update=this.update.bind(this),this.queue=[],this.frame=0,this.animating=!1}var t=e.prototype;return t.setText=function(e){var t=this;if(!this.animating){this.animating=!0;var n=e.length,l=new Promise(function(e){return t.resolve=e});this.queue=[];for(var a=0;a=s?(t++,e+=r):this.frame>=o?((!c||.28>Math.random())&&(c=this.randomChar(),this.queue[n].char=c),e+=c):e+=i}this.el.innerHTML=e,t>=this.queue.length?(this.resolve&&this.resolve(null),this.animating=!1):(this.frameRequest=requestAnimationFrame(this.update),this.frame++)},t.randomChar=function(){return this.chars[Math.floor(Math.random()*this.chars.length)]},e}(),g=function(e){var t=e.children,n=e.className,s=e.label,c=e.href,m=e.iconColor,f=e.startIcon,x=e.endIcon,g=e.size,b=e.theme,y=e.hierarchy,w=void 0===y?"primary":y,j=e.isFullWidth,N=(0,i._)(e,["children","className","label","href","iconColor","startIcon","endIcon","size","theme","hierarchy","isFullWidth"]),k=p(c||""),C=k.Component,T=(0,i._)(k,["Component"]),A=u((0,d.sT)({color:m})),V=d._E[g||"sm"],E=(0,o.useRef)(null),L=function(){new v(E.current).setText(s||t)};return(0,o.useEffect)(function(){"link"!==w&&E.current&&E.current.addEventListener("mouseenter",L)},[]),(0,r.jsxs)("div"===C?"button":"a",(0,a._)((0,l._)({className:u((0,d.$Y)({hierarchy:w,size:g,theme:b}),n,x?"arrow-right-button":"",f?"arrow-left-button":"",j?"":"sm:w-fit")},T,N),{ref:E,children:[f&&(0,r.jsx)("span",{className:"block w-4 overflow-hidden",children:(0,r.jsx)(h.Z,{size:V,icon:f,className:"arrow-left ".concat(A),"aria-hidden":!0})}),s||t,x&&(0,r.jsx)("span",{className:"block w-4 overflow-hidden",children:(0,r.jsx)(h.Z,{size:V,icon:x,className:"arrow-right ".concat(A),"aria-hidden":!0})})]}))}},25446:function(e,t,n){"use strict";var l=n(35029),a=n(88965),i=n(8001),r=n(57437),o=["arrow-left","arrow-right","minus-circle","plus-circle","github","pencil","external-link","search","chevron-right","chevron-down","edit","copy","info-circle","bulb","fire"];t.Z=function(e){var t=e.icon,n=e.size,s=void 0===n?24:n,c=(0,i._)(e,["icon","size"]);return o.includes(t)?(0,r.jsx)("svg",(0,a._)((0,l._)({width:s,height:s,role:"img","aria-label":t},c),{children:(0,r.jsx)("use",{href:"/learn/icons/sprites.svg#".concat(t)})})):null}},97012:function(e,t,n){"use strict";var l=n(57437),a=n(16691),i=n.n(a);t.Z=function(e){var t=e.alt,n=e.className,a=e.height,r=e.source,o=e.width;return r?(0,l.jsx)(i(),{alt:t||"",src:r,width:o||600,height:a||600,className:"h-full w-full object-contain ".concat(n),loading:"eager"}):null}},98675:function(e,t,n){"use strict";n.r(t);var l=n(24670),a=n(57437),i=n(62167),r=n(65251),o=n(2265),s=n(25446);t.default=function(e){var t=e.list,n=e.className,c=e.label,u=(0,l._)((0,o.useState)(null),2),d=u[0],h=u[1],m=(0,l._)((0,o.useState)(!1),2),f=m[0],p=m[1],x={enter:{opacity:1,rotateX:0,transition:{duration:.3}},exit:{opacity:0,rotateX:-15,transition:{duration:.3}}},v=(0,o.useMemo)(function(){var e,n;return null==t?void 0:null===(n=t.filter(function(e){return e.value===d}))||void 0===n?void 0:null===(e=n[0])||void 0===e?void 0:e.label},[d]);return(0,a.jsxs)("div",{className:"relative flex flex-col ".concat(n),children:[(0,a.jsxs)("div",{className:"flex min-w-[150px] cursor-pointer justify-between",onClick:function(){return p(!f)},children:[(0,a.jsx)("span",{children:v||c}),(0,a.jsx)(s.Z,{icon:"chevron-down",size:14})]}),(0,a.jsx)(i.M,{mode:"wait",children:f&&(0,a.jsx)(r.E.ul,{className:"absolute top-[100%] z-[200] flex w-full flex-col rounded-sm border bg-white",initial:x.exit,animate:x.enter,exit:x.exit,children:null==t?void 0:t.map(function(e){return(0,a.jsx)("li",{className:"cursor-pointer border-b px-2 py-1 text-sm ".concat(d===e.value?"bg-gray-100":"bg-white"),onClick:function(){return h(e.value),p(!1)},children:e.label},e.value)})},"dropdown")})]})}},90820:function(e,t,n){"use strict";n.d(t,{g:function(){return l}});var l={open:{opacity:1,height:"auto",transition:{height:{duration:.4},opacity:{duration:.25,delay:.15}}},closed:{opacity:0,height:0,transition:{height:{duration:.4},opacity:{duration:.25}}}}},48211:function(e,t,n){"use strict";n.r(t),n.d(t,{CustomComponentGenerator:function(){return x},allComponents:function(){return f},default:function(){return v}});var l=n(1801),a=n(77150),i=n(24930),r=n.n(i),o={name:"Button",inputs:[{name:"label",type:"text",defaultValue:"CTA"},{name:"hierarchy",type:"text",defaultValue:"primary",enum:n(97046).nk},{name:"href",type:"text",defaultValue:"https://redis.com/",helperText:"Please use relative links when applicable."}]},s={inputs:[{name:"source",type:"file",allowedFileTypes:["jpeg","png","jpg","svg"]},{name:"alt",type:"text",helperText:"For usage for screen-readers"},{name:"width",type:"number",helperText:"Please use the native width"},{name:"height",type:"number",helperText:"Please use the native height"}]},c={name:"CardDeck",inputs:[{name:"heading",type:"text",defaultValue:"Please hit your heading content and then hit enter."},{name:"headingAs",type:"text",defaultValue:"h2",enum:["h2","h3","h4","h5","h6"]},{name:"headingSize",type:"text",defaultValue:"md",enum:["xs","sm","md","lg","xl","xxl"]},{name:"theme",type:"text",defaultValue:"light",enum:["light","dark"]},{name:"layout",type:"text",defaultValue:"3x1",enum:["3x1","4x1"]},{name:"callToAction",type:"object",subFields:o.inputs},{name:"cards",type:"list",subFields:[{name:"cardIcon",type:"file",inputs:s.inputs},{name:"eyebrow",type:"text",defaultValue:"Insert Title",enum:["Press release","Tutorial","Blog","Video","Guide","Course","Resource","Community","None"]},{name:"eyebrowColor",type:"color"},{name:"cardDate",type:"date"},{name:"title",type:"text"},{name:"content",type:"text"},{name:"link",type:"url"},{name:"redirectText",type:"text",defaultValue:"Learn more"}]}]},u={name:"Component Image",inputs:[{name:"image",type:"file",inputs:s.inputs},{name:"alt",type:"text",default:""},{name:"roundedBorder",type:"boolean",default:!0},{name:"width",type:"number",defaultValue:500},{name:"height",type:"number",defaultValue:500}]},d={name:"Conversion Panel",inputs:[{name:"heading",type:"text",defaultValue:"Please hit your heading content and then hit enter."},{name:"headingAs",type:"text",defaultValue:"h2",enum:["h1","h2","h3","h4","h5","h6"]},{name:"headingSize",type:"text",defaultValue:"md",enum:["xs","sm","md","lg","xl","xxl"]},{name:"subhead",type:"text"},{name:"theme",type:"text",defaultValue:"light",enum:["light","dark"]},{name:"callToAction",type:"object",subFields:o.inputs}]},h={name:"Trustbar",inputs:[{name:"heading",type:"text",defaultValue:"Please hit your heading content and then hit enter."},{name:"headingAs",type:"text",defaultValue:"h2",enum:["h1","h2","h3","h4","h5","h6"]},{name:"headingSize",type:"text",defaultValue:"md",enum:["xs","sm","md","lg","xl","xxl"]},{name:"subhead",type:"text"},{name:"theme",type:"text",defaultValue:"light",enum:["light","dark"]},{name:"logos",type:"list",subFields:[{name:"company",type:"string"},{name:"logo",type:"file",inputs:s.inputs},{name:"link",type:"string"}]}]},m=[{component:r()(function(){return Promise.all([n.e(775),n.e(848)]).then(n.bind(n,50848))},{loadableGenerated:{webpack:function(){return[50848]}}}),config:{name:"Admonition",inputs:[{name:"heading",type:"text",defaultValue:"NOTE"},{name:"headingIcon",type:"text",defaultValue:"None",enum:["None","Tip (Green with bulb icon)","Note (Info icon)","Note (Blue with Info icon)","Lettuce (Fire icon)"]},{name:"body",type:"richText",defaultValue:"Sample Body"}]}},{component:r()(function(){return Promise.all([n.e(235),n.e(212)]).then(n.bind(n,30212))},{loadableGenerated:{webpack:function(){return[30212]}}}),config:{name:"Code Snippet",inputs:[{name:"heading",type:"text",defaultValue:""},{name:"language",type:"text",enum:["bash","csharp","java","javascript","json","groovy","php","python","ruby","shell","sql","typescript","xml","yaml","yml"],defaultValue:"bash"},{name:"code",type:"longText",defaultValue:""},{name:"showLineNumbers",type:"boolean",defaultValue:!1},{name:"wrapLongLines",type:"boolean",defaultValue:!1}]}},{component:r()(function(){return n.e(291).then(n.bind(n,67291))},{loadableGenerated:{webpack:function(){return[67291]}}}),config:u},{component:r()(function(){return n.e(169).then(n.bind(n,83169))},{loadableGenerated:{webpack:function(){return[83169]}}}),config:{name:"Heading",inputs:[{name:"heading",type:"text",defaultValue:"Please hit your heading content and then hit enter."},{name:"headingAs",type:"text",defaultValue:"h2",enum:["h1","h2","h3","h4","h5","h6"]},{name:"headingSize",type:"text",defaultValue:"md",enum:["xs","sm","md","lg","xl","xxl"]},{name:"hasUnderline",type:"boolean",defaultValue:!0},{name:"directLinkToHeading",type:"boolean",defaultValue:!0}]}},{component:r()(function(){return Promise.all([n.e(775),n.e(709)]).then(n.bind(n,34709))},{loadableGenerated:{webpack:function(){return[34709]}}}),config:{name:"RichText",inputs:[{name:"content",type:"richText",defaultValue:"

Please hit your text content and then hit enter.

"}]}},{component:r()(function(){return n.e(251).then(n.bind(n,80251))},{loadableGenerated:{webpack:function(){return[80251]}}}),config:{name:"Tab Switcher",inputs:[{name:"tabs",type:"array",defaultValue:[{heading:"Tab1",blocks:[]},{heading:"Tab2",blocks:[]}],subFields:[{name:"heading",type:"text"},{name:"blocks",type:"blocks",hideFromUI:!0,helperText:"This is an editable region where you can drag and drop blocks."}]}]}},{component:r()(function(){return Promise.all([n.e(775),n.e(235),n.e(562)]).then(n.bind(n,93562))},{loadableGenerated:{webpack:function(){return[93562]}}}),config:{name:"Table",inputs:[{name:"tableRow",type:"list",subFields:[{name:"tableCell",type:"list",subFields:[{name:"colspan",type:"number",defaultValue:1},{name:"isCode",type:"boolean",defaultValue:!1},{name:"content",type:"richText"},{name:"language",type:"text",defaultValue:"bash"},{name:"code",type:"longText"},{name:"isHeader",type:"boolean",defaultValue:!1}]}]}]}},{component:r()(function(){return n.e(994).then(n.bind(n,84994))},{loadableGenerated:{webpack:function(){return[84994]}}}),config:{name:"Component Video",inputs:[{name:"url",type:"text"},{name:"title",type:"text",default:""},{name:"width",type:"number"},{name:"height",type:"number"}]}},{component:r()(function(){return n.e(521).then(n.bind(n,68521))},{loadableGenerated:{webpack:function(){return[68521]}}}),config:{name:"Hero",inputs:[{name:"heading",type:"text",defaultValue:"Please hit your heading content and then hit enter."},{name:"headingAs",type:"text",defaultValue:"h2",enum:["h1","h2","h3","h4","h5","h6"]},{name:"headingSize",type:"text",defaultValue:"md",enum:["xs","sm","md","lg","xl","xxl"]},{name:"subhead",type:"text"},{name:"theme",type:"text",defaultValue:"light",enum:["light","dark"]}]}},{component:r()(function(){return Promise.all([n.e(803),n.e(492)]).then(n.bind(n,41388))},{loadableGenerated:{webpack:function(){return[41388]}}}),config:c},{component:r()(function(){return n.e(364).then(n.bind(n,40187))},{loadableGenerated:{webpack:function(){return[40187]}}}),config:h},{component:r()(function(){return n.e(525).then(n.bind(n,61525))},{loadableGenerated:{webpack:function(){return[61525]}}}),config:d},{component:r()(function(){return n.e(329).then(n.bind(n,32329))},{loadableGenerated:{webpack:function(){return[32329]}}}),config:{name:"Accordion",inputs:[{name:"items",type:"array",defaultValue:[{heading:"Accordion Item 1",body:[]},{heading:"Accordion Item 2",body:[]}],subFields:[{name:"heading",type:"text"},{name:"body",type:"blocks",hideFromUI:!0,helperText:"This is an editable region where you can drag and drop blocks."}]}]}},{component:r()(function(){return n.e(672).then(n.bind(n,13672))},{loadableGenerated:{webpack:function(){return[13672]}}}),config:{name:"Anchore Nav",inputs:[{name:"heading",type:"text",defaultValue:"I want to"},{name:"anchorList",type:"list",subFields:[{name:"title",type:"text"},{name:"headingId",type:"text"}]}]}}],f=(0,l._)(m),p=function(){f.map(function(e){return a.Ib.registerComponent(e.component,e.config)})},x=function(e){var t=e.children;return p(),t},v=x}},function(e){e.O(0,[549,971,938,744],function(){return e(e.s=87089)}),_N_E=e.O()}]);