1import{z as x,M as N,I as $,a as I,r as i,N as M,G as T,b as C,d as R,e as h,f as c,j as t,_ as K,k as m,l as r,t as u,m as D,O as _,v as L,P as O,Q as P,R as v,T as U,U as j,x as b,V as z,S as A,y as E}from"./DXADahwW.js";import{b as G}from"./B1ed6sjo.js";import{u as H}from"./ClYr9QDL.js";import"./BI8I5D9h.js";import"./DPvFSt4c.js";import"./Cbp8rmw2.js";import"./C1BjCpv6.js";import"./Cgd839PX.js";import"./MjVdrsBI.js";import"./ftIu6NwC.js";import"./ZhWAdK_X.js";import"./Ru1P_5TD.js";import"./BsGEOuMd.js";import"./DJ70hkU8.js";import"./DG-E3Lor.js";import"./CwbWl2lh.js";import"./CMQQhME9.js";import"./BS3QwMw7.js";import"./BPPrUZIa.js";import"./BA3Rr3NK.js";import"./DJjYOYnI.js";import"./xtoT8-OP.js";import"./C7u55QtZ.js";import"./MjV6lATv.js";import"./BCfQEYRE.js";import"./DnqZrDpg.js";import"./CIK5isgc.js";import"./4atYtMqj.js";import"./ad715qpo.js";import"./0VBJElwJ.js";import"./Cy8T-BbY.js";import"./CyKkOMu7.js";import"./B4X2ojue.js";import"./ChREVvNC.js";import"./CPpUH-jE.js";import"./DHfNMP5U.js";import"./BvMDZJZt.js";import"./CrYARvoY.js";import"./B_0WsTBq.js";import"./CLvvGF89.js";import"./m5LVTByb.js";import"./CrTH1jFJ.js";import"./BuUcDrrG.js";import"./gcIuOSL9.js";import"./8mWSG_My.js";import"./BORMUP0n.js";import"./D6Me0GsF.js";import"./CzFoFwZD.js";import"./bQCzVlXr.js";import"./iGFFii-8.js";const Q={key:0},F={class:"h5"},J={id:"usedsearchterms_phrase"},W={class:"input-group mb-3"},X=["placeholder","aria-label","onKeydown"],Y={class:"input-group-append"},Z=["aria-label"],Xe=x({__name:"search",setup(ee){const a=N(),f=$(),{t:y}=I(),n=i(y("plugin/ekauppa/templates/template6")),s=i(a.query.search?a.query.search:""),o=i(s.value),p=i(o.value.toString()),g=i(a.query.producer?a.query.producer.toString().split(","):[]),{routeBreadcrumb:S}=H(n),w=E(()=>({search:p.value,producer:g.value}));M(()=>a.query.search,e=>{s.value=e??"",p.value=e??"",o.value=e??""});const l=async()=>{p.value=o.value.toString(),await f.push({path:"search",query:{search:p.value}})};return T({bodyAttrs:{class:"page-search"}}),C({title:n.value}),R({ogTitle:n.value}),(e,d)=>{const k=z,V=G,B=K;return m(),h(B,{breadcrumb:t(S)},{default:c(()=>[r("h1",null,u(t(n)),1),t(s)&&t(s)==t(p)?(m(),D("div",Q,[r("p",F,[_(u(e.$t("search_phrase_used"))+" ",1),r("span",J,u(t(s)),1)])])):L("",!0),r("div",W,[O(r("input",{id:"freeSearchInput","onUpdate:modelValue":d[0]||(d[0]=q=>U(o)?o.value=q:null),type:"text",class:"form-control",placeholder:e.$t("search_products"),"aria-label":e.$t("search_products"),onKeydown:P(v(l,["prevent"]),["enter"])},null,40,X),[[j,t(o)]]),r("div",Y,[r("button",{id:"freesearchBtn",type:"button",class:"input-group-text btn btn-primary","aria-label":e.$t("v1.views.search.navigateToSearch"),onClick:v(l,["prevent"])},[b(k,{icon:"fas fa-search","aria-hidden":"true"})],8,Z)])]),(m(),h(A,null,{fallback:c(()=>[_(u(e.$t("loading"))+"... ",1)]),default:c(()=>[b(V,{options:t(w),"show-dynamic-groups":!0,"have-sub-categories":!1,"use-url-pagenumber":!0},null,8,["options"])]),_:1}))]),_:1},8,["breadcrumb"])}}});export{Xe as default};
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.