Vue.component("filter-checkbox",{template:"#wcs_templates_filter--checkbox",props:["filter","options","value","title","slug","name","unique_id","level"],mixins:[wcs_filters_mixins]}),Vue.component("filter-select2",{props:["options","value","placeholder","multiple"],template:"#wcs_templates_filter--select2",mounted:function(){var e=this;"function"!=typeof e.$el.select2&&jQuery(document).ready(function(){jQuery(e.$el).select2({data:e.options,multiple:e.multiple,placeholder:e.placeholder,language:e.getLanguage()})})},watch:{value:function(e){console.log(e,this),jQuery(this.$el).val(e).trigger("change")},options:function(e){}},methods:{getLanguage:function(){return{errorLoading:function(){return window.wcs_select2.errorLoading},inputTooLong:function(e){var t=e.input.length-e.maximum;return window.wcs_select2.inputTooLong.replace("%n",t)},inputTooShort:function(e){var t=e.minimum-e.input.length;return window.wcs_select2.inputTooShort.replace("%n",t)},loadingMore:function(){return window.wcs_select2.loadingMore},maximumSelected:function(e){return window.wcs_select2.inputTooShort.replace("%n",e.maximum)},noResults:function(){return window.wcs_select2.noResults},searching:function(){return window.wcs_select2.searching}}}},destroyed:function(){jQuery(this.$el).off().select2("destroy")}}),Vue.component("filter-switch",{template:"#wcs_templates_filter--switch",props:["filter","options","value","title","slug","name","unique_id","level"],mixins:[wcs_filters_mixins]}),Vue.component("filter-radio",{template:"#wcs_templates_filter--radio",props:["filter","options","value","title","slug","name","unique_id"],methods:{isChecked:function(e,t){var o=!1;return(void 0!==e?e.toString():"")===(t.length>0?t[0].toString():"")&&(o=!0),o},updateRadioModelValue:function(e){this.$refs.input.value=e.target.value,this.checked=this.$refs.input.value,this.$emit("input",this.$refs.input.value)}},mixins:[wcs_filters_mixins]}),Vue.component("wcs-loader",{template:"#wcs_templates_misc--loader"}),Vue.component("wcs-modal",{template:"<div>sstst</div>"}),Vue.component("modal-normal",{template:"#wcs_templates_modal--normal",props:["data","options","classes"],mixins:[wcs_modal_mixins],methods:{openTaxModal:function(e,t,o){o.preventDefault(),wcs_vue_modal.openModal(e,t)}}}),Vue.component("modal-large",{template:"#wcs_templates_modal--large",props:["data","options","classes"],mixins:[wcs_modal_mixins],methods:{openTaxModal:function(e,t,o){o.preventDefault(),wcs_vue_modal.openModal(e,t)}}}),Vue.component("modal-taxonomy",{template:"#wcs_templates_modal--taxonomy",props:["data","options","content","classes"],mixins:[wcs_modal_mixins]}),Vue.component("button-more",{template:"#wcs_templates_misc--button-more",props:["color","more"],methods:{startLoader:function(){this.ladda.start()},stopLoader:function(){this.ladda.stop()},addEvents:function(){this.$emit("add-events",this)}},mounted:function(){this.ladda=Ladda.create(this.$el)}}),Vue.component("taxonomy-list",{template:'<span><template v-for="(room, index) in event.terms[tax]"><template v-if="room.url"><a :href="room.url" v-html="room.name"></a></template><template v-else-if="room.desc"><a href="#" class="wcs-modal-call" v-on:click="openModal( room, options, $event )" v-html="room.name"></a></template><template v-else><span v-html="room.name"></span></template><template v-if="index !== (event.terms[tax].length - 1)">, </template></template></span>',props:["tax","options","event"],methods:{openModal:function(e,t,o){this.$emit("open-modal",e,t,o)}}});