{"size": 31709, "ext": "js", "max_stars_repo_path": "dist/components/taginput/index.min.js", "max_stars_repo_name": "lookdeep/buefy", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/components/taginput/index.min.js", "max_issues_repo_name": "lookdeep/buefy", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/components/taginput/index.min.js", "max_forks_repo_name": "lookdeep/buefy", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 10569.6666666667, "max_line_length": 31649, "alphanum_fraction": 0.7448043142}
/*! Buefy v0.9.7 | MIT License | github.com/buefy/buefy */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Taginput={},e.Vue)}(this,(function(e,t){"use strict";function o(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function l(e,t){return t.split(".").reduce((function(e,t){return e?e[t]:null}),e)}var a=function(e){return"object"===i(e)&&!Array.isArray(e)},r=function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(n||!Object.assign){var l=function(e){return a(i[e])&&null!==t&&Object.prototype.hasOwnProperty.call(t,e)&&a(t[e])},r=Object.getOwnPropertyNames(i).map((function(s){return o({},s,l(s)?e(t[s],i[s],n):i[s])})).reduce((function(e,t){return s(s({},e),t)}),{});return s(s({},t),r)}return Object.assign(t,i)};var c={name:"BTag",props:{attached:Boolean,closable:Boolean,type:String,size:String,rounded:Boolean,disabled:Boolean,ellipsis:Boolean,tabstop:{type:Boolean,default:!0},ariaCloseLabel:String,closeType:String,closeIcon:String,closeIconPack:String,closeIconType:String},emits:["close"],computed:{disabledOrUndefined(){return this.disabled||void 0}},methods:{close(e){this.disabled||this.$emit("close",e)}}};const d={key:0,class:"tags has-addons"};c.render=function(e,o,i,n,s,l){const a=t.resolveComponent("b-icon");return i.attached&&i.closable?(t.openBlock(),t.createBlock("div",d,[t.createVNode("span",{class:["tag",[i.type,i.size,{"is-rounded":i.rounded}]]},[t.createVNode("span",{class:{"has-ellipsis":i.ellipsis}},[t.renderSlot(e.$slots,"default")],2)],2),t.createVNode("a",{class:["tag",[i.size,i.closeType,{"is-rounded":i.rounded},i.closeIcon?"has-delete-icon":"is-delete"]],role:"button","aria-label":i.ariaCloseLabel,tabindex:!!i.tabstop&&0,disabled:l.disabledOrUndefined,onClick:o[1]||(o[1]=(...e)=>l.close&&l.close(...e)),onKeyup:o[2]||(o[2]=t.withKeys(t.withModifiers(((...e)=>l.close&&l.close(...e)),["prevent"]),["delete"]))},[i.closeIcon?(t.openBlock(),t.createBlock(a,{key:0,"custom-class":"",icon:i.closeIcon,size:i.size,type:i.closeIconType,pack:i.closeIconPack},null,8,["icon","size","type","pack"])):t.createCommentVNode("v-if",!0)],42,["aria-label","tabindex","disabled"])])):(t.openBlock(),t.createBlock("span",{key:1,class:["tag",[i.type,i.size,{"is-rounded":i.rounded}]]},[t.createVNode("span",{class:{"has-ellipsis":i.ellipsis}},[t.renderSlot(e.$slots,"default")],2),i.closable?(t.openBlock(),t.createBlock("a",{key:0,role:"button","aria-label":i.ariaCloseLabel,class:["delete is-small",i.closeType],disabled:l.disabledOrUndefined,tabindex:!!i.tabstop&&0,onClick:o[3]||(o[3]=(...e)=>l.close&&l.close(...e)),onKeyup:o[4]||(o[4]=t.withKeys(t.withModifiers(((...e)=>l.close&&l.close(...e)),["prevent"]),["delete"]))},null,42,["aria-label","disabled","tabindex"])):t.createCommentVNode("v-if",!0)],2))},c.__file="src/components/tag/Tag.vue";var u={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,customIconPacks:null},p={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return u.defaultUseHtml5Validation}},validationMessage:String,locale:{type:[String,Array],default:function(){return u.defaultLocale}},statusIcon:{type:Boolean,default:function(){return u.defaultStatusIcon}}},emits:["blur","focus"],data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||u.defaultIconPack}},computed:{parentField:function(){for(var e=this.$parent,t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType:function(){var e=(this.parentField||{}).newType;if(e){if("string"==typeof e)return e;for(var t in e)if(e[t])return t}},statusMessage:function(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize:function(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus:function(){var e=this.getElement();void 0!==e&&this.$nextTick((function(){e&&e.focus()}))},onBlur:function(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus:function(e){this.isFocused=!0,this.$emit("focus",e)},getElement:function(){for(var e=this.$refs[this.$data._elementRef];null!=e&&"$refs"in e;)e=e.$refs[e.$data._elementRef];return e},setInvalid:function(){var e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity:function(e,t){var o=this;this.$nextTick((function(){o.parentField&&(o.parentField.type||(o.parentField.newType=e),o.parentField.message||(o.parentField.newMessage=t))}))},checkHtml5Validity:function(){if(this.useHtml5Validation){var e=this.getElement();if(null!=e)return e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid}}}},h={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},f=function(){var e=u&&u.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}},m=function(){var e={mdi:h,fa:f(),fas:f(),far:f(),fad:f(),fab:f(),fal:f()};return u&&u.customIconPacks&&(e=r(e,u.customIconPacks,!0)),e},g={name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return m()[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||u.defaultIconPack},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||u.defaultIconComponent}},methods:{getEquivalentIconOf(e){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[e]?this.iconConfig.internalIcons[e]:e}}};g.render=function(e,o,i,n,s,l){return t.openBlock(),t.createBlock("span",{class:["icon",[l.newType,i.size]]},[l.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.useIconComponent),{key:1,icon:[l.newPack,l.newIcon],size:l.newCustomSize,class:[i.customClass]},null,8,["icon","size","class"])):(t.openBlock(),t.createBlock("i",{key:0,class:[l.newPack,l.newIcon,l.newCustomSize,i.customClass]},null,2))],2)},g.__file="src/components/icon/Icon.vue";var y={name:"BInput",components:{[g.name]:g},mixins:[p],inheritAttrs:!1,props:{modelValue:[Number,String],type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>u.defaultInputHasCounter},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String},emits:["icon-click","icon-right-click","update:modelValue"],data(){return{newValue:this.modelValue,newType:this.type,newAutocomplete:this.autocomplete||u.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("update:modelValue",e)}},rootClasses(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||null:this.statusType},iconPosition(){let e="";return this.icon&&(e+="has-icons-left "),this.hasIconRight&&(e+="has-icons-right"),e},statusTypeIcon(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert";default:return}},hasMessage(){return!!this.statusMessage},passwordVisibleIcon(){return this.isPasswordVisible?"eye-off":"eye"},valueLength(){return"string"==typeof this.computedValue?this.computedValue.length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{modelValue(e){this.newValue=e}},methods:{togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((()=>{this.focus()}))},iconClick(e,t){this.$emit(e,t),this.$nextTick((()=>{this.focus()}))},rightIconClick(e){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",e)},onInput(e){if(!this.lazy){const t=e.target.value;this.updateValue(t)}},onChange(e){if(this.lazy){const t=e.target.value;this.updateValue(t)}},updateValue(e){this.computedValue=e,!this.isValid&&this.checkHtml5Validity()}}};y.render=function(e,o,i,n,s,l){const a=t.resolveComponent("b-icon");return t.openBlock(),t.createBlock("div",{class:["control",l.rootClasses]},["textarea"!==i.type?(t.openBlock(),t.createBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[l.inputClasses,i.customClass]],type:s.newType,autocomplete:s.newAutocomplete,maxlength:e.maxlength,value:l.computedValue},e.$attrs,{onInput:o[1]||(o[1]=(...e)=>l.onInput&&l.onInput(...e)),onChange:o[2]||(o[2]=(...e)=>l.onChange&&l.onChange(...e)),onBlur:o[3]||(o[3]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[4]||(o[4]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,["type","autocomplete","maxlength","value"])):(t.openBlock(),t.createBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[l.inputClasses,i.customClass]],maxlength:e.maxlength,value:l.computedValue},e.$attrs,{onInput:o[5]||(o[5]=(...e)=>l.onInput&&l.onInput(...e)),onChange:o[6]||(o[6]=(...e)=>l.onChange&&l.onChange(...e)),onBlur:o[7]||(o[7]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[8]||(o[8]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,["maxlength","value"])),e.icon?(t.openBlock(),t.createBlock(a,{key:2,class:["is-left",{"is-clickable":i.iconClickable}],icon:e.icon,pack:e.iconPack,size:e.iconSize,onClick:o[9]||(o[9]=e=>l.iconClick("icon-click",e))},null,8,["class","icon","pack","size"])):t.createCommentVNode("v-if",!0),!e.loading&&l.hasIconRight?(t.openBlock(),t.createBlock(a,{key:3,class:["is-right",{"is-clickable":i.passwordReveal||i.iconRightClickable}],icon:l.rightIcon,pack:e.iconPack,size:e.iconSize,type:l.rightIconType,both:"",onClick:l.rightIconClick},null,8,["class","icon","pack","size","type","onClick"])):t.createCommentVNode("v-if",!0),e.maxlength&&i.hasCounter&&"number"!==i.type?(t.openBlock(),t.createBlock("small",{key:4,class:["help counter",{"is-invisible":!e.isFocused}]},t.toDisplayString(l.valueLength)+" / "+t.toDisplayString(e.maxlength),3)):t.createCommentVNode("v-if",!0)],2)},y.__file="src/components/input/Input.vue";var k={name:"BAutocomplete",components:{[y.name]:y},mixins:[p],inheritAttrs:!1,props:{modelValue:[Number,String],data:{type:Array,default:()=>[]},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:Function,checkInfiniteScroll:Boolean,keepOpen:Boolean,clearable:Boolean,maxHeight:[String,Number],dropdownPosition:{type:String,default:"auto"},groupField:String,groupOptions:String,iconRight:String,iconRightClickable:Boolean,appendToBody:Boolean,confirmKeys:{type:Array,default:()=>["Tab","Enter"]}},emits:["blur","focus","icon-click","icon-right-click","infinite-scroll","select","typing","update:modelValue"],data(){return{selected:null,hovered:null,isActive:!1,newValue:this.modelValue,newAutocomplete:this.autocomplete||"off",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0}},computed:{computedData(){if(this.groupField){if(this.groupOptions){const e=[];return this.data.forEach((t=>{const o=l(t,this.groupField),i=l(t,this.groupOptions);e.push({group:o,items:i})})),e}{const e={};this.data.forEach((t=>{const o=l(t,this.groupField);e[o]||(e[o]=[]),e[o].push(t)}));const t=[];return Object.keys(e).forEach((o=>{t.push({group:o,items:e[o]})})),t}}return[{items:this.data}]},isEmpty(){return!this.computedData||!this.computedData.some((e=>e.items&&e.items.length))},whiteList(){const e=[];if(e.push(this.$refs.input.$el.querySelector("input")),e.push(this.$refs.dropdown),null!=this.$refs.dropdown){const t=this.$refs.dropdown.querySelectorAll("*");for(const o of t)e.push(o)}if(this.$parent.$data._isTaginput){e.push(this.$parent.$el);const t=this.$parent.$el.querySelectorAll("*");for(const o of t)e.push(o)}return e},hasDefaultSlot(){return!!this.$slots.default},hasGroupSlot(){return!!this.$slots.group},hasEmptySlot(){return!!this.$slots.empty},hasHeaderSlot(){return!!this.$slots.header},hasFooterSlot(){return!!this.$slots.footer},isOpenedTop(){return"top"===this.dropdownPosition||"auto"===this.dropdownPosition&&!this.isListInViewportVertically},newIconRight(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable(){return!!this.clearable||this.iconRightClickable},contentStyle(){return{maxHeight:(e=this.maxHeight,void 0===e?null:isNaN(e)?e:e+"px")};var e}},watch:{isActive(e){"auto"===this.dropdownPosition&&(e?this.calcDropdownInViewportVertical():setTimeout((()=>{this.calcDropdownInViewportVertical()}),100))},newValue(e){this.$emit("update:modelValue",e);const t=this.getValue(this.selected);t&&t!==e&&this.setSelected(null,!1),!this.hasFocus||this.openOnFocus&&!e||(this.isActive=!!e)},modelValue(e){this.newValue=e},data(){this.keepFirst&&this.$nextTick((()=>{this.isActive&&this.selectFirstOption(this.computedData)}))}},methods:{setHovered(e){void 0!==e&&(this.hovered=e)},setSelected(e,t=!0,o){void 0!==e&&(this.selected=e,this.$emit("select",this.selected,o),null!==this.selected&&(this.newValue=this.clearOnSelect?"":this.getValue(this.selected),this.setHovered(null)),t&&this.$nextTick((()=>{this.isActive=!1})),this.checkValidity())},selectFirstOption(e){this.$nextTick((()=>{if(e.length){const t=e[0].items[0];(this.openOnFocus||""!==this.newValue&&this.hovered!==t)&&this.setHovered(t)}else this.setHovered(null)}))},keydown(e){const{key:t}=e;if("Enter"===t&&e.preventDefault(),this.isActive="Tab"!==t,null!==this.hovered&&this.confirmKeys.indexOf(t)>=0){","===t&&e.preventDefault();const o=!this.keepOpen||"Tab"===t;this.setSelected(this.hovered,o,e)}},clickedOutside(e){const t="shadowRoot"in this.$root.$options?e.composedPath()[0]:e.target;!this.hasFocus&&this.whiteList.indexOf(t)<0&&(this.keepFirst&&this.hovered?this.setSelected(this.hovered,!0):this.isActive=!1)},getValue(e){if(null!==e)return void 0!==this.customFormatter?this.customFormatter(e):"object"==typeof e?l(e,this.field):e},checkIfReachedTheEndOfScroll(e){e.clientHeight!==e.scrollHeight&&e.scrollTop+e.clientHeight>=e.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical(){this.$nextTick((()=>{if(null==this.$refs.dropdown)return;const e=this.$refs.dropdown.getBoundingClientRect();this.isListInViewportVertically=e.top>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight),this.appendToBody&&this.updateAppendToBody()}))},keyArrows(e){const t="down"===e?1:-1;if(this.isActive){const e=this.computedData.map((e=>e.items)).reduce(((e,t)=>[...e,...t]),[]);let o=e.indexOf(this.hovered)+t;o=o>e.length-1?e.length-1:o,o=o<0?0:o,this.setHovered(e[o]);const i=this.$refs.dropdown.querySelector(".dropdown-content"),n=i.querySelectorAll("a.dropdown-item:not(.is-disabled)")[o];if(!n)return;const s=i.scrollTop,l=i.scrollTop+i.clientHeight-n.clientHeight;n.offsetTop<s?i.scrollTop=n.offsetTop:n.offsetTop>=l&&(i.scrollTop=n.offsetTop-i.clientHeight+n.clientHeight)}else this.isActive=!0},focused(e){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.computedData)),this.hasFocus=!0,this.$emit("focus",e)},onBlur(e){this.hasFocus=!1,this.$emit("blur",e)},onInput(e){const t=this.getValue(this.selected);t&&t===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick(e){this.clearable?(this.newValue="",this.setSelected(null,!1),this.openOnFocus&&this.$refs.input.$el.focus()):this.$emit("icon-right-click",e)},checkValidity(){this.useHtml5Validation&&this.$nextTick((()=>{this.checkHtml5Validity()}))},updateAppendToBody(){const e=this.$refs.dropdown,t=this.$refs.input.$el;if(e&&t){const o=this.$data._bodyEl;o.classList.forEach((e=>o.classList.remove(e))),o.classList.add("autocomplete"),o.classList.add("control"),this.expandend&&o.classList.add("is-expandend");const i=t.getBoundingClientRect();let n=i.top+window.scrollY;const s=i.left+window.scrollX;this.isOpenedTop?n-=e.clientHeight:n+=t.clientHeight,this.style={position:"absolute",top:`${n}px`,left:`${s}px`,width:`${t.clientWidth}px`,maxWidth:`${t.clientWidth}px`,zIndex:"99"}}}},created(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.addEventListener("resize",this.calcDropdownInViewportVertical))},mounted(){if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){const e=this.$refs.dropdown.querySelector(".dropdown-content");e.addEventListener("scroll",(()=>this.checkIfReachedTheEndOfScroll(e)))}this.appendToBody&&(this.$data._bodyEl=function(e){var t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";var o=document.createElement("div");return t.appendChild(o),o.appendChild(e),document.body.appendChild(t),t}(this.$refs.dropdown),this.updateAppendToBody())},beforeUnmount(){if("undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.removeEventListener("resize",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll",this.checkIfReachedTheEndOfScroll)}var e;this.appendToBody&&(void 0!==(e=this.$data._bodyEl).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e))}};const w={key:0,class:"dropdown-item"},v={key:1,class:"has-text-weight-bold"},b={key:1},S={key:1,class:"dropdown-item is-disabled"},B={key:2,class:"dropdown-item"};k.render=function(e,o,i,n,s,l){const a=t.resolveComponent("b-input");return t.openBlock(),t.createBlock("div",{class:["autocomplete control",{"is-expanded":e.expanded}]},[t.createVNode(a,t.mergeProps({modelValue:s.newValue,"onUpdate:modelValue":o[1]||(o[1]=e=>s.newValue=e),ref:"input",type:"text",size:e.size,loading:e.loading,rounded:e.rounded,icon:e.icon,"icon-right":l.newIconRight,"icon-right-clickable":l.newIconRightClickable,"icon-pack":e.iconPack,maxlength:e.maxlength,autocomplete:s.newAutocomplete,"use-html5-validation":!1},e.$attrs,{"onUpdate:modelValue":l.onInput,onFocus:l.focused,onBlur:l.onBlur,onKeyup:o[2]||(o[2]=t.withKeys(t.withModifiers((e=>s.isActive=!1),["prevent"]),["esc"])),onKeydown:[l.keydown,o[3]||(o[3]=t.withKeys(t.withModifiers((e=>l.keyArrows("up")),["prevent"]),["up"])),o[4]||(o[4]=t.withKeys(t.withModifiers((e=>l.keyArrows("down")),["prevent"]),["down"]))],onIconRightClick:l.rightIconClick,onIconClick:o[5]||(o[5]=t=>e.$emit("icon-click",t))}),null,16,["modelValue","size","loading","rounded","icon","icon-right","icon-right-clickable","icon-pack","maxlength","autocomplete","onUpdate:modelValue","onFocus","onBlur","onKeydown","onIconRightClick"]),t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx((()=>[t.withDirectives(t.createVNode("div",{class:["dropdown-menu",{"is-opened-top":l.isOpenedTop&&!i.appendToBody}],style:s.style,ref:"dropdown"},[t.withDirectives(t.createVNode("div",{class:"dropdown-content",style:l.contentStyle},[l.hasHeaderSlot?(t.openBlock(),t.createBlock("div",w,[t.renderSlot(e.$slots,"header")])):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createBlock(t.Fragment,null,t.renderList(l.computedData,((o,i)=>(t.openBlock(),t.createBlock(t.Fragment,null,[o.group?(t.openBlock(),t.createBlock("div",{key:i+"group",class:"dropdown-item"},[l.hasGroupSlot?t.renderSlot(e.$slots,"group",{key:0,group:o.group,index:i}):(t.openBlock(),t.createBlock("span",v,t.toDisplayString(o.group),1))])):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createBlock(t.Fragment,null,t.renderList(o.items,((o,n)=>(t.openBlock(),t.createBlock("a",{key:i+":"+n,class:["dropdown-item",{"is-hovered":o===s.hovered}],onClick:e=>l.setSelected(o,void 0,e)},[l.hasDefaultSlot?t.renderSlot(e.$slots,"default",{key:0,option:o,index:n}):(t.openBlock(),t.createBlock("span",b,t.toDisplayString(l.getValue(o,!0)),1))],10,["onClick"])))),128))],64)))),256)),l.isEmpty&&l.hasEmptySlot?(t.openBlock(),t.createBlock("div",S,[t.renderSlot(e.$slots,"empty")])):t.createCommentVNode("v-if",!0),l.hasFooterSlot?(t.openBlock(),t.createBlock("div",B,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("v-if",!0)],4),[[t.vShow,s.isActive]])],6),[[t.vShow,s.isActive&&(!l.isEmpty||l.hasEmptySlot||l.hasHeaderSlot)]])])),_:3})],2)},k.__file="src/components/autocomplete/Autocomplete.vue";var V={name:"BTaginput",components:{[k.name]:k,[c.name]:c},mixins:[p],inheritAttrs:!1,props:{modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},type:String,closeType:String,rounded:{type:Boolean,default:!1},attached:{type:Boolean,default:!1},maxtags:{type:[Number,String],required:!1},hasCounter:{type:Boolean,default:()=>u.defaultTaginputHasCounter},field:{type:String,default:"value"},autocomplete:Boolean,groupField:String,groupOptions:String,nativeAutocomplete:String,openOnFocus:Boolean,disabled:Boolean,ellipsis:Boolean,closable:{type:Boolean,default:!0},ariaCloseLabel:String,confirmKeys:{type:Array,default:()=>[",","Tab","Enter"]},removeOnKeys:{type:Array,default:()=>["Backspace"]},allowNew:Boolean,onPasteSeparators:{type:Array,default:()=>[","]},beforeAdding:{type:Function,default:()=>!0},allowDuplicates:{type:Boolean,default:!1},checkInfiniteScroll:{type:Boolean,default:!1},createTag:{type:Function,default:e=>e},appendToBody:Boolean},emits:["add","infinite-scroll","remove","typing","update:modelValue"],data(){return{tags:Array.isArray(this.modelValue)?this.modelValue.slice(0):this.modelValue||[],newTag:"",isComposing:!1,_elementRef:"autocomplete",_isTaginput:!0}},computed:{rootClasses(){return{"is-expanded":this.expanded}},containerClasses(){return{"is-focused":this.isFocused,"is-focusable":this.hasInput}},valueLength(){return this.newTag.trim().length},hasDefaultSlot(){return!!this.$slots.default},hasEmptySlot(){return!!this.$slots.empty},hasHeaderSlot(){return!!this.$slots.header},hasFooterSlot(){return!!this.$slots.footer},hasInput(){return null==this.maxtags||1===this.maxtags||this.tagsLength<this.maxtags},tagsLength(){return this.tags.length},separatorsAsRegExp(){const e=this.onPasteSeparators;return e.length?new RegExp(e.map((e=>e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):null)).join("|"),"g"):null},disabledOrUndefined(){return this.disabled||void 0}},watch:{modelValue(e){this.tags=Array.isArray(e)?e.slice(0):e||[]},hasInput(){this.hasInput||this.onBlur()}},methods:{addTag(e){const t=e||this.newTag.trim();if(t){if(!this.autocomplete){const e=this.separatorsAsRegExp;if(e&&t.match(e))return void t.split(e).map((e=>e.trim())).filter((e=>0!==e.length)).map(this.addTag)}(!!this.allowDuplicates||-1===this.tags.indexOf(t))&&this.beforeAdding(t)&&(1===this.maxtags&&(this.tags=[]),this.tags.push(this.createTag(t)),this.$emit("update:modelValue",this.tags),this.$emit("add",t))}this.newTag=""},getNormalizedTagText(e){return"object"==typeof e&&(e=l(e,this.field)),`${e}`},customOnBlur(e){this.autocomplete||this.addTag(),this.onBlur(e)},onSelect(e){e&&(this.addTag(e),this.$nextTick((()=>{this.newTag=""})))},removeTag(e,t){const o=this.tags.splice(e,1)[0];return this.$emit("update:modelValue",this.tags),this.$emit("remove",o),t&&t.stopPropagation(),this.openOnFocus&&this.$refs.autocomplete&&this.$refs.autocomplete.focus(),o},removeLastTag(){this.tagsLength>0&&this.removeTag(this.tagsLength-1)},keydown(e){const{key:t}=e;if(-1===this.removeOnKeys.indexOf(t)||this.newTag.length||this.removeLastTag(),(!this.autocomplete||this.allowNew)&&this.confirmKeys.indexOf(t)>=0){if("Tab"!==t&&e.preventDefault(),"Enter"===t&&this.isComposing)return;this.addTag()}},onTyping(e){this.$emit("typing",e.trim())},emitInfiniteScroll(){this.$emit("infinite-scroll")}}};const C={key:0,class:"help counter"};V.render=function(e,o,i,n,s,l){const a=t.resolveComponent("b-tag"),r=t.resolveComponent("b-autocomplete");return t.openBlock(),t.createBlock("div",{class:["taginput control",l.rootClasses]},[t.createVNode("div",{class:["taginput-container",[e.statusType,e.size,l.containerClasses]],disabled:l.disabledOrUndefined,onClick:o[4]||(o[4]=t=>l.hasInput&&e.focus(t))},[t.renderSlot(e.$slots,"selected",{tags:s.tags},(()=>[(t.openBlock(!0),t.createBlock(t.Fragment,null,t.renderList(s.tags,((o,n)=>(t.openBlock(),t.createBlock(a,{key:l.getNormalizedTagText(o)+n,type:i.type,"close-type":i.closeType,size:e.size,rounded:i.rounded,attached:i.attached,tabstop:!1,disabled:l.disabledOrUndefined,ellipsis:i.ellipsis,closable:i.closable,"aria-close-label":i.ariaCloseLabel,title:i.ellipsis&&l.getNormalizedTagText(o),onClose:e=>l.removeTag(n,e)},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"tag",{tag:o},(()=>[t.createTextVNode(t.toDisplayString(l.getNormalizedTagText(o)),1)]))])),_:2},1032,["type","close-type","size","rounded","attached","disabled","ellipsis","closable","aria-close-label","title","onClose"])))),128))])),l.hasInput?(t.openBlock(),t.createBlock(r,t.mergeProps({key:0,ref:"autocomplete",modelValue:s.newTag,"onUpdate:modelValue":o[1]||(o[1]=e=>s.newTag=e)},e.$attrs,{data:i.data,field:i.field,icon:e.icon,"icon-pack":e.iconPack,maxlength:e.maxlength,"has-counter":!1,size:e.size,disabled:l.disabledOrUndefined,loading:e.loading,autocomplete:i.nativeAutocomplete,"open-on-focus":i.openOnFocus,"keep-open":i.openOnFocus,"group-field":i.groupField,"group-options":i.groupOptions,"use-html5-validation":e.useHtml5Validation,"check-infinite-scroll":i.checkInfiniteScroll,"append-to-body":i.appendToBody,"confirm-keys":i.confirmKeys,onTyping:l.onTyping,onFocus:e.onFocus,onBlur:l.customOnBlur,onKeydown:l.keydown,onCompositionstart:o[2]||(o[2]=e=>s.isComposing=!0),onCompositionend:o[3]||(o[3]=e=>s.isComposing=!1),onSelect:l.onSelect,onInfiniteScroll:l.emitInfiniteScroll}),t.createSlots({_:2},[l.hasHeaderSlot?{name:"header",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"header")]))}:void 0,l.hasDefaultSlot?{name:"default",fn:t.withCtx((o=>[t.renderSlot(e.$slots,"default",{option:o.option,index:o.index})]))}:void 0,l.hasEmptySlot?{name:"empty",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"empty")]))}:void 0,l.hasFooterSlot?{name:"footer",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"footer")]))}:void 0]),1040,["modelValue","data","field","icon","icon-pack","maxlength","size","disabled","loading","autocomplete","open-on-focus","keep-open","group-field","group-options","use-html5-validation","check-infinite-scroll","append-to-body","confirm-keys","onTyping","onFocus","onBlur","onKeydown","onSelect","onInfiniteScroll"])):t.createCommentVNode("v-if",!0)],10,["disabled"]),i.hasCounter&&(i.maxtags||e.maxlength)?(t.openBlock(),t.createBlock("small",C,[e.maxlength&&l.valueLength>0?(t.openBlock(),t.createBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(l.valueLength)+" / "+t.toDisplayString(e.maxlength),1)],2112)):i.maxtags?(t.openBlock(),t.createBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(l.tagsLength)+" / "+t.toDisplayString(i.maxtags),1)],2112)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0)],2)},V.__file="src/components/taginput/Taginput.vue";var T,x={install:function(e){!function(e,t){e.component(t.name,t)}(e,V)}};T=x,"undefined"!=typeof window&&window.Vue&&window.Vue.use(T),e.BTaginput=V,e.default=x,Object.defineProperty(e,"__esModule",{value:!0})}));
