1"use strict";(self.webpackChunkcarnyx_the_drum=self.webpackChunkcarnyx_the_drum||[]).push([[5470,7496],{7814:(e,t,i)=>{i.r(t),i.d(t,{default:()=>a});var r=i(5166);const l={data:()=>({triggerFieldValue:"",filterInitialized:!1,preserveLegacyValue:!0}),computed:{filteredOptions(){if(!this.attr?.filter?.options)return[];const e=this.triggerFieldValue;if(""===e||null==e)return[];const t=this.attr.filter.options.filter((t=>t.triggerValue===e));if(this.preserveLegacyValue&&this.value&&!t.some((e=>e.value===this.value))){const e=this.attr.filter.options.find((e=>e.value===this.value));if(e)return[e,...t]}return t}},watch:{triggerFieldValue(e,t){this.filterInitialized&&e!==t&&(this.preserveLegacyValue=!1,"function"==typeof this.setFieldValue&&this.name&&this.setFieldValue(this.name,""))}},mounted(){this.attr?.filter?.trigger&&this.setupFilterRule()},methods:{setupFilterRule(e=0){const t=this.attr.filter.trigger,i=document.querySelector(`[name="${t}"]`);!i&&e<5?setTimeout((()=>this.setupFilterRule(e+1)),500):i&&(this.triggerFieldValue=i.value,this.$nextTick((()=>{this.filterInitialized=!0})),i.addEventListener("change",(e=>{this.triggerFieldValue=e.target.value})))}}},s={components:{InputBase:i(33815).default},mixins:[l],inheritAttrs:!1,props:{name:{type:String,default:""},value:{type:[String,Number],default:""},label:{type:String,default:""},help:{type:String,default:""},attr:{type:Object,default:()=>({})},placeholder:{type:String,default:""},siblings:{type:Array,default:()=>[]},suppressError:{type:Boolean,default:!0},errors:{type:Object,default:()=>({})},choices:{type:[Object,Array],default:()=>[]},setFieldValue:{type:Function,default:()=>{}}},computed:{children(){const e=(this.attr?.filter?.options?this.filteredOptions:this.choices).map((e=>({tag:"option",value:e.value,text:e.label}))),t=this.placeholder||this.attr.placeholder;return t?[{tag:"option",value:"",text:t,disabled:!0},...e]:e},inputBaseProps(){const{options:e,...t}=this.$props;return t}}};const a=(0,i(83744).Z)(s,[["render",function(e,t,i,l,s,a){const n=(0,r.resolveComponent)("InputBase");return(0,r.openBlock)(),(0,r.createBlock)(n,(0,r.mergeProps)({as:"select",children:a.children},{...a.inputBaseProps,...e.$attrs}),null,16,["children"])}]])}}]);
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.