1import { i as mf, __tla as __tla_0 } from "./chunk-_virtual___federation_fn_import.js"; 2let zS, ft, vp, tg, Wh, OU, zh, e0, Zh, Au, a5, ze, XM, Ko, Cu, pf, Vt, i5, zU, ES, Rs, FS, xS, JU, r5, Ut, s5, SU, at, AU, CU, YR, qR, qU, WU, GU, YU, PU, t5, _0, KU, QU, XU, mU, bU, gU, Ns, jU, cU, Sx, j$, xr, e5, LU, fR, DU, NU, Vm, Um, qm, Mt, lU, jh, $T, W2, n5, Tt, MU, UU, VU, RU, HU, BU, d4, p5, d5, $U, IU, FU, TU, fU, tR, xi, pU, U8, dI, F0, mF, rF, hU, Ea, IF, NR, wP, o5, jn, yU, kU, c5, mh, _U, vU, EU, $P, Z6, wU, uU, u5, Gs, l5, ua, xU, cg, dU, rf, ZU; 3let __tla = Promise.all([ 4 (() => { 5 try { 6 return __tla_0; 7 } catch { 8 } 9 })() 10]).then(async () => { 11 const { onMounted: nn, nextTick: rr, getCurrentScope: bi, onScopeDispose: vi, unref: ae, getCurrentInstance: kt, ref: pe, watch: Ue, watchEffect: ms, computed: ne, openBlock: m, createElementBlock: x, normalizeClass: R, createElementVNode: O, normalizeStyle: en, toDisplayString: H, createCommentVNode: M, defineComponent: Hr, h: Pr, effectScope: hf, inject: Br, onUnmounted: hs, shallowRef: yi, onBeforeMount: fa, Fragment: me, isRef: Ki, createVNode: K, Text: gs, Comment: gf, resolveComponent: j, createBlock: U, resolveDynamicComponent: ue, mergeProps: fe, withCtx: I, renderSlot: V, createTextVNode: re, useSlots: _i, resolveDirective: Gn, withDirectives: Je, renderList: ve, TransitionGroup: xl, Transition: Ol, toRef: $l, readonly: Tl, customRef: bs, cloneVNode: hb, withKeys: Ye, vShow: pt, createSlots: $n, toHandlers: Fr, onUpdated: gb, normalizeProps: Pt, guardReactiveProps: Bt, reactive: qn, provide: Oo, withModifiers: sn, mergeModels: Il, useModel: Fl, useAttrs: bf, onBeforeUnmount: bb, isReactive: vb, isReadonly: yb, toValue: _b, Teleport: Eb } = await mf("vue"), { useRoute: kb } = await mf("vue-router"); 12 function vf(e) { 13 return bi() ? (vi(e), true) : false; 14 } 15 function Nl(e) { 16 return typeof e == "function" ? e() : ae(e); 17 } 18 const Cb = typeof window < "u" && typeof document < "u"; 19 typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope; 20 const Ab = Object.prototype.toString, Sb = (e) => Ab.call(e) === "[object Object]", wb = () => { 21 }; 22 function Lb(e) { 23 return kt(); 24 } 25 function xb(e, t = true, n) { 26 Lb() ? nn(e, n) : t ? e() : rr(e); 27 } 28 function Ob(e) { 29 var t; 30 const n = Nl(e); 31 return (t = n == null ? void 0 : n.$el) != null ? t : n; 32 } 33 const Dl = Cb ? window : void 0; 34 function $b(...e) { 35 let t, n, i, a; 36 if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, i, a] = e, t = Dl) : [t, n, i, a] = e, !t) return wb; 37 Array.isArray(n) || (n = [ 38 n 39 ]), Array.isArray(i) || (i = [ 40 i 41 ]); 42 const r = [], s = () => { 43 r.forEach((c) => c()), r.length = 0; 44 }, o = (c, d, p, b) => (c.addEventListener(d, p, b), () => c.removeEventListener(d, p, b)), l = Ue(() => [ 45 Ob(t), 46 Nl(a) 47 ], ([c, d]) => { 48 if (s(), !c) return; 49 const p = Sb(d) ? { 50 ...d 51 } : d; 52 r.push(...n.flatMap((b) => i.map((h) => o(c, b, h, p)))); 53 }, {
54 immediate: true, 55 flush: "post" 56 }), u = () => { 57 l(), s(); 58 }; 59 return vf(u), u; 60 } 61 function Tb() { 62 const e = pe(false), t = kt(); 63 return t && nn(() => { 64 e.value = true; 65 }, t), e; 66 } 67 function Ib(e) { 68 const t = Tb(); 69 return ne(() => (t.value, !!e())); 70 } 71 function Fb(e, t = {}) { 72 const { window: n = Dl } = t, i = Ib(() => n && "matchMedia" in n && typeof n.matchMedia == "function"); 73 let a; 74 const r = pe(false), s = (u) => { 75 r.value = u.matches; 76 }, o = () => { 77 a && ("removeEventListener" in a ? a.removeEventListener("change", s) : a.removeListener(s)); 78 }, l = ms(() => { 79 i.value && (o(), a = n.matchMedia(Nl(e)), "addEventListener" in a ? a.addEventListener("change", s) : a.addListener(s), r.value = a.matches); 80 }); 81 return vf(() => { 82 l(), o(), a = void 0; 83 }), r; 84 } 85 function Nb(e = {}) { 86 const { window: t = Dl, initialWidth: n = Number.POSITIVE_INFINITY, initialHeight: i = Number.POSITIVE_INFINITY, listenOrientation: a = true, includeScrollbar: r = true } = e, s = pe(n), o = pe(i), l = () => { 87 t && (r ? (s.value = t.innerWidth, o.value = t.innerHeight) : (s.value = t.document.documentElement.clientWidth, o.value = t.document.documentElement.clientHeight)); 88 }; 89 if (l(), xb(l), $b("resize", l, { 90 passive: true 91 }), a) { 92 const u = Fb("(orientation: portrait)"); 93 Ue(u, () => l()); 94 } 95 return { 96 width: s, 97 height: o 98 }; 99 } 100 const Uu = { 101 xs: 0, 102 sm: 576, 103 md: 768, 104 lg: 992, 105 xl: 1200 106 }; 107 function ma() { 108 const { width: e } = Nb(); 109 return { 110 currentNestBreakpoint: ne(() => { 111 let t = "xs"; 112 return Object.keys(Uu).forEach((n) => { 113 e.value >= Uu[n] && (t = n); 114 }), t; 115 }) 116 }; 117 } 118 var Qt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; 119 function Ei(e) { 120 return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; 121 } 122 var $o = {}, Db = { 123 tr: { 124 regexp: /\u0130|\u0049|\u0049\u0307/g, 125 map: { 126 \u0130: "i", 127 I: "\u0131", 128 I\u0307: "i" 129 } 130 }, 131 az: { 132 regexp: /[\u0130]/g, 133 map: { 134 \u0130: "i", 135 I: "\u0131", 136 I\u0307: "i" 137 } 138 }, 139 lt: { 140 regexp: /[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g, 141 map: { 142 I: "i\u0307", 143 J: "j\u0307", 144 \u012E: "\u012F\u0307", 145 \u00CC: "i\u0307\u0300", 146 \u00CD: "i\u0307\u0301", 147 \u0128: "i\u0307\u0303" 148 } 149 } 150 }, ha = function(e, t) { 151 var n = Db[t]; 152 return e = e == null ? "" : String(e), n && (e = e.replace(n.regexp, function(i) { 153 return n.map[i]; 154 })), e.toLowerCase(); 155 }, Pb = /[^A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u
1550EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g, Bb = /([a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01D
155D\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u01
15578\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A])/g, Mb
vendor: 11,861 bytes, line 155
155 = /([A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A])([A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A][a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])/g
155, Rb = ha, Ub = Pb, Vb = Bb, Hb = Mb, Yn = function(e, t, n) { 156 if (e == null) return ""; 157 n = typeof n != "string" ? " " : n; 158 function i(a, r, s) { 159 return r === 0 || r === s.length - a.length ? "" : n; 160 } 161 return e = String(e).replace(Vb, "$1 $2").replace(Hb, "$1 $2").replace(Ub, i), Rb(e, t); 162 }, jb = Yn, zb = function(e, t) { 163 return jb(e, t, "."); 164 }, Wb = { 165 tr: { 166 regexp: /[\u0069]/g, 167 map: { 168 i: "\u0130" 169 } 170 }, 171 az: { 172 regexp: /[\u0069]/g, 173 map: { 174 i: "\u0130" 175 } 176 }, 177 lt: { 178 regexp: /[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g, 179 map: { 180 i\u0307: "I", 181 j\u0307: "J", 182 \u012F\u0307: "\u012E", 183 i\u0307\u0300: "\xCC", 184 i\u0307\u0301: "\xCD", 185 i\u0307\u0303: "\u0128" 186 } 187 } 188 }, lr = function(e, t) { 189 var n = Wb[t]; 190 return e = e == null ? "" : String(e), n && (e = e.replace(n.regexp, function(i) { 191 return n.map[i]; 192 })), e.toUpperCase(); 193 }, Gb = lr, qb = ha, Yb = function(e, t) { 194 if (e == null) return ""; 195 for (var n = "", i = 0; i < e.length; i++) { 196 var a = e[i], r = Gb(a, t); 197 n += r === a ? qb(a, t) : r; 198 } 199 return n; 200 }, Kb = Yn, Xb = function(e, t) { 201 return Kb(e, t, "/"); 202 }, Jb = lr, Qb = Yn, yf = function(e, t, n) { 203 var i = Qb(e, t); 204 return n || (i = i.replace(/ (?=\d)/g, "_")), i.replace(/ (.)/g, function(a, r) { 205 return Jb(r, t); 206 }); 207 }, Zb = Yn, _f = function(e, t) { 208 return Zb(e, t, "_"); 209 }, ev = Yn, tv = lr, nv = function(e, t) { 210 return ev(e, t).replace(/^.| ./g, function(n) { 211 return tv(n, t); 212 }); 213 }, rv = Yn, iv = function(e, t) { 214 return rv(e, t, "-"); 215 }, av = Yn, sv = lr, ov = function(e, t) { 216 return av(e, t, "-").replace(/^.|-./g, function(n) { 217 return sv(n, t); 218 }); 219 }, lv = lr, Pl = function(e, t) { 220 return e == null ? "" : (e = String(e), lv(e.charAt(0), t) + e.substr(1)); 221 }, uv = yf, cv = Pl, dv = function(e, t, n) { 222 return cv(uv(e, t, n), t); 223 }, pv = lr, fv = _f, mv = function(e, t) { 224 return pv(fv(e, t), t); 225 }, hv = Yn, gv = Pl, bv = function(e, t) { 226 return gv(hv(e, t), t); 227 }, vv = lr, yv = function(e, t) { 228 return vv(e, t) === e; 229 }, _v = ha, Ev = function(e, t) { 230 return _v(e, t) === e; 231 }, kv = ha, Cv = function(e, t) { 232 return e == null ? "" : (e = String(e), kv(e.charAt(0), t) + e.substr(1)); 233 }; 234 (function(e) { 235 e.no = e.noCase = Yn, e.dot = e.dotCase = zb, e.swap = e.swapCase = Yb, e.path = e.pathCase = Xb, e.upper = e.upperCase = lr, e.lower = e.lowerCase = ha, e.camel = e.camelCase = yf, e.snake = e.snakeCase = _f, e.title = e.titleCase = nv, e.param = e.paramCase = iv, e.kebab = e.kebabCase = e.paramCase, e.hyphen = e.hyphenCase = e.paramCase, e.header = e.headerCase = ov, e.pascal = e.pascalCase = dv, e.constant = e.constantCase = mv, e.sentence = e.sentenceCase = bv, e.isUpper = e.isUpperCase = yv, e.isLower = e.isLowerCase = Ev, e.ucFirst = e.upperCaseFirst = Pl, e.lcFirst = e.lowerCaseFirst = Cv; 236 })($o); 237 const te = (e, t) => { 238 const n = e.__vccOpts || e; 239 for (const [i, a] of t) n[i] = a; 240 return n; 241 }, Av = { 242 name: "n-icon", 243 props: { 244 icon: { 245 type: String, 246 default: "load" 247 }, 248 cdnUrl: { 249 type: String, 250 default: "https://www.canadalife.com/content/dam/public/icons/system/grey-dark/", 251 validator: (e) => e && e[e.length - 1] === "/" 252 }, 253 size: { 254 type: [ 255 Number, 256 String 257 ], 258 default: 24, 259 validator: function(e) { 260 return [ 261 "inline", 262 16, 263 20, 264 24, 265 32, 266 40, 267 80 268 ].includes(e); 269 } 270 }, 271 includeAriaLabel: { 272 type: [ 273 Boolean, 274 String 275 ], 276 default: false 277 } 278 }, 279 computed: { 280 iconName() { 281 return $o.kebabCase(this.icon); 282 }, 283 isEmpty() { 284 return this.iconName === "empty"; 285 }, 286 label() { 287 return typeof this.includeAriaLabel == "string" ? this.includeAriaLabel : $o.sentenceCase(this.icon); 288 }, 289 iconUrl() { 290 return this.cdnUrl + this.iconName + ".svg"; 291 } 292 } 293 }, Sv = { 294 key: 0, 295 class: "is-sr-only" 296 }; 297 function wv(e, t, n, i, a, r) { 298 return m(), x("span", { 299 class: R([ 300 [ 301 `n-icon--${r.iconName}`, 302 `n-icon--size-${n.size}` 303 ], 304 "n-icon no-interacting" 305 ]) 306 }, [ 307 O("span", { 308 class: "n-icon__icon", 309 "aria-hidden": "true", 310 style: en(`--n-js-icon-url: url('${r.iconUrl}')`) 311 }, null, 4), 312 n.includeAriaLabel ? (m(), x("p", Sv, H(r.label), 1)) : M("", true) 313 ], 2); 314 } 315 let Lv, xv, Ov, $v, Tv, Iv, Fv, Nv, Dv, Pv, Bv, Mv, Rv, Uv, Vv, Hv, jv, zv, Wv, Gv, qv, Yv, Kv, Xv, Jv, Qv, Zv, ey, Hi, vs;
316 Tt = te(Av, [ 317 [ 318 "render", 319 wv 320 ] 321 ]); 322 Lv = { 323 methods: { 324 createCSSCustomPropsFromObj(e = {}, t = "") { 325 if (e) return Object.keys(e).map((n) => `--${t}-${n}: ${e[n]};`).join(" "); 326 } 327 } 328 }; 329 xv = "blur"; 330 Ov = "change"; 331 $v = "click"; 332 Tv = "close"; 333 Iv = "create"; 334 Fv = "data-update"; 335 Nv = "destroy"; 336 Dv = "dismiss"; 337 Pv = "error"; 338 Bv = "focus"; 339 Mv = "input"; 340 Rv = "open"; 341 Uv = "pause"; 342 Vv = "play"; 343 Hv = "post-request-success"; 344 jv = "post-request-error"; 345 zv = "route-change"; 346 Wv = "submit"; 347 Gv = "submit-attempt"; 348 qv = "submit-error"; 349 Yv = "submit-success"; 350 Kv = "tab-change"; 351 Xv = "toggle"; 352 Jv = "touched"; 353 Qv = "update"; 354 Zv = "validation-error"; 355 ey = Object.freeze(Object.defineProperty({ 356 __proto__: null, 357 BLUR: xv, 358 CHANGE: Ov, 359 CLICK: $v, 360 CLOSE: Tv, 361 CREATE: Iv, 362 DATA_UPDATE: Fv, 363 DESTROY: Nv, 364 DISMISS: Dv, 365 ERROR: Pv, 366 FOCUS: Bv, 367 INPUT: Mv, 368 OPEN: Rv, 369 PAUSE: Uv, 370 PLAY: Vv, 371 POST_REQUEST_ERROR: jv, 372 POST_REQUEST_SUCCESS: Hv, 373 ROUTE_CHANGE: zv, 374 SUBMIT: Wv, 375 SUBMIT_ATTEMPT: Gv, 376 SUBMIT_ERROR: qv, 377 SUBMIT_SUCCESS: Yv, 378 TAB_CHANGE: Kv, 379 TOGGLE: Xv, 380 TOUCHED: Jv, 381 UPDATE: Qv, 382 VALIDATION_ERROR: Zv 383 }, Symbol.toStringTag, { 384 value: "Module" 385 })); 386 Hi = { 387 EVENT_TYPES: ey, 388 eventType: (e) => Hi.EVENT_TYPES[e.toUpperCase().replace(/-/g, "_")] || "default", 389 emitEvent: (e, t, n) => { 390 const i = new CustomEvent(`${e}--${Hi.eventType(t)}`, { 391 bubbles: true, 392 detail: { 393 component: e, 394 type: Hi.eventType(t), 395 el: {}, 396 textContent: "", 397 origin: window.location.href, 398 url: null, 399 ...n 400 } 401 }); 402 try { 403 n.el.dispatchEvent(i); 404 } catch (a) { 405 console.error(a); 406 } 407 }, 408 on: (e, t, n) => { 409 typeof t == "function" ? (n = t, Array.isArray(e) || (e = e.split()), e.forEach((i) => { 410 window.addEventListener(i, (a) => n(a)); 411 })) : t instanceof Element ? t.addEventListener(e, (i) => n(i)) : document.querySelector(t) && document.querySelector(t).addEventListener(e, (i) => n(i)); 412 } 413 }; 414 vs = "AIzaSyCZL5XLs1GT4Jf5uwI0bMb3_aV1SmUGr8I"; 415 var Ef = { 416 exports: {} 417 }; 418 (function(e, t) { 419 (function(n, i) { 420 e.exports = i(); 421 })(Qt, function() { 422 var n = 1e3, i = 6e4, a = 36e5, r = "millisecond", s = "second", o = "minute", l = "hour", u = "day", c = "week", d = "month", p = "quarter", b = "year", h = "date", _ = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, D = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 6,215 bytes, lines 422-580
422|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, N = { 423 name: "en", 424 weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), 425 months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), 426 ordinal: function(X) { 427 var Y = [ 428 "th", 429 "st", 430 "nd", 431 "rd" 432 ], q = X % 100; 433 return "[" + X + (Y[(q - 20) % 10] || Y[q] || Y[0]) + "]"; 434 } 435 }, v = function(X, Y, q) { 436 var J = String(X); 437 return !J || J.length >= Y ? X : "" + Array(Y + 1 - J.length).join(q) + X; 438 }, y = { 439 s: v, 440 z: function(X) { 441 var Y = -X.utcOffset(), q = Math.abs(Y), J = Math.floor(q / 60), Z = q % 60; 442 return (Y <= 0 ? "+" : "-") + v(J, 2, "0") + ":" + v(Z, 2, "0"); 443 }, 444 m: function X(Y, q) { 445 if (Y.date() < q.date()) return -X(q, Y); 446 var J = 12 * (q.year() - Y.year()) + (q.month() - Y.month()), Z = Y.clone().add(J, d), se = q - Z < 0, Q = Y.clone().add(J + (se ? -1 : 1), d); 447 return +(-(J + (q - Z) / (se ? Z - Q : Q - Z)) || 0); 448 }, 449 a: function(X) { 450 return X < 0 ? Math.ceil(X) || 0 : Math.floor(X); 451 }, 452 p: function(X) { 453 return { 454 M: d, 455 y: b, 456 w: c, 457 d: u, 458 D: h, 459 h: l, 460 m: o, 461 s, 462 ms: r, 463 Q: p 464 }[X] || String(X || "").toLowerCase().replace(/s$/, ""); 465 }, 466 u: function(X) { 467 return X === void 0; 468 } 469 }, E = "en", k = {}; 470 k[E] = N; 471 var A = "$isDayjsObject", L = function(X) { 472 return X instanceof P || !(!X || !X[A]); 473 }, w = function X(Y, q, J) { 474 var Z; 475 if (!Y) return E; 476 if (typeof Y == "string") { 477 var se = Y.toLowerCase(); 478 k[se] && (Z = se), q && (k[se] = q, Z = se); 479 var Q = Y.split("-"); 480 if (!Z && Q.length > 1) return X(Q[0]); 481 } else { 482 var oe = Y.name; 483 k[oe] = Y, Z = oe; 484 } 485 return !J && Z && (E = Z), Z || !J && E; 486 }, z = function(X, Y) { 487 if (L(X)) return X.clone(); 488 var q = typeof Y == "object" ? Y : {}; 489 return q.date = X, q.args = arguments, new P(q); 490 }, T = y; 491 T.l = w, T.i = L, T.w = function(X, Y) { 492 return z(X, { 493 locale: Y.$L, 494 utc: Y.$u, 495 x: Y.$x, 496 $offset: Y.$offset 497 }); 498 }; 499 var P = function() { 500 function X(q) { 501 this.$L = w(q.locale, null, true), this.parse(q), this.$x = this.$x || q.x || {}, this[A] = true; 502 } 503 var Y = X.prototype; 504 return Y.parse = function(q) { 505 this.$d = function(J) { 506 var Z = J.date, se = J.utc; 507 if (Z === null) return /* @__PURE__ */ new Date(NaN); 508 if (T.u(Z)) return /* @__PURE__ */ new Date(); 509 if (Z instanceof Date) return new Date(Z); 510 if (typeof Z == "string" && !/Z$/i.test(Z)) { 511 var Q = Z.match(C); 512 if (Q) { 513 var oe = Q[2] - 1 || 0, ce = (Q[7] || "0").substring(0, 3); 514 return se ? new Date(Date.UTC(Q[1], oe, Q[3] || 1, Q[4] || 0, Q[5] || 0, Q[6] || 0, ce)) : new Date(Q[1], oe, Q[3] || 1, Q[4] || 0, Q[5] || 0, Q[6] || 0, ce); 515 } 516 } 517 return new Date(Z); 518 }(q), this.init(); 519 }, Y.init = function() { 520 var q = this.$d; 521 this.$y = q.getFullYear(), this.$M = q.getMonth(), this.$D = q.getDate(), this.$W = q.getDay(), this.$H = q.getHours(), this.$m = q.getMinutes(), this.$s = q.getSeconds(), this.$ms = q.getMilliseconds(); 522 }, Y.$utils = function() { 523 return T; 524 }, Y.isValid = function() { 525 return this.$d.toString() !== _; 526 }, Y.isSame = function(q, J) { 527 var Z = z(q); 528 return this.startOf(J) <= Z && Z <= this.endOf(J); 529 }, Y.isAfter = function(q, J) { 530 return z(q) < this.startOf(J); 531 }, Y.isBefore = function(q, J) { 532 return this.endOf(J) < z(q); 533 }, Y.$g = function(q, J, Z) { 534 return T.u(q) ? this[J] : this.set(Z, q); 535 }, Y.unix = function() { 536 return Math.floor(this.valueOf() / 1e3); 537 }, Y.valueOf = function() { 538 return this.$d.getTime(); 539 }, Y.startOf = function(q, J) { 540 var Z = this, se = !!T.u(J) || J, Q = T.p(q), oe = function(Ee, Le) { 541 var Be = T.w(Z.$u ? Date.UTC(Z.$y, Le, Ee) : new Date(Z.$y, Le, Ee), Z); 542 return se ? Be : Be.endOf(u); 543 }, ce = function(Ee, Le) { 544 return T.w(Z.toDate()[Ee].apply(Z.toDate("s"), (se ? [ 545 0, 546 0, 547 0, 548 0 549 ] : [ 550 23, 551 59, 552 59, 553 999 554 ]).slice(Le)), Z); 555 }, be = this.$W, ye = this.$M, ke = this.$D, Ae = "set" + (this.$u ? "UTC" : ""); 556 switch (Q) { 557 case b: 558 return se ? oe(1, 0) : oe(31, 11); 559 case d: 560 return se ? oe(1, ye) : oe(0, ye + 1); 561 case c: 562 var _e = this.$locale().weekStart || 0, Te = (be < _e ? be + 7 : be) - _e; 563 return oe(se ? ke - Te : ke + (6 - Te), ye); 564 case u: 565 case h: 566 return ce(Ae + "Hours", 0); 567 case l: 568 return ce(Ae + "Minutes", 1); 569 case o: 570 return ce(Ae + "Seconds", 2); 571 case s: 572 return ce(Ae + "Milliseconds", 3); 573 default: 574 return this.clone(); 575 } 576 }, Y.endOf = function(q) { 577 return this.startOf(q, false); 578 }, Y.$set = function(q, J) { 579 var Z, se = T.p(q), Q = "set" + (this.$u ? "UTC" : ""), oe = (Z = {}, Z[u] = Q + "Date", Z[h] = Q + "Date", Z[d] = Q + "Month", Z[b] = Q + "FullYear", Z[l] = Q + "Hours", Z[o] = Q + "Minutes", Z[s] = Q + "Seconds", Z[r] = Q + "Milliseconds", Z)[se], ce = se === u ? this.$D + (J - this.$W) : J; 580 if (se === d || se === b) {
vendor: 5,341 bytes, lines 581-730
581 var be = this.clone().set(h, 1); 582 be.$d[oe](ce), be.init(), this.$d = be.set(h, Math.min(this.$D, be.daysInMonth())).$d; 583 } else oe && this.$d[oe](ce); 584 return this.init(), this; 585 }, Y.set = function(q, J) { 586 return this.clone().$set(q, J); 587 }, Y.get = function(q) { 588 return this[T.p(q)](); 589 }, Y.add = function(q, J) { 590 var Z, se = this; 591 q = Number(q); 592 var Q = T.p(J), oe = function(ye) { 593 var ke = z(se); 594 return T.w(ke.date(ke.date() + Math.round(ye * q)), se); 595 }; 596 if (Q === d) return this.set(d, this.$M + q); 597 if (Q === b) return this.set(b, this.$y + q); 598 if (Q === u) return oe(1); 599 if (Q === c) return oe(7); 600 var ce = (Z = {}, Z[o] = i, Z[l] = a, Z[s] = n, Z)[Q] || 1, be = this.$d.getTime() + q * ce; 601 return T.w(be, this); 602 }, Y.subtract = function(q, J) { 603 return this.add(-1 * q, J); 604 }, Y.format = function(q) { 605 var J = this, Z = this.$locale(); 606 if (!this.isValid()) return Z.invalidDate || _; 607 var se = q || "YYYY-MM-DDTHH:mm:ssZ", Q = T.z(this), oe = this.$H, ce = this.$m, be = this.$M, ye = Z.weekdays, ke = Z.months, Ae = Z.meridiem, _e = function(Le, Be, Ie, Ve) { 608 return Le && (Le[Be] || Le(J, se)) || Ie[Be].slice(0, Ve); 609 }, Te = function(Le) { 610 return T.s(oe % 12 || 12, Le, "0"); 611 }, Ee = Ae || function(Le, Be, Ie) { 612 var Ve = Le < 12 ? "AM" : "PM"; 613 return Ie ? Ve.toLowerCase() : Ve; 614 }; 615 return se.replace(D, function(Le, Be) { 616 return Be || function(Ie) { 617 switch (Ie) { 618 case "YY": 619 return String(J.$y).slice(-2); 620 case "YYYY": 621 return T.s(J.$y, 4, "0"); 622 case "M": 623 return be + 1; 624 case "MM": 625 return T.s(be + 1, 2, "0"); 626 case "MMM": 627 return _e(Z.monthsShort, be, ke, 3); 628 case "MMMM": 629 return _e(ke, be); 630 case "D": 631 return J.$D; 632 case "DD": 633 return T.s(J.$D, 2, "0"); 634 case "d": 635 return String(J.$W); 636 case "dd": 637 return _e(Z.weekdaysMin, J.$W, ye, 2); 638 case "ddd": 639 return _e(Z.weekdaysShort, J.$W, ye, 3); 640 case "dddd": 641 return ye[J.$W]; 642 case "H": 643 return String(oe); 644 case "HH": 645 return T.s(oe, 2, "0"); 646 case "h": 647 return Te(1); 648 case "hh": 649 return Te(2); 650 case "a": 651 return Ee(oe, ce, true); 652 case "A": 653 return Ee(oe, ce, false); 654 case "m": 655 return String(ce); 656 case "mm": 657 return T.s(ce, 2, "0"); 658 case "s": 659 return String(J.$s); 660 case "ss": 661 return T.s(J.$s, 2, "0"); 662 case "SSS": 663 return T.s(J.$ms, 3, "0"); 664 case "Z": 665 return Q; 666 } 667 return null; 668 }(Le) || Q.replace(":", ""); 669 }); 670 }, Y.utcOffset = function() { 671 return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); 672 }, Y.diff = function(q, J, Z) { 673 var se, Q = this, oe = T.p(J), ce = z(q), be = (ce.utcOffset() - this.utcOffset()) * i, ye = this - ce, ke = function() { 674 return T.m(Q, ce); 675 }; 676 switch (oe) { 677 case b: 678 se = ke() / 12; 679 break; 680 case d: 681 se = ke(); 682 break; 683 case p: 684 se = ke() / 3; 685 break; 686 case c: 687 se = (ye - be) / 6048e5; 688 break; 689 case u: 690 se = (ye - be) / 864e5; 691 break; 692 case l: 693 se = ye / a; 694 break; 695 case o: 696 se = ye / i; 697 break; 698 case s: 699 se = ye / n; 700 break; 701 default: 702 se = ye; 703 } 704 return Z ? se : T.a(se); 705 }, Y.daysInMonth = function() { 706 return this.endOf(d).$D; 707 }, Y.$locale = function() { 708 return k[this.$L]; 709 }, Y.locale = function(q, J) { 710 if (!q) return this.$L; 711 var Z = this.clone(), se = w(q, J, true); 712 return se && (Z.$L = se), Z; 713 }, Y.clone = function() { 714 return T.w(this.$d, this); 715 }, Y.toDate = function() { 716 return new Date(this.valueOf()); 717 }, Y.toJSON = function() { 718 return this.isValid() ? this.toISOString() : null; 719 }, Y.toISOString = function() { 720 return this.$d.toISOString(); 721 }, Y.toString = function() { 722 return this.$d.toUTCString(); 723 }, X; 724 }(), G = P.prototype; 725 return z.prototype = G, [ 726 [ 727 "$ms", 728 r 729 ], 730 [
731 "$s", 732 s 733 ], 734 [ 735 "$m", 736 o 737 ], 738 [ 739 "$H", 740 l 741 ], 742 [ 743 "$W", 744 u 745 ], 746 [ 747 "$M", 748 d 749 ], 750 [ 751 "$y", 752 b 753 ], 754 [ 755 "$D", 756 h 757 ] 758 ].forEach(function(X) { 759 G[X[1]] = function(Y) { 760 return this.$g(Y, X[0], X[1]); 761 }; 762 }), z.extend = function(X, Y) { 763 return X.$i || (X(Y, P, z), X.$i = true), z; 764 }, z.locale = w, z.isDayjs = L, z.unix = function(X) { 765 return z(1e3 * X); 766 }, z.en = k[E], z.Ls = k, z.p = {}, z; 767 }); 768 })(Ef); 769 var Bl = Ef.exports; 770 const To = Ei(Bl), ty = [ 771 "001 - Bank of Montreal", 772 "002 - Bank of Nova Scotia (Scotiabank)", 773 "003 - Royal Bank of Canada", 774 "004 - Toronto-Dominion Bank", 775 "005 - First Heritage", 776 "006 - National Bank of Canada", 777 "008 - Provincial Bank of Canada", 778 "010 - Canadian Imperial Bank of Commerce", 779 "016 - Hong Kong Bank of Canada - HSBC", 780 "030 - Canadian Western Bank", 781 "039 - Laurentian Bank", 782 "219 - Alberta Treasury Branches", 783 "229 - Ottawa Fire Fighters' Credit Union Ltd", 784 "239 - Province Of Ontario Savings Office", 785 "260 - Citibank", 786 "275 - Korea Exchange Bank of Canada", 787 "286 - Banque Nationale de Gr\xE9ce (Canada)", 788 "294 - State Bank Of India (Canada)", 789 "307 - Bank of East Asia (Canada)", 790 "308 - Bank of China (Canada)", 791 "309 - Citizens Bank of Canada", 792 "310 - First Nations Bank of Canada", 793 "320 - PC money account", 794 "326 - PC Financial", 795 "328 - Citibank NA", 796 "340 - ICICI Bank Canada", 797 "374 - Motus Bank", 798 "379 - Steinbach Credit Union", 799 "540 - Manulife Bank of Canada", 800 "550 - Montreal Trust", 801 "560 - AGF Trust", 802 "568 - Peace Hills Trust Company", 803 "570 - Royal Trust", 804 "590 - National Trust", 805 "608 - CS Alterna Bank", 806 "614 - Tangerine / ING Direct 00152", 807 "621 - Peoples Trust Company", 808 "623 - Equitable Bank", 809 "630 - Household Trust Co", 810 "703 - Wealthsimple Investments Inc.", 811 "803 - Latvian Credit Union", 812 "806 - Duca Financial Services Credit Union Ltd.", 813 "807 - Communication Technologies Credit Union Ltd", 814 "809 - BC Credit Union", 815 "815 - F\xE9d\xE9ration des caisses Desjardins du Quebec", 816 "819 - Caisse Populaire", 817 "828 - Credit Union", 818 "829 - La Caisse Populaire Alexandria Limit\xE9e", 819 "830 - Airline Financial Credit Union Limited", 820 "833 - St. Stanislaus - St. Casimir's Polish CU", 821 "834 - ASCU Community Credit Union", 822 "836 - Caisse Populaire Kapuskasing", 823 "837 - Meridian Credit Union", 824 "839 - CREDIT UNIONS & CAISSE POPULAIRE", 825 "840 - Dundalk District Credit Union", 826 "842 - CS CO-OP", 827 "844 - Goderich Community Credit Union", 828 "846 - Ontario Civil Service Credit Union Limited", 829 "849 - P.S.E. Credit Union", 830 "850 - Lambton Financial Credit Union Limited", 831 "853 - Concentra Bank", 832 "854 - Golden Horseshoe Credit Union", 833 "865 - Caisse populaire Restigouche Est", 834 "879 - Credit Union", 835 "889 - Credit Union", 836 "890 - Caisse populaire de Hearst Limit\xE9e", 837 "899 - Capital City Savings" 838 ], ny = { 839 canadalife: "Canada Life", 840 primary: "Primary", 841 secondary: "Secondary", 842 email: "Email", 843 label: { 844 all: "All", 845 edit: "Edit", 846 save: "Save", 847 saving: "Saving...", 848 done: "Done", 849 delete: "Delete", 850 back: "Back", 851 cancel: "Cancel", 852 next: "Next", 853 continue: "Continue", 854 backToTop: "Back to top", 855 close: "Close", 856 closeWithContext: "Close, {0}", 857 submit: "Submit", 858 emailUs: "Email us", 859 hide: "Hide", 860 learnMore: "Learn more", 861 show: "Show", 862 showMore: "Show more", 863 showLess: "Show less", 864 play: "Play", 865 pause: "Pause", 866 yes: "Yes", 867 no: "No", 868 clear: "Clear", 869 download: "download", 870 increaseValue: "Increase value for {0}", 871 increaseValueBy: "Increase value by {0} for {1}", 872 decreaseValue: "Decrease value for {0}", 873 decreaseValueBy: "Decrease value by {0} for {1}", 874 na: "n/a", 875 tooltipTrigger: "Toggle {0} tooltip", 876 expandAll: "Expand all", 877 collapseAll: "Collapse all", 878 saved: "Saved", 879 deleted: "Deleted", 880 cancelled: "Cancelled" 881 }, 882 logo: "Home - {0} logo", 883 assetUrls: { 884 canadalifeTMLogo: "https://www.canadalife.com/content/dam/public/logos/canadalife-en/CanadaLife_E_TM.png" 885 }, 886 menu: { 887 label: "Menu", 888 back: "Back to main menu", 889 utility: "Utility menu" 890 }, 891 form: { 892 fieldsRequired: "All fields are required unless labelled optional.", 893 allFieldsRequired: "All fields required.", 894 conditionalFields: "Depending on your choices, some fields could be added to this form.", 895 errorMessage: "We found 1 error. Please check your answers and try again. | We found {count} errors. Please check your answers and try again." 896 }, 897 field: { 898 firstName: "First name", 899 lastName: "Last name", 900 dateOfBirth: "Date of birth", 901 emailAddress: "Email address", 902 message: "Message" 903 },
904 byline: { 905 byAuthor: "By {0}", 906 readingTime: "{0} min read", 907 readingTimeLong: "{0} hour and {1} minute read" 908 }, 909 footnote: { 910 label: "Return to footnote {0} content", 911 reference: "Footnote {0}" 912 }, 913 tooltip: { 914 term: "More information" 915 }, 916 fileUpload: { 917 button: "Select your file", 918 dragndrop: "or drag files here", 919 remove: "Remove", 920 description: `File must be {count} document submitted in {format} format. Maximum file size is {size}. | 921 Files must be {count} documents submitted in {format} format. Maximum file size is {size}.`, 922 success: "is uploaded successfully", 923 deleted: "is removed successfully", 924 added: "is added successfully" 925 }, 926 dropdownDefaultLabel: "Select...", 927 multiSelectList: { 928 allCheckboxLabel: "All", 929 buttonLabelMultiple: "{0} selected" 930 }, 931 numberStepper: { 932 autoBoundaryInstructions: "If your input is not within {0} and {1}, it will be automatically adjusted to the closest value between {0} and {1}.", 933 decrementInstructions: "When you reach minimum number {0}, this button will be disabled and focus will move to the increase button.", 934 incrementInstructions: "When you reach maximum number {0}, this button will be disabled and focus will move to the decrease button." 935 }, 936 dataPanel: { 937 maximumItemsReached: "You've added the maximum number of items.", 938 totalAllocation: "Total allocation", 939 addAnother: "Add another", 940 item: "item" 941 }, 942 formStepper: { 943 title: "Step {currentStepNumber} of {totalSteps}: {currentStepName}" 944 }, 945 print: "Print", 946 read: "Read", 947 view: "View", 948 getStarted: "Get started", 949 socialShareLabel: "Share on", 950 shareButton: "Share on {0}", 951 search: "Search", 952 searchLabels: { 953 foundResults: "Found {0} results for: {1}", 954 noResults: "No search results found.", 955 resultsFromEmptyQuery: "Found {0} results", 956 moreResults: "Select this option to show more results", 957 sort: "Sort", 958 findByKeyword: "Find by keyword", 959 filtersSection: "Filters", 960 submitSearch: "Submit search" 961 }, 962 breadcrumbs: { 963 title: "breadcrumbs", 964 expand: "expand breadcrumbs" 965 }, 966 pagination: { 967 currentPage: "Current page", 968 page: "Go to page", 969 pageContext: "Page {0} of {1}", 970 previousPage: "Previous", 971 nextPage: "Next", 972 previousPageShort: "Prev.", 973 nextPageShort: "Next", 974 navLabel: "Pagination" 975 }, 976 progress: { 977 stepContext: "Step {0} of {1}:" 978 }, 979 modal: { 980 defaultTitle: "Dialog" 981 }, 982 orgChart: { 983 caption: "Organization chart" 984 }, 985 videoPlayer: { 986 transcriptButton: "View the video transcript", 987 closeAriaLabelTranscript: "{0} transcript" 988 }, 989 provinces: { 990 ab: "Alberta", 991 bc: "British Columbia", 992 mb: "Manitoba", 993 nb: "New Brunswick", 994 nl: "Newfoundland and Labrador", 995 nt: "Northwest Territories", 996 ns: "Nova Scotia", 997 nu: "Nunavut", 998 on: "Ontario", 999 pe: "Prince Edward Island", 1000 qc: "Quebec", 1001 sk: "Saskatchewan", 1002 yt: "Yukon", 1003 fe: "Federal" 1004 }, 1005 provincesAbbreviations: { 1006 ab: "Alta.", 1007 bc: "B.C.", 1008 mb: "Man.", 1009 nb: "N.B.", 1010 nl: "N.L.", 1011 nt: "N.W.T.", 1012 ns: "N.S.", 1013 nu: "Nvt.", 1014 on: "Ont.", 1015 pe: "P.E.I.", 1016 qc: "Que.", 1017 sk: "Sask.", 1018 yt: "Y.T.", 1019 fe: "Federal" 1020 }, 1021 a11y: { 1022 dynamicFormMessage: "Depending on your choices, some fields could be added to this form.", 1023 newWindow: "Opens in a new window" 1024 }, 1025 validationMessages: { 1026 required: "Required field: {fieldLabel}", 1027 requiredIf: "Required field: {fieldLabel}", 1028 requiredUnless: "Required field: {fieldLabel}", 1029 requiredChoice: "Make a selection: {fieldLabel}", 1030 requiredIfChoice: "Make a selection: {fieldLabel}", 1031 requiredUnlessChoice: "Make a selection: {fieldLabel}", 1032 between: "Enter a value between {min} and {max}", 1033 maxValue: "Must be less than {max}", 1034 minValue: "Must be more than {min}", 1035 validSin: "Enter a valid SIN.", 1036 invalid: "Invalid", 1037 maxLength: "You\u2019ve reached the limit of {count} characters." 1038 }, 1039 defaultErrorLabels: { 1040 invalid: "Invalid", 1041 required: "This field is required.", 1042 requiredIf: "This field is required.", 1043 maxValue: "Must be less than {0}", 1044 minValue: "Must be more than {0}", 1045 between: "Must be between {0} and {1}", 1046 isAfterStartDate: "Selected date must occur after {0}",
1047 isBeforeEndDate: "Selected date must occur before {0}", 1048 filesMaxLimit: "You\u2019ve reached the maximum number of documents.", 1049 fileType: "Documents must be in {0} format.", 1050 fileSize: "Documents can\u2019t be larger than {0} MB.", 1051 fileName: "That filename is too long, contains invalid characters or is inappropriate.", 1052 uploadFailed: "Sorry, an error occurred and we couldn\u2019t upload that document. Please try again." 1053 }, 1054 defaultInputLabels: { 1055 Select: { 1056 placeholder: "Select..." 1057 }, 1058 SelectProvince: { 1059 label: "Province", 1060 placeholder: "Select a province..." 1061 } 1062 }, 1063 defaultFeedbackLabels: { 1064 info: "Information", 1065 error: "Error", 1066 warning: "Warning", 1067 success: "Success", 1068 alert: "Alert", 1069 note: "Note: " 1070 }, 1071 dateLabels: { 1072 month: "Month", 1073 day: "Day", 1074 year: "Year" 1075 }, 1076 phoneLabels: { 1077 phoneNumber: "Phone number", 1078 countryCode: "Country code", 1079 localNumber: "Phone number", 1080 extension: "Extension (Optional)", 1081 isMobile: "Is this a mobile phone number?" 1082 }, 1083 genericError: "There was an error. Please try again later.", 1084 optional: "optional", 1085 loading: "Loading", 1086 and: "and", 1087 or: "or", 1088 options: { 1089 bankNames: ty 1090 }, 1091 fileSizes: { 1092 b: " b", 1093 B: " B", 1094 KB: " KB", 1095 MB: " MB", 1096 GB: " GB", 1097 TB: " TB" 1098 }, 1099 announcements: { 1100 expandAll: "All sections expanded", 1101 collapseAll: "All sections collapsed" 1102 } 1103 }, ry = [ 1104 "001 - Banque de Montr\xE9al", 1105 "002 - Banque de Nouvelle-\xC9cosse (Banque Scotia)", 1106 "003 - Banque Royale du Canada", 1107 "004 - Banque Toronto-Dominion", 1108 "005 - First Heritage", 1109 "006 - Banque Nationale", 1110 "008 - Banque Provinciale du Canada", 1111 "010 - Banque Canadienne Imp\xE9riale de Commerce", 1112 "016 - Banque Hongkong du Canada - HSBC", 1113 "030 - Canadian Western Bank", 1114 "039 - Banque Laurentienne", 1115 "219 - Alberta Treasury Branches", 1116 "229 - Ottawa Fire Fighters' Credit Union Ltd", 1117 "239 - Province Of Ontario Savings Office", 1118 "260 - Citibank", 1119 "275 - Korea Exchange Bank of Canada", 1120 "286 - Banque Nationale de Gr\xE9ce (Canada)", 1121 "294 - State Bank Of India (Canada)", 1122 "307 - Bank of East Asia (Canada)", 1123 "308 - Bank of China (Canada)", 1124 "309 - Citizens Bank of Canada", 1125 "310 - First Nations Bank of Canada", 1126 "320 - Le compte PC Argent", 1127 "326 - PC Financial", 1128 "328 - Citibank NA", 1129 "340 - ICICI Bank Canada", 1130 "374 - Motus Bank", 1131 "379 - Steinbach Credit Union", 1132 "540 - Banque Manuvie du Canada", 1133 "550 - Montr\xE9al Trust", 1134 "560 - Fiducie AGF", 1135 "568 - Peace Hills Trust Company", 1136 "570 - Trust Royal", 1137 "590 - Trust National", 1138 "608 - CS Alterna Bank", 1139 "614 - ING Direct 00152 / de Tangerine", 1140 "621 - Peoples Trust Company", 1141 "623 - Banque Equitable", 1142 "630 - Household Trust Co", 1143 "703 - Wealthsimple Investments Inc.", 1144 "803 - Latvian Credit Union", 1145 "806 - Duca Financial Services Credit Union Ltd.", 1146 "807 - Communication Technologies Credit Union Ltd", 1147 "809 - BC Credit Union", 1148 "815 - F\xE9d\xE9ration des caisses Desjardins du Quebec", 1149 "819 - Caisse Populaire", 1150 "828 - Coop\xE9rative de cr\xE9dit", 1151 "829 - La Caisse Populaire Alexandria Limit\xE9e", 1152 "830 - Airline Financial Credit Union Limited", 1153 "833 - St. Stanislaus - St. Casimir's Polish CU", 1154 "834 - ASCU Community Credit Union", 1155 "836 - Caisse Populaire Kapuskasing", 1156 "837 - Meridian Credit Union", 1157 "839 - CREDIT UNIONS & CAISSE POPULAIRE", 1158 "840 - Dundalk District Credit Union", 1159 "842 - CS CO-OP", 1160 "844 - Goderich Community Credit Union", 1161 "846 - Ontario Civil Service Credit Union Limited", 1162 "849 - P.S.E. Credit Union", 1163 "850 - Lambton Financial Credit Union Limited", 1164 "853 - Concentra Bank", 1165 "854 - Golden Horseshoe Credit Union", 1166 "865 - Caisse populaire Restigouche Est", 1167 "879 - Coop\xE9rative de cr\xE9dit", 1168 "889 - Coop\xE9rative de cr\xE9dit", 1169 "890 - Caisse populaire de Hearst Limit\xE9e", 1170 "899 - Capital City Savings" 1171 ], iy = { 1172 canadalife: "Canada-Vie", 1173 primary: "Primaire", 1174 secondary: "Secondaire", 1175 email: "Courriel", 1176 label: { 1177 all: "Tout", 1178 edit: "Modifier", 1179 save: "Sauvegarder", 1180 saving: "Enregistrer...", 1181 done: "Termin\xE9", 1182 delete: "Supprimer", 1183 back: "Retourner", 1184 cancel: "Annuler", 1185 next: "Suivant", 1186 continue: "Continuer", 1187 backToTop: "Revenir en haut", 1188 close: "Fermer", 1189 closeWithContext: "Fermer, {0}", 1190 submit: "Soumettre", 1191 emailUs: "Envoyez-nous un courriel", 1192 hide: "Masquer", 1193 learnMore: "En savoir plus", 1194 show: "Afficher", 1195 showMore: "Afficher plus", 1196 showLess: "Afficher moins", 1197 play: "Jouer", 1198 pause: "Pause", 1199 yes: "Oui", 1200 no: "Non", 1201 clear: "Effacer", 1202 download: "t\xE9l\xE9charger", 1203 increaseValue: "Augmenter la valeur pour {0}", 1204 increaseValueBy: "Augmenter la valeur de {0} pour {1}", 1205 decreaseValue: "Diminuer la valeur pour {0}", 1206 decreaseValueBy: "Diminuer la valeur de {0} pour {1}", 1207 na: "s/o", 1208 tooltipTrigger: "Activer/d\xE9sactiver {0} infobulle", 1209 expandAll: "Agrandir tout", 1210 collapseAll: "R\xE9duire tout", 1211 saved: "Enregistr\xE9", 1212 deleted: "Supprim\xE9", 1213 cancelled: "Annul\xE9" 1214 }, 1215 logo: "Accueil \u2013 Logo de {0}", 1216 assetUrls: { 1217 canadalifeTMLogo: "https://www.canadalife.com/content/dam/public/logos/canadalife-fr/CanadaLife_F_MC.png" 1218 }, 1219 menu: { 1220 label: "Menu", 1221 back: "Retour au menu principal", 1222 utility: "Menu utilitaire" 1223 }, 1224 form: { 1225 fieldsRequired: "Sauf indication contraire, tous les champs doivent \xEAtre remplis.", 1226 allFieldsRequired: "Tous les champs sont obligatoires.", 1227 conditionalFields: "En fonction de vos choix, certains champs pourraient \xEAtre ajout\xE9s \xE0 ce formulaire.", 1228 errorMessage: "Nous avons rep\xE9r\xE9 1 erreur. Veuillez v\xE9rifier vos r\xE9ponses et essayer de nouveau. | Nous avons rep\xE9r\xE9 {count} erreurs. Veuillez v\xE9rifier vos r\xE9ponses et essayer de nouveau." 1229 }, 1230 field: { 1231 firstName: "Pr\xE9nom", 1232 lastName: "Nom de famille", 1233 dateOfBirth: "Date de naissance", 1234 emailAddress: "Adresse \xE9lectronique", 1235 message: "Message" 1236 },
1237 byline: { 1238 byAuthor: "Auteur : {0}", 1239 readingTime: "Temps de lecture : {0} minutes", 1240 readingTimeLong: "Temps de lecture : {0} heure {1} minute" 1241 }, 1242 footnote: { 1243 label: "R\xE9f\xE9rer au contenu de la note en bas de page {0}", 1244 reference: "Footnote {0}" 1245 }, 1246 tooltip: { 1247 term: "En savoir plus" 1248 }, 1249 fileUpload: { 1250 button: "S\xE9lectionnez votre fichier", 1251 dragndrop: "ou faites glisser le fichier ici", 1252 remove: "Supprimer", 1253 description: `Le fichier doit \xEAtre compos\xE9 d\u2019un document en format {format} et ne doit pas exc\xE9der {size}. | 1254 Les fichiers doit \xEAtre compos\xE9 des {count} documents en format {format} et ne doit pas exc\xE9der {size}.`, 1255 success: "a \xE9t\xE9 t\xE9l\xE9charg\xE9 avec succ\xE8s", 1256 deleted: "a \xE9t\xE9 supprim\xE9 avec succ\xE8s", 1257 added: "a \xE9t\xE9 ajout\xE9 avec succ\xE8s" 1258 }, 1259 dropdownDefaultLabel: "S\xE9lectionnez...", 1260 multiSelectList: { 1261 allCheckboxLabel: "Tout", 1262 buttonLabelMultiple: "{0} choisies" 1263 }, 1264 numberStepper: { 1265 autoBoundaryInstructions: "Si votre entr\xE9e n'est pas comprise entre {0} et {1}, elle sera automatiquement ajust\xE9e \xE0 la valeur la plus proche entre {0} et {1}.", 1266 decrementInstructions: "Lorsque vous atteignez le nombre minimum {0}, ce bouton est d\xE9sactiv\xE9 et l'attention se porte sur le bouton d'augmentation.", 1267 incrementInstructions: "Lorsque vous atteindrez le nombre maximum {0}, ce bouton sera d\xE9sactiv\xE9 et l'attention se portera sur le bouton de diminution." 1268 }, 1269 dataPanel: { 1270 maximumItemsReached: "Vous avez ajout\xE9 le nombre maximal d'articles.", 1271 totalAllocation: "R\xE9partition totale", 1272 addAnother: "Ajouter un autre", 1273 item: "l'article" 1274 }, 1275 formStepper: { 1276 title: "\xC9tape {currentStepNumber} de {totalSteps} : {currentStepName}" 1277 }, 1278 print: "Imprimer", 1279 read: "Lire", 1280 view: "Afficher", 1281 getStarted: "Commencer", 1282 socialShareLabel: "Partager", 1283 shareButton: "Partager {0}", 1284 search: "Recherche", 1285 searchLabels: { 1286 foundResults: "{0} r\xE9sultats trouv\xE9s pour: {1}", 1287 noResults: "Aucun r\xE9sultat ne correspond \xE0 votre recherche.", 1288 resultsFromEmptyQuery: "{0} r\xE9sultats trouv\xE9s", 1289 moreResults: "S\xE9lectionnez cette option pour afficher plus de r\xE9sultats", 1290 sort: "Trier", 1291 findByKeyword: "Find by keyword", 1292 filtersSection: "Filtres", 1293 submitSearch: "Soumettre la recherche" 1294 }, 1295 breadcrumbs: { 1296 title: "Fil d'ariane", 1297 expand: "d\xE9velopper" 1298 }, 1299 pagination: { 1300 currentPage: "Page actuelle", 1301 page: "Allez \xE0 la page", 1302 pageContext: "Page {0} de {1}", 1303 previousPage: "Pr\xE9c\xE9dent", 1304 nextPage: "Suivant", 1305 previousPageShort: "Pr\xE9c.", 1306 nextPageShort: "Suiv.", 1307 navLabel: "Pagination" 1308 }, 1309 progress: { 1310 stepContext: "\xC9tape {0} de {1} :" 1311 }, 1312 modal: { 1313 defaultTitle: "Dialogue" 1314 }, 1315 orgChart: { 1316 caption: "Organigramme" 1317 }, 1318 videoPlayer: { 1319 transcriptButton: "Afficher la transcription de la vid\xE9o", 1320 closeAriaLabelTranscript: "transcription de la vid\xE9o {0}" 1321 }, 1322 provinces: { 1323 ab: "Alberta", 1324 bc: "Colombie-Britannique", 1325 mb: "Manitoba", 1326 nb: "Nouveau-Brunswick", 1327 nl: "Terre-Neuve-et-Labrador", 1328 nt: "Territoires du Nord-Ouest", 1329 ns: "Nouvelle-\xC9cosse", 1330 nu: "Nunavut", 1331 on: "Ontario", 1332 pe: "\xCEle-du-Prince-\xC9douard", 1333 qc: "Qu\xE9bec", 1334 sk: "Saskatchewan", 1335 yt: "Yukon", 1336 fe: "F\xE9d\xE9ral" 1337 }, 1338 provincesAbbreviations: { 1339 ab: "Alb.", 1340 bc: "C.-B.", 1341 mb: "Man.", 1342 nb: "N.-B.", 1343 nl: "T.-N.-L.", 1344 nt: "T.N.-O.", 1345 ns: "N.-\xC9.", 1346 nu: "Nt", 1347 on: "Ont.", 1348 pe: "\xCE.-P.-\xC9.", 1349 qc: "Qc", 1350 sk: "Sask.", 1351 yt: "Yn", 1352 fe: "F\xE9d\xE9ral" 1353 }, 1354 a11y: { 1355 dynamicFormMessage: "En fonction de vos choix, certains champs pourraient \xEAtre ajout\xE9s \xE0 ce formulaire.", 1356 newWindow: "S\u2019ouvre dans une nouvelle fen\xEAtre" 1357 }, 1358 validationMessages: { 1359 required: "Requis : {fieldLabel}", 1360 requiredIf: "Requis : {fieldLabel}", 1361 requiredUnless: "Requis : {fieldLabel}", 1362 requiredChoice: "S\xE9lectionnez : {fieldLabel}", 1363 requiredIfChoice: "S\xE9lectionnez : {fieldLabel}", 1364 requiredUnlessChoice: "S\xE9lectionnez : {fieldLabel}", 1365 between: "Entrez une valeur entre {min} et {max}", 1366 maxValue: "Doit \xEAtre inf\xE9rieur \xE0 {max}", 1367 minValue: "Doit \xEAtre plus de {min}", 1368 validSin: "Entrez un NAS valide.", 1369 invalid: "Invalide", 1370 maxLength: "Vous avez atteint la limite de {count} caract\xE8res." 1371 }, 1372 defaultErrorLabels: { 1373 invalid: "Invalide", 1374 required: "Ce champ est requis.", 1375 requiredIf: "Ce champ est requis.", 1376 maxValue: "Doit \xEAtre inf\xE9rieur \xE0 {0}", 1377 minValue: "Doit \xEAtre plus de {0}", 1378 between: "Entrez une valeur entre {0} et {1}", 1379 isAfterStartDate: "La date choisie doit \xEAtre post\xE9rieure au {0}",
1380 isBeforeEndDate: "La date choisie doit \xEAtre ant\xE9rieure au {0}", 1381 filesMaxLimit: "Vous avez atteint le nombre maximal de documents.", 1382 fileType: "Les documents doivent \xEAtre en format {0}.", 1383 fileSize: "La taille maximale des documents est de {0} Mo.", 1384 fileName: "Ce nom de fichier est trop long, contient des caract\xE8res non valides ou est inappropri\xE9.", 1385 uploadFailed: "D\xE9sol\xE9s, une erreur s\u2019est produite et nous n\u2019avons pas pu t\xE9l\xE9charger ce document. Veuillez essayer de nouveau." 1386 }, 1387 defaultInputLabels: { 1388 Select: { 1389 placeholder: "S\xE9lectionnez..." 1390 }, 1391 SelectProvince: { 1392 label: "Province", 1393 placeholder: "Choisir une province..." 1394 } 1395 }, 1396 defaultFeedbackLabels: { 1397 info: "Info", 1398 error: "Erreur", 1399 warning: "Attention", 1400 success: "R\xE9ussi", 1401 alert: "Alerte", 1402 note: "Remarque: " 1403 }, 1404 dateLabels: { 1405 month: "Mois", 1406 day: "Jour", 1407 year: "Ann\xE9e" 1408 }, 1409 phoneLabels: { 1410 phoneNumber: "Num\xE9ro de t\xE9l\xE9phone", 1411 countryCode: "Code du pays", 1412 localNumber: "Num\xE9ro de t\xE9l\xE9phone", 1413 extension: "Extension (facultatif)", 1414 isMobile: "Est-ce un num\xE9ro de cellulaire ?" 1415 }, 1416 genericError: "Il y avait une erreur. Veuillez r\xE9essayer plus tard.", 1417 optional: "optionnel", 1418 loading: "Chargement", 1419 and: "et", 1420 or: "ou", 1421 options: { 1422 bankNames: ry 1423 }, 1424 fileSizes: { 1425 b: "b", 1426 B: "o", 1427 KB: "ko", 1428 MB: "Mo", 1429 GB: "Go", 1430 TB: "To" 1431 }, 1432 announcements: { 1433 expandAll: "Toutes les sections d\xE9velopp\xE9es", 1434 collapseAll: "Toutes les sections ont \xE9t\xE9 r\xE9duites" 1435 } 1436 }, ay = { 1437 label: { 1438 backToTop: "\u56DE\u5230\u9801\u9996", 1439 close: "\u95DC\u9589", 1440 closeWithContext: "\u95DC\u9589, {0}" 1441 }, 1442 menu: { 1443 label: "\u9078\u55AE" 1444 }, 1445 validationMessages: { 1446 invalid: "\u7121\u6548", 1447 required: "\u5FC5\u586B\u9805\u76EE", 1448 requiredIf: "\u5FC5\u586B\u9805\u76EE", 1449 requiredUnless: "\u5FC5\u586B\u9805\u76EE" 1450 }, 1451 defaultErrorLabels: { 1452 invalid: "\u7121\u6548", 1453 required: "\u5FC5\u586B\u9805\u76EE", 1454 requiredIf: "\u5FC5\u586B\u9805\u76EE" 1455 }, 1456 defaultInputLabels: { 1457 SelectProvince: { 1458 placeholder: "\u9078\u64C7\u4E00\u500B\u7701..." 1459 } 1460 }, 1461 provinces: { 1462 ab: "\u963F\u723E\u4F2F\u5854\u7701", 1463 bc: "\u5351\u8A69\u7701", 1464 mb: "\u66FC\u5C3C\u6258\u5DF4\u7701", 1465 nb: "\u7D10\u8CD3\u58EB\u57DF\u7701", 1466 nl: "\u7D10\u82AC\u862D\u548C\u62C9\u5E03\u62C9\u591A\u7701", 1467 nt: "\u897F\u5317\u5730\u5340", 1468 ns: "\u65B0\u65AF\u9AD8\u6C99\u7701", 1469 nu: "\u52AA\u7D0D\u7DAD\u7279\u5730\u5340", 1470 on: "\u5B89\u5927\u7565\u7701", 1471 pe: "\u611B\u5FB7\u83EF\u738B\u5B50\u5CF6", 1472 qc: "\u9B41\u5317\u514B\u7701", 1473 sk: "\u85A9\u65AF\u5580\u5FB9\u6EAB\u7701", 1474 yt: "\u80B2\u7A7A\u5730\u5340", 1475 fe: "Federal" 1476 }, 1477 form: { 1478 fieldsRequired: "\u6240\u6709\u6B04\u76EE\u90FD\u662F\u5FC5\u586B\u3002", 1479 errorMessage: "\u5728\u60A8\u63D0\u4EA4\u8868\u683C\u4E2D\u6AA2\u6E2C\u5230 {count} \u500B\u932F\u8AA4\uFF0C\u8ACB\u66F4\u6B63\u3002", 1480 remove: "\u53BB\u6389" 1481 }, 1482 fileUpload: { 1483 button: "\u700F\u89BD\u4EE5\u4E0A\u8F09\u6587\u4EF6", 1484 dragndrop: "" 1485 }, 1486 videoPlayer: { 1487 transcriptButton: "\u67E5\u770B\u8996\u983B\u7684\u6587\u5B57\u63CF\u8FF0", 1488 closeAriaLabelTranscript: "{0} \u6210\u7E3E\u55AE" 1489 }, 1490 genericError: "\u51FA\u73FE\u932F\u8AA4\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002", 1491 optional: "\u975E\u5FC5\u8981" 1492 }, sy = { 1493 label: { 1494 backToTop: "\u8FD4\u56DE\u9876\u90E8", 1495 close: "\u5173\u95ED", 1496 closeWithContext: "\u5173\u95ED, {0}" 1497 }, 1498 menu: { 1499 label: "\u83DC\u5355" 1500 }, 1501 defaultInputLabels: { 1502 SelectProvince: { 1503 placeholder: "\u9009\u62E9\u4E00\u4E2A\u7701..." 1504 } 1505 }, 1506 provinces: { 1507 ab: "\u963F\u5C14\u4F2F\u5854\u7701", 1508 bc: "\u5351\u8BD7\u7701", 1509 mb: "\u66FC\u5C3C\u6258\u5DF4\u7701", 1510 nb: "\u65B0\u4E0D\u4F26\u745E\u514B\u7701", 1511 nl: "\u7EBD\u82AC\u5170\u548C\u62C9\u5E03\u62C9\u591A\u7701", 1512 nt: "\u897F\u5317\u5730\u533A",
1513 ns: "\u65B0\u65AF\u79D1\u820D\u7701", 1514 nu: "\u52AA\u7EB3\u6B66\u7279\u5730\u533A", 1515 on: "\u5B89\u5927\u7565\u7701", 1516 pe: "\u7231\u5FB7\u534E\u738B\u5B50\u5C9B", 1517 qc: "\u9B41\u5317\u514B\u7701", 1518 sk: "\u8428\u65AF\u5580\u5F7B\u6E29\u7701", 1519 yt: "\u80B2\u7A7A\u5730\u533A", 1520 fe: "Federal" 1521 }, 1522 validationMessages: { 1523 required: "\u5FC5\u586B\u680F\u76EE", 1524 requiredIf: "\u5FC5\u586B\u680F\u76EE", 1525 requiredUnless: "\u5FC5\u586B\u680F\u76EE", 1526 invalid: "\u65E0\u6548" 1527 }, 1528 defaultErrorLabels: { 1529 invalid: "\u65E0\u6548", 1530 required: "\u5FC5\u586B\u680F\u76EE", 1531 requiredIf: "\u5FC5\u586B\u680F\u76EE" 1532 }, 1533 form: { 1534 fieldsRequired: "\u6240\u6709\u680F\u76EE\u90FD\u662F\u5FC5\u586B\u3002", 1535 errorMessage: "\u5728\u60A8\u63D0\u4EA4\u8868\u683C\u4E2D\u68C0\u6D4B\u5230 {count} \u4E2A\u9519\u8BEF\uFF0C\u8BF7\u66F4\u6B63\u3002", 1536 remove: "\u53BB\u6389" 1537 }, 1538 fileUpload: { 1539 button: "\u6D4F\u89C8\u4E0A\u4F20\u6587\u4EF6", 1540 dragndrop: "" 1541 }, 1542 videoPlayer: { 1543 transcriptButton: "\u67E5\u770B\u89C6\u9891\u7684\u6587\u5B57\u63CF\u8FF0", 1544 closeAriaLabelTranscript: "{0} \u6210\u7EE9\u5355" 1545 }, 1546 genericError: "\u51FA\u73B0\u9519\u8BEF\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002", 1547 optional: "\u975E\u5FC5\u8981" 1548 }, ai = { 1549 "en-CA": ny, 1550 "fr-CA": iy, 1551 "zh-HK": ay, 1552 "zh-CN": sy 1553 }, Vu = { 1554 "zh-Hant": "zh-HK", 1555 "zh-Hans": "zh-CN" 1556 }; 1557 Object.keys(Vu).forEach((e) => { 1558 ai[e] = ai[Vu[e]]; 1559 }); 1560 function oy() { 1561 if (typeof document < "u" && document.documentElement) { 1562 const { lang: e } = document.documentElement; 1563 return e.indexOf("en") === 0 ? "en-CA" : e.indexOf("fr") === 0 ? "fr-CA" : e.toLowerCase().includes("cn") ? "zh-CN" : e.toLowerCase().includes("hk") ? "zh-HK" : e; 1564 } else return console.warn("no document element for lang"), null; 1565 } 1566 function jr() { 1567 return globalThis && globalThis.$nest && globalThis.$nest.locale || oy() || "en-CA"; 1568 } 1569 var kf = { 1570 exports: {} 1571 }; 1572 (function(e, t) { 1573 (function(n, i) { 1574 e.exports = i(Bl); 1575 })(Qt, function(n) { 1576 function i(s) { 1577 return s && typeof s == "object" && "default" in s ? s : { 1578 default: s 1579 }; 1580 } 1581 var a = i(n), r = { 1582 name: "en-ca", 1583 weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), 1584 months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), 1585 weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), 1586 monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), 1587 weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), 1588 ordinal: function(s) { 1589 return s; 1590 }, 1591 formats: { 1592 LT: "h:mm A", 1593 LTS: "h:mm:ss A", 1594 L: "YYYY-MM-DD", 1595 LL: "MMMM D, YYYY", 1596 LLL: "MMMM D, YYYY h:mm A", 1597 LLLL: "dddd, MMMM D, YYYY h:mm A" 1598 }, 1599 relativeTime: { 1600 future: "in %s", 1601 past: "%s ago", 1602 s: "a few seconds", 1603 m: "a minute", 1604 mm: "%d minutes", 1605 h: "an hour", 1606 hh: "%d hours", 1607 d: "a day", 1608 dd: "%d days", 1609 M: "a month", 1610 MM: "%d months", 1611 y: "a year", 1612 yy: "%d years" 1613 } 1614 }; 1615 return a.default.locale(r, null, true), r; 1616 }); 1617 })(kf); 1618 var ly = kf.exports; 1619 const uy = Ei(ly); 1620 var Cf = { 1621 exports: {} 1622 }; 1623 (function(e, t) { 1624 (function(n, i) { 1625 e.exports = i(Bl); 1626 })(Qt, function(n) { 1627 function i(s) { 1628 return s && typeof s == "object" && "default" in s ? s : { 1629 default: s 1630 }; 1631 } 1632 var a = i(n), r = { 1633 name: "fr-ca", 1634 weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), 1635 months: "janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"), 1636 weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), 1637 monthsShort: "janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"), 1638 weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"), 1639 ordinal: function(s) { 1640 return s; 1641 }, 1642 formats: { 1643 LT: "HH:mm", 1644 LTS: "HH:mm:ss", 1645 L: "YYYY-MM-DD", 1646 LL: "D MMMM YYYY", 1647 LLL: "D MMMM YYYY HH:mm", 1648 LLLL: "dddd D MMMM YYYY HH:mm" 1649 }, 1650 relativeTime: { 1651 future: "dans %s", 1652 past: "il y a %s", 1653 s: "quelques secondes", 1654 m: "une minute", 1655 mm: "%d minutes", 1656 h: "une heure", 1657 hh: "%d heures", 1658 d: "un jour", 1659 dd: "%d jours", 1660 M: "un mois", 1661 MM: "%d mois", 1662 y: "un an", 1663 yy: "%d ans" 1664 } 1665 }; 1666 return a.default.locale(r, null, true), r; 1667 }); 1668 })(Cf); 1669 var cy = Cf.exports; 1670 const dy = Ei(cy), Zs = { 1671 "fr-CA": { 1672 ...dy, 1673 monthsShort: [ 1674 "janv.", 1675 "f\xE9vr.", 1676 "mars", 1677 "avr.", 1678 "mai", 1679 "juin", 1680 "juil", 1681 "ao\xFBt", 1682 "sept.", 1683 "oct.", 1684 "nov.", 1685 "d\xE9c." 1686 ], 1687 weekdaysShort: [ 1688 "dim.", 1689 "lun.", 1690 "mar.", 1691 "mer.", 1692 "jeu.", 1693 "ven.", 1694 "sam." 1695 ] 1696 }, 1697 "en-CA": { 1698 ...uy, 1699 monthsShort: [ 1700 "Jan.", 1701 "Feb.", 1702 "March", 1703 "April", 1704 "May", 1705 "June", 1706 "July", 1707 "Aug.", 1708 "Sept.", 1709 "Oct.", 1710 "Nov.", 1711 "Dec." 1712 ], 1713 weekdaysShort: [ 1714 "Sun.", 1715 "Mon.", 1716 "Tue.", 1717 "Wed.", 1718 "Thu.", 1719 "Fri.", 1720 "Sat." 1721 ], 1722 meridiem: function(e) { 1723 return e < 12 ? "a.m." : "p.m."; 1724 } 1725 } 1726 }, Af = (e) => Zs[e] ? Zs[e] : (console.warn(`Unrecognized locale '${e}'. Defaulting to 'en-CA'`), Zs["en-CA"]), Io = (e) => [ 1727 "zh-Hans", 1728 "zh-Hant" 1729 ].includes(e) ? "YYYY MMM D" : [ 1730 "fr-CA" 1731 ].includes(e) ? "D MMM YYYY" : "MMM D, YYYY", py = (e) => [ 1732 "zh-Hans", 1733 "zh-Hant" 1734 ].includes(e) ? "YYYY MMMM D" : [ 1735 "fr-CA" 1736 ].includes(e) ? "D MMMM YYYY" : "MMMM D, YYYY", Fo = (e) => [ 1737 "fr-CA" 1738 ].includes(e) ? "H:mm" : "h:mm a", fy = (e) => `${Io(e)} ${Fo(e)}`, my = (e = jr()) => ({ 1739 "date-and-time": fy(e), 1740 "date-only": Io(e), 1741 date: Io(e), 1742 "date-full": py(e), 1743 "time-only": Fo(e), 1744 time: Fo(e) 1745 }), Hu = (e, t = jr()) => my(t)[e] || e, hy = (e) => To(e).isValid(), Sf = { 1746 format: "date-and-time", 1747 defaultNow: false, 1748 locale: jr() 1749 }; 1750 function wf(e, t) { 1751 typeof t == "string" && (t = { 1752 format: t 1753 }); 1754 let { format: n, defaultNow: i, locale: a } = { 1755 ...Sf, 1756 ...t 1757 }; 1758 if (!i && !e) return ""; 1759 let r = hy(e) ? e : To(new Date(Date.now()), Hu("date-and-time")); 1760 return To(r).locale(Af(a), null, true).format(Hu(n, a)); 1761 } 1762 function eo(e, t) { 1763 const n = { 1764 ...Sf, 1765 format: "date" 1766 }; 1767 return wf(e, { 1768 ...n, 1769 ...t 1770 }); 1771 } 1772 function Lf(e, t) { 1773 return function() { 1774 return e.apply(t, arguments); 1775 }; 1776 } 1777 const { toString: gy } = Object.prototype, { getPrototypeOf: Ml } = Object, { iterator: ys, toStringTag: xf } = Symbol, _s = /* @__PURE__ */ ((e) => (t) => { 1778 const n = gy.call(t); 1779 return e[n] || (e[n] = n.slice(8, -1).toLowerCase()); 1780 })(/* @__PURE__ */ Object.create(null)), kn = (e) => (e = e.toLowerCase(), (t) => _s(t) === e), Es = (e) => (t) => typeof t === e, { isArray: ki } = Array, si = Es("undefined"); 1781 function ga(e) { 1782 return e !== null && !si(e) && e.constructor !== null && !si(e.constructor) && Kt(e.constructor.isBuffer) && e.constructor.isBuffer(e); 1783 } 1784 const Of = kn("ArrayBuffer"); 1785 function by(e) { 1786 let t; 1787 return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Of(e.buffer), t; 1788 } 1789 const vy = Es("string"), Kt = Es("function"), $f = Es("number"), ba = (e) => e !== null && typeof e == "object", yy = (e) => e === true || e === false, Na = (e) => { 1790 if (_s(e) !== "object") return false;
vendor: 4,964 bytes, lines 1791-1914
1791 const t = Ml(e); 1792 return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(xf in e) && !(ys in e); 1793 }, _y = (e) => { 1794 if (!ba(e) || ga(e)) return false; 1795 try { 1796 return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype; 1797 } catch { 1798 return false; 1799 } 1800 }, Ey = kn("Date"), ky = kn("File"), Cy = (e) => !!(e && typeof e.uri < "u"), Ay = (e) => e && typeof e.getParts < "u", Sy = kn("Blob"), wy = kn("FileList"), Ly = (e) => ba(e) && Kt(e.pipe); 1801 function xy() { 1802 return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}; 1803 } 1804 const ju = xy(), zu = typeof ju.FormData < "u" ? ju.FormData : void 0, Oy = (e) => { 1805 let t; 1806 return e && (zu && e instanceof zu || Kt(e.append) && ((t = _s(e)) === "formdata" || t === "object" && Kt(e.toString) && e.toString() === "[object FormData]")); 1807 }, $y = kn("URLSearchParams"), [Ty, Iy, Fy, Ny] = [ 1808 "ReadableStream", 1809 "Request", 1810 "Response", 1811 "Headers" 1812 ].map(kn), Dy = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); 1813 function va(e, t, { allOwnKeys: n = false } = {}) { 1814 if (e === null || typeof e > "u") return; 1815 let i, a; 1816 if (typeof e != "object" && (e = [ 1817 e 1818 ]), ki(e)) for (i = 0, a = e.length; i < a; i++) t.call(null, e[i], i, e); 1819 else { 1820 if (ga(e)) return; 1821 const r = n ? Object.getOwnPropertyNames(e) : Object.keys(e), s = r.length; 1822 let o; 1823 for (i = 0; i < s; i++) o = r[i], t.call(null, e[o], o, e); 1824 } 1825 } 1826 function Tf(e, t) { 1827 if (ga(e)) return null; 1828 t = t.toLowerCase(); 1829 const n = Object.keys(e); 1830 let i = n.length, a; 1831 for (; i-- > 0; ) if (a = n[i], t === a.toLowerCase()) return a; 1832 return null; 1833 } 1834 const Ir = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, If = (e) => !si(e) && e !== Ir; 1835 function No() { 1836 const { caseless: e, skipUndefined: t } = If(this) && this || {}, n = {}, i = (a, r) => { 1837 if (r === "__proto__" || r === "constructor" || r === "prototype") return; 1838 const s = e && Tf(n, r) || r; 1839 Na(n[s]) && Na(a) ? n[s] = No(n[s], a) : Na(a) ? n[s] = No({}, a) : ki(a) ? n[s] = a.slice() : (!t || !si(a)) && (n[s] = a); 1840 }; 1841 for (let a = 0, r = arguments.length; a < r; a++) arguments[a] && va(arguments[a], i); 1842 return n; 1843 } 1844 const Py = (e, t, n, { allOwnKeys: i } = {}) => (va(t, (a, r) => { 1845 n && Kt(a) ? Object.defineProperty(e, r, { 1846 value: Lf(a, n), 1847 writable: true, 1848 enumerable: true, 1849 configurable: true 1850 }) : Object.defineProperty(e, r, { 1851 value: a, 1852 writable: true, 1853 enumerable: true, 1854 configurable: true 1855 }); 1856 }, { 1857 allOwnKeys: i 1858 }), e), By = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), My = (e, t, n, i) => { 1859 e.prototype = Object.create(t.prototype, i), Object.defineProperty(e.prototype, "constructor", { 1860 value: e, 1861 writable: true, 1862 enumerable: false, 1863 configurable: true 1864 }), Object.defineProperty(e, "super", { 1865 value: t.prototype 1866 }), n && Object.assign(e.prototype, n); 1867 }, Ry = (e, t, n, i) => { 1868 let a, r, s; 1869 const o = {}; 1870 if (t = t || {}, e == null) return t; 1871 do { 1872 for (a = Object.getOwnPropertyNames(e), r = a.length; r-- > 0; ) s = a[r], (!i || i(s, e, t)) && !o[s] && (t[s] = e[s], o[s] = true); 1873 e = n !== false && Ml(e); 1874 } while (e && (!n || n(e, t)) && e !== Object.prototype); 1875 return t; 1876 }, Uy = (e, t, n) => { 1877 e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length; 1878 const i = e.indexOf(t, n); 1879 return i !== -1 && i === n; 1880 }, Vy = (e) => { 1881 if (!e) return null; 1882 if (ki(e)) return e; 1883 let t = e.length; 1884 if (!$f(t)) return null; 1885 const n = new Array(t); 1886 for (; t-- > 0; ) n[t] = e[t]; 1887 return n; 1888 }, Hy = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ml(Uint8Array)), jy = (e, t) => { 1889 const n = (e && e[ys]).call(e); 1890 let i; 1891 for (; (i = n.next()) && !i.done; ) { 1892 const a = i.value; 1893 t.call(e, a[0], a[1]); 1894 } 1895 }, zy = (e, t) => { 1896 let n; 1897 const i = []; 1898 for (; (n = e.exec(t)) !== null; ) i.push(n); 1899 return i; 1900 }, Wy = kn("HTMLFormElement"), Gy = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(t, n, i) { 1901 return n.toUpperCase() + i; 1902 }), Wu = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), qy = kn("RegExp"), Ff = (e, t) => { 1903 const n = Object.getOwnPropertyDescriptors(e), i = {}; 1904 va(n, (a, r) => { 1905 let s; 1906 (s = t(a, r, e)) !== false && (i[r] = s || a); 1907 }), Object.defineProperties(e, i); 1908 }, Yy = (e) => { 1909 Ff(e, (t, n) => { 1910 if (Kt(e) && [ 1911 "arguments", 1912 "caller", 1913 "callee" 1914 ].indexOf(n) !== -1) return false;
1915 const i = e[n]; 1916 if (Kt(i)) { 1917 if (t.enumerable = false, "writable" in t) { 1918 t.writable = false; 1919 return; 1920 } 1921 t.set || (t.set = () => { 1922 throw Error("Can not rewrite read-only method '" + n + "'"); 1923 }); 1924 } 1925 }); 1926 }, Ky = (e, t) => { 1927 const n = {}, i = (a) => { 1928 a.forEach((r) => { 1929 n[r] = true; 1930 }); 1931 }; 1932 return ki(e) ? i(e) : i(String(e).split(t)), n; 1933 }, Xy = () => { 1934 }, Jy = (e, t) => e != null && Number.isFinite(e = +e) ? e : t; 1935 function Qy(e) { 1936 return !!(e && Kt(e.append) && e[xf] === "FormData" && e[ys]); 1937 } 1938 const Zy = (e) => { 1939 const t = new Array(10), n = (i, a) => { 1940 if (ba(i)) { 1941 if (t.indexOf(i) >= 0) return; 1942 if (ga(i)) return i; 1943 if (!("toJSON" in i)) { 1944 t[a] = i; 1945 const r = ki(i) ? [] : {}; 1946 return va(i, (s, o) => { 1947 const l = n(s, a + 1); 1948 !si(l) && (r[o] = l); 1949 }), t[a] = void 0, r; 1950 } 1951 } 1952 return i; 1953 }; 1954 return n(e, 0); 1955 }, e_ = kn("AsyncFunction"), t_ = (e) => e && (ba(e) || Kt(e)) && Kt(e.then) && Kt(e.catch), Nf = ((e, t) => e ? setImmediate : t ? ((n, i) => (Ir.addEventListener("message", ({ source: a, data: r }) => { 1956 a === Ir && r === n && i.length && i.shift()(); 1957 }, false), (a) => { 1958 i.push(a), Ir.postMessage(n, "*"); 1959 }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", Kt(Ir.postMessage)), n_ = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ir) : typeof process < "u" && process.nextTick || Nf, r_ = (e) => e != null && Kt(e[ys]), ee = { 1960 isArray: ki, 1961 isArrayBuffer: Of, 1962 isBuffer: ga, 1963 isFormData: Oy, 1964 isArrayBufferView: by, 1965 isString: vy, 1966 isNumber: $f, 1967 isBoolean: yy, 1968 isObject: ba, 1969 isPlainObject: Na, 1970 isEmptyObject: _y, 1971 isReadableStream: Ty, 1972 isRequest: Iy, 1973 isResponse: Fy, 1974 isHeaders: Ny, 1975 isUndefined: si, 1976 isDate: Ey, 1977 isFile: ky, 1978 isReactNativeBlob: Cy, 1979 isReactNative: Ay, 1980 isBlob: Sy, 1981 isRegExp: qy, 1982 isFunction: Kt, 1983 isStream: Ly, 1984 isURLSearchParams: $y, 1985 isTypedArray: Hy, 1986 isFileList: wy, 1987 forEach: va, 1988 merge: No, 1989 extend: Py, 1990 trim: Dy, 1991 stripBOM: By, 1992 inherits: My, 1993 toFlatObject: Ry, 1994 kindOf: _s, 1995 kindOfTest: kn, 1996 endsWith: Uy, 1997 toArray: Vy, 1998 forEachEntry: jy, 1999 matchAll: zy, 2000 isHTMLForm: Wy, 2001 hasOwnProperty: Wu, 2002 hasOwnProp: Wu, 2003 reduceDescriptors: Ff, 2004 freezeMethods: Yy, 2005 toObjectSet: Ky, 2006 toCamelCase: Gy, 2007 noop: Xy, 2008 toFiniteNumber: Jy, 2009 findKey: Tf, 2010 global: Ir, 2011 isContextDefined: If, 2012 isSpecCompliantForm: Qy, 2013 toJSONObject: Zy, 2014 isAsyncFn: e_, 2015 isThenable: t_, 2016 setImmediate: Nf, 2017 asap: n_, 2018 isIterable: r_ 2019 }; 2020 class Rt extends Error { 2021 static from(t, n, i, a, r, s) { 2022 const o = new Rt(t.message, n || t.code, i, a, r); 2023 return o.cause = t, o.name = t.name, t.status != null && o.status == null && (o.status = t.status), s && Object.assign(o, s), o; 2024 } 2025 constructor(t, n, i, a, r) { 2026 super(t), Object.defineProperty(this, "message", { 2027 value: t, 2028 enumerable: true, 2029 writable: true, 2030 configurable: true 2031 }), this.name = "AxiosError", this.isAxiosError = true, n && (this.code = n), i && (this.config = i), a && (this.request = a), r && (this.response = r, this.status = r.status); 2032 } 2033 toJSON() { 2034 return { 2035 message: this.message, 2036 name: this.name, 2037 description: this.description, 2038 number: this.number, 2039 fileName: this.fileName, 2040 lineNumber: this.lineNumber, 2041 columnNumber: this.columnNumber, 2042 stack: this.stack, 2043 config: ee.toJSONObject(this.config), 2044 code: this.code, 2045 status: this.status 2046 }; 2047 } 2048 } 2049 Rt.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE"; 2050 Rt.ERR_BAD_OPTION = "ERR_BAD_OPTION"; 2051 Rt.ECONNABORTED = "ECONNABORTED"; 2052 Rt.ETIMEDOUT = "ETIMEDOUT"; 2053 Rt.ERR_NETWORK = "ERR_NETWORK"; 2054 Rt.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS"; 2055 Rt.ERR_DEPRECATED = "ERR_DEPRECATED"; 2056 Rt.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE"; 2057 Rt.ERR_BAD_REQUEST = "ERR_BAD_REQUEST"; 2058 Rt.ERR_CANCELED = "ERR_CANCELED"; 2059 Rt.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT"; 2060 Rt.ERR_INVALID_URL = "ERR_INVALID_URL"; 2061 const je = Rt, i_ = null; 2062 function Do(e) { 2063 return ee.isPlainObject(e) || ee.isArray(e); 2064 } 2065 function Df(e) { 2066 return ee.endsWith(e, "[]") ? e.slice(0, -2) : e; 2067 } 2068 function to(e, t, n) { 2069 return e ? e.concat(t).map(function(i, a) { 2070 return i = Df(i), !n && a ? "[" + i + "]" : i; 2071 }).join(n ? "." : "") : t; 2072 } 2073 function a_(e) { 2074 return ee.isArray(e) && !e.some(Do); 2075 } 2076 const s_ = ee.toFlatObject(ee, {}, null, function(e) { 2077 return /^is[A-Z]/.test(e); 2078 }); 2079 function ks(e, t, n) { 2080 if (!ee.isObject(e)) throw new TypeError("target must be an object"); 2081 t = t || new FormData(), n = ee.toFlatObject(n, { 2082 metaTokens: true, 2083 dots: false, 2084 indexes: false 2085 }, false, function(b, h) { 2086 return !ee.isUndefined(h[b]); 2087 }); 2088 const i = n.metaTokens, a = n.visitor || u, r = n.dots, s = n.indexes, o = (n.Blob || typeof Blob < "u" && Blob) && ee.isSpecCompliantForm(t);
2089 if (!ee.isFunction(a)) throw new TypeError("visitor must be a function"); 2090 function l(b) { 2091 if (b === null) return ""; 2092 if (ee.isDate(b)) return b.toISOString(); 2093 if (ee.isBoolean(b)) return b.toString(); 2094 if (!o && ee.isBlob(b)) throw new je("Blob is not supported. Use a Buffer instead."); 2095 return ee.isArrayBuffer(b) || ee.isTypedArray(b) ? o && typeof Blob == "function" ? new Blob([ 2096 b 2097 ]) : Buffer.from(b) : b; 2098 } 2099 function u(b, h, _) { 2100 let C = b; 2101 if (ee.isReactNative(t) && ee.isReactNativeBlob(b)) return t.append(to(_, h, r), l(b)), false; 2102 if (b && !_ && typeof b == "object") { 2103 if (ee.endsWith(h, "{}")) h = i ? h : h.slice(0, -2), b = JSON.stringify(b); 2104 else if (ee.isArray(b) && a_(b) || (ee.isFileList(b) || ee.endsWith(h, "[]")) && (C = ee.toArray(b))) return h = Df(h), C.forEach(function(D, N) { 2105 !(ee.isUndefined(D) || D === null) && t.append(s === true ? to([ 2106 h 2107 ], N, r) : s === null ? h : h + "[]", l(D)); 2108 }), false; 2109 } 2110 return Do(b) ? true : (t.append(to(_, h, r), l(b)), false); 2111 } 2112 const c = [], d = Object.assign(s_, { 2113 defaultVisitor: u, 2114 convertValue: l, 2115 isVisitable: Do 2116 }); 2117 function p(b, h) { 2118 if (!ee.isUndefined(b)) { 2119 if (c.indexOf(b) !== -1) throw Error("Circular reference detected in " + h.join(".")); 2120 c.push(b), ee.forEach(b, function(_, C) { 2121 (!(ee.isUndefined(_) || _ === null) && a.call(t, _, ee.isString(C) ? C.trim() : C, h, d)) === true && p(_, h ? h.concat(C) : [ 2122 C 2123 ]); 2124 }), c.pop(); 2125 } 2126 } 2127 if (!ee.isObject(e)) throw new TypeError("data must be an object"); 2128 return p(e), t; 2129 } 2130 function Gu(e) { 2131 const t = { 2132 "!": "%21", 2133 "'": "%27", 2134 "(": "%28", 2135 ")": "%29", 2136 "~": "%7E", 2137 "%20": "+", 2138 "%00": "\0" 2139 }; 2140 return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) { 2141 return t[n]; 2142 }); 2143 } 2144 function Rl(e, t) { 2145 this._pairs = [], e && ks(e, this, t); 2146 } 2147 const Pf = Rl.prototype; 2148 Pf.append = function(e, t) { 2149 this._pairs.push([ 2150 e, 2151 t 2152 ]); 2153 }; 2154 Pf.toString = function(e) { 2155 const t = e ? function(n) { 2156 return e.call(this, n, Gu); 2157 } : Gu; 2158 return this._pairs.map(function(n) { 2159 return t(n[0]) + "=" + t(n[1]); 2160 }, "").join("&"); 2161 }; 2162 function o_(e) { 2163 return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+"); 2164 } 2165 function Bf(e, t, n) { 2166 if (!t) return e; 2167 const i = n && n.encode || o_, a = ee.isFunction(n) ? { 2168 serialize: n 2169 } : n, r = a && a.serialize; 2170 let s; 2171 if (r ? s = r(t, a) : s = ee.isURLSearchParams(t) ? t.toString() : new Rl(t, a).toString(i), s) { 2172 const o = e.indexOf("#"); 2173 o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + s; 2174 } 2175 return e; 2176 } 2177 class l_ { 2178 constructor() { 2179 this.handlers = []; 2180 } 2181 use(t, n, i) { 2182 return this.handlers.push({ 2183 fulfilled: t, 2184 rejected: n, 2185 synchronous: i ? i.synchronous : false, 2186 runWhen: i ? i.runWhen : null 2187 }), this.handlers.length - 1; 2188 } 2189 eject(t) { 2190 this.handlers[t] && (this.handlers[t] = null); 2191 } 2192 clear() { 2193 this.handlers && (this.handlers = []); 2194 } 2195 forEach(t) { 2196 ee.forEach(this.handlers, function(n) { 2197 n !== null && t(n); 2198 }); 2199 } 2200 } 2201 const qu = l_, Ul = { 2202 silentJSONParsing: true, 2203 forcedJSONParsing: true, 2204 clarifyTimeoutError: false, 2205 legacyInterceptorReqResOrdering: true 2206 }, u_ = typeof URLSearchParams < "u" ? URLSearchParams : Rl, c_ = typeof FormData < "u" ? FormData : null, d_ = typeof Blob < "u" ? Blob : null, p_ = { 2207 isBrowser: true, 2208 classes: { 2209 URLSearchParams: u_, 2210 FormData: c_, 2211 Blob: d_ 2212 }, 2213 protocols: [ 2214 "http", 2215 "https", 2216 "file", 2217 "blob", 2218 "url", 2219 "data" 2220 ] 2221 }, Vl = typeof window < "u" && typeof document < "u", Po = typeof navigator == "object" && navigator || void 0, f_ = Vl && (!Po || [ 2222 "ReactNative", 2223 "NativeScript", 2224 "NS" 2225 ].indexOf(Po.product) < 0), m_ = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", h_ = Vl && window.location.href || "http://localhost", g_ = Object.freeze(Object.defineProperty({ 2226 __proto__: null, 2227 hasBrowserEnv: Vl, 2228 hasStandardBrowserEnv: f_, 2229 hasStandardBrowserWebWorkerEnv: m_, 2230 navigator: Po, 2231 origin: h_ 2232 }, Symbol.toStringTag, { 2233 value: "Module" 2234 })), Dt = { 2235 ...g_, 2236 ...p_ 2237 }; 2238 function b_(e, t) { 2239 return ks(e, new Dt.classes.URLSearchParams(), { 2240 visitor: function(n, i, a, r) { 2241 return Dt.isNode && ee.isBuffer(n) ? (this.append(i, n.toString("base64")), false) : r.defaultVisitor.apply(this, arguments); 2242 }, 2243 ...t 2244 }); 2245 } 2246 function v_(e) { 2247 return ee.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]); 2248 } 2249 function y_(e) { 2250 const t = {}, n = Object.keys(e); 2251 let i; 2252 const a = n.length; 2253 let r; 2254 for (i = 0; i < a; i++) r = n[i], t[r] = e[r]; 2255 return t; 2256 } 2257 function Mf(e) { 2258 function t(n, i, a, r) { 2259 let s = n[r++]; 2260 if (s === "__proto__") return true; 2261 const o = Number.isFinite(+s), l = r >= n.length; 2262 return s = !s && ee.isArray(a) ? a.length : s, l ? (ee.hasOwnProp(a, s) ? a[s] = [ 2263 a[s], 2264 i
vendor: 4,404 bytes, lines 2265-2407
2265 ] : a[s] = i, !o) : ((!a[s] || !ee.isObject(a[s])) && (a[s] = []), t(n, i, a[s], r) && ee.isArray(a[s]) && (a[s] = y_(a[s])), !o); 2266 } 2267 if (ee.isFormData(e) && ee.isFunction(e.entries)) { 2268 const n = {}; 2269 return ee.forEachEntry(e, (i, a) => { 2270 t(v_(i), a, n, 0); 2271 }), n; 2272 } 2273 return null; 2274 } 2275 function __(e, t, n) { 2276 if (ee.isString(e)) try { 2277 return (t || JSON.parse)(e), ee.trim(e); 2278 } catch (i) { 2279 if (i.name !== "SyntaxError") throw i; 2280 } 2281 return (n || JSON.stringify)(e); 2282 } 2283 const Hl = { 2284 transitional: Ul, 2285 adapter: [ 2286 "xhr", 2287 "http", 2288 "fetch" 2289 ], 2290 transformRequest: [ 2291 function(e, t) { 2292 const n = t.getContentType() || "", i = n.indexOf("application/json") > -1, a = ee.isObject(e); 2293 if (a && ee.isHTMLForm(e) && (e = new FormData(e)), ee.isFormData(e)) return i ? JSON.stringify(Mf(e)) : e; 2294 if (ee.isArrayBuffer(e) || ee.isBuffer(e) || ee.isStream(e) || ee.isFile(e) || ee.isBlob(e) || ee.isReadableStream(e)) return e; 2295 if (ee.isArrayBufferView(e)) return e.buffer; 2296 if (ee.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", false), e.toString(); 2297 let r; 2298 if (a) { 2299 if (n.indexOf("application/x-www-form-urlencoded") > -1) return b_(e, this.formSerializer).toString(); 2300 if ((r = ee.isFileList(e)) || n.indexOf("multipart/form-data") > -1) { 2301 const s = this.env && this.env.FormData; 2302 return ks(r ? { 2303 "files[]": e 2304 } : e, s && new s(), this.formSerializer); 2305 } 2306 } 2307 return a || i ? (t.setContentType("application/json", false), __(e)) : e; 2308 } 2309 ], 2310 transformResponse: [ 2311 function(e) { 2312 const t = this.transitional || Hl.transitional, n = t && t.forcedJSONParsing, i = this.responseType === "json"; 2313 if (ee.isResponse(e) || ee.isReadableStream(e)) return e; 2314 if (e && ee.isString(e) && (n && !this.responseType || i)) { 2315 const a = !(t && t.silentJSONParsing) && i; 2316 try { 2317 return JSON.parse(e, this.parseReviver); 2318 } catch (r) { 2319 if (a) throw r.name === "SyntaxError" ? je.from(r, je.ERR_BAD_RESPONSE, this, null, this.response) : r; 2320 } 2321 } 2322 return e; 2323 } 2324 ], 2325 timeout: 0, 2326 xsrfCookieName: "XSRF-TOKEN", 2327 xsrfHeaderName: "X-XSRF-TOKEN", 2328 maxContentLength: -1, 2329 maxBodyLength: -1, 2330 env: { 2331 FormData: Dt.classes.FormData, 2332 Blob: Dt.classes.Blob 2333 }, 2334 validateStatus: function(e) { 2335 return e >= 200 && e < 300; 2336 }, 2337 headers: { 2338 common: { 2339 Accept: "application/json, text/plain, */*", 2340 "Content-Type": void 0 2341 } 2342 } 2343 }; 2344 ee.forEach([ 2345 "delete", 2346 "get", 2347 "head", 2348 "post", 2349 "put", 2350 "patch" 2351 ], (e) => { 2352 Hl.headers[e] = {}; 2353 }); 2354 const jl = Hl, E_ = ee.toObjectSet([ 2355 "age", 2356 "authorization", 2357 "content-length", 2358 "content-type", 2359 "etag", 2360 "expires", 2361 "from", 2362 "host", 2363 "if-modified-since", 2364 "if-unmodified-since", 2365 "last-modified", 2366 "location", 2367 "max-forwards", 2368 "proxy-authorization", 2369 "referer", 2370 "retry-after", 2371 "user-agent" 2372 ]), k_ = (e) => { 2373 const t = {}; 2374 let n, i, a; 2375 return e && e.split(` 2376`).forEach(function(r) { 2377 a = r.indexOf(":"), n = r.substring(0, a).trim().toLowerCase(), i = r.substring(a + 1).trim(), !(!n || t[n] && E_[n]) && (n === "set-cookie" ? t[n] ? t[n].push(i) : t[n] = [ 2378 i 2379 ] : t[n] = t[n] ? t[n] + ", " + i : i); 2380 }), t; 2381 }, Yu = Symbol("internals"), C_ = (e) => !/[\r\n]/.test(e); 2382 function Rf(e, t) { 2383 if (!(e === false || e == null)) { 2384 if (ee.isArray(e)) { 2385 e.forEach((n) => Rf(n, t)); 2386 return; 2387 } 2388 if (!C_(String(e))) throw new Error(`Invalid character in header content ["${t}"]`); 2389 } 2390 } 2391 function Ii(e) { 2392 return e && String(e).trim().toLowerCase(); 2393 } 2394 function A_(e) { 2395 let t = e.length; 2396 for (; t > 0; ) { 2397 const n = e.charCodeAt(t - 1); 2398 if (n !== 10 && n !== 13) break; 2399 t -= 1; 2400 } 2401 return t === e.length ? e : e.slice(0, t); 2402 } 2403 function Da(e) { 2404 return e === false || e == null ? e : ee.isArray(e) ? e.map(Da) : A_(String(e)); 2405 } 2406 function S_(e) { 2407 const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;
2407=]+)\s*(?:=\s*([^,;]+))?/g; 2408 let i; 2409 for (; i = n.exec(e); ) t[i[1]] = i[2]; 2410 return t; 2411 } 2412 const w_ = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()); 2413 function no(e, t, n, i, a) { 2414 if (ee.isFunction(i)) return i.call(this, t, n); 2415 if (a && (t = n), !!ee.isString(t)) { 2416 if (ee.isString(i)) return t.indexOf(i) !== -1; 2417 if (ee.isRegExp(i)) return i.test(t); 2418 } 2419 } 2420 function L_(e) { 2421 return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, i) => n.toUpperCase() + i); 2422 } 2423 function x_(e, t) { 2424 const n = ee.toCamelCase(" " + t); 2425 [ 2426 "get", 2427 "set", 2428 "has" 2429 ].forEach((i) => { 2430 Object.defineProperty(e, i + n, { 2431 value: function(a, r, s) { 2432 return this[i].call(this, t, a, r, s); 2433 }, 2434 configurable: true 2435 }); 2436 }); 2437 } 2438 class Cs { 2439 constructor(t) { 2440 t && this.set(t); 2441 } 2442 set(t, n, i) { 2443 const a = this; 2444 function r(o, l, u) { 2445 const c = Ii(l); 2446 if (!c) throw new Error("header name must be a non-empty string"); 2447 const d = ee.findKey(a, c); 2448 (!d || a[d] === void 0 || u === true || u === void 0 && a[d] !== false) && (Rf(o, l), a[d || l] = Da(o)); 2449 } 2450 const s = (o, l) => ee.forEach(o, (u, c) => r(u, c, l)); 2451 if (ee.isPlainObject(t) || t instanceof this.constructor) s(t, n); 2452 else if (ee.isString(t) && (t = t.trim()) && !w_(t)) s(k_(t), n); 2453 else if (ee.isObject(t) && ee.isIterable(t)) { 2454 let o = {}, l, u; 2455 for (const c of t) { 2456 if (!ee.isArray(c)) throw TypeError("Object iterator must return a key-value pair"); 2457 o[u = c[0]] = (l = o[u]) ? ee.isArray(l) ? [ 2458 ...l, 2459 c[1] 2460 ] : [ 2461 l, 2462 c[1] 2463 ] : c[1]; 2464 } 2465 s(o, n); 2466 } else t != null && r(n, t, i); 2467 return this; 2468 } 2469 get(t, n) { 2470 if (t = Ii(t), t) { 2471 const i = ee.findKey(this, t); 2472 if (i) { 2473 const a = this[i]; 2474 if (!n) return a; 2475 if (n === true) return S_(a); 2476 if (ee.isFunction(n)) return n.call(this, a, i); 2477 if (ee.isRegExp(n)) return n.exec(a); 2478 throw new TypeError("parser must be boolean|regexp|function"); 2479 } 2480 } 2481 } 2482 has(t, n) { 2483 if (t = Ii(t), t) { 2484 const i = ee.findKey(this, t); 2485 return !!(i && this[i] !== void 0 && (!n || no(this, this[i], i, n))); 2486 } 2487 return false; 2488 } 2489 delete(t, n) { 2490 const i = this; 2491 let a = false; 2492 function r(s) { 2493 if (s = Ii(s), s) { 2494 const o = ee.findKey(i, s); 2495 o && (!n || no(i, i[o], o, n)) && (delete i[o], a = true); 2496 } 2497 } 2498 return ee.isArray(t) ? t.forEach(r) : r(t), a; 2499 } 2500 clear(t) { 2501 const n = Object.keys(this); 2502 let i = n.length, a = false; 2503 for (; i--; ) { 2504 const r = n[i]; 2505 (!t || no(this, this[r], r, t, true)) && (delete this[r], a = true); 2506 } 2507 return a; 2508 } 2509 normalize(t) { 2510 const n = this, i = {}; 2511 return ee.forEach(this, (a, r) => { 2512 const s = ee.findKey(i, r); 2513 if (s) { 2514 n[s] = Da(a), delete n[r]; 2515 return; 2516 } 2517 const o = t ? L_(r) : String(r).trim(); 2518 o !== r && delete n[r], n[o] = Da(a), i[o] = true; 2519 }), this; 2520 } 2521 concat(...t) { 2522 return this.constructor.concat(this, ...t); 2523 } 2524 toJSON(t) { 2525 const n = /* @__PURE__ */ Object.create(null); 2526 return ee.forEach(this, (i, a) => { 2527 i != null && i !== false && (n[a] = t && ee.isArray(i) ? i.join(", ") : i); 2528 }), n; 2529 } 2530 [Symbol.iterator]() { 2531 return Object.entries(this.toJSON())[Symbol.iterator](); 2532 } 2533 toString() { 2534 return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(` 2535`); 2536 } 2537 getSetCookie() { 2538 return this.get("set-cookie") || []; 2539 } 2540 get [Symbol.toStringTag]() { 2541 return "AxiosHeaders"; 2542 } 2543 static from(t) { 2544 return t instanceof this ? t : new this(t); 2545 } 2546 static concat(t, ...n) { 2547 const i = new this(t);
2548 return n.forEach((a) => i.set(a)), i; 2549 } 2550 static accessor(t) { 2551 const n = (this[Yu] = this[Yu] = { 2552 accessors: {} 2553 }).accessors, i = this.prototype; 2554 function a(r) { 2555 const s = Ii(r); 2556 n[s] || (x_(i, r), n[s] = true); 2557 } 2558 return ee.isArray(t) ? t.forEach(a) : a(t), this; 2559 } 2560 } 2561 Cs.accessor([ 2562 "Content-Type", 2563 "Content-Length", 2564 "Accept", 2565 "Accept-Encoding", 2566 "User-Agent", 2567 "Authorization" 2568 ]); 2569 ee.reduceDescriptors(Cs.prototype, ({ value: e }, t) => { 2570 let n = t[0].toUpperCase() + t.slice(1); 2571 return { 2572 get: () => e, 2573 set(i) { 2574 this[n] = i; 2575 } 2576 }; 2577 }); 2578 ee.freezeMethods(Cs); 2579 const En = Cs; 2580 function ro(e, t) { 2581 const n = this || jl, i = t || n, a = En.from(i.headers); 2582 let r = i.data; 2583 return ee.forEach(e, function(s) { 2584 r = s.call(n, r, a.normalize(), t ? t.status : void 0); 2585 }), a.normalize(), r; 2586 } 2587 function Uf(e) { 2588 return !!(e && e.__CANCEL__); 2589 } 2590 class O_ extends je { 2591 constructor(t, n, i) { 2592 super(t ?? "canceled", je.ERR_CANCELED, n, i), this.name = "CanceledError", this.__CANCEL__ = true; 2593 } 2594 } 2595 const ya = O_; 2596 function Vf(e, t, n) { 2597 const i = n.config.validateStatus; 2598 !n.status || !i || i(n.status) ? e(n) : t(new je("Request failed with status code " + n.status, [ 2599 je.ERR_BAD_REQUEST, 2600 je.ERR_BAD_RESPONSE 2601 ][Math.floor(n.status / 100) - 4], n.config, n.request, n)); 2602 } 2603 function $_(e) { 2604 const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e); 2605 return t && t[1] || ""; 2606 } 2607 function T_(e, t) { 2608 e = e || 10; 2609 const n = new Array(e), i = new Array(e); 2610 let a = 0, r = 0, s; 2611 return t = t !== void 0 ? t : 1e3, function(o) { 2612 const l = Date.now(), u = i[r]; 2613 s || (s = l), n[a] = o, i[a] = l; 2614 let c = r, d = 0; 2615 for (; c !== a; ) d += n[c++], c = c % e; 2616 if (a = (a + 1) % e, a === r && (r = (r + 1) % e), l - s < t) return; 2617 const p = u && l - u; 2618 return p ? Math.round(d * 1e3 / p) : void 0; 2619 }; 2620 } 2621 function I_(e, t) { 2622 let n = 0, i = 1e3 / t, a, r; 2623 const s = (o, l = Date.now()) => { 2624 n = l, a = null, r && (clearTimeout(r), r = null), e(...o); 2625 }; 2626 return [ 2627 (...o) => { 2628 const l = Date.now(), u = l - n; 2629 u >= i ? s(o, l) : (a = o, r || (r = setTimeout(() => { 2630 r = null, s(a); 2631 }, i - u))); 2632 }, 2633 () => a && s(a) 2634 ]; 2635 } 2636 const Ya = (e, t, n = 3) => { 2637 let i = 0; 2638 const a = T_(50, 250); 2639 return I_((r) => { 2640 const s = r.loaded, o = r.lengthComputable ? r.total : void 0, l = s - i, u = a(l), c = s <= o; 2641 i = s; 2642 const d = { 2643 loaded: s, 2644 total: o, 2645 progress: o ? s / o : void 0, 2646 bytes: l, 2647 rate: u || void 0, 2648 estimated: u && o && c ? (o - s) / u : void 0, 2649 event: r, 2650 lengthComputable: o != null, 2651 [t ? "download" : "upload"]: true 2652 }; 2653 e(d); 2654 }, n); 2655 }, Ku = (e, t) => { 2656 const n = e != null; 2657 return [ 2658 (i) => t[0]({ 2659 lengthComputable: n, 2660 total: e, 2661 loaded: i 2662 }), 2663 t[1] 2664 ]; 2665 }, Xu = (e) => (...t) => ee.asap(() => e(...t)), F_ = Dt.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, Dt.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(Dt.origin), Dt.navigator && /(msie|trident)/i.test(Dt.navigator.userAgent)) : () => true, N_ = Dt.hasStandardBrowserEnv ? { 2666 write(e, t, n, i, a, r, s) { 2667 if (typeof document > "u") return; 2668 const o = [ 2669 `${e}=${encodeURIComponent(t)}` 2670 ]; 2671 ee.isNumber(n) && o.push(`expires=${new Date(n).toUTCString()}`), ee.isString(i) && o.push(`path=${i}`), ee.isString(a) && o.push(`domain=${a}`), r === true && o.push("secure"), ee.isString(s) && o.push(`SameSite=${s}`), document.cookie = o.join("; "); 2672 }, 2673 read(e) { 2674 if (typeof document > "u") return null; 2675 const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)")); 2676 return t ? decodeURIComponent(t[1]) : null; 2677 }, 2678 remove(e) { 2679 this.write(e, "", Date.now() - 864e5, "/"); 2680 } 2681 } : { 2682 write() { 2683 }, 2684 read() { 2685 return null; 2686 }, 2687 remove() { 2688 } 2689 }; 2690 function D_(e) { 2691 return typeof e != "string" ? false : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e); 2692 } 2693 function P_(e, t) { 2694 return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e; 2695 } 2696 function Hf(e, t, n) { 2697 let i = !D_(t); 2698 return e && (i || n == false) ? P_(e, t) : t; 2699 } 2700 const Ju = (e) => e instanceof En ? { 2701 ...e 2702 } : e; 2703 function Mr(e, t) { 2704 t = t || {}; 2705 const n = {}; 2706 function i(u, c, d, p) { 2707 return ee.isPlainObject(u) && ee.isPlainObject(c) ? ee.merge.call({ 2708 caseless: p 2709 }, u, c) : ee.isPlainObject(c) ? ee.merge({}, c) : ee.isArray(c) ? c.slice() : c; 2710 } 2711 function a(u, c, d, p) { 2712 if (ee.isUndefined(c)) { 2713 if (!ee.isUndefined(u)) return i(void 0, u, d, p); 2714 } else return i(u, c, d, p); 2715 } 2716 function r(u, c) {
vendor: 11,881 bytes, lines 2717-3042
2717 if (!ee.isUndefined(c)) return i(void 0, c); 2718 } 2719 function s(u, c) { 2720 if (ee.isUndefined(c)) { 2721 if (!ee.isUndefined(u)) return i(void 0, u); 2722 } else return i(void 0, c); 2723 } 2724 function o(u, c, d) { 2725 if (d in t) return i(u, c); 2726 if (d in e) return i(void 0, u); 2727 } 2728 const l = { 2729 url: r, 2730 method: r, 2731 data: r, 2732 baseURL: s, 2733 transformRequest: s, 2734 transformResponse: s, 2735 paramsSerializer: s, 2736 timeout: s, 2737 timeoutMessage: s, 2738 withCredentials: s, 2739 withXSRFToken: s, 2740 adapter: s, 2741 responseType: s, 2742 xsrfCookieName: s, 2743 xsrfHeaderName: s, 2744 onUploadProgress: s, 2745 onDownloadProgress: s, 2746 decompress: s, 2747 maxContentLength: s, 2748 maxBodyLength: s, 2749 beforeRedirect: s, 2750 transport: s, 2751 httpAgent: s, 2752 httpsAgent: s, 2753 cancelToken: s, 2754 socketPath: s, 2755 responseEncoding: s, 2756 validateStatus: o, 2757 headers: (u, c, d) => a(Ju(u), Ju(c), d, true) 2758 }; 2759 return ee.forEach(Object.keys({ 2760 ...e, 2761 ...t 2762 }), function(u) { 2763 if (u === "__proto__" || u === "constructor" || u === "prototype") return; 2764 const c = ee.hasOwnProp(l, u) ? l[u] : a, d = c(e[u], t[u], u); 2765 ee.isUndefined(d) && c !== o || (n[u] = d); 2766 }), n; 2767 } 2768 const jf = (e) => { 2769 const t = Mr({}, e); 2770 let { data: n, withXSRFToken: i, xsrfHeaderName: a, xsrfCookieName: r, headers: s, auth: o } = t; 2771 if (t.headers = s = En.from(s), t.url = Bf(Hf(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), o && s.set("Authorization", "Basic " + btoa((o.username || "") + ":" + (o.password ? unescape(encodeURIComponent(o.password)) : ""))), ee.isFormData(n)) { 2772 if (Dt.hasStandardBrowserEnv || Dt.hasStandardBrowserWebWorkerEnv) s.setContentType(void 0); 2773 else if (ee.isFunction(n.getHeaders)) { 2774 const l = n.getHeaders(), u = [ 2775 "content-type", 2776 "content-length" 2777 ]; 2778 Object.entries(l).forEach(([c, d]) => { 2779 u.includes(c.toLowerCase()) && s.set(c, d); 2780 }); 2781 } 2782 } 2783 if (Dt.hasStandardBrowserEnv && (i && ee.isFunction(i) && (i = i(t)), i || i !== false && F_(t.url))) { 2784 const l = a && r && N_.read(r); 2785 l && s.set(a, l); 2786 } 2787 return t; 2788 }, B_ = typeof XMLHttpRequest < "u", M_ = B_ && function(e) { 2789 return new Promise(function(t, n) { 2790 const i = jf(e); 2791 let a = i.data; 2792 const r = En.from(i.headers).normalize(); 2793 let { responseType: s, onUploadProgress: o, onDownloadProgress: l } = i, u, c, d, p, b; 2794 function h() { 2795 p && p(), b && b(), i.cancelToken && i.cancelToken.unsubscribe(u), i.signal && i.signal.removeEventListener("abort", u); 2796 } 2797 let _ = new XMLHttpRequest(); 2798 _.open(i.method.toUpperCase(), i.url, true), _.timeout = i.timeout; 2799 function C() { 2800 if (!_) return; 2801 const N = En.from("getAllResponseHeaders" in _ && _.getAllResponseHeaders()), v = { 2802 data: !s || s === "text" || s === "json" ? _.responseText : _.response, 2803 status: _.status, 2804 statusText: _.statusText, 2805 headers: N, 2806 config: e, 2807 request: _ 2808 }; 2809 Vf(function(y) { 2810 t(y), h(); 2811 }, function(y) { 2812 n(y), h(); 2813 }, v), _ = null; 2814 } 2815 "onloadend" in _ ? _.onloadend = C : _.onreadystatechange = function() { 2816 !_ || _.readyState !== 4 || _.status === 0 && !(_.responseURL && _.responseURL.indexOf("file:") === 0) || setTimeout(C); 2817 }, _.onabort = function() { 2818 _ && (n(new je("Request aborted", je.ECONNABORTED, e, _)), _ = null); 2819 }, _.onerror = function(N) { 2820 const v = N && N.message ? N.message : "Network Error", y = new je(v, je.ERR_NETWORK, e, _); 2821 y.event = N || null, n(y), _ = null; 2822 }, _.ontimeout = function() { 2823 let N = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded"; 2824 const v = i.transitional || Ul; 2825 i.timeoutErrorMessage && (N = i.timeoutErrorMessage), n(new je(N, v.clarifyTimeoutError ? je.ETIMEDOUT : je.ECONNABORTED, e, _)), _ = null; 2826 }, a === void 0 && r.setContentType(null), "setRequestHeader" in _ && ee.forEach(r.toJSON(), function(N, v) { 2827 _.setRequestHeader(v, N); 2828 }), ee.isUndefined(i.withCredentials) || (_.withCredentials = !!i.withCredentials), s && s !== "json" && (_.responseType = i.responseType), l && ([d, b] = Ya(l, true), _.addEventListener("progress", d)), o && _.upload && ([c, p] = Ya(o), _.upload.addEventListener("progress", c), _.upload.addEventListener("loadend", p)), (i.cancelToken || i.signal) && (u = (N) => { 2829 _ && (n(!N || N.type ? new ya(null, e, _) : N), _.abort(), _ = null); 2830 }, i.cancelToken && i.cancelToken.subscribe(u), i.signal && (i.signal.aborted ? u() : i.signal.addEventListener("abort", u))); 2831 const D = $_(i.url); 2832 if (D && Dt.protocols.indexOf(D) === -1) { 2833 n(new je("Unsupported protocol " + D + ":", je.ERR_BAD_REQUEST, e)); 2834 return; 2835 } 2836 _.send(a || null); 2837 }); 2838 }, R_ = (e, t) => { 2839 const { length: n } = e = e ? e.filter(Boolean) : []; 2840 if (t || n) { 2841 let i = new AbortController(), a; 2842 const r = function(u) { 2843 if (!a) { 2844 a = true, o(); 2845 const c = u instanceof Error ? u : this.reason; 2846 i.abort(c instanceof je ? c : new ya(c instanceof Error ? c.message : c)); 2847 } 2848 }; 2849 let s = t && setTimeout(() => { 2850 s = null, r(new je(`timeout of ${t}ms exceeded`, je.ETIMEDOUT)); 2851 }, t); 2852 const o = () => { 2853 e && (s && clearTimeout(s), s = null, e.forEach((u) => { 2854 u.unsubscribe ? u.unsubscribe(r) : u.removeEventListener("abort", r); 2855 }), e = null); 2856 }; 2857 e.forEach((u) => u.addEventListener("abort", r)); 2858 const { signal: l } = i; 2859 return l.unsubscribe = () => ee.asap(o), l; 2860 } 2861 }, U_ = R_, V_ = function* (e, t) { 2862 let n = e.byteLength; 2863 if (n < t) { 2864 yield e; 2865 return; 2866 } 2867 let i = 0, a; 2868 for (; i < n; ) a = i + t, yield e.slice(i, a), i = a; 2869 }, H_ = async function* (e, t) { 2870 for await (const n of j_(e)) yield* V_(n, t); 2871 }, j_ = async function* (e) { 2872 if (e[Symbol.asyncIterator]) { 2873 yield* e; 2874 return; 2875 } 2876 const t = e.getReader(); 2877 try { 2878 for (; ; ) { 2879 const { done: n, value: i } = await t.read(); 2880 if (n) break; 2881 yield i; 2882 } 2883 } finally { 2884 await t.cancel(); 2885 } 2886 }, Qu = (e, t, n, i) => { 2887 const a = H_(e, t); 2888 let r = 0, s, o = (l) => { 2889 s || (s = true, i && i(l)); 2890 }; 2891 return new ReadableStream({ 2892 async pull(l) { 2893 try { 2894 const { done: u, value: c } = await a.next(); 2895 if (u) { 2896 o(), l.close(); 2897 return; 2898 } 2899 let d = c.byteLength; 2900 if (n) { 2901 let p = r += d; 2902 n(p); 2903 } 2904 l.enqueue(new Uint8Array(c)); 2905 } catch (u) { 2906 throw o(u), u; 2907 } 2908 }, 2909 cancel(l) { 2910 return o(l), a.return(); 2911 } 2912 }, { 2913 highWaterMark: 2 2914 }); 2915 }, Zu = 64 * 1024, { isFunction: Aa } = ee, z_ = (({ Request: e, Response: t }) => ({ 2916 Request: e, 2917 Response: t 2918 }))(ee.global), { ReadableStream: ec, TextEncoder: tc } = ee.global, nc = (e, ...t) => { 2919 try { 2920 return !!e(...t); 2921 } catch { 2922 return false; 2923 } 2924 }, W_ = (e) => { 2925 e = ee.merge.call({ 2926 skipUndefined: true 2927 }, z_, e); 2928 const { fetch: t, Request: n, Response: i } = e, a = t ? Aa(t) : typeof fetch == "function", r = Aa(n), s = Aa(i); 2929 if (!a) return false; 2930 const o = a && Aa(ec), l = a && (typeof tc == "function" ? /* @__PURE__ */ ((h) => (_) => h.encode(_))(new tc()) : async (h) => new Uint8Array(await new n(h).arrayBuffer())), u = r && o && nc(() => { 2931 let h = false; 2932 const _ = new ec(), C = new n(Dt.origin, { 2933 body: _, 2934 method: "POST", 2935 get duplex() { 2936 return h = true, "half"; 2937 } 2938 }).headers.has("Content-Type"); 2939 return _.cancel(), h && !C; 2940 }), c = s && o && nc(() => ee.isReadableStream(new i("").body)), d = { 2941 stream: c && ((h) => h.body) 2942 }; 2943 a && [ 2944 "text", 2945 "arrayBuffer", 2946 "blob", 2947 "formData", 2948 "stream" 2949 ].forEach((h) => { 2950 !d[h] && (d[h] = (_, C) => { 2951 let D = _ && _[h]; 2952 if (D) return D.call(_); 2953 throw new je(`Response type '${h}' is not supported`, je.ERR_NOT_SUPPORT, C); 2954 }); 2955 }); 2956 const p = async (h) => { 2957 if (h == null) return 0; 2958 if (ee.isBlob(h)) return h.size; 2959 if (ee.isSpecCompliantForm(h)) return (await new n(Dt.origin, { 2960 method: "POST", 2961 body: h 2962 }).arrayBuffer()).byteLength; 2963 if (ee.isArrayBufferView(h) || ee.isArrayBuffer(h)) return h.byteLength; 2964 if (ee.isURLSearchParams(h) && (h = h + ""), ee.isString(h)) return (await l(h)).byteLength; 2965 }, b = async (h, _) => ee.toFiniteNumber(h.getContentLength()) ?? p(_); 2966 return async (h) => { 2967 let { url: _, method: C, data: D, signal: N, cancelToken: v, timeout: y, onDownloadProgress: E, onUploadProgress: k, responseType: A, headers: L, withCredentials: w = "same-origin", fetchOptions: z } = jf(h), T = t || fetch; 2968 A = A ? (A + "").toLowerCase() : "text"; 2969 let P = U_([ 2970 N, 2971 v && v.toAbortSignal() 2972 ], y), G = null; 2973 const X = P && P.unsubscribe && (() => { 2974 P.unsubscribe(); 2975 }); 2976 let Y; 2977 try { 2978 if (k && u && C !== "get" && C !== "head" && (Y = await b(L, D)) !== 0) { 2979 let oe = new n(_, { 2980 method: "POST", 2981 body: D, 2982 duplex: "half" 2983 }), ce; 2984 if (ee.isFormData(D) && (ce = oe.headers.get("content-type")) && L.setContentType(ce), oe.body) { 2985 const [be, ye] = Ku(Y, Ya(Xu(k))); 2986 D = Qu(oe.body, Zu, be, ye); 2987 } 2988 } 2989 ee.isString(w) || (w = w ? "include" : "omit"); 2990 const q = r && "credentials" in n.prototype, J = { 2991 ...z, 2992 signal: P, 2993 method: C.toUpperCase(), 2994 headers: L.normalize().toJSON(), 2995 body: D, 2996 duplex: "half", 2997 credentials: q ? w : void 0 2998 }; 2999 G = r && new n(_, J); 3000 let Z = await (r ? T(G, z) : T(_, J)); 3001 const se = c && (A === "stream" || A === "response"); 3002 if (c && (E || se && X)) { 3003 const oe = {}; 3004 [ 3005 "status", 3006 "statusText", 3007 "headers" 3008 ].forEach((ke) => { 3009 oe[ke] = Z[ke]; 3010 }); 3011 const ce = ee.toFiniteNumber(Z.headers.get("content-length")), [be, ye] = E && Ku(ce, Ya(Xu(E), true)) || []; 3012 Z = new i(Qu(Z.body, Zu, be, () => { 3013 ye && ye(), X && X(); 3014 }), oe); 3015 } 3016 A = A || "text"; 3017 let Q = await d[ee.findKey(d, A) || "text"](Z, h); 3018 return !se && X && X(), await new Promise((oe, ce) => { 3019 Vf(oe, ce, { 3020 data: Q, 3021 headers: En.from(Z.headers), 3022 status: Z.status, 3023 statusText: Z.statusText, 3024 config: h, 3025 request: G 3026 }); 3027 }); 3028 } catch (q) { 3029 throw X && X(), q && q.name === "TypeError" && /Load failed|fetch/i.test(q.message) ? Object.assign(new je("Network Error", je.ERR_NETWORK, h, G, q && q.response), { 3030 cause: q.cause || q 3031 }) : je.from(q, q && q.code, h, G, q && q.response); 3032 } 3033 }; 3034 }, G_ = /* @__PURE__ */ new Map(), zf = (e) => { 3035 let t = e && e.env || {}; 3036 const { fetch: n, Request: i, Response: a } = t, r = [ 3037 i, 3038 a, 3039 n 3040 ]; 3041 let s = r.length, o = s, l, u, c = G_; 3042 for (; o--; ) l = r[o], u = c.get(l), u === void 0 && c.set(l, u = o ? /* @__P
3042URE__ */ new Map() : W_(t)), c = u; 3043 return u; 3044 }; 3045 zf(); 3046 const zl = { 3047 http: i_, 3048 xhr: M_, 3049 fetch: { 3050 get: zf 3051 } 3052 }; 3053 ee.forEach(zl, (e, t) => { 3054 if (e) { 3055 try { 3056 Object.defineProperty(e, "name", { 3057 value: t 3058 }); 3059 } catch { 3060 } 3061 Object.defineProperty(e, "adapterName", { 3062 value: t 3063 }); 3064 } 3065 }); 3066 const rc = (e) => `- ${e}`, q_ = (e) => ee.isFunction(e) || e === null || e === false; 3067 function Y_(e, t) { 3068 e = ee.isArray(e) ? e : [ 3069 e 3070 ]; 3071 const { length: n } = e; 3072 let i, a; 3073 const r = {}; 3074 for (let s = 0; s < n; s++) { 3075 i = e[s]; 3076 let o; 3077 if (a = i, !q_(i) && (a = zl[(o = String(i)).toLowerCase()], a === void 0)) throw new je(`Unknown adapter '${o}'`); 3078 if (a && (ee.isFunction(a) || (a = a.get(t)))) break; 3079 r[o || "#" + s] = a; 3080 } 3081 if (!a) { 3082 const s = Object.entries(r).map(([l, u]) => `adapter ${l} ` + (u === false ? "is not supported by the environment" : "is not available in the build")); 3083 let o = n ? s.length > 1 ? `since : 3084` + s.map(rc).join(` 3085`) : " " + rc(s[0]) : "as no adapter specified"; 3086 throw new je("There is no suitable adapter to dispatch the request " + o, "ERR_NOT_SUPPORT"); 3087 } 3088 return a; 3089 } 3090 const Wf = { 3091 getAdapter: Y_, 3092 adapters: zl 3093 }; 3094 function io(e) { 3095 if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new ya(null, e); 3096 } 3097 function ic(e) { 3098 return io(e), e.headers = En.from(e.headers), e.data = ro.call(e, e.transformRequest), [ 3099 "post", 3100 "put", 3101 "patch" 3102 ].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", false), Wf.getAdapter(e.adapter || jl.adapter, e)(e).then(function(t) { 3103 return io(e), t.data = ro.call(e, e.transformResponse, t), t.headers = En.from(t.headers), t; 3104 }, function(t) { 3105 return Uf(t) || (io(e), t && t.response && (t.response.data = ro.call(e, e.transformResponse, t.response), t.response.headers = En.from(t.response.headers))), Promise.reject(t); 3106 }); 3107 } 3108 const Gf = "1.15.0", As = {}; 3109 [ 3110 "object", 3111 "boolean", 3112 "number", 3113 "function", 3114 "string", 3115 "symbol" 3116 ].forEach((e, t) => { 3117 As[e] = function(n) { 3118 return typeof n === e || "a" + (t < 1 ? "n " : " ") + e; 3119 }; 3120 }); 3121 const ac = {}; 3122 As.transitional = function(e, t, n) { 3123 function i(a, r) { 3124 return "[Axios v" + Gf + "] Transitional option '" + a + "'" + r + (n ? ". " + n : ""); 3125 } 3126 return (a, r, s) => { 3127 if (e === false) throw new je(i(r, " has been removed" + (t ? " in " + t : "")), je.ERR_DEPRECATED); 3128 return t && !ac[r] && (ac[r] = true, console.warn(i(r, " has been deprecated since v" + t + " and will be removed in the near future"))), e ? e(a, r, s) : true; 3129 }; 3130 }; 3131 As.spelling = function(e) { 3132 return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), true); 3133 }; 3134 function K_(e, t, n) { 3135 if (typeof e != "object") throw new je("options must be an object", je.ERR_BAD_OPTION_VALUE); 3136 const i = Object.keys(e); 3137 let a = i.length; 3138 for (; a-- > 0; ) { 3139 const r = i[a], s = t[r]; 3140 if (s) { 3141 const o = e[r], l = o === void 0 || s(o, r, e); 3142 if (l !== true) throw new je("option " + r + " must be " + l, je.ERR_BAD_OPTION_VALUE); 3143 continue; 3144 } 3145 if (n !== true) throw new je("Unknown option " + r, je.ERR_BAD_OPTION); 3146 } 3147 } 3148 const Pa = { 3149 assertOptions: K_, 3150 validators: As 3151 }, an = Pa.validators; 3152 class Ka { 3153 constructor(t) { 3154 this.defaults = t || {}, this.interceptors = { 3155 request: new qu(), 3156 response: new qu() 3157 }; 3158 } 3159 async request(t, n) { 3160 try { 3161 return await this._request(t, n); 3162 } catch (i) { 3163 if (i instanceof Error) { 3164 let a = {}; 3165 Error.captureStackTrace ? Error.captureStackTrace(a) : a = new Error(); 3166 const r = (() => { 3167 if (!a.stack) return ""; 3168 const s = a.stack.indexOf(` 3169`); 3170 return s === -1 ? "" : a.stack.slice(s + 1); 3171 })(); 3172 try { 3173 if (!i.stack) i.stack = r; 3174 else if (r) { 3175 const s = r.indexOf(` 3176`), o = s === -1 ? -1 : r.indexOf(` 3177`, s + 1), l = o === -1 ? "" : r.slice(o + 1); 3178 String(i.stack).endsWith(l) || (i.stack += ` 3179` + r); 3180 } 3181 } catch { 3182 } 3183 } 3184 throw i; 3185 } 3186 } 3187 _request(t, n) { 3188 typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Mr(this.defaults, n); 3189 const { transitional: i, paramsSerializer: a, headers: r } = n; 3190 i !== void 0 && Pa.assertOptions(i, { 3191 silentJSONParsing: an.transitional(an.boolean), 3192 forcedJSONParsing: an.transitional(an.boolean), 3193 clarifyTimeoutError: an.transitional(an.boolean), 3194 legacyInterceptorReqResOrdering: an.transitional(an.boolean) 3195 }, false), a != null && (ee.isFunction(a) ? n.paramsSerializer = { 3196 serialize: a 3197 } : Pa.assertOptions(a, { 3198 encode: an.function, 3199 serialize: an.function 3200 }, true)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = true), Pa.assertOptions(n, {
vendor: 4,391 bytes, lines 3201-3373
3201 baseUrl: an.spelling("baseURL"), 3202 withXsrfToken: an.spelling("withXSRFToken") 3203 }, true), n.method = (n.method || this.defaults.method || "get").toLowerCase(); 3204 let s = r && ee.merge(r.common, r[n.method]); 3205 r && ee.forEach([ 3206 "delete", 3207 "get", 3208 "head", 3209 "post", 3210 "put", 3211 "patch", 3212 "common" 3213 ], (h) => { 3214 delete r[h]; 3215 }), n.headers = En.concat(s, r); 3216 const o = []; 3217 let l = true; 3218 this.interceptors.request.forEach(function(h) { 3219 if (typeof h.runWhen == "function" && h.runWhen(n) === false) return; 3220 l = l && h.synchronous; 3221 const _ = n.transitional || Ul; 3222 _ && _.legacyInterceptorReqResOrdering ? o.unshift(h.fulfilled, h.rejected) : o.push(h.fulfilled, h.rejected); 3223 }); 3224 const u = []; 3225 this.interceptors.response.forEach(function(h) { 3226 u.push(h.fulfilled, h.rejected); 3227 }); 3228 let c, d = 0, p; 3229 if (!l) { 3230 const h = [ 3231 ic.bind(this), 3232 void 0 3233 ]; 3234 for (h.unshift(...o), h.push(...u), p = h.length, c = Promise.resolve(n); d < p; ) c = c.then(h[d++], h[d++]); 3235 return c; 3236 } 3237 p = o.length; 3238 let b = n; 3239 for (; d < p; ) { 3240 const h = o[d++], _ = o[d++]; 3241 try { 3242 b = h(b); 3243 } catch (C) { 3244 _.call(this, C); 3245 break; 3246 } 3247 } 3248 try { 3249 c = ic.call(this, b); 3250 } catch (h) { 3251 return Promise.reject(h); 3252 } 3253 for (d = 0, p = u.length; d < p; ) c = c.then(u[d++], u[d++]); 3254 return c; 3255 } 3256 getUri(t) { 3257 t = Mr(this.defaults, t); 3258 const n = Hf(t.baseURL, t.url, t.allowAbsoluteUrls); 3259 return Bf(n, t.params, t.paramsSerializer); 3260 } 3261 } 3262 ee.forEach([ 3263 "delete", 3264 "get", 3265 "head", 3266 "options" 3267 ], function(e) { 3268 Ka.prototype[e] = function(t, n) { 3269 return this.request(Mr(n || {}, { 3270 method: e, 3271 url: t, 3272 data: (n || {}).data 3273 })); 3274 }; 3275 }); 3276 ee.forEach([ 3277 "post", 3278 "put", 3279 "patch" 3280 ], function(e) { 3281 function t(n) { 3282 return function(i, a, r) { 3283 return this.request(Mr(r || {}, { 3284 method: e, 3285 headers: n ? { 3286 "Content-Type": "multipart/form-data" 3287 } : {}, 3288 url: i, 3289 data: a 3290 })); 3291 }; 3292 } 3293 Ka.prototype[e] = t(), Ka.prototype[e + "Form"] = t(true); 3294 }); 3295 const Ba = Ka; 3296 class Wl { 3297 constructor(t) { 3298 if (typeof t != "function") throw new TypeError("executor must be a function."); 3299 let n; 3300 this.promise = new Promise(function(a) { 3301 n = a; 3302 }); 3303 const i = this; 3304 this.promise.then((a) => { 3305 if (!i._listeners) return; 3306 let r = i._listeners.length; 3307 for (; r-- > 0; ) i._listeners[r](a); 3308 i._listeners = null; 3309 }), this.promise.then = (a) => { 3310 let r; 3311 const s = new Promise((o) => { 3312 i.subscribe(o), r = o; 3313 }).then(a); 3314 return s.cancel = function() { 3315 i.unsubscribe(r); 3316 }, s; 3317 }, t(function(a, r, s) { 3318 i.reason || (i.reason = new ya(a, r, s), n(i.reason)); 3319 }); 3320 } 3321 throwIfRequested() { 3322 if (this.reason) throw this.reason; 3323 } 3324 subscribe(t) { 3325 if (this.reason) { 3326 t(this.reason); 3327 return; 3328 } 3329 this._listeners ? this._listeners.push(t) : this._listeners = [ 3330 t 3331 ]; 3332 } 3333 unsubscribe(t) { 3334 if (!this._listeners) return; 3335 const n = this._listeners.indexOf(t); 3336 n !== -1 && this._listeners.splice(n, 1); 3337 } 3338 toAbortSignal() { 3339 const t = new AbortController(), n = (i) => { 3340 t.abort(i); 3341 }; 3342 return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal; 3343 } 3344 static source() { 3345 let t; 3346 return { 3347 token: new Wl(function(n) { 3348 t = n; 3349 }), 3350 cancel: t 3351 }; 3352 } 3353 } 3354 const X_ = Wl; 3355 function J_(e) { 3356 return function(t) { 3357 return e.apply(null, t); 3358 }; 3359 } 3360 function Q_(e) { 3361 return ee.isObject(e) && e.isAxiosError === true; 3362 } 3363 const Bo = { 3364 Continue: 100, 3365 SwitchingProtocols: 101, 3366 Processing: 102, 3367 EarlyHints: 103, 3368 Ok: 200, 3369 Created: 201, 3370 Accepted: 202, 3371 NonAuthoritativeInformation: 203, 3372 NoContent: 204, 3373 ResetContent: 205,
3374 PartialContent: 206, 3375 MultiStatus: 207, 3376 AlreadyReported: 208, 3377 ImUsed: 226, 3378 MultipleChoices: 300, 3379 MovedPermanently: 301, 3380 Found: 302, 3381 SeeOther: 303, 3382 NotModified: 304, 3383 UseProxy: 305, 3384 Unused: 306, 3385 TemporaryRedirect: 307, 3386 PermanentRedirect: 308, 3387 BadRequest: 400, 3388 Unauthorized: 401, 3389 PaymentRequired: 402, 3390 Forbidden: 403, 3391 NotFound: 404, 3392 MethodNotAllowed: 405, 3393 NotAcceptable: 406, 3394 ProxyAuthenticationRequired: 407, 3395 RequestTimeout: 408, 3396 Conflict: 409, 3397 Gone: 410, 3398 LengthRequired: 411, 3399 PreconditionFailed: 412, 3400 PayloadTooLarge: 413, 3401 UriTooLong: 414, 3402 UnsupportedMediaType: 415, 3403 RangeNotSatisfiable: 416, 3404 ExpectationFailed: 417, 3405 ImATeapot: 418, 3406 MisdirectedRequest: 421, 3407 UnprocessableEntity: 422, 3408 Locked: 423, 3409 FailedDependency: 424, 3410 TooEarly: 425, 3411 UpgradeRequired: 426, 3412 PreconditionRequired: 428, 3413 TooManyRequests: 429, 3414 RequestHeaderFieldsTooLarge: 431, 3415 UnavailableForLegalReasons: 451, 3416 InternalServerError: 500, 3417 NotImplemented: 501, 3418 BadGateway: 502, 3419 ServiceUnavailable: 503, 3420 GatewayTimeout: 504, 3421 HttpVersionNotSupported: 505, 3422 VariantAlsoNegotiates: 506, 3423 InsufficientStorage: 507, 3424 LoopDetected: 508, 3425 NotExtended: 510, 3426 NetworkAuthenticationRequired: 511, 3427 WebServerIsDown: 521, 3428 ConnectionTimedOut: 522, 3429 OriginIsUnreachable: 523, 3430 TimeoutOccurred: 524, 3431 SslHandshakeFailed: 525, 3432 InvalidSslCertificate: 526 3433 }; 3434 Object.entries(Bo).forEach(([e, t]) => { 3435 Bo[t] = e; 3436 }); 3437 const Z_ = Bo; 3438 function qf(e) { 3439 const t = new Ba(e), n = Lf(Ba.prototype.request, t); 3440 return ee.extend(n, Ba.prototype, t, { 3441 allOwnKeys: true 3442 }), ee.extend(n, t, null, { 3443 allOwnKeys: true 3444 }), n.create = function(i) { 3445 return qf(Mr(e, i)); 3446 }, n; 3447 } 3448 const yt = qf(jl); 3449 yt.Axios = Ba; 3450 yt.CanceledError = ya; 3451 yt.CancelToken = X_; 3452 yt.isCancel = Uf; 3453 yt.VERSION = Gf; 3454 yt.toFormData = ks; 3455 yt.AxiosError = je; 3456 yt.Cancel = yt.CanceledError; 3457 yt.all = function(e) { 3458 return Promise.all(e); 3459 }; 3460 yt.spread = J_; 3461 yt.isAxiosError = Q_; 3462 yt.mergeConfig = Mr; 3463 yt.AxiosHeaders = En; 3464 yt.formToJSON = (e) => Mf(ee.isHTMLForm(e) ? new FormData(e) : e); 3465 yt.getAdapter = Wf.getAdapter; 3466 yt.HttpStatusCode = Z_; 3467 yt.default = yt; 3468 const Ci = yt, eE = [ 3469 "B", 3470 "kB", 3471 "MB", 3472 "GB", 3473 "TB", 3474 "PB", 3475 "EB", 3476 "ZB", 3477 "YB" 3478 ], tE = [ 3479 "B", 3480 "KiB", 3481 "MiB", 3482 "GiB", 3483 "TiB", 3484 "PiB", 3485 "EiB", 3486 "ZiB", 3487 "YiB" 3488 ], nE = [ 3489 "b", 3490 "kbit", 3491 "Mbit", 3492 "Gbit", 3493 "Tbit", 3494 "Pbit", 3495 "Ebit", 3496 "Zbit", 3497 "Ybit" 3498 ], rE = [ 3499 "b", 3500 "kibit", 3501 "Mibit", 3502 "Gibit", 3503 "Tibit", 3504 "Pibit", 3505 "Eibit", 3506 "Zibit", 3507 "Yibit" 3508 ], sc = (e, t, n) => { 3509 let i = e; 3510 return typeof t == "string" || Array.isArray(t) ? i = e.toLocaleString(t, n) : (t === true || n !== void 0) && (i = e.toLocaleString(void 0, n)), i; 3511 }; 3512 function oc(e, t) { 3513 if (!Number.isFinite(e)) throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`); 3514 t = { 3515 bits: false, 3516 binary: false, 3517 space: true, 3518 ...t 3519 }; 3520 const n = t.bits ? t.binary ? rE : nE : t.binary ? tE : eE, i = t.space ? " " : ""; 3521 if (t.signed && e === 0) return ` 0${i}${n[0]}`; 3522 const a = e < 0, r = a ? "-" : t.signed ? "+" : ""; 3523 a && (e = -e); 3524 let s; 3525 if (t.minimumFractionDigits !== void 0 && (s = { 3526 minimumFractionDigits: t.minimumFractionDigits 3527 }), t.maximumFractionDigits !== void 0 && (s = { 3528 maximumFractionDigits: t.maximumFractionDigits, 3529 ...s 3530 }), e < 1) { 3531 const c = sc(e, t.locale, s); 3532 return r + c + i + n[0]; 3533 } 3534 const o = Math.min(Math.floor(t.binary ? Math.log(e) / Math.log(1024) : Math.log10(e) / 3), n.length - 1); 3535 e /= (t.binary ? 1024 : 1e3) ** o, s || (e = e.toPrecision(3)); 3536 const l = sc(Number(e), t.locale, s), u = n[o]; 3537 return r + l + i + u; 3538 } 3539 const iE = (e) => { 3540 try { 3541 return new window.URL(e), true; 3542 } catch { 3543 return false;
3544 } 3545 }, Yf = (e, t) => { 3546 try { 3547 return Gl(e, t).href; 3548 } catch (n) { 3549 console.error(n); 3550 try { 3551 return aE(e).href; 3552 } catch (i) { 3553 return console.error(i), console.error("Unable to getAbsoluteUrl"), e; 3554 } 3555 } 3556 }, Gl = (e, t) => { 3557 if (!iE(e)) { 3558 t = t && t.length ? t : window.location; 3559 const n = new window.URL(Xi(t)).origin; 3560 return new window.URL(e, n); 3561 } 3562 return new window.URL(e); 3563 }, aE = (e) => { 3564 const t = document.createElement("a"); 3565 return t.href = e, t; 3566 }, Xi = (e) => { 3567 try { 3568 const t = Gl(e); 3569 return t.origin + t.pathname; 3570 } catch { 3571 return e; 3572 } 3573 }, sE = (e) => { 3574 const t = new window.URL(Xi(e)).origin; 3575 let n = new window.URL(Xi(e)).pathname; 3576 return n = Mo(n), t + n; 3577 }; 3578 function Mo(e) { 3579 return [ 3580 ".html", 3581 ".php", 3582 ".asp" 3583 ].forEach((t) => { 3584 e.includes(t) && (e = e.replace(t, "")); 3585 }), e; 3586 } 3587 const oE = (e, t) => { 3588 const n = sE(Xi(e)); 3589 return !!(t && t.includes(n)); 3590 }, lc = (e) => { 3591 e = new URL(e); 3592 const t = e.origin; 3593 let n = e.pathname.split("."); 3594 return new URL(n, t).href; 3595 }, lE = (e, t) => { 3596 if (!e || !t) return 0; 3597 const n = new URL(e), i = new URL(t); 3598 if (n.hostname !== i.hostname) return 0; 3599 const a = Mo(n.pathname).split("/").filter((o) => o && o.length), r = Mo(i.pathname).split("/").filter((o) => o && o.length); 3600 let s = 0; 3601 for (let o = 0; o < a.length && o < r.length; o++) { 3602 if (a[o] != r[o]) return s; 3603 s++; 3604 } 3605 return s; 3606 }, Kf = (e) => (e = e.toString(), e = e.replace("tel:", ""), e = e.replace(/\+|-|\(|\)|\s/g, ""), e.startsWith("tel:") || (e = `tel:${e}`), e), Xf = (e) => (e = e.toString(), e = e.replace("mailto:", ""), e.includes("mailto:") || (e = `mailto:${e}`), e.replace(" ", "")), Ji = (e = "") => { 3607 const t = "default"; 3608 let n = null; 3609 return window ? (Object.entries({ 3610 hash: "#", 3611 mail: "mailto:", 3612 tel: "tel:", 3613 [t]: "/" 3614 }
3614).forEach(([i, a]) => { 3615 e.indexOf("//") !== 0 && e.indexOf(a) === 0 && (n = i); 3616 }), n || (e.split("?")[0].includes("#") && e.replace(/\/$/, "").startsWith(window.location.href.replace(/\/$/, "")) ? "hash" : (!n && !Xi(e).includes(window.location.origin) && (n = "external"), n || t))) : t; 3617 }, uE = (e) => { 3618 try { 3619 return e.split(/#|\?/)[0].split(".").pop().trim(); 3620 } catch { 3621 return null; 3622 } 3623 }; 3624 function cE(e) { 3625 return new Promise((t, n) => { 3626 try { 3627 Ci.head(e).then((i) => { 3628 const a = i.headers["content-length"], r = i.headers["content-type"]; 3629 t({ 3630 rawSize: parseInt(a, 10), 3631 type: r 3632 }); 3633 }, (i) => { 3634 n(i); 3635 }); 3636 } catch (i) { 3637 n(i); 3638 } 3639 }); 3640 } 3641 function dE(e, t = null, n = "en") { 3642 const i = String(e).trim(), a = /^(\d+(?:\.\d+)?)(?:\s*)?(b|kb|mb|gb|tb)?$/i, r = i.match(a); 3643 if (!r) return i; 3644 const [, s, o] = r, l = Number(s).toLocaleString(n, { 3645 useGrouping: false 3646 }); 3647 if (!o) return l; 3648 const u = o.toUpperCase(), c = t ? t(`fileSizes.${u}`) : u; 3649 return `${l} ${c}`; 3650 } 3651 function Ss(e, t = "en", n = null) { 3652 if (typeof e == "number") { 3653 if (n) { 3654 const i = oc(e, { 3655 locale: t 3656 }), [a, r] = i.split(" "), s = r.toUpperCase(); 3657 return `${a} ${n(`fileSizes.${s}`)}`; 3658 } 3659 return oc(e, { 3660 locale: t 3661 }); 3662 } 3663 return typeof e == "string" ? dE(e, n) : e; 3664 } 3665 function pE(e, t) { 3666 return new Promise((n, i) => { 3667 try { 3668 cE(e).then((a) => { 3669 n({ 3670 path: e, 3671 url: Gl(e).href, 3672 ext: uE(e), 3673 rawSize: a.rawSize, 3674 size: Ss(a.rawSize, t), 3675 type: a.type 3676 }); 3677 }, (a) => i(a)); 3678 } catch (a) { 3679 i(a); 3680 } 3681 }); 3682 } 3683 function fE(e, t, n, i) { 3684 function a(r) { 3685 return r instanceof n ? r : new n(function(s) { 3686 s(r); 3687 }); 3688 } 3689 return new (n || (n = Promise))(function(r, s) { 3690 function o(c) { 3691 try { 3692 u(i.next(c)); 3693 } catch (d) { 3694 s(d); 3695 } 3696 } 3697 function l(c) { 3698 try { 3699 u(i.throw(c)); 3700 } catch (d) { 3701 s(d); 3702 } 3703 } 3704 function u(c) { 3705 c.done ? r(c.value) : a(c.value).then(o, l); 3706 } 3707 u((i = i.apply(e, [])).next()); 3708 }); 3709 } 3710 function mE(e) { 3711 return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; 3712 } 3713 var hE = function e(t, n) { 3714 if (t === n) return true; 3715 if (t && n && typeof t == "object" && typeof n == "object") { 3716 if (t.constructor !== n.constructor) return false; 3717 var i, a, r; 3718 if (Array.isArray(t)) { 3719 if (i = t.length, i != n.length) return false; 3720 for (a = i; a-- !== 0; ) if (!e(t[a], n[a])) return false; 3721 return true; 3722 } 3723 if (t.constructor === RegExp) return t.source === n.source && t.flags === n.flags; 3724 if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === n.valueOf(); 3725 if (t.toString !== Object.prototype.toString) return t.toString() === n.toString(); 3726 if (r = Object.keys(t), i = r.length, i !== Object.keys(n).length) return false; 3727 for (a = i; a-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(n, r[a])) return false; 3728 for (a = i; a-- !== 0; ) { 3729 var s = r[a]; 3730 if (!e(t[s], n[s])) return false; 3731 } 3732 return true; 3733 } 3734 return t !== t && n !== n; 3735 }, gE = mE(hE); 3736 const uc = "__googleMapsScriptId"; 3737 var Zr; 3738 (function(e) { 3739 e[e.INITIALIZED = 0] = "INITIALIZED", e[e.LOADING = 1] = "LOADING", e[e.SUCCESS = 2] = "SUCCESS", e[e.FAILURE = 3] = "FAILURE"; 3740 })(Zr || (Zr = {})); 3741 let bE = class Kr { 3742 constructor({ apiKey: t, authReferrerPolicy: n, channel: i, client: a, id: r = uc, language: s, libraries: o = [], mapIds: l, nonce: u, region: c, retries: d = 3, url: p = "https://maps.googleapis.com/maps/api/js", version: b }) { 3743 if (this.callbacks = [], this.done = false, this.loading = false, this.errors = [], this.apiKey = t, this.authReferrerPolicy = n, this.channel = i, this.client = a, this.id = r || uc, this.language = s, this.libraries = o, this.mapIds = l, this.nonce = u, this.region = c, this.retries = d, this.url = p, this.version = b, Kr.
vendor: 2,531 bytes, lines 3743-3811
3743instance) { 3744 if (!gE(this.options, Kr.instance.options)) throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Kr.instance.options)}`); 3745 return Kr.instance; 3746 } 3747 Kr.instance = this; 3748 } 3749 get options() { 3750 return { 3751 version: this.version, 3752 apiKey: this.apiKey, 3753 channel: this.channel, 3754 client: this.client, 3755 id: this.id, 3756 libraries: this.libraries, 3757 language: this.language, 3758 region: this.region, 3759 mapIds: this.mapIds, 3760 nonce: this.nonce, 3761 url: this.url, 3762 authReferrerPolicy: this.authReferrerPolicy 3763 }; 3764 } 3765 get status() { 3766 return this.errors.length ? Zr.FAILURE : this.done ? Zr.SUCCESS : this.loading ? Zr.LOADING : Zr.INITIALIZED; 3767 } 3768 get failed() { 3769 return this.done && !this.loading && this.errors.length >= this.retries + 1; 3770 } 3771 createUrl() { 3772 let t = this.url; 3773 return t += "?callback=__googleMapsCallback&loading=async", this.apiKey && (t += `&key=${this.apiKey}`), this.channel && (t += `&channel=${this.channel}`), this.client && (t += `&client=${this.client}`), this.libraries.length > 0 && (t += `&libraries=${this.libraries.join(",")}`), this.language && (t += `&language=${this.language}`), this.region && (t += `®ion=${this.region}`), this.version && (t += `&v=${this.version}`), this.mapIds && (t += `&map_ids=${this.mapIds.join(",")}`), this.authReferrerPolicy && (t += `&auth_referrer_policy=${this.authReferrerPolicy}`), t; 3774 } 3775 deleteScript() { 3776 const t = document.getElementById(this.id); 3777 t && t.remove(); 3778 } 3779 load() { 3780 return this.loadPromise(); 3781 } 3782 loadPromise() { 3783 return new Promise((t, n) => { 3784 this.loadCallback((i) => { 3785 i ? n(i.error) : t(window.google); 3786 }); 3787 }); 3788 } 3789 importLibrary(t) { 3790 return this.execute(), google.maps.importLibrary(t); 3791 } 3792 loadCallback(t) { 3793 this.callbacks.push(t), this.execute(); 3794 } 3795 setScript() { 3796 var t, n; 3797 if (document.getElementById(this.id)) { 3798 this.callback(); 3799 return; 3800 } 3801 const i = { 3802 key: this.apiKey, 3803 channel: this.channel, 3804 client: this.client, 3805 libraries: this.libraries.length && this.libraries, 3806 v: this.version, 3807 mapIds: this.mapIds, 3808 language: this.language, 3809 region: this.region, 3810 authReferrerPolicy: this.authReferrerPolicy 3811 };
3812 Object.keys(i).forEach((r) => !i[r] && delete i[r]), !((n = (t = window == null ? void 0 : window.google) === null || t === void 0 ? void 0 : t.maps) === null || n === void 0) && n.importLibrary || ((r) => { 3813 let s, o, l, u = "The Google Maps JavaScript API", c = "google", d = "importLibrary", p = "__ib__", b = document, h = window; 3814 h = h[c] || (h[c] = {}); 3815 const _ = h.maps || (h.maps = {}), C = /* @__PURE__ */ new Set(), D = new URLSearchParams(), N = () => s || (s = new Promise((v, y) => fE(this, void 0, void 0, function* () { 3816 var E; 3817 yield o = b.createElement("script"), o.id = this.id, D.set("libraries", [ 3818 ...C 3819 ] + ""); 3820 for (l in r) D.set(l.replace(/[A-Z]/g, (k) => "_" + k[0].toLowerCase()), r[l]); 3821 D.set("callback", c + ".maps." + p), o.src = this.url + "?" + D, _[p] = v, o.onerror = () => s = y(Error(u + " could not load.")), o.nonce = this.nonce || ((E = b.querySelector("script[nonce]")) === null || E === void 0 ? void 0 : E.nonce) || "", b.head.append(o); 3822 }))); 3823 _[d] ? console.warn(u + " only loads once. Ignoring:", r) : _[d] = (v, ...y) => C.add(v) && N().then(() => _[d](v, ...y)); 3824 })(i); 3825 const a = this.libraries.map((r) => this.importLibrary(r)); 3826 a.length || a.push(this.importLibrary("core")), Promise.all(a).then(() => this.callback(), (r) => { 3827 const s = new ErrorEvent("error", { 3828 error: r 3829 }); 3830 this.loadErrorCallback(s); 3831 }); 3832 } 3833 reset() { 3834 this.deleteScript(), this.done = false, this.loading = false, this.errors = [], this.onerrorEvent = null; 3835 } 3836 resetIfRetryingFailed() { 3837 this.failed && this.reset(); 3838 } 3839 loadErrorCallback(t) { 3840 if (this.errors.push(t), this.errors.length <= this.retries) { 3841 const n = this.errors.length * Math.pow(2, this.errors.length); 3842 console.error(`Failed to load Google Maps script, retrying in ${n} ms.`), setTimeout(() => { 3843 this.deleteScript(), this.setScript(); 3844 }, n); 3845 } else this.onerrorEvent = t, this.callback(); 3846 } 3847 callback() { 3848 this.done = true, this.loading = false, this.callbacks.forEach((t) => { 3849 t(this.onerrorEvent); 3850 }), this.callbacks = []; 3851 } 3852 execute() { 3853 if (this.resetIfRetryingFailed(), this.done) this.callback(); 3854 else { 3855 if (window.google && window.google.maps && window.google.maps.version) { 3856 console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."), this.callback(); 3857 return; 3858 } 3859 this.loading || (this.loading = true, this.setScript()); 3860 } 3861 } 3862 }; 3863 const vE = vs, yE = "initNestMaps", _E = (e, t) => new bE({ 3864 apiKey: e, 3865 version: t, 3866 libraries: [ 3867 "places" 3868 ], 3869 callback: yE, 3870 region: "CA" 3871 }), EE = async (e = vE, t = "quarterly") => { 3872 try { 3873 if (globalThis.$nest && globalThis.$nest.mapsLoaded || globalThis.google && typeof globalThis.google == "object" && typeof globalThis.google.maps == "object" && typeof globalThis.google.maps.places == "object") return; 3874 await _E(e, t).importLibrary("maps"); 3875 } catch (n) { 3876 throw n.message = "LoadGoogleMaps load error:" + n.message, n; 3877 } 3878 }; 3879 new Promise(function(e) { 3880 try { 3881 const t = setInterval(function() { 3882 globalThis.google && typeof globalThis.google == "object" && typeof globalThis.google.maps == "object" && typeof globalThis.google.maps.places == "object" && (clearInterval(t), e()); 3883 }, 100); 3884 } catch (t) { 3885 console.error(t); 3886 } 3887 }); 3888 const cc = { 3889 mask: function(e) { 3890 const t = isNaN(e) ? 0 : Math.round(+e), n = String(t).length, i = /\d/; 3891 return Array(n).fill(i); 3892 }, 3893 name: "integer", 3894 guide: false 3895 }, kE = { 3896 mask: (e) => new Array(e.replace(/[^\d]/g, "").length).fill(/\d/), 3897 name: "numeric-only", 3898 guide: false 3899 }, dc = { 3900 en: /^(\d{1,3})[.]?(\d{1,2})?$/, 3901 fr: /^(\d{1,3})[.,]?(\d{1,2})?$/ 3902 }; 3903 function CE(e) { 3904 const t = e ? /[\d.,]/ : /[\d.]/; 3905 return () => [ 3906 /\d/, 3907 t, 3908 t, 3909 /\d/, 3910 /\d/ 3911 ]; 3912 } 3913 function AE(e) { 3914 const t = e ? dc.fr : dc.en; 3915 return (n = "") => { 3916 const i = (n.match(/\./g) || []).length, a = (n.match(/,/g) || []).length, r = i + a; 3917 if (r > 1 || !t.test(n) && n !== "") return false;
3918 const s = n.replace(",", "."), o = parseFloat(s); 3919 return r === 1 && !isNaN(o) && o === 100 ? false : !isNaN(o) && o > 100 ? n.slice(0, -1) : n; 3920 }; 3921 } 3922 function pc(e = "en") { 3923 const t = e.startsWith("fr"); 3924 return { 3925 mask: CE(t), 3926 pipe: AE(t), 3927 guide: false 3928 }; 3929 } 3930 const Jf = { 3931 integer: cc, 3932 numericOnly: kE, 3933 decimalPercentage: pc("en"), 3934 createDecimalPercentageMask: pc, 3935 wholePercentage: { 3936 ...cc, 3937 pipe: (e) => Number(e) <= 100 && Number(e) >= 0 ? e : false, 3938 name: "whole-percentage" 3939 }, 3940 alphaNumDashSlashSpace: { 3941 mask: function(e) { 3942 const t = /[a-zA-Z0-9-/ ]/; 3943 return new Array(e.length).fill(t); 3944 }, 3945 name: "alpha-numeric-dash-slash-space", 3946 guide: false 3947 }, 3948 alphaNumFRDashSlashSpace: { 3949 mask: function(e) { 3950 const t = /[a-zA-ZÀ-ÿ0-9-/ ]/; 3951 return new Array(e.length).fill(t); 3952 }, 3953 name: "alpha-numeric-fr-dash-slash-space", 3954 guide: false 3955 }, 3956 suiteNumber: { 3957 mask: function(e) { 3958 const t = /[a-zA-Z0-9/ ]/; 3959 return new Array(e.length).fill(t); 3960 }, 3961 name: "alpha-numeric-dash-slash", 3962 guide: false 3963 }, 3964 city: { 3965 mask: function(e) { 3966 const t = /[a-zA-ZÀ-ÿ-' ]/; 3967 return new Array(e.length).fill(t); 3968 }, 3969 name: "letters-only-fr-dash-apostrophe", 3970 guide: false 3971 }, 3972 zipCode: { 3973 mask: [ 3974 /\d/, 3975 /\d/, 3976 /\d/, 3977 /\d/, 3978 /\d/ 3979 ], 3980 name: "us-zip-code", 3981 guide: true 3982 }, 3983 sinNumber: { 3984 mask: (e) => { 3985 const t = e.replace(/[^\d]/g, "").replace(/[\d]+(?=\d{3})/, "******").split(""); 3986 return [ 3987 ...t.slice(0, 3), 3988 "-", 3989 ...t.slice(3, 6), 3990 "-", 3991 ...t.slice(6) 3992 ]; 3993 } 3994 }, 3995 sinInput: { 3996 mask: [ 3997 /\d/, 3998 /\d/, 3999 /\d/, 4000 "-", 4001 /\d/, 4002 /\d/, 4003 /\d/, 4004 "-", 4005 /\d/, 4006 /\d/, 4007 /\d/ 4008 ], 4009 guide: true 4010 }, 4011 postalCode: { 4012 mask: [ 4013 /\w/, 4014 /\d/, 4015 /\w/, 4016 " ", 4017 /\d/, 4018 /\w/, 4019 /\d/ 4020 ], 4021 preprocessor: (e) => e.toUpperCase() 4022 }, 4023 telephoneUSCAN: { 4024 mask: [ 4025 "(", 4026 /\d/, 4027 /\d/, 4028 /\d/, 4029 ")", 4030 " ", 4031 /\d/, 4032 /\d/, 4033 /\d/, 4034 "-", 4035 /\d/, 4036 /\d/, 4037 /\d/, 4038 /\d/ 4039 ] 4040 }, 4041 bankCode: { 4042 mask: [ 4043 /\d/, 4044 /\d/, 4045 /\d/ 4046 ], 4047 name: "bank-code", 4048 guide: false 4049 }, 4050 transitNumber: { 4051 mask: [ 4052 /\d/, 4053 /\d/, 4054 /\d/, 4055 /\d/, 4056 /\d/ 4057 ], 4058 name: "transit-number", 4059 guide: false 4060 }, 4061 accountNumber: { 4062 mask: [ 4063 /\d/, 4064 /\d/, 4065 /\d/, 4066 /\d/, 4067 /\d/, 4068 /\d/, 4069 /\d/, 4070 /\d/, 4071 /\d/, 4072 /\d/, 4073 /\d/, 4074 /\d/ 4075 ], 4076 name: "account-number", 4077 guide: false 4078 }, 4079 float: (e, t) => ({ 4080 mask: function(n) { 4081 let i = n.indexOf("."); 4082 const a = /[0-9]/, r = /[0-9.]/, s = /\./; 4083 if (i > -1) { 4084 let o = Math.min(i, e), l = new Array(o).fill(a); 4085 l.push(s); 4086 let u = new Array(t).fill(a); 4087 return l = l.concat(u), l; 4088 } 4089 return new Array(e).fill(r); 4090 }, 4091 name: "float", 4092 guide: false 4093 }) 4094 }, SE = (e, t = { 4095 precision: 2, 4096 fixed: false 4097 }, n = jr()) => { 4098 if ([ 4099 null, 4100 void 0 4101 ].includes(e)) return ""; 4102 const { precision: i, fixed: a } = t, r = { 4103 style: "percent", 4104 minimumFractionDigits: a ? i : 0,
4105 maximumFractionDigits: i 4106 }; 4107 return e.toLocaleString(n, r); 4108 }; 4109 function Ma(e) { 4110 return e ? Object.values(e).filter((t) => t !== void 0 || t !== null).length === 0 : true; 4111 } 4112 const fc = jr(), wE = (e, t) => { 4113 switch (t) { 4114 case "full-name": 4115 return ai[fc].provinces[e]; 4116 case "alpha-code": 4117 return e.toUpperCase(); 4118 case "abbreviation": 4119 return ai[fc].provincesAbbreviations[e]; 4120 default: 4121 return e; 4122 } 4123 }, LE = "https://www.google.com/recaptcha/enterprise.js", xE = (e, t = { 4124 attributes: {}, 4125 apiPath: LE 4126 }) => { 4127 if (globalThis === window && !window.$nest.reCaptchaLoaded) try { 4128 const n = document.createElement("script"), i = { 4129 src: `${t.apiPath}?render=${e}`, 4130 async: "", 4131 ...t.attributes 4132 }; 4133 for (const [a, r] of Object.entries(i)) n.setAttribute(a, r); 4134 document.head.appendChild(n), window.$nest || (window.$nest = {}), window.$nest.reCaptchaLoaded = true; 4135 } catch (n) { 4136 console.error(n); 4137 } 4138 }, Xa = (e, t, n = "strong") => { 4139 if (e && t) { 4140 const i = e.toLowerCase().indexOf(t.toLowerCase()); 4141 if (i > -1) return e.substring(0, i) + `<${n}>` + e.substring(i, i + t.length) + `</${n}>` + e.substring(i + t.length); 4142 } 4143 return e; 4144 }; 4145 function ql(e, { separator: t = " ", nullReturnValue: n = "" } = {}) { 4146 const i = e.flat(1 / 0).filter((a) => a != null && a !== ""); 4147 return i.length > 0 ? i.join(t) : n; 4148 } 4149 function OE(e, { allowEmpty: t } = {}) { 4150 if (!e) return t || false; 4151 const n = e.replace(/\D/g, ""); 4152 if (!n || n.length < 9 || n.length > 9 || n === "000000000") return false; 4153 const i = n.toString().split(""), a = parseInt(i.pop()), r = [], s = []; 4154 for (let l = 0; l < i.length; l++) (l + 1) % 2 === 0 ? r.push(parseInt(i[l])) : s.push(parseInt(i[l])); 4155 const o = r.map((l) => (l + l).toString().split("").map((u) => parseInt(u)).reduce((u, c) => u + c, 0)).reduce((l, u) => l + u, 0) + s.reduce((l, u) => l + u, 0); 4156 return Math.ceil(o / 10) * 10 - o === a; 4157 } 4158 function $E(e, t, n = { 4159 visibleOnly: true 4160 }) { 4161 const i = document.querySelectorAll(t); 4162 let a = null; 4163 for (const r of i.values()) if (!(r.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_PRECEDING)) (!n.visibleOnly || r.offsetHeight > 0) && (a = r); 4164 else break; 4165 return a; 4166 } 4167 function Ro(e) { 4168 if ("aria-labelledby" in e.attributes) { 4169 let a = ""; 4170 const r = e.attributes["aria-labelledby"].value; 4171 if (r.includes(" ")) r.split(" ").forEach((s) => { 4172 const o = document.querySelector(`#${s}`); 4173 a += " " + o.textContent.trim(); 4174 }); 4175 else { 4176 let s = document.querySelector(`#${r}`); 4177 s && (a = s.textContent.trim()); 4178 } 4179 return a.trim(); 4180 } 4181 if ("aria-label" in e.attributes) return e.attributes["aria-label"].value; 4182 const t = e.id, n = document.querySelector(`[for='${t}']`); 4183 if (n) return n.textContent.trim(); 4184 const i = e.closest("label"); 4185 return i ? i.textContent.trim() : e.tagName === "BUTTON" ? e.textContent.trim() : ""; 4186 } 4187 function Qf(e) { 4188 const t = e.attributes.role && e.attributes.role.value === "checkbox"; 4189 return e.type === "checkbox" || t; 4190 } 4191 function Ra(e) { 4192 const t = !!(e.attributes["aria-checked"] && e.attributes["aria-checked"].value); 4193 return e.checked || t; 4194 } 4195 function Zf(e) { 4196 const t = e.closest("fieldset"); 4197 if (t) { 4198 const n = t.querySelectorAll(`[name="${e.name}"]`); 4199 if (n.length > 1) return n; 4200 } 4201 return null; 4202 } 4203 function mc(e) { 4204 return !!Zf(e); 4205 } 4206 function TE(e, t = false) { 4207 if (Qf(e) && e.name) { 4208 const n = Zf(e); 4209 return n ? t ? Array.from(n).filter((i) => Ra(i)).map((i) => Ro(i)) : `${Ro(e)}:${Ra(e)}` : Ra(e); 4210 } 4211 } 4212 const Yl = (e) => e.dataset.nName || e.ariaLabel || e.textContent.trim(), IE = (e) => [ 4213 ...e.classList 4214 ].find((t) => t.startsWith("n-")) || `<${e.tagName.toLowerCase()}>`, FE = (e) => e.getAttribute("download") !== null ? "download" : Ji(e.href) || null, NE = (e) => { 4215 let t = "h1,h2,h3,h4,h5,h6"; 4216 const n = e.closest(t) || e.querySelector(t); 4217 if (n) { 4218 let a = Number(n.tagName.substr(1)) - 1; 4219 if (a < 1) return null; 4220 t = Array(a).fill().map((r, s) => `h${s + 1}`).join(","); 4221 } 4222 const i = $E(e, t); 4223 return i && Yl(i); 4224 }, DE = (e) => { 4225 if (e.dataset.nValue) return e.dataset.nValue; 4226 if (Qf(e)) { 4227 let t = TE(e); 4228 return Array.isArray(t) ? t.join(",") : t || Ra(e); 4229 } else return e.type && [ 4230 "password", 4231 "email" 4232 ].includes(e.type) ? null : e.tagName === "BUTTON" ? Yl(e) : e.tagName === "SELECT" ? e.options[e.selectedIndex].text : e.value; 4233 }, PE = (e) => { 4234 if (e && e.dataset && e.dataset.nDetail) try { 4235 return JSON.parse(e.dataset.nDetail); 4236 } catch { 4237 return console.error("invalid JSON in data-n-detail attribute on element:", e), {}; 4238 } 4239 if (!e.dataset.nDetail) return {}; 4240 }, BE = (e, t = {}) => { 4241 if (!e) return t; 4242 const n = PE(e), i = { 4243 ...t, 4244 ...n 4245 }, a = { 4246 component: i.component || IE(e), 4247 name: i.name || Yl(e) || null, 4248 section: i.section || NE(e) 4249 }; 4250 if (e.href && (a.href = e.href, a.linkType = FE(e)), [ 4251 "INPUT", 4252 "BUTTON", 4253 "SELECT" 4254 ].includes(e.tagName) && e.matches("[data-n-tool] *")) { 4255 const r = []; 4256 let s, o = e.closest("fieldset"); 4257 for (; o; ) { 4258 const u = o.querySelector("legend").textContent.trim(); 4259 s || (s = u), r.push(u), o = o.parentNode.closest("fieldset"); 4260 } 4261 r.length > 1 && r.reverse(); 4262 const l = Ro(e); 4263 l && (mc(e) || r.push(l), e.dataset.nName || (a.name = mc(e) && s ? s : l)), a.component = e.tagName.toLowerCase(), e.getAttribute("type") && e.getAttribute("type") !== "button" && (a.component += "-" + e.getAttribute("type")), a.control = i.control || r.join(":"), a.value = i.value || DE(e); 4264 } 4265 return { 4266 ...a, 4267 ...i 4268 }; 4269 }; 4270 function ME(e = {}, t = null) { 4271 const n = BE(t, e); 4272 return new CustomEvent("nestevent", { 4273 bubbles: true, 4274 composed: true, 4275 detail: n 4276 }); 4277 } 4278 function oi(e = {}, t = null) { 4279 const n = ME(e, t); 4280 t instanceof HTMLElement ? t.dispatchEvent(n) : document && document.body.dispatchEvent(n); 4281 } 4282 const Lt = { 4283 props: { 4284 nestEventsDisable: { 4285 type: Boolean, 4286 default: null 4287 } 4288 }, 4289 data() { 4290 return { 4291 EVENT_TYPES: Hi.EVENT_TYPES 4292 }; 4293 }, 4294 methods: { 4295 nestEvents_emit(e = this.EVENT_TYPES.CLICK, t = {}) { 4296 if (this.nestEventsDisable) { 4297 window.$nest && window.$nest.logNestEvents; 4298 return; 4299 } 4300 let n = this.$options.name || "anonymous"; 4301 Hi.emitEvent(n, e, { 4302 el: this.$el, 4303 textContent: this.$el.innerText || this.innerHTML || null, 4304 url: () => this.$props && this.$props.href ? this.$props.href : this.$attrs && this.$attrs.href ? this.$attrs.href : null, 4305 ...t 4306 }); 4307 } 4308 }, 4309 mounted() { 4310 this.nestEvents_emit(this.EVENT_TYPES.CREATE); 4311 }, 4312 updated() { 4313 this.nestEvents_emit(this.EVENT_TYPES.UPDATE); 4314 }, 4315 unmounted() { 4316 this.nestEvents_emit(this.EVENT_TYPES.DESTROY); 4317 } 4318 }, em = { 4319 props: { 4320 linkLabel: { 4321 type: String 4322 }, 4323 linkFormat: { 4324 type: String, 4325 validator(e) { 4326 return [ 4327 "primary", 4328 "secondary", 4329 "ghost" 4330 ].includes(e); 4331 } 4332 }, 4333 linkIcon: { 4334 type: String 4335 }, 4336 url: { 4337 type: String 4338 } 4339 }, 4340 computed: { 4341 linkElementType() { 4342 return this.linkFormat ? "NButton" : this.linkIcon ? "LinkIcon" : "NLink"; 4343 } 4344 } 4345 }, Ge = {}; 4346 function tm() { 4347 return crypto.randomUUID(); 4348 } 4349 function _a(e) { 4350 const t = tm(); 4351 return e && e.$options ? e.$options.name + "-" + t : `cmpnt-${t}`; 4352 } 4353 function nm(e) { 4354 var t, n, i, a, r, s, o; 4355 const l = tm(); 4356 let u = (n = (t = e == null ? void 0 : e.$parent) == null ? void 0 : t.$options) == null ? void 0 : n.name; 4357 if (!u) { 4358 const c = kt(); 4359 u = ((a = (i = c == null ? void 0 : c.parent) == null ? void 0 : i.type) == null ? void 0 : a.__name) || ((o = (s = (r = c == null ? void 0 : c.parent) == null ? void 0 : r.parent) == null ? void 0 : s.type) == null ? void 0 : o.__name) || ""; 4360 } 4361 return (u ? u + "-" : "") + e.$options.name + "-" + l; 4362 } 4363 const nt = { 4364 props: { 4365 id: { 4366 type: String, 4367 default: function() { 4368 return _a(); 4369 } 4370 } 4371 } 4372 }; 4373 function rm(e) { 4374 if (e instanceof Element) return e; 4375 if (e && e.$refs && e.$refs.focusTarget instanceof Element) return e.$refs.focusTarget; 4376 if (e && e.$el instanceof Element) return e.$el; 4377 console.warn("El must be an HTML Element or a Vue component."); 4378 } 4379 const tn = (e, t = "is-scrolled-into-view", n = { 4380 threshold: 0.5 4381 }) => { 4382 const i = (o) => { 4383 let l = o[0].target, u = l.classList.contains(t); 4384 o[0].isIntersecting && !u && l.classList.add(t); 4385 }, a = window.innerHeight / e.offsetHeight * 0.5, r = a < n.threshold ? a : n.threshold, s = { 4386 ...n, 4387 threshold: r 4388 }; 4389 new IntersectionObserver(i, s).observe(e); 4390 }; 4391 function hc(e) { 4392 return typeof e == "object" && e != null && e.nodeType === 1; 4393 } 4394 function gc(e, t) { 4395 return (!t || e !== "hidden") && e !== "visible" && e !== "clip"; 4396 } 4397 function ao(e, t) { 4398 if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) { 4399 var n = getComputedStyle(e, null); 4400 return gc(n.overflowY, t) || gc(n.overflowX, t) || function(i) { 4401 var a = function(r) { 4402 if (!r.ownerDocument || !r.ownerDocument.defaultView) return null; 4403 try { 4404 return r.ownerDocument.defaultView.frameElement; 4405 } catch { 4406 return null; 4407 } 4408 }(i); 4409 return !!a && (a.clientHeight < i.scrollHeight || a.clientWidth < i.scrollWidth); 4410 }(e); 4411 } 4412 return false;
4413 } 4414 function Sa(e, t, n, i, a, r, s, o) { 4415 return r < e && s > t || r > e && s < t ? 0 : r <= e && o <= n || s >= t && o >= n ? r - e - i : s > t && o < n || r < e && o > n ? s - t + a : 0; 4416 } 4417 var bc = function(e, t) { 4418 var n = window, i = t.scrollMode, a = t.block, r = t.inline, s = t.boundary, o = t.skipOverflowHiddenElements, l = typeof s == "function" ? s : function(B) { 4419 return B !== s; 4420 }; 4421 if (!hc(e)) throw new TypeError("Invalid target"); 4422 for (var u, c, d = document.scrollingElement || document.documentElement, p = [], b = e; hc(b) && l(b); ) { 4423 if ((b = (c = (u = b).parentElement) == null ? u.getRootNode().host || null : c) === d) { 4424 p.push(b); 4425 break; 4426 } 4427 b != null && b === document.body && ao(b) && !ao(document.documentElement) || b != null && ao(b, o) && p.push(b); 4428 } 4429 for (var h = n.visualViewport ? n.visualViewport.width : innerWidth, _ = n.visualViewport ? n.visualViewport.height : innerHeight, C = window.scrollX || pageXOffset, D = window.scrollY || pageYOffset, N = e.getBoundingClientRect(), v = N.height, y = N.width, E = N.top, k = N.right, A = N.bottom, L = N.left, w = a === "start" || a === "nearest" ? E : a === "end" ? A : E + v / 2, z = r === "center" ? L + y / 2 : r === "end" ? k : L, T = [], P = 0; P < p.length; P++) { 4430 var G = p[P], X = G.getBoundingClientRect(), Y = X.height, q = X.width, J = X.top, Z = X.right, se = X.bottom, Q = X.left; 4431 if (i === "if-needed" && E >= 0 && L >= 0 && A <= _ && k <= h && E >= J && A <= se && L >= Q && k <= Z) return T; 4432 var oe = getComputedStyle(G), ce = parseInt(oe.borderLeftWidth, 10), be = parseInt(oe.borderTopWidth, 10), ye = parseInt(oe.borderRightWidth, 10), ke = parseInt(oe.borderBottomWidth, 10), Ae = 0, _e = 0, Te = "offsetWidth" in G ? G.offsetWidth - G.clientWidth - ce - ye : 0, Ee = "offsetHeight" in G ? G.offsetHeight - G.clientHeight - be - ke : 0, Le = "offsetWidth" in G ? G.offsetWidth === 0 ? 0 : q / G.offsetWidth : 0, Be = "offsetHeight" in G ? G.offsetHeight === 0 ? 0 : Y / G.offsetHeight : 0; 4433 if (d === G) Ae = a === "start" ? w : a === "end" ? w - _ : a === "nearest" ? Sa(D, D + _, _, be, ke, D + w, D + w + v, v) : w - _ / 2, _e = r === "start" ? z : r === "center" ? z - h / 2 : r === "end" ? z - h : Sa(C, C + h, h, ce, ye, C + z, C + z + y, y), Ae = Math.max(0, Ae + D), _e = Math.max(0, _e + C); 4434 else { 4435 Ae = a === "start" ? w - J - be : a === "end" ? w - se + ke + Ee : a === "nearest" ? Sa(J, se, Y, be, ke + Ee, w, w + v, v) : w - (J + Y / 2) + Ee / 2, _e = r === "start" ? z - Q - ce : r === "center" ? z - (Q + q / 2) + Te / 2 : r === "end" ? z - Z + ye + Te : Sa(Q, Z, q, ce, ye + Te, z, z + y, y); 4436 var Ie = G.scrollLeft, Ve = G.scrollTop; 4437 w += Ve - (Ae = Math.max(0, Math.min(Ve + Ae / Be, G.scrollHeight - Y / Be + Ee))), z += Ie - (_e = Math.max(0, Math.min(Ie + _e / Le, G.scrollWidth - q / Le + Te))); 4438 } 4439 T.push({ 4440 el: G, 4441 top: Ae, 4442 left: _e 4443 }); 4444 } 4445 return T; 4446 }; 4447 function im(e) { 4448 return e === Object(e) && Object.keys(e).length !== 0; 4449 } 4450 function RE(e, t) { 4451 t === void 0 && (t = "auto"); 4452 var n = "scrollBehavior" in document.body.style; 4453 e.forEach(function(i) { 4454 var a = i.el, r = i.top, s = i.left; 4455 a.scroll && n ? a.scroll({ 4456 top: r, 4457 left: s, 4458 behavior: t 4459 }) : (a.scrollTop = r, a.scrollLeft = s); 4460 }); 4461 } 4462 function UE(e) { 4463 return e === false ? { 4464 block: "end", 4465 inline: "nearest" 4466 } : im(e) ? e : { 4467 block: "start", 4468 inline: "nearest" 4469 }; 4470 } 4471 function VE(e, t) { 4472 var n = e.isConnected || e.ownerDocument.documentElement.contains(e); 4473 if (im(t) && typeof t.behavior == "function") return t.behavior(n ? bc(e, t) : []); 4474 if (n) { 4475 var i = UE(t); 4476 return RE(bc(e, i), i.behavior); 4477 } 4478 } 4479 function HE(e, { behavior: t = "smooth", scrollMode: n = "if-needed", block: i = "center", offset: a = false } = {}) { 4480 const r = rm(e), s = { 4481 behavior: t, 4482 scrollMode: n, 4483 block: i 4484 }; 4485 a && (s.behavior = (o) => o.forEach(({ el: l, top: u, left: c }, d) => { 4486 const p = d === 0 ? u - a : u; 4487 l.scrollTop = p, l.scrollLeft = c; 4488 })), VE(r, s); 4489 } 4490 const Qi = (e, { scroll: t = true, delay: n = 250, stayFocusable: i = false } = {}, a = {}) => { 4491 const r = rm(e); 4492 r && (!r.hasAttribute("tabIndex") && zE(r) && (i ? r.setAttribute("tabIndex", "0") : r.setAttribute("tabIndex", "-1")), t ? (HE(r, a), setTimeout(function() { 4493 r.focus(); 4494 }
4494, n)) : r.focus()); 4495 }, jE = [ 4496 "a[href]", 4497 "area[href]", 4498 "input:not([disabled])", 4499 "select:not([disabled])", 4500 "textarea:not([disabled])", 4501 "button:not([disabled])", 4502 "iframe", 4503 "object", 4504 "embed", 4505 "[tabindex]", 4506 "[contenteditable]" 4507 ], zE = (e) => !jE.some((t) => (Element.prototype.matches || Element.prototype.msMatchesSelector).call(e, t)), Kl = () => ({ 4508 xs: 0, 4509 sm: 576, 4510 md: 768, 4511 lg: 992, 4512 xl: 1200 4513 }), ws = { 4514 data() { 4515 return { 4516 controlRefs: [], 4517 currentFocusedLinkIndex: null 4518 }; 4519 }, 4520 methods: { 4521 listControl_itemKeydown(e) { 4522 if (this.currentFocusedLinkIndex == null) return; 4523 const { key: t } = e; 4524 switch (t) { 4525 case "Down": 4526 case "ArrowDown": 4527 case "Right": 4528 case "ArrowRight": 4529 e.preventDefault(), this.listControl_focusNext(e); 4530 break; 4531 case "Up": 4532 case "ArrowUp": 4533 case "Left": 4534 case "ArrowLeft": 4535 e.preventDefault(), this.listControl_focusPrev(e); 4536 break; 4537 case "Home": 4538 e.preventDefault(), this.listControl_focusOnFirstItem(); 4539 break; 4540 case "End": 4541 e.preventDefault(), this.listControl_focusOnLastItem(); 4542 break; 4543 } 4544 }, 4545 listControl_focus(e) { 4546 Qi(e, { 4547 scroll: false 4548 }); 4549 }, 4550 listControl_focusOnFirstItem() { 4551 const e = this.controlRefs[0]; 4552 this.currentFocusedLinkIndex = 0, this.listControl_focus(e); 4553 }, 4554 listControl_focusOnLastItem() { 4555 const e = this.controlRefs.length - 1, t = this.controlRefs[e]; 4556 this.currentFocusedLinkIndex = e, this.listControl_focus(t); 4557 }, 4558 listControl_focusNext() { 4559 if (this.currentFocusedLinkIndex !== null) { 4560 const e = this.currentFocusedLinkIndex + 1, t = this.getTargetIndex(e); 4561 this.currentFocusedLinkIndex = t, this.listControl_focus(this.controlRefs[t]); 4562 } 4563 }, 4564 listControl_focusPrev() { 4565 if (this.currentFocusedLinkIndex !== null) { 4566 const e = this.currentFocusedLinkIndex - 1, t = this.getTargetIndex(e); 4567 this.currentFocusedLinkIndex = t, this.listControl_focus(this.controlRefs[t]); 4568 } 4569 }, 4570 getTargetIndex(e) { 4571 return e >= this.controlRefs.length ? 0 : e < 0 ? this.controlRefs.length - 1 : e; 4572 } 4573 }, 4574 emits: [ 4575 "item-focus" 4576 ], 4577 watch: { 4578 currentFocusedLinkIndex: { 4579 handler: function(e) { 4580 this.$emit("item-focus", e); 4581 }, 4582 immediate: true 4583 } 4584 } 4585 }, zr = { 4586 props: { 4587 href: { 4588 type: String 4589 }, 4590 rel: { 4591 type: [ 4592 String, 4593 Boolean 4594 ], 4595 default: null 4596 }, 4597 target: { 4598 type: [ 4599 String, 4600 Boolean 4601 ], 4602 default: null 4603 }, 4604 decoration: { 4605 type: Boolean 4606 }, 4607 to: { 4608 type: [ 4609 String, 4610 Object 4611 ], 4612 default: null 4613 }, 4614 routerLinkProps: { 4615 type: Object, 4616 default: () => ({}) 4617 } 4618 }, 4619 computed: { 4620 link_element() { 4621 return this.to && "$router" in this ? "router-link" : this.href ? "a" : this.decoration ? "p" : "button"; 4622 } 4623 } 4624 }, WE = [ 4625 "default", 4626 "auto-detect", 4627 "mail", 4628 "tel", 4629 "download", 4630 "external", 4631 "internal" 4632 ], ln = { 4633 mixins: [ 4634 zr 4635 ], 4636 props: { 4637 linkType: { 4638 type: String, 4639 default: "default", 4640 validator: (e) => WE.includes(e) 4641 } 4642 }, 4643 computed: { 4644 linkHref() { 4645 return "href" in this ? this.href : "url" in this ? this.url : "link" in this ? this.link : null; 4646 }, 4647 linkType_type() { 4648 if (this.linkType !== "auto-detect") return this.linkType; 4649 if (this.linkHref && Ji(this.linkHref)) return Ji(this.linkHref); 4650 }, 4651 linkType_href() { 4652 return this.linkType_type === "mail" ? Xf(this.linkHref) : this.linkType_type === "tel" ? Kf(this.linkHref) : this.linkHref; 4653 }, 4654 linkType_target() { 4655 return this.target ? this.target : this.linkType_type === "external" ? "_blank" : null; 4656 }, 4657 linkType_rel() { 4658 return this.target ? this.rel : this.linkType_type === "external" ? "noopener noreferrer" : null; 4659 }, 4660 linkType_screenReaderTelNumber() { 4661 return this.linkHref && this.linkType_type === "tel" ? this.linkHref.replace("tel:", "").split("").join(" ") : ""; 4662 } 4663 } 4664 }, bt = { 4665 props: { 4666 mediaType: { 4667 type: String, 4668 default: "picture", 4669 validator: (e) => [ 4670 "picture", 4671 "inline-video", 4672 "video-player" 4673 ].includes(e) 4674 }, 4675 media: { 4676 type: [ 4677 String, 4678 Object 4679 ] 4680 } 4681 }, 4682 methods: { 4683 mediaProps(e = this.media) { 4684 return this.mediaType === "picture" && typeof e == "string" && (e = { 4685 src: e 4686 }), { 4687 ..."defaultMediaProps" in this && this.defaultMediaProps || {}, 4688 ...e 4689 }; 4690 } 4691 } 4692 }, Xl = { 4693 props: { 4694 maxWidth: { 4695 type: String, 4696 default: "none" 4697 }, 4698 fit: { 4699 type: String, 4700 default: "cover", 4701 validator(e) { 4702 return [ 4703 "cover", 4704 "contain" 4705 ].includes(e); 4706 } 4707 }, 4708 position: { 4709 type: [ 4710 String, 4711 Number, 4712 Array, 4713 Object 4714 ], 4715 default: function() { 4716 return [ 4717 "50%", 4718 "50%" 4719 ]; 4720 } 4721 } 4722 }, 4723 methods: { 4724 mediaPosition_getPosValue(e) { 4725 return typeof e == "number" ? `${e}%` : e; 4726 }, 4727 mediaPosition_getXPos(e) { 4728 return Array.isArray(e) ? this.mediaPosition_getPosValue(e[0]) : this.mediaPosition_getPosValue(e); 4729 }, 4730 mediaPosition_getYPos(e) { 4731 return Array.isArray(e) ? this.mediaPosition_getPosValue(e[1]) : this.mediaPosition_getPosValue(e); 4732 } 4733 }, 4734 computed: { 4735 mediaPosition_position() { 4736 return typeof this.position == "string" && this.position.includes(" ") ? this.position.split(" ") : this.position; 4737 }, 4738 mediaPosition_hasPositionBreakpoints() { 4739 return typeof this.mediaPosition_position == "object" && !Array.isArray(this.mediaPosition_position); 4740 }, 4741 mediaPosition_posX() { 4742 if (this.mediaPosition_hasPositionBreakpoints) try { 4743 return this.mediaPosition_getXPos(this.mediaPosition_position.xs); 4744 } catch (e) { 4745 console.error(e); 4746 } 4747 return this.mediaPosition_getXPos(this.mediaPosition_position); 4748 }, 4749 mediaPosition_posY() { 4750 if (this.mediaPosition_hasPositionBreakpoints) try { 4751 return this.mediaPosition_getYPos(this.mediaPosition_position.xs); 4752 } catch (e) { 4753 console.error(e); 4754 } 4755 return this.mediaPosition_getYPos(this.mediaPosition_position); 4756 }, 4757 mediaPosition_breakpoints() { 4758 return this.mediaPosition_hasPositionBreakpoints ? { 4759 ...this.mediaPosition_position, 4760 xs: this.mediaPosition_position.xs || "center" 4761 } : { 4762 xs: this.mediaPosition_position 4763 }; 4764 }, 4765 mediaPosition_styleObject() { 4766 const e = {}; 4767 return Object.keys(this.mediaPosition_breakpoints).forEac
4767h((t) => { 4768 e[t === "xs" ? "--media-pos-x" : `--media-pos-x-${t}`] = this.mediaPosition_getXPos(this.mediaPosition_breakpoints[t]), e[t === "xs" ? "--media-pos-y" : `--media-pos-y-${t}`] = this.mediaPosition_getYPos(this.mediaPosition_breakpoints[t]); 4769 }), { 4770 "--media-max-width": this.maxWidth, 4771 "--media-fit": this.fit, 4772 "--media-pos-x": this.mediaPosition_posX, 4773 "--media-pos-y": this.mediaPosition_posY, 4774 ...e 4775 }; 4776 } 4777 } 4778 }, Ai = { 4779 props: { 4780 nestEventsContext: { 4781 type: String, 4782 default: "" 4783 } 4784 }, 4785 computed: { 4786 computedEventsContext() { 4787 let e = this.$options.name; 4788 return typeof this.__proto__.constructor.extendOptions.extends < "u" && e.includes("aem-") && (e = this.__proto__.constructor.extendOptions.extends.name), this.nestEventsContext && this.nestEventsContext !== "" ? this.nestEventsContext : e; 4789 } 4790 }, 4791 methods: { 4792 dispatchNestEvent(e, t = this.$el) { 4793 const n = document.querySelectorAll("h1,h2,h3,h4,h5,h6,p,body"); 4794 oi(e, n instanceof NodeList ? t : null); 4795 } 4796 } 4797 }, ur = { 4798 data() { 4799 return { 4800 location: "" 4801 }; 4802 }, 4803 props: { 4804 determineLinkIsCurrent: { 4805 type: Function, 4806 default: function(e) { 4807 return this.isUrlChildOf(e, this.location); 4808 } 4809 }, 4810 getReducedCurrentLinks: { 4811 type: Function, 4812 default: function(e) { 4813 let t = e.filter((a) => a.isCurrent).map((a) => { 4814 let r = this.fixedRelativeLinkHref(a.href); 4815 return { 4816 ...a, 4817 matchingParts: lE(r, this.location) 4818 }; 4819 }).sort((a, r) => r.matchingParts - a.matchingParts); 4820 if (!t.length) return e; 4821 let n = t[0], i = false; 4822 return e.map((a) => a.href === n.href && !i ? (i = true, { 4823 ...a, 4824 isCurrent: true 4825 }) : { 4826 ...a, 4827 isCurrent: false 4828 }); 4829 } 4830 } 4831 }, 4832 methods: { 4833 setCurrentLinks(e) { 4834 return !this.notNullOrEmpty(e) || !this.notNullOrEmpty(this.location) ? e : this.getReducedCurrentLinks(e.map((t) => { 4835 let n = t.href && t.href.length && this.determineLinkIsCurrent(t.href); 4836 return { 4837 ...t, 4838 isCurrent: t.isCurrent !== void 0 ? t.isCurrent : n 4839 }; 4840 })); 4841 }, 4842 notNullOrEmpty(e) { 4843 return e && e.length; 4844 }, 4845 fixedRelativeLinkHref(e) { 4846 return e && e.length ? Yf(e, this.location) : null; 4847 }, 4848 isUrlChildOf(e, t) { 4849 if (!(e && e.length) || !(t && t.length)) return false; 4850 let n = this.fixedRelativeLinkHref(e); 4851 return n = lc(n), t = lc(t), oE(n, t); 4852 } 4853 }, 4854 created() { 4855 window.mockCurrentUrl && (this.location = window.mockCurrentUrl); 4856 }, 4857 mounted() { 4858 this.location = window.location.href, window.mockCurrentUrl && (this.location = window.mockCurrentUrl); 4859 } 4860 }; 4861 var Se = { 4862 noAnimation: { 4863 type: Boolean, 4864 default: false 4865 }, 4866 animation: { 4867 type: String, 4868 default: "scroll", 4869 validator: (e) => [ 4870 "scroll", 4871 "load", 4872 "none" 4873 ].includes(e) 4874 }, 4875 background: { 4876 type: String, 4877 default: "transparent", 4878 validator: (e) => [ 4879 "transparent", 4880 "white", 4881 "primary", 4882 "bg", 4883 "bg-alt-1", 4884 "bg-alt-2", 4885 "bg-dark", 4886 "bg-translucent", 4887 "secondary" 4888 ].includes(e) 4889 }, 4890 clearSpacingAfter: { 4891 type: Boolean, 4892 default: false 4893 }, 4894 title: { 4895 type: String 4896 }, 4897 titleStyle: { 4898 type: String, 4899 default: "h1", 4900 validator: (e) => [ 4901 "heading-mega", 4902 "heading-display", 4903 "h1", 4904 "h2", 4905 "h3", 4906 "h4", 4907 "h5", 4908 "h6" 4909 ].includes(e) 4910 }, 4911 titleHeadingLevel: { 4912 type: Number, 4913 default: 2, 4914 validator: (e) => [ 4915 1, 4916 2, 4917 3, 4918 4, 4919 5, 4920 6 4921 ].includes(e) 4922 }, 4923 titleIsParagraph: { 4924 type: Boolean, 4925 default: false 4926 }, 4927 linkFormat: { 4928 type: String, 4929 validator(e) { 4930 return [ 4931 "primary", 4932 "secondary", 4933 "ghost", 4934 "primary-reverse", 4935 "secondary-reverse", 4936 "ghost-reverse" 4937 ].includes(e); 4938 } 4939 } 4940 }; 4941 const we = { 4942 title: Se.title, 4943 titleStyle: Se.titleStyle, 4944 titleHeadingLevel: Se.titleHeadingLevel, 4945 titleIsParagraph: Se.titleIsParagraph 4946 }; 4947 function GE(e, t) { 4948 typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack)); 4949 } 4950 const Ja = typeof window < "u", cr = (e, t = false) => t ? Symbol.for(e) : Symbol(e), qE = (e, t, n) => YE({ 4951 l: e, 4952 k: t, 4953 s: n 4954 }), YE = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), mt = (e) => typeof e == "number" && isFinite(e), KE = (e) => sm(e) === "[object Date]", ir = (e) => sm(e) === "[object RegExp]", Ls = (e) => De(e) && Object.keys(e).length === 0, Ot = Object.assign, XE = Object.create, et = (e = null) => XE(e); 4955 let vc; 4956 const Mn = () => vc || (vc = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : et()); 4957 function yc(e) { 4958 return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "="); 4959 } 4960 function _c(e) { 4961 return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">"); 4962 } 4963 function JE(e) { 4964 return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (t, n, i) => `${n}="${_c(i)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (t, n, i) => `${n}='${_c(i)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [ 4965 /(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi, 4966 /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi 4967 ].forEach((t) => { 4968 e = e.replace(t, "$1javascript:"); 4969 }), e; 4970 } 4971 const QE = Object.prototype.hasOwnProperty; 4972 function hn(e, t) { 4973 return QE.call(e, t); 4974 } 4975 const ut = Array.isArray, ot = (e) => typeof e == "function", he = (e) => typeof e == "string", Me = (e) => typeof e == "boolean", Ke = (e) => e !== null && typeof e == "object", ZE = (e) => Ke(e) && ot(e.then) && ot(e.catch), am = Object.prototype.toString, sm = (e) => am.call(e), De = (e) => { 4976 if (!Ke(e)) return false;
vendor: 4,336 bytes, lines 4977-5092
4977 const t = Object.getPrototypeOf(e); 4978 return t === null || t.constructor === Object; 4979 }, ek = (e) => e == null ? "" : ut(e) || De(e) && e.toString === am ? JSON.stringify(e, null, 2) : String(e); 4980 function tk(e, t = "") { 4981 return e.reduce((n, i, a) => a === 0 ? n + i : n + t + i, ""); 4982 } 4983 function xs(e) { 4984 let t = e; 4985 return () => ++t; 4986 } 4987 const wa = (e) => !Ke(e) || ut(e); 4988 function Ua(e, t) { 4989 if (wa(e) || wa(t)) throw new Error("Invalid value"); 4990 const n = [ 4991 { 4992 src: e, 4993 des: t 4994 } 4995 ]; 4996 for (; n.length; ) { 4997 const { src: i, des: a } = n.pop(); 4998 Object.keys(i).forEach((r) => { 4999 r !== "__proto__" && (Ke(i[r]) && !Ke(a[r]) && (a[r] = Array.isArray(i[r]) ? [] : et()), wa(a[r]) || wa(i[r]) ? a[r] = i[r] : n.push({ 5000 src: i[r], 5001 des: a[r] 5002 })); 5003 }); 5004 } 5005 } 5006 function nk(e, t, n) { 5007 return { 5008 line: e, 5009 column: t, 5010 offset: n 5011 }; 5012 } 5013 function Qa(e, t, n) { 5014 return { 5015 start: e, 5016 end: t 5017 }; 5018 } 5019 const rk = /\{([0-9a-zA-Z]+)\}/g; 5020 function om(e, ...t) { 5021 return t.length === 1 && ik(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(rk, (n, i) => t.hasOwnProperty(i) ? t[i] : ""); 5022 } 5023 const lm = Object.assign, Ec = (e) => typeof e == "string", ik = (e) => e !== null && typeof e == "object"; 5024 function um(e, t = "") { 5025 return e.reduce((n, i, a) => a === 0 ? n + i : n + t + i, ""); 5026 } 5027 const Jl = { 5028 USE_MODULO_SYNTAX: 1, 5029 __EXTEND_POINT__: 2 5030 }, ak = { 5031 [Jl.USE_MODULO_SYNTAX]: "Use modulo before '{{0}}'." 5032 }; 5033 function sk(e, t, ...n) { 5034 const i = om(ak[e], ...n || []), a = { 5035 message: String(i), 5036 code: e 5037 }; 5038 return t && (a.location = t), a; 5039 } 5040 const xe = { 5041 EXPECTED_TOKEN: 1, 5042 INVALID_TOKEN_IN_PLACEHOLDER: 2, 5043 UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3, 5044 UNKNOWN_ESCAPE_SEQUENCE: 4, 5045 INVALID_UNICODE_ESCAPE_SEQUENCE: 5, 5046 UNBALANCED_CLOSING_BRACE: 6, 5047 UNTERMINATED_CLOSING_BRACE: 7, 5048 EMPTY_PLACEHOLDER: 8, 5049 NOT_ALLOW_NEST_PLACEHOLDER: 9, 5050 INVALID_LINKED_FORMAT: 10, 5051 MUST_HAVE_MESSAGES_IN_PLURAL: 11, 5052 UNEXPECTED_EMPTY_LINKED_MODIFIER: 12, 5053 UNEXPECTED_EMPTY_LINKED_KEY: 13, 5054 UNEXPECTED_LEXICAL_ANALYSIS: 14, 5055 UNHANDLED_CODEGEN_NODE_TYPE: 15, 5056 UNHANDLED_MINIFIER_NODE_TYPE: 16, 5057 __EXTEND_POINT__: 17 5058 }, ok = { 5059 [xe.EXPECTED_TOKEN]: "Expected token: '{0}'", 5060 [xe.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'", 5061 [xe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder", 5062 [xe.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}", 5063 [xe.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}", 5064 [xe.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace", 5065 [xe.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace", 5066 [xe.EMPTY_PLACEHOLDER]: "Empty placeholder", 5067 [xe.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder", 5068 [xe.INVALID_LINKED_FORMAT]: "Invalid linked format", 5069 [xe.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages", 5070 [xe.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier", 5071 [xe.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key", 5072 [xe.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'", 5073 [xe.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'", 5074 [xe.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'" 5075 }; 5076 function Si(e, t, n = {}) { 5077 const { domain: i, messages: a, args: r } = n, s = om((a || ok)[e] || "", ...r || []), o = new SyntaxError(String(s)); 5078 return o.code = e, t && (o.location = t), o.domain = i, o; 5079 } 5080 function lk(e) { 5081 throw e; 5082 } 5083 const Tn = " ", uk = "\r", Gt = ` 5084`, ck = "\u2028", dk = "\u2029"; 5085 function pk(e) { 5086 const t = e; 5087 let n = 0, i = 1, a = 1, r = 0; 5088 const s = (A) => t[A] === uk && t[A + 1] === Gt, o = (A) => t[A] === Gt, l = (A) => t[A] === dk, u = (A) => t[A] === ck, c = (A) => s(A) || o(A) || l(A) || u(A), d = () => n, p = () => i, b = () => a, h = () => r, _ = (A) => s(A) || l(A) || u(A) ? Gt : t[A], C = () => _(n), D = () => _(n + r); 5089 function N() { 5090 return r = 0, c(n) && (i++, a = 0), s(n) && n++, n++, a++, t[n]; 5091 } 5092 function v() {
5093 return s(n + r) && r++, r++, t[n + r]; 5094 } 5095 function y() { 5096 n = 0, i = 1, a = 1, r = 0; 5097 } 5098 function E(A = 0) { 5099 r = A; 5100 } 5101 function k() { 5102 const A = n + r; 5103 for (; A !== n; ) N(); 5104 r = 0; 5105 } 5106 return { 5107 index: d, 5108 line: p, 5109 column: b, 5110 peekOffset: h, 5111 charAt: _, 5112 currentChar: C, 5113 currentPeek: D, 5114 next: N, 5115 peek: v, 5116 reset: y, 5117 resetPeek: E, 5118 skipToPeek: k 5119 }; 5120 } 5121 const Jn = void 0, kc = "'", fk = "tokenizer"; 5122 function mk(e, t = {}) { 5123 const n = t.location !== false, i = pk(e), a = () => i.index(), r = () => nk(i.line(), i.column(), i.index()), s = r(), o = a(), l = { 5124 currentType: 14, 5125 offset: o, 5126 startLoc: s, 5127 endLoc: s, 5128 lastType: 14, 5129 lastOffset: o, 5130 lastStartLoc: s, 5131 lastEndLoc: s, 5132 braceNest: 0, 5133 inLinked: false, 5134 text: "" 5135 }, u = () => l, { onError: c } = t; 5136 function d(f, g, F, ...W) { 5137 const S = u(); 5138 if (g.column += F, g.offset += F, c) { 5139 const $ = n ? Qa(S.startLoc, g) : null, le = Si(f, $, { 5140 domain: fk, 5141 args: W 5142 }); 5143 c(le); 5144 } 5145 } 5146 function p(f, g, F) { 5147 f.endLoc = r(), f.currentType = g; 5148 const W = { 5149 type: g 5150 }; 5151 return n && (W.loc = Qa(f.startLoc, f.endLoc)), F != null && (W.value = F), W; 5152 } 5153 const b = (f) => p(f, 14); 5154 function h(f, g) { 5155 return f.currentChar() === g ? (f.next(), g) : (d(xe.EXPECTED_TOKEN, r(), 0, g), ""); 5156 } 5157 function _(f) { 5158 let g = ""; 5159 for (; f.currentPeek() === Tn || f.currentPeek() === Gt; ) g += f.currentPeek(), f.peek(); 5160 return g; 5161 } 5162 function C(f) { 5163 const g = _(f); 5164 return f.skipToPeek(), g; 5165 } 5166 function D(f) { 5167 if (f === Jn) return false; 5168 const g = f.charCodeAt(0); 5169 return g >= 97 && g <= 122 || g >= 65 && g <= 90 || g === 95; 5170 } 5171 function N(f) { 5172 if (f === Jn) return false; 5173 const g = f.charCodeAt(0); 5174 return g >= 48 && g <= 57; 5175 } 5176 function v(f, g) { 5177 const { currentType: F } = g; 5178 if (F !== 2) return false; 5179 _(f); 5180 const W = D(f.currentPeek()); 5181 return f.resetPeek(), W; 5182 } 5183 function y(f, g) { 5184 const { currentType: F } = g; 5185 if (F !== 2) return false; 5186 _(f); 5187 const W = f.currentPeek() === "-" ? f.peek() : f.currentPeek(), S = N(W); 5188 return f.resetPeek(), S; 5189 } 5190 function E(f, g) { 5191 const { currentType: F } = g; 5192 if (F !== 2) return false; 5193 _(f); 5194 const W = f.currentPeek() === kc; 5195 return f.resetPeek(), W; 5196 } 5197 function k(f, g) { 5198 const { currentType: F } = g; 5199 if (F !== 8) return false; 5200 _(f); 5201 const W = f.currentPeek() === "."; 5202 return f.resetPeek(), W; 5203 } 5204 function A(f, g) { 5205 const { currentType: F } = g; 5206 if (F !== 9) return false; 5207 _(f); 5208 const W = D(f.currentPeek()); 5209 return f.resetPeek(), W; 5210 } 5211 function L(f, g) { 5212 const { currentType: F } = g; 5213 if (!(F === 8 || F === 12)) return false; 5214 _(f); 5215 const W = f.currentPeek() === ":"; 5216 return f.resetPeek(), W; 5217 } 5218 function w(f, g) { 5219 const { currentType: F } = g; 5220 if (F !== 10) return false; 5221 const W = () => { 5222 const $ = f.currentPeek(); 5223 return $ === "{" ? D(f.peek()) : $ === "@" || $ === "%" || $ === "|" || $ === ":" || $ === "." || $ === Tn || !$ ? false : $ === Gt ? (f.peek(), W()) : P(f, false); 5224 }, S = W(); 5225 return f.resetPeek(), S; 5226 } 5227 function z(f) { 5228 _(f); 5229 const g = f.currentPeek() === "|"; 5230 return f.resetPeek(), g; 5231 } 5232 function T(f) { 5233 const g = _(f), F = f.currentPeek() === "%" && f.peek() === "{"; 5234 return f.resetPeek(), { 5235 isModulo: F, 5236 hasSpace: g.length > 0 5237 }; 5238 } 5239 function P(f, g = true) { 5240 const F = (S = false, $ = "", le = false) => { 5241 const de = f.currentPeek(); 5242 return de === "{" ? $ === "%" ? false : S : de === "@" || !de ? $ === "%" ? true : S : de === "%" ? (f.peek(), F(S, "%", true)) : de === "|" ? $ === "%" || le ? true : !($ === Tn || $ === Gt) : de === Tn ? (f.peek(), F(true, Tn, le)) : de === Gt ? (f.peek(), F(true, Gt, le)) : true; 5243 }, W = F(); 5244 return g && f.resetPeek(), W; 5245 } 5246 function G(f, g) { 5247 const F = f.currentChar(); 5248 return F === Jn ? Jn : g(F) ? (f.next(), F) : null; 5249 } 5250 function X(f) { 5251 const g = f.charCodeAt(0); 5252 return g >= 97 && g <= 122 || g >= 65 && g <= 90 || g >= 48 && g <= 57 || g === 95 || g === 36; 5253 } 5254 function Y(f) { 5255 return G(f, X); 5256 } 5257 function q(f) { 5258 const g = f.charCodeAt(0); 5259 return g >= 97 && g <= 122 || g >= 65 && g <= 90 || g >= 48 && g <= 57 || g === 95 || g === 36 || g === 45; 5260 } 5261 function J(f) { 5262 return G(f, q); 5263 } 5264 function Z(f) { 5265 const g = f.charCodeAt(0); 5266 return g >= 48 && g <= 57; 5267 } 5268 function se(f) { 5269 return G(f, Z); 5270 } 5271 function Q(f) { 5272 const g = f.charCodeAt(0); 5273 return g >= 48 && g <= 57 || g >= 65 && g <= 70 || g >= 97 && g <= 102; 5274 } 5275 function oe(f) { 5276 return G(f, Q); 5277 } 5278 function ce(f) { 5279 let g = "", F = ""; 5280 for (; g = se(f); ) F += g; 5281 return F; 5282 } 5283 function be(f) { 5284 C(f); 5285 const g = f.currentChar(); 5286 return g !== "%" && d(xe.EXPECTED_TOKEN, r(), 0, g), f.next(), "%"; 5287 } 5288 function ye(f) { 5289 let g = ""; 5290 for (; ; ) { 5291 const F = f.currentChar(); 5292 if (F === "{" || F === "}" || F === "@" || F === "|" || !F) break; 5293 if (F === "%") if (P(f)) g += F, f.next(); 5294 else break; 5295 else if (F === Tn || F === Gt) if (P(f)) g += F, f.next(); 5296 else { 5297 if (z(f)) break; 5298 g += F, f.next(); 5299 } 5300 else g += F, f.next(); 5301 } 5302 return g; 5303 } 5304 function ke(f) { 5305 C(f); 5306 let g = "", F = ""; 5307 for (; g = J(f); ) F += g; 5308 return f.currentChar() === Jn && d(xe.UNTERMINATED_CLOSING_BRACE, r(), 0), F; 5309 } 5310 function Ae(f) { 5311 C(f); 5312 let g = ""; 5313 return f.currentChar() === "-" ? (f.next(), g += `-${ce(f)}`) : g += ce(f), f.currentChar() === Jn && d(xe.UNTERMINATED_CLOSING_BRACE, r(), 0), g; 5314 } 5315 function _e(f) { 5316 return f !== kc && f !== Gt; 5317 } 5318 function Te(f) { 5319 C(f), h(f, "'"); 5320 let g = "", F = ""; 5321 for (; g = G(f, _e); ) g === "\\" ? F += Ee(f) : F += g; 5322 const W = f.currentChar(); 5323 return W === Gt || W === Jn ? (d(xe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), W === Gt && (f.next(), h(f, "'")), F) : (h(f, "'"), F); 5324 } 5325 function Ee(f) { 5326 const g = f.currentChar(); 5327 switch (g) { 5328 case "\\":
vendor: 18,905 bytes, lines 5329-5921
5329 case "'": 5330 return f.next(), `\\${g}`; 5331 case "u": 5332 return Le(f, g, 4); 5333 case "U": 5334 return Le(f, g, 6); 5335 default: 5336 return d(xe.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, g), ""; 5337 } 5338 } 5339 function Le(f, g, F) { 5340 h(f, g); 5341 let W = ""; 5342 for (let S = 0; S < F; S++) { 5343 const $ = oe(f); 5344 if (!$) { 5345 d(xe.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${g}${W}${f.currentChar()}`); 5346 break; 5347 } 5348 W += $; 5349 } 5350 return `\\${g}${W}`; 5351 } 5352 function Be(f) { 5353 return f !== "{" && f !== "}" && f !== Tn && f !== Gt; 5354 } 5355 function Ie(f) { 5356 C(f); 5357 let g = "", F = ""; 5358 for (; g = G(f, Be); ) F += g; 5359 return F; 5360 } 5361 function Ve(f) { 5362 let g = "", F = ""; 5363 for (; g = Y(f); ) F += g; 5364 return F; 5365 } 5366 function B(f) { 5367 const g = (F) => { 5368 const W = f.currentChar(); 5369 return W === "{" || W === "%" || W === "@" || W === "|" || W === "(" || W === ")" || !W || W === Tn ? F : (F += W, f.next(), g(F)); 5370 }; 5371 return g(""); 5372 } 5373 function ie(f) { 5374 C(f); 5375 const g = h(f, "|"); 5376 return C(f), g; 5377 } 5378 function Fe(f, g) { 5379 let F = null; 5380 switch (f.currentChar()) { 5381 case "{": 5382 return g.braceNest >= 1 && d(xe.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), f.next(), F = p(g, 2, "{"), C(f), g.braceNest++, F; 5383 case "}": 5384 return g.braceNest > 0 && g.currentType === 2 && d(xe.EMPTY_PLACEHOLDER, r(), 0), f.next(), F = p(g, 3, "}"), g.braceNest--, g.braceNest > 0 && C(f), g.inLinked && g.braceNest === 0 && (g.inLinked = false), F; 5385 case "@": 5386 return g.braceNest > 0 && d(xe.UNTERMINATED_CLOSING_BRACE, r(), 0), F = qe(f, g) || b(g), g.braceNest = 0, F; 5387 default: { 5388 let W = true, S = true, $ = true; 5389 if (z(f)) return g.braceNest > 0 && d(xe.UNTERMINATED_CLOSING_BRACE, r(), 0), F = p(g, 1, ie(f)), g.braceNest = 0, g.inLinked = false, F; 5390 if (g.braceNest > 0 && (g.currentType === 5 || g.currentType === 6 || g.currentType === 7)) return d(xe.UNTERMINATED_CLOSING_BRACE, r(), 0), g.braceNest = 0, He(f, g); 5391 if (W = v(f, g)) return F = p(g, 5, ke(f)), C(f), F; 5392 if (S = y(f, g)) return F = p(g, 6, Ae(f)), C(f), F; 5393 if ($ = E(f, g)) return F = p(g, 7, Te(f)), C(f), F; 5394 if (!W && !S && !$) return F = p(g, 13, Ie(f)), d(xe.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, F.value), C(f), F; 5395 break; 5396 } 5397 } 5398 return F; 5399 } 5400 function qe(f, g) { 5401 const { currentType: F } = g; 5402 let W = null; 5403 const S = f.currentChar(); 5404 switch ((F === 8 || F === 9 || F === 12 || F === 10) && (S === Gt || S === Tn) && d(xe.INVALID_LINKED_FORMAT, r(), 0), S) { 5405 case "@": 5406 return f.next(), W = p(g, 8, "@"), g.inLinked = true, W; 5407 case ".": 5408 return C(f), f.next(), p(g, 9, "."); 5409 case ":": 5410 return C(f), f.next(), p(g, 10, ":"); 5411 default: 5412 return z(f) ? (W = p(g, 1, ie(f)), g.braceNest = 0, g.inLinked = false, W) : k(f, g) || L(f, g) ? (C(f), qe(f, g)) : A(f, g) ? (C(f), p(g, 12, Ve(f))) : w(f, g) ? (C(f), S === "{" ? Fe(f, g) || W : p(g, 11, B(f))) : (F === 8 && d(xe.INVALID_LINKED_FORMAT, r(), 0), g.braceNest = 0, g.inLinked = false, He(f, g)); 5413 } 5414 } 5415 function He(f, g) { 5416 let F = { 5417 type: 14 5418 }; 5419 if (g.braceNest > 0) return Fe(f, g) || b(g); 5420 if (g.inLinked) return qe(f, g) || b(g); 5421 switch (f.currentChar()) { 5422 case "{": 5423 return Fe(f, g) || b(g); 5424 case "}": 5425 return d(xe.UNBALANCED_CLOSING_BRACE, r(), 0), f.next(), p(g, 3, "}"); 5426 case "@": 5427 return qe(f, g) || b(g); 5428 default: { 5429 if (z(f)) return F = p(g, 1, ie(f)), g.braceNest = 0, g.inLinked = false, F; 5430 const { isModulo: W, hasSpace: S } = T(f); 5431 if (W) return S ? p(g, 0, ye(f)) : p(g, 4, be(f)); 5432 if (P(f)) return p(g, 0, ye(f)); 5433 break; 5434 } 5435 } 5436 return F; 5437 } 5438 function xt() { 5439 const { currentType: f, offset: g, startLoc: F, endLoc: W } = l; 5440 return l.lastType = f, l.lastOffset = g, l.lastStartLoc = F, l.lastEndLoc = W, l.offset = a(), l.startLoc = r(), i.currentChar() === Jn ? p(l, 14) : He(i, l); 5441 } 5442 return { 5443 nextToken: xt, 5444 currentOffset: a, 5445 currentPosition: r, 5446 context: u 5447 }; 5448 } 5449 const hk = "parser", gk = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g; 5450 function bk(e, t, n) { 5451 switch (e) { 5452 case "\\\\": 5453 return "\\"; 5454 case "\\'": 5455 return "'"; 5456 default: { 5457 const i = parseInt(t || n, 16); 5458 return i <= 55295 || i >= 57344 ? String.fromCodePoint(i) : "\uFFFD"; 5459 } 5460 } 5461 } 5462 function vk(e = {}) { 5463 const t = e.location !== false, { onError: n, onWarn: i } = e; 5464 function a(v, y, E, k, ...A) { 5465 const L = v.currentPosition(); 5466 if (L.offset += k, L.column += k, n) { 5467 const w = t ? Qa(E, L) : null, z = Si(y, w, { 5468 domain: hk, 5469 args: A 5470 }); 5471 n(z); 5472 } 5473 } 5474 function r(v, y, E, k, ...A) { 5475 const L = v.currentPosition(); 5476 if (L.offset += k, L.column += k, i) { 5477 const w = t ? Qa(E, L) : null; 5478 i(sk(y, w, A)); 5479 } 5480 } 5481 function s(v, y, E) { 5482 const k = { 5483 type: v 5484 }; 5485 return t && (k.start = y, k.end = y, k.loc = { 5486 start: E, 5487 end: E 5488 }), k; 5489 } 5490 function o(v, y, E, k) { 5491 t && (v.end = y, v.loc && (v.loc.end = E)); 5492 } 5493 function l(v, y) { 5494 const E = v.context(), k = s(3, E.offset, E.startLoc); 5495 return k.value = y, o(k, v.currentOffset(), v.currentPosition()), k; 5496 } 5497 function u(v, y) { 5498 const E = v.context(), { lastOffset: k, lastStartLoc: A } = E, L = s(5, k, A); 5499 return L.index = parseInt(y, 10), v.nextToken(), o(L, v.currentOffset(), v.currentPosition()), L; 5500 } 5501 function c(v, y, E) { 5502 const k = v.context(), { lastOffset: A, lastStartLoc: L } = k, w = s(4, A, L); 5503 return w.key = y, E === true && (w.modulo = true), v.nextToken(), o(w, v.currentOffset(), v.currentPosition()), w; 5504 } 5505 function d(v, y) { 5506 const E = v.context(), { lastOffset: k, lastStartLoc: A } = E, L = s(9, k, A); 5507 return L.value = y.replace(gk, bk), v.nextToken(), o(L, v.currentOffset(), v.currentPosition()), L; 5508 } 5509 function p(v) { 5510 const y = v.nextToken(), E = v.context(), { lastOffset: k, lastStartLoc: A } = E, L = s(8, k, A); 5511 return y.type !== 12 ? (a(v, xe.UNEXPECTED_EMPTY_LINKED_MODIFIER, E.lastStartLoc, 0), L.value = "", o(L, k, A), { 5512 nextConsumeToken: y, 5513 node: L 5514 }) : (y.value == null && a(v, xe.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, un(y)), L.value = y.value || "", o(L, v.currentOffset(), v.currentPosition()), { 5515 node: L 5516 }); 5517 } 5518 function b(v, y) { 5519 const E = v.context(), k = s(7, E.offset, E.startLoc); 5520 return k.value = y, o(k, v.currentOffset(), v.currentPosition()), k; 5521 } 5522 function h(v) { 5523 const y = v.context(), E = s(6, y.offset, y.startLoc); 5524 let k = v.nextToken(); 5525 if (k.type === 9) { 5526 const A = p(v); 5527 E.modifier = A.node, k = A.nextConsumeToken || v.nextToken(); 5528 } 5529 switch (k.type !== 10 && a(v, xe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, un(k)), k = v.nextToken(), k.type === 2 && (k = v.nextToken()), k.type) { 5530 case 11: 5531 k.value == null && a(v, xe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, un(k)), E.key = b(v, k.value || ""); 5532 break; 5533 case 5: 5534 k.value == null && a(v, xe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, un(k)), E.key = c(v, k.value || ""); 5535 break; 5536 case 6: 5537 k.value == null && a(v, xe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, un(k)), E.key = u(v, k.value || ""); 5538 break; 5539 case 7: 5540 k.value == null && a(v, xe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, un(k)), E.key = d(v, k.value || ""); 5541 break; 5542 default: { 5543 a(v, xe.UNEXPECTED_EMPTY_LINKED_KEY, y.lastStartLoc, 0); 5544 const A = v.context(), L = s(7, A.offset, A.startLoc); 5545 return L.value = "", o(L, A.offset, A.startLoc), E.key = L, o(E, A.offset, A.startLoc), { 5546 nextConsumeToken: k, 5547 node: E 5548 }; 5549 } 5550 } 5551 return o(E, v.currentOffset(), v.currentPosition()), { 5552 node: E 5553 }; 5554 } 5555 function _(v) { 5556 const y = v.context(), E = y.currentType === 1 ? v.currentOffset() : y.offset, k = y.currentType === 1 ? y.endLoc : y.startLoc, A = s(2, E, k); 5557 A.items = []; 5558 let L = null, w = null; 5559 do { 5560 const P = L || v.nextToken(); 5561 switch (L = null, P.type) { 5562 case 0: 5563 P.value == null && a(v, xe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, un(P)), A.items.push(l(v, P.value || "")); 5564 break; 5565 case 6: 5566 P.value == null && a(v, xe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, un(P)), A.items.push(u(v, P.value || "")); 5567 break; 5568 case 4: 5569 w = true; 5570 break; 5571 case 5: 5572 P.value == null && a(v, xe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, un(P)), A.items.push(c(v, P.value || "", !!w)), w && (r(v, Jl.USE_MODULO_SYNTAX, y.lastStartLoc, 0, un(P)), w = null); 5573 break; 5574 case 7: 5575 P.value == null && a(v, xe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, un(P)), A.items.push(d(v, P.value || "")); 5576 break; 5577 case 8: { 5578 const G = h(v); 5579 A.items.push(G.node), L = G.nextConsumeToken || null; 5580 break; 5581 } 5582 } 5583 } while (y.currentType !== 14 && y.currentType !== 1); 5584 const z = y.currentType === 1 ? y.lastOffset : v.currentOffset(), T = y.currentType === 1 ? y.lastEndLoc : v.currentPosition(); 5585 return o(A, z, T), A; 5586 } 5587 function C(v, y, E, k) { 5588 const A = v.context(); 5589 let L = k.items.length === 0; 5590 const w = s(1, y, E); 5591 w.cases = [], w.cases.push(k); 5592 do { 5593 const z = _(v); 5594 L || (L = z.items.length === 0), w.cases.push(z); 5595 } while (A.currentType !== 14); 5596 return L && a(v, xe.MUST_HAVE_MESSAGES_IN_PLURAL, E, 0), o(w, v.currentOffset(), v.currentPosition()), w; 5597 } 5598 function D(v) { 5599 const y = v.context(), { offset: E, startLoc: k } = y, A = _(v); 5600 return y.currentType === 14 ? A : C(v, E, k, A); 5601 } 5602 function N(v) { 5603 const y = mk(v, lm({}, e)), E = y.context(), k = s(0, E.offset, E.startLoc); 5604 return t && k.loc && (k.loc.source = v), k.body = D(y), e.onCacheKey && (k.cacheKey = e.onCacheKey(v)), E.currentType !== 14 && a(y, xe.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, v[E.offset] || ""), o(k, y.currentOffset(), y.currentPosition()), k; 5605 } 5606 return { 5607 parse: N 5608 }; 5609 } 5610 function un(e) { 5611 if (e.type === 14) return "EOF"; 5612 const t = (e.value || "").replace(/\r?\n/gu, "\\n"); 5613 return t.length > 10 ? t.slice(0, 9) + "\u2026" : t; 5614 } 5615 function yk(e, t = {}) { 5616 const n = { 5617 ast: e, 5618 helpers: /* @__PURE__ */ new Set() 5619 }; 5620 return { 5621 context: () => n, 5622 helper: (i) => (n.helpers.add(i), i) 5623 }; 5624 } 5625 function Cc(e, t) { 5626 for (let n = 0; n < e.length; n++) Ql(e[n], t); 5627 } 5628 function Ql(e, t) { 5629 switch (e.type) { 5630 case 1: 5631 Cc(e.cases, t), t.helper("plural"); 5632 break; 5633 case 2: 5634 Cc(e.items, t); 5635 break; 5636 case 6: { 5637 Ql(e.key, t), t.helper("linked"), t.helper("type"); 5638 break; 5639 } 5640 case 5: 5641 t.helper("interpolate"), t.helper("list"); 5642 break; 5643 case 4: 5644 t.helper("interpolate"), t.helper("named"); 5645 break; 5646 } 5647 } 5648 function _k(e, t = {}) { 5649 const n = yk(e); 5650 n.helper("normalize"), e.body && Ql(e.body, n); 5651 const i = n.context(); 5652 e.helpers = Array.from(i.helpers); 5653 } 5654 function Ek(e) { 5655 const t = e.body; 5656 return t.type === 2 ? Ac(t) : t.cases.forEach((n) => Ac(n)), e; 5657 } 5658 function Ac(e) { 5659 if (e.items.length === 1) { 5660 const t = e.items[0]; 5661 (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value); 5662 } else { 5663 const t = []; 5664 for (let n = 0; n < e.items.length; n++) { 5665 const i = e.items[n]; 5666 if (!(i.type === 3 || i.type === 9) || i.value == null) break; 5667 t.push(i.value); 5668 } 5669 if (t.length === e.items.length) { 5670 e.static = um(t); 5671 for (let n = 0; n < e.items.length; n++) { 5672 const i = e.items[n]; 5673 (i.type === 3 || i.type === 9) && delete i.value; 5674 } 5675 } 5676 } 5677 } 5678 const kk = "minifier"; 5679 function Xr(e) { 5680 switch (e.t = e.type, e.type) { 5681 case 0: { 5682 const t = e; 5683 Xr(t.body), t.b = t.body, delete t.body; 5684 break; 5685 } 5686 case 1: { 5687 const t = e, n = t.cases; 5688 for (let i = 0; i < n.length; i++) Xr(n[i]); 5689 t.c = n, delete t.cases; 5690 break; 5691 } 5692 case 2: { 5693 const t = e, n = t.items; 5694 for (let i = 0; i < n.length; i++) Xr(n[i]); 5695 t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static); 5696 break; 5697 } 5698 case 3: 5699 case 9: 5700 case 8: 5701 case 7: { 5702 const t = e; 5703 t.value && (t.v = t.value, delete t.value); 5704 break; 5705 } 5706 case 6: { 5707 const t = e; 5708 Xr(t.key), t.k = t.key, delete t.key, t.modifier && (Xr(t.modifier), t.m = t.modifier, delete t.modifier); 5709 break; 5710 } 5711 case 5: { 5712 const t = e; 5713 t.i = t.index, delete t.index; 5714 break; 5715 } 5716 case 4: { 5717 const t = e; 5718 t.k = t.key, delete t.key; 5719 break; 5720 } 5721 default: 5722 throw Si(xe.UNHANDLED_MINIFIER_NODE_TYPE, null, { 5723 domain: kk, 5724 args: [ 5725 e.type 5726 ] 5727 }); 5728 } 5729 delete e.type; 5730 } 5731 const Ck = "parser"; 5732 function Ak(e, t) { 5733 const { filename: n, breakLineCode: i, needIndent: a } = t, r = t.location !== false, s = { 5734 filename: n, 5735 code: "", 5736 column: 1, 5737 line: 1, 5738 offset: 0, 5739 map: void 0, 5740 breakLineCode: i, 5741 needIndent: a, 5742 indentLevel: 0 5743 }; 5744 r && e.loc && (s.source = e.loc.source); 5745 const o = () => s; 5746 function l(b, h) { 5747 s.code += b; 5748 } 5749 function u(b, h = true) { 5750 const _ = h ? i : ""; 5751 l(a ? _ + " ".repeat(b) : _); 5752 } 5753 function c(b = true) { 5754 const h = ++s.indentLevel; 5755 b && u(h); 5756 } 5757 function d(b = true) { 5758 const h = --s.indentLevel; 5759 b && u(h); 5760 } 5761 function p() { 5762 u(s.indentLevel); 5763 } 5764 return { 5765 context: o, 5766 push: l, 5767 indent: c, 5768 deindent: d, 5769 newline: p, 5770 helper: (b) => `_${b}`, 5771 needIndent: () => s.needIndent 5772 }; 5773 } 5774 function Sk(e, t) { 5775 const { helper: n } = e; 5776 e.push(`${n("linked")}(`), li(e, t.key), t.modifier ? (e.push(", "), li(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")"); 5777 } 5778 function wk(e, t) { 5779 const { helper: n, needIndent: i } = e; 5780 e.push(`${n("normalize")}([`), e.indent(i()); 5781 const a = t.items.length; 5782 for (let r = 0; r < a && (li(e, t.items[r]), r !== a - 1); r++) e.push(", "); 5783 e.deindent(i()), e.push("])"); 5784 } 5785 function Lk(e, t) { 5786 const { helper: n, needIndent: i } = e; 5787 if (t.cases.length > 1) { 5788 e.push(`${n("plural")}([`), e.indent(i()); 5789 const a = t.cases.length; 5790 for (let r = 0; r < a && (li(e, t.cases[r]), r !== a - 1); r++) e.push(", "); 5791 e.deindent(i()), e.push("])"); 5792 } 5793 } 5794 function xk(e, t) { 5795 t.body ? li(e, t.body) : e.push("null"); 5796 } 5797 function li(e, t) { 5798 const { helper: n } = e; 5799 switch (t.type) { 5800 case 0: 5801 xk(e, t); 5802 break; 5803 case 1: 5804 Lk(e, t); 5805 break; 5806 case 2: 5807 wk(e, t); 5808 break; 5809 case 6: 5810 Sk(e, t); 5811 break; 5812 case 8: 5813 e.push(JSON.stringify(t.value), t); 5814 break; 5815 case 7: 5816 e.push(JSON.stringify(t.value), t); 5817 break; 5818 case 5: 5819 e.push(`${n("interpolate")}(${n("list")}(${t.index}))`, t); 5820 break; 5821 case 4: 5822 e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`, t); 5823 break; 5824 case 9: 5825 e.push(JSON.stringify(t.value), t); 5826 break; 5827 case 3: 5828 e.push(JSON.stringify(t.value), t); 5829 break; 5830 default: 5831 throw Si(xe.UNHANDLED_CODEGEN_NODE_TYPE, null, { 5832 domain: Ck, 5833 args: [ 5834 t.type 5835 ] 5836 }); 5837 } 5838 } 5839 const Ok = (e, t = {}) => { 5840 const n = Ec(t.mode) ? t.mode : "normal", i = Ec(t.filename) ? t.filename : "message.intl"; 5841 t.sourceMap; 5842 const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : ` 5843`, r = t.needIndent ? t.needIndent : n !== "arrow", s = e.helpers || [], o = Ak(e, { 5844 filename: i, 5845 breakLineCode: a, 5846 needIndent: r 5847 }); 5848 o.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), o.indent(r), s.length > 0 && (o.push(`const { ${um(s.map((c) => `${c}: _${c}`), ", ")} } = ctx`), o.newline()), o.push("return "), li(o, e), o.deindent(r), o.push("}"), delete e.helpers; 5849 const { code: l, map: u } = o.context(); 5850 return { 5851 ast: e, 5852 code: l, 5853 map: u ? u.toJSON() : void 0 5854 }; 5855 }; 5856 function $k(e, t = {}) { 5857 const n = lm({}, t), i = !!n.jit, a = !!n.minify, r = n.optimize == null ? true : n.optimize, s = vk(n).parse(e); 5858 return i ? (r && Ek(s), a && Xr(s), { 5859 ast: s, 5860 code: "" 5861 }) : (_k(s, n), Ok(s, n)); 5862 } 5863 function Tk() { 5864 typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Mn().__INTLIFY_PROD_DEVTOOLS__ = false), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (Mn().__INTLIFY_JIT_COMPILATION__ = false), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Mn().__INTLIFY_DROP_MESSAGE_COMPILER__ = false); 5865 } 5866 function Ln(e) { 5867 return Ke(e) && Zl(e) === 0 && (hn(e, "b") || hn(e, "body")); 5868 } 5869 const cm = [ 5870 "b", 5871 "body" 5872 ]; 5873 function Ik(e) { 5874 return dr(e, cm); 5875 } 5876 const dm = [ 5877 "c", 5878 "cases" 5879 ]; 5880 function Fk(e) { 5881 return dr(e, dm, []); 5882 } 5883 const pm = [ 5884 "s", 5885 "static" 5886 ]; 5887 function Nk(e) { 5888 return dr(e, pm); 5889 } 5890 const fm = [ 5891 "i", 5892 "items" 5893 ]; 5894 function Dk(e) { 5895 return dr(e, fm, []); 5896 } 5897 const mm = [ 5898 "t", 5899 "type" 5900 ]; 5901 function Zl(e) { 5902 return dr(e, mm); 5903 } 5904 const hm = [ 5905 "v", 5906 "value" 5907 ]; 5908 function La(e, t) { 5909 const n = dr(e, hm); 5910 if (n != null) return n; 5911 throw Zi(t); 5912 } 5913 const gm = [ 5914 "m", 5915 "modifier" 5916 ]; 5917 function Pk(e) { 5918 return dr(e, gm); 5919 } 5920 const bm = [ 5921 "k",
vendor: 5,143 bytes, lines 5922-6169
5922 "key" 5923 ]; 5924 function Bk(e) { 5925 const t = dr(e, bm); 5926 if (t) return t; 5927 throw Zi(6); 5928 } 5929 function dr(e, t, n) { 5930 for (let i = 0; i < t.length; i++) { 5931 const a = t[i]; 5932 if (hn(e, a) && e[a] != null) return e[a]; 5933 } 5934 return n; 5935 } 5936 const vm = [ 5937 ...cm, 5938 ...dm, 5939 ...pm, 5940 ...fm, 5941 ...bm, 5942 ...gm, 5943 ...hm, 5944 ...mm 5945 ]; 5946 function Zi(e) { 5947 return new Error(`unhandled node type: ${e}`); 5948 } 5949 const pr = []; 5950 pr[0] = { 5951 w: [ 5952 0 5953 ], 5954 i: [ 5955 3, 5956 0 5957 ], 5958 "[": [ 5959 4 5960 ], 5961 o: [ 5962 7 5963 ] 5964 }; 5965 pr[1] = { 5966 w: [ 5967 1 5968 ], 5969 ".": [ 5970 2 5971 ], 5972 "[": [ 5973 4 5974 ], 5975 o: [ 5976 7 5977 ] 5978 }; 5979 pr[2] = { 5980 w: [ 5981 2 5982 ], 5983 i: [ 5984 3, 5985 0 5986 ], 5987 0: [ 5988 3, 5989 0 5990 ] 5991 }; 5992 pr[3] = { 5993 i: [ 5994 3, 5995 0 5996 ], 5997 0: [ 5998 3, 5999 0 6000 ], 6001 w: [ 6002 1, 6003 1 6004 ], 6005 ".": [ 6006 2, 6007 1 6008 ], 6009 "[": [ 6010 4, 6011 1 6012 ], 6013 o: [ 6014 7, 6015 1 6016 ] 6017 }; 6018 pr[4] = { 6019 "'": [ 6020 5, 6021 0 6022 ], 6023 '"': [ 6024 6, 6025 0 6026 ], 6027 "[": [ 6028 4, 6029 2 6030 ], 6031 "]": [ 6032 1, 6033 3 6034 ], 6035 o: 8, 6036 l: [ 6037 4, 6038 0 6039 ] 6040 }; 6041 pr[5] = { 6042 "'": [ 6043 4, 6044 0 6045 ], 6046 o: 8, 6047 l: [ 6048 5, 6049 0 6050 ] 6051 }; 6052 pr[6] = { 6053 '"': [ 6054 4, 6055 0 6056 ], 6057 o: 8, 6058 l: [ 6059 6, 6060 0 6061 ] 6062 }; 6063 const Mk = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/; 6064 function Rk(e) { 6065 return Mk.test(e); 6066 } 6067 function Uk(e) { 6068 const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1); 6069 return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e; 6070 } 6071 function Vk(e) { 6072 if (e == null) return "o"; 6073 switch (e.charCodeAt(0)) { 6074 case 91: 6075 case 93: 6076 case 46: 6077 case 34: 6078 case 39: 6079 return e; 6080 case 95: 6081 case 36: 6082 case 45: 6083 return "i"; 6084 case 9: 6085 case 10: 6086 case 13: 6087 case 160: 6088 case 65279: 6089 case 8232: 6090 case 8233: 6091 return "w"; 6092 } 6093 return "i"; 6094 } 6095 function Hk(e) { 6096 const t = e.trim(); 6097 return e.charAt(0) === "0" && isNaN(parseInt(e)) ? false : Rk(t) ? Uk(t) : "*" + t; 6098 } 6099 function jk(e) { 6100 const t = []; 6101 let n = -1, i = 0, a = 0, r, s, o, l, u, c, d; 6102 const p = []; 6103 p[0] = () => { 6104 s === void 0 ? s = o : s += o; 6105 }, p[1] = () => { 6106 s !== void 0 && (t.push(s), s = void 0); 6107 }, p[2] = () => { 6108 p[0](), a++; 6109 }, p[3] = () => { 6110 if (a > 0) a--, i = 4, p[0](); 6111 else { 6112 if (a = 0, s === void 0 || (s = Hk(s), s === false)) return false; 6113 p[1](); 6114 } 6115 }; 6116 function b() { 6117 const h = e[n + 1]; 6118 if (i === 5 && h === "'" || i === 6 && h === '"') return n++, o = "\\" + h, p[0](), true; 6119 } 6120 for (; i !== null; ) if (n++, r = e[n], !(r === "\\" && b())) { 6121 if (l = Vk(r), d = pr[i], u = d[l] || d.l || 8, u === 8 || (i = u[0], u[1] !== void 0 && (c = p[u[1]], c && (o = r, c() === false)))) return; 6122 if (i === 7) return t; 6123 } 6124 } 6125 const Sc = /* @__PURE__ */ new Map(); 6126 function zk(e, t) { 6127 return Ke(e) ? e[t] : null; 6128 } 6129 function Wk(e, t) { 6130 if (!Ke(e)) return null; 6131 let n = Sc.get(t); 6132 if (n || (n = jk(t), n && Sc.set(t, n)), !n) return null; 6133 const i = n.length; 6134 let a = e, r = 0; 6135 for (; r < i; ) { 6136 const s = n[r]; 6137 if (vm.includes(s) && Ln(a)) return null; 6138 const o = a[s]; 6139 if (o === void 0 || ot(a)) return null; 6140 a = o, r++; 6141 } 6142 return a; 6143 } 6144 const Gk = (e) => e, qk = (e) => "", Yk = "text", Kk = (e) => e.length === 0 ? "" : tk(e), Xk = ek; 6145 function wc(e, t) { 6146 return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0; 6147 } 6148 function Jk(e) { 6149 const t = mt(e.pluralIndex) ? e.pluralIndex : -1; 6150 return e.named && (mt(e.named.count) || mt(e.named.n)) ? mt(e.named.count) ? e.named.count : mt(e.named.n) ? e.named.n : t : t; 6151 } 6152 function Qk(e, t) { 6153 t.count || (t.count = e), t.n || (t.n = e); 6154 } 6155 function Zk(e = {}) { 6156 const t = e.locale, n = Jk(e), i = Ke(e.pluralRules) && he(t) && ot(e.pluralRules[t]) ? e.pluralRules[t] : wc, a = Ke(e.pluralRules) && he(t) && ot(e.pluralRules[t]) ? wc : void 0, r = (C) => C[i(n, C.length, a)], s = e.list || [], o = (C) => s[C], l = e.named || et(); 6157 mt(e.pluralIndex) && Qk(n, l); 6158 const u = (C) => l[C]; 6159 function c(C) { 6160 return (ot(e.messages) ? e.messages(C) : Ke(e.messages) ? e.messages[C] : false) || (e.parent ? e.parent.message(C) : qk); 6161 } 6162 const d = (C) => e.modifiers ? e.modifiers[C] : Gk, p = De(e.processor) && ot(e.processor.normalize) ? e.processor.normalize : Kk, b = De(e.processor) && ot(e.processor.interpolate) ? e.processor.interpolate : Xk, h = De(e.processor) && he(e.processor.type) ? e.processor.type : Yk, _ = { 6163 list: o, 6164 named: u, 6165 plural: r, 6166 linked: (C, ...D) => { 6167 const [N, v] = D; 6168 let y = "text", E = ""; 6169 D.length === 1 ? Ke(N) ? (E = N.modifier || E, y = N.type || y) : he(N) && (E = N || E) : D.length === 2 && (he(N) && (E = N || E), he(v) && (y = v || y));
6170 const k = c(C)(_), A = y === "vnode" && ut(k) && E ? k[0] : k; 6171 return E ? d(E)(A, y) : A; 6172 }, 6173 message: c, 6174 type: h, 6175 interpolate: b, 6176 normalize: p, 6177 values: Ot(et(), s, l) 6178 }; 6179 return _; 6180 } 6181 let ea = null; 6182 function eC(e) { 6183 ea = e; 6184 } 6185 function tC(e, t, n) { 6186 ea && ea.emit("i18n:init", { 6187 timestamp: Date.now(), 6188 i18n: e, 6189 version: t, 6190 meta: n 6191 }); 6192 } 6193 const nC = rC("function:translate"); 6194 function rC(e) { 6195 return (t) => ea && ea.emit(e, t); 6196 } 6197 const iC = Jl.__EXTEND_POINT__, kr = xs(iC), aC = { 6198 FALLBACK_TO_TRANSLATE: kr(), 6199 CANNOT_FORMAT_NUMBER: kr(), 6200 FALLBACK_TO_NUMBER_FORMAT: kr(), 6201 CANNOT_FORMAT_DATE: kr(), 6202 FALLBACK_TO_DATE_FORMAT: kr(), 6203 EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: kr(), 6204 __EXTEND_POINT__: kr() 6205 }, ym = xe.__EXTEND_POINT__, Cr = xs(ym), gn = { 6206 INVALID_ARGUMENT: ym, 6207 INVALID_DATE_ARGUMENT: Cr(), 6208 INVALID_ISO_DATE_ARGUMENT: Cr(), 6209 NOT_SUPPORT_NON_STRING_MESSAGE: Cr(), 6210 NOT_SUPPORT_LOCALE_PROMISE_VALUE: Cr(), 6211 NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: Cr(), 6212 NOT_SUPPORT_LOCALE_TYPE: Cr(), 6213 __EXTEND_POINT__: Cr() 6214 }; 6215 function Cn(e) { 6216 return Si(e, null, void 0); 6217 } 6218 function eu(e, t) { 6219 return t.locale != null ? Lc(t.locale) : Lc(e.locale); 6220 } 6221 let so; 6222 function Lc(e) { 6223 if (he(e)) return e; 6224 if (ot(e)) { 6225 if (e.resolvedOnce && so != null) return so; 6226 if (e.constructor.name === "Function") { 6227 const t = e(); 6228 if (ZE(t)) throw Cn(gn.NOT_SUPPORT_LOCALE_PROMISE_VALUE); 6229 return so = t; 6230 } else throw Cn(gn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION); 6231 } else throw Cn(gn.NOT_SUPPORT_LOCALE_TYPE); 6232 } 6233 function sC(e, t, n) { 6234 return [ 6235 .../* @__PURE__ */ new Set([ 6236 n, 6237 ...ut(t) ? t : Ke(t) ? Object.keys(t) : he(t) ? [ 6238 t 6239 ] : [ 6240 n 6241 ] 6242 ]) 6243 ]; 6244 } 6245 function _m(e, t, n) { 6246 const i = he(n) ? n : ui, a = e; 6247 a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map()); 6248 let r = a.__localeChainCache.get(i); 6249 if (!r) { 6250 r = []; 6251 let s = [ 6252 n 6253 ]; 6254 for (; ut(s); ) s = xc(r, s, t); 6255 const o = ut(t) || !De(t) ? t : t.default ? t.default : null; 6256 s = he(o) ? [ 6257 o 6258 ] : o, ut(s) && xc(r, s, false), a.__localeChainCache.set(i, r); 6259 } 6260 return r; 6261 } 6262 function xc(e, t, n) { 6263 let i = true; 6264 for (let a = 0; a < t.length && Me(i); a++) { 6265 const r = t[a]; 6266 he(r) && (i = oC(e, t[a], n)); 6267 } 6268 return i; 6269 } 6270 function oC(e, t, n) { 6271 let i; 6272 const a = t.split("-"); 6273 do { 6274 const r = a.join("-"); 6275 i = lC(e, r, n), a.splice(-1, 1); 6276 } while (a.length && i === true); 6277 return i; 6278 } 6279 function lC(e, t, n) { 6280 let i = false; 6281 if (!e.includes(t) && (i = true, t)) { 6282 i = t[t.length - 1] !== "!"; 6283 const a = t.replace(/!/g, ""); 6284 e.push(a), (ut(n) || De(n)) && n[a] && (i = n[a]); 6285 } 6286 return i; 6287 } 6288 const uC = "9.14.5", Os = -1, ui = "en-US", Oc = "", $c = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`; 6289 function cC() { 6290 return { 6291 upper: (e, t) => t === "text" && he(e) ? e.toUpperCase() : t === "vnode" && Ke(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e, 6292 lower: (e, t) => t === "text" && he(e) ? e.toLowerCase() : t === "vnode" && Ke(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e, 6293 capitalize: (e, t) => t === "text" && he(e) ? $c(e) : t === "vnode" && Ke(e) && "__v_isVNode" in e ? $c(e.children) : e 6294 }; 6295 } 6296 let Em; 6297 function Tc(e) { 6298 Em = e; 6299 } 6300 let km; 6301 function dC(e) { 6302 km = e; 6303 } 6304 let Cm; 6305 function pC(e) { 6306 Cm = e; 6307 } 6308 let Am = null; 6309 const Ic = (e) => { 6310 Am = e; 6311 }, fC = () => Am; 6312 let Fc = 0; 6313 function mC(e = {}) { 6314 const t = ot(e.onWarn) ? e.onWarn : GE, n = he(e.version) ? e.version : uC, i = he(e.locale) || ot(e.locale) ? e.locale : ui, a = ot(i) ? ui : i, r = ut(e.fallbackLocale) || De(e.fallbackLocale) || he(e.fallbackLocale) || e.fallbackLocale === false ? e.fallbackLocale : a, s = De(e.messages) ? e.messages : oo(a), o = De(e.datetimeFormats) ? e.datetimeFormats : oo(a), l = De(e.numberFormats) ? e.numberFormats : oo(a), u = Ot(et(), e.modifiers, cC()), c = e.pluralRules || et(), d = ot(e.missing) ? e.missing : null, p = Me(e.missingWarn) || ir(e.missingWarn) ? e.missingWarn : true, b = Me(e.fallbackWarn) || ir(e.fallbackWarn) ? e.fallbackWarn : true, h = !!e.fallbackFormat, _ = !!e.unresolving, C = ot(e.postTranslation) ? e.postTranslation : null, D = De(e.processor) ? e.processor : null, N = Me(e.warnHtmlMessage) ? e.warnHtmlMessage : true, v = !!e.escapeParameter, y = ot(e.messageCompiler) ? e.messageCompiler : Em, E = ot(e.messageResolver) ? e.messageResolver : km || zk, k = ot(e.localeFallbacker) ? e.localeFallbacker : Cm || sC, A = Ke(e.fallbackContext) ? e.fallbackContext : void 0, L = e, w = Ke(L.__datetimeFormatters) ? L.__datetimeFormatters : /* @__PURE__ */ new Map(), z = Ke(L.__numberFormatters) ? L.__numberFormatters : /* @__PURE__ */ new Map(), T = Ke(L.__meta) ? L.__meta : {}; 6315 Fc++; 6316 const P = { 6317 version: n, 6318 cid: Fc, 6319 locale: i, 6320 fallbackLocale: r, 6321 messages: s, 6322 modifiers: u, 6323 pluralRules: c, 6324 missing: d, 6325 missingWarn: p, 6326 fallbackWarn: b, 6327 fallbackFormat: h, 6328 unresolving: _, 6329 postTranslation: C, 6330 processor: D, 6331 warnHtmlMessage: N, 6332 escapeParameter: v, 6333 messageCompiler: y, 6334 messageResolver: E, 6335 localeFallbacker: k, 6336 fallbackContext: A, 6337 onWarn: t, 6338 __meta: T 6339 }; 6340 return P.datetimeFormats = o, P.numberFormats = l, P.__datetimeFormatters = w, P.__numberFormatters = z, __INTLIFY_PROD_DEVTOOLS__ && tC(P, n, T), P; 6341 } 6342 const oo = (e) => ({ 6343 [e]: et() 6344 }); 6345 function tu(e, t, n, i, a) { 6346 const { missing: r, onWarn: s } = e; 6347 if (r !== null) { 6348 const o = r(e, n, t, a); 6349 return he(o) ? o : t; 6350 } else return t; 6351 } 6352 function Fi(e, t, n) { 6353 const i = e; 6354 i.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t); 6355 } 6356 function hC(e, t) { 6357 return e === t ? false : e.split("-")[0] === t.split("-")[0]; 6358 } 6359 function gC(e, t) { 6360 const n = t.indexOf(e); 6361 if (n === -1) return false;
6362 for (let i = n + 1; i < t.length; i++) if (hC(e, t[i])) return true; 6363 return false; 6364 } 6365 function lo(e) { 6366 return (t) => bC(t, e); 6367 } 6368 function bC(e, t) { 6369 const n = Ik(t); 6370 if (n == null) throw Zi(0); 6371 if (Zl(n) === 1) { 6372 const i = Fk(n); 6373 return e.plural(i.reduce((a, r) => [ 6374 ...a, 6375 Nc(e, r) 6376 ], [])); 6377 } else return Nc(e, n); 6378 } 6379 function Nc(e, t) { 6380 const n = Nk(t); 6381 if (n != null) return e.type === "text" ? n : e.normalize([ 6382 n 6383 ]); 6384 { 6385 const i = Dk(t).reduce((a, r) => [ 6386 ...a, 6387 Uo(e, r) 6388 ], []); 6389 return e.normalize(i); 6390 } 6391 } 6392 function Uo(e, t) { 6393 const n = Zl(t); 6394 switch (n) { 6395 case 3: 6396 return La(t, n); 6397 case 9: 6398 return La(t, n); 6399 case 4: { 6400 const i = t; 6401 if (hn(i, "k") && i.k) return e.interpolate(e.named(i.k)); 6402 if (hn(i, "key") && i.key) return e.interpolate(e.named(i.key)); 6403 throw Zi(n); 6404 } 6405 case 5: { 6406 const i = t; 6407 if (hn(i, "i") && mt(i.i)) return e.interpolate(e.list(i.i)); 6408 if (hn(i, "index") && mt(i.index)) return e.interpolate(e.list(i.index)); 6409 throw Zi(n); 6410 } 6411 case 6: { 6412 const i = t, a = Pk(i), r = Bk(i); 6413 return e.linked(Uo(e, r), a ? Uo(e, a) : void 0, e.type); 6414 } 6415 case 7: 6416 return La(t, n); 6417 case 8: 6418 return La(t, n); 6419 default: 6420 throw new Error(`unhandled node on format message part: ${n}`); 6421 } 6422 } 6423 const Sm = (e) => e; 6424 let ei = et(); 6425 function wm(e, t = {}) { 6426 let n = false; 6427 const i = t.onError || lk; 6428 return t.onError = (a) => { 6429 n = true, i(a); 6430 }, {
vendor: 8,479 bytes, lines 6431-6677
6431 ...$k(e, t), 6432 detectError: n 6433 }; 6434 } 6435 const vC = (e, t) => { 6436 if (!he(e)) throw Cn(gn.NOT_SUPPORT_NON_STRING_MESSAGE); 6437 { 6438 Me(t.warnHtmlMessage) && t.warnHtmlMessage; 6439 const n = (t.onCacheKey || Sm)(e), i = ei[n]; 6440 if (i) return i; 6441 const { code: a, detectError: r } = wm(e, t), s = new Function(`return ${a}`)(); 6442 return r ? s : ei[n] = s; 6443 } 6444 }; 6445 function yC(e, t) { 6446 if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && he(e)) { 6447 Me(t.warnHtmlMessage) && t.warnHtmlMessage; 6448 const n = (t.onCacheKey || Sm)(e), i = ei[n]; 6449 if (i) return i; 6450 const { ast: a, detectError: r } = wm(e, { 6451 ...t, 6452 location: false, 6453 jit: true 6454 }), s = lo(a); 6455 return r ? s : ei[n] = s; 6456 } else { 6457 const n = e.cacheKey; 6458 return n ? ei[n] || (ei[n] = lo(e)) : lo(e); 6459 } 6460 } 6461 const Dc = () => "", pn = (e) => ot(e); 6462 function Pc(e, ...t) { 6463 const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: r, fallbackLocale: s, messages: o } = e, [l, u] = Vo(...t), c = Me(u.missingWarn) ? u.missingWarn : e.missingWarn, d = Me(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, p = Me(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, b = !!u.resolvedMessage, h = he(u.default) || Me(u.default) ? Me(u.default) ? r ? l : () => l : u.default : n ? r ? l : () => l : "", _ = n || h !== "", C = eu(e, u); 6464 p && _C(u); 6465 let [D, N, v] = b ? [ 6466 l, 6467 C, 6468 o[C] || et() 6469 ] : Lm(e, l, C, s, d, c), y = D, E = l; 6470 if (!b && !(he(y) || Ln(y) || pn(y)) && _ && (y = h, E = y), !b && (!(he(y) || Ln(y) || pn(y)) || !he(N))) return a ? Os : l; 6471 let k = false; 6472 const A = () => { 6473 k = true; 6474 }, L = pn(y) ? y : xm(e, l, N, y, E, A); 6475 if (k) return y; 6476 const w = CC(e, N, v, u), z = Zk(w), T = EC(e, L, z); 6477 let P = i ? i(T, l) : T; 6478 if (p && he(P) && (P = JE(P)), __INTLIFY_PROD_DEVTOOLS__) { 6479 const G = { 6480 timestamp: Date.now(), 6481 key: he(l) ? l : pn(y) ? y.key : "", 6482 locale: N || (pn(y) ? y.locale : ""), 6483 format: he(y) ? y : pn(y) ? y.source : "", 6484 message: P 6485 }; 6486 G.meta = Ot({}, e.__meta, {}), nC(G); 6487 } 6488 return P; 6489 } 6490 function _C(e) { 6491 ut(e.list) ? e.list = e.list.map((t) => he(t) ? yc(t) : t) : Ke(e.named) && Object.keys(e.named).forEach((t) => { 6492 he(e.named[t]) && (e.named[t] = yc(e.named[t])); 6493 }); 6494 } 6495 function Lm(e, t, n, i, a, r) { 6496 const { messages: s, onWarn: o, messageResolver: l, localeFallbacker: u } = e, c = u(e, i, n); 6497 let d = et(), p, b = null; 6498 const h = "translate"; 6499 for (let _ = 0; _ < c.length && (p = c[_], d = s[p] || et(), (b = l(d, t)) === null && (b = d[t]), !(he(b) || Ln(b) || pn(b))); _++) if (!gC(p, c)) { 6500 const C = tu(e, t, p, r, h); 6501 C !== t && (b = C); 6502 } 6503 return [ 6504 b, 6505 p, 6506 d 6507 ]; 6508 } 6509 function xm(e, t, n, i, a, r) { 6510 const { messageCompiler: s, warnHtmlMessage: o } = e; 6511 if (pn(i)) { 6512 const u = i; 6513 return u.locale = u.locale || n, u.key = u.key || t, u; 6514 } 6515 if (s == null) { 6516 const u = () => i; 6517 return u.locale = n, u.key = t, u; 6518 } 6519 const l = s(i, kC(e, n, a, i, o, r)); 6520 return l.locale = n, l.key = t, l.source = i, l; 6521 } 6522 function EC(e, t, n) { 6523 return t(n); 6524 } 6525 function Vo(...e) { 6526 const [t, n, i] = e, a = et(); 6527 if (!he(t) && !mt(t) && !pn(t) && !Ln(t)) throw Cn(gn.INVALID_ARGUMENT); 6528 const r = mt(t) ? String(t) : t; 6529 return mt(n) ? a.plural = n : he(n) ? a.default = n : De(n) && !Ls(n) ? a.named = n : ut(n) && (a.list = n), mt(i) ? a.plural = i : he(i) ? a.default = i : De(i) && Ot(a, i), [ 6530 r, 6531 a 6532 ]; 6533 } 6534 function kC(e, t, n, i, a, r) { 6535 return { 6536 locale: t, 6537 key: n, 6538 warnHtmlMessage: a, 6539 onError: (s) => { 6540 throw r && r(s), s; 6541 }, 6542 onCacheKey: (s) => qE(t, n, s) 6543 }; 6544 } 6545 function CC(e, t, n, i) { 6546 const { modifiers: a, pluralRules: r, messageResolver: s, fallbackLocale: o, fallbackWarn: l, missingWarn: u, fallbackContext: c } = e, d = { 6547 locale: t, 6548 modifiers: a, 6549 pluralRules: r, 6550 messages: (p) => { 6551 let b = s(n, p); 6552 if (b == null && c) { 6553 const [, , h] = Lm(c, p, t, o, l, u); 6554 b = s(h, p); 6555 } 6556 if (he(b) || Ln(b)) { 6557 let h = false; 6558 const _ = xm(e, p, t, b, p, () => { 6559 h = true; 6560 }); 6561 return h ? Dc : _; 6562 } else return pn(b) ? b : Dc; 6563 } 6564 }; 6565 return e.processor && (d.processor = e.processor), i.list && (d.list = i.list), i.named && (d.named = i.named), mt(i.plural) && (d.pluralIndex = i.plural), d; 6566 } 6567 function Bc(e, ...t) { 6568 const { datetimeFormats: n, unresolving: i, fallbackLocale: a, onWarn: r, localeFallbacker: s } = e, { __datetimeFormatters: o } = e, [l, u, c, d] = Ho(...t), p = Me(c.missingWarn) ? c.missingWarn : e.missingWarn; 6569 Me(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn; 6570 const b = !!c.part, h = eu(e, c), _ = s(e, a, h); 6571 if (!he(l) || l === "") return new Intl.DateTimeFormat(h, d).format(u); 6572 let C = {}, D, N = null; 6573 const v = "datetime format"; 6574 for (let k = 0; k < _.length && (D = _[k], C = n[D] || {}, N = C[l], !De(N)); k++) tu(e, l, D, p, v); 6575 if (!De(N) || !he(D)) return i ? Os : l; 6576 let y = `${D}__${l}`; 6577 Ls(d) || (y = `${y}__${JSON.stringify(d)}`); 6578 let E = o.get(y); 6579 return E || (E = new Intl.DateTimeFormat(D, Ot({}, N, d)), o.set(y, E)), b ? E.formatToParts(u) : E.format(u); 6580 } 6581 const Om = [ 6582 "localeMatcher", 6583 "weekday", 6584 "era", 6585 "year", 6586 "month", 6587 "day", 6588 "hour", 6589 "minute", 6590 "second", 6591 "timeZoneName", 6592 "formatMatcher", 6593 "hour12", 6594 "timeZone", 6595 "dateStyle", 6596 "timeStyle", 6597 "calendar", 6598 "dayPeriod", 6599 "numberingSystem", 6600 "hourCycle", 6601 "fractionalSecondDigits" 6602 ]; 6603 function Ho(...e) { 6604 const [t, n, i, a] = e, r = et(); 6605 let s = et(), o; 6606 if (he(t)) { 6607 const l = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/); 6608 if (!l) throw Cn(gn.INVALID_ISO_DATE_ARGUMENT); 6609 const u = l[3] ? l[3].trim().startsWith("T") ? `${l[1].trim()}${l[3].trim()}` : `${l[1].trim()}T${l[3].trim()}` : l[1].trim(); 6610 o = new Date(u); 6611 try { 6612 o.toISOString(); 6613 } catch { 6614 throw Cn(gn.INVALID_ISO_DATE_ARGUMENT); 6615 } 6616 } else if (KE(t)) { 6617 if (isNaN(t.getTime())) throw Cn(gn.INVALID_DATE_ARGUMENT); 6618 o = t; 6619 } else if (mt(t)) o = t; 6620 else throw Cn(gn.INVALID_ARGUMENT); 6621 return he(n) ? r.key = n : De(n) && Object.keys(n).forEach((l) => { 6622 Om.includes(l) ? s[l] = n[l] : r[l] = n[l]; 6623 }), he(i) ? r.locale = i : De(i) && (s = i), De(a) && (s = a), [ 6624 r.key || "", 6625 o, 6626 r, 6627 s 6628 ]; 6629 } 6630 function Mc(e, t, n) { 6631 const i = e; 6632 for (const a in n) { 6633 const r = `${t}__${a}`; 6634 i.__datetimeFormatters.has(r) && i.__datetimeFormatters.delete(r); 6635 } 6636 } 6637 function Rc(e, ...t) { 6638 const { numberFormats: n, unresolving: i, fallbackLocale: a, onWarn: r, localeFallbacker: s } = e, { __numberFormatters: o } = e, [l, u, c, d] = jo(...t), p = Me(c.missingWarn) ? c.missingWarn : e.missingWarn; 6639 Me(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn; 6640 const b = !!c.part, h = eu(e, c), _ = s(e, a, h); 6641 if (!he(l) || l === "") return new Intl.NumberFormat(h, d).format(u); 6642 let C = {}, D, N = null; 6643 const v = "number format"; 6644 for (let k = 0; k < _.length && (D = _[k], C = n[D] || {}, N = C[l], !De(N)); k++) tu(e, l, D, p, v); 6645 if (!De(N) || !he(D)) return i ? Os : l; 6646 let y = `${D}__${l}`; 6647 Ls(d) || (y = `${y}__${JSON.stringify(d)}`); 6648 let E = o.get(y); 6649 return E || (E = new Intl.NumberFormat(D, Ot({}, N, d)), o.set(y, E)), b ? E.formatToParts(u) : E.format(u); 6650 } 6651 const $m = [ 6652 "localeMatcher", 6653 "style", 6654 "currency", 6655 "currencyDisplay", 6656 "currencySign", 6657 "useGrouping", 6658 "minimumIntegerDigits", 6659 "minimumFractionDigits", 6660 "maximumFractionDigits", 6661 "minimumSignificantDigits", 6662 "maximumSignificantDigits", 6663 "compactDisplay", 6664 "notation", 6665 "signDisplay", 6666 "unit", 6667 "unitDisplay", 6668 "roundingMode", 6669 "roundingPriority", 6670 "roundingIncrement", 6671 "trailingZeroDisplay" 6672 ]; 6673 function jo(...e) { 6674 const [t, n, i, a] = e, r = et(); 6675 let s = et(); 6676 if (!mt(t)) throw Cn(gn.INVALID_ARGUMENT); 6677 const o = t;
6678 return he(n) ? r.key = n : De(n) && Object.keys(n).forEach((l) => { 6679 $m.includes(l) ? s[l] = n[l] : r[l] = n[l]; 6680 }), he(i) ? r.locale = i : De(i) && (s = i), De(a) && (s = a), [ 6681 r.key || "", 6682 o, 6683 r, 6684 s 6685 ]; 6686 } 6687 function Uc(e, t, n) { 6688 const i = e; 6689 for (const a in n) { 6690 const r = `${t}__${a}`; 6691 i.__numberFormatters.has(r) && i.__numberFormatters.delete(r); 6692 } 6693 } 6694 Tk(); 6695 const AC = "9.14.5"; 6696 function SC() { 6697 typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Mn().__VUE_I18N_FULL_INSTALL__ = true), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Mn().__VUE_I18N_LEGACY_API__ = true), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (Mn().__INTLIFY_JIT_COMPILATION__ = false), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Mn().__INTLIFY_DROP_MESSAGE_COMPILER__ = false), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Mn().__INTLIFY_PROD_DEVTOOLS__ = false); 6698 } 6699 const wC = aC.__EXTEND_POINT__, In = xs(wC); 6700 In(), In(), In(), In(), In(), In(), In(), In(), In(); 6701 const Tm = gn.__EXTEND_POINT__, jt = xs(Tm), _t = { 6702 UNEXPECTED_RETURN_TYPE: Tm, 6703 INVALID_ARGUMENT: jt(), 6704 MUST_BE_CALL_SETUP_TOP: jt(), 6705 NOT_INSTALLED: jt(), 6706 NOT_AVAILABLE_IN_LEGACY_MODE: jt(), 6707 REQUIRED_VALUE: jt(), 6708 INVALID_VALUE: jt(), 6709 CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: jt(), 6710 NOT_INSTALLED_WITH_PROVIDE: jt(), 6711 UNEXPECTED_ERROR: jt(), 6712 NOT_COMPATIBLE_LEGACY_VUE_I18N: jt(), 6713 BRIDGE_SUPPORT_VUE_2_ONLY: jt(), 6714 MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: jt(), 6715 NOT_AVAILABLE_COMPOSITION_IN_LEGACY: jt(), 6716 __EXTEND_POINT__: jt() 6717 }; 6718 function St(e, ...t) { 6719 return Si(e, null, void 0); 6720 } 6721 const zo = cr("__translateVNode"), Wo = cr("__datetimeParts"), Go = cr("__numberParts"), Im = cr("__setPluralRules"), Fm = cr("__injectWithOption"), qo = cr("__dispose"); 6722 function ta(e) { 6723 if (!Ke(e) || Ln(e)) return e; 6724 for (const t in e) if (hn(e, t)) if (!t.includes(".")) Ke(e[t]) && ta(e[t]); 6725 else { 6726 const n = t.split("."), i = n.length - 1; 6727 let a = e, r = false; 6728 for (let s = 0; s < i; s++) { 6729 if (n[s] === "__proto__") throw new Error(`unsafe key: ${n[s]}`); 6730 if (n[s] in a || (a[n[s]] = et()), !Ke(a[n[s]])) { 6731 r = true; 6732 break; 6733 } 6734 a = a[n[s]]; 6735 } 6736 if (r || (Ln(a) ? vm.includes(n[i]) || delete e[t] : (a[n[i]] = e[t], delete e[t])), !Ln(a)) { 6737 const s = a[n[i]]; 6738 Ke(s) && ta(s); 6739 } 6740 } 6741 return e; 6742 } 6743 function $s(e, t) { 6744 const { messages: n, __i18n: i, messageResolver: a, flatJson: r } = t, s = De(n) ? n : ut(i) ? et() : { 6745 [e]: et() 6746 }; 6747 if (ut(i) && i.forEach((o) => { 6748 if ("locale" in o && "resource" in o) { 6749 const { locale: l, resource: u } = o; 6750 l ? (s[l] = s[l] || et(), Ua(u, s[l])) : Ua(u, s); 6751 } else he(o) && Ua(JSON.parse(o), s); 6752 }), a == null && r) for (const o in s) hn(s, o) && ta(s[o]); 6753 return s; 6754 } 6755 function LC(e) { 6756 return e.type; 6757 } 6758 function Nm(e, t, n) { 6759 let i = Ke(t.messages) ? t.messages : et(); 6760 "__i18nGlobal" in n && (i = $s(e.locale.value, { 6761 messages: i, 6762 __i18n: n.__i18nGlobal 6763 })); 6764 const a = Object.keys(i); 6765 a.length && a.forEach((r) => { 6766 e.mergeLocaleMessage(r, i[r]); 6767 }); 6768 { 6769 if (Ke(t.datetimeFormats)) { 6770 const r = Object.keys(t.datetimeFormats); 6771 r.length && r.forEach((s) => { 6772 e.mergeDateTimeFormat(s, t.datetimeFormats[s]); 6773 }); 6774 } 6775 if (Ke(t.numberFormats)) { 6776 const r = Object.keys(t.numberFormats); 6777 r.length && r.forEach((s) => { 6778 e.mergeNumberFormat(s, t.numberFormats[s]); 6779 }); 6780 } 6781 } 6782 } 6783 function Vc(e) { 6784 return K(gs, null, e, 0); 6785 } 6786 const Hc = () => [], xC = () => false; 6787 let jc = 0; 6788 function zc(e) { 6789 return (t, n, i, a) => e(n, i, kt() || void 0, a); 6790 } 6791 function nu(e = {}, t) { 6792 const { __root: n, __injectWithOption: i } = e, a = n === void 0, r = e.flatJson, s = Ja ? pe : yi, o = !!e.translateExistCompatible;
vendor: 34,789 bytes, lines 6793-7908
6793 let l = Me(e.inheritLocale) ? e.inheritLocale : true; 6794 const u = s(n && l ? n.locale.value : he(e.locale) ? e.locale : ui), c = s(n && l ? n.fallbackLocale.value : he(e.fallbackLocale) || ut(e.fallbackLocale) || De(e.fallbackLocale) || e.fallbackLocale === false ? e.fallbackLocale : u.value), d = s($s(u.value, e)), p = s(De(e.datetimeFormats) ? e.datetimeFormats : { 6795 [u.value]: {} 6796 }), b = s(De(e.numberFormats) ? e.numberFormats : { 6797 [u.value]: {} 6798 }); 6799 let h = n ? n.missingWarn : Me(e.missingWarn) || ir(e.missingWarn) ? e.missingWarn : true, _ = n ? n.fallbackWarn : Me(e.fallbackWarn) || ir(e.fallbackWarn) ? e.fallbackWarn : true, C = n ? n.fallbackRoot : Me(e.fallbackRoot) ? e.fallbackRoot : true, D = !!e.fallbackFormat, N = ot(e.missing) ? e.missing : null, v = ot(e.missing) ? zc(e.missing) : null, y = ot(e.postTranslation) ? e.postTranslation : null, E = n ? n.warnHtmlMessage : Me(e.warnHtmlMessage) ? e.warnHtmlMessage : true, k = !!e.escapeParameter; 6800 const A = n ? n.modifiers : De(e.modifiers) ? e.modifiers : {}; 6801 let L = e.pluralRules || n && n.pluralRules, w; 6802 w = (() => { 6803 a && Ic(null); 6804 const S = { 6805 version: AC, 6806 locale: u.value, 6807 fallbackLocale: c.value, 6808 messages: d.value, 6809 modifiers: A, 6810 pluralRules: L, 6811 missing: v === null ? void 0 : v, 6812 missingWarn: h, 6813 fallbackWarn: _, 6814 fallbackFormat: D, 6815 unresolving: true, 6816 postTranslation: y === null ? void 0 : y, 6817 warnHtmlMessage: E, 6818 escapeParameter: k, 6819 messageResolver: e.messageResolver, 6820 messageCompiler: e.messageCompiler, 6821 __meta: { 6822 framework: "vue" 6823 } 6824 }; 6825 S.datetimeFormats = p.value, S.numberFormats = b.value, S.__datetimeFormatters = De(w) ? w.__datetimeFormatters : void 0, S.__numberFormatters = De(w) ? w.__numberFormatters : void 0; 6826 const $ = mC(S); 6827 return a && Ic($), $; 6828 })(), Fi(w, u.value, c.value); 6829 function z() { 6830 return [ 6831 u.value, 6832 c.value, 6833 d.value, 6834 p.value, 6835 b.value 6836 ]; 6837 } 6838 const T = ne({ 6839 get: () => u.value, 6840 set: (S) => { 6841 u.value = S, w.locale = u.value; 6842 } 6843 }), P = ne({ 6844 get: () => c.value, 6845 set: (S) => { 6846 c.value = S, w.fallbackLocale = c.value, Fi(w, u.value, S); 6847 } 6848 }), G = ne(() => d.value), X = ne(() => p.value), Y = ne(() => b.value); 6849 function q() { 6850 return ot(y) ? y : null; 6851 } 6852 function J(S) { 6853 y = S, w.postTranslation = S; 6854 } 6855 function Z() { 6856 return N; 6857 } 6858 function se(S) { 6859 S !== null && (v = zc(S)), N = S, w.missing = v; 6860 } 6861 const Q = (S, $, le, de, st, Ht) => { 6862 z(); 6863 let vt; 6864 try { 6865 __INTLIFY_PROD_DEVTOOLS__, a || (w.fallbackContext = n ? fC() : void 0), vt = S(w); 6866 } finally { 6867 __INTLIFY_PROD_DEVTOOLS__, a || (w.fallbackContext = void 0); 6868 } 6869 if (le !== "translate exists" && mt(vt) && vt === Os || le === "translate exists" && !vt) { 6870 const [Ti, Ru] = $(); 6871 return n && C ? de(n) : st(Ti); 6872 } else { 6873 if (Ht(vt)) return vt; 6874 throw St(_t.UNEXPECTED_RETURN_TYPE); 6875 } 6876 }; 6877 function oe(...S) { 6878 return Q(($) => Reflect.apply(Pc, null, [ 6879 $, 6880 ...S 6881 ]), () => Vo(...S), "translate", ($) => Reflect.apply($.t, $, [ 6882 ...S 6883 ]), ($) => $, ($) => he($)); 6884 } 6885 function ce(...S) { 6886 const [$, le, de] = S; 6887 if (de && !Ke(de)) throw St(_t.INVALID_ARGUMENT); 6888 return oe($, le, Ot({ 6889 resolvedMessage: true 6890 }, de || {})); 6891 } 6892 function be(...S) { 6893 return Q(($) => Reflect.apply(Bc, null, [ 6894 $, 6895 ...S 6896 ]), () => Ho(...S), "datetime format", ($) => Reflect.apply($.d, $, [ 6897 ...S 6898 ]), () => Oc, ($) => he($)); 6899 } 6900 function ye(...S) { 6901 return Q(($) => Reflect.apply(Rc, null, [ 6902 $, 6903 ...S 6904 ]), () => jo(...S), "number format", ($) => Reflect.apply($.n, $, [ 6905 ...S 6906 ]), () => Oc, ($) => he($)); 6907 } 6908 function ke(S) { 6909 return S.map(($) => he($) || mt($) || Me($) ? Vc(String($)) : $); 6910 } 6911 const Ae = { 6912 normalize: ke, 6913 interpolate: (S) => S, 6914 type: "vnode" 6915 }; 6916 function _e(...S) { 6917 return Q(($) => { 6918 let le; 6919 const de = $; 6920 try { 6921 de.processor = Ae, le = Reflect.apply(Pc, null, [ 6922 de, 6923 ...S 6924 ]); 6925 } finally { 6926 de.processor = null; 6927 } 6928 return le; 6929 }, () => Vo(...S), "translate", ($) => $[zo](...S), ($) => [ 6930 Vc($) 6931 ], ($) => ut($)); 6932 } 6933 function Te(...S) { 6934 return Q(($) => Reflect.apply(Rc, null, [ 6935 $, 6936 ...S 6937 ]), () => jo(...S), "number format", ($) => $[Go](...S), Hc, ($) => he($) || ut($)); 6938 } 6939 function Ee(...S) { 6940 return Q(($) => Reflect.apply(Bc, null, [ 6941 $, 6942 ...S 6943 ]), () => Ho(...S), "datetime format", ($) => $[Wo](...S), Hc, ($) => he($) || ut($)); 6944 } 6945 function Le(S) { 6946 L = S, w.pluralRules = L; 6947 } 6948 function Be(S, $) { 6949 return Q(() => { 6950 if (!S) return false; 6951 const le = he($) ? $ : u.value, de = B(le), st = w.messageResolver(de, S); 6952 return o ? st != null : Ln(st) || pn(st) || he(st); 6953 }, () => [ 6954 S 6955 ], "translate exists", (le) => Reflect.apply(le.te, le, [ 6956 S, 6957 $ 6958 ]), xC, (le) => Me(le)); 6959 } 6960 function Ie(S) { 6961 let $ = null; 6962 const le = _m(w, c.value, u.value); 6963 for (let de = 0; de < le.length; de++) { 6964 const st = d.value[le[de]] || {}, Ht = w.messageResolver(st, S); 6965 if (Ht != null) { 6966 $ = Ht; 6967 break; 6968 } 6969 } 6970 return $; 6971 } 6972 function Ve(S) { 6973 return Ie(S) ?? (n ? n.tm(S) || {} : {}); 6974 } 6975 function B(S) { 6976 return d.value[S] || {}; 6977 } 6978 function ie(S, $) { 6979 if (r) { 6980 const le = { 6981 [S]: $ 6982 }; 6983 for (const de in le) hn(le, de) && ta(le[de]); 6984 $ = le[S]; 6985 } 6986 d.value[S] = $, w.messages = d.value; 6987 } 6988 function Fe(S, $) { 6989 d.value[S] = d.value[S] || {}; 6990 const le = { 6991 [S]: $ 6992 }; 6993 if (r) for (const de in le) hn(le, de) && ta(le[de]); 6994 $ = le[S], Ua($, d.value[S]), w.messages = d.value; 6995 } 6996 function qe(S) { 6997 return p.value[S] || {}; 6998 } 6999 function He(S, $) { 7000 p.value[S] = $, w.datetimeFormats = p.value, Mc(w, S, $); 7001 } 7002 function xt(S, $) { 7003 p.value[S] = Ot(p.value[S] || {}, $), w.datetimeFormats = p.value, Mc(w, S, $); 7004 } 7005 function f(S) { 7006 return b.value[S] || {}; 7007 } 7008 function g(S, $) { 7009 b.value[S] = $, w.numberFormats = b.value, Uc(w, S, $); 7010 } 7011 function F(S, $) { 7012 b.value[S] = Ot(b.value[S] || {}, $), w.numberFormats = b.value, Uc(w, S, $); 7013 } 7014 jc++, n && Ja && (Ue(n.locale, (S) => { 7015 l && (u.value = S, w.locale = S, Fi(w, u.value, c.value)); 7016 }), Ue(n.fallbackLocale, (S) => { 7017 l && (c.value = S, w.fallbackLocale = S, Fi(w, u.value, c.value)); 7018 })); 7019 const W = { 7020 id: jc, 7021 locale: T, 7022 fallbackLocale: P, 7023 get inheritLocale() { 7024 return l; 7025 }, 7026 set inheritLocale(S) { 7027 l = S, S && n && (u.value = n.locale.value, c.value = n.fallbackLocale.value, Fi(w, u.value, c.value)); 7028 }, 7029 get availableLocales() { 7030 return Object.keys(d.value).sort(); 7031 }, 7032 messages: G, 7033 get modifiers() { 7034 return A; 7035 }, 7036 get pluralRules() { 7037 return L || {}; 7038 }, 7039 get isGlobal() { 7040 return a; 7041 }, 7042 get missingWarn() { 7043 return h; 7044 }, 7045 set missingWarn(S) { 7046 h = S, w.missingWarn = h; 7047 }, 7048 get fallbackWarn() { 7049 return _; 7050 }, 7051 set fallbackWarn(S) { 7052 _ = S, w.fallbackWarn = _; 7053 }, 7054 get fallbackRoot() { 7055 return C; 7056 }, 7057 set fallbackRoot(S) { 7058 C = S; 7059 }, 7060 get fallbackFormat() { 7061 return D; 7062 }, 7063 set fallbackFormat(S) { 7064 D = S, w.fallbackFormat = D; 7065 }, 7066 get warnHtmlMessage() { 7067 return E; 7068 }, 7069 set warnHtmlMessage(S) { 7070 E = S, w.warnHtmlMessage = S; 7071 }, 7072 get escapeParameter() { 7073 return k; 7074 }, 7075 set escapeParameter(S) { 7076 k = S, w.escapeParameter = S; 7077 }, 7078 t: oe, 7079 getLocaleMessage: B, 7080 setLocaleMessage: ie, 7081 mergeLocaleMessage: Fe, 7082 getPostTranslationHandler: q, 7083 setPostTranslationHandler: J, 7084 getMissingHandler: Z, 7085 setMissingHandler: se, 7086 [Im]: Le 7087 }; 7088 return W.datetimeFormats = X, W.numberFormats = Y, W.rt = ce, W.te = Be, W.tm = Ve, W.d = be, W.n = ye, W.getDateTimeFormat = qe, W.setDateTimeFormat = He, W.mergeDateTimeFormat = xt, W.getNumberFormat = f, W.setNumberFormat = g, W.mergeNumberFormat = F, W[Fm] = i, W[zo] = _e, W[Wo] = Ee, W[Go] = Te, W; 7089 } 7090 function OC(e) { 7091 const t = he(e.locale) ? e.locale : ui, n = he(e.fallbackLocale) || ut(e.fallbackLocale) || De(e.fallbackLocale) || e.fallbackLocale === false ? e.fallbackLocale : t, i = ot(e.missing) ? e.missing : void 0, a = Me(e.silentTranslationWarn) || ir(e.silentTranslationWarn) ? !e.silentTranslationWarn : true, r = Me(e.silentFallbackWarn) || ir(e.silentFallbackWarn) ? !e.silentFallbackWarn : true, s = Me(e.fallbackRoot) ? e.fallbackRoot : true, o = !!e.formatFallbackMessages, l = De(e.modifiers) ? e.modifiers : {}, u = e.pluralizationRules, c = ot(e.postTranslation) ? e.postTranslation : void 0, d = he(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : true, p = !!e.escapeParameterHtml, b = Me(e.sync) ? e.sync : true; 7092 let h = e.messages; 7093 if (De(e.sharedMessages)) { 7094 const k = e.sharedMessages; 7095 h = Object.keys(k).reduce((A, L) => { 7096 const w = A[L] || (A[L] = {}); 7097 return Ot(w, k[L]), A; 7098 }, h || {}); 7099 } 7100 const { __i18n: _, __root: C, __injectWithOption: D } = e, N = e.datetimeFormats, v = e.numberFormats, y = e.flatJson, E = e.translateExistCompatible; 7101 return { 7102 locale: t, 7103 fallbackLocale: n, 7104 messages: h, 7105 flatJson: y, 7106 datetimeFormats: N, 7107 numberFormats: v, 7108 missing: i, 7109 missingWarn: a, 7110 fallbackWarn: r, 7111 fallbackRoot: s, 7112 fallbackFormat: o, 7113 modifiers: l, 7114 pluralRules: u, 7115 postTranslation: c, 7116 warnHtmlMessage: d, 7117 escapeParameter: p, 7118 messageResolver: e.messageResolver, 7119 inheritLocale: b, 7120 translateExistCompatible: E, 7121 __i18n: _, 7122 __root: C, 7123 __injectWithOption: D 7124 }; 7125 } 7126 function Yo(e = {}, t) { 7127 { 7128 const n = nu(OC(e)), { __extender: i } = e, a = { 7129 id: n.id, 7130 get locale() { 7131 return n.locale.value; 7132 }, 7133 set locale(r) { 7134 n.locale.value = r; 7135 }, 7136 get fallbackLocale() { 7137 return n.fallbackLocale.value; 7138 }, 7139 set fallbackLocale(r) { 7140 n.fallbackLocale.value = r; 7141 }, 7142 get messages() { 7143 return n.messages.value; 7144 }, 7145 get datetimeFormats() { 7146 return n.datetimeFormats.value; 7147 }, 7148 get numberFormats() { 7149 return n.numberFormats.value; 7150 }, 7151 get availableLocales() { 7152 return n.availableLocales; 7153 }, 7154 get formatter() { 7155 return { 7156 interpolate() { 7157 return []; 7158 } 7159 }; 7160 }, 7161 set formatter(r) { 7162 }, 7163 get missing() { 7164 return n.getMissingHandler(); 7165 }, 7166 set missing(r) { 7167 n.setMissingHandler(r); 7168 }, 7169 get silentTranslationWarn() { 7170 return Me(n.missingWarn) ? !n.missingWarn : n.missingWarn; 7171 }, 7172 set silentTranslationWarn(r) { 7173 n.missingWarn = Me(r) ? !r : r; 7174 }, 7175 get silentFallbackWarn() { 7176 return Me(n.fallbackWarn) ? !n.fallbackWarn : n.fallbackWarn; 7177 }, 7178 set silentFallbackWarn(r) { 7179 n.fallbackWarn = Me(r) ? !r : r; 7180 }, 7181 get modifiers() { 7182 return n.modifiers; 7183 }, 7184 get formatFallbackMessages() { 7185 return n.fallbackFormat; 7186 }, 7187 set formatFallbackMessages(r) { 7188 n.fallbackFormat = r; 7189 }, 7190 get postTranslation() { 7191 return n.getPostTranslationHandler(); 7192 }, 7193 set postTranslation(r) { 7194 n.setPostTranslationHandler(r); 7195 }, 7196 get sync() { 7197 return n.inheritLocale; 7198 }, 7199 set sync(r) { 7200 n.inheritLocale = r; 7201 }, 7202 get warnHtmlInMessage() { 7203 return n.warnHtmlMessage ? "warn" : "off"; 7204 }, 7205 set warnHtmlInMessage(r) { 7206 n.warnHtmlMessage = r !== "off"; 7207 }, 7208 get escapeParameterHtml() { 7209 return n.escapeParameter; 7210 }, 7211 set escapeParameterHtml(r) { 7212 n.escapeParameter = r; 7213 }, 7214 get preserveDirectiveContent() { 7215 return true; 7216 }, 7217 set preserveDirectiveContent(r) { 7218 }, 7219 get pluralizationRules() { 7220 return n.pluralRules || {}; 7221 }, 7222 __composer: n, 7223 t(...r) { 7224 const [s, o, l] = r, u = {}; 7225 let c = null, d = null; 7226 if (!he(s)) throw St(_t.INVALID_ARGUMENT); 7227 const p = s; 7228 return he(o) ? u.locale = o : ut(o) ? c = o : De(o) && (d = o), ut(l) ? c = l : De(l) && (d = l), Reflect.apply(n.t, n, [ 7229 p, 7230 c || d || {}, 7231 u 7232 ]); 7233 }, 7234 rt(...r) { 7235 return Reflect.apply(n.rt, n, [ 7236 ...r 7237 ]); 7238 }, 7239 tc(...r) { 7240 const [s, o, l] = r, u = { 7241 plural: 1 7242 }; 7243 let c = null, d = null; 7244 if (!he(s)) throw St(_t.INVALID_ARGUMENT); 7245 const p = s; 7246 return he(o) ? u.locale = o : mt(o) ? u.plural = o : ut(o) ? c = o : De(o) && (d = o), he(l) ? u.locale = l : ut(l) ? c = l : De(l) && (d = l), Reflect.apply(n.t, n, [ 7247 p, 7248 c || d || {}, 7249 u 7250 ]); 7251 }, 7252 te(r, s) { 7253 return n.te(r, s); 7254 }, 7255 tm(r) { 7256 return n.tm(r); 7257 }, 7258 getLocaleMessage(r) { 7259 return n.getLocaleMessage(r); 7260 }, 7261 setLocaleMessage(r, s) { 7262 n.setLocaleMessage(r, s); 7263 }, 7264 mergeLocaleMessage(r, s) { 7265 n.mergeLocaleMessage(r, s); 7266 }, 7267 d(...r) { 7268 return Reflect.apply(n.d, n, [ 7269 ...r 7270 ]); 7271 }, 7272 getDateTimeFormat(r) { 7273 return n.getDateTimeFormat(r); 7274 }, 7275 setDateTimeFormat(r, s) { 7276 n.setDateTimeFormat(r, s); 7277 }, 7278 mergeDateTimeFormat(r, s) { 7279 n.mergeDateTimeFormat(r, s); 7280 }, 7281 n(...r) { 7282 return Reflect.apply(n.n, n, [ 7283 ...r 7284 ]); 7285 }, 7286 getNumberFormat(r) { 7287 return n.getNumberFormat(r); 7288 }, 7289 setNumberFormat(r, s) { 7290 n.setNumberFormat(r, s); 7291 }, 7292 mergeNumberFormat(r, s) { 7293 n.mergeNumberFormat(r, s); 7294 }, 7295 getChoiceIndex(r, s) { 7296 return -1; 7297 } 7298 }; 7299 return a.__extender = i, a; 7300 } 7301 } 7302 const ru = { 7303 tag: { 7304 type: [ 7305 String, 7306 Object 7307 ] 7308 }, 7309 locale: { 7310 type: String 7311 }, 7312 scope: { 7313 type: String, 7314 validator: (e) => e === "parent" || e === "global", 7315 default: "parent" 7316 }, 7317 i18n: { 7318 type: Object 7319 } 7320 }; 7321 function $C({ slots: e }, t) { 7322 return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((n, i) => [ 7323 ...n, 7324 ...i.type === me ? i.children : [ 7325 i 7326 ] 7327 ], []) : t.reduce((n, i) => { 7328 const a = e[i]; 7329 return a && (n[i] = a()), n; 7330 }, et()); 7331 } 7332 function Dm(e) { 7333 return me; 7334 } 7335 const TC = Hr({ 7336 name: "i18n-t", 7337 props: Ot({ 7338 keypath: { 7339 type: String, 7340 required: true 7341 }, 7342 plural: { 7343 type: [ 7344 Number, 7345 String 7346 ], 7347 validator: (e) => mt(e) || !isNaN(e) 7348 } 7349 }, ru), 7350 setup(e, t) { 7351 const { slots: n, attrs: i } = t, a = e.i18n || fr({ 7352 useScope: e.scope, 7353 __useComponent: true 7354 }); 7355 return () => { 7356 const r = Object.keys(n).filter((d) => d !== "_"), s = et(); 7357 e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural = he(e.plural) ? +e.plural : e.plural); 7358 const o = $C(t, r), l = a[zo](e.keypath, o, s), u = Ot(et(), i), c = he(e.tag) || Ke(e.tag) ? e.tag : Dm(); 7359 return Pr(c, u, l); 7360 }; 7361 } 7362 }), Wc = TC; 7363 function IC(e) { 7364 return ut(e) && !he(e[0]); 7365 } 7366 function Pm(e, t, n, i) { 7367 const { slots: a, attrs: r } = t; 7368 return () => { 7369 const s = { 7370 part: true 7371 }; 7372 let o = et(); 7373 e.locale && (s.locale = e.locale), he(e.format) ? s.key = e.format : Ke(e.format) && (he(e.format.key) && (s.key = e.format.key), o = Object.keys(e.format).reduce((p, b) => n.includes(b) ? Ot(et(), p, { 7374 [b]: e.format[b] 7375 }) : p, et())); 7376 const l = i(e.value, s, o); 7377 let u = [ 7378 s.key 7379 ]; 7380 ut(l) ? u = l.map((p, b) => { 7381 const h = a[p.type], _ = h ? h({ 7382 [p.type]: p.value, 7383 index: b, 7384 parts: l 7385 }) : [ 7386 p.value 7387 ]; 7388 return IC(_) && (_[0].key = `${p.type}-${b}`), _; 7389 }) : he(l) && (u = [ 7390 l 7391 ]); 7392 const c = Ot(et(), r), d = he(e.tag) || Ke(e.tag) ? e.tag : Dm(); 7393 return Pr(d, c, u); 7394 }; 7395 } 7396 const FC = Hr({ 7397 name: "i18n-n", 7398 props: Ot({ 7399 value: { 7400 type: Number, 7401 required: true 7402 }, 7403 format: { 7404 type: [ 7405 String, 7406 Object 7407 ] 7408 } 7409 }, ru), 7410 setup(e, t) { 7411 const n = e.i18n || fr({ 7412 useScope: e.scope, 7413 __useComponent: true 7414 }); 7415 return Pm(e, t, $m, (...i) => n[Go](...i)); 7416 } 7417 }), Gc = FC, NC = Hr({ 7418 name: "i18n-d", 7419 props: Ot({ 7420 value: { 7421 type: [ 7422 Number, 7423 Date 7424 ], 7425 required: true 7426 }, 7427 format: { 7428 type: [ 7429 String, 7430 Object 7431 ] 7432 } 7433 }, ru), 7434 setup(e, t) { 7435 const n = e.i18n || fr({ 7436 useScope: e.scope, 7437 __useComponent: true 7438 }); 7439 return Pm(e, t, Om, (...i) => n[Wo](...i)); 7440 } 7441 }), qc = NC; 7442 function DC(e, t) { 7443 const n = e; 7444 if (e.mode === "composition") return n.__getInstance(t) || e.global; 7445 { 7446 const i = n.__getInstance(t); 7447 return i != null ? i.__composer : e.global.__composer; 7448 } 7449 } 7450 function PC(e) { 7451 const t = (n) => { 7452 const { instance: i, modifiers: a, value: r } = n; 7453 if (!i || !i.$) throw St(_t.UNEXPECTED_ERROR); 7454 const s = DC(e, i.$), o = Yc(r); 7455 return [ 7456 Reflect.apply(s.t, s, [ 7457 ...Kc(o) 7458 ]), 7459 s 7460 ]; 7461 }; 7462 return { 7463 created: (n, i) => { 7464 const [a, r] = t(i); 7465 Ja && e.global === r && (n.__i18nWatcher = Ue(r.locale, () => { 7466 i.instance && i.instance.$forceUpdate(); 7467 })), n.__composer = r, n.textContent = a; 7468 }, 7469 unmounted: (n) => { 7470 Ja && n.__i18nWatcher && (n.__i18nWatcher(), n.__i18nWatcher = void 0, delete n.__i18nWatcher), n.__composer && (n.__composer = void 0, delete n.__composer); 7471 }, 7472 beforeUpdate: (n, { value: i }) => { 7473 if (n.__composer) { 7474 const a = n.__composer, r = Yc(i); 7475 n.textContent = Reflect.apply(a.t, a, [ 7476 ...Kc(r) 7477 ]); 7478 } 7479 }, 7480 getSSRProps: (n) => { 7481 const [i] = t(n); 7482 return { 7483 textContent: i 7484 }; 7485 } 7486 }; 7487 } 7488 function Yc(e) { 7489 if (he(e)) return { 7490 path: e 7491 }; 7492 if (De(e)) { 7493 if (!("path" in e)) throw St(_t.REQUIRED_VALUE, "path"); 7494 return e; 7495 } else throw St(_t.INVALID_VALUE); 7496 } 7497 function Kc(e) { 7498 const { path: t, locale: n, args: i, choice: a, plural: r } = e, s = {}, o = i || {}; 7499 return he(n) && (s.locale = n), mt(a) && (s.plural = a), mt(r) && (s.plural = r), [ 7500 t, 7501 o, 7502 s 7503 ]; 7504 } 7505 function BC(e, t, ...n) { 7506 const i = De(n[0]) ? n[0] : {}, a = !!i.useI18nComponentName; 7507 (Me(i.globalInstall) ? i.globalInstall : true) && ([ 7508 a ? "i18n" : Wc.name, 7509 "I18nT" 7510 ].forEach((s) => e.component(s, Wc)), [ 7511 Gc.name, 7512 "I18nN" 7513 ].forEach((s) => e.component(s, Gc)), [ 7514 qc.name, 7515 "I18nD" 7516 ].forEach((s) => e.component(s, qc))), e.directive("t", PC(t)); 7517 } 7518 function MC(e, t, n) { 7519 return { 7520 beforeCreate() { 7521 const i = kt(); 7522 if (!i) throw St(_t.UNEXPECTED_ERROR); 7523 const a = this.$options; 7524 if (a.i18n) { 7525 const r = a.i18n; 7526 if (a.__i18n && (r.__i18n = a.__i18n), r.__root = t, this === this.$root) this.$i18n = Xc(e, r); 7527 else { 7528 r.__injectWithOption = true, r.__extender = n.__vueI18nExtend, this.$i18n = Yo(r); 7529 const s = this.$i18n; 7530 s.__extender && (s.__disposer = s.__extender(this.$i18n)); 7531 } 7532 } else if (a.__i18n) if (this === this.$root) this.$i18n = Xc(e, a); 7533 else { 7534 this.$i18n = Yo({ 7535 __i18n: a.__i18n, 7536 __injectWithOption: true, 7537 __extender: n.__vueI18nExtend, 7538 __root: t 7539 }); 7540 const r = this.$i18n; 7541 r.__extender && (r.__disposer = r.__extender(this.$i18n)); 7542 } 7543 else this.$i18n = e; 7544 a.__i18nGlobal && Nm(t, a, a), this.$t = (...r) => this.$i18n.t(...r), this.$rt = (...r) => this.$i18n.rt(...r), this.$tc = (...r) => this.$i18n.tc(...r), this.$te = (r, s) => this.$i18n.te(r, s), this.$d = (...r) => this.$i18n.d(...r), this.$n = (...r) => this.$i18n.n(...r), this.$tm = (r) => this.$i18n.tm(r), n.__setInstance(i, this.$i18n); 7545 }, 7546 mounted() { 7547 }, 7548 unmounted() { 7549 const i = kt(); 7550 if (!i) throw St(_t.UNEXPECTED_ERROR); 7551 const a = this.$i18n; 7552 delete this.$t, delete this.$rt, delete this.$tc, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), n.__deleteInstance(i), delete this.$i18n; 7553 } 7554 }; 7555 } 7556 function Xc(e, t) { 7557 e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[Im](t.pluralizationRules || e.pluralizationRules); 7558 const n = $s(e.locale, { 7559 messages: t.messages, 7560 __i18n: t.__i18n 7561 }); 7562 return Object.keys(n).forEach((i) => e.mergeLocaleMessage(i, n[i])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((i) => e.mergeDateTimeFormat(i, t.datetimeFormats[i])), t.numberFormats && Object.keys(t.numberFormats).forEach((i) => e.mergeNumberFormat(i, t.numberFormats[i])), e; 7563 } 7564 const RC = cr("global-vue-i18n"); 7565 function UC(e = {}, t) { 7566 const n = __VUE_I18N_LEGACY_API__ && Me(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, i = Me(e.globalInjection) ? e.globalInjection : true, a = __VUE_I18N_LEGACY_API__ && n ? !!e.allowComposition : true, r = /* @__PURE__ */ new Map(), [s, o] = VC(e, n), l = cr(""); 7567 function u(p) { 7568 return r.get(p) || null; 7569 } 7570 function c(p, b) { 7571 r.set(p, b); 7572 } 7573 function d(p) { 7574 r.delete(p); 7575 } 7576 { 7577 const p = { 7578 get mode() { 7579 return __VUE_I18N_LEGACY_API__ && n ? "legacy" : "composition"; 7580 }, 7581 get allowComposition() { 7582 return a; 7583 }, 7584 async install(b, ...h) { 7585 if (b.__VUE_I18N_SYMBOL__ = l, b.provide(b.__VUE_I18N_SYMBOL__, p), De(h[0])) { 7586 const D = h[0]; 7587 p.__composerExtend = D.__composerExtend, p.__vueI18nExtend = D.__vueI18nExtend; 7588 } 7589 let _ = null; 7590 !n && i && (_ = XC(b, p.global)), __VUE_I18N_FULL_INSTALL__ && BC(b, p, ...h), __VUE_I18N_LEGACY_API__ && n && b.mixin(MC(o, o.__composer, p)); 7591 const C = b.unmount; 7592 b.unmount = () => { 7593 _ && _(), p.dispose(), C(); 7594 }; 7595 }, 7596 get global() { 7597 return o; 7598 }, 7599 dispose() { 7600 s.stop(); 7601 }, 7602 __instances: r, 7603 __getInstance: u, 7604 __setInstance: c, 7605 __deleteInstance: d 7606 }; 7607 return p; 7608 } 7609 } 7610 function fr(e = {}) { 7611 const t = kt(); 7612 if (t == null) throw St(_t.MUST_BE_CALL_SETUP_TOP); 7613 if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__) throw St(_t.NOT_INSTALLED); 7614 const n = HC(t), i = zC(n), a = LC(t), r = jC(e, a); 7615 if (__VUE_I18N_LEGACY_API__ && n.mode === "legacy" && !e.__useComponent) { 7616 if (!n.allowComposition) throw St(_t.NOT_AVAILABLE_IN_LEGACY_MODE); 7617 return YC(t, r, i, e); 7618 } 7619 if (r === "global") return Nm(i, e, a), i; 7620 if (r === "parent") { 7621 let l = WC(n, t, e.__useComponent); 7622 return l == null && (l = i), l; 7623 } 7624 const s = n; 7625 let o = s.__getInstance(t); 7626 if (o == null) { 7627 const l = Ot({}, e); 7628 "__i18n" in a && (l.__i18n = a.__i18n), i && (l.__root = i), o = nu(l), s.__composerExtend && (o[qo] = s.__composerExtend(o)), qC(s, t, o), s.__setInstance(t, o); 7629 } 7630 return o; 7631 } 7632 function VC(e, t, n) { 7633 const i = hf(); 7634 { 7635 const a = __VUE_I18N_LEGACY_API__ && t ? i.run(() => Yo(e)) : i.run(() => nu(e)); 7636 if (a == null) throw St(_t.UNEXPECTED_ERROR); 7637 return [ 7638 i, 7639 a 7640 ]; 7641 } 7642 } 7643 function HC(e) { 7644 { 7645 const t = Br(e.isCE ? RC : e.appContext.app.__VUE_I18N_SYMBOL__); 7646 if (!t) throw St(e.isCE ? _t.NOT_INSTALLED_WITH_PROVIDE : _t.UNEXPECTED_ERROR); 7647 return t; 7648 } 7649 } 7650 function jC(e, t) { 7651 return Ls(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local"; 7652 } 7653 function zC(e) { 7654 return e.mode === "composition" ? e.global : e.global.__composer; 7655 } 7656 function WC(e, t, n = false) { 7657 let i = null; 7658 const a = t.root; 7659 let r = GC(t, n); 7660 for (; r != null; ) { 7661 const s = e; 7662 if (e.mode === "composition") i = s.__getInstance(r); 7663 else if (__VUE_I18N_LEGACY_API__) { 7664 const o = s.__getInstance(r); 7665 o != null && (i = o.__composer, n && i && !i[Fm] && (i = null)); 7666 } 7667 if (i != null || a === r) break; 7668 r = r.parent; 7669 } 7670 return i; 7671 } 7672 function GC(e, t = false) { 7673 return e == null ? null : t && e.vnode.ctx || e.parent; 7674 } 7675 function qC(e, t, n) { 7676 nn(() => { 7677 }, t), hs(() => { 7678 const i = n; 7679 e.__deleteInstance(t); 7680 const a = i[qo]; 7681 a && (a(), delete i[qo]); 7682 }, t); 7683 } 7684 function YC(e, t, n, i = {}) { 7685 const a = t === "local", r = yi(null); 7686 if (a && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n)) throw St(_t.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION); 7687 const s = Me(i.inheritLocale) ? i.inheritLocale : !he(i.locale), o = pe(!a || s ? n.locale.value : he(i.locale) ? i.locale : ui), l = pe(!a || s ? n.fallbackLocale.value : he(i.fallbackLocale) || ut(i.fallbackLocale) || De(i.fallbackLocale) || i.fallbackLocale === false ? i.fallbackLocale : o.value), u = pe($s(o.value, i)), c = pe(De(i.datetimeFormats) ? i.datetimeFormats : { 7688 [o.value]: {} 7689 }), d = pe(De(i.numberFormats) ? i.numberFormats : { 7690 [o.value]: {} 7691 }), p = a ? n.missingWarn : Me(i.missingWarn) || ir(i.missingWarn) ? i.missingWarn : true, b = a ? n.fallbackWarn : Me(i.fallbackWarn) || ir(i.fallbackWarn) ? i.fallbackWarn : true, h = a ? n.fallbackRoot : Me(i.fallbackRoot) ? i.fallbackRoot : true, _ = !!i.fallbackFormat, C = ot(i.missing) ? i.missing : null, D = ot(i.postTranslation) ? i.postTranslation : null, N = a ? n.warnHtmlMessage : Me(i.warnHtmlMessage) ? i.warnHtmlMessage : true, v = !!i.escapeParameter, y = a ? n.modifiers : De(i.modifiers) ? i.modifiers : {}, E = i.pluralRules || a && n.pluralRules; 7692 function k() { 7693 return [ 7694 o.value, 7695 l.value, 7696 u.value, 7697 c.value, 7698 d.value 7699 ]; 7700 } 7701 const A = ne({ 7702 get: () => r.value ? r.value.locale.value : o.value, 7703 set: (B) => { 7704 r.value && (r.value.locale.value = B), o.value = B; 7705 } 7706 }), L = ne({ 7707 get: () => r.value ? r.value.fallbackLocale.value : l.value, 7708 set: (B) => { 7709 r.value && (r.value.fallbackLocale.value = B), l.value = B; 7710 } 7711 }), w = ne(() => r.value ? r.value.messages.value : u.value), z = ne(() => c.value), T = ne(() => d.value); 7712 function P() { 7713 return r.value ? r.value.getPostTranslationHandler() : D; 7714 } 7715 function G(B) { 7716 r.value && r.value.setPostTranslationHandler(B); 7717 } 7718 function X() { 7719 return r.value ? r.value.getMissingHandler() : C; 7720 } 7721 function Y(B) { 7722 r.value && r.value.setMissingHandler(B); 7723 } 7724 function q(B) { 7725 return k(), B(); 7726 } 7727 function J(...B) { 7728 return r.value ? q(() => Reflect.apply(r.value.t, null, [ 7729 ...B 7730 ])) : q(() => ""); 7731 } 7732 function Z(...B) { 7733 return r.value ? Reflect.apply(r.value.rt, null, [ 7734 ...B 7735 ]) : ""; 7736 } 7737 function se(...B) { 7738 return r.value ? q(() => Reflect.apply(r.value.d, null, [ 7739 ...B 7740 ])) : q(() => ""); 7741 } 7742 function Q(...B) { 7743 return r.value ? q(() => Reflect.apply(r.value.n, null, [ 7744 ...B 7745 ])) : q(() => ""); 7746 } 7747 function oe(B) { 7748 return r.value ? r.value.tm(B) : {}; 7749 } 7750 function ce(B, ie) { 7751 return r.value ? r.value.te(B, ie) : false; 7752 } 7753 function be(B) { 7754 return r.value ? r.value.getLocaleMessage(B) : {}; 7755 } 7756 function ye(B, ie) { 7757 r.value && (r.value.setLocaleMessage(B, ie), u.value[B] = ie); 7758 } 7759 function ke(B, ie) { 7760 r.value && r.value.mergeLocaleMessage(B, ie); 7761 } 7762 function Ae(B) { 7763 return r.value ? r.value.getDateTimeFormat(B) : {}; 7764 } 7765 function _e(B, ie) { 7766 r.value && (r.value.setDateTimeFormat(B, ie), c.value[B] = ie); 7767 } 7768 function Te(B, ie) { 7769 r.value && r.value.mergeDateTimeFormat(B, ie); 7770 } 7771 function Ee(B) { 7772 return r.value ? r.value.getNumberFormat(B) : {}; 7773 } 7774 function Le(B, ie) { 7775 r.value && (r.value.setNumberFormat(B, ie), d.value[B] = ie); 7776 } 7777 function Be(B, ie) { 7778 r.value && r.value.mergeNumberFormat(B, ie); 7779 } 7780 const Ie = { 7781 get id() { 7782 return r.value ? r.value.id : -1; 7783 }, 7784 locale: A, 7785 fallbackLocale: L, 7786 messages: w, 7787 datetimeFormats: z, 7788 numberFormats: T, 7789 get inheritLocale() { 7790 return r.value ? r.value.inheritLocale : s; 7791 }, 7792 set inheritLocale(B) { 7793 r.value && (r.value.inheritLocale = B); 7794 }, 7795 get availableLocales() { 7796 return r.value ? r.value.availableLocales : Object.keys(u.value); 7797 }, 7798 get modifiers() { 7799 return r.value ? r.value.modifiers : y; 7800 }, 7801 get pluralRules() { 7802 return r.value ? r.value.pluralRules : E; 7803 }, 7804 get isGlobal() { 7805 return r.value ? r.value.isGlobal : false; 7806 }, 7807 get missingWarn() { 7808 return r.value ? r.value.missingWarn : p; 7809 }, 7810 set missingWarn(B) { 7811 r.value && (r.value.missingWarn = B); 7812 }, 7813 get fallbackWarn() { 7814 return r.value ? r.value.fallbackWarn : b; 7815 }, 7816 set fallbackWarn(B) { 7817 r.value && (r.value.missingWarn = B); 7818 }, 7819 get fallbackRoot() { 7820 return r.value ? r.value.fallbackRoot : h; 7821 }, 7822 set fallbackRoot(B) { 7823 r.value && (r.value.fallbackRoot = B); 7824 }, 7825 get fallbackFormat() { 7826 return r.value ? r.value.fallbackFormat : _; 7827 }, 7828 set fallbackFormat(B) { 7829 r.value && (r.value.fallbackFormat = B); 7830 }, 7831 get warnHtmlMessage() { 7832 return r.value ? r.value.warnHtmlMessage : N; 7833 }, 7834 set warnHtmlMessage(B) { 7835 r.value && (r.value.warnHtmlMessage = B); 7836 }, 7837 get escapeParameter() { 7838 return r.value ? r.value.escapeParameter : v; 7839 }, 7840 set escapeParameter(B) { 7841 r.value && (r.value.escapeParameter = B); 7842 }, 7843 t: J, 7844 getPostTranslationHandler: P, 7845 setPostTranslationHandler: G, 7846 getMissingHandler: X, 7847 setMissingHandler: Y, 7848 rt: Z, 7849 d: se, 7850 n: Q, 7851 tm: oe, 7852 te: ce, 7853 getLocaleMessage: be, 7854 setLocaleMessage: ye, 7855 mergeLocaleMessage: ke, 7856 getDateTimeFormat: Ae, 7857 setDateTimeFormat: _e, 7858 mergeDateTimeFormat: Te, 7859 getNumberFormat: Ee, 7860 setNumberFormat: Le, 7861 mergeNumberFormat: Be 7862 }; 7863 function Ve(B) { 7864 B.locale.value = o.value, B.fallbackLocale.value = l.value, Object.keys(u.value).forEach((ie) => { 7865 B.mergeLocaleMessage(ie, u.value[ie]); 7866 }), Object.keys(c.value).forEach((ie) => { 7867 B.mergeDateTimeFormat(ie, c.value[ie]); 7868 }), Object.keys(d.value).forEach((ie) => { 7869 B.mergeNumberFormat(ie, d.value[ie]); 7870 }), B.escapeParameter = v, B.fallbackFormat = _, B.fallbackRoot = h, B.fallbackWarn = b, B.missingWarn = p, B.warnHtmlMessage = N; 7871 } 7872 return fa(() => { 7873 if (e.proxy == null || e.proxy.$i18n == null) throw St(_t.NOT_AVAILABLE_COMPOSITION_IN_LEGACY); 7874 const B = r.value = e.proxy.$i18n.__composer; 7875 t === "global" ? (o.value = B.locale.value, l.value = B.fallbackLocale.value, u.value = B.messages.value, c.value = B.datetimeFormats.value, d.value = B.numberFormats.value) : a && Ve(B); 7876 }), Ie; 7877 } 7878 const KC = [ 7879 "locale", 7880 "fallbackLocale", 7881 "availableLocales" 7882 ], Jc = [ 7883 "t", 7884 "rt", 7885 "d", 7886 "n", 7887 "tm", 7888 "te" 7889 ]; 7890 function XC(e, t) { 7891 const n = /* @__PURE__ */ Object.create(null); 7892 return KC.forEach((i) => { 7893 const a = Object.getOwnPropertyDescriptor(t, i); 7894 if (!a) throw St(_t.UNEXPECTED_ERROR); 7895 const r = Ki(a.value) ? { 7896 get() { 7897 return a.value.value; 7898 }, 7899 set(s) { 7900 a.value.value = s; 7901 } 7902 } : { 7903 get() { 7904 return a.get && a.get(); 7905 } 7906 }; 7907 Object.defineProperty(n, i, r); 7908 }
7908), e.config.globalProperties.$i18n = n, Jc.forEach((i) => { 7909 const a = Object.getOwnPropertyDescriptor(t, i); 7910 if (!a || !a.value) throw St(_t.UNEXPECTED_ERROR); 7911 Object.defineProperty(e.config.globalProperties, `$${i}`, a); 7912 }), () => { 7913 delete e.config.globalProperties.$i18n, Jc.forEach((i) => { 7914 delete e.config.globalProperties[`$${i}`]; 7915 }); 7916 }; 7917 } 7918 SC(); 7919 __INTLIFY_JIT_COMPILATION__ ? Tc(yC) : Tc(vC); 7920 dC(Wk); 7921 pC(_m); 7922 if (__INTLIFY_PROD_DEVTOOLS__) { 7923 const e = Mn(); 7924 e.__INTLIFY__ = true, eC(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__); 7925 } 7926 function JC(e) { 7927 const t = e.appContext.app.__VUE_I18N_SYMBOL__; 7928 return Br(t); 7929 } 7930 function Wr(e = {}) { 7931 const t = kt(), n = JC(t); 7932 if (n.mode === "composition") return fr(e); 7933 if (e.messages) for (const i in e.messages) n.global.mergeLocaleMessage(i, e.messages[i]); 7934 return n.global; 7935 } 7936 function Qc(e, t) { 7937 var n = Object.keys(e); 7938 if (Object.getOwnPropertySymbols) { 7939 var i = Object.getOwnPropertySymbols(e); 7940 t && (i = i.filter(function(a) { 7941 return Object.getOwnPropertyDescriptor(e, a).enumerable; 7942 })), n.push.apply(n, i); 7943 } 7944 return n; 7945 } 7946 function ci(e) { 7947 for (var t = 1; t < arguments.length; t++) { 7948 var n = arguments[t] != null ? arguments[t] : {}; 7949 t % 2 ? Qc(Object(n), true).forEach(function(i) { 7950 QC(e, i, n[i]); 7951 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Qc(Object(n)).forEach(function(i) { 7952 Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i)); 7953 }); 7954 } 7955 return e; 7956 } 7957 function QC(e, t, n) { 7958 return t in e ? Object.defineProperty(e, t, { 7959 value: n, 7960 enumerable: true, 7961 configurable: true, 7962 writable: true 7963 }) : e[t] = n, e; 7964 } 7965 function na(e) { 7966 return typeof e == "function"; 7967 } 7968 function Za(e) { 7969 return e !== null && typeof e == "object" && !Array.isArray(e); 7970 } 7971 function Ts(e) { 7972 return na(e.$validator) ? ci({}, e) : { 7973 $validator: e 7974 }; 7975 } 7976 function ZC(e) { 7977 return Za(e) && na(e.then); 7978 } 7979 function ar(e) { 7980 return typeof e == "object" ? e.$valid : e; 7981 } 7982 function Gr(e) { 7983 return e.$validator || e; 7984 } 7985 function iu(e, t) { 7986 if (!Za(e)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`); 7987 if (!Za(t) && !na(t)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter"); 7988 const n = Ts(t); 7989 return n.$params = ci(ci({}, n.$params || {}), e), n; 7990 } 7991 function ra(e, t) { 7992 if (!na(e) && typeof ae(e) != "string") throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`); 7993 if (!Za(t) && !na(t)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter"); 7994 const n = Ts(t); 7995 return n.$message = e, n; 7996 } 7997 function eA(e) { 7998 let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []; 7999 const n = Ts(e); 8000 return ci(ci({}, n), {}, { 8001 $async: true, 8002 $watchTargets: t 8003 }); 8004 } 8005 function tA(e) { 8006 return { 8007 $validator(t) { 8008 for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++) i[a - 1] = arguments[a]; 8009 return ae(t).reduce((r, s, o) => { 8010 const l = Object.entries(s).reduce((u, c) => { 8011 let [d, p] = c; 8012 const b = e[d] || {}, h = Object.entries(b).reduce((_, C) => { 8013 let [D, N] = C; 8014 const v = Gr(N).call(this, p, s, o, ...i), y = ar(v); 8015 if (_.$data[D] = v, _.$data.$invalid = !y || !!_.$data.$invalid, _.$data.$error = _.$data.$invalid, !y) { 8016 let E = N.$message || ""; 8017 const k = N.$params || {}; 8018 typeof E == "function" && (E = E({ 8019 $pending: false, 8020 $invalid: !y, 8021 $params: k, 8022 $model: p, 8023 $response: v 8024 })), _.$errors.push({ 8025 $property: d, 8026 $message: E, 8027 $params: k, 8028 $response: v, 8029 $model: p, 8030 $pending: false, 8031 $validator: D 8032 }); 8033 } 8034 return { 8035 $valid: _.$valid && y, 8036 $data: _.$data, 8037 $errors: _.$errors 8038 }; 8039 }, { 8040 $valid: true, 8041 $data: {}, 8042 $errors: [] 8043 }); 8044 return u.$data[d] = h.$data, u.$errors[d] = h.$errors, { 8045 $valid: u.$valid && h.$valid, 8046 $data: u.$data, 8047 $errors: u.$errors 8048 }; 8049 }, { 8050 $valid: true, 8051 $data: {}, 8052 $errors: {} 8053 }); 8054 return { 8055 $valid: r.$valid && l.$valid, 8056 $data: r.$data.concat(l.$data), 8057 $errors: r.$errors.concat(l.$errors) 8058 }; 8059 }, { 8060 $valid: true, 8061 $data: [], 8062 $errors: [] 8063 }); 8064 }, 8065 $message: (t) => { 8066 let { $response: n } = t; 8067 return n ? n.$errors.map((i) => Object.values(i).map((a) => a.map((r) => r.$message)).reduce((a, r) =>
8067 a.concat(r), [])) : []; 8068 } 8069 }; 8070 } 8071 const rn = (e) => { 8072 if (e = ae(e), Array.isArray(e)) return !!e.length; 8073 if (e == null) return false; 8074 if (e === false) return true; 8075 if (e instanceof Date) return !isNaN(e.getTime()); 8076 if (typeof e == "object") { 8077 for (let t in e) return true; 8078 return false; 8079 } 8080 return !!String(e).length; 8081 }, au = (e) => (e = ae(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length); 8082 function mr() { 8083 for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; 8084 return (i) => (i = ae(i), !rn(i) || t.every((a) => (a.lastIndex = 0, a.test(i)))); 8085 } 8086 var Bm = Object.freeze({ 8087 __proto__: null, 8088 forEach: tA, 8089 len: au, 8090 normalizeValidatorObject: Ts, 8091 regex: mr, 8092 req: rn, 8093 unwrap: ae, 8094 unwrapNormalizedValidator: Gr, 8095 unwrapValidatorResponse: ar, 8096 withAsync: eA, 8097 withMessage: ra, 8098 withParams: iu 8099 }), nA = mr(/^[a-zA-Z]*$/), rA = { 8100 $validator: nA, 8101 $message: "The value is not alphabetical", 8102 $params: { 8103 type: "alpha" 8104 } 8105 }, iA = mr(/^[a-zA-Z0-9]*$/), aA = { 8106 $validator: iA, 8107 $message: "The value must be alpha-numeric", 8108 $params: { 8109 type: "alphaNum" 8110 } 8111 }, sA = mr(/^\d*(\.\d+)?$/), oA = { 8112 $validator: sA, 8113 $message: "Value must be numeric", 8114 $params: { 8115 type: "numeric" 8116 } 8117 }; 8118 function lA(e, t) { 8119 return (n) => !rn(n) || (!/\s/.test(n) || n instanceof Date) && +ae(e) <= +n && +ae(t) >= +n; 8120 } 8121 function uA(e, t) { 8122 return { 8123 $validator: lA(e, t), 8124 $message: (n) => { 8125 let { $params: i } = n; 8126 return `The value must be between ${i.min} and ${i.max}`; 8127 }, 8128 $params: { 8129 min: e, 8130 max: t, 8131 type: "between" 8132 } 8133 }; 8134 } 8135 const cA = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i; 8136 var dA = mr(cA), pA = { 8137 $validator: dA, 8138 $message: "Value is not a valid email address", 8139 $params: { 8140 type: "email" 8141 } 8142 }; 8143 function fA(e) { 8144 if (!rn(e)) return true; 8145 if (typeof e != "string") return false; 8146 const t = e.split("."); 8147 return t.length === 4 && t.every(mA); 8148 } 8149 const mA = (e) => { 8150 if (e.length > 3 || e.length === 0 || e[0] === "0" && e !== "0" || !e.match(/^\d+$/)) return false; 8151 const t = +e | 0; 8152 return t >= 0 && t <= 255; 8153 }; 8154 var hA = { 8155 $validator: fA, 8156 $message: "The value is not a valid IP address", 8157 $params: { 8158 type: "ipAddress" 8159 } 8160 }; 8161 function gA() { 8162 let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ":"; 8163 return (t) => { 8164 if (e = ae(e), !rn(t)) return true; 8165 if (typeof t != "string") return false; 8166 const n = typeof e == "string" && e !== "" ? t.split(e) : t.length === 12 || t.length === 16 ? t.match(/.{2}/g) : null; 8167 return n !== null && (n.length === 6 || n.length === 8) && n.every(bA); 8168 }; 8169 } 8170 const bA = (e) => e.toLowerCase().match(/^[0-9a-f]{2}$/); 8171 function vA(e) { 8172 return { 8173 $validator: gA(e), 8174 $message: "The value is not a valid MAC Address", 8175 $params: { 8176 type: "macAddress" 8177 } 8178 }; 8179 } 8180 function yA(e) { 8181 return (t) => !rn(t) || au(t) <= ae(e); 8182 } 8183 function _A(e) { 8184 return { 8185 $validator: yA(e), 8186 $message: (t) => { 8187 let { $params: n } = t; 8188 return `The maximum length allowed is ${n.max}`; 8189 }, 8190 $params: { 8191 max: e, 8192 type: "maxLength" 8193 } 8194 }; 8195 } 8196 function EA(e) { 8197 return (t) => !rn(t) || au(t) >= ae(e); 8198 } 8199 function kA(e) { 8200 return { 8201 $validator: EA(e), 8202 $message: (t) => { 8203 let { $params: n } = t; 8204 return `This field should be at least ${n.min} characters long`; 8205 }, 8206 $params: { 8207 min: e, 8208 type: "minLength" 8209 } 8210 }; 8211 } 8212 function CA(e) { 8213 return typeof e == "string" && (e = e.trim()), rn(e); 8214 } 8215 var AA = { 8216 $validator: CA, 8217 $message: "Value is required", 8218 $params: { 8219 type: "required" 8220 } 8221 }; 8222 const Zc = (e, t) => e ? rn(typeof t == "string" ? t.trim() : t) : true; 8223 function SA(e) { 8224 return function(t, n) { 8225 if (typeof e != "function") return Zc(ae(e), t); 8226 const i = e.call(this, t, n); 8227 return Zc(i, t); 8228 }; 8229 } 8230 function wA(e) { 8231 return { 8232 $validator: SA(e), 8233 $message: "The value is required", 8234 $params: { 8235 type: "requiredIf", 8236 prop: e 8237 } 8238 }; 8239 } 8240 const ed = (e, t) => e ? true : rn(typeof t == "string" ? t.trim() : t); 8241 function LA(e) { 8242 return function(t, n) { 8243 if (typeof e != "function") return ed(ae(e), t); 8244 const i = e.call(this, t, n); 8245 return ed(i, t); 8246 }; 8247 } 8248 function xA(e) { 8249 return { 8250 $validator: LA(e), 8251 $message: "The value is required", 8252 $params: { 8253 type: "requiredUnless", 8254 prop: e 8255 } 8256 }; 8257 } 8258 function OA(e) { 8259 return (t) => ae(t) === ae(e); 8260 } 8261 function $A(e) { 8262 let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "other"; 8263 return { 8264 $validator: OA(e), 8265 $message: (n) => `The value must be equal to the ${t} value`, 8266 $params: { 8267 equalTo: e, 8268 otherName: t, 8269 type: "sameAs" 8270 } 8271 }; 8272 }
8273 const TA = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i; 8274 var IA = mr(TA), FA = { 8275 $validator: IA, 8276 $message: "The value is not a valid URL address", 8277 $params: { 8278 type: "url" 8279 } 8280 }; 8281 function NA(e) { 8282 return function() { 8283 for (var t = arguments.length, n = new Array(t), i = 0; i < t; i++) n[i] = arguments[i]; 8284 return e.reduce((a, r) => ar(a) ? a : Gr(r).apply(this, n), false); 8285 }; 8286 } 8287 function DA(e) { 8288 return function() { 8289 for (var t = arguments.length, n = new Array(t), i = 0; i < t; i++) n[i] = arguments[i]; 8290 return e.reduce(async (a, r) => { 8291 const s = await a; 8292 return ar(s) ? s : Gr(r).apply(this, n); 8293 }, Promise.resolve(false)); 8294 }; 8295 } 8296 function PA() { 8297 for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; 8298 const i = t.some((s) => s.$async), a = t.reduce((s, o) => o.$watchTargets ? s.concat(o.$watchTargets) : s, []); 8299 let r = () => false; 8300 return t.length && (r = i ? DA(t) : NA(t)), { 8301 $async: i, 8302 $validator: r, 8303 $watchTargets: a 8304 }; 8305 } 8306 function BA() { 8307 return iu({ 8308 type: "or" 8309 }, ra("The value does not match any of the provided validators", PA(...arguments))); 8310 } 8311 function MA(e) { 8312 return function() { 8313 for (var t = arguments.length, n = new Array(t), i = 0; i < t; i++) n[i] = arguments[i]; 8314 return e.reduce((a, r) => ar(a) ? Gr(r).apply(this, n) : a, true); 8315 }; 8316 } 8317 function RA(e) { 8318 return function() { 8319 for (var t = arguments.length, n = new Array(t), i = 0; i < t; i++) n[i] = arguments[i]; 8320 return e.reduce(async (a, r) => { 8321 const s = await a; 8322 return ar(s) ? Gr(r).apply(this, n) : s; 8323 }, Promise.resolve(true)); 8324 }; 8325 } 8326 function UA() { 8327 for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; 8328 const i = t.some((s) => s.$async), a = t.reduce((s, o) => o.$watchTargets ? s.concat(o.$watchTargets) : s, []); 8329 let r = () => false; 8330 return t.length && (r = i ? RA(t) : MA(t)), { 8331 $async: i, 8332 $validator: r, 8333 $watchTargets: a 8334 }; 8335 } 8336 function VA() { 8337 return iu({ 8338 type: "and" 8339 }, ra("The value does not match all of the provided validators", UA(...arguments))); 8340 } 8341 function HA(e) { 8342 return function(t, n) { 8343 if (!rn(t)) return true; 8344 const i = Gr(e).call(this, t, n); 8345 return ZC(i) ? i.then((a) => !ar(a)) : !ar(i); 8346 }; 8347 } 8348 function jA(e) { 8349 return { 8350 $validator: HA(e), 8351 $message: "The value does not match the provided validator", 8352 $params: { 8353 type: "not" 8354 } 8355 }; 8356 } 8357 function zA(e) { 8358 return (t) => !rn(t) || (!/\s/.test(t) || t instanceof Date) && +t >= +ae(e); 8359 } 8360 function WA(e) { 8361 return { 8362 $validator: zA(e), 8363 $message: (t) => { 8364 let { $params: n } = t; 8365 return `The minimum value allowed is ${n.min}`; 8366 }, 8367 $params: { 8368 min: e, 8369 type: "minValue" 8370 } 8371 }; 8372 } 8373 function GA(e) { 8374 return (t) => !rn(t) || (!/\s/.test(t) || t instanceof Date) && +t <= +ae(e); 8375 } 8376 var qA = (e) => ({ 8377 $validator: GA(e), 8378 $message: (t) => { 8379 let { $params: n } = t; 8380 return `The maximum value allowed is ${n.max}`; 8381 }, 8382 $params: { 8383 max: e, 8384 type: "maxValue" 8385 } 8386 }), YA = mr(/(^[0-9]*$)|(^-[0-9]+$)/), KA = { 8387 $validator: YA, 8388 $message: "Value is not an integer", 8389 $params: { 8390 type: "integer" 8391 } 8392 }, XA = mr(/^[-]?\d*(\.\d+)?$/), JA = { 8393 $validator: XA, 8394 $message: "Value must be decimal", 8395 $params: { 8396 type: "decimal" 8397 } 8398 }; 8399 function Mm(e) { 8400 let { t, messagePath: n = (a) => { 8401 let { $validator: r } = a; 8402 return `validations.${r}`; 8403 }, messageParams: i = (a) => a } = e; 8404 return function(a) { 8405 let { withArguments: r = false, messagePath: s = n, messageParams: o = i } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; 8406 function l(u) { 8407 return t(s(u), o(ci({ 8408 model: u.$model, 8409 property: u.$property, 8410 pending: u.$pending,
8411 invalid: u.$invalid, 8412 response: u.$response, 8413 validator: u.$validator, 8414 propertyPath: u.$propertyPath 8415 }, u.$params))); 8416 } 8417 return r && typeof a == "function" ? function() { 8418 return ra(l, a(...arguments)); 8419 } : ra(l, a); 8420 }; 8421 } 8422 const QA = Object.freeze(Object.defineProperty({ 8423 __proto__: null, 8424 alpha: rA, 8425 alphaNum: aA, 8426 and: VA, 8427 between: uA, 8428 createI18nMessage: Mm, 8429 decimal: JA, 8430 email: pA, 8431 helpers: Bm, 8432 integer: KA, 8433 ipAddress: hA, 8434 macAddress: vA, 8435 maxLength: _A, 8436 maxValue: qA, 8437 minLength: kA, 8438 minValue: WA, 8439 not: jA, 8440 numeric: oA, 8441 or: BA, 8442 required: AA, 8443 requiredIf: wA, 8444 requiredUnless: xA, 8445 sameAs: $A, 8446 url: FA 8447 }, Symbol.toStringTag, { 8448 value: "Module" 8449 })); 8450 function ZA({ i18n: e = Wr(), customMessagePath: t } = {}) { 8451 const { t: n, te: i } = e, a = Mm({ 8452 t: n, 8453 messagePath: (o) => t && i(t(o)) ? t(o, i) : "" 8454 }), r = { 8455 validSin: { 8456 $validator: (o) => OE(o, { 8457 allowEmpty: true 8458 }) 8459 } 8460 }, s = {}; 8461 for (const [o, l] of Object.entries({ 8462 ...QA, 8463 ...r 8464 })) if (o !== "helpers") { 8465 const u = {}; 8466 typeof l == "function" && (u.withArguments = true), s[o] = a(l, u); 8467 } 8468 return { 8469 withI18nMessage: a, 8470 helpers: Bm, 8471 ...s 8472 }; 8473 } 8474 function td(e) { 8475 return e ? Rm(e()) : true; 8476 } 8477 function Rm(e) { 8478 return e.every((t) => t.type === gf ? true : t.type === gs ? t.children.trim().length === 0 : t.type === me ? t.children.length === 0 ? true : Rm(t.children) : false); 8479 } 8480 function on(e) { 8481 return { 8482 isSlotEmpty: ne(() => td(e)), 8483 hasSlotContent: ne(() => !td(e)) 8484 }; 8485 } 8486 const uo = "the-nest-announcer"; 8487 function eS() { 8488 const e = () => { 8489 if (typeof document > "u") return null; 8490 const n = document.getElementById(uo); 8491 if (n && document.body.contains(n)) return n; 8492 const i = document.createElement("div"); 8493 return i.id = uo, i.setAttribute("aria-live", "polite"), i.setAttribute("aria-atomic", "true"), i.className = "is-sr-only", i._queue = [], i._isProcessing = false, i._counter = 0, document.body.appendChild(i), i; 8494 }, t = async () => { 8495 const n = e(); 8496 if (!(!n || n._isProcessing || n._queue.length === 0)) { 8497 for (n._isProcessing = true; n._queue.length > 0; ) { 8498 const i = n._queue.shift(); 8499 n._counter = (n._counter + 1) % 5; 8500 const a = "\u200B".repeat(n._counter); 8501 n.textContent = "", await new Promise((r) => { 8502 requestAnimationFrame(() => { 8503 (e() || n).textContent = i + a, setTimeout(r, 150); 8504 }); 8505 }); 8506 } 8507 n._isProcessing = false; 8508 } 8509 }; 8510 return { 8511 srAnnounce: (n) => { 8512 const i = e(); 8513 !n || !i || (i._queue.push(n), t()); 8514 }, 8515 cleanup: () => { 8516 var n; 8517 (n = document.getElementById(uo)) == null || n.remove(); 8518 } 8519 }; 8520 } 8521 const Ze = UC({ 8522 locale: jr(), 8523 messages: ai 8524 }), tS = { 8525 name: "n-button", 8526 components: { 8527 Icon: Tt 8528 }, 8529 mixins: [ 8530 Lt, 8531 ln 8532 ], 8533 props: { 8534 href: { 8535 type: String 8536 }, 8537 ariaLabel: { 8538 type: String 8539 }, 8540 color: { 8541 type: String 8542 }, 8543 iconColor: { 8544 type: String 8545 }, 8546 icon: { 8547 type: String 8548 }, 8549 noIcon: { 8550 type: Boolean 8551 }, 8552 iconPosition: { 8553 type: String, 8554 default: "right", 8555 validator(e) { 8556 return [ 8557 "left", 8558 "right" 8559 ].includes(e); 8560 } 8561 }, 8562 format: { 8563 type: String, 8564 validator(e) { 8565 const t = [ 8566 "primary", 8567 "secondary", 8568 "ghost", 8569 "media-control" 8570 ]; 8571 return [ 8572 ...t, 8573 ...t.map((n) => `${n}-reverse`) 8574 ].includes(e); 8575 }, 8576 default: "primary" 8577 }, 8578 size: { 8579 type: String, 8580 validator(e) { 8581 return [ 8582 "default", 8583 "small" 8584 ].includes(e); 8585 }, 8586 default: "default" 8587 }, 8588 reverse: { 8589 type: Boolean 8590 }, 8591 type: { 8592 type: String, 8593 validator(e) { 8594 return [ 8595 "button", 8596 "reset", 8597 "submit" 8598 ].includes(e); 8599 }, 8600 default: "button" 8601 }, 8602 isFullWidth: { 8603 type: Boolean 8604 }, 8605 isMobileFullWidth: { 8606 type: Boolean 8607 } 8608 }, 8609 computed: { 8610 formatClass() { 8611 return `n-button--${this.format}${this.reverse ? "-reverse" : ""}`; 8612 }, 8613 isIconVariant() { 8614 return this.icon && !this.$slots.default; 8615 }, 8616 theIcon() { 8617 if (this.icon) return this.icon; 8618 if (this.noIcon) return null; 8619 if (this.href) switch (this.linkType_type) { 8620 case "hash": 8621 return null; 8622 case "mail": 8623 return "mail"; 8624 case "tel": 8625 return "call"; 8626 case "internal": 8627 return null; 8628 case "external": 8629 return "open-new"; 8630 default: 8631 return null; 8632 } 8633 return null; 8634 }, 8635 $routerLinkProps() { 8636 return this.to ? {
8637 to: this.to, 8638 ...this.routerLinkProps 8639 } : null; 8640 }, 8641 $ariaLabel() { 8642 return this.ariaLabel && this.linkType_type === "external" ? `${this.ariaLabel} - ${this.$t("a11y.newWindow")}` : this.ariaLabel; 8643 } 8644 }, 8645 compatConfig: { 8646 MODE: 3 8647 } 8648 }, nS = { 8649 key: 2, 8650 class: "is-sr-only" 8651 }, rS = { 8652 key: 3, 8653 class: "is-sr-only" 8654 }; 8655 function iS(e, t, n, i, a, r) { 8656 const s = j("Icon"); 8657 return m(), U(ue(e.link_element), fe({ 8658 ...r.$routerLinkProps, 8659 ...e.to ? {} : { 8660 href: e.linkType_href 8661 } 8662 }, { 8663 ref: "button", 8664 class: [ 8665 [ 8666 r.formatClass, 8667 { 8668 "n-button--icon": r.isIconVariant 8669 }, 8670 { 8671 "is-full-width": n.isFullWidth 8672 }, 8673 { 8674 "is-full-width-xs": n.isMobileFullWidth 8675 }, 8676 e.linkType_type ? `n-button--${e.linkType_type}` : null, 8677 n.size !== "default" ? `n-button--${n.size}` : null 8678 ], 8679 "n-button" 8680 ], 8681 "aria-label": r.$ariaLabel, 8682 type: e.link_element === "button" ? n.type : null, 8683 target: e.linkType_target, 8684 rel: e.linkType_rel, 8685 onClick: t[0] || (t[0] = (o) => e.nestEvents_emit(e.EVENT_TYPES.CLICK)) 8686 }), { 8687 default: I(() => [ 8688 r.theIcon && e.$slots.default && n.iconPosition === "left" ? (m(), U(s, { 8689 key: 0, 8690 icon: r.theIcon, 8691 class: R([ 8692 [ 8693 n.iconColor ? `is-color-${n.iconColor}` : "" 8694 ], 8695 "n-button__icon-left" 8696 ]) 8697 }, null, 8, [ 8698 "icon", 8699 "class" 8700 ])) : M("", true), 8701 e.$slots.default ? (m(), x("span", { 8702 key: 1, 8703 class: R([ 8704 [ 8705 n.color ? `is-color-${n.color}` : "" 8706 ], 8707 "n-button__label" 8708 ]) 8709 }, [ 8710 V(e.$slots, "default") 8711 ], 2)) : M("", true), 8712 e.linkType_target === "_blank" && !r.$ariaLabel ? (m(), x("span", nS, "\xA0- " + H(e.$t("a11y.newWindow")), 1)) : M("", true), 8713 e.linkType_type === "tel" ? (m(), x("span", rS, H(e.linkType_screenReaderTelNumber), 1)) : M("", true), 8714 r.theIcon && !e.$slots.default ? (m(), U(s, { 8715 key: 4, 8716 icon: r.theIcon, 8717 class: R([ 8718 n.iconColor ? `is-color-${n.iconColor}` : "" 8719 ]) 8720 }, null, 8, [ 8721 "icon", 8722 "class" 8723 ])) : M("", true), 8724 r.theIcon && e.$slots.default && n.iconPosition === "right" ? (m(), U(s, { 8725 key: 5, 8726 icon: r.theIcon, 8727 class: R([ 8728 [ 8729 n.iconColor ? `is-color-${n.iconColor}` : "" 8730 ], 8731 "n-button__icon-right" 8732 ]) 8733 }, null, 8, [ 8734 "icon", 8735 "class" 8736 ])) : M("", true) 8737 ]), 8738 _: 3 8739 }, 16, [ 8740 "class", 8741 "aria-label", 8742 "type", 8743 "target", 8744 "rel" 8745 ]); 8746 } 8747 let aS; 8748 ze = te(tS, [ 8749 [ 8750 "render", 8751 iS 8752 ] 8753 ]); 8754 aS = { 8755 name: "n-button-close", 8756 components: { 8757 NButton: ze 8758 }, 8759 mixins: [ 8760 Ge, 8761 Lt 8762 ], 8763 props: { 8764 iconColor: { 8765 type: String 8766 }, 8767 closeSrLabel: { 8768 type: String, 8769 default: null 8770 } 8771 }, 8772 emits: [ 8773 "close" 8774 ], 8775 methods: { 8776 clickHandler() { 8777 this.$emit("close"), this.nestEvents_emit(this.EVENT_TYPES.CLICK, { 8778 textContent: this.$t("button.close") 8779 }); 8780 } 8781 }, 8782 compatConfig: { 8783 MODE: 3 8784 } 8785 }; 8786 function sS(e, t, n, i, a, r) { 8787 const s = j("NButton"); 8788 return m(), U(s, { 8789 "icon-color": n.iconColor || "text", 8790 "aria-label": n.closeSrLabel || e.$t("label.close"), 8791 format: "ghost", 8792 icon: "x", 8793 class: "is-circle", 8794 onClick: r.clickHandler 8795 }, null, 8, [ 8796 "icon-color", 8797 "aria-label", 8798 "onClick" 8799 ]); 8800 } 8801 let oS, lS; 8802 Um = te(aS, [ 8803 [ 8804 "render", 8805 sS 8806 ] 8807 ]); 8808 oS = { 8809 name: "n-button-nav", 8810 components: { 8811 NButton: ze 8812 }, 8813 props: { 8814 icon: { 8815 type: String 8816 }, 8817 action: { 8818 type: String 8819 } 8820 }, 8821 compatConfig: { 8822 MODE: 3 8823 } 8824 }; 8825 lS = { 8826 class: "n-button__label" 8827 }; 8828 function uS(e, t, n, i, a, r) { 8829 const s = j("NButton"); 8830 return m(), U(s, { 8831 icon: n.icon, 8832 class: "n-button--nav", 8833 format: "ghost", 8834 "icon-position": "left", 8835 type: "button" 8836 }, {
8837 default: I(() => [ 8838 O("div", lS, [ 8839 V(e.$slots, "default") 8840 ]) 8841 ]), 8842 _: 3 8843 }, 8, [ 8844 "icon" 8845 ]); 8846 } 8847 let cS; 8848 Vm = te(oS, [ 8849 [ 8850 "render", 8851 uS 8852 ] 8853 ]); 8854 cS = { 8855 name: "n-base-link", 8856 components: { 8857 Icon: Tt 8858 }, 8859 mixins: [ 8860 zr 8861 ], 8862 props: { 8863 large: { 8864 type: Boolean 8865 }, 8866 decoration: { 8867 type: Boolean 8868 }, 8869 ariaLabel: { 8870 type: String 8871 }, 8872 icon: { 8873 type: String 8874 }, 8875 iconClasses: { 8876 type: String 8877 }, 8878 iconPosition: { 8879 type: String, 8880 default: "left", 8881 validator(e) { 8882 return [ 8883 "left", 8884 "right" 8885 ].includes(e); 8886 } 8887 }, 8888 iconSize: { 8889 type: [ 8890 String, 8891 Number 8892 ], 8893 default: 24 8894 } 8895 }, 8896 computed: { 8897 buttonType() { 8898 return this.link_element === "button" ? "button" : null; 8899 }, 8900 isIconLeft() { 8901 return !!(this.iconPosition == "left" || [ 8902 "chevronLeft", 8903 "chevron-left" 8904 ].includes(this.icon)); 8905 }, 8906 isIconRight() { 8907 return this.iconPosition == "right" && ![ 8908 "chevronLeft", 8909 "chevron-left" 8910 ].includes(this.icon); 8911 } 8912 }, 8913 compatConfig: { 8914 MODE: 3 8915 } 8916 }; 8917 function dS(e, t, n, i, a, r) { 8918 const s = j("Icon"); 8919 return m(), U(ue(e.link_element), fe({ 8920 class: [ 8921 { 8922 "n-link": e.link_element !== "a" 8923 }, 8924 { 8925 "n-link--large": n.large 8926 } 8927 ] 8928 }, { 8929 ...e.routerLinkProps, 8930 ...e.to ? {} : { 8931 href: e.href 8932 } 8933 }, { 8934 target: e.target || null, 8935 rel: e.rel || null, 8936 "aria-hidden": n.decoration || null, 8937 "aria-label": n.ariaLabel, 8938 type: r.buttonType, 8939 to: e.to 8940 }), { 8941 default: I(() => [ 8942 n.icon && r.isIconLeft ? (m(), U(s, { 8943 key: 0, 8944 icon: n.icon, 8945 size: n.iconSize, 8946 class: R([ 8947 "n-link__icon-left", 8948 n.iconClasses 8949 ]) 8950 }, null, 8, [ 8951 "icon", 8952 "size", 8953 "class" 8954 ])) : M("", true), 8955 V(e.$slots, "default"), 8956 n.icon && r.isIconRight ? (m(), U(s, { 8957 key: 1, 8958 icon: n.icon, 8959 size: n.iconSize, 8960 class: R([ 8961 "n-link__icon-right", 8962 n.iconClasses 8963 ]) 8964 }, null, 8, [ 8965 "icon", 8966 "size", 8967 "class" 8968 ])) : M("", true) 8969 ]), 8970 _: 3 8971 }, 16, [ 8972 "class", 8973 "target", 8974 "rel", 8975 "aria-hidden", 8976 "aria-label", 8977 "type", 8978 "to" 8979 ]); 8980 } 8981 const Xt = te(cS, [ 8982 [ 8983 "render", 8984 dS 8985 ] 8986 ]), pS = { 8987 name: "n-link-details", 8988 mixins: [ 8989 Ge 8990 ], 8991 props: { 8992 fileHref: { 8993 type: String 8994 }, 8995 fileExt: { 8996 type: String 8997 }, 8998 fileSize: { 8999 type: [ 9000 String, 9001 Number 9002 ] 9003 }, 9004 formatFileSize: { 9005 type: Boolean 9006 } 9007 }, 9008 data() { 9009 return { 9010 fileDetails: {} 9011 }; 9012 }, 9013 computed: { 9014 $fileExt() { 9015 return this.fileExt || this.fileDetails.ext; 9016 }, 9017 $fileSize() { 9018 const e = this.fileSize ?? this.fileDetails.size; 9019 return e == null || e === "" ? e : Ss(e, this.$i18n.locale, this.$t); 9020 } 9021 }, 9022 watch: { 9023 fileHref: { 9024 handler: function() { 9025 !this.fileSize && !this.fileExt && this.updateFileDetails(this.fileHref); 9026 } 9027 } 9028 }, 9029 mounted() { 9030 !this.fileSize && !this.fileExt && this.updateFileDetails(this.fileHref); 9031 }, 9032 methods: { 9033 updateFileDetails(e) { 9034 pE(e, this.$i18n.locale).then((t) => { 9035 this.fileDetails = t; 9036 }, (t) => console.warn(t)); 9037 } 9038 } 9039 }, fS = { 9040 key: 0, 9041 class: "n-file-details no-wrap is-color-text-light" 9042 }, mS = { 9043 class: "is-uppercase" 9044 }; 9045 function hS(e, t, n, i, a, r) { 9046 return r.$fileExt || r.$fileSize ? (m(), x("span", fS, [ 9047 O("span", mS, H(r.$fileExt), 1), 9048 re("\xA0" + H(r.$fileSize), 1) 9049 ])) : M("", true); 9050 } 9051 const gS = te(pS, [ 9052 [ 9053 "render", 9054 hS 9055 ] 9056 ]), bS = { 9057 name: "n-link-download", 9058 components: { 9059 BaseLink: Xt,
9060 LinkDetails: gS 9061 }, 9062 extends: Xt, 9063 mixins: [ 9064 zr 9065 ], 9066 props: { 9067 icon: { 9068 type: String, 9069 default: "download" 9070 }, 9071 iconPosition: { 9072 type: String, 9073 default: "left", 9074 validator(e) { 9075 return [ 9076 "left", 9077 "right" 9078 ].includes(e); 9079 } 9080 }, 9081 iconSize: { 9082 type: [ 9083 String, 9084 Number 9085 ], 9086 default: 24 9087 }, 9088 fileExt: { 9089 type: String 9090 }, 9091 fileSize: { 9092 type: [ 9093 String, 9094 Number 9095 ] 9096 }, 9097 formatFileSize: { 9098 type: Boolean 9099 } 9100 } 9101 }, vS = { 9102 class: "n-link__text" 9103 }, yS = { 9104 class: "is-sr-only" 9105 }; 9106 function _S(e, t, n, i, a, r) { 9107 const s = j("LinkDetails"), o = j("BaseLink"); 9108 return m(), U(o, { 9109 decoration: e.decoration, 9110 href: e.href, 9111 to: e.to, 9112 class: "n-link--download can-break-text", 9113 icon: n.icon, 9114 "icon-position": n.iconPosition, 9115 "icon-size": n.iconSize 9116 }, { 9117 default: I(() => [ 9118 O("span", vS, [ 9119 V(e.$slots, "default") 9120 ]), 9121 t[0] || (t[0] = O("span", { 9122 "aria-hidden": "true", 9123 class: "n-link__divider is-color-text" 9124 }, "|", -1)), 9125 K(s, { 9126 "file-href": e.href, 9127 "file-ext": n.fileExt, 9128 "file-size": n.fileSize, 9129 "format-file-size": n.formatFileSize 9130 }, null, 8, [ 9131 "file-href", 9132 "file-ext", 9133 "file-size", 9134 "format-file-size" 9135 ]), 9136 O("span", yS, " - " + H(e.$t("label.download")), 1) 9137 ]), 9138 _: 3 9139 }, 8, [ 9140 "decoration", 9141 "href", 9142 "to", 9143 "icon", 9144 "icon-position", 9145 "icon-size" 9146 ]); 9147 } 9148 let kS, CS, AS; 9149 ES = te(bS, [ 9150 [ 9151 "render", 9152 _S 9153 ] 9154 ]); 9155 kS = { 9156 name: "n-link-ext", 9157 components: { 9158 BaseLink: Xt 9159 }, 9160 extends: Xt, 9161 mixins: [ 9162 zr, 9163 Ge 9164 ], 9165 props: { 9166 icon: { 9167 type: String, 9168 default: "open-new" 9169 }, 9170 iconPosition: { 9171 type: String, 9172 default: "right", 9173 validator(e) { 9174 return [ 9175 "left", 9176 "right" 9177 ].includes(e); 9178 } 9179 }, 9180 iconSize: { 9181 type: [ 9182 String, 9183 Number 9184 ], 9185 default: 24 9186 }, 9187 rel: { 9188 type: String, 9189 default: "noopener noreferrer" 9190 }, 9191 target: { 9192 type: String, 9193 default: "_blank" 9194 } 9195 }, 9196 compatConfig: { 9197 MODE: 3 9198 } 9199 }; 9200 CS = { 9201 class: "n-link__text" 9202 }; 9203 AS = { 9204 class: "is-sr-only" 9205 }; 9206 function SS(e, t, n, i, a, r) { 9207 const s = j("BaseLink"); 9208 return m(), U(s, { 9209 decoration: e.decoration, 9210 href: e.href, 9211 to: e.to, 9212 target: n.target, 9213 rel: n.rel, 9214 class: "n-link--ext", 9215 icon: n.icon, 9216 "icon-position": n.iconPosition, 9217 "icon-size": n.iconSize 9218 }, { 9219 default: I(() => [ 9220 O("span", CS, [ 9221 V(e.$slots, "default") 9222 ]), 9223 O("span", AS, "\xA0- " + H(e.$t("a11y.newWindow")), 1) 9224 ]), 9225 _: 3 9226 }, 8, [ 9227 "decoration", 9228 "href", 9229 "to", 9230 "target", 9231 "rel", 9232 "icon", 9233 "icon-position", 9234 "icon-size" 9235 ]); 9236 } 9237 let wS; 9238 Ko = te(kS, [ 9239 [ 9240 "render", 9241 SS 9242 ] 9243 ]); 9244 wS = { 9245 name: "n-link-mail", 9246 components: { 9247 BaseLink: Xt 9248 }, 9249 extends: Xt, 9250 mixins: [ 9251 zr, 9252 Ge 9253 ], 9254 props: { 9255 href: { 9256 validator: (e) => e.length <= 1903 9257 }, 9258 large: { 9259 type: Boolean 9260 } 9261 }, 9262 computed: { 9263 formattedHref() { 9264 if (this.href) return Xf(this.href); 9265 } 9266 }, 9267 compatConfig: { 9268 MODE: 3 9269 } 9270 }; 9271 function LS(e, t, n, i, a, r) { 9272 const s = j("BaseLink"); 9273 return m(), U(s, { 9274 decoration: e.decoration, 9275 href: r.formattedHref, 9276 class: R([ 9277 `${n.large ? "n-link--large" : ""}`, 9278 "n-link--mail can-break-text" 9279 ]) 9280 }, { 9281 default: I(() => [ 9282 V(e.$slots, "default", {}, () => [ 9283 re(H(e.$t("label.emailUs")), 1) 9284 ]) 9285 ]), 9286 _: 3 9287 }, 8, [ 9288 "decoration", 9289 "href", 9290 "class" 9291 ]); 9292 } 9293 let OS, $S, TS; 9294 xS = te(wS, [ 9295 [ 9296 "render", 9297 LS 9298 ] 9299 ]); 9300 OS = { 9301 name: "n-link-tel", 9302 components: { 9303 BaseLink: Xt 9304 }, 9305 extends: Xt, 9306 mixins: [ 9307 zr 9308 ], 9309 props: { 9310 large: { 9311 type: Boolean 9312 } 9313 }, 9314 computed: { 9315 formattedHref() { 9316 return this.href && Kf(this.href) || void 0; 9317 }, 9318 label() { 9319 return this.href && this.href.replace("tel:", ""); 9320 }, 9321 screenReaderTelNumber() { 9322 let e = this.formattedHref; 9323 if (e) return e.startsWith("tel:") && (e = e.replace("tel:", "")), e.split("").join(" "); 9324 } 9325 }, 9326 compatConfig: { 9327 MODE: 3 9328 } 9329 }; 9330 $S = { 9331 "aria-hidden": "true" 9332 }; 9333 TS = { 9334 key: 0, 9335 class: "is-sr-only" 9336 }; 9337 function IS(e, t, n, i, a, r) { 9338 const s = j("BaseLink"); 9339 return m(), U(s, { 9340 decoration: e.decoration, 9341 href: r.formattedHref, 9342 class: R([ 9343 `${n.large ? "n-link--large" : ""}`, 9344 "n-link--tel" 9345 ]) 9346 }, {
9347 default: I(() => [ 9348 O("span", $S, [ 9349 V(e.$slots, "default", {}, () => [ 9350 re(H(r.label), 1) 9351 ]) 9352 ]), 9353 r.formattedHref ? (m(), x("span", TS, H(r.screenReaderTelNumber), 1)) : M("", true) 9354 ]), 9355 _: 3 9356 }, 8, [ 9357 "decoration", 9358 "href", 9359 "class" 9360 ]); 9361 } 9362 let NS, DS; 9363 FS = te(OS, [ 9364 [ 9365 "render", 9366 IS 9367 ] 9368 ]); 9369 NS = { 9370 name: "n-link", 9371 components: { 9372 BaseLink: Xt, 9373 LinkExt: Ko, 9374 LinkMail: xS, 9375 LinkTel: FS, 9376 LinkDownload: ES 9377 }, 9378 extends: Xt, 9379 mixins: [ 9380 zr, 9381 ln 9382 ], 9383 props: { 9384 format: { 9385 type: String, 9386 default: "", 9387 validator: (e) => [ 9388 "", 9389 "cta", 9390 "utility", 9391 "utility-small" 9392 ].includes(e) 9393 }, 9394 icon: { 9395 type: String 9396 }, 9397 iconPosition: { 9398 type: String, 9399 validator(e) { 9400 return [ 9401 "left", 9402 "right" 9403 ].includes(e); 9404 } 9405 }, 9406 iconSize: { 9407 type: [ 9408 String, 9409 Number 9410 ], 9411 default: 24 9412 }, 9413 fileExt: { 9414 type: String 9415 }, 9416 fileSize: { 9417 type: [ 9418 String, 9419 Number 9420 ] 9421 } 9422 }, 9423 computed: { 9424 component() { 9425 switch (this.linkType_type) { 9426 case "mail": 9427 return "LinkMail"; 9428 case "tel": 9429 return "LinkTel"; 9430 case "external": 9431 return "LinkExt"; 9432 case "download": 9433 return "LinkDownload"; 9434 case "hash": 9435 case "internal": 9436 default: 9437 return "BaseLink"; 9438 } 9439 }, 9440 linkClass() { 9441 return [ 9442 { 9443 "n-link-cta": this.format === "cta" 9444 }, 9445 { 9446 "n-link--utility": this.format === "utility" 9447 }, 9448 { 9449 "n-link--utility-small": this.format === "utility-small" 9450 } 9451 ]; 9452 }, 9453 componentProps() { 9454 return { 9455 ...this.$props, 9456 format: void 0, 9457 linkType: void 0, 9458 icon: this.component === Ko ? this.icon : void 0, 9459 iconPosition: this.iconPosition ? this.iconPosition : this.linkType !== "download" ? "right" : "left" 9460 }; 9461 } 9462 } 9463 }; 9464 DS = { 9465 key: 0, 9466 class: "is-sr-only" 9467 }; 9468 function PS(e, t, n, i, a, r) { 9469 return m(), U(ue(r.component), fe(r.componentProps, { 9470 class: r.linkClass, 9471 format: void 0, 9472 href: e.linkType_href, 9473 target: e.linkType_target, 9474 rel: e.linkType_rel, 9475 icon: n.icon, 9476 "file-ext": n.fileExt, 9477 "file-size": n.fileSize 9478 }), { 9479 default: I(() => [ 9480 V(e.$slots, "default"), 9481 e.linkType_target === "_blank" && e.linkType_type !== "external" ? (m(), x("span", DS, "\xA0- " + H(e.$t("a11y.newWindow")), 1)) : M("", true) 9482 ]), 9483 _: 3 9484 }, 16, [ 9485 "class", 9486 "href", 9487 "target", 9488 "rel", 9489 "icon", 9490 "file-ext", 9491 "file-size" 9492 ]); 9493 } 9494 let BS, nd, MS; 9495 at = te(NS, [ 9496 [ 9497 "render", 9498 PS 9499 ] 9500 ]); 9501 BS = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(); 9502 nd = { 9503 xs: "0px", 9504 sm: "576px", 9505 md: "768px", 9506 lg: "992px", 9507 xl: "1200px" 9508 }; 9509 MS = { 9510 name: "n-link-icon", 9511 components: { 9512 BaseLink: Xt 9513 }, 9514 extends: Xt, 9515 mixins: [], 9516 props: { 9517 decoration: { 9518 type: Boolean 9519 }, 9520 ariaLabel: { 9521 type: String 9522 }, 9523 icon: { 9524 type: String, 9525 default: "chevron-right" 9526 }, 9527 iconPosition: { 9528 type: String, 9529 default: "right", 9530 validator(e) { 9531 return [ 9532 "left", 9533 "right" 9534 ].includes(e); 9535 } 9536 }, 9537 iconSize: { 9538 type: [ 9539 String, 9540 Number 9541 ], 9542 default: 24 9543 }, 9544 action: { 9545 type: String 9546 } 9547 }, 9548 computed: { 9549 iconClassName() { 9550 try { 9551 return BS(this.icon); 9552 } catch { 9553 return "unknown"; 9554 } 9555 }, 9556 hasContent() { 9557 return !!(this.icon && this.$slots.default); 9558 } 9559 }, 9560 compatConfig: { 9561 MODE: 3 9562 } 9563 }; 9564 function RS(e, t, n, i, a, r) { 9565 const s = j("BaseLink"); 9566 return m(), U(s, { 9567 decoration: n.decoration, 9568 href: e.href, 9569 class: R([ 9570 "n-link--icon", 9571 [ 9572 `n-link--icon--${r.iconClassName}` 9573 ] 9574 ]), 9575 "data-n-action": n.action, 9576 to: e.to, 9577 icon: n.icon, 9578 "icon-position": n.iconPosition, 9579 "icon-size": n.iconSize, 9580 "icon-classes": e.iconClasses, 9581 "aria-label": n.ariaLabel 9582 }, {
9583 default: I(() => [ 9584 V(e.$slots, "default") 9585 ]), 9586 _: 3 9587 }, 8, [ 9588 "decoration", 9589 "href", 9590 "class", 9591 "data-n-action", 9592 "to", 9593 "icon", 9594 "icon-position", 9595 "icon-size", 9596 "icon-classes", 9597 "aria-label" 9598 ]); 9599 } 9600 let US, VS, HS; 9601 Ut = te(MS, [ 9602 [ 9603 "render", 9604 RS 9605 ] 9606 ]); 9607 US = { 9608 name: "n-link-block", 9609 mixins: [ 9610 ln 9611 ], 9612 props: { 9613 href: { 9614 type: String, 9615 default: "#" 9616 }, 9617 rel: { 9618 type: String 9619 }, 9620 target: { 9621 type: String 9622 } 9623 }, 9624 compatConfig: { 9625 MODE: 3 9626 } 9627 }; 9628 VS = [ 9629 "href", 9630 "target", 9631 "rel" 9632 ]; 9633 HS = { 9634 key: 0, 9635 class: "is-sr-only" 9636 }; 9637 function jS(e, t, n, i, a, r) { 9638 return m(), x("a", { 9639 href: e.linkType_href, 9640 target: e.linkType_target, 9641 rel: e.linkType_rel, 9642 class: "n-link n-link--block" 9643 }, [ 9644 V(e.$slots, "default"), 9645 e.linkType_type === "external" ? (m(), x("span", HS, "\xA0- " + H(e.$t("a11y.newWindow")), 1)) : M("", true) 9646 ], 8, VS); 9647 } 9648 zS = te(US, [ 9649 [ 9650 "render", 9651 jS 9652 ] 9653 ]); 9654 function Va(e) { 9655 "@babel/helpers - typeof"; 9656 return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Va = function(t) { 9657 return typeof t; 9658 } : Va = function(t) { 9659 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; 9660 }, Va(e); 9661 } 9662 function WS(e, t) { 9663 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 9664 } 9665 function GS(e, t) { 9666 for (var n = 0; n < t.length; n++) { 9667 var i = t[n]; 9668 i.enumerable = i.enumerable || false, i.configurable = true, "value" in i && (i.writable = true), Object.defineProperty(e, i.key, i); 9669 } 9670 } 9671 function qS(e, t, n) { 9672 return t && GS(e.prototype, t), e; 9673 } 9674 function rd(e) { 9675 return YS(e) || KS(e) || XS(e) || JS(); 9676 } 9677 function YS(e) { 9678 if (Array.isArray(e)) return Xo(e); 9679 } 9680 function KS(e) { 9681 if (typeof Symbol < "u" && Symbol.iterator in Object(e)) return Array.from(e); 9682 } 9683 function XS(e, t) { 9684 if (e) { 9685 if (typeof e == "string") return Xo(e, t); 9686 var n = Object.prototype.toString.call(e).slice(8, -1); 9687 if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); 9688 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Xo(e, t); 9689 } 9690 } 9691 function Xo(e, t) { 9692 (t == null || t > e.length) && (t = e.length); 9693 for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n]; 9694 return i; 9695 } 9696 function JS() { 9697 throw new TypeError(`Invalid attempt to spread non-iterable instance. 9698In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); 9699 } 9700 function QS(e) { 9701 var t; 9702 return typeof e == "function" ? t = { 9703 callback: e 9704 } : t = e, t; 9705 } 9706 function ZS(e, t) { 9707 var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i, a, r, s = function(o) { 9708 for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++) u[c - 1] = arguments[c]; 9709 if (r = u, !(i && o === a)) { 9710 var d = n.leading; 9711 typeof d == "function" && (d = d(o, a)), (!i || o !== a) && d && e.apply(void 0, [ 9712 o 9713 ].concat(rd(r))), a = o, clearTimeout(i), i = setTimeout(function() { 9714 e.apply(void 0, [ 9715 o 9716 ].concat(rd(r))), i = 0; 9717 }, t); 9718 } 9719 }; 9720 return s._clear = function() { 9721 clearTimeout(i), i = null; 9722 }, s; 9723 } 9724 function Hm(e, t) { 9725 if (e === t) return true; 9726 if (Va(e) === "object") { 9727 for (var n in e) if (!Hm(e[n], t[n])) return false; 9728 return true; 9729 } 9730 return false; 9731 } 9732 var ew = function() { 9733 function e(t, n, i) { 9734 WS(this, e), this.el = t, this.observer = null, this.frozen = false, this.createObserver(n, i); 9735 } 9736 return qS(e, [ 9737 { 9738 key: "createObserver", 9739 value: function(t, n) { 9740 var i = this; 9741 if (this.observer && this.destroyObserver(), !this.frozen) { 9742 if (this.options = QS(t), this.callback = function(s, o) { 9743 i.options.callback(s, o), s && i.options.once && (i.frozen = true, i.destroyObserver()); 9744 }, this.callback && this.options.throttle) { 9745 var a = this.options.throttleOptions || {}, r = a.leading; 9746 this.callback = ZS(this.callback, this.options.throttle, { 9747 leading: function(s) { 9748 return r === "both" || r === "visible" && s || r === "hidden" && !s; 9749 } 9750 }); 9751 } 9752 this.oldResult = void 0, this.observer = new IntersectionObserver(function(s) { 9753 var o = s[0]; 9754 if (s.length > 1) { 9755 var l = s.find(function(c) { 9756 return c.isIntersecting; 9757 }); 9758 l && (o = l); 9759 } 9760 if (i.callback) { 9761 var u = o.isIntersecting && o.intersectionRatio >= i.threshold; 9762 if (u === i.oldResult) return; 9763 i.oldResult = u, i.callback(u, o); 9764 } 9765 }, this.options.intersection), rr(function() { 9766 i.observer && i.observer.observe(i.el); 9767 }); 9768 } 9769 } 9770 }, 9771 {
9772 key: "destroyObserver", 9773 value: function() { 9774 this.observer && (this.observer.disconnect(), this.observer = null), this.callback && this.callback._clear && (this.callback._clear(), this.callback = null); 9775 } 9776 }, 9777 { 9778 key: "threshold", 9779 get: function() { 9780 return this.options.intersection && typeof this.options.intersection.threshold == "number" ? this.options.intersection.threshold : 0; 9781 } 9782 } 9783 ]), e; 9784 }(); 9785 function jm(e, t, n) { 9786 var i = t.value; 9787 if (i) if (typeof IntersectionObserver > "u") console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill"); 9788 else { 9789 var a = new ew(e, i, n); 9790 e._vue_visibilityState = a; 9791 } 9792 } 9793 function tw(e, t, n) { 9794 var i = t.value, a = t.oldValue; 9795 if (!Hm(i, a)) { 9796 var r = e._vue_visibilityState; 9797 if (!i) { 9798 zm(e); 9799 return; 9800 } 9801 r ? r.createObserver(i, n) : jm(e, { 9802 value: i 9803 }, n); 9804 } 9805 } 9806 function zm(e) { 9807 var t = e._vue_visibilityState; 9808 t && (t.destroyObserver(), delete e._vue_visibilityState); 9809 } 9810 var nw = { 9811 beforeMount: jm, 9812 updated: tw, 9813 unmounted: zm 9814 }; 9815 const rw = { 9816 name: "n-picture", 9817 directives: { 9818 ObserveVisibility: nw 9819 }, 9820 mixins: [ 9821 Xl 9822 ], 9823 props: { 9824 src: { 9825 type: String, 9826 required: true 9827 }, 9828 srcSet: { 9829 type: [ 9830 String, 9831 Array 9832 ], 9833 default: void 0, 9834 validator: (e) => { 9835 const t = e.filter ? e.filter((n) => ({}).hasOwnProperty.call(n, "url") && {}.hasOwnProperty.call(n, "width") && Number.isInteger(n.width)) : true; 9836 return typeof e == "string" || t.length === e.length; 9837 } 9838 }, 9839 sizes: { 9840 type: [ 9841 String, 9842 Object 9843 ], 9844 validator: (e) => { 9845 if (typeof e == "object") { 9846 let t = [ 9847 "xs", 9848 "sm", 9849 "md", 9850 "lg", 9851 "xl" 9852 ], n = 0; 9853 return Object.keys(e).filter((i) => (n++, t.includes(i))).length === n; 9854 } else return true; 9855 } 9856 }, 9857 sources: { 9858 type: Object, 9859 validator: (e) => { 9860 let t = [ 9861 "xs", 9862 "sm", 9863 "md", 9864 "lg", 9865 "xl" 9866 ], n = 0; 9867 return Object.keys(e).filter((i) => (n++, t.includes(i))).length === n; 9868 } 9869 }, 9870 maxWidth: { 9871 type: String 9872 }, 9873 width: { 9874 type: String 9875 }, 9876 height: { 9877 type: String 9878 }, 9879 alt: { 9880 type: String 9881 }, 9882 caption: { 9883 type: String 9884 }, 9885 fit: { 9886 type: String, 9887 default: "cover", 9888 validator(e) { 9889 return [ 9890 "cover", 9891 "contain" 9892 ].includes(e); 9893 } 9894 }, 9895 disableNativeLazyLoad: { 9896 type: Boolean, 9897 default: false 9898 }, 9899 zoomOnScrollIntoView: { 9900 type: Boolean, 9901 default: false 9902 } 9903 }, 9904 setup() { 9905 const e = _i(); 9906 return { 9907 isDefaultSlotEmpty: on(e.default).isSlotEmpty 9908 }; 9909 }, 9910 data() { 9911 return { 9912 hasAnimated: false 9913 }; 9914 }, 9915 computed: { 9916 hasCaption() { 9917 return !!(!this.isDefaultSlotEmpty || this.caption); 9918 }, 9919 role() { 9920 return this.alt == null || this.alt == "" ? "presentation" : null; 9921 }, 9922 sizesString() { 9923 return this.sizes != null ? typeof this.sizes == "string" ? this.sizes : this.getSizesString(this.sizes) : "100vw"; 9924 }, 9925 sortedSources() { 9926 if (this.sources != null) { 9927 let e = {}, t = [ 9928 "xl", 9929 "lg", 9930 "md", 9931 "sm", 9932 "xs" 9933 ]; 9934 for (let n of t) { 9935 let i = this.sources[n]; 9936 i && (e[n] = i); 9937 } 9938 return e; 9939 } 9940 return []; 9941 } 9942 }, 9943 methods: { 9944 getSrcSetString(e) { 9945 if (e != null) { 9946 if (typeof e == "string") return e; 9947 let t = ""; 9948 for (let n of e) t += n.url.replace(/ /g, "%20"), n.width != null && (t += " " + n.width + "w"), t += ","; 9949 return t.slice(0, -1); 9950 } 9951 }, 9952 getSizesString(e) { 9953 const t = []; 9954 for (let [i, a] of Object.entries(nd)) e[i] && t.push([ 9955 i, 9956 e[i] 9957 ]); 9958 const n = t[0]; 9959 return t.slice(1).reverse().map((i) =>
9959 this.getBreakpoint(i[0]) + " " + i[1] + ", ").join("") + n[1]; 9960 }, 9961 getBreakpoint(e) { 9962 return "(min-width: " + nd[e] + ")"; 9963 }, 9964 visibilityChanged(e) { 9965 e && !this.hasAnimated && (this.hasAnimated = true); 9966 } 9967 }, 9968 compatConfig: { 9969 MODE: 3 9970 } 9971 }, iw = [ 9972 "srcset", 9973 "sizes", 9974 "media" 9975 ], aw = [ 9976 "src", 9977 "srcSet", 9978 "sizes", 9979 "width", 9980 "height", 9981 "alt", 9982 "role", 9983 "loading" 9984 ], sw = { 9985 key: 0, 9986 class: "n-picture__caption small has-outro-text" 9987 }; 9988 function ow(e, t, n, i, a, r) { 9989 const s = Gn("observe-visibility"); 9990 return Je((m(), U(ue(r.hasCaption ? "figure" : "div"), { 9991 class: R([ 9992 [ 9993 { 9994 "is-animated-on-scroll": n.zoomOnScrollIntoView 9995 }, 9996 { 9997 "is-scrolled-into-view": a.hasAnimated 9998 } 9999 ], 10000 "n-picture" 10001 ]) 10002 }, { 10003 default: I(() => [ 10004 O("picture", null, [ 10005 (m(true), x(me, null, ve(r.sortedSources, (o, l, u) => (m(), x("source", { 10006 key: u, 10007 srcset: r.getSrcSetString(o.srcSet), 10008 sizes: o.size || r.sizesString, 10009 media: r.getBreakpoint(l) 10010 }, null, 8, iw))), 128)), 10011 O("img", { 10012 src: n.src, 10013 srcSet: r.getSrcSetString(n.srcSet), 10014 sizes: r.sizesString, 10015 width: n.width, 10016 height: n.height, 10017 alt: `${n.alt === null || n.alt === void 0 ? "" : n.alt}`, 10018 role: r.role, 10019 style: en(e.mediaPosition_styleObject), 10020 loading: n.disableNativeLazyLoad ? false : "lazy", 10021 class: "n-picture__img" 10022 }, null, 12, aw) 10023 ]), 10024 r.hasCaption ? (m(), x("figcaption", sw, [ 10025 V(e.$slots, "default", {}, () => [ 10026 re(H(n.caption), 1) 10027 ]) 10028 ])) : M("", true) 10029 ]), 10030 _: 3 10031 }, 8, [ 10032 "class" 10033 ])), [ 10034 [ 10035 s, 10036 { 10037 callback: r.visibilityChanged, 10038 throttle: 0, 10039 intersection: { 10040 threshold: 0.5 10041 } 10042 } 10043 ] 10044 ]); 10045 } 10046 let Kn, Is, lw, uw, cw; 10047 jn = te(rw, [ 10048 [ 10049 "render", 10050 ow 10051 ] 10052 ]); 10053 Kn = { 10054 props: { 10055 title: { 10056 type: String 10057 }, 10058 disableDesktopShadow: { 10059 type: Boolean 10060 }, 10061 desktopBackground: { 10062 ...Se.background, 10063 default: "white" 10064 }, 10065 desktopBreakpoint: { 10066 type: String, 10067 default: "xl", 10068 validator: (e) => [ 10069 "xs", 10070 "sm", 10071 "md", 10072 "lg", 10073 "xl" 10074 ].includes(e) 10075 }, 10076 search: { 10077 type: Object, 10078 default: () => ({}) 10079 }, 10080 langToggle: { 10081 type: Array, 10082 default: () => [] 10083 }, 10084 ctas: { 10085 type: Array, 10086 default: () => [] 10087 }, 10088 utilityLinks: { 10089 type: Array, 10090 default: () => [] 10091 }, 10092 navLinks: { 10093 type: Array, 10094 default: () => [] 10095 }, 10096 navLabel: { 10097 type: String, 10098 default: function() { 10099 return Ze.global.t("primary"); 10100 } 10101 }, 10102 desktopAlignMenuLeft: { 10103 type: Boolean, 10104 default: false 10105 }, 10106 showLogoInUtilityBar: { 10107 type: Boolean, 10108 default: false 10109 }, 10110 shouldDetermineCurrentSubcomponents: { 10111 type: Object, 10112 default: function() { 10113 return { 10114 "n-header-desktop": false, 10115 "n-header-mobile": false, 10116 "n-header-nav-desktop": false, 10117 "n-header-nav-desktop-submenu": false, 10118 "n-header-nav-mobile": false, 10119 "n-header-nav-mobile-submenu": false, 10120 "n-secondary-nav-bar": false 10121 }; 10122 } 10123 } 10124 }, 10125 computed: { 10126 mobileBreakpoint() { 10127 const e = [ 10128 "xs", 10129 "sm", 10130 "md", 10131 "lg", 10132 "xl" 10133 ], t = e.lastIndexOf(this.desktopBreakpoint) - 1; 10134 return e[t]; 10135 }, 10136 flattenedNavLinks() { 10137 return Array.prototype.concat.apply([], this.navLinks); 10138 }, 10139 shouldDetermineCurrent() { 10140 return this.$options.name in this.shouldDetermineCurrentSubcomponents ? this.shouldDetermineCurrentSubcomponents[this.$options.name] : false;
10141 } 10142 }, 10143 methods: { 10144 notNullOrEmpty(e) { 10145 return e && e.length; 10146 }, 10147 getValidLinks(e) { 10148 return this.notNullOrEmpty(e) ? e.filter((t) => this.notNullOrEmpty(t.href) || this.notNullOrEmpty(t.children)) : e; 10149 } 10150 } 10151 }; 10152 Is = { 10153 props: { 10154 logos: { 10155 type: [ 10156 Object, 10157 Array 10158 ], 10159 required: true 10160 } 10161 } 10162 }; 10163 lw = { 10164 name: "n-header-logos", 10165 components: { 10166 NLink: at, 10167 NPicture: jn 10168 }, 10169 mixins: [ 10170 Kn, 10171 Is, 10172 bt, 10173 nt 10174 ], 10175 props: { 10176 tabindex: { 10177 type: Number, 10178 default: null 10179 } 10180 }, 10181 data() { 10182 return { 10183 breakpoints: Kl() 10184 }; 10185 }, 10186 computed: { 10187 isList() { 10188 return this.logos.length > 1; 10189 }, 10190 theLogos() { 10191 return Array.isArray(this.logos) ? this.logos : [ 10192 this.logos 10193 ]; 10194 } 10195 }, 10196 methods: { 10197 setBreakpointMaxWidths(e) { 10198 if (!e.sizes) return {}; 10199 let t = {}; 10200 for (const [n] of Object.entries(this.breakpoints)) e.sizes[n] && (t[`--logo-max-width-${n}`] = `${e.sizes[n]}px`); 10201 return t; 10202 }, 10203 logoMediaProps(e) { 10204 return { 10205 fit: "contain", 10206 disableNativeLazyLoad: true, 10207 ...this.mediaProps(e) 10208 }; 10209 } 10210 } 10211 }; 10212 uw = [ 10213 "id" 10214 ]; 10215 cw = { 10216 key: 1 10217 }; 10218 function dw(e, t, n, i, a, r) { 10219 const s = j("NPicture"), o = j("NLink"); 10220 return r.theLogos.length ? (m(), U(ue(r.isList ? "ul" : "div"), { 10221 key: 0, 10222 class: "n-header-logos n-unordered-list--unstyled", 10223 "data-n-context": "header-logos" 10224 }, { 10225 default: I(() => [ 10226 (m(true), x(me, null, ve(r.theLogos, (l, u) => (m(), U(ue(r.isList ? "li" : "div"), { 10227 key: u, 10228 class: "n-header-logos__list-item" 10229 }, { 10230 default: I(() => [ 10231 O("div", { 10232 id: `${e.id}-${u}`, 10233 class: "n-header-logos__logo", 10234 style: en(r.setBreakpointMaxWidths(l)) 10235 }, [ 10236 l.href ? (m(), U(o, { 10237 key: 0, 10238 href: l.href, 10239 class: "n-header-logos__link no-printed-href", 10240 tabindex: n.tabindex 10241 }, { 10242 default: I(() => [ 10243 K(s, fe({ 10244 ref_for: true 10245 }, r.logoMediaProps(l.media), { 10246 class: "n-header-logos__picture" 10247 }), null, 16) 10248 ]), 10249 _: 2 10250 }, 1032, [ 10251 "href", 10252 "tabindex" 10253 ])) : (m(), x("div", cw, [ 10254 K(s, fe({ 10255 ref_for: true 10256 }, r.logoMediaProps(l.media), { 10257 class: "n-header-logos__picture" 10258 }), null, 16) 10259 ])) 10260 ], 12, uw) 10261 ]), 10262 _: 2 10263 }, 1024))), 128)) 10264 ]), 10265 _: 1 10266 })) : M("", true); 10267 } 10268 const su = te(lw, [ 10269 [ 10270 "render", 10271 dw 10272 ] 10273 ]); 10274 var Wm = { 10275 exports: {} 10276 }, id = { 10277 exports: {} 10278 }, ad; 10279 function pw() { 10280 return ad || (ad = 1, function(e, t) { 10281 (function(n, i) { 10282 e.exports = i(); 10283 })(typeof window < "u" ? window : Qt, function() { 10284 if (typeof window > "u") return null; 10285 var n = typeof window < "u" && window.Math == Math ? window : typeof self < "u" && self.Math == Math ? self : Function("return this")(), i = n.requestAnimationFrame || n.mozRequestAnimationFrame || n.webkitRequestAnimationFrame || function(c) { 10286 return n.setTimeout(c, 20); 10287 }, a = n.cancelAnimationFrame || n.mozCancelAnimationFrame || n.webkitCancelAnimationFrame || function(c) { 10288 n.clearTimeout(c); 10289 }; 10290 function r(c, d) { 10291 var p = Object.prototype.toString.call(c), b = p === "[object Array]" || p === "[object NodeList]" || p === "[object HTMLCollection]" || p === "[object Object]" || typeof jQuery < "u" && c instanceof jQuery || typeof Elements < "u" && c instanceof Elements, h = 0, _ = c.length; 10292 if (b) for (; h < _; h++) d(c[h]); 10293 else d(c); 10294 } 10295 function s(c) { 10296 if (!c.getBoundingClientRect) return { 10297 width: c.offsetWidth, 10298 height: c.offsetHeight 10299 }; 10300 var d = c.getBoundingClientRect(); 10301 return { 10302 width: Math.round(d.width), 10303 height: Math.round(d.height) 10304 }; 10305 } 10306 function o(c, d) {
10307 Object.keys(d).forEach(function(p) { 10308 c.style[p] = d[p]; 10309 }); 10310 } 10311 var l = function(c, d) { 10312 var p = 0; 10313 function b() { 10314 var _ = []; 10315 this.add = function(N) { 10316 _.push(N); 10317 }; 10318 var C, D; 10319 this.call = function(N) { 10320 for (C = 0, D = _.length; C < D; C++) _[C].call(this, N); 10321 }, this.remove = function(N) { 10322 var v = []; 10323 for (C = 0, D = _.length; C < D; C++) _[C] !== N && v.push(_[C]); 10324 _ = v; 10325 }, this.length = function() { 10326 return _.length; 10327 }; 10328 } 10329 function h(_, C) { 10330 if (_) { 10331 if (_.resizedAttached) { 10332 _.resizedAttached.add(C); 10333 return; 10334 } 10335 _.resizedAttached = new b(), _.resizedAttached.add(C), _.resizeSensor = document.createElement("div"), _.resizeSensor.dir = "ltr", _.resizeSensor.className = "resize-sensor"; 10336 var D = { 10337 pointerEvents: "none", 10338 position: "absolute", 10339 left: "0px", 10340 top: "0px", 10341 right: "0px", 10342 bottom: "0px", 10343 overflow: "hidden", 10344 zIndex: "-1", 10345 visibility: "hidden", 10346 maxWidth: "100%" 10347 }, N = { 10348 position: "absolute", 10349 left: "0px", 10350 top: "0px", 10351 transition: "0s" 10352 }; 10353 o(_.resizeSensor, D); 10354 var v = document.createElement("div"); 10355 v.className = "resize-sensor-expand", o(v, D); 10356 var y = document.createElement("div"); 10357 o(y, N), v.appendChild(y); 10358 var E = document.createElement("div"); 10359 E.className = "resize-sensor-shrink", o(E, D); 10360 var k = document.createElement("div"); 10361 o(k, N), o(k, { 10362 width: "200%", 10363 height: "200%" 10364 }), E.appendChild(k), _.resizeSensor.appendChild(v), _.resizeSensor.appendChild(E), _.appendChild(_.resizeSensor); 10365 var A = window.getComputedStyle(_), L = A ? A.getPropertyValue("position") : null; 10366 L !== "absolute" && L !== "relative" && L !== "fixed" && L !== "sticky" && (_.style.position = "relative"); 10367 var w = false, z = 0, T = s(_), P = 0, G = 0, X = true; 10368 p = 0; 10369 var Y = function() { 10370 var Q = _.offsetWidth, oe = _.offsetHeight; 10371 y.style.width = Q + 10 + "px", y.style.height = oe + 10 + "px", v.scrollLeft = Q + 10, v.scrollTop = oe + 10, E.scrollLeft = Q + 10, E.scrollTop = oe + 10; 10372 }, q = function() { 10373 if (X) { 10374 var Q = _.offsetWidth === 0 && _.offsetHeight === 0; 10375 if (Q) { 10376 p || (p = i(function() { 10377 p = 0, q(); 10378 })); 10379 return; 10380 } else X = false; 10381 } 10382 Y(); 10383 }; 10384 _.resizeSensor.resetSensor = q; 10385 var J = function() { 10386 z = 0, w && (P = T.width, G = T.height, _.resizedAttached && _.resizedAttached.call(T)); 10387 }, Z = function() { 10388 T = s(_), w = T.width !== P || T.height !== G, w && !z && (z = i(J)), q(); 10389 }, se = function(Q, oe, ce) { 10390 Q.attachEvent ? Q.attachEvent("on" + oe, ce) : Q.addEventListener(oe, ce); 10391 }; 10392 se(v, "scroll", Z), se(E, "scroll", Z), p = i(function() { 10393 p = 0, q(); 10394 }); 10395 } 10396 } 10397 r(c, function(_) { 10398 h(_, d); 10399 }), this.detach = function(_) { 10400 p || (a(p), p = 0), l.detach(c, _); 10401 }, this.reset = function() { 10402 c.resizeSensor.resetSensor(); 10403 }; 10404 }; 10405 if (l.reset = function(c) { 10406 r(c, function(d) { 10407 d.resizeSensor.resetSensor(); 10408 }); 10409 }, l.detach = function(c, d) { 10410 r(c, function(p) { 10411 p && (p.resizedAttached && typeof d == "function" && (p.resizedAttached.remove(d), p.resizedAttached.length()) || p.resizeSensor && (p.contains(p.resizeSensor) && p.removeChild(p.resizeSensor), delete p.resizeSensor, delete p.resizedAttached)); 10412 }); 10413 }, typeof MutationObserver < "u") { 10414 var u = new MutationObserver(function(c) { 10415 for (var d in c) if (c.hasOwnProperty(d)) for (var p = c[d].addedNodes, b = 0; b < p.length; b++) p[b].resizeSensor && l.reset(p[b]); 10416 }); 10417 document.addEventListener("DOMContentLoaded", function(c) { 10418 u.observe(document.body, { 10419 childList: true, 10420 subtree: true 10421 }); 10422 }); 10423 } 10424 return l; 10425 }); 10426 }(id)), id.exports; 10427 } 10428 var co, sd; 10429 function Gm() { 10430 if (sd) return co; 10431 sd = 1; 10432 var e = "Expected a function", t = NaN, n = "[object Symbol]", i = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01
10432]+$/i, s = /^0o[0-7]+$/i, o = parseInt, l = typeof Qt == "object" && Qt && Qt.Object === Object && Qt, u = typeof self == "object" && self && self.Object === Object && self, c = l || u || Function("return this")(), d = Object.prototype, p = d.toString, b = Math.max, h = Math.min, _ = function() { 10433 return c.Date.now(); 10434 }; 10435 function C(E, k, A) { 10436 var L, w, z, T, P, G, X = 0, Y = false, q = false, J = true; 10437 if (typeof E != "function") throw new TypeError(e); 10438 k = y(k) || 0, D(A) && (Y = !!A.leading, q = "maxWait" in A, z = q ? b(y(A.maxWait) || 0, k) : z, J = "trailing" in A ? !!A.trailing : J); 10439 function Z(_e) { 10440 var Te = L, Ee = w; 10441 return L = w = void 0, X = _e, T = E.apply(Ee, Te), T; 10442 } 10443 function se(_e) { 10444 return X = _e, P = setTimeout(ce, k), Y ? Z(_e) : T; 10445 } 10446 function Q(_e) { 10447 var Te = _e - G, Ee = _e - X, Le = k - Te; 10448 return q ? h(Le, z - Ee) : Le; 10449 } 10450 function oe(_e) { 10451 var Te = _e - G, Ee = _e - X; 10452 return G === void 0 || Te >= k || Te < 0 || q && Ee >= z; 10453 } 10454 function ce() { 10455 var _e = _(); 10456 if (oe(_e)) return be(_e); 10457 P = setTimeout(ce, Q(_e)); 10458 } 10459 function be(_e) { 10460 return P = void 0, J && L ? Z(_e) : (L = w = void 0, T); 10461 } 10462 function ye() { 10463 P !== void 0 && clearTimeout(P), X = 0, L = G = w = P = void 0; 10464 } 10465 function ke() { 10466 return P === void 0 ? T : be(_()); 10467 } 10468 function Ae() { 10469 var _e = _(), Te = oe(_e); 10470 if (L = arguments, w = this, G = _e, Te) { 10471 if (P === void 0) return se(G); 10472 if (q) return P = setTimeout(ce, k), Z(G); 10473 } 10474 return P === void 0 && (P = setTimeout(ce, k)), T; 10475 } 10476 return Ae.cancel = ye, Ae.flush = ke, Ae; 10477 } 10478 function D(E) { 10479 var k = typeof E; 10480 return !!E && (k == "object" || k == "function"); 10481 } 10482 function N(E) { 10483 return !!E && typeof E == "object"; 10484 } 10485 function v(E) { 10486 return typeof E == "symbol" || N(E) && p.call(E) == n; 10487 } 10488 function y(E) { 10489 if (typeof E == "number") return E; 10490 if (v(E)) return t; 10491 if (D(E)) { 10492 var k = typeof E.valueOf == "function" ? E.valueOf() : E; 10493 E = D(k) ? k + "" : k; 10494 } 10495 if (typeof E != "string") return E === 0 ? E : +E; 10496 E = E.replace(i, ""); 10497 var A = r.test(E); 10498 return A || s.test(E) ? o(E.slice(2), A ? 2 : 8) : a.test(E) ? t : +E; 10499 } 10500 return co = C, co; 10501 } 10502 (function(e, t) { 10503 (function(n, i) { 10504 e.exports = i(pw(), Gm()); 10505 })(Qt, function(n, i) { 10506 return function(a) { 10507 function r(o) { 10508 if (s[o]) return s[o].exports; 10509 var l = s[o] = { 10510 exports: {}, 10511 id: o, 10512 loaded: false 10513 }; 10514 return a[o].call(l.exports, l, l.exports, r), l.loaded = true, l.exports; 10515 } 10516 var s = {}; 10517 return r.m = a, r.c = s, r.p = "/", r(0); 10518 }([ 10519 function(a, r, s) { 10520 var o, l, u; 10521 (function(c, d) { 10522 l = [ 10523 a, 10524 r, 10525 s(10), 10526 s(38), 10527 s(39), 10528 s(9), 10529 s(37) 10530 ], o = d, u = typeof o == "function" ? o.apply(r, l) : o, u !== void 0 && (a.exports = u); 10531 })(this, function(c, d, p, b, h) { 10532 function _(T) { 10533 return T && T.__esModule ? T : { 10534 default: T 10535 }; 10536 } 10537 function C(T) { 10538 if (!T) return { 10539 delay: z, 10540 initial: false 10541 }; 10542 var P = T.initial, G = P !== void 0 && P, X = (0, E.default)(T).map(function(Y) { 10543 return parseInt(Y); 10544 }).find(function(Y) { 10545 return !isNaN(Y); 10546 }); 10547 return X = X || z, { 10548 delay: X, 10549 initial: G 10550 }; 10551 } 10552 function D(T, P) { 10553 var G = { 10554 root: document.documentElement 10555 }, X = new IntersectionObserver(function(Y, q) { 10556 Y.forEach(function(J) { 10557 J.isIntersecting && (P(), q.disconnect()); 10558 }); 10559 }, G); 10560 return X.observe(T), X; 10561 } 10562 function N(T, P) { 10563 var G = P.value, X = P.arg, Y = P.options, q = function() { 10564 return G(T); 10565 }; 10566 switch (X) { 10567 case "debounce": 10568 q = w(function() { 10569 return G(T); 10570 }, Y.delay); 10571 break; 10572 case "throttle": 10573 q = w(function() { 10574 return G(T); 10575 }, Y.delay, { 10576 leading: true, 10577 trailing: true, 10578 maxWait: Y.delay 10579 }); 10580 } 10581 var J = new k.default(T, q); 10582 return Y.initial && G(T), J; 10583 } 10584 function v(T, P, G) { 10585 var X = P.value, Y = P.arg, q = P.modifiers, J = G.context; 10586 if (!X || typeof X != "function") return void console.warn("v-resize should received a function as value"); 10587 var Z = C(q); 10588 return J && J.$el === T && J.$once("hook:deactivated", function() { 10589 y(T), J.$once("hook:activated", function() { 10590 v(T, { 10591 value: X, 10592 arg: Y, 10593 modifiers: q 10594 }, { 10595 context: J 10596 }); 10597 }); 10598 }), T.offsetParent ? void N(T, { 10599 value: X, 10600 arg: Y, 10601 options: Z 10602 }) : (Z.initial = true, void (T.__visibility__listener__ = D(T, function() { 10603 return N(T, { 10604 value: X, 10605 arg: Y, 10606 options: Z 10607 }); 10608 }))); 10609 } 10610 function y(T) { 10611 T.__visibility__listener__ && T.__visibility__listener__.disconnect(), T.resizeSensor && k.default.detach(T); 10612 } 10613 Object.defineProperty(d, "__esModule", { 10614 value: true 10615 }); 10616 var E = _(p), k = _(b), A = _(h), L = A.default.debounce, w = L === void 0 ? A.default : L, z = 150; 10617 d.default = { 10618 inserted: v, 10619 unbind: y 10620 }, c.exports = d.default; 10621 }); 10622 }, 10623 function(a, r) { 10624 var s = a.exports = { 10625 version: "2.4.0"
10626 }; 10627 typeof __e == "number" && (__e = s); 10628 }, 10629 function(a, r, s) { 10630 a.exports = !s(3)(function() { 10631 return Object.defineProperty({}, "a", { 10632 get: function() { 10633 return 7; 10634 } 10635 }).a != 7; 10636 }); 10637 }, 10638 function(a, r) { 10639 a.exports = function(s) { 10640 try { 10641 return !!s(); 10642 } catch { 10643 return true; 10644 } 10645 }; 10646 }, 10647 function(a, r) { 10648 var s = a.exports = typeof window < "u" && window.Math == Math ? window : typeof self < "u" && self.Math == Math ? self : Function("return this")(); 10649 typeof __g == "number" && (__g = s); 10650 }, 10651 function(a, r) { 10652 a.exports = function(s) { 10653 return typeof s == "object" ? s !== null : typeof s == "function"; 10654 }; 10655 }, 10656 function(a, r) { 10657 a.exports = function(s) { 10658 if (s == null) throw TypeError("Can't call method on " + s); 10659 return s; 10660 }; 10661 }, 10662 function(a, r) { 10663 var s = Math.ceil, o = Math.floor; 10664 a.exports = function(l) { 10665 return isNaN(l = +l) ? 0 : (l > 0 ? o : s)(l); 10666 }; 10667 }, 10668 function(a, r, s) { 10669 var o = s(23), l = s(6); 10670 a.exports = function(u) { 10671 return o(l(u)); 10672 }; 10673 }, 10674 function(a, r, s) { 10675 var o, l, u; 10676 (function(c, d) { 10677 l = [], o = d, u = typeof o == "function" ? o.apply(r, l) : o, u !== void 0 && (a.exports = u); 10678 })(this, function() { 10679 Array.prototype.find || Object.defineProperty(Array.prototype, "find", { 10680 value: function(c) { 10681 if (this == null) throw new TypeError('"this" is null or not defined'); 10682 var d = Object(this), p = d.length >>> 0; 10683 if (typeof c != "function") throw new TypeError("predicate must be a function"); 10684 for (var b = arguments[1], h = 0; h < p; ) { 10685 var _ = d[h]; 10686 if (c.call(b, _, h, d)) return _; 10687 h++; 10688 } 10689 }, 10690 configurable: true, 10691 writable: true 10692 }); 10693 }); 10694 }, 10695 function(a, r, s) { 10696 a.exports = { 10697 default: s(11), 10698 __esModule: true 10699 }; 10700 }, 10701 function(a, r, s) { 10702 s(36), a.exports = s(1).Object.keys; 10703 }, 10704 function(a, r) { 10705 a.exports = function(s) { 10706 if (typeof s != "function") throw TypeError(s + " is not a function!"); 10707 return s; 10708 }; 10709 }, 10710 function(a, r, s) { 10711 var o = s(5); 10712 a.exports = function(l) { 10713 if (!o(l)) throw TypeError(l + " is not an object!"); 10714 return l; 10715 }; 10716 }, 10717 function(a, r, s) { 10718 var o = s(8), l = s(32), u = s(31); 10719 a.exports = function(c) { 10720 return function(d, p, b) { 10721 var h, _ = o(d), C = l(_.length), D = u(b, C); 10722 if (c && p != p) { 10723 for (; C > D; ) if (h = _[D++], h != h) return true; 10724 } else for (; C > D; D++) if ((c || D in _) && _[D] === p) return c || D || 0; 10725 return !c && -1; 10726 }; 10727 }; 10728 }, 10729 function(a, r) { 10730 var s = {}.toString; 10731 a.exports = function(o) { 10732 return s.call(o).slice(8, -1); 10733 }; 10734 }, 10735 function(a, r, s) { 10736 var o = s(12); 10737 a.exports = function(l, u, c) { 10738 if (o(l), u === void 0) return l; 10739 switch (c) { 10740 case 1: 10741 return function(d) { 10742 return l.call(u, d); 10743 }; 10744 case 2: 10745 return function(d, p) { 10746 return l.call(u, d, p); 10747 }; 10748 case 3: 10749 return function(d, p, b) { 10750 return l.call(u, d, p, b); 10751 }; 10752 } 10753 return function() { 10754 return l.apply(u, arguments); 10755 }; 10756 }; 10757 }, 10758 function(a, r, s) { 10759 var o = s(5), l = s(4).document, u = o(l) && o(l.createElement); 10760 a.exports = function(c) { 10761 return u ? l.createElement(c) : {}; 10762 }; 10763 }, 10764 function(a, r) { 10765 a.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleStr
10765ing,toString,valueOf".split(","); 10766 }, 10767 function(a, r, s) { 10768 var o = s(4), l = s(1), u = s(16), c = s(21), d = "prototype", p = function(b, h, _) { 10769 var C, D, N, v = b & p.F, y = b & p.G, E = b & p.S, k = b & p.P, A = b & p.B, L = b & p.W, w = y ? l : l[h] || (l[h] = {}), z = w[d], T = y ? o : E ? o[h] : (o[h] || {})[d]; 10770 y && (_ = h); 10771 for (C in _) D = !v && T && T[C] !== void 0, D && C in w || (N = D ? T[C] : _[C], w[C] = y && typeof T[C] != "function" ? _[C] : A && D ? u(N, o) : L && T[C] == N ? function(P) { 10772 var G = function(X, Y, q) { 10773 if (this instanceof P) { 10774 switch (arguments.length) { 10775 case 0: 10776 return new P(); 10777 case 1: 10778 return new P(X); 10779 case 2: 10780 return new P(X, Y); 10781 } 10782 return new P(X, Y, q); 10783 } 10784 return P.apply(this, arguments); 10785 }; 10786 return G[d] = P[d], G; 10787 }(N) : k && typeof N == "function" ? u(Function.call, N) : N, k && ((w.virtual || (w.virtual = {}))[C] = N, b & p.R && z && !z[C] && c(z, C, N))); 10788 }; 10789 p.F = 1, p.G = 2, p.S = 4, p.P = 8, p.B = 16, p.W = 32, p.U = 64, p.R = 128, a.exports = p; 10790 }, 10791 function(a, r) { 10792 var s = {}.hasOwnProperty; 10793 a.exports = function(o, l) { 10794 return s.call(o, l); 10795 }; 10796 }, 10797 function(a, r, s) { 10798 var o = s(24), l = s(28); 10799 a.exports = s(2) ? function(u, c, d) { 10800 return o.f(u, c, l(1, d)); 10801 } : function(u, c, d) { 10802 return u[c] = d, u; 10803 }; 10804 }, 10805 function(a, r, s) { 10806 a.exports = !s(2) && !s(3)(function() { 10807 return Object.defineProperty(s(17)("div"), "a", { 10808 get: function() { 10809 return 7; 10810 } 10811 }).a != 7; 10812 }); 10813 }, 10814 function(a, r, s) { 10815 var o = s(15); 10816 a.exports = Object("z").propertyIsEnumerable(0) ? Object : function(l) { 10817 return o(l) == "String" ? l.split("") : Object(l); 10818 }; 10819 }, 10820 function(a, r, s) { 10821 var o = s(13), l = s(22), u = s(34), c = Object.defineProperty; 10822 r.f = s(2) ? Object.defineProperty : function(d, p, b) { 10823 if (o(d), p = u(p, true), o(b), l) try { 10824 return c(d, p, b); 10825 } catch { 10826 } 10827 if ("get" in b || "set" in b) throw TypeError("Accessors not supported!"); 10828 return "value" in b && (d[p] = b.value), d; 10829 }; 10830 }, 10831 function(a, r, s) { 10832 var o = s(20), l = s(8), u = s(14)(false), c = s(29)("IE_PROTO"); 10833 a.exports = function(d, p) { 10834 var b, h = l(d), _ = 0, C = []; 10835 for (b in h) b != c && o(h, b) && C.push(b); 10836 for (; p.length > _; ) o(h, b = p[_++]) && (~u(C, b) || C.push(b)); 10837 return C; 10838 }; 10839 }, 10840 function(a, r, s) { 10841 var o = s(25), l = s(18); 10842 a.exports = Object.keys || function(u) { 10843 return o(u, l); 10844 }; 10845 }, 10846 function(a, r, s) { 10847 var o = s(19), l = s(1), u = s(3); 10848 a.exports = function(c, d) { 10849 var p = (l.Object || {})[c] || Object[c], b = {}; 10850 b[c] = d(p), o(o.S + o.F * u(function() { 10851 p(1); 10852 }), "Object", b); 10853 }; 10854 }, 10855 function(a, r) { 10856 a.exports = function(s, o) { 10857 return { 10858 enumerable: !(1 & s), 10859 configurable: !(2 & s), 10860 writable: !(4 & s), 10861 value: o 10862 }; 10863 }; 10864 }, 10865 function(a, r, s) { 10866 var o = s(30)("keys"), l = s(35); 10867 a.exports = function(u) { 10868 return o[u] || (o[u] = l(u)); 10869 }; 10870 }, 10871 function(a, r, s) { 10872 var o = s(4), l = "__core-js_shared__", u = o[l] || (o[l] = {}); 10873 a.exports = function(c) { 10874 return u[c] || (u[c] = {}); 10875 }; 10876 }, 10877 function(a, r, s) { 10878 var o = s(7), l = Math.max, u = Math.min; 10879 a.exports = function(c, d) { 10880 return c = o(c), c < 0 ? l(c + d, 0) : u(c, d); 10881 }; 10882 }, 10883 function(a, r, s) { 10884 var o = s(7), l = Math.min; 10885 a.exports = function(u) { 10886 return u > 0 ? l(o(u), 9007199254740991) : 0; 10887 }; 10888 }, 10889 function(a, r, s) { 10890 var o = s(6); 10891 a.exports = function(l) { 10892 return Object(o(l)); 10893 }; 10894 }, 10895 function(a, r, s) { 10896 var o = s(5); 10897 a.exports = function(l, u) { 10898 if (!o(l)) return l; 10899 var c, d; 10900 if (u && typeof (c = l.toString) == "function" && !o(d = c.call(l)) || typeof (c = l.valueOf) == "function" && !o(d = c.call(l)) || !u && typeof (c = l.toString) == "function" && !o(d = c.call(l))) return d; 10901 throw TypeError("Can't convert object to primitive value"); 10902 }; 10903 }, 10904 function(a, r) { 10905 var s = 0, o = Math.random(); 10906 a.exports = function(l) { 10907 return "Symbol(".concat(l === void 0 ? "" : l, ")_", (++s + o).toString(36)); 10908 }; 10909 }, 10910 function(a, r, s) { 10911 var o = s(33), l = s(26); 10912 s(27)("keys", function() { 10913 return function(u) { 10914 return l(o(u)); 10915 }; 10916 }); 10917 }, 10918 function(a, r) { 10919 (function(s, o) { 10920 function l(v) { 10921 this.time = v.time, this.target = v.target, this.rootBounds = v.rootBounds, this.boundingClientRect = v.boun
10921dingClientRect, this.intersectionRect = v.intersectionRect || C(), this.isIntersecting = !!v.intersectionRect; 10922 var y = this.boundingClientRect, E = y.width * y.height, k = this.intersectionRect, A = k.width * k.height; 10923 E ? this.intersectionRatio = A / E : this.intersectionRatio = this.isIntersecting ? 1 : 0; 10924 } 10925 function u(v, y) { 10926 var E = y || {}; 10927 if (typeof v != "function") throw new Error("callback must be a function"); 10928 if (E.root && E.root.nodeType != 1) throw new Error("root must be an Element"); 10929 this._checkForIntersections = d(this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT), this._callback = v, this._observationTargets = [], this._queuedEntries = [], this._rootMarginValues = this._parseRootMargin(E.rootMargin), this.thresholds = this._initThresholds(E.threshold), this.root = E.root || null, this.rootMargin = this._rootMarginValues.map(function(k) { 10930 return k.value + k.unit; 10931 }).join(" "); 10932 } 10933 function c() { 10934 return s.performance && performance.now && performance.now(); 10935 } 10936 function d(v, y) { 10937 var E = null; 10938 return function() { 10939 E || (E = setTimeout(function() { 10940 v(), E = null; 10941 }, y)); 10942 }; 10943 } 10944 function p(v, y, E, k) { 10945 typeof v.addEventListener == "function" ? v.addEventListener(y, E, k) : typeof v.attachEvent == "function" && v.attachEvent("on" + y, E); 10946 } 10947 function b(v, y, E, k) { 10948 typeof v.removeEventListener == "function" ? v.removeEventListener(y, E, k) : typeof v.detatchEvent == "function" && v.detatchEvent("on" + y, E); 10949 } 10950 function h(v, y) { 10951 var E = Math.max(v.top, y.top), k = Math.min(v.bottom, y.bottom), A = Math.max(v.left, y.left), L = Math.min(v.right, y.right), w = L - A, z = k - E; 10952 return w >= 0 && z >= 0 && { 10953 top: E, 10954 bottom: k, 10955 left: A, 10956 right: L, 10957 width: w, 10958 height: z 10959 }; 10960 } 10961 function _(v) { 10962 var y; 10963 try { 10964 y = v.getBoundingClientRect(); 10965 } catch { 10966 } 10967 return y ? (y.width && y.height || (y = { 10968 top: y.top, 10969 right: y.right, 10970 bottom: y.bottom, 10971 left: y.left, 10972 width: y.right - y.left, 10973 height: y.bottom - y.top 10974 }), y) : C(); 10975 } 10976 function C() { 10977 return { 10978 top: 0, 10979 bottom: 0, 10980 left: 0, 10981 right: 0, 10982 width: 0, 10983 height: 0 10984 }; 10985 } 10986 function D(v, y) { 10987 for (var E = y; E; ) { 10988 if (E == v) return true; 10989 E = N(E); 10990 } 10991 return false; 10992 } 10993 function N(v) { 10994 var y = v.parentNode; 10995 return y && y.nodeType == 11 && y.host ? y.host : y; 10996 } 10997 if ("IntersectionObserver" in s && "IntersectionObserverEntry" in s && "intersectionRatio" in s.IntersectionObserverEntry.prototype) return void ("isIntersecting" in s.IntersectionObserverEntry.prototype || Object.defineProperty(s.IntersectionObserverEntry.prototype, "isIntersecting", { 10998 get: function() { 10999 return this.intersectionRatio > 0; 11000 } 11001 })); 11002 u.prototype.THROTTLE_TIMEOUT = 100, u.prototype.POLL_INTERVAL = null, u.prototype.USE_MUTATION_OBSERVER = true, u.prototype.observe = function(v) { 11003 var y = this._observationTargets.some(function(E) { 11004 return E.element == v; 11005 }); 11006 if (!y) { 11007 if (!v || v.nodeType != 1) throw new Error("target must be an Element"); 11008 this._registerInstance(), this._observationTargets.push({ 11009 element: v, 11010 entry: null 11011 }), this._monitorIntersections(), this._checkForIntersections(); 11012 } 11013 }, u.prototype.unobserve = function(v) { 11014 this._observationTargets = this._observationTargets.filter(function(y) { 11015 return y.element != v; 11016 }), this._observationTargets.length || (this._unmonitorIntersections(), this._unregisterInstance()); 11017 }, u.prototype.disconnect = function() { 11018 this._observationTargets = [], this._unmonitorIntersections(), this._unregisterInstance(); 11019 }, u.prototype.takeRecords = function() { 11020 var v = this._queuedEntries.slice(); 11021 return this._queuedEntries = [], v; 11022 }, u.prototype._initThresholds = function(v) { 11023 var y = v || [ 11024 0 11025 ]; 11026 return Array.isArray(y) || (y = [ 11027 y 11028 ]), y.sort().filter(function(E, k, A) { 11029 if (typeof E != "number" || isNaN(E) || E < 0 || E > 1) throw new Error("threshold must be a number between 0 and 1 inclusively"); 11030 return E !== A[k - 1]; 11031 }); 11032 }, u.prototype._parseRootMargin = function(v) { 11033 var y = v || "0px", E = y.split(/\s+/).map(function(k) { 11034 var A = /^(-?\d*\.?\d+)(px|%)$/.exec(k); 11035 if (!A) throw new Error("rootMargin must be specified in pixels or percent"); 11036 return { 11037 value: parseFloat(A[1]), 11038 unit: A[2] 11039 }; 11040 }); 11041 return E[1] = E[1] || E[0], E[2] = E[2] || E[0], E[3] = E[3] || E[1], E; 11042 }, u.prototype._monitorIntersections = function() { 11043 this._monitoringIntersections || (this._monitoringIntersections = true, this.POLL_INTERVAL ? this._monitoringInterval = setInterval(this._checkForIntersections, this.POLL_INTERVAL) : (p(s, "resize", this._checkForIntersections, true), p(o, "scroll", this._checkForIntersections, true), this.USE_MUTATION_OBSERVER && "MutationObserver" in s && (this._domObserver = new MutationObserver(this._checkForIntersections), this._domObserver.observe(o, { 11044 attributes: true, 11045 childList: true, 11046 characterData: true, 11047 subtree: true 11048 })))); 11049 }, u.prototype._unmonitorIntersections = function() { 11050 this._monitoringIntersections && (this._monitoringIntersections = false, clearInterval(this._monitoringInterval), this._monitoringInterval = null, b(s, "resize", this._checkForIntersections, true), b(o, "scroll", this._checkForIntersections, true), this._domObserver && (this._domObserver.disconnect(), this._domObserver = null)); 11051 }, u.prototype._checkForIntersections = function() { 11052 var v = this._rootIsInDom(), y = v ? this._getRootRect() : C();
11053 this._observationTargets.forEach(function(E) { 11054 var k = E.element, A = _(k), L = this._rootContainsTarget(k), w = E.entry, z = v && L && this._computeTargetAndRootIntersection(k, y), T = E.entry = new l({ 11055 time: c(), 11056 target: k, 11057 boundingClientRect: A, 11058 rootBounds: y, 11059 intersectionRect: z 11060 }); 11061 w ? v && L ? this._hasCrossedThreshold(w, T) && this._queuedEntries.push(T) : w && w.isIntersecting && this._queuedEntries.push(T) : this._queuedEntries.push(T); 11062 }, this), this._queuedEntries.length && this._callback(this.takeRecords(), this); 11063 }, u.prototype._computeTargetAndRootIntersection = function(v, y) { 11064 if (s.getComputedStyle(v).display != "none") { 11065 for (var E = _(v), k = E, A = N(v), L = false; !L; ) { 11066 var w = null, z = A.nodeType == 1 ? s.getComputedStyle(A) : {}; 11067 if (z.display == "none") return; 11068 if (A == this.root || A == o ? (L = true, w = y) : A != o.body && A != o.documentElement && z.overflow != "visible" && (w = _(A)), w && (k = h(w, k), !k)) break; 11069 A = N(A); 11070 } 11071 return k; 11072 } 11073 }, u.prototype._getRootRect = function() { 11074 var v; 11075 if (this.root) v = _(this.root); 11076 else { 11077 var y = o.documentElement, E = o.body; 11078 v = { 11079 top: 0, 11080 left: 0, 11081 right: y.clientWidth || E.clientWidth, 11082 width: y.clientWidth || E.clientWidth, 11083 bottom: y.clientHeight || E.clientHeight, 11084 height: y.clientHeight || E.clientHeight 11085 }; 11086 } 11087 return this._expandRectByRootMargin(v); 11088 }, u.prototype._expandRectByRootMargin = function(v) { 11089 var y = this._rootMarginValues.map(function(k, A) { 11090 return k.unit == "px" ? k.value : k.value * (A % 2 ? v.width : v.height) / 100; 11091 }), E = { 11092 top: v.top - y[0], 11093 right: v.right + y[1], 11094 bottom: v.bottom + y[2], 11095 left: v.left - y[3] 11096 }; 11097 return E.width = E.right - E.left, E.height = E.bottom - E.top, E; 11098 }, u.prototype._hasCrossedThreshold = function(v, y) { 11099 var E = v && v.isIntersecting ? v.intersectionRatio || 0 : -1, k = y.isIntersecting ? y.intersectionRatio || 0 : -1; 11100 if (E !== k) for (var A = 0; A < this.thresholds.length; A++) { 11101 var L = this.thresholds[A]; 11102 if (L == E || L == k || L < E != L < k) return true; 11103 } 11104 }, u.prototype._rootIsInDom = function() { 11105 return !this.root || D(o, this.root); 11106 }, u.prototype._rootContainsTarget = function(v) { 11107 return D(this.root || o, v); 11108 }, u.prototype._registerInstance = function() { 11109 }, u.prototype._unregisterInstance = function() { 11110 }, s.IntersectionObserver = u, s.IntersectionObserverEntry = l; 11111 })(window, document); 11112 }, 11113 function(a, r) { 11114 a.exports = n; 11115 }, 11116 function(a, r) { 11117 a.exports = i; 11118 } 11119 ]); 11120 }); 11121 })(Wm); 11122 var fw = Wm.exports; 11123 const Fs = Ei(fw), mw = { 11124 name: "n-header-nav-flyout", 11125 directives: { 11126 resize: Fs 11127 }, 11128 mixins: [ 11129 nt, 11130 Ge 11131 ], 11132 props: { 11133 isOpen: { 11134 type: Boolean 11135 }, 11136 currentHeight: { 11137 type: Number 11138 }, 11139 isFullHeight: { 11140 type: Boolean 11141 }, 11142 isFullWidthXs: { 11143 type: Boolean 11144 } 11145 }, 11146 data() { 11147 return { 11148 statusClass: "is-closed" 11149 }; 11150 }, 11151 watch: { 11152 currentHeight: function() { 11153 this.onResize(); 11154 }, 11155 isOpen: function(e) { 11156 e ? (this.statusClass = "is-opening", setTimeout(() => { 11157 this.statusClass = "is-open"; 11158 }, 0)) : (this.statusClass = "is-closing", setTimeout(() => { 11159 this.statusClass = "is-closed"; 11160 }, 400)); 11161 } 11162 }, 11163 mounted() { 11164 globalThis.addEventListener("orientationchange", this.onResize.bind(this)), globalThis.visualVie
11164wport.addEventListener("resize", this.onResize.bind(this)), this.onResize(); 11165 }, 11166 beforeUnmount() { 11167 globalThis.removeEventListener("orientationchange", this.onResize.bind(this)), globalThis.visualViewport.removeEventListener("resize", this.onResize.bind(this)); 11168 }, 11169 methods: { 11170 onResize() { 11171 const e = `${this.flyoutHeight()}px`; 11172 this.isFullHeight ? this.$refs.flyout.style.height = e : (this.$refs.flyout.style.height = "auto", this.$refs.flyout.style.maxHeight = e), this.$refs.flyout.style.position = "absolute", this.$refs.flyout.style.overflow = "auto"; 11173 }, 11174 flyoutHeight() { 11175 return globalThis.innerHeight * globalThis.visualViewport.scale - this.currentHeight * globalThis.visualViewport.scale; 11176 } 11177 } 11178 }, hw = [ 11179 "id" 11180 ]; 11181 function gw(e, t, n, i, a, r) { 11182 const s = Gn("resize"); 11183 return Je((m(), x("div", { 11184 id: e.id, 11185 ref: "flyout", 11186 class: R([ 11187 [ 11188 a.statusClass, 11189 { 11190 "is-full-width-xs": n.isFullWidthXs 11191 } 11192 ], 11193 "n-header-nav-flyout is-bg-color-white" 11194 ]) 11195 }, [ 11196 V(e.$slots, "default") 11197 ], 10, hw)), [ 11198 [ 11199 s, 11200 r.onResize 11201 ] 11202 ]); 11203 } 11204 const Jo = te(mw, [ 11205 [ 11206 "render", 11207 gw 11208 ] 11209 ]), bw = { 11210 name: "n-nav-bar", 11211 props: { 11212 tagName: { 11213 type: String, 11214 default: "div" 11215 } 11216 }, 11217 computed: { 11218 hasLeftSlotContent() { 11219 return !!this.$slots.left; 11220 }, 11221 hasCenterSlotContent() { 11222 return !!this.$slots.center; 11223 }, 11224 hasRightSlotContent() { 11225 return !!this.$slots.right; 11226 } 11227 }, 11228 compatConfig: { 11229 MODE: 3 11230 } 11231 }, vw = { 11232 class: "n-nav-bar__container container is-max-width-cleared-lg-down" 11233 }, yw = { 11234 class: "n-nav-bar__row row" 11235 }, _w = { 11236 key: 0, 11237 class: "n-nav-bar__left col-auto" 11238 }, Ew = { 11239 key: 1, 11240 class: "n-nav-bar__center col" 11241 }, kw = { 11242 key: 2, 11243 class: "n-nav-bar__right col-auto" 11244 }; 11245 function Cw(e, t, n, i, a, r) { 11246 return m(), U(ue(n.tagName), { 11247 class: "n-nav-bar is-bg-color-white-escaped" 11248 }, { 11249 default: I(() => [ 11250 O("div", vw, [ 11251 O("div", yw, [ 11252 r.hasLeftSlotContent ? (m(), x("div", _w, [ 11253 V(e.$slots, "left") 11254 ])) : M("", true), 11255 r.hasCenterSlotContent ? (m(), x("div", Ew, [ 11256 V(e.$slots, "center") 11257 ])) : M("", true), 11258 r.hasRightSlotContent ? (m(), x("div", kw, [ 11259 V(e.$slots, "right") 11260 ])) : M("", true) 11261 ]) 11262 ]) 11263 ]), 11264 _: 3 11265 }); 11266 } 11267 Ns = te(bw, [ 11268 [ 11269 "render", 11270 Cw 11271 ] 11272 ]); 11273 Ea = function(e, { slots: t, emit: n, attrs: i }) { 11274 const a = e.group ? xl : Ol, r = `${e.duration / 1e3}s`, s = { 11275 expand: { 11276 onAfterEnter(l) { 11277 l.style.height = "auto"; 11278 }, 11279 onEnter(l) { 11280 const { width: u } = getComputedStyle(l); 11281 l.style.width = u, l.style.position = "absolute", l.style.visibility = "hidden", l.style.height = "auto"; 11282 const { height: c } = getComputedStyle(l); 11283 l.style.width = "", l.style.position = "", l.style.visibility = "", l.style.height = 0, l.style.transitionDuration = r, getComputedStyle(l).height, requestAnimationFrame(() => { 11284 l.style.height = c; 11285 }); 11286 }, 11287 onLeave(l) { 11288 const { height: u } = getComputedStyle(l); 11289 l.style.height = u, getComputedStyle(l).height, requestAnimationFrame(() => { 11290 l.style.height = 0; 11291 }); 11292 } 11293 } 11294 }, o = { 11295 ...e, 11296 name: `n-transition--${e.name}`, 11297 onEnter(l) { 11298 l.style.transitionDuration = r; 11299 }, 11300 ...s[e.name] || {}, 11301 ...i 11302 }; 11303 return "group" in o && delete o.group, Pr(a, o, t.default); 11304 }; 11305 Ea.props = { 11306 group: { 11307 type: Boolean 11308 }, 11309 duration: { 11310 type: Number, 11311 default: 400 11312 }, 11313 name: { 11314 type: String, 11315 required: true 11316 } 11317 }; 11318 const Aw = { 11319 name: "n-overlay", 11320 components: { 11321 NTransition: Ea 11322 }, 11323 props: { 11324 open: { 11325 type: Boolean 11326 }, 11327 disableScrolling: { 11328 type: Boolean 11329 } 11330 }, 11331 data() { 11332 return { 11333 position: 0 11334 }; 11335 }, 11336 computed: { 11337 isBlocking() { 11338 return this.disableScrolling && this.open; 11339 } 11340 }, 11341 watch: { 11342 open: function(e) { 11343 e ? (this.position = window.scrollY, this.disableDocumentScrolling()) : this.enableDocumentScrolling(); 11344 } 11345 }, 11346 mounted() { 11347 document.addEventListener("touchmove", this.scrollHandler, { 11348 passive: false 11349 }), document.addEventListener("scroll", this.scrollHandler, { 11350 passive: false 11351 }); 11352 }, 11353 beforeUnmount() { 11354 document.removeEventListener("touchmove", this.scrollHandler), document.removeEventListener("scroll", this.scrollHandler); 11355 }, 11356 methods: { 11357 disableDocumentScrolling() { 11358 this.disableScrolling && (document.documentElement.classList.add("no-scroll"), document.body.classList.add("no-scroll")); 11359 }, 11360 enableDocumentScrolling() { 11361 this.disableScrolling && (document.documentElement.classList.remove("no-scroll"), document.body.classList.remove("no-scroll")); 11362 }, 11363 preventScrolling(e) { 11364 window.scrollTo(0, this.position), e.preventDefault(); 11365 }, 11366 isRootEl(e) { 11367 return [ 11368 "HTML", 11369 "BODY", 11370 void 0 11371 ].includes(e); 11372 }, 11373 scrollHandler(e) { 11374 this.isBlocking && (this.isRootEl(e.target.tagName) || this.$refs.overlay.contains(e.target) || e.target.classList.contains("n-overlay")) && this.preventScrolling(e); 11375 } 11376 }, 11377 compatConfig: { 11378 MODE: 3 11379 } 11380 }, Sw = { 11381 key: 0, 11382 ref: "overlay", 11383 class: "n-overlay is-hidden-print", 11384 "aria-hidden": "true", 11385 tabindex: "-1" 11386 }; 11387 function ww(e, t, n, i, a, r) { 11388 const s = j("NTransition"); 11389 return m(), U(s, { 11390 name: "fade" 11391 }, {
11392 default: I(() => [ 11393 n.open ? (m(), x("div", Sw, t[0] || (t[0] = [ 11394 O("div", { 11395 class: "n-overlay__blocker no-interacting" 11396 }, null, -1) 11397 ]), 512)) : M("", true) 11398 ]), 11399 _: 1 11400 }); 11401 } 11402 let Lw, xw, Ow, $w; 11403 qm = te(Aw, [ 11404 [ 11405 "render", 11406 ww 11407 ] 11408 ]); 11409 Lw = { 11410 name: "n-block", 11411 props: { 11412 isCompressed: { 11413 type: Boolean, 11414 default: false 11415 }, 11416 containerSize: { 11417 type: String, 11418 default: "default", 11419 validator: (e) => [ 11420 "default", 11421 "bleed", 11422 "compressed", 11423 "extra-compressed" 11424 ].includes(e) 11425 }, 11426 background: { 11427 type: String 11428 }, 11429 escapedBackground: { 11430 type: Boolean 11431 }, 11432 clearVerticalOnTransparent: { 11433 type: Boolean, 11434 default: false 11435 }, 11436 clearHorizontalOnTransparent: { 11437 type: Boolean, 11438 default: false 11439 }, 11440 clearSpacingAfter: { 11441 type: Boolean, 11442 default: false 11443 }, 11444 eventsContext: { 11445 type: String 11446 } 11447 }, 11448 computed: { 11449 containerClass() { 11450 return this.isCompressed ? "container-compressed" : this.containerSize !== "default" ? `container-${this.containerSize}` : "container"; 11451 }, 11452 backgroundClass() { 11453 let e = ""; 11454 return this.background && (e = `is-bg-color-${this.background}`, this.escapedBackground && (e += "-escaped")), e; 11455 }, 11456 isTransparent() { 11457 return this.background === "transparent"; 11458 } 11459 }, 11460 methods: {}, 11461 compatConfig: { 11462 MODE: 3 11463 } 11464 }; 11465 xw = [ 11466 "data-n-context" 11467 ]; 11468 Ow = { 11469 class: "row" 11470 }; 11471 $w = { 11472 class: "col col-12" 11473 }; 11474 function Tw(e, t, n, i, a, r) { 11475 return m(), x("div", { 11476 "data-n-context": n.eventsContext, 11477 class: R([ 11478 [ 11479 r.backgroundClass, 11480 r.containerClass, 11481 { 11482 "is-block-gapped": !n.clearSpacingAfter, 11483 "is-clear-padding-vertical": r.isTransparent && n.clearVerticalOnTransparent, 11484 "is-clear-padding-horizontal": r.isTransparent && n.clearHorizontalOnTransparent 11485 } 11486 ], 11487 "n-block container" 11488 ]) 11489 }, [ 11490 O("div", Ow, [ 11491 O("div", $w, [ 11492 V(e.$slots, "default") 11493 ]) 11494 ]) 11495 ], 10, xw); 11496 } 11497 let Ym, Iw, Fw; 11498 ft = te(Lw, [ 11499 [ 11500 "render", 11501 Tw 11502 ] 11503 ]); 11504 Ym = { 11505 props: { 11506 ctas: { 11507 type: Array 11508 }, 11509 isOpen: { 11510 type: Boolean 11511 } 11512 } 11513 }; 11514 Iw = { 11515 name: "n-header-ctas-desktop", 11516 components: { 11517 NButton: ze 11518 }, 11519 mixins: [ 11520 Ym 11521 ], 11522 computed: { 11523 isList() { 11524 return this.ctas.length > 1; 11525 } 11526 } 11527 }; 11528 Fw = { 11529 key: 0, 11530 class: "n-header-ctas-desktop__cta-list-wrapper", 11531 "data-n-context": "header-ctas-desktop" 11532 }; 11533 function Nw(e, t, n, i, a, r) { 11534 const s = j("NButton"); 11535 return e.ctas ? (m(), x("div", Fw, [ 11536 (m(), U(ue(r.isList ? "ul" : "div"), { 11537 class: "n-header-ctas-desktop__cta-list n-unordered-list--unstyled" 11538 }, { 11539 default: I(() => [ 11540 (m(true), x(me, null, ve(e.ctas, (o, l) => (m(), U(ue(r.isList ? "li" : "div"), { 11541 key: l, 11542 class: "n-header-ctas-desktop__cta-list-item" 11543 }, { 11544 default: I(() => [ 11545 K(s, { 11546 format: o.format || "primary", 11547 icon: o.icon, 11548 href: o.href, 11549 "link-type": o.linkType, 11550 size: "small", 11551 "icon-position": "left", 11552 class: "n-header-ctas-desktop__cta-button is-clear-margin-bottom is-clear-margin-top is-clear-margin-right" 11553 }, { 11554 default: I(() => [ 11555 re(H(o.label), 1) 11556 ]), 11557 _: 2 11558 }, 1032, [ 11559 "format", 11560 "icon", 11561 "href", 11562 "link-type" 11563 ]) 11564 ]), 11565 _: 2 11566 }, 1024))), 128)) 11567 ]), 11568 _: 1 11569 })) 11570 ])) : M("", true); 11571 } 11572 const Dw = te(Iw, [ 11573 [ 11574 "render", 11575 Nw 11576 ] 11577 ]), Pw = { 11578 name: "n-nav-link", 11579 components: { 11580 NLink: at, 11581 LinkIcon: Ut 11582 }, 11583 extends: Xt, 11584 mixins: [ 11585 ln 11586 ], 11587 props: { 11588 icon: { 11589 type: String 11590 }, 11591 isCurrent: { 11592 type: Boolean 11593 } 11594 }, 11595 computed: { 11596 _classObject() { 11597 return { 11598 "is-current": this.isCurrent 11599 }; 11600 } 11601 }, 11602 compatConfig: { 11603 MODE: 3 11604 } 11605 }; 11606 function Bw(e, t, n, i, a, r) { 11607 const s = j("NLink"), o = j("LinkIcon"); 11608 return n.icon ? n.icon ? (m(), U(o, { 11609 key: 1, 11610 href: e.href, 11611 to: e.to, 11612 icon: n.icon, 11613 "icon-size": 16, 11614 class: R([ 11615 "n-nav-link", 11616 r._classObject 11617 ]) 11618 }, {
11619 default: I(() => [ 11620 V(e.$slots, "default"), 11621 t[1] || (t[1] = O("div", { 11622 class: "n-nav-link__indicator" 11623 }, null, -1)) 11624 ]), 11625 _: 3 11626 }, 8, [ 11627 "href", 11628 "to", 11629 "icon", 11630 "class" 11631 ])) : M("", true) : (m(), U(s, { 11632 key: 0, 11633 href: e.href, 11634 to: e.to, 11635 "link-type": e.linkType, 11636 class: R([ 11637 "n-nav-link", 11638 r._classObject 11639 ]) 11640 }, { 11641 default: I(() => [ 11642 V(e.$slots, "default"), 11643 t[0] || (t[0] = O("div", { 11644 class: "n-nav-link__indicator" 11645 }, null, -1)) 11646 ]), 11647 _: 3 11648 }, 8, [ 11649 "href", 11650 "to", 11651 "link-type", 11652 "class" 11653 ])); 11654 } 11655 const ou = te(Pw, [ 11656 [ 11657 "render", 11658 Bw 11659 ] 11660 ]), Mw = { 11661 name: "n-nav-link-icon", 11662 components: { 11663 NPicture: jn 11664 }, 11665 mixins: [ 11666 bt 11667 ], 11668 props: { 11669 label: { 11670 type: String 11671 }, 11672 href: { 11673 type: String 11674 }, 11675 media: { 11676 type: String 11677 } 11678 }, 11679 computed: { 11680 mediaObject() { 11681 return this.mediaProps(this.media); 11682 }, 11683 element() { 11684 return this.href ? "a" : "button"; 11685 }, 11686 iconElement() { 11687 return this.media ? jn : "div"; 11688 }, 11689 buttonType() { 11690 return this.element === "button" ? "button" : null; 11691 } 11692 }, 11693 compatConfig: { 11694 MODE: 3 11695 } 11696 }, Rw = { 11697 class: "header-link" 11698 }; 11699 function Uw(e, t, n, i, a, r) { 11700 return m(), U(ue(r.element), { 11701 href: n.href, 11702 type: r.buttonType, 11703 class: "n-nav-link-icon" 11704 }, { 11705 default: I(() => [ 11706 (m(), U(ue(r.iconElement), fe(r.mediaObject, { 11707 class: "n-nav-link-icon__icon n-icon--size-32" 11708 }), null, 16)), 11709 O("div", Rw, [ 11710 V(e.$slots, "default", {}, () => [ 11711 re(H(n.label), 1) 11712 ]) 11713 ]) 11714 ]), 11715 _: 3 11716 }, 8, [ 11717 "href", 11718 "type" 11719 ]); 11720 } 11721 const Vw = te(Mw, [ 11722 [ 11723 "render", 11724 Uw 11725 ] 11726 ]), Hw = { 11727 name: "n-nav-link-stacked", 11728 components: { 11729 NLink: at, 11730 LinkIcon: Ut 11731 }, 11732 extends: Xt, 11733 mixins: [ 11734 ln 11735 ], 11736 props: { 11737 icon: { 11738 type: String 11739 }, 11740 iconPosition: { 11741 type: String, 11742 default: "right", 11743 validator(e) { 11744 return [ 11745 "left", 11746 "right" 11747 ].includes(e); 11748 } 11749 }, 11750 isCurrent: { 11751 type: Boolean 11752 }, 11753 isChild: { 11754 type: Boolean 11755 } 11756 }, 11757 compatConfig: { 11758 MODE: 3 11759 } 11760 }; 11761 function jw(e, t, n, i, a, r) { 11762 const s = j("NLink"), o = j("LinkIcon"); 11763 return n.icon ? n.icon ? (m(), U(o, { 11764 key: 1, 11765 href: e.href, 11766 to: e.to, 11767 "router-link-props": e.routerLinkProps, 11768 icon: n.icon, 11769 "icon-classes": e.iconClasses, 11770 "icon-position": n.iconPosition, 11771 "active-class": "n-link-nav-stacked--current", 11772 class: R([ 11773 "n-link-nav-stacked", 11774 `n-link-nav-stacked--icon-${n.iconPosition}`, 11775 { 11776 "n-link-nav-stacked--child": n.isChild 11777 }, 11778 { 11779 "n-link-nav-stacked--current": n.isCurrent 11780 } 11781 ]) 11782 }, { 11783 default: I(() => [ 11784 V(e.$slots, "default") 11785 ]), 11786 _: 3 11787 }, 8, [ 11788 "href", 11789 "to", 11790 "router-link-props", 11791 "icon", 11792 "icon-classes", 11793 "icon-position", 11794 "class" 11795 ])) : M("", true) : (m(), U(s, { 11796 key: 0, 11797 href: e.href, 11798 to: e.to, 11799 "router-link-props": e.routerLinkProps, 11800 "link-type": e.linkType, 11801 "active-class": "n-link-nav-stacked--current", 11802 class: R([ 11803 "n-link-nav-stacked", 11804 { 11805 "n-link-nav-stacked--child": n.isChild 11806 }, 11807 { 11808 "n-link-nav-stacked--current": n.isCurrent 11809 } 11810 ]) 11811 }, { 11812 default: I(() => [ 11813 V(e.$slots, "default") 11814 ]), 11815 _: 3 11816 }, 8, [ 11817 "href", 11818 "to", 11819 "router-link-props", 11820 "link-type", 11821 "class" 11822 ])); 11823 } 11824 let Rr; 11825 Rr = te(Hw, [ 11826 [ 11827 "render", 11828 jw 11829 ] 11830 ]); 11831 lU = { 11832 name: "link-nav-stacked", 11833 extends: Rr 11834 }; 11835 function Km(e) { 11836 return bi() ? (vi(e), true) : false;
11837 } 11838 function ji(e) { 11839 return typeof e == "function" ? e() : ae(e); 11840 } 11841 const Xm = typeof window < "u" && typeof document < "u"; 11842 typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope; 11843 const zw = Object.prototype.toString, Ww = (e) => zw.call(e) === "[object Object]", zi = () => { 11844 }, Qo = Gw(); 11845 function Gw() { 11846 var e, t; 11847 return Xm && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent)); 11848 } 11849 const od = { 11850 mounted: "mounted", 11851 unmounted: "unmounted" 11852 }; 11853 function qw(...e) { 11854 if (e.length !== 1) return $l(...e); 11855 const t = e[0]; 11856 return typeof t == "function" ? Tl(bs(() => ({ 11857 get: t, 11858 set: zi 11859 }))) : pe(t); 11860 } 11861 function Bi(e) { 11862 var t; 11863 const n = ji(e); 11864 return (t = n == null ? void 0 : n.$el) != null ? t : n; 11865 } 11866 const Jm = Xm ? window : void 0; 11867 function Ha(...e) { 11868 let t, n, i, a; 11869 if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, i, a] = e, t = Jm) : [t, n, i, a] = e, !t) return zi; 11870 Array.isArray(n) || (n = [ 11871 n 11872 ]), Array.isArray(i) || (i = [ 11873 i 11874 ]); 11875 const r = [], s = () => { 11876 r.forEach((c) => c()), r.length = 0; 11877 }, o = (c, d, p, b) => (c.addEventListener(d, p, b), () => c.removeEventListener(d, p, b)), l = Ue(() => [ 11878 Bi(t), 11879 ji(a) 11880 ], ([c, d]) => { 11881 if (s(), !c) return; 11882 const p = Ww(d) ? { 11883 ...d 11884 } : d; 11885 r.push(...n.flatMap((b) => i.map((h) => o(c, b, h, p)))); 11886 }, {
11887 immediate: true, 11888 flush: "post" 11889 }), u = () => { 11890 l(), s(); 11891 }; 11892 return Km(u), u; 11893 } 11894 let ld = false; 11895 function ud(e, t, n = {}) { 11896 const { window: i = Jm, ignore: a = [], capture: r = true, detectIframe: s = false } = n; 11897 if (!i) return zi; 11898 Qo && !ld && (ld = true, Array.from(i.document.body.children).forEach((c) => c.addEventListener("click", zi)), i.document.documentElement.addEventListener("click", zi)); 11899 let o = true; 11900 const l = (c) => a.some((d) => { 11901 if (typeof d == "string") return Array.from(i.document.querySelectorAll(d)).some((p) => p === c.target || c.composedPath().includes(p)); 11902 { 11903 const p = Bi(d); 11904 return p && (c.target === p || c.composedPath().includes(p)); 11905 } 11906 }), u = [ 11907 Ha(i, "click", (c) => { 11908 const d = Bi(e); 11909 if (!(!d || d === c.target || c.composedPath().includes(d))) { 11910 if (c.detail === 0 && (o = !l(c)), !o) { 11911 o = true; 11912 return; 11913 } 11914 t(c); 11915 } 11916 }, { 11917 passive: true, 11918 capture: r 11919 }), 11920 Ha(i, "pointerdown", (c) => { 11921 const d = Bi(e); 11922 o = !l(c) && !!(d && !c.composedPath().includes(d)); 11923 }, { 11924 passive: true 11925 }), 11926 s && Ha(i, "blur", (c) => { 11927 setTimeout(() => { 11928 var d; 11929 const p = Bi(e); 11930 ((d = i.document.activeElement) == null ? void 0 : d.tagName) === "IFRAME" && !(p != null && p.contains(i.document.activeElement)) && t(c); 11931 }, 0); 11932 }) 11933 ].filter(Boolean); 11934 return () => u.forEach((c) => c()); 11935 } 11936 const Yw = { 11937 [od.mounted](e, t) { 11938 const n = !t.modifiers.bubble; 11939 if (typeof t.value == "function") e.__onClickOutside_stop = ud(e, t.value, { 11940 capture: n 11941 }); 11942 else { 11943 const [i, a] = t.value; 11944 e.__onClickOutside_stop = ud(e, i, Object.assign({ 11945 capture: n 11946 }, a)); 11947 } 11948 }, 11949 [od.unmounted](e) { 11950 e.__onClickOutside_stop(); 11951 } 11952 }; 11953 function po(e) { 11954 return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e; 11955 } 11956 function Qm(e) { 11957 const t = window.getComputedStyle(e); 11958 if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return true; 11959 { 11960 const n = e.parentNode; 11961 return !n || n.tagName === "BODY" ? false : Qm(n); 11962 } 11963 } 11964 function Kw(e) { 11965 const t = e || window.event, n = t.target; 11966 return Qm(n) ? false : t.touches.length > 1 ? true : (t.preventDefault && t.preventDefault(), false); 11967 } 11968 const fo = /* @__PURE__ */ new WeakMap(); 11969 function Xw(e, t = false) { 11970 const n = pe(t); 11971 let i = null, a = ""; 11972 Ue(qw(e), (o) => { 11973 const l = po(ji(o)); 11974 if (l) { 11975 const u = l; 11976 if (fo.get(u) || fo.set(u, u.style.overflow), u.style.overflow !== "hidden" && (a = u.style.overflow), u.style.overflow === "hidden") return n.value = true; 11977 if (n.value) return u.style.overflow = "hidden"; 11978 } 11979 }, { 11980 immediate: true 11981 }); 11982 const r = () => { 11983 const o = po(ji(e)); 11984 !o || n.value || (Qo && (i = Ha(o, "touchmove", (l) => { 11985 Kw(l); 11986 }, { 11987 passive: false 11988 })), o.style.overflow = "hidden", n.value = true); 11989 }, s = () => { 11990 const o = po(ji(e)); 11991 !o || !n.value || (Qo && (i == null ? void 0 : i()), o.style.overflow = a, fo.delete(o), n.value = false); 11992 }; 11993 return Km(s), ne({ 11994 get() { 11995 return n.value; 11996 }, 11997 set(o) { 11998 o ? r() : s(); 11999 } 12000 }); 12001 } 12002 function Jw() { 12003 let e = false; 12004 const t = pe(false); 12005 return (n, i) => { 12006 if (t.value = i.value, e) return; 12007 e = true; 12008 const a = Xw(n, i.value); 12009 Ue(t, (r) => a.value = r); 12010 }; 12011 } 12012 Jw(); 12013 var Zm = [ 12014 "input:not([inert])", 12015 "select:not([inert])", 12016 "textarea:not([inert])", 12017 "a[href]:not([inert])", 12018 "button:not([inert])",
12019 "[tabindex]:not(slot):not([inert])", 12020 "audio[controls]:not([inert])", 12021 "video[controls]:not([inert])", 12022 '[contenteditable]:not([contenteditable="false"]):not([inert])', 12023 "details>summary:first-of-type:not([inert])", 12024 "details:not([inert])" 12025 ], es = Zm.join(","), eh = typeof Element > "u", Ur = eh ? function() { 12026 } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, ts = !eh && Element.prototype.getRootNode ? function(e) { 12027 var t; 12028 return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e); 12029 } : function(e) { 12030 return e == null ? void 0 : e.ownerDocument; 12031 }, ns = function e(t, n) { 12032 var i; 12033 n === void 0 && (n = true); 12034 var a = t == null || (i = t.getAttribute) === null || i === void 0 ? void 0 : i.call(t, "inert"), r = a === "" || a === "true", s = r || n && t && e(t.parentNode); 12035 return s; 12036 }, Qw = function(e) { 12037 var t, n = e == null || (t = e.getAttribute) === null || t === void 0 ? void 0 : t.call(e, "contenteditable"); 12038 return n === "" || n === "true"; 12039 }, th = function(e, t, n) { 12040 if (ns(e)) return []; 12041 var i = Array.prototype.slice.apply(e.querySelectorAll(es)); 12042 return t && Ur.call(e, es) && i.unshift(e), i = i.filter(n), i; 12043 }, nh = function e(t, n, i) { 12044 for (var a = [], r = Array.from(t); r.length; ) { 12045 var s = r.shift(); 12046 if (!ns(s, false)) if (s.tagName === "SLOT") { 12047 var o = s.assignedElements(), l = o.length ? o : s.children, u = e(l, true, i); 12048 i.flatten ? a.push.apply(a, u) : a.push({ 12049 scopeParent: s, 12050 candidates: u 12051 }); 12052 } else { 12053 var c = Ur.call(s, es); 12054 c && i.filter(s) && (n || !t.includes(s)) && a.push(s); 12055 var d = s.shadowRoot || typeof i.getShadowRoot == "function" && i.getShadowRoot(s), p = !ns(d, false) && (!i.shadowRootFilter || i.shadowRootFilter(s)); 12056 if (d && p) { 12057 var b = e(d === true ? s.children : d.children, true, i); 12058 i.flatten ? a.push.apply(a, b) : a.push({ 12059 scopeParent: s, 12060 candidates: b 12061 }); 12062 } else r.unshift.apply(r, s.children); 12063 } 12064 } 12065 return a; 12066 }, rh = function(e) { 12067 return !isNaN(parseInt(e.getAttribute("tabindex"), 10)); 12068 }, $r = function(e) { 12069 if (!e) throw new Error("No node provided"); 12070 return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || Qw(e)) && !rh(e) ? 0 : e.tabIndex; 12071 }, Zw = function(e, t) { 12072 var n = $r(e); 12073 return n < 0 && t && !rh(e) ? 0 : n; 12074 }, eL = function(e, t) { 12075 return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex; 12076 }, ih = function(e) { 12077 return e.tagName === "INPUT"; 12078 }, tL = function(e) { 12079 return ih(e) && e.type === "hidden"; 12080 }, nL = function(e) { 12081 var t = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(n) { 12082 return n.tagName === "SUMMARY"; 12083 }); 12084 return t; 12085 }, rL = function(e, t) { 12086 for (var n = 0; n < e.length; n++) if (e[n].checked && e[n].form === t) return e[n]; 12087 }, iL = function(e) { 12088 if (!e.name) return true; 12089 var t = e.form || ts(e), n = function(r) { 12090 return t.querySelectorAll('input[type="radio"][name="' + r + '"]'); 12091 }, i; 12092 if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function") i = n(window.CSS.escape(e.name)); 12093 else try { 12094 i = n(e.name); 12095 } catch (r) { 12096 return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", r.message), false; 12097 } 12098 var a = rL(i, e.form); 12099 return !a || a === e; 12100 }, aL = function(e) { 12101 return ih(e) && e.type === "radio"; 12102 }, sL = function(e) { 12103 return aL(e) && !iL(e); 12104 }, oL = function(e) { 12105 var t, n = e && ts(e), i = (t = n) === null || t === void 0 ? void 0 : t.host, a = false; 12106 if (n && n !== e) { 12107 var r, s, o; 12108 for (a = !!((r = i) !== null && r !== void 0 && (s = r.ownerDocument) !== null && s !== void 0 && s.contains(i) || e != null && (o = e.ownerDocument) !== null && o !== void 0 && o.contains(e)); !a && i; ) { 12109 var l, u, c; 12110 n = ts(i), i = (l = n) === null || l === void 0 ? void 0 : l.host, a = !!((u = i
12110) !== null && u !== void 0 && (c = u.ownerDocument) !== null && c !== void 0 && c.contains(i)); 12111 } 12112 } 12113 return a; 12114 }, cd = function(e) { 12115 var t = e.getBoundingClientRect(), n = t.width, i = t.height; 12116 return n === 0 && i === 0; 12117 }, lL = function(e, t) { 12118 var n = t.displayCheck, i = t.getShadowRoot; 12119 if (getComputedStyle(e).visibility === "hidden") return true; 12120 var a = Ur.call(e, "details>summary:first-of-type"), r = a ? e.parentElement : e; 12121 if (Ur.call(r, "details:not([open]) *")) return true; 12122 if (!n || n === "full" || n === "legacy-full") { 12123 if (typeof i == "function") { 12124 for (var s = e; e; ) { 12125 var o = e.parentElement, l = ts(e); 12126 if (o && !o.shadowRoot && i(o) === true) return cd(e); 12127 e.assignedSlot ? e = e.assignedSlot : !o && l !== e.ownerDocument ? e = l.host : e = o; 12128 } 12129 e = s; 12130 } 12131 if (oL(e)) return !e.getClientRects().length; 12132 if (n !== "legacy-full") return true; 12133 } else if (n === "non-zero-area") return cd(e); 12134 return false; 12135 }, uL = function(e) { 12136 if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)) for (var t = e.parentElement; t; ) { 12137 if (t.tagName === "FIELDSET" && t.disabled) { 12138 for (var n = 0; n < t.children.length; n++) { 12139 var i = t.children.item(n); 12140 if (i.tagName === "LEGEND") return Ur.call(t, "fieldset[disabled] *") ? true : !i.contains(e); 12141 } 12142 return true; 12143 } 12144 t = t.parentElement; 12145 } 12146 return false; 12147 }, rs = function(e, t) { 12148 return !(t.disabled || ns(t) || tL(t) || lL(t, e) || nL(t) || uL(t)); 12149 }, Zo = function(e, t) { 12150 return !(sL(t) || $r(t) < 0 || !rs(e, t)); 12151 }, cL = function(e) { 12152 var t = parseInt(e.getAttribute("tabindex"), 10); 12153 return !!(isNaN(t) || t >= 0); 12154 }, dL = function e(t) { 12155 var n = [], i = []; 12156 return t.forEach(function(a, r) { 12157 var s = !!a.scopeParent, o = s ? a.scopeParent : a, l = Zw(o, s), u = s ? e(a.candidates) : o; 12158 l === 0 ? s ? n.push.apply(n, u) : n.push(o) : i.push({ 12159 documentOrder: r, 12160 tabIndex: l, 12161 item: a, 12162 isScope: s, 12163 content: u 12164 }); 12165 }), i.sort(eL).reduce(function(a, r) { 12166 return r.isScope ? a.push.apply(a, r.content) : a.push(r.content), a; 12167 }, []).concat(n); 12168 }, pL = function(e, t) { 12169 t = t || {}; 12170 var n; 12171 return t.getShadowRoot ? n = nh([ 12172 e 12173 ], t.includeContainer, { 12174 filter: Zo.bind(null, t), 12175 flatten: false, 12176 getShadowRoot: t.getShadowRoot, 12177 shadowRootFilter: cL 12178 }) : n = th(e, t.includeContainer, Zo.bind(null, t)), dL(n); 12179 }, fL = function(e, t) { 12180 t = t || {}; 12181 var n; 12182 return t.getShadowRoot ? n = nh([ 12183 e 12184 ], t.includeContainer, { 12185 filter: rs.bind(null, t), 12186 flatten: true, 12187 getShadowRoot: t.getShadowRoot 12188 }) : n = th(e, t.includeContainer, rs.bind(null, t)), n; 12189 }, Yr = function(e, t) { 12190 if (t = t || {}, !e) throw new Error("No node provided"); 12191 return Ur.call(e, es) === false ? false : Zo(t, e); 12192 }, mL = Zm.concat("iframe").join(","), mo = function(e, t) { 12193 if (t = t || {}, !e) throw new Error("No node provided"); 12194 return Ur.call(e, mL) === false ? false : rs(t, e); 12195 }; 12196 function el(e, t) { 12197 (t == null || t > e.length) && (t = e.length); 12198 for (var n = 0, i = Array(t); n < t; n++) i[n] = e[n]; 12199 return i; 12200 } 12201 function hL(e) { 12202 if (Array.isArray(e)) return el(e); 12203 } 12204 function gL(e, t, n) { 12205 return (t = EL(t)) in e ? Object.defineProperty(e, t, { 12206 value: n, 12207 enumerable: true, 12208 configurable: true, 12209 writable: true 12210 }) : e[t] = n, e; 12211 } 12212 function bL(e) { 12213 if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); 12214 } 12215 function vL() { 12216 throw new TypeError(`Invalid attempt to spread non-iterable instance. 12217In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); 12218 } 12219 function dd(e, t) { 12220 var n = Object.keys(e); 12221 if (Object.getOwnPropertySymbols) { 12222 var i = Object.getOwnPropertySymbols(e); 12223 t && (i = i.filter(function(a) { 12224 return Object.getOwnPropertyDescriptor(e, a).enumerable; 12225 })), n.push.apply(n, i); 12226 } 12227 return n; 12228 } 12229 function pd(e) { 12230 for (var t = 1; t < arguments.length; t++) { 12231 var n = arguments[t] != null ? arguments[t] : {}; 12232 t % 2 ? dd(Object(n), true).forEach(function(i) { 12233 gL(e, i, n[i]); 12234 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dd(Object(n)).forEac
12234h(function(i) { 12235 Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i)); 12236 }); 12237 } 12238 return e; 12239 } 12240 function yL(e) { 12241 return hL(e) || bL(e) || kL(e) || vL(); 12242 } 12243 function _L(e, t) { 12244 if (typeof e != "object" || !e) return e; 12245 var n = e[Symbol.toPrimitive]; 12246 if (n !== void 0) { 12247 var i = n.call(e, t); 12248 if (typeof i != "object") return i; 12249 throw new TypeError("@@toPrimitive must return a primitive value."); 12250 } 12251 return (t === "string" ? String : Number)(e); 12252 } 12253 function EL(e) { 12254 var t = _L(e, "string"); 12255 return typeof t == "symbol" ? t : t + ""; 12256 } 12257 function kL(e, t) { 12258 if (e) { 12259 if (typeof e == "string") return el(e, t); 12260 var n = {}.toString.call(e).slice(8, -1); 12261 return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? el(e, t) : void 0; 12262 } 12263 } 12264 var fd = { 12265 activateTrap: function(e, t) { 12266 if (e.length > 0) { 12267 var n = e[e.length - 1]; 12268 n !== t && n.pause(); 12269 } 12270 var i = e.indexOf(t); 12271 i === -1 || e.splice(i, 1), e.push(t); 12272 }, 12273 deactivateTrap: function(e, t) { 12274 var n = e.indexOf(t); 12275 n !== -1 && e.splice(n, 1), e.length > 0 && e[e.length - 1].unpause(); 12276 } 12277 }, CL = function(e) { 12278 return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function"; 12279 }, AL = function(e) { 12280 return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27; 12281 }, Wi = function(e) { 12282 return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9; 12283 }, SL = function(e) { 12284 return Wi(e) && !e.shiftKey; 12285 }, wL = function(e) { 12286 return Wi(e) && e.shiftKey; 12287 }, md = function(e) { 12288 return setTimeout(e, 0); 12289 }, hd = function(e, t) { 12290 var n = -1; 12291 return e.every(function(i, a) { 12292 return t(i) ? (n = a, false) : true; 12293 }), n; 12294 }, Ni = function(e) { 12295 for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++) n[i - 1] = arguments[i]; 12296 return typeof e == "function" ? e.apply(void 0, n) : e; 12297 }, xa = function(e) { 12298 return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target; 12299 }, LL = [], xL = function(e, t) { 12300 var n = (t == null ? void 0 : t.document) || document, i = (t == null ? void 0 : t.trapStack) || LL, a = pd({ 12301 returnFocusOnDeactivate: true, 12302 escapeDeactivates: true, 12303 delayInitialFocus: true, 12304 isKeyForward: SL, 12305 isKeyBackward: wL 12306 }, t), r = { 12307 containers: [], 12308 containerGroups: [], 12309 tabbableGroups: [], 12310 nodeFocusedBeforeActivation: null, 12311 mostRecentlyFocusedNode: null, 12312 active: false, 12313 paused: false, 12314 delayInitialFocusTimer: void 0, 12315 recentNavEvent: void 0 12316 }, s, o = function(T, P, G) { 12317 return T && T[P] !== void 0 ? T[P] : a[G || P]; 12318 }, l = function(T, P) { 12319 var G = typeof (P == null ? void 0 : P.composedPath) == "function" ? P.composedPath() : void 0; 12320 return r.containerGroups.findIndex(function(X) { 12321 var Y = X.container, q = X.tabbableNodes; 12322 return Y.contains(T) || (G == null ? void 0 : G.includes(Y)) || q.find(function(J) { 12323 return J === T; 12324 }); 12325 }); 12326 }, u = function(T) { 12327 var P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, G = P.hasFallback, X = G === void 0 ? false : G, Y = P.params, q = Y === void 0 ? [] : Y, J = a[T]; 12328 if (typeof J == "function" && (J = J.apply(void 0, yL(q))), J === true && (J = void 0), !J) { 12329 if (J === void 0 || J === false) return J; 12330 throw new Error("`".concat(T, "` was specified but was not a node, or did not return a node")); 12331 } 12332 var Z = J; 12333 if (typeof J == "string") { 12334 try { 12335 Z = n.querySelector(J); 12336 } catch (se) { 12337 throw new Error("`".concat(T, '` appears to be an invalid selector; error="').concat(se.message, '"')); 12338 } 12339 if (!Z && !X) throw new Error("`".concat(T, "` as selector refers to no known node")); 12340 } 12341 return Z; 12342 }, c = function() { 12343 var T = u("initialFocus", { 12344 hasFallback: true 12345 }); 12346 if (T === false) return false;
12347 if (T === void 0 || T && !mo(T, a.tabbableOptions)) if (l(n.activeElement) >= 0) T = n.activeElement; 12348 else { 12349 var P = r.tabbableGroups[0], G = P && P.firstTabbableNode; 12350 T = G || u("fallbackFocus"); 12351 } 12352 else T === null && (T = u("fallbackFocus")); 12353 if (!T) throw new Error("Your focus-trap needs to have at least one focusable element"); 12354 return T; 12355 }, d = function() { 12356 if (r.containerGroups = r.containers.map(function(T) { 12357 var P = pL(T, a.tabbableOptions), G = fL(T, a.tabbableOptions), X = P.length > 0 ? P[0] : void 0, Y = P.length > 0 ? P[P.length - 1] : void 0, q = G.find(function(se) { 12358 return Yr(se); 12359 }), J = G.slice().reverse().find(function(se) { 12360 return Yr(se); 12361 }), Z = !!P.find(function(se) { 12362 return $r(se) > 0; 12363 }); 12364 return { 12365 container: T, 12366 tabbableNodes: P, 12367 focusableNodes: G, 12368 posTabIndexesFound: Z, 12369 firstTabbableNode: X, 12370 lastTabbableNode: Y, 12371 firstDomTabbableNode: q, 12372 lastDomTabbableNode: J, 12373 nextTabbableNode: function(se) { 12374 var Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true, oe = P.indexOf(se); 12375 return oe < 0 ? Q ? G.slice(G.indexOf(se) + 1).find(function(ce) { 12376 return Yr(ce); 12377 }) : G.slice(0, G.indexOf(se)).reverse().find(function(ce) { 12378 return Yr(ce); 12379 }) : P[oe + (Q ? 1 : -1)]; 12380 } 12381 }; 12382 }), r.tabbableGroups = r.containerGroups.filter(function(T) { 12383 return T.tabbableNodes.length > 0; 12384 }), r.tabbableGroups.length <= 0 && !u("fallbackFocus")) throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times"); 12385 if (r.containerGroups.find(function(T) { 12386 return T.posTabIndexesFound; 12387 }) && r.containerGroups.length > 1) throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps."); 12388 }, p = function(T) { 12389 var P = T.activeElement; 12390 if (P) return P.shadowRoot && P.shadowRoot.activeElement !== null ? p(P.shadowRoot) : P; 12391 }, b = function(T) { 12392 if (T !== false && T !== p(document)) { 12393 if (!T || !T.focus) { 12394 b(c()); 12395 return; 12396 } 12397 T.focus({ 12398 preventScroll: !!a.preventScroll 12399 }), r.mostRecentlyFocusedNode = T, CL(T) && T.select(); 12400 } 12401 }, h = function(T) { 12402 var P = u("setReturnFocus", { 12403 params: [ 12404 T 12405 ] 12406 }); 12407 return P || (P === false ? false : T); 12408 }, _ = function(T) { 12409 var P = T.target, G = T.event, X = T.isBackward, Y = X === void 0 ? false : X; 12410 P = P || xa(G), d(); 12411 var q = null; 12412 if (r.tabbableGroups.length > 0) { 12413 var J = l(P, G), Z = J >= 0 ? r.containerGroups[J] : void 0; 12414 if (J < 0) Y ? q = r.tabbableGroups[r.tabbableGroups.length - 1].lastTabbableNode : q = r.tabbableGroups[0].firstTabbableNode; 12415 else if (Y) { 12416 var se = hd(r.tabbableGroups, function(ke) { 12417 var Ae = ke.firstTabbableNode; 12418 return P === Ae; 12419 }); 12420 if (se < 0 && (Z.container === P || mo(P, a.tabbableOptions) && !Yr(P, a.tabbableOptions) && !Z.nextTabbableNode(P, false)) && (se = J), se >= 0) { 12421 var Q = se === 0 ? r.tabbableGroups.length - 1 : se - 1, oe = r.tabbableGroups[Q]; 12422 q = $r(P) >= 0 ? oe.lastTabbableNode : oe.lastDomTabbableNode; 12423 } else Wi(G) || (q = Z.nextTabbableNode(P, false)); 12424 } else { 12425 var ce = hd(r.tabbableGroups, function(ke) { 12426 var Ae = ke.lastTabbableNode; 12427 return P === Ae; 12428 }); 12429 if (ce < 0 && (Z.container === P || mo(P, a.tabbableOptions) && !Yr(P, a.tabbableOptions) && !Z.nextTabbableNode(P)) && (ce = J), ce >= 0) { 12430 var be = ce === r.tabbableGroups.length - 1 ? 0 : ce + 1, ye = r.tabbableGroups[be]; 12431 q = $r(P) >= 0 ? ye.firstTabbableNode : ye.firstDomTabbableNode; 12432 } else Wi(G) || (q = Z.nextTabbableNode(P)); 12433 } 12434 } else q = u("fallbackFocus"); 12435 return q; 12436 }, C = function(T) { 12437 var P = xa(T); 12438 if (!(l(P, T) >= 0)) { 12439 if (Ni(a.clickOutsideDeactivates, T)) { 12440 s.deactivate({ 12441 returnFocus: a.returnFocusOnDeactivate 12442 }); 12443 return; 12444 } 12445 Ni(a.allowOutsideClick, T) || T.preventDefault(); 12446 } 12447 }, D = function(T) { 12448 var P = xa(T), G = l(P, T) >= 0; 12449 if (G || P instanceof Document) G && (r.mostRecentlyFocusedNode = P); 12450 else { 12451 T.stopImmediatePropagation(); 12452 var X, Y = true; 12453 if (r.mostRecentlyFocusedNode) if ($r(r.mostRecentlyFocusedNode) > 0) { 12454 var q = l(r.mostRecentlyFocusedNode), J = r.containerGroups[q].tabbableNodes; 12455 if (J.length > 0) { 12456 var Z = J.findIndex(function(se) { 12457 return se === r.mostRecentlyFocusedNode; 12458 }); 12459 Z >
12459= 0 && (a.isKeyForward(r.recentNavEvent) ? Z + 1 < J.length && (X = J[Z + 1], Y = false) : Z - 1 >= 0 && (X = J[Z - 1], Y = false)); 12460 } 12461 } else r.containerGroups.some(function(se) { 12462 return se.tabbableNodes.some(function(Q) { 12463 return $r(Q) > 0; 12464 }); 12465 }) || (Y = false); 12466 else Y = false; 12467 Y && (X = _({ 12468 target: r.mostRecentlyFocusedNode, 12469 isBackward: a.isKeyBackward(r.recentNavEvent) 12470 })), b(X || r.mostRecentlyFocusedNode || c()); 12471 } 12472 r.recentNavEvent = void 0; 12473 }, N = function(T) { 12474 var P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; 12475 r.recentNavEvent = T; 12476 var G = _({ 12477 event: T, 12478 isBackward: P 12479 }); 12480 G && (Wi(T) && T.preventDefault(), b(G)); 12481 }, v = function(T) { 12482 (a.isKeyForward(T) || a.isKeyBackward(T)) && N(T, a.isKeyBackward(T)); 12483 }, y = function(T) { 12484 AL(T) && Ni(a.escapeDeactivates, T) !== false && (T.preventDefault(), s.deactivate()); 12485 }, E = function(T) { 12486 var P = xa(T); 12487 l(P, T) >= 0 || Ni(a.clickOutsideDeactivates, T) || Ni(a.allowOutsideClick, T) || (T.preventDefault(), T.stopImmediatePropagation()); 12488 }, k = function() { 12489 if (r.active) return fd.activateTrap(i, s), r.delayInitialFocusTimer = a.delayInitialFocus ? md(function() { 12490 b(c()); 12491 }) : b(c()), n.addEventListener("focusin", D, true), n.addEventListener("mousedown", C, { 12492 capture: true, 12493 passive: false 12494 }), n.addEventListener("touchstart", C, { 12495 capture: true, 12496 passive: false 12497 }), n.addEventListener("click", E, { 12498 capture: true, 12499 passive: false 12500 }), n.addEventListener("keydown", v, { 12501 capture: true, 12502 passive: false 12503 }), n.addEventListener("keydown", y), s; 12504 }, A = function() { 12505 if (r.active) return n.removeEventListener("focusin", D, true), n.removeEventListener("mousedown", C, true), n.removeEventListener("touchstart", C, true), n.removeEventListener("click", E, true), n.removeEventListener("keydown", v, true), n.removeEventListener("keydown", y), s; 12506 }, L = function(T) { 12507 var P = T.some(function(G) { 12508 var X = Array.from(G.removedNodes); 12509 return X.some(function(Y) { 12510 return Y === r.mostRecentlyFocusedNode; 12511 }); 12512 }); 12513 P && b(c()); 12514 }, w = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(L) : void 0, z = function() { 12515 w && (w.disconnect(), r.active && !r.paused && r.containers.map(function(T) { 12516 w.observe(T, { 12517 subtree: true, 12518 childList: true 12519 }); 12520 })); 12521 }; 12522 return s = { 12523 get active() { 12524 return r.active; 12525 }, 12526 get paused() { 12527 return r.paused; 12528 }, 12529 activate: function(T) { 12530 if (r.active) return this; 12531 var P = o(T, "onActivate"), G = o(T, "onPostActivate"), X = o(T, "checkCanFocusTrap"); 12532 X || d(), r.active = true, r.paused = false, r.nodeFocusedBeforeActivation = n.activeElement, P == null ? void 0 : P(); 12533 var Y = function() { 12534 X && d(), k(), z(), G == null ? void 0 : G(); 12535 }; 12536 return X ? (X(r.containers.concat()).then(Y, Y), this) : (Y(), this); 12537 }, 12538 deactivate: function(T) { 12539 if (!r.active) return this; 12540 var P = pd({ 12541 onDeactivate: a.onDeactivate, 12542 onPostDeactivate: a.onPostDeactivate, 12543 checkCanReturnFocus: a.checkCanReturnFocus 12544 }, T); 12545 clearTimeout(r.delayInitialFocusTimer), r.delayInitialFocusTimer = void 0, A(), r.active = false, r.paused = false, z(), fd.deactivateTrap(i, s); 12546 var G = o(P, "onDeactivate"), X = o(P, "onPostDeactivate"), Y = o(P, "checkCanReturnFocus"), q = o(P, "returnFocus", "returnFocusOnDeactivate"); 12547 G == null ? void 0 : G(); 12548 var J = function() { 12549 md(function() { 12550 q && b(h(r.nodeFocusedBeforeActivation)), X == null ? void 0 : X(); 12551 }); 12552 }; 12553 return q && Y ? (Y(h(r.nodeFocusedBeforeActivation)).then(J, J), this) : (J(), this); 12554 }, 12555 pause: function(T) { 12556 if (r.paused || !r.active) return this; 12557 var P = o(T, "onPause"), G = o(T, "onPostPause"); 12558 return r.paused = true, P == null ? void 0 : P(), A(), z(), G == null ? void 0 : G(), this; 12559 }, 12560 unpause: function(T) { 12561 if (!r.paused || !r.active) return this; 12562 var P = o(T, "onUnpause"), G = o(T, "onPostUnpause"); 12563 return r.paused = false, P == null ? void 0 : P(), d(), k(), z(), G == null ? void 0 : G(), this; 12564 }, 12565 updateContainerElements: function(T) {
12566 var P = [].concat(T).filter(Boolean); 12567 return r.containers = P.map(function(G) { 12568 return typeof G == "string" ? n.querySelector(G) : G; 12569 }), r.active && d(), z(), this; 12570 } 12571 }, s.updateContainerElements(e), s; 12572 }; 12573 const OL = { 12574 escapeDeactivates: { 12575 type: Boolean, 12576 default: true 12577 }, 12578 returnFocusOnDeactivate: { 12579 type: Boolean, 12580 default: true 12581 }, 12582 allowOutsideClick: { 12583 type: [ 12584 Boolean, 12585 Function 12586 ], 12587 default: true 12588 }, 12589 clickOutsideDeactivates: [ 12590 Boolean, 12591 Function 12592 ], 12593 initialFocus: [ 12594 String, 12595 Function, 12596 Boolean 12597 ], 12598 fallbackFocus: [ 12599 String, 12600 Function 12601 ], 12602 checkCanFocusTrap: Function, 12603 checkCanReturnFocus: Function, 12604 delayInitialFocus: { 12605 type: Boolean, 12606 default: true 12607 }, 12608 document: Object, 12609 preventScroll: Boolean, 12610 setReturnFocus: [ 12611 Object, 12612 String, 12613 Boolean, 12614 Function 12615 ], 12616 tabbableOptions: Object 12617 }, lu = Hr({ 12618 props: Object.assign({ 12619 active: { 12620 type: Boolean, 12621 default: true 12622 } 12623 }, OL), 12624 emits: [ 12625 "update:active", 12626 "activate", 12627 "postActivate", 12628 "deactivate", 12629 "postDeactivate" 12630 ], 12631 render() { 12632 return this.renderImpl(); 12633 }, 12634 setup(e, { slots: t, emit: n }) { 12635 let i; 12636 const a = pe(null), r = ne(() => { 12637 const o = a.value; 12638 return o && (o instanceof HTMLElement ? o : o.$el); 12639 }), s = () => i || (i = xL(r.value, { 12640 escapeDeactivates: e.escapeDeactivates, 12641 allowOutsideClick: e.allowOutsideClick, 12642 returnFocusOnDeactivate: e.returnFocusOnDeactivate, 12643 clickOutsideDeactivates: e.clickOutsideDeactivates, 12644 onActivate: () => { 12645 n("update:active", true), n("activate"); 12646 }, 12647 onDeactivate: () => { 12648 n("update:active", false), n("deactivate"); 12649 }, 12650 onPostActivate: () => n("postActivate"), 12651 onPostDeactivate: () => n("postDeactivate"), 12652 initialFocus: e.initialFocus, 12653 fallbackFocus: e.fallbackFocus, 12654 tabbableOptions: e.tabbableOptions 12655 })); 12656 return nn(() => { 12657 Ue(() => e.active, (o) => { 12658 o && r.value ? s().activate() : i && (i.deactivate(), (!r.value || r.value.nodeType === Node.COMMENT_NODE) && (i = null)); 12659 }, { 12660 immediate: true, 12661 flush: "post" 12662 }); 12663 }), hs(() => { 12664 i && i.deactivate(), i = null; 12665 }), { 12666 activate() { 12667 s(), i.activate(); 12668 }, 12669 deactivate() { 12670 i && i.deactivate(); 12671 }, 12672 renderImpl() { 12673 if (!t.default) return null; 12674 const o = t.default().filter((l) => l.type !== gf); 12675 return !o || !o.length || o.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), o) : hb(o[0], { 12676 ref: a 12677 }); 12678 } 12679 }; 12680 } 12681 }), $L = { 12682 name: "n-header-nav-desktop-submenu", 12683 components: { 12684 NLink: at 12685 }, 12686 mixins: [ 12687 Kn, 12688 ur 12689 ], 12690 props: { 12691 linkChildren: { 12692 type: Array, 12693 default: () => [] 12694 }, 12695 submenuIndex: { 12696 type: Number, 12697 default: -1 12698 }, 12699 activeSubmenu: { 12700 type: [ 12701 Number, 12702 String 12703 ], 12704 default: "" 12705 } 12706 }, 12707 computed: { 12708 filteredLinkChildren() { 12709 let e = this.getValidLinks(this.linkChildren); 12710 return this.shouldDetermineCurrent ? this.setCurrentLinks(e) : e; 12711 } 12712 } 12713 }, TL = { 12714 class: "n-header-nav-desktop__submenu", 12715 "data-n-context": "header-nav-submenu" 12716 }, IL = { 12717 key: 0, 12718 class: "n-header-nav-desktop__sub-nav-heading h6" 12719 }; 12720 function FL(e, t, n, i, a, r) { 12721 const s = j("NLink"), o = j("n-header-nav-desktop-submenu"); 12722 return m(), x("div", TL, [ 12723 (m(true), x(me, null, ve(r.filteredLinkChildren, (l, u) => (m(), x("div", { 12724 key: u, 12725 class: "n-header-nav-desktop__sub-nav-list-item has-no-margins-around" 12726 }, [ 12727 l.href ? (m(), U(s, { 12728 key: 1, 12729 href: l.href, 12730 "link-type": l.linkType, 12731 class: R([ 12732 { 12733 "is-current": l.isCurrent 12734 }, 12735 "n-header-nav-desktop__sub-nav-link n-link--utility" 12736 ]), 12737 "aria-current": l.isCurrent ? "page" : void 0, 12738 "aria-flowto": r.filteredLinkChildren.length === u + 1 ? `n-header-submenu-link-${n.submenuIndex}-desktop` : null 12739 }, { 12740 default: I(() => [ 12741 re(H(l.label), 1) 12742 ]), 12743 _: 2 12744 }, 1032, [ 12745 "href", 12746 "link-type", 12747 "class", 12748 "aria-current", 12749 "aria-flowto" 12750 ])) : (m(), x("p", IL, H(l.label), 1)), 12751 l.children ? (m(), U(o, { 12752 key: 2, 12753 "link-children": l.children, 12754 "submenu-index": n.submenuIndex, 12755 "active-submenu": n.activeSubmenu 12756 }, null, 8, [ 12757 "link-children", 12758 "submenu-index", 12759 "active-submenu" 12760 ])) : M("", true) 12761 ]))), 128)) 12762 ]); 12763 } 12764 const NL = te($L, [ 12765 [ 12766 "render", 12767 FL 12768 ] 12769 ]), ah = { 12770 props: { 12771 visuallyHidden: { 12772 type: Boolean, 12773 default: null 12774 } 12775 }, 12776 data() { 12777 return { 12778 activeSubmenu: "", 12779 isActive: this.submenuIndex === "" 12780 }; 12781 }, 12782 methods: { 12783 closeAllSubmenus() { 12784 this.activeSubmenu = ""; 12785 }, 12786 toggleSubmenu(e, t) { 12787 this.activeSubmenu === e ? this.closeSubmenu(e, t) : this.openSubmenu(e, t); 12788 }, 12789 openSubmenu(e, t) { 12790 if (t === "desktop") this.activeSubmenu = e; 12791 else { 12792 let n = `[data-header-back-link="${this.activeSubmenu}_${e}"]`; 12793 this.activeSubmenu = this.activeSubmenu + "_" + e, window.setTimeout(function() { 12794 document.querySelector(n).focus({ 12795 preventScroll: true 12796 }); 12797 }, 400); 12798 } 12799 }, 12800 closeSubmenu(e, t) { 12801 if (t === "desktop") this.activeSubmenu = ""; 12802 else { 12803 let n = `[data-header-link="${e}"]`; 12804 e.lastIndexOf("_") <= 0 ? this.activeSubmenu = "" : this.activeSubmenu = e.substring(0, e.lastIndexOf("_")), this.$nextTick(() => { 12805 document.querySelector(n).focus({ 12806 preventScroll: true 12807 }); 12808 }); 12809 } 12810 } 12811 } 12812 }, DL = { 12813 name: "n-header-nav-desktop", 12814 directives: { 12815 onClickOutside: Yw 12816 }, 12817 components: { 12818 NavLink: ou, 12819 HeaderNavDesktopSubmenu: NL, 12820 FocusTrap: lu 12821 }, 12822 mixins: [ 12823 Kn, 12824 ah, 12825 Lt, 12826 ur 12827 ], 12828 props: { 12829 searchOpen: { 12830 type: Boolean 12831 } 12832 }, 12833 computed: { 12834 displayNavLinks() { 12835 let e = this.getValidLinks(this.navLinks); 12836 return this.shouldDetermineCurrent ? this.setCurrentLinks(e) : e; 12837 } 12838 }, 12839 compatConfig: { 12840 MODE: 3 12841 } 12842 }, PL = [ 12843 "aria-hidden", 12844 "tabindex" 12845 ], BL = [ 12846 "aria-label" 12847 ], ML = { 12848 class: "n-header-nav-desktop__nav-list n-unordered-list--unstyled n:my-0" 12849 }, RL = { 12850 class: "n-header-nav-desktop__nav-list-focus-trap" 12851 }, UL = [ 12852 "id", 12853 "data-header-nav-desktop-nav-link-list", 12854 "onKeyup" 12855 ], VL = { 12856 class: "row" 12857 }, HL = { 12858 class: "has-no-margins-around col-12" 12859 }, jL = [ 12860 "id", 12861 "data-header-desktop-submenu", 12862 "aria-labelledby" 12863 ]; 12864 function zL(e, t, n, i, a, r) { 12865 const s = j("NavLink"), o = j("HeaderNavDesktopSubmenu"), l = j("FocusTrap"), u = Gn("on-click-outside"); 12866 return Je((m(), x("div", { 12867 class: R([ 12868 { 12869 "n-header-nav-desktop--visually-hidden": e.visuallyHidden 12870 }, 12871 "n-header-nav-desktop col has-no-margins-around is-hidden-print" 12872 ]), 12873 "aria-hidden": e.visuallyHidden || null, 12874 tabindex: e.visuallyHidden ? -1 : null, 12875 "data-n-context": "header-nav-desktop" 12876 }, [ 12877 V(e.$slots, "navDesktop", {}, () => [ 12878 r.displayNavLinks ? (m(), x("nav", { 12879 key: 0, 12880 "aria-label": e.navLabel, 12881 class: "n:flex" 12882 }, [ 12883 O("ul", ML, [ 12884 (m(true), x(me, null, ve(r.displayNavLinks, (c, d) => (m(), x("li", { 12885 key: d, 12886 class: "n-header-nav-desktop__nav-list-item" 12887 }, [ 12888 K(l, { 12889 active: e.activeSubmenu === d 12890 }, { 12891 default: I(() => [ 12892 O("div", RL, [ 12893 K(s, { 12894 id: `n-header-submenu-link-${d}-desktop`, 12895 "aria-expanded": c.children ? e.activeSubmenu === d ? true : "false" : null, 12896 "aria-haspopup": c.children ? true : null, 12897 "aria-controls": c.children ? `n-header-desktop-submenu-${d}-desktop` : null, 12898 class: R([ 12899 { 12900 "is-active": e.activeSubmenu === d, 12901 "is-current": c.isCurrent 12902 }, 12903 "n-header-nav-desktop__nav-link" 12904 ]), 12905 "aria-current": c.isCurrent ? "page" : void 0, 12906 href: c.children ? null : c.href, 12907 "link-type": c.linkType, 12908 icon: c.children ? e.activeSubmenu === d ? "chevronUp" : "chevron" : null, 12909 "data-header-submenu-link": `${d}-desktop`, 12910 tabindex: n.searchOpen ? "-1" : null, 12911 "aria-hidden": n.searchOpen ? true : null, 12912 onClick: (p) => c.children ? e.toggleSubmenu(d, "desktop") : e.nestEvents_emit(e.EVENT_TYPES.CLICK, { 12913 textContent: c.label 12914 }) 12915 }, { 12916 default: I(() => [ 12917 re(H(c.label), 1) 12918 ]), 12919 _: 2 12920 }, 1032, [ 12921 "id", 12922 "aria-expanded", 12923 "aria-haspopup", 12924 "aria-controls", 12925 "class", 12926 "aria-current", 12927 "href", 12928 "link-type", 12929 "icon", 12930 "data-header-submenu-link", 12931 "tabindex", 12932 "aria-hidden", 12933 "onClick" 12934 ]), 12935 K(Ol, { 12936 name: "n-header-nav-desktop__sub-nav-transition" 12937 }, { 12938 default: I(() => [ 12939 c.children ? Je((m(), x("div", { 12940 key: 0, 12941 id: `n-header-nav-desktop-nav-link-list-${d}`, 12942 "data-header-nav-desktop-nav-link-list": d, 12943 class: "n-header-nav-desktop__sub-nav", 12944 onKeyup: Ye((p) => e.closeSubmenu(d, "desktop"), [ 12945 "escape" 12946 ]) 12947 }, [ 12948 O("div", VL, [ 12949 O("div", HL, [ 12950 O("div", { 12951 id: `n-header-desktop-submenu-${d}-desktop`, 12952 "data-header-desktop-submenu": d, 12953 "aria-labelledby": `n-header-submenu-link-${d}-desktop`, 12954 class: "n-header-nav-desktop__sub-nav-list" 12955 }, [ 12956 (m(true), x(me, null, ve(c.children, (p, b) => (m(), x("div", { 12957 key: b, 12958 class: "n-header-nav-desktop__sub-nav-list-column" 12959 }, [ 12960 K(o, fe({ 12961 "link-children": Array.isArray(p) ? p : b === 0 ? c.children : null, 12962 "submenu-index": d, 12963 "active-submenu": e.activeSubmenu, 12964 ref_for: true 12965 }, e.$props, { 12966 "should-determine-current-subcomponents": e.shouldDetermineCurrentSubcomponents, 12967 "determine-link-is-current": e.determineLinkIsCurrent 12968 }), null, 16, [ 12969 "link-children", 12970 "submenu-index", 12971 "active-submenu", 12972 "should-determine-current-subcomponents", 12973 "determine-link-is-current" 12974 ]) 12975 ]))), 128)) 12976 ], 8, jL) 12977 ]) 12978 ]) 12979 ], 40, UL)), [ 12980 [ 12981 pt, 12982 e.activeSubmenu === d 12983 ] 12984 ]) : M("", true) 12985 ]), 12986 _: 2 12987 }, 1024) 12988 ]) 12989 ]), 12990 _: 2 12991 }, 1032, [ 12992 "active" 12993 ]) 12994 ]))), 128)) 12995 ]) 12996 ], 8, BL)) : M("", true) 12997 ]) 12998 ], 10, PL)), [ 12999 [ 13000 u, 13001 e.closeAllSubmenus 13002 ] 13003 ]); 13004 } 13005 const WL = te(DL, [ 13006 [ 13007 "render", 13008 zL 13009 ] 13010 ]); 13011 function sr(e) { 13012 return e.split("-")[0]; 13013 } 13014 function sh(e) { 13015 return e.split("-")[1]; 13016 } 13017 function wi(e) { 13018 return [ 13019 "top", 13020 "bottom" 13021 ].includes(sr(e)) ? "x" : "y"; 13022 } 13023 function uu(e) { 13024 return e === "y" ? "height" : "width"; 13025 } 13026 function gd(e) { 13027 let { reference: t, floating: n, placement: i } = e; 13028 const a = t.x + t.width / 2 - n.width / 2, r = t.y + t.height / 2 - n.height / 2; 13029 let s; 13030 switch (sr(i)) { 13031 case "top": 13032 s = { 13033 x: a, 13034 y: t.y - n.height 13035 }; 13036 break; 13037 case "bottom": 13038 s = { 13039 x: a, 13040 y: t.y + t.height 13041 }; 13042 break; 13043 case "right": 13044 s = { 13045 x: t.x + t.width, 13046 y: r 13047 }; 13048 break;
13049 case "left": 13050 s = { 13051 x: t.x - n.width, 13052 y: r 13053 }; 13054 break; 13055 default: 13056 s = { 13057 x: t.x, 13058 y: t.y 13059 }; 13060 } 13061 const o = wi(i), l = uu(o); 13062 switch (sh(i)) { 13063 case "start": 13064 s[o] = s[o] - (t[l] / 2 - n[l] / 2); 13065 break; 13066 case "end": 13067 s[o] = s[o] + (t[l] / 2 - n[l] / 2); 13068 } 13069 return s; 13070 } 13071 const GL = async (e, t, n) => { 13072 const { placement: i = "bottom", strategy: a = "absolute", middleware: r = [], platform: s } = n; 13073 let o = await s.getElementRects({ 13074 reference: e, 13075 floating: t, 13076 strategy: a 13077 }), { x: l, y: u } = gd({ 13078 ...o, 13079 placement: i 13080 }), c = i, d = {}; 13081 for (let p = 0; p < r.length; p++) { 13082 const { name: b, fn: h } = r[p], { x: _, y: C, data: D, reset: N } = await h({ 13083 x: l, 13084 y: u, 13085 initialPlacement: i, 13086 placement: c, 13087 strategy: a, 13088 middlewareData: d, 13089 rects: o, 13090 platform: s, 13091 elements: { 13092 reference: e, 13093 floating: t 13094 } 13095 }); 13096 l = _ ?? l, u = C ?? u, d = { 13097 ...d, 13098 [b]: D ?? {} 13099 }, N && (typeof N == "object" && (N.placement && (c = N.placement), N.rects && (o = N.rects === true ? await s.getElementRects({ 13100 reference: e, 13101 floating: t, 13102 strategy: a 13103 }) : N.rects), { x: l, y: u } = gd({ 13104 ...o, 13105 placement: c 13106 })), p = -1); 13107 } 13108 return { 13109 x: l, 13110 y: u, 13111 placement: c, 13112 strategy: a, 13113 middlewareData: d 13114 }; 13115 }; 13116 function cu(e) { 13117 return typeof e != "number" ? function(t) { 13118 return { 13119 top: 0, 13120 right: 0, 13121 bottom: 0, 13122 left: 0, 13123 ...t 13124 }; 13125 }(e) : { 13126 top: e, 13127 right: e, 13128 bottom: e, 13129 left: e 13130 }; 13131 } 13132 function is(e) { 13133 return { 13134 ...e, 13135 top: e.y, 13136 left: e.x, 13137 right: e.x + e.width, 13138 bottom: e.y + e.height 13139 }; 13140 } 13141 async function oh(e, t) { 13142 t === void 0 && (t = {}); 13143 const { x: n, y: i, platform: a, rects: r, elements: s, strategy: o } = e, { boundary: l = "clippingParents", rootBoundary: u = "viewport", elementContext: c = "floating", altBoundary: d = false, padding: p = 0 } = t, b = cu(p), h = s[d ? c === "floating" ? "reference" : "floating" : c], _ = await a.getClippingClientRect({ 13144 element: await a.isElement(h) ? h : h.contextElement || await a.getDocumentElement({ 13145 element: s.floating 13146 }), 13147 boundary: l, 13148 rootBoundary: u 13149 }), C = is(await a.convertOffsetParentRelativeRectToViewportRelativeRect({ 13150 rect: c === "floating" ? { 13151 ...r.floating, 13152 x: n, 13153 y: i 13154 } : r.reference, 13155 offsetParent: await a.getOffsetParent({ 13156 element: s.floating 13157 }), 13158 strategy: o 13159 })); 13160 return { 13161 top: _.top - C.top + b.top, 13162 bottom: C.bottom - _.bottom + b.bottom, 13163 left: _.left - C.left + b.left, 13164 right: C.right - _.right + b.right 13165 }; 13166 } 13167 const lh = Math.min, uh = Math.max; 13168 function tl(e, t, n) { 13169 return uh(e, lh(t, n)); 13170 } 13171 const qL = (e) => ({ 13172 name: "arrow", 13173 options: e, 13174 async fn(t) { 13175 const { element: n, padding: i = 0 } = e ?? {}, { x: a, y: r, placement: s, rects: o, platform: l } = t; 13176 if (n == null) return {}; 13177 const u = cu(i), c = { 13178 x: a, 13179 y: r 13180 }, d = wi(sr(s)), p = uu(d), b = await l.getDimensions({ 13181 element: n 13182 }), h = d === "y" ? "top" : "left", _ = d === "y" ? "bottom" : "right", C = o.reference[p] + o.reference[d] - c[d] - o.floating[p], D = c[d] - o.reference[d], N = await l.getOffsetParent({ 13183 element: n 13184 }), v = N ? d === "y" ? N.clientHeight || 0 : N.clientWidth || 0 : 0, y = C / 2 - D / 2, E = u[h], k = v - b[p] - u[_], A = v / 2 - b[p] / 2 + y, L = tl(E, A, k); 13185 return { 13186 data: { 13187 [d]: L, 13188 centerOffset: A - L 13189 } 13190 }; 13191 } 13192 }), YL = { 13193 left: "right", 13194 right: "left", 13195 bottom: "top", 13196 top: "bottom" 13197 }; 13198 function as(e) { 13199 return e.replace(/left|right|bottom|top/g, (t) => YL[t]); 13200 } 13201 function KL(e, t) { 13202 const n = sh(e) === "start", i = wi(e), a = uu(i); 13203 let r = i === "x" ? n ? "right" : "left" : n ? "bottom" : "top"; 13204 return t.reference[a] > t.floating[a] && (r = as(r)), { 13205 main: r, 13206 cross: as(r) 13207 }; 13208 } 13209 const XL = { 13210 start: "end", 13211 end: "start" 13212 }; 13213 function bd(e) { 13214 return e.replace(/start|end/g, (t) => XL[t]); 13215 } 13216 const JL = [ 13217 "top", 13218 "right", 13219 "bottom", 13220 "left" 13221 ]; 13222 JL.reduce((e, t) => e.concat(t, t + "-start", t + "-end"), []); 13223 const QL = function(e) { 13224 return e === void 0 && (e = {}), { 13225 name: "flip", 13226 options: e, 13227 async fn(t) { 13228 var n, i; 13229 const { placement: a, middlewareData: r, rects: s, initialPlacement: o } = t; 13230 if ((n = r.flip) != null && n.skip) return {}; 13231 const { mainAxis: l = true, crossAxis: u = true, fallbackPlacements: c, fallbackStrategy: d = "bestFit", flipAlignment: p = true, ...b } = e, h = sr(a), _ = c || (h === o || !p ? [ 13232 as(o) 13233 ] : function(A) { 13234 const L = as(A); 13235 return [ 13236 bd(A), 13237 L, 13238 bd(L) 13239 ]; 13240 }(o)), C = [ 13241 o, 13242 ..._
13243 ], D = await oh(t, b), N = []; 13244 let v = ((i = r.flip) == null ? void 0 : i.overflows) || []; 13245 if (l && N.push(D[h]), u) { 13246 const { main: A, cross: L } = KL(a, s); 13247 N.push(D[A], D[L]); 13248 } 13249 if (v = [ 13250 ...v, 13251 { 13252 placement: a, 13253 overflows: N 13254 } 13255 ], !N.every((A) => A <= 0)) { 13256 var y, E; 13257 const A = ((y = (E = r.flip) == null ? void 0 : E.index) != null ? y : 0) + 1, L = C[A]; 13258 if (L) return { 13259 data: { 13260 index: A, 13261 overflows: v 13262 }, 13263 reset: { 13264 placement: L 13265 } 13266 }; 13267 let w = "bottom"; 13268 switch (d) { 13269 case "bestFit": { 13270 var k; 13271 const z = (k = v.slice().sort((T, P) => T.overflows.filter((G) => G > 0).reduce((G, X) => G + X, 0) - P.overflows.filter((G) => G > 0).reduce((G, X) => G + X, 0))[0]) == null ? void 0 : k.placement; 13272 z && (w = z); 13273 break; 13274 } 13275 case "initialPlacement": 13276 w = o; 13277 } 13278 return { 13279 data: { 13280 skip: true 13281 }, 13282 reset: { 13283 placement: w 13284 } 13285 }; 13286 } 13287 return {}; 13288 } 13289 }; 13290 }, ZL = function(e) { 13291 return e === void 0 && (e = 0), { 13292 name: "offset", 13293 options: e, 13294 fn(t) { 13295 const { x: n, y: i, placement: a, rects: r } = t, s = function(o) { 13296 let { placement: l, rects: u, value: c } = o; 13297 const d = sr(l), p = [ 13298 "left", 13299 "top" 13300 ].includes(d) ? -1 : 1, b = typeof c == "function" ? c({ 13301 ...u, 13302 placement: l 13303 }) : c, { mainAxis: h, crossAxis: _ } = typeof b == "number" ? { 13304 mainAxis: b, 13305 crossAxis: 0 13306 } : { 13307 mainAxis: 0, 13308 crossAxis: 0, 13309 ...b 13310 }; 13311 return wi(d) === "x" ? { 13312 x: _, 13313 y: h * p 13314 } : { 13315 x: h * p, 13316 y: _ 13317 }; 13318 }({ 13319 placement: a, 13320 rects: r, 13321 value: e 13322 }); 13323 return { 13324 x: n + s.x, 13325 y: i + s.y, 13326 data: s 13327 }; 13328 } 13329 }; 13330 }; 13331 function ex(e) { 13332 return e === "x" ? "y" : "x"; 13333 } 13334 const tx = function(e) { 13335 return e === void 0 && (e = {}), { 13336 name: "shift", 13337 options: e, 13338 async fn(t) { 13339 const { x: n, y: i, placement: a } = t, { mainAxis: r = true, crossAxis: s = false, limiter: o = { 13340 fn: (C) => { 13341 let { x: D, y: N } = C; 13342 return { 13343 x: D, 13344 y: N 13345 }; 13346 } 13347 }, ...l } = e, u = { 13348 x: n, 13349 y: i 13350 }, c = await oh(t, l), d = wi(sr(a)), p = ex(d); 13351 let b = u[d], h = u[p]; 13352 if (r) { 13353 const C = d === "y" ? "bottom" : "right"; 13354 b = tl(b + c[d === "y" ? "top" : "left"], b, b - c[C]); 13355 } 13356 if (s) { 13357 const C = p === "y" ? "bottom" : "right"; 13358 h = tl(h + c[p === "y" ? "top" : "left"], h, h - c[C]); 13359 } 13360 const _ = o.fn({ 13361 ...t, 13362 [d]: b, 13363 [p]: h 13364 }); 13365 return { 13366 ..._, 13367 data: { 13368 x: _.x - n, 13369 y: _.y - i 13370 } 13371 }; 13372 } 13373 }; 13374 }, nx = function(e) { 13375 return e === void 0 && (e = {}), { 13376 name: "inline", 13377 options: e, 13378 async fn(t) { 13379 var n, i; 13380 const { placement: a, elements: r, rects: s, platform: o, strategy: l, middlewareData: u } = t, { padding: c = 2, x: d, y: p } = e; 13381 if ((n = u.inline) != null && n.skip) return {}; 13382 const b = is(await o.convertOffsetParentRelativeRectToViewportRelativeRect({ 13383 rect: s.reference, 13384 offsetParent: await o.getOffsetParent({ 13385 element: r.floating 13386 }), 13387 strategy: l 13388 })), h = Array.from((i = await (o.getClientRects == null ? void 0 : o.getClientRects({ 13389 element: r.reference 13390 }))) != null ? i : []), _ = cu(c); 13391 return { 13392 data: { 13393 skip: true 13394 }, 13395 reset: { 13396 rects: await o.getElementRects({ 13397 reference: { 13398 getBoundingClientRect: function() { 13399 var C; 13400 if (h.length === 2 && h[0].left > h[1].right && d != null && p != null) return (C = h.find((D) => d > D.left - _.left && d < D.right + _.right && p > D.top - _.top && p < D.bottom + _.bottom)) != null ? C : b; 13401 if (h.length >= 2) { 13402 if (wi(a) === "x") { 13403 const A = h[0], L = h[h.length - 1], w = sr(a) === "top", z = A.top, T = L.bottom, P = w ? A.left : L.left, G = w ? A.right : L.right; 13404 return { 13405 top: z, 13406 bottom: T, 13407 left: P, 13408 right: G, 13409 width: G - P, 13410 height: T - z, 13411 x: P, 13412 y: z 13413 }; 13414 } 13415 const D = sr(a) === "left", N = uh(...h.map((A) => A.right)), v = lh(...h.map((A) => A.left)), y = h.filter((A) => D ? A.left === v : A.right === N), E = y[0].top, k = y[y.length - 1].bottom; 13416 return { 13417 top: E, 13418 bottom: k, 13419 left: v, 13420 right: N, 13421 width: N - v, 13422 height: k - E, 13423 x: v, 13424 y: E 13425 }; 13426 } 13427 return b; 13428 } 13429 }, 13430 floating: r.floating, 13431 strategy: l 13432 }) 13433 } 13434 }; 13435 } 13436 }; 13437 }; 13438 function du(e) { 13439 return (e == null ? void 0 : e.toString()) === "[object Window]"; 13440 } 13441 function hr(e) { 13442 if (e == null) return window; 13443 if (!du(e)) { 13444 const t = e.ownerDocument; 13445 return t && t.defaultView || window; 13446 } 13447 return e; 13448 } 13449 function Ds(e) { 13450 return hr(e).getComputedStyle(e); 13451 } 13452 function Vn(e) { 13453 return du(e) ? "" : e ? (e.nodeName || "").toLowerCase() : ""; 13454 } 13455 function zn(e) { 13456 return e instanceof hr(e).HTMLElement; 13457 } 13458 function ss(e) { 13459 return e instanceof hr(e).Element; 13460 } 13461 function ch(e) { 13462 return e instanceof hr(e).ShadowRoot || e instanceof ShadowRoot; 13463 } 13464 function Ps(e) { 13465 const { overflow: t, overflowX: n, overflowY: i } = Ds(e); 13466 return /auto|scroll|overlay|hidden/.test(t + i + n); 13467 } 13468 function rx(e) { 13469 return [ 13470 "table", 13471 "td", 13472 "th" 13473 ].includes(Vn(e)); 13474 } 13475 function vd(e) { 13476 const t = navigator.userAgent.toLowerCase().includes("firefox"), n = Ds(e);
13477 return n.transform !== "none" || n.perspective !== "none" || n.contain === "paint" || [ 13478 "transform", 13479 "perspective" 13480 ].includes(n.willChange) || t && n.willChange === "filter" || t && !!n.filter && n.filter !== "none"; 13481 } 13482 const yd = Math.min, Gi = Math.max, os = Math.round; 13483 function ii(e, t) { 13484 t === void 0 && (t = false); 13485 const n = e.getBoundingClientRect(); 13486 let i = 1, a = 1; 13487 return t && zn(e) && (i = e.offsetWidth > 0 && os(n.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && os(n.height) / e.offsetHeight || 1), { 13488 width: n.width / i, 13489 height: n.height / a, 13490 top: n.top / a, 13491 right: n.right / i, 13492 bottom: n.bottom / a, 13493 left: n.left / i, 13494 x: n.left / i, 13495 y: n.top / a 13496 }; 13497 } 13498 function tr(e) { 13499 return (t = e, (t instanceof hr(t).Node ? e.ownerDocument : e.document) || window.document).documentElement; 13500 var t; 13501 } 13502 function Bs(e) { 13503 return du(e) ? { 13504 scrollLeft: e.pageXOffset, 13505 scrollTop: e.pageYOffset 13506 } : { 13507 scrollLeft: e.scrollLeft, 13508 scrollTop: e.scrollTop 13509 }; 13510 } 13511 function dh(e) { 13512 return ii(tr(e)).left + Bs(e).scrollLeft; 13513 } 13514 function ix(e, t, n) { 13515 const i = zn(t), a = tr(t), r = ii(e, i && function(l) { 13516 const u = ii(l); 13517 return os(u.width) !== l.offsetWidth || os(u.height) !== l.offsetHeight; 13518 }(t)); 13519 let s = { 13520 scrollLeft: 0, 13521 scrollTop: 0 13522 }; 13523 const o = { 13524 x: 0, 13525 y: 0 13526 }; 13527 if (i || !i && n !== "fixed") if ((Vn(t) !== "body" || Ps(a)) && (s = Bs(t)), zn(t)) { 13528 const l = ii(t, true); 13529 o.x = l.x + t.clientLeft, o.y = l.y + t.clientTop; 13530 } else a && (o.x = dh(a)); 13531 return { 13532 x: r.left + s.scrollLeft - o.x, 13533 y: r.top + s.scrollTop - o.y, 13534 width: r.width, 13535 height: r.height 13536 }; 13537 } 13538 function Ms(e) { 13539 return Vn(e) === "html" ? e : e.assignedSlot || e.parentNode || (ch(e) ? e.host : null) || tr(e); 13540 } 13541 function _d(e) { 13542 return zn(e) && getComputedStyle(e).position !== "fixed" ? e.offsetParent : null; 13543 } 13544 function nl(e) { 13545 const t = hr(e); 13546 let n = _d(e); 13547 for (; n && rx(n) && getComputedStyle(n).position === "static"; ) n = _d(n); 13548 return n && (Vn(n) === "html" || Vn(n) === "body" && getComputedStyle(n).position === "static" && !vd(n)) ? t : n || function(i) { 13549 let a = Ms(i); 13550 for (; zn(a) && ![ 13551 "html", 13552 "body" 13553 ].includes(Vn(a)); ) { 13554 if (vd(a)) return a; 13555 a = a.parentNode; 13556 } 13557 return null; 13558 }(e) || t; 13559 } 13560 function Ed(e) { 13561 return { 13562 width: e.offsetWidth, 13563 height: e.offsetHeight 13564 }; 13565 } 13566 function ph(e) { 13567 return [ 13568 "html", 13569 "body", 13570 "#document" 13571 ].includes(Vn(e)) ? e.ownerDocument.body : zn(e) && Ps(e) ? e : ph(Ms(e)); 13572 } 13573 function fh(e, t) { 13574 var n; 13575 t === void 0 && (t = []); 13576 const i = ph(e), a = i === ((n = e.ownerDocument) == null ? void 0 : n.body), r = hr(i), s = a ? [ 13577 r 13578 ].concat(r.visualViewport || [], Ps(i) ? i : []) : i, o = t.concat(s); 13579 return a ? o : o.concat(fh(Ms(s))); 13580 } 13581 function kd(e, t) { 13582 return t === "viewport" ? is(function(n) { 13583 const i = hr(n), a = tr(n), r = i.visualViewport; 13584 let s = a.clientWidth, o = a.clientHeight, l = 0, u = 0; 13585 return r && (s = r.width, o = r.height, Math.abs(i.innerWidth / r.scale - r.width) < 0.01 && (l = r.offsetLeft, u = r.offsetTop)), { 13586 width: s, 13587 height: o, 13588 x: l, 13589 y: u 13590 }; 13591 }(e)) : ss(t) ? function(n) { 13592 const i = ii(n), a = i.top + n.clientTop, r = i.left + n.clientLeft; 13593 return { 13594 top: a, 13595 left: r, 13596 x: r, 13597 y: a, 13598 right: r + n.clientWidth, 13599 bottom: a + n.clientHeight, 13600 width: n.clientWidth, 13601 height: n.clientHeight 13602 }; 13603 }(t) : is(function(n) { 13604 var i; 13605 const a = tr(n), r = Bs(n), s = (i = n.ownerDocument) == null ? void 0 : i.body, o = Gi(a.scrollWidth, a.clientWidth, s ? s.scrollWidth : 0, s ? s.clientWidth : 0), l = Gi(a.scrollHeight, a.clientHeight, s ? s.scrollHeight : 0, s ? s.clientHeight : 0); 13606 let u = -r.scrollLeft + dh(n); 13607 const c = -r.scrollTop; 13608 return Ds(s || a).direction === "rtl" && (u += Gi(a.clientWidth, s ? s.clientWidth : 0) - o), { 13609 width: o, 13610 height: l, 13611 x: u, 13612 y: c 13613 }; 13614 }(tr(e))); 13615 } 13616 function ax(e) { 13617 const t = fh(Ms(e)), n = [ 13618 "absolute", 13619 "fixed" 13620 ].includes(Ds(e).position) && zn(e) ? nl(e) : e; 13621 return ss(n) ? t.filter((i) => ss(i) && function(a, r) { 13622 const s = r.getRootNode == null ? void 0 : r.getRootNode(); 13623 if (a.contains(r)) return true; 13624 if (s && ch(s)) { 13625 let o = r; 13626 do { 13627 if (o && a === o) return true; 13628 o = o.parentNode || o.host; 13629 } while (o); 13630 } 13631 return false;
13632 }(i, n) && Vn(i) !== "body") : []; 13633 } 13634 const sx = { 13635 getElementRects: (e) => { 13636 let { reference: t, floating: n, strategy: i } = e; 13637 return { 13638 reference: ix(t, nl(n), i), 13639 floating: { 13640 ...Ed(n), 13641 x: 0, 13642 y: 0 13643 } 13644 }; 13645 }, 13646 convertOffsetParentRelativeRectToViewportRelativeRect: (e) => function(t) { 13647 let { rect: n, offsetParent: i, strategy: a } = t; 13648 const r = zn(i), s = tr(i); 13649 if (i === s) return n; 13650 let o = { 13651 scrollLeft: 0, 13652 scrollTop: 0 13653 }; 13654 const l = { 13655 x: 0, 13656 y: 0 13657 }; 13658 if ((r || !r && a !== "fixed") && ((Vn(i) !== "body" || Ps(s)) && (o = Bs(i)), zn(i))) { 13659 const u = ii(i, true); 13660 l.x = u.x + i.clientLeft, l.y = u.y + i.clientTop; 13661 } 13662 return { 13663 ...n, 13664 x: n.x - o.scrollLeft + l.x, 13665 y: n.y - o.scrollTop + l.y 13666 }; 13667 }(e), 13668 getOffsetParent: (e) => { 13669 let { element: t } = e; 13670 return nl(t); 13671 }, 13672 isElement: (e) => ss(e), 13673 getDocumentElement: (e) => { 13674 let { element: t } = e; 13675 return tr(t); 13676 }, 13677 getClippingClientRect: (e) => function(t) { 13678 let { element: n, boundary: i, rootBoundary: a } = t; 13679 const r = [ 13680 ...i === "clippingParents" ? ax(n) : [].concat(i), 13681 a 13682 ], s = r[0], o = r.reduce((l, u) => { 13683 const c = kd(n, u); 13684 return l.top = Gi(c.top, l.top), l.right = yd(c.right, l.right), l.bottom = yd(c.bottom, l.bottom), l.left = Gi(c.left, l.left), l; 13685 }, kd(n, s)); 13686 return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o; 13687 }(e), 13688 getDimensions: (e) => { 13689 let { element: t } = e; 13690 return Ed(t); 13691 }, 13692 getClientRects: (e) => { 13693 let { element: t } = e; 13694 return t.getClientRects(); 13695 } 13696 }, ox = (e, t, n) => GL(e, t, { 13697 platform: sx, 13698 ...n 13699 }), lx = { 13700 name: "n-tooltip", 13701 components: { 13702 Icon: Tt 13703 }, 13704 mixins: [ 13705 nt 13706 ], 13707 props: { 13708 triggerLabel: { 13709 type: String 13710 }, 13711 term: { 13712 type: String 13713 }, 13714 details: { 13715 type: String 13716 }, 13717 placement: { 13718 type: String, 13719 default: "top-start" 13720 }, 13721 format: { 13722 type: String, 13723 default: "auto", 13724 validator: (e) => [ 13725 "auto", 13726 "icon-only", 13727 "help-text" 13728 ].includes(e) 13729 }, 13730 isOpen: { 13731 type: Boolean 13732 } 13733 }, 13734 data() { 13735 return { 13736 tooltipIsOpen: false, 13737 arrowSize: 16, 13738 listener: this.setPosition.bind(this) 13739 }; 13740 }, 13741 computed: { 13742 computePositionConfig() { 13743 return { 13744 placement: this.placement, 13745 middleware: [ 13746 nx(), 13747 ZL(this.arrowSize / 2), 13748 QL(), 13749 tx(), 13750 qL({ 13751 element: this.$refs.arrow 13752 }) 13753 ] 13754 }; 13755 }, 13756 hasSlotContentForTerm() { 13757 return !!this.$slots.default; 13758 }, 13759 hasTerm() { 13760 return this.hasSlotContentForTerm || this.term; 13761 }, 13762 isIconOnly() { 13763 return this.format === "icon-only" || this.format === "auto" && !this.hasTerm; 13764 }, 13765 isHelpText() { 13766 return !this.isIconOnly; 13767 } 13768 }, 13769 watch: { 13770 isOpen: { 13771 immediate: true, 13772 handler: function() { 13773 if (this.isOpen) { 13774 this.openPopup.bind(this); 13775 return; 13776 } 13777 this.closePopup.bind(this); 13778 } 13779 } 13780 }, 13781 mounted() { 13782 this.isOpen && window.addEventListener("load", this.openPopup.bind(this)), this.setPosition(); 13783 }, 13784 methods: { 13785 openPopup() { 13786 this.tooltipIsOpen = true, window.requestAnimationFrame(this.listener), window.addEventListener("scroll", this.listener), window.addEventListener("resize", this.listener), this.trackPopup(); 13787 }, 13788 closePopup() { 13789 this.isOpen || (this.tooltipIsOpen = false, window.removeEventListener("scroll", this.listener), window.removeEventListener("resize", this.listener)); 13790 }, 13791 togglePopup() { 13792 this.tooltipIsOpen ? this.closePopup() : this.openPopup(); 13793 }, 13794 getPopupXOffset(e) { 13795 return document.body.clientWidth <= 768 ? e + 16 : this.isIconOnly ? e - 16 : e; 13796 }, 13797 getPopupYOffset(e, t) { 13798 return t === "top" ? e - 8 : t === "bottom" ? e + 8 : e; 13799 }, 13800 getArrowXOffset(e) { 13801 return document.body.clientWidth <= 768 && this.hasTerm ? e : document.body.clientWidth <= 768 && this.isIconOnly ? e <= 16 ? 0 : e - 16 : this.isIconOnly ? e + 16 : this.$refs.popup.clientWidth < 280 ? e - this.$refs.popup.clientWidth + 48 : this.$refs.popup.clientWidth === 280 ? e + 16 : e - this.$refs.popup.clientWidth + 48; 13802 }, 13803 setPosition() { 13804 ox(this.isIconOnly ? this.$refs.iconWrapper : this.$refs.trigger, this.$refs.popup, this.computePositionConfig).then(({ x: e, y: t, placement: n, middlewareData: i }) => { 13805 const { x: a, y: r } = i.arrow, s = n.split("-")[0], o = { 13806 top: "bottom", 13807 right: "left", 13808 bottom: "top", 13809 left: "right" 13810 }[s], l = { 13811 top: "initial", 13812 right: "rotate(270deg)", 13813 bottom: "rotate(180deg)", 13814 left: "rotate(90deg)" 13815 }[o], u = { 13816 popupX: this.getPopupXOffset(e), 13817 popupY: this.getPopupYOffset(Math.floor(t), s),
13818 arrowX: this.getArrowXOffset(a), 13819 arrowY: r 13820 }; 13821 try { 13822 Object.assign(this.$refs.popup.style, { 13823 left: `${u.popupX}px`, 13824 top: `${u.popupY}px` 13825 }); 13826 } catch (c) { 13827 console.error(c); 13828 } 13829 try { 13830 Object.assign(this.$refs.arrow.style, { 13831 left: a != null ? `${u.arrowX}px` : "", 13832 [s]: r != null ? `${u.arrowY}px` : "", 13833 [o]: `-${this.arrowSize}px`, 13834 transform: l 13835 }); 13836 } catch (c) { 13837 console.error(c); 13838 } 13839 }); 13840 }, 13841 trackPopup(e = "show") { 13842 oi({ 13843 category: "disclosure", 13844 action: e, 13845 component: "tooltip" 13846 }, this.$refs.tooltip.$el); 13847 } 13848 }, 13849 compatConfig: { 13850 MODE: 3 13851 } 13852 }, ux = [ 13853 "id" 13854 ], cx = [ 13855 "id", 13856 "aria-label", 13857 "aria-describedby", 13858 "aria-controls", 13859 "aria-expanded" 13860 ], dx = [ 13861 "id" 13862 ], px = { 13863 key: 1, 13864 ref: "iconWrapper", 13865 "aria-hidden": "true", 13866 class: "n-tooltip__icon-wrapper" 13867 }, fx = [ 13868 "id" 13869 ], mx = [ 13870 "id" 13871 ]; 13872 function hx(e, t, n, i, a, r) { 13873 const s = j("Icon"); 13874 return m(), x("span", { 13875 id: e.id, 13876 ref: "tooltip", 13877 class: R([ 13878 "n-tooltip", 13879 { 13880 "n-tooltip--icon-only": r.isIconOnly 13881 } 13882 ]), 13883 "data-n-context": "'n-tooltips", 13884 onKeyup: t[1] || (t[1] = Ye((...o) => r.closePopup && r.closePopup(...o), [ 13885 "esc" 13886 ])) 13887 }, [ 13888 O("button", { 13889 id: `${e.id}-trigger`, 13890 ref: "trigger", 13891 type: "button", 13892 class: R([ 13893 { 13894 "n-tooltip__trigger--icon-only": r.isIconOnly 13895 }, 13896 "n-tooltip__trigger" 13897 ]), 13898 "aria-label": n.triggerLabel, 13899 "aria-describedby": a.tooltipIsOpen ? `${e.id}-popup` : void 0, 13900 "aria-controls": `${e.id}-popup`, 13901 "aria-expanded": !!a.tooltipIsOpen, 13902 onClick: t[0] || (t[0] = (...o) => r.togglePopup && r.togglePopup(...o)) 13903 }, [ 13904 r.hasSlotContentForTerm || n.term ? (m(), x("span", { 13905 key: 0, 13906 id: `${e.id}-term`, 13907 ref: "term", 13908 class: R([ 13909 [ 13910 { 13911 "help-text": r.isHelpText 13912 } 13913 ], 13914 "n-tooltip__term paragraph n:mb-0" 13915 ]) 13916 }, [ 13917 V(e.$slots, "default", {}, () => [ 13918 re(H(n.term), 1) 13919 ]) 13920 ], 10, dx)) : M("", true), 13921 r.isIconOnly ? (m(), x("span", px, [ 13922 K(s, { 13923 class: "n-tooltip__icon", 13924 icon: "info-fill", 13925 size: 16 13926 }) 13927 ], 512)) : M("", true) 13928 ], 10, cx), 13929 O("span", { 13930 id: `${e.id}-popup`, 13931 ref: "popup", 13932 "aria-live": "assertive", 13933 class: R([ 13934 [ 13935 { 13936 "is-open": a.tooltipIsOpen 13937 }, 13938 { 13939 "is-hidden": !a.tooltipIsOpen 13940 } 13941 ], 13942 "n-tooltip__popup has-no-margins-around has-outro-text paragraph is-normal n:mb-0" 13943 ]), 13944 role: "tooltip", 13945 tabindex: "-1" 13946 }, [ 13947 O("span", { 13948 ref: "arrow", 13949 class: R([ 13950 { 13951 "is-open": a.tooltipIsOpen 13952 }, 13953 "n-tooltip__arrow-wrapper" 13954 ]), 13955 "aria-hidden": "true" 13956 }, t[2] || (t[2] = [ 13957 O("span", { 13958 class: "n-tooltip__arrow" 13959 }, null, -1) 13960 ]), 2), 13961 a.tooltipIsOpen ? (m(), x("span", { 13962 key: 0, 13963 id: `${e.id}-popup-details` 13964 }, [ 13965 V(e.$slots, "details", {}, () => [ 13966 re(H(n.details), 1) 13967 ]) 13968 ], 8, mx)) : M("", true) 13969 ], 10, fx) 13970 ], 42, ux); 13971 } 13972 let it, gx, bx, vx, yx, _x, Ex; 13973 mh = te(lx, [ 13974 [ 13975 "render", 13976 hx 13977 ] 13978 ]); 13979 it = { 13980 id: nt.props.id, 13981 name: { 13982 type: String 13983 }, 13984 modelValue: { 13985 type: [ 13986 String, 13987 Number 13988 ] 13989 }, 13990 size: { 13991 type: String, 13992 default: "default", 13993 validator(e) { 13994 return [ 13995 "default", 13996 "auto", 13997 "full-width", 13998 "long", 13999 "short", 14000 "pairs" 14001 ].includes(e); 14002 } 14003 }, 14004 describedBy: { 14005 type: [ 14006 Array, 14007 String 14008 ] 14009 }, 14010 state: { 14011 type: String, 14012 default: "", 14013 validator(e) { 14014 return [ 14015 "error", 14016 "success", 14017 "" 14018 ].includes(e); 14019 } 14020 }, 14021 inputClass: { 14022 type: String, 14023 default: "" 14024 }, 14025 affixment: { 14026 type: String 14027 }, 14028 affixmentPosition: { 14029 type: String, 14030 validator: (e) => [ 14031 "right", 14032 "left" 14033 ].includes(e) 14034 }, 14035 prefix: { 14036 type: String 14037 }, 14038 suffix: { 14039 type: String 14040 }, 14041 min: { 14042 type: Number 14043 }, 14044 max: { 14045 type: Number 14046 } 14047 }; 14048 gx = { 14049 name: "n-field", 14050 components: { 14051 Icon: Tt, 14052 Tooltip: mh 14053 }, 14054 mixins: [ 14055 Ge, 14056 Lt 14057 ], 14058 inheritAttrs: false, 14059 props: { 14060 state: it.state, 14061 size: it.size, 14062 inputId: { 14063 type: String, 14064 default: function() { 14065 return _a(); 14066 } 14067 }, 14068 label: { 14069 type: String 14070 }, 14071 description: { 14072 type: String 14073 }, 14074 hint: { 14075 type: String 14076 }, 14077 hintPosition: { 14078 type: String, 14079 validator: (e) => [ 14080 "before", 14081 "after" 14082 ].includes(e) 14083 }, 14084 isFieldset: { 14085 type: Boolean, 14086 default: false 14087 }, 14088 tooltip: { 14089 type: String 14090 }, 14091 srDescription: { 14092 type: String 14093 } 14094 }, 14095 setup() { 14096 const e = _i(), { isSlotEmpty: t } = on(e.label); 14097 return { 14098 slots: e, 14099 isSlotEmpty: t, 14100 hasDescriptionSlotContent: on(e.description).hasSlotContent 14101 }; 14102 }, 14103 computed: { 14104 labelFor() { 14105 return this.isFieldset ? false : this.inputId; 14106 }, 14107 labelContent() { 14108 var e, t, n, i; 14109 return (e = this.$slots) != null && e.label && ((i = (n = (t = this.$slots) == null ? void 0 : t.label()) == null ? void 0 : n.innertext) == null ? void 0 : i.length) >= 1 ? this.$slots.label().innerText : this.label; 14110 }, 14111 icon() { 14112 return this.state ? { 14113 error: "xFill", 14114 success: "checkFill" 14115 }[this.state] : false;
14116 }, 14117 slotProps() { 14118 let e = []; 14119 return this.hasSlotDescription && e.push(`${this.inputId}-description`), this.hasSlotHint && e.push(`${this.inputId}-hint`), { 14120 inputId: this.inputId, 14121 describedBy: e 14122 }; 14123 }, 14124 isHintBeforeInput() { 14125 return this.isFieldset && this.hintPosition !== "after" || this.hintPosition === "before"; 14126 }, 14127 hasSlotDescription() { 14128 return this.description || this.hasDescriptionSlotContent; 14129 }, 14130 hasSlotHint() { 14131 return this.hint || this.$slots.hint && this.$slots.hint().length; 14132 }, 14133 attrs() { 14134 const e = { 14135 ...this.$attrs 14136 }; 14137 return delete e.type, e; 14138 } 14139 }, 14140 watch: { 14141 state(e) { 14142 e === "error" && this.nestEvents_emit(this.EVENT_TYPES.ERROR, { 14143 label: this.label, 14144 description: this.description, 14145 hint: this.hint, 14146 value: this.value 14147 }); 14148 } 14149 }, 14150 compatConfig: { 14151 MODE: 3 14152 } 14153 }; 14154 bx = [ 14155 "id" 14156 ]; 14157 vx = [ 14158 "id" 14159 ]; 14160 yx = { 14161 key: 0, 14162 class: "n-field__hint-icon-wrapper" 14163 }; 14164 _x = { 14165 class: "n-field__hint-content-wrapper has-no-margins-around" 14166 }; 14167 Ex = { 14168 class: "is-sr-only", 14169 "aria-live": "polite", 14170 "aria-atomic": "true" 14171 }; 14172 function kx(e, t, n, i, a, r) { 14173 const s = j("Tooltip"), o = j("Icon"); 14174 return m(), U(ue(n.isFieldset ? "fieldset" : "div"), fe({ 14175 class: [ 14176 [ 14177 `n-field--${n.size}`, 14178 { 14179 [`is-${n.state}`]: n.state 14180 } 14181 ], 14182 "n-field" 14183 ] 14184 }, r.attrs), { 14185 default: I(() => [ 14186 n.label || !i.isSlotEmpty ? (m(), U(ue(n.isFieldset ? "legend" : "label"), { 14187 key: 0, 14188 id: `${n.inputId}-label`, 14189 for: r.labelFor || null, 14190 "data-test-id": "label-legend-component" 14191 }, { 14192 default: I(() => [ 14193 V(e.$slots, "label", {}, () => [ 14194 re(H(n.label), 1) 14195 ]), 14196 n.tooltip ? (m(), U(s, { 14197 key: 0, 14198 format: "icon-only", 14199 "trigger-label": e.$t("label.tooltipTrigger", [ 14200 r.labelContent 14201 ]) 14202 }, { 14203 details: I(() => [ 14204 V(e.$slots, "tooltip", {}, () => [ 14205 re(H(n.tooltip), 1) 14206 ]) 14207 ]), 14208 _: 3 14209 }, 8, [ 14210 "trigger-label" 14211 ])) : M("", true) 14212 ]), 14213 _: 3 14214 }, 8, [ 14215 "id", 14216 "for" 14217 ])) : M("", true), 14218 r.hasSlotDescription ? (m(), x("div", { 14219 key: 1, 14220 id: `${n.inputId}-description`, 14221 class: "n-field__description has-last-margin-0" 14222 }, [ 14223 V(e.$slots, "description", {}, () => [ 14224 O("p", null, H(n.description), 1) 14225 ]) 14226 ], 8, bx)) : M("", true), 14227 r.isHintBeforeInput ? M("", true) : V(e.$slots, "default", fe({ 14228 key: 2 14229 }, r.slotProps, { 14230 dataTestId: "input-before-hint" 14231 })), 14232 r.hasSlotHint ? (m(), x("div", { 14233 key: 3, 14234 id: `${n.inputId}-hint`, 14235 class: R([ 14236 [ 14237 { 14238 [`is-${n.state}`]: n.state 14239 }, 14240 { 14241 "n-field__hint--before-input": r.isHintBeforeInput 14242 } 14243 ], 14244 "n-field__hint has-outro-text is-color-text-light" 14245 ]) 14246 }, [ 14247 r.icon ? (m(), x("div", yx, [ 14248 K(o, { 14249 icon: r.icon, 14250 class: R([ 14251 { 14252 [`is-color-${n.state}`]: n.state 14253 }, 14254 "n-field__hint-icon" 14255 ]), 14256 size: 16, 14257 inline: "", 14258 "include-aria-label": e.$t(`defaultFeedbackLabels.${n.state}`) 14259 }, null, 8, [ 14260 "icon", 14261 "class", 14262 "include-aria-label" 14263 ]) 14264 ])) : M("", true), 14265 O("div", _x, [ 14266 V(e.$slots, "hint", {}, () => [ 14267 O("p", null, H(n.hint), 1) 14268 ]) 14269 ]) 14270 ], 10, vx)) : M("", true), 14271 r.isHintBeforeInput ? V(e.$slots, "default", fe({ 14272 key: 4 14273 }, r.slotProps, { 14274 dataTestId: "input-after-hint" 14275 })) : M("", true), 14276 O("div", Ex, H(n.srDescription), 1) 14277 ]), 14278 _: 3 14279 }, 16, [ 14280 "class" 14281 ]); 14282 } 14283 let Cx; 14284 Rs = te(gx, [ 14285 [ 14286 "render", 14287 kx 14288 ] 14289 ]); 14290 Cx = { 14291 name: "n-affixment", 14292 props: { 14293 position: { 14294 type: String, 14295 default: "right", 14296 validator: (e) => [ 14297 "right", 14298 "left" 14299 ].includes(e) 14300 } 14301 }, 14302 computed: {}, 14303 compatConfig: { 14304 MODE: 3 14305 } 14306 }; 14307 function Ax(e, t, n, i, a, r) { 14308 return m(), x("div", { 14309 class: R([ 14310 `n-affixment--${n.position}`, 14311 "n-affixment" 14312 ]) 14313 }, [ 14314 V(e.$slots, "default") 14315 ], 2); 14316 } 14317 Sx = te(Cx, [ 14318 [ 14319 "render", 14320 Ax 14321 ] 14322 ]); 14323 function wx(e, t) { 14324 typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack)); 14325 } 14326 const Cd = typeof window < "u", qr = (e, t = false) => t ? Symbol.for(e) : Symbol(e), Lx = (e, t, n) => xx({ 14327 l: e, 14328 k: t, 14329 s: n 14330 }), xx = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Ct = (e) => typeof e == "number" && isFinite(e), Ox = (e) => gh(e) === "[object Date]", di = (e) => gh(e) === "[object RegExp]", Us = (e) => We(e) && Object.keys(e).length === 0, Zt = Object.assign, $x = Object.create, gt = (e = null) => $x(e); 14331 let Ad; 14332 const Rn = () => Ad || (Ad = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : gt()); 14333 function Sd(e) { 14334 return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "="); 14335 } 14336 function wd(e) { 14337 return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">"); 14338 } 14339 function Tx(e) { 14340 return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (t, n, i) => `${n}="${wd(i)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (t, n, i) => `${n}='${wd(i)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [ 14341 /(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi, 14342 /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi 14343 ].forEach((t) => { 14344 e = e.replace(t, "$1javascript:"); 14345 }), e; 14346 } 14347 const Ix = Object.prototype.hasOwnProperty; 14348 function bn(e, t) { 14349 return Ix.call(e, t); 14350 } 14351 const At = Array.isArray, dt = (e) => typeof e == "function", Ce = (e) => typeof e == "string", rt = (e) => typeof e == "boolean", Qe = (e) => e !== null && typeof e == "object", Fx = (e) => Qe(e) && dt(e.then) && dt(e.catch), hh = Object.prototype.toString, gh = (e) => hh.call(e), We = (e) => { 14352 if (!Qe(e)) return false;
vendor: 4,336 bytes, lines 14353-14468
14353 const t = Object.getPrototypeOf(e); 14354 return t === null || t.constructor === Object; 14355 }, Nx = (e) => e == null ? "" : At(e) || We(e) && e.toString === hh ? JSON.stringify(e, null, 2) : String(e); 14356 function Dx(e, t = "") { 14357 return e.reduce((n, i, a) => a === 0 ? n + i : n + t + i, ""); 14358 } 14359 function Vs(e) { 14360 let t = e; 14361 return () => ++t; 14362 } 14363 const Oa = (e) => !Qe(e) || At(e); 14364 function ja(e, t) { 14365 if (Oa(e) || Oa(t)) throw new Error("Invalid value"); 14366 const n = [ 14367 { 14368 src: e, 14369 des: t 14370 } 14371 ]; 14372 for (; n.length; ) { 14373 const { src: i, des: a } = n.pop(); 14374 Object.keys(i).forEach((r) => { 14375 r !== "__proto__" && (Qe(i[r]) && !Qe(a[r]) && (a[r] = Array.isArray(i[r]) ? [] : gt()), Oa(a[r]) || Oa(i[r]) ? a[r] = i[r] : n.push({ 14376 src: i[r], 14377 des: a[r] 14378 })); 14379 }); 14380 } 14381 } 14382 function Px(e, t, n) { 14383 return { 14384 line: e, 14385 column: t, 14386 offset: n 14387 }; 14388 } 14389 function ls(e, t, n) { 14390 return { 14391 start: e, 14392 end: t 14393 }; 14394 } 14395 const Bx = /\{([0-9a-zA-Z]+)\}/g; 14396 function bh(e, ...t) { 14397 return t.length === 1 && Mx(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Bx, (n, i) => t.hasOwnProperty(i) ? t[i] : ""); 14398 } 14399 const vh = Object.assign, Ld = (e) => typeof e == "string", Mx = (e) => e !== null && typeof e == "object"; 14400 function yh(e, t = "") { 14401 return e.reduce((n, i, a) => a === 0 ? n + i : n + t + i, ""); 14402 } 14403 const pu = { 14404 USE_MODULO_SYNTAX: 1, 14405 __EXTEND_POINT__: 2 14406 }, Rx = { 14407 [pu.USE_MODULO_SYNTAX]: "Use modulo before '{{0}}'." 14408 }; 14409 function Ux(e, t, ...n) { 14410 const i = bh(Rx[e], ...n || []), a = { 14411 message: String(i), 14412 code: e 14413 }; 14414 return t && (a.location = t), a; 14415 } 14416 const Oe = { 14417 EXPECTED_TOKEN: 1, 14418 INVALID_TOKEN_IN_PLACEHOLDER: 2, 14419 UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3, 14420 UNKNOWN_ESCAPE_SEQUENCE: 4, 14421 INVALID_UNICODE_ESCAPE_SEQUENCE: 5, 14422 UNBALANCED_CLOSING_BRACE: 6, 14423 UNTERMINATED_CLOSING_BRACE: 7, 14424 EMPTY_PLACEHOLDER: 8, 14425 NOT_ALLOW_NEST_PLACEHOLDER: 9, 14426 INVALID_LINKED_FORMAT: 10, 14427 MUST_HAVE_MESSAGES_IN_PLURAL: 11, 14428 UNEXPECTED_EMPTY_LINKED_MODIFIER: 12, 14429 UNEXPECTED_EMPTY_LINKED_KEY: 13, 14430 UNEXPECTED_LEXICAL_ANALYSIS: 14, 14431 UNHANDLED_CODEGEN_NODE_TYPE: 15, 14432 UNHANDLED_MINIFIER_NODE_TYPE: 16, 14433 __EXTEND_POINT__: 17 14434 }, Vx = { 14435 [Oe.EXPECTED_TOKEN]: "Expected token: '{0}'", 14436 [Oe.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'", 14437 [Oe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder", 14438 [Oe.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}", 14439 [Oe.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}", 14440 [Oe.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace", 14441 [Oe.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace", 14442 [Oe.EMPTY_PLACEHOLDER]: "Empty placeholder", 14443 [Oe.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder", 14444 [Oe.INVALID_LINKED_FORMAT]: "Invalid linked format", 14445 [Oe.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages", 14446 [Oe.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier", 14447 [Oe.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key", 14448 [Oe.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'", 14449 [Oe.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'", 14450 [Oe.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'" 14451 }; 14452 function Li(e, t, n = {}) { 14453 const { domain: i, messages: a, args: r } = n, s = bh((a || Vx)[e] || "", ...r || []), o = new SyntaxError(String(s)); 14454 return o.code = e, t && (o.location = t), o.domain = i, o; 14455 } 14456 function Hx(e) { 14457 throw e; 14458 } 14459 const Fn = " ", jx = "\r", qt = ` 14460`, zx = "\u2028", Wx = "\u2029"; 14461 function Gx(e) { 14462 const t = e; 14463 let n = 0, i = 1, a = 1, r = 0; 14464 const s = (A) => t[A] === jx && t[A + 1] === qt, o = (A) => t[A] === qt, l = (A) => t[A] === Wx, u = (A) => t[A] === zx, c = (A) => s(A) || o(A) || l(A) || u(A), d = () => n, p = () => i, b = () => a, h = () => r, _ = (A) => s(A) || l(A) || u(A) ? qt : t[A], C = () => _(n), D = () => _(n + r); 14465 function N() { 14466 return r = 0, c(n) && (i++, a = 0), s(n) && n++, n++, a++, t[n]; 14467 } 14468 function v() {
14469 return s(n + r) && r++, r++, t[n + r]; 14470 } 14471 function y() { 14472 n = 0, i = 1, a = 1, r = 0; 14473 } 14474 function E(A = 0) { 14475 r = A; 14476 } 14477 function k() { 14478 const A = n + r; 14479 for (; A !== n; ) N(); 14480 r = 0; 14481 } 14482 return { 14483 index: d, 14484 line: p, 14485 column: b, 14486 peekOffset: h, 14487 charAt: _, 14488 currentChar: C, 14489 currentPeek: D, 14490 next: N, 14491 peek: v, 14492 reset: y, 14493 resetPeek: E, 14494 skipToPeek: k 14495 }; 14496 } 14497 const Qn = void 0, xd = "'", qx = "tokenizer"; 14498 function Yx(e, t = {}) { 14499 const n = t.location !== false, i = Gx(e), a = () => i.index(), r = () => Px(i.line(), i.column(), i.index()), s = r(), o = a(), l = { 14500 currentType: 14, 14501 offset: o, 14502 startLoc: s, 14503 endLoc: s, 14504 lastType: 14, 14505 lastOffset: o, 14506 lastStartLoc: s, 14507 lastEndLoc: s, 14508 braceNest: 0, 14509 inLinked: false, 14510 text: "" 14511 }, u = () => l, { onError: c } = t; 14512 function d(f, g, F, ...W) { 14513 const S = u(); 14514 if (g.column += F, g.offset += F, c) { 14515 const $ = n ? ls(S.startLoc, g) : null, le = Li(f, $, { 14516 domain: qx, 14517 args: W 14518 }); 14519 c(le); 14520 } 14521 } 14522 function p(f, g, F) { 14523 f.endLoc = r(), f.currentType = g; 14524 const W = { 14525 type: g 14526 }; 14527 return n && (W.loc = ls(f.startLoc, f.endLoc)), F != null && (W.value = F), W; 14528 } 14529 const b = (f) => p(f, 14); 14530 function h(f, g) { 14531 return f.currentChar() === g ? (f.next(), g) : (d(Oe.EXPECTED_TOKEN, r(), 0, g), ""); 14532 } 14533 function _(f) { 14534 let g = ""; 14535 for (; f.currentPeek() === Fn || f.currentPeek() === qt; ) g += f.currentPeek(), f.peek(); 14536 return g; 14537 } 14538 function C(f) { 14539 const g = _(f); 14540 return f.skipToPeek(), g; 14541 } 14542 function D(f) { 14543 if (f === Qn) return false; 14544 const g = f.charCodeAt(0); 14545 return g >= 97 && g <= 122 || g >= 65 && g <= 90 || g === 95; 14546 } 14547 function N(f) { 14548 if (f === Qn) return false; 14549 const g = f.charCodeAt(0); 14550 return g >= 48 && g <= 57; 14551 } 14552 function v(f, g) { 14553 const { currentType: F } = g; 14554 if (F !== 2) return false; 14555 _(f); 14556 const W = D(f.currentPeek()); 14557 return f.resetPeek(), W; 14558 } 14559 function y(f, g) { 14560 const { currentType: F } = g; 14561 if (F !== 2) return false; 14562 _(f); 14563 const W = f.currentPeek() === "-" ? f.peek() : f.currentPeek(), S = N(W); 14564 return f.resetPeek(), S; 14565 } 14566 function E(f, g) { 14567 const { currentType: F } = g; 14568 if (F !== 2) return false; 14569 _(f); 14570 const W = f.currentPeek() === xd; 14571 return f.resetPeek(), W; 14572 } 14573 function k(f, g) { 14574 const { currentType: F } = g; 14575 if (F !== 8) return false; 14576 _(f); 14577 const W = f.currentPeek() === "."; 14578 return f.resetPeek(), W; 14579 } 14580 function A(f, g) { 14581 const { currentType: F } = g; 14582 if (F !== 9) return false; 14583 _(f); 14584 const W = D(f.currentPeek()); 14585 return f.resetPeek(), W; 14586 } 14587 function L(f, g) { 14588 const { currentType: F } = g; 14589 if (!(F === 8 || F === 12)) return false; 14590 _(f); 14591 const W = f.currentPeek() === ":"; 14592 return f.resetPeek(), W; 14593 } 14594 function w(f, g) { 14595 const { currentType: F } = g; 14596 if (F !== 10) return false; 14597 const W = () => { 14598 const $ = f.currentPeek(); 14599 return $ === "{" ? D(f.peek()) : $ === "@" || $ === "%" || $ === "|" || $ === ":" || $ === "." || $ === Fn || !$ ? false : $ === qt ? (f.peek(), W()) : P(f, false); 14600 }, S = W(); 14601 return f.resetPeek(), S; 14602 } 14603 function z(f) { 14604 _(f); 14605 const g = f.currentPeek() === "|"; 14606 return f.resetPeek(), g; 14607 } 14608 function T(f) { 14609 const g = _(f), F = f.currentPeek() === "%" && f.peek() === "{"; 14610 return f.resetPeek(), { 14611 isModulo: F, 14612 hasSpace: g.length > 0 14613 }; 14614 } 14615 function P(f, g = true) { 14616 const F = (S = false, $ = "", le = false) => { 14617 const de = f.currentPeek(); 14618 return de === "{" ? $ === "%" ? false : S : de === "@" || !de ? $ === "%" ? true : S : de === "%" ? (f.peek(), F(S, "%", true)) : de === "|" ? $ === "%" || le ? true : !($ === Fn || $ === qt) : de === Fn ? (f.peek(), F(true, Fn, le)) : de === qt ? (f.peek(), F(true, qt, le)) : true; 14619 }, W = F(); 14620 return g && f.resetPeek(), W; 14621 } 14622 function G(f, g) { 14623 const F = f.currentChar(); 14624 return F === Qn ? Qn : g(F) ? (f.next(), F) : null; 14625 } 14626 function X(f) { 14627 const g = f.charCodeAt(0); 14628 return g >= 97 && g <= 122 || g >= 65 && g <= 90 || g >= 48 && g <= 57 || g === 95 || g === 36; 14629 } 14630 function Y(f) { 14631 return G(f, X); 14632 } 14633 function q(f) { 14634 const g = f.charCodeAt(0); 14635 return g >= 97 && g <= 122 || g >= 65 && g <= 90 || g >= 48 && g <= 57 || g === 95 || g === 36 || g === 45; 14636 } 14637 function J(f) { 14638 return G(f, q); 14639 } 14640 function Z(f) { 14641 const g = f.charCodeAt(0); 14642 return g >= 48 && g <= 57; 14643 } 14644 function se(f) { 14645 return G(f, Z); 14646 } 14647 function Q(f) { 14648 const g = f.charCodeAt(0); 14649 return g >= 48 && g <= 57 || g >= 65 && g <= 70 || g >= 97 && g <= 102; 14650 } 14651 function oe(f) { 14652 return G(f, Q); 14653 } 14654 function ce(f) { 14655 let g = "", F = ""; 14656 for (; g = se(f); ) F += g; 14657 return F; 14658 } 14659 function be(f) { 14660 C(f); 14661 const g = f.currentChar(); 14662 return g !== "%" && d(Oe.EXPECTED_TOKEN, r(), 0, g), f.next(), "%"; 14663 } 14664 function ye(f) { 14665 let g = ""; 14666 for (; ; ) { 14667 const F = f.currentChar(); 14668 if (F === "{" || F === "}" || F === "@" || F === "|" || !F) break; 14669 if (F === "%") if (P(f)) g += F, f.next(); 14670 else break; 14671 else if (F === Fn || F === qt) if (P(f)) g += F, f.next(); 14672 else { 14673 if (z(f)) break; 14674 g += F, f.next(); 14675 } 14676 else g += F, f.next(); 14677 } 14678 return g; 14679 } 14680 function ke(f) { 14681 C(f); 14682 let g = "", F = ""; 14683 for (; g = J(f); ) F += g; 14684 return f.currentChar() === Qn && d(Oe.UNTERMINATED_CLOSING_BRACE, r(), 0), F; 14685 } 14686 function Ae(f) { 14687 C(f); 14688 let g = ""; 14689 return f.currentChar() === "-" ? (f.next(), g += `-${ce(f)}`) : g += ce(f), f.currentChar() === Qn && d(Oe.UNTERMINATED_CLOSING_BRACE, r(), 0), g; 14690 } 14691 function _e(f) { 14692 return f !== xd && f !== qt; 14693 } 14694 function Te(f) { 14695 C(f), h(f, "'"); 14696 let g = "", F = ""; 14697 for (; g = G(f, _e); ) g === "\\" ? F += Ee(f) : F += g; 14698 const W = f.currentChar(); 14699 return W === qt || W === Qn ? (d(Oe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), W === qt && (f.next(), h(f, "'")), F) : (h(f, "'"), F); 14700 } 14701 function Ee(f) { 14702 const g = f.currentChar(); 14703 switch (g) { 14704 case "\\":
vendor: 18,905 bytes, lines 14705-15297
14705 case "'": 14706 return f.next(), `\\${g}`; 14707 case "u": 14708 return Le(f, g, 4); 14709 case "U": 14710 return Le(f, g, 6); 14711 default: 14712 return d(Oe.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, g), ""; 14713 } 14714 } 14715 function Le(f, g, F) { 14716 h(f, g); 14717 let W = ""; 14718 for (let S = 0; S < F; S++) { 14719 const $ = oe(f); 14720 if (!$) { 14721 d(Oe.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${g}${W}${f.currentChar()}`); 14722 break; 14723 } 14724 W += $; 14725 } 14726 return `\\${g}${W}`; 14727 } 14728 function Be(f) { 14729 return f !== "{" && f !== "}" && f !== Fn && f !== qt; 14730 } 14731 function Ie(f) { 14732 C(f); 14733 let g = "", F = ""; 14734 for (; g = G(f, Be); ) F += g; 14735 return F; 14736 } 14737 function Ve(f) { 14738 let g = "", F = ""; 14739 for (; g = Y(f); ) F += g; 14740 return F; 14741 } 14742 function B(f) { 14743 const g = (F) => { 14744 const W = f.currentChar(); 14745 return W === "{" || W === "%" || W === "@" || W === "|" || W === "(" || W === ")" || !W || W === Fn ? F : (F += W, f.next(), g(F)); 14746 }; 14747 return g(""); 14748 } 14749 function ie(f) { 14750 C(f); 14751 const g = h(f, "|"); 14752 return C(f), g; 14753 } 14754 function Fe(f, g) { 14755 let F = null; 14756 switch (f.currentChar()) { 14757 case "{": 14758 return g.braceNest >= 1 && d(Oe.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), f.next(), F = p(g, 2, "{"), C(f), g.braceNest++, F; 14759 case "}": 14760 return g.braceNest > 0 && g.currentType === 2 && d(Oe.EMPTY_PLACEHOLDER, r(), 0), f.next(), F = p(g, 3, "}"), g.braceNest--, g.braceNest > 0 && C(f), g.inLinked && g.braceNest === 0 && (g.inLinked = false), F; 14761 case "@": 14762 return g.braceNest > 0 && d(Oe.UNTERMINATED_CLOSING_BRACE, r(), 0), F = qe(f, g) || b(g), g.braceNest = 0, F; 14763 default: { 14764 let W = true, S = true, $ = true; 14765 if (z(f)) return g.braceNest > 0 && d(Oe.UNTERMINATED_CLOSING_BRACE, r(), 0), F = p(g, 1, ie(f)), g.braceNest = 0, g.inLinked = false, F; 14766 if (g.braceNest > 0 && (g.currentType === 5 || g.currentType === 6 || g.currentType === 7)) return d(Oe.UNTERMINATED_CLOSING_BRACE, r(), 0), g.braceNest = 0, He(f, g); 14767 if (W = v(f, g)) return F = p(g, 5, ke(f)), C(f), F; 14768 if (S = y(f, g)) return F = p(g, 6, Ae(f)), C(f), F; 14769 if ($ = E(f, g)) return F = p(g, 7, Te(f)), C(f), F; 14770 if (!W && !S && !$) return F = p(g, 13, Ie(f)), d(Oe.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, F.value), C(f), F; 14771 break; 14772 } 14773 } 14774 return F; 14775 } 14776 function qe(f, g) { 14777 const { currentType: F } = g; 14778 let W = null; 14779 const S = f.currentChar(); 14780 switch ((F === 8 || F === 9 || F === 12 || F === 10) && (S === qt || S === Fn) && d(Oe.INVALID_LINKED_FORMAT, r(), 0), S) { 14781 case "@": 14782 return f.next(), W = p(g, 8, "@"), g.inLinked = true, W; 14783 case ".": 14784 return C(f), f.next(), p(g, 9, "."); 14785 case ":": 14786 return C(f), f.next(), p(g, 10, ":"); 14787 default: 14788 return z(f) ? (W = p(g, 1, ie(f)), g.braceNest = 0, g.inLinked = false, W) : k(f, g) || L(f, g) ? (C(f), qe(f, g)) : A(f, g) ? (C(f), p(g, 12, Ve(f))) : w(f, g) ? (C(f), S === "{" ? Fe(f, g) || W : p(g, 11, B(f))) : (F === 8 && d(Oe.INVALID_LINKED_FORMAT, r(), 0), g.braceNest = 0, g.inLinked = false, He(f, g)); 14789 } 14790 } 14791 function He(f, g) { 14792 let F = { 14793 type: 14 14794 }; 14795 if (g.braceNest > 0) return Fe(f, g) || b(g); 14796 if (g.inLinked) return qe(f, g) || b(g); 14797 switch (f.currentChar()) { 14798 case "{": 14799 return Fe(f, g) || b(g); 14800 case "}": 14801 return d(Oe.UNBALANCED_CLOSING_BRACE, r(), 0), f.next(), p(g, 3, "}"); 14802 case "@": 14803 return qe(f, g) || b(g); 14804 default: { 14805 if (z(f)) return F = p(g, 1, ie(f)), g.braceNest = 0, g.inLinked = false, F; 14806 const { isModulo: W, hasSpace: S } = T(f); 14807 if (W) return S ? p(g, 0, ye(f)) : p(g, 4, be(f)); 14808 if (P(f)) return p(g, 0, ye(f)); 14809 break; 14810 } 14811 } 14812 return F; 14813 } 14814 function xt() { 14815 const { currentType: f, offset: g, startLoc: F, endLoc: W } = l; 14816 return l.lastType = f, l.lastOffset = g, l.lastStartLoc = F, l.lastEndLoc = W, l.offset = a(), l.startLoc = r(), i.currentChar() === Qn ? p(l, 14) : He(i, l); 14817 } 14818 return { 14819 nextToken: xt, 14820 currentOffset: a, 14821 currentPosition: r, 14822 context: u 14823 }; 14824 } 14825 const Kx = "parser", Xx = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g; 14826 function Jx(e, t, n) { 14827 switch (e) { 14828 case "\\\\": 14829 return "\\"; 14830 case "\\'": 14831 return "'"; 14832 default: { 14833 const i = parseInt(t || n, 16); 14834 return i <= 55295 || i >= 57344 ? String.fromCodePoint(i) : "\uFFFD"; 14835 } 14836 } 14837 } 14838 function Qx(e = {}) { 14839 const t = e.location !== false, { onError: n, onWarn: i } = e; 14840 function a(v, y, E, k, ...A) { 14841 const L = v.currentPosition(); 14842 if (L.offset += k, L.column += k, n) { 14843 const w = t ? ls(E, L) : null, z = Li(y, w, { 14844 domain: Kx, 14845 args: A 14846 }); 14847 n(z); 14848 } 14849 } 14850 function r(v, y, E, k, ...A) { 14851 const L = v.currentPosition(); 14852 if (L.offset += k, L.column += k, i) { 14853 const w = t ? ls(E, L) : null; 14854 i(Ux(y, w, A)); 14855 } 14856 } 14857 function s(v, y, E) { 14858 const k = { 14859 type: v 14860 }; 14861 return t && (k.start = y, k.end = y, k.loc = { 14862 start: E, 14863 end: E 14864 }), k; 14865 } 14866 function o(v, y, E, k) { 14867 t && (v.end = y, v.loc && (v.loc.end = E)); 14868 } 14869 function l(v, y) { 14870 const E = v.context(), k = s(3, E.offset, E.startLoc); 14871 return k.value = y, o(k, v.currentOffset(), v.currentPosition()), k; 14872 } 14873 function u(v, y) { 14874 const E = v.context(), { lastOffset: k, lastStartLoc: A } = E, L = s(5, k, A); 14875 return L.index = parseInt(y, 10), v.nextToken(), o(L, v.currentOffset(), v.currentPosition()), L; 14876 } 14877 function c(v, y, E) { 14878 const k = v.context(), { lastOffset: A, lastStartLoc: L } = k, w = s(4, A, L); 14879 return w.key = y, E === true && (w.modulo = true), v.nextToken(), o(w, v.currentOffset(), v.currentPosition()), w; 14880 } 14881 function d(v, y) { 14882 const E = v.context(), { lastOffset: k, lastStartLoc: A } = E, L = s(9, k, A); 14883 return L.value = y.replace(Xx, Jx), v.nextToken(), o(L, v.currentOffset(), v.currentPosition()), L; 14884 } 14885 function p(v) { 14886 const y = v.nextToken(), E = v.context(), { lastOffset: k, lastStartLoc: A } = E, L = s(8, k, A); 14887 return y.type !== 12 ? (a(v, Oe.UNEXPECTED_EMPTY_LINKED_MODIFIER, E.lastStartLoc, 0), L.value = "", o(L, k, A), { 14888 nextConsumeToken: y, 14889 node: L 14890 }) : (y.value == null && a(v, Oe.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, cn(y)), L.value = y.value || "", o(L, v.currentOffset(), v.currentPosition()), { 14891 node: L 14892 }); 14893 } 14894 function b(v, y) { 14895 const E = v.context(), k = s(7, E.offset, E.startLoc); 14896 return k.value = y, o(k, v.currentOffset(), v.currentPosition()), k; 14897 } 14898 function h(v) { 14899 const y = v.context(), E = s(6, y.offset, y.startLoc); 14900 let k = v.nextToken(); 14901 if (k.type === 9) { 14902 const A = p(v); 14903 E.modifier = A.node, k = A.nextConsumeToken || v.nextToken(); 14904 } 14905 switch (k.type !== 10 && a(v, Oe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, cn(k)), k = v.nextToken(), k.type === 2 && (k = v.nextToken()), k.type) { 14906 case 11: 14907 k.value == null && a(v, Oe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, cn(k)), E.key = b(v, k.value || ""); 14908 break; 14909 case 5: 14910 k.value == null && a(v, Oe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, cn(k)), E.key = c(v, k.value || ""); 14911 break; 14912 case 6: 14913 k.value == null && a(v, Oe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, cn(k)), E.key = u(v, k.value || ""); 14914 break; 14915 case 7: 14916 k.value == null && a(v, Oe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, cn(k)), E.key = d(v, k.value || ""); 14917 break; 14918 default: { 14919 a(v, Oe.UNEXPECTED_EMPTY_LINKED_KEY, y.lastStartLoc, 0); 14920 const A = v.context(), L = s(7, A.offset, A.startLoc); 14921 return L.value = "", o(L, A.offset, A.startLoc), E.key = L, o(E, A.offset, A.startLoc), { 14922 nextConsumeToken: k, 14923 node: E 14924 }; 14925 } 14926 } 14927 return o(E, v.currentOffset(), v.currentPosition()), { 14928 node: E 14929 }; 14930 } 14931 function _(v) { 14932 const y = v.context(), E = y.currentType === 1 ? v.currentOffset() : y.offset, k = y.currentType === 1 ? y.endLoc : y.startLoc, A = s(2, E, k); 14933 A.items = []; 14934 let L = null, w = null; 14935 do { 14936 const P = L || v.nextToken(); 14937 switch (L = null, P.type) { 14938 case 0: 14939 P.value == null && a(v, Oe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, cn(P)), A.items.push(l(v, P.value || "")); 14940 break; 14941 case 6: 14942 P.value == null && a(v, Oe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, cn(P)), A.items.push(u(v, P.value || "")); 14943 break; 14944 case 4: 14945 w = true; 14946 break; 14947 case 5: 14948 P.value == null && a(v, Oe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, cn(P)), A.items.push(c(v, P.value || "", !!w)), w && (r(v, pu.USE_MODULO_SYNTAX, y.lastStartLoc, 0, cn(P)), w = null); 14949 break; 14950 case 7: 14951 P.value == null && a(v, Oe.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, cn(P)), A.items.push(d(v, P.value || "")); 14952 break; 14953 case 8: { 14954 const G = h(v); 14955 A.items.push(G.node), L = G.nextConsumeToken || null; 14956 break; 14957 } 14958 } 14959 } while (y.currentType !== 14 && y.currentType !== 1); 14960 const z = y.currentType === 1 ? y.lastOffset : v.currentOffset(), T = y.currentType === 1 ? y.lastEndLoc : v.currentPosition(); 14961 return o(A, z, T), A; 14962 } 14963 function C(v, y, E, k) { 14964 const A = v.context(); 14965 let L = k.items.length === 0; 14966 const w = s(1, y, E); 14967 w.cases = [], w.cases.push(k); 14968 do { 14969 const z = _(v); 14970 L || (L = z.items.length === 0), w.cases.push(z); 14971 } while (A.currentType !== 14); 14972 return L && a(v, Oe.MUST_HAVE_MESSAGES_IN_PLURAL, E, 0), o(w, v.currentOffset(), v.currentPosition()), w; 14973 } 14974 function D(v) { 14975 const y = v.context(), { offset: E, startLoc: k } = y, A = _(v); 14976 return y.currentType === 14 ? A : C(v, E, k, A); 14977 } 14978 function N(v) { 14979 const y = Yx(v, vh({}, e)), E = y.context(), k = s(0, E.offset, E.startLoc); 14980 return t && k.loc && (k.loc.source = v), k.body = D(y), e.onCacheKey && (k.cacheKey = e.onCacheKey(v)), E.currentType !== 14 && a(y, Oe.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, v[E.offset] || ""), o(k, y.currentOffset(), y.currentPosition()), k; 14981 } 14982 return { 14983 parse: N 14984 }; 14985 } 14986 function cn(e) { 14987 if (e.type === 14) return "EOF"; 14988 const t = (e.value || "").replace(/\r?\n/gu, "\\n"); 14989 return t.length > 10 ? t.slice(0, 9) + "\u2026" : t; 14990 } 14991 function Zx(e, t = {}) { 14992 const n = { 14993 ast: e, 14994 helpers: /* @__PURE__ */ new Set() 14995 }; 14996 return { 14997 context: () => n, 14998 helper: (i) => (n.helpers.add(i), i) 14999 }; 15000 } 15001 function Od(e, t) { 15002 for (let n = 0; n < e.length; n++) fu(e[n], t); 15003 } 15004 function fu(e, t) { 15005 switch (e.type) { 15006 case 1: 15007 Od(e.cases, t), t.helper("plural"); 15008 break; 15009 case 2: 15010 Od(e.items, t); 15011 break; 15012 case 6: { 15013 fu(e.key, t), t.helper("linked"), t.helper("type"); 15014 break; 15015 } 15016 case 5: 15017 t.helper("interpolate"), t.helper("list"); 15018 break; 15019 case 4: 15020 t.helper("interpolate"), t.helper("named"); 15021 break; 15022 } 15023 } 15024 function eO(e, t = {}) { 15025 const n = Zx(e); 15026 n.helper("normalize"), e.body && fu(e.body, n); 15027 const i = n.context(); 15028 e.helpers = Array.from(i.helpers); 15029 } 15030 function tO(e) { 15031 const t = e.body; 15032 return t.type === 2 ? $d(t) : t.cases.forEach((n) => $d(n)), e; 15033 } 15034 function $d(e) { 15035 if (e.items.length === 1) { 15036 const t = e.items[0]; 15037 (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value); 15038 } else { 15039 const t = []; 15040 for (let n = 0; n < e.items.length; n++) { 15041 const i = e.items[n]; 15042 if (!(i.type === 3 || i.type === 9) || i.value == null) break; 15043 t.push(i.value); 15044 } 15045 if (t.length === e.items.length) { 15046 e.static = yh(t); 15047 for (let n = 0; n < e.items.length; n++) { 15048 const i = e.items[n]; 15049 (i.type === 3 || i.type === 9) && delete i.value; 15050 } 15051 } 15052 } 15053 } 15054 const nO = "minifier"; 15055 function Jr(e) { 15056 switch (e.t = e.type, e.type) { 15057 case 0: { 15058 const t = e; 15059 Jr(t.body), t.b = t.body, delete t.body; 15060 break; 15061 } 15062 case 1: { 15063 const t = e, n = t.cases; 15064 for (let i = 0; i < n.length; i++) Jr(n[i]); 15065 t.c = n, delete t.cases; 15066 break; 15067 } 15068 case 2: { 15069 const t = e, n = t.items; 15070 for (let i = 0; i < n.length; i++) Jr(n[i]); 15071 t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static); 15072 break; 15073 } 15074 case 3: 15075 case 9: 15076 case 8: 15077 case 7: { 15078 const t = e; 15079 t.value && (t.v = t.value, delete t.value); 15080 break; 15081 } 15082 case 6: { 15083 const t = e; 15084 Jr(t.key), t.k = t.key, delete t.key, t.modifier && (Jr(t.modifier), t.m = t.modifier, delete t.modifier); 15085 break; 15086 } 15087 case 5: { 15088 const t = e; 15089 t.i = t.index, delete t.index; 15090 break; 15091 } 15092 case 4: { 15093 const t = e; 15094 t.k = t.key, delete t.key; 15095 break; 15096 } 15097 default: 15098 throw Li(Oe.UNHANDLED_MINIFIER_NODE_TYPE, null, { 15099 domain: nO, 15100 args: [ 15101 e.type 15102 ] 15103 }); 15104 } 15105 delete e.type; 15106 } 15107 const rO = "parser"; 15108 function iO(e, t) { 15109 const { filename: n, breakLineCode: i, needIndent: a } = t, r = t.location !== false, s = { 15110 filename: n, 15111 code: "", 15112 column: 1, 15113 line: 1, 15114 offset: 0, 15115 map: void 0, 15116 breakLineCode: i, 15117 needIndent: a, 15118 indentLevel: 0 15119 }; 15120 r && e.loc && (s.source = e.loc.source); 15121 const o = () => s; 15122 function l(b, h) { 15123 s.code += b; 15124 } 15125 function u(b, h = true) { 15126 const _ = h ? i : ""; 15127 l(a ? _ + " ".repeat(b) : _); 15128 } 15129 function c(b = true) { 15130 const h = ++s.indentLevel; 15131 b && u(h); 15132 } 15133 function d(b = true) { 15134 const h = --s.indentLevel; 15135 b && u(h); 15136 } 15137 function p() { 15138 u(s.indentLevel); 15139 } 15140 return { 15141 context: o, 15142 push: l, 15143 indent: c, 15144 deindent: d, 15145 newline: p, 15146 helper: (b) => `_${b}`, 15147 needIndent: () => s.needIndent 15148 }; 15149 } 15150 function aO(e, t) { 15151 const { helper: n } = e; 15152 e.push(`${n("linked")}(`), pi(e, t.key), t.modifier ? (e.push(", "), pi(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")"); 15153 } 15154 function sO(e, t) { 15155 const { helper: n, needIndent: i } = e; 15156 e.push(`${n("normalize")}([`), e.indent(i()); 15157 const a = t.items.length; 15158 for (let r = 0; r < a && (pi(e, t.items[r]), r !== a - 1); r++) e.push(", "); 15159 e.deindent(i()), e.push("])"); 15160 } 15161 function oO(e, t) { 15162 const { helper: n, needIndent: i } = e; 15163 if (t.cases.length > 1) { 15164 e.push(`${n("plural")}([`), e.indent(i()); 15165 const a = t.cases.length; 15166 for (let r = 0; r < a && (pi(e, t.cases[r]), r !== a - 1); r++) e.push(", "); 15167 e.deindent(i()), e.push("])"); 15168 } 15169 } 15170 function lO(e, t) { 15171 t.body ? pi(e, t.body) : e.push("null"); 15172 } 15173 function pi(e, t) { 15174 const { helper: n } = e; 15175 switch (t.type) { 15176 case 0: 15177 lO(e, t); 15178 break; 15179 case 1: 15180 oO(e, t); 15181 break; 15182 case 2: 15183 sO(e, t); 15184 break; 15185 case 6: 15186 aO(e, t); 15187 break; 15188 case 8: 15189 e.push(JSON.stringify(t.value), t); 15190 break; 15191 case 7: 15192 e.push(JSON.stringify(t.value), t); 15193 break; 15194 case 5: 15195 e.push(`${n("interpolate")}(${n("list")}(${t.index}))`, t); 15196 break; 15197 case 4: 15198 e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`, t); 15199 break; 15200 case 9: 15201 e.push(JSON.stringify(t.value), t); 15202 break; 15203 case 3: 15204 e.push(JSON.stringify(t.value), t); 15205 break; 15206 default: 15207 throw Li(Oe.UNHANDLED_CODEGEN_NODE_TYPE, null, { 15208 domain: rO, 15209 args: [ 15210 t.type 15211 ] 15212 }); 15213 } 15214 } 15215 const uO = (e, t = {}) => { 15216 const n = Ld(t.mode) ? t.mode : "normal", i = Ld(t.filename) ? t.filename : "message.intl"; 15217 t.sourceMap; 15218 const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : ` 15219`, r = t.needIndent ? t.needIndent : n !== "arrow", s = e.helpers || [], o = iO(e, { 15220 filename: i, 15221 breakLineCode: a, 15222 needIndent: r 15223 }); 15224 o.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), o.indent(r), s.length > 0 && (o.push(`const { ${yh(s.map((c) => `${c}: _${c}`), ", ")} } = ctx`), o.newline()), o.push("return "), pi(o, e), o.deindent(r), o.push("}"), delete e.helpers; 15225 const { code: l, map: u } = o.context(); 15226 return { 15227 ast: e, 15228 code: l, 15229 map: u ? u.toJSON() : void 0 15230 }; 15231 }; 15232 function cO(e, t = {}) { 15233 const n = vh({}, t), i = !!n.jit, a = !!n.minify, r = n.optimize == null ? true : n.optimize, s = Qx(n).parse(e); 15234 return i ? (r && tO(s), a && Jr(s), { 15235 ast: s, 15236 code: "" 15237 }) : (eO(s, n), uO(s, n)); 15238 } 15239 function dO() { 15240 typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Rn().__INTLIFY_PROD_DEVTOOLS__ = false), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (Rn().__INTLIFY_JIT_COMPILATION__ = false), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Rn().__INTLIFY_DROP_MESSAGE_COMPILER__ = false); 15241 } 15242 function xn(e) { 15243 return Qe(e) && mu(e) === 0 && (bn(e, "b") || bn(e, "body")); 15244 } 15245 const _h = [ 15246 "b", 15247 "body" 15248 ]; 15249 function pO(e) { 15250 return gr(e, _h); 15251 } 15252 const Eh = [ 15253 "c", 15254 "cases" 15255 ]; 15256 function fO(e) { 15257 return gr(e, Eh, []); 15258 } 15259 const kh = [ 15260 "s", 15261 "static" 15262 ]; 15263 function mO(e) { 15264 return gr(e, kh); 15265 } 15266 const Ch = [ 15267 "i", 15268 "items" 15269 ]; 15270 function hO(e) { 15271 return gr(e, Ch, []); 15272 } 15273 const Ah = [ 15274 "t", 15275 "type" 15276 ]; 15277 function mu(e) { 15278 return gr(e, Ah); 15279 } 15280 const Sh = [ 15281 "v", 15282 "value" 15283 ]; 15284 function $a(e, t) { 15285 const n = gr(e, Sh); 15286 if (n != null) return n; 15287 throw ia(t); 15288 } 15289 const wh = [ 15290 "m", 15291 "modifier" 15292 ]; 15293 function gO(e) { 15294 return gr(e, wh); 15295 } 15296 const Lh = [ 15297 "k",
vendor: 5,143 bytes, lines 15298-15545
15298 "key" 15299 ]; 15300 function bO(e) { 15301 const t = gr(e, Lh); 15302 if (t) return t; 15303 throw ia(6); 15304 } 15305 function gr(e, t, n) { 15306 for (let i = 0; i < t.length; i++) { 15307 const a = t[i]; 15308 if (bn(e, a) && e[a] != null) return e[a]; 15309 } 15310 return n; 15311 } 15312 const xh = [ 15313 ..._h, 15314 ...Eh, 15315 ...kh, 15316 ...Ch, 15317 ...Lh, 15318 ...wh, 15319 ...Sh, 15320 ...Ah 15321 ]; 15322 function ia(e) { 15323 return new Error(`unhandled node type: ${e}`); 15324 } 15325 const br = []; 15326 br[0] = { 15327 w: [ 15328 0 15329 ], 15330 i: [ 15331 3, 15332 0 15333 ], 15334 "[": [ 15335 4 15336 ], 15337 o: [ 15338 7 15339 ] 15340 }; 15341 br[1] = { 15342 w: [ 15343 1 15344 ], 15345 ".": [ 15346 2 15347 ], 15348 "[": [ 15349 4 15350 ], 15351 o: [ 15352 7 15353 ] 15354 }; 15355 br[2] = { 15356 w: [ 15357 2 15358 ], 15359 i: [ 15360 3, 15361 0 15362 ], 15363 0: [ 15364 3, 15365 0 15366 ] 15367 }; 15368 br[3] = { 15369 i: [ 15370 3, 15371 0 15372 ], 15373 0: [ 15374 3, 15375 0 15376 ], 15377 w: [ 15378 1, 15379 1 15380 ], 15381 ".": [ 15382 2, 15383 1 15384 ], 15385 "[": [ 15386 4, 15387 1 15388 ], 15389 o: [ 15390 7, 15391 1 15392 ] 15393 }; 15394 br[4] = { 15395 "'": [ 15396 5, 15397 0 15398 ], 15399 '"': [ 15400 6, 15401 0 15402 ], 15403 "[": [ 15404 4, 15405 2 15406 ], 15407 "]": [ 15408 1, 15409 3 15410 ], 15411 o: 8, 15412 l: [ 15413 4, 15414 0 15415 ] 15416 }; 15417 br[5] = { 15418 "'": [ 15419 4, 15420 0 15421 ], 15422 o: 8, 15423 l: [ 15424 5, 15425 0 15426 ] 15427 }; 15428 br[6] = { 15429 '"': [ 15430 4, 15431 0 15432 ], 15433 o: 8, 15434 l: [ 15435 6, 15436 0 15437 ] 15438 }; 15439 const vO = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/; 15440 function yO(e) { 15441 return vO.test(e); 15442 } 15443 function _O(e) { 15444 const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1); 15445 return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e; 15446 } 15447 function EO(e) { 15448 if (e == null) return "o"; 15449 switch (e.charCodeAt(0)) { 15450 case 91: 15451 case 93: 15452 case 46: 15453 case 34: 15454 case 39: 15455 return e; 15456 case 95: 15457 case 36: 15458 case 45: 15459 return "i"; 15460 case 9: 15461 case 10: 15462 case 13: 15463 case 160: 15464 case 65279: 15465 case 8232: 15466 case 8233: 15467 return "w"; 15468 } 15469 return "i"; 15470 } 15471 function kO(e) { 15472 const t = e.trim(); 15473 return e.charAt(0) === "0" && isNaN(parseInt(e)) ? false : yO(t) ? _O(t) : "*" + t; 15474 } 15475 function CO(e) { 15476 const t = []; 15477 let n = -1, i = 0, a = 0, r, s, o, l, u, c, d; 15478 const p = []; 15479 p[0] = () => { 15480 s === void 0 ? s = o : s += o; 15481 }, p[1] = () => { 15482 s !== void 0 && (t.push(s), s = void 0); 15483 }, p[2] = () => { 15484 p[0](), a++; 15485 }, p[3] = () => { 15486 if (a > 0) a--, i = 4, p[0](); 15487 else { 15488 if (a = 0, s === void 0 || (s = kO(s), s === false)) return false; 15489 p[1](); 15490 } 15491 }; 15492 function b() { 15493 const h = e[n + 1]; 15494 if (i === 5 && h === "'" || i === 6 && h === '"') return n++, o = "\\" + h, p[0](), true; 15495 } 15496 for (; i !== null; ) if (n++, r = e[n], !(r === "\\" && b())) { 15497 if (l = EO(r), d = br[i], u = d[l] || d.l || 8, u === 8 || (i = u[0], u[1] !== void 0 && (c = p[u[1]], c && (o = r, c() === false)))) return; 15498 if (i === 7) return t; 15499 } 15500 } 15501 const Td = /* @__PURE__ */ new Map(); 15502 function AO(e, t) { 15503 return Qe(e) ? e[t] : null; 15504 } 15505 function SO(e, t) { 15506 if (!Qe(e)) return null; 15507 let n = Td.get(t); 15508 if (n || (n = CO(t), n && Td.set(t, n)), !n) return null; 15509 const i = n.length; 15510 let a = e, r = 0; 15511 for (; r < i; ) { 15512 const s = n[r]; 15513 if (xh.includes(s) && xn(a)) return null; 15514 const o = a[s]; 15515 if (o === void 0 || dt(a)) return null; 15516 a = o, r++; 15517 } 15518 return a; 15519 } 15520 const wO = (e) => e, LO = (e) => "", xO = "text", OO = (e) => e.length === 0 ? "" : Dx(e), $O = Nx; 15521 function Id(e, t) { 15522 return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0; 15523 } 15524 function TO(e) { 15525 const t = Ct(e.pluralIndex) ? e.pluralIndex : -1; 15526 return e.named && (Ct(e.named.count) || Ct(e.named.n)) ? Ct(e.named.count) ? e.named.count : Ct(e.named.n) ? e.named.n : t : t; 15527 } 15528 function IO(e, t) { 15529 t.count || (t.count = e), t.n || (t.n = e); 15530 } 15531 function FO(e = {}) { 15532 const t = e.locale, n = TO(e), i = Qe(e.pluralRules) && Ce(t) && dt(e.pluralRules[t]) ? e.pluralRules[t] : Id, a = Qe(e.pluralRules) && Ce(t) && dt(e.pluralRules[t]) ? Id : void 0, r = (C) => C[i(n, C.length, a)], s = e.list || [], o = (C) => s[C], l = e.named || gt(); 15533 Ct(e.pluralIndex) && IO(n, l); 15534 const u = (C) => l[C]; 15535 function c(C) { 15536 return (dt(e.messages) ? e.messages(C) : Qe(e.messages) ? e.messages[C] : false) || (e.parent ? e.parent.message(C) : LO); 15537 } 15538 const d = (C) => e.modifiers ? e.modifiers[C] : wO, p = We(e.processor) && dt(e.processor.normalize) ? e.processor.normalize : OO, b = We(e.processor) && dt(e.processor.interpolate) ? e.processor.interpolate : $O, h = We(e.processor) && Ce(e.processor.type) ? e.processor.type : xO, _ = { 15539 list: o, 15540 named: u, 15541 plural: r, 15542 linked: (C, ...D) => { 15543 const [N, v] = D; 15544 let y = "text", E = ""; 15545 D.length === 1 ? Qe(N) ? (E = N.modifier || E, y = N.type || y) : Ce(N) && (E = N || E) : D.length === 2 && (Ce(N) && (E = N || E), Ce(v) && (y = v || y));
15546 const k = c(C)(_), A = y === "vnode" && At(k) && E ? k[0] : k; 15547 return E ? d(E)(A, y) : A; 15548 }, 15549 message: c, 15550 type: h, 15551 interpolate: b, 15552 normalize: p, 15553 values: Zt(gt(), s, l) 15554 }; 15555 return _; 15556 } 15557 let aa = null; 15558 function NO(e) { 15559 aa = e; 15560 } 15561 function DO(e, t, n) { 15562 aa && aa.emit("i18n:init", { 15563 timestamp: Date.now(), 15564 i18n: e, 15565 version: t, 15566 meta: n 15567 }); 15568 } 15569 const PO = BO("function:translate"); 15570 function BO(e) { 15571 return (t) => aa && aa.emit(e, t); 15572 } 15573 const MO = pu.__EXTEND_POINT__, Ar = Vs(MO), RO = { 15574 FALLBACK_TO_TRANSLATE: Ar(), 15575 CANNOT_FORMAT_NUMBER: Ar(), 15576 FALLBACK_TO_NUMBER_FORMAT: Ar(), 15577 CANNOT_FORMAT_DATE: Ar(), 15578 FALLBACK_TO_DATE_FORMAT: Ar(), 15579 EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: Ar(), 15580 __EXTEND_POINT__: Ar() 15581 }, Oh = Oe.__EXTEND_POINT__, Sr = Vs(Oh), vn = { 15582 INVALID_ARGUMENT: Oh, 15583 INVALID_DATE_ARGUMENT: Sr(), 15584 INVALID_ISO_DATE_ARGUMENT: Sr(), 15585 NOT_SUPPORT_NON_STRING_MESSAGE: Sr(), 15586 NOT_SUPPORT_LOCALE_PROMISE_VALUE: Sr(), 15587 NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: Sr(), 15588 NOT_SUPPORT_LOCALE_TYPE: Sr(),
15589 __EXTEND_POINT__: Sr() 15590 }; 15591 function An(e) { 15592 return Li(e, null, void 0); 15593 } 15594 function hu(e, t) { 15595 return t.locale != null ? Fd(t.locale) : Fd(e.locale); 15596 } 15597 let ho; 15598 function Fd(e) { 15599 if (Ce(e)) return e; 15600 if (dt(e)) { 15601 if (e.resolvedOnce && ho != null) return ho; 15602 if (e.constructor.name === "Function") { 15603 const t = e(); 15604 if (Fx(t)) throw An(vn.NOT_SUPPORT_LOCALE_PROMISE_VALUE); 15605 return ho = t; 15606 } else throw An(vn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION); 15607 } else throw An(vn.NOT_SUPPORT_LOCALE_TYPE); 15608 } 15609 function UO(e, t, n) { 15610 return [ 15611 .../* @__PURE__ */ new Set([ 15612 n, 15613 ...At(t) ? t : Qe(t) ? Object.keys(t) : Ce(t) ? [ 15614 t 15615 ] : [ 15616 n 15617 ] 15618 ]) 15619 ]; 15620 } 15621 function $h(e, t, n) { 15622 const i = Ce(n) ? n : sa, a = e; 15623 a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map()); 15624 let r = a.__localeChainCache.get(i); 15625 if (!r) { 15626 r = []; 15627 let s = [ 15628 n 15629 ]; 15630 for (; At(s); ) s = Nd(r, s, t); 15631 const o = At(t) || !We(t) ? t : t.default ? t.default : null; 15632 s = Ce(o) ? [ 15633 o 15634 ] : o, At(s) && Nd(r, s, false), a.__localeChainCache.set(i, r); 15635 } 15636 return r; 15637 } 15638 function Nd(e, t, n) { 15639 let i = true; 15640 for (let a = 0; a < t.length && rt(i); a++) { 15641 const r = t[a]; 15642 Ce(r) && (i = VO(e, t[a], n)); 15643 } 15644 return i; 15645 } 15646 function VO(e, t, n) { 15647 let i; 15648 const a = t.split("-"); 15649 do { 15650 const r = a.join("-"); 15651 i = HO(e, r, n), a.splice(-1, 1); 15652 } while (a.length && i === true); 15653 return i; 15654 } 15655 function HO(e, t, n) { 15656 let i = false; 15657 if (!e.includes(t) && (i = true, t)) { 15658 i = t[t.length - 1] !== "!"; 15659 const a = t.replace(/!/g, ""); 15660 e.push(a), (At(n) || We(n)) && n[a] && (i = n[a]); 15661 } 15662 return i; 15663 } 15664 const jO = "9.14.5", Hs = -1, sa = "en-US", Dd = "", Pd = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`; 15665 function zO() { 15666 return { 15667 upper: (e, t) => t === "text" && Ce(e) ? e.toUpperCase() : t === "vnode" && Qe(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e, 15668 lower: (e, t) => t === "text" && Ce(e) ? e.toLowerCase() : t === "vnode" && Qe(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e, 15669 capitalize: (e, t) => t === "text" && Ce(e) ? Pd(e) : t === "vnode" && Qe(e) && "__v_isVNode" in e ? Pd(e.children) : e 15670 }; 15671 } 15672 let Th; 15673 function Bd(e) { 15674 Th = e; 15675 } 15676 let Ih; 15677 function WO(e) { 15678 Ih = e; 15679 } 15680 let Fh; 15681 function GO(e) { 15682 Fh = e; 15683 } 15684 let Nh = null; 15685 const Md = (e) => { 15686 Nh = e; 15687 }, qO = () => Nh; 15688 let Rd = 0; 15689 function YO(e = {}) { 15690 const t = dt(e.onWarn) ? e.onWarn : wx, n = Ce(e.version) ? e.version : jO, i = Ce(e.locale) || dt(e.locale) ? e.locale : sa, a = dt(i) ? sa : i, r = At(e.fallbackLocale) || We(e.fallbackLocale) || Ce(e.fallbackLocale) || e.fallbackLocale === false ? e.fallbackLocale : a, s = We(e.messages) ? e.messages : go(a), o = We(e.datetimeFormats) ? e.datetimeFormats : go(a), l = We(e.numberFormats) ? e.numberFormats : go(a), u = Zt(gt(), e.modifiers, zO()), c = e.pluralRules || gt(), d = dt(e.missing) ? e.missing : null, p = rt(e.missingWarn) || di(e.missingWarn) ? e.missingWarn : true, b = rt(e.fallbackWarn) || di(e.fallbackWarn) ? e.fallbackWarn : true, h = !!e.fallbackFormat, _ = !!e.unresolving, C = dt(e.postTranslation) ? e.postTranslation : null, D = We(e.processor) ? e.processor : null, N = rt(e.warnHtmlMessage) ? e.warnHtmlMessage : true, v = !!e.escapeParameter, y = dt(e.messageCompiler) ? e.messageCompiler : Th, E = dt(e.messageResolver) ? e.messageResolver : Ih || AO, k = dt(e.localeFallbacker) ? e.localeFallbacker : Fh || UO, A = Qe(e.fallbackContext) ? e.fallbackContext : void 0, L = e, w = Qe(L.__datetimeFormatters) ? L.__datetimeFormatters : /* @__PURE__ */ new Map(), z = Qe(L.__numberFormatters) ? L.__numberFormatters : /* @__PURE__ */ new Map(), T = Qe(L.__meta) ? L.__meta : {}; 15691 Rd++; 15692 const P = { 15693 version: n, 15694 cid: Rd, 15695 locale: i, 15696 fallbackLocale: r, 15697 messages: s, 15698 modifiers: u, 15699 pluralRules: c, 15700 missing: d, 15701 missingWarn: p, 15702 fallbackWarn: b, 15703 fallbackFormat: h, 15704 unresolving: _, 15705 postTranslation: C, 15706 processor: D, 15707 warnHtmlMessage: N, 15708 escapeParameter: v, 15709 messageCompiler: y, 15710 messageResolver: E, 15711 localeFallbacker: k, 15712 fallbackContext: A, 15713 onWarn: t, 15714 __meta: T 15715 }; 15716 return P.datetimeFormats = o, P.numberFormats = l, P.__datetimeFormatters = w, P.__numberFormatters = z, __INTLIFY_PROD_DEVTOOLS__ && DO(P, n, T), P; 15717 } 15718 const go = (e) => ({ 15719 [e]: gt() 15720 }); 15721 function gu(e, t, n, i, a) { 15722 const { missing: r, onWarn: s } = e; 15723 if (r !== null) { 15724 const o = r(e, n, t, a); 15725 return Ce(o) ? o : t; 15726 } else return t; 15727 } 15728 function Di(e, t, n) { 15729 const i = e; 15730 i.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t); 15731 } 15732 function KO(e, t) { 15733 return e === t ? false : e.split("-")[0] === t.split("-")[0]; 15734 } 15735 function XO(e, t) { 15736 const n = t.indexOf(e); 15737 if (n === -1) return false;
15738 for (let i = n + 1; i < t.length; i++) if (KO(e, t[i])) return true; 15739 return false; 15740 } 15741 function bo(e) { 15742 return (t) => JO(t, e); 15743 } 15744 function JO(e, t) { 15745 const n = pO(t); 15746 if (n == null) throw ia(0); 15747 if (mu(n) === 1) { 15748 const i = fO(n); 15749 return e.plural(i.reduce((a, r) => [ 15750 ...a, 15751 Ud(e, r) 15752 ], [])); 15753 } else return Ud(e, n); 15754 } 15755 function Ud(e, t) { 15756 const n = mO(t); 15757 if (n != null) return e.type === "text" ? n : e.normalize([ 15758 n 15759 ]); 15760 { 15761 const i = hO(t).reduce((a, r) => [ 15762 ...a, 15763 rl(e, r) 15764 ], []); 15765 return e.normalize(i); 15766 } 15767 } 15768 function rl(e, t) { 15769 const n = mu(t); 15770 switch (n) { 15771 case 3: 15772 return $a(t, n); 15773 case 9: 15774 return $a(t, n); 15775 case 4: { 15776 const i = t; 15777 if (bn(i, "k") && i.k) return e.interpolate(e.named(i.k)); 15778 if (bn(i, "key") && i.key) return e.interpolate(e.named(i.key)); 15779 throw ia(n); 15780 } 15781 case 5: { 15782 const i = t; 15783 if (bn(i, "i") && Ct(i.i)) return e.interpolate(e.list(i.i)); 15784 if (bn(i, "index") && Ct(i.index)) return e.interpolate(e.list(i.index)); 15785 throw ia(n); 15786 } 15787 case 6: { 15788 const i = t, a = gO(i), r = bO(i); 15789 return e.linked(rl(e, r), a ? rl(e, a) : void 0, e.type); 15790 } 15791 case 7: 15792 return $a(t, n); 15793 case 8: 15794 return $a(t, n); 15795 default: 15796 throw new Error(`unhandled node on format message part: ${n}`); 15797 } 15798 } 15799 const Dh = (e) => e; 15800 let ti = gt(); 15801 function Ph(e, t = {}) { 15802 let n = false; 15803 const i = t.onError || Hx; 15804 return t.onError = (a) => { 15805 n = true, i(a); 15806 }, {
vendor: 8,479 bytes, lines 15807-16053
15807 ...cO(e, t), 15808 detectError: n 15809 }; 15810 } 15811 const QO = (e, t) => { 15812 if (!Ce(e)) throw An(vn.NOT_SUPPORT_NON_STRING_MESSAGE); 15813 { 15814 rt(t.warnHtmlMessage) && t.warnHtmlMessage; 15815 const n = (t.onCacheKey || Dh)(e), i = ti[n]; 15816 if (i) return i; 15817 const { code: a, detectError: r } = Ph(e, t), s = new Function(`return ${a}`)(); 15818 return r ? s : ti[n] = s; 15819 } 15820 }; 15821 function ZO(e, t) { 15822 if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && Ce(e)) { 15823 rt(t.warnHtmlMessage) && t.warnHtmlMessage; 15824 const n = (t.onCacheKey || Dh)(e), i = ti[n]; 15825 if (i) return i; 15826 const { ast: a, detectError: r } = Ph(e, { 15827 ...t, 15828 location: false, 15829 jit: true 15830 }), s = bo(a); 15831 return r ? s : ti[n] = s; 15832 } else { 15833 const n = e.cacheKey; 15834 return n ? ti[n] || (ti[n] = bo(e)) : bo(e); 15835 } 15836 } 15837 const Vd = () => "", fn = (e) => dt(e); 15838 function Hd(e, ...t) { 15839 const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: r, fallbackLocale: s, messages: o } = e, [l, u] = il(...t), c = rt(u.missingWarn) ? u.missingWarn : e.missingWarn, d = rt(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, p = rt(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, b = !!u.resolvedMessage, h = Ce(u.default) || rt(u.default) ? rt(u.default) ? r ? l : () => l : u.default : n ? r ? l : () => l : "", _ = n || h !== "", C = hu(e, u); 15840 p && e$(u); 15841 let [D, N, v] = b ? [ 15842 l, 15843 C, 15844 o[C] || gt() 15845 ] : Bh(e, l, C, s, d, c), y = D, E = l; 15846 if (!b && !(Ce(y) || xn(y) || fn(y)) && _ && (y = h, E = y), !b && (!(Ce(y) || xn(y) || fn(y)) || !Ce(N))) return a ? Hs : l; 15847 let k = false; 15848 const A = () => { 15849 k = true; 15850 }, L = fn(y) ? y : Mh(e, l, N, y, E, A); 15851 if (k) return y; 15852 const w = r$(e, N, v, u), z = FO(w), T = t$(e, L, z); 15853 let P = i ? i(T, l) : T; 15854 if (p && Ce(P) && (P = Tx(P)), __INTLIFY_PROD_DEVTOOLS__) { 15855 const G = { 15856 timestamp: Date.now(), 15857 key: Ce(l) ? l : fn(y) ? y.key : "", 15858 locale: N || (fn(y) ? y.locale : ""), 15859 format: Ce(y) ? y : fn(y) ? y.source : "", 15860 message: P 15861 }; 15862 G.meta = Zt({}, e.__meta, {}), PO(G); 15863 } 15864 return P; 15865 } 15866 function e$(e) { 15867 At(e.list) ? e.list = e.list.map((t) => Ce(t) ? Sd(t) : t) : Qe(e.named) && Object.keys(e.named).forEach((t) => { 15868 Ce(e.named[t]) && (e.named[t] = Sd(e.named[t])); 15869 }); 15870 } 15871 function Bh(e, t, n, i, a, r) { 15872 const { messages: s, onWarn: o, messageResolver: l, localeFallbacker: u } = e, c = u(e, i, n); 15873 let d = gt(), p, b = null; 15874 const h = "translate"; 15875 for (let _ = 0; _ < c.length && (p = c[_], d = s[p] || gt(), (b = l(d, t)) === null && (b = d[t]), !(Ce(b) || xn(b) || fn(b))); _++) if (!XO(p, c)) { 15876 const C = gu(e, t, p, r, h); 15877 C !== t && (b = C); 15878 } 15879 return [ 15880 b, 15881 p, 15882 d 15883 ]; 15884 } 15885 function Mh(e, t, n, i, a, r) { 15886 const { messageCompiler: s, warnHtmlMessage: o } = e; 15887 if (fn(i)) { 15888 const u = i; 15889 return u.locale = u.locale || n, u.key = u.key || t, u; 15890 } 15891 if (s == null) { 15892 const u = () => i; 15893 return u.locale = n, u.key = t, u; 15894 } 15895 const l = s(i, n$(e, n, a, i, o, r)); 15896 return l.locale = n, l.key = t, l.source = i, l; 15897 } 15898 function t$(e, t, n) { 15899 return t(n); 15900 } 15901 function il(...e) { 15902 const [t, n, i] = e, a = gt(); 15903 if (!Ce(t) && !Ct(t) && !fn(t) && !xn(t)) throw An(vn.INVALID_ARGUMENT); 15904 const r = Ct(t) ? String(t) : t; 15905 return Ct(n) ? a.plural = n : Ce(n) ? a.default = n : We(n) && !Us(n) ? a.named = n : At(n) && (a.list = n), Ct(i) ? a.plural = i : Ce(i) ? a.default = i : We(i) && Zt(a, i), [ 15906 r, 15907 a 15908 ]; 15909 } 15910 function n$(e, t, n, i, a, r) { 15911 return { 15912 locale: t, 15913 key: n, 15914 warnHtmlMessage: a, 15915 onError: (s) => { 15916 throw r && r(s), s; 15917 }, 15918 onCacheKey: (s) => Lx(t, n, s) 15919 }; 15920 } 15921 function r$(e, t, n, i) { 15922 const { modifiers: a, pluralRules: r, messageResolver: s, fallbackLocale: o, fallbackWarn: l, missingWarn: u, fallbackContext: c } = e, d = { 15923 locale: t, 15924 modifiers: a, 15925 pluralRules: r, 15926 messages: (p) => { 15927 let b = s(n, p); 15928 if (b == null && c) { 15929 const [, , h] = Bh(c, p, t, o, l, u); 15930 b = s(h, p); 15931 } 15932 if (Ce(b) || xn(b)) { 15933 let h = false; 15934 const _ = Mh(e, p, t, b, p, () => { 15935 h = true; 15936 }); 15937 return h ? Vd : _; 15938 } else return fn(b) ? b : Vd; 15939 } 15940 }; 15941 return e.processor && (d.processor = e.processor), i.list && (d.list = i.list), i.named && (d.named = i.named), Ct(i.plural) && (d.pluralIndex = i.plural), d; 15942 } 15943 function jd(e, ...t) { 15944 const { datetimeFormats: n, unresolving: i, fallbackLocale: a, onWarn: r, localeFallbacker: s } = e, { __datetimeFormatters: o } = e, [l, u, c, d] = al(...t), p = rt(c.missingWarn) ? c.missingWarn : e.missingWarn; 15945 rt(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn; 15946 const b = !!c.part, h = hu(e, c), _ = s(e, a, h); 15947 if (!Ce(l) || l === "") return new Intl.DateTimeFormat(h, d).format(u); 15948 let C = {}, D, N = null; 15949 const v = "datetime format"; 15950 for (let k = 0; k < _.length && (D = _[k], C = n[D] || {}, N = C[l], !We(N)); k++) gu(e, l, D, p, v); 15951 if (!We(N) || !Ce(D)) return i ? Hs : l; 15952 let y = `${D}__${l}`; 15953 Us(d) || (y = `${y}__${JSON.stringify(d)}`); 15954 let E = o.get(y); 15955 return E || (E = new Intl.DateTimeFormat(D, Zt({}, N, d)), o.set(y, E)), b ? E.formatToParts(u) : E.format(u); 15956 } 15957 const i$ = [ 15958 "localeMatcher", 15959 "weekday", 15960 "era", 15961 "year", 15962 "month", 15963 "day", 15964 "hour", 15965 "minute", 15966 "second", 15967 "timeZoneName", 15968 "formatMatcher", 15969 "hour12", 15970 "timeZone", 15971 "dateStyle", 15972 "timeStyle", 15973 "calendar", 15974 "dayPeriod", 15975 "numberingSystem", 15976 "hourCycle", 15977 "fractionalSecondDigits" 15978 ]; 15979 function al(...e) { 15980 const [t, n, i, a] = e, r = gt(); 15981 let s = gt(), o; 15982 if (Ce(t)) { 15983 const l = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/); 15984 if (!l) throw An(vn.INVALID_ISO_DATE_ARGUMENT); 15985 const u = l[3] ? l[3].trim().startsWith("T") ? `${l[1].trim()}${l[3].trim()}` : `${l[1].trim()}T${l[3].trim()}` : l[1].trim(); 15986 o = new Date(u); 15987 try { 15988 o.toISOString(); 15989 } catch { 15990 throw An(vn.INVALID_ISO_DATE_ARGUMENT); 15991 } 15992 } else if (Ox(t)) { 15993 if (isNaN(t.getTime())) throw An(vn.INVALID_DATE_ARGUMENT); 15994 o = t; 15995 } else if (Ct(t)) o = t; 15996 else throw An(vn.INVALID_ARGUMENT); 15997 return Ce(n) ? r.key = n : We(n) && Object.keys(n).forEach((l) => { 15998 i$.includes(l) ? s[l] = n[l] : r[l] = n[l]; 15999 }), Ce(i) ? r.locale = i : We(i) && (s = i), We(a) && (s = a), [ 16000 r.key || "", 16001 o, 16002 r, 16003 s 16004 ]; 16005 } 16006 function zd(e, t, n) { 16007 const i = e; 16008 for (const a in n) { 16009 const r = `${t}__${a}`; 16010 i.__datetimeFormatters.has(r) && i.__datetimeFormatters.delete(r); 16011 } 16012 } 16013 function Wd(e, ...t) { 16014 const { numberFormats: n, unresolving: i, fallbackLocale: a, onWarn: r, localeFallbacker: s } = e, { __numberFormatters: o } = e, [l, u, c, d] = sl(...t), p = rt(c.missingWarn) ? c.missingWarn : e.missingWarn; 16015 rt(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn; 16016 const b = !!c.part, h = hu(e, c), _ = s(e, a, h); 16017 if (!Ce(l) || l === "") return new Intl.NumberFormat(h, d).format(u); 16018 let C = {}, D, N = null; 16019 const v = "number format"; 16020 for (let k = 0; k < _.length && (D = _[k], C = n[D] || {}, N = C[l], !We(N)); k++) gu(e, l, D, p, v); 16021 if (!We(N) || !Ce(D)) return i ? Hs : l; 16022 let y = `${D}__${l}`; 16023 Us(d) || (y = `${y}__${JSON.stringify(d)}`); 16024 let E = o.get(y); 16025 return E || (E = new Intl.NumberFormat(D, Zt({}, N, d)), o.set(y, E)), b ? E.formatToParts(u) : E.format(u); 16026 } 16027 const a$ = [ 16028 "localeMatcher", 16029 "style", 16030 "currency", 16031 "currencyDisplay", 16032 "currencySign", 16033 "useGrouping", 16034 "minimumIntegerDigits", 16035 "minimumFractionDigits", 16036 "maximumFractionDigits", 16037 "minimumSignificantDigits", 16038 "maximumSignificantDigits", 16039 "compactDisplay", 16040 "notation", 16041 "signDisplay", 16042 "unit", 16043 "unitDisplay", 16044 "roundingMode", 16045 "roundingPriority", 16046 "roundingIncrement", 16047 "trailingZeroDisplay" 16048 ]; 16049 function sl(...e) { 16050 const [t, n, i, a] = e, r = gt(); 16051 let s = gt(); 16052 if (!Ct(t)) throw An(vn.INVALID_ARGUMENT); 16053 const o = t;
16054 return Ce(n) ? r.key = n : We(n) && Object.keys(n).forEach((l) => { 16055 a$.includes(l) ? s[l] = n[l] : r[l] = n[l]; 16056 }), Ce(i) ? r.locale = i : We(i) && (s = i), We(a) && (s = a), [ 16057 r.key || "", 16058 o, 16059 r, 16060 s 16061 ]; 16062 } 16063 function Gd(e, t, n) { 16064 const i = e; 16065 for (const a in n) { 16066 const r = `${t}__${a}`; 16067 i.__numberFormatters.has(r) && i.__numberFormatters.delete(r); 16068 } 16069 } 16070 dO(); 16071 const s$ = "9.14.5"; 16072 function o$() { 16073 typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Rn().__VUE_I18N_FULL_INSTALL__ = true), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Rn().__VUE_I18N_LEGACY_API__ = true), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (Rn().__INTLIFY_JIT_COMPILATION__ = false), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Rn().__INTLIFY_DROP_MESSAGE_COMPILER__ = false), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Rn().__INTLIFY_PROD_DEVTOOLS__ = false); 16074 } 16075 const l$ = RO.__EXTEND_POINT__, Nn = Vs(l$); 16076 Nn(), Nn(), Nn(), Nn(), Nn(), Nn(), Nn(), Nn(), Nn(); 16077 const Rh = vn.__EXTEND_POINT__, zt = Vs(Rh), Hn = { 16078 UNEXPECTED_RETURN_TYPE: Rh, 16079 INVALID_ARGUMENT: zt(), 16080 MUST_BE_CALL_SETUP_TOP: zt(), 16081 NOT_INSTALLED: zt(), 16082 NOT_AVAILABLE_IN_LEGACY_MODE: zt(), 16083 REQUIRED_VALUE: zt(), 16084 INVALID_VALUE: zt(), 16085 CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: zt(), 16086 NOT_INSTALLED_WITH_PROVIDE: zt(), 16087 UNEXPECTED_ERROR: zt(), 16088 NOT_COMPATIBLE_LEGACY_VUE_I18N: zt(), 16089 BRIDGE_SUPPORT_VUE_2_ONLY: zt(), 16090 MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: zt(), 16091 NOT_AVAILABLE_COMPOSITION_IN_LEGACY: zt(), 16092 __EXTEND_POINT__: zt() 16093 }; 16094 function nr(e, ...t) { 16095 return Li(e, null, void 0); 16096 } 16097 const qd = qr("__translateVNode"), Yd = qr("__datetimeParts"), Kd = qr("__numberParts"), u$ = qr("__setPluralRules"), Uh = qr("__injectWithOption"), ol = qr("__dispose"); 16098 function oa(e) { 16099 if (!Qe(e) || xn(e)) return e; 16100 for (const t in e) if (bn(e, t)) if (!t.includes(".")) Qe(e[t]) && oa(e[t]); 16101 else { 16102 const n = t.split("."), i = n.length - 1; 16103 let a = e, r = false; 16104 for (let s = 0; s < i; s++) { 16105 if (n[s] === "__proto__") throw new Error(`unsafe key: ${n[s]}`); 16106 if (n[s] in a || (a[n[s]] = gt()), !Qe(a[n[s]])) { 16107 r = true; 16108 break; 16109 } 16110 a = a[n[s]]; 16111 } 16112 if (r || (xn(a) ? xh.includes(n[i]) || delete e[t] : (a[n[i]] = e[t], delete e[t])), !xn(a)) { 16113 const s = a[n[i]]; 16114 Qe(s) && oa(s); 16115 } 16116 } 16117 return e; 16118 } 16119 function bu(e, t) { 16120 const { messages: n, __i18n: i, messageResolver: a, flatJson: r } = t, s = We(n) ? n : At(i) ? gt() : { 16121 [e]: gt() 16122 }; 16123 if (At(i) && i.forEach((o) => { 16124 if ("locale" in o && "resource" in o) { 16125 const { locale: l, resource: u } = o; 16126 l ? (s[l] = s[l] || gt(), ja(u, s[l])) : ja(u, s); 16127 } else Ce(o) && ja(JSON.parse(o), s); 16128 }), a == null && r) for (const o in s) bn(s, o) && oa(s[o]); 16129 return s; 16130 } 16131 function c$(e) { 16132 return e.type; 16133 } 16134 function d$(e, t, n) { 16135 let i = Qe(t.messages) ? t.messages : gt(); 16136 "__i18nGlobal" in n && (i = bu(e.locale.value, { 16137 messages: i, 16138 __i18n: n.__i18nGlobal 16139 })); 16140 const a = Object.keys(i); 16141 a.length && a.forEach((r) => { 16142 e.mergeLocaleMessage(r, i[r]); 16143 }); 16144 { 16145 if (Qe(t.datetimeFormats)) { 16146 const r = Object.keys(t.datetimeFormats); 16147 r.length && r.forEach((s) => { 16148 e.mergeDateTimeFormat(s, t.datetimeFormats[s]); 16149 }); 16150 } 16151 if (Qe(t.numberFormats)) { 16152 const r = Object.keys(t.numberFormats); 16153 r.length && r.forEach((s) => { 16154 e.mergeNumberFormat(s, t.numberFormats[s]); 16155 }); 16156 } 16157 } 16158 } 16159 function Xd(e) { 16160 return K(gs, null, e, 0); 16161 } 16162 const Jd = () => [], p$ = () => false; 16163 let Qd = 0; 16164 function Zd(e) { 16165 return (t, n, i, a) => e(n, i, kt() || void 0, a); 16166 } 16167 function f$(e = {}, t) { 16168 const { __root: n, __injectWithOption: i } = e, a = n === void 0, r = e.flatJson, s = Cd ? pe : yi, o = !!e.translateExistCompatible;
vendor: 14,804 bytes, lines 16169-16656
16169 let l = rt(e.inheritLocale) ? e.inheritLocale : true; 16170 const u = s(n && l ? n.locale.value : Ce(e.locale) ? e.locale : sa), c = s(n && l ? n.fallbackLocale.value : Ce(e.fallbackLocale) || At(e.fallbackLocale) || We(e.fallbackLocale) || e.fallbackLocale === false ? e.fallbackLocale : u.value), d = s(bu(u.value, e)), p = s(We(e.datetimeFormats) ? e.datetimeFormats : { 16171 [u.value]: {} 16172 }), b = s(We(e.numberFormats) ? e.numberFormats : { 16173 [u.value]: {} 16174 }); 16175 let h = n ? n.missingWarn : rt(e.missingWarn) || di(e.missingWarn) ? e.missingWarn : true, _ = n ? n.fallbackWarn : rt(e.fallbackWarn) || di(e.fallbackWarn) ? e.fallbackWarn : true, C = n ? n.fallbackRoot : rt(e.fallbackRoot) ? e.fallbackRoot : true, D = !!e.fallbackFormat, N = dt(e.missing) ? e.missing : null, v = dt(e.missing) ? Zd(e.missing) : null, y = dt(e.postTranslation) ? e.postTranslation : null, E = n ? n.warnHtmlMessage : rt(e.warnHtmlMessage) ? e.warnHtmlMessage : true, k = !!e.escapeParameter; 16176 const A = n ? n.modifiers : We(e.modifiers) ? e.modifiers : {}; 16177 let L = e.pluralRules || n && n.pluralRules, w; 16178 w = (() => { 16179 a && Md(null); 16180 const S = { 16181 version: s$, 16182 locale: u.value, 16183 fallbackLocale: c.value, 16184 messages: d.value, 16185 modifiers: A, 16186 pluralRules: L, 16187 missing: v === null ? void 0 : v, 16188 missingWarn: h, 16189 fallbackWarn: _, 16190 fallbackFormat: D, 16191 unresolving: true, 16192 postTranslation: y === null ? void 0 : y, 16193 warnHtmlMessage: E, 16194 escapeParameter: k, 16195 messageResolver: e.messageResolver, 16196 messageCompiler: e.messageCompiler, 16197 __meta: { 16198 framework: "vue" 16199 } 16200 }; 16201 S.datetimeFormats = p.value, S.numberFormats = b.value, S.__datetimeFormatters = We(w) ? w.__datetimeFormatters : void 0, S.__numberFormatters = We(w) ? w.__numberFormatters : void 0; 16202 const $ = YO(S); 16203 return a && Md($), $; 16204 })(), Di(w, u.value, c.value); 16205 function z() { 16206 return [ 16207 u.value, 16208 c.value, 16209 d.value, 16210 p.value, 16211 b.value 16212 ]; 16213 } 16214 const T = ne({ 16215 get: () => u.value, 16216 set: (S) => { 16217 u.value = S, w.locale = u.value; 16218 } 16219 }), P = ne({ 16220 get: () => c.value, 16221 set: (S) => { 16222 c.value = S, w.fallbackLocale = c.value, Di(w, u.value, S); 16223 } 16224 }), G = ne(() => d.value), X = ne(() => p.value), Y = ne(() => b.value); 16225 function q() { 16226 return dt(y) ? y : null; 16227 } 16228 function J(S) { 16229 y = S, w.postTranslation = S; 16230 } 16231 function Z() { 16232 return N; 16233 } 16234 function se(S) { 16235 S !== null && (v = Zd(S)), N = S, w.missing = v; 16236 } 16237 const Q = (S, $, le, de, st, Ht) => { 16238 z(); 16239 let vt; 16240 try { 16241 __INTLIFY_PROD_DEVTOOLS__, a || (w.fallbackContext = n ? qO() : void 0), vt = S(w); 16242 } finally { 16243 __INTLIFY_PROD_DEVTOOLS__, a || (w.fallbackContext = void 0); 16244 } 16245 if (le !== "translate exists" && Ct(vt) && vt === Hs || le === "translate exists" && !vt) { 16246 const [Ti, Ru] = $(); 16247 return n && C ? de(n) : st(Ti); 16248 } else { 16249 if (Ht(vt)) return vt; 16250 throw nr(Hn.UNEXPECTED_RETURN_TYPE); 16251 } 16252 }; 16253 function oe(...S) { 16254 return Q(($) => Reflect.apply(Hd, null, [ 16255 $, 16256 ...S 16257 ]), () => il(...S), "translate", ($) => Reflect.apply($.t, $, [ 16258 ...S 16259 ]), ($) => $, ($) => Ce($)); 16260 } 16261 function ce(...S) { 16262 const [$, le, de] = S; 16263 if (de && !Qe(de)) throw nr(Hn.INVALID_ARGUMENT); 16264 return oe($, le, Zt({ 16265 resolvedMessage: true 16266 }, de || {})); 16267 } 16268 function be(...S) { 16269 return Q(($) => Reflect.apply(jd, null, [ 16270 $, 16271 ...S 16272 ]), () => al(...S), "datetime format", ($) => Reflect.apply($.d, $, [ 16273 ...S 16274 ]), () => Dd, ($) => Ce($)); 16275 } 16276 function ye(...S) { 16277 return Q(($) => Reflect.apply(Wd, null, [ 16278 $, 16279 ...S 16280 ]), () => sl(...S), "number format", ($) => Reflect.apply($.n, $, [ 16281 ...S 16282 ]), () => Dd, ($) => Ce($)); 16283 } 16284 function ke(S) { 16285 return S.map(($) => Ce($) || Ct($) || rt($) ? Xd(String($)) : $); 16286 } 16287 const Ae = { 16288 normalize: ke, 16289 interpolate: (S) => S, 16290 type: "vnode" 16291 }; 16292 function _e(...S) { 16293 return Q(($) => { 16294 let le; 16295 const de = $; 16296 try { 16297 de.processor = Ae, le = Reflect.apply(Hd, null, [ 16298 de, 16299 ...S 16300 ]); 16301 } finally { 16302 de.processor = null; 16303 } 16304 return le; 16305 }, () => il(...S), "translate", ($) => $[qd](...S), ($) => [ 16306 Xd($) 16307 ], ($) => At($)); 16308 } 16309 function Te(...S) { 16310 return Q(($) => Reflect.apply(Wd, null, [ 16311 $, 16312 ...S 16313 ]), () => sl(...S), "number format", ($) => $[Kd](...S), Jd, ($) => Ce($) || At($)); 16314 } 16315 function Ee(...S) { 16316 return Q(($) => Reflect.apply(jd, null, [ 16317 $, 16318 ...S 16319 ]), () => al(...S), "datetime format", ($) => $[Yd](...S), Jd, ($) => Ce($) || At($)); 16320 } 16321 function Le(S) { 16322 L = S, w.pluralRules = L; 16323 } 16324 function Be(S, $) { 16325 return Q(() => { 16326 if (!S) return false; 16327 const le = Ce($) ? $ : u.value, de = B(le), st = w.messageResolver(de, S); 16328 return o ? st != null : xn(st) || fn(st) || Ce(st); 16329 }, () => [ 16330 S 16331 ], "translate exists", (le) => Reflect.apply(le.te, le, [ 16332 S, 16333 $ 16334 ]), p$, (le) => rt(le)); 16335 } 16336 function Ie(S) { 16337 let $ = null; 16338 const le = $h(w, c.value, u.value); 16339 for (let de = 0; de < le.length; de++) { 16340 const st = d.value[le[de]] || {}, Ht = w.messageResolver(st, S); 16341 if (Ht != null) { 16342 $ = Ht; 16343 break; 16344 } 16345 } 16346 return $; 16347 } 16348 function Ve(S) { 16349 return Ie(S) ?? (n ? n.tm(S) || {} : {}); 16350 } 16351 function B(S) { 16352 return d.value[S] || {}; 16353 } 16354 function ie(S, $) { 16355 if (r) { 16356 const le = { 16357 [S]: $ 16358 }; 16359 for (const de in le) bn(le, de) && oa(le[de]); 16360 $ = le[S]; 16361 } 16362 d.value[S] = $, w.messages = d.value; 16363 } 16364 function Fe(S, $) { 16365 d.value[S] = d.value[S] || {}; 16366 const le = { 16367 [S]: $ 16368 }; 16369 if (r) for (const de in le) bn(le, de) && oa(le[de]); 16370 $ = le[S], ja($, d.value[S]), w.messages = d.value; 16371 } 16372 function qe(S) { 16373 return p.value[S] || {}; 16374 } 16375 function He(S, $) { 16376 p.value[S] = $, w.datetimeFormats = p.value, zd(w, S, $); 16377 } 16378 function xt(S, $) { 16379 p.value[S] = Zt(p.value[S] || {}, $), w.datetimeFormats = p.value, zd(w, S, $); 16380 } 16381 function f(S) { 16382 return b.value[S] || {}; 16383 } 16384 function g(S, $) { 16385 b.value[S] = $, w.numberFormats = b.value, Gd(w, S, $); 16386 } 16387 function F(S, $) { 16388 b.value[S] = Zt(b.value[S] || {}, $), w.numberFormats = b.value, Gd(w, S, $); 16389 } 16390 Qd++, n && Cd && (Ue(n.locale, (S) => { 16391 l && (u.value = S, w.locale = S, Di(w, u.value, c.value)); 16392 }), Ue(n.fallbackLocale, (S) => { 16393 l && (c.value = S, w.fallbackLocale = S, Di(w, u.value, c.value)); 16394 })); 16395 const W = { 16396 id: Qd, 16397 locale: T, 16398 fallbackLocale: P, 16399 get inheritLocale() { 16400 return l; 16401 }, 16402 set inheritLocale(S) { 16403 l = S, S && n && (u.value = n.locale.value, c.value = n.fallbackLocale.value, Di(w, u.value, c.value)); 16404 }, 16405 get availableLocales() { 16406 return Object.keys(d.value).sort(); 16407 }, 16408 messages: G, 16409 get modifiers() { 16410 return A; 16411 }, 16412 get pluralRules() { 16413 return L || {}; 16414 }, 16415 get isGlobal() { 16416 return a; 16417 }, 16418 get missingWarn() { 16419 return h; 16420 }, 16421 set missingWarn(S) { 16422 h = S, w.missingWarn = h; 16423 }, 16424 get fallbackWarn() { 16425 return _; 16426 }, 16427 set fallbackWarn(S) { 16428 _ = S, w.fallbackWarn = _; 16429 }, 16430 get fallbackRoot() { 16431 return C; 16432 }, 16433 set fallbackRoot(S) { 16434 C = S; 16435 }, 16436 get fallbackFormat() { 16437 return D; 16438 }, 16439 set fallbackFormat(S) { 16440 D = S, w.fallbackFormat = D; 16441 }, 16442 get warnHtmlMessage() { 16443 return E; 16444 }, 16445 set warnHtmlMessage(S) { 16446 E = S, w.warnHtmlMessage = S; 16447 }, 16448 get escapeParameter() { 16449 return k; 16450 }, 16451 set escapeParameter(S) { 16452 k = S, w.escapeParameter = S; 16453 }, 16454 t: oe, 16455 getLocaleMessage: B, 16456 setLocaleMessage: ie, 16457 mergeLocaleMessage: Fe, 16458 getPostTranslationHandler: q, 16459 setPostTranslationHandler: J, 16460 getMissingHandler: Z, 16461 setMissingHandler: se, 16462 [u$]: Le 16463 }; 16464 return W.datetimeFormats = X, W.numberFormats = Y, W.rt = ce, W.te = Be, W.tm = Ve, W.d = be, W.n = ye, W.getDateTimeFormat = qe, W.setDateTimeFormat = He, W.mergeDateTimeFormat = xt, W.getNumberFormat = f, W.setNumberFormat = g, W.mergeNumberFormat = F, W[Uh] = i, W[qd] = _e, W[Yd] = Ee, W[Kd] = Te, W; 16465 } 16466 const vu = { 16467 tag: { 16468 type: [ 16469 String, 16470 Object 16471 ] 16472 }, 16473 locale: { 16474 type: String 16475 }, 16476 scope: { 16477 type: String, 16478 validator: (e) => e === "parent" || e === "global", 16479 default: "parent" 16480 }, 16481 i18n: { 16482 type: Object 16483 } 16484 }; 16485 Zt({ 16486 keypath: { 16487 type: String, 16488 required: true 16489 }, 16490 plural: { 16491 type: [ 16492 Number, 16493 String 16494 ], 16495 validator: (e) => Ct(e) || !isNaN(e) 16496 } 16497 }, vu); 16498 Zt({ 16499 value: { 16500 type: Number, 16501 required: true 16502 }, 16503 format: { 16504 type: [ 16505 String, 16506 Object 16507 ] 16508 } 16509 }, vu); 16510 Zt({ 16511 value: { 16512 type: [ 16513 Number, 16514 Date 16515 ], 16516 required: true 16517 }, 16518 format: { 16519 type: [ 16520 String, 16521 Object 16522 ] 16523 } 16524 }, vu); 16525 const m$ = qr("global-vue-i18n"); 16526 function h$(e = {}) { 16527 const t = kt(); 16528 if (t == null) throw nr(Hn.MUST_BE_CALL_SETUP_TOP); 16529 if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__) throw nr(Hn.NOT_INSTALLED); 16530 const n = g$(t), i = v$(n), a = c$(t), r = b$(e, a); 16531 if (__VUE_I18N_LEGACY_API__ && n.mode === "legacy" && !e.__useComponent) { 16532 if (!n.allowComposition) throw nr(Hn.NOT_AVAILABLE_IN_LEGACY_MODE); 16533 return k$(t, r, i, e); 16534 } 16535 if (r === "global") return d$(i, e, a), i; 16536 if (r === "parent") { 16537 let l = y$(n, t, e.__useComponent); 16538 return l == null && (l = i), l; 16539 } 16540 const s = n; 16541 let o = s.__getInstance(t); 16542 if (o == null) { 16543 const l = Zt({}, e); 16544 "__i18n" in a && (l.__i18n = a.__i18n), i && (l.__root = i), o = f$(l), s.__composerExtend && (o[ol] = s.__composerExtend(o)), E$(s, t, o), s.__setInstance(t, o); 16545 } 16546 return o; 16547 } 16548 function g$(e) { 16549 { 16550 const t = Br(e.isCE ? m$ : e.appContext.app.__VUE_I18N_SYMBOL__); 16551 if (!t) throw nr(e.isCE ? Hn.NOT_INSTALLED_WITH_PROVIDE : Hn.UNEXPECTED_ERROR); 16552 return t; 16553 } 16554 } 16555 function b$(e, t) { 16556 return Us(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local"; 16557 } 16558 function v$(e) { 16559 return e.mode === "composition" ? e.global : e.global.__composer; 16560 } 16561 function y$(e, t, n = false) { 16562 let i = null; 16563 const a = t.root; 16564 let r = _$(t, n); 16565 for (; r != null; ) { 16566 const s = e; 16567 if (e.mode === "composition") i = s.__getInstance(r); 16568 else if (__VUE_I18N_LEGACY_API__) { 16569 const o = s.__getInstance(r); 16570 o != null && (i = o.__composer, n && i && !i[Uh] && (i = null)); 16571 } 16572 if (i != null || a === r) break; 16573 r = r.parent; 16574 } 16575 return i; 16576 } 16577 function _$(e, t = false) { 16578 return e == null ? null : t && e.vnode.ctx || e.parent; 16579 } 16580 function E$(e, t, n) { 16581 nn(() => { 16582 }, t), hs(() => { 16583 const i = n; 16584 e.__deleteInstance(t); 16585 const a = i[ol]; 16586 a && (a(), delete i[ol]); 16587 }, t); 16588 } 16589 function k$(e, t, n, i = {}) { 16590 const a = t === "local", r = yi(null); 16591 if (a && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n)) throw nr(Hn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION); 16592 const s = rt(i.inheritLocale) ? i.inheritLocale : !Ce(i.locale), o = pe(!a || s ? n.locale.value : Ce(i.locale) ? i.locale : sa), l = pe(!a || s ? n.fallbackLocale.value : Ce(i.fallbackLocale) || At(i.fallbackLocale) || We(i.fallbackLocale) || i.fallbackLocale === false ? i.fallbackLocale : o.value), u = pe(bu(o.value, i)), c = pe(We(i.datetimeFormats) ? i.datetimeFormats : { 16593 [o.value]: {} 16594 }), d = pe(We(i.numberFormats) ? i.numberFormats : { 16595 [o.value]: {} 16596 }), p = a ? n.missingWarn : rt(i.missingWarn) || di(i.missingWarn) ? i.missingWarn : true, b = a ? n.fallbackWarn : rt(i.fallbackWarn) || di(i.fallbackWarn) ? i.fallbackWarn : true, h = a ? n.fallbackRoot : rt(i.fallbackRoot) ? i.fallbackRoot : true, _ = !!i.fallbackFormat, C = dt(i.missing) ? i.missing : null, D = dt(i.postTranslation) ? i.postTranslation : null, N = a ? n.warnHtmlMessage : rt(i.warnHtmlMessage) ? i.warnHtmlMessage : true, v = !!i.escapeParameter, y = a ? n.modifiers : We(i.modifiers) ? i.modifiers : {}, E = i.pluralRules || a && n.pluralRules; 16597 function k() { 16598 return [ 16599 o.value, 16600 l.value, 16601 u.value, 16602 c.value, 16603 d.value 16604 ]; 16605 } 16606 const A = ne({ 16607 get: () => r.value ? r.value.locale.value : o.value, 16608 set: (B) => { 16609 r.value && (r.value.locale.value = B), o.value = B; 16610 } 16611 }), L = ne({ 16612 get: () => r.value ? r.value.fallbackLocale.value : l.value, 16613 set: (B) => { 16614 r.value && (r.value.fallbackLocale.value = B), l.value = B; 16615 } 16616 }), w = ne(() => r.value ? r.value.messages.value : u.value), z = ne(() => c.value), T = ne(() => d.value); 16617 function P() { 16618 return r.value ? r.value.getPostTranslationHandler() : D; 16619 } 16620 function G(B) { 16621 r.value && r.value.setPostTranslationHandler(B); 16622 } 16623 function X() { 16624 return r.value ? r.value.getMissingHandler() : C; 16625 } 16626 function Y(B) { 16627 r.value && r.value.setMissingHandler(B); 16628 } 16629 function q(B) { 16630 return k(), B(); 16631 } 16632 function J(...B) { 16633 return r.value ? q(() => Reflect.apply(r.value.t, null, [ 16634 ...B 16635 ])) : q(() => ""); 16636 } 16637 function Z(...B) { 16638 return r.value ? Reflect.apply(r.value.rt, null, [ 16639 ...B 16640 ]) : ""; 16641 } 16642 function se(...B) { 16643 return r.value ? q(() => Reflect.apply(r.value.d, null, [ 16644 ...B 16645 ])) : q(() => ""); 16646 } 16647 function Q(...B) { 16648 return r.value ? q(() => Reflect.apply(r.value.n, null, [ 16649 ...B 16650 ])) : q(() => ""); 16651 } 16652 function oe(B) { 16653 return r.value ? r.value.tm(B) : {}; 16654 } 16655 function ce(B, ie) { 16656 return r.value ? r.value.te(B, ie) : false;
16657 } 16658 function be(B) { 16659 return r.value ? r.value.getLocaleMessage(B) : {}; 16660 } 16661 function ye(B, ie) { 16662 r.value && (r.value.setLocaleMessage(B, ie), u.value[B] = ie); 16663 } 16664 function ke(B, ie) { 16665 r.value && r.value.mergeLocaleMessage(B, ie); 16666 } 16667 function Ae(B) { 16668 return r.value ? r.value.getDateTimeFormat(B) : {}; 16669 } 16670 function _e(B, ie) { 16671 r.value && (r.value.setDateTimeFormat(B, ie), c.value[B] = ie); 16672 } 16673 function Te(B, ie) { 16674 r.value && r.value.mergeDateTimeFormat(B, ie); 16675 } 16676 function Ee(B) { 16677 return r.value ? r.value.getNumberFormat(B) : {}; 16678 } 16679 function Le(B, ie) { 16680 r.value && (r.value.setNumberFormat(B, ie), d.value[B] = ie); 16681 } 16682 function Be(B, ie) { 16683 r.value && r.value.mergeNumberFormat(B, ie); 16684 } 16685 const Ie = { 16686 get id() { 16687 return r.value ? r.value.id : -1; 16688 }, 16689 locale: A, 16690 fallbackLocale: L, 16691 messages: w, 16692 datetimeFormats: z, 16693 numberFormats: T, 16694 get inheritLocale() { 16695 return r.value ? r.value.inheritLocale : s; 16696 }, 16697 set inheritLocale(B) { 16698 r.value && (r.value.inheritLocale = B); 16699 }, 16700 get availableLocales() { 16701 return r.value ? r.value.availableLocales : Object.keys(u.value); 16702 }, 16703 get modifiers() { 16704 return r.value ? r.value.modifiers : y; 16705 }, 16706 get pluralRules() { 16707 return r.value ? r.value.pluralRules : E; 16708 }, 16709 get isGlobal() { 16710 return r.value ? r.value.isGlobal : false; 16711 }, 16712 get missingWarn() { 16713 return r.value ? r.value.missingWarn : p; 16714 }, 16715 set missingWarn(B) { 16716 r.value && (r.value.missingWarn = B); 16717 }, 16718 get fallbackWarn() { 16719 return r.value ? r.value.fallbackWarn : b; 16720 }, 16721 set fallbackWarn(B) { 16722 r.value && (r.value.missingWarn = B); 16723 }, 16724 get fallbackRoot() { 16725 return r.value ? r.value.fallbackRoot : h; 16726 }, 16727 set fallbackRoot(B) { 16728 r.value && (r.value.fallbackRoot = B); 16729 }, 16730 get fallbackFormat() { 16731 return r.value ? r.value.fallbackFormat : _; 16732 }, 16733 set fallbackFormat(B) { 16734 r.value && (r.value.fallbackFormat = B); 16735 }, 16736 get warnHtmlMessage() { 16737 return r.value ? r.value.warnHtmlMessage : N; 16738 }, 16739 set warnHtmlMessage(B) { 16740 r.value && (r.value.warnHtmlMessage = B); 16741 }, 16742 get escapeParameter() { 16743 return r.value ? r.value.escapeParameter : v; 16744 }, 16745 set escapeParameter(B) { 16746 r.value && (r.value.escapeParameter = B); 16747 }, 16748 t: J, 16749 getPostTranslationHandler: P, 16750 setPostTranslationHandler: G, 16751 getMissingHandler: X, 16752 setMissingHandler: Y, 16753 rt: Z, 16754 d: se, 16755 n: Q, 16756 tm: oe, 16757 te: ce, 16758 getLocaleMessage: be, 16759 setLocaleMessage: ye, 16760 mergeLocaleMessage: ke, 16761 getDateTimeFormat: Ae, 16762 setDateTimeFormat: _e, 16763 mergeDateTimeFormat: Te, 16764 getNumberFormat: Ee, 16765 setNumberFormat: Le, 16766 mergeNumberFormat: Be 16767 }; 16768 function Ve(B) { 16769 B.locale.value = o.value, B.fallbackLocale.value = l.value, Object.keys(u.value).forEach((ie) => { 16770 B.mergeLocaleMessage(ie, u.value[ie]); 16771 }), Object.keys(c.value).forEach((ie) => { 16772 B.mergeDateTimeFormat(ie, c.value[ie]); 16773 }), Object.keys(d.value).forEach((ie) => { 16774 B.mergeNumberFormat(ie, d.value[ie]); 16775 }), B.escapeParameter = v, B.fallbackFormat = _, B.fallbackRoot = h, B.fallbackWarn = b, B.missingWarn = p, B.warnHtmlMessage = N; 16776 } 16777 return fa(() => { 16778 if (e.proxy == null || e.proxy.$i18n == null) throw nr(Hn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY); 16779 const B = r.value = e.proxy.$i18n.__composer; 16780 t === "global" ? (o.value = B.locale.value, l.value = B.fallbackLocale.value, u.value = B.messages.value, c.value = B.datetimeFormats.value, d.value = B.numberFormats.value) : a && Ve(B); 16781 }), Ie; 16782 } 16783 o$(); 16784 __INTLIFY_JIT_COMPILATION__ ? Bd(ZO) : Bd(QO); 16785 WO(SO); 16786 GO($h); 16787 if (__INTLIFY_PROD_DEVTOOLS__) { 16788 const e = Rn(); 16789 e.__INTLIFY__ = true, NO(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__); 16790 } 16791 const ep = { 16792 yesOrNo: [ 16793 { 16794 label: Ze.global.t("label.yes"), 16795 value: true 16796 }, 16797 { 16798 label: Ze.global.t("label.no"), 16799 value: false 16800 } 16801 ] 16802 }; 16803 function C$(e, t, n = true, i = true) { 16804 if (t instanceof Array) { 16805 const a = S$(e, t, i); 16806 return n ? a.join(", ") : a; 16807 } 16808 return A$(e, t, i); 16809 } 16810 function A$(e, t, n) { 16811 const i = la(e), a = n ? "shortLabel" : "label", r = i.filter((s) => s.value === t); 16812 if (r.length > 1) throw new Error("duplicate option values provided"); 16813 return r.length < 1 ? false : r[0][a] || r[0].label; 16814 } 16815 function S$(e, t, n) { 16816 const i = la(e), a = n ? "shortLabel" : "label"; 16817 return i.filter((r) => t.includes(r.value)).map((r) => r[a] || r.label); 16818 } 16819 function la(e) { 16820 if (typeof e == "string" && ep[e]) return ep[e]; 16821 if (typeof e != "object") throw new TypeError("Invalid inputOption"); 16822 if (e instanceof Array) { 16823 if (!e.length) return []; 16824 if (typeof e[0] == "string") return e.map((t) => ({ 16825 value: t, 16826 label: t 16827 })); 16828 if (typeof e[0] == "object") return e; 16829 } 16830 return Object.keys(e).map((t) => ({ 16831 value: t, 16832 label: e[t] 16833 })); 16834 } 16835 const Xn = { 16836 props: { 16837 options: { 16838 type: [ 16839 Array, 16840 Object, 16841 String 16842 ] 16843 } 16844 }, 16845 computed: { 16846 inputOptionList() { 16847 return this.options ? la(this.options) : []; 16848 } 16849 }, 16850 methods: { 16851 expandOptions: la 16852 } 16853 }, js = { 16854 props: { 16855 layout: { 16856 type: String, 16857 default: "list", 16858 validator(e) { 16859 return [ 16860 "list", 16861 "pairs" 16862 ].includes(e); 16863 } 16864 } 16865 }, 16866 computed: { 16867 inputSize() { 16868 return this.layout !== "list" ? "full-width" : this.size; 16869 } 16870 } 16871 }; 16872 var Vh = { 16873 exports: {} 16874 }; 16875 (function(e, t) { 16876 (function(n, i) { 16877 e.exports = i(); 16878 })(Qt, function() { 16879 return function(n) { 16880 function i(r) { 16881 if (a[r]) return a[r].exports; 16882 var s = a[r] = { 16883 exports: {}, 16884 id: r, 16885 loaded: false 16886 }; 16887 return n[r].call(s.exports, s, s.exports, i), s.loaded = true, s.exports; 16888 } 16889 var a = {};
16890 return i.m = n, i.c = a, i.p = "", i(0); 16891 }([ 16892 function(n, i, a) { 16893 function r(u) { 16894 return u && u.__esModule ? u : { 16895 default: u 16896 }; 16897 } 16898 Object.defineProperty(i, "__esModule", { 16899 value: true 16900 }); 16901 var s = a(3); 16902 Object.defineProperty(i, "conformToMask", { 16903 enumerable: true, 16904 get: function() { 16905 return r(s).default; 16906 } 16907 }); 16908 var o = a(2); 16909 Object.defineProperty(i, "adjustCaretPosition", { 16910 enumerable: true, 16911 get: function() { 16912 return r(o).default; 16913 } 16914 }); 16915 var l = a(5); 16916 Object.defineProperty(i, "createTextMaskInputElement", { 16917 enumerable: true, 16918 get: function() { 16919 return r(l).default; 16920 } 16921 }); 16922 }, 16923 function(n, i) { 16924 Object.defineProperty(i, "__esModule", { 16925 value: true 16926 }), i.placeholderChar = "_", i.strFunction = "function"; 16927 }, 16928 function(n, i) { 16929 function a(o) { 16930 var l = o.previousConformedValue, u = l === void 0 ? s : l, c = o.previousPlaceholder, d = c === void 0 ? s : c, p = o.currentCaretPosition, b = p === void 0 ? 0 : p, h = o.conformedValue, _ = o.rawValue, C = o.placeholderChar, D = o.placeholder, N = o.indexesOfPipedChars, v = N === void 0 ? r : N, y = o.caretTrapIndexes, E = y === void 0 ? r : y; 16931 if (b === 0 || !_.length) return 0; 16932 var k = _.length, A = u.length, L = D.length, w = h.length, z = k - A, T = z > 0, P = A === 0, G = z > 1 && !T && !P; 16933 if (G) return b; 16934 var X = T && (u === h || h === D), Y = 0, q = void 0, J = void 0; 16935 if (X) Y = b - z; 16936 else { 16937 var Z = h.toLowerCase(), se = _.toLowerCase(), Q = se.substr(0, b).split(s), oe = Q.filter(function(He) { 16938 return Z.indexOf(He) !== -1; 16939 }); 16940 J = oe[oe.length - 1]; 16941 var ce = d.substr(0, oe.length).split(s).filter(function(He) { 16942 return He !== C; 16943 }).length, be = D.substr(0, oe.length).split(s).filter(function(He) { 16944 return He !== C; 16945 }).length, ye = be !== ce, ke = d[oe.length - 1] !== void 0 && D[oe.length - 2] !== void 0 && d[oe.length - 1] !== C && d[oe.length - 1] !== D[oe.length - 1] && d[oe.length - 1] === D[oe.length - 2]; 16946 !T && (ye || ke) && ce > 0 && D.indexOf(J) > -1 && _[b] !== void 0 && (q = true, J = _[b]); 16947 for (var Ae = v.map(function(He) { 16948 return Z[He]; 16949 }), _e = Ae.filter(function(He) { 16950 return He === J; 16951 }).length, Te = oe.filter(function(He) { 16952 return He === J; 16953 }).length, Ee = D.substr(0, D.indexOf(C)).split(s).filter(function(He, xt) { 16954 return He === J && _[xt] !== He; 16955 }).length, Le = Ee + Te + _e + (q ? 1 : 0), Be = 0, Ie = 0; Ie < w; Ie++) { 16956 var Ve = Z[Ie]; 16957 if (Y = Ie + 1, Ve === J && Be++, Be >= Le) break; 16958 } 16959 } 16960 if (T) { 16961 for (var B = Y, ie = Y; ie <= L; ie++) if (D[ie] === C && (B = ie), D[ie] === C || E.indexOf(ie) !== -1 || ie === L) return B; 16962 } else if (q) { 16963 for (var Fe = Y - 1; Fe >= 0; Fe--) if (h[Fe] === J || E.indexOf(Fe) !== -1 || Fe === 0) return Fe; 16964 } else for (var qe = Y; qe >= 0; qe--) if (D[qe - 1] === C || E.indexOf(qe) !== -1 || qe === 0) return qe; 16965 } 16966 Object.defineProperty(i, "__esModule", { 16967 value: true 16968 }), i.default = a; 16969 var r = [], s = ""; 16970 }, 16971 function(n, i, a) { 16972 function r() { 16973 var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : c, p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : u, b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; 16974 if (!(0, o.isArray)(p)) { 16975 if ((typeof p > "u" ? "undefined" : s(p)) !== l.strFunction) throw new Error("Text-mask:conformToMask; The mask property must be an array."); 16976 p = p(d, b), p = (0, o.processCaretTraps)(p).maskWithoutCaretTraps; 16977 } 16978 var h = b.guide, _ = h === void 0 || h, C = b.previousConformedValue, D = C === void 0 ? c : C, N = b.placeholderChar, v = N === void 0 ? l.placeholderChar : N, y = b.placeholder, E = y === void 0 ? (0, o.convertMaskToPlaceholder)(p, v) : y, k = b.currentCaretPosition, A = b.keepCharPositions, L = _ === false && D !== void 0, w = d.length, z = D.length, T = E.length, P = p.length, G = w - z, X = G > 0, Y = k + (X ? -G : 0), q = Y + Math.abs(G); 16979 if (A === true && !X) { 16980 for (var J = c, Z = Y; Z < q; Z++) E[Z] === v && (J += v); 16981 d = d.slice(0, Y) + J + d.slice(Y, w); 16982 } 16983 for (var se = d.split(c).map(function(Fe, qe) { 16984 return { 16985 char: Fe, 16986 isNew: qe >= Y && qe < q 16987 }; 16988 }), Q = w - 1; Q >= 0; Q--) { 16989 var oe = se[Q].char; 16990 if (oe !== v) { 16991 var ce = Q >= Y && z === P; 16992 oe === E[ce ? Q - G : Q] && se.splice(Q, 1); 16993 } 16994 } 16995 var be = c, ye = false;
16996 e: for (var ke = 0; ke < T; ke++) { 16997 var Ae = E[ke]; 16998 if (Ae === v) { 16999 if (se.length > 0) for (; se.length > 0; ) { 17000 var _e = se.shift(), Te = _e.char, Ee = _e.isNew; 17001 if (Te === v && L !== true) { 17002 be += v; 17003 continue e; 17004 } 17005 if (p[ke].test(Te)) { 17006 if (A === true && Ee !== false && D !== c && _ !== false && X) { 17007 for (var Le = se.length, Be = null, Ie = 0; Ie < Le; Ie++) { 17008 var Ve = se[Ie]; 17009 if (Ve.char !== v && Ve.isNew === false) break; 17010 if (Ve.char === v) { 17011 Be = Ie; 17012 break; 17013 } 17014 } 17015 Be !== null ? (be += Te, se.splice(Be, 1)) : ke--; 17016 } else be += Te; 17017 continue e; 17018 } 17019 ye = true; 17020 } 17021 L === false && (be += E.substr(ke, T)); 17022 break; 17023 } 17024 be += Ae; 17025 } 17026 if (L && X === false) { 17027 for (var B = null, ie = 0; ie < be.length; ie++) E[ie] === v && (B = ie); 17028 be = B !== null ? be.substr(0, B + 1) : c; 17029 } 17030 return { 17031 conformedValue: be, 17032 meta: { 17033 someCharsRejected: ye 17034 } 17035 }; 17036 } 17037 Object.defineProperty(i, "__esModule", { 17038 value: true 17039 }); 17040 var s = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(d) { 17041 return typeof d; 17042 } : function(d) { 17043 return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d; 17044 }; 17045 i.default = r; 17046 var o = a(4), l = a(1), u = [], c = ""; 17047 }, 17048 function(n, i, a) { 17049 function r() { 17050 var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : p, _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : d.placeholderChar; 17051 if (!s(h)) throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array."); 17052 if (h.indexOf(_) !== -1) throw new Error(`Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character. 17053 17054` + ("The placeholder character that was received is: " + JSON.stringify(_) + ` 17055 17056`) + ("The mask that was received is: " + JSON.stringify(h))); 17057 return h.map(function(C) { 17058 return C instanceof RegExp ? _ : C; 17059 }).join(""); 17060 } 17061 function s(h) { 17062 return Array.isArray && Array.isArray(h) || h instanceof Array; 17063 } 17064 function o(h) { 17065 return typeof h == "string" || h instanceof String; 17066 } 17067 function l(h) { 17068 return typeof h == "number" && h.length === void 0 && !isNaN(h); 17069 } 17070 function u(h) { 17071 return typeof h > "u" || h === null; 17072 } 17073 function c(h) { 17074 for (var _ = [], C = void 0; C = h.indexOf(b), C !== -1; ) _.push(C), h.splice(C, 1); 17075 return { 17076 maskWithoutCaretTraps: h, 17077 indexes: _ 17078 }; 17079 } 17080 Object.defineProperty(i, "__esModule", { 17081 value: true 17082 }), i.convertMaskToPlaceholder = r, i.isArray = s, i.isString = o, i.isNumber = l, i.isNil = u, i.processCaretTraps = c; 17083 var d = a(1), p = [], b = "[]"; 17084 }, 17085 function(n, i, a) { 17086 function r(k) { 17087 return k && k.__esModule ? k : { 17088 default: k 17089 }; 17090 } 17091 function s(k) { 17092 var A = { 17093 previousConformedValue: void 0, 17094 previousPlaceholder: void 0 17095 }; 17096 return { 17097 state: A, 17098 update: function(L) { 17099 var w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : k, z = w.inputElement, T = w.mask, P = w.guide, G = w.pipe, X = w.placeholderChar, Y = X === void 0 ? C.placeholderChar : X, q = w.keepCharPositions, J = q !== void 0 && q, Z = w.showMask, se = Z !== void 0 && Z; 17100 if (typeof L > "u" && (L = z.value), L !== A.previousConformedValue) { 17101 (typeof T > "u" ? "undefined" : c(T)) === v && T.pipe !== void 0 && T.mask !== void 0 && (G = T.pipe, T = T.mask); 17102 var Q = void 0, oe = void 0; 17103 if (T instanceof Array && (Q = (0, _.convertMaskToPlaceholder)(T, Y)), T !== false) { 17104 var ce = l(L), be = z.selectionEnd, ye = A.previousConformedValue, ke = A.previousPlaceholder, Ae = void 0; 17105 if ((typeof T > "u" ? "undefined" : c(T)) === C.strFunction) { 17106 if (oe = T(ce, { 17107 currentCaretPosition: be, 17108 previousConformedValue: ye, 17109 placeholderChar: Y 17110 }), oe === false) return; 17111 var _e = (0, _.processCaretTraps)(oe), Te = _e.maskWithoutCaretTraps, Ee = _e.indexes; 17112 oe = Te, Ae = Ee, Q = (0, _.convertMaskToPlaceholder)(oe, Y); 17113 } else oe = T; 17114 var Le = { 17115 previousConformedValue: ye, 17116 guide: P, 17117 placeholderChar: Y, 17118 pipe: G, 17119 placeholder: Q, 17120 currentCaretPosition: be, 17121 keepCharPositions: J 17122 }, Be = (0, h.default)(ce, oe, Le), Ie = Be.conformedValue, Ve = (typeof G > "u" ? "undefined" : c(G)) === C.strFunction, B = {}; 17123 Ve && (B = G(Ie, u({ 17124 rawValue: ce 17125 }, Le)), B === false ? B = { 17126 value: ye, 17127 rejected: true 17128 }
17128 : (0, _.isString)(B) && (B = { 17129 value: B 17130 })); 17131 var ie = Ve ? B.value : Ie, Fe = (0, p.default)({ 17132 previousConformedValue: ye, 17133 previousPlaceholder: ke, 17134 conformedValue: ie, 17135 placeholder: Q, 17136 rawValue: ce, 17137 currentCaretPosition: be, 17138 placeholderChar: Y, 17139 indexesOfPipedChars: B.indexesOfPipedChars, 17140 caretTrapIndexes: Ae 17141 }), qe = ie === Q && Fe === 0, He = se ? Q : D, xt = qe ? He : ie; 17142 A.previousConformedValue = xt, A.previousPlaceholder = Q, z.value !== xt && (z.value = xt, o(z, Fe)); 17143 } 17144 } 17145 } 17146 }; 17147 } 17148 function o(k, A) { 17149 document.activeElement === k && (y ? E(function() { 17150 return k.setSelectionRange(A, A, N); 17151 }, 0) : k.setSelectionRange(A, A, N)); 17152 } 17153 function l(k) { 17154 if ((0, _.isString)(k)) return k; 17155 if ((0, _.isNumber)(k)) return String(k); 17156 if (k == null) return D; 17157 throw new Error(`The 'value' provided to Text Mask needs to be a string or a number. The value received was: 17158 17159 ` + JSON.stringify(k)); 17160 } 17161 Object.defineProperty(i, "__esModule", { 17162 value: true 17163 }); 17164 var u = Object.assign || function(k) { 17165 for (var A = 1; A < arguments.length; A++) { 17166 var L = arguments[A]; 17167 for (var w in L) Object.prototype.hasOwnProperty.call(L, w) && (k[w] = L[w]); 17168 } 17169 return k; 17170 }, c = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(k) { 17171 return typeof k; 17172 } : function(k) { 17173 return k && typeof Symbol == "function" && k.constructor === Symbol && k !== Symbol.prototype ? "symbol" : typeof k; 17174 }; 17175 i.default = s; 17176 var d = a(2), p = r(d), b = a(3), h = r(b), _ = a(4), C = a(1), D = "", N = "none", v = "object", y = typeof navigator < "u" && /Android/i.test(navigator.userAgent), E = typeof requestAnimationFrame < "u" ? requestAnimationFrame : setTimeout; 17177 } 17178 ]); 17179 }); 17180 })(Vh); 17181 var yu = Vh.exports; 17182 const w$ = { 17183 name: "masked-input", 17184 props: { 17185 modelValue: { 17186 type: String, 17187 required: false, 17188 default: "" 17189 }, 17190 mask: { 17191 type: [ 17192 Array, 17193 Function, 17194 Boolean, 17195 Object 17196 ], 17197 required: true 17198 }, 17199 guide: { 17200 type: Boolean, 17201 required: false 17202 }, 17203 placeholderChar: { 17204 type: String 17205 }, 17206 keepCharPositions: { 17207 type: Boolean, 17208 required: false 17209 }, 17210 pipe: { 17211 type: Function, 17212 required: false 17213 }, 17214 showMask: { 17215 type: Boolean, 17216 required: false 17217 } 17218 }, 17219 emits: [ 17220 "update:model-value" 17221 ], 17222 watch: { 17223 mask: { 17224 handler(e, t) { 17225 this.mask !== t && this.bind(); 17226 }, 17227 deep: true 17228 }, 17229 guide() { 17230 this.bind(); 17231 }, 17232 placeholderChar() { 17233 this.bind(); 17234 }, 17235 keepCharPositions() { 17236 this.bind(); 17237 }, 17238 pipe() { 17239 this.bind(); 17240 }, 17241 showMask() { 17242 this.bind(); 17243 } 17244 }, 17245 mounted() { 17246 this.initMask(); 17247 }, 17248 methods: { 17249 createTextMaskInputElement: yu.createTextMaskInputElement, 17250 setTextMaskInputElement() { 17251 this.textMaskInputElement = this.createTextMaskInputElement({ 17252 inputElement: this.$refs.input, 17253 ...this.$props, 17254 ...this.$attrs 17255 }); 17256 }, 17257 initMask() { 17258 this.setTextMaskInputElement(), this.textMaskInputElement.update(this.modelValue); 17259 }, 17260 bind() { 17261 this.setTextMaskInputElement(), this.updateValue(this.modelValue); 17262 }, 17263 updateValue(e) { 17264 this.textMaskInputElement.update(e), this.$emit("update:model-value", this.$refs.input.value || ""); 17265 }, 17266 inputHandler(e) {
17267 this.updateValue(e.target.value); 17268 } 17269 } 17270 }, L$ = [ 17271 "value" 17272 ]; 17273 function x$(e, t, n, i, a, r) { 17274 return m(), x("input", fe({ 17275 ref: "input" 17276 }, e.$attrs, { 17277 value: n.modelValue, 17278 "data-test-id": "n-masked-input", 17279 onInput: t[0] || (t[0] = (...s) => r.inputHandler && r.inputHandler(...s)) 17280 }), null, 16, L$); 17281 } 17282 const Hh = te(w$, [ 17283 [ 17284 "render", 17285 x$ 17286 ] 17287 ]), O$ = { 17288 name: "n-input", 17289 components: { 17290 Affixment: Sx, 17291 MaskedInput: Hh 17292 }, 17293 inheritAttrs: false, 17294 props: { 17295 ...it, 17296 type: { 17297 type: String, 17298 default: "text" 17299 }, 17300 placeholder: { 17301 type: String 17302 }, 17303 mask: { 17304 type: [ 17305 Object, 17306 Array, 17307 Boolean 17308 ], 17309 default: false 17310 } 17311 }, 17312 emits: [ 17313 "update:modelValue" 17314 ], 17315 computed: { 17316 allPropsAndAttrs() { 17317 let e = { 17318 ...this.$attrs, 17319 id: this.id, 17320 name: this.name, 17321 type: this.inputType, 17322 placeholder: this.placeholder, 17323 "aria-describedby": this.describedByAttr, 17324 min: this.min, 17325 max: this.max 17326 }; 17327 if (this.hasMask) { 17328 let t = Array.isArray(this.mask) ? { 17329 mask: this.mask 17330 } : { 17331 ...this.mask 17332 }; 17333 delete t.name, e = { 17334 ...e, 17335 ...t 17336 }; 17337 } 17338 return e; 17339 }, 17340 hasMask() { 17341 return this.mask && (this.mask.mask || Array.isArray(this.mask)); 17342 }, 17343 inputType() { 17344 return this.type; 17345 }, 17346 affixmentIds() { 17347 return { 17348 prefix: this.prefix || this.affixment && this.affixmentPosition === "left" ? `${this.id}-affixment-prefix` : null, 17349 suffix: this.suffix || this.affixment && this.affixmentPosition === "right" ? `${this.id}-affixment-suffix` : null 17350 }; 17351 }, 17352 describedByAttr() { 17353 const e = Object.values(this.affixmentIds); 17354 return ql([ 17355 e, 17356 this.describedBy 17357 ], { 17358 nullReturnValue: null 17359 }); 17360 }, 17361 maskInputClasses() { 17362 return [ 17363 this.inputClass, 17364 `n-input--${this.inputType}`, 17365 this.mask.name ? `n-input--${this.mask.name}` : null 17366 ]; 17367 } 17368 }, 17369 methods: { 17370 inputHandler(e) { 17371 this.$emit("update:modelValue", e.target ? e.target.value : e); 17372 } 17373 } 17374 }, $$ = [ 17375 "value" 17376 ]; 17377 function T$(e, t, n, i, a, r) { 17378 const s = j("Affixment"), o = j("MaskedInput"); 17379 return m(), x("div", { 17380 class: R([ 17381 [ 17382 `${e.$options.name}-wrapper`, 17383 `n-input-wrapper--${e.size}`, 17384 e.state ? `is-${e.state}` : "" 17385 ], 17386 "n-input-wrapper" 17387 ]) 17388 }, [ 17389 V(e.$slots, "left", {}, () => [ 17390 e.prefix ? (m(), U(s, { 17391 key: 0, 17392 id: r.affixmentIds.prefix, 17393 position: "left" 17394 }, { 17395 default: I(() => [ 17396 re(H(e.prefix), 1) 17397 ]), 17398 _: 1 17399 }, 8, [ 17400 "id" 17401 ])) : M("", true), 17402 e.affixment && e.affixmentPosition === "left" && !e.prefix ? (m(), U(s, { 17403 key: 1, 17404 id: r.affixmentIds.prefix, 17405 position: e.affixmentPosition 17406 }, { 17407 default: I(() => [ 17408 re(H(e.affixment), 1) 17409 ]), 17410 _: 1 17411 }, 8, [ 17412 "id", 17413 "position" 17414 ])) : M("", true) 17415 ]), 17416 r.hasMask ? (m(), U(o, fe({ 17417 key: 0 17418 }, r.allPropsAndAttrs, { 17419 ref: "input", 17420 class: [ 17421 r.maskInputClasses, 17422 "n-input" 17423 ], 17424 "model-value": e.modelValue, 17425 "onUpdate:modelValue": r.inputHandler 17426 }), null, 16, [ 17427 "class", 17428 "model-value", 17429 "onUpdate:modelValue" 17430 ])) : (m(), x("input", fe({ 17431 key: 1 17432 }, r.allPropsAndAttrs, { 17433 ref: "input", 17434 class: [ 17435 [ 17436 e.inputClass, 17437 `n-input--${r.inputType}` 17438 ], 17439 "n-input" 17440 ], 17441 value: e.modelValue, 17442 onInput: t[0] || (t[0] = (...l) => r.inputHandler && r.inputHandler(...l)) 17443 }), null, 16, $$)), 17444 V(e.$slots, "right", {}, () => [ 17445 e.affixment && e.affixmentPosition === "right" && !e.suffix ? (m(), U(s, { 17446 key: 0, 17447 id: r.affixmentIds.suffix, 17448 position: e.affixmentPosition 17449 }, { 17450 default: I(() => [ 17451 re(H(e.affixment), 1) 17452 ]), 17453 _: 1 17454 }, 8, [ 17455 "id", 17456 "position" 17457 ])) : M("", true), 17458 e.suffix ? (m(), U(s, { 17459 key: 1, 17460 id: r.affixmentIds.suffix, 17461 position: "right" 17462 }, { 17463 default: I(() => [ 17464 re(H(e.suffix), 1) 17465 ]), 17466 _: 1 17467 }, 8, [ 17468 "id" 17469 ])) : M("", true) 17470 ]) 17471 ], 2); 17472 } 17473 let I$, F$, N$, D$; 17474 Mt = te(O$, [ 17475 [ 17476 "render", 17477 T$ 17478 ] 17479 ]); 17480 I$ = { 17481 name: "n-input-option-checkable", 17482 components: { 17483 Icon: Tt 17484 }, 17485 inheritAttrs: false, 17486 props: { 17487 type: { 17488 type: String, 17489 default: "checkbox", 17490 validator: (e) => [ 17491 "radio", 17492 "checkbox" 17493 ].includes(e) 17494 }, 17495 name: { 17496 type: String 17497 }, 17498 label: { 17499 type: String 17500 }, 17501 description: { 17502 type: String 17503 }, 17504 id: it.id, 17505 size: it.size, 17506 describedBy: it.describedBy, 17507 value: { 17508 type: [ 17509 String, 17510 Number, 17511 Boolean, 17512 Array 17513 ] 17514 }, 17515 checked: { 17516 type: Boolean 17517 }, 17518 format: { 17519 type: String, 17520 default: "framed", 17521 validator: (e) => [ 17522 "framed", 17523 "compact" 17524 ].includes(e) 17525 }, 17526 excludeIcons: { 17527 type: Boolean 17528 }, 17529 wrapperClass: { 17530 type: String 17531 } 17532 }, 17533 emits: [ 17534 "change" 17535 ], 17536 computed: { 17537 baseIcon() { 17538 return this.type === "radio" ? "radioButton" : "checkbox"; 17539 }, 17540 icon() { 17541 return this.baseIcon + this.checked ? "Check" : ""; 17542 }, 17543 attrs() { 17544 return Object.fromEntries(Object.entries(this.$attrs).filter(([e]) => ![ 17545 "class", 17546 "style" 17547 ].includes(e))); 17548 } 17549 }, 17550 methods: { 17551 changeHandler() { 17552 this.$emit("change", !this.checked); 17553 } 17554 } 17555 }; 17556 F$ = [ 17557 "id", 17558 "checked", 17559 "type", 17560 "name", 17561 "value", 17562 "aria-describedby" 17563 ]; 17564 N$ = [ 17565 "for" 17566 ]; 17567 D$ = { 17568 key: 0, 17569 class: "small n:mb-0 n:mt-xs" 17570 }; 17571 function P$(e, t, n, i, a, r) { 17572 const s = j("Icon"); 17573 return m(), x("div", { 17574 "data-test-id": "n-input-option-checkable", 17575 class: R([ 17576 `n-${n.type}`, 17577 `n-${n.type}--${n.size}`, 17578 `n-${n.type}--${n.format}`, 17579 n.wrapperClass || null, 17580 e.$attrs.class 17581 ]) 17582 }, [ 17583 O("input", fe(r.attrs, { 17584 id: n.id, 17585 ref: "input", 17586 checked: n.checked, 17587 type: n.type, 17588 class: [ 17589 `n-${n.type}__input`, 17590 "is-sr-only" 17591 ], 17592 name: n.name, 17593 value: n.value, 17594 "aria-describedby": n.describedBy, 17595 onChange: t[0] || (t[0] = (...o) => r.changeHandler && r.changeHandler(...o)) 17596 }), null, 16, F$), 17597 O("label", { 17598 class: R(`n-${n.type}__label n-${n.type}__label--${n.format}`), 17599 for: n.id || null 17600 }, [ 17601 n.excludeIcons ? M("", true) : (m(), x("span", { 17602 key: 0, 17603 class: R([ 17604 `n-${n.type}__icon-wrapper`, 17605 "n:flex n:py-xs" 17606 ]) 17607 }, [ 17608 K(s, { 17609 class: R([ 17610 `n-${n.type}__icon`, 17611 `n-${n.type}__icon-unchecked` 17612 ]), 17613 icon: r.baseIcon 17614 }, null, 8, [ 17615 "class", 17616 "icon" 17617 ]), 17618 K(s, { 17619 class: R([ 17620 [ 17621 `n-${n.type}__icon`, 17622 `n-${n.type}__icon-checked` 17623 ], 17624 "is-color-secondary" 17625 ]), 17626 icon: `${r.baseIcon}Check` 17627 }, null, 8, [ 17628 "class", 17629 "icon" 17630 ]) 17631 ], 2)), 17632 O("span", { 17633 class: R([ 17634 `n-${n.type}__visible-selection`, 17635 "n:py-xs" 17636 ]) 17637 }, [ 17638 O("span", { 17639 class: R({ 17640 "is-bold": n.description 17641 }) 17642 }, [ 17643 V(e.$slots, "label", {}, () => [ 17644 re(H(n.label), 1) 17645 ]) 17646 ], 2), 17647 n.description ? (m(), x("span", D$, H(n.description), 1)) : M("", true) 17648 ], 2) 17649 ], 10, N$) 17650 ], 2); 17651 } 17652 const zs = te(I$, [ 17653 [ 17654 "render", 17655 P$ 17656 ] 17657 ]), B$ = { 17658 name: "n-checkbox", 17659 components: { 17660 InputOptionCheckable: zs 17661 }, 17662 props: { 17663 ...it, 17664 modelValue: { 17665 type: Boolean 17666 }, 17667 label: { 17668 type: String 17669 }, 17670 description: { 17671 type: String 17672 }, 17673 format: { 17674 type: String 17675 } 17676 }, 17677 emits: [ 17678 "update:model-value" 17679 ], 17680 methods: { 17681 inputHandler(e) { 17682 this.$emit("update:model-value", e); 17683 } 17684 }, 17685 fieldConfig: { 17686 field: { 17687 hintPosition: "after" 17688 }, 17689 input(e) { 17690 return { 17691 label: e.label, 17692 description: e.description 17693 }; 17694 }, 17695 overrides: { 17696 field(e) { 17697 return delete e.label, delete e.description, e; 17698 } 17699 } 17700 }, 17701 compatConfig: { 17702 MODE: 3 17703 } 17704 }; 17705 function M$(e, t, n, i, a, r) { 17706 const s = j("InputOptionCheckable"); 17707 return m(), U(s, fe(e.$attrs, { 17708 id: e.id, 17709 size: e.size, 17710 class: [ 17711 e.inputClass, 17712 "n-checkbox--single" 17713 ], 17714 name: e.name, 17715 label: n.label, 17716 format: n.format, 17717 description: n.description,
17718 "described-by": e.describedBy, 17719 checked: n.modelValue, 17720 type: "checkbox", 17721 onChange: r.inputHandler 17722 }), $n({ 17723 _: 2 17724 }, [ 17725 e.$slots.label ? { 17726 name: "label", 17727 fn: I(() => [ 17728 V(e.$slots, "label") 17729 ]), 17730 key: "0" 17731 } : void 0 17732 ]), 1040, [ 17733 "id", 17734 "size", 17735 "class", 17736 "name", 17737 "label", 17738 "format", 17739 "description", 17740 "described-by", 17741 "checked", 17742 "onChange" 17743 ]); 17744 } 17745 let ka, R$; 17746 jh = te(B$, [ 17747 [ 17748 "render", 17749 M$ 17750 ] 17751 ]); 17752 ka = { 17753 computed: { 17754 inputListeners() { 17755 let e = { 17756 ...this.$attrs 17757 }; 17758 return e.input && delete e.input, e; 17759 } 17760 } 17761 }; 17762 R$ = { 17763 name: "n-checkbox-group", 17764 components: { 17765 InputOptionCheckable: zs 17766 }, 17767 mixins: [ 17768 Xn, 17769 js, 17770 ka 17771 ], 17772 inheritAttrs: false, 17773 props: { 17774 ...it, 17775 modelValue: { 17776 type: Array, 17777 default: () => [] 17778 }, 17779 resetOption: { 17780 type: String, 17781 default: "" 17782 }, 17783 allOption: { 17784 type: String, 17785 default: "" 17786 }, 17787 format: { 17788 type: String 17789 } 17790 }, 17791 emits: [ 17792 "update:modelValue" 17793 ], 17794 methods: { 17795 changeHandler(e, t) { 17796 Array.isArray(this.modelValue) ? t ? this.modelValue.filter((n) => n === e).length || this.$emit("update:modelValue", [ 17797 ...this.modelValue, 17798 e 17799 ]) : this.$emit("update:modelValue", this.modelValue.filter((n) => n !== e)) : t ? this.$emit("update:modelValue", [ 17800 e 17801 ]) : this.$emit("update:modelValue", []); 17802 }, 17803 resetHandler(e) { 17804 this.modelValue.length ? this.$emit("update:modelValue", []) : e.preventDefault(); 17805 }, 17806 allHandler(e) { 17807 this.modelValue.length === this.inputOptionList.length ? this.$emit("update:modelValue", []) : this.$emit("update:modelValue", this.inputOptionList.map((t) => t.value)); 17808 } 17809 }, 17810 fieldConfig: { 17811 field: { 17812 isFieldset: true, 17813 hintPosition: "before" 17814 } 17815 }, 17816 compatConfig: { 17817 MODE: 3 17818 } 17819 }; 17820 function U$(e, t, n, i, a, r) { 17821 const s = j("InputOptionCheckable"); 17822 return m(), x("div", { 17823 class: R(`n-checkbox-group n-checkbox-group--${e.size} n-checkbox-group--${e.layout}`) 17824 }, [ 17825 n.resetOption ? (m(), U(s, fe({ 17826 key: 0, 17827 id: `${e.id}-checkbox-reset`, 17828 "described-by": e.describedBy, 17829 class: e.inputClass, 17830 name: e.name ? e.name : e.id, 17831 label: n.resetOption, 17832 checked: !n.modelValue.length, 17833 size: e.inputSize, 17834 format: n.format, 17835 value: "", 17836 type: "checkbox" 17837 }, Fr(e.inputListeners), { 17838 onClick: r.resetHandler 17839 }), null, 16, [ 17840 "id", 17841 "described-by", 17842 "class", 17843 "name", 17844 "label", 17845 "checked", 17846 "size", 17847 "format", 17848 "onClick" 17849 ])) : M("", true), 17850 n.allOption ? (m(), U(s, fe({ 17851 key: 1, 17852 id: `${e.id}-checkbox-all`, 17853 "described-by": e.describedBy, 17854 class: e.inputClass, 17855 name: e.name ? e.name : e.id, 17856 label: n.allOption, 17857 checked: n.modelValue.length === e.inputOptionList.length, 17858 size: e.inputSize, 17859 format: n.format, 17860 value: "", 17861 type: "checkbox" 17862 }, Fr(e.inputListeners), { 17863 onClick: r.allHandler 17864 }), null, 16, [ 17865 "id", 17866 "described-by", 17867 "class", 17868 "name", 17869 "label", 17870 "checked", 17871 "size", 17872 "format", 17873 "onClick" 17874 ])) : M("", true), 17875 (m(true), x(me, null, ve(e.inputOptionList, (o, l) => (m(), U(s, fe({ 17876 id: `${e.id}-checkbox-${l}`, 17877 key: o.name, 17878 "described-by": e.describedBy, 17879 class: e.inputClass, 17880 name: e.name ? e.name : e.id, 17881 ref_for: true 17882 }, { 17883 ...e.$attrs, 17884 ...o 17885 }, { 17886 format: n.format, 17887 checked: n.modelValue.includes(o.value), 17888 size: e.inputSize, 17889 type: "checkbox" 17890 }, Fr(e.inputListeners), { 17891 onChange: (u) => r.changeHandler(o.value, u) 17892 }), null, 16, [ 17893 "id", 17894 "described-by", 17895 "class", 17896 "name", 17897 "format", 17898 "checked", 17899 "size", 17900 "onChange" 17901 ]))), 128)) 17902 ], 2); 17903 } 17904 const _u = te(R$, [ 17905 [ 17906 "render", 17907 U$ 17908 ] 17909 ]), V$ = { 17910 name: "n-choice-button-bar", 17911 components: { 17912 InputOptionCheckable: zs 17913 }, 17914 mixins: [ 17915 Xn, 17916 js, 17917 ka 17918 ], 17919 inheritAttrs: false, 17920 props: { 17921 ...it, 17922 multiple: { 17923 type: Boolean 17924 }, 17925 modelValue: { 17926 type: [ 17927 String, 17928 Number, 17929 Boolean, 17930 Array 17931 ], 17932 default: () => [] 17933 }, 17934 theme: { 17935 type: String, 17936 default: "secondary", 17937 validator(e) { 17938 return [ 17939 "primary", 17940 "secondary" 17941 ].includes(e); 17942 } 17943 } 17944 }, 17945 emits: [ 17946 "update:model-value" 17947 ], 17948 methods: { 17949 changeHandler(e, t) { 17950 this.multiple && (t ? this.modelValue.filter((n) => n === e).length || this.$emit("update:model-value", [ 17951 ...this.modelValue, 17952 e 17953 ]) : this.$emit("update:model-value", this.modelValue.filter((n) => n !== e))), this.multiple || this.$emit("update:model-value", e); 17954 } 17955 }, 17956 fieldConfig: { 17957 field: { 17958 isFieldset: true, 17959 hintPosition: "before" 17960 } 17961 }, 17962 compatConfig: { 17963 MODE: 3 17964 } 17965 }; 17966 function H$(e, t, n, i, a, r) { 17967 const s = j("InputOptionCheckable"); 17968 return m(), x("div", { 17969 class: R(`n-choice-btn-bar n-choice-btn-bar--${e.size} n-choice-btn-bar--${e.layout} n-choice-btn-bar--${n.theme}`) 17970 }, [ 17971 (m(true), x(me, null, ve(e.inputOptionList, (o) => (m(), U(s, fe({ 17972 ref_for: true 17973 }, { 17974 ...e.$attrs, 17975 ...o 17976 }, { 17977 key: o.name,
17978 "described-by": e.describedBy, 17979 "wrapper-class": "n-choice-btn", 17980 name: e.id, 17981 checked: n.modelValue !== void 0 ? o.value === n.modelValue : void 0, 17982 size: e.inputSize, 17983 type: n.multiple ? "checkbox" : "radio", 17984 "exclude-icons": "" 17985 }, Fr(e.inputListeners), { 17986 onChange: (l) => r.changeHandler(o.value, l) 17987 }), null, 16, [ 17988 "described-by", 17989 "name", 17990 "checked", 17991 "size", 17992 "type", 17993 "onChange" 17994 ]))), 128)) 17995 ], 2); 17996 } 17997 let z$; 17998 j$ = te(V$, [ 17999 [ 18000 "render", 18001 H$ 18002 ] 18003 ]); 18004 z$ = { 18005 name: "n-datepicker", 18006 components: { 18007 Field: Rs 18008 }, 18009 inheritAttrs: false, 18010 props: { 18011 id: it.id, 18012 state: it.state, 18013 size: it.size, 18014 describedBy: it.describedBy, 18015 inputFormat: { 18016 type: String 18017 }, 18018 modelValue: { 18019 type: [ 18020 String, 18021 Date, 18022 Array 18023 ] 18024 }, 18025 dateInputProps: { 18026 type: Object, 18027 default: () => ({}) 18028 }, 18029 dateFieldProps: { 18030 type: Object, 18031 default: () => ({}) 18032 }, 18033 dateFormat: { 18034 type: String, 18035 default: "localDate", 18036 validator: (e) => [ 18037 "localDate", 18038 "utcDate", 18039 "isoString" 18040 ].includes(e) 18041 } 18042 }, 18043 emits: [ 18044 "update:model-value" 18045 ], 18046 data() { 18047 return { 18048 values: { 18049 month: void 0, 18050 day: void 0, 18051 year: void 0 18052 } 18053 }; 18054 }, 18055 computed: { 18056 fields() { 18057 return { 18058 month: { 18059 ...this.dateFieldProps.month ? this.dateFieldProps.month : [] 18060 }, 18061 day: { 18062 ...this.dateFieldProps.day ? this.dateFieldProps.day : [] 18063 }, 18064 year: { 18065 ...this.dateFieldProps.year ? this.dateFieldProps.year : [] 18066 } 18067 }; 18068 }, 18069 inputs() { 18070 return { 18071 month: { 18072 type: xi, 18073 props: { 18074 size: "full-width", 18075 options: Af(this.$i18n.locale).months.map((e, t) => ({ 18076 label: e, 18077 value: (t + 1).toString() 18078 })), 18079 ...this.dateInputProps.month ? this.dateInputProps.month : [] 18080 } 18081 }, 18082 day: { 18083 type: us, 18084 min: 1, 18085 max: 31, 18086 props: { 18087 inputmode: "numeric", 18088 size: this.size === "full-width" ? this.size : "short", 18089 mask: { 18090 mask: function(e) { 18091 const t = parseInt(e.charAt(0)); 18092 return [ 18093 1, 18094 2 18095 ].includes(t) ? [ 18096 /[0-3]/, 18097 /\d/ 18098 ] : t === 3 ? [ 18099 /[0-3]/, 18100 /[0-1]/ 18101 ] : [ 18102 /[1-9]/ 18103 ]; 18104 }, 18105 guide: false, 18106 name: "day" 18107 }, 18108 ...this.dateInputProps.day ? this.dateInputProps.day : [] 18109 } 18110 }, 18111 year: { 18112 type: us, 18113 min: 1, 18114 props: { 18115 inputmode: "numeric", 18116 size: this.size === "full-width" ? this.size : "short", 18117 mask: { 18118 mask: function(e) { 18119 const t = parseInt(e.charAt(0)); 18120 return t === 2 ? [ 18121 /2/, 18122 /0/, 18123 /\d/, 18124 /\d/ 18125 ] : t === 1 ? [ 18126 /1/, 18127 /9/, 18128 /\d/, 18129 /\d/ 18130 ] : [ 18131 /[1-2]/ 18132 ]; 18133 }, 18134 guide: false, 18135 name: "year" 18136 }, 18137 ...this.dateInputProps.year ? this.dateInputProps.year : [] 18138 } 18139 } 18140 }; 18141 }, 18142 inputsOrder() { 18143 if (!this.inputFormat) return Object.keys(this.inputs); 18144 const e = this.inputFormat.indexOf("-") > -1 ? "-" : "/"; 18145 return this.inputFormat.split(e).map((t) => { 18146 switch (t.toLowerCase().charAt(0)) { 18147 case "m": 18148 return "month"; 18149 case "d": 18150 return "day"; 18151 case "y": 18152 return "year"; 18153 } 18154 }); 18155 }, 18156 listeners() { 18157 return Object.fromEntries(Object.entries(this.$attrs).filter(([e]) => e.startsWith("on"))); 18158 } 18159 }, 18160 watch: { 18161 modelValue: { 18162 handler: function(e) { 18163 this.setValues(e); 18164 }, 18165 immediate: true 18166 } 18167 }, 18168 methods: { 18169 setValues(e) { 18170 if (!(!e && e !== null)) if (e === null) this.values.month
18170= void 0, this.values.day = void 0, this.values.year = void 0; 18171 else if (Array.isArray(e)) e.map((t, n) => { 18172 this.values[this.inputsOrder[n]] = parseInt(t).toString(); 18173 }); 18174 else if (e.length === 4) this.values.year = parseInt(e).toString(); 18175 else if (this.dateFormat === "utcDate") { 18176 const t = new Date(e); 18177 this.values.month = this.inputsOrder.includes("month") ? (t.getUTCMonth() + 1).toString() : void 0, this.values.day = this.inputsOrder.includes("day") ? t.getUTCDate().toString() : void 0, this.values.year = this.inputsOrder.includes("year") ? t.getUTCFullYear().toString() : void 0; 18178 } else this.values.month = this.inputsOrder.includes("month") ? eo(e, { 18179 format: "M" 18180 }) : void 0, this.values.day = this.inputsOrder.includes("day") ? eo(e, { 18181 format: "D" 18182 }) : void 0, this.values.year = this.inputsOrder.includes("year") ? eo(e, { 18183 format: "YYYY" 18184 }) : void 0; 18185 }, 18186 getInputOrder(e) { 18187 const t = e.indexOf("-") > -1 ? "-" : "/"; 18188 return e.split(t).map((n) => { 18189 switch (n.toLowerCase().charAt(0)) { 18190 case "m": 18191 return "month"; 18192 case "d": 18193 return "day"; 18194 case "y": 18195 return "year"; 18196 } 18197 }); 18198 }, 18199 formatEmittedValue() { 18200 const e = { 18201 year: { 18202 valid: this.values.year && this.values.year.length === 4 18203 }, 18204 month: { 18205 valid: this.values.month && this.values.month.length 18206 }, 18207 day: { 18208 valid: this.values.day && this.values.day.length 18209 } 18210 }, t = Object.keys(e).map((i) => e[i].valid ? this.values[i] : null).filter(Boolean); 18211 if (t.length !== this.inputsOrder.length) return; 18212 let n = t.length === 1 ? t.pop() : this.inputsOrder.map((i) => this.values[i]); 18213 if (t.length === 3) { 18214 let i = [ 18215 ...t 18216 ]; 18217 i[1]--; 18218 const a = { 18219 utcDate: () => new Date(Date.UTC(...i)), 18220 isoString: () => { 18221 const r = t[0], s = t[1].padStart(2, "0"), o = t[2].padStart(2, "0"); 18222 return `${r}-${s}-${o}`; 18223 }, 18224 localDate: () => new Date(...i) 18225 }; 18226 n = (a[this.dateFormat] || a.localDate)(); 18227 } 18228 return n; 18229 }, 18230 handleInput() { 18231 this.$emit("update:model-value", this.formatEmittedValue()); 18232 } 18233 }, 18234 fieldConfig: { 18235 field: { 18236 isFieldset: true, 18237 hintPosition: "after" 18238 } 18239 }, 18240 compatConfig: { 18241 MODE: 3 18242 } 18243 }; 18244 function W$(e, t, n, i, a, r) { 18245 const s = j("Field"); 18246 return m(), x("div", { 18247 class: R([ 18248 `n-input-wrapper--${n.size}`, 18249 "n-input-datepicker n-input-wrapper n:flex" 18250 ]) 18251 }, [ 18252 (m(true), x(me, null, ve(r.inputsOrder, (o, l) => (m(), U(s, { 18253 key: o, 18254 "input-id": `${n.id}-${o}`, 18255 label: r.fields[o].label || e.$t("dateLabels." + o), 18256 state: n.state, 18257 class: R([ 18258 [ 18259 `n-input-datepicker__${o}`, 18260 { 18261 "n:ml-0": l === 0, 18262 "n:mr-0": l + 1 === r.inputsOrder.length 18263 } 18264 ], 18265 "n:mb-0" 18266 ]), 18267 size: r.inputs[o].props.size 18268 }, { 18269 default: I(() => [ 18270 (m(), U(ue(r.inputs[o].type), fe({ 18271 id: `${n.id}-${o}`, 18272 ref_for: true, 18273 ref: o 18274 }, { 18275 ...r.listeners, 18276 ...r.inputs[o].props 18277 }, { 18278 modelValue: a.values[o], 18279 "onUpdate:modelValue": [ 18280 (u) => a.values[o] = u, 18281 r.handleInput 18282 ], 18283 state: n.state, 18284 "described-by": n.describedBy 18285 }), null, 16, [ 18286 "id", 18287 "modelValue", 18288 "onUpdate:modelValue", 18289 "state", 18290 "described-by" 18291 ])) 18292 ]), 18293 _: 2 18294 }, 1032, [ 18295 "input-id", 18296 "label", 18297 "state", 18298 "class", 18299 "size" 18300 ]))), 128)) 18301 ], 2); 18302 } 18303 const G$ = te(z$, [ 18304 [ 18305 "render", 18306 W$ 18307 ] 18308 ]); 18309 function q$(e, t) { 18310 let n, i, a; 18311 const r = pe(true), s = () => { 18312 r.value = true, a(); 18313 }; 18314 Ue(e, s, { 18315 flush: "sync" 18316 }); 18317 const o = typeof t == "function" ? t : t.get, l = typeof t == "function" ? void 0 : t.set, u = bs((c, d) => (i = c, a = d, { 18318 get() { 18319 return r.value && (n = o(), r.value = false), i(), n; 18320 }, 18321 set(p) { 18322 l == null ? void 0 : l(p); 18323 } 18324 })); 18325 return Object.isExtensible(u) && (u.trigger = s), u; 18326 } 18327 typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope; 18328 function Y$(e) { 18329 const t = kt(), n = q$(() => null, () => t.proxy.$el); 18330 return gb(n.trigger), nn(n.trigger), n; 18331 } 18332 let K$, X$, J$, Q$, Z$, e2, t2, n2, Vr, Ws, r2, i2, a2, s2, o2, l2, u2, c2, d2, p2, f2, m2, h2, g2, b2, v2; 18333 K$ = { 18334 class: "row" 18335 }; 18336 X$ = { 18337 class: "col col-12" 18338 }; 18339 J$ = { 18340 key: 0, 18341 class: "n-collapse__hybrid-container is-hidden-md-down" 18342 }; 18343 Q$ = [ 18344 "id" 18345 ]; 18346 Z$ = [ 18347 "id", 18348 "aria-expanded", 18349 "aria-controls" 18350 ]; 18351 e2 = [ 18352 "id", 18353 "aria-hidden" 18354 ]; 18355 t2 = { 18356 key: 0, 18357 class: "n-collapse__button-wrapper" 18358 }; 18359 n2 = { 18360 name: "n-collapse", 18361 mixins: [ 18362 nt, 18363 Ge 18364 ] 18365 }; 18366 Vr = Object.assign(n2, { 18367 props: { 18368 ...nt.props, 18369 title: we.title, 18370 titleHeadingLevel: { 18371 ...we.titleHeadingLevel, 18372 default: 3 18373 }, 18374 titleStyle: { 18375 ...we.titleHeadingStyle, 18376 default: "h4" 18377 }, 18378 modelValue: { 18379 type: Boolean 18380 }, 18381 variant: { 18382 type: String, 18383 default: "drawer" 18384 }, 18385 content: { 18386 type: String 18387 }, 18388 className: { 18389 type: String, 18390 default: "" 18391 }, 18392 contentClasses: { 18393 type: String, 18394 default: "" 18395 }, 18396 clearContentSpacing: { 18397 type: Boolean 18398 }, 18399 open: { 18400 type: Boolean, 18401 default: void 0 18402 }, 18403 initialOpen: { 18404 type: Boolean 18405 }, 18406 isList: { 18407 type: Boolean 18408 }, 18409 removeGutter: { 18410 type: Boolean 18411 }, 18412 fullWidth: { 18413 type: Boolean 18414 }, 18415 titleTag: { 18416 type: String 18417 }, 18418 hideCloseButton: { 18419 type: Boolean 18420 },
18421 buttonClasses: { 18422 type: String 18423 }, 18424 closeAriaLabel: { 18425 type: String 18426 } 18427 }, 18428 emits: [ 18429 "update:open" 18430 ], 18431 setup(e, { emit: t }) { 18432 const n = Y$(), i = pe(null), a = t, r = e, s = Br("collapseListProps", {}), o = pe(s), l = ne(() => r.variant === "accordion"), u = ne(() => r.variant === "drawer"), c = ne(() => r.variant === "drawer-hybrid"); 18433 let d = pe(r.initialOpen), p = ne({ 18434 get() { 18435 return r.open ? r.open : d.value; 18436 }, 18437 set(k) { 18438 r.open ? a("update:open", k) : d.value = k; 18439 } 18440 }); 18441 const b = ne(() => !!(r.removeGutter || s && s.removeGutter)), h = ne(() => !!(r.fullWidth || s && s.fullWidth)), _ = ne(() => l.value ? p.value ? "chevronUp" : "chevron" : p.value ? "minus" : "plus"), C = ne(() => !r.isList && s ? s.isSemanticList : r.isList), D = ne(() => C.value ? "li" : "div"), N = ne(() => r.titleTag || `h${r.titleHeadingLevel}`); 18442 function v() { 18443 p.value = true, l.value && s.setExpandedCollapse(r.id); 18444 } 18445 function y(k) { 18446 p.value = false, k && (i.value ? Qi(i.value) : Qi(n.value)); 18447 } 18448 function E() { 18449 if (u.value && (s.openAll = null), p.value) { 18450 y(); 18451 return; 18452 } 18453 v(); 18454 } 18455 return nn(() => { 18456 n.value && tn(n.value); 18457 }), Ue(o.value, () => { 18458 o.value.currentExpandedCollapse !== r.id && l.value && y(); 18459 }), Ue(p, (k) => { 18460 oi({ 18461 action: k ? "show" : "hide", 18462 component: r.variant, 18463 category: "disclosure", 18464 name: r.title 18465 }, i.value); 18466 }), Ue(() => s.openAll, (k) => { 18467 u.value && k !== null && (p.value = k); 18468 }), (k, A) => (m(), U(ue(D.value), { 18469 class: R([ 18470 [ 18471 `n-collapse__list-item--${e.variant}`, 18472 { 18473 "is-active-item": ae(p) 18474 }, 18475 h.value ? "container" : "container-compressed", 18476 b.value ? "n-collapse__list-item-remove-gutter" : "" 18477 ], 18478 "n-collapse__list-item n:p-0" 18479 ]) 18480 }, { 18481 default: I(() => [ 18482 O("div", K$, [ 18483 O("div", X$, [ 18484 c.value ? (m(), x("div", J$, [ 18485 (m(), U(ue(N.value), { 18486 class: R(e.titleStyle) 18487 }, { 18488 default: I(() => [ 18489 V(k.$slots, "title", Pt(Bt({ 18490 title: e.title, 18491 open: ae(p) 18492 })), () => [ 18493 re(H(e.title), 1) 18494 ]) 18495 ]), 18496 _: 3 18497 }, 8, [ 18498 "class" 18499 ])), 18500 V(k.$slots, "default") 18501 ])) : M("", true), 18502 O("div", { 18503 id: `${k.id}-collapse-item`, 18504 class: R([ 18505 [ 18506 { 18507 "is-open": ae(p) 18508 }, 18509 e.className, 18510 `n-collapse--${e.variant}`, 18511 { 18512 "is-hidden-lg-up": c.value 18513 } 18514 ], 18515 "n-collapse" 18516 ]) 18517 }, [ 18518 (m(), U(ue(N.value), { 18519 class: "n-collapse__summary-wrapper" 18520 }, { 18521 default: I(() => [ 18522 O("button", { 18523 id: `${k.id}-collapse-summary`, 18524 ref_key: "summary", 18525 ref: i, 18526 "aria-expanded": ae(p) ? "true" : "false", 18527 "aria-controls": `${k.id}-collapse-content`, 18528 class: R(`n-collapse__summary n-collapse__summary--${e.variant} ${e.buttonClasses}`), 18529 type: "button", 18530 "data-n-action": "disclosure", 18531 onClick: E 18532 }, [ 18533 O("span", { 18534 class: R([ 18535 "n-collapse__summary-text", 18536 e.titleStyle 18537 ]) 18538 }, [ 18539 V(k.$slots, "title", {}, () => [ 18540 V(k.$slots, "collapse-title", Pt(Bt({ 18541 title: e.title, 18542 open: ae(p) 18543 })), () => [ 18544 re(H(e.title), 1) 18545 ]) 18546 ]) 18547 ], 2), 18548 K(ae(Tt), { 18549 icon: _.value, 18550 class: "n-collapse__summary-icon is-color-primary is-hidden-print" 18551 }, null, 8, [ 18552 "icon" 18553 ]) 18554 ], 10, Z$) 18555 ]), 18556 _: 3 18557 })), 18558 K(ae(Ea), { 18559 name: "expand" 18560 }, { 18561 default: I(() => [ 18562 Je(O("div", { 18563 class: R([ 18564 "n-collapse__content-wrapper", 18565 { 18566 "n:p-0": e.clearContentSpacing 18567 } 18568 ]) 18569 }, [ 18570 O("div", { 18571 id: `${k.id}-collapse-content`, 18572 ref: "content", 18573 "aria-hidden": ae(p) ? "false" : "true", 18574 class: R([ 18575 "n-collapse__content", 18576 [ 18577 `n-collapse__content ${e.contentClasses}`, 18578 { 18579 "n:p-0": e.clearContentSpacing 18580 } 18581 ] 18582 ]) 18583 }, [ 18584 V(k.$slots, "default") 18585 ], 10, e2), 18586 e.variant === "drawer" && !e.hideCloseButton ? (m(), x("div", t2, [ 18587 K(ae(ze), { 18588 id: `${k.id}-collapse-button`, 18589 ref: "close", 18590 "aria-controls": `${k.id}-collapse-content`, 18591 "aria-label": k.$t("label.closeWithContext", [
18592 e.closeAriaLabel || e.title 18593 ]), 18594 "data-collapse-toggle": e.variant, 18595 format: "ghost", 18596 size: "small", 18597 class: "is-clear-margin-top is-clear-margin-right", 18598 onClick: y 18599 }, { 18600 default: I(() => [ 18601 re(H(k.$t("label.close")), 1) 18602 ]), 18603 _: 1 18604 }, 8, [ 18605 "id", 18606 "aria-controls", 18607 "aria-label", 18608 "data-collapse-toggle" 18609 ]) 18610 ])) : M("", true) 18611 ], 2), [ 18612 [ 18613 pt, 18614 ae(p) 18615 ] 18616 ]) 18617 ]), 18618 _: 3 18619 }) 18620 ], 10, Q$) 18621 ]) 18622 ]) 18623 ]), 18624 _: 3 18625 }, 8, [ 18626 "class" 18627 ])); 18628 } 18629 }); 18630 uU = { 18631 __name: "CollapseAccordion", 18632 props: { 18633 ...Vr.props, 18634 variant: { 18635 type: String, 18636 default: "accordion" 18637 } 18638 }, 18639 setup(e) { 18640 const t = e; 18641 return (n, i) => (m(), U(Vr, Pt(Bt(t)), { 18642 "collapse-title": I(() => [ 18643 V(n.$slots, "collapse-title") 18644 ]), 18645 title: I(() => [ 18646 V(n.$slots, "title") 18647 ]), 18648 default: I(() => [ 18649 V(n.$slots, "default") 18650 ]), 18651 _: 3 18652 }, 16)); 18653 } 18654 }; 18655 zh = { 18656 __name: "CollapseDrawer", 18657 props: { 18658 ...Vr.props, 18659 variant: { 18660 type: String, 18661 default: "drawer" 18662 } 18663 }, 18664 setup(e) { 18665 const t = e; 18666 return (n, i) => (m(), U(Vr, Pt(Bt(t)), { 18667 "collapse-title": I(() => [ 18668 V(n.$slots, "collapse-title") 18669 ]), 18670 title: I(() => [ 18671 V(n.$slots, "title") 18672 ]), 18673 default: I(() => [ 18674 V(n.$slots, "default") 18675 ]), 18676 _: 3 18677 }, 16)); 18678 } 18679 }; 18680 Ws = { 18681 __name: "CollapseDrawerHybrid", 18682 props: { 18683 ...Vr.props, 18684 variant: { 18685 type: String, 18686 default: "drawer-hybrid" 18687 }, 18688 titleStyle: { 18689 type: String, 18690 default: "h5" 18691 } 18692 }, 18693 setup(e) { 18694 const t = e; 18695 return (n, i) => (m(), U(Vr, Pt(Bt(t)), { 18696 "collapse-title": I(() => [ 18697 V(n.$slots, "collapse-title") 18698 ]), 18699 title: I(() => [ 18700 V(n.$slots, "title") 18701 ]), 18702 default: I(() => [ 18703 V(n.$slots, "default") 18704 ]), 18705 _: 3 18706 }, 16)); 18707 } 18708 }; 18709 r2 = { 18710 class: "row" 18711 }; 18712 i2 = { 18713 class: "col col-12" 18714 }; 18715 a2 = [ 18716 "innerHTML" 18717 ]; 18718 s2 = { 18719 key: 0, 18720 class: "row has-vertical-dividers n:mb-md", 18721 style: { 18722 "justify-content": "end" 18723 }, 18724 "data-collapsible-controls": "" 18725 }; 18726 o2 = { 18727 class: "n:pr-sm n:m-0 col-auto n:grow-1 n:sm:grow-0" 18728 }; 18729 l2 = { 18730 class: "n:pl-sm n:m-0 col-auto n:grow-1 n:sm:grow-0" 18731 }; 18732 u2 = { 18733 key: 1, 18734 class: "row has-vertical-dividers n:mb-md n:mt-md", 18735 style: { 18736 "justify-content": "end" 18737 }, 18738 "data-collapsible-controls": "" 18739 }; 18740 c2 = { 18741 class: "n:pr-sm n:m-0 col-auto n:grow-1 n:sm:grow-0" 18742 }; 18743 d2 = { 18744 class: "n:pl-sm n:m-0 col-auto n:grow-1 n:sm:grow-0" 18745 }; 18746 p2 = { 18747 "aria-live": "polite", 18748 "aria-atomic": "true", 18749 class: "is-sr-only" 18750 }; 18751 f2 = { 18752 mixins: [ 18753 Lt 18754 ] 18755 }; 18756 Wh = Object.assign(f2, { 18757 __name: "CollapseList", 18758 props: { 18759 ...we, 18760 variant: { 18761 type: String, 18762 default: "drawer" 18763 }, 18764 removeGutter: { 18765 type: Boolean 18766 }, 18767 fullWidth: { 18768 type: Boolean 18769 }, 18770 isList: { 18771 type: Boolean 18772 }, 18773 displayExpandCollapseControls: { 18774 type: Boolean 18775 } 18776 }, 18777 setup(e) { 18778 const { t } = Wr(), n = e, i = pe(null); 18779 let a = pe(false); 18780 const r = ne(() => n.isList || a.value); 18781 let s = pe(null); 18782 function o(h = null) { 18783 s.value = h; 18784 } 18785 const l = qn({ 18786 currentExpandedCollapse: s, 18787 removeGutter: n.removeGutter, 18788 fullWidth: n.fullWidth, 18789 isSemanticList: r, 18790 openAll: i, 18791 setExpandedCollapse: o 18792 }); 18793 Oo("collapseListProps", l); 18794 const u = _i().default(), c = ne(() => n.variant === "drawer"), d = ne(() => i.value === null ? "" : i.value ? t("announcements.expandAll") : t("announcements.collapseAll")); 18795 nn(() => { 18796 u || console.error("Add some Collapse components into this CollapseList's slot"), u && u.length > 1 && (a.value = true); 18797 }); 18798 function p() { 18799 i.value = true; 18800 } 18801 function b() { 18802 i.value = false;
18803 } 18804 return (h, _) => (m(), x("div", { 18805 class: R([ 18806 [ 18807 `n-collapse-list--${e.variant}`, 18808 { 18809 "n-collapse-list--remove-gutter": e.removeGutter 18810 }, 18811 e.fullWidth ? "container" : "container-compressed" 18812 ], 18813 "n-collapse-list" 18814 ]), 18815 "data-n-context": "n-collapse-list" 18816 }, [ 18817 O("div", r2, [ 18818 O("div", i2, [ 18819 h.title ? (m(), U(ue(`h${h.titleHeadingLevel}`), { 18820 key: 0, 18821 class: R([ 18822 h.titleStyle, 18823 "n-content-block__heading" 18824 ]) 18825 }, { 18826 default: I(() => [ 18827 V(h.$slots, "title", {}, () => [ 18828 O("span", { 18829 innerHTML: h.title 18830 }, null, 8, a2) 18831 ]) 18832 ]), 18833 _: 3 18834 }, 8, [ 18835 "class" 18836 ])) : M("", true), 18837 V(h.$slots, "text") 18838 ]) 18839 ]), 18840 r.value && c.value && e.displayExpandCollapseControls ? (m(), x("div", s2, [ 18841 O("div", o2, [ 18842 K(ae(ze), { 18843 format: "ghost", 18844 size: "small", 18845 class: "n:m-0 n:px-sm n:w-full n:sm:w-auto", 18846 onClick: p 18847 }, { 18848 default: I(() => [ 18849 re(H(h.$t("label.expandAll")), 1) 18850 ]), 18851 _: 1 18852 }) 18853 ]), 18854 O("div", l2, [ 18855 K(ae(ze), { 18856 format: "ghost", 18857 size: "small", 18858 class: "n:m-0 n:px-sm n:w-full n:sm:w-auto", 18859 onClick: b 18860 }, { 18861 default: I(() => [ 18862 re(H(h.$t("label.collapseAll")), 1) 18863 ]), 18864 _: 1 18865 }) 18866 ]) 18867 ])) : M("", true), 18868 (m(), U(ue(r.value ? "ul" : "div"), { 18869 class: "n-collapse-list__list" 18870 }, { 18871 default: I(() => [ 18872 V(h.$slots, "default", { 18873 onCloseItems: _[0] || (_[0] = (...C) => h.setActive && h.setActive(...C)) 18874 }) 18875 ]), 18876 _: 3 18877 })), 18878 ae(u).length >= 5 && r.value && c.value && e.displayExpandCollapseControls ? (m(), x("div", u2, [ 18879 O("div", c2, [ 18880 K(ae(ze), { 18881 format: "ghost", 18882 size: "small", 18883 class: "n:m-0 n:px-sm n:w-full n:sm:w-auto", 18884 onClick: p 18885 }, { 18886 default: I(() => [ 18887 re(H(h.$t("label.expandAll")), 1) 18888 ]), 18889 _: 1 18890 }) 18891 ]), 18892 O("div", d2, [ 18893 K(ae(ze), { 18894 format: "ghost", 18895 size: "small", 18896 class: "n:m-0 n:px-sm n:w-full n:sm:w-auto", 18897 onClick: b 18898 }, { 18899 default: I(() => [ 18900 re(H(h.$t("label.collapseAll")), 1) 18901 ]), 18902 _: 1 18903 }) 18904 ]) 18905 ])) : M("", true), 18906 O("div", p2, H(d.value), 1) 18907 ], 2)); 18908 } 18909 }); 18910 m2 = { 18911 name: "n-folding-choice-list", 18912 components: { 18913 CollapseDrawerHybrid: Ws 18914 }, 18915 mixins: [ 18916 Xn 18917 ], 18918 props: { 18919 describedBy: it.describedBy, 18920 multiple: { 18921 type: Boolean 18922 }, 18923 label: { 18924 type: String, 18925 required: true 18926 }, 18927 value: { 18928 type: [ 18929 String, 18930 Array 18931 ] 18932 }, 18933 resetOption: { 18934 type: String, 18935 default: function() { 18936 return Ze.global.t("label.all"); 18937 } 18938 }, 18939 inputSize: { 18940 type: String 18941 }, 18942 inputProps: { 18943 type: Object, 18944 default: () => ({}) 18945 }, 18946 collapseProps: { 18947 type: Object, 18948 default: () => ({}) 18949 } 18950 }, 18951 computed: { 18952 inputComponent() { 18953 return this.multiple ? _u : eg; 18954 }, 18955 count() { 18956 return this.multiple && this.value && this.value.length ? this.value.length : !this.multiple && this.value ? 1 : 0; 18957 }, 18958 labelDetail() { 18959 return this.count ? ` (${this.count})` : ""; 18960 }, 18961 labelText() { 18962 return this.label + this.labelDetail; 18963 } 18964 }, 18965 fieldConfig: { 18966 input(e) { 18967 return { 18968 label: e.label 18969 }; 18970 }, 18971 overrides: { 18972 field(e) { 18973 return { 18974 ...e, 18975 label: "", 18976 description: "" 18977 }; 18978 } 18979 } 18980 } 18981 }; 18982 h2 = { 18983 class: "n-folding-choicelist" 18984 }; 18985 g2 = { 18986 class: "is-sr-only" 18987 }; 18988 b2 = { 18989 "aria-hidden": "true" 18990 }; 18991 v2 = { 18992 class: "is-sr-only" 18993 }; 18994 function y2(e, t, n, i, a, r) { 18995 const s = j("CollapseDrawerHybrid"); 18996 return m(), x("fieldset", h2, [ 18997 O("legend", g2, H(r.labelText), 1), 18998 K(s, fe({ 18999 title: r.labelText 19000 }, n.collapseProps, { 19001 "title-tag": "div" 19002 }), { 19003 "collapse-title": I(({ title: o, isOpen: l }) => [ 19004 O("span", b2, H(o), 1), 19005 O("span", v2, H(l ? e.$t("label.hide") : e.$t("label.show")), 1) 19006 ]), 19007 default: I(() => [ 19008 (m(), U(ue(r.inputComponent), fe({ 19009 value: n.value, 19010 size: n.inputSize, 19011 "reset-option": n.resetOption, 19012 options: e.options, 19013 "described-by": n.describedBy 19014 }, n.inputProps, { 19015 class: "n-folding-choicelist__input", 19016 format: "compact", 19017 onInput: t[0] || (t[0] = (o) => e.$emit("input", o)) 19018 }), null, 16, [ 19019 "value", 19020 "size", 19021 "reset-option", 19022 "options", 19023 "described-by" 19024 ])) 19025 ]), 19026 _: 1 19027 }, 16, [ 19028 "title" 19029 ]) 19030 ]); 19031 }
19032 const _2 = te(m2, [ 19033 [ 19034 "render", 19035 y2 19036 ] 19037 ]); 19038 function Gh(e) { 19039 return bi() ? (vi(e), true) : false; 19040 } 19041 function Nr(e) { 19042 return typeof e == "function" ? e() : ae(e); 19043 } 19044 const qh = typeof window < "u" && typeof document < "u"; 19045 typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope; 19046 const E2 = Object.prototype.toString, k2 = (e) => E2.call(e) === "[object Object]", Dr = () => { 19047 }, ll = C2(); 19048 function C2() { 19049 var e, t; 19050 return qh && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent)); 19051 } 19052 function A2(e, t) { 19053 function n(...i) { 19054 return new Promise((a, r) => { 19055 Promise.resolve(e(() => t.apply(this, i), { 19056 fn: t, 19057 thisArg: this, 19058 args: i 19059 })).then(a).catch(r); 19060 }); 19061 } 19062 return n; 19063 } 19064 function S2(e, t = {}) { 19065 let n, i, a = Dr; 19066 const r = (s) => { 19067 clearTimeout(s), a(), a = Dr; 19068 }; 19069 return (s) => { 19070 const o = Nr(e), l = Nr(t.maxWait); 19071 return n && r(n), o <= 0 || l !== void 0 && l <= 0 ? (i && (r(i), i = null), Promise.resolve(s())) : new Promise((u, c) => { 19072 a = t.rejectOnCancel ? c : u, l && !i && (i = setTimeout(() => { 19073 n && r(n), i = null, u(s()); 19074 }, l)), n = setTimeout(() => { 19075 i && r(i), i = null, u(s()); 19076 }, o); 19077 }); 19078 }; 19079 } 19080 const tp = { 19081 mounted: "mounted", 19082 unmounted: "unmounted" 19083 }; 19084 function w2(...e) { 19085 if (e.length !== 1) return $l(...e); 19086 const t = e[0]; 19087 return typeof t == "function" ? Tl(bs(() => ({ 19088 get: t, 19089 set: Dr 19090 }))) : pe(t); 19091 } 19092 function L2(e, t = 200, n = {}) { 19093 return A2(S2(t, n), e); 19094 } 19095 function Mi(e) { 19096 var t; 19097 const n = Nr(e); 19098 return (t = n == null ? void 0 : n.$el) != null ? t : n; 19099 } 19100 const Yh = qh ? window : void 0; 19101 function za(...e) { 19102 let t, n, i, a; 19103 if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, i, a] = e, t = Yh) : [t, n, i, a] = e, !t) return Dr; 19104 Array.isArray(n) || (n = [ 19105 n 19106 ]), Array.isArray(i) || (i = [ 19107 i 19108 ]); 19109 const r = [], s = () => { 19110 r.forEach((c) => c()), r.length = 0; 19111 }, o = (c, d, p, b) => (c.addEventListener(d, p, b), () => c.removeEventListener(d, p, b)), l = Ue(() => [ 19112 Mi(t), 19113 Nr(a) 19114 ], ([c, d]) => { 19115 if (s(), !c) return; 19116 const p = k2(d) ? { 19117 ...d 19118 } : d; 19119 r.push(...n.flatMap((b) => i.map((h) => o(c, b, h, p)))); 19120 }, {
19121 immediate: true, 19122 flush: "post" 19123 }), u = () => { 19124 l(), s(); 19125 }; 19126 return Gh(u), u; 19127 } 19128 let np = false; 19129 function rp(e, t, n = {}) { 19130 const { window: i = Yh, ignore: a = [], capture: r = true, detectIframe: s = false } = n; 19131 if (!i) return Dr; 19132 ll && !np && (np = true, Array.from(i.document.body.children).forEach((c) => c.addEventListener("click", Dr)), i.document.documentElement.addEventListener("click", Dr)); 19133 let o = true; 19134 const l = (c) => a.some((d) => { 19135 if (typeof d == "string") return Array.from(i.document.querySelectorAll(d)).some((p) => p === c.target || c.composedPath().includes(p)); 19136 { 19137 const p = Mi(d); 19138 return p && (c.target === p || c.composedPath().includes(p)); 19139 } 19140 }), u = [ 19141 za(i, "click", (c) => { 19142 const d = Mi(e); 19143 if (!(!d || d === c.target || c.composedPath().includes(d))) { 19144 if (c.detail === 0 && (o = !l(c)), !o) { 19145 o = true; 19146 return; 19147 } 19148 t(c); 19149 } 19150 }, { 19151 passive: true, 19152 capture: r 19153 }), 19154 za(i, "pointerdown", (c) => { 19155 const d = Mi(e); 19156 o = !l(c) && !!(d && !c.composedPath().includes(d)); 19157 }, { 19158 passive: true 19159 }), 19160 s && za(i, "blur", (c) => { 19161 setTimeout(() => { 19162 var d; 19163 const p = Mi(e); 19164 ((d = i.document.activeElement) == null ? void 0 : d.tagName) === "IFRAME" && !(p != null && p.contains(i.document.activeElement)) && t(c); 19165 }, 0); 19166 }) 19167 ].filter(Boolean); 19168 return () => u.forEach((c) => c()); 19169 } 19170 const Kh = { 19171 [tp.mounted](e, t) { 19172 const n = !t.modifiers.bubble; 19173 if (typeof t.value == "function") e.__onClickOutside_stop = rp(e, t.value, { 19174 capture: n 19175 }); 19176 else { 19177 const [i, a] = t.value; 19178 e.__onClickOutside_stop = rp(e, i, Object.assign({ 19179 capture: n 19180 }, a)); 19181 } 19182 }, 19183 [tp.unmounted](e) { 19184 e.__onClickOutside_stop(); 19185 } 19186 }; 19187 function vo(e) { 19188 return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e; 19189 } 19190 function Xh(e) { 19191 const t = window.getComputedStyle(e); 19192 if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return true; 19193 { 19194 const n = e.parentNode; 19195 return !n || n.tagName === "BODY" ? false : Xh(n); 19196 } 19197 } 19198 function x2(e) { 19199 const t = e || window.event, n = t.target; 19200 return Xh(n) ? false : t.touches.length > 1 ? true : (t.preventDefault && t.preventDefault(), false); 19201 } 19202 const yo = /* @__PURE__ */ new WeakMap(); 19203 function O2(e, t = false) { 19204 const n = pe(t); 19205 let i = null, a = ""; 19206 Ue(w2(e), (o) => { 19207 const l = vo(Nr(o)); 19208 if (l) { 19209 const u = l; 19210 if (yo.get(u) || yo.set(u, u.style.overflow), u.style.overflow !== "hidden" && (a = u.style.overflow), u.style.overflow === "hidden") return n.value = true; 19211 if (n.value) return u.style.overflow = "hidden"; 19212 } 19213 }, { 19214 immediate: true 19215 }); 19216 const r = () => { 19217 const o = vo(Nr(e)); 19218 !o || n.value || (ll && (i = za(o, "touchmove", (l) => { 19219 x2(l); 19220 }, { 19221 passive: false 19222 })), o.style.overflow = "hidden", n.value = true); 19223 }, s = () => { 19224 const o = vo(Nr(e)); 19225 !o || !n.value || (ll && (i == null ? void 0 : i()), o.style.overflow = a, yo.delete(o), n.value = false); 19226 }; 19227 return Gh(s), ne({ 19228 get() { 19229 return n.value; 19230 }, 19231 set(o) { 19232 o ? r() : s(); 19233 } 19234 }); 19235 } 19236 function $2() { 19237 let e = false; 19238 const t = pe(false); 19239 return (n, i) => { 19240 if (t.value = i.value, e) return; 19241 e = true; 19242 const a = O2(n, i.value); 19243 Ue(t, (r) => a.value = r); 19244 }; 19245 } 19246 $2(); 19247 const T2 = { 19248 name: "n-listbox", 19249 components: { 19250 NLink: at, 19251 Icon: Tt 19252 }, 19253 mixins: [ 19254 Lt, 19255 ws 19256 ], 19257 props: { 19258 controllerId: { 19259 type: String, 19260 default: function() { 19261 return _a(); 19262 } 19263 }, 19264 query: { 19265 type: String, 19266 default: "" 19267 }, 19268 isOpen: { 19269 type: Boolean 19270 }, 19271 title: { 19272 type: String 19273 }, 19274 titleHeadingLevel: { 19275 ...we.titleHeadingLevel 19276 }, 19277 items: { 19278 type: Array, 19279 default: () => [] 19280 }, 19281 focusedItemIndex: { 19282 type: Number, 19283 default: 0 19284 }, 19285 liveRegionLabel: { 19286 type: String 19287 } 19288 }, 19289 emits: [ 19290 "item-clicked", 19291 "item-enter" 19292 ], 19293 data() { 19294 return { 19295 willFocusScroll: false 19296 }; 19297 }, 19298 computed: { 19299 hasLogoSlotContent() { 19300 return !!(this.$slots.logo() && this.$slots.logo().length); 19301 }, 19302 formattedItems() { 19303 return !this.query || !this.query.length ? this.items : [ 19304 ...this.items 19305 ].map((e) => ({ 19306 ...e, 19307 label: Xa(e.label, this.query.toLowerCase().trim()) 19308 })); 19309 }, 19310 hasItems() { 19311 return this.items && this.items.length > 0; 19312 } 19313 }, 19314 watch: { 19315 items: function() { 19316 this.currentFocusedLinkIndex = null; 19317 }, 19318 focusedItemIndex: { 19319 handler: function(e) { 19320 this.currentFocusedLinkIndex = e; 19321 }, 19322 immediate: true 19323 }, 19324 currentFocusedLinkIndex: { 19325 handler: function(e) { 19326 this.listControl_focus(e); 19327 }, 19328 immediate: true 19329 } 19330 }, 19331 methods: { 19332 listControl_focus(e) { 19333 if ((typeof e == "number" || e instanceof Number) && this.willFocusScroll) { 19334 const t = document.getElementById(`${this.controllerId}-listbox-item-${e}`); 19335 t && this.$nextTick(() => { 19336 this.$refs.scrollbox.scrollTop = t.offsetTop; 19337 }); 19338 } 19339 this.controlRefs.length !== this.items.length && (this.controlRefs = this.controlRefs.slice(0, this.items.length)); 19340 }, 19341 mouseoverHandler(e) { 19342 this.willFocusScroll = false;
19343 }, 19344 mouseoutHandler() { 19345 this.willFocusScroll = false; 19346 }, 19347 keydownUpHandler(e) { 19348 if (this.willFocusScroll = true, e === null || this.currentFocusedLinkIndex === null) { 19349 this.listControl_focusOnLastItem(); 19350 return; 19351 } 19352 this.listControl_focusPrev(e); 19353 }, 19354 keydownDownHandler(e) { 19355 if (this.willFocusScroll = true, e === null || this.currentFocusedLinkIndex === null) { 19356 this.listControl_focusOnFirstItem(); 19357 return; 19358 } 19359 this.listControl_focusNext(e); 19360 } 19361 } 19362 }, I2 = { 19363 ref: "scrollbox", 19364 class: "n-listbox__box" 19365 }, F2 = [ 19366 "id", 19367 "aria-labelledby" 19368 ], N2 = [ 19369 "id", 19370 "aria-selected", 19371 "onClick", 19372 "onKeydown" 19373 ], D2 = [ 19374 "aria-hidden", 19375 "innerHTML" 19376 ], P2 = { 19377 key: 0, 19378 class: "is-sr-only" 19379 }, B2 = { 19380 key: 0, 19381 role: "status", 19382 class: "is-sr-only", 19383 "aria-live": "polite" 19384 }; 19385 function M2(e, t, n, i, a, r) { 19386 const s = j("Icon"); 19387 return Je((m(), x("div", { 19388 class: R([ 19389 [ 19390 { 19391 "n:pt-md n:lg:pt-lg": r.hasItems && n.title 19392 }, 19393 { 19394 "n:pb-md n:lg:pb-lg": r.hasItems && r.hasLogoSlotContent 19395 } 19396 ], 19397 "n-listbox" 19398 ]) 19399 }, [ 19400 O("div", I2, [ 19401 r.hasItems && n.title ? (m(), U(ue(`h${n.titleHeadingLevel}`), { 19402 key: 0, 19403 id: `${n.controllerId}-listbox-title`, 19404 class: "n-listbox__category x-small n:mt-0 n:px-md" 19405 }, { 19406 default: I(() => [ 19407 re(H(n.title), 1) 19408 ]), 19409 _: 1 19410 }, 8, [ 19411 "id" 19412 ])) : M("", true), 19413 O("ul", { 19414 id: `${n.controllerId}-listbox`, 19415 ref: "list", 19416 "aria-labelledby": `${n.controllerId}-listbox-title`, 19417 role: "listbox", 19418 class: "n-listbox__list n:m-0 n:p-0 n:max-w-none" 19419 }, [ 19420 n.items && n.isOpen ? (m(true), x(me, { 19421 key: 0 19422 }, ve(r.formattedItems, (o, l) => { 19423 var u, c, d, p, b; 19424 return m(), x("li", { 19425 id: `${n.controllerId}-listbox-item-${l}`, 19426 key: o.id || o.label, 19427 ref_for: true, 19428 ref: (h) => e.controlRefs[l] = h, 19429 class: R([ 19430 "n-listbox__list-item small n-link n-link--utility n:px-lg n:py-sm n:m-0 n:content-space-between", 19431 { 19432 "n-listbox__list-item--active": l === e.currentFocusedLinkIndex, 19433 "n:flex n:pr-xs": (u = o.options) == null ? void 0 : u.iconRight 19434 } 19435 ]), 19436 "aria-selected": l === e.currentFocusedLinkIndex, 19437 role: "option", 19438 onClick: (h) => e.$emit("item-clicked", l), 19439 onMouseover: t[0] || (t[0] = (...h) => r.mouseoverHandler && r.mouseoverHandler(...h)), 19440 onMouseout: t[1] || (t[1] = (...h) => r.mouseoutHandler && r.mouseoutHandler(...h)), 19441 onKeydown: [ 19442 t[2] || (t[2] = Ye(sn((...h) => r.keydownUpHandler && r.keydownUpHandler(...h), [ 19443 "prevent", 19444 "stop" 19445 ]), [ 19446 "up" 19447 ])), 19448 t[3] || (t[3] = Ye(sn((...h) => r.keydownDownHandler && r.keydownDownHandler(...h), [ 19449 "prevent", 19450 "stop" 19451 ]), [ 19452 "down" 19453 ])), 19454 Ye((h) => e.$emit("item-enter", l), [ 19455 "enter" 19456 ]) 19457 ] 19458 }, [ 19459 O("span", { 19460 "aria-hidden": (c = o.options) == null ? void 0 : c.srLabel, 19461 innerHTML: o.label 19462 }, null, 8, D2), 19463 (d = o.options) != null && d.srLabel ? (m(), x("span", P2, H((p = o.options) == null ? void 0 : p.srLabel), 1)) : M("", true), 19464 (b = o.options) != null && b.iconRight ? (m(), U(s, { 19465 key: 1, 19466 icon: o.options.iconRight, 19467 class: "is-color-primary" 19468 }, null, 8, [ 19469 "icon" 19470 ])) : M("", true) 19471 ], 42, N2); 19472 }), 128)) : M("", true) 19473 ], 8, F2) 19474 ], 512), 19475 V(e.$slots, "logo"), 19476 n.liveRegionLabel ? (m(), x("p", B2, H(n.liveRegionLabel), 1)) : M("", true) 19477 ], 2)), [ 19478 [ 19479 pt, 19480 n.isOpen 19481 ] 19482 ]); 19483 } 19484 const R2 = te(T2, [ 19485 [ 19486 "render", 19487 M2 19488 ] 19489 ]), U2 = { 19490 name: "n-input-autocomplete", 19491 components: { 19492 Listbox: R2, 19493 MaskedInput: Hh 19494 }, 19495 directives: { 19496 onClickOutside: Kh 19497 }, 19498 extends: Mt, 19499 mixins: [ 19500 ka 19501 ], 19502 props: { 19503 suggestionsMatchingMode: { 19504 type: String, 19505 default: "contains", 19506 validator: (e) => [ 19507 "contains", 19508 "startsWith", 19509 "none" 19510 ].includes(e) 19511 }, 19512 forceOpen: { 19513 type: Boolean 19514 }, 19515 minCharsToShow: { 19516 type: Number, 19517 default: 1 19518 }, 19519 listboxHeadingLevel: { 19520 ...we.titleHeadingLevel 19521 }, 19522 suggestions: { 19523 type: Object, 19524 default: () => ({ 19525 label: "", 19526 items: [] 19527 }) 19528 }, 19529 modelValue: { 19530 type: String 19531 }, 19532 mask: { 19533 type: [ 19534 Object, 19535 Array 19536 ], 19537 default: null 19538 }, 19539 disableListboxHighlighting: Boolean, 19540 maxSuggestions: { 19541 type: Number 19542 } 19543 }, 19544 emits: [ 19545 "update:model-value", 19546 "update:selected" 19547 ], 19548 data() { 19549 return { 19550 proxyValue: "", 19551 currentItemIndex: null, 19552 focusedItemIndex: null, 19553 containsFocus: false, 19554 isOpen: false, 19555 windowFocusListener: null, 19556 windowClickListener: null, 19557 listboxItems: [] 19558 }; 19559 }, 19560 computed: { 19561 autocompletePropsAndAttrs() { 19562 return { 19563 id: this.id, 19564 placeholder: this.placeholder, 19565 role: "combobox", 19566 class: "n-input n-input-autocomplete", 19567 type: "text", 19568 autocomplete: this.$attrs.autocomplete ?? "off", 19569 "aria-autocomplete": "list", 19570 "aria-haspopup": "listbox", 19571 "aria-activedescendant": this.focusedItemIndex !== null ? `${this.id}-listbox-item-${this.focusedItemIndex}` : null, 19572 "aria-controls": `${this.id}-listbox`, 19573 "aria-owns": `${this.id}-listbox`, 19574 "aria-expanded": this.showListbox ? "true" : "false" 19575 }; 19576 }, 19577 listboxLiveRegionLabel() { 19578 return ""; 19579 },
19580 valueMeetsMinCharsRequirement() { 19581 var e; 19582 return ((e = this.proxyValue) == null ? void 0 : e.length) >= this.minCharsToShow; 19583 }, 19584 hasListboxItems() { 19585 return this.listboxItems && this.listboxItems.length >= 1; 19586 }, 19587 valueMatchesSuggestion() { 19588 return this.listboxItems.length === 1 && this.listboxItems.map((e) => e.label.toLowerCase()).indexOf(this.proxyValue.toLowerCase()) >= 1; 19589 }, 19590 showListbox() { 19591 return this.valueMeetsMinCharsRequirement && this.containsFocus && this.hasListboxItems && !this.valueMatchesSuggestion && this.isOpen; 19592 }, 19593 focusedListboxItem() { 19594 return this.focusedItemIndex == null ? this.listboxItems[0].label : this.listboxItems[this.focusedItemIndex].label; 19595 }, 19596 getMask() { 19597 return Array.isArray(this.mask) ? this.mask : this.mask.mask instanceof Function ? this.mask.mask() : this.mask.mask; 19598 }, 19599 currentItem() { 19600 return this.listboxItems[this.currentItemIndex]; 19601 } 19602 }, 19603 watch: { 19604 modelValue: { 19605 handler: function(e) { 19606 this.proxyValue = e, (!e || e === "") && this.$emit("update:selected"); 19607 }, 19608 immediate: true 19609 }, 19610 proxyValue: { 19611 handler: function() { 19612 this.filterListboxItems(); 19613 }, 19614 immediate: true 19615 }, 19616 "suggestions.items": { 19617 handler: function() { 19618 this.filterListboxItems(); 19619 }, 19620 deep: true 19621 }, 19622 showListbox: { 19623 handler: function(e) { 19624 e ? this.openListbox() : this.closeListbox("showListbox watcher"); 19625 } 19626 }, 19627 forceOpen: { 19628 handler: function(e) { 19629 e && this.openListbox(); 19630 }, 19631 immediate: true 19632 } 19633 }, 19634 methods: { 19635 updateValue(e) { 19636 let t = e; 19637 this.hasMask && e && (t = yu.conformToMask(t, this.getMask, { 19638 guide: false 19639 }).conformedValue), this.proxyValue = t, this.$emit("update:model-value", t); 19640 }, 19641 openListbox() { 19642 this.isOpen = true; 19643 }, 19644 closeListbox(e) { 19645 this.$nextTick(() => { 19646 var t, n; 19647 [ 19648 "listbox", 19649 "selection" 19650 ].includes(e) && document.getElementById(this.id).focus(), this.forceOpen || e === "selection" && ((n = (t = this.currentItem) == null ? void 0 : t.options) == null ? void 0 : n.leaveListboxOpen) === true || (this.isOpen = false); 19651 }), this.unsetFocusedItemIndex(); 19652 }, 19653 setCurrentItemIndex(e) { 19654 var t; 19655 this.currentItemIndex = e; 19656 const n = this.listboxItems[e]; 19657 this.$emit("update:selected", n), !((t = n.options) != null && t.dontEmitValue) && this.updateValue(n.label); 19658 }, 19659 setFocusedItemIndex(e) { 19660 e >= 0 && e <= this.listboxItems.length - 1 && (this.focusedItemIndex = e); 19661 }, 19662 unsetFocusedItemIndex() { 19663 this.focusedItemIndex = null; 19664 }, 19665 clickOutsideHandler() { 19666 this.$nextTick(() => { 19667 this.containsFocus = false, this.unsetFocusedItemIndex(), this.closeListbox("click-outside"); 19668 }); 19669 }, 19670 focusInHandler(e) { 19671 e.sourceCapabilities !== null && (this.containsFocus = true); 19672 }, 19673 handleClick() { 19674 if (!this.isOpen) { 19675 this.openListbox(); 19676 return; 19677 } 19678 }, 19679 handleInput(e) { 19680 const t = typeof e != "object" ? e : this.$refs.input.value; 19681 this.updateValue(t), this.openListbox(); 19682 }, 19683 filterListboxItems: L2(function() { 19684 if (this.proxyValue) { 19685 const e = this.maxSuggestions ? this.maxSuggestions + 1 : this.suggestions.items.length, t = []; 19686 for (let n = 0; n < this.suggestions.items.length; n++) { 19687 const i = this.suggestions.items[n]; 19688 if ((this.suggestionsMatchingMode === "none" || (this.suggestionsMatchingMode === "startsWith" ? i.label.toLowerCase().startsWith(this.proxyValue.toLowerCase()) : i.label.toLowerCase().includes(this.proxyValue.toLowerCase()))) && t.length <= e && (t.push(i), t.length === e)) break; 19689 } 19690 this.listboxItems = t; 19691 return; 19692 } 19693 this.listboxItems = this.maxSuggestions ? [ 19694 ...this.suggestions.items 19695 ].splice(0, this.maxSuggestions) : this.suggestions.items; 19696 }, 200), 19697 handleKeydownUp(e) { 19698 this.$nextTick(() => { 19699 this.$refs.listbox.keydownUpHandler(e); 19700 }); 19701 }, 19702 handleKeydownDown(e) { 19703 this.isOpen || this.openListbox(), this.$nextTick(() => { 19704 this.$refs.listbox.keydownDownHandler(e); 19705 }); 19706 }, 19707 handleKeydownEnter() { 19708 this.focusedItemIndex != null && (this.setCurrentItemIndex(this.focusedItemIndex), this.closeListbox("selection")); 19709 }, 19710 handleListboxItemClick(e) { 19711 this.setCurrentItemIndex(e), this.closeListbox("selection"); 19712 }, 19713 handleKeyupTab() { 19714 this.containsFocus = false;
19715 }, 19716 handleKeydown(e) { 19717 e.key === "Tab" && this.handleKeyupTab(), /^Escape$|^Backspace$|^[\w ]$/.test(e.key) && this.closeListbox("listbox"); 19718 } 19719 } 19720 }, V2 = [ 19721 "id" 19722 ], H2 = [ 19723 "value" 19724 ]; 19725 function j2(e, t, n, i, a, r) { 19726 const s = j("MaskedInput"), o = j("Listbox"), l = Gn("on-click-outside"); 19727 return Je((m(), x("div", { 19728 id: `${e.id}-combobox`, 19729 ref: "inputWrapper", 19730 class: R([ 19731 `n-input-wrapper--${e.size} ${e.state === "error" ? "is-error" : ""}`, 19732 "n-input-wrapper n-input-wrapper--has-listbox" 19733 ]) 19734 }, [ 19735 e.hasMask ? (m(), U(s, fe({ 19736 key: 0 19737 }, { 19738 ...e.allPropsAndAttrs, 19739 ...r.autocompletePropsAndAttrs 19740 }, { 19741 ref: "input", 19742 "model-value": a.proxyValue 19743 }, Fr(e.inputListeners), { 19744 onClick: r.handleClick, 19745 onFocusin: r.focusInHandler, 19746 onKeydown: [ 19747 Ye(sn(r.handleKeydownUp, [ 19748 "prevent", 19749 "stop" 19750 ]), [ 19751 "up" 19752 ]), 19753 Ye(sn(r.handleKeydownDown, [ 19754 "prevent", 19755 "stop" 19756 ]), [ 19757 "down" 19758 ]), 19759 Ye(r.handleKeyupTab, [ 19760 "tab" 19761 ]), 19762 Ye(sn(r.handleKeydownEnter, [ 19763 "prevent", 19764 "stop" 19765 ]), [ 19766 "enter" 19767 ]), 19768 t[0] || (t[0] = Ye(sn(() => r.closeListbox("outside-listbox"), [ 19769 "prevent", 19770 "stop" 19771 ]), [ 19772 "esc" 19773 ])) 19774 ], 19775 "onUpdate:modelValue": r.handleInput 19776 }), null, 16, [ 19777 "model-value", 19778 "onClick", 19779 "onFocusin", 19780 "onKeydown", 19781 "onUpdate:modelValue" 19782 ])) : (m(), x("input", fe({ 19783 key: 1 19784 }, { 19785 ...e.allPropsAndAttrs, 19786 ...r.autocompletePropsAndAttrs 19787 }, { 19788 ref: "input", 19789 value: a.proxyValue 19790 }, Fr(e.inputListeners, true), { 19791 onClick: t[1] || (t[1] = (...u) => r.handleClick && r.handleClick(...u)), 19792 onFocusin: t[2] || (t[2] = (...u) => r.focusInHandler && r.focusInHandler(...u)), 19793 onKeydown: [ 19794 t[3] || (t[3] = Ye(sn((...u) => r.handleKeydownUp && r.handleKeydownUp(...u), [ 19795 "prevent", 19796 "stop" 19797 ]), [ 19798 "up" 19799 ])), 19800 t[4] || (t[4] = Ye(sn((...u) => r.handleKeydownDown && r.handleKeydownDown(...u), [ 19801 "prevent", 19802 "stop" 19803 ]), [ 19804 "down" 19805 ])), 19806 t[5] || (t[5] = Ye((...u) => r.handleKeyupTab && r.handleKeyupTab(...u), [ 19807 "tab" 19808 ])), 19809 t[7] || (t[7] = Ye(sn((...u) => r.handleKeydownEnter && r.handleKeydownEnter(...u), [ 19810 "prevent", 19811 "stop" 19812 ]), [ 19813 "enter" 19814 ])), 19815 t[8] || (t[8] = Ye(sn(() => r.closeListbox("outside-listbox"), [ 19816 "prevent", 19817 "stop" 19818 ]), [ 19819 "esc" 19820 ])) 19821 ], 19822 onInput: t[6] || (t[6] = (...u) => r.handleInput && r.handleInput(...u)) 19823 }), null, 16, H2)), 19824 K(o, { 19825 ref: "listbox", 19826 query: n.disableListboxHighlighting ? void 0 : a.proxyValue, 19827 "focused-item-index": a.focusedItemIndex, 19828 "is-open": a.isOpen, 19829 "controller-id": e.id, 19830 title: n.suggestions.label, 19831 "title-heading-level": n.listboxHeadingLevel, 19832 items: a.listboxItems, 19833 "live-region-label": r.listboxLiveRegionLabel, 19834 onFocusin: r.focusInHandler, 19835 onItemClicked: r.handleListboxItemClick, 19836 onItemEnter: r.handleListboxItemClick, 19837 onItemFocus: t[9] || (t[9] = (u) => r.setFocusedItemIndex(u)), 19838 onKeydown: r.handleKeydown 19839 }, { 19840 logo: I(() => [ 19841 V(e.$slots, "listbox-logo") 19842 ]), 19843 _: 3 19844 }, 8, [ 19845 "query", 19846 "focused-item-index", 19847 "is-open", 19848 "controller-id", 19849 "title", 19850 "title-heading-level", 19851 "items", 19852 "live-region-label", 19853 "onFocusin", 19854 "onItemClicked", 19855 "onItemEnter", 19856 "onKeydown" 19857 ]), 19858 V(e.$slots, "footer") 19859 ], 10, V2)), [ 19860 [ 19861 l, 19862 r.clickOutsideHandler 19863 ] 19864 ]); 19865 } 19866 let Eu, ku, z2, G2, q2, Y2, K2, X2, J2, Q2;
19867 Eu = te(U2, [ 19868 [ 19869 "render", 19870 j2 19871 ] 19872 ]); 19873 ku = { 19874 name: "n-input-number-formatted", 19875 extends: Mt, 19876 props: { 19877 inputClass: { 19878 type: String, 19879 default: "n-input-number-formatted n:font-numbers" 19880 } 19881 }, 19882 computed: { 19883 inputType() { 19884 return "number"; 19885 } 19886 }, 19887 compatConfig: { 19888 MODE: 3 19889 } 19890 }; 19891 z2 = { 19892 name: "n-input-currency", 19893 extends: ku, 19894 props: { 19895 affixmentPosition: { 19896 type: String, 19897 default: function() { 19898 return Ze.global.locale === "fr-CA" ? "right" : "left"; 19899 } 19900 }, 19901 affixment: { 19902 type: String, 19903 default: "$" 19904 } 19905 }, 19906 compatConfig: { 19907 MODE: 3 19908 }, 19909 fieldConfig: { 19910 affixment: "$" 19911 } 19912 }; 19913 W2 = { 19914 name: "n-input-email", 19915 extends: Mt, 19916 computed: { 19917 inputType() { 19918 return "email"; 19919 } 19920 }, 19921 compatConfig: { 19922 MODE: 3 19923 } 19924 }; 19925 G2 = { 19926 name: "n-input-file-list-item", 19927 components: { 19928 ButtonNav: Vm, 19929 Icon: Tt 19930 }, 19931 props: { 19932 file: { 19933 type: [ 19934 Object, 19935 File 19936 ], 19937 required: true 19938 }, 19939 index: { 19940 type: Number, 19941 required: true 19942 }, 19943 uploadUrl: String, 19944 uploadAdditionalFormData: Object, 19945 uploadHeaderData: Object, 19946 uploadFileKey: { 19947 type: String, 19948 default: "file" 19949 } 19950 }, 19951 emits: [ 19952 "add-success", 19953 "uploading", 19954 "upload-success", 19955 "upload-error", 19956 "remove-click" 19957 ], 19958 data() { 19959 return { 19960 isUploaded: false, 19961 isUploading: false 19962 }; 19963 }, 19964 computed: { 19965 fileIcon() { 19966 return this.uploadUrl && this.isUploaded ? "doc-check" : this.uploadUrl && this.isUploading ? "load" : "doc-check"; 19967 } 19968 }, 19969 mounted() { 19970 if (this.file.isUploaded || !this.uploadUrl) this.isUploaded = true, this.$emit("add-success", { 19971 response: {}, 19972 file: this.file, 19973 fileIndex: this.index 19974 }); 19975 else { 19976 this.isUploading = true; 19977 const e = new FormData(); 19978 e.append(this.uploadFileKey, this.file.data), this.uploadAdditionalFormData && Object.keys(this.uploadAdditionalFormData).forEach((t) => { 19979 e.append(t, this.uploadAdditionalFormData[t]); 19980 }), this.$emit("uploading"), Ci.post(this.uploadUrl, e, { 19981 headers: { 19982 ...this.uploadHeaderData, 19983 "Content-Type": "multipart/form-data" 19984 } 19985 }).then((t) => { 19986 this.$emit("upload-success", { 19987 response: t, 19988 file: this.file, 19989 fileIndex: this.index, 19990 isUploaded: true 19991 }), this.isUploading = false, this.isUploaded = true; 19992 }).catch((t) => { 19993 console.warn("File upload failed - " + this.file.name), console.warn(t), this.$emit("upload-error", { 19994 response: t, 19995 file: this.file, 19996 fileIndex: this.index 19997 }), this.isUploading = false; 19998 }); 19999 } 20000 }, 20001 methods: { 20002 formatFileSize(e, t, n) { 20003 return Ss(e, t, n); 20004 } 20005 } 20006 }; 20007 q2 = { 20008 class: "n-file-upload__list-item" 20009 }; 20010 Y2 = { 20011 class: "n:grow-1" 20012 }; 20013 K2 = { 20014 class: "n:pr-xs" 20015 }; 20016 X2 = { 20017 class: "n-file-upload__item-name n:mb-0 n:mt-sm" 20018 }; 20019 J2 = { 20020 class: "n:mb-0 is-color-text n:font-numbers" 20021 }; 20022 Q2 = { 20023 class: "n-file-upload__item-btn-wrapper" 20024 }; 20025 function Z2(e, t, n, i, a, r) { 20026 const s = j("Icon"), o = j("ButtonNav"); 20027 return m(), x("li", q2, [ 20028 O("div", null, [ 20029 Je(K(s, { 20030 class: "n-file-upload__item-icon n:m-sm is-color-text", 20031 icon: "load", 20032 size: 24 20033 }, null, 512), [ 20034 [ 20035 pt, 20036 !a.isUploaded && a.isUploading 20037 ] 20038 ]), 20039 Je(K(s, { 20040 class: "n-file-upload__item-icon n:m-sm is-color-success", 20041 icon: "doc-check", 20042 size: 24 20043 }, null, 512), [ 20044 [ 20045 pt, 20046 a.isUploaded 20047 ] 20048 ]) 20049 ]), 20050 O("div", Y2, [ 20051 O("div", K2, [ 20052 O("p", X2, H(n.file.name), 1), 20053 O("span", J2, H(r.formatFileSize(n.file.data.size, e.$i18n.locale, e.$t)), 1) 20054 ]) 20055 ]), 20056 O("div", Q2, [ 20057 Je(K(o, { 20058 "aria-label": e.$t("fileUpload.remove") + " " + n.file.name, 20059 format: "ghost", 20060 class: "n:m-0", 20061 icon: "x", 20062 onClick: t[0] || (t[0] = (l) => e.$emit("remove-click", n.index)) 20063 }, { 20064 default: I(() => [ 20065 re(H(e.$t("fileUpload.remove")), 1) 20066 ]), 20067 _: 1 20068 }, 8, [ 20069 "aria-label" 20070 ]), [ 20071 [ 20072 pt, 20073 !a.isUploading 20074 ] 20075 ]) 20076 ]) 20077 ]); 20078 } 20079 const eT = te(G2, [ 20080 [ 20081 "render", 20082 Z2 20083 ] 20084 ]), tT = { 20085 doc: "application/msword", 20086 docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", 20087 gif: "image/gif", 20088 jpeg: "image/jpeg", 20089 jpg: "image/jpg", 20090 mov: "video/quicktime", 20091 mp3: "audio/mpeg", 20092 mp4: "video/mp4", 20093 pdf: "application/pdf", 20094 png: "image/png", 20095 ppt: "application/vnd.ms-powerpoint", 20096 pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation", 20097 svg: "image/svg+xml", 20098 txt: "text/plain", 20099 xls: "application/vnd.ms-excel", 20100 xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", 20101 xlsm: "application/vnd.ms-excel.sheet.macroEnabled.12", 20102 xlsb: "application/vnd.ms-excel.sheet.binary.macroEnabled.12", 20103 wav: "audio/x-wav" 20104 }, nT = { 20105 name: "n-input-file", 20106 components: { 20107 Icon: Tt, 20108 InputFileListItem: eT 20109 }, 20110 mixins: [ 20111 ka 20112 ], 20113 inheritAttrs: false, 20114 props: { 20115 ...it, 20116 value: { 20117 type: Array 20118 }, 20119 initialValue: { 20120 type: [ 20121 File, 20122 typeof FileList < "u" && FileList, 20123 Array 20124 ] 20125 }, 20126 accept: { 20127 type: Array, 20128 default: () => [ 20129 "pdf", 20130 "docx", 20131 "doc" 20132 ] 20133 }, 20134 uploadUrl: { 20135 type: String 20136 }, 20137 uploadAdditionalFormData: Object, 20138 uploadHeaderData: Object, 20139 uploadFileKey: { 20140 type: String, 20141 default: "file" 20142 }, 20143 validFileSizeMax: { 20144 type: Number, 20145 default: 4e6 20146 }, 20147 validFilenameLength: { 20148 type: Number, 20149 default: 200 20150 }, 20151 validFilenameCharacters: { 20152 type: RegExp, 20153 default: () => /[\^*[\]~'";:`<>?]/ 20154 }, 20155 validFilesMaxLimit: { 20156 type: Number, 20157 default: 5 20158 }, 20159 validFilesMinLimit: { 20160 type: Number 20161 }, 20162 fileValidations: { 20163 type: Object 20164 }, 20165 hint: String, 20166 description: String, 20167 required: Boolean, 20168 disabled: Boolean 20169 }, 20170 emits: [ 20171 "update:model-value", 20172 "errors", 20173 "errors-detailed", 20174 "warnings", 20175 "warnings-detailed", 20176 "upload-success" 20177 ], 20178 data() { 20179 return { 20180 files: [], 20181 filesValue: [], 20182 errorMsgs: [], 20183 warningMsgs: [], 20184 isDragging: false, 20185 unlockInputClick: false, 20186 fileIsUploading: false, 20187 latestAttemptFilename: "" 20188 }; 20189 }, 20190 computed: { 20191 acceptedTypes() { 20192 return this.accept.map((e) => tT[e]); 20193 }, 20194 acceptedTypesReadable() { 20195 const e = this.accept.map((n) => n.toUpperCase()); 20196 if (e.length < 1) return e.join(""); 20197 if (e.length === 2) return `${e[0]} ${this.$t("or")} ${e[1]}`; 20198 const t = e.pop(); 20199 return `${e.join(", ")} ${this.$t("or")} ${t}`; 20200 }, 20201 disableInput() { 20202 return this.disabled || this.fileIsUploading || void 0; 20203 }, 20204 visibleErrorMessages() { 20205 const e = [ 20206 ...this.warningMsgs, 20207 ...this.errorMsgs 20208 ]; 20209 return this.hint && this.hint.length > 0 && e.push({ 20210 errorMsg: this.hint 20211 }), e; 20212 }, 20213 _describedBy() { 20214 return this.visibleErrorMessages.length > 0 ? this.id + "-hint" : this.describedBy; 20215 }, 20216 _description() { 20217 return this.description ? this.description : !this.validFilesMaxLimit || !this.accept || !this.validFileSizeMax ? "" : this.$t("fileUpload.description", { 20218 count: this.validFilesMaxLimit, 20219 format: this.acceptedTypesReadable, 20220 size: Ss(this.validFileSizeMax, this.$i18n.locale, this.$t) 20221 }); 20222 } 20223 }, 20224 watch: { 20225 initialValue: { 20226 handler(e) { 20227 let t = e; 20228 t && (Symbol.iterator in Object(e) || (t = [ 20229 e 20230 ]), this.files = [], this.processFiles(t, { 20231 additionalData: { 20232 isUploaded: true 20233 } 20234 })); 20235 }, 20236 immediate: true 20237 }, 20238 filesValue: { 20239 handler() { 20240 (!this.filesValue || !this.filesValue.length) && (this.resetErrorsAndWarnings(), this.emitErrorsAndWarnings()); 20241 const e = this.filesValue.map((n) => n.data.data), t = this.getNativeFileList(e); 20242 this.$refs.fileUpload.files = t, this.$emit("update:model-value", this.uploadUrl ? this.filesValue : t); 20243 }, 20244 deep: true 20245 }, 20246 isDragging(e) { 20247 this.$refs.fileUploadButton.style.pointerEvents = e ? "none" : "initial"; 20248 } 20249 }, 20250 created() { 20251 this.dynamicUploadStatusId = this.id + `upload-status-${(/* @__PURE__ */ new Date()).getTime()}`; 20252 }, 20253 methods: { 20254 handleInput(e) { 20255 const t = e && e.target ? e.target.files : e; 20256 if (!t || t.length === 0) return; 20257 const n = [ 20258 ...t 20259 ].pop(); 20260 this.processFiles([ 20261 n 20262 ]); 20263 }, 20264 processFiles(e, t = { 20265 additionalData: {} 20266 }) { 20267 e.forEach((n) => { 20268 const i = n; 20269 this.resetErrorsAndWarnings(); 20270 const a = (/* @__PURE__ */ new Date()).valueOf(); 20271 if (this.files.length === this.validFilesMaxLimit) { 20272 this.addUserFeedbackMsg("filesMaxLimit", this.validFilesMaxLimit), this.emitErrorsAndWarnings(n); 20273 return; 20274 } 20275 this.latestAttemptFilename = i.name, this.acceptedTypes.includes(i.type) || this.addUserFeedbackMsg("fileType", [ 20276 this.accept.map((r) => r.toUpperCase()).join(", ") 20277 ]), i.size > this.validFileSizeMax && this.addUserFeedbackMsg("fileSize", [ 20278 this.validFileSizeMax / 1e6 20279 ]), (i.name.length > this.validFilenameLength || this.validFilenameCharacters.test(i.name)) && this.addUserFeedbackMsg("fileName", this.validFilenameLength), this.fileValidations && this.fileValidations.forEach((r) => { 20280 r.validator(i) && this.addUserFeedbackMsg(r.name); 20281 }), this.emitErrorsAndWarnings(i), !(this.errorMsgs.length > 0 || this.warningMsgs.length > 0) && this.files.push({ 20282 name: i.name, 20283 timestamp: a, 20284 data: n, 20285 lastModified: i.lastModified, 20286 ...t.additionalData 20287 }); 20288 }); 20289 }, 20290 addUserFeedbackMsg(e, t, n) { 20291 if (e === "filesMaxLimit") { 20292 this.addWarning(e, t, n); 20293 return; 20294 } 20295 this.validFilesMinLimit > 0 && this.files.length < this.validFilesMinLimit ? this.addError(e, t, n) : this.addWarning(e, t, n); 20296 }, 20297 addError(e, t, n) { 20298 this.errorMsgs.includes(e) || this.errorMsgs.push({ 20299 type: e, 20300 context: t, 20301 errorMsg: this.$t(n || "defaultErrorLabels." + e, t) 20302 }); 20303 }, 20304 addWarning(e, t, n) { 20305 this.warningMsgs.includes(e) || this.warningMsgs.push({ 20306 type: e, 20307 context: t, 20308 errorMsg: this.$t(n || "defaultErrorLabels." + e, t) 20309 }); 20310 }, 20311 removeWarning(e) { 20312 this.warningMsgs = this.warningMsgs.filter((t) => t.type !== e); 20313 }, 20314 emitErrorsAndWarnings(e) { 20315 this.$emit("errors", this.errorMsgs.map((t) => Object.values(t))), this.$emit("errors-detailed", this.errorMsgs.map((t) => ({ 20316 ...t, 20317 file: e 20318 }))), this.$emit("warnings", this.warningMsgs.map((t) => Object.values(t))), this.$emit("warnings-detailed", this.warningMsgs.map((t) => ({ 20319 ...t, 20320 file: e 20321 }))); 20322 }, 20323 resetErrorsAndWarnings() { 20324 this.errorMsgs = [], this.warningMsgs = [], this.latestAttemptFilename = ""; 20325 }, 20326 removeFile(e) { 20327 const t = this.files.splice(e, 1); 20328 e < this.filesValue.length && this.filesValue.splice(e, 1), this.removeWarning("filesMaxLimit"), t && setTimeout(() => { 20329 var n; 20330 const i = document.getElementById(this.dynamicUploadStatusId); 20331 i.textContent = ((n = t[0]) == null ? void 0 : n.name) + " " + this.$t("fileUpload.deleted"); 20332 }, 300); 20333 }, 20334 handleUploadError(e) { 20335 this.resetErrorsAndWarnings(), this.addUserFeedbackMsg("uploadFailed", e), this.emitErrorsAndWarnings(e.file), this.removeFile(e.fileIndex), this.fileIsUploading = false;
20336 }, 20337 handleUploadSuccess(e) { 20338 this.filesValue = [ 20339 ...this.filesValue, 20340 { 20341 ...e, 20342 data: e.file 20343 } 20344 ], this.fileIsUploading = false, this.$emit("upload-success", this.filesValue), setTimeout(() => { 20345 const t = document.getElementById(this.dynamicUploadStatusId); 20346 t.textContent = e.file.name + " " + (e.isUploaded ? this.$t("fileUpload.success") : this.$t("fileUpload.added")); 20347 }, 300); 20348 }, 20349 getNativeFileList(e = []) { 20350 try { 20351 const t = new ClipboardEvent("").clipboardData || new DataTransfer(); 20352 for (let n of e) t.items.add(n); 20353 return t.files; 20354 } catch (t) { 20355 console.warn("Unable to convert array to FileList"), console.error(t); 20356 } 20357 }, 20358 lockInputClick(e) { 20359 if (this.unlockInputClick) { 20360 this.unlockInputClick = false; 20361 return; 20362 } 20363 e.preventDefault(); 20364 }, 20365 inputClick() { 20366 this.unlockInputClick = true, this.$refs.fileUpload.click(); 20367 } 20368 }, 20369 fieldConfig: { 20370 customError: true, 20371 customDescription: true 20372 } 20373 }, rT = { 20374 ref: "inputWrapper", 20375 class: "n-file-upload-wrapper" 20376 }, iT = [ 20377 "id" 20378 ], aT = { 20379 class: "n-file-upload-container v-cloak" 20380 }, sT = [ 20381 "disabled" 20382 ], oT = [ 20383 "id", 20384 "aria-describedby", 20385 "name", 20386 "accept", 20387 "disabled", 20388 "multiple", 20389 "required" 20390 ], lT = { 20391 class: "n-file-upload__controls" 20392 }, uT = [ 20393 "id", 20394 "aria-describedby", 20395 "aria-label", 20396 "value", 20397 "disabled" 20398 ], cT = [ 20399 "id" 20400 ], dT = { 20401 class: "n-field__hint-icon-wrapper" 20402 }, pT = { 20403 class: "n-field__hint-content-wrapper" 20404 }, fT = { 20405 key: 0, 20406 class: "small n:mb-0" 20407 }, mT = { 20408 class: "small n:mb-sm n-file-upload__error-heading" 20409 }, hT = { 20410 class: "n:my-0 n:px-md" 20411 }, gT = { 20412 key: 2, 20413 class: "n-file-upload__list n:mt-0 n:p-0", 20414 "aria-live": "polite" 20415 }, bT = [ 20416 "id" 20417 ]; 20418 function vT(e, t, n, i, a, r) { 20419 const s = j("Icon"), o = j("InputFileListItem"); 20420 return m(), x("div", rT, [ 20421 r._description ? (m(), x("p", { 20422 key: 0, 20423 id: e.id + "-description" 20424 }, H(r._description), 9, iT)) : M("", true), 20425 O("div", aT, [ 20426 O("div", { 20427 class: R([ 20428 "n-file-upload__dropzone", 20429 { 20430 "n-file-upload__dropzone--dragging": a.isDragging 20431 } 20432 ]), 20433 disabled: r.disableInput, 20434 onDragenter: t[3] || (t[3] = (l) => a.isDragging = true), 20435 onDragleave: t[4] || (t[4] = (l) => a.isDragging = false), 20436 onDragend: t[5] || (t[5] = (l) => a.isDragging = false), 20437 onDrop: t[6] || (t[6] = (l) => a.isDragging = false) 20438 }, [ 20439 O("input", fe({ 20440 id: `${e.id}-hidden-file-input` 20441 }, { 20442 ...e.$attrs 20443 }, { 20444 ref: "fileUpload", 20445 "aria-hidden": "true", 20446 "aria-describedby": e.describedBy, 20447 tabindex: "-1", 20448 name: e.name, 20449 accept: r.acceptedTypes, 20450 disabled: r.disableInput, 20451 type: "file", 20452 class: "n-file-upload__input n:w-full n:max-w-full", 20453 multiple: a.isDragging, 20454 required: n.required ? "required" : void 0, 20455 onChange: t[0] || (t[0] = (...l) => r.handleInput && r.handleInput(...l)), 20456 onClick: t[1] || (t[1] = (...l) => r.lockInputClick && r.lockInputClick(...l)) 20457 }), null, 16, oT), 20458 O("div", lT, [ 20459 O("input", { 20460 id: e.id, 20461 ref: "fileUploadButton", 20462 "aria-describedby": r._describedBy, 20463 type: "button", 20464 "aria-label": e.$t("fileUpload.button"), 20465 value: e.$t("fileUpload.button"), 20466 class: "n-button n-button--secondary n-file-upload__icon", 20467 disabled: r.disableInput, 20468 onClick: t[2] || (t[2] = (...l) => r.inputClick && r.inputClick(...l)) 20469 }, null, 8, uT), 20470 O("span", null, H(e.$t("fileUpload.dragndrop")), 1) 20471 ]) 20472 ], 42, sT) 20473 ]), 20474 r.visibleErrorMessages.length > 0 ? (m(), x("div", { 20475 key: 1, 20476 id: `${e.id}-hint`, 20477 class: "n-field__hint is-color-text-light n-field__hint--after-input is-error n:mt-sm", 20478 "aria-live": "polite" 20479 }, [ 20480 O("div", dT, [ 20481 K(s, { 20482 icon: "xFill", 20483 class: "n-field__hint-icon is-color-error", 20484 size: 16, 20485 inline: "" 20486 }), 20487 t[8] || (t[8] = O("span", null, "\xA0", -1)) 20488 ]), 20489 O("div", pT, [ 20490 r.visibleErrorMessages.length === 1 && !a.latestAttemptFilename ? (m(), x("p", fT, H(r.visibleErrorMessages[0].errorMsg), 1)) : (m(), x(me, { 20491 key: 1 20492 }, [ 20493 O("p", mT, H(e.$t("defaultFeedbackLabels.error")) + ": " + H(a.latestAttemptFilename), 1), 20494 O("ul", hT, [ 20495 (m(true), x(me, null, ve(r.visibleErrorMessages, (l) => (m(), x("li", { 20496 key: l.type, 20497 class: "small n:mb-xs" 20498 }, H(l.errorMsg), 1))), 128)) 20499 ]) 20500 ], 64)) 20501 ]) 20502 ], 8, cT)) : M("", true), 20503 a.files ? (m(), x("ul", gT, [ 20504 V(e.$slots, "fileList", Pt(Bt(a.files)), () => [ 20505 (m(true), x(me, null, ve([ 20506 ...a.files 20507 ], (l, u) => V(e.$slots, "fileListItem", fe({ 20508 key: `${l.name}_${l.timestamp || l.lastModified}`, 20509 ref_for: true 20510 }, l), () => [ 20511 K(o, { 20512 file: l, 20513 index: u, 20514 "upload-url": n.uploadUrl, 20515 "upload-file-data": n.uploadAdditionalFormData, 20516 "upload-header-data": n.uploadHeaderData, 20517 onRemoveClick: r.removeFile, 20518 onUploadError: r.handleUploadError, 20519 onUploadSuccess: r.handleUploadSuccess, 20520 onAddSuccess: r.handleUploadSuccess, 20521 onUploading: t[7] || (t[7] = (c) => a.fileIsUploading = true) 20522 }, null, 8, [ 20523 "file", 20524 "index", 20525 "upload-url", 20526 "upload-file-data", 20527 "upload-header-data", 20528 "onRemoveClick", 20529 "onUploadError", 20530 "onUploadSuccess", 20531 "onAddSuccess" 20532 ]) 20533 ])), 128)) 20534 ]) 20535 ])) : M("", true), 20536 O("span", { 20537 id: e.dynamicUploadStatusId, 20538 class: "is-sr-only", 20539 "aria-live": "polite", 20540 "aria-atomic": "true" 20541 }, null, 8, bT) 20542 ], 512); 20543 }
20544 const yT = te(nT, [ 20545 [ 20546 "render", 20547 vT 20548 ] 20549 ]); 20550 var Jh = { 20551 exports: {} 20552 }; 20553 (function(e, t) { 20554 (function(n, i) { 20555 e.exports = i(); 20556 })(Qt, function() { 20557 return function(n) { 20558 function i(r) { 20559 if (a[r]) return a[r].exports; 20560 var s = a[r] = { 20561 exports: {}, 20562 id: r, 20563 loaded: false 20564 }; 20565 return n[r].call(s.exports, s, s.exports, i), s.loaded = true, s.exports; 20566 } 20567 var a = {}; 20568 return i.m = n, i.c = a, i.p = "", i(0); 20569 }([ 20570 function(n, i, a) { 20571 n.exports = a(2); 20572 }, 20573 , 20574 function(n, i) { 20575 function a() { 20576 function N() { 20577 var Ee = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : u, Le = Ee.length; 20578 if (Ee === u || Ee[0] === E[0] && Le === 1) return E.split(u).concat([ 20579 C 20580 ]).concat(A.split(u)); 20581 if (Ee === Y && G) return E.split(u).concat([ 20582 "0", 20583 Y, 20584 C 20585 ]).concat(A.split(u)); 20586 var Be = Ee[0] === p && oe; 20587 Be && (Ee = Ee.toString().substr(1)); 20588 var Ie = Ee.lastIndexOf(Y), Ve = Ie !== -1, B = void 0, ie = void 0, Fe = void 0; 20589 if (Ee.slice(_e * -1) === A && (Ee = Ee.slice(0, _e * -1)), Ve && (G || se) ? (B = Ee.slice(Ee.slice(0, Ae) === E ? Ae : 0, Ie), ie = Ee.slice(Ie + 1, Le), ie = r(ie.replace(h, u))) : B = Ee.slice(0, Ae) === E ? Ee.slice(Ae) : Ee, ke && (typeof ke > "u" ? "undefined" : o(ke)) === _) { 20590 var qe = T === "." ? "[.]" : "" + T, He = (B.match(new RegExp(qe, "g")) || []).length; 20591 B = B.slice(0, ke + He * Te); 20592 } 20593 return B = B.replace(h, u), be || (B = B.replace(/^0+(0$|[^0])/, "$1")), B = w ? s(B, T) : B, Fe = r(B), (Ve && G || se === true) && (Ee[Ie - 1] !== Y && Fe.push(D), Fe.push(Y, D), ie && ((typeof J > "u" ? "undefined" : o(J)) === _ && (ie = ie.slice(0, J)), Fe = Fe.concat(ie)), se === true && Ee[Ie - 1] === Y && Fe.push(C)), Ae > 0 && (Fe = E.split(u).concat(Fe)), Be && (Fe.length === Ae && Fe.push(C), Fe = [ 20594 b 20595 ].concat(Fe)), A.length > 0 && (Fe = Fe.concat(A.split(u))), Fe; 20596 } 20597 var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, y = v.prefix, E = y === void 0 ? l : y, k = v.suffix, A = k === void 0 ? u : k, L = v.includeThousandsSeparator, w = L === void 0 || L, z = v.thousandsSeparatorSymbol, T = z === void 0 ? c : z, P = v.allowDecimal, G = P !== void 0 && P, X = v.decimalSymbol, Y = X === void 0 ? d : X, q = v.decimalLimit, J = q === void 0 ? 2 : q, Z = v.requireDecimal, se = Z !== void 0 && Z, Q = v.allowNegative, oe = Q !== void 0 && Q, ce = v.allowLeadingZeroes, be = ce !== void 0 && ce, ye = v.integerLimit, ke = ye === void 0 ? null : ye, Ae = E && E.length || 0, _e = A && A.length || 0, Te = T && T.length || 0; 20598 return N.instanceOf = "createNumberMask", N; 20599 } 20600 function r(N) { 20601 return N.split(u).map(function(v) { 20602 return C.test(v) ? C : v; 20603 }); 20604 } 20605 function s(N, v) { 20606 return N.replace(/\B(?=(\d{3})+(?!\d))/g, v); 20607 } 20608 Object.defineProperty(i, "__esModule", { 20609 value: true 20610 }); 20611 var o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(N) { 20612 return typeof N; 20613 } : function(N) { 20614 return N && typeof Symbol == "function" && N.constructor === Symbol && N !== Symbol.prototype ? "symbol" : typeof N; 20615 }; 20616 i.default = a; 20617 var l = "$", u = "", c = ",", d = ".", p = "-", b = /-/, h = /\D+/g, _ = "number", C = /\d/, D = "[]"; 20618 } 20619 ]); 20620 }); 20621 })(Jh); 20622 var _T = Jh.exports; 20623 let Qh, ET, kT, CT, AT, ST, wT, LT, xT, OT, TT, us, IT, FT, NT, DT; 20624 Qh = Ei(_T); 20625 ET = { 20626 name: "n-input-number" 20627 }; 20628 kT = Object.assign(ET, { 20629 props: Il({ 20630 prefix: { 20631 type: String, 20632 default: "" 20633 }, 20634 size: { 20635 type: String, 20636 default: "default" 20637 }, 20638 state: { 20639 type: String 20640 }, 20641 maxLength: { 20642 type: String 20643 }, 20644 decimalPlaces: { 20645 type: Number, 20646 default: 0 20647 }, 20648 inputMode: { 20649 type: String, 20650 default: "tel" 20651 }, 20652 pattern: { 20653 type: String, 20654 default: "[0-9]*" 20655 }, 20656 placeholder: { 20657 type: String, 20658 default: "" 20659 }, 20660 mask: { 20661 type: Object 20662 } 20663 }, {
20664 modelValue: { 20665 type: Number 20666 }, 20667 modelModifiers: {} 20668 }), 20669 emits: [ 20670 "update:modelValue" 20671 ], 20672 setup(e) { 20673 const t = Fl(e, "modelValue"), n = bf(), i = e, a = ne(() => i.mask ? i.mask : { 20674 mask: Qh({ 20675 allowDecimal: i.decimalPlaces >= 1, 20676 decimalLimit: i.decimalPlaces, 20677 includeThousandsSeparator: false, 20678 prefix: i.prefix 20679 }) 20680 }), r = qn({ 20681 ...n, 20682 ...i, 20683 mask: a.value, 20684 "aria-describedby": n.describedByAttr 20685 }); 20686 return (s, o) => (m(), U(Mt, fe(r, { 20687 ref: "input", 20688 modelValue: t.value, 20689 "onUpdate:modelValue": o[0] || (o[0] = (l) => t.value = l), 20690 modelModifiers: { 20691 number: true 20692 }, 20693 type: "text", 20694 class: [ 20695 "n-input n-input-number n:font-numbers", 20696 s.inputClass, 20697 `n-input--${s.inputType}` 20698 ], 20699 inputmode: e.inputMode, 20700 pattern: e.pattern, 20701 placeholder: e.placeholder, 20702 mask: a.value 20703 }), null, 16, [ 20704 "modelValue", 20705 "class", 20706 "inputmode", 20707 "pattern", 20708 "placeholder", 20709 "mask" 20710 ])); 20711 } 20712 }); 20713 CT = { 20714 class: "is-sr-only", 20715 role: "status", 20716 tabindex: "-1" 20717 }; 20718 AT = [ 20719 "id" 20720 ]; 20721 ST = [ 20722 "id", 20723 "aria-hidden" 20724 ]; 20725 wT = [ 20726 "id", 20727 "aria-hidden" 20728 ]; 20729 LT = { 20730 name: "n-input-number-stepper", 20731 mixins: [ 20732 nt 20733 ] 20734 }; 20735 xT = Object.assign(LT, { 20736 props: Il({ 20737 disabled: { 20738 type: Boolean 20739 }, 20740 required: { 20741 type: Boolean 20742 }, 20743 label: { 20744 type: String 20745 }, 20746 min: { 20747 type: Number, 20748 default: function() { 20749 return 0; 20750 } 20751 }, 20752 max: { 20753 type: Number, 20754 default: function() { 20755 return Number.MAX_SAFE_INTEGER; 20756 } 20757 }, 20758 size: { 20759 type: String, 20760 default: "default" 20761 }, 20762 step: { 20763 type: Number, 20764 default: 1 20765 }, 20766 state: it.state, 20767 mask: { 20768 type: Object 20769 }, 20770 decimalPlaces: { 20771 type: Number 20772 }, 20773 prefix: { 20774 type: String, 20775 default: "" 20776 }, 20777 incrementLabel: { 20778 type: String 20779 }, 20780 decrementLabel: { 20781 type: String 20782 }, 20783 id: { 20784 type: String 20785 } 20786 }, { 20787 modelValue: { 20788 type: [ 20789 Number, 20790 String 20791 ] 20792 }, 20793 modelModifiers: {} 20794 }), 20795 emits: [ 20796 "update:modelValue" 20797 ], 20798 setup(e) { 20799 const t = pe(null), n = pe(null), i = Fl(e, "modelValue"), a = bf(), { t: r } = Wr(), s = e, o = ne(() => s.incrementLabel || r("label.increaseValue", [ 20800 s.label 20801 ])), l = ne(() => s.decrementLabel || r("label.decreaseValue", [ 20802 s.label 20803 ])), u = ne(() => { 20804 let A = 0; 20805 if (s.decimalPlaces) return s.decimalPlaces; 20806 if (s.step && (A = s.step - Math.floor(s.step)), A === 0) return 0; 20807 try { 20808 A = A.toString().replace("0.", ""); 20809 } catch (L) { 20810 console.error(L); 20811 } 20812 return A.length; 20813 }), c = ne(() => s.mask ? s.mask : { 20814 mask: Qh({ 20815 allowDecimal: u.value >= 1, 20816 decimalLimit: u.value, 20817 includeThousandsSeparator: false, 20818 prefix: s.prefix, 20819 allowLeadingZeroes: true 20820 }) 20821 }), d = ne(() => typeof i.value == "string"), p = ne(() => s.max === void 0 ? true : i.value == null || i.value === "" ? false : Number(i.value) === Number(s.max)), b = ne(() => s.min === void 0 ? true : i.value == null || i.value === "" ? false : Number(i.value) === Number(s.min)), h = ne(() => ql([ 20822 a["aria-describedby"], 20823 a.describedByAttr, 20824 `${s.id}
20824-auto-boundary-instructions` 20825 ], { 20826 separator: " ", 20827 nullReturnValue: null 20828 })), _ = ne(() => ({ 20829 ...a, 20830 ...s, 20831 mask: c.value, 20832 "aria-describedby": h.value 20833 })); 20834 function C(A) { 20835 return A = d.value ? Number(A) : A, A > s.max ? s.max : A; 20836 } 20837 function D(A) { 20838 return A = d.value ? Number(A) : A, A < s.min ? s.min : A; 20839 } 20840 function N(A) { 20841 return C(D(A)); 20842 } 20843 function v() { 20844 let A = d.value ? i.value.toString() : i.value; 20845 A || (A = s.min), Number(A) < s.max && (A = C(Number(A) + Number(s.step))), i.value = A; 20846 } 20847 function y() { 20848 let A = d.value ? i.value.toString() : i.value; 20849 A || (A = s.min), Number(A) > s.min && (A = D(Number(A) - Number(s.step))), i.value = A; 20850 } 20851 function E(A) { 20852 if (d.value && A.length && A.length >= 1) { 20853 try { 20854 A = A.replace(/^00+/g, "0").replace(/^0([^0].*)/, "$1"); 20855 } catch (L) { 20856 console.error(L); 20857 } 20858 return A; 20859 } 20860 return A; 20861 } 20862 function k() { 20863 const A = N(E(i.value || s.min)); 20864 i.value !== A && (i.value = A); 20865 } 20866 return Ue(i, (A) => { 20867 var L, w; 20868 _.value.disabled || (b.value ? (L = t.value) == null || L.$el.focus() : p.value && ((w = n.value) == null || w.$el.focus())), A = E(A), i.value = d.value && A != null ? A.toString() : A; 20869 }), (A, L) => (m(), x("div", { 20870 class: R([ 20871 [ 20872 `${A.$options.name}-wrapper`, 20873 `n-input-wrapper--${e.size}`, 20874 e.state ? `is-${e.state}` : "" 20875 ], 20876 "n-input-wrapper" 20877 ]) 20878 }, [ 20879 K(Mt, fe(_.value, { 20880 id: e.id, 20881 ref: "input", 20882 modelValue: i.value, 20883 "onUpdate:modelValue": L[0] || (L[0] = (w) => i.value = w), 20884 name: e.id, 20885 role: "spinbutton", 20886 inputmode: "numeric", 20887 pattern: "[0-9]*", 20888 class: [ 20889 [ 20890 A.inputClass, 20891 `n-input--${A.inputType}` 20892 ], 20893 "n-input n-input-number-stepper n:font-numbers" 20894 ], 20895 "model-value": i.value, 20896 mask: c.value, 20897 state: e.state, 20898 onBlur: k, 20899 onKeyup: [ 20900 Ye(v, [ 20901 "up" 20902 ]), 20903 Ye(y, [ 20904 "down" 20905 ]), 20906 Ye(v, [ 20907 "page-up" 20908 ]), 20909 Ye(y, [ 20910 "page-down" 20911 ]) 20912 ] 20913 }), null, 16, [ 20914 "id", 20915 "modelValue", 20916 "name", 20917 "class", 20918 "model-value", 20919 "mask", 20920 "state" 20921 ]), 20922 O("div", CT, H(i.value), 1), 20923 O("p", { 20924 id: `${e.id}
20924-auto-boundary-instructions`, 20925 class: "is-sr-only" 20926 }, H(ae(r)("numberStepper.autoBoundaryInstructions", [ 20927 s.min, 20928 s.max 20929 ])), 9, AT), 20930 O("div", { 20931 class: R([ 20932 "n-input-number-stepper__buttons n:flex has-vertical-dividers-md", 20933 { 20934 "n-input-number-stepper__buttons--disabled": _.value.disabled 20935 } 20936 ]) 20937 }, [ 20938 K(ae(ze), { 20939 ref_key: "decrementButton", 20940 ref: n, 20941 class: "n-input-number-stepper__decrement-button n:m-0", 20942 format: "ghost", 20943 icon: "minus-outline", 20944 "icon-color": "text", 20945 "aria-controls": _.value.id, 20946 "aria-label": l.value, 20947 "aria-describedby": `${_.value.id}-decrement-button-instructions`, 20948 disabled: _.value.disabled || b.value, 20949 "aria-hidden": _.value.disabled || b.value ? "true" : "false", 20950 onClick: y 20951 }, null, 8, [ 20952 "aria-controls", 20953 "aria-label", 20954 "aria-describedby", 20955 "disabled", 20956 "aria-hidden" 20957 ]), 20958 K(ae(ze), { 20959 ref_key: "incrementButton", 20960 ref: t, 20961 class: "n-input-number-stepper__increment-button n:m-0", 20962 format: "ghost", 20963 icon: "plus-outline", 20964 "icon-color": "text", 20965 "aria-controls": _.value.id, 20966 "aria-label": o.value, 20967 "aria-describedby": `${_.value.id}-increment-button-instructions`, 20968 disabled: _.value.disabled || p.value, 20969 "aria-hidden": _.value.disabled || p.value ? "true" : "false", 20970 onClick: v 20971 }, null, 8, [ 20972 "aria-controls", 20973 "aria-label", 20974 "aria-describedby", 20975 "disabled", 20976 "aria-hidden" 20977 ]) 20978 ], 2), 20979 O("p", { 20980 id: `${_.value.id}-decrement-button-instructions`, 20981 "aria-hidden": _.value.disabled || b.value ? "true" : "false", 20982 class: "is-sr-only" 20983 }, H(ae(r)("numberStepper.decrementInstructions", [ 20984 s.min, 20985 s.id 20986 ])), 9, ST), 20987 O("p", { 20988 id: `${_.value.id}-increment-button-instructions`, 20989 "aria-hidden": _.value.disabled || p.value ? "true" : "false", 20990 class: "is-sr-only" 20991 }, H(ae(r)("numberStepper.incrementInstructions", [ 20992 s.max, 20993 s.id 20994 ])), 9, wT) 20995 ], 2)); 20996 } 20997 }); 20998 OT = { 20999 name: "n-input-percentage", 21000 extends: ku, 21001 props: { 21002 affixmentPosition: { 21003 type: String, 21004 default: "right" 21005 }, 21006 affixment: { 21007 type: String, 21008 default: "%" 21009 } 21010 }, 21011 compatConfig: { 21012 MODE: 3 21013 }, 21014 fieldConfig: { 21015 affixment: "%" 21016 } 21017 }; 21018 $T = { 21019 name: "n-input-phone", 21020 extends: Mt, 21021 props: { 21022 size: { 21023 type: String, 21024 default: "default" 21025 }, 21026 placeholder: { 21027 type: String, 21028 default: "(___) ___-____" 21029 }, 21030 mask: { 21031 type: Object, 21032 default: () => ({ 21033 mask: [ 21034 "(", 21035 /[1-9]/, 21036 /\d/, 21037 /\d/, 21038 ")", 21039 " ", 21040 /\d/, 21041 /\d/, 21042 /\d/, 21043 "-", 21044 /\d/, 21045 /\d/, 21046 /\d/, 21047 /\d/ 21048 ], 21049 name: "phone", 21050 guide: false 21051 }) 21052 } 21053 }, 21054 computed: { 21055 inputType() { 21056 return "tel"; 21057 } 21058 }, 21059 compatConfig: { 21060 MODE: 3 21061 } 21062 }; 21063 TT = [ 21064 "Canada: +1", 21065 "United States of America: +1", 21066 "Andorra: +376", 21067 "\u062F \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646 \u0627\u0633\u0644\u0627\u0645\u064A \u062F\u0648\u0644\u062A\u062F\u0648\u0644\u062A \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646, \u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646: +93", 21068 "Antigua and Barbuda: +1268", 21069 "Anguilla: +1264", 21070 "Shqip\xEBria: +355", 21071 "\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576: +374", 21072 "Angola: +244", 21073 "Antarctica, Ant\xE1rtico, Antarctique, \u0410\u043D\u0442\u0430\u0440\u043A\u0442\u0438\u043A\u0435: +672", 21074 "Argentina: +54", 21075 "American Samoa: +1684", 21076 "\xD6sterreich: +43", 21077 "Australia: +61", 21078 "Aruba: +297", 21079 "\xC5land: +358", 21080 "Az\u0259rbaycan: +994", 21081 "Bosna i Hercegovina: +387", 21082 "Barbados: +1246", 21083 "\u0997\u09A3\u09AA\u09CD\u09B0\u099C\u09BE\u09A4\u09A8\u09CD\u09A4\u09CD\u09B0\u09C0 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6: +880", 21084 "Belgi\xEB, Belgique, Belgien: +32", 21085 "Burkina Faso: +226", 21086 "\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F: +359", 21087 "\u0627\u0644\u0628\u062D\u0631\u064A\u0646: +973", 21088 "Burundi: +257", 21089 "B\xE9nin: +229", 21090 "Saint-Barth\xE9lemy: +590", 21091 "Bermuda: +1441", 21092 "Brunei Darussalam: +673", 21093 "Bolivia, Bulibiya, Vol\xEDvia, Wuliwya: +591", 21094 "Caribisch Nederland: +5997", 21095 "Brasil: +55", 21096 "\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F0B\u0F61\u0F74\u0F63: +975", 21097 "Bouvet\xF8ya: +47", 21098 "Botswana: +267", 21099 "\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C: +375", 21100 "Belize: +501", 21101 "Schweiz, Suisse, Svizzera, Svizra: +41", 21102 "C\xF4te d'Ivoire: +225", 21103 "Chile: +56", 21104 "Cameroun, Cameroon: +237", 21105 "\u4E2D\u56FD: +86", 21106 "Colombia: +57", 21107 "Costa Rica: +506", 21108 "Cuba: +53", 21109 "Cabo Verde: +238", 21110 "Cura\xE7ao: +599", 21111 "Christmas Island: +61", 21112 "\u039A\u03CD\u03C0\u03C1\u03BF\u03C2, Kibris: +357", 21113 "Deutschland: +49", 21114 "Djibouti, \u062C\u064A\u0628\u0648\u062A\u064A, Jabuuti, Gabuutih: +253", 21115 "Danmark: +45", 21116 "Dominica: +767", 21117 "\u0627\u0644\u062C\u0632\u0627\u0626\u0631: +213", 21118 "Ecuador: +593", 21119 "Eesti: +372", 21120 "\u0645\u0635\u0631: +20", 21121 "Sahara Occidental: +212", 21122 "\u12A4\u122D\u1275\u122B, \u0625\u0631\u062A\u0631\u064A\u0627, Eritrea: +29
211221", 21123 "Espa\xF1a: +34", 21124 "\u12A2\u1275\u12EE\u1335\u12EB, Itoophiyaa: +251", 21125 "Suomi: +358", 21126 "Fiji: +679", 21127 "Micronesia: +691", 21128 "France: +33", 21129 "Gabon: +241", 21130 "Grenada: +1473", 21131 "\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD: +995", 21132 "Guyane fran\xE7aise: +594", 21133 "Guernsey: +44", 21134 "Ghana: +233", 21135 "Gibraltar: +350", 21136 "Kalaallit Nunaat, Gr\xF8nland: +299", 21137 "Guin\xE9e: +224", 21138 "Guadeloupe: +590", 21139 "Guiena ecuatorial, Guin\xE9e \xE9quatoriale, Guin\xE9 Equatorial: +240", 21140 "\u0395\u03BB\u03BB\u03AC\u03B4\u03B1: +30", 21141 "South Georgia and the South Sandwich Islands: +500", 21142 "Guatemala: +502", 21143 "Guam, Gu\xE5h\xE5n: +1", 21144 "Guin\xE9-Bissau: +245", 21145 "Guyana: +592", 21146 "\u9999\u6E2F, Hong Kong: +852", 21147 "Honduras: +504", 21148 "Hrvatska: +385", 21149 "Ha\xEFti, Ayiti: +509", 21150 "Magyarorsz\xE1g: +36", 21151 "Indonesia: +62", 21152 "Ireland, \xC9ire: +353", 21153 "\u05D9\u05E9\u05E8\u05D0\u05DC: +972", 21154 "Isle of Man: +44", 21155 "\u092D\u093E\u0930\u0924, India: +91", 21156 "British Indian Ocean Territory: +246", 21157 "\u0627\u0644\u0639\u0631\u0627\u0642, Iraq: +964", 21158 "\u0627\u06CC\u0631\u0627\u0646: +98", 21159 "\xCDsland: +354", 21160 "Italia: +39", 21161 "Jersey: +44", 21162 "Jamaica: +876", 21163 "\u0627\u0644\u0623\u064F\u0631\u0652\u062F\u064F\u0646: +962", 21164 "\u65E5\u672C: +81", 21165 "Kenya: +254", 21166 "\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D, \u041A\u0438\u0440\u0433\u0438\u0437\u0438\u044F: +996", 21167 "\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6: +855", 21168 "\uC870\uC120\uBBFC\uC8FC\uC8FC\uC758\uC778\uBBFC\uACF5\uD654\uAD6D: +850", 21169 "\uB300\uD55C\uBBFC\uAD6D: +82", 21170 "Kiribati: +686", 21171 "Saint Kitts and Nevis: +1869", 21172 "\u0627\u0644\u0643\u0648\u064A\u062A: +965", 21173 "\u049A\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D, \u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D: +7", 21174 "\u0644\u0628\u0646\u0627\u0646, Liban: +961", 21175 "Saint Lucia: +1758", 21176 "Liechtenstein: +423", 21177 "\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF, \u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8: +94", 21178 "Liberia: +231", 21179 "Lesotho: +266", 21180 "Lietuva: +370", 21181 "L\xEBtzebuerg, Luxembourg, Luxemburg: +352", 21182 "Latvija: +371", 21183 "\u0644\u064A\u0628\u064A\u0627: +218", 21184 "Maroc, \u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31, \u0627\u0644\u0645\u063A\u0631\u0628: +212", 21185 "Monaco: +377", 21186 "Crna Gora, \u0426\u0440\u043D\u0430 \u0413\u043E\u0440\u0430: +382", 21187 "Saint-Martin: +590", 21188 "Madagasikara, Madagascar: +261", 21189 "Mali: +223", 21190 "\u1019\u103C\u1014\u103A\u1019\u102C: +95", 21191 "\u041C\u043E\u043D\u0433\u043E\u043B \u0423\u043B\u0441: +976", 21192 "\u6FB3\u9580, Macau: +853", 21193 "Martinique: +596", 21194 "\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627, Mauritanie: +222", 21195 "Montserrat: +1664", 21196 "Malta: +356", 21197 "Maurice, Mauritius: +230", 21198 "\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7: +960", 21199 "Malawi: +265", 21200 "M\xE9xico: +52", 21201 "Malaysia: +60", 21202 "Mozambique: +258", 21203 "Namibia: +264", 21204 "Nouvelle-Cal\xE9donie: +687", 21205 "Norfolk Island: +672", 21206 "Nigeria: +234", 21207 "Nicaragua: +505", 21208 "Norge, Noreg: +47", 21209 "\u0938\u0919\u094D\u0918\u0940\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932: +977", 21210 "Nauru: +674", 21211 "Niue: +683", 21212 "New Zealand: +64", 21213 "\u0633\u0644\u0637\u0646\u0629 \u0639\u064F\u0645\u0627\u0646: +968", 21214 "Panama: +507", 21215 "Per\xFA: +51", 21216 "Polyn\xE9sie fran\xE7aise: +689", 21217 "Papua New Guinea: +675", 21218 "\u067E\u0627\u06A9\u0633\u062A\u0627\u0646: +92", 21219 "Polska: +48", 21220 "Saint-Pierre-et-Miquelon: +508", 21221 "Pitcairn: +64", 21222 "Puerto Rico: +1", 21223 "Palestinian Territory: +970", 21224 "Portugal: +351", 21225 "Palau: +680", 21226 "Paraguay: +595", 21227 "\u0642\u0637\u0631: +974", 21228 "La R\xE9union: +262", 21229 "Rom\xE2nia: +40", 21230 "\u0421\u0440\u0431\u0438\u0458\u0430: +381", 21231 "\u0420\u043E\u0441\u0441\u0438\u044F: +7", 21232 "Rwanda: +250", 21233 "\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629: +966", 21234 "Solomon Islands: +677", 21235 "Seychelles: +248", 21236 "Sverige: +46", 21237 "Singapore: +65", 21238 "Saint Helena: +290", 21239 "Slovenija: +386", 21240 "Svalbard and Jan Mayen: +4779", 21241 "Slovensko: +421", 21242 "Sierra Leone: +232", 21243 "Repubblica di San Marino: +378", 21244 "S\xE9n\xE9gal: +221", 21245 "Somalia, \u0627\u0644\u0635\u0648\u0645\u0627\u0644: +252", 21246 "Suriname: +597", 21247 "South Sudan: +211", 21248 "S\xE3o Tom\xE9 e Pr\xEDncipe: +239", 21249 "El Salvador: +503", 21250 "Sint Maarten: +1721", 21251 "\u0633\u0648\u0631\u064A\u0627, S\u016Briyya: +963", 21252 "Tchad, \u062A\u0634\u0627\u062F: +235", 21253 "Togo: +228", 21254 "\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22: +66", 21255 "\u04B6\u0443\u043C\u04B3\u0443\u0440\u0438\u0438 \u0422\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D: +992", 21256 "Tokelau: +690", 21257 "Timor-Leste, Timor Lorosa'e: +670", 21258 "T\xFCrkmenistan: +993", 21259 "\u062A\u0648\u0646\u0633, Tunisie: +216", 21260 "Tonga: +676", 21261 "T\xFCrkiye: +90", 21262 "Trinidad and Tobago: +868", 21263 "Tuvalu: +688", 21264 "Tanzania: +255", 21265 "\u0423\u043A\u0440\u0430\u0457\u043D\u0430: +380", 21266 "Uganda: +256", 21267 "Uruguay: +598",
21268 "O\u2018zbekiston Respublikasi, \u040E\u0437\u0431\u0435\u043A\u0438\u0441\u0442\u043E\u043D \u0420\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u0438: +998", 21269 "Saint Vincent and the Grenadines: +1784", 21270 "Venezuela: +58", 21271 "British Virgin Islands: +1284", 21272 "United States Virgin Islands: +1340", 21273 "Vi\u1EC7t Nam: +84", 21274 "Vanuatu: +678", 21275 "Wallis-et-Futuna: +681", 21276 "Samoa: +685", 21277 "\u0627\u0644\u064A\u064E\u0645\u064E\u0646: +967", 21278 "Mayotte: +262", 21279 "South Africa: +27", 21280 "Zambia: +260", 21281 "Zimbabwe: +263", 21282 "Swaziland: +268", 21283 "\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430: +389", 21284 "Philippines: +63", 21285 "Nederland: +31", 21286 "\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0651\u0629 \u0627\u0644\u0645\u062A\u0651\u062D\u062F\u0629: +971", 21287 "Moldova, \u041C\u043E\u043B\u0434\u0430\u0432\u0438\u044F: +373", 21288 "The Gambia: +220", 21289 "Rep\xFAblica Dominicana: +1", 21290 "\u0627\u0644\u0633\u0648\u062F\u0627\u0646: +249", 21291 "\u0E9B\u0EB0\u0E8A\u0EB2\u0E8A\u0EBB\u0E99\u0EA5\u0EB2\u0EA7: +856", 21292 "Taiwan: +886", 21293 "R\xE9publique du Congo: +242", 21294 "\u010Cesk\xE1 republika: +420", 21295 "Great Britain: +44", 21296 "Niger: +227", 21297 "Democratic Republic of the Congo: +243", 21298 "Commonwealth of The Bahamas: +1 242", 21299 "Pulu Kokos (Keeling): +61 891", 21300 "R\xE9publique centrafricaine: +236", 21301 "K\u016Bki '\u0100irani: +682", 21302 "Falkland Islands: +500", 21303 "F\xE6r\xF8erne: +298", 21304 "Territory of Heard Island and McDonald Islands: +672", 21305 "Umoja wa Komori: +269", 21306 "Cayman Islands: +1 345", 21307 "Aolep\u0101n Aor\u014Dkin \u1E42aje\u1E37: +692", 21308 "Sankattan Siha Na Islas Mari\xE5nas: +1 670", 21309 "Turks and Caicos Islands: +1 649", 21310 "Terres australes et antarctiques fran\xE7aises: +672", 21311 "United States Minor Outlying Islands: +1", 21312 "Sancta Sedes: +39", 21313 "Republika e Kosov\xEBs: +383", 21314 "Nederlandse Antillen: +599" 21315 ]; 21316 us = { 21317 name: "n-input-text", 21318 extends: Mt, 21319 computed: { 21320 inputType() { 21321 return "text"; 21322 } 21323 } 21324 }; 21325 IT = { 21326 name: "n-select", 21327 components: { 21328 Icon: Tt 21329 }, 21330 mixins: [ 21331 Xn 21332 ], 21333 inheritAttrs: false, 21334 props: { 21335 ...it, 21336 modelValue: { 21337 type: [ 21338 String, 21339 Number, 21340 Boolean 21341 ], 21342 default: null 21343 }, 21344 placeholder: { 21345 type: String, 21346 default: null 21347 }, 21348 noPlaceholder: { 21349 type: Boolean 21350 }, 21351 isInline: { 21352 type: Boolean, 21353 default: false 21354 } 21355 }, 21356 emits: [ 21357 "update:model-value", 21358 "input" 21359 ], 21360 computed: { 21361 possibleInputValues() { 21362 return this.inputOptionList ? this.inputOptionList.map((e) => e.value) : []; 21363 }, 21364 _placeholder() { 21365 return this.placeholder || this.$t("defaultInputLabels.Select.placeholder"); 21366 } 21367 }, 21368 methods: { 21369 getValueFromIndex(e) { 21370 const t = this.noPlaceholder ? e : e - 1; 21371 return this.inputOptionList[t] ? this.inputOptionList[t].value : null; 21372 }, 21373 inputHandler(e) { 21374 this.$emit("update:model-value", this.getValueFromIndex(e.target.selectedIndex)); 21375 } 21376 }, 21377 compatConfig: { 21378 MODE: 3 21379 } 21380 }; 21381 FT = [ 21382 "id", 21383 "aria-describedby", 21384 "name" 21385 ]; 21386 NT = [ 21387 "selected" 21388 ]; 21389 DT = [ 21390 "selected" 21391 ]; 21392 function PT(e, t, n, i, a, r) { 21393 const s = j("Icon"); 21394 return m(), x("div", { 21395 class: R([ 21396 [ 21397 `n-select-wrapper--${e.size}`, 21398 e.state ? `is-${e.state}` : "" 21399 ], 21400 "n-select-wrapper" 21401 ]) 21402 }, [ 21403 O("select", fe({ 21404 id: e.id 21405 }, e.$attrs, { 21406 ref: "input", 21407 "aria-describedby": e.describedBy, 21408 class: [ 21409 [ 21410 e.inputClass, 21411 { 21412 "is-inline": n.isInline 21413 } 21414 ], 21415 "n-select" 21416 ], 21417 name: e.name, 21418 onChange: t[0] || (t[0] = (...o) => r.inputHandler && r.inputHandler(...o)) 21419 }), [ 21420 n.noPlaceholder ? M("", true) : (m(), x("option", { 21421 key: 0, 21422 selected: !r.possibleInputValues.includes(n.modelValue), 21423 value: "" 21424 }, H(r._placeholder), 9, NT)), 21425 V(e.$slots, "default", {}, () => [ 21426 (m(true), x(me, null, ve(e.inputOptionList, (o) => (m(), x("option", fe({ 21427 key: o.value + o.label, 21428 ref_for: true 21429 }, o, { 21430 selected: n.modelValue === o.value 21431 }), H(o.label), 17, DT))), 128)) 21432 ]) 21433 ], 16, FT), 21434 O("div", { 21435 class: R([ 21436 { 21437 "is-faded-into-bg-left": n.isInline 21438 }, 21439 "n-select-wrapper__icon-wrapper" 21440 ]) 21441 }, [ 21442 K(s, { 21443 icon: n.isInline ? "chevron" : "caret" 21444 }, null, 8, [ 21445 "icon" 21446 ]) 21447 ], 2) 21448 ], 2); 21449 } 21450 let BT, MT, RT, UT, VT, HT; 21451 xi = te(IT, [ 21452 [ 21453 "render", 21454 PT 21455 ] 21456 ]); 21457 BT = { 21458 name: "n-input-phone", 21459 components: { 21460 BaseInput: Mt, 21461 Checkbox: jh, 21462 Field: Rs, 21463 NSelect: xi, 21464 InputText: us 21465 }, 21466 props: { 21467 ...Mt.props, 21468 modelValue: { 21469 type: [ 21470 String, 21471 Object 21472 ] 21473 }, 21474 valueFormat: { 21475 type: String, 21476 default: "auto" 21477 }, 21478 required: { 21479 type: Boolean 21480 }, 21481 size: { 21482 type: String, 21483 default: "default" 21484 }, 21485 label: { 21486 type: String 21487 }, 21488 enableCountryCode: { 21489 type: Boolean 21490 }, 21491 countryCodeLabel: { 21492 type: String 21493 }, 21494 localNumberLabel: { 21495 type: String 21496 }, 21497 placeholder: { 21498 type: String 21499 }, 21500 mask: { 21501 type: [ 21502 Object, 21503 Boolean 21504 ], 21505 default: false 21506 }, 21507 enableExtension: { 21508 type: Boolean 21509 }, 21510 extensionLabel: { 21511 type: String 21512 }, 21513 enableMobile: { 21514 type: Boolean 21515 }, 21516 mobileLabel: { 21517 type: String 21518 } 21519 }, 21520 emits: [ 21521 "update:model-value" 21522 ], 21523 data() { 21524 return { 21525 countryCodesList: TT, 21526 value: "", 21527 values: { 21528 countryCode: { 21529 input: void 0, 21530 code: void 0, 21531 country: void 0 21532 }, 21533 localNumber: void 0, 21534 extension: void 0, 21535 isMobile: void 0 21536 } 21537 }; 21538 }, 21539 computed: { 21540 requireObjectModel() { 21541 return this.enableCountryCode || this.enableExtension || this.enableMobile; 21542 }, 21543 requireStringModel() { 21544 return !this.requireObjectModel; 21545 }, 21546 $valueFormat() { 21547 return this.valueFormat !== "auto" ? this.valueFormat : this.requireObjectValue ? "object" : "string"; 21548 }, 21549 $placeholder() { 21550 if (this.placeholder) return this.placeholder; 21551 if (!this.enableCountryCode || this.enableCountryCode && [ 21552 "Canada: +1", 21553 "United States of America: +1" 21554 ].includes(this.values.countryCode.input)) return "(___) ___-____"; 21555 }, 21556 $mask() { 21557 return this.mask ? this.mask : !this.enableCountryCode || this.enableCountryCode && [ 21558 "Canada: +1", 21559 "United States of America: +1" 21560 ].includes(this.values.countryCode.input) ? { 21561 mask: [ 21562 "(", 21563 /[1-9]/, 21564 /\d/, 21565 /\d/, 21566 ")", 21567 " ", 21568 /\d/, 21569 /\d/, 21570 /\d/, 21571 "-", 21572 /\d/, 21573 /\d/, 21574 /\d/, 21575 /\d/ 21576 ], 21577 name: "phone", 21578 guide: false 21579 } : this.mask; 21580 }, 21581 useFieldset() { 21582 return [ 21583 this.enableCountryCode, 21584 this.enableExtension, 21585 this.enableMobile 21586 ].includes(true); 21587 }, 21588 localNumberProps() { 21589 return { 21590 placeholder: this.$placeholder, 21591 mask: this.$mask 21592 }; 21593 }, 21594 formattedStringValue() { 21595 var e, t, n, i, a; 21596 let r = this.values.localNumber; 21597 return (t = (e = this.values) == null ? void 0 : e.countryCode) != null && t.code && (r = `${(n = this.values.countryCode) == null ? void 0 : n.code} ${this.values.localNumber}`), (i = this.values) != null && i.extension && (r += ` ext. ${(a = this.values) == null ? void 0 : a.extension}`), r; 21598 }, 21599 formattedObjectValue() { 21600 return this.formatValuesObject(), this.values; 21601 } 21602 }, 21603 watch: { 21604 modelValue: { 21605 handler: function(e) { 21606 this.handleInput(e); 21607 }, 21608 immediate: true 21609 } 21610 }, 21611 mounted() { 21612 var e; 21613 this.numericOnlyMask = Jf.numericOnly, this.requireStringModel && (this.value = this.modelValue), this.requireObjectModel && (this.value = (e = this.modelValue) == null ? void 0 : e.localNumber); 21614 }, 21615 methods: { 21616 handleInput(e) { 21617 this.requireObjectModel && (this.values.localNumber = this.value), this.$emit("update:model-value", this.requireObjectModel ? this.formattedObjectValue : this.value); 21618 }, 21619 formatValuesObject(e = this.values) { 21620 if (!(!e && e !== null)) { 21621 if (e === null && (this.values.countryCode.input = void 0, this.values.phoneNumber = void 0, this.values.extension = void 0, this.values.isMobile = void 0), this.values.countryCode.input) { 21622 const t = this.values.countryCode.input.split(": "); 21623 this.values.countryCode.country = t[0], this.values.countryCode.code = t[1]; 21624 } 21625 [ 21626 "code", 21627 "country", 21628 "input" 21629 ].forEach((t) => { 21630 var n, i; 21631 (i = (n = this.modelValue) == null ? void 0 : n.countryCode) != null && i[t] && (this.values.countryCode[t] = this.modelValue.countryCode[t]); 21632 }), [ 21633 "extension", 21634 "isMobile" 21635 ].forEach((t) => { 21636 var n, i; 21637 (n = this.modelValue) != null && n[t] && (this.values[t] = (i = this.modelValue) == null ? void 0 : i[t]); 21638 }), this.values.formatted = this.formattedStringValue; 21639 } 21640 } 21641 }, 21642 fieldConfig: { 21643 field: function() { 21644 return { 21645 isFieldset: this.useFieldset, 21646 hintPosition: "before" 21647 }; 21648 } 21649 }, 21650 compatConfig: { 21651 MODE: 3 21652 } 21653 }; 21654 MT = [ 21655 "id" 21656 ]; 21657 RT = { 21658 class: "container n:max-w-full" 21659 }; 21660 UT = { 21661 class: "row" 21662 }; 21663 VT = { 21664 key: 0, 21665 class: "col col-12 col-md-3 n:md:pr-xs" 21666 }; 21667 HT = { 21668 key: 2,
21669 class: "col col-12 col-md-auto n:md:pl-xs" 21670 }; 21671 function jT(e, t, n, i, a, r) { 21672 const s = j("NSelect"), o = j("Field"), l = j("BaseInput"), u = j("InputText"), c = j("Checkbox"); 21673 return m(), x("div", { 21674 id: r.useFieldset ? e.id : `${e.id}-wrapper`, 21675 class: R([ 21676 `n-input-wrapper--${n.size}`, 21677 "n-input-phone n-input-wrapper" 21678 ]) 21679 }, [ 21680 O("div", RT, [ 21681 O("div", UT, [ 21682 n.enableCountryCode ? (m(), x("div", VT, [ 21683 K(o, { 21684 "input-id": `${e.id}-country-code`, 21685 label: n.countryCodeLabel || e.$t("phoneLabels.countryCode"), 21686 size: "default" 21687 }, { 21688 default: I(() => [ 21689 K(s, { 21690 id: `${e.id}-country-code`, 21691 ref: "countryCode", 21692 modelValue: a.values.countryCode.input, 21693 "onUpdate:modelValue": [ 21694 t[0] || (t[0] = (d) => a.values.countryCode.input = d), 21695 r.handleInput 21696 ], 21697 options: a.countryCodesList, 21698 size: "default", 21699 autocomplete: "tel-country-code", 21700 "described-by": e.describedBy, 21701 "onChange:modelValue": r.handleInput 21702 }, null, 8, [ 21703 "id", 21704 "modelValue", 21705 "options", 21706 "described-by", 21707 "onChange:modelValue", 21708 "onUpdate:modelValue" 21709 ]) 21710 ]), 21711 _: 1 21712 }, 8, [ 21713 "input-id", 21714 "label" 21715 ]) 21716 ])) : M("", true), 21717 O("div", { 21718 class: R([ 21719 "col col-12 col-md", 21720 [ 21721 { 21722 "n:md:pl-xs": n.enableCountryCode, 21723 "n:md:pr-xs": n.enableExtension 21724 } 21725 ] 21726 ]) 21727 }, [ 21728 K(o, { 21729 "input-id": `${e.id}-local-number`, 21730 label: r.useFieldset ? n.localNumberLabel || e.$t("phoneLabels.localNumber") : null, 21731 size: "full-width" 21732 }, { 21733 default: I(() => [ 21734 K(l, fe(r.localNumberProps, { 21735 id: r.useFieldset ? `${e.id}-local-number` : e.id, 21736 ref: "localNumber", 21737 modelValue: a.value, 21738 "onUpdate:modelValue": [ 21739 t[1] || (t[1] = (d) => a.value = d), 21740 r.handleInput 21741 ], 21742 size: "full-width", 21743 state: n.required ? e.state : void 0, 21744 required: n.required, 21745 type: "tel", 21746 autocomplete: "tel-national", 21747 "described-by": e.describedBy 21748 }), null, 16, [ 21749 "id", 21750 "modelValue", 21751 "state", 21752 "required", 21753 "described-by", 21754 "onUpdate:modelValue" 21755 ]) 21756 ]), 21757 _: 1 21758 }, 8, [ 21759 "input-id", 21760 "label" 21761 ]) 21762 ], 2), 21763 n.enableExtension ? (m(), x("div", { 21764 key: 1, 21765 class: R([ 21766 "col col-12 col-md-auto n:md:pl-xs", 21767 [ 21768 { 21769 "n:md:pr-xs": n.enableMobile 21770 } 21771 ] 21772 ]) 21773 }, [ 21774 K(o, { 21775 "input-id": `${e.id}-extension`, 21776 label: n.extensionLabel || e.$t("phoneLabels.extension") 21777 }, { 21778 default: I(() => [ 21779 K(u, { 21780 id: `${e.id}-extension`, 21781 ref: "extension", 21782 modelValue: a.values.extension, 21783 "onUpdate:modelValue": [ 21784 t[2] || (t[2] = (d) => a.values.extension = d), 21785 r.handleInput 21786 ], 21787 autocomplete: "tel-extension", 21788 inputmode: "numeric", 21789 pattern: "[0-9]*",
21790 "described-by": e.describedBy, 21791 mask: e.numericOnlyMask 21792 }, null, 8, [ 21793 "id", 21794 "modelValue", 21795 "described-by", 21796 "mask", 21797 "onUpdate:modelValue" 21798 ]) 21799 ]), 21800 _: 1 21801 }, 8, [ 21802 "input-id", 21803 "label" 21804 ]) 21805 ], 2)) : M("", true), 21806 n.enableMobile ? (m(), x("div", HT, [ 21807 K(o, { 21808 "is-fieldset": "", 21809 label: n.mobileLabel || e.$t("phoneLabels.isMobile") 21810 }, { 21811 default: I(() => [ 21812 K(c, { 21813 ref: "mobile", 21814 modelValue: a.values.isMobile, 21815 "onUpdate:modelValue": [ 21816 t[3] || (t[3] = (d) => a.values.isMobile = d), 21817 r.handleInput 21818 ], 21819 format: "compact", 21820 label: e.$t("label.yes"), 21821 autocomplete: "mobile", 21822 "described-by": e.describedBy 21823 }, null, 8, [ 21824 "modelValue", 21825 "label", 21826 "described-by", 21827 "onUpdate:modelValue" 21828 ]) 21829 ]), 21830 _: 1 21831 }, 8, [ 21832 "label" 21833 ]) 21834 ])) : M("", true) 21835 ]) 21836 ]) 21837 ], 10, MT); 21838 } 21839 let zT, WT, GT, qT, YT, KT, XT; 21840 zT = te(BT, [ 21841 [ 21842 "render", 21843 jT 21844 ] 21845 ]); 21846 WT = { 21847 name: "n-input-postal-code", 21848 extends: Mt, 21849 props: { 21850 size: { 21851 ...it.size, 21852 default: "short" 21853 }, 21854 placeholder: { 21855 type: String, 21856 default: "___ ___" 21857 }, 21858 mask: { 21859 type: Object, 21860 default: () => ({ 21861 mask: [ 21862 /[A-Z]/i, 21863 /\d/, 21864 /[A-Z]/i, 21865 " ", 21866 /\d/, 21867 /[A-Z]/i, 21868 /\d/ 21869 ], 21870 name: "postal-code", 21871 guide: false 21872 }) 21873 } 21874 }, 21875 computed: { 21876 inputType() { 21877 return "text"; 21878 } 21879 }, 21880 compatConfig: { 21881 MODE: 3 21882 } 21883 }; 21884 Zh = { 21885 name: "n-input-search", 21886 extends: Mt, 21887 computed: { 21888 inputType() { 21889 return "search"; 21890 } 21891 }, 21892 compatConfig: { 21893 MODE: 3 21894 } 21895 }; 21896 GT = { 21897 name: "n-multi-select-list", 21898 components: { 21899 CheckboxGroup: _u, 21900 Icon: Tt 21901 }, 21902 directives: { 21903 onClickOutside: Kh 21904 }, 21905 extends: Mt, 21906 mixins: [ 21907 Xn, 21908 nt 21909 ], 21910 props: { 21911 modelValue: { 21912 type: Array, 21913 default: () => [] 21914 }, 21915 resetOption: { 21916 type: String 21917 }, 21918 allOption: { 21919 type: String 21920 }, 21921 placeholder: { 21922 type: String 21923 } 21924 }, 21925 emits: [ 21926 "update:model-value" 21927 ], 21928 data() { 21929 return { 21930 selectedOptions: this.$props.modelValue, 21931 isExpanded: false, 21932 buttonLabel: this.$props.placeholder 21933 }; 21934 }, 21935 watch: { 21936 modelValue(e) { 21937 this.selectedOptions = e; 21938 }, 21939 selectedOptions(e) { 21940 this.updateButtonLabel(e), this.$emit("update:model-value", e); 21941 } 21942 }, 21943 methods: { 21944 clickOutsideHandler(e) { 21945 [ 21946 "touchmove", 21947 "scroll" 21948 ].includes(e.type) || this.closeListbox(); 21949 }, 21950 checkboxGroupTabFocusOutHandler(e) { 21951 e.target.value === this.options[this.options.length - 1].value && this.closeListbox(); 21952 }, 21953 openListbox() { 21954 this.isExpanded = true; 21955 }, 21956 closeListbox() { 21957 this.isExpanded = false; 21958 }, 21959 toggleListbox() { 21960 if (this.isExpanded) { 21961 this.closeListbox(); 21962 return; 21963 } 21964 this.openListbox(); 21965 }, 21966 updateButtonLabel(e) { 21967 e.length === 0 && (this.buttonLabel = this.placeholder), e.length === 1 && (this.buttonLabel = this.options.find((t) => t.value === e[0]).label), e.length >= 2 && (this.buttonLabel = this.$t("multiSelectList.buttonLabelMultiple", [ 21968 e.length 21969 ])); 21970 } 21971 }, 21972 compatConfig: { 21973 MODE: 3 21974 }, 21975 fieldConfig: { 21976 field: { 21977 isFieldset: true 21978 } 21979 } 21980 }; 21981 qT = [ 21982 "id" 21983 ]; 21984 YT = { 21985 class: "n-multi-select-list__icon-wrapper" 21986 }; 21987 KT = [ 21988 "id", 21989 "aria-controls", 21990 "aria-expanded", 21991 "aria-describedby" 21992 ];
21993 XT = [ 21994 "id", 21995 "hidden" 21996 ]; 21997 function JT(e, t, n, i, a, r) { 21998 const s = j("Icon"), o = j("CheckboxGroup"), l = Gn("on-click-outside"); 21999 return Je((m(), x("div", { 22000 id: `${e.id}`, 22001 class: R([ 22002 [ 22003 `n-input-wrapper--${e.size}`, 22004 { 22005 "n-multi-select-list--expanded": a.isExpanded 22006 } 22007 ], 22008 "n-multi-select-list n-input-wrapper n-input-wrapper--has-listbox n:mb-xs" 22009 ]), 22010 onKeydown: t[2] || (t[2] = Ye((...u) => r.closeListbox && r.closeListbox(...u), [ 22011 "esc" 22012 ])) 22013 }, [ 22014 O("div", YT, [ 22015 K(s, { 22016 icon: "caret" 22017 }) 22018 ]), 22019 O("button", { 22020 id: `${e.id}-listbox-btn`, 22021 class: R([ 22022 "n-multi-select-list__listbox-btn n:mb-0", 22023 [ 22024 { 22025 "n-multi-select-list__listbox-btn--expanded": a.isExpanded 22026 } 22027 ] 22028 ]), 22029 "aria-controls": `${e.id}-listbox`, 22030 "aria-expanded": a.isExpanded ? "true" : "false", 22031 "aria-describedby": e.describedBy, 22032 "data-n-name": "multiselect-toggle", 22033 onClick: t[0] || (t[0] = (...u) => r.toggleListbox && r.toggleListbox(...u)) 22034 }, [ 22035 V(e.$slots, "placeholder", {}, () => [ 22036 re(H(a.buttonLabel), 1) 22037 ]) 22038 ], 10, KT), 22039 O("div", { 22040 id: `${e.id}-listbox`, 22041 class: R([ 22042 [ 22043 { 22044 "n-multi-select-list__listbox--expanded": a.isExpanded 22045 } 22046 ], 22047 "n-multi-select-list__listbox n-listbox n:mt-0 n:px-sm n:py-0 n:max-w-full" 22048 ]), 22049 hidden: !a.isExpanded, 22050 tabindex: "-1" 22051 }, [ 22052 K(o, { 22053 id: `${e.id}-input`, 22054 modelValue: a.selectedOptions, 22055 "onUpdate:modelValue": t[1] || (t[1] = (u) => a.selectedOptions = u), 22056 "reset-option": n.resetOption, 22057 "all-option": n.allOption, 22058 options: e.options, 22059 format: "compact", 22060 size: "full-width", 22061 onKeydown: Ye(r.checkboxGroupTabFocusOutHandler, [ 22062 "tab" 22063 ]) 22064 }, null, 8, [ 22065 "id", 22066 "modelValue", 22067 "reset-option", 22068 "all-option", 22069 "options", 22070 "onKeydown" 22071 ]) 22072 ], 10, XT) 22073 ], 42, qT)), [ 22074 [ 22075 l, 22076 r.clickOutsideHandler 22077 ] 22078 ]); 22079 } 22080 const QT = te(GT, [ 22081 [ 22082 "render", 22083 JT 22084 ] 22085 ]), ZT = { 22086 name: "n-radio-group", 22087 components: { 22088 InputOptionCheckable: zs 22089 }, 22090 mixins: [ 22091 Xn, 22092 js, 22093 ka 22094 ], 22095 inheritAttrs: false, 22096 props: { 22097 ...it, 22098 modelValue: { 22099 type: [ 22100 String, 22101 Number, 22102 Boolean 22103 ] 22104 }, 22105 options: { 22106 type: [ 22107 Array, 22108 Object 22109 ] 22110 }, 22111 optionsProps: { 22112 type: Object, 22113 default: () => ({}) 22114 }, 22115 resetOption: { 22116 type: String 22117 }, 22118 format: { 22119 type: String 22120 } 22121 }, 22122 emits: [ 22123 "update:model-value" 22124 ], 22125 computed: { 22126 $inputOptionList() { 22127 return this.resetOption ? [ 22128 { 22129 label: this.resetOption, 22130 value: "" 22131 }, 22132 ...this.inputOptionList 22133 ] : this.inputOptionList; 22134 } 22135 }, 22136 methods: { 22137 changeHandler(e, t) { 22138 t && this.$emit("update:model-value", e); 22139 } 22140 }, 22141 fieldConfig: { 22142 field: { 22143 isFieldset: true, 22144 hintPosition: "before" 22145 } 22146 }, 22147 compatConfig: { 22148 MODE: 3 22149 } 22150 }; 22151 function eI(e, t, n, i, a, r) { 22152 const s = j("InputOptionCheckable"); 22153 return m(), x("div", { 22154 class: R(`n-radio-group n-radio-group--${e.size} n-radio-group--${e.layout}`) 22155 }, [ 22156 (m(true), x(me, null, ve(r.$inputOptionList, (o, l) => (m(), U(s, fe({ 22157 ref_for: true 22158 }, { 22159 ...e.$attrs, 22160 ...o, 22161 ...n.optionsProps 22162 }, { 22163 id: `${e.id}-radio-${l}`, 22164 key: o.name, 22165 "described-by": e.describedBy, 22166 class: e.inputClass, 22167 name: e.name ? e.name : e.id, 22168 format: n.format, 22169 checked: n.modelValue !== void 0 ? o.value === n.modelValue : void 0, 22170 size: e.inputSize,
22171 "aria-describedby": e.describedBy, 22172 type: "radio" 22173 }, Fr(e.inputListeners), { 22174 onChange: (u) => r.changeHandler(o.value, u) 22175 }), null, 16, [ 22176 "id", 22177 "described-by", 22178 "class", 22179 "name", 22180 "format", 22181 "checked", 22182 "size", 22183 "aria-describedby", 22184 "onChange" 22185 ]))), 128)) 22186 ], 2); 22187 } 22188 const eg = te(ZT, [ 22189 [ 22190 "render", 22191 eI 22192 ] 22193 ]), tI = { 22194 name: "n-select-province", 22195 extends: xi, 22196 props: { 22197 includeFed: { 22198 type: Boolean, 22199 default: false 22200 }, 22201 includeTerritories: { 22202 type: Boolean, 22203 default: false 22204 }, 22205 format: { 22206 type: String, 22207 default: "none", 22208 validator(e) { 22209 return [ 22210 "none", 22211 "full-name", 22212 "alpha-code", 22213 "abbreviation" 22214 ].includes(e); 22215 } 22216 } 22217 }, 22218 data() { 22219 return { 22220 provincesList: [ 22221 "ab", 22222 "bc", 22223 "mb", 22224 "nb", 22225 "nl", 22226 "ns", 22227 "on", 22228 "pe", 22229 "qc", 22230 "sk" 22231 ] 22232 }; 22233 }, 22234 computed: { 22235 inputOptionList() { 22236 return this.expandOptions(this.provinces.map((e) => ({ 22237 label: this.$t("provinces." + e), 22238 value: this.formatValue(e, this.format) 22239 })).sort((e, t) => e.label.localeCompare(t.label))); 22240 }, 22241 provinces() { 22242 let e = [ 22243 ...this.provincesList 22244 ]; 22245 return this.includeTerritories && (e.push("nu", "yt", "nt"), e.sort()), this.includeFed && e.push("fe"), e; 22246 }, 22247 _placeholder() { 22248 return this.placeholder || this.$t("defaultInputLabels.SelectProvince.placeholder"); 22249 } 22250 }, 22251 methods: { 22252 formatValue(e, t) { 22253 return wE(e, t); 22254 } 22255 }, 22256 fieldConfig: { 22257 label(e, t) { 22258 return t.t("defaultInputLabels.SelectProvince.label"); 22259 } 22260 }, 22261 compatConfig: { 22262 MODE: 3 22263 } 22264 }, nI = { 22265 name: "n-textarea", 22266 props: it, 22267 emits: [ 22268 "update:model-value" 22269 ], 22270 methods: { 22271 inputHandler(e) { 22272 this.$emit("update:model-value", e.target.value); 22273 } 22274 }, 22275 compatConfig: { 22276 MODE: 3 22277 } 22278 }, rI = [ 22279 "id", 22280 "value", 22281 "aria-describedby", 22282 "name" 22283 ]; 22284 function iI(e, t, n, i, a, r) { 22285 return m(), x("div", { 22286 class: R([ 22287 [ 22288 `n-textarea-wrapper--${e.size}`, 22289 { 22290 [`is-${e.state}`]: e.state 22291 } 22292 ], 22293 "n-textarea-wrapper" 22294 ]) 22295 }, [ 22296 O("textarea", fe(e.$attrs, { 22297 id: e.id, 22298 class: [ 22299 e.inputClass, 22300 "n-textarea" 22301 ], 22302 value: e.modelValue, 22303 "aria-describedby": e.describedBy, 22304 name: e.name, 22305 rows: "5", 22306 onInput: t[0] || (t[0] = (...s) => r.inputHandler && r.inputHandler(...s)) 22307 }), null, 16, rI) 22308 ], 2); 22309 } 22310 const aI = te(nI, [ 22311 [ 22312 "render", 22313 iI 22314 ] 22315 ]), _o = Object.freeze(Object.defineProperty({ 22316 __proto__: null, 22317 BaseInput: Mt, 22318 Checkbox: jh, 22319 CheckboxGroup: _u, 22320 ChoiceButtonBar: j$, 22321 Datepicker: G$, 22322 InputAutocomplete: Eu, 22323 InputCurrency: z2, 22324 InputEmail: W2, 22325 InputFile: yT, 22326 InputNumber: kT, 22327 InputNumberFormatted: ku, 22328 InputNumberStepper: xT, 22329 InputPercentage: OT, 22330 InputPhone: $T, 22331 InputPhoneExtended: zT, 22332 InputPostalCode: WT, 22333 InputSearch: Zh, 22334 InputText: us, 22335 MultiSelectList: QT, 22336 NFoldingChoiceList: _2, 22337 NSelect: xi, 22338 RadioGroup: eg, 22339 SelectProvince: tI, 22340 Textarea: aI 22341 }, Symbol.toStringTag, { 22342 value: "Module" 22343 })), Eo = Rs.props, sI = { 22344 name: "n-field-control", 22345 components: { 22346 Field: Rs, 22347 ..._o 22348 }, 22349 props: { 22350 inputType: { 22351 type: [ 22352 String, 22353 Object 22354 ], 22355 default: "text" 22356 }, 22357 input: { 22358 type: Object 22359 }, 22360 id: { 22361 type: [ 22362 String, 22363 Number 22364 ] 22365 }, 22366 size: { 22367 type: it.size.type 22368 }, 22369 state: { 22370 type: it.state.type 22371 }, 22372 label: { 22373 type: Eo.label.type 22374 }, 22375 description: { 22376 type: Eo.description.type 22377 }, 22378 hint: { 22379 type: Eo.hint.type 22380 }, 22381 tooltip: { 22382 type: String 22383 }, 22384 name: it.name, 22385 modelValue: { 22386 type: [ 22387 String, 22388 Number, 22389 Array, 22390 Boolean, 22391 Date, 22392 typeof FileList < "u" && FileList 22393 ], 22394 default: void 0 22395 }, 22396 selected: { 22397 type: [ 22398 Array, 22399 Object 22400 ] 22401 }, 22402 placeholder: { 22403 type: String 22404 }, 22405 options: { 22406 type: Xn.props.options.type 22407 }, 22408 layout: { 22409 type: js.props.layout.type 22410 }, 22411 field: { 22412 type: Object 22413 }, 22414 validation: { 22415 type: Object, 22416 default: () => ({}) 22417 }, 22418 validationMessages: { 22419 type: Object, 22420 default: () => ({}) 22421 } 22422 }, 22423 emits: [ 22424 "update:modelValue", 22425 "update:selected" 22426 ], 22427 setup() { 22428 const e = _i(); 22429 return { 22430 hasDescriptionSlotContent: on(e.description).hasSlotContent, 22431 hasHintSlotContent: on(e.hint).hasSlotContent 22432 }; 22433 }, 22434 computed: { 22435 $_id() { 22436 return this.id || this.$_inputId || this.fieldConfig.id || this.$_generatedId; 22437 }, 22438 $_inputId() { 22439 return this.input && this.input.id ? this.input.id : false;
22440 }, 22441 $_generatedId() { 22442 return nm(this); 22443 }, 22444 $_required() { 22445 return !!(this.validation.$params && ("required" in this.validation.$params || "requiredTrue" in this.validation.$params) || "required" in this.validation || "requiredTrue" in this.validation); 22446 }, 22447 $_options() { 22448 const e = this.options || this.fieldConfig.options; 22449 return this.$_required && e ? la(e).map((t) => ({ 22450 ...t, 22451 required: true 22452 })) : e; 22453 }, 22454 $_i18n() { 22455 return this.$i18n.t ? this.$i18n : h$(); 22456 }, 22457 $_isOptionsInput() { 22458 return [ 22459 "RadioGroup", 22460 "CheckboxGroup", 22461 "ChoiceButtonBar", 22462 "NSelect", 22463 "SelectProvince" 22464 ].includes(this.componentName ?? ""); 22465 }, 22466 componentName() { 22467 if (this.inputType === "text" || !this.inputType) return "InputText"; 22468 if (this.inputType && this.inputType.name) return this.inputType.name; 22469 const e = "InputText", t = this.inputType ? this.inputType : e, n = typeof t == "string" ? t.charAt(0).toUpperCase() + t.substring(1) : t, i = [ 22470 `${n}`, 22471 `Input${n}`, 22472 `${n}Group`, 22473 `N${n}`, 22474 `Select${n}` 22475 ]; 22476 let a = e; 22477 for (let r = 0; r < i.length; r++) { 22478 const s = i[r]; 22479 if (_o[s]) { 22480 a = s; 22481 break; 22482 } 22483 } 22484 return a; 22485 }, 22486 component() { 22487 return this.inputType && this.inputType.name ? this.inputType : _o[this.componentName]; 22488 }, 22489 isCheckableComponentType() { 22490 return [ 22491 "Checkbox", 22492 "CheckboxGroup", 22493 "RadioGroup", 22494 "ChoiceButtonBar" 22495 ].includes(this.componentName); 22496 }, 22497 fieldConfig() { 22498 const e = { 22499 field: {}, 22500 input: {}, 22501 overrides: {} 22502 }, t = this.component.fieldConfig ? { 22503 ...e, 22504 ...this.component.fieldConfig 22505 } : e; 22506 return Object.keys(t).forEach((n) => { 22507 typeof t[n] == "function" && (t[n] = t[n](this.$props, this.$_i18n)); 22508 }), t; 22509 }, 22510 fieldProps() { 22511 let e = { 22512 ...this.fieldConfig.field, 22513 ...this.field, 22514 state: this.dynamicState || this.fieldConfig.dynamicState, 22515 size: this.size || this.fieldConfig.size, 22516 inputId: this.$_id, 22517 label: this.label || this.fieldConfig.label, 22518 description: this.description || this.fieldConfig.description, 22519 hint: this.dynamicHint || this.fieldConfig.dynamicHint, 22520 tooltip: this.tooltip, 22521 srDescription: this.dynamicSrMessage 22522 }; 22523 return e = this.fieldConfig.overrides.field ? this.fieldConfig.overrides.field(e) : e, this.fieldConfig.customError && (e.hint = void 0), this.fieldConfig.customDescription && (e.description = void 0), e; 22524 }, 22525 inputProps() { 22526 var e; 22527 let t = { 22528 ...this.fieldConfig.input, 22529 ...this.input, 22530 id: this.$_id, 22531 required: this.$_required || ((e = this.input) == null ? void 0 : e.required) || null, 22532 size: this.size || this.fieldConfig.size, 22533 state: this.dynamicState || this.fieldConfig.dynamicState, 22534 name: this.name || this.fieldConfig.name, 22535 describedBy: this.dynamicDescribedBy, 22536 options: this.$_options, 22537 layout: this.layout || this.fieldConfig.layout, 22538 placeholder: this.placeholder || this.fieldConfig.placeholder, 22539 label: this.label, 22540 "aria-invalid": this.dynamicState === "error" ? "true" : "false" 22541 }; 22542 return this.fieldConfig.customError && (t.hint = this.dynamicHint), this.fieldConfig.customDescription && (t.description = this.description), t = this.fieldConfig.overrides.input ? this.fieldConfig.overrides.input(t) : t, { 22543 ...t, 22544 ...Object.fromEntries(Object.entries(this.$attrs).filter(([n]) => n.startsWith("on"))) 22545 }; 22546 }, 22547 hasErrors() { 22548 return this.validation.$error; 22549 }, 22550 showError() { 22551 return this.validation && this.validation.$dirty && this.hasErrors; 22552 }, 22553 dynamicDescribedBy() { 22554 var e; 22555 return ql([ 22556 this.fieldConfig.describedBy, 22557 !this.isCheckableComponentType && (this.description || this.hasDescriptionSlotContent) ? this.$_id + "-description" : null, 22558 this.dynamicHint || this.hasHintSlotContent || this.$slots.error ? this.$_id + "-hint" : null, 22559 ((e = this.input) == null ? void 0 : e.describedBy) ?? "" 22560 ], { 22561 separator: " ", 22562 nullReturnValue: null 22563 }); 22564 }, 22565 dynamicHint() { 22566 return this.showError && !this.$slots.error ? this.getErrorMessage(this.validation.$errors[0]) : this.hint; 22567 }, 22568 dynamicState() { 22569 return this.state ? this.state : this.validation && this.hasErrors ? "error" : this.state; 22570 }, 22571 dynamicSrMessage() { 22572 var e, t; 22573 const n = ((e = this.input) == null ? void 0 : e.maxLength) || ((t = this.$attrs) == null ? void 0 : t.maxLength); 22574 return n && typeof this.modelValue == "string" && this.modelValue.length >= n ? `${this.$_i18n.t("validationMessages.maxLength", { 22575 count: n 22576 })}` : "\xA0"; 22577 } 22578 }, 22579 methods: { 22580 getErrorMessage(e) { 22581 let t = this.validationMessages[e.$validator] || e.$message || {}; 22582 if (typeof t == "string") return t; 22583 const n = `validationMessages.${e.$validator}${this.$_isOptionsInput ? "Choice" : ""}`; 22584 t.t || (t.t = this.$te(n) ? n : "validationMessages.invalid"); 22585 const i = { 22586 fieldLabel: this.label, 22587 ...e.$params 22588 }; 22589 return delete i.type, this.$t(t.t, i); 22590 }, 22591 handleInput(e) { 22592 this.$emit("update:modelValue", e); 22593 }, 22594 handleSelected(e) { 22595 this.$emit("update:selected", e); 22596 } 22597 } 22598 }; 22599 function oI(e, t, n, i, a, r) { 22600 const s = j("Field"); 22601 return m(), U(s, fe(r.fieldProps, { 22602 "data-test-id": "n-field-control" 22603 }), $n({ 22604 label: I(() => [ 22605 V(e.$slots, "label") 22606 ]), 22607 default: I(() => [ 22608 (m(), U(ue(r.component), fe(r.inputProps, { 22609 "model-value": n.modelValue, 22610 "onUpdate:modelValue": r.handleInput, 22611 "onUpdate:selected": r.handleSelected 22612 }), null, 16, [ 22613 "model-value", 22614 "onUpdate:modelValue", 22615 "onUpdate:selected" 22616 ])), 22617 V(e.$slots, "default"), 22618 r.showError ? V(e.$slots, "error", { 22619 key: 0 22620 }) : M("", true) 22621 ]), 22622 _: 2 22623 }, [ 22624 r.fieldProps.description || i.hasDescriptionSlotContent ? { 22625 name: "description", 22626 fn: I(() => [ 22627 V(e.$slots, "description") 22628 ]), 22629 key: "0" 22630 } : void 0, 22631 r.fieldProps.hint || i.hasHintSlotContent ? { 22632 name: "hint", 22633 fn: I(() => [ 22634 V(e.$slots, "hint") 22635 ]), 22636 key: "1" 22637 } : void 0 22638 ]), 1040); 22639 } 22640 let lI, uI; 22641 Cu = te(sI, [ 22642 [ 22643 "render", 22644 oI 22645 ] 22646 ]); 22647 lI = { 22648 name: "n-field-inline", 22649 props: { 22650 state: it.state, 22651 inputId: { 22652 type: String, 22653 default: function() { 22654 return _a(); 22655 } 22656 }, 22657 label: { 22658 type: String, 22659 required: true 22660 }, 22661 columnBreakpoint: { 22662 type: String, 22663 default: "xs", 22664 validator(e) { 22665 return [ 22666 "xs", 22667 "sm", 22668 "md", 22669 "lg", 22670 "xl" 22671 ].includes(e); 22672 } 22673 } 22674 }, 22675 compatConfig: { 22676 MODE: 3 22677 } 22678 }; 22679 uI = [ 22680 "for" 22681 ]; 22682 function cI(e, t, n, i, a, r) { 22683 return m(), x("div", { 22684 class: R([ 22685 [ 22686 { 22687 [`is-${n.state}`]: n.state 22688 }, 22689 `n-field--inline__column-breakpoint-${n.columnBreakpoint}` 22690 ], 22691 "n-field n-field--inline" 22692 ]) 22693 }, [ 22694 O("label", { 22695 for: n.inputId || null 22696 }, H(n.label), 9, uI), 22697 V(e.$slots, "default", Pt(Bt({ 22698 inputId: n.inputId 22699 }))) 22700 ], 2); 22701 } 22702 let pI, fI; 22703 dI = te(lI, [ 22704 [ 22705 "render", 22706 cI 22707 ] 22708 ]); 22709 pI = { 22710 name: "n-form", 22711 props: {}, 22712 methods: {} 22713 }; 22714 fI = { 22715 class: "n-form container" 22716 }; 22717 function mI(e, t, n, i, a, r) { 22718 return m(), x("form", fI, [ 22719 V(e.$slots, "default") 22720 ]); 22721 } 22722 let It, Ft, Nt, ip, hI, gI, bI, vI, yI, _I, EI, kI, CI; 22723 cU = te(pI, [ 22724 [ 22725 "render", 22726 mI 22727 ] 22728 ]); 22729 It = { 22730 animation: "content", 22731 background: "transparent", 22732 backgroundSize: "container", 22733 border: "none", 22734 borderColor: "transparent", 22735 buttonColor: null, 22736 contentColor: "text", 22737 dismissalType: "none", 22738 icon: null, 22739 iconAnimation: "none", 22740 iconColor: "text" 22741 }; 22742 Ft = { 22743 alert: {
22744 dismissalType: "session" 22745 }, 22746 globalAlert: { 22747 backgroundSize: "full-width", 22748 dismissalType: "session" 22749 }, 22750 top: { 22751 animation: "auto", 22752 border: "top", 22753 dismissalType: "instance", 22754 iconAnimation: "scale" 22755 }, 22756 context: {}, 22757 note: {} 22758 }; 22759 Nt = { 22760 common: { 22761 background: "bg-alt-1", 22762 borderColor: "text", 22763 iconColor: "text" 22764 }, 22765 light: { 22766 background: "white" 22767 }, 22768 dark: { 22769 background: "bg-dark", 22770 buttonColor: "white", 22771 contentColor: "text-reverse", 22772 iconColor: "white", 22773 referseContent: true 22774 }, 22775 info: { 22776 background: "info-light", 22777 borderColor: "info", 22778 icon: "info", 22779 iconColor: "info" 22780 }, 22781 error: { 22782 background: "error-light", 22783 borderColor: "error", 22784 icon: "x-outline", 22785 iconColor: "error" 22786 }, 22787 warning: { 22788 background: "warning-light", 22789 borderColor: "warning", 22790 icon: "alert", 22791 iconColor: "warning" 22792 }, 22793 success: { 22794 background: "success-light", 22795 borderColor: "success", 22796 icon: "check-outline", 22797 iconColor: "success" 22798 } 22799 }; 22800 ip = { 22801 alert: { 22802 ...It, 22803 ...Ft.alert, 22804 ...Nt.light, 22805 icon: "megaphone" 22806 }, 22807 "alert.reverse": { 22808 ...It, 22809 ...Ft.alert, 22810 ...Nt.dark, 22811 icon: "megaphone" 22812 }, 22813 globalAlert: { 22814 ...It, 22815 ...Ft.globalAlert, 22816 ...Nt.light 22817 }, 22818 "globalAlert.reverse": { 22819 ...It, 22820 ...Ft.globalAlert, 22821 ...Nt.dark 22822 }, 22823 top: { 22824 ...It, 22825 ...Ft.top, 22826 ...Nt.common, 22827 icon: "alert-fill" 22828 }, 22829 "top.info": { 22830 ...It, 22831 ...Ft.top, 22832 ...Nt.info, 22833 icon: "info-fill" 22834 }, 22835 "top.error": { 22836 ...It, 22837 ...Ft.top, 22838 ...Nt.error, 22839 icon: "x-fill", 22840 iconAnimation: "rotate" 22841 }, 22842 "top.warning": { 22843 ...It, 22844 ...Ft.top, 22845 ...Nt.warning, 22846 icon: "info-fill", 22847 iconAnimation: "rotate" 22848 }, 22849 "top.success": { 22850 ...It, 22851 ...Ft.top, 22852 ...Nt.success, 22853 icon: "check-fill" 22854 }, 22855 context: { 22856 ...It, 22857 ...Ft.context, 22858 ...Nt.common, 22859 icon: "alert-bubble" 22860 },
22861 "context.info": { 22862 ...It, 22863 ...Ft.context, 22864 ...Nt.info 22865 }, 22866 "context.error": { 22867 ...It, 22868 ...Ft.context, 22869 ...Nt.error 22870 }, 22871 "context.warning": { 22872 ...It, 22873 ...Ft.context, 22874 ...Nt.warning 22875 }, 22876 "context.success": { 22877 ...It, 22878 ...Ft.context, 22879 ...Nt.success 22880 }, 22881 note: { 22882 ...It, 22883 ...Ft.note, 22884 ...Nt.common 22885 }, 22886 "note.reverse": { 22887 ...It, 22888 ...Ft.note, 22889 ...Nt.dark 22890 } 22891 }; 22892 hI = { 22893 name: "n-feedback-message", 22894 compatConfig: { 22895 MODE: 3 22896 }, 22897 components: { 22898 ButtonClose: Um, 22899 Icon: Tt 22900 }, 22901 mixins: [ 22902 Lt, 22903 Ge 22904 ], 22905 props: { 22906 ...we, 22907 id: { 22908 type: [ 22909 String, 22910 Number 22911 ] 22912 }, 22913 preset: { 22914 type: String, 22915 validator: (e) => Object.keys(ip).includes(e) 22916 }, 22917 animation: { 22918 type: String, 22919 validator: (e) => [ 22920 "none", 22921 "auto", 22922 "content" 22923 ].includes(e) 22924 }, 22925 background: { 22926 type: String 22927 }, 22928 backgroundSize: { 22929 type: String, 22930 validator: (e) => [ 22931 "container", 22932 "full-width" 22933 ].includes(e) 22934 }, 22935 border: { 22936 type: String, 22937 validator: (e) => [ 22938 "none", 22939 "top", 22940 "bottom", 22941 "left", 22942 "right", 22943 "x", 22944 "y", 22945 "all" 22946 ].includes(e) 22947 }, 22948 borderColor: { 22949 type: String 22950 }, 22951 buttonColor: { 22952 type: String 22953 }, 22954 contentColor: { 22955 type: String 22956 }, 22957 dismissalType: { 22958 type: String, 22959 validator: (e) => [ 22960 "none", 22961 "instance", 22962 "session", 22963 "permanent" 22964 ].includes(e), 22965 default: "none" 22966 }, 22967 icon: { 22968 type: String 22969 }, 22970 iconAltText: { 22971 type: String 22972 }, 22973 iconAnimation: { 22974 type: String, 22975 validator: (e) => [ 22976 "none", 22977 "scale", 22978 "rotate" 22979 ].includes(e) 22980 }, 22981 iconColor: { 22982 type: String 22983 }, 22984 reverseContent: { 22985 type: Boolean 22986 }, 22987 closeSrLabel: { 22988 type: String, 22989 default: null 22990 } 22991 }, 22992 data() { 22993 return { 22994 presets: ip, 22995 dismissed: false, 22996 presetTitles: { 22997 "top.info": this.$t("defaultFeedbackLabels.info"), 22998 "top.error": this.$t("defaultFeedbackLabels.error"), 22999 "top.warning": this.$t("defaultFeedbackLabels.warning"), 23000 "top.success": this.$t("defaultFeedbackLabels.success") 23001 } 23002 }; 23003 }, 23004 computed: { 23005 $config() { 23006 let e = { 23007 ...this.$props 23008 }; 23009 return Object.keys(e).forEach((t) => [ 23010 void 0, 23011 null, 23012 "" 23013 ].includes(e[t]) && delete e[t]), { 23014 animation: "content", 23015 background: "transparent", 23016 backgroundSize: "container", 23017 border: "none", 23018 borderColor: "transparent", 23019 buttonColor: null, 23020 contentColor: "text", 23021 dismissalType: "none", 23022 icon: null, 23023 iconAltText: null, 23024 iconAnimation: "none", 23025 iconColor: "text", 23026 title: this.title ? this.title : this.preset && this.presetTitles[this.preset] ? this.presetTitles[this.preset] : null, 23027 titleHeadingLevel: 2, 23028 titleHeadingStyle: "h5", 23029 ...this.preset && this.presets[this.preset] ? this.presets[this.preset] : {}, 23030 ...e 23031 }; 23032 }, 23033 hasSlotContent() { 23034 return !!this.$slots.default; 23035 }, 23036 hasIconSlotContent() { 23037 return !!this.$slots.icon; 23038 }, 23039 hasDismissSlotContent() { 23040 return !!this.$slots.dismiss; 23041 }, 23042 storageMethod() { 23043 return this.$config.dismissalType === "permanent" ? localStorage : this.$config.dismissalType === "session" ? sessionStorage : false; 23044 }, 23045 isDismissed() { 23046 return this.dismissed ? this.dismissed : this.storageMethod ? this.storageMethod.getItem(this.id
23046) : false; 23047 }, 23048 dismissButtonLabel() { 23049 var e; 23050 return this.closeSrLabel || `${this.$t("label.close")} ${this.$config.title || ((e = this.preset) == null ? void 0 : e.replace(".", " "))} ${this.$t("field.message").toLowerCase()}`; 23051 } 23052 }, 23053 mounted() { 23054 this.$config.disableAnimations || tn(this.$el, "is-scrolled-into-view", { 23055 rootMargin: "50px" 23056 }); 23057 }, 23058 methods: { 23059 dismissFeedback() { 23060 (this.$config.dismissalType === "permanent" || this.$config.dismissalType === "session") && this.storageMethod.setItem(this.id, true), this.dismissed = true, this.nestEvents_emit(this.EVENT_TYPES.DISMISS); 23061 } 23062 } 23063 }; 23064 gI = [ 23065 "id" 23066 ]; 23067 bI = { 23068 class: "row" 23069 }; 23070 vI = { 23071 class: "n-feedback-message__icon-wrapper" 23072 }; 23073 yI = { 23074 key: 1, 23075 class: "col has-no-margins-around" 23076 }; 23077 _I = { 23078 key: 0, 23079 class: "is-hidden-sm-up n:pb-md" 23080 }; 23081 EI = { 23082 class: "has-no-margins-around has-full-width-content" 23083 }; 23084 kI = { 23085 key: 2, 23086 class: "col-auto has-no-margins-around is-clear-padding-horizontal" 23087 }; 23088 CI = { 23089 class: "n-feedback-message__dismiss-wrapper" 23090 }; 23091 function AI(e, t, n, i, a, r) { 23092 const s = j("Icon"), o = j("ButtonClose"); 23093 return Je((m(), x("div", { 23094 id: n.id, 23095 ref: "feedbackMessage", 23096 class: R([ 23097 [ 23098 { 23099 "no-animations": r.$config.animation === "none" 23100 }, 23101 r.$config.backgroundSize === "full-width" ? `is-bg-color-${r.$config.background}-escaped is-border-${r.$config.border}` : null, 23102 `is-border-color-${r.$config.borderColor} is-border-width-wide`, 23103 r.$config.iconAnimation ? `n-feedback-message--${r.$config.iconAnimation}-icon` : "" 23104 ], 23105 "n-feedback-message is-hidden-print" 23106 ]), 23107 "data-n-context": "n-feedback-message" 23108 }, [ 23109 O("div", { 23110 class: R([ 23111 { 23112 "n:px-0": r.$config.backgroundSize === "full-width" 23113 }, 23114 "container" 23115 ]) 23116 }, [ 23117 O("div", { 23118 class: R([ 23119 [ 23120 r.$config.backgroundSize === "container" ? `is-bg-color-${r.$config.background} is-border-${r.$config.border}` : null, 23121 `is-border-color-${r.$config.borderColor} is-border-width-wide` 23122 ], 23123 "n-feedback-message__container container" 23124 ]) 23125 }, [ 23126 O("div", bI, [ 23127 r.hasIconSlotContent || r.$config.icon ? (m(), x("div", { 23128 key: 0, 23129 class: R([ 23130 [ 23131 r.hasIconSlotContent ? "is-hidden-xs-only" : "" 23132 ], 23133 "col-auto has-no-margins-around is-clear-padding-horizontal" 23134 ]) 23135 }, [ 23136 O("div", vI, [ 23137 V(e.$slots, "icon", {}, () => [ 23138 K(s, { 23139 icon: r.$config.icon, 23140 class: R([ 23141 [ 23142 `is-color-${r.$config.iconColor}` 23143 ], 23144 "n-feedback-message__icon" 23145 ]), 23146 "include-aria-label": n.iconAltText 23147 }, null, 8, [ 23148 "icon", 23149 "class", 23150 "include-aria-label" 23151 ]) 23152 ]) 23153 ]) 23154 ], 2)) : M("", true), 23155 r.hasSlotContent || r.$config.title ? (m(), x("div", yI, [ 23156 O("div", { 23157 class: R([ 23158 [ 23159 `is-color-${r.$config.contentColor}`, 23160 { 23161 "has-reverse-items": n.reverseContent 23162 } 23163 ], 23164 "n-feedback-message__content-wrapper" 23165 ]) 23166 }, [ 23167 r.hasIconSlotContent ? (m(), x("div", _I, [ 23168 V(e.$slots, "icon") 23169 ])) : M("", true), 23170 O("div", EI, [ 23171 r.$config.title ? (m(), U(ue(e.titleIsParagraph ? "p" : `h${r.$config.titleHeadingLevel}`), { 23172 key: 0, 23173 class: R(r.$config.titleHeadingStyle) 23174 }, { 23175 default: I(() => [ 23176 re(H(r.$config.title), 1) 23177 ]), 23178 _: 1 23179 }, 8, [ 23180 "class" 23181 ])) : M("", true), 23182 V(e.$slots, "default") 23183 ]) 23184 ], 2) 23185 ])) : M("", true), 23186 r.$config.dismissalType !== "none" ? (m(), x("div", kI, [ 23187 O("div", CI, [ 23188 V(e.$slots, "dismiss", {}, () => [ 23189 K(o, { 23190 "icon-color": r.$config.buttonColor, 23191 "close-sr-label": r.dismissButtonLabel,
23192 class: "n-feedback-message__dismiss-button is-clear-margin-right", 23193 onClose: r.dismissFeedback 23194 }, null, 8, [ 23195 "icon-color", 23196 "close-sr-label", 23197 "onClose" 23198 ]) 23199 ]) 23200 ]) 23201 ])) : M("", true) 23202 ]) 23203 ], 2) 23204 ], 2) 23205 ], 10, gI)), [ 23206 [ 23207 pt, 23208 !r.isDismissed 23209 ] 23210 ]); 23211 } 23212 let SI; 23213 Au = te(hI, [ 23214 [ 23215 "render", 23216 AI 23217 ] 23218 ]); 23219 SI = { 23220 name: "n-form-error-summary", 23221 components: { 23222 FeedbackMessage: Au 23223 }, 23224 props: { 23225 id: { 23226 type: [ 23227 String, 23228 Number 23229 ] 23230 }, 23231 errorCount: { 23232 type: Number 23233 } 23234 }, 23235 computed: { 23236 $id() { 23237 return nm(this); 23238 } 23239 }, 23240 compatConfig: { 23241 MODE: 3 23242 } 23243 }; 23244 function wI(e, t, n, i, a, r) { 23245 const s = j("FeedbackMessage"); 23246 return m(), U(s, { 23247 id: r.$id, 23248 title: e.$t("form.errorMessage", n.errorCount, { 23249 count: n.errorCount 23250 }), 23251 "title-is-paragraph": "", 23252 class: "n-form-feedback", 23253 preset: "top.error", 23254 "dismissal-type": "none", 23255 tabindex: "-1", 23256 "icon-alt-text": e.$t("defaultFeedbackLabels.error") 23257 }, null, 8, [ 23258 "id", 23259 "title", 23260 "icon-alt-text" 23261 ]); 23262 } 23263 tg = te(SI, [ 23264 [ 23265 "render", 23266 wI 23267 ] 23268 ]); 23269 function ap(e, t) { 23270 var n = Object.keys(e); 23271 if (Object.getOwnPropertySymbols) { 23272 var i = Object.getOwnPropertySymbols(e); 23273 t && (i = i.filter(function(a) { 23274 return Object.getOwnPropertyDescriptor(e, a).enumerable; 23275 })), n.push.apply(n, i); 23276 } 23277 return n; 23278 } 23279 function er(e) { 23280 for (var t = 1; t < arguments.length; t++) { 23281 var n = arguments[t] != null ? arguments[t] : {}; 23282 t % 2 ? ap(Object(n), true).forEach(function(i) { 23283 LI(e, i, n[i]); 23284 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ap(Object(n)).forEach(function(i) { 23285 Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i)); 23286 }); 23287 } 23288 return e; 23289 } 23290 function LI(e, t, n) { 23291 return t in e ? Object.defineProperty(e, t, { 23292 value: n, 23293 enumerable: true, 23294 configurable: true, 23295 writable: true 23296 }) : e[t] = n, e; 23297 } 23298 function sp(e) { 23299 let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []; 23300 return Object.keys(e).reduce((n, i) => (t.includes(i) || (n[i] = ae(e[i])), n), {}); 23301 } 23302 function cs(e) { 23303 return typeof e == "function"; 23304 } 23305 function xI(e) { 23306 return vb(e) || yb(e); 23307 } 23308 function ng(e, t, n) { 23309 let i = e; 23310 const a = t.split("."); 23311 for (let r = 0; r < a.length; r++) { 23312 if (!i[a[r]]) return n; 23313 i = i[a[r]]; 23314 } 23315 return i; 23316 } 23317 function ko(e, t, n) { 23318 return ne(() => e.some((i) => ng(t, i, { 23319 [n]: false 23320 })[n])); 23321 } 23322 function op(e, t, n) { 23323 return ne(() => e.reduce((i, a) => { 23324 const r = ng(t, a, { 23325 [n]: false 23326 })[n] || []; 23327 return i.concat(r); 23328 }, [])); 23329 } 23330 function rg(e, t, n, i) { 23331 return e.call(i, ae(t), ae(n), i); 23332 } 23333 function ig(e) { 23334 return e.$valid !== void 0 ? !e.$valid : !e; 23335 } 23336 function OI(e, t, n, i, a, r, s) { 23337 let { $lazy: o, $rewardEarly: l } = a, u = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], c = arguments.length > 8 ? arguments[8] : void 0, d = arguments.length > 9 ? arguments[9] : void 0, p = arguments.length > 10 ? arguments[10] : void 0; 23338 const b = pe(!!i.value), h = pe(0); 23339 n.value = false; 23340 const _ = Ue([ 23341 t, 23342 i 23343 ].concat(u, p), () => { 23344 if (o && !i.value || l && !d.value && !n.value) return; 23345 let C; 23346 try { 23347 C = rg(e, t, c, s); 23348 } catch (D) { 23349 C = Promise.reject(D); 23350 } 23351 h.value++, n.value = !!h.value, b.value = false, Promise.resolve(C).then((D) => { 23352 h.value--, n.value = !!h.value, r.value = D, b.value = ig(D); 23353 }).catch((D) => { 23354 h.value--, n.value = !!h.value, r.value = D, b.value = true; 23355 }); 23356 }, {
23357 immediate: true, 23358 deep: typeof t == "object" 23359 }); 23360 return { 23361 $invalid: b, 23362 $unwatch: _ 23363 }; 23364 } 23365 function $I(e, t, n, i, a, r, s, o) { 23366 let { $lazy: l, $rewardEarly: u } = i; 23367 const c = () => ({}), d = ne(() => { 23368 if (l && !n.value || u && !o.value) return false; 23369 let p = true; 23370 try { 23371 const b = rg(e, t, s, r); 23372 a.value = b, p = ig(b); 23373 } catch (b) { 23374 a.value = b; 23375 } 23376 return p; 23377 }); 23378 return { 23379 $unwatch: c, 23380 $invalid: d 23381 }; 23382 } 23383 function TI(e, t, n, i, a, r, s, o, l, u, c) { 23384 const d = pe(false), p = e.$params || {}, b = pe(null); 23385 let h, _; 23386 e.$async ? { $invalid: h, $unwatch: _ } = OI(e.$validator, t, d, n, i, b, a, e.$watchTargets, l, u, c) : { $invalid: h, $unwatch: _ } = $I(e.$validator, t, n, i, b, a, l, u); 23387 const C = e.$message; 23388 return { 23389 $message: cs(C) ? ne(() => C(sp({ 23390 $pending: d, 23391 $invalid: h, 23392 $params: sp(p), 23393 $model: t, 23394 $response: b, 23395 $validator: r, 23396 $propertyPath: o, 23397 $property: s 23398 }))) : C || "", 23399 $params: p, 23400 $pending: d, 23401 $invalid: h, 23402 $response: b, 23403 $unwatch: _ 23404 }; 23405 } 23406 function II() { 23407 let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 23408 const t = ae(e), n = Object.keys(t), i = {}, a = {}, r = {}; 23409 let s = null; 23410 return n.forEach((o) => { 23411 const l = t[o]; 23412 switch (true) { 23413 case cs(l.$validator): 23414 i[o] = l; 23415 break; 23416 case cs(l): 23417 i[o] = { 23418 $validator: l 23419 }; 23420 break; 23421 case o === "$validationGroups": 23422 s = l; 23423 break; 23424 case o.startsWith("$"): 23425 r[o] = l; 23426 break; 23427 default: 23428 a[o] = l; 23429 } 23430 }), { 23431 rules: i, 23432 nestedValidators: a, 23433 config: r, 23434 validationGroups: s 23435 }; 23436 } 23437 const FI = "__root"; 23438 function NI(e, t, n, i, a, r, s, o, l) { 23439 const u = Object.keys(e), c = i.get(a, e), d = pe(false), p = pe(false), b = pe(0); 23440 if (c) { 23441 if (!c.$partial) return c; 23442 c.$unwatch(), d.value = c.$dirty.value; 23443 } 23444 const h = { 23445 $dirty: d, 23446 $path: a, 23447 $touch: () => { 23448 d.value || (d.value = true); 23449 }, 23450 $reset: () => { 23451 d.value && (d.value = false); 23452 }, 23453 $commit: () => { 23454 } 23455 }; 23456 return u.length ? (u.forEach((_) => { 23457 h[_] = TI(e[_], t, h.$dirty, r, s, _, n, a, l, p, b); 23458 }), h.$externalResults = ne(() => o.value ? [].concat(o.value).map((_, C) => ({ 23459 $propertyPath: a, 23460 $property: n, 23461 $validator: "$externalResults", 23462 $uid: `${a}-externalResult-${C}`, 23463 $message: _, 23464 $params: {}, 23465 $response: null, 23466 $pending: false 23467 })) : []), h.$invalid = ne(() => { 23468 const _ = u.some((C) => ae(h[C].$invalid)); 23469 return p.value = _, !!h.$externalResults.value.length || _; 23470 }), h.$pending = ne(() => u.some((_) => ae(h[_].$pending))), h.$error = ne(() => h.$dirty.value ? h.$pending.value || h.$invalid.value : false), h.$silentErrors = ne(() => u.filter((_) => ae(h[_].$invalid)).map((_) => { 23471 const C = h[_]; 23472 return qn({ 23473 $propertyPath: a, 23474 $property: n, 23475 $validator: _, 23476 $uid: `${a}-${_}`, 23477 $message: C.$message, 23478 $params: C.$params, 23479 $response: C.$response, 23480 $pending: C.$pending 23481 }); 23482 }).concat(h.$externalResults.value)), h.$errors = ne(() => h.$dirty.value ? h.$silentErrors.value : []), h.$unwatch = () => u.forEach((_) => { 23483 h[_].$unwatch(); 23484 }), h.$commit = () => { 23485 p.value = true, b.value = Date.now(); 23486 }, i.set(a, e, h), h) : (c && i.set(a, e, h), h); 23487 } 23488 function DI(e, t, n, i, a, r, s) { 23489 const o = Object.keys(e); 23490 return o.length ? o.reduce((l, u) => (l[u] = ul({ 23491 validations: e[u], 23492 state: t, 23493 key: u, 23494 parentKey: n, 23495 resultsCache: i, 23496 globalConfig: a, 23497 instance: r, 23498 externalResults: s 23499 }), l), {}) : {}; 23500 } 23501 function PI(e, t, n) { 23502 const i = ne(() => [ 23503 t, 23504 n 23505 ].filter((h) => h).reduce((h, _) => h.concat(Object.values(ae(_))), [])), a = ne({ 23506 get() { 23507 return e.$dirty.value || (i.value.length ? i.value.every((h) => h.$dirty) : false); 23508 }, 23509 set(h) { 23510 e.$dirty.value = h; 23511 } 23512 }), r = ne(() => { 23513 const h = ae(e.$silentErrors) || [], _ = i.value.filter((C) => (ae(C).$silentErrors || []).length).reduce((C, D) => C.concat(...D.$silentErrors), []); 23514 return h.concat(_); 23515 }), s = ne(() => { 23516 const h = ae(e.$errors) || [], _ = i.value.filter((C) => (ae(C).$errors || []).length).reduce((C, D) => C.concat(...D.$errors), []); 23517 return h.concat(_); 23518 }), o = ne(() => i.value.some((h) =>
23518 h.$invalid) || ae(e.$invalid) || false), l = ne(() => i.value.some((h) => ae(h.$pending)) || ae(e.$pending) || false), u = ne(() => i.value.some((h) => h.$dirty) || i.value.some((h) => h.$anyDirty) || a.value), c = ne(() => a.value ? l.value || o.value : false), d = () => { 23519 e.$touch(), i.value.forEach((h) => { 23520 h.$touch(); 23521 }); 23522 }, p = () => { 23523 e.$commit(), i.value.forEach((h) => { 23524 h.$commit(); 23525 }); 23526 }, b = () => { 23527 e.$reset(), i.value.forEach((h) => { 23528 h.$reset(); 23529 }); 23530 }; 23531 return i.value.length && i.value.every((h) => h.$dirty) && d(), { 23532 $dirty: a, 23533 $errors: s, 23534 $invalid: o, 23535 $anyDirty: u, 23536 $error: c, 23537 $pending: l, 23538 $touch: d, 23539 $reset: b, 23540 $silentErrors: r, 23541 $commit: p 23542 }; 23543 } 23544 function ul(e) { 23545 let { validations: t, state: n, key: i, parentKey: a, childResults: r, resultsCache: s, globalConfig: o = {}, instance: l, externalResults: u } = e; 23546 const c = a ? `${a}.${i}` : i, { rules: d, nestedValidators: p, config: b, validationGroups: h } = II(t), _ = er(er({}, o), b), C = i ? ne(() => { 23547 const Q = ae(n); 23548 return Q ? ae(Q[i]) : void 0; 23549 }) : n, D = er({}, ae(u) || {}), N = ne(() => { 23550 const Q = ae(u); 23551 return i ? Q ? ae(Q[i]) : void 0 : Q; 23552 }), v = NI(d, C, i, s, c, _, l, N, n), y = DI(p, C, c, s, _, l, N), E = {}; 23553 h && Object.entries(h).forEach((Q) => { 23554 let [oe, ce] = Q; 23555 E[oe] = { 23556 $invalid: ko(ce, y, "$invalid"), 23557 $error: ko(ce, y, "$error"), 23558 $pending: ko(ce, y, "$pending"), 23559 $errors: op(ce, y, "$errors"), 23560 $silentErrors: op(ce, y, "$silentErrors") 23561 }; 23562 }); 23563 const { $dirty: k, $errors: A, $invalid: L, $anyDirty: w, $error: z, $pending: T, $touch: P, $reset: G, $silentErrors: X, $commit: Y } = PI(v, y, r), q = i ? ne({ 23564 get: () => ae(C), 23565 set: (Q) => { 23566 k.value = true; 23567 const oe = ae(n), ce = ae(u); 23568 ce && (ce[i] = D[i]), Ki(oe[i]) ? oe[i].value = Q : oe[i] = Q; 23569 } 23570 }) : null; 23571 i && _.$autoDirty && Ue(C, () => { 23572 k.value || P(); 23573 const Q = ae(u); 23574 Q && (Q[i] = D[i]); 23575 }, {
23576 flush: "sync" 23577 }); 23578 async function J() { 23579 return P(), _.$rewardEarly && (Y(), await rr()), await rr(), new Promise((Q) => { 23580 if (!T.value) return Q(!L.value); 23581 const oe = Ue(T, () => { 23582 Q(!L.value), oe(); 23583 }); 23584 }); 23585 } 23586 function Z(Q) { 23587 return (r.value || {})[Q]; 23588 } 23589 function se() { 23590 Ki(u) ? u.value = D : Object.keys(D).length === 0 ? Object.keys(u).forEach((Q) => { 23591 delete u[Q]; 23592 }) : Object.assign(u, D); 23593 } 23594 return qn(er(er(er({}, v), {}, { 23595 $model: q, 23596 $dirty: k, 23597 $error: z, 23598 $errors: A, 23599 $invalid: L, 23600 $anyDirty: w, 23601 $pending: T, 23602 $touch: P, 23603 $reset: G, 23604 $path: c || FI, 23605 $silentErrors: X, 23606 $validate: J, 23607 $commit: Y 23608 }, r && { 23609 $getResultsForChild: Z, 23610 $clearExternalResults: se, 23611 $validationGroups: E 23612 }), y)); 23613 } 23614 class BI { 23615 constructor() { 23616 this.storage = /* @__PURE__ */ new Map(); 23617 } 23618 set(t, n, i) { 23619 this.storage.set(t, { 23620 rules: n, 23621 result: i 23622 }); 23623 } 23624 checkRulesValidity(t, n, i) { 23625 const a = Object.keys(i), r = Object.keys(n); 23626 return r.length !== a.length || !r.every((s) => a.includes(s)) ? false : r.every((s) => n[s].$params ? Object.keys(n[s].$params).every((o) => ae(i[s].$params[o]) === ae(n[s].$params[o])) : true); 23627 } 23628 get(t, n) { 23629 const i = this.storage.get(t); 23630 if (!i) return; 23631 const { rules: a, result: r } = i, s = this.checkRulesValidity(t, n, a), o = r.$unwatch ? r.$unwatch : () => ({}); 23632 return s ? r : { 23633 $dirty: r.$dirty, 23634 $partial: true, 23635 $unwatch: o 23636 }; 23637 } 23638 } 23639 const Wa = { 23640 COLLECT_ALL: true, 23641 COLLECT_NONE: false 23642 }, lp = Symbol("vuelidate#injectChildResults"), up = Symbol("vuelidate#removeChildResults"); 23643 function MI(e) { 23644 let { $scope: t, instance: n } = e; 23645 const i = {}, a = pe([]), r = ne(() => a.value.reduce((c, d) => (c[d] = ae(i[d]), c), {})); 23646 function s(c, d) { 23647 let { $registerAs: p, $scope: b, $stopPropagation: h } = d; 23648 h || t === Wa.COLLECT_NONE || b === Wa.COLLECT_NONE || t !== Wa.COLLECT_ALL && t !== b || (i[p] = c, a.value.push(p)); 23649 } 23650 n.__vuelidateInjectInstances = [].concat(n.__vuelidateInjectInstances || [], s); 23651 function o(c) { 23652 a.value = a.value.filter((d) => d !== c), delete i[c]; 23653 } 23654 n.__vuelidateRemoveInstances = [].concat(n.__vuelidateRemoveInstances || [], o); 23655 const l = Br(lp, []); 23656 Oo(lp, n.__vuelidateInjectInstances); 23657 const u = Br(up, []); 23658 return Oo(up, n.__vuelidateRemoveInstances), { 23659 childResults: r, 23660 sendValidationResultsToParent: l, 23661 removeValidationResultsFromParent: u 23662 }; 23663 } 23664 function ag(e) { 23665 return new Proxy(e, { 23666 get(t, n) { 23667 return typeof t[n] == "object" ? ag(t[n]) : ne(() => t[n]); 23668 } 23669 }); 23670 } 23671 let cp = 0; 23672 function RI(e, t) { 23673 var n; 23674 let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; 23675 arguments.length === 1 && (i = e, e = void 0, t = void 0); 23676 let { $registerAs: a, $scope: r = Wa.COLLECT_ALL, $stopPropagation: s, $externalResults: o, currentVueInstance: l } = i; 23677 const u = l || ((n = kt()) === null || n === void 0 ? void 0 : n.proxy), c = u ? u.$options : {}; 23678 a || (cp += 1, a = `_vuelidate_${cp}`); 23679 const d = pe({}), p = new BI(), { childResults: b, sendValidationResultsToParent: h, removeValidationResultsFromParent: _ } = u ? MI({ 23680 $scope: r, 23681 instance: u 23682 }) : { 23683 childResults: pe({}) 23684 }; 23685 if (!e && c.validations) { 23686 const C = c.validations; 23687 t = pe({}), fa(() => { 23688 t.value = u, Ue(() => cs(C) ? C.call(t.value, new ag(t.value)) : C, (D) => { 23689 d.value = ul({ 23690 validations: D, 23691 state: t, 23692 childResults: b, 23693 resultsCache: p, 23694 globalConfig: i, 23695 instance: u, 23696 externalResults: o || u.vuelidateExternalResults 23697 }); 23698 }, { 23699 immediate: true 23700 }); 23701 }), i = c.validationsConfig || i; 23702 } else { 23703 const C = Ki(e) || xI(e) ? e : qn(e || {}); 23704 Ue(C, (D) => { 23705 d.value = ul({ 23706 validations: D, 23707 state: t, 23708 childResults: b, 23709 resultsCache: p, 23710 globalConfig: i, 23711 instance: u ?? {}, 23712 externalResults: o 23713 }); 23714 }, { 23715 immediate: true 23716 }); 23717 }
23718 return u && (h.forEach((C) => C(d, { 23719 $registerAs: a, 23720 $scope: r, 23721 $stopPropagation: s 23722 })), bb(() => _.forEach((C) => C(a)))), ne(() => er(er({}, ae(d.value)), b.value)); 23723 } 23724 const UI = (e, t) => (Array.isArray(e) ? e.join("") : e) === (Array.isArray(t) ? t.join("") : t), VI = (e, t) => (Array.isArray(e) ? e.join("") : e) !== (Array.isArray(t) ? t.join("") : t), HI = (e, t) => e ? Array.isArray(t) ? t.map((n) => e.includes(n)).includes(true) : e.includes(t) : false; 23725 function sg(e) { 23726 return e.map((t) => Array.isArray(t) ? typeof t[0] == "string" ? t[1].map((n) => n).flat() : t.map((n) => n).flat() : t).flat(); 23727 } 23728 const jI = (e = []) => { 23729 const t = ZA(); 23730 let n = {}; 23731 return e.forEach((i) => { 23732 typeof i == "string" && (i === "required" && (n.required = t.required), i === "requiredTrue" && (n.required = (a) => a === true), i === "email" && (n.email = t.email), i === "url" && (n.url = t.helpers.withMessage("Invalid URL", t.helpers.regex(/[-a-zA-Z0-9@:%._\\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)/i))), i === "file" && (n.file = (a) => { 23733 if (!a) return true; 23734 let r = Array.from(a); 23735 for (let s = 0; s < r.length; s++) if (r[s].size > 4e6) return false; 23736 return true; 23737 })), Array.isArray(i) && (i[0] === "minLength" && typeof i[1] == "number" && (n.minLength = t.minLength(i[1])), i[0] === "maxLength" && typeof i[1] == "number" && (n.maxLength = t.maxLength(i[1])), i[0] === "minValue" && typeof i[1] == "number" && (n.minValue = t.minValue(i[1])), i[0] === "maxValue" && typeof i[1] == "number" && (n.maxValue = t.maxValue(i[1])), i[0].startsWith("custom") && typeof i[1] == "function" && (n[i[0]] = typeof i[2] == "string" ? t.helpers.withMessage(i[2], i[1]) : i[1])); 23738 }), n; 23739 }, zI = { 23740 name: "n-form-generator", 23741 components: { 23742 FieldControl: Cu 23743 }, 23744 mixins: [ 23745 nt 23746 ], 23747 props: { 23748 schema: { 23749 type: Array, 23750 default: () => [] 23751 }, 23752 modelValue: { 23753 type: Object, 23754 default: () => { 23755 } 23756 }, 23757 enableValidation: { 23758 type: Boolean 23759 }, 23760 additionalValidationContext: { 23761 type: Object, 23762 default: () => ({}) 23763 } 23764 }, 23765 emits: [ 23766 "update:model-value", 23767 "schema-updated", 23768 "flat-schema-updated", 23769 "fieldsets-updated", 23770 "validation-result", 23771 "form-errors", 23772 "form-touched" 23773 ], 23774 setup() { 23775 return { 23776 v$: RI() 23777 }; 23778 }, 23779 data() { 23780 return { 23781 form: { 23782 values: {}, 23783 validations: {} 23784 }, 23785 touched: false 23786 }; 23787 }, 23788 computed: { 23789 $schema() { 23790 return this.schema.map((e) => { 23791 if (Array.isArray(e)) { 23792 const t = typeof e[0] == "string"; 23793 return { 23794 type: t ? "fieldset" : "field-group", 23795 legend: t ? e[0] : null, 23796 fields: t ? e[1].map((n, i) => this.createField(n)) : e.map((n) => this.createField(n)), 23797 props: t ? { 23798 name: null, 23799 ...e[2] 23800 } : { 23801 name: null 23802 } 23803 }; 23804 } else return this.createField(e); 23805 }); 23806 }, 23807 $flatSchema() { 23808 return sg(this.schema); 23809 }, 23810 fieldsets() { 23811 return this.schema.map((e) => { 23812 if (Array.isArray(e) && typeof e[0] == "string") return { 23813 legend: e[0], 23814 fieldgroup: e[1], 23815 props: e[2] 23816 }; 23817 }).filter((e) => e != null).flat(); 23818 }, 23819 errors() { 23820 return Object.keys(this.form.values).filter((e) => { 23821 if (this.v$ && this.v$.form.values[e] && this.v$.form.values[e].$error) return e; 23822 }).map((e) => e); 23823 }, 23824 visibleFields() { 23825 return this.$flatSchema.filter((e) => { 23826 if (e.showOnCondition && e.showOnCondition.length) { 23827 let t = this.$flatSchema.find((n) => n.name === e.showOnCondition[0]); 23828 if (t.showOnCondition && t.showOnCondition.length && !this.hasShowOnCondition(...t.showOnCondition)) return false;
23829 } 23830 return this.hasShowOnCondition(...e.showOnCondition || []); 23831 }).map((e) => e.name); 23832 } 23833 }, 23834 watch: { 23835 "form.values": { 23836 deep: true, 23837 handler: function(e) { 23838 this.$emit("update:model-value", e); 23839 } 23840 }, 23841 $schema: { 23842 immediate: true, 23843 handler: function() { 23844 this.$emit("schema-updated", this.$schema); 23845 } 23846 }, 23847 $flatSchema: { 23848 immediate: true, 23849 handler: function() { 23850 this.$emit("flat-schema-updated", this.$flatSchema); 23851 } 23852 }, 23853 fieldsets: { 23854 immediate: true, 23855 handler: function() { 23856 this.$emit("fieldsets-updated", this.fieldsets); 23857 } 23858 }, 23859 enableValidation: { 23860 immediate: true, 23861 handler: function() { 23862 this.v$ && this.v$.$touch && this.v$.$touch(); 23863 } 23864 }, 23865 "v$.$invalid": { 23866 deep: true, 23867 handler: function() { 23868 this.$emit("validation-result", !(this.v$ && this.v$.$invalid)); 23869 } 23870 }, 23871 errors: { 23872 handler: function() { 23873 this.$emit("form-errors", this.errors); 23874 } 23875 }, 23876 touched: { 23877 handler: function(e) { 23878 e && this.$emit("form-touched"); 23879 } 23880 } 23881 }, 23882 validations() { 23883 let e = { 23884 ...this.form.validations 23885 }; 23886 for (const [t] of Object.entries(e)) this.visibleFields.includes(t) || delete e[t]; 23887 return { 23888 form: { 23889 values: e 23890 } 23891 }; 23892 }, 23893 created() { 23894 this.registerFields(this.$schema); 23895 }, 23896 methods: { 23897 setDefaultValue(e) { 23898 if (this.modelValue && this.modelValue[e.name]) return this.modelValue[e.name]; 23899 if (e.value) return e.value; 23900 }, 23901 createField(e) { 23902 let t = true; 23903 if ([ 23904 "name", 23905 "label" 23906 ].forEach((i) => { 23907 e[i] || (console.error(`[Form generator] Field is missing required key "${i}" and will be skipped.`, e), t = false); 23908 }), !t) return; 23909 const n = { 23910 ...e 23911 }; 23912 return e.validations && Array.isArray(e.validations) && (n.validations = jI(e.validations)), Object.assign({ 23913 id: `${this.id}-field-${n.name}`, 23914 type: "text", 23915 value: void 0 23916 }, n); 23917 }, 23918 registerFields(e) { 23919 e && e.forEach((t) => { 23920 t.name && (this.form.values[t.name] = this.setDefaultValue(t)), t.name && t.validations && (this.form.validations[t.name] = t.validations), t.fields && t.fields.forEach((n) => { 23921 this.form.values[n.name] = this.setDefaultValue(n), n.name && n.validations && (this.form.validations[n.name] = n.validations); 23922 }); 23923 }); 23924 }, 23925 hasShowOnCondition(e = "", t = "", n = "") { 23926 switch (t) { 23927 case "EQUALS": 23928 return UI(this.form.values[e], n); 23929 case "NOTEQUALS": 23930 return VI(this.form.values[e], n); 23931 case "INCLUDES": 23932 return HI(this.form.values[e], n); 23933 default: 23934 return true; 23935 } 23936 }, 23937 inputHandler() { 23938 this.enableValidation && this.v$ && this.v$.$touch(), this.touched || (this.touched = true); 23939 } 23940 }, 23941 compatConfig: { 23942 MODE: 3 23943 } 23944 }, WI = [ 23945 "id" 23946 ], GI = { 23947 key: 1, 23948 class: "n:mb-md" 23949 }, qI = { 23950 class: "row" 23951 }; 23952 function YI(e, t, n, i, a, r) { 23953 const s = j("FieldControl"); 23954 return m(), x("div", { 23955 id: e.id, 23956 ref: "formGenerator", 23957 class: "n-form-generator" 23958 }, [ 23959 (m(true), x(me, null, ve(r.$schema, (o) => (m(), x("div", { 23960 key: o.id, 23961 class: "n-form-generator__item" 23962 }, [ 23963 [ 23964 "fieldset", 23965 "field-group" 23966 ].includes(o.type) ? (m(), U(ue(o.type === "fieldset" ? "fieldset" : "div"), fe({ 23967 key: 0, 23968 ref_for: true 23969 }, o.props, { 23970 validations: void 0, 23971 class: { 23972 "n-fieldset n-fieldset--normal": o.type === "fieldset" 23973 } 23974 }), { 23975 default: I(() => [ 23976 o.legend ? (m(), x("legend", { 23977 key: 0, 23978 class: R(o.props.legendClasses) 23979 }, H(o.legend), 3)) : M("", true), 23980 e.$slots[`${o.props.name}-description`] || o.props.description ? (m(), x("div", GI, [ 23981 V(e.$slots, `${o.props.name}-description`, {}, () => [ 23982 O("p", null, H(o.props.description), 1) 23983 ]) 23984 ])) : M("", true), 23985 O("div", qI, [ 23986 (m(true), x(me, null, ve(o.fields, (l) => Je((m(), x("div", { 23987 key: l.name, 23988 class: R([ 23989 [ 23990 { 23991 "col-sm-auto": ![ 23992 "auto", 23993 "full-width", 23994 "pairs" 23995 ].includes(l.size) 23996 }, 23997 { 23998 "col-sm-6": l.size === "pairs" 23999 }, 24000 { 24001 "col-sm": l.size === "auto" 24002 } 24003 ], 24004 "col-12" 24005 ]) 24006 }, [ 24007 K(s, fe({ 24008 ref_for: true 24009 }, l, { 24010 modelValue: a.form.values[l.name], 24011 "onUpdate:modelValue": [ 24012 (u) => a.form.values[l.name] = u, 24013 r.inputHandler 24014 ], 24015 validation: i.v$ && i.v$.form.values[l.name], 24016 validations: void 0, 24017 onBlur: r.inputHandler 24018 }), { 24019 description: I(() => [ 24020 V(e.$slots, `${l.name}-description`, {}, () => [ 24021 re(H(l.description), 1) 24022 ]) 24023 ]), 24024 _: 2 24025 }, 1040, [ 24026 "modelValue", 24027 "onUpdate:modelValue", 24028 "validation", 24029 "onBlur" 24030 ]) 24031 ], 2)), [ 24032 [ 24033 pt, 24034 r.visibleFields.includes(l.name) 24035 ] 24036 ])), 128)) 24037 ]) 24038 ]), 24039 _: 2 24040 }, 1040, [ 24041 "class" 24042 ])) : Je((m(), U(s, fe({ 24043 key: 1, 24044 modelValue: a.form.values[o.name], 24045 "onUpdate:modelValue": (l) => a.form.values[o.name] = l, 24046 ref_for: true 24047 }, o, { 24048 validations: void 0, 24049 validation: i.v$ && i.v$.form.values[o.name], 24050 onBlur: r.inputHandler, 24051 "onUpdate:modelValue": r.inputHandler 24052 }), { 24053 description: I(() => [ 24054 V(e.$slots, `${o.name}-description`, {}, () => [ 24055 re(H(o.description), 1) 24056 ]) 24057 ]), 24058 _: 2 24059 }, 1040, [ 24060 "modelValue", 24061 "onUpdate:modelValue", 24062 "validation", 24063 "onBlur" 24064 ])), [ 24065 [ 24066 pt, 24067 r.visibleFields.includes(o.name) 24068 ] 24069 ]) 24070 ]))), 128)) 24071 ], 8, WI); 24072 } 24073 const og = te(zI, [ 24074 [ 24075 "render", 24076 YI 24077 ] 24078 ]), KI = { 24079 name: "n-submit-message", 24080 components: { 24081 Icon: Tt 24082 }, 24083 props: { 24084 title: { 24085 type: [ 24086 String, 24087 Object 24088 ] 24089 }, 24090 titleHeadingLevel: { 24091 ...we.titleHeadingLevel, 24092 default: 2 24093 }, 24094 titleStyle: { 24095 ...we.titleStyle, 24096 default: "h3" 24097 }, 24098 type: { 24099 type: String, 24100 default: "success", 24101 validator: (e) => [ 24102 "success", 24103 "error", 24104 "warning" 24105 ].includes(e) 24106 }, 24107 icon: { 24108 type: String 24109 }, 24110 align: { 24111 type: String, 24112 default: "center", 24113 validator: (e) => [ 24114 "left", 24115 "center" 24116 ].includes(e) 24117 }, 24118 fullWidth: { 24119 type: Boolean 24120 } 24121 }, 24122 data() { 24123 return { 24124 iconTypes: { 24125 error: "xFill", 24126 warning: "alertFill", 24127 success: "checkFill" 24128 } 24129 }; 24130 }, 24131 computed: { 24132 hasSlotContent() { 24133 return !!this.$slots.default; 24134 }, 24135 $icon() { 24136 return this.icon ? this.icon : this.iconTypes[this.type]; 24137 }, 24138 titleText() { 24139 return this.title && this.title.text ? this.title.text : typeof this.title == "string" ? this.title : null; 24140 } 24141 }, 24142 compatConfig: { 24143 MODE: 3 24144 } 24145 }, XI = { 24146 class: "n-submit-message", 24147 tabindex: "-1" 24148 }, JI = { 24149 class: "container" 24150 }, QI = { 24151 class: "row" 24152 }; 24153 function ZI(e, t, n, i, a, r) { 24154 const s = j("Icon"); 24155 return m(), x("div", XI, [ 24156 O("div", JI, [ 24157 O("div", QI, [ 24158 O("div", { 24159 class: R([ 24160 [ 24161 { 24162 "col-sm-10 offset-sm-1": !n.fullWidth 24163 } 24164 ], 24165 "col" 24166 ]) 24167 }, [ 24168 O("div", { 24169 class: R([ 24170 [ 24171 { 24172 "has-centered-children": n.align === "center" 24173 }, 24174 {
24175 "is-center-aligned": n.align === "center" 24176 } 24177 ], 24178 "n-submit-message__wrapper" 24179 ]) 24180 }, [ 24181 K(s, { 24182 icon: r.$icon, 24183 size: 32, 24184 class: R([ 24185 [ 24186 `is-color-${n.type}` 24187 ], 24188 "n-submit-message__icon" 24189 ]) 24190 }, null, 8, [ 24191 "icon", 24192 "class" 24193 ]), 24194 V(e.$slots, "title", {}, () => [ 24195 r.titleText ? (m(), U(ue(n.title.element || `h${n.titleHeadingLevel}`), { 24196 key: 0, 24197 class: R([ 24198 n.title.style || n.titleStyle, 24199 "n-submit-message__title" 24200 ]) 24201 }, { 24202 default: I(() => [ 24203 re(H(r.titleText), 1) 24204 ]), 24205 _: 1 24206 }, 8, [ 24207 "class" 24208 ])) : M("", true) 24209 ]), 24210 V(e.$slots, "default") 24211 ], 2) 24212 ], 2) 24213 ]) 24214 ]) 24215 ]); 24216 } 24217 let t0, n0, r0; 24218 e0 = te(KI, [ 24219 [ 24220 "render", 24221 ZI 24222 ] 24223 ]); 24224 t0 = { 24225 name: "n-search-input-basic", 24226 components: { 24227 InputSearch: Zh, 24228 NButton: ze 24229 }, 24230 inheritAttrs: false, 24231 props: { 24232 modelValue: { 24233 type: String, 24234 default: "" 24235 }, 24236 label: { 24237 type: String 24238 }, 24239 placeholder: { 24240 type: String, 24241 default: function() { 24242 return Ze.global.t("search"); 24243 } 24244 }, 24245 buttonAttrs: { 24246 type: Object, 24247 default: () => { 24248 } 24249 } 24250 }, 24251 emits: [ 24252 "update:modelValue" 24253 ], 24254 data() { 24255 return { 24256 variant: "basic", 24257 buttonFormat: "primary" 24258 }; 24259 }, 24260 computed: { 24261 value: { 24262 get() { 24263 return this.modelValue; 24264 }, 24265 set(e) { 24266 this.$emit("update:modelValue", e); 24267 } 24268 } 24269 }, 24270 compatConfig: { 24271 MODE: 3 24272 } 24273 }; 24274 n0 = [ 24275 "for" 24276 ]; 24277 r0 = { 24278 class: "n-search-input__button-wrapper" 24279 }; 24280 function i0(e, t, n, i, a, r) { 24281 const s = j("InputSearch"), o = j("NButton"); 24282 return m(), x("div", { 24283 class: R([ 24284 `n-search-input--${a.variant}`, 24285 "n-search-input n-search-input__group" 24286 ]) 24287 }, [ 24288 O("label", { 24289 class: R(n.label && n.label.length ? "n:w-full" : "is-sr-only"), 24290 for: e.$attrs.id || null 24291 }, H(n.label || n.placeholder), 11, n0), 24292 K(s, fe(e.$attrs, { 24293 ref: "input", 24294 modelValue: r.value, 24295 "onUpdate:modelValue": t[0] || (t[0] = (l) => r.value = l), 24296 placeholder: n.placeholder, 24297 size: "full-width" 24298 }), null, 16, [ 24299 "modelValue", 24300 "placeholder" 24301 ]), 24302 O("div", r0, [ 24303 K(o, fe(n.buttonAttrs, { 24304 "aria-label": e.$t("searchLabels.submitSearch"), 24305 format: a.buttonFormat, 24306 type: "submit", 24307 icon: "search" 24308 }), null, 16, [ 24309 "aria-label", 24310 "format" 24311 ]) 24312 ]) 24313 ], 2); 24314 } 24315 const lg = te(t0, [ 24316 [ 24317 "render", 24318 i0 24319 ] 24320 ]), dp = { 24321 name: "n-search-input-nav", 24322 extends: lg, 24323 data() { 24324 return { 24325 variant: "nav", 24326 buttonFormat: "ghost" 24327 }; 24328 }, 24329 compatConfig: { 24330 MODE: 3 24331 } 24332 }, ug = { 24333 props: { 24334 searchPage: { 24335 type: String, 24336 default: "/search.html" 24337 }, 24338 searchInputName: { 24339 type: String, 24340 default: "query" 24341 }, 24342 inputFormat: { 24343 type: String, 24344 default: "basic" 24345 }, 24346 forceOpen: { 24347 type: Boolean 24348 }, 24349 quicklinks: { 24350 type: Object, 24351 default: () => ({ 24352 category: "", 24353 items: [] 24354 }) 24355 }, 24356 suggestions: { 24357 type: [ 24358 Object, 24359 Array 24360 ], 24361 default: () => ({ 24362 category: "", 24363 items: [] 24364 }) 24365 }, 24366 label: { 24367 type: String 24368 }, 24369 placeholder: { 24370 type: String 24371 }, 24372 allowEmptyQuery: { 24373 type: Boolean, 24374 default: false 24375 } 24376 } 24377 }, a0 = { 24378 name: "n-search-form", 24379 components: { 24380 SearchInputNav: dp 24381 }, 24382 mixins: [ 24383 ws, 24384 nt, 24385 ug 24386 ], 24387 props: { 24388 initialSearchValue: { 24389 type: String, 24390 default: "" 24391 }, 24392 formatSuggestions: { 24393 type: Function, 24394 default: function(e) { 24395 return this.defaultFormatSuggestions(e); 24396 } 24397 }, 24398 disableNavigation: { 24399 type: Boolean, 24400 default: false 24401 } 24402 }, 24403 emits: [ 24404 "submit", 24405 "set-search-input" 24406 ], 24407 data() { 24408 return { 24409 query: this.searchInputDisplayValue, 24410 inputName: this.searchInputName, 24411 containsFocus: false, 24412 searchInputDisplayValue: this.initialSearchValue || "", 24413 windowFocusListener: null, 24414 windowClickListener: null, 24415 isOpen: false 24416 }; 24417 }, 24418 computed: { 24419 ariaLiveRegionLabel() { 24420 return this.showListbox ? `${this.listboxItems.length} ${this.listboxCategory}` : ""; 24421 }, 24422 showListbox() { 24423 return this.forceOpen || this.listboxItems.length > 0 && this.containsFocus && this.isOpen || this.suggestions.length > 0; 24424 }, 24425 validQuery() { 24426 return this.query ? this.query.trim() && this.query.trim().length >= 3 : false;
24427 }, 24428 listboxCategory() { 24429 return this.validQuery ? this.suggestions.label : this.quicklinks.label; 24430 }, 24431 listboxItems() { 24432 return this.validQuery ? this.formatSuggestions(this.suggestions.items) : this.quicklinks.items; 24433 }, 24434 listboxItemsFormatted() { 24435 if (!this.validQuery) return this.quicklinks.items; 24436 const e = this.query.toLowerCase().trim(); 24437 return [ 24438 ...this.listboxItems 24439 ].map((t) => { 24440 let n = { 24441 ...t 24442 }; 24443 return n.label = Xa(n.label, e), n; 24444 }); 24445 }, 24446 listboxHasLinks() { 24447 return this.listboxItems.some((e) => e.url); 24448 }, 24449 highlightedListboxItem() { 24450 return this.currentFocusedLinkIndex == null ? this.listboxItems[0] : this.listboxItems[this.currentFocusedLinkIndex]; 24451 }, 24452 absoluteSearchPageUrl() { 24453 let e = this.getAbsoluteUrlObject(this.searchPage); 24454 return e.searchParams.set(this.inputName, encodeURIComponent(this.searchInputDisplayValue)), e.toString(); 24455 }, 24456 searchInputComponent() { 24457 return this.inputFormat === "nav" ? dp : lg; 24458 }, 24459 isCombobox() { 24460 return this.quicklinks.items && this.quicklinks.items.length || Array.isArray(this.suggestions) && this.suggestions.length || this.suggestions.items && this.suggestions.items.length; 24461 }, 24462 textboxAttrs() { 24463 return this.isCombobox ? { 24464 "aria-autocomplete": "list", 24465 ...this.comboboxAttrs 24466 } : {}; 24467 }, 24468 comboboxAttrs() { 24469 return { 24470 role: "combobox", 24471 "aria-haspopup": "listbox", 24472 "aria-controls": `${this.id}-listbox`, 24473 "aria-expanded": this.showListbox ? "true" : "false", 24474 "aria-activedescendant": this.currentFocusedLinkIndex != null ? `${this.id}-listbox-item-${this.currentFocusedLinkIndex}` : null 24475 }; 24476 } 24477 }, 24478 watch: { 24479 validQuery(e) { 24480 e || (this.isOpen = true); 24481 } 24482 }, 24483 updated() { 24484 this.controlRefs = this.listboxItems; 24485 }, 24486 mounted() { 24487 let e = this.$refs.container, t = this; 24488 function n(i) { 24489 (!i.target || !e.contains(i.target)) && (t.containsFocus = false, t.removeHighlight()); 24490 } 24491 this.windowFocusListener = window.addEventListener("focusin", function(i) { 24492 n(i); 24493 }), this.windowClickListener = window.addEventListener("click", function(i) { 24494 n(i); 24495 }); 24496 }, 24497 unmounted() { 24498 window.removeEventListener("focusin", this.windowFocusListener), window.removeEventListener("click", this.windowClickListener); 24499 }, 24500 methods: { 24501 defaultFormatSuggestions(e) { 24502 return !e || e.length === 0 ? [] : e.filter((t) => t.label && t.label.toLowerCase().indexOf(this.query.toLowerCase()) > -1).map((t) => { 24503 let n = { 24504 ...t 24505 }; 24506 if (!t.url) { 24507 let i = this.getAbsoluteUrlObject(this.searchPage); 24508 i.searchParams.set(this.inputName, encodeURIComponent(t.label)), n.url = i.toString(); 24509 } 24510 return n; 24511 }); 24512 }, 24513 removeHighlight() { 24514 this.currentFocusedLinkIndex = null; 24515 }, 24516 setHighlight(e) { 24517 this.currentFocusedLinkIndex = e; 24518 }, 24519 handleFormSubmit(e) { 24520 if (e && e.preventDefault(), this.isOpen = false, this.query !== this.searchInputDisplayValue && this.setQuery(this.searchInputDisplayValue), !this.validQuery && this.highlightedListboxItem) { 24521 this.disableNavigation || (window.location = this.highlightedListboxItem.url); 24522 return; 24523 } 24524 (!this.query || this.query.trim().length < 3 || this.query.trim() === this.initialSearchValue) && !this.allowEmptyQuery || (this.$emit("submit", this.highlightedListboxItem || { 24525 label: this.query 24526 }), this.disableNavigation || (window.location = this.absoluteSearchPageUrl)); 24527 }, 24528 handleFocusIn(e) { 24529 e.srcElement.tagName !== "DIV" && (this.isOpen = true, this.containsFocus = true); 24530 }, 24531 handleInput() { 24532 this.removeHighlight(), this.isOpen = true, this.setQuery(this.searchInputDisplayValue); 24533 }, 24534 handleInputKeydown(e) { 24535 this.currentFocusedLinkIndex === null ? this.listControl_focusOnFirstItem() : this.listControl_itemKeydown(e); 24536 }, 24537 handleListItemMouseover(e) { 24538 e != this.currentFocusedLinkIndex && (this.setHighlight(e), this.searchInputDisplayValue = this.query); 24539 }, 24540 handleListItemClick(e) { 24541 const t = this.listboxItems[e]; 24542 if (t != null && t.url) { 24543 this.$emit("submit", t), this.isOpen = false, this.disableNavigation || (window.location = t.url); 24544 return; 24545 } 24546 this.validQuery && (this.searchInputDisplayValue = this.listboxItems[this.currentFocusedLinkIndex] ? this.listboxItems[this.currentFocusedLinkIndex].label : this.query), this.handleFormSubmit(); 24547 }, 24548 listControl_focus(e) { 24549 this.highlightedListboxItem && this.validQuery && (this.searchInputDisplayValue = this.highlightedListboxItem.label); 24550 }, 24551 getAbsoluteUrlObject(e) { 24552 return this.isUrl(e) ? new URL(e) : new URL(e, window.location); 24553 }, 24554 isUrl(e) { 24555 try { 24556 return new URL(e), true; 24557 } catch { 24558 return false;
24559 } 24560 }, 24561 setQuery(e) { 24562 this.query = e && e.trim(), this.$emit("set-search-input", this.query); 24563 } 24564 }, 24565 compatConfig: { 24566 MODE: 3 24567 } 24568 }, s0 = { 24569 class: "n-search-form__listbox-wrapper" 24570 }, o0 = { 24571 class: "n-search-form__listbox-panel" 24572 }, l0 = [ 24573 "id" 24574 ], u0 = [ 24575 "id", 24576 "aria-labelledby" 24577 ], c0 = [ 24578 "id", 24579 "aria-selected" 24580 ], d0 = { 24581 role: "status", 24582 class: "is-sr-only", 24583 "aria-live": "polite" 24584 }; 24585 function p0(e, t, n, i, a, r) { 24586 return m(), x("div", { 24587 ref: "container", 24588 class: R([ 24589 [ 24590 `n-search-form--${e.inputFormat}`, 24591 { 24592 "n-search-form--panel-open": r.showListbox 24593 } 24594 ], 24595 "n-search-form" 24596 ]), 24597 onFocusin: t[2] || (t[2] = (...s) => r.handleFocusIn && r.handleFocusIn(...s)) 24598 }, [ 24599 O("form", { 24600 class: "n-search-form__form", 24601 method: "get", 24602 "data-analytics-lead": "", 24603 onSubmit: t[1] || (t[1] = (...s) => r.handleFormSubmit && r.handleFormSubmit(...s)) 24604 }, [ 24605 O("div", null, [ 24606 (m(), U(ue(r.searchInputComponent), fe({ 24607 id: `${e.id}-combobox` 24608 }, r.textboxAttrs, { 24609 ref: "searchInput", 24610 modelValue: a.searchInputDisplayValue, 24611 "onUpdate:modelValue": [ 24612 t[0] || (t[0] = (s) => a.searchInputDisplayValue = s), 24613 r.handleInput 24614 ], 24615 name: a.inputName, 24616 label: e.label, 24617 placeholder: e.placeholder, 24618 autocomplete: "off", 24619 onKeydown: Ye(r.handleInputKeydown, [ 24620 "up", 24621 "down" 24622 ]) 24623 }), null, 16, [ 24624 "id", 24625 "modelValue", 24626 "name", 24627 "label", 24628 "placeholder", 24629 "onKeydown", 24630 "onUpdate:modelValue" 24631 ])) 24632 ]), 24633 O("div", s0, [ 24634 Je(O("div", o0, [ 24635 r.listboxCategory ? (m(), x("h3", { 24636 key: 0, 24637 id: `${e.id}-listbox-title`, 24638 class: "n-search-form__listbox-label x-small" 24639 }, H(r.listboxCategory), 9, l0)) : M("", true), 24640 O("ul", { 24641 id: `${e.id}-listbox`, 24642 "aria-labelledby": `${e.id}-listbox-title`, 24643 role: "listbox", 24644 class: "n-search-form__listbox-list" 24645 }, [ 24646 (m(true), x(me, null, ve(r.listboxItemsFormatted, (s, o) => (m(), x("li", { 24647 id: `${e.id}-listbox-item-${o}`, 24648 key: s.id || s.label, 24649 class: R([ 24650 { 24651 "n-search-form__listbox-item--active": o === e.currentFocusedLinkIndex 24652 }, 24653 "n-search-form__listbox-item" 24654 ]), 24655 role: "option", 24656 "aria-selected": o === e.currentFocusedLinkIndex 24657 }, [ 24658 (m(), U(ue(s.url ? "a" : "span"), { 24659 ref_for: true, 24660 ref: "listControlItem", 24661 href: s.url || void 0, 24662 class: "n-search-form__listbox-link", 24663 "aria-label": r.listboxItems[o].label, 24664 onClick: (l) => r.handleListItemClick(o), 24665 onMouseover: (l) => r.handleListItemMouseover(o), 24666 innerHTML: s.label 24667 }, null, 40, [ 24668 "href", 24669 "aria-label", 24670 "onClick", 24671 "onMouseover", 24672 "innerHTML" 24673 ])) 24674 ], 10, c0))), 128)) 24675 ], 8, u0), 24676 V(e.$slots, "listbox-footer") 24677 ], 512), [ 24678 [ 24679 pt, 24680 r.showListbox 24681 ] 24682 ]), 24683 O("span", d0, H(r.ariaLiveRegionLabel), 1) 24684 ]) 24685 ], 32) 24686 ], 34); 24687 } 24688 let f0, m0; 24689 ua = te(a0, [ 24690 [ 24691 "render", 24692 p0 24693 ] 24694 ]); 24695 f0 = { 24696 name: "n-data-provider-default-error", 24697 components: { 24698 FeedbackMessage: Au 24699 }, 24700 compatConfig: { 24701 MODE: 3 24702 } 24703 }; 24704 m0 = { 24705 class: "h5" 24706 }; 24707 function h0(e, t, n, i, a, r) { 24708 const s = j("FeedbackMessage"); 24709 return m(), U(s, { 24710 preset: "context.error" 24711 }, {
24712 default: I(() => [ 24713 O("h2", m0, H(e.$t("genericError")), 1) 24714 ]), 24715 _: 1 24716 }); 24717 } 24718 const g0 = te(f0, [ 24719 [ 24720 "render", 24721 h0 24722 ] 24723 ]), b0 = { 24724 name: "n-spinner" 24725 }, v0 = { 24726 class: "n-spinner" 24727 }; 24728 function y0(e, t, n, i, a, r) { 24729 return m(), x("div", v0, t[0] || (t[0] = [ 24730 O("svg", { 24731 viewBox: "0 0 100 100" 24732 }, [ 24733 O("rect", { 24734 class: "n-spinner__background", 24735 width: "100", 24736 height: "100", 24737 fill: "transparent", 24738 stroke: "none", 24739 "stroke-width": "40" 24740 }), 24741 O("rect", { 24742 class: "n-spinner__foreground", 24743 width: "100", 24744 height: "100", 24745 fill: "transparent", 24746 stroke: "none", 24747 "stroke-width": "40" 24748 }) 24749 ], -1) 24750 ])); 24751 } 24752 let E0, k0, C0, A0; 24753 _0 = te(b0, [ 24754 [ 24755 "render", 24756 y0 24757 ] 24758 ]); 24759 E0 = { 24760 name: "n-loader", 24761 components: { 24762 Spinner: _0, 24763 NTransition: Ea 24764 }, 24765 mixins: [ 24766 Ge 24767 ], 24768 props: { 24769 label: { 24770 type: String, 24771 default: function() { 24772 return Ze.global.t("loading"); 24773 } 24774 }, 24775 loaded: { 24776 type: Boolean 24777 }, 24778 height: { 24779 type: String, 24780 default: "short" 24781 } 24782 }, 24783 computed: { 24784 spinnerPosition() { 24785 return this.height === "tall" ? "top" : "center"; 24786 }, 24787 minHeightStyle() { 24788 return this.height === "tall" ? "40rem" : this.height === "short" ? "10rem" : this.height; 24789 } 24790 } 24791 }; 24792 k0 = [ 24793 "inert" 24794 ]; 24795 C0 = [ 24796 "tabindex" 24797 ]; 24798 A0 = { 24799 class: "is-sr-only" 24800 }; 24801 function S0(e, t, n, i, a, r) { 24802 const s = j("Spinner"), o = j("NTransition"); 24803 return m(), x("div", { 24804 class: R([ 24805 (n.loaded, n.loaded, { 24806 "n:contents": n.loaded 24807 }), 24808 "n-loader" 24809 ]), 24810 style: en({ 24811 minHeight: n.loaded ? null : r.minHeightStyle 24812 }) 24813 }, [ 24814 O("div", { 24815 class: R([ 24816 "n-loader__content", 24817 { 24818 "n:contents": n.loaded 24819 } 24820 ]), 24821 inert: !n.loaded || null 24822 }, [ 24823 V(e.$slots, "default") 24824 ], 10, k0), 24825 K(o, { 24826 name: "fade" 24827 }, { 24828 default: I(() => [ 24829 n.loaded ? M("", true) : (m(), x("div", { 24830 key: 0, 24831 class: R([ 24832 { 24833 "n-loader__overlay--spinner-top": r.spinnerPosition === "top", 24834 "n-loader__overlay--spinner-center": r.spinnerPosition === "center" 24835 }, 24836 "n-loader__overlay no-interacting" 24837 ]), 24838 tabindex: n.loaded ? null : 0 24839 }, [ 24840 O("span", A0, H(e.$t("loading")), 1), 24841 O("div", { 24842 class: R([ 24843 "n-loader__spinner", 24844 { 24845 "n:contents": n.loaded 24846 } 24847 ]) 24848 }, [ 24849 K(s) 24850 ], 2) 24851 ], 10, C0)) 24852 ]), 24853 _: 1 24854 }) 24855 ], 6); 24856 } 24857 let w0; 24858 cg = te(E0, [ 24859 [ 24860 "render", 24861 S0 24862 ] 24863 ]); 24864 w0 = { 24865 name: "n-data-provider-default-loader", 24866 components: { 24867 Loader: cg 24868 }, 24869 compatConfig: { 24870 MODE: 3 24871 } 24872 }; 24873 function L0(e, t, n, i, a, r) { 24874 const s = j("Loader"); 24875 return m(), U(s); 24876 } 24877 const x0 = te(w0, [ 24878 [ 24879 "render", 24880 L0 24881 ] 24882 ]), O0 = { 24883 emits: [ 24884 "request", 24885 "response", 24886 "loaded", 24887 "done", 24888 "error" 24889 ], 24890 props: { 24891 url: { 24892 type: String 24893 }, 24894 params: { 24895 type: Object 24896 }, 24897 requestOptions: { 24898 type: Object 24899 }, 24900 singleSlot: { 24901 type: Boolean 24902 }, 24903 hooks: { 24904 type: Array, 24905 default: () => [ 24906 "mounted" 24907 ] 24908 }, 24909 formatter: { 24910 type: Function 24911 }, 24912 validator: { 24913 type: Function, 24914 default: () => true 24915 }, 24916 fetchOnUpdate: { 24917 type: Function, 24918 default: () => true 24919 } 24920 }, 24921 data() { 24922 return { 24923 data: void 0, 24924 response: null, 24925 loaded: false, 24926 error: false, 24927 done: false 24928 }; 24929 }, 24930 created() { 24931 this.hooks.includes("created") && this.get(); 24932 }, 24933 mounted() { 24934 this.hooks.includes("mounted") && this.get(); 24935 }, 24936 updated() { 24937 this.hooks.includes("updated") && this.get(); 24938 }, 24939 watch: { 24940 url: function(e, t) { 24941 this.fetchOnUpdate("url", e, t) && this.get(); 24942 }, 24943 params: { 24944 handler: function(e, t) { 24945 this.fetchOnUpdate("params", e, t) && this.get(); 24946 }, 24947 deep: true 24948 } 24949 }, 24950 methods: { 24951 get() { 24952 this.done = false, this.loaded = false, this.$emit("request"), Ci.get(this.url, { 24953 ...this.requestOptions, 24954 params: this.params 24955 }).then((e) => { 24956 this.$emit("response", e), this.validator(e) ? (this.response = e, this.data = e.data, this.loaded = true, this.$emit("loaded", this.data)) : this.throw("Invalid response"); 24957 }).catch((e) => this.throw(e)).finally((e) => { 24958 this.done = true, this.$emit("done"); 24959 }); 24960 }, 24961 throw(e) { 24962 this.error = e, this.$emit("error", e); 24963 } 24964 }, 24965 render() { 24966 const e = { 24967 loading: !this.loaded, 24968 data: this.data, 24969 response: this.response, 24970 error: this.error, 24971 formattedData: this.formatter ? this.formatter(this.data) : this.data 24972 }, t = this.$slots.default && this.$slots.default(e), n = this.$slots.loading && this.$slots.loading(e) || Pr(x0), i = this.$slots.error && this.$slots.error(e) || Pr(g0); 24973 return this.singleSlot ? t : this.error ? i : this.loaded ? t : n; 24974 }, 24975 compatConfig: { 24976 MODE: 3 24977 } 24978 }, $0 = { 24979 name: "n-filter-button", 24980 components: { 24981 Icon: Tt 24982 }, 24983 props: { 24984 selected: { 24985 type: Boolean, 24986 default: false 24987 }, 24988 label: { 24989 type: String, 24990 required: true 24991 }, 24992 multiple: { 24993 type: Boolean, 24994 default: false 24995 } 24996 }, 24997 emits: [ 24998 "click", 24999 "update:selected" 25000 ], 25001 data() { 25002 return { 25003 b: "n-filter-button" 25004 }; 25005 }, 25006 methods: { 25007 onClick() { 25008 const e = !this.selected; 25009 this.$emit("click", e); 25010 } 25011 }, 25012 compatConfig: { 25013 MODE: 3 25014 } 25015 }, T0 = [ 25016 "aria-checked" 25017 ]; 25018 function I0(e, t, n, i, a, r) { 25019 const s = j("Icon"); 25020 return m(), x("button", { 25021 class: R([ 25022 [ 25023 a.b, 25024 n.selected ? `${a.b}--selected` : `${a.b}--unselected`, 25025 n.multiple ? `${a.b}--multiple` : `${a.b}--single` 25026 ], 25027 "is-hidden-print" 25028 ]), 25029 type: "button", 25030 role: "checkbox", 25031 "data-test-id": "n-filter-button", 25032 "aria-checked": n.selected.toString(), 25033 onClick: t[0] || (t[0] = (...o) => r.onClick && r.onClick(...o)) 25034 }, [ 25035 O("span", { 25036 class: R(a.b + "__label") 25037 }, H(n.label), 3), 25038 n.selected ? (m(), U(s, { 25039 key: 0, 25040 class: R([ 25041 a.b + "__icon", 25042 "is-color-text" 25043 ]), 25044 size: 16, 25045 icon: "x" 25046 }, null, 8, [ 25047 "class" 25048 ])) : M("", true) 25049 ], 10, T0); 25050 } 25051 let N0, D0, P0; 25052 F0 = te($0, [ 25053 [ 25054 "render", 25055 I0 25056 ] 25057 ]); 25058 N0 = { 25059 name: "n-filter-group", 25060 components: { 25061 FilterButton: F0 25062 }, 25063 mixins: [ 25064 Xn, 25065 nt, 25066 Ge 25067 ], 25068 props: { 25069 label: { 25070 type: String 25071 }, 25072 modelValue: { 25073 type: [ 25074 Array, 25075 String 25076 ], 25077 default: () => [] 25078 }, 25079 multiple: { 25080 type: Boolean 25081 }, 25082 format: { 25083 type: String, 25084 default: "block" 25085 } 25086 }, 25087 emits: [ 25088 "update:model-value" 25089 ], 25090 computed: { 25091 isAllSelected() { 25092 const e = (this.inputOptionList || []).map((n) => n.value), t = Array.isArray(this.modelValue) ? this.modelValue : [ 25093 this.modelValue 25094 ]; 25095 return t.length === e.length && e.every((n) => t.includes(n)); 25096 } 25097 }, 25098 methods: { 25099 reset() { 25100 this.$emit("update:model-value", this.multiple ? [] : null); 25101 }, 25102 onToggleAll(e) { 25103 if (!this.multiple) return; 25104 const t = this.inputOptionList || []; 25105 this.$emit("update:model-value", e ? t.map((n) => n.value) : []); 25106 }, 25107 clickHandler(e, t) { 25108 this.multiple ? this.clickHandlerMultiple(e, t) : this.clickHandlerSingle(e, t); 25109 }, 25110 clickHandlerSingle(e, t) { 25111 t ? this.$emit("update:model-value", e) : this.$emit("update:model-value", null); 25112 }, 25113 clickHandlerMultiple(e, t) { 25114 t ? this.modelValue.filter((n) => n === e).length || this.$emit("update:model-value", [ 25115 ...this.modelValue, 25116 e 25117 ]) : this.$emit("update:model-value", this.modelValue.filter((n) => { 25118 const i = Array.isArray(n) ? n[0] : n, a = Array.isArray(e) ? e[0] : e; 25119 return i !== a; 25120 })); 25121 }, 25122 isFilterSelected(e) { 25123 const t = typeof this.modelValue == "string" ? [ 25124 this.modelValue 25125 ] : Array.isArray(this.modelValue) && this.modelValue.flat(), n = typeof e == "string" ? [ 25126 e 25127 ] : e; 25128 return t && t.some((i) => n.includes(i)); 25129 } 25130 }, 25131 compatConfig: { 25132 MODE: 3 25133 } 25134 }; 25135 D0 = { 25136 key: 0, 25137 class: "label n-filter-group__label" 25138 }; 25139 P0 = { 25140 class: "n-filter-group__buttons" 25141 }; 25142 function B0(e, t, n, i, a, r) { 25143 const s = j("FilterButton"); 25144 return m(), x("fieldset", { 25145 class: R([ 25146 "n-filter-group is-hidden-print", 25147 `n-filter-group--${n.format}-format` 25148 ]) 25149 }, [ 25150 n.label ? (m(), x("legend", D0, H(n.label), 1)) : M("", true), 25151 V(e.$slots, "default", Pt(Bt(e.inputOptionList)), () => [ 25152 O("div", P0, [ 25153 n.multiple ? (m(), U(s, { 25154 key: e.id + "deselect", 25155 label: e.$t("label.all"), 25156 name: `${e.id}`, 25157 multiple: n.multiple, 25158 selected: r.isAllSelected, 25159 onClick: r.onToggleAll 25160 }, null, 8, [ 25161 "label", 25162 "name", 25163 "multiple", 25164 "selected", 25165 "onClick" 25166 ])) : M("", true), 25167 (m(true), x(me, null, ve(e.inputOptionList || [], (o) => (m(), U(s, fe({ 25168 key: o.name, 25169 ref_for: true 25170 }, o, { 25171 name: `${e.id}`, 25172 multiple: n.multiple, 25173 selected: r.isAllSelected || r.isFilterSelected(o.value), 25174 onClick: (l) => r.clickHandler(o.value, l) 25175 }), null, 16, [ 25176 "name", 25177 "multiple", 25178 "selected", 25179 "onClick" 25180 ]))), 128)) 25181 ]) 25182 ]) 25183 ], 2); 25184 } 25185 const M0 = te(N0, [ 25186 [ 25187 "render", 25188 B0 25189 ] 25190 ]); 25191 function R0(e, t) { 25192 return Array.isArray(t) && Array.isArray(e) ? t.reduce((n, i) => U0(n, i), e) : (console.warn("no list or filters provided"), e); 25193 } 25194 function U0(e, t) { 25195 if (!t.match || !t.options || !t.value) return e; 25196 if (Array.isArray(e) || console.warn("list must be an array"), typeof t.match == "string") return V0[t.match](e, t.value, t.options); 25197 if (typeof t.match == "function") return t.match(e, t.options); 25198 console.warn(`unknown match type ${t.match}`); 25199 } 25200 const V0 = { 25201 text: dg, 25202 exact: H0, 25203 multiple: j0, 25204 paginate: z0 25205 }; 25206 function dg(e, t, n) { 25207 return Array.isArray(e) ? Array.isArray(t) && t.length ? t.reduce((i, a) => dg(i, n, a)) : e.filter((i) => typeof i[n] != "string" || typeof t != "string" ? (console.warn(`property (${i[n]}) and value (${t}) must both be strings`), true) : i[n].toLowerCase().includes(t.toLowerCase())) : (console.warn(`list (${e}) must be an array`), e); 25208 } 25209 function H0(e, t, n) { 25210 return Array.isArray(e) ? Array.isArray(t) && t.length ? e.filter((i) => t.includes(i[n])) : e.filter((i) => [ 25211 null, 25212 void 0 25213 ].includes(t) || i[n] === t) : (console.warn(`list (${e}) must be an array`), e); 25214 } 25215 function j0(e, t, n) { 25216 return Array.isArray(e) && Array.isArray(t) && t.length ? e.filter((i) => t.includes(i[n])) : e; 25217 } 25218 function z0(e, t = 1, n = 20) { 25219 if (Array.isArray(e)) { 25220 const i = (t - 1) * n, a = i + n; 25221 return e.slice(i, a); 25222 } 25223 return e; 25224 } 25225 const W0 = { 25226 name: "n-list-filter", 25227 props: { 25228 list: { 25229 type: Array 25230 }, 25231 filters: { 25232 type: Array, 25233 default: () => [] 25234 }, 25235 tag: { 25236 type: String, 25237 default: "ul" 25238 } 25239 }, 25240 computed: { 25241 filtered() { 25242 return R0(this.list, this.filters) || []; 25243 } 25244 }, 25245 compatConfig: { 25246 MODE: 3 25247 } 25248 }; 25249 function G0(e, t, n, i, a, r) { 25250 return m(), U(ue(n.tag), { 25251 "data-test-id": "n-filtered-list" 25252 }, {
25253 default: I(() => [ 25254 r.filtered.length ? V(e.$slots, "default", { 25255 key: 0, 25256 filtered: r.filtered 25257 }, () => [ 25258 (m(true), x(me, null, ve(r.filtered, (s) => (m(), x("li", { 25259 key: JSON.stringify(s) 25260 }, H(s), 1))), 128)) 25261 ]) : M("", true), 25262 r.filtered.length ? M("", true) : V(e.$slots, "empty", { 25263 key: 1 25264 }) 25265 ]), 25266 _: 3 25267 }); 25268 } 25269 const q0 = te(W0, [ 25270 [ 25271 "render", 25272 G0 25273 ] 25274 ]), Y0 = { 25275 name: "n-filter-select", 25276 components: { 25277 FieldControl: Cu 25278 }, 25279 mixins: [ 25280 nt, 25281 Ge, 25282 Xn 25283 ], 25284 props: { 25285 label: { 25286 type: String 25287 }, 25288 resetOption: { 25289 type: String, 25290 default: function() { 25291 return Ze.global.t("label.all"); 25292 } 25293 }, 25294 value: { 25295 type: [ 25296 Array, 25297 String 25298 ], 25299 default: () => [] 25300 }, 25301 size: it.size, 25302 name: it.name, 25303 multiple: { 25304 type: Boolean 25305 }, 25306 options: { 25307 type: Array, 25308 required: true 25309 }, 25310 title: { 25311 type: String, 25312 required: true 25313 } 25314 }, 25315 emits: [ 25316 "update:model-value" 25317 ], 25318 data() { 25319 return { 25320 selected: this.multiple ? [] : null 25321 }; 25322 }, 25323 computed: { 25324 inputOptionsWithReset() { 25325 let e = this.inputOptionList.map((n) => n); 25326 const t = this.multiple ? [] : null; 25327 return e.unshift({ 25328 label: this.resetOption, 25329 value: t 25330 }), e; 25331 }, 25332 selectType() { 25333 return this.multiple ? "MultiSelectList" : "select"; 25334 } 25335 }, 25336 methods: { 25337 updateMultiSelect() { 25338 const e = this.selected.flat(); 25339 this.$emit("update:model-value", e); 25340 }, 25341 updateSingleSelect() { 25342 this.$emit("update:model-value", this.selected); 25343 }, 25344 reset() { 25345 this.multiple ? this.selected = [] : this.selected = null; 25346 } 25347 }, 25348 compatConfig: { 25349 MODE: 3 25350 } 25351 }, K0 = { 25352 class: "n-filter-select" 25353 }; 25354 function X0(e, t, n, i, a, r) { 25355 const s = j("FieldControl"); 25356 return m(), x("div", K0, [ 25357 V(e.$slots, "default", Pt(Bt(e.inputOptionList)), () => [ 25358 n.multiple ? (m(), U(s, { 25359 key: 0, 25360 id: e.id, 25361 modelValue: a.selected, 25362 "onUpdate:modelValue": [ 25363 t[0] || (t[0] = (o) => a.selected = o), 25364 r.updateMultiSelect 25365 ], 25366 "input-type": r.selectType, 25367 label: n.title, 25368 name: n.name, 25369 size: n.size, 25370 input: { 25371 resetOption: n.resetOption 25372 }, 25373 options: e.inputOptionList, 25374 placeholder: n.resetOption, 25375 "reset-option": "all" 25376 }, null, 8, [ 25377 "id", 25378 "modelValue", 25379 "input-type", 25380 "label", 25381 "name", 25382 "size", 25383 "input", 25384 "options", 25385 "placeholder", 25386 "onUpdate:modelValue" 25387 ])) : M("", true), 25388 n.multiple ? M("", true) : (m(), U(s, { 25389 key: 1, 25390 id: e.id, 25391 modelValue: a.selected, 25392 "onUpdate:modelValue": [ 25393 t[1] || (t[1] = (o) => a.selected = o), 25394 r.updateSingleSelect 25395 ], 25396 label: n.title, 25397 name: n.name, 25398 "input-type": r.selectType, 25399 size: n.size, 25400 options: r.inputOptionsWithReset 25401 }, null, 8, [ 25402 "id", 25403 "modelValue", 25404 "label", 25405 "name", 25406 "input-type", 25407 "size", 25408 "options", 25409 "onUpdate:modelValue" 25410 ])) 25411 ]) 25412 ]); 25413 } 25414 const J0 = te(Y0, [ 25415 [ 25416 "render", 25417 X0 25418 ] 25419 ]), Q0 = { 25420 name: "n-filter-set", 25421 components: { 25422 FilterGroup: M0,
25423 FilterSelect: J0, 25424 LinkIcon: Ut 25425 }, 25426 mixins: [ 25427 nt 25428 ], 25429 props: { 25430 filters: { 25431 type: Array, 25432 required: true 25433 }, 25434 value: { 25435 type: Array, 25436 default: () => [] 25437 }, 25438 allowReset: { 25439 type: Boolean 25440 }, 25441 size: { 25442 ...it.size 25443 }, 25444 resetLabel: { 25445 type: String, 25446 default: function() { 25447 return Ze.global.t("label.clear"); 25448 } 25449 } 25450 }, 25451 emits: [ 25452 "update:modelValue" 25453 ], 25454 data() { 25455 if (Array.isArray(this.filters)) for (let e of this.filters) e.type || (e.type = "group"); 25456 return { 25457 filterSelection: {} 25458 }; 25459 }, 25460 computed: { 25461 groupFilters() { 25462 return this.filters.filter((e) => e.type === "group"); 25463 }, 25464 selectFilters() { 25465 return this.filters.filter((e) => e.type === "select"); 25466 }, 25467 mapFilterLabelToValue() { 25468 return this.filters.reduce((e, t) => { 25469 const n = t.filters.reduce((i, a) => ({ 25470 ...i, 25471 [a.label]: a.value 25472 }), {}); 25473 return { 25474 ...e, 25475 ...n 25476 }; 25477 }, {}); 25478 } 25479 }, 25480 methods: { 25481 updateSelectedFilters(e) { 25482 const t = Object.values(this.filterSelection).filter(Boolean).map((n) => this.mapLabelBackToValue([ 25483 n 25484 ].flat(), e)); 25485 this.$emit("update:modelValue", t); 25486 }, 25487 reset() { 25488 for (let e of this.$refs.filter) e.reset(); 25489 this.filterSelection = {}, this.updateSelectedFilters(); 25490 }, 25491 mapLabelBackToValue(e, t) { 25492 const n = e.map((i) => this.mapFilterLabelToValue[i]); 25493 return t === "select" ? n.flat() : n; 25494 }, 25495 listLabels(e) { 25496 return e ? e.filters.map((t) => t.label) : []; 25497 } 25498 } 25499 }, Z0 = { 25500 "data-test-id": "n-filter-set" 25501 }, eF = { 25502 key: 0, 25503 class: "n-filter-set__reset-container" 25504 }, tF = { 25505 class: "n-filter-set__reset-link" 25506 }; 25507 function nF(e, t, n, i, a, r) { 25508 const s = j("FilterGroup"), o = j("FilterSelect"), l = j("LinkIcon"); 25509 return m(), x("div", Z0, [ 25510 O("div", { 25511 class: R([ 25512 "n-filter-set--column-format", 25513 "n-filter-set" 25514 ]) 25515 }, [ 25516 (m(true), x(me, null, ve(r.groupFilters, (u, c) => (m(), x("div", { 25517 key: u.title, 25518 class: "n-filter-set__category" 25519 }, [ 25520 K(s, { 25521 id: `${e.id}-${u.name}`, 25522 ref_for: true, 25523 ref: "filter", 25524 modelValue: a.filterSelection[u.name], 25525 "onUpdate:modelValue": [ 25526 (d) => a.filterSelection[u.name] = d, 25527 t[0] || (t[0] = (d) => r.updateSelectedFilters("group")) 25528 ], 25529 size: n.size, 25530 label: u.title, 25531 options: r.listLabels(u), 25532 multiple: u.multiple, 25533 class: R({ 25534 "n:mt-lg": c === 0 25535 }), 25536 format: "inline" 25537 }, null, 8, [ 25538 "id", 25539 "modelValue", 25540 "onUpdate:modelValue", 25541 "size", 25542 "label", 25543 "options", 25544 "multiple", 25545 "class" 25546 ]) 25547 ]))), 128)) 25548 ]), 25549 O("div", { 25550 class: R([ 25551 "n-filter-set", 25552 "n-filter-set--row-format" 25553 ]) 25554 }, [ 25555 (m(true), x(me, null, ve(r.selectFilters, (u) => (m(), x("div", { 25556 key: u.title, 25557 class: "n-filter-select" 25558 }, [ 25559 K(o, { 25560 id: `${e.id}-${u.name}`, 25561 ref_for: true, 25562 ref: "filter", 25563 modelValue: a.filterSelection[u.name], 25564 "onUpdate:modelValue": [ 25565 (c) => a.filterSelection[u.name] = c, 25566 t[1] || (t[1] = (c) => r.updateSelectedFilters("select")) 25567 ], 25568 name: u.name, 25569 size: n.size, 25570 title: u.title, 25571 options: r.listLabels(u), 25572 multiple: u.multiple 25573 }, null, 8, [ 25574 "id", 25575 "modelValue", 25576 "onUpdate:modelValue", 25577 "name", 25578 "size", 25579 "title", 25580 "options", 25581 "multiple" 25582 ]) 25583 ]))), 128)), 25584 n.allowReset ? (m(), x("div", eF, [ 25585 O("div", tF, [ 25586 K(l, { 25587 icon: "X", 25588 "icon-position": "left", 25589 class: "n:mb-0", 25590 onClick: r.reset 25591 }, { 25592 default: I(() => [ 25593 re(H(n.resetLabel), 1) 25594 ]), 25595 _: 1 25596 }, 8, [ 25597 "onClick" 25598 ]) 25599 ]) 25600 ])) : M("", true) 25601 ]) 25602 ]); 25603 } 25604 rF = te(Q0, [ 25605 [ 25606 "render", 25607 nF 25608 ] 25609 ]); 25610 function iF(e, t, n, i) { 25611 var a, r, s; 25612 i === void 0 && (i = {}); 25613 var o = i.data, l = i.computed, u = i.initialValue, c = o || "_$" + e; 25614 return n = n || { 25615 required: false 25616 }, t = t || "update:" + e, { 25617 props: (a = {}, a[e] = n, a), 25618 data: function(d) { 25619 return r = {}, r[c] = d[e] !== void 0 ? void 0 : u, r; 25620 }, 25621 computed: (s = {}, s[l || "$" + e] = { 25622 get: function() { 25623 return this[e] === void 0 ? this.$data[c] : this[e]; 25624 }, 25625 set: function(d) { 25626 this[e] === void 0 ? this.$data[c] = d : this.$emit(t, d); 25627 } 25628 }, s) 25629 }; 25630 } 25631 const aF = { 25632 name: "n-pagination-nav", 25633 components: { 25634 NButton: ze 25635 }, 25636 mixins: [ 25637 Ge, 25638 Ai 25639 ], 25640 props: { 25641 maxToggleGroupSize: { 25642 type: Number, 25643 default: 5 25644 }, 25645 numPages: { 25646 type: Number, 25647 default: 1 25648 }, 25649 displayMode: { 25650 type: String, 25651 default: "responsive", 25652 validator: (e) => [ 25653 "responsive", 25654 "desktop", 25655 "mobile" 25656 ].includes(e) 25657 }, 25658 modelValue: { 25659 type: Number, 25660 default: 1 25661 } 25662 }, 25663 emits: [ 25664 "update:model-value", 25665 "set-page" 25666 ], 25667 computed: { 25668 isDesktopOnly() { 25669 return this.displayMode === "desktop"; 25670 }, 25671 isMobileOnly() { 25672 return this.displayMode === "mobile"; 25673 }, 25674 isResponsive() { 25675 return this.displayMode === "responsive";
25676 }, 25677 halfMaxToggleGroupSize() { 25678 return Math.min(this.maxToggleGroupSize / 2); 25679 }, 25680 currentPageNearStart() { 25681 return this.modelValue <= this.halfMaxToggleGroupSize; 25682 }, 25683 currentPageNearEnd() { 25684 return this.modelValue >= this.numPages - this.halfMaxToggleGroupSize; 25685 }, 25686 currentPageLowerBound() { 25687 return this.modelValue - this.halfMaxToggleGroupSize; 25688 }, 25689 currentPageUpperBound() { 25690 return this.modelValue + this.halfMaxToggleGroupSize; 25691 } 25692 }, 25693 methods: { 25694 setPage(e) { 25695 e > 0 && e <= this.numPages && (this.$emit("update:model-value", e), this.$emit("set-page", e)), this.dispatchNestEvent({ 25696 category: "disclosure", 25697 action: "show", 25698 component: "n-pagination", 25699 name: `page-${e}`, 25700 targetPage: e, 25701 totalPages: this.numPages 25702 }); 25703 }, 25704 shouldPageNumberDisplay(e) { 25705 return !!(e <= this.maxToggleGroupSize && this.currentPageNearStart || e > this.numPages - this.maxToggleGroupSize && this.currentPageNearEnd || e === 1 || e === this.numPages || this.isBetweenRange(e, this.currentPageLowerBound, this.currentPageUpperBound)); 25706 }, 25707 isBetweenRange(e, t, n) { 25708 return e >= t && e <= n; 25709 } 25710 }, 25711 compatConfig: { 25712 MODE: 3 25713 } 25714 }, sF = [ 25715 "aria-label" 25716 ], oF = { 25717 class: "is-sr-only" 25718 }, lF = { 25719 key: 0, 25720 class: "is-sr-only" 25721 }; 25722 function uF(e, t, n, i, a, r) { 25723 const s = j("NButton"); 25724 return n.numPages > 1 ? (m(), x("nav", { 25725 key: 0, 25726 "aria-label": e.$t("pagination.navLabel"), 25727 class: "n-pagination-nav is-hidden-print" 25728 }, [ 25729 K(s, { 25730 class: R({ 25731 "is-invisible": n.modelValue === 1 25732 }), 25733 format: "ghost", 25734 size: "small", 25735 icon: "chevronLeft", 25736 "icon-position": "left", 25737 action: "paginate", 25738 onClick: t[0] || (t[0] = (o) => r.setPage(n.modelValue - 1)) 25739 }, { 25740 default: I(() => [ 25741 re(H(e.$t("pagination.previousPageShort")), 1) 25742 ]), 25743 _: 1 25744 }, 8, [ 25745 "class" 25746 ]), 25747 r.isDesktopOnly ? M("", true) : (m(), x("p", { 25748 key: 0, 25749 class: R([ 25750 { 25751 "is-hidden-md-up": r.isResponsive 25752 }, 25753 "is-clear-margin-bottom" 25754 ]) 25755 }, H(n.modelValue) + " / " + H(n.numPages), 3)), 25756 r.isMobileOnly ? M("", true) : (m(true), x(me, { 25757 key: 1 25758 }, ve(n.numPages, (o) => (m(), x(me, null, [ 25759 r.shouldPageNumberDisplay(o) ? (m(), U(s, { 25760 key: `${o}-button`, 25761 decoration: o === n.modelValue, 25762 class: R([ 25763 { 25764 "is-hidden-sm-down": r.isResponsive, 25765 "is-active is-color-text ": o === n.modelValue 25766 }, 25767 "n-pagination-nav__num-btn" 25768 ]), 25769 format: "ghost", 25770 size: "small", 25771 onClick: (l) => r.setPage(o) 25772 }, { 25773 default: I(() => [ 25774 O("span", oF, H(e.$t("pagination.page")), 1), 25775 re(" " + H(o) + " ", 1), 25776 o === n.modelValue ? (m(), x("span", lF, "(" + H(e.$t("pagination.currentPage")) + ")", 1)) : M("", true) 25777 ]), 25778 _: 2 25779 }, 1032, [ 25780 "decoration", 25781 "class", 25782 "onClick" 25783 ])) : (m(), x("p", { 25784 key: `${o}-p`, 25785 class: "n-pagination-nav__separator is-hidden-sm-down", 25786 "aria-hidden": "true" 25787 }, "\u2026")) 25788 ], 64))), 256)), 25789 K(s, { 25790 class: R({ 25791 "is-invisible": n.modelValue === n.numPages 25792 }), 25793 format: "ghost", 25794 size: "small", 25795 icon: "chevronRight", 25796 "icon-position": "right", 25797 action: "paginate", 25798 onClick: t[1] || (t[1] = (o) => r.setPage(n.modelValue + 1)) 25799 }, { 25800 default: I(() => [ 25801 re(H(e.$t("pagination.nextPageShort")), 1) 25802 ]), 25803 _: 1 25804 }, 8, [ 25805 "class" 25806 ]) 25807 ], 8, sF)) : M("", true); 25808 } 25809 const cF = te(aF, [ 25810 [ 25811 "render", 25812 uF 25813 ] 25814 ]), dF = { 25815 name: "n-pagination", 25816 components: { 25817 FilteredList: q0, 25818 PaginationNav: cF 25819 }, 25820 mixins: [ 25821 iF("modelValue", "update:model-value", Number, { 25822 initialValue: 1 25823 }) 25824 ], 25825 props: { 25826 tag: { 25827 type: String, 25828 default: "div" 25829 }, 25830 perPage: { 25831 type: Number, 25832 default: 20 25833 }, 25834 items: { 25835 type: Array, 25836 default: () => [] 25837 }, 25838 resetListOnItemChange: { 25839 type: Function, 25840 default: (e, t) => true 25841 }, 25842 preventFocus: { 25843 type: Boolean 25844 } 25845 }, 25846 computed: { 25847 numPages() { 25848 return Math.ceil(this.items.length / this.perPage); 25849 } 25850 }, 25851 watch: { 25852 items(e, t) { 25853 this.resetListOnItemChange(e, t) ? this.$modelValue = 1 : e && t && e.length < t.length && (this.$modelValue = this.numPages); 25854 }, 25855 $modelValue(e, t) { 25856 t && e && !this.preventFocus && this.focusTop(); 25857 } 25858 }, 25859 methods: { 25860 setPage(e) { 25861 e > this.numPages && (e = this.numPages), e > 0 && e <= this.numPages && (this.$modelValue = e); 25862 }, 25863 focusTop() { 25864 this.$nextTick(function() { 25865 Qi(this.$refs.focusTarget, { 25866 scroll: false 25867 }); 25868 }); 25869 } 25870 }, 25871 compatConfig: { 25872 MODE: 3 25873 } 25874 }, pF = [ 25875 "data-n-data-context" 25876 ]; 25877 function fF(e, t, n, i, a, r) { 25878 const s = j("FilteredList"), o = j("PaginationNav"); 25879 return m(), x("div", { 25880 "data-n-data-context": JSON.stringify({ 25881 pagination: { 25882 pageNumber: e.$modelValue, 25883 numberOfPages: r.numPages 25884 } 25885 }), 25886 class: "n-pagination", 25887 "data-n-context": "n-pagination" 25888 }, [ 25889 O("p", { 25890 ref: "focusTarget", 25891 class: "is-sr-only" 25892 }, H(e.$t("pagination.pageContext", [ 25893 e.$modelValue, 25894 r.numPages 25895 ])), 513), 25896 K(s, { 25897 list: n.items, 25898 filters: [ 25899 { 25900 value: e.$modelValue, 25901 options: n.perPage, 25902 match: "paginate" 25903 } 25904 ], 25905 tag: n.tag 25906 }, { 25907 default: I(({ filtered: l }) => [ 25908 V(e.$slots, "default", { 25909 filtered: l 25910 }) 25911 ]), 25912 _: 3 25913 }, 8, [ 25914 "list", 25915 "filters", 25916 "tag" 25917 ]), 25918 K(o, { 25919 modelValue: e.$modelValue, 25920 "onUpdate:modelValue": t[0] || (t[0] = (l) => e.$modelValue = l), 25921 "num-pages": r.numPages, 25922 onSetPage: t[1] || (t[1] = (l) => e.$emit("nav-set-page", l)) 25923 }, null, 8, [ 25924 "modelValue", 25925 "num-pages" 25926 ]) 25927 ], 8, pF); 25928 } 25929 let hF, gF; 25930 mF = te(dF, [ 25931 [ 25932 "render", 25933 fF 25934 ] 25935 ]); 25936 hF = { 25937 name: "n-date-time", 25938 mixins: [ 25939 Ge 25940 ], 25941 props: { 25942 datetime: { 25943 type: String 25944 }, 25945 format: { 25946 type: String, 25947 default: "date-and-time" 25948 }, 25949 tag: { 25950 type: String, 25951 default: "p" 25952 } 25953 }, 25954 computed: { 25955 formattedValue() { 25956 return wf(this.datetime, { 25957 format: this.format, 25958 locale: this.$i18n.locale, 25959 defaultNow: true 25960 }); 25961 } 25962 } 25963 }; 25964 gF = [ 25965 "datetime" 25966 ]; 25967 function bF(e, t, n, i, a, r) { 25968 return m(), U(ue(n.tag), { 25969 class: "n-date-time" 25970 }, {
25971 default: I(() => [ 25972 O("time", { 25973 ref: "dateTime", 25974 datetime: n.datetime, 25975 class: "n-date-time__time" 25976 }, [ 25977 V(e.$slots, "default", {}, () => [ 25978 re(H(r.formattedValue), 1) 25979 ]) 25980 ], 8, gF) 25981 ]), 25982 _: 3 25983 }); 25984 } 25985 let vF, yF, _F, EF, kF, CF, AF, SF, wF; 25986 Gs = te(hF, [ 25987 [ 25988 "render", 25989 bF 25990 ] 25991 ]); 25992 vF = { 25993 name: "n-resource-item", 25994 components: { 25995 Icon: Tt, 25996 NLink: at, 25997 DateTime: Gs, 25998 NPicture: jn 25999 }, 26000 mixins: [ 26001 ln 26002 ], 26003 inheritAttrs: false, 26004 props: { 26005 icon: { 26006 type: String 26007 }, 26008 thumbnail: { 26009 type: String 26010 }, 26011 orientation: { 26012 type: String, 26013 default: "landscape", 26014 validator: (e) => [ 26015 "landscape", 26016 "portrait" 26017 ].includes(e) 26018 }, 26019 mixedOrientations: { 26020 type: Boolean, 26021 default: false 26022 }, 26023 linkType: { 26024 type: String, 26025 default: null 26026 }, 26027 download: { 26028 type: [ 26029 Boolean, 26030 String 26031 ], 26032 default: void 0 26033 }, 26034 href: { 26035 type: String 26036 }, 26037 fileType: { 26038 type: String 26039 }, 26040 fileSize: { 26041 type: String 26042 }, 26043 title: { 26044 type: String 26045 }, 26046 description: { 26047 type: String 26048 }, 26049 noRules: { 26050 type: Boolean, 26051 default: false 26052 }, 26053 date: { 26054 type: String 26055 }, 26056 badges: { 26057 type: Array, 26058 default: () => [] 26059 }, 26060 clearSpacingAfter: { 26061 ...Se.clearSpacingAfter 26062 }, 26063 listPosition: { 26064 type: Number, 26065 default: 0 26066 } 26067 }, 26068 computed: { 26069 formattedBadges() { 26070 let e; 26071 return this.badges.length && typeof this.badges[0] == "string" ? e = this.badges.map((t) => ({ 26072 label: t, 26073 variant: "" 26074 })) : e = this.badges, e; 26075 }, 26076 hasThumbnail() { 26077 return !!this.thumbnail; 26078 }, 26079 $linkType() { 26080 return this.linkType ? this.linkType : this.fileType || this.fileSize ? "download" : !this.fileType && this.icon == "openNew" ? "external" : "default"; 26081 } 26082 } 26083 }; 26084 yF = [ 26085 "data-n-data-context" 26086 ]; 26087 _F = { 26088 key: 0, 26089 class: "n-resource-list__item-thumbnail-container" 26090 }; 26091 EF = { 26092 key: 1, 26093 class: "n-resource-list__item-icon-container" 26094 }; 26095 kF = { 26096 class: "n-resource-list__item-content-container" 26097 }; 26098 CF = { 26099 class: "is-clear-margin-top is-clear-margin-bottom n-resource-list__item-content-title" 26100 }; 26101 AF = { 26102 class: "n-resource-list__item-title" 26103 }; 26104 SF = { 26105 key: 0, 26106 class: "n-resource-list__badge-container n:gap-sm n:lg:gap-y-lg" 26107 }; 26108 wF = { 26109 key: 1, 26110 class: "n-resource-list__item-description is-clear-margin-bottom" 26111 }; 26112 function LF(e, t, n, i, a, r) { 26113 const s = j("NPicture"), o = j("Icon"), l = j("NLink"), u = j("DateTime"); 26114 return m(), x("div", { 26115 "data-n-data-context": JSON.stringify({ 26116 listItem: { 26117 listPosition: n.listPosition, 26118 title: n.title, 26119 fileType: n.fileType, 26120 date: n.date, 26121 fileSize: n.fileSize, 26122 linkType: r.$linkType 26123 } 26124 }), 26125 class: R([ 26126 "n-resource-item n-resource-list__item row no-break-print", 26127 { 26128 "has-thumbnail": r.hasThumbnail, 26129 "is-dividing-line-end": !n.noRules 26130 } 26131 ]) 26132 }, [ 26133 K(l, { 26134 href: n.href, 26135 download: n.download ? "download" : void 0, 26136 decoration: true, 26137 class: "h4 n-resource-list__item-link n:my-0", 26138 tabindex: "-1", 26139 icon: "" 26140 }, { 26141 default: I(() => [ 26142 r.hasThumbnail ? (m(), x("div", _F, [ 26143 K(s, { 26144 class: R([ 26145 n.orientation === "portrait" ? "n-resource-list__item-thumbnail-portrait" : "n-resource-list__item-thumbnail-landscape", 26146 { 26147 "is-mixed-orientation": n.mixedOrientations && n.orientation === "portrait" 26148 } 26149 ]), 26150 src: n.thumbnail, 26151 alt: n.title + " thumbnail" 26152 }, null, 8, [ 26153 "class", 26154 "src", 26155 "alt" 26156 ]) 26157 ])) : r.$linkType === "external" || n.icon ? (m(), x("div", EF, [ 26158 K(o, { 26159 icon: r.$linkType === "external" ? "open-new" : n.icon, 26160 class: "n-resource-list__item-icon" 26161 }, null, 8, [ 26162 "icon" 26163 ]) 26164 ])) : M("", true) 26165 ]), 26166 _: 1 26167 }, 8, [ 26168 "href", 26169 "download" 26170 ]), 26171 O("div", kF, [ 26172 O("div", CF, [ 26173 K(l, { 26174 href: n.href, 26175 download: n.download ? "download" : void 0, 26176 "link-type": r.$linkType, 26177 icon: null, 26178 "file-ext": n.fileType, 26179 "file-size": n.fileSize, 26180 class: "h4 n-resource-list__item-link n:my-0" 26181 }, { 26182 default: I(() => [ 26183 O("span", AF, H(n.title), 1) 26184 ]), 26185 _: 1 26186 }, 8, [ 26187 "href", 26188 "download", 26189 "link-type", 26190 "file-ext", 26191 "file-size" 26192 ]), 26193 n.date ? (m(), U(u, { 26194 key: 0, 26195 datetime: n.date, 26196 format: "date-only", 26197 class: "is-clear-margin-top is-clear-margin-bottom n-resource-list__item-date-container is-right-aligned is-hidden-sm-down" 26198 }, null, 8, [ 26199 "datetime" 26200 ])) : M("", true) 26201 ]), 26202 r.formattedBadges && r.formattedBadges.length ? (m(), x("ul", SF, [ 26203 (m(true), x(me, null, ve(r.formattedBadges, (c) => (m(), x("li", { 26204 key: c.label, 26205 class: "n:m-0" 26206 }, [ 26207 O("span", { 26208 class: R([ 26209 [ 26210 c.variant ? `n-badge--${c.variant}` : "" 26211 ], 26212 "n-badge n-resource-list__badge n:m-0" 26213 ]) 26214 }, H(c.label), 3) 26215 ]))), 128)) 26216 ])) : M("", true), 26217 n.description ? (m(), x("p", wF, H(n.description), 1)) : M("", true), 26218 n.date ? (m(), U(u, { 26219 key: 2, 26220 datetime: n.date, 26221 format: "date-only", 26222 class: "is-clear-margin-bottom n-resource-list__item-date-container-footer is-hidden-md-up" 26223 }, null, 8, [ 26224 "datetime" 26225 ])) : M("", true), 26226 V(e.$slots, "footer") 26227 ]) 26228 ], 10, yF); 26229 } 26230 const xF = te(vF, [ 26231 [ 26232 "render", 26233 LF 26234 ] 26235 ]), OF = { 26236 name: "n-resource-list", 26237 components: { 26238 Block: ft, 26239 Icon: Tt, 26240 NLink: at, 26241 ResourceItem: xF 26242 }, 26243 props: { 26244 ...we, 26245 listItems: { 26246 type: Array, 26247 required: true 26248 }, 26249 noRules: { 26250 type: Boolean, 26251 default: false 26252 }, 26253 clearSpacingAfter: { 26254 ...Se.clearSpacingAfter 26255 } 26256 }, 26257 computed: { 26258 mixedThumbnailOrientations() { 26259 const e = /* @__PURE__ */ new Set(); 26260 for (const t of this.listItems) if (t.thumbnail && t.orientation && e.add(t.orientation), e.size > 1) return true; 26261 return false;
26262 } 26263 } 26264 }, $F = { 26265 class: "n-resource-list__container col" 26266 }; 26267 function TF(e, t, n, i, a, r) { 26268 const s = j("ResourceItem"), o = j("Block"); 26269 return m(), U(o, { 26270 class: R([ 26271 [ 26272 { 26273 "n-resource-list--no-rules": n.noRules 26274 }, 26275 { 26276 "is-clear-margin-bottom": n.clearSpacingAfter 26277 } 26278 ], 26279 "n-resource-list is-bg-color-white" 26280 ]), 26281 "container-size": "compressed" 26282 }, { 26283 default: I(() => [ 26284 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 26285 key: 0, 26286 class: R([ 26287 e.titleStyle, 26288 "n-content-block__heading" 26289 ]), 26290 innerHTML: e.title 26291 }, null, 8, [ 26292 "class", 26293 "innerHTML" 26294 ])) : M("", true), 26295 V(e.$slots, "default"), 26296 O("ul", $F, [ 26297 (m(true), x(me, null, ve(n.listItems, (l, u) => (m(), x("li", { 26298 key: `list-item-${u}`, 26299 class: "n-resource-list__item-container" 26300 }, [ 26301 K(s, fe({ 26302 ref_for: true 26303 }, l, { 26304 "no-rules": n.noRules, 26305 "list-position": u + 1, 26306 "mixed-orientations": r.mixedThumbnailOrientations, 26307 class: "n-resource-list__item row no-break-print" 26308 }), { 26309 footer: I(() => [ 26310 V(e.$slots, "footer", { 26311 item: l 26312 }) 26313 ]), 26314 _: 2 26315 }, 1040, [ 26316 "no-rules", 26317 "list-position", 26318 "mixed-orientations" 26319 ]) 26320 ]))), 128)) 26321 ]) 26322 ]), 26323 _: 3 26324 }, 8, [ 26325 "class" 26326 ]); 26327 } 26328 IF = te(OF, [ 26329 [ 26330 "render", 26331 TF 26332 ] 26333 ]); 26334 function Wn(e) { 26335 return Array.isArray ? Array.isArray(e) : mg(e) === "[object Array]"; 26336 } 26337 function FF(e) { 26338 if (typeof e == "string") return e; 26339 let t = e + ""; 26340 return t == "0" && 1 / e == -1 / 0 ? "-0" : t; 26341 } 26342 function NF(e) { 26343 return e == null ? "" : FF(e); 26344 } 26345 function Sn(e) { 26346 return typeof e == "string"; 26347 } 26348 function pg(e) { 26349 return typeof e == "number"; 26350 } 26351 function DF(e) { 26352 return e === true || e === false || PF(e) && mg(e) == "[object Boolean]"; 26353 } 26354 function fg(e) { 26355 return typeof e == "object"; 26356 } 26357 function PF(e) { 26358 return fg(e) && e !== null; 26359 } 26360 function Jt(e) { 26361 return e != null; 26362 } 26363 function Co(e) { 26364 return !e.trim().length; 26365 } 26366 function mg(e) { 26367 return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e); 26368 } 26369 const BF = "Incorrect 'index' type", MF = (e) => `Invalid value for key ${e}`, RF = (e) => `Pattern length exceeds max of ${e}.`, UF = (e) => `Missing ${e} property in key`, VF = (e) => `Property 'weight' in key '${e}' must be a positive integer`, pp = Object.prototype.hasOwnProperty; 26370 class HF { 26371 constructor(t) { 26372 this._keys = [], this._keyMap = {}; 26373 let n = 0; 26374 t.forEach((i) => { 26375 let a = hg(i); 26376 n += a.weight, this._keys.push(a), this._keyMap[a.id] = a, n += a.weight; 26377 }), this._keys.forEach((i) => { 26378 i.weight /= n; 26379 }); 26380 } 26381 get(t) { 26382 return this._keyMap[t]; 26383 } 26384 keys() { 26385 return this._keys; 26386 } 26387 toJSON() { 26388 return JSON.stringify(this._keys); 26389 } 26390 } 26391 function hg(e) { 26392 let t = null, n = null, i = null, a = 1, r = null; 26393 if (Sn(e) || Wn(e)) i = e, t = fp(e), n = cl(e); 26394 else { 26395 if (!pp.call(e, "name")) throw new Error(UF("name")); 26396 const s = e.name; 26397 if (i = s, pp.call(e, "weight") && (a = e.weight, a <= 0)) throw new Error(VF(s)); 26398 t = fp(s), n = cl(s), r = e.getFn; 26399 } 26400 return { 26401 path: t, 26402 id: n, 26403 weight: a, 26404 src: i, 26405 getFn: r 26406 }; 26407 } 26408 function fp(e) { 26409 return Wn(e) ? e : e.split("."); 26410 } 26411 function cl(e) { 26412 return Wn(e) ? e.join(".") : e; 26413 } 26414 function jF(e, t) { 26415 let n = [], i = false; 26416 const a = (r, s, o) => { 26417 if (Jt(r)) if (!s[o]) n.push(r); 26418 else { 26419 let l = s[o]; 26420 const u = r[l]; 26421 if (!Jt(u)) return; 26422 if (o === s.length - 1 && (Sn(u) || pg(u) || DF(u))) n.push(NF(u)); 26423 else if (Wn(u)) { 26424 i = true; 26425 for (let c = 0, d = u.length; c < d; c += 1) a(u[c], s, o + 1); 26426 } else s.length && a(u, s, o + 1); 26427 } 26428 }; 26429 return a(e, Sn(t) ? t.split(".") : t, 0), i ? n : n[0]; 26430 } 26431 const zF = { 26432 includeMatches: false, 26433 findAllMatches: false, 26434 minMatchCharLength: 1 26435 }, WF = { 26436 isCaseSensitive: false, 26437 includeScore: false, 26438 keys: [], 26439 shouldSort: true, 26440 sortFn: (e, t) => e.score === t.score ? e.idx < t.idx ? -1 : 1 : e.score < t.score ? -1 : 1 26441 }, GF = { 26442 location: 0, 26443 threshold: 0.6, 26444 distance: 100 26445 }, qF = { 26446 useExtendedSearch: false, 26447 getFn: jF, 26448 ignoreLocation: false, 26449 ignoreFieldNorm: false, 26450 fieldNormWeight: 1 26451 }; 26452 var Ne = { 26453 ...WF, 26454 ...zF, 26455 ...GF, 26456 ...qF 26457 }; 26458 const YF = /[^ ]+/g; 26459 function KF(e = 1, t = 3) { 26460 const n = /* @__PURE__ */ new Map(), i = Math.pow(10, t); 26461 return { 26462 get(a) { 26463 const r = a.match(YF).length; 26464 if (n.has(r)) return n.get(r); 26465 const s = 1 / Math.pow(r, 0.5 * e), o = parseFloat(Math.round(s * i) / i); 26466 return n.set(r, o), o; 26467 }, 26468 clear() { 26469 n.clear(); 26470 } 26471 }; 26472 } 26473 class Su { 26474 constructor({ getFn: t = Ne.getFn, fieldNormWeight: n = Ne.fieldNormWeight } = {}) { 26475 this.norm = KF(n, 3), this.getFn = t, this.isCreated = false, this.setIndexRecords(); 26476 } 26477 setSources(t = []) {
26478 this.docs = t; 26479 } 26480 setIndexRecords(t = []) { 26481 this.records = t; 26482 } 26483 setKeys(t = []) { 26484 this.keys = t, this._keysMap = {}, t.forEach((n, i) => { 26485 this._keysMap[n.id] = i; 26486 }); 26487 } 26488 create() { 26489 this.isCreated || !this.docs.length || (this.isCreated = true, Sn(this.docs[0]) ? this.docs.forEach((t, n) => { 26490 this._addString(t, n); 26491 }) : this.docs.forEach((t, n) => { 26492 this._addObject(t, n); 26493 }), this.norm.clear()); 26494 } 26495 add(t) { 26496 const n = this.size(); 26497 Sn(t) ? this._addString(t, n) : this._addObject(t, n); 26498 } 26499 removeAt(t) { 26500 this.records.splice(t, 1); 26501 for (let n = t, i = this.size(); n < i; n += 1) this.records[n].i -= 1; 26502 } 26503 getValueForItemAtKeyId(t, n) { 26504 return t[this._keysMap[n]]; 26505 } 26506 size() { 26507 return this.records.length; 26508 } 26509 _addString(t, n) { 26510 if (!Jt(t) || Co(t)) return; 26511 let i = { 26512 v: t, 26513 i: n, 26514 n: this.norm.get(t) 26515 }; 26516 this.records.push(i); 26517 } 26518 _addObject(t, n) { 26519 let i = { 26520 i: n, 26521 $: {} 26522 }; 26523 this.keys.forEach((a, r) => { 26524 let s = a.getFn ? a.getFn(t) : this.getFn(t, a.path); 26525 if (Jt(s)) { 26526 if (Wn(s)) { 26527 let o = []; 26528 const l = [ 26529 { 26530 nestedArrIndex: -1, 26531 value: s 26532 } 26533 ]; 26534 for (; l.length; ) { 26535 const { nestedArrIndex: u, value: c } = l.pop(); 26536 if (Jt(c)) if (Sn(c) && !Co(c)) { 26537 let d = { 26538 v: c, 26539 i: u, 26540 n: this.norm.get(c) 26541 }; 26542 o.push(d); 26543 } else Wn(c) && c.forEach((d, p) => { 26544 l.push({ 26545 nestedArrIndex: p, 26546 value: d 26547 }); 26548 }); 26549 } 26550 i.$[r] = o; 26551 } else if (Sn(s) && !Co(s)) { 26552 let o = { 26553 v: s, 26554 n: this.norm.get(s) 26555 }; 26556 i.$[r] = o; 26557 } 26558 } 26559 }), this.records.push(i); 26560 } 26561 toJSON() { 26562 return { 26563 keys: this.keys, 26564 records: this.records 26565 }; 26566 } 26567 } 26568 function gg(e, t, { getFn: n = Ne.getFn, fieldNormWeight: i = Ne.fieldNormWeight } = {}) { 26569 const a = new Su({ 26570 getFn: n, 26571 fieldNormWeight: i 26572 }); 26573 return a.setKeys(e.map(hg)), a.setSources(t), a.create(), a; 26574 } 26575 function XF(e, { getFn: t = Ne.getFn, fieldNormWeight: n = Ne.fieldNormWeight } = {}) { 26576 const { keys: i, records: a } = e, r = new Su({ 26577 getFn: t, 26578 fieldNormWeight: n 26579 }); 26580 return r.setKeys(i), r.setIndexRecords(a), r; 26581 } 26582 function Ta(e, { errors: t = 0, currentLocation: n = 0, expectedLocation: i = 0, distance: a = Ne.distance, ignoreLocation: r = Ne.ignoreLocation } = {}) { 26583 const s = t / e.length; 26584 if (r) return s; 26585 const o = Math.abs(i - n); 26586 return a ? s + o / a : o ? 1 : s; 26587 } 26588 function JF(e = [], t = Ne.minMatchCharLength) { 26589 let n = [], i = -1, a = -1, r = 0; 26590 for (let s = e.length; r < s; r += 1) { 26591 let o = e[r]; 26592 o && i === -1 ? i = r : !o && i !== -1 && (a = r - 1, a - i + 1 >= t && n.push([ 26593 i, 26594 a 26595 ]), i = -1); 26596 } 26597 return e[r - 1] && r - i >= t && n.push([ 26598 i, 26599 r - 1 26600 ]), n; 26601 } 26602 const Tr = 32; 26603 function QF(e, t, n, { location: i = Ne.location, distance: a = Ne.distance, threshold: r = Ne.threshold, findAllMatches: s = Ne.findAllMatches, minMatchCharLength: o = Ne.minMatchCharLength, includeMatches: l = Ne.includeMatches, ignoreLocation: u = Ne.ignoreLocation } = {}) { 26604 if (t.length > Tr) throw new Error(RF(Tr)); 26605 const c = t.length, d = e.length, p = Math.max(0, Math.min(i, d)); 26606 let b = r, h = p; 26607 const _ = o > 1 || l, C = _ ? Array(d) : []; 26608 let D; 26609 for (; (D = e.indexOf(t, h)) > -1; ) { 26610 let A = Ta(t, { 26611 currentLocation: D, 26612 expectedLocation: p, 26613 distance: a, 26614 ignoreLocation: u 26615 }); 26616 if (b = Math.min(A, b), h = D + c, _) { 26617 let L = 0; 26618 for (; L < c; ) C[D + L] = 1, L += 1; 26619 } 26620 } 26621 h = -1; 26622 let N = [], v = 1, y = c + d; 26623 const E = 1 << c - 1; 26624 for (let A = 0; A < c; A += 1) { 26625 let L = 0, w = y; 26626 for (; L < w; ) Ta(t, { 26627 errors: A, 26628 currentLocation: p + w, 26629 expectedLocation: p, 26630 distance: a, 26631 ignoreLocation: u 26632 }
26632) <= b ? L = w : y = w, w = Math.floor((y - L) / 2 + L); 26633 y = w; 26634 let z = Math.max(1, p - w + 1), T = s ? d : Math.min(p + w, d) + c, P = Array(T + 2); 26635 P[T + 1] = (1 << A) - 1; 26636 for (let G = T; G >= z; G -= 1) { 26637 let X = G - 1, Y = n[e.charAt(X)]; 26638 if (_ && (C[X] = +!!Y), P[G] = (P[G + 1] << 1 | 1) & Y, A && (P[G] |= (N[G + 1] | N[G]) << 1 | 1 | N[G + 1]), P[G] & E && (v = Ta(t, { 26639 errors: A, 26640 currentLocation: X, 26641 expectedLocation: p, 26642 distance: a, 26643 ignoreLocation: u 26644 }), v <= b)) { 26645 if (b = v, h = X, h <= p) break; 26646 z = Math.max(1, 2 * p - h); 26647 } 26648 } 26649 if (Ta(t, { 26650 errors: A + 1, 26651 currentLocation: p, 26652 expectedLocation: p, 26653 distance: a, 26654 ignoreLocation: u 26655 }) > b) break; 26656 N = P; 26657 } 26658 const k = { 26659 isMatch: h >= 0, 26660 score: Math.max(1e-3, v) 26661 }; 26662 if (_) { 26663 const A = JF(C, o); 26664 A.length ? l && (k.indices = A) : k.isMatch = false; 26665 } 26666 return k; 26667 } 26668 function ZF(e) { 26669 let t = {}; 26670 for (let n = 0, i = e.length; n < i; n += 1) { 26671 const a = e.charAt(n); 26672 t[a] = (t[a] || 0) | 1 << i - n - 1; 26673 } 26674 return t; 26675 } 26676 class bg { 26677 constructor(t, { location: n = Ne.location, threshold: i = Ne.threshold, distance: a = Ne.distance, includeMatches: r = Ne.includeMatches, findAllMatches: s = Ne.findAllMatches, minMatchCharLength: o = Ne.minMatchCharLength, isCaseSensitive: l = Ne.isCaseSensitive, ignoreLocation: u = Ne.ignoreLocation } = {}) { 26678 if (this.options = { 26679 location: n, 26680 threshold: i, 26681 distance: a, 26682 includeMatches: r, 26683 findAllMatches: s, 26684 minMatchCharLength: o, 26685 isCaseSensitive: l, 26686 ignoreLocation: u 26687 }, this.pattern = l ? t : t.toLowerCase(), this.chunks = [], !this.pattern.length) return; 26688 const c = (p, b) => { 26689 this.chunks.push({ 26690 pattern: p, 26691 alphabet: ZF(p), 26692 startIndex: b 26693 }); 26694 }, d = this.pattern.length; 26695 if (d > Tr) { 26696 let p = 0; 26697 const b = d % Tr, h = d - b; 26698 for (; p < h; ) c(this.pattern.substr(p, Tr), p), p += Tr; 26699 if (b) { 26700 const _ = d - Tr; 26701 c(this.pattern.substr(_), _); 26702 } 26703 } else c(this.pattern, 0); 26704 } 26705 searchIn(t) { 26706 const { isCaseSensitive: n, includeMatches: i } = this.options; 26707 if (n || (t = t.toLowerCase()), this.pattern === t) { 26708 let h = { 26709 isMatch: true, 26710 score: 0 26711 }; 26712 return i && (h.indices = [ 26713 [ 26714 0, 26715 t.length - 1 26716 ] 26717 ]), h; 26718 } 26719 const { location: a, distance: r, threshold: s, findAllMatches: o, minMatchCharLength: l, ignoreLocation: u } = this.options; 26720 let c = [], d = 0, p = false; 26721 this.chunks.forEach(({ pattern: h, alphabet: _, startIndex: C }) => { 26722 const { isMatch: D, score: N, indices: v } = QF(t, h, _, { 26723 location: a + C, 26724 distance: r, 26725 threshold: s, 26726 findAllMatches: o, 26727 minMatchCharLength: l, 26728 includeMatches: i, 26729 ignoreLocation: u 26730 }); 26731 D && (p = true), d += N, D && v && (c = [ 26732 ...c, 26733 ...v 26734 ]); 26735 }); 26736 let b = { 26737 isMatch: p, 26738 score: p ? d / this.chunks.length : 1 26739 }; 26740 return p && i && (b.indices = c), b; 26741 } 26742 } 26743 class vr { 26744 constructor(t) { 26745 this.pattern = t; 26746 } 26747 static isMultiMatch(t) { 26748 return mp(t, this.multiRegex); 26749 } 26750 static isSingleMatch(t) { 26751 return mp(t, this.singleRegex); 26752 } 26753 search() { 26754 } 26755 } 26756 function mp(e, t) { 26757 const n = e.match(t); 26758 return n ? n[1] : null; 26759 } 26760 class eN extends vr { 26761 constructor(t) { 26762 super(t); 26763 } 26764 static get type() { 26765 return "exact"; 26766 } 26767 static get multiRegex() { 26768 return /^="(.*)"$/; 26769 } 26770 static get singleRegex() { 26771 return /^=(.*)$/; 26772 } 26773 search(t) { 26774 const n = t === this.pattern; 26775 return { 26776 isMatch: n, 26777 score: n ? 0 : 1, 26778 indices: [ 26779 0, 26780 this.pattern.length - 1 26781 ] 26782 }; 26783 } 26784 } 26785 class tN extends vr { 26786 constructor(t) { 26787 super(t); 26788 } 26789 static get type() { 26790 return "inverse-exact"; 26791 } 26792 static get multiRegex() { 26793 return /^!"(.*)"$/; 26794 } 26795 static get singleRegex() { 26796 return /^!(.*)$/; 26797 } 26798 search(t) { 26799 const n = t.indexOf(this.pattern) === -1; 26800 return { 26801 isMatch: n, 26802 score: n ? 0 : 1, 26803 indices: [ 26804 0, 26805 t.length - 1 26806 ] 26807 }; 26808 } 26809 } 26810 class nN extends vr { 26811 constructor(t) { 26812 super(t); 26813 } 26814 static get type() { 26815 return "prefix-exact"; 26816 } 26817 static get multiRegex() { 26818 return /^\^"(.*)"$/; 26819 } 26820 static get singleRegex() { 26821 return /^\^(.*)$/; 26822 } 26823 search(t) { 26824 const n = t.startsWith(this.pattern); 26825 return { 26826 isMatch: n, 26827 score: n ? 0 : 1, 26828 indices: [ 26829 0, 26830 this.pattern.length - 1 26831 ] 26832 }; 26833 } 26834 } 26835 class rN extends vr { 26836 constructor(t) { 26837 super(t); 26838 } 26839 static get type() { 26840 return "inverse-prefix-exact"; 26841 } 26842 static get multiRegex() { 26843 return /^!\^"(.*)"$/; 26844 } 26845 static get singleRegex() { 26846 return /^!\^(.*)$/; 26847 } 26848 search(t) { 26849 const n = !t.startsWith(this.pattern); 26850 return { 26851 isMatch: n, 26852 score: n ? 0 : 1, 26853 indices: [ 26854 0, 26855 t.length - 1 26856 ] 26857 }; 26858 } 26859 } 26860 class iN extends vr { 26861 constructor(t) { 26862 super(t); 26863 } 26864 static get type() { 26865 return "suffix-exact"; 26866 } 26867 static get multiRegex() { 26868 return /^"(.*)"\$$/; 26869 } 26870 static get singleRegex() { 26871 return /^(.*)\$$/; 26872 } 26873 search(t) { 26874 const n = t.endsWith(this.pattern); 26875 return { 26876 isMatch: n, 26877 score: n ? 0 : 1, 26878 indices: [ 26879 t.length - this.pattern.length, 26880 t.length - 1 26881 ] 26882 }; 26883 } 26884 } 26885 class aN extends vr { 26886 constructor(t) { 26887 super(t); 26888 } 26889 static get type() { 26890 return "inverse-suffix-exact"; 26891 } 26892 static get multiRegex() { 26893 return /^!"(.*)"\$$/; 26894 } 26895 static get singleRegex() { 26896 return /^!(.*)\$$/; 26897 } 26898 search(t) { 26899 const n = !t.endsWith(this.pattern); 26900 return { 26901 isMatch: n, 26902 score: n ? 0 : 1, 26903 indices: [ 26904 0, 26905 t.length - 1 26906 ] 26907 }; 26908 } 26909 } 26910 class vg extends vr { 26911 constructor(t, { location: n = Ne.location, threshold: i = Ne.threshold, distance: a = Ne.distance, includeMatches: r = Ne.includeMatches, findAllMatches: s = Ne.findAllMatches, minMatchCharLength: o = Ne.minMatchCharLength, isCaseSensitive: l = Ne.isCaseSensitive, ignoreLocation: u = Ne.ignoreLocation } = {}) { 26912 super(t), this._bitapSearch = new bg(t, { 26913 location: n, 26914 threshold: i, 26915 distance: a, 26916 includeMatches: r, 26917 findAllMatches: s, 26918 minMatchCharLength: o, 26919 isCaseSensitive: l, 26920 ignoreLocation: u 26921 }); 26922 } 26923 static get type() { 26924 return "fuzzy"; 26925 } 26926 static get multiRegex() { 26927 return /^"(.*)"$/; 26928 } 26929 static get singleRegex() { 26930 return /^(.*)$/; 26931 } 26932 search(t) { 26933 return this._bitapSearch.searchIn(t); 26934 } 26935 } 26936 class yg extends vr { 26937 constructor(t) { 26938 super(t); 26939 } 26940 static get type() { 26941 return "include"; 26942 } 26943 static get multiRegex() { 26944 return /^'"(.*)"$/; 26945 } 26946 static get singleRegex() { 26947 return /^'(.*)$/; 26948 } 26949 search(t) { 26950 let n = 0, i; 26951 const a = [], r = this.pattern.length; 26952 for (;
26952 (i = t.indexOf(this.pattern, n)) > -1; ) n = i + r, a.push([ 26953 i, 26954 n - 1 26955 ]); 26956 const s = !!a.length; 26957 return { 26958 isMatch: s, 26959 score: s ? 0 : 1, 26960 indices: a 26961 }; 26962 } 26963 } 26964 const dl = [ 26965 eN, 26966 yg, 26967 nN, 26968 rN, 26969 aN, 26970 iN, 26971 tN, 26972 vg 26973 ], hp = dl.length, sN = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, oN = "|"; 26974 function lN(e, t = {}) { 26975 return e.split(oN).map((n) => { 26976 let i = n.trim().split(sN).filter((r) => r && !!r.trim()), a = []; 26977 for (let r = 0, s = i.length; r < s; r += 1) { 26978 const o = i[r]; 26979 let l = false, u = -1; 26980 for (; !l && ++u < hp; ) { 26981 const c = dl[u]; 26982 let d = c.isMultiMatch(o); 26983 d && (a.push(new c(d, t)), l = true); 26984 } 26985 if (!l) for (u = -1; ++u < hp; ) { 26986 const c = dl[u]; 26987 let d = c.isSingleMatch(o); 26988 if (d) { 26989 a.push(new c(d, t)); 26990 break; 26991 } 26992 } 26993 } 26994 return a; 26995 }); 26996 } 26997 const uN = /* @__PURE__ */ new Set([ 26998 vg.type, 26999 yg.type 27000 ]); 27001 class cN { 27002 constructor(t, { isCaseSensitive: n = Ne.isCaseSensitive, includeMatches: i = Ne.includeMatches, minMatchCharLength: a = Ne.minMatchCharLength, ignoreLocation: r = Ne.ignoreLocation, findAllMatches: s = Ne.findAllMatches, location: o = Ne.location, threshold: l = Ne.threshold, distance: u = Ne.distance } = {}) { 27003 this.query = null, this.options = { 27004 isCaseSensitive: n, 27005 includeMatches: i, 27006 minMatchCharLength: a, 27007 findAllMatches: s, 27008 ignoreLocation: r, 27009 location: o, 27010 threshold: l, 27011 distance: u 27012 }, this.pattern = n ? t : t.toLowerCase(), this.query = lN(this.pattern, this.options); 27013 } 27014 static condition(t, n) { 27015 return n.useExtendedSearch; 27016 } 27017 searchIn(t) { 27018 const n = this.query; 27019 if (!n) return { 27020 isMatch: false, 27021 score: 1 27022 }; 27023 const { includeMatches: i, isCaseSensitive: a } = this.options; 27024 t = a ? t : t.toLowerCase(); 27025 let r = 0, s = [], o = 0; 27026 for (let l = 0, u = n.length; l < u; l += 1) { 27027 const c = n[l]; 27028 s.length = 0, r = 0; 27029 for (let d = 0, p = c.length; d < p; d += 1) { 27030 const b = c[d], { isMatch: h, indices: _, score: C } = b.search(t); 27031 if (h) { 27032 if (r += 1, o += C, i) { 27033 const D = b.constructor.type; 27034 uN.has(D) ? s = [ 27035 ...s, 27036 ..._
27037 ] : s.push(_); 27038 } 27039 } else { 27040 o = 0, r = 0, s.length = 0; 27041 break; 27042 } 27043 } 27044 if (r) { 27045 let d = { 27046 isMatch: true, 27047 score: o / r 27048 }; 27049 return i && (d.indices = s), d; 27050 } 27051 } 27052 return { 27053 isMatch: false, 27054 score: 1 27055 }; 27056 } 27057 } 27058 const pl = []; 27059 function dN(...e) { 27060 pl.push(...e); 27061 } 27062 function fl(e, t) { 27063 for (let n = 0, i = pl.length; n < i; n += 1) { 27064 let a = pl[n]; 27065 if (a.condition(e, t)) return new a(e, t); 27066 } 27067 return new bg(e, t); 27068 } 27069 const ds = { 27070 AND: "$and", 27071 OR: "$or" 27072 }, ml = { 27073 PATH: "$path", 27074 PATTERN: "$val" 27075 }, hl = (e) => !!(e[ds.AND] || e[ds.OR]), pN = (e) => !!e[ml.PATH], fN = (e) => !Wn(e) && fg(e) && !hl(e), gp = (e) => ({ 27076 [ds.AND]: Object.keys(e).map((t) => ({ 27077 [t]: e[t] 27078 })) 27079 }); 27080 function _g(e, t, { auto: n = true } = {}) { 27081 const i = (a) => { 27082 let r = Object.keys(a); 27083 const s = pN(a); 27084 if (!s && r.length > 1 && !hl(a)) return i(gp(a)); 27085 if (fN(a)) { 27086 const l = s ? a[ml.PATH] : r[0], u = s ? a[ml.PATTERN] : a[l]; 27087 if (!Sn(u)) throw new Error(MF(l)); 27088 const c = { 27089 keyId: cl(l), 27090 pattern: u 27091 }; 27092 return n && (c.searcher = fl(u, t)), c; 27093 } 27094 let o = { 27095 children: [], 27096 operator: r[0] 27097 }; 27098 return r.forEach((l) => { 27099 const u = a[l]; 27100 Wn(u) && u.forEach((c) => { 27101 o.children.push(i(c)); 27102 }); 27103 }), o; 27104 }; 27105 return hl(e) || (e = gp(e)), i(e); 27106 } 27107 function mN(e, { ignoreFieldNorm: t = Ne.ignoreFieldNorm }) { 27108 e.forEach((n) => { 27109 let i = 1; 27110 n.matches.forEach(({ key: a, norm: r, score: s }) => { 27111 const o = a ? a.weight : null; 27112 i *= Math.pow(s === 0 && o ? Number.EPSILON : s, (o || 1) * (t ? 1 : r)); 27113 }), n.score = i; 27114 }); 27115 } 27116 function hN(e, t) { 27117 const n = e.matches; 27118 t.matches = [], Jt(n) && n.forEach((i) => { 27119 if (!Jt(i.indices) || !i.indices.length) return; 27120 const { indices: a, value: r } = i; 27121 let s = { 27122 indices: a, 27123 value: r 27124 }; 27125 i.key && (s.key = i.key.src), i.idx > -1 && (s.refIndex = i.idx), t.matches.push(s); 27126 }); 27127 } 27128 function gN(e, t) { 27129 t.score = e.score; 27130 } 27131 function bN(e, t, { includeMatches: n = Ne.includeMatches, includeScore: i = Ne.includeScore } = {}) { 27132 const a = []; 27133 return n && a.push(hN), i && a.push(gN), e.map((r) => { 27134 const { idx: s } = r, o = { 27135 item: t[s], 27136 refIndex: s 27137 }; 27138 return a.length && a.forEach((l) => { 27139 l(r, o); 27140 }), o; 27141 }); 27142 } 27143 class Oi { 27144 constructor(t, n = {}, i) { 27145 this.options = { 27146 ...Ne, 27147 ...n 27148 }, this.options.useExtendedSearch, this._keyStore = new HF(this.options.keys), this.setCollection(t, i); 27149 } 27150 setCollection(t, n) { 27151 if (this._docs = t, n && !(n instanceof Su)) throw new Error(BF); 27152 this._myIndex = n || gg(this.options.keys, this._docs, { 27153 getFn: this.options.getFn, 27154 fieldNormWeight: this.options.fieldNormWeight 27155 }); 27156 } 27157 add(t) { 27158 Jt(t) && (this._docs.push(t), this._myIndex.add(t)); 27159 } 27160 remove(t = () => false) { 27161 const n = []; 27162 for (let i = 0, a = this._docs.length; i < a; i += 1) { 27163 const r = this._docs[i]; 27164 t(r, i) && (this.removeAt(i), i -= 1, a -= 1, n.push(r)); 27165 } 27166 return n; 27167 } 27168 removeAt(t) { 27169 this._docs.splice(t, 1), this._myIndex.removeAt(t); 27170 } 27171 getIndex() { 27172 return this._myIndex; 27173 } 27174 search(t, { limit: n = -1 } = {}) { 27175 const { includeMatches: i, includeScore: a, shouldSort: r, sortFn: s, ignoreFieldNorm: o } = this.options;
27176 let l = Sn(t) ? Sn(this._docs[0]) ? this._searchStringList(t) : this._searchObjectList(t) : this._searchLogical(t); 27177 return mN(l, { 27178 ignoreFieldNorm: o 27179 }), r && l.sort(s), pg(n) && n > -1 && (l = l.slice(0, n)), bN(l, this._docs, { 27180 includeMatches: i, 27181 includeScore: a 27182 }); 27183 } 27184 _searchStringList(t) { 27185 const n = fl(t, this.options), { records: i } = this._myIndex, a = []; 27186 return i.forEach(({ v: r, i: s, n: o }) => { 27187 if (!Jt(r)) return; 27188 const { isMatch: l, score: u, indices: c } = n.searchIn(r); 27189 l && a.push({ 27190 item: r, 27191 idx: s, 27192 matches: [ 27193 { 27194 score: u, 27195 value: r, 27196 norm: o, 27197 indices: c 27198 } 27199 ] 27200 }); 27201 }), a; 27202 } 27203 _searchLogical(t) { 27204 const n = _g(t, this.options), i = (o, l, u) => { 27205 if (!o.children) { 27206 const { keyId: d, searcher: p } = o, b = this._findMatches({ 27207 key: this._keyStore.get(d), 27208 value: this._myIndex.getValueForItemAtKeyId(l, d), 27209 searcher: p 27210 }); 27211 return b && b.length ? [ 27212 { 27213 idx: u, 27214 item: l, 27215 matches: b 27216 } 27217 ] : []; 27218 } 27219 const c = []; 27220 for (let d = 0, p = o.children.length; d < p; d += 1) { 27221 const b = o.children[d], h = i(b, l, u); 27222 if (h.length) c.push(...h); 27223 else if (o.operator === ds.AND) return []; 27224 } 27225 return c; 27226 }, a = this._myIndex.records, r = {}, s = []; 27227 return a.forEach(({ $: o, i: l }) => { 27228 if (Jt(o)) { 27229 let u = i(n, o, l); 27230 u.length && (r[l] || (r[l] = { 27231 idx: l, 27232 item: o, 27233 matches: [] 27234 }, s.push(r[l])), u.forEach(({ matches: c }) => { 27235 r[l].matches.push(...c); 27236 })); 27237 } 27238 }), s; 27239 } 27240 _searchObjectList(t) { 27241 const n = fl(t, this.options), { keys: i, records: a } = this._myIndex, r = []; 27242 return a.forEach(({ $: s, i: o }) => { 27243 if (!Jt(s)) return; 27244 let l = []; 27245 i.forEach((u, c) => { 27246 l.push(...this._findMatches({ 27247 key: u, 27248 value: s[c], 27249 searcher: n 27250 })); 27251 }), l.length && r.push({ 27252 idx: o, 27253 item: s, 27254 matches: l 27255 }); 27256 }), r; 27257 } 27258 _findMatches({ key: t, value: n, searcher: i }) { 27259 if (!Jt(n)) return []; 27260 let a = []; 27261 if (Wn(n)) n.forEach(({ v: r, i: s, n: o }) => { 27262 if (!Jt(r)) return; 27263 const { isMatch: l, score: u, indices: c } = i.searchIn(r); 27264 l && a.push({ 27265 score: u, 27266 key: t, 27267 value: r, 27268 idx: s, 27269 norm: o, 27270 indices: c 27271 }); 27272 }); 27273 else { 27274 const { v: r, n: s } = n, { isMatch: o, score: l, indices: u } = i.searchIn(r); 27275 o && a.push({ 27276 score: l, 27277 key: t, 27278 value: r, 27279 norm: s, 27280 indices: u 27281 }); 27282 } 27283 return a; 27284 } 27285 } 27286 Oi.version = "6.6.2"; 27287 Oi.createIndex = gg; 27288 Oi.parseIndex = XF;
27289 Oi.config = Ne; 27290 Oi.parseQuery = _g; 27291 dN(cN); 27292 const vN = { 27293 props: { 27294 keywordSearchIndexedAttributes: { 27295 type: Array, 27296 default: () => [], 27297 required: true 27298 }, 27299 initialKeywordSearchItems: { 27300 type: Array, 27301 default: () => [] 27302 }, 27303 keywordSearchOptions: { 27304 type: Object, 27305 default: () => ({ 27306 includeScore: true, 27307 shouldSort: false, 27308 includeMatches: true, 27309 minMatchCharLength: 2, 27310 threshold: 0.2, 27311 ignoreLocation: true 27312 }) 27313 } 27314 }, 27315 data() { 27316 return { 27317 keywordSearchableItems: this.initialKeywordSearchItems || [] 27318 }; 27319 }, 27320 computed: { 27321 searchIndex() { 27322 return new Oi(this.keywordSearchableItems, { 27323 ...this.keywordSearchOptions, 27324 keys: this.keywordSearchIndexedAttributes 27325 }); 27326 } 27327 }, 27328 watch: { 27329 initialKeywordSearchItems: function(e) { 27330 this.keywordSearchableItems = e; 27331 } 27332 }, 27333 methods: { 27334 keywordSearch(e) { 27335 return this.searchIndex.search(e); 27336 } 27337 } 27338 }, yN = { 27339 props: { 27340 searchDataEndpoint: { 27341 type: String, 27342 default: "" 27343 },
27344 customRequestParams: { 27345 type: Object, 27346 default: () => { 27347 } 27348 }, 27349 formatter: { 27350 type: Function 27351 }, 27352 initialQuery: { 27353 type: String, 27354 default: "" 27355 }, 27356 searchResultsPerPage: { 27357 type: Number 27358 }, 27359 filterGroups: { 27360 type: Array, 27361 default: () => [] 27362 } 27363 } 27364 }; 27365 function _N(e, t) { 27366 return { 27367 props: { 27368 defaultSortOption: { 27369 type: String 27370 }, 27371 sortOptions: { 27372 type: Array, 27373 default: () => [] 27374 } 27375 }, 27376 data() { 27377 return { 27378 selectedSortOption: this.defaultSortOption || "" 27379 }; 27380 }, 27381 computed: { 27382 [t]() { 27383 return this.selectedSortAttr ? this.sortDirection === "ascending" ? this.sortAscending(this[e]) : this.sortDescending(this[e]) : this[e]; 27384 }, 27385 sortInputOptions() { 27386 return this.sortOptions.map((n) => n.label); 27387 }, 27388 selectedSortObject() { 27389 return this.sortOptions.find((n) => n.label === this.selectedSortOption); 27390 }, 27391 selectedSortAttr() { 27392 return this.selectedSortObject ? this.selectedSortObject.sortingAttribute : null; 27393 }, 27394 sortDirection() { 27395 return this.selectedSortObject ? this.selectedSortObject.direction : "descending"; 27396 } 27397 }, 27398 methods: { 27399 descendingComparator(n, i) { 27400 let a = this.selectedSortAttr in n && n[this.selectedSortAttr] != null, r = this.selectedSortAttr in i && i[this.selectedSortAttr] != null; 27401 return !a || !r ? !a && r ? 1 : a && !r ? -1 : 0 : typeof n[this.selectedSortAttr] == "string" && typeof i[this.selectedSortAttr] == "string" ? i[this.selectedSortAttr].localeCompare(n[this.selectedSortAttr]) : i[this.selectedSortAttr] - n[this.selectedSortAttr]; 27402 }, 27403 sortDescending(n) { 27404 return [ 27405 ...n.sort(this.descendingComparator) 27406 ]; 27407 }, 27408 sortAscending(n) { 27409 return [ 27410 ...n.sort((i, a) => this.descendingComparator(a, i)) 27411 ]; 27412 } 27413 } 27414 }; 27415 } 27416 function bp(e, t) { 27417 for (let n of e) for (let i of t) if (i.startsWith(n)) return true; 27418 return false; 27419 } 27420 const EN = { 27421 name: "n-search-manager", 27422 components: { 27423 NavBar: Ns, 27424 SearchForm: ua, 27425 DataProvider: O0, 27426 FieldControl: Cu, 27427 FilterSet: rF, 27428 ResourceList: IF, 27429 Pagination: mF, 27430 CollapseDrawerHybrid: Ws 27431 }, 27432 mixins: [ 27433 ug, 27434 yN, 27435 nt, 27436 ws, 27437 Lt, 27438 vN, 27439 _N("filteredSearchResultItems", "sortedItems") 27440 ], 27441 props: { 27442 sortLabel: { 27443 type: String, 27444 default: function() { 27445 return Ze.global.t("searchLabels.sort"); 27446 } 27447 }, 27448 keywordSearchLabel: { 27449 type: String, 27450 default: function() { 27451 return Ze.global.t("searchLabels.findByKeyword"); 27452 } 27453 }, 27454 filterSetTitle: { 27455 ...we.title, 27456 default: function() { 27457 return Ze.global.t("searchLabels.filtersSection"); 27458 } 27459 }, 27460 filterSetHeadingLevel: { 27461 ...we.titleHeadingLevel, 27462 default: 2 27463 }, 27464 filterSetTitleStyle: { 27465 ...we.titleHeadingStyle, 27466 default: "h5" 27467 }, 27468 noResultsText: { 27469 type: String, 27470 default: function() { 27471 return Ze.global.t("searchLabels.noResults"); 27472 } 27473 }, 27474 comparator: { 27475 type: Function, 27476 default: function(e, t) { 27477 return bp(e, t); 27478 } 27479 }, 27480 searchResultsPerPage: { 27481 type: Number, 27482 default: 10 27483 }, 27484 permaSelectedFilters: { 27485 type: Array, 27486 default: () => [] 27487 }, 27488 showKeywordSearch: { 27489 type: Boolean 27490 }, 27491 fullWidthSearchBar: { 27492 type: Boolean 27493 }, 27494 hideSearchBar: { 27495 type: Boolean 27496 } 27497 }, 27498 emits: [ 27499 "loaded" 27500 ], 27501 data() { 27502 return { 27503 currentQuery: this.initialQuery || "", 27504 searchResultItems: [], 27505 filterSelectionArray: [], 27506 currentPage: 1, 27507 loaded: false, 27508 keywordSearchQuery: "" 27509 }; 27510 }, 27511 computed: { 27512 searchParams() { 27513 const e = {}; 27514 return e[this.searchInputName] = this.currentQuery, { 27515 ...e,
27516 ...this.customRequestParams 27517 }; 27518 }, 27519 showSort() { 27520 return this.sortOptions && this.sortOptions.length; 27521 }, 27522 showFilters() { 27523 return this.filterGroups && this.filterGroups.length && !this.noItems; 27524 }, 27525 showControls() { 27526 return (this.showSort || this.showKeywordSearch) && !this.noItems; 27527 }, 27528 fetchResults() { 27529 return this.searchDataEndpoint && (this.currentQuery || this.allowEmptyQuery); 27530 }, 27531 noItems() { 27532 return !(this.searchResultItems && this.searchResultItems.length); 27533 }, 27534 numResults() { 27535 return this.filteredSearchResultItems && this.filteredSearchResultItems.length; 27536 }, 27537 noResults() { 27538 return !this.numResults; 27539 }, 27540 activeFilters() { 27541 return [ 27542 ...this.flattenedFilters, 27543 ...this.permaSelectedFilters 27544 ]; 27545 }, 27546 flattenedFilters() { 27547 return Object.values(this.filterSelectionArray).filter(Boolean).map((e) => [ 27548 e 27549 ].flat()); 27550 }, 27551 filteredSearchResultItems() { 27552 return (this.displayItems || []).filter((e) => { 27553 const t = e.tags || []; 27554 let n = true; 27555 for (let i of this.activeFilters) if (i.length > 0 && !this.comparator(i, t)) { 27556 n = false; 27557 break; 27558 } 27559 return n; 27560 }); 27561 }, 27562 displayItems() { 27563 return this.keywordSearchQuery && this.keywordSearchQuery.length > 1 ? this.keywordSearch(this.keywordSearchQuery).map((e) => e.item) : this.searchResultItems; 27564 }, 27565 contextData() { 27566 return JSON.stringify({ 27567 search: { 27568 query: this.currentQuery, 27569 filters: this.filterSelectionArray, 27570 permasetFilters: this.permaSelectedFilters, 27571 keywordQuery: this.keywordSearchQuery, 27572 sorting: this.selectedSortOption, 27573 resultCount: this.numResults || 0 27574 } 27575 }); 27576 } 27577 }, 27578 beforeMount() { 27579 const e = new URLSearchParams(window.location.search).get(this.searchInputName); 27580 e && (this.currentQuery = decodeURIComponent(e)); 27581 }, 27582 methods: { 27583 hasMatchingTagOrParent: bp, 27584 formatData(e) { 27585 return this.formatter ? this.formatter(e) : e; 27586 }, 27587 handleLoadedData(e) { 27588 return this.searchResultItems = this.formatData(e), this.keywordSearchableItems = this.searchResultItems, this.$emit("loaded"), this.nestEvents_emit(this.EVENT_TYPES.DATA_UPDATE, { 27589 searchQuery: this.currentQuery, 27590 searchResultsCount: this.searchResultItems && this.searchResultItems.length || 0 27591 }), this.loaded = true, e; 27592 } 27593 }, 27594 compatConfig: { 27595 MODE: 3 27596 } 27597 }, kN = [ 27598 "data-n-context", 27599 "data-n-data-context" 27600 ], CN = { 27601 class: "container" 27602 }, AN = { 27603 key: 0, 27604 "data-n-tool": "SearchFilters", 27605 class: "row" 27606 }, SN = { 27607 class: "n-search-results-list--display-options col-12 n:my-lg" 27608 }, wN = { 27609 key: 0, 27610 class: "n-search-results-list--keyword-input n:w-full" 27611 }, LN = { 27612 key: 1, 27613 class: "n-search-results-list--sort-input n:w-full" 27614 }, xN = { 27615 key: 1, 27616 class: "row" 27617 }, ON = { 27618 key: 1 27619 }; 27620 function $N(e, t, n, i, a, r) { 27621 const s = j("SearchForm"), o = j("NavBar"), l = j("FilterSet"), u = j("CollapseDrawerHybrid"), c = j("FieldControl"), d = j("ResourceList"), p = j("Pagination"), b = j("DataProvider"); 27622 return m(), x("div", { 27623 "data-n-context": e.$options.name, 27624 "data-n-data-context": r.contextData, 27625 class: "n-search-with-results" 27626 }, [ 27627 K(o, { 27628 class: R([ 27629 "is-block-gapped", 27630 { 27631 "is-hidden": n.hideSearchBar 27632 } 27633 ]) 27634 }, { 27635 center: I(() => [ 27636 K(s, { 27637 class: R({ 27638 "col-12 col-xl-8": !n.fullWidthSearchBar 27639 }), 27640 "input-format": e.inputFormat, 27641 label: e.label, 27642 placeholder: e.placeholder, 27643 "initial-search-value": a.currentQuery, 27644 suggestions: e.suggestions, 27645 "search-page": e.searchPage, 27646 "search-input-name": e.searchInputName, 27647 "allow-empty-query": e.allowEmptyQuery 27648 }, null, 8, [ 27649 "class", 27650 "input-format", 27651 "label", 27652 "placeholder", 27653 "initial-search-value", 27654 "suggestions", 27655 "search-page", 27656 "search-input-name", 27657 "allow-empty-query" 27658 ]) 27659 ]), 27660 _: 1 27661 }, 8, [ 27662 "class" 27663 ]), 27664 V(e.$slots, "filters", {}, () => [ 27665 r.showFilters ? (m(), U(u, { 27666 key: 0, 27667 title: n.filterSetTitle, 27668 "full-width": true, 27669 "title-heading-level": n.filterSetHeadingLevel, 27670 "title-style": n.filterSetTitleStyle 27671 }, { 27672 default: I(() => [ 27673 K(l, { 27674 modelValue: a.filterSelectionArray, 27675 "onUpdate:modelValue": t[0] || (t[0] = (h) => a.filterSelectionArray = h), 27676 filters: e.filterGroups, 27677 "allow-reset": true, 27678 size: "full-width", 27679 "data-n-tool": "SearchFilters" 27680 }, null, 8, [ 27681 "modelValue", 27682 "filters" 27683 ]), 27684 t[4] || (t[4] = O("hr", { 27685 class: "is-hidden-md-down is-full-width" 27686 }, null, -1)) 27687 ]), 27688 _: 1 27689 }, 8, [ 27690 "title", 27691 "title-heading-level", 27692 "title-style" 27693 ])) : M("", true) 27694 ]), 27695 O("div", CN, [ 27696 r.showControls ? (m(), x("div", AN, [ 27697 O("div", SN, [ 27698 n.showKeywordSearch ? (m(), x("div", wN, [ 27699 K(c, { 27700 id: `${e.id}-keyword-input`, 27701 modelValue: a.keywordSearchQuery, 27702 "onUpdate:modelValue": t[1] || (t[1] = (h) => a.keywordSearchQuery = h), 27703 label: n.keywordSearchLabel, 27704 "input-type": "text" 27705 }, null, 8, [ 27706 "id", 27707 "modelValue", 27708 "label" 27709 ]) 27710 ])) : M("", true), 27711 r.showSort ? (m(), x("div", LN, [ 27712 K(c, { 27713 id: `${e.id}-sort-select`, 27714 modelValue: e.selectedSortOption, 27715 "onUpdate:modelValue": t[2] || (t[2] = (h) => e.selectedSortOption = h), 27716 "input-type": "select", 27717 options: e.sortInputOptions,
27718 label: n.sortLabel, 27719 input: { 27720 noPlaceholder: true 27721 } 27722 }, null, 8, [ 27723 "id", 27724 "modelValue", 27725 "options", 27726 "label" 27727 ]) 27728 ])) : M("", true) 27729 ]) 27730 ])) : M("", true), 27731 a.loaded ? (m(), x("div", xN, [ 27732 O("div", { 27733 class: R([ 27734 n.fullWidthSearchBar ? "col-xs-12 col-xl-10 offset-xl-1" : "col-12" 27735 ]), 27736 "aria-live": "polite" 27737 }, [ 27738 r.numResults ? (m(), x("h2", { 27739 key: 0, 27740 class: R([ 27741 { 27742 "n:mb-0": !n.fullWidthSearchBar 27743 }, 27744 "h4 n-search-results-list--count" 27745 ]) 27746 }, H(a.currentQuery ? e.$t("searchLabels.foundResults", [ 27747 r.numResults, 27748 a.currentQuery 27749 ]) : e.$t("searchLabels.resultsFromEmptyQuery", [ 27750 r.numResults 27751 ])), 3)) : M("", true),
27752 r.noResults ? (m(), x("p", ON, H(n.noResultsText), 1)) : M("", true) 27753 ], 2) 27754 ])) : M("", true) 27755 ]), 27756 r.fetchResults ? (m(), U(b, { 27757 key: 0, 27758 url: e.searchDataEndpoint, 27759 params: r.searchParams, 27760 onLoaded: r.handleLoadedData 27761 }, { 27762 default: I(() => [ 27763 K(p, { 27764 ref: "list", 27765 modelValue: a.currentPage, 27766 "onUpdate:modelValue": t[3] || (t[3] = (h) => a.currentPage = h), 27767 items: e.sortedItems, 27768 "per-page": n.searchResultsPerPage, 27769 tag: "div" 27770 }, { 27771 default: I(({ filtered: h }) => [ 27772 V(e.$slots, "default", { 27773 filtered: h 27774 }, () => [ 27775 K(d, { 27776 "list-items": h 27777 }, null, 8, [ 27778 "list-items" 27779 ]) 27780 ]) 27781 ]), 27782 _: 3 27783 }, 8, [ 27784 "modelValue", 27785 "items", 27786 "per-page" 27787 ]) 27788 ]), 27789 _: 3 27790 }, 8, [ 27791 "url", 27792 "params", 27793 "onLoaded" 27794 ])) : M("", true) 27795 ], 8, kN); 27796 } 27797 let TN, IN, FN, NN, DN, PN, BN, MN, RN, UN; 27798 vp = te(EN, [ 27799 [ 27800 "render", 27801 $N 27802 ] 27803 ]); 27804 TN = { 27805 name: "n-search-results-list-item", 27806 components: { 27807 NLink: at 27808 }, 27809 mixins: [ 27810 ln 27811 ], 27812 inheritAttrs: false, 27813 props: { 27814 title: { 27815 ...we.title 27816 }, 27817 titleHeadingLevel: { 27818 ...we.titleHeadingLevel, 27819 default: 3 27820 }, 27821 titleStyle: { 27822 ...we.titleStyle, 27823 default: "h4" 27824 }, 27825 link: { 27826 type: String, 27827 default: "" 27828 }, 27829 linkType: { 27830 type: String, 27831 default: "default" 27832 }, 27833 linkLabel: { 27834 type: String, 27835 default: "" 27836 }, 27837 description: { 27838 type: String, 27839 default: "" 27840 }, 27841 isHighlighted: { 27842 type: Boolean, 27843 default: false 27844 }, 27845 searchQuery: { 27846 type: String, 27847 default: "" 27848 }, 27849 listPosition: { 27850 type: Number, 27851 default: null 27852 } 27853 }, 27854 computed: { 27855 allCategories() { 27856 return this.categories.join(" \u2022 "); 27857 }, 27858 formattedTitle() { 27859 return Xa(this.title, this.searchQuery); 27860 }, 27861 formattedDescription() { 27862 return Xa(this.description, this.searchQuery); 27863 }, 27864 fullLink() { 27865 return this.link.indexOf("http") > -1 || this.link.indexOf("www.") > -1 ? this.link : new URL(this.link, window.location.href).href; 27866 }, 27867 $linkLabel() { 27868 return this.linkLabel || this.fullLink; 27869 } 27870 }, 27871 compatConfig: { 27872 MODE: 3 27873 } 27874 }; 27875 IN = [ 27876 "data-n-data-context" 27877 ]; 27878 FN = { 27879 class: "container" 27880 }; 27881 NN = { 27882 class: "row n-search-result-list-item__row" 27883 }; 27884 DN = { 27885 class: "col-xs-12 col-xl-10 offset-xl-1" 27886 }; 27887 PN = { 27888 key: 1 27889 }; 27890 BN = [ 27891 "innerHTML" 27892 ]; 27893 MN = { 27894 class: "is-sr-only" 27895 }; 27896 RN = { 27897 key: 0, 27898 class: "n-search-result-list-item__description" 27899 }; 27900 UN = [ 27901 "innerHTML" 27902 ]; 27903 function VN(e, t, n, i, a, r) { 27904 const s = j("NLink"); 27905 return m(), x("div", { 27906 class: R([ 27907 { 27908 "n-search-result-list-item--highlighted": n.isHighlighted 27909 }, 27910 "n-search-result-list-item" 27911 ]), 27912 "data-n-data-context": JSON.stringify({ 27913 listItem: { 27914 listPosition: n.listPosition, 27915 title: n.title 27916 } 27917 }) 27918 }, [ 27919 O("div", FN, [ 27920 O("div", NN, [ 27921 O("div", DN, [ 27922 (m(), U(ue(`h${n.titleHeadingLevel}`), { 27923 class: R([ 27924 n.titleStyle, 27925 "n-search-result-list-item__title" 27926 ]) 27927 }, { 27928 default: I(() => [ 27929 e.linkType_type !== "download" ? (m(), U(s, { 27930 key: 0, 27931 href: n.link, 27932 class: "n-search-result-list-item__title-link n-link--is-block", 27933 "aria-label": n.title, 27934 innerHTML: r.formattedTitle 27935 }, null, 8, [ 27936 "href", 27937 "aria-label", 27938 "innerHTML" 27939 ])) : (m(), x("span", PN, [ 27940 O("span", { 27941 "aria-hidden": "true", 27942 innerHTML: r.formattedTitle 27943 }, null, 8, BN), 27944 O("span", MN, H(n.title), 1) 27945 ])) 27946 ]), 27947 _: 1 27948 }, 8, [ 27949 "class" 27950 ])), 27951 n.description ? (m(), x("div", RN, [ 27952 O("p", { 27953 class: "small", 27954 innerHTML: r.formattedDescription 27955 }, null, 8, UN) 27956 ])) : M("", true), 27957 K(s, { 27958 href: n.link, 27959 "link-type": e.linkType_type, 27960 class: "n-search-result-list-item__link n-link--is-block small" 27961 }, { 27962 default: I(() => [ 27963 re(H(r.$linkLabel), 1) 27964 ]), 27965 _: 1 27966 }, 8, [ 27967 "href", 27968 "link-type" 27969 ]) 27970 ]) 27971 ]) 27972 ]) 27973 ], 10, IN); 27974 } 27975 const HN = te(TN, [ 27976 [ 27977 "render", 27978 VN 27979 ] 27980 ]), jN = { 27981 name: "n-search-with-results", 27982 components: { 27983 SearchResultsListItem: HN, 27984 SearchManager: vp 27985 }, 27986 extends: vp, 27987 data() { 27988 return { 27989 selectedFilters: [] 27990 }; 27991 }, 27992 computed: { 27993 computedProps() { 27994 return { 27995 ...this.$props, 27996 permaSelectedFilters: this.selectedFilters.flat() 27997 }; 27998 } 27999 }, 28000 compatConfig: { 28001 MODE: 3 28002 } 28003 }, zN = { 28004 key: 0, 28005 class: "n-search-results-list__filters is-shadow-depth-1 n:mb-lg n:md:mb-2xl" 28006 }, WN = { 28007 class: "container" 28008 }, GN = { 28009 class: "row" 28010 }, qN = { 28011 class: "col-xs-12 col-xl-10 offset-xl-1" 28012 }; 28013 function YN(e, t, n, i, a, r) { 28014 const s = j("FilterSet"), o = j("SearchResultsListItem"), l = j("SearchManager"); 28015 return m(), U(l, fe(r.computedProps, { 28016 "full-width-search-bar": true, 28017 "data-test-id": "search-with-results" 28018 }), { 28019 filters: I(() => [ 28020 e.filterGroups && e.filterGroups.length && e.currentQuery ? (m(), x("div", zN, [ 28021 O("div", WN, [ 28022 O("div", GN, [ 28023 O("div", qN, [ 28024 K(s, { 28025 modelValue: a.selectedFilters, 28026 "onUpdate:modelValue": t[0] || (t[0] = (u) => a.selectedFilters = u), 28027 "data-n-tool": "SearchFilters", 28028 filters: e.filterGroups 28029 }, null, 8, [ 28030 "modelValue", 28031 "filters" 28032 ]) 28033 ]) 28034 ]) 28035 ]) 28036 ])) : M("", true) 28037 ]), 28038 default: I(({ filtered: u }) => [ 28039 (m(true), x(me, null, ve(u, (c, d) => (m(), U(o, fe({ 28040 key: c.link, 28041 "is-highlighted": c.highlighted, 28042 ref_for: true 28043 }, c, { 28044 "search-query": e.currentQuery, 28045 "list-position": d + 1 28046 }), null, 16, [ 28047 "is-highlighted", 28048 "search-query", 28049 "list-position" 28050 ]))), 128)) 28051 ]), 28052 _: 1 28053 }, 16); 28054 } 28055 let yp, Eg, KN, XN; 28056 dU = te(jN, [ 28057 [ 28058 "render", 28059 YN 28060 ] 28061 ]); 28062 yp = (e, t) => (((e || "").match(t) || [])[1] || "").replace(/&#(\d+);
28062/g, (n, i) => String.fromCharCode(i)); 28063 Eg = { 28064 name: "location-service", 28065 props: { 28066 apiKey: { 28067 type: [ 28068 String, 28069 Object 28070 ], 28071 default: () => vs 28072 }, 28073 modelValue: { 28074 type: String, 28075 required: false 28076 }, 28077 minLength: { 28078 type: Number, 28079 default: 2 28080 }, 28081 detailedSuggestion: { 28082 required: false, 28083 validator(e) { 28084 return typeof e == "object" && typeof e.description == "string" || typeof e == "string"; 28085 } 28086 }, 28087 requestConfig: { 28088 type: Object, 28089 required: false, 28090 default: () => ({ 28091 types: "", 28092 location: "", 28093 radius: 0, 28094 bounds: "", 28095 country: [ 28096 "ca" 28097 ], 28098 placeDetailFields: "" 28099 }) 28100 } 28101 }, 28102 emits: [ 28103 "suggestions", 28104 "error", 28105 "geocoded-result" 28106 ], 28107 data() { 28108 return { 28109 loading: false, 28110 suggestions: [], 28111 gmaps: null, 28112 autocompleteService: null, 28113 placesService: null, 28114 sessionToken: null, 28115 geocoder: null, 28116 initialized: false 28117 }; 28118 }, 28119 computed: { 28120 debouncedSearchSuggestions() { 28121 return this.debounce ? this.debounce(this.searchSuggestions) : this.searchSuggestions; 28122 } 28123 }, 28124 watch: { 28125 modelValue: { 28126 immediate: true, 28127 handler() { 28128 this.debouncedSearchSuggestions(); 28129 } 28130 }, 28131 detailedSuggestion: { 28132 immediate: true, 28133 handler(e) { 28134 e && typeof e == "object" && this.geocodeSuggestion(e); 28135 } 28136 } 28137 }, 28138 mounted() { 28139 EE(this.apiKey).then(() => { 28140 this.gmaps || (this.googleMaps ? this.gmaps = this.googleMaps : window.google ? this.gmaps = window.google.maps : (console.warn("Tried to initialize GeoSuggest before loading GMaps"), this.initialized = false), this.autocompleteService = new this.gmaps.places.AutocompleteService(), this.placesService = new this.gmaps.places.PlacesService(document.createElement("div")), this.sessionToken = new this.gmaps.places.AutocompleteSessionToken(), this.geocoder = new this.gmaps.Geocoder()), this.initialized = true, this.searchSuggestions(), this.suggestionsFound().then(() => { 28141 this.modelValue && this.modelValue.length && this.suggestions.length && this.geocodeSuggestion(this.suggestions[0]); 28142 }); 28143 }); 28144 }, 28145 methods: { 28146 suggestionsFound() { 28147 return new Promise((e) => { 28148 const t = setInterval(() => { 28149 this.suggestions && this.suggestions.length && (clearInterval(t), e()); 28150 }, 100); 28151 }); 28152 }, 28153 searchSuggestions() { 28154 if (!this.modelValue) { 28155 this.updateSuggestions(); 28156 return; 28157 } 28158 if (!this.gmaps && !this.initialized || this.minLength && this.modelValue.length < this.minLength || !this.autocompleteService) return; 28159 const e = { 28160 input: this.modelValue, 28161 sessionToken: this.sessionToken, 28162 location: this.requestConfig.location, 28163 radius: this.requestConfig.radius, 28164 bounds: this.requestConfig.bounds, 28165 types: this.requestConfig.types, 28166 componentRestrictions: this.requestConfig.country ? { 28167 country: this.requestConfig.country 28168 } : void 0 28169 }; 28170 this.loading = true, this.autocompleteService.getPlacePredictions(e, (t) => { 28171 this.loading = false, this.updateSuggestions(t || []); 28172 }); 28173 }, 28174 updateSuggestions(e = []) { 28175 this.suggestions = e.map((t) => ({ 28176 placeId: t.place_id, 28177 description: t.description, 28178 matchedSubstrings: t.matched_substrings[0] 28179 })), this.$emit("suggestions", [ 28180 ...this.suggestions 28181 ]); 28182 }, 28183 geocodeSuggestion(e) { 28184 if (!(!this.geocoder && !this.initialized)) if (e.placeId && this.placesService) { 28185 const t = { 28186 placeId: e.placeId, 28187 sessionToken: this.sessionToken, 28188 fields: this.placeDetailFields 28189 }; 28190 this.placesService.getDetails(t, (n, i) => { 28191 i === this.gmaps.places.PlacesServiceStatus.OK ? (this.sessionToken = new this.gmaps.places.AutocompleteSessionToken(), this.onSuggestionGeocoded(e, n)) : this.onServiceError({ 28192 status: i 28193 }); 28194 }); 28195 } else { 28196 const t = { 28197 address: e.description, 28198 bounds: this.bounds, 28199 location: this.location, 28200 componentRestrictions: this.country ? { 28201 country: this.country 28202 } : void 0 28203 }; 28204 this.geocoder.geocode(t, ([n], i) => { 28205 i === this.gmaps.GeocoderStatus.OK ? this.onSuggestionGeocoded(e, n) : this.onServiceError({ 28206 status: i 28207 }); 28208 }); 28209 } 28210 }, 28211 onServiceError({ status: e }) { 28212 this.$emit("error", { 28213 status: e 28214 }); 28215 }, 28216 onSuggestionGeocoded(e, t) { 28217 const n = (t.geometry || {}).location, i = { 28218 ...e, 28219 gmaps: t, 28220 location: n && { 28221 lat: n.lat(), 28222 lng: n.lng() 28223 } 28224 }; 28225 this.$emit("geocoded-result", this.extendGeocodedSuggestion(i)); 28226 }, 28227 extendGeocodedSuggestion(e) { 28228 const t = (e.gmaps.address_components || []).reduce((c, d) => ({ 28229 ...c, 28230 ...d.types.reduce((p, b) => ({ 28231 ...p, 28232 [b]: { 28233 longName: d.long_name, 28234 shortName: d.short_name 28235 } 28236 }), {}) 28237 }), {}), { postal_code: n = {}, locality: i = {}, country: a = {}, administrative_area_level_1: r = {} } = t; 28238 let s, o = yp(e.gmaps.adr_address, /"street-address"\s*>(.+?)</i).replace(`, ${i.longName || "NO MATCH"}`, ""); 28239 o ? s = e.gmaps.name !== o ? e.gmaps.name : "" : (o = e.gmaps.name, t.route && ![ 28240 "street_address", 28241 "route" 28242 ].some((c) => (e.gmaps.types || []).includes(c)) && (s = o, o = t.route.longName + (t.street_number ? `, ${t.street_number.shortName}` : ""))); 28243 const l = yp(e.gmaps.adr_address, /"region"\s*>(.+?)</i) || i.shortName || r.shortName, u = { 28244 streetAddress1: o, 28245 streetAddress2: s, 28246 region: l, 28247 city: i.longName || r.longName, 28248 postalCode: n.longName, 28249 countryName: a.longName, 28250 countryIso2: a.shortName 28251 }; 28252 return { 28253 ...e, 28254 region: l, 28255 normalizedAddress: u, 28256 addressComponentMap: t, 28257 formattedAddress: e.gmaps.formatted_address, 28258 name: e.gmaps.name, 28259 types: e.gmaps.types 28260 }; 28261 } 28262 }, 28263 render() { 28264 return this.$slots.default && typeof this.$slots.default == "function" ? this.$slots.default({ 28265 loading: this.loading, 28266 suggestions: this.suggestions, 28267 detailedSuggestion: this.detailedSuggestion 28268 }) : []; 28269 } 28270 }; 28271 KN = { 28272 name: "n-search-form-places", 28273 components: { 28274 SearchForm: ua, 28275 LocationService: Eg 28276 }, 28277 mixins: [ 28278 nt 28279 ], 28280 props: { 28281 apiKey: { 28282 type: [ 28283 String, 28284 Object 28285 ], 28286 default: () => vs 28287 }, 28288 placeholder: { 28289 type: String 28290 }, 28291 searchForm: { 28292 type: Object, 28293 default: () => ({}) 28294 }, 28295 label: { 28296 type: String 28297 } 28298 }, 28299 emits: [ 28300 "submit", 28301 "error", 28302 "detail" 28303 ], 28304 data() { 28305 return { 28306 searchInput: "", 28307 selectedSuggestion: "", 28308 showResults: false, 28309 result: "", 28310 detailedOption: "" 28311 }; 28312 }, 28313 watch: { 28314 searchForm: { 28315 immediate: true, 28316 handler: function() {
28317 this.getSearchValue(this.searchForm.initialSearchValue); 28318 } 28319 } 28320 }, 28321 methods: { 28322 getSearchValue(e) { 28323 this.searchInput = e; 28324 }, 28325 submitValue(e) { 28326 e ? (this.result = e, this.selectedSuggestion = { 28327 ...e, 28328 description: e.label 28329 }, this.$emit("submit", e)) : this.$emit("error"); 28330 }, 28331 getDetailedResult(e) { 28332 this.detailedOption = e, this.$emit("detail", e); 28333 }, 28334 formatSuggestion: function(e) { 28335 return [ 28336 ...e 28337 ].map((t) => ({ 28338 id: t.placeId, 28339 label: t.description 28340 })); 28341 } 28342 }, 28343 compatConfig: { 28344 MODE: 3 28345 } 28346 }; 28347 XN = { 28348 "data-test-id": "n-search-form-places" 28349 }; 28350 function JN(e, t, n, i, a, r) { 28351 const s = j("SearchForm"), o = j("LocationService"); 28352 return m(), x("div", XN, [ 28353 K(o, { 28354 ref: "geoLocate", 28355 "model-value": a.searchInput, 28356 "detailed-suggestion": a.selectedSuggestion || null, 28357 "api-key": n.apiKey, 28358 onError: t[0] || (t[0] = (l) => a.searchInput = ""), 28359 onGeocodedResult: r.getDetailedResult 28360 }, { 28361 default: I(({ suggestions: l }) => [ 28362 K(s, fe({ 28363 id: e.id, 28364 label: n.label, 28365 placeholder: n.placeholder 28366 }, n.searchForm, { 28367 suggestions: { 28368 label: "", 28369 items: l 28370 }, 28371 "format-suggestions": r.formatSuggestion, 28372 "disable-navigation": "", 28373 onSetSearchInput: r.getSearchValue, 28374 onSubmit: r.submitValue 28375 }), { 28376 "listbox-footer": I(() => t[1] || (t[1] = [ 28377 O("img", { 28378 src: "https://www.canadalife.com/content/dam/public/logos/third-party/powered-by-google.png", 28379 class: "n-google-logo" 28380 }, null, -1) 28381 ])), 28382 _: 2 28383 }, 1040, [ 28384 "id", 28385 "label", 28386 "placeholder", 28387 "suggestions", 28388 "format-suggestions", 28389 "onSetSearchInput", 28390 "onSubmit" 28391 ]) 28392 ]), 28393 _: 1 28394 }, 8, [ 28395 "model-value", 28396 "detailed-suggestion", 28397 "api-key", 28398 "onGeocodedResult" 28399 ]) 28400 ]); 28401 } 28402 let QN, ZN, eD; 28403 pU = te(KN, [ 28404 [ 28405 "render", 28406 JN 28407 ] 28408 ]); 28409 QN = { 28410 name: "n-header-search", 28411 components: { 28412 SearchForm: ua 28413 }, 28414 mixins: [ 28415 Kn 28416 ], 28417 props: { 28418 visuallyHidden: { 28419 type: Boolean 28420 } 28421 }, 28422 watch: { 28423 visuallyHidden(e) { 28424 e || window.setTimeout(() => { 28425 this.$refs.searchForm && Qi(this.$refs.searchForm.$refs.searchInput.$refs.input.$refs.input); 28426 }, 400); 28427 } 28428 }, 28429 compatConfig: { 28430 MODE: 3 28431 } 28432 }; 28433 ZN = [ 28434 "aria-hidden", 28435 "tabindex" 28436 ]; 28437 eD = { 28438 class: "n-header-search__container", 28439 role: "search" 28440 }; 28441 function tD(e, t, n, i, a, r) { 28442 const s = j("SearchForm"); 28443 return m(), x("div", { 28444 class: R([ 28445 { 28446 "n-header-search--visually-hidden": n.visuallyHidden 28447 }, 28448 "n-header-search" 28449 ]), 28450 "aria-hidden": n.visuallyHidden, 28451 tabindex: n.visuallyHidden ? -1 : null 28452 }, [ 28453 O("div", eD, [ 28454 K(s, { 28455 ref: "searchForm", 28456 "search-page": e.search.endpoint, 28457 "force-open": e.search.forceOpen, 28458 suggestions: e.search.suggestions, 28459 quicklinks: e.search.quicklinks, 28460 "input-format": "nav", 28461 class: "n-header-search__input" 28462 }, null, 8, [ 28463 "search-page", 28464 "force-open", 28465 "suggestions", 28466 "quicklinks" 28467 ]) 28468 ]) 28469 ], 10, ZN); 28470 } 28471 const kg = te(QN, [ 28472 [ 28473 "render", 28474 tD 28475 ] 28476 ]), nD = { 28477 name: "n-header-desktop", 28478 components: { 28479 Block: ft, 28480 NButton: ze, 28481 HeaderCTAsDesktop: Dw, 28482 HeaderLogos: su, 28483 HeaderNavDesktop: WL, 28484 HeaderSearch: kg, 28485 NLink: at, 28486 NavBar: Ns 28487 }, 28488 mixins: [ 28489 nt, 28490 Ge, 28491 Kn, 28492 Is, 28493 bt, 28494 Ai, 28495 ur 28496 ], 28497 data() { 28498 return { 28499 searchOpen: false, 28500 searchToggleLabel: this.$t("search") 28501 }; 28502 }, 28503 computed: { 28504 isSearchOpen: { 28505 get() { 28506 return this.searchOpen; 28507 }, 28508 set(e) { 28509 this.searchOpen = e; 28510 } 28511 }, 28512 filteredUtilityLinks() { 28513 let e = this.getValidLinks(this.utilityLinks); 28514 return this.shouldDetermineCurrent ? this.setCurrentLinks(e) : e; 28515 }, 28516 showUtilityBar() { 28517 var e, t; 28518 return !!((e = this.filteredUtilityLinks) != null && e.length || (t = this.ctas) != null && t.length && !this.showNavBarCtas); 28519 }, 28520 showUtilityList() { 28521 var e; 28522 return !!((e = this.filteredUtilityLinks) != null && e.length); 28523 }, 28524 showUtilityLangToggle() { 28525 var e; 28526 return !((e = this.langToggle) != null && e.length) || this.showNavBarCtas && !this.showUtilityList ? false : !!this.showUtilityBar; 28527 }, 28528 showNavBarLangToggle() { 28529 var e; 28530 return !!(this.showNavBarCtas && !this.showUtilityList || !this.showUtilityBar && (e = this.langToggle) != null && e.length); 28531 }, 28532 showNavBarCtas() { 28533 var e; 28534 return !(this.search && this.search.endpoint) && !((e = this.navLinks) != null && e.length); 28535 } 28536 }, 28537 methods: { 28538 toggleSearch() { 28539 this.dispatchNestEvent({ 28540 action: this.isSearchOpen ? "hide" : "show", 28541 component: "n-desktop-search", 28542 category: "disclosure", 28543 name: this.searchToggleLabel 28544 }), this.isSearchOpen = !this.isSearchOpen, this.searchToggleLabel = this.isSearchOpen ? this.$t("label.close") : this.$t("search"); 28545 } 28546 }, 28547 compatConfig: { 28548 MODE: 3 28549 } 28550 }, rD = [ 28551 "id" 28552 ], iD = { 28553 class: "n-header-desktop__logo-wrapper" 28554 }, aD = { 28555 class: "n-header-desktop__utilities-wrapper has-no-margins-around is-hidden-print" 28556 }, sD = { 28557 key: 0, 28558 class: "n-utility-list n-utility-list--horizontal", 28559 "data-n-context": "header-utility-links" 28560 }, oD = { 28561 class: "row" 28562 }, lD = { 28563 key: 0, 28564 class: "n-header-desktop__logo-wrapper col-auto" 28565 }, uD = { 28566 key: 2, 28567 class: "col-auto has-centered-child" 28568 }, cD = { 28569 class: "n-utility-list n-utility-list--horizontal" 28570 }, dD = { 28571 key: 4, 28572 class: "n-header-desktop__search-wrapper col-auto is-hidden-print" 28573 }; 28574 function pD(e, t, n, i, a, r) { 28575 const s = j("HeaderLogos"), o = j("NLink"), l = j("HeaderCTAsDesktop"), u = j("NavBar"), c = j("HeaderNavDesktop"), d = j("HeaderSearch"), p = j("NButton"), b = j("Block"); 28576 return m(), x("div", { 28577 id: e.id, 28578 ref: "headerDesktop", 28579 class: "n-header-desktop", 28580 "data-n-context": "n-header-desktop" 28581 }, [ 28582 r.showUtilityBar ? (m(), U(u, { 28583 key: 0, 28584 "aria-label": e.$t("menu.utility"), 28585 "tag-name": "nav", 28586 class: "n-header-desktop__utility-bar is-bg-color-bg-alt-1-escaped", 28587 "clear-spacing-after": "" 28588 }, $n({ 28589 center: I(() => { 28590 var h; 28591 return [ 28592 O("div", aD, [ 28593 (h = r.filteredUtilityLinks) != null && h.length || r.showUtilityLangToggle ? (m(), x("ul", sD, [ 28594 (m(true), x(me, null, ve(r.filteredUtilityLinks, (_, C) => (m(), x("li", { 28595 key: C, 28596 class: "has-no-margins-around" 28597 }, [ 28598 K(o, { 28599 href: _.href, 28600 "link-type": _.linkType, 28601 class: R([ 28602 { 28603 "is-current": _.isCurrent 28604 }, 28605 "n-link--utility" 28606 ]), 28607 "aria-current": _.isCurrent ? "page" : void 0 28608 }, { 28609 default: I(() => [ 28610 re(H(_.label), 1) 28611 ]), 28612 _: 2 28613 }, 1032, [ 28614 "href", 28615 "link-type", 28616 "class", 28617 "aria-current" 28618 ]) 28619 ]))), 128)), 28620 r.showUtilityLangToggle ? (m(true), x(me, { 28621 key: 0 28622 }, ve(e.langToggle, (_) => (m(), x("li", { 28623 key: _.lang, 28624 class: "has-no-margins-around", 28625 "data-n-context": "header-lang-toggle" 28626 }, [ 28627 K(o, { 28628 href: _.href, 28629 "aria-label": _.ariaLabel, 28630 hreflang: _.lang, 28631 lang: _.lang, 28632 class: "n-link--utility is-hidden-print" 28633 }, { 28634 default: I(() => [ 28635 re(H(_.label), 1) 28636 ]), 28637 _: 2 28638 }, 1032, [ 28639 "href", 28640 "aria-label", 28641 "hreflang", 28642 "lang" 28643 ]) 28644 ]))), 128)) : M("", true) 28645 ])) : M("", true) 28646 ]) 28647 ]; 28648 }), 28649 right: I(() => [ 28650 r.showNavBarCtas ? M("", true) : (m(), U(l, { 28651 key: 0, 28652 ctas: e.ctas 28653 }, null, 8, [ 28654 "ctas" 28655 ])) 28656 ]), 28657 _: 2 28658 }, [ 28659 e.showLogoInUtilityBar ? { 28660 name: "left", 28661 fn: I(() => [ 28662 O("div", iD, [ 28663 V(e.$slots, "logos", {}, () => [ 28664 K(s, { 28665 logos: e.logos 28666 }, null, 8, [ 28667 "logos" 28668 ]) 28669 ]) 28670 ]) 28671 ]), 28672 key: "0" 28673 } : void 0 28674 ]), 1032, [ 28675 "aria-label" 28676 ])) : M("", true), 28677 K(b, { 28678 class: R([ 28679 "n-header-desktop__nav-bar", 28680 [
28681 `is-bg-color-${e.desktopBackground}-escaped`, 28682 `${e.desktopBackground === "primary" ? "has-reverse-items" : "text"}` 28683 ] 28684 ]), 28685 "clear-spacing-after": "" 28686 }, { 28687 default: I(() => [ 28688 O("div", oD, [ 28689 e.showLogoInUtilityBar ? M("", true) : (m(), x("div", lD, [ 28690 V(e.$slots, "logos", {}, () => [ 28691 K(s, { 28692 logos: e.logos 28693 }, null, 8, [ 28694 "logos" 28695 ]) 28696 ]) 28697 ])), 28698 K(c, { 28699 "nav-label": e.navLabel, 28700 "nav-links": e.navLinks, 28701 "visually-hidden": r.isSearchOpen, 28702 "search-open": r.isSearchOpen, 28703 "desktop-align-menu-left": e.desktopAlignMenuLeft, 28704 "should-determine-current-subcomponents": e.shouldDetermineCurrentSubcomponents, 28705 "determine-link-is-current": e.determineLinkIsCurrent, 28706 class: "is-hidden-print" 28707 }, { 28708 navDesktop: I(() => [ 28709 V(e.$slots, "navDesktop") 28710 ]), 28711 _: 3 28712 }, 8, [ 28713 "nav-label", 28714 "nav-links", 28715 "visually-hidden", 28716 "search-open", 28717 "desktop-align-menu-left", 28718 "should-determine-current-subcomponents", 28719 "determine-link-is-current" 28720 ]), 28721 e.search && e.search.endpoint ? (m(), U(d, { 28722 key: 1, 28723 search: e.search, 28724 "visually-hidden": !r.isSearchOpen, 28725 class: "is-hidden-print" 28726 }, null, 8, [ 28727 "search", 28728 "visually-hidden" 28729 ])) : M("", true), 28730 r.showNavBarLangToggle ? (m(), x("div", uD, [ 28731 O("ul", cD, [ 28732 (m(true), x(me, null, ve(e.langToggle, (h) => (m(), x("li", { 28733 key: h.lang, 28734 class: "has-no-margins-around" 28735 }, [ 28736 K(o, { 28737 href: h.href, 28738 "aria-label": h.ariaLabel, 28739 hreflang: h.lang, 28740 lang: h.lang, 28741 class: "n-link--utility is-hidden-print" 28742 }, { 28743 default: I(() => [ 28744 re(H(h.label), 1) 28745 ]), 28746 _: 2 28747 }, 1032, [ 28748 "href", 28749 "aria-label", 28750 "hreflang", 28751 "lang" 28752 ]) 28753 ]))), 128)) 28754 ]) 28755 ])) : M("", true), 28756 r.showNavBarCtas ? (m(), U(l, { 28757 key: 3, 28758 class: "n:items-center", 28759 ctas: e.ctas 28760 }, null, 8, [ 28761 "ctas" 28762 ])) : M("", true), 28763 e.search && e.search.endpoint ? (m(), x("div", dD, [ 28764 K(p, { 28765 icon: r.isSearchOpen ? "x" : "search", 28766 format: "ghost", 28767 size: "small", 28768 "icon-position": "left", 28769 color: "text", 28770 action: "toggle", 28771 class: "n-header-desktop__search-button is-clear-margin-right", 28772 onClick: r.toggleSearch 28773 }, { 28774 default: I(() => [ 28775 re(H(r.isSearchOpen ? e.$t("label.close") : e.$t("search")), 1) 28776 ]), 28777 _: 1 28778 }, 8, [ 28779 "icon", 28780 "onClick" 28781 ]) 28782 ])) : M("", true) 28783 ]) 28784 ]), 28785 _: 3 28786 }, 8, [ 28787 "class" 28788 ]) 28789 ], 8, rD); 28790 } 28791 const fD = te(nD, [ 28792 [ 28793 "render", 28794 pD 28795 ] 28796 ]), mD = { 28797 name: "n-header-ctas-mobile", 28798 components: { 28799 NButton: ze 28800 }, 28801 mixins: [ 28802 Ym 28803 ], 28804 computed: { 28805 isList() { 28806 return this.ctas.length > 1; 28807 } 28808 } 28809 }; 28810 function hD(e, t, n, i, a, r) { 28811 const s = j("NButton"); 28812 return e.ctas ? (m(), U(ue(r.isList ? "ul" : "div"), { 28813 key: 0, 28814 class: "n-header-ctas-mobile__cta-list n-unordered-list--unstyled", 28815 "data-n-context": "header-ctas-mobile" 28816 }, {
28817 default: I(() => [ 28818 (m(true), x(me, null, ve(e.ctas, (o, l) => (m(), U(ue(r.isList ? "li" : "div"), { 28819 key: l, 28820 class: "n-header-ctas-mobile__cta-list-item" 28821 }, { 28822 default: I(() => [ 28823 o ? (m(), U(s, { 28824 key: 0, 28825 format: o.format || "primary", 28826 icon: o.icon, 28827 href: o.href, 28828 "link-type": o.linkType, 28829 "icon-position": "left", 28830 "is-full-width": "", 28831 class: "n-header-ctas-mobile__button is-clear-margin-bottom is-clear-margin-top is-clear-margin-right" 28832 }, { 28833 default: I(() => [ 28834 re(H(o.label), 1) 28835 ]), 28836 _: 2 28837 }, 1032, [ 28838 "format", 28839 "icon", 28840 "href", 28841 "link-type" 28842 ])) : M("", true) 28843 ]), 28844 _: 2 28845 }, 1024))), 128)) 28846 ]), 28847 _: 1 28848 })) : M("", true); 28849 } 28850 const gD = te(mD, [ 28851 [ 28852 "render", 28853 hD 28854 ] 28855 ]), bD = { 28856 name: "n-header-nav-mobile-submenu", 28857 components: { 28858 NavLinkStacked: Rr 28859 }, 28860 mixins: [ 28861 Kn, 28862 Ge, 28863 ur 28864 ], 28865 props: { 28866 isOpen: { 28867 type: Boolean 28868 }, 28869 activeSubmenu: { 28870 type: String, 28871 default: "" 28872 }, 28873 submenuIndex: { 28874 type: String, 28875 default: "" 28876 }, 28877 navPrefix: { 28878 type: String, 28879 default: "" 28880 } 28881 }, 28882 data() { 28883 return { 28884 isActive: false 28885 }; 28886 }, 28887 computed: { 28888 backText: function() { 28889 return this.submenuIndex.lastIndexOf("_") <= 0 ? "menu.back" : "label.back"; 28890 }, 28891 flatFilteredLinks() { 28892 let e = this.getValidLinks(this.flattenedNavLinks); 28893 return this.shouldDetermineCurrent ? this.setCurrentLinks(e) : e; 28894 } 28895 }, 28896 watch: { 28897 activeSubmenu: { 28898 immediate: true, 28899 handler(e) { 28900 e === this.submenuIndex ? this.isActive = true : setTimeout(() => { 28901 this.isActive = false; 28902 }, 400); 28903 } 28904 } 28905 }, 28906 compatConfig: { 28907 MODE: 3 28908 } 28909 }, vD = [ 28910 "id", 28911 "data-header-mobile-submenu", 28912 "aria-labelledby" 28913 ], yD = { 28914 key: 0, 28915 class: "n-header-mobile__sub-nav-list-item is-bg-color-bg has-transparent-items" 28916 }, _D = [ 28917 "data-header-mobile-nav-link-list" 28918 ]; 28919 function ED(e, t, n, i, a, r) { 28920 const s = j("NavLinkStacked"), o = j("n-header-nav-mobile-submenu"); 28921 return e.navLinks ? (m(), x("ul", { 28922 key: 0, 28923 id: n.navPrefix === "sub-" ? `n-header-mobile-submenu-${n.submenuIndex}-mobile` : null, 28924 class: R([ 28925 `n-header-mobile__${n.navPrefix}nav-list`, 28926 "n-header-mobile-submenu n-unordered-list n-unordered-list--unstyled is-bg-color-white" 28927 ]), 28928 "data-header-mobile-submenu": n.navPrefix === "sub-" ? n.submenuIndex : null, 28929 "aria-labelledby": a.isActive && n.navPrefix === "sub-" ? `n-header-submenu-link-${n.submenuIndex}-mobile` : null, 28930 "data-n-context": "header-nav-mobile-submenu" 28931 }, [ 28932 n.navPrefix === "sub-" ? (m(), x("li", yD, [ 28933 Je(K(s, { 28934 "data-header-back-link": n.submenuIndex, 28935 class: "n-header-mobile__sub-nav-link", 28936 icon: "chevronLeft", 28937 "icon-position": "left", 28938 onClick: t[0] || (t[0] = (l) => e.$emit("close-submenu", n.submenuIndex, "mobile")) 28939 }, { 28940 default: I(() => [ 28941 re(H(e.$t(r.backText)), 1) 28942 ]), 28943 _: 1 28944 }, 8, [ 28945 "data-header-back-link" 28946 ]), [ 28947 [ 28948 pt, 28949 a.isActive 28950 ] 28951 ]) 28952 ])) : M("", true), 28953 (m(true), x(me, null, ve(r.flatFilteredLinks, (l, u) => (m(), x("li", { 28954 key: u, 28955 class: R([ 28956 `n-header-mobile__${n.navPrefix}nav-list-item`, 28957 "has-transparent-items n-unordered-list--unstyled" 28958 ]) 28959 }, [ 28960 Je(K(s, { 28961 id: `n-header-submenu-link-${n.submenuIndex}_${u}-mobile`, 28962 "aria-expanded": l.children ? n.activeSubmenu === u ? true : "false" : null, 28963 "aria-haspopup": l.children ? true : null, 28964 "aria-controls": l.children ? `n-header-mobile-submenu-${n.submenuIndex}_${u}-mobile` : null, 28965 class: R([ 28966 `n-header-mobile__${n.navPrefix}nav-link`, 28967 l.isCurrent ? "is-current" : "" 28968 ]), 28969 "aria-current": l.isCurrent ? "page" : void 0, 28970 href: l.children ? null : l.href, 28971 "link-type": l.linkType, 28972 icon: l.children ? "chevronRight" : null, 28973 "data-header-submenu-link": `${n.submenuIndex}_${u}-mobile`, 28974 "data-header-link": `${n.submenuIndex}_${u}`, 28975 tabindex: a.isActive ? null : -1, 28976 "aria-hidden": !a.isActive || null, 28977 onClick: (c) => l.children ? e.$emit("open-submenu", u, "mobile") : null 28978 }, { 28979 default: I(() => [ 28980 re(H(l.label), 1) 28981 ]), 28982 _: 2 28983 }, 1032, [ 28984 "id", 28985 "aria-expanded", 28986 "aria-haspopup", 28987 "aria-controls", 28988 "class", 28989 "aria-current", 28990 "href", 28991 "link-type", 28992 "icon", 28993 "data-header-submenu-link", 28994 "data-header-link", 28995 "tabindex", 28996 "aria-hidden", 28997 "onClick" 28998 ]), [ 28999 [ 29000 pt, 29001 a.isActive 29002 ] 29003 ]), 29004 l.children ? (m(), x("div", { 29005 key: 0, 29006 class: R([ 29007 n.isOpen && n.activeSubmenu.indexOf(n.submenuIndex + "_" + u) === 0 ? "is-open" : "is-closed", 29008 "n-header-mobile__sub-nav is-bg-color-white has-no-margins-around" 29009 ]), 29010 "data-header-mobile-nav-link-list": `${n.submenuIndex}_${u}`, 29011 onKeyup: t[1] || (t[1] = Ye((c) => e.$emit("close-submenu", n.submenuIndex, "mobile"), [ 29012 "escape" 29013 ])) 29014 }, [ 29015 K(o, fe({ 29016 "is-open": n.isOpen, 29017 "submenu-index": `${n.submenuIndex}_${u}`, 29018 "should-determine-current-subcomponents": e.shouldDetermineCurrentSubcomponents, 29019 "nav-links": l.children, 29020 "active-submenu": n.activeSubmenu, 29021 ref_for: true 29022 }, e.$attrs, { 29023 "nav-prefix": "sub-" 29024 }), null, 16, [ 29025 "is-open", 29026 "submenu-index", 29027 "should-determine-current-subcomponents", 29028 "nav-links", 29029 "active-submenu" 29030 ]) 29031 ], 42, _D)) : M("", true) 29032 ], 2))), 128)) 29033 ], 10, vD)) : M("", true); 29034 } 29035 const kD = te(bD, [ 29036 [ 29037 "render", 29038 ED 29039 ] 29040 ]), CD = { 29041 name: "n-header-nav-mobile", 29042 components: { 29043 HeaderCTAsMobile: gD, 29044 HeaderNavMobileSubmenu: kD, 29045 NavLinkStacked: Rr 29046 }, 29047 mixins: [ 29048 Kn, 29049 ur, 29050 ah, 29051 Ge 29052 ], 29053 props: { 29054 isOpen: { 29055 type: Boolean 29056 } 29057 }, 29058 data() { 29059 return { 29060 mainMenuActive: false 29061 }; 29062 }, 29063 computed: { 29064 displayNavLinks() { 29065 let e = this.getValidLinks(this.navLinks); 29066 return this.shouldDetermineCurrent ? this.setCurrentLinks(e) : e; 29067 }, 29068 displayUtilityLinks() { 29069 let e = this.getValidLinks(this.utilityLinks); 29070 return this.shouldDetermineCurrent ? this.setCurrentLinks(e) : e; 29071 } 29072 }, 29073 watch: { 29074 isOpen: function(e) { 29075 e ? this.mainMenuActive = true : this.activeSubmenu = ""; 29076 }, 29077 activeSubmenu: function(e) { 29078 e === "" ? this.mainMenuActive = true : setTimeout(() => { 29079 this.mainMenuActive = false;
29080 }, 400); 29081 } 29082 } 29083 }, AD = [ 29084 "aria-label" 29085 ], SD = { 29086 class: "n-header-nav-mobile__utilities is-bg-color-bg has-no-margins-around" 29087 }, wD = { 29088 class: "n-header-mobile__utilities-list n-unordered-list--unstyled", 29089 "data-n-context": "header-utility-links" 29090 }; 29091 function LD(e, t, n, i, a, r) { 29092 const s = j("HeaderNavMobileSubmenu"), o = j("HeaderCTAsMobile"), l = j("NavLinkStacked"); 29093 return m(), x("nav", { 29094 "aria-label": e.navLabel, 29095 class: "n-header-nav-mobile is-bg-color-white has-no-margins-around" 29096 }, [ 29097 V(e.$slots, "navMobile", {}, () => [ 29098 K(s, { 29099 "nav-links": r.displayNavLinks, 29100 "is-open": n.isOpen, 29101 "active-submenu": e.activeSubmenu, 29102 "should-determine-current-subcomponents": e.shouldDetermineCurrentSubcomponents, 29103 "determine-link-is-current": e.determineLinkIsCurrent, 29104 onCloseSubmenu: e.closeSubmenu, 29105 onOpenSubmenu: e.openSubmenu 29106 }, null, 8, [ 29107 "nav-links", 29108 "is-open", 29109 "active-submenu", 29110 "should-determine-current-subcomponents", 29111 "determine-link-is-current", 29112 "onCloseSubmenu", 29113 "onOpenSubmenu" 29114 ]) 29115 ]), 29116 Je(K(o, { 29117 ctas: e.ctas, 29118 "is-open": n.isOpen 29119 }, null, 8, [ 29120 "ctas", 29121 "is-open" 29122 ]), [ 29123 [ 29124 pt, 29125 a.mainMenuActive 29126 ] 29127 ]), 29128 O("div", SD, [ 29129 O("ul", wD, [ 29130 (m(true), x(me, null, ve(r.displayUtilityLinks, (u, c) => (m(), x("li", { 29131 key: c, 29132 class: "n-header-mobile__utilities-list-item" 29133 }, [ 29134 Je(K(l, { 29135 href: u.href, 29136 "link-type": u.linkType, 29137 class: R({ 29138 "is-current": u.isCurrent 29139 }), 29140 "aria-current": u.isCurrent ? "page" : void 0 29141 }, { 29142 default: I(() => [ 29143 re(H(u.label), 1) 29144 ]), 29145 _: 2 29146 }, 1032, [ 29147 "href", 29148 "link-type", 29149 "class", 29150 "aria-current" 29151 ]), [ 29152 [ 29153 pt, 29154 a.mainMenuActive 29155 ] 29156 ]) 29157 ]))), 128)), 29158 (m(true), x(me, null, ve(e.langToggle, (u) => (m(), x("li", { 29159 key: u.lang, 29160 class: "n-header-mobile__utilities-list-item", 29161 "data-n-context": "header-lang-toggle" 29162 }, [ 29163 Je(K(l, { 29164 href: u.href, 29165 "aria-label": u.ariaLabel, 29166 hreflang: u.lang, 29167 lang: u.lang 29168 }, { 29169 default: I(() => [ 29170 re(H(u.label), 1) 29171 ]), 29172 _: 2 29173 }, 1032, [ 29174 "href", 29175 "aria-label", 29176 "hreflang", 29177 "lang" 29178 ]), [ 29179 [ 29180 pt, 29181 a.mainMenuActive 29182 ] 29183 ]) 29184 ]))), 128)) 29185 ]) 29186 ]) 29187 ], 8, AD); 29188 } 29189 const xD = te(CD, [ 29190 [ 29191 "render", 29192 LD 29193 ] 29194 ]), OD = { 29195 name: "n-header-mobile", 29196 directives: { 29197 resize: Fs 29198 }, 29199 components: { 29200 ButtonNav: Vm, 29201 NLink: at, 29202 HeaderLogos: su, 29203 HeaderNavFlyout: Jo, 29204 HeaderNavMobile: xD, 29205 HeaderSearch: kg, 29206 NavBar: Ns, 29207 FocusTrap: lu 29208 }, 29209 mixins: [ 29210 Kn, 29211 Is, 29212 bt, 29213 nt, 29214 Ge, 29215 Lt, 29216 Ai, 29217 ur 29218 ], 29219 emits: [ 29220 "open-overlay", 29221 "close-overlay", 29222 "open-overlay", 29223 "close-overlay" 29224 ], 29225 data() { 29226 return { 29227 isMenuOpen: false, 29228 isSearchOpen: false, 29229 currentHeight: 0, 29230 searchToggleLabel: this.$t("search"), 29231 menuLabel: this.$t("menu.label") 29232 }; 29233 }, 29234 computed: { 29235 showMenuButton() { 29236 return this.navLinks || this.utilityLinks || this.ctas || this.langToggle.length > 1; 29237 } 29238 }, 29239 watch: { 29240 isMenuOpen: function(e) { 29241 e ? this.nestEvents_emit(this.EVENT_TYPES.OPEN) : this.nestEvents_emit(this.EVENT_TYPES.CLOSE); 29242 } 29243 }, 29244 mounted() { 29245 globalThis.addEventListener("orientationchange", () => { 29246 this.onResize(); 29247 }
29247), globalThis.visualViewport.addEventListener("resize", () => { 29248 this.onResize(); 29249 }), this.onResize(); 29250 }, 29251 methods: { 29252 openMenu() { 29253 this.closeSearch(), this.$emit("open-overlay"), this.isMenuOpen = true, this.menuLabel = this.$t("label.close"); 29254 }, 29255 closeMenu() { 29256 this.$emit("close-overlay"), this.isMenuOpen = false, this.menuLabel = this.$t("menu.label"); 29257 }, 29258 openSearch() { 29259 this.closeMenu(), this.$emit("open-overlay"), this.isSearchOpen = true, this.searchToggleLabel = this.$t("label.close"); 29260 }, 29261 closeSearch() { 29262 this.$emit("close-overlay"), this.isSearchOpen = false, this.searchToggleLabel = this.$t("search"); 29263 }, 29264 closeFlyouts() { 29265 this.closeMenu(), this.closeSearch(); 29266 }, 29267 onResize() { 29268 this.currentHeight = this.$refs.headerMobile.clientHeight; 29269 }, 29270 toggleSearch() { 29271 this.dispatchNestEvent({ 29272 action: this.isSearchOpen ? "hide" : "show", 29273 component: "n-mobile-search", 29274 category: "disclosure", 29275 name: this.searchToggleLabel 29276 }), this.isSearchOpen ? this.closeSearch() : this.openSearch(), this.searchToggleLabel = this.isSearchOpen ? this.$t("label.close") : this.$t("search"); 29277 }, 29278 toggleMenu() { 29279 this.dispatchNestEvent({ 29280 action: this.isMenuOpen ? "hide" : "show", 29281 component: "n-header-mobile-menu", 29282 category: "disclosure", 29283 name: this.menuLabel 29284 }), this.isMenuOpen ? this.closeMenu() : this.openMenu(); 29285 }, 29286 handleFlyoutClick(e) { 29287 const t = e.target, n = t.closest('a, button, [role="button"], [role="link"]'), i = t.closest(".n-header-mobile__menu-button"); 29288 n && !i && this.closeFlyouts(); 29289 } 29290 }, 29291 compatConfig: { 29292 MODE: 3 29293 } 29294 }, $D = [ 29295 "id" 29296 ], TD = { 29297 class: "n-header-mobile__logo-wrapper col-auto" 29298 }, ID = { 29299 key: 0, 29300 class: "col-auto has-centered-child" 29301 }, FD = { 29302 class: "n-utility-list n-utility-list--horizontal", 29303 "data-n-context": "header-lang-toggle" 29304 }, ND = { 29305 key: 1, 29306 class: "n-header-mobile__buttons-wrapper col-auto is-hidden-print" 29307 }; 29308 function DD(e, t, n, i, a, r) { 29309 const s = j("HeaderLogos"), o = j("NLink"), l = j("ButtonNav"), u = j("NavBar"), c = j("HeaderSearch"), d = j("HeaderNavFlyout"), p = j("HeaderNavMobile"), b = j("FocusTrap"), h = Gn("resize"); 29310 return Je((m(), x("div", { 29311 id: e.id, 29312 ref: "headerMobile", 29313 class: "n-header-mobile", 29314 "data-n-context": "n-header-mobile", 29315 onKeyup: t[0] || (t[0] = Ye((..._) => r.closeFlyouts && r.closeFlyouts(..._), [ 29316 "escape" 29317 ])) 29318 }, [ 29319 K(b, { 29320 active: !!(a.isMenuOpen || a.isSearchOpen) 29321 }, { 29322 default: I(() => [ 29323 O("div", null, [ 29324 K(u, { 29325 "tag-name": "nav", 29326 "aria-label": e.$t("menu.utility") 29327 }, { 29328 left: I(() => [ 29329 O("div", TD, [ 29330 V(e.$slots, "logos", {}, () => [ 29331 K(s, { 29332 tabindex: a.isMenuOpen || a.isSearchOpen ? -1 : null, 29333 logos: e.logos 29334 }, null, 8, [ 29335 "tabindex", 29336 "logos" 29337 ]) 29338 ]) 29339 ]) 29340 ]), 29341 right: I(() => [ 29342 r.showMenuButton ? M("", true) : (m(), x("div", ID, [ 29343 O("ul", FD, [ 29344 (m(true), x(me, null, ve(e.langToggle, (_) => (m(), x("li", { 29345 key: _.lang, 29346 class: "has-no-margins-around is-clear-margin-right is-hidden-print" 29347 }, [ 29348 K(o, { 29349 href: _.href, 29350 "aria-label": _.ariaLabel, 29351 hreflang: _.lang, 29352 lang: _.lang, 29353 class: "n-link--utility" 29354 }, { 29355 default: I(() => [ 29356 re(H(_.label), 1) 29357 ]), 29358 _: 2 29359 }, 1032, [ 29360 "href", 29361 "aria-label", 29362 "hreflang", 29363 "lang" 29364 ]) 29365 ]))), 128)) 29366 ]) 29367 ])), 29368 e.search && e.search.endpoint || r.showMenuButton ? (m(), x("div", ND, [ 29369 e.search && e.search.endpoint ? (m(), U(l, { 29370 key: 0, 29371 ref: "searchButton", 29372 icon: a.isSearchOpen ? "x" : "search", 29373 "aria-controls": `${e.id}-n-header-flyout-search`, 29374 "aria-expanded": a.isSearchOpen ? "true" : "false", 29375 "data-n-action": "toggle", 29376 class: "n-header-mobile__search-button", 29377 onClick: r.toggleSearch 29378 }, { 29379 default: I(() => [ 29380 re(H(a.isSearchOpen ? e.$t("label.close") : e.$t("search")), 1) 29381 ]), 29382 _: 1 29383 }, 8, [ 29384 "icon", 29385 "aria-controls", 29386 "aria-expanded", 29387 "onClick" 29388 ])) : M("", true), 29389 r.showMenuButton ? (m(), U(l, { 29390 key: 1, 29391 ref: "menuButton", 29392 icon: a.isMenuOpen ? "x" : "menu", 29393 "aria-controls": `${e.id}-n-header-flyout-menu`, 29394 "aria-expanded": a.isMenuOpen ? "true" : "false", 29395 "data-n-action": "toggle", 29396 class: "n-header-mobile__menu-button", 29397 onClick: r.toggleMenu 29398 }, { 29399 default: I(() => [ 29400 re(H(a.isMenuOpen ? e.$t("label.close") : e.$t("menu.label")), 1
29400) 29401 ]), 29402 _: 1 29403 }, 8, [ 29404 "icon", 29405 "aria-controls", 29406 "aria-expanded", 29407 "onClick" 29408 ])) : M("", true) 29409 ])) : M("", true) 29410 ]), 29411 _: 3 29412 }, 8, [ 29413 "aria-label" 29414 ]), 29415 K(d, { 29416 id: `${e.id}-n-header-flyout-search`, 29417 "is-full-width-xs": "", 29418 "is-full-height": "", 29419 "is-open": a.isSearchOpen, 29420 "current-height": a.currentHeight 29421 }, { 29422 default: I(() => [ 29423 e.search && e.search.endpoint ? (m(), U(c, { 29424 key: 0, 29425 search: e.search, 29426 tabindex: a.isSearchOpen ? null : -1, 29427 "visually-hidden": !a.isSearchOpen 29428 }, null, 8, [ 29429 "search", 29430 "tabindex", 29431 "visually-hidden" 29432 ])) : M("", true) 29433 ]), 29434 _: 1 29435 }, 8, [ 29436 "id", 29437 "is-open", 29438 "current-height" 29439 ]), 29440 K(d, { 29441 id: `${e.id}-n-header-flyout-menu`, 29442 "is-full-width-xs": "", 29443 "is-full-height": "", 29444 "is-open": a.isMenuOpen, 29445 "current-height": a.currentHeight, 29446 onCloseMenu: r.closeMenu, 29447 onClick: r.handleFlyoutClick 29448 }, { 29449 default: I(() => [ 29450 K(p, { 29451 "nav-label": e.navLabel, 29452 "nav-links": e.navLinks, 29453 "utility-links": e.utilityLinks, 29454 ctas: e.ctas, 29455 "lang-toggle": e.langToggle, 29456 "is-open": a.isMenuOpen, 29457 "should-determine-current-subcomponents": e.shouldDetermineCurrentSubcomponents, 29458 "determine-link-is-current": e.determineLinkIsCurrent 29459 }, { 29460 navMobile: I(() => [ 29461 V(e.$slots, "navMobile") 29462 ]), 29463 _: 3 29464 }, 8, [ 29465 "nav-label", 29466 "nav-links", 29467 "utility-links", 29468 "ctas", 29469 "lang-toggle", 29470 "is-open", 29471 "should-determine-current-subcomponents", 29472 "determine-link-is-current" 29473 ]) 29474 ]), 29475 _: 3 29476 }, 8, [ 29477 "id", 29478 "is-open", 29479 "current-height", 29480 "onCloseMenu", 29481 "onClick" 29482 ]) 29483 ]) 29484 ]), 29485 _: 3 29486 }, 8, [ 29487 "active" 29488 ]) 29489 ], 40, $D)), [ 29490 [ 29491 h, 29492 r.onResize 29493 ] 29494 ]); 29495 } 29496 const PD = te(OD, [ 29497 [ 29498 "render", 29499 DD 29500 ] 29501 ]), BD = { 29502 name: "n-header", 29503 directives: { 29504 resize: Fs 29505 }, 29506 components: { 29507 HeaderDesktop: fD, 29508 HeaderMobile: PD, 29509 NavBar: Ns, 29510 Overlay: qm 29511 }, 29512 mixins: [ 29513 nt, 29514 Kn, 29515 Is, 29516 bt, 29517 ur 29518 ], 29519 data() { 29520 return { 29521 breakpoints: Kl(), 29522 isOverlayVisible: false 29523 }; 29524 }, 29525 computed: { 29526 headerProps() { 29527 return { 29528 title: this.title, 29529 ctas: this.ctas, 29530 langToggle: this.langToggle, 29531 logos: this.logos, 29532 media: this.media, 29533 navLabel: this.navLabel, 29534 navLinks: this.navLinks, 29535 search: this.search, 29536 utilityLinks: this.utilityLinks, 29537 desktopAlignMenuLeft: this.desktopAlignMenuLeft, 29538 showLogoInUtilityBar: this.showLogoInUtilityBar, 29539 shouldDetermineCurrentSubcomponents: this.shouldDetermineCurrentSubcomponents, 29540 determineLinkIsCurrent: this.determineLinkIsCurrent, 29541 desktopBackground: this.desktopBackground 29542 }; 29543 } 29544 }, 29545 methods: { 29546 closeOverlay() { 29547 this.isOverlayVisible = false; 29548 }, 29549 openOverlay() { 29550 this.isOverlayVisible = true; 29551 }, 29552 onResize() { 29553 const e = this.breakpoints[this.desktopBreakpoint]; 29554 window.innerWidth >= e && this.$refs.headerMobile.closeFlyouts(); 29555 } 29556 } 29557 }, MD = [ 29558 "id" 29559 ], RD = { 29560 class: "h3 n-header__title-text" 29561 }; 29562 function UD(e, t, n, i, a, r) { 29563 const s = j("HeaderMobile"), o = j("HeaderDesktop"), l = j("NavBar"), u = j("Overlay"), c = Gn("resize"); 29564 return Je((m(), x("div", { 29565 id: `n-header-${e.id}`, 29566 ref: "header", 29567 class: R([ 29568 { 29569 "n-header--overlay-visible": a.isOverlayVisible 29570 }, 29571 "n-header" 29572 ]) 29573 }, [ 29574 O("div", { 29575 class: R([ 29576 "n-header__bottom-bar", 29577 [
29578 `is-bg-color-${e.desktopBackground}`, 29579 { 29580 "n-header__bottom-bar--no-shadow": e.disableDesktopShadow 29581 } 29582 ] 29583 ]) 29584 }, [ 29585 K(s, fe(r.headerProps, { 29586 id: `n-header-mobile-${e.id}`, 29587 ref: "headerMobile", 29588 class: e.desktopBreakpoint ? `is-hidden-${e.desktopBreakpoint}-up` : null, 29589 onCloseOverlay: r.closeOverlay, 29590 onOpenOverlay: r.openOverlay 29591 }), { 29592 logos: I(() => [ 29593 V(e.$slots, "logos") 29594 ]), 29595 navMobile: I(() => [ 29596 V(e.$slots, "navMobile") 29597 ]), 29598 _: 3 29599 }, 16, [ 29600 "id", 29601 "class", 29602 "onCloseOverlay", 29603 "onOpenOverlay" 29604 ]), 29605 K(o, fe(r.headerProps, { 29606 id: `n-header-desktop-${e.id}`, 29607 ref: "headerDesktop", 29608 class: e.desktopBreakpoint ? `is-hidden-${e.mobileBreakpoint}-down` : "is-hidden" 29609 }), { 29610 logos: I(() => [ 29611 V(e.$slots, "logos") 29612 ]), 29613 navDesktop: I(() => [ 29614 V(e.$slots, "navDesktop") 29615 ]), 29616 _: 3 29617 }, 16, [ 29618 "id", 29619 "class" 29620 ]) 29621 ], 2), 29622 V(e.$slots, "title", {}, () => [ 29623 e.title ? (m(), U(l, { 29624 key: 0, 29625 class: "n-header__title" 29626 }, { 29627 left: I(() => [ 29628 O("p", RD, H(e.title), 1) 29629 ]), 29630 _: 1 29631 })) : M("", true) 29632 ]), 29633 K(u, { 29634 ref: "headerOverlay", 29635 open: a.isOverlayVisible, 29636 class: "n-header__overlay", 29637 "disable-scrolling": "", 29638 onClick: t[0] || (t[0] = (d) => e.$refs.headerMobile.closeFlyouts(this)) 29639 }, null, 8, [ 29640 "open" 29641 ]) 29642 ], 10, MD)), [ 29643 [ 29644 c, 29645 r.onResize 29646 ] 29647 ]); 29648 } 29649 fU = te(BD, [ 29650 [ 29651 "render", 29652 UD 29653 ] 29654 ]); 29655 function wu(e) { 29656 return bi() ? (vi(e), true) : false; 29657 } 29658 function Lu(e) { 29659 return typeof e == "function" ? e() : ae(e); 29660 } 29661 const VD = typeof window < "u" && typeof document < "u"; 29662 typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope; 29663 const HD = (e) => e != null, jD = Object.prototype.toString, zD = (e) => jD.call(e) === "[object Object]", WD = () => { 29664 }; 29665 function GD(e) { 29666 return kt(); 29667 } 29668 function qD(e, t = true, n) { 29669 GD() ? nn(e, n) : t ? e() : rr(e); 29670 } 29671 function fi(e) { 29672 var t; 29673 const n = Lu(e); 29674 return (t = n == null ? void 0 : n.$el) != null ? t : n; 29675 } 29676 const xu = VD ? window : void 0; 29677 function _p(...e) { 29678 let t, n, i, a; 29679 if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, i, a] = e, t = xu) : [t, n, i, a] = e, !t) return WD; 29680 Array.isArray(n) || (n = [ 29681 n 29682 ]), Array.isArray(i) || (i = [ 29683 i 29684 ]); 29685 const r = [], s = () => { 29686 r.forEach((c) => c()), r.length = 0; 29687 }, o = (c, d, p, b) => (c.addEventListener(d, p, b), () => c.removeEventListener(d, p, b)), l = Ue(() => [ 29688 fi(t), 29689 Lu(a) 29690 ], ([c, d]) => { 29691 if (s(), !c) return; 29692 const p = zD(d) ? { 29693 ...d 29694 } : d; 29695 r.push(...n.flatMap((b) => i.map((h) => o(c, b, h, p)))); 29696 }, {
29697 immediate: true, 29698 flush: "post" 29699 }), u = () => { 29700 l(), s(); 29701 }; 29702 return wu(u), u; 29703 } 29704 function YD() { 29705 const e = pe(false), t = kt(); 29706 return t && nn(() => { 29707 e.value = true; 29708 }, t), e; 29709 } 29710 function Cg(e) { 29711 const t = YD(); 29712 return ne(() => (t.value, !!e())); 29713 } 29714 function KD(e, t, n = {}) { 29715 const { window: i = xu, ...a } = n; 29716 let r; 29717 const s = Cg(() => i && "MutationObserver" in i), o = () => { 29718 r && (r.disconnect(), r = void 0); 29719 }, l = ne(() => { 29720 const p = Lu(e), b = (Array.isArray(p) ? p : [ 29721 p 29722 ]).map(fi).filter(HD); 29723 return new Set(b); 29724 }), u = Ue(() => l.value, (p) => { 29725 o(), s.value && p.size && (r = new MutationObserver(t), p.forEach((b) => r.observe(b, a))); 29726 }, { 29727 immediate: true, 29728 flush: "post" 29729 }), c = () => r == null ? void 0 : r.takeRecords(), d = () => { 29730 o(), u(); 29731 }; 29732 return wu(d), { 29733 isSupported: s, 29734 stop: d, 29735 takeRecords: c 29736 }; 29737 } 29738 function XD(e, t, n = {}) { 29739 const { window: i = xu, ...a } = n; 29740 let r; 29741 const s = Cg(() => i && "ResizeObserver" in i), o = () => { 29742 r && (r.disconnect(), r = void 0); 29743 }, l = ne(() => Array.isArray(e) ? e.map((d) => fi(d)) : [ 29744 fi(e) 29745 ]), u = Ue(l, (d) => { 29746 if (o(), s.value && i) { 29747 r = new ResizeObserver(t); 29748 for (const p of d) p && r.observe(p, a); 29749 } 29750 }, { 29751 immediate: true, 29752 flush: "post" 29753 }), c = () => { 29754 o(), u(); 29755 }; 29756 return wu(c), { 29757 isSupported: s, 29758 stop: c 29759 }; 29760 } 29761 function JD(e, t = {}) { 29762 const { reset: n = true, windowResize: i = true, windowScroll: a = true, immediate: r = true } = t, s = pe(0), o = pe(0), l = pe(0), u = pe(0), c = pe(0), d = pe(0), p = pe(0), b = pe(0); 29763 function h() { 29764 const _ = fi(e); 29765 if (!_) { 29766 n && (s.value = 0, o.value = 0, l.value = 0, u.value = 0, c.value = 0, d.value = 0, p.value = 0, b.value = 0); 29767 return; 29768 } 29769 const C = _.getBoundingClientRect(); 29770 s.value = C.height, o.value = C.bottom, l.value = C.left, u.value = C.right, c.value = C.top, d.value = C.width, p.value = C.x, b.value = C.y; 29771 } 29772 return XD(e, h), Ue(() => fi(e), (_) => !_ && h()), KD(e, h, { 29773 attributeFilter: [ 29774 "style", 29775 "class" 29776 ] 29777 }), a && _p("scroll", h, { 29778 capture: true, 29779 passive: true 29780 }), i && _p("resize", h, { 29781 passive: true 29782 }), qD(() => { 29783 r && h(); 29784 }), { 29785 height: s, 29786 bottom: o, 29787 left: l, 29788 right: u, 29789 top: c, 29790 width: d, 29791 x: p, 29792 y: b, 29793 update: h 29794 }; 29795 } 29796 let QD, ZD, eP, tP, nP, rP, iP; 29797 QD = { 29798 class: "n-app-header__wrapper" 29799 }; 29800 ZD = { 29801 key: 0, 29802 class: "n-app-header__search-bar" 29803 }; 29804 eP = { 29805 class: "n-app-header__action-buttons" 29806 }; 29807 tP = { 29808 key: 1 29809 }; 29810 nP = 400; 29811 mU = { 29812 __name: "AppHeader", 29813 props: { 29814 logoConfig: { 29815 type: Object 29816 }, 29817 search: { 29818 type: Object 29819 }, 29820 hideMobileFlyout: { 29821 type: Boolean 29822 }, 29823 isMobileFlyoutFullHeight: { 29824 type: Boolean 29825 } 29826 }, 29827 setup(e) { 29828 const t = e, { t: n } = fr(), i = pe(), a = pe(), r = pe(), { height: s } = JD(i), { currentNestBreakpoint: o } = ma(), l = ne(() => [ 29829 "md", 29830 "sm", 29831 "xs" 29832 ].includes(o.value)), u = { 29833 media: { 29834 alt: n("logo", [ 29835 n("canadalife") 29836 ]), 29837 src: n("assetUrls.canadalifeTMLogo") 29838 }, 29839 visuallyHidden: true 29840 }, c = ne(() => ({ 29841 logos: [ 29842 { 29843 ...u, 29844 ...t.logoConfig 29845 } 29846 ] 29847 })); 29848 function d() { 29849 const L = l.value ? r.value.$el : a.value.$el; 29850 setTimeout(() => { 29851 L.querySelector("input").focus(); 29852 }, nP); 29853 } 29854 const p = ne(() => { 29855 var L; 29856 return (L = t.search) == null ? void 0 : L.endpoint; 29857 }), b = pe(false); 29858 async function h() { 29859 b.value = !b.value, await rr(), b.value && d(); 29860 } 29861 const _ = { 29862 size: "small", 29863 format: "ghost", 29864 iconPosition: "left" 29865 }, C = ne(() => { 29866 const L = b.value ? n("search") : n("menu.label"); 29867 return { 29868 ..._, 29869 icon: "x", 29870 ariaLabel: n("label.closeWithContext", [ 29871 L 29872 ]) 29873 }; 29874 }), D = ne(() => b.value ? C.value : { 29875 ..._, 29876 icon: "search", 29877 ariaLabel: n("search") 29878 }), N = ne(() => v.value ? C.value : { 29879 ..._, 29880 icon: "menu", 29881 ariaLabel: n("menu.label") 29882 }), v = pe(false), y = ne(() => b.value && l.value); 29883 function E() { 29884 v.value = !v.value; 29885 }
29886 const k = ne(() => v.value || y.value); 29887 function A() { 29888 v.value = false, b.value = false; 29889 } 29890 return ms(() => { 29891 l.value || (v.value = false); 29892 }), (L, w) => (m(), x(me, null, [ 29893 K(ae(lu), { 29894 active: k.value 29895 }, { 29896 default: I(() => [ 29897 O("div", { 29898 ref_key: "header", 29899 ref: i, 29900 class: "n-app-header", 29901 onKeyup: Ye(A, [ 29902 "escape" 29903 ]) 29904 }, [ 29905 O("div", QD, [ 29906 V(L.$slots, "logo", {}, () => [ 29907 K(ae(su), Pt(Bt(c.value)), null, 16) 29908 ]), 29909 l.value ? M("", true) : (m(), x("div", ZD, [ 29910 Je(K(ae(ua), fe({ 29911 ref_key: "searchForm", 29912 ref: a, 29913 "input-format": "nav" 29914 }, e.search, { 29915 placeholder: L.$t("search") 29916 }), null, 16, [ 29917 "placeholder" 29918 ]), [ 29919 [ 29920 pt, 29921 b.value 29922 ] 29923 ]) 29924 ])), 29925 O("div", eP, [ 29926 !l.value && !b.value ? V(L.$slots, "action-buttons", { 29927 key: 0 29928 }) : M("", true), 29929 l.value ? (m(), x("div", tP, [ 29930 p.value && !v.value ? (m(), U(ae(ze), fe({ 29931 key: 0 29932 }, D.value, { 29933 onClick: h 29934 }), null, 16)) : M("", true), 29935 !e.hideMobileFlyout && !y.value ? (m(), U(ae(ze), fe({ 29936 key: 1 29937 }, N.value, { 29938 onClick: E 29939 }), null, 16)) : M("", true) 29940 ])) : p.value ? (m(), U(ae(ze), fe({ 29941 key: 2 29942 }, D.value, { 29943 onClick: h 29944 }), { 29945 default: I(() => [ 29946 re(H(L.$t("search")), 1) 29947 ]), 29948 _: 1 29949 }, 16)) : M("", true) 29950 ]) 29951 ]), 29952 K(ae(Jo), { 29953 "is-full-height": e.isMobileFlyoutFullHeight, 29954 "is-open": v.value, 29955 "current-height": ae(s) 29956 }, { 29957 default: I(() => [ 29958 w[0] || (w[0] = O("div", { 29959 id: "n-app-header-mobile-flyout" 29960 }, null, -1)), 29961 V(L.$slots, "mobile-flyout") 29962 ]), 29963 _: 3 29964 }, 8, [ 29965 "is-full-height", 29966 "is-open", 29967 "current-height" 29968 ]), 29969 K(ae(Jo), { 29970 "is-full-height": "", 29971 "is-open": y.value, 29972 "current-height": ae(s) 29973 }, { 29974 default: I(() => [ 29975 K(ae(ua), fe({ 29976 ref_key: "mobileSearchForm", 29977 ref: r, 29978 "input-format": "nav" 29979 }, e.search), null, 16) 29980 ]), 29981 _: 1 29982 }, 8, [ 29983 "is-open", 29984 "current-height" 29985 ]) 29986 ], 544) 29987 ]), 29988 _: 3 29989 }, 8, [ 29990 "active" 29991 ]), 29992 K(ae(qm), { 29993 open: k.value, 29994 "disable-scrolling": "", 29995 class: "n-app-header__overlay", 29996 onClick: A 29997 }, null, 8, [ 29998 "open" 29999 ]) 30000 ], 64)); 30001 } 30002 }; 30003 rP = { 30004 name: "n-block-content-box", 30005 components: { 30006 Block: ft 30007 }, 30008 props: { 30009 align: { 30010 type: String, 30011 default: "left", 30012 validator: (e) => [ 30013 "left", 30014 "right" 30015 ].includes(e) 30016 }, 30017 background: { 30018 ...Se.background, 30019 default: "primary" 30020 }, 30021 ignoreReverseItems: { 30022 type: Boolean, 30023 default: false 30024 }, 30025 hasVerticallyCenteredChildren: { 30026 type: Boolean, 30027 default: false 30028 }, 30029 animation: Se.animation 30030 }, 30031 mounted() { 30032 if (this.animation === "scroll") { 30033 let e = { 30034 threshold: 0.6 30035 }; 30036 tn(this.$el, "is-scrolled-into-view", e); 30037 } 30038 }, 30039 compatConfig: { 30040 MODE: 3 30041 } 30042 }; 30043 iP = { 30044 class: "n-block-content-box__content" 30045 }; 30046 function aP(e, t, n, i, a, r) { 30047 const s = j("Block"); 30048 return m(), U(s, { 30049 class: R([ 30050 [ 30051 { 30052 "no-animation": n.animation === "none" 30053 }, 30054 { 30055 "has-load-animation": n.animation === "load" 30056 } 30057 ], 30058 "n-block-content-box is-clear-padding-horizontal-xl" 30059 ]), 30060 "clear-spacing-after": "" 30061 }, {
30062 default: I(() => [ 30063 O("div", { 30064 class: R([ 30065 { 30066 "is-float-right": n.align === "right" 30067 }, 30068 "n-block-content-box__container" 30069 ]) 30070 }, [ 30071 O("div", { 30072 class: R([ 30073 [ 30074 `is-bg-color-${n.background}`, 30075 { 30076 "has-reverse-items": [ 30077 "primary", 30078 "bg-dark", 30079 "secondary" 30080 ].includes(n.background) && !n.ignoreReverseItems 30081 }, 30082 { 30083 "has-vertically-centered-children": n.hasVerticallyCenteredChildren 30084 } 30085 ], 30086 "n-block-content-box__content-container" 30087 ]) 30088 }, [ 30089 O("div", iP, [ 30090 V(e.$slots, "default") 30091 ]) 30092 ], 2) 30093 ], 2) 30094 ]), 30095 _: 3 30096 }, 8, [ 30097 "class" 30098 ]); 30099 } 30100 const Ca = te(rP, [ 30101 [ 30102 "render", 30103 aP 30104 ] 30105 ]), sP = { 30106 name: "n-breadcrumbs", 30107 components: { 30108 NLink: at 30109 }, 30110 mixins: [ 30111 Ge, 30112 nt 30113 ], 30114 props: { 30115 links: { 30116 type: Array, 30117 default: () => [] 30118 }, 30119 title: { 30120 type: String, 30121 default: function() { 30122 return Ze.global.t("breadcrumbs.title"); 30123 } 30124 }, 30125 expandCrumbsLabel: { 30126 type: String, 30127 default: function() { 30128 return Ze.global.t("breadcrumbs.title"); 30129 } 30130 }, 30131 hideHome: { 30132 type: Boolean 30133 }, 30134 hideCurrentPage: { 30135 type: Boolean 30136 } 30137 }, 30138 data() { 30139 return { 30140 expanded: false 30141 }; 30142 }, 30143 computed: { 30144 firstLink() { 30145 return this.links[0] || null; 30146 }, 30147 middleCrumbs() { 30148 return this.links.slice(1, -1); 30149 }, 30150 lastLink() { 30151 return this.links.length > 1 ? this.links[this.links.length - 1] : null; 30152 }, 30153 hasMiddleCrumbs() { 30154 return this.links.length > 2; 30155 }, 30156 ariaControlsIDs() { 30157 let e = ""; 30158 for (let t in this.middleCrumbs) { 30159 let n = this.id + "-" + t + "-crumb "; 30160 e += n; 30161 } 30162 return e.trim(); 30163 }, 30164 SEOjson() { 30165 const e = []; 30166 for (let t = 0; t < this.links.length; t++) { 30167 const n = this.links[t], i = Yf(n.href); 30168 e.push({ 30169 "@type": "ListItem", 30170 position: t + 1, 30171 item: { 30172 "@id": i, 30173 item: i, 30174 name: n.label 30175 } 30176 }); 30177 } 30178 return e; 30179 } 30180 }, 30181 methods: { 30182 toggleMiddleCrumbs() { 30183 this.expanded = !this.expanded, this.$nextTick(() => { 30184 var e; 30185 (e = this.$el.querySelector(".n-breadcrumbs__item:not(.is-hidden-md-down) button")) == null || e.focus(); 30186 }); 30187 } 30188 } 30189 }, oP = [ 30190 "aria-label" 30191 ], lP = { 30192 class: "is-sr-only", 30193 "aria-live": "polite", 30194 "aria-atomic": "true" 30195 }, uP = { 30196 class: "n-breadcrumbs__container n:p-0 is-full-width n:mb-md" 30197 }, cP = { 30198 key: 0, 30199 class: "n-breadcrumbs__item" 30200 }, dP = [ 30201 "href" 30202 ], pP = [ 30203 "hidden" 30204 ], fP = [ 30205 "id" 30206 ], mP = { 30207 key: 1, 30208 class: "n-breadcrumbs__item" 30209 }; 30210 function hP(e, t, n, i, a, r) { 30211 const s = j("NLink"); 30212 return m(), x("nav", { 30213 class: "n-breadcrumbs", 30214 "aria-label": n.title 30215 }, [ 30216 O("div", lP, H(a.expanded ? `${n.expandCrumbsLabel} Expanded` : ""), 1), 30217 O("ol", uP, [ 30218 !n.hideHome && r.firstLink ? (m(), x("li", cP, [ 30219 O("a", { 30220 class: "nowrap", 30221 href: r.firstLink.href 30222 }, H(r.firstLink.label), 9, dP), 30223 t[0] || (t[0] = O("span", { 30224 "aria-hidden": "true", 30225 class: "n-breadcrumbs__divider" 30226 }, " / ", -1)) 30227 ])) : M("", true), 30228 O("li", { 30229 hidden: a.expanded && r.hasMiddleCrumbs, 30230 class: "n-breadcrumbs__item n-breadcrumbs__item--expandable is-hidden-lg-up" 30231 }, [ 30232 K(s, { 30233 tabindex: "0", 30234 role: "button", 30235 "aria-label": n.expandCrumbsLabel, 30236 "aria-expanded": a.expanded,
30237 "aria-controls": r.ariaControlsIDs, 30238 onClick: r.toggleMiddleCrumbs, 30239 onKeydown: [ 30240 Ye(r.toggleMiddleCrumbs, [ 30241 "enter" 30242 ]), 30243 Ye(sn(r.toggleMiddleCrumbs, [ 30244 "prevent" 30245 ]), [ 30246 "space" 30247 ]) 30248 ] 30249 }, { 30250 default: I(() => t[1] || (t[1] = [ 30251 re(" ... ") 30252 ])), 30253 _: 1 30254 }, 8, [ 30255 "aria-label", 30256 "aria-expanded", 30257 "aria-controls", 30258 "onClick", 30259 "onKeydown" 30260 ]), 30261 t[2] || (t[2] = O("span", { 30262 "aria-hidden": "true", 30263 class: "n-breadcrumbs__divider" 30264 }, " / ", -1)) 30265 ], 8, pP), 30266 (m(true), x(me, null, ve(r.middleCrumbs, (o, l) => (m(), x("li", { 30267 id: `${e.id}-${l}-crumb`, 30268 key: o.label + o.href, 30269 class: R([ 30270 "n-breadcrumbs__item", 30271 { 30272 "is-hidden-md-down": !a.expanded 30273 } 30274 ]) 30275 }, [ 30276 K(s, { 30277 href: o.href 30278 }, { 30279 default: I(() => [ 30280 re(H(o.label), 1) 30281 ]), 30282 _: 2 30283 }, 1032, [ 30284 "href" 30285 ]), 30286 t[3] || (t[3] = O("span", { 30287 "aria-hidden": "true", 30288 class: "n-breadcrumbs__divider" 30289 }, " / ", -1)) 30290 ], 10, fP))), 128)), 30291 !n.hideCurrentPage && r.lastLink ? (m(), x("li", mP, [ 30292 K(s, { 30293 "aria-current": "page", 30294 href: r.lastLink.href 30295 }, { 30296 default: I(() => [ 30297 re(H(r.lastLink.label), 1) 30298 ]), 30299 _: 1 30300 }, 8, [ 30301 "href" 30302 ]), 30303 t[4] || (t[4] = O("span", { 30304 "aria-hidden": "true", 30305 class: "n-breadcrumbs__divider" 30306 }, " / ", -1)) 30307 ])) : M("", true) 30308 ]), 30309 (m(), U(ue("script"), { 30310 type: "application/ld+json" 30311 }, { 30312 default: I(() => [ 30313 re(' { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": ' + H(r.SEOjson) + " } ", 1) 30314 ]), 30315 _: 1 30316 })) 30317 ], 8, oP); 30318 } 30319 let gP; 30320 hU = te(sP, [ 30321 [ 30322 "render", 30323 hP 30324 ] 30325 ]); 30326 gP = { 30327 name: "n-video-inline-play-pause-button", 30328 components: { 30329 NButton: ze 30330 }, 30331 mixins: [ 30332 Ge, 30333 Lt 30334 ], 30335 props: { 30336 context: { 30337 type: String, 30338 required: true 30339 }, 30340 paused: { 30341 type: Boolean, 30342 default: false 30343 } 30344 }, 30345 emits: [ 30346 "click" 30347 ], 30348 watch: { 30349 paused: function() { 30350 this.nestEvents_emit(this.paused ? this.EVENT_TYPES.PAUSE : this.EVENT_TYPES.PLAY, { 30351 textContent: this.$t(this.paused ? "button.pause" : "button.play") 30352 }); 30353 } 30354 } 30355 }; 30356 function bP(e, t, n, i, a, r) { 30357 const s = j("NButton"); 30358 return m(), U(s, { 30359 format: "media-control", 30360 icon: n.paused ? "playFill" : "pause", 30361 "aria-label": `${e.$t(n.paused ? "label.play" : "label.pause")} ${n.context}`, 30362 onClick: t[0] || (t[0] = (o) => e.$emit("click")) 30363 }, null, 8, [ 30364 "icon", 30365 "aria-label" 30366 ]); 30367 } 30368 const vP = te(gP, [ 30369 [ 30370 "render", 30371 bP 30372 ] 30373 ]), yP = { 30374 name: "n-video-inline", 30375 components: { 30376 VideoInlinePlayPauseButton: vP 30377 }, 30378 mixins: [ 30379 Xl 30380 ], 30381 props: { 30382 source: { 30383 type: String, 30384 required: true 30385 }, 30386 poster: { 30387 type: String 30388 }, 30389 context: { 30390 type: String 30391 } 30392 }, 30393 compatConfig: { 30394 MODE: 3 30395 }, 30396 setup() { 30397 const e = pe(null), t = pe(false); 30398 function n() { 30399 t.value ? e.value.play() : e.value.pause(), t.value = !t.value; 30400 } 30401 return { 30402 inlineVideo: e, 30403 isPaused: t, 30404 togglePlaying: n 30405 }; 30406 } 30407 }, _P = { 30408 class: "n-video-inline" 30409 }, EP = [ 30410 "poster" 30411 ], kP = [ 30412 "src" 30413 ], CP = [ 30414 "src" 30415 ], AP = { 30416 class: "n-video-inline__controls" 30417 }; 30418 function SP(e, t, n, i, a, r) { 30419 const s = j("VideoInlinePlayPauseButton"); 30420 return m(), x("div", _P, [ 30421 O("video", { 30422 ref: "inlineVideo", 30423 poster: n.poster, 30424 style: en(e.mediaPosition_styleObject), 30425 class: "n-video-inline__video", 30426 autoplay: "", 30427 loop: "", 30428 muted: "", 30429 playsinline: "", 30430 preload: "metadata", 30431 "aria-hidden": "true" 30432 }, [ 30433 O("source", { 30434 src: n.source 30435 }, null, 8, kP), 30436 O("img", { 30437 src: n.poster, 30438 class: "n-video-inline__poster", 30439 alt: "", 30440 loading: "lazy"
30441 }, null, 8, CP) 30442 ], 12, EP), 30443 O("div", AP, [ 30444 K(s, { 30445 class: "n-video-inline__button", 30446 paused: i.isPaused, 30447 context: n.context, 30448 onClick: i.togglePlaying 30449 }, null, 8, [ 30450 "paused", 30451 "context", 30452 "onClick" 30453 ]) 30454 ]) 30455 ]); 30456 } 30457 let LP, xP; 30458 wP = te(yP, [ 30459 [ 30460 "render", 30461 SP 30462 ] 30463 ]); 30464 LP = { 30465 name: "n-video-player", 30466 components: { 30467 CollapseDrawer: zh 30468 }, 30469 mixins: [ 30470 Ge 30471 ], 30472 props: { 30473 title: { 30474 type: String 30475 }, 30476 transcriptHeadingLevel: { 30477 type: Number, 30478 default: 3 30479 }, 30480 service: { 30481 type: String, 30482 required: true, 30483 validator: (e) => [ 30484 "vidyard", 30485 "youtube", 30486 "vimeo" 30487 ].includes(e) 30488 }, 30489 serviceProps: { 30490 type: Object, 30491 default: () => ({ 30492 enableCookies: false 30493 }) 30494 }, 30495 source: { 30496 type: String, 30497 required: true 30498 }, 30499 aspectRatio: { 30500 type: String, 30501 default: "16:9", 30502 validator: (e) => [ 30503 "21:9", 30504 "16:9", 30505 "4:3", 30506 "1:1" 30507 ].includes(e) 30508 }, 30509 clearSpacingAfter: Se.clearSpacingAfter 30510 }, 30511 computed: { 30512 embedSrc() { 30513 let e, t; 30514 if (this.service === "vidyard") return e = this.getVidyardId(this.source), t = this.formatVidyardUrl(e), t; 30515 if (this.service === "youtube") return e = this.getYouTubeId(this.source), t = this.formatYouTubeUrl(e), t; 30516 if (this.service === "vimeo") { 30517 const n = this.getVimeoId(this.source); 30518 return t = this.formatVimeoUrl(n.id, n.hash), t; 30519 } 30520 return ""; 30521 } 30522 }, 30523 methods: { 30524 removeParams: function(e) { 30525 return e.includes("?") ? (e = e.split("?"), e = e[0]) : e.includes("&") && (e = e.split("&"), e = e[0]), e; 30526 }, 30527 getVidyardId: function(e) { 30528 return [ 30529 "https://", 30530 "//", 30531 "www.", 30532 "play.", 30533 "embed.", 30534 "share.", 30535 "share/", 30536 "watch/", 30537 "vidyard.com/", 30538 ".html?v=3.1.1", 30539 ".js", 30540 "js=", 30541 "?" 30542 ].forEach(function(t) { 30543 e = e.replace(t, ""); 30544 }), this.removeParams(e); 30545 }, 30546 getYouTubeId: function(e) { 30547 return [ 30548 "https://", 30549 "www.", 30550 "youtube.com/", 30551 "youtu.be/", 30552 "watch", 30553 "v/", 30554 "embed/", 30555 "?", 30556 "v=" 30557 ].forEach(function(t) { 30558 e = e.replace(t, ""); 30559 }), this.removeParams(e); 30560 }, 30561 getVimeoId: function(e) { 30562 let t = null; 30563 if (e.includes("?h=")) { 30564 const n = e.match(/\?h=([^&]+)/); 30565 n && (t = n[1]); 30566 } 30567 if ([ 30568 "https://", 30569 "www.", 30570 "player.", 30571 "vimeo.com/", 30572 "video/" 30573 ].forEach(function(n) { 30574 e = e.replace(n, ""); 30575 }), !t && e.includes("/")) { 30576 const n = e.split("/"); 30577 t = n[1], e = n[0]; 30578 } 30579 return { 30580 id: this.removeParams(e), 30581 hash: t 30582 }; 30583 }, 30584 formatVidyardUrl: function(e) { 30585 return `//play.vidyard.com/${e}.html?`; 30586 }, 30587 formatYouTubeUrl: function(e) { 30588 return `https://www.${this.serviceProps.enableCookies ? "youtube" : "youtube-nocookie"}.com/embed/${e}?modestbranding=1&rel=0`; 30589 }, 30590 formatVimeoUrl: function(e, t) { 30591 let n = `https://player.vimeo.com/video/${e}`; 30592 return t && (n += `?h=${t}`), n; 30593 } 30594 }, 30595 compatConfig: { 30596 MODE: 3 30597 } 30598 }; 30599 xP = [ 30600 "src", 30601 "title" 30602 ]; 30603 function OP(e, t, n, i, a, r) { 30604 const s = j("CollapseDrawer"); 30605 return m(), x("div", { 30606 class: R([ 30607 [ 30608 { 30609 "is-block-gapped": !n.clearSpacingAfter 30610 } 30611 ], 30612 "n-video-player-wrapper container-compressed is-hidden-print" 30613 ]) 30614 }, [ 30615 O("div", { 30616 class: R(`n-video-player n-video-player--${n.aspectRatio}`) 30617 }, [ 30618 O("iframe", { 30619 src: r.embedSrc, 30620 title: n.title, 30621 class: "n-video-player__embed", 30622 frameborder: "0", 30623 allow: "encrypted-media", 30624 allowfullscreen: "" 30625 }, null, 8, xP) 30626 ], 2), 30627 e.$slots.default ? (m(), U(s, { 30628 key: 0, 30629 "title-heading-level": n.transcriptHeadingLevel, 30630 title: e.$t("videoPlayer.transcriptButton"), 30631 "close-aria-label": e.$t("videoPlayer.closeAriaLabelTranscript", [ 30632 n.title 30633 ]) 30634 }, { 30635 default: I(() => [ 30636 V(e.$slots, "default") 30637 ]), 30638 _: 3 30639 }, 8, [ 30640 "title-heading-level", 30641 "title", 30642 "close-aria-label" 30643 ])) : M("", true) 30644 ], 2); 30645 } 30646 let TP, IP; 30647 $P = te(LP, [ 30648 [ 30649 "render", 30650 OP 30651 ] 30652 ]); 30653 TP = { 30654 name: "n-media", 30655 components: { 30656 NPicture: jn, 30657 VideoInline: wP, 30658 VideoPlayer: $P 30659 }, 30660 mixins: [ 30661 Xl 30662 ], 30663 props: { 30664 mediaType: { 30665 type: String, 30666 default: "picture", 30667 validator: (e) => [ 30668 "picture", 30669 "inline-video", 30670 "video-player" 30671 ].includes(e) 30672 }, 30673 media: { 30674 type: [ 30675 String, 30676 Object 30677 ] 30678 }, 30679 zoomOnScrollIntoView: { 30680 type: Boolean, 30681 default: false 30682 }, 30683 clearSpacingAfter: Se.clearSpacingAfter 30684 }, 30685 compatConfig: { 30686 MODE: 3 30687 } 30688 }; 30689 IP = { 30690 class: "n-media" 30691 }; 30692 function FP(e, t, n, i, a, r) { 30693 const s = j("NPicture"), o = j("VideoInline"), l = j("VideoPlayer"); 30694 return m(), x("div", IP, [ 30695 n.mediaType === "picture" ? (m(), U(s, fe({ 30696 key: 0 30697 }, n.media, { 30698 fit: n.media.fit || e.fit, 30699 position: n.media.position || e.position, 30700 "max-width": n.media.maxWidth || e.maxWidth, 30701 "zoom-on-scroll-into-view": n.zoomOnScrollIntoView, 30702 class: "n-media__picture" 30703 }), { 30704 default: I(() => [ 30705 V(e.$slots, "default") 30706 ]), 30707 _: 3 30708 }, 16, [ 30709 "fit", 30710 "position", 30711 "max-width", 30712 "zoom-on-scroll-into-view" 30713 ])) : M("", true), 30714 n.mediaType === "inline-video" ? (m(), U(o, { 30715 key: 1, 30716 source: n.media.videoSrc, 30717 poster: n.media.imgSrc, 30718 fit: n.media.fit || e.fit, 30719 position: n.media.position || e.position, 30720 "max-width": n.media.maxWidth || e.maxWidth, 30721 class: "n-media__video-inline" 30722 }, null, 8, [ 30723 "source", 30724 "poster", 30725 "fit", 30726 "position", 30727 "max-width" 30728 ])) : M("", true), 30729 n.mediaType === "video-player" ? (m(), U(l, fe({ 30730 key: 2 30731 }, n.media, { 30732 "clear-spacing-after": n.clearSpacingAfter, 30733 class: "n-media__video-player" 30734 }), { 30735 default: I(() => [ 30736 V(e.$slots, "default") 30737 ]), 30738 _: 3 30739 }, 16, [ 30740 "clear-spacing-after" 30741 ])) : M("", true) 30742 ]); 30743 } 30744 Vt = te(TP, [ 30745 [ 30746 "render", 30747 FP 30748 ] 30749 ]); 30750 function NP(e, t) { 30751 typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack)); 30752 } 30753 const ps = typeof window < "u", yr = (e, t = false) => t ? Symbol.for(e) : Symbol(e), DP = (e, t, n) => PP({ 30754 l: e, 30755 k: t, 30756 s: n 30757 }), PP = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ht = (e) => typeof e == "number" && isFinite(e), BP = (e) => Sg(e) === "[object Date]", or = (e) => Sg(e) === "[object RegExp]", qs = (e) => Pe(e) && Object.keys(e).length === 0, $t = Object.assign, MP = Object.create, tt = (e = null) => MP(e); 30758 let Ep; 30759 const Un = () => Ep || (Ep = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : tt()); 30760 function kp(e) { 30761 return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "="); 30762 } 30763 function Cp(e) { 30764 return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">"); 30765 } 30766 function RP(e) { 30767 return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (t, n, i) => `${n}="${Cp(i)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (t, n, i) => `${n}='${Cp(i)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [ 30768 /(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi, 30769 /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi 30770 ].forEach((t) => { 30771 e = e.replace(t, "$1javascript:"); 30772 }), e; 30773 } 30774 const UP = Object.prototype.hasOwnProperty; 30775 function yn(e, t) { 30776 return UP.call(e, t); 30777 } 30778 const ct = Array.isArray, lt = (e) => typeof e == "function", ge = (e) => typeof e == "string", Re = (e) => typeof e == "boolean", Xe = (e) => e !== null && typeof e == "object", VP = (e) => Xe(e) && lt(e.then) && lt(e.catch), Ag = Object.prototype.toString, Sg = (e) => Ag.call(e), Pe = (e) => { 30779 if (!Xe(e)) return false;
vendor: 4,336 bytes, lines 30780-30895
30780 const t = Object.getPrototypeOf(e); 30781 return t === null || t.constructor === Object; 30782 }, HP = (e) => e == null ? "" : ct(e) || Pe(e) && e.toString === Ag ? JSON.stringify(e, null, 2) : String(e); 30783 function jP(e, t = "") { 30784 return e.reduce((n, i, a) => a === 0 ? n + i : n + t + i, ""); 30785 } 30786 function Ys(e) { 30787 let t = e; 30788 return () => ++t; 30789 } 30790 const Ia = (e) => !Xe(e) || ct(e); 30791 function Ga(e, t) { 30792 if (Ia(e) || Ia(t)) throw new Error("Invalid value"); 30793 const n = [ 30794 { 30795 src: e, 30796 des: t 30797 } 30798 ]; 30799 for (; n.length; ) { 30800 const { src: i, des: a } = n.pop(); 30801 Object.keys(i).forEach((r) => { 30802 r !== "__proto__" && (Xe(i[r]) && !Xe(a[r]) && (a[r] = Array.isArray(i[r]) ? [] : tt()), Ia(a[r]) || Ia(i[r]) ? a[r] = i[r] : n.push({ 30803 src: i[r], 30804 des: a[r] 30805 })); 30806 }); 30807 } 30808 } 30809 function zP(e, t, n) { 30810 return { 30811 line: e, 30812 column: t, 30813 offset: n 30814 }; 30815 } 30816 function fs(e, t, n) { 30817 return { 30818 start: e, 30819 end: t 30820 }; 30821 } 30822 const WP = /\{([0-9a-zA-Z]+)\}/g; 30823 function wg(e, ...t) { 30824 return t.length === 1 && GP(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(WP, (n, i) => t.hasOwnProperty(i) ? t[i] : ""); 30825 } 30826 const Lg = Object.assign, Ap = (e) => typeof e == "string", GP = (e) => e !== null && typeof e == "object"; 30827 function xg(e, t = "") { 30828 return e.reduce((n, i, a) => a === 0 ? n + i : n + t + i, ""); 30829 } 30830 const Ou = { 30831 USE_MODULO_SYNTAX: 1, 30832 __EXTEND_POINT__: 2 30833 }, qP = { 30834 [Ou.USE_MODULO_SYNTAX]: "Use modulo before '{{0}}'." 30835 }; 30836 function YP(e, t, ...n) { 30837 const i = wg(qP[e], ...n || []), a = { 30838 message: String(i), 30839 code: e 30840 }; 30841 return t && (a.location = t), a; 30842 } 30843 const $e = { 30844 EXPECTED_TOKEN: 1, 30845 INVALID_TOKEN_IN_PLACEHOLDER: 2, 30846 UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3, 30847 UNKNOWN_ESCAPE_SEQUENCE: 4, 30848 INVALID_UNICODE_ESCAPE_SEQUENCE: 5, 30849 UNBALANCED_CLOSING_BRACE: 6, 30850 UNTERMINATED_CLOSING_BRACE: 7, 30851 EMPTY_PLACEHOLDER: 8, 30852 NOT_ALLOW_NEST_PLACEHOLDER: 9, 30853 INVALID_LINKED_FORMAT: 10, 30854 MUST_HAVE_MESSAGES_IN_PLURAL: 11, 30855 UNEXPECTED_EMPTY_LINKED_MODIFIER: 12, 30856 UNEXPECTED_EMPTY_LINKED_KEY: 13, 30857 UNEXPECTED_LEXICAL_ANALYSIS: 14, 30858 UNHANDLED_CODEGEN_NODE_TYPE: 15, 30859 UNHANDLED_MINIFIER_NODE_TYPE: 16, 30860 __EXTEND_POINT__: 17 30861 }, KP = { 30862 [$e.EXPECTED_TOKEN]: "Expected token: '{0}'", 30863 [$e.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'", 30864 [$e.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder", 30865 [$e.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}", 30866 [$e.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}", 30867 [$e.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace", 30868 [$e.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace", 30869 [$e.EMPTY_PLACEHOLDER]: "Empty placeholder", 30870 [$e.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder", 30871 [$e.INVALID_LINKED_FORMAT]: "Invalid linked format", 30872 [$e.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages", 30873 [$e.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier", 30874 [$e.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key", 30875 [$e.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'", 30876 [$e.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'", 30877 [$e.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'" 30878 }; 30879 function $i(e, t, n = {}) { 30880 const { domain: i, messages: a, args: r } = n, s = wg((a || KP)[e] || "", ...r || []), o = new SyntaxError(String(s)); 30881 return o.code = e, t && (o.location = t), o.domain = i, o; 30882 } 30883 function XP(e) { 30884 throw e; 30885 } 30886 const Dn = " ", JP = "\r", Yt = ` 30887`, QP = "\u2028", ZP = "\u2029"; 30888 function eB(e) { 30889 const t = e; 30890 let n = 0, i = 1, a = 1, r = 0; 30891 const s = (A) => t[A] === JP && t[A + 1] === Yt, o = (A) => t[A] === Yt, l = (A) => t[A] === ZP, u = (A) => t[A] === QP, c = (A) => s(A) || o(A) || l(A) || u(A), d = () => n, p = () => i, b = () => a, h = () => r, _ = (A) => s(A) || l(A) || u(A) ? Yt : t[A], C = () => _(n), D = () => _(n + r); 30892 function N() { 30893 return r = 0, c(n) && (i++, a = 0), s(n) && n++, n++, a++, t[n]; 30894 } 30895 function v() {
30896 return s(n + r) && r++, r++, t[n + r]; 30897 } 30898 function y() { 30899 n = 0, i = 1, a = 1, r = 0; 30900 } 30901 function E(A = 0) { 30902 r = A; 30903 } 30904 function k() { 30905 const A = n + r; 30906 for (; A !== n; ) N(); 30907 r = 0; 30908 } 30909 return { 30910 index: d, 30911 line: p, 30912 column: b, 30913 peekOffset: h, 30914 charAt: _, 30915 currentChar: C, 30916 currentPeek: D, 30917 next: N, 30918 peek: v, 30919 reset: y, 30920 resetPeek: E, 30921 skipToPeek: k 30922 }; 30923 } 30924 const Zn = void 0, Sp = "'", tB = "tokenizer"; 30925 function nB(e, t = {}) { 30926 const n = t.location !== false, i = eB(e), a = () => i.index(), r = () => zP(i.line(), i.column(), i.index()), s = r(), o = a(), l = { 30927 currentType: 14, 30928 offset: o, 30929 startLoc: s, 30930 endLoc: s, 30931 lastType: 14, 30932 lastOffset: o, 30933 lastStartLoc: s, 30934 lastEndLoc: s, 30935 braceNest: 0, 30936 inLinked: false, 30937 text: "" 30938 }, u = () => l, { onError: c } = t; 30939 function d(f, g, F, ...W) { 30940 const S = u(); 30941 if (g.column += F, g.offset += F, c) { 30942 const $ = n ? fs(S.startLoc, g) : null, le = $i(f, $, { 30943 domain: tB, 30944 args: W 30945 }); 30946 c(le); 30947 } 30948 } 30949 function p(f, g, F) { 30950 f.endLoc = r(), f.currentType = g; 30951 const W = { 30952 type: g 30953 }; 30954 return n && (W.loc = fs(f.startLoc, f.endLoc)), F != null && (W.value = F), W; 30955 } 30956 const b = (f) => p(f, 14); 30957 function h(f, g) { 30958 return f.currentChar() === g ? (f.next(), g) : (d($e.EXPECTED_TOKEN, r(), 0, g), ""); 30959 } 30960 function _(f) { 30961 let g = ""; 30962 for (; f.currentPeek() === Dn || f.currentPeek() === Yt; ) g += f.currentPeek(), f.peek(); 30963 return g; 30964 } 30965 function C(f) { 30966 const g = _(f); 30967 return f.skipToPeek(), g; 30968 } 30969 function D(f) { 30970 if (f === Zn) return false; 30971 const g = f.charCodeAt(0); 30972 return g >= 97 && g <= 122 || g >= 65 && g <= 90 || g === 95; 30973 } 30974 function N(f) { 30975 if (f === Zn) return false; 30976 const g = f.charCodeAt(0); 30977 return g >= 48 && g <= 57; 30978 } 30979 function v(f, g) { 30980 const { currentType: F } = g; 30981 if (F !== 2) return false; 30982 _(f); 30983 const W = D(f.currentPeek()); 30984 return f.resetPeek(), W; 30985 } 30986 function y(f, g) { 30987 const { currentType: F } = g; 30988 if (F !== 2) return false; 30989 _(f); 30990 const W = f.currentPeek() === "-" ? f.peek() : f.currentPeek(), S = N(W); 30991 return f.resetPeek(), S; 30992 } 30993 function E(f, g) { 30994 const { currentType: F } = g; 30995 if (F !== 2) return false; 30996 _(f); 30997 const W = f.currentPeek() === Sp; 30998 return f.resetPeek(), W; 30999 } 31000 function k(f, g) { 31001 const { currentType: F } = g; 31002 if (F !== 8) return false; 31003 _(f); 31004 const W = f.currentPeek() === "."; 31005 return f.resetPeek(), W; 31006 } 31007 function A(f, g) { 31008 const { currentType: F } = g; 31009 if (F !== 9) return false; 31010 _(f); 31011 const W = D(f.currentPeek()); 31012 return f.resetPeek(), W; 31013 } 31014 function L(f, g) { 31015 const { currentType: F } = g; 31016 if (!(F === 8 || F === 12)) return false; 31017 _(f); 31018 const W = f.currentPeek() === ":"; 31019 return f.resetPeek(), W; 31020 } 31021 function w(f, g) { 31022 const { currentType: F } = g; 31023 if (F !== 10) return false; 31024 const W = () => { 31025 const $ = f.currentPeek(); 31026 return $ === "{" ? D(f.peek()) : $ === "@" || $ === "%" || $ === "|" || $ === ":" || $ === "." || $ === Dn || !$ ? false : $ === Yt ? (f.peek(), W()) : P(f, false); 31027 }, S = W(); 31028 return f.resetPeek(), S; 31029 } 31030 function z(f) { 31031 _(f); 31032 const g = f.currentPeek() === "|"; 31033 return f.resetPeek(), g; 31034 } 31035 function T(f) { 31036 const g = _(f), F = f.currentPeek() === "%" && f.peek() === "{"; 31037 return f.resetPeek(), { 31038 isModulo: F, 31039 hasSpace: g.length > 0 31040 }; 31041 } 31042 function P(f, g = true) { 31043 const F = (S = false, $ = "", le = false) => { 31044 const de = f.currentPeek(); 31045 return de === "{" ? $ === "%" ? false : S : de === "@" || !de ? $ === "%" ? true : S : de === "%" ? (f.peek(), F(S, "%", true)) : de === "|" ? $ === "%" || le ? true : !($ === Dn || $ === Yt) : de === Dn ? (f.peek(), F(true, Dn, le)) : de === Yt ? (f.peek(), F(true, Yt, le)) : true; 31046 }, W = F(); 31047 return g && f.resetPeek(), W; 31048 } 31049 function G(f, g) { 31050 const F = f.currentChar(); 31051 return F === Zn ? Zn : g(F) ? (f.next(), F) : null; 31052 } 31053 function X(f) { 31054 const g = f.charCodeAt(0); 31055 return g >= 97 && g <= 122 || g >= 65 && g <= 90 || g >= 48 && g <= 57 || g === 95 || g === 36; 31056 } 31057 function Y(f) { 31058 return G(f, X); 31059 } 31060 function q(f) { 31061 const g = f.charCodeAt(0); 31062 return g >= 97 && g <= 122 || g >= 65 && g <= 90 || g >= 48 && g <= 57 || g === 95 || g === 36 || g === 45; 31063 } 31064 function J(f) { 31065 return G(f, q); 31066 } 31067 function Z(f) { 31068 const g = f.charCodeAt(0); 31069 return g >= 48 && g <= 57; 31070 } 31071 function se(f) { 31072 return G(f, Z); 31073 } 31074 function Q(f) { 31075 const g = f.charCodeAt(0); 31076 return g >= 48 && g <= 57 || g >= 65 && g <= 70 || g >= 97 && g <= 102; 31077 } 31078 function oe(f) { 31079 return G(f, Q); 31080 } 31081 function ce(f) { 31082 let g = "", F = ""; 31083 for (; g = se(f); ) F += g; 31084 return F; 31085 } 31086 function be(f) { 31087 C(f); 31088 const g = f.currentChar(); 31089 return g !== "%" && d($e.EXPECTED_TOKEN, r(), 0, g), f.next(), "%"; 31090 } 31091 function ye(f) { 31092 let g = ""; 31093 for (; ; ) { 31094 const F = f.currentChar(); 31095 if (F === "{" || F === "}" || F === "@" || F === "|" || !F) break; 31096 if (F === "%") if (P(f)) g += F, f.next(); 31097 else break; 31098 else if (F === Dn || F === Yt) if (P(f)) g += F, f.next(); 31099 else { 31100 if (z(f)) break; 31101 g += F, f.next(); 31102 } 31103 else g += F, f.next(); 31104 } 31105 return g; 31106 } 31107 function ke(f) { 31108 C(f); 31109 let g = "", F = ""; 31110 for (; g = J(f); ) F += g; 31111 return f.currentChar() === Zn && d($e.UNTERMINATED_CLOSING_BRACE, r(), 0), F; 31112 } 31113 function Ae(f) { 31114 C(f); 31115 let g = ""; 31116 return f.currentChar() === "-" ? (f.next(), g += `-${ce(f)}`) : g += ce(f), f.currentChar() === Zn && d($e.UNTERMINATED_CLOSING_BRACE, r(), 0), g; 31117 } 31118 function _e(f) { 31119 return f !== Sp && f !== Yt; 31120 } 31121 function Te(f) { 31122 C(f), h(f, "'"); 31123 let g = "", F = ""; 31124 for (; g = G(f, _e); ) g === "\\" ? F += Ee(f) : F += g; 31125 const W = f.currentChar(); 31126 return W === Yt || W === Zn ? (d($e.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), W === Yt && (f.next(), h(f, "'")), F) : (h(f, "'"), F); 31127 } 31128 function Ee(f) { 31129 const g = f.currentChar(); 31130 switch (g) { 31131 case "\\":
vendor: 18,905 bytes, lines 31132-31724
31132 case "'": 31133 return f.next(), `\\${g}`; 31134 case "u": 31135 return Le(f, g, 4); 31136 case "U": 31137 return Le(f, g, 6); 31138 default: 31139 return d($e.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, g), ""; 31140 } 31141 } 31142 function Le(f, g, F) { 31143 h(f, g); 31144 let W = ""; 31145 for (let S = 0; S < F; S++) { 31146 const $ = oe(f); 31147 if (!$) { 31148 d($e.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${g}${W}${f.currentChar()}`); 31149 break; 31150 } 31151 W += $; 31152 } 31153 return `\\${g}${W}`; 31154 } 31155 function Be(f) { 31156 return f !== "{" && f !== "}" && f !== Dn && f !== Yt; 31157 } 31158 function Ie(f) { 31159 C(f); 31160 let g = "", F = ""; 31161 for (; g = G(f, Be); ) F += g; 31162 return F; 31163 } 31164 function Ve(f) { 31165 let g = "", F = ""; 31166 for (; g = Y(f); ) F += g; 31167 return F; 31168 } 31169 function B(f) { 31170 const g = (F) => { 31171 const W = f.currentChar(); 31172 return W === "{" || W === "%" || W === "@" || W === "|" || W === "(" || W === ")" || !W || W === Dn ? F : (F += W, f.next(), g(F)); 31173 }; 31174 return g(""); 31175 } 31176 function ie(f) { 31177 C(f); 31178 const g = h(f, "|"); 31179 return C(f), g; 31180 } 31181 function Fe(f, g) { 31182 let F = null; 31183 switch (f.currentChar()) { 31184 case "{": 31185 return g.braceNest >= 1 && d($e.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), f.next(), F = p(g, 2, "{"), C(f), g.braceNest++, F; 31186 case "}": 31187 return g.braceNest > 0 && g.currentType === 2 && d($e.EMPTY_PLACEHOLDER, r(), 0), f.next(), F = p(g, 3, "}"), g.braceNest--, g.braceNest > 0 && C(f), g.inLinked && g.braceNest === 0 && (g.inLinked = false), F; 31188 case "@": 31189 return g.braceNest > 0 && d($e.UNTERMINATED_CLOSING_BRACE, r(), 0), F = qe(f, g) || b(g), g.braceNest = 0, F; 31190 default: { 31191 let W = true, S = true, $ = true; 31192 if (z(f)) return g.braceNest > 0 && d($e.UNTERMINATED_CLOSING_BRACE, r(), 0), F = p(g, 1, ie(f)), g.braceNest = 0, g.inLinked = false, F; 31193 if (g.braceNest > 0 && (g.currentType === 5 || g.currentType === 6 || g.currentType === 7)) return d($e.UNTERMINATED_CLOSING_BRACE, r(), 0), g.braceNest = 0, He(f, g); 31194 if (W = v(f, g)) return F = p(g, 5, ke(f)), C(f), F; 31195 if (S = y(f, g)) return F = p(g, 6, Ae(f)), C(f), F; 31196 if ($ = E(f, g)) return F = p(g, 7, Te(f)), C(f), F; 31197 if (!W && !S && !$) return F = p(g, 13, Ie(f)), d($e.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, F.value), C(f), F; 31198 break; 31199 } 31200 } 31201 return F; 31202 } 31203 function qe(f, g) { 31204 const { currentType: F } = g; 31205 let W = null; 31206 const S = f.currentChar(); 31207 switch ((F === 8 || F === 9 || F === 12 || F === 10) && (S === Yt || S === Dn) && d($e.INVALID_LINKED_FORMAT, r(), 0), S) { 31208 case "@": 31209 return f.next(), W = p(g, 8, "@"), g.inLinked = true, W; 31210 case ".": 31211 return C(f), f.next(), p(g, 9, "."); 31212 case ":": 31213 return C(f), f.next(), p(g, 10, ":"); 31214 default: 31215 return z(f) ? (W = p(g, 1, ie(f)), g.braceNest = 0, g.inLinked = false, W) : k(f, g) || L(f, g) ? (C(f), qe(f, g)) : A(f, g) ? (C(f), p(g, 12, Ve(f))) : w(f, g) ? (C(f), S === "{" ? Fe(f, g) || W : p(g, 11, B(f))) : (F === 8 && d($e.INVALID_LINKED_FORMAT, r(), 0), g.braceNest = 0, g.inLinked = false, He(f, g)); 31216 } 31217 } 31218 function He(f, g) { 31219 let F = { 31220 type: 14 31221 }; 31222 if (g.braceNest > 0) return Fe(f, g) || b(g); 31223 if (g.inLinked) return qe(f, g) || b(g); 31224 switch (f.currentChar()) { 31225 case "{": 31226 return Fe(f, g) || b(g); 31227 case "}": 31228 return d($e.UNBALANCED_CLOSING_BRACE, r(), 0), f.next(), p(g, 3, "}"); 31229 case "@": 31230 return qe(f, g) || b(g); 31231 default: { 31232 if (z(f)) return F = p(g, 1, ie(f)), g.braceNest = 0, g.inLinked = false, F; 31233 const { isModulo: W, hasSpace: S } = T(f); 31234 if (W) return S ? p(g, 0, ye(f)) : p(g, 4, be(f)); 31235 if (P(f)) return p(g, 0, ye(f)); 31236 break; 31237 } 31238 } 31239 return F; 31240 } 31241 function xt() { 31242 const { currentType: f, offset: g, startLoc: F, endLoc: W } = l; 31243 return l.lastType = f, l.lastOffset = g, l.lastStartLoc = F, l.lastEndLoc = W, l.offset = a(), l.startLoc = r(), i.currentChar() === Zn ? p(l, 14) : He(i, l); 31244 } 31245 return { 31246 nextToken: xt, 31247 currentOffset: a, 31248 currentPosition: r, 31249 context: u 31250 }; 31251 } 31252 const rB = "parser", iB = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g; 31253 function aB(e, t, n) { 31254 switch (e) { 31255 case "\\\\": 31256 return "\\"; 31257 case "\\'": 31258 return "'"; 31259 default: { 31260 const i = parseInt(t || n, 16); 31261 return i <= 55295 || i >= 57344 ? String.fromCodePoint(i) : "\uFFFD"; 31262 } 31263 } 31264 } 31265 function sB(e = {}) { 31266 const t = e.location !== false, { onError: n, onWarn: i } = e; 31267 function a(v, y, E, k, ...A) { 31268 const L = v.currentPosition(); 31269 if (L.offset += k, L.column += k, n) { 31270 const w = t ? fs(E, L) : null, z = $i(y, w, { 31271 domain: rB, 31272 args: A 31273 }); 31274 n(z); 31275 } 31276 } 31277 function r(v, y, E, k, ...A) { 31278 const L = v.currentPosition(); 31279 if (L.offset += k, L.column += k, i) { 31280 const w = t ? fs(E, L) : null; 31281 i(YP(y, w, A)); 31282 } 31283 } 31284 function s(v, y, E) { 31285 const k = { 31286 type: v 31287 }; 31288 return t && (k.start = y, k.end = y, k.loc = { 31289 start: E, 31290 end: E 31291 }), k; 31292 } 31293 function o(v, y, E, k) { 31294 t && (v.end = y, v.loc && (v.loc.end = E)); 31295 } 31296 function l(v, y) { 31297 const E = v.context(), k = s(3, E.offset, E.startLoc); 31298 return k.value = y, o(k, v.currentOffset(), v.currentPosition()), k; 31299 } 31300 function u(v, y) { 31301 const E = v.context(), { lastOffset: k, lastStartLoc: A } = E, L = s(5, k, A); 31302 return L.index = parseInt(y, 10), v.nextToken(), o(L, v.currentOffset(), v.currentPosition()), L; 31303 } 31304 function c(v, y, E) { 31305 const k = v.context(), { lastOffset: A, lastStartLoc: L } = k, w = s(4, A, L); 31306 return w.key = y, E === true && (w.modulo = true), v.nextToken(), o(w, v.currentOffset(), v.currentPosition()), w; 31307 } 31308 function d(v, y) { 31309 const E = v.context(), { lastOffset: k, lastStartLoc: A } = E, L = s(9, k, A); 31310 return L.value = y.replace(iB, aB), v.nextToken(), o(L, v.currentOffset(), v.currentPosition()), L; 31311 } 31312 function p(v) { 31313 const y = v.nextToken(), E = v.context(), { lastOffset: k, lastStartLoc: A } = E, L = s(8, k, A); 31314 return y.type !== 12 ? (a(v, $e.UNEXPECTED_EMPTY_LINKED_MODIFIER, E.lastStartLoc, 0), L.value = "", o(L, k, A), { 31315 nextConsumeToken: y, 31316 node: L 31317 }) : (y.value == null && a(v, $e.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, dn(y)), L.value = y.value || "", o(L, v.currentOffset(), v.currentPosition()), { 31318 node: L 31319 }); 31320 } 31321 function b(v, y) { 31322 const E = v.context(), k = s(7, E.offset, E.startLoc); 31323 return k.value = y, o(k, v.currentOffset(), v.currentPosition()), k; 31324 } 31325 function h(v) { 31326 const y = v.context(), E = s(6, y.offset, y.startLoc); 31327 let k = v.nextToken(); 31328 if (k.type === 9) { 31329 const A = p(v); 31330 E.modifier = A.node, k = A.nextConsumeToken || v.nextToken(); 31331 } 31332 switch (k.type !== 10 && a(v, $e.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, dn(k)), k = v.nextToken(), k.type === 2 && (k = v.nextToken()), k.type) { 31333 case 11: 31334 k.value == null && a(v, $e.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, dn(k)), E.key = b(v, k.value || ""); 31335 break; 31336 case 5: 31337 k.value == null && a(v, $e.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, dn(k)), E.key = c(v, k.value || ""); 31338 break; 31339 case 6: 31340 k.value == null && a(v, $e.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, dn(k)), E.key = u(v, k.value || ""); 31341 break; 31342 case 7: 31343 k.value == null && a(v, $e.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, dn(k)), E.key = d(v, k.value || ""); 31344 break; 31345 default: { 31346 a(v, $e.UNEXPECTED_EMPTY_LINKED_KEY, y.lastStartLoc, 0); 31347 const A = v.context(), L = s(7, A.offset, A.startLoc); 31348 return L.value = "", o(L, A.offset, A.startLoc), E.key = L, o(E, A.offset, A.startLoc), { 31349 nextConsumeToken: k, 31350 node: E 31351 }; 31352 } 31353 } 31354 return o(E, v.currentOffset(), v.currentPosition()), { 31355 node: E 31356 }; 31357 } 31358 function _(v) { 31359 const y = v.context(), E = y.currentType === 1 ? v.currentOffset() : y.offset, k = y.currentType === 1 ? y.endLoc : y.startLoc, A = s(2, E, k); 31360 A.items = []; 31361 let L = null, w = null; 31362 do { 31363 const P = L || v.nextToken(); 31364 switch (L = null, P.type) { 31365 case 0: 31366 P.value == null && a(v, $e.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, dn(P)), A.items.push(l(v, P.value || "")); 31367 break; 31368 case 6: 31369 P.value == null && a(v, $e.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, dn(P)), A.items.push(u(v, P.value || "")); 31370 break; 31371 case 4: 31372 w = true; 31373 break; 31374 case 5: 31375 P.value == null && a(v, $e.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, dn(P)), A.items.push(c(v, P.value || "", !!w)), w && (r(v, Ou.USE_MODULO_SYNTAX, y.lastStartLoc, 0, dn(P)), w = null); 31376 break; 31377 case 7: 31378 P.value == null && a(v, $e.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, dn(P)), A.items.push(d(v, P.value || "")); 31379 break; 31380 case 8: { 31381 const G = h(v); 31382 A.items.push(G.node), L = G.nextConsumeToken || null; 31383 break; 31384 } 31385 } 31386 } while (y.currentType !== 14 && y.currentType !== 1); 31387 const z = y.currentType === 1 ? y.lastOffset : v.currentOffset(), T = y.currentType === 1 ? y.lastEndLoc : v.currentPosition(); 31388 return o(A, z, T), A; 31389 } 31390 function C(v, y, E, k) { 31391 const A = v.context(); 31392 let L = k.items.length === 0; 31393 const w = s(1, y, E); 31394 w.cases = [], w.cases.push(k); 31395 do { 31396 const z = _(v); 31397 L || (L = z.items.length === 0), w.cases.push(z); 31398 } while (A.currentType !== 14); 31399 return L && a(v, $e.MUST_HAVE_MESSAGES_IN_PLURAL, E, 0), o(w, v.currentOffset(), v.currentPosition()), w; 31400 } 31401 function D(v) { 31402 const y = v.context(), { offset: E, startLoc: k } = y, A = _(v); 31403 return y.currentType === 14 ? A : C(v, E, k, A); 31404 } 31405 function N(v) { 31406 const y = nB(v, Lg({}, e)), E = y.context(), k = s(0, E.offset, E.startLoc); 31407 return t && k.loc && (k.loc.source = v), k.body = D(y), e.onCacheKey && (k.cacheKey = e.onCacheKey(v)), E.currentType !== 14 && a(y, $e.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, v[E.offset] || ""), o(k, y.currentOffset(), y.currentPosition()), k; 31408 } 31409 return { 31410 parse: N 31411 }; 31412 } 31413 function dn(e) { 31414 if (e.type === 14) return "EOF"; 31415 const t = (e.value || "").replace(/\r?\n/gu, "\\n"); 31416 return t.length > 10 ? t.slice(0, 9) + "\u2026" : t; 31417 } 31418 function oB(e, t = {}) { 31419 const n = { 31420 ast: e, 31421 helpers: /* @__PURE__ */ new Set() 31422 }; 31423 return { 31424 context: () => n, 31425 helper: (i) => (n.helpers.add(i), i) 31426 }; 31427 } 31428 function wp(e, t) { 31429 for (let n = 0; n < e.length; n++) $u(e[n], t); 31430 } 31431 function $u(e, t) { 31432 switch (e.type) { 31433 case 1: 31434 wp(e.cases, t), t.helper("plural"); 31435 break; 31436 case 2: 31437 wp(e.items, t); 31438 break; 31439 case 6: { 31440 $u(e.key, t), t.helper("linked"), t.helper("type"); 31441 break; 31442 } 31443 case 5: 31444 t.helper("interpolate"), t.helper("list"); 31445 break; 31446 case 4: 31447 t.helper("interpolate"), t.helper("named"); 31448 break; 31449 } 31450 } 31451 function lB(e, t = {}) { 31452 const n = oB(e); 31453 n.helper("normalize"), e.body && $u(e.body, n); 31454 const i = n.context(); 31455 e.helpers = Array.from(i.helpers); 31456 } 31457 function uB(e) { 31458 const t = e.body; 31459 return t.type === 2 ? Lp(t) : t.cases.forEach((n) => Lp(n)), e; 31460 } 31461 function Lp(e) { 31462 if (e.items.length === 1) { 31463 const t = e.items[0]; 31464 (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value); 31465 } else { 31466 const t = []; 31467 for (let n = 0; n < e.items.length; n++) { 31468 const i = e.items[n]; 31469 if (!(i.type === 3 || i.type === 9) || i.value == null) break; 31470 t.push(i.value); 31471 } 31472 if (t.length === e.items.length) { 31473 e.static = xg(t); 31474 for (let n = 0; n < e.items.length; n++) { 31475 const i = e.items[n]; 31476 (i.type === 3 || i.type === 9) && delete i.value; 31477 } 31478 } 31479 } 31480 } 31481 const cB = "minifier"; 31482 function Qr(e) { 31483 switch (e.t = e.type, e.type) { 31484 case 0: { 31485 const t = e; 31486 Qr(t.body), t.b = t.body, delete t.body; 31487 break; 31488 } 31489 case 1: { 31490 const t = e, n = t.cases; 31491 for (let i = 0; i < n.length; i++) Qr(n[i]); 31492 t.c = n, delete t.cases; 31493 break; 31494 } 31495 case 2: { 31496 const t = e, n = t.items; 31497 for (let i = 0; i < n.length; i++) Qr(n[i]); 31498 t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static); 31499 break; 31500 } 31501 case 3: 31502 case 9: 31503 case 8: 31504 case 7: { 31505 const t = e; 31506 t.value && (t.v = t.value, delete t.value); 31507 break; 31508 } 31509 case 6: { 31510 const t = e; 31511 Qr(t.key), t.k = t.key, delete t.key, t.modifier && (Qr(t.modifier), t.m = t.modifier, delete t.modifier); 31512 break; 31513 } 31514 case 5: { 31515 const t = e; 31516 t.i = t.index, delete t.index; 31517 break; 31518 } 31519 case 4: { 31520 const t = e; 31521 t.k = t.key, delete t.key; 31522 break; 31523 } 31524 default: 31525 throw $i($e.UNHANDLED_MINIFIER_NODE_TYPE, null, { 31526 domain: cB, 31527 args: [ 31528 e.type 31529 ] 31530 }); 31531 } 31532 delete e.type; 31533 } 31534 const dB = "parser"; 31535 function pB(e, t) { 31536 const { filename: n, breakLineCode: i, needIndent: a } = t, r = t.location !== false, s = { 31537 filename: n, 31538 code: "", 31539 column: 1, 31540 line: 1, 31541 offset: 0, 31542 map: void 0, 31543 breakLineCode: i, 31544 needIndent: a, 31545 indentLevel: 0 31546 }; 31547 r && e.loc && (s.source = e.loc.source); 31548 const o = () => s; 31549 function l(b, h) { 31550 s.code += b; 31551 } 31552 function u(b, h = true) { 31553 const _ = h ? i : ""; 31554 l(a ? _ + " ".repeat(b) : _); 31555 } 31556 function c(b = true) { 31557 const h = ++s.indentLevel; 31558 b && u(h); 31559 } 31560 function d(b = true) { 31561 const h = --s.indentLevel; 31562 b && u(h); 31563 } 31564 function p() { 31565 u(s.indentLevel); 31566 } 31567 return { 31568 context: o, 31569 push: l, 31570 indent: c, 31571 deindent: d, 31572 newline: p, 31573 helper: (b) => `_${b}`, 31574 needIndent: () => s.needIndent 31575 }; 31576 } 31577 function fB(e, t) { 31578 const { helper: n } = e; 31579 e.push(`${n("linked")}(`), mi(e, t.key), t.modifier ? (e.push(", "), mi(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")"); 31580 } 31581 function mB(e, t) { 31582 const { helper: n, needIndent: i } = e; 31583 e.push(`${n("normalize")}([`), e.indent(i()); 31584 const a = t.items.length; 31585 for (let r = 0; r < a && (mi(e, t.items[r]), r !== a - 1); r++) e.push(", "); 31586 e.deindent(i()), e.push("])"); 31587 } 31588 function hB(e, t) { 31589 const { helper: n, needIndent: i } = e; 31590 if (t.cases.length > 1) { 31591 e.push(`${n("plural")}([`), e.indent(i()); 31592 const a = t.cases.length; 31593 for (let r = 0; r < a && (mi(e, t.cases[r]), r !== a - 1); r++) e.push(", "); 31594 e.deindent(i()), e.push("])"); 31595 } 31596 } 31597 function gB(e, t) { 31598 t.body ? mi(e, t.body) : e.push("null"); 31599 } 31600 function mi(e, t) { 31601 const { helper: n } = e; 31602 switch (t.type) { 31603 case 0: 31604 gB(e, t); 31605 break; 31606 case 1: 31607 hB(e, t); 31608 break; 31609 case 2: 31610 mB(e, t); 31611 break; 31612 case 6: 31613 fB(e, t); 31614 break; 31615 case 8: 31616 e.push(JSON.stringify(t.value), t); 31617 break; 31618 case 7: 31619 e.push(JSON.stringify(t.value), t); 31620 break; 31621 case 5: 31622 e.push(`${n("interpolate")}(${n("list")}(${t.index}))`, t); 31623 break; 31624 case 4: 31625 e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`, t); 31626 break; 31627 case 9: 31628 e.push(JSON.stringify(t.value), t); 31629 break; 31630 case 3: 31631 e.push(JSON.stringify(t.value), t); 31632 break; 31633 default: 31634 throw $i($e.UNHANDLED_CODEGEN_NODE_TYPE, null, { 31635 domain: dB, 31636 args: [ 31637 t.type 31638 ] 31639 }); 31640 } 31641 } 31642 const bB = (e, t = {}) => { 31643 const n = Ap(t.mode) ? t.mode : "normal", i = Ap(t.filename) ? t.filename : "message.intl"; 31644 t.sourceMap; 31645 const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : ` 31646`, r = t.needIndent ? t.needIndent : n !== "arrow", s = e.helpers || [], o = pB(e, { 31647 filename: i, 31648 breakLineCode: a, 31649 needIndent: r 31650 }); 31651 o.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), o.indent(r), s.length > 0 && (o.push(`const { ${xg(s.map((c) => `${c}: _${c}`), ", ")} } = ctx`), o.newline()), o.push("return "), mi(o, e), o.deindent(r), o.push("}"), delete e.helpers; 31652 const { code: l, map: u } = o.context(); 31653 return { 31654 ast: e, 31655 code: l, 31656 map: u ? u.toJSON() : void 0 31657 }; 31658 }; 31659 function vB(e, t = {}) { 31660 const n = Lg({}, t), i = !!n.jit, a = !!n.minify, r = n.optimize == null ? true : n.optimize, s = sB(n).parse(e); 31661 return i ? (r && uB(s), a && Qr(s), { 31662 ast: s, 31663 code: "" 31664 }) : (lB(s, n), bB(s, n)); 31665 } 31666 function yB() { 31667 typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Un().__INTLIFY_PROD_DEVTOOLS__ = false), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (Un().__INTLIFY_JIT_COMPILATION__ = false), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Un().__INTLIFY_DROP_MESSAGE_COMPILER__ = false); 31668 } 31669 function On(e) { 31670 return Xe(e) && Tu(e) === 0 && (yn(e, "b") || yn(e, "body")); 31671 } 31672 const Og = [ 31673 "b", 31674 "body" 31675 ]; 31676 function _B(e) { 31677 return _r(e, Og); 31678 } 31679 const $g = [ 31680 "c", 31681 "cases" 31682 ]; 31683 function EB(e) { 31684 return _r(e, $g, []); 31685 } 31686 const Tg = [ 31687 "s", 31688 "static" 31689 ]; 31690 function kB(e) { 31691 return _r(e, Tg); 31692 } 31693 const Ig = [ 31694 "i", 31695 "items" 31696 ]; 31697 function CB(e) { 31698 return _r(e, Ig, []); 31699 } 31700 const Fg = [ 31701 "t", 31702 "type" 31703 ]; 31704 function Tu(e) { 31705 return _r(e, Fg); 31706 } 31707 const Ng = [ 31708 "v", 31709 "value" 31710 ]; 31711 function Fa(e, t) { 31712 const n = _r(e, Ng); 31713 if (n != null) return n; 31714 throw ca(t); 31715 } 31716 const Dg = [ 31717 "m", 31718 "modifier" 31719 ]; 31720 function AB(e) { 31721 return _r(e, Dg); 31722 } 31723 const Pg = [ 31724 "k",
vendor: 5,143 bytes, lines 31725-31972
31725 "key" 31726 ]; 31727 function SB(e) { 31728 const t = _r(e, Pg); 31729 if (t) return t; 31730 throw ca(6); 31731 } 31732 function _r(e, t, n) { 31733 for (let i = 0; i < t.length; i++) { 31734 const a = t[i]; 31735 if (yn(e, a) && e[a] != null) return e[a]; 31736 } 31737 return n; 31738 } 31739 const Bg = [ 31740 ...Og, 31741 ...$g, 31742 ...Tg, 31743 ...Ig, 31744 ...Pg, 31745 ...Dg, 31746 ...Ng, 31747 ...Fg 31748 ]; 31749 function ca(e) { 31750 return new Error(`unhandled node type: ${e}`); 31751 } 31752 const Er = []; 31753 Er[0] = { 31754 w: [ 31755 0 31756 ], 31757 i: [ 31758 3, 31759 0 31760 ], 31761 "[": [ 31762 4 31763 ], 31764 o: [ 31765 7 31766 ] 31767 }; 31768 Er[1] = { 31769 w: [ 31770 1 31771 ], 31772 ".": [ 31773 2 31774 ], 31775 "[": [ 31776 4 31777 ], 31778 o: [ 31779 7 31780 ] 31781 }; 31782 Er[2] = { 31783 w: [ 31784 2 31785 ], 31786 i: [ 31787 3, 31788 0 31789 ], 31790 0: [ 31791 3, 31792 0 31793 ] 31794 }; 31795 Er[3] = { 31796 i: [ 31797 3, 31798 0 31799 ], 31800 0: [ 31801 3, 31802 0 31803 ], 31804 w: [ 31805 1, 31806 1 31807 ], 31808 ".": [ 31809 2, 31810 1 31811 ], 31812 "[": [ 31813 4, 31814 1 31815 ], 31816 o: [ 31817 7, 31818 1 31819 ] 31820 }; 31821 Er[4] = { 31822 "'": [ 31823 5, 31824 0 31825 ], 31826 '"': [ 31827 6, 31828 0 31829 ], 31830 "[": [ 31831 4, 31832 2 31833 ], 31834 "]": [ 31835 1, 31836 3 31837 ], 31838 o: 8, 31839 l: [ 31840 4, 31841 0 31842 ] 31843 }; 31844 Er[5] = { 31845 "'": [ 31846 4, 31847 0 31848 ], 31849 o: 8, 31850 l: [ 31851 5, 31852 0 31853 ] 31854 }; 31855 Er[6] = { 31856 '"': [ 31857 4, 31858 0 31859 ], 31860 o: 8, 31861 l: [ 31862 6, 31863 0 31864 ] 31865 }; 31866 const wB = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/; 31867 function LB(e) { 31868 return wB.test(e); 31869 } 31870 function xB(e) { 31871 const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1); 31872 return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e; 31873 } 31874 function OB(e) { 31875 if (e == null) return "o"; 31876 switch (e.charCodeAt(0)) { 31877 case 91: 31878 case 93: 31879 case 46: 31880 case 34: 31881 case 39: 31882 return e; 31883 case 95: 31884 case 36: 31885 case 45: 31886 return "i"; 31887 case 9: 31888 case 10: 31889 case 13: 31890 case 160: 31891 case 65279: 31892 case 8232: 31893 case 8233: 31894 return "w"; 31895 } 31896 return "i"; 31897 } 31898 function $B(e) { 31899 const t = e.trim(); 31900 return e.charAt(0) === "0" && isNaN(parseInt(e)) ? false : LB(t) ? xB(t) : "*" + t; 31901 } 31902 function TB(e) { 31903 const t = []; 31904 let n = -1, i = 0, a = 0, r, s, o, l, u, c, d; 31905 const p = []; 31906 p[0] = () => { 31907 s === void 0 ? s = o : s += o; 31908 }, p[1] = () => { 31909 s !== void 0 && (t.push(s), s = void 0); 31910 }, p[2] = () => { 31911 p[0](), a++; 31912 }, p[3] = () => { 31913 if (a > 0) a--, i = 4, p[0](); 31914 else { 31915 if (a = 0, s === void 0 || (s = $B(s), s === false)) return false; 31916 p[1](); 31917 } 31918 }; 31919 function b() { 31920 const h = e[n + 1]; 31921 if (i === 5 && h === "'" || i === 6 && h === '"') return n++, o = "\\" + h, p[0](), true; 31922 } 31923 for (; i !== null; ) if (n++, r = e[n], !(r === "\\" && b())) { 31924 if (l = OB(r), d = Er[i], u = d[l] || d.l || 8, u === 8 || (i = u[0], u[1] !== void 0 && (c = p[u[1]], c && (o = r, c() === false)))) return; 31925 if (i === 7) return t; 31926 } 31927 } 31928 const xp = /* @__PURE__ */ new Map(); 31929 function IB(e, t) { 31930 return Xe(e) ? e[t] : null; 31931 } 31932 function FB(e, t) { 31933 if (!Xe(e)) return null; 31934 let n = xp.get(t); 31935 if (n || (n = TB(t), n && xp.set(t, n)), !n) return null; 31936 const i = n.length; 31937 let a = e, r = 0; 31938 for (; r < i; ) { 31939 const s = n[r]; 31940 if (Bg.includes(s) && On(a)) return null; 31941 const o = a[s]; 31942 if (o === void 0 || lt(a)) return null; 31943 a = o, r++; 31944 } 31945 return a; 31946 } 31947 const NB = (e) => e, DB = (e) => "", PB = "text", BB = (e) => e.length === 0 ? "" : jP(e), MB = HP; 31948 function Op(e, t) { 31949 return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0; 31950 } 31951 function RB(e) { 31952 const t = ht(e.pluralIndex) ? e.pluralIndex : -1; 31953 return e.named && (ht(e.named.count) || ht(e.named.n)) ? ht(e.named.count) ? e.named.count : ht(e.named.n) ? e.named.n : t : t; 31954 } 31955 function UB(e, t) { 31956 t.count || (t.count = e), t.n || (t.n = e); 31957 } 31958 function VB(e = {}) { 31959 const t = e.locale, n = RB(e), i = Xe(e.pluralRules) && ge(t) && lt(e.pluralRules[t]) ? e.pluralRules[t] : Op, a = Xe(e.pluralRules) && ge(t) && lt(e.pluralRules[t]) ? Op : void 0, r = (C) => C[i(n, C.length, a)], s = e.list || [], o = (C) => s[C], l = e.named || tt(); 31960 ht(e.pluralIndex) && UB(n, l); 31961 const u = (C) => l[C]; 31962 function c(C) { 31963 return (lt(e.messages) ? e.messages(C) : Xe(e.messages) ? e.messages[C] : false) || (e.parent ? e.parent.message(C) : DB); 31964 } 31965 const d = (C) => e.modifiers ? e.modifiers[C] : NB, p = Pe(e.processor) && lt(e.processor.normalize) ? e.processor.normalize : BB, b = Pe(e.processor) && lt(e.processor.interpolate) ? e.processor.interpolate : MB, h = Pe(e.processor) && ge(e.processor.type) ? e.processor.type : PB, _ = { 31966 list: o, 31967 named: u, 31968 plural: r, 31969 linked: (C, ...D) => { 31970 const [N, v] = D; 31971 let y = "text", E = ""; 31972 D.length === 1 ? Xe(N) ? (E = N.modifier || E, y = N.type || y) : ge(N) && (E = N || E) : D.length === 2 && (ge(N) && (E = N || E), ge(v) && (y = v || y));
31973 const k = c(C)(_), A = y === "vnode" && ct(k) && E ? k[0] : k; 31974 return E ? d(E)(A, y) : A; 31975 }, 31976 message: c, 31977 type: h, 31978 interpolate: b, 31979 normalize: p, 31980 values: $t(tt(), s, l) 31981 }; 31982 return _; 31983 } 31984 let da = null; 31985 function HB(e) { 31986 da = e; 31987 } 31988 function jB(e, t, n) { 31989 da && da.emit("i18n:init", { 31990 timestamp: Date.now(), 31991 i18n: e, 31992 version: t, 31993 meta: n 31994 }); 31995 } 31996 const zB = WB("function:translate"); 31997 function WB(e) { 31998 return (t) => da && da.emit(e, t); 31999 } 32000 const GB = Ou.__EXTEND_POINT__, wr = Ys(GB), qB = { 32001 FALLBACK_TO_TRANSLATE: wr(), 32002 CANNOT_FORMAT_NUMBER: wr(), 32003 FALLBACK_TO_NUMBER_FORMAT: wr(), 32004 CANNOT_FORMAT_DATE: wr(), 32005 FALLBACK_TO_DATE_FORMAT: wr(), 32006 EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: wr(), 32007 __EXTEND_POINT__: wr() 32008 }, Mg = $e.__EXTEND_POINT__, Lr = Ys(Mg), _n = { 32009 INVALID_ARGUMENT: Mg, 32010 INVALID_DATE_ARGUMENT: Lr(), 32011 INVALID_ISO_DATE_ARGUMENT: Lr(), 32012 NOT_SUPPORT_NON_STRING_MESSAGE: Lr(), 32013 NOT_SUPPORT_LOCALE_PROMISE_VALUE: Lr(), 32014 NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: Lr(), 32015 NOT_SUPPORT_LOCALE_TYPE: Lr(), 32016 __EXTEND_POINT__: Lr() 32017 }; 32018 function wn(e) { 32019 return $i(e, null, void 0); 32020 } 32021 function Iu(e, t) { 32022 return t.locale != null ? $p(t.locale) : $p(e.locale); 32023 } 32024 let Ao; 32025 function $p(e) { 32026 if (ge(e)) return e; 32027 if (lt(e)) { 32028 if (e.resolvedOnce && Ao != null) return Ao; 32029 if (e.constructor.name === "Function") { 32030 const t = e(); 32031 if (VP(t)) throw wn(_n.NOT_SUPPORT_LOCALE_PROMISE_VALUE); 32032 return Ao = t; 32033 } else throw wn(_n.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION); 32034 } else throw wn(_n.NOT_SUPPORT_LOCALE_TYPE); 32035 } 32036 function YB(e, t, n) { 32037 return [ 32038 .../* @__PURE__ */ new Set([ 32039 n, 32040 ...ct(t) ? t : Xe(t) ? Object.keys(t) : ge(t) ? [ 32041 t 32042 ] : [ 32043 n 32044 ] 32045 ]) 32046 ]; 32047 } 32048 function Rg(e, t, n) { 32049 const i = ge(n) ? n : hi, a = e; 32050 a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map()); 32051 let r = a.__localeChainCache.get(i); 32052 if (!r) { 32053 r = []; 32054 let s = [ 32055 n 32056 ]; 32057 for (; ct(s); ) s = Tp(r, s, t); 32058 const o = ct(t) || !Pe(t) ? t : t.default ? t.default : null; 32059 s = ge(o) ? [ 32060 o 32061 ] : o, ct(s) && Tp(r, s, false), a.__localeChainCache.set(i, r); 32062 } 32063 return r; 32064 } 32065 function Tp(e, t, n) { 32066 let i = true; 32067 for (let a = 0; a < t.length && Re(i); a++) { 32068 const r = t[a]; 32069 ge(r) && (i = KB(e, t[a], n)); 32070 } 32071 return i; 32072 } 32073 function KB(e, t, n) { 32074 let i; 32075 const a = t.split("-"); 32076 do { 32077 const r = a.join("-"); 32078 i = XB(e, r, n), a.splice(-1, 1); 32079 } while (a.length && i === true); 32080 return i; 32081 } 32082 function XB(e, t, n) { 32083 let i = false; 32084 if (!e.includes(t) && (i = true, t)) { 32085 i = t[t.length - 1] !== "!"; 32086 const a = t.replace(/!/g, ""); 32087 e.push(a), (ct(n) || Pe(n)) && n[a] && (i = n[a]); 32088 } 32089 return i; 32090 } 32091 const JB = "9.14.5", Ks = -1, hi = "en-US", Ip = "", Fp = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`; 32092 function QB() { 32093 return { 32094 upper: (e, t) => t === "text" && ge(e) ? e.toUpperCase() : t === "vnode" && Xe(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e, 32095 lower: (e, t) => t === "text" && ge(e) ? e.toLowerCase() : t === "vnode" && Xe(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e, 32096 capitalize: (e, t) => t === "text" && ge(e) ? Fp(e) : t === "vnode" && Xe(e) && "__v_isVNode" in e ? Fp(e.children) : e 32097 }; 32098 } 32099 let Ug; 32100 function Np(e) { 32101 Ug = e; 32102 } 32103 let Vg; 32104 function ZB(e) { 32105 Vg = e; 32106 } 32107 let Hg; 32108 function eM(e) { 32109 Hg = e; 32110 } 32111 let jg = null; 32112 const Dp = (e) => { 32113 jg = e; 32114 }, tM = () => jg; 32115 let Pp = 0; 32116 function nM(e = {}) { 32117 const t = lt(e.onWarn) ? e.onWarn : NP, n = ge(e.version) ? e.version : JB, i = ge(e.locale) || lt(e.locale) ? e.locale : hi, a = lt(i) ? hi : i, r = ct(e.fallbackLocale) || Pe(e.fallbackLocale) || ge(e.fallbackLocale) || e.fallbackLocale === false ? e.fallbackLocale : a, s = Pe(e.messages) ? e.messages : So(a), o = Pe(e.datetimeFormats) ? e.datetimeFormats : So(a), l = Pe(e.numberFormats) ? e.numberFormats : So(a), u = $t(tt(), e.modifiers, QB()), c = e.pluralRules || tt(), d = lt(e.missing) ? e.missing : null, p = Re(e.missingWarn) || or(e.missingWarn) ? e.missingWarn : true, b = Re(e.fallbackWarn) || or(e.fallbackWarn) ? e.fallbackWarn : true, h = !!e.fallbackFormat, _ = !!e.unresolving, C = lt(e.postTranslation) ? e.postTranslation : null, D = Pe(e.processor) ? e.processor : null, N = Re(e.warnHtmlMessage) ? e.warnHtmlMessage : true, v = !!e.escapeParameter, y = lt(e.messageCompiler) ? e.messageCompiler : Ug, E = lt(e.messageResolver) ? e.messageResolver : Vg || IB, k = lt(e.localeFallbacker) ? e.localeFallbacker : Hg || YB, A = Xe(e.fallbackContext) ? e.fallbackContext : void 0, L = e, w = Xe(L.__datetimeFormatters) ? L.__datetimeFormatters : /* @__PURE__ */ new Map(), z = Xe(L.__numberFormatters) ? L.__numberFormatters : /* @__PURE__ */ new Map(), T = Xe(L.__meta) ? L.__meta : {}; 32118 Pp++; 32119 const P = { 32120 version: n, 32121 cid: Pp, 32122 locale: i, 32123 fallbackLocale: r, 32124 messages: s, 32125 modifiers: u, 32126 pluralRules: c, 32127 missing: d, 32128 missingWarn: p, 32129 fallbackWarn: b, 32130 fallbackFormat: h, 32131 unresolving: _, 32132 postTranslation: C, 32133 processor: D, 32134 warnHtmlMessage: N, 32135 escapeParameter: v, 32136 messageCompiler: y, 32137 messageResolver: E, 32138 localeFallbacker: k, 32139 fallbackContext: A, 32140 onWarn: t, 32141 __meta: T 32142 }; 32143 return P.datetimeFormats = o, P.numberFormats = l, P.__datetimeFormatters = w, P.__numberFormatters = z, __INTLIFY_PROD_DEVTOOLS__ && jB(P, n, T), P; 32144 } 32145 const So = (e) => ({ 32146 [e]: tt() 32147 }); 32148 function Fu(e, t, n, i, a) { 32149 const { missing: r, onWarn: s } = e; 32150 if (r !== null) { 32151 const o = r(e, n, t, a); 32152 return ge(o) ? o : t; 32153 } else return t; 32154 } 32155 function Pi(e, t, n) { 32156 const i = e; 32157 i.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t); 32158 } 32159 function rM(e, t) { 32160 return e === t ? false : e.split("-")[0] === t.split("-")[0]; 32161 } 32162 function iM(e, t) { 32163 const n = t.indexOf(e); 32164 if (n === -1) return false;
32165 for (let i = n + 1; i < t.length; i++) if (rM(e, t[i])) return true; 32166 return false; 32167 } 32168 function wo(e) { 32169 return (t) => aM(t, e); 32170 } 32171 function aM(e, t) { 32172 const n = _B(t); 32173 if (n == null) throw ca(0); 32174 if (Tu(n) === 1) { 32175 const i = EB(n); 32176 return e.plural(i.reduce((a, r) => [ 32177 ...a, 32178 Bp(e, r) 32179 ], [])); 32180 } else return Bp(e, n); 32181 } 32182 function Bp(e, t) { 32183 const n = kB(t); 32184 if (n != null) return e.type === "text" ? n : e.normalize([ 32185 n 32186 ]); 32187 { 32188 const i = CB(t).reduce((a, r) => [ 32189 ...a, 32190 gl(e, r) 32191 ], []); 32192 return e.normalize(i); 32193 } 32194 } 32195 function gl(e, t) { 32196 const n = Tu(t); 32197 switch (n) { 32198 case 3: 32199 return Fa(t, n); 32200 case 9: 32201 return Fa(t, n); 32202 case 4: { 32203 const i = t; 32204 if (yn(i, "k") && i.k) return e.interpolate(e.named(i.k)); 32205 if (yn(i, "key") && i.key) return e.interpolate(e.named(i.key)); 32206 throw ca(n); 32207 } 32208 case 5: { 32209 const i = t; 32210 if (yn(i, "i") && ht(i.i)) return e.interpolate(e.list(i.i)); 32211 if (yn(i, "index") && ht(i.index)) return e.interpolate(e.list(i.index)); 32212 throw ca(n); 32213 } 32214 case 6: { 32215 const i = t, a = AB(i), r = SB(i); 32216 return e.linked(gl(e, r), a ? gl(e, a) : void 0, e.type); 32217 } 32218 case 7: 32219 return Fa(t, n); 32220 case 8: 32221 return Fa(t, n); 32222 default: 32223 throw new Error(`unhandled node on format message part: ${n}`); 32224 } 32225 } 32226 const zg = (e) => e; 32227 let ni = tt(); 32228 function Wg(e, t = {}) { 32229 let n = false; 32230 const i = t.onError || XP; 32231 return t.onError = (a) => { 32232 n = true, i(a); 32233 }, {
vendor: 8,479 bytes, lines 32234-32480
32234 ...vB(e, t), 32235 detectError: n 32236 }; 32237 } 32238 const sM = (e, t) => { 32239 if (!ge(e)) throw wn(_n.NOT_SUPPORT_NON_STRING_MESSAGE); 32240 { 32241 Re(t.warnHtmlMessage) && t.warnHtmlMessage; 32242 const n = (t.onCacheKey || zg)(e), i = ni[n]; 32243 if (i) return i; 32244 const { code: a, detectError: r } = Wg(e, t), s = new Function(`return ${a}`)(); 32245 return r ? s : ni[n] = s; 32246 } 32247 }; 32248 function oM(e, t) { 32249 if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && ge(e)) { 32250 Re(t.warnHtmlMessage) && t.warnHtmlMessage; 32251 const n = (t.onCacheKey || zg)(e), i = ni[n]; 32252 if (i) return i; 32253 const { ast: a, detectError: r } = Wg(e, { 32254 ...t, 32255 location: false, 32256 jit: true 32257 }), s = wo(a); 32258 return r ? s : ni[n] = s; 32259 } else { 32260 const n = e.cacheKey; 32261 return n ? ni[n] || (ni[n] = wo(e)) : wo(e); 32262 } 32263 } 32264 const Mp = () => "", mn = (e) => lt(e); 32265 function Rp(e, ...t) { 32266 const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: r, fallbackLocale: s, messages: o } = e, [l, u] = bl(...t), c = Re(u.missingWarn) ? u.missingWarn : e.missingWarn, d = Re(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, p = Re(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, b = !!u.resolvedMessage, h = ge(u.default) || Re(u.default) ? Re(u.default) ? r ? l : () => l : u.default : n ? r ? l : () => l : "", _ = n || h !== "", C = Iu(e, u); 32267 p && lM(u); 32268 let [D, N, v] = b ? [ 32269 l, 32270 C, 32271 o[C] || tt() 32272 ] : Gg(e, l, C, s, d, c), y = D, E = l; 32273 if (!b && !(ge(y) || On(y) || mn(y)) && _ && (y = h, E = y), !b && (!(ge(y) || On(y) || mn(y)) || !ge(N))) return a ? Ks : l; 32274 let k = false; 32275 const A = () => { 32276 k = true; 32277 }, L = mn(y) ? y : qg(e, l, N, y, E, A); 32278 if (k) return y; 32279 const w = dM(e, N, v, u), z = VB(w), T = uM(e, L, z); 32280 let P = i ? i(T, l) : T; 32281 if (p && ge(P) && (P = RP(P)), __INTLIFY_PROD_DEVTOOLS__) { 32282 const G = { 32283 timestamp: Date.now(), 32284 key: ge(l) ? l : mn(y) ? y.key : "", 32285 locale: N || (mn(y) ? y.locale : ""), 32286 format: ge(y) ? y : mn(y) ? y.source : "", 32287 message: P 32288 }; 32289 G.meta = $t({}, e.__meta, {}), zB(G); 32290 } 32291 return P; 32292 } 32293 function lM(e) { 32294 ct(e.list) ? e.list = e.list.map((t) => ge(t) ? kp(t) : t) : Xe(e.named) && Object.keys(e.named).forEach((t) => { 32295 ge(e.named[t]) && (e.named[t] = kp(e.named[t])); 32296 }); 32297 } 32298 function Gg(e, t, n, i, a, r) { 32299 const { messages: s, onWarn: o, messageResolver: l, localeFallbacker: u } = e, c = u(e, i, n); 32300 let d = tt(), p, b = null; 32301 const h = "translate"; 32302 for (let _ = 0; _ < c.length && (p = c[_], d = s[p] || tt(), (b = l(d, t)) === null && (b = d[t]), !(ge(b) || On(b) || mn(b))); _++) if (!iM(p, c)) { 32303 const C = Fu(e, t, p, r, h); 32304 C !== t && (b = C); 32305 } 32306 return [ 32307 b, 32308 p, 32309 d 32310 ]; 32311 } 32312 function qg(e, t, n, i, a, r) { 32313 const { messageCompiler: s, warnHtmlMessage: o } = e; 32314 if (mn(i)) { 32315 const u = i; 32316 return u.locale = u.locale || n, u.key = u.key || t, u; 32317 } 32318 if (s == null) { 32319 const u = () => i; 32320 return u.locale = n, u.key = t, u; 32321 } 32322 const l = s(i, cM(e, n, a, i, o, r)); 32323 return l.locale = n, l.key = t, l.source = i, l; 32324 } 32325 function uM(e, t, n) { 32326 return t(n); 32327 } 32328 function bl(...e) { 32329 const [t, n, i] = e, a = tt(); 32330 if (!ge(t) && !ht(t) && !mn(t) && !On(t)) throw wn(_n.INVALID_ARGUMENT); 32331 const r = ht(t) ? String(t) : t; 32332 return ht(n) ? a.plural = n : ge(n) ? a.default = n : Pe(n) && !qs(n) ? a.named = n : ct(n) && (a.list = n), ht(i) ? a.plural = i : ge(i) ? a.default = i : Pe(i) && $t(a, i), [ 32333 r, 32334 a 32335 ]; 32336 } 32337 function cM(e, t, n, i, a, r) { 32338 return { 32339 locale: t, 32340 key: n, 32341 warnHtmlMessage: a, 32342 onError: (s) => { 32343 throw r && r(s), s; 32344 }, 32345 onCacheKey: (s) => DP(t, n, s) 32346 }; 32347 } 32348 function dM(e, t, n, i) { 32349 const { modifiers: a, pluralRules: r, messageResolver: s, fallbackLocale: o, fallbackWarn: l, missingWarn: u, fallbackContext: c } = e, d = { 32350 locale: t, 32351 modifiers: a, 32352 pluralRules: r, 32353 messages: (p) => { 32354 let b = s(n, p); 32355 if (b == null && c) { 32356 const [, , h] = Gg(c, p, t, o, l, u); 32357 b = s(h, p); 32358 } 32359 if (ge(b) || On(b)) { 32360 let h = false; 32361 const _ = qg(e, p, t, b, p, () => { 32362 h = true; 32363 }); 32364 return h ? Mp : _; 32365 } else return mn(b) ? b : Mp; 32366 } 32367 }; 32368 return e.processor && (d.processor = e.processor), i.list && (d.list = i.list), i.named && (d.named = i.named), ht(i.plural) && (d.pluralIndex = i.plural), d; 32369 } 32370 function Up(e, ...t) { 32371 const { datetimeFormats: n, unresolving: i, fallbackLocale: a, onWarn: r, localeFallbacker: s } = e, { __datetimeFormatters: o } = e, [l, u, c, d] = vl(...t), p = Re(c.missingWarn) ? c.missingWarn : e.missingWarn; 32372 Re(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn; 32373 const b = !!c.part, h = Iu(e, c), _ = s(e, a, h); 32374 if (!ge(l) || l === "") return new Intl.DateTimeFormat(h, d).format(u); 32375 let C = {}, D, N = null; 32376 const v = "datetime format"; 32377 for (let k = 0; k < _.length && (D = _[k], C = n[D] || {}, N = C[l], !Pe(N)); k++) Fu(e, l, D, p, v); 32378 if (!Pe(N) || !ge(D)) return i ? Ks : l; 32379 let y = `${D}__${l}`; 32380 qs(d) || (y = `${y}__${JSON.stringify(d)}`); 32381 let E = o.get(y); 32382 return E || (E = new Intl.DateTimeFormat(D, $t({}, N, d)), o.set(y, E)), b ? E.formatToParts(u) : E.format(u); 32383 } 32384 const Yg = [ 32385 "localeMatcher", 32386 "weekday", 32387 "era", 32388 "year", 32389 "month", 32390 "day", 32391 "hour", 32392 "minute", 32393 "second", 32394 "timeZoneName", 32395 "formatMatcher", 32396 "hour12", 32397 "timeZone", 32398 "dateStyle", 32399 "timeStyle", 32400 "calendar", 32401 "dayPeriod", 32402 "numberingSystem", 32403 "hourCycle", 32404 "fractionalSecondDigits" 32405 ]; 32406 function vl(...e) { 32407 const [t, n, i, a] = e, r = tt(); 32408 let s = tt(), o; 32409 if (ge(t)) { 32410 const l = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/); 32411 if (!l) throw wn(_n.INVALID_ISO_DATE_ARGUMENT); 32412 const u = l[3] ? l[3].trim().startsWith("T") ? `${l[1].trim()}${l[3].trim()}` : `${l[1].trim()}T${l[3].trim()}` : l[1].trim(); 32413 o = new Date(u); 32414 try { 32415 o.toISOString(); 32416 } catch { 32417 throw wn(_n.INVALID_ISO_DATE_ARGUMENT); 32418 } 32419 } else if (BP(t)) { 32420 if (isNaN(t.getTime())) throw wn(_n.INVALID_DATE_ARGUMENT); 32421 o = t; 32422 } else if (ht(t)) o = t; 32423 else throw wn(_n.INVALID_ARGUMENT); 32424 return ge(n) ? r.key = n : Pe(n) && Object.keys(n).forEach((l) => { 32425 Yg.includes(l) ? s[l] = n[l] : r[l] = n[l]; 32426 }), ge(i) ? r.locale = i : Pe(i) && (s = i), Pe(a) && (s = a), [ 32427 r.key || "", 32428 o, 32429 r, 32430 s 32431 ]; 32432 } 32433 function Vp(e, t, n) { 32434 const i = e; 32435 for (const a in n) { 32436 const r = `${t}__${a}`; 32437 i.__datetimeFormatters.has(r) && i.__datetimeFormatters.delete(r); 32438 } 32439 } 32440 function Hp(e, ...t) { 32441 const { numberFormats: n, unresolving: i, fallbackLocale: a, onWarn: r, localeFallbacker: s } = e, { __numberFormatters: o } = e, [l, u, c, d] = yl(...t), p = Re(c.missingWarn) ? c.missingWarn : e.missingWarn; 32442 Re(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn; 32443 const b = !!c.part, h = Iu(e, c), _ = s(e, a, h); 32444 if (!ge(l) || l === "") return new Intl.NumberFormat(h, d).format(u); 32445 let C = {}, D, N = null; 32446 const v = "number format"; 32447 for (let k = 0; k < _.length && (D = _[k], C = n[D] || {}, N = C[l], !Pe(N)); k++) Fu(e, l, D, p, v); 32448 if (!Pe(N) || !ge(D)) return i ? Ks : l; 32449 let y = `${D}__${l}`; 32450 qs(d) || (y = `${y}__${JSON.stringify(d)}`); 32451 let E = o.get(y); 32452 return E || (E = new Intl.NumberFormat(D, $t({}, N, d)), o.set(y, E)), b ? E.formatToParts(u) : E.format(u); 32453 } 32454 const Kg = [ 32455 "localeMatcher", 32456 "style", 32457 "currency", 32458 "currencyDisplay", 32459 "currencySign", 32460 "useGrouping", 32461 "minimumIntegerDigits", 32462 "minimumFractionDigits", 32463 "maximumFractionDigits", 32464 "minimumSignificantDigits", 32465 "maximumSignificantDigits", 32466 "compactDisplay", 32467 "notation", 32468 "signDisplay", 32469 "unit", 32470 "unitDisplay", 32471 "roundingMode", 32472 "roundingPriority", 32473 "roundingIncrement", 32474 "trailingZeroDisplay" 32475 ]; 32476 function yl(...e) { 32477 const [t, n, i, a] = e, r = tt(); 32478 let s = tt(); 32479 if (!ht(t)) throw wn(_n.INVALID_ARGUMENT); 32480 const o = t;
32481 return ge(n) ? r.key = n : Pe(n) && Object.keys(n).forEach((l) => { 32482 Kg.includes(l) ? s[l] = n[l] : r[l] = n[l]; 32483 }), ge(i) ? r.locale = i : Pe(i) && (s = i), Pe(a) && (s = a), [ 32484 r.key || "", 32485 o, 32486 r, 32487 s 32488 ]; 32489 } 32490 function jp(e, t, n) { 32491 const i = e; 32492 for (const a in n) { 32493 const r = `${t}__${a}`; 32494 i.__numberFormatters.has(r) && i.__numberFormatters.delete(r); 32495 } 32496 } 32497 yB(); 32498 const pM = "9.14.5"; 32499 function fM() { 32500 typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Un().__VUE_I18N_FULL_INSTALL__ = true), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Un().__VUE_I18N_LEGACY_API__ = true), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (Un().__INTLIFY_JIT_COMPILATION__ = false), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Un().__INTLIFY_DROP_MESSAGE_COMPILER__ = false), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Un().__INTLIFY_PROD_DEVTOOLS__ = false); 32501 } 32502 const mM = qB.__EXTEND_POINT__, Pn = Ys(mM); 32503 Pn(), Pn(), Pn(), Pn(), Pn(), Pn(), Pn(), Pn(), Pn(); 32504 const Xg = _n.__EXTEND_POINT__, Wt = Ys(Xg), Et = { 32505 UNEXPECTED_RETURN_TYPE: Xg, 32506 INVALID_ARGUMENT: Wt(), 32507 MUST_BE_CALL_SETUP_TOP: Wt(), 32508 NOT_INSTALLED: Wt(), 32509 NOT_AVAILABLE_IN_LEGACY_MODE: Wt(), 32510 REQUIRED_VALUE: Wt(), 32511 INVALID_VALUE: Wt(), 32512 CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: Wt(), 32513 NOT_INSTALLED_WITH_PROVIDE: Wt(), 32514 UNEXPECTED_ERROR: Wt(), 32515 NOT_COMPATIBLE_LEGACY_VUE_I18N: Wt(), 32516 BRIDGE_SUPPORT_VUE_2_ONLY: Wt(), 32517 MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: Wt(), 32518 NOT_AVAILABLE_COMPOSITION_IN_LEGACY: Wt(), 32519 __EXTEND_POINT__: Wt() 32520 }; 32521 function wt(e, ...t) { 32522 return $i(e, null, void 0); 32523 } 32524 const _l = yr("__translateVNode"), El = yr("__datetimeParts"), kl = yr("__numberParts"), Jg = yr("__setPluralRules"), Qg = yr("__injectWithOption"), Cl = yr("__dispose"); 32525 function pa(e) { 32526 if (!Xe(e) || On(e)) return e; 32527 for (const t in e) if (yn(e, t)) if (!t.includes(".")) Xe(e[t]) && pa(e[t]); 32528 else { 32529 const n = t.split("."), i = n.length - 1; 32530 let a = e, r = false; 32531 for (let s = 0; s < i; s++) { 32532 if (n[s] === "__proto__") throw new Error(`unsafe key: ${n[s]}`); 32533 if (n[s] in a || (a[n[s]] = tt()), !Xe(a[n[s]])) { 32534 r = true; 32535 break; 32536 } 32537 a = a[n[s]]; 32538 } 32539 if (r || (On(a) ? Bg.includes(n[i]) || delete e[t] : (a[n[i]] = e[t], delete e[t])), !On(a)) { 32540 const s = a[n[i]]; 32541 Xe(s) && pa(s); 32542 } 32543 } 32544 return e; 32545 } 32546 function Xs(e, t) { 32547 const { messages: n, __i18n: i, messageResolver: a, flatJson: r } = t, s = Pe(n) ? n : ct(i) ? tt() : { 32548 [e]: tt() 32549 }; 32550 if (ct(i) && i.forEach((o) => { 32551 if ("locale" in o && "resource" in o) { 32552 const { locale: l, resource: u } = o; 32553 l ? (s[l] = s[l] || tt(), Ga(u, s[l])) : Ga(u, s); 32554 } else ge(o) && Ga(JSON.parse(o), s); 32555 }), a == null && r) for (const o in s) yn(s, o) && pa(s[o]); 32556 return s; 32557 } 32558 function hM(e) { 32559 return e.type; 32560 } 32561 function Zg(e, t, n) { 32562 let i = Xe(t.messages) ? t.messages : tt(); 32563 "__i18nGlobal" in n && (i = Xs(e.locale.value, { 32564 messages: i, 32565 __i18n: n.__i18nGlobal 32566 })); 32567 const a = Object.keys(i); 32568 a.length && a.forEach((r) => { 32569 e.mergeLocaleMessage(r, i[r]); 32570 }); 32571 { 32572 if (Xe(t.datetimeFormats)) { 32573 const r = Object.keys(t.datetimeFormats); 32574 r.length && r.forEach((s) => { 32575 e.mergeDateTimeFormat(s, t.datetimeFormats[s]); 32576 }); 32577 } 32578 if (Xe(t.numberFormats)) { 32579 const r = Object.keys(t.numberFormats); 32580 r.length && r.forEach((s) => { 32581 e.mergeNumberFormat(s, t.numberFormats[s]); 32582 }); 32583 } 32584 } 32585 } 32586 function zp(e) { 32587 return K(gs, null, e, 0); 32588 } 32589 const Wp = () => [], gM = () => false; 32590 let Gp = 0; 32591 function qp(e) { 32592 return (t, n, i, a) => e(n, i, kt() || void 0, a); 32593 } 32594 function Nu(e = {}, t) { 32595 const { __root: n, __injectWithOption: i } = e, a = n === void 0, r = e.flatJson, s = ps ? pe : yi, o = !!e.translateExistCompatible;
vendor: 4,848 bytes, lines 32596-32740
32596 let l = Re(e.inheritLocale) ? e.inheritLocale : true; 32597 const u = s(n && l ? n.locale.value : ge(e.locale) ? e.locale : hi), c = s(n && l ? n.fallbackLocale.value : ge(e.fallbackLocale) || ct(e.fallbackLocale) || Pe(e.fallbackLocale) || e.fallbackLocale === false ? e.fallbackLocale : u.value), d = s(Xs(u.value, e)), p = s(Pe(e.datetimeFormats) ? e.datetimeFormats : { 32598 [u.value]: {} 32599 }), b = s(Pe(e.numberFormats) ? e.numberFormats : { 32600 [u.value]: {} 32601 }); 32602 let h = n ? n.missingWarn : Re(e.missingWarn) || or(e.missingWarn) ? e.missingWarn : true, _ = n ? n.fallbackWarn : Re(e.fallbackWarn) || or(e.fallbackWarn) ? e.fallbackWarn : true, C = n ? n.fallbackRoot : Re(e.fallbackRoot) ? e.fallbackRoot : true, D = !!e.fallbackFormat, N = lt(e.missing) ? e.missing : null, v = lt(e.missing) ? qp(e.missing) : null, y = lt(e.postTranslation) ? e.postTranslation : null, E = n ? n.warnHtmlMessage : Re(e.warnHtmlMessage) ? e.warnHtmlMessage : true, k = !!e.escapeParameter; 32603 const A = n ? n.modifiers : Pe(e.modifiers) ? e.modifiers : {}; 32604 let L = e.pluralRules || n && n.pluralRules, w; 32605 w = (() => { 32606 a && Dp(null); 32607 const S = { 32608 version: pM, 32609 locale: u.value, 32610 fallbackLocale: c.value, 32611 messages: d.value, 32612 modifiers: A, 32613 pluralRules: L, 32614 missing: v === null ? void 0 : v, 32615 missingWarn: h, 32616 fallbackWarn: _, 32617 fallbackFormat: D, 32618 unresolving: true, 32619 postTranslation: y === null ? void 0 : y, 32620 warnHtmlMessage: E, 32621 escapeParameter: k, 32622 messageResolver: e.messageResolver, 32623 messageCompiler: e.messageCompiler, 32624 __meta: { 32625 framework: "vue" 32626 } 32627 }; 32628 S.datetimeFormats = p.value, S.numberFormats = b.value, S.__datetimeFormatters = Pe(w) ? w.__datetimeFormatters : void 0, S.__numberFormatters = Pe(w) ? w.__numberFormatters : void 0; 32629 const $ = nM(S); 32630 return a && Dp($), $; 32631 })(), Pi(w, u.value, c.value); 32632 function z() { 32633 return [ 32634 u.value, 32635 c.value, 32636 d.value, 32637 p.value, 32638 b.value 32639 ]; 32640 } 32641 const T = ne({ 32642 get: () => u.value, 32643 set: (S) => { 32644 u.value = S, w.locale = u.value; 32645 } 32646 }), P = ne({ 32647 get: () => c.value, 32648 set: (S) => { 32649 c.value = S, w.fallbackLocale = c.value, Pi(w, u.value, S); 32650 } 32651 }), G = ne(() => d.value), X = ne(() => p.value), Y = ne(() => b.value); 32652 function q() { 32653 return lt(y) ? y : null; 32654 } 32655 function J(S) { 32656 y = S, w.postTranslation = S; 32657 } 32658 function Z() { 32659 return N; 32660 } 32661 function se(S) { 32662 S !== null && (v = qp(S)), N = S, w.missing = v; 32663 } 32664 const Q = (S, $, le, de, st, Ht) => { 32665 z(); 32666 let vt; 32667 try { 32668 __INTLIFY_PROD_DEVTOOLS__, a || (w.fallbackContext = n ? tM() : void 0), vt = S(w); 32669 } finally { 32670 __INTLIFY_PROD_DEVTOOLS__, a || (w.fallbackContext = void 0); 32671 } 32672 if (le !== "translate exists" && ht(vt) && vt === Ks || le === "translate exists" && !vt) { 32673 const [Ti, Ru] = $(); 32674 return n && C ? de(n) : st(Ti); 32675 } else { 32676 if (Ht(vt)) return vt; 32677 throw wt(Et.UNEXPECTED_RETURN_TYPE); 32678 } 32679 }; 32680 function oe(...S) { 32681 return Q(($) => Reflect.apply(Rp, null, [ 32682 $, 32683 ...S 32684 ]), () => bl(...S), "translate", ($) => Reflect.apply($.t, $, [ 32685 ...S 32686 ]), ($) => $, ($) => ge($)); 32687 } 32688 function ce(...S) { 32689 const [$, le, de] = S; 32690 if (de && !Xe(de)) throw wt(Et.INVALID_ARGUMENT); 32691 return oe($, le, $t({ 32692 resolvedMessage: true 32693 }, de || {})); 32694 } 32695 function be(...S) { 32696 return Q(($) => Reflect.apply(Up, null, [ 32697 $, 32698 ...S 32699 ]), () => vl(...S), "datetime format", ($) => Reflect.apply($.d, $, [ 32700 ...S 32701 ]), () => Ip, ($) => ge($)); 32702 } 32703 function ye(...S) { 32704 return Q(($) => Reflect.apply(Hp, null, [ 32705 $, 32706 ...S 32707 ]), () => yl(...S), "number format", ($) => Reflect.apply($.n, $, [ 32708 ...S 32709 ]), () => Ip, ($) => ge($)); 32710 } 32711 function ke(S) { 32712 return S.map(($) => ge($) || ht($) || Re($) ? zp(String($)) : $); 32713 } 32714 const Ae = { 32715 normalize: ke, 32716 interpolate: (S) => S, 32717 type: "vnode" 32718 }; 32719 function _e(...S) { 32720 return Q(($) => { 32721 let le; 32722 const de = $; 32723 try { 32724 de.processor = Ae, le = Reflect.apply(Rp, null, [ 32725 de, 32726 ...S 32727 ]); 32728 } finally { 32729 de.processor = null; 32730 } 32731 return le; 32732 }, () => bl(...S), "translate", ($) => $[_l](...S), ($) => [ 32733 zp($) 32734 ], ($) => ct($)); 32735 } 32736 function Te(...S) { 32737 return Q(($) => Reflect.apply(Hp, null, [ 32738 $, 32739 ...S 32740 ]), () => yl(...S), "number format", ($) =>
32740 $[kl](...S), Wp, ($) => ge($) || ct($)); 32741 } 32742 function Ee(...S) { 32743 return Q(($) => Reflect.apply(Up, null, [ 32744 $, 32745 ...S 32746 ]), () => vl(...S), "datetime format", ($) => $[El](...S), Wp, ($) => ge($) || ct($)); 32747 } 32748 function Le(S) { 32749 L = S, w.pluralRules = L; 32750 } 32751 function Be(S, $) { 32752 return Q(() => { 32753 if (!S) return false; 32754 const le = ge($) ? $ : u.value, de = B(le), st = w.messageResolver(de, S); 32755 return o ? st != null : On(st) || mn(st) || ge(st); 32756 }, () => [ 32757 S 32758 ], "translate exists", (le) => Reflect.apply(le.te, le, [ 32759 S, 32760 $ 32761 ]), gM, (le) => Re(le)); 32762 } 32763 function Ie(S) { 32764 let $ = null; 32765 const le = Rg(w, c.value, u.value); 32766 for (let de = 0; de < le.length; de++) { 32767 const st = d.value[le[de]] || {}, Ht = w.messageResolver(st, S); 32768 if (Ht != null) { 32769 $ = Ht; 32770 break; 32771 } 32772 } 32773 return $; 32774 } 32775 function Ve(S) { 32776 return Ie(S) ?? (n ? n.tm(S) || {} : {}); 32777 } 32778 function B(S) { 32779 return d.value[S] || {}; 32780 } 32781 function ie(S, $) { 32782 if (r) { 32783 const le = { 32784 [S]: $ 32785 }; 32786 for (const de in le) yn(le, de) && pa(le[de]); 32787 $ = le[S]; 32788 } 32789 d.value[S] = $, w.messages = d.value; 32790 } 32791 function Fe(S, $) { 32792 d.value[S] = d.value[S] || {}; 32793 const le = { 32794 [S]: $ 32795 }; 32796 if (r) for (const de in le) yn(le, de) && pa(le[de]); 32797 $ = le[S], Ga($, d.value[S]), w.messages = d.value; 32798 } 32799 function qe(S) { 32800 return p.value[S] || {}; 32801 } 32802 function He(S, $) { 32803 p.value[S] = $, w.datetimeFormats = p.value, Vp(w, S, $); 32804 } 32805 function xt(S, $) { 32806 p.value[S] = $t(p.value[S] || {}, $), w.datetimeFormats = p.value, Vp(w, S, $); 32807 } 32808 function f(S) { 32809 return b.value[S] || {}; 32810 } 32811 function g(S, $) { 32812 b.value[S] = $, w.numberFormats = b.value, jp(w, S, $); 32813 } 32814 function F(S, $) { 32815 b.value[S] = $t(b.value[S] || {}, $), w.numberFormats = b.value, jp(w, S, $); 32816 } 32817 Gp++, n && ps && (Ue(n.locale, (S) => { 32818 l && (u.value = S, w.locale = S, Pi(w, u.value, c.value)); 32819 }), Ue(n.fallbackLocale, (S) => { 32820 l && (c.value = S, w.fallbackLocale = S, Pi(w, u.value, c.value)); 32821 })); 32822 const W = { 32823 id: Gp, 32824 locale: T, 32825 fallbackLocale: P, 32826 get inheritLocale() { 32827 return l; 32828 }, 32829 set inheritLocale(S) { 32830 l = S, S && n && (u.value = n.locale.value, c.value = n.fallbackLocale.value, Pi(w, u.value, c.value)); 32831 }, 32832 get availableLocales() { 32833 return Object.keys(d.value).sort(); 32834 }, 32835 messages: G, 32836 get modifiers() { 32837 return A; 32838 }, 32839 get pluralRules() { 32840 return L || {}; 32841 }, 32842 get isGlobal() { 32843 return a; 32844 }, 32845 get missingWarn() { 32846 return h; 32847 }, 32848 set missingWarn(S) { 32849 h = S, w.missingWarn = h; 32850 }, 32851 get fallbackWarn() { 32852 return _; 32853 }, 32854 set fallbackWarn(S) { 32855 _ = S, w.fallbackWarn = _; 32856 }, 32857 get fallbackRoot() { 32858 return C; 32859 }, 32860 set fallbackRoot(S) { 32861 C = S; 32862 }, 32863 get fallbackFormat() { 32864 return D; 32865 }, 32866 set fallbackFormat(S) { 32867 D = S, w.fallbackFormat = D; 32868 }, 32869 get warnHtmlMessage() { 32870 return E; 32871 }, 32872 set warnHtmlMessage(S) { 32873 E = S, w.warnHtmlMessage = S; 32874 }, 32875 get escapeParameter() { 32876 return k; 32877 }, 32878 set escapeParameter(S) { 32879 k = S, w.escapeParameter = S; 32880 }, 32881 t: oe, 32882 getLocaleMessage: B, 32883 setLocaleMessage: ie, 32884 mergeLocaleMessage: Fe, 32885 getPostTranslationHandler: q, 32886 setPostTranslationHandler: J, 32887 getMissingHandler: Z, 32888 setMissingHandler: se, 32889 [Jg]: Le 32890 }; 32891 return W.datetimeFormats = X, W.numberFormats = Y, W.rt = ce, W.te = Be, W.tm = Ve, W.d = be, W.n = ye, W.getDateTimeFormat = qe, W.setDateTimeFormat = He, W.mergeDateTimeFormat = xt, W.getNumberFormat = f, W.setNumberFormat = g, W.mergeNumberFormat = F, W[Qg] = i, W[_l] = _e, W[El] = Ee, W[kl] = Te, W; 32892 } 32893 function bM(e) { 32894 const t = ge(e.locale) ? e.locale : hi, n = ge(e.fallbackLocale) || ct(e.fallbackLocale) || Pe(e.fallbackLocale) || e.fallbackLocale === false ? e.fallbackLocale : t, i = lt(e.missing) ? e.missing : void 0, a = Re(e.silentTranslationWarn) || or(e.silentTranslationWarn) ? !e.silentTranslationWarn : true, r = Re(e.silentFallbackWarn) || or(e.silentFallbackWarn) ? !e.silentFallbackWarn : true, s = Re(e.fallbackRoot) ? e.fallbackRoot : true, o = !!e.formatFallbackMessages, l = Pe(e.modifiers) ? e.modifiers : {}, u = e.pluralizationRules, c = lt(e.postTranslation) ? e.postTranslation : void 0, d = ge(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : true, p = !!e.escapeParameterHtml, b = Re(e.sync) ? e.sync : true; 32895 let h = e.messages; 32896 if (Pe(e.sharedMessages)) {
vendor: 24,562 bytes, lines 32897-33694
32897 const k = e.sharedMessages; 32898 h = Object.keys(k).reduce((A, L) => { 32899 const w = A[L] || (A[L] = {}); 32900 return $t(w, k[L]), A; 32901 }, h || {}); 32902 } 32903 const { __i18n: _, __root: C, __injectWithOption: D } = e, N = e.datetimeFormats, v = e.numberFormats, y = e.flatJson, E = e.translateExistCompatible; 32904 return { 32905 locale: t, 32906 fallbackLocale: n, 32907 messages: h, 32908 flatJson: y, 32909 datetimeFormats: N, 32910 numberFormats: v, 32911 missing: i, 32912 missingWarn: a, 32913 fallbackWarn: r, 32914 fallbackRoot: s, 32915 fallbackFormat: o, 32916 modifiers: l, 32917 pluralRules: u, 32918 postTranslation: c, 32919 warnHtmlMessage: d, 32920 escapeParameter: p, 32921 messageResolver: e.messageResolver, 32922 inheritLocale: b, 32923 translateExistCompatible: E, 32924 __i18n: _, 32925 __root: C, 32926 __injectWithOption: D 32927 }; 32928 } 32929 function Al(e = {}, t) { 32930 { 32931 const n = Nu(bM(e)), { __extender: i } = e, a = { 32932 id: n.id, 32933 get locale() { 32934 return n.locale.value; 32935 }, 32936 set locale(r) { 32937 n.locale.value = r; 32938 }, 32939 get fallbackLocale() { 32940 return n.fallbackLocale.value; 32941 }, 32942 set fallbackLocale(r) { 32943 n.fallbackLocale.value = r; 32944 }, 32945 get messages() { 32946 return n.messages.value; 32947 }, 32948 get datetimeFormats() { 32949 return n.datetimeFormats.value; 32950 }, 32951 get numberFormats() { 32952 return n.numberFormats.value; 32953 }, 32954 get availableLocales() { 32955 return n.availableLocales; 32956 }, 32957 get formatter() { 32958 return { 32959 interpolate() { 32960 return []; 32961 } 32962 }; 32963 }, 32964 set formatter(r) { 32965 }, 32966 get missing() { 32967 return n.getMissingHandler(); 32968 }, 32969 set missing(r) { 32970 n.setMissingHandler(r); 32971 }, 32972 get silentTranslationWarn() { 32973 return Re(n.missingWarn) ? !n.missingWarn : n.missingWarn; 32974 }, 32975 set silentTranslationWarn(r) { 32976 n.missingWarn = Re(r) ? !r : r; 32977 }, 32978 get silentFallbackWarn() { 32979 return Re(n.fallbackWarn) ? !n.fallbackWarn : n.fallbackWarn; 32980 }, 32981 set silentFallbackWarn(r) { 32982 n.fallbackWarn = Re(r) ? !r : r; 32983 }, 32984 get modifiers() { 32985 return n.modifiers; 32986 }, 32987 get formatFallbackMessages() { 32988 return n.fallbackFormat; 32989 }, 32990 set formatFallbackMessages(r) { 32991 n.fallbackFormat = r; 32992 }, 32993 get postTranslation() { 32994 return n.getPostTranslationHandler(); 32995 }, 32996 set postTranslation(r) { 32997 n.setPostTranslationHandler(r); 32998 }, 32999 get sync() { 33000 return n.inheritLocale; 33001 }, 33002 set sync(r) { 33003 n.inheritLocale = r; 33004 }, 33005 get warnHtmlInMessage() { 33006 return n.warnHtmlMessage ? "warn" : "off"; 33007 }, 33008 set warnHtmlInMessage(r) { 33009 n.warnHtmlMessage = r !== "off"; 33010 }, 33011 get escapeParameterHtml() { 33012 return n.escapeParameter; 33013 }, 33014 set escapeParameterHtml(r) { 33015 n.escapeParameter = r; 33016 }, 33017 get preserveDirectiveContent() { 33018 return true; 33019 }, 33020 set preserveDirectiveContent(r) { 33021 }, 33022 get pluralizationRules() { 33023 return n.pluralRules || {}; 33024 }, 33025 __composer: n, 33026 t(...r) { 33027 const [s, o, l] = r, u = {}; 33028 let c = null, d = null; 33029 if (!ge(s)) throw wt(Et.INVALID_ARGUMENT); 33030 const p = s; 33031 return ge(o) ? u.locale = o : ct(o) ? c = o : Pe(o) && (d = o), ct(l) ? c = l : Pe(l) && (d = l), Reflect.apply(n.t, n, [ 33032 p, 33033 c || d || {}, 33034 u 33035 ]); 33036 }, 33037 rt(...r) { 33038 return Reflect.apply(n.rt, n, [ 33039 ...r 33040 ]); 33041 }, 33042 tc(...r) { 33043 const [s, o, l] = r, u = { 33044 plural: 1 33045 }; 33046 let c = null, d = null; 33047 if (!ge(s)) throw wt(Et.INVALID_ARGUMENT); 33048 const p = s; 33049 return ge(o) ? u.locale = o : ht(o) ? u.plural = o : ct(o) ? c = o : Pe(o) && (d = o), ge(l) ? u.locale = l : ct(l) ? c = l : Pe(l) && (d = l), Reflect.apply(n.t, n, [ 33050 p, 33051 c || d || {}, 33052 u 33053 ]); 33054 }, 33055 te(r, s) { 33056 return n.te(r, s); 33057 }, 33058 tm(r) { 33059 return n.tm(r); 33060 }, 33061 getLocaleMessage(r) { 33062 return n.getLocaleMessage(r); 33063 }, 33064 setLocaleMessage(r, s) { 33065 n.setLocaleMessage(r, s); 33066 }, 33067 mergeLocaleMessage(r, s) { 33068 n.mergeLocaleMessage(r, s); 33069 }, 33070 d(...r) { 33071 return Reflect.apply(n.d, n, [ 33072 ...r 33073 ]); 33074 }, 33075 getDateTimeFormat(r) { 33076 return n.getDateTimeFormat(r); 33077 }, 33078 setDateTimeFormat(r, s) { 33079 n.setDateTimeFormat(r, s); 33080 }, 33081 mergeDateTimeFormat(r, s) { 33082 n.mergeDateTimeFormat(r, s); 33083 }, 33084 n(...r) { 33085 return Reflect.apply(n.n, n, [ 33086 ...r 33087 ]); 33088 }, 33089 getNumberFormat(r) { 33090 return n.getNumberFormat(r); 33091 }, 33092 setNumberFormat(r, s) { 33093 n.setNumberFormat(r, s); 33094 }, 33095 mergeNumberFormat(r, s) { 33096 n.mergeNumberFormat(r, s); 33097 }, 33098 getChoiceIndex(r, s) { 33099 return -1; 33100 } 33101 }; 33102 return a.__extender = i, a; 33103 } 33104 } 33105 const Du = { 33106 tag: { 33107 type: [ 33108 String, 33109 Object 33110 ] 33111 }, 33112 locale: { 33113 type: String 33114 }, 33115 scope: { 33116 type: String, 33117 validator: (e) => e === "parent" || e === "global", 33118 default: "parent" 33119 }, 33120 i18n: { 33121 type: Object 33122 } 33123 }; 33124 function vM({ slots: e }, t) { 33125 return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((n, i) => [ 33126 ...n, 33127 ...i.type === me ? i.children : [ 33128 i 33129 ] 33130 ], []) : t.reduce((n, i) => { 33131 const a = e[i]; 33132 return a && (n[i] = a()), n; 33133 }, tt()); 33134 } 33135 function eb(e) { 33136 return me; 33137 } 33138 const yM = Hr({ 33139 name: "i18n-t", 33140 props: $t({ 33141 keypath: { 33142 type: String, 33143 required: true 33144 }, 33145 plural: { 33146 type: [ 33147 Number, 33148 String 33149 ], 33150 validator: (e) => ht(e) || !isNaN(e) 33151 } 33152 }, Du), 33153 setup(e, t) { 33154 const { slots: n, attrs: i } = t, a = e.i18n || Pu({ 33155 useScope: e.scope, 33156 __useComponent: true 33157 }); 33158 return () => { 33159 const r = Object.keys(n).filter((d) => d !== "_"), s = tt(); 33160 e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural = ge(e.plural) ? +e.plural : e.plural); 33161 const o = vM(t, r), l = a[_l](e.keypath, o, s), u = $t(tt(), i), c = ge(e.tag) || Xe(e.tag) ? e.tag : eb(); 33162 return Pr(c, u, l); 33163 }; 33164 } 33165 }), Yp = yM; 33166 function _M(e) { 33167 return ct(e) && !ge(e[0]); 33168 } 33169 function tb(e, t, n, i) { 33170 const { slots: a, attrs: r } = t; 33171 return () => { 33172 const s = { 33173 part: true 33174 }; 33175 let o = tt(); 33176 e.locale && (s.locale = e.locale), ge(e.format) ? s.key = e.format : Xe(e.format) && (ge(e.format.key) && (s.key = e.format.key), o = Object.keys(e.format).reduce((p, b) => n.includes(b) ? $t(tt(), p, { 33177 [b]: e.format[b] 33178 }) : p, tt())); 33179 const l = i(e.value, s, o); 33180 let u = [ 33181 s.key 33182 ]; 33183 ct(l) ? u = l.map((p, b) => { 33184 const h = a[p.type], _ = h ? h({ 33185 [p.type]: p.value, 33186 index: b, 33187 parts: l 33188 }) : [ 33189 p.value 33190 ]; 33191 return _M(_) && (_[0].key = `${p.type}-${b}`), _; 33192 }) : ge(l) && (u = [ 33193 l 33194 ]); 33195 const c = $t(tt(), r), d = ge(e.tag) || Xe(e.tag) ? e.tag : eb(); 33196 return Pr(d, c, u); 33197 }; 33198 } 33199 const EM = Hr({ 33200 name: "i18n-n", 33201 props: $t({ 33202 value: { 33203 type: Number, 33204 required: true 33205 }, 33206 format: { 33207 type: [ 33208 String, 33209 Object 33210 ] 33211 } 33212 }, Du), 33213 setup(e, t) { 33214 const n = e.i18n || Pu({ 33215 useScope: e.scope, 33216 __useComponent: true 33217 }); 33218 return tb(e, t, Kg, (...i) => n[kl](...i)); 33219 } 33220 }), Kp = EM, kM = Hr({ 33221 name: "i18n-d", 33222 props: $t({ 33223 value: { 33224 type: [ 33225 Number, 33226 Date 33227 ], 33228 required: true 33229 }, 33230 format: { 33231 type: [ 33232 String, 33233 Object 33234 ] 33235 } 33236 }, Du), 33237 setup(e, t) { 33238 const n = e.i18n || Pu({ 33239 useScope: e.scope, 33240 __useComponent: true 33241 }); 33242 return tb(e, t, Yg, (...i) => n[El](...i)); 33243 } 33244 }), Xp = kM; 33245 function CM(e, t) { 33246 const n = e; 33247 if (e.mode === "composition") return n.__getInstance(t) || e.global; 33248 { 33249 const i = n.__getInstance(t); 33250 return i != null ? i.__composer : e.global.__composer; 33251 } 33252 } 33253 function AM(e) { 33254 const t = (n) => { 33255 const { instance: i, modifiers: a, value: r } = n; 33256 if (!i || !i.$) throw wt(Et.UNEXPECTED_ERROR); 33257 const s = CM(e, i.$), o = Jp(r); 33258 return [ 33259 Reflect.apply(s.t, s, [ 33260 ...Qp(o) 33261 ]), 33262 s 33263 ]; 33264 }; 33265 return { 33266 created: (n, i) => { 33267 const [a, r] = t(i); 33268 ps && e.global === r && (n.__i18nWatcher = Ue(r.locale, () => { 33269 i.instance && i.instance.$forceUpdate(); 33270 })), n.__composer = r, n.textContent = a; 33271 }, 33272 unmounted: (n) => { 33273 ps && n.__i18nWatcher && (n.__i18nWatcher(), n.__i18nWatcher = void 0, delete n.__i18nWatcher), n.__composer && (n.__composer = void 0, delete n.__composer); 33274 }, 33275 beforeUpdate: (n, { value: i }) => { 33276 if (n.__composer) { 33277 const a = n.__composer, r = Jp(i); 33278 n.textContent = Reflect.apply(a.t, a, [ 33279 ...Qp(r) 33280 ]); 33281 } 33282 }, 33283 getSSRProps: (n) => { 33284 const [i] = t(n); 33285 return { 33286 textContent: i 33287 }; 33288 } 33289 }; 33290 } 33291 function Jp(e) { 33292 if (ge(e)) return { 33293 path: e 33294 }; 33295 if (Pe(e)) { 33296 if (!("path" in e)) throw wt(Et.REQUIRED_VALUE, "path"); 33297 return e; 33298 } else throw wt(Et.INVALID_VALUE); 33299 } 33300 function Qp(e) { 33301 const { path: t, locale: n, args: i, choice: a, plural: r } = e, s = {}, o = i || {}; 33302 return ge(n) && (s.locale = n), ht(a) && (s.plural = a), ht(r) && (s.plural = r), [ 33303 t, 33304 o, 33305 s 33306 ]; 33307 } 33308 function SM(e, t, ...n) { 33309 const i = Pe(n[0]) ? n[0] : {}, a = !!i.useI18nComponentName; 33310 (Re(i.globalInstall) ? i.globalInstall : true) && ([ 33311 a ? "i18n" : Yp.name, 33312 "I18nT" 33313 ].forEach((s) => e.component(s, Yp)), [ 33314 Kp.name, 33315 "I18nN" 33316 ].forEach((s) => e.component(s, Kp)), [ 33317 Xp.name, 33318 "I18nD" 33319 ].forEach((s) => e.component(s, Xp))), e.directive("t", AM(t)); 33320 } 33321 function wM(e, t, n) { 33322 return { 33323 beforeCreate() { 33324 const i = kt(); 33325 if (!i) throw wt(Et.UNEXPECTED_ERROR); 33326 const a = this.$options; 33327 if (a.i18n) { 33328 const r = a.i18n; 33329 if (a.__i18n && (r.__i18n = a.__i18n), r.__root = t, this === this.$root) this.$i18n = Zp(e, r); 33330 else { 33331 r.__injectWithOption = true, r.__extender = n.__vueI18nExtend, this.$i18n = Al(r); 33332 const s = this.$i18n; 33333 s.__extender && (s.__disposer = s.__extender(this.$i18n)); 33334 } 33335 } else if (a.__i18n) if (this === this.$root) this.$i18n = Zp(e, a); 33336 else { 33337 this.$i18n = Al({ 33338 __i18n: a.__i18n, 33339 __injectWithOption: true, 33340 __extender: n.__vueI18nExtend, 33341 __root: t 33342 }); 33343 const r = this.$i18n; 33344 r.__extender && (r.__disposer = r.__extender(this.$i18n)); 33345 } 33346 else this.$i18n = e; 33347 a.__i18nGlobal && Zg(t, a, a), this.$t = (...r) => this.$i18n.t(...r), this.$rt = (...r) => this.$i18n.rt(...r), this.$tc = (...r) => this.$i18n.tc(...r), this.$te = (r, s) => this.$i18n.te(r, s), this.$d = (...r) => this.$i18n.d(...r), this.$n = (...r) => this.$i18n.n(...r), this.$tm = (r) => this.$i18n.tm(r), n.__setInstance(i, this.$i18n); 33348 }, 33349 mounted() { 33350 }, 33351 unmounted() { 33352 const i = kt(); 33353 if (!i) throw wt(Et.UNEXPECTED_ERROR); 33354 const a = this.$i18n; 33355 delete this.$t, delete this.$rt, delete this.$tc, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), n.__deleteInstance(i), delete this.$i18n; 33356 } 33357 }; 33358 } 33359 function Zp(e, t) { 33360 e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[Jg](t.pluralizationRules || e.pluralizationRules); 33361 const n = Xs(e.locale, { 33362 messages: t.messages, 33363 __i18n: t.__i18n 33364 }); 33365 return Object.keys(n).forEach((i) => e.mergeLocaleMessage(i, n[i])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((i) => e.mergeDateTimeFormat(i, t.datetimeFormats[i])), t.numberFormats && Object.keys(t.numberFormats).forEach((i) => e.mergeNumberFormat(i, t.numberFormats[i])), e; 33366 } 33367 const LM = yr("global-vue-i18n"); 33368 function xM(e = {}, t) { 33369 const n = __VUE_I18N_LEGACY_API__ && Re(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, i = Re(e.globalInjection) ? e.globalInjection : true, a = __VUE_I18N_LEGACY_API__ && n ? !!e.allowComposition : true, r = /* @__PURE__ */ new Map(), [s, o] = OM(e, n), l = yr(""); 33370 function u(p) { 33371 return r.get(p) || null; 33372 } 33373 function c(p, b) { 33374 r.set(p, b); 33375 } 33376 function d(p) { 33377 r.delete(p); 33378 } 33379 { 33380 const p = { 33381 get mode() { 33382 return __VUE_I18N_LEGACY_API__ && n ? "legacy" : "composition"; 33383 }, 33384 get allowComposition() { 33385 return a; 33386 }, 33387 async install(b, ...h) { 33388 if (b.__VUE_I18N_SYMBOL__ = l, b.provide(b.__VUE_I18N_SYMBOL__, p), Pe(h[0])) { 33389 const D = h[0]; 33390 p.__composerExtend = D.__composerExtend, p.__vueI18nExtend = D.__vueI18nExtend; 33391 } 33392 let _ = null; 33393 !n && i && (_ = MM(b, p.global)), __VUE_I18N_FULL_INSTALL__ && SM(b, p, ...h), __VUE_I18N_LEGACY_API__ && n && b.mixin(wM(o, o.__composer, p)); 33394 const C = b.unmount; 33395 b.unmount = () => { 33396 _ && _(), p.dispose(), C(); 33397 }; 33398 }, 33399 get global() { 33400 return o; 33401 }, 33402 dispose() { 33403 s.stop(); 33404 }, 33405 __instances: r, 33406 __getInstance: u, 33407 __setInstance: c, 33408 __deleteInstance: d 33409 }; 33410 return p; 33411 } 33412 } 33413 function Pu(e = {}) { 33414 const t = kt(); 33415 if (t == null) throw wt(Et.MUST_BE_CALL_SETUP_TOP); 33416 if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__) throw wt(Et.NOT_INSTALLED); 33417 const n = $M(t), i = IM(n), a = hM(t), r = TM(e, a); 33418 if (__VUE_I18N_LEGACY_API__ && n.mode === "legacy" && !e.__useComponent) { 33419 if (!n.allowComposition) throw wt(Et.NOT_AVAILABLE_IN_LEGACY_MODE); 33420 return PM(t, r, i, e); 33421 } 33422 if (r === "global") return Zg(i, e, a), i; 33423 if (r === "parent") { 33424 let l = FM(n, t, e.__useComponent); 33425 return l == null && (l = i), l; 33426 } 33427 const s = n; 33428 let o = s.__getInstance(t); 33429 if (o == null) { 33430 const l = $t({}, e); 33431 "__i18n" in a && (l.__i18n = a.__i18n), i && (l.__root = i), o = Nu(l), s.__composerExtend && (o[Cl] = s.__composerExtend(o)), DM(s, t, o), s.__setInstance(t, o); 33432 } 33433 return o; 33434 } 33435 function OM(e, t, n) { 33436 const i = hf(); 33437 { 33438 const a = __VUE_I18N_LEGACY_API__ && t ? i.run(() => Al(e)) : i.run(() => Nu(e)); 33439 if (a == null) throw wt(Et.UNEXPECTED_ERROR); 33440 return [ 33441 i, 33442 a 33443 ]; 33444 } 33445 } 33446 function $M(e) { 33447 { 33448 const t = Br(e.isCE ? LM : e.appContext.app.__VUE_I18N_SYMBOL__); 33449 if (!t) throw wt(e.isCE ? Et.NOT_INSTALLED_WITH_PROVIDE : Et.UNEXPECTED_ERROR); 33450 return t; 33451 } 33452 } 33453 function TM(e, t) { 33454 return qs(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local"; 33455 } 33456 function IM(e) { 33457 return e.mode === "composition" ? e.global : e.global.__composer; 33458 } 33459 function FM(e, t, n = false) { 33460 let i = null; 33461 const a = t.root; 33462 let r = NM(t, n); 33463 for (; r != null; ) { 33464 const s = e; 33465 if (e.mode === "composition") i = s.__getInstance(r); 33466 else if (__VUE_I18N_LEGACY_API__) { 33467 const o = s.__getInstance(r); 33468 o != null && (i = o.__composer, n && i && !i[Qg] && (i = null)); 33469 } 33470 if (i != null || a === r) break; 33471 r = r.parent; 33472 } 33473 return i; 33474 } 33475 function NM(e, t = false) { 33476 return e == null ? null : t && e.vnode.ctx || e.parent; 33477 } 33478 function DM(e, t, n) { 33479 nn(() => { 33480 }, t), hs(() => { 33481 const i = n; 33482 e.__deleteInstance(t); 33483 const a = i[Cl]; 33484 a && (a(), delete i[Cl]); 33485 }, t); 33486 } 33487 function PM(e, t, n, i = {}) { 33488 const a = t === "local", r = yi(null); 33489 if (a && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n)) throw wt(Et.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION); 33490 const s = Re(i.inheritLocale) ? i.inheritLocale : !ge(i.locale), o = pe(!a || s ? n.locale.value : ge(i.locale) ? i.locale : hi), l = pe(!a || s ? n.fallbackLocale.value : ge(i.fallbackLocale) || ct(i.fallbackLocale) || Pe(i.fallbackLocale) || i.fallbackLocale === false ? i.fallbackLocale : o.value), u = pe(Xs(o.value, i)), c = pe(Pe(i.datetimeFormats) ? i.datetimeFormats : { 33491 [o.value]: {} 33492 }), d = pe(Pe(i.numberFormats) ? i.numberFormats : { 33493 [o.value]: {} 33494 }), p = a ? n.missingWarn : Re(i.missingWarn) || or(i.missingWarn) ? i.missingWarn : true, b = a ? n.fallbackWarn : Re(i.fallbackWarn) || or(i.fallbackWarn) ? i.fallbackWarn : true, h = a ? n.fallbackRoot : Re(i.fallbackRoot) ? i.fallbackRoot : true, _ = !!i.fallbackFormat, C = lt(i.missing) ? i.missing : null, D = lt(i.postTranslation) ? i.postTranslation : null, N = a ? n.warnHtmlMessage : Re(i.warnHtmlMessage) ? i.warnHtmlMessage : true, v = !!i.escapeParameter, y = a ? n.modifiers : Pe(i.modifiers) ? i.modifiers : {}, E = i.pluralRules || a && n.pluralRules; 33495 function k() { 33496 return [ 33497 o.value, 33498 l.value, 33499 u.value, 33500 c.value, 33501 d.value 33502 ]; 33503 } 33504 const A = ne({ 33505 get: () => r.value ? r.value.locale.value : o.value, 33506 set: (B) => { 33507 r.value && (r.value.locale.value = B), o.value = B; 33508 } 33509 }), L = ne({ 33510 get: () => r.value ? r.value.fallbackLocale.value : l.value, 33511 set: (B) => { 33512 r.value && (r.value.fallbackLocale.value = B), l.value = B; 33513 } 33514 }), w = ne(() => r.value ? r.value.messages.value : u.value), z = ne(() => c.value), T = ne(() => d.value); 33515 function P() { 33516 return r.value ? r.value.getPostTranslationHandler() : D; 33517 } 33518 function G(B) { 33519 r.value && r.value.setPostTranslationHandler(B); 33520 } 33521 function X() { 33522 return r.value ? r.value.getMissingHandler() : C; 33523 } 33524 function Y(B) { 33525 r.value && r.value.setMissingHandler(B); 33526 } 33527 function q(B) { 33528 return k(), B(); 33529 } 33530 function J(...B) { 33531 return r.value ? q(() => Reflect.apply(r.value.t, null, [ 33532 ...B 33533 ])) : q(() => ""); 33534 } 33535 function Z(...B) { 33536 return r.value ? Reflect.apply(r.value.rt, null, [ 33537 ...B 33538 ]) : ""; 33539 } 33540 function se(...B) { 33541 return r.value ? q(() => Reflect.apply(r.value.d, null, [ 33542 ...B 33543 ])) : q(() => ""); 33544 } 33545 function Q(...B) { 33546 return r.value ? q(() => Reflect.apply(r.value.n, null, [ 33547 ...B 33548 ])) : q(() => ""); 33549 } 33550 function oe(B) { 33551 return r.value ? r.value.tm(B) : {}; 33552 } 33553 function ce(B, ie) { 33554 return r.value ? r.value.te(B, ie) : false; 33555 } 33556 function be(B) { 33557 return r.value ? r.value.getLocaleMessage(B) : {}; 33558 } 33559 function ye(B, ie) { 33560 r.value && (r.value.setLocaleMessage(B, ie), u.value[B] = ie); 33561 } 33562 function ke(B, ie) { 33563 r.value && r.value.mergeLocaleMessage(B, ie); 33564 } 33565 function Ae(B) { 33566 return r.value ? r.value.getDateTimeFormat(B) : {}; 33567 } 33568 function _e(B, ie) { 33569 r.value && (r.value.setDateTimeFormat(B, ie), c.value[B] = ie); 33570 } 33571 function Te(B, ie) { 33572 r.value && r.value.mergeDateTimeFormat(B, ie); 33573 } 33574 function Ee(B) { 33575 return r.value ? r.value.getNumberFormat(B) : {}; 33576 } 33577 function Le(B, ie) { 33578 r.value && (r.value.setNumberFormat(B, ie), d.value[B] = ie); 33579 } 33580 function Be(B, ie) { 33581 r.value && r.value.mergeNumberFormat(B, ie); 33582 } 33583 const Ie = { 33584 get id() { 33585 return r.value ? r.value.id : -1; 33586 }, 33587 locale: A, 33588 fallbackLocale: L, 33589 messages: w, 33590 datetimeFormats: z, 33591 numberFormats: T, 33592 get inheritLocale() { 33593 return r.value ? r.value.inheritLocale : s; 33594 }, 33595 set inheritLocale(B) { 33596 r.value && (r.value.inheritLocale = B); 33597 }, 33598 get availableLocales() { 33599 return r.value ? r.value.availableLocales : Object.keys(u.value); 33600 }, 33601 get modifiers() { 33602 return r.value ? r.value.modifiers : y; 33603 }, 33604 get pluralRules() { 33605 return r.value ? r.value.pluralRules : E; 33606 }, 33607 get isGlobal() { 33608 return r.value ? r.value.isGlobal : false; 33609 }, 33610 get missingWarn() { 33611 return r.value ? r.value.missingWarn : p; 33612 }, 33613 set missingWarn(B) { 33614 r.value && (r.value.missingWarn = B); 33615 }, 33616 get fallbackWarn() { 33617 return r.value ? r.value.fallbackWarn : b; 33618 }, 33619 set fallbackWarn(B) { 33620 r.value && (r.value.missingWarn = B); 33621 }, 33622 get fallbackRoot() { 33623 return r.value ? r.value.fallbackRoot : h; 33624 }, 33625 set fallbackRoot(B) { 33626 r.value && (r.value.fallbackRoot = B); 33627 }, 33628 get fallbackFormat() { 33629 return r.value ? r.value.fallbackFormat : _; 33630 }, 33631 set fallbackFormat(B) { 33632 r.value && (r.value.fallbackFormat = B); 33633 }, 33634 get warnHtmlMessage() { 33635 return r.value ? r.value.warnHtmlMessage : N; 33636 }, 33637 set warnHtmlMessage(B) { 33638 r.value && (r.value.warnHtmlMessage = B); 33639 }, 33640 get escapeParameter() { 33641 return r.value ? r.value.escapeParameter : v; 33642 }, 33643 set escapeParameter(B) { 33644 r.value && (r.value.escapeParameter = B); 33645 }, 33646 t: J, 33647 getPostTranslationHandler: P, 33648 setPostTranslationHandler: G, 33649 getMissingHandler: X, 33650 setMissingHandler: Y, 33651 rt: Z, 33652 d: se, 33653 n: Q, 33654 tm: oe, 33655 te: ce, 33656 getLocaleMessage: be, 33657 setLocaleMessage: ye, 33658 mergeLocaleMessage: ke, 33659 getDateTimeFormat: Ae, 33660 setDateTimeFormat: _e, 33661 mergeDateTimeFormat: Te, 33662 getNumberFormat: Ee, 33663 setNumberFormat: Le, 33664 mergeNumberFormat: Be 33665 }; 33666 function Ve(B) { 33667 B.locale.value = o.value, B.fallbackLocale.value = l.value, Object.keys(u.value).forEach((ie) => { 33668 B.mergeLocaleMessage(ie, u.value[ie]); 33669 }), Object.keys(c.value).forEach((ie) => { 33670 B.mergeDateTimeFormat(ie, c.value[ie]); 33671 }), Object.keys(d.value).forEach((ie) => { 33672 B.mergeNumberFormat(ie, d.value[ie]); 33673 }), B.escapeParameter = v, B.fallbackFormat = _, B.fallbackRoot = h, B.fallbackWarn = b, B.missingWarn = p, B.warnHtmlMessage = N; 33674 } 33675 return fa(() => { 33676 if (e.proxy == null || e.proxy.$i18n == null) throw wt(Et.NOT_AVAILABLE_COMPOSITION_IN_LEGACY); 33677 const B = r.value = e.proxy.$i18n.__composer; 33678 t === "global" ? (o.value = B.locale.value, l.value = B.fallbackLocale.value, u.value = B.messages.value, c.value = B.datetimeFormats.value, d.value = B.numberFormats.value) : a && Ve(B); 33679 }), Ie; 33680 } 33681 const BM = [ 33682 "locale", 33683 "fallbackLocale", 33684 "availableLocales" 33685 ], ef = [ 33686 "t", 33687 "rt", 33688 "d", 33689 "n", 33690 "tm", 33691 "te" 33692 ]; 33693 function MM(e, t) { 33694 const n = /* @__PURE__ */ Object.create(null);
33695 return BM.forEach((i) => { 33696 const a = Object.getOwnPropertyDescriptor(t, i); 33697 if (!a) throw wt(Et.UNEXPECTED_ERROR); 33698 const r = Ki(a.value) ? { 33699 get() { 33700 return a.value.value; 33701 }, 33702 set(s) { 33703 a.value.value = s; 33704 } 33705 } : { 33706 get() { 33707 return a.get && a.get(); 33708 } 33709 }; 33710 Object.defineProperty(n, i, r); 33711 }), e.config.globalProperties.$i18n = n, ef.forEach((i) => { 33712 const a = Object.getOwnPropertyDescriptor(t, i); 33713 if (!a || !a.value) throw wt(Et.UNEXPECTED_ERROR); 33714 Object.defineProperty(e.config.globalProperties, `$${i}`, a); 33715 }), () => { 33716 delete e.config.globalProperties.$i18n, ef.forEach((i) => { 33717 delete e.config.globalProperties[`$${i}`]; 33718 }); 33719 }; 33720 } 33721 fM(); 33722 __INTLIFY_JIT_COMPILATION__ ? Np(oM) : Np(sM); 33723 ZB(FB); 33724 eM(Rg); 33725 if (__INTLIFY_PROD_DEVTOOLS__) { 33726 const e = Un(); 33727 e.__INTLIFY__ = true, HB(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__); 33728 } 33729 const tf = xM({ 33730 locale: jr(), 33731 messages: ai 33732 }), Ri = { 33733 article: { 33734 cardClasses: "is-bg-color-bg-alt-1", 33735 cardTrim: "none", 33736 decorativeLinkEnabled: true, 33737 decorativeLinkLabel: tf.global.tc("read"), 33738 featureClasses: "n:md:p-md n:lg:p-0", 33739 featureHeight: { 33740 xs: "auto", 33741 sm: "200px", 33742 md: "176px", 33743 lg: "200px" 33744 }, 33745 featureWidth: { 33746 xs: "100%", 33747 md: "176px", 33748 lg: "100%" 33749 }, 33750 gridRowBg: "article-card-rules", 33751 linkClasses: "n-link-cta is-normal", 33752 mainClasses: "n:gap-md n:p-lg", 33753 mediaConfig: { 33754 fit: "cover" 33755 }, 33756 mainWidth: { 33757 xs: "100%", 33758 md: "min-content", 33759 lg: "100%" 33760 }, 33761 scrollAnimation: "scale-feature", 33762 sectionGap: 0, 33763 sectionFlow: { 33764 xs: "col", 33765 md: "row", 33766 lg: "col" 33767 }, 33768 titleColor: "text", 33769 titleStyle: "heading-article-card" 33770 }, 33771 base: { 33772 cardClasses: "n:py-lg n:lg:py-xl n:px-md n:lg:px-lg is-bg-color-white is-left-aligned", 33773 cardTrim: "border", 33774 featureWidth: { 33775 xs: "32px" 33776 }, 33777 linkClasses: "n-link--is-block", 33778 mainClasses: "n:gap-sm has-outro-text", 33779 mediaConfig: { 33780 fit: "contain" 33781 }, 33782 sectionGap: "md", 33783 titleColor: "text", 33784 titleStyle: "h5" 33785 }, 33786 details: { 33787 cardClasses: "n:py-lg n:px-md n:sm:p-xl is-bg-color-bg-alt-1 is-left-aligned", 33788 cardTrim: "none", 33789 linkClasses: "n-link-cta is-normal", 33790 mainClasses: "n:gap-md", 33791 mediaConfig: { 33792 fit: "contain" 33793 }, 33794 isSquare: true, 33795 scrollAnimation: "slide-up", 33796 titleStyle: "h3" 33797 }, 33798 feature: { 33799 cardClasses: "n:p-xl is-bg-color-white is-left-aligned", 33800 cardTrim: "shadow", 33801 decorativeLinkEnabled: true, 33802 decorativeLinkLabel: tf.global.tc("label.learnMore"), 33803 featureClasses: "n:mb-sm n:md:mr-md n:lg:mr-0", 33804 featureHeight: { 33805 xs: "80px" 33806 }, 33807 featureWidth: { 33808 xs: "80px" 33809 }, 33810 footerClasses: "n:mt-sm n:sm:mt-0", 33811 isSquare: true, 33812 linkClasses: "n-link-cta is-normal", 33813 linkLocation: "decorative-link", 33814 mainClasses: "n:gap-sm n:sm:gap-md", 33815 mainWidth: { 33816 xs: "100%", 33817 md: "min-content", 33818 lg: "100%" 33819 }, 33820 mediaConfig: { 33821 fit: "contain" 33822 }, 33823 sectionFlow: { 33824 xs: "col", 33825 md: "row", 33826 lg: "col" 33827 }, 33828 sectionGap: "md", 33829 titleColor: "text", 33830 titleStyle: "h3" 33831 }, 33832 profile: { 33833 cardTrim: "none", 33834 contentClasses: "has-micro-text", 33835 mainClasses: "n:gap-sm", 33836 mediaConfig: { 33837 fit: "cover" 33838 }, 33839 sectionGap: "lg", 33840 titleStyle: "h5" 33841 }, 33842 thumbnail: { 33843 cardClasses: "is-bg-color-white is-left-aligned", 33844 cardTrim: "shadow", 33845 contentClasses: "has-outro-text n:pr-lg", 33846 decorativeLinkEnabled: true, 33847 decorativeLinkLabel: "", 33848 featureHeight: { 33849 xs: "0", 33850 sm: "126px" 33851 }, 33852 featureWidth: { 33853 xs: "0", 33854 sm: "126px" 33855 }, 33856 footerClasses: "is-right-aligned n:pos-absolute n:bottom-right n:pr-sm n:pb-sm", 33857 linkClasses: "n-link-cta",
33858 mainClasses: "n:gap-sm n:p-md n:pr-xs", 33859 mainWidth: { 33860 xs: "min-content" 33861 }, 33862 mediaConfig: { 33863 fit: "cover", 33864 height: "126", 33865 width: "126" 33866 }, 33867 sectionGap: 0, 33868 sectionFlow: { 33869 xs: "row" 33870 }, 33871 titleColor: "text", 33872 titleStyle: "h5" 33873 } 33874 }, RM = { 33875 articleBlog: { 33876 ...Ri.article, 33877 cardClasses: "is-bg-color-white", 33878 titleClasses: "n:grow-1" 33879 }, 33880 baseCentered: { 33881 ...Ri.base, 33882 featureClasses: "is-centered", 33883 mainClasses: "n:gap-sm has-outro-text is-center-aligned" 33884 }, 33885 baseInline: { 33886 ...Ri.base, 33887 featureHeight: { 33888 xs: "32px" 33889 }, 33890 featureWidth: { 33891 xs: "32px" 33892 }, 33893 mainClasses: "n:gap-xs n:mt-xs has-outro-text is-color-text-light", 33894 mainWidth: { 33895 xs: "min-content" 33896 }, 33897 sectionFlow: { 33898 xs: "row" 33899 }, 33900 sectionGap: "sm" 33901 }, 33902 profileCentered: { 33903 ...Ri.profile, 33904 featureClasses: "is-centered", 33905 mainClasses: "n:gap-sm is-center-aligned" 33906 } 33907 }, Sl = { 33908 ...Ri, 33909 ...RM 33910 }, Ui = { 33911 article: { 33912 columnGap: { 33913 xs: "border" 33914 }, 33915 columns: { 33916 xs: 1, 33917 lg: 3 33918 }, 33919 hasRowBackground: true 33920 }, 33921 base: { 33922 columnGap: { 33923 xs: "lg", 33924 sm: "xl" 33925 }, 33926 columns: { 33927 xs: 1, 33928 sm: 2, 33929 md: 3 33930 }, 33931 rowGap: { 33932 xs: "lg", 33933 sm: "xl" 33934 } 33935 }, 33936 details: { 33937 columns: { 33938 xs: 1, 33939 md: 2, 33940 lg: 3 33941 } 33942 }, 33943 feature: { 33944 columns: { 33945 xs: 1, 33946 lg: 3 33947 } 33948 }, 33949 profile: { 33950 columns: { 33951 xs: 2, 33952 md: 3, 33953 lg: 4 33954 } 33955 }, 33956 thumbnail: { 33957 columns: { 33958 xs: 1, 33959 lg: 2 33960 } 33961 } 33962 }, UM = { 33963 articleBlog: { 33964 ...Ui.article, 33965 background: "bg-alt-1" 33966 }, 33967 baseCentered: { 33968 ...Ui.base 33969 }, 33970 baseInline: { 33971 ...Ui.base, 33972 columns: { 33973 xs: 1, 33974 sm: 2, 33975 lg: 4 33976 } 33977 }, 33978 profileCentered: { 33979 ...Ui.profile 33980 } 33981 }, nf = { 33982 ...Ui, 33983 ...UM 33984 }, VM = { 33985 name: "n-card", 33986 components: { 33987 NLink: at, 33988 LinkIcon: Ut, 33989 Media: Vt 33990 }, 33991 mixins: [ 33992 bt, 33993 Ge, 33994 nt, 33995 ln, 33996 Lv 33997 ], 33998 inject: { 33999 gridPreset: { 34000 default: void 0 34001 }, 34002 cardConfig: { 34003 default: void 0 34004 }, 34005 gridData: { 34006 default: void 0 34007 }, 34008 gridId: { 34009 default: void 0 34010 }, 34011 canCheckMultiple: { 34012 default: void 0 34013 }, 34014 isListItem: { 34015 default: void 0 34016 } 34017 }, 34018 props: { 34019 preset: { 34020 type: String, 34021 validator: (e) => Object.keys(Sl).includes(e) 34022 }, 34023 cardElement: { 34024 type: String 34025 }, 34026 cardClasses: { 34027 type: String 34028 }, 34029 cardWrapperClasses: { 34030 type: String 34031 }, 34032 cardTrim: { 34033 type: String 34034 }, 34035 gridColumnSpan: { 34036 type: [ 34037 Object, 34038 void 0 34039 ] 34040 }, 34041 isSquare: { 34042 type: [ 34043 Boolean, 34044 void 0 34045 ], 34046 default: void 0 34047 }, 34048 scrollAnimation: { 34049 type: String 34050 }, 34051 gridRowBg: { 34052 type: String 34053 }, 34054 href: { 34055 type: String 34056 }, 34057 linkClasses: { 34058 type: String 34059 }, 34060 linkLocation: { 34061 type: String 34062 }, 34063 linkType: { 34064 type: String 34065 }, 34066 linkReadsEntireCardToSr: { 34067 type: [ 34068 Boolean, 34069 void 0 34070 ], 34071 default: void 0 34072 }, 34073 sectionFlow: { 34074 type: [ 34075 Object, 34076 void 0 34077 ] 34078 }, 34079 sectionGap: { 34080 type: [ 34081 String, 34082 Number 34083 ] 34084 }, 34085 featureClasses: { 34086 type: String 34087 }, 34088 featureHeight: { 34089 type: [ 34090 Object, 34091 void 0 34092 ] 34093 }, 34094 featureWidth: { 34095 type: [ 34096 Object, 34097 void 0 34098 ] 34099 }, 34100 mediaConfig: { 34101 type: [ 34102 Object 34103 ] 34104 },
34105 mainClasses: { 34106 type: String 34107 }, 34108 mainWidth: { 34109 type: [ 34110 Object, 34111 void 0 34112 ] 34113 }, 34114 introClasses: { 34115 type: String 34116 }, 34117 ...we, 34118 titleColor: { 34119 type: String 34120 }, 34121 titleStyle: { 34122 ...we.titleStyle, 34123 type: String, 34124 default: void 0 34125 }, 34126 titleClasses: { 34127 type: String 34128 }, 34129 contentClasses: { 34130 type: String 34131 }, 34132 footerClasses: { 34133 type: String 34134 }, 34135 decorativeLinkLabel: { 34136 type: String 34137 }, 34138 decorativeLinkEnabled: { 34139 type: [ 34140 Boolean, 34141 void 0 34142 ], 34143 default: void 0 34144 }, 34145 decorativeLinkClasses: { 34146 type: String 34147 } 34148 }, 34149 emits: [ 34150 "click" 34151 ], 34152 setup() { 34153 const e = _i(); 34154 return { 34155 slots: e, 34156 hasSlotContent: on(e.default).hasSlotContent, 34157 hasFeatureSlotContent: on(e.feature).hasSlotContent, 34158 hasTitleSlotContent: on(e.title).hasSlotContent, 34159 hasIntroSlotContent: on(e.intro).hasSlotContent, 34160 hasMainSlotContent: on(e.main).hasSlotContent, 34161 hasFooterSlotContent: on(e.footer).hasSlotContent 34162 }; 34163 }, 34164 data() { 34165 return { 34166 cardPresets: Sl 34167 }; 34168 }, 34169 computed: { 34170 $cardElement() { 34171 return this.cardElement ? this.cardElement : this.isListItem ? "li" : "article"; 34172 }, 34173 $config() { 34174 let e = { 34175 ...this.$props 34176 }; 34177 return Object.keys(e).forEach((t) => [ 34178 void 0, 34179 null, 34180 "" 34181 ].includes(e[t]) && delete e[t]), { 34182 cardClasses: "", 34183 cardWrapperClasses: "", 34184 cardTrim: "none", 34185 contentClasses: "", 34186 decorativeLinkClasses: "", 34187 decorativeLinkEnabled: void 0, 34188 decorativeLinkLabel: void 0, 34189 featureClasses: "", 34190 featureHeight: { 34191 xs: "auto" 34192 }, 34193 featureWidth: { 34194 xs: "100%" 34195 }, 34196 footerClasses: "", 34197 gridColumnSpan: { 34198 xs: 1 34199 }, 34200 gridRowBg: void 0, 34201 href: void 0, 34202 introClasses: "", 34203 isSquare: false, 34204 linkClasses: "n-link-cta", 34205 linkLocation: "title", 34206 linkReadsEntireCardToSr: false, 34207 linkType: this.linkType_type ? this.linkType_type : "auto-detect", 34208 mainClasses: "", 34209 mainWidth: { 34210 xs: "100%" 34211 }, 34212 mediaConfig: {}, 34213 scrollAnimation: "none", 34214 sectionFlow: { 34215 xs: "col" 34216 }, 34217 sectionGap: "md", 34218 title: void 0, 34219 titleClasses: "", 34220 titleColor: void 0, 34221 titleHeadingLevel: 2, 34222 titleStyle: "h4", 34223 ...this.gridPreset && this.cardPresets[this.gridPreset] ? this.cardPresets[this.gridPreset] : {}, 34224 ...this.cardConfig, 34225 ...this.preset && this.cardPresets[this.preset] ? this.cardPresets[this.preset] : {}, 34226 ...e 34227 }; 34228 }, 34229 isInteractive() { 34230 return !!(this.$config.href || [ 34231 "a", 34232 "button" 34233 ].includes(this.$cardElement)); 34234 }, 34235 hasDecorativeLinkSlotContent() { 34236 return !!(this.$slots["decorative-link"] && this.$slots["decorative-link"]()[0] && this.$slots["decorative-link"]()[0].text && this.$slots["decorative-link"]()[0].text.length); 34237 }, 34238 showDecorativeLink() { 34239 return !!(this.$config.href && this.$config.decorativeLinkEnabled || this.hasDecorativeLinkSlotContent); 34240 }, 34241 featureHeightStyles() { 34242 return this.createCSSCustomPropsFromObj(this.$config.featureHeight, "n-card-feature-height"); 34243 }, 34244 featureWidthStyles() { 34245 return this.createCSSCustomPropsFromObj(this.$config.featureWidth, "n-card-feature-width"); 34246 }, 34247 mainWidthStyles() { 34248 return this.createCSSCustomPropsFromObj(this.$config.mainWidth, "n-card-main-width"); 34249 }, 34250 cardRootClasses() { 34251 return [ 34252 "n-card n:m-0 no-break-print", 34253 { 34254 "n-card--square": this.$config.isSquare 34255 }, 34256 { 34257 "n-card--has-decorative-link": this.$config.decorativeLinkEnabled 34258 }, 34259 `n-card--trim-${this.$config.cardTrim}`, 34260 `n-card--scroll-animation-${this.$config.scrollAnimation}`, 34261 this.gridColumnSpanClasses, 34262 this.$config.cardClasses 34263 ]; 34264 }, 34265 gridColumnSpanClasses() { 34266 return this.$config.gridColumnSpan ? Object.keys(this.$config.gridColumnSpan).map((e) => e === "xs" ? `grid-span-${this.$config.gridColumnSpan[e]}` : `grid-${e}-span-${this.$config.gridColumnSpan[e]}`).join(" ") : ""; 34267 },
34268 sectionFlowClasses() { 34269 return this.$config.sectionFlow ? Object.keys(this.$config.sectionFlow).map((e) => e === "xs" ? `n:ff-${this.$config.sectionFlow[e]}` : `n:${e}:ff-${this.$config.sectionFlow[e]}`).join(" ") : "n:ff-col"; 34270 }, 34271 titleElement() { 34272 return this.titleIsParagraph ? "p" : `h${this.$config.titleHeadingLevel}`; 34273 } 34274 }, 34275 mounted() { 34276 this.$config.scrollAnimation !== "none" && this.$nextTick(() => { 34277 tn(this.$el, "is-scrolled-into-view", { 34278 threshold: 0.6 34279 }); 34280 }); 34281 }, 34282 methods: { 34283 eventFromSlottedAction(e) { 34284 return !!(e.target.matches(`button, input, select, details, a, textarea, 34285 button *, input *, select *, details *, a *, textarea *`) && e.target.matches(".n-card__footer *, .n-card__content *, .n-card__intro *") && !e.target.matches(".n-card__decorative-link")); 34286 }, 34287 clickHandler(e) { 34288 this.$emit("click", e), this.$refs.link && this.href && !this.eventFromSlottedAction(e) && this.$refs.link.$el.click(); 34289 } 34290 }, 34291 compatConfig: { 34292 MODE: 3 34293 } 34294 }, HM = [ 34295 "id" 34296 ], jM = { 34297 key: 1 34298 }, zM = { 34299 key: 1, 34300 ref: "intro", 34301 class: "n-card__intro has-no-margins-around" 34302 }, WM = [ 34303 "id" 34304 ]; 34305 function GM(e, t, n, i, a, r) { 34306 const s = j("Media"), o = j("LinkIcon"); 34307 return m(), U(ue(r.$cardElement), { 34308 class: R([ 34309 r.cardRootClasses, 34310 { 34311 "n-card--interactive": r.isInteractive 34312 } 34313 ]), 34314 "data-n-context": n.preset ? `n-card-${n.preset}` : "n-card", 34315 onClick: r.clickHandler 34316 }, { 34317 default: I(() => [ 34318 r.$config.gridRowBg ? (m(), x("div", { 34319 key: 0, 34320 class: R([ 34321 [ 34322 `is-bg-color-${r.$config.gridRowBg}` 34323 ], 34324 "n-card__row-bg" 34325 ]) 34326 }, null, 2)) : M("", true), 34327 O("div", { 34328 ref: "wrapper", 34329 class: R([ 34330 [ 34331 `n:gap-${r.$config.sectionGap}`, 34332 n.cardWrapperClasses, 34333 r.sectionFlowClasses 34334 ], 34335 "n-card__wrapper" 34336 ]) 34337 }, [ 34338 r.$config.media !== void 0 || i.hasFeatureSlotContent ? (m(), x("div", { 34339 key: 0, 34340 class: R([ 34341 [ 34342 r.$config.featureClasses 34343 ], 34344 "n-card__feature-section has-no-margins-around" 34345 ]), 34346 style: en(`${r.featureHeightStyles} ${r.featureWidthStyles}`) 34347 }, [ 34348 V(e.$slots, "feature", {}, () => [ 34349 K(s, { 34350 media: e.mediaProps({ 34351 ...r.$config.mediaConfig, 34352 ...r.$config.media 34353 }), 34354 "zoom-on-scroll-into-view": r.$config.zoomOnScrollIntoView, 34355 class: "n-card__feature-media" 34356 }, null, 8, [ 34357 "media", 34358 "zoom-on-scroll-into-view" 34359 ]) 34360 ]) 34361 ], 6)) : M("", true), 34362 O("div", { 34363 id: `${e.id}-main-section`, 34364 class: R([ 34365 r.$config.mainClasses, 34366 "n-card__main-section has-no-margins-around" 34367 ]), 34368 style: en(r.mainWidthStyles) 34369 }, [ 34370 V(e.$slots, "main", {}, () => [ 34371 r.$config.title || i.hasTitleSlotContent ? (m(), U(ue(r.titleElement), { 34372 key: 0, 34373 ref: "title", 34374 class: R([ 34375 [ 34376 r.$config.titleStyle, 34377 r.$config.titleColor ? `is-color-${r.$config.titleColor}` : false, 34378 r.$config.titleClasses 34379 ], 34380 "n-card__title n:my-0" 34381 ]) 34382 }, { 34383 default: I(() => [ 34384 r.$config.linkLocation === "title" ? (m(), U(ue(r.$config.href ? "n-link" : "span"), { 34385 key: 0, 34386 ref: r.$config.linkLocation === "title" ? "link" : null, 34387 "aria-labelledby": r.$config.linkReadsEntireCardToSr ? `${e.id}-main-section` : void 0, 34388 href: r.$config.href, 34389 "link-type": r.$config.linkType, 34390 icon: r.$config.decorativeLinkEnabled ? null : void 0, 34391 class: R([ 34392 r.isInteractive ? r.$config.linkClasses : false, 34393 "n-card__title-link has-no-margins-around n:my-0" 34394 ]) 34395 }, { 34396 default: I(() => [ 34397 V(e.$slots, "title", {}, () => [ 34398 re(H(r.$config.title), 1) 34399 ]) 34400 ]), 34401 _: 3 34402 }, 8, [ 34403 "aria-labelledby", 34404 "href", 34405 "link-type", 34406 "icon", 34407 "class" 34408 ])) : (m(), x("span", jM, [ 34409 V(e.$slots, "title", {}, () => [ 34410 re(H(r.$config.title), 1) 34411 ]) 34412 ])) 34413 ]), 34414 _: 3 34415 }, 8, [ 34416 "class" 34417 ])) : M("", true), 34418 i.hasIntroSlotContent ? (m(), x("div", zM, [ 34419 V(e.$slots, "intro") 34420 ], 512)) : M("", true), 34421 O("div", { 34422 id: `${r.$config.id}-content`, 34423 ref: "content", 34424 class: R([ 34425 [ 34426 r.$config.contentClasses 34427 ], 34428 "n-card__content has-no-margins-around" 34429 ]) 34430 }, [ 34431 V(e.$slots, "default") 34432 ], 10, WM), 34433 r.$config.decorativeLinkEnabled || i.slots.footer ? (m(), x("div", { 34434 key: 2, 34435 ref: "footer", 34436 class: R([ 34437 [ 34438 r.$config.footerClasses 34439 ], 34440 "n-card__footer has-no-margins-around" 34441 ]) 34442 }, [ 34443 V(e.$slots, "footer", {}, () => [ 34444 r.showDecorativeLink ? (m(), U(o, { 34445 key: 0, 34446 ref: r.$config.linkLocation === "decorative-link" ? "link" : null, 34447 "aria-labelledby": r.$config.linkReadsEntireCardToSr ? `${e.id}-main-section` : void 0, 34448 href: r.$config.linkLocation === "decorative-link" ? r.$config.href : void 0, 34449 decoration: r.$config.linkLocation !== "decorative-link", 34450 icon: r.$config.linkType === "external" ? "open-new" : "chevron-right", 34451 "icon-size": r.$config.decorativeLinkLabel && r.$config.decorativeLinkLabel.length >= 1 ? "inline" : 24, 34452 class: R([ 34453 r.$config.decorativeLinkClasses,
34454 "n-card__decorative-link is-hidden-print n-link--is-block" 34455 ]) 34456 }, { 34457 default: I(() => [ 34458 V(e.$slots, "decorative-link", {}, () => [ 34459 re(H(r.$config.decorativeLinkLabel), 1) 34460 ]) 34461 ]), 34462 _: 3 34463 }, 8, [ 34464 "aria-labelledby", 34465 "href", 34466 "decoration", 34467 "icon", 34468 "icon-size", 34469 "class" 34470 ])) : M("", true) 34471 ]) 34472 ], 2)) : M("", true) 34473 ]) 34474 ], 14, HM) 34475 ], 2) 34476 ]), 34477 _: 3 34478 }, 8, [ 34479 "class", 34480 "data-n-context", 34481 "onClick" 34482 ]); 34483 } 34484 let qM, YM; 34485 rf = te(VM, [ 34486 [ 34487 "render", 34488 GM 34489 ] 34490 ]); 34491 qM = { 34492 name: "n-card-grid", 34493 mixins: [ 34494 nt 34495 ], 34496 provide() { 34497 return { 34498 gridPreset: this.preset, 34499 cardConfig: this.cardConfig, 34500 gridData: this.gridData, 34501 gridId: this.id, 34502 isListItem: this.$config.isList 34503 }; 34504 }, 34505 props: { 34506 preset: { 34507 type: String, 34508 validator: (e) => Object.keys(nf).includes(e) 34509 }, 34510 cardConfig: { 34511 type: [ 34512 Object, 34513 void 0 34514 ] 34515 }, 34516 clearSpacingAfter: Se.clearSpacingAfter, 34517 background: { 34518 type: String, 34519 ...Se.background, 34520 default: void 0 34521 }, 34522 hasRowBackground: { 34523 type: [ 34524 Boolean, 34525 void 0 34526 ], 34527 default: void 0 34528 }, 34529 isList: { 34530 type: [ 34531 Boolean, 34532 void 0 34533 ], 34534 default: void 0 34535 }, 34536 rowGap: { 34537 type: [ 34538 Object, 34539 void 0 34540 ] 34541 }, 34542 columnGap: { 34543 type: [ 34544 Object, 34545 void 0 34546 ] 34547 }, 34548 columns: { 34549 type: [ 34550 Object, 34551 void 0 34552 ] 34553 } 34554 }, 34555 data() { 34556 return { 34557 gridPresets: nf, 34558 cardPresets: Sl, 34559 gridData: qn([]) 34560 }; 34561 }, 34562 computed: { 34563 $config() { 34564 let e = { 34565 ...this.$props 34566 }; 34567 return Object.keys(e).forEach((t) => [ 34568 void 0, 34569 null, 34570 "" 34571 ].includes(e[t]) && delete e[t]), { 34572 columnGap: void 0, 34573 columns: { 34574 xs: 1 34575 }, 34576 hasRowBackground: false, 34577 isList: false, 34578 isSquareGrid: false, 34579 rowGap: void 0, 34580 ...this.preset && this.gridPresets[this.preset] ? this.gridPresets[this.preset] : {}, 34581 ...e 34582 }; 34583 }, 34584 columnClasses() { 34585 return this.$config.columns ? Object.keys(this.$config.columns).map((e) => e === "xs" ? `grid-${12 / this.$config.columns[e]}` : `grid-${e}-${12 / this.$config.columns[e]}`).join(" ") : "grid-1"; 34586 }, 34587 columnGapClasses() { 34588 return this.$config.columnGap ? Object.keys(this.$config.columnGap).map((e) => e === "xs" ? `n:gap-x-${this.$config.columnGap[e]}` : `n:${e}:gap-x-${this.$config.columnGap[e]}`).join(" ") : "n:gap-x-xl"; 34589 }, 34590 rowGapClasses() { 34591 return this.$config.rowGap ? Object.keys(this.$config.rowGap).map((e) => e === "xs" ? `n:gap-y-${this.$config.rowGap[e]}` : `n:${e}:gap-y-${this.$config.rowGap[e]}`).join(" ") : "n:gap-y-xl"; 34592 } 34593 }, 34594 compatConfig: { 34595 MODE: 3 34596 } 34597 }; 34598 YM = [ 34599 "id" 34600 ]; 34601 function KM(e, t, n, i, a, r) { 34602 return m(), x("div", { 34603 id: e.id, 34604 class: R([ 34605 [ 34606 r.$config.background !== "transparent" ? `is-bg-color-${r.$config.background}-escaped` : false, 34607 { 34608 "n:mb-0": n.clearSpacingAfter 34609 } 34610 ], 34611 "n-card-grid" 34612 ]) 34613 }, [ 34614 (m(), U(ue(n.isList ? "ul" : "div"), { 34615 class: R([ 34616 [ 34617 { 34618 "n:overflow-hidden": r.$config.hasRowBackground 34619 }, 34620 r.rowGapClasses, 34621 r.columnGapClasses, 34622 r.columnClasses 34623 ], 34624 "n-card-grid__wrapper n:grid n:list-style-type-none n:max-w-full n:m-0 n:p-0" 34625 ]) 34626 }, { 34627 default: I(() => [ 34628 V(e.$slots, "default") 34629 ]), 34630 _: 3 34631 }, 8, [ 34632 "class" 34633 ])) 34634 ], 10, YM); 34635 } 34636 let JM, QM; 34637 XM = te(qM, [ 34638 [ 34639 "render", 34640 KM 34641 ] 34642 ]); 34643 JM = { 34644 name: "n-choice-card", 34645 components: { 34646 Card: rf 34647 }, 34648 extends: rf, 34649 inject: [ 34650 "cardCheckedHandler", 34651 "cardUncheckedHandler" 34652 ], 34653 props: { 34654 modelValue: { 34655 type: String 34656 } 34657 }, 34658 computed: { 34659 isChecked() { 34660 const e = this.gridData.find((t) => t.id === this.gridId); 34661 return e ? !!(!this.canCheckMultiple && e.checkedCard === this.cardValue || this.canCheckMultiple && e.checkedCard.includes(this.cardValue)) : false;
34662 }, 34663 cardValue() { 34664 return this.$slots.value && this.$slots.value().length && this.$refs.value && this.$refs.value.textContent ? this.$refs.value.textContent : this.modelValue ? this.modelValue : this.id ? this.id : this.$config.title; 34665 }, 34666 cardTabIndex() { 34667 var e, t, n; 34668 if (this.canCheckMultiple) return 0; 34669 const i = (e = this.gridData.find((a) => a.id === this.gridId)) == null ? void 0 : e.checkedCard; 34670 return (Array.isArray(i) ? i.length : i) ? this.isChecked ? 0 : -1 : ((n = (t = this.$el) == null ? void 0 : t.parentElement) == null ? void 0 : n.firstElementChild) === this.$el ? 0 : -1; 34671 } 34672 }, 34673 methods: { 34674 clickHandler() { 34675 if (!this.isChecked) { 34676 this.cardCheckedHandler(this.cardValue); 34677 return; 34678 } 34679 if (this.isChecked) { 34680 this.cardUncheckedHandler(this.cardValue); 34681 return; 34682 } 34683 }, 34684 previousHandler() { 34685 if (this.$el === this.$el.parentElement.firstElementChild) { 34686 this.$el.parentElement.lastElementChild.focus(); 34687 return; 34688 } 34689 this.$el.previousElementSibling.focus(); 34690 }, 34691 nextHandler() { 34692 if (this.$el === this.$el.parentElement.lastElementChild) { 34693 this.$el.parentElement.firstElementChild.focus(); 34694 return; 34695 } 34696 this.$el.nextElementSibling.focus(); 34697 } 34698 }, 34699 compatConfig: { 34700 MODE: 3 34701 } 34702 }; 34703 QM = { 34704 ref: "value", 34705 hidden: "" 34706 }; 34707 function ZM(e, t, n, i, a, r) { 34708 const s = j("Card"); 34709 return m(), U(s, fe(e.$props, { 34710 class: [ 34711 e.cardRootClasses, 34712 { 34713 "n-card--is-checked": r.isChecked 34714 } 34715 ], 34716 "aria-checked": r.isChecked ? "true" : "false", 34717 tabindex: r.cardTabIndex, 34718 role: e.canCheckMultiple ? "checkbox" : "radio", 34719 "card-element": "button", 34720 onKeyup: [ 34721 Ye(r.clickHandler, [ 34722 "space" 34723 ]), 34724 Ye(r.nextHandler, [ 34725 "down" 34726 ]), 34727 Ye(r.nextHandler, [ 34728 "right" 34729 ]), 34730 Ye(r.previousHandler, [ 34731 "up" 34732 ]), 34733 Ye(r.previousHandler, [ 34734 "left" 34735 ]) 34736 ], 34737 onClick: r.clickHandler 34738 }), { 34739 feature: I(() => [ 34740 V(e.$slots, "feature") 34741 ]), 34742 main: I(() => [ 34743 V(e.$slots, "main") 34744 ]), 34745 title: I(() => [ 34746 V(e.$slots, "title") 34747 ]), 34748 intro: I(() => [ 34749 V(e.$slots, "intro") 34750 ]), 34751 footer: I(() => [ 34752 V(e.$slots, "footer") 34753 ]), 34754 default: I(() => [ 34755 O("div", QM, [ 34756 V(e.$slots, "value") 34757 ], 512), 34758 V(e.$slots, "default") 34759 ]), 34760 _: 3 34761 }, 16, [ 34762 "class", 34763 "aria-checked", 34764 "tabindex", 34765 "role", 34766 "onKeyup", 34767 "onClick" 34768 ]); 34769 } 34770 let e8, t8, n8, r8; 34771 gU = te(JM, [ 34772 [ 34773 "render", 34774 ZM 34775 ] 34776 ]); 34777 e8 = { 34778 name: "n-choice-card-grid", 34779 extends: XM, 34780 provide() { 34781 return { 34782 gridPreset: this.preset, 34783 cardConfig: this.cardConfig, 34784 gridData: this.gridData, 34785 gridId: this.id, 34786 canCheckMultiple: this.$config.canCheckMultiple, 34787 cardCheckedHandler: this.cardCheckedHandler, 34788 cardUncheckedHandler: this.cardUncheckedHandler 34789 }; 34790 }, 34791 props: { 34792 modelValue: { 34793 type: [ 34794 String, 34795 Array 34796 ] 34797 }, 34798 legend: { 34799 type: String 34800 }, 34801 legendHeadingLevel: { 34802 type: Number, 34803 default: 3 34804 }, 34805 canCheckMultiple: { 34806 type: [ 34807 Boolean, 34808 void 0 34809 ], 34810 default: void 0 34811 } 34812 }, 34813 emits: [ 34814 "update:model-value" 34815 ], 34816 data() { 34817 return { 34818 gridData: qn([]) 34819 }; 34820 }, 34821 watch: { 34822 modelValue: { 34823 handler: function(e) { 34824 this.gridData.find((t) => t.id === this.id).checkedCard = e; 34825 } 34826 } 34827 }, 34828 mounted() { 34829 this.gridData.push({ 34830 id: this.id, 34831 checkedCard: [] 34832 }), this.modelValue && this.modelValue.length && (this.gridData.find((e) => e.id === this.id).checkedCard = this.modelValue); 34833 }, 34834 methods: { 34835 cardCheckedHandler(e) { 34836 const t = this.gridData.find((n) => n.id === this.id); 34837 this.canCheckMultiple && !t.checkedCard.includes(e) && (t.checkedCard.push(e), t.checkedCard = t.checkedCard.sort()), this.canCheckMultiple || (t.checkedCard = e), this.$emit("update:model-value", t.checkedCard); 34838 }, 34839 cardUncheckedHandler(e) { 34840 const t = this.gridData.find((n) => n.id === this.id); 34841 this.canCheckMultiple && (t.checkedCard = t.checkedCard.filter((n) => n !== e).sort()), this.$emit("update:model-value", t.checkedCard); 34842 } 34843 }, 34844 compatConfig: { 34845 MODE: 3 34846 } 34847 }; 34848 t8 = [ 34849 "id" 34850 ]; 34851 n8 = [ 34852 "id", 34853 "aria-level" 34854 ]; 34855 r8 = [ 34856 "aria-labelledby" 34857 ]; 34858 function i8(e, t, n, i, a, r) { 34859 return m(), x("div", { 34860 id: e.id, 34861 class: R([ 34862 [ 34863 e.$config.background !== "transparent" ? `is-bg-color-${e.$config.background}-escaped` : false, 34864 { 34865 "n:mb-0": e.clearSpacingAfter 34866 } 34867 ], 34868 "n-card-grid" 34869 ]) 34870 }, [ 34871 n.legend ? (m(), x("div", { 34872 key: 0, 34873 id: `${e.id}-legend`, 34874 "aria-level": n.legendHeadingLevel, 34875 role: "heading", 34876 class: "is-sr-only" 34877 }, H(n.legend), 9, n8)) : M("", true), 34878 O("div", { 34879 "aria-labelledby": `${e.id}-legend`, 34880 class: R([ 34881 [ 34882 {
34883 "n:overflow-hidden": e.$config.hasRowBackground 34884 }, 34885 e.rowGapClasses, 34886 e.columnGapClasses, 34887 e.columnClasses 34888 ], 34889 "n-card-grid__wrapper n:grid n:list-style-type-none n:max-w-full n:m-0 n:p-0" 34890 ]), 34891 role: "group" 34892 }, [ 34893 V(e.$slots, "default") 34894 ], 10, r8) 34895 ], 10, t8); 34896 } 34897 let a8, s8, o8, l8, u8, c8; 34898 bU = te(e8, [ 34899 [ 34900 "render", 34901 i8 34902 ] 34903 ]); 34904 a8 = { 34905 name: "n-charmer", 34906 compatConfig: { 34907 MODE: 3 34908 }, 34909 components: { 34910 Block: ft, 34911 NButton: ze, 34912 BlockContentBox: Ca, 34913 NLink: at, 34914 LinkIcon: Ut, 34915 Media: Vt, 34916 animateOnScrollIntoView: tn, 34917 CollapseDrawer: zh 34918 }, 34919 mixins: [ 34920 bt, 34921 em, 34922 ln 34923 ], 34924 props: { 34925 ...we, 34926 imagePosition: { 34927 type: String, 34928 default: "left", 34929 validator: (e) => [ 34930 "left", 34931 "right" 34932 ].includes(e) 34933 }, 34934 background: { 34935 ...Se.background, 34936 validator: (e) => [ 34937 "transparent", 34938 "white", 34939 "bg", 34940 "bg-alt-1" 34941 ].includes(e) 34942 }, 34943 clearSpacingAfter: Se.clearSpacingAfter 34944 }, 34945 mounted() { 34946 this.mediaType === "video-player" && this.$slots.media && !this.$slots["media-slot"]() && console.warn("Video media was provided without a transcript."); 34947 let e = { 34948 threshold: 0.6 34949 }; 34950 tn(this.$el, "is-scrolled-into-view", e); 34951 } 34952 }; 34953 s8 = { 34954 class: "row n-charmer__container" 34955 }; 34956 o8 = { 34957 class: "n-charmer__content has-vertically-centered-children col-12 col-md-6 n:pt-md n:md:pt-0" 34958 }; 34959 l8 = { 34960 class: "n-charmer__content-container no-break-print" 34961 }; 34962 u8 = { 34963 key: 1, 34964 class: "n-charmer__cta-wrapper" 34965 }; 34966 c8 = { 34967 key: 0, 34968 class: "col-12 is-hidden-sm-down" 34969 }; 34970 function d8(e, t, n, i, a, r) { 34971 const s = j("Media"), o = j("CollapseDrawer"), l = j("Block"); 34972 return m(), U(l, { 34973 class: R([ 34974 "n-charmer n:pt-2xl n:md:pt-3xl n:pb-lg n:md:pb-3xl", 34975 [ 34976 `n-charmer--${e.variant}`, 34977 `is-bg-color-${n.background}-escaped`, 34978 `n-charmer--media-${n.imagePosition}`, 34979 `n-charmer--media-type-${e.mediaType}` 34980 ] 34981 ]), 34982 "data-n-context": "n-charmer", 34983 "clear-spacing-after": n.clearSpacingAfter, 34984 "container-size": "compressed" 34985 }, { 34986 default: I(() => [ 34987 O("div", s8, [ 34988 O("div", o8, [ 34989 O("div", l8, [ 34990 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 34991 key: 0, 34992 class: R([ 34993 e.titleStyle, 34994 "n-charmer__heading n:md:mt-0" 34995 ]) 34996 }, { 34997 default: I(() => [ 34998 re(H(e.title), 1) 34999 ]), 35000 _: 1 35001 }, 8, [ 35002 "class" 35003 ])) : M("", true), 35004 O("div", { 35005 class: R([ 35006 { 35007 "has-intro-text": e.variant === "intro" 35008 }, 35009 "n-charmer__text" 35010 ]) 35011 }, [ 35012 V(e.$slots, "text") 35013 ], 2), 35014 e.url ? (m(), x("div", u8, [ 35015 (m(), U(ue(e.linkElementType), { 35016 class: R([ 35017 e.linkElementType !== "NButton" ? "n-link-cta" : "", 35018 "n-charmer__cta" 35019 ]), 35020 href: e.url, 35021 "link-format": e.linkFormat, 35022 "link-type": e.linkType, 35023 icon: e.linkIcon 35024 }, { 35025 default: I(() => [ 35026 re(H(e.linkLabel), 1) 35027 ]), 35028 _: 1 35029 }, 8, [ 35030 "class", 35031 "href", 35032 "link-format", 35033 "link-type", 35034 "icon" 35035 ])) 35036 ])) : M("", true) 35037 ]) 35038 ]), 35039 O("div", { 35040 class: R([ 35041 `is-bg-color-${n.background}`, 35042 "n-charmer__media-container has-vertically-centered-children col-12 col-md-6" 35043 ]) 35044 }, [ 35045 O("div", { 35046 class: R([ 35047 `n-charmer__media-wrapper--${e.mediaType}`, 35048 "n-charmer__media-wrapper" 35049 ]) 35050 }, [ 35051 V(e.$slots, "media", {}, () => [ 35052 K(s, { 35053 "media-type": e.mediaType, 35054 media: e.mediaProps(e.media), 35055 class: "n-charmer__media", 35056 "zoom-on-scroll-into-view": "", 35057 "clear-spacing-after": "" 35058 }, { 35059 default: I(() => [ 35060 V(e.$slots, "media-slot") 35061 ]), 35062 _: 3 35063 }, 8, [ 35064 "media-type", 35065 "media" 35066 ]) 35067 ]) 35068 ], 2) 35069 ], 2), 35070 e.mediaType === "video-player" && e.$slots["media-slot"] ? (m(), x("div", c8, [ 35071 K(o, { 35072 title: e.$t("videoPlayer.transcriptButton"), 35073 "title-heading-level": e.titleHeadingLevel + 1 35074 }, { 35075 default: I(() => [ 35076 V(e.$slots, "media-slot") 35077 ]), 35078 _: 3 35079 }, 8, [ 35080 "title", 35081 "title-heading-level" 35082 ]) 35083 ])) : M("", true) 35084 ]) 35085 ]), 35086 _: 3 35087 }, 8, [ 35088 "class", 35089 "clear-spacing-after" 35090 ]); 35091 } 35092 let Bu, p8, f8, m8; 35093 Bu = te(a8, [ 35094 [ 35095 "render", 35096 d8 35097 ] 35098 ]); 35099 vU = { 35100 name: "n-charmer-basic", 35101 compatConfig: { 35102 MODE: 3 35103 }, 35104 extends: Bu, 35105 props: { 35106 titleStyle: { 35107 ...we.titleStyle, 35108 default: "h2" 35109 } 35110 }, 35111 data() { 35112 return { 35113 variant: "basic" 35114 }; 35115 }, 35116 computed: { 35117 defaultMediaProps() { 35118 return this.mediaType !== "picture" ? {} : { 35119 sizes: { 35120 xs: "100vw", 35121 md: "296px", 35122 lg: "400px" 35123 }, 35124 width: "768", 35125 height: "768" 35126 }; 35127 } 35128 } 35129 }; 35130 yU = { 35131 name: "n-charmer-intro", 35132 compatConfig: { 35133 MODE: 3 35134 }, 35135 extends: Bu, 35136 data() { 35137 return { 35138 variant: "intro", 35139 defaultMediaProps: { 35140 sizes: { 35141 xs: "100vw", 35142 md: "296px", 35143 lg: "400px" 35144 }, 35145 width: "768", 35146 height: "768" 35147 } 35148 }; 35149 } 35150 }; 35151 p8 = { 35152 name: "n-charmer-intro-full-image", 35153 compatConfig: { 35154 MODE: 3 35155 }, 35156 extends: Bu, 35157 props: { 35158 clearSpacingAfter: { 35159 ...Se.clearSpacingAfter 35160 } 35161 }, 35162 data() { 35163 return { 35164 variant: "intro-full-image" 35165 }; 35166 } 35167 }; 35168 f8 = { 35169 class: "n-charmer__media-container" 35170 }; 35171 m8 = { 35172 class: "n-charmer__text has-intro-text" 35173 }; 35174 function h8(e, t, n, i, a, r) { 35175 const s = j("Media"), o = j("BlockContentBox"); 35176 return m(), x("div", { 35177 class: R([ 35178 [ 35179 { 35180 "is-clear-margin-bottom": n.clearSpacingAfter 35181 } 35182 ], 35183 "n-charmer n-charmer--intro-full-image is-block-gapped" 35184 ]) 35185 }, [ 35186 O("div", f8, [ 35187 V(e.$slots, "media", {}, () => [ 35188 K(s, { 35189 "media-type": e.mediaType, 35190 media: e.mediaProps(e.media), 35191 position: e.media && e.media.position ? e.media.position : "50% 50%", 35192 class: "n-charmer__media", 35193 "zoom-on-scroll-into-view": "" 35194 }, null, 8, [ 35195 "media-type", 35196 "media", 35197 "position" 35198 ]) 35199 ]) 35200 ]), 35201 K(o, { 35202 align: e.imagePosition === "right" ? "left" : "right", 35203 "container-size": "compressed", 35204 "clear-spacing-after": "" 35205 }, { 35206 default: I(() => [ 35207 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 35208 key: 0, 35209 class: R([ 35210 e.titleStyle, 35211 "n-charmer__heading is-clear-margin-top" 35212 ]) 35213 }, { 35214 default: I(() => [ 35215 re(H(e.title), 1) 35216 ]), 35217 _: 1 35218 }, 8, [ 35219 "class" 35220 ])) : M("", true), 35221 O("div", m8, [ 35222 V(e.$slots, "text") 35223 ]) 35224 ]), 35225 _: 3 35226 }, 8, [ 35227 "align" 35228 ]) 35229 ], 2); 35230 } 35231 let g8; 35232 _U = te(p8, [ 35233 [ 35234 "render", 35235 h8 35236 ] 35237 ]); 35238 g8 = { 35239 name: "n-content-block", 35240 compatConfig: { 35241 MODE: 3 35242 }, 35243 components: { 35244 Block: ft, 35245 NLink: at 35246 }, 35247 props: { 35248 ...we, 35249 linkLabel: { 35250 type: String 35251 }, 35252 url: { 35253 type: String 35254 }, 35255 background: { 35256 ...Se.background, 35257 validator: (e) => [ 35258 "transparent", 35259 "white", 35260 "primary", 35261 "bg", 35262 "bg-alt-1" 35263 ].includes(e) 35264 }, 35265 align: { 35266 type: String, 35267 default: "left", 35268 validator: (e) => [ 35269 "left", 35270 "center" 35271 ].includes(e) 35272 }, 35273 clearSpacingAfter: { 35274 ...Se.clearSpacingAfter 35275 } 35276 } 35277 }; 35278 function b8(e, t, n, i, a, r) { 35279 const s = j("NLink"), o = j("Block"); 35280 return m(), U(o, { 35281 class: R([ 35282 [ 35283 `n-content-block--${e.variant}`, 35284 { 35285 "has-intro-text": e.variant === "intro" 35286 }, 35287 { 35288 "is-color-text-reverse has-reverse-items": [ 35289 "primary", 35290 "bg-dark", 35291 "secondary" 35292 ].includes(n.background) 35293 }, 35294 { 35295 "has-full-width-copy is-center-aligned has-centered-children": n.align === "center" 35296 }, 35297 { 35298 "is-clear-padding-vertical": n.background === "transparent" 35299 }, 35300 { 35301 "is-clear-margin-bottom": n.clearSpacingAfter 35302 } 35303 ], 35304 "n-content-block" 35305 ]), 35306 background: n.background, 35307 "escaped-background": "", 35308 "container-size": "compressed" 35309 }, {
35310 default: I(() => [ 35311 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 35312 key: 0, 35313 class: R([ 35314 e.titleStyle, 35315 "n-content-block__heading" 35316 ]), 35317 innerHTML: e.title 35318 }, null, 8, [ 35319 "class", 35320 "innerHTML" 35321 ])) : M("", true), 35322 V(e.$slots, "default"), 35323 n.url ? (m(), U(s, { 35324 key: 1, 35325 class: R([ 35326 { 35327 "is-color-text-reverse has-reverse-items": [ 35328 "primary", 35329 "bg-dark", 35330 "secondary" 35331 ].includes(n.background) 35332 }, 35333 "n-link-cta" 35334 ]), 35335 href: n.url 35336 }, { 35337 default: I(() => [ 35338 re(H(n.linkLabel), 1) 35339 ]), 35340 _: 1 35341 }, 8, [ 35342 "class", 35343 "href" 35344 ])) : M("", true) 35345 ]), 35346 _: 3 35347 }, 8, [ 35348 "class", 35349 "background" 35350 ]); 35351 } 35352 let wl, v8, y8, _8, E8, k8; 35353 wl = te(g8, [ 35354 [ 35355 "render", 35356 b8 35357 ] 35358 ]); 35359 EU = { 35360 name: "n-content-block-basic", 35361 compatConfig: { 35362 MODE: 3 35363 }, 35364 extends: wl, 35365 data() { 35366 return { 35367 variant: "basic" 35368 }; 35369 } 35370 }; 35371 kU = { 35372 name: "n-content-block-intro", 35373 compatConfig: { 35374 MODE: 3 35375 }, 35376 extends: wl, 35377 props: { 35378 background: { 35379 ...wl.background, 35380 default: "primary" 35381 } 35382 }, 35383 data() { 35384 return { 35385 variant: "intro" 35386 }; 35387 } 35388 }; 35389 v8 = { 35390 name: "n-crosslinks", 35391 compatConfig: { 35392 MODE: 3 35393 }, 35394 components: { 35395 Block: ft, 35396 NLink: at, 35397 LinkIcon: Ut 35398 }, 35399 props: { 35400 ...we, 35401 titleStyle: { 35402 ...we.titleStyle, 35403 default: "h2" 35404 }, 35405 items: { 35406 type: Array, 35407 required: true, 35408 default: () => [], 35409 validator: (e) => e.filter((t) => ({}).hasOwnProperty.call(t, "url") && {}.hasOwnProperty.call(t, "label")).length === e.length 35410 }, 35411 background: { 35412 ...Se.background, 35413 validator: (e) => [ 35414 "transparent", 35415 "white", 35416 "bg-alt-1" 35417 ].includes(e) 35418 }, 35419 clearSpacingAfter: { 35420 ...Se.clearSpacingAfter 35421 } 35422 }, 35423 computed: { 35424 showDetails() { 35425 return this.variant === "detailed"; 35426 } 35427 } 35428 }; 35429 y8 = { 35430 class: "container" 35431 }; 35432 _8 = { 35433 class: "n-crosslinks__list row" 35434 }; 35435 E8 = { 35436 class: "n-crosslinks__item" 35437 }; 35438 k8 = { 35439 key: 0, 35440 class: "n-crosslinks__item-details" 35441 }; 35442 function C8(e, t, n, i, a, r) { 35443 const s = j("Block"); 35444 return m(), U(s, { 35445 class: R([ 35446 [ 35447 `n-crosslinks--${e.variant}`, 35448 { 35449 "is-clear-margin-bottom": n.clearSpacingAfter 35450 }, 35451 { 35452 "has-reverse-items": [ 35453 "bg-dark", 35454 "primary", 35455 "secondary" 35456 ].includes(n.background) 35457 } 35458 ], 35459 "n-crosslinks" 35460 ]), 35461 background: n.background, 35462 "container-size": "compressed", 35463 "escaped-background": "", 35464 "clear-vertical-on-transparent": "", 35465 "events-context": "n-crosslinks" 35466 }, { 35467 default: I(() => [ 35468 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 35469 key: 0, 35470 class: R([ 35471 n.titleStyle, 35472 "n-crosslinks__heading" 35473 ]) 35474 }, { 35475 default: I(() => [ 35476 re(H(e.title), 1) 35477 ]), 35478 _: 1 35479 }, 8, [ 35480 "class" 35481 ])) : M("", true), 35482 V(e.$slots, "default"), 35483 O("div", y8, [ 35484 O("ul", _8, [ 35485 (m(true), x(me, null, ve(n.items, (o, l) => (m(), x("li", { 35486 key: l, 35487 class: R([ 35488 [ 35489 `${r.showDetails ? "col-12" : "col-md-6"}` 35490 ], 35491 "n-crosslinks__item-col no-break-print" 35492 ]) 35493 }, [ 35494 O("div", E8, [ 35495 (m(), U(ue(o.linkType ? "NLink" : "LinkIcon"), { 35496 to: o.to, 35497 href: o.url, 35498 "link-type": o.linkType, 35499 "file-ext": o.fileExt, 35500 "file-size": o.fileSize, 35501 class: "h4 n-link--is-block n-crosslinks__item-link" 35502 }, { 35503 default: I(() => [ 35504 re(H(o.label), 1) 35505 ]), 35506 _: 2 35507 }, 1032, [ 35508 "to", 35509 "href", 35510 "link-type", 35511 "file-ext", 35512 "file-size" 35513 ])),
35514 o.details && r.showDetails ? (m(), x("div", k8, [ 35515 O("p", null, H(o.details), 1) 35516 ])) : M("", true) 35517 ]) 35518 ], 2))), 128)) 35519 ]) 35520 ]) 35521 ]), 35522 _: 3 35523 }, 8, [ 35524 "class", 35525 "background" 35526 ]); 35527 } 35528 let nb, rb, A8, S8, w8, L8, x8, O8, $8, T8; 35529 nb = te(v8, [ 35530 [ 35531 "render", 35532 C8 35533 ] 35534 ]); 35535 CU = { 35536 name: "n-crosslinks-basic", 35537 compatConfig: { 35538 MODE: 3 35539 }, 35540 extends: nb, 35541 data() { 35542 return { 35543 variant: "basic" 35544 }; 35545 } 35546 }; 35547 AU = { 35548 name: "n-crosslinks-detailed", 35549 compatConfig: { 35550 MODE: 3 35551 }, 35552 extends: nb, 35553 data() { 35554 return { 35555 variant: "detailed" 35556 }; 35557 } 35558 }; 35559 rb = { 35560 props: { 35561 ...we, 35562 background: { 35563 ...Se.background, 35564 validator: (e) => [ 35565 "transparent", 35566 "white", 35567 "bg", 35568 "bg-alt-1", 35569 "primary" 35570 ].includes(e) 35571 }, 35572 buttonLabel: { 35573 type: String, 35574 default: "Learn more" 35575 }, 35576 buttonFormat: { 35577 type: String, 35578 default: "primary", 35579 validator(e) { 35580 return [ 35581 "primary", 35582 "secondary", 35583 "ghost" 35584 ].includes(e); 35585 } 35586 }, 35587 buttonIcon: { 35588 type: String 35589 }, 35590 buttonAriaLabel: { 35591 type: String 35592 }, 35593 url: { 35594 type: String 35595 }, 35596 clearSpacingAfter: Se.clearSpacingAfter 35597 }, 35598 computed: { 35599 hasSlotContent() { 35600 return !!this.$slots.default; 35601 }, 35602 hasMediaSlotContent() { 35603 return !!this.$slots.media; 35604 }, 35605 isReversed() { 35606 return !![ 35607 "primary", 35608 "bg-dark", 35609 "secondary" 35610 ].includes(this.background); 35611 } 35612 }, 35613 methods: {} 35614 }; 35615 A8 = { 35616 name: "n-cta-centred", 35617 compatConfig: { 35618 MODE: 3 35619 }, 35620 components: { 35621 NButton: ze, 35622 Media: Vt 35623 }, 35624 mixins: [ 35625 rb, 35626 ln, 35627 bt 35628 ], 35629 props: { 35630 background: { 35631 ...Se.background, 35632 default: "primary" 35633 } 35634 }, 35635 mounted() { 35636 tn(this.$el); 35637 } 35638 }; 35639 S8 = { 35640 class: "row" 35641 }; 35642 w8 = { 35643 class: "col" 35644 }; 35645 L8 = { 35646 class: "row" 35647 }; 35648 x8 = { 35649 key: 0, 35650 class: "col-12" 35651 }; 35652 O8 = { 35653 class: "n-cta__media-wrapper n:mb-xl has-centered-children" 35654 }; 35655 $8 = { 35656 class: "col-12 has-no-margin-start" 35657 }; 35658 T8 = { 35659 class: "col-12 has-no-margin-end" 35660 }; 35661 function I8(e, t, n, i, a, r) { 35662 const s = j("Media"), o = j("NButton"); 35663 return m(), x("div", { 35664 class: R([ 35665 [ 35666 { 35667 "is-clear-margin-bottom": e.clearSpacingAfter 35668 } 35669 ], 35670 "n-cta n-cta--centred container is-hidden-print is-block-gapped" 35671 ]), 35672 "data-n-context": "n-cta-centred" 35673 }, [ 35674 O("div", S8, [ 35675 O("div", w8, [ 35676 O("div", { 35677 class: R([ 35678 [ 35679 `is-bg-color-${n.background}`, 35680 `${e.isReversed ? "is-color-white" : ""}`, 35681 `${n.background === "transparent" ? "is-clear-padding-vertical" : ""}` 35682 ], 35683 "n-cta__wrapper is-center-aligned" 35684 ]) 35685 }, [ 35686 O("div", L8, [ 35687 e.media || e.hasMediaSlotContent ? (m(), x("div", x8, [ 35688 O("div", O8, [ 35689 V(e.$slots, "media", {}, () => [ 35690 K(s, { 35691 "media-type": e.mediaType, 35692 media: e.mediaProps(e.media), 35693 class: "n-cta__media", 35694 "max-width": "80px", 35695 "clear-spacing-after": "" 35696 }, { 35697 default: I(() => [ 35698 V(e.$slots, "media-slot") 35699 ]), 35700 _: 3 35701 }, 8, [ 35702 "media-type", 35703 "media" 35704 ]) 35705 ]) 35706 ]) 35707 ])) : M("", true), 35708 O("div", $8, [ 35709 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 35710 key: 0, 35711 class: R([ 35712 [ 35713 `${e.titleStyle}`, 35714 `${e.isReversed ? "is-color-white" : ""}` 35715 ], 35716 "n-cta__title is-centered" 35717 ]) 35718 }, { 35719 default: I(() => [ 35720 re(H(e.title), 1) 35721 ]), 35722 _: 1 35723 }, 8, [ 35724 "class" 35725 ])) : M("", true), 35726 e.hasSlotContent ? (m(), x("div", { 35727 key: 1, 35728 class: R([ 35729 { 35730 "has-reverse-items": e.isReversed 35731 }, 35732 "n-cta__content center has-centered-children has-intro-text" 35733 ]) 35734 }, [ 35735 V(e.$slots, "default") 35736 ], 2)) : M("", true) 35737 ]), 35738 O("div", T8, [ 35739 V(e.$slots, "action", {}, () => [ 35740 e.url ? (m(), U(o, { 35741 key: 0, 35742 href: e.url, 35743 "link-type": e.linkType, 35744 reverse: e.isReversed, 35745 icon: e.buttonIcon, 35746 format: e.buttonFormat, 35747 "aria-label": e.buttonAriaLabel, 35748 class: "n-cta__button" 35749 }, { 35750 default: I(() => [ 35751 re(H(e.buttonLabel), 1) 35752 ]), 35753 _: 1 35754 }, 8, [ 35755 "href", 35756 "link-type", 35757 "reverse", 35758 "icon", 35759 "format", 35760 "aria-label" 35761 ])) : M("", true) 35762 ]) 35763 ]) 35764 ]) 35765 ], 2) 35766 ]) 35767 ]) 35768 ], 2); 35769 } 35770 let F8, N8, D8; 35771 SU = te(A8, [ 35772 [ 35773 "render", 35774 I8 35775 ] 35776 ]); 35777 F8 = { 35778 name: "n-cta-split", 35779 compatConfig: { 35780 MODE: 3 35781 }, 35782 components: { 35783 NButton: ze, 35784 Media: Vt 35785 }, 35786 mixins: [ 35787 rb, 35788 ln, 35789 bt 35790 ], 35791 props: { 35792 background: { 35793 ...Se.background, 35794 default: "bg" 35795 }, 35796 titleStyle: { 35797 ...we.titleStyle, 35798 default: "h2" 35799 } 35800 }, 35801 mounted() { 35802 tn(this.$el); 35803 } 35804 }; 35805 N8 = { 35806 key: 0, 35807 class: "n-cta__media-wrapper n:mb-xl n:lg:mb-0 n:mr-xl" 35808 }; 35809 D8 = { 35810 class: "n-cta__content-col has-no-margins-around n:lg:m-0 n:lg:pr-xl" 35811 }; 35812 function P8(e, t, n, i, a, r) { 35813 const s = j("Media"), o = j("NButton"); 35814 return m(), x("div", { 35815 class: R([ 35816 [ 35817 { 35818 "is-clear-margin-bottom": e.clearSpacingAfter 35819 } 35820 ], 35821 "n-cta n-cta--split container is-hidden-print is-block-gapped" 35822 ]), 35823 "data-n-context": "n-cta-split" 35824 }, [ 35825 O("div", { 35826 class: R([ 35827 [ 35828 `is-bg-color-${n.background}`, 35829 `${e.isReversed ? "is-color-white" : ""}`, 35830 `${n.background === "transparent" ? "is-clear-padding-vertical" : ""}` 35831 ], 35832 "n-cta__wrapper n:items-center n:lg:flex n:py-2xl n:px-md n:sm:py-2xl n:sm:px-xl n:md:p-3xl n:xl:p-4xl" 35833 ]) 35834 }, [ 35835 e.media || e.hasMediaSlotContent ? (m(), x("div", N8, [ 35836 V(e.$slots, "media", {}, () => [ 35837 K(s, { 35838 "media-type": e.mediaType, 35839 media: e.mediaProps(e.media), 35840 class: "n-cta__media", 35841 "max-width": "80px", 35842 "clear-spacing-after": "" 35843 }, { 35844 default: I(() => [ 35845 V(e.$slots, "media-slot") 35846 ]), 35847 _: 3 35848 }, 8, [ 35849 "media-type", 35850 "media" 35851 ]) 35852 ]) 35853 ])) : M("", true), 35854 O("div", D8, [ 35855 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 35856 key: 0, 35857 class: R([ 35858 "n-cta__title", 35859 `${n.titleStyle}`, 35860 `${e.isReversed ? "is-color-white" : ""}` 35861 ]) 35862 }, { 35863 default: I(() => [ 35864 re(H(e.title), 1) 35865 ]), 35866 _: 1 35867 }, 8, [ 35868 "class" 35869 ])) : M("", true), 35870 e.hasSlotContent ? (m(), x("div", { 35871 key: 1, 35872 class: R([ 35873 { 35874 "has-reverse-items": e.isReversed 35875 }, 35876 "n-cta__content" 35877 ]) 35878 }, [ 35879 V(e.$slots, "default") 35880 ], 2)) : M("", true) 35881 ]), 35882 V(e.$slots, "action", {}, () => [ 35883 e.url ? (m(), U(o, { 35884 key: 0, 35885 href: e.url, 35886 "link-type": e.linkType, 35887 reverse: e.isReversed, 35888 icon: e.buttonIcon, 35889 format: e.buttonFormat, 35890 "aria-label": e.buttonAriaLabel, 35891 class: "n-cta__button n:m-0 n:mt-lg n:lg:mt-0" 35892 }, { 35893 default: I(() => [ 35894 re(H(e.buttonLabel), 1) 35895 ]), 35896 _: 1 35897 }, 8, [ 35898 "href", 35899 "link-type", 35900 "reverse", 35901 "icon", 35902 "format", 35903 "aria-label" 35904 ])) : M("", true) 35905 ]) 35906 ], 2) 35907 ], 2); 35908 } 35909 let B8, M8; 35910 wU = te(F8, [ 35911 [ 35912 "render", 35913 P8 35914 ] 35915 ]); 35916 B8 = { 35917 name: "n-currency", 35918 mixins: [ 35919 Ge 35920 ], 35921 props: { 35922 amount: { 35923 type: Number, 35924 default: 0 35925 }, 35926 currencyCode: { 35927 type: String, 35928 default: "CAD" 35929 }, 35930 lang: { 35931 type: String, 35932 default: function() { 35933 return Ze.global.locale; 35934 } 35935 }, 35936 isFormatted: { 35937 type: Boolean 35938 }, 35939 showCents: { 35940 type: Boolean 35941 } 35942 }, 35943 computed: { 35944 formatter() { 35945 return new Intl.NumberFormat(this.lang, { 35946 style: "currency", 35947 currency: this.currencyCode 35948 }); 35949 }, 35950 parts() { 35951 return this.formatter.formatToParts(this.amount); 35952 } 35953 } 35954 }; 35955 M8 = [ 35956 "value" 35957 ]; 35958 function R8(e, t, n, i, a, r) { 35959 return m(), x("data", { 35960 value: n.amount, 35961 class: "n-currency" 35962 }, [ 35963 (m(true), x(me, null, ve(r.parts, (s, o) => (m(), x("span", { 35964 key: o, 35965 class: R([ 35966 s.type === "currency" ? n.isFormatted ? "n-currency__symbol n-currency__symbol--formatted" : "n-currency__symbol" : `n-currency__${s.type}`, 35967 { 35968 "is-hidden": [ 35969 "decimal", 35970 "fraction" 35971 ].includes(s.type) && !n.showCents 35972 } 35973 ]) 35974 }, H(s.type === "currency" & n.currencyCode === "CAD" ? "$" : s.value), 3))), 128)) 35975 ], 8, M8); 35976 } 35977 let Js;
35978 U8 = te(B8, [ 35979 [ 35980 "render", 35981 R8 35982 ] 35983 ]); 35984 Js = { 35985 title: String, 35986 titleHeadingLevel: { 35987 type: Number, 35988 default: 2 35989 }, 35990 titleStyle: { 35991 type: String, 35992 default: "h1" 35993 }, 35994 disableInteraction: Boolean, 35995 enableValidation: Boolean 35996 }; 35997 function ib(e, t, n) { 35998 if (!e) return []; 35999 const i = _b(t); 36000 return sg(e).map((a) => { 36001 var r, s, o, l; 36002 let u = i && Object.hasOwn(i, a.name) ? i[a.name] : ""; 36003 const c = { 36004 label: a.label, 36005 value: u 36006 }; 36007 return typeof u == "boolean" && n && (c.value = n(u ? "label.yes" : "label.no")), a.options && (c.value = C$(a.options, u)), (s = (r = a == null ? void 0 : a.inputType) == null ? void 0 : r.toLowerCase()) != null && s.includes("currency") && (c.format = "currency"), (l = (o = a == null ? void 0 : a.inputType) == null ? void 0 : o.toLowerCase()) != null && l.includes("date") && (c.format = "datepicker"), c; 36008 }); 36009 } 36010 let V8, H8, j8, z8, W8, G8, q8, Y8, K8, X8, J8, Q8, ab, Z8, eR, nR, rR, iR, aR, sR, oR, lR, uR, cR, dR, pR, mR, hR, gR, bR; 36011 V8 = { 36012 class: "is-border-all n:p-md n:lg:p-lg n:mb-lg" 36013 }; 36014 H8 = { 36015 class: "n:flex" 36016 }; 36017 j8 = { 36018 class: "has-no-margin-start n:grow-1" 36019 }; 36020 z8 = { 36021 key: 0, 36022 class: "is-hidden-md-down has-no-margins-around has-vertical-dividers" 36023 }; 36024 W8 = { 36025 class: "n:w-full has-no-margin-start" 36026 }; 36027 G8 = { 36028 class: "n:flex" 36029 }; 36030 q8 = { 36031 key: 0, 36032 class: "is-hidden-md-down has-no-margin-start n:grow-1" 36033 }; 36034 Y8 = { 36035 key: 1, 36036 class: "is-hidden-md-down has-no-margins-around" 36037 }; 36038 K8 = { 36039 class: "has-no-margin-start" 36040 }; 36041 X8 = { 36042 key: 0, 36043 class: "is-hidden-lg-up n:mt-md has-no-margins-end has-vertical-dividers" 36044 }; 36045 J8 = { 36046 key: 1, 36047 class: "is-hidden-lg-up n:mt-md has-no-margins-end has-vertical-dividers" 36048 }; 36049 Q8 = { 36050 key: 2, 36051 class: "is-hidden-lg-up n:mt-md has-no-margins-end has-vertical-dividers" 36052 }; 36053 ab = { 36054 __name: "NPanel", 36055 props: we, 36056 setup(e) { 36057 const t = _i(), n = e, i = on(t.header).hasSlotContent; 36058 return (a, r) => (m(), x("div", V8, [ 36059 O("div", H8, [ 36060 O("div", j8, [ 36061 ae(i) ? V(a.$slots, "header", { 36062 key: 0 36063 }, () => [ 36064 (m(), U(ue(n.titleIsParagraph ? "p" : `h${n.titleHeadingLevel}`), { 36065 class: R(n.titleStyle) 36066 }, { 36067 default: I(() => [ 36068 re(H(n.title), 1) 36069 ]), 36070 _: 1 36071 }, 8, [ 36072 "class" 36073 ])) 36074 ]) : M("", true) 36075 ]), 36076 a.$slots.buttons ? (m(), x("div", z8, [ 36077 V(a.$slots, "buttons") 36078 ])) : M("", true) 36079 ]), 36080 O("div", W8, [ 36081 V(a.$slots, "default") 36082 ]), 36083 O("div", G8, [ 36084 a.$slots.footer ? (m(), x("div", q8, [ 36085 V(a.$slots, "footer") 36086 ])) : M("", true), 36087 a.$slots.status ? (m(), x("div", Y8, [ 36088 V(a.$slots, "status") 36089 ])) : M("", true) 36090 ]), 36091 O("div", K8, [ 36092 a.$slots.footer ? (m(), x("div", X8, [ 36093 V(a.$slots, "footer") 36094 ])) : M("", true), 36095 a.$slots.status ? (m(), x("div", J8, [ 36096 V(a.$slots, "status") 36097 ])) : M("", true), 36098 a.$slots.buttons ? (m(), x("div", Q8, [ 36099 V(a.$slots, "buttons") 36100 ])) : M("", true) 36101 ]) 36102 ])); 36103 } 36104 }; 36105 Z8 = { 36106 __name: "DataPanelForm", 36107 props: { 36108 ...Js, 36109 schema: { 36110 type: Object, 36111 required: true 36112 }, 36113 additionalValidationContext: { 36114 type: Object 36115 }, 36116 modelValue: { 36117 type: Object 36118 }, 36119 index: { 36120 type: Number 36121 }, 36122 saveBtnLabel: { 36123 type: String 36124 }, 36125 cancelBtnLabel: { 36126 type: String 36127 } 36128 }, 36129 emits: [ 36130 "cancel", 36131 "cancel-new", 36132 "update:draft", 36133 "update:modelValue", 36134 "form-open", 36135 "header-change" 36136 ], 36137 setup(e, { emit: t }) { 36138 const n = pe(false), i = pe(), a = pe(), { t: r } = Wr({ 36139 useScope: "parent" 36140 }), s = e, o = t, l = pe(s.modelValue), u = pe(null); 36141 async function c() { 36142 u.value && (await rr(), u.value.$el.focus(), u.value.$el.scrollIntoView()); 36143 } 36144 async function d() { 36145 n.value = true, await rr(), i.value ? (o("update:modelValue", l.value), o("update:draft", {})) : c(); 36146 } 36147 function p() { 36148 Ma(s.modelValue) ? o("cancel-new") : o("cancel"), o("update:draft", {}); 36149 } 36150 const b = pe(null); 36151 return nn(() => { 36152 o("form-open", b); 36153 }), (h, _) => (m(), U(ab, Pt(Bt(s)), $n({ 36154 default: I(() => [ 36155 V(h.$slots, "default", { 36156 localState: l.value 36157 }, () => [ 36158 a.value && a.value.length > 0 ? (m(), U(ae(tg), { 36159 key: 0, 36160 ref_key: "formErrorSummary", 36161 ref: u, 36162 "error-count": a.value.length, 36163 class: "n:mb-xl" 36164 }, null, 8, [ 36165 "error-count" 36166 ])) : M("", true), 36167 K(ae(og), { 36168 ref_key: "formEl", 36169 ref: b, 36170 modelValue: l.value, 36171 "onUpdate:modelValue": [ 36172 _[1] || (_[1] = (C) => l.value = C), 36173 _[2] || (_[2] = (C) => o("update:draft", l.value)) 36174 ], 36175 "enable-validation": n.value || h.enableValidation, 36176 schema: e.schema, 36177 "additional-validation-context": e.additionalValidationContext, 36178 onFormErrors: _[3] || (_[3] = (C) => a.value = C), 36179 onValidationResult: _[4] || (_[4] = (C) => i.value = C) 36180 }, null, 8, [ 36181 "modelValue", 36182 "enable-validation", 36183 "schema", 36184 "additional-validation-context" 36185 ]) 36186 ]), 36187 K(ae(ze), { 36188 format: "secondary", 36189 onClick: p 36190 }, { 36191 default: I(() => [ 36192 re(H(e.cancelBtnLabel || ae(r)("label.cancel")), 1) 36193 ]), 36194 _: 1 36195 }), 36196 K(ae(ze), { 36197 onClick: d 36198 }, { 36199 default: I(() => [ 36200 re(H(e.saveBtnLabel || ae(r)("label.save")), 1) 36201 ]), 36202 _: 1 36203 }) 36204 ]), 36205 _: 2 36206 }, [ 36207 h.$slots.header ? { 36208 name: "header", 36209 fn: I(() => [ 36210 O("div", { 36211 onVnodeMounted: _[0] || (_[0] = (C) => o("header-change", C.el)) 36212 }, [ 36213 V(h.$slots, "header", { 36214 localState: l.value 36215 }) 36216 ], 512) 36217 ]), 36218 key: "0" 36219 } : void 0, 36220 h.$slots.buttons ? { 36221 name: "buttons", 36222 fn: I(() => [ 36223 V(h.$slots, "buttons", { 36224 localState: l.value 36225 }) 36226 ]), 36227 key: "1" 36228 } : void 0 36229 ]), 1040)); 36230 } 36231 }; 36232 eR = { 36233 class: "n-property-list" 36234 }; 36235 tR = { 36236 __name: "PropertyList", 36237 props: { 36238 properties: { 36239 type: Array, 36240 required: true 36241 }, 36242 columnsPerBreakpoint: { 36243 type: Object, 36244 default: () => ({ 36245 xs: 1, 36246 sm: 1, 36247 md: 2, 36248 lg: 2, 36249 xl: 2 36250 }), 36251 validator(e) { 36252 return Object.keys(e).every((t) => [ 36253 "xs", 36254 "sm", 36255 "md", 36256 "lg", 36257 "xl" 36258 ].includes(t)); 36259 } 36260 } 36261 }, 36262 setup(e) { 36263 const t = { 36264 xs: 1, 36265 sm: 1, 36266 md: 2, 36267 lg: 2, 36268 xl: 2 36269 }, n = e, i = ne(() => ({ 36270 ...t, 36271 ...n.columnsPerBreakpoint 36272 })), a = ne(() => `grid-${s(i.value.xs)} grid-sm-${s(i.value.sm)} grid-md-${s(i.value.md)} grid-lg-${s(i.value.lg)} grid-xl-${s(i.value.xl)}`), r = ne(() => { 36273 const o = Object.entries(i.value); 36274 for (let l = o.length - 1; l >= 0; l--) if (o[l][1] === 1) return o[l][0]; 36275 return "xs"; 36276 }); 36277 function s(o) { 36278 if (Number.isNaN(Number(o))) return 12; 36279 const l = Number(o) % 12 === 0 ? Number(o) : Math.floor(Number(o)) % 12; 36280 return Math.floor(12 / l); 36281 } 36282 return (o, l) => (m(), x("div", eR, [ 36283 O("dl", { 36284 class: R([ 36285 "n:grid grid-12 n:gap-x-xl n:gap-y-lg n:max-w-full", 36286 a.value 36287 ]) 36288 }, [ 36289 (m(true), x(me, null, ve(e.properties, (u, c) => (m(), U(ae(cR), fe({ 36290 key: c, 36291 ref_for: true 36292 }, u, { 36293 "highest-bp-with-only-one-column": r.value 36294 }), null, 16, [ 36295 "highest-bp-with-only-one-column" 36296 ]))), 128)) 36297 ], 2) 36298 ])); 36299 } 36300 }; 36301 nR = [ 36302 "aria-hidden" 36303 ]; 36304 rR = { 36305 key: 0, 36306 class: "h5 n:m-0 n:pb-xs" 36307 }; 36308 iR = { 36309 key: 1, 36310 class: "h5 n:m-0 n:pb-xs" 36311 }; 36312 aR = { 36313 class: "n:m-0 n:mr-xl" 36314 }; 36315 sR = [ 36316 "aria-hidden" 36317 ]; 36318 oR = { 36319 key: 1, 36320 class: "n-badge-list" 36321 }; 36322 lR = { 36323 key: 2 36324 }; 36325 uR = { 36326 key: 0, 36327 class: "is-sr-only" 36328 }; 36329 cR = { 36330 __name: "PropertyListItem", 36331 props: { 36332 label: { 36333 type: String 36334 }, 36335 value: { 36336 type: [ 36337 String, 36338 Number, 36339 Boolean, 36340 Array, 36341 Object 36342 ] 36343 }, 36344 listFormat: { 36345 type: String, 36346 default: "paragraph", 36347 validator: (e) => [ 36348 "ul", 36349 "paragraph", 36350 "unstyled", 36351 "badge", 36352 "ol" 36353 ].includes(e) 36354 }, 36355 format: { 36356 type: String 36357 }, 36358 maskConfig: { 36359 type: Object, 36360 default: null 36361 }, 36362 isEmptyCell: { 36363 type: [ 36364 Boolean, 36365 null 36366 ], 36367 default: null 36368 },
36369 highestBpWithOnlyOneColumn: { 36370 type: String, 36371 default: "xs" 36372 }, 36373 customAriaLabel: { 36374 type: String, 36375 default: null 36376 }, 36377 tooltip: { 36378 type: String, 36379 default: null 36380 } 36381 }, 36382 setup(e) { 36383 const { t } = Wr(), n = { 36384 datetime: "date-and-time", 36385 date: "date-only", 36386 time: "time-only" 36387 }, i = e, a = ne(() => n[i.format]), r = ne(() => { 36388 var d, p; 36389 return ((p = (d = i.label) == null ? void 0 : d.toString) == null ? void 0 : p.call(d)) ?? ""; 36390 }), s = (d) => { 36391 var p; 36392 if (!d) return t("label.na"); 36393 const b = i.format ? Jf[i.format] : i.maskConfig; 36394 return b && b.mask && (b.preprocessor && b.preprocessor instanceof Function && (d = b.preprocessor(d)), d = ((p = yu.conformToMask(d, b.mask)) == null ? void 0 : p.conformedValue) ?? "", b.postprocessor && b.postprocessor instanceof Function && (d = b.postprocessor(d))), d || t("label.na"); 36395 }, o = ne(() => Array.isArray(i.value) ? i.value : [ 36396 i.value 36397 ]), l = ne(() => o.value.map((d) => { 36398 const p = { 36399 component: "span", 36400 props: {}, 36401 text: "", 36402 badgeClass: "" 36403 }; 36404 return d && typeof d == "object" && "label" in d ? { 36405 ...p, 36406 text: d.label || "", 36407 badgeClass: d.class || "" 36408 } : d == null ? { 36409 ...p, 36410 text: t("label.na") 36411 } : i.format === "currency" ? { 36412 ...p, 36413 component: U8, 36414 props: { 36415 amount: d, 36416 class: "paragraph is-color-text" 36417 } 36418 } : [ 36419 "datetime", 36420 "date", 36421 "time" 36422 ].includes(i.format) ? { 36423 ...p, 36424 component: Gs, 36425 props: { 36426 datetime: d, 36427 format: a.value, 36428 isFormatted: true, 36429 class: "paragraph" 36430 } 36431 } : { 36432 ...p, 36433 text: s(d == null ? void 0 : d.toString()) 36434 }; 36435 })), u = ne(() => o.value.length === 1), c = ne(() => i.listFormat === "unstyled" ? "n-unordered-list--unstyled" : "n:pl-lg"); 36436 return (d, p) => (m(), x("div", { 36437 class: R([ 36438 "n-property-list-item flex-item n:w-full", 36439 { 36440 [`is-hidden-${e.highestBpWithOnlyOneColumn}-down`]: e.isEmptyCell 36441 } 36442 ]), 36443 "aria-hidden": e.isEmptyCell || null 36444 }, [ 36445 e.isEmptyCell ? M("", true) : (m(), x(me, { 36446 key: 0 36447 }, [ 36448 e.tooltip ? (m(), x("dt", rR, [ 36449 K(ae(mh), { 36450 format: "icon-only" 36451 }, { 36452 details: I(() => [ 36453 re(H(e.tooltip), 1) 36454 ]), 36455 default: I(() => [ 36456 re(H(r.value) + " ", 1) 36457 ]), 36458 _: 1 36459 }) 36460 ])) : (m(), x("dt", iR, H(r.value), 1)), 36461 O("dd", aR, [ 36462 O("div", { 36463 "aria-hidden": !!e.customAriaLabel || null 36464 }, [ 36465 u.value ? (m(), U(ue(l.value[0].component), fe({ 36466 key: 0 36467 }, l.value[0].props, { 36468 class: "can-break-text" 36469 }), { 36470 default: I(() => [ 36471 l.value[0].component === "span" ? (m(), x(me, { 36472 key: 0 36473 }, [ 36474 re(H(l.value[0].text), 1) 36475 ], 64)) : M("", true) 36476 ]), 36477 _: 1 36478 }, 16)) : e.listFormat === "badge" ? (m(), x("div", oR, [ 36479 (m(true), x(me, null, ve(l.value, (b, h) => (m(), x("div", { 36480 key: h, 36481 class: "n:mb-xs" 36482 }, [ 36483 O("span", { 36484 class: R([ 36485 "n-badge", 36486 b.badgeClass 36487 ]) 36488 }, H(b.text), 3) 36489 ]))), 128)) 36490 ])) : e.listFormat === "paragraph" ? (m(), x("div", lR, [ 36491 (m(true), x(me, null, ve(l.value, (b, h) => (m(), x("p", { 36492 key: h, 36493 class: "paragraph n:mb-sm" 36494 }, [ 36495 (m(), U(ue(b.component), fe({ 36496 ref_for: true 36497 }, b.props), { 36498 default: I(() => [ 36499 b.component === "span" ? (m(), x(me, { 36500 key: 0 36501 }, [ 36502 re(H(b.text), 1) 36503 ], 64)) : M("", true) 36504 ]), 36505 _: 2 36506 }, 1040)) 36507 ]))), 128)) 36508 ])) : (m(), U(ue(e.listFormat === "ol" ? "ol" : "ul"), { 36509 key: 3, 36510 class: R(c.value) 36511 }, { 36512 default: I(() => [ 36513 (m(true), x(me, null, ve(l.value, (b, h) => (m(), x("li", { 36514 key: h 36515 }, [ 36516 (m(), U(ue(b.component), fe({ 36517 ref_for: true 36518 }, b.props), { 36519 default: I(() => [ 36520 b.component === "span" ? (m(), x(me, { 36521 key: 0 36522 }, [ 36523 re(H(b.text), 1) 36524 ], 64)) : M("", true) 36525 ]), 36526 _: 2 36527 }, 1040)) 36528 ]))), 128)) 36529 ]), 36530 _: 1 36531 }, 8, [ 36532 "class" 36533 ])) 36534 ], 8, sR), 36535 e.customAriaLabel ? (m(), x("span", uR, H(e.customAriaLabel), 1)) : M("", true) 36536 ]) 36537 ], 64)) 36538 ], 10, nR)); 36539 } 36540 }; 36541 dR = { 36542 key: 0, 36543 class: "is-sr-only" 36544 }; 36545 pR = { 36546 key: 0, 36547 class: "is-sr-only" 36548 }; 36549 fR = { 36550 __name: "DataPanelSummary", 36551 props: { 36552 ...Js, 36553 properties: { 36554 type: [ 36555 Array, 36556 Object 36557 ], 36558 required: true 36559 }, 36560 propertyListOptions: Object, 36561 hideEditBtn: Boolean, 36562 hideDeleteBtn: Boolean, 36563 disableInteraction: Boolean, 36564 index: Number, 36565 context: Object 36566 }, 36567 emits: [ 36568 "edit", 36569 "delete", 36570 "header-change" 36571 ], 36572 setup(e, { emit: t }) { 36573 const { t: n } = fr(), i = e, a = t, r = ne(() => i.index !== void 0 ? i.index + 1 : false); 36574 return (s, o) => (m(), U(ab, Pt(Bt(i)), $n({ 36575 buttons: I(() => [ 36576 V(s.$slots, "buttons", {}, () => [ 36577 e.hideDeleteBtn ? M("", true) : (m(), U(ae(ze), { 36578 key: 0, 36579 disabled: e.disableInteraction, 36580 class: "n:m-0", 36581 format: "ghost", 36582 size: "small", 36583 icon: "delete", 36584 "icon-position": "left", 36585 onClick: o[1] || (o[1] = () => { 36586 a("delete"); 36587 }) 36588 }, { 36589 default: I(() => [ 36590 re(H(ae(n)("label.delete")) + " ", 1), 36591 r.value ? (m(), x("span", dR, H(`${e.context.context} ${e.context.humanIndex ? r.value : ""} `), 1)) : M("", true) 36592 ]), 36593 _: 1 36594 }, 8, [ 36595 "disabled" 36596 ])), 36597 e.hideEditBtn ? M("", true) : (m(), U(ae(ze), { 36598 key: 1, 36599 disabled: e.disableInteraction, 36600 class: "n:m-0", 36601 format: "ghost", 36602 size: "small", 36603 icon: "edit", 36604 "icon-position": "left", 36605 onClick: o[2] || (o[2] = () => { 36606 a("edit"); 36607 }) 36608 }, { 36609 default: I(() => [ 36610 re(H(ae(n)("label.edit")) + " ", 1), 36611 r.value ? (m(), x("span", pR, H(`${e.context.context} ${e.context.humanIndex ? r.value : ""}`), 1)) : M("", true) 36612 ]), 36613 _: 1 36614 }, 8, [ 36615 "disabled" 36616 ])) 36617 ]) 36618 ]), 36619 footer: I(() => [ 36620 V(s.$slots, "footer") 36621 ]), 36622 status: I(() => [ 36623 V(s.$slots, "status") 36624 ]), 36625 default: I(() => [ 36626 e.properties ? (m(), U(ae(tR), fe({ 36627 key: 0, 36628 properties: e.properties 36629 }, e.propertyListOptions), null, 16, [ 36630 "properties" 36631 ])) : M("", true) 36632 ]), 36633 _: 2 36634 }, [ 36635 s.$slots.header ? { 36636 name: "header", 36637 fn: I(() => [ 36638 O("div", { 36639 onVnodeMounted: o[0] || (o[0] = (l) => a("header-change", l.el)) 36640 }, [ 36641 V(s.$slots, "header") 36642 ], 512) 36643 ]), 36644 key: "0" 36645 } : void 0 36646 ]), 1040)); 36647 } 36648 }; 36649 mR = { 36650 __name: "DataPanel", 36651 props: { 36652 ...Js, 36653 modelValue: Object, 36654 schema: { 36655 type: Object, 36656 required: true 36657 }, 36658 additionalValidationContext: { 36659 type: Object 36660 }, 36661 initialEditing: Boolean, 36662 index: Number, 36663 propertyListOptions: Object, 36664 disableFormAutoFocus: Boolean, 36665 context: String, 36666 customHeaderSelector: String 36667 }, 36668 emits: [ 36669 "update:modelValue", 36670 "update:draft", 36671 "delete", 36672 "cancel-new", 36673 "save", 36674 "edit", 36675 "cancel" 36676 ], 36677 setup(e, { emit: t }) { 36678 const { t: n } = Wr({ 36679 useScope: "parent" 36680 }), i = e, a = pe(), r = pe(i.modelValue), s = t; 36681 (i.initialEditing || i.draft || !r.value || !Object.keys(r.value).length) && (a.value = true); 36682 const o = (d) => { 36683 var p, b, h; 36684 i.disableFormAutoFocus || (h = (b = (p = d == null ? void 0 : d.value) == null ? void 0 : p.$el) == null ? void 0 : b.querySelector("input,select,a,button")) == null || h.focus(); 36685 }, l = ne(() => ib(i.schema, r.value, n)), u = pe({ 36686 context: i.context || n("dataPanel.item"), 36687 humanIndex: true 36688 }), c = (d) => { 36689 var p, b; 36690 let h; 36691 i.customHeaderSelector ? h = (p = d.querySelector(i.customHeaderSelector)) == null ? void 0 : p.textContent : h = (b = d.querySelector("h1,h2,h3,h4,h5,h6,p,caption")) == null ? void 0 : b.textContent, h = h == null ? void 0 : h.trim(), h && !i.context && (u.value = { 36692 context: h,
36693 humanIndex: false 36694 }); 36695 }; 36696 return (d, p) => (m(), x("div", null, [ 36697 a.value ? (m(), U(Z8, { 36698 key: 0, 36699 schema: e.schema, 36700 "model-value": r.value, 36701 index: e.index, 36702 "enable-validation": d.enableValidation, 36703 "additional-validation-context": e.additionalValidationContext, 36704 onFormOpen: p[0] || (p[0] = (b) => o(b)), 36705 "onUpdate:modelValue": p[1] || (p[1] = (b) => { 36706 r.value = b, a.value = false, s("update:modelValue", r.value), s("save"); 36707 }), 36708 onCancel: p[2] || (p[2] = () => { 36709 a.value = false, s("cancel"); 36710 }), 36711 onCancelNew: p[3] || (p[3] = (b) => s("cancel-new")), 36712 "onUpdate:draft": p[4] || (p[4] = (b) => s("update:draft", b)), 36713 onHeaderChange: p[5] || (p[5] = (b) => c(b)) 36714 }, $n({ 36715 default: I(() => [ 36716 V(d.$slots, "default", { 36717 localState: r.value, 36718 isEditing: a.value 36719 }) 36720 ]), 36721 _: 2 36722 }, [ 36723 d.$slots.header ? { 36724 name: "header", 36725 fn: I(() => [ 36726 V(d.$slots, "header", { 36727 localState: r.value, 36728 isEditing: a.value 36729 }) 36730 ]), 36731 key: "0" 36732 } : void 0, 36733 d.$slots.buttons ? { 36734 name: "buttons", 36735 fn: I(() => [ 36736 V(d.$slots, "buttons", { 36737 localState: r.value, 36738 isEditing: a.value 36739 }) 36740 ]), 36741 key: "1" 36742 } : void 0 36743 ]), 1032, [ 36744 "schema", 36745 "model-value", 36746 "index", 36747 "enable-validation", 36748 "additional-validation-context" 36749 ])) : (m(), U(fR, { 36750 key: 1, 36751 context: u.value, 36752 properties: l.value, 36753 "property-list-options": e.propertyListOptions, 36754 "disable-interaction": d.disableInteraction, 36755 index: e.index, 36756 onEdit: p[6] || (p[6] = () => { 36757 a.value = true, s("edit"); 36758 }), 36759 onDelete: p[7] || (p[7] = (b) => s("delete")), 36760 onHeaderChange: p[8] || (p[8] = (b) => c(b)) 36761 }, $n({ 36762 default: I(() => [ 36763 V(d.$slots, "default", { 36764 localState: r.value, 36765 isEditing: a.value 36766 }) 36767 ]), 36768 _: 2 36769 }, [ 36770 d.$slots.header ? { 36771 name: "header", 36772 fn: I(() => [ 36773 V(d.$slots, "header", { 36774 localState: r.value, 36775 isEditing: a.value 36776 }) 36777 ]), 36778 key: "0" 36779 } : void 0, 36780 d.$slots.buttons ? { 36781 name: "buttons", 36782 fn: I(() => [ 36783 V(d.$slots, "buttons", { 36784 localState: r.value, 36785 isEditing: a.value 36786 }) 36787 ]), 36788 key: "1" 36789 } : void 0 36790 ]), 1032, [ 36791 "context", 36792 "properties", 36793 "property-list-options", 36794 "disable-interaction", 36795 "index" 36796 ])) 36797 ])); 36798 } 36799 }; 36800 hR = { 36801 class: "n:mb-lg" 36802 }; 36803 gR = { 36804 key: 0, 36805 class: "n:text-right n:max-w-none" 36806 }; 36807 bR = { 36808 class: "is-bold" 36809 }; 36810 LU = { 36811 __name: "DataPanelList", 36812 props: { 36813 ...Js, 36814 modelValue: { 36815 type: [ 36816 Object, 36817 Array 36818 ] 36819 }, 36820 startWithNew: Boolean, 36821 max: Number, 36822 schema: { 36823 type: Object, 36824 required: true 36825 }, 36826 additionalValidationContext: { 36827 type: Object 36828 }, 36829 totalByProperty: String, 36830 addAnotherBtnLabel: String, 36831 context: String, 36832 disableFormAutoFocus: Boolean, 36833 customHeaderSelector: String 36834 }, 36835 emits: [ 36836 "update:modelValue", 36837 "update:draft", 36838 "update:total" 36839 ], 36840 setup(e, { emit: t }) { 36841 const { t: n, tm: i } = fr(), { srAnnounce: a } = eS(), r = e, s = t, o = pe(r.modelValue || []), l = ne(() => o.value.filter((N) => !Ma(N))); 36842 Ue(l, () => { 36843 s("update:modelValue", l.value); 36844 }); 36845 const u = pe(); 36846 fa(() => { 36847 r.startWithNew && d(); 36848 }); 36849 const c = (N) => { 36850 const v = N + 1, y = `${r.context || n("dataPanel.item")} ${v}`, E = o.value[N]; 36851 if (!E || Ma(E)) return y;
36852 const k = ib(r.schema, E, n); 36853 return k && k.length >= 2 ? k.slice(0, 2).map((A) => `${A.label} ${A.value}`).join(" ") : y; 36854 }; 36855 function d() { 36856 if (h.value) return; 36857 o.value.push({}); 36858 const N = o.value.length - 1; 36859 a(`${n("dataPanel.addAnother")} ${c(N)}`); 36860 } 36861 function p(N) { 36862 const v = c(N); 36863 a(`${n("label.deleted")} ${v}`), o.value.splice(N, 1); 36864 } 36865 function b(N) { 36866 a(`${n("label.cancelled")} ${c(N)}`), o.value.splice(N, 1); 36867 } 36868 const h = ne(() => r.max && o.value.length === r.max), _ = ne(() => !Ma(u.value)), C = ne(() => r.totalByProperty), D = ne(() => r.totalByProperty ? l.value.reduce((N, v, y) => N + (Object.hasOwn(v, r.totalByProperty) && v[r.totalByProperty] && !isNaN(v[r.totalByProperty]) ? Number(v[r.totalByProperty]) : 0), 0) : 0); 36869 return (N, v) => (m(), x("div", hR, [ 36870 (m(true), x(me, null, ve(o.value, (y, E) => (m(), U(mR, { 36871 key: JSON.stringify(y), 36872 modelValue: o.value[E], 36873 "onUpdate:modelValue": (k) => o.value[E] = k, 36874 draft: u.value, 36875 "onUpdate:draft": [ 36876 v[0] || (v[0] = (k) => u.value = k), 36877 v[1] || (v[1] = (k) => s("update:draft", k)) 36878 ], 36879 schema: e.schema, 36880 context: e.context, 36881 "custom-header-selector": e.customHeaderSelector, 36882 "disable-interaction": _.value, 36883 index: E, 36884 "disable-form-auto-focus": e.disableFormAutoFocus, 36885 "enable-validation": N.enableValidation, 36886 "additional-validation-context": e.additionalValidationContext, 36887 onDelete: (k) => p(E), 36888 onCancelNew: (k) => b(E), 36889 onSave: (k) => ae(a)(`${ae(n)("label.saved")} ${c(E)}`), 36890 onEdit: (k) => ae(a)(`${ae(n)("label.edit")} ${c(E)}`), 36891 onCancel: (k) => ae(a)(`${ae(n)("label.cancelled")} ${c(E)}`) 36892 }, $n({ 36893 default: I(() => [ 36894 V(N.$slots, "default", { 36895 localState: o.value[E] 36896 }) 36897 ]), 36898 _: 2 36899 }, [ 36900 N.$slots.header ? { 36901 name: "header", 36902 fn: I(() => [ 36903 V(N.$slots, "header", { 36904 localState: o.value[E] 36905 }) 36906 ]), 36907 key: "0" 36908 } : void 0, 36909 N.$slots.buttons ? { 36910 name: "buttons", 36911 fn: I(() => [ 36912 V(N.$slots, "buttons", { 36913 localState: o.value[E] 36914 }) 36915 ]), 36916 key: "1" 36917 } : void 0 36918 ]), 1032, [ 36919 "modelValue", 36920 "onUpdate:modelValue", 36921 "draft", 36922 "schema", 36923 "context", 36924 "custom-header-selector", 36925 "disable-interaction", 36926 "index", 36927 "disable-form-auto-focus", 36928 "enable-validation", 36929 "additional-validation-context", 36930 "onDelete", 36931 "onCancelNew", 36932 "onSave", 36933 "onEdit", 36934 "onCancel" 36935 ]))), 128)), 36936 C.value ? (m(), x("p", gR, [ 36937 re(H(ae(n)("dataPanel.totalAllocation")) + ": ", 1), 36938 O("span", bR, H(ae(SE)(D.value)), 1) 36939 ])) : M("", true), 36940 h.value && !_.value ? (m(), U(ae(Au), { 36941 key: 1, 36942 preset: "context.warning" 36943 }, { 36944 default: I(() => [ 36945 O("p", null, H(ae(n)("dataPanel.maximumItemsReached")), 1) 36946 ]), 36947 _: 1 36948 })) : (m(), U(ae(ze), { 36949 key: 2, 36950 disabled: _.value, 36951 format: "ghost", 36952 icon: "plus-outline", 36953 onClick: d 36954 }, { 36955 default: I(() => [ 36956 re(H(e.addAnotherBtnLabel || ae(n)("dataPanel.addAnother")), 1) 36957 ]), 36958 _: 1 36959 }, 8, [ 36960 "disabled" 36961 ])) 36962 ])); 36963 } 36964 }; 36965 function sb(e) { 36966 return bi() ? (vi(e), true) : false; 36967 } 36968 function qi(e) { 36969 return typeof e == "function" ? e() : ae(e); 36970 } 36971 const ob = typeof window < "u" && typeof document < "u"; 36972 typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope; 36973 const vR = Object.prototype.toString, yR = (e) => vR.call(e) === "[object Object]", Yi = () => { 36974 }, Ll = _R(); 36975 function _R() { 36976 var e, t; 36977 return ob && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent)); 36978 } 36979 const af = { 36980 mounted: "mounted", 36981 unmounted: "unmounted" 36982 }; 36983 function ER(...e) {
36984 if (e.length !== 1) return $l(...e); 36985 const t = e[0]; 36986 return typeof t == "function" ? Tl(bs(() => ({ 36987 get: t, 36988 set: Yi 36989 }))) : pe(t); 36990 } 36991 function Vi(e) { 36992 var t; 36993 const n = qi(e); 36994 return (t = n == null ? void 0 : n.$el) != null ? t : n; 36995 } 36996 const lb = ob ? window : void 0; 36997 function qa(...e) { 36998 let t, n, i, a; 36999 if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, i, a] = e, t = lb) : [t, n, i, a] = e, !t) return Yi; 37000 Array.isArray(n) || (n = [ 37001 n 37002 ]), Array.isArray(i) || (i = [ 37003 i 37004 ]); 37005 const r = [], s = () => { 37006 r.forEach((c) => c()), r.length = 0; 37007 }, o = (c, d, p, b) => (c.addEventListener(d, p, b), () => c.removeEventListener(d, p, b)), l = Ue(() => [ 37008 Vi(t), 37009 qi(a) 37010 ], ([c, d]) => { 37011 if (s(), !c) return; 37012 const p = yR(d) ? { 37013 ...d 37014 } : d; 37015 r.push(...n.flatMap((b) => i.map((h) => o(c, b, h, p)))); 37016 }, { 37017 immediate: true, 37018 flush: "post" 37019 }), u = () => { 37020 l(), s(); 37021 }; 37022 return sb(u), u; 37023 } 37024 let sf = false; 37025 function of(e, t, n = {}) { 37026 const { window: i = lb, ignore: a = [], capture: r = true, detectIframe: s = false } = n; 37027 if (!i) return Yi; 37028 Ll && !sf && (sf = true, Array.from(i.document.body.children).forEach((c) => c.addEventListener("click", Yi)), i.document.documentElement.addEventListener("click", Yi)); 37029 let o = true; 37030 const l = (c) => a.some((d) => { 37031 if (typeof d == "string") return Array.from(i.document.querySelectorAll(d)).some((p) => p === c.target || c.composedPath().includes(p)); 37032 { 37033 const p = Vi(d); 37034 return p && (c.target === p || c.composedPath().includes(p)); 37035 } 37036 }), u = [ 37037 qa(i, "click", (c) => { 37038 const d = Vi(e); 37039 if (!(!d || d === c.target || c.composedPath().includes(d))) { 37040 if (c.detail === 0 && (o = !l(c)), !o) { 37041 o = true; 37042 return; 37043 } 37044 t(c); 37045 } 37046 }, { 37047 passive: true, 37048 capture: r 37049 }), 37050 qa(i, "pointerdown", (c) => { 37051 const d = Vi(e); 37052 o = !l(c) && !!(d && !c.composedPath().includes(d)); 37053 }, { 37054 passive: true 37055 }), 37056 s && qa(i, "blur", (c) => { 37057 setTimeout(() => { 37058 var d; 37059 const p = Vi(e); 37060 ((d = i.document.activeElement) == null ? void 0 : d.tagName) === "IFRAME" && !(p != null && p.contains(i.document.activeElement)) && t(c); 37061 }, 0); 37062 }) 37063 ].filter(Boolean); 37064 return () => u.forEach((c) => c()); 37065 } 37066 const kR = { 37067 [af.mounted](e, t) { 37068 const n = !t.modifiers.bubble; 37069 if (typeof t.value == "function") e.__onClickOutside_stop = of(e, t.value, { 37070 capture: n 37071 }); 37072 else { 37073 const [i, a] = t.value; 37074 e.__onClickOutside_stop = of(e, i, Object.assign({ 37075 capture: n 37076 }, a)); 37077 } 37078 }, 37079 [af.unmounted](e) { 37080 e.__onClickOutside_stop(); 37081 } 37082 }; 37083 function Lo(e) { 37084 return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e; 37085 } 37086 function ub(e) { 37087 const t = window.getComputedStyle(e); 37088 if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return true; 37089 { 37090 const n = e.parentNode; 37091 return !n || n.tagName === "BODY" ? false : ub(n); 37092 } 37093 } 37094 function CR(e) { 37095 const t = e || window.event, n = t.target; 37096 return ub(n) ? false : t.touches.length > 1 ? true : (t.preventDefault && t.preventDefault(), false); 37097 } 37098 const xo = /* @__PURE__ */ new WeakMap(); 37099 function AR(e, t = false) { 37100 const n = pe(t); 37101 let i = null, a = ""; 37102 Ue(ER(e), (o) => { 37103 const l = Lo(qi(o)); 37104 if (l) { 37105 const u = l; 37106 if (xo.get(u) || xo.set(u, u.style.overflow), u.style.overflow !== "hidden" && (a = u.style.overflow), u.style.overflow === "hidden") return n.value = true; 37107 if (n.value) return u.style.overflow = "hidden"; 37108 } 37109 }, {
37110 immediate: true 37111 }); 37112 const r = () => { 37113 const o = Lo(qi(e)); 37114 !o || n.value || (Ll && (i = qa(o, "touchmove", (l) => { 37115 CR(l); 37116 }, { 37117 passive: false 37118 })), o.style.overflow = "hidden", n.value = true); 37119 }, s = () => { 37120 const o = Lo(qi(e)); 37121 !o || !n.value || (Ll && (i == null ? void 0 : i()), o.style.overflow = a, xo.delete(o), n.value = false); 37122 }; 37123 return sb(s), ne({ 37124 get() { 37125 return n.value; 37126 }, 37127 set(o) { 37128 o ? r() : s(); 37129 } 37130 }); 37131 } 37132 function SR() { 37133 let e = false; 37134 const t = pe(false); 37135 return (n, i) => { 37136 if (t.value = i.value, e) return; 37137 e = true; 37138 const a = AR(n, i.value); 37139 Ue(t, (r) => a.value = r); 37140 }; 37141 } 37142 SR(); 37143 const wR = { 37144 name: "n-dropdown", 37145 components: { 37146 Icon: Tt, 37147 NButton: ze, 37148 NLink: at 37149 }, 37150 directives: { 37151 onClickOutside: kR 37152 }, 37153 mixins: [ 37154 nt, 37155 ws, 37156 Lt 37157 ], 37158 props: { 37159 label: { 37160 type: String 37161 }, 37162 items: { 37163 type: Array, 37164 validator: (e) => e.filter((t) => t.label && (t.value || t.url)).length === e.length 37165 }, 37166 fullWidth: { 37167 type: Boolean 37168 }, 37169 size: { 37170 type: String, 37171 default: "default", 37172 validator(e) { 37173 return [ 37174 "default", 37175 "auto", 37176 "full-width", 37177 "long", 37178 "short", 37179 "small" 37180 ].includes(e); 37181 } 37182 }, 37183 buttonFormat: { 37184 type: String, 37185 default: "select", 37186 validator: (e) => [ 37187 "select", 37188 "primary", 37189 "secondary", 37190 "ghost" 37191 ].includes(e) 37192 }, 37193 alignMenu: { 37194 type: String, 37195 default: "left", 37196 validator: (e) => [ 37197 "left", 37198 "right" 37199 ].includes(e) 37200 }, 37201 iconOnly: { 37202 type: Boolean 37203 }, 37204 ariaLabel: { 37205 type: String 37206 }, 37207 icon: { 37208 type: String 37209 } 37210 }, 37211 emits: [ 37212 "select" 37213 ], 37214 data() { 37215 return { 37216 opened: false, 37217 selectedItem: null, 37218 buttonWidth: 0 37219 }; 37220 }, 37221 computed: { 37222 isButtonType() { 37223 return this.buttonFormat !== "select"; 37224 }, 37225 isMenuAlignedLeft() { 37226 return this.alignMenu === "left"; 37227 }, 37228 buttonIcon() { 37229 return this.icon ? this.icon : this.opened ? "caret-up" : "caret"; 37230 } 37231 }, 37232 watch: { 37233 selectedItem(e) { 37234 this.nestEvents_emit(this.EVENT_TYPES.CLICK, { 37235 textContent: e.label 37236 }); 37237 }, 37238 label() { 37239 this.getButtonWidth(); 37240 } 37241 }, 37242 mounted() { 37243 this.controlRefs = [ 37244 ...this.$refs.listControlItem || [] 37245 ], this.getButtonWidth(); 37246 }, 37247 methods: { 37248 getButtonWidth() { 37249 this.buttonWidth = this.$refs.dropdownButton.$el.clientWidth || 0; 37250 }, 37251 clickOutsideHandler(e) { 37252 [ 37253 "touchmove", 37254 "scroll" 37255 ].includes(e.type) || this.close(); 37256 }, 37257 toggle() { 37258 this.nestEvents_emit(this.EVENT_TYPES.TOGGLE, { 37259 textContent: this.label 37260 }), this.opened ? this.close() : this.open("first"); 37261 }, 37262 open(e = "first") { 37263 this.opened = true, this.$nextTick(() => { 37264 switch (e) { 37265 case "first": 37266 this.listControl_focusOnFirstItem(); 37267 break; 37268 case "last": 37269 this.listControl_focusOnLastItem(); 37270 break; 37271 } 37272 }); 37273 }, 37274 close() { 37275 this.opened = false; 37276 }, 37277 handleDropdownKeyup(e) { 37278 const { code: t } = e; 37279 switch (t) { 37280 case "Enter": 37281 case "Space": 37282 e.preventDefault(), this.toggle(); 37283 break; 37284 case "ArrowDown": 37285 e.preventDefault(), this.opened || this.open("first"); 37286 break; 37287 case "ArrowUp": 37288 e.preventDefault(), this.opened || this.open("last"); 37289 break; 37290 } 37291 }, 37292 handleListItemKeydown(e) { 37293 e.code == "Escape" ? (this.close(), this.$nextTick(() => { 37294 var t, n; 37295 (n = (t = this.$refs.dropdownButton) == null ? void 0 : t.$el) == null || n.focus(); 37296 })) : e.code == "Tab" ? e.shiftKey ? e.srcElement === this.controlRefs[0] && this.close() : e.srcElement === this.controlRefs[this.controlRefs.length - 1] && !this.$slots.footer && this.close() : this.listControl_itemKeydown(e); 37297 }, 37298 handleFocusOut(e) { 37299 this.$el.contains(e.relatedTarget) || this.close(); 37300 },
37301 handleItemClick(e) { 37302 var t; 37303 this.selectedItem = e, (t = e == null ? void 0 : e.actions) != null && t.onClick && e.actions.onClick(e), e.value && this.$emit("select", e.value); 37304 } 37305 }, 37306 compatConfig: { 37307 MODE: 3 37308 } 37309 }, LR = { 37310 key: 1, 37311 class: "n-select-wrapper__icon-wrapper" 37312 }, xR = [ 37313 "id", 37314 "aria-labelledby" 37315 ], OR = { 37316 class: "n-dropdown__content" 37317 }, $R = { 37318 key: 0, 37319 class: "n-dropdown__header" 37320 }, TR = { 37321 role: "menu", 37322 class: "n-dropdown__items-scroll" 37323 }, IR = { 37324 key: 1, 37325 class: "n-dropdown__footer" 37326 }; 37327 function FR(e, t, n, i, a, r) { 37328 const s = j("Icon"), o = j("NButton"), l = Gn("on-click-outside"); 37329 return m(), x("div", { 37330 class: R([ 37331 "n-dropdown is-hidden-print", 37332 { 37333 "is-open": a.opened, 37334 [`n-input-wrapper--${n.size}`]: !r.isButtonType, 37335 "is-full-width": n.fullWidth, 37336 "n-dropdown--menu-align-right": !r.isMenuAlignedLeft 37337 } 37338 ]), 37339 style: en(`--n-dropdown-menu-offset: ${a.buttonWidth}px;`) 37340 }, [ 37341 Je((m(), U(o, { 37342 id: `${e.id}-dropdown-button`, 37343 ref: "dropdownButton", 37344 class: R({ 37345 "n-select n:max-w-none": !r.isButtonType, 37346 "is-full-width": n.fullWidth, 37347 "n-button--icon": n.iconOnly, 37348 "n-dropdown__button": !n.iconOnly 37349 }), 37350 format: n.buttonFormat, 37351 "aria-controls": `${e.id}-dropdown-button`, 37352 "aria-expanded": a.opened ? "true" : "false", 37353 "aria-haspopup": "", 37354 size: r.isButtonType ? n.size : void 0, 37355 icon: r.buttonIcon, 37356 "aria-label": n.iconOnly ? n.ariaLabel : void 0, 37357 onKeydown: r.handleDropdownKeyup, 37358 onClick: r.toggle 37359 }, { 37360 default: I(() => [ 37361 n.iconOnly ? M("", true) : V(e.$slots, "label", { 37362 key: 0 37363 }, () => [ 37364 re(H(n.label || e.$t("dropdownDefaultLabel")), 1) 37365 ]), 37366 n.buttonFormat === "select" ? (m(), x("div", LR, [ 37367 K(s, { 37368 class: "n-dropdown__icon", 37369 icon: r.buttonIcon 37370 }, null, 8, [ 37371 "icon" 37372 ]) 37373 ])) : M("", true) 37374 ]), 37375 _: 3 37376 }, 8, [ 37377 "id", 37378 "class", 37379 "format", 37380 "aria-controls", 37381 "aria-expanded", 37382 "size", 37383 "icon", 37384 "aria-label", 37385 "onKeydown", 37386 "onClick" 37387 ])), [ 37388 [ 37389 l, 37390 r.clickOutsideHandler 37391 ] 37392 ]), 37393 K(Ol, { 37394 name: "n-dropdown-transition" 37395 }, { 37396 default: I(() => [ 37397 Je(O("div", { 37398 id: `${e.id}-dropdown-list`, 37399 "aria-labelledby": `${e.id}-dropdown-button`, 37400 class: "n-dropdown__list is-bg-color-white", 37401 onFocusout: t[0] || (t[0] = (...u) => r.handleFocusOut && r.handleFocusOut(...u)) 37402 }, [ 37403 O("div", OR, [ 37404 e.$slots.header ? (m(), x("div", $R, [ 37405 V(e.$slots, "header") 37406 ])) : M("", true), 37407 O("ul", TR, [ 37408 (m(true), x(me, null, ve(n.items, (u, c) => (m(), x("li", { 37409 key: c, 37410 class: "n-dropdown__list-item", 37411 role: "none" 37412 }, [ 37413 (m(), U(ue(u.url ? "NLink" : "button"), fe({ 37414 ref_for: true, 37415 ref: "listControlItem", 37416 "link-type": "auto-detect" 37417 }, u == null ? void 0 : u.attrs, { 37418 class: [ 37419 { 37420 "is-active": u.isActive || u.isCurrent 37421 }, 37422 "n-dropdown__item-link" 37423 ], 37424 "aria-current": u.isActive || u.isCurrent ? "page" : void 0, 37425 href: u.url, 37426 role: "menuitem", 37427 onClick: (d) => r.handleItemClick(u), 37428 onKeydown: r.handleListItemKeydown 37429 }), { 37430 default: I(() => [ 37431 re(H(u.label), 1) 37432 ]), 37433 _: 2 37434 }, 1040, [ 37435 "class", 37436 "aria-current", 37437 "href", 37438 "onClick", 37439 "onKeydown" 37440 ])) 37441 ]))), 128)) 37442 ]), 37443 e.$slots.footer ? (m(), x("div", IR, [ 37444 V(e.$slots, "footer") 37445 ])) : M("", true) 37446 ]) 37447 ], 40, xR), [ 37448 [ 37449 pt, 37450 a.opened 37451 ] 37452 ]) 37453 ]), 37454 _: 3 37455 }) 37456 ], 6); 37457 } 37458 let DR, PR, BR, MR, RR, UR; 37459 NR = te(wR, [ 37460 [ 37461 "render", 37462 FR 37463 ] 37464 ]); 37465 DR = { 37466 name: "n-featured-article", 37467 compatConfig: { 37468 MODE: 3 37469 }, 37470 components: {
37471 animateOnScrollIntoView: tn, 37472 Block: ft, 37473 DateTime: Gs, 37474 LinkBlock: zS, 37475 LinkIcon: Ut, 37476 Media: Vt 37477 }, 37478 mixins: [ 37479 Ge, 37480 bt 37481 ], 37482 props: { 37483 ...we, 37484 background: { 37485 ...Se.background 37486 }, 37487 clearSpacingAfter: { 37488 ...Se.clearSpacingAfter 37489 }, 37490 imagePosition: { 37491 type: String, 37492 default: "right", 37493 validator: (e) => [ 37494 "left", 37495 "right" 37496 ].includes(e) 37497 }, 37498 category: { 37499 type: String 37500 }, 37501 date: { 37502 type: String 37503 }, 37504 linkLabel: { 37505 type: String 37506 }, 37507 linkType: { 37508 type: String 37509 }, 37510 href: { 37511 type: String, 37512 required: true 37513 } 37514 }, 37515 data() { 37516 return { 37517 defaultMediaProps: { 37518 sizes: { 37519 xs: "100vw", 37520 md: "344px", 37521 lg: "620px", 37522 xl: "740px" 37523 } 37524 } 37525 }; 37526 }, 37527 mounted() { 37528 let e = { 37529 threshold: 0.6 37530 }; 37531 tn(this.$el, "is-scrolled-into-view", e); 37532 } 37533 }; 37534 PR = { 37535 class: "n-featured-article__media col-12 col-md-6 col-lg-8 is-clear-padding-horizontal" 37536 }; 37537 BR = { 37538 class: "n-featured-article__content-container col-12 col-md-6 col-lg-4 no-break-print" 37539 }; 37540 MR = { 37541 class: "n-featured-article__content" 37542 }; 37543 RR = { 37544 key: 0, 37545 class: "n-featured-article__category small" 37546 }; 37547 UR = { 37548 class: "n-featured-article__description" 37549 }; 37550 function VR(e, t, n, i, a, r) { 37551 const s = j("Media"), o = j("DateTime"), l = j("LinkIcon"), u = j("LinkBlock"), c = j("Block"); 37552 return m(), U(c, { 37553 class: R([ 37554 { 37555 "is-clear-margin-bottom": n.clearSpacingAfter 37556 }, 37557 "n-featured-article has-no-margins-around" 37558 ]), 37559 background: n.background, 37560 "escaped-background": "" 37561 }, { 37562 default: I(() => [ 37563 K(u, { 37564 href: n.href, 37565 "link-type": n.linkType, 37566 class: R([ 37567 [ 37568 { 37569 "is-bg-color-bg-alt-1": n.background === "transparent" 37570 }, 37571 { 37572 "is-bg-color-white": n.background !== "transparent" 37573 } 37574 ], 37575 "n-featured-article__wrapper is-clear-padding-vertical is-clear-padding-horizontal" 37576 ]) 37577 }, { 37578 default: I(() => [ 37579 O("div", { 37580 class: R([ 37581 [ 37582 `n-featured-article__media-${n.imagePosition}` 37583 ], 37584 "n-featured-article__row row" 37585 ]) 37586 }, [ 37587 O("div", PR, [ 37588 K(s, { 37589 media: e.mediaProps(e.media), 37590 "zoom-on-scroll-into-view": "" 37591 }, null, 8, [ 37592 "media" 37593 ]) 37594 ]), 37595 O("div", BR, [ 37596 O("div", MR, [ 37597 n.category ? (m(), x("p", RR, H(n.category), 1)) : M("", true), 37598 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 37599 key: 1, 37600 class: "n-featured-article__title h2" 37601 }, { 37602 default: I(() => [ 37603 re(H(e.title), 1) 37604 ]), 37605 _: 1 37606 })) : M("", true), 37607 n.date ? (m(), U(o, { 37608 key: 2, 37609 datetime: n.date, 37610 class: "n-card__date", 37611 format: "date-only" 37612 }, null, 8, [ 37613 "datetime" 37614 ])) : M("", true), 37615 O("div", UR, [ 37616 V(e.$slots, "default") 37617 ]) 37618 ]), 37619 K(l, { 37620 decoration: true, 37621 icon: n.linkType === "external" ? "open-new" : "chevron-right", 37622 class: "n-featured-article__link is-hidden-print" 37623 }, { 37624 default: I(() => [ 37625 re(H(n.linkLabel || e.$t("read")), 1) 37626 ]), 37627 _: 1 37628 }, 8, [ 37629 "icon" 37630 ]) 37631 ]) 37632 ], 2) 37633 ]), 37634 _: 3 37635 }, 8, [ 37636 "href", 37637 "link-type", 37638 "class" 37639 ]) 37640 ]), 37641 _: 3 37642 }, 8, [ 37643 "class", 37644 "background" 37645 ]); 37646 } 37647 let HR, jR, zR, WR; 37648 xU = te(DR, [ 37649 [ 37650 "render", 37651 VR 37652 ] 37653 ]); 37654 HR = { 37655 name: "n-social-button-group", 37656 components: { 37657 NButton: ze 37658 }, 37659 mixins: [ 37660 Ge, 37661 Lt 37662 ], 37663 props: { 37664 buttons: { 37665 type: Array, 37666 default: () => [] 37667 }, 37668 postLabel: { 37669 type: String 37670 }, 37671 reverse: { 37672 type: Boolean 37673 }, 37674 facebookAppId: { 37675 type: String, 37676 default: "854485368340692" 37677 }, 37678 hashtags: { 37679 type: Array, 37680 default: () => [] 37681 }, 37682 alignment: { 37683 type: String, 37684 default: "left", 37685 validator: (e) => [ 37686 "left", 37687 "right" 37688 ].includes(e) 37689 } 37690 }, 37691 data() { 37692 return { 37693 variant: null 37694 }; 37695 }, 37696 computed: { 37697 pageTitle() { 37698 return document.querySelector("title").textContent; 37699 }, 37700 pageHref() { 37701 return window.location.href; 37702 }, 37703 buttonsList() { 37704 return this.buttons.map((e) => ({ 37705 ...e, 37706 label: this.buttonLabel(e) 37707 })); 37708 }, 37709 $postlabel() { 37710 return this.postLabel ? encodeURIComponent(this.postLabel) : this.postTitle ? encodeURIComponent(this.postTitle) : encodeURIComponent(this.pageTitle); 37711 } 37712 }, 37713 methods: { 37714 handler(e) { 37715 this.nestEvents_emit(this.EVENT_TYPES.CLICK, { 37716 textContent: e.label, 37717 platform: e.platform || e.label 37718 }), e.action && this[e.action](); 37719 }, 37720 shareOnFacebook() { 37721 window.open(`https://www.facebook.com/dialog/share?app_id=${this.facebookAppId}&display=popup&href=${this.pageHref}&redirect_uri=${this.pageHref}"e=${this.$postlabel}`); 37722 }, 37723 shareOnTwitter() { 37724 const e = this.hashtags.join(",").replace("#", ""); 37725 window.open(`https://twitter.com/share?text=${this.$postlabel}&hashtags=${e}&url=${this.pageHref}&`, "twitterwindow", `height=450, width=550, top=${document.body.clientheight / 2 - 225}, left=${document.body.clientWidth / 2}, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0`); 37726 }, 37727 shareOnLinkedin() { 37728 const e = `https://www.linkedin.com/shareArticle?mini=true&url=${this.pageHref}&title=${this.$postlabel}&summary=${encodeURIComponent(this.hashtags)}`; 37729 window.open(e, "linkedinwindow", `height=450, width=550, top=${document.body.clientHeight / 2 - 225}, left=${document.body.clientWidth / 2}, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0`); 37730 }, 37731 email() { 37732 location.href = `mailto:?body=${this.pageHref}%20&subject=${this.$postlabel}`; 37733 }, 37734 print() { 37735 window.print && window.print(); 37736 }, 37737 buttonLabel(e) { 37738 return e.action && ![ 37739 "print", 37740 "email" 37741 ].includes(e.action) ? `${e.label} - ${this.$t("a11y.newWindow")}` : e.label; 37742 } 37743 }, 37744 compatConfig: { 37745 MODE: 3 37746 } 37747 }; 37748 jR = { 37749 class: "row" 37750 }; 37751 zR = { 37752 class: "n-social-button-group__col col" 37753 }; 37754 WR = { 37755 class: "n-social-button-group__wrapper is-restyled" 37756 }; 37757 function GR(e, t, n, i, a, r) { 37758 const s = j("NButton"); 37759 return m(), x("div", { 37760 class: R([ 37761 [ 37762 `n-social-button-group--${n.alignment}-alignment` 37763 ], 37764 "n-social-button-group container is-hidden-print" 37765 ]) 37766 }, [ 37767 O("div", jR, [ 37768 O("div", zR, [ 37769 a.variant === "share" ? (m(), x("p", { 37770 key: 0, 37771 class: R([ 37772 n.reverse ? "is-color-text-reverse" : "is-color-text", 37773 "n-social-button-group__label small" 37774 ]) 37775 }, H(e.$t("socialShareLabel")), 3)) : M("", true), 37776 O("ul", WR, [ 37777 (m(true), x(me, null, ve(r.buttonsList, (o, l) => (m(), x("li", { 37778 key: l, 37779 class: "n-social-button-group__item" 37780 }, [ 37781 K(s, { 37782 class: R([ 37783 "n-social-button-group__button n:my-sm n:mx-xs", 37784 n.reverse ? "is-color-text-reverse" : "is-color-text" 37785 ]), 37786 href: o.href, 37787 "link-type": [ 37788 "mail", 37789 "print" 37790 ].includes(o.action) || !o.href ? "default" : "external", 37791 icon: o.icon, 37792 "aria-label": o.label, 37793 format: "ghost", 37794 type: "button", 37795 onClick: (u) => o.href ? void 0 : r.handler(o) 37796 }, null, 8, [ 37797 "class", 37798 "href", 37799 "link-type", 37800 "icon", 37801 "aria-label", 37802 "onClick" 37803 ]) 37804 ]))), 128)) 37805 ]) 37806 ]) 37807 ]) 37808 ], 2); 37809 } 37810 let cb, KR, XR, JR; 37811 cb = te(HR, [ 37812 [ 37813 "render", 37814 GR 37815 ] 37816 ]); 37817 qR = { 37818 name: "n-social-button-group-links", 37819 extends: cb, 37820 props: { 37821 buttons: { 37822 type: Array, 37823 default() { 37824 return [ 37825 { 37826 label: "Facebook", 37827 href: "https://www.facebook.com/CanadaLifeCo/", 37828 icon: "facebookFill" 37829 }, 37830 { 37831 label: "Instagram", 37832 href: "https://www.instagram.com/canadalifeco/", 37833 icon: "instagram" 37834 }, 37835 { 37836 label: "Linkedin", 37837 href: "https://ca.linkedin.com/company/canada-life", 37838 icon: "linkedinFill" 37839 }, 37840 { 37841 label: "Twitter/X", 37842 href: "https://twitter.com/canadalifeco?lang=en", 37843 icon: "twitterX" 37844 }, 37845 { 37846 label: "YouTube", 37847 href: "https://www.youtube.com/user/canadalifeca", 37848 icon: "youtube" 37849 } 37850 ]; 37851 } 37852 } 37853 }, 37854 data() { 37855 return { 37856 variant: "links" 37857 }; 37858 }, 37859 compatConfig: { 37860 MODE: 3 37861 } 37862 }; 37863 YR = { 37864 name: "n-social-button-group-share", 37865 extends: cb, 37866 props: { 37867 buttons: { 37868 type: Array, 37869 default() { 37870 return [ 37871 { 37872 label: Ze.global.t("shareButton", [ 37873 "Facebook" 37874 ]), 37875 action: "shareOnFacebook", 37876 icon: "facebookFill", 37877 platform: "Facebook" 37878 }, 37879 { 37880 label: Ze.global.t("shareButton", [ 37881 "Linkedin" 37882 ]), 37883 action: "shareOnLinkedin", 37884 icon: "linkedinFill", 37885 platform: "Linkedin" 37886 }, 37887 { 37888 label: Ze.global.t("shareButton", [ 37889 "Twitter/X" 37890 ]), 37891 action: "shareOnTwitter", 37892 icon: "twitterX", 37893 platform: "Twitter" 37894 }, 37895 { 37896 label: Ze.global.t("email"), 37897 action: "email", 37898 icon: "mail" 37899 }, 37900 { 37901 label: Ze.global.t("print"), 37902 action: "print", 37903 icon: "print" 37904 } 37905 ]; 37906 } 37907 } 37908 }, 37909 data() { 37910 return { 37911 variant: "share" 37912 }; 37913 }, 37914 compatConfig: { 37915 MODE: 3 37916 } 37917 }; 37918 KR = { 37919 name: "n-footer-back-to-top-button", 37920 components: { 37921 NButton: ze 37922 }, 37923 mixins: [ 37924 Ge, 37925 Lt 37926 ], 37927 props: { 37928 href: { 37929 type: String, 37930 default: "#top", 37931 validator: (e) => e.charAt(0) === "#" 37932 } 37933 }, 37934 data() { 37935 return { 37936 targetId: this.href 37937 }; 37938 }, 37939 mounted() { 37940 this.ensureId(); 37941 }, 37942 methods: { 37943 ensureId() { 37944 document.getElementById(this.href.replace("#", "")) || console.warn(`<n-button-back-to-top> | required href attribute does not match an ID selector within the DOM. Ensure that an element with id="${this.href}" is added.`); 37945 } 37946 } 37947 }; 37948 XR = { 37949 class: "n-footer-back-to-top-button" 37950 }; 37951 JR = [ 37952 "href" 37953 ]; 37954 function QR(e, t, n, i, a, r) { 37955 const s = j("NButton"); 37956 return m(), x("div", XR, [ 37957 K(s, fe(e.$props, {
37958 class: "n-footer-back-to-top-button__button n-button n-button--ghost", 37959 format: "ghost", 37960 icon: "chevronUp", 37961 type: "button", 37962 "aria-hidden": "true", 37963 tabindex: "-1", 37964 onClick: t[0] || (t[0] = (o) => e.nestEvents_emit(e.EVENT_TYPES.CLICK)) 37965 }), null, 16), 37966 O("a", { 37967 class: "n-footer-back-to-top-button__label n-link--is-block n-link--utility-small", 37968 href: n.href, 37969 onClick: t[1] || (t[1] = (o) => e.nestEvents_emit(e.EVENT_TYPES.CLICK)) 37970 }, [ 37971 V(e.$slots, "default", {}, () => [ 37972 re(H(e.$t("label.backToTop")), 1) 37973 ]) 37974 ], 8, JR) 37975 ]); 37976 } 37977 const ZR = te(KR, [ 37978 [ 37979 "render", 37980 QR 37981 ] 37982 ]), e3 = { 37983 name: "n-footer", 37984 components: { 37985 Block: ft, 37986 NButton: ze, 37987 FooterBackToTopButton: ZR, 37988 NLink: at, 37989 SocialButtonGroupLinks: qR 37990 }, 37991 props: { 37992 buttons: { 37993 type: Array, 37994 default: () => [] 37995 }, 37996 socialLinks: { 37997 type: Array, 37998 default: () => [] 37999 }, 38000 langToggle: { 38001 type: Object 38002 }, 38003 copyrightHolder: { 38004 type: String, 38005 default: "Canada Life" 38006 }, 38007 copyrightYear: { 38008 type: Number, 38009 default: () => (/* @__PURE__ */ new Date()).getFullYear() 38010 }, 38011 copyrightMessage: { 38012 type: String 38013 }, 38014 utilityLinks: { 38015 type: Array, 38016 default: () => [] 38017 }, 38018 backToTop: { 38019 type: [ 38020 Object, 38021 Boolean 38022 ], 38023 default: () => ({ 38024 enabled: true 38025 }) 38026 }, 38027 hideUpperBlock: { 38028 type: Boolean, 38029 default: false 38030 }, 38031 format: { 38032 type: String, 38033 validator: (e) => [ 38034 "default", 38035 void 0, 38036 "", 38037 "reverse" 38038 ].includes(e), 38039 default: "default" 38040 } 38041 }, 38042 computed: { 38043 copyrightYears() { 38044 const e = (/* @__PURE__ */ new Date()).getFullYear(); 38045 return this.copyrightYear !== e ? `${this.copyrightYear} - ${e}` : this.copyrightYear; 38046 }, 38047 lowerBlockLinks() { 38048 const e = [ 38049 ...this.utilityLinks 38050 ]; 38051 return this.hideUpperBlock && this.langToggle && e.push(this.langToggle), e; 38052 }, 38053 showUpperBlock() { 38054 return !this.hideUpperBlock; 38055 } 38056 }, 38057 compatConfig: { 38058 MODE: 3 38059 } 38060 }, t3 = { 38061 class: "n-footer__upper" 38062 }, n3 = { 38063 class: "row" 38064 }, r3 = { 38065 class: "col-12 col-lg-3 has-no-margins-around" 38066 }, i3 = { 38067 class: "col-12 col-lg-3 has-no-margins-around" 38068 }, a3 = { 38069 class: "col-12 col-lg-3 has-no-margins-around" 38070 }, s3 = { 38071 class: "n-footer__upper-cta-column col-12 col-lg-3 has-no-margins-around-lg" 38072 }, o3 = { 38073 class: "n-footer__lower" 38074 }, l3 = { 38075 class: "n-footer__lower-row row" 38076 }, u3 = { 38077 class: "n-footer__lower-copyright-column col-12 col-lg has-no-margins-around-lg" 38078 }, c3 = { 38079 class: "n-footer__lower-copyright is-clear-margin-bottom" 38080 }, d3 = { 38081 key: 0, 38082 class: "x-small" 38083 }, p3 = { 38084 key: 1, 38085 class: "x-small" 38086 }, f3 = { 38087 class: "n-footer__lower-utility-column-left col-12 col-lg-auto has-no-margins-around-lg is-hidden-print" 38088 }, m3 = { 38089 class: "n-footer__utility-list n-unordered-list--unstyled" 38090 }, h3 = { 38091 class: "n-footer__lower-utility-column-right col-12 col-lg-auto has-no-margins-around-lg is-hidden-print" 38092 }, g3 = { 38093 class: "n-footer__utility-list n-unordered-list--unstyled" 38094 }, b3 = { 38095 class: "n-footer__utility-list-item has-no-margins-around-lg" 38096 }; 38097 function v3(e, t, n, i, a, r) { 38098 const s = j("NButton"), o = j("SocialButtonGroupLinks"), l = j("NLink"), u = j("Block"), c = j("FooterBackToTopButton"); 38099 return m(), x("div", { 38100 class: R([ 38101 "n-footer", 38102 [ 38103 `n-footer--format-${n.format}`, 38104 n.format === "reverse" && "has-reverse-items" 38105 ] 38106 ]), 38107 "data-n-context": "n-footer" 38108 }, [ 38109 r.showUpperBlock ? (m(), U(u, { 38110 key: 0, 38111 class: "n-footer__upper-block is-hidden-print", 38112 background: n.format === "reverse" ? "bg-dark" : "bg-alt-1", 38113 "escaped-background": "", 38114 "clear-spacing-after": "" 38115 }, { 38116 default: I(() => [ 38117 O("div", t3, [ 38118 O("div", n3, [ 38119 O("div", r3, [ 38120 V(e.$slots, "column-1") 38121 ]), 38122 O("div", i3, [ 38123 V(e.$slots, "column-2") 38124 ]), 38125 O("div", a3, [ 38126 V(e.$slots, "column-3") 38127 ]), 38128 O("div", s3, [ 38129 O("div", null, [ 38130 (m(true), x(me, null, ve(n.buttons, (d, p) => (m(), U(s, { 38131 key: p, 38132 href: d.href, 38133 format: d.format + (n.format === "reverse" ? "-reverse" : ""), 38134 icon: d.icon, 38135 "link-type": d.linkType, 38136 class: "is-clear-margin-right" 38137 }, { 38138 default: I(() => [ 38139 re(H(d.label), 1) 38140 ]), 38141 _: 2 38142 }, 1032, [ 38143 "href", 38144 "format", 38145 "icon", 38146 "link-type" 38147 ]))), 128)), 38148 n.socialLinks && n.socialLinks.length > 0 ? (m(), U(o, { 38149 key: 0, 38150 buttons: n.socialLinks, 38151 alignment: "right", 38152 reverse: n.format === "reverse" 38153 }, null, 8, [ 38154 "buttons", 38155 "reverse" 38156 ])) : M("", true) 38157 ]), 38158 n.langToggle && n.langToggle.href && n.langToggle.label ? (m(), U(l, { 38159 key: 0, 38160 class: "n-footer__lang-toggle is-color-text h5", 38161 href: n.langToggle.href, 38162 "aria-label": n.langToggle.ariaLabel, 38163 hreflang: n.langToggle.lang, 38164 lang: n.langToggle.lang 38165 }, { 38166 default: I(() => [ 38167 re(H(n.langToggle.label), 1) 38168 ]), 38169 _: 1 38170 }, 8, [ 38171 "href", 38172 "aria-label", 38173 "hreflang", 38174 "lang" 38175 ])) : M("", true) 38176 ]) 38177 ]) 38178 ]) 38179 ]), 38180 _: 3 38181 }, 8, [ 38182 "background" 38183 ])) : M("", true), 38184 K(u, { 38185 class: "n-footer__lower-block", 38186 background: n.format === "reverse" ? "primary" : "bg", 38187 "escaped-background": "", 38188 "clear-spacing-after": "" 38189 }, { 38190 default: I(() => [ 38191 O("div", o3, [ 38192 O("div", l3, [ 38193 O("div", u3, [ 38194 n.backToTop && n.backToTop.enabled ? (m(), U(c, { 38195 key: 0, 38196 href: n.backToTop.href, 38197 class: "is-hidden-lg-up is-hidden-print" 38198 }, null, 8, [ 38199 "href" 38200 ])) : M("", true), 38201 O("p", c3, [ 38202 n.copyrightMessage ? (m(), x("small", p3, H(n.copyrightMessage), 1)) : (m(), x("small", d3, "\xA9 " + H(n.copyrightHolder) + " " + H(r.copyrightYears), 1)) 38203 ]) 38204 ]), 38205 O("div", f3, [ 38206 O("ul", m3, [ 38207 (m(true), x(me, null, ve(r.lowerBlockLinks, (d, p) => (m(), x("li", { 38208 key: p, 38209 class: "n-footer__utility-list-item is-clear-margin-bottom has-no-margins-around-lg" 38210 }, [ 38211 K(l, { 38212 "link-type": d.linkType, 38213 "icon-size": "16", 38214 href: d.href, 38215 "aria-label": d.ariaLabel, 38216 hreflang: d.lang, 38217 lang: d.lang, 38218 class: R([ 38219 "n-link--is-block n-link--utility-small", 38220 d.class 38221 ]) 38222 }, { 38223 default: I(() => [ 38224 re(H(d.label), 1) 38225 ]), 38226 _: 2 38227 }, 1032, [ 38228 "link-type", 38229 "href", 38230 "aria-label", 38231 "hreflang", 38232 "lang", 38233 "class" 38234 ]) 38235 ]))), 128)) 38236 ]) 38237 ]), 38238 O("div", h3, [ 38239 O("div", g3, [ 38240 O("div", b3, [ 38241 n.backToTop && n.backToTop.enabled ? (m(), U(c, { 38242 key: 0, 38243 href: n.backToTop.href, 38244 class: "is-hidden-md-down" 38245 }, null, 8, [ 38246 "href" 38247 ])) : M("", true) 38248 ]) 38249 ]) 38250 ]) 38251 ]) 38252 ]) 38253 ]), 38254 _: 1 38255 }, 8, [ 38256 "background" 38257 ]) 38258 ], 2); 38259 } 38260 let y3, _3, E3; 38261 OU = te(e3, [ 38262 [ 38263 "render", 38264 v3 38265 ] 38266 ]); 38267 y3 = { 38268 name: "n-footer-link-list", 38269 components: { 38270 CollapseList: Wh, 38271 CollapseDrawerHybrid: Ws, 38272 NLink: at 38273 }, 38274 props: { 38275 title: { 38276 ...we.title 38277 }, 38278 titleHeadingLevel: { 38279 ...we.titleHeadingLevel 38280 }, 38281 titleStyle: { 38282 ...we.titleHeadingStyle 38283 }, 38284 links: { 38285 type: Array 38286 } 38287 }, 38288 methods: { 38289 linkType(e) { 38290 return e ? Ko : at; 38291 } 38292 }, 38293 compatConfig: { 38294 MODE: 3 38295 } 38296 }; 38297 _3 = { 38298 class: "n-footer-link-list" 38299 }; 38300 E3 = { 38301 key: 0, 38302 class: "n-footer-link-list__list n-unordered-list--unstyled" 38303 }; 38304 function k3(e, t, n, i, a, r) { 38305 const s = j("NLink"), o = j("CollapseDrawerHybrid"), l = j("CollapseList"); 38306 return m(), x("div", _3, [ 38307 K(l, { 38308 variant: "drawer-hybrid", 38309 "remove-gutter": "", 38310 class: "n:mb-0" 38311 }, { 38312 default: I(() => [ 38313 K(o, { 38314 title: n.title, 38315 "title-heading-level": n.titleHeadingLevel, 38316 "title-style": n.titleStyle, 38317 class: "n-footer-link-list__collapse", 38318 "remove-gutter": "" 38319 }, { 38320 default: I(() => [ 38321 n.links ? (m(), x("ul", E3, [ 38322 (m(true), x(me, null, ve(n.links, (u, c) => (m(), x("li", { 38323 key: c, 38324 class: "n-footer-link-list__list-item" 38325 }, [ 38326 K(s, fe({ 38327 ref_for: true 38328 }, u, { 38329 "icon-size": "16", 38330 class: "n-link--is-block n-link--utility" 38331 }), { 38332 default: I(() => [ 38333 re(H(u.label), 1) 38334 ]), 38335 _: 2 38336 }, 1040) 38337 ]))), 128)) 38338 ])) : M("", true) 38339 ]), 38340 _: 1 38341 }, 8, [ 38342 "title", 38343 "title-heading-level", 38344 "title-style" 38345 ]) 38346 ]), 38347 _: 1 38348 }) 38349 ]); 38350 } 38351 let Or, ri, db, C3, A3, S3, w3; 38352 $U = te(y3, [ 38353 [ 38354 "render", 38355 k3 38356 ] 38357 ]); 38358 Or = qn({ 38359 links: [], 38360 activeLink: { 38361 targetSlotName: "", 38362 linkId: "" 38363 } 38364 }); 38365 ri = { 38366 addFootnoteLink(e, t) { 38367 Or.links.push({ 38368 targetSlotName: e, 38369 linkId: t 38370 }); 38371 }, 38372 removeFootnoteLink(e) { 38373 Or.links.splice(Or.links.indexOf(Or.links.find((t) => t.linkId === e))); 38374 }, 38375 updateFootnoteLink(e, t) { 38376 ri.removeFootnoteLink(t), ri.addFootnoteLink(e, t); 38377 }, 38378 setActive(e, t) { 38379 Or.activeLink.targetSlotName = e, Or.activeLink.linkId = t; 38380 } 38381 }; 38382 db = { 38383 computed: { 38384 store() { 38385 return Or; 38386 } 38387 }, 38388 methods: { 38389 addFootnoteLink: ri.addFootnoteLink, 38390 removeFootnoteLink: ri.removeFootnoteLink, 38391 updateFootnoteLink: ri.updateFootnoteLink,
38392 setActive: ri.setActive 38393 } 38394 }; 38395 C3 = { 38396 name: "n-footnote-link", 38397 components: { 38398 NLink: at 38399 }, 38400 mixins: [ 38401 db, 38402 nt 38403 ], 38404 compatConfig: { 38405 MODE: 3 38406 }, 38407 props: { 38408 to: { 38409 type: [ 38410 String, 38411 Number 38412 ], 38413 required: true 38414 } 38415 }, 38416 computed: { 38417 identifier() { 38418 return `${this.id}-to-${this.to}`; 38419 } 38420 }, 38421 watch: { 38422 reference: function() { 38423 this.updateFootnoteLink(this.to, this.identifier); 38424 } 38425 }, 38426 mounted() { 38427 this.addFootnoteLink(this.to, this.identifier); 38428 }, 38429 unmounted() { 38430 this.removeFootnoteLink(this.identifier); 38431 } 38432 }; 38433 A3 = { 38434 class: "n-footnote" 38435 }; 38436 S3 = { 38437 "aria-hidden": "true", 38438 class: "n-footnote__label" 38439 }; 38440 w3 = { 38441 class: "is-sr-only" 38442 }; 38443 function L3(e, t, n, i, a, r) { 38444 const s = j("NLink"); 38445 return m(), x("sup", A3, [ 38446 K(s, { 38447 id: r.identifier, 38448 href: `#footnote-list-${n.to}`, 38449 class: "n-footnote__link no-printed-href", 38450 onClick: t[0] || (t[0] = (o) => e.setActive(n.to, r.identifier)) 38451 }, { 38452 default: I(() => [ 38453 O("span", S3, H(n.to), 1), 38454 O("span", w3, H(e.$t("footnote.reference", [ 38455 n.to 38456 ])), 1) 38457 ]), 38458 _: 1 38459 }, 8, [ 38460 "id", 38461 "href" 38462 ]) 38463 ]); 38464 } 38465 let x3, O3; 38466 TU = te(C3, [ 38467 [ 38468 "render", 38469 L3 38470 ] 38471 ]); 38472 x3 = { 38473 name: "n-footnote-list", 38474 components: { 38475 Block: ft 38476 }, 38477 compatConfig: { 38478 MODE: 3 38479 }, 38480 props: { 38481 clearSpacingAfter: { 38482 ...Se.clearSpacingAfter 38483 } 38484 }, 38485 computed: { 38486 hasSlots() { 38487 return !!this.$slots.default; 38488 } 38489 } 38490 }; 38491 O3 = { 38492 key: 0, 38493 class: "n-footnote-list__list" 38494 }; 38495 function $3(e, t, n, i, a, r) { 38496 const s = j("Block"); 38497 return m(), U(s, { 38498 "clear-spacing-after": n.clearSpacingAfter, 38499 class: "n-footnote-list" 38500 }, { 38501 default: I(() => [ 38502 r.hasSlots ? (m(), x("dl", O3, [ 38503 V(e.$slots, "default") 38504 ])) : M("", true) 38505 ]), 38506 _: 3 38507 }, 8, [ 38508 "clear-spacing-after" 38509 ]); 38510 } 38511 let T3, I3, F3, N3, D3; 38512 IU = te(x3, [ 38513 [ 38514 "render", 38515 $3 38516 ] 38517 ]); 38518 T3 = { 38519 name: "n-footnote", 38520 components: { 38521 NLink: at 38522 }, 38523 mixins: [ 38524 db, 38525 Ge 38526 ], 38527 props: { 38528 name: { 38529 type: String, 38530 required: true 38531 } 38532 }, 38533 methods: { 38534 setDynamicIdentifier(e) { 38535 if (this.store.activeLink.targetSlotName.length && e === this.store.activeLink.targetSlotName) return this.store.activeLink.linkId; 38536 const t = this.store.links.find((n) => n.targetSlotName === e); 38537 return t && t.linkId ? t.linkId : e; 38538 } 38539 } 38540 }; 38541 I3 = { 38542 class: "n-footnote-list__item" 38543 }; 38544 F3 = [ 38545 "id" 38546 ]; 38547 N3 = [ 38548 "id", 38549 "aria-labelledby" 38550 ]; 38551 D3 = { 38552 class: "n-footnote-list__superscript" 38553 }; 38554 function P3(e, t, n, i, a, r) { 38555 const s = j("NLink"); 38556 return m(), x("div", I3, [ 38557 O("dt", { 38558 id: `footnote-list-${n.name}-ref`, 38559 class: "is-sr-only" 38560 }, H(e.$t("footnote.reference", [ 38561 n.name 38562 ])), 9, F3), 38563 O("dd", { 38564 id: `footnote-list-${n.name}`, 38565 "aria-labelledby": `footnote-list-${n.name}-ref`, 38566 class: "n-footnote-list__text x-small is-focusable", 38567 tabindex: "-1" 38568 }, [ 38569 O("sup", D3, [ 38570 K(s, { 38571 id: `footnote-list-${n.name}-back`, 38572 href: `#${r.setDynamicIdentifier(n.name)}`, 38573 "aria-label": e.$t("footnote.label", [ 38574 n.name 38575 ]), 38576 class: "n-footnote-list__link no-printed-href" 38577 }, { 38578 default: I(() => [ 38579 re(H(n.name), 1) 38580 ]), 38581 _: 1 38582 }, 8, [ 38583 "id", 38584 "href", 38585 "aria-label" 38586 ]) 38587 ]), 38588 t[0] || (t[0] = O("span", { 38589 "aria-hidden": "true" 38590 }, "\xA0", -1)), 38591 V(e.$slots, "default") 38592 ], 8, N3) 38593 ]); 38594 } 38595 let B3, M3, R3; 38596 FU = te(T3, [ 38597 [ 38598 "render", 38599 P3 38600 ] 38601 ]); 38602 B3 = { 38603 class: "n-form-stepper has-transparent-items" 38604 }; 38605 M3 = { 38606 key: 0 38607 }; 38608 R3 = { 38609 key: 1 38610 }; 38611 NU = { 38612 __name: "FormStepper", 38613 props: Il({ 38614 variant: { 38615 type: String, 38616 default: "vertical", 38617 validator(e) { 38618 return [ 38619 "vertical" 38620 ].includes(e); 38621 } 38622 }, 38623 steps: { 38624 type: Object || Array, 38625 required: true 38626 }, 38627 disableCollapseOnMobile: { 38628 type: Boolean 38629 }, 38630 accordionTitle: { 38631 type: String 38632 }, 38633 expandOnMobile: { 38634 type: Boolean 38635 }, 38636 validIcon: { 38637 type: String, 38638 default: "check" 38639 }, 38640 validIconClasses: { 38641 type: String, 38642 default: "is-color-success" 38643 }, 38644 lockedIcon: { 38645 type: String, 38646 default: "lock" 38647 }, 38648 lockedIconClasses: { 38649 type: String 38650 } 38651 }, {
38652 modelValue: { 38653 default: 0, 38654 type: Number 38655 }, 38656 modelModifiers: {} 38657 }), 38658 emits: [ 38659 "update:modelValue" 38660 ], 38661 setup(e) { 38662 const t = e, { t: n } = Wr(), i = ne(() => t.variant === "vertical"), a = kb(), r = Fl(e, "modelValue"), s = ne(() => { 38663 const C = Array.isArray(t.steps) ? t.steps : []; 38664 if (C.length === 0) { 38665 let D; 38666 Object.values(t.steps).forEach((N, v) => { 38667 const y = typeof N.isValid == "function" ? N.isValid() : N.isValid; 38668 y === false && D === void 0 && (D = v); 38669 const E = N.isLocked || v > D || void 0, { to: k, title: A } = N; 38670 C[v] = { 38671 ...o({ 38672 isValid: y, 38673 isLocked: N.isLocked, 38674 disabled: E, 38675 icon: N.icon 38676 }), 38677 disabled: E, 38678 to: k, 38679 title: A 38680 }; 38681 }); 38682 } 38683 return C; 38684 }); 38685 function o({ isValid: C, isLocked: D, disabled: N, icon: v }) { 38686 return v ? { 38687 icon: v 38688 } : D ? { 38689 iconClasses: t.lockedIconClasses, 38690 icon: t.lockedIcon 38691 } : C && !N ? { 38692 iconClasses: t.validIconClasses, 38693 icon: t.validIcon 38694 } : {}; 38695 } 38696 const l = ne(() => s.value.some((C) => typeof C == "object" && C.to && a !== void 0)); 38697 async function u(C) { 38698 l.value || (r.value = C); 38699 } 38700 ms(() => { 38701 if (l.value) { 38702 const C = s.value.findIndex((D) => D.to === a.fullPath); 38703 r.value = C; 38704 } 38705 }); 38706 const { currentNestBreakpoint: c } = ma(), d = ne(() => !t.disableCollapseOnMobile && [ 38707 "md", 38708 "sm", 38709 "xs" 38710 ].includes(c.value)); 38711 function p(C) { 38712 return typeof C == "string" ? C : C.title; 38713 } 38714 const b = ne(() => t.accordionTitle ? t.accordionTitle : n("formStepper.title", { 38715 currentStepNumber: r.value + 1, 38716 totalSteps: s.value.length, 38717 currentStepName: p(s.value[r.value]) 38718 })), h = ne(() => d.value ? { 38719 variant: "drawer-hybrid", 38720 removeGutter: true, 38721 class: "n:mb-0" 38722 } : {}), _ = ne(() => d.value ? { 38723 variant: "accordion", 38724 className: "n:px-md", 38725 clearContentSpacing: true, 38726 initialOpen: t.expandOnMobile, 38727 title: b.value 38728 } : {}); 38729 return (C, D) => (m(), x("nav", B3, [ 38730 (m(), U(ue(d.value ? ae(Wh) : "div"), Pt(Bt(h.value)), { 38731 default: I(() => [ 38732 (m(), U(ue(d.value ? ae(Ws) : "div"), Pt(Bt(_.value)), { 38733 default: I(() => [ 38734 C.$slots.header ? (m(), x("div", M3, [ 38735 V(C.$slots, "header") 38736 ])) : M("", true), 38737 O("div", { 38738 class: R({ 38739 "n:flex": !i.value, 38740 "n:pt-lg": !C.$slots.header 38741 }) 38742 }, [ 38743 (m(true), x(me, null, ve(s.value, (N, v) => (m(), U(ue(i.value ? ae(Rr) : ae(ou)), fe({ 38744 ref_for: true 38745 }, typeof N == "object" ? N : {}, { 38746 key: v, 38747 "aria-current": r.value === v ? "step" : void 0, 38748 "data-test-id": `n-stepper-${N.name}`, 38749 "is-current": r.value === v, 38750 to: N.disabled ? void 0 : N.to, 38751 onClick: (y) => u(v) 38752 }), { 38753 default: I(() => [ 38754 re(H(p(N)), 1) 38755 ]), 38756 _: 2 38757 }, 1040, [ 38758 "aria-current", 38759 "data-test-id", 38760 "is-current", 38761 "to", 38762 "onClick" 38763 ]))), 128)) 38764 ], 2), 38765 C.$slots.footer ? (m(), x("div", R3, [ 38766 V(C.$slots, "footer") 38767 ])) : M("", true) 38768 ]), 38769 _: 3 38770 }, 16)) 38771 ]), 38772 _: 3 38773 }, 16)) 38774 ])); 38775 } 38776 }; 38777 function U3(e, t) { 38778 const n = pe(e), i = ne(() => Array.isArray(n.value) ? n.value : Object.keys(n.value)), a = pe(i.value.indexOf(i.value[0])), r = ne(() => c(a.value)), s = ne(() => a.value === 0), o = ne(() => a.value === i.value.length - 1), l = ne(() => i.value[a.value + 1]), u = ne(() => i.value[a.value - 1]); 38779 function c(E) { 38780 return Array.isArray(n.value) ? n.value[E] : n.value[i.value[E]]; 38781 } 38782 function d(E) { 38783 if (i.value.includes(E)) return c(i.value.indexOf(E)); 38784 } 38785 function p(E) { 38786 i.value.includes(E) && (a.value = i.value.indexOf(E)); 38787 } 38788 function b() { 38789 o.value || a.value++; 38790 } 38791 function h() { 38792 s.value || a.value--; 38793 } 38794 function _(E) { 38795 y(E) && p(E); 38796 } 38797 function C(E) { 38798 return i.value.indexOf(E) === a.value + 1; 38799 } 38800 function D(E) { 38801 return i.value.indexOf(E) === a.value - 1; 38802 } 38803 function N(E) { 38804 return i.value.indexOf(E) === a.value; 38805 } 38806 function v(E) { 38807 return a.value < i.value.indexOf(E); 38808 } 38809 function y(E) { 38810 return a.value > i.value.indexOf(E); 38811 } 38812 return { 38813 steps: n, 38814 stepNames: i, 38815 index: a, 38816 current: r, 38817 next: l, 38818 previous: u, 38819 isFirst: s, 38820 isLast: o, 38821 at: c, 38822 get: d, 38823 goTo: p, 38824 goToNext: b, 38825 goToPrevious: h, 38826 goBackTo: _, 38827 isNext: C, 38828 isPrevious: D, 38829 isCurrent: N, 38830 isBefore: v, 38831 isAfter: y 38832 }; 38833 } 38834 function pb({ isValid: e }) { 38835 return typeof e == "function" ? e() : e !== false; 38836 } 38837 function lf({ isLocked: e }) { 38838 return typeof e == "function" ? e() : e; 38839 } 38840 function V3(e) { 38841 return Array.isArray(e) ? -1 : Object.values(e).findIndex((t) => !pb(t)); 38842 }
38843 DU = function(e, { router: t } = {}) { 38844 const n = U3(e), i = ne(() => V3(n.steps.value)), a = ne(() => n.at(i.value)), r = ne(() => { 38845 for (let C = n.index.value + 1; C < n.stepNames.value.length; C++) { 38846 const D = n.at(C), N = i.value === -1 || C <= i.value; 38847 if (!lf(D) && N) return C; 38848 } 38849 }), s = ne(() => n.get(n.next.value)), o = ne(() => n.at(r.value)), l = ne(() => n.get(n.previous.value)), u = ne(() => { 38850 for (let C = n.index.value - 1; C >= 0; C--) { 38851 const D = n.at(C), N = i.value === -1 || C < i.value; 38852 if (!lf(D) && N) return C; 38853 } 38854 }), c = ne(() => n.at(u.value)); 38855 function d() { 38856 r.value !== void 0 && (t && o.value.to && t.push(o.value.to), n.index.value = r.value); 38857 } 38858 function p() { 38859 u.value !== void 0 && (t && c.value.to && t.push(c.value.to), n.index.value = u.value); 38860 } 38861 ms(() => { 38862 if (t) { 38863 const { currentRoute: C } = t; 38864 n.index.value = Object.values(e).findIndex((D) => D.to === C.value.fullPath); 38865 } 38866 }); 38867 const b = ne(() => n.stepNames.value[n.index.value]), h = ne(() => pb(n.current.value)); 38868 function _(C) { 38869 const D = n.get(C); 38870 D.isLocked = true; 38871 } 38872 return { 38873 ...n, 38874 goToNext: d, 38875 goToPrevious: p, 38876 nextStep: s, 38877 previousStep: l, 38878 nextAllowedStep: o, 38879 previousAllowedStep: c, 38880 name: b, 38881 lock: _, 38882 firstInvalidStep: a, 38883 currentStepIsValid: h 38884 }; 38885 }; 38886 const H3 = { 38887 name: "n-generic-contact-form", 38888 components: { 38889 NButton: ze, 38890 FormGenerator: og, 38891 FormErrorSummary: tg, 38892 SubmitMessage: e0, 38893 Loader: cg 38894 }, 38895 mixins: [ 38896 Lt, 38897 Ge, 38898 nt, 38899 Ai 38900 ], 38901 props: { 38902 schema: { 38903 type: Array, 38904 default: function() { 38905 return [ 38906 [ 38907 { 38908 name: "first-name", 38909 label: Ze.global.t("field.firstName"), 38910 size: "auto", 38911 validations: [ 38912 "required" 38913 ] 38914 }, 38915 { 38916 name: "last-name", 38917 label: Ze.global.t("field.lastName"), 38918 size: "auto", 38919 validations: [ 38920 "required" 38921 ] 38922 } 38923 ], 38924 { 38925 name: "email-address", 38926 label: Ze.global.t("field.emailAddress"), 38927 inputType: "email", 38928 size: "full-width", 38929 validations: [ 38930 "required", 38931 "email" 38932 ] 38933 }, 38934 { 38935 name: "message", 38936 label: Ze.global.t("field.message"), 38937 inputType: "textarea", 38938 size: "full-width", 38939 validations: [ 38940 "required" 38941 ] 38942 } 38943 ]; 38944 } 38945 }, 38946 endpoint: { 38947 type: String 38948 }, 38949 resultTitle: { 38950 type: Object, 38951 default: () => ({ 38952 success: "", 38953 error: "" 38954 }) 38955 }, 38956 submitButton: { 38957 type: Object, 38958 default: () => ({}) 38959 }, 38960 additionalSubmissionData: { 38961 type: Object, 38962 default: () => ({}) 38963 }, 38964 reCaptchaSiteKey: { 38965 type: String 38966 }, 38967 formatSubmission: { 38968 type: Function 38969 }, 38970 dataType: { 38971 type: String, 38972 default: "formData" 38973 }, 38974 useNativePost: { 38975 type: Boolean 38976 } 38977 }, 38978 data() { 38979 return { 38980 values: {}, 38981 flatSchema: [], 38982 fieldsets: [], 38983 isSubmitted: false, 38984 isValidating: false, 38985 isValid: false, 38986 submitState: "", 38987 errors: [], 38988 reCaptchaToken: void 0 38989 }; 38990 }, 38991 computed: { 38992 postableData() { 38993 const e = this.additionalSubmissionData, t = this.reCaptchaToken; 38994 return t ? this.formatSubmission ? this.formatSubmission(this.values, { 38995 ...e, 38996 ...t 38997 }) : this.defaultFormatSubmission(this.values, { 38998 ...e, 38999 ...t 39000 }) : this.formatSubmission ? this.formatSubmission(this.values, { 39001 ...e 39002 }) : this.defaultFormatSubmission(this.values, { 39003 ...e 39004 }); 39005 }, 39006 errorCount() { 39007 return this.errors.length; 39008 } 39009 }, 39010 mounted() { 39011 this.reCaptchaSiteKey && xE(this.reCaptchaSiteKey); 39012 }, 39013 methods: { 39014 updateFlatSchema(e) { 39015 this.flatSchema = e; 39016 }, 39017 updateFieldsets(e) { 39018 this.fieldsets = e; 39019 }, 39020 setError(e) { 39021 this.submitState = "error", this.nestEvents_emit(this.EVENT_TYPES.POST_REQUEST_ERROR, { 39022 formData: this.values, 39023 response: e 39024 }), this.dispatchNestEvent({ 39025 action: "post-request-error", 39026 formData: this.values, 39027 response: e 39028 }); 39029 }, 39030 post(e, t) { 39031 if (this.useNativePost) { 39032 this.$refs.form.submit(); 39033 return; 39034 } 39035 Ci.post(e, t, { 39036 headers: { 39037 "Content-Type": "multipart/form-data", 39038 grecaptchatoken: this.reCaptchaToken 39039 } 39040 }).then((n) => { 39041 this.submitState = "success", this.nestEvents_emit(this.EVENT_TYPES.POST_REQUEST_SUCCESS, { 39042 formData: this.values, 39043 response: n 39044 }), this.dispatchNestEvent({ 39045 action: "post-request-success", 39046 formData: this.values, 39047 response: n 39048 }), this.$nextTick(() => { 39049 this.$refs.SubmitMessage.$el.focus(), this.$refs.SubmitMessage.$el.scrollIntoView(); 39050 }); 39051 }).catch((n) => { 39052 this.setError(n.response); 39053 }); 39054 },
39055 updateValidationResult(e) { 39056 this.isValid = e; 39057 }, 39058 updateErrors(e) { 39059 this.errors = e; 39060 }, 39061 defaultFormatSubmission(e, t) { 39062 if (this.dataType === "formData") { 39063 const n = new FormData(); 39064 return Object.keys(this.additionalSubmissionData).forEach((i) => n.append(i, this.additionalSubmissionData[i])), Object.keys(this.values).forEach((i) => { 39065 this.values[i] && this.values[i] instanceof FileList && n.append("file", this.values[i][0]), n.append(i, this.values[i]); 39066 }), n; 39067 } else return { 39068 ...t, 39069 ...e 39070 }; 39071 }, 39072 submit() { 39073 this.isSubmitted = true, this.nestEvents_emit(this.EVENT_TYPES.SUBMIT), this.post(this.endpoint, this.postableData); 39074 }, 39075 submitHandler() { 39076 if (this.isValidating = true, this.nestEvents_emit(this.EVENT_TYPES.SUBMIT_ATTEMPT), this.isValid || this.$nextTick(() => { 39077 this.dispatchNestEvent({ 39078 action: "validation-error", 39079 category: "forms", 39080 form: { 39081 errorFields: this.errors, 39082 errorCount: this.errors.length 39083 } 39084 }), this.nestEvents_emit(this.EVENT_TYPES.VALIDATION_ERROR, { 39085 errorFields: this.errors, 39086 errorCount: this.errors.length 39087 }), this.$refs.FormErrorSummary.$el.focus(), this.$refs.FormErrorSummary.$el.scrollIntoView(); 39088 }), this.isValid && this.reCaptchaSiteKey) { 39089 const e = window.grecaptcha.enterprise; 39090 e.ready(() => { 39091 e.execute(this.reCaptchaSiteKey, { 39092 action: "submit" 39093 }).then((t) => { 39094 this.reCaptchaToken = t, this.submit(); 39095 }).catch((t) => { 39096 this.setError(t); 39097 }); 39098 }); 39099 } 39100 this.isValid && !this.reCaptchaSiteKey && this.submit(); 39101 }, 39102 handleFormTouched() { 39103 this.nestEvents_emit(this.EVENT_TYPES.TOUCHED), this.dispatchNestEvent({ 39104 action: "form-touched" 39105 }); 39106 } 39107 }, 39108 compatConfig: { 39109 MODE: 3 39110 } 39111 }, j3 = { 39112 class: "n-generic-contact-form", 39113 "data-n-context": "n-generic-contact-form" 39114 }, z3 = [ 39115 "action" 39116 ], W3 = { 39117 ref: "header", 39118 class: "n-generic-contact-form__header" 39119 }, G3 = { 39120 class: "small" 39121 }, q3 = { 39122 class: "is-sr-only" 39123 }, Y3 = { 39124 ref: "footer", 39125 class: "n-generic-contact-form__footer" 39126 }, K3 = [ 39127 "name", 39128 "value" 39129 ], X3 = [ 39130 "value" 39131 ], J3 = { 39132 class: "row" 39133 }, Q3 = { 39134 class: "col-12 col-sm-6" 39135 }, Z3 = { 39136 key: 0 39137 }; 39138 function e4(e, t, n, i, a, r) { 39139 const s = j("FormErrorSummary"), o = j("FormGenerator"), l = j("NButton"), u = j("SubmitMessage"), c = j("Loader"); 39140 return m(), x("div", j3, [ 39141 Je(O("form", { 39142 ref: "form", 39143 action: n.endpoint, 39144 method: "POST", 39145 novalidate: "", 39146 onSubmit: t[1] || (t[1] = sn((...d) => r.submitHandler && r.submitHandler(...d), [ 39147 "prevent" 39148 ])) 39149 }, [ 39150 O("div", W3, [ 39151 V(e.$slots, "default") 39152 ], 512), 39153 a.isValidating && !a.isValid ? (m(), U(s, { 39154 key: 0, 39155 ref: "FormErrorSummary", 39156 "error-count": a.errors.length, 39157 class: "n:mb-xl" 39158 }, null, 8, [ 39159 "error-count" 39160 ])) : M("", true), 39161 V(e.$slots, "requiredFieldsMessage", {}, () => [ 39162 O("p", G3, H(e.$t("form.fieldsRequired")), 1) 39163 ]), 39164 O("div", q3, [ 39165 V(e.$slots, "conditionalFieldsMessage", {}, () => [ 39166 O("p", null, H(e.$t("form.conditionalFields")), 1) 39167 ]) 39168 ]), 39169 K(o, { 39170 id: `${e.id}-formgen`, 39171 modelValue: a.values, 39172 "onUpdate:modelValue": t[0] || (t[0] = (d) => a.values = d), 39173 schema: n.schema, 39174 "enable-validation": a.isValidating, 39175 onValidationResult: r.updateValidationResult, 39176 onFormErrors: r.updateErrors, 39177 onFormTouched: r.handleFormTouched, 39178 onFlatSchemaUpdated: r.updateFlatSchema, 39179 onFieldsetsUpdated: r.updateFieldsets 39180 }, $n({ 39181 _: 2 39182 }, [ 39183 ve(a.fieldsets, (d) => ({ 39184 name: `${d.props.name}-description`, 39185 fn: I(() => [ 39186 V(e.$slots, `${d.props.name}-description`) 39187 ]) 39188 })), 39189 ve(a.flatSchema, (d) => ({ 39190 name: `${d.name}-description`, 39191 fn: I(() => [ 39192 V(e.$slots, `${d.name}-description`) 39193 ]) 39194 })) 39195 ]), 1032, [ 39196 "id", 39197 "modelValue", 39198 "schema", 39199 "enable-validation", 39200 "onValidationResult", 39201 "onFormErrors", 39202 "onFormTouched", 39203 "onFlatSchemaUpdated", 39204 "onFieldsetsUpdated" 39205 ]), 39206 O("div", Y3, [ 39207 V(e.$slots, "footer") 39208 ], 512), 39209 n.useNativePost && n.additionalSubmissionData ? (m(true), x(me, { 39210 key: 1 39211 }, ve(Object.keys(n.additionalSubmissionData), (d) => (m(), x("input", { 39212 key: d, 39213 name: d, 39214 value: n.additionalSubmissionData[d], 39215 type: "hidden" 39216 }, null, 8, K3))), 128)) : M("", true), 39217 n.useNativePost && n.reCaptchaSiteKey && a.reCaptchaToken ? (m(), x("input", {
39218 key: "recaptchatoken", 39219 value: a.reCaptchaToken, 39220 name: "recaptchatoken", 39221 type: "hidden" 39222 }, null, 8, X3)) : M("", true), 39223 V(e.$slots, "buttons", {}, () => [ 39224 O("div", J3, [ 39225 O("div", Q3, [ 39226 K(l, fe(n.submitButton.props, { 39227 type: "submit", 39228 "is-full-width": "" 39229 }), { 39230 default: I(() => [ 39231 re(H(n.submitButton.label || e.$t("label.submit")), 1) 39232 ]), 39233 _: 1 39234 }, 16) 39235 ]) 39236 ]) 39237 ]) 39238 ], 40, z3), [ 39239 [ 39240 pt, 39241 !a.isSubmitted 39242 ] 39243 ]), 39244 a.isSubmitted ? (m(), x("div", Z3, [ 39245 K(c, { 39246 loaded: a.submitState !== "" 39247 }, { 39248 default: I(() => [ 39249 a.submitState !== "" ? (m(), U(u, { 39250 key: 0, 39251 ref: "SubmitMessage", 39252 type: a.submitState, 39253 title: n.resultTitle[a.submitState] 39254 }, { 39255 default: I(() => [ 39256 V(e.$slots, a.submitState, { 39257 values: a.values 39258 }) 39259 ]), 39260 _: 3 39261 }, 8, [ 39262 "type", 39263 "title" 39264 ])) : M("", true) 39265 ]), 39266 _: 3 39267 }, 8, [ 39268 "loaded" 39269 ]) 39270 ])) : M("", true) 39271 ]); 39272 } 39273 let t4, n4, r4, i4; 39274 PU = te(H3, [ 39275 [ 39276 "render", 39277 e4 39278 ] 39279 ]); 39280 t4 = { 39281 props: { 39282 ...we, 39283 titleHeadingLevel: { 39284 ...Se.titleHeadingLevel, 39285 default: 1 39286 }, 39287 background: Se.background, 39288 clearSpacingAfter: { 39289 type: Boolean, 39290 default: false 39291 } 39292 }, 39293 methods: {} 39294 }; 39295 n4 = { 39296 name: "n-hero-basic", 39297 compatConfig: { 39298 MODE: 3 39299 }, 39300 mixins: [ 39301 t4 39302 ], 39303 props: { 39304 clearSpacingAfter: Se.clearSpacingAfter, 39305 align: { 39306 type: String, 39307 default: "left", 39308 validator: (e) => [ 39309 "left", 39310 "center" 39311 ].includes(e) 39312 } 39313 }, 39314 computed: { 39315 titleElement() { 39316 return this.titleIsParagraph ? "p" : `h${this.titleHeadingLevel}`; 39317 } 39318 } 39319 }; 39320 r4 = { 39321 class: "container" 39322 }; 39323 i4 = { 39324 class: "row" 39325 }; 39326 function a4(e, t, n, i, a, r) { 39327 return m(), x("div", { 39328 class: R([ 39329 [ 39330 `is-bg-color-${e.background}`, 39331 { 39332 "is-clear-margin-bottom": n.clearSpacingAfter 39333 } 39334 ], 39335 "n-hero n-hero--basic" 39336 ]), 39337 "data-n-context": "n-hero-basic" 39338 }, [ 39339 O("div", r4, [ 39340 O("div", i4, [ 39341 O("div", { 39342 class: R([ 39343 [ 39344 `is-color-${[ 39345 "primary", 39346 "bg-dark", 39347 "secondary" 39348 ].includes(e.background) ? "text-reverse" : "text"}`, 39349 { 39350 "is-center-aligned has-centered-children": n.align === "center" 39351 } 39352 ], 39353 "col-12 has-no-margins-around" 39354 ]) 39355 }, [ 39356 V(e.$slots, "top"), 39357 e.title ? (m(), U(ue(r.titleElement), { 39358 key: 0, 39359 class: "n-hero__title heading-mega" 39360 }, { 39361 default: I(() => [ 39362 re(H(e.title), 1) 39363 ]), 39364 _: 1 39365 })) : M("", true), 39366 V(e.$slots, "default") 39367 ], 2) 39368 ]) 39369 ]) 39370 ], 2); 39371 } 39372 let s4, o4, l4, u4; 39373 BU = te(n4, [ 39374 [ 39375 "render", 39376 a4 39377 ] 39378 ]); 39379 s4 = { 39380 name: "n-hero-full", 39381 compatConfig: { 39382 MODE: 3 39383 }, 39384 components: { 39385 NButton: ze, 39386 BlockContentBox: Ca, 39387 Media: Vt, 39388 animateOnScrollIntoView: tn 39389 }, 39390 mixins: [ 39391 bt, 39392 em, 39393 ln, 39394 Ai 39395 ], 39396 props: { 39397 ...we, 39398 titleStyle: { 39399 ...Se.titleStyle, 39400 default: "h1" 39401 }, 39402 linkFormat: { 39403 ...Se.linkFormat, 39404 default: "primary" 39405 }, 39406 clearSpacingAfter: Se.clearSpacingAfter, 39407 contentBackground: { 39408 ...Se.background, 39409 default: "bg-translucent" 39410 },
39411 containerBackground: { 39412 ...Se.background, 39413 default: "transparent" 39414 }, 39415 backgroundPosition: { 39416 type: [ 39417 String, 39418 Array, 39419 Object 39420 ], 39421 default: () => [ 39422 "center", 39423 "top" 39424 ] 39425 }, 39426 animation: { 39427 ...Se.animation, 39428 default: "load" 39429 } 39430 }, 39431 data() { 39432 return { 39433 defaultMediaProps: { 39434 disableNativeLazyLoad: true 39435 } 39436 }; 39437 }, 39438 mounted() { 39439 if (this.animation === "scroll") { 39440 let e = { 39441 threshold: 0.6 39442 }; 39443 tn(this.$el, "is-scrolled-into-view", e); 39444 } 39445 } 39446 }; 39447 o4 = { 39448 class: R("n-hero--full__media") 39449 }; 39450 l4 = { 39451 class: "n-hero--full__media-container" 39452 }; 39453 u4 = { 39454 key: 1, 39455 class: "n-hero--full__button" 39456 }; 39457 function c4(e, t, n, i, a, r) { 39458 const s = j("Media"), o = j("BlockContentBox"); 39459 return m(), x("div", { 39460 class: R([ 39461 [ 39462 { 39463 "is-clear-margin-bottom": n.clearSpacingAfter 39464 }, 39465 { 39466 "no-animation": n.animation === "none" 39467 }, 39468 { 39469 "has-load-animation": n.animation === "load" 39470 }, 39471 `is-bg-color-${n.containerBackground}` 39472 ], 39473 "n-hero n-hero--full is-block-gapped" 39474 ]), 39475 "data-n-context": "n-hero-full" 39476 }, [ 39477 O("div", o4, [ 39478 O("div", l4, [ 39479 V(e.$slots, "media", {}, () => [ 39480 K(s, { 39481 "media-type": e.mediaType, 39482 media: e.mediaProps(e.media), 39483 position: n.backgroundPosition, 39484 "zoom-on-scroll-into-view": n.animation !== "none", 39485 fit: "cover" 39486 }, null, 8, [ 39487 "media-type", 39488 "media", 39489 "position", 39490 "zoom-on-scroll-into-view" 39491 ]) 39492 ]) 39493 ]) 39494 ]), 39495 K(o, { 39496 background: n.contentBackground, 39497 animation: n.animation, 39498 align: "left", 39499 "clear-spacing-after": "", 39500 "max-width": "41.6rem" 39501 }, { 39502 default: I(() => [ 39503 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 39504 key: 0, 39505 class: R([ 39506 n.titleStyle, 39507 "n-hero--full__heading is-clear-margin-top" 39508 ]), 39509 innerHTML: e.title 39510 }, null, 8, [ 39511 "class", 39512 "innerHTML" 39513 ])) : M("", true), 39514 V(e.$slots, "default"), 39515 e.linkLabel ? (m(), x("div", u4, [ 39516 (m(), U(ue(e.linkElementType), { 39517 href: e.url, 39518 "link-format": n.linkFormat, 39519 "link-type": e.linkType, 39520 icon: e.linkIcon, 39521 "is-mobile-full-width": "" 39522 }, { 39523 default: I(() => [ 39524 re(H(e.linkLabel), 1) 39525 ]), 39526 _: 1 39527 }, 8, [ 39528 "href", 39529 "link-format", 39530 "link-type", 39531 "icon" 39532 ])) 39533 ])) : M("", true) 39534 ]), 39535 _: 3 39536 }, 8, [ 39537 "background", 39538 "animation" 39539 ]) 39540 ], 2); 39541 } 39542 let p4, f4, m4, h4; 39543 d4 = te(s4, [ 39544 [ 39545 "render", 39546 c4 39547 ] 39548 ]); 39549 p4 = { 39550 name: "n-hero-nav", 39551 compatConfig: { 39552 MODE: 3 39553 }, 39554 components: { 39555 HeroFull: d4, 39556 NavLinkIcon: Vw, 39557 Block: ft, 39558 Media: Vt 39559 }, 39560 mixins: [ 39561 bt 39562 ], 39563 props: { 39564 ...we, 39565 items: { 39566 type: Array 39567 }, 39568 clearSpacingAfter: Se.clearSpacingAfter, 39569 contentBackground: { 39570 ...Se.background, 39571 default: "bg-translucent" 39572 }, 39573 backgroundPosition: { 39574 type: [ 39575 String, 39576 Array, 39577 Object 39578 ], 39579 default: () => [ 39580 "center", 39581 "top" 39582 ] 39583 }, 39584 animation: { 39585 ...Se.animation, 39586 default: "load" 39587 } 39588 }, 39589 data() { 39590 return { 39591 defaultMediaProps: { 39592 disableNativeLazyLoad: true 39593 } 39594 }; 39595 }, 39596 computed: { 39597 heroFullProps() { 39598 const e = { 39599 ...this.$props, 39600 media: this.mediaProps(this.$props.media) 39601 }; 39602 return delete e.items, delete e.clearSpacingAfter, e; 39603 },
39604 mediaMediaProps() { 39605 return this.mediaProps(this.media); 39606 } 39607 } 39608 }; 39609 f4 = { 39610 class: "n-hero n-hero--nav", 39611 "data-n-context": "n-hero-nav" 39612 }; 39613 m4 = { 39614 class: "n-hero--nav__hero-xs is-hidden-sm-up" 39615 }; 39616 h4 = { 39617 class: "n-hero--nav__links n-link-nav-icon-group" 39618 }; 39619 function g4(e, t, n, i, a, r) { 39620 const s = j("HeroFull"), o = j("Block"), l = j("Media"), u = j("NavLinkIcon"); 39621 return m(), x("div", f4, [ 39622 K(s, fe(r.heroFullProps, { 39623 class: "n-hero--nav__hero-sm-up is-hidden-xs-down", 39624 "clear-spacing-after": "" 39625 }), { 39626 default: I(() => [ 39627 V(e.$slots, "default") 39628 ]), 39629 _: 3 39630 }, 16), 39631 O("div", m4, [ 39632 K(o, { 39633 "clear-spacing-after": "", 39634 class: "n-hero--nav__hero-xs" 39635 }, { 39636 default: I(() => [ 39637 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 39638 key: 0, 39639 class: R([ 39640 e.titleStyle, 39641 "n-hero--nav__heading-xs" 39642 ]), 39643 innerHTML: e.title 39644 }, null, 8, [ 39645 "class", 39646 "innerHTML" 39647 ])) : M("", true), 39648 V(e.$slots, "default") 39649 ]), 39650 _: 3 39651 }), 39652 K(l, { 39653 "media-type": e.mediaType, 39654 media: r.mediaMediaProps, 39655 "zoom-on-scroll-into-view": n.animation !== "none", 39656 class: "n-hero--nav__media-xs" 39657 }, null, 8, [ 39658 "media-type", 39659 "media", 39660 "zoom-on-scroll-into-view" 39661 ]) 39662 ]), 39663 K(o, { 39664 "clear-spacing-after": n.clearSpacingAfter 39665 }, { 39666 default: I(() => [ 39667 O("ul", h4, [ 39668 (m(true), x(me, null, ve(n.items, (c) => (m(), x("li", { 39669 key: c.url + c.label 39670 }, [ 39671 K(u, fe({ 39672 ref_for: true 39673 }, c), null, 16) 39674 ]))), 128)) 39675 ]) 39676 ]), 39677 _: 1 39678 }, 8, [ 39679 "clear-spacing-after" 39680 ]) 39681 ]); 39682 } 39683 let b4; 39684 MU = te(p4, [ 39685 [ 39686 "render", 39687 g4 39688 ] 39689 ]); 39690 b4 = { 39691 name: "n-hero-multi", 39692 props: { 39693 clearSpacingAfter: Se.clearSpacingAfter, 39694 numberOfSections: { 39695 type: Number 39696 } 39697 }, 39698 computed: { 39699 slottedElements() { 39700 return this.$slots.default ? this.$slots.default().filter((e) => e.type.name ? e.type.name.match(/.*hero-multi.*/g) : false) : []; 39701 } 39702 }, 39703 methods: { 39704 useTripleGrid() { 39705 return this.numberOfSections === 3 ? true : this.slottedElements.length >= 3; 39706 }, 39707 useDoubleGrid() { 39708 return this.numberOfSections === 2 ? true : this.slottedElements.length === 2; 39709 }, 39710 getGridClass() { 39711 return this.useTripleGrid() ? "n-hero-multi__triple-section-grid" : this.useDoubleGrid() ? "n-hero-multi__double-section-grid" : "n-hero-multi__single-section-grid"; 39712 } 39713 }, 39714 compatConfig: { 39715 MODE: 3 39716 } 39717 }; 39718 function v4(e, t, n, i, a, r) { 39719 return m(), x("div", { 39720 class: R([ 39721 "n-hero-multi is-block-gapped", 39722 [ 39723 { 39724 "is-clear-margin-bottom": n.clearSpacingAfter 39725 } 39726 ] 39727 ]), 39728 "data-n-context": "n-hero-multi" 39729 }, [ 39730 O("div", { 39731 class: R([ 39732 r.getGridClass() 39733 ]) 39734 }, [ 39735 V(e.$slots, "default") 39736 ], 2) 39737 ], 2); 39738 } 39739 let Mu, y4, _4, E4, k4; 39740 RU = te(b4, [ 39741 [ 39742 "render", 39743 v4 39744 ] 39745 ]); 39746 Mu = { 39747 eyebrow: { 39748 type: String 39749 }, 39750 title: { 39751 type: String 39752 }, 39753 ctaLabel: { 39754 type: String, 39755 default: function() { 39756 return Ze.global.t("label.learnMore"); 39757 } 39758 }, 39759 ctaAriaLabel: { 39760 type: String, 39761 default: null 39762 }, 39763 ctaHref: { 39764 type: String 39765 }, 39766 media: { 39767 type: Object, 39768 default: () => ({}) 39769 } 39770 }; 39771 y4 = { 39772 name: "n-hero-multi-primary-item", 39773 components: { 39774 BlockContentBox: Ca, 39775 NButton: ze, 39776 Media: Vt 39777 }, 39778 mixins: [ 39779 bt 39780 ], 39781 props: { 39782 ...Mu, 39783 titleHeadingLevel: { 39784 ...we.titleHeadingLevel, 39785 default: 1 39786 }, 39787 titleStyle: { 39788 ...we.titleStyle, 39789 default: "h1" 39790 }, 39791 ctaFormat: { 39792 type: String 39793 }, 39794 isSquare: { 39795 type: [ 39796 Object 39797 ], 39798 default: () => ({ 39799 sm: true, 39800 md: false, 39801 lg: true, 39802 xl: true 39803 }) 39804 }, 39805 contentBoxBg: { 39806 type: String, 39807 default: "bg-translucent" 39808 } 39809 }, 39810 setup() { 39811 const { currentNestBreakpoint: e } = ma(); 39812 return { 39813 currentNestBreakpoint: e 39814 }; 39815 }, 39816 compatConfig: { 39817 MODE: 3 39818 } 39819 }; 39820 _4 = { 39821 class: "n-hero-multi-primary-item" 39822 }; 39823 E4 = { 39824 class: "n-hero-multi-primary-item__media-wrapper" 39825 }; 39826 k4 = { 39827 key: 0, 39828 class: "n:mb-0 is-bold", 39829 "data-test-id": "primary-eyebrow-default-slot-content" 39830 }; 39831 function C4(e, t, n, i, a, r) { 39832 const s = j("Media"), o = j("NButton"); 39833 return m(), x("div", _4, [ 39834 V(e.$slots, "primary-section", {}, () => [ 39835 O("div", E4, [ 39836 V(e.$slots, "primary-media", {}, () => [ 39837 e.media ? (m(), U(s, { 39838 key: 0, 39839 media: e.mediaProps(e.media), 39840 "background-position": "right top", 39841 fit: "cover", 39842 class: "n-hero-multi-primary-item__primary-media" 39843 }, null, 8, [ 39844 "media" 39845 ])) : M("", true) 39846 ]) 39847 ]), 39848 (m(), U(ue(i.currentNestBreakpoint === "xs" ? "div" : "BlockContentBox"), { 39849 class: R([ 39850 "n-hero-multi-primary-item__content-box", 39851 n.isSquare[i.currentNestBreakpoint] ? "" : "n-hero-multi-primary-item__content-box--unsquared" 39852 ]), 39853 background: n.contentBoxBg, 39854 animation: i.currentNestBreakpoint === "xs" ? "" : "none" 39855 }, { 39856 default: I(() => [ 39857 V(e.$slots, "primary-eyebrow", {}, () => [ 39858 e.eyebrow ? (m(), x("p", k4, H(e.eyebrow), 1)) : M("", true) 39859 ]), 39860 e.title ? (m(), U(ue(`h${n.titleHeadingLevel}`), { 39861 key: 0, 39862 class: R([ 39863 "n:mt-0", 39864 n.titleStyle 39865 ]), 39866 "data-test-id": "title-heading-level" 39867 }, { 39868 default: I(() => [ 39869 V(e.$slots, "title", {}, () => [ 39870 re(H(e.title), 1) 39871 ]) 39872 ]), 39873 _: 3 39874 }, 8, [ 39875 "class" 39876 ])) : M("", true), 39877 V(e.$slots, "default"), 39878 e.ctaLabel && e.ctaHref ? (m(), U(o, { 39879 key: 1, 39880 href: e.ctaHref, 39881 format: n.ctaFormat, 39882 "aria-label": e.ctaAriaLabel, 39883 class: "n-hero-multi-primary-item__cta", 39884 "data-test-id": "cta-button-hero-multi" 39885 }, { 39886 default: I(() => [ 39887 re(H(e.ctaLabel), 1) 39888 ]), 39889 _: 1 39890 }, 8, [ 39891 "href", 39892 "format", 39893 "aria-label" 39894 ])) : M("", true) 39895 ]), 39896 _: 3 39897 }, 8, [ 39898 "class", 39899 "background", 39900 "animation" 39901 ])) 39902 ]) 39903 ]); 39904 } 39905 let A4, S4, w4; 39906 UU = te(y4, [ 39907 [ 39908 "render", 39909 C4 39910 ] 39911 ]); 39912 A4 = { 39913 name: "n-hero-multi-secondary-item", 39914 components: { 39915 BlockContentBox: Ca, 39916 LinkIcon: Ut, 39917 Media: Vt 39918 }, 39919 mixins: [ 39920 bt 39921 ], 39922 props: { 39923 ...Mu, 39924 titleHeadingLevel: { 39925 ...we.titleHeadingLevel, 39926 default: 2 39927 }, 39928 titleStyle: { 39929 ...we.titleStyle, 39930 default: "h5" 39931 }, 39932 contentBoxMobileBg: { 39933 type: String, 39934 default: "bg-alt-1" 39935 }, 39936 contentBoxDesktopBg: { 39937 type: String, 39938 default: "bg-translucent" 39939 }, 39940 overlayColor: { 39941 type: String, 39942 default: "black" 39943 } 39944 }, 39945 setup() { 39946 const { currentNestBreakpoint: e } = ma(); 39947 return { 39948 currentNestBreakpoint: e 39949 }; 39950 }, 39951 compatConfig: { 39952 MODE: 3 39953 } 39954 }; 39955 S4 = { 39956 class: "n-hero-multi-secondary-item" 39957 }; 39958 w4 = { 39959 key: 0, 39960 class: "n:mb-0 is-bold", 39961 "data-test-id": "eyebrow-default-slot-content" 39962 }; 39963 function L4(e, t, n, i, a, r) { 39964 const s = j("Media"), o = j("LinkIcon"); 39965 return m(), x("div", S4, [ 39966 V(e.$slots, "section", {}, () => [ 39967 O("div", { 39968 class: "n-hero-multi-secondary-item__media-wrapper", 39969 style: en(`--n-multi-hero-secondary-overlay-color: ${n.overlayColor}`) 39970 }, [ 39971 V(e.$slots, "media", {}, () => [ 39972 e.media ? (m(), U(s, { 39973 key: 0, 39974 media: e.mediaProps(e.media), 39975 "background-position": "center top", 39976 fit: "cover" 39977 }, null, 8, [ 39978 "media" 39979 ])) : M("", true) 39980 ]) 39981 ], 4), 39982 (m(), U(ue(i.currentNestBreakpoint === "xs" ? "div" : "BlockContentBox"), { 39983 class: R([ 39984 "n-hero-multi-secondary-item__content-box has-no-margins-around", 39985 i.currentNestBreakpoint === "xs" ? "n:pl-md" : "" 39986 ]), 39987 background: i.currentNestBreakpoint === "xs" ? "" : n.contentBoxDesktopBg, 39988 animation: i.currentNestBreakpoint === "xs" ? "" : "none" 39989 }, { 39990 default: I(() => [ 39991 V(e.$slots, "eyebrow", {}, () => [ 39992 e.eyebrow ? (m(), x("p", w4, H(e.eyebrow), 1)) : M("", true) 39993 ]), 39994 e.title ? (m(), U(ue(`h${n.titleHeadingLevel}`), { 39995 key: 0, 39996 class: R([ 39997 n.titleStyle,
39998 "n:mt-0 n:mb-sm" 39999 ]), 40000 "data-test-id": "title-heading-level" 40001 }, { 40002 default: I(() => [ 40003 V(e.$slots, "title", {}, () => [ 40004 re(H(e.title), 1) 40005 ]) 40006 ]), 40007 _: 3 40008 }, 8, [ 40009 "class" 40010 ])) : M("", true), 40011 V(e.$slots, "default"), 40012 e.ctaHref ? (m(), U(o, { 40013 key: 1, 40014 href: e.ctaHref, 40015 "aria-label": e.ctaAriaLabel, 40016 class: "n-hero-multi-secondary-item__cta n:my-0", 40017 "data-test-id": "cta-link-icon-hero-multi" 40018 }, { 40019 default: I(() => [ 40020 re(H(e.ctaLabel), 1) 40021 ]), 40022 _: 1 40023 }, 8, [ 40024 "href", 40025 "aria-label" 40026 ])) : M("", true) 40027 ]), 40028 _: 3 40029 }, 8, [ 40030 "class", 40031 "background", 40032 "animation" 40033 ])) 40034 ]) 40035 ]); 40036 } 40037 let x4, O4, $4, T4, I4; 40038 VU = te(A4, [ 40039 [ 40040 "render", 40041 L4 40042 ] 40043 ]); 40044 x4 = { 40045 name: "n-hero-multi-tertiary-item", 40046 components: { 40047 LinkIcon: Ut, 40048 Media: Vt 40049 }, 40050 mixins: [ 40051 bt 40052 ], 40053 props: { 40054 ...Mu, 40055 titleHeadingLevel: { 40056 ...we.titleHeadingLevel, 40057 default: 2 40058 }, 40059 titleStyle: { 40060 ...we.titleStyle, 40061 default: "h5" 40062 }, 40063 desktopBg: { 40064 type: String, 40065 default: "primary" 40066 } 40067 }, 40068 compatConfig: { 40069 MODE: 3 40070 } 40071 }; 40072 O4 = { 40073 class: "n-hero-multi-tertiary-item" 40074 }; 40075 $4 = { 40076 class: "n-hero-multi-tertiary-item__media-wrapper" 40077 }; 40078 T4 = { 40079 class: "n-hero-multi-tertiary-item__content-restrictor" 40080 }; 40081 I4 = { 40082 key: 0, 40083 class: "n:mb-0 is-bold", 40084 "data-test-id": "eyebrow-default-slot-content" 40085 }; 40086 function F4(e, t, n, i, a, r) { 40087 const s = j("Media"), o = j("LinkIcon"); 40088 return m(), x("div", O4, [ 40089 V(e.$slots, "section", {}, () => [ 40090 O("div", $4, [ 40091 V(e.$slots, "media", {}, () => [ 40092 e.media ? (m(), U(s, { 40093 key: 0, 40094 media: e.mediaProps(e.media), 40095 "background-position": "center top", 40096 fit: "cover", 40097 class: "n-hero-multi-tertiary-item__media" 40098 }, null, 8, [ 40099 "media" 40100 ])) : M("", true) 40101 ]) 40102 ]), 40103 O("div", { 40104 class: R([ 40105 "n-hero-multi-tertiary-item__content-wrapper has-no-margins-around", 40106 [ 40107 `n-hero-multi-tertiary-item__content-wrapper--${n.desktopBg}`, 40108 { 40109 "has-reverse-items-lg-up": [ 40110 "primary", 40111 "bg-dark", 40112 "secondary" 40113 ].includes(n.desktopBg) 40114 } 40115 ] 40116 ]) 40117 }, [ 40118 O("div", T4, [ 40119 V(e.$slots, "eyebrow", {}, () => [ 40120 e.eyebrow ? (m(), x("p", I4, H(e.eyebrow), 1)) : M("", true) 40121 ]), 40122 e.title ? (m(), U(ue(`h${n.titleHeadingLevel}`), { 40123 key: 0, 40124 class: R([ 40125 n.titleStyle, 40126 "n:mt-0 n:mb-sm" 40127 ]), 40128 "data-test-id": "title-heading-level" 40129 }, { 40130 default: I(() => [ 40131 V(e.$slots, "title", {}, () => [ 40132 re(H(e.title), 1) 40133 ]) 40134 ]), 40135 _: 3 40136 }, 8, [ 40137 "class" 40138 ])) : M("", true), 40139 V(e.$slots, "default"), 40140 e.ctaHref ? (m(), U(o, { 40141 key: 1, 40142 href: e.ctaHref, 40143 "aria-label": e.ctaAriaLabel, 40144 class: "n-hero-multi-tertiary-item__cta n:my-0", 40145 "data-test-id": "cta-link-icon-hero-multi" 40146 }, { 40147 default: I(() => [ 40148 re(H(e.ctaLabel), 1) 40149 ]), 40150 _: 1 40151 }, 8, [ 40152 "href", 40153 "aria-label" 40154 ])) : M("", true) 40155 ]) 40156 ], 2) 40157 ]) 40158 ]); 40159 } 40160 HU = te(x4, [ 40161 [ 40162 "render", 40163 F4 40164 ] 40165 ]); 40166 function uf(e) { 40167 return typeof e == "function" ? e() : ae(e); 40168 } 40169 typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope; 40170 const cf = () => { 40171 }; 40172 function N4(e, t) { 40173 function n(...i) { 40174 return new Promise((a, r) => { 40175 Promise.resolve(e(() => t.apply(this, i), { 40176 fn: t, 40177 thisArg: this, 40178 args: i 40179 })).then(a).catch(r); 40180 }); 40181 } 40182 return n; 40183 } 40184 function D4(e, t = {}) { 40185 let n, i, a = cf; 40186 const r = (s) => { 40187 clearTimeout(s), a(), a = cf; 40188 }; 40189 return (s) => { 40190 const o = uf(e), l = uf(t.maxWait); 40191 return n && r(n), o <= 0 || l !== void 0 && l <= 0 ? (i && (r(i), i = null), Promise.resolve(s())) : new Promise((u, c) => { 40192 a = t.rejectOnCancel ? c : u, l && !i && (i = setTimeout(() => { 40193 n && r(n), i = null, u(s()); 40194 }, l)), n = setTimeout(() => { 40195 i && r(i), i = null, u(s()); 40196 }, o); 40197 }); 40198 }; 40199 } 40200 function df(e, t = 200, n = {}) { 40201 return N4(D4(t, n), e); 40202 } 40203 (function(e) { 40204 e(); 40205 })(function() { 40206 function e(L, w) { 40207 (w == null || w > L.length) && (w = L.length); 40208 for (var z = 0, T = Array(w); z < w; z++) T[z] = L[z]; 40209 return T; 40210 } 40211 function t(L) { 40212 if (L === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 40213 return L; 40214 } 40215 function n(L, w, z) { 40216 return w = l(w), d(L, c() ? Reflect.construct(w, [], l(L).constructor) : w.apply(L, z)); 40217 } 40218 function i(L, w) { 40219 if (!(L instanceof w)) throw new TypeError("Cannot call a class as a function"); 40220 } 40221 function a(L, w) { 40222 for (var z = 0; z < w.length; z++) { 40223 var T = w[z]; 40224 T.enumerable = T.enumerable || false, T.configurable = true, "value" in T && (T.writable = true), Object.defineProperty(L, C(T.key), T); 40225 } 40226 } 40227 function r(L, w, z) { 40228 return w && a(L.prototype, w), z && a(L, z), Object.defineProperty(L, "prototype", { 40229 writable: false 40230 }), L; 40231 } 40232 function s(L, w) { 40233 var z = typeof Symbol < "u" && L[Symbol.iterator] || L["@@iterator"]; 40234 if (!z) { 40235 if (Array.isArray(L) || (z = D(L)) || w) { 40236 z && (L = z); 40237 var T = 0, P = function() { 40238 }; 40239 return { 40240 s: P, 40241 n: function() { 40242 return T >= L.length ? { 40243 done: true 40244 } : { 40245 done: false, 40246 value: L[T++] 40247 }; 40248 }, 40249 e: function(q) { 40250 throw q; 40251 }, 40252 f: P 40253 }; 40254 } 40255 throw new TypeError(`Invalid attempt to iterate non-iterable instance. 40256In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); 40257 } 40258 var G, X = true, Y = false;
40259 return { 40260 s: function() { 40261 z = z.call(L); 40262 }, 40263 n: function() { 40264 var q = z.next(); 40265 return X = q.done, q; 40266 }, 40267 e: function(q) { 40268 Y = true, G = q; 40269 }, 40270 f: function() { 40271 try { 40272 X || z.return == null || z.return(); 40273 } finally { 40274 if (Y) throw G; 40275 } 40276 } 40277 }; 40278 } 40279 function o() { 40280 return o = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(L, w, z) { 40281 var T = b(L, w); 40282 if (T) { 40283 var P = Object.getOwnPropertyDescriptor(T, w); 40284 return P.get ? P.get.call(arguments.length < 3 ? L : z) : P.value; 40285 } 40286 }, o.apply(null, arguments); 40287 } 40288 function l(L) { 40289 return l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(w) { 40290 return w.__proto__ || Object.getPrototypeOf(w); 40291 }, l(L); 40292 } 40293 function u(L, w) { 40294 if (typeof w != "function" && w !== null) throw new TypeError("Super expression must either be null or a function"); 40295 L.prototype = Object.create(w && w.prototype, { 40296 constructor: { 40297 value: L, 40298 writable: true, 40299 configurable: true 40300 } 40301 }), Object.defineProperty(L, "prototype", { 40302 writable: false 40303 }), w && p(L, w); 40304 } 40305 function c() { 40306 try { 40307 var L = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { 40308 })); 40309 } catch { 40310 } 40311 return (c = function() { 40312 return !!L; 40313 })(); 40314 } 40315 function d(L, w) { 40316 if (w && (typeof w == "object" || typeof w == "function")) return w; 40317 if (w !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); 40318 return t(L); 40319 } 40320 function p(L, w) { 40321 return p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(z, T) { 40322 return z.__proto__ = T, z; 40323 }, p(L, w); 40324 } 40325 function b(L, w) { 40326 for (; !{}.hasOwnProperty.call(L, w) && (L = l(L)) !== null; ) ; 40327 return L; 40328 } 40329 function h(L, w, z, T) { 40330 var P = o(l(L.prototype), w, z); 40331 return typeof P == "function" ? function(G) { 40332 return P.apply(z, G); 40333 } : P; 40334 } 40335 function _(L, w) { 40336 if (typeof L != "object" || !L) return L; 40337 var z = L[Symbol.toPrimitive]; 40338 if (z !== void 0) { 40339 var T = z.call(L, w); 40340 if (typeof T != "object") return T; 40341 throw new TypeError("@@toPrimitive must return a primitive value."); 40342 } 40343 return String(L); 40344 } 40345 function C(L) { 40346 var w = _(L, "string"); 40347 return typeof w == "symbol" ? w : w + ""; 40348 } 40349 function D(L, w) { 40350 if (L) { 40351 if (typeof L == "string") return e(L, w); 40352 var z = {}.toString.call(L).slice(8, -1); 40353 return z === "Object" && L.constructor && (z = L.constructor.name), z === "Map" || z === "Set" ? Array.from(L) : z === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z) ? e(L, w) : void 0; 40354 } 40355 } 40356 (function(L) { 40357 return { 40358 NativeAbortSignal: L.AbortSignal, 40359 NativeAbortController: L.AbortController 40360 }; 40361 })(typeof self < "u" ? self : Qt); 40362 function N(L) { 40363 var w; 40364 try { 40365 w = new Event("abort"); 40366 } catch { 40367 typeof document < "u" ? document.createEvent ? (w = document.createEvent("Event"), w.initEvent("abort", false, false)) : (w = document.createEventObject(), w.type = "abort") : w = { 40368 type: "abort", 40369 bubbles: false, 40370 cancelable: false 40371 }; 40372 } 40373 return w.reason = L, w; 40374 } 40375 function v(L) { 40376 if (L === void 0) if (typeof document > "u") L = new Error("This operation was aborted"), L.name = "AbortError"; 40377 else try { 40378 L = new DOMException("signal is aborted without reason"), Object.defineProperty(L, "name", { 40379 value: "AbortError" 40380 }); 40381 } catch { 40382 L = new Error("This operation was aborted"), L.name = "AbortError"; 40383 } 40384 return L; 40385 } 40386 var y = function() { 40387 function L() { 40388 i(this, L), Object.defineProperty(this, "listeners", { 40389 value: {}, 40390 writable: true, 40391 configurable: true 40392 }); 40393 } 40394 return r(L, [ 40395 { 40396 key: "addEventListener", 40397 value: function(w, z, T) { 40398 w in this.listeners || (this.listeners[w] = []), this.listeners[w].push({ 40399 callback: z, 40400 options: T 40401 }); 40402 } 40403 }, 40404 { 40405 key: "removeEventListener", 40406 value: function(w, z) { 40407 if (w in this.listeners) { 40408 for (var T = this.listeners[w], P = 0, G = T.length; P < G; P++) if (T[P].callback === z) { 40409 T.splice(P, 1); 40410 return; 40411 } 40412 } 40413 } 40414 }, 40415 { 40416 key: "dispatchEvent", 40417 value: function(w) { 40418 var z = this; 40419 if (w.type in this.listeners) { 40420 for (var T = this.listeners[w.type], P = T.slice(), G = function() { 40421 var q = P[X]; 40422 try { 40423 q.callback.call(z, w); 40424 } catch (J) { 40425 Promise.resolve().then(function() { 40426 throw J; 40427 }); 40428 } 40429 q.options && q.options.once && z.removeEventListener(w.type, q.callback); 40430 }, X = 0, Y = P.length; X < Y; X++) G(); 40431 return !w.defaultPrevented; 40432 } 40433 } 40434 } 40435 ]); 40436 }(), E = function(L) { 40437 function w() { 40438 var z; 40439 return i(this, w), z = n(this, w), z.listeners || y.call(z), Object.defineProperty(z, "aborted", { 40440 value: false, 40441 writable: true, 40442 configurable: true 40443 }), Object.defineProperty(z, "onabort", { 40444 value: null, 40445 writable: true, 40446 configurable: true 40447 }), Object.defineProperty(z, "reason", { 40448 value: void 0, 40449 writable: true, 40450 configurable: true 40451 }), z; 40452 } 40453 return u(w, L), r(w, [ 40454 { 40455 key: "toString", 40456 value: function() { 40457 return "[object AbortSignal]"; 40458 } 40459 }, 40460 { 40461 key: "dispatchEvent", 40462 value: function(z) { 40463 z.type === "abort" && (this.aborted = true, typeof this.onabort == "function" && this.onabort.call(this, z)), h(w, "dispatchEvent", this)([ 40464 z 40465 ]); 40466 } 40467 }, 40468 { 40469 key: "throwIfAborted", 40470 value: function() { 40471 var z = this.aborted, T = this.reason, P = T === void 0 ? "Aborted" : T; 40472 if (z) throw P; 40473 } 40474 } 40475 ], [ 40476 { 40477 key: "timeout", 40478 value: function(z) { 40479 var T = new k(); 40480 return setTimeout(function() { 40481 return T.abort(new DOMException("This signal is timeout in ".concat(z, "ms"), "TimeoutError")); 40482 }, z), T.signal; 40483 } 40484 }, 40485 { 40486 key: "any", 40487 value: function(z) { 40488 var T = new k(); 40489 function P() { 40490 T.abort(this.reason), G(); 40491 } 40492 function G() { 40493 var J = s(z), Z; 40494 try { 40495 for (J.s(); !(Z = J.n()).done; ) { 40496 var se = Z.value; 40497 se.removeEventListener("abort", P); 40498 } 40499 } catch (Q) { 40500 J.e(Q); 40501 } finally { 40502 J.f(); 40503 } 40504 } 40505 var X = s(z), Y; 40506 try { 40507 for (X.s(); !(Y = X.n()).done; ) { 40508 var q = Y.value; 40509 if (q.aborted) { 40510 T.abort(q.reason); 40511 break; 40512 } else q.addEventListener("abort", P); 40513 } 40514 } catch (J) { 40515 X.e(J); 40516 } finally { 40517 X.f(); 40518 }
40519 return T.signal; 40520 } 40521 } 40522 ]); 40523 }(y), k = function() { 40524 function L() { 40525 i(this, L), Object.defineProperty(this, "signal", { 40526 value: new E(), 40527 writable: true, 40528 configurable: true 40529 }); 40530 } 40531 return r(L, [ 40532 { 40533 key: "abort", 40534 value: function(w) { 40535 var z = v(w), T = N(z); 40536 this.signal.reason = z, this.signal.dispatchEvent(T); 40537 } 40538 }, 40539 { 40540 key: "toString", 40541 value: function() { 40542 return "[object AbortController]"; 40543 } 40544 } 40545 ]); 40546 }(); 40547 typeof Symbol < "u" && Symbol.toStringTag && (k.prototype[Symbol.toStringTag] = "AbortController", E.prototype[Symbol.toStringTag] = "AbortSignal"); 40548 function A(L) { 40549 return L.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL ? (console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"), true) : typeof L.Request == "function" && !L.Request.prototype.hasOwnProperty("signal") || !L.AbortController; 40550 } 40551 (function(L) { 40552 A(L) && (L.AbortController = k, L.AbortSignal = E); 40553 })(typeof self < "u" ? self : Qt); 40554 }); 40555 const P4 = "https://ws1.postescanada-canadapost.ca/AddressComplete/Interactive/Find/v2.10/json3.ws", B4 = "https://ws1.postescanada-canadapost.ca/addresscomplete/interactive/retrieve/v2.11/json3.ws"; 40556 async function M4(e = {}, { signal: t, timeoutMs: n } = {}) { 40557 var i, a, r; 40558 const s = { 40559 key: "", 40560 searchTerm: "", 40561 lastId: "", 40562 country: "CAN", 40563 languagePreference: "EN", 40564 maxSuggestions: 7, 40565 maxResults: 7, 40566 origin: "", 40567 bias: "", 40568 filters: "", 40569 geoFence: "", 40570 ...e 40571 }, o = Object.keys(s).reduce((l, u) => { 40572 const c = u.charAt(0).toUpperCase() + u.slice(1); 40573 return l[c] = s[u], l; 40574 }, {}); 40575 try { 40576 const { data: l } = await Ci.get(P4, { 40577 params: o 40578 }, { 40579 timeout: n ?? 1e4, 40580 signal: t 40581 }); 40582 let u = (l == null ? void 0 : l.Items) ?? []; 40583 if (u.length === 1 && (i = u[0]) != null && i.Error) { 40584 const c = new Error(((a = u[0]) == null ? void 0 : a.Description) || "AddressComplete error"); 40585 throw c.code = (r = u[0]) == null ? void 0 : r.Error, c; 40586 } 40587 return e.excludePoBox && (u = u.filter((c) => { 40588 var d; 40589 const p = ((d = c == null ? void 0 : c.Text) == null ? void 0 : d.toLowerCase()) || ""; 40590 return !p.startsWith("po box") && !p.startsWith("rr"); 40591 })), u; 40592 } catch (l) { 40593 throw (l == null ? void 0 : l.code) === "ERR_CANCELED" || (l == null ? void 0 : l.name) === "CanceledError" ? new DOMException("Aborted", "AbortError") : l; 40594 } 40595 } 40596 async function R4({ key: e, id: t } = {}, { signal: n, timeoutMs: i } = {}) { 40597 var a, r, s; 40598 try { 40599 const { data: o } = await Ci.post(B4, { 40600 key: e, 40601 Id: t 40602 }, { 40603 headers: { 40604 "Content-Type": "application/x-www-form-urlencoded" 40605 }, 40606 timeout: i ?? 1e4, 40607 signal: n 40608 }), l = (o == null ? void 0 : o.Items) ?? []; 40609 if (l.length === 1 && (a = l[0]) != null && a.Error) { 40610 const u = new Error(((r = l[0]) == null ? void 0 : r.Description) || "AddressComplete error"); 40611 throw u.code = (s = l[0]) == null ? void 0 : s.Error, u; 40612 } 40613 return l; 40614 } catch (o) { 40615 throw (o == null ? void 0 : o.code) === "ERR_CANCELED" || (o == null ? void 0 : o.name) === "CanceledError" ? new DOMException("Aborted", "AbortError") : o; 40616 } 40617 } 40618 const U4 = { 40619 "aria-live": "assertive", 40620 class: "is-sr-only", 40621 role: "status" 40622 }, V4 = { 40623 __name: "InputPlacesCanadaPostApi", 40624 props: { 40625 modelValue: { 40626 type: String 40627 }, 40628 apiKey: { 40629 type: String, 40630 required: true 40631 }, 40632 apiOptions: { 40633 type: Object 40634 }, 40635 placeholder: { 40636 type: String 40637 }, 40638 minCharsToShow: { 40639 type: Number 40640 }, 40641 retrieveFullAddress: { 40642 type: Boolean 40643 } 40644 }, 40645 emits: [ 40646 "update:model-value", 40647 "update:selected", 40648 "internal-input-status" 40649 ], 40650 setup(e, { emit: t }) { 40651 const n = e, i = t, a = pe(n.modelValue || ""), r = pe(), s = pe(), o = pe(null), { locale: l, t: u } = fr(); 40652 let c; 40653 Ue(a, df((h) => { 40654 h && h.length > 0 ? d() : (r.value = void 0, s.value = { 40655 items: [] 40656 }); 40657 }), 200), Ue(r, df(async (h) => { 40658 if (h) { 40659 if (h.nextAction === "Find") { 40660 const _ = await b({ 40661 searchTerm: h.value, 40662 lastId: h.id 40663 }); 40664 s.value = { 40665 items: _ 40666 }, p(u("searchLabels.resultsFromEmptyQuery", [ 40667 _.length 40668 ])); 40669 } else if (n.retrieveFullAddress) { 40670 const _ = await R4({ 40671 id: h.id, 40672 key: n.apiKey 40673 }); 40674 i("update:selected", _); 40675 } 40676 } 40677 }), 100); 40678 const d = async (h) => { 40679 const _ = a.value; 40680 i("update:model-value", _); 40681 const C = await b({ 40682 searchTerm: _ 40683 }); 40684 s.value = { 40685 items: C 40686 }; 40687 }; 40688 async function p(h) { 40689 !o.value || !h || (requestAnimationFrame(() => { 40690 o.value.textContent = h; 40691 }), await setTimeout(() => { 40692 o.value.textContent = ""; 40693 }, 3e3)); 40694 } 40695 async function b({ searchTerm: h, lastId: _ }) { 40696 var C; 40697 if (!(((C = a.value) == null ? void 0 : C.length) < n.minCharsToShow)) { 40698 c && c.abort(), c = new AbortController(); 40699 try { 40700 const D = await M4({ 40701 searchTerm: h,
40702 lastId: _, 40703 key: n.apiKey, 40704 languagePreference: l.value.startsWith("fr") ? "fr" : "en", 40705 ...n.apiOptions 40706 }, { 40707 signal: c.signal 40708 }); 40709 return D.length ? i("internal-input-status", "results-found-success") : i("internal-input-status", "no-results-error"), D.map((N) => ({ 40710 label: `${N.Text} ${N.Description}`, 40711 value: N.Text, 40712 id: N.Id, 40713 nextAction: N.Next, 40714 options: N.Next === "Find" ? { 40715 dontEmitValue: true, 40716 leaveListboxOpen: true, 40717 iconRight: "chevron-right", 40718 srLabel: `${N.Text} ${N.Description}, ${u("searchLabels.moreResults")}` 40719 } : {} 40720 })); 40721 } catch (D) { 40722 throw console.error(D), i("internal-input-status", "api-error"), D; 40723 } 40724 } 40725 } 40726 return (h, _) => (m(), U(ae(Eu), { 40727 modelValue: a.value, 40728 "onUpdate:modelValue": _[0] || (_[0] = (C) => a.value = C), 40729 selected: r.value, 40730 "onUpdate:selected": _[1] || (_[1] = (C) => r.value = C), 40731 suggestions: s.value, 40732 "suggestions-matching-mode": "none", 40733 placeholder: e.placeholder 40734 }, { 40735 footer: I(() => [ 40736 O("div", U4, [ 40737 O("span", { 40738 ref_key: "announcer", 40739 ref: o 40740 }, null, 512) 40741 ]) 40742 ]), 40743 _: 1 40744 }, 8, [ 40745 "modelValue", 40746 "selected", 40747 "suggestions", 40748 "placeholder" 40749 ])); 40750 } 40751 }, H4 = { 40752 name: "n-input-places", 40753 components: { 40754 InputAutocomplete: Eu, 40755 LocationService: Eg 40756 }, 40757 extends: Mt, 40758 props: { 40759 apiKey: { 40760 type: [ 40761 String, 40762 Object 40763 ], 40764 default: () => vs 40765 }, 40766 placeholder: { 40767 type: String 40768 }, 40769 minCharsToShow: { 40770 type: Number, 40771 default: 1 40772 }, 40773 modelValue: { 40774 type: String 40775 } 40776 }, 40777 emits: [ 40778 "update:model-value" 40779 ], 40780 data() { 40781 return { 40782 proxyValue: "", 40783 valueMatchesSuggestion: false, 40784 suggestions: {} 40785 }; 40786 }, 40787 watch: { 40788 modelValue: { 40789 immediate: true, 40790 handler: function(e) { 40791 this.$nextTick(() => { 40792 this.proxyValue = e; 40793 }); 40794 } 40795 } 40796 }, 40797 mounted() { 40798 this.modelValue && this.modelValue.length && this.handleInput(this.modelValue); 40799 }, 40800 methods: { 40801 suggestionsHandler(e) { 40802 this.suggestions = { 40803 label: null, 40804 items: e.length ? e.map((t) => ({ 40805 label: t.description, 40806 id: t.placeId 40807 })) : [] 40808 }; 40809 }, 40810 handleInput(e) { 40811 this.proxyValue = e, this.$emit("update:model-value", this.proxyValue); 40812 } 40813 } 40814 }; 40815 function j4(e, t, n, i, a, r) { 40816 const s = j("InputAutocomplete"), o = j("LocationService"); 40817 return m(), U(o, { 40818 ref: "locationService", 40819 "data-test-id": "input-places-location-services", 40820 "api-key": n.apiKey, 40821 "model-value": a.proxyValue, 40822 "detailed-suggestion": null, 40823 "min-length": n.minCharsToShow, 40824 "request-config": { 40825 country: [ 40826 "ca" 40827 ] 40828 }, 40829 onSuggestions: r.suggestionsHandler 40830 }, { 40831 default: I(() => [ 40832 K(s, fe(e.$props, { 40833 ref: "autocompleteInput", 40834 modelValue: a.proxyValue, 40835 "onUpdate:modelValue": [ 40836 t[0] || (t[0] = (l) => a.proxyValue = l), 40837 r.handleInput 40838 ], 40839 "data-test-id": "input-places-autocomplete", 40840 suggestions: a.suggestions, 40841 class: "n-input-wrapper--places" 40842 }), { 40843 "listbox-logo": I(() => t[1] || (t[1] = [ 40844 O("div", { 40845 class: "n-listbox__logo-wrapper" 40846 }, [ 40847 O("img", { 40848 src: "https://www.canadalife.com/content/dam/public/logos/third-party/powered-by-google.png", 40849 class: "n-listbox__logo" 40850 }) 40851 ], -1) 40852 ])), 40853 _: 1 40854 }, 16, [ 40855 "modelValue", 40856 "suggestions", 40857 "onUpdate:modelValue" 40858 ]) 40859 ]), 40860 _: 1 40861 }, 8, [ 40862 "api-key", 40863 "model-value", 40864 "min-length", 40865 "onSuggestions" 40866 ]); 40867 }
40868 const z4 = te(H4, [ 40869 [ 40870 "render", 40871 j4 40872 ] 40873 ]), W4 = { 40874 name: "n-input-places", 40875 components: { 40876 InputPlacesGoogleApi: z4, 40877 InputPlacesCanadaPostApi: V4 40878 }, 40879 extends: Mt, 40880 props: { 40881 apiKey: { 40882 type: [ 40883 String, 40884 Object 40885 ] 40886 }, 40887 apiType: { 40888 type: String, 40889 default: "google", 40890 validator: (e) => [ 40891 "google", 40892 "canada-post" 40893 ].includes(e) 40894 }, 40895 apiOptions: { 40896 type: Object 40897 }, 40898 placeholder: { 40899 type: String 40900 }, 40901 minCharsToShow: { 40902 type: Number, 40903 default: 1 40904 }, 40905 modelValue: { 40906 type: String 40907 }, 40908 retrieveFullAddress: { 40909 type: Boolean 40910 } 40911 }, 40912 emits: [ 40913 "update:model-value", 40914 "update:selected", 40915 "internal-input-status" 40916 ], 40917 data() { 40918 return { 40919 proxyValue: "" 40920 }; 40921 }, 40922 watch: { 40923 modelValue: { 40924 immediate: true, 40925 handler: function(e) { 40926 this.$nextTick(() => { 40927 this.proxyValue = e; 40928 }); 40929 } 40930 } 40931 }, 40932 mounted() { 40933 this.modelValue && this.modelValue.length && this.handleInput(this.modelValue); 40934 }, 40935 methods: { 40936 handleInput(e) { 40937 this.proxyValue = e, this.$emit("update:model-value", this.proxyValue); 40938 }, 40939 handleSelected(e) { 40940 this.$emit("update:selected", e); 40941 }, 40942 handleInternalStatus(e) { 40943 this.$emit("internal-input-status", e); 40944 } 40945 } 40946 }; 40947 function G4(e, t, n, i, a, r) { 40948 const s = j("InputPlacesCanadaPostApi"), o = j("InputPlacesGoogleApi"); 40949 return n.apiType === "canada-post" ? (m(), U(s, fe({ 40950 key: 0, 40951 modelValue: a.proxyValue, 40952 "onUpdate:modelValue": t[0] || (t[0] = (l) => a.proxyValue = l) 40953 }, e.$props, { 40954 "onUpdate:modelValue": r.handleInput, 40955 "onUpdate:selected": r.handleSelected, 40956 onInternalInputStatus: r.handleInternalStatus 40957 }), null, 16, [ 40958 "modelValue", 40959 "onUpdate:modelValue", 40960 "onUpdate:selected", 40961 "onInternalInputStatus" 40962 ])) : (m(), U(o, fe({ 40963 key: 1, 40964 modelValue: a.proxyValue, 40965 "onUpdate:modelValue": t[1] || (t[1] = (l) => a.proxyValue = l) 40966 }, e.$props, { 40967 "onUpdate:modelValue": r.handleInput 40968 }), null, 16, [ 40969 "modelValue", 40970 "onUpdate:modelValue" 40971 ])); 40972 } 40973 let q4, Y4, K4, X4, J4, Q4, Z4, e1; 40974 jU = te(W4, [ 40975 [ 40976 "render", 40977 G4 40978 ] 40979 ]); 40980 q4 = { 40981 name: "n-kickstarter", 40982 components: { 40983 NButton: ze, 40984 FieldInline: dI, 40985 NPicture: jn, 40986 NSelect: xi 40987 }, 40988 mixins: [ 40989 bt, 40990 Ge, 40991 Lt 40992 ], 40993 props: { 40994 inputId: { 40995 type: String, 40996 default: function() { 40997 return _a(); 40998 } 40999 }, 41000 buttonLabel: { 41001 type: String 41002 }, 41003 label: { 41004 type: String, 41005 required: true 41006 }, 41007 selectItems: { 41008 type: Array, 41009 required: true 41010 }, 41011 isColumn: { 41012 type: Boolean, 41013 default: false 41014 }, 41015 selectColumnBreakpoint: { 41016 type: String, 41017 default: "md", 41018 validator(e) { 41019 return [ 41020 "xs", 41021 "sm", 41022 "md", 41023 "lg", 41024 "xl" 41025 ].includes(e); 41026 } 41027 }, 41028 selectedIndex: { 41029 type: Number, 41030 default: 0 41031 } 41032 }, 41033 emits: [ 41034 "select-updated" 41035 ], 41036 data() { 41037 return { 41038 selectedIndexInternal: 0 41039 }; 41040 }, 41041 computed: { 41042 selectedIndexProxy() { 41043 return Number(this.selectedIndex || this.selectedIndexInternal); 41044 }, 41045 options() { 41046 let e = {}; 41047 return e = this.selectItems.map((t, n) => ({ 41048 value: n, 41049 label: t.label 41050 })), e; 41051 } 41052 }, 41053 methods: { 41054 updateSelected(e) { 41055 this.selectedIndexInternal = e, this.$emit("select-updated", this.selectedIndexInternal); 41056 } 41057 }, 41058 compatConfig: { 41059 MODE: 3 41060 } 41061 }; 41062 Y4 = { 41063 class: "n-kickstarter is-bg-color-primary is-color-white is-hidden-print", 41064 "data-n-context": "n-kickstarter" 41065 }; 41066 K4 = { 41067 class: "row" 41068 }; 41069 X4 = { 41070 class: "col" 41071 }; 41072 J4 = { 41073 class: "n-kickstarter__icon-container col-auto has-centered-child" 41074 }; 41075 Q4 = { 41076 class: "n-icon--size-80"
41077 }; 41078 Z4 = { 41079 class: "n-kickstarter__select-container col is-clear-padding-horizontal has-centered-child has-reverse-items" 41080 }; 41081 e1 = { 41082 class: "n-kickstarter__button-container col-auto has-centered-child" 41083 }; 41084 function t1(e, t, n, i, a, r) { 41085 const s = j("NPicture"), o = j("NSelect"), l = j("FieldInline"), u = j("NButton"); 41086 return m(), x("div", Y4, [ 41087 O("div", K4, [ 41088 O("div", X4, [ 41089 O("div", { 41090 class: R([ 41091 [ 41092 { 41093 "is-column": n.isColumn 41094 } 41095 ], 41096 "n-kickstarter__container container" 41097 ]) 41098 }, [ 41099 O("div", J4, [ 41100 O("div", Q4, [ 41101 K(xl, { 41102 name: "n-kickstarter__fade-icon", 41103 mode: "out-in", 41104 tag: "span" 41105 }, { 41106 default: I(() => [ 41107 (m(true), x(me, null, ve(n.selectItems, (c, d) => Je((m(), U(s, fe({ 41108 key: `kickstarter-icon-${d}`, 41109 ref_for: true 41110 }, e.mediaProps(c.iconMedia), { 41111 class: "n-kickstarter__icon n-icon--size-80" 41112 }), null, 16)), [ 41113 [ 41114 pt, 41115 d === r.selectedIndexProxy 41116 ] 41117 ])), 128)) 41118 ]), 41119 _: 1 41120 }) 41121 ]) 41122 ]), 41123 O("div", Z4, [ 41124 K(l, { 41125 label: n.label, 41126 "column-breakpoint": n.selectColumnBreakpoint, 41127 "input-id": n.inputId, 41128 class: "is-clear-margin-bottom" 41129 }, { 41130 default: I(() => [ 41131 K(o, { 41132 id: n.inputId, 41133 "data-n-label": n.label + " - " + n.selectItems[n.selectedIndex].label, 41134 "model-value": r.selectedIndexProxy, 41135 options: r.options, 41136 "no-placeholder": "", 41137 name: "kickstarter-select", 41138 "is-inline": "", 41139 "onUpdate:modelValue": r.updateSelected 41140 }, null, 8, [ 41141 "id", 41142 "data-n-label", 41143 "model-value", 41144 "options", 41145 "onUpdate:modelValue" 41146 ]) 41147 ]), 41148 _: 1 41149 }, 8, [ 41150 "label", 41151 "column-breakpoint", 41152 "input-id" 41153 ]) 41154 ]), 41155 O("div", e1, [ 41156 K(u, { 41157 href: n.selectItems[r.selectedIndexProxy].href, 41158 reverse: "", 41159 onClick: t[0] || (t[0] = (c) => e.nestEvents_emit(e.EVENT_TYPES.CLICK, { 41160 textContent: `${n.label} ${n.selectItems[r.selectedIndexProxy].label} - ${n.buttonLabel ? n.buttonLabel : e.$t("getStarted")}`, 41161 url: n.selectItems[r.selectedIndexProxy].href 41162 })) 41163 }, { 41164 default: I(() => [ 41165 re(H(n.buttonLabel ? n.buttonLabel : e.$t("getStarted")), 1) 41166 ]), 41167 _: 1 41168 }, 8, [ 41169 "href" 41170 ]) 41171 ]) 41172 ], 2) 41173 ]) 41174 ]) 41175 ]); 41176 } 41177 let n1, r1, i1, a1; 41178 pf = te(q4, [ 41179 [ 41180 "render", 41181 t1 41182 ] 41183 ]); 41184 n1 = { 41185 name: "n-kickstarter-image", 41186 components: { 41187 BlockContentBox: Ca, 41188 Kickstarter: pf, 41189 Media: Vt 41190 }, 41191 extends: pf, 41192 mixins: [ 41193 bt, 41194 Lt 41195 ], 41196 props: { 41197 clearSpacingAfter: { 41198 ...Se.clearSpacingAfter 41199 } 41200 }, 41201 methods: { 41202 selectUpdated(e) { 41203 this.selectedIndexInternal = e; 41204 } 41205 }, 41206 compatConfig: { 41207 MODE: 3 41208 } 41209 }; 41210 r1 = { 41211 class: "n-kickstarter--image is-hidden-print", 41212 "data-n-context": "n-kickstarter-image" 41213 }; 41214 i1 = { 41215 class: "is-hidden-md-up" 41216 }; 41217 a1 = { 41218 class: "n-kickstarter--image__container" 41219 }; 41220 function s1(e, t, n, i, a, r) { 41221 const s = j("Kickstarter"), o = j("Media"), l = j("BlockContentBox"); 41222 return m(), x("div", r1, [ 41223 O("div", i1, [ 41224 V(e.$slots, "kickstarter", {}, () => [ 41225 K(s, { 41226 "button-label": e.buttonLabel, 41227 label: e.label, 41228 "select-items": e.selectItems, 41229 "selected-index": e.selectedIndexProxy, 41230 "input-id": `mobile-${e.inputId}`, 41231 "is-column": "", 41232 onSelectUpdated: r.selectUpdated 41233 }, null, 8, [ 41234 "button-label", 41235 "label", 41236 "select-items", 41237 "selected-index", 41238 "input-id", 41239 "onSelectUpdated" 41240 ]) 41241 ]) 41242 ]), 41243 O("div", { 41244 class: R([ 41245 { 41246 "is-clear-margin-bottom": n.clearSpacingAfter 41247 }, 41248 "is-hidden-sm-down" 41249 ]) 41250 }, [ 41251 O("div", a1, [ 41252 K(xl, { 41253 name: "n-kickstarter__fade-background", 41254 tag: "span" 41255 }, { 41256 default: I(() => [ 41257 (m(true), x(me, null, ve(e.selectItems, (u, c) => Je((m(), x("div", { 41258 key: `kickstarter-background-${c}`, 41259 class: "n-kickstarter--image__media-animation-container" 41260 }, [ 41261 K(o, { 41262 media: e.mediaProps(u.backgroundMedia), 41263 class: "n-kickstarter--image__media", 41264 "media-type": "picture" 41265 }, null, 8, [ 41266 "media" 41267 ]) 41268 ])), [ 41269 [ 41270 pt, 41271 c === e.selectedIndexProxy 41272 ] 41273 ])), 128)) 41274 ]), 41275 _: 1 41276 }), 41277 K(l, { 41278 align: "left", 41279 "ignore-reverse-items": "", 41280 "has-vertically-centered-children": "", 41281 "clear-spacing-after": "" 41282 }, { 41283 default: I(() => [ 41284 K(s, { 41285 "button-label": e.buttonLabel, 41286 label: e.label, 41287 "select-items": e.selectItems, 41288 "selected-index": e.selectedIndexProxy, 41289 "input-id": e.inputId, 41290 class: "is-clear-padding-horizontal is-clear-padding-vertical", 41291 "select-column-breakpoint": "xl", 41292 "is-column": "", 41293 onSelectUpdated: r.selectUpdated 41294 }, null, 8, [ 41295 "button-label", 41296 "label", 41297 "select-items", 41298 "selected-index", 41299 "input-id", 41300 "onSelectUpdated" 41301 ]) 41302 ]), 41303 _: 1 41304 }) 41305 ]) 41306 ], 2) 41307 ]); 41308 } 41309 let o1, l1, u1, c1, d1, p1; 41310 zU = te(n1, [ 41311 [ 41312 "render", 41313 s1 41314 ] 41315 ]); 41316 o1 = { 41317 name: "n-list-block", 41318 compatConfig: { 41319 MODE: 3 41320 }, 41321 components: { 41322 Block: ft, 41323 NPicture: jn 41324 }, 41325 mixins: [ 41326 bt 41327 ], 41328 props: { 41329 ...we, 41330 noAnimation: { 41331 ...Se.noAnimation 41332 }, 41333 background: { 41334 ...Se.background, 41335 validator: (e) => [ 41336 "transparent", 41337 "white", 41338 "bg-alt-1", 41339 "bg-alt-2" 41340 ].includes(e) 41341 }, 41342 clearSpacingAfter: { 41343 ...Se.clearSpacingAfter 41344 }, 41345 items: { 41346 type: Array 41347 } 41348 }, 41349 computed: {
41350 componentBackground: function() { 41351 return this.variant === "details" ? "transparent" : this.background; 41352 }, 41353 itemsBackground: function() { 41354 return this.variant !== "details" ? "transparent" : this.background; 41355 } 41356 } 41357 }; 41358 l1 = { 41359 class: "n-list-block__description" 41360 }; 41361 u1 = { 41362 class: "n-list-block__items" 41363 }; 41364 c1 = { 41365 class: "n-list-block__item-content" 41366 }; 41367 d1 = { 41368 class: "n-list-block__item-text-wrapper has-last-margin-0" 41369 }; 41370 p1 = { 41371 key: 0 41372 }; 41373 function f1(e, t, n, i, a, r) { 41374 const s = j("NPicture"), o = j("Block"); 41375 return m(), U(o, { 41376 class: R([ 41377 [ 41378 `n-list-block--${e.variant}`, 41379 { 41380 "will-animate": !n.noAnimation 41381 } 41382 ], 41383 "n-list-block" 41384 ]), 41385 "clear-spacing-after": n.clearSpacingAfter, 41386 "clear-vertical-on-transparent": "", 41387 "container-size": "compressed" 41388 }, { 41389 default: I(() => [ 41390 O("div", { 41391 class: R([ 41392 [ 41393 `is-bg-color-${r.componentBackground}`, 41394 { 41395 "is-clear-padding-vertical": r.componentBackground === "transparent" 41396 } 41397 ], 41398 "n-list-block__container" 41399 ]) 41400 }, [ 41401 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 41402 key: 0, 41403 class: R([ 41404 e.titleStyle, 41405 "n-list-block__heading is-clear-margin-top" 41406 ]) 41407 }, { 41408 default: I(() => [ 41409 re(H(e.title), 1) 41410 ]), 41411 _: 1 41412 }, 8, [ 41413 "class" 41414 ])) : M("", true), 41415 O("div", l1, [ 41416 V(e.$slots, "default") 41417 ]), 41418 O("ul", u1, [ 41419 (m(true), x(me, null, ve(n.items, (l, u) => (m(), x("li", { 41420 key: u, 41421 class: R([ 41422 [ 41423 `is-bg-color-${r.itemsBackground}` 41424 ], 41425 "n-list-block__item no-break-print" 41426 ]) 41427 }, [ 41428 l.media ? (m(), U(s, fe({ 41429 key: 0, 41430 ref_for: true 41431 }, e.mediaProps(l.media), { 41432 class: "n-list-block__item-icon n-icon n-icon--size-32" 41433 }), null, 16)) : M("", true), 41434 O("div", c1, [ 41435 l.title || e.$slots[`title${u}`] ? (m(), U(ue(`h${e.titleHeadingLevel + 1}`), { 41436 key: 0, 41437 class: "h3 n-list-block__item-title" 41438 }, { 41439 default: I(() => [ 41440 V(e.$slots, `title${u}`, {}, () => [ 41441 re(H(l.title), 1) 41442 ]) 41443 ]), 41444 _: 2 41445 }, 1024)) : M("", true), 41446 O("div", d1, [ 41447 V(e.$slots, `content${u}`, {}, () => [ 41448 l.text || e.$slots[`text${u}`] ? (m(), x("p", p1, [ 41449 V(e.$slots, `text${u}`, {}, () => [ 41450 re(H(l.text), 1) 41451 ]) 41452 ])) : M("", true) 41453 ]) 41454 ]) 41455 ]) 41456 ], 2))), 128)) 41457 ]) 41458 ], 2) 41459 ]), 41460 _: 3 41461 }, 8, [ 41462 "class", 41463 "clear-spacing-after" 41464 ]); 41465 } 41466 let Qs, m1, h1, g1, b1, v1, y1; 41467 Qs = te(o1, [ 41468 [ 41469 "render", 41470 f1 41471 ] 41472 ]); 41473 WU = { 41474 name: "n-list-block-basic", 41475 compatConfig: { 41476 MODE: 3 41477 }, 41478 extends: Qs, 41479 data() { 41480 return { 41481 variant: "basic" 41482 }; 41483 } 41484 }; 41485 GU = { 41486 name: "n-list-block-details", 41487 compatConfig: { 41488 MODE: 3 41489 }, 41490 extends: Qs, 41491 props: { 41492 background: { 41493 ...Se.background, 41494 default: "bg-alt-2" 41495 }, 41496 noAnimation: { 41497 type: Boolean, 41498 default: true 41499 } 41500 }, 41501 data() { 41502 return { 41503 variant: "details" 41504 }; 41505 }, 41506 mounted() { 41507 let e = { 41508 threshold: 0 41509 }; 41510 this.noAnimation || tn(this.$el, "is-scrolled-into-view", e); 41511 } 41512 }; 41513 m1 = { 41514 name: "n-list-block-primary", 41515 compatConfig: { 41516 MODE: 3 41517 }, 41518 extends: Qs, 41519 data() { 41520 return { 41521 variant: "primary" 41522 }; 41523 } 41524 }; 41525 h1 = { 41526 class: "n-list-block__description" 41527 }; 41528 g1 = { 41529 class: "n-list-block__items row" 41530 }; 41531 b1 = { 41532 class: "n-list-block__item-content no-break-print" 41533 }; 41534 v1 = { 41535 class: "n-list-block__item-text-wrapper has-last-margin-0" 41536 }; 41537 y1 = { 41538 key: 0 41539 }; 41540 function _1(e, t, n, i, a, r) { 41541 const s = j("NPicture"), o = j("Block"); 41542 return m(), U(o, { 41543 class: R([ 41544 [ 41545 `n-list-block--${a.variant}` 41546 ], 41547 "n-list-block" 41548 ]),
41549 background: e.componentBackground, 41550 "clear-spacing-after": e.clearSpacingAfter, 41551 "clear-vertical-on-transparent": "", 41552 "escaped-background": "", 41553 "container-size": "compressed" 41554 }, { 41555 default: I(() => [ 41556 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 41557 key: 0, 41558 class: R([ 41559 e.titleStyle, 41560 "n-list-block__heading is-clear-margin-top" 41561 ]) 41562 }, { 41563 default: I(() => [ 41564 re(H(e.title), 1) 41565 ]), 41566 _: 1 41567 }, 8, [ 41568 "class" 41569 ])) : M("", true), 41570 O("div", h1, [ 41571 V(e.$slots, "default") 41572 ]), 41573 O("ul", g1, [ 41574 (m(true), x(me, null, ve(e.items, (l, u) => (m(), x("li", { 41575 key: u, 41576 class: R([ 41577 [ 41578 `is-bg-color-${e.itemsBackground}-escaped` 41579 ], 41580 "n-list-block__item col-12 col-md-4" 41581 ]) 41582 }, [ 41583 O("div", b1, [ 41584 l.media ? (m(), U(s, fe({ 41585 key: 0, 41586 ref_for: true 41587 }, e.mediaProps(l.media), { 41588 class: "n-list-block__item-icon n-icon n-icon--size-80" 41589 }), null, 16)) : M("", true), 41590 l.title ? (m(), U(ue(`h${e.titleHeadingLevel + 1}`), { 41591 key: 1, 41592 class: "h3 n-list-block__item-title" 41593 }, { 41594 default: I(() => [ 41595 re(H(l.title), 1) 41596 ]), 41597 _: 2 41598 }, 1024)) : M("", true), 41599 O("div", v1, [ 41600 V(e.$slots, `content${u}`, {}, () => [ 41601 l.text || e.$slots[`text${u}`] ? (m(), x("p", y1, [ 41602 V(e.$slots, `text${u}`, {}, () => [ 41603 re(H(l.text), 1) 41604 ]) 41605 ])) : M("", true) 41606 ]) 41607 ]) 41608 ]) 41609 ], 2))), 128)) 41610 ]) 41611 ]), 41612 _: 3 41613 }, 8, [ 41614 "class", 41615 "background", 41616 "clear-spacing-after" 41617 ]); 41618 } 41619 let E1, k1, C1, A1, S1, w1; 41620 qU = te(m1, [ 41621 [ 41622 "render", 41623 _1 41624 ] 41625 ]); 41626 E1 = { 41627 name: "n-list-block-secondary", 41628 compatConfig: { 41629 MODE: 3 41630 }, 41631 extends: Qs, 41632 data() { 41633 return { 41634 variant: "secondary" 41635 }; 41636 }, 41637 computed: { 41638 largeColumnClass: function() { 41639 return this.items.length == 4 ? "col-lg-3" : "col-lg-4"; 41640 } 41641 } 41642 }; 41643 k1 = { 41644 class: "n-list-block__description" 41645 }; 41646 C1 = { 41647 class: "n-list-block__items row" 41648 }; 41649 A1 = { 41650 class: "n-list-block__item-content no-break-print" 41651 }; 41652 S1 = { 41653 class: "n-list-block__item-text-wrapper has-last-margin-0" 41654 }; 41655 w1 = { 41656 key: 0 41657 }; 41658 function L1(e, t, n, i, a, r) { 41659 const s = j("NPicture"), o = j("Block"); 41660 return m(), U(o, { 41661 class: R([ 41662 [ 41663 `n-list-block--${a.variant}` 41664 ], 41665 "n-list-block" 41666 ]), 41667 background: e.componentBackground, 41668 "clear-spacing-after": e.clearSpacingAfter, 41669 "clear-vertical-on-transparent": "", 41670 "escaped-background": "", 41671 "container-size": "compressed" 41672 }, { 41673 default: I(() => [ 41674 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 41675 key: 0, 41676 class: R([ 41677 e.titleStyle, 41678 "n-list-block__heading is-clear-margin-top" 41679 ]) 41680 }, { 41681 default: I(() => [ 41682 re(H(e.title), 1) 41683 ]), 41684 _: 1 41685 }, 8, [ 41686 "class" 41687 ])) : M("", true), 41688 O("div", k1, [ 41689 V(e.$slots, "default") 41690 ]), 41691 O("ul", C1, [ 41692 (m(true), x(me, null, ve(e.items, (l, u) => (m(), x("li", { 41693 key: u, 41694 class: R([ 41695 [ 41696 r.largeColumnClass, 41697 `is-bg-color-${e.itemsBackground}` 41698 ], 41699 "n-list-block__item col-12 col-sm-6" 41700 ]) 41701 }, [ 41702 O("div", A1, [ 41703 l.media ? (m(), U(s, fe({ 41704 key: 0, 41705 ref_for: true 41706 }, e.mediaProps(l.media), { 41707 class: "n-list-block__item-icon n-icon n-icon--size-32" 41708 }), null, 16)) : M("", true), 41709 l.title || e.$slots[`title${u}`] ? (m(), U(ue(`h${e.titleHeadingLevel + 1}`), { 41710 key: 1, 41711 class: "h4 n-list-block__item-title" 41712 }, { 41713 default: I(() => [ 41714 V(e.$slots, `title${u}`, {}, () => [ 41715 re(H(l.title), 1) 41716 ]) 41717 ]), 41718 _: 2 41719 }, 1024)) : M("", true), 41720 O("div", S1, [ 41721 V(e.$slots, `content${u}`, {}, () => [ 41722 l.text || e.$slots[`text${u}`] ? (m(), x("p", w1, [ 41723 V(e.$slots, `text${u}`, {}, () => [ 41724 re(H(l.text), 1) 41725 ]) 41726 ])) : M("", true) 41727 ]) 41728 ]) 41729 ]) 41730 ], 2))), 128)) 41731 ]) 41732 ]), 41733 _: 3 41734 }, 8, [ 41735 "class", 41736 "background", 41737 "clear-spacing-after" 41738 ]); 41739 } 41740 let x1, O1, $1, T1, I1, F1, N1; 41741 YU = te(E1, [ 41742 [ 41743 "render", 41744 L1 41745 ] 41746 ]); 41747 x1 = { 41748 name: "n-modal", 41749 components: { 41750 ButtonClose: Um 41751 }, 41752 mixins: [ 41753 Ge, 41754 nt 41755 ], 41756 props: { 41757 ...we, 41758 size: { 41759 type: String, 41760 default: "compact" 41761 }, 41762 modelValue: { 41763 type: Boolean 41764 }, 41765 disableOverlay: { 41766 type: Boolean 41767 } 41768 }, 41769 emits: [ 41770 "update:modelValue" 41771 ], 41772 data() { 41773 return { 41774 listener: null 41775 }; 41776 }, 41777 computed: { 41778 hasTitleSlotContent() { 41779 return this.$slots.title && this.$slots.title().length; 41780 }, 41781 hasTitle() { 41782 return this.title && this.title.length >= 1 || this.hasTitleSlotContent; 41783 }, 41784 hasFooterSlotContent() { 41785 return this.$slots.footer && this.$slots.footer().length; 41786 }, 41787 _id() { 41788 return this.id + "-modal"; 41789 } 41790 }, 41791 watch: { 41792 modelValue: { 41793 handler: function(e) { 41794 if (e) { 41795 this.open(); 41796 return; 41797 } 41798 this.close(); 41799 } 41800 } 41801 }, 41802 mounted() { 41803 this.modelValue && this.open(), this.listener = this.$refs.modal.addEventListener("cancel", () => { 41804 this.close(); 41805 }); 41806 }, 41807 unmounted() { 41808 this.listener && (this.$refs.modal.removeEventListener("cancel", this.listener), this.listener = null); 41809 }, 41810 methods: { 41811 open(e = this.disableOverlay) { 41812 if (e) { 41813 this.$refs.modal.show(); 41814 return; 41815 } 41816 this.$refs.modal.showModal(), oi({ 41817 action: "show", 41818 component: this.variant, 41819 category: "disclosure", 41820 name: this._id 41821 }, this.$refs.modal), this.$emit("update:modelValue", true); 41822 }, 41823 close() { 41824 this.$refs.modal.close(), oi({ 41825 action: "hide", 41826 component: this.variant, 41827 category: "disclosure", 41828 name: this._id 41829 }, this.$refs.modal), this.$emit("update:modelValue", false); 41830 } 41831 } 41832 }; 41833 O1 = [ 41834 "id", 41835 "aria-labelledby" 41836 ]; 41837 $1 = [ 41838 "aria-label" 41839 ]; 41840 T1 = { 41841 class: "n-modal__close-wrapper n:w-full is-right-aligned" 41842 }; 41843 I1 = { 41844 class: "n-modal__body n:px-xl" 41845 }; 41846 F1 = [ 41847 "id" 41848 ]; 41849 N1 = { 41850 key: 0, 41851 class: "n-modal__footer n:px-xl n:py-md is-border-top is-border-color-rules" 41852 }; 41853 function D1(e, t, n, i, a, r) { 41854 const s = j("ButtonClose"); 41855 return m(), x("dialog", { 41856 id: r._id, 41857 ref: "modal", 41858 class: R([ 41859 "n-modal", 41860 [ 41861 `n-modal--${n.size}` 41862 ] 41863 ]), 41864 "aria-labelledby": e.id && r.hasTitle ? `${r._id}-title` : void 0 41865 }, [ 41866 O("div", { 41867 class: "n-modal__scroll-area", 41868 tabindex: "-1",
41869 role: "region", 41870 "aria-label": e.title || e.$t("modal.defaultTitle") 41871 }, [ 41872 O("div", T1, [ 41873 K(s, { 41874 class: "n-modal__close-btn n:m-0", 41875 onClick: r.close 41876 }, null, 8, [ 41877 "onClick" 41878 ]) 41879 ]), 41880 O("div", I1, [ 41881 O("div", { 41882 id: `${r._id}-title`, 41883 class: "n-modal__title has-no-margins-around n:mb-md" 41884 }, [ 41885 V(e.$slots, "title", {}, () => [ 41886 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 41887 key: 0, 41888 class: R([ 41889 "n-modal__title", 41890 e.titleStyle 41891 ]) 41892 }, { 41893 default: I(() => [ 41894 re(H(e.title), 1) 41895 ]), 41896 _: 1 41897 }, 8, [ 41898 "class" 41899 ])) : M("", true) 41900 ]) 41901 ], 8, F1), 41902 V(e.$slots, "default") 41903 ]), 41904 r.hasFooterSlotContent ? (m(), x("div", N1, [ 41905 V(e.$slots, "footer") 41906 ])) : M("", true) 41907 ], 8, $1) 41908 ], 10, O1); 41909 } 41910 let P1, B1, M1, R1, U1, V1, H1; 41911 KU = te(x1, [ 41912 [ 41913 "render", 41914 D1 41915 ] 41916 ]); 41917 P1 = { 41918 class: "n-nav-menu-stacked has-transparent-items" 41919 }; 41920 B1 = { 41921 class: "n:list-style-type-none is-restyled" 41922 }; 41923 M1 = [ 41924 "role" 41925 ]; 41926 R1 = { 41927 key: 0, 41928 class: "n:block is-dividing-line-start n:pb-md n:mt-md", 41929 "aria-hidden": "true" 41930 }; 41931 U1 = { 41932 key: 0, 41933 class: "n:list-style-type-none is-restyled" 41934 }; 41935 V1 = { 41936 key: 1 41937 }; 41938 XU = { 41939 __name: "NavMenuStacked", 41940 props: { 41941 items: { 41942 type: Array, 41943 default: () => [] 41944 } 41945 }, 41946 setup(e) { 41947 function t(a) { 41948 return a.children && a.children.length; 41949 } 41950 function n({ title: a, children: r, open: s, initialOpen: o }) { 41951 return { 41952 hideCloseButton: true, 41953 clearContentSpacing: true, 41954 titleTag: "span", 41955 titleStyle: "n-link--is-inline", 41956 buttonClasses: "n-link n-link-nav-stacked", 41957 className: "is-border-none", 41958 class: "is-restyled", 41959 title: a, 41960 children: r, 41961 open: s, 41962 initialOpen: o 41963 }; 41964 } 41965 function i({ title: a, href: r, to: s, isCurrent: o, icon: l, iconPosition: u }) { 41966 return { 41967 title: a, 41968 href: r, 41969 to: s, 41970 isCurrent: o, 41971 icon: l, 41972 iconPosition: u 41973 }; 41974 } 41975 return (a, r) => (m(), x("nav", P1, [ 41976 O("ul", B1, [ 41977 (m(true), x(me, null, ve(e.items, (s, o) => (m(), x("li", { 41978 key: o, 41979 role: s.type === "divider" ? "separator" : void 0 41980 }, [ 41981 s.type === "divider" ? (m(), x("span", R1)) : (m(), U(ue(t(s) ? ae(Vr) : ae(Rr)), fe({ 41982 key: o, 41983 ref_for: true 41984 }, t(s) ? n(s) : i(s)), $n({ 41985 default: I(() => [ 41986 t(s) ? (m(), x("ul", U1, [ 41987 (m(true), x(me, null, ve(s.children, (l, u) => (m(), x("li", { 41988 key: u 41989 }, [ 41990 K(ae(Rr), fe({ 41991 "is-child": "", 41992 ref_for: true 41993 }, i(l)), { 41994 default: I(() => [ 41995 re(H(l.title), 1) 41996 ]), 41997 _: 2 41998 }, 1040) 41999 ]))), 128)) 42000 ])) : (m(), x("span", V1, H(s.title), 1)) 42001 ]), 42002 _: 2 42003 }, [ 42004 t(s) ? { 42005 name: "title", 42006 fn: I(() => [ 42007 O("span", null, H(s.title), 1) 42008 ]), 42009 key: "0" 42010 } : void 0 42011 ]), 1040)) 42012 ], 8, M1))), 128)) 42013 ]) 42014 ])); 42015 } 42016 }; 42017 H1 = { 42018 name: "n-org-chart-line", 42019 props: { 42020 direction: { 42021 type: String, 42022 default: "vertical", 42023 validator(e) { 42024 return [ 42025 "vertical", 42026 "horizontal" 42027 ].includes(e); 42028 } 42029 } 42030 } 42031 }; 42032 function j1(e, t, n, i, a, r) { 42033 return m(), x("span", { 42034 class: R([ 42035 [ 42036 `n-org-chart-line--${n.direction}` 42037 ], 42038 "n-org-chart-line" 42039 ]), 42040 "aria-hidden": "true", 42041 tabindex: "-1" 42042 }, null, 2); 42043 } 42044 const z1 = te(H1, [ 42045 [ 42046 "render", 42047 j1 42048 ] 42049 ]), W1 = { 42050 name: "n-org-chart-list-item", 42051 components: { 42052 OrgChartLine: z1 42053 }, 42054 props: { 42055 item: { 42056 type: Object 42057 }, 42058 generations: { 42059 type: Object 42060 }, 42061 genSizes: { 42062 type: Object 42063 }, 42064 hasParent: { 42065 type: Boolean 42066 }, 42067 siblings: { 42068 type: Number, 42069 default: 0 42070 }, 42071 gen: { 42072 type: Number 42073 }, 42074 format: { 42075 type: String, 42076 default: "normal", 42077 validator(e) { 42078 return [ 42079 "normal", 42080 "stacked" 42081 ].includes(e); 42082 } 42083 }, 42084 nextFormat: { 42085 type: String, 42086 default: "normal", 42087 validator(e) { 42088 return [ 42089 "normal", 42090 "stacked" 42091 ].includes(e); 42092 } 42093 } 42094 }, 42095 computed: { 42096 isProgenitor() { 42097 return this.gen === 1; 42098 }, 42099 isDescendant() { 42100 return !this.generations[this.nextGen]; 42101 }, 42102 isLargeSize() { 42103 return this.gen <= 2 && !this.isDescendant; 42104 }, 42105 isMediumSize() { 42106 return this.gen === 3 && !this.isDescendant; 42107 }, 42108 isSmallSize() { 42109 return !!(this.gen >= 4 || this.isDescendant); 42110 }, 42111 numberOfChildren() { 42112 const e = this.item; 42113 return e.items ? e.items.length : 0; 42114 }, 42115 nextGen() { 42116 return this.gen + 1; 42117 }, 42118 horizontalLineStyles() { 42119 return this.isChildless() || this.hasChild() ? "display: none;" : `width: calc(100% - ${100 / this.numberOfChildren}% + 2px)`;
42120 }, 42121 listFormat() { 42122 return this.format === "stacked" ? "stacked" : "normal"; 42123 } 42124 }, 42125 beforeCreate: function() { 42126 this.$options.components.OrgChartList = fb; 42127 }, 42128 methods: { 42129 isChildless(e = this.item) { 42130 return !e.items; 42131 }, 42132 hasChild(e = this.item) { 42133 return !!(e.items && e.items.length === 1); 42134 }, 42135 hasChildren(e = this.item) { 42136 return !!(e.items && e.items.length > 1); 42137 }, 42138 hasManyChildren(e = this.item) { 42139 return !!(e.items && e.items.length > 4); 42140 } 42141 } 42142 }, G1 = [ 42143 "innerHTML" 42144 ]; 42145 function q1(e, t, n, i, a, r) { 42146 const s = j("OrgChartLine"), o = j("OrgChartList"); 42147 return m(), x("li", { 42148 class: R([ 42149 [ 42150 { 42151 "n-org-chart-list-item--has-parent": n.hasParent 42152 }, 42153 { 42154 "n-org-chart-list-item--is-childless": r.isChildless() 42155 }, 42156 { 42157 "n-org-chart-list-item--has-offspring": !r.isChildless() 42158 }, 42159 { 42160 "n-org-chart-list-item--has-child": r.hasChild() 42161 }, 42162 { 42163 "n-org-chart-list-item--has-children": r.hasChildren() 42164 }, 42165 { 42166 "n-org-chart-list-item--has-many-children": r.hasManyChildren() 42167 }, 42168 `n-org-chart-list-item--has-${r.numberOfChildren}-children`, 42169 `n-org-chart-list-item--gen-${n.gen}`, 42170 { 42171 "n-org-chart-list-item--progenitor": r.isProgenitor 42172 }, 42173 { 42174 "n-org-chart-list-item--large": r.isLargeSize 42175 }, 42176 { 42177 "n-org-chart-list-item--medium": r.isMediumSize 42178 }, 42179 { 42180 "n-org-chart-list-item--small": r.isSmallSize 42181 }, 42182 `n-org-chart-list-item--${n.format}`, 42183 `n-org-chart-list-item--next-format-${n.nextFormat}` 42184 ], 42185 "n-org-chart-list-item" 42186 ]) 42187 }, [ 42188 n.hasParent ? (m(), U(s, { 42189 key: 0, 42190 class: R(`n-org-chart-line--${n.format}`) 42191 }, null, 8, [ 42192 "class" 42193 ])) : M("", true), 42194 O("span", { 42195 class: "n-org-chart-list-item__label can-break-text", 42196 innerHTML: n.item.label 42197 }, null, 8, G1), 42198 r.numberOfChildren > 1 && n.nextFormat === "normal" ? (m(), U(s, { 42199 key: 1, 42200 class: R(`n-org-chart-line--${n.format}`) 42201 }, null, 8, [ 42202 "class" 42203 ])) : M("", true), 42204 n.nextFormat === "normal" || n.hasParent && n.format === "stacked" ? (m(), U(s, { 42205 key: 2, 42206 style: en(n.nextFormat === "normal" ? r.horizontalLineStyles : null), 42207 class: R(`n-org-chart-line--${n.format}`), 42208 direction: "horizontal" 42209 }, null, 8, [ 42210 "style", 42211 "class" 42212 ])) : M("", true), 42213 n.item.items ? (m(), U(o, { 42214 key: 3, 42215 items: n.item.items, 42216 generations: n.generations, 42217 "gen-sizes": n.genSizes, 42218 "has-parent": true, 42219 gen: r.nextGen, 42220 format: n.nextFormat, 42221 "next-format": n.nextFormat 42222 }, null, 8, [ 42223 "items", 42224 "generations", 42225 "gen-sizes", 42226 "gen", 42227 "format", 42228 "next-format" 42229 ])) : M("", true) 42230 ], 2); 42231 } 42232 const Y1 = te(W1, [ 42233 [ 42234 "render", 42235 q1 42236 ] 42237 ]), K1 = { 42238 name: "n-org-chart-list", 42239 components: {}, 42240 props: { 42241 items: { 42242 type: Array 42243 }, 42244 gen: { 42245 type: Number, 42246 default: 1 42247 }, 42248 generations: { 42249 type: Object 42250 }, 42251 genSizes: { 42252 type: Object 42253 }, 42254 hasParent: { 42255 type: Boolean, 42256 default: false 42257 }, 42258 format: { 42259 type: String, 42260 default: "normal", 42261 validator(e) { 42262 return [ 42263 "normal", 42264 "stacked" 42265 ].includes(e); 42266 } 42267 }, 42268 nextFormat: { 42269 type: String, 42270 default: "normal", 42271 validator(e) { 42272 return [ 42273 "normal", 42274 "stacked" 42275 ].includes(e); 42276 } 42277 } 42278 }, 42279 computed: { 42280 numberOfChildren() { 42281 return this.items ? this.items.length : 0; 42282 }, 42283 theNextFormat() { 42284 return this.format === "stacked" || this.genSizes[this.gen + 1] > 16 || this.genSizes[this.gen + 2] > 32 ? "stacked" : "normal"; 42285 }, 42286 listStyles() { 42287 return `grid-template-columns: repeat(${this.numberOfChildren}, 1fr);`; 42288 } 42289 }, 42290 beforeCreate: function() { 42291 this.$options.components.OrgChartListItem = Y1; 42292 } 42293 }; 42294 function X1(e, t, n, i, a, r) { 42295 const s = j("OrgChartListItem"); 42296 return m(), x("ul", { 42297 class: R([ 42298 [ 42299 { 42300 "n-org-chart-list--has-parent": n.hasParent 42301 }, 42302 { 42303 "n-org-chart-list--has-child": r.numberOfChildren === 1 42304 }, 42305 { 42306 "n-org-chart-list--has-children": r.numberOfChildren > 1 42307 }, 42308 { 42309 "n-org-chart-list--is-childless": r.numberOfChildren === 0 42310 }, 42311 `n-org-chart-list--gen-${n.gen}`, 42312 `n-org-chart-list--${n.format}` 42313 ], 42314 "n-org-chart-list" 42315 ]), 42316 style: en(r.listStyles) 42317 }, [ 42318 (m(true), x(me, null, ve(n.items, (o, l) => (m(), U(s, { 42319 key: l, 42320 item: o, 42321 generations: n.generations, 42322 "gen-sizes": n.genSizes, 42323 "has-parent": n.hasParent, 42324 siblings: r.numberOfChildren, 42325 gen: n.gen, 42326 format: n.format, 42327 "next-format": r.theNextFormat 42328 }, null, 8, [ 42329 "item", 42330 "generations", 42331 "gen-sizes", 42332 "has-parent", 42333 "siblings", 42334 "gen", 42335 "format", 42336 "next-format" 42337 ]))), 128)) 42338 ], 6); 42339 } 42340 const fb = te(K1, [ 42341 [ 42342 "render", 42343 X1 42344 ] 42345 ]), J1 = { 42346 name: "n-org-chart", 42347 directives: { 42348 resize: Fs 42349 }, 42350 components: { 42351 Block: ft, 42352 OrgChartList: fb 42353 }, 42354 props: { 42355 title: { 42356 ...we.title 42357 }, 42358 titleStyle: { 42359 ...we.titleHeadingStyle, 42360 default: "h2" 42361 }, 42362 items: { 42363 type: Array, 42364 required: true 42365 }, 42366 desktopBreakpoint: { 42367 type: String, 42368 default: "xl", 42369 validator: (e) => [ 42370 "xs", 42371 "sm", 42372 "md", 42373 "lg", 42374 "xl" 42375 ].includes(e) 42376 } 42377 }, 42378 data() { 42379 return { 42380 breakpoints: Kl() 42381 }; 42382 }, 42383 computed: { 42384 generations() { 42385 let e = {}; 42386 const t = (n, i) => {
42387 n.forEach((a) => { 42388 e[i] = ++e[i] || 1, a.items && t(a.items, i + 1); 42389 }); 42390 }; 42391 return t(this.items, 1), e; 42392 }, 42393 genSizes() { 42394 const e = {}, t = this.generations; 42395 return Object.keys(t).forEach((n) => { 42396 n > 1 ? e[n] = e[n - 1] * t[n] : e[n] = 1; 42397 }), e; 42398 }, 42399 mobileBreakpoint() { 42400 const e = [ 42401 "xs", 42402 "sm", 42403 "md", 42404 "lg", 42405 "xl" 42406 ], t = e.lastIndexOf(this.desktopBreakpoint) - 1; 42407 return e[t]; 42408 } 42409 }, 42410 methods: { 42411 onResize() { 42412 } 42413 } 42414 }, Q1 = { 42415 class: "row" 42416 }, Z1 = { 42417 class: "n-org-chart__wrapper col-12" 42418 }, e6 = { 42419 class: "is-sr-only" 42420 }, t6 = { 42421 class: "n-org-chart__chart" 42422 }; 42423 function n6(e, t, n, i, a, r) { 42424 const s = j("OrgChartList"), o = j("Block"), l = Gn("resize"); 42425 return Je((m(), U(o, { 42426 class: "n-org-chart" 42427 }, { 42428 default: I(() => [ 42429 O("div", Q1, [ 42430 O("figure", Z1, [ 42431 O("figcaption", { 42432 class: R([ 42433 n.titleStyle, 42434 { 42435 "is-sr-only": !n.title 42436 } 42437 ]) 42438 }, H(n.title || e.$t("orgChart.caption")), 3), 42439 O("div", e6, [ 42440 V(e.$slots, "default") 42441 ]), 42442 O("div", t6, [ 42443 O("div", { 42444 class: R(`is-hidden-${n.desktopBreakpoint}-up`) 42445 }, [ 42446 K(s, { 42447 items: n.items, 42448 generations: r.generations, 42449 "gen-sizes": r.genSizes, 42450 "aria-hidden": "true", 42451 format: "stacked" 42452 }, null, 8, [ 42453 "items", 42454 "generations", 42455 "gen-sizes" 42456 ]) 42457 ], 2), 42458 O("div", { 42459 class: R(`is-hidden-${r.mobileBreakpoint}-down`) 42460 }, [ 42461 K(s, { 42462 items: n.items, 42463 generations: r.generations, 42464 "gen-sizes": r.genSizes, 42465 "aria-hidden": "true", 42466 format: "normal" 42467 }, null, 8, [ 42468 "items", 42469 "generations", 42470 "gen-sizes" 42471 ]) 42472 ], 2) 42473 ]) 42474 ]) 42475 ]) 42476 ]), 42477 _: 3 42478 })), [ 42479 [ 42480 l, 42481 r.onResize 42482 ] 42483 ]); 42484 } 42485 JU = te(J1, [ 42486 [ 42487 "render", 42488 n6 42489 ] 42490 ]); 42491 function r6(e) { 42492 return bi() ? (vi(e), true) : false; 42493 } 42494 function i6(e) { 42495 return typeof e == "function" ? e() : ae(e); 42496 } 42497 const a6 = typeof window < "u" && typeof document < "u"; 42498 typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope; 42499 function ff(e) { 42500 var t; 42501 const n = i6(e); 42502 return (t = n == null ? void 0 : n.$el) != null ? t : n; 42503 } 42504 const s6 = a6 ? window : void 0; 42505 function o6() { 42506 const e = pe(false), t = kt(); 42507 return t && nn(() => { 42508 e.value = true; 42509 }, t), e; 42510 } 42511 function l6(e) { 42512 const t = o6(); 42513 return ne(() => (t.value, !!e())); 42514 } 42515 function u6(e, t, n = {}) { 42516 const { window: i = s6, ...a } = n; 42517 let r; 42518 const s = l6(() => i && "ResizeObserver" in i), o = () => { 42519 r && (r.disconnect(), r = void 0); 42520 }, l = ne(() => Array.isArray(e) ? e.map((d) => ff(d)) : [ 42521 ff(e) 42522 ]), u = Ue(l, (d) => { 42523 if (o(), s.value && i) { 42524 r = new ResizeObserver(t); 42525 for (const p of d) p && r.observe(p, a); 42526 } 42527 }, { 42528 immediate: true, 42529 flush: "post" 42530 }), c = () => { 42531 o(), u(); 42532 }; 42533 return r6(c), { 42534 isSupported: s, 42535 stop: c 42536 }; 42537 } 42538 let c6, d6, p6, f6, m6, h6, g6, b6, v6, y6, _6; 42539 c6 = { 42540 class: "n-page-layout__body" 42541 }; 42542 d6 = { 42543 class: "n-page-layout__columns" 42544 }; 42545 QU = { 42546 __name: "PageLayout", 42547 props: { 42548 hideLeftPaneOnMobile: { 42549 type: Boolean 42550 }, 42551 displayLeftPaneInMobileFlyout: { 42552 type: Boolean 42553 }, 42554 headerClasses: { 42555 type: String 42556 }, 42557 leftPaneClasses: { 42558 type: String 42559 },
42560 mainClasses: { 42561 type: String 42562 }, 42563 footerClasses: { 42564 type: String 42565 }, 42566 mainTag: { 42567 type: String 42568 }, 42569 footerTag: { 42570 type: String 42571 } 42572 }, 42573 setup(e) { 42574 const t = pe(), n = pe(); 42575 function i(o) { 42576 return o[0].contentRect.height; 42577 } 42578 u6(t, (o) => { 42579 n.value = i(o); 42580 }); 42581 const { currentNestBreakpoint: a } = ma(), r = ne(() => [ 42582 "md", 42583 "sm", 42584 "xs" 42585 ].includes(a.value)), s = ne(() => { 42586 const o = `${n.value}px`; 42587 return { 42588 scrollContainer: r.value ? void 0 : { 42589 scrollPaddingTop: o 42590 }, 42591 leftPane: { 42592 top: o 42593 } 42594 }; 42595 }); 42596 return (o, l) => (m(), x("div", { 42597 class: "n-page-layout", 42598 style: en(s.value.scrollContainer) 42599 }, [ 42600 O("div", { 42601 ref_key: "header", 42602 ref: t, 42603 class: R([ 42604 "n-page-layout__header", 42605 e.headerClasses 42606 ]) 42607 }, [ 42608 V(o.$slots, "header") 42609 ], 2), 42610 O("div", c6, [ 42611 O("div", d6, [ 42612 O("div", { 42613 style: en(s.value.leftPane), 42614 class: R([ 42615 { 42616 "is-hidden-md-down": e.hideLeftPaneOnMobile 42617 }, 42618 "n-page-layout__left-pane", 42619 e.leftPaneClasses 42620 ]) 42621 }, [ 42622 (m(), U(Eb, { 42623 defer: "", 42624 disabled: !r.value || !e.displayLeftPaneInMobileFlyout, 42625 to: "#n-app-header-mobile-flyout" 42626 }, [ 42627 V(o.$slots, "left-pane") 42628 ], 8, [ 42629 "disabled" 42630 ])) 42631 ], 6), 42632 (m(), U(ue(e.mainTag ?? "main"), { 42633 tabindex: "-1", 42634 class: R([ 42635 "n-page-layout__main", 42636 e.mainClasses 42637 ]) 42638 }, { 42639 default: I(() => [ 42640 V(o.$slots, "default") 42641 ]), 42642 _: 3 42643 }, 8, [ 42644 "class" 42645 ])) 42646 ]) 42647 ]), 42648 (m(), U(ue(e.footerTag ?? "footer"), { 42649 class: R([ 42650 "n-page-layout__footer", 42651 e.footerClasses 42652 ]) 42653 }, { 42654 default: I(() => [ 42655 V(o.$slots, "footer") 42656 ]), 42657 _: 3 42658 }, 8, [ 42659 "class" 42660 ])) 42661 ], 4)); 42662 } 42663 }; 42664 p6 = { 42665 name: "n-postcard", 42666 components: { 42667 Media: Vt 42668 }, 42669 mixins: [ 42670 bt 42671 ], 42672 props: { 42673 media: { 42674 type: Object, 42675 default: () => { 42676 } 42677 }, 42678 clearSpacingAfter: { 42679 ...Se.clearSpacingAfter 42680 }, 42681 disableScrollAnimations: { 42682 type: Boolean, 42683 default: false 42684 } 42685 }, 42686 data() { 42687 return { 42688 defaultMediaProps: { 42689 sizes: { 42690 lg: "640px" 42691 } 42692 } 42693 }; 42694 }, 42695 compatConfig: { 42696 MODE: 3 42697 } 42698 }; 42699 f6 = { 42700 class: "n-postcard__media-layer container" 42701 }; 42702 m6 = { 42703 class: "n-postcard__media-row row" 42704 }; 42705 h6 = { 42706 class: "n-postcard__col col-12 col-lg-8 col-xl-7" 42707 }; 42708 g6 = { 42709 class: "n-postcard__media-wrapper has-centered-child-lg" 42710 }; 42711 b6 = { 42712 class: "n-postcard__content-layer container" 42713 }; 42714 v6 = { 42715 class: "n-postcard__content-row row" 42716 }; 42717 y6 = { 42718 class: "n-postcard__col col-12 col-lg-8 offset-lg-4" 42719 }; 42720 _6 = { 42721 class: "n-postcard__content-wrapper is-bg-color-white has-no-margins-around is-clear-margin-vertical" 42722 }; 42723 function E6(e, t, n, i, a, r) { 42724 const s = j("Media"); 42725 return m(), x("div", { 42726 class: R([ 42727 "n-postcard container-bleed is-block-gapped", 42728 { 42729 "is-clear-margin-bottom": n.clearSpacingAfter 42730 } 42731 ]), 42732 "data-n-context": "n-postcard" 42733 }, [ 42734 O("div", f6, [ 42735 O("div", m6, [ 42736 O("div", h6, [ 42737 O("div", g6, [ 42738 K(s, { 42739 media: n.media, 42740 "zoom-on-scroll-into-view": !n.disableScrollAnimations, 42741 fit: "cover",
42742 class: "n-postcard__media" 42743 }, null, 8, [ 42744 "media", 42745 "zoom-on-scroll-into-view" 42746 ]) 42747 ]) 42748 ]) 42749 ]) 42750 ]), 42751 O("div", b6, [ 42752 O("div", v6, [ 42753 O("div", y6, [ 42754 O("div", _6, [ 42755 V(e.$slots, "default") 42756 ]) 42757 ]) 42758 ]) 42759 ]) 42760 ], 2); 42761 } 42762 let k6, C6, A6, S6, w6, L6, x6; 42763 ZU = te(p6, [ 42764 [ 42765 "render", 42766 E6 42767 ] 42768 ]); 42769 k6 = { 42770 name: "n-progress-bar", 42771 mixins: [ 42772 we, 42773 Ge 42774 ], 42775 props: { 42776 titleHeadingLevel: { 42777 ...we.titleHeadingLevel, 42778 default: 2 42779 }, 42780 titleStyle: { 42781 ...we.titleStyle, 42782 default: "h3" 42783 }, 42784 label: { 42785 type: String 42786 }, 42787 ariaLabel: { 42788 type: String 42789 }, 42790 hideStepCount: { 42791 type: Boolean 42792 }, 42793 max: { 42794 type: Number, 42795 default: 3, 42796 validator: (e) => e >= 0 42797 }, 42798 value: { 42799 type: Number, 42800 default: 1, 42801 validator: (e) => e >= 0 42802 } 42803 }, 42804 compatConfig: { 42805 MODE: 3 42806 } 42807 }; 42808 C6 = { 42809 class: "n-progress-bar container n:pb-0" 42810 }; 42811 A6 = { 42812 class: "row" 42813 }; 42814 S6 = { 42815 key: 0, 42816 class: "n-progress-bar__label-wrapper col-12" 42817 }; 42818 w6 = { 42819 key: 0 42820 }; 42821 L6 = { 42822 class: "col-12" 42823 }; 42824 x6 = [ 42825 "max", 42826 "value", 42827 "aria-label", 42828 "aria-hidden" 42829 ]; 42830 function O6(e, t, n, i, a, r) { 42831 return m(), x("div", C6, [ 42832 O("div", A6, [ 42833 n.label ? (m(), x("div", S6, [ 42834 (m(), U(ue(`h${n.titleHeadingLevel}`), { 42835 ref: "heading", 42836 class: R([ 42837 "n-progress__label n:w-full n:max-w-full", 42838 n.titleStyle 42839 ]) 42840 }, { 42841 default: I(() => [ 42842 n.hideStepCount ? M("", true) : (m(), x("span", w6, H(e.$t("progress.stepContext", [ 42843 n.value, 42844 n.max 42845 ])), 1)), 42846 re(" " + H(n.label), 1) 42847 ]), 42848 _: 1 42849 }, 8, [ 42850 "class" 42851 ])) 42852 ])) : M("", true), 42853 O("div", L6, [ 42854 n.value && n.max ? (m(), x("progress", { 42855 key: 0, 42856 max: n.max, 42857 value: n.value, 42858 "aria-label": n.ariaLabel, 42859 "aria-hidden": n.ariaLabel ? void 0 : "true", 42860 class: "print-none" 42861 }, null, 8, x6)) : M("", true) 42862 ]) 42863 ]) 42864 ]); 42865 } 42866 let $6, T6, I6, F6, N6, D6, P6, B6; 42867 e5 = te(k6, [ 42868 [ 42869 "render", 42870 O6 42871 ] 42872 ]); 42873 $6 = { 42874 name: "n-pull-quote", 42875 components: { 42876 NLink: at, 42877 Block: ft, 42878 SocialButtonGroupShare: YR 42879 }, 42880 mixins: [ 42881 Ge 42882 ], 42883 props: { 42884 quote: { 42885 type: String, 42886 default: "" 42887 }, 42888 markColor: { 42889 type: String, 42890 default: "text" 42891 }, 42892 markStyle: { 42893 type: String, 42894 default: "inline", 42895 validator: (e) => [ 42896 "inline", 42897 "above" 42898 ].includes(e) 42899 }, 42900 author: { 42901 type: String 42902 }, 42903 source: { 42904 type: Object, 42905 default: () => ({}) 42906 }, 42907 enableShareButtons: { 42908 type: Boolean, 42909 default: false 42910 } 42911 }, 42912 data() { 42913 return { 42914 shareConfig: { 42915 buttons: [ 42916 { 42917 label: this.$t("shareButton", [ 42918 "Facebook" 42919 ]), 42920 action: "shareOnFacebook", 42921 icon: "facebookFill", 42922 platform: "Facebook" 42923 }, 42924 { 42925 label: this.$t("shareButton", [ 42926 "Twitter" 42927 ]), 42928 action: "shareOnTwitter", 42929 icon: "twitter", 42930 platform: "Twitter" 42931 }, 42932 { 42933 label: this.$t("shareButton", [ 42934 "Linkedin" 42935 ]), 42936 action: "shareOnLinkedin", 42937 icon: "linkedinFill", 42938 platform: "Linkedin" 42939 } 42940 ] 42941 } 42942 }; 42943 }, 42944 computed: { 42945 slotContent() { 42946 return this.$slots.default && this.$slots.default()[0] ? this.$slots.default()[0].innerHTML : null; 42947 }, 42948 $quote() { 42949 return this.slotContent ? this.slotContent : this.quote ? this.quote : ""; 42950 } 42951 } 42952 }; 42953 T6 = { 42954 key: 0, 42955 class: "n-pull-quote__above-mark" 42956 }; 42957 I6 = { 42958 class: "h2" 42959 }; 42960 F6 = { 42961 key: 1, 42962 class: "n-pull-quote__citation has-no-margins-around" 42963 }; 42964 N6 = { 42965 key: 0, 42966 class: "n-pull-quote__author" 42967 }; 42968 D6 = { 42969 class: "n-pull-quote__source" 42970 }; 42971 P6 = { 42972 key: 0, 42973 class: "n-pull-quote__cite" 42974 }; 42975 B6 = { 42976 key: 0, 42977 class: "n-pull-quote__cta-wrapper" 42978 }; 42979 function M6(e, t, n, i, a, r) { 42980 const s = j("NLink"), o = j("SocialButtonGroupShare"); 42981 return m(), x("div", { 42982 class: R([ 42983 `n-pull-quote--${n.markStyle}`, 42984 "n-pull-quote" 42985 ]) 42986 }, [ 42987 (m(), U(ue(n.author || n.source ? "figure" : "div"), { 42988 class: "n-pull-quote__figure is-clear-margin-top" 42989 }, { 42990 default: I(() => [ 42991 n.markStyle === "above" ? (m(), x("span", T6)) : M("", true), 42992 O("blockquote", { 42993 class: R([ 42994 `is-color-${n.markColor}`, 42995 "n-pull-quote__quote has-no-margins-around is-clear-margin-top" 42996 ]) 42997 }, [ 42998 V(e.$slots, "text", {}, () => [ 42999 O("p", I6, H(r.$quote), 1) 43000 ]) 43001 ], 2), 43002 n.author || n.source.label ? (m(), x("figcaption", F6, [ 43003 n.author ? (m(), x("p", N6, H(n.author), 1)) : M("", true), 43004 O("p", D6, [ 43005 n.source.label ? (m(), x("cite", P6, [ 43006 n.source.href ? (m(), U(s, { 43007 key: 0, 43008 href: n.source.href, 43009 "link-type": n.source.linkType, 43010 class: "n-pull-quote__link" 43011 }, { 43012 default: I(() => [ 43013 re(H(n.source.label), 1) 43014 ]), 43015 _: 1 43016 }, 8, [ 43017 "href", 43018 "link-type" 43019 ])) : (m(), x(me, { 43020 key: 1 43021 }, [ 43022 re(H(n.source.label), 1) 43023 ], 64)) 43024 ])) : M("", true) 43025 ]) 43026 ])) : M("", true) 43027 ]), 43028 _: 3 43029 })), 43030 n.enableShareButtons ? (m(), x("div", B6, [ 43031 V(e.$slots, "cta", {}, () => [ 43032 K(o, fe(a.shareConfig, { 43033 "post-label": r.$quote, 43034 class: "is-clear-padding-horizontal is-full-width" 43035 }), null, 16, [ 43036 "post-label" 43037 ]) 43038 ]) 43039 ])) : M("", true) 43040 ], 2); 43041 } 43042 const mb = te($6, [ 43043 [ 43044 "render", 43045 M6 43046 ] 43047 ]), R6 = { 43048 name: "n-pull-quote-block-basic", 43049 compatConfig: { 43050 MODE: 3 43051 }, 43052 components: { 43053 Block: ft, 43054 PullQuote: mb 43055 }, 43056 mixins: [ 43057 Ge 43058 ], 43059 props: { 43060 quote: { 43061 type: String, 43062 default: "" 43063 }, 43064 author: { 43065 type: String 43066 }, 43067 source: { 43068 type: Object, 43069 default: () => ({}) 43070 }, 43071 background: { 43072 ...Se.background, 43073 validator: (e) => [ 43074 "transparent", 43075 "white", 43076 "bg", 43077 "bg-alt-1", 43078 "bg-alt-2" 43079 ].includes(e) 43080 }, 43081 disableShareButtons: { 43082 type: Boolean, 43083 default: false 43084 } 43085 }, 43086 data() { 43087 return { 43088 shareConfig: { 43089 buttons: [ 43090 { 43091 label: this.$t("shareButton", [ 43092 "Facebook" 43093 ]), 43094 action: "shareOnFacebook", 43095 icon: "facebookFill", 43096 platform: "Facebook" 43097 }, 43098 { 43099 label: this.$t("shareButton", [ 43100 "Twitter" 43101 ]), 43102 action: "shareOnTwitter", 43103 icon: "twitter", 43104 platform: "Twitter" 43105 }, 43106 { 43107 label: this.$t("shareButton", [ 43108 "Linkedin" 43109 ]), 43110 action: "shareOnLinkedin", 43111 icon: "linkedinFill", 43112 platform: "Linkedin" 43113 } 43114 ] 43115 } 43116 }; 43117 }, 43118 computed: {
43119 slotContent() { 43120 return this.$slots.default && this.$slots.default()[0] ? this.$slots.default()[0].innerHTML : null; 43121 }, 43122 $quote() { 43123 return this.slotContent ? this.slotContent : this.quote ? this.quote : ""; 43124 } 43125 } 43126 }, U6 = { 43127 class: "n-pull-quote-block__subgrid" 43128 }; 43129 function V6(e, t, n, i, a, r) { 43130 const s = j("PullQuote"), o = j("Block"); 43131 return m(), U(o, { 43132 class: "n-pull-quote-block", 43133 "clear-horizontal-on-transparent": "", 43134 "is-compressed": "" 43135 }, { 43136 default: I(() => [ 43137 K(o, { 43138 background: n.background, 43139 class: "n-pull-quote-block__block", 43140 "clear-spacing-after": "" 43141 }, { 43142 default: I(() => [ 43143 O("div", U6, [ 43144 K(s, { 43145 quote: n.quote, 43146 author: n.author, 43147 source: n.source, 43148 "enable-share-buttons": !n.disableShareButtons, 43149 "mark-color": "secondary", 43150 class: "is-clear-padding-vertical" 43151 }, { 43152 text: I(() => [ 43153 V(e.$slots, "default") 43154 ]), 43155 _: 3 43156 }, 8, [ 43157 "quote", 43158 "author", 43159 "source", 43160 "enable-share-buttons" 43161 ]) 43162 ]) 43163 ]), 43164 _: 3 43165 }, 8, [ 43166 "background" 43167 ]) 43168 ]), 43169 _: 3 43170 }); 43171 } 43172 let H6, j6, z6, W6, G6; 43173 t5 = te(R6, [ 43174 [ 43175 "render", 43176 V6 43177 ] 43178 ]); 43179 H6 = { 43180 name: "n-pull-quote-block-image", 43181 compatConfig: { 43182 MODE: 3 43183 }, 43184 components: { 43185 Block: ft, 43186 PullQuote: mb, 43187 Media: Vt 43188 }, 43189 mixins: [ 43190 Ge, 43191 bt 43192 ], 43193 props: { 43194 picture: { 43195 type: Object, 43196 default: () => ({}) 43197 }, 43198 media: { 43199 type: Object, 43200 default: () => ({}) 43201 }, 43202 picturePosition: { 43203 type: String, 43204 default: "left", 43205 validator: (e) => [ 43206 "left", 43207 "right" 43208 ].includes(e) 43209 }, 43210 quote: { 43211 type: String, 43212 default: "" 43213 }, 43214 author: { 43215 type: String 43216 }, 43217 source: { 43218 type: Object, 43219 default: () => ({}) 43220 }, 43221 background: { 43222 ...Se.background, 43223 default: "transparent", 43224 validator: (e) => [ 43225 "transparent", 43226 "white", 43227 "bg", 43228 "bg-alt-1", 43229 "bg-alt-2" 43230 ].includes(e) 43231 }, 43232 disableShareButtons: { 43233 type: Boolean, 43234 default: false 43235 } 43236 }, 43237 data() { 43238 return { 43239 defaultMediaProps: { 43240 sizes: { 43241 sm: "240px", 43242 lg: "271px" 43243 }, 43244 width: "640", 43245 height: "640" 43246 } 43247 }; 43248 }, 43249 computed: { 43250 imageWrapperClasses() { 43251 return this.background === "transparent" && this.picturePosition === "left" ? "n:px-0 n:md:pr-md" : this.background === "transparent" && this.picturePosition === "right" ? "n:px-0 n:md:pl-md" : "n:px-md n:sm:px-xl"; 43252 }, 43253 pullQuoteClasses() { 43254 return this.background === "transparent" && this.picturePosition === "left" ? "n:px-0 n:md:pl-md" : this.background === "transparent" && this.picturePosition === "right" ? "n:px-0 n:md:pr-md" : "n:px-md n:sm:px-xl"; 43255 } 43256 } 43257 }; 43258 j6 = { 43259 class: "n-pull-quote-block-image__row row" 43260 }; 43261 z6 = { 43262 class: "n-pull-quote-block-image__image-column col-6 col-md-4 has-vertically-centered-children" 43263 }; 43264 W6 = { 43265 class: "n-pull-quote-block-image__content-column col-12 col-md-8 has-vertically-centered-children" 43266 }; 43267 G6 = { 43268 class: "h3" 43269 }; 43270 function q6(e, t, n, i, a, r) { 43271 const s = j("Media"), o = j("PullQuote"), l = j("Block"); 43272 return m(), U(l, { 43273 class: R([ 43274 [ 43275 `n-pull-quote-block-image--${n.picturePosition}` 43276 ], 43277 "n-pull-quote-block-image" 43278 ]), 43279 "is-compressed": "" 43280 }, { 43281 default: I(() => { 43282 var u; 43283 return [ 43284 O("div", { 43285 class: R([ 43286 [ 43287 `is-bg-color-${n.background}` 43288 ], 43289 "container" 43290 ]) 43291 }, [ 43292 O("div", j6, [ 43293 O("div", z6, [ 43294 (u = n.media) != null && u.src ? (m(), x("div", { 43295 key: 0, 43296 class: R([ 43297 r.imageWrapperClasses, 43298 "n-pull-quote-block-image__image-wrapper" 43299 ]) 43300 }, [ 43301 K(s, { 43302 media: n.media, 43303 "media-type": "picture", 43304 "zoom-on-scroll-into-view": "" 43305 }, null, 8, [ 43306 "media" 43307 ]) 43308 ], 2)) : M("", true) 43309 ]), 43310 O("div", W6, [ 43311 K(o, { 43312 author: n.author, 43313 source: n.source, 43314 "enable-share-buttons": !n.disableShareButtons, 43315 class: R([ 43316 r.pullQuoteClasses, 43317 "n-pull-quote-block-image__blockquote n:pb-0 n:md:
43317pb-md n:sm:pt-xl" 43318 ]), 43319 "mark-color": "text", 43320 "mark-style": "above" 43321 }, { 43322 text: I(() => [ 43323 V(e.$slots, "default", {}, () => [ 43324 O("p", G6, H(n.quote), 1) 43325 ]) 43326 ]), 43327 _: 3 43328 }, 8, [ 43329 "author", 43330 "source", 43331 "enable-share-buttons", 43332 "class" 43333 ]) 43334 ]) 43335 ]) 43336 ], 2) 43337 ]; 43338 }), 43339 _: 3 43340 }, 8, [ 43341 "class" 43342 ]); 43343 } 43344 let Y6, K6; 43345 n5 = te(H6, [ 43346 [ 43347 "render", 43348 q6 43349 ] 43350 ]); 43351 Y6 = { 43352 name: "n-reveal-button", 43353 components: { 43354 NButton: ze, 43355 LinkIcon: Ut 43356 }, 43357 mixins: [ 43358 Lt, 43359 Ai 43360 ], 43361 props: { 43362 behaviour: { 43363 type: String, 43364 default: "toggle", 43365 validator: (e) => [ 43366 "toggle", 43367 "once" 43368 ].includes(e) 43369 }, 43370 buttonClass: { 43371 type: String, 43372 default: "" 43373 }, 43374 actionStyle: { 43375 type: String, 43376 default: "link", 43377 validator: (e) => [ 43378 "link", 43379 "button" 43380 ].includes(e) 43381 }, 43382 openLabel: { 43383 type: String, 43384 default: function() { 43385 return Ze.global.t("label.showMore"); 43386 } 43387 }, 43388 closeLabel: { 43389 type: String, 43390 default: function() { 43391 return Ze.global.t("label.showLess"); 43392 } 43393 }, 43394 inline: { 43395 type: Boolean 43396 }, 43397 open: { 43398 type: Boolean 43399 }, 43400 srDescription: { 43401 type: String 43402 } 43403 }, 43404 emits: [ 43405 "update:open" 43406 ], 43407 computed: { 43408 buttonLabel() { 43409 return this.open ? this.closeLabel : this.openLabel; 43410 }, 43411 icon() { 43412 return this.behaviour === "once" ? null : this.inline ? this.open ? "chevronLeft" : "chevronRight" : this.open ? "chevronUp" : "chevron"; 43413 } 43414 }, 43415 methods: { 43416 toggle() { 43417 this.nestEvents_emit(this.EVENT_TYPES.TOGGLE, { 43418 textContent: this.buttonLabel 43419 }), this.dispatchNestEvent({ 43420 action: this.open ? "hide" : "show", 43421 component: "reveal", 43422 category: "disclosure", 43423 name: this.buttonLabel 43424 }), this.$emit("update:open", !this.open); 43425 } 43426 }, 43427 compatConfig: { 43428 MODE: 3 43429 } 43430 }; 43431 K6 = { 43432 key: 0, 43433 class: "is-sr-only" 43434 }; 43435 function X6(e, t, n, i, a, r) { 43436 return n.behaviour === "once" && n.open ? M("", true) : (m(), U(ue(n.actionStyle === "button" ? "NButton" : "LinkIcon"), { 43437 key: 0, 43438 icon: r.icon, 43439 "aria-expanded": n.open ? "true" : "false", 43440 class: R([ 43441 n.buttonClass, 43442 "n-reveal__button" 43443 ]), 43444 onClick: r.toggle 43445 }, { 43446 default: I(() => [ 43447 re(H(r.buttonLabel), 1), 43448 n.srDescription ? (m(), x("span", K6, H(" " + n.srDescription), 1)) : M("", true) 43449 ]), 43450 _: 1 43451 }, 8, [ 43452 "icon", 43453 "aria-expanded", 43454 "class", 43455 "onClick" 43456 ])); 43457 } 43458 let J6; 43459 xr = te(Y6, [ 43460 [ 43461 "render", 43462 X6 43463 ] 43464 ]); 43465 J6 = { 43466 name: "n-reveal", 43467 components: { 43468 RevealButton: xr 43469 }, 43470 mixins: [ 43471 Ge, 43472 nt 43473 ], 43474 props: { 43475 actionStyle: xr.props.actionStyle, 43476 buttonClass: xr.props.buttonClass, 43477 behaviour: xr.props.behaviour, 43478 openLabel: xr.props.openLabel, 43479 closeLabel: xr.props.closeLabel, 43480 srDescription: xr.props.srDescription, 43481 align: { 43482 type: String, 43483 default: "auto", 43484 validator: (e) => [ 43485 "auto", 43486 "left", 43487 "center", 43488 "right" 43489 ].includes(e) 43490 }, 43491 noAnimation: { 43492 type: Boolean 43493 }, 43494 inline: { 43495 type: Boolean 43496 }, 43497 inlineBlock: { 43498 type: Boolean 43499 }, 43500 buttonPosition: { 43501 type: String, 43502 default: "bottom", 43503 validator(e) { 43504 return [ 43505 "top", 43506 "bottom" 43507 ].includes(e); 43508 } 43509 } 43510 }, 43511 data() { 43512 return { 43513 open: false 43514 }; 43515 }, 43516 computed: { 43517 tag() { 43518 return this.inline || this.inlineBlock ? "span" : "div"; 43519 }, 43520 willAnimate() {
43521 return !(this.inline || this.noAnimation); 43522 }, 43523 transition() { 43524 return this.willAnimate ? Ea : "span"; 43525 }, 43526 transitionProps() { 43527 return this.willAnimate ? { 43528 duration: 800, 43529 name: "expand" 43530 } : null; 43531 }, 43532 buttonProps() { 43533 return { 43534 actionStyle: this.actionStyle, 43535 buttonClass: this.buttonClass, 43536 behaviour: this.behaviour, 43537 openLabel: this.openLabel, 43538 closeLabel: this.closeLabel, 43539 inline: this.inline, 43540 srDescription: this.srDescription 43541 }; 43542 } 43543 } 43544 }; 43545 function Q6(e, t, n, i, a, r) { 43546 const s = j("RevealButton"); 43547 return m(), U(ue(r.tag), { 43548 id: e.id, 43549 class: R([ 43550 [ 43551 `n-reveal--${n.align}-aligned`, 43552 { 43553 "n-reveal--inline": n.inline, 43554 "n-reveal--inline-block": n.inlineBlock, 43555 "n-reveal--animate": r.willAnimate 43556 } 43557 ], 43558 "n-reveal container" 43559 ]), 43560 "data-n-context": "n-reveal" 43561 }, { 43562 default: I(() => [ 43563 !(n.behaviour === "once" && a.open) && n.buttonPosition === "top" ? (m(), U(ue(r.tag), { 43564 key: 0, 43565 class: "n-reveal__button-wrapper n:mb-md" 43566 }, { 43567 default: I(() => [ 43568 K(s, fe(r.buttonProps, { 43569 open: a.open, 43570 "onUpdate:open": t[0] || (t[0] = (o) => a.open = o), 43571 "aria-controls": `${e.id}-content` 43572 }), null, 16, [ 43573 "open", 43574 "aria-controls" 43575 ]) 43576 ]), 43577 _: 1 43578 })) : M("", true), 43579 (m(), U(ue(r.transition), Pt(Bt(r.transitionProps)), { 43580 default: I(() => [ 43581 Je((m(), U(ue(r.tag), { 43582 id: `${e.id}-content`, 43583 "aria-hidden": a.open ? "false" : "true", 43584 class: R([ 43585 [ 43586 { 43587 "n-reveal__content-wrapper--open": a.open 43588 } 43589 ], 43590 "n-reveal__content-wrapper" 43591 ]) 43592 }, { 43593 default: I(() => [ 43594 V(e.$slots, "default") 43595 ]), 43596 _: 3 43597 }, 8, [ 43598 "id", 43599 "aria-hidden", 43600 "class" 43601 ])), [ 43602 [ 43603 pt, 43604 a.open 43605 ] 43606 ]) 43607 ]), 43608 _: 3 43609 }, 16)), 43610 !(n.behaviour === "once" && a.open) && n.buttonPosition === "bottom" ? (m(), U(ue(r.tag), { 43611 key: 1, 43612 class: "n-reveal__button-wrapper" 43613 }, { 43614 default: I(() => [ 43615 K(s, fe(r.buttonProps, { 43616 open: a.open, 43617 "onUpdate:open": t[1] || (t[1] = (o) => a.open = o), 43618 "aria-controls": `${e.id}-content` 43619 }), null, 16, [ 43620 "open", 43621 "aria-controls" 43622 ]) 43623 ]), 43624 _: 1 43625 })) : M("", true) 43626 ]), 43627 _: 3 43628 }, 8, [ 43629 "id", 43630 "class" 43631 ]); 43632 } 43633 let e7, t7, n7; 43634 Z6 = te(J6, [ 43635 [ 43636 "render", 43637 Q6 43638 ] 43639 ]); 43640 e7 = { 43641 name: "n-secondary-nav-bar", 43642 components: { 43643 Block: ft, 43644 NavLink: ou, 43645 NavLinkStacked: Rr, 43646 Dropdown: NR 43647 }, 43648 mixins: [ 43649 ur 43650 ], 43651 props: { 43652 links: { 43653 type: Array, 43654 default: () => [] 43655 }, 43656 clearSpacingAfter: { 43657 type: Boolean, 43658 default: false 43659 }, 43660 disableActiveDetection: { 43661 type: Boolean, 43662 default: false 43663 } 43664 }, 43665 computed: { 43666 linksWithCurrent() { 43667 return this.disableActiveDetection ? this.links : this.setCurrentLinks(this.links).map((e) => ({ 43668 ...e, 43669 url: e.href 43670 })); 43671 }, 43672 currentPage() { 43673 return this.linksWithCurrent.find((e) => e.isCurrent); 43674 } 43675 }, 43676 compatConfig: { 43677 MODE: 3 43678 } 43679 }; 43680 t7 = [ 43681 "aria-label" 43682 ]; 43683 n7 = { 43684 class: "n-secondary-nav-bar__list n-unordered-list--unstyled is-hidden-sm-down" 43685 }; 43686 function r7(e, t, n, i, a, r) { 43687 const s = j("Dropdown"), o = j("NavLink"), l = j("NavLinkStacked"), u = j("Block"); 43688 return m(), x("nav", { 43689 "aria-label": e.$attrs.ariaLabel || e.$t("secondary"), 43690 class: R([ 43691 { 43692 "is-clear-margin-bottom": n.clearSpacingAfter 43693 }, 43694 "n-secondary-nav-bar is-bg-color-white" 43695 ]) 43696 }, [ 43697 K(u, { 43698 "clear-spacing-after": "", 43699 class: "n-secondary-nav-bar__block" 43700 }, { 43701 default: I(() => [ 43702 K(s, { 43703 label: r.currentPage && r.currentPage.label ? r.currentPage.label : void 0, 43704 items: r.linksWithCurrent, 43705 class: "n:max-w-full is-hidden-md-up" 43706 }, null, 8, [ 43707 "label", 43708 "items" 43709 ]), 43710 O("ul", n7, [ 43711 (m(true), x(me, null, ve(r.linksWithCurrent, (c, d) => (m(), x("li", { 43712 key: d, 43713 class: "n-secondary-nav-bar__list-item" 43714 }, [ 43715 K(o, { 43716 href: c.href, 43717 "link-type": c.linkType, 43718 class: R([ 43719 "n-secondary-nav-bar__link is-hidden-sm-down", 43720 { 43721 "is-active": c.isCurrent 43722 } 43723 ]), 43724 "aria-current": c.isCurrent ? "page" : void 0 43725 }, { 43726 default: I(() => [ 43727 re(H(c.label), 1) 43728 ]), 43729 _: 2 43730 }, 1032, [ 43731 "href", 43732 "link-type", 43733 "class", 43734 "aria-current" 43735 ]), 43736 K(l, { 43737 href: c.href, 43738 "link-type": c.linkType, 43739 class: R([ 43740 { 43741 "is-active": c.isCurrent 43742 }, 43743 "n-secondary-nav-bar__link is-hidden-md-up" 43744 ]), 43745 "aria-current": c.isCurrent ? "page" : void 0, 43746 onClick: (p) => e.nestEvents_emit(e.EVENT_TYPES.CLICK, { 43747 textContent: c.label, 43748 url: c.href 43749 }) 43750 }, { 43751 default: I(() => [ 43752 re(H(c.label), 1) 43753 ]), 43754 _: 2 43755 }, 1032, [ 43756 "href", 43757 "link-type", 43758 "class", 43759 "aria-current", 43760 "onClick" 43761 ]) 43762 ]))), 128)) 43763 ]) 43764 ]), 43765 _: 1 43766 }) 43767 ], 10, t7); 43768 } 43769 let gi, i7, a7, s7; 43770 r5 = te(e7, [ 43771 [ 43772 "render", 43773 r7 43774 ] 43775 ]); 43776 gi = { 43777 mixins: [ 43778 bt 43779 ], 43780 props: { 43781 ...we, 43782 items: { 43783 type: Array, 43784 validator: (e) => e.filter((t) => ({}).hasOwnProperty.call(t, "title") && {}.hasOwnProperty.call(t, "url") && {}.hasOwnProperty.call(t, "label")).length === e.length 43785 } 43786 }, 43787 computed: { 43788 $items() { 43789 if (this.items) return this.items.map((e) => (!e.linkType && e.url && (e.linkType = Ji(e.url)), e.url && (e.is = [ 43790 "default", 43791 "hash", 43792 "internal" 43793 ].includes(e.linkType) ? "LinkIcon" : "NLink"), e.links && (e.links = e.links.map((t) => (!t.linkType && t.url && (t.linkType = Ji(t.url)), t.url && (t.is = [ 43794 "default", 43795 "hash", 43796 "internal" 43797 ].includes(t.linkType) ? "LinkIcon" : "NLink"), t))), e)); 43798 } 43799 } 43800 }; 43801 i7 = { 43802 name: "n-spotlight-basic", 43803 compatConfig: { 43804 MODE: 3 43805 }, 43806 components: { 43807 NLink: at, 43808 LinkIcon: Ut, 43809 Block: ft, 43810 NPicture: jn 43811 }, 43812 mixins: [ 43813 gi 43814 ], 43815 props: { 43816 titleStyle: { 43817 ...we.titleStyle, 43818 default: "h2" 43819 }, 43820 clearSpacingAfter: { 43821 ...Se.clearSpacingAfter 43822 } 43823 } 43824 }; 43825 a7 = { 43826 class: "row" 43827 }; 43828 s7 = { 43829 key: 2 43830 }; 43831 function o7(e, t, n, i, a, r) { 43832 const s = j("NPicture"), o = j("Block"); 43833 return m(), U(o, { 43834 class: R([ 43835 [ 43836 { 43837 "is-clear-margin-bottom": n.clearSpacingAfter 43838 } 43839 ], 43840 "n-spotlight n-spotlight--basic" 43841 ]), 43842 "container-size": "compressed", 43843 "events-context": "n-spotlight" 43844 }, {
43845 default: I(() => [ 43846 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 43847 key: 0, 43848 class: R([ 43849 [ 43850 `${n.titleStyle}` 43851 ], 43852 "is-clear-margin-top" 43853 ]) 43854 }, { 43855 default: I(() => [ 43856 re(H(e.title), 1) 43857 ]), 43858 _: 1 43859 }, 8, [ 43860 "class" 43861 ])) : M("", true), 43862 V(e.$slots, "text"), 43863 O("div", a7, [ 43864 (m(true), x(me, null, ve(e.$items, (l, u) => (m(), x("div", { 43865 key: u, 43866 class: "n-spotlight__item col-12 col-md-4 no-break-print" 43867 }, [ 43868 l.media ? (m(), U(s, fe({ 43869 key: 0, 43870 ref_for: true 43871 }, e.mediaProps(l.media), { 43872 class: "n-spotlight__item-icon n-icon n-icon--size-32" 43873 }), null, 16)) : M("", true), 43874 l.title ? (m(), U(ue(`h${e.titleHeadingLevel + 1}`), { 43875 key: 1, 43876 class: "h4 n-spotlight__item-title" 43877 }, { 43878 default: I(() => [ 43879 re(H(l.title), 1) 43880 ]), 43881 _: 2 43882 }, 1024)) : M("", true), 43883 l.text ? (m(), x("p", s7, H(l.text), 1)) : M("", true), 43884 l.url ? (m(), U(ue(l.is), { 43885 key: 3, 43886 class: R({ 43887 "n-link-cta": l.is === "NLink" 43888 }), 43889 href: l.url, 43890 "link-type": l.linkType 43891 }, { 43892 default: I(() => [ 43893 re(H(l.label), 1) 43894 ]), 43895 _: 2 43896 }, 1032, [ 43897 "class", 43898 "href", 43899 "link-type" 43900 ])) : M("", true) 43901 ]))), 128)) 43902 ]) 43903 ]), 43904 _: 3 43905 }, 8, [ 43906 "class" 43907 ]); 43908 } 43909 let l7, u7, c7, d7; 43910 i5 = te(i7, [ 43911 [ 43912 "render", 43913 o7 43914 ] 43915 ]); 43916 l7 = { 43917 name: "n-spotlight-points", 43918 compatConfig: { 43919 MODE: 3 43920 }, 43921 components: { 43922 NLink: at, 43923 LinkIcon: Ut, 43924 Block: ft 43925 }, 43926 mixins: [ 43927 gi 43928 ], 43929 props: { 43930 items: { 43931 validator: (e) => e.filter((t) => ({}).hasOwnProperty.call(t, "links")).length === e.length 43932 }, 43933 clearSpacingAfter: { 43934 ...Se.clearSpacingAfter 43935 } 43936 } 43937 }; 43938 u7 = { 43939 class: "n-spotlight__description has-intro-text" 43940 }; 43941 c7 = { 43942 key: 1, 43943 class: "n-spotlight__point-text" 43944 }; 43945 d7 = { 43946 key: 2, 43947 class: "row has-vertical-dividers-md" 43948 }; 43949 function p7(e, t, n, i, a, r) { 43950 const s = j("Block"); 43951 return m(), U(s, { 43952 class: R([ 43953 [ 43954 { 43955 "is-clear-margin-bottom": n.clearSpacingAfter 43956 } 43957 ], 43958 "n-spotlight n-spotlight--points" 43959 ]), 43960 "container-size": "compressed", 43961 "events-context": "n-spotlight-points" 43962 }, { 43963 default: I(() => [ 43964 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 43965 key: 0, 43966 class: R([ 43967 [ 43968 `${e.titleStyle}` 43969 ], 43970 "is-clear-margin-top" 43971 ]) 43972 }, { 43973 default: I(() => [ 43974 re(H(e.title), 1) 43975 ]), 43976 _: 1 43977 }, 8, [ 43978 "class" 43979 ])) : M("", true), 43980 O("div", u7, [ 43981 V(e.$slots, "default") 43982 ]), 43983 (m(true), x(me, null, ve(e.$items, (o, l) => (m(), x("div", { 43984 key: l, 43985 class: "n-spotlight__point" 43986 }, [ 43987 o.title ? (m(), U(ue(`h${e.titleHeadingLevel + 1}`), { 43988 key: 0, 43989 class: "h3 n-spotlight__point-title" 43990 }, { 43991 default: I(() => [ 43992 re(H(o.title), 1) 43993 ]), 43994 _: 2 43995 }, 1024)) : M("", true), 43996 o.text ? (m(), x("p", c7, H(o.text), 1)) : M("", true), 43997 o.links ? (m(), x("div", d7, [ 43998 (m(true), x(me, null, ve(o.links, (u, c) => (m(), x("div", { 43999 key: c, 44000 class: "n-spotlight__point-link col-md-4" 44001 }, [ 44002 u.url ? (m(), U(ue(u.is), { 44003 key: 0, 44004 class: R({ 44005 "n-link-cta": u.is === "NLink" 44006 }), 44007 href: u.url, 44008 "link-type": u.linkType 44009 }, { 44010 default: I(() => [ 44011 re(H(u.label), 1) 44012 ]), 44013 _: 2 44014 }, 1032, [ 44015 "class", 44016 "href", 44017 "link-type" 44018 ])) : M("", true) 44019 ]))), 128)) 44020 ])) : M("", true) 44021 ]))), 128)) 44022 ]), 44023 _: 3 44024 }, 8, [ 44025 "class" 44026 ]); 44027 } 44028 let f7, m7, h7, g7, b7, v7, y7, _7; 44029 a5 = te(l7, [ 44030 [ 44031 "render", 44032 p7 44033 ] 44034 ]); 44035 f7 = { 44036 name: "n-spotlight-hybrid", 44037 compatConfig: { 44038 MODE: 3 44039 }, 44040 components: { 44041 NButton: ze, 44042 NLink: at, 44043 LinkIcon: Ut 44044 }, 44045 mixins: [ 44046 gi, 44047 Ge 44048 ], 44049 props: { 44050 ...we, 44051 buttonFormat: { 44052 default: "secondary", 44053 type: String 44054 }, 44055 background: { 44056 ...Se.background, 44057 validator: (e) => [ 44058 "transparent", 44059 "white", 44060 "bg" 44061 ].includes(e) 44062 }, 44063 items: { 44064 type: Array 44065 }, 44066 clearSpacingAfter: Se.clearSpacingAfter 44067 }, 44068 computed: { 44069 splitItems() { 44070 return [ 44071 [ 44072 this.$items[0] 44073 ], 44074 this.$items.slice(1) 44075 ]; 44076 } 44077 } 44078 }; 44079 m7 = { 44080 class: "row" 44081 }; 44082 h7 = { 44083 class: "col-12" 44084 }; 44085 g7 = { 44086 class: "row" 44087 }; 44088 b7 = { 44089 class: "col-12 col-xl-10 offset-xl-1" 44090 };
44091 v7 = { 44092 key: 1 44093 }; 44094 y7 = { 44095 class: "col-12 col-sm-6" 44096 }; 44097 _7 = { 44098 key: 1 44099 }; 44100 function E7(e, t, n, i, a, r) { 44101 const s = j("NButton"); 44102 return m(), x("div", { 44103 class: R([ 44104 [ 44105 `is-bg-color-${n.background}-escaped`, 44106 { 44107 "is-clear-margin-bottom": n.clearSpacingAfter 44108 } 44109 ], 44110 "n-spotlight n-spotlight--hybrid container is-block-gapped" 44111 ]), 44112 "data-n-context": "n-spotlight-hybrid" 44113 }, [ 44114 O("div", m7, [ 44115 O("div", h7, [ 44116 O("div", { 44117 class: R([ 44118 [ 44119 `is-bg-color-${n.background}`, 44120 `${n.background === "transparent" ? "is-clear-padding-vertical" : ""}` 44121 ], 44122 "n-spotlight__wrapper" 44123 ]) 44124 }, [ 44125 O("div", g7, [ 44126 O("div", b7, [ 44127 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 44128 key: 0, 44129 class: R([ 44130 [ 44131 `${e.titleStyle}` 44132 ], 44133 "is-clear-margin-top" 44134 ]) 44135 }, { 44136 default: I(() => [ 44137 re(H(e.title), 1) 44138 ]), 44139 _: 1 44140 }, 8, [ 44141 "class" 44142 ])) : M("", true), 44143 V(e.$slots, "default"), 44144 O("div", { 44145 class: R([ 44146 { 44147 "has-horizontal-dividers has-vertical-dividers-sm": r.splitItems[1].length 44148 }, 44149 "n-spotlight__list-wrapper row no-break-print" 44150 ]) 44151 }, [ 44152 O("div", { 44153 class: R([ 44154 { 44155 "col-sm-6": r.splitItems[1].length 44156 }, 44157 "col-12" 44158 ]) 44159 }, [ 44160 (m(true), x(me, null, ve(r.splitItems[0], (o, l) => (m(), x("div", { 44161 key: l, 44162 class: "n-spotlight__featured-item" 44163 }, [ 44164 o.title ? (m(), U(ue(`h${e.titleHeadingLevel + 1}`), { 44165 key: 0, 44166 class: "h2" 44167 }, { 44168 default: I(() => [ 44169 re(H(o.title), 1) 44170 ]), 44171 _: 2 44172 }, 1024)) : M("", true), 44173 o.text ? (m(), x("p", v7, H(o.text), 1)) : M("", true), 44174 o.label && o.url ? (m(), U(s, { 44175 key: 2, 44176 "link-type": o.linkType || "auto-detect", 44177 format: n.buttonFormat, 44178 href: o.url, 44179 class: "n-spotlight__button" 44180 }, { 44181 default: I(() => [ 44182 re(H(o.label), 1) 44183 ]), 44184 _: 2 44185 }, 1032, [ 44186 "link-type", 44187 "format", 44188 "href" 44189 ])) : M("", true) 44190 ]))), 128)) 44191 ], 2), 44192 O("div", y7, [ 44193 (m(true), x(me, null, ve(r.splitItems[1], (o, l) => (m(), x("div", { 44194 key: l, 44195 class: "n-spotlight__item has-no-margins-around" 44196 }, [ 44197 o.title ? (m(), U(ue(`h${e.titleHeadingLevel + 1}`), { 44198 key: 0, 44199 class: "h4" 44200 }, { 44201 default: I(() => [ 44202 re(H(o.title), 1) 44203 ]), 44204 _: 2 44205 }, 1024)) : M("", true), 44206 o.text ? (m(), x("p", _7, H(o.text), 1)) : M("", true), 44207 o.url ? (m(), U(ue(o.is), { 44208 key: 2, 44209 class: R({ 44210 "n-link-cta": o.is === "NLink" 44211 }), 44212 "link-type": o.linkType, 44213 href: o.url 44214 }, { 44215 default: I(() => [ 44216 re(H(o.label || e.$t("label.learnMore")), 1
44216) 44217 ]), 44218 _: 2 44219 }, 1032, [ 44220 "class", 44221 "link-type", 44222 "href" 44223 ])) : M("", true) 44224 ]))), 128)) 44225 ]) 44226 ], 2) 44227 ]) 44228 ]) 44229 ], 2) 44230 ]) 44231 ]) 44232 ], 2); 44233 } 44234 let k7, C7, A7, S7, w7; 44235 s5 = te(f7, [ 44236 [ 44237 "render", 44238 E7 44239 ] 44240 ]); 44241 k7 = { 44242 name: "n-spotlight-showcase", 44243 compatConfig: { 44244 MODE: 3 44245 }, 44246 components: { 44247 Block: ft, 44248 Media: Vt, 44249 NPicture: jn, 44250 NLink: at, 44251 LinkIcon: Ut 44252 }, 44253 mixins: [ 44254 gi 44255 ], 44256 props: { 44257 showEndDivider: { 44258 type: Boolean, 44259 default: false 44260 }, 44261 clearSpacingAfter: { 44262 ...Se.clearSpacingAfter 44263 } 44264 }, 44265 data() { 44266 return { 44267 defaultMediaProps: { 44268 sizes: { 44269 xs: "100vw", 44270 sm: "508px", 44271 md: "688px", 44272 lg: "928px" 44273 } 44274 } 44275 }; 44276 } 44277 }; 44278 C7 = { 44279 key: 0, 44280 class: "n-spotlight__media-container" 44281 }; 44282 A7 = { 44283 class: "has-intro-text" 44284 }; 44285 S7 = { 44286 class: "row" 44287 }; 44288 w7 = { 44289 key: 2 44290 }; 44291 function L7(e, t, n, i, a, r) { 44292 const s = j("Media"), o = j("NPicture"), l = j("Block"); 44293 return m(), U(l, { 44294 class: R([ 44295 [ 44296 { 44297 "is-clear-margin-bottom": n.clearSpacingAfter 44298 } 44299 ], 44300 "n-spotlight n-spotlight--showcase" 44301 ]), 44302 "container-size": "compressed", 44303 "events-context": "n-spotlight-showcase" 44304 }, { 44305 default: I(() => [ 44306 O("div", { 44307 class: R({ 44308 "is-dividing-line-end": n.showEndDivider 44309 }) 44310 }, [ 44311 e.media ? (m(), x("div", C7, [ 44312 V(e.$slots, "media", {}, () => [ 44313 K(s, { 44314 media: e.mediaProps(e.media), 44315 class: "n-spotlight__img", 44316 "zoom-on-scroll-into-view": "" 44317 }, null, 8, [ 44318 "media" 44319 ]) 44320 ]) 44321 ])) : M("", true), 44322 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 44323 key: 1, 44324 class: R([ 44325 [ 44326 `${e.titleStyle}` 44327 ], 44328 "is-clear-margin-top" 44329 ]) 44330 }, { 44331 default: I(() => [ 44332 re(H(e.title), 1) 44333 ]), 44334 _: 1 44335 }, 8, [ 44336 "class" 44337 ])) : M("", true), 44338 O("div", A7, [ 44339 V(e.$slots, "text") 44340 ]), 44341 O("div", S7, [ 44342 (m(true), x(me, null, ve(e.$items, (u, c) => (m(), x("div", { 44343 key: c, 44344 class: "n-spotlight__item col-12 col-md-6 no-break-print" 44345 }, [ 44346 u.media ? (m(), U(o, fe({ 44347 key: 0, 44348 ref_for: true 44349 }, e.mediaProps(u.media), { 44350 class: "n-spotlight__item-icon" 44351 }), null, 16)) : M("", true), 44352 u.title ? (m(), U(ue(`h${e.titleHeadingLevel + 1}`), { 44353 key: 1, 44354 class: "h4 n-spotlight__item-title" 44355 }, { 44356 default: I(() => [ 44357 re(H(u.title), 1) 44358 ]), 44359 _: 2 44360 }, 1024)) : M("", true), 44361 u.text ? (m(), x("p", w7, H(u.text), 1)) : M("", true), 44362 u.url ? (m(), U(ue(u.is), { 44363 key: 3, 44364 class: R({ 44365 "n-link-cta": u.is === "NLink" 44366 }), 44367 href: u.url, 44368 "link-type": u.linkType, 44369 "data-n-name": `${c} - ${u.title}` 44370 }, { 44371 default: I(() => [ 44372 re(H(u.label), 1) 44373 ]), 44374 _: 2 44375 }, 1032, [ 44376 "class", 44377 "href", 44378 "link-type", 44379 "data-n-name" 44380 ])) : M("", true) 44381 ]))), 128)) 44382 ]) 44383 ], 2) 44384 ]), 44385 _: 3 44386 }, 8, [ 44387 "class" 44388 ]); 44389 } 44390 let x7, O7, $7, T7, I7, F7, N7, D7; 44391 o5 = te(k7, [ 44392 [ 44393 "render", 44394 L7 44395 ] 44396 ]); 44397 x7 = { 44398 name: "n-spotlight-showcase", 44399 compatConfig: { 44400 MODE: 3 44401 }, 44402 components: { 44403 Block: ft, 44404 Media: Vt, 44405 NLink: at, 44406 LinkIcon: Ut 44407 }, 44408 mixins: [ 44409 gi 44410 ], 44411 props: { 44412 titleStyle: { 44413 type: String, 44414 ...gi.props.titleStyle, 44415 default: "h2" 44416 }, 44417 showEndDivider: { 44418 type: Boolean, 44419 default: false 44420 }, 44421 clearSpacingAfter: Se.clearSpacingAfter 44422 }, 44423 data() { 44424 return { 44425 defaultMediaProps: { 44426 sizes: { 44427 xs: "100vw", 44428 lg: "352px", 44429 xl: "428px" 44430 } 44431 } 44432 }; 44433 } 44434 }; 44435 O7 = { 44436 class: "row" 44437 }; 44438 $7 = { 44439 key: 0, 44440 class: "n-spotlight__media-col col-md-9 col-lg-5" 44441 }; 44442 T7 = { 44443 class: "n-spotlight__media-container" 44444 }; 44445 I7 = { 44446 class: "n-spotlight__content-col col-12 col-lg-7" 44447 }; 44448 F7 = { 44449 key: 1, 44450 class: "has-intro-text" 44451 }; 44452 N7 = { 44453 class: "row" 44454 }; 44455 D7 = [ 44456 "innerHTML" 44457 ]; 44458 function P7(e, t, n, i, a, r) { 44459 const s = j("Media"), o = j("Block"); 44460 return m(), U(o, { 44461 class: R([ 44462 [ 44463 { 44464 "is-clear-margin-bottom": n.clearSpacingAfter 44465 } 44466 ], 44467 "n-spotlight n-spotlight--showcase-inline" 44468 ]), 44469 "events-context": "n-spotlight-inline" 44470 }, {
44471 default: I(() => [ 44472 O("div", { 44473 class: R([ 44474 { 44475 "is-dividing-line-end": n.showEndDivider 44476 }, 44477 "container" 44478 ]) 44479 }, [ 44480 O("div", O7, [ 44481 e.media ? (m(), x("div", $7, [ 44482 O("div", T7, [ 44483 V(e.$slots, "media", {}, () => [ 44484 K(s, { 44485 media: e.mediaProps(e.media), 44486 class: "n-spotlight__img", 44487 "zoom-on-scroll-into-view": "" 44488 }, null, 8, [ 44489 "media" 44490 ]) 44491 ]) 44492 ]) 44493 ])) : M("", true), 44494 O("div", I7, [ 44495 e.title ? (m(), U(ue(`h${e.titleHeadingLevel}`), { 44496 key: 0, 44497 class: R([ 44498 [ 44499 `${n.titleStyle}` 44500 ], 44501 "is-clear-margin-top" 44502 ]) 44503 }, { 44504 default: I(() => [ 44505 re(H(e.title), 1) 44506 ]), 44507 _: 1 44508 }, 8, [ 44509 "class" 44510 ])) : M("", true), 44511 e.$slots.text ? (m(), x("div", F7, [ 44512 V(e.$slots, "text") 44513 ])) : M("", true), 44514 O("div", N7, [ 44515 (m(true), x(me, null, ve(e.$items, (l, u) => (m(), x("div", { 44516 key: u, 44517 class: "n-spotlight__item col-12 col-md-6 no-break-print" 44518 }, [ 44519 l.title ? (m(), U(ue(`h${e.titleHeadingLevel + 1}`), { 44520 key: 0, 44521 class: "h4 n-spotlight__item-title" 44522 }, { 44523 default: I(() => [ 44524 re(H(l.title), 1) 44525 ]), 44526 _: 2 44527 }, 1024)) : M("", true), 44528 O("div", { 44529 innerHTML: l.html 44530 }, null, 8, D7), 44531 l.url ? (m(), U(ue(l.is), { 44532 key: 1, 44533 class: R([ 44534 { 44535 "n-link-cta": l.is === "NLink" 44536 }, 44537 "n-spotlight__item-link" 44538 ]), 44539 href: l.url, 44540 "link-type": l.linkType 44541 }, { 44542 default: I(() => [ 44543 re(H(l.label), 1) 44544 ]), 44545 _: 2 44546 }, 1032, [ 44547 "class", 44548 "href", 44549 "link-type" 44550 ])) : M("", true) 44551 ]))), 128)) 44552 ]) 44553 ]) 44554 ]) 44555 ], 2) 44556 ]), 44557 _: 3 44558 }, 8, [ 44559 "class" 44560 ]); 44561 } 44562 let B7, M7, R7, U7, V7; 44563 l5 = te(x7, [ 44564 [ 44565 "render", 44566 P7 44567 ] 44568 ]); 44569 B7 = { 44570 name: "n-tab-item", 44571 inject: [ 44572 "id", 44573 "registerTab", 44574 "activeTab" 44575 ], 44576 props: { 44577 name: { 44578 type: String, 44579 required: true 44580 }, 44581 disableTabFocus: { 44582 type: Boolean, 44583 default: false 44584 } 44585 }, 44586 data() { 44587 return { 44588 displayTabPanel: false 44589 }; 44590 }, 44591 watch: { 44592 "activeTab.value": { 44593 handler: function(e) { 44594 this.displayTabPanel = (this == null ? void 0 : this.name) === e; 44595 }, 44596 immediate: true 44597 } 44598 }, 44599 mounted() { 44600 this.registerTab(this.name); 44601 }, 44602 methods: { 44603 tabNameId(e) { 44604 return e.replaceAll(" ", "-").toLowerCase(); 44605 } 44606 } 44607 }; 44608 M7 = [ 44609 "id", 44610 "aria-labelledby" 44611 ]; 44612 R7 = [ 44613 "tabindex" 44614 ]; 44615 U7 = { 44616 class: "container is-hidden-screen" 44617 }; 44618 V7 = { 44619 class: "h4" 44620 }; 44621 function H7(e, t, n, i, a, r) { 44622 return m(), x("div", { 44623 id: `${r.id}-panel-${r.tabNameId(n.name)}`, 44624 "aria-labelledby": `${r.id}-tab-${r.tabNameId(n.name)}`, 44625 role: "tabpanel" 44626 }, [ 44627 a.displayTabPanel ? (m(), x("div", { 44628 key: 0, 44629 class: R([ 44630 [ 44631 { 44632 "is-selected": a.displayTabPanel 44633 }, 44634 { 44635 "is-hidden-screen": !a.displayTabPanel 44636 } 44637 ], 44638 "n-tabs__panel" 44639 ]), 44640 tabindex: n.disableTabFocus ? -1 : void 0 44641 }, [ 44642 O("div", U7, [ 44643 O("p", V7, H(n.name), 1) 44644 ]), 44645 V(e.$slots, "default") 44646 ], 10, R7)) : M("", true) 44647 ], 8, M7); 44648 } 44649 let j7, z7, W7, G7, q7, Y7; 44650 u5 = te(B7, [ 44651 [ 44652 "render", 44653 H7 44654 ] 44655 ]); 44656 j7 = { 44657 name: "n-tabs-list", 44658 components: { 44659 Block: ft, 44660 NSelect: xi 44661 }, 44662 mixins: [ 44663 nt, 44664 Lt 44665 ], 44666 provide() { 44667 return { 44668 registerTab: (e) => (this.activeTab.value || (this.activeTab.value = e), this.tablist.push(e), { 44669 unregister: (t) => { 44670 const n = this.tablist.findIndex(t); 44671 this.tablist.slice(n, 1), this.activeTab.value === t && (this.activeTab.value = this.tablist[0]); 44672 } 44673 }), 44674 activeTab: this.activeTab, 44675 id: this.id 44676 }; 44677 }, 44678 props: { 44679 name: { 44680 type: String, 44681 required: true 44682 }, 44683 modelValue: { 44684 type: String 44685 }, 44686 format: { 44687 type: String, 44688 default: "full", 44689 validate: (e) => [ 44690 "full", 44691 "simple" 44692 ].includes(e) 44693 }, 44694 stretchButtons: { 44695 type: Boolean 44696 }, 44697 disableTabFocus: { 44698 type: Boolean, 44699 default: false 44700 } 44701 }, 44702 emits: [ 44703 "update:model-value" 44704 ], 44705 data() { 44706 return { 44707 currentTabFocusIndex: 0, 44708 activeTab: { 44709 value: this.modelValue || "" 44710 }, 44711 tablist: [] 44712 }; 44713 }, 44714 computed: { 44715 useSelect() { 44716 return this.tablist.length >= 3; 44717 }, 44718 currentTabIndex() { 44719 return this.tablist.indexOf(this.activeTab.value); 44720 } 44721 }, 44722 watch: { 44723 currentTabIndex: function() { 44724 this.nestEvents_emit(this.EVENT_TYPES.TAB_CHANGE, { 44725 textContent: this.activeTab.value 44726 }), oi({ 44727 category: "disclosure", 44728 component: "tabs", 44729 action: "show", 44730 name: this.activeTab.value 44731 }, this.$el); 44732 }, 44733 modelValue: function(e) { 44734 this.activeTab.value = e; 44735 }, 44736 "activeTab.value": function(e) { 44737 this.$emit("update:model-value", e); 44738 } 44739 }, 44740 methods: { 44741 setFocusedTab(e) { 44742 this.$refs[`tab${this.tabNameId(e)}`][0].focus(); 44743 },
44744 setActiveTab(e) { 44745 this.activeTab.value = this.tablist[e], this.setFocusedTab(this.tablist[e]); 44746 }, 44747 focusPreviousTab() { 44748 this.currentTabFocusIndex !== 0 && (this.currentTabFocusIndex = this.currentTabFocusIndex - 1, this.setFocusedTab(this.tablist[this.currentTabFocusIndex])); 44749 }, 44750 focusNextTab() { 44751 this.currentTabFocusIndex !== this.tablist.length - 1 && (this.currentTabFocusIndex = this.currentTabFocusIndex + 1, this.setFocusedTab(this.tablist[this.currentTabFocusIndex])); 44752 }, 44753 onKeydown(e) { 44754 switch (e.key) { 44755 case "ArrowRight": 44756 case "ArrowDown": 44757 this.focusNextTab(); 44758 break; 44759 case "ArrowLeft": 44760 case "ArrowUp": 44761 this.focusPreviousTab(); 44762 break; 44763 case "Home": 44764 this.setFocusedTab(this.tablist[0]); 44765 break; 44766 case "End": 44767 this.setFocusedTab(this.tablist[this.tablist.length - 1]); 44768 break; 44769 } 44770 }, 44771 tabNameId(e) { 44772 return e.replaceAll(" ", "-").toLowerCase(); 44773 } 44774 } 44775 }; 44776 z7 = { 44777 class: "n-tabs__nav is-hidden-print" 44778 }; 44779 W7 = [ 44780 "for" 44781 ]; 44782 G7 = { 44783 key: 1, 44784 class: "is-hidden-md-up" 44785 }; 44786 q7 = [ 44787 "label" 44788 ]; 44789 Y7 = [ 44790 "id", 44791 "aria-selected", 44792 "aria-controls", 44793 "tabindex", 44794 "onClick" 44795 ]; 44796 function K7(e, t, n, i, a, r) { 44797 const s = j("NSelect"), o = j("Block"); 44798 return m(), x("div", { 44799 class: R([ 44800 "n-tabs", 44801 [ 44802 { 44803 "n-tabs--has-select": r.useSelect 44804 }, 44805 `n-tabs--format-${n.format}` 44806 ] 44807 ]), 44808 "data-n-context": "n-tabs" 44809 }, [ 44810 O("div", z7, [ 44811 K(o, { 44812 "clear-spacing-after": "" 44813 }, { 44814 default: I(() => [ 44815 r.useSelect ? (m(), x("label", { 44816 key: 0, 44817 for: `${e.id}-select`, 44818 class: "is-sr-only" 44819 }, H(n.name), 9, W7)) : M("", true), 44820 r.useSelect ? (m(), x("div", G7, [ 44821 K(s, { 44822 id: `${e.id}-select`, 44823 modelValue: a.activeTab.value, 44824 "onUpdate:modelValue": t[0] || (t[0] = (l) => a.activeTab.value = l), 44825 options: a.tablist, 44826 "no-placeholder": true, 44827 class: "n-tabs__select", 44828 size: "full-width" 44829 }, null, 8, [ 44830 "id", 44831 "modelValue", 44832 "options" 44833 ]) 44834 ])) : M("", true), 44835 O("div", { 44836 label: n.name, 44837 class: R([ 44838 "n-tabs__controls", 44839 [ 44840 { 44841 "is-hidden-sm-down": r.useSelect 44842 } 44843 ] 44844 ]), 44845 role: "tablist", 44846 "aria-orientation": "horizontal" 44847 }, [ 44848 (m(true), x(me, null, ve(a.tablist, (l) => (m(), x("button", { 44849 id: `${e.id}-tab-${r.tabNameId(l)}`, 44850 key: l, 44851 ref_for: true, 44852 ref: `tab${r.tabNameId(l)}`, 44853 class: R([ 44854 [ 44855 { 44856 "is-selected": l === a.activeTab.value 44857 }, 44858 { 44859 "n-tabs__button--stretch": n.stretchButtons 44860 } 44861 ], 44862 "n-tabs__button n-link n-link--is-block n-link--utility is-focusable" 44863 ]), 44864 "aria-selected": l === a.activeTab.value, 44865 "aria-controls": `${e.id}-panel-${r.tabNameId(l)}`, 44866 tabindex: l === a.activeTab.value ? void 0 : -1, 44867 role: "tab", 44868 type: "button", 44869 onClick: (u) => a.activeTab.value = l, 44870 onKeydown: t[1] || (t[1] = (...u) => r.onKeydown && r.onKeydown(...u)) 44871 }, H(l), 43, Y7))), 128)) 44872 ], 10, q7) 44873 ]), 44874 _: 1 44875 }) 44876 ]), 44877 V(e.$slots, "default") 44878 ], 2); 44879 } 44880 let X7, J7; 44881 c5 = te(j7, [ 44882 [ 44883 "render", 44884 K7 44885 ] 44886 ]); 44887 X7 = { 44888 name: "n-timeline", 44889 components: { 44890 Block: ft 44891 }, 44892 provide() { 44893 return { 44894 noAnimations: this.disableAnimations 44895 }; 44896 }, 44897 props: { 44898 clearSpacingAfter: { 44899 type: Boolean 44900 }, 44901 disableAnimations: { 44902 type: Boolean 44903 } 44904 }, 44905 computed: { 44906 hasItems() { 44907 return !!(this.$slots.default && this.$slots.default().length); 44908 } 44909 } 44910 }; 44911 J7 = { 44912 class: "n-timeline__list n:m-0 n:p-0" 44913 }; 44914 function Q7(e, t, n, i, a, r) { 44915 const s = j("Block"); 44916 return Je((m(), U(s, { 44917 class: R([ 44918 "n-timeline", 44919 [ 44920 { 44921 "is-clear-margin-bottom": n.clearSpacingAfter 44922 } 44923 ] 44924 ]) 44925 }, {
44926 default: I(() => [ 44927 O("ul", J7, [ 44928 V(e.$slots, "default") 44929 ]) 44930 ]), 44931 _: 3 44932 }, 8, [ 44933 "class" 44934 ])), [ 44935 [ 44936 pt, 44937 r.hasItems 44938 ] 44939 ]); 44940 } 44941 d5 = te(X7, [ 44942 [ 44943 "render", 44944 Q7 44945 ] 44946 ]); 44947 var Z7 = Gm(); 44948 const eU = Ei(Z7), Bn = qn({ 44949 items: [] 44950 }), tU = { 44951 name: "n-timeline-item", 44952 components: { 44953 DateTime: Gs, 44954 Reveal: Z6 44955 }, 44956 mixins: [ 44957 nt 44958 ], 44959 inject: [ 44960 "noAnimations" 44961 ], 44962 props: { 44963 ...we, 44964 titleHeadingLevel: { 44965 ...we.titleHeadingLevel, 44966 type: Number, 44967 default: 3 44968 }, 44969 titleStyle: { 44970 ...we.titleHeadingStyle, 44971 type: String, 44972 default: "h3" 44973 }, 44974 date: { 44975 type: String 44976 } 44977 }, 44978 data() { 44979 return { 44980 observer: null 44981 }; 44982 }, 44983 computed: { 44984 store() { 44985 return Bn; 44986 }, 44987 hasDefaultSlot() { 44988 return this.$slots.default && this.$slots.default()[0] ? this.$slots.default()[0] : null; 44989 }, 44990 hasMediaSlot() { 44991 return this.$slots.media && this.$slots.media()[0] ? this.$slots.media()[0] : null; 44992 }, 44993 animate() { 44994 return !!Bn.items[this.findTimelineItem(this.id)].isAnimating; 44995 } 44996 }, 44997 mounted() { 44998 this.createObserver(this.id != "n-timeline-item-0"), this.addTimelineItem(this.id); 44999 }, 45000 unmounted() { 45001 this.destroyObserver(), this.removeTimelineItem(this.id); 45002 }, 45003 methods: { 45004 handleIntersection(e) { 45005 e[0].isIntersecting && !this.$el.classList.contains("n-timeline-item--highlighted") && this.highlightTimelineItem(this.id, this.$el); 45006 }, 45007 createObserver(e = false) { 45008 if (this.observer = new IntersectionObserver(this.handleIntersection, { 45009 threshold: e ? 0.2 : 1, 45010 rootMargin: e ? "-40% 0px" : "0px" 45011 }), document.readyState === "complete") { 45012 this.observer.observe(this.$el); 45013 return; 45014 } 45015 window.addEventListener("load", () => { 45016 this.$nextTick(eU(() => { 45017 this.observer.observe(this.$el); 45018 })); 45019 }); 45020 }, 45021 destroyObserver() { 45022 this.observer.disconnect(); 45023 }, 45024 findTimelineItem(e) { 45025 return Bn.items.indexOf(Bn.items.find((t) => t.id === e)); 45026 }, 45027 highlightTimelineItem(e = this.id, t = this.$el) { 45028 this.updateTimelineItem(e, "intersected", true); 45029 const n = (a) => { 45030 this.updateTimelineItem(a, "isAnimating", true), t.classList.add("n-timeline-item--highlighted"), setTimeout(() => { 45031 this.updateTimelineItem(a, "animated", true); 45032 }, 500); 45033 }, i = () => { 45034 this.findTimelineItem(e) == 0 && n(e), Bn.items.length > 1 && Bn.items[this.findTimelineItem(e) - 1] && !Bn.items[this.findTimelineItem(e) - 1].animated ? setTimeout(() => { 45035 i(); 45036 }, 50) : n(e); 45037 }; 45038 i(); 45039 }, 45040 addTimelineItem(e, t = false, n = false, i = false) { 45041 Bn.items.push({ 45042 id: e, 45043 intersected: t, 45044 isAnimating: n, 45045 animated: i 45046 }); 45047 }, 45048 removeTimelineItem(e) { 45049 Bn.items.splice(this.findTimelineItem(e), 1); 45050 }, 45051 updateTimelineItem(e, t, n) { 45052 this.store.items[this.findTimelineItem(e)][t] = n; 45053 } 45054 } 45055 }, nU = { 45056 class: "n-timeline-item__grid" 45057 }, rU = { 45058 class: "n-timeline-item__entry" 45059 }, iU = { 45060 key: 2, 45061 class: "n-timeline-item__content" 45062 }, aU = { 45063 key: 0, 45064 class: "n-timeline-item__media" 45065 }; 45066 function sU(e, t, n, i, a, r) { 45067 const s = j("DateTime"); 45068 return m(), x("li", { 45069 class: R([ 45070 "n-timeline-item", 45071 [ 45072 { 45073 "n-timeline-item--disable-animations": r.noAnimations 45074 } 45075 ] 45076 ]) 45077 }, [ 45078 O("div", nU, [ 45079 O("div", rU, [ 45080 n.date ? (m(), U(s, { 45081 key: 0, 45082 class: "n-timeline-item__date-time" 45083 }, { 45084 default: I(() => [ 45085 re(H(n.date), 1) 45086 ]), 45087 _: 1 45088 })) : M("", true), 45089 e.title ? (m(), U(ue(`h${n.titleHeadingLevel}`), { 45090 key: 1, 45091 class: R([ 45092 "n-timeline-item__title", 45093 n.titleStyle 45094 ]), 45095 innerHTML: e.title 45096 }, null, 8, [ 45097 "class", 45098 "innerHTML" 45099 ])) : M("", true), 45100 r.hasDefaultSlot ? (m(), x("div", iU, [ 45101 V(e.$slots, "default") 45102 ])) : M("", true) 45103 ]), 45104 t[0] || (t[0] = O("div", { 45105 class: "n-timeline-item__line" 45106 }, [ 45107 O("div", { 45108 class: "n-timeline-item__start-dot" 45109 }), 45110 O("div", { 45111 class: "n-timeline-item__end-dot" 45112 }) 45113 ], -1)), 45114 r.hasMediaSlot ? (m(), x("div", aU, [ 45115 V(e.$slots, "media") 45116 ])) : M("", true) 45117 ]) 45118 ], 2); 45119 } 45120 p5 = te(tU, [ 45121 [ 45122 "render", 45123 sU 45124 ] 45125 ]); 45126}); 45127export { 45128 zS as $, 45129 ft as A, 45130 vp as B, 45131 tg as C, 45132 Wh as D, 45133 OU as E, 45134 zh as F, 45135 e0 as G, 45136 Zh as H, 45137 Au as I, 45138 a5 as J, 45139 ze as K, 45140 XM as L, 45141 Ko as M, 45142 Cu as N, 45143 pf as O, 45144 Vt as P, 45145 i5 as Q,
45146 zU as R, 45147 ES as S, 45148 Rs as T, 45149 FS as U, 45150 xS as V, 45151 JU as W, 45152 r5 as X, 45153 Ut as Y, 45154 s5 as Z, 45155 SU as _, 45156 __tla, 45157 at as a, 45158 AU as a0, 45159 CU as a1, 45160 YR as a2, 45161 qR as a3, 45162 qU as a4, 45163 WU as a5, 45164 GU as a6, 45165 YU as a7, 45166 PU as a8, 45167 t5 as a9, 45168 _0 as aA, 45169 KU as aB, 45170 QU as aC, 45171 XU as aD, 45172 mU as aE, 45173 bU as aF, 45174 gU as aG, 45175 Ns as aH, 45176 jU as aI, 45177 cU as aJ, 45178 Sx as aK, 45179 j$ as aL, 45180 xr as aM, 45181 e5 as aN, 45182 LU as aO, 45183 fR as aP, 45184 DU as aQ, 45185 NU as aR, 45186 Vm as aS, 45187 Um as aT, 45188 qm as aU, 45189 Mt as aV, 45190 lU as aW, 45191 jh as aX, 45192 $T as aY, 45193 W2 as aZ, 45194 n5 as aa, 45195 Tt as ab, 45196 MU as ac, 45197 UU as ad, 45198 VU as ae, 45199 RU as af, 45200 HU as ag, 45201 BU as ah, 45202 d4 as ai, 45203 p5 as aj, 45204 d5 as ak, 45205 $U as al, 45206 IU as am, 45207 FU as an, 45208 TU as ao, 45209 fU as ap, 45210 tR as aq, 45211 xi as ar, 45212 pU as as, 45213 U8 as at, 45214 dI as au, 45215 F0 as av, 45216 mF as aw, 45217 rF as ax, 45218 hU as ay, 45219 Ea as az, 45220 IF as b, 45221 NR as c, 45222 wP as d, 45223 o5 as e, 45224 jn as f, 45225 yU as g, 45226 kU as h, 45227 c5 as i, 45228 mh as j, 45229 _U as k, 45230 vU as l, 45231 EU as m, 45232 $P as n, 45233 Z6 as o, 45234 wU as p, 45235 uU as q, 45236 u5 as r, 45237 Gs as s, 45238 l5 as t, 45239 ua as u, 45240 xU as v, 45241 cg as w, 45242 dU as x, 45243 rf as y, 45244 ZU as z 45245};
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.