vue-instantsearch
Version:
👀 Lightning-fast Algolia search for Vue apps
2 lines (1 loc) • 1.77 kB
JavaScript
import{_ as t}from"@swc/helpers/_/_to_consumable_array";import{openBlock as e,createElementBlock as n,normalizeClass as l,renderSlot as r,normalizeProps as s,guardReactiveProps as o,createElementVNode as i,mergeProps as a,toDisplayString as u,createCommentVNode as p,createStaticVNode as d}from"vue";var v=["title","disabled"],y=[d('<line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',5)],c=["fill"],x=i("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"},null,-1),b=i("line",{x1:"12",y1:"19",x2:"12",y2:"23"},null,-1),f=i("line",{x1:"8",y1:"23",x2:"16",y2:"23"},null,-1);function h(d,h,S,g,k,m){var w;return d.state?(e(),n("div",{key:0,class:l(d.suit())},[r(d.$slots,"default",s(o(m.rootSlotProps)),function(){return[i("button",{type:"button",class:l(d.suit("button")),title:d.state.isBrowserSupported?S.buttonTitle:S.disabledButtonTitle,disabled:!d.state.isBrowserSupported,onClick:h[0]||(h[0]=function(){for(var e=arguments.length,n=new Array(e),l=0;l<e;l++)n[l]=arguments[l];return m.handleClick&&(w=m).handleClick.apply(w,t(n))})},[r(d.$slots,"buttonText",s(o(m.innerSlotProps)),function(){return[m.errorNotAllowed?(e(),n("svg",s(a({key:0},k.buttonSvgAttrs)),y,16)):(e(),n("svg",s(a({key:1},k.buttonSvgAttrs)),[i("path",{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",fill:d.state.isListening?"currentColor":"none"},null,8,c),x,b,f],16))]})],10,v),i("div",{class:l(d.suit("status"))},[r(d.$slots,"status",s(o(m.innerSlotProps)),function(){return[i("p",null,u(d.state.voiceListeningState.transcript),1)]})],2)]})],2)):p("",!0)}export{h as render};