"use strict";(self.webpackChunktainacan=self.webpackChunktainacan||[]).push([[3343,5724],{5957(e,t,a){a.d(t,{A:()=>i});const i={props:{itemMetadatum:Object,value:[String,Number,Array],disabled:!1},emits:["update:value","mobile-special-focus"],computed:{getOptions:function(){if(this.itemMetadatum&&this.itemMetadatum.metadatum.metadata_type_options&&this.itemMetadatum.metadatum.metadata_type_options.options){var e=this.itemMetadatum.metadatum.metadata_type_options.options;return e?e.split("\n"):[]}return[]}},methods:{getUnescapedLabel:function(e){return"function"==typeof _.unescape?_.unescape(e):e},onSelected:function(e){this.$emit("update:value",e)},onMobileSpecialFocus:function(e){e.target.blur(),this.$emit("mobile-special-focus")}}}},45234(e,t,a){a.d(t,{X:()=>u});var i=a(6934),l={value:""},n=["label","value"];function u(e,t,a,u,d,o){var m=(0,i.g2)("b-select");return(0,i.uX)(),(0,i.CE)("div",null,[(0,i.Lk)("input",{type:"text","aria-hidden":"true",tabindex:"-1",class:"is-special-hidden-for-mobile",autocomplete:"on",onFocus:t[0]||(t[0]=function(){return o.onMobileSpecialFocus&&o.onMobileSpecialFocus.apply(o,arguments)})},null,32),(0,i.bF)(m,{id:"tainacan-item-metadatum_id-"+a.itemMetadatum.metadatum.id+(a.itemMetadatum.parent_meta_id?"_parent_meta_id-"+a.itemMetadatum.parent_meta_id:""),expanded:"",disabled:a.disabled,placeholder:a.itemMetadatum.metadatum.placeholder?a.itemMetadatum.metadatum.placeholder:e.$i18n.get("label_selectbox_init"),"model-value":o.getUnescapedLabel(a.value),class:(0,i.C4)({"has-placeholder-selected":""===a.value}),"onUpdate:modelValue":t[1]||(t[1]=function(e){return o.onSelected(e)})},{default:(0,i.k6)((function(){return[(0,i.Lk)("option",l,(0,i.v_)(a.itemMetadatum.metadatum.placeholder?a.itemMetadatum.metadatum.placeholder:e.$i18n.get("label_selectbox_init")+"..."),1),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(o.getOptions,(function(e,t){return(0,i.uX)(),(0,i.CE)("option",{key:t,label:e,value:e},(0,i.v_)(o.getUnescapedLabel(e)),9,n)})),128))]})),_:1},8,["id","disabled","placeholder","model-value","class"])])}},93343(e,t,a){a.r(t),a.d(t,{default:()=>n});var i=a(93387),l=a(47756);const n=(0,a(66262).A)(l.A,[["render",i.X]])},47756(e,t,a){a.d(t,{A:()=>i.A});var i=a(5957)},93387(e,t,a){a.d(t,{X:()=>i.X});var i=a(45234)}}]);