@citizenplane/pimp 18.23.0 → 18.23.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CpStepper.vue.d.ts","sourceRoot":"","sources":["../../src/components/CpStepper.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CpStepper.vue.d.ts","sourceRoot":"","sources":["../../src/components/CpStepper.vue"],"names":[],"mappings":"AAuBA;AAiLA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAI/D,UAAU,KAAK;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,KAAK,EAAE,aAAa,EAAE,CAAA;CACvB;AAuID,QAAA,MAAM,YAAY;;;;;kBA1ID,MAAM;sBACF,MAAM;6EA6IzB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/pimp.es.js
CHANGED
|
@@ -33486,7 +33486,11 @@ var gR = /*#__PURE__*/ X(pR, [["render", hR]]), _R = { key: 1 }, vR = { key: 1 }
|
|
|
33486
33486
|
})])), [[o, v]]);
|
|
33487
33487
|
};
|
|
33488
33488
|
}
|
|
33489
|
-
}), iz = { class: "cpStepper" }, az = { class: "cpStepper__wrapper" }, oz = [
|
|
33489
|
+
}), iz = { class: "cpStepper" }, az = { class: "cpStepper__wrapper" }, oz = [
|
|
33490
|
+
"aria-label",
|
|
33491
|
+
"disabled",
|
|
33492
|
+
"onClick"
|
|
33493
|
+
], sz = { class: "cpStepper__stepNumber" }, cz = { class: "cpStepper__stepTitle" }, lz = /* @__PURE__ */ h({
|
|
33490
33494
|
__name: "CpStepper",
|
|
33491
33495
|
props: {
|
|
33492
33496
|
activeStepId: { default: void 0 },
|
|
@@ -33495,16 +33499,32 @@ var gR = /*#__PURE__*/ X(pR, [["render", hR]]), _R = { key: 1 }, vR = { key: 1 }
|
|
|
33495
33499
|
},
|
|
33496
33500
|
emits: ["select"],
|
|
33497
33501
|
setup(e, { emit: n }) {
|
|
33498
|
-
let r = e, i = n,
|
|
33499
|
-
|
|
33502
|
+
let r = e, i = n, o = a(() => r.steps.findIndex((e) => e.id === r.activeStepId)), d = (e) => o.value > -1 && e < o.value, f = (e, t) => ({
|
|
33503
|
+
"cpStepper__step--isActive": e.id === r.activeStepId,
|
|
33504
|
+
"cpStepper__step--isCompleted": d(t)
|
|
33505
|
+
}), m = a(() => r.steps.map((e, t) => ({
|
|
33506
|
+
className: f(e, t),
|
|
33507
|
+
id: e.id,
|
|
33508
|
+
isCompleted: d(t),
|
|
33509
|
+
isDisabled: t > r.reachedStepIndex,
|
|
33510
|
+
isNotLast: t < r.steps.length - 1,
|
|
33511
|
+
label: e.label,
|
|
33512
|
+
number: t + 1
|
|
33513
|
+
}))), h = (e) => i("select", e);
|
|
33514
|
+
return (e, n) => (M(), l("div", iz, [u("div", az, [(M(!0), l(t, null, P(m.value, (e) => (M(), l("div", {
|
|
33500
33515
|
key: e.id,
|
|
33501
33516
|
class: "cpStepper__stepWrapper"
|
|
33502
33517
|
}, [u("button", {
|
|
33503
|
-
|
|
33504
|
-
|
|
33518
|
+
"aria-label": e.label,
|
|
33519
|
+
class: T(["cpStepper__step", e.className]),
|
|
33520
|
+
disabled: e.isDisabled,
|
|
33505
33521
|
type: "button",
|
|
33506
|
-
onClick: (t) =>
|
|
33507
|
-
}, [u("span", sz,
|
|
33522
|
+
onClick: (t) => h(e.id)
|
|
33523
|
+
}, [u("span", sz, [e.isCompleted ? (M(), s(CE, {
|
|
33524
|
+
key: 0,
|
|
33525
|
+
size: "12",
|
|
33526
|
+
type: "check"
|
|
33527
|
+
})) : (M(), l(t, { key: 1 }, [p(L(e.number), 1)], 64))]), u("span", cz, L(e.label), 1)], 10, oz), e.isNotLast ? (M(), s(CE, {
|
|
33508
33528
|
key: 0,
|
|
33509
33529
|
class: "cpStepper__chevron",
|
|
33510
33530
|
size: "16",
|
package/dist/pimp.umd.js
CHANGED
|
@@ -1831,7 +1831,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1831
1831
|
border-end-end-radius: dt('autocomplete.dropdown.border.radius');
|
|
1832
1832
|
}
|
|
1833
1833
|
`,classes:{root:function(e){var t=e.instance;return[`p-autocomplete p-component p-inputwrapper`,{"p-invalid":t.$invalid,"p-focus":t.focused,"p-inputwrapper-filled":t.$filled||F(t.inputValue),"p-inputwrapper-focus":t.focused,"p-autocomplete-open":t.overlayVisible,"p-autocomplete-fluid":t.$fluid,"p-autocomplete-clearable":t.isClearIconVisible}]},pcInputText:`p-autocomplete-input`,inputMultiple:function(e){var t=e.instance,n=e.props;return[`p-autocomplete-input-multiple`,{"p-variant-filled":t.$variant===`filled`,"p-disabled":n.disabled}]},clearIcon:`p-autocomplete-clear-icon`,chipItem:function(e){var t=e.instance,n=e.i;return[`p-autocomplete-chip-item`,{"p-focus":t.focusedMultipleOptionIndex===n}]},pcChip:`p-autocomplete-chip`,chipIcon:`p-autocomplete-chip-icon`,inputChip:`p-autocomplete-input-chip`,loader:`p-autocomplete-loader`,dropdown:`p-autocomplete-dropdown`,overlay:`p-autocomplete-overlay p-component`,listContainer:`p-autocomplete-list-container`,list:`p-autocomplete-list`,optionGroup:`p-autocomplete-option-group`,option:function(e){var t=e.instance,n=e.option,r=e.i,i=e.getItemOptions;return[`p-autocomplete-option`,{"p-autocomplete-option-selected":t.isSelected(n),"p-focus":t.focusedOptionIndex===t.getOptionIndex(r,i),"p-disabled":t.isOptionDisabled(n)}]},emptyMessage:`p-autocomplete-empty-message`},inlineStyles:{root:{position:`relative`}}}),uF={name:`BaseAutoComplete`,extends:UP,props:{suggestions:{type:Array,default:null},optionLabel:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:`14rem`},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:`blank`},multiple:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:[String,Object],default:`body`},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:Object,default:null},inputClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayClass:{type:[String,Object],default:null},dropdownIcon:{type:String,default:null},dropdownClass:{type:[String,Object],default:null},loader:{type:String,default:null},loadingIcon:{type:String,default:null},removeTokenIcon:{type:String,default:null},chipIcon:{type:String,default:null},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},showEmptyMessage:{type:Boolean,default:!0},tabindex:{type:Number,default:0},typeahead:{type:Boolean,default:!0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:lF,provide:function(){return{$pcAutoComplete:this,$parentInstance:this}}};function dF(e,t,n){return(t=fF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fF(e){var t=pF(e,`string`);return mF(t)==`symbol`?t:t+``}function pF(e,t){if(mF(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mF(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function mF(e){"@babel/helpers - typeof";return mF=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mF(e)}function hF(e){return yF(e)||vF(e)||_F(e)||gF()}function gF(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1834
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _F(e,t){if(e){if(typeof e==`string`)return bF(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bF(e,t):void 0}}function vF(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function yF(e){if(Array.isArray(e))return bF(e)}function bF(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var xF={name:`AutoComplete`,extends:uF,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`item-select`,`item-unselect`,`option-select`,`option-unselect`,`dropdown-click`,`clear`,`complete`,`before-show`,`before-hide`,`show`,`hide`],inject:{$pcFluid:{default:null}},outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,dirty:!1,startRangeIndex:-1,data:function(){return{clicked:!1,focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}},watch:{suggestions:function(){this.searching&&(this.show(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1,!this.showEmptyMessage&&this.visibleOptions.length===0&&this.hide()),this.autoUpdateModel()}},mounted:function(){this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.alignOverlay()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&=(this.scrollHandler.destroy(),null),this.overlay&&=(gi.clear(this.overlay),null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?nr(e,this.optionLabel):e},getOptionValue:function(e){return e},getOptionRenderKey:function(e,t){return(this.dataKey?nr(e,this.dataKey):this.getOptionLabel(e))+`_`+t},getPTOptions:function(e,t,n,r){return this.ptm(r,{context:{option:e,index:n,selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(n,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return this.optionDisabled?nr(e,this.optionDisabled):!1},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return nr(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return nr(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter(function(e){return t.isOptionGroup(e)}).length:e)+1},show:function(e){this.$emit(`before-show`),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=this.focusedOptionIndex===-1?this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1:this.focusedOptionIndex,e&&Jr(this.multiple?this.$refs.focusInput:this.$refs.focusInput.$el)},hide:function(e){var t=this,n=function(){t.$emit(`before-hide`),t.dirty=e,t.overlayVisible=!1,t.clicked=!1,t.focusedOptionIndex=-1,e&&Jr(t.multiple?t.$refs.focusInput:t.$refs.focusInput?.$el)};setTimeout(function(){n()},0)},onFocus:function(e){this.disabled||(!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,`focus`),this.dirty=!0,this.focused=!0,this.overlayVisible&&(this.focusedOptionIndex=this.focusedOptionIndex===-1?this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1:this.focusedOptionIndex,this.scrollInView(this.focusedOptionIndex)),this.$emit(`focus`,e))},onBlur:function(e){var t,n;this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit(`blur`,e),(t=(n=this.formField).onBlur)==null||t.call(n)},onKeyDown:function(e){if(this.disabled){e.preventDefault();return}switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e);break;case`ArrowLeft`:this.onArrowLeftKey(e);break;case`ArrowRight`:this.onArrowRightKey(e);break;case`Home`:this.onHomeKey(e);break;case`End`:this.onEndKey(e);break;case`PageDown`:this.onPageDownKey(e);break;case`PageUp`:this.onPageUpKey(e);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`Space`:this.onSpaceKey(e);break;case`Escape`:this.onEscapeKey(e);break;case`Tab`:this.onTabKey(e);break;case`ShiftLeft`:case`ShiftRight`:this.onShiftKey(e);break;case`Backspace`:this.onBackspaceKey(e);break}this.clicked=!1},onInput:function(e){var t=this;if(this.typeahead){this.searchTimeout&&clearTimeout(this.searchTimeout);var n=e.target.value;this.multiple||this.updateModel(e,n),n.length===0?(this.searching=!1,this.hide(),this.$emit(`clear`)):n.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout(function(){t.search(e,n,`input`)},this.delay)):(this.searching=!1,this.hide())}},onChange:function(e){var t=this;if(this.forceSelection){var n=!1;if(this.visibleOptions&&!this.multiple){var r,i=this.multiple?this.$refs.focusInput.value:(r=this.$refs.focusInput)==null||(r=r.$el)==null?void 0:r.value,a=this.visibleOptions.find(function(e){return t.isOptionMatched(e,i||``)});a!==void 0&&(n=!0,!this.isSelected(a)&&this.onOptionSelect(e,a))}if(!n){if(this.multiple)this.$refs.focusInput.value=``;else{var o=this.$refs.focusInput?.$el;o&&(o.value=``)}this.$emit(`clear`),!this.multiple&&this.updateModel(e,null)}}},onMultipleContainerFocus:function(){this.disabled||(this.focused=!0)},onMultipleContainerBlur:function(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown:function(e){if(this.disabled){e.preventDefault();return}switch(e.code){case`ArrowLeft`:this.onArrowLeftKeyOnMultiple(e);break;case`ArrowRight`:this.onArrowRightKeyOnMultiple(e);break;case`Backspace`:this.onBackspaceKeyOnMultiple(e);break}},onContainerClick:function(e){this.clicked=!0,!(this.disabled||this.searching||this.loading||this.isDropdownClicked(e))&&(!this.overlay||!this.overlay.contains(e.target))&&Jr(this.multiple?this.$refs.focusInput:this.$refs.focusInput.$el)},onDropdownClick:function(e){var t=void 0;if(this.overlayVisible)this.hide(!0);else{var n=this.multiple?this.$refs.focusInput:this.$refs.focusInput.$el;Jr(n),t=n.value,this.dropdownMode===`blank`?this.search(e,``,`dropdown`):this.dropdownMode===`current`&&this.search(e,t,`dropdown`)}this.$emit(`dropdown-click`,{originalEvent:e,query:t})},onOptionSelect:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value=``,this.isSelected(t)||this.updateModel(e,[].concat(hF(this.d_value||[]),[r]))):this.updateModel(e,r),this.$emit(`item-select`,{originalEvent:e,value:t}),this.$emit(`option-select`,{originalEvent:e,value:t}),n&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOptionSelectRange:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;if(n===-1&&(n=this.findNearestSelectedOptionIndex(r,!0)),r===-1&&(r=this.findNearestSelectedOptionIndex(n)),n!==-1&&r!==-1){var i=Math.min(n,r),a=Math.max(n,r),o=this.visibleOptions.slice(i,a+1).filter(function(e){return t.isValidOption(e)}).filter(function(e){return!t.isSelected(e)}).map(function(e){return t.getOptionValue(e)});this.updateModel(e,[].concat(hF(this.d_value||[]),hF(o)))}},onClearClick:function(e){this.updateModel(e,null),this.$emit(`clear`)},onOverlayClick:function(e){cP.emit(`overlay-click`,{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){switch(e.code){case`Escape`:this.onEscapeKey(e);break}},onArrowDownKey:function(e){if(this.overlayVisible){var t=this.focusedOptionIndex===-1?this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex():this.findNextOptionIndex(this.focusedOptionIndex);this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex,t),this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowUpKey:function(e){if(this.overlayVisible)if(e.altKey)this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=this.focusedOptionIndex===-1?this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex():this.findPrevOptionIndex(this.focusedOptionIndex);this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,t,this.startRangeIndex),this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey:function(e){var t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(Qn(t.value)&&this.$filled?(Jr(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.d_value.length):e.stopPropagation())},onArrowRightKey:function(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey:function(e){var t=e.currentTarget,n=t.value.length,r=e.metaKey||e.ctrlKey,i=this.findFirstOptionIndex();this.multiple&&e.shiftKey&&r&&this.onOptionSelectRange(e,i,this.startRangeIndex),t.setSelectionRange(0,e.shiftKey?n:0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey:function(e){var t=e.currentTarget,n=t.value.length,r=e.metaKey||e.ctrlKey,i=this.findLastOptionIndex();this.multiple&&e.shiftKey&&r&&this.onOptionSelectRange(e,this.startRangeIndex,i),t.setSelectionRange(e.shiftKey?0:n,n),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.typeahead?this.overlayVisible?(this.focusedOptionIndex!==-1&&(this.multiple&&e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex):this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),e.preventDefault()),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(e)):this.multiple&&(e.target.value.trim()&&(this.updateModel(e,[].concat(hF(this.d_value||[]),[e.target.value.trim()])),this.$refs.focusInput.value=``),e.preventDefault())},onSpaceKey:function(e){!this.autoOptionFocus&&this.focusedOptionIndex!==-1&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onShiftKey:function(){this.startRangeIndex=this.focusedOptionIndex},onBackspaceKey:function(e){if(this.multiple){if(F(this.d_value)&&!this.$refs.focusInput.value){var t=this.d_value[this.d_value.length-1],n=this.d_value.slice(0,-1);this.writeValue(n,e),this.$emit(`item-unselect`,{originalEvent:e,value:t}),this.$emit(`option-unselect`,{originalEvent:e,value:t})}e.stopPropagation()}},onArrowLeftKeyOnMultiple:function(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple:function(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.d_value.length-1&&(this.focusedMultipleOptionIndex=-1,Jr(this.$refs.focusInput))},onBackspaceKeyOnMultiple:function(e){this.focusedMultipleOptionIndex!==-1&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter:function(e){gi.set(`overlay`,e,this.$primevue.config.zIndex.overlay),Ir(e,{position:`absolute`,top:`0`}),this.alignOverlay(),this.$attrSelector&&e.setAttribute(this.$attrSelector,``)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(`show`)},onOverlayLeave:function(e){e.style.pointerEvents=`none`,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit(`hide`),this.overlay=null},onOverlayAfterLeave:function(e){gi.clear(e)},alignOverlay:function(){var e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput.$el;this.appendTo===`self`?Rr(this.overlay,e):(this.overlay.style.minWidth=Lr(e)+`px`,Fr(this.overlay,e))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener(`click`,this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&=(document.removeEventListener(`click`,this.outsideClickListener,!0),null)},bindScrollListener:function(){var e=this;this.scrollHandler||=new sP(this.$refs.container,function(){e.overlayVisible&&e.hide()}),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!ui()&&e.hide()},window.addEventListener(`resize`,this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),null)},isOutsideClicked:function(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked:function(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput.$el},isDropdownClicked:function(e){return this.$refs.dropdownButton?e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.contains(e.target):!1},isOptionMatched:function(e,t){return this.isValidOption(e)&&this.getOptionLabel(e)?.toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption:function(e){return F(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isEquals:function(e,t){return rr(e,t,this.equalityKey)},isSelected:function(e){var t=this,n=this.getOptionValue(e);return this.multiple?(this.d_value||[]).some(function(e){return t.isEquals(e,n)}):this.isEquals(this.d_value,this.getOptionValue(e))},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(t){return e.isValidOption(t)})},findLastOptionIndex:function(){var e=this;return sr(this.visibleOptions,function(t){return e.isValidOption(t)})},findNextOptionIndex:function(e){var t=this,n=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(e){return t.isValidOption(e)}):-1;return n>-1?n+e+1:e},findPrevOptionIndex:function(e){var t=this,n=e>0?sr(this.visibleOptions.slice(0,e),function(e){return t.isValidOption(e)}):-1;return n>-1?n:e},findSelectedOptionIndex:function(){var e=this;return this.$filled?this.visibleOptions.findIndex(function(t){return e.isValidSelectedOption(t)}):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search:function(e,t,n){t!=null&&(n===`input`&&t.trim().length===0||(this.searching=!0,this.$emit(`complete`,{originalEvent:e,query:t})))},removeOption:function(e,t){var n=this,r=this.d_value[t],i=this.d_value.filter(function(e,n){return n!==t}).map(function(e){return n.getOptionValue(e)});this.updateModel(e,i),this.$emit(`item-unselect`,{originalEvent:e,value:r}),this.$emit(`option-unselect`,{originalEvent:e,value:r}),this.dirty=!0,Jr(this.multiple?this.$refs.focusInput:this.$refs.focusInput.$el)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var n=t===-1?e.focusedOptionId:`${e.$id}_${t}`,r=qr(e.list,`li[id="${n}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:`nearest`,inline:`start`}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(t===-1?e.focusedOptionIndex:t)})},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.writeValue(t,e),this.$emit(`change`,{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce(function(e,n,r){e.push({optionGroup:n,group:!0,index:r});var i=t.getOptionGroupChildren(n);return i&&i.forEach(function(t){return e.push(t)}),e},[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e},findNextSelectedOptionIndex:function(e){var t=this,n=this.$filled&&e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(e){return t.isValidSelectedOption(e)}):-1;return n>-1?n+e+1:-1},findPrevSelectedOptionIndex:function(e){var t=this,n=this.$filled&&e>0?sr(this.visibleOptions.slice(0,e),function(e){return t.isValidSelectedOption(e)}):-1;return n>-1?n:-1},findNearestSelectedOptionIndex:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=-1;return this.$filled&&(t?(n=this.findPrevSelectedOptionIndex(e),n=n===-1?this.findNextSelectedOptionIndex(e):n):(n=this.findNextSelectedOptionIndex(e),n=n===-1?this.findPrevSelectedOptionIndex(e):n)),n>-1?n:e}},computed:{visibleOptions:function(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue:function(){return this.$filled?mF(this.d_value)===`object`?this.getOptionLabel(this.d_value)??this.d_value:this.d_value:``},hasSelectedOption:function(){return this.$filled},equalityKey:function(){return this.dataKey},searchResultMessageText:function(){return F(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll(`{0}`,this.visibleOptions.length):this.emptySearchMessageText},searchMessageText:function(){return this.searchMessage||this.$primevue.config.locale.searchMessage||``},emptySearchMessageText:function(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||``},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||``},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||``},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(`{0}`,this.multiple?this.d_value.length:`1`):this.emptySelectionMessageText},listAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.listLabel:void 0},focusedOptionId:function(){return this.focusedOptionIndex===-1?null:`${this.$id}_${this.focusedOptionIndex}`},focusedMultipleOptionId:function(){return this.focusedMultipleOptionIndex===-1?null:`${this.$id}_multiple_option_${this.focusedMultipleOptionIndex}`},isClearIconVisible:function(){return this.showClear&&this.$filled&&!this.disabled&&!this.loading},ariaSetSize:function(){var e=this;return this.visibleOptions.filter(function(t){return!e.isOptionGroup(t)}).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions},panelId:function(){return this.$id+`_panel`},containerDataP:function(){return xr({fluid:this.$fluid})},overlayDataP:function(){return xr(dF({},`portal-`+this.appendTo,`portal-`+this.appendTo))},inputMultipleDataP:function(){return xr(dF({invalid:this.$invalid,disabled:this.disabled,focus:this.focused,fluid:this.$fluid,filled:this.$variant===`filled`,empty:!this.$filled},this.size,this.size))}},components:{InputText:YP,VirtualScroller:oF,Portal:HA,Chip:zP,ChevronDownIcon:SP,SpinnerIcon:nN,TimesIcon:JM},directives:{ripple:qj}};function SF(e){"@babel/helpers - typeof";return SF=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},SF(e)}function CF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CF(Object(n),!0).forEach(function(t){TF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TF(e,t,n){return(t=EF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EF(e){var t=DF(e,`string`);return SF(t)==`symbol`?t:t+``}function DF(e,t){if(SF(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(SF(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var OF=[`data-p`],kF=[`aria-activedescendant`,`data-p-has-dropdown`,`data-p`],AF=[`id`,`aria-label`,`aria-setsize`,`aria-posinset`],jF=[`id`,`placeholder`,`tabindex`,`disabled`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`aria-invalid`],MF=[`data-p-has-dropdown`],NF=[`disabled`,`aria-expanded`,`aria-controls`],PF=[`id`,`data-p`],FF=[`id`,`aria-label`],IF=[`id`],LF=[`id`,`aria-label`,`aria-selected`,`aria-disabled`,`aria-setsize`,`aria-posinset`,`onClick`,`onMousemove`,`data-p-selected`,`data-p-focused`,`data-p-disabled`];function RF(e,n,r,i,a,o){var s=(0,t.resolveComponent)(`InputText`),c=(0,t.resolveComponent)(`TimesIcon`),l=(0,t.resolveComponent)(`Chip`),u=(0,t.resolveComponent)(`SpinnerIcon`),d=(0,t.resolveComponent)(`VirtualScroller`),f=(0,t.resolveComponent)(`Portal`),p=(0,t.resolveDirective)(`ripple`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({ref:`container`,class:e.cx(`root`),style:e.sx(`root`),onClick:n[11]||=function(){return o.onContainerClick&&o.onContainerClick.apply(o,arguments)},"data-p":o.containerDataP},e.ptmi(`root`)),[e.multiple?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,ref:`focusInput`,id:e.inputId,type:`text`,name:e.$formName,class:(0,t.normalizeClass)([e.cx(`pcInputText`),e.inputClass]),style:(0,t.normalizeStyle)(e.inputStyle),defaultValue:o.inputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,fluid:e.$fluid,disabled:e.disabled,size:e.size,invalid:e.invalid,variant:e.variant,autocomplete:`off`,role:`combobox`,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":`listbox`,"aria-autocomplete":`list`,"aria-expanded":a.overlayVisible,"aria-controls":a.overlayVisible?o.panelId:void 0,"aria-activedescendant":a.focused?o.focusedOptionId:void 0,onFocus:o.onFocus,onBlur:o.onBlur,onKeydown:o.onKeyDown,onInput:o.onInput,onChange:o.onChange,unstyled:e.unstyled,"data-p-has-dropdown":e.dropdown,pt:e.ptm(`pcInputText`)},null,8,[`id`,`name`,`class`,`style`,`defaultValue`,`placeholder`,`tabindex`,`fluid`,`disabled`,`size`,`invalid`,`variant`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`onFocus`,`onBlur`,`onKeydown`,`onInput`,`onChange`,`unstyled`,`data-p-has-dropdown`,`pt`])),o.isClearIconVisible?(0,t.renderSlot)(e.$slots,`clearicon`,{key:1,class:(0,t.normalizeClass)(e.cx(`clearIcon`)),clearCallback:o.onClearClick},function(){return[(0,t.createVNode)(c,(0,t.mergeProps)({class:[e.cx(`clearIcon`)],onClick:o.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):(0,t.createCommentVNode)(``,!0),e.multiple?((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,(0,t.mergeProps)({key:2,ref:`multiContainer`,class:e.cx(`inputMultiple`),tabindex:`-1`,role:`listbox`,"aria-orientation":`horizontal`,"aria-activedescendant":a.focused?o.focusedMultipleOptionId:void 0,onFocus:n[5]||=function(){return o.onMultipleContainerFocus&&o.onMultipleContainerFocus.apply(o,arguments)},onBlur:n[6]||=function(){return o.onMultipleContainerBlur&&o.onMultipleContainerBlur.apply(o,arguments)},onKeydown:n[7]||=function(){return o.onMultipleContainerKeyDown&&o.onMultipleContainerKeyDown.apply(o,arguments)},"data-p-has-dropdown":e.dropdown,"data-p":o.inputMultipleDataP},e.ptm(`inputMultiple`)),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.d_value,function(n,r){return(0,t.openBlock)(),(0,t.createElementBlock)(`li`,(0,t.mergeProps)({key:`${r}_${o.getOptionLabel(n)}`,id:e.$id+`_multiple_option_`+r,class:e.cx(`chipItem`,{i:r}),role:`option`,"aria-label":o.getOptionLabel(n),"aria-selected":!0,"aria-setsize":e.d_value.length,"aria-posinset":r+1},{ref_for:!0},e.ptm(`chipItem`)),[(0,t.renderSlot)(e.$slots,`chip`,(0,t.mergeProps)({class:e.cx(`pcChip`),value:n,index:r,removeCallback:function(e){return o.removeOption(e,r)}},{ref_for:!0},e.ptm(`pcChip`)),function(){return[(0,t.createVNode)(l,{class:(0,t.normalizeClass)(e.cx(`pcChip`)),label:o.getOptionLabel(n),removeIcon:e.chipIcon||e.removeTokenIcon,removable:``,unstyled:e.unstyled,onRemove:function(e){return o.removeOption(e,r)},"data-p-focused":a.focusedMultipleOptionIndex===r,pt:e.ptm(`pcChip`)},{removeicon:(0,t.withCtx)(function(){return[(0,t.renderSlot)(e.$slots,e.$slots.chipicon?`chipicon`:`removetokenicon`,{class:(0,t.normalizeClass)(e.cx(`chipIcon`)),index:r,removeCallback:function(e){return o.removeOption(e,r)}})]}),_:2},1032,[`class`,`label`,`removeIcon`,`unstyled`,`onRemove`,`data-p-focused`,`pt`])]})],16,AF)}),128)),(0,t.createElementVNode)(`li`,(0,t.mergeProps)({class:e.cx(`inputChip`),role:`option`},e.ptm(`inputChip`)),[(0,t.createElementVNode)(`input`,(0,t.mergeProps)({ref:`focusInput`,id:e.inputId,type:`text`,style:e.inputStyle,class:e.inputClass,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:`off`,role:`combobox`,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":`listbox`,"aria-autocomplete":`list`,"aria-expanded":a.overlayVisible,"aria-controls":e.$id+`_list`,"aria-activedescendant":a.focused?o.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,onFocus:n[0]||=function(){return o.onFocus&&o.onFocus.apply(o,arguments)},onBlur:n[1]||=function(){return o.onBlur&&o.onBlur.apply(o,arguments)},onKeydown:n[2]||=function(){return o.onKeyDown&&o.onKeyDown.apply(o,arguments)},onInput:n[3]||=function(){return o.onInput&&o.onInput.apply(o,arguments)},onChange:n[4]||=function(){return o.onChange&&o.onChange.apply(o,arguments)}},e.ptm(`input`)),null,16,jF)],16)],16,kF)):(0,t.createCommentVNode)(``,!0),a.searching||e.loading?(0,t.renderSlot)(e.$slots,e.$slots.loader?`loader`:`loadingicon`,{key:3,class:(0,t.normalizeClass)(e.cx(`loader`))},function(){return[e.loader||e.loadingIcon?((0,t.openBlock)(),(0,t.createElementBlock)(`i`,(0,t.mergeProps)({key:0,class:[`pi-spin`,e.cx(`loader`),e.loader,e.loadingIcon],"aria-hidden":`true`,"data-p-has-dropdown":e.dropdown},e.ptm(`loader`)),null,16,MF)):e.loading?((0,t.openBlock)(),(0,t.createBlock)(u,(0,t.mergeProps)({key:1,class:e.cx(`loader`),spin:``,"aria-hidden":`true`,"data-p-has-dropdown":e.dropdown},e.ptm(`loader`)),null,16,[`class`,`data-p-has-dropdown`])):(0,t.createCommentVNode)(``,!0)]}):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(e.$slots,e.$slots.dropdown?`dropdown`:`dropdownbutton`,{toggleCallback:function(e){return o.onDropdownClick(e)}},function(){return[e.dropdown?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,(0,t.mergeProps)({key:0,ref:`dropdownButton`,type:`button`,class:[e.cx(`dropdown`),e.dropdownClass],disabled:e.disabled,"aria-haspopup":`listbox`,"aria-expanded":a.overlayVisible,"aria-controls":o.panelId,onClick:n[8]||=function(){return o.onDropdownClick&&o.onDropdownClick.apply(o,arguments)}},e.ptm(`dropdown`)),[(0,t.renderSlot)(e.$slots,`dropdownicon`,{class:(0,t.normalizeClass)(e.dropdownIcon)},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.dropdownIcon?`span`:`ChevronDownIcon`),(0,t.mergeProps)({class:e.dropdownIcon},e.ptm(`dropdownIcon`)),null,16,[`class`]))]})],16,NF)):(0,t.createCommentVNode)(``,!0)]}),e.typeahead?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,(0,t.mergeProps)({key:4,role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenSearchResult`),{"data-p-hidden-accessible":!0}),(0,t.toDisplayString)(o.searchResultMessageText),17)):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(f,{appendTo:e.appendTo},{default:(0,t.withCtx)(function(){return[(0,t.createVNode)(t.Transition,(0,t.mergeProps)({name:`p-anchored-overlay`,onEnter:o.onOverlayEnter,onAfterEnter:o.onOverlayAfterEnter,onLeave:o.onOverlayLeave,onAfterLeave:o.onOverlayAfterLeave},e.ptm(`transition`)),{default:(0,t.withCtx)(function(){return[a.overlayVisible?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:0,ref:o.overlayRef,id:o.panelId,class:[e.cx(`overlay`),e.panelClass,e.overlayClass],style:wF(wF({},e.panelStyle),e.overlayStyle),onClick:n[9]||=function(){return o.onOverlayClick&&o.onOverlayClick.apply(o,arguments)},onKeydown:n[10]||=function(){return o.onOverlayKeyDown&&o.onOverlayKeyDown.apply(o,arguments)},"data-p":o.overlayDataP},e.ptm(`overlay`)),[(0,t.renderSlot)(e.$slots,`header`,{value:e.d_value,suggestions:o.visibleOptions}),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`listContainer`),style:{"max-height":o.virtualScrollerDisabled?e.scrollHeight:``}},e.ptm(`listContainer`)),[(0,t.createVNode)(d,(0,t.mergeProps)({ref:o.virtualScrollerRef},e.virtualScrollerOptions,{style:{height:e.scrollHeight},items:o.visibleOptions,tabindex:-1,disabled:o.virtualScrollerDisabled,pt:e.ptm(`virtualScroller`)}),(0,t.createSlots)({content:(0,t.withCtx)(function(n){var r=n.styleClass,i=n.contentRef,s=n.items,c=n.getItemOptions,l=n.contentStyle,u=n.itemSize;return[(0,t.createElementVNode)(`ul`,(0,t.mergeProps)({ref:function(e){return o.listRef(e,i)},id:e.$id+`_list`,class:[e.cx(`list`),r],style:l,role:`listbox`,"aria-label":o.listAriaLabel},e.ptm(`list`)),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s,function(n,r){return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:o.getOptionRenderKey(n,o.getOptionIndex(r,c))},[o.isOptionGroup(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,(0,t.mergeProps)({key:0,id:e.$id+`_`+o.getOptionIndex(r,c),style:{height:u?u+`px`:void 0},class:e.cx(`optionGroup`),role:`option`},{ref_for:!0},e.ptm(`optionGroup`)),[(0,t.renderSlot)(e.$slots,`optiongroup`,{option:n.optionGroup,index:o.getOptionIndex(r,c)},function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(o.getOptionGroupLabel(n.optionGroup)),1)]})],16,IF)):(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`li`,(0,t.mergeProps)({key:1,id:e.$id+`_`+o.getOptionIndex(r,c),style:{height:u?u+`px`:void 0},class:e.cx(`option`,{option:n,i:r,getItemOptions:c}),role:`option`,"aria-label":o.getOptionLabel(n),"aria-selected":o.isSelected(n),"aria-disabled":o.isOptionDisabled(n),"aria-setsize":o.ariaSetSize,"aria-posinset":o.getAriaPosInset(o.getOptionIndex(r,c)),onClick:function(e){return o.onOptionSelect(e,n)},onMousemove:function(e){return o.onOptionMouseMove(e,o.getOptionIndex(r,c))},"data-p-selected":o.isSelected(n),"data-p-focused":a.focusedOptionIndex===o.getOptionIndex(r,c),"data-p-disabled":o.isOptionDisabled(n)},{ref_for:!0},o.getPTOptions(n,c,r,`option`)),[(0,t.renderSlot)(e.$slots,`option`,{option:n,index:o.getOptionIndex(r,c)},function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(o.getOptionLabel(n)),1)]})],16,LF)),[[p]])],64)}),128)),e.showEmptyMessage&&(!s||s&&s.length===0)?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,(0,t.mergeProps)({key:0,class:e.cx(`emptyMessage`),role:`option`},e.ptm(`emptyMessage`)),[(0,t.renderSlot)(e.$slots,`empty`,{},function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(o.searchResultMessageText),1)]})],16)):(0,t.createCommentVNode)(``,!0)],16,FF)]}),_:2},[e.$slots.loader?{name:`loader`,fn:(0,t.withCtx)(function(n){var r=n.options;return[(0,t.renderSlot)(e.$slots,`loader`,{options:r})]}),key:`0`}:void 0]),1040,[`style`,`items`,`disabled`,`pt`])],16),(0,t.renderSlot)(e.$slots,`footer`,{value:e.d_value,suggestions:o.visibleOptions}),(0,t.createElementVNode)(`span`,(0,t.mergeProps)({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenSelectedMessage`),{"data-p-hidden-accessible":!0}),(0,t.toDisplayString)(o.selectedMessageText),17)],16,PF)):(0,t.createCommentVNode)(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onLeave`,`onAfterLeave`])]}),_:3},8,[`appendTo`])],16,OF)}xF.render=RF;var zF={class:`baseSelectClearButton`,type:`button`},BF=(0,t.defineComponent)({__name:`BaseSelectClearButton`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,zF,[(0,t.createVNode)(J,{size:`16`,type:`x`})]))}}),VF=e=>typeof e==`object`&&!!e,HF=e=>!VF(e)||Reflect.ownKeys(e).length===0&&e.constructor===Object,UF={class:`cpMultiselect__empty`},WF={class:`cpMultiselect__option`,type:`button`},GF={key:0,class:`cpMultiselect__prefix`},KF=[`disabled`],qF={key:0,class:`cpMultiselect__error`},JF=(0,t.defineComponent)({__name:`CpMultiselect`,props:{appendTo:{default:`body`},disableBlurReset:{type:Boolean,default:!1},disabled:{type:Boolean},emptyMessage:{default:`No results found`},errorMessage:{default:``},forceSelection:{type:Boolean},isClearable:{type:Boolean},isInvalid:{type:Boolean},isLoading:{type:Boolean},label:{default:``},modelValue:{default:null},multiple:{type:Boolean},name:{default:``},onSearch:{type:Function,default:void 0},optionDisabled:{type:[String,Function],default:`disabled`},optionLabel:{type:[String,Function],default:`name`},options:{default:()=>[]},placeholder:{default:``},required:{type:Boolean},size:{default:`md`},trackBy:{default:void 0},withoutTypeahead:{type:Boolean}},emits:[`search`,`clear`,`update:modelValue`,`overlayShown`,`overlayHidden`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useSlots)(),o=(0,t.useId)(),s=(0,t.useId)(),c=(0,t.computed)(()=>r.label?s:void 0),l=(0,t.computed)({get(){return r.modelValue},set(e){typeof e!=`string`&&i(`update:modelValue`,e)}}),u=(0,t.computed)(()=>({cpMultiselect__input:!0,"cpMultiselect__input--isSingle":!r.multiple})),d=(0,t.computed)(()=>({root:{class:`cpMultiselect__select cpMultiselect__select--${r.size}`},inputmultiple:{class:`cpMultiselect__tags`},dropdown:{class:`cpMultiselect__toggle`},inputchip:{class:`cpMultiselect__inputWrapper`},overlay:{class:`cpMultiselect__overlay ${m.value?``:`cpMultiselect__overlay--isHidden`}`},listcontainer:{class:`cpMultiselect__listWrapper`},list:{class:`cpMultiselect__list`},option:{class:`cpMultiselect__optionWrapper`},loader:{class:`cpMultiselect__hidden`}})),f=(0,t.ref)(null),p=(0,t.ref)(``),m=(0,t.computed)(()=>!r.withoutTypeahead),h=(0,t.computed)(()=>f.value?.overlayVisible),g=(0,t.computed)(()=>({"cpMultiselect__dropdownIcon--isRotated":h.value})),_=(0,t.computed)(()=>!!a.prefix),v=(0,t.computed)(()=>r.multiple?!!l.value?.length:!HF(l.value)),y=(0,t.computed)(()=>(r.isInvalid??!1)&&!!r.errorMessage),b=(0,t.computed)(()=>({"cpMultiselect--hasPrefix":_.value,"cpMultiselect--isMultiple":r.multiple??!1,"cpMultiselect--hasValue":v.value,"cpMultiselect--hasError":y.value})),x=(0,t.computed)(()=>!r.multiple&&r.isClearable&&!HF(l.value)),S=(0,t.computed)(()=>r.onSearch!==void 0),C=e=>{if(S.value)return i(`search`,e.query);h.value||N()},w=(0,t.computed)(()=>S.value?r.options:r.options.filter(e=>(typeof e==`object`&&typeof r.optionLabel==`string`?e[r.optionLabel]:e).toLowerCase().includes(p.value.toLowerCase()))),T=()=>l.value=null,E=()=>i(`overlayShown`),D=()=>i(`overlayHidden`),O=()=>{if(!r.disableBlurReset)if(r.multiple){let e=A();e&&(e.value=``)}else f.value?.writeValue(l.value)},k=e=>{typeof e==`string`&&(p.value=e,e===``&&i(`search`,e))},A=()=>f.value&&f.value.$el?.querySelector(`input`)||null,j=()=>{let e=A();e&&e.select()},M=()=>{let e=A();e&&(e.focus(),j())},ee=()=>{N(),j()},te=()=>{N(),M()},ne=()=>{if(!h.value)return N()},N=()=>{h.value?f.value?.hide():f.value?.show()},re=e=>{},ie=()=>{f.value&&(f.value.alignOverlay=ae)},ae=()=>{let e=f.value?.$el;!f.value?.overlay||!e||(f.value.overlay.style.width=`${Lr(e)}px`,Fr(f.value.overlay,e))};return(0,t.onMounted)(()=>ie()),(n,r)=>{let i=(0,t.resolveComponent)(`cp-badge`),a=(0,t.resolveComponent)(`cp-loader`),p=(0,t.resolveComponent)(`cp-icon`),h=(0,t.resolveDirective)(`bind-once`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpMultiselect`,b.value])},[e.label?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(pA,{key:0,id:(0,t.unref)(s),"is-invalid":e.isInvalid,required:e.required},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:1},8,[`id`,`is-invalid`,`required`])),[[h,{for:(0,t.unref)(o)}]]):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(xF),{ref_key:`multiselect`,ref:f,modelValue:l.value,"onUpdate:modelValue":[r[0]||=e=>l.value=e,re],"append-to":e.appendTo,"aria-labelledby":c.value,"auto-option-focus":``,"data-key":e.trackBy,disabled:e.disabled,"force-selection":e.forceSelection,"input-class":u.value,"input-id":(0,t.unref)(o),invalid:e.isInvalid,multiple:e.multiple,name:e.name,"option-disabled":e.optionDisabled,"option-label":e.optionLabel,placeholder:e.placeholder,pt:d.value,suggestions:w.value,typeahead:m.value,onBlur:O,onClick:ee,onComplete:C,onHide:D,onKeydown:[(0,t.withKeys)(ne,[`arrow-down`]),(0,t.withKeys)(ne,[`arrow-up`]),(0,t.withKeys)(N,[`enter`]),r[1]||=(0,t.withKeys)((0,t.withModifiers)(()=>{},[`stop`]),[`esc`])],onShow:E,onValueChange:k},(0,t.createSlots)({empty:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`empty`,{},()=>[(0,t.createElementVNode)(`div`,UF,(0,t.toDisplayString)(e.emptyMessage),1)])]),chip:(0,t.withCtx)(({value:e,removeCallback:r})=>[(0,t.renderSlot)(n.$slots,`tag`,{option:e,remove:r},()=>[(0,t.createVNode)(i,{class:`cpMultiselect__tag`,"is-clearable":``,size:`sm`,onOnClear:r},{"leading-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`tag-leading-icon`,{option:e})]),default:(0,t.withCtx)(()=>[(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.name),1)]),_:2},1032,[`onOnClear`])])]),option:(0,t.withCtx)(({option:e})=>[(0,t.renderSlot)(n.$slots,`option`,{option:e},()=>[(0,t.createElementVNode)(`button`,WF,(0,t.toDisplayString)(e.name),1)])]),_:2},[m.value?{name:`dropdown`,fn:(0,t.withCtx)(()=>[_.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,GF,[(0,t.renderSlot)(n.$slots,`prefix`)])):(0,t.createCommentVNode)(``,!0),e.isLoading?((0,t.openBlock)(),(0,t.createBlock)(a,{key:1,class:`cpMultiselect__loader`,color:`#B2B2BD`})):((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:2,class:`cpMultiselect__toggle`,disabled:e.disabled,tabindex:`-1`,type:`button`,onClick:(0,t.withModifiers)(te,[`stop`])},[(0,t.createVNode)(p,{class:(0,t.normalizeClass)([`cpMultiselect__dropdownIcon`,g.value]),type:`chevron-down`},null,8,[`class`])],8,KF)),x.value?((0,t.openBlock)(),(0,t.createBlock)(BF,{key:3,class:`cpMultiselect__clear`,tabindex:`-1`,onClick:T})):(0,t.createCommentVNode)(``,!0)]),key:`0`}:void 0]),1032,[`modelValue`,`append-to`,`aria-labelledby`,`data-key`,`disabled`,`force-selection`,`input-class`,`input-id`,`invalid`,`multiple`,`name`,`option-disabled`,`option-label`,`placeholder`,`pt`,`suggestions`,`typeahead`]),(0,t.createVNode)(wE,{mode:`out-in`},{default:(0,t.withCtx)(()=>[e.isInvalid?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,qF,(0,t.toDisplayString)(e.errorMessage),1)):(0,t.createCommentVNode)(``,!0)]),_:1})],2)}}}),YF={class:`cpRadio`},XF=[`for`],ZF=[`id`,`autofocus`,`checked`,`disabled`,`name`,`value`,`onInput`],QF={class:`cpRadio__label`},$F={class:`cpRadio__description`},eI={class:`cpRadio__additionalData`},tI=(0,t.defineComponent)({__name:`CpRadio`,props:{autofocus:{type:Boolean,default:!1},color:{default:`blue`},groupName:{default:``},modelValue:{},options:{}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useId)(),o=e=>i(`update:modelValue`,e),s=e=>`${a}${e}`,c=e=>e===r.modelValue,l=(0,t.computed)(()=>`cpRadio--is${Y(r.color)}`);return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,YF,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,({label:n,value:r,description:i,additionalData:a,disabled:u},d)=>((0,t.openBlock)(),(0,t.createElementBlock)(`label`,{key:s(d),class:(0,t.normalizeClass)([`cpRadio__item`,l.value]),for:s(d)},[(0,t.createElementVNode)(`input`,{id:s(d),autofocus:e.autofocus,checked:c(r),disabled:u,name:e.groupName,type:`radio`,value:r,onInput:e=>o(r)},null,40,ZF),(0,t.createElementVNode)(`span`,QF,(0,t.toDisplayString)(n),1),(0,t.createElementVNode)(`span`,$F,(0,t.toDisplayString)(i),1),(0,t.createElementVNode)(`span`,eI,(0,t.toDisplayString)(a),1)],10,XF))),128))]))}}),nI=[`for`],rI=[`id`,`aria-describedby`,`aria-labelledby`,`autofocus`,`checked`,`disabled`,`name`,`value`],iI={class:`cpRadioNew__content`},aI={class:`cpRadioNew__label`},oI={key:0,class:`cpRadioNew__required`},sI={key:1,class:`cpRadioNew__optional`},cI={key:0,class:`cpRadioNew__helperText`},lI=(0,t.defineComponent)({__name:`CpRadioNew`,props:{option:{}},setup(e){let n=e,r=(0,t.inject)(`radioGroup`),i=e=>`${r.radioGroudId}-${e}`,a=(0,t.computed)(()=>i(n.option.value));return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`label`,{class:(0,t.normalizeClass)([`cpRadioNew`,`cpRadioNew--${(0,t.unref)(r).size}`]),for:a.value},[(0,t.createElementVNode)(`input`,{id:a.value,"aria-describedby":(0,t.unref)(r).radioGroupHelperTextId,"aria-labelledby":(0,t.unref)(r).radioGroupLabelId,autofocus:(0,t.unref)(r).autofocus,checked:(0,t.unref)(r).modelValue===e.option.value,disabled:e.option.disabled,name:(0,t.unref)(r).groupName,type:`radio`,value:e.option.value,onInput:i[0]||=n=>(0,t.unref)(r).onChange(e.option.value)},null,40,rI),(0,t.createElementVNode)(`span`,iI,[(0,t.createElementVNode)(`span`,aI,[(0,t.createTextVNode)((0,t.toDisplayString)(e.option.label)+` `,1),(0,t.unref)(r).showRequired?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,oI,`*`)):(0,t.unref)(r).showOptional?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,sI,`(Optional)`)):(0,t.createCommentVNode)(``,!0)]),e.option.helperText?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,cI,(0,t.toDisplayString)(e.option.helperText),1)):(0,t.createCommentVNode)(``,!0)])],10,nI))}}),uI={key:0,class:`cpRadioGroup__header`},dI=[`id`],fI={key:0,class:`cpRadioGroup__required`},pI={key:1,class:`cpRadioGroup__optional`},mI=[`id`],hI={class:`cpRadioGroup__options`},gI=(0,t.defineComponent)({__name:`CpRadioGroup`,props:{autofocus:{type:Boolean,default:!1},direction:{default:`vertical`},groupHelperText:{default:``},groupLabel:{default:``},groupName:{default:``},modelValue:{},options:{},required:{type:Boolean},size:{default:`md`}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useId)(),o=(0,t.useId)(),s=(0,t.useId)(),c=e=>i(`update:modelValue`,e),l=(0,t.computed)(()=>[`cpRadioGroup--${r.size}`,`cpRadioGroup--is${Y(r.direction)}`]),u=(0,t.computed)(()=>r.groupLabel||r.groupHelperText),d=(0,t.computed)(()=>r.required&&!r.groupLabel),f=(0,t.computed)(()=>!r.required&&!r.groupLabel);return(0,t.provide)(`radioGroup`,(0,t.reactive)({autofocus:(0,t.toRef)(r,`autofocus`),groupName:(0,t.toRef)(r,`groupName`),modelValue:(0,t.toRef)(r,`modelValue`),onChange:c,radioGroupHelperTextId:s,radioGroupLabelId:o,showOptional:f,showRequired:d,size:(0,t.toRef)(r,`size`),radioGroudId:a})),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpRadioGroup`,l.value])},[u.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,uI,[e.groupLabel?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,id:(0,t.unref)(o),class:`cpRadioGroup__label`},[(0,t.createTextVNode)((0,t.toDisplayString)(e.groupLabel)+` `,1),e.required?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,fI,`*`)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,pI,`(Optional)`))],8,dI)):(0,t.createCommentVNode)(``,!0),e.groupHelperText?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,id:(0,t.unref)(s),class:`cpRadioGroup__helperText`},(0,t.toDisplayString)(e.groupHelperText),9,mI)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,hI,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,e=>((0,t.openBlock)(),(0,t.createBlock)(lI,{key:e.value,option:e},null,8,[`option`]))),128))])],2))}}),_I=function(e){return e.FREE=`free`,e.OCCUPIED=`occupied`,e.OCCUPIED_BY_CURRENT_PAX=`occupiedByCurrentPax`,e.BLOCKED=`blocked`,e.PAYABLE=`payable`,e}({}),vI={seatStatuses:{[_I.FREE]:`Available`,[_I.OCCUPIED]:`Occupied`,[_I.OCCUPIED_BY_CURRENT_PAX]:`Selected`,[_I.BLOCKED]:`Unavailable`,[_I.PAYABLE]:`Extra fee`,selected:`Selected`,selectedForLinkedTraveler:`Selected for this traveler and their linked traveler`,selectTravelerFirst:`Select a traveler first`},facility:{galley:`Galley`,lavatory:`Lavatory`},emergencyExit:{close:`Close`,confirm:`Confirm`,disclaimerContent:`You must be able to assist the crew in an evacuation. Passengers who cannot are not allowed in these rows.`,disclaimerTitle:`Emergency exit row requirements`,subtitle:`This seat is located in an emergency exit row.`,title:`Emergency exit row`}},yI=function(e){return e.BACKWARD=`backward`,e.FORWARD=`forward`,e}({}),bI=function(e){return e.ADULT=`ad`,e.CHILD=`ch`,e.INFANT=`inf`,e.UNACCOMPANIED_MINOR=`um`,e}({}),xI=6,SI=e=>`${e.row}${e.column}`,CI=e=>Object.keys(e.zones).map(t=>{let n=e.zones[t];return{id:t,title:n?.title||``,layout:n?.layout||[]}}),wI=(e,t)=>e.rows.filter(e=>e.zone===t).sort((e,t)=>e.number-t.number),TI=e=>e.some(e=>e.layout.length>xI),EI=e=>{let t=0;return e.map(e=>e===null?(t++,`HALLWAY-${t}`):e).join(` `)},DI=e=>e.map(e=>e===null?`var(--hallway-width)`:`var(--seat-width)`).join(` `),OI=e=>{let t=e.indexOf(null);return t>0?t+1:e.length},kI=e=>e.includes(null),AI=e=>e.filter(e=>e===null).map((e,t)=>({column:e,index:t+1})),jI=e=>!e||e===bI.ADULT?``:[bI.CHILD,bI.UNACCOMPANIED_MINOR].includes(e)?`child`:`infant`,MI={class:`cpSeatMapEmergencyExitDialog__content`},NI={class:`cpSeatMapEmergencyExitDialog__description`},PI={class:`cpSeatMapEmergencyExitDialog__footer`},FI=(0,t.defineComponent)({__name:`CpSeatMapEmergencyExitDialog`,props:(0,t.mergeModels)({config:{default:()=>vI}},{isVisible:{type:Boolean,default:!1},isVisibleModifiers:{}}),emits:(0,t.mergeModels)([`close`,`confirm`],[`update:isVisible`]),setup(e,{emit:n}){let r=n,i=(0,t.useModel)(e,`isVisible`);return(n,a)=>((0,t.openBlock)(),(0,t.createBlock)(IM,{"is-visible":i.value,"onUpdate:isVisible":a[2]||=e=>i.value=e,class:`cpSeatMapEmergencyExitDialog`,"max-width":450,title:e.config.emergencyExit.title,onClose:a[3]||=e=>r(`close`)},{footer:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,PI,[(0,t.createVNode)(rA,{appearance:`secondary`,class:`cpSeatMapEmergencyExitDialog__close`,onClick:a[0]||=e=>r(`close`)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.config.emergencyExit.close),1)]),_:1}),(0,t.createVNode)(rA,{color:`success`,onClick:a[1]||=e=>r(`confirm`)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.config.emergencyExit.confirm),1)]),_:1})])]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,MI,[(0,t.createElementVNode)(`p`,NI,(0,t.toDisplayString)(e.config.emergencyExit.subtitle),1),(0,t.createVNode)(oE,{color:`warning`,title:e.config.emergencyExit.disclaimerTitle},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(e.config.emergencyExit.disclaimerContent),1)]),_:1},8,[`title`])])]),_:1},8,[`is-visible`,`title`]))}}),II={class:`cpSeatMapGrid`},LI={class:`cpSeatMapGrid__columns`},RI=(0,t.defineComponent)({__name:`CpSeatMapGrid`,props:{layout:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,II,[(0,t.createElementVNode)(`div`,LI,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.layout,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:n,class:`cpSeatMapGrid__column`},(0,t.toDisplayString)(e),1))),128))]),(0,t.renderSlot)(n.$slots,`default`)]))}}),zI={},BI={fill:`none`,viewBox:`0 0 504 433`,xmlns:`http://www.w3.org/2000/svg`};function VI(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,BI,[...n[0]||=[(0,t.createStaticVNode)(`<g filter="url(#filter0_i_23228_86232)"><path d="M171.634 43.4901C209.521 -14.4961 294.478 -14.497 332.366 43.4891L462.309 242.364C489.513 283.999 504 332.657 504 382.391L504 432.666H0.00012207L0 382.391C5.19025e-05 332.657 14.4874 283.999 41.6914 242.364L171.634 43.4901Z" fill="white"></path></g><path d="M172.053 43.7637C209.743 -13.9203 294.257 -13.9212 331.947 43.7627L461.89 242.638C489.041 284.191 503.5 332.754 503.5 382.392V432.166H0.5V382.392C0.500052 332.754 14.9595 284.191 42.1104 242.638L172.053 43.7637Z" stroke="#E9EAF6"></path><defs><filter id="filter0_i_23228_86232" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" height="432.666" width="504" x="0" y="0"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" mode="normal" result="shape"></feBlend><feColorMatrix in="SourceAlpha" result="hardAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="20"></feGaussianBlur><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0.917647 0 0 0 0 0.92549 0 0 0 0 1 0 0 0 1 0"></feColorMatrix><feBlend in2="shape" mode="normal" result="effect1_innerShadow_23228_86232"></feBlend></filter></defs>`,3)]])}var HI=q(zI,[[`render`,VI]]),UI={},WI={fill:`none`,preserveAspectRatio:`xMaxYMid meet`,viewBox:`0 0 180 509`,xmlns:`http://www.w3.org/2000/svg`};function GI(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,WI,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M0 87.8 L180 0 L180 490.1 L0 508.7 Z`,fill:`url(#paint0_linear_23056_30266)`},null,-1),(0,t.createElementVNode)(`defs`,null,[(0,t.createElementVNode)(`linearGradient`,{id:`paint0_linear_23056_30266`,x1:`1`,x2:`0`,y1:`0.5`,y2:`0.5`},[(0,t.createElementVNode)(`stop`,{offset:`0.5`,"stop-color":`white`}),(0,t.createElementVNode)(`stop`,{offset:`1`,"stop-color":`white`,"stop-opacity":`0`})])],-1)]])}var KI=q(UI,[[`render`,GI]]),qI={class:`cpSeatMapPlane__plane`},JI={class:`cpSeatMapPlane__body`},YI={class:`cpSeatMapPlane__cabin`},XI=(0,t.defineComponent)({__name:`CpSeatMapPlane`,props:{isLarge:{type:Boolean,default:!1},mapKey:{default:``},transitionDirection:{default:yI.FORWARD}},setup(e){let n=e,r=Jl(),i=(0,t.computed)(()=>({"cpSeatMapPlane--isLarge":n.isLarge})),a=(0,t.computed)(()=>r.value?`cpSeatMapSlide-${n.transitionDirection}`:`cpSeatMapFade`);return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSeatMapPlane`,i.value])},[(0,t.createElementVNode)(`div`,qI,[(0,t.createVNode)(HI,{class:`cpSeatMapPlane__nose`}),(0,t.createVNode)(KI,{class:`cpSeatMapPlane__wing cpSeatMapPlane__wing--isLeft`}),(0,t.createVNode)(KI,{class:`cpSeatMapPlane__wing cpSeatMapPlane__wing--isRight`})]),(0,t.createElementVNode)(`div`,JI,[(0,t.createElementVNode)(`div`,YI,[(0,t.createVNode)(t.Transition,{mode:`out-in`,name:a.value},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.mapKey,class:`cpSeatMapPlane__content`},[(0,t.renderSlot)(n.$slots,`default`)]))]),_:3},8,[`name`])])])],2))}}),ZI=function(e){return e.LAVATORY=`lavatory`,e.GALLEY=`galley`,e.CURTAIN=`curtain`,e}({}),QI=function(e){return e.LEFT=`left`,e.RIGHT=`right`,e}({}),$I=(0,t.defineComponent)({__name:`CpSeatMapRowFacility`,props:{columnsCount:{},config:{default:()=>vI},isTop:{type:Boolean,default:!1},position:{},seatBlockSize:{},type:{}},setup(e){let n=e,r=(0,t.computed)(()=>n.type===ZI.LAVATORY),i=(0,t.computed)(()=>n.type===ZI.GALLEY),a=(0,t.computed)(()=>i.value?`coffee`:`handshake`),o=(0,t.computed)(()=>n.position===QI.LEFT),s=(0,t.computed)(()=>n.position===QI.RIGHT),c=(0,t.computed)(()=>({gridColumn:`${o.value?1:n.seatBlockSize+1} / ${s.value?n.columnsCount+1:n.seatBlockSize}`})),l=(0,t.computed)(()=>({"cpSeatMapRowFacility--isTop":n.isTop})),u=(0,t.computed)(()=>r.value?n.config.facility.lavatory:i.value?n.config.facility.galley:``);return(e,n)=>(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSeatMapRowFacility`,l.value]),style:(0,t.normalizeStyle)(c.value)},[(0,t.createVNode)(J,{class:`cpSeatMapRowFacility__icon`,size:`16`,type:a.value},null,8,[`type`])],6)),[[(0,t.unref)(wn),u.value]])}}),eL={class:`cpSeatMapRow`},tL=(0,t.defineComponent)({__name:`CpSeatMapRow`,props:{config:{default:()=>vI},row:{},seatBlockSize:{}},setup(e){let n=e,r=(0,t.computed)(()=>[{active:n.row.has_exit_back,direction:`back`},{active:n.row.has_exit_front,direction:`front`},{active:n.row.has_exit_left,direction:`left`},{active:n.row.has_exit_right,direction:`right`}]),i=(0,t.computed)(()=>r.value.filter(({active:e})=>e)),a=(0,t.computed)(()=>Object.keys(n.row.seats).length+1),o=(0,t.computed)(()=>!!r.value.length),s=(e,t)=>{if(t===QI.LEFT){if(e.lavatory_left)return ZI.LAVATORY;if(e.galley_left)return ZI.GALLEY}if(t===QI.RIGHT){if(e.lavatory_right)return ZI.LAVATORY;if(e.galley_right)return ZI.GALLEY}return null},c=e=>[{position:QI.LEFT,hasFacility:e.lavatory_left||e.galley_left},{position:QI.RIGHT,hasFacility:e.lavatory_right||e.galley_right}].reduce((t,{position:n,hasFacility:r})=>{if(!r)return t;let i=s(e,n);return i?[...t,{position:n,type:i}]:t},[]),l=(0,t.computed)(()=>n.row.top?c(n.row.top):[]),u=(0,t.computed)(()=>n.row.bottom?c(n.row.bottom):[]),d=(0,t.computed)(()=>!!l.value.length),f=(0,t.computed)(()=>!!u.value.length),p=e=>[`cpSeatMapRow__exit--is${Y(e)}`];return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,eL,[o.value?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(i.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.direction,class:(0,t.normalizeClass)([`cpSeatMapRow__exit`,p(e.direction)])},` exit `,2))),128)):(0,t.createCommentVNode)(``,!0),d.value?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(l.value,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)($I,{key:r,"columns-count":a.value,config:e.config,"is-top":``,position:n.position,"seat-block-size":e.seatBlockSize,type:n.type},null,8,[`columns-count`,`config`,`position`,`seat-block-size`,`type`]))),128)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`),f.value?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:2},(0,t.renderList)(u.value,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)($I,{key:r,"columns-count":a.value,config:e.config,position:n.position,"seat-block-size":e.seatBlockSize,type:n.type},null,8,[`columns-count`,`config`,`position`,`seat-block-size`,`type`]))),128)):(0,t.createCommentVNode)(``,!0)]))}}),nL={},rL={fill:`none`,height:`13`,viewBox:`0 0 13 13`,width:`13`,xmlns:`http://www.w3.org/2000/svg`};function iL(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,rL,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M5.64966 0.826416C5.81077 0.391202 6.42605 0.3912 6.58716 0.826416L7.65063 3.70044C7.80258 4.11068 8.12614 4.43424 8.53638 4.58618L11.4104 5.64966C11.8456 5.81077 11.8456 6.42605 11.4104 6.58716L8.53638 7.65063C8.12614 7.80258 7.80258 8.12614 7.65063 8.53638L6.58716 11.4104C6.42605 11.8456 5.81077 11.8456 5.64966 11.4104L4.58618 8.53638C4.43424 8.12614 4.11068 7.80258 3.70044 7.65063L0.826416 6.58716C0.391202 6.42605 0.3912 5.81077 0.826416 5.64966L3.70044 4.58618C4.05951 4.45319 4.35244 4.18883 4.52173 3.84985L4.58618 3.70044L5.64966 0.826416Z`,stroke:`#D1D3E6`},null,-1)]])}var aL=q(nL,[[`render`,iL]]),oL={key:1},sL={key:1},cL={key:2},lL=(0,t.defineComponent)({__name:`CpSeatMapSeat`,props:{seat:{}},setup(e){let n=e,r=(0,t.computed)(()=>n.seat.status),i=(0,t.computed)(()=>[_I.OCCUPIED,_I.BLOCKED].includes(r.value)),a=(0,t.computed)(()=>r.value===_I.OCCUPIED_BY_CURRENT_PAX),o=(0,t.computed)(()=>i.value),s=(0,t.computed)(()=>r.value===_I.PAYABLE),c=(0,t.computed)(()=>r.value===_I.FREE),l=(0,t.computed)(()=>({"cpSeatMapSeat--isOccupied":i.value,"cpSeatMapSeat--isOccupiedByCurrentPax":a.value,"cpSeatMapSeat--isUnavailable":o.value,"cpSeatMapSeat--isPayable":s.value,"cpSeatMapSeat--isFree":c.value})),u=(0,t.computed)(()=>s.value?n.seat.selected_ancillary?.formatted_amount||`€`:``);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSeatMapSeat`,l.value])},[(0,t.createVNode)(t.Transition,{name:`fade`},{default:(0,t.withCtx)(()=>[o.value?((0,t.openBlock)(),(0,t.createBlock)(J,{key:0,size:`16`,type:`x`})):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,oL,[c.value?((0,t.openBlock)(),(0,t.createBlock)(aL,{key:0})):a.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,sL,[(0,t.renderSlot)(e.$slots,`default`)])):s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,cL,(0,t.toDisplayString)(u.value),1)):(0,t.createCommentVNode)(``,!0)]))]),_:3})],2))}}),uL=[`id`,`disabled`],dL=500,fL=(0,t.defineComponent)({__name:`CpSeatMapSeatWrapper`,props:{config:{default:()=>vI},isHighlighted:{type:Boolean,default:!1},isSelectionEnabled:{type:Boolean,default:!0},rowNumber:{},seat:{},selection:{default:null}},emits:[`select`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useTemplateRef)(`seatWrapper`),o=(0,t.computed)(()=>`seat-${SI({row:r.rowNumber,column:r.seat.column})}`),s=(0,t.computed)(()=>r.selection!==null),c=(0,t.computed)(()=>r.seat.status===_I.OCCUPIED),l=(0,t.computed)(()=>r.seat.status===_I.BLOCKED),u=(0,t.computed)(()=>l.value||c.value),d=(0,t.computed)(()=>r.seat.status===_I.PAYABLE),f=()=>{a.value&&(a.value.classList.add(`cpSeatMapSeatWrapper--isHighlighted`),a.value.scrollIntoView({behavior:`smooth`,block:`center`}),setTimeout(()=>{a.value&&a.value.classList.remove(`cpSeatMapSeatWrapper--isHighlighted`)},dL))};(0,t.watch)(()=>r.isHighlighted,e=>{e&&f()});let p=(0,t.computed)(()=>({"cpSeatMapSeatWrapper--isPayable":d.value})),m=(0,t.computed)(()=>!r.isSelectionEnabled||u.value),h=(0,t.computed)(()=>s.value?_I.OCCUPIED_BY_CURRENT_PAX:u.value||d.value?r.seat.status:_I.FREE),g=(0,t.computed)(()=>({...r.seat,status:h.value})),_=(0,t.computed)(()=>!!r.selection?.hasLinkedTraveler),v=(0,t.computed)(()=>_.value?jI(r.selection?.linkedTravelerType)||`infant`:``),y=(0,t.computed)(()=>{let{seatStatuses:e}=r.config;return s.value?_.value?e.selectedForLinkedTraveler:e.selected:r.isSelectionEnabled?`${SI({row:r.rowNumber,column:r.seat.column})} • ${e[r.seat.status]}`:e.selectTravelerFirst}),b=(0,t.computed)(()=>r.selection?.initials||``),x=()=>{m.value||i(`select`,r.seat,r.rowNumber)};return(e,n)=>(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{id:o.value,ref:`seatWrapper`,class:(0,t.normalizeClass)([`cpSeatMapSeatWrapper`,p.value]),disabled:m.value,type:`button`,onClick:x},[(0,t.createVNode)(lL,{class:`cpSeatMapSeatWrapper__seat`,seat:g.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(b.value)+` `,1),_.value?((0,t.openBlock)(),(0,t.createBlock)(QD,{key:0,class:`cpSeatMapSeatWrapper__additionalTraveler`,color:`accent`,"leading-icon":v.value,size:`xs`,variant:`outline`},null,8,[`leading-icon`])):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`seat`])],10,uL)),[[(0,t.unref)(wn),y.value]])}}),pL={class:`cpSeatMapZone`},mL={class:`cpSeatMapZone__layout`},hL=(0,t.defineComponent)({__name:`CpSeatMapZone`,props:{title:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pL,[(0,t.createVNode)(KM,{class:`cpSeatMapZone__title`,"heading-level":`h6`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)]),_:1}),(0,t.createElementVNode)(`div`,mL,[(0,t.renderSlot)(n.$slots,`default`)])]))}}),gL=(0,t.defineComponent)({__name:`CpSeatMap`,props:{config:{default:()=>vI},highlightedSeatId:{default:null},isSelectionEnabled:{type:Boolean,default:!0},seatMap:{},selections:{default:()=>({})},transitionDirection:{default:yI.FORWARD}},emits:[`select`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(!1),o=(0,t.ref)(null),s=(0,t.computed)(()=>CI(r.seatMap)),c=(0,t.computed)(()=>TI(s.value)),l=(0,t.computed)(()=>({"cpSeatMap--isLarge":c.value})),u=(0,t.computed)(()=>({"--seat-mobile-width":c.value?`32px`:`40px`,"--hallway-mobile-width":c.value?`16px`:`32px`})),d=e=>({"--columns-count":e.length,"--grid-template-areas":`"${EI(e)}"`,"--grid-template-columns":DI(e)}),f=(e,t)=>r.selections[SI({row:e,column:t})]??null,p=e=>({gridColumn:e.column}),m=e=>({gridArea:`HALLWAY-${e}`}),h=e=>r.highlightedSeatId===e.id,g=(e,t)=>{if(e.is_exit_row){o.value={rowNumber:t,seat:e},a.value=!0;return}i(`select`,e,t)},_=()=>{a.value=!1,o.value=null},v=()=>{if(o.value){let{seat:e,rowNumber:t}=o.value;i(`select`,e,t)}_()};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSeatMap`,l.value]),style:(0,t.normalizeStyle)(u.value)},[((0,t.openBlock)(),(0,t.createBlock)(XI,{key:e.seatMap.aircraft,class:`cpSeatMap__plane`,"is-large":c.value,"map-key":e.seatMap.ref_id_segment,"transition-direction":e.transitionDirection},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createBlock)(hL,{key:n.id,class:`cpSeatMap__zone`,title:n.title},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(RI,{class:`cpSeatMap__grid`,layout:n.layout,style:(0,t.normalizeStyle)(d(n.layout))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(wI)(e.seatMap,n.id),r=>((0,t.openBlock)(),(0,t.createBlock)(tL,{key:r.number,class:`cpSeatMap__row`,config:e.config,row:r,"seat-block-size":(0,t.unref)(OI)(n.layout)},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.seats,n=>((0,t.openBlock)(),(0,t.createBlock)(fL,{key:n.id,config:e.config,"is-highlighted":h(n),"is-selection-enabled":e.isSelectionEnabled,"row-number":r.number,seat:n,selection:f(r.number,n.column),style:(0,t.normalizeStyle)(p(n)),onSelect:g},null,8,[`config`,`is-highlighted`,`is-selection-enabled`,`row-number`,`seat`,`selection`,`style`]))),128)),(0,t.unref)(kI)(n.layout)?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)((0,t.unref)(AI)(n.layout),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:e.index,class:`cpSeatMap__hallway`,style:(0,t.normalizeStyle)(m(e.index))},(0,t.toDisplayString)(r.number),5))),128)):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`config`,`row`,`seat-block-size`]))),128))]),_:2},1032,[`layout`,`style`])]),_:2},1032,[`title`]))),128))]),_:1},8,[`is-large`,`map-key`,`transition-direction`])),(0,t.createVNode)(FI,{"is-visible":a.value,"onUpdate:isVisible":r[0]||=e=>a.value=e,config:e.config,onClose:_,onConfirm:v},null,8,[`is-visible`,`config`])],6))}}),_L=[`id`,`disabled`,`name`,`value`],vL=[`for`],yL={class:`cpSegmentedControlItem__label`},bL=q((0,t.defineComponent)({__name:`CpSegmentedControlItem`,props:(0,t.mergeModels)({isDisabled:{type:Boolean},isFullWidth:{type:Boolean},isInvalid:{type:Boolean},isSelected:{type:Boolean},name:{},option:{},orientation:{default:`horizontal`},size:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`),i=(0,t.computed)(()=>({"cpSegmentedControlItem--isDisabled":n.isDisabled,"cpSegmentedControlItem--isInvalid":n.isInvalid,"cpSegmentedControlItem--isSelected":n.isSelected,"cpSegmentedControlItem--fullWidth":n.isFullWidth&&n.orientation!==`vertical`,[`cpSegmentedControlItem--${n.size}`]:n.size,[`cpSegmentedControlItem--is${Y(n.orientation)}`]:!0}));return(n,a)=>{let o=(0,t.resolveComponent)(`cp-icon`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSegmentedControlItem`,i.value])},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{id:e.option.value,"onUpdate:modelValue":a[0]||=e=>r.value=e,class:`cpSegmentedControlItem__input`,disabled:e.isDisabled,name:e.name,type:`radio`,value:e.option.value},null,8,_L),[[t.vModelRadio,r.value]]),(0,t.createElementVNode)(`label`,{class:`cpSegmentedControlItem__inner`,for:e.option.value},[e.option.leadingIcon?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,class:`cpSegmentedControlItem__icon`,size:`16`,type:e.option.leadingIcon},null,8,[`type`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,yL,(0,t.toDisplayString)(e.option.label),1),e.option.trailingIcon?((0,t.openBlock)(),(0,t.createBlock)(o,{key:1,class:`cpSegmentedControlItem__icon`,size:`16`,type:e.option.trailingIcon},null,8,[`type`])):(0,t.createCommentVNode)(``,!0)],8,vL)],2)}}}),[[`__scopeId`,`data-v-602a9d59`]]),xL={class:`cpSegmentedControl__options`},SL=(0,t.defineComponent)({__name:`CpSegmentedControl`,props:(0,t.mergeModels)({isDisabled:{type:Boolean},isFullWidth:{type:Boolean},isInvalid:{type:Boolean},name:{},options:{},orientation:{default:`horizontal`},size:{default:`md`}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=(0,t.computed)(()=>({"cpSegmentedControl--isInvalid":n.isInvalid,"cpSegmentedControl--fullWidth":n.isFullWidth,"cpSegmentedControl--isDisabled":n.isDisabled,[`cpSegmentedControl--is${Y(n.orientation)}`]:!0})),i=(0,t.useModel)(e,`modelValue`),a=(0,t.ref)(null),o=(0,t.ref)(null),s=e=>e===l.value,c=e=>e===n.options.length-1,l=(0,t.computed)(()=>i.value===void 0?-1:n.options.findIndex(e=>e.value===i.value)),u=(e,t)=>{t<0||(t>0&&e.add(t-1),t<n.options.length-1&&e.add(t))},d=(0,t.computed)(()=>{let e=new Set;return u(e,l.value),o.value!==null&&u(e,o.value),e}),f=(0,t.computed)(()=>{let e=new Set;return a.value!==null&&a.value!==l.value&&a.value!==o.value&&u(e,a.value),e}),p=e=>{let t=d.value.has(e);return{"cpSegmentedControl__divider--isActive":t,"cpSegmentedControl__divider--isHovered":!t&&f.value.has(e)}},m=e=>{n.isDisabled||(a.value=e)},h=()=>a.value=null,g=e=>{n.isDisabled||(o.value=e)},_=()=>o.value=null;return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSegmentedControl`,r.value])},[(0,t.createElementVNode)(`div`,xL,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n.value},[(0,t.createVNode)(bL,{option:n,name:e.name,"is-disabled":e.isDisabled,"is-full-width":e.isFullWidth,"is-invalid":e.isInvalid,"is-selected":s(r),orientation:e.orientation,modelValue:i.value,"onUpdate:modelValue":a[0]||=e=>i.value=e,size:e.size,onMouseenter:e=>m(r),onMouseleave:h,onFocusin:e=>g(r),onFocusout:_},null,8,[`option`,`name`,`is-disabled`,`is-full-width`,`is-invalid`,`is-selected`,`orientation`,`modelValue`,`size`,`onMouseenter`,`onFocusin`]),c(r)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([`cpSegmentedControl__divider`,p(r)]),"aria-hidden":`true`},null,2))],64))),128))])],2))}}),CL={class:`cpSelect__container`},wL=[`id`,`autocomplete`,`disabled`,`name`,`required`],TL=[`disabled`],EL=[`value`],DL=[`id`],OL=[`id`],kL=(0,t.defineComponent)({__name:`CpSelect`,props:(0,t.mergeModels)({autocomplete:{default:`on`},defaultValue:{default:`Select an option`},disabled:{type:Boolean,default:!1},errorMessage:{default:``},help:{default:``},hideDefaultValue:{type:Boolean,default:!1},isInvalid:{type:Boolean,default:!1},label:{default:``},name:{default:void 0},options:{},required:{type:Boolean,default:!1},size:{default:`md`},tooltip:{default:``}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`),i=(0,t.useId)(),a=(0,t.useId)(),o=(0,t.useId)(),s=(0,t.computed)(()=>Y(n.label)),c=(0,t.computed)(()=>[`cpSelect--${n.size}`,{"cpSelect--isInvalid":n.isInvalid,"cpSelect--isDisabled":n.disabled}]),l=(0,t.computed)(()=>n.help?.length&&!u.value),u=(0,t.computed)(()=>n.isInvalid&&n.errorMessage.length);return(n,d)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSelect`,c.value])},[e.label?((0,t.openBlock)(),(0,t.createBlock)(pA,{key:0,class:`cpSelect__label`,for:(0,t.unref)(i),"is-invalid":e.isInvalid,required:e.required,tooltip:e.tooltip},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.value),1)]),_:1},8,[`for`,`is-invalid`,`required`,`tooltip`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,CL,[(0,t.withDirectives)((0,t.createElementVNode)(`select`,{id:(0,t.unref)(i),"onUpdate:modelValue":d[0]||=e=>r.value=e,autocomplete:e.autocomplete,class:`cpSelect__inner`,disabled:e.disabled,name:e.name,required:e.required},[(0,t.createElementVNode)(`option`,{disabled:e.hideDefaultValue,value:``},(0,t.toDisplayString)(e.defaultValue),9,TL),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:n,value:e.value},(0,t.toDisplayString)(e.label),9,EL))),128))],8,wL),[[t.vModelSelect,r.value]])]),(0,t.createVNode)(wE,{mode:`out-in`},{default:(0,t.withCtx)(()=>[u.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:0,id:(0,t.unref)(o),class:`cpSelect__error`},(0,t.toDisplayString)(e.errorMessage),9,DL)):l.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:1,id:(0,t.unref)(a),class:`cpSelect__help`},(0,t.toDisplayString)(e.help),9,OL)):(0,t.createCommentVNode)(``,!0)]),_:1})],2))}}),AL=[`aria-disabled`,`aria-pressed`,`disabled`],jL={class:`cpSelectableButton__body`},ML={key:0,class:`cpSelectableButton__icon cpSelectableButton__icon--isBefore`},NL={key:1,class:`cpSelectableButton__label`},PL={key:2,class:`cpSelectableButton__icon cpSelectableButton__icon--isAfter`},FL=(0,t.defineComponent)({__name:`CpSelectableButton`,props:{appearance:{default:`primary`},disabled:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},label:{default:``},size:{default:`md`}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useSlots)(),o=(0,t.computed)(()=>!!a[`leading-icon`]),s=(0,t.computed)(()=>!!r.label||!!a.default),c=(0,t.computed)(()=>!!a[`trailing-icon`]),l=(0,t.computed)(()=>!r.label&&!a.default),u=(0,t.computed)(()=>[`cpSelectableButton--${r.size}`,`cpSelectableButton--is${Y(r.appearance)}`,{"cpSelectableButton--isSelected":r.isSelected,"cpSelectableButton--isExpanded":r.isExpanded,"cpSelectableButton--isDisabled":r.disabled,"cpSelectableButton--isIconOnly":l.value}]);return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{"aria-disabled":e.disabled,"aria-pressed":e.isSelected,class:(0,t.normalizeClass)([`cpSelectableButton`,u.value]),disabled:e.disabled,type:`button`,onClick:r[0]||=e=>i(`click`,e)},[(0,t.createElementVNode)(`div`,jL,[o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ML,[(0,t.renderSlot)(n.$slots,`leading-icon`)])):(0,t.createCommentVNode)(``,!0),s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,NL,[(0,t.renderSlot)(n.$slots,`default`,{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)])])):(0,t.createCommentVNode)(``,!0),c.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,PL,[(0,t.renderSlot)(n.$slots,`trailing-icon`)])):(0,t.createCommentVNode)(``,!0)])],10,AL))}}),IL={class:`cpSelectMenu`},LL={class:`cpSelectMenu__label`},RL={key:0,class:`dropdown__title`},zL={class:`dropdown__list`},BL={key:0,class:`dropdown__filterBar`},VL=[`placeholder`],HL={key:1,class:`dropdown__items`},UL=[`for`],WL=[`id`,`checked`,`type`,`value`,`onChange`],GL={key:2,class:`dropdown__emptyState`},KL=(0,t.defineComponent)({__name:`CpSelectMenu`,props:{closeOnSelect:{type:Boolean,default:!0},dropdownEmptyViewPlaceholder:{default:`No option found`},dropdownFilterPlaceholder:{default:`Filter...`},dropdownTitle:{default:`Select value`},hasFilter:{type:Boolean,default:!1},isMultiSelect:{type:Boolean,default:!1},selectedValue:{},values:{}},emits:[`update:selectedValue`,`onClose`,`onFilterChange`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(!1),o=(0,t.ref)(),s=(0,t.ref)(),c=(0,t.computed)(()=>r.isMultiSelect?`checkbox`:`radio`),l=()=>{a.value=!a.value,a.value&&r.hasFilter&&(0,t.nextTick)(()=>{s.value&&s.value.focus()})},u=()=>{a.value&&(a.value=!1,p(),i(`onClose`))},d=e=>{e.value!==r.selectedValue.value&&i(`update:selectedValue`,e),r.closeOnSelect&&u()},f=e=>{let t=e.target;i(`onFilterChange`,t.value)},p=()=>{i(`onFilterChange`,``)},m=e=>e===r.selectedValue.value;return(n,r)=>{let i=(0,t.resolveComponent)(`cp-icon`),p=(0,t.resolveDirective)(`click-outside`);return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`div`,IL,[(0,t.createElementVNode)(`button`,{class:`cpSelectMenu__button`,type:`button`,onClick:l},[(0,t.createElementVNode)(`span`,LL,(0,t.toDisplayString)(e.selectedValue.label),1),(0,t.createVNode)(i,{class:(0,t.normalizeClass)([`cpSelectMenu__icon`,{"cpSelectMenu__icon--isOpened":a.value}]),type:`chevron-down`},null,8,[`class`])]),(0,t.createVNode)(t.Transition,{mode:`out-in`,name:`scale-elastic`},{default:(0,t.withCtx)(()=>[a.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`dropdownRef`,ref:o,class:`cpSelectMenu__dropdown dropdown`},[e.dropdownTitle?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,RL,[(0,t.createTextVNode)((0,t.toDisplayString)(e.dropdownTitle)+` `,1),(0,t.createElementVNode)(`button`,{type:`button`,onClick:u},[(0,t.createVNode)(i,{type:`x`})])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,zL,[e.hasFilter?((0,t.openBlock)(),(0,t.createElementBlock)(`label`,BL,[(0,t.createVNode)(i,{type:`search`}),(0,t.createElementVNode)(`input`,{ref_key:`dropdownFilterRef`,ref:s,placeholder:e.dropdownFilterPlaceholder,type:`text`,onInput:f},null,40,VL)])):(0,t.createCommentVNode)(``,!0),e.values.length?((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,HL,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.values,({value:e,label:n},r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:r},[(0,t.createElementVNode)(`label`,{class:`dropdown__item`,for:e},[(0,t.createElementVNode)(`input`,{id:e,checked:m(e),type:c.value,value:e,onChange:t=>d({value:e,label:n})},null,40,WL),m(e)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:`dropdown__icon`,type:`check`})):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(n),1)],8,UL)]))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,GL,(0,t.toDisplayString)(e.dropdownEmptyViewPlaceholder),1))])],512)):(0,t.createCommentVNode)(``,!0)]),_:1})])),[[p,u]])}}}),qL={class:`cpStepper`},JL={class:`cpStepper__wrapper`},YL=[`disabled`,`onClick`],XL={class:`cpStepper__stepNumber`},ZL={class:`cpStepper__stepTitle`},QL=(0,t.defineComponent)({__name:`CpStepper`,props:{activeStepId:{default:void 0},reachedStepIndex:{default:0},steps:{}},emits:[`select`],setup(e,{emit:n}){let r=e,i=n,a=e=>e<r.steps.length-1,o=e=>e>r.reachedStepIndex,s=e=>e.id===r.activeStepId?`cpStepper__step--isActive`:``,c=e=>i(`select`,e.id);return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qL,[(0,t.createElementVNode)(`div`,JL,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`cpStepper__stepWrapper`},[(0,t.createElementVNode)(`button`,{class:(0,t.normalizeClass)([`cpStepper__step`,s(e)]),disabled:o(n),type:`button`,onClick:t=>c(e)},[(0,t.createElementVNode)(`span`,XL,(0,t.toDisplayString)(n+1),1),(0,t.createElementVNode)(`span`,ZL,(0,t.toDisplayString)(e.label),1)],10,YL),a(n)?((0,t.openBlock)(),(0,t.createBlock)(J,{key:0,class:`cpStepper__chevron`,size:`16`,type:`chevron-right`})):(0,t.createCommentVNode)(``,!0)]))),128))])]))}});function $L(e,t,n){if(n<1){let r=t*Math.sqrt(1-n*n);return 1-Math.exp(-n*t*e)*(Math.cos(r*e)+n*t/r*Math.sin(r*e))}let r=Math.sqrt(n*n-1),i=-t*(n+r),a=-t*(n-r),o=-i/(a-i);return 1-(1-o)*Math.exp(i*e)-o*Math.exp(a*e)}function eR(e,t,n){let r=0;for(let i=0;i<10;i+=.001)if(Math.abs($L(i,e,t)-1)>n)r=0;else if(r+=.001,r>.1)return Math.ceil((i-r+.001)*1e3);return 1e4}var tR=new Map;function nR(e){let{stiffness:t=100,damping:n=10,mass:r=1,precision:i=.001}=e??{},a=`${t}:${n}:${r}:${i}`,o=tR.get(a);if(o)return o;let s=Math.sqrt(t/r),c=n/(2*Math.sqrt(t*r)),l=eR(s,c,i),u=Math.min(100,Math.max(32,Math.round(l/15))),d=[];for(let e=0;e<u;e++){let t=e/(u-1)*(l/1e3),n=e===u-1?1:$L(t,s,c);d.push(Math.round(n*1e4)/1e4+``)}for(;d.length>2&&d[d.length-2]===`1`;)d.splice(d.length-2,1);let f={easing:`linear(${d.join(`, `)})`,duration:l};return tR.set(a,f),f}function rR(){let e=new Set;return{reserve(t){e.add(t)},has(t){return e.has(t)},take(t){if(!e.has(t))return e.add(t),t;let n=1;for(;e.has(`${t}~${n}`);)n++;let r=`${t}~${n}`;return e.add(r),r}}}function iR(e,t){let n=e.includes(`
|
|
1834
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _F(e,t){if(e){if(typeof e==`string`)return bF(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bF(e,t):void 0}}function vF(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function yF(e){if(Array.isArray(e))return bF(e)}function bF(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var xF={name:`AutoComplete`,extends:uF,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`item-select`,`item-unselect`,`option-select`,`option-unselect`,`dropdown-click`,`clear`,`complete`,`before-show`,`before-hide`,`show`,`hide`],inject:{$pcFluid:{default:null}},outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,dirty:!1,startRangeIndex:-1,data:function(){return{clicked:!1,focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}},watch:{suggestions:function(){this.searching&&(this.show(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1,!this.showEmptyMessage&&this.visibleOptions.length===0&&this.hide()),this.autoUpdateModel()}},mounted:function(){this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.alignOverlay()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&=(this.scrollHandler.destroy(),null),this.overlay&&=(gi.clear(this.overlay),null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?nr(e,this.optionLabel):e},getOptionValue:function(e){return e},getOptionRenderKey:function(e,t){return(this.dataKey?nr(e,this.dataKey):this.getOptionLabel(e))+`_`+t},getPTOptions:function(e,t,n,r){return this.ptm(r,{context:{option:e,index:n,selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(n,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return this.optionDisabled?nr(e,this.optionDisabled):!1},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return nr(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return nr(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter(function(e){return t.isOptionGroup(e)}).length:e)+1},show:function(e){this.$emit(`before-show`),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=this.focusedOptionIndex===-1?this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1:this.focusedOptionIndex,e&&Jr(this.multiple?this.$refs.focusInput:this.$refs.focusInput.$el)},hide:function(e){var t=this,n=function(){t.$emit(`before-hide`),t.dirty=e,t.overlayVisible=!1,t.clicked=!1,t.focusedOptionIndex=-1,e&&Jr(t.multiple?t.$refs.focusInput:t.$refs.focusInput?.$el)};setTimeout(function(){n()},0)},onFocus:function(e){this.disabled||(!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,`focus`),this.dirty=!0,this.focused=!0,this.overlayVisible&&(this.focusedOptionIndex=this.focusedOptionIndex===-1?this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1:this.focusedOptionIndex,this.scrollInView(this.focusedOptionIndex)),this.$emit(`focus`,e))},onBlur:function(e){var t,n;this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit(`blur`,e),(t=(n=this.formField).onBlur)==null||t.call(n)},onKeyDown:function(e){if(this.disabled){e.preventDefault();return}switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e);break;case`ArrowLeft`:this.onArrowLeftKey(e);break;case`ArrowRight`:this.onArrowRightKey(e);break;case`Home`:this.onHomeKey(e);break;case`End`:this.onEndKey(e);break;case`PageDown`:this.onPageDownKey(e);break;case`PageUp`:this.onPageUpKey(e);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`Space`:this.onSpaceKey(e);break;case`Escape`:this.onEscapeKey(e);break;case`Tab`:this.onTabKey(e);break;case`ShiftLeft`:case`ShiftRight`:this.onShiftKey(e);break;case`Backspace`:this.onBackspaceKey(e);break}this.clicked=!1},onInput:function(e){var t=this;if(this.typeahead){this.searchTimeout&&clearTimeout(this.searchTimeout);var n=e.target.value;this.multiple||this.updateModel(e,n),n.length===0?(this.searching=!1,this.hide(),this.$emit(`clear`)):n.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout(function(){t.search(e,n,`input`)},this.delay)):(this.searching=!1,this.hide())}},onChange:function(e){var t=this;if(this.forceSelection){var n=!1;if(this.visibleOptions&&!this.multiple){var r,i=this.multiple?this.$refs.focusInput.value:(r=this.$refs.focusInput)==null||(r=r.$el)==null?void 0:r.value,a=this.visibleOptions.find(function(e){return t.isOptionMatched(e,i||``)});a!==void 0&&(n=!0,!this.isSelected(a)&&this.onOptionSelect(e,a))}if(!n){if(this.multiple)this.$refs.focusInput.value=``;else{var o=this.$refs.focusInput?.$el;o&&(o.value=``)}this.$emit(`clear`),!this.multiple&&this.updateModel(e,null)}}},onMultipleContainerFocus:function(){this.disabled||(this.focused=!0)},onMultipleContainerBlur:function(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown:function(e){if(this.disabled){e.preventDefault();return}switch(e.code){case`ArrowLeft`:this.onArrowLeftKeyOnMultiple(e);break;case`ArrowRight`:this.onArrowRightKeyOnMultiple(e);break;case`Backspace`:this.onBackspaceKeyOnMultiple(e);break}},onContainerClick:function(e){this.clicked=!0,!(this.disabled||this.searching||this.loading||this.isDropdownClicked(e))&&(!this.overlay||!this.overlay.contains(e.target))&&Jr(this.multiple?this.$refs.focusInput:this.$refs.focusInput.$el)},onDropdownClick:function(e){var t=void 0;if(this.overlayVisible)this.hide(!0);else{var n=this.multiple?this.$refs.focusInput:this.$refs.focusInput.$el;Jr(n),t=n.value,this.dropdownMode===`blank`?this.search(e,``,`dropdown`):this.dropdownMode===`current`&&this.search(e,t,`dropdown`)}this.$emit(`dropdown-click`,{originalEvent:e,query:t})},onOptionSelect:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value=``,this.isSelected(t)||this.updateModel(e,[].concat(hF(this.d_value||[]),[r]))):this.updateModel(e,r),this.$emit(`item-select`,{originalEvent:e,value:t}),this.$emit(`option-select`,{originalEvent:e,value:t}),n&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOptionSelectRange:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;if(n===-1&&(n=this.findNearestSelectedOptionIndex(r,!0)),r===-1&&(r=this.findNearestSelectedOptionIndex(n)),n!==-1&&r!==-1){var i=Math.min(n,r),a=Math.max(n,r),o=this.visibleOptions.slice(i,a+1).filter(function(e){return t.isValidOption(e)}).filter(function(e){return!t.isSelected(e)}).map(function(e){return t.getOptionValue(e)});this.updateModel(e,[].concat(hF(this.d_value||[]),hF(o)))}},onClearClick:function(e){this.updateModel(e,null),this.$emit(`clear`)},onOverlayClick:function(e){cP.emit(`overlay-click`,{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){switch(e.code){case`Escape`:this.onEscapeKey(e);break}},onArrowDownKey:function(e){if(this.overlayVisible){var t=this.focusedOptionIndex===-1?this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex():this.findNextOptionIndex(this.focusedOptionIndex);this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex,t),this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowUpKey:function(e){if(this.overlayVisible)if(e.altKey)this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=this.focusedOptionIndex===-1?this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex():this.findPrevOptionIndex(this.focusedOptionIndex);this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,t,this.startRangeIndex),this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey:function(e){var t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(Qn(t.value)&&this.$filled?(Jr(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.d_value.length):e.stopPropagation())},onArrowRightKey:function(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey:function(e){var t=e.currentTarget,n=t.value.length,r=e.metaKey||e.ctrlKey,i=this.findFirstOptionIndex();this.multiple&&e.shiftKey&&r&&this.onOptionSelectRange(e,i,this.startRangeIndex),t.setSelectionRange(0,e.shiftKey?n:0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey:function(e){var t=e.currentTarget,n=t.value.length,r=e.metaKey||e.ctrlKey,i=this.findLastOptionIndex();this.multiple&&e.shiftKey&&r&&this.onOptionSelectRange(e,this.startRangeIndex,i),t.setSelectionRange(e.shiftKey?0:n,n),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.typeahead?this.overlayVisible?(this.focusedOptionIndex!==-1&&(this.multiple&&e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex):this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),e.preventDefault()),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(e)):this.multiple&&(e.target.value.trim()&&(this.updateModel(e,[].concat(hF(this.d_value||[]),[e.target.value.trim()])),this.$refs.focusInput.value=``),e.preventDefault())},onSpaceKey:function(e){!this.autoOptionFocus&&this.focusedOptionIndex!==-1&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onShiftKey:function(){this.startRangeIndex=this.focusedOptionIndex},onBackspaceKey:function(e){if(this.multiple){if(F(this.d_value)&&!this.$refs.focusInput.value){var t=this.d_value[this.d_value.length-1],n=this.d_value.slice(0,-1);this.writeValue(n,e),this.$emit(`item-unselect`,{originalEvent:e,value:t}),this.$emit(`option-unselect`,{originalEvent:e,value:t})}e.stopPropagation()}},onArrowLeftKeyOnMultiple:function(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple:function(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.d_value.length-1&&(this.focusedMultipleOptionIndex=-1,Jr(this.$refs.focusInput))},onBackspaceKeyOnMultiple:function(e){this.focusedMultipleOptionIndex!==-1&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter:function(e){gi.set(`overlay`,e,this.$primevue.config.zIndex.overlay),Ir(e,{position:`absolute`,top:`0`}),this.alignOverlay(),this.$attrSelector&&e.setAttribute(this.$attrSelector,``)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(`show`)},onOverlayLeave:function(e){e.style.pointerEvents=`none`,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit(`hide`),this.overlay=null},onOverlayAfterLeave:function(e){gi.clear(e)},alignOverlay:function(){var e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput.$el;this.appendTo===`self`?Rr(this.overlay,e):(this.overlay.style.minWidth=Lr(e)+`px`,Fr(this.overlay,e))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener(`click`,this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&=(document.removeEventListener(`click`,this.outsideClickListener,!0),null)},bindScrollListener:function(){var e=this;this.scrollHandler||=new sP(this.$refs.container,function(){e.overlayVisible&&e.hide()}),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!ui()&&e.hide()},window.addEventListener(`resize`,this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),null)},isOutsideClicked:function(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked:function(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput.$el},isDropdownClicked:function(e){return this.$refs.dropdownButton?e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.contains(e.target):!1},isOptionMatched:function(e,t){return this.isValidOption(e)&&this.getOptionLabel(e)?.toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption:function(e){return F(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isEquals:function(e,t){return rr(e,t,this.equalityKey)},isSelected:function(e){var t=this,n=this.getOptionValue(e);return this.multiple?(this.d_value||[]).some(function(e){return t.isEquals(e,n)}):this.isEquals(this.d_value,this.getOptionValue(e))},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(t){return e.isValidOption(t)})},findLastOptionIndex:function(){var e=this;return sr(this.visibleOptions,function(t){return e.isValidOption(t)})},findNextOptionIndex:function(e){var t=this,n=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(e){return t.isValidOption(e)}):-1;return n>-1?n+e+1:e},findPrevOptionIndex:function(e){var t=this,n=e>0?sr(this.visibleOptions.slice(0,e),function(e){return t.isValidOption(e)}):-1;return n>-1?n:e},findSelectedOptionIndex:function(){var e=this;return this.$filled?this.visibleOptions.findIndex(function(t){return e.isValidSelectedOption(t)}):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search:function(e,t,n){t!=null&&(n===`input`&&t.trim().length===0||(this.searching=!0,this.$emit(`complete`,{originalEvent:e,query:t})))},removeOption:function(e,t){var n=this,r=this.d_value[t],i=this.d_value.filter(function(e,n){return n!==t}).map(function(e){return n.getOptionValue(e)});this.updateModel(e,i),this.$emit(`item-unselect`,{originalEvent:e,value:r}),this.$emit(`option-unselect`,{originalEvent:e,value:r}),this.dirty=!0,Jr(this.multiple?this.$refs.focusInput:this.$refs.focusInput.$el)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var n=t===-1?e.focusedOptionId:`${e.$id}_${t}`,r=qr(e.list,`li[id="${n}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:`nearest`,inline:`start`}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(t===-1?e.focusedOptionIndex:t)})},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.writeValue(t,e),this.$emit(`change`,{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce(function(e,n,r){e.push({optionGroup:n,group:!0,index:r});var i=t.getOptionGroupChildren(n);return i&&i.forEach(function(t){return e.push(t)}),e},[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e},findNextSelectedOptionIndex:function(e){var t=this,n=this.$filled&&e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(e){return t.isValidSelectedOption(e)}):-1;return n>-1?n+e+1:-1},findPrevSelectedOptionIndex:function(e){var t=this,n=this.$filled&&e>0?sr(this.visibleOptions.slice(0,e),function(e){return t.isValidSelectedOption(e)}):-1;return n>-1?n:-1},findNearestSelectedOptionIndex:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=-1;return this.$filled&&(t?(n=this.findPrevSelectedOptionIndex(e),n=n===-1?this.findNextSelectedOptionIndex(e):n):(n=this.findNextSelectedOptionIndex(e),n=n===-1?this.findPrevSelectedOptionIndex(e):n)),n>-1?n:e}},computed:{visibleOptions:function(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue:function(){return this.$filled?mF(this.d_value)===`object`?this.getOptionLabel(this.d_value)??this.d_value:this.d_value:``},hasSelectedOption:function(){return this.$filled},equalityKey:function(){return this.dataKey},searchResultMessageText:function(){return F(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll(`{0}`,this.visibleOptions.length):this.emptySearchMessageText},searchMessageText:function(){return this.searchMessage||this.$primevue.config.locale.searchMessage||``},emptySearchMessageText:function(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||``},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||``},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||``},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(`{0}`,this.multiple?this.d_value.length:`1`):this.emptySelectionMessageText},listAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.listLabel:void 0},focusedOptionId:function(){return this.focusedOptionIndex===-1?null:`${this.$id}_${this.focusedOptionIndex}`},focusedMultipleOptionId:function(){return this.focusedMultipleOptionIndex===-1?null:`${this.$id}_multiple_option_${this.focusedMultipleOptionIndex}`},isClearIconVisible:function(){return this.showClear&&this.$filled&&!this.disabled&&!this.loading},ariaSetSize:function(){var e=this;return this.visibleOptions.filter(function(t){return!e.isOptionGroup(t)}).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions},panelId:function(){return this.$id+`_panel`},containerDataP:function(){return xr({fluid:this.$fluid})},overlayDataP:function(){return xr(dF({},`portal-`+this.appendTo,`portal-`+this.appendTo))},inputMultipleDataP:function(){return xr(dF({invalid:this.$invalid,disabled:this.disabled,focus:this.focused,fluid:this.$fluid,filled:this.$variant===`filled`,empty:!this.$filled},this.size,this.size))}},components:{InputText:YP,VirtualScroller:oF,Portal:HA,Chip:zP,ChevronDownIcon:SP,SpinnerIcon:nN,TimesIcon:JM},directives:{ripple:qj}};function SF(e){"@babel/helpers - typeof";return SF=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},SF(e)}function CF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CF(Object(n),!0).forEach(function(t){TF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TF(e,t,n){return(t=EF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EF(e){var t=DF(e,`string`);return SF(t)==`symbol`?t:t+``}function DF(e,t){if(SF(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(SF(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var OF=[`data-p`],kF=[`aria-activedescendant`,`data-p-has-dropdown`,`data-p`],AF=[`id`,`aria-label`,`aria-setsize`,`aria-posinset`],jF=[`id`,`placeholder`,`tabindex`,`disabled`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`aria-invalid`],MF=[`data-p-has-dropdown`],NF=[`disabled`,`aria-expanded`,`aria-controls`],PF=[`id`,`data-p`],FF=[`id`,`aria-label`],IF=[`id`],LF=[`id`,`aria-label`,`aria-selected`,`aria-disabled`,`aria-setsize`,`aria-posinset`,`onClick`,`onMousemove`,`data-p-selected`,`data-p-focused`,`data-p-disabled`];function RF(e,n,r,i,a,o){var s=(0,t.resolveComponent)(`InputText`),c=(0,t.resolveComponent)(`TimesIcon`),l=(0,t.resolveComponent)(`Chip`),u=(0,t.resolveComponent)(`SpinnerIcon`),d=(0,t.resolveComponent)(`VirtualScroller`),f=(0,t.resolveComponent)(`Portal`),p=(0,t.resolveDirective)(`ripple`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({ref:`container`,class:e.cx(`root`),style:e.sx(`root`),onClick:n[11]||=function(){return o.onContainerClick&&o.onContainerClick.apply(o,arguments)},"data-p":o.containerDataP},e.ptmi(`root`)),[e.multiple?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,ref:`focusInput`,id:e.inputId,type:`text`,name:e.$formName,class:(0,t.normalizeClass)([e.cx(`pcInputText`),e.inputClass]),style:(0,t.normalizeStyle)(e.inputStyle),defaultValue:o.inputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,fluid:e.$fluid,disabled:e.disabled,size:e.size,invalid:e.invalid,variant:e.variant,autocomplete:`off`,role:`combobox`,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":`listbox`,"aria-autocomplete":`list`,"aria-expanded":a.overlayVisible,"aria-controls":a.overlayVisible?o.panelId:void 0,"aria-activedescendant":a.focused?o.focusedOptionId:void 0,onFocus:o.onFocus,onBlur:o.onBlur,onKeydown:o.onKeyDown,onInput:o.onInput,onChange:o.onChange,unstyled:e.unstyled,"data-p-has-dropdown":e.dropdown,pt:e.ptm(`pcInputText`)},null,8,[`id`,`name`,`class`,`style`,`defaultValue`,`placeholder`,`tabindex`,`fluid`,`disabled`,`size`,`invalid`,`variant`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`onFocus`,`onBlur`,`onKeydown`,`onInput`,`onChange`,`unstyled`,`data-p-has-dropdown`,`pt`])),o.isClearIconVisible?(0,t.renderSlot)(e.$slots,`clearicon`,{key:1,class:(0,t.normalizeClass)(e.cx(`clearIcon`)),clearCallback:o.onClearClick},function(){return[(0,t.createVNode)(c,(0,t.mergeProps)({class:[e.cx(`clearIcon`)],onClick:o.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):(0,t.createCommentVNode)(``,!0),e.multiple?((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,(0,t.mergeProps)({key:2,ref:`multiContainer`,class:e.cx(`inputMultiple`),tabindex:`-1`,role:`listbox`,"aria-orientation":`horizontal`,"aria-activedescendant":a.focused?o.focusedMultipleOptionId:void 0,onFocus:n[5]||=function(){return o.onMultipleContainerFocus&&o.onMultipleContainerFocus.apply(o,arguments)},onBlur:n[6]||=function(){return o.onMultipleContainerBlur&&o.onMultipleContainerBlur.apply(o,arguments)},onKeydown:n[7]||=function(){return o.onMultipleContainerKeyDown&&o.onMultipleContainerKeyDown.apply(o,arguments)},"data-p-has-dropdown":e.dropdown,"data-p":o.inputMultipleDataP},e.ptm(`inputMultiple`)),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.d_value,function(n,r){return(0,t.openBlock)(),(0,t.createElementBlock)(`li`,(0,t.mergeProps)({key:`${r}_${o.getOptionLabel(n)}`,id:e.$id+`_multiple_option_`+r,class:e.cx(`chipItem`,{i:r}),role:`option`,"aria-label":o.getOptionLabel(n),"aria-selected":!0,"aria-setsize":e.d_value.length,"aria-posinset":r+1},{ref_for:!0},e.ptm(`chipItem`)),[(0,t.renderSlot)(e.$slots,`chip`,(0,t.mergeProps)({class:e.cx(`pcChip`),value:n,index:r,removeCallback:function(e){return o.removeOption(e,r)}},{ref_for:!0},e.ptm(`pcChip`)),function(){return[(0,t.createVNode)(l,{class:(0,t.normalizeClass)(e.cx(`pcChip`)),label:o.getOptionLabel(n),removeIcon:e.chipIcon||e.removeTokenIcon,removable:``,unstyled:e.unstyled,onRemove:function(e){return o.removeOption(e,r)},"data-p-focused":a.focusedMultipleOptionIndex===r,pt:e.ptm(`pcChip`)},{removeicon:(0,t.withCtx)(function(){return[(0,t.renderSlot)(e.$slots,e.$slots.chipicon?`chipicon`:`removetokenicon`,{class:(0,t.normalizeClass)(e.cx(`chipIcon`)),index:r,removeCallback:function(e){return o.removeOption(e,r)}})]}),_:2},1032,[`class`,`label`,`removeIcon`,`unstyled`,`onRemove`,`data-p-focused`,`pt`])]})],16,AF)}),128)),(0,t.createElementVNode)(`li`,(0,t.mergeProps)({class:e.cx(`inputChip`),role:`option`},e.ptm(`inputChip`)),[(0,t.createElementVNode)(`input`,(0,t.mergeProps)({ref:`focusInput`,id:e.inputId,type:`text`,style:e.inputStyle,class:e.inputClass,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:`off`,role:`combobox`,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":`listbox`,"aria-autocomplete":`list`,"aria-expanded":a.overlayVisible,"aria-controls":e.$id+`_list`,"aria-activedescendant":a.focused?o.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,onFocus:n[0]||=function(){return o.onFocus&&o.onFocus.apply(o,arguments)},onBlur:n[1]||=function(){return o.onBlur&&o.onBlur.apply(o,arguments)},onKeydown:n[2]||=function(){return o.onKeyDown&&o.onKeyDown.apply(o,arguments)},onInput:n[3]||=function(){return o.onInput&&o.onInput.apply(o,arguments)},onChange:n[4]||=function(){return o.onChange&&o.onChange.apply(o,arguments)}},e.ptm(`input`)),null,16,jF)],16)],16,kF)):(0,t.createCommentVNode)(``,!0),a.searching||e.loading?(0,t.renderSlot)(e.$slots,e.$slots.loader?`loader`:`loadingicon`,{key:3,class:(0,t.normalizeClass)(e.cx(`loader`))},function(){return[e.loader||e.loadingIcon?((0,t.openBlock)(),(0,t.createElementBlock)(`i`,(0,t.mergeProps)({key:0,class:[`pi-spin`,e.cx(`loader`),e.loader,e.loadingIcon],"aria-hidden":`true`,"data-p-has-dropdown":e.dropdown},e.ptm(`loader`)),null,16,MF)):e.loading?((0,t.openBlock)(),(0,t.createBlock)(u,(0,t.mergeProps)({key:1,class:e.cx(`loader`),spin:``,"aria-hidden":`true`,"data-p-has-dropdown":e.dropdown},e.ptm(`loader`)),null,16,[`class`,`data-p-has-dropdown`])):(0,t.createCommentVNode)(``,!0)]}):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(e.$slots,e.$slots.dropdown?`dropdown`:`dropdownbutton`,{toggleCallback:function(e){return o.onDropdownClick(e)}},function(){return[e.dropdown?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,(0,t.mergeProps)({key:0,ref:`dropdownButton`,type:`button`,class:[e.cx(`dropdown`),e.dropdownClass],disabled:e.disabled,"aria-haspopup":`listbox`,"aria-expanded":a.overlayVisible,"aria-controls":o.panelId,onClick:n[8]||=function(){return o.onDropdownClick&&o.onDropdownClick.apply(o,arguments)}},e.ptm(`dropdown`)),[(0,t.renderSlot)(e.$slots,`dropdownicon`,{class:(0,t.normalizeClass)(e.dropdownIcon)},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.dropdownIcon?`span`:`ChevronDownIcon`),(0,t.mergeProps)({class:e.dropdownIcon},e.ptm(`dropdownIcon`)),null,16,[`class`]))]})],16,NF)):(0,t.createCommentVNode)(``,!0)]}),e.typeahead?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,(0,t.mergeProps)({key:4,role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenSearchResult`),{"data-p-hidden-accessible":!0}),(0,t.toDisplayString)(o.searchResultMessageText),17)):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(f,{appendTo:e.appendTo},{default:(0,t.withCtx)(function(){return[(0,t.createVNode)(t.Transition,(0,t.mergeProps)({name:`p-anchored-overlay`,onEnter:o.onOverlayEnter,onAfterEnter:o.onOverlayAfterEnter,onLeave:o.onOverlayLeave,onAfterLeave:o.onOverlayAfterLeave},e.ptm(`transition`)),{default:(0,t.withCtx)(function(){return[a.overlayVisible?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:0,ref:o.overlayRef,id:o.panelId,class:[e.cx(`overlay`),e.panelClass,e.overlayClass],style:wF(wF({},e.panelStyle),e.overlayStyle),onClick:n[9]||=function(){return o.onOverlayClick&&o.onOverlayClick.apply(o,arguments)},onKeydown:n[10]||=function(){return o.onOverlayKeyDown&&o.onOverlayKeyDown.apply(o,arguments)},"data-p":o.overlayDataP},e.ptm(`overlay`)),[(0,t.renderSlot)(e.$slots,`header`,{value:e.d_value,suggestions:o.visibleOptions}),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`listContainer`),style:{"max-height":o.virtualScrollerDisabled?e.scrollHeight:``}},e.ptm(`listContainer`)),[(0,t.createVNode)(d,(0,t.mergeProps)({ref:o.virtualScrollerRef},e.virtualScrollerOptions,{style:{height:e.scrollHeight},items:o.visibleOptions,tabindex:-1,disabled:o.virtualScrollerDisabled,pt:e.ptm(`virtualScroller`)}),(0,t.createSlots)({content:(0,t.withCtx)(function(n){var r=n.styleClass,i=n.contentRef,s=n.items,c=n.getItemOptions,l=n.contentStyle,u=n.itemSize;return[(0,t.createElementVNode)(`ul`,(0,t.mergeProps)({ref:function(e){return o.listRef(e,i)},id:e.$id+`_list`,class:[e.cx(`list`),r],style:l,role:`listbox`,"aria-label":o.listAriaLabel},e.ptm(`list`)),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s,function(n,r){return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:o.getOptionRenderKey(n,o.getOptionIndex(r,c))},[o.isOptionGroup(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,(0,t.mergeProps)({key:0,id:e.$id+`_`+o.getOptionIndex(r,c),style:{height:u?u+`px`:void 0},class:e.cx(`optionGroup`),role:`option`},{ref_for:!0},e.ptm(`optionGroup`)),[(0,t.renderSlot)(e.$slots,`optiongroup`,{option:n.optionGroup,index:o.getOptionIndex(r,c)},function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(o.getOptionGroupLabel(n.optionGroup)),1)]})],16,IF)):(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`li`,(0,t.mergeProps)({key:1,id:e.$id+`_`+o.getOptionIndex(r,c),style:{height:u?u+`px`:void 0},class:e.cx(`option`,{option:n,i:r,getItemOptions:c}),role:`option`,"aria-label":o.getOptionLabel(n),"aria-selected":o.isSelected(n),"aria-disabled":o.isOptionDisabled(n),"aria-setsize":o.ariaSetSize,"aria-posinset":o.getAriaPosInset(o.getOptionIndex(r,c)),onClick:function(e){return o.onOptionSelect(e,n)},onMousemove:function(e){return o.onOptionMouseMove(e,o.getOptionIndex(r,c))},"data-p-selected":o.isSelected(n),"data-p-focused":a.focusedOptionIndex===o.getOptionIndex(r,c),"data-p-disabled":o.isOptionDisabled(n)},{ref_for:!0},o.getPTOptions(n,c,r,`option`)),[(0,t.renderSlot)(e.$slots,`option`,{option:n,index:o.getOptionIndex(r,c)},function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(o.getOptionLabel(n)),1)]})],16,LF)),[[p]])],64)}),128)),e.showEmptyMessage&&(!s||s&&s.length===0)?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,(0,t.mergeProps)({key:0,class:e.cx(`emptyMessage`),role:`option`},e.ptm(`emptyMessage`)),[(0,t.renderSlot)(e.$slots,`empty`,{},function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(o.searchResultMessageText),1)]})],16)):(0,t.createCommentVNode)(``,!0)],16,FF)]}),_:2},[e.$slots.loader?{name:`loader`,fn:(0,t.withCtx)(function(n){var r=n.options;return[(0,t.renderSlot)(e.$slots,`loader`,{options:r})]}),key:`0`}:void 0]),1040,[`style`,`items`,`disabled`,`pt`])],16),(0,t.renderSlot)(e.$slots,`footer`,{value:e.d_value,suggestions:o.visibleOptions}),(0,t.createElementVNode)(`span`,(0,t.mergeProps)({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenSelectedMessage`),{"data-p-hidden-accessible":!0}),(0,t.toDisplayString)(o.selectedMessageText),17)],16,PF)):(0,t.createCommentVNode)(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onLeave`,`onAfterLeave`])]}),_:3},8,[`appendTo`])],16,OF)}xF.render=RF;var zF={class:`baseSelectClearButton`,type:`button`},BF=(0,t.defineComponent)({__name:`BaseSelectClearButton`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,zF,[(0,t.createVNode)(J,{size:`16`,type:`x`})]))}}),VF=e=>typeof e==`object`&&!!e,HF=e=>!VF(e)||Reflect.ownKeys(e).length===0&&e.constructor===Object,UF={class:`cpMultiselect__empty`},WF={class:`cpMultiselect__option`,type:`button`},GF={key:0,class:`cpMultiselect__prefix`},KF=[`disabled`],qF={key:0,class:`cpMultiselect__error`},JF=(0,t.defineComponent)({__name:`CpMultiselect`,props:{appendTo:{default:`body`},disableBlurReset:{type:Boolean,default:!1},disabled:{type:Boolean},emptyMessage:{default:`No results found`},errorMessage:{default:``},forceSelection:{type:Boolean},isClearable:{type:Boolean},isInvalid:{type:Boolean},isLoading:{type:Boolean},label:{default:``},modelValue:{default:null},multiple:{type:Boolean},name:{default:``},onSearch:{type:Function,default:void 0},optionDisabled:{type:[String,Function],default:`disabled`},optionLabel:{type:[String,Function],default:`name`},options:{default:()=>[]},placeholder:{default:``},required:{type:Boolean},size:{default:`md`},trackBy:{default:void 0},withoutTypeahead:{type:Boolean}},emits:[`search`,`clear`,`update:modelValue`,`overlayShown`,`overlayHidden`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useSlots)(),o=(0,t.useId)(),s=(0,t.useId)(),c=(0,t.computed)(()=>r.label?s:void 0),l=(0,t.computed)({get(){return r.modelValue},set(e){typeof e!=`string`&&i(`update:modelValue`,e)}}),u=(0,t.computed)(()=>({cpMultiselect__input:!0,"cpMultiselect__input--isSingle":!r.multiple})),d=(0,t.computed)(()=>({root:{class:`cpMultiselect__select cpMultiselect__select--${r.size}`},inputmultiple:{class:`cpMultiselect__tags`},dropdown:{class:`cpMultiselect__toggle`},inputchip:{class:`cpMultiselect__inputWrapper`},overlay:{class:`cpMultiselect__overlay ${m.value?``:`cpMultiselect__overlay--isHidden`}`},listcontainer:{class:`cpMultiselect__listWrapper`},list:{class:`cpMultiselect__list`},option:{class:`cpMultiselect__optionWrapper`},loader:{class:`cpMultiselect__hidden`}})),f=(0,t.ref)(null),p=(0,t.ref)(``),m=(0,t.computed)(()=>!r.withoutTypeahead),h=(0,t.computed)(()=>f.value?.overlayVisible),g=(0,t.computed)(()=>({"cpMultiselect__dropdownIcon--isRotated":h.value})),_=(0,t.computed)(()=>!!a.prefix),v=(0,t.computed)(()=>r.multiple?!!l.value?.length:!HF(l.value)),y=(0,t.computed)(()=>(r.isInvalid??!1)&&!!r.errorMessage),b=(0,t.computed)(()=>({"cpMultiselect--hasPrefix":_.value,"cpMultiselect--isMultiple":r.multiple??!1,"cpMultiselect--hasValue":v.value,"cpMultiselect--hasError":y.value})),x=(0,t.computed)(()=>!r.multiple&&r.isClearable&&!HF(l.value)),S=(0,t.computed)(()=>r.onSearch!==void 0),C=e=>{if(S.value)return i(`search`,e.query);h.value||N()},w=(0,t.computed)(()=>S.value?r.options:r.options.filter(e=>(typeof e==`object`&&typeof r.optionLabel==`string`?e[r.optionLabel]:e).toLowerCase().includes(p.value.toLowerCase()))),T=()=>l.value=null,E=()=>i(`overlayShown`),D=()=>i(`overlayHidden`),O=()=>{if(!r.disableBlurReset)if(r.multiple){let e=A();e&&(e.value=``)}else f.value?.writeValue(l.value)},k=e=>{typeof e==`string`&&(p.value=e,e===``&&i(`search`,e))},A=()=>f.value&&f.value.$el?.querySelector(`input`)||null,j=()=>{let e=A();e&&e.select()},M=()=>{let e=A();e&&(e.focus(),j())},ee=()=>{N(),j()},te=()=>{N(),M()},ne=()=>{if(!h.value)return N()},N=()=>{h.value?f.value?.hide():f.value?.show()},re=e=>{},ie=()=>{f.value&&(f.value.alignOverlay=ae)},ae=()=>{let e=f.value?.$el;!f.value?.overlay||!e||(f.value.overlay.style.width=`${Lr(e)}px`,Fr(f.value.overlay,e))};return(0,t.onMounted)(()=>ie()),(n,r)=>{let i=(0,t.resolveComponent)(`cp-badge`),a=(0,t.resolveComponent)(`cp-loader`),p=(0,t.resolveComponent)(`cp-icon`),h=(0,t.resolveDirective)(`bind-once`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpMultiselect`,b.value])},[e.label?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(pA,{key:0,id:(0,t.unref)(s),"is-invalid":e.isInvalid,required:e.required},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:1},8,[`id`,`is-invalid`,`required`])),[[h,{for:(0,t.unref)(o)}]]):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(xF),{ref_key:`multiselect`,ref:f,modelValue:l.value,"onUpdate:modelValue":[r[0]||=e=>l.value=e,re],"append-to":e.appendTo,"aria-labelledby":c.value,"auto-option-focus":``,"data-key":e.trackBy,disabled:e.disabled,"force-selection":e.forceSelection,"input-class":u.value,"input-id":(0,t.unref)(o),invalid:e.isInvalid,multiple:e.multiple,name:e.name,"option-disabled":e.optionDisabled,"option-label":e.optionLabel,placeholder:e.placeholder,pt:d.value,suggestions:w.value,typeahead:m.value,onBlur:O,onClick:ee,onComplete:C,onHide:D,onKeydown:[(0,t.withKeys)(ne,[`arrow-down`]),(0,t.withKeys)(ne,[`arrow-up`]),(0,t.withKeys)(N,[`enter`]),r[1]||=(0,t.withKeys)((0,t.withModifiers)(()=>{},[`stop`]),[`esc`])],onShow:E,onValueChange:k},(0,t.createSlots)({empty:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`empty`,{},()=>[(0,t.createElementVNode)(`div`,UF,(0,t.toDisplayString)(e.emptyMessage),1)])]),chip:(0,t.withCtx)(({value:e,removeCallback:r})=>[(0,t.renderSlot)(n.$slots,`tag`,{option:e,remove:r},()=>[(0,t.createVNode)(i,{class:`cpMultiselect__tag`,"is-clearable":``,size:`sm`,onOnClear:r},{"leading-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`tag-leading-icon`,{option:e})]),default:(0,t.withCtx)(()=>[(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.name),1)]),_:2},1032,[`onOnClear`])])]),option:(0,t.withCtx)(({option:e})=>[(0,t.renderSlot)(n.$slots,`option`,{option:e},()=>[(0,t.createElementVNode)(`button`,WF,(0,t.toDisplayString)(e.name),1)])]),_:2},[m.value?{name:`dropdown`,fn:(0,t.withCtx)(()=>[_.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,GF,[(0,t.renderSlot)(n.$slots,`prefix`)])):(0,t.createCommentVNode)(``,!0),e.isLoading?((0,t.openBlock)(),(0,t.createBlock)(a,{key:1,class:`cpMultiselect__loader`,color:`#B2B2BD`})):((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:2,class:`cpMultiselect__toggle`,disabled:e.disabled,tabindex:`-1`,type:`button`,onClick:(0,t.withModifiers)(te,[`stop`])},[(0,t.createVNode)(p,{class:(0,t.normalizeClass)([`cpMultiselect__dropdownIcon`,g.value]),type:`chevron-down`},null,8,[`class`])],8,KF)),x.value?((0,t.openBlock)(),(0,t.createBlock)(BF,{key:3,class:`cpMultiselect__clear`,tabindex:`-1`,onClick:T})):(0,t.createCommentVNode)(``,!0)]),key:`0`}:void 0]),1032,[`modelValue`,`append-to`,`aria-labelledby`,`data-key`,`disabled`,`force-selection`,`input-class`,`input-id`,`invalid`,`multiple`,`name`,`option-disabled`,`option-label`,`placeholder`,`pt`,`suggestions`,`typeahead`]),(0,t.createVNode)(wE,{mode:`out-in`},{default:(0,t.withCtx)(()=>[e.isInvalid?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,qF,(0,t.toDisplayString)(e.errorMessage),1)):(0,t.createCommentVNode)(``,!0)]),_:1})],2)}}}),YF={class:`cpRadio`},XF=[`for`],ZF=[`id`,`autofocus`,`checked`,`disabled`,`name`,`value`,`onInput`],QF={class:`cpRadio__label`},$F={class:`cpRadio__description`},eI={class:`cpRadio__additionalData`},tI=(0,t.defineComponent)({__name:`CpRadio`,props:{autofocus:{type:Boolean,default:!1},color:{default:`blue`},groupName:{default:``},modelValue:{},options:{}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useId)(),o=e=>i(`update:modelValue`,e),s=e=>`${a}${e}`,c=e=>e===r.modelValue,l=(0,t.computed)(()=>`cpRadio--is${Y(r.color)}`);return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,YF,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,({label:n,value:r,description:i,additionalData:a,disabled:u},d)=>((0,t.openBlock)(),(0,t.createElementBlock)(`label`,{key:s(d),class:(0,t.normalizeClass)([`cpRadio__item`,l.value]),for:s(d)},[(0,t.createElementVNode)(`input`,{id:s(d),autofocus:e.autofocus,checked:c(r),disabled:u,name:e.groupName,type:`radio`,value:r,onInput:e=>o(r)},null,40,ZF),(0,t.createElementVNode)(`span`,QF,(0,t.toDisplayString)(n),1),(0,t.createElementVNode)(`span`,$F,(0,t.toDisplayString)(i),1),(0,t.createElementVNode)(`span`,eI,(0,t.toDisplayString)(a),1)],10,XF))),128))]))}}),nI=[`for`],rI=[`id`,`aria-describedby`,`aria-labelledby`,`autofocus`,`checked`,`disabled`,`name`,`value`],iI={class:`cpRadioNew__content`},aI={class:`cpRadioNew__label`},oI={key:0,class:`cpRadioNew__required`},sI={key:1,class:`cpRadioNew__optional`},cI={key:0,class:`cpRadioNew__helperText`},lI=(0,t.defineComponent)({__name:`CpRadioNew`,props:{option:{}},setup(e){let n=e,r=(0,t.inject)(`radioGroup`),i=e=>`${r.radioGroudId}-${e}`,a=(0,t.computed)(()=>i(n.option.value));return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`label`,{class:(0,t.normalizeClass)([`cpRadioNew`,`cpRadioNew--${(0,t.unref)(r).size}`]),for:a.value},[(0,t.createElementVNode)(`input`,{id:a.value,"aria-describedby":(0,t.unref)(r).radioGroupHelperTextId,"aria-labelledby":(0,t.unref)(r).radioGroupLabelId,autofocus:(0,t.unref)(r).autofocus,checked:(0,t.unref)(r).modelValue===e.option.value,disabled:e.option.disabled,name:(0,t.unref)(r).groupName,type:`radio`,value:e.option.value,onInput:i[0]||=n=>(0,t.unref)(r).onChange(e.option.value)},null,40,rI),(0,t.createElementVNode)(`span`,iI,[(0,t.createElementVNode)(`span`,aI,[(0,t.createTextVNode)((0,t.toDisplayString)(e.option.label)+` `,1),(0,t.unref)(r).showRequired?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,oI,`*`)):(0,t.unref)(r).showOptional?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,sI,`(Optional)`)):(0,t.createCommentVNode)(``,!0)]),e.option.helperText?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,cI,(0,t.toDisplayString)(e.option.helperText),1)):(0,t.createCommentVNode)(``,!0)])],10,nI))}}),uI={key:0,class:`cpRadioGroup__header`},dI=[`id`],fI={key:0,class:`cpRadioGroup__required`},pI={key:1,class:`cpRadioGroup__optional`},mI=[`id`],hI={class:`cpRadioGroup__options`},gI=(0,t.defineComponent)({__name:`CpRadioGroup`,props:{autofocus:{type:Boolean,default:!1},direction:{default:`vertical`},groupHelperText:{default:``},groupLabel:{default:``},groupName:{default:``},modelValue:{},options:{},required:{type:Boolean},size:{default:`md`}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useId)(),o=(0,t.useId)(),s=(0,t.useId)(),c=e=>i(`update:modelValue`,e),l=(0,t.computed)(()=>[`cpRadioGroup--${r.size}`,`cpRadioGroup--is${Y(r.direction)}`]),u=(0,t.computed)(()=>r.groupLabel||r.groupHelperText),d=(0,t.computed)(()=>r.required&&!r.groupLabel),f=(0,t.computed)(()=>!r.required&&!r.groupLabel);return(0,t.provide)(`radioGroup`,(0,t.reactive)({autofocus:(0,t.toRef)(r,`autofocus`),groupName:(0,t.toRef)(r,`groupName`),modelValue:(0,t.toRef)(r,`modelValue`),onChange:c,radioGroupHelperTextId:s,radioGroupLabelId:o,showOptional:f,showRequired:d,size:(0,t.toRef)(r,`size`),radioGroudId:a})),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpRadioGroup`,l.value])},[u.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,uI,[e.groupLabel?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,id:(0,t.unref)(o),class:`cpRadioGroup__label`},[(0,t.createTextVNode)((0,t.toDisplayString)(e.groupLabel)+` `,1),e.required?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,fI,`*`)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,pI,`(Optional)`))],8,dI)):(0,t.createCommentVNode)(``,!0),e.groupHelperText?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,id:(0,t.unref)(s),class:`cpRadioGroup__helperText`},(0,t.toDisplayString)(e.groupHelperText),9,mI)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,hI,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,e=>((0,t.openBlock)(),(0,t.createBlock)(lI,{key:e.value,option:e},null,8,[`option`]))),128))])],2))}}),_I=function(e){return e.FREE=`free`,e.OCCUPIED=`occupied`,e.OCCUPIED_BY_CURRENT_PAX=`occupiedByCurrentPax`,e.BLOCKED=`blocked`,e.PAYABLE=`payable`,e}({}),vI={seatStatuses:{[_I.FREE]:`Available`,[_I.OCCUPIED]:`Occupied`,[_I.OCCUPIED_BY_CURRENT_PAX]:`Selected`,[_I.BLOCKED]:`Unavailable`,[_I.PAYABLE]:`Extra fee`,selected:`Selected`,selectedForLinkedTraveler:`Selected for this traveler and their linked traveler`,selectTravelerFirst:`Select a traveler first`},facility:{galley:`Galley`,lavatory:`Lavatory`},emergencyExit:{close:`Close`,confirm:`Confirm`,disclaimerContent:`You must be able to assist the crew in an evacuation. Passengers who cannot are not allowed in these rows.`,disclaimerTitle:`Emergency exit row requirements`,subtitle:`This seat is located in an emergency exit row.`,title:`Emergency exit row`}},yI=function(e){return e.BACKWARD=`backward`,e.FORWARD=`forward`,e}({}),bI=function(e){return e.ADULT=`ad`,e.CHILD=`ch`,e.INFANT=`inf`,e.UNACCOMPANIED_MINOR=`um`,e}({}),xI=6,SI=e=>`${e.row}${e.column}`,CI=e=>Object.keys(e.zones).map(t=>{let n=e.zones[t];return{id:t,title:n?.title||``,layout:n?.layout||[]}}),wI=(e,t)=>e.rows.filter(e=>e.zone===t).sort((e,t)=>e.number-t.number),TI=e=>e.some(e=>e.layout.length>xI),EI=e=>{let t=0;return e.map(e=>e===null?(t++,`HALLWAY-${t}`):e).join(` `)},DI=e=>e.map(e=>e===null?`var(--hallway-width)`:`var(--seat-width)`).join(` `),OI=e=>{let t=e.indexOf(null);return t>0?t+1:e.length},kI=e=>e.includes(null),AI=e=>e.filter(e=>e===null).map((e,t)=>({column:e,index:t+1})),jI=e=>!e||e===bI.ADULT?``:[bI.CHILD,bI.UNACCOMPANIED_MINOR].includes(e)?`child`:`infant`,MI={class:`cpSeatMapEmergencyExitDialog__content`},NI={class:`cpSeatMapEmergencyExitDialog__description`},PI={class:`cpSeatMapEmergencyExitDialog__footer`},FI=(0,t.defineComponent)({__name:`CpSeatMapEmergencyExitDialog`,props:(0,t.mergeModels)({config:{default:()=>vI}},{isVisible:{type:Boolean,default:!1},isVisibleModifiers:{}}),emits:(0,t.mergeModels)([`close`,`confirm`],[`update:isVisible`]),setup(e,{emit:n}){let r=n,i=(0,t.useModel)(e,`isVisible`);return(n,a)=>((0,t.openBlock)(),(0,t.createBlock)(IM,{"is-visible":i.value,"onUpdate:isVisible":a[2]||=e=>i.value=e,class:`cpSeatMapEmergencyExitDialog`,"max-width":450,title:e.config.emergencyExit.title,onClose:a[3]||=e=>r(`close`)},{footer:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,PI,[(0,t.createVNode)(rA,{appearance:`secondary`,class:`cpSeatMapEmergencyExitDialog__close`,onClick:a[0]||=e=>r(`close`)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.config.emergencyExit.close),1)]),_:1}),(0,t.createVNode)(rA,{color:`success`,onClick:a[1]||=e=>r(`confirm`)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.config.emergencyExit.confirm),1)]),_:1})])]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,MI,[(0,t.createElementVNode)(`p`,NI,(0,t.toDisplayString)(e.config.emergencyExit.subtitle),1),(0,t.createVNode)(oE,{color:`warning`,title:e.config.emergencyExit.disclaimerTitle},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(e.config.emergencyExit.disclaimerContent),1)]),_:1},8,[`title`])])]),_:1},8,[`is-visible`,`title`]))}}),II={class:`cpSeatMapGrid`},LI={class:`cpSeatMapGrid__columns`},RI=(0,t.defineComponent)({__name:`CpSeatMapGrid`,props:{layout:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,II,[(0,t.createElementVNode)(`div`,LI,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.layout,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:n,class:`cpSeatMapGrid__column`},(0,t.toDisplayString)(e),1))),128))]),(0,t.renderSlot)(n.$slots,`default`)]))}}),zI={},BI={fill:`none`,viewBox:`0 0 504 433`,xmlns:`http://www.w3.org/2000/svg`};function VI(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,BI,[...n[0]||=[(0,t.createStaticVNode)(`<g filter="url(#filter0_i_23228_86232)"><path d="M171.634 43.4901C209.521 -14.4961 294.478 -14.497 332.366 43.4891L462.309 242.364C489.513 283.999 504 332.657 504 382.391L504 432.666H0.00012207L0 382.391C5.19025e-05 332.657 14.4874 283.999 41.6914 242.364L171.634 43.4901Z" fill="white"></path></g><path d="M172.053 43.7637C209.743 -13.9203 294.257 -13.9212 331.947 43.7627L461.89 242.638C489.041 284.191 503.5 332.754 503.5 382.392V432.166H0.5V382.392C0.500052 332.754 14.9595 284.191 42.1104 242.638L172.053 43.7637Z" stroke="#E9EAF6"></path><defs><filter id="filter0_i_23228_86232" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" height="432.666" width="504" x="0" y="0"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" mode="normal" result="shape"></feBlend><feColorMatrix in="SourceAlpha" result="hardAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="20"></feGaussianBlur><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0.917647 0 0 0 0 0.92549 0 0 0 0 1 0 0 0 1 0"></feColorMatrix><feBlend in2="shape" mode="normal" result="effect1_innerShadow_23228_86232"></feBlend></filter></defs>`,3)]])}var HI=q(zI,[[`render`,VI]]),UI={},WI={fill:`none`,preserveAspectRatio:`xMaxYMid meet`,viewBox:`0 0 180 509`,xmlns:`http://www.w3.org/2000/svg`};function GI(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,WI,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M0 87.8 L180 0 L180 490.1 L0 508.7 Z`,fill:`url(#paint0_linear_23056_30266)`},null,-1),(0,t.createElementVNode)(`defs`,null,[(0,t.createElementVNode)(`linearGradient`,{id:`paint0_linear_23056_30266`,x1:`1`,x2:`0`,y1:`0.5`,y2:`0.5`},[(0,t.createElementVNode)(`stop`,{offset:`0.5`,"stop-color":`white`}),(0,t.createElementVNode)(`stop`,{offset:`1`,"stop-color":`white`,"stop-opacity":`0`})])],-1)]])}var KI=q(UI,[[`render`,GI]]),qI={class:`cpSeatMapPlane__plane`},JI={class:`cpSeatMapPlane__body`},YI={class:`cpSeatMapPlane__cabin`},XI=(0,t.defineComponent)({__name:`CpSeatMapPlane`,props:{isLarge:{type:Boolean,default:!1},mapKey:{default:``},transitionDirection:{default:yI.FORWARD}},setup(e){let n=e,r=Jl(),i=(0,t.computed)(()=>({"cpSeatMapPlane--isLarge":n.isLarge})),a=(0,t.computed)(()=>r.value?`cpSeatMapSlide-${n.transitionDirection}`:`cpSeatMapFade`);return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSeatMapPlane`,i.value])},[(0,t.createElementVNode)(`div`,qI,[(0,t.createVNode)(HI,{class:`cpSeatMapPlane__nose`}),(0,t.createVNode)(KI,{class:`cpSeatMapPlane__wing cpSeatMapPlane__wing--isLeft`}),(0,t.createVNode)(KI,{class:`cpSeatMapPlane__wing cpSeatMapPlane__wing--isRight`})]),(0,t.createElementVNode)(`div`,JI,[(0,t.createElementVNode)(`div`,YI,[(0,t.createVNode)(t.Transition,{mode:`out-in`,name:a.value},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.mapKey,class:`cpSeatMapPlane__content`},[(0,t.renderSlot)(n.$slots,`default`)]))]),_:3},8,[`name`])])])],2))}}),ZI=function(e){return e.LAVATORY=`lavatory`,e.GALLEY=`galley`,e.CURTAIN=`curtain`,e}({}),QI=function(e){return e.LEFT=`left`,e.RIGHT=`right`,e}({}),$I=(0,t.defineComponent)({__name:`CpSeatMapRowFacility`,props:{columnsCount:{},config:{default:()=>vI},isTop:{type:Boolean,default:!1},position:{},seatBlockSize:{},type:{}},setup(e){let n=e,r=(0,t.computed)(()=>n.type===ZI.LAVATORY),i=(0,t.computed)(()=>n.type===ZI.GALLEY),a=(0,t.computed)(()=>i.value?`coffee`:`handshake`),o=(0,t.computed)(()=>n.position===QI.LEFT),s=(0,t.computed)(()=>n.position===QI.RIGHT),c=(0,t.computed)(()=>({gridColumn:`${o.value?1:n.seatBlockSize+1} / ${s.value?n.columnsCount+1:n.seatBlockSize}`})),l=(0,t.computed)(()=>({"cpSeatMapRowFacility--isTop":n.isTop})),u=(0,t.computed)(()=>r.value?n.config.facility.lavatory:i.value?n.config.facility.galley:``);return(e,n)=>(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSeatMapRowFacility`,l.value]),style:(0,t.normalizeStyle)(c.value)},[(0,t.createVNode)(J,{class:`cpSeatMapRowFacility__icon`,size:`16`,type:a.value},null,8,[`type`])],6)),[[(0,t.unref)(wn),u.value]])}}),eL={class:`cpSeatMapRow`},tL=(0,t.defineComponent)({__name:`CpSeatMapRow`,props:{config:{default:()=>vI},row:{},seatBlockSize:{}},setup(e){let n=e,r=(0,t.computed)(()=>[{active:n.row.has_exit_back,direction:`back`},{active:n.row.has_exit_front,direction:`front`},{active:n.row.has_exit_left,direction:`left`},{active:n.row.has_exit_right,direction:`right`}]),i=(0,t.computed)(()=>r.value.filter(({active:e})=>e)),a=(0,t.computed)(()=>Object.keys(n.row.seats).length+1),o=(0,t.computed)(()=>!!r.value.length),s=(e,t)=>{if(t===QI.LEFT){if(e.lavatory_left)return ZI.LAVATORY;if(e.galley_left)return ZI.GALLEY}if(t===QI.RIGHT){if(e.lavatory_right)return ZI.LAVATORY;if(e.galley_right)return ZI.GALLEY}return null},c=e=>[{position:QI.LEFT,hasFacility:e.lavatory_left||e.galley_left},{position:QI.RIGHT,hasFacility:e.lavatory_right||e.galley_right}].reduce((t,{position:n,hasFacility:r})=>{if(!r)return t;let i=s(e,n);return i?[...t,{position:n,type:i}]:t},[]),l=(0,t.computed)(()=>n.row.top?c(n.row.top):[]),u=(0,t.computed)(()=>n.row.bottom?c(n.row.bottom):[]),d=(0,t.computed)(()=>!!l.value.length),f=(0,t.computed)(()=>!!u.value.length),p=e=>[`cpSeatMapRow__exit--is${Y(e)}`];return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,eL,[o.value?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(i.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.direction,class:(0,t.normalizeClass)([`cpSeatMapRow__exit`,p(e.direction)])},` exit `,2))),128)):(0,t.createCommentVNode)(``,!0),d.value?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(l.value,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)($I,{key:r,"columns-count":a.value,config:e.config,"is-top":``,position:n.position,"seat-block-size":e.seatBlockSize,type:n.type},null,8,[`columns-count`,`config`,`position`,`seat-block-size`,`type`]))),128)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`),f.value?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:2},(0,t.renderList)(u.value,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)($I,{key:r,"columns-count":a.value,config:e.config,position:n.position,"seat-block-size":e.seatBlockSize,type:n.type},null,8,[`columns-count`,`config`,`position`,`seat-block-size`,`type`]))),128)):(0,t.createCommentVNode)(``,!0)]))}}),nL={},rL={fill:`none`,height:`13`,viewBox:`0 0 13 13`,width:`13`,xmlns:`http://www.w3.org/2000/svg`};function iL(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,rL,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M5.64966 0.826416C5.81077 0.391202 6.42605 0.3912 6.58716 0.826416L7.65063 3.70044C7.80258 4.11068 8.12614 4.43424 8.53638 4.58618L11.4104 5.64966C11.8456 5.81077 11.8456 6.42605 11.4104 6.58716L8.53638 7.65063C8.12614 7.80258 7.80258 8.12614 7.65063 8.53638L6.58716 11.4104C6.42605 11.8456 5.81077 11.8456 5.64966 11.4104L4.58618 8.53638C4.43424 8.12614 4.11068 7.80258 3.70044 7.65063L0.826416 6.58716C0.391202 6.42605 0.3912 5.81077 0.826416 5.64966L3.70044 4.58618C4.05951 4.45319 4.35244 4.18883 4.52173 3.84985L4.58618 3.70044L5.64966 0.826416Z`,stroke:`#D1D3E6`},null,-1)]])}var aL=q(nL,[[`render`,iL]]),oL={key:1},sL={key:1},cL={key:2},lL=(0,t.defineComponent)({__name:`CpSeatMapSeat`,props:{seat:{}},setup(e){let n=e,r=(0,t.computed)(()=>n.seat.status),i=(0,t.computed)(()=>[_I.OCCUPIED,_I.BLOCKED].includes(r.value)),a=(0,t.computed)(()=>r.value===_I.OCCUPIED_BY_CURRENT_PAX),o=(0,t.computed)(()=>i.value),s=(0,t.computed)(()=>r.value===_I.PAYABLE),c=(0,t.computed)(()=>r.value===_I.FREE),l=(0,t.computed)(()=>({"cpSeatMapSeat--isOccupied":i.value,"cpSeatMapSeat--isOccupiedByCurrentPax":a.value,"cpSeatMapSeat--isUnavailable":o.value,"cpSeatMapSeat--isPayable":s.value,"cpSeatMapSeat--isFree":c.value})),u=(0,t.computed)(()=>s.value?n.seat.selected_ancillary?.formatted_amount||`€`:``);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSeatMapSeat`,l.value])},[(0,t.createVNode)(t.Transition,{name:`fade`},{default:(0,t.withCtx)(()=>[o.value?((0,t.openBlock)(),(0,t.createBlock)(J,{key:0,size:`16`,type:`x`})):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,oL,[c.value?((0,t.openBlock)(),(0,t.createBlock)(aL,{key:0})):a.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,sL,[(0,t.renderSlot)(e.$slots,`default`)])):s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,cL,(0,t.toDisplayString)(u.value),1)):(0,t.createCommentVNode)(``,!0)]))]),_:3})],2))}}),uL=[`id`,`disabled`],dL=500,fL=(0,t.defineComponent)({__name:`CpSeatMapSeatWrapper`,props:{config:{default:()=>vI},isHighlighted:{type:Boolean,default:!1},isSelectionEnabled:{type:Boolean,default:!0},rowNumber:{},seat:{},selection:{default:null}},emits:[`select`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useTemplateRef)(`seatWrapper`),o=(0,t.computed)(()=>`seat-${SI({row:r.rowNumber,column:r.seat.column})}`),s=(0,t.computed)(()=>r.selection!==null),c=(0,t.computed)(()=>r.seat.status===_I.OCCUPIED),l=(0,t.computed)(()=>r.seat.status===_I.BLOCKED),u=(0,t.computed)(()=>l.value||c.value),d=(0,t.computed)(()=>r.seat.status===_I.PAYABLE),f=()=>{a.value&&(a.value.classList.add(`cpSeatMapSeatWrapper--isHighlighted`),a.value.scrollIntoView({behavior:`smooth`,block:`center`}),setTimeout(()=>{a.value&&a.value.classList.remove(`cpSeatMapSeatWrapper--isHighlighted`)},dL))};(0,t.watch)(()=>r.isHighlighted,e=>{e&&f()});let p=(0,t.computed)(()=>({"cpSeatMapSeatWrapper--isPayable":d.value})),m=(0,t.computed)(()=>!r.isSelectionEnabled||u.value),h=(0,t.computed)(()=>s.value?_I.OCCUPIED_BY_CURRENT_PAX:u.value||d.value?r.seat.status:_I.FREE),g=(0,t.computed)(()=>({...r.seat,status:h.value})),_=(0,t.computed)(()=>!!r.selection?.hasLinkedTraveler),v=(0,t.computed)(()=>_.value?jI(r.selection?.linkedTravelerType)||`infant`:``),y=(0,t.computed)(()=>{let{seatStatuses:e}=r.config;return s.value?_.value?e.selectedForLinkedTraveler:e.selected:r.isSelectionEnabled?`${SI({row:r.rowNumber,column:r.seat.column})} • ${e[r.seat.status]}`:e.selectTravelerFirst}),b=(0,t.computed)(()=>r.selection?.initials||``),x=()=>{m.value||i(`select`,r.seat,r.rowNumber)};return(e,n)=>(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{id:o.value,ref:`seatWrapper`,class:(0,t.normalizeClass)([`cpSeatMapSeatWrapper`,p.value]),disabled:m.value,type:`button`,onClick:x},[(0,t.createVNode)(lL,{class:`cpSeatMapSeatWrapper__seat`,seat:g.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(b.value)+` `,1),_.value?((0,t.openBlock)(),(0,t.createBlock)(QD,{key:0,class:`cpSeatMapSeatWrapper__additionalTraveler`,color:`accent`,"leading-icon":v.value,size:`xs`,variant:`outline`},null,8,[`leading-icon`])):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`seat`])],10,uL)),[[(0,t.unref)(wn),y.value]])}}),pL={class:`cpSeatMapZone`},mL={class:`cpSeatMapZone__layout`},hL=(0,t.defineComponent)({__name:`CpSeatMapZone`,props:{title:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pL,[(0,t.createVNode)(KM,{class:`cpSeatMapZone__title`,"heading-level":`h6`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)]),_:1}),(0,t.createElementVNode)(`div`,mL,[(0,t.renderSlot)(n.$slots,`default`)])]))}}),gL=(0,t.defineComponent)({__name:`CpSeatMap`,props:{config:{default:()=>vI},highlightedSeatId:{default:null},isSelectionEnabled:{type:Boolean,default:!0},seatMap:{},selections:{default:()=>({})},transitionDirection:{default:yI.FORWARD}},emits:[`select`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(!1),o=(0,t.ref)(null),s=(0,t.computed)(()=>CI(r.seatMap)),c=(0,t.computed)(()=>TI(s.value)),l=(0,t.computed)(()=>({"cpSeatMap--isLarge":c.value})),u=(0,t.computed)(()=>({"--seat-mobile-width":c.value?`32px`:`40px`,"--hallway-mobile-width":c.value?`16px`:`32px`})),d=e=>({"--columns-count":e.length,"--grid-template-areas":`"${EI(e)}"`,"--grid-template-columns":DI(e)}),f=(e,t)=>r.selections[SI({row:e,column:t})]??null,p=e=>({gridColumn:e.column}),m=e=>({gridArea:`HALLWAY-${e}`}),h=e=>r.highlightedSeatId===e.id,g=(e,t)=>{if(e.is_exit_row){o.value={rowNumber:t,seat:e},a.value=!0;return}i(`select`,e,t)},_=()=>{a.value=!1,o.value=null},v=()=>{if(o.value){let{seat:e,rowNumber:t}=o.value;i(`select`,e,t)}_()};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSeatMap`,l.value]),style:(0,t.normalizeStyle)(u.value)},[((0,t.openBlock)(),(0,t.createBlock)(XI,{key:e.seatMap.aircraft,class:`cpSeatMap__plane`,"is-large":c.value,"map-key":e.seatMap.ref_id_segment,"transition-direction":e.transitionDirection},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createBlock)(hL,{key:n.id,class:`cpSeatMap__zone`,title:n.title},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(RI,{class:`cpSeatMap__grid`,layout:n.layout,style:(0,t.normalizeStyle)(d(n.layout))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(wI)(e.seatMap,n.id),r=>((0,t.openBlock)(),(0,t.createBlock)(tL,{key:r.number,class:`cpSeatMap__row`,config:e.config,row:r,"seat-block-size":(0,t.unref)(OI)(n.layout)},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.seats,n=>((0,t.openBlock)(),(0,t.createBlock)(fL,{key:n.id,config:e.config,"is-highlighted":h(n),"is-selection-enabled":e.isSelectionEnabled,"row-number":r.number,seat:n,selection:f(r.number,n.column),style:(0,t.normalizeStyle)(p(n)),onSelect:g},null,8,[`config`,`is-highlighted`,`is-selection-enabled`,`row-number`,`seat`,`selection`,`style`]))),128)),(0,t.unref)(kI)(n.layout)?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)((0,t.unref)(AI)(n.layout),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:e.index,class:`cpSeatMap__hallway`,style:(0,t.normalizeStyle)(m(e.index))},(0,t.toDisplayString)(r.number),5))),128)):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`config`,`row`,`seat-block-size`]))),128))]),_:2},1032,[`layout`,`style`])]),_:2},1032,[`title`]))),128))]),_:1},8,[`is-large`,`map-key`,`transition-direction`])),(0,t.createVNode)(FI,{"is-visible":a.value,"onUpdate:isVisible":r[0]||=e=>a.value=e,config:e.config,onClose:_,onConfirm:v},null,8,[`is-visible`,`config`])],6))}}),_L=[`id`,`disabled`,`name`,`value`],vL=[`for`],yL={class:`cpSegmentedControlItem__label`},bL=q((0,t.defineComponent)({__name:`CpSegmentedControlItem`,props:(0,t.mergeModels)({isDisabled:{type:Boolean},isFullWidth:{type:Boolean},isInvalid:{type:Boolean},isSelected:{type:Boolean},name:{},option:{},orientation:{default:`horizontal`},size:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`),i=(0,t.computed)(()=>({"cpSegmentedControlItem--isDisabled":n.isDisabled,"cpSegmentedControlItem--isInvalid":n.isInvalid,"cpSegmentedControlItem--isSelected":n.isSelected,"cpSegmentedControlItem--fullWidth":n.isFullWidth&&n.orientation!==`vertical`,[`cpSegmentedControlItem--${n.size}`]:n.size,[`cpSegmentedControlItem--is${Y(n.orientation)}`]:!0}));return(n,a)=>{let o=(0,t.resolveComponent)(`cp-icon`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSegmentedControlItem`,i.value])},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{id:e.option.value,"onUpdate:modelValue":a[0]||=e=>r.value=e,class:`cpSegmentedControlItem__input`,disabled:e.isDisabled,name:e.name,type:`radio`,value:e.option.value},null,8,_L),[[t.vModelRadio,r.value]]),(0,t.createElementVNode)(`label`,{class:`cpSegmentedControlItem__inner`,for:e.option.value},[e.option.leadingIcon?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,class:`cpSegmentedControlItem__icon`,size:`16`,type:e.option.leadingIcon},null,8,[`type`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,yL,(0,t.toDisplayString)(e.option.label),1),e.option.trailingIcon?((0,t.openBlock)(),(0,t.createBlock)(o,{key:1,class:`cpSegmentedControlItem__icon`,size:`16`,type:e.option.trailingIcon},null,8,[`type`])):(0,t.createCommentVNode)(``,!0)],8,vL)],2)}}}),[[`__scopeId`,`data-v-602a9d59`]]),xL={class:`cpSegmentedControl__options`},SL=(0,t.defineComponent)({__name:`CpSegmentedControl`,props:(0,t.mergeModels)({isDisabled:{type:Boolean},isFullWidth:{type:Boolean},isInvalid:{type:Boolean},name:{},options:{},orientation:{default:`horizontal`},size:{default:`md`}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=(0,t.computed)(()=>({"cpSegmentedControl--isInvalid":n.isInvalid,"cpSegmentedControl--fullWidth":n.isFullWidth,"cpSegmentedControl--isDisabled":n.isDisabled,[`cpSegmentedControl--is${Y(n.orientation)}`]:!0})),i=(0,t.useModel)(e,`modelValue`),a=(0,t.ref)(null),o=(0,t.ref)(null),s=e=>e===l.value,c=e=>e===n.options.length-1,l=(0,t.computed)(()=>i.value===void 0?-1:n.options.findIndex(e=>e.value===i.value)),u=(e,t)=>{t<0||(t>0&&e.add(t-1),t<n.options.length-1&&e.add(t))},d=(0,t.computed)(()=>{let e=new Set;return u(e,l.value),o.value!==null&&u(e,o.value),e}),f=(0,t.computed)(()=>{let e=new Set;return a.value!==null&&a.value!==l.value&&a.value!==o.value&&u(e,a.value),e}),p=e=>{let t=d.value.has(e);return{"cpSegmentedControl__divider--isActive":t,"cpSegmentedControl__divider--isHovered":!t&&f.value.has(e)}},m=e=>{n.isDisabled||(a.value=e)},h=()=>a.value=null,g=e=>{n.isDisabled||(o.value=e)},_=()=>o.value=null;return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSegmentedControl`,r.value])},[(0,t.createElementVNode)(`div`,xL,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n.value},[(0,t.createVNode)(bL,{option:n,name:e.name,"is-disabled":e.isDisabled,"is-full-width":e.isFullWidth,"is-invalid":e.isInvalid,"is-selected":s(r),orientation:e.orientation,modelValue:i.value,"onUpdate:modelValue":a[0]||=e=>i.value=e,size:e.size,onMouseenter:e=>m(r),onMouseleave:h,onFocusin:e=>g(r),onFocusout:_},null,8,[`option`,`name`,`is-disabled`,`is-full-width`,`is-invalid`,`is-selected`,`orientation`,`modelValue`,`size`,`onMouseenter`,`onFocusin`]),c(r)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([`cpSegmentedControl__divider`,p(r)]),"aria-hidden":`true`},null,2))],64))),128))])],2))}}),CL={class:`cpSelect__container`},wL=[`id`,`autocomplete`,`disabled`,`name`,`required`],TL=[`disabled`],EL=[`value`],DL=[`id`],OL=[`id`],kL=(0,t.defineComponent)({__name:`CpSelect`,props:(0,t.mergeModels)({autocomplete:{default:`on`},defaultValue:{default:`Select an option`},disabled:{type:Boolean,default:!1},errorMessage:{default:``},help:{default:``},hideDefaultValue:{type:Boolean,default:!1},isInvalid:{type:Boolean,default:!1},label:{default:``},name:{default:void 0},options:{},required:{type:Boolean,default:!1},size:{default:`md`},tooltip:{default:``}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`),i=(0,t.useId)(),a=(0,t.useId)(),o=(0,t.useId)(),s=(0,t.computed)(()=>Y(n.label)),c=(0,t.computed)(()=>[`cpSelect--${n.size}`,{"cpSelect--isInvalid":n.isInvalid,"cpSelect--isDisabled":n.disabled}]),l=(0,t.computed)(()=>n.help?.length&&!u.value),u=(0,t.computed)(()=>n.isInvalid&&n.errorMessage.length);return(n,d)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cpSelect`,c.value])},[e.label?((0,t.openBlock)(),(0,t.createBlock)(pA,{key:0,class:`cpSelect__label`,for:(0,t.unref)(i),"is-invalid":e.isInvalid,required:e.required,tooltip:e.tooltip},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.value),1)]),_:1},8,[`for`,`is-invalid`,`required`,`tooltip`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,CL,[(0,t.withDirectives)((0,t.createElementVNode)(`select`,{id:(0,t.unref)(i),"onUpdate:modelValue":d[0]||=e=>r.value=e,autocomplete:e.autocomplete,class:`cpSelect__inner`,disabled:e.disabled,name:e.name,required:e.required},[(0,t.createElementVNode)(`option`,{disabled:e.hideDefaultValue,value:``},(0,t.toDisplayString)(e.defaultValue),9,TL),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:n,value:e.value},(0,t.toDisplayString)(e.label),9,EL))),128))],8,wL),[[t.vModelSelect,r.value]])]),(0,t.createVNode)(wE,{mode:`out-in`},{default:(0,t.withCtx)(()=>[u.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:0,id:(0,t.unref)(o),class:`cpSelect__error`},(0,t.toDisplayString)(e.errorMessage),9,DL)):l.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:1,id:(0,t.unref)(a),class:`cpSelect__help`},(0,t.toDisplayString)(e.help),9,OL)):(0,t.createCommentVNode)(``,!0)]),_:1})],2))}}),AL=[`aria-disabled`,`aria-pressed`,`disabled`],jL={class:`cpSelectableButton__body`},ML={key:0,class:`cpSelectableButton__icon cpSelectableButton__icon--isBefore`},NL={key:1,class:`cpSelectableButton__label`},PL={key:2,class:`cpSelectableButton__icon cpSelectableButton__icon--isAfter`},FL=(0,t.defineComponent)({__name:`CpSelectableButton`,props:{appearance:{default:`primary`},disabled:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},label:{default:``},size:{default:`md`}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useSlots)(),o=(0,t.computed)(()=>!!a[`leading-icon`]),s=(0,t.computed)(()=>!!r.label||!!a.default),c=(0,t.computed)(()=>!!a[`trailing-icon`]),l=(0,t.computed)(()=>!r.label&&!a.default),u=(0,t.computed)(()=>[`cpSelectableButton--${r.size}`,`cpSelectableButton--is${Y(r.appearance)}`,{"cpSelectableButton--isSelected":r.isSelected,"cpSelectableButton--isExpanded":r.isExpanded,"cpSelectableButton--isDisabled":r.disabled,"cpSelectableButton--isIconOnly":l.value}]);return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{"aria-disabled":e.disabled,"aria-pressed":e.isSelected,class:(0,t.normalizeClass)([`cpSelectableButton`,u.value]),disabled:e.disabled,type:`button`,onClick:r[0]||=e=>i(`click`,e)},[(0,t.createElementVNode)(`div`,jL,[o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ML,[(0,t.renderSlot)(n.$slots,`leading-icon`)])):(0,t.createCommentVNode)(``,!0),s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,NL,[(0,t.renderSlot)(n.$slots,`default`,{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)])])):(0,t.createCommentVNode)(``,!0),c.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,PL,[(0,t.renderSlot)(n.$slots,`trailing-icon`)])):(0,t.createCommentVNode)(``,!0)])],10,AL))}}),IL={class:`cpSelectMenu`},LL={class:`cpSelectMenu__label`},RL={key:0,class:`dropdown__title`},zL={class:`dropdown__list`},BL={key:0,class:`dropdown__filterBar`},VL=[`placeholder`],HL={key:1,class:`dropdown__items`},UL=[`for`],WL=[`id`,`checked`,`type`,`value`,`onChange`],GL={key:2,class:`dropdown__emptyState`},KL=(0,t.defineComponent)({__name:`CpSelectMenu`,props:{closeOnSelect:{type:Boolean,default:!0},dropdownEmptyViewPlaceholder:{default:`No option found`},dropdownFilterPlaceholder:{default:`Filter...`},dropdownTitle:{default:`Select value`},hasFilter:{type:Boolean,default:!1},isMultiSelect:{type:Boolean,default:!1},selectedValue:{},values:{}},emits:[`update:selectedValue`,`onClose`,`onFilterChange`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(!1),o=(0,t.ref)(),s=(0,t.ref)(),c=(0,t.computed)(()=>r.isMultiSelect?`checkbox`:`radio`),l=()=>{a.value=!a.value,a.value&&r.hasFilter&&(0,t.nextTick)(()=>{s.value&&s.value.focus()})},u=()=>{a.value&&(a.value=!1,p(),i(`onClose`))},d=e=>{e.value!==r.selectedValue.value&&i(`update:selectedValue`,e),r.closeOnSelect&&u()},f=e=>{let t=e.target;i(`onFilterChange`,t.value)},p=()=>{i(`onFilterChange`,``)},m=e=>e===r.selectedValue.value;return(n,r)=>{let i=(0,t.resolveComponent)(`cp-icon`),p=(0,t.resolveDirective)(`click-outside`);return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`div`,IL,[(0,t.createElementVNode)(`button`,{class:`cpSelectMenu__button`,type:`button`,onClick:l},[(0,t.createElementVNode)(`span`,LL,(0,t.toDisplayString)(e.selectedValue.label),1),(0,t.createVNode)(i,{class:(0,t.normalizeClass)([`cpSelectMenu__icon`,{"cpSelectMenu__icon--isOpened":a.value}]),type:`chevron-down`},null,8,[`class`])]),(0,t.createVNode)(t.Transition,{mode:`out-in`,name:`scale-elastic`},{default:(0,t.withCtx)(()=>[a.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`dropdownRef`,ref:o,class:`cpSelectMenu__dropdown dropdown`},[e.dropdownTitle?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,RL,[(0,t.createTextVNode)((0,t.toDisplayString)(e.dropdownTitle)+` `,1),(0,t.createElementVNode)(`button`,{type:`button`,onClick:u},[(0,t.createVNode)(i,{type:`x`})])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,zL,[e.hasFilter?((0,t.openBlock)(),(0,t.createElementBlock)(`label`,BL,[(0,t.createVNode)(i,{type:`search`}),(0,t.createElementVNode)(`input`,{ref_key:`dropdownFilterRef`,ref:s,placeholder:e.dropdownFilterPlaceholder,type:`text`,onInput:f},null,40,VL)])):(0,t.createCommentVNode)(``,!0),e.values.length?((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,HL,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.values,({value:e,label:n},r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:r},[(0,t.createElementVNode)(`label`,{class:`dropdown__item`,for:e},[(0,t.createElementVNode)(`input`,{id:e,checked:m(e),type:c.value,value:e,onChange:t=>d({value:e,label:n})},null,40,WL),m(e)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:`dropdown__icon`,type:`check`})):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(n),1)],8,UL)]))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,GL,(0,t.toDisplayString)(e.dropdownEmptyViewPlaceholder),1))])],512)):(0,t.createCommentVNode)(``,!0)]),_:1})])),[[p,u]])}}}),qL={class:`cpStepper`},JL={class:`cpStepper__wrapper`},YL=[`aria-label`,`disabled`,`onClick`],XL={class:`cpStepper__stepNumber`},ZL={class:`cpStepper__stepTitle`},QL=(0,t.defineComponent)({__name:`CpStepper`,props:{activeStepId:{default:void 0},reachedStepIndex:{default:0},steps:{}},emits:[`select`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>r.steps.findIndex(e=>e.id===r.activeStepId)),o=e=>a.value>-1&&e<a.value,s=(e,t)=>({"cpStepper__step--isActive":e.id===r.activeStepId,"cpStepper__step--isCompleted":o(t)}),c=(0,t.computed)(()=>r.steps.map((e,t)=>({className:s(e,t),id:e.id,isCompleted:o(t),isDisabled:t>r.reachedStepIndex,isNotLast:t<r.steps.length-1,label:e.label,number:t+1}))),l=e=>i(`select`,e);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qL,[(0,t.createElementVNode)(`div`,JL,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`cpStepper__stepWrapper`},[(0,t.createElementVNode)(`button`,{"aria-label":e.label,class:(0,t.normalizeClass)([`cpStepper__step`,e.className]),disabled:e.isDisabled,type:`button`,onClick:t=>l(e.id)},[(0,t.createElementVNode)(`span`,XL,[e.isCompleted?((0,t.openBlock)(),(0,t.createBlock)(J,{key:0,size:`12`,type:`check`})):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.number),1)],64))]),(0,t.createElementVNode)(`span`,ZL,(0,t.toDisplayString)(e.label),1)],10,YL),e.isNotLast?((0,t.openBlock)(),(0,t.createBlock)(J,{key:0,class:`cpStepper__chevron`,size:`16`,type:`chevron-right`})):(0,t.createCommentVNode)(``,!0)]))),128))])]))}});function $L(e,t,n){if(n<1){let r=t*Math.sqrt(1-n*n);return 1-Math.exp(-n*t*e)*(Math.cos(r*e)+n*t/r*Math.sin(r*e))}let r=Math.sqrt(n*n-1),i=-t*(n+r),a=-t*(n-r),o=-i/(a-i);return 1-(1-o)*Math.exp(i*e)-o*Math.exp(a*e)}function eR(e,t,n){let r=0;for(let i=0;i<10;i+=.001)if(Math.abs($L(i,e,t)-1)>n)r=0;else if(r+=.001,r>.1)return Math.ceil((i-r+.001)*1e3);return 1e4}var tR=new Map;function nR(e){let{stiffness:t=100,damping:n=10,mass:r=1,precision:i=.001}=e??{},a=`${t}:${n}:${r}:${i}`,o=tR.get(a);if(o)return o;let s=Math.sqrt(t/r),c=n/(2*Math.sqrt(t*r)),l=eR(s,c,i),u=Math.min(100,Math.max(32,Math.round(l/15))),d=[];for(let e=0;e<u;e++){let t=e/(u-1)*(l/1e3),n=e===u-1?1:$L(t,s,c);d.push(Math.round(n*1e4)/1e4+``)}for(;d.length>2&&d[d.length-2]===`1`;)d.splice(d.length-2,1);let f={easing:`linear(${d.join(`, `)})`,duration:l};return tR.set(a,f),f}function rR(){let e=new Set;return{reserve(t){e.add(t)},has(t){return e.has(t)},take(t){if(!e.has(t))return e.add(t),t;let n=1;for(;e.has(`${t}~${n}`);)n++;let r=`${t}~${n}`;return e.add(r),r}}}function iR(e,t){let n=e.includes(`
|
|
1835
1835
|
`),r=e.includes(` `)||n,i=rR();if(n){let n=e.split(`
|
|
1836
1836
|
`),r=[],a=0;return n.forEach((e,n)=>{n>0&&(r.push({id:i.take(`newline-${a}`),string:`
|
|
1837
1837
|
`}),a+=1),e.length>0&&r.push(...aR(e,t,!0,a,i)),a+=e.length}),r}return aR(e,t,r,0,i)}function aR(e,t,n,r,i){return typeof Intl.Segmenter<`u`?oR(new Intl.Segmenter(t,{granularity:n?`word`:`grapheme`}).segment(e)[Symbol.iterator](),r,i):cR(e,n,r,i)}function oR(e,t,n){let r=[];for(let i of Array.from(e)){let e=t+i.index;i.segment===` `?r.push({id:n.take(`space-${e}`),string:`\xA0`}):r.push({id:sR(i.segment,e,n),string:i.segment})}return r}function sR(e,t,n){return n.has(e)?n.take(`${e}-${t}`):n.take(e)}function cR(e,t,n,r){let i=t?e.split(` `):e.split(``),a=[],o=n;return i.forEach((e,n)=>{t&&n>0&&(a.push({id:r.take(`space-${o}`),string:`\xA0`}),o+=1),a.push({id:sR(e,o,r),string:e}),o+=e.length}),a}var lR=`torph-root`,uR=`torph-item`,dR=`torph-id`,fR=`torph-exiting`,pR=`torph-debug`,mR=`empty`;function hR(e,t){return Math.min(e*t,150)}function gR(e){let t=getComputedStyle(e).transform;if(!t||t===`none`)return{tx:0,ty:0};let n=t.match(/matrix\(([^)]+)\)/);if(!n)return{tx:0,ty:0};let r=n[1].split(`,`).map(Number);return{tx:r[4]||0,ty:r[5]||0}}function _R(e){let{tx:t,ty:n}=gR(e),r=Number(getComputedStyle(e).opacity)||1;return e.getAnimations().forEach(e=>e.cancel()),{tx:t,ty:n,opacity:r}}function vR(e,t){let{dx:n,dy:r,duration:i,ease:a,scale:o}=t;e.animate({transform:o?`translate(${n}px, ${r}px) scale(0.95)`:`translate(${n}px, ${r}px)`,offset:1},{duration:i,easing:a,fill:`both`});let s=e.animate({opacity:0,offset:1},{duration:hR(i,.25),easing:`linear`,fill:`both`});s.onfinish=()=>e.remove()}function yR(e,t){let{deltaX:n,deltaY:r,isNew:i,duration:a,ease:o}=t,s=_R(e),c=n+s.tx,l=r+s.ty,u=i&&s.opacity>=1?0:s.opacity;e.animate([{transform:`translate(${c}px, ${l}px) scale(${i?.95:1})`},{transform:`none`}],{duration:a,easing:o,fill:`both`}),u<1&&e.animate([{opacity:u},{opacity:1}],{duration:hR(a,i?.5:.25),delay:i?hR(a,.25):0,easing:`linear`,fill:`both`})}var bR=new WeakMap;function xR(e){e.style.width=`auto`,e.style.height=`auto`,e.style.transitionProperty=``}function SR(e){let t=bR.get(e);t&&(bR.delete(e),t.stop(),t.onCancel?.())}function CR(e){let t=bR.get(e);t&&(bR.delete(e),t.stop()),xR(e)}function wR(e,t,n,r,i,a,o){if(SR(e),t===0||n===0){xR(e),o?.();return}e.style.transitionProperty=`none`,e.style.width=`auto`,e.style.height=`auto`,e.offsetWidth;let s=e.getBoundingClientRect(),c=s.width,l=s.height,u=e.animate([{width:`${t}px`,height:`${n}px`},{width:`${c}px`,height:`${l}px`}],{duration:r,easing:i,fill:`both`});u.onfinish=()=>{bR.delete(e),u.cancel(),xR(e),a?.()},bR.set(e,{stop:()=>u.cancel(),onCancel:o})}function TR(e,t,n,r,i,a){SR(e),e.style.transitionProperty=`none`,e.style.width=`${t}px`,e.style.height=`${n}px`;let o=setTimeout(()=>{bR.delete(e),xR(e),i?.()},r);bR.set(e,{stop:()=>clearTimeout(o),onCancel:a})}function ER(e){let t=Array.from(e.children),n={},r=e.getBoundingClientRect();return t.forEach((e,t)=>{if(e.hasAttribute(fR)||e.tagName===`BR`)return;let i=e.getAttribute(dR)||`child-${t}`,a=e.getBoundingClientRect(),{tx:o,ty:s}=gR(e);n[i]={x:a.left-r.left-o,y:a.top-r.top-s}}),n}function DR(e,t,n){let r=e[n],i=t[n];return!r||!i?{dx:0,dy:0}:{dx:r.x-i.x,dy:r.y-i.y}}function OR(e,t,n,r=`backward-first`){let[i,a]=r===`backward-first`?[`backward`,`forward`]:[`forward`,`backward`],o=r=>{if(r===`backward`){for(let r=e-1;r>=0;r--)if(n.has(t[r]))return t[r]}else for(let r=e+1;r<t.length;r++)if(n.has(t[r]))return t[r];return null};return o(i)??o(a)}function kR(e,t,n,r){let i=new Set(n.filter((n,i)=>r.has(n)&&!t.has(e[i]))),a=new Map;for(let r=0;r<e.length;r++){let o=e[r];t.has(o)&&a.set(o,OR(r,n,i,`forward-first`))}return a}function AR(e,t){let n=e.getBoundingClientRect(),r=new Map;for(let e of t){if(e.tagName===`BR`)continue;let t=e.getBoundingClientRect(),i=Number(getComputedStyle(e).opacity)||1;e.getAnimations().forEach(e=>e.cancel()),r.set(e,{left:t.left-n.left,top:t.top-n.top,width:t.width,height:t.height,opacity:i})}for(let e=t.length-1;e>=0;e--)t[e].tagName===`BR`&&(t[e].remove(),t.splice(e,1));t.forEach(e=>{let t=r.get(e);e.setAttribute(fR,``),e.style.position=`absolute`,e.style.pointerEvents=`none`,e.style.left=`${t.left}px`,e.style.top=`${t.top}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.style.opacity=String(t.opacity)})}function jR(e,t){if(t.size===0)return;let n=Array.from(e.children),r=new Set;for(let e of n){if(e.hasAttribute(fR))continue;let n=e.getAttribute(dR);if(!n||r.has(n))continue;let i=t.get(n);if(i){r.add(n);for(let t of i){let n=document.createElement(`span`);n.setAttribute(uR,``),n.setAttribute(dR,t.id),n.textContent=t.string,e.before(n)}e.remove()}}}function MR(e,t,n,r){let i=new Map;t.forEach(e=>{let t=e.getAttribute(dR);n.has(t)&&!e.hasAttribute(fR)&&(i.set(t,e),e.remove())}),Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()}),r.forEach(t=>{let n=i.get(t.id);if(n&&i.delete(t.id),t.string===`
|