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