PageSourceSearch

https://www.we-are.travel/_nuxt/AP6gpkVm.js

js we-are.travel collected 2026-10-04 09:32:39 UTC 5,726 bytes, 46 lines download raw bytes

1import{cM as g,c4 as v,c$ as S,d5 as p,dE as d}from"./Le86XqBW.js";import O from"./BdX2IFBL.js";import{s as B}from"./BepyB7a4.js";import{M as L,U as c,G as b,N as w,aa as V,a4 as A,am as K,a5 as T,a0 as E,$ as I,X as y,V as k}from"./D8NHD-St.js";var D=`
2    .p-selectbutton {
3        display: inline-flex;
4        user-select: none;
5        vertical-align: bottom;
6        outline-color: transparent;
7        border-radius: dt('selectbutton.border.radius');
8    }
9
10    .p-selectbutton .p-togglebutton {
11        border-radius: 0;
12        border-width: 1px 1px 1px 0;
13    }
14
15    .p-selectbutton .p-togglebutton:focus-visible {
16        position: relative;
17        z-index: 1;
18    }
19
20    .p-selectbutton .p-togglebutton:first-child {
21        border-inline-start-width: 1px;
22        border-start-start-radius: dt('selectbutton.border.radius');
23        border-end-start-radius: dt('selectbutton.border.radius');
24    }
25
26    .p-selectbutton .p-togglebutton:last-child {
27        border-start-end-radius: dt('selectbutton.border.radius');
28        border-end-end-radius: dt('selectbutton.border.radius');
29    }
30
31    .p-selectbutton.p-invalid {
32        outline: 1px solid dt('selectbutton.invalid.border.color');
33        outline-offset: 0;
34    }
35
36    .p-selectbutton-fluid {
37        width: 100%;
38    }
39    
40    .p-selectbutton-fluid .p-togglebutton {
41        flex: 1 1 0;
42    }
43`,R={root:function(n){var t=n.props,l=n.instance;return["p-selectbutton p-component",{"p-invalid":l.$invalid,"p-selectbutton-fluid":t.fluid}]}},$=g.extend({name:"selectbutton",style:D,classes:R}),C={name:"BaseSelectButton",extends:B,props:{options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,allowEmpty:{type:Boolean,default:!0},dataKey:null,ariaLabelledby:{type:String,default:null},size:{type:String,default:null},fluid:{type:Boolean,default:null}},style:$,provide:function(){return{$pcSelectButton:this,$parentInstance:this}}};function x(e,n){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=h(e))||n){t&&(e=t);var l=0,s=function(){};return{s,n:function(){return l>=e.length?{done:!0}:{done:!1,value:e[l++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
44In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,i=!0,r=!1;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return i=u.done,u},e:function(u){r=!0,a=u},f:function(){try{i||t.return==null||t.return()}finally{if(r)throw a}}}}function _(e){return P(e)||z(e)||h(e)||q()}function q(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(e,n){if(e){if(typeof e=="string")return f(e,n);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,n):void 0}}function z(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function P(e){if(Array.isArray(e))return f(e)}function f(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,l=Array(n);t<n;t++)l[t]=e[t];return l}var j={name:"SelectButton",extends:C,inheritAttrs:!1,emits:["change"],methods:{getOptionLabel:function(n){return this.optionLabel?d(n,this.optionLabel):n},getOptionValue:function(n){return this.optionValue?d(n,this.optionValue):n},getOptionRenderKey:function(n){return this.dataKey?d(n,this.dataKey):this.getOptionLabel(n)},isOptionDisabled:function(n){return this.optionDisabled?d(n,this.optionDisabled):!1},isOptionReadonly:function(n){if(this.allowEmpty)return!1;var t=this.isSelected(n);return this.multiple?t&&this.d_value.length===1:t},onOptionSelect:function(n,t,l){var s=this;if(!(this.disabled||this.isOptionDisabled(t)||this.isOptionReadonly(t))){var a=this.isSelected(t),i=this.getOptionValue(t),r;if(this.multiple)if(a){if(r=this.d_value.filter(function(o){return!p(o,i,s.equalityKey)}),!this.allowEmpty&&r.length===0)return}else r=this.d_value?[].concat(_(this.d_value),[i]):[i];else{if(a&&!this.allowEmpty)return;r=a?null:i}this.writeValue(r,n),this.$emit("change",{originalEvent:n,value:r})}},isSelected:function(n){var t=!1,l=this.getOptionValue(n);if(this.multiple){if(this.d_value){var s=x(this.d_value),a;try{for(s.s();!(a=s.n()).done;){var i=a.value;if(p(i,l,this.equalityKey)){t=!0;break}}}catch(r){s.e(r)}finally{s.f()}}}else t=p(this.d_value,l,this.equalityKey);return t}}
45,computed:{equalityKey:function(){return this.optionValue?null:this.dataKey},dataP:function(){return S({invalid:this.$invalid})}},directives:{ripple:v},components:{ToggleButton:O}},M=["aria-labelledby","data-p"];function F(e,n,t,l,s,a){var i=L("ToggleButton");return c(),b("div",y({class:e.cx("root"),role:"group","aria-labelledby":e.ariaLabelledby},e.ptmi("root"),{"data-p":a.dataP}),[(c(!0),b(w,null,V(e.options,function(r,o){return c(),A(i,{key:a.getOptionRenderKey(r),modelValue:a.isSelected(r),onLabel:a.getOptionLabel(r),offLabel:a.getOptionLabel(r),disabled:e.disabled||a.isOptionDisabled(r),unstyled:e.unstyled,size:e.size,readonly:a.isOptionReadonly(r),onChange:function(m){return a.onOptionSelect(m,r,o)},pt:e.ptm("pcToggleButton")},K({_:2},[e.$slots.option?{name:"default",fn:T(function(){return[E(e.$slots,"option",{option:r,index:o},function(){return[I("span",y({ref_for:!0},e.ptm("pcToggleButton").label),k(a.getOptionLabel(r)),17)]})]}),key:"0"}:void 0]),1032,["modelValue","onLabel","offLabel","disabled","unstyled","size","readonly","onChange","pt"])}),128))],16,M)}j.render=F;export{j as default};
46//# debugId=a0f239e9-107b-4992-aa0d-917f56d683a9

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.