PageSourceSearch

https://xmacna.ai/_nuxt/Cw8iTAvs.js

js xmacna.ai collected 2026-10-05 13:23:54 UTC 3,335 bytes, 1 lines download raw bytes

1import{a8 as q,a as B,d as I,b as s,o as n,e as d,f as u,y as V,ab as A,m as j,n as t,r as g,g as b,t as m,i as N,j as h,k as y,l as O,p as D,q as p}from"./Bcc8-a-q.js";import{u as F}from"./CdE3OqS9.js";import{u as M}from"./BZqjWkfA.js";const U=q,z={wrapper:"relative flex items-start",container:"flex items-center h-5",base:"h-4 w-4 dark:checked:bg-current dark:checked:border-transparent dark:indeterminate:bg-current dark:indeterminate:border-transparent disabled:opacity-50 disabled:cursor-not-allowed focus:ring-0 focus:ring-transparent focus:ring-offset-transparent",form:"form-checkbox",rounded:"rounded",color:"text-{color}-500 dark:text-{color}-400",background:"bg-white dark:bg-gray-900",border:"border border-gray-300 dark:border-gray-700",ring:"focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",inner:"ms-3 flex flex-col",label:"text-sm font-medium text-gray-700 dark:text-gray-200",required:"text-sm text-red-500 dark:text-red-400",help:"text-sm text-gray-500 dark:text-gray-400",default:{color:"primary"}},k=N(p.ui.strategy,p.ui.checkbox,z),E=I({inheritAttrs:!1,props:{id:{type:String,default:()=>null},value:{type:[String,Number,Boolean,Object],default:null},modelValue:{type:[Boolean,Array],default:null},name:{type:String,default:null},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:void 0},help:{type:String,default:null},label:{type:String,default:null},required:{type:Boolean,default:!1},color:{type:String,default:()=>k.default.color,validator(e){return p.ui.colors.includes(e)}},inputClass:{type:String,default:""},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:modelValue","change"],setup(e,{emit:r}){const{ui:a,attrs:c}=F("checkbox",h(e,"ui"),k,h(e,"class")),{emitFormChange:f,color:l,name:o,inputId:v}=M(e),C=v.value??U(),S=y({get(){return e.modelValue},set(i){r("update:modelValue",i)}}),w=i=>{r("change",i.target.checked),f()},$=y(()=>O(D(a.value.base,a.value.form,a.value.rounded,a.value.background,a.value.border,l.value&&a.value.ring.replaceAll("{color}",l.value),l.value&&a.value.color.replaceAll("{color}",l.value)),e.inputClass));return{ui:a,attrs:c,toggle:S,inputId:C,name:o,inputClass:$,onChange:w}}}),G=["data-n-ids"],J=["id","name","required","value","disabled","indeterminate"],P=["for"];function R(e,r,a,c,f,l){return n(),s("div",{class:t(e.ui.wrapper),"data-n-ids":e.attrs["data-n-ids"]},[d("div",{class:t(e.ui.container)},[V(d("input",j({id:e.inputId,"onUpdate:modelValue":r[0]||(r[0]=o=>e.toggle=o),name:e.name,required:e.required,value:e.value,disabled:e.disabled,indeterminate:e.indeterminate,type:"checkbox",class:e.inputClass},e.attrs,{onChange:r[1]||(r[1]=(...o)=>e.onChange&&e.onChange(...o))}),null,16,J),[[A,e.toggle]])],2),e.label||e.$slots.label?(n(),s("div",{key:0,class:t(e.ui.inner)},[d("label",{for:e.inputId,class:t(e.ui.label)},[g(e.$slots,"label",{label:e.label},()=>[b(m(e.label),1)]),e.required?(n(),s("span",{key:0,class:t(e.ui.required)},"*",2)):u("",!0)],10,P),e.help||e.$slots.help?(n(),s("p",{key:0,class:t(e.ui.help)},[g(e.$slots,"help",{help:e.help},()=>[b(m(e.help),1)])],2)):u("",!0)],2)):u("",!0)],10,G)}const L=B(E,[["render",R]]);export{L as C};

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.