"use strict";(self.webpackChunk_alilc_lowcode_engine_docs=self.webpackChunk_alilc_lowcode_engine_docs||[]).push([[2138],{5846:(e,t,a)=>{a.d(t,{W:()=>o});var n=a(6540),r=a(4586);const l=["zero","one","two","few","many","other"];function s(e){return l.filter((t=>e.includes(t)))}const c={locale:"en",pluralForms:s(["one","other"]),select:e=>1===e?"one":"other"};function u(){const{i18n:{currentLocale:e}}=(0,r.A)();return(0,n.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:s(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),c}}),[e])}function o(){const e=u();return{selectMessage:(t,a)=>function(e,t,a){const n=e.split("|");if(1===n.length)return n[0];n.length>a.pluralForms.length&&console.error(`For locale=${a.locale}, a maximum of ${a.pluralForms.length} plural forms are expected (${a.pluralForms.join(",")}), but the message contains ${n.length}: ${e}`);const r=a.select(t),l=a.pluralForms.indexOf(r);return n[Math.min(l,n.length-1)]}(a,t,e)}}},1283:(e,t,a)=>{a.r(t),a.d(t,{default:()=>T});var n=a(6540),r=a(4586),l=a(1402),s=a(5260),c=a(5489),u=a(1312),o=a(5597),m=a(9532),h=a(5846),i=a(4070),p=a(6347),d=a(8193);const g=function(){const e=(0,p.W6)(),t=(0,p.zy)(),{siteConfig:{baseUrl:a}}=(0,r.A)();return{searchValue:d.A.canUseDOM&&new URLSearchParams(t.search).get("q")||"",updateSearchPath:a=>{const n=new URLSearchParams(t.search);a?n.set("q",a):n.delete("q"),e.replace({search:n.toString()})},generateSearchPageLink:e=>`${a}search?q=${encodeURIComponent(e)}`}};var f=a(5891),y=a(2384),E=a(6841),I=a(3810),S=a(7674),R=a(2849),w=a(4471),_=a(1088);const P={searchQueryInput:"searchQueryInput_CFBF",searchResultItem:"searchResultItem_U687",searchResultItemPath:"searchResultItemPath_uIbk",searchResultItemSummary:"searchResultItemSummary_oZHr"};function b(){const{siteConfig:{baseUrl:e}}=(0,r.A)(),t=(0,i.vT)();let a=e;try{const{preferredVersion:e}=(0,o.g1)(t?.pluginId??_.UB);e&&!e.isLast&&(a=e.path+"/")}catch(v){if(_.I$&&!(v instanceof m.dV))throw v}const{selectMessage:l}=(0,h.W)(),{searchValue:c,updateSearchPath:p}=g(),[d,E]=(0,n.useState)(c),[I,S]=(0,n.useState)(),[w,b]=(0,n.useState)(),T=(0,n.useMemo)((()=>d?(0,u.T)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:d}):(0,u.T)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"})),[d]);(0,n.useEffect)((()=>{p(d),I&&(d?I(d,(e=>{b(e)})):b(void 0))}),[d,I]);const C=(0,n.useCallback)((e=>{E(e.target.value)}),[]);return(0,n.useEffect)((()=>{c&&c!==d&&E(c)}),[c]),(0,n.useEffect)((()=>{!async function(){const{wrappedIndexes:e,zhDictionary:t}=await(0,f.Z)(a);S((()=>(0,y.m)(e,t,100)))}()}),[a]),n.createElement(n.Fragment,null,n.createElement(s.A,null,n.createElement("meta",{property:"robots",content:"noindex, follow"}),n.createElement("title",null,T)),n.createElement("div",{className:"container margin-vert--lg"},n.createElement("h1",null,T),n.createElement("input",{type:"search",name:"q",className:P.searchQueryInput,"aria-label":"Search",onChange:C,value:d,autoComplete:"off",autoFocus:!0}),!I&&d&&n.createElement("div",null,n.createElement(R.A,null)),w&&(w.length>0?n.createElement("p",null,l(w.length,(0,u.T)({id:"theme.SearchPage.documentsFound.plurals",message:"1 document found|{count} documents found",description:'Pluralized label for "{count} documents found". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)'},{count:w.length}))):n.createElement("p",null,(0,u.T)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"}))),n.createElement("section",null,w&&w.map((e=>n.createElement(F,{key:e.document.i,searchResult:e}))))))}function F(e){let{searchResult:{document:t,type:a,page:r,tokens:l,metadata:s}}=e;const u=0===a,o=2===a,m=(u?t.b:r.b).slice(),h=o?t.s:t.t;return u||m.push(r.t),n.createElement("article",{className:P.searchResultItem},n.createElement("h2",null,n.createElement(c.A,{to:t.u+(t.h||""),dangerouslySetInnerHTML:{__html:o?(0,E.Z)(h,l):(0,I.C)(h,(0,S.g)(s,"t"),l,100)}})),m.length>0&&n.createElement("p",{className:P.searchResultItemPath},(0,w.$)(m)),o&&n.createElement("p",{className:P.searchResultItemSummary,dangerouslySetInnerHTML:{__html:(0,I.C)(t.t,(0,S.g)(s,"t"),l,100)}}))}const T=function(){return n.createElement(l.A,null,n.createElement(b,null))}}}]);