PageSourceSearch

https://apotheke-vh.de/ia/lib/IaProductSearchBar.ce.nrA_JTN_.js

js apotheke-vh.de collected 2026-10-09 04:22:18 UTC 3,070 bytes, 1 lines download raw bytes

1import{_ as k,a as C}from"./GlobalSetup.vue_vue_type_script_setup_true_lang.C7wyEG68.js";import{_ as x,a as D,m as g,h as T,b as I,u as $}from"./ProductSearchContainer.vue_vue_type_script_setup_true_lang.BKNwuqtR.js";import{u as F}from"./product-search-link.Dk4zpQ4C.js";import{u as K}from"./product-link.CxP3qNEM.js";import{u as _}from"./product-search-bar-store.DL8fpeSs.js";import{u as M}from"./use-ia-breakpoints.DY7oYv4U.js";import{_ as N}from"./ModalBase.vue_vue_type_script_setup_true_lang.Hsjb6B_z.js";import{k as z,A as c,N as d,O as V,R as h,Y as y,y as t,x as L,S as P,c as R,t as s,w as O}from"./vue-vendor.Da7g9d9U.js";import{aA as A,cc as q}from"./define-custom-element.DLPh09AG.js";import{u as E}from"./product-search-query-params.DLSi4fD_.js";const G={flex:"~ col grow",class:"relative"},Q=z({__name:"ProductSearchBar",props:{minCharsForSearch:{default:3,type:Number},uploadLimit:{default:8,type:Number},hideRezeptBtn:{type:Boolean},hideBarcodeBtn:{type:Boolean},hideRezeptLabel:{type:Boolean},newDropdownLayout:{type:Boolean}},setup(e){const o=e,{smDown:a}=M();c(g,s(o,"minCharsForSearch")),c(T,s(o,"hideRezeptBtn")),c(I,s(o,"hideBarcodeBtn")),c($,s(o,"uploadLimit"));const{getProductSearchLink:r}=F(),{getProductLink:n}=K(),p=_(),{showSearchModal:l,hideSearchModal:u,setSearchTerm:i}=p,m=()=>{a.value&&l()},b=()=>{window.location.href=r({search:p.searchTermClean})},w=e=>{i(e.name),window.location.href=n(e.pzn)},f=R((()=>o.newDropdownLayout?x:D));return(o,r)=>(d(),V("div",G,[(d(),h(y(t(f)),{"hide-rezept-btn":e.hideRezeptBtn,"hide-barcode-scanner":e.hideBarcodeBtn,"show-autocomplete":!t(a),"hide-rezept-label":e.hideRezeptLabel,"on-input-focus":m,"stretch-to-prescription":"",onSubmitSearch:b,onSelectProduct:w},null,40,["hide-rezept-btn","hide-barcode-scanner","show-autocomplete","hide-rezept-label"])),L(t(N),{modelValue:t(p).isSearchModalOpen,"onUpdate:modelValue":r[0]||(r[0]=e=>t(p).isSearchModalOpen=e),closable:"","panel-class":"!px-0 overflow-hidden","close-class":"absolute top-2 right-1.5","full-screen":"","prevent-restore-focus":"",onClose:t(u)},{default:P((()=>[(d(),h(y(t(f)),{"hide-barcode-scanner":"","hide-rezept-btn":"","hide-rezept-label":e.hideRezeptLabel,"on-input-focus":m,block:"",autofocus:"",onSubmitSearch:b,onSelectProduct:w},null,40,["hide-rezept-label"]))])),_:1},8,["modelValue","onClose"])]))}}),U=z({__name:"IaProductSearchBar.ce",props:{hideRezeptBtn:{type:Boolean},hideRezeptLabel:{type:Boolean},newDropdownLayout:{type:[Boolean,String]}},setup(e){const o=e,a=_(),{query:r}=E(),s=R((()=>A(o.newDropdownLayout)?o.newDropdownLayout:q(o.newDropdownLayout)));return O(r,(()=>{a.setSearchTerm(r.value.searchTerm??"")}),{immediate:!0}),(o,a)=>{const r=Q,n=k;return d(),h(n,null,{default:P((()=>[L(r,{"hide-rezept-btn":e.hideRezeptBtn,"hide-rezept-label":e.hideRezeptLabel,"new-dropdown-layout":t(s)},null,8,["hide-rezept-btn","hide-rezept-label","new-dropdown-layout"])])),_:1})}}}),Y="[data-v-d0407b5a]:host{display:block;min-height:60px}",re=C(U,[["styles",[Y]],["__scopeId","data-v-d0407b5a"]]);export{re 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.