1"use strict";(self["webpackChunk_altegio_erp"]=self["webpackChunk_altegio_erp"]||[]).push([[33422],{643467:(e,t,n)=>{var i,o;n.d(t,{M:()=>i,V:()=>o}),function(e){e["BIG"]="big",e["MEDIUM"]="medium",e["SMALL"]="small",e["ONB_BIG"]="onb-big"}(i||(i={})),function(e){e["PRIMARY"]="primary",e["GHOST"]="ghost",e["PLAIN"]="plain",e["ORANGE"]="orange",e["AZURE"]="azure",e["LINK"]="link",e["LIGHT_BLUE"]="light-blue",e["BS_WHITE"]="bs-white",e["ONB_ORANGE"]="onb-orange",e["ONB_BLUE"]="onb-blue"}(o||(o={}))},538460:(e,t,n)=>{n.d(t,{A:()=>xe});var i=n(813913),o=["value","disabled","readonly"];function r(e,t,n,r,s,l){var a=(0,i.resolveComponent)("y-autocomplete-v2-toggle"),u=(0,i.resolveComponent)("v-autocomplete-span-highlighted"),c=(0,i.resolveComponent)("y-autocomplete-v2-list"),h=(0,i.resolveComponent)("y-autocomplete-v2-wrapper"),d=(0,i.resolveDirective)("locator");return(0,i.openBlock)(),(0,i.createBlock)(h,{ref:"wrapper",active:e.active,placeholder:e.placeholder,"bottom-sheet-placeholder":e.bottomSheetPlaceholder,"show-drop-list-on-focus":e.showDropListOnFocus,class:(0,i.normalizeClass)([{disabled:e.disabled},"y-autocomplete-v2 y-autocomplete-v2-styles"]),"input-class":e.inputClass,"drop-out-class":e.dropOutClass,"onUpdate:modelValue":t[1]||(t[1]=function(t){return!e.disabled&&e.setInputValueAndUpdate(t)}),onSetActive:t[2]||(t[2]=function(t){return!e.disabled&&e.setActive(t)}),onShiftHovered:e.shiftHovered,onComplete:t[3]||(t[3]=function(t){return!e.disabled&&e.complete()}),onIsOpen:t[4]||(t[4]=function(t){return e.resetPage(t)}),onScroll:t[5]||(t[5]=function(t){return e.increasePageOnScroll(t)})},{input:(0,i.withCtx)(function(t){var n=t.readonly;return[(0,i.renderSlot)(e.$slots,"input",{modelValue:e.inputValue,disabled:e.disabled,readonly:n},function(){return[(0,i.createElementVNode)("input",{value:e.inputValue,disabled:e.disabled,readonly:n,type:"text",autocomplete:"none"},null,8,o)]})]}),toggle:(0,i.withCtx)(function(){return[(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("span",{class:"y-autocomplete-v2-toggle-wrapper",onMousedown:t[0]||(t[0]=(0,i.withModifiers)(function(){return e.toggle&&e.toggle.apply(e,arguments)},["prevent","stop"]))},[(0,i.renderSlot)(e.$slots,"toggle",{isActive:e.active,isLoading:e.isLoading},function(){return[(0,i.createVNode)(a,{"is-active":e.active,"is-loading":e.isLoading},null,8,["is-active","is-loading"])]})],32)),[[i.vShow,!e.disabled&&e.showToggle],[d,"autocomplete_toggle"]])]}),close:(0,i.withCtx)(function(){return[(0,i.renderSlot)(e.$slots,"close")]}),list:(0,i.withCtx)(function(t){var n=t.initialScrollBlock;return[(0,i.createVNode)(c,{"model-value":e.modelValue,hovered:e.hovered,items:e.items,"is-loading":e.isLoading,"initial-scroll-block":n,"is-new-category":e.isNewCategory,page:e.page,"page-limit":e.pageLimit,onSelect:e.select,onHover:e.setHovered},(0,i.createSlots)({default:(0,i.withCtx)(function(t){var n=t.item;return[(0,i.renderSlot)(e.$slots,"item",{item:n,search:e.inputValue},function(){return[(0,i.createElementVNode)("a",null,[(0,i.createVNode)(u,{value:e.toText(n),search:e.inputValue},null,8,["value","search"])])]})]}),_:2},[e.toCategoryText?{name:"category",fn:(0,i.withCtx)(function(t){var n=t.item;return[(0,i.renderSlot)(e.$slots,"category",{item:n,search:e.inputValue},function(){return[(0,i.createElementVNode)("div",null,(0,i.toDisplayString)(e.toCategoryText(n)),1)]})]}),key:"0"}:void 0]),1032,["model-value","hovered","items","is-loading","initial-scroll-block","is-new-category","page","page-limit","onSelect","onHover"])]}),_:3},8,["active","placeholder","bottom-sheet-placeholder","show-drop-list-on-focus","class","input-class","drop-out-class","onShiftHovered"])}var s=n(8340),l=n(321268),a=n(788578),u=n(147932),c=(n(480465),n(331635)),h=n(172747),d=n(742945),p=n(377253),v={key:0},f={key:1},m={class:"input-container"};function y(e,t,n,o,r,s){var l=(0,i.resolveComponent)("y-autocomplete-v2-input-wrapper"),a=(0,i.resolveComponent)("y-drop-out-menu-fixed"),u=(0,i.resolveComponent)("y-bottom-sheet"),c=(0,i.resolveDirective)("locator");return e.isBottomSheetMode?((0,i.openBlock)(),(0,i.createElementBlock)("div",f,[(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createBlock)(l,{ref:"input",placeholder:e.placeholder,class:(0,i.normalizeClass)(e.inputClass),onClick:t[9]||(t[9]=function(t){return e.$emit("set-active",!0)}),onFocus:t[10]||(t[10]=function(t){return e.$emit("set-active",!0)})},{default:(0,i.withCtx)(function(){return[(0,i.renderSlot)(e.$slots,"input",{readonly:!0})]}),_:3},8,["placeholder","class"])),[[c,"autocomplete_input"]]),(0,i.renderSlot)(e.$slots,"toggle"),(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createBlock)(u,{active:e.active,class:"y-autocomplete-v2-bottom-sheet-wrapper",onClose:t[19]||(t[19]=function(t){return e.$emit("set-active",!1)}),onIsOpen:e.setIsOpen,onReady:e.setIsBottomSheetReady},{scrollable:(0,i.withCtx)(function(){return[(0,i.createElementVNode)("div",{class:"list-container",onScroll:t[18]||(t[18]=function(t){return e.$emit("scroll",t)})},[e.isBottomSheetListVisible?(0,i.renderSlot)(e.$slots,"list",{key:0,initialScrollBlock:"start"}):(0,i.createCommentVNode)("",!0)],32)]}),default:(0,i.withCtx)(function(){return[(0,i.createElementVNode)("div",m,[(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createBlock)(l,{ref:"bottomSheetInput",placeholder:e.bottomSheetPlaceholder||e.placeholder,class:(0,i.normalizeClass)(e.inputClass),"onUpdate:modelValue":e.emitInput,onInput:e.emitInput,onKeydown:[t[11]||(t[11]=(0,i.withKeys)((0,i.withModifiers)(function(t){return e.$emit("shift-hovered",-1)},["prevent"]),["up"])),t[12]||(t[12]=(0,i.withKeys)((0,i.withModifiers)(function(t){return e.$emit("shift-hovered",1)},["prevent"]),["down"])),t[13]||(t[13]=(0,i.withKeys)((0,i.withModifiers)(function(t){return e.$emit("complete")},["prevent"]),["enter"])),t[14]||(t[14]=(0,i.withKeys)((0,i.withModifiers)(function(t){return e.$emit("set-active",!1)},["prevent","stop"]),["esc"]))],onFocus:t[15]||(t[15]=function(t){return e.showDropListOnFocus&&e.showBottomSheetList()}),onBlur:e.deactivateIfFocusChange,onSubmit:t[16]||(t[16]=function(t){return e.$emit("complete")}
1)},{default:(0,i.withCtx)(function(){return[(0,i.renderSlot)(e.$slots,"input")]}),_:3},8,["placeholder","class","onUpdate:modelValue","onInput","onBlur"])),[[c,"input"]]),(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("a",{class:"close-button",onClick:t[17]||(t[17]=function(t){return e.$emit("set-active",!1)})},[(0,i.renderSlot)(e.$slots,"close",{},function(){return[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("shared.action.close")),1)]})])),[[c,"close"]])])]}),_:3},8,["active","onIsOpen","onReady"])),[[c,"autocomplete_bottom-sheet"]])])):((0,i.openBlock)(),(0,i.createElementBlock)("div",v,[(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createBlock)(l,{ref:"input",placeholder:e.placeholder,class:(0,i.normalizeClass)(e.inputClass),"onUpdate:modelValue":e.emitInput,onInput:e.emitInput,onFocus:t[0]||(t[0]=function(t){return e.showDropListOnFocus&&e.$emit("set-active",!0)}),onBlur:t[1]||(t[1]=function(t){return e.$emit("set-active",!1)}),onKeydown:[t[2]||(t[2]=(0,i.withKeys)((0,i.withModifiers)(function(t){return e.$emit("shift-hovered",-1)},["prevent"]),["up"])),t[3]||(t[3]=(0,i.withKeys)((0,i.withModifiers)(function(t){return e.$emit("shift-hovered",1)},["prevent"]),["down"])),t[4]||(t[4]=(0,i.withKeys)((0,i.withModifiers)(function(t){return e.$emit("complete")},["prevent"]),["enter"])),t[5]||(t[5]=(0,i.withKeys)((0,i.withModifiers)(function(t){return e.$emit("set-active",!1)},["prevent","stop"]),["esc"])),t[6]||(t[6]=(0,i.withKeys)(function(t){return e.$emit("set-active",!1)},["tab"]))],onSubmit:t[7]||(t[7]=function(t){return e.$emit("complete")})},{default:(0,i.withCtx)(function(){return[(0,i.renderSlot)(e.$slots,"input")]}),_:3},8,["placeholder","class","onUpdate:modelValue","onInput"])),[[c,"autocomplete_input"]]),(0,i.renderSlot)(e.$slots,"toggle"),e.active?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createBlock)(a,{key:0,"custom-class":e.dropOutClass,onIsOpen:e.setIsOpen,onScroll:t[8]||(t[8]=function(t){return e.$emit("scroll",t)})},{default:(0,i.withCtx)(function(){return[(0,i.renderSlot)(e.$slots,"list")]}),_:3},8,["custom-class","onIsOpen"])),[[c,"autocomplete_drop-menu"]]):(0,i.createCommentVNode)("",!0)]))}function g(e,t,n,o,r,s){var l=(0,i.resolveDirective)("locator");return(0,i.openBlock)(),(0,i.createBlock)(i.Teleport,{to:"body"},[(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("div",(0,i.mergeProps)({style:e.styles,class:[e.customClass,"y-drop-out-menu-fixed"]},e.$attrs,{onScroll:t[0]||(t[0]=function(t){return e.$emit("scroll",t)})}),[(0,i.renderSlot)(e.$slots,"default")],16)),[[l,e.locator]])])}var w,k=n(36472),S=n(166817),A=n(918890),B=n(177299),b=n(6794),C=n(163035),I=(n(384645),n(274564),n(824329),function(){function e(t,n){(0,u.A)(this,e),this.unlisteners=[],this.addEventListeners(t,n)}return(0,a.A)(e,[{key:"addEventListener",value:function(e,t,n,i){e.addEventListener(t,n,i),this.unlisteners.push(function(){e.removeEventListener(t,n,i)})}},{key:"addEventListeners",value:function(e,t){var n=this;e.forEach(function(e){n.addEventListener(e,"scroll",t,!1),n.addEventListener(e,"touchmove",t,!1),n.addEventListener(e,"resize",t,!1)})}},{key:"destroy",value:function(){this.unlisteners.forEach(function(e){return e()}),this.unlisteners=[]}}])}()),$=n(269350),_=(n(5765),20);(function(e){e["LeftOuter"]="left-outer",e["Left"]="left",e["Fill"]="fill",e["Right"]="right",e["RightOuter"]="right-outer"})(w||(w={}));var V=function(){function e(){(0,u.A)(this,e)}return(0,a.A)(e,[{key:"heightStyleGetter",value:function(e,t){return{maxHeight:P(this,e,t)+"px"}}}])}(),O=function(e){function t(){return(0,u.A)(this,t),(0,s.A)(this,t,arguments)}return(0,l.A)(t,e),(0,a.A)(t,[{key:"styleGetter",value:function(e){return{top:e.top+"px"}}},{key:"marginGetter",value:function(e,t){return window.innerHeight-e.top-t-_}}])}(V),L=function(e){function t(){return(0,u.A)(this,t),(0,s.A)(this,t,arguments)}return(0,l.A)(t,e),(0,a.A)(t,[{key:"styleGetter",value:function(e){return{top:e.bottom+"px"}}},{key:"marginGetter",value:function(e,t){return window.innerHeight-e.bottom-t-_}}])}(V),E=function(e){function t(){return(0,u.A)(this,t),(0,s.A)(this,t,arguments)}return(0,l.A)(t,e),(0,a.A)(t,[{key:"styleGetter",value:function(e){return{bottom:window.innerHeight-e.top+"px"}}},{key:"marginGetter",value:function(e,t){return e.top-t-_}}])}(V),x=function(e){function t(){return(0,u.A)(this,t),(0,s.A)(this,t,arguments)}return(0,l.A)(t,e),(0,a.A)(t,[{key:"styleGetter",value:function(e){return{bottom:window.innerHeight-e.bottom+"px"}}},{key:"marginGetter",value:function(e,t){return e.bottom-t-_}}])}(V),G=function(){function e(){(0,u.A)(this,e)}return(0,a.A)(e,[{key:"widthStyleGetter",value:function(e,t){return{maxWidth:P(this,e,t)+"px"}}}])}(),R=function(e){function t(){var e;return(0,u.A)(this,t),e=(0,s.A)(this,t,arguments),e.verticalGetterOrder=[new O,new x],e}return(0,l.A)(t,e),(0,a.A)(t,[{key:"styleGetter",value:function(e){return{left:e.right+"px"}}},{key:"marginGetter",value:function(e,t){return document.documentElement.clientWidth-e.right-t-_}}])}(G),D=function(e){function t(){var e;return(0,u.A)(this,t),e=(0,s.A)(this,t,arguments),e.verticalGetterOrder=[new L,new E],e}return(0,l.A)(t,e),(0,a.A)(t,[{key:"styleGetter",value:function(e){return{left:e.left+"px"}}},{key:"marginGetter",value:function(e,t){return document.documentElement.clientWidth-e.left-t-_}}])}(G),F=function(e){function t(){var e;return(0,u.A)(this,t),e=(0,s.A)(this,t,arguments),e.verticalGetterOrder=[new L,new E],e}return(0,l.A)(t,e),(0,a.A)(t,[{key:"styleGetter",value:function(e){return{left:e.left+"px",right:document.documentElement.clientWidth-e.right+"px"}}},{key:"marginGetter",value:function(){return 0}},{key:"widthStyleGetter",value:function(e){return{}}}])}(G),M=function(e){function t(){var e;return(0,u.A)(this,t),e=(0,s.A)(this,t,arguments),e.verticalGetterOrder=[new L,new E],e}return(0,l.A)(t,e),(0,a.A)(t,[{key:"styleGetter",value:function(e){return{right:document.documentElement.clientWidth-e.right+"px"}}},{key:"marginGetter",value:function(e,t){return e.right-t-_}}])}(G),T=function(e){function t(){var e;return(0,u.A)(this,t),e=(0,s.A)(this,t,arguments),e.verticalGetterOrder=[new O,new x],e}return(0,l.A)(t,e),(0,a.A)(t,[{key:"styleGetter",value:function(e){return{right:document.documentElement.clientWidth-e.left+"px"}}},{key:"marginGetter",value:function(e,t){return e.left-t-_}}])}(G),z=(0,$.A)((0,$.A)((0,$.A)((0,$.A)((0,$.A)({},w.RightOuter,[new R,new T,new D,new M]),w.Right,[new D,new M]),w.Fill,[new F]),w.Left,[new M,new D]),w.LeftOuter,[new T,new R,new M,new D]);function H(e,t,n){var i=[];return e.find(function(e){var o=e.marginGetter(t,n);return i.push(o),o>=0})||e[i.indexOf(Math.max.apply(Math,i))]}function P(e,t,n){var i=e.marginGetter(t,n);return i>0?n:n+i}var Y=(0,a.A)(function e(){(0,u.A)(this,e),this.maxHeight=(0,h._w)({default:320}),this.maxWidth=(0,h._w)({default:520}),this.horizontalAlign=(0,h._w)({default:w.Fill}),this.recalcDropDirection=(0,h._w)({default:!1}),this.customClass=(0,h._w)({}),this.locator=(0,h._w)({default:""})}),N=function(e){function t(){var e;return(0,u.A)(this,t),e=(0,s.A)(this,t,arguments),e.horizontalGetter=null,e.verticalGetter=null,e.widthStyle={},e.horizontalStyle={},e.heightStyle={},e.verticalStyle={},e.parentRect=null,e}return(0,l.A)(t,e),(0,a.A)(t,[{key:"calcHorizontal",value:function(){if(this.parentRect){var e=z[this.horizontalAlign];this.horizontalGetter=H(e,this.parentRect,this.maxWidth)}}},{key:"calcVertical",value:function(){if(this.parentRect&&this.horizontalGetter){var e=this.horizontalGetter.verticalGetterOrder;this.verticalGetter=H(e,this.parentRect,this.maxHeight)}}},{key:"setWatchers",value:function(){this.recalcDropDirection&&(this.$watch("parentRect.left",this.calcHorizontal),this.$watch("parentRect.top",this.calcVertical),this.$watch("horizontalGetter",this.calcVertical))}},{key:"calcWidthStyle",value:function(){this.parentRect&&this.horizontalGetter&&(this.widthStyle=this.horizontalGetter.widthStyleGetter(this.parentRect,this.maxWidth))}},{key:"calcHorizontalStyle",value:function(){this.parentRect&&this.horizontalGetter&&(this.horizontalStyle=this.horizontalGetter.styleGetter(this.parentRect))}},{key:"calcHeightStyle",value:function(){this.parentRect&&this.verticalGetter&&(this.heightStyle=this.verticalGetter.heightStyleGetter(this.parentRect,this.maxHeight))}},{key:"calcVerticalStyle",value:function(){this.parentRect&&this.verticalGetter&&(this.verticalStyle=this.verticalGetter.styleGetter(this.parentRect))}},{key:"styles",get:function(){return Object.assign(Object.assign(Object.assign(Object.assign({},this.widthStyle),this.heightStyle),this.horizontalStyle),this.verticalStyle)}},{key:"setParentRect",value:function(){var e;this.parentRect=null===(e=this.$parent)||void 0===e?void 0:e.$el.getBoundingClientRect()}},{key:"calcSize",value:function(){this.setParentRect(),this.calcHorizontal(),this.calcVertical(),this.calcWidthStyle(),this.calcHeightStyle(),this.calcHorizontalStyle(),this.calcVerticalStyle()}},{key:"requestAnimationFrame",value:function(){var e=this;window.requestAnimationFrame(function(){e.setParentRect()})}},{key:"addEventListeners",value:function(){this.dropOutMenuListenerContainer=new I([window].concat((0,k.A)((0,S.I)(this.$el))),this.requestAnimationFrame)}},{key:"unlisten",value:function(){this.dropOutMenuListenerContainer.destroy()}},{key:"emitIsOpen",value:function(e){this.$emit("is-open",e)}},{key:"open",value:function(){this.emitIsOpen(!0)}},{key:"close",value:function(){this.emitIsOpen(!1)}}])}(h.lD.with(Y));(0,c.Cg)([b.A,(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[]),(0,c.Sn)("design:returntype",void 0)],N.prototype,"setWatchers",null),(0,c.Cg)([(0,d.o)("horizontalGetter"),(0,d.o)("parentRect.left"),(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[]),(0,c.Sn)("design:returntype",void 0)],N.prototype,"calcHorizontalStyle",null),(0,c.Cg)([(0,d.o)("verticalGetter"),(0,d.o)("parentRect.top"),(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[]),(0,c.Sn)("design:returntype",void 0)],N.prototype,"calcVerticalStyle",null),(0,c.Cg)([b.A,(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[]),(0,c.Sn)("design:returntype",void 0)],N.prototype,"calcSize",null),(0,c.Cg)([A.A,(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[]),(0,c.Sn)("design:returntype",void 0)],N.prototype,"addEventListeners",null),(0,c.Cg)([B.A,(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[]),(0,c.Sn)("design:returntype",void 0)],N.prototype,"unlisten",null),(0,c.Cg)([b.A,(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[]),(0,c.Sn)("design:returntype",void 0)],N.prototype,"open",null),(0,c.Cg)([C.A,(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[]),(0,c.Sn)("design:returntype",void 0)],N.prototype,"close",null),N=(0,c.Cg)([(0,h.JY)({name:"YDropOutMenuFixed",emits:["scroll","is-open"],inheritAttrs:!1})],N);const W=N;var q=n(801317);const U=(0,q.A)(W,[["render",g]]),K=U;var j=n(293549),J=function(e){return e.startsWith("on")},X=function(e){return"string"===typeof e};function Z(e,t){return Object.keys(t).forEach(function(n){var i;J(n)&&e[n]?(e[n]=Array.isArray(e[n])?e[n]:[e[n]],Array.isArray(t[n])?(i=e[n]).push.apply(i,(0,k.A)(t[n])):e[n].push(t[n])):e[n]=t[n]}),e}function Q(e,t){var n=Object.assign({},e),i=X(t)?"onUpdate:modelValue":"onInput";
1return Object.keys(n).forEach(function(e){i===e&&delete n[e]}),n}var ee=(0,a.A)(function e(){(0,u.A)(this,e),this.placeholder=(0,h._w)({})}),te=function(e){function t(){var e;return(0,u.A)(this,t),e=(0,s.A)(this,t,arguments),e.inputRef=null,e}return(0,l.A)(t,e),(0,a.A)(t,[{key:"input",get:function(){return this.$el}},{key:"focusInput",value:function(e){var t=this;this.$nextTick(function(){"VInputMasked"===t.inputRef.type.name?t.inputRef.ctx.proxy.focusInputMasked():t.input.focus(e)})}},{key:"blurInput",value:function(){var e=this;this.$nextTick(function(){e.input.blur()})}},{key:"render",value:function(){var e,t,n,i,o=this.$slots.default,r=o&&o(this.$props),s=null===(i=null===(n=null===(t=null===(e=null===r||void 0===r?void 0:r[0])||void 0===e?void 0:e.children)||void 0===t?void 0:t[0])||void 0===n?void 0:n.children)||void 0===i?void 0:i[0],l=Q(this.$attrs,s.type);return Z(s.props,l),Z(s.props,this.$props),this.inputRef=s,s}}])}(h.lD.with(ee));te=(0,c.Cg)([(0,h.JY)({name:"YAutocompleteV2InputWrapper",inheritAttrs:!1})],te);const ne=te;var ie=n(525806),oe=n(819176),re=(0,a.A)(function e(){(0,u.A)(this,e),this.active=(0,h._w)({required:!0}),this.placeholder=(0,h._w)({}),this.bottomSheetPlaceholder=(0,h._w)({}),this.disabled=(0,h._w)({default:!1}),this.showDropListOnFocus=(0,h._w)({default:!0}),this.inputClass=(0,h._w)({required:!0}),this.dropOutClass=(0,h._w)({required:!0})}),se=function(e){function t(){var e;return(0,u.A)(this,t),e=(0,s.A)(this,t,arguments),e.isOpen=!1,e.isBottomSheetReady=!1,e.isBottomSheetListVisible=!1,e}return(0,l.A)(t,e),(0,a.A)(t,[{key:"isBottomSheetMode",get:function(){return oe.Ay.isMobile.value}},{key:"focusInput",value:function(){this.$refs.input.focusInput(),this.isBottomSheetMode||this.$emit("set-active",!0)}},{key:"blurInput",value:function(){this.isBottomSheetMode?this.$emit("set-active",!1):this.$refs.input.blurInput()}},{key:"setIsOpen",value:function(e){this.isOpen=e}},{key:"emitIsOpen",value:function(e){this.$emit("is-open",e)}},{key:"setIsBottomSheetReady",value:function(){this.isBottomSheetReady=!0}},{key:"resetIsBottomSheetReady",value:function(e){e||(this.isBottomSheetReady=!1)}},{key:"focusBottomSheetInput",value:function(e){var t;e&&(null===(t=this.$refs.bottomSheetInput)||void 0===t||t.focusInput({preventScroll:!0}))}},{key:"hideBottomSheetList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||(this.isBottomSheetListVisible=!1)}},{key:"showBottomSheetList",value:function(){var e=this;this.isBottomSheetListVisible||setTimeout(function(){e.isBottomSheetListVisible=!0},200)}},{key:"deactivateIfFocusChange",value:function(){var e=this;setTimeout(function(){document.querySelector(":focus")&&e.$emit("set-active",!1)})}},{key:"emitInput",value:function(e){"string"===typeof e?this.$emit("update:modelValue",e):this.$emit("update:modelValue",e.target.value)}}])}(h.lD.with(re));(0,c.Cg)([(0,d.o)("isOpen"),(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[Boolean]),(0,c.Sn)("design:returntype",void 0)],se.prototype,"emitIsOpen",null),(0,c.Cg)([(0,d.o)("isOpen"),(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[Boolean]),(0,c.Sn)("design:returntype",void 0)],se.prototype,"resetIsBottomSheetReady",null),(0,c.Cg)([(0,d.o)("isBottomSheetReady"),(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[Boolean]),(0,c.Sn)("design:returntype",void 0)],se.prototype,"focusBottomSheetInput",null),(0,c.Cg)([(0,d.o)("isBottomSheetReady"),(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[Object]),(0,c.Sn)("design:returntype",void 0)],se.prototype,"hideBottomSheetList",null),se=(0,c.Cg)([(0,h.JY)({name:"YAutocompleteV2Wrapper",emits:["scroll","set-active","shift-hovered","complete","update:modelValue","is-open"],components:{YThrobberDeprecated:ie.A,YBottomSheet:j.A,YDropOutMenuFixed:K,YAutocompleteV2InputWrapper:ne}})],se);const le=se,ae=(0,q.A)(le,[["render",y]]),ue=ae;var ce={class:"y-autocomplete-v2-list"},he={key:0,class:"y-autocomplete-v2-list-item"},de={key:0},pe={key:1},ve={key:2},fe=["onMousedown","onMouseenter"];function me(e,t,n,o,r,s){var l=(0,i.resolveDirective)("locator");return(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("div",ce,[(0,i.createElementVNode)("div",null,[!e.items||0===e.items.length||e.isLoading?((0,i.openBlock)(),(0,i.createElementBlock)("div",he,[e.isLoading?((0,i.openBlock)(),(0,i.createElementBlock)("span",de,(0,i.toDisplayString)(e.t("shared.label.loading")),1)):e.items?((0,i.openBlock)(),(0,i.createElementBlock)("span",ve,(0,i.toDisplayString)(e.t("shared.message.no_matching_options_foun
1d")),1)):((0,i.openBlock)(),(0,i.createElementBlock)("span",pe,(0,i.toDisplayString)(e.t("feature.onboarding.start_typing_query")),1))])):((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,{key:1},(0,i.renderList)(e.visibleItems,function(t,n){return(0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:n},[e.isNewCategory&&e.isNewCategory(t,n)?((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:"".concat(n,"-category"),class:"y-autocomplete-v2-list-item y-autocomplete-v2-list-item-category"},[(0,i.renderSlot)(e.$slots,"category",{item:t})])):(0,i.createCommentVNode)("",!0),(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("div",{ref_for:!0,ref:"itemListElement".concat(n),class:(0,i.normalizeClass)([{selected:e.modelValue===t,hovered:e.hovered===t},"y-autocomplete-v2-list-item y-autocomplete-v2-list-item-selectable"]),onMousedown:(0,i.withModifiers)(function(n){return e.$emit("select",t)},["prevent"]),onMouseenter:function(n){return e.$emit("hover",t)}},[(0,i.renderSlot)(e.$slots,"default",{item:t})],42,fe)),[[l,"item_"+t.id]])],64)}),128))])])),[[l,"list"]])}var ye=(0,a.A)(function e(){(0,u.A)(this,e),this.modelValue=(0,h._w)({required:!0,default:null}),this.hovered=(0,h._w)({required:!0,default:null}),this.items=(0,h._w)({required:!0}),this.isLoading=(0,h._w)({default:!1}),this.initialScrollBlock=(0,h._w)({default:"center"}),this.isNewCategory=(0,h._w)({}),this.page=(0,h._w)({default:1}),this.pageLimit=(0,h._w)({default:50})}),ge=function(e){function t(){return(0,u.A)(this,t),(0,s.A)(this,t,arguments)}return(0,l.A)(t,e),(0,a.A)(t,[{key:"activeLimit",get:function(){return this.page*this.pageLimit}},{key:"visibleItems",get:function(){var e;return null===(e=this.items)||void 0===e?void 0:e.slice(0,this.activeLimit)}},{key:"scrollIntoHovered",value:function(e){var t;if(e&&this.items){var n=this.items.indexOf(e),i=null===(t=this.$refs)||void 0===t?void 0:t["itemListElement".concat(n)];i&&i.length&&i[0].scrollIntoView({behavior:"smooth",block:"nearest"})}}},{key:"scrollIntoValue",value:function(){var e;if(this.modelValue&&this.items){var t=this.items.indexOf(this.modelValue),n=null===(e=this.$refs)||void 0===e?void 0:e["itemListElement".concat(t)];n&&n.length&&n[0].scrollIntoView({block:this.initialScrollBlock})}}},{key:"scrollToSelected",value:function(e){var t=this;e||setTimeout(function(){t.scrollIntoValue()})}}])}(h.lD.with(ye));(0,c.Cg)([(0,d.o)("hovered"),(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[Object]),(0,c.Sn)("design:returntype",void 0)],ge.prototype,"scrollIntoHovered",null),(0,c.Cg)([(0,d.o)("isLoading",{immediate:!0}),(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[Boolean]),(0,c.Sn)("design:returntype",void 0)],ge.prototype,"scrollToSelected",null),ge=(0,c.Cg)([(0,h.JY)({name:"YAutocompleteV2List",emits:["hover","select"]})],ge);const we=ge,ke=(0,q.A)(we,[["render",me]]),Se=ke;function Ae(e,t,n,o,r,s){var l=(0,i.resolveComponent)("y-throbber-deprecated"),a=(0,i.resolveComponent)("y-icon");return e.isLoading?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,type:"circle",size:"small",class:"y-autocomplete-v2-throbber"})):((0,i.openBlock)(),(0,i.createBlock)(a,{key:1,"fa-icon":e.icon,class:"y-autocomplete-v2-toggle"},null,8,["fa-icon"]))}var Be=n(55187),be=(0,a.A)(function e(){(0,u.A)(this,e),this.isActive=(0,h._w)({required:!0}),this.isLoading=(0,h._w)({required:!0})}),Ce=function(e){function t(){return(0,u.A)(this,t),(0,s.A)(this,t,arguments)}return(0,l.A)(t,e),(0,a.A)(t,[{key:"icon",get:function(){return this.isActive?"angle-up":"angle-down"}}])}(h.lD.with(be));Ce=(0,c.Cg)([(0,h.JY)({name:"YAutocompleteV2Toggle",components:{YThrobberDeprecated:ie.A,YIcon:Be.A}})],Ce);const Ie=Ce,$e=(0,q.A)(Ie,[["render",Ae]]),_e=$e;var Ve=(0,a.A)(function e(){(0,u.A)(this,e),this.modelValue=(0,h._w)({required:!0}),this.items=(0,h._w)({required:!0}),this.toText=(0,h._w)({required:!0}),this.toCategoryText=(0,h._w)({default:null}),this.isLoading=(0,h._w)({type:Boolean,default:!1}),this.placeholder=(0,h._w)({default:null}),this.bottomSheetPlaceholder=(0,h._w)({type:String,default:""}),this.disabled=(0,h._w)({type:Boolean,default:!1}),this.deactivateOnSelect=(0,h._w)({type:Boolean,default:!0}),this.showDropListOnFocus=(0,h._w)({type:Boolean,default:!0}),this.showToggle=(0,h._w)({type:Boolean,default:!0}),this.inputClass=(0,h._w)({default:"y-autocomplete-v2-input"}),this.dropOutClass=(0,h._w)({default:"y-autocomplete-v2-drop-out-menu"}),this.pageLimit=(0,h._w)({default:50})}),Oe=function(e){function t(){var e;return(0,u.A)(this,t),e=(0,s.A)(this,t,arguments),e.page=1,e.inputValue="",e.hovered=null,e.active=!1,e}return(0,l.A)(t,e),(0,a.A)(t,[{key:"focusInput",value:function(){this.$refs.wrapper.focu
1sInput()}},{key:"blurInput",value:function(){this.$refs.wrapper.blurInput()}},{key:"getText",value:function(e){return e?this.toText(e):""}},{key:"setInputValue",value:function(e){this.inputValue=e,this.inputValue!==e&&(this.page=1)}},{key:"setInputValueAndUpdate",value:function(e){this.setInputValue(e),this.$emit("search",e)}},{key:"setInputValueByModel",value:function(e){this.inputValue=this.getText(e)}},{key:"setHovered",value:function(e){this.hovered=e}},{key:"shiftHovered",value:function(e){if(this.items){var t;if(null===this.hovered){var n=e<0?this.items.length-1:0;t=this.items[n]||null}else{var i=this.items.indexOf(this.hovered)+e;t=this.items[i]||this.hovered}this.setHovered(t)}}},{key:"setActive",value:function(e){this.active=e}},{key:"toggle",value:function(){this.active?this.$refs.wrapper.blurInput():this.$refs.wrapper.focusInput()}},{key:"setSelectionPageOnActivate",value:function(e){if(e&&this.modelValue&&this.items){var t=this.items.indexOf(this.modelValue);t<this.pageLimit?this.page=1:this.page=Math.ceil(t/this.pageLimit)}}},{key:"resetInputValueOnDeactivate",value:function(){this.active||this.setInputValueByModel(this.modelValue)}},{key:"refreshListOnActivate",value:function(e){e&&this.setInputValueAndUpdate("")}},{key:"select",value:function(e){this.$emit("update:modelValue",e),this.deactivateOnSelect&&this.$refs.wrapper.blurInput()}},{key:"emitActive",value:function(e){this.$emit("active",e)}},{key:"complete",value:function(){null!==this.hovered&&(this.select(this.hovered),this.$emit("complete",this.hovered),this.setActive(!1))}},{key:"isNewCategory",get:function(){var e=this,t=this.toCategoryText;if(t)return function(n,i){return!!e.items&&(!e.items[i-1]||t(n)!==t(e.items[i-1]))}}},{key:"resetPage",value:function(e){this.$emit("is-open",e),e||(this.page=1)}},{key:"increasePageOnScroll",value:function(e){var t=e.target;if(t){var n=t.scrollHeight-t.scrollTop-t.clientHeight;n<100&&this.page++}}}])}(h.lD.with(Ve));(0,c.Cg)([(0,d.o)("modelValue",{immediate:!0}),(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[Object]),(0,c.Sn)("design:returntype",void 0)],Oe.prototype,"setHovered",null),(0,c.Cg)([(0,d.o)("active"),(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[Boolean]),(0,c.Sn)("design:returntype",void 0)],Oe.prototype,"setSelectionPageOnActivate",null),(0,c.Cg)([(0,d.o)("modelValue",{immediate:!0}),(0,d.o)("active"),(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[]),(0,c.Sn)("design:returntype",void 0)],Oe.prototype,"resetInputValueOnDeactivate",null),(0,c.Cg)([(0,d.o)("active"),(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[Boolean]),(0,c.Sn)("design:returntype",void 0)],Oe.prototype,"refreshListOnActivate",null),(0,c.Cg)([(0,d.o)("active"),(0,c.Sn)("design:type",Function),(0,c.Sn)("design:paramtypes",[Boolean]),(0,c.Sn)("design:returntype",void 0)],Oe.prototype,"emitActive",null),Oe=(0,c.Cg)([(0,h.JY)({name:"YAutocompleteV2",emits:["update:modelValue","active","search","complete","is-open"],components:{YAutocompleteV2Toggle:_e,VAutocompleteSpanHighlighted:p["default"],YAutocompleteV2List:Se,YAutocompleteV2Wrapper:ue}})],Oe);const Le=Oe,Ee=(0,q.A)(Le,[["render",r]]),xe=Ee},293549:(e,t,n)=>{n.d(t,{A:()=>I});var i=n(813913),o={class:"y-bottom-sheet"},r={key:0,ref:"content",class:"y-bottom-sheet-container"};function s(e,t,n,s,l,a){return(0,i.openBlock)(),(0,i.createElementBlock)("div",o,[(0,i.createVNode)(i.Transition,{name:"fade"},{default:(0,i.withCtx)(function(){return[e.active?((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:0,ref:"overlay",class:"y-bottom-sheet-overlay",onClick:t[0]||(t[0]=function(t){return e.$emit("close")})},null,512)):(0,i.createCommentVNode)("",!0)]}),_:1}),(0,i.createVNode)(i.Transition,{name:"slide-up",onBeforeEnter:t[1]||(t[1]=function(t){return e.setIsOpen(!0)}),onAfterEnter:e.emitReady,onAfterLeave:t[2]||(t[2]=function(t){return e.setIsOpen(!1)})},{default:(0,i.withCtx)(function(){return[e.active?((0,i.openBlock)(),(0,i.createElementBlock)("div",r,[(0,i.renderSlot)(e.$slots,"default"),(0,i.renderSlot)(e.$slots,"scrollable")],512)):(0,i.createCommentVNode)("",!0)]}),_:3},8,["onAfterEnter"])])}
1var l,a=n(123626),u=n(8340),c=n(321268),h=n(788578),d=n(147932),p=(n(480465),n(274564),n(824329),n(331635)),v=n(172747),f=n(742945),m=n(166817);function y(e){var t=function(e){var t=e.changedTouches[0];t.pageX,t.pageY};window.addEventListener("touchstart",t,{passive:!1});var n=function(t){t.target instanceof Element&&w(e,t.target)||t.cancelable&&t.preventDefault()};return window.addEventListener("touchmove",n,{passive:!1}),function(){window.removeEventListener("touchstart",t,!1),window.removeEventListener("touchmove",n,!1)}}function g(){var e=function(e){e.cancelable&&e.preventDefault()};return window.addEventListener("touchmove",e,{passive:!1}),function(){window.removeEventListener("touchmove",e,!1)}}function w(e,t){var n=t.parentNode;while(null!==n){if(n===e)return!0;n=n.parentNode}return!1}var k="y-bottom-sheet-no-scroll",S=(0,h.A)(function e(){(0,d.A)(this,e),this.active=(0,v._w)({required:!0}),this.disableParentTouch=(0,v._w)({required:!1,default:!0})}),A=function(e){function t(){var e;return(0,d.A)(this,t),e=(0,u.A)(this,t,arguments),e.overlayClasses=[],e.isOpen=!1,e.touchParent=null,e}return(0,c.A)(t,e),(0,h.A)(t,[{key:"disableParentScroll",value:function(){if(this.disableParentTouch){var e=(0,m.I)(this.$el);e.forEach(function(e){return e.classList.add(k)});var t=this.touchParent,n=t?y(t):g();this.enableParentsScroll=function(){e.forEach(function(e){return e.classList.remove(k)}),n()}}}},{key:"setIsOpen",value:function(e){this.isOpen=e}},{key:"toggleBodyScroll",value:function(e){var t=this;setTimeout(function(){var n;e?t.disableParentScroll():null===(n=t.enableParentsScroll)||void 0===n||n.call(t)})}},{key:"emitIsOpen",value:function(e){this.$emit("is-open",e)}},{key:"emitReady",value:function(){var e=this;setTimeout(function(){e.$emit("ready")},50)}},{key:"setTouchParent",value:function(e){return(0,p.sH)(this,void 0,void 0,(0,a.A)().m(function t(){return(0,a.A)().w(function(t){while(1)switch(t.n){case 0:return t.n=1,this.$nextTick();case 1:this.touchParent=e&&(this.$refs.content.children[0]||this.$refs.content.children[1])||null;case 2:return t.a(2)}},t,this)}))}},{key:"setOverlayClasses",value:function(){this.$refs.overlay&&(this.$refs.overlay.style.display=this.active?"block":"none")}},{key:"beforeUnmount",value:function(){var e;null===(e=this.enableParentsScroll)||void 0===e||e.call(this)}}])}(v.lD.with(S));(0,p.Cg)([(0,f.o)("isOpen"),(0,p.Sn)("design:type",Function),(0,p.Sn)("design:paramtypes",[Boolean]),(0,p.Sn)("design:returntype",void 0)],A.prototype,"toggleBodyScroll",null),(0,p.Cg)([(0,f.o)("isOpen"),(0,p.Sn)("design:type",Function),(0,p.Sn)("design:paramtypes",[Boolean]),(0,p.Sn)("design:returntype",void 0)],A.prototype,"emitIsOpen",null),(0,p.Cg)([(0,f.o)("isOpen"),(0,p.Sn)("design:type",Function),(0,p.Sn)("design:paramtypes",[Boolean]),(0,p.Sn)("design:returntype","function"===typeof(l="undefined"!==typeof Promise&&Promise)?l:Object)],A.prototype,"setTouchParent",null),(0,p.Cg)([(0,f.o)("active"),(0,p.Sn)("design:type",Function),(0,p.Sn)("design:paramtypes",[]),(0,p.Sn)("design:returntype",void 0)],A.prototype,"setOverlayClasses",null),A=(0,p.Cg)([(0,v.JY)({name:"YBottomSheet",emits:["ready","close","is-open"]})],A);const B=A;var b=n(801317);const C=(0,b.A)(B,[["render",s]]),I=C},99631:(e,t,n)=>{n.r(t),n.d(t,{default:()=>k});var i=n(813913),o=["disabled","type"];function r(e,t,n,r,s,l){var a=(0,i.resolveComponent)("yc-link");return e.isLink?((0,i.openBlock)(),(0,i.createBlock)(a,(0,i.mergeProps)({key:0,download:e.download,class:e.classes,href:e.link,disabled:e.disabled||void 0,target:e.target},e.$attrs),{default:(0,i.withCtx)(function(){return[(0,i.renderSlot)(e.$slots,"default")]}),_:3},16,["download","class","href","disabled","target"])):((0,i.openBlock)(),(0,i.createElementBlock)("button",(0,i.mergeProps)({key:1,class:e.classes,disabled:e.disabled,type:e.typeAttr},e.$attrs),[(0,i.renderSlot)(e.$slots,"default")],16,o))}var s=n(8340),l=n(321268),a=n(788578),u=n(147932),c=(n(480465),n(331635)),h=n(172747),d=n(643467),p=n(691249),v=n(430440),f=(0,a.A)(function e(){(0,u.A)(this,e),this.size=(0,h._w)({default:function(){return d.M.MEDIUM},validator:(0,p.y$)(d.M)}),this.type=(0,h._w)({default:function(){return d.V.PRIMARY},validator:(0,p.y$)(d.V)}),this.disabled=(0,h._w)({type:Boolean,default:!1}),this.invert=(0,h._w)({type:Boolean,default:!1}),this.typeAttr=(0,h._w)({default:"button"}),this.link=(0,h._w)({type:String,default:""}),this.download=(0,h._w)({type:Boolean,default:!1}),this.active=(0,h._w)({type:Boolean,default:!1}),this.target=(0,h._w)({type:String,default:"_self"})}),m=function(e){function t(){return(0,u.A)(this,t),(0,s.A)(this,t,arguments)}return(0,l.A)(t,e),(0,a.A)(t,[{key:"isLink",get:function(){return""!==this.link}},{key:"classes",get:function(){return["y-button","y-button__size-"+this.size,"y-button__type-"+this.t
1ype,{"y-button__inverted":this.invert,"y-button__active":this.active}]}}])}(h.lD.with(f));m=(0,c.Cg)([(0,h.JY)({name:"YButton",components:{YcLink:v.A}})],m);const y=m;var g=n(801317);const w=(0,g.A)(y,[["render",r]]),k=w},55187:(e,t,n)=>{n.d(t,{A:()=>m});var i=n(813913);function o(e,t,n,o,r,s){return(0,i.openBlock)(),(0,i.createElementBlock)("i",{class:(0,i.normalizeClass)(e.icon),onClick:t[0]||(t[0]=function(t){return e.$emit("click")})},null,2)}var r=n(8340),s=n(321268),l=n(788578),a=n(147932),u=(n(480465),n(331635)),c=n(172747),h=(0,l.A)(function e(){(0,a.A)(this,e),this.faIcon=(0,c._w)({default:""}),this.yIcon=(0,c._w)({default:""})}),d=function(e){function t(){return(0,a.A)(this,t),(0,r.A)(this,t,arguments)}return(0,s.A)(t,e),(0,l.A)(t,[{key:"getYIconClass",value:function(){return"y-icon y-icon-".concat(this.yIcon)}},{key:"getFAIconClass",value:function(){return"fa fa-".concat(this.faIcon)}},{key:"icon",get:function(){return this.yIcon?this.getYIconClass():this.getFAIconClass()}}])}(c.lD.with(h));d=(0,u.Cg)([(0,c.JY)({emits:["click"],name:"YIcon"})],d);const p=d;var v=n(801317);const f=(0,v.A)(p,[["render",o]]),m=f}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.