1import{aI as d,aY as g,b7 as y,b8 as p,ae as h}from"./define-custom-element.9QNbOX-B.js";import{d as v}from"./pharmacy-system-monitor.BbxI66xO.js";import{c as b}from"./vue-vendor.BqpWRvtD.js";const O=()=>{const{isActive:e}=h(),s={searchTerm:"search",categories:"kategorie",manufacturers:"hersteller",products:"products",offers:"angebote",sorting:"sorting",express:"express"},{pharmacyIdQueryObject:r}=v(),{hash:t,history:a}=d(),o=b({get:()=>{const e=t[s.searchTerm]??a[s.searchTerm],r=t[s.offers]??a[s.offers],o=t[s.sorting]??a[s.sorting],c=t[s.categories]??a[s.categories],u=t[s.manufacturers]??a[s.manufacturers],n=t[s.products]??a[s.products],i=t[s.express]??a[s.express];return{searchTerm:e,categories:p(c),manufacturers:p(u)?.map(Number)??[],products:p(n),offers:"boolean"==typeof r?r:y(r)??!1,sorting:o,express:"boolean"==typeof i?i:y(i)??!1}},set:o=>{const c=o;let u;c.products&&c.products.length>0&&(c.offers||c.express)&&(c.products=[]);const n={};for(u in c){const e=c[u],r=s[u];e&&Object.assign(n,{[r]:Array.isArray(e)?e.join(","):e})}e.value&&!g(t,n)?(Object.keys(t).forEach((e=>delete t[e])),Object.assign(t,{...r.value,...n})):!e.value&&!g(a,n)&&(Object.keys(a).forEach((e=>delete a[e])),Object.assign(a,{...r.value,...n}))}});return{query:o,getQueryValues:()=>({[s.searchTerm]:o.value.searchTerm,[s.categories]:o.value.categories?.join(","),[s.manufacturers]:o.value.manufacturers?.join(","),[s.products]:o.value.products?.join(","),[s.offers]:o.value.offers,[s.sorting]:o.value.sorting,[s.express]:o.value.express})}};export{O as u};
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.