PageSourceSearch

https://washbistro.com/_nuxt/CHagb0BS.js

js washbistro.com collected 2026-10-05 07:00:12 UTC 6,767 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./65MtO8fA.js","./WRyiheJW.js","./CRcD7-OL.js","./entry.B3OpC3pH.css","./BaseModal.CfRfiqKU.css","./DPOWLepG.js"])))=>i.map(i=>d[i]);
2import{d as z,j as c,o as a,c as n,a as k,u as e,b as B,T as x,G as R,B as J,F as h,_ as $,g as M,h as K,e as D,s as v,K as Z,t as w,w as Q,a1 as W,k as V,a4 as X,a8 as ee,H as oe,I as te,r as ae,a0 as se}from"./CRcD7-OL.js";import{_ as re}from"./BgPzu36z.js";import{_ as le}from"./6f_Cidi0.js";import{G as g}from"./BdQudauI.js";import{a as ne}from"./DhXgJQ-f.js";import{u as ie,H as P}from"./CQnfphs_.js";import{u as ce}from"./CAJNaXhZ.js";import"./AXXv7PeY.js";const de={class:"position-relative"},pe=["width","height"],ue=["cx","cy","stroke","stroke-width","r","stroke-dashoffset","stroke-dasharray"],me={key:0},be=z({__name:"CircleProgressBar",props:{progress:{default:0},color:{default:"var(--color-primary)"},width:{default:50},strokeWidth:{default:2},fontSize:{default:13}},setup(d){const p=d,s=c(()=>p.progress>=100),u=c(()=>(p.width-p.strokeWidth)/2),y=c(()=>{const o=Math.PI*(u.value*2);return(100-Math.max(0,Math.min(100,p.progress)))/100*o});return(o,i)=>(a(),n("div",de,[(a(),n("svg",{class:"wb-circle-progressbar",width:o.width,height:o.width},[k("circle",{cx:o.width/2,cy:o.width/2,stroke:o.color,"stroke-width":o.strokeWidth,r:e(u),"stroke-dashoffset":e(y),"stroke-dasharray":Math.PI*e(u)*2,fill:"none"},null,8,ue)],8,pe)),k("div",{class:"progressText",style:h({fontSize:`${o.fontSize}px`})},[B(x,{name:"bounce",mode:"out-in"},{default:R(()=>[e(s)?(a(),n("i",{key:1,style:h({color:o.color,fontSize:`${o.fontSize+3}px`}),class:"ti ti-check"},null,4)):(a(),n("span",me,J(o.progress)+"%",1))]),_:1})],4)]))}}),ye=$(be,[["__scopeId","data-v-c1efc715"]]),fe=z({__name:"GalleryBlockItem",props:{photo:{},block:{},galleryId:{}},emits:["remove"],setup(d,{emit:p}){const s=d,u=p,y=M(),o=K(),i=c(()=>s.block.data.type);c(()=>i.value===void 0);const m=c(()=>s.block.data.thumbFull?s.photo.url:s.photo.thumb),C=c(()=>({"--wb-gallery-border-radius":s.block.data.borderRadius!==void 0?s.block.data.borderRadius:void 0})),S=c(()=>i.value===g.GRID_COVER?{paddingTop:"100%",backgroundImage:m.value?`url(${m.value})`:"none",backgroundPosition:"center center",backgroundSize:"cover",borderRadius:s.block.data.borderRadius!==void 0?`${s.block.data.borderRadius}px`:void 0}:i.value===g.GRID_CONTAIN?{paddingTop:"100%"}:[]);return(r,b)=>{const E=ye,T=le;return a(),n("div",{class:"position-relative wbgWrapper",style:h(e(C))},[e(y).editing&&e(y).editingToolsVisible?(a(),n("button",{key:0,class:"btn btn-sm btn-danger rBtn position-absolute",onClick:b[0]||(b[0]=L=>u("remove"))}," × ")):D("",!0),(a(),v(Z(r.galleryId?"a":"div"),{href:r.galleryId?r.photo.url:void 0,"data-fancybox":r.galleryId,class:w(["position-relative d-flex align-items-center justify-content-center wb-Gallery__item",[...e(o).animationClasses,r.block.data.hoverEffect===void 0?void 0:"wb-Gallery__item--e-"+r.block.data.hoverEffect]]),style:h([e(S),{cursor:e(y).editing?"move":void 0}])},{default:R(()=>[r.photo.uploading?(a(),n("div",{key:0,class:w({wrapperContain:[e(g).GRID_COVER,e(g).GRID_CONTAIN].includes(e(i))})},[B(E,{progress:Math.floor(r.photo.progress||0)},null,8,["progress"])],2)):(a(),n("div",{key:1,class:w({wrapperContain:e(i)===e(g).GRID_CONTAIN})},[e(i)!==e(g).GRID_COVER&&e(m)?(a(),v(T,{key:0,class:"wb-Gallery__img",src:e(m),alt:r.photo.alt,loading:"lazy",format:e(m).endsWith(".webp")?"webp":void 0},null,8,["src","alt","format"])):D("",!0)],2))]),_:1},8,["href","data-fancybox","class","style"]))],4)}}}),F=$(fe,[["__scopeId","data-v-3d3e3851"]]),ke=se(()=>W(()=>import("./65MtO8fA.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(d=>d.default||d)),he={key:1},_e=z({__name:"GalleryBlock",props:{block:{}},async setup(d,{expose:p}){let s,u;const{Sortable:y}=([s,u]=Q(()=>W(()=>import("./DPOWLepG.js"),__vite__mapDeps([5,2,3]),import.meta.url)),s=await s,u(),s),o=d,i=V();function m(){i.value&&i.value.click()}const C=c(()=>{if(o.block.data.viewer!==!1)return o.block.data.id||X()});p({upload:m,galleryId:C});const S=M(),r=ie(),b=V(),E=c(()=>b.value?Array.from(b.value.querySelectorAll(".wb-Gallery__item")):[]),{runAnimation:T}=ce(b);T(E);const L=c(()=>({gridGap:`${o.block.data.gap===void 0?15:o.block.data.gap}px`})),O=c(()=>"wb-block-Gallery__grid--"+(o.block.data.perRow||5));function U(t){const l=o.block.data.photos.splice(t.oldIndex,1)[0];o.block.data.photos.splice(t.newIndex,0,l),r.saveLocal({action:P.UPDATE_GALLERY})}function H(t){o.block.data.photos.splice(t,1),r.saveLocal({action:P.REMOVE_GALLERY_ITEM})}async function Y(t){const l=ae({id:o.block.data.photos.reduce((f,_)=>Math.max(f,_.id+1),1),alt:t.name,uploading:!0,progress:0});o.block.data.photos.push(l);const I=new FormData;I.append("file",t),I.append("thumbnail","true");const{data:A}=await ne.post("/api/upload/image",I,{onUploadProgress:f=>{l.progress=f.loaded/(f.total||1)*100}});return l.thumb=A.thumbnailLocation,l.url=A.location,l.uploading=!1,l}async function N(t){await Promise.all(t.map(l=>Y(l))),r.saveLocal({action:P.UPDATE_GALLERY})}function j(t){N(Array.from(t.target.files))}return(t,l)=>{const I=ke,A=re;return a(),v(A,{element:e(b),block:t.block},{default:R(f=>[k("div",ee({ref_key:"element",ref:b,class:"wb-block-Gallery"},t.$attrs,{class:[f.classes],style:[f.styles]}),[k("div",{class:w(t.block.data.size==="full"?"":"container")},[e(S).editing?(a(),n("input",{key:0,ref_key:"fileInput",ref:i,type:"file",onChange:j,multiple:"",style:{display:"none",visibility:"hidden"}},null,544)):D("",!0),e(S).editing?(a(),n("div",he,[B(I,{onFilesDropped:N,"file-types":["images"]},{default:R(({isDropZoneActive:_})=>[k("div",{style:h({boxShadow:_&&t.block.data.photos.length===0?"0 0 20px rgba(0,0,0,0.2) inset":""})},[t.block.data.photos.length===0?(a(),n("div",{key:0,class:"text-center p-5",onClick:m,style:{cursor:"pointer"}},l[0]||(l[0]=[k("div",{class:"mb-3"},"Drop images here.",-1),k("i",{style:{"font-size":"30px"},class:"ti ti-cloud-upload"},null,-1)]))):(a(),v(e(y),{options:{animation:150},key:JSON.stringify(t.block.data.photos.map(G=>
2G.id)),list:t.block.data.photos,"item-key":"id",tag:"div",onEnd:U,class:w(["wb-block-Gallery__grid",e(O)]),style:h(e(L))},{item:R(({element:G,index:q})=>[G?(a(),v(F,{key:G.id,photo:G,block:t.block,onRemove:ge=>H(q)},null,8,["photo","block","onRemove"])):D("",!0)]),_:1},8,["list","class","style"]))],4)]),_:1})])):(a(),n("div",{key:2,class:w(["wb-block-Gallery__grid",e(O)]),style:h(e(L))},[(a(!0),n(oe,null,te(t.block.data.photos,_=>(a(),v(F,{key:_.id,photo:_,block:t.block,"gallery-id":e(C)},null,8,["photo","block","gallery-id"]))),128))],6))],2)],16)]),_:1},8,["element","block"])}}}),De=$(_e,[["__scopeId","data-v-f5b7480a"]]);export{De 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.