1import{H as u,k as i,l as d,p as n,q as c,C as o,D as r,K as h}from"./CR3YXQVy.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"35119176436.2861.1-edd9430aa"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2617063c-9f74-4c40-9892-de0955616db8",t._sentryDebugIdIdentifier="sentry-dbid-2617063c-9f74-4c40-9892-de0955616db8")})()}catch{}const f={props:{label:{type:String,default:null},modelValue:{type:[Boolean,Array,String],default:!1},id:{type:String,default:()=>`checkbox-${String(Math.random()).substr(2)}`},disabled:{type:Boolean,default:!1},status:{type:String,default:null},variation:{type:String,default:""},name:{type:String,default:null},hint:{type:String,default:null},isFlush:{type:String,default:null},size:{type:String,default:null}},computed:{checked(){return typeof this.modelValue=="boolean"?this.modelValue:this.modelValue!==null&&this.modelValue.includes(this.label)},variations(){return[this.variation==="toggle"?"checkbox_toggle":this.variation==="question"?"checkbox_question":this.variation==="msr"?"checkbox_msr":null]},sb_status(){return[this.status==="focus"?"sb-focus":null,this.status==="hover"?"sb-hover":null]},sizes(){return this.size==="small"?"radio_small":null}},methods:{change(t){if(typeof t?.target?.checked=="boolean")return this.$emit("update:modelValue",t.target.checked);const e=this.modelValue.slice(),l=e.indexOf(this.label);l!==-1?e.splice(l,1):e.push(this.label),this.$emit("update:modelValue",e)}}},b=["id","name","checked","disabled","value"],g=["for"],_={class:"form-element__label"},m={key:0,class:"form-element__help"};function y(t,e,l,k,p,a){return i(),d("span",{class:h(["checkbox",a.sb_status,a.variations,{"is-flush":l.isFlush}])},[n("input",{id:l.id,type:"checkbox",name:l.name,checked:a.checked||t.$attrs.checked,disabled:l.disabled,value:l.modelValue,onChange:e[0]||(e[0]=(...s)=>a.change&&a.change(...s))},null,40,b),n("label",{class:"checkbox__label",for:l.id,onChange:e[1]||(e[1]=(...s)=>a.change&&a.change(...s))},[e[2]||(e[2]=n("span",{class:"checkbox__checkmark"},null,-1)),n("span",_,[c(o(l.label)+" ",1),l.hint?(i(),d("span",m,o(l.hint),1)):r("",!0)])],40,g)],2)}const S=Object.assign(u(f,[["render",y],["__scopeId","data-v-5827f4b7"]]),{__name:"LegacyCheckbox"});export{S 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.