PageSourceSearch

https://ihre-apotheke.ch/_nuxt/B5oUItDP.js

js ihre-apotheke.ch collected 2026-10-05 09:43:14 UTC 5,399 bytes, 2 lines download raw bytes

1import{c as g,Z as y,$ as Z,a0 as K,a1 as X,d as N,j as k,o as m,h as B,f as D,G as E,t as j,b as J,B as Q,e as _,X as Y,g as q,P as M,i as v,_ as T,A as x,s as H,F as G,r as W}from"./DbZI9bTf.js";import{u as ee}from"./BejcVodc.js";import{_ as I}from"./BK8uS8cB.js";function le(o,r,u){const[n={},l]=typeof r=="string"?[{},r]:[r,u],c=g(()=>y(o)),t=n.key||Z([l,typeof c.value=="string"?c.value:"",...te(n)]);if(!t||typeof t!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+t);const S=t===l?"$f"+t:t;if(!n.baseURL&&typeof c.value=="string"&&c.value[0]==="/"&&c.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:d,lazy:C,default:b,transform:O,pick:L,watch:h,immediate:w,getCachedData:P,deep:R,dedupe:F,...z}=n,p=K({...X,...z,cache:typeof n.cache=="boolean"?void 0:n.cache}),A={server:d,lazy:C,default:b,transform:O,pick:L,immediate:w,getCachedData:P,deep:R,dedupe:F,watch:h===!1?[]:[p,c,...h||[]]};let e;return ee(S,()=>{var a;(a=e==null?void 0:e.abort)==null||a.call(e,new DOMException("Request aborted as another request to the same endpoint was initiated.","AbortError")),e=typeof AbortController<"u"?new AbortController:{};const i=y(n.timeout);let f;return i&&(f=setTimeout(()=>e.abort(new DOMException("Request aborted due to timeout.","AbortError")),i),e.signal.onabort=()=>clearTimeout(f)),(n.$fetch||globalThis.$fetch)(c.value,{signal:e.signal,...p}).finally(()=>{clearTimeout(f)})},A)}function te(o){var u;const r=[((u=y(o.method))==null?void 0:u.toUpperCase())||"GET",y(o.baseURL)];for(const n of[o.params||o.query]){const l=y(n);if(!l)continue;const c={};for(const[t,S]of Object.entries(l))c[y(t)]=y(S);r.push(c)}return r}const ae=["href"],ne=N({__name:"index",props:{active:{type:Boolean},to:{},page:{},small:{type:Boolean}},setup(o){return(r,u)=>{const n=I;return m(),k(n,{inverted:!r.active,small:r.small},{default:B(({classes:l})=>[D("a",{class:E(["is-circle",l]),href:r.to},j(r.page),11,ae)]),_:1},8,["inverted","small"])}}}),se={class:"buttons mobile-only:hidden items-center"},U=1,V=3,ue=N({__name:"index",props:{page:{default:0},totalPages:{default:0},nonSlidingSize:{default:9},getPageLink:{type:Function,default:void 0},isSmall:{type:Boolean,default:!1}},emits:["changePage"],setup(o,{emit:r}){const u=J(),n=Q();function l(e,s){const i=[];if(typeof e!="number"||typeof s!="number")return i;if(e>s){const f=e;e=s,s=f}for(let f=e;f<=s;f++)i.push(f);return i}const c=function(e){const s={...u.query};return e<=0?(delete s.page,{name:u.name,params:u.params,query:s}):{name:u.name,params:u.params,query:{...s,page:e}}},t=o,S=r,d=g(()=>t.totalPages>t.nonSlidingSize),C=g(()=>l(1,d.value?U:t.totalPages)),b=g(()=>C.value[C.value.length-1]),O=g(()=>P.value[0]),L=g(()=>d.value?l(t.totalPages-U+1,t.totalPages):[]),h=g(()=>L.value[0]),w=g(()=>{let e=V/2;return e-=.5,e}),P=g(()=>{if(!d.value)return[];const e=b.value+w.value,s=h.value-w.value;if(t.page<=e)return l(b.value+1,b.value+V);if(t.page>e&&t.page<s){let i=w.value;return l(-w.value+t.page,i+t.page)}return l(h.value-V,h.value-1)}),R=g(()=>d.value?b.value+1!==O.value:!1),F=g(()=>P.value[P.value.length-1]),z=g(()=>d.value?F.value+1!==h.value:!1);function p(e){return t.getPageLink?n.resolve(t.getPageLink(e)).href:n.resolve(c(e)).href}async function A(e){if(!(e.target instanceof HTMLElement||e.target instanceof SVGElement))return;const s=e.target.closest("a");if(!s)return;const i=s.getAttribute("href");i&&(await n.push(i),S("changePage"))}return(e,s)=>{const i=x,f=I,$=ne;return m(),_("div",{class:"pagination flex justify-between",onClickCapture:Y(A,["prevent"])},[q(f,{small:e.isSmall},{default:B(({classes:a})=>[(m(),k(M(e.page>0?v(T):"button"),{href:e.page>0?p(e.page-1):void 0,class:E(a),disabled:e.page===0},{default:B(()=>[q(i,{name:"arrow",class:"transform rotate-180 h-10 w-20 mr-10"}),D("span",null,j(e.$texts("back","Zurück")),1)]),_:2},1032,["href","class","disabled"]))]),_:1},8,["small"]),D("div",se,[(m(!0),_(G,null,W(v(C),a=>(m(),k($,{key:"begin_"+a,page:a,to:p(a-1),active:a-1===e.page,small:e.isSmall},null,8,["page","to","active","small"]))),128)),v(R)?(m(),_("div",{key:0,class:E(["button is-circle bg-transparent pointer-events-none",{"is-narrow":e.isSmall}]),"aria-hidden":"true"}," … ",2)):H("",!0),(m(!0),_(G,null,W(v(P),a=>(m(),k($,{key:"sliding_"+a,page:a,to:p(a-1),active:a-1===e.page,small:e.isSmall},null,8,["page","to","active","small"]))),128)),v(z)?(m(),_("div",{key:1,"aria-hidden":"true",class:E(["button is-circle bg-transparent pointer-events-none",{"is-narrow":e.isSmall}])}," … ",2)):H("",!0),(m(!0),_(G,null,W(v(L),a=>(m(),k($,{key:"ending_"+a,page:a,to:p(a-1),active:a-1===e.page,small:e.isSmall},null,8,["page","to","active","small"]))),128))]),q(f,{small:e.isSmall},{default:B(({classes:a})=>[(m(),k(M(e.page<e.totalPages-1?v(T):"button"),{href:e.page<e.totalPages-1?p(e.page+1):void 0,class:E(a),disabled:e.page>e.totalPages-2},{default:B(()=>[D("span",null,j(e.$texts("continue","Weiter")),1),q(i,{name:"arrow",class:"h-10 w-20 ml-10"})]),_:2},1032,["href","class","disabled"]))]),_:1},8,["small"])],32)}}});function ce(o){return{onChangePage:()=>{if(!o.value||o.value.getBoundingClientRect().y>50)return;o.value.scrollIntoView({behavior:"smooth"});const n=o.value.querySelector("ol li a");n instanceof HTMLElement&&n.focus()}}}export{ue as _,ce as a,le as u};
2//# sourceMappingURL=B5oUItDP.js.map

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.