"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1121],{71121:(e,a,r)=>{r.r(a),r.d(a,{default:()=>o});var i=r(54568),t=r(99680),n=r(69366),l=r(54126),d=r(11258);let p=(0,d.F)({base:"flex min-h-[3.88rem] w-full items-center border-b border-t",variants:{viewTypeName:{page_heading:"border-primary-200 bg-white dark:border-primary-500 dark:bg-primary-900",page_heading_dark:"border-primary-500 bg-primary-900 uppercase text-primary-100 dark:border-primary-500 dark:bg-primary-900"}},defaultVariants:{viewTypeName:"page_heading"}}),m=(0,d.F)({base:"flex px-400 align-middle",variants:{viewTypeName:{page_heading:"py-400 uppercase",page_heading_dark:"py-400 uppercase",none:"rounded-t-md bg-component-bg-color py-400",category_heading:"rounded-t-md py-200 text-primary-500 dark:text-primary-300"},isLink:{true:"cursor-pointer hover:underline"}},defaultVariants:{viewTypeName:"none",isLink:!1}});function o(e){let a,r,d,o,s,c,y;let g=(0,t.c)(12),{text:u}=e;if(g[0]!==u){o=Symbol.for("react.early_return_sentinel");e:{var v,h,N,b,x,f;let e=null!==(h=null!==(v=(s=(0,n.ni)(l.Jh,u)).tagName)&&void 0!==v?v:s.titleTagName)&&void 0!==h?h:"p";if(r=null!==(N=s.className)&&void 0!==N?N:"typography-paragraph",!s.text){o=null;break e}if("page_heading"===s.viewTypeName||"page_heading_dark"===s.viewTypeName){let a=(null==s?void 0:null===(b=s.target)||void 0===b?void 0:b.__typename)==="TaxonomyImpl"?(0,n.ni)(l.S1,s.target):void 0;o=(0,i.jsx)("div",{className:p({viewTypeName:null!==(x=s.viewTypeName)&&void 0!==x?x:void 0}),"data-testid":"text-component",children:(0,i.jsx)("div",{className:"mx-auto flex h-full w-full items-center justify-start gap-x-500",children:(0,i.jsx)(e,{className:m({className:r,viewTypeName:s.viewTypeName,isLink:!!a}),href:null!==(f=null==a?void 0:a.navigationPathString)&&void 0!==f?f:void 0,children:s.text})})});break e}a=e,d=m({viewTypeName:"category_heading"===s.viewTypeName?s.viewTypeName:"none"})}g[0]=u,g[1]=a,g[2]=r,g[3]=d,g[4]=o,g[5]=s}else a=g[1],r=g[2],d=g[3],o=g[4],s=g[5];if(o!==Symbol.for("react.early_return_sentinel"))return o;let _="".concat(d," ").concat(r);return g[6]!==s.text?(c=(0,i.jsx)("span",{className:"block h-full w-full align-middle",children:(0,i.jsx)("span",{className:"inline-block align-middle",children:s.text})}),g[6]=s.text,g[7]=c):c=g[7],g[8]!==a||g[9]!==_||g[10]!==c?(y=(0,i.jsx)(a,{className:_,"data-testid":"text-component",children:c}),g[8]=a,g[9]=_,g[10]=c,g[11]=y):y=g[11],y}}}]);