PageSourceSearch

https://rabbitcare.com/_next/static/chunks/pages/web-view/search-412396fa845230e5.js

js rabbitcare.com collected 2026-09-26 00:29:00 UTC 21,630 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9525],{89163:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/web-view/search",function(){return r(487)}])},487:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return ey},default:function(){return eB}});var u=r(44037),s=r(50770),n=r(83333),i=r(49387),l=r(9389);function c(e){return Array.isArray?Array.isArray(e):"[object Array]"===p(e)}let o=1/0;function a(e){return"string"==typeof e}function h(e){return"number"==typeof e}function d(e){return"object"==typeof e}function f(e){return null!=e}function g(e){return!e.trim().length}function p(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let A=e=>`Invalid value for key ${e}`,m=e=>`Pattern length exceeds max of ${e}.`,x=e=>`Missing ${e} property in key`,C=e=>`Property 'weight' in key '${e}' must be a positive integer`,E=Object.prototype.hasOwnProperty;class y{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=B(e);this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function B(e){let t=null,r=null,u=null,s=1,n=null;if(a(e)||c(e))u=e,t=F(e),r=D(e);else{if(!E.call(e,"name"))throw Error(x("name"));let i=e.name;if(u=i,E.call(e,"weight")&&(s=e.weight)<=0)throw Error(C(i));t=F(i),r=D(i),n=e.getFn}return{path:t,id:r,weight:s,src:u,getFn:n}}function F(e){return c(e)?e:e.split(".")}function D(e){return c(e)?e.join("."):e}var _={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let r=[],u=!1,s=(e,t,n)=>{if(f(e)){if(t[n]){var i,l;let g=e[t[n]];if(f(g)){if(n===t.length-1&&(a(g)||h(g)||!0===(i=g)||!1===i||d(l=i)&&null!==l&&"[object Boolean]"==p(i)))r.push(null==g?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-o?"-0":t}(g));else if(c(g)){u=!0;for(let e=0,r=g.length;e<r;e+=1)s(g[e],t,n+1)}else t.length&&s(g,t,n+1)}}else r.push(e)}};return s(e,a(t)?t.split("."):t,0),u?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let b=/[^ ]+/g;class M{constructor({getFn:e=_.getFn,fieldNormWeight:t=_.fieldNormWeight}={}){this.norm=function(e=1,t=3){let r=new Map,u=Math.pow(10,t);return{get(t){let s=t.match(b).length;if(r.has(s))return r.get(s);let n=parseFloat(Math.round(1/Math.pow(s,.5*e)*u)/u);return r.set(s,n),n},clear(){r.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,a(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();a(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t<r;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!f(e)||g(e))return;let r={v:e,i:t,n:this.norm.get(e)};this.records.push(r)}_addObject(e,t){let r={i:t,$:{}};this.keys.forEach((t,u)=>{let s=t.getFn?t.getFn(e):this.getFn(e,t.path);if(f(s)){if(c(s)){let e=[],t=[{nestedArrIndex:-1,value:s}];for(;t.length;){let{nestedArrIndex:r,value:u}=t.pop();if(f(u)){if(a(u)&&!g(u)){let t={v:u,i:r,n:this.norm.get(u)};e.push(t)}else c(u)&&u.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}}r.$[u]=e}else if(a(s)&&!g(s)){let e={v:s,n:this.norm.get(s)};r.$[u]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function k(e,t,{getFn:r=_.getFn,fieldNormWeight:u=_.fieldNormWeight}={}){let s=new M({getFn:r,fieldNormWeight:u});return s.setKeys(e.map(B)),s.setSources(t),s.create(),s}function v(e,{errors:t=0,currentLocation:r=0,expectedLocation:u=0,distance:s=_.distance,ignoreLocation:n=_.ignoreLocation}={}){let i=t/e.length;if(n)return i;let l=Math.abs(u-r);return s?i+l/s:l?1:i}let w=String.prototype.normalize?e=>
1e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class N{constructor(e,{location:t=_.location,threshold:r=_.threshold,distance:u=_.distance,includeMatches:s=_.includeMatches,findAllMatches:n=_.findAllMatches,minMatchCharLength:i=_.minMatchCharLength,isCaseSensitive:l=_.isCaseSensitive,ignoreDiacritics:c=_.ignoreDiacritics,ignoreLocation:o=_.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:u,includeMatches:s,findAllMatches:n,minMatchCharLength:i,isCaseSensitive:l,ignoreDiacritics:c,ignoreLocation:o},e=l?e:e.toLowerCase(),e=c?w(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let a=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,u=e.length;r<u;r+=1){let s=e.charAt(r);t[s]=(t[s]||0)|1<<u-r-1}return t}(e),startIndex:t})},h=this.pattern.length;if(h>32){let e=0,t=h%32,r=h-t;for(;e<r;)a(this.pattern.substr(e,32),e),e+=32;if(t){let e=h-32;a(this.pattern.substr(e),e)}}else a(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:r,includeMatches:u}=this.options;if(e=t?e:e.toLowerCase(),e=r?w(e):e,this.pattern===e){let t={isMatch:!0,score:0};return u&&(t.indices=[[0,e.length-1]]),t}let{location:s,distance:n,threshold:i,findAllMatches:l,minMatchCharLength:c,ignoreLocation:o}=this.options,a=[],h=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:r,startIndex:f})=>{let{isMatch:g,score:p,indices:A}=function(e,t,r,{location:u=_.location,distance:s=_.distance,threshold:n=_.threshold,findAllMatches:i=_.findAllMatches,minMatchCharLength:l=_.minMatchCharLength,includeMatches:c=_.includeMatches,ignoreLocation:o=_.ignoreLocation}={}){let a;if(t.length>32)throw Error(m(32));let h=t.length,d=e.length,f=Math.max(0,Math.min(u,d)),g=n,p=f,A=l>1||c,x=A?Array(d):[];for(;(a=e.indexOf(t,p))>-1;)if(g=Math.min(v(t,{currentLocation:a,expectedLocation:f,distance:s,ignoreLocation:o}),g),p=a+h,A){let e=0;for(;e<h;)x[a+e]=1,e+=1}p=-1;let C=[],E=1,y=h+d,B=1<<h-1;for(let u=0;u<h;u+=1){let n=0,l=y;for(;n<l;)v(t,{errors:u,currentLocation:f+l,expectedLocation:f,distance:s,ignoreLocation:o})<=g?n=l:y=l,l=Math.floor((y-n)/2+n);y=l;let c=Math.max(1,f-l+1),a=i?d:Math.min(f+l,d)+h,m=Array(a+2);m[a+1]=(1<<u)-1;for(let n=a;n>=c;n-=1){let i=n-1,l=r[e.charAt(i)];if(A&&(x[i]=+!!l),m[n]=(m[n+1]<<1|1)&l,u&&(m[n]|=(C[n+1]|C[n])<<1|1|C[n+1]),m[n]&B&&(E=v(t,{errors:u,currentLocation:i,expectedLocation:f,distance:s,ignoreLocation:o}))<=g){if(g=E,(p=i)<=f)break;c=Math.max(1,2*f-p)}}if(v(t,{errors:u+1,currentLocation:f,expectedLocation:f,distance:s,ignoreLocation:o})>g)break;C=m}let F={isMatch:p>=0,score:Math.max(.001,E)};if(A){let e=function(e=[],t=_.minMatchCharLength){let r=[],u=-1,s=-1,n=0;for(let i=e.length;n<i;n+=1){let i=e[n];i&&-1===u?u=n:i||-1===u||((s=n-1)-u+1>=t&&r.push([u,s]),u=-1)}return e[n-1]&&n-u>
1=t&&r.push([u,n-1]),r}(x,l);e.length?c&&(F.indices=e):F.isMatch=!1}return F}(e,t,r,{location:s+f,distance:n,threshold:i,findAllMatches:l,minMatchCharLength:c,includeMatches:u,ignoreLocation:o});g&&(d=!0),h+=p,g&&A&&(a=[...a,...A])});let f={isMatch:d,score:d?h/this.chunks.length:1};return d&&u&&(f.indices=a),f}}class S{constructor(e){this.pattern=e}static isMultiMatch(e){return j(e,this.multiRegex)}static isSingleMatch(e){return j(e,this.singleRegex)}search(){}}function j(e,t){let r=e.match(t);return r?r[1]:null}class $ extends S{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}class I extends S{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class R extends S{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}class L extends S{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class O extends S{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class P extends S{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class T extends S{constructor(e,{location:t=_.location,threshold:r=_.threshold,distance:u=_.distance,includeMatches:s=_.includeMatches,findAllMatches:n=_.findAllMatches,minMatchCharLength:i=_.minMatchCharLength,isCaseSensitive:l=_.isCaseSensitive,ignoreDiacritics:c=_.ignoreDiacritics,ignoreLocation:o=_.ignoreLocation}={}){super(e),this._bitapSearch=new N(e,{location:t,threshold:r,distance:u,includeMatches:s,findAllMatches:n,minMatchCharLength:i,isCaseSensitive:l,ignoreDiacritics:c,ignoreLocation:o})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class W extends S{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,u=[],s=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+s,u.push([t,r-1]);let n=!!u.length;return{isMatch:n,score:n?0:1,indices:u}}}let z=[$,W,R,L,P,O,I,T],K=z.length,q=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Q=new Set([T.type,W.type]);class H{constructor(e,{isCaseSensitive:t=_.isCaseSensitive,ignoreDiacritics:r=_.ignoreDiacritics,includeMatches:u=_.includeMatches,minMatchCharLength:s=_.minMatchCharLength,ignoreLocation:n=_.ignoreLocation,findAllMatches:i=_.findAllMatches,location:l=_.location,threshold:c=_.threshold,distance:o=_.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:u,minMatchCharLength:s,findAllMatches:i,ignoreLocation:n,location:l,threshold:c,distance:o},e=t?e:e.toLowerCase(),e=r?w(e):e,this.pattern=e,this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split(q).filter(e=>e&&!!e.trim()),u=[];for(let e=0,s=r.length;e<s;e+=1){let s=r[e],n=!1,i=-1;for(;!n&&++i<K;){let e=z[i],r=e.isMultiMatch(s);r&&(u.push(new e(r,t)),n=!0)}if(!n)for(i=-1;++i<K;){let e=z[i],r=e.isSingleMatch(s);if(r){u.push(new e(r,t));break}}}return u})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:u,ignoreDiacritics:s}=this.options;e=u?e:e.toLowerCase(),e=s?w(e):e;let n=0,i=[],l=0;for(let u=0,s=t.length;u<s;u+=1){let s=t[u];i.length=0,n=0;for(let t=0,u=s.length;t<u;t+=1){let u=s[t],{isMatch:c,indices:o,score:a}=u.search(e);if(c){if(n+=1,l+=a,r){let e=u.constructor.type;Q.has(e)?i=[...i,...o]:i.push(o)}}else{l=0,n=0,i.length=0;break}}
1if(n){let e={isMatch:!0,score:l/n};return r&&(e.indices=i),e}}return{isMatch:!1,score:1}}}let J=[];function X(e,t){for(let r=0,u=J.length;r<u;r+=1){let u=J[r];if(u.condition(e,t))return new u(e,t)}return new N(e,t)}let V={AND:"$and",OR:"$or"},G={PATH:"$path",PATTERN:"$val"},U=e=>!!(e[V.AND]||e[V.OR]),Z=e=>!!e[G.PATH],Y=e=>!c(e)&&d(e)&&!U(e),ee=e=>({[V.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function et(e,t,{auto:r=!0}={}){let u=e=>{let s=Object.keys(e),n=Z(e);if(!n&&s.length>1&&!U(e))return u(ee(e));if(Y(e)){let u=n?e[G.PATH]:s[0],i=n?e[G.PATTERN]:e[u];if(!a(i))throw Error(A(u));let l={keyId:D(u),pattern:i};return r&&(l.searcher=X(i,t)),l}let i={children:[],operator:s[0]};return s.forEach(t=>{let r=e[t];c(r)&&r.forEach(e=>{i.children.push(u(e))})}),i};return U(e)||(e=ee(e)),u(e)}function er(e,t){let r=e.matches;t.matches=[],f(r)&&r.forEach(e=>{if(!f(e.indices)||!e.indices.length)return;let{indices:r,value:u}=e,s={indices:r,value:u};e.key&&(s.key=e.key.src),e.idx>-1&&(s.refIndex=e.idx),t.matches.push(s)})}function eu(e,t){t.score=e.score}class es{constructor(e,t={},r){this.options={..._,...t},this.options.useExtendedSearch,this._keyStore=new y(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof M))throw Error("Incorrect 'index' type");this._myIndex=t||k(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){f(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,u=this._docs.length;r<u;r+=1){let s=this._docs[r];e(s,r)&&(this.removeAt(r),r-=1,u-=1,t.push(s))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:r,includeScore:u,shouldSort:s,sortFn:n,ignoreFieldNorm:i}=this.options,l=a(e)?a(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return!function(e,{ignoreFieldNorm:t=_.ignoreFieldNorm}){e.forEach(e=>{let r=1;e.matches.forEach(({key:e,norm:u,score:s})=>{let n=e?e.weight:null;r*=Math.pow(0===s&&n?Number.EPSILON:s,(n||1)*(t?1:u))}),e.score=r})}(l,{ignoreFieldNorm:i}),s&&l.sort(n),h(t)&&t>-1&&(l=l.slice(0,t)),function(e,t,{includeMatches:r=_.includeMatches,includeScore:u=_.includeScore}={}){let s=[];return r&&s.push(er),u&&s.push(eu),e.map(e=>{let{idx:r}=e,u={item:t[r],refIndex:r};return s.length&&s.forEach(t=>{t(e,u)}),u})}(l,this._docs,{includeMatches:r,includeScore:u})}_searchStringList(e){let t=X(e,this.options),{records:r}=this._myIndex,u=[];return r.forEach(({v:e,i:r,n:s})=>{if(!f(e))return;let{isMatch:n,score:i,indices:l}=t.searchIn(e);n&&u.push({item:e,idx:r,matches:[{score:i,value:e,norm:s,indices:l}]})}),u}_searchLogical(e){let t=et(e,this.options),r=(e,t,u)=>{if(!e.children){let{keyId:r,searcher:s}=e,n=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:s});return n&&n.length?[{idx:u,item:t,matches:n}]:[]}let s=[];for(let n=0,i=e.children.length;n<i;n+=1){let i=r(e.children[n],t,u);if(i.length)s.push(...i);else if(e.operator===V.AND)return[]}return s},u=this._myIndex.records,s={},n=[];return u.forEach(({$:e,i:u})=>{if(f(e)){let i=r(t,e,u);i.length&&(s[u]||(s[u]={idx:u,item:e,matches:[]}
1,n.push(s[u])),i.forEach(({matches:e})=>{s[u].matches.push(...e)}))}}),n}_searchObjectList(e){let t=X(e,this.options),{keys:r,records:u}=this._myIndex,s=[];return u.forEach(({$:e,i:u})=>{if(!f(e))return;let n=[];r.forEach((r,u)=>{n.push(...this._findMatches({key:r,value:e[u],searcher:t}))}),n.length&&s.push({idx:u,item:e,matches:n})}),s}_findMatches({key:e,value:t,searcher:r}){if(!f(t))return[];let u=[];if(c(t))t.forEach(({v:t,i:s,n:n})=>{if(!f(t))return;let{isMatch:i,score:l,indices:c}=r.searchIn(t);i&&u.push({score:l,key:e,value:t,idx:s,norm:n,indices:c})});else{let{v:s,n:n}=t,{isMatch:i,score:l,indices:c}=r.searchIn(s);i&&u.push({score:l,key:e,value:s,norm:n,indices:c})}return u}}es.version="7.1.0",es.createIndex=k,es.parseIndex=function(e,{getFn:t=_.getFn,fieldNormWeight:r=_.fieldNormWeight}={}){let{keys:u,records:s}=e,n=new M({getFn:t,fieldNormWeight:r});return n.setKeys(u),n.setIndexRecords(s),n},es.config=_,es.parseQuery=et,function(...e){J.push(...e)}(H);var en=r(64597),ei=r(73250),el=r.n(ei),ec=r(48054),eo=r(11324),ea=r(73568),eh=r(60819),ed=r(46678),ef=r(67033),eg=r(77119),ep=r(63774),eA=r(38412),em=r(59232),ex=r(37179);let eC=[{key:"motor",labelKey:"info_hub.support.cat_motor"},{key:"health",labelKey:"info_hub.support.cat_health"},{key:"travel",labelKey:"info_hub.support.cat_travel"},{key:"general",labelKey:"info_hub.support.cat_general"}];function eE(e,t){return e.map(e=>({...e,category:t}))}var ey=!0,eB=function(e){let{locale:t}=e,r="th"===t,{t:c}=(0,en.Z)("common"),{q:o}=(0,ec.useRouter)().query,a=(0,ea.useMemo)(()=>r?[...eE(ef.OI,"general"),...eE((0,ex.flattenQuestions)(ep),"motor"),...eE((0,ex.flattenQuestions)(ed),"health"),...eE((0,ex.flattenQuestions)(em),"travel")]:[...eE(ef.RI,"general"),...eE((0,ex.flattenQuestions)(eg),"motor"),...eE((0,ex.flattenQuestions)(eh),"health"),...eE((0,ex.flattenQuestions)(eA),"travel")],[r]),[h,d]=(0,ea.useState)(o||""),f=function(e,t){let[r,u]=(0,ea.useState)(e);return(0,ea.useEffect)(()=>{let t=setTimeout(()=>{u(e)},300);return()=>{clearTimeout(t)}},[e,300]),r}(h,0),g=(0,ea.useMemo)(()=>new es(a,{includeScore:!0,includeMatches:!0,isCaseSensitive:!1,useExtendedSearch:!0,minMatchCharLength:2,shouldSort:!0,findAllMatches:!0,keys:["question","answer"]}),[a]),p=f.trim().split(" ").filter(e=>e.length>1).map(e=>"'".concat(e)).join(" "),A=p.length>0,m=A?g.search(p):[],x=eC.map(e=>{let{key:t,labelKey:r}=e;return{key:t,label:c(r),results:m.filter(e=>e.item.category===t)}}).filter(e=>e.results.length>0);return(0,u.jsxs)("div",{className:"min-h-screen bg-primary-light",style:{fontFamily:eo.fontFamilyMap[t]},children:[(0,u.jsx)(l.g,{}),(0,u.jsxs)("div",{className:"p-4 pt-14",children:[(0,u.jsxs)("div",{className:"mb-3.5 flex items-center gap-2",children:[(0,u.jsx)(el(),{href:"/web-view/faq","aria-label":"Back",className:"-ml-1.5 grid size-[30px] flex-none place-items-center text-[#1A2330]",children:(0,u.jsx)(n.XC,{className:"size-[22px] rotate-180"})}),(0,u.jsx)("strong",{className:"text-lg font-bold text-[#1A2330]",children:c("info_hub.support.search_results")})]}),(0,u.jsxs)("div",{className:"mb-4 flex h-[40px] items-center gap-2.5 rounded-2xl border border-borderColor bg-white px-4 shadow-sm",children:[(0,u.jsx)(n.W1,{className:"size-5 flex-none text-[#9AA6B8]"}),(0,u.jsx)("input",{type:"search",enterKeyHint:"search",value:h,placeholder:c("info_hub.support.search_placeholder"),onChange:e=>d(e.target.value),className:"min-w-0 flex-1 border-0 bg-transparent text-sm text-[#3E4B5F] outline-none placeholder:text-[#9AA6B8]"})]}),(0,u.jsx)("p",{className:"mx-0.5 mb-3.5 text-xs text-[#7B8494]",children:A?c("info_hub.support.results_count",{count:m.length}):c("info_hub.support.search_prompt")}),A&&0===m.length?(0,u.jsx)("div",{className:"rounded-2xl border border-[#EBF0F7] bg-white p-4 text-center text-xs leading-relaxed text-[#7B8494] shadow-sm",children:c("info_hub.support.no_results")}):(0,u.jsx)("div",{className:"flex flex-col gap-7",children:x.map(e=>(0,u.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,u.jsx)("h2",{className:"text-sm font-bold tracking-wide text-[#4A5468]",children:e.label}),e.results.map(e=>(0,u.jsx)(i.P,{question:e.item.question,children:(0,u.jsx)(ex.FAQMarkdownRenderer,{md:e.item.answer})},e.item.question))]},e.key))}),(0,u.jsx)("div",{className:"mt-4",children:(0,u.jsx)(s.$,{href:"/web-view/submit-ticket"})})]})]})}}},function(e){e.O(0,[6521,7442,7109,3212,7179,2888,9774,179],function(){return e(e.s=89163)}),_N_E=e.O()}]);
2//# sourceMappingURL=search-412396fa845230e5.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.