1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["scripts/reporting-m8e7-i2x_bundle.js","scripts/vendor-BBNELK6W_bundle.js","assets/vendor-B0RIjS4H.css","scripts/registration-8fW6h2tH_bundle.js","scripts/moment-Dt2i7U-U_bundle.js","scripts/sentry-Bq-jBV13_bundle.js","scripts/datadog-DxmyjtSX_bundle.js","assets/registration-BldnB8HG.css","scripts/slackIntegration-CyZu6SDu_bundle.js","scripts/index-yTdTJQbB_bundle.js","scripts/stripe-rL9tfl_U_bundle.js","scripts/speedboat-vendor-DJ0pA_pR_bundle.js","assets/index-SuTVq08V.css","scripts/index-CQhx_5-A_bundle.js"])))=>i.map(i=>d[i]); 2import{_ as we}from"./datadog-DxmyjtSX_bundle.js";import{cl as v,r as d,cu as ae,cE as ne,cv as $,cw as z,cx as ie,aE as I,de as je,cn as _e,a$ as G,j as t,R as O,bL as T,bK as Ee,dO as oe,cz as be,az as Ne,dE as Ie,d7 as ve,cc as Ae}from"./vendor-BBNELK6W_bundle.js";import{u as U,e as p,A as x,X as Me,J as E,au as He,oQ as re,bx as F,bZ as de,bQ as ke,jt as Pe,T as b,a6 as ce,a2 as _,H as N,F as w,rE as Be,jv as De,k as R,rF as Q,qy as Oe,G as le,bV as Fe,bC as Re,qt as We,qu as Ve,rG as Le,rH as $e,e7 as ze,e8 as Ge,de as J,ca as V,a as Ke,aY as Ue,rI as Qe,fW as ge,rJ as ue,eu as K,g as qe,at as Ye,hQ as Je,af as X,jC as Xe}from"./registration-8fW6h2tH_bundle.js";import{ee as he,ef as Ze,C as et,Z as me,bw as tt,W as st,bG as pe,bt as q,M as at,br as nt,cu as it,cE as ot,eg as rt,e4 as dt,bW as ct,bX as lt,bD as gt,P as ut,ad as ht,eh as mt,ei as Z,ej as pt,bV as xt}from"./index-yTdTJQbB_bundle.js";import"./moment-Dt2i7U-U_bundle.js";import{U as Tt,a0 as yt,u as ft,C as L}from"./slackIntegration-CyZu6SDu_bundle.js";import{S as St,V as Ct,G as wt,a as jt}from"./CustomerContentLayout-D3ubRejo_bundle.js";import{N as _t}from"./index-BHK2HVpA_bundle.js";import{u as Et}from"./index-Co4-y7fV_bundle.js";import{S as bt}from"./EmptyNodesPlaceholder-CT08OxlP_bundle.js";import{S as xe}from"./cta-button-add-OHf4huJh_bundle.js";import{S as Nt}from"./index-DZfqld-Q_bundle.js";import{W as It}from"./CollapsibleLayout-CB8TVCaq_bundle.js";import"./sentry-Bq-jBV13_bundle.js";import"./stripe-rL9tfl_U_bundle.js";import"./speedboat-vendor-DJ0pA_pR_bundle.js";import"./list-DL803xGc_bundle.js";import"./index-CgVIRN6V_bundle.js";import"./ThreadsButton-DHbe93gp_bundle.js";import"./ui-aAhEq_9D_bundle.js";import"./bulk-import-intro-card-xspqa0rZ_bundle.js";import"./index-DQt_NyOc_bundle.js";import"./category-team-CkBBW3fm_bundle.js";import"./question-mark-DKn8E8fN_bundle.js";import"./SummaryInfo-sQd2ZBuU_bundle.js";const Y=()=>{const{t:e}=v(),s=U(),a=p(he),n=d.useMemo(()=>Object.values(a).map(o=>o.name),[a]),i=d.useCallback((o="")=>{s({type:x.SHOW_MODAL,payload:{component:"TagModal",heading:e("tags.add_tag"),styleType:"light",size:"small",data:{existingTagNames:n,spinner:"addNewTag",submitButton:e("common.add"),defaultValues:{name:o},validationHint:e("tags.validations.hint"),onSubmit:g=>{s({type:x.ADD_NEW_TAG_REQUEST,payload:{name:g.name,onSuccess:u=>E(a)?s(He(`/tags/${u}`)):Me}})}}}})},[s,n,a]),l=d.useCallback((o,g)=>{s({type:x.SHOW_MODAL,payload:{component:"TagModal",heading:e("tags.edit_tag"),styleType:"light",size:"small",data:{existingTagNames:n,mode:"edit",spinner:"editTag",submitButton:e("common.save"),defaultValues:{name:g},onSubmit:u=>{s({type:x.EDIT_TAG_REQUEST,payload:{id:o,name:u.name}})}}}})},[s,n]),c=d.useCallback((o,g)=>{s({type:x.SHOW_MODAL,payload:{component:"ActionModal",isDefaultHeadingHidden:!0,showCrossBtn:!1,styleType:"light",size:"small",data:{spinner:"removeTag",content:e("tags.delete_tag_question",{tagName:g}),cancelHandler:()=>s({type:x.HIDE_MODAL}),submitButton:e("common.delete"),submitHandler:()=>s({type:x.REMOVE_TAG_REQUEST,payload:{id:o}})}}})},[s]);return{openAddTagModal:i,openEditTagModal:l,openDeleteTagModal:c}},vt=(e,s)=>le.searchNodes(e,s,"tags"),At=(e,s,a,n)=>{window.scrollTo(0,0),!De(e,n)&&(a.bulkSelectMode||a.resetSortedNodes(),a.isInitialCall?a.setInitialCall(!1):pe(),R(a.selectedTagId)&&s(Q(a.selectedTagId,a.currentPage)),Oe(e,n,a.isInitialCall))},Mt=({updateFormField:e,paginationMeta:s={},tagsLoading:a,initialValues:n={},...i})=>{const{t:l}=v(),c=U(),{totalCount:o}=s,{register:g,getFieldState:u,watch:h,setValue:r,reset:f,control:A}
2=je({defaultValues:{keyword:"",sortBy:n.sortBy||"name",direction:n.direction||"ascending"}}),{active:H}=et(),{openAddTagModal:W}=Y(),j=_e({control:A}),{keyword:m,sortBy:S,direction:y}=j,P=Pe(j),k=d.useMemo(()=>P,[m,S,y]),M=k?.keyword;d.useEffect(()=>{if(!n.initialized)return;const D={keyword:"",initialized:n.initialized,sortBy:n.sortBy,direction:n.direction};f(D)},[n.initialized,f]),d.useEffect(()=>{c({type:x.CHANGE_TAGS_HEADER_FORM,payload:{keyword:m,sortBy:S,direction:y}})},[m,S,y,c]),d.useEffect(()=>{At({keyword:m,direction:y,sortBy:S},c,i,k)},[m,S,y]);const B=d.useCallback(()=>{m.length<3||a||M&&M.trim()===m.trim()||vt(m,o)},[m,M,o,a]),C=G(0,"itemsCount",s),fe=G(0,"foldersCount",s),{isCustomRoleWithHiddenPrice:Se}=me();return Et({formValues:j,setValue:r,externallyEditableFields:{sortBy:!0,direction:!0}}),t.jsxs(O.Fragment,{children:[t.jsxs(Tt,{renderBulkActions:()=>t.jsx(tt,{isCompact:!0,handleAllNodesSelect:i.handleAllNodesSelect,nodeIds:i.nodeIds,requestPageMeta:i.requestPageMeta,source:"tags"}),shouldRenderBulkActions:i.bulkSelectMode,children:[t.jsx(b,{as:"h1",children:i.title}),t.jsx(ce,{iconWithSpinner:!0,"data-testid":"add-tag",icon:xe,styleType:"primaryCTA",type:"button",onClick:()=>W(),children:l("tags.add_tag")})]}),t.jsxs(_,{when:!i.shouldHideControls,children:[t.jsx(N,{relative:!0,bottom:30,horizontal:40,top:15,children:t.jsxs(w,{wrap:!0,alignItems:"center",id:"action-bar-controls",justifyContent:"space-between",children:[t.jsx(N,{right:24,children:t.jsx(st,{getFieldState:u,isScanningInProcess:i.isScanningInProcess,maxWidth:"380px",name:"keyword",placeHolder:l("common.search"),register:g,searchHint:t.jsx(St,{}),setValue:r,watch:h,onBlur:B})}),t.jsxs(w,{children:[t.jsx(N,{right:8,children:t.jsx(bt,{options:i.sortOptions,placement:"bottom-end",selectedOption:S,sortDirection:y,styleType:"catalog",onChangeSortOption:(D,Ce)=>{D===S?r("direction",Ce):r("sortBy",D)}})}),t.jsx(Ct,{requestPageMeta:{pageName:F.tags}})]})]})}),t.jsx(_t,{foldersCount:fe,isTotalValueHidden:Se,itemsCount:C,offsets:{top:0},searchByScanning:H,showAsyncSpinner:a,statisticsSelector:Be})]})]})},Ht=e=>({selectedTagId:e.pages.tagsPage.control.selectedTagId,customAttributes:ke(e),formValues:de(e),viewType:re(e,{pageName:F.tags}),bulkSelectMode:e.bulk.bulkSelectMode,nodeIds:Ze(e),paginationMeta:I(["nodes","pagination","tags"],e),tagsLoading:e.spinner.fetchTagNodes}),kt=e=>({fetchTagNodes:(s,a)=>e(Q(s,a)),fetchNodesMetadata:({data:s,resolve:a,reject:n})=>e({type:x.FETCH_NODES_METADATA_REQUEST,payload:{data:s,resolve:a,reject:n}}),resetSortedNodes:()=>e({type:x.RESET_SORTED_NODES})}),Pt=["sortBy","direction"],Bt=ae($("isInitialCall","setInitialCall",!0),ne(Ht,kt),z(e=>{const s=at(e.formValues),{persistedFormValues:a}=nt({formValues:e.formValues,defaultValues:s,persistedFields:Pt});return{initialValues:a}}),z(e=>{const s=G([],"customAttributes",e),a=We(s),{isCustomRoleWithHiddenPrice:n}=me(),i=Ve({searchMode:R(e.formValues.keyword)&&e.formValues.keyword.length>=3,viewType:e.viewType},a,n),l=I(["formValues","sortBy"],e),c=I(["selectedTag","name"],e);return{sortByRenderControlKey:`${a.length}_ca_key`,selectedSortOptionValue:l,title:c,sortOptions:i,requestPageMeta:{pageName:"tags",tagName:c,paginationMeta:e.paginationMeta},sortDirection:I(["formValues","direction"],e)}}),ie({handleBulkDeleteSuccess:e=>()=>e.fetchTagNodes(e.selectedTagId,q().currentPage),handleAllNodesSelect:e=>(s,a)=>e.fetchNodesMetadata({data:{tags:[{value:I(["selectedTag","name"],e)}],summarySorting:[Fe,{sortBy:Re(e.selectedSortOptionValue,e.customAttributes),sortDirection:e.sortDirection}]},resolve:s,reject:a})}))(Mt),ee=T.label.withConfig({displayName:"ui__IconContainer"})(["width:24px;height:24px;cursor:pointer;",""],e=>e.$flexCenter&&Ee(["display:flex;align-items:center;justify-content:center;"])),Te=T.div.withConfig({displayName:"ui__TagButtonWrapper"})(["display:none;"]),Dt=T(w).withConfig({displayName:"ui__TagWrapper"})(["position:relative;padding:8px 14px;margin:1px 0;background-color:",";height:40px;cursor:pointer;border-radius:4px;&:hover,&:focus{box-shadow:0 4px 8px 0 ",";}&:hover,&:focus,&:focus-within{","{display:block;}}"],e=>e.$active&&e.theme.bg.neutral50,({theme:e})=>e.bg.shadow,Te),Ot=T(w).withConfig({displayName:"ui__TagName"})(["flex:0.95;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:24px;color:",";"],({theme:e})=>e.text.neutral700),te=T.div.withConfig({displayName:"ui__AddNewTag"})(["display:flex;align-items:center;max-width:100%;padding:8px 14px;margin:1px 0;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:",";font-weight:500;cursor:pointer;"],({theme:e})=>e.brand),Ft=T.div.withConfig({displayName:"ui__ListContainer"})(["height:",";flex-grow:1;"],e=>e.$showNotifications?`calc(100vh - 130px - ${e.$notificationHeight}px)`:"calc(100vh - 130px)"),Rt=T.div.withConfig({displayName:"Tag__TagIconWrapper"})(["margin-right:10px;"]),Wt=({tag:e,searchKeyword:s,selectedTagId:a,tagClickHandler:n,openEditTagModal:i,openDeleteTagModal:l})=>{const{t:c}=v(),o=d.useCallback(()=>n(e.id),[e.id,n]),g=d.useCallback(r=>{r.stopPropagation(),i(e.id,e.name)},[e.id,e.name,i]),u=d.useCallback(r=>{r.stopPropagation(),l(e.id,e.name)},[e.id,e.name,l]),h=e.id===a;return E(e)?t.jsx("div",{}):t.jsxs(Dt,{$active:h,alignItems:"center","data-testid":"tag-row",justifyContent:"space-between",role:"row",tabIndex:0,onClick:o,onKeyDown:r=>V(r)&&o(),children:[t.jsxs(Ot,{children:[t.jsxs(Rt,{children:[t.jsx(_,{when:e.assigned,children:t.jsx(Le,{isActive:h})}),t.jsx(_,{when:!e.assigned,children:t.jsx($e,{isActive:h})})]}),t.jsx(ze,{autoEscape:!0,highlightStyle:Ge,searchWords:[s],textToHighlight:e.name})]}),t.jsx(Te,{children:t.jsxs(w,{alignItems:"center",justifyContent:"flex-end",children:[t.jsx(_,{when:e.acl.update,children:t.jsx(J,{content:c("tags.edit"),onKeyDown:r=>V(r)&&g(r),children:t.jsx(ee,{$flexCenter:!0,"data-testid":"tag-edit-button",htmlFor:`tag-id-${e.id}`,onClick:g,children:t.jsx(it,{height:24,width:24})})})}),t.jsx(_,{when:e.acl.destroy,children:t.jsx(N,{left:8,children:t.jsx(J,{content:c("tags.delete"),onKeyDown:r=>V(r)&&u(r),children:t.jsx(ee,{$flexCenter:!0,"data-testid":"tag-delete-button",htmlFor:`tag-id-${e.id}`,onClick:u,children:t.jsx(ot,{height:24,width:24})})})})})]})})]},e.id)},Vt=d.memo(Wt),se=42,Lt=({index:e,data:s,style:a})=>{const n=s.entities[e];return t.jsx("div",{style:a,children:t.jsx(Vt,{openDeleteTagModal:s.openDeleteTagModal,openEditTagModal:s.openEditTagModal,searchKeyword:s.searchKeyword,selectedTagId:s.selectedTagId,tag:n,tagClickHandler:s.tagClickHandler})})},$t=e=>{const{t:s}=v();return E(e.entities)?t.jsxs(O.Fragment,{children:[t.jsx(N,{horizontal:14,vertical:8,children:t.jsx(b,{neutral500:!0,lineHeight:"24px",size:"14px",children:s("common.no_results")})}),t.jsx(_,{when:e.shouldSuggestCreateTag,children:t.jsx(te,{onClick:()=>e.openAddTagModal(e.searchKeyword),children:s("tags.add_predefined_tag",{tagName:e.searchKeyword})})})]}):t.jsx(oe,{children:({height:a,width:n})=>t.jsx(be,{estimatedItemSize:se,height:a,innerElementType:({children:i,...l})=>t.jsxs(O.Fragment,{children:[t.jsx("div",{"data-testid":"tags-list",...l,children:i}),t.jsx(_,{when:e.shouldSuggestCreateTag,children:t.jsx(te,{onClick:()=>e.openAddTagModal(e.searchKeyword),children:s("tags.add_predefined_tag",{tagName:e.searchKeyword})})})]}),itemCount:e.entities.length,itemData:e,itemKey:Ne("id"),itemSize:se,overscanCount:3,width:n,children:Lt})})}
2,zt=e=>{const{t:s}=v(),{locationReplace:a}=Ke(),n=d.useCallback(f=>a(`/tags/${f}`),[a]),[i,l]=d.useState(""),c=p(rt),o=d.useMemo(()=>E(i)?c:c.filter(f=>Ue(i,f.name)),[c,i]),g=d.useMemo(()=>E(i)?!1:!o.map(A=>A.name.toLowerCase()).includes(i.toLowerCase()),[o,i]),{openAddTagModal:u,openDeleteTagModal:h,openEditTagModal:r}=Y();return e.isSecondarySidebarOpen?t.jsxs(O.Fragment,{children:[t.jsx(dt,{clearIcon:lt,debounceMs:200,filedHeight:81,handleOnChange:l,placeholder:s("tags.search_tags"),searchIcon:ct,showClearIcon:R(i),styleType:"searchbar"}),t.jsx(N,{horizontal:8,style:{flexGrow:1,overflowY:"scroll"},top:16,children:t.jsx(Ft,{"data-testid":"tags-list-container",children:t.jsx($t,{entities:o,openAddTagModal:u,openDeleteTagModal:h,openEditTagModal:r,searchKeyword:i,selectedTagId:e.selectedTagId,shouldSuggestCreateTag:g,tagClickHandler:n})})})]}):null},ye=T(Qe).withConfig({displayName:"ui__TagIcon"})(["color:",";"],({theme:e})=>e.neutral500),Gt=T(w).withConfig({displayName:"ui__Wrapper"})(["height:70vh;padding:0 25px;"]),Kt=T(w).withConfig({displayName:"ui__Content"})(["height:calc(100vh - 80px);"]),Ut=()=>{const{t:e}=v(),{openAddTagModal:s}=Y();return t.jsx(yt.Body,{children:t.jsxs(Kt,{center:!0,column:!0,children:[t.jsx(ye,{}),t.jsx(b,{neutral600:!0,semibold:!0,lineHeight:"48px",offsets:{mt:24},size:"32px",children:e("tags.empty_tags.headline")}),t.jsx(b,{neutral600:!0,lineHeight:"24px",offsets:{mt:24,mb:24},size:"16px",children:e("tags.empty_tags.cta")}),t.jsx(ce,{iconWithSpinner:!0,"data-testid":"add-tag",icon:xe,styleType:"primaryCTA",type:"button",onClick:()=>s(),children:e("tags.add_tag")}),t.jsx(ge,{targetBlank:!0,href:ue,children:t.jsx(b,{brand:!0,medium:!0,lineHeight:"20px",offsets:{mt:24},size:"14ppx",children:e("tags.empty_tags.cx_article")})})]})})},Qt=()=>{const{t:e}=v();return t.jsxs(Gt,{center:!0,column:!0,children:[t.jsx(ye,{}),t.jsx(b,{neutral600:!0,semibold:!0,lineHeight:"48px",offsets:{mt:24},size:"32px",children:e("tags.empty_nodes.headline")}),t.jsx(b,{neutral600:!0,lineHeight:"24px",offsets:{mt:24,mb:24},size:"16px",children:e("tags.empty_nodes.description")}),t.jsx(ge,{targetBlank:!0,href:ue,children:t.jsx(b,{brand:!0,medium:!0,lineHeight:"20px",size:"14ppx",children:e("common.learn_more")})})]})},qt=e=>{const s=d.useCallback(()=>{if(e.searchMode)return le.clickSearchResult("tags")},[e.searchMode]),a=e.viewType===K.grid,n=a?wt:gt;return qe(e.nodes)?null:t.jsxs(d.Fragment,{children:[t.jsx(N,{left:40,right:a?20:40,children:t.jsx(oe,{disableHeight:!0,children:({width:i})=>t.jsx(n,{isSummaryView:!0,windowScroller:!0,clickAnalytics:s,deleteNodeSuccessCallback:e.handleDeleteSuccess,dropdownPortalAnchor:"#tags-wrapper",entities:e.nodes,height:500,isSelectMode:e.bulkSelectMode,requestPageMeta:e.requestPageMeta,selectedItems:e.selectedItems,showNodePath:e.showNodePath,source:"tags",width:i})})}),t.jsx(ut,{totalCount:e.paginationMeta.totalCount,values:q(),onChange:e.handlePaginationChange})]})},Yt=e=>({currentActivePage:q().currentPage,paginationMeta:I(["nodes","pagination","tags"],e)}),Jt=e=>({fetchNodes:(s,a)=>e(Q(s,a))}),Xt=ae(ne(Yt,Jt),$("foldersCollapsed","setFoldersCollapseState",!1),$("itemsCollapsed","setItemsCollapseState",!1),ie({handleDeleteSuccess:e=>()=>e.fetchNodes(e.selectedTag.id,e.currentActivePage),handlePaginationChange:e=>s=>{window.scrollTo(0,0),Ye({nodesPerPageLimit:s.perPage}),pe(s.currentPage),e.fetchNodes(e.selectedTag.id,s.currentPage)}}),z(e=>({requestPageMeta:{pageName:F.tags,paginationMeta:e.paginationMeta,tagName:I(["selectedTag","name"],e)}})))(qt),Zt=T(w).withConfig({displayName:"ui__EmptyNodesWrapper"})(["height:calc(100vh - 270px);"]);we(()=>import("./reporting-m8e7-i2x_bundle.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]));const es=[x.FETCH_TAG_NODES_REQUEST,x.CLONE_NODE_REQUEST],ts=({nodes:e,selectedTag:s,isEmptyNodes:a,isSearchMode:n,isScanningInProcess:i,isScannerActive:l})=>{const c=p(h=>re(h,{pageName:F.tags})),o=p(h=>h.bulk.bulkSelectMode),g=p(h=>h.bulk.selectedEntities);if(i)return t.jsx(Nt,{});if(a)return n?t.jsx(Zt,{center:!0,children:t.jsx(jt,{})}):t.jsx(Qt,{});const u=n?K.list:c;return t.jsx(N,{top:l?30:0,children:t.jsx(Xt,{bulkSelectMode:o,nodes:e,searchMode:n,selectedItems:g,selectedTag:s,showNodePath:u===K.list,viewType:u})})},ss=e=>{const s=e.id??"0";return parseInt(s,10)},Is=()=>{const e=U(),s=p(de),{keyword:a}=s,n=p(C=>C.primarySidebar.open),[i,l]=d.useState(!0),{showNotifications:c,notificationHeight:o}=ft(),g=ht(),u=c||g>0,h=o+g,r=p(C=>Je(es,C.spinner)),f=p(mt),A=p(he),H=p(Z)?.control.selectedTagId??null,W=p(Z)?.control.initialFetchIsEnded??!1,j=p(pt),m=p(C=>C.searchByScanning),S=Ie(),y=ss(S),P=a||"",k=R(P)&&P.length>=3;if(ve(()=>{e({type:x.FETCH_TAGS_REQUEST,payload:{tagId:y}})}),Ae(()=>{e({type:x.FETCH_TAG_NODES_REQUEST,payload:{tagId:y}})},[y]),!W)return t.jsx(L,{children:t.jsx(X,{height:"100%"})});if(E(A))return t.jsx(L,{children:t.jsx(Ut,{})});const M=H!==null?A[H]:void 0,B=Xe({active:m.active,shouldShowPreview:m.shouldShowPreview,initialFetchEnded:m.initialFetchEnded,nodes:j});return t.jsx(w,{height:"100vh",style:{flex:1},children:t.jsxs(L,{$direction:"row",children:[t.jsx(xt,{isOpen:i,onToggle:C=>l(C),children:t.jsx(zt,{isSecondarySidebarOpen:i,selectedTagId:H,tagIds:f})}),t.jsxs(It,{$isNotificationsShown:u,$notificationHeight:h,id:"tags-wrapper",isPrimarySidebarOpen:n,isSecondarySidebarOpen:i,children:[t.jsx(Bt,{selectedTag:M,shouldHideControls:E(j)&&!k}),t.jsx(ts,{isEmptyNodes:E(j)&&!r,isScannerActive:m.active,isScanningInProcess:B,isSearchMode:k,nodes:j,selectedTag:M}),t.jsx(_,{when:r&&!B,children:t.jsx(X,{fixed:!0,width:"124vw"})})]})]})})};export{Is as default}; 3//# sourceMappingURL=tags-DQ7O741D_bundle.js.map
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.