"use strict";(self.webpackChunk_alilc_lowcode_engine_docs=self.webpackChunk_alilc_lowcode_engine_docs||[]).push([[7920],{4195:(e,t,a)=>{a.d(t,{c:()=>u});var n=a(9301),r=a(1819);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 o(){const{i18n:{currentLocale:e}}=(0,r.Z)();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 u(){const e=o();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)}}},9929:(e,t,a)=>{a.r(t),a.d(t,{default:()=>v});var n=a(9301),r=a(1819),l=a(6994),s=a(339),c=a(4187),o=a(9593),u=a(107),m=a(6501),h=a(4195),i=a(1270),p=a(2663),d=a(4117);const g=function(){const e=(0,p.k6)(),t=(0,p.TH)(),{siteConfig:{baseUrl:a}}=(0,r.Z)();return{searchValue:d.Z.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(6247),y=a(7786),E=a(1066),I=a(4498),S=a(162),w=a(8737),R=a(274),_=a(3428);const P={searchQueryInput:"searchQueryInput_KsIA",searchResultItem:"searchResultItem_CV8n",searchResultItemPath:"searchResultItemPath_mCTU",searchResultItemSummary:"searchResultItemSummary_eOp3"};function b(){const{siteConfig:{baseUrl:e}}=(0,r.Z)(),t=(0,i.gA)();let a=e;try{const{preferredVersion:e}=(0,u.J)(t?.pluginId??_.gQ);e&&!e.isLast&&(a=e.path+"/")}catch(k){if(_.l9&&!(k instanceof m.i6))throw k}const{selectMessage:l}=(0,h.c)(),{searchValue:c,updateSearchPath:p}=g(),[d,E]=(0,n.useState)(c),[I,S]=(0,n.useState)(),[R,b]=(0,n.useState)(),v=(0,n.useMemo)((()=>d?(0,o.I)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:d}):(0,o.I)({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 F=(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.w)(a);S((()=>(0,y.v)(e,t,100)))}()}),[a]),n.createElement(n.Fragment,null,n.createElement(s.Z,null,n.createElement("meta",{property:"robots",content:"noindex, follow"}),n.createElement("title",null,v)),n.createElement("div",{className:"container margin-vert--lg"},n.createElement("h1",null,v),n.createElement("input",{type:"search",name:"q",className:P.searchQueryInput,"aria-label":"Search",onChange:F,value:d,autoComplete:"off",autoFocus:!0}),!I&&d&&n.createElement("div",null,n.createElement(w.Z,null)),R&&(R.length>0?n.createElement("p",null,l(R.length,(0,o.I)({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:R.length}))):n.createElement("p",null,(0,o.I)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"}))),n.createElement("section",null,R&&R.map((e=>n.createElement(C,{key:e.document.i,searchResult:e}))))))}function C(e){let{searchResult:{document:t,type:a,page:r,tokens:l,metadata:s}}=e;const o=0===a,u=2===a,m=(o?t.b:r.b).slice(),h=u?t.s:t.t;return o||m.push(r.t),n.createElement("article",{className:P.searchResultItem},n.createElement("h2",null,n.createElement(c.Z,{to:t.u+(t.h||""),dangerouslySetInnerHTML:{__html:u?(0,E.C)(h,l):(0,I.o)(h,(0,S.m)(s,"t"),l,100)}})),m.length>0&&n.createElement("p",{className:P.searchResultItemPath},(0,R.e)(m)),u&&n.createElement("p",{className:P.searchResultItemSummary,dangerouslySetInnerHTML:{__html:(0,I.o)(t.t,(0,S.m)(s,"t"),l,100)}}))}const v=function(){return n.createElement(l.Z,null,n.createElement(b,null))}}}]);