PageSourceSearch

https://www.nubuk-bikes.de/_nuxt/Di2rvsdz.js

js nubuk-bikes.de collected 2026-10-03 20:01:21 UTC 4,693 bytes, 1 lines download raw bytes

1import{i as N,m as _,aF as T}from"./BenrcST_.js";import{g as $}from"./DhsPGAMI.js";import{d as F,e as o,l as r,G as u,f as d,u as e,i as s,j as a,q as x,C as c,F as L,B as l}from"./C9HqmeuD.js";import{d as V}from"./CitgfWIG.js";import{u as j,z as A}from"./BkfpiHx7.js";import{u as U}from"./BicOqhg4.js";import{u as O}from"./Cpz-_-Sy.js";import{P as b}from"./DxGjlteQ.js";import{e as v}from"./DCAGBlDl.js";const P=["data-testid","disabled"],S={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q=["d"],G=["data-testid"],W={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H=["d"],J={key:0,class:"w-px h-4 bg-gray-300"},K={class:"flex flex-col"},Q=["disabled"],R=["disabled"],X={key:1,class:"w-px h-4 bg-gray-300"},Y={class:"drag-handle top-2 left-2 z-50 cursor-grab p-2 hover:bg-gray-100 rounded-full drag-trigger","aria-label":"Drag to reorder block"},Z={key:3,class:"w-px h-4 bg-gray-300"},tt="Click to edit this block.",p="Change block position.",et="Delete this block.",ot=F({__name:"BlockActions",props:{index:{},block:{},readOnly:{type:Boolean,default:!1},actions:{default:()=>({isEditable:!0,isMovable:!0,isDeletable:!0,classes:["flex","items-center","right-0","top-0","border","border-[#538AEA]","bg-white"],buttonClasses:[],hoverBackground:["hover:bg-gray-100"]})}},emits:["edit","delete","change-position"],setup(m,{emit:y}){const t=m,B=y,{openDrawerWithView:C}=N(),{deleteBlock:E,isLastNonFooterBlock:h,isFirstContentBlock:k}=j(),f=()=>{C("blocksSettings",t.block)},z=()=>{E(t.block.meta.uuid)},I=i=>{const n=document.getElementById(`block-${i}`);n&&(n.scrollIntoView(!0),window.scrollBy(0,-200))};let g;const w=i=>{B("change-position",t.index,i),g&&clearTimeout(g),g=setTimeout(()=>{I(t.index+i)},100)};return(i,n)=>{const M=T;return o(),r("div",{class:u(["absolute","z-[0]","md:z-[1]","lg:z-[40]","space-x-3","p-2","shadow-md",...t.actions?.classes||[],...t.actions?.buttonClasses||[]]),"data-testid":"edit-block-actions"},[t.actions.isEditable?(o(),d(e(b),{key:1,label:tt,placement:"left","show-arrow":!0},{default:s(()=>[a("button",{class:u(["text-black","p-1","rounded","no-drag",...t.actions?.hoverBackground||[]]),"data-testid":`${t.block.name}-open-editor-button`,"aria-label":"editor button",onClick:x(f,["stop"])},[c(e(_),{size:"xs",viewBox:"0 0 18 18",class:"fill-primary-900 cursor-pointer"},{default:s(()=>[(o(),r("svg",W,[a("path",{d:e(v),fill:"black"},null,8,H)]))]),_:1})],10,G)]),_:1})):(o(),d(e(b),{key:0,label:("getEditorUITranslation"in i?i.getEditorUITranslation:e($))("block-edit-homepage-only",{blockName:t.block.name.toLowerCase()}),placement:"left",class:"flex"},{default:s(()=>[a("button",{class:u(["text-black hover:bg-gray-100 rounded no-drag p-1",{"opacity-40 cursor-not-allowed":!t.actions.isEditable}]),"data-testid":`${t.block.name}-open-editor-button`,"aria-label":"editor button",disabled:!t.actions.isEditable,onClick:x(f,["stop"])},[c(e(_),{size:"xs",viewBox:"0 0 18 18",class:"fill-primary-900"},{default:s(()=>[(o(),r("svg",S,[a("path",{d:e(v),fill:"black"},null,8,q)]))]),_:1})],10,P)]),_:1},8,["label"])),t.readOnly?l("",!0):(o(),r(L,{key:2},[t.actions.isMovable?(o(),r("div",J)):l("",!0),a("div",K,[t.actions.isMovable?(o(),d(e(b),{key:0,label:p,placement:"left","show-arrow":!0},{default:s(()=>[a("button",{class:u(["flex items-center justify-center h-[18px] text-black hover:bg-gray-100 rounded no-drag",{"opacity-40 cursor-not-allowed":e(k)(t.index)}]),"data-testid":"move-up-button","aria-label":"move up button",disabled:e(k)(t.index),onClick:n[0]||(n[0]=D=>w(-1))},[c(e(U))],10,Q)]),_:1})):l("",!0),t.actions.isMovable?(o(),d(e(b),{key:1,label:p,placement:"bottom","show-arrow":!0},{default:s(()=>[a("button",{class:u(["flex items-center justify-center h-[18px] text-black hover:bg-gray-100 rounded no-drag",{"opacity-40 cursor-not-allowed":e(h)(m.index)}]),"data-testid":"move-down-button","aria-label":"move down button",disabled:e(h)(m.index),onClick:n[1]||(n[1]=D=>w(1))},[c(e(O))],10,R)]),_:1})):l("",!0)]),t.actions.isMovable?(o(),r("div",X)):l("",!0),t.actions.isMovable?(o(),d(e(b),{key:2,label:p,placement:"bottom","show-arrow":!0},{default:s(()=>[a("button",Y,[c(M,{width:"18",height:"18",src:e(V)},null,8,["src"])])]),_:1})):l("",!0),t.actions.isDeletable?(o(),r("div",Z)):l("",!0),t.actions.isDeletable?(o(),d(e(b),{key:4,label:et,placement:"bottom","show-arrow":!0},{default:s(()=>[a("button",{class:"text-black hover:bg-gray-100 p-1 rounded no-drag","aria-label":"delete block button","data-testid":"delete-block-button",onClick:z},[c(e(A))])]),_:1})):l("",!0)],64))],2)}}}),ut=Object.assign(ot,{__name:"UiBlockActions"});export{ut as _};

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.