1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/chunk-B8bmgvByGxyL-inico.js","assets/chunks/chunk-CbxWxWTmB1rb-intoo.js","assets/chunks/chunk-BVARF2Uuihnv-custo.js","assets/chunks/chunk-C9MwVHZDj8F9-rende.js","assets/chunks/chunk-BY8-DUITmgGY-_onpa.js"])))=>i.map(i=>d[i]); 2import{aN as y,at as r,cI as T,bV as I,d1 as u,cO as i,aC as c,az as d,aA as k,aI as P,dV as F,F as z,c_ as G,d3 as A,cs as L,dF as m,cz as w,c4 as E,aM as N,_ as O}from"./chunk-C9MwVHZDj8F9-rende.js";import{u as $}from"./chunk-BVARF2Uuihnv-custo.js";import{_ as h}from"./chunk-BY8-DUITmgGY-_onpa.js";/* empty css */const D={class:"form-button-grid"},M=y({__name:"FormButtonGrid",props:{modelValue:{default:void 0},label:{default:"Options"},buttons:{default:()=>[]},useTextButtons:{type:Boolean,default:!1},mandatory:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(p,{emit:f}){const _=N(()=>O(()=>import("./chunk-B8bmgvByGxyL-inico.js"),__vite__mapDeps([0,1,2,3,4]))),e=p,v=f,{input:a}=$(e,v),B=r(()=>e.useTextButtons?"InTextButton":_),C=r(()=>e.useTextButtons?"large":24),b=r(()=>({"text-only":e.useTextButtons})),g=r(()=>e.useTextButtons?"text-button":"icon-button"),x=t=>{const o=["play_arrow","fast_forward"],s=t.icon&&o.includes(t.icon)?"icon-filled":"",l={value:t.value,title:t.title,icon:t.icon,text:t.text,size:C.value,class:["button-grid-item",g.value,...t.class?[t.class]:[],...s?[s]:[]],...t.buttonProps?t.buttonProps:{}};return e.useTextButtons||(l.tooltipProps={location:"bottom",interactive:!1,contentClass:"dark-bg"},l.tooltipText=t.title),l};return T(()=>{var t;if(a.value&&((t=e.buttons)!=null&&t.length)){const o=e.buttons.find(s=>s.value===a.value);o&&I(o.action)&&o.action(a.value)}}),(t,o)=>{const s=u("VLabel"),l=u("VBtnToggle");return i(),c("div",D,[t.label?(i(),d(s,{key:0,text:t.label,class:"button-grid-label v-editor-field-label"},null,8,["text"])):k("",!0),P(l,{modelValue:m(a),"onUpdate:modelValue":o[0]||(o[0]=n=>E(a)?a.value=n:null),color:"secondary",class:w(["button-grid",b.value]),mandatory:t.mandatory},{default:F(()=>[(i(!0),c(z,null,G(t.buttons,(n,V)=>(i(),d(A(B.value),L({key:`${n}-${V}`,ref_for:!0},x(n),{onClick:R=>n.action&&n.action(m(a))}),null,16,["onClick"]))),128))]),_:1},8,["modelValue","class","mandatory"])])}}}),H=h(M,[["__scopeId","data-v-a8135e5f"]]);export{H 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.