1import{_ as d,o as l,a as s,b as h,d as T,F as m,a2 as v,g as w,n as x,r as A,w as X,c as Z,I as D,k as e}from"./CNB_PrB2.js";import{b as E}from"./zc4jajfm.js";const Y={},N={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",class:""};function R(r,t){return l(),s("svg",N,[...t[0]||(t[0]=[h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.25 6C3.25 5.58579 3.58579 5.25 4 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H4C3.58579 6.75 3.25 6.41421 3.25 6ZM3.25 10C3.25 9.58579 3.58579 9.25 4 9.25H9C9.41421 9.25 9.75 9.58579 9.75 10C9.75 10.4142 9.41421 10.75 9 10.75H4C3.58579 10.75 3.25 10.4142 3.25 10Z"},null,-1)])])}const z=d(Y,[["render",R]]),F={},G={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16"};function L(r,t){return l(),s("svg",G,[...t[0]||(t[0]=[h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.25 6C3.25 5.58579 3.58579 5.25 4 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H4C3.58579 6.75 3.25 6.41421 3.25 6ZM5.5 9.25C5.08579 9.25 4.75 9.58579 4.75 10C4.75 10.4142 5.08579 10.75 5.5 10.75H10.5C10.9142 10.75 11.25 10.4142 11.25 10C11.25 9.58579 10.9142 9.25 10.5 9.25H5.5Z"},null,-1)])])}const P=d(F,[["render",L]]),W={},j={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16"};function q(r,t){return l(),s("svg",j,[...t[0]||(t[0]=[h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.75 6C12.75 5.58579 12.4142 5.25 12 5.25H4C3.58579 5.25 3.25 5.58579 3.25 6C3.25 6.41421 3.58579 6.75 4 6.75H12C12.4142 6.75 12.75 6.41421 12.75 6ZM12.75 10C12.75 9.58579 12.4142 9.25 12 9.25H7C6.58579 9.25 6.25 9.58579 6.25 10C6.25 10.4142 6.58579 10.75 7 10.75H12C12.4142 10.75 12.75 10.4142 12.75 10Z"},null,-1)])])}const J=d(W,[["render",q]]),K=["onClick"],C=33,_=8,y=6,O=T({__name:"TextAlignSwitcher",props:{modelValue:{},alwaysVisible:{type:Boolean},offsetY:{},offsetX:{},anchor:{}},emits:["update:modelValue","changeEnd"],setup(r,{emit:t}){const n=r,f=t,p=e(()=>n.alwaysVisible===!0),i=e(()=>typeof n.offsetY=="number"?n.offsetY:-10),c=e(()=>typeof n.offsetX=="number"?n.offsetX:0),$=e(()=>n.anchor==="top-left"?"anchor-top-left":"anchor-top-right"),u=e(()=>[{key:"left",value:"left",icon:z},{key:"center",value:"center",icon:P},{key:"right",value:"right",icon:J}]),b=e(()=>{const o=Math.max(0,u.value.findIndex(a=>a.value===n.modelValue));return{transform:`translateX(${y+o*(C+_)}px)`}}),k=e(()=>{const o={top:`${i.value}px`};return n.anchor==="top-left"?o.left=`${c.value}px`:o.right=`${c.value}px`,o});function H(o){f("update:modelValue",o),f("changeEnd",o)}const M=e(()=>i.value<0&&!p.value),V=e(()=>y*2+C*u.value.length+_*Math.max(0,u.value.length-1)),S=e(()=>({top:`${i.value}px`,width:`${V.value}px`,height:`${Math.abs(i.value)}px`,right:n.anchor==="top-right"?`${c.value}px`:"auto",left:n.anchor==="top-left"?`${c.value}px`:"auto"})),B=E(),g=e(()=>B.value>=1024);return(o,I)=>(l(),s(m,null,[g.value&&M.value?(l(),s("div",{key:0,class:"hover-bridge",style:v(S.value),"aria-hidden":"true"},null,4)):w("",!0),g.value?(l(),s("div",{key:1,class:x(["textalign-switcher-overlay",[$.value,{visible:p.value}]]),style:v(k.value),role:"group","aria-label":"Text alignment switcher"},[h("div",{class:"switcher-indicator",style:v(b.value),"aria-hidden":"true"},null,4),(l(!0),s(m,null,A(u.value,a=>(l(),s("button",{key:a.key,class:x(["switcher-item",{active:a.value===r.modelValue}]),type:"button","data-controls-section":"none",onClick:X(Q=>H(a.value),["stop","prevent"])},[(l(),Z(D(a.icon),{class:"icon"}))],10,K))),128))],6)):w("",!0)],64))}}),te=d(O,[["__scopeId","data-v-65c9db6b"]]);export{te 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.