PageSourceSearch

https://discoverly.gr/assets/media-qM1j6Xkl.js

js discoverly.gr collected 2026-10-09 22:02:26 UTC 1,922 bytes, 1 lines download raw bytes

1import{i as e,r as t,t as n}from"./auth-middleware-BiVFu8JO.js";import{n as r}from"./client-Cwkc3AX0.js";import{t as i}from"./queryOptions-Dfvzj6n2.js";var a=t({method:`POST`}).handler(e(`0f5e6b943b22173b00977785181d14e4e3fee1afcdd06e4b17513ac51c8f68f2`)),o=t({method:`POST`}).middleware([n]).handler(e(`f7afb2bf718f4b6dc2cf1aeae466346647ec2130eec5f6a2f4f136e27359189a`)),s=t({method:`POST`}).middleware([n]).handler(e(`bbe7f7a90ac989f8f1b213e824192e1bec6d8651bfc693a64b50ffe172a4a2be`)),c=t({method:`POST`}).middleware([n]).handler(e(`e82abbd4a5275a254c9416032fce61a473aa3d132f50240e21a020850848b75f`)),l=600,u=`id, restaurant_id, url, storage_path, sort_order, is_cover, source, created_at, media_type, mux_playback_id, duration_seconds, video_status, reject_reason, thumbnail_time, focal_x, focal_y`;async function d(e){return e?(await f([e]))[e]??null:null}async function f(e){let t=[...new Set(e.filter(Boolean))];if(t.length===0)return{};try{return await a({data:{paths:t}})}catch(e){return console.error(`[media] signing failed`,e),{}}}var p=e=>i({queryKey:[`venue-media-url`,e],enabled:!!e,staleTime:l*900,queryFn:()=>d(e)});function m(e,t,n){return`https://image.mux.com/${e}/thumbnail.webp?time=${t??1}${n?`&width=${n}`:``}`}function h(e,t){return{objectPosition:`${e??50}% ${t??50}%`}}var g=e=>i({queryKey:[`venue-images`,e],enabled:!!e,queryFn:async()=>{let{data:t,error:n}=await r.from(`venue_images`).select(u).eq(`restaurant_id`,e).order(`sort_order`,{ascending:!0});if(n)throw n;return _(t??[])}});async function _(e){let t=await f(e.map(e=>e.storage_path).filter(Boolean));return e.map(e=>({...e,display_url:e.media_type===`video`?e.mux_playback_id?m(e.mux_playback_id,e.thumbnail_time):null:(e.storage_path?t[e.storage_path]:null)??(e.url&&/^https?:\/\//.test(e.url)?e.url:null)})).filter(e=>e.media_type===`video`||!!e.display_url)}export{p as a,s as c,f as i,o as l,_ as n,g as o,m as r,c as s,h as t};

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.