vue-spear-tip 0.2.11 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/.vite/manifest.json +42 -32
  2. package/dist/{Button-CgV8TKSe.js → Button-AT1tkLRU.js} +1 -1
  3. package/dist/{Button-CHi5q2B8.cjs → Button-D8_z61Ku.cjs} +1 -1
  4. package/dist/{CodeHighlight-qlVamFnM.js → CodeHighlight-DyDayHRK.js} +1 -1
  5. package/dist/{CodeHighlight-DAFFU7u2.cjs → CodeHighlight-UMxs9Vkf.cjs} +1 -1
  6. package/dist/{DateField-D0Ilkfym.js → DateField-Bh8myc_m.js} +106 -109
  7. package/dist/{DateField-BQYZQsBb.cjs → DateField-C39--66z.cjs} +3 -3
  8. package/dist/{FieldComponent.vue_vue_type_script_lang-hfVg8AIM.js → FieldComponent.vue_vue_type_script_lang-ByNypXQJ.js} +1 -1
  9. package/dist/{FieldComponent.vue_vue_type_script_lang-C9JoaDDS.cjs → FieldComponent.vue_vue_type_script_lang-CKIGPh72.cjs} +1 -1
  10. package/dist/Interfaces/IVueClass.d.ts +1 -1
  11. package/dist/{SelectField-BXQn9OAW.js → SelectField-BYCLVi2Z.js} +2 -2
  12. package/dist/{SelectField-lpNn-0fg.cjs → SelectField-kLPwlp6_.cjs} +1 -1
  13. package/dist/{StringField-C9YQH_Va.cjs → StringField-LKU8BrFg.cjs} +1 -1
  14. package/dist/{StringField-BMGdDwHw.js → StringField-dhAukChr.js} +16 -15
  15. package/dist/SwitchField-B9X9s4oC.cjs +1 -0
  16. package/dist/{SwitchField-C2rvdoqS.js → SwitchField-Cx0ih-Pq.js} +18 -18
  17. package/dist/{Tabs-B76h25-X.js → Tabs-B9ceJt8G.js} +1 -1
  18. package/dist/{Tabs-BnfWPt_y.cjs → Tabs-CeC1C4GS.cjs} +1 -1
  19. package/dist/TextField-9rvZGnMh.js +24354 -0
  20. package/dist/TextField-DA1nC21o.cjs +169 -0
  21. package/dist/_commonjsHelpers-DqS8WYlY.cjs +1 -0
  22. package/dist/_commonjsHelpers-VXLwngCN.js +9 -0
  23. package/dist/core/VueClass.d.ts +1 -1
  24. package/dist/core/index.d.ts +2 -1
  25. package/dist/{index-BhdXUlye.js → index-BYxsEEyC.js} +5 -5
  26. package/dist/{index-CWmP8TIW.cjs → index-Bx8MBlOo.cjs} +1 -1
  27. package/dist/replaceable/FieldComponent.vue +2 -2
  28. package/dist/vue-spear-tip.cjs.js +1 -1
  29. package/dist/vue-spear-tip.css +1 -1
  30. package/dist/vue-spear-tip.es.js +1 -1
  31. package/docs/index.html +2 -2
  32. package/docs/static/{Button-Bunv2LWC.js → Button-Wcmhg4_A.js} +1 -1
  33. package/docs/static/{CodeHighlight-DQBcinnM.js → CodeHighlight-4bpHBQbZ.js} +1 -1
  34. package/docs/static/{DateField-CsIlYupR.js → DateField-Cmifejky.js} +2 -2
  35. package/docs/static/{FieldComponent.vue_vue_type_script_lang-CQ-4feGL.js → FieldComponent.vue_vue_type_script_lang-DNMlGnCe.js} +1 -1
  36. package/docs/static/{NoSymbolIcon-BbyqUoRs.js → NoSymbolIcon-joZpMvQg.js} +1 -1
  37. package/docs/static/{SelectField-CViiMPQ4.js → SelectField-uk0sMTaD.js} +1 -1
  38. package/docs/static/{StringField-FTm4hPIh.css → StringField-BJ5e1NcF.css} +1 -1
  39. package/docs/static/{StringField-CCJHJt0B.js → StringField-DeFFxwy7.js} +1 -1
  40. package/docs/static/SwitchField-Ct85pbvZ.css +1 -0
  41. package/docs/static/SwitchField-DUj2uIpj.js +1 -0
  42. package/docs/static/{Tabs-CtPaTerA.js → Tabs-CcgvVEoC.js} +1 -1
  43. package/docs/static/TextField-vLqdts6S.js +169 -0
  44. package/docs/static/_commonjsHelpers-CV2jkJYL.js +1 -0
  45. package/docs/static/index-BRwSOXEK.js +2 -0
  46. package/docs/static/{main-C0xMdd--.js → main-fCY1fm9G.js} +14 -3
  47. package/docs/static/main-kVqkj31w.css +1 -0
  48. package/package.json +1 -1
  49. package/dist/SwitchField-CaTcotfe.cjs +0 -1
  50. package/dist/TextField-BbNAxetT.cjs +0 -145
  51. package/dist/TextField-SGxKqPAt.js +0 -19557
  52. package/docs/static/SwitchField-DTAyMrZv.js +0 -1
  53. package/docs/static/SwitchField-igvaNnA4.css +0 -1
  54. package/docs/static/TextField--uApzzsN.js +0 -145
  55. package/docs/static/index-DVVP040D.js +0 -2
  56. package/docs/static/main-CKD4jD7A.css +0 -1
