1var __defProp = Object.defineProperty; 2var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; 3var __publicField = (obj, key, value) => { 4 __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); 5 return value; 6}; 7var _a; 8(function polyfill() { 9 const relList = document.createElement("link").relList; 10 if (relList && relList.supports && relList.supports("modulepreload")) { 11 return; 12 } 13 for (const link of document.querySelectorAll('link[rel="modulepreload"]')) { 14 processPreload(link); 15 } 16 new MutationObserver((mutations) => { 17 for (const mutation of mutations) { 18 if (mutation.type !== "childList") { 19 continue; 20 } 21 for (const node of mutation.addedNodes) { 22 if (node.tagName === "LINK" && node.rel === "modulepreload") 23 processPreload(node); 24 } 25 } 26 }).observe(document, { childList: true, subtree: true }); 27 function getFetchOpts(link) { 28 const fetchOpts = {}; 29 if (link.integrity) 30 fetchOpts.integrity = link.integrity; 31 if (link.referrerPolicy) 32 fetchOpts.referrerPolicy = link.referrerPolicy; 33 if (link.crossOrigin === "use-credentials") 34 fetchOpts.credentials = "include"; 35 else if (link.crossOrigin === "anonymous") 36 fetchOpts.credentials = "omit"; 37 else 38 fetchOpts.credentials = "same-origin"; 39 return fetchOpts; 40 } 41 function processPreload(link) { 42 if (link.ep) 43 return; 44 link.ep = true; 45 const fetchOpts = getFetchOpts(link); 46 fetch(link.href, fetchOpts); 47 } 48})(); 49/** 50* @vue/shared v3.5.13 51* (c) 2018-present Yuxi (Evan) You and Vue contributors 52* @license MIT
vendor: 4,103 bytes, lines 53-171
53**/ 54/*! #__NO_SIDE_EFFECTS__ */ 55// @__NO_SIDE_EFFECTS__ 56function makeMap(str) { 57 const map = /* @__PURE__ */ Object.create(null); 58 for (const key of str.split(",")) 59 map[key] = 1; 60 return (val) => val in map; 61} 62const EMPTY_OBJ = {}; 63const EMPTY_ARR = []; 64const NOOP = () => { 65}; 66const NO = () => false; 67const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter 68(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97); 69const isModelListener = (key) => key.startsWith("onUpdate:"); 70const extend = Object.assign; 71const remove = (arr, el) => { 72 const i = arr.indexOf(el); 73 if (i > -1) { 74 arr.splice(i, 1); 75 } 76}; 77const hasOwnProperty$1 = Object.prototype.hasOwnProperty; 78const hasOwn = (val, key) => hasOwnProperty$1.call(val, key); 79const isArray = Array.isArray; 80const isMap = (val) => toTypeString(val) === "[object Map]"; 81const isSet = (val) => toTypeString(val) === "[object Set]"; 82const isDate = (val) => toTypeString(val) === "[object Date]"; 83const isFunction = (val) => typeof val === "function"; 84const isString = (val) => typeof val === "string"; 85const isSymbol = (val) => typeof val === "symbol"; 86const isObject$1 = (val) => val !== null && typeof val === "object"; 87const isPromise = (val) => { 88 return (isObject$1(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch); 89}; 90const objectToString = Object.prototype.toString; 91const toTypeString = (value) => objectToString.call(value); 92const toRawType = (value) => { 93 return toTypeString(value).slice(8, -1); 94}; 95const isPlainObject$1 = (val) => toTypeString(val) === "[object Object]"; 96const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key; 97const isReservedProp = /* @__PURE__ */ makeMap( 98 // the leading comma is intentional so empty string "" is also included 99 ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" 100); 101const cacheStringFunction = (fn) => { 102 const cache = /* @__PURE__ */ Object.create(null); 103 return (str) => { 104 const hit = cache[str]; 105 return hit || (cache[str] = fn(str)); 106 }; 107}; 108const camelizeRE = /-(\w)/g; 109const camelize = cacheStringFunction( 110 (str) => { 111 return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : ""); 112 } 113); 114const hyphenateRE = /\B([A-Z])/g; 115const hyphenate = cacheStringFunction( 116 (str) => str.replace(hyphenateRE, "-$1").toLowerCase() 117); 118const capitalize = cacheStringFunction((str) => { 119 return str.charAt(0).toUpperCase() + str.slice(1); 120}); 121const toHandlerKey = cacheStringFunction( 122 (str) => { 123 const s = str ? `on${capitalize(str)}` : ``; 124 return s; 125 } 126); 127const hasChanged = (value, oldValue) => !Object.is(value, oldValue); 128const invokeArrayFns = (fns, ...arg) => { 129 for (let i = 0; i < fns.length; i++) { 130 fns[i](...arg); 131 } 132}; 133const def = (obj, key, value, writable = false) => { 134 Object.defineProperty(obj, key, { 135 configurable: true, 136 enumerable: false, 137 writable, 138 value 139 }); 140}; 141const looseToNumber = (val) => { 142 const n = parseFloat(val); 143 return isNaN(n) ? val : n; 144}; 145let _globalThis; 146const getGlobalThis = () => { 147 return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {}); 148}; 149function normalizeStyle(value) { 150 if (isArray(value)) { 151 const res = {}; 152 for (let i = 0; i < value.length; i++) { 153 const item = value[i]; 154 const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item); 155 if (normalized) { 156 for (const key in normalized) { 157 res[key] = normalized[key]; 158 } 159 } 160 } 161 return res; 162 } else if (isString(value) || isObject$1(value)) { 163 return value; 164 } 165} 166const listDelimiterRE = /;(?![^(]*\))/g; 167const propertyDelimiterRE = /:([^]+)/; 168const styleCommentRE = /\/\*[^]*?\*\//g; 169function parseStringStyle(cssText) { 170 const ret = {}; 171 cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEac
vendor: 3,638 bytes, lines 171-296
171h((item) => { 172 if (item) { 173 const tmp = item.split(propertyDelimiterRE); 174 tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim()); 175 } 176 }); 177 return ret; 178} 179function normalizeClass(value) { 180 let res = ""; 181 if (isString(value)) { 182 res = value; 183 } else if (isArray(value)) { 184 for (let i = 0; i < value.length; i++) { 185 const normalized = normalizeClass(value[i]); 186 if (normalized) { 187 res += normalized + " "; 188 } 189 } 190 } else if (isObject$1(value)) { 191 for (const name in value) { 192 if (value[name]) { 193 res += name + " "; 194 } 195 } 196 } 197 return res.trim(); 198} 199const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`; 200const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs); 201function includeBooleanAttr(value) { 202 return !!value || value === ""; 203} 204function looseCompareArrays(a, b) { 205 if (a.length !== b.length) 206 return false; 207 let equal = true; 208 for (let i = 0; equal && i < a.length; i++) { 209 equal = looseEqual(a[i], b[i]); 210 } 211 return equal; 212} 213function looseEqual(a, b) { 214 if (a === b) 215 return true; 216 let aValidType = isDate(a); 217 let bValidType = isDate(b); 218 if (aValidType || bValidType) { 219 return aValidType && bValidType ? a.getTime() === b.getTime() : false; 220 } 221 aValidType = isSymbol(a); 222 bValidType = isSymbol(b); 223 if (aValidType || bValidType) { 224 return a === b; 225 } 226 aValidType = isArray(a); 227 bValidType = isArray(b); 228 if (aValidType || bValidType) { 229 return aValidType && bValidType ? looseCompareArrays(a, b) : false; 230 } 231 aValidType = isObject$1(a); 232 bValidType = isObject$1(b); 233 if (aValidType || bValidType) { 234 if (!aValidType || !bValidType) { 235 return false; 236 } 237 const aKeysCount = Object.keys(a).length; 238 const bKeysCount = Object.keys(b).length; 239 if (aKeysCount !== bKeysCount) { 240 return false; 241 } 242 for (const key in a) { 243 const aHasKey = a.hasOwnProperty(key); 244 const bHasKey = b.hasOwnProperty(key); 245 if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) { 246 return false; 247 } 248 } 249 } 250 return String(a) === String(b); 251} 252function looseIndexOf(arr, val) { 253 return arr.findIndex((item) => looseEqual(item, val)); 254} 255const isRef$1 = (val) => { 256 return !!(val && val["__v_isRef"] === true); 257}; 258const toDisplayString = (val) => { 259 return isString(val) ? val : val == null ? "" : isArray(val) || isObject$1(val) && (val.toString === objectToString || !isFunction(val.toString)) ? isRef$1(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val); 260}; 261const replacer = (_key, val) => { 262 if (isRef$1(val)) { 263 return replacer(_key, val.value); 264 } else if (isMap(val)) { 265 return { 266 [`Map(${val.size})`]: [...val.entries()].reduce( 267 (entries, [key, val2], i) => { 268 entries[stringifySymbol(key, i) + " =>"] = val2; 269 return entries; 270 }, 271 {} 272 ) 273 }; 274 } else if (isSet(val)) { 275 return { 276 [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v)) 277 }; 278 } else if (isSymbol(val)) { 279 return stringifySymbol(val); 280 } else if (isObject$1(val) && !isArray(val) && !isPlainObject$1(val)) { 281 return String(val); 282 } 283 return val; 284}; 285const stringifySymbol = (v, i = "") => { 286 var _a2; 287 return ( 288 // Symbol.description in es2019+ so we need to cast here to pass 289 // the lib: es2016 check 290 isSymbol(v) ? `Symbol(${(_a2 = v.description) != null ? _a2 : i})` : v 291 ); 292}; 293/** 294* @vue/reactivity v3.5.13 295* (c) 2018-present Yuxi (Evan) You and Vue contributors 296* @license MIT
297**/ 298let activeEffectScope; 299class EffectScope { 300 constructor(detached = false) { 301 this.detached = detached; 302 this._active = true; 303 this.effects = []; 304 this.cleanups = []; 305 this._isPaused = false; 306 this.parent = activeEffectScope; 307 if (!detached && activeEffectScope) { 308 this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push( 309 this 310 ) - 1; 311 } 312 } 313 get active() { 314 return this._active; 315 } 316 pause() { 317 if (this._active) { 318 this._isPaused = true; 319 let i, l; 320 if (this.scopes) { 321 for (i = 0, l = this.scopes.length; i < l; i++) { 322 this.scopes[i].pause(); 323 } 324 } 325 for (i = 0, l = this.effects.length; i < l; i++) { 326 this.effects[i].pause(); 327 } 328 } 329 } 330 /** 331 * Resumes the effect scope, including all child scopes and effects. 332 */ 333 resume() { 334 if (this._active) { 335 if (this._isPaused) { 336 this._isPaused = false; 337 let i, l; 338 if (this.scopes) { 339 for (i = 0, l = this.scopes.length; i < l; i++) { 340 this.scopes[i].resume(); 341 } 342 } 343 for (i = 0, l = this.effects.length; i < l; i++) { 344 this.effects[i].resume(); 345 } 346 } 347 } 348 } 349 run(fn) { 350 if (this._active) { 351 const currentEffectScope = activeEffectScope; 352 try { 353 activeEffectScope = this; 354 return fn(); 355 } finally { 356 activeEffectScope = currentEffectScope; 357 } 358 } 359 } 360 /** 361 * This should only be called on non-detached scopes 362 * @internal 363 */ 364 on() { 365 activeEffectScope = this; 366 } 367 /** 368 * This should only be called on non-detached scopes 369 * @internal 370 */ 371 off() { 372 activeEffectScope = this.parent; 373 } 374 stop(fromParent) { 375 if (this._active) { 376 this._active = false; 377 let i, l; 378 for (i = 0, l = this.effects.length; i < l; i++) { 379 this.effects[i].stop(); 380 } 381 this.effects.length = 0; 382 for (i = 0, l = this.cleanups.length; i < l; i++) { 383 this.cleanups[i](); 384 } 385 this.cleanups.length = 0; 386 if (this.scopes) { 387 for (i = 0, l = this.scopes.length; i < l; i++) { 388 this.scopes[i].stop(true); 389 } 390 this.scopes.length = 0; 391 } 392 if (!this.detached && this.parent && !fromParent) { 393 const last = this.parent.scopes.pop(); 394 if (last && last !== this) { 395 this.parent.scopes[this.index] = last; 396 last.index = this.index; 397 } 398 } 399 this.parent = void 0; 400 } 401 } 402} 403function effectScope(detached) { 404 return new EffectScope(detached); 405} 406function getCurrentScope() { 407 return activeEffectScope; 408} 409function onScopeDispose(fn, failSilently = false) { 410 if (activeEffectScope) { 411 activeEffectScope.cleanups.push(fn); 412 } 413} 414let activeSub; 415const pausedQueueEffects = /* @__PURE__ */ new WeakSet(); 416class ReactiveEffect { 417 constructor(fn) { 418 this.fn = fn; 419 this.deps = void 0; 420 this.depsTail = void 0; 421 this.flags = 1 | 4; 422 this.next = void 0; 423 this.cleanup = void 0; 424 this.scheduler = void 0; 425 if (activeEffectScope && activeEffectScope.active) { 426 activeEffectScope.effects.push(this); 427 } 428 } 429 pause() { 430 this.flags |= 64; 431 } 432 resume() { 433 if (this.flags & 64) { 434 this.flags &= ~64; 435 if (pausedQueueEffects.has(this)) { 436 pausedQueueEffects.delete(this); 437 this.trigger(); 438 } 439 } 440 } 441 /** 442 * @internal 443 */ 444 notify() { 445 if (this.flags & 2 && !(this.flags & 32)) { 446 return; 447 } 448 if (!(this.flags & 8)) { 449 batch(this); 450 } 451 } 452 run() { 453 if (!(this.flags & 1)) { 454 return this.fn(); 455 } 456 this.flags |= 2; 457 cleanupEffect(this); 458 prepareDeps(this); 459 const prevEffect = activeSub; 460 const prevShouldTrack = shouldTrack; 461 activeSub = this; 462 shouldTrack = true; 463 try { 464 return this.fn(); 465 } finally { 466 cleanupDeps(this); 467 activeSub = prevEffect; 468 shouldTrack = prevShouldTrack; 469 this.flags &= ~2; 470 } 471 } 472 stop() { 473 if (this.flags & 1) { 474 for (let link = this.deps; link; link = link.nextDep) { 475 removeSub(link); 476 } 477 this.deps = this.depsTail = void 0; 478 cleanupEffect(this); 479 this.onStop && this.onStop(); 480 this.flags &= ~1; 481 } 482 } 483 trigger() { 484 if (this.flags & 64) {
vendor: 7,523 bytes, lines 485-823
485 pausedQueueEffects.add(this); 486 } else if (this.scheduler) { 487 this.scheduler(); 488 } else { 489 this.runIfDirty(); 490 } 491 } 492 /** 493 * @internal 494 */ 495 runIfDirty() { 496 if (isDirty(this)) { 497 this.run(); 498 } 499 } 500 get dirty() { 501 return isDirty(this); 502 } 503} 504let batchDepth = 0; 505let batchedSub; 506let batchedComputed; 507function batch(sub, isComputed2 = false) { 508 sub.flags |= 8; 509 if (isComputed2) { 510 sub.next = batchedComputed; 511 batchedComputed = sub; 512 return; 513 } 514 sub.next = batchedSub; 515 batchedSub = sub; 516} 517function startBatch() { 518 batchDepth++; 519} 520function endBatch() { 521 if (--batchDepth > 0) { 522 return; 523 } 524 if (batchedComputed) { 525 let e = batchedComputed; 526 batchedComputed = void 0; 527 while (e) { 528 const next = e.next; 529 e.next = void 0; 530 e.flags &= ~8; 531 e = next; 532 } 533 } 534 let error; 535 while (batchedSub) { 536 let e = batchedSub; 537 batchedSub = void 0; 538 while (e) { 539 const next = e.next; 540 e.next = void 0; 541 e.flags &= ~8; 542 if (e.flags & 1) { 543 try { 544 ; 545 e.trigger(); 546 } catch (err) { 547 if (!error) 548 error = err; 549 } 550 } 551 e = next; 552 } 553 } 554 if (error) 555 throw error; 556} 557function prepareDeps(sub) { 558 for (let link = sub.deps; link; link = link.nextDep) { 559 link.version = -1; 560 link.prevActiveLink = link.dep.activeLink; 561 link.dep.activeLink = link; 562 } 563} 564function cleanupDeps(sub) { 565 let head; 566 let tail = sub.depsTail; 567 let link = tail; 568 while (link) { 569 const prev = link.prevDep; 570 if (link.version === -1) { 571 if (link === tail) 572 tail = prev; 573 removeSub(link); 574 removeDep(link); 575 } else { 576 head = link; 577 } 578 link.dep.activeLink = link.prevActiveLink; 579 link.prevActiveLink = void 0; 580 link = prev; 581 } 582 sub.deps = head; 583 sub.depsTail = tail; 584} 585function isDirty(sub) { 586 for (let link = sub.deps; link; link = link.nextDep) { 587 if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) { 588 return true; 589 } 590 } 591 if (sub._dirty) { 592 return true; 593 } 594 return false; 595} 596function refreshComputed(computed2) { 597 if (computed2.flags & 4 && !(computed2.flags & 16)) { 598 return; 599 } 600 computed2.flags &= ~16; 601 if (computed2.globalVersion === globalVersion) { 602 return; 603 } 604 computed2.globalVersion = globalVersion; 605 const dep = computed2.dep; 606 computed2.flags |= 2; 607 if (dep.version > 0 && !computed2.isSSR && computed2.deps && !isDirty(computed2)) { 608 computed2.flags &= ~2; 609 return; 610 } 611 const prevSub = activeSub; 612 const prevShouldTrack = shouldTrack; 613 activeSub = computed2; 614 shouldTrack = true; 615 try { 616 prepareDeps(computed2); 617 const value = computed2.fn(computed2._value); 618 if (dep.version === 0 || hasChanged(value, computed2._value)) { 619 computed2._value = value; 620 dep.version++; 621 } 622 } catch (err) { 623 dep.version++; 624 throw err; 625 } finally { 626 activeSub = prevSub; 627 shouldTrack = prevShouldTrack; 628 cleanupDeps(computed2); 629 computed2.flags &= ~2; 630 } 631} 632function removeSub(link, soft = false) { 633 const { dep, prevSub, nextSub } = link; 634 if (prevSub) { 635 prevSub.nextSub = nextSub; 636 link.prevSub = void 0; 637 } 638 if (nextSub) { 639 nextSub.prevSub = prevSub; 640 link.nextSub = void 0; 641 } 642 if (dep.subs === link) { 643 dep.subs = prevSub; 644 if (!prevSub && dep.computed) { 645 dep.computed.flags &= ~4; 646 for (let l = dep.computed.deps; l; l = l.nextDep) { 647 removeSub(l, true); 648 } 649 } 650 } 651 if (!soft && !--dep.sc && dep.map) { 652 dep.map.delete(dep.key); 653 } 654} 655function removeDep(link) { 656 const { prevDep, nextDep } = link; 657 if (prevDep) { 658 prevDep.nextDep = nextDep; 659 link.prevDep = void 0; 660 } 661 if (nextDep) { 662 nextDep.prevDep = prevDep; 663 link.nextDep = void 0; 664 } 665} 666let shouldTrack = true; 667const trackStack = []; 668function pauseTracking() { 669 trackStack.push(shouldTrack); 670 shouldTrack = false; 671} 672function resetTracking() { 673 const last = trackStack.pop(); 674 shouldTrack = last === void 0 ? true : last; 675} 676function cleanupEffect(e) { 677 const { cleanup } = e; 678 e.cleanup = void 0; 679 if (cleanup) { 680 const prevSub = activeSub; 681 activeSub = void 0; 682 try { 683 cleanup(); 684 } finally { 685 activeSub = prevSub; 686 } 687 } 688} 689let globalVersion = 0; 690class Link { 691 constructor(sub, dep) { 692 this.sub = sub; 693 this.dep = dep; 694 this.version = dep.version; 695 this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0; 696 } 697} 698class Dep { 699 constructor(computed2) { 700 this.computed = computed2; 701 this.version = 0; 702 this.activeLink = void 0; 703 this.subs = void 0; 704 this.map = void 0; 705 this.key = void 0; 706 this.sc = 0; 707 } 708 track(debugInfo) { 709 if (!activeSub || !shouldTrack || activeSub === this.computed) { 710 return; 711 } 712 let link = this.activeLink; 713 if (link === void 0 || link.sub !== activeSub) { 714 link = this.activeLink = new Link(activeSub, this); 715 if (!activeSub.deps) { 716 activeSub.deps = activeSub.depsTail = link; 717 } else { 718 link.prevDep = activeSub.depsTail; 719 activeSub.depsTail.nextDep = link; 720 activeSub.depsTail = link; 721 } 722 addSub(link); 723 } else if (link.version === -1) { 724 link.version = this.version; 725 if (link.nextDep) { 726 const next = link.nextDep; 727 next.prevDep = link.prevDep; 728 if (link.prevDep) { 729 link.prevDep.nextDep = next; 730 } 731 link.prevDep = activeSub.depsTail; 732 link.nextDep = void 0; 733 activeSub.depsTail.nextDep = link; 734 activeSub.depsTail = link; 735 if (activeSub.deps === link) { 736 activeSub.deps = next; 737 } 738 } 739 } 740 return link; 741 } 742 trigger(debugInfo) { 743 this.version++; 744 globalVersion++; 745 this.notify(debugInfo); 746 } 747 notify(debugInfo) { 748 startBatch(); 749 try { 750 if (false) 751 ; 752 for (let link = this.subs; link; link = link.prevSub) { 753 if (link.sub.notify()) { 754 ; 755 link.sub.dep.notify(); 756 } 757 } 758 } finally { 759 endBatch(); 760 } 761 } 762} 763function addSub(link) { 764 link.dep.sc++; 765 if (link.sub.flags & 4) { 766 const computed2 = link.dep.computed; 767 if (computed2 && !link.dep.subs) { 768 computed2.flags |= 4 | 16; 769 for (let l = computed2.deps; l; l = l.nextDep) { 770 addSub(l); 771 } 772 } 773 const currentTail = link.dep.subs; 774 if (currentTail !== link) { 775 link.prevSub = currentTail; 776 if (currentTail) 777 currentTail.nextSub = link; 778 } 779 link.dep.subs = link; 780 } 781} 782const targetMap = /* @__PURE__ */ new WeakMap(); 783const ITERATE_KEY = Symbol( 784 "" 785); 786const MAP_KEY_ITERATE_KEY = Symbol( 787 "" 788); 789const ARRAY_ITERATE_KEY = Symbol( 790 "" 791); 792function track(target, type, key) { 793 if (shouldTrack && activeSub) { 794 let depsMap = targetMap.get(target); 795 if (!depsMap) { 796 targetMap.set(target, depsMap = /* @__PURE__ */ new Map()); 797 } 798 let dep = depsMap.get(key); 799 if (!dep) { 800 depsMap.set(key, dep = new Dep()); 801 dep.map = depsMap; 802 dep.key = key; 803 } 804 { 805 dep.track(); 806 } 807 } 808} 809function trigger(target, type, key, newValue, oldValue, oldTarget) { 810 const depsMap = targetMap.get(target); 811 if (!depsMap) { 812 globalVersion++; 813 return; 814 } 815 const run = (dep) => { 816 if (dep) { 817 { 818 dep.trigger(); 819 } 820 } 821 }; 822 startBatch(); 823 if (type === "clear") {
vendor: 5,212 bytes, lines 824-1005
824 depsMap.forEach(run); 825 } else { 826 const targetIsArray = isArray(target); 827 const isArrayIndex = targetIsArray && isIntegerKey(key); 828 if (targetIsArray && key === "length") { 829 const newLength = Number(newValue); 830 depsMap.forEach((dep, key2) => { 831 if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) { 832 run(dep); 833 } 834 }); 835 } else { 836 if (key !== void 0 || depsMap.has(void 0)) { 837 run(depsMap.get(key)); 838 } 839 if (isArrayIndex) { 840 run(depsMap.get(ARRAY_ITERATE_KEY)); 841 } 842 switch (type) { 843 case "add": 844 if (!targetIsArray) { 845 run(depsMap.get(ITERATE_KEY)); 846 if (isMap(target)) { 847 run(depsMap.get(MAP_KEY_ITERATE_KEY)); 848 } 849 } else if (isArrayIndex) { 850 run(depsMap.get("length")); 851 } 852 break; 853 case "delete": 854 if (!targetIsArray) { 855 run(depsMap.get(ITERATE_KEY)); 856 if (isMap(target)) { 857 run(depsMap.get(MAP_KEY_ITERATE_KEY)); 858 } 859 } 860 break; 861 case "set": 862 if (isMap(target)) { 863 run(depsMap.get(ITERATE_KEY)); 864 } 865 break; 866 } 867 } 868 } 869 endBatch(); 870} 871function getDepFromReactive(object, key) { 872 const depMap = targetMap.get(object); 873 return depMap && depMap.get(key); 874} 875function reactiveReadArray(array) { 876 const raw = toRaw(array); 877 if (raw === array) 878 return raw; 879 track(raw, "iterate", ARRAY_ITERATE_KEY); 880 return isShallow(array) ? raw : raw.map(toReactive); 881} 882function shallowReadArray(arr) { 883 track(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY); 884 return arr; 885} 886const arrayInstrumentations = { 887 __proto__: null, 888 [Symbol.iterator]() { 889 return iterator(this, Symbol.iterator, toReactive); 890 }, 891 concat(...args) { 892 return reactiveReadArray(this).concat( 893 ...args.map((x) => isArray(x) ? reactiveReadArray(x) : x) 894 ); 895 }, 896 entries() { 897 return iterator(this, "entries", (value) => { 898 value[1] = toReactive(value[1]); 899 return value; 900 }); 901 }, 902 every(fn, thisArg) { 903 return apply(this, "every", fn, thisArg, void 0, arguments); 904 }, 905 filter(fn, thisArg) { 906 return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments); 907 }, 908 find(fn, thisArg) { 909 return apply(this, "find", fn, thisArg, toReactive, arguments); 910 }, 911 findIndex(fn, thisArg) { 912 return apply(this, "findIndex", fn, thisArg, void 0, arguments); 913 }, 914 findLast(fn, thisArg) { 915 return apply(this, "findLast", fn, thisArg, toReactive, arguments); 916 }, 917 findLastIndex(fn, thisArg) { 918 return apply(this, "findLastIndex", fn, thisArg, void 0, arguments); 919 }, 920 // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement 921 forEach(fn, thisArg) { 922 return apply(this, "forEach", fn, thisArg, void 0, arguments); 923 }, 924 includes(...args) { 925 return searchProxy(this, "includes", args); 926 }, 927 indexOf(...args) { 928 return searchProxy(this, "indexOf", args); 929 }, 930 join(separator) { 931 return reactiveReadArray(this).join(separator); 932 }, 933 // keys() iterator only reads `length`, no optimisation required 934 lastIndexOf(...args) { 935 return searchProxy(this, "lastIndexOf", args); 936 }, 937 map(fn, thisArg) { 938 return apply(this, "map", fn, thisArg, void 0, arguments); 939 }, 940 pop() { 941 return noTracking(this, "pop"); 942 }, 943 push(...args) { 944 return noTracking(this, "push", args); 945 }, 946 reduce(fn, ...args) { 947 return reduce(this, "reduce", fn, args); 948 }, 949 reduceRight(fn, ...args) { 950 return reduce(this, "reduceRight", fn, args); 951 }, 952 shift() { 953 return noTracking(this, "shift"); 954 }, 955 // slice could use ARRAY_ITERATE but also seems to beg for range tracking 956 some(fn, thisArg) { 957 return apply(this, "some", fn, thisArg, void 0, arguments); 958 }, 959 splice(...args) { 960 return noTracking(this, "splice", args); 961 }, 962 toReversed() { 963 return reactiveReadArray(this).toReversed(); 964 }, 965 toSorted(comparer) { 966 return reactiveReadArray(this).toSorted(comparer); 967 }, 968 toSpliced(...args) { 969 return reactiveReadArray(this).toSpliced(...args); 970 }, 971 unshift(...args) { 972 return noTracking(this, "unshift", args); 973 }, 974 values() { 975 return iterator(this, "values", toReactive); 976 } 977}; 978function iterator(self2, method, wrapValue) { 979 const arr = shallowReadArray(self2); 980 const iter = arr[method](); 981 if (arr !== self2 && !isShallow(self2)) { 982 iter._next = iter.next; 983 iter.next = () => { 984 const result = iter._next(); 985 if (result.value) { 986 result.value = wrapValue(result.value); 987 } 988 return result; 989 }; 990 } 991 return iter; 992} 993const arrayProto = Array.prototype; 994function apply(self2, method, fn, thisArg, wrappedRetFn, args) { 995 const arr = shallowReadArray(self2); 996 const needsWrap = arr !== self2 && !isShallow(self2); 997 const methodFn = arr[method]; 998 if (methodFn !== arrayProto[method]) { 999 const result2 = methodFn.apply(self2, args); 1000 return needsWrap ? toReactive(result2) : result2; 1001 } 1002 let wrappedFn = fn; 1003 if (arr !== self2) { 1004 if (needsWrap) { 1005 wrappedFn = function(item, index) {
vendor: 4,191 bytes, lines 1006-1135
1006 return fn.call(this, toReactive(item), index, self2); 1007 }; 1008 } else if (fn.length > 2) { 1009 wrappedFn = function(item, index) { 1010 return fn.call(this, item, index, self2); 1011 }; 1012 } 1013 } 1014 const result = methodFn.call(arr, wrappedFn, thisArg); 1015 return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result; 1016} 1017function reduce(self2, method, fn, args) { 1018 const arr = shallowReadArray(self2); 1019 let wrappedFn = fn; 1020 if (arr !== self2) { 1021 if (!isShallow(self2)) { 1022 wrappedFn = function(acc, item, index) { 1023 return fn.call(this, acc, toReactive(item), index, self2); 1024 }; 1025 } else if (fn.length > 3) { 1026 wrappedFn = function(acc, item, index) { 1027 return fn.call(this, acc, item, index, self2); 1028 }; 1029 } 1030 } 1031 return arr[method](wrappedFn, ...args); 1032} 1033function searchProxy(self2, method, args) { 1034 const arr = toRaw(self2); 1035 track(arr, "iterate", ARRAY_ITERATE_KEY); 1036 const res = arr[method](...args); 1037 if ((res === -1 || res === false) && isProxy(args[0])) { 1038 args[0] = toRaw(args[0]); 1039 return arr[method](...args); 1040 } 1041 return res; 1042} 1043function noTracking(self2, method, args = []) { 1044 pauseTracking(); 1045 startBatch(); 1046 const res = toRaw(self2)[method].apply(self2, args); 1047 endBatch(); 1048 resetTracking(); 1049 return res; 1050} 1051const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`); 1052const builtInSymbols = new Set( 1053 /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol) 1054); 1055function hasOwnProperty(key) { 1056 if (!isSymbol(key)) 1057 key = String(key); 1058 const obj = toRaw(this); 1059 track(obj, "has", key); 1060 return obj.hasOwnProperty(key); 1061} 1062class BaseReactiveHandler { 1063 constructor(_isReadonly = false, _isShallow = false) { 1064 this._isReadonly = _isReadonly; 1065 this._isShallow = _isShallow; 1066 } 1067 get(target, key, receiver) { 1068 if (key === "__v_skip") 1069 return target["__v_skip"]; 1070 const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow; 1071 if (key === "__v_isReactive") { 1072 return !isReadonly2; 1073 } else if (key === "__v_isReadonly") { 1074 return isReadonly2; 1075 } else if (key === "__v_isShallow") { 1076 return isShallow2; 1077 } else if (key === "__v_raw") { 1078 if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype 1079 // this means the receiver is a user proxy of the reactive proxy 1080 Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) { 1081 return target; 1082 } 1083 return; 1084 } 1085 const targetIsArray = isArray(target); 1086 if (!isReadonly2) { 1087 let fn; 1088 if (targetIsArray && (fn = arrayInstrumentations[key])) { 1089 return fn; 1090 } 1091 if (key === "hasOwnProperty") { 1092 return hasOwnProperty; 1093 } 1094 } 1095 const res = Reflect.get( 1096 target, 1097 key, 1098 // if this is a proxy wrapping a ref, return methods using the raw ref 1099 // as receiver so that we don't have to call `toRaw` on the ref in all 1100 // its class methods 1101 isRef(target) ? target : receiver 1102 ); 1103 if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) { 1104 return res; 1105 } 1106 if (!isReadonly2) { 1107 track(target, "get", key); 1108 } 1109 if (isShallow2) { 1110 return res; 1111 } 1112 if (isRef(res)) { 1113 return targetIsArray && isIntegerKey(key) ? res : res.value; 1114 } 1115 if (isObject$1(res)) { 1116 return isReadonly2 ? readonly(res) : reactive(res); 1117 } 1118 return res; 1119 } 1120} 1121class MutableReactiveHandler extends BaseReactiveHandler { 1122 constructor(isShallow2 = false) { 1123 super(false, isShallow2); 1124 } 1125 set(target, key, value, receiver) { 1126 let oldValue = target[key]; 1127 if (!this._isShallow) { 1128 const isOldValueReadonly = isReadonly(oldValue); 1129 if (!isShallow(value) && !isReadonly(value)) { 1130 oldValue = toRaw(oldValue); 1131 value = toRaw(value); 1132 } 1133 if (!isArray(target) && isRef(oldValue) && !isRef(value)) { 1134 if (isOldValueReadonly) { 1135 return false;
vendor: 4,168 bytes, lines 1136-1273
1136 } else { 1137 oldValue.value = value; 1138 return true; 1139 } 1140 } 1141 } 1142 const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key); 1143 const result = Reflect.set( 1144 target, 1145 key, 1146 value, 1147 isRef(target) ? target : receiver 1148 ); 1149 if (target === toRaw(receiver)) { 1150 if (!hadKey) { 1151 trigger(target, "add", key, value); 1152 } else if (hasChanged(value, oldValue)) { 1153 trigger(target, "set", key, value); 1154 } 1155 } 1156 return result; 1157 } 1158 deleteProperty(target, key) { 1159 const hadKey = hasOwn(target, key); 1160 target[key]; 1161 const result = Reflect.deleteProperty(target, key); 1162 if (result && hadKey) { 1163 trigger(target, "delete", key, void 0); 1164 } 1165 return result; 1166 } 1167 has(target, key) { 1168 const result = Reflect.has(target, key); 1169 if (!isSymbol(key) || !builtInSymbols.has(key)) { 1170 track(target, "has", key); 1171 } 1172 return result; 1173 } 1174 ownKeys(target) { 1175 track( 1176 target, 1177 "iterate", 1178 isArray(target) ? "length" : ITERATE_KEY 1179 ); 1180 return Reflect.ownKeys(target); 1181 } 1182} 1183class ReadonlyReactiveHandler extends BaseReactiveHandler { 1184 constructor(isShallow2 = false) { 1185 super(true, isShallow2); 1186 } 1187 set(target, key) { 1188 return true; 1189 } 1190 deleteProperty(target, key) { 1191 return true; 1192 } 1193} 1194const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler(); 1195const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(); 1196const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true); 1197const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true); 1198const toShallow = (value) => value; 1199const getProto = (v) => Reflect.getPrototypeOf(v); 1200function createIterableMethod(method, isReadonly2, isShallow2) { 1201 return function(...args) { 1202 const target = this["__v_raw"]; 1203 const rawTarget = toRaw(target); 1204 const targetIsMap = isMap(rawTarget); 1205 const isPair = method === "entries" || method === Symbol.iterator && targetIsMap; 1206 const isKeyOnly = method === "keys" && targetIsMap; 1207 const innerIterator = target[method](...args); 1208 const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; 1209 !isReadonly2 && track( 1210 rawTarget, 1211 "iterate", 1212 isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY 1213 ); 1214 return { 1215 // iterator protocol 1216 next() { 1217 const { value, done } = innerIterator.next(); 1218 return done ? { value, done } : { 1219 value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value), 1220 done 1221 }; 1222 }, 1223 // iterable protocol 1224 [Symbol.iterator]() { 1225 return this; 1226 } 1227 }; 1228 }; 1229} 1230function createReadonlyMethod(type) { 1231 return function(...args) { 1232 return type === "delete" ? false : type === "clear" ? void 0 : this; 1233 }; 1234} 1235function createInstrumentations(readonly2, shallow) { 1236 const instrumentations = { 1237 get(key) { 1238 const target = this["__v_raw"]; 1239 const rawTarget = toRaw(target); 1240 const rawKey = toRaw(key); 1241 if (!readonly2) { 1242 if (hasChanged(key, rawKey)) { 1243 track(rawTarget, "get", key); 1244 } 1245 track(rawTarget, "get", rawKey); 1246 } 1247 const { has } = getProto(rawTarget); 1248 const wrap = shallow ? toShallow : readonly2 ? toReadonly : toReactive; 1249 if (has.call(rawTarget, key)) { 1250 return wrap(target.get(key)); 1251 } else if (has.call(rawTarget, rawKey)) { 1252 return wrap(target.get(rawKey)); 1253 } else if (target !== rawTarget) { 1254 target.get(key); 1255 } 1256 }, 1257 get size() { 1258 const target = this["__v_raw"]; 1259 !readonly2 && track(toRaw(target), "iterate", ITERATE_KEY); 1260 return Reflect.get(target, "size", target); 1261 }, 1262 has(key) { 1263 const target = this["__v_raw"]; 1264 const rawTarget = toRaw(target); 1265 const rawKey = toRaw(key); 1266 if (!readonly2) { 1267 if (hasChanged(key, rawKey)) { 1268 track(rawTarget, "has", key); 1269 } 1270 track(rawTarget, "has", rawKey); 1271 } 1272 return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey); 1273 },
vendor: 14,659 bytes, lines 1274-1809
1274 forEach(callback, thisArg) { 1275 const observed = this; 1276 const target = observed["__v_raw"]; 1277 const rawTarget = toRaw(target); 1278 const wrap = shallow ? toShallow : readonly2 ? toReadonly : toReactive; 1279 !readonly2 && track(rawTarget, "iterate", ITERATE_KEY); 1280 return target.forEach((value, key) => { 1281 return callback.call(thisArg, wrap(value), wrap(key), observed); 1282 }); 1283 } 1284 }; 1285 extend( 1286 instrumentations, 1287 readonly2 ? { 1288 add: createReadonlyMethod("add"), 1289 set: createReadonlyMethod("set"), 1290 delete: createReadonlyMethod("delete"), 1291 clear: createReadonlyMethod("clear") 1292 } : { 1293 add(value) { 1294 if (!shallow && !isShallow(value) && !isReadonly(value)) { 1295 value = toRaw(value); 1296 } 1297 const target = toRaw(this); 1298 const proto = getProto(target); 1299 const hadKey = proto.has.call(target, value); 1300 if (!hadKey) { 1301 target.add(value); 1302 trigger(target, "add", value, value); 1303 } 1304 return this; 1305 }, 1306 set(key, value) { 1307 if (!shallow && !isShallow(value) && !isReadonly(value)) { 1308 value = toRaw(value); 1309 } 1310 const target = toRaw(this); 1311 const { has, get } = getProto(target); 1312 let hadKey = has.call(target, key); 1313 if (!hadKey) { 1314 key = toRaw(key); 1315 hadKey = has.call(target, key); 1316 } 1317 const oldValue = get.call(target, key); 1318 target.set(key, value); 1319 if (!hadKey) { 1320 trigger(target, "add", key, value); 1321 } else if (hasChanged(value, oldValue)) { 1322 trigger(target, "set", key, value); 1323 } 1324 return this; 1325 }, 1326 delete(key) { 1327 const target = toRaw(this); 1328 const { has, get } = getProto(target); 1329 let hadKey = has.call(target, key); 1330 if (!hadKey) { 1331 key = toRaw(key); 1332 hadKey = has.call(target, key); 1333 } 1334 get ? get.call(target, key) : void 0; 1335 const result = target.delete(key); 1336 if (hadKey) { 1337 trigger(target, "delete", key, void 0); 1338 } 1339 return result; 1340 }, 1341 clear() { 1342 const target = toRaw(this); 1343 const hadItems = target.size !== 0; 1344 const result = target.clear(); 1345 if (hadItems) { 1346 trigger( 1347 target, 1348 "clear", 1349 void 0, 1350 void 0 1351 ); 1352 } 1353 return result; 1354 } 1355 } 1356 ); 1357 const iteratorMethods = [ 1358 "keys", 1359 "values", 1360 "entries", 1361 Symbol.iterator 1362 ]; 1363 iteratorMethods.forEach((method) => { 1364 instrumentations[method] = createIterableMethod(method, readonly2, shallow); 1365 }); 1366 return instrumentations; 1367} 1368function createInstrumentationGetter(isReadonly2, shallow) { 1369 const instrumentations = createInstrumentations(isReadonly2, shallow); 1370 return (target, key, receiver) => { 1371 if (key === "__v_isReactive") { 1372 return !isReadonly2; 1373 } else if (key === "__v_isReadonly") { 1374 return isReadonly2; 1375 } else if (key === "__v_raw") { 1376 return target; 1377 } 1378 return Reflect.get( 1379 hasOwn(instrumentations, key) && key in target ? instrumentations : target, 1380 key, 1381 receiver 1382 ); 1383 }; 1384} 1385const mutableCollectionHandlers = { 1386 get: /* @__PURE__ */ createInstrumentationGetter(false, false) 1387}; 1388const shallowCollectionHandlers = { 1389 get: /* @__PURE__ */ createInstrumentationGetter(false, true) 1390}; 1391const readonlyCollectionHandlers = { 1392 get: /* @__PURE__ */ createInstrumentationGetter(true, false) 1393}; 1394const shallowReadonlyCollectionHandlers = { 1395 get: /* @__PURE__ */ createInstrumentationGetter(true, true) 1396}; 1397const reactiveMap = /* @__PURE__ */ new WeakMap(); 1398const shallowReactiveMap = /* @__PURE__ */ new WeakMap(); 1399const readonlyMap = /* @__PURE__ */ new WeakMap(); 1400const shallowReadonlyMap = /* @__PURE__ */ new WeakMap(); 1401function targetTypeMap(rawType) { 1402 switch (rawType) { 1403 case "Object": 1404 case "Array": 1405 return 1; 1406 case "Map": 1407 case "Set": 1408 case "WeakMap": 1409 case "WeakSet": 1410 return 2; 1411 default: 1412 return 0; 1413 } 1414} 1415function getTargetType(value) { 1416 return value["__v_skip"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value)); 1417} 1418function reactive(target) { 1419 if (isReadonly(target)) { 1420 return target; 1421 } 1422 return createReactiveObject( 1423 target, 1424 false, 1425 mutableHandlers, 1426 mutableCollectionHandlers, 1427 reactiveMap 1428 ); 1429} 1430function shallowReactive(target) { 1431 return createReactiveObject( 1432 target, 1433 false, 1434 shallowReactiveHandlers, 1435 shallowCollectionHandlers, 1436 shallowReactiveMap 1437 ); 1438} 1439function readonly(target) { 1440 return createReactiveObject( 1441 target, 1442 true, 1443 readonlyHandlers, 1444 readonlyCollectionHandlers, 1445 readonlyMap 1446 ); 1447} 1448function shallowReadonly(target) { 1449 return createReactiveObject( 1450 target, 1451 true, 1452 shallowReadonlyHandlers, 1453 shallowReadonlyCollectionHandlers, 1454 shallowReadonlyMap 1455 ); 1456} 1457function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) { 1458 if (!isObject$1(target)) { 1459 return target; 1460 } 1461 if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) { 1462 return target; 1463 } 1464 const existingProxy = proxyMap.get(target); 1465 if (existingProxy) { 1466 return existingProxy; 1467 } 1468 const targetType = getTargetType(target); 1469 if (targetType === 0) { 1470 return target; 1471 } 1472 const proxy = new Proxy( 1473 target, 1474 targetType === 2 ? collectionHandlers : baseHandlers 1475 ); 1476 proxyMap.set(target, proxy); 1477 return proxy; 1478} 1479function isReactive(value) { 1480 if (isReadonly(value)) { 1481 return isReactive(value["__v_raw"]); 1482 } 1483 return !!(value && value["__v_isReactive"]); 1484} 1485function isReadonly(value) { 1486 return !!(value && value["__v_isReadonly"]); 1487} 1488function isShallow(value) { 1489 return !!(value && value["__v_isShallow"]); 1490} 1491function isProxy(value) { 1492 return value ? !!value["__v_raw"] : false; 1493} 1494function toRaw(observed) { 1495 const raw = observed && observed["__v_raw"]; 1496 return raw ? toRaw(raw) : observed; 1497} 1498function markRaw(value) { 1499 if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) { 1500 def(value, "__v_skip", true); 1501 } 1502 return value; 1503} 1504const toReactive = (value) => isObject$1(value) ? reactive(value) : value; 1505const toReadonly = (value) => isObject$1(value) ? readonly(value) : value; 1506function isRef(r) { 1507 return r ? r["__v_isRef"] === true : false; 1508} 1509function ref(value) { 1510 return createRef(value, false); 1511} 1512function createRef(rawValue, shallow) { 1513 if (isRef(rawValue)) { 1514 return rawValue; 1515 } 1516 return new RefImpl(rawValue, shallow); 1517} 1518class RefImpl { 1519 constructor(value, isShallow2) { 1520 this.dep = new Dep(); 1521 this["__v_isRef"] = true; 1522 this["__v_isShallow"] = false; 1523 this._rawValue = isShallow2 ? value : toRaw(value); 1524 this._value = isShallow2 ? value : toReactive(value); 1525 this["__v_isShallow"] = isShallow2; 1526 } 1527 get value() { 1528 { 1529 this.dep.track(); 1530 } 1531 return this._value; 1532 } 1533 set value(newValue) { 1534 const oldValue = this._rawValue; 1535 const useDirectValue = this["__v_isShallow"] || isShallow(newValue) || isReadonly(newValue); 1536 newValue = useDirectValue ? newValue : toRaw(newValue); 1537 if (hasChanged(newValue, oldValue)) { 1538 this._rawValue = newValue; 1539 this._value = useDirectValue ? newValue : toReactive(newValue); 1540 { 1541 this.dep.trigger(); 1542 } 1543 } 1544 } 1545} 1546function unref(ref2) { 1547 return isRef(ref2) ? ref2.value : ref2; 1548} 1549function toValue(source) { 1550 return isFunction(source) ? source() : unref(source); 1551} 1552const shallowUnwrapHandlers = { 1553 get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)), 1554 set: (target, key, value, receiver) => { 1555 const oldValue = target[key]; 1556 if (isRef(oldValue) && !isRef(value)) { 1557 oldValue.value = value; 1558 return true; 1559 } else { 1560 return Reflect.set(target, key, value, receiver); 1561 } 1562 } 1563}; 1564function proxyRefs(objectWithRefs) { 1565 return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers); 1566} 1567function toRefs(object) { 1568 const ret = isArray(object) ? new Array(object.length) : {}; 1569 for (const key in object) { 1570 ret[key] = propertyToRef(object, key); 1571 } 1572 return ret; 1573} 1574class ObjectRefImpl { 1575 constructor(_object, _key, _defaultValue) { 1576 this._object = _object; 1577 this._key = _key; 1578 this._defaultValue = _defaultValue; 1579 this["__v_isRef"] = true; 1580 this._value = void 0; 1581 } 1582 get value() { 1583 const val = this._object[this._key]; 1584 return this._value = val === void 0 ? this._defaultValue : val; 1585 } 1586 set value(newVal) { 1587 this._object[this._key] = newVal; 1588 } 1589 get dep() { 1590 return getDepFromReactive(toRaw(this._object), this._key); 1591 } 1592} 1593function propertyToRef(source, key, defaultValue) { 1594 const val = source[key]; 1595 return isRef(val) ? val : new ObjectRefImpl(source, key, defaultValue); 1596} 1597class ComputedRefImpl { 1598 constructor(fn, setter, isSSR) { 1599 this.fn = fn; 1600 this.setter = setter; 1601 this._value = void 0; 1602 this.dep = new Dep(this); 1603 this.__v_isRef = true; 1604 this.deps = void 0; 1605 this.depsTail = void 0; 1606 this.flags = 16; 1607 this.globalVersion = globalVersion - 1; 1608 this.next = void 0; 1609 this.effect = this; 1610 this["__v_isReadonly"] = !setter; 1611 this.isSSR = isSSR; 1612 } 1613 /** 1614 * @internal 1615 */ 1616 notify() { 1617 this.flags |= 16; 1618 if (!(this.flags & 8) && // avoid infinite self recursion 1619 activeSub !== this) { 1620 batch(this, true); 1621 return true; 1622 } 1623 } 1624 get value() { 1625 const link = this.dep.track(); 1626 refreshComputed(this); 1627 if (link) { 1628 link.version = this.dep.version; 1629 } 1630 return this._value; 1631 } 1632 set value(newValue) { 1633 if (this.setter) { 1634 this.setter(newValue); 1635 } 1636 } 1637} 1638function computed$1(getterOrOptions, debugOptions, isSSR = false) { 1639 let getter; 1640 let setter; 1641 if (isFunction(getterOrOptions)) { 1642 getter = getterOrOptions; 1643 } else { 1644 getter = getterOrOptions.get; 1645 setter = getterOrOptions.set; 1646 } 1647 const cRef = new ComputedRefImpl(getter, setter, isSSR); 1648 return cRef; 1649} 1650const INITIAL_WATCHER_VALUE = {}; 1651const cleanupMap = /* @__PURE__ */ new WeakMap(); 1652let activeWatcher = void 0; 1653function onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) { 1654 if (owner) { 1655 let cleanups = cleanupMap.get(owner); 1656 if (!cleanups) 1657 cleanupMap.set(owner, cleanups = []); 1658 cleanups.push(cleanupFn); 1659 } 1660} 1661function watch$1(source, cb, options = EMPTY_OBJ) { 1662 const { immediate, deep, once, scheduler, augmentJob, call } = options; 1663 const reactiveGetter = (source2) => { 1664 if (deep) 1665 return source2; 1666 if (isShallow(source2) || deep === false || deep === 0) 1667 return traverse(source2, 1); 1668 return traverse(source2); 1669 }; 1670 let effect; 1671 let getter; 1672 let cleanup; 1673 let boundCleanup; 1674 let forceTrigger = false; 1675 let isMultiSource = false; 1676 if (isRef(source)) { 1677 getter = () => source.value; 1678 forceTrigger = isShallow(source); 1679 } else if (isReactive(source)) { 1680 getter = () => reactiveGetter(source); 1681 forceTrigger = true; 1682 } else if (isArray(source)) { 1683 isMultiSource = true; 1684 forceTrigger = source.some((s) => isReactive(s) || isShallow(s)); 1685 getter = () => source.map((s) => { 1686 if (isRef(s)) { 1687 return s.value; 1688 } else if (isReactive(s)) { 1689 return reactiveGetter(s); 1690 } else if (isFunction(s)) { 1691 return call ? call(s, 2) : s(); 1692 } else 1693 ; 1694 }); 1695 } else if (isFunction(source)) { 1696 if (cb) { 1697 getter = call ? () => call(source, 2) : source; 1698 } else { 1699 getter = () => { 1700 if (cleanup) { 1701 pauseTracking(); 1702 try { 1703 cleanup(); 1704 } finally { 1705 resetTracking(); 1706 } 1707 } 1708 const currentEffect = activeWatcher; 1709 activeWatcher = effect; 1710 try { 1711 return call ? call(source, 3, [boundCleanup]) : source(boundCleanup); 1712 } finally { 1713 activeWatcher = currentEffect; 1714 } 1715 }; 1716 } 1717 } else { 1718 getter = NOOP; 1719 } 1720 if (cb && deep) { 1721 const baseGetter = getter; 1722 const depth = deep === true ? Infinity : deep; 1723 getter = () => traverse(baseGetter(), depth); 1724 } 1725 const scope = getCurrentScope(); 1726 const watchHandle = () => { 1727 effect.stop(); 1728 if (scope && scope.active) { 1729 remove(scope.effects, effect); 1730 } 1731 }; 1732 if (once && cb) { 1733 const _cb = cb; 1734 cb = (...args) => { 1735 _cb(...args); 1736 watchHandle(); 1737 }; 1738 } 1739 let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE; 1740 const job = (immediateFirstRun) => { 1741 if (!(effect.flags & 1) || !effect.dirty && !immediateFirstRun) { 1742 return; 1743 } 1744 if (cb) { 1745 const newValue = effect.run(); 1746 if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) { 1747 if (cleanup) { 1748 cleanup(); 1749 } 1750 const currentWatcher = activeWatcher; 1751 activeWatcher = effect; 1752 try { 1753 const args = [ 1754 newValue, 1755 // pass undefined as the old value when it's changed for the first time 1756 oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue, 1757 boundCleanup 1758 ]; 1759 call ? call(cb, 3, args) : ( 1760 // @ts-expect-error 1761 cb(...args) 1762 ); 1763 oldValue = newValue; 1764 } finally { 1765 activeWatcher = currentWatcher; 1766 } 1767 } 1768 } else { 1769 effect.run(); 1770 } 1771 }; 1772 if (augmentJob) { 1773 augmentJob(job); 1774 } 1775 effect = new ReactiveEffect(getter); 1776 effect.scheduler = scheduler ? () => scheduler(job, false) : job; 1777 boundCleanup = (fn) => onWatcherCleanup(fn, false, effect); 1778 cleanup = effect.onStop = () => { 1779 const cleanups = cleanupMap.get(effect); 1780 if (cleanups) { 1781 if (call) { 1782 call(cleanups, 4); 1783 } else { 1784 for (const cleanup2 of cleanups) 1785 cleanup2(); 1786 } 1787 cleanupMap.delete(effect); 1788 } 1789 }; 1790 if (cb) { 1791 if (immediate) { 1792 job(true); 1793 } else { 1794 oldValue = effect.run(); 1795 } 1796 } else if (scheduler) { 1797 scheduler(job.bind(null, true), true); 1798 } else { 1799 effect.run(); 1800 } 1801 watchHandle.pause = effect.pause.bind(effect); 1802 watchHandle.resume = effect.resume.bind(effect); 1803 watchHandle.stop = watchHandle; 1804 return watchHandle; 1805} 1806function traverse(value, depth = Infinity, seen) { 1807 if (depth <= 0 || !isObject$1(value) || value["__v_skip"]) { 1808 return value; 1809 }
vendor: 4,898 bytes, lines 1810-1978
1810 seen = seen || /* @__PURE__ */ new Set(); 1811 if (seen.has(value)) { 1812 return value; 1813 } 1814 seen.add(value); 1815 depth--; 1816 if (isRef(value)) { 1817 traverse(value.value, depth, seen); 1818 } else if (isArray(value)) { 1819 for (let i = 0; i < value.length; i++) { 1820 traverse(value[i], depth, seen); 1821 } 1822 } else if (isSet(value) || isMap(value)) { 1823 value.forEach((v) => { 1824 traverse(v, depth, seen); 1825 }); 1826 } else if (isPlainObject$1(value)) { 1827 for (const key in value) { 1828 traverse(value[key], depth, seen); 1829 } 1830 for (const key of Object.getOwnPropertySymbols(value)) { 1831 if (Object.prototype.propertyIsEnumerable.call(value, key)) { 1832 traverse(value[key], depth, seen); 1833 } 1834 } 1835 } 1836 return value; 1837} 1838/** 1839* @vue/runtime-core v3.5.13 1840* (c) 2018-present Yuxi (Evan) You and Vue contributors 1841* @license MIT 1842**/ 1843const stack = []; 1844let isWarning = false; 1845function warn$1(msg, ...args) { 1846 if (isWarning) 1847 return; 1848 isWarning = true; 1849 pauseTracking(); 1850 const instance = stack.length ? stack[stack.length - 1].component : null; 1851 const appWarnHandler = instance && instance.appContext.config.warnHandler; 1852 const trace = getComponentTrace(); 1853 if (appWarnHandler) { 1854 callWithErrorHandling( 1855 appWarnHandler, 1856 instance, 1857 11, 1858 [ 1859 // eslint-disable-next-line no-restricted-syntax 1860 msg + args.map((a) => { 1861 var _a2, _b; 1862 return (_b = (_a2 = a.toString) == null ? void 0 : _a2.call(a)) != null ? _b : JSON.stringify(a); 1863 }).join(""), 1864 instance && instance.proxy, 1865 trace.map( 1866 ({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>` 1867 ).join("\n"), 1868 trace 1869 ] 1870 ); 1871 } else { 1872 const warnArgs = [`[Vue warn]: ${msg}`, ...args]; 1873 if (trace.length && // avoid spamming console during tests 1874 true) { 1875 warnArgs.push(` 1876`, ...formatTrace(trace)); 1877 } 1878 console.warn(...warnArgs); 1879 } 1880 resetTracking(); 1881 isWarning = false; 1882} 1883function getComponentTrace() { 1884 let currentVNode = stack[stack.length - 1]; 1885 if (!currentVNode) { 1886 return []; 1887 } 1888 const normalizedStack = []; 1889 while (currentVNode) { 1890 const last = normalizedStack[0]; 1891 if (last && last.vnode === currentVNode) { 1892 last.recurseCount++; 1893 } else { 1894 normalizedStack.push({ 1895 vnode: currentVNode, 1896 recurseCount: 0 1897 }); 1898 } 1899 const parentInstance = currentVNode.component && currentVNode.component.parent; 1900 currentVNode = parentInstance && parentInstance.vnode; 1901 } 1902 return normalizedStack; 1903} 1904function formatTrace(trace) { 1905 const logs = []; 1906 trace.forEach((entry, i) => { 1907 logs.push(...i === 0 ? [] : [` 1908`], ...formatTraceEntry(entry)); 1909 }); 1910 return logs; 1911} 1912function formatTraceEntry({ vnode, recurseCount }) { 1913 const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``; 1914 const isRoot = vnode.component ? vnode.component.parent == null : false; 1915 const open = ` at <${formatComponentName( 1916 vnode.component, 1917 vnode.type, 1918 isRoot 1919 )}`; 1920 const close = `>` + postfix; 1921 return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close]; 1922} 1923function formatProps(props) { 1924 const res = []; 1925 const keys = Object.keys(props); 1926 keys.slice(0, 3).forEach((key) => { 1927 res.push(...formatProp(key, props[key])); 1928 }); 1929 if (keys.length > 3) { 1930 res.push(` ...`); 1931 } 1932 return res; 1933} 1934function formatProp(key, value, raw) { 1935 if (isString(value)) { 1936 value = JSON.stringify(value); 1937 return raw ? value : [`${key}=${value}`]; 1938 } else if (typeof value === "number" || typeof value === "boolean" || value == null) { 1939 return raw ? value : [`${key}=${value}`]; 1940 } else if (isRef(value)) { 1941 value = formatProp(key, toRaw(value.value), true); 1942 return raw ? value : [`${key}=Ref<`, value, `>`]; 1943 } else if (isFunction(value)) { 1944 return [`${key}=fn${value.name ? `<${value.name}>` : ``}`]; 1945 } else { 1946 value = toRaw(value); 1947 return raw ? value : [`${key}=`, value]; 1948 } 1949} 1950function callWithErrorHandling(fn, instance, type, args) { 1951 try { 1952 return args ? fn(...args) : fn(); 1953 } catch (err) { 1954 handleError(err, instance, type); 1955 } 1956} 1957function callWithAsyncErrorHandling(fn, instance, type, args) { 1958 if (isFunction(fn)) { 1959 const res = callWithErrorHandling(fn, instance, type, args); 1960 if (res && isPromise(res)) { 1961 res.catch((err) => { 1962 handleError(err, instance, type); 1963 }); 1964 } 1965 return res; 1966 } 1967 if (isArray(fn)) { 1968 const values = []; 1969 for (let i = 0; i < fn.length; i++) { 1970 values.push(callWithAsyncErrorHandling(fn[i], instance, type, args)); 1971 } 1972 return values; 1973 } 1974} 1975function handleError(err, instance, type, throwInDev = true) { 1976 const contextVNode = instance ? instance.vnode : null; 1977 const { errorHandler, throwUnhandledErrorInProduction } = instance && instance.appContext.config || EMPTY_OBJ; 1978 if (instance) {
vendor: 6,479 bytes, lines 1979-2227
1979 let cur = instance.parent; 1980 const exposedInstance = instance.proxy; 1981 const errorInfo = `https://vuejs.org/error-reference/#runtime-${type}`; 1982 while (cur) { 1983 const errorCapturedHooks = cur.ec; 1984 if (errorCapturedHooks) { 1985 for (let i = 0; i < errorCapturedHooks.length; i++) { 1986 if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) { 1987 return; 1988 } 1989 } 1990 } 1991 cur = cur.parent; 1992 } 1993 if (errorHandler) { 1994 pauseTracking(); 1995 callWithErrorHandling(errorHandler, null, 10, [ 1996 err, 1997 exposedInstance, 1998 errorInfo 1999 ]); 2000 resetTracking(); 2001 return; 2002 } 2003 } 2004 logError(err, type, contextVNode, throwInDev, throwUnhandledErrorInProduction); 2005} 2006function logError(err, type, contextVNode, throwInDev = true, throwInProd = false) { 2007 if (throwInProd) { 2008 throw err; 2009 } else { 2010 console.error(err); 2011 } 2012} 2013const queue = []; 2014let flushIndex = -1; 2015const pendingPostFlushCbs = []; 2016let activePostFlushCbs = null; 2017let postFlushIndex = 0; 2018const resolvedPromise = /* @__PURE__ */ Promise.resolve(); 2019let currentFlushPromise = null; 2020function nextTick(fn) { 2021 const p2 = currentFlushPromise || resolvedPromise; 2022 return fn ? p2.then(this ? fn.bind(this) : fn) : p2; 2023} 2024function findInsertionIndex(id) { 2025 let start = flushIndex + 1; 2026 let end = queue.length; 2027 while (start < end) { 2028 const middle = start + end >>> 1; 2029 const middleJob = queue[middle]; 2030 const middleJobId = getId(middleJob); 2031 if (middleJobId < id || middleJobId === id && middleJob.flags & 2) { 2032 start = middle + 1; 2033 } else { 2034 end = middle; 2035 } 2036 } 2037 return start; 2038} 2039function queueJob(job) { 2040 if (!(job.flags & 1)) { 2041 const jobId = getId(job); 2042 const lastJob = queue[queue.length - 1]; 2043 if (!lastJob || // fast path when the job id is larger than the tail 2044 !(job.flags & 2) && jobId >= getId(lastJob)) { 2045 queue.push(job); 2046 } else { 2047 queue.splice(findInsertionIndex(jobId), 0, job); 2048 } 2049 job.flags |= 1; 2050 queueFlush(); 2051 } 2052} 2053function queueFlush() { 2054 if (!currentFlushPromise) { 2055 currentFlushPromise = resolvedPromise.then(flushJobs); 2056 } 2057} 2058function queuePostFlushCb(cb) { 2059 if (!isArray(cb)) { 2060 if (activePostFlushCbs && cb.id === -1) { 2061 activePostFlushCbs.splice(postFlushIndex + 1, 0, cb); 2062 } else if (!(cb.flags & 1)) { 2063 pendingPostFlushCbs.push(cb); 2064 cb.flags |= 1; 2065 } 2066 } else { 2067 pendingPostFlushCbs.push(...cb); 2068 } 2069 queueFlush(); 2070} 2071function flushPreFlushCbs(instance, seen, i = flushIndex + 1) { 2072 for (; i < queue.length; i++) { 2073 const cb = queue[i]; 2074 if (cb && cb.flags & 2) { 2075 if (instance && cb.id !== instance.uid) { 2076 continue; 2077 } 2078 queue.splice(i, 1); 2079 i--; 2080 if (cb.flags & 4) { 2081 cb.flags &= ~1; 2082 } 2083 cb(); 2084 if (!(cb.flags & 4)) { 2085 cb.flags &= ~1; 2086 } 2087 } 2088 } 2089} 2090function flushPostFlushCbs(seen) { 2091 if (pendingPostFlushCbs.length) { 2092 const deduped = [...new Set(pendingPostFlushCbs)].sort( 2093 (a, b) => getId(a) - getId(b) 2094 ); 2095 pendingPostFlushCbs.length = 0; 2096 if (activePostFlushCbs) { 2097 activePostFlushCbs.push(...deduped); 2098 return; 2099 } 2100 activePostFlushCbs = deduped; 2101 for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { 2102 const cb = activePostFlushCbs[postFlushIndex]; 2103 if (cb.flags & 4) { 2104 cb.flags &= ~1; 2105 } 2106 if (!(cb.flags & 8)) 2107 cb(); 2108 cb.flags &= ~1; 2109 } 2110 activePostFlushCbs = null; 2111 postFlushIndex = 0; 2112 } 2113} 2114const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id; 2115function flushJobs(seen) { 2116 const check = NOOP; 2117 try { 2118 for (flushIndex = 0; flushIndex < queue.length; flushIndex++) { 2119 const job = queue[flushIndex]; 2120 if (job && !(job.flags & 8)) { 2121 if (false) 2122 ; 2123 if (job.flags & 4) { 2124 job.flags &= ~1; 2125 } 2126 callWithErrorHandling( 2127 job, 2128 job.i, 2129 job.i ? 15 : 14 2130 ); 2131 if (!(job.flags & 4)) { 2132 job.flags &= ~1; 2133 } 2134 } 2135 } 2136 } finally { 2137 for (; flushIndex < queue.length; flushIndex++) { 2138 const job = queue[flushIndex]; 2139 if (job) { 2140 job.flags &= ~1; 2141 } 2142 } 2143 flushIndex = -1; 2144 queue.length = 0; 2145 flushPostFlushCbs(); 2146 currentFlushPromise = null; 2147 if (queue.length || pendingPostFlushCbs.length) { 2148 flushJobs(); 2149 } 2150 } 2151} 2152let currentRenderingInstance = null; 2153let currentScopeId = null; 2154function setCurrentRenderingInstance(instance) { 2155 const prev = currentRenderingInstance; 2156 currentRenderingInstance = instance; 2157 currentScopeId = instance && instance.type.__scopeId || null; 2158 return prev; 2159} 2160function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) { 2161 if (!ctx) 2162 return fn; 2163 if (fn._n) { 2164 return fn; 2165 } 2166 const renderFnWithContext = (...args) => { 2167 if (renderFnWithContext._d) { 2168 setBlockTracking(-1); 2169 } 2170 const prevInstance = setCurrentRenderingInstance(ctx); 2171 let res; 2172 try { 2173 res = fn(...args); 2174 } finally { 2175 setCurrentRenderingInstance(prevInstance); 2176 if (renderFnWithContext._d) { 2177 setBlockTracking(1); 2178 } 2179 } 2180 return res; 2181 }; 2182 renderFnWithContext._n = true; 2183 renderFnWithContext._c = true; 2184 renderFnWithContext._d = true; 2185 return renderFnWithContext; 2186} 2187function withDirectives(vnode, directives) { 2188 if (currentRenderingInstance === null) { 2189 return vnode; 2190 } 2191 const instance = getComponentPublicInstance(currentRenderingInstance); 2192 const bindings = vnode.dirs || (vnode.dirs = []); 2193 for (let i = 0; i < directives.length; i++) { 2194 let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i]; 2195 if (dir) { 2196 if (isFunction(dir)) { 2197 dir = { 2198 mounted: dir, 2199 updated: dir 2200 }; 2201 } 2202 if (dir.deep) { 2203 traverse(value); 2204 } 2205 bindings.push({ 2206 dir, 2207 instance, 2208 value, 2209 oldValue: void 0, 2210 arg, 2211 modifiers 2212 }); 2213 } 2214 } 2215 return vnode; 2216} 2217function invokeDirectiveHook(vnode, prevVNode, instance, name) { 2218 const bindings = vnode.dirs; 2219 const oldBindings = prevVNode && prevVNode.dirs; 2220 for (let i = 0; i < bindings.length; i++) { 2221 const binding = bindings[i]; 2222 if (oldBindings) { 2223 binding.oldValue = oldBindings[i].value; 2224 } 2225 let hook = binding.dir[name]; 2226 if (hook) { 2227 pauseTracking();
2228 callWithAsyncErrorHandling(hook, instance, 8, [ 2229 vnode.el, 2230 binding, 2231 vnode, 2232 prevVNode 2233 ]); 2234 resetTracking(); 2235 } 2236 } 2237} 2238const TeleportEndKey = Symbol("_vte"); 2239const isTeleport = (type) => type.__isTeleport; 2240function setTransitionHooks(vnode, hooks) { 2241 if (vnode.shapeFlag & 6 && vnode.component) { 2242 vnode.transition = hooks; 2243 setTransitionHooks(vnode.component.subTree, hooks); 2244 } else if (vnode.shapeFlag & 128) { 2245 vnode.ssContent.transition = hooks.clone(vnode.ssContent); 2246 vnode.ssFallback.transition = hooks.clone(vnode.ssFallback); 2247 } else { 2248 vnode.transition = hooks; 2249 } 2250} 2251/*! #__NO_SIDE_EFFECTS__ */ 2252// @__NO_SIDE_EFFECTS__ 2253function defineComponent(options, extraOptions) { 2254 return isFunction(options) ? ( 2255 // #8236: extend call and options.name access are considered side-effects 2256 // by Rollup, so we have to wrap it in a pure-annotated IIFE. 2257 /* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))() 2258 ) : options; 2259} 2260function markAsyncBoundary(instance) { 2261 instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0]; 2262} 2263function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) { 2264 if (isArray(rawRef)) { 2265 rawRef.forEach( 2266 (r, i) => setRef( 2267 r, 2268 oldRawRef && (isArray(oldRawRef) ? oldRawRef[i] : oldRawRef), 2269 parentSuspense, 2270 vnode, 2271 isUnmount 2272 ) 2273 ); 2274 return; 2275 } 2276 if (isAsyncWrapper(vnode) && !isUnmount) { 2277 if (vnode.shapeFlag & 512 && vnode.type.__asyncResolved && vnode.component.subTree.component) { 2278 setRef(rawRef, oldRawRef, parentSuspense, vnode.component.subTree); 2279 } 2280 return; 2281 } 2282 const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el; 2283 const value = isUnmount ? null : refValue; 2284 const { i: owner, r: ref2 } = rawRef; 2285 const oldRef = oldRawRef && oldRawRef.r; 2286 const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs; 2287 const setupState = owner.setupState; 2288 const rawSetupState = toRaw(setupState); 2289 const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => { 2290 return hasOwn(rawSetupState, key); 2291 }; 2292 if (oldRef != null && oldRef !== ref2) { 2293 if (isString(oldRef)) { 2294 refs[oldRef] = null; 2295 if (canSetSetupRef(oldRef)) { 2296 setupState[oldRef] = null; 2297 } 2298 } else if (isRef(oldRef)) { 2299 oldRef.value = null; 2300 } 2301 } 2302 if (isFunction(ref2)) { 2303 callWithErrorHandling(ref2, owner, 12, [value, refs]); 2304 } else { 2305 const _isString = isString(ref2); 2306 const _isRef = isRef(ref2); 2307 if (_isString || _isRef) { 2308 const doSet = () => { 2309 if (rawRef.f) { 2310 const existing = _isString ? canSetSetupRef(ref2) ? setupState[ref2] : refs[ref2] : ref2.value; 2311 if (isUnmount) { 2312 isArray(existing) && remove(existing, refValue); 2313 } else { 2314 if (!isArray(existing)) { 2315 if (_isString) { 2316 refs[ref2] = [refValue]; 2317 if (canSetSetupRef(ref2)) { 2318 setupState[ref2] = refs[ref2]; 2319 } 2320 } else { 2321 ref2.value = [refValue]; 2322 if (rawRef.k) 2323 refs[rawRef.k] = ref2.value; 2324 } 2325 } else if (!existing.includes(refValue)) { 2326 existing.push(refValue); 2327 } 2328 } 2329 } else if (_isString) { 2330 refs[ref2] = value; 2331 if (canSetSetupRef(ref2)) { 2332 setupState[ref2] = value; 2333 } 2334 } else if (_isRef) { 2335 ref2.value = value; 2336 if (rawRef.k) 2337 refs[rawRef.k] = value; 2338 } else 2339 ; 2340 }; 2341 if (value) { 2342 doSet.id = -1; 2343 queuePostRenderEffect(doSet, parentSuspense); 2344 } else { 2345 doSet(); 2346 } 2347 } 2348 } 2349} 2350getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1)); 2351getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id)); 2352const isAsyncWrapper = (i) => !!i.type.__asyncLoader; 2353const isKeepAlive = (vnode) => vnode.type.__isKeepAlive; 2354function onActivated(hook, target) { 2355 registerKeepAliveHook(hook, "a", target); 2356} 2357function onDeactivated(hook, target) { 2358 registerKeepAliveHook(hook, "da", target); 2359} 2360function registerKeepAliveHook(hook, type, target = currentInstance) { 2361 const wrappedHook = hook.__wdc || (hook.__wdc = () => {
vendor: 5,686 bytes, lines 2362-2555
2362 let current = target; 2363 while (current) { 2364 if (current.isDeactivated) { 2365 return; 2366 } 2367 current = current.parent; 2368 } 2369 return hook(); 2370 }); 2371 injectHook(type, wrappedHook, target); 2372 if (target) { 2373 let current = target.parent; 2374 while (current && current.parent) { 2375 if (isKeepAlive(current.parent.vnode)) { 2376 injectToKeepAliveRoot(wrappedHook, type, target, current); 2377 } 2378 current = current.parent; 2379 } 2380 } 2381} 2382function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { 2383 const injected = injectHook( 2384 type, 2385 hook, 2386 keepAliveRoot, 2387 true 2388 /* prepend */ 2389 ); 2390 onUnmounted(() => { 2391 remove(keepAliveRoot[type], injected); 2392 }, target); 2393} 2394function injectHook(type, hook, target = currentInstance, prepend = false) { 2395 if (target) { 2396 const hooks = target[type] || (target[type] = []); 2397 const wrappedHook = hook.__weh || (hook.__weh = (...args) => { 2398 pauseTracking(); 2399 const reset = setCurrentInstance(target); 2400 const res = callWithAsyncErrorHandling(hook, target, type, args); 2401 reset(); 2402 resetTracking(); 2403 return res; 2404 }); 2405 if (prepend) { 2406 hooks.unshift(wrappedHook); 2407 } else { 2408 hooks.push(wrappedHook); 2409 } 2410 return wrappedHook; 2411 } 2412} 2413const createHook = (lifecycle) => (hook, target = currentInstance) => { 2414 if (!isInSSRComponentSetup || lifecycle === "sp") { 2415 injectHook(lifecycle, (...args) => hook(...args), target); 2416 } 2417}; 2418const onBeforeMount = createHook("bm"); 2419const onMounted = createHook("m"); 2420const onBeforeUpdate = createHook( 2421 "bu" 2422); 2423const onUpdated = createHook("u"); 2424const onBeforeUnmount = createHook( 2425 "bum" 2426); 2427const onUnmounted = createHook("um"); 2428const onServerPrefetch = createHook( 2429 "sp" 2430); 2431const onRenderTriggered = createHook("rtg"); 2432const onRenderTracked = createHook("rtc"); 2433function onErrorCaptured(hook, target = currentInstance) { 2434 injectHook("ec", hook, target); 2435} 2436const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc"); 2437function renderList(source, renderItem, cache, index) { 2438 let ret; 2439 const cached = cache && cache[index]; 2440 const sourceIsArray = isArray(source); 2441 if (sourceIsArray || isString(source)) { 2442 const sourceIsReactiveArray = sourceIsArray && isReactive(source); 2443 let needsWrap = false; 2444 if (sourceIsReactiveArray) { 2445 needsWrap = !isShallow(source); 2446 source = shallowReadArray(source); 2447 } 2448 ret = new Array(source.length); 2449 for (let i = 0, l = source.length; i < l; i++) { 2450 ret[i] = renderItem( 2451 needsWrap ? toReactive(source[i]) : source[i], 2452 i, 2453 void 0, 2454 cached && cached[i] 2455 ); 2456 } 2457 } else if (typeof source === "number") { 2458 ret = new Array(source); 2459 for (let i = 0; i < source; i++) { 2460 ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]); 2461 } 2462 } else if (isObject$1(source)) { 2463 if (source[Symbol.iterator]) { 2464 ret = Array.from( 2465 source, 2466 (item, i) => renderItem(item, i, void 0, cached && cached[i]) 2467 ); 2468 } else { 2469 const keys = Object.keys(source); 2470 ret = new Array(keys.length); 2471 for (let i = 0, l = keys.length; i < l; i++) { 2472 const key = keys[i]; 2473 ret[i] = renderItem(source[key], key, i, cached && cached[i]); 2474 } 2475 } 2476 } else { 2477 ret = []; 2478 } 2479 if (cache) { 2480 cache[index] = ret; 2481 } 2482 return ret; 2483} 2484const getPublicInstance = (i) => { 2485 if (!i) 2486 return null; 2487 if (isStatefulComponent(i)) 2488 return getComponentPublicInstance(i); 2489 return getPublicInstance(i.parent); 2490}; 2491const publicPropertiesMap = ( 2492 // Move PURE marker to new line to workaround compiler discarding it 2493 // due to type annotation 2494 /* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), { 2495 $: (i) => i, 2496 $el: (i) => i.vnode.el, 2497 $data: (i) => i.data, 2498 $props: (i) => i.props, 2499 $attrs: (i) => i.attrs, 2500 $slots: (i) => i.slots, 2501 $refs: (i) => i.refs, 2502 $parent: (i) => getPublicInstance(i.parent), 2503 $root: (i) => getPublicInstance(i.root), 2504 $host: (i) => i.ce, 2505 $emit: (i) => i.emit, 2506 $options: (i) => resolveMergedOptions(i), 2507 $forceUpdate: (i) => i.f || (i.f = () => { 2508 queueJob(i.update); 2509 }), 2510 $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)), 2511 $watch: (i) => instanceWatch.bind(i) 2512 }) 2513); 2514const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key); 2515const PublicInstanceProxyHandlers = { 2516 get({ _: instance }, key) { 2517 if (key === "__v_skip") { 2518 return true; 2519 } 2520 const { ctx, setupState, data, props, accessCache, type, appContext } = instance; 2521 let normalizedProps; 2522 if (key[0] !== "$") { 2523 const n = accessCache[key]; 2524 if (n !== void 0) { 2525 switch (n) { 2526 case 1: 2527 return setupState[key]; 2528 case 2: 2529 return data[key]; 2530 case 4: 2531 return ctx[key]; 2532 case 3: 2533 return props[key]; 2534 } 2535 } else if (hasSetupBinding(setupState, key)) { 2536 accessCache[key] = 1; 2537 return setupState[key]; 2538 } else if (data !== EMPTY_OBJ && hasOwn(data, key)) { 2539 accessCache[key] = 2; 2540 return data[key]; 2541 } else if ( 2542 // only cache other properties when instance has declared (thus stable) 2543 // props 2544 (normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key) 2545 ) { 2546 accessCache[key] = 3; 2547 return props[key]; 2548 } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { 2549 accessCache[key] = 4; 2550 return ctx[key]; 2551 } else if (shouldCacheAccess) { 2552 accessCache[key] = 0; 2553 } 2554 } 2555 const publicGetter = publicPropertiesMap[key];
vendor: 10,758 bytes, lines 2556-2946
2556 let cssModule, globalProperties; 2557 if (publicGetter) { 2558 if (key === "$attrs") { 2559 track(instance.attrs, "get", ""); 2560 } 2561 return publicGetter(instance); 2562 } else if ( 2563 // css module (injected by vue-loader) 2564 (cssModule = type.__cssModules) && (cssModule = cssModule[key]) 2565 ) { 2566 return cssModule; 2567 } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { 2568 accessCache[key] = 4; 2569 return ctx[key]; 2570 } else if ( 2571 // global properties 2572 globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key) 2573 ) { 2574 { 2575 return globalProperties[key]; 2576 } 2577 } else 2578 ; 2579 }, 2580 set({ _: instance }, key, value) { 2581 const { data, setupState, ctx } = instance; 2582 if (hasSetupBinding(setupState, key)) { 2583 setupState[key] = value; 2584 return true; 2585 } else if (data !== EMPTY_OBJ && hasOwn(data, key)) { 2586 data[key] = value; 2587 return true; 2588 } else if (hasOwn(instance.props, key)) { 2589 return false; 2590 } 2591 if (key[0] === "$" && key.slice(1) in instance) { 2592 return false; 2593 } else { 2594 { 2595 ctx[key] = value; 2596 } 2597 } 2598 return true; 2599 }, 2600 has({ 2601 _: { data, setupState, accessCache, ctx, appContext, propsOptions } 2602 }, key) { 2603 let normalizedProps; 2604 return !!accessCache[key] || data !== EMPTY_OBJ && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key); 2605 }, 2606 defineProperty(target, key, descriptor) { 2607 if (descriptor.get != null) { 2608 target._.accessCache[key] = 0; 2609 } else if (hasOwn(descriptor, "value")) { 2610 this.set(target, key, descriptor.value, null); 2611 } 2612 return Reflect.defineProperty(target, key, descriptor); 2613 } 2614}; 2615function normalizePropsOrEmits(props) { 2616 return isArray(props) ? props.reduce( 2617 (normalized, p2) => (normalized[p2] = null, normalized), 2618 {} 2619 ) : props; 2620} 2621let shouldCacheAccess = true; 2622function applyOptions(instance) { 2623 const options = resolveMergedOptions(instance); 2624 const publicThis = instance.proxy; 2625 const ctx = instance.ctx; 2626 shouldCacheAccess = false; 2627 if (options.beforeCreate) { 2628 callHook(options.beforeCreate, instance, "bc"); 2629 } 2630 const { 2631 // state 2632 data: dataOptions, 2633 computed: computedOptions, 2634 methods, 2635 watch: watchOptions, 2636 provide: provideOptions, 2637 inject: injectOptions, 2638 // lifecycle 2639 created, 2640 beforeMount, 2641 mounted, 2642 beforeUpdate, 2643 updated, 2644 activated, 2645 deactivated, 2646 beforeDestroy, 2647 beforeUnmount, 2648 destroyed, 2649 unmounted, 2650 render, 2651 renderTracked, 2652 renderTriggered, 2653 errorCaptured, 2654 serverPrefetch, 2655 // public API 2656 expose, 2657 inheritAttrs, 2658 // assets 2659 components, 2660 directives, 2661 filters 2662 } = options; 2663 const checkDuplicateProperties = null; 2664 if (injectOptions) { 2665 resolveInjections(injectOptions, ctx, checkDuplicateProperties); 2666 } 2667 if (methods) { 2668 for (const key in methods) { 2669 const methodHandler = methods[key]; 2670 if (isFunction(methodHandler)) { 2671 { 2672 ctx[key] = methodHandler.bind(publicThis); 2673 } 2674 } 2675 } 2676 } 2677 if (dataOptions) { 2678 const data = dataOptions.call(publicThis, publicThis); 2679 if (!isObject$1(data)) 2680 ; 2681 else { 2682 instance.data = reactive(data); 2683 } 2684 } 2685 shouldCacheAccess = true; 2686 if (computedOptions) { 2687 for (const key in computedOptions) { 2688 const opt = computedOptions[key]; 2689 const get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP; 2690 const set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : NOOP; 2691 const c = computed({ 2692 get, 2693 set 2694 }); 2695 Object.defineProperty(ctx, key, { 2696 enumerable: true, 2697 configurable: true, 2698 get: () => c.value, 2699 set: (v) => c.value = v 2700 }); 2701 } 2702 } 2703 if (watchOptions) { 2704 for (const key in watchOptions) { 2705 createWatcher(watchOptions[key], ctx, publicThis, key); 2706 } 2707 } 2708 if (provideOptions) { 2709 const provides = isFunction(provideOptions) ? provideOptions.call(publicThis) : provideOptions; 2710 Reflect.ownKeys(provides).forEach((key) => { 2711 provide(key, provides[key]); 2712 }); 2713 } 2714 if (created) { 2715 callHook(created, instance, "c"); 2716 } 2717 function registerLifecycleHook(register, hook) { 2718 if (isArray(hook)) { 2719 hook.forEach((_hook) => register(_hook.bind(publicThis))); 2720 } else if (hook) { 2721 register(hook.bind(publicThis)); 2722 } 2723 } 2724 registerLifecycleHook(onBeforeMount, beforeMount); 2725 registerLifecycleHook(onMounted, mounted); 2726 registerLifecycleHook(onBeforeUpdate, beforeUpdate); 2727 registerLifecycleHook(onUpdated, updated); 2728 registerLifecycleHook(onActivated, activated); 2729 registerLifecycleHook(onDeactivated, deactivated); 2730 registerLifecycleHook(onErrorCaptured, errorCaptured); 2731 registerLifecycleHook(onRenderTracked, renderTracked); 2732 registerLifecycleHook(onRenderTriggered, renderTriggered); 2733 registerLifecycleHook(onBeforeUnmount, beforeUnmount); 2734 registerLifecycleHook(onUnmounted, unmounted); 2735 registerLifecycleHook(onServerPrefetch, serverPrefetch); 2736 if (isArray(expose)) { 2737 if (expose.length) { 2738 const exposed = instance.exposed || (instance.exposed = {}); 2739 expose.forEach((key) => { 2740 Object.defineProperty(exposed, key, { 2741 get: () => publicThis[key], 2742 set: (val) => publicThis[key] = val 2743 }); 2744 }); 2745 } else if (!instance.exposed) { 2746 instance.exposed = {}; 2747 } 2748 } 2749 if (render && instance.render === NOOP) { 2750 instance.render = render; 2751 } 2752 if (inheritAttrs != null) { 2753 instance.inheritAttrs = inheritAttrs; 2754 } 2755 if (components) 2756 instance.components = components; 2757 if (directives) 2758 instance.directives = directives; 2759 if (serverPrefetch) { 2760 markAsyncBoundary(instance); 2761 } 2762} 2763function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP) { 2764 if (isArray(injectOptions)) { 2765 injectOptions = normalizeInject(injectOptions); 2766 } 2767 for (const key in injectOptions) { 2768 const opt = injectOptions[key]; 2769 let injected; 2770 if (isObject$1(opt)) { 2771 if ("default" in opt) { 2772 injected = inject( 2773 opt.from || key, 2774 opt.default, 2775 true 2776 ); 2777 } else { 2778 injected = inject(opt.from || key); 2779 } 2780 } else { 2781 injected = inject(opt); 2782 } 2783 if (isRef(injected)) { 2784 Object.defineProperty(ctx, key, { 2785 enumerable: true, 2786 configurable: true, 2787 get: () => injected.value, 2788 set: (v) => injected.value = v 2789 }); 2790 } else { 2791 ctx[key] = injected; 2792 } 2793 } 2794} 2795function callHook(hook, instance, type) { 2796 callWithAsyncErrorHandling( 2797 isArray(hook) ? hook.map((h) => h.bind(instance.proxy)) : hook.bind(instance.proxy), 2798 instance, 2799 type 2800 ); 2801} 2802function createWatcher(raw, ctx, publicThis, key) { 2803 let getter = key.includes(".") ? createPathGetter(publicThis, key) : () => publicThis[key]; 2804 if (isString(raw)) { 2805 const handler = ctx[raw]; 2806 if (isFunction(handler)) { 2807 { 2808 watch(getter, handler); 2809 } 2810 } 2811 } else if (isFunction(raw)) { 2812 { 2813 watch(getter, raw.bind(publicThis)); 2814 } 2815 } else if (isObject$1(raw)) { 2816 if (isArray(raw)) { 2817 raw.forEach((r) => createWatcher(r, ctx, publicThis, key)); 2818 } else { 2819 const handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler]; 2820 if (isFunction(handler)) { 2821 watch(getter, handler, raw); 2822 } 2823 } 2824 } else 2825 ; 2826} 2827function resolveMergedOptions(instance) { 2828 const base = instance.type; 2829 const { mixins, extends: extendsOptions } = base; 2830 const { 2831 mixins: globalMixins, 2832 optionsCache: cache, 2833 config: { optionMergeStrategies } 2834 } = instance.appContext; 2835 const cached = cache.get(base); 2836 let resolved; 2837 if (cached) { 2838 resolved = cached; 2839 } else if (!globalMixins.length && !mixins && !extendsOptions) { 2840 { 2841 resolved = base; 2842 } 2843 } else { 2844 resolved = {}; 2845 if (globalMixins.length) { 2846 globalMixins.forEach( 2847 (m) => mergeOptions(resolved, m, optionMergeStrategies, true) 2848 ); 2849 } 2850 mergeOptions(resolved, base, optionMergeStrategies); 2851 } 2852 if (isObject$1(base)) { 2853 cache.set(base, resolved); 2854 } 2855 return resolved; 2856} 2857function mergeOptions(to, from, strats, asMixin = false) { 2858 const { mixins, extends: extendsOptions } = from; 2859 if (extendsOptions) { 2860 mergeOptions(to, extendsOptions, strats, true); 2861 } 2862 if (mixins) { 2863 mixins.forEach( 2864 (m) => mergeOptions(to, m, strats, true) 2865 ); 2866 } 2867 for (const key in from) { 2868 if (asMixin && key === "expose") 2869 ; 2870 else { 2871 const strat = internalOptionMergeStrats[key] || strats && strats[key]; 2872 to[key] = strat ? strat(to[key], from[key]) : from[key]; 2873 } 2874 } 2875 return to; 2876} 2877const internalOptionMergeStrats = { 2878 data: mergeDataFn, 2879 props: mergeEmitsOrPropsOptions, 2880 emits: mergeEmitsOrPropsOptions, 2881 // objects 2882 methods: mergeObjectOptions, 2883 computed: mergeObjectOptions, 2884 // lifecycle 2885 beforeCreate: mergeAsArray, 2886 created: mergeAsArray, 2887 beforeMount: mergeAsArray, 2888 mounted: mergeAsArray, 2889 beforeUpdate: mergeAsArray, 2890 updated: mergeAsArray, 2891 beforeDestroy: mergeAsArray, 2892 beforeUnmount: mergeAsArray, 2893 destroyed: mergeAsArray, 2894 unmounted: mergeAsArray, 2895 activated: mergeAsArray, 2896 deactivated: mergeAsArray, 2897 errorCaptured: mergeAsArray, 2898 serverPrefetch: mergeAsArray, 2899 // assets 2900 components: mergeObjectOptions, 2901 directives: mergeObjectOptions, 2902 // watch 2903 watch: mergeWatchOptions, 2904 // provide / inject 2905 provide: mergeDataFn, 2906 inject: mergeInject 2907}; 2908function mergeDataFn(to, from) { 2909 if (!from) { 2910 return to; 2911 } 2912 if (!to) { 2913 return from; 2914 } 2915 return function mergedDataFn() { 2916 return extend( 2917 isFunction(to) ? to.call(this, this) : to, 2918 isFunction(from) ? from.call(this, this) : from 2919 ); 2920 }; 2921} 2922function mergeInject(to, from) { 2923 return mergeObjectOptions(normalizeInject(to), normalizeInject(from)); 2924} 2925function normalizeInject(raw) { 2926 if (isArray(raw)) { 2927 const res = {}; 2928 for (let i = 0; i < raw.length; i++) { 2929 res[raw[i]] = raw[i]; 2930 } 2931 return res; 2932 } 2933 return raw; 2934} 2935function mergeAsArray(to, from) { 2936 return to ? [...new Set([].concat(to, from))] : from; 2937} 2938function mergeObjectOptions(to, from) { 2939 return to ? extend(/* @__PURE__ */ Object.create(null), to, from) : from; 2940} 2941function mergeEmitsOrPropsOptions(to, from) { 2942 if (to) { 2943 if (isArray(to) && isArray(from)) { 2944 return [.../* @__PURE__ */ new Set([...to, ...from])]; 2945 } 2946 return extend(
vendor: 6,176 bytes, lines 2947-3159
2947 /* @__PURE__ */ Object.create(null), 2948 normalizePropsOrEmits(to), 2949 normalizePropsOrEmits(from != null ? from : {}) 2950 ); 2951 } else { 2952 return from; 2953 } 2954} 2955function mergeWatchOptions(to, from) { 2956 if (!to) 2957 return from; 2958 if (!from) 2959 return to; 2960 const merged = extend(/* @__PURE__ */ Object.create(null), to); 2961 for (const key in from) { 2962 merged[key] = mergeAsArray(to[key], from[key]); 2963 } 2964 return merged; 2965} 2966function createAppContext() { 2967 return { 2968 app: null, 2969 config: { 2970 isNativeTag: NO, 2971 performance: false, 2972 globalProperties: {}, 2973 optionMergeStrategies: {}, 2974 errorHandler: void 0, 2975 warnHandler: void 0, 2976 compilerOptions: {} 2977 }, 2978 mixins: [], 2979 components: {}, 2980 directives: {}, 2981 provides: /* @__PURE__ */ Object.create(null), 2982 optionsCache: /* @__PURE__ */ new WeakMap(), 2983 propsCache: /* @__PURE__ */ new WeakMap(), 2984 emitsCache: /* @__PURE__ */ new WeakMap() 2985 }; 2986} 2987let uid$1 = 0; 2988function createAppAPI(render, hydrate) { 2989 return function createApp2(rootComponent, rootProps = null) { 2990 if (!isFunction(rootComponent)) { 2991 rootComponent = extend({}, rootComponent); 2992 } 2993 if (rootProps != null && !isObject$1(rootProps)) { 2994 rootProps = null; 2995 } 2996 const context = createAppContext(); 2997 const installedPlugins = /* @__PURE__ */ new WeakSet(); 2998 const pluginCleanupFns = []; 2999 let isMounted = false; 3000 const app = context.app = { 3001 _uid: uid$1++, 3002 _component: rootComponent, 3003 _props: rootProps, 3004 _container: null, 3005 _context: context, 3006 _instance: null, 3007 version, 3008 get config() { 3009 return context.config; 3010 }, 3011 set config(v) { 3012 }, 3013 use(plugin, ...options) { 3014 if (installedPlugins.has(plugin)) 3015 ; 3016 else if (plugin && isFunction(plugin.install)) { 3017 installedPlugins.add(plugin); 3018 plugin.install(app, ...options); 3019 } else if (isFunction(plugin)) { 3020 installedPlugins.add(plugin); 3021 plugin(app, ...options); 3022 } else 3023 ; 3024 return app; 3025 }, 3026 mixin(mixin) { 3027 { 3028 if (!context.mixins.includes(mixin)) { 3029 context.mixins.push(mixin); 3030 } 3031 } 3032 return app; 3033 }, 3034 component(name, component) { 3035 if (!component) { 3036 return context.components[name]; 3037 } 3038 context.components[name] = component; 3039 return app; 3040 }, 3041 directive(name, directive) { 3042 if (!directive) { 3043 return context.directives[name]; 3044 } 3045 context.directives[name] = directive; 3046 return app; 3047 }, 3048 mount(rootContainer, isHydrate, namespace) { 3049 if (!isMounted) { 3050 const vnode = app._ceVNode || createVNode(rootComponent, rootProps); 3051 vnode.appContext = context; 3052 if (namespace === true) { 3053 namespace = "svg"; 3054 } else if (namespace === false) { 3055 namespace = void 0; 3056 } 3057 if (isHydrate && hydrate) { 3058 hydrate(vnode, rootContainer); 3059 } else { 3060 render(vnode, rootContainer, namespace); 3061 } 3062 isMounted = true; 3063 app._container = rootContainer; 3064 rootContainer.__vue_app__ = app; 3065 return getComponentPublicInstance(vnode.component); 3066 } 3067 }, 3068 onUnmount(cleanupFn) { 3069 pluginCleanupFns.push(cleanupFn); 3070 }, 3071 unmount() { 3072 if (isMounted) { 3073 callWithAsyncErrorHandling( 3074 pluginCleanupFns, 3075 app._instance, 3076 16 3077 ); 3078 render(null, app._container); 3079 delete app._container.__vue_app__; 3080 } 3081 }, 3082 provide(key, value) { 3083 context.provides[key] = value; 3084 return app; 3085 }, 3086 runWithContext(fn) { 3087 const lastApp = currentApp; 3088 currentApp = app; 3089 try { 3090 return fn(); 3091 } finally { 3092 currentApp = lastApp; 3093 } 3094 } 3095 }; 3096 return app; 3097 }; 3098} 3099let currentApp = null; 3100function provide(key, value) { 3101 if (!currentInstance) 3102 ; 3103 else { 3104 let provides = currentInstance.provides; 3105 const parentProvides = currentInstance.parent && currentInstance.parent.provides; 3106 if (parentProvides === provides) { 3107 provides = currentInstance.provides = Object.create(parentProvides); 3108 } 3109 provides[key] = value; 3110 } 3111} 3112function inject(key, defaultValue, treatDefaultAsFactory = false) { 3113 const instance = currentInstance || currentRenderingInstance; 3114 if (instance || currentApp) { 3115 const provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0; 3116 if (provides && key in provides) { 3117 return provides[key]; 3118 } else if (arguments.length > 1) { 3119 return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue; 3120 } else 3121 ; 3122 } 3123} 3124function hasInjectionContext() { 3125 return !!(currentInstance || currentRenderingInstance || currentApp); 3126} 3127const internalObjectProto = {}; 3128const createInternalObject = () => Object.create(internalObjectProto); 3129const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto; 3130function initProps(instance, rawProps, isStateful, isSSR = false) { 3131 const props = {}; 3132 const attrs = createInternalObject(); 3133 instance.propsDefaults = /* @__PURE__ */ Object.create(null); 3134 setFullProps(instance, rawProps, props, attrs); 3135 for (const key in instance.propsOptions[0]) { 3136 if (!(key in props)) { 3137 props[key] = void 0; 3138 } 3139 } 3140 if (isStateful) { 3141 instance.props = isSSR ? props : shallowReactive(props); 3142 } else { 3143 if (!instance.type.props) { 3144 instance.props = attrs; 3145 } else { 3146 instance.props = props; 3147 } 3148 } 3149 instance.attrs = attrs; 3150} 3151function updateProps(instance, rawProps, rawPrevProps, optimized) { 3152 const { 3153 props, 3154 attrs, 3155 vnode: { patchFlag } 3156 } = instance; 3157 const rawCurrentProps = toRaw(props); 3158 const [options] = instance.propsOptions; 3159 let hasAttrsChanged = false;
vendor: 4,448 bytes, lines 3160-3312
3160 if ( 3161 // always force full diff in dev 3162 // - #1942 if hmr is enabled with sfc component 3163 // - vite#872 non-sfc component used by sfc component 3164 (optimized || patchFlag > 0) && !(patchFlag & 16) 3165 ) { 3166 if (patchFlag & 8) { 3167 const propsToUpdate = instance.vnode.dynamicProps; 3168 for (let i = 0; i < propsToUpdate.length; i++) { 3169 let key = propsToUpdate[i]; 3170 if (isEmitListener(instance.emitsOptions, key)) { 3171 continue; 3172 } 3173 const value = rawProps[key]; 3174 if (options) { 3175 if (hasOwn(attrs, key)) { 3176 if (value !== attrs[key]) { 3177 attrs[key] = value; 3178 hasAttrsChanged = true; 3179 } 3180 } else { 3181 const camelizedKey = camelize(key); 3182 props[camelizedKey] = resolvePropValue( 3183 options, 3184 rawCurrentProps, 3185 camelizedKey, 3186 value, 3187 instance, 3188 false 3189 ); 3190 } 3191 } else { 3192 if (value !== attrs[key]) { 3193 attrs[key] = value; 3194 hasAttrsChanged = true; 3195 } 3196 } 3197 } 3198 } 3199 } else { 3200 if (setFullProps(instance, rawProps, props, attrs)) { 3201 hasAttrsChanged = true; 3202 } 3203 let kebabKey; 3204 for (const key in rawCurrentProps) { 3205 if (!rawProps || // for camelCase 3206 !hasOwn(rawProps, key) && // it's possible the original props was passed in as kebab-case 3207 // and converted to camelCase (#955) 3208 ((kebabKey = hyphenate(key)) === key || !hasOwn(rawProps, kebabKey))) { 3209 if (options) { 3210 if (rawPrevProps && // for camelCase 3211 (rawPrevProps[key] !== void 0 || // for kebab-case 3212 rawPrevProps[kebabKey] !== void 0)) { 3213 props[key] = resolvePropValue( 3214 options, 3215 rawCurrentProps, 3216 key, 3217 void 0, 3218 instance, 3219 true 3220 ); 3221 } 3222 } else { 3223 delete props[key]; 3224 } 3225 } 3226 } 3227 if (attrs !== rawCurrentProps) { 3228 for (const key in attrs) { 3229 if (!rawProps || !hasOwn(rawProps, key) && true) { 3230 delete attrs[key]; 3231 hasAttrsChanged = true; 3232 } 3233 } 3234 } 3235 } 3236 if (hasAttrsChanged) { 3237 trigger(instance.attrs, "set", ""); 3238 } 3239} 3240function setFullProps(instance, rawProps, props, attrs) { 3241 const [options, needCastKeys] = instance.propsOptions; 3242 let hasAttrsChanged = false; 3243 let rawCastValues; 3244 if (rawProps) { 3245 for (let key in rawProps) { 3246 if (isReservedProp(key)) { 3247 continue; 3248 } 3249 const value = rawProps[key]; 3250 let camelKey; 3251 if (options && hasOwn(options, camelKey = camelize(key))) { 3252 if (!needCastKeys || !needCastKeys.includes(camelKey)) { 3253 props[camelKey] = value; 3254 } else { 3255 (rawCastValues || (rawCastValues = {}))[camelKey] = value; 3256 } 3257 } else if (!isEmitListener(instance.emitsOptions, key)) { 3258 if (!(key in attrs) || value !== attrs[key]) { 3259 attrs[key] = value; 3260 hasAttrsChanged = true; 3261 } 3262 } 3263 } 3264 } 3265 if (needCastKeys) { 3266 const rawCurrentProps = toRaw(props); 3267 const castValues = rawCastValues || EMPTY_OBJ; 3268 for (let i = 0; i < needCastKeys.length; i++) { 3269 const key = needCastKeys[i]; 3270 props[key] = resolvePropValue( 3271 options, 3272 rawCurrentProps, 3273 key, 3274 castValues[key], 3275 instance, 3276 !hasOwn(castValues, key) 3277 ); 3278 } 3279 } 3280 return hasAttrsChanged; 3281} 3282function resolvePropValue(options, props, key, value, instance, isAbsent) { 3283 const opt = options[key]; 3284 if (opt != null) { 3285 const hasDefault = hasOwn(opt, "default"); 3286 if (hasDefault && value === void 0) { 3287 const defaultValue = opt.default; 3288 if (opt.type !== Function && !opt.skipFactory && isFunction(defaultValue)) { 3289 const { propsDefaults } = instance; 3290 if (key in propsDefaults) { 3291 value = propsDefaults[key]; 3292 } else { 3293 const reset = setCurrentInstance(instance); 3294 value = propsDefaults[key] = defaultValue.call( 3295 null, 3296 props 3297 ); 3298 reset(); 3299 } 3300 } else { 3301 value = defaultValue; 3302 } 3303 if (instance.ce) { 3304 instance.ce._setProp(key, value); 3305 } 3306 } 3307 if (opt[ 3308 0 3309 /* shouldCast */ 3310 ]) { 3311 if (isAbsent && !hasDefault) { 3312 value = false;
vendor: 15,285 bytes, lines 3313-3849
3313 } else if (opt[ 3314 1 3315 /* shouldCastTrue */ 3316 ] && (value === "" || value === hyphenate(key))) { 3317 value = true; 3318 } 3319 } 3320 } 3321 return value; 3322} 3323const mixinPropsCache = /* @__PURE__ */ new WeakMap(); 3324function normalizePropsOptions(comp, appContext, asMixin = false) { 3325 const cache = asMixin ? mixinPropsCache : appContext.propsCache; 3326 const cached = cache.get(comp); 3327 if (cached) { 3328 return cached; 3329 } 3330 const raw = comp.props; 3331 const normalized = {}; 3332 const needCastKeys = []; 3333 let hasExtends = false; 3334 if (!isFunction(comp)) { 3335 const extendProps = (raw2) => { 3336 hasExtends = true; 3337 const [props, keys] = normalizePropsOptions(raw2, appContext, true); 3338 extend(normalized, props); 3339 if (keys) 3340 needCastKeys.push(...keys); 3341 }; 3342 if (!asMixin && appContext.mixins.length) { 3343 appContext.mixins.forEach(extendProps); 3344 } 3345 if (comp.extends) { 3346 extendProps(comp.extends); 3347 } 3348 if (comp.mixins) { 3349 comp.mixins.forEach(extendProps); 3350 } 3351 } 3352 if (!raw && !hasExtends) { 3353 if (isObject$1(comp)) { 3354 cache.set(comp, EMPTY_ARR); 3355 } 3356 return EMPTY_ARR; 3357 } 3358 if (isArray(raw)) { 3359 for (let i = 0; i < raw.length; i++) { 3360 const normalizedKey = camelize(raw[i]); 3361 if (validatePropName(normalizedKey)) { 3362 normalized[normalizedKey] = EMPTY_OBJ; 3363 } 3364 } 3365 } else if (raw) { 3366 for (const key in raw) { 3367 const normalizedKey = camelize(key); 3368 if (validatePropName(normalizedKey)) { 3369 const opt = raw[key]; 3370 const prop = normalized[normalizedKey] = isArray(opt) || isFunction(opt) ? { type: opt } : extend({}, opt); 3371 const propType = prop.type; 3372 let shouldCast = false; 3373 let shouldCastTrue = true; 3374 if (isArray(propType)) { 3375 for (let index = 0; index < propType.length; ++index) { 3376 const type = propType[index]; 3377 const typeName = isFunction(type) && type.name; 3378 if (typeName === "Boolean") { 3379 shouldCast = true; 3380 break; 3381 } else if (typeName === "String") { 3382 shouldCastTrue = false; 3383 } 3384 } 3385 } else { 3386 shouldCast = isFunction(propType) && propType.name === "Boolean"; 3387 } 3388 prop[ 3389 0 3390 /* shouldCast */ 3391 ] = shouldCast; 3392 prop[ 3393 1 3394 /* shouldCastTrue */ 3395 ] = shouldCastTrue; 3396 if (shouldCast || hasOwn(prop, "default")) { 3397 needCastKeys.push(normalizedKey); 3398 } 3399 } 3400 } 3401 } 3402 const res = [normalized, needCastKeys]; 3403 if (isObject$1(comp)) { 3404 cache.set(comp, res); 3405 } 3406 return res; 3407} 3408function validatePropName(key) { 3409 if (key[0] !== "$" && !isReservedProp(key)) { 3410 return true; 3411 } 3412 return false; 3413} 3414const isInternalKey = (key) => key[0] === "_" || key === "$stable"; 3415const normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)]; 3416const normalizeSlot = (key, rawSlot, ctx) => { 3417 if (rawSlot._n) { 3418 return rawSlot; 3419 } 3420 const normalized = withCtx((...args) => { 3421 if (false) 3422 ; 3423 return normalizeSlotValue(rawSlot(...args)); 3424 }, ctx); 3425 normalized._c = false; 3426 return normalized; 3427}; 3428const normalizeObjectSlots = (rawSlots, slots, instance) => { 3429 const ctx = rawSlots._ctx; 3430 for (const key in rawSlots) { 3431 if (isInternalKey(key)) 3432 continue; 3433 const value = rawSlots[key]; 3434 if (isFunction(value)) { 3435 slots[key] = normalizeSlot(key, value, ctx); 3436 } else if (value != null) { 3437 const normalized = normalizeSlotValue(value); 3438 slots[key] = () => normalized; 3439 } 3440 } 3441}; 3442const normalizeVNodeSlots = (instance, children) => { 3443 const normalized = normalizeSlotValue(children); 3444 instance.slots.default = () => normalized; 3445}; 3446const assignSlots = (slots, children, optimized) => { 3447 for (const key in children) { 3448 if (optimized || key !== "_") { 3449 slots[key] = children[key]; 3450 } 3451 } 3452}; 3453const initSlots = (instance, children, optimized) => { 3454 const slots = instance.slots = createInternalObject(); 3455 if (instance.vnode.shapeFlag & 32) { 3456 const type = children._; 3457 if (type) { 3458 assignSlots(slots, children, optimized); 3459 if (optimized) { 3460 def(slots, "_", type, true); 3461 } 3462 } else { 3463 normalizeObjectSlots(children, slots); 3464 } 3465 } else if (children) { 3466 normalizeVNodeSlots(instance, children); 3467 } 3468}; 3469const updateSlots = (instance, children, optimized) => { 3470 const { vnode, slots } = instance; 3471 let needDeletionCheck = true; 3472 let deletionComparisonTarget = EMPTY_OBJ; 3473 if (vnode.shapeFlag & 32) { 3474 const type = children._; 3475 if (type) { 3476 if (optimized && type === 1) { 3477 needDeletionCheck = false; 3478 } else { 3479 assignSlots(slots, children, optimized); 3480 } 3481 } else { 3482 needDeletionCheck = !children.$stable; 3483 normalizeObjectSlots(children, slots); 3484 } 3485 deletionComparisonTarget = children; 3486 } else if (children) { 3487 normalizeVNodeSlots(instance, children); 3488 deletionComparisonTarget = { default: 1 }; 3489 } 3490 if (needDeletionCheck) { 3491 for (const key in slots) { 3492 if (!isInternalKey(key) && deletionComparisonTarget[key] == null) { 3493 delete slots[key]; 3494 } 3495 } 3496 } 3497}; 3498const queuePostRenderEffect = queueEffectWithSuspense; 3499function createRenderer(options) { 3500 return baseCreateRenderer(options); 3501} 3502function baseCreateRenderer(options, createHydrationFns) { 3503 const target = getGlobalThis(); 3504 target.__VUE__ = true; 3505 const { 3506 insert: hostInsert, 3507 remove: hostRemove, 3508 patchProp: hostPatchProp, 3509 createElement: hostCreateElement, 3510 createText: hostCreateText, 3511 createComment: hostCreateComment, 3512 setText: hostSetText, 3513 setElementText: hostSetElementText, 3514 parentNode: hostParentNode, 3515 nextSibling: hostNextSibling, 3516 setScopeId: hostSetScopeId = NOOP, 3517 insertStaticContent: hostInsertStaticContent 3518 } = options; 3519 const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, namespace = void 0, slotScopeIds = null, optimized = !!n2.dynamicChildren) => { 3520 if (n1 === n2) { 3521 return; 3522 } 3523 if (n1 && !isSameVNodeType(n1, n2)) { 3524 anchor = getNextHostNode(n1); 3525 unmount(n1, parentComponent, parentSuspense, true); 3526 n1 = null; 3527 } 3528 if (n2.patchFlag === -2) { 3529 optimized = false; 3530 n2.dynamicChildren = null; 3531 } 3532 const { type, ref: ref2, shapeFlag } = n2; 3533 switch (type) { 3534 case Text: 3535 processText(n1, n2, container, anchor); 3536 break; 3537 case Comment: 3538 processCommentNode(n1, n2, container, anchor); 3539 break; 3540 case Static: 3541 if (n1 == null) { 3542 mountStaticNode(n2, container, anchor, namespace); 3543 } 3544 break; 3545 case Fragment: 3546 processFragment( 3547 n1, 3548 n2, 3549 container, 3550 anchor, 3551 parentComponent, 3552 parentSuspense, 3553 namespace, 3554 slotScopeIds, 3555 optimized 3556 ); 3557 break; 3558 default: 3559 if (shapeFlag & 1) { 3560 processElement( 3561 n1, 3562 n2, 3563 container, 3564 anchor, 3565 parentComponent, 3566 parentSuspense, 3567 namespace, 3568 slotScopeIds, 3569 optimized 3570 ); 3571 } else if (shapeFlag & 6) { 3572 processComponent( 3573 n1, 3574 n2, 3575 container, 3576 anchor, 3577 parentComponent, 3578 parentSuspense, 3579 namespace, 3580 slotScopeIds, 3581 optimized 3582 ); 3583 } else if (shapeFlag & 64) { 3584 type.process( 3585 n1, 3586 n2, 3587 container, 3588 anchor, 3589 parentComponent, 3590 parentSuspense, 3591 namespace, 3592 slotScopeIds, 3593 optimized, 3594 internals 3595 ); 3596 } else if (shapeFlag & 128) { 3597 type.process( 3598 n1, 3599 n2, 3600 container, 3601 anchor, 3602 parentComponent, 3603 parentSuspense, 3604 namespace, 3605 slotScopeIds, 3606 optimized, 3607 internals 3608 ); 3609 } else 3610 ; 3611 } 3612 if (ref2 != null && parentComponent) { 3613 setRef(ref2, n1 && n1.ref, parentSuspense, n2 || n1, !n2); 3614 } 3615 }; 3616 const processText = (n1, n2, container, anchor) => { 3617 if (n1 == null) { 3618 hostInsert( 3619 n2.el = hostCreateText(n2.children), 3620 container, 3621 anchor 3622 ); 3623 } else { 3624 const el = n2.el = n1.el; 3625 if (n2.children !== n1.children) { 3626 hostSetText(el, n2.children); 3627 } 3628 } 3629 }; 3630 const processCommentNode = (n1, n2, container, anchor) => { 3631 if (n1 == null) { 3632 hostInsert( 3633 n2.el = hostCreateComment(n2.children || ""), 3634 container, 3635 anchor 3636 ); 3637 } else { 3638 n2.el = n1.el; 3639 } 3640 }; 3641 const mountStaticNode = (n2, container, anchor, namespace) => { 3642 [n2.el, n2.anchor] = hostInsertStaticContent( 3643 n2.children, 3644 container, 3645 anchor, 3646 namespace, 3647 n2.el, 3648 n2.anchor 3649 ); 3650 }; 3651 const moveStaticNode = ({ el, anchor }, container, nextSibling) => { 3652 let next; 3653 while (el && el !== anchor) { 3654 next = hostNextSibling(el); 3655 hostInsert(el, container, nextSibling); 3656 el = next; 3657 } 3658 hostInsert(anchor, container, nextSibling); 3659 }; 3660 const removeStaticNode = ({ el, anchor }) => { 3661 let next; 3662 while (el && el !== anchor) { 3663 next = hostNextSibling(el); 3664 hostRemove(el); 3665 el = next; 3666 } 3667 hostRemove(anchor); 3668 }; 3669 const processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 3670 if (n2.type === "svg") { 3671 namespace = "svg"; 3672 } else if (n2.type === "math") { 3673 namespace = "mathml"; 3674 } 3675 if (n1 == null) { 3676 mountElement( 3677 n2, 3678 container, 3679 anchor, 3680 parentComponent, 3681 parentSuspense, 3682 namespace, 3683 slotScopeIds, 3684 optimized 3685 ); 3686 } else { 3687 patchElement( 3688 n1, 3689 n2, 3690 parentComponent, 3691 parentSuspense, 3692 namespace, 3693 slotScopeIds, 3694 optimized 3695 ); 3696 } 3697 }; 3698 const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 3699 let el; 3700 let vnodeHook; 3701 const { props, shapeFlag, transition, dirs } = vnode; 3702 el = vnode.el = hostCreateElement( 3703 vnode.type, 3704 namespace, 3705 props && props.is, 3706 props 3707 ); 3708 if (shapeFlag & 8) { 3709 hostSetElementText(el, vnode.children); 3710 } else if (shapeFlag & 16) { 3711 mountChildren( 3712 vnode.children, 3713 el, 3714 null, 3715 parentComponent, 3716 parentSuspense, 3717 resolveChildrenNamespace(vnode, namespace), 3718 slotScopeIds, 3719 optimized 3720 ); 3721 } 3722 if (dirs) { 3723 invokeDirectiveHook(vnode, null, parentComponent, "created"); 3724 } 3725 setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent); 3726 if (props) { 3727 for (const key in props) { 3728 if (key !== "value" && !isReservedProp(key)) { 3729 hostPatchProp(el, key, null, props[key], namespace, parentComponent); 3730 } 3731 } 3732 if ("value" in props) { 3733 hostPatchProp(el, "value", null, props.value, namespace); 3734 } 3735 if (vnodeHook = props.onVnodeBeforeMount) { 3736 invokeVNodeHook(vnodeHook, parentComponent, vnode); 3737 } 3738 } 3739 if (dirs) { 3740 invokeDirectiveHook(vnode, null, parentComponent, "beforeMount"); 3741 } 3742 const needCallTransitionHooks = needTransition(parentSuspense, transition); 3743 if (needCallTransitionHooks) { 3744 transition.beforeEnter(el); 3745 } 3746 hostInsert(el, container, anchor); 3747 if ((vnodeHook = props && props.onVnodeMounted) || needCallTransitionHooks || dirs) { 3748 queuePostRenderEffect(() => { 3749 vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); 3750 needCallTransitionHooks && transition.enter(el); 3751 dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted"); 3752 }, parentSuspense); 3753 } 3754 }; 3755 const setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => { 3756 if (scopeId) { 3757 hostSetScopeId(el, scopeId); 3758 } 3759 if (slotScopeIds) { 3760 for (let i = 0; i < slotScopeIds.length; i++) { 3761 hostSetScopeId(el, slotScopeIds[i]); 3762 } 3763 } 3764 if (parentComponent) { 3765 let subTree = parentComponent.subTree; 3766 if (vnode === subTree || isSuspense(subTree.type) && (subTree.ssContent === vnode || subTree.ssFallback === vnode)) { 3767 const parentVNode = parentComponent.vnode; 3768 setScopeId( 3769 el, 3770 parentVNode, 3771 parentVNode.scopeId, 3772 parentVNode.slotScopeIds, 3773 parentComponent.parent 3774 ); 3775 } 3776 } 3777 }; 3778 const mountChildren = (children, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, start = 0) => { 3779 for (let i = start; i < children.length; i++) { 3780 const child = children[i] = optimized ? cloneIfMounted(children[i]) : normalizeVNode(children[i]); 3781 patch( 3782 null, 3783 child, 3784 container, 3785 anchor, 3786 parentComponent, 3787 parentSuspense, 3788 namespace, 3789 slotScopeIds, 3790 optimized 3791 ); 3792 } 3793 }; 3794 const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 3795 const el = n2.el = n1.el; 3796 let { patchFlag, dynamicChildren, dirs } = n2; 3797 patchFlag |= n1.patchFlag & 16; 3798 const oldProps = n1.props || EMPTY_OBJ; 3799 const newProps = n2.props || EMPTY_OBJ; 3800 let vnodeHook; 3801 parentComponent && toggleRecurse(parentComponent, false); 3802 if (vnodeHook = newProps.onVnodeBeforeUpdate) { 3803 invokeVNodeHook(vnodeHook, parentComponent, n2, n1); 3804 } 3805 if (dirs) { 3806 invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate"); 3807 } 3808 parentComponent && toggleRecurse(parentComponent, true); 3809 if (oldProps.innerHTML && newProps.innerHTML == null || oldProps.textContent && newProps.textContent == null) { 3810 hostSetElementText(el, ""); 3811 } 3812 if (dynamicChildren) { 3813 patchBlockChildren( 3814 n1.dynamicChildren, 3815 dynamicChildren, 3816 el, 3817 parentComponent, 3818 parentSuspense, 3819 resolveChildrenNamespace(n2, namespace), 3820 slotScopeIds 3821 ); 3822 } else if (!optimized) { 3823 patchChildren( 3824 n1, 3825 n2, 3826 el, 3827 null, 3828 parentComponent, 3829 parentSuspense, 3830 resolveChildrenNamespace(n2, namespace), 3831 slotScopeIds, 3832 false 3833 ); 3834 } 3835 if (patchFlag > 0) { 3836 if (patchFlag & 16) { 3837 patchProps(el, oldProps, newProps, parentComponent, namespace); 3838 } else { 3839 if (patchFlag & 2) { 3840 if (oldProps.class !== newProps.class) { 3841 hostPatchProp(el, "class", null, newProps.class, namespace); 3842 } 3843 } 3844 if (patchFlag & 4) { 3845 hostPatchProp(el, "style", oldProps.style, newProps.style, namespace); 3846 } 3847 if (patchFlag & 8) { 3848 const propsToUpdate = n2.dynamicProps; 3849 for (let i = 0; i < propsToUpdate.length; i++) {
vendor: 4,707 bytes, lines 3850-3974
3850 const key = propsToUpdate[i]; 3851 const prev = oldProps[key]; 3852 const next = newProps[key]; 3853 if (next !== prev || key === "value") { 3854 hostPatchProp(el, key, prev, next, namespace, parentComponent); 3855 } 3856 } 3857 } 3858 } 3859 if (patchFlag & 1) { 3860 if (n1.children !== n2.children) { 3861 hostSetElementText(el, n2.children); 3862 } 3863 } 3864 } else if (!optimized && dynamicChildren == null) { 3865 patchProps(el, oldProps, newProps, parentComponent, namespace); 3866 } 3867 if ((vnodeHook = newProps.onVnodeUpdated) || dirs) { 3868 queuePostRenderEffect(() => { 3869 vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1); 3870 dirs && invokeDirectiveHook(n2, n1, parentComponent, "updated"); 3871 }, parentSuspense); 3872 } 3873 }; 3874 const patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, namespace, slotScopeIds) => { 3875 for (let i = 0; i < newChildren.length; i++) { 3876 const oldVNode = oldChildren[i]; 3877 const newVNode = newChildren[i]; 3878 const container = ( 3879 // oldVNode may be an errored async setup() component inside Suspense 3880 // which will not have a mounted element 3881 oldVNode.el && // - In the case of a Fragment, we need to provide the actual parent 3882 // of the Fragment itself so it can move its children. 3883 (oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement 3884 // which also requires the correct parent container 3885 !isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything. 3886 oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : ( 3887 // In other cases, the parent container is not actually used so we 3888 // just pass the block element here to avoid a DOM parentNode call. 3889 fallbackContainer 3890 ) 3891 ); 3892 patch( 3893 oldVNode, 3894 newVNode, 3895 container, 3896 null, 3897 parentComponent, 3898 parentSuspense, 3899 namespace, 3900 slotScopeIds, 3901 true 3902 ); 3903 } 3904 }; 3905 const patchProps = (el, oldProps, newProps, parentComponent, namespace) => { 3906 if (oldProps !== newProps) { 3907 if (oldProps !== EMPTY_OBJ) { 3908 for (const key in oldProps) { 3909 if (!isReservedProp(key) && !(key in newProps)) { 3910 hostPatchProp( 3911 el, 3912 key, 3913 oldProps[key], 3914 null, 3915 namespace, 3916 parentComponent 3917 ); 3918 } 3919 } 3920 } 3921 for (const key in newProps) { 3922 if (isReservedProp(key)) 3923 continue; 3924 const next = newProps[key]; 3925 const prev = oldProps[key]; 3926 if (next !== prev && key !== "value") { 3927 hostPatchProp(el, key, prev, next, namespace, parentComponent); 3928 } 3929 } 3930 if ("value" in newProps) { 3931 hostPatchProp(el, "value", oldProps.value, newProps.value, namespace); 3932 } 3933 } 3934 }; 3935 const processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 3936 const fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText(""); 3937 const fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText(""); 3938 let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2; 3939 if (fragmentSlotScopeIds) { 3940 slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; 3941 } 3942 if (n1 == null) { 3943 hostInsert(fragmentStartAnchor, container, anchor); 3944 hostInsert(fragmentEndAnchor, container, anchor); 3945 mountChildren( 3946 // #10007 3947 // such fragment like `<></>` will be compiled into 3948 // a fragment which doesn't have a children. 3949 // In this case fallback to an empty array 3950 n2.children || [], 3951 container, 3952 fragmentEndAnchor, 3953 parentComponent, 3954 parentSuspense, 3955 namespace, 3956 slotScopeIds, 3957 optimized 3958 ); 3959 } else { 3960 if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result 3961 // of renderSlot() with no valid children 3962 n1.dynamicChildren) { 3963 patchBlockChildren( 3964 n1.dynamicChildren, 3965 dynamicChildren, 3966 container, 3967 parentComponent, 3968 parentSuspense, 3969 namespace, 3970 slotScopeIds 3971 ); 3972 if ( 3973 // #2080 if the stable fragment has a key, it's a <template v-for> that may 3974 // get moved around. Make sure all root level vnodes inherit el.
vendor: 12,362 bytes, lines 3975-4415
3975 // #2134 or if it's a component root, it may also get moved around 3976 // as the component is being moved. 3977 n2.key != null || parentComponent && n2 === parentComponent.subTree 3978 ) { 3979 traverseStaticChildren( 3980 n1, 3981 n2, 3982 true 3983 /* shallow */ 3984 ); 3985 } 3986 } else { 3987 patchChildren( 3988 n1, 3989 n2, 3990 container, 3991 fragmentEndAnchor, 3992 parentComponent, 3993 parentSuspense, 3994 namespace, 3995 slotScopeIds, 3996 optimized 3997 ); 3998 } 3999 } 4000 }; 4001 const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 4002 n2.slotScopeIds = slotScopeIds; 4003 if (n1 == null) { 4004 if (n2.shapeFlag & 512) { 4005 parentComponent.ctx.activate( 4006 n2, 4007 container, 4008 anchor, 4009 namespace, 4010 optimized 4011 ); 4012 } else { 4013 mountComponent( 4014 n2, 4015 container, 4016 anchor, 4017 parentComponent, 4018 parentSuspense, 4019 namespace, 4020 optimized 4021 ); 4022 } 4023 } else { 4024 updateComponent(n1, n2, optimized); 4025 } 4026 }; 4027 const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, namespace, optimized) => { 4028 const instance = initialVNode.component = createComponentInstance( 4029 initialVNode, 4030 parentComponent, 4031 parentSuspense 4032 ); 4033 if (isKeepAlive(initialVNode)) { 4034 instance.ctx.renderer = internals; 4035 } 4036 { 4037 setupComponent(instance, false, optimized); 4038 } 4039 if (instance.asyncDep) { 4040 parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized); 4041 if (!initialVNode.el) { 4042 const placeholder = instance.subTree = createVNode(Comment); 4043 processCommentNode(null, placeholder, container, anchor); 4044 } 4045 } else { 4046 setupRenderEffect( 4047 instance, 4048 initialVNode, 4049 container, 4050 anchor, 4051 parentSuspense, 4052 namespace, 4053 optimized 4054 ); 4055 } 4056 }; 4057 const updateComponent = (n1, n2, optimized) => { 4058 const instance = n2.component = n1.component; 4059 if (shouldUpdateComponent(n1, n2, optimized)) { 4060 if (instance.asyncDep && !instance.asyncResolved) { 4061 updateComponentPreRender(instance, n2, optimized); 4062 return; 4063 } else { 4064 instance.next = n2; 4065 instance.update(); 4066 } 4067 } else { 4068 n2.el = n1.el; 4069 instance.vnode = n2; 4070 } 4071 }; 4072 const setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, namespace, optimized) => { 4073 const componentUpdateFn = () => { 4074 if (!instance.isMounted) { 4075 let vnodeHook; 4076 const { el, props } = initialVNode; 4077 const { bm, m, parent, root, type } = instance; 4078 const isAsyncWrapperVNode = isAsyncWrapper(initialVNode); 4079 toggleRecurse(instance, false); 4080 if (bm) { 4081 invokeArrayFns(bm); 4082 } 4083 if (!isAsyncWrapperVNode && (vnodeHook = props && props.onVnodeBeforeMount)) { 4084 invokeVNodeHook(vnodeHook, parent, initialVNode); 4085 } 4086 toggleRecurse(instance, true); 4087 if (el && hydrateNode) { 4088 const hydrateSubTree = () => { 4089 instance.subTree = renderComponentRoot(instance); 4090 hydrateNode( 4091 el, 4092 instance.subTree, 4093 instance, 4094 parentSuspense, 4095 null 4096 ); 4097 }; 4098 if (isAsyncWrapperVNode && type.__asyncHydrate) { 4099 type.__asyncHydrate( 4100 el, 4101 instance, 4102 hydrateSubTree 4103 ); 4104 } else { 4105 hydrateSubTree(); 4106 } 4107 } else { 4108 if (root.ce) { 4109 root.ce._injectChildStyle(type); 4110 } 4111 const subTree = instance.subTree = renderComponentRoot(instance); 4112 patch( 4113 null, 4114 subTree, 4115 container, 4116 anchor, 4117 instance, 4118 parentSuspense, 4119 namespace 4120 ); 4121 initialVNode.el = subTree.el; 4122 } 4123 if (m) { 4124 queuePostRenderEffect(m, parentSuspense); 4125 } 4126 if (!isAsyncWrapperVNode && (vnodeHook = props && props.onVnodeMounted)) { 4127 const scopedInitialVNode = initialVNode; 4128 queuePostRenderEffect( 4129 () => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), 4130 parentSuspense 4131 ); 4132 } 4133 if (initialVNode.shapeFlag & 256 || parent && isAsyncWrapper(parent.vnode) && parent.vnode.shapeFlag & 256) { 4134 instance.a && queuePostRenderEffect(instance.a, parentSuspense); 4135 } 4136 instance.isMounted = true; 4137 initialVNode = container = anchor = null; 4138 } else { 4139 let { next, bu, u, parent, vnode } = instance; 4140 { 4141 const nonHydratedAsyncRoot = locateNonHydratedAsyncRoot(instance); 4142 if (nonHydratedAsyncRoot) { 4143 if (next) { 4144 next.el = vnode.el; 4145 updateComponentPreRender(instance, next, optimized); 4146 } 4147 nonHydratedAsyncRoot.asyncDep.then(() => { 4148 if (!instance.isUnmounted) { 4149 componentUpdateFn(); 4150 } 4151 }); 4152 return; 4153 } 4154 } 4155 let originNext = next; 4156 let vnodeHook; 4157 toggleRecurse(instance, false); 4158 if (next) { 4159 next.el = vnode.el; 4160 updateComponentPreRender(instance, next, optimized); 4161 } else { 4162 next = vnode; 4163 } 4164 if (bu) { 4165 invokeArrayFns(bu); 4166 } 4167 if (vnodeHook = next.props && next.props.onVnodeBeforeUpdate) { 4168 invokeVNodeHook(vnodeHook, parent, next, vnode); 4169 } 4170 toggleRecurse(instance, true); 4171 const nextTree = renderComponentRoot(instance); 4172 const prevTree = instance.subTree; 4173 instance.subTree = nextTree; 4174 patch( 4175 prevTree, 4176 nextTree, 4177 // parent may have changed if it's in a teleport 4178 hostParentNode(prevTree.el), 4179 // anchor may have changed if it's in a fragment 4180 getNextHostNode(prevTree), 4181 instance, 4182 parentSuspense, 4183 namespace 4184 ); 4185 next.el = nextTree.el; 4186 if (originNext === null) { 4187 updateHOCHostEl(instance, nextTree.el); 4188 } 4189 if (u) { 4190 queuePostRenderEffect(u, parentSuspense); 4191 } 4192 if (vnodeHook = next.props && next.props.onVnodeUpdated) { 4193 queuePostRenderEffect( 4194 () => invokeVNodeHook(vnodeHook, parent, next, vnode), 4195 parentSuspense 4196 ); 4197 } 4198 } 4199 }; 4200 instance.scope.on(); 4201 const effect = instance.effect = new ReactiveEffect(componentUpdateFn); 4202 instance.scope.off(); 4203 const update = instance.update = effect.run.bind(effect); 4204 const job = instance.job = effect.runIfDirty.bind(effect); 4205 job.i = instance; 4206 job.id = instance.uid; 4207 effect.scheduler = () => queueJob(job); 4208 toggleRecurse(instance, true); 4209 update(); 4210 }; 4211 const updateComponentPreRender = (instance, nextVNode, optimized) => { 4212 nextVNode.component = instance; 4213 const prevProps = instance.vnode.props; 4214 instance.vnode = nextVNode; 4215 instance.next = null; 4216 updateProps(instance, nextVNode.props, prevProps, optimized); 4217 updateSlots(instance, nextVNode.children, optimized); 4218 pauseTracking(); 4219 flushPreFlushCbs(instance); 4220 resetTracking(); 4221 }; 4222 const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized = false) => { 4223 const c1 = n1 && n1.children; 4224 const prevShapeFlag = n1 ? n1.shapeFlag : 0; 4225 const c2 = n2.children; 4226 const { patchFlag, shapeFlag } = n2; 4227 if (patchFlag > 0) { 4228 if (patchFlag & 128) { 4229 patchKeyedChildren( 4230 c1, 4231 c2, 4232 container, 4233 anchor, 4234 parentComponent, 4235 parentSuspense, 4236 namespace, 4237 slotScopeIds, 4238 optimized 4239 ); 4240 return; 4241 } else if (patchFlag & 256) { 4242 patchUnkeyedChildren( 4243 c1, 4244 c2, 4245 container, 4246 anchor, 4247 parentComponent, 4248 parentSuspense, 4249 namespace, 4250 slotScopeIds, 4251 optimized 4252 ); 4253 return; 4254 } 4255 } 4256 if (shapeFlag & 8) { 4257 if (prevShapeFlag & 16) { 4258 unmountChildren(c1, parentComponent, parentSuspense); 4259 } 4260 if (c2 !== c1) { 4261 hostSetElementText(container, c2); 4262 } 4263 } else { 4264 if (prevShapeFlag & 16) { 4265 if (shapeFlag & 16) { 4266 patchKeyedChildren( 4267 c1, 4268 c2, 4269 container, 4270 anchor, 4271 parentComponent, 4272 parentSuspense, 4273 namespace, 4274 slotScopeIds, 4275 optimized 4276 ); 4277 } else { 4278 unmountChildren(c1, parentComponent, parentSuspense, true); 4279 } 4280 } else { 4281 if (prevShapeFlag & 8) { 4282 hostSetElementText(container, ""); 4283 } 4284 if (shapeFlag & 16) { 4285 mountChildren( 4286 c2, 4287 container, 4288 anchor, 4289 parentComponent, 4290 parentSuspense, 4291 namespace, 4292 slotScopeIds, 4293 optimized 4294 ); 4295 } 4296 } 4297 } 4298 }; 4299 const patchUnkeyedChildren = (c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 4300 c1 = c1 || EMPTY_ARR; 4301 c2 = c2 || EMPTY_ARR; 4302 const oldLength = c1.length; 4303 const newLength = c2.length; 4304 const commonLength = Math.min(oldLength, newLength); 4305 let i; 4306 for (i = 0; i < commonLength; i++) { 4307 const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]); 4308 patch( 4309 c1[i], 4310 nextChild, 4311 container, 4312 null, 4313 parentComponent, 4314 parentSuspense, 4315 namespace, 4316 slotScopeIds, 4317 optimized 4318 ); 4319 } 4320 if (oldLength > newLength) { 4321 unmountChildren( 4322 c1, 4323 parentComponent, 4324 parentSuspense, 4325 true, 4326 false, 4327 commonLength 4328 ); 4329 } else { 4330 mountChildren( 4331 c2, 4332 container, 4333 anchor, 4334 parentComponent, 4335 parentSuspense, 4336 namespace, 4337 slotScopeIds, 4338 optimized, 4339 commonLength 4340 ); 4341 } 4342 }; 4343 const patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 4344 let i = 0; 4345 const l2 = c2.length; 4346 let e1 = c1.length - 1; 4347 let e2 = l2 - 1; 4348 while (i <= e1 && i <= e2) { 4349 const n1 = c1[i]; 4350 const n2 = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]); 4351 if (isSameVNodeType(n1, n2)) { 4352 patch( 4353 n1, 4354 n2, 4355 container, 4356 null, 4357 parentComponent, 4358 parentSuspense, 4359 namespace, 4360 slotScopeIds, 4361 optimized 4362 ); 4363 } else { 4364 break; 4365 } 4366 i++; 4367 } 4368 while (i <= e1 && i <= e2) { 4369 const n1 = c1[e1]; 4370 const n2 = c2[e2] = optimized ? cloneIfMounted(c2[e2]) : normalizeVNode(c2[e2]); 4371 if (isSameVNodeType(n1, n2)) { 4372 patch( 4373 n1, 4374 n2, 4375 container, 4376 null, 4377 parentComponent, 4378 parentSuspense, 4379 namespace, 4380 slotScopeIds, 4381 optimized 4382 ); 4383 } else { 4384 break; 4385 } 4386 e1--; 4387 e2--; 4388 } 4389 if (i > e1) { 4390 if (i <= e2) { 4391 const nextPos = e2 + 1; 4392 const anchor = nextPos < l2 ? c2[nextPos].el : parentAnchor; 4393 while (i <= e2) { 4394 patch( 4395 null, 4396 c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]), 4397 container, 4398 anchor, 4399 parentComponent, 4400 parentSuspense, 4401 namespace, 4402 slotScopeIds, 4403 optimized 4404 ); 4405 i++; 4406 } 4407 } 4408 } else if (i > e2) { 4409 while (i <= e1) { 4410 unmount(c1[i], parentComponent, parentSuspense, true); 4411 i++; 4412 } 4413 } else { 4414 const s1 = i; 4415 const s2 = i;
vendor: 4,496 bytes, lines 4416-4563
4416 const keyToNewIndexMap = /* @__PURE__ */ new Map(); 4417 for (i = s2; i <= e2; i++) { 4418 const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]); 4419 if (nextChild.key != null) { 4420 keyToNewIndexMap.set(nextChild.key, i); 4421 } 4422 } 4423 let j; 4424 let patched = 0; 4425 const toBePatched = e2 - s2 + 1; 4426 let moved = false; 4427 let maxNewIndexSoFar = 0; 4428 const newIndexToOldIndexMap = new Array(toBePatched); 4429 for (i = 0; i < toBePatched; i++) 4430 newIndexToOldIndexMap[i] = 0; 4431 for (i = s1; i <= e1; i++) { 4432 const prevChild = c1[i]; 4433 if (patched >= toBePatched) { 4434 unmount(prevChild, parentComponent, parentSuspense, true); 4435 continue; 4436 } 4437 let newIndex; 4438 if (prevChild.key != null) { 4439 newIndex = keyToNewIndexMap.get(prevChild.key); 4440 } else { 4441 for (j = s2; j <= e2; j++) { 4442 if (newIndexToOldIndexMap[j - s2] === 0 && isSameVNodeType(prevChild, c2[j])) { 4443 newIndex = j; 4444 break; 4445 } 4446 } 4447 } 4448 if (newIndex === void 0) { 4449 unmount(prevChild, parentComponent, parentSuspense, true); 4450 } else { 4451 newIndexToOldIndexMap[newIndex - s2] = i + 1; 4452 if (newIndex >= maxNewIndexSoFar) { 4453 maxNewIndexSoFar = newIndex; 4454 } else { 4455 moved = true; 4456 } 4457 patch( 4458 prevChild, 4459 c2[newIndex], 4460 container, 4461 null, 4462 parentComponent, 4463 parentSuspense, 4464 namespace, 4465 slotScopeIds, 4466 optimized 4467 ); 4468 patched++; 4469 } 4470 } 4471 const increasingNewIndexSequence = moved ? getSequence(newIndexToOldIndexMap) : EMPTY_ARR; 4472 j = increasingNewIndexSequence.length - 1; 4473 for (i = toBePatched - 1; i >= 0; i--) { 4474 const nextIndex = s2 + i; 4475 const nextChild = c2[nextIndex]; 4476 const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor; 4477 if (newIndexToOldIndexMap[i] === 0) { 4478 patch( 4479 null, 4480 nextChild, 4481 container, 4482 anchor, 4483 parentComponent, 4484 parentSuspense, 4485 namespace, 4486 slotScopeIds, 4487 optimized 4488 ); 4489 } else if (moved) { 4490 if (j < 0 || i !== increasingNewIndexSequence[j]) { 4491 move(nextChild, container, anchor, 2); 4492 } else { 4493 j--; 4494 } 4495 } 4496 } 4497 } 4498 }; 4499 const move = (vnode, container, anchor, moveType, parentSuspense = null) => { 4500 const { el, type, transition, children, shapeFlag } = vnode; 4501 if (shapeFlag & 6) { 4502 move(vnode.component.subTree, container, anchor, moveType); 4503 return; 4504 } 4505 if (shapeFlag & 128) { 4506 vnode.suspense.move(container, anchor, moveType); 4507 return; 4508 } 4509 if (shapeFlag & 64) { 4510 type.move(vnode, container, anchor, internals); 4511 return; 4512 } 4513 if (type === Fragment) { 4514 hostInsert(el, container, anchor); 4515 for (let i = 0; i < children.length; i++) { 4516 move(children[i], container, anchor, moveType); 4517 } 4518 hostInsert(vnode.anchor, container, anchor); 4519 return; 4520 } 4521 if (type === Static) { 4522 moveStaticNode(vnode, container, anchor); 4523 return; 4524 } 4525 const needTransition2 = moveType !== 2 && shapeFlag & 1 && transition; 4526 if (needTransition2) { 4527 if (moveType === 0) { 4528 transition.beforeEnter(el); 4529 hostInsert(el, container, anchor); 4530 queuePostRenderEffect(() => transition.enter(el), parentSuspense); 4531 } else { 4532 const { leave, delayLeave, afterLeave } = transition; 4533 const remove22 = () => hostInsert(el, container, anchor); 4534 const performLeave = () => { 4535 leave(el, () => { 4536 remove22(); 4537 afterLeave && afterLeave(); 4538 }); 4539 }; 4540 if (delayLeave) { 4541 delayLeave(el, remove22, performLeave); 4542 } else { 4543 performLeave(); 4544 } 4545 } 4546 } else { 4547 hostInsert(el, container, anchor); 4548 } 4549 }; 4550 const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => { 4551 const { 4552 type, 4553 props, 4554 ref: ref2, 4555 children, 4556 dynamicChildren, 4557 shapeFlag, 4558 patchFlag, 4559 dirs, 4560 cacheIndex 4561 } = vnode; 4562 if (patchFlag === -2) { 4563 optimized = false;
vendor: 4,721 bytes, lines 4564-4707
4564 } 4565 if (ref2 != null) { 4566 setRef(ref2, null, parentSuspense, vnode, true); 4567 } 4568 if (cacheIndex != null) { 4569 parentComponent.renderCache[cacheIndex] = void 0; 4570 } 4571 if (shapeFlag & 256) { 4572 parentComponent.ctx.deactivate(vnode); 4573 return; 4574 } 4575 const shouldInvokeDirs = shapeFlag & 1 && dirs; 4576 const shouldInvokeVnodeHook = !isAsyncWrapper(vnode); 4577 let vnodeHook; 4578 if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeBeforeUnmount)) { 4579 invokeVNodeHook(vnodeHook, parentComponent, vnode); 4580 } 4581 if (shapeFlag & 6) { 4582 unmountComponent(vnode.component, parentSuspense, doRemove); 4583 } else { 4584 if (shapeFlag & 128) { 4585 vnode.suspense.unmount(parentSuspense, doRemove); 4586 return; 4587 } 4588 if (shouldInvokeDirs) { 4589 invokeDirectiveHook(vnode, null, parentComponent, "beforeUnmount"); 4590 } 4591 if (shapeFlag & 64) { 4592 vnode.type.remove( 4593 vnode, 4594 parentComponent, 4595 parentSuspense, 4596 internals, 4597 doRemove 4598 ); 4599 } else if (dynamicChildren && // #5154 4600 // when v-once is used inside a block, setBlockTracking(-1) marks the 4601 // parent block with hasOnce: true 4602 // so that it doesn't take the fast path during unmount - otherwise 4603 // components nested in v-once are never unmounted. 4604 !dynamicChildren.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments 4605 (type !== Fragment || patchFlag > 0 && patchFlag & 64)) { 4606 unmountChildren( 4607 dynamicChildren, 4608 parentComponent, 4609 parentSuspense, 4610 false, 4611 true 4612 ); 4613 } else if (type === Fragment && patchFlag & (128 | 256) || !optimized && shapeFlag & 16) { 4614 unmountChildren(children, parentComponent, parentSuspense); 4615 } 4616 if (doRemove) { 4617 remove2(vnode); 4618 } 4619 } 4620 if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeUnmounted) || shouldInvokeDirs) { 4621 queuePostRenderEffect(() => { 4622 vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); 4623 shouldInvokeDirs && invokeDirectiveHook(vnode, null, parentComponent, "unmounted"); 4624 }, parentSuspense); 4625 } 4626 }; 4627 const remove2 = (vnode) => { 4628 const { type, el, anchor, transition } = vnode; 4629 if (type === Fragment) { 4630 { 4631 removeFragment(el, anchor); 4632 } 4633 return; 4634 } 4635 if (type === Static) { 4636 removeStaticNode(vnode); 4637 return; 4638 } 4639 const performRemove = () => { 4640 hostRemove(el); 4641 if (transition && !transition.persisted && transition.afterLeave) { 4642 transition.afterLeave(); 4643 } 4644 }; 4645 if (vnode.shapeFlag & 1 && transition && !transition.persisted) { 4646 const { leave, delayLeave } = transition; 4647 const performLeave = () => leave(el, performRemove); 4648 if (delayLeave) { 4649 delayLeave(vnode.el, performRemove, performLeave); 4650 } else { 4651 performLeave(); 4652 } 4653 } else { 4654 performRemove(); 4655 } 4656 }; 4657 const removeFragment = (cur, end) => { 4658 let next; 4659 while (cur !== end) { 4660 next = hostNextSibling(cur); 4661 hostRemove(cur); 4662 cur = next; 4663 } 4664 hostRemove(end); 4665 }; 4666 const unmountComponent = (instance, parentSuspense, doRemove) => { 4667 const { bum, scope, job, subTree, um, m, a } = instance; 4668 invalidateMount(m); 4669 invalidateMount(a); 4670 if (bum) { 4671 invokeArrayFns(bum); 4672 } 4673 scope.stop(); 4674 if (job) { 4675 job.flags |= 8; 4676 unmount(subTree, instance, parentSuspense, doRemove); 4677 } 4678 if (um) { 4679 queuePostRenderEffect(um, parentSuspense); 4680 } 4681 queuePostRenderEffect(() => { 4682 instance.isUnmounted = true; 4683 }, parentSuspense); 4684 if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) { 4685 parentSuspense.deps--; 4686 if (parentSuspense.deps === 0) { 4687 parentSuspense.resolve(); 4688 } 4689 } 4690 }; 4691 const unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => { 4692 for (let i = start; i < children.length; i++) { 4693 unmount(children[i], parentComponent, parentSuspense, doRemove, optimized); 4694 } 4695 }; 4696 const getNextHostNode = (vnode) => { 4697 if (vnode.shapeFlag & 6) { 4698 return getNextHostNode(vnode.component.subTree); 4699 } 4700 if (vnode.shapeFlag & 128) { 4701 return vnode.suspense.next(); 4702 } 4703 const el = hostNextSibling(vnode.anchor || vnode.el); 4704 const teleportEnd = el && el[TeleportEndKey]; 4705 return teleportEnd ? hostNextSibling(teleportEnd) : el; 4706 }; 4707 let isFlushing = false;
vendor: 14,875 bytes, lines 4708-5267
4708 const render = (vnode, container, namespace) => { 4709 if (vnode == null) { 4710 if (container._vnode) { 4711 unmount(container._vnode, null, null, true); 4712 } 4713 } else { 4714 patch( 4715 container._vnode || null, 4716 vnode, 4717 container, 4718 null, 4719 null, 4720 null, 4721 namespace 4722 ); 4723 } 4724 container._vnode = vnode; 4725 if (!isFlushing) { 4726 isFlushing = true; 4727 flushPreFlushCbs(); 4728 flushPostFlushCbs(); 4729 isFlushing = false; 4730 } 4731 }; 4732 const internals = { 4733 p: patch, 4734 um: unmount, 4735 m: move, 4736 r: remove2, 4737 mt: mountComponent, 4738 mc: mountChildren, 4739 pc: patchChildren, 4740 pbc: patchBlockChildren, 4741 n: getNextHostNode, 4742 o: options 4743 }; 4744 let hydrate; 4745 let hydrateNode; 4746 if (createHydrationFns) { 4747 [hydrate, hydrateNode] = createHydrationFns( 4748 internals 4749 ); 4750 } 4751 return { 4752 render, 4753 hydrate, 4754 createApp: createAppAPI(render, hydrate) 4755 }; 4756} 4757function resolveChildrenNamespace({ type, props }, currentNamespace) { 4758 return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ? void 0 : currentNamespace; 4759} 4760function toggleRecurse({ effect, job }, allowed) { 4761 if (allowed) { 4762 effect.flags |= 32; 4763 job.flags |= 4; 4764 } else { 4765 effect.flags &= ~32; 4766 job.flags &= ~4; 4767 } 4768} 4769function needTransition(parentSuspense, transition) { 4770 return (!parentSuspense || parentSuspense && !parentSuspense.pendingBranch) && transition && !transition.persisted; 4771} 4772function traverseStaticChildren(n1, n2, shallow = false) { 4773 const ch1 = n1.children; 4774 const ch2 = n2.children; 4775 if (isArray(ch1) && isArray(ch2)) { 4776 for (let i = 0; i < ch1.length; i++) { 4777 const c1 = ch1[i]; 4778 let c2 = ch2[i]; 4779 if (c2.shapeFlag & 1 && !c2.dynamicChildren) { 4780 if (c2.patchFlag <= 0 || c2.patchFlag === 32) { 4781 c2 = ch2[i] = cloneIfMounted(ch2[i]); 4782 c2.el = c1.el; 4783 } 4784 if (!shallow && c2.patchFlag !== -2) 4785 traverseStaticChildren(c1, c2); 4786 } 4787 if (c2.type === Text) { 4788 c2.el = c1.el; 4789 } 4790 } 4791 } 4792} 4793function getSequence(arr) { 4794 const p2 = arr.slice(); 4795 const result = [0]; 4796 let i, j, u, v, c; 4797 const len = arr.length; 4798 for (i = 0; i < len; i++) { 4799 const arrI = arr[i]; 4800 if (arrI !== 0) { 4801 j = result[result.length - 1]; 4802 if (arr[j] < arrI) { 4803 p2[i] = j; 4804 result.push(i); 4805 continue; 4806 } 4807 u = 0; 4808 v = result.length - 1; 4809 while (u < v) { 4810 c = u + v >> 1; 4811 if (arr[result[c]] < arrI) { 4812 u = c + 1; 4813 } else { 4814 v = c; 4815 } 4816 } 4817 if (arrI < arr[result[u]]) { 4818 if (u > 0) { 4819 p2[i] = result[u - 1]; 4820 } 4821 result[u] = i; 4822 } 4823 } 4824 } 4825 u = result.length; 4826 v = result[u - 1]; 4827 while (u-- > 0) { 4828 result[u] = v; 4829 v = p2[v]; 4830 } 4831 return result; 4832} 4833function locateNonHydratedAsyncRoot(instance) { 4834 const subComponent = instance.subTree.component; 4835 if (subComponent) { 4836 if (subComponent.asyncDep && !subComponent.asyncResolved) { 4837 return subComponent; 4838 } else { 4839 return locateNonHydratedAsyncRoot(subComponent); 4840 } 4841 } 4842} 4843function invalidateMount(hooks) { 4844 if (hooks) { 4845 for (let i = 0; i < hooks.length; i++) 4846 hooks[i].flags |= 8; 4847 } 4848} 4849const ssrContextKey = Symbol.for("v-scx"); 4850const useSSRContext = () => { 4851 { 4852 const ctx = inject(ssrContextKey); 4853 return ctx; 4854 } 4855}; 4856function watch(source, cb, options) { 4857 return doWatch(source, cb, options); 4858} 4859function doWatch(source, cb, options = EMPTY_OBJ) { 4860 const { immediate, deep, flush, once } = options; 4861 const baseWatchOptions = extend({}, options); 4862 const runsImmediately = cb && immediate || !cb && flush !== "post"; 4863 let ssrCleanup; 4864 if (isInSSRComponentSetup) { 4865 if (flush === "sync") { 4866 const ctx = useSSRContext(); 4867 ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []); 4868 } else if (!runsImmediately) { 4869 const watchStopHandle = () => { 4870 }; 4871 watchStopHandle.stop = NOOP; 4872 watchStopHandle.resume = NOOP; 4873 watchStopHandle.pause = NOOP; 4874 return watchStopHandle; 4875 } 4876 } 4877 const instance = currentInstance; 4878 baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args); 4879 let isPre = false; 4880 if (flush === "post") { 4881 baseWatchOptions.scheduler = (job) => { 4882 queuePostRenderEffect(job, instance && instance.suspense); 4883 }; 4884 } else if (flush !== "sync") { 4885 isPre = true; 4886 baseWatchOptions.scheduler = (job, isFirstRun) => { 4887 if (isFirstRun) { 4888 job(); 4889 } else { 4890 queueJob(job); 4891 } 4892 }; 4893 } 4894 baseWatchOptions.augmentJob = (job) => { 4895 if (cb) { 4896 job.flags |= 4; 4897 } 4898 if (isPre) { 4899 job.flags |= 2; 4900 if (instance) { 4901 job.id = instance.uid; 4902 job.i = instance; 4903 } 4904 } 4905 }; 4906 const watchHandle = watch$1(source, cb, baseWatchOptions); 4907 if (isInSSRComponentSetup) { 4908 if (ssrCleanup) { 4909 ssrCleanup.push(watchHandle); 4910 } else if (runsImmediately) { 4911 watchHandle(); 4912 } 4913 } 4914 return watchHandle; 4915} 4916function instanceWatch(source, value, options) { 4917 const publicThis = this.proxy; 4918 const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis); 4919 let cb; 4920 if (isFunction(value)) { 4921 cb = value; 4922 } else { 4923 cb = value.handler; 4924 options = value; 4925 } 4926 const reset = setCurrentInstance(this); 4927 const res = doWatch(getter, cb.bind(publicThis), options); 4928 reset(); 4929 return res; 4930} 4931function createPathGetter(ctx, path) { 4932 const segments = path.split("."); 4933 return () => { 4934 let cur = ctx; 4935 for (let i = 0; i < segments.length && cur; i++) { 4936 cur = cur[segments[i]]; 4937 } 4938 return cur; 4939 }; 4940} 4941const getModelModifiers = (props, modelName) => { 4942 return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`]; 4943}; 4944function emit(instance, event2, ...rawArgs) { 4945 if (instance.isUnmounted) 4946 return; 4947 const props = instance.vnode.props || EMPTY_OBJ; 4948 let args = rawArgs; 4949 const isModelListener2 = event2.startsWith("update:"); 4950 const modifiers = isModelListener2 && getModelModifiers(props, event2.slice(7)); 4951 if (modifiers) { 4952 if (modifiers.trim) { 4953 args = rawArgs.map((a) => isString(a) ? a.trim() : a); 4954 } 4955 if (modifiers.number) { 4956 args = rawArgs.map(looseToNumber); 4957 } 4958 } 4959 let handlerName; 4960 let handler = props[handlerName = toHandlerKey(event2)] || // also try camelCase event handler (#2249) 4961 props[handlerName = toHandlerKey(camelize(event2))]; 4962 if (!handler && isModelListener2) { 4963 handler = props[handlerName = toHandlerKey(hyphenate(event2))]; 4964 } 4965 if (handler) { 4966 callWithAsyncErrorHandling( 4967 handler, 4968 instance, 4969 6, 4970 args 4971 ); 4972 } 4973 const onceHandler = props[handlerName + `Once`]; 4974 if (onceHandler) { 4975 if (!instance.emitted) { 4976 instance.emitted = {}; 4977 } else if (instance.emitted[handlerName]) { 4978 return; 4979 } 4980 instance.emitted[handlerName] = true; 4981 callWithAsyncErrorHandling( 4982 onceHandler, 4983 instance, 4984 6, 4985 args 4986 ); 4987 } 4988} 4989function normalizeEmitsOptions(comp, appContext, asMixin = false) { 4990 const cache = appContext.emitsCache; 4991 const cached = cache.get(comp); 4992 if (cached !== void 0) { 4993 return cached; 4994 } 4995 const raw = comp.emits; 4996 let normalized = {}; 4997 let hasExtends = false; 4998 if (!isFunction(comp)) { 4999 const extendEmits = (raw2) => { 5000 const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true); 5001 if (normalizedFromExtend) { 5002 hasExtends = true; 5003 extend(normalized, normalizedFromExtend); 5004 } 5005 }; 5006 if (!asMixin && appContext.mixins.length) { 5007 appContext.mixins.forEach(extendEmits); 5008 } 5009 if (comp.extends) { 5010 extendEmits(comp.extends); 5011 } 5012 if (comp.mixins) { 5013 comp.mixins.forEach(extendEmits); 5014 } 5015 } 5016 if (!raw && !hasExtends) { 5017 if (isObject$1(comp)) { 5018 cache.set(comp, null); 5019 } 5020 return null; 5021 } 5022 if (isArray(raw)) { 5023 raw.forEach((key) => normalized[key] = null); 5024 } else { 5025 extend(normalized, raw); 5026 } 5027 if (isObject$1(comp)) { 5028 cache.set(comp, normalized); 5029 } 5030 return normalized; 5031} 5032function isEmitListener(options, key) { 5033 if (!options || !isOn(key)) { 5034 return false; 5035 } 5036 key = key.slice(2).replace(/Once$/, ""); 5037 return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key); 5038} 5039function markAttrsAccessed() { 5040} 5041function renderComponentRoot(instance) { 5042 const { 5043 type: Component, 5044 vnode, 5045 proxy, 5046 withProxy, 5047 propsOptions: [propsOptions], 5048 slots, 5049 attrs, 5050 emit: emit2, 5051 render, 5052 renderCache, 5053 props, 5054 data, 5055 setupState, 5056 ctx, 5057 inheritAttrs 5058 } = instance; 5059 const prev = setCurrentRenderingInstance(instance); 5060 let result; 5061 let fallthroughAttrs; 5062 try { 5063 if (vnode.shapeFlag & 4) { 5064 const proxyToUse = withProxy || proxy; 5065 const thisProxy = false ? new Proxy(proxyToUse, { 5066 get(target, key, receiver) { 5067 warn$1( 5068 `Property '${String( 5069 key 5070 )}' was accessed via 'this'. Avoid using 'this' in templates.` 5071 ); 5072 return Reflect.get(target, key, receiver); 5073 } 5074 }) : proxyToUse; 5075 result = normalizeVNode( 5076 render.call( 5077 thisProxy, 5078 proxyToUse, 5079 renderCache, 5080 false ? shallowReadonly(props) : props, 5081 setupState, 5082 data, 5083 ctx 5084 ) 5085 ); 5086 fallthroughAttrs = attrs; 5087 } else { 5088 const render2 = Component; 5089 if (false) 5090 ; 5091 result = normalizeVNode( 5092 render2.length > 1 ? render2( 5093 false ? shallowReadonly(props) : props, 5094 false ? { 5095 get attrs() { 5096 markAttrsAccessed(); 5097 return shallowReadonly(attrs); 5098 }, 5099 slots, 5100 emit: emit2 5101 } : { attrs, slots, emit: emit2 } 5102 ) : render2( 5103 false ? shallowReadonly(props) : props, 5104 null 5105 ) 5106 ); 5107 fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs); 5108 } 5109 } catch (err) { 5110 blockStack.length = 0; 5111 handleError(err, instance, 1); 5112 result = createVNode(Comment); 5113 } 5114 let root = result; 5115 if (fallthroughAttrs && inheritAttrs !== false) { 5116 const keys = Object.keys(fallthroughAttrs); 5117 const { shapeFlag } = root; 5118 if (keys.length) { 5119 if (shapeFlag & (1 | 6)) { 5120 if (propsOptions && keys.some(isModelListener)) { 5121 fallthroughAttrs = filterModelListeners( 5122 fallthroughAttrs, 5123 propsOptions 5124 ); 5125 } 5126 root = cloneVNode(root, fallthroughAttrs, false, true); 5127 } 5128 } 5129 } 5130 if (vnode.dirs) { 5131 root = cloneVNode(root, null, false, true); 5132 root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs; 5133 } 5134 if (vnode.transition) { 5135 setTransitionHooks(root, vnode.transition); 5136 } 5137 { 5138 result = root; 5139 } 5140 setCurrentRenderingInstance(prev); 5141 return result; 5142} 5143const getFunctionalFallthrough = (attrs) => { 5144 let res; 5145 for (const key in attrs) { 5146 if (key === "class" || key === "style" || isOn(key)) { 5147 (res || (res = {}))[key] = attrs[key]; 5148 } 5149 } 5150 return res; 5151}; 5152const filterModelListeners = (attrs, props) => { 5153 const res = {}; 5154 for (const key in attrs) { 5155 if (!isModelListener(key) || !(key.slice(9) in props)) { 5156 res[key] = attrs[key]; 5157 } 5158 } 5159 return res; 5160}; 5161function shouldUpdateComponent(prevVNode, nextVNode, optimized) { 5162 const { props: prevProps, children: prevChildren, component } = prevVNode; 5163 const { props: nextProps, children: nextChildren, patchFlag } = nextVNode; 5164 const emits = component.emitsOptions; 5165 if (nextVNode.dirs || nextVNode.transition) { 5166 return true; 5167 } 5168 if (optimized && patchFlag >= 0) { 5169 if (patchFlag & 1024) { 5170 return true; 5171 } 5172 if (patchFlag & 16) { 5173 if (!prevProps) { 5174 return !!nextProps; 5175 } 5176 return hasPropsChanged(prevProps, nextProps, emits); 5177 } else if (patchFlag & 8) { 5178 const dynamicProps = nextVNode.dynamicProps; 5179 for (let i = 0; i < dynamicProps.length; i++) { 5180 const key = dynamicProps[i]; 5181 if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) { 5182 return true; 5183 } 5184 } 5185 } 5186 } else { 5187 if (prevChildren || nextChildren) { 5188 if (!nextChildren || !nextChildren.$stable) { 5189 return true; 5190 } 5191 } 5192 if (prevProps === nextProps) { 5193 return false; 5194 } 5195 if (!prevProps) { 5196 return !!nextProps; 5197 } 5198 if (!nextProps) { 5199 return true; 5200 } 5201 return hasPropsChanged(prevProps, nextProps, emits); 5202 } 5203 return false; 5204} 5205function hasPropsChanged(prevProps, nextProps, emitsOptions) { 5206 const nextKeys = Object.keys(nextProps); 5207 if (nextKeys.length !== Object.keys(prevProps).length) { 5208 return true; 5209 } 5210 for (let i = 0; i < nextKeys.length; i++) { 5211 const key = nextKeys[i]; 5212 if (nextProps[key] !== prevProps[key] && !isEmitListener(emitsOptions, key)) { 5213 return true; 5214 } 5215 } 5216 return false; 5217} 5218function updateHOCHostEl({ vnode, parent }, el) { 5219 while (parent) { 5220 const root = parent.subTree; 5221 if (root.suspense && root.suspense.activeBranch === vnode) { 5222 root.el = vnode.el; 5223 } 5224 if (root === vnode) { 5225 (vnode = parent.vnode).el = el; 5226 parent = parent.parent; 5227 } else { 5228 break; 5229 } 5230 } 5231} 5232const isSuspense = (type) => type.__isSuspense; 5233function queueEffectWithSuspense(fn, suspense) { 5234 if (suspense && suspense.pendingBranch) { 5235 if (isArray(fn)) { 5236 suspense.effects.push(...fn); 5237 } else { 5238 suspense.effects.push(fn); 5239 } 5240 } else { 5241 queuePostFlushCb(fn); 5242 } 5243} 5244const Fragment = Symbol.for("v-fgt"); 5245const Text = Symbol.for("v-txt"); 5246const Comment = Symbol.for("v-cmt"); 5247const Static = Symbol.for("v-stc"); 5248const blockStack = []; 5249let currentBlock = null; 5250function openBlock(disableTracking = false) { 5251 blockStack.push(currentBlock = disableTracking ? null : []); 5252} 5253function closeBlock() { 5254 blockStack.pop(); 5255 currentBlock = blockStack[blockStack.length - 1] || null; 5256} 5257let isBlockTreeEnabled = 1; 5258function setBlockTracking(value, inVOnce = false) { 5259 isBlockTreeEnabled += value; 5260 if (value < 0 && currentBlock && inVOnce) { 5261 currentBlock.hasOnce = true; 5262 } 5263} 5264function setupBlock(vnode) { 5265 vnode.dynamicChildren = isBlockTreeEnabled > 0 ? currentBlock || EMPTY_ARR : null; 5266 closeBlock(); 5267 if (isBlockTreeEnabled > 0 && currentBlock) {
vendor: 3,593 bytes, lines 5268-5395
5268 currentBlock.push(vnode); 5269 } 5270 return vnode; 5271} 5272function createElementBlock(type, props, children, patchFlag, dynamicProps, shapeFlag) { 5273 return setupBlock( 5274 createBaseVNode( 5275 type, 5276 props, 5277 children, 5278 patchFlag, 5279 dynamicProps, 5280 shapeFlag, 5281 true 5282 ) 5283 ); 5284} 5285function createBlock(type, props, children, patchFlag, dynamicProps) { 5286 return setupBlock( 5287 createVNode( 5288 type, 5289 props, 5290 children, 5291 patchFlag, 5292 dynamicProps, 5293 true 5294 ) 5295 ); 5296} 5297function isVNode(value) { 5298 return value ? value.__v_isVNode === true : false; 5299} 5300function isSameVNodeType(n1, n2) { 5301 return n1.type === n2.type && n1.key === n2.key; 5302} 5303const normalizeKey = ({ key }) => key != null ? key : null; 5304const normalizeRef = ({ 5305 ref: ref2, 5306 ref_key, 5307 ref_for 5308}) => { 5309 if (typeof ref2 === "number") { 5310 ref2 = "" + ref2; 5311 } 5312 return ref2 != null ? isString(ref2) || isRef(ref2) || isFunction(ref2) ? { i: currentRenderingInstance, r: ref2, k: ref_key, f: !!ref_for } : ref2 : null; 5313}; 5314function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1, isBlockNode = false, needFullChildrenNormalization = false) { 5315 const vnode = { 5316 __v_isVNode: true, 5317 __v_skip: true, 5318 type, 5319 props, 5320 key: props && normalizeKey(props), 5321 ref: props && normalizeRef(props), 5322 scopeId: currentScopeId, 5323 slotScopeIds: null, 5324 children, 5325 component: null, 5326 suspense: null, 5327 ssContent: null, 5328 ssFallback: null, 5329 dirs: null, 5330 transition: null, 5331 el: null, 5332 anchor: null, 5333 target: null, 5334 targetStart: null, 5335 targetAnchor: null, 5336 staticCount: 0, 5337 shapeFlag, 5338 patchFlag, 5339 dynamicProps, 5340 dynamicChildren: null, 5341 appContext: null, 5342 ctx: currentRenderingInstance 5343 }; 5344 if (needFullChildrenNormalization) { 5345 normalizeChildren(vnode, children); 5346 if (shapeFlag & 128) { 5347 type.normalize(vnode); 5348 } 5349 } else if (children) { 5350 vnode.shapeFlag |= isString(children) ? 8 : 16; 5351 } 5352 if (isBlockTreeEnabled > 0 && // avoid a block node from tracking itself 5353 !isBlockNode && // has current parent block 5354 currentBlock && // presence of a patch flag indicates this node needs patching on updates. 5355 // component nodes also should always be patched, because even if the 5356 // component doesn't need to update, it needs to persist the instance on to 5357 // the next vnode so that it can be properly unmounted later. 5358 (vnode.patchFlag > 0 || shapeFlag & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the 5359 // vnode should not be considered dynamic due to handler caching. 5360 vnode.patchFlag !== 32) { 5361 currentBlock.push(vnode); 5362 } 5363 return vnode; 5364} 5365const createVNode = _createVNode; 5366function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) { 5367 if (!type || type === NULL_DYNAMIC_COMPONENT) { 5368 type = Comment; 5369 } 5370 if (isVNode(type)) { 5371 const cloned = cloneVNode( 5372 type, 5373 props, 5374 true 5375 /* mergeRef: true */ 5376 ); 5377 if (children) { 5378 normalizeChildren(cloned, children); 5379 } 5380 if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) { 5381 if (cloned.shapeFlag & 6) { 5382 currentBlock[currentBlock.indexOf(type)] = cloned; 5383 } else { 5384 currentBlock.push(cloned); 5385 } 5386 } 5387 cloned.patchFlag = -2; 5388 return cloned; 5389 } 5390 if (isClassComponent(type)) { 5391 type = type.__vccOpts; 5392 } 5393 if (props) { 5394 props = guardReactiveProps(props); 5395 let { class: klass, style: style2 }
vendor: 11,250 bytes, lines 5395-5769
5395 = props; 5396 if (klass && !isString(klass)) { 5397 props.class = normalizeClass(klass); 5398 } 5399 if (isObject$1(style2)) { 5400 if (isProxy(style2) && !isArray(style2)) { 5401 style2 = extend({}, style2); 5402 } 5403 props.style = normalizeStyle(style2); 5404 } 5405 } 5406 const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject$1(type) ? 4 : isFunction(type) ? 2 : 0; 5407 return createBaseVNode( 5408 type, 5409 props, 5410 children, 5411 patchFlag, 5412 dynamicProps, 5413 shapeFlag, 5414 isBlockNode, 5415 true 5416 ); 5417} 5418function guardReactiveProps(props) { 5419 if (!props) 5420 return null; 5421 return isProxy(props) || isInternalObject(props) ? extend({}, props) : props; 5422} 5423function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) { 5424 const { props, ref: ref2, patchFlag, children, transition } = vnode; 5425 const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props; 5426 const cloned = { 5427 __v_isVNode: true, 5428 __v_skip: true, 5429 type: vnode.type, 5430 props: mergedProps, 5431 key: mergedProps && normalizeKey(mergedProps), 5432 ref: extraProps && extraProps.ref ? ( 5433 // #2078 in the case of <component :is="vnode" ref="extra"/> 5434 // if the vnode itself already has a ref, cloneVNode will need to merge 5435 // the refs so the single vnode can be set on multiple refs 5436 mergeRef && ref2 ? isArray(ref2) ? ref2.concat(normalizeRef(extraProps)) : [ref2, normalizeRef(extraProps)] : normalizeRef(extraProps) 5437 ) : ref2, 5438 scopeId: vnode.scopeId, 5439 slotScopeIds: vnode.slotScopeIds, 5440 children, 5441 target: vnode.target, 5442 targetStart: vnode.targetStart, 5443 targetAnchor: vnode.targetAnchor, 5444 staticCount: vnode.staticCount, 5445 shapeFlag: vnode.shapeFlag, 5446 // if the vnode is cloned with extra props, we can no longer assume its 5447 // existing patch flag to be reliable and need to add the FULL_PROPS flag. 5448 // note: preserve flag for fragments since they use the flag for children 5449 // fast paths only. 5450 patchFlag: extraProps && vnode.type !== Fragment ? patchFlag === -1 ? 16 : patchFlag | 16 : patchFlag, 5451 dynamicProps: vnode.dynamicProps, 5452 dynamicChildren: vnode.dynamicChildren, 5453 appContext: vnode.appContext, 5454 dirs: vnode.dirs, 5455 transition, 5456 // These should technically only be non-null on mounted VNodes. However, 5457 // they *should* be copied for kept-alive vnodes. So we just always copy 5458 // them since them being non-null during a mount doesn't affect the logic as 5459 // they will simply be overwritten. 5460 component: vnode.component, 5461 suspense: vnode.suspense, 5462 ssContent: vnode.ssContent && cloneVNode(vnode.ssContent), 5463 ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback), 5464 el: vnode.el, 5465 anchor: vnode.anchor, 5466 ctx: vnode.ctx, 5467 ce: vnode.ce 5468 }; 5469 if (transition && cloneTransition) { 5470 setTransitionHooks( 5471 cloned, 5472 transition.clone(cloned) 5473 ); 5474 } 5475 return cloned; 5476} 5477function createTextVNode(text = " ", flag = 0) { 5478 return createVNode(Text, null, text, flag); 5479} 5480function createStaticVNode(content, numberOfNodes) { 5481 const vnode = createVNode(Static, null, content); 5482 vnode.staticCount = numberOfNodes; 5483 return vnode; 5484} 5485function createCommentVNode(text = "", asBlock = false) { 5486 return asBlock ? (openBlock(), createBlock(Comment, null, text)) : createVNode(Comment, null, text); 5487} 5488function normalizeVNode(child) { 5489 if (child == null || typeof child === "boolean") { 5490 return createVNode(Comment); 5491 } else if (isArray(child)) { 5492 return createVNode( 5493 Fragment, 5494 null, 5495 // #3666, avoid reference pollution when reusing vnode 5496 child.slice() 5497 ); 5498 } else if (isVNode(child)) { 5499 return cloneIfMounted(child); 5500 } else { 5501 return createVNode(Text, null, String(child)); 5502 } 5503} 5504function cloneIfMounted(child) { 5505 return child.el === null && child.patchFlag !== -1 || child.memo ? child : cloneVNode(child); 5506} 5507function normalizeChildren(vnode, children) { 5508 let type = 0; 5509 const { shapeFlag } = vnode; 5510 if (children == null) { 5511 children = null; 5512 } else if (isArray(children)) { 5513 type = 16; 5514 } else if (typeof children === "object") { 5515 if (shapeFlag & (1 | 64)) { 5516 const slot = children.default; 5517 if (slot) { 5518 slot._c && (slot._d = false); 5519 normalizeChildren(vnode, slot()); 5520 slot._c && (slot._d = true); 5521 } 5522 return; 5523 } else { 5524 type = 32; 5525 const slotFlag = children._; 5526 if (!slotFlag && !isInternalObject(children)) { 5527 children._ctx = currentRenderingInstance; 5528 } else if (slotFlag === 3 && currentRenderingInstance) { 5529 if (currentRenderingInstance.slots._ === 1) { 5530 children._ = 1; 5531 } else { 5532 children._ = 2; 5533 vnode.patchFlag |= 1024; 5534 } 5535 } 5536 } 5537 } else if (isFunction(children)) { 5538 children = { default: children, _ctx: currentRenderingInstance }; 5539 type = 32; 5540 } else { 5541 children = String(children); 5542 if (shapeFlag & 64) { 5543 type = 16; 5544 children = [createTextVNode(children)]; 5545 } else { 5546 type = 8; 5547 } 5548 } 5549 vnode.children = children; 5550 vnode.shapeFlag |= type; 5551} 5552function mergeProps(...args) { 5553 const ret = {}; 5554 for (let i = 0; i < args.length; i++) { 5555 const toMerge = args[i]; 5556 for (const key in toMerge) { 5557 if (key === "class") { 5558 if (ret.class !== toMerge.class) { 5559 ret.class = normalizeClass([ret.class, toMerge.class]); 5560 } 5561 } else if (key === "style") { 5562 ret.style = normalizeStyle([ret.style, toMerge.style]); 5563 } else if (isOn(key)) { 5564 const existing = ret[key]; 5565 const incoming = toMerge[key]; 5566 if (incoming && existing !== incoming && !(isArray(existing) && existing.includes(incoming))) { 5567 ret[key] = existing ? [].concat(existing, incoming) : incoming; 5568 } 5569 } else if (key !== "") { 5570 ret[key] = toMerge[key]; 5571 } 5572 } 5573 } 5574 return ret; 5575} 5576function invokeVNodeHook(hook, instance, vnode, prevVNode = null) { 5577 callWithAsyncErrorHandling(hook, instance, 7, [ 5578 vnode, 5579 prevVNode 5580 ]); 5581} 5582const emptyAppContext = createAppContext(); 5583let uid = 0; 5584function createComponentInstance(vnode, parent, suspense) { 5585 const type = vnode.type; 5586 const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext; 5587 const instance = { 5588 uid: uid++, 5589 vnode, 5590 type, 5591 parent, 5592 appContext, 5593 root: null, 5594 // to be immediately set 5595 next: null, 5596 subTree: null, 5597 // will be set synchronously right after creation 5598 effect: null, 5599 update: null, 5600 // will be set synchronously right after creation 5601 job: null, 5602 scope: new EffectScope( 5603 true 5604 /* detached */ 5605 ), 5606 render: null, 5607 proxy: null, 5608 exposed: null, 5609 exposeProxy: null, 5610 withProxy: null, 5611 provides: parent ? parent.provides : Object.create(appContext.provides), 5612 ids: parent ? parent.ids : ["", 0, 0], 5613 accessCache: null, 5614 renderCache: [], 5615 // local resolved assets 5616 components: null, 5617 directives: null, 5618 // resolved props and emits options 5619 propsOptions: normalizePropsOptions(type, appContext), 5620 emitsOptions: normalizeEmitsOptions(type, appContext), 5621 // emit 5622 emit: null, 5623 // to be set immediately 5624 emitted: null, 5625 // props default value 5626 propsDefaults: EMPTY_OBJ, 5627 // inheritAttrs 5628 inheritAttrs: type.inheritAttrs, 5629 // state 5630 ctx: EMPTY_OBJ, 5631 data: EMPTY_OBJ, 5632 props: EMPTY_OBJ, 5633 attrs: EMPTY_OBJ, 5634 slots: EMPTY_OBJ, 5635 refs: EMPTY_OBJ, 5636 setupState: EMPTY_OBJ, 5637 setupContext: null, 5638 // suspense related 5639 suspense, 5640 suspenseId: suspense ? suspense.pendingId : 0, 5641 asyncDep: null, 5642 asyncResolved: false, 5643 // lifecycle hooks 5644 // not using enums here because it results in computed properties 5645 isMounted: false, 5646 isUnmounted: false, 5647 isDeactivated: false, 5648 bc: null, 5649 c: null, 5650 bm: null, 5651 m: null, 5652 bu: null, 5653 u: null, 5654 um: null, 5655 bum: null, 5656 da: null, 5657 a: null, 5658 rtg: null, 5659 rtc: null, 5660 ec: null, 5661 sp: null 5662 }; 5663 { 5664 instance.ctx = { _: instance }; 5665 } 5666 instance.root = parent ? parent.root : instance; 5667 instance.emit = emit.bind(null, instance); 5668 if (vnode.ce) { 5669 vnode.ce(instance); 5670 } 5671 return instance; 5672} 5673let currentInstance = null; 5674let internalSetCurrentInstance; 5675let setInSSRSetupState; 5676{ 5677 const g = getGlobalThis(); 5678 const registerGlobalSetter = (key, setter) => { 5679 let setters; 5680 if (!(setters = g[key])) 5681 setters = g[key] = []; 5682 setters.push(setter); 5683 return (v) => { 5684 if (setters.length > 1) 5685 setters.forEach((set) => set(v)); 5686 else 5687 setters[0](v); 5688 }; 5689 }; 5690 internalSetCurrentInstance = registerGlobalSetter( 5691 `__VUE_INSTANCE_SETTERS__`, 5692 (v) => currentInstance = v 5693 ); 5694 setInSSRSetupState = registerGlobalSetter( 5695 `__VUE_SSR_SETTERS__`, 5696 (v) => isInSSRComponentSetup = v 5697 ); 5698} 5699const setCurrentInstance = (instance) => { 5700 const prev = currentInstance; 5701 internalSetCurrentInstance(instance); 5702 instance.scope.on(); 5703 return () => { 5704 instance.scope.off(); 5705 internalSetCurrentInstance(prev); 5706 }; 5707}; 5708const unsetCurrentInstance = () => { 5709 currentInstance && currentInstance.scope.off(); 5710 internalSetCurrentInstance(null); 5711}; 5712function isStatefulComponent(instance) { 5713 return instance.vnode.shapeFlag & 4; 5714} 5715let isInSSRComponentSetup = false; 5716function setupComponent(instance, isSSR = false, optimized = false) { 5717 isSSR && setInSSRSetupState(isSSR); 5718 const { props, children } = instance.vnode; 5719 const isStateful = isStatefulComponent(instance); 5720 initProps(instance, props, isStateful, isSSR); 5721 initSlots(instance, children, optimized); 5722 const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0; 5723 isSSR && setInSSRSetupState(false); 5724 return setupResult; 5725} 5726function setupStatefulComponent(instance, isSSR) { 5727 const Component = instance.type; 5728 instance.accessCache = /* @__PURE__ */ Object.create(null); 5729 instance.proxy = new Proxy(instance.ctx, PublicInstanceProxyHandlers); 5730 const { setup } = Component; 5731 if (setup) { 5732 pauseTracking(); 5733 const setupContext = instance.setupContext = setup.length > 1 ? createSetupContext(instance) : null; 5734 const reset = setCurrentInstance(instance); 5735 const setupResult = callWithErrorHandling( 5736 setup, 5737 instance, 5738 0, 5739 [ 5740 instance.props, 5741 setupContext 5742 ] 5743 ); 5744 const isAsyncSetup = isPromise(setupResult); 5745 resetTracking(); 5746 reset(); 5747 if ((isAsyncSetup || instance.sp) && !isAsyncWrapper(instance)) { 5748 markAsyncBoundary(instance); 5749 } 5750 if (isAsyncSetup) { 5751 setupResult.then(unsetCurrentInstance, unsetCurrentInstance); 5752 if (isSSR) { 5753 return setupResult.then((resolvedResult) => { 5754 handleSetupResult(instance, resolvedResult, isSSR); 5755 }).catch((e) => { 5756 handleError(e, instance, 0); 5757 }); 5758 } else { 5759 instance.asyncDep = setupResult; 5760 } 5761 } else { 5762 handleSetupResult(instance, setupResult, isSSR); 5763 } 5764 } else { 5765 finishComponentSetup(instance, isSSR); 5766 } 5767} 5768function handleSetupResult(instance, setupResult, isSSR) { 5769 if (isFunction(setupResult)) {
vendor: 3,601 bytes, lines 5770-5891
5770 if (instance.type.__ssrInlineRender) { 5771 instance.ssrRender = setupResult; 5772 } else { 5773 instance.render = setupResult; 5774 } 5775 } else if (isObject$1(setupResult)) { 5776 instance.setupState = proxyRefs(setupResult); 5777 } else 5778 ; 5779 finishComponentSetup(instance, isSSR); 5780} 5781let compile; 5782function finishComponentSetup(instance, isSSR, skipOptions) { 5783 const Component = instance.type; 5784 if (!instance.render) { 5785 if (!isSSR && compile && !Component.render) { 5786 const template = Component.template || resolveMergedOptions(instance).template; 5787 if (template) { 5788 const { isCustomElement, compilerOptions } = instance.appContext.config; 5789 const { delimiters, compilerOptions: componentCompilerOptions } = Component; 5790 const finalCompilerOptions = extend( 5791 extend( 5792 { 5793 isCustomElement, 5794 delimiters 5795 }, 5796 compilerOptions 5797 ), 5798 componentCompilerOptions 5799 ); 5800 Component.render = compile(template, finalCompilerOptions); 5801 } 5802 } 5803 instance.render = Component.render || NOOP; 5804 } 5805 { 5806 const reset = setCurrentInstance(instance); 5807 pauseTracking(); 5808 try { 5809 applyOptions(instance); 5810 } finally { 5811 resetTracking(); 5812 reset(); 5813 } 5814 } 5815} 5816const attrsProxyHandlers = { 5817 get(target, key) { 5818 track(target, "get", ""); 5819 return target[key]; 5820 } 5821}; 5822function createSetupContext(instance) { 5823 const expose = (exposed) => { 5824 instance.exposed = exposed || {}; 5825 }; 5826 { 5827 return { 5828 attrs: new Proxy(instance.attrs, attrsProxyHandlers), 5829 slots: instance.slots, 5830 emit: instance.emit, 5831 expose 5832 }; 5833 } 5834} 5835function getComponentPublicInstance(instance) { 5836 if (instance.exposed) { 5837 return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), { 5838 get(target, key) { 5839 if (key in target) { 5840 return target[key]; 5841 } else if (key in publicPropertiesMap) { 5842 return publicPropertiesMap[key](instance); 5843 } 5844 }, 5845 has(target, key) { 5846 return key in target || key in publicPropertiesMap; 5847 } 5848 })); 5849 } else { 5850 return instance.proxy; 5851 } 5852} 5853const classifyRE = /(?:^|[-_])(\w)/g; 5854const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, ""); 5855function getComponentName(Component, includeInferred = true) { 5856 return isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name; 5857} 5858function formatComponentName(instance, Component, isRoot = false) { 5859 let name = getComponentName(Component); 5860 if (!name && Component.__file) { 5861 const match = Component.__file.match(/([^/\\]+)\.\w+$/); 5862 if (match) { 5863 name = match[1]; 5864 } 5865 } 5866 if (!name && instance && instance.parent) { 5867 const inferFromRegistry = (registry) => { 5868 for (const key in registry) { 5869 if (registry[key] === Component) { 5870 return key; 5871 } 5872 } 5873 }; 5874 name = inferFromRegistry( 5875 instance.components || instance.parent.type.components 5876 ) || inferFromRegistry(instance.appContext.components); 5877 } 5878 return name ? classify(name) : isRoot ? `App` : `Anonymous`; 5879} 5880function isClassComponent(value) { 5881 return isFunction(value) && "__vccOpts" in value; 5882} 5883const computed = (getterOrOptions, debugOptions) => { 5884 const c = computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup); 5885 return c; 5886}; 5887const version = "3.5.13"; 5888/** 5889* @vue/runtime-dom v3.5.13 5890* (c) 2018-present Yuxi (Evan) You and Vue contributors 5891* @license MIT
vendor: 9,076 bytes, lines 5892-6193
5892**/ 5893let policy = void 0; 5894const tt = typeof window !== "undefined" && window.trustedTypes; 5895if (tt) { 5896 try { 5897 policy = /* @__PURE__ */ tt.createPolicy("vue", { 5898 createHTML: (val) => val 5899 }); 5900 } catch (e) { 5901 } 5902} 5903const unsafeToTrustedHTML = policy ? (val) => policy.createHTML(val) : (val) => val; 5904const svgNS = "http://www.w3.org/2000/svg"; 5905const mathmlNS = "http://www.w3.org/1998/Math/MathML"; 5906const doc = typeof document !== "undefined" ? document : null; 5907const templateContainer = doc && /* @__PURE__ */ doc.createElement("template"); 5908const nodeOps = { 5909 insert: (child, parent, anchor) => { 5910 parent.insertBefore(child, anchor || null); 5911 }, 5912 remove: (child) => { 5913 const parent = child.parentNode; 5914 if (parent) { 5915 parent.removeChild(child); 5916 } 5917 }, 5918 createElement: (tag, namespace, is, props) => { 5919 const el = namespace === "svg" ? doc.createElementNS(svgNS, tag) : namespace === "mathml" ? doc.createElementNS(mathmlNS, tag) : is ? doc.createElement(tag, { is }) : doc.createElement(tag); 5920 if (tag === "select" && props && props.multiple != null) { 5921 el.setAttribute("multiple", props.multiple); 5922 } 5923 return el; 5924 }, 5925 createText: (text) => doc.createTextNode(text), 5926 createComment: (text) => doc.createComment(text), 5927 setText: (node, text) => { 5928 node.nodeValue = text; 5929 }, 5930 setElementText: (el, text) => { 5931 el.textContent = text; 5932 }, 5933 parentNode: (node) => node.parentNode, 5934 nextSibling: (node) => node.nextSibling, 5935 querySelector: (selector) => doc.querySelector(selector), 5936 setScopeId(el, id) { 5937 el.setAttribute(id, ""); 5938 }, 5939 // __UNSAFE__ 5940 // Reason: innerHTML. 5941 // Static content here can only come from compiled templates. 5942 // As long as the user only uses trusted templates, this is safe. 5943 insertStaticContent(content, parent, anchor, namespace, start, end) { 5944 const before = anchor ? anchor.previousSibling : parent.lastChild; 5945 if (start && (start === end || start.nextSibling)) { 5946 while (true) { 5947 parent.insertBefore(start.cloneNode(true), anchor); 5948 if (start === end || !(start = start.nextSibling)) 5949 break; 5950 } 5951 } else { 5952 templateContainer.innerHTML = unsafeToTrustedHTML( 5953 namespace === "svg" ? `<svg>${content}</svg>` : namespace === "mathml" ? `<math>${content}</math>` : content 5954 ); 5955 const template = templateContainer.content; 5956 if (namespace === "svg" || namespace === "mathml") { 5957 const wrapper = template.firstChild; 5958 while (wrapper.firstChild) { 5959 template.appendChild(wrapper.firstChild); 5960 } 5961 template.removeChild(wrapper); 5962 } 5963 parent.insertBefore(template, anchor); 5964 } 5965 return [ 5966 // first 5967 before ? before.nextSibling : parent.firstChild, 5968 // last 5969 anchor ? anchor.previousSibling : parent.lastChild 5970 ]; 5971 } 5972}; 5973const vtcKey = Symbol("_vtc"); 5974function patchClass(el, value, isSVG) { 5975 const transitionClasses = el[vtcKey]; 5976 if (transitionClasses) { 5977 value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(" "); 5978 } 5979 if (value == null) { 5980 el.removeAttribute("class"); 5981 } else if (isSVG) { 5982 el.setAttribute("class", value); 5983 } else { 5984 el.className = value; 5985 } 5986} 5987const vShowOriginalDisplay = Symbol("_vod"); 5988const vShowHidden = Symbol("_vsh"); 5989const vShow = { 5990 beforeMount(el, { value }, { transition }) { 5991 el[vShowOriginalDisplay] = el.style.display === "none" ? "" : el.style.display; 5992 if (transition && value) { 5993 transition.beforeEnter(el); 5994 } else { 5995 setDisplay(el, value); 5996 } 5997 }, 5998 mounted(el, { value }, { transition }) { 5999 if (transition && value) { 6000 transition.enter(el); 6001 } 6002 }, 6003 updated(el, { value, oldValue }, { transition }) { 6004 if (!value === !oldValue) 6005 return; 6006 if (transition) { 6007 if (value) { 6008 transition.beforeEnter(el); 6009 setDisplay(el, true); 6010 transition.enter(el); 6011 } else { 6012 transition.leave(el, () => { 6013 setDisplay(el, false); 6014 }); 6015 } 6016 } else { 6017 setDisplay(el, value); 6018 } 6019 }, 6020 beforeUnmount(el, { value }) { 6021 setDisplay(el, value); 6022 } 6023}; 6024function setDisplay(el, value) { 6025 el.style.display = value ? el[vShowOriginalDisplay] : "none"; 6026 el[vShowHidden] = !value; 6027} 6028const CSS_VAR_TEXT = Symbol(""); 6029const displayRE = /(^|;)\s*display\s*:/; 6030function patchStyle(el, prev, next) { 6031 const style2 = el.style; 6032 const isCssString = isString(next); 6033 let hasControlledDisplay = false; 6034 if (next && !isCssString) { 6035 if (prev) { 6036 if (!isString(prev)) { 6037 for (const key in prev) { 6038 if (next[key] == null) { 6039 setStyle(style2, key, ""); 6040 } 6041 } 6042 } else { 6043 for (const prevStyle of prev.split(";")) { 6044 const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim(); 6045 if (next[key] == null) { 6046 setStyle(style2, key, ""); 6047 } 6048 } 6049 } 6050 } 6051 for (const key in next) { 6052 if (key === "display") { 6053 hasControlledDisplay = true; 6054 } 6055 setStyle(style2, key, next[key]); 6056 } 6057 } else { 6058 if (isCssString) { 6059 if (prev !== next) { 6060 const cssVarText = style2[CSS_VAR_TEXT]; 6061 if (cssVarText) { 6062 next += ";" + cssVarText; 6063 } 6064 style2.cssText = next; 6065 hasControlledDisplay = displayRE.test(next); 6066 } 6067 } else if (prev) { 6068 el.removeAttribute("style"); 6069 } 6070 } 6071 if (vShowOriginalDisplay in el) { 6072 el[vShowOriginalDisplay] = hasControlledDisplay ? style2.display : ""; 6073 if (el[vShowHidden]) { 6074 style2.display = "none"; 6075 } 6076 } 6077} 6078const importantRE = /\s*!important$/; 6079function setStyle(style2, name, val) { 6080 if (isArray(val)) { 6081 val.forEach((v) => setStyle(style2, name, v)); 6082 } else { 6083 if (val == null) 6084 val = ""; 6085 if (name.startsWith("--")) { 6086 style2.setProperty(name, val); 6087 } else { 6088 const prefixed = autoPrefix(style2, name); 6089 if (importantRE.test(val)) { 6090 style2.setProperty( 6091 hyphenate(prefixed), 6092 val.replace(importantRE, ""), 6093 "important" 6094 ); 6095 } else { 6096 style2[prefixed] = val; 6097 } 6098 } 6099 } 6100} 6101const prefixes = ["Webkit", "Moz", "ms"]; 6102const prefixCache = {}; 6103function autoPrefix(style2, rawName) { 6104 const cached = prefixCache[rawName]; 6105 if (cached) { 6106 return cached; 6107 } 6108 let name = camelize(rawName); 6109 if (name !== "filter" && name in style2) { 6110 return prefixCache[rawName] = name; 6111 } 6112 name = capitalize(name); 6113 for (let i = 0; i < prefixes.length; i++) { 6114 const prefixed = prefixes[i] + name; 6115 if (prefixed in style2) { 6116 return prefixCache[rawName] = prefixed; 6117 } 6118 } 6119 return rawName; 6120} 6121const xlinkNS = "http://www.w3.org/1999/xlink"; 6122function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) { 6123 if (isSVG && key.startsWith("xlink:")) { 6124 if (value == null) { 6125 el.removeAttributeNS(xlinkNS, key.slice(6, key.length)); 6126 } else { 6127 el.setAttributeNS(xlinkNS, key, value); 6128 } 6129 } else { 6130 if (value == null || isBoolean && !includeBooleanAttr(value)) { 6131 el.removeAttribute(key); 6132 } else { 6133 el.setAttribute( 6134 key, 6135 isBoolean ? "" : isSymbol(value) ? String(value) : value 6136 ); 6137 } 6138 } 6139} 6140function patchDOMProp(el, key, value, parentComponent, attrName) { 6141 if (key === "innerHTML" || key === "textContent") { 6142 if (value != null) { 6143 el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value; 6144 } 6145 return; 6146 } 6147 const tag = el.tagName; 6148 if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally 6149 !tag.includes("-")) { 6150 const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value; 6151 const newValue = value == null ? ( 6152 // #11647: value should be set as empty string for null and undefined, 6153 // but <input type="checkbox"> should be set as 'on'. 6154 el.type === "checkbox" ? "on" : "" 6155 ) : String(value); 6156 if (oldValue !== newValue || !("_value" in el)) { 6157 el.value = newValue; 6158 } 6159 if (value == null) { 6160 el.removeAttribute(key); 6161 } 6162 el._value = value; 6163 return; 6164 } 6165 let needRemove = false; 6166 if (value === "" || value == null) { 6167 const type = typeof el[key]; 6168 if (type === "boolean") { 6169 value = includeBooleanAttr(value); 6170 } else if (value == null && type === "string") { 6171 value = ""; 6172 needRemove = true; 6173 } else if (type === "number") { 6174 value = 0; 6175 needRemove = true; 6176 } 6177 } 6178 try { 6179 el[key] = value; 6180 } catch (e) { 6181 } 6182 needRemove && el.removeAttribute(attrName || key); 6183} 6184function addEventListener$1(el, event2, handler, options) { 6185 el.addEventListener(event2, handler, options); 6186} 6187function removeEventListener$1(el, event2, handler, options) { 6188 el.removeEventListener(event2, handler, options); 6189} 6190const veiKey = Symbol("_vei"); 6191function patchEvent(el, rawName, prevValue, nextValue, instance = null) { 6192 const invokers = el[veiKey] || (el[veiKey] = {}); 6193 const existingInvoker = invokers[rawName];
vendor: 1,812 bytes, lines 6194-6259
6194 if (nextValue && existingInvoker) { 6195 existingInvoker.value = nextValue; 6196 } else { 6197 const [name, options] = parseName(rawName); 6198 if (nextValue) { 6199 const invoker = invokers[rawName] = createInvoker( 6200 nextValue, 6201 instance 6202 ); 6203 addEventListener$1(el, name, invoker, options); 6204 } else if (existingInvoker) { 6205 removeEventListener$1(el, name, existingInvoker, options); 6206 invokers[rawName] = void 0; 6207 } 6208 } 6209} 6210const optionsModifierRE = /(?:Once|Passive|Capture)$/; 6211function parseName(name) { 6212 let options; 6213 if (optionsModifierRE.test(name)) { 6214 options = {}; 6215 let m; 6216 while (m = name.match(optionsModifierRE)) { 6217 name = name.slice(0, name.length - m[0].length); 6218 options[m[0].toLowerCase()] = true; 6219 } 6220 } 6221 const event2 = name[2] === ":" ? name.slice(3) : hyphenate(name.slice(2)); 6222 return [event2, options]; 6223} 6224let cachedNow = 0; 6225const p = /* @__PURE__ */ Promise.resolve(); 6226const getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now()); 6227function createInvoker(initialValue, instance) { 6228 const invoker = (e) => { 6229 if (!e._vts) { 6230 e._vts = Date.now(); 6231 } else if (e._vts <= invoker.attached) { 6232 return; 6233 } 6234 callWithAsyncErrorHandling( 6235 patchStopImmediatePropagation(e, invoker.value), 6236 instance, 6237 5, 6238 [e] 6239 ); 6240 }; 6241 invoker.value = initialValue; 6242 invoker.attached = getNow(); 6243 return invoker; 6244} 6245function patchStopImmediatePropagation(e, value) { 6246 if (isArray(value)) { 6247 const originalStop = e.stopImmediatePropagation; 6248 e.stopImmediatePropagation = () => { 6249 originalStop.call(e); 6250 e._stopped = true; 6251 }; 6252 return value.map( 6253 (fn) => (e2) => !e2._stopped && fn && fn(e2) 6254 ); 6255 } else { 6256 return value; 6257 } 6258} 6259const isNativeOn = (key) =>
vendor: 6,493 bytes, lines 6259-6459
6259 key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter 6260key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123; 6261const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => { 6262 const isSVG = namespace === "svg"; 6263 if (key === "class") { 6264 patchClass(el, nextValue, isSVG); 6265 } else if (key === "style") { 6266 patchStyle(el, prevValue, nextValue); 6267 } else if (isOn(key)) { 6268 if (!isModelListener(key)) { 6269 patchEvent(el, key, prevValue, nextValue, parentComponent); 6270 } 6271 } else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) { 6272 patchDOMProp(el, key, nextValue); 6273 if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) { 6274 patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value"); 6275 } 6276 } else if ( 6277 // #11081 force set props for possible async custom element 6278 el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue)) 6279 ) { 6280 patchDOMProp(el, camelize(key), nextValue, parentComponent, key); 6281 } else { 6282 if (key === "true-value") { 6283 el._trueValue = nextValue; 6284 } else if (key === "false-value") { 6285 el._falseValue = nextValue; 6286 } 6287 patchAttr(el, key, nextValue, isSVG); 6288 } 6289}; 6290function shouldSetAsProp(el, key, value, isSVG) { 6291 if (isSVG) { 6292 if (key === "innerHTML" || key === "textContent") { 6293 return true; 6294 } 6295 if (key in el && isNativeOn(key) && isFunction(value)) { 6296 return true; 6297 } 6298 return false; 6299 } 6300 if (key === "spellcheck" || key === "draggable" || key === "translate") { 6301 return false; 6302 } 6303 if (key === "form") { 6304 return false; 6305 } 6306 if (key === "list" && el.tagName === "INPUT") { 6307 return false; 6308 } 6309 if (key === "type" && el.tagName === "TEXTAREA") { 6310 return false; 6311 } 6312 if (key === "width" || key === "height") { 6313 const tag = el.tagName; 6314 if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") { 6315 return false; 6316 } 6317 } 6318 if (isNativeOn(key) && isString(value)) { 6319 return false; 6320 } 6321 return key in el; 6322} 6323const getModelAssigner = (vnode) => { 6324 const fn = vnode.props["onUpdate:modelValue"] || false; 6325 return isArray(fn) ? (value) => invokeArrayFns(fn, value) : fn; 6326}; 6327function onCompositionStart(e) { 6328 e.target.composing = true; 6329} 6330function onCompositionEnd(e) { 6331 const target = e.target; 6332 if (target.composing) { 6333 target.composing = false; 6334 target.dispatchEvent(new Event("input")); 6335 } 6336} 6337const assignKey = Symbol("_assign"); 6338const vModelText = { 6339 created(el, { modifiers: { lazy, trim, number } }, vnode) { 6340 el[assignKey] = getModelAssigner(vnode); 6341 const castToNumber = number || vnode.props && vnode.props.type === "number"; 6342 addEventListener$1(el, lazy ? "change" : "input", (e) => { 6343 if (e.target.composing) 6344 return; 6345 let domValue = el.value; 6346 if (trim) { 6347 domValue = domValue.trim(); 6348 } 6349 if (castToNumber) { 6350 domValue = looseToNumber(domValue); 6351 } 6352 el[assignKey](domValue); 6353 }); 6354 if (trim) { 6355 addEventListener$1(el, "change", () => { 6356 el.value = el.value.trim(); 6357 }); 6358 } 6359 if (!lazy) { 6360 addEventListener$1(el, "compositionstart", onCompositionStart); 6361 addEventListener$1(el, "compositionend", onCompositionEnd); 6362 addEventListener$1(el, "change", onCompositionEnd); 6363 } 6364 }, 6365 // set value on mounted so it's after min/max for type="range" 6366 mounted(el, { value }) { 6367 el.value = value == null ? "" : value; 6368 }, 6369 beforeUpdate(el, { value, oldValue, modifiers: { lazy, trim, number } }, vnode) { 6370 el[assignKey] = getModelAssigner(vnode); 6371 if (el.composing) 6372 return; 6373 const elValue = (number || el.type === "number") && !/^0\d/.test(el.value) ? looseToNumber(el.value) : el.value; 6374 const newValue = value == null ? "" : value; 6375 if (elValue === newValue) { 6376 return; 6377 } 6378 if (document.activeElement === el && el.type !== "range") { 6379 if (lazy && value === oldValue) { 6380 return; 6381 } 6382 if (trim && el.value.trim() === newValue) { 6383 return; 6384 } 6385 } 6386 el.value = newValue; 6387 } 6388}; 6389const vModelCheckbox = { 6390 // #4096 array checkboxes need to be deep traversed 6391 deep: true, 6392 created(el, _, vnode) { 6393 el[assignKey] = getModelAssigner(vnode); 6394 addEventListener$1(el, "change", () => { 6395 const modelValue = el._modelValue; 6396 const elementValue = getValue(el); 6397 const checked = el.checked; 6398 const assign2 = el[assignKey]; 6399 if (isArray(modelValue)) { 6400 const index = looseIndexOf(modelValue, elementValue); 6401 const found = index !== -1; 6402 if (checked && !found) { 6403 assign2(modelValue.concat(elementValue)); 6404 } else if (!checked && found) { 6405 const filtered = [...modelValue]; 6406 filtered.splice(index, 1); 6407 assign2(filtered); 6408 } 6409 } else if (isSet(modelValue)) { 6410 const cloned = new Set(modelValue); 6411 if (checked) { 6412 cloned.add(elementValue); 6413 } else { 6414 cloned.delete(elementValue); 6415 } 6416 assign2(cloned); 6417 } else { 6418 assign2(getCheckboxValue(el, checked)); 6419 } 6420 }); 6421 }, 6422 // set initial checked on mount to wait for true-value/false-value 6423 mounted: setChecked, 6424 beforeUpdate(el, binding, vnode) { 6425 el[assignKey] = getModelAssigner(vnode); 6426 setChecked(el, binding, vnode); 6427 } 6428}; 6429function setChecked(el, { value, oldValue }, vnode) { 6430 el._modelValue = value; 6431 let checked; 6432 if (isArray(value)) { 6433 checked = looseIndexOf(value, vnode.props.value) > -1; 6434 } else if (isSet(value)) { 6435 checked = value.has(vnode.props.value); 6436 } else { 6437 if (value === oldValue) 6438 return; 6439 checked = looseEqual(value, getCheckboxValue(el, true)); 6440 } 6441 if (el.checked !== checked) { 6442 el.checked = checked; 6443 } 6444} 6445const vModelSelect = { 6446 // <select multiple> value need to be deep traversed 6447 deep: true, 6448 created(el, { value, modifiers: { number } }, vnode) { 6449 const isSetModel = isSet(value); 6450 addEventListener$1(el, "change", () => { 6451 const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map( 6452 (o) => number ? looseToNumber(getValue(o)) : getValue(o) 6453 ); 6454 el[assignKey]( 6455 el.multiple ? isSetModel ? new Set(selectedVal) : selectedVal : selectedVal[0] 6456 ); 6457 el._assigning = true; 6458 nextTick(() => { 6459 el._assigning = false;
vendor: 4,447 bytes, lines 6460-6609
6460 }); 6461 }); 6462 el[assignKey] = getModelAssigner(vnode); 6463 }, 6464 // set value in mounted & updated because <select> relies on its children 6465 // <option>s. 6466 mounted(el, { value }) { 6467 setSelected(el, value); 6468 }, 6469 beforeUpdate(el, _binding, vnode) { 6470 el[assignKey] = getModelAssigner(vnode); 6471 }, 6472 updated(el, { value }) { 6473 if (!el._assigning) { 6474 setSelected(el, value); 6475 } 6476 } 6477}; 6478function setSelected(el, value) { 6479 const isMultiple = el.multiple; 6480 const isArrayValue = isArray(value); 6481 if (isMultiple && !isArrayValue && !isSet(value)) { 6482 return; 6483 } 6484 for (let i = 0, l = el.options.length; i < l; i++) { 6485 const option = el.options[i]; 6486 const optionValue = getValue(option); 6487 if (isMultiple) { 6488 if (isArrayValue) { 6489 const optionType = typeof optionValue; 6490 if (optionType === "string" || optionType === "number") { 6491 option.selected = value.some((v) => String(v) === String(optionValue)); 6492 } else { 6493 option.selected = looseIndexOf(value, optionValue) > -1; 6494 } 6495 } else { 6496 option.selected = value.has(optionValue); 6497 } 6498 } else if (looseEqual(getValue(option), value)) { 6499 if (el.selectedIndex !== i) 6500 el.selectedIndex = i; 6501 return; 6502 } 6503 } 6504 if (!isMultiple && el.selectedIndex !== -1) { 6505 el.selectedIndex = -1; 6506 } 6507} 6508function getValue(el) { 6509 return "_value" in el ? el._value : el.value; 6510} 6511function getCheckboxValue(el, checked) { 6512 const key = checked ? "_trueValue" : "_falseValue"; 6513 return key in el ? el[key] : checked; 6514} 6515const systemModifiers = ["ctrl", "shift", "alt", "meta"]; 6516const modifierGuards = { 6517 stop: (e) => e.stopPropagation(), 6518 prevent: (e) => e.preventDefault(), 6519 self: (e) => e.target !== e.currentTarget, 6520 ctrl: (e) => !e.ctrlKey, 6521 shift: (e) => !e.shiftKey, 6522 alt: (e) => !e.altKey, 6523 meta: (e) => !e.metaKey, 6524 left: (e) => "button" in e && e.button !== 0, 6525 middle: (e) => "button" in e && e.button !== 1, 6526 right: (e) => "button" in e && e.button !== 2, 6527 exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m)) 6528}; 6529const withModifiers = (fn, modifiers) => { 6530 const cache = fn._withMods || (fn._withMods = {}); 6531 const cacheKey = modifiers.join("."); 6532 return cache[cacheKey] || (cache[cacheKey] = (event2, ...args) => { 6533 for (let i = 0; i < modifiers.length; i++) { 6534 const guard = modifierGuards[modifiers[i]]; 6535 if (guard && guard(event2, modifiers)) 6536 return; 6537 } 6538 return fn(event2, ...args); 6539 }); 6540}; 6541const keyNames = { 6542 esc: "escape", 6543 space: " ", 6544 up: "arrow-up", 6545 left: "arrow-left", 6546 right: "arrow-right", 6547 down: "arrow-down", 6548 delete: "backspace" 6549}; 6550const withKeys = (fn, modifiers) => { 6551 const cache = fn._withKeys || (fn._withKeys = {}); 6552 const cacheKey = modifiers.join("."); 6553 return cache[cacheKey] || (cache[cacheKey] = (event2) => { 6554 if (!("key" in event2)) { 6555 return; 6556 } 6557 const eventKey = hyphenate(event2.key); 6558 if (modifiers.some( 6559 (k) => k === eventKey || keyNames[k] === eventKey 6560 )) { 6561 return fn(event2); 6562 } 6563 }); 6564}; 6565const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps); 6566let renderer; 6567function ensureRenderer() { 6568 return renderer || (renderer = createRenderer(rendererOptions)); 6569} 6570const createApp = (...args) => { 6571 const app = ensureRenderer().createApp(...args); 6572 const { mount } = app; 6573 app.mount = (containerOrSelector) => { 6574 const container = normalizeContainer(containerOrSelector); 6575 if (!container) 6576 return; 6577 const component = app._component; 6578 if (!isFunction(component) && !component.render && !component.template) { 6579 component.template = container.innerHTML; 6580 } 6581 if (container.nodeType === 1) { 6582 container.textContent = ""; 6583 } 6584 const proxy = mount(container, false, resolveRootNamespace(container)); 6585 if (container instanceof Element) { 6586 container.removeAttribute("v-cloak"); 6587 container.setAttribute("data-v-app", ""); 6588 } 6589 return proxy; 6590 }; 6591 return app; 6592}; 6593function resolveRootNamespace(container) { 6594 if (container instanceof SVGElement) { 6595 return "svg"; 6596 } 6597 if (typeof MathMLElement === "function" && container instanceof MathMLElement) { 6598 return "mathml"; 6599 } 6600} 6601function normalizeContainer(container) { 6602 if (isString(container)) { 6603 const res = document.querySelector(container); 6604 return res; 6605 } 6606 return container; 6607} 6608const style = ""; 6609var isVue2 = false;
vendor: 4,460 bytes, lines 6610-6760
6610/*! 6611 * pinia v2.3.1 6612 * (c) 2025 Eduardo San Martin Morote 6613 * @license MIT 6614 */ 6615let activePinia; 6616const setActivePinia = (pinia2) => activePinia = pinia2; 6617const piniaSymbol = ( 6618 /* istanbul ignore next */ 6619 Symbol() 6620); 6621function isPlainObject(o) { 6622 return o && typeof o === "object" && Object.prototype.toString.call(o) === "[object Object]" && typeof o.toJSON !== "function"; 6623} 6624var MutationType; 6625(function(MutationType2) { 6626 MutationType2["direct"] = "direct"; 6627 MutationType2["patchObject"] = "patch object"; 6628 MutationType2["patchFunction"] = "patch function"; 6629})(MutationType || (MutationType = {})); 6630function createPinia() { 6631 const scope = effectScope(true); 6632 const state = scope.run(() => ref({})); 6633 let _p = []; 6634 let toBeInstalled = []; 6635 const pinia2 = markRaw({ 6636 install(app) { 6637 setActivePinia(pinia2); 6638 { 6639 pinia2._a = app; 6640 app.provide(piniaSymbol, pinia2); 6641 app.config.globalProperties.$pinia = pinia2; 6642 toBeInstalled.forEach((plugin) => _p.push(plugin)); 6643 toBeInstalled = []; 6644 } 6645 }, 6646 use(plugin) { 6647 if (!this._a && !isVue2) { 6648 toBeInstalled.push(plugin); 6649 } else { 6650 _p.push(plugin); 6651 } 6652 return this; 6653 }, 6654 _p, 6655 // it's actually undefined here 6656 // @ts-expect-error 6657 _a: null, 6658 _e: scope, 6659 _s: /* @__PURE__ */ new Map(), 6660 state 6661 }); 6662 return pinia2; 6663} 6664const noop$1 = () => { 6665}; 6666function addSubscription(subscriptions, callback, detached, onCleanup = noop$1) { 6667 subscriptions.push(callback); 6668 const removeSubscription = () => { 6669 const idx = subscriptions.indexOf(callback); 6670 if (idx > -1) { 6671 subscriptions.splice(idx, 1); 6672 onCleanup(); 6673 } 6674 }; 6675 if (!detached && getCurrentScope()) { 6676 onScopeDispose(removeSubscription); 6677 } 6678 return removeSubscription; 6679} 6680function triggerSubscriptions(subscriptions, ...args) { 6681 subscriptions.slice().forEach((callback) => { 6682 callback(...args); 6683 }); 6684} 6685const fallbackRunWithContext = (fn) => fn(); 6686const ACTION_MARKER = Symbol(); 6687const ACTION_NAME = Symbol(); 6688function mergeReactiveObjects(target, patchToApply) { 6689 if (target instanceof Map && patchToApply instanceof Map) { 6690 patchToApply.forEach((value, key) => target.set(key, value)); 6691 } else if (target instanceof Set && patchToApply instanceof Set) { 6692 patchToApply.forEach(target.add, target); 6693 } 6694 for (const key in patchToApply) { 6695 if (!patchToApply.hasOwnProperty(key)) 6696 continue; 6697 const subPatch = patchToApply[key]; 6698 const targetValue = target[key]; 6699 if (isPlainObject(targetValue) && isPlainObject(subPatch) && target.hasOwnProperty(key) && !isRef(subPatch) && !isReactive(subPatch)) { 6700 target[key] = mergeReactiveObjects(targetValue, subPatch); 6701 } else { 6702 target[key] = subPatch; 6703 } 6704 } 6705 return target; 6706} 6707const skipHydrateSymbol = ( 6708 /* istanbul ignore next */ 6709 Symbol() 6710); 6711function shouldHydrate(obj) { 6712 return !isPlainObject(obj) || !obj.hasOwnProperty(skipHydrateSymbol); 6713} 6714const { assign } = Object; 6715function isComputed(o) { 6716 return !!(isRef(o) && o.effect); 6717} 6718function createOptionsStore(id, options, pinia2, hot) { 6719 const { state, actions, getters } = options; 6720 const initialState = pinia2.state.value[id]; 6721 let store; 6722 function setup() { 6723 if (!initialState && true) { 6724 { 6725 pinia2.state.value[id] = state ? state() : {}; 6726 } 6727 } 6728 const localState = toRefs(pinia2.state.value[id]); 6729 return assign(localState, actions, Object.keys(getters || {}).reduce((computedGetters, name) => { 6730 computedGetters[name] = markRaw(computed(() => { 6731 setActivePinia(pinia2); 6732 const store2 = pinia2._s.get(id); 6733 return getters[name].call(store2, store2); 6734 })); 6735 return computedGetters; 6736 }, {})); 6737 } 6738 store = createSetupStore(id, setup, options, pinia2, hot, true); 6739 return store; 6740} 6741function createSetupStore($id, setup, options = {}, pinia2, hot, isOptionsStore) { 6742 let scope; 6743 const optionsForPlugin = assign({ actions: {} }, options); 6744 const $subscribeOptions = { deep: true }; 6745 let isListening; 6746 let isSyncListening; 6747 let subscriptions = []; 6748 let actionSubscriptions = []; 6749 let debuggerEvents; 6750 const initialState = pinia2.state.value[$id]; 6751 if (!isOptionsStore && !initialState && true) { 6752 { 6753 pinia2.state.value[$id] = {}; 6754 } 6755 } 6756 ref({}); 6757 let activeListener; 6758 function $patch(partialStateOrMutator) { 6759 let subscriptionMutation; 6760 isListening = isSyncListening = false;
6761 if (typeof partialStateOrMutator === "function") { 6762 partialStateOrMutator(pinia2.state.value[$id]); 6763 subscriptionMutation = { 6764 type: MutationType.patchFunction, 6765 storeId: $id, 6766 events: debuggerEvents 6767 }; 6768 } else { 6769 mergeReactiveObjects(pinia2.state.value[$id], partialStateOrMutator); 6770 subscriptionMutation = { 6771 type: MutationType.patchObject, 6772 payload: partialStateOrMutator, 6773 storeId: $id, 6774 events: debuggerEvents 6775 }; 6776 } 6777 const myListenerId = activeListener = Symbol(); 6778 nextTick().then(() => { 6779 if (activeListener === myListenerId) { 6780 isListening = true; 6781 } 6782 }); 6783 isSyncListening = true; 6784 triggerSubscriptions(subscriptions, subscriptionMutation, pinia2.state.value[$id]); 6785 } 6786 const $reset = isOptionsStore ? function $reset2() { 6787 const { state } = options; 6788 const newState = state ? state() : {}; 6789 this.$patch(($state) => { 6790 assign($state, newState); 6791 }); 6792 } : ( 6793 /* istanbul ignore next */ 6794 noop$1 6795 ); 6796 function $dispose() { 6797 scope.stop(); 6798 subscriptions = []; 6799 actionSubscriptions = []; 6800 pinia2._s.delete($id); 6801 } 6802 const action = (fn, name = "") => { 6803 if (ACTION_MARKER in fn) { 6804 fn[ACTION_NAME] = name; 6805 return fn; 6806 } 6807 const wrappedAction = function() { 6808 setActivePinia(pinia2); 6809 const args = Array.from(arguments); 6810 const afterCallbackList = []; 6811 const onErrorCallbackList = []; 6812 function after(callback) { 6813 afterCallbackList.push(callback); 6814 } 6815 function onError(callback) { 6816 onErrorCallbackList.push(callback); 6817 } 6818 triggerSubscriptions(actionSubscriptions, { 6819 args, 6820 name: wrappedAction[ACTION_NAME], 6821 store, 6822 after, 6823 onError 6824 }); 6825 let ret; 6826 try {
vendor: 4,184 bytes, lines 6827-6967
6827 ret = fn.apply(this && this.$id === $id ? this : store, args); 6828 } catch (error) { 6829 triggerSubscriptions(onErrorCallbackList, error); 6830 throw error; 6831 } 6832 if (ret instanceof Promise) { 6833 return ret.then((value) => { 6834 triggerSubscriptions(afterCallbackList, value); 6835 return value; 6836 }).catch((error) => { 6837 triggerSubscriptions(onErrorCallbackList, error); 6838 return Promise.reject(error); 6839 }); 6840 } 6841 triggerSubscriptions(afterCallbackList, ret); 6842 return ret; 6843 }; 6844 wrappedAction[ACTION_MARKER] = true; 6845 wrappedAction[ACTION_NAME] = name; 6846 return wrappedAction; 6847 }; 6848 const partialStore = { 6849 _p: pinia2, 6850 // _s: scope, 6851 $id, 6852 $onAction: addSubscription.bind(null, actionSubscriptions), 6853 $patch, 6854 $reset, 6855 $subscribe(callback, options2 = {}) { 6856 const removeSubscription = addSubscription(subscriptions, callback, options2.detached, () => stopWatcher()); 6857 const stopWatcher = scope.run(() => watch(() => pinia2.state.value[$id], (state) => { 6858 if (options2.flush === "sync" ? isSyncListening : isListening) { 6859 callback({ 6860 storeId: $id, 6861 type: MutationType.direct, 6862 events: debuggerEvents 6863 }, state); 6864 } 6865 }, assign({}, $subscribeOptions, options2))); 6866 return removeSubscription; 6867 }, 6868 $dispose 6869 }; 6870 const store = reactive(partialStore); 6871 pinia2._s.set($id, store); 6872 const runWithContext = pinia2._a && pinia2._a.runWithContext || fallbackRunWithContext; 6873 const setupStore = runWithContext(() => pinia2._e.run(() => (scope = effectScope()).run(() => setup({ action })))); 6874 for (const key in setupStore) { 6875 const prop = setupStore[key]; 6876 if (isRef(prop) && !isComputed(prop) || isReactive(prop)) { 6877 if (!isOptionsStore) { 6878 if (initialState && shouldHydrate(prop)) { 6879 if (isRef(prop)) { 6880 prop.value = initialState[key]; 6881 } else { 6882 mergeReactiveObjects(prop, initialState[key]); 6883 } 6884 } 6885 { 6886 pinia2.state.value[$id][key] = prop; 6887 } 6888 } 6889 } else if (typeof prop === "function") { 6890 const actionValue = action(prop, key); 6891 { 6892 setupStore[key] = actionValue; 6893 } 6894 optionsForPlugin.actions[key] = prop; 6895 } else 6896 ; 6897 } 6898 { 6899 assign(store, setupStore); 6900 assign(toRaw(store), setupStore); 6901 } 6902 Object.defineProperty(store, "$state", { 6903 get: () => pinia2.state.value[$id], 6904 set: (state) => { 6905 $patch(($state) => { 6906 assign($state, state); 6907 }); 6908 } 6909 }); 6910 pinia2._p.forEach((extender) => { 6911 { 6912 assign(store, scope.run(() => extender({ 6913 store, 6914 app: pinia2._a, 6915 pinia: pinia2, 6916 options: optionsForPlugin 6917 }))); 6918 } 6919 }); 6920 if (initialState && isOptionsStore && options.hydrate) { 6921 options.hydrate(store.$state, initialState); 6922 } 6923 isListening = true; 6924 isSyncListening = true; 6925 return store; 6926} 6927/*! #__NO_SIDE_EFFECTS__ */ 6928// @__NO_SIDE_EFFECTS__ 6929function defineStore(idOrOptions, setup, setupOptions) { 6930 let id; 6931 let options; 6932 const isSetupStore = typeof setup === "function"; 6933 if (typeof idOrOptions === "string") { 6934 id = idOrOptions; 6935 options = isSetupStore ? setupOptions : setup; 6936 } else { 6937 options = idOrOptions; 6938 id = idOrOptions.id; 6939 } 6940 function useStore2(pinia2, hot) { 6941 const hasContext = hasInjectionContext(); 6942 pinia2 = // in test mode, ignore the argument provided as we can always retrieve a 6943 // pinia instance with getActivePinia() 6944 pinia2 || (hasContext ? inject(piniaSymbol, null) : null); 6945 if (pinia2) 6946 setActivePinia(pinia2); 6947 pinia2 = activePinia; 6948 if (!pinia2._s.has(id)) { 6949 if (isSetupStore) { 6950 createSetupStore(id, setup, options, pinia2); 6951 } else { 6952 createOptionsStore(id, options, pinia2); 6953 } 6954 } 6955 const store = pinia2._s.get(id); 6956 return store; 6957 } 6958 useStore2.$id = id; 6959 return useStore2; 6960} 6961/*! 6962 * mande v2.0.8 6963 * (c) 2024 Eduardo San Martin Morote 6964 * @license MIT 6965 */ 6966function stringifyQuery(query) { 6967 let searchParams = Object.keys(query).map((k) =>
6967 [k, query[k]].map(encodeURIComponent).join("=")).join("&"); 6968 return searchParams ? "?" + searchParams : ""; 6969} 6970let leadingSlashRE = /^\/+/; 6971function joinURL(base, url) { 6972 return base + (url && (base.endsWith("/") ? url.replace(leadingSlashRE, "") : url.startsWith("/") ? url : "/" + url)); 6973} 6974function removeNullishValues(headers) { 6975 return Object.keys(headers).reduce((newHeaders, headerName) => { 6976 if (headers[headerName] != null) { 6977 newHeaders[headerName] = headers[headerName]; 6978 } 6979 return newHeaders; 6980 }, {}); 6981} 6982const defaults = { 6983 responseAs: "json", 6984 headers: { 6985 Accept: "application/json" 6986 // NOTE: instead of passing json here, we pass it when creating the request to automatically handle FormData 6987 // 'Content-Type': data instanceof FormData ? null : 'application/json', 6988 }, 6989 stringify: JSON.stringify 6990}; 6991function mande(baseURL, passedInstanceOptions = {}, fetchPolyfill) { 6992 function _fetch(method, urlOrDataOrOptions, dataOrOptions, localOptions = {}) { 6993 let url; 6994 let data; 6995 if (typeof urlOrDataOrOptions === "object") { 6996 url = ""; 6997 localOptions = dataOrOptions || urlOrDataOrOptions || {}; 6998 data = urlOrDataOrOptions; 6999 } else { 7000 url = urlOrDataOrOptions; 7001 data = dataOrOptions; 7002 } 7003 let mergedOptions = { 7004 ...defaults, 7005 ...instanceOptions, 7006 method, 7007 ...localOptions, 7008 // we need to ditch nullish headers 7009 headers: removeNullishValues({ 7010 // let the browser automatically set the content-type with FormData 7011 "Content-Type": data instanceof FormData ? null : "application/json", 7012 ...defaults.headers, 7013 ...instanceOptions.headers, 7014 ...localOptions.headers 7015 }) 7016 }; 7017 let query = { 7018 ...defaults.query, 7019 ...instanceOptions.query, 7020 ...localOptions.query 7021 }; 7022 let { responseAs } = mergedOptions; 7023 url = joinURL(baseURL, typeof url === "number" ? "" + url : url || ""); 7024 url += stringifyQuery(query); 7025 if (method[0] === "P" && data && !mergedOptions.body) { 7026 mergedOptions.body = data instanceof FormData ? data : mergedOptions.stringify(data); 7027 } 7028 const localFetch = typeof fetch != "undefined" ? fetch : fetchPolyfill; 7029 if (!localFetch) { 7030 throw new Error("No fetch function exists. Make sure to include a polyfill on Node.js."); 7031 } 7032 return localFetch(url, mergedOptions).then((response) => ( 7033 // This is to get the response directly in the next then 7034 Promise.all([ 7035 response, 7036 responseAs === "response" ? response : ( 7037 // TODO: propagate error data to MandeError 7038 response[responseAs]().catch(() => null) 7039 ) 7040 ]) 7041 )).then(([response, dataOrError]) => { 7042 if (response.status >= 200 && response.status < 300) { 7043 return responseAs !== "response" && response.status == 204 ? null : dataOrError; 7044 } 7045 let err = new Error(response.statusText); 7046 err.response = response; 7047 err.body = dataOrError; 7048 throw err; 7049 }); 7050 } 7051 const instanceOptions = { 7052 query: {}, 7053 headers: {}, 7054 ...passedInstanceOptions 7055 }; 7056 return { 7057 options: instanceOptions, 7058 post: _fetch.bind(null, "POST"), 7059 put: _fetch.bind(null, "PUT"), 7060 patch: _fetch.bind(null, "PATCH"), 7061 // these two have no body 7062 get: (url, options) => _fetch("GET", url, null, options), 7063 delete: (url, options) => _fetch("DELETE", url, null, options) 7064 }; 7065} 7066var AddressSuggestStatus = /* @__PURE__ */ ((AddressSuggestStatus2) => { 7067 AddressSuggestStatus2["Success"] = "success"; 7068 AddressSuggestStatus2["Error"] = "error"; 7069 return AddressSuggestStatus2; 7070})(AddressSuggestStatus || {}); 7071const ADDRESS_SUGGEST_SEARCH_FROM_BOUND = 2; 7072const ADDRESS_SUGGEST_RESULTS_LIMIT = 10; 7073const NO_CZ = "no-CZ"; 7074const NO_SK = "no-SK"; 7075const CZ = "CZ"; 7076const SK = "SK"; 7077class UrlFilterParameters { 7078 constructor(values, baseApiUrl = "/hledani/") { 7079 // myslet take na parsovani a url adresy na objektu, 7080 // po zvazeni a zkonzultovani s nekym UX je treba myslet taky nato, kdy nacist hodnoty z url a kdy je kontrolovat, jak se zachovat pri neexistenci cislniku apod. 7081 __publicField(this, "values"); 7082 __publicField(this, "baseApiUrl"); 7083 this.values = values; 7084 this.baseApiUrl = baseApiUrl; 7085 } 7086 /** 7087 * @param additionalParameters 7088 * @param shouldSkip - urcije, jestli se maji preskocit "pretty" parametry v URL. Pri ziskavani jen inputu pro filter nepotrebujeme preskakovat, takze by melo byt shouldSkip = false 7089 */ 7090 getUrlFromInputs(additionalParameters, shouldSkip = true) { 7091 let prettyUrl = this.baseApiUrl; 7092 if (shouldSkip) { 7093 prettyUrl = this.getPrettyUrl(); 7094 } 7095 let urlQueryParams = this.getQueryParameters(additionalParameters, shouldSkip); 7096 let result = prettyUrl + (urlQueryParams.toString() === "" ? "" : (prettyUrl.includes("?") ? "&" : "?") + urlQueryParams.toString()); 7097 return result; 7098 } 7099 getPrettyUrl() { 7100 const domain = ""; 7101 let res = domain + this.baseApiUrl; 7102 const appendUrlRes = []; 7103 let prettyIdTypSlouvy = window.codebook["id_typ_smlouvy"]["0"]; 7104 if (typeof window.codebook["id_typ_smlouvy"][this.values.id_typ_smlouvy] !== "undefined") { 7105 prettyIdTypSlouvy = window.codebook["id_typ_smlouvy"][this.values.id_typ_smlouvy]; 7106 } 7107 res = res + prettyIdTypSlouvy + "/"; 7108 const prettyIdTypNemovitosti = []; 7109 if (typeof this.values.id_typ_nemovitosti !== "undefined" && this.values.id_typ_nemovitosti.length !== 0) {
7110 this.values.id_typ_nemovitosti.forEach((idTypNemovitosti) => { 7111 if (typeof window.codebook["id_typ_nemovitosti"][idTypNemovitosti] !== "undefined") { 7112 prettyIdTypNemovitosti.push(window.codebook["id_typ_nemovitosti"][idTypNemovitosti]); 7113 } 7114 }); 7115 } else { 7116 prettyIdTypNemovitosti.push(window.poskiLocale["url_vse"]); 7117 } 7118 res = res + prettyIdTypNemovitosti.join(",") + "/"; 7119 if (typeof this.values.idKraje !== "undefined" && this.values.idKraje.length != 0) { 7120 let krajePretty = []; 7121 this.values.idKraje.forEach((KrajValue) => { 7122 if (typeof window.codebook["idKraje"][KrajValue] !== "undefined") { 7123 krajePretty.push(window.codebook["idKraje"][KrajValue]); 7124 } else { 7125 appendUrlRes.push("idKrajeCizi[]=" + KrajValue); 7126 } 7127 }); 7128 krajePretty.sort(); 7129 if (krajePretty.length > 0) { 7130 res = res + krajePretty.join(",") + "/"; 7131 } else { 7132 res = res + window.codebook["idKraje"][0] + "/"; 7133 } 7134 } 7135 if (appendUrlRes.length > 0) { 7136 res = res + "?" + appendUrlRes.join("&"); 7137 } 7138 return res; 7139 } 7140 getQueryParameters(additionalParameters, shouldSkip = true) { 7141 let query = new URLSearchParams(); 7142 Object.entries(this.values).forEach(([id, value]) => { 7143 if (shouldSkip && UrlFilterParameters.shouldSkipQueryParameter(id)) { 7144 return; 7145 } 7146 if (["cena_od", "cena_do", "cena_eur_od", "cena_eur_do"].includes(id) && typeof value !== "undefined") { 7147 value = value.replace(/\D/g, ""); 7148 } 7149 if (typeof value !== "undefined" && Array.isArray(value)) { 7150 value.forEach((valueItem) => { 7151 if (valueItem != 0) { 7152 query.append(id + "[]", valueItem); 7153 } 7154 }); 7155 } else if (typeof id !== "undefined" && typeof value !== "undefined" && (value && parseInt(value) != 0)) { 7156 query.append(id, value); 7157 } 7158 }); 7159 if (typeof additionalParameters !== "undefined" && additionalParameters !== null) { 7160 Object.entries(additionalParameters).forEach(([key, val]) => { 7161 query.append(key, val.toString()); 7162 }); 7163 } 7164 return query; 7165 } 7166 static shouldSkipQueryParameter(id) { 7167 return ["id_typ_smlouvy", "id_typ_nemovitosti", "idKraje", "mapBounds"].includes(id); 7168 } 7169} 7170const apiBaseURL = "/apinemovitosti"; 7171const apiFilterChoicesURL = "/hledani.json"; 7172const api = mande("/"); 7173const frontendFilterVueAppElement = document.querySelector("[data-frontend-filter]"); 7174const checkboxInputKeys = ["soukroma_inzerce", "balcony", "terrace", "garage", "loggie", "cellar", "parking", "garden", "vytah", "pristup", "video", "matterport", "novinka", "doporucujeme", "sleva_zobrazit"]; 7175const useFilterValuesStore = /* @__PURE__ */ defineStore("frontendFilterValues", { 7176 state: () => ({ 7177 id_typ_nemovitosti: [], 7178 // 0 jako vychozi moznost, aby byl viditelny v selectu na zacatku misto labelu 7179 id_podtyp_nemovitosti: [], 7180 id_typ_smlouvy: 0, 7181 // aby slo videt jako prvni zvolena moznost misto labelu 7182 id_zs: "", 7183 fulltext: "", 7184 id_uzivatel: void 0, 7185 id_pobocka: void 0, 7186 idStat: void 0, 7187 krajeZahranici: [], 7188 okresZahranici: [], 7189 mestaZahranici: [], 7190 idKraje: [], 7191 idOkresy: [], 7192 idMesta: [], 7193 idCObce: [], 7194 idMCasti: [], 7195 idPObvod: [], 7196 idKUzemi: [], 7197 vlastnictvi: [], 7198 cena_od: void 0, 7199 cena_do: void 0, 7200 cena_eur_od: void 0, 7201 cena_eur_do: void 0, 7202 plocha_od: void 0, 7203 plocha_do: void 0, 7204 soukroma_inzerce: void 0, 7205 mapBounds: void 0, 7206 building_type: [], 7207 furnished: void 0, 7208 balcony: void 0, 7209 loggie: void 0, 7210 garden: void 0, 7211 terrace: void 0, 7212 cellar: void 0, 7213 parking: void 0, 7214 garage: void 0, 7215 vytah: void 0, 7216 pristup: void 0, 7217 video: void 0, 7218 matterport: void 0, 7219 novinka: void 0, 7220 doporucujeme: void 0, 7221 sleva_zobrazit: void 0 7222 }), 7223 actions: { 7224 formatOneCoordinate(coordinate) { 7225 const unifiedCoordinate = (coordinate >= 0 ? "+" : "-") + Math.abs(coordinate).toFixed(5).toString().padStart(9, "0"); 7226 return unifiedCoordinate.replace(".", ""); 7227 }, 7228 /** 7229 * Vraci mi string sestaveny z GPS souradnic, kdy 1. znak je +/- , 2.-4. znak je cislo pred ".", tedy napr 001 a zbylych 5 znaku jsou desetinne mista 7230 * napr.: +00350000 7231 * @param gMapBoundsString 7232 */ 7233 setMapBoundsByBoundsString(gMapBoundsString) { 7234 if (typeof gMapBoundsString === "object" && gMapBoundsString._northEast && gMapBoundsString._southWest) { 7235 gMapBoundsString = `${gMapBoundsString._southWest.lat},${gMapBoundsString._southWest.lng},${gMapBoundsString._northEast.lat},${gMapBoundsString._northEast.lng}`; 7236 } 7237 const boundsSplittedArray = gMapBoundsString.split(/[,|]/); 7238 let res = ""; 7239 boundsSplittedArray.forEach((item) => { 7240 res += this.formatOneCoordinate(parseFloat(item)); 7241 }); 7242 this.mapBounds = res; 7243 }, 7244 setMapBoundsWGS84Polygon(polygonWGS84) { 7245 let res = ""; 7246 polygonWGS84.forEach((CoordsWGS84) => { 7247 CoordsWGS84.forEach((oneCoordWGS84) => { 7248 res += this.formatOneCoordinate(oneCoordWGS84); 7249 }); 7250 }); 7251 this.mapBounds = res; 7252 }, 7253 setFromCurrentUrl() { 7254 const frontendFilterStore = useStore(); 7255 const currentUrl = new URL(window.location.toString()); 7256 const pathnameExploded = currentUrl.pathname.split("/").filter((el) => !["cs", "en", "es", "sk", ""].includes(el)); 7257 if (typeof pathnameExploded[0] !== "undefined") { 7258 const foundIdTypSmlouvyKey = Object.keys(window.codebook["id_typ_smlouvy"]).find((id) => window.codebook["id_typ_smlouvy"][id] == pathnameExploded[0]); 7259 if (typeof foundIdTypSmlouvyKey !== "undefined") { 7260 this.id_typ_smlouvy = foundIdTypSmlouvyKey; 7261 } else { 7262 this.id_typ_smlouvy = frontendFilterStore.inputs.id_typ_smlouvy.default; 7263 } 7264 } 7265 if (typeof pathnameExploded[1] !== "undefined") { 7266 const possibleIdTypnemovitostiPathname = pathnameExploded[1].split(","); 7267 const foundIdTypNemovitostiKey = Object.keys(window.codebook["id_typ_nemovitosti"]).map((id) => isNaN(parseInt(id)) ? id : parseInt(id)).filter((id) => possibleIdTypnemovitostiPathname.includes(window.codebook["id_typ_nemovitosti"][id])); 7268 if (typeof foundIdTypNemovitostiKey !== "undefined") { 7269 this.id_typ_nemovitosti = foundIdTypNemovitostiKey; 7270 } else { 7271 this.id_typ_nemovitosti = frontendFilterStore.inputs.id_typ_nemovitosti.default; 7272 } 7273 } 7274 if (typeof pathnameExploded[2] !== "undefined") { 7275 const possibleIdKrajeromPathname = pathnameExploded[2].split(","); 7276 const foundIdKrajeKey = Object.keys(window.codebook["idKraje"]).filter((id) => possibleIdKrajeromPathname.includes(window.codebook["idKraje"][id]) && id !== "0"); 7277 if (typeof foundIdKrajeKey !== "undefined" && !foundIdKrajeKey.includes("0")) { 7278 this.idKraje = foundIdKrajeKey; 7279 } else { 7280 this.idKraje = frontendFilterStore.inputs.idKraje.default; 7281 } 7282 }
7283 currentUrl.searchParams.forEach((value, key) => { 7284 let arrayVariableName = /.+?(?=\[)/g.exec(key); 7285 if (arrayVariableName && arrayVariableName.length && this.$state.hasOwnProperty(arrayVariableName[0])) { 7286 this.$state[arrayVariableName[0]].push(value); 7287 } else if (this.$state.hasOwnProperty(this.transformKey(key))) { 7288 if (checkboxInputKeys.includes(this.transformKey(key)) && value === "1") { 7289 this.$state[this.transformKey(key)] = true; 7290 } else { 7291 this.$state[this.transformKey(key)] = value; 7292 } 7293 } 7294 }); 7295 if (currentUrl.searchParams.get("stranka") && currentUrl.searchParams.get("pocet")) { 7296 frontendFilterStore.currentPageNumber = parseInt(currentUrl.searchParams.get("stranka")); 7297 frontendFilterStore.currentPageSize = parseInt(currentUrl.searchParams.get("pocet")); 7298 } else if (!currentUrl.searchParams.get("stranka") && currentUrl.searchParams.get("pocet")) { 7299 frontendFilterStore.currentPageNumber = 1; 7300 frontendFilterStore.currentPageSize = parseInt(currentUrl.searchParams.get("pocet")); 7301 } else if (typeof (frontendFilterStore.definitions["PAGE_SIZE"] !== "undefined")) { 7302 frontendFilterStore.currentPageSize = parseInt(frontendFilterStore.definitions["PAGE_SIZE"].toString()); 7303 } 7304 if (currentUrl.searchParams.get("podle")) { 7305 frontendFilterStore.currentOrderBy = currentUrl.searchParams.get("podle"); 7306 } 7307 if (currentUrl.searchParams.get("fulltext")) { 7308 this.fulltext = currentUrl.searchParams.get("fulltext"); 7309 document.querySelector('[data-frontend-filter] [name="fulltext"]').value = this.fulltext; 7310 } 7311 }, 7312 transformKey(originalKey) { 7313 let res = originalKey; 7314 if (originalKey) { 7315 if (originalKey === "pobocka") { 7316 res = "id_pobocka"; 7317 } else if (originalKey === "uzivatel") { 7318 res = "id_uzivatel"; 7319 } 7320 } 7321 return res; 7322 } 7323 } 7324}); 7325let loadFilterChoicesAndCountsTimeout = void 0; 7326const useStore = /* @__PURE__ */ defineStore("frontendfilter", { 7327 state: () => ({ 7328 inputs: { 7329 id_typ_nemovitosti: { 7330 id: "id_typ_nemovitosti", 7331 default: void 0, 7332 choices: void 0 7333 }, 7334 id_podtyp_nemovitosti: { 7335 id: "id_podtyp_nemovitosti", 7336 default: void 0, 7337 choices: void 0 7338 }, 7339 id_typ_smlouvy: { 7340 id: "id_typ_smlouvy", 7341 default: 0, 7342 choices: void 0 7343 }, 7344 id_zs: { 7345 id: "id_zs", 7346 default: "" 7347 }, 7348 fulltext: { 7349 id: "fulltext", 7350 default: "" 7351 }, 7352 idStat: { 7353 id: "id_eurostat_country", 7354 default: void 0, 7355 choices: [] 7356 }, 7357 krajeZahranici: { 7358 id: "krajeZahranici", 7359 default: void 0, 7360 choices: [] 7361 }, 7362 okresZahranici: { 7363 id: "okresZahranici", 7364 default: void 0, 7365 choices: [] 7366 }, 7367 mestaZahranici: { 7368 id: "mestaZahranici", 7369 default: void 0, 7370 choices: [] 7371 }, 7372 idKraje: { 7373 id: "idKraje", 7374 default: void 0, 7375 choices: [] 7376 }, 7377 idOkresy: { 7378 id: "idOkresy", 7379 default: void 0, 7380 choices: [] 7381 }, 7382 idMesta: { 7383 id: "idMesta", 7384 default: void 0, 7385 choices: [] 7386 }, 7387 idCObce: { 7388 id: "idCObce", 7389 default: void 0, 7390 choices: [] 7391 }, 7392 idMCasti: { 7393 id: "idMCasti", 7394 default: void 0, 7395 choices: [] 7396 }, 7397 idPObvod: { 7398 id: "idPObvod", 7399 default: void 0, 7400 choices: [] 7401 }, 7402 idKUzemi: { 7403 id: "idKUzemi", 7404 default: void 0, 7405 choices: [] 7406 }, 7407 cena_od: { 7408 id: "cena_od", 7409 default: void 0 7410 }, 7411 cena_do: { 7412 id: "cena_do", 7413 default: void 0 7414 }, 7415 cena_eur_od: { 7416 id: "cena_eur_od", 7417 default: void 0 7418 }, 7419 cena_eur_do: { 7420 id: "cena_eur_do", 7421 default: void 0 7422 }, 7423 plocha_od: { 7424 id: "plocha_od", 7425 default: void 0 7426 }, 7427 plocha_do: { 7428 id: "plocha_do", 7429 default: void 0 7430 }, 7431 vlastnictvi: { 7432 id: "vlastnictvi", 7433 default: void 0, 7434 choices: [] 7435 }, 7436 soukroma_inzerce: { 7437 id: "soukroma_inzerce", 7438 default: void 0 7439 }, 7440 mapBounds: {
7441 id: "bounds", 7442 default: void 0 7443 }, 7444 building_type: { 7445 id: "building_type", 7446 default: void 0, 7447 choices: [] 7448 }, 7449 furnished: { 7450 id: "furnished", 7451 default: void 0, 7452 choices: void 0 7453 }, 7454 balcony: { 7455 id: "balcony", 7456 default: void 0 7457 }, 7458 loggie: { 7459 id: "loggie", 7460 default: void 0 7461 }, 7462 garde: { 7463 id: "garde", 7464 default: void 0 7465 }, 7466 terrace: { 7467 id: "terrace", 7468 default: void 0 7469 }, 7470 cellar: { 7471 id: "cellar", 7472 default: void 0 7473 }, 7474 parking: { 7475 id: "parking", 7476 default: void 0 7477 }, 7478 garage: { 7479 id: "garage", 7480 default: void 0 7481 }, 7482 vytah: { 7483 id: "vytah", 7484 default: void 0 7485 }, 7486 pristup: { 7487 id: "pristup", 7488 default: void 0 7489 }, 7490 video: { 7491 id: "video", 7492 default: void 0 7493 }, 7494 matterport: { 7495 id: "matterport", 7496 default: void 0 7497 }, 7498 novinka: { 7499 id: "novinka", 7500 default: void 0 7501 }, 7502 doporucujeme: { 7503 id: "doporucujeme", 7504 default: void 0 7505 }, 7506 sleva_zobrazit: { 7507 id: "sleva_zobrazit", 7508 default: void 0 7509 }, 7510 id_uzivatel: { 7511 id: "id_uzivatel", 7512 default: void 0 7513 }, 7514 id_pobocka: { 7515 id: "id_pobocka", 7516 default: void 0 7517 } 7518 }, 7519 localityIdsStructured: {}, 7520 parameterValueCounts: {}, 7521 parameterValueNames: {}, 7522 properties: [], 7523 lastFilterUrl: "", 7524 loading: true, 7525 totalCount: 0, 7526 totalCountWithoutFilter: 0, 7527 currentPageNumber: 1, 7528 currentPageSize: 12, 7529 currentOrderBy: "-datum_topnuti", 7530 appVersion: "Poski", 7531 definitions: {}, 7532 defaultPreviewData: {}, 7533 showFilterValue: void 0, 7534 propertiesApiReply: void 0, 7535 sendFormTimeout: void 0, 7536 // je schvalne ve store-state, jinak se neda pouzit jako computer propert (v Pinia to jsou "getters") 7537 showResetFilter: void 0 7538 }), 7539 getters: { 7540 getLoading(state) { 7541 return state.loading; 7542 }, 7543 getIdPodtypyNemovitosti(state) { 7544 return (idTypNemovitostiDlouheId) => { 7545 if (typeof state.inputs.id_podtyp_nemovitosti.choices === "undefined") { 7546 return []; 7547 } 7548 let poleTypuNemovitosti = []; 7549 Object.entries(window.filterItemsRelations.id_typ_nemovitosti).forEach(([val, key]) => { 7550 if (idTypNemovitostiDlouheId / 1e3 === parseInt(key)) { 7551 poleTypuNemovitosti.push(parseInt(val)); 7552 } 7553 }); 7554 return Object.entries(state.inputs.id_podtyp_nemovitosti.choices).filter( 7555 function([val, key]) { 7556 if (state.definitions["PROPERTY_TYPE_VERSION"] === "radio-ikon-single") { 7557 return true; 7558 } 7559 return poleTypuNemovitosti.includes(Math.floor(val / 1e3)); 7560 } 7561 // kvuli hacku, ktery vyzaduji boreality po zmene ciselniku -> zemedelske jsou rozdeleny na vlastni velkou kategorii. 7562 ).sort((a, b) => a[1].localeCompare(b[1])); 7563 }; 7564 }, 7565 getIdTypNemoviostiVisibleGroups(state) { 7566 const valueStore = useFilterValuesStore(); 7567 const res = {}; 7568 if (typeof valueStore.id_typ_nemovitosti !== "undefined") { 7569 valueStore.id_typ_nemovitosti.forEach((value) => { 7570 let parsedId = parseInt(value); 7571 if (!isNaN(parsedId)) { 7572 res[parsedId] = parsedId * 1e3; 7573 } 7574 }); 7575 } 7576 return Object.entries(res); 7577 }, 7578 getOkresySorted(state) { 7579 return typeof state.inputs.idOkresy !== "undefined" ? Object.entries(state.inputs.idOkresy.choices).sort((a, b) => a[1].localeCompare(b[1])) : []; 7580 }, 7581 getMestaSorted(state) { 7582 return typeof state.inputs.idMesta !== "undefined" ? Object.entries(state.inputs.idMesta.choices).sort((a, b) => a[1].localeCompare(b[1])) : []; 7583 }, 7584 getCObceSorted(state) { 7585 return typeof state.inputs.idCObce !== "undefined" ? Object.entries(state.inputs.idCObce.choices).sort((a, b) =>
7585 a[1].localeCompare(b[1])) : []; 7586 }, 7587 getKrajeZahraniciStructure(state) { 7588 return state.localityIdsStructured.krajeZahranici; 7589 }, 7590 showNotFound(state) { 7591 return state.sendFormTimeout === null && state.propertiesApiReply === null && (typeof state.properties === "undefined" || typeof state.properties !== "undefined" && state.properties.length === 0); 7592 }, 7593 showAdditional(state) { 7594 const valuesStore = useFilterValuesStore(); 7595 return [1, 2, 3].filter((i) => valuesStore.id_typ_nemovitosti.includes(i)).length > 0; 7596 }, 7597 showPreload(state) { 7598 return typeof state.propertiesApiReply !== "undefined" && state.propertiesApiReply !== null; 7599 }, 7600 showIdStat(state) { 7601 return !!(window.frontendDefinitions.NEMOVITOSTI_FILTER_LOCALITY_FROM === "stat" && typeof state.inputs.idStat.choices !== "undefined" && Object.keys(state.inputs.idStat.choices).length); 7602 }, 7603 showBlindMap(state) { 7604 const valuesStore = useFilterValuesStore(); 7605 return typeof valuesStore.idStat === "undefined" || valuesStore.idStat === "" || valuesStore.idStat === "0" || valuesStore.idStat === "CZ"; 7606 }, 7607 showKrajeZahranici(state) { 7608 const valuesStore = useFilterValuesStore(); 7609 return typeof state.inputs.krajeZahranici.choices !== "undefined" && Object.keys(state.inputs.krajeZahranici.choices).length && valuesStore.idStat !== "CZ"; 7610 }, 7611 showOkresZahranici(state) { 7612 const valuesStore = useFilterValuesStore(); 7613 return typeof state.inputs.okresZahranici.choices !== "undefined" && Object.keys(state.inputs.okresZahranici.choices).length && valuesStore.krajeZahranici.length; 7614 }, 7615 showMestaZemeZahranici(state) { 7616 const valuesStore = useFilterValuesStore(); 7617 return typeof state.inputs.mestaZahranici.choices !== "undefined" && Object.keys(state.inputs.mestaZahranici.choices).length && valuesStore.mestaZahranici.length; 7618 }, 7619 showIdkraje(state) { 7620 const valuesStore = useFilterValuesStore(); 7621 return !!(["stat", "kraj"].includes(window.frontendDefinitions.NEMOVITOSTI_FILTER_LOCALITY_FROM) && typeof state.inputs.idKraje.choices !== "undefined" && Object.keys(state.inputs.idKraje.choices).length) && (typeof valuesStore.idStat === "undefined" || valuesStore.idStat === "" || valuesStore.idStat === "0" || valuesStore.idStat === "CZ"); 7622 }, 7623 showIdOkresy(state) { 7624 return !!(["stat", "kraj", "okres"].includes(window.frontendDefinitions.NEMOVITOSTI_FILTER_LOCALITY_FROM) && typeof state.inputs.idOkresy.choices !== "undefined" && Object.keys(state.inputs.idOkresy.choices).length); 7625 }, 7626 showIdMesta(state) { 7627 return !!(["stat", "kraj", "okres", "obec"].includes(window.frontendDefinitions.NEMOVITOSTI_FILTER_LOCALITY_FROM) && typeof state.inputs.idMesta.choices !== "undefined" && Object.keys(state.inputs.idMesta.choices).length); 7628 }, 7629 showIdCObce(state) { 7630 return !!(typeof state.inputs.idCObce.choices !== "undefined" && Object.keys(state.inputs.idCObce.choices).length); 7631 }, 7632 showIdMCasti(state) { 7633 return !!(typeof state.inputs.idMCasti.choices !== "undefined" && Object.keys(state.inputs.idMCasti.choices).length); 7634 }, 7635 showIdPObvod(state) { 7636 return !!(typeof state.inputs.idPObvod.choices !== "undefined" && Object.keys(state.inputs.idPObvod.choices).length); 7637 }, 7638 showIdKUzemi(state) { 7639 return !!(typeof state.inputs.idKUzemi.choices !== "undefined" && Object.keys(state.inputs.idKUzemi.choices).length); 7640 }, 7641 showIdPodtypNemovitosti(state) { 7642 const valuesStore = useFilterValuesStore(); 7643 return !!(valuesStore.id_typ_nemovitosti.length > 0 && typeof state.inputs.id_podtyp_nemovitosti.choices !== "undefined" && Object.keys(state.inputs.id_podtyp_nemovitosti.choices).length); 7644 }, 7645 showVlastnictvi(state) { 7646 const valuesStore = useFilterValuesStore(); 7647 return typeof valuesStore.id_typ_nemovitosti !== "undefined" && valuesStore.id_typ_nemovitosti.includes(3) && Object.keys(state.inputs.vlastnictvi.choices).length > 0; 7648 }, 7649 showBuildingType(state) { 7650 const valuesStore = useFilterValuesStore(); 7651 return [1, 2, 3, 6].filter((i) => valuesStore.id_typ_nemovitosti.includes(i)).length > 0 && Object.keys(state.inputs.building_type.choices).length > 0; 7652 }, 7653 showFurnished(state) { 7654 const valuesStore = useFilterValuesStore(); 7655 return [1, 2, 3].filter((i) => valuesStore.id_typ_nemovitosti.includes(i)).length > 0; 7656 }, 7657 showBalcony(state) { 7658 const valuesStore = useFilterValuesStore(); 7659 return [1, 2, 3, 8, 9, 10, 11].filter((i) => valuesStore.id_typ_nemovitosti.includes(i)).length > 0; 7660 }, 7661 showLoggie(state) { 7662 const valuesStore = useFilterValuesStore(); 7663 return [3].filter((i) => valuesStore.id_typ_nemovitosti.includes(i)).length > 0; 7664 }, 7665 showGarden(state) { 7666 const valuesStore = useFilterValuesStore(); 7667 return [1, 2, 3, 4, 5, 6, 8, 9, 10, 11].filter((i) => valuesStore.id_typ_nemovitosti.includes(i)).length > 0; 7668 }, 7669 showTerrace(state) { 7670 const valuesStore = useFilterValuesStore(); 7671 return [1, 2, 3, 8, 9, 10, 11, 12].filter((i) => valuesStore.id_typ_nemovitosti.includes(i)).length > 0; 7672 }, 7673 showCellar(state) { 7674 const valuesStore = useFilterValuesStore(); 7675 return [1, 2, 3, 12].filter((i) => valuesStore.id_typ_nemovitosti.includes(i)).length > 0; 7676 }, 7677 showParking(state) { 7678 const valuesStore = useFilterValuesStore(); 7679 return [1, 2, 3].filter((i) => valuesStore.id_typ_nemovitosti.includes(i)).length > 0; 7680 }, 7681 showGarage(state) { 7682 const valuesStore = useFilterValuesStore(); 7683 return [1, 2, 3].filter((i) => valuesStore.id_typ_nemovitosti.includes(i)).length > 0; 7684 }, 7685 showVytah(state) { 7686 const valuesStore = useFilterValuesStore(); 7687 return [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12].filter((i) => valuesStore.id_typ_nemovitosti.includes(i)).length > 0; 7688 }, 7689 showPristup(state) { 7690 const valuesStore = useFilterValuesStore(); 7691 return [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12].filter((i) => valuesStore.id_typ_nemovitosti.includes(i)).length > 0; 7692 }, 7693 /** Pozor, tato computed property vraci jen boolean, ale filtr muze byt take undefined, c
7693oz se nekdy pouziva **/ 7694 showFilter(state) { 7695 return !!state.showFilterValue; 7696 }, 7697 showAdvertisementInformationVideo(state) { 7698 return state.getCountValue("video", "true") > 0; 7699 }, 7700 showAdvertisementInformationMatterport(state) { 7701 return state.getCountValue("matterport", "true") > 0; 7702 }, 7703 showAdvertisementInformationNovinka(state) { 7704 return state.getCountValue("novinka", "true") > 0; 7705 }, 7706 showAdvertisementInformationDoporucujeme(state) { 7707 return state.getCountValue("doporucujeme", "true") > 0; 7708 }, 7709 showAdvertisementInformationSlevaZobrazit(state) { 7710 return state.getCountValue("sleva_zobrazit", "true") > 0; 7711 }, 7712 showAdvertisementInformation(state) { 7713 return state.showAdvertisementInformationVideo || state.showAdvertisementInformationMatterport || state.showAdvertisementInformationNovinka || state.showAdvertisementInformationDoporucujeme || state.showAdvertisementInformationSlevaZobrazit; 7714 }, 7715 showReset(state) { 7716 const valuesValuesStore = useFilterValuesStore(); 7717 return !((valuesValuesStore.id_typ_nemovitosti.length === 0 || valuesValuesStore.id_typ_nemovitosti.length === 1 && valuesValuesStore.id_typ_nemovitosti[0] === 0) && valuesValuesStore.id_podtyp_nemovitosti.length === 0 && valuesValuesStore.id_typ_smlouvy == 0 && // aby slo videt jako prvni zvolena moznost misto labelu 7718 valuesValuesStore.id_zs === "" && valuesValuesStore.id_uzivatel === void 0 && valuesValuesStore.id_pobocka === void 0 && valuesValuesStore.idStat === void 0 && valuesValuesStore.krajeZahranici.length === 0 && valuesValuesStore.okresZahranici.length === 0 && valuesValuesStore.mestaZahranici.length === 0 && valuesValuesStore.idKraje.length === 0 && valuesValuesStore.idOkresy.length === 0 && valuesValuesStore.idMesta.length === 0 && valuesValuesStore.idCObce.length === 0 && valuesValuesStore.idMCasti.length === 0 && valuesValuesStore.idPObvod.length === 0 && valuesValuesStore.idKUzemi.length === 0 && valuesValuesStore.vlastnictvi.length === 0 && valuesValuesStore.cena_od === void 0 && valuesValuesStore.cena_do === void 0 && valuesValuesStore.cena_eur_od === void 0 && valuesValuesStore.cena_eur_do === void 0 && valuesValuesStore.plocha_od === void 0 && valuesValuesStore.plocha_do === void 0 && valuesValuesStore.soukroma_inzerce === void 0 && valuesValuesStore.mapBounds === void 0 && valuesValuesStore.building_type.length === 0 && valuesValuesStore.furnished === void 0 && valuesValuesStore.balcony === void 0 && valuesValuesStore.loggie === void 0 && valuesValuesStore.garden === void 0 && valuesValuesStore.terrace === void 0 && valuesValuesStore.cellar === void 0 && valuesValuesStore.parking === void 0 && valuesValuesStore.garage === void 0 && valuesValuesStore.vytah === void 0 && valuesValuesStore.pristup === void 0 && valuesValuesStore.video === void 0 && valuesValuesStore.matterport === void 0 && valuesValuesStore.novinka === void 0 && valuesValuesStore.doporucujeme === void 0 && valuesValuesStore.sleva_zobrazit === void 0 && valuesValuesStore.fulltext === ""); 7719 }, 7720 getGroupedIdStatChoices(state) { 7721 var _a2, _b; 7722 const choices = ((_b = (_a2 = state.inputs) == null ? void 0 : _a2.idStat) == null ? void 0 : _b.choices) || {}; 7723 const group1 = {}; 7724 const group2 = {}; 7725 const priorityKeys = [CZ, SK, NO_CZ, NO_SK, "0"]; 7726 priorityKeys.forEach((key) => { 7727 if (choices[key] !== void 0) { 7728 group1[key] = choices[key]; 7729 } 7730 }); 7731 for (const [key, value] of Object.entries(choices)) { 7732 if (!priorityKeys.includes(key)) { 7733 group2[key] = value; 7734 } 7735 } 7736 return [group1, group2]; 7737 }, 7738 isIndexFilterVersion(state) { 7739 return state.appVersion.toLowerCase().includes("index"); 7740 } 7741 }, 7742 actions: { 7743 getbaseApiUrl() { 7744 var currentLocale = void 0; 7745 if (typeof window.currentLocale === "undefined") { 7746 const currentUrl = new URL(window.location.toString()); 7747 const currentLocaleArray = currentUrl.pathname.split("/").filter((el) => ["cs", "en", "es", "sk"].includes(el)); 7748 currentLocale = void 0; 7749 if (currentLocaleArray.length === 1) { 7750 currentLocale = currentLocaleArray[0]; 7751 } 7752 } else { 7753 currentLocale = window.currentLocale; 7754 } 7755 return typeof currentLocale === "undefined" || currentLocale === "cs" || currentLocale === "" ? "/" : "/" + currentLocale + "/"; 7756 }, 7757 async sendForm(asyncFilterUrl = true, appendPropertiesToList = false, hideFilter = true) { 7758 const valuesStore = useFilterValuesStore(); 7759 let apiUrl = void 0; 7760 if (asyncFilterUrl) { 7761 if (this.sendFormTimeout) { 7762 window.clearTimeout(this.sendFormTimeout); 7763 this.sendFormTimeout = null; 7764 } else { 7765 frontendFilterVueAppElement.dispatchEvent(new CustomEvent("VuePropertiesLoading", { 7766 "detail": { 7767 "vueAppName": "FrontendFilter" 7768 } 7769 })); 7770 } 7771 this.sendFormTimeout = window.setTimeout(async () => { 7772 const urlFilterParameters = new UrlFilterParameters(toRaw(valuesStore.$state), apiBaseURL); 7773 apiUrl = urlFilterParameters.getUrlFromInputs({ stranka: this.currentPageNumber, pocet: this.currentPageSize, podle: this.currentOrderBy }, false); 7774 this.lastSearchUrl = this.getbaseApiUrl() + apiUrl; 7775 this.propertiesApiReply = api.get(apiUrl).then((response) => { 7776 if (appendPropertiesToList) {
7777 response.items.forEach((item) => { 7778 this.properties.push(item); 7779 }); 7780 } else { 7781 this.properties = response.items; 7782 } 7783 this.propertiesApiReply = null; 7784 nextTick(() => { 7785 frontendFilterVueAppElement.dispatchEvent(new CustomEvent("VuePropertiesLoaded", { 7786 "detail": { 7787 "vueAppName": "FrontendFilter" 7788 } 7789 })); 7790 }); 7791 }); 7792 const urlFilterParametersPretty = new UrlFilterParameters(toRaw(valuesStore.$state), this.getbaseApiUrl()); 7793 const urlFilterParametersPrettyURL = urlFilterParametersPretty.getUrlFromInputs(null, true); 7794 if (!this.isIndexFilterVersion) { 7795 history.pushState({}, "", urlFilterParametersPrettyURL); 7796 } 7797 this.sendFormTimeout = null; 7798 }, 500); 7799 } else { 7800 const urlFilterParameters = new UrlFilterParameters(toRaw(valuesStore.$state), this.getbaseApiUrl()); 7801 let additionalParameters = void 0; 7802 if (!this.isIndexFilterVersion) { 7803 additionalParameters = { 7804 stranka: this.currentPageNumber, 7805 pocet: this.currentPageSize, 7806 podle: this.currentOrderBy, 7807 hideFilter: hideFilter ? 1 : 0 7808 }; 7809 } 7810 apiUrl = urlFilterParameters.getUrlFromInputs(additionalParameters, true); 7811 window.location.assign(apiUrl); 7812 } 7813 }, 7814 resetFilter(reload = false) { 7815 const valuesStore = useFilterValuesStore(); 7816 var preservedState = { 7817 appVersion: toRaw(this.appVersion), 7818 definitions: toRaw(this.definitions), 7819 defaultPreviewData: toRaw(this.defaultPreviewData), 7820 loading: toRaw(this.loading), 7821 inputs: toRaw(this.inputs), 7822 parameterValueCounts: toRaw(this.parameterValueCounts), 7823 parameterValueNames: toRaw(this.parameterValueNames), 7824 localityIdsStructured: toRaw(this.localityIdsStructured), 7825 totalCount: toRaw(this.totalCount), 7826 totalCountWithoutFilter: toRaw(this.totalCountWithoutFilter) 7827 }; 7828 this.$reset(); 7829 this.$patch(preservedState); 7830 valuesStore.$reset(); 7831 this.lastFilterUrl = ""; 7832 this.loadFilterChoicesAndCounts(false, true); 7833 if (!this.isIndexFilterVersion) { 7834 this.sendForm(reload, false, false); 7835 } 7836 }, 7837 /** 7838 * @param noWait - vykresli filtr rovnou z predpripravenych dat (defaultPreviewData) a na API se vubec neptam 7839 * @param skipDebounce - preskoci 500ms debounce, ktery ma smysl jen u postupnych zmen ve filtru, ne u jednorazove akce (reset) 7840 */ 7841 async loadFilterChoicesAndCounts(noWait = false, skipDebounce = false) { 7842 const valuesStore = useFilterValuesStore(); 7843 const store = this; 7844 const urlFilterParameters = new UrlFilterParameters(toRaw(valuesStore.$state), apiFilterChoicesURL); 7845 let apiUrl = urlFilterParameters.getUrlFromInputs({ appVersion: this.appVersion }, false); 7846 if (this.lastFilterUrl === apiUrl) { 7847 return; 7848 } 7849 this.lastFilterUrl = apiUrl; 7850 if (loadFilterChoicesAndCountsTimeout) { 7851 window.clearTimeout(loadFilterChoicesAndCountsTimeout); 7852 } 7853 loadFilterChoicesAndCountsTimeout = window.setTimeout(async () => { 7854 var apiReply; 7855 if (noWait) { 7856 apiReply = this.defaultPreviewData; 7857 } else { 7858 apiReply = await api.get(apiUrl); 7859 } 7860 if (apiReply) { 7861 this.setParameterValueCounts(apiReply.parameterValueCounts); 7862 this.parameterValueNames = apiReply.parameterValueNames; 7863 this.totalCount = apiReply.totalCount; 7864 this.totalCountWithoutFilter = apiReply.totalCountWithoutFilter; 7865 this.localityIdsStructured = apiReply.localityIdsStructured; 7866 const reducedSelectedFilterParameterValues = {}; 7867 for (let [parameterName, availableParameterChoices] of Object.entries(apiReply.parameterValueNames)) { 7868 if (checkboxInputKeys.includes(parameterName)) { 7869 continue; 7870 } 7871 if (["id_typ_smlouvy"].includes(parameterName) && this.definitions["CONTRACT_TYPE_VERSION"] === "select-index") { 7872 availableParameterChoices[0] = window.poskiLocale["filter_contract_type"]; 7873 } else if (["idStat"].includes(parameterName)) { 7874 availableParameterChoices[0] = window.poskiLocale["all"]; 7875 }
7876 this.inputs[parameterName].choices = availableParameterChoices; 7877 if (["idKraje", "idOkresy", "idMesta", "idCObce", "idMCasti", "idPObvod"].includes(parameterName)) { 7878 reducedSelectedFilterParameterValues[parameterName] = []; 7879 for (const selectedValue of valuesStore[parameterName]) { 7880 if (availableParameterChoices.hasOwnProperty(selectedValue)) { 7881 reducedSelectedFilterParameterValues[parameterName].push(selectedValue); 7882 } 7883 } 7884 } 7885 } 7886 if (typeof apiReply.parameterValueNames["idOkresy"] === "undefined") { 7887 this.inputs["idOkresy"].choices = []; 7888 reducedSelectedFilterParameterValues["idOkresy"] = []; 7889 } 7890 if (typeof apiReply.parameterValueNames["idMesta"] === "undefined") { 7891 this.inputs["idMesta"].choices = []; 7892 reducedSelectedFilterParameterValues["idMesta"] = []; 7893 } 7894 if (typeof apiReply.parameterValueNames["idMCasti"] === "undefined") { 7895 this.inputs["idMCasti"].choices = []; 7896 reducedSelectedFilterParameterValues["idMCasti"] = []; 7897 } 7898 if (typeof apiReply.parameterValueNames["idPObvod"] === "undefined") { 7899 this.inputs["idPObvod"].choices = []; 7900 reducedSelectedFilterParameterValues["idPObvod"] = []; 7901 } 7902 if (typeof apiReply.parameterValueNames["idCObce"] === "undefined") { 7903 this.inputs["idCObce"].choices = []; 7904 reducedSelectedFilterParameterValues["idCObce"] = []; 7905 } 7906 if (typeof apiReply.parameterValueNames["okresZahranici"] === "undefined") { 7907 this.inputs["okresZahranici"].choices = []; 7908 reducedSelectedFilterParameterValues["okresZahranici"] = []; 7909 } 7910 if (typeof apiReply.parameterValueNames["mestaZahranici"] === "undefined") { 7911 this.inputs["mestaZahranici"].choices = []; 7912 reducedSelectedFilterParameterValues["mestaZahranici"] = []; 7913 } 7914 await valuesStore.$patch(reducedSelectedFilterParameterValues); 7915 store.loading = false; 7916 } 7917 }, noWait || skipDebounce ? 0 : 500); 7918 }, 7919 setParameterValueCounts(valueCounts) { 7920 this.parameterValueCounts = JSON.parse(JSON.stringify(valueCounts)); 7921 if (typeof window.filterItemsRelations.id_typ_nemovitosti !== "undefined" && typeof this.parameterValueCounts.id_typ_nemovitosti !== "undefined") { 7922 Object.entries(window.filterItemsRelations.id_typ_nemovitosti).forEach(([id, val]) => { 7923 this.parameterValueCounts.id_typ_nemovitosti[val] = 0; 7924 }); 7925 Object.entries(valueCounts.id_typ_nemovitosti).forEach(([id, val]) => { 7926 let transformedKey = window.filterItemsRelations.id_typ_nemovitosti[id]; 7927 this.parameterValueCounts.id_typ_nemovitosti[transformedKey] += val; 7928 }); 7929 } 7930 }, 7931 getCountValue(parameterName, parameterKey) { 7932 if (parameterName === "id_typ_nemovitosti" && parameterKey === NO_CZ && typeof this.parameterValueCounts["idStat"] !== "undefined" && typeof this.parameterValueCounts["idStat"][NO_CZ] !== "undefined") { 7933 return this.parameterValueCounts["idStat"][NO_CZ]; 7934 } 7935 if (typeof this.parameterValueCounts[parameterName] === "undefined") { 7936 return 0; 7937 } 7938 if (typeof this.parameterValueCounts[parameterName][parameterKey] === "undefined") { 7939 if (parameterKey == 0 && !["idKraje"].includes(parameterName)) { 7940 return null; 7941 } 7942 return 0; 7943 } 7944 return this.parameterValueCounts[parameterName][parameterKey]; 7945 }, 7946 getTitleCase(name) { 7947 return name.toLowerCase().split(" ").map(function(word) { 7948 return word.charAt(0).toUpperCase() + word.slice(1); 7949 }).join(" "); 7950 } 7951 } 7952}); 7953const _hoisted_1$H = { 7954 key: 0, 7955 class: "EstateFilterItem EstateFilterItem-center EstateFilterItem-inline", 7956 "data-filter-el": "typ-nemovitosti" 7957}; 7958const _hoisted_2$C = ["placeholder"]; 7959const _hoisted_3$u = ["label"]; 7960const _hoisted_4$p = ["value"]; 7961const _hoisted_5$l = { 7962 key: 1, 7963 class: "EstateFilterItem EstateFilterItem-center EstateFilterItem-inline", 7964 "data-filter-el": "typ-nemovitosti" 7965}; 7966const _hoisted_6$h = { 7967 for: "id_typ_nemovitosti", 7968 class: "label" 7969}; 7970const _hoisted_7$e = ["placeholder"]; 7971const _hoisted_8$b = ["value"]; 7972const _hoisted_9$9 = { 7973 key: 2, 7974 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemIcons full-row", 7975 "data-filter-el": "typ-nemovitosti" 7976}; 7977const _hoisted_10$9 = { 7978 class: "label", 7979 for: "id_typ_nemovitosti" 7980}; 7981const _hoisted_11$9 = { class: "EstateFilterItemIcons-inner" }; 7982const _hoisted_12$8 = ["data-key", "data-count", "data-id-typ-nemovitosti-vue", "onClick"]; 7983const _hoisted_13$7 = ["innerHTML"]; 7984const _hoisted_14$7 = ["innerHTML"]; 7985const _hoisted_15$7 = { 7986 key: 1, 7987 type: "checkbox", 7988 class: "EstateFilterItemCheckbox" 7989}; 7990const _hoisted_16$6 = { 7991 key: 0, 7992 class: "EstateFilterItemIconsItem-icon-count" 7993}; 7994const _hoisted_17$5 = { 7995 key: 1, 7996 class: "EstateFilterItemIconsItem-icon-count" 7997}; 7998const _hoisted_18$5 = { 7999 key: 3, 8000 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemIcons full-row", 8001 "data-filter-el": "typ-nemovitosti" 8002}; 8003const _hoisted_19$4 = { 8004 class: "label", 8005 for: "id_typ_nemovitosti" 8006}; 8007const _hoisted_20$4 = { class: "EstateFilterItemPropertyType-inner" }; 8008const _hoisted_21$4 = { class: "checkItem" }; 8009const _hoisted_22$4 = ["for"]; 8010const _hoisted_23$4 = ["id", "value"]; 8011const _hoisted_24$3 = { class: "checkItem-label" }; 8012const _sfc_main$H = /* @__PURE__ */ defineComponent({ 8013 __name: "PropertyType", 8014 props: { 8015 staticOptions: {}, 8016 version: {} 8017 }, 8018 setup(__props) { 8019 const props = __props; 8020 const valuesStore = useFilterValuesStore(); 8021 const store = useStore(); 8022 const staticOptions = computed(() => { 8023 var res = []; 8024 if (typeof props.staticOptions === "object" && Object.keys(props.staticOptions).length) { 8025 res = props.staticOptions; 8026 } else { 8027 res = store.inputs.id_typ_nemovitosti.choices; 8028 } 8029 return res; 8030 }); 8031 const isIconActive = (key2) => { 8032 if (valuesStore.id_typ_nemovitosti.map((x) => parseInt(x)).includes(parseInt(key2))) { 8033 return true; 8034 } 8035 if (key2 === "no-CZ" && valuesStore.idStat == key2) { 8036 return true; 8037 } 8038 if (key2 === "farmland" && valuesStore.id_typ_nemovitosti.map((x) => parseInt(x)).includes(4) && valuesStore.id_podtyp_nemovitosti.includes(12002)) { 8039 return true; 8040 } 8041 return false;
8042 }; 8043 const isIconDisabled = (key2) => { 8044 let count = store.getCountValue("id_typ_nemovitosti", key2); 8045 return count <= 0; 8046 }; 8047 const onClick = (value) => { 8048 var _a2; 8049 var newIdTypNemovitostiValue = value; 8050 if (value === "no-CZ") { 8051 if (valuesStore.idStat === "no-CZ") { 8052 newIdTypNemovitostiValue = 0; 8053 } 8054 valuesStore.$patch({ 8055 idStat: newIdTypNemovitostiValue 8056 }); 8057 document.getElementById("country").value = newIdTypNemovitostiValue; 8058 document.getElementById("country").dispatchEvent(new Event("change")); 8059 } else { 8060 if (props.version === "radio-ikon-single") { 8061 newIdTypNemovitostiValue = Object.entries(window.filterItemsRelations.id_typ_nemovitosti).filter(([k, v]) => value == k).map(([k, v]) => k); 8062 } else { 8063 newIdTypNemovitostiValue = valuesStore.id_typ_nemovitosti; 8064 Object.entries(window.filterItemsRelations.id_typ_nemovitosti).forEach(([key2, val]) => { 8065 if (val == value) { 8066 if (valuesStore.id_typ_nemovitosti.includes(parseInt(key2))) { 8067 newIdTypNemovitostiValue = newIdTypNemovitostiValue.filter((i) => i != key2); 8068 } else { 8069 newIdTypNemovitostiValue.push(parseInt(key2)); 8070 } 8071 } 8072 }); 8073 } 8074 valuesStore.$patch({ 8075 id_typ_nemovitosti: newIdTypNemovitostiValue, 8076 id_podtyp_nemovitosti: [] 8077 }); 8078 } 8079 (_a2 = document.querySelectorAll("[data-id-typ-nemovitosti]")) == null ? void 0 : _a2.forEach((el) => el.classList.remove("is-active")); 8080 newIdTypNemovitostiValue.forEach((valueItem) => { 8081 var _a3; 8082 (_a3 = document.querySelector('[data-id-typ-nemovitosti="' + valueItem + '"]')) == null ? void 0 : _a3.classList.add("is-active"); 8083 }); 8084 }; 8085 const getIcon = (filterValueKey) => { 8086 const assetName = "id_typ_nemovitosti-" + filterValueKey; 8087 if (typeof window.assetLibrary[assetName] === "undefined") { 8088 return ""; 8089 } else { 8090 return window.assetLibrary[assetName].html; 8091 } 8092 }; 8093 const getHtmlRenderedAtStart = (filterValueKey) => { 8094 const assetName = "id_typ_nemovitosti-" + filterValueKey; 8095 if (typeof window.assetLibrary[assetName] === "undefined") { 8096 return ""; 8097 } else { 8098 return window.assetLibrary[assetName].html_at_start; 8099 } 8100 }; 8101 return (_ctx, _cache) => { 8102 return openBlock(), createElementBlock(Fragment, null, [ 8103 props.version === "select-index" ? (openBlock(), createElementBlock("div", _hoisted_1$H, [ 8104 withDirectives(createBaseVNode("select", { 8105 id: "id_typ_nemovitosti", 8106 multiple: "", 8107 name: "id_typ_nemovitosti", 8108 placeholder: _ctx.$translate("filter_property_type"), 8109 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(valuesStore).id_typ_nemovitosti = $event) 8110 }, [ 8111 createBaseVNode("optgroup", { 8112 label: _ctx.$translate("filter_property_type") 8113 }, [ 8114 (openBlock(true), createElementBlock(Fragment, null, renderList(staticOptions.value, (item, key2) => { 8115 return openBlock(), createElementBlock("option", { 8116 key: key2, 8117 value: key2 8118 }, [ 8119 createTextVNode(toDisplayString(_ctx.$translate("zs.type." + key2)) + " ", 1), 8120 unref(store).getCountValue("id_typ_nemovitosti", key2) !== null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 8121 createTextVNode("(" + toDisplayString(unref(store).getCountValue("id_typ_nemovitosti", key2)) + ")", 1) 8122 ], 64)) : createCommentVNode("", true) 8123 ], 8, _hoisted_4$p); 8124 }), 128)) 8125 ], 8, _hoisted_3$u) 8126 ], 8, _hoisted_2$C), [ 8127 [vModelSelect, unref(valuesStore).id_typ_nemovitosti] 8128 ]) 8129 ])) : createCommentVNode("", true), 8130 props.version === "select" ? (openBlock(), createElementBlock("div", _hoisted_5$l, [ 8131 createBaseVNode("label", _hoisted_6$h, toDisplayString(_ctx.$translate("filter_property_type")), 1), 8132 withDirectives(createBaseVNode("select", { 8133 id: "id_typ_nemovitosti", 8134 multiple: "", 8135 name: "id_typ_nemovitosti",
8136 placeholder: _ctx.$translate("filter_property_type"), 8137 "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(valuesStore).id_typ_nemovitosti = $event) 8138 }, [ 8139 (openBlock(true), createElementBlock(Fragment, null, renderList(staticOptions.value, (item, key2) => { 8140 return openBlock(), createElementBlock("option", { 8141 key: key2, 8142 value: key2 8143 }, [ 8144 createTextVNode(toDisplayString(_ctx.$translate("zs.type." + key2)) + " ", 1), 8145 unref(store).getCountValue("id_typ_nemovitosti", key2) !== null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 8146 createTextVNode("(" + toDisplayString(unref(store).getCountValue("id_typ_nemovitosti", key2)) + ")", 1) 8147 ], 64)) : createCommentVNode("", true) 8148 ], 8, _hoisted_8$b); 8149 }), 128)) 8150 ], 8, _hoisted_7$e), [ 8151 [vModelSelect, unref(valuesStore).id_typ_nemovitosti] 8152 ]) 8153 ])) : createCommentVNode("", true), 8154 ["radio-ikon", "radio-ikon-single"].includes(props.version) ? (openBlock(), createElementBlock("div", _hoisted_9$9, [ 8155 createBaseVNode("label", _hoisted_10$9, toDisplayString(_ctx.$translate("filter_property_type")), 1), 8156 createBaseVNode("div", _hoisted_11$9, [ 8157 (openBlock(true), createElementBlock(Fragment, null, renderList(staticOptions.value, (item, key2) => { 8158 return openBlock(), createElementBlock("div", { 8159 key: key2, 8160 "data-key": key2, 8161 "data-count": unref(store).getCountValue("id_typ_nemovitosti", key2), 8162 class: normalizeClass(["EstateFilterItemIconsItem u-textCenter", { "is-active": isIconActive(key2.toString()), "no-value": isIconDisabled(key2.toString()) }]), 8163 "data-id-typ-nemovitosti-vue": key2, 8164 onClick: ($event) => onClick(key2) 8165 }, [ 8166 getHtmlRenderedAtStart(key2.toString()) ? (openBlock(), createElementBlock("div", { 8167 key: 0, 8168 class: "EstateFilterItemIconsItem-icon", 8169 innerHTML: getHtmlRenderedAtStart(key2.toString()) 8170 }, null, 8, _hoisted_13$7)) : createCommentVNode("", true), 8171 createBaseVNode("span", null, [ 8172 unref(store).definitions["PROPERTY_TYPE_SHOW_ADDITIONAL_HTML"] === 1 ? (openBlock(), createElementBlock("div", { 8173 key: 0, 8174 class: "EstateFilterItemIconsItem-icon", 8175 innerHTML: getIcon(key2.toString()) 8176 }, null, 8, _hoisted_14$7)) : createCommentVNode("", true), 8177 props.version === "checkbox" ? (openBlock(), createElementBlock("input", _hoisted_15$7)) : createCommentVNode("", true), 8178 createBaseVNode("strong", null, [ 8179 createTextVNode(toDisplayString(_ctx.$translate("zs.type." + key2)) + " ", 1), 8180 unref(store).definitions["PROPERTY_TYPE_COUNTS_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_16$6, "(" + toDisplayString(unref(store).getCountValue("id_typ_nemovitosti", key2)) + ")", 1)) : unref(store).definitions["PROPERTY_TYPE_COUNTS_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_17$5, toDisplayString(unref(store).getCountValue("id_typ_nemovitosti", key2)), 1)) : createCommentVNode("", true) 8181 ]) 8182 ]) 8183 ], 10, _hoisted_12$8); 8184 }), 128)) 8185 ]) 8186 ])) : createCommentVNode("", true), 8187 ["checkbox"].includes(props.version) ? (openBlock(), createElementBlock("div", _hoisted_18$5, [ 8188 createBaseVNode("label", _hoisted_19$4, toDisplayString(_ctx.$translate("filter_property_type")), 1), 8189 createBaseVNode("div", _hoisted_20$4, [ 8190 (openBlock(true), createElementBlock(Fragment, null, renderList(staticOptions.value, (item, key2) => { 8191 return openBlock(), createElementBlock("div", _hoisted_21$4, [ 8192 createBaseVNode("label", { 8193 for: "EstateFilterItemType-" + key2 8194 }, [ 8195 withDirectives(createBaseVNode("input", { 8196 type: "checkbox", 8197 name: "typnemovitosti", 8198 id: "EstateFilterItemType-" + key2, 8199 value: key2, 8200 "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(valuesStore).id_typ_nemovitosti = $event) 8201 }, null, 8, _hoisted_23$4), [ 8202 [vModelCheckbox, unref(valuesStore).id_typ_nemovitosti] 8203 ]), 8204 _cache[3] || (_cache[3] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 8205 createBaseVNode("span", _hoisted_24$3, toDisplayString(_ctx.$translate("zs.type." + key2)), 1) 8206 ], 8, _hoisted_22$4) 8207 ]); 8208 }), 256)) 8209 ]) 8210 ])) : createCommentVNode("", true) 8211 ], 64); 8212 }; 8213 } 8214}); 8215const _hoisted_1$G = { 8216 key: 0, 8217 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center", 8218 "data-filter-el": "typ-smlouvy" 8219}; 8220const _hoisted_2$B = ["placeholder"]; 8221const _hoisted_3$t = ["value"]; 8222const _hoisted_4$o = { 8223 key: 1, 8224 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center", 8225 "data-filter-el": "typ-smlouvy" 8226}; 8227const _hoisted_5$k = { 8228 for: "contractType", 8229 class: "label" 8230}; 8231const _hoisted_6$g = ["placeholder"]; 8232const _hoisted_7$d = ["value"]; 8233const _hoisted_8$a = { 8234 key: 2, 8235 class: "EstateFilterItem EstateFilterItem-center EstateFilterItem-inline EstateFilterItemSubtype full-row", 8236 "data-filter-el": "typ-smlouvy" 8237}; 8238const _hoisted_9$8 = { 8239 class: "label", 8240 for: "id_typ_smlouvy" 8241}; 8242const _hoisted_10$8 = { 8243 id: "contractType", 8244 class: "EstateFilterItemSubtype-inner IndexFilter-buttons", 8245 "data-filter-el": "typ-smlouvy" 8246}; 8247const _hoisted_11$8 = { 8248 key: 0, 8249 type: "checkbox", 8250 class: "EstateFilterContractTypeCheckbox" 8251}; 8252const _hoisted_12$7 = { 8253 key: 1, 8254 class: "EstateFilterItemIconsItem-icon-count" 8255}; 8256const _hoisted_13$6 = { 8257 key: 0, 8258 type: "checkbox", 8259 class: "EstateFilterContractTypeCheckbox" 8260}; 8261const _hoisted_14$6 = { 8262 key: 1, 8263 class: "EstateFilterItemIconsItem-icon-count" 8264}; 8265const _hoisted_15$6 = { 8266 key: 0, 8267 type: "checkbox", 8268 class: "EstateFilterContractTypeCheckbox" 8269}; 8270const _hoisted_16$5 = { 8271 key: 1, 8272 class: "EstateFilterItemIconsItem-icon-count" 8273}; 8274const _hoisted_17$4 = { 8275 key: 3, 8276 class: "EstateFilterItem EstateFilterItem-center EstateFilterItem-inline EstateFilterItemSubtype full-row", 8277 "data-filter-el": "typ-smlouvy" 8278}; 8279const _hoisted_18$4 = { 8280 class: "label", 8281 for: "id_typ_smlouvy" 8282}; 8283const _hoisted_19$3 = { 8284 id: "contractType", 8285 class: "EstateFilterItemContract-inner IndexFilter-buttons", 8286 "data-filter-el": "typ-smlouvy" 8287}; 8288const _hoisted_20$3 = { class: "checkItem" }; 8289const _hoisted_21$3 = ["for"]; 8290const _hoisted_22$3 = ["checked", "id", "onClick"]; 8291const _hoisted_23$3 = { class: "checkItem-label" }; 8292const _sfc_main$G = /* @__PURE__ */ defineComponent({ 8293 __name: "ContractType", 8294 props: { 8295 version: {}, 8296 staticOptions: {}, 8297 countsVersion: {} 8298 }, 8299 setup(__props) { 8300 const store = useStore(); 8301 const valuesStore = useFilterValuesStore(); 8302 const staticOptions = computed(() => { 8303 if (typeof props.staticOptions === "object" && Object.keys(props.staticOptions).length) { 8304 return props.staticOptions; 8305 } 8306 return store.inputs.id_typ_smlouvy.choices; 8307 }); 8308 const buttonProdej = document.querySelector('div.IndexFilter-buttons > [data-type="prodej"]'); 8309 const buttonPronajem = document.querySelector('div.IndexFilter-buttons > [data-type="pronajem"]'); 8310 const onClick = (value) => { 8311 if (value === 1 && buttonProdej) { 8312 buttonProdej.classList.add("is-selected"); 8313 buttonPronajem.classList.remove("is-selected"); 8314 } else if (value === 3 && buttonPronajem !== null) { 8315 buttonPronajem.classList.add("is-selected"); 8316 buttonProdej.classList.remove("is-selected"); 8317 } 8318 if (valuesStore.id_typ_smlouvy === value) { 8319 valuesStore.id_typ_smlouvy = 0; 8320 } else { 8321 valuesStore.id_typ_smlouvy = value; 8322 } 8323 }; 8324 const props = __props; 8325 return (_ctx, _cache) => { 8326 return props.version === "select-index" ? (openBlock(), createElementBlock("div", _hoisted_1$G, [ 8327 withDirectives(createBaseVNode("select", { 8328 id: "contractType", 8329 name: "id_typ_smlouvy",
8330 placeholder: _ctx.$translate("filter_contract_type"), 8331 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(valuesStore).id_typ_smlouvy = $event) 8332 }, [ 8333 (openBlock(true), createElementBlock(Fragment, null, renderList(staticOptions.value, (item, key) => { 8334 return openBlock(), createElementBlock("option", { 8335 value: key, 8336 key 8337 }, [ 8338 createTextVNode(toDisplayString(_ctx.$translate(item)) + " ", 1), 8339 unref(store).getCountValue("id_typ_smlouvy", key) !== null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 8340 createTextVNode("(" + toDisplayString(unref(store).getCountValue("id_typ_smlouvy", key)) + ")", 1) 8341 ], 64)) : createCommentVNode("", true) 8342 ], 8, _hoisted_3$t); 8343 }), 128)) 8344 ], 8, _hoisted_2$B), [ 8345 [vModelSelect, unref(valuesStore).id_typ_smlouvy] 8346 ]) 8347 ])) : props.version === "select" ? (openBlock(), createElementBlock("div", _hoisted_4$o, [ 8348 createBaseVNode("label", _hoisted_5$k, toDisplayString(_ctx.$translate("filter_contract_type")), 1), 8349 withDirectives(createBaseVNode("select", { 8350 id: "contractType", 8351 name: "id_typ_smlouvy", 8352 placeholder: _ctx.$translate("filter_contract_type"), 8353 "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(valuesStore).id_typ_smlouvy = $event) 8354 }, [ 8355 (openBlock(true), createElementBlock(Fragment, null, renderList(staticOptions.value, (item, key) => { 8356 return openBlock(), createElementBlock("option", { 8357 value: key, 8358 key 8359 }, [ 8360 createTextVNode(toDisplayString(_ctx.$translate(item)) + " ", 1), 8361 unref(store).getCountValue("id_typ_smlouvy", key) !== null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 8362 createTextVNode("(" + toDisplayString(unref(store).getCountValue("id_typ_smlouvy", key)) + ")", 1) 8363 ], 64)) : createCommentVNode("", true) 8364 ], 8, _hoisted_7$d); 8365 }), 128)) 8366 ], 8, _hoisted_6$g), [ 8367 [vModelSelect, unref(valuesStore).id_typ_smlouvy] 8368 ]) 8369 ])) : ["radio"].includes(props.version) ? (openBlock(), createElementBlock("div", _hoisted_8$a, [ 8370 createBaseVNode("label", _hoisted_9$8, toDisplayString(_ctx.$translate("filter_contract_type")), 1), 8371 createBaseVNode("div", _hoisted_10$8, [ 8372 unref(store).definitions["CONTRACT_TYPE_SHOW_ALL"] === 1 ? (openBlock(), createElementBlock("span", { 8373 key: 0, 8374 class: normalizeClass(["IndexFilter-button JS-filter-button", { "is-selected": unref(valuesStore).id_typ_smlouvy == 0 }]), 8375 onClick: _cache[2] || (_cache[2] = ($event) => onClick(0)), 8376 "data-type": "vse", 8377 "data-id-typ-smlouvy": "0" 8378 }, [ 8379 props.version === "checkbox" ? (openBlock(), createElementBlock("input", _hoisted_11$8)) : createCommentVNode("", true), 8380 createTextVNode(" " + toDisplayString(_ctx.$translate("filter_contract_all")) + " ", 1), 8381 props.countsVersion === 1 ? (openBlock(), createElementBlock("span", _hoisted_12$7, toDisplayString(unref(store).getCountValue("id_typ_smlouvy", 3) + unref(store).getCountValue("id_typ_smlouvy", 1)), 1)) : createCommentVNode("", true) 8382 ], 2)) : createCommentVNode("", true), 8383 createBaseVNode("span", { 8384 class: normalizeClass(["IndexFilter-button JS-filter-button", { "is-selected": unref(valuesStore).id_typ_smlouvy == 1 }]), 8385 onClick: _cache[3] || (_cache[3] = ($event) => onClick(1)), 8386 "data-type": "prodej", 8387 "data-id-typ-smlouvy": "1" 8388 }, [ 8389 props.version === "checkbox" ? (openBlock(), createElementBlock("input", _hoisted_13$6)) : createCommentVNode("", true), 8390 createTextVNode(" " + toDisplayString(_ctx.$translate("filter_sale")) + " ", 1), 8391 props.countsVersion === 1 ? (openBlock(), createElementBlock("span", _hoisted_14$6, toDisplayString(unref(store).getCountValue("id_typ_smlouvy", 1)), 1)) : createCommentVNode("", true) 8392 ], 2), 8393 createBaseVNode("span", { 8394 class: normalizeClass(["IndexFilter-button JS-filter-button", { "is-selected": unref(valuesStore).id_typ_smlouvy == 3 }]), 8395 onClick: _cache[4] || (_cache[4] = ($event) => onClick(3)), 8396 "data-type": "pronajem", 8397 "data-id-typ-smlouvy": "3" 8398 }, [ 8399 props.version === "checkbox" ? (openBlock(), createElementBlock("input", _hoisted_15$6)) : createCommentVNode("", true), 8400 createTextVNode(" " + toDisplayString(_ctx.$translate("filter_rent")) + " ", 1), 8401 props.countsVersion === 1 ? (openBlock(), createElementBlock("span", _hoisted_16$5, toDisplayString(unref(store).getCountValue("id_typ_smlouvy", 3)), 1)) : createCommentVNode("", true) 8402 ], 2) 8403 ]) 8404 ])) : ["radio-checkbox"].includes(props.version) ? (openBlock(), createElementBlock("div", _hoisted_17$4, [ 8405 createBaseVNode("label", _hoisted_18$4, toDisplayString(_ctx.$translate("filter_contract_type")), 1), 8406 createBaseVNode("div", _hoisted_19$3, [ 8407 (openBlock(true), createElementBlock(Fragment, null, renderList(staticOptions.value, (item, key) => { 8408 return openBlock(), createElementBlock("div", _hoisted_20$3, [ 8409 createBaseVNode("label", { 8410 for: "EstateFilterItemContractType-" + key 8411 }, [ 8412 createBaseVNode("input", { 8413 type: "checkbox", 8414 name: "typsmlouvy", 8415 checked: unref(valuesStore).id_typ_smlouvy == key, 8416 id: "EstateFilterItemContractType-" + key, 8417 onClick: ($event) => onClick(key) 8418 }, null, 8, _hoisted_22$3), 8419 _cache[5] || (_cache[5] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 8420 createBaseVNode("span", _hoisted_23$3, toDisplayString(item), 1) 8421 ], 8, _hoisted_21$3) 8422 ]); 8423 }), 256)) 8424 ]) 8425 ])) : createCommentVNode("", true); 8426 }; 8427 } 8428}); 8429const _hoisted_1$F = { class: "localityWrapper" }; 8430const _hoisted_2$A = ["fill"]; 8431const _hoisted_3$s = ["fill"]; 8432const _hoisted_4$n = ["fill"]; 8433const _hoisted_5$j = ["fill"]; 8434const _hoisted_6$f = ["fill"]; 8435const _hoisted_7$c = ["fill"]; 8436const _hoisted_8$9 = ["fill"]; 8437const _hoisted_9$7 = ["fill"]; 8438const _hoisted_10$7 = ["fill"];
8439const _hoisted_11$7 = ["fill"]; 8440const _hoisted_12$6 = ["fill"]; 8441const _hoisted_13$5 = ["fill"]; 8442const _hoisted_14$5 = ["fill"]; 8443const _hoisted_15$5 = ["fill"]; 8444const _sfc_main$F = /* @__PURE__ */ defineComponent({ 8445 __name: "BlindMapRegions", 8446 setup(__props) { 8447 const store = useStore(); 8448 const valuesStore = useFilterValuesStore(); 8449 function setRegion($event) { 8450 const idEvenetsIdKraj = $event.target.dataset["idKraj"]; 8451 if (typeof idEvenetsIdKraj !== "undefined") { 8452 if (store.getCountValue("idKraje", idEvenetsIdKraj) === 0) { 8453 return; 8454 } 8455 if (valuesStore.idKraje.includes(idEvenetsIdKraj)) { 8456 valuesStore.idKraje = valuesStore.idKraje.filter((x) => x !== idEvenetsIdKraj); 8457 } else { 8458 valuesStore.idKraje.push(idEvenetsIdKraj); 8459 } 8460 } 8461 } 8462 return (_ctx, _cache) => { 8463 return openBlock(), createElementBlock("div", _hoisted_1$F, [ 8464 (openBlock(), createElementBlock("svg", { 8465 onClick: _cache[0] || (_cache[0] = ($event) => setRegion($event)), 8466 xmlns: "http://www.w3.org/2000/svg", 8467 "xmlns:xlink": "http://www.w3.org/1999/xlink", 8468 pretty_print: "False", 8469 style: { "stroke-linejoin": "round", "stroke": "#000", "fill=white": "none" }, 8470 version: "1.1",
8471 viewBox: "0 0 1000 569", 8472 width: "1000px", 8473 class: "medium" 8474 }, [ 8475 createBaseVNode("path", { 8476 fill: [unref(store).getCountValue("idKraje", 60) !== 0 ? "white" : "lightgray"], 8477 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("60") && unref(store).getCountValue("idKraje", "60") !== null && unref(store).getCountValue("idKraje", "60") !== null, disabled: unref(store).getCountValue("idKraje", "60") !== null }), 8478 d: "M327.099973,0.000000L322.530082,0.757043L319.105802,4.298443L317.124479,10.889277L315.532345,13.225467L317.219453,14.325748L322.086944,14.933306L324.965408,16.083684L324.745371,16.545795L323.531162,17.404254L323.413047,19.802701L327.113770,23.427442L332.439523,24.960230L336.297887,27.163302L335.478075,32.862691L331.273168,36.496610L319.955605,35.675427L314.775753,36.793054L313.219494,38.349136L310.602470,42.355617L308.851451,44.018394L286.392602,54.469473L283.616364,54.666640L278.329843,53.995210L275.509679,54.615571L273.959187,55.728889L271.754313,58.567523L270.277537,59.680179L268.455707,59.954544L267.051130,59.531229L265.826437,59.579962L264.498831,61.223140L263.888533,63.444212L264.069758,65.381030L264.415123,66.986971L264.341621,68.191764L263.356365,69.610037L262.519415,69.906054L261.637357,69.930388L257.452212,72.554811L254.850263,73.086968L248.210659,72.341711L245.085059,72.658635L239.579248,74.696243L236.788884,75.247398L223.790691,75.148520L217.220061,76.368528L211.282023,79.937421L212.944809,83.451701L212.364188,86.532184L210.422568,89.028537L208.003518,90.849305L208.834783,92.683502L208.694193,94.064815L207.820555,95.135955L206.378372,95.944709L203.846067,99.086902L201.376671,101.319355L198.674288,101.979183L195.443933,100.367761L194.490988,99.157845L192.471669,95.709542L191.697462,94.819288L189.933052,94.159401L189.526794,94.440463L189.431965,95.266684L188.557090,96.206340L183.091463,100.046085L182.272266,101.493485L180.696564,106.112974L177.640420,107.650993L175.232741,106.558951L172.889879,104.888096L170.072053,104.606800L165.136364,117.524592L163.017271,121.298506L159.418692,123.948950L151.759853,123.430659L147.644166,124.808484L147.613881,124.831810L147.598854,124.831663L146.272855,125.184737L144.904298,125.277365L143.553026,125.145573L142.279597,124.754557L141.161435,123.892538L139.962122,123.620134L138.741947,123.902526L137.530900,124.728220L136.483384,134.036403L135.490422,138.195165L133.402076,140.617214L130.190669,143.720533L135.032504,147.862493L137.501687,149.308041L147.010162,150.515668L147.884188,151.202233L148.621044,152.173668L149.556753,154.136344L150.606814,155.565152L152.448899,156.968627L156.082091,157.757743L160.518303,158.022712L164.624210,159.119349L166.860947,160.372910L167.778730,161.459970L168.514068,162.942272L169.215169,165.971078L169.446837,167.946580L169.476742,169.887872L169.168868,174.839832L169.201995,176.364310L169.428353,179.060445L169.929314,181.982173L170.091094,184.343821L169.946936,185.548027L169.665189,186.673327L169.316353,187.740347L169.755270,189.586860L170.849715,191.910434L173.907204,196.716798L174.863604,199.227271L175.168675,201.095183L174.662591,202.118552L174.066826,203.070934L171.925613,205.824805L171.648268,206.324937L171.393500,207.244578L171.842003,207.968622L172.925060,209.099125L175.980911,211.328499L177.676838,212.899784L179.028827,214.433303L180.611746,216.663754L181.536284,217.669284L182.875536,218.356014L189.458722,220.056420L191.489005,220.085721L194.617493,217.870755L196.149807,215.694334L198.003824,214.747227L200.281079,214.133331L201.737315,213.394568L205.512643,209.632768L207.220793,208.482578L208.638159,206.718245L210.058266,203.339168L212.023339,200.235694L212.843883,199.317250L214.555460,198.341700L223.130723,194.808378L229.400118,190.731128L230.772354,189.295278L231.271355,188.869439L232.336329,188.221212L233.583897,187.811760L235.193737,187.837178L236.102736,188.074698L237.008240,188.525570L237.618521,188.727353L238.344794,188.728384L240.916461,188.046149L254.852015,180.778930L256.097955,180.670722L257.276654,181.180096L258.227533,181.887813L259.338966,182.301576L260.356970,182.135248L261.987471,180.840926L262.824861,179.971432L263.738811,178.717620L264.620703,177.712351L273.269062,172.256149L274.650942,171.698602L276.621284,171.825136L277.843498,171.704436L278.971829,171.239812L279.838041,169.891843L280.131087,169.039898L280.174109,168.273938L279.981306,166.820546L280.007796,165.851237L280.165026,164.587819L280.502436,163.595138L281.109111,162.614316L282.239375,162.079036L284.001357,161.659889L290.094528,161.440090L293.668104,162.130482L297.096848,163.362660L300.038420,163.717009L311.528506,161.690314L316.295952,163.446525L317.041934,163.263886L318.100045,162.737835L321.234959,160.079555L322.451047,159.275869L323.580230,158.937154L327.692837,158.568222L330.257825,158.726098L331.387360,158.476961L332.533213,157.835861L333.673976,156.092317L334.165243,154.941105L334.472042,153.982094L334.717927,153.450413L335.411460,152.393041L335.541773,151.837106L335.535322,150.985901L335.324575,150.221621L334.771198,148.601133L334.586368,147.864266L334.602924,147.083198L334.748789,145.618147L334.674842,144.722250L334.441059,143.850151L333.750783,141.833890L333.539175,140.913898L333.670009,140.003919L334.207315,139.550434L335.382985,139.755021L337.315687,140.621578L338.085148,140.821485L338.853566,140.885748L339.708094,140.512341L340.965817,139.758944L345.177705,136.173309L346.355565,135.532953L347.273796,134.839482L347.493676,134.383060L347.715705,133.808592L348.195746,132.031550L348.361613,130.169364L348.349320,128.770787L348.496721,127.724870L348.6943
847801,126.937151L349.114617,126.047011L349.647330,125.228674L350.631434,124.521763L349.460255,119.289058L339.037033,110.806531L330.684238,85.156348L330.503702,83.952333L330.718960,82.906182L331.215352,82.018701L331.878287,81.290691L333.904993,79.990021L336.501700,73.079841L337.102526,72.251537L340.342740,69.177312L340.733423,68.365568L340.922516,67.392236L340.826528,64.977353L341.112625,63.832472L341.615658,62.808843L342.240428,61.922290L344.055323,60.194526L345.599857,50.752183L346.139062,49.632598L346.942763,49.387049L347.952502,49.842730L355.565047,57.602445L356.802869,57.884370L357.987634,57.604177L359.062834,56.845309L359.981485,55.683597L360.696756,54.202419L361.152355,52.482739L361.386343,48.944702L361.653560,47.764280L362.092867,46.981374L362.681306,46.520864L367.031688,46.096360L367.730993,45.646947L368.253886,45.018579L368.626711,44.301402L369.011790,42.963822L369.090821,42.355297L369.553325,38.263422L371.933957,32.484958L372.734245,29.440421L371.930981,26.862592L370.188444,26.846362L362.256099,30.249257L360.589571,28.955025L361.350649,26.159818L363.043971,22.858927L364.131672,20.095583L364.363663,16.655985L363.894185,14.428462L362.775003,12.632825L361.013768,10.536478L359.230669,9.160570L355.341381,8.218134L353.545881,6.983145L352.175987,5.123818L351.672930,3.758342L351.348216,2.385300L350.498556,0.456006L349.279424,3.626613L347.652628,4.491557L342.434664,4.241173L338.422315,6.063375L336.831896,6.040516L335.264923,5.202262L334.319250,3.963400L333.551894,2.699493L332.459983,1.715511L327.099973,0.000000Z ", 8479 "data-id-kraj": "60", 8480 "data-name": "Ãstecký kraj" 8481 }, null, 10, _hoisted_2$A), 8482 createBaseVNode("path", { 8483 fill: [unref(store).getCountValue("idKraje", 43) !== 0 ? "white" : "lightgray"], 8484 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("43") && unref(store).getCountValue("idKraje", "43") !== null, disabled: unref(store).getCountValue("idKraje", "43") !== null }), 8485 d: "M194.617493,217.870755L191.489005,220.085721L189.458722,220.056420L182.875536,218.356014L181.536284,217.669284L180.611746,216.663754L179.028827,214.433303L177.676838,212.899784L176.164787,213.562125L175.181771,214.544462L174.651162,215.758497L174.493129,217.120853L174.624638,218.545568L174.969051,219.949217L175.976981,222.346937L176.074170,223.191337L175.421795,223.804407L166.892568,225.620851L166.320309,226.213929L166.019592,227.123039L165.942663,228.274999L166.054608,229.606758L167.727327,236.399870L167.501197,237.246829L166.941289,237.840040L166.134625,238.195216L164.152127,238.229413L162.263392,237.468027L157.063776,231.482179L146.952922,229.401946L146.274130,229.540946L144.729252,230.482400L141.532339,233.933013L127.846089,241.209648L127.056712,241.891115L126.462031,243.044376L124.368816,252.682804L123.725783,253.478770L122.788328,253.738821L120.419094,253.147772L116.500315,251.100522L116.009752,251.039123L114.838978,251.345783L111.141631,254.040543L110.600091,254.161558L110.055282,254.036406L109.506716,253.705258L106.341934,250.280554L94.924587,249.890002L93.941038,250.400556L89.422766,255.557202L88.717544,256.003663L86.610495,256.325838L84.040930,256.010123L79.727334,254.325210L78.912057,254.349906L78.124059,254.691406L74.068838,258.658902L72.965489,259.263581L71.570673,259.486611L64.625817,258.047693L64.093068,262.480113L62.845581,265.955073L59.340112,272.189801L58.196177,275.701547L55.256774,274.739221L54.299721,277.946829L54.136931,282.739942L53.596345,286.486639L51.204056,288.829063L45.053502,291.312967L43.248817,294.716220L43.935753,297.139224L45.407221,300.096826L48.379526,304.558925L50.467563,306.523166L52.700731,308.111629L57.579352,310.562102L59.608614,311.672983L60.789380,314.115316L60.843684,317.152130L59.540725,319.928884L59.917793,320.242643L61.085659,320.841914L60.350707,322.624588L60.233940,323.177738L61.716964,325.046407L65.219170,327.055832L66.751483,328.806510L67.751060,331.304008L68.355782,336.381717L68.908770,339.072399L69.813601,341.827963L70.715015,343.886455L71.852164,345.617997L73.434768,347.333054L75.098128,347.867952L76.665915,347.668710L77.755895,348.583820L77.894611,352.436800L78.206351,359.942469L78.885250,363.662206L80.523337,366.995297L83.389876,369.461150L90.195550,372.799996L93.148148,375.949606L97.869638,386.966305L100.190768,389.443605L103.131775,390.558671L111.890351,391.961249L114.681771,391.618523L114.056348,388.669658L116.111427,388.045652L121.787635,389.685334L124.296469,391.073096L126.431978,392.845785L130.571332,397.345145L133.147641,398.448145L133.959650,400.323050L134.136468,402.533611L134.792074,404.666608L139.497330,410.396877L139.497210,410.408687L139.527814,410.432622L141.367943,411.502480L155.175240,430.683585L157.098875,435.200202L159.447077,439.058658L163.663690,441.573576L172.707452,442.067825L175.699742,443.246479L177.514188,444.841548L182.023494,450.977202L188.347354,457.511426L189.997569,461.500924L190.054615,467.914130L192.190248,471.433605L196.480432,475.507079L201.211119,478.943207L204.710443,480.647785L206.278814,476.674553L207.716133,474.164996L209.798063,473.216695L210.764459,473.426118L210.765959,473.426443L210.759550,473.362385L210.583009,471.222533L213.870751,464.279783L217.373538,458.853267L220.613049,455.667015L221.320961,454.453850L221.759234,453.101786L221.810812,451.135985L221.672509,450.000715L221.429485,448.679344L221.360829,446.211036L221.909501,442.898344L223.849426,437.919709L225.431479,436.136097L226.823095,435.476649L228.629579,435.847388L229.280505,435.718254L229.859737,435.295167L231.309429,433.319621L235.263901,425.857104L236.608686,424.543548L238.159537,423.533922L239.374614,423.093617L240.186248,422.338855L240.302122,421.482804L239.654272,419.875099L237.567031,417.723061L236.967871,416.883578L236.759106,416.079804L236.852258,415.196133L237.388184,414.303064L238.344285,413.054009L238.807793,412.203457L238.995851,411.312358L238.997473,410.049414L238.167685,407.863884L238.122810,407.118105L238.307562,406.227012L239.026482,405.324066L239.626888,404.769932L242.220569,403.213618L242.935432,402.601671L243.444154,401.610359L244.048299,400.003948L244.882498,397.129708L246.223775,394.187949L249.096868,389.378656L249.722384,387.972806L249.906105,386.436225L249.723534,384.487744L248.917194,380.460032L248.594687,377.642712L248.851116,374.117570L249.888447,369.826878L250.029266,368.686987L249.820839,366.738486L247.936781,359.338165L245.834872,354.629023L245.813458,352.544974L245.999907,351.749151L246.284068,351.111572L246.927713,349.115814L247.365860,346.893926L247.366585,345.560644L247.038269,343.966043L246.028932,342.418704L244.602971,340.667565L244.098818,339.617596L243.731862,338.246330L243.528726,335.895949L243.670478,330.239013L243.394936,328.963226L242.823164,327.830273L241.516504,326.287243L240.528087,325.583078L239.793167,325.215601L239.129691,324.991291L238.388543,324.480591L237.791057,323.653670L237.448742,321.893030L237.589772,321.079698L237.980897,320.490188L238.853521,319.735591L239.114469,319.133313L239.024144,318.570751L238.657483,317.975178L236.747290,316.802366L236.724993,316.496001L237.620146,315.741535L238.814170,315.045148L239.052341,314.377557L238.861636,313.556236L236.615493,311.521703L236.022275,310.576675L236.413867,309.497591L237.217986,308.416596L238.968061,306.724160L240.642165,305.669132L242.500795,304.892747L246.830732,303.816495L247.96437
84857,303.249646L249.107841,302.185522L252.773930,298.070939L253.254320,297.066586L253.231613,296.371058L252.864935,295.590147L251.813627,294.977377L250.369819,294.397047L250.003269,294.068008L249.799053,293.475363L249.844913,292.119475L250.098296,290.962015L251.562050,285.905339L251.653016,284.755345L251.494334,283.781075L251.151005,282.422593L251.060423,281.619074L251.060559,280.981296L252.914487,276.316210L253.073236,275.690992L253.209300,274.804633L253.254660,273.777658L253.164023,271.804055L253.209374,270.817254L253.529906,270.056439L253.850411,269.719965L254.284220,269.606946L255.708655,269.466128L256.508219,269.222370L257.123210,268.933420L257.488929,268.697261L257.647393,268.290428L257.718370,267.682751L257.556109,266.570464L256.117891,261.682096L255.865296,260.524608L255.819798,259.555391L255.910138,258.563545L256.139565,257.759985L255.521674,256.667857L254.215193,255.281985L246.500011,251.335118L246.180720,250.300397L246.042354,249.408915L245.428983,248.569825L244.495646,247.966473L239.596025,246.462335L238.766374,245.999238L237.766155,245.136591L233.923285,240.879351L232.646225,240.025780L231.055973,239.284416L228.290934,238.500005L226.835248,238.388588L225.650232,238.486079L223.666812,238.947897L221.616212,239.137976L218.989292,238.798563L217.694152,237.978336L210.586995,231.055098L208.040312,229.804377L205.623501,229.229086L203.691613,228.464643L202.849924,228.435664L202.097323,228.668184L199.108820,230.321023L197.513211,230.712216L196.777496,230.746087L195.958664,230.633833L195.231228,230.323636L194.689855,229.612632L194.672542,228.630734L195.297301,226.991881L195.893772,225.792269L196.331711,224.672150L196.405816,223.444654L196.343288,222.452479L194.617493,217.870755Z ", 8486 "data-id-kraj": "43", 8487 "data-name": "PlzeÅský kraj" 8488 }, null, 10, _hoisted_3$s), 8489 createBaseVNode("path", { 8490 fill: [unref(store).getCountValue("idKraje", 116) !== 0 ? "white" : "lightgray"], 8491 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("116") && unref(store).getCountValue("idKraje", "116") !== null, disabled: unref(store).getCountValue("idKraje", "116") !== null }), 8492 d: "M695.031911,318.712934L693.439755,319.131025L685.876161,315.660838L682.367358,314.581738L678.661919,314.381194L673.689843,314.934003L672.331639,314.824932L670.455016,313.999032L669.322825,313.750357L661.426361,314.076010L660.162276,314.660550L659.441538,315.687288L659.329679,317.611266L659.107942,319.114608L658.660808,320.065862L657.393031,321.197989L639.906499,323.538950L636.330296,323.344683L636.088952,325.885836L635.486845,328.552552L633.800773,333.171289L633.815609,334.366792L634.230614,335.347480L638.448307,339.271637L639.007870,340.360195L639.376010,341.663973L639.549019,343.077587L639.532684,344.487769L639.329536,345.781357L638.942392,346.852709L638.377104,347.588530L633.964279,348.540422L633.303524,349.073220L632.921881,349.847654L632.899435,350.913770L633.864666,353.940948L634.553181,364.347077L634.906456,365.980662L638.007123,374.667562L638.244375,376.237250L638.131542,377.618083L637.578174,378.752877L624.863454,387.145810L623.048283,389.108373L621.567748,391.702706L621.065908,393.184095L620.786552,394.758593L620.744706,396.182017L620.895250,397.274971L621.182005,398.122221L622.296595,400.014818L622.565204,400.704356L622.688364,401.557008L622.543703,402.343184L622.101226,402.850313L618.997151,404.214093L618.298747,404.927955L617.795819,406.007198L617.194930,408.825680L617.071696,411.708904L617.264454,412.998990L617.667427,414.088740L618.311257,414.909293L620.201781,415.796822L621.000296,416.418674L621.578475,417.228658L621.905782,418.197668L621.948367,419.296695L621.672344,420.496712L621.047084,421.768553L619.038766,424.364649L618.449995,425.562265L618.200502,426.685931L618.221931,427.752986L618.455496,428.772895L619.752830,431.669801L620.054670,432.659802L620.082645,433.721617L619.875370,434.831364L618.909819,437.106595L615.775506,441.223576L605.355120,444.956183L604.760733,445.530111L601.808829,450.252618L600.593234,451.310420L599.056942,451.905721L588.677394,450.518879L588.014706,450.714599L585.408671,452.802019L584.491704,453.206042L580.008331,453.526410L578.200229,453.074207L577.399078,452.471982L576.650762,451.526542L575.953394,450.170129L575.150487,449.148301L574.157639,449.083919L573.066270,449.725622L569.335155,454.647187L568.707839,454.476511L567.295175,454.491167L566.513469,454.809506L565.800472,455.469999L565.247709,456.568070L564.575555,459.797010L563.864967,460.801427L562.907227,461.330355L557.700154,460.970904L553.535980,463.012529L542.945014,473.170377L542.018585,473.322396L541.137468,473.051205L536.535995,469.242761L535.478476,468.887690L534.461650,468.973555L533.521967,469.37889
84920L531.980552,470.663147L530.973298,471.954042L530.522868,472.957301L529.353383,474.782006L528.584300,475.446421L527.737993,475.650534L526.848860,475.174980L523.909146,470.753128L522.788674,469.818209L521.680958,469.274686L520.655212,469.125929L519.774122,469.378001L519.103460,470.026861L518.705991,471.078592L518.727983,472.017398L518.061881,474.424175L515.907608,480.263995L515.392370,482.106964L514.797065,483.492161L514.473914,485.662115L514.465063,485.718861L523.490330,488.992816L535.316071,495.305795L538.707824,496.023430L542.172857,495.934802L544.684993,495.066505L549.955699,492.092972L551.252099,491.739632L555.849345,491.604803L556.736803,492.242462L557.417779,495.035930L558.194897,496.184506L559.232187,496.593431L562.112660,496.727233L563.792689,497.886014L564.925532,498.362671L566.182106,498.245022L564.699444,500.330220L566.583456,499.828853L568.279640,499.852297L569.427306,500.847960L569.649715,503.251970L572.181051,502.518754L573.001478,503.476093L573.045922,505.058060L573.295488,506.185210L588.752480,516.793869L596.842494,520.023591L610.736156,518.751879L631.903964,521.191042L632.070161,521.031825L635.184276,520.453886L637.232183,522.015010L638.082288,522.257781L640.425811,521.480180L642.023778,519.876984L649.212309,506.484689L651.763845,504.645402L656.124617,505.128079L657.677086,505.001396L660.356899,503.746397L661.733888,503.507316L663.134626,503.929046L665.759945,505.487594L674.844877,507.774259L677.641227,507.999956L680.562470,509.059398L681.848101,511.764397L682.531787,515.024141L683.723242,517.685279L685.753033,519.002146L688.166786,519.334616L693.887002,518.875663L696.221814,519.575931L701.813428,522.983265L704.626636,523.911008L707.509498,523.440427L713.219863,521.139876L715.703332,521.227234L719.474464,526.107471L722.181776,541.138059L727.643452,546.997651L727.838154,542.645093L730.103256,539.623715L731.701361,536.370069L738.388696,514.018146L741.820937,507.532694L746.804863,502.810413L748.845962,499.965790L749.543871,495.619560L750.818061,493.434981L758.632556,487.173941L765.289568,485.429409L772.593445,486.985354L790.142947,494.897718L792.729217,494.277016L795.566672,492.208663L798.235088,490.262171L801.755823,489.038033L803.996500,489.992582L808.830756,494.638493L814.372199,495.226117L830.712866,487.799493L829.336593,482.700159L827.693556,478.731023L826.619019,476.965534L825.378889,475.580573L823.903755,474.642483L815.653997,472.633428L814.657131,471.986969L814.152273,470.998971L813.567206,468.654679L812.717498,466.564985L811.654656,464.968644L811.060188,464.430052L807.547163,463.216764L803.098437,462.837945L798.460963,465.659635L797.298988,465.939963L796.186251,465.870822L795.190278,465.343364L793.451009,462.935953L790.667328,460.897848L785.253242,458.894073L784.624546,455.625527L783.741883,453.264023L783.130999,452.403036L782.394229,451.950230L773.040388,450.458626L766.750581,447.853564L765.898607,447.163689L765.256957,446.313282L764.906204,445.117689L764.979266,438.010200L764.810598,436.469400L764.344989,435.349454L763.471264,434.811274L762.344330,434.787359L755.169302,437.626316L752.568486,437.707834L749.779059,436.645876L748.609530,435.803007L747.769987,434.824742L747.394405,433.765544L747.619966,432.679699L749.808828,430.521210L753.434134,424.798743L754.128272,424.063706L758.107524,422.375798L759.911370,420.956532L760.487068,420.015289L760.738899,418.892697L760.587085,417.567279L760.140447,416.335733L759.578074,415.451321L758.919071,414.827686L754.899596,412.676796L752.872696,410.093349L750.659364,405.949342L749.144389,401.532512L748.925548,399.624294L749.210651,398.130978L751.463583,393.600907L751.586133,393.091911L751.685063,392.680979L751.800956,391.599877L751.801834,390.292669L751.469488,388.643464L749.513232,384.593447L746.536636,380.553390L743.381031,377.762326L737.742659,376.270721L735.202684,374.923549L734.312082,373.931661L733.803339,372.681848L733.836926,368.211190L733.591358,367.065582L733.189902,366.097652L732.657842,365.286184L725.470719,358.848730L724.675004,357.656061L724.123406,356.513278L722.900830,351.231577L721.431866,347.835300L719.495339,345.026657L718.403262,344.127621L712.516231,341.961045L711.053475,341.946370L709.808787,342.314577L708.886762,343.151903L708.392061,344.544596L708.236321,347.285551L708.373878,348.25
84925071L708.627960,349.038828L711.520402,353.463497L712.681402,356.109687L713.094126,357.560363L713.304622,359.019437L713.248321,360.429281L712.860632,361.732245L711.242282,364.523824L708.954424,367.282372L707.681865,368.324913L706.386251,368.966109L705.118178,369.078232L696.784655,363.116942L696.013585,361.976654L695.852102,360.872275L696.464391,359.827405L697.387552,358.795154L698.047109,357.713101L698.459440,356.580637L698.640921,355.397133L698.604669,354.162074L698.363799,352.874936L694.304796,343.587903L693.859498,342.067585L693.730463,340.785966L694.015826,339.834637L695.650981,338.944907L696.025746,338.442316L695.994470,337.820286L695.613583,337.101688L689.041774,331.049967L686.896988,327.716581L686.274889,326.137631L686.099425,324.812546L686.477144,323.887946L687.514685,323.510360L692.262831,324.453240L693.154189,324.171413L693.919571,323.261212L694.547231,321.512014L695.031911,318.712934Z ", 8493 "data-id-kraj": "116", 8494 "data-name": "Jihomoravský kraj" 8495 }, null, 10, _hoisted_4$n), 8496 createBaseVNode("path", { 8497 fill: [unref(store).getCountValue("idKraje", 141) !== 0 ? "white" : "lightgray"], 8498 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("141") && unref(store).getCountValue("idKraje", "141") !== null, disabled: unref(store).getCountValue("idKraje", "141") !== null }), 8499 d: "M934.538815,359.250648L932.896933,359.312329L932.027147,359.010927L931.167068,358.437099L930.390935,357.518365L929.772507,356.174744L928.196769,349.721060L927.665307,348.291527L926.942197,347.044775L925.958966,346.037779L923.313171,344.573083L922.248355,343.505323L918.763072,337.058055L917.971393,336.277942L915.367181,335.455718L904.122297,336.305858L903.097773,335.993875L898.449443,333.076483L897.026429,332.585998L874.052367,336.201888L872.790628,336.008666L871.721709,335.522764L870.855010,334.736170L870.209243,333.632792L869.437519,330.843521L868.970728,329.901141L868.418890,329.308107L867.807241,328.990049L861.273750,329.244053L859.380902,335.357314L857.254641,336.012166L855.415225,335.936618L854.538287,335.541753L853.060915,334.002357L852.284209,333.463542L851.486877,333.207497L850.699373,333.255200L849.951738,333.620118L849.280929,334.322893L848.723913,335.384177L847.920192,338.186617L847.424512,339.118752L846.859507,339.732653L845.076840,340.854512L844.562729,341.385071L844.138402,342.192487L843.873789,343.240334L843.783477,344.371910L843.953947,346.601197L844.501768,349.041686L840.602273,351.037789L827.429994,349.076702L825.169191,349.098367L823.501457,349.403331L821.738341,350.210864L821.208109,350.710892L820.968202,351.392135L821.227031,352.301747L822.313124,354.556946L822.756329,356.000227L822.808180,357.016029L822.556159,357.974546L822.108835,358.696655L821.495489,359.371946L820.610504,359.789542L819.558130,360.004397L808.971223,360.327443L807.833601,360.673692L805.324391,361.865315L803.443344,363.065362L802.713777,363.732735L802.131891,364.543601L801.479485,365.853269L800.865080,367.407424L800.188970,368.708110L799.307723,369.566265L798.444205,369.918075L796.901003,369.692201L790.380305,367.118890L789.055121,366.921606L785.832082,365.357350L782.019938,362.387269L779.691302,361.635914L778.759313,361.572099L775.955020,361.340356L775.512946,365.036871L775.463678,368.953669L776.844947,372.797918L778.204486,374.347663L777.003329,377.159970L776.526773,377.826089L771.671736,382.979201L770.911582,384.045455L770.250408,385.200055L769.788064,385.764617L769.136060,386.126800L768.653574,386.184418L768.046295,386.094453L758.358448,386.778508L757.335256,387.131726L756.701392,387.980017L756.348659,389.177519L755.882557,393.406794L755.556266,394.542724L754.963583,395.298522L754.228726,395.590615L753.562167,395.502512L752.968663,395.139593L752.466032,394.606650L751.752146,393.452213L751.586133,393.091911L751.463583,393.600907L749.210651,398.130978L748.925548,399.624294L749.144389,401.532512L750.659364,405.949342L752.872696,410.093349L754.899596,412.676796L758.919071,414.827686L759.578074,415.451321L760.140447,416.335733L760.587085,417.567279L760.738899,418.892697L760.487068,420.015289L759.911370,420.956532L758.107524,422.375798L754.128272,424.063706L753.434134,424.798743L749.808828,430.521210L747.619966,432.679699L747.394405,433.765544L747.769987,434.824742L748.609530,435.803007L749.779059,436.645876L752.568486,437.707834L755.169302,437.626316L762.344330,434.787359L763.471264,434.811274L764.344989,435.349454L764.810598,436.469400L764.979266,438.010200L764.906204,445.117689L765.256957,446.313282L765.898607,447.163689L766.750581,447.853564L773.040388,450.45862
84996L782.394229,451.950230L783.130999,452.403036L783.741883,453.264023L784.624546,455.625527L785.253242,458.894073L790.667328,460.897848L793.451009,462.935953L795.190278,465.343364L796.186251,465.870822L797.298988,465.939963L798.460963,465.659635L803.098437,462.837945L807.547163,463.216764L811.060188,464.430052L811.654656,464.968644L812.717498,466.564985L813.567206,468.654679L814.152273,470.998971L814.657131,471.986969L815.653997,472.633428L823.903755,474.642483L825.378889,475.580573L826.619019,476.965534L827.693556,478.731023L829.336593,482.700159L830.712866,487.799493L842.657469,482.349598L845.195747,480.003816L849.906562,470.787383L852.218044,468.641096L855.872607,467.806087L859.062906,468.177991L861.920974,467.857271L864.533565,465.005715L865.588416,461.812970L866.367059,454.683840L867.111948,451.247561L868.875359,447.151716L871.904247,444.949367L875.491848,444.182058L883.552362,444.356868L888.387560,441.787336L892.560559,437.419493L895.366683,431.969058L896.069352,426.899598L895.297126,416.713688L895.193144,415.342065L895.383346,409.189771L896.850271,401.590912L899.237947,394.470647L902.486249,388.411666L906.628693,383.991093L926.182517,374.963026L931.420575,370.306387L934.756690,367.337172L934.538815,359.250648Z ", 8500 "data-id-kraj": "141", 8501 "data-name": "ZlÃnský kraj" 8502 }, null, 10, _hoisted_5$j), 8503 createBaseVNode("path", { 8504 fill: [unref(store).getCountValue("idKraje", 124) !== 0 ? "white" : "lightgray"], 8505 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("124") && unref(store).getCountValue("idKraje", "124") !== null, disabled: unref(store).getCountValue("idKraje", "124") !== null }), 8506 d: "M710.135635,132.246584L705.928266,129.949068L702.588534,129.662943L698.734401,132.234478L698.880706,135.420570L703.830251,142.131698L705.660082,146.240633L706.947498,151.057814L708.564071,155.423598L711.410314,158.129295L715.055911,160.067211L717.834074,162.880672L719.547725,166.909884L719.996983,172.447687L722.007250,174.891289L722.423783,177.888354L721.571456,179.876083L719.775786,179.279454L718.120628,177.009399L717.382351,175.657647L716.481192,175.093158L714.336256,175.149052L713.955187,175.791876L714.102317,178.552291L713.775383,179.405623L712.465613,179.555696L709.721971,178.701920L708.440474,178.803028L706.739533,180.091988L704.448496,183.580597L703.124496,184.865087L701.504367,185.351603L696.542246,199.748403L693.365225,212.300966L693.255534,214.705655L694.288989,217.134516L694.501973,217.935201L694.676868,219.471329L694.487520,220.378779L694.111001,221.208339L693.475765,221.867368L689.095551,225.282960L686.222035,228.642017L685.355694,229.279537L684.818947,229.511888L682.366606,231.063741L681.933955,232.309705L682.069995,233.392587L683.168137,235.111179L683.619091,236.143949L683.937425,237.254817L684.731663,242.330380L685.995034,246.653485L686.188406,248.030631L686.292067,254.196548L686.715085,259.676266L684.535847,264.904362L684.376622,266.715114L684.756376,268.632827L685.666417,270.263224L688.160162,273.728346L694.764467,285.920359L695.307134,289.746389L695.906423,291.004040L696.694807,291.789071L699.112135,292.601063L700.668018,294.759620L702.078945,302.468374L697.710625,307.388366L697.431601,309.030762L697.202382,313.626768L696.446292,317.107955L695.031911,318.712934L694.547231,321.512014L693.919571,323.261212L693.154189,324.171413L692.262831,324.453240L687.514685,323.510360L686.477144,323.887946L686.099425,324.812546L686.274889,326.137631L686.896988,327.716581L689.041774,331.049967L695.613583,337.101688L695.994470,337.820286L696.025746,338.442316L695.650981,338.944907L694.015826,339.834637L693.730463,340.785966L693.859498,342.067585L694.304796,343.587903L698.363799,352.874936L698.604669,354.162074L698.640921,355.397133L698.459440,356.580637L698.047109,357.713101L697.387552,358.795154L696.464391,359.827405L695.852102,360.872275L696.013585,361.976654L696.784655,363.116942L705.118178,369.078232L706.386251,368.966109L707.681865,368.324913L708.954424,367.282372L711.242282,364.523824L712.860632,361.732245L713.248321,360.429281L713.304622,359.019437L713.094126,357.560363L712.681402,356.109687L711.520402,353.463497L708.627960,349.038828L708.373878,348.25
85065071L708.236321,347.285551L708.392061,344.544596L708.886762,343.151903L709.808787,342.314577L711.053475,341.946370L712.516231,341.961045L718.403262,344.127621L719.495339,345.026657L721.431866,347.835300L722.900830,351.231577L724.123406,356.513278L724.675004,357.656061L725.470719,358.848730L732.657842,365.286184L733.189902,366.097652L733.591358,367.065582L733.836926,368.211190L733.803339,372.681848L734.312082,373.931661L735.202684,374.923549L737.742659,376.270721L743.381031,377.762326L746.536636,380.553390L749.513232,384.593447L751.469488,388.643464L751.801834,390.292669L751.800956,391.599877L751.685063,392.680979L751.586133,393.091911L751.752146,393.452213L752.466032,394.606650L752.968663,395.139593L753.562167,395.502512L754.228726,395.590615L754.963583,395.298522L755.556266,394.542724L755.882557,393.406794L756.348659,389.177519L756.701392,387.980017L757.335256,387.131726L758.358448,386.778508L768.046295,386.094453L768.653574,386.184418L769.136060,386.126800L769.788064,385.764617L770.250408,385.200055L770.911582,384.045455L771.671736,382.979201L776.526773,377.826089L777.003329,377.159970L778.204486,374.347663L776.844947,372.797918L775.463678,368.953669L775.512946,365.036871L775.955020,361.340356L778.759313,361.572099L779.691302,361.635914L782.019938,362.387269L785.832082,365.357350L789.055121,366.921606L790.380305,367.118890L796.901003,369.692201L798.444205,369.918075L799.307723,369.566265L800.188970,368.708110L800.865080,367.407424L801.479485,365.853269L802.131891,364.543601L802.713777,363.732735L803.443344,363.065362L805.324391,361.865315L807.833601,360.673692L808.971223,360.327443L819.558130,360.004397L820.610504,359.789542L821.495489,359.371946L822.108835,358.696655L822.556159,357.974546L822.808180,357.016029L822.756329,356.000227L822.313124,354.556946L821.227031,352.301747L820.968202,351.392135L821.208109,350.710892L821.738341,350.210864L823.501457,349.403331L825.169191,349.098367L827.429994,349.076702L840.602273,351.037789L844.501768,349.041686L843.953947,346.601197L843.783477,344.371910L843.873789,343.240334L844.138402,342.192487L844.562729,341.385071L845.076840,340.854512L846.859507,339.732653L847.424512,339.118752L847.920192,338.186617L848.723913,335.384177L849.280929,334.322893L849.951738,333.620118L850.699373,333.255200L851.486877,333.207497L852.284209,333.463542L853.060915,334.002357L854.538287,335.541753L855.415225,335.936618L857.254641,336.012166L859.380902,335.357314L861.273750,329.244053L858.914513,326.798203L856.943639,325.417250L852.666050,324.564100L852.233746,321.690069L851.437402,319.197995L850.822338,318.008986L849.123742,316.066221L844.987980,312.840975L840.213056,310.910997L839.177323,309.929978L834.156550,300.659277L833.279777,299.827834L832.432329,299.678859L831.596949,300.009543L828.987372,301.896897L828.030696,302.153166L826.998387,301.892712L826.135590,301.070059L825.633595,299.858881L825.419882,298.368621L825.867128,290.793104L825.575609,289.809884L824.863797,288.808306L821.288272,286.036386L816.927963,284.214097L811.670029,286.263274L807.881926,286.158570L802.306706,282.785112L801.448449,282.772696L800.672654,283.178548L797.375394,286.017969L789.877004,285.974679L787.652243,284.986922L775.725917,273.253758L774.671061,272.906724L773.642788,273.121520L769.604828,275.592799L768.566964,275.608933L755.662814,269.769292L755.032887,269.184732L754.682362,268.466686L754.169179,266.167219L753.798370,265.570751L753.138130,265.168492L746.732739,264.614231L744.778532,263.829772L744.089592,263.136668L743.691739,262.282175L743.517331,261.276891L743.838902,252.936489L744.062523,251.634316L744.448233,250.483232L748.421864,244.755757L748.648720,243.973692L748.553021,243.286689L748.181565,242.654916L743.887563,238.806171L743.241897,237.673728L742.870415,236.451033L742.742442,235.177193L742.846668,233.890430L743.172124,232.636474L743.688167,231.454387L751.866866,218.775176L752.301968,217.767248L752.435570,216.732888L752.334364,215.646430L750.362717,208.983896L750.415488,207.945708L750.713117,207.115054L752.089378,204.623510L752.390024,203.370298L752.543093,199.878791L752.943189,198.269016L753.596711,196.848688L755.428565,194.504074L766.971723,187.322101L770.100154,182.207972L770.816733,181.507545L771.610459,181.145330L772.505334,181.218224L774.592675,182.403023L775.646876,182.372468L776.639395,181.862022L777.527738,180.994439L778.279116,179.892017L778.847965,178.677683L779.201627,177.473742L779.294647,176.403118L776.341440,163.028531L773.126765,163.431613L771.742884,167.684574L769.726981,166.302483L768.605108,164.002406L768.181533,161.125050L768.221360,158.142874L767.530863,157.596190L766.896800,156.964003L766.348193,156.221296L765.900663,155.379168L768.530941,154.166254L765.457200,153.023057L758.627665,153.545136L755.116467,152.703312L749.830736,149.683286L748.328991,148.191154L747.365295,146.248558L746.327755,143.339587L745.718397,140.884054L746.005375,140.232411L744.281645,139.790547L739.884638,140.911754L737.882348,140.978058L735.972326,140.070245L732.460573,137.364977L730.822893,136.456053L715.692292,132.905014L712.341256,133.449967L710.135635,132.246584Z ", 8507 "data-id-kraj": "124", 8508 "data-name": "Olomoucký kraj" 8509 }, null, 10, _hoisted_6$f), 8510 createBaseVNode("path", { 8511 fill: [unref(store).getCountValue("idKraje", 94) !== 0 ? "white" : "lightgray"], 8512 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("94") && unref(store).getCountValue("idKraje", "94") !== null, disabled: unref(store).getCountValue("idKraje", "94") !== null }), 8513 d: "M695.031911,318.712934L696.446292,317.107955L697.202382,313.626768L697.431601,309.030762L697.710625,307.388366L702.078945,302.468374L700.668018,294.759620L699.112135,292.601063L696.694807,291.789071L695.906423,291.004040L695.307134,289.746389L694.764467,285.920359L688.160162,273.728346L685.666417,270.263224L684.756376,268.632827L684.376622,266.715114L684.535847,264.904362L686.715085,259.676266L686.292067,254.196548L686.188406,248.030631L685.995034,246.653485L684.731663,242.330380L683.937425,237.254817L683.619091,236.143949L683.168137,235.111179L682.069995,233.392587L681.933955,232.309705L682.366606,231.063741L684.818947,229.511888L685.355694,229.279537L686.222035,228.642017L689.095551,225.282960L693.475765,221.867368L694.111001,221.208339L694.487520,220.378779L694.676868,219.471329L694.501973,217.935201L694.288989,217.134516L693.25
85135534,214.705655L693.365225,212.300966L696.542246,199.748403L701.504367,185.351603L701.504216,185.351648L699.745800,185.879370L696.806333,185.798811L693.922456,186.341784L690.756709,189.295214L688.285912,193.390222L686.821173,196.546058L685.136877,199.154751L681.976975,201.644057L677.707474,207.994001L671.773877,208.661051L665.505627,205.696721L660.290979,201.223834L644.610475,196.782328L643.862297,197.198718L643.295639,198.010604L642.894649,199.135657L642.643782,200.499066L642.532488,203.611444L642.270875,205.040555L641.453839,206.167830L626.548125,213.930659L625.735269,214.679615L625.154114,215.702021L624.568461,218.591458L624.063303,219.867495L623.370069,220.928775L622.527683,221.781481L620.552031,222.908525L607.482160,224.574440L605.235772,225.571743L603.155883,227.246624L597.312953,222.508051L595.608090,222.157197L594.899910,221.691996L592.488055,218.820251L591.909178,218.353357L590.617507,218.091917L588.928005,217.264740L587.139457,215.719302L585.617752,213.602690L584.459362,211.331644L583.553382,210.680823L575.080554,209.246183L573.899450,208.416805L573.200435,207.211389L572.851765,205.754481L572.677444,201.116983L572.490421,199.896499L572.034170,199.045666L571.206084,198.466961L567.112079,197.364904L561.008036,197.647318L559.654106,198.373860L550.583377,207.819691L549.760682,208.249073L549.140590,208.072508L548.520748,207.546726L547.921742,206.716390L546.830680,204.351883L545.318187,198.494313L544.735021,197.748806L543.961105,197.450486L536.745254,199.781105L535.850789,200.914658L535.212682,202.383120L533.438101,208.638470L532.749618,209.555431L531.817309,209.885767L530.680772,209.661064L524.619876,205.729400L523.850824,205.494838L519.400192,206.943341L517.242918,206.968214L511.459321,204.273555L509.236556,204.501863L506.437546,205.988966L497.703515,214.597719L496.578087,214.710808L488.430611,211.837963L486.071741,214.234485L485.744614,214.914586L485.593320,215.681349L485.618856,216.883878L485.810875,218.032626L486.413707,220.606742L486.475672,221.396584L486.425093,222.201389L486.201083,224.557066L484.894125,224.527118L481.924437,225.345745L479.236825,226.722824L478.547033,227.849717L480.286483,230.518674L481.376838,231.583474L484.862991,233.742931L489.889881,235.265250L490.930700,235.915780L496.402660,240.969447L497.606589,241.794065L499.556488,242.305395L500.592089,242.811986L501.684293,243.673859L503.097463,245.284327L503.326616,246.406854L503.032823,247.558911L502.663758,248.388664L502.497963,249.060559L502.429853,250.049214L502.439656,254.620309L502.303140,255.876759L501.990551,257.217582L501.308577,259.400650L500.769699,261.771325L500.603765,263.606098L507.078530,267.697833L509.992047,270.988192L513.936633,277.111759L515.539400,278.814226L516.408943,279.253067L527.626068,278.069092L530.222778,278.717233L537.084287,283.816942L541.063378,284.657856L543.145823,285.889200L543.960123,286.751885L544.519380,287.782045L544.897957,290.077983L545.278778,290.856625L545.861400,291.408831L549.732445,293.173997L552.191625,295.034098L554.287432,297.712500L556.744066,302.377653L560.512186,303.275372L561.555778,302.708596L562.838258,302.554515L564.875896,303.371197L566.515547,303.779327L567.891869,303.722471L569.307690,302.772502L571.509228,300.113989L572.208704,299.696806L573.840300,299.048959L574.510085,298.509393L575.012998,297.595330L575.666797,295.732235L575.993540,295.132283L576.596688,294.546803L577.489293,294.533070L578.507265,294.917510L580.619213,296.271711L582.641679,297.221222L584.862120,297.935790L588.282086,298.558168L589.958522,299.416416L591.042826,300.453406L591.513558,301.609674L592.024921,302.603885L593.149868,303.360566L594.771709,303.677141L597.947385,303.264062L601.755239,303.322478L604.771102,304.128487L609.192981,306.184719L614.867415,309.700629L616.847428,311.266032L618.231182,312.886053L619.226450,314.554005L620.316378,316.025258L621.937181,317.106805L627.209510,318.836169L633.407989,322.553850L636.330296,323.344683L639.906499,323.538950L657.393031,321.197989L658.660808,320.065862L659.107942,319.114608L659.329679,317.611266L659.441538,315.687288L660.162276,314.660550L661.426361,314.076010L669.322825,313.750357L670.455016,313.999032L672.331639,314.824932L673.689843,314.934003L678.661919,314.381194L682.367358,314.581738L685.876161,315.660838L693.439755,319.131025L695.031911,318.712934Z ", 8514 "data-id-kraj": "94", 8515 "data-name": "Pardubický kraj" 8516 }, null, 10, _hoisted_7$c), 8517 createBaseVNode("path", { 8518 fill: [unref(store).getCountValue("idKraje", 51) !== 0 ? "white" : "lightgray"], 8519 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("51") && unref(store).getCountValue("idKraje", "51") !== null, disabled: unref(store).getCountValue("idKraje", "51") !== null }), 8520 d: "M130.190669,143.720533L130.190500,143.720697L129.003567,144.866994L124.023862,144.525062L110.644080,136.123584L109.430515,135.741299L108.118215,135.995407L106.053956,137.325851L105.146449,137.667802L102.548842,137.265660L100.215010,137.374565L97.825627,138.202722L95.933013,140.029851L92.638397,144.989829L90.988921,146.536240L89.088526,146.720155L81.326551,145.181900L70.413066,145.817788L64.511038,147.452812L60.413633,150.853533L59.312189,151.778882L58.779649,152.903381L58.457520,154.055274L58.047256,155.075624L58.068882,155.548542L58.250966,156.319683L58.325241,157.218824L57.993628,158.051580L57.400027,158.359807L56.089518,158.288750L55.556358,158.586166L53.794221,160.113177L49.467480,162.442491L47.869761,163.971665L43.185765,172.139445L41.491536,173.854874L39.838809,174.968374L38.610983,176.727987L38.146676,180.345571L35.187536,183.995978L34.358640,186.129384L33.823399,190.182497L34.204792,193.025488L35.002609,195.486983L34.961920,197.518118L32.889629,198.964818L30.399789,198.595072L28.964795,196.250038L27.340815,189.919590L27.214169,188.735564L26.984954,187.395818L26.411439,185.895293L25.794787,185.019968L23.295869,182.380031L22.929464,181.840627L22.789169,181.329644L22.934870,180.871991L23.336822,180.443400L23.521561,180.281919L23.720649,180.156180L23.918487,180.089481L24.145782,180.058843L24.822271,178.785389L24.919859,177.736000L24.454064,176.899201L23.424485,176.298538L19.229555,176.102468L17.115158,175.395023L15.516248,173.918738L14.981773,172.123048L15.113059,168.203599L14.299665,166.070928L11.538567,164.013023L4.550733,163.335824L0.879868,162.978239L4.161800,166.574994L5.291985,168.633031L5.760845,171.904563L5.422385,174.826831L4.416817,175.867105L2.884239,176.824246L0.993192,179.545042L2.440794,182.295975L9.560335,186.983147L13.055057,191.007018L14.647082,193.593991L15.706894,196.334486L16.055642,199.780031L14.913239,204.953288L14.929285,208.379754L16.126114,211.867452L18.160378,213.813655L20.479700,215.222111L22.562090,217.109414L23.818044,219.392409L24.072191,221.736913L24.058960,223.815881L24.498668,225.278228L46.476991,237.648837L46.628822,237.651714L48.834530,239.914145L54.230597,240.580904L56.663780,242.987607L56.983748,246.336452L55.910241,249.400312L55.698419,251.877222L61.657002,25
85205.527184L63.741650,256.378608L64.625817,258.047693L71.570673,259.486611L72.965489,259.263581L74.068838,258.658902L78.124059,254.691406L78.912057,254.349906L79.727334,254.325210L84.040930,256.010123L86.610495,256.325838L88.717544,256.003663L89.422766,255.557202L93.941038,250.400556L94.924587,249.890002L106.341934,250.280554L109.506716,253.705258L110.055282,254.036406L110.600091,254.161558L111.141631,254.040543L114.838978,251.345783L116.009752,251.039123L116.500315,251.100522L120.419094,253.147772L122.788328,253.738821L123.725783,253.478770L124.368816,252.682804L126.462031,243.044376L127.056712,241.891115L127.846089,241.209648L141.532339,233.933013L144.729252,230.482400L146.274130,229.540946L146.952922,229.401946L157.063776,231.482179L162.263392,237.468027L164.152127,238.229413L166.134625,238.195216L166.941289,237.840040L167.501197,237.246829L167.727327,236.399870L166.054608,229.606758L165.942663,228.274999L166.019592,227.123039L166.320309,226.213929L166.892568,225.620851L175.421795,223.804407L176.074170,223.191337L175.976981,222.346937L174.969051,219.949217L174.624638,218.545568L174.493129,217.120853L174.651162,215.758497L175.181771,214.544462L176.164787,213.562125L177.676838,212.899784L175.980911,211.328499L172.925060,209.099125L171.842003,207.968622L171.393500,207.244578L171.648268,206.324937L171.925613,205.824805L174.066826,203.070934L174.662591,202.118552L175.168675,201.095183L174.863604,199.227271L173.907204,196.716798L170.849715,191.910434L169.755270,189.586860L169.316353,187.740347L169.665189,186.673327L169.946936,185.548027L170.091094,184.343821L169.929314,181.982173L169.428353,179.060445L169.201995,176.364310L169.168868,174.839832L169.476742,169.887872L169.446837,167.946580L169.215169,165.971078L168.514068,162.942272L167.778730,161.459970L166.860947,160.372910L164.624210,159.119349L160.518303,158.022712L156.082091,157.757743L152.448899,156.968627L150.606814,155.565152L149.556753,154.136344L148.621044,152.173668L147.884188,151.202233L147.010162,150.515668L137.501687,149.308041L135.032504,147.862493L130.190669,143.720533Z ", 8521 "data-id-kraj": "51", 8522 "data-name": "Karlovarský kraj" 8523 }, null, 10, _hoisted_8$9), 8524 createBaseVNode("path", { 8525 fill: [unref(store).getCountValue("idKraje", 35) !== 0 ? "white" : "lightgray"], 8526 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("35") && unref(store).getCountValue("idKraje", "35") !== null, disabled: unref(store).getCountValue("idKraje", "35") !== null }), 8527 d: "M330.441034,567.267296L331.894091,567.091970L333.079161,566.611301L336.110418,564.139054L343.946558,560.683729L346.317591,558.202161L349.632215,549.157658L351.820362,547.615321L355.479899,551.857976L361.537298,554.966628L363.322124,555.386362L365.582074,554.856311L370.089440,552.625784L372.414316,552.412554L373.391484,553.258439L373.594196,554.714822L373.625802,556.237979L374.120203,557.195222L375.293280,557.312533L377.596678,556.478451L378.583227,556.686046L380.231756,558.822996L381.146320,560.962127L382.350828,562.442422L384.837849,562.579111L387.157433,560.197946L387.834385,559.502742L388.529968,553.553902L388.369495,546.570047L388.842685,540.393480L391.641264,535.718024L399.488727,528.627167L400.196097,524.248036L401.672264,521.547664L402.243409,518.764607L403.102358,516.580034L405.363493,515.675712L413.239439,516.653134L421.070040,519.739916L424.117771,519.410617L425.785571,515.381209L425.452457,514.972921L424.760963,513.507087L424.080245,511.710336L423.763042,510.274188L423.988085,508.676268L425.033559,505.778417L428.001781,491.417364L427.920153,485.099543L427.192030,478.118495L427.154277,471.610965L429.126200,466.761077L428.967473,465.523356L428.950983,464.460574L429.171493,463.689359L429.645939,463.303923L432.923932,462.826570L441.306992,465.559137L452.993088,466.313524L454.150617,469.517507L454.841455,472.611665L454.834638,475.718353L453.899578,478.995242L456.879603,479.000572L468.271242,475.693044L469.037349,475.182200L471.067608,472.638691L471.540624,471.424616L471.853504,468.347277L472.439984,467.402626L473.586718,467.368307L474.364631,468.297974L475.006849,469.419278L475.761161,469.924068L482.785627,469.864994L486.153889,470.752290L493.441274,474.284029L500.159135,476.394307L503.426446,478.176516L510.988522,484.455284L514.463729,485.718376L514.465063,485.718861L514.473914,485.662115L514.797065,483.492161L515.392370,482.106964L515.907608,480.263995L518.061881,474.424175L518.727983,472.017398L518.705991,471.078592L518.548625,470.273596L517.776306,469.116452L517.085560,468.482253L516.356483,468.039794L514.594627,467.701814L512.217761,467.568679L511.167814,467.356833L510.223951,466.733075L509.640735,465.726769L508.956707,464.192807L508.479603,463.643629L507.960932,463.441967L507.489892,463.452678L507.207650,463.358626L506.993776,462.785830L506.850981,461.854784L507.132685,460.017501L507.392683,459.125031L508.007714,458.201869L512.751273,452.316236L513.459893,450.775241L513.759934,449.653114L513.883380,448.012689L514.024671,447.004762L514.352199,446.082896L514.737859,445.684580L515.520442,445.518049L518.820605,445.226586L519.834103,444.948769L520.590713,444.523802L521.207309,444.024282L521.585729,443.472685L521.597414,442.857055L521.298561,442.047953L520.318524,440.808090L513.049280,433.949688L512.485392,433.586066L511.975367,433.562744L511.351099,433.717853L505.601263,436.177592L503.472015,436.378742L496.388824,435.241893L495.715886,435.286673L493.221668,435.790144L492.522012,435.662015L491.959945,435.355096L484.720270,428.739314L483.958008,427.773141L483.440429,426.236798L483.027989,424.213560L482.650214,420.501913L482.010451,418.583776L481.153038,417.413445L479.860109,416.932518L472.577253,416.226951L470.868946,415.788323L470.237729,415.386262L462.315356,411.421723L461.386415,411.383880L460.561587,411.655427L459.820582,412.206626L457.282647,416.236366L456.654399,416.697381L456.005375,416.736838L449.940226,412.927997L445.914986,407.744811L441.579614,404.956199L438.189782,401.743432L435.765730,400.387232L434.479641,400.282704L433.186537,400.760744L430.662400,403.176898L429.338956,403.632363L427.969676,403.465613L425.115588,401.784889L419.442451,396.632810L418.645592,395.456912L418.203031,394.313375L418.029283,393.185928L418.306887,388.468344L418.192499,387.367638L417.902657,386.573386L417.475091,385.979547L414.977051,383.618047L414.310350,382.527850L413.907604,381.132457L413.917170,379.520152L416.877530,367.061611L416.936777,362.857002L416.484039,359.139582L414.156039,351.183046L414.518014,350.273746L415.363932,349.678785L420.587700,348.074178L421.596363,347.275368L422.109097,346.250504L422.102552,345.173286L421.714678,344.101884L421.086585,343.091879L418.941143,340.861633L417.978776,341.016646L417.284019,340.755768L416.613112,340.341310L415.913405,339.736384L415.142109,338.908966L414.509615,337.984045L414.035591,336.971403L413.555465,335.529415L413.189800,334.791398L412.193971,334.167928L410.393990,333.555840L407.552078,334.115726L406.055505,333.995905L405.290310,333.531852L405.201762,332.056499L405.102237,331.445140L404.585878,330.588384L403.762646,329.904042L399.360373,328.617196L398.573372,328.178087L398.085219,327.687293L397.008760,326.249918L396.187405,325.396750L395.613104,325.276105L394.903709,325.533837L393.107837,327.126204L392.655788,327.674328L392.048953,328.603562L391.154420,330.493098L391.022500,331.145128L390.940113,331.854293L390.646145,337.846988L389.722113,339.274709L387.663530,340.949735L382.872772,342.039004L381.864786,342.522860L379.723173,344.792471L376.204772,347.064484L374.599414,347.554289L373.017221,347.784969L369.483629,347.255156L369.226645,346.999214L369.152153,346.419942L369.191158,345.781727L369.320929,345.094849L367.500345,344.624148L351.026533,345.449938L348.239665,345.107606L345.760805,343.757605L343.778478,343.279336L341.937791,343.377106L340.721034,343.657978L333.797555,347.625135L332.282780,347.814329L331.153997,347.721890L330.483997,347.490553L330.045532,347.262594L329.675187,346.981418L329.343741,346.664809L328.622740,345.
8527625183L328.322523,345.094900L327.695021,344.360915L327.164545,343.992849L326.448993,343.726420L325.874760,343.634786L325.459778,343.471778L325.134927,343.132402L324.831265,342.536763L324.271010,341.046355L323.785562,340.542246L323.000965,340.127890L321.229012,339.679412L318.853846,339.676170L317.083434,340.022988L316.374468,340.255550L315.754555,340.685927L313.093953,343.392352L310.157163,344.613077L301.508309,345.794077L297.573178,345.662363L295.653902,344.996944L292.895559,344.788697L292.021017,344.503034L290.197512,343.067995L288.702314,342.256829L287.567881,342.132340L286.509364,342.323880L284.856449,343.225103L283.893981,344.031290L283.184374,345.592495L282.386079,348.228551L282.018767,348.666404L281.537154,349.046786L274.377557,351.304912L273.253411,351.887002L272.448853,352.501073L269.795833,353.888821L268.253073,354.066761L267.009996,353.920217L264.317201,352.371473L263.478389,351.757101L262.649709,351.451497L261.661330,351.228809L258.553197,351.117701L257.724711,350.839347L255.999230,349.637170L255.301368,349.459038L254.450297,349.564608L245.834872,354.629023L247.936781,359.338165L249.820839,366.738486L250.029266,368.686987L249.888447,369.826878L248.851116,374.117570L248.594687,377.642712L248.917194,380.460032L249.723534,384.487744L249.906105,386.436225L249.722384,387.972806L249.096868,389.378656L246.223775,394.187949L244.882498,397.129708L244.048299,400.003948L243.444154,401.610359L242.935432,402.601671L242.220569,403.213618L239.626888,404.769932L239.026482,405.324066L238.307562,406.227012L238.122810,407.118105L238.167685,407.863884L238.997473,410.049414L238.995851,411.312358L238.807793,412.203457L238.344285,413.054009L237.388184,414.303064L236.852258,415.196133L236.759106,416.079804L236.967871,416.883578L237.567031,417.723061L239.654272,419.875099L240.302122,421.482804L240.186248,422.338855L239.374614,423.093617L238.159537,423.533922L236.608686,424.543548L235.263901,425.857104L231.309429,433.319621L229.859737,435.295167L229.280505,435.718254L228.629579,435.847388L226.823095,435.476649L225.431479,436.136097L223.849426,437.919709L221.909501,442.898344L221.360829,446.211036L221.429485,448.679344L221.672509,450.000715L221.810812,451.135985L221.759234,453.101786L221.320961,454.453850L220.613049,455.667015L217.373538,458.853267L213.870751,464.279783L210.583009,471.222533L210.759550,473.362385L210.765959,473.426443L213.238243,473.961784L215.869415,475.588872L218.406949,477.640200L220.962712,479.065078L223.694336,478.765603L224.055520,483.088950L225.644062,487.250046L227.980681,490.822137L230.538316,493.390357L233.378960,494.742097L238.979095,495.636427L241.091077,496.819913L244.583400,502.291077L251.842216,516.820230L254.784871,519.878924L260.843377,521.506268L263.710421,523.074673L266.454289,525.221157L269.761006,527.968449L279.918448,533.546813L281.247150,534.984362L283.767793,538.839541L284.739997,540.714579L285.506433,541.432798L286.552950,541.854910L287.459755,542.489917L287.854019,543.882230L287.577404,545.312008L286.891338,545.526634L286.157411,545.387076L285.705751,545.719040L284.697134,547.859378L283.839430,548.180577L283.560184,548.842650L284.271099,551.958394L284.930401,553.208361L287.548205,556.460122L288.817071,557.589909L293.964778,559.733704L315.401247,562.045539L330.441034,567.267296Z ", 8528 "data-id-kraj": "35", 8529 "data-name": "JihoÄeský kraj" 8530 }, null, 10, _hoisted_9$7), 8531 createBaseVNode("path", { 8532 fill: [unref(store).getCountValue("idKraje", 108) !== 0 ? "white" : "lightgray"], 8533 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("108") && unref(store).getCountValue("idKraje", "108") !== null, disabled: unref(store).getCountValue("idKraje", "108") !== null }), 8534 d: "M636.330296,323.344683L633.407989,322.553850L627.209510,318.836169L621.937181,317.106805L620.316378,316.025258L619.226450,314.554005L618.231182,312.886053L616.847428,311.266032L614.867415,309.700629L609.192981,306.184719L604.771102,304.128487L601.755239,303.322478L597.947385,303.264062L594.771709,303.677141L593.149868,303.360566L592.024921,302.603885L591.513558,301.609674L591.042826,300.453406L589.958522,299.416416L588.282086,298.558168L584.862120,297.935790L582.641679,297.221222L580.619213,296.271711L578.507265,294.917510L577.489293,294.533070L576.596688,294.546803L575.993540,295.132283L575.666797,295.732235L575.012998,297.595330L574.510085,298.509393L573.840300,299.048959L572.208704,299.696806L571.509228,300.113989L569.307690,302.772502L567.891869,303.722471L566.515547,303.779327L564.875896,303.371197L562.838258,302.554515L561.555778,302.708596L560.512186,303.275372L556.744066,302.377653L554.287432,297.712500L552.191625,295.034098L549.732445,293.173997L545.861400,291.408831L545.278778,290.856625L544.897957,290.077983L544.519380,287.782045L543.960123,286.751885L543.145823,285.889200L541.063378,284.657856L537.084287,283.816942L530.222778,278.717233L527.626068,278.069092L516.408943,279.253067L515.539400,278.814226L513.936633,277.111759L509.992047,270.988192L507.078530,267.697833L500.603765,263.606098L500.532900,265.496491L500.632309,267.905471L500.454237,269.062353L499.917803,269.694821L498.398894,270.283965L497.927046,270.623532L496.858480,271.812735L496.347854,272.602680L495.908838,273.411108L495.671400,273.958876L495.393678,274.886786L495.178218,275.848479L494.694683,279.521113L494.365633,280.485282L493.833296,281.348407L493.004253,282.140126L491.759986,282.780062L489.780894,283.184544L487.349120,282.892564L486.543824,282.686170L485.986613,282.710552L485.105944,283.236523L479.941596,288.040956L474.848913,290.169138L468.870174,293.887033L468.347308,294.037918L467.659378,294.046332L466.854788,293.896235L465.558481,293.152832L465.002082,292.739124L464.655950,292.627746L464.198056,292.611427L463.198445,292.949519L463.015337,293.048450L462.409573,293.622558L461.797751,294.395151L461.332661,295.207627L461.029574,296.180267L460.863255,297.177942L460.653202,298.096071L460.303582,299.019335L459.099781,300.812490L455.804233,304.761326L455.115915,306.032188L454.710622,307.687097L454.982056,308.674135L455.684608,309.595488L462.449326,314.476889L463.302718,315.412492L464.083809,316.643255L464.875986,318.617142L465.313908,321.107621L464.999086,323.878775L453.495670,329.704047L449.279140,330.442741L446.807018,329.469269L442.502224,329.438444L439.026867,330.524615L437.003135,330.817152L435.370867,330.761327L429.496271,328.265041L428.271169,328.196642L427.583962,328.383307L427.176716,328.778979L426.930968,329.302680L426.872027,329.906312L426.974936,330.449637L427.314816,331.777765L427.187898,332.407581L426.782052,332.903663L423.956381,334.464501L423.549699,334.920293L423.080879,335.788868L422.861358,336.560681L422.463790,337.624010L421.838984,338.748551L420.129285,340.333977L418.941143,340.861633L421.086585,343.091879L421.714678,344.101884L422.102552,345.173286L422.109097,346.250504L421.596363,347.275368L420.587700,348.074178L415.363932,349.678785L414.518014,350.273746L414.156039,351.183046L416.484039,359.139582L416.936777,362.857002L416.877530,367.061611L413.917170,379.520152L413.907604,381.132457L414.310350,382.527850L414.977051,383.618047L417.475091,385.979547L417.902657,386.573386L418.192499,387.367638L418.306887,388.468344L418.029283,393.185928L418.203031,394.313375L418.645592,395.456912L419.442451,396.632810L425.115588,401.784889L427.969676,403.465613L429.338956,403.632363L430.662400,403.176898L433.186537,400.760744L434.479641,400.282704L435.765730,400.387232L438.189782,401.743432L441.579614,404.956199L445.914986,407.744811L449.940226,412.927997L456.005375,416.736838L456.654399,416.697381L457.282647,416.236366L459.820582,412.206626L460.561587,411.655427L461.386415,411.383880L462.315356,411.421723L470.237729,415.386262L470.868946,415.788323L472.577253,416.226951L479.860109,416.932518L481.153038,417.413445L482.010451,418.583776L482.650214,420.501913L483.027989,424.213560L483.440429,426.236798L483.958008,427.773141L484.720270,428.739314L491.959945,435.355096L492.522012,435.662015L493.221668,435.790144L495.715886,435.286673L496.388824,435.241893L503.472015,436.378742L505.601263,436.177592L511.351099,433.717853L511.975367,433.562744L512.485392,433.586066L513.049280,433.949688L520.318524,440.808090L521.298561,442.047953L521.597414,442.857055L521.585729,443.472685L521.207309,444.024282L520.590713,444.523802L519.834103,444.948769L518.820605,445.226586L515.520442,445.518049L514.737859,445.684580L514.352199,446.082896L514.024671,447.004762L513.883380,448.012689L513.759934,449.653114L513.459893,450.775241L512.751273,452.316236L508.007714,458.201869L507.392683,459.125031L507.132685,460.017501L506.850981,461.854784L506.993776,462.785830L507.207650,463.358626L507.489892,463.452678L507.960932,463.441967L508.479603,463.643629L508.956707,464.192807L509.640735,465.726769L510.223951,466.733075L511.167814,467.356833L512.217761,467.568679L514.594627,467.701814L516.356483,468.039794L517.085560,468.482253L517.776306,469.116452L518.548625,470.273596L518.705991,471.078592L519.103460,470.026861L519.774122,469.378001L520.655212,469.125929L521.680958,469.274686L522.788674,469.818209L523.909146,470.753128L526.848860,475.174980L527.737993,475.650534L528.584300,475.446421L529.353383,474.782006L530.522868,472.957301L530.973298,471.954042L531.980552,470.663147L533.521967,469.37889
85340L534.461650,468.973555L535.478476,468.887690L536.535995,469.242761L541.137468,473.051205L542.018585,473.322396L542.945014,473.170377L553.535980,463.012529L557.700154,460.970904L562.907227,461.330355L563.864967,460.801427L564.575555,459.797010L565.247709,456.568070L565.800472,455.469999L566.513469,454.809506L567.295175,454.491167L568.707839,454.476511L569.335155,454.647187L573.066270,449.725622L574.157639,449.083919L575.150487,449.148301L575.953394,450.170129L576.650762,451.526542L577.399078,452.471982L578.200229,453.074207L580.008331,453.526410L584.491704,453.206042L585.408671,452.802019L588.014706,450.714599L588.677394,450.518879L599.056942,451.905721L600.593234,451.310420L601.808829,450.252618L604.760733,445.530111L605.355120,444.956183L615.775506,441.223576L618.909819,437.106595L619.875370,434.831364L620.082645,433.721617L620.054670,432.659802L619.752830,431.669801L618.455496,428.772895L618.221931,427.752986L618.200502,426.685931L618.449995,425.562265L619.038766,424.364649L621.047084,421.768553L621.672344,420.496712L621.948367,419.296695L621.905782,418.197668L621.578475,417.228658L621.000296,416.418674L620.201781,415.796822L618.311257,414.909293L617.667427,414.088740L617.264454,412.998990L617.071696,411.708904L617.194930,408.825680L617.795819,406.007198L618.298747,404.927955L618.997151,404.214093L622.101226,402.850313L622.543703,402.343184L622.688364,401.557008L622.565204,400.704356L622.296595,400.014818L621.182005,398.122221L620.895250,397.274971L620.744706,396.182017L620.786552,394.758593L621.065908,393.184095L621.567748,391.702706L623.048283,389.108373L624.863454,387.145810L637.578174,378.752877L638.131542,377.618083L638.244375,376.237250L638.007123,374.667562L634.906456,365.980662L634.553181,364.347077L633.864666,353.940948L632.899435,350.913770L632.921881,349.847654L633.303524,349.073220L633.964279,348.540422L638.377104,347.588530L638.942392,346.852709L639.329536,345.781357L639.532684,344.487769L639.549019,343.077587L639.376010,341.663973L639.007870,340.360195L638.448307,339.271637L634.230614,335.347480L633.815609,334.366792L633.800773,333.171289L635.486845,328.552552L636.088952,325.885836L636.330296,323.344683Z ", 8535 "data-id-kraj": "108", 8536 "data-name": "Kraj VysoÄina" 8537 }, null, 10, _hoisted_10$7), 8538 createBaseVNode("path", { 8539 fill: [unref(store).getCountValue("idKraje", 19) !== 0 ? "white" : "lightgray"], 8540 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("19") && unref(store).getCountValue("idKraje", "19") !== null, disabled: unref(store).getCountValue("idKraje", "19") !== null }), 8541 d: "M374.788446,210.633622L373.794006,209.233393L373.244823,208.777400L372.694028,208.464532L369.249240,207.587674L368.152361,207.066929L367.508225,206.116957L366.990877,204.658376L366.347941,203.801238L364.516416,202.509283L362.155931,200.077253L361.391245,199.529913L360.457782,199.149916L358.865771,198.856601L351.648899,199.762889L332.427035,205.541756L331.818649,205.983079L331.481868,206.600707L331.374604,207.357302L331.516144,208.242688L331.750553,209.054584L331.823175,209.752133L331.621171,210.321083L331.036736,211.003247L330.222135,211.481100L329.383087,211.695402L328.654334,211.562354L325.002356,210.092905L324.138711,209.988063L323.253956,210.104259L316.329804,212.705200L313.565753,214.345443L313.229593,214.723947L313.070463,215.078872L313.027034,215.385454L312.999985,215.742166L313.237480,216.165226L313.694672,216.695042L316.407280,218.326927L317.252643,219.065271L317.641883,219.494879L317.873371,219.948008L317.808826,220.480726L317.628301,221.024171L317.224296,221.940554L317.024594,222.521767L316.889200,223.077491L316.892827,223.702713L317.057044,224.221537L317.515621,224.899337L321.161312,229.417230L321.558957,230.077664L322.229358,231.524829L323.020981,234.249292L323.342274,235.038211L323.665584,235.631248L324.033710,236.161211L328.028381,240.724808L328.421893,241.605996L328.585713,242.420955L328.506199,244.016005L328.420515,244.712148L328.337330,246.249467L328.485290,247.571763L328.691335,247.934445L328.951613,248.193797L329.334846,248.474888L329.820957,248.677406L331.441792,248.944684L337.587767,246.370477L348.132241,244.405916L354.682664,242.250426L355.565965,241.729942L357.710090,239.665654L360.062753,237.882655L361.495056,237.444197L362.478151,237.291290L362.865973,237.335121L363.164247,237.462705L363.599388,237.716968L365.677449,238.250761L368.230430,238.485378L373.567052,238.166814L376.837393,237.291622L377.683879,235.642240L377.858826,235.130483L377.897449,234.552477L377.846569,234.050827L377.567145,233.315729L377.239898,232.628879L376.933861,231.816222L376.814352,231.232475L376.994565,229.188868L376.895787,228.439152L376.730623,227.808209L376.031440,226.434957L375.868487,225.994824L375.886902,225.622967L376.062295,225.158944L376.509552,224.498494L380.544408,220.419268L381.753214,218.775353L382.081819,217.942791L382.144164,217.216325L381.924501,216.073821L381.276977,214.981546L380.427930,214.278305L377.340389,213.309401L376.332417,212.760834L375.828041,212.304462L375.298614,211.619831L374.788446,210.633622Z ", 8542 "data-id-kraj": "19", 8543 "data-name": "Hlavnà mÄsto Praha" 8544 }, null, 10, _hoisted_11$7), 8545 createBaseVNode("path", { 8546 fill: [unref(store).getCountValue("idKraje", 78) !== 0 ? "white" : "lightgray"], 8547 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("78") && unref(store).getCountValue("idKraje", "78") !== null, disabled: unref(store).getCountValue("idKraje", "78") !== null }), 8548 d: "M501.293560,56.274164L489.595223,52.458384L483.591152,53.097184L482.283677,54.802819L480.961992,57.264686L479.399919,58.987166L479.156056,58.915379L47
85487.340271,58.380652L476.374979,56.510559L476.449094,54.335252L476.804265,52.035941L476.713087,49.816823L474.893233,45.566199L472.663234,43.792812L470.029884,42.688728L467.105517,40.432088L465.520592,37.982788L463.746817,34.237493L462.326841,30.236933L461.831341,26.997892L462.761168,22.774068L463.963989,20.352241L464.069057,18.141024L461.689677,14.442872L457.815772,12.604083L449.619991,12.628171L448.205321,9.299175L447.472922,5.839469L445.778278,5.019668L443.944383,6.363891L442.704704,9.374700L442.705125,9.398319L442.270783,11.733199L440.655914,12.092459L438.616194,11.123999L436.892284,9.476386L435.634596,7.241707L428.325469,5.757708L425.550247,3.280920L425.179589,5.171027L424.527846,6.232846L422.471541,7.789513L421.656865,7.979600L420.845512,8.382199L420.126623,8.995915L419.484749,9.785569L419.469883,9.785801L420.119971,12.362602L422.484006,14.179943L424.721785,17.345450L424.992438,23.979827L424.564468,25.144343L423.175755,26.773043L422.786126,27.558867L422.672377,28.836437L422.775629,29.708936L422.949799,30.355868L423.254946,38.289128L422.988179,40.266078L406.496351,39.298288L401.299029,40.836176L398.226202,40.771931L396.026919,46.932004L394.689441,49.595669L393.307971,51.232077L390.988011,51.900001L387.852249,51.821725L382.479605,50.683039L376.909296,46.543745L374.837628,45.421713L369.810353,44.060192L369.090821,42.355297L369.011790,42.963822L368.626711,44.301402L368.253886,45.018579L367.730993,45.646947L367.031688,46.096360L362.681306,46.520864L362.092867,46.981374L361.653560,47.764280L361.386343,48.944702L361.152355,52.482739L360.696756,54.202419L359.981485,55.683597L359.062834,56.845309L357.987634,57.604177L356.802869,57.884370L355.565047,57.602445L347.952502,49.842730L346.942763,49.387049L346.139062,49.632598L345.599857,50.752183L344.055323,60.194526L342.240428,61.922290L341.615658,62.808843L341.112625,63.832472L340.826528,64.977353L340.922516,67.392236L340.733423,68.365568L340.342740,69.177312L337.102526,72.251537L336.501700,73.079841L333.904993,79.990021L331.878287,81.290691L331.215352,82.018701L330.718960,82.906182L330.503702,83.952333L330.684238,85.156348L339.037033,110.806531L349.460255,119.289058L350.631434,124.521763L352.205362,124.047931L358.682192,123.830987L361.443449,124.253183L363.671656,124.077461L364.689074,124.220195L365.344190,124.544890L365.643915,125.101763L365.922430,125.766828L366.040043,126.320566L366.136347,126.974971L366.211160,127.712468L366.400109,128.360880L366.744442,128.889634L367.153413,129.179138L368.417640,129.336501L370.946506,
8548129.090791L383.947862,125.533686L389.789356,121.516299L395.079949,118.914256L396.350523,117.918100L398.038967,116.195461L399.133052,115.412280L401.531290,114.068707L402.732180,112.964752L403.751333,111.662295L405.239793,108.582678L405.810922,107.683106L406.721031,106.625491L409.675675,104.041581L410.499006,102.984895L412.148218,100.213325L412.677106,99.545035L413.370168,99.203260L414.202705,99.238565L415.626663,99.807352L416.819226,99.824466L418.455435,99.043580L419.509337,98.756136L420.525159,98.893598L421.936193,100.041878L423.137197,100.590568L426.604342,100.286697L427.350451,100.488129L428.123875,100.995455L430.941838,104.244281L431.835775,105.068308L432.920283,105.452103L433.899665,105.649199L437.639062,104.581295L439.036441,111.265316L440.616995,114.063331L445.863750,118.624644L446.193428,118.307333L446.623183,118.051005L447.242495,117.859063L448.069006,117.824079L450.404983,118.602903L458.566937,125.239331L459.563842,125.730169L460.473210,125.818241L461.312657,125.427880L467.462081,118.194870L468.867877,117.579158L470.428686,117.532782L476.815696,119.974215L479.647285,122.165606L484.215545,127.802944L486.428859,129.629092L487.497072,130.083200L488.512707,130.174154L489.455661,129.864732L490.305831,129.117716L490.908585,127.883783L491.205257,126.257201L491.539736,118.963363L491.969327,117.733175L492.765674,117.059966L496.481229,115.690815L497.338252,115.601124L498.177934,115.732793L499.011274,116.145857L502.128378,119.334662L503.805171,120.418620L514.984562,122.127555L516.033308,121.888562L516.840792,121.193177L517.365503,119.914364L517.564292,118.377254L517.472219,116.965325L517.133162,115.639822L511.878671,104.295550L511.672718,103.423862L511.606402,102.521191L512.509113,97.621498L512.564818,96.228594L512.467827,94.849417L512.187071,93.514853L511.716971,92.255166L511.029647,91.101144L509.188346,88.844284L508.494324,87.120090L508.022056,85.069090L507.709812,80.628064L507.848631,78.562574L508.176222,76.811603L508.677395,75.541272L508.904219,74.244797L508.527458,72.450275L503.492697,62.802995L501.293560,56.274164Z ", 8549 "data-id-kraj": "78", 8550 "data-name": "Liberecký kraj" 8551 }, null, 10, _hoisted_12$6), 8552 createBaseVNode("path", { 8553 fill: [unref(store).getCountValue("idKraje", 132) !== 0 ? "white" : "lightgray"], 8554 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("132") && unref(store).getCountValue("idKraje", "132") !== null, disabled: unref(store).getCountValue("idKraje", "132") !== null }), 8555 d: "M871.329525,210.360943L868.859018,209.887609L869.801207,215.017115L870.592391,215.303633L871.738156,214.871825L872.997431,214.835759L874.117143,216.357652L874.503874,218.619420L873.818194,219.664302L869.124712,221.362276L863.253572,221.869851L860.624382,222.714737L856.517012,226.823619L851.267766,228.745397L845.867537,227.904253L835.853374,218.931897L834.080128,216.731438L832.784304,214.067625L831.817194,211.291593L830.684385,208.820047L828.961863,206.959295L827.511812,205.651773L826.988976,204.366215L827.392402,203.090954L828.692755,201.851080L828.744574,201.682717L828.765509,201.504157L828.724060,201.293407L828.651731,201.072460L826.571214,200.744594L822.488930,198.971577L820.540880,198.552854L819.001855,198.999736L817.798683,199.783849L816.330159,200.132043L813.992466,199.211831L806.424889,190.550359L806.038238,188.902184L806.994345,186.546881L808.554454,185.651039L815.595831,185.016659L819.413741,183.280438L825.440263,179.214397L828.263777,176.486175L829.454357,172.956719L826.952859,168.854111L825.333504,167.401771L824.880670,165.118792L825.057268,163.015545L826.414850,158.661267L826.708384,157.924081L826.777715,157.234253L826.669962,156.624786L826.280930,156.124853L823.408016,152.632875L822.554409,151.908862L820.036274,151.118318L819.119496,151.781449L818.824164,153.358418L818.107788,155.264923L814.093995,161.494787L811.697134,163.676902L808.364925,164.735306L795.205636,163.083066L788.286392,164.065646L784.258825,169.491499L783.529268,170.035783L782.767885,170.238574L781.974749,170.099867L781.211424,169.640316L779.647886,165.458552L776.341440,163.028531L779.294647,176.403118L779.201627,177.473742L778.847965,178.677683L778.279116,179.892017L777.527738,180.994439L776.639395,181.862022L775.646876,182.372468L774.592675,182.403023L772.505334,181.218224L771.610459,181.145330L770.816733,181.507545L770.100154,182.207972L766.971723,187.322101L755.428565,194.504074L753.596711,196.848688L752.943189,198.269016L752.543093,199.878791L752.390024,203.370298L752.089378,204.623510L750.713117,207.115054L750.415488,207.945708L750.362717,208.983896L752.334364,215.646430L752.435570,216.732888L752.301968,217.767248L751.866866,218.775176L743.688167,231.454387L743.172124,232.636474L742.846668,233.890430L742.742442,235.177193L742.870415,236.451033L743.241897,237.673728L743.887563,238.806171L748.181565,242.654916L748.553021,243.286689L748.648720,243.973692L748.421864,244.755757L744.448233,250.483232L744.062523,251.634316L743.838902,252.936489L743.517331,261.276891L743.691739,262.282175L744.089592,263.136668L744.778532,263.829772L746.732739,264.614231L753.138130,265.168492L753.798370,265.570751L754.169179,266.167219L754.682362,268.466686L755.032887,269.184732L755.662814,269.769292L768.566964,275.608933L769.604828,275.592799L773.642788,273.121520L774.671061,272.906724L775.725917,273.253758L787.652243,284.986922L789.877004,285.974679L797.375394,286.017969L800.672654,283.178548L801.448449,282.772696L802.306706,282.785112L807.881926,286.158570L811.670029,286.263274L816.927963,284.214097L821.288272,286.036386L824.863797,288.808306L825.575609,289.809884L825.867128,290.793104L825.419882,298.368621L825.633595,299.858881L826.135590,301.070059L826.998387,301.892712L828.030696,302.153166L828.987372,301.896897L831.596949,300.009543L832.432329,299.678859L833.279777,299.827834L834.156550,300.659277L839.177323,309.929978L840.213056,310.910997L844.987980,312.840975L849.123742,316.066221L850.822338,318.008986L851.437402,319.197995L852.233746,321.690069L852.666050,324.564100L856.943639,325.417250L858.914513,326.798203L861.273750,329.244053L867.807241,328.990049L868.418890,329.308107L868.970728,329.901141L869.437519,330.843521L870.209243,333.632792L870.855010,334.736170L871.721709,335.522764L872.790628,336.008666L874.052367,336.201888L897.026429,332.585998L898.449443,333.076483L903.097773,335.993875L904.122297,336.305858L915.367181,335.455718L917.971393,336.277942L918.763072,337.058055L922.248355,343.505323L923.313171,344.573083L925.958966,346.037779L926.942197,347.044775L927.665307,348.291527L928.196769,349.721060L929.772507,356.174744L930.390935,357.518365L931.167068,358.437099L932.027147,359.010927L932.896933,359.312329L934.538815,359.250648L934.463964,356.477546L938.850650,357.188903L942.044780,354.788739L947.881351,346.634484L952.590818,343.697477L953.738200,342.369921L954.362829,340.317792L954.463098,336.049676L955.110552,334.126228L958.035004,331.998270L964.647998,332.532678L968.729159,330.019218L969.740961,329.740412L970.780104,329.885955L975.791144,332.021457L980.163684,333.060255L984.297054,332.550276L990.002689,326.534240L992.701469,325.287798L998.748578,324.714626L999.120132,320.864521L998.375454,316.178126L995.599555,306.596125L994.804785,304.577417L992.797965,300.710067L991.964775,298.563544L990.449585,290.778800L989.720992,289.039614L987.400314,287.537244L985.124568,288.091805L982.888286,289.247147L980.749769,289.566665L978.815810,288.569770L975.694370,285.330052L973.670635,283.876482L971.525852,283.377715L966.957994,283.273219L964.903008,282.021458L963.863406,280.372113L961.959125,273.829728L958.028826,266.884924L955.030374,260.116122L954.579586,254.000578L958.321372,249.036132L954.281895,247.176701L953.465815,244.423165L953.607057,240.897917L952.432530,236.817675L950.178334,235.635841L944.630190,239.717685L941.215102,239.945164L929.926139,234.577855L924.126793,232.899863L918.253855,233.993117L918.572503,233.973700L918.838325,234.087695L919.051326,234.335107L919.241860,234.714085L915.346371,238.561047L913.246659,239.114231L910.188631,236.895948L909.276677,235.400306L908.048716,231.923353L907.352150,230.710557L905.530499,229.517704L902.044820,229.003584L900.269830,228.327879L895.409806,224.603074L893.108793,223.495701L883.637423,222.260450L881.600280,220.153310L882.313048,215.887539L873.435198,210.763901L871.329525,210.360943Z ", 8556 "data-id-kraj": "132", 8557 "data-name": "Moravskoslezský kraj" 8558 }, null, 10, _hoisted_13$5), 8559 createBaseVNode("path", { 8560 fill: [unref(store).getCountValue("idKraje", 27) !== 0 ? "white" : "lightgray"], 8561 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("27") && unref(store).getCountValue("idKraje", "27") !== null, disabled: unref(store).getCountValue("idKraje", "27") !== null }), 8562 d: "M445.863750,118.624644L440.616995,114.063331L439.036441,111.265316L437.639062,104.581295L433.899665,105.649199L432.920283,105.452103L431.835775,105.068308L430.941838,104.244281L428.123875,100.995455L427.350451,100.488129L426.604342,100.286697L423.137197,100.590568L421.936193,100.041878L420.525159,98.893598L419.509337,98.756136L418.455435,99.043580L416.819226,99.824466L415.626663,99.807352L414.202705,99.238565L413.370168,99.203260L412.677106,99.545035L412.148218,100.213325L410.499006,102.984895L409.675675,104.041581L406.721031,106.
8562625491L405.810922,107.683106L405.239793,108.582678L403.751333,111.662295L402.732180,112.964752L401.531290,114.068707L399.133052,115.412280L398.038967,116.195461L396.350523,117.918100L395.079949,118.914256L389.789356,121.516299L383.947862,125.533686L370.946506,129.090791L368.417640,129.336501L367.153413,129.179138L366.744442,128.889634L366.400109,128.360880L366.211160,127.712468L366.136347,126.974971L366.040043,126.320566L365.922430,125.766828L365.643915,125.101763L365.344190,124.544890L364.689074,124.220195L363.671656,124.077461L361.443449,124.253183L358.682192,123.830987L352.205362,124.047931L350.631434,124.521763L349.647330,125.228674L349.114617,126.047011L348.694301,126.937151L348.496721,127.724870L348.349320,128.770787L348.361613,130.169364L348.195746,132.031550L347.715705,133.808592L347.493676,134.383060L347.273796,134.839482L346.355565,135.532953L345.177705,136.173309L340.965817,139.758944L339.708094,140.512341L338.853566,140.885748L338.085148,140.821485L337.315687,140.621578L335.382985,139.755021L334.207315,139.550434L333.670009,140.003919L333.539175,140.913898L333.750783,141.833890L334.441059,143.850151L334.674842,144.722250L334.748789,145.618147L334.602924,147.083198L334.586368,147.864266L334.771198,148.601133L335.324575,150.221621L335.535322,150.985901L335.541773,151.837106L335.411460,152.393041L334.717927,153.450413L334.472042,153.982094L334.165243,154.941105L333.673976,156.092317L332.533213,157.835861L331.387360,158.476961L330.257825,158.726098L327.692837,158.568222L323.580230,158.937154L322.451047,159.275869L321.234959,160.079555L318.100045,162.737835L317.041934,163.263886L316.295952,163.446525L311.528506,161.690314L300.038420,163.717009L297.096848,163.362660L293.668104,162.130482L290.094528,161.440090L284.001357,161.659889L282.239375,162.079036L281.109111,162.614316L280.502436,163.595138L280.165026,164.587819L280.007796,165.851237L279.981306,166.820546L280.174109,168.273938L280.131087,169.039898L279.838041,169.891843L278.971829,171.239812L277.843498,171.704436L276.621284,171.825136L274.650942,171.698602L273.269062,172.256149L264.620703,177.712351L263.738811,178.717620L262.824861,179.971432L261.987471,180.840926L260.356970,182.135248L259.338966,182.301576L258.227533,181.887813L257.276654,181.180096L256.097955,180.670722L254.852015,180.778930L240.916461,188.046149L238.344794,188.728384L237.618521,188.727353L237.008240,188.525570L236.102736,188.074698L235.193737,187.837178L233.583897,187.811760L232.336329,188.221212L231.271355,188.869439L230.772354,189.295278L229.400118,190.731128L223.130723,194.808378L214.555460,198.341700L212.843883,199.317250L212.023339,200.235694L210.058266,203.339168L208.638159,206.718245L207.220793,208.482578L205.512643,209.632768L201.737315,213.394568L200.281079,214.133331L198.003824,214.747227L196.149807,215.694334L194.617493,217.870755L196.343288,222.452479L196.405816,223.444654L196.331711,224.672150L195.893772,225.792269L195.297301,226.991881L194.672542,228.630734L194.689855,229.612632L195.231228,230.323636L195.958664,230.633833L196.777496,230.746087L197.513211,230.712216L199.108820,230.321023L202.097323,228.668184L202.849924,228.435664L203.691613,228.464643L205.623501,229.229086L208.040312,229.804377L210.586995,231.055098L217.694152,237.978336L218.989292,238.798563L221.616212,239.137976L223.666812,238.947897L225.650232,238.486079L226.835248,238.388588L228.290934,238.500005L231.055973,239.284416L232.646225,240.025780L233.923285,240.879351L237.766155,245.136591L238.766374,245.999238L239.596025,246.462335L244.495646,247.966473L245.428983,248.569825L246.042354,249.408915L246.180720,250.300397L246.500011,251.335118L254.215193,255.281985L255.521674,256.667857L256.139565,257.759985L255.910138,258.563545L255.819798,259.555391L255.865296,260.524608L256.117891,261.682096L257.556109,266.570464L257.718370,267.682751L257.647393,268.290428L257.488929,268.697261L257.123210,268.933420L256.508219,269.222370L255.708655,269.466128L254.284220,269.606946L253.850411,269.719965L253.529906,270.056439L253.209374,270.817254L253.164023,271.804055L253.254660,273.777658L253.209300,274.804633L253.073236,275.690992L252.914487,276.316210L251.060559,280.981296L251.060423,281.619074L251.151005,282.422593L251.494334,283.781075L251.653016,284.755345L251.562050,285.905339L250.098296,290.962015L249.844913,292.119475L249.799053,293.475363L250.003269,294.068008L250.369819,294.397047L251.813627,294.977377L252.864935,295.590147L253.231613,296.371058L253.254320,297.066586L252.773930,298.070939L249.107841,302.185522L247.96437
85627,303.249646L246.830732,303.816495L242.500795,304.892747L240.642165,305.669132L238.968061,306.724160L237.217986,308.416596L236.413867,309.497591L236.022275,310.576675L236.615493,311.521703L238.861636,313.556236L239.052341,314.377557L238.814170,315.045148L237.620146,315.741535L236.724993,316.496001L236.747290,316.802366L238.657483,317.975178L239.024144,318.570751L239.114469,319.133313L238.853521,319.735591L237.980897,320.490188L237.589772,321.079698L237.448742,321.893030L237.791057,323.653670L238.388543,324.480591L239.129691,324.991291L239.793167,325.215601L240.528087,325.583078L241.516504,326.287243L242.823164,327.830273L243.394936,328.963226L243.670478,330.239013L243.528726,335.895949L243.731862,338.246330L244.098818,339.617596L244.602971,340.667565L246.028932,342.418704L247.038269,343.966043L247.366585,345.560644L247.365860,346.893926L246.927713,349.115814L246.284068,351.111572L245.999907,351.749151L245.813458,352.544974L245.834872,354.629023L254.450297,349.564608L255.301368,349.459038L255.999230,349.637170L257.724711,350.839347L258.553197,351.117701L261.661330,351.228809L262.649709,351.451497L263.478389,351.757101L264.317201,352.371473L267.009996,353.920217L268.253073,354.066761L269.795833,353.888821L272.448853,352.501073L273.253411,351.887002L274.377557,351.304912L281.537154,349.046786L282.018767,348.666404L282.386079,348.228551L283.184374,345.592495L283.893981,344.031290L284.856449,343.225103L286.509364,342.323880L287.567881,342.132340L288.702314,342.256829L290.197512,343.067995L292.021017,344.503034L292.895559,344.788697L295.653902,344.996944L297.573178,345.662363L301.508309,345.794077L310.157163,344.613077L313.093953,343.392352L315.754555,340.685927L316.374468,340.255550L317.083434,340.022988L318.853846,339.676170L321.229012,339.679412L323.000965,340.127890L323.785562,340.542246L324.271010,341.046355L324.831265,342.536763L325.134927,343.132402L325.459778,343.471778L325.874760,343.634786L326.448993,343.726420L327.164545,343.992849L327.695021,344.360915L328.322523,345.094900L328.622740,345.625183L329.343741,346.664809L329.675187,346.981418L330.045532,347.262594L330.483997,347.490553L331.153997,347.721890L332.282780,347.814329L333.797555,347.625135L340.721034,343.657978L341.937791,343.377106L343.778478,343.279336L345.760805,343.757605L348.239665,345.107606L351.026533,345.449938L367.500345,344.624148L369.320929,345.094849L369.191158,345.781727L369.152153,346.419942L369.226645,346.999214L369.483629,347.255156L373.017221,347.784969L374.599414,347.554289L376.204772,347.064484L379.723173,344.792471L381.864786,342.522860L382.872772,342.039004L387.663530,340.949735L389.722113,339.274709L390.646145,337.846988L390.940113,331.854293L391.022500,331.145128L391.154420,330.493098L392.048953,328.603562L392.655788,327.674328L393.107837,327.126204L394.903709,325.533837L395.613104,325.276105L396.187405,325.396750L397.008760,326.249918L398.085219,327.687293L398.573372,328.178087L399.360373,328.617196L403.762646,329.904042L404.585878,330.588384L405.102237,331.445140L405.201762,332.056499L405.290310,333.531852L406.055505,333.995905L407.552078,334.115726L410.393990,333.555840L412.193971,334.167928L413.189800,334.791398L413.555465,335.529415L414.035591,336.971403L414.509615,337.984045L415.142109,338.908966L415.913405,339.736384L416.613112,340.341310L417.284019,340.755768L417.978776,341.016646L418.941143,340.861633L420.129285,340.333977L421.838984,338.748551L422.463790,337.624010L422.861358,336.560681L423.080879,335.788868L423.549699,334.920293L423.956381,334.464501L426.782052,332.903663L427.187898,332.407581L427.314816,331.777765L426.974936,330.449637L426.872027,329.906312L426.930968,329.302680L427.176716,328.778979L427.583962,328.383307L428.271169,328.196642L429.496271,328.265041L435.370867,330.761327L437.003135,330.817152L439.026867,330.524615L442.502224,329.438444L446.807018,329.469269L449.279140,330.442741L453.495670,329.704047L464.999086,323.878775L465.313908,321.107621L464.875986,318.617142L464.083809,316.643255L463.302718,315.412492L462.449326,314.476889L455.684608,309.595488L454.982056,308.674135L454.710622,307.687097L455.115915,306.032188L455.804233,304.761326L459.099781,300.812490L460.303582,299.019335L460.653202,298.096071L460.863255,297.177942L461.029574,296.180267L461.332661,295.207627L461.797751,294.395151L462.409573,293.622558L463.015337,293.048450L463.198445,292.949519L464.198056,292.611427L464.655950,292.627746L465.002082,292.739124L465.558481,293.152832L466.854788,293.896235L467.659378,294.046332L468.347308,294.037918L468.870174,293.887033L474.848913,290.169138L479.941596,288.040956L485.105944,283.236523L485.986613,282.710552L486.543824,282.686170L487.349120,282.892564L489.780894,283.184544L491.759986,282.780062L493.004253,282.140126L493.833296,281.348407L494.365633,280.485282L494.694683,279.521113L495.178218,275.848479L495.393678,274.886786L495.671400,273.958876L495.908838,273.411108L496.347854,272.602680L496.858480,271.812735L497.927046,270.623532L498.398894,270.283965L499.917803,269.694821L500.454237,269.062353L500.
8562632309,267.905471L500.532900,265.496491L500.603765,263.606098L500.769699,261.771325L501.308577,259.400650L501.990551,257.217582L502.303140,255.876759L502.439656,254.620309L502.429853,250.049214L502.497963,249.060559L502.663758,248.388664L503.032823,247.558911L503.326616,246.406854L503.097463,245.284327L501.684293,243.673859L500.592089,242.811986L499.556488,242.305395L497.606589,241.794065L496.402660,240.969447L490.930700,235.915780L489.889881,235.265250L484.862991,233.742931L481.376838,231.583474L480.286483,230.518674L478.547033,227.849717L479.236825,226.722824L481.924437,225.345745L484.894125,224.527118L486.201083,224.557066L486.425093,222.201389L486.475672,221.396584L486.413707,220.606742L485.810875,218.032626L485.618856,216.883878L485.593320,215.681349L485.744614,214.914586L486.071741,214.234485L488.430611,211.837963L488.848281,211.185957L488.737786,210.243963L488.137183,208.827795L486.147436,205.992168L484.701585,204.317588L483.558243,203.229177L481.184921,201.649079L480.765287,201.127906L480.389978,200.414910L480.410409,199.231513L480.621345,198.543949L482.952457,196.013504L483.547457,195.091713L483.718023,194.638518L483.887088,194.115026L483.968324,193.545673L483.645610,192.276602L481.262758,185.829248L480.579100,183.409807L480.199501,181.539049L480.112560,178.446546L479.488710,174.548968L479.031826,173.264997L478.346508,171.950588L477.123876,170.875795L476.133567,170.476745L475.070150,170.423189L469.108904,171.322007L465.099059,170.444132L463.762446,170.364662L461.079172,171.019154L460.054100,171.121618L458.990250,171.041379L458.143530,170.730904L457.337914,169.872082L456.814721,168.666344L456.358369,166.052891L455.782813,164.260399L454.501279,162.259996L453.581110,161.400529L452.662951,160.817213L445.386242,157.829413L444.996704,157.552519L444.667670,156.706956L444.435979,155.199157L444.581663,151.831247L445.023146,149.985057L445.387816,148.873554L446.621775,147.128724L447.822686,144.814237L448.295580,143.517341L448.488982,141.637787L448.333444,139.400363L446.837480,130.195112L446.525789,129.213688L446.033940,128.165151L445.011268,126.377619L444.603714,125.021130L444.661134,123.211866L445.135130,122.015533L445.248009,121.895487L445.707754,121.161489L446.143602,120.345019L446.173100,119.493106L445.863750,118.624644Z M374.788446,210.633622L375.298614,211.619831L375.828041,212.304462L376.332417,212.760834L377.340389,213.309401L380.427930,214.278305L381.276977,214.981546L381.924501,216.073821L382.144164,217.216325L382.081819,217.942791L381.753214,218.775353L380.544408,220.419268L376.509552,224.498494L376.062295,225.158944L375.886902,225.622967L375.868487,225.994824L376.031440,226.434957L376.730623,227.808209L376.895787,228.439152L376.994565,229.188868L376.814352,231.232475L376.933861,231.816222L377.239898,232.628879L377.567145,233.315729L377.846569,234.050827L377.897449,234.552477L377.858826,235.130483L377.683879,235.642240L376.837393,237.291622L373.567052,238.166814L368.230430,238.485378L365.677449,238.250761L363.599388,237.716968L363.164247,237.462705L362.865973,237.335121L362.478151,237.291290L361.495056,237.444197L360.062753,237.882655L357.710090,239.665654L355.565965,241.729942L354.682664,242.250426L348.132241,244.405916L337.587767,246.370477L331.441792,248.944684L329.820957,248.677406L329.334846,248.474888L328.951613,248.193797L328.691335,247.934445L328.485290,247.571763L328.337330,246.249467L328.420515,244.712148L328.506199,244.016005L328.585713,242.420955L328.421893,241.605996L328.028381,240.724808L324.033710,236.161211L323.665584,235.631248L323.342274,235.038211L323.020981,234.249292L322.229358,231.524829L321.558957,230.077664L321.161312,229.417230L317.515621,224.899337L317.057044,224.221537L316.892827,223.702713L316.889200,223.077491L317.024594,222.521767L317.224296,221.940554L317.628301,221.024171L317.808826,220.480726L317.873371,219.948008L317.641883,219.494879L317.252643,219.065271L316.407280,218.326927L313.694672,216.695042L313.237480,216.165226L312.999985,215.742166L313.027034,215.385454L313.070463,215.078872L313.229593,214.723947L313.565753,214.345443L316.329804,212.705200L323.253956,210.104259L324.138711,209.988063L325.002356,210.092905L328.654334,211.562354L329.383087,211.695402L330.222135,211.481100L331.036736,211.003247L331.62
85621171,210.321083L331.823175,209.752133L331.750553,209.054584L331.516144,208.242688L331.374604,207.357302L331.481868,206.600707L331.818649,205.983079L332.427035,205.541756L351.648899,199.762889L358.865771,198.856601L360.457782,199.149916L361.391245,199.529913L362.155931,200.077253L364.516416,202.509283L366.347941,203.801238L366.990877,204.658376L367.508225,206.116957L368.152361,207.066929L369.249240,207.587674L372.694028,208.464532L373.244823,208.777400L373.794006,209.233393L374.788446,210.633622Z ", 8563 "data-id-kraj": "27", 8564 "data-name": "StÅedoÄeský kraj" 8565 }, null, 10, _hoisted_14$5), 8566 createBaseVNode("path", { 8567 fill: [unref(store).getCountValue("idKraje", 86) !== 0 ? "white" : "lightgray"], 8568 class: normalizeClass({ active: unref(valuesStore).idKraje.includes("86") && unref(store).getCountValue("idKraje", "86") !== null, disabled: unref(store).getCountValue("idKraje", "86") !== null }), 8569 d: "M660.290979,201.223834L657.593564,197.943765L656.111533,195.138229L654.161430,187.408917L652.416306,183.146969L647.822377,178.681394L645.843649,175.384454L643.626865,172.580384L639.673309,165.937434L637.472007,163.048958L634.150172,160.885065L627.570287,158.726908L624.859310,155.357263L624.414336,153.375106L624.463726,151.293259L624.285554,149.171938L623.188974,147.082060L621.788919,146.692541L615.149171,146.916688L613.466248,147.528326L612.457431,148.471894L611.396079,148.743445L609.479098,147.293963L608.743097,145.994511L606.668908,140.165132L601.917120,139.480336L600.416852,135.439567L601.443220,131.778379L604.366494,132.345570L604.073245,131.657822L603.284397,129.142501L604.168581,129.031075L605.478678,128.137502L606.264868,127.792731L608.442583,125.842176L610.946736,124.234894L613.062777,122.285390L614.090770,119.296391L616.348456,118.476045L621.047845,119.616901L623.521831,118.976764L624.822148,117.005525L627.707174,113.939088L628.892165,112.148598L628.491473,112.292568L628.429635,110.947318L628.563471,109.181577L628.748218,108.016844L629.332157,106.672705L629.714887,106.021088L629.688487,105.265569L629.073414,103.561422L633.565812,101.524376L632.093087,97.214902L619.296728,84.526938L614.765738,82.151108L609.996007,81.093240L604.739884,81.160146L602.882349,81.622586L601.894149,83.947439L600.940702,86.897424L599.245733,89.185739L596.822743,89.830704L594.588130,88.861897L589.895317,85.488177L583.767857,85.052032L575.046589,94.049572L568.921781,95.365458L568.602008,94.689455L568.476013,93.972318L568.574414,93.236786L568.837241,92.484614L570.869345,90.723154L571.118554,87.997882L570.231884,84.868932L568.883459,81.812586L566.892856,78.278562L564.893046,76.446096L562.489807,76.172894L554.009330,79.651470L550.002472,79.881075L549.065630,79.576062L541.413134,67.294640L540.912403,65.913801L540.556776,64.363633L536.961655,64.116690L525.022473,67.344302L523.485763,66.898693L522.398532,65.886280L520.412349,62.993942L518.741718,61.936623L501.293560,56.274164L503.492697,62.802995L508.527458,72.450275L508.904219,74.244797L508.677395,75.541272L508.176222,76.811603L507.848631,78.562574L507.709812,80.628064L508.022056,85.069090L508.494324,87.120090L509.188346,88.844284L511.029647,91.101144L511.716971,92.255166L512.187071,93.514853L512.467827,94.849417L512.564818,96.228594L512.509113,97.621498L511.606402,102.521191L511.672718,103.423862L511.878671,104.295550L517.133162,115.639822L517.472219,116.965325L517.564292,118.377254L517.365503,119.914364L516.840792,121.193177L516.033308,121.888562L514.984562,122.127555L503.805171,120.418620L502.128378,119.334662L499.011274,116.145857L498.177934,115.732793L497.338252,115.601124L496.481229,115.690815L492.765674,117.059966L491.969327,117.733175L491.539736,118.963363L491.205257,126.257201L490.908585,127.883783L490.305831,129.117716L489.455661,129.864732L488.512707,130.174154L487.497072,130.083200L486.428859,129.629092L484.215545,127.802944L479.647285,122.165606L476.815696,119.974215L470.428686,117.532782L468.867877,117.579158L467.462081,118.194870L461.312657,125.427880L460.473210,125.818241L459.563842,125.730169L458.566937,125.239331L450.404983,118.602903L448.069006,117.824079L447.242495,117.859063L446.623183,118.051005L446.193428,118.307333L445.863750,118.624644L446.173100,119.493106L446.143602,120.345019L445.707754,121.161489L445.248009,121.895487L445.135130,122.015533L444.661134,123.211866L444.603714,125.021130L445.011268,126.377619L446.033940,128.165151L446.525789,129.213688L446.837480,130.195112L448.333444,139.400363L448.488982,141.637787L448.295580,143.517341L447.822686,144.814237L446.621775,147.128724L445.387816,148.873554L445.023146,149.985057L444.581663,151.831247L444.435979,155.199157L444.667670,156.706956L444.996704,157.552519L445.386242,157.829413L452.662951,160.817213L453.581110,161.400529L454.501279,162.259996L455.7828
856913,164.260399L456.358369,166.052891L456.814721,168.666344L457.337914,169.872082L458.143530,170.730904L458.990250,171.041379L460.054100,171.121618L461.079172,171.019154L463.762446,170.364662L465.099059,170.444132L469.108904,171.322007L475.070150,170.423189L476.133567,170.476745L477.123876,170.875795L478.346508,171.950588L479.031826,173.264997L479.488710,174.548968L480.112560,178.446546L480.199501,181.539049L480.579100,183.409807L481.262758,185.829248L483.645610,192.276602L483.968324,193.545673L483.887088,194.115026L483.718023,194.638518L483.547457,195.091713L482.952457,196.013504L480.621345,198.543949L480.410409,199.231513L480.389978,200.414910L480.765287,201.127906L481.184921,201.649079L483.558243,203.229177L484.701585,204.317588L486.147436,205.992168L488.137183,208.827795L488.737786,210.243963L488.848281,211.185957L488.430611,211.837963L496.578087,214.710808L497.703515,214.597719L506.437546,205.988966L509.236556,204.501863L511.459321,204.273555L517.242918,206.968214L519.400192,206.943341L523.850824,205.494838L524.619876,205.729400L530.680772,209.661064L531.817309,209.885767L532.749618,209.555431L533.438101,208.638470L535.212682,202.383120L535.850789,200.914658L536.745254,199.781105L543.961105,197.450486L544.735021,197.748806L545.318187,198.494313L546.830680,204.351883L547.921742,206.716390L548.520748,207.546726L549.140590,208.072508L549.760682,208.249073L550.583377,207.819691L559.654106,198.373860L561.008036,197.647318L567.112079,197.364904L571.206084,198.466961L572.034170,199.045666L572.490421,199.896499L572.677444,201.116983L572.851765,205.754481L573.200435,207.211389L573.899450,208.416805L575.080554,209.246183L583.553382,210.680823L584.459362,211.331644L585.617752,213.602690L587.139457,215.719302L588.928005,217.264740L590.617507,218.091917L591.909178,218.353357L592.488055,218.820251L594.899910,221.691996L595.608090,222.157197L597.312953,222.508051L603.155883,227.246624L605.235772,225.571743L607.482160,224.574440L620.552031,222.908525L622.527683,221.781481L623.370069,220.928775L624.063303,219.867495L624.568461,218.591458L625.154114,215.702021L625.735269,214.679615L626.548125,213.930659L641.453839,206.167830L642.270875,205.040555L642.532488,203.611444L642.643782,200.499066L642.894649,199.135657L643.295639,198.010604L643.862297,197.198718L644.610475,196.782328L660.290979,201.223834Z ", 8570 "data-id-kraj": "86", 8571 "data-name": "Královéhradecký kraj" 8572 }, null, 10, _hoisted_15$5) 8573 ])) 8574 ]); 8575 }; 8576 } 8577}); 8578const _hoisted_1$E = { 8579 key: 0, 8580 class: "EstateFilterItem EstateFilterItem-inline" 8581}; 8582const _hoisted_2$z = { 8583 key: 0, 8584 for: "mesta", 8585 class: "label" 8586}; 8587const _hoisted_3$r = ["placeholder"]; 8588const _hoisted_4$m = ["label"]; 8589const _hoisted_5$i = ["value", "selected"]; 8590const _hoisted_6$e = ["label"]; 8591const _hoisted_7$b = ["value", "selected"]; 8592const _hoisted_8$8 = ["placeholder"]; 8593const _hoisted_9$6 = ["label"]; 8594const _hoisted_10$6 = ["value", "selected"]; 8595const _hoisted_11$6 = ["label"]; 8596const _hoisted_12$5 = ["value", "selected"]; 8597const _hoisted_13$4 = { 8598 key: 0, 8599 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center full-row", 8600 "data-filter-el": "select-locality" 8601}; 8602const _hoisted_14$4 = { 8603 for: "country", 8604 class: "label" 8605}; 8606const _hoisted_15$4 = ["label"]; 8607const _hoisted_16$4 = ["value", "selected"]; 8608const _hoisted_17$3 = { 8609 key: 1, 8610 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row" 8611}; 8612const _hoisted_18$3 = { class: "label" }; 8613const _hoisted_19$2 = { class: "EstateFilterItemSubtype-inner" }; 8614const _hoisted_20$2 = { class: "checkItem" }; 8615const _hoisted_21$2 = ["for"]; 8616const _hoisted_22$2 = ["id", "value"]; 8617const _hoisted_23$2 = { class: "checkItem-label" }; 8618const _hoisted_24$2 = { 8619 key: 0, 8620 class: "checkItem-value" 8621}; 8622const _hoisted_25$2 = { 8623 key: 1, 8624 class: "checkItem-value" 8625}; 8626const _hoisted_26$2 = { 8627 key: 2, 8628 class: "regionWrapper EstateFilterItem EstateFilterItem-inline EstateFilterItem-center full-row" 8629}; 8630const _hoisted_27$2 = { class: "label" }; 8631const _hoisted_28$2 = { class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row" }; 8632const _hoisted_29$2 = { class: "label" }; 8633const _hoisted_30$2 = { class: "EstateFilterItemSubtype-inner" }; 8634const _hoisted_31$1 = { 8635 key: 0, 8636 class: "checkItem" 8637}; 8638const _hoisted_32$1 = ["for"]; 8639const _hoisted_33$1 = ["id", "value", "onUpdate:modelValue"]; 8640const _hoisted_34$1 = { class: "checkItem-label" }; 8641const _hoisted_35$1 = { 8642 key: 0, 8643 class: "checkItem-value" 8644}; 8645const _hoisted_36$1 = { 8646 key: 1, 8647 class: "checkItem-value" 8648}; 8649const _hoisted_37$1 = { 8650 key: 0, 8651 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row", 8652 "data-filter-el": "mesto" 8653}; 8654const _hoisted_38 = { class: "label" }; 8655const _hoisted_39 = { class: "EstateFilterItemSubtype-inner" }; 8656const _hoisted_40 = { 8657 key: 0, 8658 class: "checkItem" 8659}; 8660const _hoisted_41 = ["for"];
8661const _hoisted_42 = ["id", "value", "onUpdate:modelValue"]; 8662const _hoisted_43 = { class: "checkItem-label" }; 8663const _hoisted_44 = { 8664 key: 0, 8665 class: "checkItem-value" 8666}; 8667const _hoisted_45 = { 8668 key: 1, 8669 class: "checkItem-value" 8670}; 8671const _hoisted_46 = { 8672 key: 0, 8673 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row smaller", 8674 "data-filter-el": "obec" 8675}; 8676const _hoisted_47 = { class: "label" }; 8677const _hoisted_48 = { class: "EstateFilterItemSubtype-inner" }; 8678const _hoisted_49 = { 8679 key: 0, 8680 class: "checkItem" 8681}; 8682const _hoisted_50 = ["for"]; 8683const _hoisted_51 = ["id", "value", "onUpdate:modelValue"]; 8684const _hoisted_52 = { class: "checkItem-label" }; 8685const _hoisted_53 = { 8686 key: 0, 8687 class: "checkItem-value" 8688}; 8689const _hoisted_54 = { 8690 key: 1, 8691 class: "checkItem-value" 8692}; 8693const _hoisted_55 = { 8694 key: 0, 8695 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row", 8696 "data-filter-el": "katastralni-uzemi" 8697}; 8698const _hoisted_56 = { class: "label" }; 8699const _hoisted_57 = { class: "EstateFilterItemSubtype-inner" }; 8700const _hoisted_58 = { class: "checkItem" }; 8701const _hoisted_59 = ["for"]; 8702const _hoisted_60 = ["id", "value", "onUpdate:modelValue"]; 8703const _hoisted_61 = { class: "checkItem-label" }; 8704const _hoisted_62 = { 8705 key: 0, 8706 class: "checkItem-value" 8707}; 8708const _hoisted_63 = { 8709 key: 1, 8710 class: "checkItem-value" 8711}; 8712const _hoisted_64 = { 8713 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row", 8714 "data-filter-el": "okres" 8715}; 8716const _hoisted_65 = { class: "label" }; 8717const _hoisted_66 = { class: "EstateFilterItemSubtype-inner" }; 8718const _hoisted_67 = { class: "checkItem" }; 8719const _hoisted_68 = ["for"]; 8720const _hoisted_69 = ["id", "value"]; 8721const _hoisted_70 = { class: "checkItem-label" }; 8722const _hoisted_71 = { 8723 key: 0, 8724 class: "checkItem-value" 8725}; 8726const _hoisted_72 = { 8727 key: 1, 8728 class: "checkItem-value" 8729}; 8730const _hoisted_73 = { 8731 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row", 8732 "data-filter-el": "mesto" 8733}; 8734const _hoisted_74 = { class: "label" }; 8735const _hoisted_75 = { class: "EstateFilterItemSubtype-inner" }; 8736const _hoisted_76 = { 8737 key: 0, 8738 class: "checkItem" 8739}; 8740const _hoisted_77 = ["for"]; 8741const _hoisted_78 = ["id", "value", "onUpdate:modelValue"]; 8742const _hoisted_79 = { class: "checkItem-label" }; 8743const _hoisted_80 = { 8744 key: 0, 8745 class: "checkItem-value" 8746}; 8747const _hoisted_81 = { 8748 key: 1, 8749 class: "checkItem-value" 8750}; 8751const _hoisted_82 = { 8752 key: 0, 8753 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row smaller", 8754 "data-filter-el": "obec" 8755}; 8756const _hoisted_83 = { class: "label" }; 8757const _hoisted_84 = { class: "EstateFilterItemSubtype-inner" }; 8758const _hoisted_85 = { 8759 key: 0, 8760 class: "checkItem" 8761}; 8762const _hoisted_86 = ["for"]; 8763const _hoisted_87 = ["id", "value", "onUpdate:modelValue"]; 8764const _hoisted_88 = { class: "checkItem-label" }; 8765const _hoisted_89 = { 8766 key: 0, 8767 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row" 8768}; 8769const _hoisted_90 = { class: "label" }; 8770const _hoisted_91 = { class: "EstateFilterItemSubtype-inner" }; 8771const _hoisted_92 = { class: "checkItem" }; 8772const _hoisted_93 = ["for"]; 8773const _hoisted_94 = ["id", "value", "onUpdate:modelValue"]; 8774const _hoisted_95 = { class: "checkItem-label" }; 8775const _hoisted_96 = { 8776 key: 0, 8777 class: "checkItem-value" 8778}; 8779const _hoisted_97 = { 8780 key: 1, 8781 class: "checkItem-value" 8782}; 8783const _hoisted_98 = { class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row" }; 8784const _hoisted_99 = { class: "label" }; 8785const _hoisted_100 = { class: "EstateFilterItemSubtype-inner" }; 8786const _hoisted_101 = { class: "checkItem" }; 8787const _hoisted_102 = ["for"]; 8788const _hoisted_103 = ["value", "id"]; 8789const _hoisted_104 = { class: "checkItem-label" }; 8790const _hoisted_105 = { 8791 key: 0, 8792 class: "checkItem-value" 8793}; 8794const _hoisted_106 = { 8795 key: 1, 8796 class: "checkItem-value" 8797}; 8798const _hoisted_107 = { 8799 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row smaller", 8800 "data-filter-el": "obec" 8801}; 8802const _hoisted_108 = { class: "label" }; 8803const _hoisted_109 = { class: "EstateFilterItemSubtype-inner" }; 8804const _hoisted_110 = { 8805 key: 0, 8806 class: "checkItem" 8807}; 8808const _hoisted_111 = ["for"]; 8809const _hoisted_112 = ["id", "value", "onUpdate:modelValue"]; 8810const _hoisted_113 = { class: "checkItem-label" }; 8811const _hoisted_114 = { 8812 key: 0, 8813 class: "checkItem-value" 8814}; 8815const _hoisted_115 = { 8816 key: 1, 8817 class: "checkItem-value" 8818}; 8819const _hoisted_116 = { 8820 key: 0, 8821 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row", 8822 "data-filter-el": "katastralni-uzemi" 8823}; 8824const _hoisted_117 = { class: "label" }; 8825const _hoisted_118 = { class: "EstateFilterItemSubtype-inner" }; 8826const _hoisted_119 = { class: "checkItem" }; 8827const _hoisted_120 = ["for"]; 8828const _hoisted_121 = ["id", "value", "onUpdate:modelValue"]; 8829const _hoisted_122 = { class: "checkItem-label" }; 8830const _hoisted_123 = { 8831 key: 0, 8832 class: "checkItem-value" 8833}; 8834const _hoisted_124 = { 8835 key: 1, 8836 class: "checkItem-value" 8837};
8838const _hoisted_125 = { 8839 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row", 8840 "data-filter-el": "prazsky-obvod" 8841}; 8842const _hoisted_126 = { class: "label" }; 8843const _hoisted_127 = { class: "EstateFilterItemSubtype-inner" }; 8844const _hoisted_128 = { class: "checkItem" }; 8845const _hoisted_129 = ["for"]; 8846const _hoisted_130 = ["value", "id"]; 8847const _hoisted_131 = { class: "checkItem-label" }; 8848const _hoisted_132 = { 8849 key: 0, 8850 class: "checkItem-value" 8851}; 8852const _hoisted_133 = { 8853 key: 1, 8854 class: "checkItem-value" 8855}; 8856const _hoisted_134 = { class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row" }; 8857const _hoisted_135 = { class: "label" }; 8858const _hoisted_136 = { class: "EstateFilterItemSubtype-inner" }; 8859const _hoisted_137 = { class: "checkItem" }; 8860const _hoisted_138 = ["for"]; 8861const _hoisted_139 = ["id", "value", "onUpdate:modelValue"]; 8862const _hoisted_140 = { class: "checkItem-label" }; 8863const _hoisted_141 = { 8864 key: 0, 8865 class: "checkItem-value" 8866}; 8867const _hoisted_142 = { 8868 key: 1, 8869 class: "checkItem-value" 8870}; 8871const _hoisted_143 = { 8872 key: 0, 8873 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row", 8874 "data-filter-el": "kraj" 8875}; 8876const _hoisted_144 = { class: "label" }; 8877const _hoisted_145 = { class: "EstateFilterItemSubtype-inner" }; 8878const _hoisted_146 = { 8879 key: 0, 8880 class: "checkItem" 8881}; 8882const _hoisted_147 = ["for"]; 8883const _hoisted_148 = ["id", "value"]; 8884const _hoisted_149 = { class: "checkItem-label" }; 8885const _hoisted_150 = { 8886 key: 0, 8887 class: "checkItem-value" 8888}; 8889const _hoisted_151 = { 8890 key: 1, 8891 class: "checkItem-value" 8892}; 8893const _hoisted_152 = { 8894 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row smaller", 8895 "data-filter-el": "okres" 8896}; 8897const _hoisted_153 = { class: "label" }; 8898const _hoisted_154 = { class: "EstateFilterItemSubtype-inner" }; 8899const _hoisted_155 = { 8900 key: 0, 8901 class: "checkItem" 8902}; 8903const _hoisted_156 = ["for"]; 8904const _hoisted_157 = ["id", "value"]; 8905const _hoisted_158 = { class: "checkItem-label" }; 8906const _hoisted_159 = { 8907 key: 0, 8908 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row", 8909 "data-filter-el": "kraj" 8910}; 8911const _hoisted_160 = { class: "label" }; 8912const _hoisted_161 = { class: "EstateFilterItemSubtype-inner" }; 8913const _hoisted_162 = { 8914 key: 0, 8915 class: "checkItem" 8916}; 8917const _hoisted_163 = ["for"]; 8918const _hoisted_164 = ["id", "value"]; 8919const _hoisted_165 = { class: "checkItem-label" }; 8920const _sfc_main$E = /* @__PURE__ */ defineComponent({ 8921 __name: "Locality", 8922 props: { 8923 version: {}, 8924 versionForeign: {} 8925 }, 8926 setup(__props) { 8927 const store = useStore(); 8928 const valuesStore = useFilterValuesStore(); 8929 const DOMESTIC_LOCALITY_FIELDS = ["idKraje", "idOkresy", "idMesta", "idCObce", "idKUzemi", "idPObvod", "idMCasti"]; 8930 const FOREIGN_LOCALITY_FIELDS = ["krajeZahranici", "okresZahranici", "mestaZahranici"]; 8931 const hasDomesticLocalitySelected = computed(() => DOMESTIC_LOCALITY_FIELDS.some((field) => valuesStore[field].length > 0)); 8932 const hasForeignLocalitySelected = computed(() => FOREIGN_LOCALITY_FIELDS.some((field) => valuesStore[field].length > 0)); 8933 watch([hasDomesticLocalitySelected, hasForeignLocalitySelected], ([domestic, foreign], previous) => { 8934 if (!domestic || !foreign) { 8935 return; 8936 } 8937 const [previousDomestic] = previous ?? [false, false]; 8938 if (previousDomestic) { 8939 FOREIGN_LOCALITY_FIELDS.forEach((field) => { 8940 valuesStore[field] = []; 8941 }); 8942 } else { 8943 DOMESTIC_LOCALITY_FIELDS.forEach((field) => { 8944 valuesStore[field] = []; 8945 }); 8946 } 8947 }, { immediate: true }); 8948 const onOkresAKrajZahranicniChange = () => { 8949 var options = document.querySelector(".tail-select-okresy").querySelectorAll("option:checked"); 8950 valuesStore.krajeZahranici = []; 8951 valuesStore.idOkresy = []; 8952 options.forEach((item) => { 8953 if (item.value.startsWith("zahranicni-")) { 8954 var zahraniciValue = item.value.replace("zahranicni-", ""); 8955 valuesStore.krajeZahranici.push(zahraniciValue); 8956 } else { 8957 valuesStore.idOkresy.push(item.value); 8958 } 8959 }); 8960 }; 8961 const onObecAKrajZahranicniChange = () => { 8962 var options = document.querySelector(".tail-select-obce").querySelectorAll("option:checked"); 8963 valuesStore.krajeZahranici = []; 8964 valuesStore.idMesta = []; 8965 options.forEach((item) => { 8966 if (item.value.startsWith("zahranicni-")) { 8967 var zahraniciValue = item.value.replace("zahranicni-", ""); 8968 valuesStore.krajeZahranici.push(zahraniciValue); 8969 } else { 8970 valuesStore.idMesta.push(item.value); 8971 } 8972 }); 8973 }; 8974 const setIdStat = (value) => { 8975 valuesStore.idStat = value; 8976 valuesStore.krajeZahranici = []; 8977 valuesStore.idKraje = []; 8978 }; 8979 const isIncludedInArray = (array, value) => { 8980 return Object.values(array).includes(parseInt(value)); 8981 }; 8982 const isRenderedFrom = (value) => { 8983 return typeof window.frontendDefinitions !== "undefined" && typeof window.frontendDefinitions.NEMOVITOSTI_FILTER_LOCALITY_FROM !== "undefined" && window.frontendDefinitions.NEMOVITOSTI_FILTER_LOCALITY_FROM === value; 8984 }; 8985 const isNotSelectedCountryThisCountry = (idCountry) => { 8986 return valuesStore.idStat === idCountry || valuesStore.idStat === null || typeof valuesStore.idStat === "undefined" || valuesStore.idStat === "0" || valuesStore.idStat === NO_CZ || valuesStore.idStat === NO_SK; 8987 }; 8988 const props = __props; 8989 return (_ctx, _cache) => { 8990 return ["select", "select-index"].includes(props.version) ? (openBlock(), createElementBlock("div", _hoisted_1$E, [ 8991 props.version === "select" ? (openBlock(), createElementBlock("label", _hoisted_2$z, toDisplayString(_ctx.$translate("filter_locality")), 1)) : createCommentVNode("", true), 8992 isRenderedFrom("obec") ? (openBlock(), createElementBlock("select", { 8993 key: 1, 8994 id: "mesta", 8995 name: "idMesta", 8996 multiple: "",
8997 placeholder: _ctx.$translate("filter_locality"), 8998 class: "tail-select-obce", 8999 onChange: onObecAKrajZahranicniChange 9000 }, [ 9001 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.idMesta, (arrayCities, idCounty) => { 9002 return openBlock(), createElementBlock("optgroup", { 9003 label: unref(store).parameterValueNames.idOkresy[idCounty] 9004 }, [ 9005 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).inputs.idMesta.choices, (city, idCity) => { 9006 return openBlock(), createElementBlock(Fragment, null, [ 9007 arrayCities.includes(parseInt(idCity)) ? (openBlock(), createElementBlock("option", { 9008 key: 0, 9009 value: idCity, 9010 selected: unref(valuesStore).idOkresy.includes(idCity.toString()) 9011 }, [ 9012 createTextVNode(toDisplayString(city) + " ", 1), 9013 unref(store).getCountValue("idMesta", idCity) !== null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 9014 createTextVNode(" (" + toDisplayString(unref(store).getCountValue("idMesta", idCity)) + ") ", 1) 9015 ], 64)) : createCommentVNode("", true) 9016 ], 8, _hoisted_5$i)) : createCommentVNode("", true) 9017 ], 64); 9018 }), 256)) 9019 ], 8, _hoisted_4$m); 9020 }), 256)), 9021 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.krajeZahranici, (regionNamesInCountry, idCountry) => { 9022 return openBlock(), createElementBlock("optgroup", { 9023 label: unref(store).parameterValueNames.idStat[idCountry] 9024 }, [ 9025 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).inputs.krajeZahranici.choices, (region, idRegion) => { 9026 return openBlock(), createElementBlock(Fragment, null, [ 9027 regionNamesInCountry.includes(idRegion) ? (openBlock(), createElementBlock("option", { 9028 key: 0, 9029 value: "zahranicni-" + idRegion, 9030 selected: unref(valuesStore).krajeZahranici.includes(idRegion.toString()) 9031 }, [ 9032 createTextVNode(toDisplayString(region) + " ", 1), 9033 unref(store).getCountValue("krajeZahranici", idRegion) !== null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 9034 createTextVNode(" (" + toDisplayString(unref(store).getCountValue("krajeZahranici", idRegion)) + ") ", 1) 9035 ], 64)) : createCommentVNode("", true) 9036 ], 8, _hoisted_7$b)) : createCommentVNode("", true) 9037 ], 64); 9038 }), 256)) 9039 ], 8, _hoisted_6$e); 9040 }), 256)) 9041 ], 40, _hoisted_3$r)) : createCommentVNode("", true), 9042 isRenderedFrom("okres") ? (openBlock(), createElementBlock("select", { 9043 key: 2, 9044 id: "okresy", 9045 name: "idOkresy", 9046 multiple: "", 9047 placeholder: _ctx.$translate("filter_locality"), 9048 class: "tail-select-okresy", 9049 onChange: onOkresAKrajZahranicniChange 9050 }, [ 9051 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.idOkresy, (arrayCounties, idRegion) => { 9052 return openBlock(), createElementBlock("optgroup", { 9053 label: unref(store).parameterValueNames.idKraje[idRegion] 9054 }, [ 9055 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).inputs.idOkresy.choices, (county, idCounty) => { 9056 return openBlock(), createElementBlock(Fragment, null, [ 9057 arrayCounties.includes(parseInt(idCounty)) ? (openBlock(), createElementBlock("option", { 9058 key: 0, 9059 value: idCounty, 9060 selected: unref(valuesStore).idOkresy.includes(idCounty.toString()) 9061 }, [ 9062 createTextVNode(toDisplayString(county) + " ", 1), 9063 unref(store).getCountValue("idOkresy", idCounty) !== null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 9064 createTextVNode(" (" + toDisplayString(unref(store).getCountValue("idOkresy", idCounty)) + ") ", 1) 9065 ], 64)) : createCommentVNode("", true) 9066 ], 8, _hoisted_10$6)) : createCommentVNode("", true) 9067 ], 64); 9068 }), 256)) 9069 ], 8, _hoisted_9$6); 9070 }), 256)), 9071 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.krajeZahranici, (regionNamesInCountry, idCountry) => { 9072 return openBlock(), createElementBlock("optgroup", { 9073 label: unref(store).parameterValueNames.idStat[idCountry] 9074 }, [ 9075 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).inputs.krajeZahranici.choices, (region, idRegion) => { 9076 return openBlock(), createElementBlock(Fragment, null, [ 9077 regionNamesInCountry.includes(idRegion) ? (openBlock(), createElementBlock("option", { 9078 key: 0, 9079 value: "zahranicni-" + idRegion, 9080 selected: unref(valuesStore).krajeZahranici.includes(idRegion.toString()) 9081 }, [ 9082 createTextVNode(toDisplayString(region) + " ", 1), 9083 unref(store).getCountValue("krajeZahranici", idRegion) !== null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 9084 createTextVNode(" (" + toDisplayString(unref(store).getCountValue("krajeZahranici", idRegion)) + ") ", 1) 9085 ], 64)) : createCommentVNode("", true) 9086 ], 8, _hoisted_12$5)) : createCommentVNode("", true) 9087 ], 64); 9088 }), 256)) 9089 ], 8, _hoisted_11$6); 9090 }), 256)) 9091 ], 40, _hoisted_8$8)) : createCommentVNode("", true) 9092 ])) : ["blind-map", "checkbox"].includes(props.version) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [ 9093 props.version !== "blind-map" ? withDirectives((openBlock(), createElementBlock("div", _hoisted_13$4, [ 9094 createBaseVNode("label", _hoisted_14$4, toDisplayString(_ctx.$translate("filter_country")), 1), 9095 createBaseVNode("select", { 9096 id: "country", 9097 name: "country", 9098 onChange: _cache[0] || (_cache[0] = ($event) => setIdStat($event.target.value)) 9099 }, [ 9100 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).getGroupedIdStatChoices, (groupedChoices, index) => { 9101 return openBlock(), createElementBlock(Fragment, { 9102 key: "group-" + index 9103 }, [ 9104 Object.keys(groupedChoices).length > 0 ? (openBlock(), createElementBlock("optgroup", { 9105 key: 0, 9106 label: index !== 0 ? " " : "" 9107 /* Musà zde být nÄjaký oddÄlený label a vzhledem k tomu, že nechceme žádný nadpis skupiny, tak zvolÃm prázdný string a žádný. Tim dojde k rozdÄlenà do 2 skupin (tail.select na label také spoléhá). */ 9108 }, [ 9109 (openBlock(true), createElementBlock(Fragment, null, renderList(groupedChoices, (country, idCountry) => { 9110 return openBlock(), createElementBlock("option", { 9111 key: idCountry, 9112 value: idCountry, 9113 selected: idCountry.toString() === unref(valuesStore).idStat 9114 }, toDisplayString(country), 9, _hoisted_16$4); 9115 }), 128)) 9116 ], 8, _hoisted_15$4)) : createCommentVNode("", true) 9117 ], 64); 9118 }), 128)) 9119 ], 32) 9120 ], 512)), [ 9121 [vShow, unref(store).showIdStat] 9122 ]) : createCommentVNode("", true), 9123 props.version === "checkbox" ? withDirectives((openBlock(), createElementBlock("div", _hoisted_17$3, [ 9124 createBaseVNode("div", _hoisted_18$3, toDisplayString(_ctx.$translate("filter_region")), 1), 9125 createBaseVNode("div", _hoisted_19$2, [ 9126 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).inputs.idKraje.choices, (region, idRegion) => { 9127 return openBlock(), createElementBlock("div", _hoisted_20$2, [ 9128 createBaseVNode("label", { 9129 for: "EstateFilterItemSubtype-region-" + region 9130 }, [ 9131 withDirectives(createBaseVNode("input", { 9132 type: "checkbox",
9133 name: "region", 9134 id: "EstateFilterItemSubtype-region-" + region, 9135 value: idRegion, 9136 "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(valuesStore).idKraje = $event) 9137 }, null, 8, _hoisted_22$2), [ 9138 [vModelCheckbox, unref(valuesStore).idKraje] 9139 ]), 9140 _cache[8] || (_cache[8] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9141 createBaseVNode("span", _hoisted_23$2, [ 9142 createTextVNode(toDisplayString(region) + " ", 1), 9143 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_24$2, "(" + toDisplayString(unref(store).getCountValue("idKraje", idRegion)) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_25$2, toDisplayString(unref(store).getCountValue("idKraje", idRegion)), 1)) : createCommentVNode("", true) 9144 ]) 9145 ], 8, _hoisted_21$2) 9146 ]); 9147 }), 256)) 9148 ]) 9149 ], 512)), [ 9150 [vShow, unref(store).showIdkraje] 9151 ]) : createCommentVNode("", true), 9152 props.version === "blind-map" ? withDirectives((openBlock(), createElementBlock("div", _hoisted_26$2, [ 9153 createBaseVNode("label", _hoisted_27$2, toDisplayString(_ctx.$translate("filter_locality")), 1), 9154 createVNode(_sfc_main$F) 9155 ], 512)), [ 9156 [vShow, unref(store).showBlindMap] 9157 ]) : createCommentVNode("", true), 9158 isRenderedFrom("kraj") || isRenderedFrom("stat") ? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList(unref(store).localityIdsStructured.idOkresy, (idOkresy, idKraj) => { 9159 return openBlock(), createElementBlock("div", _hoisted_28$2, [ 9160 createBaseVNode("div", _hoisted_29$2, toDisplayString(unref(store).parameterValueNames.idKraje[idKraj]), 1), 9161 createBaseVNode("div", _hoisted_30$2, [ 9162 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).getOkresySorted, (okres) => { 9163 return openBlock(), createElementBlock(Fragment, null, [ 9164 isIncludedInArray(idOkresy, okres[0]) ? (openBlock(), createElementBlock("div", _hoisted_31$1, [ 9165 createBaseVNode("label", { 9166 for: "EstateFilterItemSubtype-district-" + okres[0] 9167 }, [ 9168 withDirectives(createBaseVNode("input", { 9169 type: "checkbox", 9170 name: "district", 9171 id: "EstateFilterItemSubtype-district-" + okres[0], 9172 value: okres[0], 9173 "onUpdate:modelValue": ($event) => unref(valuesStore).idOkresy = $event 9174 }, null, 8, _hoisted_33$1), [ 9175 [vModelCheckbox, unref(valuesStore).idOkresy] 9176 ]), 9177 _cache[9] || (_cache[9] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9178 createBaseVNode("span", _hoisted_34$1, [ 9179 createTextVNode(toDisplayString(okres[1]) + " ", 1), 9180 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_35$1, "(" + toDisplayString(unref(store).getCountValue("idOkresy", okres[0])) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_36$1, toDisplayString(unref(store).getCountValue("idOkresy", okres[0])), 1)) : createCommentVNode("", true) 9181 ]) 9182 ], 8, _hoisted_32$1) 9183 ])) : createCommentVNode("", true) 9184 ], 64); 9185 }), 256)), 9186 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.idMesta, (idMesta, idOkres) => { 9187 return openBlock(), createElementBlock(Fragment, null, [ 9188 isIncludedInArray(idOkresy, idOkres) ? (openBlock(), createElementBlock("div", _hoisted_37$1, [ 9189 createBaseVNode("div", _hoisted_38, toDisplayString(unref(store).parameterValueNames.idOkresy[idOkres]), 1), 9190 createBaseVNode("div", _hoisted_39, [ 9191 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).getMestaSorted, (mesto) => { 9192 return openBlock(), createElementBlock(Fragment, null, [ 9193 isIncludedInArray(idMesta, mesto[0]) ? (openBlock(), createElementBlock("div", _hoisted_40, [ 9194 createBaseVNode("label", { 9195 for: "EstateFilterItemSubtype-district-" + mesto[0] 9196 }, [ 9197 withDirectives(createBaseVNode("input", { 9198 type: "checkbox", 9199 name: "district", 9200 id: "EstateFilterItemSubtype-district-" + mesto[0], 9201 value: mesto[0], 9202 "onUpdate:modelValue": ($event) => unref(valuesStore).idMesta = $event 9203 }, null, 8, _hoisted_42), [ 9204 [vModelCheckbox, unref(valuesStore).idMesta] 9205 ]), 9206 _cache[10] || (_cache[10] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9207 createBaseVNode("span", _hoisted_43, [ 9208 createTextVNode(toDisplayString(mesto[1]) + " ", 1), 9209 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_44, "(" + toDisplayString(unref(store).getCountValue("idMesta", mesto[0])) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_45, toDisplayString(unref(store).getCountValue("idMesta", mesto[0])), 1)) : createCommentVNode("", true) 9210 ]) 9211 ], 8, _hoisted_41) 9212 ])) : createCommentVNode("", true) 9213 ], 64); 9214 }), 256)) 9215 ]) 9216 ])) : createCommentVNode("", true), 9217 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.idCObce, (idCObce, idMesto) => { 9218 return openBlock(), createElementBlock(Fragment, null, [ 9219 isIncludedInArray(idOkresy, idOkres) && isIncludedInArray(idMesta, idMesto) ? (openBlock(), createElementBlock("div", _hoisted_46, [ 9220 createBaseVNode("div", _hoisted_47, toDisplayString(unref(store).parameterValueNames.idMesta[idMesto]), 1), 9221 createBaseVNode("div", _hoisted_48, [ 9222 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).getCObceSorted, (cObec) => { 9223 return openBlock(), createElementBlock(Fragment, null, [ 9224 isIncludedInArray(idCObce, cObec[0]) ? (openBlock(), createElementBlock("div", _hoisted_49, [ 9225 createBaseVNode("label", { 9226 for: "EstateFilterItemSubtype-district-" + cObec[0] 9227 }, [ 9228 withDirectives(createBaseVNode("input", { 9229 type: "checkbox", 9230 name: "district", 9231 id: "EstateFilterItemSubtype-district-" + cObec[0], 9232 value: cObec[0], 9233 "onUpdate:modelValue": ($event) => unref(valuesStore).idCObce = $event 9234 }, null, 8, _hoisted_51), [ 9235 [vModelCheckbox, unref(valuesStore).idCObce] 9236 ]), 9237 _cache[11] || (_cache[11] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9238 createBaseVNode("span", _hoisted_52, [ 9239 createTextVNode(toDisplayString(cObec[1]) + " ", 1), 9240 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_53, "(" + toDisplayString(unref(store).getCountValue("idCObce", cObec[0])) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_54, toDisplayString(unref(store).getCountValue("idCObce", cObec[0])), 1)) : createCommentVNode("", true) 9241 ]) 9242 ], 8, _hoisted_50) 9243 ])) : createCommentVNode("", true) 9244 ], 64); 9245 }), 256)) 9246 ]) 9247 ])) : createCommentVNode("", true) 9248 ], 64); 9249 }), 256)), 9250 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.idKUzemi, (idKUzemi, idMesto) => { 9251 return openBlock(), createElementBlock(Fragment, null, [ 9252 isIncludedInArray(idOkresy, idOkres) && isIncludedInArray(idMesta, idMesto) ? (openBlock(), createElementBlock("div", _hoisted_55, [ 9253 createBaseVNode("div", _hoisted_56, toDisplayString(unref(store).parameterValueNames.idMesta[idMesto]), 1), 9254 createBaseVNode("div", _hoisted_57, [ 9255 (openBlock(true), createElementBlock(Fragment, null, renderList(idKUzemi, (idKUzem) => { 9256 return openBlock(), createElementBlock("div", _hoisted_58, [ 9257 createBaseVNode("label", { 9258 for: "EstateFilterItemSubtype-district-" + idKUzem 9259 }, [ 9260 withDirectives(createBaseVNode("input", { 9261 type: "checkbox", 9262 name: "district", 9263 id: "EstateFilterItemSubtype-district-" + idKUzem, 9264 value: idKUzem, 9265 "onUpdate:modelValue": ($event) => unref(valuesStore).idKUzemi = $event 9266 }, null, 8, _hoisted_60), [ 9267 [vModelCheckbox, unref(valuesStore).idKUzemi] 9268 ]), 9269 _cache[12] || (_cache[12] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9270 createBaseVNode("span", _hoisted_61, [ 9271 createTextVNode(toDisplayString(unref(store).parameterValueNames.idKUzemi[idKUzem]) + " ", 1), 9272 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_62, "(" + toDisplayString(unref(store).getCountValue("idKUzemi", idKUzem)) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_63, toDisplayString(unref(store).getCountValue("idKUzemi", idKUzem)), 1)) : createCommentVNode("", true) 9273 ]) 9274 ], 8, _hoisted_59) 9275 ]); 9276 }), 256)) 9277 ]) 9278 ])) : createCommentVNode("", true) 9279 ], 64); 9280 }), 256)) 9281 ], 64); 9282 }), 256)) 9283 ]) 9284 ]); 9285 }), 256)) : createCommentVNode("", true), 9286 isRenderedFrom("okres") && !(isRenderedFrom("kraj") || isRenderedFrom("stat")) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [ 9287 withDirectives(createBaseVNode("div", _hoisted_64, [ 9288 createBaseVNode("div", _hoisted_65, toDisplayString(_ctx.$translate("filter_district")), 1
9288), 9289 createBaseVNode("div", _hoisted_66, [ 9290 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).getOkresySorted, (okres) => { 9291 return openBlock(), createElementBlock("div", _hoisted_67, [ 9292 createBaseVNode("label", { 9293 for: "EstateFilterItemSubtype-district-" + okres[1] 9294 }, [ 9295 withDirectives(createBaseVNode("input", { 9296 type: "checkbox", 9297 name: "district", 9298 id: "EstateFilterItemSubtype-district-" + okres[1], 9299 value: okres[0], 9300 "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(valuesStore).idOkresy = $event) 9301 }, null, 8, _hoisted_69), [ 9302 [vModelCheckbox, unref(valuesStore).idOkresy] 9303 ]), 9304 _cache[13] || (_cache[13] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9305 createBaseVNode("span", _hoisted_70, [ 9306 createTextVNode(toDisplayString(okres[1]) + " ", 1), 9307 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_71, "(" + toDisplayString(unref(store).getCountValue("idOkresy", okres[0])) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_72, toDisplayString(unref(store).getCountValue("idOkresy", okres[0])), 1)) : createCommentVNode("", true) 9308 ]) 9309 ], 8, _hoisted_68) 9310 ]); 9311 }), 256)) 9312 ]) 9313 ], 512), [ 9314 [vShow, unref(store).showIdOkresy] 9315 ]), 9316 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.idMesta, (idMesta, idOkres) => { 9317 return openBlock(), createElementBlock(Fragment, null, [ 9318 createBaseVNode("div", _hoisted_73, [ 9319 createBaseVNode("div", _hoisted_74, toDisplayString(unref(store).parameterValueNames.idOkresy[idOkres]), 1), 9320 createBaseVNode("div", _hoisted_75, [ 9321 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).getMestaSorted, (mesto) => { 9322 return openBlock(), createElementBlock(Fragment, null, [ 9323 isIncludedInArray(idMesta, mesto[0]) ? (openBlock(), createElementBlock("div", _hoisted_76, [ 9324 createBaseVNode("label", { 9325 for: "EstateFilterItemSubtype-district-" + mesto[0] 9326 }, [ 9327 withDirectives(createBaseVNode("input", { 9328 type: "checkbox", 9329 name: "district", 9330 id: "EstateFilterItemSubtype-district-" + mesto[0], 9331 value: mesto[0], 9332 "onUpdate:modelValue": ($event) => unref(valuesStore).idMesta = $event 9333 }, null, 8, _hoisted_78), [ 9334 [vModelCheckbox, unref(valuesStore).idMesta] 9335 ]), 9336 _cache[14] || (_cache[14] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9337 createBaseVNode("span", _hoisted_79, [ 9338 createTextVNode(toDisplayString(mesto[1]) + " ", 1), 9339 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_80, "(" + toDisplayString(unref(store).getCountValue("idMesta", mesto[0])) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_81, toDisplayString(unref(store).getCountValue("idMesta", mesto[0])), 1)) : createCommentVNode("", true) 9340 ]) 9341 ], 8, _hoisted_77) 9342 ])) : createCommentVNode("", true) 9343 ], 64); 9344 }), 256)) 9345 ]) 9346 ]), 9347 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.idCObce, (idCObce, idMesto) => { 9348 return openBlock(), createElementBlock(Fragment, null, [ 9349 isIncludedInArray(idMesta, idMesto) ? (openBlock(), createElementBlock("div", _hoisted_82, [ 9350 createBaseVNode("div", _hoisted_83, toDisplayString(unref(store).parameterValueNames.idMesta[idMesto]), 1), 9351 createBaseVNode("div", _hoisted_84, [ 9352 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).getCObceSorted, (cObec) => { 9353 return openBlock(), createElementBlock(Fragment, null, [ 9354 isIncludedInArray(idCObce, cObec[0]) ? (openBlock(), createElementBlock("div", _hoisted_85, [ 9355 createBaseVNode("label", { 9356 for: "EstateFilterItemSubtype-district-" + cObec[0] 9357 }, [ 9358 withDirectives(createBaseVNode("input", { 9359 type: "checkbox", 9360 name: "district", 9361 id: "EstateFilterItemSubtype-district-" + cObec[0], 9362 value: cObec[0], 9363 "onUpdate:modelValue": ($event) => unref(valuesStore).idCObce = $event 9364 }, null, 8, _hoisted_87), [ 9365 [vModelCheckbox, unref(valuesStore).idCObce] 9366 ]), 9367 _cache[15] || (_cache[15] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9368 createBaseVNode("span", _hoisted_88, toDisplayString(cObec[1]) + " (" + toDisplayString(unref(store).getCountValue("idCObce", cObec[0])) + ") ", 1) 9369 ], 8, _hoisted_86) 9370 ])) : createCommentVNode("", true) 9371 ], 64); 9372 }), 256)) 9373 ]) 9374 ])) : createCommentVNode("", true) 9375 ], 64); 9376 }), 256)), 9377 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.idKUzemi, (idKUzemi, idMesto) => { 9378 return openBlock(), createElementBlock(Fragment, null, [ 9379 isIncludedInArray(idMesta, idMesto) ? (openBlock(), createElementBlock("div", _hoisted_89, [ 9380 createBaseVNode("div", _hoisted_90, toDisplayString(unref(store).parameterValueNames.idMesta[idMesto]), 1), 9381 createBaseVNode("div", _hoisted_91, [ 9382 (openBlock(true), createElementBlock(Fragment, null, renderList(idKUzemi, (idKUzem) => { 9383 return openBlock(), createElementBlock("div", _hoisted_92, [ 9384 createBaseVNode("label", { 9385 for: "EstateFilterItemSubtype-district-" + idKUzem 9386 }, [ 9387 withDirectives(createBaseVNode("input", { 9388 type: "checkbox", 9389 name: "district", 9390 id: "EstateFilterItemSubtype-district-" + idKUzem, 9391 value: idKUzem, 9392 "onUpdate:modelValue": ($event) => unref(valuesStore).idKUzemi = $event 9393 }, null, 8, _hoisted_94), [ 9394 [vModelCheckbox, unref(valuesStore).idKUzemi] 9395 ]), 9396 _cache[16] || (_cache[16] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9397 createBaseVNode("span", _hoisted_95, [ 9398 createTextVNode(toDisplayString(unref(store).parameterValueNames.idKUzemi[idKUzemi]) + " ", 1), 9399 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_96, "(" + toDisplayString(unref(store).getCountValue("idKUzemi", idKUzem)) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_97, toDisplayString(unref(store).getCountValue("idKUzemi", idKUzem)), 1)) : createCommentVNode("", true) 9400 ]) 9401 ], 8, _hoisted_93) 9402 ]); 9403 }), 256)) 9404 ]) 9405 ])) : createCommentVNode("", true) 9406 ], 64); 9407 }), 256)) 9408 ], 64); 9409 }), 256)) 9410 ], 64)) : createCommentVNode("", true), 9411 isRenderedFrom("obec") ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [ 9412 withDirectives(createBaseVNode("div", _hoisted_98, [ 9413 createBaseVNode("div", _hoisted_99, toDisplayString(_ctx.$translate("filter_locality")), 1), 9414 createBaseVNode("div", _hoisted_100, [ 9415 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).getMestaSorted, (city) => { 9416 return openBlock(), createElementBlock("div", _hoisted_101, [ 9417 createBaseVNode("label", { 9418 for: "EstateFilterItemSubtype-city-" + city[1] 9419 }, [ 9420 withDirectives(createBaseVNode("input", { 9421 type: "checkbox", 9422 name: "city", 9423 value: city[0], 9424 id: "EstateFilterItemSubtype-city-" + city[1], 9425 "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(valuesStore).idMesta = $event) 9426 }, null, 8, _hoisted_103), [ 9427 [vModelCheckbox, unref(valuesStore).idMesta] 9428 ]), 9429 _cache[17] || (_cache[17] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9430 createBaseVNode("span", _hoisted_104, [ 9431 createTextVNode(toDisplayString(city[1]) + " ", 1), 9432 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_105, "(" + toDisplayString(unref(store).getCountValue("idMesta", city[0])) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_106, toDisplayString(unref(store).getCountValue("idMesta", city[0])), 1)) : createCommentVNode("", true) 9433 ]) 9434 ], 8, _hoisted_102) 9435 ]); 9436 }), 256)) 9437 ]) 9438 ], 512), [ 9439 [vShow, unref(store).showIdMesta] 9440 ]), 9441 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.idCObce, (idCObce, idMesto) => { 9442 return openBlock(), createElementBlock("div", _hoisted_107, [ 9443 createBaseVNode("div", _hoisted_108, toDisplayString(unref(store).parameterValueNames.idMesta[idMesto]), 1), 9444 createBaseVNode("div", _hoisted_109, [ 9445 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).getCObceSorted, (CObec) => { 9446 return openBlock(), createElementBlock(Fragment, null, [ 9447 isIncludedInArray(idCObce, CObec[0]) ? (openBlock(), createElementBlock("div", _hoisted_110, [ 9448 createBaseVNode("label", { 9449 for: "EstateFilterItemSubtype-district-" + CObec[0] 9450 }, [ 9451 withDirectives(createBaseVNode("input", { 9452 type: "checkbox", 9453 name: "district", 9454 id: "EstateFilterItemSubtype-district-" + CObec[0], 9455 value: CObec[0], 9456 "onUpdate:modelValue": ($event) => unref(valuesStore).idCObce = $event 9457 }, null, 8, _hoisted_112), [ 9458 [vModelCheckbox, unref(valuesStore).idCObce] 9459 ]), 9460 _cache[18] || (_cache[18] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9461 createBaseVNode("span", _hoisted_113, [ 9462 createTextVNode(toDisplayString(CObec[1]) + " ", 1), 9463 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_114, "(" + toDisplayString(unref(store).getCountValue("idCObce", CObec[0])) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_115, toDisplayString(unref(store).getCountValue("idCObce", CObec[0])), 1)) : createCommentVNode("", true) 9464 ]) 9465 ], 8, _hoisted_111) 9466 ])) : createCommentVNode("", true) 9467 ], 64); 9468 }), 256)) 9469 ]) 9470 ]); 9471 }), 256)), 9472 unref(store).localityIdsStructured.idKUzemi ? (openBlock(), createElementBlock("div", _hoisted_116, [ 9473 createBaseVNode("div", _hoisted_117, toDisplayString(_ctx.$translate("filter_ku")), 1), 9474 createBaseVNode("div", _hoisted_118, [ 9475 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.idKUzemi, (idKUzemi, idMesto) => { 9476 return openBlock(), createElementBlock(Fragment, null, [ 9477 (openBlock(true), createElementBlock(Fragment, null, renderList(idKUzemi, (idKUzem) => { 9478 return openBlock(), createElementBlock("div", _hoisted_119, [ 9479 createBaseVNode("label", { 9480 for: "EstateFilterItemSubtype-district-" + idKUzem 9481 }, [ 9482 withDirectives(createBaseVNode("input", { 9483 type: "checkbox", 9484 name: "district", 9485 id: "EstateFilterItemSubtype-district-" + idKUzem, 9486 value: idKUzem, 9487 "onUpdate:modelValue": ($event) => unref(valuesStore).idKUzemi = $event 9488 }, null, 8, _hoisted_121), [ 9489 [vModelCheckbox, unref(valuesStore).idKUzemi] 9490 ]), 9491 _cache[19] || (_cache[19] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9492 createBaseVNode("span", _hoisted_122, [ 9493 createTextVNode(toDisplayString(unref(store).parameterValueNames.idKUzemi[idKUzem]) + " ", 1), 9494 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_123, "(" + toDisplayString(unref(store).getCountValue("idKUzemi", idKUzem)) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_124, toDisplayString(unref(store).getCountValue("idKUzemi", idKUzem)), 1)) : createCommentVNode("", true) 9495 ]) 9496 ], 8, _hoisted_120) 9497 ]); 9498 }), 256)) 9499 ], 64); 9500 }), 256)) 9501 ]) 9502 ])) : createCommentVNode("", true) 9503 ], 64)) : createCommentVNode("", true), 9504 withDirectives(createBaseVNode("div", _hoisted_125, [ 9505 createBaseVNode("div", _hoisted_126, toDisplayString(_ctx.$translate("Praha")), 1), 9506 createBaseVNode("div", _hoisted_127, [ 9507 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).inputs.idPObvod.choices, (PraguePart, idPrague) => { 9508 return openBlock(), createElementBlock("div", _hoisted_128, [ 9509 createBaseVNode("label", { 9510 for: "EstateFilterItemSubtype-idPrague-" + idPrague 9511 }, [ 9512 withDirectives(createBaseVNode("input", { 9513 type: "checkbox", 9514 name: "praguePart", 9515 value: idPrague, 9516 id: "EstateFi
9516lterItemSubtype-idPrague-" + idPrague, 9517 "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(valuesStore).idPObvod = $event) 9518 }, null, 8, _hoisted_130), [ 9519 [vModelCheckbox, unref(valuesStore).idPObvod] 9520 ]), 9521 _cache[20] || (_cache[20] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9522 createBaseVNode("span", _hoisted_131, [ 9523 createTextVNode(toDisplayString(PraguePart) + " ", 1), 9524 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_132, "(" + toDisplayString(unref(store).getCountValue("idPObvod", idPrague)) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_133, toDisplayString(unref(store).getCountValue("idPObvod", idPrague)), 1)) : createCommentVNode("", true) 9525 ]) 9526 ], 8, _hoisted_129) 9527 ]); 9528 }), 256)) 9529 ]) 9530 ], 512), [ 9531 [vShow, unref(store).showIdPObvod] 9532 ]), 9533 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.idMCasti, (idMCasti, idPObvod) => { 9534 return openBlock(), createElementBlock("div", _hoisted_134, [ 9535 createBaseVNode("div", _hoisted_135, toDisplayString(unref(store).parameterValueNames.idPObvod[idPObvod]), 1), 9536 createBaseVNode("div", _hoisted_136, [ 9537 (openBlock(true), createElementBlock(Fragment, null, renderList(idMCasti, (idMCast) => { 9538 return openBlock(), createElementBlock("div", _hoisted_137, [ 9539 createBaseVNode("label", { 9540 for: "EstateFilterItemSubtype-citypart-prague-" + idMCast 9541 }, [ 9542 withDirectives(createBaseVNode("input", { 9543 type: "checkbox", 9544 name: "district", 9545 id: "EstateFilterItemSubtype-citypart-prague-" + idMCast, 9546 value: idMCast, 9547 "onUpdate:modelValue": ($event) => unref(valuesStore).idMCasti = $event 9548 }, null, 8, _hoisted_139), [ 9549 [vModelCheckbox, unref(valuesStore).idMCasti] 9550 ]), 9551 _cache[21] || (_cache[21] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9552 createBaseVNode("span", _hoisted_140, [ 9553 createTextVNode(toDisplayString(unref(store).parameterValueNames.idMCasti[idMCast]) + " ", 1), 9554 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_141, "(" + toDisplayString(unref(store).getCountValue("idMCasti", idMCast)) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_142, toDisplayString(unref(store).getCountValue("idMCasti", idMCast)), 1)) : createCommentVNode("", true) 9555 ]) 9556 ], 8, _hoisted_138) 9557 ]); 9558 }), 256)) 9559 ]) 9560 ]); 9561 }), 256)), 9562 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.krajeZahranici, (regionNamesInCountry, idCountry) => { 9563 return openBlock(), createElementBlock(Fragment, null, [ 9564 typeof unref(store).parameterValueNames.idStat[idCountry] !== "undefined" && (unref(valuesStore).idKraje.length === 0 && isNotSelectedCountryThisCountry(idCountry)) ? (openBlock(), createElementBlock("div", _hoisted_143, [ 9565 createBaseVNode("div", _hoisted_144, toDisplayString(unref(store).definitions.DEFAULT_ID_STAT === idCountry ? _ctx.$translate("Lokalita") : unref(store).parameterValueNames.idStat[idCountry]), 1), 9566 createBaseVNode("div", _hoisted_145, [ 9567 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).inputs.krajeZahranici.choices, (region, idRegion) => { 9568 return openBlock(), createElementBlock(Fragment, null, [ 9569 regionNamesInCountry.includes(idRegion) && unref(store).getCountValue("krajeZahranici", idRegion) > 0 ? (openBlock(), createElementBlock("div", _hoisted_146, [ 9570 createBaseVNode("label", { 9571 for: "EstateFilterItemSubtype-region-" + region 9572 }, [ 9573 withDirectives(createBaseVNode("input", { 9574 type: "checkbox",
9575 name: "region", 9576 id: "EstateFilterItemSubtype-region-" + region, 9577 value: region, 9578 "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(valuesStore).krajeZahranici = $event) 9579 }, null, 8, _hoisted_148), [ 9580 [vModelCheckbox, unref(valuesStore).krajeZahranici] 9581 ]), 9582 _cache[22] || (_cache[22] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9583 createBaseVNode("span", _hoisted_149, [ 9584 createTextVNode(toDisplayString(region) + " ", 1), 9585 unref(store).definitions["LOCALITY_COUNT_VERSION"] === 1 ? (openBlock(), createElementBlock("span", _hoisted_150, "(" + toDisplayString(unref(store).getCountValue("krajeZahranici", idRegion)) + ")", 1)) : unref(store).definitions["LOCALITY_COUNT_VERSION"] === 0 ? (openBlock(), createElementBlock("span", _hoisted_151, toDisplayString(unref(store).getCountValue("krajeZahranici", idRegion)), 1)) : createCommentVNode("", true) 9586 ]) 9587 ], 8, _hoisted_147) 9588 ])) : createCommentVNode("", true) 9589 ], 64); 9590 }), 256)) 9591 ]) 9592 ])) : createCommentVNode("", true) 9593 ], 64); 9594 }), 256)), 9595 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).localityIdsStructured.okresZahranici, (countyNamesInRegion, regionName) => { 9596 return openBlock(), createElementBlock("div", _hoisted_152, [ 9597 createBaseVNode("div", _hoisted_153, toDisplayString(unref(store).parameterValueNames.krajeZahranici[regionName]), 1), 9598 createBaseVNode("div", _hoisted_154, [ 9599 (openBlock(true), createElementBlock(Fragment, null, renderList(countyNamesInRegion.sort((a, b) => a.localeCompare(b)), (countyName) => { 9600 return openBlock(), createElementBlock(Fragment, null, [ 9601 unref(store).getCountValue("okresZahranici", countyName) > 0 ? (openBlock(), createElementBlock("div", _hoisted_155, [ 9602 createBaseVNode("label", { 9603 for: "EstateFilterItemSubtype-district-" + unref(store).parameterValueNames.okresZahranici[countyName] 9604 }, [ 9605 withDirectives(createBaseVNode("input", { 9606 type: "checkbox", 9607 name: "district", 9608 id: "EstateFilterItemSubtype-district-" + unref(store).parameterValueNames.okresZahranici[countyName], 9609 value: unref(store).parameterValueNames.okresZahranici[countyName], 9610 "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(valuesStore).okresZahranici = $event) 9611 }, null, 8, _hoisted_157), [ 9612 [vModelCheckbox, unref(valuesStore).okresZahranici] 9613 ]), 9614 _cache[23] || (_cache[23] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9615 createBaseVNode("span", _hoisted_158, toDisplayString(unref(store).parameterValueNames.okresZahranici[countyName]) + " (" + toDisplayString(unref(store).getCountValue("okresZahranici", countyName)) + ") ", 1) 9616 ], 8, _hoisted_156) 9617 ])) : createCommentVNode("", true) 9618 ], 64); 9619 }), 256)) 9620 ]) 9621 ]); 9622 }), 256)), 9623 props.versionForeign === "country_city" ? (openBlock(true), createElementBlock(Fragment, { key: 6 }, renderList(unref(store).localityIdsStructured.mestaZahranici, (cityNamesInCountry, idCountry) => { 9624 return openBlock(), createElementBlock(Fragment, null, [ 9625 typeof unref(store).parameterValueNames.idStat[idCountry] !== "undefined" && isNotSelectedCountryThisCountry(idCountry) ? (openBlock(), createElementBlock("div", _hoisted_159, [ 9626 createBaseVNode("div", _hoisted_160, toDisplayString(unref(store).parameterValueNames.idStat[idCountry]), 1), 9627 createBaseVNode("div", _hoisted_161, [ 9628 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).inputs.mestaZahranici.choices, (city, idCity) => { 9629 return openBlock(), createElementBlock(Fragment, null, [ 9630 cityNamesInCountry.includes(idCity) && unref(store).getCountValue("mestaZahranici", idCity) > 0 ? (openBlock(), createElementBlock("div", _hoisted_162, [ 9631 createBaseVNode("label", { 9632 for: "EstateFilterItemSubtype-city-" + city 9633 }, [ 9634 withDirectives(createBaseVNode("input", { 9635 type: "checkbox", 9636 name: "city", 9637 id: "EstateFilterItemSubtype-city-" + city, 9638 value: city, 9639 "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(valuesStore).mestaZahranici = $event) 9640 }, null, 8, _hoisted_164), [ 9641 [vModelCheckbox, unref(valuesStore).mestaZahranici] 9642 ]), 9643 _cache[24] || (_cache[24] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9644 createBaseVNode("span", _hoisted_165, toDisplayString(city) + " (" + toDisplayString(unref(store).getCountValue("mestaZahranici", idCity)) + ") ", 1) 9645 ], 8, _hoisted_163) 9646 ])) : createCommentVNode("", true) 9647 ], 64); 9648 }), 256)) 9649 ]) 9650 ])) : createCommentVNode("", true) 9651 ], 64); 9652 }), 256)) : createCommentVNode("", true) 9653 ], 64)) : createCommentVNode("", true); 9654 }; 9655 } 9656}); 9657const _hoisted_1$D = { class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemFurnished full-row" }; 9658const _hoisted_2$y = { 9659 class: "label", 9660 for: "furnished" 9661}; 9662const _hoisted_3$q = ["value"]; 9663const _sfc_main$D = /* @__PURE__ */ defineComponent({ 9664 __name: "PropertyFurniture", 9665 props: { 9666 staticOptions: {}, 9667 version: {} 9668 }, 9669 setup(__props) { 9670 const store = useStore(); 9671 const valuesStore = useFilterValuesStore(); 9672 const props = __props; 9673 const staticOptions = computed(() => { 9674 if (typeof props.staticOptions !== "undefined" && Object.keys(props.staticOptions).length) { 9675 return props.staticOptions; 9676 } 9677 return store.inputs.furnished.choices; 9678 }); 9679 return (_ctx, _cache) => { 9680 return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$D, [ 9681 createBaseVNode("label", _hoisted_2$y, toDisplayString(_ctx.$translate("filter_furnished")), 1), 9682 withDirectives(createBaseVNode("select", { 9683 id: "furnished", 9684 name: "furnished", 9685 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(valuesStore).furnished = $event) 9686 }, [ 9687 (openBlock(true), createElementBlock(Fragment, null, renderList(staticOptions.value, (item, key) => { 9688 return openBlock(), createElementBlock("option", { 9689 value: key, 9690 key 9691 }, [ 9692 createTextVNode(toDisplayString(_ctx.$translate(item)) + " ", 1), 9693 unref(store).getCountValue("furnished", key) !== null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 9694 createTextVNode("(" + toDisplayString(unref(store).getCountValue("furnished", key)) + ")", 1) 9695 ], 64)) : createCommentVNode("", true) 9696 ], 8, _hoisted_3$q); 9697 }), 128)) 9698 ], 512), [ 9699 [vModelSelect, unref(valuesStore).furnished] 9700 ]) 9701 ], 512)), [ 9702 [vShow, unref(store).showFurnished] 9703 ]); 9704 }; 9705 } 9706}); 9707const _hoisted_1$C = { 9708 key: 0, 9709 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemOwnership full-row" 9710}; 9711const _hoisted_2$x = { class: "label" }; 9712const _hoisted_3$p = { class: "EstateFilterItemOwnership-inner" }; 9713const _hoisted_4$l = { class: "checkItem" }; 9714const _hoisted_5$h = ["for"]; 9715const _hoisted_6$d = ["id", "value"]; 9716const _hoisted_7$a = { class: "checkItem-label" }; 9717const _sfc_main$C = /* @__PURE__ */ defineComponent({ 9718 __name: "PropertyOwnership", 9719 props: { 9720 version: {} 9721 }, 9722 setup(__props) { 9723 const store = useStore(); 9724 const valuesStore = useFilterValuesStore(); 9725 const props = __props; 9726 return (_ctx, _cache) => { 9727 return props.version === 1 ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$C, [ 9728 createBaseVNode("div", _hoisted_2$x, toDisplayString(_ctx.$translate("filter_ownership")), 1), 9729 createBaseVNode("div", _hoisted_3$p, [ 9730 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).inputs.vlastnictvi.choices, (item, key) => { 9731 return openBlock(), createElementBlock("div", _hoisted_4$l, [ 9732 createBaseVNode("label", { 9733 for: "EstateFilterItemOwnership-" + key 9734 }, [ 9735 withDirectives(createBaseVNode("input", { 9736 type: "checkbox", 9737 name: "vlastnictvi", 9738 id: "EstateFilterItemOwnership-" + key, 9739 value: key, 9740 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(valuesStore).vlastnictvi = $event) 9741 }, null, 8, _hoisted_6$d), [ 9742 [vModelCheckbox, unref(valuesStore).vlastnictvi] 9743 ]), 9744 _cache[1] || (_cache[1] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9745 createBaseVNode("span", _hoisted_7$a, toDisplayString(item) + " (" + toDisplayString(unref(store).getCountValue("vlastnictvi", key)) + ") ", 1) 9746 ], 8, _hoisted_5$h) 9747 ]); 9748 }), 256)) 9749 ]) 9750 ], 512)), [ 9751 [vShow, unref(store).showVlastnictvi] 9752 ]) : createCommentVNode("", true); 9753 }; 9754 } 9755}); 9756const _hoisted_1$B = { 9757 key: 0, 9758 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row" 9759}; 9760const _hoisted_2$w = { class: "label" }; 9761const _hoisted_3$o = { class: "EstateFilterItemSubtype-inner" }; 9762const _hoisted_4$k = { class: "checkItem" }; 9763const _hoisted_5$g = ["for"]; 9764const _hoisted_6$c = ["id", "value"]; 9765const _hoisted_7$9 = { class: "checkItem-label" }; 9766const _hoisted_8$7 = { class: "EstateFilterItemIconsItem-icon-count" }; 9767const _sfc_main$B = /* @__PURE__ */ defineComponent({ 9768 __name: "PropertySubType", 9769 props: { 9770 version: {}, 9771 countsVersion: {} 9772 }, 9773 setup(__props) { 9774 const store = useStore(); 9775 const valuesStore = useFilterValuesStore(); 9776 const props = __props; 9777 return (_ctx, _cache) => { 9778 return openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).getIdTypNemoviostiVisibleGroups, ([idTypNemovitostiOriginal, idTypNemovitostiDlouhyFormat]) => { 9779 return openBlock(), createElementBlock(Fragment, null, [ 9780 unref(store).getIdPodtypyNemovitosti(idTypNemovitostiDlouhyFormat).length ? (openBlock(), createElementBlock("div", _hoisted_1$B, [ 9781 createBaseVNode("div", _hoisted_2$w, toDisplayString(_ctx.$translate("zs.podtyp.section.title." + idTypNemovitostiOriginal)), 1
9781), 9782 createBaseVNode("div", _hoisted_3$o, [ 9783 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).getIdPodtypyNemovitosti(idTypNemovitostiDlouhyFormat), ([key, item]) => { 9784 return openBlock(), createElementBlock("div", _hoisted_4$k, [ 9785 createBaseVNode("label", { 9786 for: "EstateFilterItemSubtype-" + key 9787 }, [ 9788 withDirectives(createBaseVNode("input", { 9789 type: "checkbox", 9790 name: "subtypnemovitosti", 9791 id: "EstateFilterItemSubtype-" + key, 9792 value: key, 9793 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(valuesStore).id_podtyp_nemovitosti = $event) 9794 }, null, 8, _hoisted_6$c), [ 9795 [vModelCheckbox, unref(valuesStore).id_podtyp_nemovitosti] 9796 ]), 9797 _cache[1] || (_cache[1] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 9798 createBaseVNode("span", _hoisted_7$9, [ 9799 createTextVNode(toDisplayString(item) + " ", 1), 9800 createBaseVNode("span", _hoisted_8$7, [ 9801 props.countsVersion === 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 9802 createTextVNode(" (" + toDisplayString(unref(store).getCountValue("id_podtyp_nemovitosti", key)) + ") ", 1) 9803 ], 64)) : createCommentVNode("", true), 9804 props.countsVersion === 2 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [ 9805 createTextVNode(toDisplayString(unref(store).getCountValue("id_podtyp_nemovitosti", key)), 1) 9806 ], 64)) : createCommentVNode("", true) 9807 ]) 9808 ]) 9809 ], 8, _hoisted_5$g) 9810 ]); 9811 }), 256)) 9812 ]) 9813 ])) : createCommentVNode("", true) 9814 ], 64); 9815 }), 256); 9816 }; 9817 } 9818}); 9819const _hoisted_1$A = ["data-title"]; 9820const _sfc_main$A = /* @__PURE__ */ defineComponent({ 9821 __name: "Submit", 9822 props: { 9823 version: {} 9824 }, 9825 setup(__props) { 9826 const store = useStore(); 9827 const valuesStore = useFilterValuesStore(); 9828 const props = __props; 9829 function doSubmitFilter() { 9830 store.currentPageNumber = 1; 9831 store.sendForm(props.version === 1); 9832 } 9833 function doResetFilter() { 9834 store.resetFilter(props.version === 2); 9835 } 9836 if (props.version === 1) { 9837 addEventListener("popstate", () => valuesStore.setFromCurrentUrl()); 9838 } 9839 return (_ctx, _cache) => { 9840 return openBlock(), createElementBlock("div", { 9841 class: normalizeClass(["EstateFilterItem-buttons", { "has-selection": unref(store).showReset }]) 9842 }, [ 9843 createBaseVNode("button", { 9844 class: "ButtonBase", 9845 type: "submit", 9846 onClick: _cache[0] || (_cache[0] = ($event) => doSubmitFilter()) 9847 }, toDisplayString(_ctx.$translate(unref(store).appVersion === "PoskiIndex" ? "filter_show_estates_short" : "filter_show_estates")) + " (" + toDisplayString(unref(store).totalCount) + ")", 1), 9848 createBaseVNode("span", { 9849 class: "EstateFilterItem-reset", 9850 onClick: _cache[1] || (_cache[1] = ($event) => doResetFilter()), 9851 "data-title": _ctx.$translate("filter_cancel_parameters") 9852 }, _cache[2] || (_cache[2] = [ 9853 createBaseVNode("svg", { 9854 width: "16", 9855 height: "16",
9856 viewBox: "0 0 329.3 329", 9857 xmlns: "http://www.w3.org/2000/svg" 9858 }, [ 9859 createBaseVNode("path", { d: "M194.8 164.8 323 36.6a21.3 21.3 0 1 0-30.2-30.2L164.6 134.6 36.4 6.4A21.3 21.3 0 1 0 6.3 36.6l128.2 128.2L6.3 293a21.3 21.3 0 1 0 30.1 30l128.2-128 128.2 128.2a21.3 21.3 0 0 0 30.2 0 21.3 21.3 0 0 0 0-30.1zm0 0" }) 9860 ], -1) 9861 ]), 8, _hoisted_1$A) 9862 ], 2); 9863 }; 9864 } 9865}); 9866const _hoisted_1$z = { class: "EstateItem" }; 9867const _hoisted_2$v = { class: "EstateItem-photo" }; 9868const _hoisted_3$n = ["src"]; 9869const _sfc_main$z = /* @__PURE__ */ defineComponent({ 9870 __name: "PropertiesFakeItem", 9871 setup(__props) { 9872 useStore(); 9873 const getPlaceholderImageSrc = () => { 9874 if (typeof window.assetLibrary["PlaceholderImage"] === "undefined") { 9875 return ""; 9876 } else { 9877 return window.assetLibrary["PlaceholderImage"].src; 9878 } 9879 }; 9880 return (_ctx, _cache) => { 9881 return openBlock(), createElementBlock("article", _hoisted_1$z, [ 9882 createBaseVNode("div", _hoisted_2$v, [ 9883 createBaseVNode("figure", null, [ 9884 createBaseVNode("img", { 9885 width: "600", 9886 height: "450", 9887 loading: "lazy", 9888 src: getPlaceholderImageSrc(), 9889 alt: "Zástupný img" 9890 }, null, 8, _hoisted_3$n) 9891 ]) 9892 ]), 9893 _cache[0] || (_cache[0] = createStaticVNode('<div class="EstateItem-text"><div class="EstateItem-title"><div class="fake-row"></div><div class="EstateItem-location"><div class="fake-row"></div></div></div><div class="EstateItem-paramList"><div class="fake-row"></div></div><div class="EstateItem-desc"><div class="fake-row"></div></div><div class="EstateItem-price"><div class="fake-row"></div></div><div class="EstateItem-button"><div class="fake-row"></div></div></div>', 1)) 9894 ]); 9895 }; 9896 } 9897}); 9898const _hoisted_1$y = { class: "estates-container" }; 9899const _hoisted_2$u = ["innerHTML"]; 9900const _hoisted_3$m = { class: "JS-preload-items preload-items" }; 9901const _hoisted_4$j = { class: "estates-container" }; 9902const _hoisted_5$f = { class: "info" }; 9903const _sfc_main$y = /* @__PURE__ */ defineComponent({ 9904 __name: "PropertiesList", 9905 setup(__props) { 9906 const store = useStore(); 9907 return (_ctx, _cache) => { 9908 return openBlock(), createElementBlock(Fragment, null, [ 9909 createBaseVNode("div", _hoisted_1$y, [ 9910 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).properties, (property) => { 9911 return withDirectives((openBlock(), createElementBlock("span", { 9912 innerHTML: property.html 9913 }, null, 8, _hoisted_2$u)), [ 9914 [vShow, typeof unref(store).properties !== "undefined" && unref(store).properties.length > 0] 9915 ]); 9916 }), 256)) 9917 ]), 9918 withDirectives(createBaseVNode("div", _hoisted_3$m, [ 9919 createBaseVNode("div", _hoisted_4$j, [ 9920 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).currentPageSize, (item) => { 9921 return openBlock(), createBlock(_sfc_main$z); 9922 }), 256)) 9923 ]) 9924 ], 512), [ 9925 [vShow, unref(store).showPreload] 9926 ]), 9927 withDirectives(createBaseVNode("div", _hoisted_5$f, _cache[0] || (_cache[0] = [ 9928 createTextVNode(" Omlouváme se, nepodaÅilo se nám najÃt nabÃdku, která by pÅesnÄ odpovÃdala vaÅ¡im požadavkům."), 9929 createBaseVNode("br", null, null, -1), 9930 createTextVNode(" Můžete zadat vaÅ¡i poptávku do naÅ¡eho "), 9931 createBaseVNode("a", { href: "/hlidaci-pes/" }, "hlÃdacÃho psa", -1), 9932 createTextVNode(" na webu. Jakmile najdeme nemovitost, která by odpovÃdala vaÅ¡im požadavkům budeme vás kontaktovat."), 9933 createBaseVNode("br", null, null, -1), 9934 createTextVNode(" V pÅÃpadÄ jakýchkoliv problému nás neváhejte kontaktovat na e-mailové adrese. ") 9935 ]), 512), [ 9936 [vShow, unref(store).showNotFound] 9937 ]) 9938 ], 64); 9939 }; 9940 } 9941}); 9942const _hoisted_1$x = ["value", "selected"]; 9943const _sfc_main$x = /* @__PURE__ */ defineComponent({ 9944 __name: "PageSize", 9945 setup(__props) { 9946 const store = useStore(); 9947 const defaultPageSizes = [10, 20, 40];
9948 const refreshPropertiesList = () => { 9949 store.sendForm(); 9950 }; 9951 return (_ctx, _cache) => { 9952 return openBlock(), createElementBlock("div", null, [ 9953 withDirectives(createBaseVNode("select", { 9954 name: "razeni", 9955 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(store).currentPageSize = $event), 9956 onChange: _cache[1] || (_cache[1] = ($event) => refreshPropertiesList()) 9957 }, [ 9958 (openBlock(), createElementBlock(Fragment, null, renderList(defaultPageSizes, (item) => { 9959 return createBaseVNode("option", { 9960 value: item, 9961 selected: item === unref(store).currentPageSize 9962 }, toDisplayString(item), 9, _hoisted_1$x); 9963 }), 64)) 9964 ], 544), [ 9965 [vModelSelect, unref(store).currentPageSize] 9966 ]) 9967 ]); 9968 }; 9969 } 9970}); 9971const _hoisted_1$w = { class: "pages pages_bottom" }; 9972const _hoisted_2$t = { class: "pagination" }; 9973const _hoisted_3$l = { href: "#" }; 9974const _hoisted_4$i = { href: "#" }; 9975const _hoisted_5$e = ["onClick"]; 9976const _hoisted_6$b = { href: "#" }; 9977const _hoisted_7$8 = { href: "#" }; 9978const _hoisted_8$6 = { href: "#" }; 9979const defaultStepsOffset = 2; 9980const _sfc_main$w = /* @__PURE__ */ defineComponent({ 9981 __name: "Paginator", 9982 setup(__props) { 9983 useFilterValuesStore(); 9984 const store = useStore(); 9985 function getSteps() { 9986 const maxStep = Math.ceil(store.totalCount / store.currentPageSize); 9987 const start = store.currentPageNumber - defaultStepsOffset < 1 ? 1 : store.currentPageNumber - defaultStepsOffset; 9988 const stop = store.currentPageNumber + defaultStepsOffset > maxStep ? maxStep : store.currentPageNumber + defaultStepsOffset; 9989 const step = 1; 9990 return Array.from( 9991 { length: (stop - start) / step + 1 }, 9992 (value, index) => start + index * step 9993 ); 9994 } 9995 function goTo(key) { 9996 var _a2; 9997 store.currentPageNumber = key; 9998 store.properties = []; 9999 store.sendForm(true); 10000 (_a2 = document.querySelector(".PortalList-main")) == null ? void 0 : _a2.scrollIntoView({ block: "start" }); 10001 } 10002 return (_ctx, _cache) => { 10003 return openBlock(), createElementBlock("div", _hoisted_1$w, [ 10004 createBaseVNode("ul", _hoisted_2$t, [ 10005 withDirectives(createBaseVNode("li", { 10006 class: "first", 10007 onClick: _cache[0] || (_cache[0] = ($event) => goTo(1)) 10008 }, [ 10009 createBaseVNode("a", _hoisted_3$l, toDisplayString(_ctx.$translate("filter_first")), 1) 10010 ], 512), [ 10011 [vShow, unref(store).currentPageNumber > 1] 10012 ]), 10013 withDirectives(createBaseVNode("li", { 10014 class: "prev", 10015 onClick: _cache[1] || (_cache[1] = ($event) => goTo(unref(store).currentPageNumber - 1)) 10016 }, [ 10017 createBaseVNode("a", _hoisted_4$i, toDisplayString(_ctx.$translate("filter_prev")), 1) 10018 ], 512), [ 10019 [vShow, unref(store).currentPageNumber > 1] 10020 ]), 10021 (openBlock(true), createElementBlock(Fragment, null, renderList(getSteps(), (item) => { 10022 return openBlock(), createElementBlock("li", { 10023 class: normalizeClass({ "active": item == unref(store).currentPageNumber }), 10024 key: item, 10025 onClick: ($event) => goTo(item) 10026 }, [ 10027 createBaseVNode("a", _hoisted_6$b, toDisplayString(item), 1) 10028 ], 10, _hoisted_5$e); 10029 }), 128)), 10030 withDirectives(createBaseVNode("li", { 10031 class: "next", 10032 onClick: _cache[2] || (_cache[2] = ($event) => goTo(unref(store).currentPageNumber + 1)) 10033 }, [ 10034 createBaseVNode("a", _hoisted_7$8, toDisplayString(_ctx.$translate("filter_next")), 1) 10035 ], 512), [ 10036 [vShow, unref(store).currentPageNumber < unref(store).totalCount / unref(store).currentPageSize] 10037 ]), 10038 withDirectives(createBaseVNode("li", { 10039 class: "last", 10040 onClick: _cache[3] || (_cache[3] = ($event) => goTo(Math.ceil(unref(store).totalCount / unref(store).currentPageSize))) 10041 }, [ 10042 createBaseVNode("a", _hoisted_8$6, toDisplayString(_ctx.$translate("filter_last")), 1
10042) 10043 ], 512), [ 10044 [vShow, unref(store).currentPageNumber < unref(store).totalCount / unref(store).currentPageSize] 10045 ]) 10046 ]) 10047 ]); 10048 }; 10049 } 10050}); 10051const _hoisted_1$v = ["selected", "value"]; 10052const _hoisted_2$s = ["data-order-by-value"]; 10053const _sfc_main$v = /* @__PURE__ */ defineComponent({ 10054 __name: "Sort", 10055 props: { 10056 staticOptions: {}, 10057 version: {} 10058 }, 10059 setup(__props) { 10060 const store = useStore(); 10061 const props = __props; 10062 const changeCurrentOrderBy = (currentTarget) => { 10063 store.currentOrderBy = currentTarget.getAttribute("data-order-by-value"); 10064 refreshPropertiesList(); 10065 }; 10066 const refreshPropertiesList = () => { 10067 store.currentPageNumber = 1; 10068 let asyncLoadProperties = store.definitions["PROPERTIES_VERSION"] === 1; 10069 if (asyncLoadProperties) { 10070 store.properties = []; 10071 } 10072 store.sendForm(asyncLoadProperties); 10073 }; 10074 return (_ctx, _cache) => { 10075 return props.version === "select" ? withDirectives((openBlock(), createElementBlock("select", { 10076 key: 0, 10077 id: "podle", 10078 name: "podle", 10079 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(store).currentOrderBy = $event), 10080 onChange: _cache[1] || (_cache[1] = ($event) => refreshPropertiesList()) 10081 }, [ 10082 (openBlock(true), createElementBlock(Fragment, null, renderList(props.staticOptions, (item, key) => { 10083 return openBlock(), createElementBlock("option", { 10084 selected: unref(store).currentOrderBy === key, 10085 value: item 10086 }, toDisplayString(_ctx.$translate(item)), 9, _hoisted_1$v); 10087 }), 256)) 10088 ], 544)), [ 10089 [vModelSelect, unref(store).currentOrderBy] 10090 ]) : props.version === "tabs" ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(props.staticOptions, (item, key) => { 10091 return openBlock(), createElementBlock("a", { 10092 href: "#", 10093 id: "podle", 10094 class: normalizeClass(["u-arrowunderline SortOption", { active: unref(store).currentOrderBy === key }]), 10095 onClick: _cache[2] || (_cache[2] = ($event) => changeCurrentOrderBy($event.currentTarget)), 10096 "data-order-by-value": key 10097 }, toDisplayString(_ctx.$translate(item)), 11, _hoisted_2$s); 10098 }), 256)) : createCommentVNode("", true); 10099 }; 10100 } 10101}); 10102const _hoisted_1$u = { class: "pager-ajax-next-page-content" }; 10103const _hoisted_2$r = ["data-last-page"]; 10104const _sfc_main$u = /* @__PURE__ */ defineComponent({ 10105 __name: "LoadMoreProperties", 10106 setup(__props) { 10107 const store = useStore();
10108 const loadMore = () => { 10109 let maxStep = Math.ceil(store.totalCount / store.currentPageSize); 10110 if (store.currentPageNumber + 1 <= maxStep) { 10111 store.currentPageNumber = store.currentPageNumber + 1; 10112 store.sendForm(true, true); 10113 } 10114 }; 10115 return (_ctx, _cache) => { 10116 return openBlock(), createElementBlock("div", _hoisted_1$u, [ 10117 createBaseVNode("div", { 10118 class: "ButtonBase pager", 10119 "data-last-page": _ctx.maxStep, 10120 onClick: _cache[0] || (_cache[0] = ($event) => loadMore()) 10121 }, toDisplayString(_ctx.$translate("list_more")), 9, _hoisted_2$r) 10122 ]); 10123 }; 10124 } 10125}); 10126const _hoisted_1$t = { class: "PortalList-top" }; 10127const _hoisted_2$q = { class: "full-row toggleFilter" }; 10128const _hoisted_3$k = { class: "EstateFilterLayout" }; 10129const _hoisted_4$h = { class: "u-textCenter full-row" }; 10130const _hoisted_5$d = { class: "PortalList-main" }; 10131const _hoisted_6$a = { class: "SortAndFilter" }; 10132const _sfc_main$t = /* @__PURE__ */ defineComponent({ 10133 __name: "KlasikPortal", 10134 props: { 10135 definitions: {} 10136 }, 10137 setup(__props) { 10138 const props = __props; 10139 const store = useStore(); 10140 const valuesStore = useFilterValuesStore(); 10141 const showFilter = ref(true); 10142 const toggleFilter = () => { 10143 showFilter.value = !showFilter.value; 10144 }; 10145 onMounted(() => { 10146 const map = document.getElementById("gmap"); 10147 map.addEventListener("mapChangeEvent", () => { 10148 valuesStore.setMapBoundsByBoundsString(event.detail.viewport); 10149 store.sendForm(true); 10150 }); 10151 map.addEventListener("mapPolygonDrawn", () => { 10152 valuesStore.setMapBoundsWGS84Polygon(event.detail.polygonWGS84); 10153 store.sendForm(true); 10154 }); 10155 store.sendForm(true); 10156 }); 10157 return (_ctx, _cache) => { 10158 return openBlock(), createElementBlock(Fragment, null, [ 10159 createBaseVNode("div", _hoisted_1$t, [ 10160 _cache[2] || (_cache[2] = createBaseVNode("h1", null, "NajdÄte si svou nemovitost", -1)), 10161 createBaseVNode("form", { 10162 method: "GET", 10163 onSubmit: _cache[1] || (_cache[1] = withModifiers(() => { 10164 }, ["prevent"])) 10165 }, [ 10166 createBaseVNode("div", _hoisted_2$q, [ 10167 createBaseVNode("a", { 10168 href: "#", 10169 onClick: _cache[0] || (_cache[0] = ($event) => toggleFilter()) 10170 }, toDisplayString(showFilter.value ? _ctx.$translate("close_filter") : _ctx.$translate("change_filter")), 1) 10171 ]), 10172 withDirectives(createBaseVNode("div", _hoisted_3$k, [ 10173 createVNode(_sfc_main$H, { 10174 version: props.definitions.PROPERTY_TYPE_VERSION, 10175 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 10176 }, null, 8, ["version", "staticOptions"]), 10177 createVNode(_sfc_main$B, { 10178 version: props.definitions.PROPERTY_SUB_TYPE_VERSION 10179 }, null, 8, ["version"]), 10180 createVNode(_sfc_main$G, { 10181 version: props.definitions.CONTRACT_TYPE_VERSION, 10182 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy 10183 }, null, 8, ["version", "staticOptions"]), 10184 createVNode(_sfc_main$E, { 10185 version: props.definitions.LOCALITY_VERSION, 10186 versionForeign: props.definitions.LOCALITY_FOREIGN_VERSION 10187 }, null, 8, ["version", "versionForeign"]), 10188 createVNode(_sfc_main$C, { 10189 version: props.definitions.PROPERTY_OWNERSHIP_VERSION 10190 }, null, 8, ["version"]), 10191 createVNode(_sfc_main$D, { 10192 staticOptions: props.definitions.STATIC_OPTIONS.furnished 10193 }, null, 8, ["staticOptions"]), 10194 createBaseVNode("div", _hoisted_4$h, [ 10195 createVNode(_sfc_main$A, { version: 0 }) 10196 ]) 10197 ], 512), [ 10198 [vShow, showFilter.value] 10199 ]) 10200 ], 32) 10201 ]), 10202 createBaseVNode("div", _hoisted_5$d, [ 10203 createBaseVNode("div", _hoisted_6$a, [ 10204 createVNode(_sfc_main$v, { 10205 version: props.definitions.SORT_VERSION, 10206 staticOptions: props.definitions.STATIC_OPTIONS.sort 10207 }, null, 8, ["version", "staticOptions"]), 10208 createVNode(_sfc_main$x, { class: "PageSize" }) 10209 ]), 10210 createVNode(_sfc_main$y, { 10211 version: props.definitions.PROPERTIES_VERSION 10212 }, null, 8, ["version"]), 10213 createVNode(_sfc_main$u), 10214 createVNode(_sfc_main$w, { 10215 version: props.definitions.PAGINATOR_VERSION 10216 }, null, 8, ["version"]) 10217 ]) 10218 ], 64); 10219 }; 10220 } 10221}); 10222const _hoisted_1$s = { 10223 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center", 10224 "data-filter-el": "price" 10225}; 10226const _hoisted_2$p = { class: "EstateFilterItem-layout" }; 10227const _hoisted_3$j = ["placeholder"]; 10228const _hoisted_4$g = ["placeholder"]; 10229const _sfc_main$s = /* @__PURE__ */ defineComponent({ 10230 __name: "Price", 10231 props: { 10232 version: {} 10233 }, 10234 setup(__props) { 10235 const valuesStore = useFilterValuesStore(); 10236 const props = __props; 10237 const formatPriceOd = (event2, value) => { 10238 if (isNaN(window.parseCena(event2.target.value))) { 10239 valuesStore.cena_od = ""; 10240 } else { 10241 valuesStore.cena_od = window.formatCena(window.parseCena(event2.target.value)); 10242 } 10243 }; 10244 const formatPriceDo = (event2, value) => { 10245 if (isNaN(window.parseCena(event2.target.value))) { 10246 valuesStore.cena_do = ""; 10247 } else { 10248 valuesStore.cena_do = window.formatCena(window.parseCena(event2.target.value)); 10249 } 10250 }; 10251 return (_ctx, _cache) => { 10252 return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$s, [ 10253 withDirectives(createBaseVNode("div", { class: "label" }, toDisplayString(_ctx.$translate("filter_price")), 513), [ 10254 [vShow, props.version === 1] 10255 ]), 10256 createBaseVNode("div", _hoisted_2$p, [ 10257 withDirectives(createBaseVNode("input", { 10258 name: "priceFrom", 10259 id: "priceFrom", 10260 type: "text", 10261 step: "1000",
10262 placeholder: _ctx.$translate("filter_price.from.placeholder"), 10263 onKeyup: _cache[0] || (_cache[0] = (ev) => formatPriceOd(ev)), 10264 "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(valuesStore).cena_od = $event) 10265 }, null, 40, _hoisted_3$j), [ 10266 [vModelText, unref(valuesStore).cena_od] 10267 ]), 10268 withDirectives(createBaseVNode("input", { 10269 name: "priceTo", 10270 id: "priceTo", 10271 type: "text", 10272 step: "1000", 10273 placeholder: _ctx.$translate("filter_price.to.placeholder"), 10274 onKeyup: _cache[2] || (_cache[2] = (ev) => formatPriceDo(ev)), 10275 "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(valuesStore).cena_do = $event) 10276 }, null, 40, _hoisted_4$g), [ 10277 [vModelText, unref(valuesStore).cena_do] 10278 ]) 10279 ]) 10280 ], 512)), [ 10281 [vShow, props.version !== 0] 10282 ]); 10283 }; 10284 } 10285}); 10286const _hoisted_1$r = ["placeholder"]; 10287const _hoisted_2$o = { class: "EstateFilterItem-layout" }; 10288const _hoisted_3$i = ["placeholder"]; 10289const _hoisted_4$f = ["placeholder"]; 10290const _sfc_main$r = /* @__PURE__ */ defineComponent({ 10291 __name: "Area", 10292 props: { 10293 version: {} 10294 }, 10295 setup(__props) { 10296 useStore(); 10297 const valuesStore = useFilterValuesStore(); 10298 const props = __props; 10299 return (_ctx, _cache) => { 10300 return withDirectives((openBlock(), createElementBlock("div", { 10301 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center", 10302 placeholder: _ctx.$translate("filter_plocha"), 10303 "data-filter-el": "area" 10304 }, [ 10305 withDirectives(createBaseVNode("div", { class: "label" }, toDisplayString(_ctx.$translate("filter_plocha")), 513), [ 10306 [vShow, props.version === 1] 10307 ]), 10308 createBaseVNode("div", _hoisted_2$o, [ 10309 withDirectives(createBaseVNode("input", { 10310 name: "areaFrom", 10311 id: "areaFrom", 10312 type: "number", 10313 placeholder: _ctx.$translate("filter_plocha_od"), 10314 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(valuesStore).plocha_od = $event) 10315 }, null, 8, _hoisted_3$i), [ 10316 [vModelText, unref(valuesStore).plocha_od] 10317 ]), 10318 withDirectives(createBaseVNode("input", { 10319 name: "areaTo", 10320 id: "areaTo", 10321 type: "number", 10322 placeholder: _ctx.$translate("filter_plocha_do"), 10323 "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(valuesStore).plocha_do = $event) 10324 }, null, 8, _hoisted_4$f), [ 10325 [vModelText, unref(valuesStore).plocha_do] 10326 ]) 10327 ]) 10328 ], 8, _hoisted_1$r)), [ 10329 [vShow, props.version !== 0] 10330 ]); 10331 }; 10332 } 10333}); 10334const _hoisted_1$q = { 10335 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center", 10336 "data-filter-el": "id-zs" 10337}; 10338const _hoisted_2$n = { 10339 class: "label", 10340 for: "id_zs" 10341}; 10342const _hoisted_3$h = ["placeholder"]; 10343const _sfc_main$q = /* @__PURE__ */ defineComponent({ 10344 __name: "IdZs", 10345 props: { 10346 version: {} 10347 }, 10348 setup(__props) { 10349 const valuesStore = useFilterValuesStore(); 10350 const props = __props; 10351 return (_ctx, _cache) => { 10352 return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$q, [ 10353 createBaseVNode("label", _hoisted_2$n, toDisplayString(_ctx.$translate("filter_id_zs")), 1), 10354 withDirectives(createBaseVNode("input", { 10355 placeholder: _ctx.$translate("filter_id_zs"), 10356 name: "id_zs", 10357 id: "id_zs", 10358 type: "text", 10359 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(valuesStore).id_zs = $event) 10360 }, null, 8, _hoisted_3$h), [ 10361 [vModelText, unref(valuesStore).id_zs] 10362 ]) 10363 ], 512)), [ 10364 [vShow, props.version === 1] 10365 ]); 10366 }; 10367 } 10368}); 10369const _hoisted_1$p = { 10370 key: 0, 10371 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemSubtype full-row" 10372}; 10373const _hoisted_2$m = { class: "label" }; 10374const _hoisted_3$g = { class: "EstateFilterItemSubtype-inner" }; 10375const _hoisted_4$e = { 10376 key: 0, 10377 class: "checkItem" 10378}; 10379const _hoisted_5$c = { for: "video" }; 10380const _hoisted_6$9 = { class: "checkItem-label" }; 10381const _hoisted_7$7 = { 10382 key: 1, 10383 class: "checkItem" 10384}; 10385const _hoisted_8$5 = { for: "matterport" }; 10386const _hoisted_9$5 = { class: "checkItem-label" }; 10387const _hoisted_10$5 = { 10388 key: 2, 10389 class: "checkItem" 10390}; 10391const _hoisted_11$5 = { for: "novinka" }; 10392const _hoisted_12$4 = { class: "checkItem-label" }; 10393const _hoisted_13$3 = { 10394 key: 3, 10395 class: "checkItem" 10396}; 10397const _hoisted_14$3 = { for: "doporucujeme" }; 10398const _hoisted_15$3 = { class: "checkItem-label" }; 10399const _hoisted_16$3 = { 10400 key: 4, 10401 class: "checkItem" 10402}; 10403const _hoisted_17$2 = { for: "sleva_zobrazit" }; 10404const _hoisted_18$2 = { class: "checkItem-label" }; 10405const _sfc_main$p = /* @__PURE__ */ defineComponent({
10406 __name: "AdvertisementInformation", 10407 setup(__props) { 10408 const store = useStore(); 10409 const valuesStore = useFilterValuesStore(); 10410 return (_ctx, _cache) => { 10411 return unref(store).showAdvertisementInformation ? (openBlock(), createElementBlock("div", _hoisted_1$p, [ 10412 createBaseVNode("div", _hoisted_2$m, toDisplayString(_ctx.$translate("filter_advertisement_information")), 1), 10413 createBaseVNode("div", _hoisted_3$g, [ 10414 unref(store).showAdvertisementInformationVideo ? (openBlock(), createElementBlock("div", _hoisted_4$e, [ 10415 createBaseVNode("label", _hoisted_5$c, [ 10416 withDirectives(createBaseVNode("input", { 10417 type: "checkbox", 10418 name: "video", 10419 id: "video", 10420 value: 1, 10421 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(valuesStore).video = $event) 10422 }, null, 512), [ 10423 [vModelCheckbox, unref(valuesStore).video] 10424 ]), 10425 _cache[5] || (_cache[5] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10426 createBaseVNode("span", _hoisted_6$9, toDisplayString(_ctx.$translate("filter_video")) + " (" + toDisplayString(unref(store).getCountValue("video", "true")) + ")", 1) 10427 ]) 10428 ])) : createCommentVNode("", true), 10429 unref(store).showAdvertisementInformationMatterport ? (openBlock(), createElementBlock("div", _hoisted_7$7, [ 10430 createBaseVNode("label", _hoisted_8$5, [ 10431 withDirectives(createBaseVNode("input", { 10432 type: "checkbox", 10433 name: "matterport", 10434 id: "matterport", 10435 value: 1, 10436 "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(valuesStore).matterport = $event) 10437 }, null, 512), [ 10438 [vModelCheckbox, unref(valuesStore).matterport] 10439 ]), 10440 _cache[6] || (_cache[6] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10441 createBaseVNode("span", _hoisted_9$5, toDisplayString(_ctx.$translate("filter_matterport")) + " (" + toDisplayString(unref(store).getCountValue("matterport", "true")) + ")", 1) 10442 ]) 10443 ])) : createCommentVNode("", true), 10444 unref(store).showAdvertisementInformationNovinka ? (openBlock(), createElementBlock("div", _hoisted_10$5, [ 10445 createBaseVNode("label", _hoisted_11$5, [ 10446 withDirectives(createBaseVNode("input", { 10447 type: "checkbox", 10448 name: "novinka", 10449 id: "novinka", 10450 value: 1, 10451 "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(valuesStore).novinka = $event) 10452 }, null, 512), [ 10453 [vModelCheckbox, unref(valuesStore).novinka] 10454 ]), 10455 _cache[7] || (_cache[7] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10456 createBaseVNode("span", _hoisted_12$4, toDisplayString(_ctx.$translate("filter_novinka")) + " (" + toDisplayString(unref(store).getCountValue("novinka", "true")) + ")", 1) 10457 ]) 10458 ])) : createCommentVNode("", true), 10459 unref(store).showAdvertisementInformationDoporucujeme ? (openBlock(), createElementBlock("div", _hoisted_13$3, [ 10460 createBaseVNode("label", _hoisted_14$3, [ 10461 withDirectives(createBaseVNode("input", { 10462 type: "checkbox", 10463 name: "doporucujeme", 10464 id: "doporucujeme", 10465 value: 1, 10466 "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(valuesStore).doporucujeme = $event) 10467 }, null, 512), [ 10468 [vModelCheckbox, unref(valuesStore).doporucujeme] 10469 ]), 10470 _cache[8] || (_cache[8] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10471 createBaseVNode("span", _hoisted_15$3, toDisplayString(_ctx.$translate("filter_doporucujeme")) + " (" + toDisplayString(unref(store).getCountValue("doporucujeme", "true")) + ")", 1) 10472 ]) 10473 ])) : createCommentVNode("", true),
10474 unref(store).showAdvertisementInformationSlevaZobrazit ? (openBlock(), createElementBlock("div", _hoisted_16$3, [ 10475 createBaseVNode("label", _hoisted_17$2, [ 10476 withDirectives(createBaseVNode("input", { 10477 type: "checkbox", 10478 name: "sleva_zobrazit", 10479 id: "sleva_zobrazit", 10480 value: 1, 10481 "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(valuesStore).sleva_zobrazit = $event) 10482 }, null, 512), [ 10483 [vModelCheckbox, unref(valuesStore).sleva_zobrazit] 10484 ]), 10485 _cache[9] || (_cache[9] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10486 createBaseVNode("span", _hoisted_18$2, toDisplayString(_ctx.$translate("filter_sleva_zobrazit")) + " (" + toDisplayString(unref(store).getCountValue("sleva_zobrazit", "true")) + ")", 1) 10487 ]) 10488 ])) : createCommentVNode("", true) 10489 ]) 10490 ])) : createCommentVNode("", true); 10491 }; 10492 } 10493}); 10494const _hoisted_1$o = { class: "EstateFilterLayout" }; 10495const _hoisted_2$l = { class: "empty-row" }; 10496const _hoisted_3$f = { class: "u-textCenter full-row" }; 10497const _hoisted_4$d = { class: "u-textCenter full-row" }; 10498const _sfc_main$o = /* @__PURE__ */ defineComponent({ 10499 __name: "Poski", 10500 props: { 10501 definitions: {} 10502 }, 10503 setup(__props) { 10504 const props = __props; 10505 const showOrHideIdZs = ref(false); 10506 const showOrHidePrice = ref(false); 10507 const showOrHideArea = ref(false); 10508 const showOrHideAdvertisementInformation = ref(false); 10509 const filterMoreOpened = ref(false); 10510 const toggleMoreFilterInputs = () => { 10511 showOrHideIdZs.value = !showOrHideIdZs.value && props.definitions.ID_ZS_VERSION !== 0; 10512 showOrHidePrice.value = !showOrHidePrice.value && props.definitions.PRICE_VERSION !== 0; 10513 showOrHideArea.value = !showOrHideArea.value && props.definitions.AREA_VERSION !== 0; 10514 showOrHideAdvertisementInformation.value = !showOrHideAdvertisementInformation.value && props.definitions.ADVERTISEMENT_INFORMATION_VERSION !== 0; 10515 filterMoreOpened.value = !filterMoreOpened.value; 10516 }; 10517 const canShowMoreElement = () => { 10518 if (props.definitions.PRICE_VERSION === 0 && props.definitions.AREA_VERSION === 0 && props.definitions.ID_ZS_ALLOW === 0) { 10519 return false; 10520 } 10521 return true; 10522 }; 10523 onMounted(() => { 10524 const url = new URL(window.location.href); 10525 const shouldHideFilterOnFirstView = url.searchParams && url.searchParams.get("hideFilter") == "1"; 10526 if (window.innerWidth <= 768 || shouldHideFilterOnFirstView) { 10527 document.querySelector("#PartialListFilter").style.display = "none"; 10528 document.querySelector(".toggleFilter .link").classList.toggle("showFilter"); 10529 document.querySelector(".toggleFilter .showHide").textContent = window.poskiLocale["filtr_zobrazit"]; 10530 } 10531 }); 10532 return (_ctx, _cache) => { 10533 return openBlock(), createElementBlock(Fragment, null, [ 10534 createBaseVNode("form", { 10535 method: "GET", 10536 onSubmit: _cache[1] || (_cache[1] = withModifiers(() => { 10537 }, ["prevent"])) 10538 }, [ 10539 createBaseVNode("div", _hoisted_1$o, [ 10540 createVNode(_sfc_main$G, { 10541 version: props.definitions.CONTRACT_TYPE_VERSION, 10542 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy, 10543 countsVersion: props.definitions.CONTRACT_TYPE_COUNTS_VERSION 10544 }, null, 8, ["version", "staticOptions", "countsVersion"]), 10545 createVNode(_sfc_main$H, { 10546 version: props.definitions.PROPERTY_TYPE_VERSION, 10547 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 10548 }, null, 8, ["version", "staticOptions"]), 10549 createVNode(_sfc_main$B, { 10550 version: props.definitions.PROPERTY_SUB_TYPE_VERSION, 10551 countsVersion: props.definitions.PROPERTY_SUB_TYPE_COUNTS_VERSION 10552 }, null, 8, ["version", "countsVersion"]), 10553 createVNode(_sfc_main$C, { 10554 version: props.definitions.PROPERTY_OWNERSHIP_VERSION 10555 }, null, 8, ["version"]), 10556 createVNode(_sfc_main$E, { 10557 version: props.definitions.LOCALITY_VERSION, 10558 versionForeign: props.definitions.LOCALITY_FOREIGN_VERSION 10559 }, null, 8, ["version", "versionForeign"]), 10560 withDirectives(createVNode(_sfc_main$p, { 10561 version: props.definitions.ADVERTISEMENT_INFORMATION_VERSION 10562 }, null, 8, ["version"]), [ 10563 [vShow, showOrHideAdvertisementInformation.value] 10564 ]), 10565 withDirectives(createVNode(_sfc_main$q, { 10566 version: props.definitions.ID_ZS_ALLOW 10567 }, null, 8, ["version"]), [ 10568 [vShow, showOrHideIdZs.value || props.definitions.ID_ZS_VERSION === 1] 10569 ]), 10570 withDirectives(createBaseVNode("div", _hoisted_2$l, null, 512), [ 10571 [vShow, showOrHideIdZs.value || props.definitions.ID_ZS_VERSION === 1] 10572 ]), 10573 withDirectives(createVNode(_sfc_main$s, { 10574 version: props.definitions.PRICE_VERSION 10575 }, null, 8, ["version"]), [ 10576 [vShow, showOrHidePrice.value] 10577 ]), 10578 withDirectives(createVNode(_sfc_main$r, { 10579 version: props.definitions.AREA_VERSION 10580 }, null, 8, ["version"]), [ 10581 [vShow, showOrHideArea.value] 10582 ]), 10583 withDirectives(createBaseVNode("div", _hoisted_3$f, [ 10584 createBaseVNode("span", { 10585 class: "showLessOrMoreButton", 10586 onClick: _cache[0] || (_cache[0] = ($event) => toggleMoreFilterInputs()) 10587 }, [ 10588 (openBlock(), createElementBlock("svg", { 10589 class: normalizeClass({ "rotatedSVG": filterMoreOpened.value }), 10590 xmlns: "http://www.w3.org/2000/svg",
10591 viewBox: "0 0 320 512", 10592 width: "15", 10593 height: "14" 10594 }, _cache[2] || (_cache[2] = [ 10595 createBaseVNode("path", { 10596 fill: "currentColor", 10597 d: "M151.5 347.8L3.5 201c-4.7-4.7-4.7-12.3 0-17l19.8-19.8c4.7-4.7 12.3-4.7 17 0L160 282.7l119.7-118.5c4.7-4.7 12.3-4.7 17 0l19.8 19.8c4.7 4.7 4.7 12.3 0 17l-148 146.8c-4.7 4.7-12.3 4.7-17 0z" 10598 }, null, -1) 10599 ]), 2)), 10600 createTextVNode(" " + toDisplayString(filterMoreOpened.value ? _ctx.$translate("filter_less") : _ctx.$translate("filter_more")), 1) 10601 ]) 10602 ], 512), [ 10603 [vShow, canShowMoreElement()] 10604 ]), 10605 createBaseVNode("div", _hoisted_4$d, [ 10606 createVNode(_sfc_main$A, { version: 0 }) 10607 ]) 10608 ]) 10609 ], 32), 10610 0 !== props.definitions.PROPERTIES_VERSION ? (openBlock(), createBlock(_sfc_main$y, { key: 0 })) : createCommentVNode("", true) 10611 ], 64); 10612 }; 10613 } 10614}); 10615const Poski_vue_vue_type_style_index_0_lang = ""; 10616const _hoisted_1$n = { class: "EstateFilterLayout" }; 10617const _sfc_main$n = /* @__PURE__ */ defineComponent({ 10618 __name: "PoskiIndex", 10619 props: { 10620 definitions: {} 10621 }, 10622 setup(__props) { 10623 const props = __props; 10624 return (_ctx, _cache) => { 10625 return openBlock(), createElementBlock("form", { 10626 method: "GET", 10627 onSubmit: _cache[0] || (_cache[0] = withModifiers(() => { 10628 }, ["prevent"])) 10629 }, [ 10630 createBaseVNode("div", _hoisted_1$n, [ 10631 createVNode(_sfc_main$G, { 10632 version: props.definitions.CONTRACT_TYPE_VERSION, 10633 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy, 10634 countsVersion: props.definitions.CONTRACT_TYPE_COUNTS_VERSION 10635 }, null, 8, ["version", "staticOptions", "countsVersion"]), 10636 createVNode(_sfc_main$H, { 10637 version: props.definitions.PROPERTY_TYPE_VERSION, 10638 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 10639 }, null, 8, ["version", "staticOptions"]), 10640 createVNode(_sfc_main$E, { 10641 version: props.definitions.LOCALITY_VERSION, 10642 versionForeign: props.definitions.LOCALITY_FOREIGN_VERSION 10643 }, null, 8, ["version", "versionForeign"]), 10644 createVNode(_sfc_main$s, { 10645 version: props.definitions.PRICE_VERSION 10646 }, null, 8, ["version"]), 10647 createVNode(_sfc_main$A, { version: 2 }) 10648 ]) 10649 ], 32); 10650 }; 10651 } 10652}); 10653const _hoisted_1$m = { class: "EstateFilterLayout" }; 10654const _hoisted_2$k = { class: "u-textCenter full-row" }; 10655const _sfc_main$m = /* @__PURE__ */ defineComponent({ 10656 __name: "PoskiSimple", 10657 props: { 10658 definitions: {} 10659 }, 10660 setup(__props) { 10661 const props = __props; 10662 return (_ctx, _cache) => { 10663 return openBlock(), createElementBlock("form", { 10664 method: "GET", 10665 onSubmit: _cache[0] || (_cache[0] = withModifiers(() => { 10666 }, ["prevent"])) 10667 }, [ 10668 createBaseVNode("div", _hoisted_1$m, [ 10669 createVNode(_sfc_main$G, { 10670 version: props.definitions.CONTRACT_TYPE_VERSION, 10671 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy, 10672 countsVersion: props.definitions.CONTRACT_TYPE_COUNTS_VERSION 10673 }, null, 8, ["version", "staticOptions", "countsVersion"]), 10674 createVNode(_sfc_main$H, { 10675 version: props.definitions.PROPERTY_TYPE_VERSION, 10676 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 10677 }, null, 8, ["version", "staticOptions"]), 10678 createVNode(_sfc_main$s, { 10679 version: props.definitions.PRICE_VERSION 10680 }, null, 8, ["version"]), 10681 createBaseVNode("div", _hoisted_2$k, [ 10682 createVNode(_sfc_main$A, { version: 0 }) 10683 ]) 10684 ]) 10685 ], 32); 10686 }; 10687 } 10688}); 10689const PoskiSimple_vue_vue_type_style_index_0_lang = ""; 10690const _hoisted_1$l = { 10691 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center full-row", 10692 "data-filter-el": "select-country" 10693}; 10694const _hoisted_2$j = { 10695 for: "country", 10696 class: "label" 10697}; 10698const _hoisted_3$e = ["value"]; 10699const _sfc_main$l = /* @__PURE__ */ defineComponent({ 10700 __name: "Country", 10701 setup(__props) { 10702 const store = useStore(); 10703 const valuesStore = useFilterValuesStore(); 10704 const idStatChange = (idStat) => { 10705 if (idStat) { 10706 valuesStore.idKraje = []; 10707 } 10708 valuesStore.idStat = idStat; 10709 }; 10710 return (_ctx, _cache) => { 10711 return openBlock(), createElementBlock("div", _hoisted_1$l, [ 10712 createBaseVNode("label", _hoisted_2$j, toDisplayString(_ctx.$translate("filter_country")), 1), 10713 createBaseVNode("select", { 10714 id: "country", 10715 name: "country", 10716 onChange: _cache[0] || (_cache[0] = (ev) => idStatChange(ev.currentTarget.value)) 10717 }, [ 10718 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).inputs.idStat.choices, (country, idCountry) => { 10719 return openBlock(), createElementBlock("option", { 10720 key: idCountry, 10721 value: idCountry 10722 }, [ 10723 createTextVNode(toDisplayString(country) + " ", 1), 10724 unref(store).getCountValue("idStat", idCountry) !== null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 10725 createTextVNode("(" + toDisplayString(unref(store).getCountValue("idStat", idCountry)) + ")", 1) 10726 ], 64)) : createCommentVNode("", true) 10727 ], 8, _hoisted_3$e); 10728 }), 128)) 10729 ], 32) 10730 ]); 10731 }; 10732 } 10733}); 10734const _hoisted_1$k = { class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center full-row" }; 10735const _hoisted_2$i = { class: "label" }; 10736const _hoisted_3$d = { class: "EstateFilterItemBuildingType-inner" }; 10737const _hoisted_4$c = { class: "checkItem" }; 10738const _hoisted_5$b = ["for"]; 10739const _hoisted_6$8 = ["id", "value"]; 10740const _hoisted_7$6 = { class: "checkItem-label" }; 10741const _sfc_main$k = /* @__PURE__ */ defineComponent({ 10742 __name: "BuildingType", 10743 setup(__props) { 10744 const store = useStore(); 10745 const valuesStore = useFilterValuesStore(); 10746 return (_ctx, _cache) => { 10747 return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$k, [ 10748 createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.$translate("filter_building_type")), 1), 10749 createBaseVNode("div", _hoisted_3$d, [ 10750 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).inputs.building_type.choices, (buildingType, idBuildingType) => { 10751 return openBlock(), createElementBlock("div", _hoisted_4$c, [ 10752 createBaseVNode("label", { 10753 for: "EstateFilterItemBuildingType-" + idBuildingType 10754 }, [ 10755 withDirectives(createBaseVNode("input", { 10756 type: "checkbox", 10757 name: "building_type", 10758 id: "EstateFilterItemBuildingType-" + idBuildingType, 10759 value: idBuildingType, 10760 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(valuesStore).building_type = $event) 10761 }, null, 8, _hoisted_6$8), [ 10762 [vModelCheckbox, unref(valuesStore).building_type] 10763 ]), 10764 _cache[1] || (_cache[1] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10765 createBaseVNode("span", _hoisted_7$6, toDisplayString(buildingType) + " (" + toDisplayString(unref(store).getCountValue("building_type", idBuildingType)) + ")", 1) 10766 ], 8, _hoisted_5$b) 10767 ]); 10768 }), 256)) 10769 ]) 10770 ], 512)), [ 10771 [vShow, unref(store).showBuildingType] 10772 ]); 10773 }; 10774 } 10775}); 10776const _hoisted_1$j = { class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center full-row" }; 10777const _hoisted_2$h = { class: "label" }; 10778const _hoisted_3$c = { class: "EstateFilterItemBuildingType-inner" }; 10779const _hoisted_4$b = { 10780 key: 0, 10781 class: "checkItem" 10782}; 10783const _hoisted_5$a = { for: "balcony" }; 10784const _hoisted_6$7 = { class: "checkItem-label" }; 10785const _hoisted_7$5 = { 10786 key: 1, 10787 class: "checkItem" 10788}; 10789const _hoisted_8$4 = { for: "loggie" }; 10790const _hoisted_9$4 = { class: "checkItem-label" }; 10791const _hoisted_10$4 = { 10792 key: 2, 10793 class: "checkItem" 10794}; 10795const _hoisted_11$4 = { for: "garden" }; 10796const _hoisted_12$3 = { class: "checkItem-label" }; 10797const _hoisted_13$2 = { 10798 key: 3, 10799 class: "checkItem" 10800}; 10801const _hoisted_14$2 = { for: "terrace" }; 10802const _hoisted_15$2 = { class: "checkItem-label" }; 10803const _hoisted_16$2 = { 10804 key: 4, 10805 class: "checkItem" 10806}; 10807const _hoisted_17$1 = { for: "cellar" }; 10808const _hoisted_18$1 = { class: "checkItem-label" }; 10809const _hoisted_19$1 = { 10810 key: 5,
10811 class: "checkItem" 10812}; 10813const _hoisted_20$1 = { for: "parking" }; 10814const _hoisted_21$1 = { class: "checkItem-label" }; 10815const _hoisted_22$1 = { 10816 key: 6, 10817 class: "checkItem" 10818}; 10819const _hoisted_23$1 = { for: "garage" }; 10820const _hoisted_24$1 = { class: "checkItem-label" }; 10821const _hoisted_25$1 = { 10822 key: 7, 10823 class: "checkItem" 10824}; 10825const _hoisted_26$1 = { for: "vytah" }; 10826const _hoisted_27$1 = { class: "checkItem-label" }; 10827const _hoisted_28$1 = { 10828 key: 8, 10829 class: "checkItem" 10830}; 10831const _hoisted_29$1 = { for: "pristup" }; 10832const _hoisted_30$1 = { class: "checkItem-label" }; 10833const _sfc_main$j = /* @__PURE__ */ defineComponent({ 10834 __name: "AdditionalParameters", 10835 setup(__props) { 10836 const store = useStore(); 10837 const valuesStore = useFilterValuesStore(); 10838 return (_ctx, _cache) => { 10839 return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$j, [ 10840 createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.$translate("filter_additional_parameters")), 1), 10841 createBaseVNode("div", _hoisted_3$c, [ 10842 unref(store).showBalcony ? (openBlock(), createElementBlock("div", _hoisted_4$b, [ 10843 createBaseVNode("label", _hoisted_5$a, [ 10844 withDirectives(createBaseVNode("input", { 10845 type: "checkbox", 10846 name: "balcony", 10847 id: "balcony", 10848 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(valuesStore).balcony = $event) 10849 }, null, 512), [ 10850 [vModelCheckbox, unref(valuesStore).balcony] 10851 ]), 10852 _cache[9] || (_cache[9] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10853 createBaseVNode("span", _hoisted_6$7, toDisplayString(_ctx.$translate("filter_balcony")) + " (" + toDisplayString(unref(store).getCountValue("balcony", "true")) + ")", 1) 10854 ]) 10855 ])) : createCommentVNode("", true), 10856 unref(store).showLoggie ? (openBlock(), createElementBlock("div", _hoisted_7$5, [ 10857 createBaseVNode("label", _hoisted_8$4, [ 10858 withDirectives(createBaseVNode("input", { 10859 type: "checkbox", 10860 name: "loggie", 10861 id: "loggie", 10862 "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(valuesStore).loggie = $event) 10863 }, null, 512), [ 10864 [vModelCheckbox, unref(valuesStore).loggie] 10865 ]), 10866 _cache[10] || (_cache[10] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10867 createBaseVNode("span", _hoisted_9$4, toDisplayString(_ctx.$translate("filter_loggie")) + " (" + toDisplayString(unref(store).getCountValue("loggie", "true")) + ")", 1) 10868 ]) 10869 ])) : createCommentVNode("", true), 10870 unref(store).showGarden ? (openBlock(), createElementBlock("div", _hoisted_10$4, [ 10871 createBaseVNode("label", _hoisted_11$4, [ 10872 withDirectives(createBaseVNode("input", { 10873 type: "checkbox", 10874 name: "garden", 10875 id: "garden", 10876 "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(valuesStore).garden = $event) 10877 }, null, 512), [ 10878 [vModelCheckbox, unref(valuesStore).garden] 10879 ]), 10880 _cache[11] || (_cache[11] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10881 createBaseVNode("span", _hoisted_12$3, toDisplayString(_ctx.$translate("filter_garden")) + " (" + toDisplayString(unref(store).getCountValue("garden", "true")) + ")", 1) 10882 ]) 10883 ])) : createCommentVNode("", true), 10884 unref(store).showTerrace ? (openBlock(), createElementBlock("div", _hoisted_13$2, [ 10885 createBaseVNode("label", _hoisted_14$2, [ 10886 withDirectives(createBaseVNode("input", { 10887 type: "checkbox", 10888 name: "terrace", 10889 id: "terrace", 10890 "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(valuesStore).terrace = $event) 10891 }, null, 512), [ 10892 [vModelCheckbox, unref(valuesStore).terrace] 10893 ]), 10894 _cache[12] || (_cache[12] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10895 createBaseVNode("span", _hoisted_15$2, toDisplayString(_ctx.$translate("filter_terrace")) + " (" + toDisplayString(unref(store).getCountValue("terrace", "true")) + ")", 1) 10896 ]) 10897 ])) : createCommentVNode("", true), 10898 unref(store).showCellar ? (openBlock(), createElementBlock("div", _hoisted_16$2, [ 10899 createBaseVNode("label", _hoisted_17$1, [ 10900 withDirectives(createBaseVNode("input", { 10901 type: "checkbox", 10902 name: "cellar", 10903 id: "cellar", 10904 "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(valuesStore).cellar = $event) 10905 }, null, 512), [ 10906 [vModelCheckbox, unref(valuesStore).cellar] 10907 ]), 10908 _cache[13] || (_cache[13] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10909 createBaseVNode("span", _hoisted_18$1, toDisplayString(_ctx.$translate("filter_cellar")) + " (" + toDisplayString(unref(store).getCountValue("cellar", "true")) + ")", 1) 10910 ]) 10911 ])) : createCommentVNode("", true), 10912 unref(store).showParking ? (openBlock(), createElementBlock("div", _hoisted_19$1, [ 10913 createBaseVNode("label", _hoisted_20$1, [ 10914 withDirectives(createBaseVNode("input", { 10915 type: "checkbox", 10916 name: "parking", 10917 id: "parking", 10918 "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(valuesStore).parking = $event) 10919 }, null, 512), [ 10920 [vModelCheckbox, unref(valuesStore).parking] 10921 ]), 10922 _cache[14] || (_cache[14] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10923 createBaseVNode("span", _hoisted_21$1, toDisplayString(_ctx.$translate("filter_parking")) + " (" + toDisplayString(unref(store).getCountValue("parking", "true")) + ")", 1) 10924 ]) 10925 ])) : createCommentVNode("", true), 10926 unref(store).showGarage ? (openBlock(), createElementBlock("div", _hoisted_22$1, [ 10927 createBaseVNode("label", _hoisted_23$1, [ 10928 withDirectives(createBaseVNode("input", { 10929 type: "checkbox", 10930 name: "garage", 10931 id: "garage", 10932 "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(valuesStore).garage = $event) 10933 }, null, 512), [ 10934 [vModelCheckbox, unref(valuesStore).garage] 10935 ]), 10936 _cache[15] || (_cache[15] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10937 createBaseVNode("span", _hoisted_24$1, toDisplayString(_ctx.$translate("filter_garage")) + " (" + toDisplayString(unref(store).getCountValue("garage", "true")) + ")", 1) 10938 ]) 10939 ])) : createCommentVNode("", true), 10940 unref(store).showVytah ? (openBlock(), createElementBlock("div", _hoisted_25$1, [ 10941 createBaseVNode("label", _hoisted_26$1, [ 10942 withDirectives(createBaseVNode("input", { 10943 type: "checkbox", 10944 name: "vytah", 10945 id: "vytah", 10946 "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(valuesStore).vytah = $event) 10947 }, null, 512), [ 10948 [vModelCheckbox, unref(valuesStore).vytah] 10949 ]), 10950 _cache[16] || (_cache[16] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10951 createBaseVNode("span", _hoisted_27$1, toDisplayString(_ctx.$translate("filter_vytah")) + " (" + toDisplayString(unref(store).getCountValue("vytah", "true")) + ")", 1) 10952 ]) 10953 ])) : createCommentVNode("", true), 10954 unref(store).showPristup ? (openBlock(), createElementBlock("div", _hoisted_28$1, [ 10955 createBaseVNode("label", _hoisted_29$1, [ 10956 withDirectives(createBaseVNode("input", { 10957 type: "checkbox", 10958 name: "pristup", 10959 id: "pristup", 10960 "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(valuesStore).pristup = $event) 10961 }, null, 512), [ 10962 [vModelCheckbox, unref(valuesStore).pristup] 10963 ]), 10964 _cache[17] || (_cache[17] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10965 createBaseVNode("span", _hoisted_30$1, toDisplayString(_ctx.$translate("filter_pristup")) + " (" + toDisplayString(unref(store).getCountValue("pristup", "true")) + ")", 1) 10966 ]) 10967 ])) : createCommentVNode("", true) 10968 ]) 10969 ], 512)), [ 10970 [vShow, unref(store).showAdditional] 10971 ]); 10972 }; 10973 } 10974}); 10975const _hoisted_1$i = { class: "EstateFilterItem EstateFilterItem-inline EstateFilterItemPrivateOffer" }; 10976const _hoisted_2$g = { class: "EstateFilterItemPrivateOffer-inner" }; 10977const _hoisted_3$b = { class: "checkItem" };
10978const _hoisted_4$a = { for: "soukroma_inzerce" }; 10979const _hoisted_5$9 = { class: "checkItem-label" }; 10980const _sfc_main$i = /* @__PURE__ */ defineComponent({ 10981 __name: "PrivateOffer", 10982 setup(__props) { 10983 const store = useStore(); 10984 const valuesStore = useFilterValuesStore(); 10985 return (_ctx, _cache) => { 10986 return openBlock(), createElementBlock("div", _hoisted_1$i, [ 10987 createBaseVNode("div", _hoisted_2$g, [ 10988 createBaseVNode("div", _hoisted_3$b, [ 10989 createBaseVNode("label", _hoisted_4$a, [ 10990 withDirectives(createBaseVNode("input", { 10991 type: "checkbox", 10992 name: "soukroma_inzerce", 10993 id: "soukroma_inzerce", 10994 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(valuesStore).soukroma_inzerce = $event) 10995 }, null, 512), [ 10996 [vModelCheckbox, unref(valuesStore).soukroma_inzerce] 10997 ]), 10998 _cache[1] || (_cache[1] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 10999 createBaseVNode("span", _hoisted_5$9, toDisplayString(_ctx.$translate("filter_soukroma_inzerce")) + " (" + toDisplayString(unref(store).getCountValue("soukroma_inzerce", "ano")) + ")", 1) 11000 ]) 11001 ]) 11002 ]) 11003 ]); 11004 }; 11005 } 11006}); 11007const _hoisted_1$h = { class: "PortalList-top" }; 11008const _hoisted_2$f = { class: "PortalList-title" }; 11009const _hoisted_3$a = { class: "toggleFilter" }; 11010const _hoisted_4$9 = { class: "EstateFilterLayout" }; 11011const _hoisted_5$8 = { class: "EstateFilterItem EstateFilterItem-inline EstateFilterPrivateOffer full-row" }; 11012const _hoisted_6$6 = { class: "label" }; 11013const _hoisted_7$4 = { class: "u-textCenter full-row" }; 11014const _hoisted_8$3 = { class: "PortalList-main" }; 11015const _hoisted_9$3 = { class: "PortalList-header" }; 11016const _hoisted_10$3 = { class: "estatePortal_sortForm" }; 11017const _hoisted_11$3 = { class: "estatePortal__sort-button" }; 11018const _hoisted_12$2 = { class: "PortalList-limit" }; 11019const _sfc_main$h = /* @__PURE__ */ defineComponent({ 11020 __name: "jenreality", 11021 props: { 11022 definitions: {} 11023 }, 11024 setup(__props) { 11025 const props = __props; 11026 const store = useStore(); 11027 const valuesStore = useFilterValuesStore(); 11028 const showFilter = ref(false); 11029 const toggleFilter = () => { 11030 showFilter.value = !showFilter.value; 11031 }; 11032 onMounted(() => { 11033 const map = document.getElementById("gmap"); 11034 map.addEventListener("mapChangeEvent", (event2) => { 11035 valuesStore.setMapBoundsByBoundsString(event2.detail.viewport); 11036 store.sendForm(true); 11037 }); 11038 map.addEventListener("mapPolygonDrawn", (event2) => { 11039 valuesStore.setMapBoundsWGS84Polygon(event2.detail.polygonWGS84); 11040 store.sendForm(true); 11041 }); 11042 store.sendForm(true); 11043 if (window.innerWidth <= 768) { 11044 showFilter.value = false; 11045 } 11046 }); 11047 return (_ctx, _cache) => { 11048 return openBlock(), createElementBlock(Fragment, null, [ 11049 createBaseVNode("div", _hoisted_1$h, [ 11050 createBaseVNode("h1", _hoisted_2$f, toDisplayString(props.definitions.CUSTOM_TITLE), 1), 11051 createBaseVNode("form", { 11052 method: "GET", 11053 onSubmit: _cache[1] || (_cache[1] = withModifiers(() => { 11054 }, ["prevent"])) 11055 }, [ 11056 createBaseVNode("div", _hoisted_3$a, [ 11057 createBaseVNode("button", { 11058 class: normalizeClass("ButtonBase ButtonBase--outline ButtonBase--small link " + (!showFilter.value ? "showFilter" : "")), 11059 onClick: _cache[0] || (_cache[0] = ($event) => toggleFilter()) 11060 }, [ 11061 showFilter.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 11062 createTextVNode(toDisplayString(_ctx.$translate("close_filter")), 1) 11063 ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [ 11064 createTextVNode(toDisplayString(_ctx.$translate("change_filter")), 1) 11065 ], 64)) 11066 ], 2) 11067 ]), 11068 withDirectives(createBaseVNode("div", _hoisted_4$9, [ 11069 createVNode(_sfc_main$G, { 11070 version: props.definitions.CONTRACT_TYPE_VERSION, 11071 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy, 11072 countsVersion: props.definitions.CONTRACT_TYPE_COUNTS_VERSION 11073 }, null, 8, ["version", "staticOptions", "countsVersion"]), 11074 createVNode(_sfc_main$H, { 11075 version: props.definitions.PROPERTY_TYPE_VERSION, 11076 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 11077 }, null, 8, ["version", "staticOptions"]), 11078 createVNode(_sfc_main$B, { 11079 version: props.definitions.PROPERTY_SUB_TYPE_VERSION, 11080 countsVersion: props.definitions.PROPERTY_SUB_TYPE_COUNTS_VERSION 11081 }, null, 8, ["version", "countsVersion"]), 11082 createVNode(_sfc_main$l), 11083 createVNode(_sfc_main$E, { 11084 version: props.definitions.LOCALITY_VERSION, 11085 versionForeign: props.definitions.LOCALITY_FOREIGN_VERSION 11086 }, null, 8, ["version", "versionForeign"]), 11087 createVNode(_sfc_main$C, { 11088 version: props.definitions.PROPERTY_OWNERSHIP_VERSION 11089 }, null, 8, ["version"]), 11090 createVNode(_sfc_main$j), 11091 createVNode(_sfc_main$k), 11092 createVNode(_sfc_main$s, { 11093 version: props.definitions.PRICE_VERSION 11094 }, null, 8, ["version"]), 11095 createVNode(_sfc_main$r, { 11096 version: props.definitions.AREA_VERSION 11097 }, null, 8, ["version"]), 11098 createBaseVNode("div", _hoisted_5$8, [ 11099 createBaseVNode("label", _hoisted_6$6, toDisplayString(_ctx.$translate("other")), 1), 11100 createVNode(_sfc_main$i) 11101 ]), 11102 createBaseVNode("div", _hoisted_7$4, [ 11103 createVNode(_sfc_main$A, { version: 0 }) 11104 ]) 11105 ], 512), [ 11106 [vShow, showFilter.value] 11107 ]) 11108 ], 32) 11109 ]), 11110 createBaseVNode("div", _hoisted_8$3, [ 11111 createBaseVNode("div", _hoisted_9$3, [ 11112 createBaseVNode("div", _hoisted_10$3, [ 11113 createBaseVNode("div", _hoisted_11$3, [ 11114 createTextVNode(toDisplayString(_ctx.$translate("sort_by")) + ": ", 1), 11115 createVNode(_sfc_main$v, { 11116 version: props.definitions.SORT_VERSION, 11117 staticOptions: props.definitions.STATIC_OPTIONS.sort 11118 }, null, 8, ["version", "staticOptions"]) 11119 ]) 11120 ]), 11121 createBaseVNode("div", _hoisted_12$2, [ 11122 createTextVNode(toDisplayString(_ctx.$translate("estatesPerPage")) + ": ", 1), 11123 createVNode(_sfc_main$x) 11124 ]) 11125 ]), 11126 0 !== props.definitions.PROPERTIES_VERSION ? (openBlock(), createBlock(_sfc_main$y, { key: 0 })) : createCommentVNode("", true), 11127 createVNode(_sfc_main$w, { 11128 version: props.definitions.PAGINATOR_VERSION 11129 }, null, 8, ["version"]) 11130 ]) 11131 ], 64); 11132 }; 11133 } 11134}); 11135const _hoisted_1$g = { class: "u-textCenter full-row toggleFilter" }; 11136const _hoisted_2$e = { class: "EstateFilterLayout" }; 11137const _hoisted_3$9 = { class: "EstateFilterItem EstateFilterItem-inline EstateFilterPrivateOffer full-row" }; 11138const _hoisted_4$8 = { class: "label" }; 11139const _sfc_main$g = /* @__PURE__ */ defineComponent({
11140 __name: "jenrealityIndex", 11141 props: { 11142 definitions: {} 11143 }, 11144 setup(__props) { 11145 const props = __props; 11146 const store = useStore(); 11147 const clickShowFilterValue = () => { 11148 store.showFilterValue = !store.showFilterValue; 11149 const typNemovitostiHero = document.querySelector(".IndexFilter"); 11150 typNemovitostiHero.classList.toggle("responsive-hide"); 11151 if (store.showFilterValue) { 11152 window.setTimeout(() => document.querySelector(".EstateFilterLayout").scrollIntoView(), 1); 11153 } else { 11154 window.setTimeout(() => document.querySelector(".topNabidky").scrollIntoView(), 1); 11155 } 11156 }; 11157 return (_ctx, _cache) => { 11158 return openBlock(), createElementBlock("form", { 11159 method: "GET", 11160 onSubmit: _cache[1] || (_cache[1] = withModifiers(() => { 11161 }, ["prevent"])) 11162 }, [ 11163 withDirectives(createBaseVNode("div", null, [ 11164 createBaseVNode("div", _hoisted_1$g, [ 11165 createBaseVNode("a", { 11166 href: "#", 11167 onClick: _cache[0] || (_cache[0] = ($event) => clickShowFilterValue($event.currentTarget)) 11168 }, [ 11169 _cache[2] || (_cache[2] = createBaseVNode("svg", { 11170 width: "21", 11171 xmlns: "http://www.w3.org/2000/svg",
11172 viewBox: "0 0 21 19" 11173 }, [ 11174 createBaseVNode("path", { 11175 fill: "currentColor", 11176 d: "M0 15.88v1.787h4.817V15.88zm0-7.107v1.774h11.813V8.773zm0-7.106v1.786h3.071V1.667zM10.933 15.88v1.787H21V15.88zm6.996-7.107v1.774H21V8.773zM9.188 1.667v1.786H21V1.667zM6.07 0C7.43 0 8.531 1.12 8.531 2.5S7.43 5 6.071 5C4.711 5 3.608 3.88 3.608 2.5S4.712 0 6.07 0zm8.86 7c1.358 0 2.46 1.12 2.46 2.5S16.289 12 14.93 12c-1.359 0-2.461-1.12-2.461-2.5S13.57 7 14.929 7zm-6.89 7c1.357 0 2.46 1.12 2.46 2.5S9.397 19 8.04 19c-1.36 0-2.462-1.12-2.462-2.5S6.681 14 8.04 14z", 11177 "vector-effect": "non-scaling-stroke" 11178 }) 11179 ], -1)), 11180 createTextVNode(" " + toDisplayString(unref(store).showFilterValue ? _ctx.$translate("index_close_filter") : _ctx.$translate("index_change_filter")), 1) 11181 ]) 11182 ]), 11183 withDirectives(createBaseVNode("div", _hoisted_2$e, [ 11184 createVNode(_sfc_main$G, { 11185 version: props.definitions.CONTRACT_TYPE_VERSION, 11186 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy, 11187 countsVersion: props.definitions.CONTRACT_TYPE_COUNTS_VERSION 11188 }, null, 8, ["version", "staticOptions", "countsVersion"]), 11189 createVNode(_sfc_main$H, { 11190 version: props.definitions.PROPERTY_TYPE_VERSION, 11191 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 11192 }, null, 8, ["version", "staticOptions"]), 11193 createVNode(_sfc_main$B, { 11194 version: props.definitions.PROPERTY_SUB_TYPE_VERSION, 11195 countsVersion: props.definitions.PROPERTY_SUB_TYPE_COUNTS_VERSION 11196 }, null, 8, ["version", "countsVersion"]), 11197 createVNode(_sfc_main$l), 11198 createVNode(_sfc_main$E, { 11199 version: props.definitions.LOCALITY_VERSION, 11200 versionForeign: props.definitions.LOCALITY_FOREIGN_VERSION 11201 }, null, 8, ["version", "versionForeign"]), 11202 createVNode(_sfc_main$C, { 11203 version: props.definitions.PROPERTY_OWNERSHIP_VERSION 11204 }, null, 8, ["version"]), 11205 createVNode(_sfc_main$j), 11206 createVNode(_sfc_main$k), 11207 createVNode(_sfc_main$s, { version: 1 }), 11208 createVNode(_sfc_main$r, { version: 1 }), 11209 createBaseVNode("div", _hoisted_3$9, [ 11210 createBaseVNode("label", _hoisted_4$8, toDisplayString(_ctx.$translate("other")), 1), 11211 createVNode(_sfc_main$i) 11212 ]), 11213 createVNode(_sfc_main$A, { version: 0 }) 11214 ], 512), [ 11215 [vShow, unref(store).showFilter] 11216 ]) 11217 ], 512), [ 11218 [vShow, unref(store).showFilterValue !== void 0] 11219 ]) 11220 ], 32); 11221 }; 11222 } 11223}); 11224const _hoisted_1$f = { class: "empty-row" }; 11225const _hoisted_2$d = { class: "u-textCenter full-row" }; 11226const _hoisted_3$8 = { 11227 key: 2, 11228 class: "u-textCenter full-row" 11229}; 11230const _sfc_main$f = /* @__PURE__ */ defineComponent({ 11231 __name: "domovberoun", 11232 props: { 11233 definitions: {} 11234 }, 11235 setup(__props) { 11236 const props = __props; 11237 const showOrHideIdZs = ref(false); 11238 const showOrHidePrice = ref(false); 11239 const showOrHideArea = ref(false); 11240 const showOrHideAdvertisementInformation = ref(false); 11241 const filterMoreOpened = ref(false); 11242 const toggleMoreFilterInputs = () => { 11243 showOrHideIdZs.value = !showOrHideIdZs.value && props.definitions.ID_ZS_VERSION !== 0; 11244 showOrHidePrice.value = !showOrHidePrice.value && props.definitions.PRICE_VERSION !== 0; 11245 showOrHideArea.value = !showOrHideArea.value && props.definitions.AREA_VERSION !== 0; 11246 showOrHideAdvertisementInformation.value = !showOrHideAdvertisementInformation.value && props.definitions.ADVERTISEMENT_INFORMATION_VERSION !== 0; 11247 filterMoreOpened.value = !filterMoreOpened.value; 11248 }; 11249 const canShowMoreElement = () => { 11250 if (props.definitions.PRICE_VERSION === 0 && props.definitions.AREA_VERSION === 0 && props.definitions.ID_ZS_ALLOW === 0) { 11251 return false;
11252 } 11253 return true; 11254 }; 11255 onMounted(() => { 11256 const url = new URL(window.location.href); 11257 const shouldHideFilterOnFirstView = url.searchParams && url.searchParams.get("hideFilter") == "1"; 11258 if (window.innerWidth <= 768 || shouldHideFilterOnFirstView) { 11259 document.querySelector("#PartialListFilter").style.display = "none"; 11260 document.querySelector(".toggleFilter .link").classList.toggle("showFilter"); 11261 document.querySelector(".toggleFilter .showHide").textContent = window.poskiLocale["filtr_zobrazit"]; 11262 } 11263 }); 11264 return (_ctx, _cache) => { 11265 return openBlock(), createElementBlock(Fragment, null, [ 11266 createBaseVNode("form", { 11267 method: "GET", 11268 onSubmit: _cache[1] || (_cache[1] = withModifiers(() => { 11269 }, ["prevent"])) 11270 }, [ 11271 createBaseVNode("div", { 11272 class: normalizeClass(["EstateFilterLayout", { "is-opened": filterMoreOpened.value }]) 11273 }, [ 11274 createVNode(_sfc_main$G, { 11275 version: props.definitions.CONTRACT_TYPE_VERSION, 11276 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy, 11277 countsVersion: props.definitions.CONTRACT_TYPE_COUNTS_VERSION, 11278 class: normalizeClass({ "top-item": !filterMoreOpened.value }) 11279 }, null, 8, ["version", "staticOptions", "countsVersion", "class"]), 11280 createVNode(_sfc_main$H, { 11281 version: props.definitions.PROPERTY_TYPE_VERSION, 11282 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti, 11283 class: normalizeClass({ "top-item": !filterMoreOpened.value }) 11284 }, null, 8, ["version", "staticOptions", "class"]), 11285 !filterMoreOpened.value ? (openBlock(), createBlock(_sfc_main$A, { 11286 key: 0, 11287 version: 0, 11288 class: "top-item submit-top" 11289 })) : createCommentVNode("", true), 11290 filterMoreOpened.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [ 11291 createVNode(_sfc_main$B, { 11292 version: props.definitions.PROPERTY_SUB_TYPE_VERSION, 11293 countsVersion: props.definitions.PROPERTY_SUB_TYPE_COUNTS_VERSION 11294 }, null, 8, ["version", "countsVersion"]), 11295 createVNode(_sfc_main$C, { 11296 version: props.definitions.PROPERTY_OWNERSHIP_VERSION 11297 }, null, 8, ["version"]), 11298 createVNode(_sfc_main$E, { 11299 version: props.definitions.LOCALITY_VERSION, 11300 versionForeign: props.definitions.LOCALITY_FOREIGN_VERSION 11301 }, null, 8, ["version", "versionForeign"]), 11302 withDirectives(createVNode(_sfc_main$p, { 11303 version: props.definitions.ADVERTISEMENT_INFORMATION_VERSION 11304 }, null, 8, ["version"]), [ 11305 [vShow, showOrHideAdvertisementInformation.value] 11306 ]), 11307 withDirectives(createVNode(_sfc_main$q, { 11308 version: props.definitions.ID_ZS_ALLOW 11309 }, null, 8, ["version"]), [ 11310 [vShow, showOrHideIdZs.value || props.definitions.ID_ZS_VERSION === 1] 11311 ]), 11312 withDirectives(createBaseVNode("div", _hoisted_1$f, null, 512), [ 11313 [vShow, showOrHideIdZs.value || props.definitions.ID_ZS_VERSION === 1] 11314 ]), 11315 withDirectives(createVNode(_sfc_main$s, { 11316 version: props.definitions.PRICE_VERSION 11317 }, null, 8, ["version"]), [ 11318 [vShow, showOrHidePrice.value] 11319 ]), 11320 withDirectives(createVNode(_sfc_main$r, { 11321 version: props.definitions.AREA_VERSION 11322 }, null, 8, ["version"]), [ 11323 [vShow, showOrHideArea.value] 11324 ]) 11325 ], 64)) : createCommentVNode("", true), 11326 withDirectives(createBaseVNode("div", _hoisted_2$d, [ 11327 createBaseVNode("span", { 11328 class: "showLessOrMoreButton", 11329 onClick: _cache[0] || (_cache[0] = ($event) => toggleMoreFilterInputs()) 11330 }, [ 11331 (openBlock(), createElementBlock("svg", { 11332 class: normalizeClass({ "rotatedSVG": filterMoreOpened.value }), 11333 xmlns: "http://www.w3.org/2000/svg",
11334 viewBox: "0 0 320 512", 11335 width: "15", 11336 height: "14" 11337 }, _cache[2] || (_cache[2] = [ 11338 createBaseVNode("path", { 11339 fill: "currentColor", 11340 d: "M151.5 347.8L3.5 201c-4.7-4.7-4.7-12.3 0-17l19.8-19.8c4.7-4.7 12.3-4.7 17 0L160 282.7l119.7-118.5c4.7-4.7 12.3-4.7 17 0l19.8 19.8c4.7 4.7 4.7 12.3 0 17l-148 146.8c-4.7 4.7-12.3 4.7-17 0z" 11341 }, null, -1) 11342 ]), 2)), 11343 createTextVNode(" " + toDisplayString(filterMoreOpened.value ? _ctx.$translate("filter_less") : _ctx.$translate("filter_more")), 1) 11344 ]) 11345 ], 512), [ 11346 [vShow, canShowMoreElement()] 11347 ]), 11348 filterMoreOpened.value ? (openBlock(), createElementBlock("div", _hoisted_3$8, [ 11349 createVNode(_sfc_main$A, { version: 0 }) 11350 ])) : createCommentVNode("", true) 11351 ], 2) 11352 ], 32), 11353 0 !== props.definitions.PROPERTIES_VERSION ? (openBlock(), createBlock(_sfc_main$y, { key: 0 })) : createCommentVNode("", true) 11354 ], 64); 11355 }; 11356 } 11357}); 11358const domovberoun_vue_vue_type_style_index_0_lang = ""; 11359const _hoisted_1$e = { 11360 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center full-row", 11361 "data-filter-el": "fulltext" 11362}; 11363const _hoisted_2$c = { 11364 class: "label", 11365 for: "fulltext" 11366}; 11367const _hoisted_3$7 = { class: "EstateFilterItem-value" }; 11368const _hoisted_4$7 = ["placeholder", "onKeyup"]; 11369const _hoisted_5$7 = ["data-url", "innerHTML"]; 11370const _sfc_main$e = /* @__PURE__ */ defineComponent({ 11371 __name: "Fulltext", 11372 props: { 11373 version: {} 11374 }, 11375 setup(__props) { 11376 const store = useStore(); 11377 const valuesStore = useFilterValuesStore(); 11378 const api2 = mande("/"); 11379 const autocompleteProperties = ref([]); 11380 const searchTerm = ref(""); 11381 const autocompleteWrapper = ref(); 11382 var autocompleteApiCallTimout = null; 11383 const onClick = (el) => { 11384 window.location = el.getAttribute("data-url"); 11385 }; 11386 onMounted(() => { 11387 document.addEventListener("click", (e) => { 11388 if (e.target == autocompleteWrapper.value || e.target.parentNode == autocompleteWrapper.value) { 11389 return; 11390 } 11391 autocompleteProperties.value = []; 11392 }); 11393 }); 11394 const submitForm = () => { 11395 valuesStore.fulltext = searchTerm.value; 11396 store.currentPageNumber = 1; 11397 store.sendForm(false); 11398 }; 11399 watch(searchTerm, async (newTerm, oldTerm) => { 11400 if (newTerm === "" || newTerm.length < 2) { 11401 valuesStore.fulltext = ""; 11402 autocompleteProperties.value = []; 11403 return; 11404 } 11405 if (autocompleteApiCallTimout === null || autocompleteApiCallTimout) { 11406 window.clearTimeout(autocompleteApiCallTimout); 11407 autocompleteApiCallTimout = window.setTimeout(() => { 11408 const urlFilterParameters = new UrlFilterParameters({ fulltext: newTerm }, "/apinemovitosti"); 11409 let apiUrl = urlFilterParameters.getUrlFromInputs({ stranka: 1, pocet: 50 }, false); 11410 api2.get(apiUrl).then((response) => { 11411 valuesStore.fulltext = newTerm; 11412 autocompleteProperties.value = response.items; 11413 autocompleteApiCallTimout = 0; 11414 }); 11415 }, 900); 11416 } else { 11417 window.clearTimeout(autocompleteApiCallTimout); 11418 autocompleteApiCallTimout = null; 11419 } 11420 }); 11421 return (_ctx, _cache) => { 11422 return openBlock(), createElementBlock("div", _hoisted_1$e, [ 11423 createBaseVNode("label", _hoisted_2$c, toDisplayString(_ctx.$translate("filter_fulltext")), 1), 11424 createBaseVNode("div", _hoisted_3$7, [ 11425 withDirectives(createBaseVNode("input", { 11426 placeholder: _ctx.$translate("filter_fulltext_placeholder"), 11427 name: "fulltext", 11428 id: "fulltext", 11429 type: "text", 11430 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event), 11431 onKeyup: withKeys(withModifiers(submitForm, ["prevent"]), ["enter"]) 11432 }, null, 40, _hoisted_4$7), [ 11433 [vModelText, searchTerm.value] 11434 ]), 11435 autocompleteProperties.value.length ? (openBlock(), createElementBlock("div", { 11436 key: 0, 11437 ref_key: "autocompleteWrapper", 11438 ref: autocompleteWrapper, 11439 onFocusout: _cache[2] || (_cache[2] = //@ts-ignore 11440 (...args) => _ctx.onFocusout && _ctx.onFocusout(...args)), 11441 class: "autocomplete-suggestions", 11442 style: { "display": "block" } 11443 }, [ 11444 (openBlock(true), createElementBlock(Fragment, null, renderList(autocompleteProperties.value, (property) => { 11445 return openBlock(), createElementBlock("div", { 11446 key: property.id_zs, 11447 onClick: _cache[1] || (_cache[1] = (ev) => onClick(ev.currentTarget)), 11448 class: "autocomplete-suggestion globalsearch-result", 11449 "data-name": "", 11450 "data-url": property.url, 11451 innerHTML: property.title 11452 }, null, 8, _hoisted_5$7); 11453 }), 128)) 11454 ], 544)) : createCommentVNode("", true) 11455 ]) 11456 ]); 11457 }; 11458 } 11459}); 11460const _hoisted_1$d = { class: "EstateFilterLayout" }; 11461const _hoisted_2$b = { class: "u-textCenter full-row" }; 11462const _sfc_main$d = /* @__PURE__ */ defineComponent({ 11463 __name: "boreality", 11464 props: { 11465 definitions: {} 11466 }, 11467 setup(__props) { 11468 const props = __props; 11469 return (_ctx, _cache) => { 11470 return openBlock(), createElementBlock("form", { 11471 method: "GET", 11472 onSubmit: _cache[0] || (_cache[0] = withModifiers(() => { 11473 }, ["prevent"])) 11474 }, [ 11475 createBaseVNode("div", _hoisted_1$d, [ 11476 createVNode(_sfc_main$e), 11477 createVNode(_sfc_main$H, { 11478 version: props.definitions.PROPERTY_TYPE_VERSION, 11479 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 11480 }, null, 8, ["version", "staticOptions"]), 11481 createVNode(_sfc_main$G, { 11482 version: props.definitions.CONTRACT_TYPE_VERSION, 11483 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy 11484 }, null, 8, ["version", "staticOptions"]), 11485 createVNode(_sfc_main$B, { 11486 version: props.definitions.PROPERTY_SUB_TYPE_VERSION 11487 }, null, 8, ["version"]), 11488 createVNode(_sfc_main$E, { 11489 version: props.definitions.LOCALITY_VERSION, 11490 versionForeign: props.definitions.LOCALITY_FOREIGN_VERSION 11491 }, null, 8, ["version", "versionForeign"]), 11492 createVNode(_sfc_main$s, { 11493 version: props.definitions.PRICE_VERSION 11494 }, null, 8, ["version"]), 11495 createBaseVNode("div", _hoisted_2$b, [ 11496 createVNode(_sfc_main$A, { version: 0 }) 11497 ]) 11498 ]) 11499 ], 32); 11500 }; 11501 } 11502}); 11503const _hoisted_1$c = { class: "EstateFilterLayout EstateFilterLayout--ceska" }; 11504const _hoisted_2$a = { 11505 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center EstateFilterItem--select", 11506 "data-filter-el": "price" 11507}; 11508const _hoisted_3$6 = { class: "label" }; 11509const _hoisted_4$6 = { class: "EstateFilterItem-layout" }; 11510const _hoisted_5$6 = { value: "" }; 11511const _hoisted_6$5 = ["value"]; 11512const _hoisted_7$3 = { value: "" }; 11513const _hoisted_8$2 = ["value"]; 11514const _hoisted_9$2 = { 11515 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center EstateFilterItem--select", 11516 "data-filter-el": "area" 11517}; 11518const _hoisted_10$2 = { class: "label" }; 11519const _hoisted_11$2 = { class: "EstateFilterItem-layout" }; 11520const _hoisted_12$1 = { value: "" }; 11521const _hoisted_13$1 = ["value"]; 11522const _hoisted_14$1 = { value: "" }; 11523const _hoisted_15$1 = ["value"]; 11524const _hoisted_16$1 = { class: "u-textCenter full-row" }; 11525const _sfc_main$c = /* @__PURE__ */ defineComponent({ 11526 __name: "ceska-realitni", 11527 props: { 11528 definitions: {} 11529 }, 11530 setup(__props) { 11531 const props = __props; 11532 const valuesStore = useFilterValuesStore(); 11533 const fmtCena = (n) => typeof window.formatCena === "function" ? window.formatCena(n) : String(n); 11534 const priceOptions = [1e6, 2e6, 3e6, 5e6, 7e6, 1e7, 15e6, 2e7, 3e7].map((n) => ({ value: fmtCena(n), label: n / 1e6 + " mil. KÄ" })); 11535 const areaOptions = [30, 50, 70, 100, 150, 200, 300, 500, 1e3].map((n) => ({ value: String(n), label: n + " m²" })); 11536 return (_ctx, _cache) => { 11537 return openBlock(), createElementBlock("form", { 11538 method: "GET", 11539 onSubmit: _cache[4] || (_cache[4] = withModifiers(() => { 11540 }, ["prevent"])) 11541 }, [ 11542 createBaseVNode("div", _hoisted_1$c, [ 11543 createVNode(_sfc_main$G, { 11544 version: props.definitions.CONTRACT_TYPE_VERSION, 11545 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy, 11546 countsVersion: props.definitions.CONTRACT_TYPE_COUNTS_VERSION 11547 }, null, 8, ["version", "staticOptions", "countsVersion"]), 11548 createVNode(_sfc_main$H, { 11549 version: props.definitions.PROPERTY_TYPE_VERSION, 11550 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 11551 }, null, 8, ["version", "staticOptions"]), 11552 createVNode(_sfc_main$e), 11553 createVNode(_sfc_main$E, { 11554 version: props.definitions.LOCALITY_VERSION, 11555 versionForeign: props.definitions.LOCALITY_FOREIGN_VERSION 11556 }, null, 8, ["version", "versionForeign"]), 11557 createBaseVNode("div", _hoisted_2$a, [ 11558 createBaseVNode("div", _hoisted_3$6, toDisplayString(_ctx.$translate("filter_price")), 1), 11559 createBaseVNode("div", _hoisted_4$6, [ 11560 withDirectives(createBaseVNode("select", { 11561 id: "priceFrom", 11562 name: "priceFrom", 11563 class: "EstateFilterSelect", 11564 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(valuesStore).cena_od = $event) 11565 }, [ 11566 createBaseVNode("option", _hoisted_5$6, toDisplayString(_ctx.$translate("filter_price.from.placeholder")), 1), 11567 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(priceOptions), (o) => { 11568 return openBlock(), createElementBlock("option", { 11569 key: "cf-" + o.value, 11570 value: o.value 11571 }, toDisplayString(o.label), 9, _hoisted_6$5); 11572 }), 128)) 11573 ], 512), [ 11574 [vModelSelect, unref(valuesStore).cena_od] 11575 ]), 11576 withDirectives(createBaseVNode("select", { 11577 id: "priceTo", 11578 name: "priceTo", 11579 class: "EstateFilterSelect", 11580 "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(valuesStore).cena_do = $event) 11581 }, [ 11582 createBaseVNode("option", _hoisted_7$3, toDisplayString(_ctx.$translate("filter_price.to.placeholder")), 1), 11583 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(priceOptions), (o) => { 11584 return openBlock(), createElementBlock("option", { 11585 key: "ct-" + o.value, 11586 value: o.value 11587 }, toDisplayString(o.label), 9, _hoisted_8$2); 11588 }), 128)) 11589 ], 512), [ 11590 [vModelSelect, unref(valuesStore).cena_do] 11591 ]) 11592 ]) 11593 ]), 11594 createBaseVNode("div", _hoisted_9$2, [ 11595 createBaseVNode("div", _hoisted_10$2, toDisplayString(_ctx.$translate("filter_plocha")), 1), 11596 createBaseVNode("div", _hoisted_11$2, [ 11597 withDirectives(createBaseVNode("select", { 11598 id: "areaFrom", 11599 name: "areaFrom", 11600 class: "EstateFilterSelect", 11601 "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(valuesStore).plocha_od = $event) 11602 }, [ 11603 createBaseVNode("option", _hoisted_12$1, toDisplayString(_ctx.$translate("filter_plocha_od")), 1), 11604 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(areaOptions), (o) => { 11605 return openBlock(), createElementBlock("option", { 11606 key: "af-" + o.value, 11607 value: o.value 11608 }, toDisplayString(o.label), 9, _hoisted_13$1); 11609 }), 128)) 11610 ], 512), [ 11611 [vModelSelect, unref(valuesStore).plocha_od] 11612 ]), 11613 withDirectives(createBaseVNode("select", { 11614 id: "areaTo", 11615 name: "areaTo", 11616 class: "EstateFilterSelect", 11617 "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(valuesStore).plocha_do = $event) 11618 }, [ 11619 createBaseVNode("option", _hoisted_14$1, toDisplayString(_ctx.$translate("filter_plocha_do")), 1), 11620 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(areaOptions), (o) => { 11621 return openBlock(), createElementBlock("option", { 11622 key: "at-" + o.value, 11623 value: o.value 11624 }, toDisplayString(o.label), 9, _hoisted_15$1); 11625 }), 128)) 11626 ], 512), [ 11627 [vModelSelect, unref(valuesStore).plocha_do] 11628 ]) 11629 ]) 11630 ]), 11631 createBaseVNode("div", _hoisted_16$1, [ 11632 createVNode(_sfc_main$A, { version: 0 }) 11633 ]) 11634 ]) 11635 ], 32); 11636 }; 11637 } 11638}); 11639const isClient = typeof window !== "undefined" && typeof document !== "undefined"; 11640typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope; 11641const toString = Object.prototype.toString; 11642const isObject = (val) => toString.call(val) === "[object Object]"; 11643const noop = () => { 11644}; 11645const isIOS = /* @__PURE__ */ getIsIOS(); 11646function getIsIOS() { 11647 var _window, _window2, _window3; 11648 return isClient && !!((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.maxTouchPoints) > 2 && /iPad|Macintosh/.test((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.navigator.userAgent)); 11649} 11650function toArray(value) { 11651 return Array.isArray(value) ? value : [value]; 11652} 11653function watchImmediate(source, cb, options) { 11654 return watch(source, cb, { 11655 ...options, 11656 immediate: true 11657 }); 11658} 11659const defaultWindow = isClient ? window : void 0; 11660function unrefElement(elRef) { 11661 var _$el; 11662 const plain = toValue(elRef); 11663 return (_$el = plain === null || plain === void 0 ? void 0 : plain.$el) !== null && _$el !== void 0 ? _$el : plain; 11664} 11665function useEventListener(...args) { 11666 const register = (el, event2, listener, options) => { 11667 el.addEventListener(event2, listener, options); 11668 return () => el.removeEventListener(event2, listener, options); 11669 }; 11670 const firstParamTargets = computed(() => { 11671 const test = toArray(toValue(args[0])).filter((e) => e != null); 11672 return test.every((e) => typeof e !== "string") ? test : void 0; 11673 }); 11674 return watchImmediate(() => { 11675 var _firstParamTargets$va, _firstParamTargets$va2; 11676 return [ 11677 (_firstParamTargets$va = (_firstParamTargets$va2 = firstParamTargets.value) === null || _firstParamTargets$va2 === void 0 ? void 0 : _firstParamTargets$va2.map((e) => unrefElement(e))) !== null && _firstParamTargets$va !== void 0 ? _firstParamTargets$va : [defaultWindow].filter((e) => e != null), 11678 toArray(toValue(firstParamTargets.value ? args[1] : args[0])), 11679 toArray(unref(firstParamTargets.value ? args[2] : args[1])), 11680 toValue(firstParamTargets.value ? args[3] : args[2]) 11681 ]; 11682 }, ([raw_targets, raw_events, raw_listeners, raw_options], _, onCleanup) => { 11683 if (!(raw_targets === null || raw_targets === void 0 ? void 0 : raw_targets.length) || !(raw_events === null || raw_events === void 0 ? void 0 : raw_events.length) || !(raw_listeners === null || raw_listeners === void 0 ? void 0 : raw_listeners.length)) 11684 return; 11685 const optionsClone = isObject(raw_options) ? { ...raw_options } : raw_options; 11686 const cleanups = raw_ta
vendor: 3,337 bytes, lines 11686-11770
11686rgets.flatMap((el) => raw_events.flatMap((event2) => raw_listeners.map((listener) => register(el, event2, listener, optionsClone)))); 11687 onCleanup(() => { 11688 cleanups.forEach((fn) => fn()); 11689 }); 11690 }, { flush: "post" }); 11691} 11692let _iOSWorkaround = false; 11693function onClickOutside(target, handler, options = {}) { 11694 const { window: window$1 = defaultWindow, ignore = [], capture = true, detectIframe = false, controls = false } = options; 11695 if (!window$1) 11696 return controls ? { 11697 stop: noop, 11698 cancel: noop, 11699 trigger: noop 11700 } : noop; 11701 if (isIOS && !_iOSWorkaround) { 11702 _iOSWorkaround = true; 11703 const listenerOptions = { passive: true }; 11704 Array.from(window$1.document.body.children).forEach((el) => el.addEventListener("click", noop, listenerOptions)); 11705 window$1.document.documentElement.addEventListener("click", noop, listenerOptions); 11706 } 11707 let shouldListen = true; 11708 const shouldIgnore = (event2) => { 11709 return toValue(ignore).some((target$1) => { 11710 if (typeof target$1 === "string") 11711 return Array.from(window$1.document.querySelectorAll(target$1)).some((el) => el === event2.target || event2.composedPath().includes(el)); 11712 else { 11713 const el = unrefElement(target$1); 11714 return el && (event2.target === el || event2.composedPath().includes(el)); 11715 } 11716 }); 11717 }; 11718 function hasMultipleRoots(target$1) { 11719 const vm = toValue(target$1); 11720 return vm && vm.$.subTree.shapeFlag === 16; 11721 } 11722 function checkMultipleRoots(target$1, event2) { 11723 const vm = toValue(target$1); 11724 const children = vm.$.subTree && vm.$.subTree.children; 11725 if (children == null || !Array.isArray(children)) 11726 return false; 11727 return children.some((child) => child.el === event2.target || event2.composedPath().includes(child.el)); 11728 } 11729 const listener = (event2) => { 11730 const el = unrefElement(target); 11731 if (event2.target == null) 11732 return; 11733 if (!(el instanceof Element) && hasMultipleRoots(target) && checkMultipleRoots(target, event2)) 11734 return; 11735 if (!el || el === event2.target || event2.composedPath().includes(el)) 11736 return; 11737 if ("detail" in event2 && event2.detail === 0) 11738 shouldListen = !shouldIgnore(event2); 11739 if (!shouldListen) { 11740 shouldListen = true; 11741 return; 11742 } 11743 handler(event2); 11744 }; 11745 let isProcessingClick = false; 11746 const cleanup = [ 11747 useEventListener(window$1, "click", (event2) => { 11748 if (!isProcessingClick) { 11749 isProcessingClick = true; 11750 setTimeout(() => { 11751 isProcessingClick = false; 11752 }, 0); 11753 listener(event2); 11754 } 11755 }, { 11756 passive: true, 11757 capture 11758 }), 11759 useEventListener(window$1, "pointerdown", (e) => { 11760 const el = unrefElement(target); 11761 shouldListen = !shouldIgnore(e) && !!(el && !e.composedPath().includes(el)); 11762 }, { passive: true }), 11763 detectIframe && useEventListener(window$1, "blur", (event2) => { 11764 setTimeout(() => { 11765 var _window$document$acti; 11766 const el = unrefElement(target); 11767 if (((_window$document$acti = window$1.document.activeElement) === null || _window$document$acti === void 0 ? void 0 : _window$document$acti.tagName) === "IFRAME" && !(el === null || el === void 0 ? void 0 : el.contains(window$1.document.activeElement))) 11768 handler(event2); 11769 }, 0); 11770 }, { passive: true })
11771 ].filter(Boolean); 11772 const stop = () => cleanup.forEach((fn) => fn()); 11773 if (controls) 11774 return { 11775 stop, 11776 cancel: () => { 11777 shouldListen = false; 11778 }, 11779 trigger: (event2) => { 11780 shouldListen = true; 11781 listener(event2); 11782 shouldListen = false; 11783 } 11784 }; 11785 return stop; 11786} 11787const _hoisted_1$b = { class: "EstateFilterLayout-primary" }; 11788const _hoisted_2$9 = { class: "EstateFilterLayout-submit" }; 11789const _hoisted_3$5 = { class: "EstateFilterLayout-toggleRow" }; 11790const _hoisted_4$5 = ["aria-expanded"]; 11791const _hoisted_5$5 = { class: "EstateFilterLayout-toggleLabel" }; 11792const _hoisted_6$4 = { 11793 class: "EstateFilterLayout-panel", 11794 id: "hero-search-more" 11795}; 11796const _hoisted_7$2 = { class: "EstateFilterLayout-panel-ranges" }; 11797const _sfc_main$b = /* @__PURE__ */ defineComponent({ 11798 __name: "solomgroup", 11799 props: { 11800 definitions: {} 11801 }, 11802 setup(__props) { 11803 const props = __props; 11804 const store = useStore(); 11805 const moreOpen = ref(false); 11806 const filterRoot = ref(null); 11807 onClickOutside(filterRoot, () => { 11808 moreOpen.value = false; 11809 }); 11810 function doSubmitFilter() { 11811 store.currentPageNumber = 1; 11812 store.sendForm(false); 11813 } 11814 return (_ctx, _cache) => { 11815 return openBlock(), createElementBlock("form", { 11816 method: "GET", 11817 onSubmit: _cache[2] || (_cache[2] = withModifiers(() => { 11818 }, ["prevent"])) 11819 }, [ 11820 createBaseVNode("div", { 11821 class: "EstateFilterLayout EstateFilterLayout--solomgroup", 11822 ref_key: "filterRoot", 11823 ref: filterRoot 11824 }, [ 11825 createBaseVNode("div", _hoisted_1$b, [ 11826 createVNode(_sfc_main$G, { 11827 version: props.definitions.CONTRACT_TYPE_VERSION, 11828 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy, 11829 countsVersion: props.definitions.CONTRACT_TYPE_COUNTS_VERSION 11830 }, null, 8, ["version", "staticOptions", "countsVersion"]), 11831 createVNode(_sfc_main$H, { 11832 version: props.definitions.PROPERTY_TYPE_VERSION, 11833 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 11834 }, null, 8, ["version", "staticOptions"]), 11835 createBaseVNode("div", _hoisted_2$9, [ 11836 createBaseVNode("button", { 11837 type: "submit", 11838 class: "ButtonBase EstateFilterLayout-submitBtn", 11839 onClick: _cache[0] || (_cache[0] = ($event) => doSubmitFilter()) 11840 }, " Hledat (" + toDisplayString(unref(store).totalCount) + ") ", 1) 11841 ]) 11842 ]), 11843 createBaseVNode("div", _hoisted_3$5, [ 11844 createBaseVNode("button", { 11845 type: "button", 11846 class: "EstateFilterLayout-toggle", 11847 "aria-expanded": moreOpen.value, 11848 "aria-controls": "hero-search-more", 11849 onClick: _cache[1] || (_cache[1] = ($event) => moreOpen.value = !moreOpen.value) 11850 }, [ 11851 (openBlock(), createElementBlock("svg", { 11852 xmlns: "http://www.w3.org/2000/svg", 11853 width: "14", 11854 height: "14", 11855 fill: "currentColor",
11856 viewBox: "0 0 256 256", 11857 "aria-hidden": "true", 11858 class: normalizeClass(["EstateFilterLayout-toggleChevron", { "is-open": moreOpen.value }]) 11859 }, _cache[3] || (_cache[3] = [ 11860 createBaseVNode("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" }, null, -1) 11861 ]), 2)), 11862 createBaseVNode("span", _hoisted_5$5, toDisplayString(moreOpen.value ? "MénÄ filtrů" : "VÃce filtrů"), 1) 11863 ], 8, _hoisted_4$5) 11864 ]), 11865 withDirectives(createBaseVNode("div", _hoisted_6$4, [ 11866 createVNode(_sfc_main$E, { 11867 version: props.definitions.LOCALITY_VERSION, 11868 versionForeign: props.definitions.LOCALITY_FOREIGN_VERSION 11869 }, null, 8, ["version", "versionForeign"]), 11870 createBaseVNode("div", _hoisted_7$2, [ 11871 createVNode(_sfc_main$r, { 11872 version: props.definitions.AREA_VERSION 11873 }, null, 8, ["version"]), 11874 createVNode(_sfc_main$s, { 11875 version: props.definitions.PRICE_VERSION 11876 }, null, 8, ["version"]) 11877 ]), 11878 createVNode(_sfc_main$j) 11879 ], 512), [ 11880 [vShow, moreOpen.value] 11881 ]) 11882 ], 512) 11883 ], 32); 11884 }; 11885 } 11886}); 11887const _hoisted_1$a = { class: "EstateFilterLayout" }; 11888const _sfc_main$a = /* @__PURE__ */ defineComponent({ 11889 __name: "PoskiEasyIndex", 11890 props: { 11891 definitions: {} 11892 }, 11893 setup(__props) { 11894 const props = __props; 11895 return (_ctx, _cache) => { 11896 return openBlock(), createElementBlock("form", { 11897 method: "GET", 11898 onSubmit: _cache[0] || (_cache[0] = withModifiers(() => { 11899 }, ["prevent"])) 11900 }, [ 11901 createBaseVNode("div", _hoisted_1$a, [ 11902 createVNode(_sfc_main$H, { 11903 version: props.definitions.PROPERTY_TYPE_VERSION, 11904 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 11905 }, null, 8, ["version", "staticOptions"]), 11906 createVNode(_sfc_main$G, { 11907 version: props.definitions.CONTRACT_TYPE_VERSION, 11908 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy, 11909 countsVersion: props.definitions.CONTRACT_TYPE_COUNTS_VERSION 11910 }, null, 8, ["version", "staticOptions", "countsVersion"]), 11911 createVNode(_sfc_main$B, { 11912 version: props.definitions.PROPERTY_SUB_TYPE_VERSION, 11913 countsVersion: props.definitions.PROPERTY_SUB_TYPE_COUNTS_VERSION 11914 }, null, 8, ["version", "countsVersion"]), 11915 createVNode(_sfc_main$l), 11916 createVNode(_sfc_main$e, { 11917 version: props.definitions.FULLTEXT_SHOW_AUTOCOMPLETE 11918 }, null, 8, ["version"]), 11919 createVNode(_sfc_main$A, { version: 2 }) 11920 ]) 11921 ], 32); 11922 }; 11923 } 11924}); 11925const _hoisted_1$9 = { class: "EstateFilterLayout" }; 11926const _hoisted_2$8 = { class: "u-textCenter full-row" }; 11927const _sfc_main$9 = /* @__PURE__ */ defineComponent({ 11928 __name: "reality-proradost", 11929 props: { 11930 definitions: {} 11931 }, 11932 setup(__props) { 11933 const props = __props; 11934 const filterOpened = ref(true); 11935 const toggleFilterInputs = () => { 11936 filterOpened.value = !filterOpened.value; 11937 }; 11938 onMounted(() => { 11939 const url = new URL(window.location.href); 11940 const shouldHideFilterOnFirstView = url.searchParams && url.searchParams.get("hideFilter") == "1"; 11941 if (window.innerWidth <= 768 || shouldHideFilterOnFirstView) { 11942 filterOpened.value = false; 11943 } 11944 }); 11945 return (_ctx, _cache) => { 11946 return openBlock(), createElementBlock("form", { 11947 method: "GET", 11948 onSubmit: _cache[1] || (_cache[1] = withModifiers(() => { 11949 }, ["prevent"])) 11950 }, [ 11951 withDirectives(createBaseVNode("div", _hoisted_1$9, [ 11952 createVNode(_sfc_main$e, { 11953 version: props.definitions.FULLTEXT_SHOW_AUTOCOMPLETE 11954 }, null, 8, ["version"]), 11955 createVNode(_sfc_main$H, { 11956 version: props.definitions.PROPERTY_TYPE_VERSION, 11957 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 11958 }, null, 8, ["version", "staticOptions"]), 11959 createVNode(_sfc_main$B, { 11960 version: props.definitions.PROPERTY_SUB_TYPE_VERSION, 11961 countsVersion: props.definitions.PROPERTY_SUB_TYPE_COUNTS_VERSION 11962 }, null, 8, ["version", "countsVersion"]), 11963 createVNode(_sfc_main$G, { 11964 version: props.definitions.CONTRACT_TYPE_VERSION, 11965 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy, 11966 countsVersion: props.definitions.CONTRACT_TYPE_COUNTS_VERSION 11967 }, null, 8, ["version", "staticOptions", "countsVersion"]), 11968 createVNode(_sfc_main$E, { 11969 version: props.definitions.LOCALITY_VERSION, 11970 versionForeign: props.definitions.LOCALITY_FOREIGN_VERSION 11971 }, null, 8, ["version", "versionForeign"]), 11972 createVNode(_sfc_main$s, { 11973 version: props.definitions.PRICE_VERSION 11974 }, null, 8, ["version"]) 11975 ], 512), [ 11976 [vShow, filterOpened.value] 11977 ]), 11978 createBaseVNode("div", _hoisted_2$8, [ 11979 withDirectives(createVNode(_sfc_main$A, { version: 0 }, null, 512), [ 11980 [vShow, filterOpened.value] 11981 ]), 11982 createBaseVNode("span", { 11983 class: "showLessOrMoreButton", 11984 onClick: _cache[0] || (_cache[0] = ($event) => toggleFilterInputs()) 11985 }, [ 11986 createTextVNode(toDisplayString(filterOpened.value ? "Schovat filtr" : "Zobrazit filtr nemovitostÃ") + " ", 1), 11987 (openBlock(), createElementBlock("svg", { 11988 class: normalizeClass({ "rotatedSVG": filterOpened.value }), 11989 xmlns: "http://www.w3.org/2000/svg", 11990 width: "30", 11991 height: "30",
11992 viewBox: "0 0 30 30", 11993 fill: "none" 11994 }, _cache[2] || (_cache[2] = [ 11995 createBaseVNode("rect", { 11996 x: "29.4", 11997 y: "29.4", 11998 width: "28.8", 11999 height: "28.8", 12000 rx: "14.4", 12001 transform: "rotate(180 29.4 29.4)", 12002 stroke: "#131442", 12003 "stroke-width": "1.2" 12004 }, null, -1), 12005 createBaseVNode("path", { 12006 d: "M19 17.5L15 21.5M15 21.5L11 17.5M15 21.5L15 8.5", 12007 stroke: "#131442", 12008 "stroke-width": "1.2" 12009 }, null, -1) 12010 ]), 2)) 12011 ]) 12012 ]) 12013 ], 32); 12014 }; 12015 } 12016}); 12017const _hoisted_1$8 = { 12018 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center", 12019 "data-filter-el": "price" 12020}; 12021const _hoisted_2$7 = { class: "label" }; 12022const _hoisted_3$4 = { class: "EstateFilterItem-layout" }; 12023const _hoisted_4$4 = ["placeholder"]; 12024const _hoisted_5$4 = ["placeholder"]; 12025const _sfc_main$8 = /* @__PURE__ */ defineComponent({ 12026 __name: "PriceEur", 12027 props: { 12028 version: {} 12029 }, 12030 setup(__props) { 12031 const valuesStore = useFilterValuesStore(); 12032 const props = __props; 12033 const formatPriceToEur = (event2) => { 12034 if (isNaN(window.parseCena(event2.target.value))) { 12035 valuesStore.cena_eur_do = ""; 12036 } else { 12037 valuesStore.cena_eur_do = window.formatCena(window.parseCena(event2.target.value)); 12038 } 12039 }; 12040 const formatPriceFromEur = (event2) => { 12041 if (isNaN(window.parseCena(event2.target.value))) { 12042 valuesStore.cena_eur_od = ""; 12043 } else { 12044 valuesStore.cena_eur_od = window.formatCena(window.parseCena(event2.target.value)); 12045 } 12046 }; 12047 return (_ctx, _cache) => { 12048 return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$8, [ 12049 createBaseVNode("div", _hoisted_2$7, toDisplayString(_ctx.$translate("filter_price")), 1), 12050 createBaseVNode("div", _hoisted_3$4, [ 12051 withDirectives(createBaseVNode("input", { 12052 name: "priceFromEur", 12053 id: "priceFromEur", 12054 type: "text", 12055 step: "100", 12056 placeholder: _ctx.$translate("filter_price.from_eur.placeholder"), 12057 onKeyup: _cache[0] || (_cache[0] = (ev) => formatPriceFromEur(ev)), 12058 "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(valuesStore).cena_eur_od = $event) 12059 }, null, 40, _hoisted_4$4), [ 12060 [vModelText, unref(valuesStore).cena_eur_od] 12061 ]), 12062 withDirectives(createBaseVNode("input", { 12063 name: "priceToEur", 12064 id: "priceToEur", 12065 type: "text", 12066 step: "100", 12067 placeholder: _ctx.$translate("filter_price.to_eur.placeholder"), 12068 onKeyup: _cache[2] || (_cache[2] = (ev) => formatPriceToEur(ev)), 12069 "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(valuesStore).cena_eur_do = $event) 12070 }, null, 40, _hoisted_5$4), [ 12071 [vModelText, unref(valuesStore).cena_eur_do] 12072 ]) 12073 ]) 12074 ], 512)), [ 12075 [vShow, props.version !== 0] 12076 ]); 12077 }; 12078 } 12079}); 12080const _hoisted_1$7 = { class: "EstateFilterLayout" }; 12081const _hoisted_2$6 = { class: "u-textCenter full-row" }; 12082const _sfc_main$7 = /* @__PURE__ */ defineComponent({ 12083 __name: "PoskiForeignAddress", 12084 props: { 12085 definitions: {} 12086 }, 12087 setup(__props) { 12088 const props = __props; 12089 return (_ctx, _cache) => { 12090 return openBlock(), createElementBlock("form", { 12091 method: "GET", 12092 onSubmit: _cache[0] || (_cache[0] = withModifiers(() => { 12093 }, ["prevent"])) 12094 }, [ 12095 createBaseVNode("div", _hoisted_1$7, [ 12096 createVNode(_sfc_main$G, { 12097 version: props.definitions.CONTRACT_TYPE_VERSION, 12098 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy, 12099 countsVersion: props.definitions.CONTRACT_TYPE_COUNTS_VERSION 12100 }, null, 8, ["version", "staticOptions", "countsVersion"]), 12101 createVNode(_sfc_main$H, { 12102 version: props.definitions.PROPERTY_TYPE_VERSION, 12103 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 12104 }, null, 8, ["version", "staticOptions"]), 12105 createVNode(_sfc_main$B, { 12106 version: props.definitions.PROPERTY_SUB_TYPE_VERSION, 12107 countsVersion: props.definitions.PROPERTY_SUB_TYPE_COUNTS_VERSION 12108 }, null, 8, ["version", "countsVersion"]), 12109 createVNode(_sfc_main$E, { 12110 version: props.definitions.LOCALITY_VERSION, 12111 versionForeign: props.definitions.LOCALITY_FOREIGN_VERSION 12112 }, null, 8, ["version", "versionForeign"]), 12113 createVNode(_sfc_main$8, { 12114 version: props.definitions.PRICE_EUR_VERSION 12115 }, null, 8, ["version"]), 12116 createVNode(_sfc_main$r, { 12117 version: props.definitions.AREA_VERSION 12118 }, null, 8, ["version"]), 12119 createBaseVNode("div", _hoisted_2$6, [ 12120 createVNode(_sfc_main$A, { version: 0 }) 12121 ]) 12122 ]) 12123 ], 32); 12124 }; 12125 } 12126}); 12127const PoskiForeignAddress_vue_vue_type_style_index_0_lang = ""; 12128const _hoisted_1$6 = { 12129 class: "label", 12130 for: "address-suggest" 12131}; 12132const _hoisted_2$5 = { class: "EstateFilterItem-value" }; 12133const _hoisted_3$3 = ["placeholder", "onKeyup"]; 12134const _hoisted_4$3 = { 12135 key: 0, 12136 class: "autocomplete-suggestions", 12137 style: { "display": "block" } 12138}; 12139const _hoisted_5$3 = ["onClick"]; 12140const _hoisted_6$3 = ["innerHTML"]; 12141const _sfc_main$6 = /* @__PURE__ */ defineComponent({ 12142 __name: "AddressSuggestForeign", 12143 props: { 12144 token: {} 12145 }, 12146 setup(__props) { 12147 const store = useStore(); 12148 const valuesStore = useFilterValuesStore(); 12149 const props = __props; 12150 const api2 = mande("/" + window.PR_DIR); 12151 const suggestions = ref([]); 12152 const searchTerm = ref(""); 12153 const target = ref(null); 12154 const ignoreNextWatch = ref(false); 12155 const selectedLocality = ref(""); 12156 let timeoutId = null; 12157 onClickOutside(target, () => { 12158 cancelPendingSearch(); 12159 suggestions.value = []; 12160 setSearchTermSilently(selectedLocality.value); 12161 }); 12162 function clearSugestedValuesInStore() { 12163 valuesStore.krajeZahranici = []; 12164 valuesStore.okresZahranici = [];
12165 valuesStore.mestaZahranici = []; 12166 valuesStore.idStat = "0"; 12167 } 12168 function clearSelectedLocality() { 12169 if (selectedLocality.value === "") { 12170 return; 12171 } 12172 selectedLocality.value = ""; 12173 clearSugestedValuesInStore(); 12174 } 12175 function setSearchTermSilently(value) { 12176 if (searchTerm.value === value) { 12177 return; 12178 } 12179 ignoreNextWatch.value = true; 12180 searchTerm.value = value; 12181 } 12182 function cancelPendingSearch() { 12183 if (timeoutId) { 12184 clearTimeout(timeoutId); 12185 timeoutId = null; 12186 } 12187 } 12188 async function onSuggestionClick(suggestion) { 12189 var _a2; 12190 clearSugestedValuesInStore(); 12191 if (suggestion.vuscNazev) { 12192 valuesStore.krajeZahranici.push(suggestion.vuscNazev); 12193 } 12194 if ((_a2 = suggestion.okresyNazvy) == null ? void 0 : _a2.length) { 12195 valuesStore.okresZahranici.push(...suggestion.okresyNazvy); 12196 } else { 12197 if (suggestion.okresNazev) { 12198 valuesStore.okresZahranici.push(suggestion.okresNazev); 12199 } 12200 if (suggestion.obecNazev) { 12201 valuesStore.mestaZahranici.push(suggestion.obecNazev); 12202 } 12203 } 12204 valuesStore.idStat = "SK"; 12205 setSearchTermSilently(suggestion.nazev); 12206 selectedLocality.value = suggestion.nazev; 12207 suggestions.value = []; 12208 } 12209 async function submitForm() { 12210 store.currentPageNumber = 1; 12211 return store.sendForm(false); 12212 } 12213 onUnmounted(cancelPendingSearch); 12214 watch(searchTerm, (newTerm) => { 12215 if (ignoreNextWatch.value) { 12216 ignoreNextWatch.value = false; 12217 return; 12218 } 12219 cancelPendingSearch(); 12220 if (newTerm.length < ADDRESS_SUGGEST_SEARCH_FROM_BOUND) { 12221 suggestions.value = []; 12222 if (newTerm === "") { 12223 clearSelectedLocality(); 12224 } 12225 return; 12226 } 12227 timeoutId = window.setTimeout(async () => { 12228 try { 12229 const response = await api2.get(`/addressSuggest.php`, { 12230 query: { 12231 text: newTerm, 12232 token: props.token, 12233 count: ADDRESS_SUGGEST_RESULTS_LIMIT, 12234 action: "getRealsoftSuggestions" 12235 } 12236 }); 12237 if (newTerm !== searchTerm.value) { 12238 return; 12239 } 12240 if (response.status === AddressSuggestStatus.Success) { 12241 suggestions.value = response.locations || []; 12242 } else { 12243 suggestions.value = []; 12244 console.error("Z naÅ¡eptávaÄe pÅiÅ¡la chybná nebo prázdná odpovÄÄ."); 12245 } 12246 } catch (error) { 12247 console.error("Chyba pÅi naÄÃtánà lokalit:", error); 12248 suggestions.value = []; 12249 } 12250 }, 900); 12251 }); 12252 return (_ctx, _cache) => { 12253 return openBlock(), createElementBlock("div", { 12254 ref_key: "target", 12255 ref: target, 12256 class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center full-row", 12257 "data-filter-el": "address-suggest" 12258 }, [ 12259 createBaseVNode("label", _hoisted_1$6, toDisplayString(_ctx.$translate("filter_address_label")), 1), 12260 createBaseVNode("div", _hoisted_2$5, [ 12261 withDirectives(createBaseVNode("input", { 12262 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event), 12263 placeholder: _ctx.$translate("filter_address_placeholder"), 12264 name: "address-suggest", 12265 id: "address-suggest", 12266 type: "text", 12267 autocomplete: "off", 12268 onKeyup: withKeys(withModifiers(submitForm, ["prevent"]), ["enter"]) 12269 }, null, 40, _hoisted_3$3), [ 12270 [vModelText, searchTerm.value] 12271 ]), 12272 suggestions.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$3, [ 12273 (openBlock(true), createElementBlock(Fragment, null, renderList(suggestions.value, (item, index) => { 12274 return openBlock(), createElementBlock("div", { 12275 key: index, 12276 class: "autocomplete-suggestion globalsearch-result", 12277 onClick: ($event) => onSuggestionClick(item) 12278 }, [ 12279 item.icon ? (openBlock(), createElementBlock("i", { 12280 key: 0, 12281 class: normalizeClass(["icon", item.icon]), 12282 "aria-hidden": "true" 12283 }, null, 2)) : createCommentVNode("", true), 12284 createBaseVNode("span", { 12285 innerHTML: item.label || item.text 12286 }, null, 8, _hoisted_6$3) 12287 ], 8, _hoisted_5$3); 12288 }), 128)) 12289 ])) : createCommentVNode("", true) 12290 ]) 12291 ], 512); 12292 }; 12293 } 12294}); 12295const _hoisted_1$5 = { class: "EstateFilterLayout" }; 12296const _sfc_main$5 = /* @__PURE__ */ defineComponent({ 12297 __name: "remax-slovakiaIndex", 12298 props: { 12299 definitions: {}, 12300 addressSuggestToken: {} 12301 }, 12302 setup(__props) { 12303 const props = __props; 12304 return (_ctx, _cache) => { 12305 return openBlock(), createElementBlock("form", { 12306 method: "GET", 12307 onSubmit: _cache[0] || (_cache[0] = withModifiers(() => { 12308 }, ["prevent"])) 12309 }, [ 12310 createBaseVNode("div", _hoisted_1$5, [ 12311 createVNode(_sfc_main$6, { token: _ctx.addressSuggestToken }, null, 8, ["token"]), 12312 createVNode(_sfc_main$H, { 12313 version: props.definitions.PROPERTY_TYPE_VERSION, 12314 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 12315 }, null, 8, ["version", "staticOptions"]), 12316 createVNode(_sfc_main$G, { 12317 version: props.definitions.CONTRACT_TYPE_VERSION, 12318 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy, 12319 countsVersion: props.definitions.CONTRACT_TYPE_COUNTS_VERSION 12320 }, null, 8, ["version", "staticOptions", "countsVersion"]), 12321 createVNode(_sfc_main$8, { 12322 version: props.definitions.PRICE_EUR_VERSION 12323 }, null, 8, ["version"]), 12324 createVNode(_sfc_main$A, { version: 2 }) 12325 ]) 12326 ], 32); 12327 }; 12328 } 12329}); 12330const _hoisted_1$4 = { class: "EstateFilterItem EstateFilterItem-inline EstateFilterItem-center full-row" }; 12331const _hoisted_2$4 = { class: "EstateFilterItemContextChips-inner" }; 12332const _hoisted_3$2 = { 12333 key: 0, 12334 class: "item" 12335}; 12336const _hoisted_4$2 = ["innerHTML"]; 12337const _hoisted_5$2 = { 12338 key: 1, 12339 class: "item" 12340}; 12341const _hoisted_6$2 = ["innerHTML"]; 12342const _sfc_main$4 = /* @__PURE__ */ defineComponent({ 12343 __name: "ContextChips", 12344 setup(__props) { 12345 const store = useStore(); 12346 const valuesStore = useFilterValuesStore(); 12347 function onClickRemoveContextChip(parameterName) { 12348 valuesStore[parameterName] = void 0; 12349 } 12350 return (_ctx, _cache) => { 12351 return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$4, [ 12352 createBaseVNode("div", _hoisted_2$4, [ 12353 unref(valuesStore).id_uzivatel !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_3$2, [ 12354 createBaseVNode("div", { 12355 innerHTML: unref(store).parameterValueNames["id_uzivatel"][parseInt(unref(valuesStore).id_uzivatel)] 12356 }, null, 8, _hoisted_4$2), 12357 createBaseVNode("span", { 12358 onClick: _cache[0] || (_cache[0] = () => onClickRemoveContextChip("id_uzivatel")) 12359 }, " X ") 12360 ])) : createCommentVNode("", true), 12361 unref(valuesStore).id_pobocka !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_5$2, [ 12362 createBaseVNode("div", { 12363 innerHTML: unref(store).parameterValueNames["id_pobocka"][parseInt(unref(valuesStore).id_pobocka)] 12364 }, null, 8, _hoisted_6$2), 12365 createBaseVNode("span", { 12366 onClick: _cache[1] || (_cache[1] = () => onClickRemoveContextChip("id_pobocka")) 12367 }, " X ") 12368 ])) : createCommentVNode("", true) 12369 ]) 12370 ], 512)), [ 12371 [vShow, unref(valuesStore).id_uzivatel !== void 0 || unref(valuesStore).id_pobocka !== void 0] 12372 ]); 12373 }; 12374 } 12375}); 12376const _hoisted_1$3 = { class: "EstateFilterLayout" }; 12377const _hoisted_2$3 = { class: "u-textCenter full-row" }; 12378const _sfc_main$3 = /* @__PURE__ */ defineComponent({ 12379 __name: "remax-slovakia", 12380 props: { 12381 definitions: {}, 12382 addressSuggestToken: {} 12383 }, 12384 setup(__props) { 12385 const props = __props; 12386 const filterOpened = ref(true); 12387 const toggleFilterInputs = () => { 12388 filterOpened.value = !filterOpened.value; 12389 }; 12390 onMounted(() => { 12391 const url = new URL(window.location.href); 12392 const shouldHideFilterOnFirstView = url.searchParams && url.searchParams.get("hideFilter") == "1"; 12393 if (window.innerWidth <= 768 || shouldHideFilterOnFirstView) { 12394 filterOpened.value = false;
12395 } 12396 }); 12397 return (_ctx, _cache) => { 12398 return openBlock(), createElementBlock("form", { 12399 method: "GET", 12400 onSubmit: _cache[1] || (_cache[1] = withModifiers(() => { 12401 }, ["prevent"])) 12402 }, [ 12403 withDirectives(createBaseVNode("div", _hoisted_1$3, [ 12404 createVNode(_sfc_main$6, { token: _ctx.addressSuggestToken }, null, 8, ["token"]), 12405 createVNode(_sfc_main$G, { 12406 version: props.definitions.CONTRACT_TYPE_VERSION, 12407 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_smlouvy, 12408 countsVersion: props.definitions.CONTRACT_TYPE_COUNTS_VERSION 12409 }, null, 8, ["version", "staticOptions", "countsVersion"]), 12410 createVNode(_sfc_main$H, { 12411 version: props.definitions.PROPERTY_TYPE_VERSION, 12412 staticOptions: props.definitions.STATIC_OPTIONS.id_typ_nemovitosti 12413 }, null, 8, ["version", "staticOptions"]), 12414 createVNode(_sfc_main$B, { 12415 version: props.definitions.PROPERTY_SUB_TYPE_VERSION, 12416 countsVersion: props.definitions.PROPERTY_SUB_TYPE_COUNTS_VERSION 12417 }, null, 8, ["version", "countsVersion"]), 12418 createVNode(_sfc_main$E, { 12419 version: props.definitions.LOCALITY_VERSION, 12420 versionForeign: props.definitions.LOCALITY_FOREIGN_VERSION 12421 }, null, 8, ["version", "versionForeign"]), 12422 createVNode(_sfc_main$8, { 12423 version: props.definitions.PRICE_EUR_VERSION 12424 }, null, 8, ["version"]), 12425 createVNode(_sfc_main$r, { 12426 version: props.definitions.AREA_VERSION 12427 }, null, 8, ["version"]), 12428 createVNode(_sfc_main$4) 12429 ], 512), [ 12430 [vShow, filterOpened.value] 12431 ]), 12432 createBaseVNode("div", _hoisted_2$3, [ 12433 withDirectives(createVNode(_sfc_main$A, { version: 0 }, null, 512), [ 12434 [vShow, filterOpened.value] 12435 ]), 12436 createBaseVNode("span", { 12437 class: "showLessOrMoreButton", 12438 onClick: _cache[0] || (_cache[0] = ($event) => toggleFilterInputs()) 12439 }, [ 12440 createTextVNode(toDisplayString(filterOpened.value ? "SchovaÅ¥ filter" : "ZobraziÅ¥ filter nehnuteľnostÃ") + " ", 1), 12441 (openBlock(), createElementBlock("svg", { 12442 class: normalizeClass({ "rotatedSVG": filterOpened.value }), 12443 xmlns: "http://www.w3.org/2000/svg", 12444 width: "12", 12445 height: "16",
12446 viewBox: "0 0 12 16", 12447 fill: "none" 12448 }, _cache[2] || (_cache[2] = [ 12449 createBaseVNode("path", { 12450 d: "M5.89908 0.00734486C6.39013 0.00734452 6.78911 0.406324 6.78787 0.896128L6.79164 13.2054L10.3026 9.69439C10.4782 9.51884 10.7237 9.42307 10.9754 9.43658C11.227 9.45009 11.4591 9.5618 11.6199 9.75945C11.9059 10.1093 11.8556 10.6556 11.5069 11.0043L7.78978 14.7214C6.74999 15.7612 5.05835 15.7612 4.01856 14.7214L0.30139 11.0043C-0.0509363 10.6519 -0.101263 10.1057 0.188442 9.75945C0.351713 9.55935 0.583731 9.44519 0.836626 9.4329C1.08829 9.4194 1.33381 9.51515 1.50937 9.69071L5.02038 13.2017L5.02038 0.888679C5.02038 0.397635 5.41936 -0.00134544 5.90916 -0.000104322L5.89908 0.00734486Z", 12451 fill: "#000E35" 12452 }, null, -1) 12453 ]), 2)) 12454 ]) 12455 ]) 12456 ], 32); 12457 }; 12458 } 12459}); 12460const _export_sfc = (sfc, props) => { 12461 const target = sfc.__vccOpts || sfc; 12462 for (const [key, val] of props) { 12463 target[key] = val; 12464 } 12465 return target; 12466}; 12467const _sfc_main$2 = {}; 12468const _hoisted_1$2 = { class: "FilterSkeleton" }; 12469const _hoisted_2$2 = { class: "FilterSkeleton-section" }; 12470const _hoisted_3$1 = { class: "FilterSkeleton-grid5" }; 12471const _hoisted_4$1 = { class: "FilterSkeleton-section" }; 12472const _hoisted_5$1 = { class: "FilterSkeleton-flex2" }; 12473const _hoisted_6$1 = { class: "FilterSkeleton-section" }; 12474const _hoisted_7$1 = { class: "FilterSkeleton-gridRegions" }; 12475const _hoisted_8$1 = { class: "FilterSkeleton-section" }; 12476const _hoisted_9$1 = { class: "FilterSkeleton-gridRegions" }; 12477const _hoisted_10$1 = { class: "FilterSkeleton-section" }; 12478const _hoisted_11$1 = { class: "FilterSkeleton-gridRegions" }; 12479function _sfc_render(_ctx, _cache) { 12480 return openBlock(), createElementBlock("div", _hoisted_1$2, [ 12481 _cache[0] || (_cache[0] = createBaseVNode("div", { class: "FilterSkeleton-section" }, [ 12482 createBaseVNode("div", { class: "FilterSkeleton-item FilterSkeleton-item--search" }) 12483 ], -1)), 12484 createBaseVNode("div", _hoisted_2$2, [ 12485 createBaseVNode("div", _hoisted_3$1, [ 12486 (openBlock(), createElementBlock(Fragment, null, renderList(5, (n) => { 12487 return createBaseVNode("div", { 12488 key: n, 12489 class: "FilterSkeleton-item FilterSkeleton-item--card" 12490 }); 12491 }), 64)) 12492 ]) 12493 ]), 12494 createBaseVNode("div", _hoisted_4$1, [ 12495 createBaseVNode("div", _hoisted_5$1, [ 12496 (openBlock(), createElementBlock(Fragment, null, renderList(2, (n) => { 12497 return createBaseVNode("div", { 12498 key: n, 12499 class: "FilterSkeleton-item FilterSkeleton-item--buttonSmall" 12500 }); 12501 }), 64)) 12502 ]) 12503 ]), 12504 _cache[1] || (_cache[1] = createBaseVNode("div", { class: "FilterSkeleton-section" }, [ 12505 createBaseVNode("div", { class: "FilterSkeleton-item FilterSkeleton-item--select" }) 12506 ], -1)), 12507 createBaseVNode("div", _hoisted_6$1, [ 12508 createBaseVNode("div", _hoisted_7$1, [ 12509 (openBlock(), createElementBlock(Fragment, null, renderList(14, (n) => { 12510 return createBaseVNode("div", { 12511 key: n, 12512 class: "FilterSkeleton-item FilterSkeleton-item--checkbox" 12513 }); 12514 }), 64)) 12515 ]) 12516 ]), 12517 createBaseVNode("div", _hoisted_8$1, [ 12518 createBaseVNode("div", _hoisted_9$1, [ 12519 (openBlock(), createElementBlock(Fragment, null, renderList(2, (n) => { 12520 return createBaseVNode("div", { 12521 key: n, 12522 class: "FilterSkeleton-item FilterSkeleton-item--checkbox" 12523 }); 12524 }), 64)) 12525 ]) 12526 ]), 12527 createBaseVNode("div", _hoisted_10$1, [ 12528 createBaseVNode("div", _hoisted_11$1, [ 12529 (openBlock(), createElementBlock(Fragment, null, renderList(2, (n) => { 12530 return createBaseVNode("div", { 12531 key: n, 12532 class: "FilterSkeleton-item FilterSkeleton-item--checkbox" 12533 }); 12534 }), 64)) 12535 ]) 12536 ]), 12537 _cache[2] || (_cache[2] = createBaseVNode("div", { class: "FilterSkeleton-section FilterSkeleton-section--footer" }, [ 12538 createBaseVNode("div", { class: "FilterSkeleton-item FilterSkeleton-item--buttonSubmit" }) 12539 ], -1)) 12540 ]); 12541} 12542const RealityProradostPreload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render]]); 12543const _hoisted_1$1 = { class: "EstateFilterToggle" }; 12544const _hoisted_2$1 = ["aria-expanded"]; 12545const _hoisted_3 = { class: "EstateFilterToggle-label" }; 12546const _hoisted_4 = { 12547 key: 0, 12548 class: "EstateFilterToggle-badge" 12549}; 12550const _hoisted_5 = { class: "EstateFilterPanel" }; 12551const _hoisted_6 = { class: "EstateFilterPanel-block" }; 12552const _hoisted_7 = { class: "EstateFilterPanel-label" }; 12553const _hoisted_8 = { class: "EstateFilterPills" }; 12554const _hoisted_9 = { class: "EstateFilterPills-label" }; 12555const _hoisted_10 = { class: "EstateFilterPills-count" }; 12556const _hoisted_11 = ["data-id-typ-nemovitosti-vue", "onClick"]; 12557const _hoisted_12 = { class: "EstateFilterPills-label" }; 12558const _hoisted_13 = { class: "EstateFilterPills-count" }; 12559const _hoisted_14 = { class: "EstateFilterPanel-grid" }; 12560const _hoisted_15 = { 12561 class: "EstateFilterItem", 12562 "data-filter-el": "price" 12563}; 12564const _hoisted_16 = { class: "label" }; 12565const _hoisted_17 = { class: "EstateFilterItem-layout" }; 12566const _hoisted_18 = ["placeholder"]; 12567const _hoisted_19 = ["placeholder"]; 12568const _hoisted_20 = { 12569 class: "EstateFilterItem", 12570 "data-filter-el": "area" 12571}; 12572const _hoisted_21 = { class: "label" }; 12573const _hoisted_22 = { class: "EstateFilterItem-layout" }; 12574const _hoisted_23 = ["placeholder"]; 12575const _hoisted_24 = ["placeholder"]; 12576const _hoisted_25 = { 12577 class: "EstateFilterItem EstateFilterItem--select", 12578 "data-filter-el": "typ-smlouvy" 12579}; 12580const _hoisted_26 = { class: "label" }; 12581const _hoisted_27 = { class: "EstateFilterItem-layout" }; 12582const _hoisted_28 = ["value"]; 12583const _hoisted_29 = { class: "EstateFilterPanel-block EstateFilterPanel-block--locality" }; 12584const _hoisted_30 = { class: "EstateFilterPanel-label" }; 12585const _hoisted_31 = { 12586 key: 0, 12587 class: "EstateFilterPanel-block" 12588}; 12589const _hoisted_32 = { class: "EstateFilterPanel-label" }; 12590const _hoisted_33 = { class: "EstateFilterTags" }; 12591const _hoisted_34 = ["for"]; 12592const _hoisted_35 = ["name", "id", "onUpdate:modelValue"]; 12593const _hoisted_36 = { class: "checkItem-label" }; 12594const _hoisted_37 = { class: "EstateFilterPanel-footer" }; 12595const _sfc_main$1 = /* @__PURE__ */ defineComponent({ 12596 __name: "burgstaller", 12597 props: { 12598 definitions: {} 12599 }, 12600 setup(__props) { 12601 const props = __props; 12602 const store = useStore(); 12603 const valuesStore = useFilterValuesStore(); 12604 const panelOpen = ref(true); 12605 const TYPE_KEYS = ["3", "1", "4", "5"]; 12606 const CONTRACT_OPTIONS = [ 12607 { value: 0, label: "filter_contract_all" }, 12608 { value: 1, label: "filter_sale" }, 12609 { value: 3, label: "filter_rent" } 12610 ]; 12611 const TAGS = [ 12612 { key: "novinka", label: "filter_novinka", visibility: "showAdvertisementInformationNovinka" }, 12613 { key: "doporucujeme", label: "filter_doporucujeme", visibility: "showAdvertisementInformationDoporucujeme" }, 12614 { key: "sleva_zobrazit", label: "filter_sleva_zobrazit", visibility: "showAdvertisementInformationSlevaZ
12614obrazit" }, 12615 { key: "video", label: "filter_video", labelOverride: "video", visibility: "showAdvertisementInformationVideo" }, 12616 { key: "matterport", label: "filter_matterport", visibility: "showAdvertisementInformationMatterport" } 12617 ]; 12618 const LOCALITY_KEYS = ["idKraje", "idOkresy", "idMesta", "idCObce", "idMCasti", "idPObvod", "idKUzemi"]; 12619 const labels = computed(() => props.definitions.LABELS ?? {}); 12620 const typeKeys = computed(() => { 12621 var _a2; 12622 const options = ((_a2 = props.definitions.STATIC_OPTIONS) == null ? void 0 : _a2.id_typ_nemovitosti) ?? {}; 12623 return TYPE_KEYS.filter((key) => typeof options[key] !== "undefined"); 12624 }); 12625 const typeCount = (key) => store.getCountValue("id_typ_nemovitosti", key) ?? 0; 12626 const allTypesCount = computed(() => typeKeys.value.reduce((sum, key) => sum + typeCount(key), 0)); 12627 const selectedTypeIds = computed(() => valuesStore.id_typ_nemovitosti.map((value) => parseInt(value)).filter((value) => value > 0)); 12628 const isTypeActive = (key) => selectedTypeIds.value.includes(parseInt(key)); 12629 const isAllTypesActive = computed(() => selectedTypeIds.value.length === 0); 12630 const selectType = (key) => { 12631 var _a2; 12632 if (key === null) { 12633 valuesStore.$patch({ id_typ_nemovitosti: [], id_podtyp_nemovitosti: [] }); 12634 return; 12635 } 12636 const relations = ((_a2 = window.filterItemsRelations) == null ? void 0 : _a2.id_typ_nemovitosti) ?? {}; 12637 const ids = Object.entries(relations).filter(([, group]) => String(group) === String(key)).map(([id]) => parseInt(id)); 12638 valuesStore.$patch({ 12639 id_typ_nemovitosti: ids.length ? ids : [parseInt(key)], 12640 id_podtyp_nemovitosti: [] 12641 }); 12642 }; 12643 const formatPrice = (event2, field) => { 12644 const parsed = window.parseCena(event2.target.value); 12645 valuesStore[field] = isNaN(parsed) ? "" : window.formatCena(parsed); 12646 }; 12647 const visibleTags = computed(() => TAGS.filter((tag) => store[tag.visibility])); 12648 const tagLabel = (tag) => tag.labelOverride && labels.value[tag.labelOverride] || ""; 12649 const hasValue = (value) => value !== void 0 && value !== null && value !== "" && value !== false; 12650 const activeFiltersCount = computed(() => { 12651 let count = 0; 12652 if (selectedTypeIds.value.length) 12653 count++; 12654 if (parseInt(valuesStore.id_typ_smlouvy) > 0) 12655 count++; 12656 if (hasValue(valuesStore.cena_od)) 12657 count++; 12658 if (hasValue(valuesStore.cena_do)) 12659 count++; 12660 if (hasValue(valuesStore.plocha_od)) 12661 count++; 12662 if (hasValue(valuesStore.plocha_do)) 12663 count++; 12664 if (LOCALITY_KEYS.some((key) => (valuesStore[key] ?? []).length)) 12665 count++; 12666 if (visibleTags.value.some((tag) => hasValue(valuesStore[tag.key]))) 12667 count++; 12668 return count; 12669 }); 12670 onMounted(() => { 12671 const url = new URL(window.location.href); 12672 if (url.searchParams.get("hideFilter") === "1") { 12673 panelOpen.value = false; 12674 } 12675 }); 12676 return (_ctx, _cache) => { 12677 return openBlock(), createElementBlock("form", { 12678 class: "EstateFilterForm", 12679 method: "GET", 12680 onSubmit: _cache[9] || (_cache[9] = withModifiers(() => { 12681 }, ["prevent"])) 12682 }, [ 12683 createBaseVNode("div", _hoisted_1$1, [ 12684 createBaseVNode("button", { 12685 type: "button", 12686 class: "EstateFilterToggle-button", 12687 "aria-expanded": panelOpen.value, 12688 onClick: _cache[0] || (_cache[0] = ($event) => panelOpen.value = !panelOpen.value) 12689 }, [ 12690 _cache[11] || (_cache[11] = createBaseVNode("svg", { 12691 class: "EstateFilterToggle-icon", 12692 width: "15", 12693 height: "14",
12694 viewBox: "0 0 21 19", 12695 fill: "none", 12696 "aria-hidden": "true" 12697 }, [ 12698 createBaseVNode("path", { 12699 fill: "currentColor", 12700 d: "M0 15.88v1.787h4.817V15.88zm0-7.107v1.774h11.813V8.773zm0-7.106v1.786h3.071V1.667zM10.933 15.88v1.787H21V15.88zm6.996-7.107v1.774H21V8.773zM9.188 1.667v1.786H21V1.667zM6.07 0C7.43 0 8.531 1.12 8.531 2.5S7.43 5 6.071 5C4.711 5 3.608 3.88 3.608 2.5S4.712 0 6.07 0zm8.86 7c1.358 0 2.46 1.12 2.46 2.5S16.289 12 14.93 12c-1.359 0-2.461-1.12-2.461-2.5S13.57 7 14.929 7zm-6.89 7c1.357 0 2.46 1.12 2.46 2.5S9.397 19 8.04 19c-1.36 0-2.462-1.12-2.462-2.5S6.681 14 8.04 14z" 12701 }) 12702 ], -1)), 12703 createBaseVNode("span", _hoisted_3, toDisplayString(panelOpen.value ? labels.value.toggleHide : labels.value.toggleShow), 1), 12704 !panelOpen.value && activeFiltersCount.value > 0 ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(activeFiltersCount.value), 1)) : createCommentVNode("", true), 12705 (openBlock(), createElementBlock("svg", { 12706 class: normalizeClass(["EstateFilterToggle-chevron", { "is-open": panelOpen.value }]), 12707 width: "13", 12708 height: "13",
12709 viewBox: "0 0 24 24", 12710 fill: "none", 12711 stroke: "currentColor", 12712 "stroke-width": "2.5", 12713 "stroke-linecap": "round", 12714 "stroke-linejoin": "round", 12715 "aria-hidden": "true" 12716 }, _cache[10] || (_cache[10] = [ 12717 createBaseVNode("path", { d: "m6 9 6 6 6-6" }, null, -1) 12718 ]), 2)) 12719 ], 8, _hoisted_2$1) 12720 ]), 12721 withDirectives(createBaseVNode("div", _hoisted_5, [ 12722 createBaseVNode("div", _hoisted_6, [ 12723 createBaseVNode("span", _hoisted_7, toDisplayString(_ctx.$translate("filter_property_type")), 1), 12724 createBaseVNode("div", _hoisted_8, [ 12725 createBaseVNode("button", { 12726 type: "button", 12727 class: normalizeClass(["EstateFilterPills-item", { "is-active": isAllTypesActive.value }]), 12728 onClick: _cache[1] || (_cache[1] = ($event) => selectType(null)) 12729 }, [ 12730 createBaseVNode("span", _hoisted_9, toDisplayString(_ctx.$translate("filter_contract_all")), 1), 12731 createBaseVNode("span", _hoisted_10, toDisplayString(allTypesCount.value), 1) 12732 ], 2), 12733 (openBlock(true), createElementBlock(Fragment, null, renderList(typeKeys.value, (key) => { 12734 return openBlock(), createElementBlock("button", { 12735 key, 12736 type: "button", 12737 class: normalizeClass(["EstateFilterPills-item", { "is-active": isTypeActive(key) }]), 12738 "data-id-typ-nemovitosti-vue": key, 12739 onClick: ($event) => selectType(key) 12740 }, [ 12741 createBaseVNode("span", _hoisted_12, toDisplayString(_ctx.$translate("zs.type." + key)), 1), 12742 createBaseVNode("span", _hoisted_13, toDisplayString(typeCount(key)), 1) 12743 ], 10, _hoisted_11); 12744 }), 128)) 12745 ]) 12746 ]), 12747 createBaseVNode("div", _hoisted_14, [ 12748 createBaseVNode("div", _hoisted_15, [ 12749 createBaseVNode("div", _hoisted_16, toDisplayString(labels.value.price), 1), 12750 createBaseVNode("div", _hoisted_17, [ 12751 withDirectives(createBaseVNode("input", { 12752 id: "priceFrom", 12753 name: "priceFrom", 12754 type: "text", 12755 step: "1000", 12756 placeholder: labels.value.from, 12757 "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(valuesStore).cena_od = $event), 12758 onKeyup: _cache[3] || (_cache[3] = (ev) => formatPrice(ev, "cena_od")) 12759 }, null, 40, _hoisted_18), [ 12760 [vModelText, unref(valuesStore).cena_od] 12761 ]), 12762 withDirectives(createBaseVNode("input", { 12763 id: "priceTo", 12764 name: "priceTo", 12765 type: "text", 12766 step: "1000", 12767 placeholder: labels.value.to, 12768 "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(valuesStore).cena_do = $event), 12769 onKeyup: _cache[5] || (_cache[5] = (ev) => formatPrice(ev, "cena_do")) 12770 }, null, 40, _hoisted_19), [ 12771 [vModelText, unref(valuesStore).cena_do] 12772 ]) 12773 ]) 12774 ]), 12775 createBaseVNode("div", _hoisted_20, [ 12776 createBaseVNode("div", _hoisted_21, toDisplayString(labels.value.area), 1), 12777 createBaseVNode("div", _hoisted_22, [ 12778 withDirectives(createBaseVNode("input", { 12779 id: "areaFrom", 12780 name: "areaFrom", 12781 type: "number", 12782 placeholder: labels.value.from, 12783 "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(valuesStore).plocha_od = $event) 12784 }, null, 8, _hoisted_23), [ 12785 [vModelText, unref(valuesStore).plocha_od] 12786 ]), 12787 withDirectives(createBaseVNode("input", { 12788 id: "areaTo", 12789 name: "areaTo", 12790 type: "number", 12791 placeholder: labels.value.to, 12792 "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(valuesStore).plocha_do = $event) 12793 }, null, 8, _hoisted_24), [ 12794 [vModelText, unref(valuesStore).plocha_do] 12795 ]) 12796 ]) 12797 ]), 12798 createBaseVNode("div", _hoisted_25, [ 12799 createBaseVNode("div", _hoisted_26, toDisplayString(labels.value.contractType), 1), 12800 createBaseVNode("div", _hoisted_27, [ 12801 withDirectives(createBaseVNode("select", { 12802 id: "contractType", 12803 name: "id_typ_smlouvy", 12804 class: "EstateFilterSelect", 12805 "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(valuesStore).id_typ_smlouvy = $event) 12806 }, [ 12807 (openBlock(), createElementBlock(Fragment, null, renderList(CONTRACT_OPTIONS, (option) => { 12808 return createBaseVNode("option", { 12809 key: option.value, 12810 value: option.value 12811 }, toDisplayString(_ctx.$translate(option.label)), 9, _hoisted_28); 12812 }), 64)) 12813 ], 512), [ 12814 [vModelSelect, unref(valuesStore).id_typ_smlouvy] 12815 ]) 12816 ]) 12817 ]) 12818 ]), 12819 createBaseVNode("div", _hoisted_29, [ 12820 createBaseVNode("span", _hoisted_30, toDisplayString(_ctx.$translate("filter_locality")), 1), 12821 createVNode(_sfc_main$E, { 12822 version: props.definitions.LOCALITY_VERSION, 12823 versionForeign: props.definitions.LOCALITY_FOREIGN_VERSION 12824 }, null, 8, ["version", "versionForeign"]) 12825 ]), 12826 visibleTags.value.length ? (openBlock(), createElementBlock("div", _hoisted_31, [ 12827 createBaseVNode("span", _hoisted_32, toDisplayString(_ctx.$translate("filter_advertisement_information")), 1), 12828 createBaseVNode("div", _hoisted_33, [ 12829 (openBlock(true), createElementBlock(Fragment, null, renderList(visibleTags.value, (tag) => { 12830 return openBlock(), createElementBlock("div", { 12831 key: tag.key, 12832 class: "checkItem" 12833 }, [ 12834 createBaseVNode("label", { 12835 for: "EstateFilterTag-" + tag.key 12836 }, [ 12837 withDirectives(createBaseVNode("input", { 12838 type: "checkbox", 12839 name: tag.key, 12840 id: "EstateFilterTag-" + tag.key, 12841 value: 1, 12842 "onUpdate:modelValue": ($event) => unref(valuesStore)[tag.key] = $event 12843 }, null, 8, _hoisted_35), [ 12844 [vModelCheckbox, unref(valuesStore)[tag.key]] 12845 ]), 12846 _cache[12] || (_cache[12] = createBaseVNode("span", { class: "checkItem-square" }, null, -1)), 12847 createBaseVNode("span", _hoisted_36, toDisplayString(tagLabel(tag) || _ctx.$translate(tag.label)), 1) 12848 ], 8, _hoisted_34) 12849 ]); 12850 }), 128)) 12851 ]) 12852 ])) : createCommentVNode("", true), 12853 createBaseVNode("div", _hoisted_37, [ 12854 createVNode(_sfc_main$A, { version: 0 }) 12855 ]) 12856 ], 512), [ 12857 [vShow, panelOpen.value] 12858 ]) 12859 ], 32); 12860 }; 12861 } 12862}); 12863const _hoisted_1 = { class: "filter-preload" }; 12864const _hoisted_2 = { 12865 key: 1, 12866 class: "filter-preload-circle" 12867};
12868const _sfc_main = /* @__PURE__ */ defineComponent({ 12869 __name: "App", 12870 props: { 12871 app: {}, 12872 definitions: {}, 12873 defaultPreviewData: {}, 12874 development: { type: Boolean }, 12875 addressSuggestToken: {} 12876 }, 12877 setup(__props) { 12878 const store = useStore(); 12879 const props = __props; 12880 onMounted(() => { 12881 const store2 = useStore(); 12882 store2.appVersion = props.app; 12883 store2.definitions = props.definitions; 12884 store2.defaultPreviewData = props.defaultPreviewData; 12885 const valuesStore = useFilterValuesStore(); 12886 valuesStore.setFromCurrentUrl(); 12887 store2.loadFilterChoicesAndCounts(true).then(() => { 12888 if (props.app === "jenreality") { 12889 store2.sendForm(true); 12890 } 12891 }); 12892 valuesStore.$subscribe(() => { 12893 store2.loadFilterChoicesAndCounts().then(() => { 12894 window.EnhancedSelectRebuild("id_typ_nemovitosti"); 12895 window.EnhancedSelectRebuild("id_typ_smlouvy"); 12896 window.EnhancedSelectRebuild("country"); 12897 window.EnhancedSelectRebuild("idOkresy"); 12898 window.EnhancedSelectRebuild("idMesta"); 12899 window.EnhancedSelectRebuild("furnished"); 12900 }); 12901 }); 12902 document.querySelector("[data-frontend-filter]").addEventListener("setIdTypSmlouvy", (e) => { 12903 const valuesStore2 = useFilterValuesStore(); 12904 valuesStore2.id_typ_smlouvy = e.detail.id_typ_smlouvy; 12905 }); 12906 document.querySelector("[data-frontend-filter]").addEventListener("setIdTypNemovitosti", (e) => { 12907 const valuesStore2 = useFilterValuesStore(); 12908 const store3 = useStore(); 12909 if (e.detail.id_typ_nemovitosti == "no-CZ") { 12910 valuesStore2.idStat = "no-CZ"; 12911 window.setTimeout(() => { 12912 document.getElementById("country").value = valuesStore2.idStat; 12913 document.getElementById("country").dispatchEvent(new Event("change")); 12914 window.EnhancedSelectRebuild("country"); 12915 }, 2500); 12916 } else { 12917 valuesStore2.id_typ_nemovitosti = [parseInt(e.detail.id_typ_nemovitosti)]; 12918 valuesStore2.idStat = "CZ"; 12919 } 12920 store3.showFilterValue = true; 12921 }); 12922 }); 12923 return (_ctx, _cache) => { 12924 return openBlock(), createElementBlock(Fragment, null, [ 12925 props.app === "domovberoun" ? (openBlock(), createBlock(_sfc_main$f, { 12926 key: 0, 12927 definitions: props.definitions 12928 }, null, 8, ["definitions"])) : createCommentVNode("", true), 12929 withDirectives(createBaseVNode("div", _hoisted_1, [ 12930 props.app === "reality-proradost" ? (openBlock(), createBlock(RealityProradostPreload, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2)) 12931 ], 512), [ 12932 [vShow, unref(store).getLoading] 12933 ]), 12934 withDirectives(createBaseVNode("div", null, [ 12935 props.app === "Poski" ? (openBlock(), createBlock(_sfc_main$o, { 12936 key: 0, 12937 definitions: props.definitions 12938 }, null, 8, ["definitions"])) : createCommentVNode("", true), 12939 props.app === "PoskiSimple" ? (openBlock(), createBlock(_sfc_main$m, { 12940 key: 1, 12941 definitions: props.definitions 12942 }, null, 8, ["definitions"])) : createCommentVNode("", true), 12943 props.app === "PoskiIndex" ? (openBlock(), createBlock(_sfc_main$n, { 12944 key: 2, 12945 definitions: props.definitions 12946 }, null, 8, ["definitions"])) : createCommentVNode("", true), 12947 props.app === "PoskiEasyIndex" ? (openBlock(), createBlock(_sfc_main$a, { 12948 key: 3, 12949 definitions: props.definitions 12950 }, null, 8, ["definitions"])) : createCommentVNode("", true), 12951 props.app === "KlasikPortal" ? (openBlock(), createBlock(_sfc_main$t, { 12952 key: 4, 12953 definitions: props.definitions 12954 }, null, 8, ["definitions"])) : createCommentVNode("", true), 12955 props.app === "jenreality" ? (openBlock(), createBlock(_sfc_main$h, { 12956 key: 5, 12957 definitions: props.definitions 12958 }, null, 8, ["definitions"])) : createCommentVNode("", true),
12959 props.app === "jenrealityIndex" ? (openBlock(), createBlock(_sfc_main$g, { 12960 key: 6, 12961 definitions: props.definitions 12962 }, null, 8, ["definitions"])) : createCommentVNode("", true), 12963 props.app === "boreality" ? (openBlock(), createBlock(_sfc_main$d, { 12964 key: 7, 12965 definitions: props.definitions 12966 }, null, 8, ["definitions"])) : createCommentVNode("", true), 12967 props.app === "ceska-realitni" ? (openBlock(), createBlock(_sfc_main$c, { 12968 key: 8, 12969 definitions: props.definitions 12970 }, null, 8, ["definitions"])) : createCommentVNode("", true), 12971 props.app === "solomgroup" ? (openBlock(), createBlock(_sfc_main$b, { 12972 key: 9, 12973 definitions: props.definitions 12974 }, null, 8, ["definitions"])) : createCommentVNode("", true), 12975 props.app === "reality-proradost" ? (openBlock(), createBlock(_sfc_main$9, { 12976 key: 10, 12977 definitions: props.definitions 12978 }, null, 8, ["definitions"])) : createCommentVNode("", true), 12979 props.app === "burgstaller" ? (openBlock(), createBlock(_sfc_main$1, { 12980 key: 11, 12981 definitions: props.definitions 12982 }, null, 8, ["definitions"])) : createCommentVNode("", true), 12983 props.app === "PoskiForeignAddress" ? (openBlock(), createBlock(_sfc_main$7, { 12984 key: 12, 12985 definitions: props.definitions 12986 }, null, 8, ["definitions"])) : createCommentVNode("", true), 12987 props.app === "remax-slovakia" ? (openBlock(), createBlock(_sfc_main$3, { 12988 key: 13, 12989 definitions: props.definitions, 12990 "address-suggest-token": props.addressSuggestToken 12991 }, null, 8, ["definitions", "address-suggest-token"])) : createCommentVNode("", true), 12992 props.app === "remax-slovakiaIndex" ? (openBlock(), createBlock(_sfc_main$5, { 12993 key: 14, 12994 definitions: props.definitions, 12995 "address-suggest-token": props.addressSuggestToken 12996 }, null, 8, ["definitions", "address-suggest-token"])) : createCommentVNode("", true) 12997 ], 512), [ 12998 [vShow, !unref(store).getLoading] 12999 ]) 13000 ], 64); 13001 }; 13002 } 13003}); 13004const translate = { 13005 install: (app) => { 13006 app.config.globalProperties.$translate = (key) => { 13007 return typeof window.poskiLocale[key] === "undefined" ? key : window.poskiLocale[key]; 13008 }; 13009 } 13010}; 13011const pinia = createPinia(); 13012const frontendAppSelector = "[data-frontend-filter]"; 13013const appElement = document.querySelector(frontendAppSelector); 13014const dataDefinitionsJSON = document.querySelector("#data-definitions").innerHTML; 13015const dataDefinitions = JSON.parse(dataDefinitionsJSON); 13016const defaultPreviewDataJSON = (_a = document.querySelector("#data-default-preview-data")) == null ? void 0 : _a.innerHTML; 13017var defaultPreviewData = null; 13018if (defaultPreviewDataJSON) { 13019 defaultPreviewData = JSON.parse(defaultPreviewDataJSON); 13020} 13021if (appElement instanceof HTMLElement) { 13022 if (typeof appElement.dataset.development !== "undefined" && appElement.dataset.development) { 13023 window.debugFunction = console; 13024 } else { 13025 window.debugFunction = { 13026 log: () => { 13027 } 13028 }; 13029 } 13030 const app = createApp(_sfc_main, { ...appElement.dataset, definitions: dataDefinitions, defaultPreviewData }); 13031 app.use(pinia); 13032 app.use(translate); 13033 app.mount(frontendAppSelector); 13034 appElement.dispatchEvent(new CustomEvent("VueLoaded", { 13035 "detail": { 13036 "vueAppName": "FrontendFilter" 13037 } 13038 })); 13039} else { 13040 throw new DOMException('Nebyl nalezen Vue.mount HTMLElement s selectorem "' + frontendAppSelector + '"'); 13041}
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.