@searchcraft/vue-sdk 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +11 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/index.umd.js
CHANGED
|
@@ -77,5 +77,5 @@ Please report this to https://github.com/markedjs/marked.`,f){const g="<p>An err
|
|
|
77
77
|
*
|
|
78
78
|
* This source code is licensed under the MIT license found in the
|
|
79
79
|
* LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/var Jr=Symbol.for("react.transitional.element"),Ri=Symbol.for("react.portal"),Ei=Symbol.for("react.fragment"),Ti=Symbol.for("react.strict_mode"),Pi=Symbol.for("react.profiler"),$i=Symbol.for("react.consumer"),_i=Symbol.for("react.context"),Ii=Symbol.for("react.forward_ref"),Ai=Symbol.for("react.suspense"),Mi=Symbol.for("react.memo"),xa=Symbol.for("react.lazy"),wa=Symbol.iterator;function Oi(r){return r===null||typeof r!="object"?null:(r=wa&&r[wa]||r["@@iterator"],typeof r=="function"?r:null)}var Sa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ra=Object.assign,Ea={};function bt(r,e,t){this.props=r,this.context=e,this.refs=Ea,this.updater=t||Sa}bt.prototype.isReactComponent={},bt.prototype.setState=function(r,e){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,e,"setState")},bt.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function Ta(){}Ta.prototype=bt.prototype;function es(r,e,t){this.props=r,this.context=e,this.refs=Ea,this.updater=t||Sa}var ts=es.prototype=new Ta;ts.constructor=es,Ra(ts,bt.prototype),ts.isPureReactComponent=!0;var Pa=Array.isArray,ee={H:null,A:null,T:null,S:null},$a=Object.prototype.hasOwnProperty;function rs(r,e,t,s,a,o){return t=o.ref,{$$typeof:Jr,type:r,key:e,ref:t!==void 0?t:null,props:o}}function Li(r,e){return rs(r.type,e,void 0,void 0,void 0,r.props)}function ss(r){return typeof r=="object"&&r!==null&&r.$$typeof===Jr}function Fi(r){var e={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(t){return e[t]})}var _a=/\/+/g;function as(r,e){return typeof r=="object"&&r!==null&&r.key!=null?Fi(""+r.key):e.toString(36)}function Ia(){}function Di(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(Ia,Ia):(r.status="pending",r.then(function(e){r.status==="pending"&&(r.status="fulfilled",r.value=e)},function(e){r.status==="pending"&&(r.status="rejected",r.reason=e)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function vt(r,e,t,s,a){var o=typeof r;(o==="undefined"||o==="boolean")&&(r=null);var n=!1;if(r===null)n=!0;else switch(o){case"bigint":case"string":case"number":n=!0;break;case"object":switch(r.$$typeof){case Jr:case Ri:n=!0;break;case xa:return n=r._init,vt(n(r._payload),e,t,s,a)}}if(n)return a=a(r),n=s===""?"."+as(r,0):s,Pa(a)?(t="",n!=null&&(t=n.replace(_a,"$&/")+"/"),vt(a,e,t,"",function(d){return d})):a!=null&&(ss(a)&&(a=Li(a,t+(a.key==null||r&&r.key===a.key?"":(""+a.key).replace(_a,"$&/")+"/")+n)),e.push(a)),1;n=0;var l=s===""?".":s+":";if(Pa(r))for(var u=0;u<r.length;u++)s=r[u],o=l+as(s,u),n+=vt(s,e,t,o,a);else if(u=Oi(r),typeof u=="function")for(r=u.call(r),u=0;!(s=r.next()).done;)s=s.value,o=l+as(s,u++),n+=vt(s,e,t,o,a);else if(o==="object"){if(typeof r.then=="function")return vt(Di(r),e,t,s,a);throw e=String(r),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return n}function ir(r,e,t){if(r==null)return r;var s=[],a=0;return vt(r,s,"","",function(o){return e.call(t,o,a++)}),s}function Ni(r){if(r._status===-1){var e=r._result;e=e(),e.then(function(t){(r._status===0||r._status===-1)&&(r._status=1,r._result=t)},function(t){(r._status===0||r._status===-1)&&(r._status=2,r._result=t)}),r._status===-1&&(r._status=0,r._result=e)}if(r._status===1)return r._result.default;throw r._result}var Aa=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function zi(){}z.Children={map:ir,forEach:function(r,e,t){ir(r,function(){e.apply(this,arguments)},t)},count:function(r){var e=0;return ir(r,function(){e++}),e},toArray:function(r){return ir(r,function(e){return e})||[]},only:function(r){if(!ss(r))throw Error("React.Children.only expected to receive a single React element child.");return r}},z.Component=bt,z.Fragment=Ei,z.Profiler=Pi,z.PureComponent=es,z.StrictMode=Ti,z.Suspense=Ai,z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee,z.act=function(){throw Error("act(...) is not supported in production builds of React.")},z.cache=function(r){return function(){return r.apply(null,arguments)}},z.cloneElement=function(r,e,t){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var s=Ra({},r.props),a=r.key,o=void 0;if(e!=null)for(n in e.ref!==void 0&&(o=void 0),e.key!==void 0&&(a=""+e.key),e)!$a.call(e,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&e.ref===void 0||(s[n]=e[n]);var n=arguments.length-2;if(n===1)s.children=t;else if(1<n){for(var l=Array(n),u=0;u<n;u++)l[u]=arguments[u+2];s.children=l}return rs(r.type,a,void 0,void 0,o,s)},z.createContext=function(r){return r={$$typeof:_i,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:$i,_context:r},r},z.createElement=function(r,e,t){var s,a={},o=null;if(e!=null)for(s in e.key!==void 0&&(o=""+e.key),e)$a.call(e,s)&&s!=="key"&&s!=="__self"&&s!=="__source"&&(a[s]=e[s]);var n=arguments.length-2;if(n===1)a.children=t;else if(1<n){for(var l=Array(n),u=0;u<n;u++)l[u]=arguments[u+2];a.children=l}if(r&&r.defaultProps)for(s in n=r.defaultProps,n)a[s]===void 0&&(a[s]=n[s]);return rs(r,o,void 0,void 0,null,a)},z.createRef=function(){return{current:null}},z.forwardRef=function(r){return{$$typeof:Ii,render:r}},z.isValidElement=ss,z.lazy=function(r){return{$$typeof:xa,_payload:{_status:-1,_result:r},_init:Ni}},z.memo=function(r,e){return{$$typeof:Mi,type:r,compare:e===void 0?null:e}},z.startTransition=function(r){var e=ee.T,t={};ee.T=t;try{var s=r(),a=ee.S;a!==null&&a(t,s),typeof s=="object"&&s!==null&&typeof s.then=="function"&&s.then(zi,Aa)}catch(o){Aa(o)}finally{ee.T=e}},z.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()},z.use=function(r){return ee.H.use(r)},z.useActionState=function(r,e,t){return ee.H.useActionState(r,e,t)},z.useCallback=function(r,e){return ee.H.useCallback(r,e)},z.useContext=function(r){return ee.H.useContext(r)},z.useDebugValue=function(){},z.useDeferredValue=function(r,e){return ee.H.useDeferredValue(r,e)},z.useEffect=function(r,e){return ee.H.useEffect(r,e)},z.useId=function(){return ee.H.useId()},z.useImperativeHandle=function(r,e,t){return ee.H.useImperativeHandle(r,e,t)},z.useInsertionEffect=function(r,e){return ee.H.useInsertionEffect(r,e)},z.useLayoutEffect=function(r,e){return ee.H.useLayoutEffect(r,e)},z.useMemo=function(r,e){return ee.H.useMemo(r,e)},z.useOptimistic=function(r,e){return ee.H.useOptimistic(r,e)},z.useReducer=function(r,e,t){return ee.H.useReducer(r,e,t)},z.useRef=function(r){return ee.H.useRef(r)},z.useState=function(r){return ee.H.useState(r)},z.useSyncExternalStore=function(r,e,t){return ee.H.useSyncExternalStore(r,e,t)},z.useTransition=function(){return ee.H.useTransition()},z.version="19.0.0",Ca.exports=z;var Ma=Ca.exports,Hi=Kr;const Ui=r=>r;function Oa(r,e=Ui){const t=Ma.useSyncExternalStore(r.subscribe,()=>e(r.getState()),()=>e(r.getInitialState()));return Ma.useDebugValue(t),t}const La=r=>{const e=Hi.createStore(r),t=s=>Oa(e,s);return Object.assign(t,e),t},Bi=r=>r?La(r):La;Xr.create=Bi,Xr.useStore=Oa,function(r){var e=Kr,t=Xr;Object.keys(e).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:function(){return e[s]}})}),Object.keys(t).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:function(){return t[s]}})})}(ya);const ji=1e3;class Vi{constructor(e,t){c(this,"set");c(this,"get");c(this,"abortController");c(this,"timeout");this.get=e,this.set=t}streamSummaryData(){var s;const e=async()=>{var u,d,m,C,E,$;const a=this.get(),o=(u=a.core)==null?void 0:u.config;if(console.log(o),!o||!o.cortexURL)throw new Error("cortexURL was not specified in the config.");const n=(d=a.core)==null?void 0:d.config.indexName;if(!a.hasSummaryBox||!n)return;(m=this.abortController)==null||m.abort("A newer request has replaced this one."),this.abortController=new AbortController,this.set({isSummaryLoading:!0,summary:""});const l=`${o.cortexURL.replace(/\/$/,"")}/api/search/summary`;try{const I=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json",Authorization:((C=a.core)==null?void 0:C.config.readKey)||""},body:JSON.stringify({searchQuery:a.searchClientRequest,summaryInstructionsPrompt:(E=a.core)==null?void 0:E.config.summaryInstructionsPrompt,indexName:n,endpointUrl:($=a.core)==null?void 0:$.config.endpointURL}),signal:this.abortController.signal});if(!I)throw new Error("Invalid fetch response");if(!I.body)throw new Error("Invalid fetch response");if(!I.ok)throw new Error(`HTTP ${I.status}`);const H=I.body.getReader(),D=new TextDecoder;let P=!1;do{const{done:A,value:B}=await H.read();P=A;const Z=D.decode(B,{stream:!0});this.set(oe=>({isSummaryLoading:!1,summary:`${oe.summary}${Z}`}))}while(!P)}catch(I){I instanceof Error&&console.error(I.message),this.set({isSummaryLoading:!1})}},t=((s=this.get().core)==null?void 0:s.config.summaryDebounceDelay)||ji;clearTimeout(this.timeout),this.timeout=setTimeout(()=>e(),t)}}const Fa={adClientResponseItems:[],cachedAdClientResponseItems:[],core:void 0,hotkey:"k",hotkeyModifier:"meta",facetPathsForIndexFields:{},isPopoverVisible:!1,isSearchInProgress:!1,rangeValueForIndexFields:{},searchTerm:"",searchMode:"fuzzy",searchClientRequest:void 0,searchClientRequestProperties:void 0,searchClientResponseItems:[],cachedSearchClientResponseItems:[],searchResponseTimeTaken:void 0,searchResponseFacetPrime:void 0,supplementalFacetPrime:void 0,searchResultsCount:0,searchResultsPerPage:20,searchResultsPage:1,sortType:void 0,orderByField:void 0,summary:"",hasSummaryBox:!1,summaryClient:void 0,isSummaryLoading:!1},cr={},qi=(r,e={})=>{const t=r||Hr;if(cr[t])return cr[t].setState(e),cr[t];const s=ya.createStore((a,o)=>{const n={addFacetPathsForIndexField:u=>a(d=>({facetPathsForIndexFields:{...d.facetPathsForIndexFields,[u.fieldName]:u}})),addRangeValueForIndexField:u=>a(d=>({rangeValueForIndexFields:{...d.rangeValueForIndexFields,[u.fieldName]:u}})),removeFacetPathsForIndexField:u=>a(d=>{const m=d.facetPathsForIndexFields;return delete m[u],{facetPathsForIndexFields:{...m}}}),removeRangeValueForIndexField:u=>a(d=>{const m=d.rangeValueForIndexFields;return delete m[u],{rangeValueForIndexFields:{...m}}}),resetSearchValues:()=>{var d,m;const u=o();(m=(d=u.core)==null?void 0:d.searchClient)==null||m.abortRequests(),a({searchTerm:"",searchResultsPage:1,searchClientResponseItems:[...u.cachedSearchClientResponseItems],adClientResponseItems:[...u.cachedAdClientResponseItems]})},search:async()=>{var m,C,E;const u=o();if((m=u.summaryClient)==null||m.streamSummaryData(),!u.core)throw new Error("Searchcraft instance is not initialized.");if(!u.searchTerm.trim()){(E=(C=u.core)==null?void 0:C.searchClient)==null||E.abortRequests(),a({searchClientResponseItems:[...u.cachedSearchClientResponseItems],adClientResponseItems:[...u.cachedAdClientResponseItems],searchResultsCount:0,searchResultsPage:1,searchTerm:""});return}a({isSearchInProgress:!0});const d={searchTerm:u.searchTerm,mode:u.searchMode,sort:u.sortType,order_by:u.orderByField,facetPathsForIndexFields:u.facetPathsForIndexFields,rangeValueForIndexFields:u.rangeValueForIndexFields,offset:u.searchResultsPerPage?u.searchResultsPerPage*(u.searchResultsPage-1):0,limit:u.searchResultsPerPage};u.core.getResponseItems({requestProperties:d,shouldCacheResultsForEmptyState:!1})},setPopoverVisibility:u=>a({isPopoverVisible:u}),setSearchMode:u=>a({searchMode:u}),setSortOrder:({orderByField:u,sortType:d})=>a({sortType:d,orderByField:u}),setSearchTerm:u=>{var m;const d=o();u.length===0&&((m=d.core)==null||m.handleInputCleared()),a({searchTerm:u,searchResultsPage:1,...u.trim().length===0&&{searchMode:"fuzzy",sortType:null,orderByField:null,searchClientResponseItems:[...d.cachedSearchClientResponseItems],adClientResponseItems:[...d.cachedAdClientResponseItems]}})},setSearchResultsCount:u=>a({searchResultsCount:u}),setSearchResultsPage:async u=>{a({searchResultsPage:u}),await n.search()},setSearchResultsPerPage:async u=>{a({searchResultsPerPage:u}),await n.search()},setHotKeyAndHotKeyModifier:(u,d)=>{const{hotkey:m,hotkeyModifier:C}=Fa;a({hotkey:u||m,hotkeyModifier:d||C})}};return{...Fa,...e,...n,summaryClient:new Vi(o,a)}});return cr[t]=s,s};class Gi{constructor(e,t,s){c(this,"store");c(this,"config");c(this,"measureClient");c(this,"searchClient");c(this,"adClient");c(this,"userId");c(this,"requestTimeout");c(this,"subscriptionEvents",{});c(this,"getResponseItems",e=>{const t=async()=>{(async()=>{var n;if(!this.searchClient){console.error("Search client was not initialized.");return}let s;try{s=await this.searchClient.getSearchResponseItems(e.requestProperties,!1)}catch(l){Wr.info(`Search request error: ${l}`);return}if(!s){Wr.info("Search request error: Search response was undefined");return}const a=(s.data.hits||[]).filter(l=>!!l.doc).map(l=>({id:nt(),document:l.doc||{id:-1},source_index:l.source_index,type:"SearchDocument"}));let o;if(typeof e.requestProperties=="object"&&e.requestProperties.facetPathsForIndexFields&&Object.keys(e.requestProperties.facetPathsForIndexFields).length>0){const{facetPathsForIndexFields:l,...u}=e.requestProperties;try{o=await((n=this==null?void 0:this.searchClient)==null?void 0:n.getSearchResponseItems(u,!0))}catch(d){Wr.info(`Search request error: ${d}`);return}}this.store.setState({isSearchInProgress:!1,searchClientResponseItems:a,searchResponseTimeTaken:s.data.time_taken,searchResultsCount:s.data.count,searchResponseFacetPrime:s.data.facets,supplementalFacetPrime:o==null?void 0:o.data.facets,searchClientRequestProperties:e.requestProperties,...e.shouldCacheResultsForEmptyState&&{cachedSearchClientResponseItems:a}})})(),(async()=>{if(this.adClient&&typeof e.requestProperties!="string"){const s=await this.adClient.getAds(e.requestProperties);this.store.setState({adClientResponseItems:s,...e.shouldCacheResultsForEmptyState&&{cachedAdClientResponseItems:s}})}})()};clearTimeout(this.requestTimeout),this.config.searchDebounceDelay?this.requestTimeout=setTimeout(t,this.config.searchDebounceDelay):t()});if(!e.endpointURL)throw new Error("SDK Configuration Error: endpointURL not specified.");if(!e.readKey)throw new Error("SDK Configuration Error: readKey not specified.");if(!e.indexName)throw new Error("SDK Configuration Error: indexName not specified.");this.config={...e,endpointURL:Ci(e.endpointURL)},this.userId="",typeof window<"u"&&typeof customElements<"u"&&t.sdkName==="@searchcraft/javascript-sdk"&&globalThis.__scDefineCustomElements__&&globalThis.__scDefineCustomElements__(),this.store=qi(s,{core:this,searchResultsPerPage:e.searchResultsPerPage||20}),de.addCoreInstance(this,s),(async a=>{typeof window<"u"&&await this.initClients(a,t),a.initialQuery&&this.getResponseItems({requestProperties:a.initialQuery,shouldCacheResultsForEmptyState:!0})})(this.config)}async initClients(e,t){let s=this.config.measureUserIdentifier;s||(s=await si()),this.measureClient=new ki(e,t,s),this.searchClient=new wi(this,e,s),e.customAdConfig?this.adClient=new gi(e):e.nativoConfig?this.adClient=new vi(e):e.admAdConfig&&(this.adClient=new mi(e)),this.emitEvent("initialized",{name:"initialized"})}emitEvent(e,t){var s;(s=this.subscriptionEvents[e])==null||s.forEach(a=>{a(t)})}subscribe(e,t){return this.subscriptionEvents[e]||(this.subscriptionEvents[e]=[]),this.subscriptionEvents[e].push(t),()=>{this.subscriptionEvents[e]=this.subscriptionEvents[e].filter(s=>s!==t)}}handleAdContainerRendered(e){var t;(t=this.adClient)==null||t.onAdContainerRendered(e),this.emitEvent("ad_container_rendered",{name:"ad_container_rendered",data:{adContainerId:e.adContainerId,searchTerm:e.searchTerm}})}handleAdContainerViewed(e){var t;(t=this.adClient)==null||t.onAdContainerViewed(e),this.emitEvent("ad_container_viewed",{name:"ad_container_viewed",data:{adContainerId:e.adContainerId,searchTerm:e.searchTerm}})}handleInputCleared(){var e;this.emitEvent("input_cleared",{name:"input_cleared"}),(e=this.adClient)==null||e.onInputCleared()}}const Da={name:"@searchcraft/vue-sdk",version:"0.11.0"},ns="routerLink",Na="navManager",Wi="router",Zi="aria",Lt=Symbol(),za={default:Lt},Ha=r=>(r==null?void 0:r.split(" "))||[],Yi=(r,e,t=[])=>{var s;return[...Array.from(((s=r.value)==null?void 0:s.classList)||[]),...t].filter((a,o,n)=>!e.has(a)&&n.indexOf(a)===o)},Oe=(r,e,t=[],s=[],a,o)=>{e!==void 0&&e();const n=fe.defineComponent((l,{attrs:u,slots:d,emit:m})=>{var P;const C=fe.ref(),E=new Set(Ha(u.class)),$=fe.getCurrentInstance(),H=((P=$==null?void 0:$.appContext)==null?void 0:P.provides[Na])?fe.inject(Na):void 0,D=A=>{const{routerLink:B}=l;if(B!==Lt)if(H!==void 0){A.preventDefault();let Z={event:A};for(const oe in l){const Y=l[oe];l.hasOwnProperty(oe)&&oe.startsWith(Wi)&&Y!==Lt&&(Z[oe]=Y)}H.navigate(Z)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{l[a],Ha(u.class).forEach(Y=>{E.add(Y)});const A=l.onClick,B=Y=>{A!==void 0&&A(Y),Y.defaultPrevented||D(Y)};let Z={ref:C,class:Yi(C,E),onClick:B};for(const Y in l){const be=l[Y];(l.hasOwnProperty(Y)&&be!==Lt||Y.startsWith(Zi))&&(Z[Y]=be);const re="on"+Y.slice(0,1).toUpperCase()+Y.slice(1),Le=u[re];C.value&&u.hasOwnProperty(re)&&"addEventListener"in C.value&&C.value.addEventListener(Y,Le)}return ns in l&&l[ns]!==Lt&&(Z={...Z,href:l[ns]}),fe.h(r,Z,d.default&&d.default())}});if(typeof n!="function"){let l=[],u={};u.ROUTER_LINK_VALUE=za,t.forEach(d=>u[d]=za),l=s,n.name=r,n.emits=l,n.props=u}return n},Qi=Oe("searchcraft-filter-panel",()=>{},["searchcraftId","items"]),Ki=Oe("searchcraft-input-form",()=>{},["searchcraftId","autoSearch","buttonPlacement","buttonLabel","inputLabel","placeholderValue","placeholderBehavior","inputFocus","inputBlur","inputInit"],["inputFocus","inputBlur","inputInit"]),Xi=Oe("searchcraft-pagination",()=>{},["searchcraftId"]),Ji=Oe("searchcraft-popover-button",()=>{},["template","type","searchcraftId"]),ec=Oe("searchcraft-popover-form",()=>{},["type","popoverResultMappings","hotkey","hotkeyModifier","searchcraftId"]),tc=Oe("searchcraft-results-info",()=>{},["template","searchcraftId"]),rc=Oe("searchcraft-search-results",()=>{},["searchcraftId","initialQuery","template"]),sc=Oe("searchcraft-search-results-per-page",()=>{},["increment","searchcraftId"]),ac=Oe("searchcraft-summary-box",()=>{},["searchcraftId"]),nc=Oe("searchcraft-theme",()=>{}),oc=rc,ic=Qi,cc=Ki,lc=Ji,uc=ec,hc=tc,fc=nc,dc=Xi,pc=sc,mc=ac;class gc extends Gi{constructor(e,t=void 0){super(e,{sdkName:Da.name,sdkVersion:Da.version},t)}}fa(),K.Searchcraft=gc,K.SearchcraftFilterPanel=ic,K.SearchcraftInputForm=cc,K.SearchcraftPagination=dc,K.SearchcraftPopoverButton=lc,K.SearchcraftPopoverForm=uc,K.SearchcraftResultsInfo=hc,K.SearchcraftSearchResults=oc,K.SearchcraftSearchResultsPerPage=pc,K.SearchcraftSummaryBox=mc,K.SearchcraftTheme=fc,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});
|
|
80
|
+
*/var Jr=Symbol.for("react.transitional.element"),Ri=Symbol.for("react.portal"),Ei=Symbol.for("react.fragment"),Ti=Symbol.for("react.strict_mode"),Pi=Symbol.for("react.profiler"),$i=Symbol.for("react.consumer"),_i=Symbol.for("react.context"),Ii=Symbol.for("react.forward_ref"),Ai=Symbol.for("react.suspense"),Mi=Symbol.for("react.memo"),xa=Symbol.for("react.lazy"),wa=Symbol.iterator;function Oi(r){return r===null||typeof r!="object"?null:(r=wa&&r[wa]||r["@@iterator"],typeof r=="function"?r:null)}var Sa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ra=Object.assign,Ea={};function bt(r,e,t){this.props=r,this.context=e,this.refs=Ea,this.updater=t||Sa}bt.prototype.isReactComponent={},bt.prototype.setState=function(r,e){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,e,"setState")},bt.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function Ta(){}Ta.prototype=bt.prototype;function es(r,e,t){this.props=r,this.context=e,this.refs=Ea,this.updater=t||Sa}var ts=es.prototype=new Ta;ts.constructor=es,Ra(ts,bt.prototype),ts.isPureReactComponent=!0;var Pa=Array.isArray,ee={H:null,A:null,T:null,S:null},$a=Object.prototype.hasOwnProperty;function rs(r,e,t,s,a,o){return t=o.ref,{$$typeof:Jr,type:r,key:e,ref:t!==void 0?t:null,props:o}}function Li(r,e){return rs(r.type,e,void 0,void 0,void 0,r.props)}function ss(r){return typeof r=="object"&&r!==null&&r.$$typeof===Jr}function Fi(r){var e={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(t){return e[t]})}var _a=/\/+/g;function as(r,e){return typeof r=="object"&&r!==null&&r.key!=null?Fi(""+r.key):e.toString(36)}function Ia(){}function Di(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(Ia,Ia):(r.status="pending",r.then(function(e){r.status==="pending"&&(r.status="fulfilled",r.value=e)},function(e){r.status==="pending"&&(r.status="rejected",r.reason=e)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function vt(r,e,t,s,a){var o=typeof r;(o==="undefined"||o==="boolean")&&(r=null);var n=!1;if(r===null)n=!0;else switch(o){case"bigint":case"string":case"number":n=!0;break;case"object":switch(r.$$typeof){case Jr:case Ri:n=!0;break;case xa:return n=r._init,vt(n(r._payload),e,t,s,a)}}if(n)return a=a(r),n=s===""?"."+as(r,0):s,Pa(a)?(t="",n!=null&&(t=n.replace(_a,"$&/")+"/"),vt(a,e,t,"",function(d){return d})):a!=null&&(ss(a)&&(a=Li(a,t+(a.key==null||r&&r.key===a.key?"":(""+a.key).replace(_a,"$&/")+"/")+n)),e.push(a)),1;n=0;var l=s===""?".":s+":";if(Pa(r))for(var u=0;u<r.length;u++)s=r[u],o=l+as(s,u),n+=vt(s,e,t,o,a);else if(u=Oi(r),typeof u=="function")for(r=u.call(r),u=0;!(s=r.next()).done;)s=s.value,o=l+as(s,u++),n+=vt(s,e,t,o,a);else if(o==="object"){if(typeof r.then=="function")return vt(Di(r),e,t,s,a);throw e=String(r),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return n}function ir(r,e,t){if(r==null)return r;var s=[],a=0;return vt(r,s,"","",function(o){return e.call(t,o,a++)}),s}function Ni(r){if(r._status===-1){var e=r._result;e=e(),e.then(function(t){(r._status===0||r._status===-1)&&(r._status=1,r._result=t)},function(t){(r._status===0||r._status===-1)&&(r._status=2,r._result=t)}),r._status===-1&&(r._status=0,r._result=e)}if(r._status===1)return r._result.default;throw r._result}var Aa=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function zi(){}z.Children={map:ir,forEach:function(r,e,t){ir(r,function(){e.apply(this,arguments)},t)},count:function(r){var e=0;return ir(r,function(){e++}),e},toArray:function(r){return ir(r,function(e){return e})||[]},only:function(r){if(!ss(r))throw Error("React.Children.only expected to receive a single React element child.");return r}},z.Component=bt,z.Fragment=Ei,z.Profiler=Pi,z.PureComponent=es,z.StrictMode=Ti,z.Suspense=Ai,z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee,z.act=function(){throw Error("act(...) is not supported in production builds of React.")},z.cache=function(r){return function(){return r.apply(null,arguments)}},z.cloneElement=function(r,e,t){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var s=Ra({},r.props),a=r.key,o=void 0;if(e!=null)for(n in e.ref!==void 0&&(o=void 0),e.key!==void 0&&(a=""+e.key),e)!$a.call(e,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&e.ref===void 0||(s[n]=e[n]);var n=arguments.length-2;if(n===1)s.children=t;else if(1<n){for(var l=Array(n),u=0;u<n;u++)l[u]=arguments[u+2];s.children=l}return rs(r.type,a,void 0,void 0,o,s)},z.createContext=function(r){return r={$$typeof:_i,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:$i,_context:r},r},z.createElement=function(r,e,t){var s,a={},o=null;if(e!=null)for(s in e.key!==void 0&&(o=""+e.key),e)$a.call(e,s)&&s!=="key"&&s!=="__self"&&s!=="__source"&&(a[s]=e[s]);var n=arguments.length-2;if(n===1)a.children=t;else if(1<n){for(var l=Array(n),u=0;u<n;u++)l[u]=arguments[u+2];a.children=l}if(r&&r.defaultProps)for(s in n=r.defaultProps,n)a[s]===void 0&&(a[s]=n[s]);return rs(r,o,void 0,void 0,null,a)},z.createRef=function(){return{current:null}},z.forwardRef=function(r){return{$$typeof:Ii,render:r}},z.isValidElement=ss,z.lazy=function(r){return{$$typeof:xa,_payload:{_status:-1,_result:r},_init:Ni}},z.memo=function(r,e){return{$$typeof:Mi,type:r,compare:e===void 0?null:e}},z.startTransition=function(r){var e=ee.T,t={};ee.T=t;try{var s=r(),a=ee.S;a!==null&&a(t,s),typeof s=="object"&&s!==null&&typeof s.then=="function"&&s.then(zi,Aa)}catch(o){Aa(o)}finally{ee.T=e}},z.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()},z.use=function(r){return ee.H.use(r)},z.useActionState=function(r,e,t){return ee.H.useActionState(r,e,t)},z.useCallback=function(r,e){return ee.H.useCallback(r,e)},z.useContext=function(r){return ee.H.useContext(r)},z.useDebugValue=function(){},z.useDeferredValue=function(r,e){return ee.H.useDeferredValue(r,e)},z.useEffect=function(r,e){return ee.H.useEffect(r,e)},z.useId=function(){return ee.H.useId()},z.useImperativeHandle=function(r,e,t){return ee.H.useImperativeHandle(r,e,t)},z.useInsertionEffect=function(r,e){return ee.H.useInsertionEffect(r,e)},z.useLayoutEffect=function(r,e){return ee.H.useLayoutEffect(r,e)},z.useMemo=function(r,e){return ee.H.useMemo(r,e)},z.useOptimistic=function(r,e){return ee.H.useOptimistic(r,e)},z.useReducer=function(r,e,t){return ee.H.useReducer(r,e,t)},z.useRef=function(r){return ee.H.useRef(r)},z.useState=function(r){return ee.H.useState(r)},z.useSyncExternalStore=function(r,e,t){return ee.H.useSyncExternalStore(r,e,t)},z.useTransition=function(){return ee.H.useTransition()},z.version="19.0.0",Ca.exports=z;var Ma=Ca.exports,Hi=Kr;const Ui=r=>r;function Oa(r,e=Ui){const t=Ma.useSyncExternalStore(r.subscribe,()=>e(r.getState()),()=>e(r.getInitialState()));return Ma.useDebugValue(t),t}const La=r=>{const e=Hi.createStore(r),t=s=>Oa(e,s);return Object.assign(t,e),t},Bi=r=>r?La(r):La;Xr.create=Bi,Xr.useStore=Oa,function(r){var e=Kr,t=Xr;Object.keys(e).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:function(){return e[s]}})}),Object.keys(t).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:function(){return t[s]}})})}(ya);const ji=1e3;class Vi{constructor(e,t){c(this,"set");c(this,"get");c(this,"abortController");c(this,"timeout");this.get=e,this.set=t}streamSummaryData(){var s;const e=async()=>{var u,d,m,C,E,$;const a=this.get(),o=(u=a.core)==null?void 0:u.config;if(!o){console.error("Could not stream summary data, no config found.");return}if(!o.cortexURL){console.error("Could not stream summary data, cortexURL was not specified in the config.");return}const n=(d=a.core)==null?void 0:d.config.indexName;if(!a.hasSummaryBox||!n)return;(m=this.abortController)==null||m.abort("A newer request has replaced this one."),this.abortController=new AbortController,this.set({isSummaryLoading:!0,summary:""});const l=`${o.cortexURL.replace(/\/$/,"")}/api/search/summary`;try{const I=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json",Authorization:((C=a.core)==null?void 0:C.config.readKey)||""},body:JSON.stringify({searchQuery:a.searchClientRequest,summaryInstructionsPrompt:(E=a.core)==null?void 0:E.config.summaryInstructionsPrompt,indexName:n,endpointUrl:($=a.core)==null?void 0:$.config.endpointURL}),signal:this.abortController.signal});if(!I)throw new Error("Invalid fetch response");if(!I.body)throw new Error("Invalid fetch response");if(!I.ok)throw new Error(`HTTP ${I.status}`);const H=I.body.getReader(),D=new TextDecoder;let P=!1;do{const{done:A,value:B}=await H.read();P=A;const Z=D.decode(B,{stream:!0});this.set(oe=>({isSummaryLoading:!1,summary:`${oe.summary}${Z}`}))}while(!P)}catch(I){I instanceof Error&&console.error(I.message),this.set({isSummaryLoading:!1})}},t=((s=this.get().core)==null?void 0:s.config.summaryDebounceDelay)||ji;clearTimeout(this.timeout),this.timeout=setTimeout(()=>e(),t)}}const Fa={adClientResponseItems:[],cachedAdClientResponseItems:[],core:void 0,hotkey:"k",hotkeyModifier:"meta",facetPathsForIndexFields:{},isPopoverVisible:!1,isSearchInProgress:!1,rangeValueForIndexFields:{},searchTerm:"",searchMode:"fuzzy",searchClientRequest:void 0,searchClientRequestProperties:void 0,searchClientResponseItems:[],cachedSearchClientResponseItems:[],searchResponseTimeTaken:void 0,searchResponseFacetPrime:void 0,supplementalFacetPrime:void 0,searchResultsCount:0,searchResultsPerPage:20,searchResultsPage:1,sortType:void 0,orderByField:void 0,summary:"",hasSummaryBox:!1,summaryClient:void 0,isSummaryLoading:!1},cr={},qi=(r,e={})=>{const t=r||Hr;if(cr[t])return cr[t].setState(e),cr[t];const s=ya.createStore((a,o)=>{const n={addFacetPathsForIndexField:u=>a(d=>({facetPathsForIndexFields:{...d.facetPathsForIndexFields,[u.fieldName]:u}})),addRangeValueForIndexField:u=>a(d=>({rangeValueForIndexFields:{...d.rangeValueForIndexFields,[u.fieldName]:u}})),removeFacetPathsForIndexField:u=>a(d=>{const m=d.facetPathsForIndexFields;return delete m[u],{facetPathsForIndexFields:{...m}}}),removeRangeValueForIndexField:u=>a(d=>{const m=d.rangeValueForIndexFields;return delete m[u],{rangeValueForIndexFields:{...m}}}),resetSearchValues:()=>{var d,m;const u=o();(m=(d=u.core)==null?void 0:d.searchClient)==null||m.abortRequests(),a({searchTerm:"",searchResultsPage:1,searchClientResponseItems:[...u.cachedSearchClientResponseItems],adClientResponseItems:[...u.cachedAdClientResponseItems]})},search:async()=>{var m,C,E;const u=o();if(!u.core)throw new Error("Searchcraft instance is not initialized.");if(u.core.config.cortexURL&&((m=u.summaryClient)==null||m.streamSummaryData()),!u.searchTerm.trim()){(E=(C=u.core)==null?void 0:C.searchClient)==null||E.abortRequests(),a({searchClientResponseItems:[...u.cachedSearchClientResponseItems],adClientResponseItems:[...u.cachedAdClientResponseItems],searchResultsCount:0,searchResultsPage:1,searchTerm:""});return}a({isSearchInProgress:!0});const d={searchTerm:u.searchTerm,mode:u.searchMode,sort:u.sortType,order_by:u.orderByField,facetPathsForIndexFields:u.facetPathsForIndexFields,rangeValueForIndexFields:u.rangeValueForIndexFields,offset:u.searchResultsPerPage?u.searchResultsPerPage*(u.searchResultsPage-1):0,limit:u.searchResultsPerPage};u.core.getResponseItems({requestProperties:d,shouldCacheResultsForEmptyState:!1})},setPopoverVisibility:u=>a({isPopoverVisible:u}),setSearchMode:u=>a({searchMode:u}),setSortOrder:({orderByField:u,sortType:d})=>a({sortType:d,orderByField:u}),setSearchTerm:u=>{var m;const d=o();u.length===0&&((m=d.core)==null||m.handleInputCleared()),a({searchTerm:u,searchResultsPage:1,...u.trim().length===0&&{searchMode:"fuzzy",sortType:null,orderByField:null,searchClientResponseItems:[...d.cachedSearchClientResponseItems],adClientResponseItems:[...d.cachedAdClientResponseItems]}})},setSearchResultsCount:u=>a({searchResultsCount:u}),setSearchResultsPage:async u=>{a({searchResultsPage:u}),await n.search()},setSearchResultsPerPage:async u=>{a({searchResultsPerPage:u}),await n.search()},setHotKeyAndHotKeyModifier:(u,d)=>{const{hotkey:m,hotkeyModifier:C}=Fa;a({hotkey:u||m,hotkeyModifier:d||C})}};return{...Fa,...e,...n,summaryClient:new Vi(o,a)}});return cr[t]=s,s};class Gi{constructor(e,t,s){c(this,"store");c(this,"config");c(this,"measureClient");c(this,"searchClient");c(this,"adClient");c(this,"userId");c(this,"requestTimeout");c(this,"subscriptionEvents",{});c(this,"getResponseItems",e=>{const t=async()=>{(async()=>{var n;if(!this.searchClient){console.error("Search client was not initialized.");return}let s;try{s=await this.searchClient.getSearchResponseItems(e.requestProperties,!1)}catch(l){Wr.info(`Search request error: ${l}`);return}if(!s){Wr.info("Search request error: Search response was undefined");return}const a=(s.data.hits||[]).filter(l=>!!l.doc).map(l=>({id:nt(),document:l.doc||{id:-1},source_index:l.source_index,type:"SearchDocument"}));let o;if(typeof e.requestProperties=="object"&&e.requestProperties.facetPathsForIndexFields&&Object.keys(e.requestProperties.facetPathsForIndexFields).length>0){const{facetPathsForIndexFields:l,...u}=e.requestProperties;try{o=await((n=this==null?void 0:this.searchClient)==null?void 0:n.getSearchResponseItems(u,!0))}catch(d){Wr.info(`Search request error: ${d}`);return}}this.store.setState({isSearchInProgress:!1,searchClientResponseItems:a,searchResponseTimeTaken:s.data.time_taken,searchResultsCount:s.data.count,searchResponseFacetPrime:s.data.facets,supplementalFacetPrime:o==null?void 0:o.data.facets,searchClientRequestProperties:e.requestProperties,...e.shouldCacheResultsForEmptyState&&{cachedSearchClientResponseItems:a}})})(),(async()=>{if(this.adClient&&typeof e.requestProperties!="string"){const s=await this.adClient.getAds(e.requestProperties);this.store.setState({adClientResponseItems:s,...e.shouldCacheResultsForEmptyState&&{cachedAdClientResponseItems:s}})}})()};clearTimeout(this.requestTimeout),this.config.searchDebounceDelay?this.requestTimeout=setTimeout(t,this.config.searchDebounceDelay):t()});if(!e.endpointURL)throw new Error("SDK Configuration Error: endpointURL not specified.");if(!e.readKey)throw new Error("SDK Configuration Error: readKey not specified.");if(!e.indexName)throw new Error("SDK Configuration Error: indexName not specified.");this.config={...e,endpointURL:Ci(e.endpointURL)},this.userId="",typeof window<"u"&&typeof customElements<"u"&&t.sdkName==="@searchcraft/javascript-sdk"&&globalThis.__scDefineCustomElements__&&globalThis.__scDefineCustomElements__(),this.store=qi(s,{core:this,searchResultsPerPage:e.searchResultsPerPage||20}),de.addCoreInstance(this,s),(async a=>{typeof window<"u"&&await this.initClients(a,t),a.initialQuery&&this.getResponseItems({requestProperties:a.initialQuery,shouldCacheResultsForEmptyState:!0})})(this.config)}async initClients(e,t){let s=this.config.measureUserIdentifier;s||(s=await si()),this.measureClient=new ki(e,t,s),this.searchClient=new wi(this,e,s),e.customAdConfig?this.adClient=new gi(e):e.nativoConfig?this.adClient=new vi(e):e.admAdConfig&&(this.adClient=new mi(e)),this.emitEvent("initialized",{name:"initialized"})}emitEvent(e,t){var s;(s=this.subscriptionEvents[e])==null||s.forEach(a=>{a(t)})}subscribe(e,t){return this.subscriptionEvents[e]||(this.subscriptionEvents[e]=[]),this.subscriptionEvents[e].push(t),()=>{this.subscriptionEvents[e]=this.subscriptionEvents[e].filter(s=>s!==t)}}handleAdContainerRendered(e){var t;(t=this.adClient)==null||t.onAdContainerRendered(e),this.emitEvent("ad_container_rendered",{name:"ad_container_rendered",data:{adContainerId:e.adContainerId,searchTerm:e.searchTerm}})}handleAdContainerViewed(e){var t;(t=this.adClient)==null||t.onAdContainerViewed(e),this.emitEvent("ad_container_viewed",{name:"ad_container_viewed",data:{adContainerId:e.adContainerId,searchTerm:e.searchTerm}})}handleInputCleared(){var e;this.emitEvent("input_cleared",{name:"input_cleared"}),(e=this.adClient)==null||e.onInputCleared()}}const Da={name:"@searchcraft/vue-sdk",version:"0.11.1"},ns="routerLink",Na="navManager",Wi="router",Zi="aria",Lt=Symbol(),za={default:Lt},Ha=r=>(r==null?void 0:r.split(" "))||[],Yi=(r,e,t=[])=>{var s;return[...Array.from(((s=r.value)==null?void 0:s.classList)||[]),...t].filter((a,o,n)=>!e.has(a)&&n.indexOf(a)===o)},Oe=(r,e,t=[],s=[],a,o)=>{e!==void 0&&e();const n=fe.defineComponent((l,{attrs:u,slots:d,emit:m})=>{var P;const C=fe.ref(),E=new Set(Ha(u.class)),$=fe.getCurrentInstance(),H=((P=$==null?void 0:$.appContext)==null?void 0:P.provides[Na])?fe.inject(Na):void 0,D=A=>{const{routerLink:B}=l;if(B!==Lt)if(H!==void 0){A.preventDefault();let Z={event:A};for(const oe in l){const Y=l[oe];l.hasOwnProperty(oe)&&oe.startsWith(Wi)&&Y!==Lt&&(Z[oe]=Y)}H.navigate(Z)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{l[a],Ha(u.class).forEach(Y=>{E.add(Y)});const A=l.onClick,B=Y=>{A!==void 0&&A(Y),Y.defaultPrevented||D(Y)};let Z={ref:C,class:Yi(C,E),onClick:B};for(const Y in l){const be=l[Y];(l.hasOwnProperty(Y)&&be!==Lt||Y.startsWith(Zi))&&(Z[Y]=be);const re="on"+Y.slice(0,1).toUpperCase()+Y.slice(1),Le=u[re];C.value&&u.hasOwnProperty(re)&&"addEventListener"in C.value&&C.value.addEventListener(Y,Le)}return ns in l&&l[ns]!==Lt&&(Z={...Z,href:l[ns]}),fe.h(r,Z,d.default&&d.default())}});if(typeof n!="function"){let l=[],u={};u.ROUTER_LINK_VALUE=za,t.forEach(d=>u[d]=za),l=s,n.name=r,n.emits=l,n.props=u}return n},Qi=Oe("searchcraft-filter-panel",()=>{},["searchcraftId","items"]),Ki=Oe("searchcraft-input-form",()=>{},["searchcraftId","autoSearch","buttonPlacement","buttonLabel","inputLabel","placeholderValue","placeholderBehavior","inputFocus","inputBlur","inputInit"],["inputFocus","inputBlur","inputInit"]),Xi=Oe("searchcraft-pagination",()=>{},["searchcraftId"]),Ji=Oe("searchcraft-popover-button",()=>{},["template","type","searchcraftId"]),ec=Oe("searchcraft-popover-form",()=>{},["type","popoverResultMappings","hotkey","hotkeyModifier","searchcraftId"]),tc=Oe("searchcraft-results-info",()=>{},["template","searchcraftId"]),rc=Oe("searchcraft-search-results",()=>{},["searchcraftId","initialQuery","template"]),sc=Oe("searchcraft-search-results-per-page",()=>{},["increment","searchcraftId"]),ac=Oe("searchcraft-summary-box",()=>{},["searchcraftId"]),nc=Oe("searchcraft-theme",()=>{}),oc=rc,ic=Qi,cc=Ki,lc=Ji,uc=ec,hc=tc,fc=nc,dc=Xi,pc=sc,mc=ac;class gc extends Gi{constructor(e,t=void 0){super(e,{sdkName:Da.name,sdkVersion:Da.version},t)}}fa(),K.Searchcraft=gc,K.SearchcraftFilterPanel=ic,K.SearchcraftInputForm=cc,K.SearchcraftPagination=dc,K.SearchcraftPopoverButton=lc,K.SearchcraftPopoverForm=uc,K.SearchcraftResultsInfo=hc,K.SearchcraftSearchResults=oc,K.SearchcraftSearchResultsPerPage=pc,K.SearchcraftSummaryBox=mc,K.SearchcraftTheme=fc,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});
|
|
81
81
|
//# sourceMappingURL=index.umd.js.map
|