PageSourceSearch

https://cityofdreamsmacau.com/_nuxt/CuYO22jr.js

js cityofdreamsmacau.com collected 2026-10-03 21:25:55 UTC 3,202 bytes, 1 lines download raw bytes

1import{aS as G,cm as b,q as B,P as y,dd as E,cd as P,bE as w,bF as A,a1 as k,Z as F,bw as x,ci as M,de as U,A as $,aP as S,G as h}from"./ByjodPhJ.js";import{d as q}from"./BTqXoPxJ.js";const W=S({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Z=S({value:null,disabled:Boolean,selectedClass:String},"group-item");function z(s,o,r=!0){const n=b("useGroupItem");if(!n)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const t=P();w(Symbol.for(`${o.description}:id`),t);const i=A(o,null);if(!i){if(!r)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${o.description}`)}const m=x(()=>s.value),v=h(()=>!!(i.disabled.value||s.disabled));function g(){i?.register({id:t,value:m,disabled:v},n)}function I(){i?.unregister(t)}g(),y(()=>I());const f=h(()=>i.isSelected(t)),p=h(()=>i.items.value[0].id===t),e=h(()=>i.items.value[i.items.value.length-1].id===t),u=h(()=>f.value&&[i.selectedClass.value,s.selectedClass]);return k(f,d=>{n.emit("group:selected",{value:d})},{flush:"sync"}),{id:t,isSelected:f,isFirst:p,isLast:e,toggle:()=>i.select(t,!f.value),select:d=>i.select(t,d),selectedClass:u,value:m,disabled:v,group:i,register:g,unregister:I}}function D(s,o){let r=!1;const n=F([]),t=G(s,"modelValue",[],e=>e===void 0?[]:V(n,e===null?[null]:M(e)),e=>{const u=N(n,e);return s.multiple?u:u[0]}),i=b("useGroup");function m(e,u){const d=e,l=Symbol.for(`${o.description}:id`),c=U(l,i?.vnode).indexOf(u);$(d.value)===void 0&&(d.value=c,d.useIndexAsValue=!0),c>-1?n.splice(c,0,d):n.push(d)}function v(e){if(r)return;g();const u=n.findIndex(d=>d.id===e);n.splice(u,1)}function g(){const e=n.find(u=>!u.disabled);e&&s.mandatory==="force"&&!t.value.length&&(t.value=[e.id])}B(()=>{g()}),y(()=>{r=!0}),E(()=>{for(let e=0;e<n.length;e++)n[e].useIndexAsValue&&(n[e].value=e)});function I(e,u){const d=n.find(l=>l.id===e);if(!(u&&d?.disabled))if(s.multiple){const l=t.value.slice(),a=l.findIndex(C=>C===e),c=~a;if(u=u??!c,c&&s.mandatory&&l.length<=1||!c&&s.max!=null&&l.length+1>s.max)return;a<0&&u?l.push(e):a>=0&&!u&&l.splice(a,1),t.value=l}else{const l=t.value.includes(e);if(s.mandatory&&l||!l&&!u)return;t.value=u??!l?[e]:[]}}function f(e){if(s.multiple,t.value.length){const u=t.value[0],d=n.findIndex(c=>c.id===u);let l=(d+e)%n.length,a=n[l];for(;a.disabled&&l!==d;)l=(l+e)%n.length,a=n[l];if(a.disabled)return;t.value=[n[l].id]}else{const u=n.find(d=>!d.disabled);u&&(t.value=[u.id])}}const p={register:m,unregister:v,selected:t,select:I,disabled:x(()=>s.disabled),prev:()=>f(n.length-1),next:()=>f(1),isSelected:e=>t.value.includes(e),selectedClass:x(()=>s.selectedClass),items:x(()=>n),getItemIndex:e=>L(n,e)};return w(o,p),p}function L(s,o){const r=V(s,[o]);return r.length?s.findIndex(n=>n.id===r[0]):-1}function V(s,o){const r=[];return o.forEach(n=>{const t=s.find(m=>q(n,m.value)),i=s[n];t?.value!==void 0?r.push(t.id):i?.useIndexAsValue&&r.push(i.id)}),r}function N(s,o){const r=[];return o.forEach(n=>{const t=s.findIndex(i=>i.id===n);if(~t){const i=s[t];r.push(i.value!==void 0?i.value:t)}}),r}export{Z as a,z as b,W as m,D as u};

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.