1import{_ as k,a as C}from"./GlobalSetup.vue_vue_type_script_setup_true_lang.DhC5Bb0O.js";import{_ as x,a as D,m as g,h as T,b as I,u as M}from"./ProductSearchContainer.vue_vue_type_script_setup_true_lang.Btfecqzo.js";import{u as $}from"./product-search-link.CeAsQWle.js";import{u as F}from"./product-link.Cfv633Ee.js";import{u as z}from"./product-search-bar-store.CTAidxAG.js";import{u as K}from"./use-ia-breakpoints.t_jnQDNU.js";import{_ as N}from"./ModalBase.vue_vue_type_script_setup_true_lang.DqC4omXp.js";import{k as _,A as c,M as d,N as V,Q as h,X as y,y as t,x as L,R as P,c as R,t as s,w as O}from"./vue-vendor.BqpWRvtD.js";import{az as Q,c8 as q}from"./define-custom-element.9QNbOX-B.js";import{u as A}from"./product-search-query-params.DVXtW_As.js";const E={flex:"~ col grow",class:"relative"},G=_({__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}=K();c(g,s(o,"minCharsForSearch")),c(T,s(o,"hideRezeptBtn")),c(I,s(o,"hideBarcodeBtn")),c(M,s(o,"uploadLimit"));const{getProductSearchLink:r}=$(),{getProductLink:n}=F(),p=z(),{showSearchModal:l,hideSearchModal:u,setSearchTerm:i}=p,m=()=>{a.value&&l()},b=()=>{window.location.href=r({search:p.searchTermClean})},_=e=>{i(e.name),window.location.href=n(e.pzn)},f=R((()=>o.newDropdownLayout?x:D));return(o,r)=>(d(),V("div",E,[(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:_},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:_},null,40,["hide-rezept-label"]))])),_:1},8,["modelValue","onClose"])]))}}),U=_({__name:"IaProductSearchBar.ce",props:{hideRezeptBtn:{type:Boolean},hideRezeptLabel:{type:Boolean},newDropdownLayout:{type:[Boolean,String]}},setup(e){const o=e,a=z(),{query:r}=A(),s=R((()=>Q(o.newDropdownLayout)?o.newDropdownLayout:q(o.newDropdownLayout)));return O(r,(()=>{a.setSearchTerm(r.value.searchTerm??"")}),{immediate:!0}),(o,a)=>{const r=G,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})}}}),X="[data-v-d0407b5a]:host{display:block;min-height:60px}",re=C(U,[["styles",[X]],["__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.