1import{_ as Y,u as Z}from"./B75ndYjh.js";import{_ as Q}from"./CHys53QJ.js";import{r as q,K as ee,D as te,d as oe,J as ae,O as l,m as i,j as e,F as I,W as C,E as se,a4 as a,a1 as r,o as R,p as ne,l as T,V as A,i as W,e as U,ac as le,q as w,ad as K,c as ie}from"./CwlHCYLf.js";import{_ as re,u as L}from"./BYbddIDe.js";import"./UCylVbT1.js";const ce={class:"book-wrap"},de={class:"book-bookmarks"},_e=["onClick"],me={class:"book-stage"},pe={class:"book-shadow"},ue={class:"book-page__inner"},ve={class:"book-page__title"},be={key:0,class:"book-page__cont"},ge={class:"book-page__items"},ke={class:"book-item__num"},he={class:"book-item__body"},fe={class:"book-item__name"},xe={key:0,class:"book-item__note"},ye={class:"book-page__num"},H=300,we=560/380,Ie=.92,Ce=q({__name:"TawernaBook",props:{menu:{}},setup(O){const v=O,E=["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV"],s=A([]);function N(c,o){const t=u=>(o&&u.setAttribute(o,""),u),d=document.createElement("div");d.style.cssText=`position:fixed; left:-9999px; top:0; width:${H}px; visibility:hidden;`,document.body.appendChild(d);const m=t(document.createElement("div"));m.className="book-page",m.style.width=`${H}px`,m.style.height=`${Math.round(H*we)}px`;const x=t(document.createElement("div"));x.className="book-page__inner";const B=t(document.createElement("p"));B.className="book-page__eyebrow",B.textContent="Tawerna CaryÅska";const S=t(document.createElement("h3"));S.className="book-page__title",S.textContent="Kategoria";const j=t(document.createElement("div"));j.className="book-page__rule";const y=t(document.createElement("div"));y.className="book-page__items";const z=t(document.createElement("p"));z.className="book-page__num",z.textContent="1",x.append(B,S,j,y,z),m.appendChild(x),d.appendChild(m);const G=y.getBoundingClientRect().height*Ie;function J(u){y.replaceChildren();const p=t(document.createElement("div"));p.className="book-item";const g=t(document.createElement("span"));g.className="book-item__num",g.textContent="I.";const k=t(document.createElement("div"));k.className="book-item__body";const h=t(document.createElement("p"));if(h.className="book-item__name",h.textContent=u.name,k.appendChild(h),u.note){const f=t(document.createElement("p"));f.className="book-item__note",f.textContent=u.note,k.appendChild(f)}return p.append(g,k),y.appendChild(p),p.getBoundingClientRect().height}const D=[];for(const u of c){let p=[],g=0,k=!1;const h=()=>{p.length&&(D.push({category:u.category,items:p,continued:k}),k=!0,p=[],g=0)};for(const f of u.items){const M=J(f);p.length&&g+M>G&&h(),p.push(f),g+=M}h()}return document.body.removeChild(d),D}const $=W(()=>s.value.length),V=W(()=>{const c=v.menu.map(o=>({category:o.category,flipIndex:s.value.findIndex(t=>t.category===o.category&&!t.continued)+1}));return c.map((o,t)=>({...o,end:t+1<c.length?c[t+1].flipIndex-1:$.value}))}),b=A(null),n=A(0);let _=null;ee(async()=>{const c=b.value?[...b.value.attributes].find(t=>t.name.startsWith("data-v-"))?.name:void 0;if(s.value=N(v.menu,c),await te(),!b.value)return;const{PageFlip:o}=await oe(async()=>{const{PageFlip:t}=await import("./C5HZGPE-.js").then(d=>d.p);return{PageFlip:t}},[],import.meta.url);_=new o(b.value,{width:380,height:560,size:"stretch",minWidth:280,maxWidth:560,minHeight:420,maxHeight:820,maxShadowOpacity:.4,showCover:!0,mobileScrollSupport:!1,usePortrait:!0,flippingTime:700}),_.loadFromHTML(b.value.querySelectorAll(".book-page")),n.value=_.getCurrentPageIndex(),_.on("flip",t=>{n.value=t.data})}),ae(()=>{_?.destroy()});function P(c){_?.turnToPage(c)}function X(){_?.flipPrev()}function F(){_?.flipNext()}return(c,o)=>(l(),i("div",ce,[e("nav",de,[(l(!0),i(I,null,C(a(V),t=>(l(),i("button",{key:t.category,type:"button",class:se(["bookmark",{"bookmark--active":a(n)>=t.flipIndex&&a(n)<=t.end}]),onClick:d=>P(t.flipIndex)},r(t.category),11,_e))),128))]),e("div",me,[e("button",{type:"button",class:"book-arrow book-arrow--prev","aria-label":"Poprzednia strona",onClick:X},"â¹"),e("div",pe,[o[4]||(o[4]=e("div",{class:"book-spine"},null,-1)),e("div",{ref_key:"bookEl",ref:b,class:"book"},[o[2]||(o[2]=R('<div class="book-page book-cover" data-density="hard" data-v-f354b652><div class="book-cover__inner" data-v-f354b652><p class="book-cover__eyebrow" data-v-f354b652>PrzystaÅ CaryÅska</p><div class="book-cover__ornament" data-v-f354b652>â¦</div><h2 class="book-cover__title" data-v-f354b652>Karta<br data-v-f354b652><em data-v-f354b652>DaÅ</em></h2><div class="book-cover__rule" data-v-f354b652></div><p class="book-cover__sub" data-v-f354b652>
1Tawerna</p></div></div>',1)),(l(!0),i(I,null,C(a(s),(t,d)=>(l(),i("div",{key:d,class:"book-page","data-density":"soft"},[e("div",ue,[o[0]||(o[0]=e("p",{class:"book-page__eyebrow"},"Tawerna CaryÅska",-1)),e("h3",ve,[ne(r(t.category),1),t.continued?(l(),i("span",be," â c.d.")):T("",!0)]),o[1]||(o[1]=e("div",{class:"book-page__rule"},null,-1)),e("div",ge,[(l(!0),i(I,null,C(t.items,(m,x)=>(l(),i("div",{key:m.name,class:"book-item"},[e("span",ke,r(E[x])+".",1),e("div",he,[e("p",fe,r(m.name),1),m.note?(l(),i("p",xe,r(m.note),1)):T("",!0)])]))),128))]),e("p",ye,r(d+1),1)])]))),128)),o[3]||(o[3]=R('<div class="book-page book-cover book-cover--back" data-density="hard" data-v-f354b652><div class="book-cover__inner" data-v-f354b652><div class="book-cover__ornament" data-v-f354b652>â¦</div><p class="book-cover__closing" data-v-f354b652>Smacznego!</p><div class="book-cover__rule" data-v-f354b652></div><p class="book-cover__eyebrow" data-v-f354b652>Tawerna CaryÅska</p></div></div>',1))],512)]),e("button",{type:"button",class:"book-arrow book-arrow--next","aria-label":"NastÄpna strona",onClick:F},"âº")])]))}}),Ee=Object.assign(U(Ce,[["__scopeId","data-v-f354b652"]]),{__name:"TawernaBook"}),Ne={key:0,class:"relative overflow-hidden"},Te={class:"bg-forest"},$e={class:"tawerna-light"},Ve={class:"max-w-2xl mx-auto px-8 pt-16 pb-2 text-center"},Pe={class:"font-display italic text-lg leading-relaxed text-stone"},Xe={class:"tawerna-delivery"},Fe={class:"max-w-3xl mx-auto px-8 py-16 text-center"},Be={class:"section-eyebrow mb-4"},Se={class:"font-display italic text-base text-stone mb-10"},ze={class:"flex flex-col sm:flex-row flex-wrap items-center justify-center gap-4"},Ae=["href"],He=["href"],Oe={class:"max-w-5xl mx-auto pb-28 px-6 lg:px-12 pt-10"},je={class:"flex flex-col gap-16"},De={class:"mb-10"},Me={class:"section-title"},Re={class:"menu-item__num"},We={class:"flex-1 min-w-0"},Ke={class:"menu-item__name"},Le={key:0,class:"menu-item__note"},qe=q({__name:"tawerna",async setup(O){let v,E;const[{data:s},{data:N}]=([v,E]=le(()=>Promise.all([L("/api/tawerna","$sLlmMfBX6N"),L("/api/content","$a0N23wbPub")])),v=await v,E(),v),$=Z(),V=["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV"];return(b,n)=>{const _=Y,P=Q,X=Ee,F=ie,c=re;return a(s)&&a(N)?(l(),i("main",Ne,[n[4]||(n[4]=e("div",{class:"pointer-events-none fixed inset-0 z-10 opacity-[0.025]",style:{"background-image":"url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22300%22 height=%22300%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.75%22 numOctaves=%224%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22/%3E%3C/svg%3E')"}},null,-1)),e("div",Te,[w(_,{nav:a($),"always-show-logo":!0,overlay:!1},null,8,["nav"]),w(P,{tag:a(s).hero.tag,title:a(s).hero.title,image:a(s).hero.image},null,8,["tag","title","image"])]),e("div",$e,[e("div",Ve,[e("p",Pe,r(a(s).intro),1)]),n[3]||(n[3]=e("div",{class:"flex items-center justify-center gap-4 py-10 px-8"},[e("div",{class:"flex-1 max-w-xs h-px bg-gold-muted"}),e("div",{class:"w-1.5 h-1.5 rotate-45 bg-gold-strong"}),e("div",{class:"flex-1 max-w-xs h-px bg-gold-muted"})],-1)),e("div",Xe,[e("div",Fe,[e("p",Be,r(a(s).delivery.title),1),e("p",Se,r(a(s).delivery.body),1),e("div",ze,[n[0]||(n[0]=e("a",{href:"https://carynska.app-tapporder.ngastro.lsisoftware.net/zpc-skorka-spolka-jawna/products?group=af95-0528-1b1b-4b7a",target:"_blank",rel:"noopener",class:"btn-gold"}," ð Zamów pizzÄ ",-1)),e("a",{href:`tel:${a(s).delivery.phone.replace(/\s/g,"")}`,class:"btn-outline"},r(a(s).delivery.phone),9,Ae),e("a",{href:`mailto:${a(s).contact.email}`,class:"btn-outline"},r(a(s).contact.email),9,He)])])]),e("div",Oe,[w(F,null,{fallback:K(()=>[e("div",je,[(l(!0),i(I,null,C(a(s).menu,o=>(l(),i("div",{key:o.category},[e("div",De,[n[1]||(n[1]=e("p",{class:"section-eyebrow"},"Tawerna CaryÅska",-1)),e("h2",Me,r(o.category),1),n[2]||(n[2]=e("div",{class:"flex items-center gap-3 mt-5"},[e("div",{class:"w-10 h-px bg-gold-strong/50"}),e("div",{class:"w-1 h-1 rotate-45 bg-gold-strong/60 flex-shrink-0"}),e("div",{class:"flex-1 h-px bg-gold-muted"})],-1))]),e("div",null,[(l(!0),i(I,null,C(o.items,(t,d)=>(l(),i("div",{key:t.name,class:"menu-item group"},[e("span",Re,r(V[d])+".",1),e("div",We,[e("p",Ke,r(t.name),1),t.note?(l(),i("p",Le,r(t.note),1)):T("",!0)])]))),128))])]))),128))])]),default:K(()=>[w(X,{menu:a(s).menu},null,8,["menu"])]),_:1})])]),w(c,{data:a(N).kontakt},null,8,["data"])])):T("",!0)}}}),Qe=U(qe,[["__scopeId","data-v-f112addf"]]);export{Qe 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.