@@ -1,4 +1,4 @@
1
- var yt=Object.defineProperty;var r=(a,i)=>yt(a,"name",{value:i,configurable:!0});import{c as Tn,o as ce,a as An,K as Mt,P as I,W as St,V as Tt,k as lt,l as yn,m as xn,z as Ct,n as dt,u as At,q as Ot,N as Ft,O as Pt,p as xt,v as ut,x as ft,y as ct,b as _t}from"./main-C0xMdd--.js";import{F as It}from"./FieldComponent.vue_vue_type_script_lang-CQ-4feGL.js";function Nt(a,i){return ce(),Tn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[An("path",{d:"M12.75 12.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM7.5 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.25 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM9.75 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM10.5 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM12.75 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM14.25 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM15 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM16.5 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM15 12.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM16.5 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z"}),An("path",{"fill-rule":"evenodd",d:"M6.75 2.25A.75.75 0 0 1 7.5 3v1.5h9V3A.75.75 0 0 1 18 3v1.5h.75a3 3 0 0 1 3 3v11.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V7.5a3 3 0 0 1 3-3H6V3a.75.75 0 0 1 .75-.75Zm13.5 9a1.5 1.5 0 0 0-1.5-1.5H5.25a1.5 1.5 0 0 0-1.5 1.5v7.5a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5v-7.5Z","clip-rule":"evenodd"})])}r(Nt,"render$1");function vt(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}r(vt,"getDefaultExportFromCjs");var Je={exports:{}},Et=Je.exports,ht;function jt(){return ht||(ht=1,(function(a,i){(function(e,d){d(i)})(Et,(function(e){/*! *****************************************************************************
1
+ var yt=Object.defineProperty;var r=(a,i)=>yt(a,"name",{value:i,configurable:!0});import{c as Tn,o as ce,a as An,K as Mt,P as I,W as St,V as Tt,k as lt,l as yn,m as xn,z as Ct,n as dt,u as At,q as Ot,N as Ft,O as Pt,p as xt,v as ut,x as ft,y as ct,b as _t}from"./main-fCY1fm9G.js";import{F as It}from"./FieldComponent.vue_vue_type_script_lang-DNMlGnCe.js";import{g as vt}from"./_commonjsHelpers-CV2jkJYL.js";function Nt(a,i){return ce(),Tn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[An("path",{d:"M12.75 12.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM7.5 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.25 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM9.75 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM10.5 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM12.75 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM14.25 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM15 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM16.5 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM15 12.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM16.5 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z"}),An("path",{"fill-rule":"evenodd",d:"M6.75 2.25A.75.75 0 0 1 7.5 3v1.5h9V3A.75.75 0 0 1 18 3v1.5h.75a3 3 0 0 1 3 3v11.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V7.5a3 3 0 0 1 3-3H6V3a.75.75 0 0 1 .75-.75Zm13.5 9a1.5 1.5 0 0 0-1.5-1.5H5.25a1.5 1.5 0 0 0-1.5 1.5v7.5a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5v-7.5Z","clip-rule":"evenodd"})])}r(Nt,"render$1");var Je={exports:{}},Et=Je.exports,ht;function jt(){return ht||(ht=1,(function(a,i){(function(e,d){d(i)})(Et,(function(e){/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -28,4 +28,4 @@ var yt=Object.defineProperty;var r=(a,i)=>yt(a,"name",{value:i,configurable:!0})
28
28
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
29
29
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
30
30
  PERFORMANCE OF THIS SOFTWARE.
31
- ***************************************************************************** */var e=r(function(){return e=Object.assign||r(function(g){for(var v,M=1,f=arguments.length;M<f;M++){v=arguments[M];for(var A in v)Object.prototype.hasOwnProperty.call(v,A)&&(g[A]=v[A])}return g},"__assign"),e.apply(this,arguments)},"__assign");function d(b){try{if(typeof b.composedPath=="function"){var g=b.composedPath();return g[0]}return b.target}catch{return b.target}}r(d,"getEventTarget");var m={confirmIcon:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='17' height='17' viewBox='0 0 17 17'> <g> </g> <path d='M15.418 1.774l-8.833 13.485-4.918-4.386 0.666-0.746 4.051 3.614 8.198-12.515 0.836 0.548z' fill='#000000' /> </svg>",confirmText:"OK ",showAlways:!1,theme:"light"};function c(b){var g=e(e({},m),b),v,M="flatpickr-confirm";return function(f){return f.config.noCalendar||f.isMobile?{}:e({onKeyDown:r(function(A,F,L,N){var y=d(N),V=!f.config.time_24hr&&y===f.amPM||f.config.time_24hr&&(f.config.enableSeconds&&y===f.secondElement||!f.config.enableSeconds&&y===f.minuteElement);f.config.enableTime&&N.key==="Tab"&&V?(N.preventDefault(),v.focus()):N.key==="Enter"&&y===v&&f.close()},"onKeyDown"),onReady:r(function(){v=f._createElement("div",M+" "+(g.showAlways?"visible":"")+" "+g.theme+"Theme",g.confirmText),v.tabIndex=-1,v.innerHTML+=g.confirmIcon,v.addEventListener("click",f.close),f.calendarContainer.appendChild(v),f.loadedPlugins.push("confirmDate")},"onReady")},g.showAlways?{}:{onChange:r(function(A,F){var L=f.config.enableTime||f.config.mode==="multiple"||f.loadedPlugins.indexOf("monthSelect")!==-1,N=f.calendarContainer.querySelector("."+M);if(N){if(F&&!f.config.inline&&L&&N)return N.classList.add("visible");N.classList.remove("visible")}},"onChange")})}}return r(c,"confirmDatePlugin"),c}))})(Cn)),Cn.exports}r(Rt,"requireConfirmDate");var Kt=Rt();const Bt=vt(Kt);var Ut=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,x=r((a,i,e,d)=>{for(var m=d>1?void 0:d?Gt(i,e):i,c=a.length-1,b;c>=0;c--)(b=a[c])&&(m=(d?b(i,e,m):b(m))||m);return d&&m&&Ut(i,e,m),m},"__decorateClass"),Ce;let P=(Ce=class extends It{components={VSTStringField:Mt,CalendarDaysIcon:Nt};emits=["change"];placeholder={en:"Select date",ru:"Нажмите для выбора даты"};force12hours=!1;withTime=!1;hoursIncrement=1;minuteIncrement=1;withSeconds=!1;secondsIncrement=1;locale="";disabled=!1;ISO861UTCMode=!1;dayPreRender;max=0;min=0;maxField="";minField="";fieldName="";firstDayOfWeek="auto";disabledDays=[];disableWeekends=!1;disableDaysOfWeek=[];value=null;localeInner="en";maskPreset="date";showCalendar=!0;DT=null;beforeMount(){this.withTime&&(this.maskPreset="datetime",this.withSeconds&&(this.maskPreset="datetimeSec")),this._initTemporalUpdateOut=!0,this.value=this.modelValue||this.inputValue||null,this.maxField&&$VST.$on("$VST.components.fields.date."+btoa(this.maxField),this._onMaxDateFieldChange),this.minField&&$VST.$on("$VST.components.fields.date."+btoa(this.minField),this._onMinDateFieldChange)}mounted(){this.nextTick(()=>{this._initPicker(),this.nextTick(()=>{this.value&&this.addDate()})})}beforeUnmount(){this.maxField&&$VST.$off("$VST.components.fields.date."+btoa(this.maxField),this._onMaxDateFieldChange),this.minField&&$VST.$off("$VST.components.fields.date."+btoa(this.minField),this._onMinDateFieldChange)}_onMaxDateFieldChange(i){this.fp?.set?.("maxDate",i?new Date(i):null)}_onMinDateFieldChange(i){this.fp?.set?.("minDate",i?new Date(i):null)}fp=null;addDate(){const i=$VST.DT(),e=!!this.value;this.value=this.value||(this.ISO861UTCMode?i?.[this.maskPreset=="date"?"toPlainDate":"toPlainDateTime"]?.()?.toString().replace("T"," "):i.epochMilliseconds),this.showCalendar=!1,setTimeout(()=>{this.fp||this._initPicker(),this.nextTick(()=>{this.fp?.open?.(),this.fp?.close?.(),this.nextTick(()=>{!this.disabled&&!e&&this.$refs.VSTStringField?.focus?.(),this.$refs?.picker&&setTimeout(()=>{this.showCalendar=!0,this.$refs.picker.setAttribute("value",this._formatDate(new Date(i.epochMilliseconds))),this.fp?.setDate?.(new Date($VST.DT(this.value).epochMilliseconds)),e||this.fp?.open?.()},250)})})},100)}_extractDateOnly(i){const e=/(\d{2,4}[./_-]\d{2,4}[./_-]\d{2,4})/,d=i.match(e);return d?d?.[0]??null:null}_preventMaskDateChange=!1;_initPicker(){const i=(this.force12hours?"en-US":this.locale)||this.VST.$r.locale,e=i?.split?.("-")?.[0];if(!this.$refs.picker||!e)return;this.localeInner=e;let d;try{const g=new Intl.DateTimeFormat(i,{hour:"numeric"}).resolvedOptions();d=g.hourCycle==="h11"||g.hourCycle==="h12"}catch{d=!1}const m=[g=>{if(this.disableWeekends)return g.getDay()===5||g.getDay()===6;if(this.disableDaysOfWeek?.length)return this.disableDaysOfWeek?.includes(g.getDay()+1)}];for(const g of this.disabledDays??[])m.push(new Date($VST.DT(g).epochMilliseconds));let c;const b=(e?_n?.[e]:_n?.default)||_n?.default||{};this.firstDayOfWeek!="auto"&&(b.firstDayOfWeek=(parseInt(this.firstDayOfWeek)||1)-1),this.fp=_(this.$refs.picker,{enableTime:this.withTime,time_24hr:!d,enableSeconds:this.withSeconds,weekNumbers:!0,dateFormat:"Y-m-d H:i:S",minDate:this.min?$VST.DT(this.min):null,maxDate:this.max?$VST.DT(this.max):null,minuteIncrement:this.minuteIncrement,secondsIncrement:this.minuteIncrement,hoursIncrement:this.hoursIncrement,allowInput:1,closeOnSelect:!1,className:"custom-flatpickr-theme",disable:m,locale:b,plugins:this.withSeconds||this.withTime?[new Bt({confirmIcon:"",showAlways:!0})]:[],onValueUpdate:r(g=>{if(this._preventMaskDateChange)return this._preventMaskDateChange=!1;const v=g?.[0]?.getTime?.()??0;v&&this._setInputMaskValueByDTStamp(v)},"onValueUpdate"),onDayCreate:r((g,v,M,f)=>{let A=null;if(g?.[0])try{A=$VST.DT(new Date(`${M.currentYear}-${(M.currentMonth+1).toString().padStart(2,"0")}-${f.innerText.trim().toString().split(".")[0].padStart(2,"0")}`)),f?.classList?.contains?.("prevMonthDay")&&(A=A.subtract({months:1})),f?.classList?.contains?.("nextMonthDay")&&(A=A.add({months:1})),this.dayPreRender&&(this.dayPreRender(f,A,f?.classList?.contains?.("nextMonthDay")||(f?.classList?.contains?.("prevMonthDay")?!1:null)),f.classList.add("_vst-date-field-pre-rendered"))}catch{}},"onDayCreate"),onMonthChange:c=r((g,v,M,f)=>{for(const A of M.days.children)if(this.dayPreRender&&!A.classList.contains("_vst-date-field-pre-rendered")){let F=$VST.DT(new Date(`${M.currentYear}-${(M.currentMonth+1).toString().padStart(2,"0")}-${f.innerText.trim().toString().split(".")[0].padStart(2,"0")}`));f?.classList?.contains?.("prevMonthDay")&&(F=F.subtract({months:1})),f?.classList?.contains?.("nextMonthDay")&&(F=F.add({months:1})),this.dayPreRender(f,F,f?.classList?.contains?.("nextMonthDay")||(f?.classList?.contains?.("prevMonthDay")?!1:null)),f.classList.add("_vst-date-field-pre-rendered")}},"change"),onYearChange:c}),setTimeout(()=>{this.value&&this._setInputMaskValueByDTStamp(this.value)},150)}_inputFocus(){this.fp&&!this.fp.isOpen&&this.fp.open()}_onBlur(i){const e=!!this.fp?.isOpen;setTimeout(()=>{this.nextTick(()=>{if(!this.$refs.VSTStringField?.value&&i?.includes("_"))this._changeInput("");else if(i?.length&&!i.includes("_")&&(!this.withTime||!e)){const d=this.$refs.VSTStringField.mask,m=this.$refs.VSTStringField.getFromMask(d,i,"MM").toString().padStart(2,"0"),c=this.$refs.VSTStringField.getFromMask(d,i,"YYYY").toString().padStart(4,"0"),b=this.$refs.VSTStringField.getFromMask(d,i,"DD").toString().padStart(2,"0");let g=this.$refs.VSTStringField.getFromMask(d,i,"hh").toString().padStart(2,"0");const v=this.$refs.VSTStringField.getFromMask(d,i,"mm").toString().padStart(2,"0"),M=this.$refs.VSTStringField.getFromMask(d,i,"ss").toString().padStart(2,"0");let f=`${c}-${m}-${b}`;this.withTime&&(f+=` ${g}:${v}:${this.withSeconds?M:"00"}`),e||(this.DT=$VST.DT(f.split(".")[0]),this._setInputMaskValueByDTStamp(this.DT.epochMilliseconds))}this.nextTick(()=>{this.fp&&this.fp.isOpen&&(!this.withTime||!e)&&this.fp.close()})})},150)}_changeInput(i,e=!1){i?.toString?.()?.trim?.()||this.$emit("update:modelValue",this.value=null),this.fp&&!this.fp.isOpen&&!this.value&&!e&&this.fp.open(),e&&!this.withTime&&this.nextTick(()=>{this.addDate()})}_inputEnter(i){this.fp&&this.fp.isOpen&&this.fp.close(),this.$refs?.VSTStringField?.blur?.(),this._onBlur(i)}_dateMaskChange(i){let{month:e,year:d,day:m,hour:c,minute:b,seconds:g,AmPm:v}=i;const M=new Date;e||(e=M.getMonth()+1),m||(m=M.getDate()),(d?.toString?.()?.length??0)<4&&(d=M.getFullYear()),!c&&this.maskPreset!="date"?(c=M.getHours(),c==23?c=0:++c):this.$refs.VSTStringField.is12hours&&(c=c==12&&v=="am"?c-12:c);const f=new Date(d,e-1,m,0,b,g);f.setHours(c),this.fp&&(this.fp?.setDate(f),this.maskPreset=="date"&&this.nextTick(()=>this.fp?.close?.()))}parseTime(i){return i.toString().split("+")[0].split(".")[0].replace("T"," ").split(this.withTime?"!":" ")[0]}_formatDate(i){const e=new Intl.DateTimeFormat("ru-RU",{month:"short",day:"numeric"}).format(i).replace(/\d+\s?/,""),d=$VST.DT(i.getTime());return`${d.day} ${e} ${d.year}`+(this.withTime?` в ${d.hour.toString().padStart(2,"0")}:${d.minute.toString().padStart(2,"0")}`:"")+(this.withSeconds?`:${d.second.toString().padStart(2,"0")}`:"")}_setInputMaskValueByDTStamp(i){this.DT=$VST.DT(i),this.$emit("update:modelValue",this.value=this.ISO861UTCMode?this.DT?.[this.maskPreset=="date"?"toPlainDate":"toPlainDateTime"]?.()?.toString().replace("T"," "):this.DT.epochMilliseconds);let e=this.DT.toLocaleString(this.locale||new Intl.DateTimeFormat().resolvedOptions().locale,{year:"numeric",month:"2-digit",day:"2-digit",hour:this.maskPreset=="datetime"||this.maskPreset=="datetimeSec"?"2-digit":void 0,minute:this.maskPreset=="datetime"||this.maskPreset=="datetimeSec"?"2-digit":void 0,second:this.maskPreset=="datetimeSec"?"2-digit":void 0});this.maskPreset=="date"&&(e=this._extractDateOnly(e)??""),e=e.trim().replace(/\s+/g," "),this.$refs.VSTStringField?.setValue?.(e)}_initTemporalUpdateOut=!1;onValueChange(){this._initTemporalUpdateOut=!0,this.DT=$VST.DT(this.value||void 0),this.value||this.fp?.clear?.(),$VST.$emit("$VST.components.fields.date."+btoa(this.fieldName),this.ISO861UTCMode?this.value?$VST.DT(this.value).epochMilliseconds:0:this.value||0)}_watchDT(i){if(this._initTemporalUpdateOut)return this._initTemporalUpdateOut=!1;this._initTemporalUpdateOut=!0,i?this.value=this.ISO861UTCMode?i?.[this.maskPreset=="date"?"toPlainDate":"toPlainDateTime"]?.()?.toString().replace("T"," "):i.epochMilliseconds:this.value=null,this.$emit("update:modelValue",this.value||null)}},r(Ce,"DateField"),Ce);x([I(String,Object)],P.prototype,"placeholder",2);x([I(Boolean)],P.prototype,"force12hours",2);x([I(Boolean)],P.prototype,"withTime",2);x([I(Number)],P.prototype,"hoursIncrement",2);x([I(Number)],P.prototype,"minuteIncrement",2);x([I(Boolean)],P.prototype,"withSeconds",2);x([I(Number)],P.prototype,"secondsIncrement",2);x([I(String)],P.prototype,"locale",2);x([I(Boolean)],P.prototype,"disabled",2);x([I(Boolean)],P.prototype,"ISO861UTCMode",2);x([I(Function)],P.prototype,"dayPreRender",2);x([I(String,Number,Date)],P.prototype,"max",2);x([I(String,Number,Date)],P.prototype,"min",2);x([I(String)],P.prototype,"maxField",2);x([I(String)],P.prototype,"minField",2);x([I(String)],P.prototype,"fieldName",2);x([I(Number,String)],P.prototype,"firstDayOfWeek",2);x([I(Array)],P.prototype,"disabledDays",2);x([I(Boolean)],P.prototype,"disableWeekends",2);x([I(Array)],P.prototype,"disableDaysOfWeek",2);x([St("DT",!0,!0)],P.prototype,"_watchDT",1);P=x([Tt],P);const Zt={class:"cursor-pointer absolute op-0 t-0 l-50% translate-x--50%"},qt={key:2,class:"vst-date-field-calendar-icon w22px h22px text-stone absolute t-13px l-12px z4 cursor-pointer hover:scale-130"};function Qt(a,i,e,d,m,c){const b=lt("VSTStringField"),g=lt("CalendarDaysIcon");return ce(),Tn("div",{class:dt(["vst-date-field d-inline-block my1px w100% flex items-center flex-col relative",{}])},[a.value?yn("",!0):(ce(),Tn("div",{key:0,class:dt(["flex items-center min-w240px bg-white rounded-3xl justify-center text-#c1c7cf border-solid border-1px w100% mx-auto min-h46px!",{"hover:border-stone hover:text-stone border-#c1c7cf":!a.disabled,"border-#D0CCC9FF cursor-no-drop":a.disabled}]),tabindex:"-1",onFocusin:i[0]||(i[0]=v=>a.disabled?null:a.addDate()),onClick:i[1]||(i[1]=v=>a.disabled?null:a.addDate())},At(a.disabled?"----":a.placeholder?.[a.localeInner]||a.placeholder?.en||a.placeholder),35)),a.value?(ce(),xn(b,{key:1,class:"z2",maskPreset:a.maskPreset,placeholder:a.placeholder?.[a.localeInner]||a.placeholder?.en||a.placeholder,onFocus:i[2]||(i[2]=v=>a._inputFocus()),onBlur:i[3]||(i[3]=v=>a._onBlur(v)),onChange:i[4]||(i[4]=(v,M)=>a._changeInput(v,M)),onDateMaskChange:a._dateMaskChange,force12hours:a.force12hours,dtPresetLocale:a.locale,disabled:a.disabled,fontSize:"1rem",onKeypress:i[5]||(i[5]=Ot(v=>a._inputEnter(a.$refs.VSTStringField.value),["enter"])),ref:"VSTStringField"},null,8,["maskPreset","placeholder","onDateMaskChange","force12hours","dtPresetLocale","disabled"])):yn("",!0),Ct(An("div",Zt,[An("input",{ref:"picker",type:"text",readonly:"",onMousedown:i[6]||(i[6]=Pt(()=>{},["prevent"]))},null,544)],512),[[Ft,a.value]]),a.disabled?yn("",!0):(ce(),Tn("div",qt,[xt(g,{onClick:i[7]||(i[7]=v=>a.value?a._inputFocus():a.addDate())})])),a.showCalendar?yn("",!0):(ce(),xn(ct("style"),{key:3},{default:ut(()=>[...i[8]||(i[8]=[ft(".flatpickr-calendar {display: none !important}",-1)])]),_:1})),(ce(),xn(ct("style"),null,{default:ut(()=>[...i[9]||(i[9]=[ft(".flatpickr-calendar {box-shadow: 0px 2px 13px var(--un-shadow-color, rgb(193 193 193)) !important}",-1)])]),_:1}))])}r(Qt,"render");const ta=_t(P,[["render",Qt]]);export{ta as default};
31
+ ***************************************************************************** */var e=r(function(){return e=Object.assign||r(function(g){for(var v,M=1,f=arguments.length;M<f;M++){v=arguments[M];for(var A in v)Object.prototype.hasOwnProperty.call(v,A)&&(g[A]=v[A])}return g},"__assign"),e.apply(this,arguments)},"__assign");function d(b){try{if(typeof b.composedPath=="function"){var g=b.composedPath();return g[0]}return b.target}catch{return b.target}}r(d,"getEventTarget");var m={confirmIcon:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='17' height='17' viewBox='0 0 17 17'> <g> </g> <path d='M15.418 1.774l-8.833 13.485-4.918-4.386 0.666-0.746 4.051 3.614 8.198-12.515 0.836 0.548z' fill='#000000' /> </svg>",confirmText:"OK ",showAlways:!1,theme:"light"};function c(b){var g=e(e({},m),b),v,M="flatpickr-confirm";return function(f){return f.config.noCalendar||f.isMobile?{}:e({onKeyDown:r(function(A,F,L,N){var y=d(N),V=!f.config.time_24hr&&y===f.amPM||f.config.time_24hr&&(f.config.enableSeconds&&y===f.secondElement||!f.config.enableSeconds&&y===f.minuteElement);f.config.enableTime&&N.key==="Tab"&&V?(N.preventDefault(),v.focus()):N.key==="Enter"&&y===v&&f.close()},"onKeyDown"),onReady:r(function(){v=f._createElement("div",M+" "+(g.showAlways?"visible":"")+" "+g.theme+"Theme",g.confirmText),v.tabIndex=-1,v.innerHTML+=g.confirmIcon,v.addEventListener("click",f.close),f.calendarContainer.appendChild(v),f.loadedPlugins.push("confirmDate")},"onReady")},g.showAlways?{}:{onChange:r(function(A,F){var L=f.config.enableTime||f.config.mode==="multiple"||f.loadedPlugins.indexOf("monthSelect")!==-1,N=f.calendarContainer.querySelector("."+M);if(N){if(F&&!f.config.inline&&L&&N)return N.classList.add("visible");N.classList.remove("visible")}},"onChange")})}}return r(c,"confirmDatePlugin"),c}))})(Cn)),Cn.exports}r(Rt,"requireConfirmDate");var Kt=Rt();const Bt=vt(Kt);var Ut=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,x=r((a,i,e,d)=>{for(var m=d>1?void 0:d?Gt(i,e):i,c=a.length-1,b;c>=0;c--)(b=a[c])&&(m=(d?b(i,e,m):b(m))||m);return d&&m&&Ut(i,e,m),m},"__decorateClass"),Ce;let P=(Ce=class extends It{components={VSTStringField:Mt,CalendarDaysIcon:Nt};emits=["change"];placeholder={en:"Select date",ru:"Нажмите для выбора даты"};force12hours=!1;withTime=!1;hoursIncrement=1;minuteIncrement=1;withSeconds=!1;secondsIncrement=1;locale="";disabled=!1;ISO861UTCMode=!1;dayPreRender;max=0;min=0;maxField="";minField="";fieldName="";firstDayOfWeek="auto";disabledDays=[];disableWeekends=!1;disableDaysOfWeek=[];value=null;localeInner="en";maskPreset="date";showCalendar=!0;DT=null;beforeMount(){this.withTime&&(this.maskPreset="datetime",this.withSeconds&&(this.maskPreset="datetimeSec")),this._initTemporalUpdateOut=!0,this.value=this.modelValue||this.inputValue||null,this.maxField&&$VST.$on("$VST.components.fields.date."+btoa(this.maxField),this._onMaxDateFieldChange),this.minField&&$VST.$on("$VST.components.fields.date."+btoa(this.minField),this._onMinDateFieldChange)}mounted(){this.nextTick(()=>{this._initPicker(),this.nextTick(()=>{this.value&&this.addDate()})})}beforeUnmount(){this.maxField&&$VST.$off("$VST.components.fields.date."+btoa(this.maxField),this._onMaxDateFieldChange),this.minField&&$VST.$off("$VST.components.fields.date."+btoa(this.minField),this._onMinDateFieldChange)}_onMaxDateFieldChange(i){this.fp?.set?.("maxDate",i?new Date(i):null)}_onMinDateFieldChange(i){this.fp?.set?.("minDate",i?new Date(i):null)}fp=null;addDate(){const i=$VST.DT(),e=!!this.value;this.value=this.value||(this.ISO861UTCMode?i?.[this.maskPreset=="date"?"toPlainDate":"toPlainDateTime"]?.()?.toString().replace("T"," "):i.epochMilliseconds),this.showCalendar=!1,setTimeout(()=>{this.fp||this._initPicker(),this.nextTick(()=>{this.fp?.open?.(),this.fp?.close?.(),this.nextTick(()=>{!this.disabled&&!e&&this.$refs.VSTStringField?.focus?.(),this.$refs?.picker&&setTimeout(()=>{this.showCalendar=!0,this.$refs.picker.setAttribute("value",this._formatDate(new Date(i.epochMilliseconds))),this.fp?.setDate?.(new Date($VST.DT(this.value).epochMilliseconds)),e||this.fp?.open?.()},250)})})},100)}_extractDateOnly(i){const e=/(\d{2,4}[./_-]\d{2,4}[./_-]\d{2,4})/,d=i.match(e);return d?d?.[0]??null:null}_preventMaskDateChange=!1;_initPicker(){const i=(this.force12hours?"en-US":this.locale)||this.VST.$r.locale,e=i?.split?.("-")?.[0];if(!this.$refs.picker||!e)return;this.localeInner=e;let d;try{const g=new Intl.DateTimeFormat(i,{hour:"numeric"}).resolvedOptions();d=g.hourCycle==="h11"||g.hourCycle==="h12"}catch{d=!1}const m=[g=>{if(this.disableWeekends)return g.getDay()===5||g.getDay()===6;if(this.disableDaysOfWeek?.length)return this.disableDaysOfWeek?.includes(g.getDay()+1)}];for(const g of this.disabledDays??[])m.push(new Date($VST.DT(g).epochMilliseconds));let c;const b=(e?_n?.[e]:_n?.default)||_n?.default||{};this.firstDayOfWeek!="auto"&&(b.firstDayOfWeek=(parseInt(this.firstDayOfWeek)||1)-1),this.fp=_(this.$refs.picker,{enableTime:this.withTime,time_24hr:!d,enableSeconds:this.withSeconds,weekNumbers:!0,dateFormat:"Y-m-d H:i:S",minDate:this.min?$VST.DT(this.min):null,maxDate:this.max?$VST.DT(this.max):null,minuteIncrement:this.minuteIncrement,secondsIncrement:this.minuteIncrement,hoursIncrement:this.hoursIncrement,allowInput:1,closeOnSelect:!1,className:"custom-flatpickr-theme",disable:m,locale:b,plugins:this.withSeconds||this.withTime?[new Bt({confirmIcon:"",showAlways:!0})]:[],onValueUpdate:r(g=>{if(this._preventMaskDateChange)return this._preventMaskDateChange=!1;const v=g?.[0]?.getTime?.()??0;v&&this._setInputMaskValueByDTStamp(v)},"onValueUpdate"),onDayCreate:r((g,v,M,f)=>{let A=null;if(g?.[0])try{A=$VST.DT(new Date(`${M.currentYear}-${(M.currentMonth+1).toString().padStart(2,"0")}-${f.innerText.trim().toString().split(".")[0].padStart(2,"0")}`)),f?.classList?.contains?.("prevMonthDay")&&(A=A.subtract({months:1})),f?.classList?.contains?.("nextMonthDay")&&(A=A.add({months:1})),this.dayPreRender&&(this.dayPreRender(f,A,f?.classList?.contains?.("nextMonthDay")||(f?.classList?.contains?.("prevMonthDay")?!1:null)),f.classList.add("_vst-date-field-pre-rendered"))}catch{}},"onDayCreate"),onMonthChange:c=r((g,v,M,f)=>{for(const A of M.days.children)if(this.dayPreRender&&!A.classList.contains("_vst-date-field-pre-rendered")){let F=$VST.DT(new Date(`${M.currentYear}-${(M.currentMonth+1).toString().padStart(2,"0")}-${f.innerText.trim().toString().split(".")[0].padStart(2,"0")}`));f?.classList?.contains?.("prevMonthDay")&&(F=F.subtract({months:1})),f?.classList?.contains?.("nextMonthDay")&&(F=F.add({months:1})),this.dayPreRender(f,F,f?.classList?.contains?.("nextMonthDay")||(f?.classList?.contains?.("prevMonthDay")?!1:null)),f.classList.add("_vst-date-field-pre-rendered")}},"change"),onYearChange:c}),setTimeout(()=>{this.value&&this._setInputMaskValueByDTStamp(this.value)},150)}_inputFocus(){this.fp&&!this.fp.isOpen&&this.fp.open()}_onBlur(i){const e=!!this.fp?.isOpen;setTimeout(()=>{this.nextTick(()=>{if(!this.$refs.VSTStringField?.value&&i?.includes("_"))this._changeInput("");else if(i?.length&&!i.includes("_")&&(!this.withTime||!e)){const d=this.$refs.VSTStringField.mask,m=this.$refs.VSTStringField.getFromMask(d,i,"MM").toString().padStart(2,"0"),c=this.$refs.VSTStringField.getFromMask(d,i,"YYYY").toString().padStart(4,"0"),b=this.$refs.VSTStringField.getFromMask(d,i,"DD").toString().padStart(2,"0");let g=this.$refs.VSTStringField.getFromMask(d,i,"hh").toString().padStart(2,"0");const v=this.$refs.VSTStringField.getFromMask(d,i,"mm").toString().padStart(2,"0"),M=this.$refs.VSTStringField.getFromMask(d,i,"ss").toString().padStart(2,"0");let f=`${c}-${m}-${b}`;this.withTime&&(f+=` ${g}:${v}:${this.withSeconds?M:"00"}`),e||(this.DT=$VST.DT(f.split(".")[0]),this._setInputMaskValueByDTStamp(this.DT.epochMilliseconds))}this.nextTick(()=>{this.fp&&this.fp.isOpen&&(!this.withTime||!e)&&this.fp.close()})})},150)}_changeInput(i,e=!1){i?.toString?.()?.trim?.()||this.$emit("update:modelValue",this.value=null),this.fp&&!this.fp.isOpen&&!this.value&&!e&&this.fp.open(),e&&!this.withTime&&this.nextTick(()=>{this.addDate()})}_inputEnter(i){this.fp&&this.fp.isOpen&&this.fp.close(),this.$refs?.VSTStringField?.blur?.(),this._onBlur(i)}_dateMaskChange(i){let{month:e,year:d,day:m,hour:c,minute:b,seconds:g,AmPm:v}=i;const M=new Date;e||(e=M.getMonth()+1),m||(m=M.getDate()),(d?.toString?.()?.length??0)<4&&(d=M.getFullYear()),!c&&this.maskPreset!="date"?(c=M.getHours(),c==23?c=0:++c):this.$refs.VSTStringField.is12hours&&(c=c==12&&v=="am"?c-12:c);const f=new Date(d,e-1,m,0,b,g);f.setHours(c),this.fp&&(this.fp?.setDate(f),this.maskPreset=="date"&&this.nextTick(()=>this.fp?.close?.()))}parseTime(i){return i.toString().split("+")[0].split(".")[0].replace("T"," ").split(this.withTime?"!":" ")[0]}_formatDate(i){const e=new Intl.DateTimeFormat("ru-RU",{month:"short",day:"numeric"}).format(i).replace(/\d+\s?/,""),d=$VST.DT(i.getTime());return`${d.day} ${e} ${d.year}`+(this.withTime?` в ${d.hour.toString().padStart(2,"0")}:${d.minute.toString().padStart(2,"0")}`:"")+(this.withSeconds?`:${d.second.toString().padStart(2,"0")}`:"")}_setInputMaskValueByDTStamp(i){this.DT=$VST.DT(i),this.$emit("update:modelValue",this.value=this.ISO861UTCMode?this.DT?.[this.maskPreset=="date"?"toPlainDate":"toPlainDateTime"]?.()?.toString().replace("T"," "):this.DT.epochMilliseconds);let e=this.DT.toLocaleString(this.locale||new Intl.DateTimeFormat().resolvedOptions().locale,{year:"numeric",month:"2-digit",day:"2-digit",hour:this.maskPreset=="datetime"||this.maskPreset=="datetimeSec"?"2-digit":void 0,minute:this.maskPreset=="datetime"||this.maskPreset=="datetimeSec"?"2-digit":void 0,second:this.maskPreset=="datetimeSec"?"2-digit":void 0});this.maskPreset=="date"&&(e=this._extractDateOnly(e)??""),e=e.trim().replace(/\s+/g," "),this.$refs.VSTStringField?.setValue?.(e)}_initTemporalUpdateOut=!1;onValueChange(){this._initTemporalUpdateOut=!0,this.DT=$VST.DT(this.value||void 0),this.value||this.fp?.clear?.(),$VST.$emit("$VST.components.fields.date."+btoa(this.fieldName),this.ISO861UTCMode?this.value?$VST.DT(this.value).epochMilliseconds:0:this.value||0)}_watchDT(i){if(this._initTemporalUpdateOut)return this._initTemporalUpdateOut=!1;this._initTemporalUpdateOut=!0,i?this.value=this.ISO861UTCMode?i?.[this.maskPreset=="date"?"toPlainDate":"toPlainDateTime"]?.()?.toString().replace("T"," "):i.epochMilliseconds:this.value=null,this.$emit("update:modelValue",this.value||null)}},r(Ce,"DateField"),Ce);x([I(String,Object)],P.prototype,"placeholder",2);x([I(Boolean)],P.prototype,"force12hours",2);x([I(Boolean)],P.prototype,"withTime",2);x([I(Number)],P.prototype,"hoursIncrement",2);x([I(Number)],P.prototype,"minuteIncrement",2);x([I(Boolean)],P.prototype,"withSeconds",2);x([I(Number)],P.prototype,"secondsIncrement",2);x([I(String)],P.prototype,"locale",2);x([I(Boolean)],P.prototype,"disabled",2);x([I(Boolean)],P.prototype,"ISO861UTCMode",2);x([I(Function)],P.prototype,"dayPreRender",2);x([I(String,Number,Date)],P.prototype,"max",2);x([I(String,Number,Date)],P.prototype,"min",2);x([I(String)],P.prototype,"maxField",2);x([I(String)],P.prototype,"minField",2);x([I(String)],P.prototype,"fieldName",2);x([I(Number,String)],P.prototype,"firstDayOfWeek",2);x([I(Array)],P.prototype,"disabledDays",2);x([I(Boolean)],P.prototype,"disableWeekends",2);x([I(Array)],P.prototype,"disableDaysOfWeek",2);x([St("DT",!0,!0)],P.prototype,"_watchDT",1);P=x([Tt],P);const Zt={class:"cursor-pointer absolute op-0 t-0 l-50% translate-x--50%"},qt={key:2,class:"vst-date-field-calendar-icon w22px h22px text-stone absolute t-13px l-12px z4 cursor-pointer hover:scale-130"};function Qt(a,i,e,d,m,c){const b=lt("VSTStringField"),g=lt("CalendarDaysIcon");return ce(),Tn("div",{class:dt(["vst-date-field d-inline-block my1px w100% flex items-center flex-col relative",{}])},[a.value?yn("",!0):(ce(),Tn("div",{key:0,class:dt(["flex items-center min-w240px bg-white rounded-3xl justify-center text-#c1c7cf border-solid border-1px w100% mx-auto min-h46px!",{"hover:border-stone hover:text-stone border-#c1c7cf":!a.disabled,"border-#D0CCC9FF cursor-no-drop":a.disabled}]),tabindex:"-1",onFocusin:i[0]||(i[0]=v=>a.disabled?null:a.addDate()),onClick:i[1]||(i[1]=v=>a.disabled?null:a.addDate())},At(a.disabled?"----":a.placeholder?.[a.localeInner]||a.placeholder?.en||a.placeholder),35)),a.value?(ce(),xn(b,{key:1,class:"z2",maskPreset:a.maskPreset,placeholder:a.placeholder?.[a.localeInner]||a.placeholder?.en||a.placeholder,onFocus:i[2]||(i[2]=v=>a._inputFocus()),onBlur:i[3]||(i[3]=v=>a._onBlur(v)),onChange:i[4]||(i[4]=(v,M)=>a._changeInput(v,M)),onDateMaskChange:a._dateMaskChange,force12hours:a.force12hours,dtPresetLocale:a.locale,disabled:a.disabled,fontSize:"1rem",onKeypress:i[5]||(i[5]=Ot(v=>a._inputEnter(a.$refs.VSTStringField.value),["enter"])),ref:"VSTStringField"},null,8,["maskPreset","placeholder","onDateMaskChange","force12hours","dtPresetLocale","disabled"])):yn("",!0),Ct(An("div",Zt,[An("input",{ref:"picker",type:"text",readonly:"",onMousedown:i[6]||(i[6]=Pt(()=>{},["prevent"]))},null,544)],512),[[Ft,a.value]]),a.disabled?yn("",!0):(ce(),Tn("div",qt,[xt(g,{onClick:i[7]||(i[7]=v=>a.value?a._inputFocus():a.addDate())})])),a.showCalendar?yn("",!0):(ce(),xn(ct("style"),{key:3},{default:ut(()=>[...i[8]||(i[8]=[ft(".flatpickr-calendar {display: none !important}",-1)])]),_:1})),(ce(),xn(ct("style"),null,{default:ut(()=>[...i[9]||(i[9]=[ft(".flatpickr-calendar {box-shadow: 0px 2px 13px var(--un-shadow-color, rgb(193 193 193)) !important}",-1)])]),_:1}))])}r(Qt,"render");const aa=_t(P,[["render",Qt]]);export{aa as default};
@@ -1 +1 @@
1
- var e=Object.defineProperty;var r=(x,c)=>e(x,"name",{value:c,configurable:!0});import{Q as f}from"./main-C0xMdd--.js";const a=class a extends f{};r(a,"FieldComponentUnoCss");let t=a;export{t as F};
1
+ var e=Object.defineProperty;var r=(x,c)=>e(x,"name",{value:c,configurable:!0});import{Q as f}from"./main-fCY1fm9G.js";const a=class a extends f{};r(a,"FieldComponentUnoCss");let t=a;export{t as F};
@@ -1 +1 @@
1
- var o=Object.defineProperty;var a=(e,r)=>o(e,"name",{value:r,configurable:!0});import{c as t,o as l,a as c}from"./main-C0xMdd--.js";function i(e,r){return l(),t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[c("path",{"fill-rule":"evenodd",d:"m5.965 4.904 9.131 9.131a6.5 6.5 0 0 0-9.131-9.131Zm8.07 10.192L4.904 5.965a6.5 6.5 0 0 0 9.131 9.131ZM4.343 4.343a8 8 0 1 1 11.314 11.314A8 8 0 0 1 4.343 4.343Z","clip-rule":"evenodd"})])}a(i,"render");export{i as r};
1
+ var o=Object.defineProperty;var a=(e,r)=>o(e,"name",{value:r,configurable:!0});import{c as t,o as l,a as c}from"./main-fCY1fm9G.js";function i(e,r){return l(),t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[c("path",{"fill-rule":"evenodd",d:"m5.965 4.904 9.131 9.131a6.5 6.5 0 0 0-9.131-9.131Zm8.07 10.192L4.904 5.965a6.5 6.5 0 0 0 9.131 9.131ZM4.343 4.343a8 8 0 1 1 11.314 11.314A8 8 0 0 1 4.343 4.343Z","clip-rule":"evenodd"})])}a(i,"render");export{i as r};
@@ -1,4 +1,4 @@
1
- var St=Object.defineProperty;var r=(t,e)=>St(t,"name",{value:e,configurable:!0});import{P as K,W as ot,V as xt,c as Dt,o as It,a as Nt,n as Et,b as Mt}from"./main-C0xMdd--.js";import{F as _t}from"./FieldComponent.vue_vue_type_script_lang-CQ-4feGL.js";var lt="&#8203;";function Y(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}r(Y,"e");function dt(t){return(function(e){if(Array.isArray(e))return Y(e)})(t)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(t)||(function(e,i){if(e){if(typeof e=="string")return Y(e,i);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(e,i)}})(t)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}r(dt,"i");var L={isEnabled:r(function(){var t;return(t=window.TAGIFY_DEBUG)===null||t===void 0||t},"isEnabled"),log:r(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n;this.isEnabled()&&(n=console).log.apply(n,["[Tagify]:"].concat(dt(e)))},"log"),warn:r(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n;this.isEnabled()&&(n=console).warn.apply(n,["[Tagify]:"].concat(dt(e)))},"warn")},q=r(function(t,e,i,n){return t=""+t,e=""+e,n&&(t=t.trim(),e=e.trim()),i?t==e:t.toLowerCase()==e.toLowerCase()},"s"),ut=r(function(t,e){return t&&Array.isArray(t)&&t.map((function(i){return at(i,e)}))},"a");function at(t,e){var i,n={};for(i in t)e.indexOf(i)<0&&(n[i]=t[i]);return n}r(at,"o");function Z(t){return new DOMParser().parseFromString(t.trim(),"text/html").body.firstElementChild}r(Z,"r");function ct(t,e){for(e=e||"previous";t=t[e+"Sibling"];)if(t.nodeType==3)return t}r(ct,"l");function R(t){return typeof t=="string"?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/`|'/g,"&#039;"):t}r(R,"d");function M(t){var e=Object.prototype.toString.call(t).split(" ")[1].slice(0,-1);return t===Object(t)&&e!="Array"&&e!="Function"&&e!="RegExp"&&e!="HTMLUnknownElement"}r(M,"c");function w(t,e,i){var n,s;function a(o,l){for(var d in l)if(l.hasOwnProperty(d)){if(M(l[d])){M(o[d])?a(o[d],l[d]):o[d]=Object.assign({},l[d]);continue}if(Array.isArray(l[d])){o[d]=Object.assign([],l[d]);continue}o[d]=l[d]}}return r(a,"a"),n=t,((s=Object)!=null&&typeof Symbol<"u"&&s[Symbol.hasInstance]?s[Symbol.hasInstance](n):n instanceof s)||(t={}),a(t,e),i&&a(t,i),t}r(w,"u");function gt(){var t=[],e={},i=!0,n=!1,s=void 0;try{for(var a,o=arguments[Symbol.iterator]();!(i=(a=o.next()).done);i=!0){var l=a.value,d=!0,u=!1,c=void 0;try{for(var g,h=l[Symbol.iterator]();!(d=(g=h.next()).done);d=!0){var f=g.value;M(f)?e[f.value]||(t.push(f),e[f.value]=1):t.includes(f)||t.push(f)}}catch(p){u=!0,c=p}finally{try{d||h.return==null||h.return()}finally{if(u)throw c}}}}catch(p){n=!0,s=p}finally{try{i||o.return==null||o.return()}finally{if(n)throw s}}return t}r(gt,"g");function J(t){return String.prototype.normalize?typeof t=="string"?t.normalize("NFD").replace(/[\u0300-\u036f]/g,""):void 0:t}r(J,"h");var ht=r(function(){return/(?=.*chrome)(?=.*android)/i.test(navigator.userAgent)},"p");function pt(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}r(pt,"f");function B(t){var e,i=wt.call(this,t),n=t==null||(e=t.classList)===null||e===void 0?void 0:e.contains(this.settings.classNames.tag);return i&&n}r(B,"m");function ft(t){return wt.call(this,t)&&t?.closest(this.settings.classNames.tagSelector)}r(ft,"v");function wt(t){var e;return(t==null||(e=t.closest)===null||e===void 0?void 0:e.call(t,this.settings.classNames.namespaceSelector))===this.DOM.scope}r(wt,"b");function Tt(t,e){var i=window.getSelection();return e=e||i.getRangeAt(0),typeof t=="string"&&(t=document.createTextNode(t)),e&&(e.deleteContents(),e.insertNode(t)),t}r(Tt,"w");function y(t,e,i){return t?(e&&(t.__tagifyTagData=i?e:w({},t.__tagifyTagData||{},e)),t.__tagifyTagData):(L.warn("tag element doesn't exist",{tagElm:t,data:e}),e)}r(y,"y");function V(t){if(t&&t.parentNode){var e=t,i=window.getSelection(),n=i.getRangeAt(0);i.rangeCount&&(n.setStartAfter(e),n.collapse(!0),i.removeAllRanges(),i.addRange(n))}}r(V,"T");function Ot(t,e){t.forEach((function(i){if(y(i.previousSibling)||!i.previousSibling){var n=document.createTextNode("​");i.before(n),e&&V(n)}}))}r(Ot,"O");var tt={delimiters:",",pattern:null,tagTextProp:"value",maxTags:1/0,callbacks:{},addTagOnBlur:!0,addTagOn:["blur","tab","enter"],onChangeAfterBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,userInput:!0,focusable:!0,focusInputOnRemove:!0,keepInvalidTags:!1,createInvalidTags:!0,mixTagsAllowedAfter:/,|\.|\:|\s/,mixTagsInterpolator:["[[","]]"],backspace:!0,skipInvalid:!1,pasteAsTags:!0,editTags:{clicks:2,keepInvalid:!0},transformTag:r(function(){},"transformTag"),trim:!0,a11y:{focusableTags:!1},mixMode:{insertAfterTag:" "},autoComplete:{enabled:!0,rightKey:!1,tabKey:!1},classNames:{namespace:"tagify",mixMode:"tagify--mix",selectMode:"tagify--select",input:"tagify__input",focus:"tagify--focus",tagNoAnimation:"tagify--noAnim",tagInvalid:"tagify--invalid",tagNotAllowed:"tagify--notAllowed",scopeLoading:"tagify--loading",hasMaxTags:"tagify--hasMaxTags",hasNoTags:"tagify--noTags",empty:"tagify--empty",inputInvalid:"tagify__input--invalid",dropdown:"tagify__dropdown",dropdownWrapper:"tagify__dropdown__wrapper",dropdownHeader:"tagify__dropdown__header",dropdownFooter:"tagify__dropdown__footer",dropdownItem:"tagify__dropdown__item",dropdownItemActive:"tagify__dropdown__item--active",dropdownItemHidden:"tagify__dropdown__item--hidden",dropdownItemSelected:"tagify__dropdown__item--selected",dropdownInital:"tagify__dropdown--initial",tag:"tagify__tag",tagText:"tagify__tag-text",tagX:"tagify__tag__removeBtn",tagLoading:"tagify__tag--loading",tagEditing:"tagify__tag--editable",tagFlash:"tagify__tag--flash",tagHide:"tagify__tag--hide"},dropdown:{classname:"",enabled:2,maxItems:10,searchKeys:["value","searchBy"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,includeSelectedTags:!1,escapeHTML:!0,highlightFirst:!0,closeOnSelect:!0,clearOnSelect:!0,position:"all",appendTarget:null},hooks:{beforeRemoveTag:r(function(){return Promise.resolve()},"beforeRemoveTag"),beforePaste:r(function(){return Promise.resolve()},"beforePaste"),suggestionClick:r(function(){return Promise.resolve()},"suggestionClick"),beforeKeyDown:r(function(){return Promise.resolve()},"beforeKeyDown")}};function At(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}r(At,"x");function Ct(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(i).filter((function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})))),n.forEach((function(s){At(t,s,i[s])}))}return t}r(Ct,"S");function kt(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(i,n){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(i);s.push.apply(s,a)}return s})(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))})),t}r(kt,"I");function et(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}r(et,"E");function Vt(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}r(Vt,"M");function Lt(t){return(function(e){if(Array.isArray(e))return et(e)})(t)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(t)||(function(e,i){if(e){if(typeof e=="string")return et(e,i);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return et(e,i)}})(t)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}r(Lt,"N");function Pt(){for(var t in this.dropdown={},this._dropdown)this.dropdown[t]=typeof this._dropdown[t]=="function"?this._dropdown[t].bind(this):this._dropdown[t];this.dropdown.refs(),this.DOM.dropdown.__tagify=this}r(Pt,"A");var $,H,jt=($=(function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(i).filter((function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})))),n.forEach((function(s){Vt(t,s,i[s])}))}return t})({},{events:{binding:r(function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],e=this.dropdown.events.callbacks,i=this.listeners.dropdown=this.listeners.dropdown||{position:this.dropdown.position.bind(this,null),onKeyDown:e.onKeyDown.bind(this),onMouseOver:e.onMouseOver.bind(this),onMouseLeave:e.onMouseLeave.bind(this),onClick:e.onClick.bind(this),onScroll:e.onScroll.bind(this)},n=t?"addEventListener":"removeEventListener";this.settings.dropdown.position!="manual"&&(document[n]("scroll",i.position,!0),window[n]("resize",i.position),window[n]("keydown",i.onKeyDown)),this.DOM.dropdown[n]("mouseover",i.onMouseOver),this.DOM.dropdown[n]("mouseleave",i.onMouseLeave),this.DOM.dropdown[n]("mousedown",i.onClick),this.DOM.dropdown.content[n]("scroll",i.onScroll)},"binding"),callbacks:{onKeyDown:r(function(t){var e=this;if(this.state.hasFocus&&!this.state.composing){var i=this.settings,n=i.dropdown.includeSelectedTags,s=this.DOM.dropdown.querySelector(i.classNames.dropdownItemActiveSelector),a=this.dropdown.getSuggestionDataByNode(s),o=i.mode=="mix",l=i.mode=="select";i.hooks.beforeKeyDown(t,{tagify:this}).then((function(d){switch(t.key){case"ArrowDown":case"ArrowUp":case"Down":case"Up":t.preventDefault();var u=e.dropdown.getAllSuggestionsRefs(),c=t.key=="ArrowUp"||t.key=="Up";s&&(s=e.dropdown.getNextOrPrevOption(s,!c)),s&&s.matches(i.classNames.dropdownItemSelector)||(s=u[c?u.length-1:0]),e.dropdown.highlightOption(s,!0);break;case"PageUp":case"PageDown":var g;t.preventDefault();var h=e.dropdown.getAllSuggestionsRefs(),f=Math.floor(e.DOM.dropdown.content.clientHeight/((g=h[0])===null||g===void 0?void 0:g.offsetHeight))||1,p=t.key==="PageUp";if(s){var m=h.indexOf(s),v=p?Math.max(0,m-f):Math.min(h.length-1,m+f);s=h[v]}else s=h[0];e.dropdown.highlightOption(s,!0);break;case"Home":case"End":t.preventDefault();var T=e.dropdown.getAllSuggestionsRefs();s=T[t.key==="Home"?0:T.length-1],e.dropdown.highlightOption(s,!0);break;case"Escape":case"Esc":e.dropdown.hide();break;case"ArrowRight":if(e.state.actions.ArrowLeft||i.autoComplete.rightKey)return;case"Tab":var D=!i.autoComplete.rightKey||!i.autoComplete.tabKey;if(!o&&!l&&s&&D&&!e.state.editing&&a){t.preventDefault();var I=e.dropdown.getMappedValue(a);return e.state.autoCompleteData=a,e.input.autocomplete.set.call(e,I),!1}return!0;case"Enter":t.preventDefault(),e.state.actions.selectOption=!0,setTimeout((function(){return e.state.actions.selectOption=!1}),100),i.hooks.suggestionClick(t,{tagify:e,tagData:a,suggestionElm:s}).then((function(){if(s){var b=n?s:e.dropdown.getNextOrPrevOption(s,!c);e.dropdown.selectOption(s,t,(function(){if(b){var k=b.getAttribute("value");b=e.dropdown.getSuggestionNodeByValue(k),e.dropdown.highlightOption(b)}}))}else e.dropdown.hide(),o||e.addTags(e.state.inputText.trim(),!0)})).catch((function(b){return L.warn(b)}));break;case"Backspace":if(o||e.state.editing.scope)return;var N=e.input.raw.call(e);N!=""&&N.charCodeAt(0)!=8203||(i.backspace===!0?e.removeTags():i.backspace=="edit"&&setTimeout(e.editTag.bind(e),0))}}))}},"onKeyDown"),onMouseOver:r(function(t){var e=t.target.closest(this.settings.classNames.dropdownItemSelector);this.dropdown.highlightOption(e)},"onMouseOver"),onMouseLeave:r(function(t){this.dropdown.highlightOption()},"onMouseLeave"),onClick:r(function(t){var e=this;if(t.button==0&&t.target!=this.DOM.dropdown&&t.target!=this.DOM.dropdown.content){var i=t.target.closest(this.settings.classNames.dropdownItemSelector),n=this.dropdown.getSuggestionDataByNode(i);this.state.actions.selectOption=!0,setTimeout((function(){return e.state.actions.selectOption=!1}),100),this.settings.hooks.suggestionClick(t,{tagify:this,tagData:n,suggestionElm:i}).then((function(){i?e.dropdown.selectOption(i,t):e.dropdown.hide()})).catch((function(s){return L.warn(s)}))}},"onClick"),onScroll:r(function(t){var e=t.target,i=e.scrollTop/(e.scrollHeight-e.parentNode.clientHeight)*100;this.trigger("dropdown:scroll",{percentage:Math.round(i)})},"onScroll")}},refilter:r(function(t){t=t||this.state.dropdown.query||"",this.suggestedListItems=this.dropdown.filterListItems(t),this.dropdown.fill(),this.suggestedListItems.length||this.dropdown.hide(),this.trigger("dropdown:updated",this.DOM.dropdown)},"refilter"),getSuggestionDataByNode:r(function(t){for(var e,i=t&&t.getAttribute("value"),n=this.suggestedListItems.length;n--;){if(M(e=this.suggestedListItems[n])&&e.value==i)return e;if(e==i)return{value:e}}},"getSuggestionDataByNode"),getSuggestionNodeByValue:r(function(t){return this.dropdown.getAllSuggestionsRefs().find((function(e){return e.getAttribute("value")===t}))},"getSuggestionNodeByValue"),getNextOrPrevOption:r(function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.dropdown.getAllSuggestionsRefs(),n=i.findIndex((function(s){return s===t}));return e?i[n+1]:i[n-1]},"getNextOrPrevOption"),highlightOption:r(function(t,e){var i,n=this.settings.classNames.dropdownItemActive;if(this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(n),this.state.ddItemElm.removeAttribute("aria-selected")),!t)return this.state.ddItemData=null,this.state.ddItemElm=null,void this.input.autocomplete.suggest.call(this);i=this.dropdown.getSuggestionDataByNode(t),this.state.ddItemData=i,this.state.ddItemElm=t,t.classList.add(n),t.setAttribute("aria-selected",!0),e&&(t.parentNode.scrollTop=t.clientHeight+t.offsetTop-t.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,i),this.dropdown.position())},"highlightOption"),selectOption:r(function(t,e,i){var n=this,s=this.settings,a=s.dropdown.includeSelectedTags,o=s.dropdown,l=o.clearOnSelect,d=o.closeOnSelect;if(!t)return this.addTags(this.state.inputText,!0),void(d&&this.dropdown.hide());e=e||{};var u=t.getAttribute("value"),c=u=="noMatch",g=s.mode=="mix",h=this.suggestedListItems.find((function(p){var m;return((m=p.value)!==null&&m!==void 0?m:p)==u}));if(this.trigger("dropdown:select",{data:h,elm:t,event:e}),h||c){if(this.state.editing){var f=this.normalizeTags([h])[0];h=s.transformTag.call(this,f)||f,this.onEditTagDone(null,w({__isValid:!0},h))}else this[g?"addMixTags":"addTags"]([h||this.input.raw.call(this)],l);(g||this.DOM.input.parentNode)&&(setTimeout((function(){n.DOM.input.focus(),n.toggleFocusClass(!0)})),d&&setTimeout(this.dropdown.hide.bind(this)),a?i&&i():(t.addEventListener("transitionend",(function(){n.dropdown.fillHeaderFooter(),setTimeout((function(){t.remove(),n.dropdown.refilter(),i&&i()}),100)}),{once:!0}),t.classList.add(this.settings.classNames.dropdownItemHidden)))}else d&&setTimeout(this.dropdown.hide.bind(this))},"selectOption"),selectAll:r(function(t){this.suggestedListItems.length=0,this.dropdown.hide(),this.dropdown.filterListItems("");var e=this.dropdown.filterListItems("");return t||(e=this.state.dropdown.suggestions),this.addTags(e,!0),this},"selectAll"),filterListItems:r(function(t,e){var i,n,s,a,o,l,d=r(function(){var b,k,P=void 0,j=void 0;b=p[I],n=((k=Object)!=null&&typeof Symbol<"u"&&k[Symbol.hasInstance]?k[Symbol.hasInstance](b):b instanceof k)?p[I]:{value:p[I]};var O,S=Object.keys(n).some((function(x){return D.includes(x)}))?D:["value"];g.fuzzySearch&&!e.exact?(a=S.reduce((function(x,E){return x+" "+(n[E]||"")}),"").toLowerCase().trim(),g.accentedSearch&&(a=J(a),l=J(l)),P=a.indexOf(l)==0,j=a===l,O=a,s=l.toLowerCase().split(" ").every((function(x){return O.includes(x.toLowerCase())}))):(P=!0,s=S.some((function(x){var E=""+(n[x]||"");return g.accentedSearch&&(E=J(E),l=J(l)),g.caseSensitive||(E=E.toLowerCase()),j=E===l,e.exact?E===l:E.indexOf(l)==0}))),o=!g.includeSelectedTags&&i.isTagDuplicate(M(n)?n.value:n),s&&!o&&(j&&P?f.push(n):g.sortby=="startsWith"&&P?h.unshift(n):h.push(n))},"l"),u=this,c=this.settings,g=c.dropdown,h=(e=e||{},[]),f=[],p=c.whitelist,m=g.maxItems>=0?g.maxItems:1/0,v=g.includeSelectedTags,T=typeof g.sortby=="function",D=g.searchKeys,I=0;if(!(t=c.mode=="select"&&this.value.length&&this.value[0][c.tagTextProp]==t?"":t)||!D.length){h=v?p:p.filter((function(b){return!u.isTagDuplicate(M(b)?b.value:b)}));var N=T?g.sortby(h,l):h.slice(0,m);return this.state.dropdown.suggestions=N,N}for(l=g.caseSensitive?""+t:(""+t).toLowerCase();I<p.length;I++)i=this,d();return this.state.dropdown.suggestions=f.concat(h),N=T?g.sortby(f.concat(h),l):f.concat(h).slice(0,m),this.state.dropdown.suggestions=N,N},"filterListItems"),getMappedValue:r(function(t){var e=this.settings.dropdown.mapValueTo;return e?typeof e=="function"?e(t):t[e]||t.value:t.value},"getMappedValue"),createListHTML:r(function(t){var e=this;return w([],t).map((function(i,n){typeof i!="string"&&typeof i!="number"||(i={value:i});var s=e.dropdown.getMappedValue(i);return s=typeof s=="string"&&e.settings.dropdown.escapeHTML?R(s):s,e.settings.templates.dropdownItem.apply(e,[kt(Ct({},i),{mappedValue:s}),e])})).join("")},"createListHTML")}),H=(H={refs:r(function(){this.DOM.dropdown=this.parseTemplate("dropdown",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-wrapper']")},"refs"),getHeaderRef:r(function(){return this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-header']")},"getHeaderRef"),getFooterRef:r(function(){return this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-footer']")},"getFooterRef"),getAllSuggestionsRefs:r(function(){return Lt(this.DOM.dropdown.content.querySelectorAll(this.settings.classNames.dropdownItemSelector))},"getAllSuggestionsRefs"),show:r(function(t){var e,i,n,s=this,a=this.settings,o=a.mode=="mix"&&!a.enforceWhitelist,l=!a.whitelist||!a.whitelist.length,d=a.dropdown.position=="manual";if(t=t===void 0?this.state.inputText:t,!(l&&!o&&!a.templates.dropdownItemNoMatch||a.dropdown.enabled===!1||this.state.isLoading||this.settings.readonly)){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems(t),t&&!this.suggestedListItems.length&&(this.trigger("dropdown:noMatch",t),a.templates.dropdownItemNoMatch&&(n=a.templates.dropdownItemNoMatch.call(this,{value:t}))),!n){if(this.suggestedListItems.length)t&&o&&!this.state.editing.scope&&!q(this.suggestedListItems[0].value,t)&&this.suggestedListItems.unshift({value:t});else{if(!t||!o||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide();this.suggestedListItems=[{value:t}]}i=""+(M(e=this.suggestedListItems[0])?e.value:e),a.autoComplete&&i&&i.indexOf(t)==0&&this.input.autocomplete.suggest.call(this,e)}this.dropdown.fill(n),a.dropdown.highlightFirst&&this.dropdown.highlightOption(this.DOM.dropdown.content.querySelector(a.classNames.dropdownItemSelector)),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=t||!0,this.state.dropdown.query=t,this.setStateSelection(),d||setTimeout((function(){s.dropdown.position(),s.dropdown.render()})),setTimeout((function(){s.trigger("dropdown:show",s.DOM.dropdown)}))}},"show"),hide:r(function(t){var e=this,i=this.DOM,n=i.scope,s=i.dropdown,a=this.settings.dropdown.position=="manual"&&!t;if(s&&document.body.contains(s)&&!a)return window.removeEventListener("resize",this.dropdown.position),this.dropdown.events.binding.call(this,!1),n.setAttribute("aria-expanded",!1),s.parentNode.removeChild(s),setTimeout((function(){e.state.dropdown.visible=!1}),100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger("dropdown:hide",s),this},"hide"),toggle:r(function(t){this.dropdown[this.state.dropdown.visible&&!t?"hide":"show"]()},"toggle"),getAppendTarget:r(function(){var t=this.settings.dropdown;return typeof t.appendTarget=="function"?t.appendTarget():t.appendTarget},"getAppendTarget"),render:r(function(){var t,e,i,n=this,s=(t=this.DOM.dropdown,(i=t.cloneNode(!0)).style.cssText="position:fixed; top:-9999px; opacity:0",document.body.appendChild(i),e=i.clientHeight,i.parentNode.removeChild(i),e),a=this.settings,o=this.dropdown.getAppendTarget();return a.dropdown.enabled===!1||(this.DOM.scope.setAttribute("aria-expanded",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(a.classNames.dropdownInital),this.dropdown.position(s),o.appendChild(this.DOM.dropdown),setTimeout((function(){return n.DOM.dropdown.classList.remove(a.classNames.dropdownInital)})))),this},"render"),fill:r(function(t){t=typeof t=="string"?t:this.dropdown.createListHTML(t||this.suggestedListItems);var e,i=this.settings.templates.dropdownContent.call(this,t);this.DOM.dropdown.content.innerHTML=(e=i)?e.replace(/\>[\r\n ]+\</g,"><").split(/>\s+</).join("><").trim():""},"fill"),fillHeaderFooter:r(function(){var t=this.dropdown.filterListItems(this.state.dropdown.query),e=this.parseTemplate("dropdownHeader",[t]),i=this.parseTemplate("dropdownFooter",[t]),n=this.dropdown.getHeaderRef(),s=this.dropdown.getFooterRef();e&&n?.parentNode.replaceChild(e,n),i&&s?.parentNode.replaceChild(i,s)},"fillHeaderFooter"),position:r(function(t){var e=this.settings.dropdown,i=this.dropdown.getAppendTarget();if(e.position!="manual"&&i){var n,s,a,o,l,d,u,c,g,h,f=this.DOM.dropdown,p=e.RTL,m=i===document.body,v=i===this.DOM.scope,T=m?window.pageYOffset:i.scrollTop,D=document.fullscreenElement||document.webkitFullscreenElement||document.documentElement,I=D.clientHeight,N=Math.max(D.clientWidth||0,window.innerWidth||0),b=N>480?e.position:"all",k=this.DOM[b=="input"?"input":"scope"];if(t=t||f.clientHeight,this.state.dropdown.visible){if(b=="text"?(a=(n=(function(){var O=document.getSelection();if(O.rangeCount){var S,x,E=O.getRangeAt(0),z=E.startContainer,Q=E.startOffset;if(Q>0)return(x=document.createRange()).setStart(z,Q-1),x.setEnd(z,Q),{left:(S=x.getBoundingClientRect()).right,top:S.top,bottom:S.bottom};if(z.getBoundingClientRect)return z.getBoundingClientRect()}return{left:-9999,top:-9999}})()).bottom,s=n.top,o=n.left,l="auto"):(d=(function(O){var S=0,x=0;for(O=O.parentNode;O&&O!=D;)S+=O.offsetTop||0,x+=O.offsetLeft||0,O=O.parentNode;return{top:S,left:x}})(i),n=k.getBoundingClientRect(),s=v?-1:n.top-d.top,a=(v?n.height:n.bottom-d.top)-1,o=v?-1:n.left-d.left,l=n.width+"px"),!m){var P=(function(){for(var O=0,S=e.appendTarget.parentNode;S;)O+=S.scrollTop||0,S=S.parentNode;return O})();s+=P,a+=P}var j;s=Math.floor(s),a=Math.ceil(a),c=N-o<120,g=((u=(j=e.placeAbove)!==null&&j!==void 0?j:I-n.bottom<t)?s:a)+T,h=o+(p&&n.width||0)+window.pageXOffset,h=b=="text"&&c?"right: 0;":"left: ".concat(h,"px;"),f.style.cssText="".concat(h," top: ").concat(g,"px; min-width: ").concat(l,"; max-width: ").concat(l),f.setAttribute("placement",u?"top":"bottom"),f.setAttribute("position",b)}}},"position")})!=null?H:{},Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(H)):(function(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(H)).forEach((function(t){Object.defineProperty($,t,Object.getOwnPropertyDescriptor(H,t))})),$),U="@yaireo/tagify/",Ft={empty:"empty",exceed:"number of tags exceeded",pattern:"pattern mismatch",duplicate:"already exists",notAllowed:"not allowed"},Rt={wrapper:r(function(t,e){return'<tags class="'.concat(e.classNames.namespace," ").concat(e.mode?"".concat(e.classNames[e.mode+"Mode"]):""," ").concat(t.className,`"
1
+ var St=Object.defineProperty;var r=(t,e)=>St(t,"name",{value:e,configurable:!0});import{P as K,W as ot,V as xt,c as Dt,o as It,a as Nt,n as Et,b as Mt}from"./main-fCY1fm9G.js";import{F as _t}from"./FieldComponent.vue_vue_type_script_lang-DNMlGnCe.js";var lt="&#8203;";function Y(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}r(Y,"e");function dt(t){return(function(e){if(Array.isArray(e))return Y(e)})(t)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(t)||(function(e,i){if(e){if(typeof e=="string")return Y(e,i);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(e,i)}})(t)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}r(dt,"i");var L={isEnabled:r(function(){var t;return(t=window.TAGIFY_DEBUG)===null||t===void 0||t},"isEnabled"),log:r(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n;this.isEnabled()&&(n=console).log.apply(n,["[Tagify]:"].concat(dt(e)))},"log"),warn:r(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n;this.isEnabled()&&(n=console).warn.apply(n,["[Tagify]:"].concat(dt(e)))},"warn")},q=r(function(t,e,i,n){return t=""+t,e=""+e,n&&(t=t.trim(),e=e.trim()),i?t==e:t.toLowerCase()==e.toLowerCase()},"s"),ut=r(function(t,e){return t&&Array.isArray(t)&&t.map((function(i){return at(i,e)}))},"a");function at(t,e){var i,n={};for(i in t)e.indexOf(i)<0&&(n[i]=t[i]);return n}r(at,"o");function Z(t){return new DOMParser().parseFromString(t.trim(),"text/html").body.firstElementChild}r(Z,"r");function ct(t,e){for(e=e||"previous";t=t[e+"Sibling"];)if(t.nodeType==3)return t}r(ct,"l");function R(t){return typeof t=="string"?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/`|'/g,"&#039;"):t}r(R,"d");function M(t){var e=Object.prototype.toString.call(t).split(" ")[1].slice(0,-1);return t===Object(t)&&e!="Array"&&e!="Function"&&e!="RegExp"&&e!="HTMLUnknownElement"}r(M,"c");function w(t,e,i){var n,s;function a(o,l){for(var d in l)if(l.hasOwnProperty(d)){if(M(l[d])){M(o[d])?a(o[d],l[d]):o[d]=Object.assign({},l[d]);continue}if(Array.isArray(l[d])){o[d]=Object.assign([],l[d]);continue}o[d]=l[d]}}return r(a,"a"),n=t,((s=Object)!=null&&typeof Symbol<"u"&&s[Symbol.hasInstance]?s[Symbol.hasInstance](n):n instanceof s)||(t={}),a(t,e),i&&a(t,i),t}r(w,"u");function gt(){var t=[],e={},i=!0,n=!1,s=void 0;try{for(var a,o=arguments[Symbol.iterator]();!(i=(a=o.next()).done);i=!0){var l=a.value,d=!0,u=!1,c=void 0;try{for(var g,h=l[Symbol.iterator]();!(d=(g=h.next()).done);d=!0){var f=g.value;M(f)?e[f.value]||(t.push(f),e[f.value]=1):t.includes(f)||t.push(f)}}catch(p){u=!0,c=p}finally{try{d||h.return==null||h.return()}finally{if(u)throw c}}}}catch(p){n=!0,s=p}finally{try{i||o.return==null||o.return()}finally{if(n)throw s}}return t}r(gt,"g");function J(t){return String.prototype.normalize?typeof t=="string"?t.normalize("NFD").replace(/[\u0300-\u036f]/g,""):void 0:t}r(J,"h");var ht=r(function(){return/(?=.*chrome)(?=.*android)/i.test(navigator.userAgent)},"p");function pt(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}r(pt,"f");function B(t){var e,i=wt.call(this,t),n=t==null||(e=t.classList)===null||e===void 0?void 0:e.contains(this.settings.classNames.tag);return i&&n}r(B,"m");function ft(t){return wt.call(this,t)&&t?.closest(this.settings.classNames.tagSelector)}r(ft,"v");function wt(t){var e;return(t==null||(e=t.closest)===null||e===void 0?void 0:e.call(t,this.settings.classNames.namespaceSelector))===this.DOM.scope}r(wt,"b");function Tt(t,e){var i=window.getSelection();return e=e||i.getRangeAt(0),typeof t=="string"&&(t=document.createTextNode(t)),e&&(e.deleteContents(),e.insertNode(t)),t}r(Tt,"w");function y(t,e,i){return t?(e&&(t.__tagifyTagData=i?e:w({},t.__tagifyTagData||{},e)),t.__tagifyTagData):(L.warn("tag element doesn't exist",{tagElm:t,data:e}),e)}r(y,"y");function V(t){if(t&&t.parentNode){var e=t,i=window.getSelection(),n=i.getRangeAt(0);i.rangeCount&&(n.setStartAfter(e),n.collapse(!0),i.removeAllRanges(),i.addRange(n))}}r(V,"T");function Ot(t,e){t.forEach((function(i){if(y(i.previousSibling)||!i.previousSibling){var n=document.createTextNode("​");i.before(n),e&&V(n)}}))}r(Ot,"O");var tt={delimiters:",",pattern:null,tagTextProp:"value",maxTags:1/0,callbacks:{},addTagOnBlur:!0,addTagOn:["blur","tab","enter"],onChangeAfterBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,userInput:!0,focusable:!0,focusInputOnRemove:!0,keepInvalidTags:!1,createInvalidTags:!0,mixTagsAllowedAfter:/,|\.|\:|\s/,mixTagsInterpolator:["[[","]]"],backspace:!0,skipInvalid:!1,pasteAsTags:!0,editTags:{clicks:2,keepInvalid:!0},transformTag:r(function(){},"transformTag"),trim:!0,a11y:{focusableTags:!1},mixMode:{insertAfterTag:" "},autoComplete:{enabled:!0,rightKey:!1,tabKey:!1},classNames:{namespace:"tagify",mixMode:"tagify--mix",selectMode:"tagify--select",input:"tagify__input",focus:"tagify--focus",tagNoAnimation:"tagify--noAnim",tagInvalid:"tagify--invalid",tagNotAllowed:"tagify--notAllowed",scopeLoading:"tagify--loading",hasMaxTags:"tagify--hasMaxTags",hasNoTags:"tagify--noTags",empty:"tagify--empty",inputInvalid:"tagify__input--invalid",dropdown:"tagify__dropdown",dropdownWrapper:"tagify__dropdown__wrapper",dropdownHeader:"tagify__dropdown__header",dropdownFooter:"tagify__dropdown__footer",dropdownItem:"tagify__dropdown__item",dropdownItemActive:"tagify__dropdown__item--active",dropdownItemHidden:"tagify__dropdown__item--hidden",dropdownItemSelected:"tagify__dropdown__item--selected",dropdownInital:"tagify__dropdown--initial",tag:"tagify__tag",tagText:"tagify__tag-text",tagX:"tagify__tag__removeBtn",tagLoading:"tagify__tag--loading",tagEditing:"tagify__tag--editable",tagFlash:"tagify__tag--flash",tagHide:"tagify__tag--hide"},dropdown:{classname:"",enabled:2,maxItems:10,searchKeys:["value","searchBy"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,includeSelectedTags:!1,escapeHTML:!0,highlightFirst:!0,closeOnSelect:!0,clearOnSelect:!0,position:"all",appendTarget:null},hooks:{beforeRemoveTag:r(function(){return Promise.resolve()},"beforeRemoveTag"),beforePaste:r(function(){return Promise.resolve()},"beforePaste"),suggestionClick:r(function(){return Promise.resolve()},"suggestionClick"),beforeKeyDown:r(function(){return Promise.resolve()},"beforeKeyDown")}};function At(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}r(At,"x");function Ct(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(i).filter((function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})))),n.forEach((function(s){At(t,s,i[s])}))}return t}r(Ct,"S");function kt(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(i,n){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(i);s.push.apply(s,a)}return s})(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))})),t}r(kt,"I");function et(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}r(et,"E");function Vt(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}r(Vt,"M");function Lt(t){return(function(e){if(Array.isArray(e))return et(e)})(t)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(t)||(function(e,i){if(e){if(typeof e=="string")return et(e,i);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return et(e,i)}})(t)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}r(Lt,"N");function Pt(){for(var t in this.dropdown={},this._dropdown)this.dropdown[t]=typeof this._dropdown[t]=="function"?this._dropdown[t].bind(this):this._dropdown[t];this.dropdown.refs(),this.DOM.dropdown.__tagify=this}r(Pt,"A");var $,H,jt=($=(function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(i).filter((function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})))),n.forEach((function(s){Vt(t,s,i[s])}))}return t})({},{events:{binding:r(function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],e=this.dropdown.events.callbacks,i=this.listeners.dropdown=this.listeners.dropdown||{position:this.dropdown.position.bind(this,null),onKeyDown:e.onKeyDown.bind(this),onMouseOver:e.onMouseOver.bind(this),onMouseLeave:e.onMouseLeave.bind(this),onClick:e.onClick.bind(this),onScroll:e.onScroll.bind(this)},n=t?"addEventListener":"removeEventListener";this.settings.dropdown.position!="manual"&&(document[n]("scroll",i.position,!0),window[n]("resize",i.position),window[n]("keydown",i.onKeyDown)),this.DOM.dropdown[n]("mouseover",i.onMouseOver),this.DOM.dropdown[n]("mouseleave",i.onMouseLeave),this.DOM.dropdown[n]("mousedown",i.onClick),this.DOM.dropdown.content[n]("scroll",i.onScroll)},"binding"),callbacks:{onKeyDown:r(function(t){var e=this;if(this.state.hasFocus&&!this.state.composing){var i=this.settings,n=i.dropdown.includeSelectedTags,s=this.DOM.dropdown.querySelector(i.classNames.dropdownItemActiveSelector),a=this.dropdown.getSuggestionDataByNode(s),o=i.mode=="mix",l=i.mode=="select";i.hooks.beforeKeyDown(t,{tagify:this}).then((function(d){switch(t.key){case"ArrowDown":case"ArrowUp":case"Down":case"Up":t.preventDefault();var u=e.dropdown.getAllSuggestionsRefs(),c=t.key=="ArrowUp"||t.key=="Up";s&&(s=e.dropdown.getNextOrPrevOption(s,!c)),s&&s.matches(i.classNames.dropdownItemSelector)||(s=u[c?u.length-1:0]),e.dropdown.highlightOption(s,!0);break;case"PageUp":case"PageDown":var g;t.preventDefault();var h=e.dropdown.getAllSuggestionsRefs(),f=Math.floor(e.DOM.dropdown.content.clientHeight/((g=h[0])===null||g===void 0?void 0:g.offsetHeight))||1,p=t.key==="PageUp";if(s){var m=h.indexOf(s),v=p?Math.max(0,m-f):Math.min(h.length-1,m+f);s=h[v]}else s=h[0];e.dropdown.highlightOption(s,!0);break;case"Home":case"End":t.preventDefault();var T=e.dropdown.getAllSuggestionsRefs();s=T[t.key==="Home"?0:T.length-1],e.dropdown.highlightOption(s,!0);break;case"Escape":case"Esc":e.dropdown.hide();break;case"ArrowRight":if(e.state.actions.ArrowLeft||i.autoComplete.rightKey)return;case"Tab":var D=!i.autoComplete.rightKey||!i.autoComplete.tabKey;if(!o&&!l&&s&&D&&!e.state.editing&&a){t.preventDefault();var I=e.dropdown.getMappedValue(a);return e.state.autoCompleteData=a,e.input.autocomplete.set.call(e,I),!1}return!0;case"Enter":t.preventDefault(),e.state.actions.selectOption=!0,setTimeout((function(){return e.state.actions.selectOption=!1}),100),i.hooks.suggestionClick(t,{tagify:e,tagData:a,suggestionElm:s}).then((function(){if(s){var b=n?s:e.dropdown.getNextOrPrevOption(s,!c);e.dropdown.selectOption(s,t,(function(){if(b){var k=b.getAttribute("value");b=e.dropdown.getSuggestionNodeByValue(k),e.dropdown.highlightOption(b)}}))}else e.dropdown.hide(),o||e.addTags(e.state.inputText.trim(),!0)})).catch((function(b){return L.warn(b)}));break;case"Backspace":if(o||e.state.editing.scope)return;var N=e.input.raw.call(e);N!=""&&N.charCodeAt(0)!=8203||(i.backspace===!0?e.removeTags():i.backspace=="edit"&&setTimeout(e.editTag.bind(e),0))}}))}},"onKeyDown"),onMouseOver:r(function(t){var e=t.target.closest(this.settings.classNames.dropdownItemSelector);this.dropdown.highlightOption(e)},"onMouseOver"),onMouseLeave:r(function(t){this.dropdown.highlightOption()},"onMouseLeave"),onClick:r(function(t){var e=this;if(t.button==0&&t.target!=this.DOM.dropdown&&t.target!=this.DOM.dropdown.content){var i=t.target.closest(this.settings.classNames.dropdownItemSelector),n=this.dropdown.getSuggestionDataByNode(i);this.state.actions.selectOption=!0,setTimeout((function(){return e.state.actions.selectOption=!1}),100),this.settings.hooks.suggestionClick(t,{tagify:this,tagData:n,suggestionElm:i}).then((function(){i?e.dropdown.selectOption(i,t):e.dropdown.hide()})).catch((function(s){return L.warn(s)}))}},"onClick"),onScroll:r(function(t){var e=t.target,i=e.scrollTop/(e.scrollHeight-e.parentNode.clientHeight)*100;this.trigger("dropdown:scroll",{percentage:Math.round(i)})},"onScroll")}},refilter:r(function(t){t=t||this.state.dropdown.query||"",this.suggestedListItems=this.dropdown.filterListItems(t),this.dropdown.fill(),this.suggestedListItems.length||this.dropdown.hide(),this.trigger("dropdown:updated",this.DOM.dropdown)},"refilter"),getSuggestionDataByNode:r(function(t){for(var e,i=t&&t.getAttribute("value"),n=this.suggestedListItems.length;n--;){if(M(e=this.suggestedListItems[n])&&e.value==i)return e;if(e==i)return{value:e}}},"getSuggestionDataByNode"),getSuggestionNodeByValue:r(function(t){return this.dropdown.getAllSuggestionsRefs().find((function(e){return e.getAttribute("value")===t}))},"getSuggestionNodeByValue"),getNextOrPrevOption:r(function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.dropdown.getAllSuggestionsRefs(),n=i.findIndex((function(s){return s===t}));return e?i[n+1]:i[n-1]},"getNextOrPrevOption"),highlightOption:r(function(t,e){var i,n=this.settings.classNames.dropdownItemActive;if(this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(n),this.state.ddItemElm.removeAttribute("aria-selected")),!t)return this.state.ddItemData=null,this.state.ddItemElm=null,void this.input.autocomplete.suggest.call(this);i=this.dropdown.getSuggestionDataByNode(t),this.state.ddItemData=i,this.state.ddItemElm=t,t.classList.add(n),t.setAttribute("aria-selected",!0),e&&(t.parentNode.scrollTop=t.clientHeight+t.offsetTop-t.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,i),this.dropdown.position())},"highlightOption"),selectOption:r(function(t,e,i){var n=this,s=this.settings,a=s.dropdown.includeSelectedTags,o=s.dropdown,l=o.clearOnSelect,d=o.closeOnSelect;if(!t)return this.addTags(this.state.inputText,!0),void(d&&this.dropdown.hide());e=e||{};var u=t.getAttribute("value"),c=u=="noMatch",g=s.mode=="mix",h=this.suggestedListItems.find((function(p){var m;return((m=p.value)!==null&&m!==void 0?m:p)==u}));if(this.trigger("dropdown:select",{data:h,elm:t,event:e}),h||c){if(this.state.editing){var f=this.normalizeTags([h])[0];h=s.transformTag.call(this,f)||f,this.onEditTagDone(null,w({__isValid:!0},h))}else this[g?"addMixTags":"addTags"]([h||this.input.raw.call(this)],l);(g||this.DOM.input.parentNode)&&(setTimeout((function(){n.DOM.input.focus(),n.toggleFocusClass(!0)})),d&&setTimeout(this.dropdown.hide.bind(this)),a?i&&i():(t.addEventListener("transitionend",(function(){n.dropdown.fillHeaderFooter(),setTimeout((function(){t.remove(),n.dropdown.refilter(),i&&i()}),100)}),{once:!0}),t.classList.add(this.settings.classNames.dropdownItemHidden)))}else d&&setTimeout(this.dropdown.hide.bind(this))},"selectOption"),selectAll:r(function(t){this.suggestedListItems.length=0,this.dropdown.hide(),this.dropdown.filterListItems("");var e=this.dropdown.filterListItems("");return t||(e=this.state.dropdown.suggestions),this.addTags(e,!0),this},"selectAll"),filterListItems:r(function(t,e){var i,n,s,a,o,l,d=r(function(){var b,k,P=void 0,j=void 0;b=p[I],n=((k=Object)!=null&&typeof Symbol<"u"&&k[Symbol.hasInstance]?k[Symbol.hasInstance](b):b instanceof k)?p[I]:{value:p[I]};var O,S=Object.keys(n).some((function(x){return D.includes(x)}))?D:["value"];g.fuzzySearch&&!e.exact?(a=S.reduce((function(x,E){return x+" "+(n[E]||"")}),"").toLowerCase().trim(),g.accentedSearch&&(a=J(a),l=J(l)),P=a.indexOf(l)==0,j=a===l,O=a,s=l.toLowerCase().split(" ").every((function(x){return O.includes(x.toLowerCase())}))):(P=!0,s=S.some((function(x){var E=""+(n[x]||"");return g.accentedSearch&&(E=J(E),l=J(l)),g.caseSensitive||(E=E.toLowerCase()),j=E===l,e.exact?E===l:E.indexOf(l)==0}))),o=!g.includeSelectedTags&&i.isTagDuplicate(M(n)?n.value:n),s&&!o&&(j&&P?f.push(n):g.sortby=="startsWith"&&P?h.unshift(n):h.push(n))},"l"),u=this,c=this.settings,g=c.dropdown,h=(e=e||{},[]),f=[],p=c.whitelist,m=g.maxItems>=0?g.maxItems:1/0,v=g.includeSelectedTags,T=typeof g.sortby=="function",D=g.searchKeys,I=0;if(!(t=c.mode=="select"&&this.value.length&&this.value[0][c.tagTextProp]==t?"":t)||!D.length){h=v?p:p.filter((function(b){return!u.isTagDuplicate(M(b)?b.value:b)}));var N=T?g.sortby(h,l):h.slice(0,m);return this.state.dropdown.suggestions=N,N}for(l=g.caseSensitive?""+t:(""+t).toLowerCase();I<p.length;I++)i=this,d();return this.state.dropdown.suggestions=f.concat(h),N=T?g.sortby(f.concat(h),l):f.concat(h).slice(0,m),this.state.dropdown.suggestions=N,N},"filterListItems"),getMappedValue:r(function(t){var e=this.settings.dropdown.mapValueTo;return e?typeof e=="function"?e(t):t[e]||t.value:t.value},"getMappedValue"),createListHTML:r(function(t){var e=this;return w([],t).map((function(i,n){typeof i!="string"&&typeof i!="number"||(i={value:i});var s=e.dropdown.getMappedValue(i);return s=typeof s=="string"&&e.settings.dropdown.escapeHTML?R(s):s,e.settings.templates.dropdownItem.apply(e,[kt(Ct({},i),{mappedValue:s}),e])})).join("")},"createListHTML")}),H=(H={refs:r(function(){this.DOM.dropdown=this.parseTemplate("dropdown",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-wrapper']")},"refs"),getHeaderRef:r(function(){return this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-header']")},"getHeaderRef"),getFooterRef:r(function(){return this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-footer']")},"getFooterRef"),getAllSuggestionsRefs:r(function(){return Lt(this.DOM.dropdown.content.querySelectorAll(this.settings.classNames.dropdownItemSelector))},"getAllSuggestionsRefs"),show:r(function(t){var e,i,n,s=this,a=this.settings,o=a.mode=="mix"&&!a.enforceWhitelist,l=!a.whitelist||!a.whitelist.length,d=a.dropdown.position=="manual";if(t=t===void 0?this.state.inputText:t,!(l&&!o&&!a.templates.dropdownItemNoMatch||a.dropdown.enabled===!1||this.state.isLoading||this.settings.readonly)){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems(t),t&&!this.suggestedListItems.length&&(this.trigger("dropdown:noMatch",t),a.templates.dropdownItemNoMatch&&(n=a.templates.dropdownItemNoMatch.call(this,{value:t}))),!n){if(this.suggestedListItems.length)t&&o&&!this.state.editing.scope&&!q(this.suggestedListItems[0].value,t)&&this.suggestedListItems.unshift({value:t});else{if(!t||!o||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide();this.suggestedListItems=[{value:t}]}i=""+(M(e=this.suggestedListItems[0])?e.value:e),a.autoComplete&&i&&i.indexOf(t)==0&&this.input.autocomplete.suggest.call(this,e)}this.dropdown.fill(n),a.dropdown.highlightFirst&&this.dropdown.highlightOption(this.DOM.dropdown.content.querySelector(a.classNames.dropdownItemSelector)),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=t||!0,this.state.dropdown.query=t,this.setStateSelection(),d||setTimeout((function(){s.dropdown.position(),s.dropdown.render()})),setTimeout((function(){s.trigger("dropdown:show",s.DOM.dropdown)}))}},"show"),hide:r(function(t){var e=this,i=this.DOM,n=i.scope,s=i.dropdown,a=this.settings.dropdown.position=="manual"&&!t;if(s&&document.body.contains(s)&&!a)return window.removeEventListener("resize",this.dropdown.position),this.dropdown.events.binding.call(this,!1),n.setAttribute("aria-expanded",!1),s.parentNode.removeChild(s),setTimeout((function(){e.state.dropdown.visible=!1}),100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger("dropdown:hide",s),this},"hide"),toggle:r(function(t){this.dropdown[this.state.dropdown.visible&&!t?"hide":"show"]()},"toggle"),getAppendTarget:r(function(){var t=this.settings.dropdown;return typeof t.appendTarget=="function"?t.appendTarget():t.appendTarget},"getAppendTarget"),render:r(function(){var t,e,i,n=this,s=(t=this.DOM.dropdown,(i=t.cloneNode(!0)).style.cssText="position:fixed; top:-9999px; opacity:0",document.body.appendChild(i),e=i.clientHeight,i.parentNode.removeChild(i),e),a=this.settings,o=this.dropdown.getAppendTarget();return a.dropdown.enabled===!1||(this.DOM.scope.setAttribute("aria-expanded",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(a.classNames.dropdownInital),this.dropdown.position(s),o.appendChild(this.DOM.dropdown),setTimeout((function(){return n.DOM.dropdown.classList.remove(a.classNames.dropdownInital)})))),this},"render"),fill:r(function(t){t=typeof t=="string"?t:this.dropdown.createListHTML(t||this.suggestedListItems);var e,i=this.settings.templates.dropdownContent.call(this,t);this.DOM.dropdown.content.innerHTML=(e=i)?e.replace(/\>[\r\n ]+\</g,"><").split(/>\s+</).join("><").trim():""},"fill"),fillHeaderFooter:r(function(){var t=this.dropdown.filterListItems(this.state.dropdown.query),e=this.parseTemplate("dropdownHeader",[t]),i=this.parseTemplate("dropdownFooter",[t]),n=this.dropdown.getHeaderRef(),s=this.dropdown.getFooterRef();e&&n?.parentNode.replaceChild(e,n),i&&s?.parentNode.replaceChild(i,s)},"fillHeaderFooter"),position:r(function(t){var e=this.settings.dropdown,i=this.dropdown.getAppendTarget();if(e.position!="manual"&&i){var n,s,a,o,l,d,u,c,g,h,f=this.DOM.dropdown,p=e.RTL,m=i===document.body,v=i===this.DOM.scope,T=m?window.pageYOffset:i.scrollTop,D=document.fullscreenElement||document.webkitFullscreenElement||document.documentElement,I=D.clientHeight,N=Math.max(D.clientWidth||0,window.innerWidth||0),b=N>480?e.position:"all",k=this.DOM[b=="input"?"input":"scope"];if(t=t||f.clientHeight,this.state.dropdown.visible){if(b=="text"?(a=(n=(function(){var O=document.getSelection();if(O.rangeCount){var S,x,E=O.getRangeAt(0),z=E.startContainer,Q=E.startOffset;if(Q>0)return(x=document.createRange()).setStart(z,Q-1),x.setEnd(z,Q),{left:(S=x.getBoundingClientRect()).right,top:S.top,bottom:S.bottom};if(z.getBoundingClientRect)return z.getBoundingClientRect()}return{left:-9999,top:-9999}})()).bottom,s=n.top,o=n.left,l="auto"):(d=(function(O){var S=0,x=0;for(O=O.parentNode;O&&O!=D;)S+=O.offsetTop||0,x+=O.offsetLeft||0,O=O.parentNode;return{top:S,left:x}})(i),n=k.getBoundingClientRect(),s=v?-1:n.top-d.top,a=(v?n.height:n.bottom-d.top)-1,o=v?-1:n.left-d.left,l=n.width+"px"),!m){var P=(function(){for(var O=0,S=e.appendTarget.parentNode;S;)O+=S.scrollTop||0,S=S.parentNode;return O})();s+=P,a+=P}var j;s=Math.floor(s),a=Math.ceil(a),c=N-o<120,g=((u=(j=e.placeAbove)!==null&&j!==void 0?j:I-n.bottom<t)?s:a)+T,h=o+(p&&n.width||0)+window.pageXOffset,h=b=="text"&&c?"right: 0;":"left: ".concat(h,"px;"),f.style.cssText="".concat(h," top: ").concat(g,"px; min-width: ").concat(l,"; max-width: ").concat(l),f.setAttribute("placement",u?"top":"bottom"),f.setAttribute("position",b)}}},"position")})!=null?H:{},Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(H)):(function(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(H)).forEach((function(t){Object.defineProperty($,t,Object.getOwnPropertyDescriptor(H,t))})),$),U="@yaireo/tagify/",Ft={empty:"empty",exceed:"number of tags exceeded",pattern:"pattern mismatch",duplicate:"already exists",notAllowed:"not allowed"},Rt={wrapper:r(function(t,e){return'<tags class="'.concat(e.classNames.namespace," ").concat(e.mode?"".concat(e.classNames[e.mode+"Mode"]):""," ").concat(t.className,`"
2
2
  `).concat(e.readonly?"readonly":"",`
3
3
  `).concat(e.disabled?"disabled":"",`
4
4
  `).concat(e.required?"required":"",`
@@ -1 +1 @@
1
- input[data-v-91f15870]{width:100%!important;min-height:44px;border-radius:1.5rem;padding-left:25px;padding-right:35px;border-width:1px!important;border-style:solid;border-color:#c1c7cf;font-size:1rem;outline-width:1px;--un-outline-color-opacity:1;outline-color:rgb(168 162 158 / var(--un-outline-color-opacity));background-color:#fff}input[data-v-91f15870]:focus{background-color:#fff}input[data-v-91f15870]::placeholder{color:#c1c7cf!important;font-size:1rem}
1
+ input[data-v-bd33d684]{width:100%!important;min-height:44px;border-radius:1.5rem;padding-left:25px;padding-right:35px;border-width:1px!important;border-style:solid;border-color:#c1c7cf;font-size:1rem;outline-width:1px;--un-outline-color-opacity:1;outline-color:rgb(168 162 158 / var(--un-outline-color-opacity));background-color:#fff}input[data-v-bd33d684]:focus{background-color:#fff}input[data-v-bd33d684]::placeholder{color:#c1c7cf!important;font-size:1rem}