PageSourceSearch

https://zapstore.dev/_app/immutable/chunks/y2oITRkH.js

js zapstore.dev collected 2026-10-02 05:47:55 UTC 1,814 bytes, 1 lines download raw bytes

1import"./DsnmJJEf.js";import{p as L,ai as c,s as S,g as u,aj as p,t as f,b as s,a as T,u as w,c as v}from"./CqdofoQ-.js";import{d as V}from"./CkyITBGu.js";import{i as y}from"./D30W1NbC.js";import{b as W,s as n}from"./Bj9aOFy-.js";import{p as i}from"./DqLZyMOh.js";import{C as Y}from"./DXnKL-nx.js";var q=v('<button type="button" class="media-remove-btn svelte-1r3emwz" aria-label="Remove media"><!></button>'),A=v('<video class="media-element svelte-1r3emwz" controls preload="metadata" playsinline="">Your browser does not support the video tag.</video>',2),F=v('<img class="media-element svelte-1r3emwz" alt="" loading="lazy"/>'),G=v('<div class="media-block-wrap svelte-1r3emwz"><!> <div><!></div></div>');function U(h,r){L(r,!0);function z(e){if(!e)return"image";const o=String(e).toLowerCase();return/\.(mp4|webm|ogg|mov)(\?|$)/.test(o)||o.includes("video")?"video":"image"}let l=i(r,"url",3,""),C=i(r,"type",3,null),t=i(r,"removable",3,!1),M=i(r,"onRemove",3,()=>{}),P=i(r,"onClick",3,()=>{});const b=w(()=>C()??z(l())),R=w(()=>u(b)==="video");function _(e){t()||(e?.stopPropagation?.(),P()?.({url:l(),type:u(b)}))}function x(e){e.stopPropagation(),M()?.()}var m=G(),k=c(m);{var j=e=>{var o=q();o.__click=x;var d=c(o);Y(d,{variant:"outline",color:"var(--white66)",size:14,strokeWidth:2}),p(o),s(e,o)};y(k,e=>{t()&&e(j)})}var a=S(k,2);let g;a.__click=_,a.__keydown=e=>{!t()&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),_())};var B=c(a);{var D=e=>{var o=A();o.__click=d=>t()&&d.stopPropagation(),f(()=>n(o,"src",l())),s(e,o)},E=e=>{var o=F();f(()=>n(o,"src",l())),s(e,o)};y(B,e=>{u(R)?e(D):e(E,!1)})}p(a),p(m),f(()=>{g=W(a,1,"media-block svelte-1r3emwz",null,g,{removable:t(),clickable:!t()}),n(a,"role",t()?null:"button"),n(a,"tabindex",t()?null:0)}),s(h,m),T()}V(["click","keydown"]);export{U as M};

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.