1var __defProp = Object.defineProperty; 2var __typeError = (msg) => { 3 throw TypeError(msg); 4}; 5var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; 6var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); 7var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg); 8var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)); 9var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value); 10/** 11* @vue/shared v3.5.13 12* (c) 2018-present Yuxi (Evan) You and Vue contributors 13* @license MIT 14**/ 15/*! #__NO_SIDE_EFFECTS__ */ 16// @__NO_SIDE_EFFECTS__ 17function makeMap(str) { 18 const map = /* @__PURE__ */ Object.create(null); 19 for (const key of str.split(",")) map[key] = 1; 20 return (val) => val in map; 21} 22const EMPTY_OBJ = {}; 23const EMPTY_ARR = []; 24const NOOP = () => { 25}; 26const NO = () => false; 27const isOn = (key) =>
vendor: 11,730 bytes, lines 27-339
27 key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter 28(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97); 29const isModelListener = (key) => key.startsWith("onUpdate:"); 30const extend$1 = Object.assign; 31const remove = (arr, el) => { 32 const i = arr.indexOf(el); 33 if (i > -1) { 34 arr.splice(i, 1); 35 } 36}; 37const hasOwnProperty$d = Object.prototype.hasOwnProperty; 38const hasOwn = (val, key) => hasOwnProperty$d.call(val, key); 39const isArray$4 = Array.isArray; 40const isMap$1 = (val) => toTypeString(val) === "[object Map]"; 41const isSet$1 = (val) => toTypeString(val) === "[object Set]"; 42const isDate$2 = (val) => toTypeString(val) === "[object Date]"; 43const isRegExp$1 = (val) => toTypeString(val) === "[object RegExp]"; 44const isFunction$4 = (val) => typeof val === "function"; 45const isString$1 = (val) => typeof val === "string"; 46const isSymbol$1 = (val) => typeof val === "symbol"; 47const isObject$4 = (val) => val !== null && typeof val === "object"; 48const isPromise$1 = (val) => { 49 return (isObject$4(val) || isFunction$4(val)) && isFunction$4(val.then) && isFunction$4(val.catch); 50}; 51const objectToString$2 = Object.prototype.toString; 52const toTypeString = (value) => objectToString$2.call(value); 53const toRawType = (value) => { 54 return toTypeString(value).slice(8, -1); 55}; 56const isPlainObject$4 = (val) => toTypeString(val) === "[object Object]"; 57const isIntegerKey = (key) => isString$1(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key; 58const isReservedProp = /* @__PURE__ */ makeMap( 59 // the leading comma is intentional so empty string "" is also included 60 ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" 61); 62const isBuiltInDirective = /* @__PURE__ */ makeMap( 63 "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo" 64); 65const cacheStringFunction = (fn) => { 66 const cache = /* @__PURE__ */ Object.create(null); 67 return (str) => { 68 const hit = cache[str]; 69 return hit || (cache[str] = fn(str)); 70 }; 71}; 72const camelizeRE = /-(\w)/g; 73const camelize = cacheStringFunction( 74 (str) => { 75 return str.replace(camelizeRE, (_, c2) => c2 ? c2.toUpperCase() : ""); 76 } 77); 78const hyphenateRE = /\B([A-Z])/g; 79const hyphenate = cacheStringFunction( 80 (str) => str.replace(hyphenateRE, "-$1").toLowerCase() 81); 82const capitalize$1 = cacheStringFunction((str) => { 83 return str.charAt(0).toUpperCase() + str.slice(1); 84}); 85const toHandlerKey = cacheStringFunction( 86 (str) => { 87 const s = str ? `on${capitalize$1(str)}` : ``; 88 return s; 89 } 90); 91const hasChanged = (value, oldValue) => !Object.is(value, oldValue); 92const invokeArrayFns = (fns, ...arg) => { 93 for (let i = 0; i < fns.length; i++) { 94 fns[i](...arg); 95 } 96}; 97const def = (obj, key, value, writable = false) => { 98 Object.defineProperty(obj, key, { 99 configurable: true, 100 enumerable: false, 101 writable, 102 value 103 }); 104}; 105const looseToNumber = (val) => { 106 const n = parseFloat(val); 107 return isNaN(n) ? val : n; 108}; 109const toNumber$2 = (val) => { 110 const n = isString$1(val) ? Number(val) : NaN; 111 return isNaN(n) ? val : n; 112}; 113let _globalThis$1; 114const getGlobalThis = () => { 115 return _globalThis$1 || (_globalThis$1 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {}); 116}; 117const identRE = /^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/; 118function genPropsAccessExp(name) { 119 return identRE.test(name) ? `__props.${name}` : `__props[${JSON.stringify(name)}]`; 120} 121function genCacheKey(source, options) { 122 return source + JSON.stringify( 123 options, 124 (_, val) => typeof val === "function" ? val.toString() : val 125 ); 126} 127const PatchFlags = { 128 "TEXT": 1, 129 "1": "TEXT", 130 "CLASS": 2, 131 "2": "CLASS", 132 "STYLE": 4, 133 "4": "STYLE", 134 "PROPS": 8, 135 "8": "PROPS", 136 "FULL_PROPS": 16, 137 "16": "FULL_PROPS", 138 "NEED_HYDRATION": 32, 139 "32": "NEED_HYDRATION", 140 "STABLE_FRAGMENT": 64, 141 "64": "STABLE_FRAGMENT", 142 "KEYED_FRAGMENT": 128, 143 "128": "KEYED_FRAGMENT", 144 "UNKEYED_FRAGMENT": 256, 145 "256": "UNKEYED_FRAGMENT", 146 "NEED_PATCH": 512, 147 "512": "NEED_PATCH", 148 "DYNAMIC_SLOTS": 1024, 149 "1024": "DYNAMIC_SLOTS", 150 "DEV_ROOT_FRAGMENT": 2048, 151 "2048": "DEV_ROOT_FRAGMENT", 152 "CACHED": -1, 153 "-1": "CACHED", 154 "BAIL": -2, 155 "-2": "BAIL" 156}; 157const PatchFlagNames = { 158 [1]: `TEXT`, 159 [2]: `CLASS`, 160 [4]: `STYLE`, 161 [8]: `PROPS`, 162 [16]: `FULL_PROPS`, 163 [32]: `NEED_HYDRATION`, 164 [64]: `STABLE_FRAGMENT`, 165 [128]: `KEYED_FRAGMENT`, 166 [256]: `UNKEYED_FRAGMENT`, 167 [512]: `NEED_PATCH`, 168 [1024]: `DYNAMIC_SLOTS`, 169 [2048]: `DEV_ROOT_FRAGMENT`, 170 [-1]: `HOISTED`, 171 [-2]: `BAIL` 172}; 173const ShapeFlags = { 174 "ELEMENT": 1, 175 "1": "ELEMENT", 176 "FUNCTIONAL_COMPONENT": 2, 177 "2": "FUNCTIONAL_COMPONENT", 178 "STATEFUL_COMPONENT": 4, 179 "4": "STATEFUL_COMPONENT", 180 "TEXT_CHILDREN": 8, 181 "8": "TEXT_CHILDREN", 182 "ARRAY_CHILDREN": 16, 183 "16": "ARRAY_CHILDREN", 184 "SLOTS_CHILDREN": 32, 185 "32": "SLOTS_CHILDREN", 186 "TELEPORT": 64, 187 "64": "TELEPORT", 188 "SUSPENSE": 128, 189 "128": "SUSPENSE", 190 "COMPONENT_SHOULD_KEEP_ALIVE": 256, 191 "256": "COMPONENT_SHOULD_KEEP_ALIVE", 192 "COMPONENT_KEPT_ALIVE": 512, 193 "512": "COMPONENT_KEPT_ALIVE", 194 "COMPONENT": 6, 195 "6": "COMPONENT" 196}; 197const SlotFlags = { 198 "STABLE": 1, 199 "1": "STABLE", 200 "DYNAMIC": 2, 201 "2": "DYNAMIC", 202 "FORWARDED": 3, 203 "3": "FORWARDED" 204}; 205const slotFlagsText = { 206 [1]: "STABLE", 207 [2]: "DYNAMIC", 208 [3]: "FORWARDED" 209}; 210const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"; 211const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED); 212const isGloballyWhitelisted = isGloballyAllowed; 213const range = 2; 214function generateCodeFrame(source, start = 0, end = source.length) { 215 start = Math.max(0, Math.min(start, source.length)); 216 end = Math.max(0, Math.min(end, source.length)); 217 if (start > end) return ""; 218 let lines = source.split(/(\r?\n)/); 219 const newlineSequences = lines.filter((_, idx) => idx % 2 === 1); 220 lines = lines.filter((_, idx) => idx % 2 === 0); 221 let count = 0; 222 const res = []; 223 for (let i = 0; i < lines.length; i++) { 224 count += lines[i].length + (newlineSequences[i] && newlineSequences[i].length || 0); 225 if (count >= start) { 226 for (let j = i - range; j <= i + range || end > count; j++) { 227 if (j < 0 || j >= lines.length) continue; 228 const line = j + 1; 229 res.push( 230 `${line}${" ".repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}` 231 ); 232 const lineLength = lines[j].length; 233 const newLineSeqLength = newlineSequences[j] && newlineSequences[j].length || 0; 234 if (j === i) { 235 const pad = start - (count - (lineLength + newLineSeqLength)); 236 const length = Math.max( 237 1, 238 end > count ? lineLength - pad : end - start 239 ); 240 res.push(` | ` + " ".repeat(pad) + "^".repeat(length)); 241 } else if (j > i) { 242 if (end > count) { 243 const length = Math.max(Math.min(end - count, lineLength), 1); 244 res.push(` | ` + "^".repeat(length)); 245 } 246 count += lineLength + newLineSeqLength; 247 } 248 } 249 break; 250 } 251 } 252 return res.join("\n"); 253} 254function normalizeStyle(value) { 255 if (isArray$4(value)) { 256 const res = {}; 257 for (let i = 0; i < value.length; i++) { 258 const item = value[i]; 259 const normalized = isString$1(item) ? parseStringStyle(item) : normalizeStyle(item); 260 if (normalized) { 261 for (const key in normalized) { 262 res[key] = normalized[key]; 263 } 264 } 265 } 266 return res; 267 } else if (isString$1(value) || isObject$4(value)) { 268 return value; 269 } 270} 271const listDelimiterRE = /;(?![^(]*\))/g; 272const propertyDelimiterRE = /:([^]+)/; 273const styleCommentRE = /\/\*[^]*?\*\//g; 274function parseStringStyle(cssText) { 275 const ret = {}; 276 cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => { 277 if (item) { 278 const tmp = item.split(propertyDelimiterRE); 279 tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim()); 280 } 281 }); 282 return ret; 283} 284function stringifyStyle(styles) { 285 if (!styles) return ""; 286 if (isString$1(styles)) return styles; 287 let ret = ""; 288 for (const key in styles) { 289 const value = styles[key]; 290 if (isString$1(value) || typeof value === "number") { 291 const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); 292 ret += `${normalizedKey}:${value};`; 293 } 294 } 295 return ret; 296} 297function normalizeClass(value) { 298 let res = ""; 299 if (isString$1(value)) { 300 res = value; 301 } else if (isArray$4(value)) { 302 for (let i = 0; i < value.length; i++) { 303 const normalized = normalizeClass(value[i]); 304 if (normalized) { 305 res += normalized + " "; 306 } 307 } 308 } else if (isObject$4(value)) { 309 for (const name in value) { 310 if (value[name]) { 311 res += name + " "; 312 } 313 } 314 } 315 return res.trim(); 316} 317function normalizeProps$1(props) { 318 if (!props) return null; 319 let { class: klass, style } = props; 320 if (klass && !isString$1(klass)) { 321 props.class = normalizeClass(klass); 322 } 323 if (style) { 324 props.style = normalizeStyle(style); 325 } 326 return props; 327} 328const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"; 329const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"; 330const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"; 331const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"; 332const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS); 333const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS); 334const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS); 335const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS); 336const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`; 337const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs); 338const isBooleanAttr = /* @__PURE__ */ makeMap( 339 specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,
339checked,muted,multiple,selected` 340); 341function includeBooleanAttr(value) { 342 return !!value || value === ""; 343} 344const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/; 345const attrValidationCache = {}; 346function isSSRSafeAttrName(name) { 347 if (attrValidationCache.hasOwnProperty(name)) { 348 return attrValidationCache[name]; 349 } 350 const isUnsafe = unsafeAttrCharRE.test(name); 351 if (isUnsafe) { 352 console.error(`unsafe attribute name: ${name}`); 353 } 354 return attrValidationCache[name] = !isUnsafe; 355} 356const propsToAttrMap = { 357 acceptCharset: "accept-charset", 358 className: "class", 359 htmlFor: "for", 360 httpEquiv: "http-equiv" 361}; 362const isKnownHtmlAttr = /* @__PURE__ */ makeMap( 363 `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap` 364); 365const isKnownSvgAttr = /* @__PURE__ */ makeMap( 366 `xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode
366-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan` 367); 368const isKnownMathMLAttr = /* @__PURE__ */ makeMap( 369 `accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns` 370); 371function isRenderableAttrValue(value) { 372 if (value == null) { 373 return false; 374 } 375 const type = typeof value; 376 return type === "string" || type === "number" || type === "boolean"; 377} 378const escapeRE = /["'&<>]/; 379function escapeHtml$1(string) { 380 const str = "" + string; 381 const match2 = escapeRE.exec(str); 382 if (!match2) { 383 return str; 384 } 385 let html = ""; 386 let escaped; 387 let index2; 388 let lastIndex = 0; 389 for (index2 = match2.index; index2 < str.length; index2++) { 390 switch (str.charCodeAt(index2)) { 391 case 34: 392 escaped = """; 393 break; 394 case 38: 395 escaped = "&"; 396 break; 397 case 39: 398 escaped = "'"; 399 break; 400 case 60: 401 escaped = "<"; 402 break; 403 case 62: 404 escaped = ">"; 405 break; 406 default: 407 continue; 408 } 409 if (lastIndex !== index2) { 410 html += str.slice(lastIndex, index2); 411 } 412 lastIndex = index2 + 1; 413 html += escaped; 414 } 415 return lastIndex !== index2 ? html + str.slice(lastIndex, index2) : html; 416} 417const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g; 418function escapeHtmlComment(src) { 419 return src.replace(commentStripRE, ""); 420} 421const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g; 422function getEscapedCssVarName(key, doubleEscape) { 423 return key.replace( 424 cssVarNameEscapeSymbolsRE, 425 (s) => doubleEscape ? s === '"' ? '\\\\\\"' : `\\\\${s}` : `\\${s}` 426 ); 427} 428function looseCompareArrays(a, b2) { 429 if (a.length !== b2.length) return false; 430 let equal = true; 431 for (let i = 0; equal && i < a.length; i++) { 432 equal = looseEqual(a[i], b2[i]); 433 } 434 return equal; 435} 436function looseEqual(a, b2) { 437 if (a === b2) return true; 438 let aValidType = isDate$2(a); 439 let bValidType = isDate$2(b2); 440 if (aValidType || bValidType) { 441 return aValidType && bValidType ? a.getTime() === b2.getTime() : false; 442 } 443 aValidType = isSymbol$1(a); 444 bValidType = isSymbol$1(b2); 445 if (aValidType || bValidType) { 446 return a === b2; 447 } 448 aValidType = isArray$4(a); 449 bValidType = isArray$4(b2); 450 if (aValidType || bValidType) { 451 return aValidType && bValidType ? looseCompareArrays(a, b2) : false; 452 } 453 aValidType = isObject$4(a); 454 bValidType = isObject$4(b2); 455 if (aValidType || bValidType) { 456 if (!aValidType || !bValidType) { 457 return false; 458 } 459 const aKeysCount = Object.keys(a).length; 460 const bKeysCount = Object.keys(b2).length; 461 if (aKeysCount !== bKeysCount) { 462 return false; 463 } 464 for (const key in a) { 465 const aHasKey = a.hasOwnProperty(key); 466 const bHasKey = b2.hasOwnProperty(key); 467 if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b2[key])) { 468 return false; 469 } 470 } 471 } 472 return String(a) === String(b2); 473} 474function looseIndexOf(arr, val) { 475 return arr.findIndex((item) => looseEqual(item, val)); 476} 477const isRef$1 = (val) => { 478 return !!(val && val["__v_isRef"] === true); 479}; 480const toDisplayString = (val) => { 481 return isString$1(val) ? val : val == null ? "" : isArray$4(val) || isObject$4(val) && (val.toString === objectToString$2 || !isFunction$4(val.toString)) ? isRef$1(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val); 482}; 483const replacer = (_key, val) => { 484 if (isRef$1(val)) { 485 return replacer(_key, val.value); 486 } else if (isMap$1(val)) { 487 return { 488 [`Map(${val.size})`]: [...val.entries()].reduce( 489 (entries, [key, val2], i) => {
490 entries[stringifySymbol(key, i) + " =>"] = val2; 491 return entries; 492 }, 493 {} 494 ) 495 }; 496 } else if (isSet$1(val)) { 497 return { 498 [`Set(${val.size})`]: [...val.values()].map((v2) => stringifySymbol(v2)) 499 }; 500 } else if (isSymbol$1(val)) { 501 return stringifySymbol(val); 502 } else if (isObject$4(val) && !isArray$4(val) && !isPlainObject$4(val)) { 503 return String(val); 504 } 505 return val; 506}; 507const stringifySymbol = (v2, i = "") => { 508 var _a; 509 return ( 510 // Symbol.description in es2019+ so we need to cast here to pass 511 // the lib: es2016 check 512 isSymbol$1(v2) ? `Symbol(${(_a = v2.description) != null ? _a : i})` : v2 513 ); 514}; 515const shared_esmBundler = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 516 __proto__: null, 517 EMPTY_ARR, 518 EMPTY_OBJ, 519 NO, 520 NOOP, 521 PatchFlagNames, 522 PatchFlags, 523 ShapeFlags, 524 SlotFlags, 525 camelize, 526 capitalize: capitalize$1, 527 cssVarNameEscapeSymbolsRE, 528 def, 529 escapeHtml: escapeHtml$1, 530 escapeHtmlComment, 531 extend: extend$1, 532 genCacheKey, 533 genPropsAccessExp, 534 generateCodeFrame, 535 getEscapedCssVarName, 536 getGlobalThis, 537 hasChanged, 538 hasOwn, 539 hyphenate, 540 includeBooleanAttr, 541 invokeArrayFns, 542 isArray: isArray$4, 543 isBooleanAttr, 544 isBuiltInDirective, 545 isDate: isDate$2, 546 isFunction: isFunction$4, 547 isGloballyAllowed, 548 isGloballyWhitelisted, 549 isHTMLTag, 550 isIntegerKey, 551 isKnownHtmlAttr, 552 isKnownMathMLAttr, 553 isKnownSvgAttr, 554 isMap: isMap$1, 555 isMathMLTag, 556 isModelListener, 557 isObject: isObject$4, 558 isOn, 559 isPlainObject: isPlainObject$4, 560 isPromise: isPromise$1, 561 isRegExp: isRegExp$1, 562 isRenderableAttrValue, 563 isReservedProp, 564 isSSRSafeAttrName, 565 isSVGTag, 566 isSet: isSet$1, 567 isSpecialBooleanAttr, 568 isString: isString$1, 569 isSymbol: isSymbol$1, 570 isVoidTag, 571 looseEqual, 572 looseIndexOf, 573 looseToNumber, 574 makeMap, 575 normalizeClass, 576 normalizeProps: normalizeProps$1, 577 normalizeStyle, 578 objectToString: objectToString$2, 579 parseStringStyle, 580 propsToAttrMap, 581 remove, 582 slotFlagsText, 583 stringifyStyle, 584 toDisplayString, 585 toHandlerKey, 586 toNumber: toNumber$2, 587 toRawType, 588 toTypeString 589}, Symbol.toStringTag, { value: "Module" })); 590/** 591* @vue/reactivity v3.5.13 592* (c) 2018-present Yuxi (Evan) You and Vue contributors 593* @license MIT
594**/ 595let activeEffectScope; 596class EffectScope { 597 constructor(detached = false) { 598 this.detached = detached; 599 this._active = true; 600 this.effects = []; 601 this.cleanups = []; 602 this._isPaused = false; 603 this.parent = activeEffectScope; 604 if (!detached && activeEffectScope) { 605 this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push( 606 this 607 ) - 1; 608 } 609 } 610 get active() { 611 return this._active; 612 } 613 pause() { 614 if (this._active) { 615 this._isPaused = true; 616 let i, l3; 617 if (this.scopes) { 618 for (i = 0, l3 = this.scopes.length; i < l3; i++) { 619 this.scopes[i].pause(); 620 } 621 } 622 for (i = 0, l3 = this.effects.length; i < l3; i++) { 623 this.effects[i].pause(); 624 } 625 } 626 } 627 /** 628 * Resumes the effect scope, including all child scopes and effects. 629 */ 630 resume() { 631 if (this._active) { 632 if (this._isPaused) { 633 this._isPaused = false; 634 let i, l3; 635 if (this.scopes) { 636 for (i = 0, l3 = this.scopes.length; i < l3; i++) { 637 this.scopes[i].resume(); 638 } 639 } 640 for (i = 0, l3 = this.effects.length; i < l3; i++) { 641 this.effects[i].resume(); 642 } 643 } 644 } 645 } 646 run(fn) { 647 if (this._active) { 648 const currentEffectScope = activeEffectScope; 649 try { 650 activeEffectScope = this; 651 return fn(); 652 } finally { 653 activeEffectScope = currentEffectScope; 654 } 655 } 656 } 657 /** 658 * This should only be called on non-detached scopes 659 * @internal 660 */ 661 on() { 662 activeEffectScope = this; 663 } 664 /** 665 * This should only be called on non-detached scopes 666 * @internal 667 */ 668 off() { 669 activeEffectScope = this.parent; 670 } 671 stop(fromParent) { 672 if (this._active) { 673 this._active = false; 674 let i, l3; 675 for (i = 0, l3 = this.effects.length; i < l3; i++) { 676 this.effects[i].stop(); 677 } 678 this.effects.length = 0; 679 for (i = 0, l3 = this.cleanups.length; i < l3; i++) { 680 this.cleanups[i](); 681 } 682 this.cleanups.length = 0; 683 if (this.scopes) { 684 for (i = 0, l3 = this.scopes.length; i < l3; i++) { 685 this.scopes[i].stop(true); 686 } 687 this.scopes.length = 0; 688 } 689 if (!this.detached && this.parent && !fromParent) { 690 const last = this.parent.scopes.pop(); 691 if (last && last !== this) { 692 this.parent.scopes[this.index] = last; 693 last.index = this.index; 694 } 695 } 696 this.parent = void 0; 697 } 698 } 699} 700function effectScope(detached) { 701 return new EffectScope(detached); 702} 703function getCurrentScope() { 704 return activeEffectScope; 705} 706function onScopeDispose(fn, failSilently = false) { 707 if (activeEffectScope) { 708 activeEffectScope.cleanups.push(fn); 709 } 710} 711let activeSub; 712const pausedQueueEffects = /* @__PURE__ */ new WeakSet(); 713class ReactiveEffect { 714 constructor(fn) { 715 this.fn = fn; 716 this.deps = void 0; 717 this.depsTail = void 0; 718 this.flags = 1 | 4; 719 this.next = void 0; 720 this.cleanup = void 0; 721 this.scheduler = void 0; 722 if (activeEffectScope && activeEffectScope.active) { 723 activeEffectScope.effects.push(this); 724 } 725 } 726 pause() { 727 this.flags |= 64; 728 } 729 resume() { 730 if (this.flags & 64) { 731 this.flags &= -65; 732 if (pausedQueueEffects.has(this)) { 733 pausedQueueEffects.delete(this); 734 this.trigger(); 735 } 736 } 737 } 738 /** 739 * @internal 740 */ 741 notify() { 742 if (this.flags & 2 && !(this.flags & 32)) { 743 return; 744 } 745 if (!(this.flags & 8)) { 746 batch(this); 747 } 748 } 749 run() { 750 if (!(this.flags & 1)) { 751 return this.fn(); 752 } 753 this.flags |= 2; 754 cleanupEffect(this); 755 prepareDeps(this); 756 const prevEffect = activeSub; 757 const prevShouldTrack = shouldTrack; 758 activeSub = this; 759 shouldTrack = true; 760 try { 761 return this.fn(); 762 } finally { 763 cleanupDeps(this); 764 activeSub = prevEffect; 765 shouldTrack = prevShouldTrack; 766 this.flags &= -3; 767 } 768 } 769 stop() { 770 if (this.flags & 1) { 771 for (let link = this.deps; link; link = link.nextDep) { 772 removeSub(link); 773 } 774 this.deps = this.depsTail = void 0; 775 cleanupEffect(this); 776 this.onStop && this.onStop(); 777 this.flags &= -2; 778 } 779 } 780 trigger() { 781 if (this.flags & 64) {
vendor: 4,397 bytes, lines 782-985
782 pausedQueueEffects.add(this); 783 } else if (this.scheduler) { 784 this.scheduler(); 785 } else { 786 this.runIfDirty(); 787 } 788 } 789 /** 790 * @internal 791 */ 792 runIfDirty() { 793 if (isDirty(this)) { 794 this.run(); 795 } 796 } 797 get dirty() { 798 return isDirty(this); 799 } 800} 801let batchDepth = 0; 802let batchedSub; 803let batchedComputed; 804function batch(sub2, isComputed = false) { 805 sub2.flags |= 8; 806 if (isComputed) { 807 sub2.next = batchedComputed; 808 batchedComputed = sub2; 809 return; 810 } 811 sub2.next = batchedSub; 812 batchedSub = sub2; 813} 814function startBatch() { 815 batchDepth++; 816} 817function endBatch() { 818 if (--batchDepth > 0) { 819 return; 820 } 821 if (batchedComputed) { 822 let e = batchedComputed; 823 batchedComputed = void 0; 824 while (e) { 825 const next = e.next; 826 e.next = void 0; 827 e.flags &= -9; 828 e = next; 829 } 830 } 831 let error; 832 while (batchedSub) { 833 let e = batchedSub; 834 batchedSub = void 0; 835 while (e) { 836 const next = e.next; 837 e.next = void 0; 838 e.flags &= -9; 839 if (e.flags & 1) { 840 try { 841 ; 842 e.trigger(); 843 } catch (err) { 844 if (!error) error = err; 845 } 846 } 847 e = next; 848 } 849 } 850 if (error) throw error; 851} 852function prepareDeps(sub2) { 853 for (let link = sub2.deps; link; link = link.nextDep) { 854 link.version = -1; 855 link.prevActiveLink = link.dep.activeLink; 856 link.dep.activeLink = link; 857 } 858} 859function cleanupDeps(sub2) { 860 let head; 861 let tail = sub2.depsTail; 862 let link = tail; 863 while (link) { 864 const prev = link.prevDep; 865 if (link.version === -1) { 866 if (link === tail) tail = prev; 867 removeSub(link); 868 removeDep(link); 869 } else { 870 head = link; 871 } 872 link.dep.activeLink = link.prevActiveLink; 873 link.prevActiveLink = void 0; 874 link = prev; 875 } 876 sub2.deps = head; 877 sub2.depsTail = tail; 878} 879function isDirty(sub2) { 880 for (let link = sub2.deps; link; link = link.nextDep) { 881 if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) { 882 return true; 883 } 884 } 885 if (sub2._dirty) { 886 return true; 887 } 888 return false; 889} 890function refreshComputed(computed2) { 891 if (computed2.flags & 4 && !(computed2.flags & 16)) { 892 return; 893 } 894 computed2.flags &= -17; 895 if (computed2.globalVersion === globalVersion) { 896 return; 897 } 898 computed2.globalVersion = globalVersion; 899 const dep = computed2.dep; 900 computed2.flags |= 2; 901 if (dep.version > 0 && !computed2.isSSR && computed2.deps && !isDirty(computed2)) { 902 computed2.flags &= -3; 903 return; 904 } 905 const prevSub = activeSub; 906 const prevShouldTrack = shouldTrack; 907 activeSub = computed2; 908 shouldTrack = true; 909 try { 910 prepareDeps(computed2); 911 const value = computed2.fn(computed2._value); 912 if (dep.version === 0 || hasChanged(value, computed2._value)) { 913 computed2._value = value; 914 dep.version++; 915 } 916 } catch (err) { 917 dep.version++; 918 throw err; 919 } finally { 920 activeSub = prevSub; 921 shouldTrack = prevShouldTrack; 922 cleanupDeps(computed2); 923 computed2.flags &= -3; 924 } 925} 926function removeSub(link, soft = false) { 927 const { dep, prevSub, nextSub } = link; 928 if (prevSub) { 929 prevSub.nextSub = nextSub; 930 link.prevSub = void 0; 931 } 932 if (nextSub) { 933 nextSub.prevSub = prevSub; 934 link.nextSub = void 0; 935 } 936 if (dep.subs === link) { 937 dep.subs = prevSub; 938 if (!prevSub && dep.computed) { 939 dep.computed.flags &= -5; 940 for (let l3 = dep.computed.deps; l3; l3 = l3.nextDep) { 941 removeSub(l3, true); 942 } 943 } 944 } 945 if (!soft && !--dep.sc && dep.map) { 946 dep.map.delete(dep.key); 947 } 948} 949function removeDep(link) { 950 const { prevDep, nextDep } = link; 951 if (prevDep) { 952 prevDep.nextDep = nextDep; 953 link.prevDep = void 0; 954 } 955 if (nextDep) { 956 nextDep.prevDep = prevDep; 957 link.nextDep = void 0; 958 } 959} 960function effect(fn, options) { 961 if (fn.effect instanceof ReactiveEffect) { 962 fn = fn.effect.fn; 963 } 964 const e = new ReactiveEffect(fn); 965 if (options) { 966 extend$1(e, options); 967 } 968 try { 969 e.run(); 970 } catch (err) { 971 e.stop(); 972 throw err; 973 } 974 const runner = e.run.bind(e); 975 runner.effect = e; 976 return runner; 977} 978function stop(runner) { 979 runner.effect.stop(); 980} 981let shouldTrack = true; 982const trackStack = []; 983function pauseTracking() { 984 trackStack.push(shouldTrack); 985 shouldTrack = false;
vendor: 3,760 bytes, lines 986-1143
986} 987function resetTracking() { 988 const last = trackStack.pop(); 989 shouldTrack = last === void 0 ? true : last; 990} 991function cleanupEffect(e) { 992 const { cleanup } = e; 993 e.cleanup = void 0; 994 if (cleanup) { 995 const prevSub = activeSub; 996 activeSub = void 0; 997 try { 998 cleanup(); 999 } finally { 1000 activeSub = prevSub; 1001 } 1002 } 1003} 1004let globalVersion = 0; 1005class Link { 1006 constructor(sub2, dep) { 1007 this.sub = sub2; 1008 this.dep = dep; 1009 this.version = dep.version; 1010 this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0; 1011 } 1012} 1013class Dep { 1014 constructor(computed2) { 1015 this.computed = computed2; 1016 this.version = 0; 1017 this.activeLink = void 0; 1018 this.subs = void 0; 1019 this.map = void 0; 1020 this.key = void 0; 1021 this.sc = 0; 1022 } 1023 track(debugInfo) { 1024 if (!activeSub || !shouldTrack || activeSub === this.computed) { 1025 return; 1026 } 1027 let link = this.activeLink; 1028 if (link === void 0 || link.sub !== activeSub) { 1029 link = this.activeLink = new Link(activeSub, this); 1030 if (!activeSub.deps) { 1031 activeSub.deps = activeSub.depsTail = link; 1032 } else { 1033 link.prevDep = activeSub.depsTail; 1034 activeSub.depsTail.nextDep = link; 1035 activeSub.depsTail = link; 1036 } 1037 addSub(link); 1038 } else if (link.version === -1) { 1039 link.version = this.version; 1040 if (link.nextDep) { 1041 const next = link.nextDep; 1042 next.prevDep = link.prevDep; 1043 if (link.prevDep) { 1044 link.prevDep.nextDep = next; 1045 } 1046 link.prevDep = activeSub.depsTail; 1047 link.nextDep = void 0; 1048 activeSub.depsTail.nextDep = link; 1049 activeSub.depsTail = link; 1050 if (activeSub.deps === link) { 1051 activeSub.deps = next; 1052 } 1053 } 1054 } 1055 return link; 1056 } 1057 trigger(debugInfo) { 1058 this.version++; 1059 globalVersion++; 1060 this.notify(debugInfo); 1061 } 1062 notify(debugInfo) { 1063 startBatch(); 1064 try { 1065 if (false) ; 1066 for (let link = this.subs; link; link = link.prevSub) { 1067 if (link.sub.notify()) { 1068 ; 1069 link.sub.dep.notify(); 1070 } 1071 } 1072 } finally { 1073 endBatch(); 1074 } 1075 } 1076} 1077function addSub(link) { 1078 link.dep.sc++; 1079 if (link.sub.flags & 4) { 1080 const computed2 = link.dep.computed; 1081 if (computed2 && !link.dep.subs) { 1082 computed2.flags |= 4 | 16; 1083 for (let l3 = computed2.deps; l3; l3 = l3.nextDep) { 1084 addSub(l3); 1085 } 1086 } 1087 const currentTail = link.dep.subs; 1088 if (currentTail !== link) { 1089 link.prevSub = currentTail; 1090 if (currentTail) currentTail.nextSub = link; 1091 } 1092 link.dep.subs = link; 1093 } 1094} 1095const targetMap = /* @__PURE__ */ new WeakMap(); 1096const ITERATE_KEY = Symbol( 1097 "" 1098); 1099const MAP_KEY_ITERATE_KEY = Symbol( 1100 "" 1101); 1102const ARRAY_ITERATE_KEY = Symbol( 1103 "" 1104); 1105function track(target, type, key) { 1106 if (shouldTrack && activeSub) { 1107 let depsMap = targetMap.get(target); 1108 if (!depsMap) { 1109 targetMap.set(target, depsMap = /* @__PURE__ */ new Map()); 1110 } 1111 let dep = depsMap.get(key); 1112 if (!dep) { 1113 depsMap.set(key, dep = new Dep()); 1114 dep.map = depsMap; 1115 dep.key = key; 1116 } 1117 { 1118 dep.track(); 1119 } 1120 } 1121} 1122function trigger(target, type, key, newValue, oldValue, oldTarget) { 1123 const depsMap = targetMap.get(target); 1124 if (!depsMap) { 1125 globalVersion++; 1126 return; 1127 } 1128 const run = (dep) => { 1129 if (dep) { 1130 { 1131 dep.trigger(); 1132 } 1133 } 1134 }; 1135 startBatch(); 1136 if (type === "clear") { 1137 depsMap.forEach(run); 1138 } else { 1139 const targetIsArray = isArray$4(target); 1140 const isArrayIndex = targetIsArray && isIntegerKey(key); 1141 if (targetIsArray && key === "length") { 1142 const newLength = Number(newValue); 1143 depsMap.forEach((dep, key2) => {
1144 if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !isSymbol$1(key2) && key2 >= newLength) { 1145 run(dep); 1146 } 1147 }); 1148 } else { 1149 if (key !== void 0 || depsMap.has(void 0)) { 1150 run(depsMap.get(key)); 1151 } 1152 if (isArrayIndex) { 1153 run(depsMap.get(ARRAY_ITERATE_KEY)); 1154 } 1155 switch (type) { 1156 case "add": 1157 if (!targetIsArray) { 1158 run(depsMap.get(ITERATE_KEY)); 1159 if (isMap$1(target)) { 1160 run(depsMap.get(MAP_KEY_ITERATE_KEY)); 1161 } 1162 } else if (isArrayIndex) { 1163 run(depsMap.get("length")); 1164 } 1165 break; 1166 case "delete": 1167 if (!targetIsArray) { 1168 run(depsMap.get(ITERATE_KEY)); 1169 if (isMap$1(target)) { 1170 run(depsMap.get(MAP_KEY_ITERATE_KEY)); 1171 } 1172 } 1173 break; 1174 case "set": 1175 if (isMap$1(target)) { 1176 run(depsMap.get(ITERATE_KEY)); 1177 } 1178 break; 1179 } 1180 } 1181 } 1182 endBatch(); 1183} 1184function getDepFromReactive(object, key) { 1185 const depMap = targetMap.get(object); 1186 return depMap && depMap.get(key); 1187} 1188function reactiveReadArray(array) { 1189 const raw = toRaw(array); 1190 if (raw === array) return raw; 1191 track(raw, "iterate", ARRAY_ITERATE_KEY); 1192 return isShallow(array) ? raw : raw.map(toReactive); 1193} 1194function shallowReadArray(arr) { 1195 track(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY); 1196 return arr; 1197} 1198const arrayInstrumentations = { 1199 __proto__: null, 1200 [Symbol.iterator]() { 1201 return iterator$1(this, Symbol.iterator, toReactive); 1202 }, 1203 concat(...args) { 1204 return reactiveReadArray(this).concat( 1205 ...args.map((x2) => isArray$4(x2) ? reactiveReadArray(x2) : x2) 1206 ); 1207 }, 1208 entries() { 1209 return iterator$1(this, "entries", (value) => { 1210 value[1] = toReactive(value[1]); 1211 return value; 1212 }); 1213 }, 1214 every(fn, thisArg) { 1215 return apply$1(this, "every", fn, thisArg, void 0, arguments); 1216 }, 1217 filter(fn, thisArg) { 1218 return apply$1(this, "filter", fn, thisArg, (v2) => v2.map(toReactive), arguments); 1219 }, 1220 find(fn, thisArg) { 1221 return apply$1(this, "find", fn, thisArg, toReactive, arguments); 1222 }, 1223 findIndex(fn, thisArg) { 1224 return apply$1(this, "findIndex", fn, thisArg, void 0, arguments); 1225 }, 1226 findLast(fn, thisArg) { 1227 return apply$1(this, "findLast", fn, thisArg, toReactive, arguments); 1228 }, 1229 findLastIndex(fn, thisArg) { 1230 return apply$1(this, "findLastIndex", fn, thisArg, void 0, arguments); 1231 }, 1232 // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement 1233 forEach(fn, thisArg) { 1234 return apply$1(this, "forEach", fn, thisArg, void 0, arguments); 1235 }, 1236 includes(...args) { 1237 return searchProxy(this, "includes", args); 1238 }, 1239 indexOf(...args) { 1240 return searchProxy(this, "indexOf", args); 1241 }, 1242 join(separator) { 1243 return reactiveReadArray(this).join(separator); 1244 }, 1245 // keys() iterator only reads `length`, no optimisation required 1246 lastIndexOf(...args) { 1247 return searchProxy(this, "lastIndexOf", args); 1248 }, 1249 map(fn, thisArg) { 1250 return apply$1(this, "map", fn, thisArg, void 0, arguments); 1251 }, 1252 pop() { 1253 return noTracking(this, "pop"); 1254 }, 1255 push(...args) { 1256 return noTracking(this, "push", args); 1257 }, 1258 reduce(fn, ...args) { 1259 return reduce(this, "reduce", fn, args); 1260 }, 1261 reduceRight(fn, ...args) { 1262 return reduce(this, "reduceRight", fn, args); 1263 }, 1264 shift() { 1265 return noTracking(this, "shift"); 1266 }, 1267 // slice could use ARRAY_ITERATE but also seems to beg for range tracking 1268 some(fn, thisArg) { 1269 return apply$1(this, "some", fn, thisArg, void 0, arguments); 1270 }, 1271 splice(...args) { 1272 return noTracking(this, "splice", args); 1273 }, 1274 toReversed() { 1275 return reactiveReadArray(this).toReversed(); 1276 }, 1277 toSorted(comparer) { 1278 return reactiveReadArray(this).toSorted(comparer); 1279 }, 1280 toSpliced(...args) { 1281 return reactiveReadArray(this).toSpliced(...args); 1282 }, 1283 unshift(...args) { 1284 return noTracking(this, "unshift", args); 1285 }, 1286 values() { 1287 return iterator$1(this, "values", toReactive); 1288 } 1289}; 1290function iterator$1(self2, method, wrapValue) { 1291 const arr = shallowReadArray(self2); 1292 const iter = arr[method](); 1293 if (arr !== self2 && !isShallow(self2)) { 1294 iter._next = iter.next; 1295 iter.next = () => { 1296 const result = iter._next(); 1297 if (result.value) { 1298 result.value = wrapValue(result.value); 1299 } 1300 return result; 1301 }; 1302 } 1303 return iter; 1304} 1305const arrayProto$1 = Array.prototype; 1306function apply$1(self2, method, fn, thisArg, wrappedRetFn, args) { 1307 const arr = shallowReadArray(self2); 1308 const needsWrap = arr !== self2 && !isShallow(self2); 1309 const methodFn = arr[method]; 1310 if (methodFn !== arrayProto$1[method]) { 1311 const result2 = methodFn.apply(self2, args); 1312 return needsWrap ? toReactive(result2) : result2; 1313 } 1314 let wrappedFn = fn; 1315 if (arr !== self2) { 1316 if (needsWrap) { 1317 wrappedFn = function(item, index2) {
1318 return fn.call(this, toReactive(item), index2, self2); 1319 }; 1320 } else if (fn.length > 2) { 1321 wrappedFn = function(item, index2) { 1322 return fn.call(this, item, index2, self2); 1323 }; 1324 } 1325 } 1326 const result = methodFn.call(arr, wrappedFn, thisArg); 1327 return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result; 1328} 1329function reduce(self2, method, fn, args) { 1330 const arr = shallowReadArray(self2); 1331 let wrappedFn = fn; 1332 if (arr !== self2) { 1333 if (!isShallow(self2)) { 1334 wrappedFn = function(acc, item, index2) { 1335 return fn.call(this, acc, toReactive(item), index2, self2); 1336 }; 1337 } else if (fn.length > 3) { 1338 wrappedFn = function(acc, item, index2) { 1339 return fn.call(this, acc, item, index2, self2); 1340 }; 1341 } 1342 } 1343 return arr[method](wrappedFn, ...args); 1344} 1345function searchProxy(self2, method, args) { 1346 const arr = toRaw(self2); 1347 track(arr, "iterate", ARRAY_ITERATE_KEY); 1348 const res = arr[method](...args); 1349 if ((res === -1 || res === false) && isProxy(args[0])) { 1350 args[0] = toRaw(args[0]); 1351 return arr[method](...args); 1352 } 1353 return res; 1354} 1355function noTracking(self2, method, args = []) { 1356 pauseTracking(); 1357 startBatch(); 1358 const res = toRaw(self2)[method].apply(self2, args); 1359 endBatch(); 1360 resetTracking(); 1361 return res; 1362} 1363const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`); 1364const builtInSymbols = new Set( 1365 /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol$1) 1366); 1367function hasOwnProperty$c(key) { 1368 if (!isSymbol$1(key)) key = String(key); 1369 const obj = toRaw(this); 1370 track(obj, "has", key); 1371 return obj.hasOwnProperty(key); 1372} 1373class BaseReactiveHandler { 1374 constructor(_isReadonly = false, _isShallow = false) { 1375 this._isReadonly = _isReadonly; 1376 this._isShallow = _isShallow; 1377 } 1378 get(target, key, receiver) { 1379 if (key === "__v_skip") return target["__v_skip"]; 1380 const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow; 1381 if (key === "__v_isReactive") { 1382 return !isReadonly2; 1383 } else if (key === "__v_isReadonly") { 1384 return isReadonly2; 1385 } else if (key === "__v_isShallow") { 1386 return isShallow2; 1387 } else if (key === "__v_raw") { 1388 if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype 1389 // this means the receiver is a user proxy of the reactive proxy 1390 Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) { 1391 return target; 1392 } 1393 return; 1394 } 1395 const targetIsArray = isArray$4(target); 1396 if (!isReadonly2) { 1397 let fn; 1398 if (targetIsArray && (fn = arrayInstrumentations[key])) { 1399 return fn; 1400 } 1401 if (key === "hasOwnProperty") { 1402 return hasOwnProperty$c; 1403 } 1404 } 1405 const res = Reflect.get( 1406 target, 1407 key, 1408 // if this is a proxy wrapping a ref, return methods using the raw ref 1409 // as receiver so that we don't have to call `toRaw` on the ref in all 1410 // its class methods 1411 isRef(target) ? target : receiver 1412 ); 1413 if (isSymbol$1(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) { 1414 return res; 1415 } 1416 if (!isReadonly2) { 1417 track(target, "get", key); 1418 } 1419 if (isShallow2) { 1420 return res; 1421 } 1422 if (isRef(res)) { 1423 return targetIsArray && isIntegerKey(key) ? res : res.value; 1424 } 1425 if (isObject$4(res)) { 1426 return isReadonly2 ? readonly(res) : reactive(res); 1427 } 1428 return res; 1429 } 1430} 1431class MutableReactiveHandler extends BaseReactiveHandler { 1432 constructor(isShallow2 = false) { 1433 super(false, isShallow2); 1434 } 1435 set(target, key, value, receiver) { 1436 let oldValue = target[key]; 1437 if (!this._isShallow) { 1438 const isOldValueReadonly = isReadonly(oldValue); 1439 if (!isShallow(value) && !isReadonly(value)) { 1440 oldValue = toRaw(oldValue); 1441 value = toRaw(value); 1442 } 1443 if (!isArray$4(target) && isRef(oldValue) && !isRef(value)) { 1444 if (isOldValueReadonly) { 1445 return false;
1446 } else { 1447 oldValue.value = value; 1448 return true; 1449 } 1450 } 1451 } 1452 const hadKey = isArray$4(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key); 1453 const result = Reflect.set( 1454 target, 1455 key, 1456 value, 1457 isRef(target) ? target : receiver 1458 ); 1459 if (target === toRaw(receiver)) { 1460 if (!hadKey) { 1461 trigger(target, "add", key, value); 1462 } else if (hasChanged(value, oldValue)) { 1463 trigger(target, "set", key, value); 1464 } 1465 } 1466 return result; 1467 } 1468 deleteProperty(target, key) { 1469 const hadKey = hasOwn(target, key); 1470 target[key]; 1471 const result = Reflect.deleteProperty(target, key); 1472 if (result && hadKey) { 1473 trigger(target, "delete", key, void 0); 1474 } 1475 return result; 1476 } 1477 has(target, key) { 1478 const result = Reflect.has(target, key); 1479 if (!isSymbol$1(key) || !builtInSymbols.has(key)) { 1480 track(target, "has", key); 1481 } 1482 return result; 1483 } 1484 ownKeys(target) { 1485 track( 1486 target, 1487 "iterate", 1488 isArray$4(target) ? "length" : ITERATE_KEY 1489 ); 1490 return Reflect.ownKeys(target); 1491 } 1492} 1493class ReadonlyReactiveHandler extends BaseReactiveHandler { 1494 constructor(isShallow2 = false) { 1495 super(true, isShallow2); 1496 } 1497 set(target, key) { 1498 return true; 1499 } 1500 deleteProperty(target, key) { 1501 return true; 1502 } 1503} 1504const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler(); 1505const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(); 1506const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true); 1507const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true); 1508const toShallow = (value) => value; 1509const getProto = (v2) => Reflect.getPrototypeOf(v2); 1510function createIterableMethod(method, isReadonly2, isShallow2) { 1511 return function(...args) { 1512 const target = this["__v_raw"]; 1513 const rawTarget = toRaw(target); 1514 const targetIsMap = isMap$1(rawTarget); 1515 const isPair = method === "entries" || method === Symbol.iterator && targetIsMap; 1516 const isKeyOnly = method === "keys" && targetIsMap; 1517 const innerIterator = target[method](...args); 1518 const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; 1519 !isReadonly2 && track( 1520 rawTarget, 1521 "iterate", 1522 isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY 1523 ); 1524 return { 1525 // iterator protocol 1526 next() { 1527 const { value, done } = innerIterator.next(); 1528 return done ? { value, done } : { 1529 value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value), 1530 done 1531 }; 1532 }, 1533 // iterable protocol 1534 [Symbol.iterator]() { 1535 return this; 1536 } 1537 }; 1538 }; 1539} 1540function createReadonlyMethod(type) { 1541 return function(...args) { 1542 return type === "delete" ? false : type === "clear" ? void 0 : this; 1543 }; 1544} 1545function createInstrumentations(readonly2, shallow) { 1546 const instrumentations = { 1547 get(key) { 1548 const target = this["__v_raw"]; 1549 const rawTarget = toRaw(target); 1550 const rawKey = toRaw(key); 1551 if (!readonly2) { 1552 if (hasChanged(key, rawKey)) { 1553 track(rawTarget, "get", key); 1554 } 1555 track(rawTarget, "get", rawKey); 1556 } 1557 const { has } = getProto(rawTarget); 1558 const wrap = shallow ? toShallow : readonly2 ? toReadonly : toReactive; 1559 if (has.call(rawTarget, key)) { 1560 return wrap(target.get(key)); 1561 } else if (has.call(rawTarget, rawKey)) { 1562 return wrap(target.get(rawKey)); 1563 } else if (target !== rawTarget) { 1564 target.get(key); 1565 } 1566 }, 1567 get size() { 1568 const target = this["__v_raw"]; 1569 !readonly2 && track(toRaw(target), "iterate", ITERATE_KEY); 1570 return Reflect.get(target, "size", target); 1571 }, 1572 has(key) { 1573 const target = this["__v_raw"]; 1574 const rawTarget = toRaw(target); 1575 const rawKey = toRaw(key); 1576 if (!readonly2) { 1577 if (hasChanged(key, rawKey)) { 1578 track(rawTarget, "has", key); 1579 } 1580 track(rawTarget, "has", rawKey); 1581 } 1582 return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey); 1583 },
vendor: 16,951 bytes, lines 1584-2212
1584 forEach(callback, thisArg) { 1585 const observed = this; 1586 const target = observed["__v_raw"]; 1587 const rawTarget = toRaw(target); 1588 const wrap = shallow ? toShallow : readonly2 ? toReadonly : toReactive; 1589 !readonly2 && track(rawTarget, "iterate", ITERATE_KEY); 1590 return target.forEach((value, key) => { 1591 return callback.call(thisArg, wrap(value), wrap(key), observed); 1592 }); 1593 } 1594 }; 1595 extend$1( 1596 instrumentations, 1597 readonly2 ? { 1598 add: createReadonlyMethod("add"), 1599 set: createReadonlyMethod("set"), 1600 delete: createReadonlyMethod("delete"), 1601 clear: createReadonlyMethod("clear") 1602 } : { 1603 add(value) { 1604 if (!shallow && !isShallow(value) && !isReadonly(value)) { 1605 value = toRaw(value); 1606 } 1607 const target = toRaw(this); 1608 const proto = getProto(target); 1609 const hadKey = proto.has.call(target, value); 1610 if (!hadKey) { 1611 target.add(value); 1612 trigger(target, "add", value, value); 1613 } 1614 return this; 1615 }, 1616 set(key, value) { 1617 if (!shallow && !isShallow(value) && !isReadonly(value)) { 1618 value = toRaw(value); 1619 } 1620 const target = toRaw(this); 1621 const { has, get: get2 } = getProto(target); 1622 let hadKey = has.call(target, key); 1623 if (!hadKey) { 1624 key = toRaw(key); 1625 hadKey = has.call(target, key); 1626 } 1627 const oldValue = get2.call(target, key); 1628 target.set(key, value); 1629 if (!hadKey) { 1630 trigger(target, "add", key, value); 1631 } else if (hasChanged(value, oldValue)) { 1632 trigger(target, "set", key, value); 1633 } 1634 return this; 1635 }, 1636 delete(key) { 1637 const target = toRaw(this); 1638 const { has, get: get2 } = getProto(target); 1639 let hadKey = has.call(target, key); 1640 if (!hadKey) { 1641 key = toRaw(key); 1642 hadKey = has.call(target, key); 1643 } 1644 get2 ? get2.call(target, key) : void 0; 1645 const result = target.delete(key); 1646 if (hadKey) { 1647 trigger(target, "delete", key, void 0); 1648 } 1649 return result; 1650 }, 1651 clear() { 1652 const target = toRaw(this); 1653 const hadItems = target.size !== 0; 1654 const result = target.clear(); 1655 if (hadItems) { 1656 trigger( 1657 target, 1658 "clear", 1659 void 0, 1660 void 0 1661 ); 1662 } 1663 return result; 1664 } 1665 } 1666 ); 1667 const iteratorMethods = [ 1668 "keys", 1669 "values", 1670 "entries", 1671 Symbol.iterator 1672 ]; 1673 iteratorMethods.forEach((method) => { 1674 instrumentations[method] = createIterableMethod(method, readonly2, shallow); 1675 }); 1676 return instrumentations; 1677} 1678function createInstrumentationGetter(isReadonly2, shallow) { 1679 const instrumentations = createInstrumentations(isReadonly2, shallow); 1680 return (target, key, receiver) => { 1681 if (key === "__v_isReactive") { 1682 return !isReadonly2; 1683 } else if (key === "__v_isReadonly") { 1684 return isReadonly2; 1685 } else if (key === "__v_raw") { 1686 return target; 1687 } 1688 return Reflect.get( 1689 hasOwn(instrumentations, key) && key in target ? instrumentations : target, 1690 key, 1691 receiver 1692 ); 1693 }; 1694} 1695const mutableCollectionHandlers = { 1696 get: /* @__PURE__ */ createInstrumentationGetter(false, false) 1697}; 1698const shallowCollectionHandlers = { 1699 get: /* @__PURE__ */ createInstrumentationGetter(false, true) 1700}; 1701const readonlyCollectionHandlers = { 1702 get: /* @__PURE__ */ createInstrumentationGetter(true, false) 1703}; 1704const shallowReadonlyCollectionHandlers = { 1705 get: /* @__PURE__ */ createInstrumentationGetter(true, true) 1706}; 1707const reactiveMap = /* @__PURE__ */ new WeakMap(); 1708const shallowReactiveMap = /* @__PURE__ */ new WeakMap(); 1709const readonlyMap = /* @__PURE__ */ new WeakMap(); 1710const shallowReadonlyMap = /* @__PURE__ */ new WeakMap(); 1711function targetTypeMap(rawType) { 1712 switch (rawType) { 1713 case "Object": 1714 case "Array": 1715 return 1; 1716 case "Map": 1717 case "Set": 1718 case "WeakMap": 1719 case "WeakSet": 1720 return 2; 1721 default: 1722 return 0; 1723 } 1724} 1725function getTargetType(value) { 1726 return value["__v_skip"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value)); 1727} 1728function reactive(target) { 1729 if (isReadonly(target)) { 1730 return target; 1731 } 1732 return createReactiveObject( 1733 target, 1734 false, 1735 mutableHandlers, 1736 mutableCollectionHandlers, 1737 reactiveMap 1738 ); 1739} 1740function shallowReactive(target) { 1741 return createReactiveObject( 1742 target, 1743 false, 1744 shallowReactiveHandlers, 1745 shallowCollectionHandlers, 1746 shallowReactiveMap 1747 ); 1748} 1749function readonly(target) { 1750 return createReactiveObject( 1751 target, 1752 true, 1753 readonlyHandlers, 1754 readonlyCollectionHandlers, 1755 readonlyMap 1756 ); 1757} 1758function shallowReadonly(target) { 1759 return createReactiveObject( 1760 target, 1761 true, 1762 shallowReadonlyHandlers, 1763 shallowReadonlyCollectionHandlers, 1764 shallowReadonlyMap 1765 ); 1766} 1767function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) { 1768 if (!isObject$4(target)) { 1769 return target; 1770 } 1771 if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) { 1772 return target; 1773 } 1774 const existingProxy = proxyMap.get(target); 1775 if (existingProxy) { 1776 return existingProxy; 1777 } 1778 const targetType = getTargetType(target); 1779 if (targetType === 0) { 1780 return target; 1781 } 1782 const proxy = new Proxy( 1783 target, 1784 targetType === 2 ? collectionHandlers : baseHandlers 1785 ); 1786 proxyMap.set(target, proxy); 1787 return proxy; 1788} 1789function isReactive(value) { 1790 if (isReadonly(value)) { 1791 return isReactive(value["__v_raw"]); 1792 } 1793 return !!(value && value["__v_isReactive"]); 1794} 1795function isReadonly(value) { 1796 return !!(value && value["__v_isReadonly"]); 1797} 1798function isShallow(value) { 1799 return !!(value && value["__v_isShallow"]); 1800} 1801function isProxy(value) { 1802 return value ? !!value["__v_raw"] : false; 1803} 1804function toRaw(observed) { 1805 const raw = observed && observed["__v_raw"]; 1806 return raw ? toRaw(raw) : observed; 1807} 1808function markRaw(value) { 1809 if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) { 1810 def(value, "__v_skip", true); 1811 } 1812 return value; 1813} 1814const toReactive = (value) => isObject$4(value) ? reactive(value) : value; 1815const toReadonly = (value) => isObject$4(value) ? readonly(value) : value; 1816function isRef(r2) { 1817 return r2 ? r2["__v_isRef"] === true : false; 1818} 1819function ref(value) { 1820 return createRef(value, false); 1821} 1822function shallowRef(value) { 1823 return createRef(value, true); 1824} 1825function createRef(rawValue2, shallow) { 1826 if (isRef(rawValue2)) { 1827 return rawValue2; 1828 } 1829 return new RefImpl(rawValue2, shallow); 1830} 1831class RefImpl { 1832 constructor(value, isShallow2) { 1833 this.dep = new Dep(); 1834 this["__v_isRef"] = true; 1835 this["__v_isShallow"] = false; 1836 this._rawValue = isShallow2 ? value : toRaw(value); 1837 this._value = isShallow2 ? value : toReactive(value); 1838 this["__v_isShallow"] = isShallow2; 1839 } 1840 get value() { 1841 { 1842 this.dep.track(); 1843 } 1844 return this._value; 1845 } 1846 set value(newValue) { 1847 const oldValue = this._rawValue; 1848 const useDirectValue = this["__v_isShallow"] || isShallow(newValue) || isReadonly(newValue); 1849 newValue = useDirectValue ? newValue : toRaw(newValue); 1850 if (hasChanged(newValue, oldValue)) { 1851 this._rawValue = newValue; 1852 this._value = useDirectValue ? newValue : toReactive(newValue); 1853 { 1854 this.dep.trigger(); 1855 } 1856 } 1857 } 1858} 1859function triggerRef(ref2) { 1860 if (ref2.dep) { 1861 { 1862 ref2.dep.trigger(); 1863 } 1864 } 1865} 1866function unref(ref2) { 1867 return isRef(ref2) ? ref2.value : ref2; 1868} 1869function toValue(source) { 1870 return isFunction$4(source) ? source() : unref(source); 1871} 1872const shallowUnwrapHandlers = { 1873 get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)), 1874 set: (target, key, value, receiver) => { 1875 const oldValue = target[key]; 1876 if (isRef(oldValue) && !isRef(value)) { 1877 oldValue.value = value; 1878 return true; 1879 } else { 1880 return Reflect.set(target, key, value, receiver); 1881 } 1882 } 1883}; 1884function proxyRefs(objectWithRefs) { 1885 return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers); 1886} 1887class CustomRefImpl { 1888 constructor(factory2) { 1889 this["__v_isRef"] = true; 1890 this._value = void 0; 1891 const dep = this.dep = new Dep(); 1892 const { get: get2, set: set2 } = factory2(dep.track.bind(dep), dep.trigger.bind(dep)); 1893 this._get = get2; 1894 this._set = set2; 1895 } 1896 get value() { 1897 return this._value = this._get(); 1898 } 1899 set value(newVal) { 1900 this._set(newVal); 1901 } 1902} 1903function customRef(factory2) { 1904 return new CustomRefImpl(factory2); 1905} 1906function toRefs(object) { 1907 const ret = isArray$4(object) ? new Array(object.length) : {}; 1908 for (const key in object) { 1909 ret[key] = propertyToRef(object, key); 1910 } 1911 return ret; 1912} 1913class ObjectRefImpl { 1914 constructor(_object, _key, _defaultValue) { 1915 this._object = _object; 1916 this._key = _key; 1917 this._defaultValue = _defaultValue; 1918 this["__v_isRef"] = true; 1919 this._value = void 0; 1920 } 1921 get value() { 1922 const val = this._object[this._key]; 1923 return this._value = val === void 0 ? this._defaultValue : val; 1924 } 1925 set value(newVal) { 1926 this._object[this._key] = newVal; 1927 } 1928 get dep() { 1929 return getDepFromReactive(toRaw(this._object), this._key); 1930 } 1931} 1932class GetterRefImpl { 1933 constructor(_getter) { 1934 this._getter = _getter; 1935 this["__v_isRef"] = true; 1936 this["__v_isReadonly"] = true; 1937 this._value = void 0; 1938 } 1939 get value() { 1940 return this._value = this._getter(); 1941 } 1942} 1943function toRef(source, key, defaultValue) { 1944 if (isRef(source)) { 1945 return source; 1946 } else if (isFunction$4(source)) { 1947 return new GetterRefImpl(source); 1948 } else if (isObject$4(source) && arguments.length > 1) { 1949 return propertyToRef(source, key, defaultValue); 1950 } else { 1951 return ref(source); 1952 } 1953} 1954function propertyToRef(source, key, defaultValue) { 1955 const val = source[key]; 1956 return isRef(val) ? val : new ObjectRefImpl(source, key, defaultValue); 1957} 1958class ComputedRefImpl { 1959 constructor(fn, setter, isSSR) { 1960 this.fn = fn; 1961 this.setter = setter; 1962 this._value = void 0; 1963 this.dep = new Dep(this); 1964 this.__v_isRef = true; 1965 this.deps = void 0; 1966 this.depsTail = void 0; 1967 this.flags = 16; 1968 this.globalVersion = globalVersion - 1; 1969 this.next = void 0; 1970 this.effect = this; 1971 this["__v_isReadonly"] = !setter; 1972 this.isSSR = isSSR; 1973 } 1974 /** 1975 * @internal 1976 */ 1977 notify() { 1978 this.flags |= 16; 1979 if (!(this.flags & 8) && // avoid infinite self recursion 1980 activeSub !== this) { 1981 batch(this, true); 1982 return true; 1983 } 1984 } 1985 get value() { 1986 const link = this.dep.track(); 1987 refreshComputed(this); 1988 if (link) { 1989 link.version = this.dep.version; 1990 } 1991 return this._value; 1992 } 1993 set value(newValue) { 1994 if (this.setter) { 1995 this.setter(newValue); 1996 } 1997 } 1998} 1999function computed$1(getterOrOptions, debugOptions, isSSR = false) { 2000 let getter; 2001 let setter; 2002 if (isFunction$4(getterOrOptions)) { 2003 getter = getterOrOptions; 2004 } else { 2005 getter = getterOrOptions.get; 2006 setter = getterOrOptions.set; 2007 } 2008 const cRef = new ComputedRefImpl(getter, setter, isSSR); 2009 return cRef; 2010} 2011const TrackOpTypes = { 2012 "GET": "get", 2013 "HAS": "has", 2014 "ITERATE": "iterate" 2015}; 2016const TriggerOpTypes = { 2017 "SET": "set", 2018 "ADD": "add", 2019 "DELETE": "delete", 2020 "CLEAR": "clear" 2021}; 2022const INITIAL_WATCHER_VALUE = {}; 2023const cleanupMap = /* @__PURE__ */ new WeakMap(); 2024let activeWatcher = void 0; 2025function getCurrentWatcher() { 2026 return activeWatcher; 2027} 2028function onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) { 2029 if (owner) { 2030 let cleanups = cleanupMap.get(owner); 2031 if (!cleanups) cleanupMap.set(owner, cleanups = []); 2032 cleanups.push(cleanupFn); 2033 } 2034} 2035function watch$1(source, cb, options = EMPTY_OBJ) { 2036 const { immediate, deep, once, scheduler, augmentJob, call } = options; 2037 const reactiveGetter = (source2) => { 2038 if (deep) return source2; 2039 if (isShallow(source2) || deep === false || deep === 0) 2040 return traverse(source2, 1); 2041 return traverse(source2); 2042 }; 2043 let effect2; 2044 let getter; 2045 let cleanup; 2046 let boundCleanup; 2047 let forceTrigger = false; 2048 let isMultiSource = false; 2049 if (isRef(source)) { 2050 getter = () => source.value; 2051 forceTrigger = isShallow(source); 2052 } else if (isReactive(source)) { 2053 getter = () => reactiveGetter(source); 2054 forceTrigger = true; 2055 } else if (isArray$4(source)) { 2056 isMultiSource = true; 2057 forceTrigger = source.some((s) => isReactive(s) || isShallow(s)); 2058 getter = () => source.map((s) => { 2059 if (isRef(s)) { 2060 return s.value; 2061 } else if (isReactive(s)) { 2062 return reactiveGetter(s); 2063 } else if (isFunction$4(s)) { 2064 return call ? call(s, 2) : s(); 2065 } else ; 2066 }); 2067 } else if (isFunction$4(source)) { 2068 if (cb) { 2069 getter = call ? () => call(source, 2) : source; 2070 } else { 2071 getter = () => { 2072 if (cleanup) { 2073 pauseTracking(); 2074 try { 2075 cleanup(); 2076 } finally { 2077 resetTracking(); 2078 } 2079 } 2080 const currentEffect = activeWatcher; 2081 activeWatcher = effect2; 2082 try { 2083 return call ? call(source, 3, [boundCleanup]) : source(boundCleanup); 2084 } finally { 2085 activeWatcher = currentEffect; 2086 } 2087 }; 2088 } 2089 } else { 2090 getter = NOOP; 2091 } 2092 if (cb && deep) { 2093 const baseGetter = getter; 2094 const depth = deep === true ? Infinity : deep; 2095 getter = () => traverse(baseGetter(), depth); 2096 } 2097 const scope = getCurrentScope(); 2098 const watchHandle = () => { 2099 effect2.stop(); 2100 if (scope && scope.active) { 2101 remove(scope.effects, effect2); 2102 } 2103 }; 2104 if (once && cb) { 2105 const _cb = cb; 2106 cb = (...args) => { 2107 _cb(...args); 2108 watchHandle(); 2109 }; 2110 } 2111 let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE; 2112 const job = (immediateFirstRun) => { 2113 if (!(effect2.flags & 1) || !effect2.dirty && !immediateFirstRun) { 2114 return; 2115 } 2116 if (cb) { 2117 const newValue = effect2.run(); 2118 if (deep || forceTrigger || (isMultiSource ? newValue.some((v2, i) => hasChanged(v2, oldValue[i])) : hasChanged(newValue, oldValue))) { 2119 if (cleanup) { 2120 cleanup(); 2121 } 2122 const currentWatcher = activeWatcher; 2123 activeWatcher = effect2; 2124 try { 2125 const args = [ 2126 newValue, 2127 // pass undefined as the old value when it's changed for the first time 2128 oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue, 2129 boundCleanup 2130 ]; 2131 call ? call(cb, 3, args) : ( 2132 // @ts-expect-error 2133 cb(...args) 2134 ); 2135 oldValue = newValue; 2136 } finally { 2137 activeWatcher = currentWatcher; 2138 } 2139 } 2140 } else { 2141 effect2.run(); 2142 } 2143 }; 2144 if (augmentJob) { 2145 augmentJob(job); 2146 } 2147 effect2 = new ReactiveEffect(getter); 2148 effect2.scheduler = scheduler ? () => scheduler(job, false) : job; 2149 boundCleanup = (fn) => onWatcherCleanup(fn, false, effect2); 2150 cleanup = effect2.onStop = () => { 2151 const cleanups = cleanupMap.get(effect2); 2152 if (cleanups) { 2153 if (call) { 2154 call(cleanups, 4); 2155 } else { 2156 for (const cleanup2 of cleanups) cleanup2(); 2157 } 2158 cleanupMap.delete(effect2); 2159 } 2160 }; 2161 if (cb) { 2162 if (immediate) { 2163 job(true); 2164 } else { 2165 oldValue = effect2.run(); 2166 } 2167 } else if (scheduler) { 2168 scheduler(job.bind(null, true), true); 2169 } else { 2170 effect2.run(); 2171 } 2172 watchHandle.pause = effect2.pause.bind(effect2); 2173 watchHandle.resume = effect2.resume.bind(effect2); 2174 watchHandle.stop = watchHandle; 2175 return watchHandle; 2176} 2177function traverse(value, depth = Infinity, seen2) { 2178 if (depth <= 0 || !isObject$4(value) || value["__v_skip"]) { 2179 return value; 2180 } 2181 seen2 = seen2 || /* @__PURE__ */ new Set(); 2182 if (seen2.has(value)) { 2183 return value; 2184 } 2185 seen2.add(value); 2186 depth--; 2187 if (isRef(value)) { 2188 traverse(value.value, depth, seen2); 2189 } else if (isArray$4(value)) { 2190 for (let i = 0; i < value.length; i++) { 2191 traverse(value[i], depth, seen2); 2192 } 2193 } else if (isSet$1(value) || isMap$1(value)) { 2194 value.forEach((v2) => { 2195 traverse(v2, depth, seen2); 2196 }); 2197 } else if (isPlainObject$4(value)) { 2198 for (const key in value) { 2199 traverse(value[key], depth, seen2); 2200 } 2201 for (const key of Object.getOwnPropertySymbols(value)) { 2202 if (Object.prototype.propertyIsEnumerable.call(value, key)) { 2203 traverse(value[key], depth, seen2); 2204 } 2205 } 2206 } 2207 return value; 2208} 2209/** 2210* @vue/runtime-core v3.5.13 2211* (c) 2018-present Yuxi (Evan) You and Vue contributors 2212* @license MIT
vendor: 4,589 bytes, lines 2213-2376
2213**/ 2214const stack = []; 2215function pushWarningContext(vnode) { 2216 stack.push(vnode); 2217} 2218function popWarningContext() { 2219 stack.pop(); 2220} 2221let isWarning = false; 2222function warn$1(msg, ...args) { 2223 if (isWarning) return; 2224 isWarning = true; 2225 pauseTracking(); 2226 const instance = stack.length ? stack[stack.length - 1].component : null; 2227 const appWarnHandler = instance && instance.appContext.config.warnHandler; 2228 const trace = getComponentTrace(); 2229 if (appWarnHandler) { 2230 callWithErrorHandling( 2231 appWarnHandler, 2232 instance, 2233 11, 2234 [ 2235 // eslint-disable-next-line no-restricted-syntax 2236 msg + args.map((a) => { 2237 var _a, _b; 2238 return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a); 2239 }).join(""), 2240 instance && instance.proxy, 2241 trace.map( 2242 ({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>` 2243 ).join("\n"), 2244 trace 2245 ] 2246 ); 2247 } else { 2248 const warnArgs = [`[Vue warn]: ${msg}`, ...args]; 2249 if (trace.length && // avoid spamming console during tests 2250 true) { 2251 warnArgs.push(` 2252`, ...formatTrace(trace)); 2253 } 2254 console.warn(...warnArgs); 2255 } 2256 resetTracking(); 2257 isWarning = false; 2258} 2259function getComponentTrace() { 2260 let currentVNode = stack[stack.length - 1]; 2261 if (!currentVNode) { 2262 return []; 2263 } 2264 const normalizedStack = []; 2265 while (currentVNode) { 2266 const last = normalizedStack[0]; 2267 if (last && last.vnode === currentVNode) { 2268 last.recurseCount++; 2269 } else { 2270 normalizedStack.push({ 2271 vnode: currentVNode, 2272 recurseCount: 0 2273 }); 2274 } 2275 const parentInstance = currentVNode.component && currentVNode.component.parent; 2276 currentVNode = parentInstance && parentInstance.vnode; 2277 } 2278 return normalizedStack; 2279} 2280function formatTrace(trace) { 2281 const logs = []; 2282 trace.forEach((entry, i) => { 2283 logs.push(...i === 0 ? [] : [` 2284`], ...formatTraceEntry(entry)); 2285 }); 2286 return logs; 2287} 2288function formatTraceEntry({ vnode, recurseCount }) { 2289 const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``; 2290 const isRoot = vnode.component ? vnode.component.parent == null : false; 2291 const open2 = ` at <${formatComponentName( 2292 vnode.component, 2293 vnode.type, 2294 isRoot 2295 )}`; 2296 const close = `>` + postfix; 2297 return vnode.props ? [open2, ...formatProps(vnode.props), close] : [open2 + close]; 2298} 2299function formatProps(props) { 2300 const res = []; 2301 const keys2 = Object.keys(props); 2302 keys2.slice(0, 3).forEach((key) => { 2303 res.push(...formatProp(key, props[key])); 2304 }); 2305 if (keys2.length > 3) { 2306 res.push(` ...`); 2307 } 2308 return res; 2309} 2310function formatProp(key, value, raw) { 2311 if (isString$1(value)) { 2312 value = JSON.stringify(value); 2313 return raw ? value : [`${key}=${value}`]; 2314 } else if (typeof value === "number" || typeof value === "boolean" || value == null) { 2315 return raw ? value : [`${key}=${value}`]; 2316 } else if (isRef(value)) { 2317 value = formatProp(key, toRaw(value.value), true); 2318 return raw ? value : [`${key}=Ref<`, value, `>`]; 2319 } else if (isFunction$4(value)) { 2320 return [`${key}=fn${value.name ? `<${value.name}>` : ``}`]; 2321 } else { 2322 value = toRaw(value); 2323 return raw ? value : [`${key}=`, value]; 2324 } 2325} 2326function assertNumber(val, type) { 2327 return; 2328} 2329const ErrorCodes = { 2330 "SETUP_FUNCTION": 0, 2331 "0": "SETUP_FUNCTION", 2332 "RENDER_FUNCTION": 1, 2333 "1": "RENDER_FUNCTION", 2334 "NATIVE_EVENT_HANDLER": 5, 2335 "5": "NATIVE_EVENT_HANDLER", 2336 "COMPONENT_EVENT_HANDLER": 6, 2337 "6": "COMPONENT_EVENT_HANDLER", 2338 "VNODE_HOOK": 7, 2339 "7": "VNODE_HOOK", 2340 "DIRECTIVE_HOOK": 8, 2341 "8": "DIRECTIVE_HOOK", 2342 "TRANSITION_HOOK": 9, 2343 "9": "TRANSITION_HOOK", 2344 "APP_ERROR_HANDLER": 10, 2345 "10": "APP_ERROR_HANDLER", 2346 "APP_WARN_HANDLER": 11, 2347 "11": "APP_WARN_HANDLER", 2348 "FUNCTION_REF": 12, 2349 "12": "FUNCTION_REF", 2350 "ASYNC_COMPONENT_LOADER": 13, 2351 "13": "ASYNC_COMPONENT_LOADER", 2352 "SCHEDULER": 14, 2353 "14": "SCHEDULER", 2354 "COMPONENT_UPDATE": 15, 2355 "15": "COMPONENT_UPDATE", 2356 "APP_UNMOUNT_CLEANUP": 16, 2357 "16": "APP_UNMOUNT_CLEANUP" 2358}; 2359const ErrorTypeStrings$1 = { 2360 ["sp"]: "serverPrefetch hook", 2361 ["bc"]: "beforeCreate hook", 2362 ["c"]: "created hook", 2363 ["bm"]: "beforeMount hook", 2364 ["m"]: "mounted hook", 2365 ["bu"]: "beforeUpdate hook", 2366 ["u"]: "updated", 2367 ["bum"]: "beforeUnmount hook", 2368 ["um"]: "unmounted hook", 2369 ["a"]: "activated hook", 2370 ["da"]: "deactivated hook", 2371 ["ec"]: "errorCaptured hook", 2372 ["rtc"]: "renderTracked hook", 2373 ["rtg"]: "renderTriggered hook", 2374 [0]: "setup function", 2375 [1]: "render function", 2376 [2]: "watcher getter",
vendor: 1,486 bytes, lines 2377-2424
2377 [3]: "watcher callback", 2378 [4]: "watcher cleanup function", 2379 [5]: "native event handler", 2380 [6]: "component event handler", 2381 [7]: "vnode hook", 2382 [8]: "directive hook", 2383 [9]: "transition hook", 2384 [10]: "app errorHandler", 2385 [11]: "app warnHandler", 2386 [12]: "ref function", 2387 [13]: "async component loader", 2388 [14]: "scheduler flush", 2389 [15]: "component update", 2390 [16]: "app unmount cleanup function" 2391}; 2392function callWithErrorHandling(fn, instance, type, args) { 2393 try { 2394 return args ? fn(...args) : fn(); 2395 } catch (err) { 2396 handleError(err, instance, type); 2397 } 2398} 2399function callWithAsyncErrorHandling(fn, instance, type, args) { 2400 if (isFunction$4(fn)) { 2401 const res = callWithErrorHandling(fn, instance, type, args); 2402 if (res && isPromise$1(res)) { 2403 res.catch((err) => { 2404 handleError(err, instance, type); 2405 }); 2406 } 2407 return res; 2408 } 2409 if (isArray$4(fn)) { 2410 const values = []; 2411 for (let i = 0; i < fn.length; i++) { 2412 values.push(callWithAsyncErrorHandling(fn[i], instance, type, args)); 2413 } 2414 return values; 2415 } 2416} 2417function handleError(err, instance, type, throwInDev = true) { 2418 const contextVNode = instance ? instance.vnode : null; 2419 const { errorHandler, throwUnhandledErrorInProduction } = instance && instance.appContext.config || EMPTY_OBJ; 2420 if (instance) { 2421 let cur = instance.parent; 2422 const exposedInstance = instance.proxy; 2423 const errorInfo = `https://vuejs.org/error-reference/#runtime-${type}`; 2424 while (cur) {
2425 const errorCapturedHooks = cur.ec; 2426 if (errorCapturedHooks) { 2427 for (let i = 0; i < errorCapturedHooks.length; i++) { 2428 if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) { 2429 return; 2430 } 2431 } 2432 } 2433 cur = cur.parent; 2434 } 2435 if (errorHandler) { 2436 pauseTracking(); 2437 callWithErrorHandling(errorHandler, null, 10, [ 2438 err, 2439 exposedInstance, 2440 errorInfo 2441 ]); 2442 resetTracking(); 2443 return; 2444 } 2445 } 2446 logError(err, type, contextVNode, throwInDev, throwUnhandledErrorInProduction); 2447} 2448function logError(err, type, contextVNode, throwInDev = true, throwInProd = false) { 2449 if (throwInProd) { 2450 throw err; 2451 } else { 2452 console.error(err); 2453 } 2454} 2455const queue = []; 2456let flushIndex = -1; 2457const pendingPostFlushCbs = []; 2458let activePostFlushCbs = null; 2459let postFlushIndex = 0; 2460const resolvedPromise = /* @__PURE__ */ Promise.resolve(); 2461let currentFlushPromise = null; 2462function nextTick(fn) { 2463 const p2 = currentFlushPromise || resolvedPromise; 2464 return fn ? p2.then(this ? fn.bind(this) : fn) : p2; 2465} 2466function findInsertionIndex$1(id) { 2467 let start = flushIndex + 1; 2468 let end = queue.length; 2469 while (start < end) { 2470 const middle = start + end >>> 1; 2471 const middleJob = queue[middle]; 2472 const middleJobId = getId(middleJob); 2473 if (middleJobId < id || middleJobId === id && middleJob.flags & 2) { 2474 start = middle + 1; 2475 } else { 2476 end = middle; 2477 } 2478 } 2479 return start; 2480} 2481function queueJob(job) { 2482 if (!(job.flags & 1)) { 2483 const jobId = getId(job); 2484 const lastJob = queue[queue.length - 1]; 2485 if (!lastJob || // fast path when the job id is larger than the tail 2486 !(job.flags & 2) && jobId >= getId(lastJob)) { 2487 queue.push(job); 2488 } else { 2489 queue.splice(findInsertionIndex$1(jobId), 0, job); 2490 } 2491 job.flags |= 1; 2492 queueFlush(); 2493 } 2494} 2495function queueFlush() { 2496 if (!currentFlushPromise) { 2497 currentFlushPromise = resolvedPromise.then(flushJobs); 2498 } 2499} 2500function queuePostFlushCb(cb) { 2501 if (!isArray$4(cb)) { 2502 if (activePostFlushCbs && cb.id === -1) { 2503 activePostFlushCbs.splice(postFlushIndex + 1, 0, cb); 2504 } else if (!(cb.flags & 1)) { 2505 pendingPostFlushCbs.push(cb); 2506 cb.flags |= 1; 2507 } 2508 } else { 2509 pendingPostFlushCbs.push(...cb); 2510 } 2511 queueFlush(); 2512} 2513function flushPreFlushCbs(instance, seen2, i = flushIndex + 1) { 2514 for (; i < queue.length; i++) { 2515 const cb = queue[i]; 2516 if (cb && cb.flags & 2) { 2517 if (instance && cb.id !== instance.uid) { 2518 continue; 2519 } 2520 queue.splice(i, 1); 2521 i--; 2522 if (cb.flags & 4) { 2523 cb.flags &= -2; 2524 } 2525 cb(); 2526 if (!(cb.flags & 4)) { 2527 cb.flags &= -2; 2528 } 2529 } 2530 } 2531} 2532function flushPostFlushCbs(seen2) { 2533 if (pendingPostFlushCbs.length) { 2534 const deduped = [...new Set(pendingPostFlushCbs)].sort( 2535 (a, b2) => getId(a) - getId(b2) 2536 ); 2537 pendingPostFlushCbs.length = 0; 2538 if (activePostFlushCbs) { 2539 activePostFlushCbs.push(...deduped); 2540 return; 2541 } 2542 activePostFlushCbs = deduped; 2543 for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { 2544 const cb = activePostFlushCbs[postFlushIndex]; 2545 if (cb.flags & 4) { 2546 cb.flags &= -2; 2547 } 2548 if (!(cb.flags & 8)) cb(); 2549 cb.flags &= -2; 2550 } 2551 activePostFlushCbs = null; 2552 postFlushIndex = 0; 2553 } 2554} 2555const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id; 2556function flushJobs(seen2) { 2557 try { 2558 for (flushIndex = 0; flushIndex < queue.length; flushIndex++) { 2559 const job = queue[flushIndex]; 2560 if (job && !(job.flags & 8)) { 2561 if (false) ; 2562 if (job.flags & 4) { 2563 job.flags &= ~1; 2564 } 2565 callWithErrorHandling( 2566 job, 2567 job.i, 2568 job.i ? 15 : 14 2569 ); 2570 if (!(job.flags & 4)) { 2571 job.flags &= ~1; 2572 } 2573 } 2574 } 2575 } finally { 2576 for (; flushIndex < queue.length; flushIndex++) { 2577 const job = queue[flushIndex]; 2578 if (job) { 2579 job.flags &= -2; 2580 } 2581 } 2582 flushIndex = -1; 2583 queue.length = 0; 2584 flushPostFlushCbs(); 2585 currentFlushPromise = null; 2586 if (queue.length || pendingPostFlushCbs.length) { 2587 flushJobs(); 2588 } 2589 } 2590} 2591let devtools$1; 2592let buffer = []; 2593function setDevtoolsHook$1(hook, target) { 2594 var _a, _b; 2595 devtools$1 = hook; 2596 if (devtools$1) { 2597 devtools$1.enabled = true; 2598 buffer.forEach(({ event, args }) => devtools$1.emit(event, ...args)); 2599 buffer = []; 2600 } else if ( 2601 // handle late devtools injection - only do this if we are in an actual 2602 // browser environment to avoid the timer handle stalling test runner exit 2603 // (#4815) 2604 typeof window !== "undefined" && // some envs mock window but not fully 2605 window.HTMLElement && // also exclude jsdom 2606 // eslint-disable-next-line no-restricted-syntax 2607 !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom")) 2608 ) { 2609 const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []; 2610 replay.push((newHook) => {
2611 setDevtoolsHook$1(newHook, target); 2612 }); 2613 setTimeout(() => { 2614 if (!devtools$1) { 2615 target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null; 2616 buffer = []; 2617 } 2618 }, 3e3); 2619 } else { 2620 buffer = []; 2621 } 2622} 2623let currentRenderingInstance = null; 2624let currentScopeId = null; 2625function setCurrentRenderingInstance(instance) { 2626 const prev = currentRenderingInstance; 2627 currentRenderingInstance = instance; 2628 currentScopeId = instance && instance.type.__scopeId || null; 2629 return prev; 2630} 2631function pushScopeId(id) { 2632 currentScopeId = id; 2633} 2634function popScopeId() { 2635 currentScopeId = null; 2636} 2637const withScopeId = (_id) => withCtx; 2638function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) { 2639 if (!ctx) return fn; 2640 if (fn._n) { 2641 return fn; 2642 } 2643 const renderFnWithContext = (...args) => { 2644 if (renderFnWithContext._d) { 2645 setBlockTracking(-1); 2646 } 2647 const prevInstance = setCurrentRenderingInstance(ctx); 2648 let res; 2649 try { 2650 res = fn(...args); 2651 } finally { 2652 setCurrentRenderingInstance(prevInstance); 2653 if (renderFnWithContext._d) { 2654 setBlockTracking(1); 2655 } 2656 } 2657 return res; 2658 }; 2659 renderFnWithContext._n = true; 2660 renderFnWithContext._c = true; 2661 renderFnWithContext._d = true; 2662 return renderFnWithContext; 2663} 2664function withDirectives(vnode, directives) { 2665 if (currentRenderingInstance === null) { 2666 return vnode; 2667 } 2668 const instance = getComponentPublicInstance(currentRenderingInstance); 2669 const bindings = vnode.dirs || (vnode.dirs = []); 2670 for (let i = 0; i < directives.length; i++) { 2671 let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i]; 2672 if (dir) { 2673 if (isFunction$4(dir)) { 2674 dir = { 2675 mounted: dir, 2676 updated: dir 2677 }; 2678 } 2679 if (dir.deep) { 2680 traverse(value); 2681 } 2682 bindings.push({ 2683 dir, 2684 instance, 2685 value, 2686 oldValue: void 0, 2687 arg, 2688 modifiers 2689 }); 2690 } 2691 } 2692 return vnode; 2693} 2694function invokeDirectiveHook(vnode, prevVNode, instance, name) { 2695 const bindings = vnode.dirs; 2696 const oldBindings = prevVNode && prevVNode.dirs; 2697 for (let i = 0; i < bindings.length; i++) { 2698 const binding = bindings[i]; 2699 if (oldBindings) { 2700 binding.oldValue = oldBindings[i].value; 2701 } 2702 let hook = binding.dir[name]; 2703 if (hook) { 2704 pauseTracking(); 2705 callWithAsyncErrorHandling(hook, instance, 8, [ 2706 vnode.el, 2707 binding, 2708 vnode, 2709 prevVNode 2710 ]); 2711 resetTracking(); 2712 } 2713 } 2714} 2715const TeleportEndKey = Symbol("_vte"); 2716const isTeleport = (type) => type.__isTeleport; 2717const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === ""); 2718const isTeleportDeferred = (props) => props && (props.defer || props.defer === ""); 2719const isTargetSVG = (target) => typeof SVGElement !== "undefined" && target instanceof SVGElement; 2720const isTargetMathML = (target) => typeof MathMLElement === "function" && target instanceof MathMLElement; 2721const resolveTarget = (props, select) => { 2722 const targetSelector = props && props.to; 2723 if (isString$1(targetSelector)) { 2724 if (!select) { 2725 return null; 2726 } else { 2727 const target = select(targetSelector); 2728 return target; 2729 } 2730 } else { 2731 return targetSelector; 2732 } 2733}; 2734const TeleportImpl = { 2735 name: "Teleport", 2736 __isTeleport: true, 2737 process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals) { 2738 const { 2739 mc: mountChildren, 2740 pc: patchChildren, 2741 pbc: patchBlockChildren, 2742 o: { insert, querySelector, createText, createComment } 2743 } = internals; 2744 const disabled = isTeleportDisabled(n2.props); 2745 let { shapeFlag, children, dynamicChildren } = n2; 2746 if (n1 == null) { 2747 const placeholder = n2.el = createText(""); 2748 const mainAnchor = n2.anchor = createText(""); 2749 insert(placeholder, container, anchor); 2750 insert(mainAnchor, container, anchor); 2751 const mount = (container2, anchor2) => { 2752 if (shapeFlag & 16) { 2753 if (parentComponent && parentComponent.isCE) { 2754 parentComponent.ce._teleportTarget = container2; 2755 } 2756 mountChildren( 2757 children, 2758 container2, 2759 anchor2, 2760 parentComponent, 2761 parentSuspense, 2762 namespace, 2763 slotScopeIds, 2764 optimized 2765 ); 2766 } 2767 }; 2768 const mountToTarget = () => { 2769 const target = n2.target = resolveTarget(n2.props, querySelector); 2770 const targetAnchor = prepareAnchor(target, n2, createText, insert); 2771 if (target) { 2772 if (namespace !== "svg" && isTargetSVG(target)) { 2773 namespace = "svg"; 2774 } else if (namespace !== "mathml" && isTargetMathML(target)) { 2775 namespace = "mathml"; 2776 } 2777 if (!disabled) { 2778 mount(target, targetAnchor); 2779 updateCssVars(n2, false); 2780 } 2781 } 2782 }; 2783 if (disabled) { 2784 mount(container, mainAnchor); 2785 updateCssVars(n2, true); 2786 } 2787 if (isTeleportDeferred(n2.props)) { 2788 queuePostRenderEffect(() => { 2789 mountToTarget(); 2790 n2.el.__isMounted = true; 2791 }, parentSuspense); 2792 } else { 2793 mountToTarget(); 2794 } 2795 } else { 2796 if (isTeleportDeferred(n2.props) && !n1.el.__isMounted) { 2797 queuePostRenderEffect(() => { 2798 TeleportImpl.process( 2799 n1, 2800 n2, 2801 container, 2802 anchor, 2803 parentComponent, 2804 parentSuspense, 2805 namespace, 2806 slotScopeIds, 2807 optimized, 2808 internals 2809 ); 2810 delete n1.el.__isMounted; 2811 }, parentSuspense); 2812 return; 2813 } 2814 n2.el = n1.el; 2815 n2.targetStart = n1.targetStart; 2816 const mainAnchor = n2.anchor = n1.anchor; 2817 const target = n2.target = n1.target; 2818 const targetAnchor = n2.targetAnchor = n1.targetAnchor; 2819 const wasDisabled = isTeleportDisabled(n1.props); 2820 const currentContainer = wasDisabled ? container : target; 2821 const currentAnchor = wasDisabled ? mainAnchor : targetAnchor; 2822 if (namespace === "svg" || isTargetSVG(target)) { 2823 namespace = "svg"; 2824 } else if (namespace === "mathml" || isTargetMathML(target)) { 2825 namespace = "mathml"; 2826 } 2827 if (dynamicChildren) { 2828 patchBlockChildren( 2829 n1.dynamicChildren, 2830 dynamicChildren, 2831 currentContainer, 2832 parentComponent, 2833 parentSuspense, 2834 namespace, 2835 slotScopeIds 2836 ); 2837 traverseStaticChildren(n1, n2, true); 2838 } else if (!optimized) { 2839 patchChildren( 2840 n1, 2841 n2, 2842 currentContainer, 2843 currentAnchor, 2844 parentComponent, 2845 parentSuspense, 2846 namespace, 2847 slotScopeIds, 2848 false 2849 ); 2850 } 2851 if (disabled) { 2852 if (!wasDisabled) { 2853 moveTeleport( 2854 n2, 2855 container, 2856 mainAnchor, 2857 internals, 2858 1 2859 ); 2860 } else { 2861 if (n2.props && n1.props && n2.props.to !== n1.props.to) { 2862 n2.props.to = n1.props.to; 2863 } 2864 } 2865 } else { 2866 if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) { 2867 const nextTarget = n2.target = resolveTarget( 2868 n2.props, 2869 querySelector 2870 ); 2871 if (nextTarget) { 2872 moveTeleport( 2873 n2, 2874 nextTarget, 2875 null, 2876 internals, 2877 0 2878 ); 2879 } 2880 } else if (wasDisabled) { 2881 moveTeleport( 2882 n2, 2883 target, 2884 targetAnchor, 2885 internals, 2886 1 2887 ); 2888 } 2889 } 2890 updateCssVars(n2, disabled); 2891 } 2892 }, 2893 remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) { 2894 const { 2895 shapeFlag, 2896 children, 2897 anchor, 2898 targetStart, 2899 targetAnchor, 2900 target, 2901 props 2902 } = vnode; 2903 if (target) {
2904 hostRemove(targetStart); 2905 hostRemove(targetAnchor); 2906 } 2907 doRemove && hostRemove(anchor); 2908 if (shapeFlag & 16) { 2909 const shouldRemove = doRemove || !isTeleportDisabled(props); 2910 for (let i = 0; i < children.length; i++) { 2911 const child = children[i]; 2912 unmount( 2913 child, 2914 parentComponent, 2915 parentSuspense, 2916 shouldRemove, 2917 !!child.dynamicChildren 2918 ); 2919 } 2920 } 2921 }, 2922 move: moveTeleport, 2923 hydrate: hydrateTeleport 2924}; 2925function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) { 2926 if (moveType === 0) { 2927 insert(vnode.targetAnchor, container, parentAnchor); 2928 } 2929 const { el, anchor, shapeFlag, children, props } = vnode; 2930 const isReorder = moveType === 2; 2931 if (isReorder) { 2932 insert(el, container, parentAnchor); 2933 } 2934 if (!isReorder || isTeleportDisabled(props)) { 2935 if (shapeFlag & 16) { 2936 for (let i = 0; i < children.length; i++) { 2937 move( 2938 children[i], 2939 container, 2940 parentAnchor, 2941 2 2942 ); 2943 } 2944 } 2945 } 2946 if (isReorder) { 2947 insert(anchor, container, parentAnchor); 2948 } 2949} 2950function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { 2951 o: { nextSibling, parentNode, querySelector, insert, createText } 2952}, hydrateChildren) { 2953 const target = vnode.target = resolveTarget( 2954 vnode.props, 2955 querySelector 2956 ); 2957 if (target) { 2958 const disabled = isTeleportDisabled(vnode.props); 2959 const targetNode = target._lpa || target.firstChild; 2960 if (vnode.shapeFlag & 16) { 2961 if (disabled) { 2962 vnode.anchor = hydrateChildren( 2963 nextSibling(node), 2964 vnode, 2965 parentNode(node), 2966 parentComponent, 2967 parentSuspense, 2968 slotScopeIds, 2969 optimized 2970 ); 2971 vnode.targetStart = targetNode; 2972 vnode.targetAnchor = targetNode && nextSibling(targetNode); 2973 } else { 2974 vnode.anchor = nextSibling(node); 2975 let targetAnchor = targetNode; 2976 while (targetAnchor) { 2977 if (targetAnchor && targetAnchor.nodeType === 8) { 2978 if (targetAnchor.data === "teleport start anchor") { 2979 vnode.targetStart = targetAnchor; 2980 } else if (targetAnchor.data === "teleport anchor") { 2981 vnode.targetAnchor = targetAnchor; 2982 target._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor); 2983 break; 2984 } 2985 } 2986 targetAnchor = nextSibling(targetAnchor); 2987 } 2988 if (!vnode.targetAnchor) { 2989 prepareAnchor(target, vnode, createText, insert); 2990 } 2991 hydrateChildren( 2992 targetNode && nextSibling(targetNode), 2993 vnode, 2994 target, 2995 parentComponent, 2996 parentSuspense, 2997 slotScopeIds, 2998 optimized 2999 ); 3000 } 3001 } 3002 updateCssVars(vnode, disabled); 3003 } 3004 return vnode.anchor && nextSibling(vnode.anchor); 3005} 3006const Teleport = TeleportImpl; 3007function updateCssVars(vnode, isDisabled) { 3008 const ctx = vnode.ctx; 3009 if (ctx && ctx.ut) { 3010 let node, anchor; 3011 if (isDisabled) { 3012 node = vnode.el; 3013 anchor = vnode.anchor; 3014 } else { 3015 node = vnode.targetStart; 3016 anchor = vnode.targetAnchor; 3017 } 3018 while (node && node !== anchor) { 3019 if (node.nodeType === 1) node.setAttribute("data-v-owner", ctx.uid); 3020 node = node.nextSibling; 3021 } 3022 ctx.ut(); 3023 } 3024} 3025function prepareAnchor(target, vnode, createText, insert) { 3026 const targetStart = vnode.targetStart = createText(""); 3027 const targetAnchor = vnode.targetAnchor = createText(""); 3028 targetStart[TeleportEndKey] = targetAnchor; 3029 if (target) { 3030 insert(targetStart, target); 3031 insert(targetAnchor, target); 3032 } 3033 return targetAnchor; 3034} 3035const leaveCbKey = Symbol("_leaveCb"); 3036const enterCbKey$1 = Symbol("_enterCb"); 3037function useTransitionState() { 3038 const state = { 3039 isMounted: false, 3040 isLeaving: false, 3041 isUnmounting: false, 3042 leavingVNodes: /* @__PURE__ */ new Map() 3043 }; 3044 onMounted(() => { 3045 state.isMounted = true; 3046 }); 3047 onBeforeUnmount(() => { 3048 state.isUnmounting = true; 3049 }); 3050 return state; 3051} 3052const TransitionHookValidator = [Function, Array]; 3053const BaseTransitionPropsValidators = { 3054 mode: String, 3055 appear: Boolean, 3056 persisted: Boolean, 3057 // enter 3058 onBeforeEnter: TransitionHookValidator, 3059 onEnter: TransitionHookValidator, 3060 onAfterEnter: TransitionHookValidator, 3061 onEnterCancelled: TransitionHookValidator, 3062 // leave 3063 onBeforeLeave: TransitionHookValidator, 3064 onLeave: TransitionHookValidator, 3065 onAfterLeave: TransitionHookValidator, 3066 onLeaveCancelled: TransitionHookValidator, 3067 // appear 3068 onBeforeAppear: TransitionHookValidator, 3069 onAppear: TransitionHookValidator, 3070 onAfterAppear: TransitionHookValidator, 3071 onAppearCancelled: TransitionHookValidator 3072}; 3073const recursiveGetSubtree = (instance) => { 3074 const subTree = instance.subTree; 3075 return subTree.component ? recursiveGetSubtree(subTree.component) : subTree; 3076}; 3077const BaseTransitionImpl = { 3078 name: `BaseTransition`, 3079 props: BaseTransitionPropsValidators, 3080 setup(props, { slots }) { 3081 const instance = getCurrentInstance(); 3082 const state = useTransitionState(); 3083 return () => { 3084 const children = slots.default && getTransitionRawChildren(slots.default(), true); 3085 if (!children || !children.length) { 3086 return; 3087 } 3088 const child = findNonCommentChild(children); 3089 const rawProps = toRaw(props); 3090 const { mode } = rawProps; 3091 if (state.isLeaving) { 3092 return emptyPlaceholder(child); 3093 } 3094 const innerChild = getInnerChild$1(child); 3095 if (!innerChild) { 3096 return emptyPlaceholder(child); 3097 } 3098 let enterHooks = resolveTransitionHooks( 3099 innerChild, 3100 rawProps, 3101 state, 3102 instance, 3103 // #11061, ensure enterHooks is fresh after clone 3104 (hooks) => enterHooks = hooks 3105 ); 3106 if (innerChild.type !== Comment) { 3107 setTransitionHooks(innerChild, enterHooks); 3108 } 3109 let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree); 3110 if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
vendor: 4,439 bytes, lines 3111-3274
3111 let leavingHooks = resolveTransitionHooks( 3112 oldInnerChild, 3113 rawProps, 3114 state, 3115 instance 3116 ); 3117 setTransitionHooks(oldInnerChild, leavingHooks); 3118 if (mode === "out-in" && innerChild.type !== Comment) { 3119 state.isLeaving = true; 3120 leavingHooks.afterLeave = () => { 3121 state.isLeaving = false; 3122 if (!(instance.job.flags & 8)) { 3123 instance.update(); 3124 } 3125 delete leavingHooks.afterLeave; 3126 oldInnerChild = void 0; 3127 }; 3128 return emptyPlaceholder(child); 3129 } else if (mode === "in-out" && innerChild.type !== Comment) { 3130 leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => { 3131 const leavingVNodesCache = getLeavingNodesForType( 3132 state, 3133 oldInnerChild 3134 ); 3135 leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild; 3136 el[leaveCbKey] = () => { 3137 earlyRemove(); 3138 el[leaveCbKey] = void 0; 3139 delete enterHooks.delayedLeave; 3140 oldInnerChild = void 0; 3141 }; 3142 enterHooks.delayedLeave = () => { 3143 delayedLeave(); 3144 delete enterHooks.delayedLeave; 3145 oldInnerChild = void 0; 3146 }; 3147 }; 3148 } else { 3149 oldInnerChild = void 0; 3150 } 3151 } else if (oldInnerChild) { 3152 oldInnerChild = void 0; 3153 } 3154 return child; 3155 }; 3156 } 3157}; 3158function findNonCommentChild(children) { 3159 let child = children[0]; 3160 if (children.length > 1) { 3161 for (const c2 of children) { 3162 if (c2.type !== Comment) { 3163 child = c2; 3164 break; 3165 } 3166 } 3167 } 3168 return child; 3169} 3170const BaseTransition = BaseTransitionImpl; 3171function getLeavingNodesForType(state, vnode) { 3172 const { leavingVNodes } = state; 3173 let leavingVNodesCache = leavingVNodes.get(vnode.type); 3174 if (!leavingVNodesCache) { 3175 leavingVNodesCache = /* @__PURE__ */ Object.create(null); 3176 leavingVNodes.set(vnode.type, leavingVNodesCache); 3177 } 3178 return leavingVNodesCache; 3179} 3180function resolveTransitionHooks(vnode, props, state, instance, postClone) { 3181 const { 3182 appear, 3183 mode, 3184 persisted = false, 3185 onBeforeEnter, 3186 onEnter, 3187 onAfterEnter, 3188 onEnterCancelled, 3189 onBeforeLeave, 3190 onLeave, 3191 onAfterLeave, 3192 onLeaveCancelled, 3193 onBeforeAppear, 3194 onAppear, 3195 onAfterAppear, 3196 onAppearCancelled 3197 } = props; 3198 const key = String(vnode.key); 3199 const leavingVNodesCache = getLeavingNodesForType(state, vnode); 3200 const callHook2 = (hook, args) => { 3201 hook && callWithAsyncErrorHandling( 3202 hook, 3203 instance, 3204 9, 3205 args 3206 ); 3207 }; 3208 const callAsyncHook = (hook, args) => { 3209 const done = args[1]; 3210 callHook2(hook, args); 3211 if (isArray$4(hook)) { 3212 if (hook.every((hook2) => hook2.length <= 1)) done(); 3213 } else if (hook.length <= 1) { 3214 done(); 3215 } 3216 }; 3217 const hooks = { 3218 mode, 3219 persisted, 3220 beforeEnter(el) { 3221 let hook = onBeforeEnter; 3222 if (!state.isMounted) { 3223 if (appear) { 3224 hook = onBeforeAppear || onBeforeEnter; 3225 } else { 3226 return; 3227 } 3228 } 3229 if (el[leaveCbKey]) { 3230 el[leaveCbKey]( 3231 true 3232 /* cancelled */ 3233 ); 3234 } 3235 const leavingVNode = leavingVNodesCache[key]; 3236 if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) { 3237 leavingVNode.el[leaveCbKey](); 3238 } 3239 callHook2(hook, [el]); 3240 }, 3241 enter(el) { 3242 let hook = onEnter; 3243 let afterHook = onAfterEnter; 3244 let cancelHook = onEnterCancelled; 3245 if (!state.isMounted) { 3246 if (appear) { 3247 hook = onAppear || onEnter; 3248 afterHook = onAfterAppear || onAfterEnter; 3249 cancelHook = onAppearCancelled || onEnterCancelled; 3250 } else { 3251 return; 3252 } 3253 } 3254 let called = false; 3255 const done = el[enterCbKey$1] = (cancelled) => { 3256 if (called) return; 3257 called = true; 3258 if (cancelled) { 3259 callHook2(cancelHook, [el]); 3260 } else { 3261 callHook2(afterHook, [el]); 3262 } 3263 if (hooks.delayedLeave) { 3264 hooks.delayedLeave(); 3265 } 3266 el[enterCbKey$1] = void 0; 3267 }; 3268 if (hook) { 3269 callAsyncHook(hook, [el, done]); 3270 } else { 3271 done(); 3272 } 3273 }, 3274 leave(el, remove2) {
3275 const key2 = String(vnode.key); 3276 if (el[enterCbKey$1]) { 3277 el[enterCbKey$1]( 3278 true 3279 /* cancelled */ 3280 ); 3281 } 3282 if (state.isUnmounting) { 3283 return remove2(); 3284 } 3285 callHook2(onBeforeLeave, [el]); 3286 let called = false; 3287 const done = el[leaveCbKey] = (cancelled) => { 3288 if (called) return; 3289 called = true; 3290 remove2(); 3291 if (cancelled) { 3292 callHook2(onLeaveCancelled, [el]); 3293 } else { 3294 callHook2(onAfterLeave, [el]); 3295 } 3296 el[leaveCbKey] = void 0; 3297 if (leavingVNodesCache[key2] === vnode) { 3298 delete leavingVNodesCache[key2]; 3299 } 3300 }; 3301 leavingVNodesCache[key2] = vnode; 3302 if (onLeave) { 3303 callAsyncHook(onLeave, [el, done]); 3304 } else { 3305 done(); 3306 } 3307 }, 3308 clone(vnode2) { 3309 const hooks2 = resolveTransitionHooks( 3310 vnode2, 3311 props, 3312 state, 3313 instance, 3314 postClone 3315 ); 3316 if (postClone) postClone(hooks2); 3317 return hooks2; 3318 } 3319 }; 3320 return hooks; 3321} 3322function emptyPlaceholder(vnode) { 3323 if (isKeepAlive(vnode)) { 3324 vnode = cloneVNode(vnode); 3325 vnode.children = null; 3326 return vnode; 3327 } 3328} 3329function getInnerChild$1(vnode) { 3330 if (!isKeepAlive(vnode)) { 3331 if (isTeleport(vnode.type) && vnode.children) { 3332 return findNonCommentChild(vnode.children); 3333 } 3334 return vnode; 3335 } 3336 const { shapeFlag, children } = vnode; 3337 if (children) { 3338 if (shapeFlag & 16) { 3339 return children[0]; 3340 } 3341 if (shapeFlag & 32 && isFunction$4(children.default)) { 3342 return children.default(); 3343 } 3344 } 3345} 3346function setTransitionHooks(vnode, hooks) { 3347 if (vnode.shapeFlag & 6 && vnode.component) { 3348 vnode.transition = hooks; 3349 setTransitionHooks(vnode.component.subTree, hooks); 3350 } else if (vnode.shapeFlag & 128) { 3351 vnode.ssContent.transition = hooks.clone(vnode.ssContent); 3352 vnode.ssFallback.transition = hooks.clone(vnode.ssFallback); 3353 } else { 3354 vnode.transition = hooks; 3355 } 3356} 3357function getTransitionRawChildren(children, keepComment = false, parentKey) { 3358 let ret = []; 3359 let keyedFragmentCount = 0; 3360 for (let i = 0; i < children.length; i++) {
3361 let child = children[i]; 3362 const key = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i); 3363 if (child.type === Fragment) { 3364 if (child.patchFlag & 128) keyedFragmentCount++; 3365 ret = ret.concat( 3366 getTransitionRawChildren(child.children, keepComment, key) 3367 ); 3368 } else if (keepComment || child.type !== Comment) { 3369 ret.push(key != null ? cloneVNode(child, { key }) : child); 3370 } 3371 } 3372 if (keyedFragmentCount > 1) { 3373 for (let i = 0; i < ret.length; i++) { 3374 ret[i].patchFlag = -2; 3375 } 3376 } 3377 return ret; 3378} 3379/*! #__NO_SIDE_EFFECTS__ */ 3380// @__NO_SIDE_EFFECTS__ 3381function defineComponent(options, extraOptions) { 3382 return isFunction$4(options) ? ( 3383 // #8236: extend call and options.name access are considered side-effects 3384 // by Rollup, so we have to wrap it in a pure-annotated IIFE. 3385 /* @__PURE__ */ (() => extend$1({ name: options.name }, extraOptions, { setup: options }))() 3386 ) : options; 3387} 3388function useId() { 3389 const i = getCurrentInstance(); 3390 if (i) { 3391 return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++; 3392 } 3393 return ""; 3394} 3395function markAsyncBoundary(instance) { 3396 instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0]; 3397} 3398function useTemplateRef(key) { 3399 const i = getCurrentInstance(); 3400 const r2 = shallowRef(null); 3401 if (i) { 3402 const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs; 3403 { 3404 Object.defineProperty(refs, key, { 3405 enumerable: true, 3406 get: () => r2.value, 3407 set: (val) => r2.value = val 3408 }); 3409 } 3410 } 3411 const ret = r2; 3412 return ret; 3413} 3414function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) { 3415 if (isArray$4(rawRef)) { 3416 rawRef.forEach( 3417 (r2, i) => setRef( 3418 r2, 3419 oldRawRef && (isArray$4(oldRawRef) ? oldRawRef[i] : oldRawRef), 3420 parentSuspense, 3421 vnode, 3422 isUnmount 3423 ) 3424 ); 3425 return; 3426 } 3427 if (isAsyncWrapper(vnode) && !isUnmount) { 3428 if (vnode.shapeFlag & 512 && vnode.type.__asyncResolved && vnode.component.subTree.component) { 3429 setRef(rawRef, oldRawRef, parentSuspense, vnode.component.subTree); 3430 } 3431 return; 3432 } 3433 const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el; 3434 const value = isUnmount ? null : refValue; 3435 const { i: owner, r: ref3 } = rawRef; 3436 const oldRef = oldRawRef && oldRawRef.r; 3437 const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs; 3438 const setupState = owner.setupState; 3439 const rawSetupState = toRaw(setupState); 3440 const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => { 3441 return hasOwn(rawSetupState, key); 3442 }; 3443 if (oldRef != null && oldRef !== ref3) { 3444 if (isString$1(oldRef)) { 3445 refs[oldRef] = null; 3446 if (canSetSetupRef(oldRef)) { 3447 setupState[oldRef] = null; 3448 } 3449 } else if (isRef(oldRef)) { 3450 oldRef.value = null; 3451 } 3452 } 3453 if (isFunction$4(ref3)) { 3454 callWithErrorHandling(ref3, owner, 12, [value, refs]); 3455 } else { 3456 const _isString = isString$1(ref3); 3457 const _isRef = isRef(ref3); 3458 if (_isString || _isRef) { 3459 const doSet = () => { 3460 if (rawRef.f) { 3461 const existing = _isString ? canSetSetupRef(ref3) ? setupState[ref3] : refs[ref3] : ref3.value; 3462 if (isUnmount) { 3463 isArray$4(existing) && remove(existing, refValue); 3464 } else { 3465 if (!isArray$4(existing)) { 3466 if (_isString) { 3467 refs[ref3] = [refValue]; 3468 if (canSetSetupRef(ref3)) { 3469 setupState[ref3] = refs[ref3]; 3470 } 3471 } else { 3472 ref3.value = [refValue]; 3473 if (rawRef.k) refs[rawRef.k] = ref3.value; 3474 } 3475 } else if (!existing.includes(refValue)) { 3476 existing.push(refValue); 3477 } 3478 } 3479 } else if (_isString) { 3480 refs[ref3] = value; 3481 if (canSetSetupRef(ref3)) { 3482 setupState[ref3] = value; 3483 } 3484 } else if (_isRef) { 3485 ref3.value = value; 3486 if (rawRef.k) refs[rawRef.k] = value; 3487 } else ; 3488 }; 3489 if (value) { 3490 doSet.id = -1; 3491 queuePostRenderEffect(doSet, parentSuspense); 3492 } else { 3493 doSet(); 3494 } 3495 } 3496 } 3497} 3498let hasLoggedMismatchError = false;
vendor: 6,744 bytes, lines 3499-3711
3499const logMismatchError = () => { 3500 if (hasLoggedMismatchError) { 3501 return; 3502 } 3503 console.error("Hydration completed but contains mismatches."); 3504 hasLoggedMismatchError = true; 3505}; 3506const isSVGContainer = (container) => container.namespaceURI.includes("svg") && container.tagName !== "foreignObject"; 3507const isMathMLContainer = (container) => container.namespaceURI.includes("MathML"); 3508const getContainerType = (container) => { 3509 if (container.nodeType !== 1) return void 0; 3510 if (isSVGContainer(container)) return "svg"; 3511 if (isMathMLContainer(container)) return "mathml"; 3512 return void 0; 3513}; 3514const isComment = (node) => node.nodeType === 8; 3515function createHydrationFunctions(rendererInternals) { 3516 const { 3517 mt: mountComponent, 3518 p: patch, 3519 o: { 3520 patchProp: patchProp2, 3521 createText, 3522 nextSibling, 3523 parentNode, 3524 remove: remove2, 3525 insert, 3526 createComment 3527 } 3528 } = rendererInternals; 3529 const hydrate2 = (vnode, container) => { 3530 if (!container.hasChildNodes()) { 3531 patch(null, vnode, container); 3532 flushPostFlushCbs(); 3533 container._vnode = vnode; 3534 return; 3535 } 3536 hydrateNode(container.firstChild, vnode, null, null, null); 3537 flushPostFlushCbs(); 3538 container._vnode = vnode; 3539 }; 3540 const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => { 3541 optimized = optimized || !!vnode.dynamicChildren; 3542 const isFragmentStart = isComment(node) && node.data === "["; 3543 const onMismatch = () => handleMismatch( 3544 node, 3545 vnode, 3546 parentComponent, 3547 parentSuspense, 3548 slotScopeIds, 3549 isFragmentStart 3550 ); 3551 const { type, ref: ref3, shapeFlag, patchFlag } = vnode; 3552 let domType = node.nodeType; 3553 vnode.el = node; 3554 if (patchFlag === -2) { 3555 optimized = false; 3556 vnode.dynamicChildren = null; 3557 } 3558 let nextNode = null; 3559 switch (type) { 3560 case Text: 3561 if (domType !== 3) { 3562 if (vnode.children === "") { 3563 insert(vnode.el = createText(""), parentNode(node), node); 3564 nextNode = node; 3565 } else { 3566 nextNode = onMismatch(); 3567 } 3568 } else { 3569 if (node.data !== vnode.children) { 3570 logMismatchError(); 3571 node.data = vnode.children; 3572 } 3573 nextNode = nextSibling(node); 3574 } 3575 break; 3576 case Comment: 3577 if (isTemplateNode(node)) { 3578 nextNode = nextSibling(node); 3579 replaceNode( 3580 vnode.el = node.content.firstChild, 3581 node, 3582 parentComponent 3583 ); 3584 } else if (domType !== 8 || isFragmentStart) { 3585 nextNode = onMismatch(); 3586 } else { 3587 nextNode = nextSibling(node); 3588 } 3589 break; 3590 case Static: 3591 if (isFragmentStart) { 3592 node = nextSibling(node); 3593 domType = node.nodeType; 3594 } 3595 if (domType === 1 || domType === 3) { 3596 nextNode = node; 3597 const needToAdoptContent = !vnode.children.length; 3598 for (let i = 0; i < vnode.staticCount; i++) { 3599 if (needToAdoptContent) 3600 vnode.children += nextNode.nodeType === 1 ? nextNode.outerHTML : nextNode.data; 3601 if (i === vnode.staticCount - 1) { 3602 vnode.anchor = nextNode; 3603 } 3604 nextNode = nextSibling(nextNode); 3605 } 3606 return isFragmentStart ? nextSibling(nextNode) : nextNode; 3607 } else { 3608 onMismatch(); 3609 } 3610 break; 3611 case Fragment: 3612 if (!isFragmentStart) { 3613 nextNode = onMismatch(); 3614 } else { 3615 nextNode = hydrateFragment( 3616 node, 3617 vnode, 3618 parentComponent, 3619 parentSuspense, 3620 slotScopeIds, 3621 optimized 3622 ); 3623 } 3624 break; 3625 default: 3626 if (shapeFlag & 1) { 3627 if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode(node)) { 3628 nextNode = onMismatch(); 3629 } else { 3630 nextNode = hydrateElement( 3631 node, 3632 vnode, 3633 parentComponent, 3634 parentSuspense, 3635 slotScopeIds, 3636 optimized 3637 ); 3638 } 3639 } else if (shapeFlag & 6) { 3640 vnode.slotScopeIds = slotScopeIds; 3641 const container = parentNode(node); 3642 if (isFragmentStart) { 3643 nextNode = locateClosingAnchor(node); 3644 } else if (isComment(node) && node.data === "teleport start") { 3645 nextNode = locateClosingAnchor(node, node.data, "teleport end"); 3646 } else { 3647 nextNode = nextSibling(node); 3648 } 3649 mountComponent( 3650 vnode, 3651 container, 3652 null, 3653 parentComponent, 3654 parentSuspense, 3655 getContainerType(container), 3656 optimized 3657 ); 3658 if (isAsyncWrapper(vnode) && !vnode.type.__asyncResolved) { 3659 let subTree; 3660 if (isFragmentStart) { 3661 subTree = createVNode(Fragment); 3662 subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild; 3663 } else { 3664 subTree = node.nodeType === 3 ? createTextVNode("") : createVNode("div"); 3665 } 3666 subTree.el = node; 3667 vnode.component.subTree = subTree; 3668 } 3669 } else if (shapeFlag & 64) { 3670 if (domType !== 8) { 3671 nextNode = onMismatch(); 3672 } else { 3673 nextNode = vnode.type.hydrate( 3674 node, 3675 vnode, 3676 parentComponent, 3677 parentSuspense, 3678 slotScopeIds, 3679 optimized, 3680 rendererInternals, 3681 hydrateChildren 3682 ); 3683 } 3684 } else if (shapeFlag & 128) { 3685 nextNode = vnode.type.hydrate( 3686 node, 3687 vnode, 3688 parentComponent, 3689 parentSuspense, 3690 getContainerType(parentNode(node)), 3691 slotScopeIds, 3692 optimized, 3693 rendererInternals, 3694 hydrateNode 3695 ); 3696 } else ; 3697 } 3698 if (ref3 != null) { 3699 setRef(ref3, null, parentSuspense, vnode); 3700 } 3701 return nextNode; 3702 }; 3703 const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => { 3704 optimized = optimized || !!vnode.dynamicChildren; 3705 const { type, props, patchFlag, shapeFlag, dirs, transition } = vnode; 3706 const forcePatch = type === "input" || type === "option"; 3707 if (forcePatch || patchFlag !== -1) { 3708 if (dirs) { 3709 invokeDirectiveHook(vnode, null, parentComponent, "created"); 3710 } 3711 let needCallTransitionHooks = false;
vendor: 20,085 bytes, lines 3712-4392
3712 if (isTemplateNode(el)) { 3713 needCallTransitionHooks = needTransition( 3714 null, 3715 // no need check parentSuspense in hydration 3716 transition 3717 ) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear; 3718 const content = el.content.firstChild; 3719 if (needCallTransitionHooks) { 3720 transition.beforeEnter(content); 3721 } 3722 replaceNode(content, el, parentComponent); 3723 vnode.el = el = content; 3724 } 3725 if (shapeFlag & 16 && // skip if element has innerHTML / textContent 3726 !(props && (props.innerHTML || props.textContent))) { 3727 let next = hydrateChildren( 3728 el.firstChild, 3729 vnode, 3730 el, 3731 parentComponent, 3732 parentSuspense, 3733 slotScopeIds, 3734 optimized 3735 ); 3736 while (next) { 3737 if (!isMismatchAllowed( 3738 el, 3739 1 3740 /* CHILDREN */ 3741 )) { 3742 logMismatchError(); 3743 } 3744 const cur = next; 3745 next = next.nextSibling; 3746 remove2(cur); 3747 } 3748 } else if (shapeFlag & 8) { 3749 let clientText = vnode.children; 3750 if (clientText[0] === "\n" && (el.tagName === "PRE" || el.tagName === "TEXTAREA")) { 3751 clientText = clientText.slice(1); 3752 } 3753 if (el.textContent !== clientText) { 3754 if (!isMismatchAllowed( 3755 el, 3756 0 3757 /* TEXT */ 3758 )) { 3759 logMismatchError(); 3760 } 3761 el.textContent = vnode.children; 3762 } 3763 } 3764 if (props) { 3765 if (forcePatch || !optimized || patchFlag & (16 | 32)) { 3766 const isCustomElement = el.tagName.includes("-"); 3767 for (const key in props) { 3768 if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers 3769 key[0] === "." || isCustomElement) { 3770 patchProp2(el, key, null, props[key], void 0, parentComponent); 3771 } 3772 } 3773 } else if (props.onClick) { 3774 patchProp2( 3775 el, 3776 "onClick", 3777 null, 3778 props.onClick, 3779 void 0, 3780 parentComponent 3781 ); 3782 } else if (patchFlag & 4 && isReactive(props.style)) { 3783 for (const key in props.style) props.style[key]; 3784 } 3785 } 3786 let vnodeHooks; 3787 if (vnodeHooks = props && props.onVnodeBeforeMount) { 3788 invokeVNodeHook(vnodeHooks, parentComponent, vnode); 3789 } 3790 if (dirs) { 3791 invokeDirectiveHook(vnode, null, parentComponent, "beforeMount"); 3792 } 3793 if ((vnodeHooks = props && props.onVnodeMounted) || dirs || needCallTransitionHooks) { 3794 queueEffectWithSuspense(() => { 3795 vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode); 3796 needCallTransitionHooks && transition.enter(el); 3797 dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted"); 3798 }, parentSuspense); 3799 } 3800 } 3801 return el.nextSibling; 3802 }; 3803 const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => { 3804 optimized = optimized || !!parentVNode.dynamicChildren; 3805 const children = parentVNode.children; 3806 const l3 = children.length; 3807 for (let i = 0; i < l3; i++) { 3808 const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]); 3809 const isText = vnode.type === Text; 3810 if (node) { 3811 if (isText && !optimized) { 3812 if (i + 1 < l3 && normalizeVNode(children[i + 1]).type === Text) { 3813 insert( 3814 createText( 3815 node.data.slice(vnode.children.length) 3816 ), 3817 container, 3818 nextSibling(node) 3819 ); 3820 node.data = vnode.children; 3821 } 3822 } 3823 node = hydrateNode( 3824 node, 3825 vnode, 3826 parentComponent, 3827 parentSuspense, 3828 slotScopeIds, 3829 optimized 3830 ); 3831 } else if (isText && !vnode.children) { 3832 insert(vnode.el = createText(""), container); 3833 } else { 3834 if (!isMismatchAllowed( 3835 container, 3836 1 3837 /* CHILDREN */ 3838 )) { 3839 logMismatchError(); 3840 } 3841 patch( 3842 null, 3843 vnode, 3844 container, 3845 null, 3846 parentComponent, 3847 parentSuspense, 3848 getContainerType(container), 3849 slotScopeIds 3850 ); 3851 } 3852 } 3853 return node; 3854 }; 3855 const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => { 3856 const { slotScopeIds: fragmentSlotScopeIds } = vnode; 3857 if (fragmentSlotScopeIds) { 3858 slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; 3859 } 3860 const container = parentNode(node); 3861 const next = hydrateChildren( 3862 nextSibling(node), 3863 vnode, 3864 container, 3865 parentComponent, 3866 parentSuspense, 3867 slotScopeIds, 3868 optimized 3869 ); 3870 if (next && isComment(next) && next.data === "]") { 3871 return nextSibling(vnode.anchor = next); 3872 } else { 3873 logMismatchError(); 3874 insert(vnode.anchor = createComment(`]`), container, next); 3875 return next; 3876 } 3877 }; 3878 const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => { 3879 if (!isMismatchAllowed( 3880 node.parentElement, 3881 1 3882 /* CHILDREN */ 3883 )) { 3884 logMismatchError(); 3885 } 3886 vnode.el = null; 3887 if (isFragment) { 3888 const end = locateClosingAnchor(node); 3889 while (true) { 3890 const next2 = nextSibling(node); 3891 if (next2 && next2 !== end) { 3892 remove2(next2); 3893 } else { 3894 break; 3895 } 3896 } 3897 } 3898 const next = nextSibling(node); 3899 const container = parentNode(node); 3900 remove2(node); 3901 patch( 3902 null, 3903 vnode, 3904 container, 3905 next, 3906 parentComponent, 3907 parentSuspense, 3908 getContainerType(container), 3909 slotScopeIds 3910 ); 3911 if (parentComponent) { 3912 parentComponent.vnode.el = vnode.el; 3913 updateHOCHostEl(parentComponent, vnode.el); 3914 } 3915 return next; 3916 }; 3917 const locateClosingAnchor = (node, open2 = "[", close = "]") => { 3918 let match2 = 0; 3919 while (node) { 3920 node = nextSibling(node); 3921 if (node && isComment(node)) { 3922 if (node.data === open2) match2++; 3923 if (node.data === close) { 3924 if (match2 === 0) { 3925 return nextSibling(node); 3926 } else { 3927 match2--; 3928 } 3929 } 3930 } 3931 } 3932 return node; 3933 }; 3934 const replaceNode = (newNode, oldNode, parentComponent) => { 3935 const parentNode2 = oldNode.parentNode; 3936 if (parentNode2) { 3937 parentNode2.replaceChild(newNode, oldNode); 3938 } 3939 let parent = parentComponent; 3940 while (parent) { 3941 if (parent.vnode.el === oldNode) { 3942 parent.vnode.el = parent.subTree.el = newNode; 3943 } 3944 parent = parent.parent; 3945 } 3946 }; 3947 const isTemplateNode = (node) => { 3948 return node.nodeType === 1 && node.tagName === "TEMPLATE"; 3949 }; 3950 return [hydrate2, hydrateNode]; 3951} 3952const allowMismatchAttr = "data-allow-mismatch"; 3953const MismatchTypeString = { 3954 [ 3955 0 3956 /* TEXT */ 3957 ]: "text", 3958 [ 3959 1 3960 /* CHILDREN */ 3961 ]: "children", 3962 [ 3963 2 3964 /* CLASS */ 3965 ]: "class", 3966 [ 3967 3 3968 /* STYLE */ 3969 ]: "style", 3970 [ 3971 4 3972 /* ATTRIBUTE */ 3973 ]: "attribute" 3974}; 3975function isMismatchAllowed(el, allowedType) { 3976 if (allowedType === 0 || allowedType === 1) { 3977 while (el && !el.hasAttribute(allowMismatchAttr)) { 3978 el = el.parentElement; 3979 } 3980 } 3981 const allowedAttr = el && el.getAttribute(allowMismatchAttr); 3982 if (allowedAttr == null) { 3983 return false; 3984 } else if (allowedAttr === "") { 3985 return true; 3986 } else { 3987 const list = allowedAttr.split(","); 3988 if (allowedType === 0 && list.includes("children")) { 3989 return true; 3990 } 3991 return allowedAttr.split(",").includes(MismatchTypeString[allowedType]); 3992 } 3993} 3994const requestIdleCallback$1 = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1)); 3995const cancelIdleCallback$1 = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id)); 3996const hydrateOnIdle = (timeout = 1e4) => (hydrate2) => { 3997 const id = requestIdleCallback$1(hydrate2, { timeout }); 3998 return () => cancelIdleCallback$1(id); 3999}; 4000function elementIsVisibleInViewport(el) { 4001 const { top, left, bottom, right } = el.getBoundingClientRect(); 4002 const { innerHeight, innerWidth } = window; 4003 return (top > 0 && top < innerHeight || bottom > 0 && bottom < innerHeight) && (left > 0 && left < innerWidth || right > 0 && right < innerWidth); 4004} 4005const hydrateOnVisible = (opts) => (hydrate2, forEach2) => { 4006 const ob = new IntersectionObserver((entries) => { 4007 for (const e of entries) { 4008 if (!e.isIntersecting) continue; 4009 ob.disconnect(); 4010 hydrate2(); 4011 break; 4012 } 4013 }, opts); 4014 forEach2((el) => { 4015 if (!(el instanceof Element)) return; 4016 if (elementIsVisibleInViewport(el)) { 4017 hydrate2(); 4018 ob.disconnect(); 4019 return false; 4020 } 4021 ob.observe(el); 4022 }); 4023 return () => ob.disconnect(); 4024}; 4025const hydrateOnMediaQuery = (query) => (hydrate2) => { 4026 if (query) { 4027 const mql = matchMedia(query); 4028 if (mql.matches) { 4029 hydrate2(); 4030 } else { 4031 mql.addEventListener("change", hydrate2, { once: true }); 4032 return () => mql.removeEventListener("change", hydrate2); 4033 } 4034 } 4035}; 4036const hydrateOnInteraction = (interactions = []) => (hydrate2, forEach2) => { 4037 if (isString$1(interactions)) interactions = [interactions]; 4038 let hasHydrated = false; 4039 const doHydrate = (e) => { 4040 if (!hasHydrated) { 4041 hasHydrated = true; 4042 teardown(); 4043 hydrate2(); 4044 e.target.dispatchEvent(new e.constructor(e.type, e)); 4045 } 4046 }; 4047 const teardown = () => { 4048 forEach2((el) => { 4049 for (const i of interactions) { 4050 el.removeEventListener(i, doHydrate); 4051 } 4052 }); 4053 }; 4054 forEach2((el) => { 4055 for (const i of interactions) { 4056 el.addEventListener(i, doHydrate, { once: true }); 4057 } 4058 }); 4059 return teardown; 4060}; 4061function forEachElement(node, cb) { 4062 if (isComment(node) && node.data === "[") { 4063 let depth = 1; 4064 let next = node.nextSibling; 4065 while (next) { 4066 if (next.nodeType === 1) { 4067 const result = cb(next); 4068 if (result === false) { 4069 break; 4070 } 4071 } else if (isComment(next)) { 4072 if (next.data === "]") { 4073 if (--depth === 0) break; 4074 } else if (next.data === "[") { 4075 depth++; 4076 } 4077 } 4078 next = next.nextSibling; 4079 } 4080 } else { 4081 cb(node); 4082 } 4083} 4084const isAsyncWrapper = (i) => !!i.type.__asyncLoader; 4085/*! #__NO_SIDE_EFFECTS__ */ 4086// @__NO_SIDE_EFFECTS__ 4087function defineAsyncComponent(source) { 4088 if (isFunction$4(source)) { 4089 source = { loader: source }; 4090 } 4091 const { 4092 loader, 4093 loadingComponent, 4094 errorComponent, 4095 delay = 200, 4096 hydrate: hydrateStrategy, 4097 timeout, 4098 // undefined = never times out 4099 suspensible = true, 4100 onError: userOnError 4101 } = source; 4102 let pendingRequest = null; 4103 let resolvedComp; 4104 let retries = 0; 4105 const retry = () => { 4106 retries++; 4107 pendingRequest = null; 4108 return load(); 4109 }; 4110 const load = () => { 4111 let thisRequest; 4112 return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => { 4113 err = err instanceof Error ? err : new Error(String(err)); 4114 if (userOnError) { 4115 return new Promise((resolve2, reject) => { 4116 const userRetry = () => resolve2(retry()); 4117 const userFail = () => reject(err); 4118 userOnError(err, userRetry, userFail, retries + 1); 4119 }); 4120 } else { 4121 throw err; 4122 } 4123 }).then((comp) => { 4124 if (thisRequest !== pendingRequest && pendingRequest) { 4125 return pendingRequest; 4126 } 4127 if (comp && (comp.__esModule || comp[Symbol.toStringTag] === "Module")) { 4128 comp = comp.default; 4129 } 4130 resolvedComp = comp; 4131 return comp; 4132 })); 4133 }; 4134 return /* @__PURE__ */ defineComponent({ 4135 name: "AsyncComponentWrapper", 4136 __asyncLoader: load, 4137 __asyncHydrate(el, instance, hydrate2) { 4138 const doHydrate = hydrateStrategy ? () => { 4139 const teardown = hydrateStrategy( 4140 hydrate2, 4141 (cb) => forEachElement(el, cb) 4142 ); 4143 if (teardown) { 4144 (instance.bum || (instance.bum = [])).push(teardown); 4145 } 4146 } : hydrate2; 4147 if (resolvedComp) { 4148 doHydrate(); 4149 } else { 4150 load().then(() => !instance.isUnmounted && doHydrate()); 4151 } 4152 }, 4153 get __asyncResolved() { 4154 return resolvedComp; 4155 }, 4156 setup() { 4157 const instance = currentInstance; 4158 markAsyncBoundary(instance); 4159 if (resolvedComp) { 4160 return () => createInnerComp(resolvedComp, instance); 4161 } 4162 const onError = (err) => { 4163 pendingRequest = null; 4164 handleError( 4165 err, 4166 instance, 4167 13, 4168 !errorComponent 4169 ); 4170 }; 4171 if (suspensible && instance.suspense || isInSSRComponentSetup) { 4172 return load().then((comp) => { 4173 return () => createInnerComp(comp, instance); 4174 }).catch((err) => { 4175 onError(err); 4176 return () => errorComponent ? createVNode(errorComponent, { 4177 error: err 4178 }) : null; 4179 }); 4180 } 4181 const loaded = ref(false); 4182 const error = ref(); 4183 const delayed = ref(!!delay); 4184 if (delay) { 4185 setTimeout(() => { 4186 delayed.value = false; 4187 }, delay); 4188 } 4189 if (timeout != null) { 4190 setTimeout(() => { 4191 if (!loaded.value && !error.value) { 4192 const err = new Error( 4193 `Async component timed out after ${timeout}ms.` 4194 ); 4195 onError(err); 4196 error.value = err; 4197 } 4198 }, timeout); 4199 } 4200 load().then(() => { 4201 loaded.value = true; 4202 if (instance.parent && isKeepAlive(instance.parent.vnode)) { 4203 instance.parent.update(); 4204 } 4205 }).catch((err) => { 4206 onError(err); 4207 error.value = err; 4208 }); 4209 return () => { 4210 if (loaded.value && resolvedComp) { 4211 return createInnerComp(resolvedComp, instance); 4212 } else if (error.value && errorComponent) { 4213 return createVNode(errorComponent, { 4214 error: error.value 4215 }); 4216 } else if (loadingComponent && !delayed.value) { 4217 return createVNode(loadingComponent); 4218 } 4219 }; 4220 } 4221 }); 4222} 4223function createInnerComp(comp, parent) { 4224 const { ref: ref22, props, children, ce } = parent.vnode; 4225 const vnode = createVNode(comp, props, children); 4226 vnode.ref = ref22; 4227 vnode.ce = ce; 4228 delete parent.vnode.ce; 4229 return vnode; 4230} 4231const isKeepAlive = (vnode) => vnode.type.__isKeepAlive; 4232const KeepAliveImpl = { 4233 name: `KeepAlive`, 4234 // Marker for special handling inside the renderer. We are not using a === 4235 // check directly on KeepAlive in the renderer, because importing it directly 4236 // would prevent it from being tree-shaken. 4237 __isKeepAlive: true, 4238 props: { 4239 include: [String, RegExp, Array], 4240 exclude: [String, RegExp, Array], 4241 max: [String, Number] 4242 }, 4243 setup(props, { slots }) { 4244 const instance = getCurrentInstance(); 4245 const sharedContext = instance.ctx; 4246 if (!sharedContext.renderer) { 4247 return () => { 4248 const children = slots.default && slots.default(); 4249 return children && children.length === 1 ? children[0] : children; 4250 }; 4251 } 4252 const cache = /* @__PURE__ */ new Map(); 4253 const keys2 = /* @__PURE__ */ new Set(); 4254 let current = null; 4255 const parentSuspense = instance.suspense; 4256 const { 4257 renderer: { 4258 p: patch, 4259 m: move, 4260 um: _unmount, 4261 o: { createElement } 4262 } 4263 } = sharedContext; 4264 const storageContainer = createElement("div"); 4265 sharedContext.activate = (vnode, container, anchor, namespace, optimized) => { 4266 const instance2 = vnode.component; 4267 move(vnode, container, anchor, 0, parentSuspense); 4268 patch( 4269 instance2.vnode, 4270 vnode, 4271 container, 4272 anchor, 4273 instance2, 4274 parentSuspense, 4275 namespace, 4276 vnode.slotScopeIds, 4277 optimized 4278 ); 4279 queuePostRenderEffect(() => { 4280 instance2.isDeactivated = false; 4281 if (instance2.a) { 4282 invokeArrayFns(instance2.a); 4283 } 4284 const vnodeHook = vnode.props && vnode.props.onVnodeMounted; 4285 if (vnodeHook) { 4286 invokeVNodeHook(vnodeHook, instance2.parent, vnode); 4287 } 4288 }, parentSuspense); 4289 }; 4290 sharedContext.deactivate = (vnode) => { 4291 const instance2 = vnode.component; 4292 invalidateMount(instance2.m); 4293 invalidateMount(instance2.a); 4294 move(vnode, storageContainer, null, 1, parentSuspense); 4295 queuePostRenderEffect(() => { 4296 if (instance2.da) { 4297 invokeArrayFns(instance2.da); 4298 } 4299 const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted; 4300 if (vnodeHook) { 4301 invokeVNodeHook(vnodeHook, instance2.parent, vnode); 4302 } 4303 instance2.isDeactivated = true; 4304 }, parentSuspense); 4305 }; 4306 function unmount(vnode) { 4307 resetShapeFlag(vnode); 4308 _unmount(vnode, instance, parentSuspense, true); 4309 } 4310 function pruneCache(filter2) { 4311 cache.forEach((vnode, key) => { 4312 const name = getComponentName(vnode.type); 4313 if (name && !filter2(name)) { 4314 pruneCacheEntry(key); 4315 } 4316 }); 4317 } 4318 function pruneCacheEntry(key) { 4319 const cached = cache.get(key); 4320 if (cached && (!current || !isSameVNodeType(cached, current))) { 4321 unmount(cached); 4322 } else if (current) { 4323 resetShapeFlag(current); 4324 } 4325 cache.delete(key); 4326 keys2.delete(key); 4327 } 4328 watch( 4329 () => [props.include, props.exclude], 4330 ([include, exclude]) => { 4331 include && pruneCache((name) => matches(include, name)); 4332 exclude && pruneCache((name) => !matches(exclude, name)); 4333 }, 4334 // prune post-render after `current` has been updated 4335 { flush: "post", deep: true } 4336 ); 4337 let pendingCacheKey = null; 4338 const cacheSubtree = () => { 4339 if (pendingCacheKey != null) { 4340 if (isSuspense(instance.subTree.type)) { 4341 queuePostRenderEffect(() => { 4342 cache.set(pendingCacheKey, getInnerChild(instance.subTree)); 4343 }, instance.subTree.suspense); 4344 } else { 4345 cache.set(pendingCacheKey, getInnerChild(instance.subTree)); 4346 } 4347 } 4348 }; 4349 onMounted(cacheSubtree); 4350 onUpdated(cacheSubtree); 4351 onBeforeUnmount(() => { 4352 cache.forEach((cached) => { 4353 const { subTree, suspense } = instance; 4354 const vnode = getInnerChild(subTree); 4355 if (cached.type === vnode.type && cached.key === vnode.key) { 4356 resetShapeFlag(vnode); 4357 const da = vnode.component.da; 4358 da && queuePostRenderEffect(da, suspense); 4359 return; 4360 } 4361 unmount(cached); 4362 }); 4363 }); 4364 return () => { 4365 pendingCacheKey = null; 4366 if (!slots.default) { 4367 return current = null; 4368 } 4369 const children = slots.default(); 4370 const rawVNode = children[0]; 4371 if (children.length > 1) { 4372 current = null; 4373 return children; 4374 } else if (!isVNode(rawVNode) || !(rawVNode.shapeFlag & 4) && !(rawVNode.shapeFlag & 128)) { 4375 current = null; 4376 return rawVNode; 4377 } 4378 let vnode = getInnerChild(rawVNode); 4379 if (vnode.type === Comment) { 4380 current = null; 4381 return vnode; 4382 } 4383 const comp = vnode.type; 4384 const name = getComponentName( 4385 isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp 4386 ); 4387 const { include, exclude, max } = props; 4388 if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) { 4389 vnode.shapeFlag &= -257; 4390 current = vnode; 4391 return rawVNode; 4392 }
vendor: 1,504 bytes, lines 4393-4442
4393 const key = vnode.key == null ? comp : vnode.key; 4394 const cachedVNode = cache.get(key); 4395 if (vnode.el) { 4396 vnode = cloneVNode(vnode); 4397 if (rawVNode.shapeFlag & 128) { 4398 rawVNode.ssContent = vnode; 4399 } 4400 } 4401 pendingCacheKey = key; 4402 if (cachedVNode) { 4403 vnode.el = cachedVNode.el; 4404 vnode.component = cachedVNode.component; 4405 if (vnode.transition) { 4406 setTransitionHooks(vnode, vnode.transition); 4407 } 4408 vnode.shapeFlag |= 512; 4409 keys2.delete(key); 4410 keys2.add(key); 4411 } else { 4412 keys2.add(key); 4413 if (max && keys2.size > parseInt(max, 10)) { 4414 pruneCacheEntry(keys2.values().next().value); 4415 } 4416 } 4417 vnode.shapeFlag |= 256; 4418 current = vnode; 4419 return isSuspense(rawVNode.type) ? rawVNode : vnode; 4420 }; 4421 } 4422}; 4423const KeepAlive = KeepAliveImpl; 4424function matches(pattern, name) { 4425 if (isArray$4(pattern)) { 4426 return pattern.some((p2) => matches(p2, name)); 4427 } else if (isString$1(pattern)) { 4428 return pattern.split(",").includes(name); 4429 } else if (isRegExp$1(pattern)) { 4430 pattern.lastIndex = 0; 4431 return pattern.test(name); 4432 } 4433 return false; 4434} 4435function onActivated(hook, target) { 4436 registerKeepAliveHook(hook, "a", target); 4437} 4438function onDeactivated(hook, target) { 4439 registerKeepAliveHook(hook, "da", target); 4440} 4441function registerKeepAliveHook(hook, type, target = currentInstance) { 4442 const wrappedHook = hook.__wdc || (hook.__wdc = () => {
vendor: 4,661 bytes, lines 4443-4599
4443 let current = target; 4444 while (current) { 4445 if (current.isDeactivated) { 4446 return; 4447 } 4448 current = current.parent; 4449 } 4450 return hook(); 4451 }); 4452 injectHook(type, wrappedHook, target); 4453 if (target) { 4454 let current = target.parent; 4455 while (current && current.parent) { 4456 if (isKeepAlive(current.parent.vnode)) { 4457 injectToKeepAliveRoot(wrappedHook, type, target, current); 4458 } 4459 current = current.parent; 4460 } 4461 } 4462} 4463function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { 4464 const injected = injectHook( 4465 type, 4466 hook, 4467 keepAliveRoot, 4468 true 4469 /* prepend */ 4470 ); 4471 onUnmounted(() => { 4472 remove(keepAliveRoot[type], injected); 4473 }, target); 4474} 4475function resetShapeFlag(vnode) { 4476 vnode.shapeFlag &= -257; 4477 vnode.shapeFlag &= -513; 4478} 4479function getInnerChild(vnode) { 4480 return vnode.shapeFlag & 128 ? vnode.ssContent : vnode; 4481} 4482function injectHook(type, hook, target = currentInstance, prepend = false) { 4483 if (target) { 4484 const hooks = target[type] || (target[type] = []); 4485 const wrappedHook = hook.__weh || (hook.__weh = (...args) => { 4486 pauseTracking(); 4487 const reset = setCurrentInstance(target); 4488 const res = callWithAsyncErrorHandling(hook, target, type, args); 4489 reset(); 4490 resetTracking(); 4491 return res; 4492 }); 4493 if (prepend) { 4494 hooks.unshift(wrappedHook); 4495 } else { 4496 hooks.push(wrappedHook); 4497 } 4498 return wrappedHook; 4499 } 4500} 4501const createHook = (lifecycle) => (hook, target = currentInstance) => { 4502 if (!isInSSRComponentSetup || lifecycle === "sp") { 4503 injectHook(lifecycle, (...args) => hook(...args), target); 4504 } 4505}; 4506const onBeforeMount = createHook("bm"); 4507const onMounted = createHook("m"); 4508const onBeforeUpdate = createHook( 4509 "bu" 4510); 4511const onUpdated = createHook("u"); 4512const onBeforeUnmount = createHook( 4513 "bum" 4514); 4515const onUnmounted = createHook("um"); 4516const onServerPrefetch = createHook( 4517 "sp" 4518); 4519const onRenderTriggered = createHook("rtg"); 4520const onRenderTracked = createHook("rtc"); 4521function onErrorCaptured(hook, target = currentInstance) { 4522 injectHook("ec", hook, target); 4523} 4524const COMPONENTS = "components"; 4525const DIRECTIVES = "directives"; 4526function resolveComponent(name, maybeSelfReference) { 4527 return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name; 4528} 4529const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc"); 4530function resolveDynamicComponent(component) { 4531 if (isString$1(component)) { 4532 return resolveAsset(COMPONENTS, component, false) || component; 4533 } else { 4534 return component || NULL_DYNAMIC_COMPONENT; 4535 } 4536} 4537function resolveDirective(name) { 4538 return resolveAsset(DIRECTIVES, name); 4539} 4540function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) { 4541 const instance = currentRenderingInstance || currentInstance; 4542 if (instance) { 4543 const Component = instance.type; 4544 if (type === COMPONENTS) { 4545 const selfName = getComponentName( 4546 Component, 4547 false 4548 ); 4549 if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize$1(camelize(name)))) { 4550 return Component; 4551 } 4552 } 4553 const res = ( 4554 // local registration 4555 // check instance[type] first which is resolved for options API 4556 resolve(instance[type] || Component[type], name) || // global registration 4557 resolve(instance.appContext[type], name) 4558 ); 4559 if (!res && maybeSelfReference) { 4560 return Component; 4561 } 4562 return res; 4563 } 4564} 4565function resolve(registry, name) { 4566 return registry && (registry[name] || registry[camelize(name)] || registry[capitalize$1(camelize(name))]); 4567} 4568function renderList(source, renderItem, cache, index2) { 4569 let ret; 4570 const cached = cache && cache[index2]; 4571 const sourceIsArray = isArray$4(source); 4572 if (sourceIsArray || isString$1(source)) { 4573 const sourceIsReactiveArray = sourceIsArray && isReactive(source); 4574 let needsWrap = false; 4575 if (sourceIsReactiveArray) { 4576 needsWrap = !isShallow(source); 4577 source = shallowReadArray(source); 4578 } 4579 ret = new Array(source.length); 4580 for (let i = 0, l3 = source.length; i < l3; i++) { 4581 ret[i] = renderItem( 4582 needsWrap ? toReactive(source[i]) : source[i], 4583 i, 4584 void 0, 4585 cached && cached[i] 4586 ); 4587 } 4588 } else if (typeof source === "number") { 4589 ret = new Array(source); 4590 for (let i = 0; i < source; i++) { 4591 ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]); 4592 } 4593 } else if (isObject$4(source)) { 4594 if (source[Symbol.iterator]) { 4595 ret = Array.from( 4596 source, 4597 (item, i) => renderItem(item, i, void 0, cached && cached[i]) 4598 ); 4599 } else {
4600 const keys2 = Object.keys(source); 4601 ret = new Array(keys2.length); 4602 for (let i = 0, l3 = keys2.length; i < l3; i++) { 4603 const key = keys2[i]; 4604 ret[i] = renderItem(source[key], key, i, cached && cached[i]); 4605 } 4606 } 4607 } else { 4608 ret = []; 4609 } 4610 if (cache) { 4611 cache[index2] = ret; 4612 } 4613 return ret; 4614} 4615function createSlots(slots, dynamicSlots) { 4616 for (let i = 0; i < dynamicSlots.length; i++) { 4617 const slot = dynamicSlots[i]; 4618 if (isArray$4(slot)) { 4619 for (let j = 0; j < slot.length; j++) { 4620 slots[slot[j].name] = slot[j].fn; 4621 } 4622 } else if (slot) { 4623 slots[slot.name] = slot.key ? (...args) => { 4624 const res = slot.fn(...args); 4625 if (res) res.key = slot.key; 4626 return res; 4627 } : slot.fn; 4628 } 4629 } 4630 return slots; 4631} 4632function renderSlot(slots, name, props = {}, fallback, noSlotted) { 4633 if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) { 4634 if (name !== "default") props.name = name; 4635 return openBlock(), createBlock( 4636 Fragment, 4637 null, 4638 [createVNode("slot", props, fallback && fallback())], 4639 64 4640 ); 4641 } 4642 let slot = slots[name]; 4643 if (slot && slot._c) { 4644 slot._d = false; 4645 } 4646 openBlock(); 4647 const validSlotContent = slot && ensureValidVNode(slot(props)); 4648 const slotKey = props.key || // slot content array of a dynamic conditional slot may have a branch 4649 // key attached in the `createSlots` helper, respect that 4650 validSlotContent && validSlotContent.key; 4651 const rendered = createBlock( 4652 Fragment, 4653 { 4654 key: (slotKey && !isSymbol$1(slotKey) ? slotKey : `_${name}`) + // #7256 force differentiate fallback content from actual content 4655 (!validSlotContent && fallback ? "_fb" : "") 4656 }, 4657 validSlotContent || (fallback ? fallback() : []), 4658 validSlotContent && slots._ === 1 ? 64 : -2 4659 ); 4660 if (!noSlotted && rendered.scopeId) { 4661 rendered.slotScopeIds = [rendered.scopeId + "-s"]; 4662 } 4663 if (slot && slot._c) { 4664 slot._d = true; 4665 } 4666 return rendered; 4667} 4668function ensureValidVNode(vnodes) { 4669 return vnodes.some((child) => { 4670 if (!isVNode(child)) return true; 4671 if (child.type === Comment) return false; 4672 if (child.type === Fragment && !ensureValidVNode(child.children)) 4673 return false; 4674 return true; 4675 }) ? vnodes : null; 4676} 4677function toHandlers(obj, preserveCaseIfNecessary) { 4678 const ret = {}; 4679 for (const key in obj) { 4680 ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key]; 4681 } 4682 return ret; 4683} 4684const getPublicInstance = (i) => { 4685 if (!i) return null; 4686 if (isStatefulComponent(i)) return getComponentPublicInstance(i); 4687 return getPublicInstance(i.parent); 4688}; 4689const publicPropertiesMap = ( 4690 // Move PURE marker to new line to workaround compiler discarding it 4691 // due to type annotation 4692 /* @__PURE__ */ extend$1(/* @__PURE__ */ Object.create(null), { 4693 $: (i) => i, 4694 $el: (i) => i.vnode.el, 4695 $data: (i) => i.data, 4696 $props: (i) => i.props, 4697 $attrs: (i) => i.attrs, 4698 $slots: (i) => i.slots, 4699 $refs: (i) => i.refs, 4700 $parent: (i) => getPublicInstance(i.parent), 4701 $root: (i) => getPublicInstance(i.root), 4702 $host: (i) => i.ce, 4703 $emit: (i) => i.emit, 4704 $options: (i) => resolveMergedOptions(i), 4705 $forceUpdate: (i) => i.f || (i.f = () => { 4706 queueJob(i.update); 4707 }), 4708 $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)), 4709 $watch: (i) => instanceWatch.bind(i) 4710 }) 4711); 4712const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key); 4713const PublicInstanceProxyHandlers = { 4714 get({ _: instance }, key) { 4715 if (key === "__v_skip") { 4716 return true; 4717 } 4718 const { ctx, setupState, data, props, accessCache, type, appContext } = instance; 4719 let normalizedProps; 4720 if (key[0] !== "$") { 4721 const n = accessCache[key]; 4722 if (n !== void 0) { 4723 switch (n) { 4724 case 1: 4725 return setupState[key]; 4726 case 2: 4727 return data[key]; 4728 case 4: 4729 return ctx[key]; 4730 case 3: 4731 return props[key]; 4732 } 4733 } else if (hasSetupBinding(setupState, key)) { 4734 accessCache[key] = 1; 4735 return setupState[key]; 4736 } else if (data !== EMPTY_OBJ && hasOwn(data, key)) { 4737 accessCache[key] = 2; 4738 return data[key]; 4739 } else if ( 4740 // only cache other properties when instance has declared (thus stable) 4741 // props 4742 (normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key) 4743 ) { 4744 accessCache[key] = 3; 4745 return props[key]; 4746 } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { 4747 accessCache[key] = 4; 4748 return ctx[key]; 4749 } else if (shouldCacheAccess) { 4750 accessCache[key] = 0; 4751 } 4752 } 4753 const publicGetter = publicPropertiesMap[key];
4754 let cssModule, globalProperties; 4755 if (publicGetter) { 4756 if (key === "$attrs") { 4757 track(instance.attrs, "get", ""); 4758 } 4759 return publicGetter(instance); 4760 } else if ( 4761 // css module (injected by vue-loader) 4762 (cssModule = type.__cssModules) && (cssModule = cssModule[key]) 4763 ) { 4764 return cssModule; 4765 } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { 4766 accessCache[key] = 4; 4767 return ctx[key]; 4768 } else if ( 4769 // global properties 4770 globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key) 4771 ) { 4772 { 4773 return globalProperties[key]; 4774 } 4775 } else ; 4776 }, 4777 set({ _: instance }, key, value) { 4778 const { data, setupState, ctx } = instance; 4779 if (hasSetupBinding(setupState, key)) { 4780 setupState[key] = value; 4781 return true; 4782 } else if (data !== EMPTY_OBJ && hasOwn(data, key)) { 4783 data[key] = value; 4784 return true; 4785 } else if (hasOwn(instance.props, key)) { 4786 return false; 4787 } 4788 if (key[0] === "$" && key.slice(1) in instance) { 4789 return false; 4790 } else { 4791 { 4792 ctx[key] = value; 4793 } 4794 } 4795 return true; 4796 }, 4797 has({ 4798 _: { data, setupState, accessCache, ctx, appContext, propsOptions } 4799 }, key) { 4800 let normalizedProps; 4801 return !!accessCache[key] || data !== EMPTY_OBJ && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key); 4802 }, 4803 defineProperty(target, key, descriptor) { 4804 if (descriptor.get != null) { 4805 target._.accessCache[key] = 0; 4806 } else if (hasOwn(descriptor, "value")) { 4807 this.set(target, key, descriptor.value, null); 4808 } 4809 return Reflect.defineProperty(target, key, descriptor); 4810 } 4811}; 4812const RuntimeCompiledPublicInstanceProxyHandlers = /* @__PURE__ */ extend$1({}, PublicInstanceProxyHandlers, { 4813 get(target, key) { 4814 if (key === Symbol.unscopables) { 4815 return; 4816 } 4817 return PublicInstanceProxyHandlers.get(target, key, target); 4818 }, 4819 has(_, key) { 4820 const has = key[0] !== "_" && !isGloballyAllowed(key); 4821 return has; 4822 } 4823}); 4824function defineProps() { 4825 return null; 4826} 4827function defineEmits() { 4828 return null; 4829} 4830function defineExpose(exposed) { 4831} 4832function defineOptions(options) { 4833} 4834function defineSlots() { 4835 return null; 4836} 4837function defineModel() { 4838} 4839function withDefaults(props, defaults2) { 4840 return null; 4841} 4842function useSlots() { 4843 return getContext$1().slots; 4844} 4845function useAttrs() { 4846 return getContext$1().attrs; 4847} 4848function getContext$1() { 4849 const i = getCurrentInstance(); 4850 return i.setupContext || (i.setupContext = createSetupContext(i)); 4851} 4852function normalizePropsOrEmits(props) { 4853 return isArray$4(props) ? props.reduce( 4854 (normalized, p2) => (normalized[p2] = null, normalized), 4855 {} 4856 ) : props; 4857} 4858function mergeDefaults(raw, defaults2) { 4859 const props = normalizePropsOrEmits(raw); 4860 for (const key in defaults2) { 4861 if (key.startsWith("__skip")) continue; 4862 let opt = props[key]; 4863 if (opt) { 4864 if (isArray$4(opt) || isFunction$4(opt)) { 4865 opt = props[key] = { type: opt, default: defaults2[key] }; 4866 } else { 4867 opt.default = defaults2[key]; 4868 } 4869 } else if (opt === null) { 4870 opt = props[key] = { default: defaults2[key] }; 4871 } else ; 4872 if (opt && defaults2[`__skip_${key}`]) { 4873 opt.skipFactory = true; 4874 } 4875 } 4876 return props; 4877} 4878function mergeModels(a, b2) { 4879 if (!a || !b2) return a || b2; 4880 if (isArray$4(a) && isArray$4(b2)) return a.concat(b2); 4881 return extend$1({}, normalizePropsOrEmits(a), normalizePropsOrEmits(b2)); 4882} 4883function createPropsRestProxy(props, excludedKeys) { 4884 const ret = {}; 4885 for (const key in props) { 4886 if (!excludedKeys.includes(key)) { 4887 Object.defineProperty(ret, key, { 4888 enumerable: true, 4889 get: () => props[key] 4890 }); 4891 } 4892 } 4893 return ret; 4894} 4895function withAsyncContext(getAwaitable) { 4896 const ctx = getCurrentInstance(); 4897 let awaitable = getAwaitable(); 4898 unsetCurrentInstance();
vendor: 6,155 bytes, lines 4899-5116
4899 if (isPromise$1(awaitable)) { 4900 awaitable = awaitable.catch((e) => { 4901 setCurrentInstance(ctx); 4902 throw e; 4903 }); 4904 } 4905 return [awaitable, () => setCurrentInstance(ctx)]; 4906} 4907let shouldCacheAccess = true; 4908function applyOptions(instance) { 4909 const options = resolveMergedOptions(instance); 4910 const publicThis = instance.proxy; 4911 const ctx = instance.ctx; 4912 shouldCacheAccess = false; 4913 if (options.beforeCreate) { 4914 callHook$1(options.beforeCreate, instance, "bc"); 4915 } 4916 const { 4917 // state 4918 data: dataOptions, 4919 computed: computedOptions, 4920 methods, 4921 watch: watchOptions, 4922 provide: provideOptions, 4923 inject: injectOptions, 4924 // lifecycle 4925 created, 4926 beforeMount, 4927 mounted, 4928 beforeUpdate, 4929 updated, 4930 activated, 4931 deactivated, 4932 beforeDestroy, 4933 beforeUnmount, 4934 destroyed, 4935 unmounted, 4936 render: render4, 4937 renderTracked, 4938 renderTriggered, 4939 errorCaptured, 4940 serverPrefetch, 4941 // public API 4942 expose, 4943 inheritAttrs, 4944 // assets 4945 components, 4946 directives, 4947 filters 4948 } = options; 4949 const checkDuplicateProperties = null; 4950 if (injectOptions) { 4951 resolveInjections(injectOptions, ctx, checkDuplicateProperties); 4952 } 4953 if (methods) { 4954 for (const key in methods) { 4955 const methodHandler = methods[key]; 4956 if (isFunction$4(methodHandler)) { 4957 { 4958 ctx[key] = methodHandler.bind(publicThis); 4959 } 4960 } 4961 } 4962 } 4963 if (dataOptions) { 4964 const data = dataOptions.call(publicThis, publicThis); 4965 if (!isObject$4(data)) ; 4966 else { 4967 instance.data = reactive(data); 4968 } 4969 } 4970 shouldCacheAccess = true; 4971 if (computedOptions) { 4972 for (const key in computedOptions) { 4973 const opt = computedOptions[key]; 4974 const get2 = isFunction$4(opt) ? opt.bind(publicThis, publicThis) : isFunction$4(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP; 4975 const set2 = !isFunction$4(opt) && isFunction$4(opt.set) ? opt.set.bind(publicThis) : NOOP; 4976 const c2 = computed({ 4977 get: get2, 4978 set: set2 4979 }); 4980 Object.defineProperty(ctx, key, { 4981 enumerable: true, 4982 configurable: true, 4983 get: () => c2.value, 4984 set: (v2) => c2.value = v2 4985 }); 4986 } 4987 } 4988 if (watchOptions) { 4989 for (const key in watchOptions) { 4990 createWatcher(watchOptions[key], ctx, publicThis, key); 4991 } 4992 } 4993 if (provideOptions) { 4994 const provides = isFunction$4(provideOptions) ? provideOptions.call(publicThis) : provideOptions; 4995 Reflect.ownKeys(provides).forEach((key) => { 4996 provide(key, provides[key]); 4997 }); 4998 } 4999 if (created) { 5000 callHook$1(created, instance, "c"); 5001 } 5002 function registerLifecycleHook(register2, hook) { 5003 if (isArray$4(hook)) { 5004 hook.forEach((_hook) => register2(_hook.bind(publicThis))); 5005 } else if (hook) { 5006 register2(hook.bind(publicThis)); 5007 } 5008 } 5009 registerLifecycleHook(onBeforeMount, beforeMount); 5010 registerLifecycleHook(onMounted, mounted); 5011 registerLifecycleHook(onBeforeUpdate, beforeUpdate); 5012 registerLifecycleHook(onUpdated, updated); 5013 registerLifecycleHook(onActivated, activated); 5014 registerLifecycleHook(onDeactivated, deactivated); 5015 registerLifecycleHook(onErrorCaptured, errorCaptured); 5016 registerLifecycleHook(onRenderTracked, renderTracked); 5017 registerLifecycleHook(onRenderTriggered, renderTriggered); 5018 registerLifecycleHook(onBeforeUnmount, beforeUnmount); 5019 registerLifecycleHook(onUnmounted, unmounted); 5020 registerLifecycleHook(onServerPrefetch, serverPrefetch); 5021 if (isArray$4(expose)) { 5022 if (expose.length) { 5023 const exposed = instance.exposed || (instance.exposed = {}); 5024 expose.forEach((key) => { 5025 Object.defineProperty(exposed, key, { 5026 get: () => publicThis[key], 5027 set: (val) => publicThis[key] = val 5028 }); 5029 }); 5030 } else if (!instance.exposed) { 5031 instance.exposed = {}; 5032 } 5033 } 5034 if (render4 && instance.render === NOOP) { 5035 instance.render = render4; 5036 } 5037 if (inheritAttrs != null) { 5038 instance.inheritAttrs = inheritAttrs; 5039 } 5040 if (components) instance.components = components; 5041 if (directives) instance.directives = directives; 5042 if (serverPrefetch) { 5043 markAsyncBoundary(instance); 5044 } 5045} 5046function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP) { 5047 if (isArray$4(injectOptions)) { 5048 injectOptions = normalizeInject(injectOptions); 5049 } 5050 for (const key in injectOptions) { 5051 const opt = injectOptions[key]; 5052 let injected; 5053 if (isObject$4(opt)) { 5054 if ("default" in opt) { 5055 injected = inject( 5056 opt.from || key, 5057 opt.default, 5058 true 5059 ); 5060 } else { 5061 injected = inject(opt.from || key); 5062 } 5063 } else { 5064 injected = inject(opt); 5065 } 5066 if (isRef(injected)) { 5067 Object.defineProperty(ctx, key, { 5068 enumerable: true, 5069 configurable: true, 5070 get: () => injected.value, 5071 set: (v2) => injected.value = v2 5072 }); 5073 } else { 5074 ctx[key] = injected; 5075 } 5076 } 5077} 5078function callHook$1(hook, instance, type) { 5079 callWithAsyncErrorHandling( 5080 isArray$4(hook) ? hook.map((h2) => h2.bind(instance.proxy)) : hook.bind(instance.proxy), 5081 instance, 5082 type 5083 ); 5084} 5085function createWatcher(raw, ctx, publicThis, key) { 5086 let getter = key.includes(".") ? createPathGetter(publicThis, key) : () => publicThis[key]; 5087 if (isString$1(raw)) { 5088 const handler = ctx[raw]; 5089 if (isFunction$4(handler)) { 5090 { 5091 watch(getter, handler); 5092 } 5093 } 5094 } else if (isFunction$4(raw)) { 5095 { 5096 watch(getter, raw.bind(publicThis)); 5097 } 5098 } else if (isObject$4(raw)) { 5099 if (isArray$4(raw)) { 5100 raw.forEach((r2) => createWatcher(r2, ctx, publicThis, key)); 5101 } else { 5102 const handler = isFunction$4(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler]; 5103 if (isFunction$4(handler)) { 5104 watch(getter, handler, raw); 5105 } 5106 } 5107 } else ; 5108} 5109function resolveMergedOptions(instance) { 5110 const base = instance.type; 5111 const { mixins, extends: extendsOptions } = base; 5112 const { 5113 mixins: globalMixins, 5114 optionsCache: cache, 5115 config: { optionMergeStrategies } 5116 } = instance.appContext;
vendor: 2,830 bytes, lines 5117-5227
5117 const cached = cache.get(base); 5118 let resolved; 5119 if (cached) { 5120 resolved = cached; 5121 } else if (!globalMixins.length && !mixins && !extendsOptions) { 5122 { 5123 resolved = base; 5124 } 5125 } else { 5126 resolved = {}; 5127 if (globalMixins.length) { 5128 globalMixins.forEach( 5129 (m) => mergeOptions$1(resolved, m, optionMergeStrategies, true) 5130 ); 5131 } 5132 mergeOptions$1(resolved, base, optionMergeStrategies); 5133 } 5134 if (isObject$4(base)) { 5135 cache.set(base, resolved); 5136 } 5137 return resolved; 5138} 5139function mergeOptions$1(to, from, strats, asMixin = false) { 5140 const { mixins, extends: extendsOptions } = from; 5141 if (extendsOptions) { 5142 mergeOptions$1(to, extendsOptions, strats, true); 5143 } 5144 if (mixins) { 5145 mixins.forEach( 5146 (m) => mergeOptions$1(to, m, strats, true) 5147 ); 5148 } 5149 for (const key in from) { 5150 if (asMixin && key === "expose") ; 5151 else { 5152 const strat = internalOptionMergeStrats[key] || strats && strats[key]; 5153 to[key] = strat ? strat(to[key], from[key]) : from[key]; 5154 } 5155 } 5156 return to; 5157} 5158const internalOptionMergeStrats = { 5159 data: mergeDataFn, 5160 props: mergeEmitsOrPropsOptions, 5161 emits: mergeEmitsOrPropsOptions, 5162 // objects 5163 methods: mergeObjectOptions, 5164 computed: mergeObjectOptions, 5165 // lifecycle 5166 beforeCreate: mergeAsArray, 5167 created: mergeAsArray, 5168 beforeMount: mergeAsArray, 5169 mounted: mergeAsArray, 5170 beforeUpdate: mergeAsArray, 5171 updated: mergeAsArray, 5172 beforeDestroy: mergeAsArray, 5173 beforeUnmount: mergeAsArray, 5174 destroyed: mergeAsArray, 5175 unmounted: mergeAsArray, 5176 activated: mergeAsArray, 5177 deactivated: mergeAsArray, 5178 errorCaptured: mergeAsArray, 5179 serverPrefetch: mergeAsArray, 5180 // assets 5181 components: mergeObjectOptions, 5182 directives: mergeObjectOptions, 5183 // watch 5184 watch: mergeWatchOptions, 5185 // provide / inject 5186 provide: mergeDataFn, 5187 inject: mergeInject 5188}; 5189function mergeDataFn(to, from) { 5190 if (!from) { 5191 return to; 5192 } 5193 if (!to) { 5194 return from; 5195 } 5196 return function mergedDataFn() { 5197 return extend$1( 5198 isFunction$4(to) ? to.call(this, this) : to, 5199 isFunction$4(from) ? from.call(this, this) : from 5200 ); 5201 }; 5202} 5203function mergeInject(to, from) { 5204 return mergeObjectOptions(normalizeInject(to), normalizeInject(from)); 5205} 5206function normalizeInject(raw) { 5207 if (isArray$4(raw)) { 5208 const res = {}; 5209 for (let i = 0; i < raw.length; i++) { 5210 res[raw[i]] = raw[i]; 5211 } 5212 return res; 5213 } 5214 return raw; 5215} 5216function mergeAsArray(to, from) { 5217 return to ? [...new Set([].concat(to, from))] : from; 5218} 5219function mergeObjectOptions(to, from) { 5220 return to ? extend$1(/* @__PURE__ */ Object.create(null), to, from) : from; 5221} 5222function mergeEmitsOrPropsOptions(to, from) { 5223 if (to) { 5224 if (isArray$4(to) && isArray$4(from)) { 5225 return [.../* @__PURE__ */ new Set([...to, ...from])]; 5226 } 5227 return extend$1(
vendor: 6,157 bytes, lines 5228-5434
5228 /* @__PURE__ */ Object.create(null), 5229 normalizePropsOrEmits(to), 5230 normalizePropsOrEmits(from != null ? from : {}) 5231 ); 5232 } else { 5233 return from; 5234 } 5235} 5236function mergeWatchOptions(to, from) { 5237 if (!to) return from; 5238 if (!from) return to; 5239 const merged = extend$1(/* @__PURE__ */ Object.create(null), to); 5240 for (const key in from) { 5241 merged[key] = mergeAsArray(to[key], from[key]); 5242 } 5243 return merged; 5244} 5245function createAppContext() { 5246 return { 5247 app: null, 5248 config: { 5249 isNativeTag: NO, 5250 performance: false, 5251 globalProperties: {}, 5252 optionMergeStrategies: {}, 5253 errorHandler: void 0, 5254 warnHandler: void 0, 5255 compilerOptions: {} 5256 }, 5257 mixins: [], 5258 components: {}, 5259 directives: {}, 5260 provides: /* @__PURE__ */ Object.create(null), 5261 optionsCache: /* @__PURE__ */ new WeakMap(), 5262 propsCache: /* @__PURE__ */ new WeakMap(), 5263 emitsCache: /* @__PURE__ */ new WeakMap() 5264 }; 5265} 5266let uid$1 = 0; 5267function createAppAPI(render4, hydrate2) { 5268 return function createApp2(rootComponent, rootProps = null) { 5269 if (!isFunction$4(rootComponent)) { 5270 rootComponent = extend$1({}, rootComponent); 5271 } 5272 if (rootProps != null && !isObject$4(rootProps)) { 5273 rootProps = null; 5274 } 5275 const context = createAppContext(); 5276 const installedPlugins = /* @__PURE__ */ new WeakSet(); 5277 const pluginCleanupFns = []; 5278 let isMounted = false; 5279 const app = context.app = { 5280 _uid: uid$1++, 5281 _component: rootComponent, 5282 _props: rootProps, 5283 _container: null, 5284 _context: context, 5285 _instance: null, 5286 version, 5287 get config() { 5288 return context.config; 5289 }, 5290 set config(v2) { 5291 }, 5292 use(plugin, ...options) { 5293 if (installedPlugins.has(plugin)) ; 5294 else if (plugin && isFunction$4(plugin.install)) { 5295 installedPlugins.add(plugin); 5296 plugin.install(app, ...options); 5297 } else if (isFunction$4(plugin)) { 5298 installedPlugins.add(plugin); 5299 plugin(app, ...options); 5300 } else ; 5301 return app; 5302 }, 5303 mixin(mixin) { 5304 { 5305 if (!context.mixins.includes(mixin)) { 5306 context.mixins.push(mixin); 5307 } 5308 } 5309 return app; 5310 }, 5311 component(name, component) { 5312 if (!component) { 5313 return context.components[name]; 5314 } 5315 context.components[name] = component; 5316 return app; 5317 }, 5318 directive(name, directive) { 5319 if (!directive) { 5320 return context.directives[name]; 5321 } 5322 context.directives[name] = directive; 5323 return app; 5324 }, 5325 mount(rootContainer, isHydrate, namespace) { 5326 if (!isMounted) { 5327 const vnode = app._ceVNode || createVNode(rootComponent, rootProps); 5328 vnode.appContext = context; 5329 if (namespace === true) { 5330 namespace = "svg"; 5331 } else if (namespace === false) { 5332 namespace = void 0; 5333 } 5334 if (isHydrate && hydrate2) { 5335 hydrate2(vnode, rootContainer); 5336 } else { 5337 render4(vnode, rootContainer, namespace); 5338 } 5339 isMounted = true; 5340 app._container = rootContainer; 5341 rootContainer.__vue_app__ = app; 5342 return getComponentPublicInstance(vnode.component); 5343 } 5344 }, 5345 onUnmount(cleanupFn) { 5346 pluginCleanupFns.push(cleanupFn); 5347 }, 5348 unmount() { 5349 if (isMounted) { 5350 callWithAsyncErrorHandling( 5351 pluginCleanupFns, 5352 app._instance, 5353 16 5354 ); 5355 render4(null, app._container); 5356 delete app._container.__vue_app__; 5357 } 5358 }, 5359 provide(key, value) { 5360 context.provides[key] = value; 5361 return app; 5362 }, 5363 runWithContext(fn) { 5364 const lastApp = currentApp; 5365 currentApp = app; 5366 try { 5367 return fn(); 5368 } finally { 5369 currentApp = lastApp; 5370 } 5371 } 5372 }; 5373 return app; 5374 }; 5375} 5376let currentApp = null; 5377function provide(key, value) { 5378 if (!currentInstance) ; 5379 else { 5380 let provides = currentInstance.provides; 5381 const parentProvides = currentInstance.parent && currentInstance.parent.provides; 5382 if (parentProvides === provides) { 5383 provides = currentInstance.provides = Object.create(parentProvides); 5384 } 5385 provides[key] = value; 5386 } 5387} 5388function inject(key, defaultValue, treatDefaultAsFactory = false) { 5389 const instance = currentInstance || currentRenderingInstance; 5390 if (instance || currentApp) { 5391 const provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0; 5392 if (provides && key in provides) { 5393 return provides[key]; 5394 } else if (arguments.length > 1) { 5395 return treatDefaultAsFactory && isFunction$4(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue; 5396 } else ; 5397 } 5398} 5399function hasInjectionContext() { 5400 return !!(currentInstance || currentRenderingInstance || currentApp); 5401} 5402const internalObjectProto = {}; 5403const createInternalObject = () => Object.create(internalObjectProto); 5404const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto; 5405function initProps(instance, rawProps, isStateful, isSSR = false) { 5406 const props = {}; 5407 const attrs = createInternalObject(); 5408 instance.propsDefaults = /* @__PURE__ */ Object.create(null); 5409 setFullProps(instance, rawProps, props, attrs); 5410 for (const key in instance.propsOptions[0]) { 5411 if (!(key in props)) { 5412 props[key] = void 0; 5413 } 5414 } 5415 if (isStateful) { 5416 instance.props = isSSR ? props : shallowReactive(props); 5417 } else { 5418 if (!instance.type.props) { 5419 instance.props = attrs; 5420 } else { 5421 instance.props = props; 5422 } 5423 } 5424 instance.attrs = attrs; 5425} 5426function updateProps(instance, rawProps, rawPrevProps, optimized) { 5427 const { 5428 props, 5429 attrs, 5430 vnode: { patchFlag } 5431 } = instance; 5432 const rawCurrentProps = toRaw(props); 5433 const [options] = instance.propsOptions; 5434 let hasAttrsChanged = false;
vendor: 4,450 bytes, lines 5435-5587
5435 if ( 5436 // always force full diff in dev 5437 // - #1942 if hmr is enabled with sfc component 5438 // - vite#872 non-sfc component used by sfc component 5439 (optimized || patchFlag > 0) && !(patchFlag & 16) 5440 ) { 5441 if (patchFlag & 8) { 5442 const propsToUpdate = instance.vnode.dynamicProps; 5443 for (let i = 0; i < propsToUpdate.length; i++) { 5444 let key = propsToUpdate[i]; 5445 if (isEmitListener(instance.emitsOptions, key)) { 5446 continue; 5447 } 5448 const value = rawProps[key]; 5449 if (options) { 5450 if (hasOwn(attrs, key)) { 5451 if (value !== attrs[key]) { 5452 attrs[key] = value; 5453 hasAttrsChanged = true; 5454 } 5455 } else { 5456 const camelizedKey = camelize(key); 5457 props[camelizedKey] = resolvePropValue( 5458 options, 5459 rawCurrentProps, 5460 camelizedKey, 5461 value, 5462 instance, 5463 false 5464 ); 5465 } 5466 } else { 5467 if (value !== attrs[key]) { 5468 attrs[key] = value; 5469 hasAttrsChanged = true; 5470 } 5471 } 5472 } 5473 } 5474 } else { 5475 if (setFullProps(instance, rawProps, props, attrs)) { 5476 hasAttrsChanged = true; 5477 } 5478 let kebabKey; 5479 for (const key in rawCurrentProps) { 5480 if (!rawProps || // for camelCase 5481 !hasOwn(rawProps, key) && // it's possible the original props was passed in as kebab-case 5482 // and converted to camelCase (#955) 5483 ((kebabKey = hyphenate(key)) === key || !hasOwn(rawProps, kebabKey))) { 5484 if (options) { 5485 if (rawPrevProps && // for camelCase 5486 (rawPrevProps[key] !== void 0 || // for kebab-case 5487 rawPrevProps[kebabKey] !== void 0)) { 5488 props[key] = resolvePropValue( 5489 options, 5490 rawCurrentProps, 5491 key, 5492 void 0, 5493 instance, 5494 true 5495 ); 5496 } 5497 } else { 5498 delete props[key]; 5499 } 5500 } 5501 } 5502 if (attrs !== rawCurrentProps) { 5503 for (const key in attrs) { 5504 if (!rawProps || !hasOwn(rawProps, key) && true) { 5505 delete attrs[key]; 5506 hasAttrsChanged = true; 5507 } 5508 } 5509 } 5510 } 5511 if (hasAttrsChanged) { 5512 trigger(instance.attrs, "set", ""); 5513 } 5514} 5515function setFullProps(instance, rawProps, props, attrs) { 5516 const [options, needCastKeys] = instance.propsOptions; 5517 let hasAttrsChanged = false; 5518 let rawCastValues; 5519 if (rawProps) { 5520 for (let key in rawProps) { 5521 if (isReservedProp(key)) { 5522 continue; 5523 } 5524 const value = rawProps[key]; 5525 let camelKey; 5526 if (options && hasOwn(options, camelKey = camelize(key))) { 5527 if (!needCastKeys || !needCastKeys.includes(camelKey)) { 5528 props[camelKey] = value; 5529 } else { 5530 (rawCastValues || (rawCastValues = {}))[camelKey] = value; 5531 } 5532 } else if (!isEmitListener(instance.emitsOptions, key)) { 5533 if (!(key in attrs) || value !== attrs[key]) { 5534 attrs[key] = value; 5535 hasAttrsChanged = true; 5536 } 5537 } 5538 } 5539 } 5540 if (needCastKeys) { 5541 const rawCurrentProps = toRaw(props); 5542 const castValues = rawCastValues || EMPTY_OBJ; 5543 for (let i = 0; i < needCastKeys.length; i++) { 5544 const key = needCastKeys[i]; 5545 props[key] = resolvePropValue( 5546 options, 5547 rawCurrentProps, 5548 key, 5549 castValues[key], 5550 instance, 5551 !hasOwn(castValues, key) 5552 ); 5553 } 5554 } 5555 return hasAttrsChanged; 5556} 5557function resolvePropValue(options, props, key, value, instance, isAbsent) { 5558 const opt = options[key]; 5559 if (opt != null) { 5560 const hasDefault = hasOwn(opt, "default"); 5561 if (hasDefault && value === void 0) { 5562 const defaultValue = opt.default; 5563 if (opt.type !== Function && !opt.skipFactory && isFunction$4(defaultValue)) { 5564 const { propsDefaults } = instance; 5565 if (key in propsDefaults) { 5566 value = propsDefaults[key]; 5567 } else { 5568 const reset = setCurrentInstance(instance); 5569 value = propsDefaults[key] = defaultValue.call( 5570 null, 5571 props 5572 ); 5573 reset(); 5574 } 5575 } else { 5576 value = defaultValue; 5577 } 5578 if (instance.ce) { 5579 instance.ce._setProp(key, value); 5580 } 5581 } 5582 if (opt[ 5583 0 5584 /* shouldCast */ 5585 ]) { 5586 if (isAbsent && !hasDefault) { 5587 value = false;
vendor: 15,398 bytes, lines 5588-6123
5588 } else if (opt[ 5589 1 5590 /* shouldCastTrue */ 5591 ] && (value === "" || value === hyphenate(key))) { 5592 value = true; 5593 } 5594 } 5595 } 5596 return value; 5597} 5598const mixinPropsCache = /* @__PURE__ */ new WeakMap(); 5599function normalizePropsOptions(comp, appContext, asMixin = false) { 5600 const cache = asMixin ? mixinPropsCache : appContext.propsCache; 5601 const cached = cache.get(comp); 5602 if (cached) { 5603 return cached; 5604 } 5605 const raw = comp.props; 5606 const normalized = {}; 5607 const needCastKeys = []; 5608 let hasExtends = false; 5609 if (!isFunction$4(comp)) { 5610 const extendProps = (raw2) => { 5611 hasExtends = true; 5612 const [props, keys2] = normalizePropsOptions(raw2, appContext, true); 5613 extend$1(normalized, props); 5614 if (keys2) needCastKeys.push(...keys2); 5615 }; 5616 if (!asMixin && appContext.mixins.length) { 5617 appContext.mixins.forEach(extendProps); 5618 } 5619 if (comp.extends) { 5620 extendProps(comp.extends); 5621 } 5622 if (comp.mixins) { 5623 comp.mixins.forEach(extendProps); 5624 } 5625 } 5626 if (!raw && !hasExtends) { 5627 if (isObject$4(comp)) { 5628 cache.set(comp, EMPTY_ARR); 5629 } 5630 return EMPTY_ARR; 5631 } 5632 if (isArray$4(raw)) { 5633 for (let i = 0; i < raw.length; i++) { 5634 const normalizedKey = camelize(raw[i]); 5635 if (validatePropName(normalizedKey)) { 5636 normalized[normalizedKey] = EMPTY_OBJ; 5637 } 5638 } 5639 } else if (raw) { 5640 for (const key in raw) { 5641 const normalizedKey = camelize(key); 5642 if (validatePropName(normalizedKey)) { 5643 const opt = raw[key]; 5644 const prop = normalized[normalizedKey] = isArray$4(opt) || isFunction$4(opt) ? { type: opt } : extend$1({}, opt); 5645 const propType = prop.type; 5646 let shouldCast = false; 5647 let shouldCastTrue = true; 5648 if (isArray$4(propType)) { 5649 for (let index2 = 0; index2 < propType.length; ++index2) { 5650 const type = propType[index2]; 5651 const typeName = isFunction$4(type) && type.name; 5652 if (typeName === "Boolean") { 5653 shouldCast = true; 5654 break; 5655 } else if (typeName === "String") { 5656 shouldCastTrue = false; 5657 } 5658 } 5659 } else { 5660 shouldCast = isFunction$4(propType) && propType.name === "Boolean"; 5661 } 5662 prop[ 5663 0 5664 /* shouldCast */ 5665 ] = shouldCast; 5666 prop[ 5667 1 5668 /* shouldCastTrue */ 5669 ] = shouldCastTrue; 5670 if (shouldCast || hasOwn(prop, "default")) { 5671 needCastKeys.push(normalizedKey); 5672 } 5673 } 5674 } 5675 } 5676 const res = [normalized, needCastKeys]; 5677 if (isObject$4(comp)) { 5678 cache.set(comp, res); 5679 } 5680 return res; 5681} 5682function validatePropName(key) { 5683 if (key[0] !== "$" && !isReservedProp(key)) { 5684 return true; 5685 } 5686 return false; 5687} 5688const isInternalKey = (key) => key[0] === "_" || key === "$stable"; 5689const normalizeSlotValue = (value) => isArray$4(value) ? value.map(normalizeVNode) : [normalizeVNode(value)]; 5690const normalizeSlot$1 = (key, rawSlot, ctx) => { 5691 if (rawSlot._n) { 5692 return rawSlot; 5693 } 5694 const normalized = withCtx((...args) => { 5695 if (false) ; 5696 return normalizeSlotValue(rawSlot(...args)); 5697 }, ctx); 5698 normalized._c = false; 5699 return normalized; 5700}; 5701const normalizeObjectSlots = (rawSlots, slots, instance) => { 5702 const ctx = rawSlots._ctx; 5703 for (const key in rawSlots) { 5704 if (isInternalKey(key)) continue; 5705 const value = rawSlots[key]; 5706 if (isFunction$4(value)) { 5707 slots[key] = normalizeSlot$1(key, value, ctx); 5708 } else if (value != null) { 5709 const normalized = normalizeSlotValue(value); 5710 slots[key] = () => normalized; 5711 } 5712 } 5713}; 5714const normalizeVNodeSlots = (instance, children) => { 5715 const normalized = normalizeSlotValue(children); 5716 instance.slots.default = () => normalized; 5717}; 5718const assignSlots = (slots, children, optimized) => { 5719 for (const key in children) { 5720 if (optimized || key !== "_") { 5721 slots[key] = children[key]; 5722 } 5723 } 5724}; 5725const initSlots = (instance, children, optimized) => { 5726 const slots = instance.slots = createInternalObject(); 5727 if (instance.vnode.shapeFlag & 32) { 5728 const type = children._; 5729 if (type) { 5730 assignSlots(slots, children, optimized); 5731 if (optimized) { 5732 def(slots, "_", type, true); 5733 } 5734 } else { 5735 normalizeObjectSlots(children, slots); 5736 } 5737 } else if (children) { 5738 normalizeVNodeSlots(instance, children); 5739 } 5740}; 5741const updateSlots = (instance, children, optimized) => { 5742 const { vnode, slots } = instance; 5743 let needDeletionCheck = true; 5744 let deletionComparisonTarget = EMPTY_OBJ; 5745 if (vnode.shapeFlag & 32) { 5746 const type = children._; 5747 if (type) { 5748 if (optimized && type === 1) { 5749 needDeletionCheck = false; 5750 } else { 5751 assignSlots(slots, children, optimized); 5752 } 5753 } else { 5754 needDeletionCheck = !children.$stable; 5755 normalizeObjectSlots(children, slots); 5756 } 5757 deletionComparisonTarget = children; 5758 } else if (children) { 5759 normalizeVNodeSlots(instance, children); 5760 deletionComparisonTarget = { default: 1 }; 5761 } 5762 if (needDeletionCheck) { 5763 for (const key in slots) { 5764 if (!isInternalKey(key) && deletionComparisonTarget[key] == null) { 5765 delete slots[key]; 5766 } 5767 } 5768 } 5769}; 5770const queuePostRenderEffect = queueEffectWithSuspense; 5771function createRenderer(options) { 5772 return baseCreateRenderer(options); 5773} 5774function createHydrationRenderer(options) { 5775 return baseCreateRenderer(options, createHydrationFunctions); 5776} 5777function baseCreateRenderer(options, createHydrationFns) { 5778 const target = getGlobalThis(); 5779 target.__VUE__ = true; 5780 const { 5781 insert: hostInsert, 5782 remove: hostRemove, 5783 patchProp: hostPatchProp, 5784 createElement: hostCreateElement, 5785 createText: hostCreateText, 5786 createComment: hostCreateComment, 5787 setText: hostSetText, 5788 setElementText: hostSetElementText, 5789 parentNode: hostParentNode, 5790 nextSibling: hostNextSibling, 5791 setScopeId: hostSetScopeId = NOOP, 5792 insertStaticContent: hostInsertStaticContent 5793 } = options; 5794 const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, namespace = void 0, slotScopeIds = null, optimized = !!n2.dynamicChildren) => { 5795 if (n1 === n2) { 5796 return; 5797 } 5798 if (n1 && !isSameVNodeType(n1, n2)) { 5799 anchor = getNextHostNode(n1); 5800 unmount(n1, parentComponent, parentSuspense, true); 5801 n1 = null; 5802 } 5803 if (n2.patchFlag === -2) { 5804 optimized = false; 5805 n2.dynamicChildren = null; 5806 } 5807 const { type, ref: ref3, shapeFlag } = n2; 5808 switch (type) { 5809 case Text: 5810 processText(n1, n2, container, anchor); 5811 break; 5812 case Comment: 5813 processCommentNode(n1, n2, container, anchor); 5814 break; 5815 case Static: 5816 if (n1 == null) { 5817 mountStaticNode(n2, container, anchor, namespace); 5818 } 5819 break; 5820 case Fragment: 5821 processFragment( 5822 n1, 5823 n2, 5824 container, 5825 anchor, 5826 parentComponent, 5827 parentSuspense, 5828 namespace, 5829 slotScopeIds, 5830 optimized 5831 ); 5832 break; 5833 default: 5834 if (shapeFlag & 1) { 5835 processElement( 5836 n1, 5837 n2, 5838 container, 5839 anchor, 5840 parentComponent, 5841 parentSuspense, 5842 namespace, 5843 slotScopeIds, 5844 optimized 5845 ); 5846 } else if (shapeFlag & 6) { 5847 processComponent( 5848 n1, 5849 n2, 5850 container, 5851 anchor, 5852 parentComponent, 5853 parentSuspense, 5854 namespace, 5855 slotScopeIds, 5856 optimized 5857 ); 5858 } else if (shapeFlag & 64) { 5859 type.process( 5860 n1, 5861 n2, 5862 container, 5863 anchor, 5864 parentComponent, 5865 parentSuspense, 5866 namespace, 5867 slotScopeIds, 5868 optimized, 5869 internals 5870 ); 5871 } else if (shapeFlag & 128) { 5872 type.process( 5873 n1, 5874 n2, 5875 container, 5876 anchor, 5877 parentComponent, 5878 parentSuspense, 5879 namespace, 5880 slotScopeIds, 5881 optimized, 5882 internals 5883 ); 5884 } else ; 5885 } 5886 if (ref3 != null && parentComponent) { 5887 setRef(ref3, n1 && n1.ref, parentSuspense, n2 || n1, !n2); 5888 } 5889 }; 5890 const processText = (n1, n2, container, anchor) => { 5891 if (n1 == null) { 5892 hostInsert( 5893 n2.el = hostCreateText(n2.children), 5894 container, 5895 anchor 5896 ); 5897 } else { 5898 const el = n2.el = n1.el; 5899 if (n2.children !== n1.children) { 5900 hostSetText(el, n2.children); 5901 } 5902 } 5903 }; 5904 const processCommentNode = (n1, n2, container, anchor) => { 5905 if (n1 == null) { 5906 hostInsert( 5907 n2.el = hostCreateComment(n2.children || ""), 5908 container, 5909 anchor 5910 ); 5911 } else { 5912 n2.el = n1.el; 5913 } 5914 }; 5915 const mountStaticNode = (n2, container, anchor, namespace) => { 5916 [n2.el, n2.anchor] = hostInsertStaticContent( 5917 n2.children, 5918 container, 5919 anchor, 5920 namespace, 5921 n2.el, 5922 n2.anchor 5923 ); 5924 }; 5925 const moveStaticNode = ({ el, anchor }, container, nextSibling) => { 5926 let next; 5927 while (el && el !== anchor) { 5928 next = hostNextSibling(el); 5929 hostInsert(el, container, nextSibling); 5930 el = next; 5931 } 5932 hostInsert(anchor, container, nextSibling); 5933 }; 5934 const removeStaticNode = ({ el, anchor }) => { 5935 let next; 5936 while (el && el !== anchor) { 5937 next = hostNextSibling(el); 5938 hostRemove(el); 5939 el = next; 5940 } 5941 hostRemove(anchor); 5942 }; 5943 const processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 5944 if (n2.type === "svg") { 5945 namespace = "svg"; 5946 } else if (n2.type === "math") { 5947 namespace = "mathml"; 5948 } 5949 if (n1 == null) { 5950 mountElement( 5951 n2, 5952 container, 5953 anchor, 5954 parentComponent, 5955 parentSuspense, 5956 namespace, 5957 slotScopeIds, 5958 optimized 5959 ); 5960 } else { 5961 patchElement( 5962 n1, 5963 n2, 5964 parentComponent, 5965 parentSuspense, 5966 namespace, 5967 slotScopeIds, 5968 optimized 5969 ); 5970 } 5971 }; 5972 const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 5973 let el; 5974 let vnodeHook; 5975 const { props, shapeFlag, transition, dirs } = vnode; 5976 el = vnode.el = hostCreateElement( 5977 vnode.type, 5978 namespace, 5979 props && props.is, 5980 props 5981 ); 5982 if (shapeFlag & 8) { 5983 hostSetElementText(el, vnode.children); 5984 } else if (shapeFlag & 16) { 5985 mountChildren( 5986 vnode.children, 5987 el, 5988 null, 5989 parentComponent, 5990 parentSuspense, 5991 resolveChildrenNamespace(vnode, namespace), 5992 slotScopeIds, 5993 optimized 5994 ); 5995 } 5996 if (dirs) { 5997 invokeDirectiveHook(vnode, null, parentComponent, "created"); 5998 } 5999 setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent); 6000 if (props) { 6001 for (const key in props) { 6002 if (key !== "value" && !isReservedProp(key)) { 6003 hostPatchProp(el, key, null, props[key], namespace, parentComponent); 6004 } 6005 } 6006 if ("value" in props) { 6007 hostPatchProp(el, "value", null, props.value, namespace); 6008 } 6009 if (vnodeHook = props.onVnodeBeforeMount) { 6010 invokeVNodeHook(vnodeHook, parentComponent, vnode); 6011 } 6012 } 6013 if (dirs) { 6014 invokeDirectiveHook(vnode, null, parentComponent, "beforeMount"); 6015 } 6016 const needCallTransitionHooks = needTransition(parentSuspense, transition); 6017 if (needCallTransitionHooks) { 6018 transition.beforeEnter(el); 6019 } 6020 hostInsert(el, container, anchor); 6021 if ((vnodeHook = props && props.onVnodeMounted) || needCallTransitionHooks || dirs) { 6022 queuePostRenderEffect(() => { 6023 vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); 6024 needCallTransitionHooks && transition.enter(el); 6025 dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted"); 6026 }, parentSuspense); 6027 } 6028 }; 6029 const setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => { 6030 if (scopeId) { 6031 hostSetScopeId(el, scopeId); 6032 } 6033 if (slotScopeIds) { 6034 for (let i = 0; i < slotScopeIds.length; i++) { 6035 hostSetScopeId(el, slotScopeIds[i]); 6036 } 6037 } 6038 if (parentComponent) { 6039 let subTree = parentComponent.subTree; 6040 if (vnode === subTree || isSuspense(subTree.type) && (subTree.ssContent === vnode || subTree.ssFallback === vnode)) { 6041 const parentVNode = parentComponent.vnode; 6042 setScopeId( 6043 el, 6044 parentVNode, 6045 parentVNode.scopeId, 6046 parentVNode.slotScopeIds, 6047 parentComponent.parent 6048 ); 6049 } 6050 } 6051 }; 6052 const mountChildren = (children, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, start = 0) => { 6053 for (let i = start; i < children.length; i++) { 6054 const child = children[i] = optimized ? cloneIfMounted(children[i]) : normalizeVNode(children[i]); 6055 patch( 6056 null, 6057 child, 6058 container, 6059 anchor, 6060 parentComponent, 6061 parentSuspense, 6062 namespace, 6063 slotScopeIds, 6064 optimized 6065 ); 6066 } 6067 }; 6068 const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 6069 const el = n2.el = n1.el; 6070 let { patchFlag, dynamicChildren, dirs } = n2; 6071 patchFlag |= n1.patchFlag & 16; 6072 const oldProps = n1.props || EMPTY_OBJ; 6073 const newProps = n2.props || EMPTY_OBJ; 6074 let vnodeHook; 6075 parentComponent && toggleRecurse(parentComponent, false); 6076 if (vnodeHook = newProps.onVnodeBeforeUpdate) { 6077 invokeVNodeHook(vnodeHook, parentComponent, n2, n1); 6078 } 6079 if (dirs) { 6080 invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate"); 6081 } 6082 parentComponent && toggleRecurse(parentComponent, true); 6083 if (oldProps.innerHTML && newProps.innerHTML == null || oldProps.textContent && newProps.textContent == null) { 6084 hostSetElementText(el, ""); 6085 } 6086 if (dynamicChildren) { 6087 patchBlockChildren( 6088 n1.dynamicChildren, 6089 dynamicChildren, 6090 el, 6091 parentComponent, 6092 parentSuspense, 6093 resolveChildrenNamespace(n2, namespace), 6094 slotScopeIds 6095 ); 6096 } else if (!optimized) { 6097 patchChildren( 6098 n1, 6099 n2, 6100 el, 6101 null, 6102 parentComponent, 6103 parentSuspense, 6104 resolveChildrenNamespace(n2, namespace), 6105 slotScopeIds, 6106 false 6107 ); 6108 } 6109 if (patchFlag > 0) { 6110 if (patchFlag & 16) { 6111 patchProps(el, oldProps, newProps, parentComponent, namespace); 6112 } else { 6113 if (patchFlag & 2) { 6114 if (oldProps.class !== newProps.class) { 6115 hostPatchProp(el, "class", null, newProps.class, namespace); 6116 } 6117 } 6118 if (patchFlag & 4) { 6119 hostPatchProp(el, "style", oldProps.style, newProps.style, namespace); 6120 } 6121 if (patchFlag & 8) { 6122 const propsToUpdate = n2.dynamicProps; 6123 for (let i = 0; i < propsToUpdate.length; i++) {
vendor: 4,697 bytes, lines 6124-6247
6124 const key = propsToUpdate[i]; 6125 const prev = oldProps[key]; 6126 const next = newProps[key]; 6127 if (next !== prev || key === "value") { 6128 hostPatchProp(el, key, prev, next, namespace, parentComponent); 6129 } 6130 } 6131 } 6132 } 6133 if (patchFlag & 1) { 6134 if (n1.children !== n2.children) { 6135 hostSetElementText(el, n2.children); 6136 } 6137 } 6138 } else if (!optimized && dynamicChildren == null) { 6139 patchProps(el, oldProps, newProps, parentComponent, namespace); 6140 } 6141 if ((vnodeHook = newProps.onVnodeUpdated) || dirs) { 6142 queuePostRenderEffect(() => { 6143 vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1); 6144 dirs && invokeDirectiveHook(n2, n1, parentComponent, "updated"); 6145 }, parentSuspense); 6146 } 6147 }; 6148 const patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, namespace, slotScopeIds) => { 6149 for (let i = 0; i < newChildren.length; i++) { 6150 const oldVNode = oldChildren[i]; 6151 const newVNode = newChildren[i]; 6152 const container = ( 6153 // oldVNode may be an errored async setup() component inside Suspense 6154 // which will not have a mounted element 6155 oldVNode.el && // - In the case of a Fragment, we need to provide the actual parent 6156 // of the Fragment itself so it can move its children. 6157 (oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement 6158 // which also requires the correct parent container 6159 !isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything. 6160 oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : ( 6161 // In other cases, the parent container is not actually used so we 6162 // just pass the block element here to avoid a DOM parentNode call. 6163 fallbackContainer 6164 ) 6165 ); 6166 patch( 6167 oldVNode, 6168 newVNode, 6169 container, 6170 null, 6171 parentComponent, 6172 parentSuspense, 6173 namespace, 6174 slotScopeIds, 6175 true 6176 ); 6177 } 6178 }; 6179 const patchProps = (el, oldProps, newProps, parentComponent, namespace) => { 6180 if (oldProps !== newProps) { 6181 if (oldProps !== EMPTY_OBJ) { 6182 for (const key in oldProps) { 6183 if (!isReservedProp(key) && !(key in newProps)) { 6184 hostPatchProp( 6185 el, 6186 key, 6187 oldProps[key], 6188 null, 6189 namespace, 6190 parentComponent 6191 ); 6192 } 6193 } 6194 } 6195 for (const key in newProps) { 6196 if (isReservedProp(key)) continue; 6197 const next = newProps[key]; 6198 const prev = oldProps[key]; 6199 if (next !== prev && key !== "value") { 6200 hostPatchProp(el, key, prev, next, namespace, parentComponent); 6201 } 6202 } 6203 if ("value" in newProps) { 6204 hostPatchProp(el, "value", oldProps.value, newProps.value, namespace); 6205 } 6206 } 6207 }; 6208 const processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 6209 const fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText(""); 6210 const fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText(""); 6211 let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2; 6212 if (fragmentSlotScopeIds) { 6213 slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; 6214 } 6215 if (n1 == null) { 6216 hostInsert(fragmentStartAnchor, container, anchor); 6217 hostInsert(fragmentEndAnchor, container, anchor); 6218 mountChildren( 6219 // #10007 6220 // such fragment like `<></>` will be compiled into 6221 // a fragment which doesn't have a children. 6222 // In this case fallback to an empty array 6223 n2.children || [], 6224 container, 6225 fragmentEndAnchor, 6226 parentComponent, 6227 parentSuspense, 6228 namespace, 6229 slotScopeIds, 6230 optimized 6231 ); 6232 } else { 6233 if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result 6234 // of renderSlot() with no valid children 6235 n1.dynamicChildren) { 6236 patchBlockChildren( 6237 n1.dynamicChildren, 6238 dynamicChildren, 6239 container, 6240 parentComponent, 6241 parentSuspense, 6242 namespace, 6243 slotScopeIds 6244 ); 6245 if ( 6246 // #2080 if the stable fragment has a key, it's a <template v-for> that may 6247 // get moved around. Make sure all root level vnodes inherit el.
vendor: 12,382 bytes, lines 6248-6688
6248 // #2134 or if it's a component root, it may also get moved around 6249 // as the component is being moved. 6250 n2.key != null || parentComponent && n2 === parentComponent.subTree 6251 ) { 6252 traverseStaticChildren( 6253 n1, 6254 n2, 6255 true 6256 /* shallow */ 6257 ); 6258 } 6259 } else { 6260 patchChildren( 6261 n1, 6262 n2, 6263 container, 6264 fragmentEndAnchor, 6265 parentComponent, 6266 parentSuspense, 6267 namespace, 6268 slotScopeIds, 6269 optimized 6270 ); 6271 } 6272 } 6273 }; 6274 const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 6275 n2.slotScopeIds = slotScopeIds; 6276 if (n1 == null) { 6277 if (n2.shapeFlag & 512) { 6278 parentComponent.ctx.activate( 6279 n2, 6280 container, 6281 anchor, 6282 namespace, 6283 optimized 6284 ); 6285 } else { 6286 mountComponent( 6287 n2, 6288 container, 6289 anchor, 6290 parentComponent, 6291 parentSuspense, 6292 namespace, 6293 optimized 6294 ); 6295 } 6296 } else { 6297 updateComponent(n1, n2, optimized); 6298 } 6299 }; 6300 const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, namespace, optimized) => { 6301 const instance = initialVNode.component = createComponentInstance( 6302 initialVNode, 6303 parentComponent, 6304 parentSuspense 6305 ); 6306 if (isKeepAlive(initialVNode)) { 6307 instance.ctx.renderer = internals; 6308 } 6309 { 6310 setupComponent(instance, false, optimized); 6311 } 6312 if (instance.asyncDep) { 6313 parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized); 6314 if (!initialVNode.el) { 6315 const placeholder = instance.subTree = createVNode(Comment); 6316 processCommentNode(null, placeholder, container, anchor); 6317 } 6318 } else { 6319 setupRenderEffect( 6320 instance, 6321 initialVNode, 6322 container, 6323 anchor, 6324 parentSuspense, 6325 namespace, 6326 optimized 6327 ); 6328 } 6329 }; 6330 const updateComponent = (n1, n2, optimized) => { 6331 const instance = n2.component = n1.component; 6332 if (shouldUpdateComponent(n1, n2, optimized)) { 6333 if (instance.asyncDep && !instance.asyncResolved) { 6334 updateComponentPreRender(instance, n2, optimized); 6335 return; 6336 } else { 6337 instance.next = n2; 6338 instance.update(); 6339 } 6340 } else { 6341 n2.el = n1.el; 6342 instance.vnode = n2; 6343 } 6344 }; 6345 const setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, namespace, optimized) => { 6346 const componentUpdateFn = () => { 6347 if (!instance.isMounted) { 6348 let vnodeHook; 6349 const { el, props } = initialVNode; 6350 const { bm, m, parent, root: root2, type } = instance; 6351 const isAsyncWrapperVNode = isAsyncWrapper(initialVNode); 6352 toggleRecurse(instance, false); 6353 if (bm) { 6354 invokeArrayFns(bm); 6355 } 6356 if (!isAsyncWrapperVNode && (vnodeHook = props && props.onVnodeBeforeMount)) { 6357 invokeVNodeHook(vnodeHook, parent, initialVNode); 6358 } 6359 toggleRecurse(instance, true); 6360 if (el && hydrateNode) { 6361 const hydrateSubTree = () => { 6362 instance.subTree = renderComponentRoot(instance); 6363 hydrateNode( 6364 el, 6365 instance.subTree, 6366 instance, 6367 parentSuspense, 6368 null 6369 ); 6370 }; 6371 if (isAsyncWrapperVNode && type.__asyncHydrate) { 6372 type.__asyncHydrate( 6373 el, 6374 instance, 6375 hydrateSubTree 6376 ); 6377 } else { 6378 hydrateSubTree(); 6379 } 6380 } else { 6381 if (root2.ce) { 6382 root2.ce._injectChildStyle(type); 6383 } 6384 const subTree = instance.subTree = renderComponentRoot(instance); 6385 patch( 6386 null, 6387 subTree, 6388 container, 6389 anchor, 6390 instance, 6391 parentSuspense, 6392 namespace 6393 ); 6394 initialVNode.el = subTree.el; 6395 } 6396 if (m) { 6397 queuePostRenderEffect(m, parentSuspense); 6398 } 6399 if (!isAsyncWrapperVNode && (vnodeHook = props && props.onVnodeMounted)) { 6400 const scopedInitialVNode = initialVNode; 6401 queuePostRenderEffect( 6402 () => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), 6403 parentSuspense 6404 ); 6405 } 6406 if (initialVNode.shapeFlag & 256 || parent && isAsyncWrapper(parent.vnode) && parent.vnode.shapeFlag & 256) { 6407 instance.a && queuePostRenderEffect(instance.a, parentSuspense); 6408 } 6409 instance.isMounted = true; 6410 initialVNode = container = anchor = null; 6411 } else { 6412 let { next, bu, u, parent, vnode } = instance; 6413 { 6414 const nonHydratedAsyncRoot = locateNonHydratedAsyncRoot(instance); 6415 if (nonHydratedAsyncRoot) { 6416 if (next) { 6417 next.el = vnode.el; 6418 updateComponentPreRender(instance, next, optimized); 6419 } 6420 nonHydratedAsyncRoot.asyncDep.then(() => { 6421 if (!instance.isUnmounted) { 6422 componentUpdateFn(); 6423 } 6424 }); 6425 return; 6426 } 6427 } 6428 let originNext = next; 6429 let vnodeHook; 6430 toggleRecurse(instance, false); 6431 if (next) { 6432 next.el = vnode.el; 6433 updateComponentPreRender(instance, next, optimized); 6434 } else { 6435 next = vnode; 6436 } 6437 if (bu) { 6438 invokeArrayFns(bu); 6439 } 6440 if (vnodeHook = next.props && next.props.onVnodeBeforeUpdate) { 6441 invokeVNodeHook(vnodeHook, parent, next, vnode); 6442 } 6443 toggleRecurse(instance, true); 6444 const nextTree = renderComponentRoot(instance); 6445 const prevTree = instance.subTree; 6446 instance.subTree = nextTree; 6447 patch( 6448 prevTree, 6449 nextTree, 6450 // parent may have changed if it's in a teleport 6451 hostParentNode(prevTree.el), 6452 // anchor may have changed if it's in a fragment 6453 getNextHostNode(prevTree), 6454 instance, 6455 parentSuspense, 6456 namespace 6457 ); 6458 next.el = nextTree.el; 6459 if (originNext === null) { 6460 updateHOCHostEl(instance, nextTree.el); 6461 } 6462 if (u) { 6463 queuePostRenderEffect(u, parentSuspense); 6464 } 6465 if (vnodeHook = next.props && next.props.onVnodeUpdated) { 6466 queuePostRenderEffect( 6467 () => invokeVNodeHook(vnodeHook, parent, next, vnode), 6468 parentSuspense 6469 ); 6470 } 6471 } 6472 }; 6473 instance.scope.on(); 6474 const effect2 = instance.effect = new ReactiveEffect(componentUpdateFn); 6475 instance.scope.off(); 6476 const update3 = instance.update = effect2.run.bind(effect2); 6477 const job = instance.job = effect2.runIfDirty.bind(effect2); 6478 job.i = instance; 6479 job.id = instance.uid; 6480 effect2.scheduler = () => queueJob(job); 6481 toggleRecurse(instance, true); 6482 update3(); 6483 }; 6484 const updateComponentPreRender = (instance, nextVNode, optimized) => { 6485 nextVNode.component = instance; 6486 const prevProps = instance.vnode.props; 6487 instance.vnode = nextVNode; 6488 instance.next = null; 6489 updateProps(instance, nextVNode.props, prevProps, optimized); 6490 updateSlots(instance, nextVNode.children, optimized); 6491 pauseTracking(); 6492 flushPreFlushCbs(instance); 6493 resetTracking(); 6494 }; 6495 const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized = false) => { 6496 const c1 = n1 && n1.children; 6497 const prevShapeFlag = n1 ? n1.shapeFlag : 0; 6498 const c2 = n2.children; 6499 const { patchFlag, shapeFlag } = n2; 6500 if (patchFlag > 0) { 6501 if (patchFlag & 128) { 6502 patchKeyedChildren( 6503 c1, 6504 c2, 6505 container, 6506 anchor, 6507 parentComponent, 6508 parentSuspense, 6509 namespace, 6510 slotScopeIds, 6511 optimized 6512 ); 6513 return; 6514 } else if (patchFlag & 256) { 6515 patchUnkeyedChildren( 6516 c1, 6517 c2, 6518 container, 6519 anchor, 6520 parentComponent, 6521 parentSuspense, 6522 namespace, 6523 slotScopeIds, 6524 optimized 6525 ); 6526 return; 6527 } 6528 } 6529 if (shapeFlag & 8) { 6530 if (prevShapeFlag & 16) { 6531 unmountChildren(c1, parentComponent, parentSuspense); 6532 } 6533 if (c2 !== c1) { 6534 hostSetElementText(container, c2); 6535 } 6536 } else { 6537 if (prevShapeFlag & 16) { 6538 if (shapeFlag & 16) { 6539 patchKeyedChildren( 6540 c1, 6541 c2, 6542 container, 6543 anchor, 6544 parentComponent, 6545 parentSuspense, 6546 namespace, 6547 slotScopeIds, 6548 optimized 6549 ); 6550 } else { 6551 unmountChildren(c1, parentComponent, parentSuspense, true); 6552 } 6553 } else { 6554 if (prevShapeFlag & 8) { 6555 hostSetElementText(container, ""); 6556 } 6557 if (shapeFlag & 16) { 6558 mountChildren( 6559 c2, 6560 container, 6561 anchor, 6562 parentComponent, 6563 parentSuspense, 6564 namespace, 6565 slotScopeIds, 6566 optimized 6567 ); 6568 } 6569 } 6570 } 6571 }; 6572 const patchUnkeyedChildren = (c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 6573 c1 = c1 || EMPTY_ARR; 6574 c2 = c2 || EMPTY_ARR; 6575 const oldLength = c1.length; 6576 const newLength = c2.length; 6577 const commonLength = Math.min(oldLength, newLength); 6578 let i; 6579 for (i = 0; i < commonLength; i++) { 6580 const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]); 6581 patch( 6582 c1[i], 6583 nextChild, 6584 container, 6585 null, 6586 parentComponent, 6587 parentSuspense, 6588 namespace, 6589 slotScopeIds, 6590 optimized 6591 ); 6592 } 6593 if (oldLength > newLength) { 6594 unmountChildren( 6595 c1, 6596 parentComponent, 6597 parentSuspense, 6598 true, 6599 false, 6600 commonLength 6601 ); 6602 } else { 6603 mountChildren( 6604 c2, 6605 container, 6606 anchor, 6607 parentComponent, 6608 parentSuspense, 6609 namespace, 6610 slotScopeIds, 6611 optimized, 6612 commonLength 6613 ); 6614 } 6615 }; 6616 const patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { 6617 let i = 0; 6618 const l22 = c2.length; 6619 let e1 = c1.length - 1; 6620 let e2 = l22 - 1; 6621 while (i <= e1 && i <= e2) { 6622 const n1 = c1[i]; 6623 const n2 = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]); 6624 if (isSameVNodeType(n1, n2)) { 6625 patch( 6626 n1, 6627 n2, 6628 container, 6629 null, 6630 parentComponent, 6631 parentSuspense, 6632 namespace, 6633 slotScopeIds, 6634 optimized 6635 ); 6636 } else { 6637 break; 6638 } 6639 i++; 6640 } 6641 while (i <= e1 && i <= e2) { 6642 const n1 = c1[e1]; 6643 const n2 = c2[e2] = optimized ? cloneIfMounted(c2[e2]) : normalizeVNode(c2[e2]); 6644 if (isSameVNodeType(n1, n2)) { 6645 patch( 6646 n1, 6647 n2, 6648 container, 6649 null, 6650 parentComponent, 6651 parentSuspense, 6652 namespace, 6653 slotScopeIds, 6654 optimized 6655 ); 6656 } else { 6657 break; 6658 } 6659 e1--; 6660 e2--; 6661 } 6662 if (i > e1) { 6663 if (i <= e2) { 6664 const nextPos = e2 + 1; 6665 const anchor = nextPos < l22 ? c2[nextPos].el : parentAnchor; 6666 while (i <= e2) { 6667 patch( 6668 null, 6669 c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]), 6670 container, 6671 anchor, 6672 parentComponent, 6673 parentSuspense, 6674 namespace, 6675 slotScopeIds, 6676 optimized 6677 ); 6678 i++; 6679 } 6680 } 6681 } else if (i > e2) { 6682 while (i <= e1) { 6683 unmount(c1[i], parentComponent, parentSuspense, true); 6684 i++; 6685 } 6686 } else { 6687 const s1 = i; 6688 const s2 = i;
vendor: 4,489 bytes, lines 6689-6835
6689 const keyToNewIndexMap = /* @__PURE__ */ new Map(); 6690 for (i = s2; i <= e2; i++) { 6691 const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]); 6692 if (nextChild.key != null) { 6693 keyToNewIndexMap.set(nextChild.key, i); 6694 } 6695 } 6696 let j; 6697 let patched = 0; 6698 const toBePatched = e2 - s2 + 1; 6699 let moved = false; 6700 let maxNewIndexSoFar = 0; 6701 const newIndexToOldIndexMap = new Array(toBePatched); 6702 for (i = 0; i < toBePatched; i++) newIndexToOldIndexMap[i] = 0; 6703 for (i = s1; i <= e1; i++) { 6704 const prevChild = c1[i]; 6705 if (patched >= toBePatched) { 6706 unmount(prevChild, parentComponent, parentSuspense, true); 6707 continue; 6708 } 6709 let newIndex; 6710 if (prevChild.key != null) { 6711 newIndex = keyToNewIndexMap.get(prevChild.key); 6712 } else { 6713 for (j = s2; j <= e2; j++) { 6714 if (newIndexToOldIndexMap[j - s2] === 0 && isSameVNodeType(prevChild, c2[j])) { 6715 newIndex = j; 6716 break; 6717 } 6718 } 6719 } 6720 if (newIndex === void 0) { 6721 unmount(prevChild, parentComponent, parentSuspense, true); 6722 } else { 6723 newIndexToOldIndexMap[newIndex - s2] = i + 1; 6724 if (newIndex >= maxNewIndexSoFar) { 6725 maxNewIndexSoFar = newIndex; 6726 } else { 6727 moved = true; 6728 } 6729 patch( 6730 prevChild, 6731 c2[newIndex], 6732 container, 6733 null, 6734 parentComponent, 6735 parentSuspense, 6736 namespace, 6737 slotScopeIds, 6738 optimized 6739 ); 6740 patched++; 6741 } 6742 } 6743 const increasingNewIndexSequence = moved ? getSequence(newIndexToOldIndexMap) : EMPTY_ARR; 6744 j = increasingNewIndexSequence.length - 1; 6745 for (i = toBePatched - 1; i >= 0; i--) { 6746 const nextIndex = s2 + i; 6747 const nextChild = c2[nextIndex]; 6748 const anchor = nextIndex + 1 < l22 ? c2[nextIndex + 1].el : parentAnchor; 6749 if (newIndexToOldIndexMap[i] === 0) { 6750 patch( 6751 null, 6752 nextChild, 6753 container, 6754 anchor, 6755 parentComponent, 6756 parentSuspense, 6757 namespace, 6758 slotScopeIds, 6759 optimized 6760 ); 6761 } else if (moved) { 6762 if (j < 0 || i !== increasingNewIndexSequence[j]) { 6763 move(nextChild, container, anchor, 2); 6764 } else { 6765 j--; 6766 } 6767 } 6768 } 6769 } 6770 }; 6771 const move = (vnode, container, anchor, moveType, parentSuspense = null) => { 6772 const { el, type, transition, children, shapeFlag } = vnode; 6773 if (shapeFlag & 6) { 6774 move(vnode.component.subTree, container, anchor, moveType); 6775 return; 6776 } 6777 if (shapeFlag & 128) { 6778 vnode.suspense.move(container, anchor, moveType); 6779 return; 6780 } 6781 if (shapeFlag & 64) { 6782 type.move(vnode, container, anchor, internals); 6783 return; 6784 } 6785 if (type === Fragment) { 6786 hostInsert(el, container, anchor); 6787 for (let i = 0; i < children.length; i++) { 6788 move(children[i], container, anchor, moveType); 6789 } 6790 hostInsert(vnode.anchor, container, anchor); 6791 return; 6792 } 6793 if (type === Static) { 6794 moveStaticNode(vnode, container, anchor); 6795 return; 6796 } 6797 const needTransition2 = moveType !== 2 && shapeFlag & 1 && transition; 6798 if (needTransition2) { 6799 if (moveType === 0) { 6800 transition.beforeEnter(el); 6801 hostInsert(el, container, anchor); 6802 queuePostRenderEffect(() => transition.enter(el), parentSuspense); 6803 } else { 6804 const { leave, delayLeave, afterLeave } = transition; 6805 const remove22 = () => hostInsert(el, container, anchor); 6806 const performLeave = () => { 6807 leave(el, () => { 6808 remove22(); 6809 afterLeave && afterLeave(); 6810 }); 6811 }; 6812 if (delayLeave) { 6813 delayLeave(el, remove22, performLeave); 6814 } else { 6815 performLeave(); 6816 } 6817 } 6818 } else { 6819 hostInsert(el, container, anchor); 6820 } 6821 }; 6822 const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => { 6823 const { 6824 type, 6825 props, 6826 ref: ref3, 6827 children, 6828 dynamicChildren, 6829 shapeFlag, 6830 patchFlag, 6831 dirs, 6832 cacheIndex 6833 } = vnode; 6834 if (patchFlag === -2) { 6835 optimized = false;
6836 } 6837 if (ref3 != null) { 6838 setRef(ref3, null, parentSuspense, vnode, true); 6839 } 6840 if (cacheIndex != null) { 6841 parentComponent.renderCache[cacheIndex] = void 0; 6842 } 6843 if (shapeFlag & 256) { 6844 parentComponent.ctx.deactivate(vnode); 6845 return; 6846 } 6847 const shouldInvokeDirs = shapeFlag & 1 && dirs; 6848 const shouldInvokeVnodeHook = !isAsyncWrapper(vnode); 6849 let vnodeHook; 6850 if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeBeforeUnmount)) { 6851 invokeVNodeHook(vnodeHook, parentComponent, vnode); 6852 } 6853 if (shapeFlag & 6) { 6854 unmountComponent(vnode.component, parentSuspense, doRemove); 6855 } else { 6856 if (shapeFlag & 128) { 6857 vnode.suspense.unmount(parentSuspense, doRemove); 6858 return; 6859 } 6860 if (shouldInvokeDirs) { 6861 invokeDirectiveHook(vnode, null, parentComponent, "beforeUnmount"); 6862 } 6863 if (shapeFlag & 64) { 6864 vnode.type.remove( 6865 vnode, 6866 parentComponent, 6867 parentSuspense, 6868 internals, 6869 doRemove 6870 ); 6871 } else if (dynamicChildren && // #5154 6872 // when v-once is used inside a block, setBlockTracking(-1) marks the 6873 // parent block with hasOnce: true 6874 // so that it doesn't take the fast path during unmount - otherwise 6875 // components nested in v-once are never unmounted. 6876 !dynamicChildren.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments 6877 (type !== Fragment || patchFlag > 0 && patchFlag & 64)) { 6878 unmountChildren( 6879 dynamicChildren, 6880 parentComponent, 6881 parentSuspense, 6882 false, 6883 true 6884 ); 6885 } else if (type === Fragment && patchFlag & (128 | 256) || !optimized && shapeFlag & 16) { 6886 unmountChildren(children, parentComponent, parentSuspense); 6887 } 6888 if (doRemove) { 6889 remove2(vnode); 6890 } 6891 } 6892 if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeUnmounted) || shouldInvokeDirs) { 6893 queuePostRenderEffect(() => { 6894 vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); 6895 shouldInvokeDirs && invokeDirectiveHook(vnode, null, parentComponent, "unmounted"); 6896 }, parentSuspense); 6897 } 6898 }; 6899 const remove2 = (vnode) => { 6900 const { type, el, anchor, transition } = vnode; 6901 if (type === Fragment) { 6902 { 6903 removeFragment(el, anchor); 6904 } 6905 return; 6906 } 6907 if (type === Static) { 6908 removeStaticNode(vnode); 6909 return; 6910 } 6911 const performRemove = () => { 6912 hostRemove(el); 6913 if (transition && !transition.persisted && transition.afterLeave) { 6914 transition.afterLeave(); 6915 } 6916 }; 6917 if (vnode.shapeFlag & 1 && transition && !transition.persisted) { 6918 const { leave, delayLeave } = transition; 6919 const performLeave = () => leave(el, performRemove); 6920 if (delayLeave) { 6921 delayLeave(vnode.el, performRemove, performLeave); 6922 } else { 6923 performLeave(); 6924 } 6925 } else { 6926 performRemove(); 6927 } 6928 }; 6929 const removeFragment = (cur, end) => { 6930 let next; 6931 while (cur !== end) { 6932 next = hostNextSibling(cur); 6933 hostRemove(cur); 6934 cur = next; 6935 } 6936 hostRemove(end); 6937 }; 6938 const unmountComponent = (instance, parentSuspense, doRemove) => { 6939 const { bum, scope, job, subTree, um, m, a } = instance; 6940 invalidateMount(m); 6941 invalidateMount(a); 6942 if (bum) { 6943 invokeArrayFns(bum); 6944 } 6945 scope.stop(); 6946 if (job) { 6947 job.flags |= 8; 6948 unmount(subTree, instance, parentSuspense, doRemove); 6949 } 6950 if (um) { 6951 queuePostRenderEffect(um, parentSuspense); 6952 } 6953 queuePostRenderEffect(() => { 6954 instance.isUnmounted = true; 6955 }, parentSuspense); 6956 if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) { 6957 parentSuspense.deps--; 6958 if (parentSuspense.deps === 0) { 6959 parentSuspense.resolve(); 6960 } 6961 } 6962 }; 6963 const unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => { 6964 for (let i = start; i < children.length; i++) { 6965 unmount(children[i], parentComponent, parentSuspense, doRemove, optimized); 6966 } 6967 }; 6968 const getNextHostNode = (vnode) => { 6969 if (vnode.shapeFlag & 6) { 6970 return getNextHostNode(vnode.component.subTree); 6971 } 6972 if (vnode.shapeFlag & 128) { 6973 return vnode.suspense.next(); 6974 } 6975 const el = hostNextSibling(vnode.anchor || vnode.el); 6976 const teleportEnd = el && el[TeleportEndKey]; 6977 return teleportEnd ? hostNextSibling(teleportEnd) : el; 6978 }; 6979 let isFlushing = false;
vendor: 15,195 bytes, lines 6980-7539
6980 const render4 = (vnode, container, namespace) => { 6981 if (vnode == null) { 6982 if (container._vnode) { 6983 unmount(container._vnode, null, null, true); 6984 } 6985 } else { 6986 patch( 6987 container._vnode || null, 6988 vnode, 6989 container, 6990 null, 6991 null, 6992 null, 6993 namespace 6994 ); 6995 } 6996 container._vnode = vnode; 6997 if (!isFlushing) { 6998 isFlushing = true; 6999 flushPreFlushCbs(); 7000 flushPostFlushCbs(); 7001 isFlushing = false; 7002 } 7003 }; 7004 const internals = { 7005 p: patch, 7006 um: unmount, 7007 m: move, 7008 r: remove2, 7009 mt: mountComponent, 7010 mc: mountChildren, 7011 pc: patchChildren, 7012 pbc: patchBlockChildren, 7013 n: getNextHostNode, 7014 o: options 7015 }; 7016 let hydrate2; 7017 let hydrateNode; 7018 if (createHydrationFns) { 7019 [hydrate2, hydrateNode] = createHydrationFns( 7020 internals 7021 ); 7022 } 7023 return { 7024 render: render4, 7025 hydrate: hydrate2, 7026 createApp: createAppAPI(render4, hydrate2) 7027 }; 7028} 7029function resolveChildrenNamespace({ type, props }, currentNamespace) { 7030 return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ? void 0 : currentNamespace; 7031} 7032function toggleRecurse({ effect: effect2, job }, allowed) { 7033 if (allowed) { 7034 effect2.flags |= 32; 7035 job.flags |= 4; 7036 } else { 7037 effect2.flags &= -33; 7038 job.flags &= -5; 7039 } 7040} 7041function needTransition(parentSuspense, transition) { 7042 return (!parentSuspense || parentSuspense && !parentSuspense.pendingBranch) && transition && !transition.persisted; 7043} 7044function traverseStaticChildren(n1, n2, shallow = false) { 7045 const ch1 = n1.children; 7046 const ch2 = n2.children; 7047 if (isArray$4(ch1) && isArray$4(ch2)) { 7048 for (let i = 0; i < ch1.length; i++) { 7049 const c1 = ch1[i]; 7050 let c2 = ch2[i]; 7051 if (c2.shapeFlag & 1 && !c2.dynamicChildren) { 7052 if (c2.patchFlag <= 0 || c2.patchFlag === 32) { 7053 c2 = ch2[i] = cloneIfMounted(ch2[i]); 7054 c2.el = c1.el; 7055 } 7056 if (!shallow && c2.patchFlag !== -2) 7057 traverseStaticChildren(c1, c2); 7058 } 7059 if (c2.type === Text) { 7060 c2.el = c1.el; 7061 } 7062 } 7063 } 7064} 7065function getSequence(arr) { 7066 const p2 = arr.slice(); 7067 const result = [0]; 7068 let i, j, u, v2, c2; 7069 const len = arr.length; 7070 for (i = 0; i < len; i++) { 7071 const arrI = arr[i]; 7072 if (arrI !== 0) { 7073 j = result[result.length - 1]; 7074 if (arr[j] < arrI) { 7075 p2[i] = j; 7076 result.push(i); 7077 continue; 7078 } 7079 u = 0; 7080 v2 = result.length - 1; 7081 while (u < v2) { 7082 c2 = u + v2 >> 1; 7083 if (arr[result[c2]] < arrI) { 7084 u = c2 + 1; 7085 } else { 7086 v2 = c2; 7087 } 7088 } 7089 if (arrI < arr[result[u]]) { 7090 if (u > 0) { 7091 p2[i] = result[u - 1]; 7092 } 7093 result[u] = i; 7094 } 7095 } 7096 } 7097 u = result.length; 7098 v2 = result[u - 1]; 7099 while (u-- > 0) { 7100 result[u] = v2; 7101 v2 = p2[v2]; 7102 } 7103 return result; 7104} 7105function locateNonHydratedAsyncRoot(instance) { 7106 const subComponent = instance.subTree.component; 7107 if (subComponent) { 7108 if (subComponent.asyncDep && !subComponent.asyncResolved) { 7109 return subComponent; 7110 } else { 7111 return locateNonHydratedAsyncRoot(subComponent); 7112 } 7113 } 7114} 7115function invalidateMount(hooks) { 7116 if (hooks) { 7117 for (let i = 0; i < hooks.length; i++) 7118 hooks[i].flags |= 8; 7119 } 7120} 7121const ssrContextKey = Symbol.for("v-scx"); 7122const useSSRContext = () => { 7123 { 7124 const ctx = inject(ssrContextKey); 7125 return ctx; 7126 } 7127}; 7128function watchEffect(effect2, options) { 7129 return doWatch(effect2, null, options); 7130} 7131function watchPostEffect(effect2, options) { 7132 return doWatch( 7133 effect2, 7134 null, 7135 { flush: "post" } 7136 ); 7137} 7138function watchSyncEffect(effect2, options) { 7139 return doWatch( 7140 effect2, 7141 null, 7142 { flush: "sync" } 7143 ); 7144} 7145function watch(source, cb, options) { 7146 return doWatch(source, cb, options); 7147} 7148function doWatch(source, cb, options = EMPTY_OBJ) { 7149 const { immediate, deep, flush, once } = options; 7150 const baseWatchOptions = extend$1({}, options); 7151 const runsImmediately = cb && immediate || !cb && flush !== "post"; 7152 let ssrCleanup; 7153 if (isInSSRComponentSetup) { 7154 if (flush === "sync") { 7155 const ctx = useSSRContext(); 7156 ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []); 7157 } else if (!runsImmediately) { 7158 const watchStopHandle = () => { 7159 }; 7160 watchStopHandle.stop = NOOP; 7161 watchStopHandle.resume = NOOP; 7162 watchStopHandle.pause = NOOP; 7163 return watchStopHandle; 7164 } 7165 } 7166 const instance = currentInstance; 7167 baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args); 7168 let isPre = false; 7169 if (flush === "post") { 7170 baseWatchOptions.scheduler = (job) => { 7171 queuePostRenderEffect(job, instance && instance.suspense); 7172 }; 7173 } else if (flush !== "sync") { 7174 isPre = true; 7175 baseWatchOptions.scheduler = (job, isFirstRun) => { 7176 if (isFirstRun) { 7177 job(); 7178 } else { 7179 queueJob(job); 7180 } 7181 }; 7182 } 7183 baseWatchOptions.augmentJob = (job) => { 7184 if (cb) { 7185 job.flags |= 4; 7186 } 7187 if (isPre) { 7188 job.flags |= 2; 7189 if (instance) { 7190 job.id = instance.uid; 7191 job.i = instance; 7192 } 7193 } 7194 }; 7195 const watchHandle = watch$1(source, cb, baseWatchOptions); 7196 if (isInSSRComponentSetup) { 7197 if (ssrCleanup) { 7198 ssrCleanup.push(watchHandle); 7199 } else if (runsImmediately) { 7200 watchHandle(); 7201 } 7202 } 7203 return watchHandle; 7204} 7205function instanceWatch(source, value, options) { 7206 const publicThis = this.proxy; 7207 const getter = isString$1(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis); 7208 let cb; 7209 if (isFunction$4(value)) { 7210 cb = value; 7211 } else { 7212 cb = value.handler; 7213 options = value; 7214 } 7215 const reset = setCurrentInstance(this); 7216 const res = doWatch(getter, cb.bind(publicThis), options); 7217 reset(); 7218 return res; 7219} 7220function createPathGetter(ctx, path) { 7221 const segments = path.split("."); 7222 return () => { 7223 let cur = ctx; 7224 for (let i = 0; i < segments.length && cur; i++) { 7225 cur = cur[segments[i]]; 7226 } 7227 return cur; 7228 }; 7229} 7230function useModel(props, name, options = EMPTY_OBJ) { 7231 const i = getCurrentInstance(); 7232 const camelizedName = camelize(name); 7233 const hyphenatedName = hyphenate(name); 7234 const modifiers = getModelModifiers(props, camelizedName); 7235 const res = customRef((track2, trigger2) => { 7236 let localValue; 7237 let prevSetValue = EMPTY_OBJ; 7238 let prevEmittedValue; 7239 watchSyncEffect(() => { 7240 const propValue = props[camelizedName]; 7241 if (hasChanged(localValue, propValue)) { 7242 localValue = propValue; 7243 trigger2(); 7244 } 7245 }); 7246 return { 7247 get() { 7248 track2(); 7249 return options.get ? options.get(localValue) : localValue; 7250 }, 7251 set(value) { 7252 const emittedValue = options.set ? options.set(value) : value; 7253 if (!hasChanged(emittedValue, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) { 7254 return; 7255 } 7256 const rawProps = i.vnode.props; 7257 if (!(rawProps && // check if parent has passed v-model 7258 (name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps))) { 7259 localValue = value; 7260 trigger2(); 7261 } 7262 i.emit(`update:${name}`, emittedValue); 7263 if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) { 7264 trigger2(); 7265 } 7266 prevSetValue = value; 7267 prevEmittedValue = emittedValue; 7268 } 7269 }; 7270 }); 7271 res[Symbol.iterator] = () => { 7272 let i2 = 0; 7273 return { 7274 next() { 7275 if (i2 < 2) { 7276 return { value: i2++ ? modifiers || EMPTY_OBJ : res, done: false }; 7277 } else { 7278 return { done: true }; 7279 } 7280 } 7281 }; 7282 }; 7283 return res; 7284} 7285const getModelModifiers = (props, modelName) => { 7286 return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`]; 7287}; 7288function emit(instance, event, ...rawArgs) { 7289 if (instance.isUnmounted) return; 7290 const props = instance.vnode.props || EMPTY_OBJ; 7291 let args = rawArgs; 7292 const isModelListener2 = event.startsWith("update:"); 7293 const modifiers = isModelListener2 && getModelModifiers(props, event.slice(7)); 7294 if (modifiers) { 7295 if (modifiers.trim) { 7296 args = rawArgs.map((a) => isString$1(a) ? a.trim() : a); 7297 } 7298 if (modifiers.number) { 7299 args = rawArgs.map(looseToNumber); 7300 } 7301 } 7302 let handlerName; 7303 let handler = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249) 7304 props[handlerName = toHandlerKey(camelize(event))]; 7305 if (!handler && isModelListener2) { 7306 handler = props[handlerName = toHandlerKey(hyphenate(event))]; 7307 } 7308 if (handler) { 7309 callWithAsyncErrorHandling( 7310 handler, 7311 instance, 7312 6, 7313 args 7314 ); 7315 } 7316 const onceHandler = props[handlerName + `Once`]; 7317 if (onceHandler) { 7318 if (!instance.emitted) { 7319 instance.emitted = {}; 7320 } else if (instance.emitted[handlerName]) { 7321 return; 7322 } 7323 instance.emitted[handlerName] = true; 7324 callWithAsyncErrorHandling( 7325 onceHandler, 7326 instance, 7327 6, 7328 args 7329 ); 7330 } 7331} 7332function normalizeEmitsOptions(comp, appContext, asMixin = false) { 7333 const cache = appContext.emitsCache; 7334 const cached = cache.get(comp); 7335 if (cached !== void 0) { 7336 return cached; 7337 } 7338 const raw = comp.emits; 7339 let normalized = {}; 7340 let hasExtends = false; 7341 if (!isFunction$4(comp)) { 7342 const extendEmits = (raw2) => { 7343 const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true); 7344 if (normalizedFromExtend) { 7345 hasExtends = true; 7346 extend$1(normalized, normalizedFromExtend); 7347 } 7348 }; 7349 if (!asMixin && appContext.mixins.length) { 7350 appContext.mixins.forEach(extendEmits); 7351 } 7352 if (comp.extends) { 7353 extendEmits(comp.extends); 7354 } 7355 if (comp.mixins) { 7356 comp.mixins.forEach(extendEmits); 7357 } 7358 } 7359 if (!raw && !hasExtends) { 7360 if (isObject$4(comp)) { 7361 cache.set(comp, null); 7362 } 7363 return null; 7364 } 7365 if (isArray$4(raw)) { 7366 raw.forEach((key) => normalized[key] = null); 7367 } else { 7368 extend$1(normalized, raw); 7369 } 7370 if (isObject$4(comp)) { 7371 cache.set(comp, normalized); 7372 } 7373 return normalized; 7374} 7375function isEmitListener(options, key) { 7376 if (!options || !isOn(key)) { 7377 return false; 7378 } 7379 key = key.slice(2).replace(/Once$/, ""); 7380 return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key); 7381} 7382function markAttrsAccessed() { 7383} 7384function renderComponentRoot(instance) { 7385 const { 7386 type: Component, 7387 vnode, 7388 proxy, 7389 withProxy, 7390 propsOptions: [propsOptions], 7391 slots, 7392 attrs, 7393 emit: emit2, 7394 render: render4, 7395 renderCache, 7396 props, 7397 data, 7398 setupState, 7399 ctx, 7400 inheritAttrs 7401 } = instance; 7402 const prev = setCurrentRenderingInstance(instance); 7403 let result; 7404 let fallthroughAttrs; 7405 try { 7406 if (vnode.shapeFlag & 4) { 7407 const proxyToUse = withProxy || proxy; 7408 const thisProxy = false ? new Proxy(proxyToUse, { 7409 get(target, key, receiver) { 7410 warn$1( 7411 `Property '${String( 7412 key 7413 )}' was accessed via 'this'. Avoid using 'this' in templates.` 7414 ); 7415 return Reflect.get(target, key, receiver); 7416 } 7417 }) : proxyToUse; 7418 result = normalizeVNode( 7419 render4.call( 7420 thisProxy, 7421 proxyToUse, 7422 renderCache, 7423 false ? shallowReadonly(props) : props, 7424 setupState, 7425 data, 7426 ctx 7427 ) 7428 ); 7429 fallthroughAttrs = attrs; 7430 } else { 7431 const render22 = Component; 7432 if (false) ; 7433 result = normalizeVNode( 7434 render22.length > 1 ? render22( 7435 false ? shallowReadonly(props) : props, 7436 false ? { 7437 get attrs() { 7438 markAttrsAccessed(); 7439 return shallowReadonly(attrs); 7440 }, 7441 slots, 7442 emit: emit2 7443 } : { attrs, slots, emit: emit2 } 7444 ) : render22( 7445 false ? shallowReadonly(props) : props, 7446 null 7447 ) 7448 ); 7449 fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs); 7450 } 7451 } catch (err) { 7452 blockStack.length = 0; 7453 handleError(err, instance, 1); 7454 result = createVNode(Comment); 7455 } 7456 let root2 = result; 7457 if (fallthroughAttrs && inheritAttrs !== false) { 7458 const keys2 = Object.keys(fallthroughAttrs); 7459 const { shapeFlag } = root2; 7460 if (keys2.length) { 7461 if (shapeFlag & (1 | 6)) { 7462 if (propsOptions && keys2.some(isModelListener)) { 7463 fallthroughAttrs = filterModelListeners( 7464 fallthroughAttrs, 7465 propsOptions 7466 ); 7467 } 7468 root2 = cloneVNode(root2, fallthroughAttrs, false, true); 7469 } 7470 } 7471 } 7472 if (vnode.dirs) { 7473 root2 = cloneVNode(root2, null, false, true); 7474 root2.dirs = root2.dirs ? root2.dirs.concat(vnode.dirs) : vnode.dirs; 7475 } 7476 if (vnode.transition) { 7477 setTransitionHooks(root2, vnode.transition); 7478 } 7479 { 7480 result = root2; 7481 } 7482 setCurrentRenderingInstance(prev); 7483 return result; 7484} 7485function filterSingleRoot(children, recurse = true) { 7486 let singleRoot; 7487 for (let i = 0; i < children.length; i++) { 7488 const child = children[i]; 7489 if (isVNode(child)) { 7490 if (child.type !== Comment || child.children === "v-if") { 7491 if (singleRoot) { 7492 return; 7493 } else { 7494 singleRoot = child; 7495 } 7496 } 7497 } else { 7498 return; 7499 } 7500 } 7501 return singleRoot; 7502} 7503const getFunctionalFallthrough = (attrs) => { 7504 let res; 7505 for (const key in attrs) { 7506 if (key === "class" || key === "style" || isOn(key)) { 7507 (res || (res = {}))[key] = attrs[key]; 7508 } 7509 } 7510 return res; 7511}; 7512const filterModelListeners = (attrs, props) => { 7513 const res = {}; 7514 for (const key in attrs) { 7515 if (!isModelListener(key) || !(key.slice(9) in props)) { 7516 res[key] = attrs[key]; 7517 } 7518 } 7519 return res; 7520}; 7521function shouldUpdateComponent(prevVNode, nextVNode, optimized) { 7522 const { props: prevProps, children: prevChildren, component } = prevVNode; 7523 const { props: nextProps, children: nextChildren, patchFlag } = nextVNode; 7524 const emits = component.emitsOptions; 7525 if (nextVNode.dirs || nextVNode.transition) { 7526 return true; 7527 } 7528 if (optimized && patchFlag >= 0) { 7529 if (patchFlag & 1024) { 7530 return true; 7531 } 7532 if (patchFlag & 16) { 7533 if (!prevProps) { 7534 return !!nextProps; 7535 } 7536 return hasPropsChanged(prevProps, nextProps, emits); 7537 } else if (patchFlag & 8) { 7538 const dynamicProps = nextVNode.dynamicProps; 7539 for (let i = 0; i < dynamicProps.length; i++) {
7540 const key = dynamicProps[i]; 7541 if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) { 7542 return true; 7543 } 7544 } 7545 } 7546 } else { 7547 if (prevChildren || nextChildren) { 7548 if (!nextChildren || !nextChildren.$stable) { 7549 return true; 7550 } 7551 } 7552 if (prevProps === nextProps) { 7553 return false; 7554 } 7555 if (!prevProps) { 7556 return !!nextProps; 7557 } 7558 if (!nextProps) { 7559 return true; 7560 } 7561 return hasPropsChanged(prevProps, nextProps, emits); 7562 } 7563 return false; 7564} 7565function hasPropsChanged(prevProps, nextProps, emitsOptions) { 7566 const nextKeys = Object.keys(nextProps); 7567 if (nextKeys.length !== Object.keys(prevProps).length) { 7568 return true; 7569 } 7570 for (let i = 0; i < nextKeys.length; i++) { 7571 const key = nextKeys[i]; 7572 if (nextProps[key] !== prevProps[key] && !isEmitListener(emitsOptions, key)) { 7573 return true; 7574 } 7575 } 7576 return false; 7577} 7578function updateHOCHostEl({ vnode, parent }, el) { 7579 while (parent) { 7580 const root2 = parent.subTree; 7581 if (root2.suspense && root2.suspense.activeBranch === vnode) { 7582 root2.el = vnode.el; 7583 } 7584 if (root2 === vnode) { 7585 (vnode = parent.vnode).el = el; 7586 parent = parent.parent; 7587 } else { 7588 break; 7589 } 7590 } 7591} 7592const isSuspense = (type) => type.__isSuspense; 7593let suspenseId = 0; 7594const SuspenseImpl = { 7595 name: "Suspense", 7596 // In order to make Suspense tree-shakable, we need to avoid importing it 7597 // directly in the renderer. The renderer checks for the __isSuspense flag 7598 // on a vnode's type and calls the `process` method, passing in renderer 7599 // internals. 7600 __isSuspense: true, 7601 process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) { 7602 if (n1 == null) { 7603 mountSuspense( 7604 n2, 7605 container, 7606 anchor, 7607 parentComponent, 7608 parentSuspense, 7609 namespace, 7610 slotScopeIds, 7611 optimized, 7612 rendererInternals 7613 ); 7614 } else { 7615 if (parentSuspense && parentSuspense.deps > 0 && !n1.suspense.isInFallback) { 7616 n2.suspense = n1.suspense; 7617 n2.suspense.vnode = n2; 7618 n2.el = n1.el; 7619 return; 7620 } 7621 patchSuspense( 7622 n1, 7623 n2, 7624 container, 7625 anchor, 7626 parentComponent, 7627 namespace, 7628 slotScopeIds, 7629 optimized, 7630 rendererInternals 7631 ); 7632 } 7633 }, 7634 hydrate: hydrateSuspense, 7635 normalize: normalizeSuspenseChildren 7636}; 7637const Suspense = SuspenseImpl; 7638function triggerEvent(vnode, name) { 7639 const eventListener = vnode.props && vnode.props[name]; 7640 if (isFunction$4(eventListener)) { 7641 eventListener(); 7642 } 7643} 7644function mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) { 7645 const { 7646 p: patch, 7647 o: { createElement } 7648 } = rendererInternals; 7649 const hiddenContainer = createElement("div"); 7650 const suspense = vnode.suspense = createSuspenseBoundary( 7651 vnode, 7652 parentSuspense, 7653 parentComponent, 7654 container, 7655 hiddenContainer, 7656 anchor, 7657 namespace, 7658 slotScopeIds, 7659 optimized, 7660 rendererInternals 7661 ); 7662 patch( 7663 null, 7664 suspense.pendingBranch = vnode.ssContent, 7665 hiddenContainer, 7666 null, 7667 parentComponent, 7668 suspense, 7669 namespace, 7670 slotScopeIds 7671 ); 7672 if (suspense.deps > 0) { 7673 triggerEvent(vnode, "onPending"); 7674 triggerEvent(vnode, "onFallback"); 7675 patch( 7676 null, 7677 vnode.ssFallback, 7678 container, 7679 anchor, 7680 parentComponent, 7681 null, 7682 // fallback tree will not have suspense context 7683 namespace, 7684 slotScopeIds 7685 ); 7686 setActiveBranch(suspense, vnode.ssFallback); 7687 } else { 7688 suspense.resolve(false, true); 7689 } 7690} 7691function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) { 7692 const suspense = n2.suspense = n1.suspense; 7693 suspense.vnode = n2; 7694 n2.el = n1.el; 7695 const newBranch = n2.ssContent; 7696 const newFallback = n2.ssFallback; 7697 const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense; 7698 if (pendingBranch) { 7699 suspense.pendingBranch = newBranch; 7700 if (isSameVNodeType(newBranch, pendingBranch)) { 7701 patch( 7702 pendingBranch, 7703 newBranch, 7704 suspense.hiddenContainer, 7705 null, 7706 parentComponent, 7707 suspense, 7708 namespace, 7709 slotScopeIds, 7710 optimized 7711 ); 7712 if (suspense.deps <= 0) { 7713 suspense.resolve(); 7714 } else if (isInFallback) { 7715 if (!isHydrating) { 7716 patch( 7717 activeBranch, 7718 newFallback, 7719 container, 7720 anchor, 7721 parentComponent, 7722 null, 7723 // fallback tree will not have suspense context 7724 namespace, 7725 slotScopeIds, 7726 optimized 7727 );
vendor: 1,065 bytes, lines 7728-7768
7728 setActiveBranch(suspense, newFallback); 7729 } 7730 } 7731 } else { 7732 suspense.pendingId = suspenseId++; 7733 if (isHydrating) { 7734 suspense.isHydrating = false; 7735 suspense.activeBranch = pendingBranch; 7736 } else { 7737 unmount(pendingBranch, parentComponent, suspense); 7738 } 7739 suspense.deps = 0; 7740 suspense.effects.length = 0; 7741 suspense.hiddenContainer = createElement("div"); 7742 if (isInFallback) { 7743 patch( 7744 null, 7745 newBranch, 7746 suspense.hiddenContainer, 7747 null, 7748 parentComponent, 7749 suspense, 7750 namespace, 7751 slotScopeIds, 7752 optimized 7753 ); 7754 if (suspense.deps <= 0) { 7755 suspense.resolve(); 7756 } else { 7757 patch( 7758 activeBranch, 7759 newFallback, 7760 container, 7761 anchor, 7762 parentComponent, 7763 null, 7764 // fallback tree will not have suspense context 7765 namespace, 7766 slotScopeIds, 7767 optimized 7768 );
7769 setActiveBranch(suspense, newFallback); 7770 } 7771 } else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { 7772 patch( 7773 activeBranch, 7774 newBranch, 7775 container, 7776 anchor, 7777 parentComponent, 7778 suspense, 7779 namespace, 7780 slotScopeIds, 7781 optimized 7782 ); 7783 suspense.resolve(true); 7784 } else { 7785 patch( 7786 null, 7787 newBranch, 7788 suspense.hiddenContainer, 7789 null, 7790 parentComponent, 7791 suspense, 7792 namespace, 7793 slotScopeIds, 7794 optimized 7795 ); 7796 if (suspense.deps <= 0) { 7797 suspense.resolve(); 7798 } 7799 } 7800 } 7801 } else { 7802 if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { 7803 patch( 7804 activeBranch, 7805 newBranch, 7806 container, 7807 anchor, 7808 parentComponent, 7809 suspense, 7810 namespace, 7811 slotScopeIds, 7812 optimized 7813 ); 7814 setActiveBranch(suspense, newBranch); 7815 } else { 7816 triggerEvent(n2, "onPending"); 7817 suspense.pendingBranch = newBranch; 7818 if (newBranch.shapeFlag & 512) { 7819 suspense.pendingId = newBranch.component.suspenseId; 7820 } else { 7821 suspense.pendingId = suspenseId++; 7822 } 7823 patch( 7824 null, 7825 newBranch, 7826 suspense.hiddenContainer, 7827 null, 7828 parentComponent, 7829 suspense, 7830 namespace, 7831 slotScopeIds, 7832 optimized 7833 ); 7834 if (suspense.deps <= 0) { 7835 suspense.resolve(); 7836 } else { 7837 const { timeout, pendingId } = suspense; 7838 if (timeout > 0) { 7839 setTimeout(() => { 7840 if (suspense.pendingId === pendingId) { 7841 suspense.fallback(newFallback); 7842 } 7843 }, timeout); 7844 } else if (timeout === 0) { 7845 suspense.fallback(newFallback); 7846 } 7847 } 7848 } 7849 } 7850} 7851function createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, namespace, slotScopeIds, optimized, rendererInternals, isHydrating = false) { 7852 const { 7853 p: patch, 7854 m: move, 7855 um: unmount, 7856 n: next, 7857 o: { parentNode, remove: remove2 } 7858 } = rendererInternals; 7859 let parentSuspenseId; 7860 const isSuspensible = isVNodeSuspensible(vnode); 7861 if (isSuspensible) { 7862 if (parentSuspense && parentSuspense.pendingBranch) { 7863 parentSuspenseId = parentSuspense.pendingId; 7864 parentSuspense.deps++; 7865 } 7866 } 7867 const timeout = vnode.props ? toNumber$2(vnode.props.timeout) : void 0; 7868 const initialAnchor = anchor; 7869 const suspense = { 7870 vnode, 7871 parent: parentSuspense, 7872 parentComponent, 7873 namespace, 7874 container, 7875 hiddenContainer, 7876 deps: 0, 7877 pendingId: suspenseId++, 7878 timeout: typeof timeout === "number" ? timeout : -1, 7879 activeBranch: null, 7880 pendingBranch: null, 7881 isInFallback: !isHydrating, 7882 isHydrating, 7883 isUnmounted: false, 7884 effects: [], 7885 resolve(resume = false, sync = false) { 7886 const { 7887 vnode: vnode2, 7888 activeBranch, 7889 pendingBranch, 7890 pendingId, 7891 effects, 7892 parentComponent: parentComponent2, 7893 container: container2 7894 } = suspense; 7895 let delayEnter = false; 7896 if (suspense.isHydrating) { 7897 suspense.isHydrating = false; 7898 } else if (!resume) { 7899 delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in"; 7900 if (delayEnter) { 7901 activeBranch.transition.afterLeave = () => { 7902 if (pendingId === suspense.pendingId) { 7903 move( 7904 pendingBranch, 7905 container2, 7906 anchor === initialAnchor ? next(activeBranch) : anchor, 7907 0 7908 ); 7909 queuePostFlushCb(effects); 7910 } 7911 }; 7912 } 7913 if (activeBranch) { 7914 if (parentNode(activeBranch.el) === container2) { 7915 anchor = next(activeBranch); 7916 } 7917 unmount(activeBranch, parentComponent2, suspense, true); 7918 } 7919 if (!delayEnter) { 7920 move(pendingBranch, container2, anchor, 0); 7921 } 7922 }
7923 setActiveBranch(suspense, pendingBranch); 7924 suspense.pendingBranch = null; 7925 suspense.isInFallback = false; 7926 let parent = suspense.parent; 7927 let hasUnresolvedAncestor = false; 7928 while (parent) { 7929 if (parent.pendingBranch) { 7930 parent.effects.push(...effects); 7931 hasUnresolvedAncestor = true; 7932 break; 7933 } 7934 parent = parent.parent; 7935 } 7936 if (!hasUnresolvedAncestor && !delayEnter) { 7937 queuePostFlushCb(effects); 7938 } 7939 suspense.effects = []; 7940 if (isSuspensible) { 7941 if (parentSuspense && parentSuspense.pendingBranch && parentSuspenseId === parentSuspense.pendingId) { 7942 parentSuspense.deps--; 7943 if (parentSuspense.deps === 0 && !sync) { 7944 parentSuspense.resolve(); 7945 } 7946 } 7947 } 7948 triggerEvent(vnode2, "onResolve"); 7949 }, 7950 fallback(fallbackVNode) { 7951 if (!suspense.pendingBranch) { 7952 return; 7953 } 7954 const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, namespace: namespace2 } = suspense; 7955 triggerEvent(vnode2, "onFallback"); 7956 const anchor2 = next(activeBranch); 7957 const mountFallback = () => { 7958 if (!suspense.isInFallback) { 7959 return; 7960 } 7961 patch( 7962 null, 7963 fallbackVNode, 7964 container2, 7965 anchor2, 7966 parentComponent2, 7967 null, 7968 // fallback tree will not have suspense context 7969 namespace2, 7970 slotScopeIds, 7971 optimized 7972 ); 7973 setActiveBranch(suspense, fallbackVNode); 7974 }; 7975 const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === "out-in"; 7976 if (delayEnter) { 7977 activeBranch.transition.afterLeave = mountFallback; 7978 } 7979 suspense.isInFallback = true; 7980 unmount( 7981 activeBranch, 7982 parentComponent2, 7983 null, 7984 // no suspense so unmount hooks fire now 7985 true 7986 // shouldRemove 7987 ); 7988 if (!delayEnter) { 7989 mountFallback(); 7990 } 7991 },
vendor: 11,147 bytes, lines 7992-8360
7992 move(container2, anchor2, type) { 7993 suspense.activeBranch && move(suspense.activeBranch, container2, anchor2, type); 7994 suspense.container = container2; 7995 }, 7996 next() { 7997 return suspense.activeBranch && next(suspense.activeBranch); 7998 }, 7999 registerDep(instance, setupRenderEffect, optimized2) { 8000 const isInPendingSuspense = !!suspense.pendingBranch; 8001 if (isInPendingSuspense) { 8002 suspense.deps++; 8003 } 8004 const hydratedEl = instance.vnode.el; 8005 instance.asyncDep.catch((err) => { 8006 handleError(err, instance, 0); 8007 }).then((asyncSetupResult) => { 8008 if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) { 8009 return; 8010 } 8011 instance.asyncResolved = true; 8012 const { vnode: vnode2 } = instance; 8013 handleSetupResult(instance, asyncSetupResult, false); 8014 if (hydratedEl) { 8015 vnode2.el = hydratedEl; 8016 } 8017 const placeholder = !hydratedEl && instance.subTree.el; 8018 setupRenderEffect( 8019 instance, 8020 vnode2, 8021 // component may have been moved before resolve. 8022 // if this is not a hydration, instance.subTree will be the comment 8023 // placeholder. 8024 parentNode(hydratedEl || instance.subTree.el), 8025 // anchor will not be used if this is hydration, so only need to 8026 // consider the comment placeholder case. 8027 hydratedEl ? null : next(instance.subTree), 8028 suspense, 8029 namespace, 8030 optimized2 8031 ); 8032 if (placeholder) { 8033 remove2(placeholder); 8034 } 8035 updateHOCHostEl(instance, vnode2.el); 8036 if (isInPendingSuspense && --suspense.deps === 0) { 8037 suspense.resolve(); 8038 } 8039 }); 8040 }, 8041 unmount(parentSuspense2, doRemove) { 8042 suspense.isUnmounted = true; 8043 if (suspense.activeBranch) { 8044 unmount( 8045 suspense.activeBranch, 8046 parentComponent, 8047 parentSuspense2, 8048 doRemove 8049 ); 8050 } 8051 if (suspense.pendingBranch) { 8052 unmount( 8053 suspense.pendingBranch, 8054 parentComponent, 8055 parentSuspense2, 8056 doRemove 8057 ); 8058 } 8059 } 8060 }; 8061 return suspense; 8062} 8063function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals, hydrateNode) { 8064 const suspense = vnode.suspense = createSuspenseBoundary( 8065 vnode, 8066 parentSuspense, 8067 parentComponent, 8068 node.parentNode, 8069 // eslint-disable-next-line no-restricted-globals 8070 document.createElement("div"), 8071 null, 8072 namespace, 8073 slotScopeIds, 8074 optimized, 8075 rendererInternals, 8076 true 8077 ); 8078 const result = hydrateNode( 8079 node, 8080 suspense.pendingBranch = vnode.ssContent, 8081 parentComponent, 8082 suspense, 8083 slotScopeIds, 8084 optimized 8085 ); 8086 if (suspense.deps === 0) { 8087 suspense.resolve(false, true); 8088 } 8089 return result; 8090} 8091function normalizeSuspenseChildren(vnode) { 8092 const { shapeFlag, children } = vnode; 8093 const isSlotChildren = shapeFlag & 32; 8094 vnode.ssContent = normalizeSuspenseSlot( 8095 isSlotChildren ? children.default : children 8096 ); 8097 vnode.ssFallback = isSlotChildren ? normalizeSuspenseSlot(children.fallback) : createVNode(Comment); 8098} 8099function normalizeSuspenseSlot(s) { 8100 let block; 8101 if (isFunction$4(s)) { 8102 const trackBlock = isBlockTreeEnabled && s._c; 8103 if (trackBlock) { 8104 s._d = false; 8105 openBlock(); 8106 } 8107 s = s(); 8108 if (trackBlock) { 8109 s._d = true; 8110 block = currentBlock; 8111 closeBlock(); 8112 } 8113 } 8114 if (isArray$4(s)) { 8115 const singleChild = filterSingleRoot(s); 8116 s = singleChild; 8117 } 8118 s = normalizeVNode(s); 8119 if (block && !s.dynamicChildren) { 8120 s.dynamicChildren = block.filter((c2) => c2 !== s); 8121 } 8122 return s; 8123} 8124function queueEffectWithSuspense(fn, suspense) { 8125 if (suspense && suspense.pendingBranch) { 8126 if (isArray$4(fn)) { 8127 suspense.effects.push(...fn); 8128 } else { 8129 suspense.effects.push(fn); 8130 } 8131 } else { 8132 queuePostFlushCb(fn); 8133 } 8134} 8135function setActiveBranch(suspense, branch) { 8136 suspense.activeBranch = branch; 8137 const { vnode, parentComponent } = suspense; 8138 let el = branch.el; 8139 while (!el && branch.component) { 8140 branch = branch.component.subTree; 8141 el = branch.el; 8142 } 8143 vnode.el = el; 8144 if (parentComponent && parentComponent.subTree === vnode) { 8145 parentComponent.vnode.el = el; 8146 updateHOCHostEl(parentComponent, el); 8147 } 8148} 8149function isVNodeSuspensible(vnode) { 8150 const suspensible = vnode.props && vnode.props.suspensible; 8151 return suspensible != null && suspensible !== false; 8152} 8153const Fragment = Symbol.for("v-fgt"); 8154const Text = Symbol.for("v-txt"); 8155const Comment = Symbol.for("v-cmt"); 8156const Static = Symbol.for("v-stc"); 8157const blockStack = []; 8158let currentBlock = null; 8159function openBlock(disableTracking = false) { 8160 blockStack.push(currentBlock = disableTracking ? null : []); 8161} 8162function closeBlock() { 8163 blockStack.pop(); 8164 currentBlock = blockStack[blockStack.length - 1] || null; 8165} 8166let isBlockTreeEnabled = 1; 8167function setBlockTracking(value, inVOnce = false) { 8168 isBlockTreeEnabled += value; 8169 if (value < 0 && currentBlock && inVOnce) { 8170 currentBlock.hasOnce = true; 8171 } 8172} 8173function setupBlock(vnode) { 8174 vnode.dynamicChildren = isBlockTreeEnabled > 0 ? currentBlock || EMPTY_ARR : null; 8175 closeBlock(); 8176 if (isBlockTreeEnabled > 0 && currentBlock) { 8177 currentBlock.push(vnode); 8178 } 8179 return vnode; 8180} 8181function createElementBlock(type, props, children, patchFlag, dynamicProps, shapeFlag) { 8182 return setupBlock( 8183 createBaseVNode( 8184 type, 8185 props, 8186 children, 8187 patchFlag, 8188 dynamicProps, 8189 shapeFlag, 8190 true 8191 ) 8192 ); 8193} 8194function createBlock(type, props, children, patchFlag, dynamicProps) { 8195 return setupBlock( 8196 createVNode( 8197 type, 8198 props, 8199 children, 8200 patchFlag, 8201 dynamicProps, 8202 true 8203 ) 8204 ); 8205} 8206function isVNode(value) { 8207 return value ? value.__v_isVNode === true : false; 8208} 8209function isSameVNodeType(n1, n2) { 8210 return n1.type === n2.type && n1.key === n2.key; 8211} 8212function transformVNodeArgs(transformer) { 8213} 8214const normalizeKey = ({ key }) => key != null ? key : null; 8215const normalizeRef = ({ 8216 ref: ref3, 8217 ref_key, 8218 ref_for 8219}) => { 8220 if (typeof ref3 === "number") { 8221 ref3 = "" + ref3; 8222 } 8223 return ref3 != null ? isString$1(ref3) || isRef(ref3) || isFunction$4(ref3) ? { i: currentRenderingInstance, r: ref3, k: ref_key, f: !!ref_for } : ref3 : null; 8224}; 8225function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1, isBlockNode = false, needFullChildrenNormalization = false) { 8226 const vnode = { 8227 __v_isVNode: true, 8228 __v_skip: true, 8229 type, 8230 props, 8231 key: props && normalizeKey(props), 8232 ref: props && normalizeRef(props), 8233 scopeId: currentScopeId, 8234 slotScopeIds: null, 8235 children, 8236 component: null, 8237 suspense: null, 8238 ssContent: null, 8239 ssFallback: null, 8240 dirs: null, 8241 transition: null, 8242 el: null, 8243 anchor: null, 8244 target: null, 8245 targetStart: null, 8246 targetAnchor: null, 8247 staticCount: 0, 8248 shapeFlag, 8249 patchFlag, 8250 dynamicProps, 8251 dynamicChildren: null, 8252 appContext: null, 8253 ctx: currentRenderingInstance 8254 }; 8255 if (needFullChildrenNormalization) { 8256 normalizeChildren$1(vnode, children); 8257 if (shapeFlag & 128) { 8258 type.normalize(vnode); 8259 } 8260 } else if (children) { 8261 vnode.shapeFlag |= isString$1(children) ? 8 : 16; 8262 } 8263 if (isBlockTreeEnabled > 0 && // avoid a block node from tracking itself 8264 !isBlockNode && // has current parent block 8265 currentBlock && // presence of a patch flag indicates this node needs patching on updates. 8266 // component nodes also should always be patched, because even if the 8267 // component doesn't need to update, it needs to persist the instance on to 8268 // the next vnode so that it can be properly unmounted later. 8269 (vnode.patchFlag > 0 || shapeFlag & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the 8270 // vnode should not be considered dynamic due to handler caching. 8271 vnode.patchFlag !== 32) { 8272 currentBlock.push(vnode); 8273 } 8274 return vnode; 8275} 8276const createVNode = _createVNode; 8277function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) { 8278 if (!type || type === NULL_DYNAMIC_COMPONENT) { 8279 type = Comment; 8280 } 8281 if (isVNode(type)) { 8282 const cloned = cloneVNode( 8283 type, 8284 props, 8285 true 8286 /* mergeRef: true */ 8287 ); 8288 if (children) { 8289 normalizeChildren$1(cloned, children); 8290 } 8291 if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) { 8292 if (cloned.shapeFlag & 6) { 8293 currentBlock[currentBlock.indexOf(type)] = cloned; 8294 } else { 8295 currentBlock.push(cloned); 8296 } 8297 } 8298 cloned.patchFlag = -2; 8299 return cloned; 8300 } 8301 if (isClassComponent(type)) { 8302 type = type.__vccOpts; 8303 } 8304 if (props) { 8305 props = guardReactiveProps(props); 8306 let { class: klass, style } = props; 8307 if (klass && !isString$1(klass)) { 8308 props.class = normalizeClass(klass); 8309 } 8310 if (isObject$4(style)) { 8311 if (isProxy(style) && !isArray$4(style)) { 8312 style = extend$1({}, style); 8313 } 8314 props.style = normalizeStyle(style); 8315 } 8316 } 8317 const shapeFlag = isString$1(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject$4(type) ? 4 : isFunction$4(type) ? 2 : 0; 8318 return createBaseVNode( 8319 type, 8320 props, 8321 children, 8322 patchFlag, 8323 dynamicProps, 8324 shapeFlag, 8325 isBlockNode, 8326 true 8327 ); 8328} 8329function guardReactiveProps(props) { 8330 if (!props) return null; 8331 return isProxy(props) || isInternalObject(props) ? extend$1({}, props) : props; 8332} 8333function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) { 8334 const { props, ref: ref3, patchFlag, children, transition } = vnode; 8335 const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props; 8336 const cloned = { 8337 __v_isVNode: true, 8338 __v_skip: true, 8339 type: vnode.type, 8340 props: mergedProps, 8341 key: mergedProps && normalizeKey(mergedProps), 8342 ref: extraProps && extraProps.ref ? ( 8343 // #2078 in the case of <component :is="vnode" ref="extra"/> 8344 // if the vnode itself already has a ref, cloneVNode will need to merge 8345 // the refs so the single vnode can be set on multiple refs 8346 mergeRef && ref3 ? isArray$4(ref3) ? ref3.concat(normalizeRef(extraProps)) : [ref3, normalizeRef(extraProps)] : normalizeRef(extraProps) 8347 ) : ref3, 8348 scopeId: vnode.scopeId, 8349 slotScopeIds: vnode.slotScopeIds, 8350 children, 8351 target: vnode.target, 8352 targetStart: vnode.targetStart, 8353 targetAnchor: vnode.targetAnchor, 8354 staticCount: vnode.staticCount, 8355 shapeFlag: vnode.shapeFlag, 8356 // if the vnode is cloned with extra props, we can no longer assume its 8357 // existing patch flag to be reliable and need to add the FULL_PROPS flag. 8358 // note: preserve flag for fragments since they use the flag for children 8359 // fast paths only. 8360 patchFlag: extraProps && vnode.type !== Fragment ? patchFlag === -1 ? 16
vendor: 4,085 bytes, lines 8360-8493
8360: patchFlag | 16 : patchFlag, 8361 dynamicProps: vnode.dynamicProps, 8362 dynamicChildren: vnode.dynamicChildren, 8363 appContext: vnode.appContext, 8364 dirs: vnode.dirs, 8365 transition, 8366 // These should technically only be non-null on mounted VNodes. However, 8367 // they *should* be copied for kept-alive vnodes. So we just always copy 8368 // them since them being non-null during a mount doesn't affect the logic as 8369 // they will simply be overwritten. 8370 component: vnode.component, 8371 suspense: vnode.suspense, 8372 ssContent: vnode.ssContent && cloneVNode(vnode.ssContent), 8373 ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback), 8374 el: vnode.el, 8375 anchor: vnode.anchor, 8376 ctx: vnode.ctx, 8377 ce: vnode.ce 8378 }; 8379 if (transition && cloneTransition) { 8380 setTransitionHooks( 8381 cloned, 8382 transition.clone(cloned) 8383 ); 8384 } 8385 return cloned; 8386} 8387function createTextVNode(text = " ", flag = 0) { 8388 return createVNode(Text, null, text, flag); 8389} 8390function createStaticVNode(content, numberOfNodes) { 8391 const vnode = createVNode(Static, null, content); 8392 vnode.staticCount = numberOfNodes; 8393 return vnode; 8394} 8395function createCommentVNode(text = "", asBlock = false) { 8396 return asBlock ? (openBlock(), createBlock(Comment, null, text)) : createVNode(Comment, null, text); 8397} 8398function normalizeVNode(child) { 8399 if (child == null || typeof child === "boolean") { 8400 return createVNode(Comment); 8401 } else if (isArray$4(child)) { 8402 return createVNode( 8403 Fragment, 8404 null, 8405 // #3666, avoid reference pollution when reusing vnode 8406 child.slice() 8407 ); 8408 } else if (isVNode(child)) { 8409 return cloneIfMounted(child); 8410 } else { 8411 return createVNode(Text, null, String(child)); 8412 } 8413} 8414function cloneIfMounted(child) { 8415 return child.el === null && child.patchFlag !== -1 || child.memo ? child : cloneVNode(child); 8416} 8417function normalizeChildren$1(vnode, children) { 8418 let type = 0; 8419 const { shapeFlag } = vnode; 8420 if (children == null) { 8421 children = null; 8422 } else if (isArray$4(children)) { 8423 type = 16; 8424 } else if (typeof children === "object") { 8425 if (shapeFlag & (1 | 64)) { 8426 const slot = children.default; 8427 if (slot) { 8428 slot._c && (slot._d = false); 8429 normalizeChildren$1(vnode, slot()); 8430 slot._c && (slot._d = true); 8431 } 8432 return; 8433 } else { 8434 type = 32; 8435 const slotFlag = children._; 8436 if (!slotFlag && !isInternalObject(children)) { 8437 children._ctx = currentRenderingInstance; 8438 } else if (slotFlag === 3 && currentRenderingInstance) { 8439 if (currentRenderingInstance.slots._ === 1) { 8440 children._ = 1; 8441 } else { 8442 children._ = 2; 8443 vnode.patchFlag |= 1024; 8444 } 8445 } 8446 } 8447 } else if (isFunction$4(children)) { 8448 children = { default: children, _ctx: currentRenderingInstance }; 8449 type = 32; 8450 } else { 8451 children = String(children); 8452 if (shapeFlag & 64) { 8453 type = 16; 8454 children = [createTextVNode(children)]; 8455 } else { 8456 type = 8; 8457 } 8458 } 8459 vnode.children = children; 8460 vnode.shapeFlag |= type; 8461} 8462function mergeProps(...args) { 8463 const ret = {}; 8464 for (let i = 0; i < args.length; i++) { 8465 const toMerge = args[i]; 8466 for (const key in toMerge) { 8467 if (key === "class") { 8468 if (ret.class !== toMerge.class) { 8469 ret.class = normalizeClass([ret.class, toMerge.class]); 8470 } 8471 } else if (key === "style") { 8472 ret.style = normalizeStyle([ret.style, toMerge.style]); 8473 } else if (isOn(key)) { 8474 const existing = ret[key]; 8475 const incoming = toMerge[key]; 8476 if (incoming && existing !== incoming && !(isArray$4(existing) && existing.includes(incoming))) { 8477 ret[key] = existing ? [].concat(existing, incoming) : incoming; 8478 } 8479 } else if (key !== "") { 8480 ret[key] = toMerge[key]; 8481 } 8482 } 8483 } 8484 return ret; 8485} 8486function invokeVNodeHook(hook, instance, vnode, prevVNode = null) { 8487 callWithAsyncErrorHandling(hook, instance, 7, [ 8488 vnode, 8489 prevVNode 8490 ]); 8491} 8492const emptyAppContext = createAppContext(); 8493let uid = 0;
vendor: 5,157 bytes, lines 8494-8677
8494function createComponentInstance(vnode, parent, suspense) { 8495 const type = vnode.type; 8496 const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext; 8497 const instance = { 8498 uid: uid++, 8499 vnode, 8500 type, 8501 parent, 8502 appContext, 8503 root: null, 8504 // to be immediately set 8505 next: null, 8506 subTree: null, 8507 // will be set synchronously right after creation 8508 effect: null, 8509 update: null, 8510 // will be set synchronously right after creation 8511 job: null, 8512 scope: new EffectScope( 8513 true 8514 /* detached */ 8515 ), 8516 render: null, 8517 proxy: null, 8518 exposed: null, 8519 exposeProxy: null, 8520 withProxy: null, 8521 provides: parent ? parent.provides : Object.create(appContext.provides), 8522 ids: parent ? parent.ids : ["", 0, 0], 8523 accessCache: null, 8524 renderCache: [], 8525 // local resolved assets 8526 components: null, 8527 directives: null, 8528 // resolved props and emits options 8529 propsOptions: normalizePropsOptions(type, appContext), 8530 emitsOptions: normalizeEmitsOptions(type, appContext), 8531 // emit 8532 emit: null, 8533 // to be set immediately 8534 emitted: null, 8535 // props default value 8536 propsDefaults: EMPTY_OBJ, 8537 // inheritAttrs 8538 inheritAttrs: type.inheritAttrs, 8539 // state 8540 ctx: EMPTY_OBJ, 8541 data: EMPTY_OBJ, 8542 props: EMPTY_OBJ, 8543 attrs: EMPTY_OBJ, 8544 slots: EMPTY_OBJ, 8545 refs: EMPTY_OBJ, 8546 setupState: EMPTY_OBJ, 8547 setupContext: null, 8548 // suspense related 8549 suspense, 8550 suspenseId: suspense ? suspense.pendingId : 0, 8551 asyncDep: null, 8552 asyncResolved: false, 8553 // lifecycle hooks 8554 // not using enums here because it results in computed properties 8555 isMounted: false, 8556 isUnmounted: false, 8557 isDeactivated: false, 8558 bc: null, 8559 c: null, 8560 bm: null, 8561 m: null, 8562 bu: null, 8563 u: null, 8564 um: null, 8565 bum: null, 8566 da: null, 8567 a: null, 8568 rtg: null, 8569 rtc: null, 8570 ec: null, 8571 sp: null 8572 }; 8573 { 8574 instance.ctx = { _: instance }; 8575 } 8576 instance.root = parent ? parent.root : instance; 8577 instance.emit = emit.bind(null, instance); 8578 if (vnode.ce) { 8579 vnode.ce(instance); 8580 } 8581 return instance; 8582} 8583let currentInstance = null; 8584const getCurrentInstance = () => currentInstance || currentRenderingInstance; 8585let internalSetCurrentInstance; 8586let setInSSRSetupState; 8587{ 8588 const g = getGlobalThis(); 8589 const registerGlobalSetter = (key, setter) => { 8590 let setters; 8591 if (!(setters = g[key])) setters = g[key] = []; 8592 setters.push(setter); 8593 return (v2) => { 8594 if (setters.length > 1) setters.forEach((set2) => set2(v2)); 8595 else setters[0](v2); 8596 }; 8597 }; 8598 internalSetCurrentInstance = registerGlobalSetter( 8599 `__VUE_INSTANCE_SETTERS__`, 8600 (v2) => currentInstance = v2 8601 ); 8602 setInSSRSetupState = registerGlobalSetter( 8603 `__VUE_SSR_SETTERS__`, 8604 (v2) => isInSSRComponentSetup = v2 8605 ); 8606} 8607const setCurrentInstance = (instance) => { 8608 const prev = currentInstance; 8609 internalSetCurrentInstance(instance); 8610 instance.scope.on(); 8611 return () => { 8612 instance.scope.off(); 8613 internalSetCurrentInstance(prev); 8614 }; 8615}; 8616const unsetCurrentInstance = () => { 8617 currentInstance && currentInstance.scope.off(); 8618 internalSetCurrentInstance(null); 8619}; 8620function isStatefulComponent(instance) { 8621 return instance.vnode.shapeFlag & 4; 8622} 8623let isInSSRComponentSetup = false; 8624function setupComponent(instance, isSSR = false, optimized = false) { 8625 isSSR && setInSSRSetupState(isSSR); 8626 const { props, children } = instance.vnode; 8627 const isStateful = isStatefulComponent(instance); 8628 initProps(instance, props, isStateful, isSSR); 8629 initSlots(instance, children, optimized); 8630 const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0; 8631 isSSR && setInSSRSetupState(false); 8632 return setupResult; 8633} 8634function setupStatefulComponent(instance, isSSR) { 8635 const Component = instance.type; 8636 instance.accessCache = /* @__PURE__ */ Object.create(null); 8637 instance.proxy = new Proxy(instance.ctx, PublicInstanceProxyHandlers); 8638 const { setup } = Component; 8639 if (setup) { 8640 pauseTracking(); 8641 const setupContext = instance.setupContext = setup.length > 1 ? createSetupContext(instance) : null; 8642 const reset = setCurrentInstance(instance); 8643 const setupResult = callWithErrorHandling( 8644 setup, 8645 instance, 8646 0, 8647 [ 8648 instance.props, 8649 setupContext 8650 ] 8651 ); 8652 const isAsyncSetup = isPromise$1(setupResult); 8653 resetTracking(); 8654 reset(); 8655 if ((isAsyncSetup || instance.sp) && !isAsyncWrapper(instance)) { 8656 markAsyncBoundary(instance); 8657 } 8658 if (isAsyncSetup) { 8659 setupResult.then(unsetCurrentInstance, unsetCurrentInstance); 8660 if (isSSR) { 8661 return setupResult.then((resolvedResult) => { 8662 handleSetupResult(instance, resolvedResult, isSSR); 8663 }).catch((e) => { 8664 handleError(e, instance, 0); 8665 }); 8666 } else { 8667 instance.asyncDep = setupResult; 8668 } 8669 } else { 8670 handleSetupResult(instance, setupResult, isSSR); 8671 } 8672 } else { 8673 finishComponentSetup(instance, isSSR); 8674 } 8675} 8676function handleSetupResult(instance, setupResult, isSSR) { 8677 if (isFunction$4(setupResult)) {
8678 if (instance.type.__ssrInlineRender) { 8679 instance.ssrRender = setupResult; 8680 } else { 8681 instance.render = setupResult; 8682 } 8683 } else if (isObject$4(setupResult)) { 8684 instance.setupState = proxyRefs(setupResult); 8685 } else ; 8686 finishComponentSetup(instance, isSSR); 8687} 8688let compile; 8689let installWithProxy; 8690function registerRuntimeCompiler(_compile) { 8691 compile = _compile; 8692 installWithProxy = (i) => { 8693 if (i.render._rc) { 8694 i.withProxy = new Proxy(i.ctx, RuntimeCompiledPublicInstanceProxyHandlers); 8695 } 8696 }; 8697} 8698const isRuntimeOnly = () => !compile; 8699function finishComponentSetup(instance, isSSR, skipOptions) { 8700 const Component = instance.type; 8701 if (!instance.render) { 8702 if (!isSSR && compile && !Component.render) { 8703 const template = Component.template || resolveMergedOptions(instance).template; 8704 if (template) { 8705 const { isCustomElement, compilerOptions } = instance.appContext.config; 8706 const { delimiters, compilerOptions: componentCompilerOptions } = Component; 8707 const finalCompilerOptions = extend$1( 8708 extend$1( 8709 { 8710 isCustomElement, 8711 delimiters 8712 }, 8713 compilerOptions 8714 ), 8715 componentCompilerOptions 8716 ); 8717 Component.render = compile(template, finalCompilerOptions); 8718 } 8719 } 8720 instance.render = Component.render || NOOP; 8721 if (installWithProxy) { 8722 installWithProxy(instance); 8723 } 8724 } 8725 { 8726 const reset = setCurrentInstance(instance); 8727 pauseTracking(); 8728 try { 8729 applyOptions(instance); 8730 } finally { 8731 resetTracking(); 8732 reset(); 8733 } 8734 } 8735} 8736const attrsProxyHandlers = { 8737 get(target, key) { 8738 track(target, "get", ""); 8739 return target[key]; 8740 } 8741}; 8742function createSetupContext(instance) { 8743 const expose = (exposed) => { 8744 instance.exposed = exposed || {}; 8745 }; 8746 { 8747 return { 8748 attrs: new Proxy(instance.attrs, attrsProxyHandlers), 8749 slots: instance.slots, 8750 emit: instance.emit, 8751 expose 8752 }; 8753 } 8754} 8755function getComponentPublicInstance(instance) { 8756 if (instance.exposed) { 8757 return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), { 8758 get(target, key) { 8759 if (key in target) { 8760 return target[key]; 8761 } else if (key in publicPropertiesMap) { 8762 return publicPropertiesMap[key](instance); 8763 } 8764 }, 8765 has(target, key) { 8766 return key in target || key in publicPropertiesMap; 8767 } 8768 })); 8769 } else { 8770 return instance.proxy; 8771 } 8772} 8773const classifyRE = /(?:^|[-_])(\w)/g; 8774const classify = (str) => str.replace(classifyRE, (c2) => c2.toUpperCase()).replace(/[-_]/g, ""); 8775function getComponentName(Component, includeInferred = true) { 8776 return isFunction$4(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name; 8777} 8778function formatComponentName(instance, Component, isRoot = false) { 8779 let name = getComponentName(Component); 8780 if (!name && Component.__file) { 8781 const match2 = Component.__file.match(/([^/\\]+)\.\w+$/); 8782 if (match2) { 8783 name = match2[1]; 8784 } 8785 } 8786 if (!name && instance && instance.parent) { 8787 const inferFromRegistry = (registry) => { 8788 for (const key in registry) { 8789 if (registry[key] === Component) { 8790 return key; 8791 } 8792 } 8793 }; 8794 name = inferFromRegistry( 8795 instance.components || instance.parent.type.components 8796 ) || inferFromRegistry(instance.appContext.components); 8797 } 8798 return name ? classify(name) : isRoot ? `App` : `Anonymous`; 8799} 8800function isClassComponent(value) { 8801 return isFunction$4(value) && "__vccOpts" in value; 8802} 8803const computed = (getterOrOptions, debugOptions) => { 8804 const c2 = computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup); 8805 return c2; 8806}; 8807function h(type, propsOrChildren, children) { 8808 const l3 = arguments.length; 8809 if (l3 === 2) { 8810 if (isObject$4(propsOrChildren) && !isArray$4(propsOrChildren)) { 8811 if (isVNode(propsOrChildren)) { 8812 return createVNode(type, null, [propsOrChildren]); 8813 } 8814 return createVNode(type, propsOrChildren); 8815 } else { 8816 return createVNode(type, null, propsOrChildren); 8817 } 8818 } else { 8819 if (l3 > 3) { 8820 children = Array.prototype.slice.call(arguments, 2); 8821 } else if (l3 === 3 && isVNode(children)) { 8822 children = [children]; 8823 } 8824 return createVNode(type, propsOrChildren, children); 8825 } 8826} 8827function initCustomFormatter() { 8828 { 8829 return; 8830 } 8831} 8832function withMemo(memo, render4, cache, index2) {
vendor: 1,164 bytes, lines 8833-8881
8833 const cached = cache[index2]; 8834 if (cached && isMemoSame(cached, memo)) { 8835 return cached; 8836 } 8837 const ret = render4(); 8838 ret.memo = memo.slice(); 8839 ret.cacheIndex = index2; 8840 return cache[index2] = ret; 8841} 8842function isMemoSame(cached, memo) { 8843 const prev = cached.memo; 8844 if (prev.length != memo.length) { 8845 return false; 8846 } 8847 for (let i = 0; i < prev.length; i++) { 8848 if (hasChanged(prev[i], memo[i])) { 8849 return false; 8850 } 8851 } 8852 if (isBlockTreeEnabled > 0 && currentBlock) { 8853 currentBlock.push(cached); 8854 } 8855 return true; 8856} 8857const version = "3.5.13"; 8858const warn = NOOP; 8859const ErrorTypeStrings = ErrorTypeStrings$1; 8860const devtools = devtools$1; 8861const setDevtoolsHook = setDevtoolsHook$1; 8862const _ssrUtils = { 8863 createComponentInstance, 8864 setupComponent, 8865 renderComponentRoot, 8866 setCurrentRenderingInstance, 8867 isVNode, 8868 normalizeVNode, 8869 getComponentPublicInstance, 8870 ensureValidVNode, 8871 pushWarningContext, 8872 popWarningContext 8873}; 8874const ssrUtils = _ssrUtils; 8875const resolveFilter = null; 8876const compatUtils = null; 8877const DeprecationTypes = null; 8878/** 8879* @vue/runtime-dom v3.5.13 8880* (c) 2018-present Yuxi (Evan) You and Vue contributors 8881* @license MIT
vendor: 5,400 bytes, lines 8882-9050
8882**/ 8883let policy = void 0; 8884const tt = typeof window !== "undefined" && window.trustedTypes; 8885if (tt) { 8886 try { 8887 policy = /* @__PURE__ */ tt.createPolicy("vue", { 8888 createHTML: (val) => val 8889 }); 8890 } catch (e) { 8891 } 8892} 8893const unsafeToTrustedHTML = policy ? (val) => policy.createHTML(val) : (val) => val; 8894const svgNS = "http://www.w3.org/2000/svg"; 8895const mathmlNS = "http://www.w3.org/1998/Math/MathML"; 8896const doc = typeof document !== "undefined" ? document : null; 8897const templateContainer = doc && /* @__PURE__ */ doc.createElement("template"); 8898const nodeOps = { 8899 insert: (child, parent, anchor) => { 8900 parent.insertBefore(child, anchor || null); 8901 }, 8902 remove: (child) => { 8903 const parent = child.parentNode; 8904 if (parent) { 8905 parent.removeChild(child); 8906 } 8907 }, 8908 createElement: (tag, namespace, is, props) => { 8909 const el = namespace === "svg" ? doc.createElementNS(svgNS, tag) : namespace === "mathml" ? doc.createElementNS(mathmlNS, tag) : is ? doc.createElement(tag, { is }) : doc.createElement(tag); 8910 if (tag === "select" && props && props.multiple != null) { 8911 el.setAttribute("multiple", props.multiple); 8912 } 8913 return el; 8914 }, 8915 createText: (text) => doc.createTextNode(text), 8916 createComment: (text) => doc.createComment(text), 8917 setText: (node, text) => { 8918 node.nodeValue = text; 8919 }, 8920 setElementText: (el, text) => { 8921 el.textContent = text; 8922 }, 8923 parentNode: (node) => node.parentNode, 8924 nextSibling: (node) => node.nextSibling, 8925 querySelector: (selector) => doc.querySelector(selector), 8926 setScopeId(el, id) { 8927 el.setAttribute(id, ""); 8928 }, 8929 // __UNSAFE__ 8930 // Reason: innerHTML. 8931 // Static content here can only come from compiled templates. 8932 // As long as the user only uses trusted templates, this is safe. 8933 insertStaticContent(content, parent, anchor, namespace, start, end) { 8934 const before = anchor ? anchor.previousSibling : parent.lastChild; 8935 if (start && (start === end || start.nextSibling)) { 8936 while (true) { 8937 parent.insertBefore(start.cloneNode(true), anchor); 8938 if (start === end || !(start = start.nextSibling)) break; 8939 } 8940 } else { 8941 templateContainer.innerHTML = unsafeToTrustedHTML( 8942 namespace === "svg" ? `<svg>${content}</svg>` : namespace === "mathml" ? `<math>${content}</math>` : content 8943 ); 8944 const template = templateContainer.content; 8945 if (namespace === "svg" || namespace === "mathml") { 8946 const wrapper = template.firstChild; 8947 while (wrapper.firstChild) { 8948 template.appendChild(wrapper.firstChild); 8949 } 8950 template.removeChild(wrapper); 8951 } 8952 parent.insertBefore(template, anchor); 8953 } 8954 return [ 8955 // first 8956 before ? before.nextSibling : parent.firstChild, 8957 // last 8958 anchor ? anchor.previousSibling : parent.lastChild 8959 ]; 8960 } 8961}; 8962const TRANSITION = "transition"; 8963const ANIMATION = "animation"; 8964const vtcKey = Symbol("_vtc"); 8965const DOMTransitionPropsValidators = { 8966 name: String, 8967 type: String, 8968 css: { 8969 type: Boolean, 8970 default: true 8971 }, 8972 duration: [String, Number, Object], 8973 enterFromClass: String, 8974 enterActiveClass: String, 8975 enterToClass: String, 8976 appearFromClass: String, 8977 appearActiveClass: String, 8978 appearToClass: String, 8979 leaveFromClass: String, 8980 leaveActiveClass: String, 8981 leaveToClass: String 8982}; 8983const TransitionPropsValidators = /* @__PURE__ */ extend$1( 8984 {}, 8985 BaseTransitionPropsValidators, 8986 DOMTransitionPropsValidators 8987); 8988const decorate$1 = (t) => { 8989 t.displayName = "Transition"; 8990 t.props = TransitionPropsValidators; 8991 return t; 8992}; 8993const Transition = /* @__PURE__ */ decorate$1( 8994 (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots) 8995); 8996const callHook = (hook, args = []) => { 8997 if (isArray$4(hook)) { 8998 hook.forEach((h2) => h2(...args)); 8999 } else if (hook) { 9000 hook(...args); 9001 } 9002}; 9003const hasExplicitCallback = (hook) => { 9004 return hook ? isArray$4(hook) ? hook.some((h2) => h2.length > 1) : hook.length > 1 : false; 9005}; 9006function resolveTransitionProps(rawProps) { 9007 const baseProps = {}; 9008 for (const key in rawProps) { 9009 if (!(key in DOMTransitionPropsValidators)) { 9010 baseProps[key] = rawProps[key]; 9011 } 9012 } 9013 if (rawProps.css === false) { 9014 return baseProps; 9015 } 9016 const { 9017 name = "v", 9018 type, 9019 duration, 9020 enterFromClass = `${name}-enter-from`, 9021 enterActiveClass = `${name}-enter-active`, 9022 enterToClass = `${name}-enter-to`, 9023 appearFromClass = enterFromClass, 9024 appearActiveClass = enterActiveClass, 9025 appearToClass = enterToClass, 9026 leaveFromClass = `${name}-leave-from`, 9027 leaveActiveClass = `${name}-leave-active`, 9028 leaveToClass = `${name}-leave-to` 9029 } = rawProps; 9030 const durations = normalizeDuration(duration); 9031 const enterDuration = durations && durations[0]; 9032 const leaveDuration = durations && durations[1]; 9033 const { 9034 onBeforeEnter, 9035 onEnter, 9036 onEnterCancelled, 9037 onLeave, 9038 onLeaveCancelled, 9039 onBeforeAppear = onBeforeEnter, 9040 onAppear = onEnter, 9041 onAppearCancelled = onEnterCancelled 9042 } = baseProps; 9043 const finishEnter = (el, isAppear, done, isCancelled) => { 9044 el._enterCancelled = isCancelled; 9045 removeTransitionClass(el, isAppear ? appearToClass : enterToClass); 9046 removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass); 9047 done && done(); 9048 }; 9049 const finishLeave = (el, done) => { 9050 el._isLeaving = false;
vendor: 8,616 bytes, lines 9051-9343
9051 removeTransitionClass(el, leaveFromClass); 9052 removeTransitionClass(el, leaveToClass); 9053 removeTransitionClass(el, leaveActiveClass); 9054 done && done(); 9055 }; 9056 const makeEnterHook = (isAppear) => { 9057 return (el, done) => { 9058 const hook = isAppear ? onAppear : onEnter; 9059 const resolve2 = () => finishEnter(el, isAppear, done); 9060 callHook(hook, [el, resolve2]); 9061 nextFrame(() => { 9062 removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass); 9063 addTransitionClass(el, isAppear ? appearToClass : enterToClass); 9064 if (!hasExplicitCallback(hook)) { 9065 whenTransitionEnds(el, type, enterDuration, resolve2); 9066 } 9067 }); 9068 }; 9069 }; 9070 return extend$1(baseProps, { 9071 onBeforeEnter(el) { 9072 callHook(onBeforeEnter, [el]); 9073 addTransitionClass(el, enterFromClass); 9074 addTransitionClass(el, enterActiveClass); 9075 }, 9076 onBeforeAppear(el) { 9077 callHook(onBeforeAppear, [el]); 9078 addTransitionClass(el, appearFromClass); 9079 addTransitionClass(el, appearActiveClass); 9080 }, 9081 onEnter: makeEnterHook(false), 9082 onAppear: makeEnterHook(true), 9083 onLeave(el, done) { 9084 el._isLeaving = true; 9085 const resolve2 = () => finishLeave(el, done); 9086 addTransitionClass(el, leaveFromClass); 9087 if (!el._enterCancelled) { 9088 forceReflow(); 9089 addTransitionClass(el, leaveActiveClass); 9090 } else { 9091 addTransitionClass(el, leaveActiveClass); 9092 forceReflow(); 9093 } 9094 nextFrame(() => { 9095 if (!el._isLeaving) { 9096 return; 9097 } 9098 removeTransitionClass(el, leaveFromClass); 9099 addTransitionClass(el, leaveToClass); 9100 if (!hasExplicitCallback(onLeave)) { 9101 whenTransitionEnds(el, type, leaveDuration, resolve2); 9102 } 9103 }); 9104 callHook(onLeave, [el, resolve2]); 9105 }, 9106 onEnterCancelled(el) { 9107 finishEnter(el, false, void 0, true); 9108 callHook(onEnterCancelled, [el]); 9109 }, 9110 onAppearCancelled(el) { 9111 finishEnter(el, true, void 0, true); 9112 callHook(onAppearCancelled, [el]); 9113 }, 9114 onLeaveCancelled(el) { 9115 finishLeave(el); 9116 callHook(onLeaveCancelled, [el]); 9117 } 9118 }); 9119} 9120function normalizeDuration(duration) { 9121 if (duration == null) { 9122 return null; 9123 } else if (isObject$4(duration)) { 9124 return [NumberOf(duration.enter), NumberOf(duration.leave)]; 9125 } else { 9126 const n = NumberOf(duration); 9127 return [n, n]; 9128 } 9129} 9130function NumberOf(val) { 9131 const res = toNumber$2(val); 9132 return res; 9133} 9134function addTransitionClass(el, cls) { 9135 cls.split(/\s+/).forEach((c2) => c2 && el.classList.add(c2)); 9136 (el[vtcKey] || (el[vtcKey] = /* @__PURE__ */ new Set())).add(cls); 9137} 9138function removeTransitionClass(el, cls) { 9139 cls.split(/\s+/).forEach((c2) => c2 && el.classList.remove(c2)); 9140 const _vtc = el[vtcKey]; 9141 if (_vtc) { 9142 _vtc.delete(cls); 9143 if (!_vtc.size) { 9144 el[vtcKey] = void 0; 9145 } 9146 } 9147} 9148function nextFrame(cb) { 9149 requestAnimationFrame(() => { 9150 requestAnimationFrame(cb); 9151 }); 9152} 9153let endId = 0; 9154function whenTransitionEnds(el, expectedType, explicitTimeout, resolve2) { 9155 const id = el._endId = ++endId; 9156 const resolveIfNotStale = () => { 9157 if (id === el._endId) { 9158 resolve2(); 9159 } 9160 }; 9161 if (explicitTimeout != null) { 9162 return setTimeout(resolveIfNotStale, explicitTimeout); 9163 } 9164 const { type, timeout, propCount } = getTransitionInfo(el, expectedType); 9165 if (!type) { 9166 return resolve2(); 9167 } 9168 const endEvent = type + "end"; 9169 let ended = 0; 9170 const end = () => { 9171 el.removeEventListener(endEvent, onEnd); 9172 resolveIfNotStale(); 9173 }; 9174 const onEnd = (e) => { 9175 if (e.target === el && ++ended >= propCount) { 9176 end(); 9177 } 9178 }; 9179 setTimeout(() => { 9180 if (ended < propCount) { 9181 end(); 9182 } 9183 }, timeout + 1); 9184 el.addEventListener(endEvent, onEnd); 9185} 9186function getTransitionInfo(el, expectedType) { 9187 const styles = window.getComputedStyle(el); 9188 const getStyleProperties = (key) => (styles[key] || "").split(", "); 9189 const transitionDelays = getStyleProperties(`${TRANSITION}Delay`); 9190 const transitionDurations = getStyleProperties(`${TRANSITION}Duration`); 9191 const transitionTimeout = getTimeout(transitionDelays, transitionDurations); 9192 const animationDelays = getStyleProperties(`${ANIMATION}Delay`); 9193 const animationDurations = getStyleProperties(`${ANIMATION}Duration`); 9194 const animationTimeout = getTimeout(animationDelays, animationDurations); 9195 let type = null; 9196 let timeout = 0; 9197 let propCount = 0; 9198 if (expectedType === TRANSITION) { 9199 if (transitionTimeout > 0) { 9200 type = TRANSITION; 9201 timeout = transitionTimeout; 9202 propCount = transitionDurations.length; 9203 } 9204 } else if (expectedType === ANIMATION) { 9205 if (animationTimeout > 0) { 9206 type = ANIMATION; 9207 timeout = animationTimeout; 9208 propCount = animationDurations.length; 9209 } 9210 } else { 9211 timeout = Math.max(transitionTimeout, animationTimeout); 9212 type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION : ANIMATION : null; 9213 propCount = type ? type === TRANSITION ? transitionDurations.length : animationDurations.length : 0; 9214 } 9215 const hasTransform = type === TRANSITION && /\b(transform|all)(,|$)/.test( 9216 getStyleProperties(`${TRANSITION}Property`).toString() 9217 ); 9218 return { 9219 type, 9220 timeout, 9221 propCount, 9222 hasTransform 9223 }; 9224} 9225function getTimeout(delays, durations) { 9226 while (delays.length < durations.length) { 9227 delays = delays.concat(delays); 9228 } 9229 return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i]))); 9230} 9231function toMs(s) { 9232 if (s === "auto") return 0; 9233 return Number(s.slice(0, -1).replace(",", ".")) * 1e3; 9234} 9235function forceReflow() { 9236 return document.body.offsetHeight; 9237} 9238function patchClass(el, value, isSVG) { 9239 const transitionClasses = el[vtcKey]; 9240 if (transitionClasses) { 9241 value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(" "); 9242 } 9243 if (value == null) { 9244 el.removeAttribute("class"); 9245 } else if (isSVG) { 9246 el.setAttribute("class", value); 9247 } else { 9248 el.className = value; 9249 } 9250} 9251const vShowOriginalDisplay = Symbol("_vod"); 9252const vShowHidden = Symbol("_vsh"); 9253const vShow = { 9254 beforeMount(el, { value }, { transition }) { 9255 el[vShowOriginalDisplay] = el.style.display === "none" ? "" : el.style.display; 9256 if (transition && value) { 9257 transition.beforeEnter(el); 9258 } else { 9259 setDisplay(el, value); 9260 } 9261 }, 9262 mounted(el, { value }, { transition }) { 9263 if (transition && value) { 9264 transition.enter(el); 9265 } 9266 }, 9267 updated(el, { value, oldValue }, { transition }) { 9268 if (!value === !oldValue) return; 9269 if (transition) { 9270 if (value) { 9271 transition.beforeEnter(el); 9272 setDisplay(el, true); 9273 transition.enter(el); 9274 } else { 9275 transition.leave(el, () => { 9276 setDisplay(el, false); 9277 }); 9278 } 9279 } else { 9280 setDisplay(el, value); 9281 } 9282 }, 9283 beforeUnmount(el, { value }) { 9284 setDisplay(el, value); 9285 } 9286}; 9287function setDisplay(el, value) { 9288 el.style.display = value ? el[vShowOriginalDisplay] : "none"; 9289 el[vShowHidden] = !value; 9290} 9291function initVShowForSSR() { 9292 vShow.getSSRProps = ({ value }) => { 9293 if (!value) { 9294 return { style: { display: "none" } }; 9295 } 9296 }; 9297} 9298const CSS_VAR_TEXT = Symbol(""); 9299function useCssVars(getter) { 9300 const instance = getCurrentInstance(); 9301 if (!instance) { 9302 return; 9303 } 9304 const updateTeleports = instance.ut = (vars = getter(instance.proxy)) => { 9305 Array.from( 9306 document.querySelectorAll(`[data-v-owner="${instance.uid}"]`) 9307 ).forEach((node) => setVarsOnNode(node, vars)); 9308 }; 9309 const setVars = () => { 9310 const vars = getter(instance.proxy); 9311 if (instance.ce) { 9312 setVarsOnNode(instance.ce, vars); 9313 } else { 9314 setVarsOnVNode(instance.subTree, vars); 9315 } 9316 updateTeleports(vars); 9317 }; 9318 onBeforeUpdate(() => { 9319 queuePostFlushCb(setVars); 9320 }); 9321 onMounted(() => { 9322 watch(setVars, NOOP, { flush: "post" }); 9323 const ob = new MutationObserver(setVars); 9324 ob.observe(instance.subTree.el.parentNode, { childList: true }); 9325 onUnmounted(() => ob.disconnect()); 9326 }); 9327} 9328function setVarsOnVNode(vnode, vars) { 9329 if (vnode.shapeFlag & 128) { 9330 const suspense = vnode.suspense; 9331 vnode = suspense.activeBranch; 9332 if (suspense.pendingBranch && !suspense.isHydrating) { 9333 suspense.effects.push(() => { 9334 setVarsOnVNode(suspense.activeBranch, vars); 9335 }); 9336 } 9337 } 9338 while (vnode.component) { 9339 vnode = vnode.component.subTree; 9340 } 9341 if (vnode.shapeFlag & 1 && vnode.el) { 9342 setVarsOnNode(vnode.el, vars); 9343 } else if (vnode.type === Fragment) {
9344 vnode.children.forEach((c2) => setVarsOnVNode(c2, vars)); 9345 } else if (vnode.type === Static) { 9346 let { el, anchor } = vnode; 9347 while (el) { 9348 setVarsOnNode(el, vars); 9349 if (el === anchor) break; 9350 el = el.nextSibling; 9351 } 9352 } 9353} 9354function setVarsOnNode(el, vars) { 9355 if (el.nodeType === 1) { 9356 const style = el.style; 9357 let cssText = ""; 9358 for (const key in vars) { 9359 style.setProperty(`--${key}`, vars[key]); 9360 cssText += `--${key}: ${vars[key]};`; 9361 } 9362 style[CSS_VAR_TEXT] = cssText; 9363 } 9364} 9365const displayRE = /(^|;)\s*display\s*:/; 9366function patchStyle(el, prev, next) { 9367 const style = el.style; 9368 const isCssString = isString$1(next); 9369 let hasControlledDisplay = false; 9370 if (next && !isCssString) { 9371 if (prev) { 9372 if (!isString$1(prev)) { 9373 for (const key in prev) { 9374 if (next[key] == null) { 9375 setStyle(style, key, ""); 9376 } 9377 } 9378 } else { 9379 for (const prevStyle of prev.split(";")) { 9380 const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim(); 9381 if (next[key] == null) { 9382 setStyle(style, key, ""); 9383 } 9384 } 9385 } 9386 } 9387 for (const key in next) { 9388 if (key === "display") { 9389 hasControlledDisplay = true; 9390 } 9391 setStyle(style, key, next[key]); 9392 } 9393 } else { 9394 if (isCssString) { 9395 if (prev !== next) { 9396 const cssVarText = style[CSS_VAR_TEXT]; 9397 if (cssVarText) { 9398 next += ";" + cssVarText; 9399 } 9400 style.cssText = next; 9401 hasControlledDisplay = displayRE.test(next); 9402 } 9403 } else if (prev) { 9404 el.removeAttribute("style"); 9405 } 9406 } 9407 if (vShowOriginalDisplay in el) { 9408 el[vShowOriginalDisplay] = hasControlledDisplay ? style.display : ""; 9409 if (el[vShowHidden]) { 9410 style.display = "none"; 9411 } 9412 } 9413} 9414const importantRE = /\s*!important$/; 9415function setStyle(style, name, val) { 9416 if (isArray$4(val)) { 9417 val.forEach((v2) => setStyle(style, name, v2)); 9418 } else { 9419 if (val == null) val = ""; 9420 if (name.startsWith("--")) { 9421 style.setProperty(name, val); 9422 } else { 9423 const prefixed = autoPrefix(style, name); 9424 if (importantRE.test(val)) { 9425 style.setProperty( 9426 hyphenate(prefixed), 9427 val.replace(importantRE, ""), 9428 "important" 9429 ); 9430 } else { 9431 style[prefixed] = val; 9432 } 9433 } 9434 } 9435} 9436const prefixes = ["Webkit", "Moz", "ms"]; 9437const prefixCache = {}; 9438function autoPrefix(style, rawName) { 9439 const cached = prefixCache[rawName]; 9440 if (cached) { 9441 return cached; 9442 } 9443 let name = camelize(rawName); 9444 if (name !== "filter" && name in style) { 9445 return prefixCache[rawName] = name; 9446 } 9447 name = capitalize$1(name); 9448 for (let i = 0; i < prefixes.length; i++) { 9449 const prefixed = prefixes[i] + name; 9450 if (prefixed in style) { 9451 return prefixCache[rawName] = prefixed; 9452 } 9453 } 9454 return rawName; 9455} 9456const xlinkNS = "http://www.w3.org/1999/xlink"; 9457function patchAttr(el, key, value, isSVG, instance, isBoolean2 = isSpecialBooleanAttr(key)) { 9458 if (isSVG && key.startsWith("xlink:")) { 9459 if (value == null) { 9460 el.removeAttributeNS(xlinkNS, key.slice(6, key.length)); 9461 } else { 9462 el.setAttributeNS(xlinkNS, key, value); 9463 } 9464 } else { 9465 if (value == null || isBoolean2 && !includeBooleanAttr(value)) { 9466 el.removeAttribute(key); 9467 } else { 9468 el.setAttribute( 9469 key, 9470 isBoolean2 ? "" : isSymbol$1(value) ? String(value) : value 9471 ); 9472 } 9473 } 9474} 9475function patchDOMProp(el, key, value, parentComponent, attrName) { 9476 if (key === "innerHTML" || key === "textContent") { 9477 if (value != null) { 9478 el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value; 9479 } 9480 return; 9481 } 9482 const tag = el.tagName; 9483 if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally 9484 !tag.includes("-")) { 9485 const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value; 9486 const newValue = value == null ? ( 9487 // #11647: value should be set as empty string for null and undefined, 9488 // but <input type="checkbox"> should be set as 'on'. 9489 el.type === "checkbox" ? "on" : "" 9490 ) : String(value); 9491 if (oldValue !== newValue || !("_value" in el)) { 9492 el.value = newValue; 9493 } 9494 if (value == null) { 9495 el.removeAttribute(key); 9496 } 9497 el._value = value; 9498 return; 9499 } 9500 let needRemove = false;
vendor: 2,661 bytes, lines 9501-9594
9501 if (value === "" || value == null) { 9502 const type = typeof el[key]; 9503 if (type === "boolean") { 9504 value = includeBooleanAttr(value); 9505 } else if (value == null && type === "string") { 9506 value = ""; 9507 needRemove = true; 9508 } else if (type === "number") { 9509 value = 0; 9510 needRemove = true; 9511 } 9512 } 9513 try { 9514 el[key] = value; 9515 } catch (e) { 9516 } 9517 needRemove && el.removeAttribute(attrName || key); 9518} 9519function addEventListener(el, event, handler, options) { 9520 el.addEventListener(event, handler, options); 9521} 9522function removeEventListener(el, event, handler, options) { 9523 el.removeEventListener(event, handler, options); 9524} 9525const veiKey = Symbol("_vei"); 9526function patchEvent(el, rawName, prevValue, nextValue, instance = null) { 9527 const invokers = el[veiKey] || (el[veiKey] = {}); 9528 const existingInvoker = invokers[rawName]; 9529 if (nextValue && existingInvoker) { 9530 existingInvoker.value = nextValue; 9531 } else { 9532 const [name, options] = parseName(rawName); 9533 if (nextValue) { 9534 const invoker = invokers[rawName] = createInvoker( 9535 nextValue, 9536 instance 9537 ); 9538 addEventListener(el, name, invoker, options); 9539 } else if (existingInvoker) { 9540 removeEventListener(el, name, existingInvoker, options); 9541 invokers[rawName] = void 0; 9542 } 9543 } 9544} 9545const optionsModifierRE = /(?:Once|Passive|Capture)$/; 9546function parseName(name) { 9547 let options; 9548 if (optionsModifierRE.test(name)) { 9549 options = {}; 9550 let m; 9551 while (m = name.match(optionsModifierRE)) { 9552 name = name.slice(0, name.length - m[0].length); 9553 options[m[0].toLowerCase()] = true; 9554 } 9555 } 9556 const event = name[2] === ":" ? name.slice(3) : hyphenate(name.slice(2)); 9557 return [event, options]; 9558} 9559let cachedNow = 0; 9560const p = /* @__PURE__ */ Promise.resolve(); 9561const getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now()); 9562function createInvoker(initialValue, instance) { 9563 const invoker = (e) => { 9564 if (!e._vts) { 9565 e._vts = Date.now(); 9566 } else if (e._vts <= invoker.attached) { 9567 return; 9568 } 9569 callWithAsyncErrorHandling( 9570 patchStopImmediatePropagation(e, invoker.value), 9571 instance, 9572 5, 9573 [e] 9574 ); 9575 }; 9576 invoker.value = initialValue; 9577 invoker.attached = getNow(); 9578 return invoker; 9579} 9580function patchStopImmediatePropagation(e, value) { 9581 if (isArray$4(value)) { 9582 const originalStop = e.stopImmediatePropagation; 9583 e.stopImmediatePropagation = () => { 9584 originalStop.call(e); 9585 e._stopped = true; 9586 }; 9587 return value.map( 9588 (fn) => (e2) => !e2._stopped && fn && fn(e2) 9589 ); 9590 } else { 9591 return value; 9592 } 9593} 9594const isNativeOn = (key) =>
9594 key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter 9595key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123; 9596const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => { 9597 const isSVG = namespace === "svg"; 9598 if (key === "class") { 9599 patchClass(el, nextValue, isSVG); 9600 } else if (key === "style") { 9601 patchStyle(el, prevValue, nextValue); 9602 } else if (isOn(key)) { 9603 if (!isModelListener(key)) { 9604 patchEvent(el, key, prevValue, nextValue, parentComponent); 9605 } 9606 } else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) { 9607 patchDOMProp(el, key, nextValue); 9608 if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) { 9609 patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value"); 9610 } 9611 } else if ( 9612 // #11081 force set props for possible async custom element 9613 el._isVueCE && (/[A-Z]/.test(key) || !isString$1(nextValue)) 9614 ) { 9615 patchDOMProp(el, camelize(key), nextValue, parentComponent, key); 9616 } else { 9617 if (key === "true-value") { 9618 el._trueValue = nextValue; 9619 } else if (key === "false-value") { 9620 el._falseValue = nextValue; 9621 } 9622 patchAttr(el, key, nextValue, isSVG); 9623 } 9624}; 9625function shouldSetAsProp(el, key, value, isSVG) { 9626 if (isSVG) { 9627 if (key === "innerHTML" || key === "textContent") { 9628 return true; 9629 } 9630 if (key in el && isNativeOn(key) && isFunction$4(value)) { 9631 return true; 9632 } 9633 return false; 9634 } 9635 if (key === "spellcheck" || key === "draggable" || key === "translate") { 9636 return false; 9637 } 9638 if (key === "form") { 9639 return false; 9640 } 9641 if (key === "list" && el.tagName === "INPUT") { 9642 return false; 9643 } 9644 if (key === "type" && el.tagName === "TEXTAREA") { 9645 return false; 9646 } 9647 if (key === "width" || key === "height") { 9648 const tag = el.tagName; 9649 if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") { 9650 return false; 9651 } 9652 } 9653 if (isNativeOn(key) && isString$1(value)) { 9654 return false; 9655 } 9656 return key in el; 9657} 9658const REMOVAL = {}; 9659/*! #__NO_SIDE_EFFECTS__ */ 9660// @__NO_SIDE_EFFECTS__ 9661function defineCustomElement(options, extraOptions, _createApp) { 9662 const Comp = /* @__PURE__ */ defineComponent(options, extraOptions); 9663 if (isPlainObject$4(Comp)) extend$1(Comp, extraOptions); 9664 class VueCustomElement extends VueElement { 9665 constructor(initialProps) { 9666 super(Comp, initialProps, _createApp); 9667 } 9668 } 9669 VueCustomElement.def = Comp; 9670 return VueCustomElement; 9671} 9672/*! #__NO_SIDE_EFFECTS__ */ 9673const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => { 9674 return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp); 9675}; 9676const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class { 9677}; 9678class VueElement extends BaseClass { 9679 constructor(_def, _props = {}, _createApp = createApp) { 9680 super(); 9681 this._def = _def; 9682 this._props = _props; 9683 this._createApp = _createApp; 9684 this._isVueCE = true; 9685 this._instance = null; 9686 this._app = null; 9687 this._nonce = this._def.nonce; 9688 this._connected = false; 9689 this._resolved = false; 9690 this._numberProps = null; 9691 this._styleChildren = /* @__PURE__ */ new WeakSet(); 9692 this._ob = null; 9693 if (this.shadowRoot && _createApp !== createApp) { 9694 this._root = this.shadowRoot; 9695 } else { 9696 if (_def.shadowRoot !== false) { 9697 this.attachShadow({ mode: "open" }); 9698 this._root = this.shadowRoot; 9699 } else { 9700 this._root = this; 9701 } 9702 } 9703 if (!this._def.__asyncLoader) { 9704 this._resolveProps(this._def); 9705 } 9706 } 9707 connectedCallback() { 9708 if (!this.isConnected) return; 9709 if (!this.shadowRoot) { 9710 this._parseSlots(); 9711 } 9712 this._connected = true; 9713 let parent = this; 9714 while (parent = parent && (parent.parentNode || parent.host)) { 9715 if (parent instanceof VueElement) { 9716 this._parent = parent; 9717 break; 9718 } 9719 } 9720 if (!this._instance) { 9721 if (this._resolved) { 9722 this._setParent(); 9723 this._update(); 9724 } else { 9725 if (parent && parent._pendingResolve) { 9726 this._pendingResolve = parent._pendingResolve.then(() => { 9727 this._pendingResolve = void 0; 9728 this._resolveDef(); 9729 }); 9730 } else { 9731 this._resolveDef(); 9732 } 9733 } 9734 } 9735 } 9736 _setParent(parent = this._parent) { 9737 if (parent) { 9738 this._instance.parent = parent._instance; 9739 this._instance.provides = parent._instance.provides; 9740 } 9741 } 9742 disconnectedCallback() { 9743 this._connected = false;
9744 nextTick(() => { 9745 if (!this._connected) { 9746 if (this._ob) { 9747 this._ob.disconnect(); 9748 this._ob = null; 9749 } 9750 this._app && this._app.unmount(); 9751 if (this._instance) this._instance.ce = void 0; 9752 this._app = this._instance = null; 9753 } 9754 }); 9755 } 9756 /** 9757 * resolve inner component definition (handle possible async component) 9758 */ 9759 _resolveDef() { 9760 if (this._pendingResolve) { 9761 return; 9762 } 9763 for (let i = 0; i < this.attributes.length; i++) { 9764 this._setAttr(this.attributes[i].name); 9765 } 9766 this._ob = new MutationObserver((mutations) => { 9767 for (const m of mutations) { 9768 this._setAttr(m.attributeName); 9769 } 9770 }); 9771 this._ob.observe(this, { attributes: true }); 9772 const resolve2 = (def2, isAsync = false) => { 9773 this._resolved = true; 9774 this._pendingResolve = void 0; 9775 const { props, styles } = def2; 9776 let numberProps; 9777 if (props && !isArray$4(props)) { 9778 for (const key in props) { 9779 const opt = props[key]; 9780 if (opt === Number || opt && opt.type === Number) { 9781 if (key in this._props) { 9782 this._props[key] = toNumber$2(this._props[key]); 9783 } 9784 (numberProps || (numberProps = /* @__PURE__ */ Object.create(null)))[camelize(key)] = true; 9785 } 9786 } 9787 } 9788 this._numberProps = numberProps; 9789 if (isAsync) { 9790 this._resolveProps(def2); 9791 } 9792 if (this.shadowRoot) { 9793 this._applyStyles(styles); 9794 } 9795 this._mount(def2); 9796 }; 9797 const asyncDef = this._def.__asyncLoader; 9798 if (asyncDef) { 9799 this._pendingResolve = asyncDef().then( 9800 (def2) => resolve2(this._def = def2, true) 9801 ); 9802 } else { 9803 resolve2(this._def); 9804 } 9805 } 9806 _mount(def2) { 9807 this._app = this._createApp(def2); 9808 if (def2.configureApp) { 9809 def2.configureApp(this._app); 9810 } 9811 this._app._ceVNode = this._createVNode(); 9812 this._app.mount(this._root); 9813 const exposed = this._instance && this._instance.exposed; 9814 if (!exposed) return; 9815 for (const key in exposed) { 9816 if (!hasOwn(this, key)) { 9817 Object.defineProperty(this, key, { 9818 // unwrap ref to be consistent with public instance behavior 9819 get: () => unref(exposed[key]) 9820 }); 9821 } 9822 } 9823 } 9824 _resolveProps(def2) { 9825 const { props } = def2; 9826 const declaredPropKeys = isArray$4(props) ? props : Object.keys(props || {}); 9827 for (const key of Object.keys(this)) { 9828 if (key[0] !== "_" && declaredPropKeys.includes(key)) { 9829 this._setProp(key, this[key]); 9830 } 9831 } 9832 for (const key of declaredPropKeys.map(camelize)) { 9833 Object.defineProperty(this, key, { 9834 get() { 9835 return this._getProp(key); 9836 }, 9837 set(val) { 9838 this._setProp(key, val, true, true); 9839 } 9840 }); 9841 } 9842 } 9843 _setAttr(key) { 9844 if (key.startsWith("data-v-")) return; 9845 const has = this.hasAttribute(key); 9846 let value = has ? this.getAttribute(key) : REMOVAL; 9847 const camelKey = camelize(key); 9848 if (has && this._numberProps && this._numberProps[camelKey]) { 9849 value = toNumber$2(value); 9850 } 9851 this._setProp(camelKey, value, false, true); 9852 } 9853 /** 9854 * @internal 9855 */ 9856 _getProp(key) { 9857 return this._props[key]; 9858 } 9859 /** 9860 * @internal 9861 */ 9862 _setProp(key, val, shouldReflect = true, shouldUpdate = false) { 9863 if (val !== this._props[key]) { 9864 if (val === REMOVAL) { 9865 delete this._props[key]; 9866 } else { 9867 this._props[key] = val; 9868 if (key === "key" && this._app) { 9869 this._app._ceVNode.key = val; 9870 } 9871 } 9872 if (shouldUpdate && this._instance) { 9873 this._update(); 9874 } 9875 if (shouldReflect) { 9876 const ob = this._ob; 9877 ob && ob.disconnect(); 9878 if (val === true) { 9879 this.setAttribute(hyphenate(key), ""); 9880 } else if (typeof val === "string" || typeof val === "number") { 9881 this.setAttribute(hyphenate(key), val + ""); 9882 } else if (!val) { 9883 this.removeAttribute(hyphenate(key)); 9884 } 9885 ob && ob.observe(this, { attributes: true }); 9886 } 9887 } 9888 } 9889 _update() { 9890 render(this._createVNode(), this._root); 9891 } 9892 _createVNode() { 9893 const baseProps = {}; 9894 if (!this.shadowRoot) { 9895 baseProps.onVnodeMounted = baseProps.onVnodeUpdated = this._renderSlots.bind(this); 9896 } 9897 const vnode = createVNode(this._def, extend$1(baseProps, this._props)); 9898 if (!this._instance) { 9899 vnode.ce = (instance) => { 9900 this._instance = instance; 9901 instance.ce = this; 9902 instance.isCE = true; 9903 const dispatch2 = (event, args) => { 9904 this.dispatchEvent( 9905 new CustomEvent( 9906 event, 9907 isPlainObject$4(args[0]) ? extend$1({ detail: args }, args[0]) : { detail: args } 9908 ) 9909 ); 9910 }; 9911 instance.emit = (event, ...args) => { 9912 dispatch2(event, args); 9913 if (hyphenate(event) !== event) { 9914 dispatch2(hyphenate(event), args); 9915 } 9916 }; 9917 this._setParent(); 9918 }; 9919 } 9920 return vnode; 9921 } 9922 _applyStyles(styles, owner) { 9923 if (!styles) return; 9924 if (owner) { 9925 if (owner === this._def || this._styleChildren.has(owner)) { 9926 return; 9927 } 9928 this._styleChildren.add(owner); 9929 } 9930 const nonce = this._nonce; 9931 for (let i = styles.length - 1; i >= 0; i--) { 9932 const s = document.createElement("style"); 9933 if (nonce) s.setAttribute("nonce", nonce); 9934 s.textContent = styles[i];
9935 this.shadowRoot.prepend(s); 9936 } 9937 } 9938 /** 9939 * Only called when shadowRoot is false 9940 */ 9941 _parseSlots() { 9942 const slots = this._slots = {}; 9943 let n; 9944 while (n = this.firstChild) { 9945 const slotName = n.nodeType === 1 && n.getAttribute("slot") || "default"; 9946 (slots[slotName] || (slots[slotName] = [])).push(n); 9947 this.removeChild(n); 9948 } 9949 } 9950 /** 9951 * Only called when shadowRoot is false 9952 */ 9953 _renderSlots() { 9954 const outlets = (this._teleportTarget || this).querySelectorAll("slot"); 9955 const scopeId = this._instance.type.__scopeId; 9956 for (let i = 0; i < outlets.length; i++) { 9957 const o = outlets[i]; 9958 const slotName = o.getAttribute("name") || "default"; 9959 const content = this._slots[slotName]; 9960 const parent = o.parentNode; 9961 if (content) { 9962 for (const n of content) { 9963 if (scopeId && n.nodeType === 1) { 9964 const id = scopeId + "-s"; 9965 const walker = document.createTreeWalker(n, 1); 9966 n.setAttribute(id, ""); 9967 let child; 9968 while (child = walker.nextNode()) { 9969 child.setAttribute(id, ""); 9970 } 9971 } 9972 parent.insertBefore(n, o); 9973 } 9974 } else { 9975 while (o.firstChild) parent.insertBefore(o.firstChild, o); 9976 } 9977 parent.removeChild(o); 9978 } 9979 } 9980 /** 9981 * @internal 9982 */ 9983 _injectChildStyle(comp) { 9984 this._applyStyles(comp.styles, comp); 9985 } 9986 /** 9987 * @internal 9988 */ 9989 _removeChildStyle(comp) { 9990 } 9991} 9992function useHost(caller) { 9993 const instance = getCurrentInstance(); 9994 const el = instance && instance.ce; 9995 if (el) { 9996 return el; 9997 } 9998 return null; 9999} 10000function useShadowRoot() { 10001 const el = useHost(); 10002 return el && el.shadowRoot; 10003} 10004function useCssModule(name = "$style") { 10005 { 10006 const instance = getCurrentInstance(); 10007 if (!instance) { 10008 return EMPTY_OBJ; 10009 } 10010 const modules = instance.type.__cssModules; 10011 if (!modules) { 10012 return EMPTY_OBJ; 10013 } 10014 const mod = modules[name]; 10015 if (!mod) { 10016 return EMPTY_OBJ; 10017 } 10018 return mod; 10019 } 10020} 10021const positionMap = /* @__PURE__ */ new WeakMap(); 10022const newPositionMap = /* @__PURE__ */ new WeakMap(); 10023const moveCbKey = Symbol("_moveCb"); 10024const enterCbKey = Symbol("_enterCb"); 10025const decorate = (t) => { 10026 delete t.props.mode; 10027 return t; 10028}; 10029const TransitionGroupImpl = /* @__PURE__ */ decorate({ 10030 name: "TransitionGroup", 10031 props: /* @__PURE__ */ extend$1({}, TransitionPropsValidators, { 10032 tag: String, 10033 moveClass: String 10034 }), 10035 setup(props, { slots }) { 10036 const instance = getCurrentInstance(); 10037 const state = useTransitionState(); 10038 let prevChildren; 10039 let children; 10040 onUpdated(() => { 10041 if (!prevChildren.length) { 10042 return; 10043 } 10044 const moveClass = props.moveClass || `${props.name || "v"}-move`; 10045 if (!hasCSSTransform( 10046 prevChildren[0].el, 10047 instance.vnode.el, 10048 moveClass 10049 )) { 10050 return; 10051 } 10052 prevChildren.forEach(callPendingCbs); 10053 prevChildren.forEach(recordPosition); 10054 const movedChildren = prevChildren.filter(applyTranslation); 10055 forceReflow(); 10056 movedChildren.forEach((c2) => { 10057 const el = c2.el; 10058 const style = el.style; 10059 addTransitionClass(el, moveClass); 10060 style.transform = style.webkitTransform = style.transitionDuration = ""; 10061 const cb = el[moveCbKey] = (e) => { 10062 if (e && e.target !== el) { 10063 return; 10064 } 10065 if (!e || /transform$/.test(e.propertyName)) { 10066 el.removeEventListener("transitionend", cb); 10067 el[moveCbKey] = null; 10068 removeTransitionClass(el, moveClass); 10069 } 10070 }; 10071 el.addEventListener("transitionend", cb); 10072 }); 10073 }); 10074 return () => { 10075 const rawProps = toRaw(props); 10076 const cssTransitionProps = resolveTransitionProps(rawProps); 10077 let tag = rawProps.tag || Fragment; 10078 prevChildren = []; 10079 if (children) { 10080 for (let i = 0; i < children.length; i++) { 10081 const child = children[i]; 10082 if (child.el && child.el instanceof Element) { 10083 prevChildren.push(child); 10084 setTransitionHooks( 10085 child, 10086 resolveTransitionHooks( 10087 child, 10088 cssTransitionProps, 10089 state, 10090 instance 10091 ) 10092 ); 10093 positionMap.set( 10094 child, 10095 child.el.getBoundingClientRect() 10096 ); 10097 } 10098 } 10099 } 10100 children = slots.default ? getTransitionRawChildren(slots.default()) : []; 10101 for (let i = 0; i < children.length; i++) { 10102 const child = children[i]; 10103 if (child.key != null) { 10104 setTransitionHooks( 10105 child, 10106 resolveTransitionHooks(child, cssTransitionProps, state, instance) 10107 ); 10108 } 10109 } 10110 return createVNode(tag, null, children); 10111 }; 10112 } 10113}); 10114const TransitionGroup = TransitionGroupImpl; 10115function callPendingCbs(c2) { 10116 const el = c2.el; 10117 if (el[moveCbKey]) { 10118 el[moveCbKey](); 10119 } 10120 if (el[enterCbKey]) { 10121 el[enterCbKey](); 10122 } 10123} 10124function recordPosition(c2) { 10125 newPositionMap.set(c2, c2.el.getBoundingClientRect()); 10126} 10127function applyTranslation(c2) { 10128 const oldPos = positionMap.get(c2); 10129 const newPos = newPositionMap.get(c2); 10130 const dx = oldPos.left - newPos.left; 10131 const dy = oldPos.top - newPos.top; 10132 if (dx || dy) { 10133 const s = c2.el.style; 10134 s.transform = s.webkitTransform = `translate(${dx}px,${dy}px)`; 10135 s.transitionDuration = "0s"; 10136 return c2; 10137 } 10138} 10139function hasCSSTransform(el, root2, moveClass) { 10140 const clone = el.cloneNode(); 10141 const _vtc = el[vtcKey]; 10142 if (_vtc) {
10143 _vtc.forEach((cls) => { 10144 cls.split(/\s+/).forEach((c2) => c2 && clone.classList.remove(c2)); 10145 }); 10146 } 10147 moveClass.split(/\s+/).forEach((c2) => c2 && clone.classList.add(c2)); 10148 clone.style.display = "none"; 10149 const container = root2.nodeType === 1 ? root2 : root2.parentNode; 10150 container.appendChild(clone); 10151 const { hasTransform } = getTransitionInfo(clone); 10152 container.removeChild(clone); 10153 return hasTransform; 10154} 10155const getModelAssigner = (vnode) => { 10156 const fn = vnode.props["onUpdate:modelValue"] || false; 10157 return isArray$4(fn) ? (value) => invokeArrayFns(fn, value) : fn; 10158}; 10159function onCompositionStart(e) { 10160 e.target.composing = true; 10161} 10162function onCompositionEnd(e) { 10163 const target = e.target; 10164 if (target.composing) { 10165 target.composing = false; 10166 target.dispatchEvent(new Event("input")); 10167 } 10168} 10169const assignKey = Symbol("_assign"); 10170const vModelText = { 10171 created(el, { modifiers: { lazy, trim: trim2, number } }, vnode) { 10172 el[assignKey] = getModelAssigner(vnode); 10173 const castToNumber = number || vnode.props && vnode.props.type === "number"; 10174 addEventListener(el, lazy ? "change" : "input", (e) => { 10175 if (e.target.composing) return; 10176 let domValue = el.value; 10177 if (trim2) { 10178 domValue = domValue.trim(); 10179 } 10180 if (castToNumber) { 10181 domValue = looseToNumber(domValue); 10182 } 10183 el[assignKey](domValue); 10184 }); 10185 if (trim2) { 10186 addEventListener(el, "change", () => { 10187 el.value = el.value.trim(); 10188 }); 10189 } 10190 if (!lazy) { 10191 addEventListener(el, "compositionstart", onCompositionStart); 10192 addEventListener(el, "compositionend", onCompositionEnd); 10193 addEventListener(el, "change", onCompositionEnd); 10194 } 10195 }, 10196 // set value on mounted so it's after min/max for type="range" 10197 mounted(el, { value }) { 10198 el.value = value == null ? "" : value; 10199 }, 10200 beforeUpdate(el, { value, oldValue, modifiers: { lazy, trim: trim2, number } }, vnode) { 10201 el[assignKey] = getModelAssigner(vnode); 10202 if (el.composing) return; 10203 const elValue = (number || el.type === "number") && !/^0\d/.test(el.value) ? looseToNumber(el.value) : el.value; 10204 const newValue = value == null ? "" : value; 10205 if (elValue === newValue) { 10206 return; 10207 } 10208 if (document.activeElement === el && el.type !== "range") { 10209 if (lazy && value === oldValue) { 10210 return; 10211 } 10212 if (trim2 && el.value.trim() === newValue) { 10213 return; 10214 } 10215 } 10216 el.value = newValue; 10217 } 10218}; 10219const vModelCheckbox = { 10220 // #4096 array checkboxes need to be deep traversed 10221 deep: true, 10222 created(el, _, vnode) { 10223 el[assignKey] = getModelAssigner(vnode); 10224 addEventListener(el, "change", () => { 10225 const modelValue = el._modelValue; 10226 const elementValue = getValue$1(el); 10227 const checked = el.checked; 10228 const assign2 = el[assignKey]; 10229 if (isArray$4(modelValue)) { 10230 const index2 = looseIndexOf(modelValue, elementValue); 10231 const found = index2 !== -1; 10232 if (checked && !found) { 10233 assign2(modelValue.concat(elementValue)); 10234 } else if (!checked && found) { 10235 const filtered = [...modelValue]; 10236 filtered.splice(index2, 1); 10237 assign2(filtered); 10238 } 10239 } else if (isSet$1(modelValue)) { 10240 const cloned = new Set(modelValue); 10241 if (checked) { 10242 cloned.add(elementValue); 10243 } else { 10244 cloned.delete(elementValue); 10245 } 10246 assign2(cloned); 10247 } else { 10248 assign2(getCheckboxValue(el, checked)); 10249 } 10250 }); 10251 }, 10252 // set initial checked on mount to wait for true-value/false-value 10253 mounted: setChecked, 10254 beforeUpdate(el, binding, vnode) { 10255 el[assignKey] = getModelAssigner(vnode); 10256 setChecked(el, binding, vnode); 10257 } 10258}; 10259function setChecked(el, { value, oldValue }, vnode) { 10260 el._modelValue = value; 10261 let checked; 10262 if (isArray$4(value)) { 10263 checked = looseIndexOf(value, vnode.props.value) > -1; 10264 } else if (isSet$1(value)) { 10265 checked = value.has(vnode.props.value); 10266 } else { 10267 if (value === oldValue) return; 10268 checked = looseEqual(value, getCheckboxValue(el, true)); 10269 } 10270 if (el.checked !== checked) { 10271 el.checked = checked; 10272 } 10273} 10274const vModelRadio = { 10275 created(el, { value }, vnode) { 10276 el.checked = looseEqual(value, vnode.props.value); 10277 el[assignKey] = getModelAssigner(vnode); 10278 addEventListener(el, "change", () => { 10279 el[assignKey](getValue$1(el)); 10280 }); 10281 }, 10282 beforeUpdate(el, { value, oldValue }, vnode) { 10283 el[assignKey] = getModelAssigner(vnode); 10284 if (value !== oldValue) { 10285 el.checked = looseEqual(value, vnode.props.value); 10286 } 10287 } 10288}; 10289const vModelSelect = { 10290 // <select multiple> value need to be deep traversed 10291 deep: true, 10292 created(el, { value, modifiers: { number } }, vnode) { 10293 const isSetModel = isSet$1(value); 10294 addEventListener(el, "change", () => { 10295 const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map( 10296 (o) =>
10296 number ? looseToNumber(getValue$1(o)) : getValue$1(o) 10297 ); 10298 el[assignKey]( 10299 el.multiple ? isSetModel ? new Set(selectedVal) : selectedVal : selectedVal[0] 10300 ); 10301 el._assigning = true; 10302 nextTick(() => { 10303 el._assigning = false; 10304 }); 10305 }); 10306 el[assignKey] = getModelAssigner(vnode); 10307 }, 10308 // set value in mounted & updated because <select> relies on its children 10309 // <option>s. 10310 mounted(el, { value }) { 10311 setSelected(el, value); 10312 }, 10313 beforeUpdate(el, _binding, vnode) { 10314 el[assignKey] = getModelAssigner(vnode); 10315 }, 10316 updated(el, { value }) { 10317 if (!el._assigning) { 10318 setSelected(el, value); 10319 } 10320 } 10321}; 10322function setSelected(el, value) { 10323 const isMultiple = el.multiple; 10324 const isArrayValue = isArray$4(value); 10325 if (isMultiple && !isArrayValue && !isSet$1(value)) { 10326 return; 10327 } 10328 for (let i = 0, l3 = el.options.length; i < l3; i++) { 10329 const option = el.options[i]; 10330 const optionValue = getValue$1(option); 10331 if (isMultiple) { 10332 if (isArrayValue) { 10333 const optionType = typeof optionValue; 10334 if (optionType === "string" || optionType === "number") { 10335 option.selected = value.some((v2) => String(v2) === String(optionValue)); 10336 } else { 10337 option.selected = looseIndexOf(value, optionValue) > -1; 10338 } 10339 } else { 10340 option.selected = value.has(optionValue); 10341 } 10342 } else if (looseEqual(getValue$1(option), value)) { 10343 if (el.selectedIndex !== i) el.selectedIndex = i; 10344 return; 10345 } 10346 } 10347 if (!isMultiple && el.selectedIndex !== -1) { 10348 el.selectedIndex = -1; 10349 } 10350} 10351function getValue$1(el) { 10352 return "_value" in el ? el._value : el.value; 10353} 10354function getCheckboxValue(el, checked) { 10355 const key = checked ? "_trueValue" : "_falseValue"; 10356 return key in el ? el[key] : checked; 10357} 10358const vModelDynamic = { 10359 created(el, binding, vnode) { 10360 callModelHook(el, binding, vnode, null, "created"); 10361 }, 10362 mounted(el, binding, vnode) { 10363 callModelHook(el, binding, vnode, null, "mounted"); 10364 }, 10365 beforeUpdate(el, binding, vnode, prevVNode) { 10366 callModelHook(el, binding, vnode, prevVNode, "beforeUpdate"); 10367 }, 10368 updated(el, binding, vnode, prevVNode) { 10369 callModelHook(el, binding, vnode, prevVNode, "updated"); 10370 } 10371}; 10372function resolveDynamicModel(tagName, type) { 10373 switch (tagName) { 10374 case "SELECT": 10375 return vModelSelect; 10376 case "TEXTAREA": 10377 return vModelText; 10378 default: 10379 switch (type) { 10380 case "checkbox": 10381 return vModelCheckbox; 10382 case "radio": 10383 return vModelRadio; 10384 default: 10385 return vModelText; 10386 } 10387 } 10388} 10389function callModelHook(el, binding, vnode, prevVNode, hook) { 10390 const modelToUse = resolveDynamicModel( 10391 el.tagName, 10392 vnode.props && vnode.props.type 10393 ); 10394 const fn = modelToUse[hook]; 10395 fn && fn(el, binding, vnode, prevVNode); 10396} 10397function initVModelForSSR() { 10398 vModelText.getSSRProps = ({ value }) => ({ value }); 10399 vModelRadio.getSSRProps = ({ value }, vnode) => { 10400 if (vnode.props && looseEqual(vnode.props.value, value)) { 10401 return { checked: true }; 10402 } 10403 }; 10404 vModelCheckbox.getSSRProps = ({ value }, vnode) => { 10405 if (isArray$4(value)) { 10406 if (vnode.props && looseIndexOf(value, vnode.props.value) > -1) { 10407 return { checked: true }; 10408 } 10409 } else if (isSet$1(value)) { 10410 if (vnode.props && value.has(vnode.props.value)) { 10411 return { checked: true }; 10412 } 10413 } else if (value) { 10414 return { checked: true }; 10415 } 10416 }; 10417 vModelDynamic.getSSRProps = (binding, vnode) => { 10418 if (typeof vnode.type !== "string") { 10419 return; 10420 } 10421 const modelToUse = resolveDynamicModel( 10422 // resolveDynamicModel expects an uppercase tag name, but vnode.type is lowercase 10423 vnode.type.toUpperCase(), 10424 vnode.props && vnode.props.type 10425 ); 10426 if (modelToUse.getSSRProps) { 10427 return modelToUse.getSSRProps(binding, vnode); 10428 } 10429 }; 10430} 10431const systemModifiers = ["ctrl", "shift", "alt", "meta"]; 10432const modifierGuards = { 10433 stop: (e) => e.stopPropagation(), 10434 prevent: (e) => e.preventDefault(), 10435 self: (e) => e.target !== e.currentTarget, 10436 ctrl: (e) => !e.ctrlKey, 10437 shift: (e) => !e.shiftKey, 10438 alt: (e) => !e.altKey, 10439 meta: (e) => !e.metaKey, 10440 left: (e) => "button" in e && e.button !== 0, 10441 middle: (e) => "button" in e && e.button !== 1, 10442 right: (e) => "button" in e && e.button !== 2, 10443 exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m)) 10444}; 10445const withModifiers = (fn, modifiers) => { 10446 const cache = fn._withMods || (fn._withMods = {}); 10447 const cacheKey = modifiers.join("."); 10448 return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => { 10449 for (let i = 0; i < modifiers.length; i++) { 10450 const guard = modifierGuards[modifiers[i]]; 10451 if (guard && guard(event, modifiers)) return; 10452 } 10453 return fn(event, ...args); 10454 }); 10455}; 10456const keyNames = { 10457 esc: "escape", 10458 space: " ", 10459 up: "arrow-up", 10460 left: "arrow-left", 10461 right: "arrow-right", 10462 down: "arrow-down", 10463 delete: "backspace" 10464}; 10465const withKeys = (fn, modifiers) => { 10466 const cache = fn._withKeys || (fn._withKeys = {}); 10467 const cacheKey = modifiers.join("."); 10468 return cache[cacheKey] || (cache[cacheKey] = (event) => { 10469 if (!("key" in event)) { 10470 return; 10471 } 10472 const eventKey = hyphenate(event.key); 10473 if (modifiers.some( 10474 (k3) =>
10474 k3 === eventKey || keyNames[k3] === eventKey 10475 )) { 10476 return fn(event); 10477 } 10478 }); 10479}; 10480const rendererOptions = /* @__PURE__ */ extend$1({ patchProp }, nodeOps); 10481let renderer; 10482let enabledHydration = false; 10483function ensureRenderer() { 10484 return renderer || (renderer = createRenderer(rendererOptions)); 10485} 10486function ensureHydrationRenderer() { 10487 renderer = enabledHydration ? renderer : createHydrationRenderer(rendererOptions); 10488 enabledHydration = true; 10489 return renderer; 10490} 10491const render = (...args) => { 10492 ensureRenderer().render(...args); 10493}; 10494const hydrate = (...args) => { 10495 ensureHydrationRenderer().hydrate(...args); 10496}; 10497const createApp = (...args) => { 10498 const app = ensureRenderer().createApp(...args); 10499 const { mount } = app; 10500 app.mount = (containerOrSelector) => { 10501 const container = normalizeContainer(containerOrSelector); 10502 if (!container) return; 10503 const component = app._component; 10504 if (!isFunction$4(component) && !component.render && !component.template) { 10505 component.template = container.innerHTML; 10506 } 10507 if (container.nodeType === 1) { 10508 container.textContent = ""; 10509 } 10510 const proxy = mount(container, false, resolveRootNamespace(container)); 10511 if (container instanceof Element) { 10512 container.removeAttribute("v-cloak"); 10513 container.setAttribute("data-v-app", ""); 10514 } 10515 return proxy; 10516 }; 10517 return app; 10518}; 10519const createSSRApp = (...args) => { 10520 const app = ensureHydrationRenderer().createApp(...args); 10521 const { mount } = app; 10522 app.mount = (containerOrSelector) => { 10523 const container = normalizeContainer(containerOrSelector); 10524 if (container) { 10525 return mount(container, true, resolveRootNamespace(container)); 10526 } 10527 }; 10528 return app; 10529}; 10530function resolveRootNamespace(container) { 10531 if (container instanceof SVGElement) { 10532 return "svg"; 10533 } 10534 if (typeof MathMLElement === "function" && container instanceof MathMLElement) { 10535 return "mathml"; 10536 } 10537} 10538function normalizeContainer(container) { 10539 if (isString$1(container)) { 10540 const res = document.querySelector(container); 10541 return res; 10542 } 10543 return container; 10544} 10545let ssrDirectiveInitialized = false; 10546const initDirectivesForSSR = () => { 10547 if (!ssrDirectiveInitialized) { 10548 ssrDirectiveInitialized = true; 10549 initVModelForSSR(); 10550 initVShowForSSR(); 10551 } 10552}; 10553const runtimeDom_esmBundler = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 10554 __proto__: null, 10555 BaseTransition, 10556 BaseTransitionPropsValidators, 10557 Comment, 10558 DeprecationTypes, 10559 EffectScope, 10560 ErrorCodes, 10561 ErrorTypeStrings, 10562 Fragment, 10563 KeepAlive, 10564 ReactiveEffect, 10565 Static, 10566 Suspense, 10567 Teleport, 10568 Text, 10569 TrackOpTypes, 10570 Transition, 10571 TransitionGroup, 10572 TriggerOpTypes, 10573 VueElement, 10574 assertNumber, 10575 callWithAsyncErrorHandling, 10576 callWithErrorHandling, 10577 camelize, 10578 capitalize: capitalize$1, 10579 cloneVNode, 10580 compatUtils, 10581 computed, 10582 createApp, 10583 createBlock, 10584 createCommentVNode, 10585 createElementBlock, 10586 createElementVNode: createBaseVNode, 10587 createHydrationRenderer, 10588 createPropsRestProxy, 10589 createRenderer, 10590 createSSRApp, 10591 createSlots, 10592 createStaticVNode, 10593 createTextVNode, 10594 createVNode, 10595 customRef, 10596 defineAsyncComponent, 10597 defineComponent, 10598 defineCustomElement, 10599 defineEmits, 10600 defineExpose, 10601 defineModel, 10602 defineOptions, 10603 defineProps, 10604 defineSSRCustomElement, 10605 defineSlots, 10606 devtools, 10607 effect, 10608 effectScope, 10609 getCurrentInstance, 10610 getCurrentScope, 10611 getCurrentWatcher, 10612 getTransitionRawChildren, 10613 guardReactiveProps, 10614 h, 10615 handleError, 10616 hasInjectionContext, 10617 hydrate, 10618 hydrateOnIdle, 10619 hydrateOnInteraction, 10620 hydrateOnMediaQuery, 10621 hydrateOnVisible, 10622 initCustomFormatter, 10623 initDirectivesForSSR, 10624 inject, 10625 isMemoSame, 10626 isProxy, 10627 isReactive, 10628 isReadonly, 10629 isRef, 10630 isRuntimeOnly, 10631 isShallow, 10632 isVNode, 10633 markRaw, 10634 mergeDefaults, 10635 mergeModels, 10636 mergeProps, 10637 nextTick, 10638 normalizeClass, 10639 normalizeProps: normalizeProps$1, 10640 normalizeStyle, 10641 onActivated, 10642 onBeforeMount, 10643 onBeforeUnmount, 10644 onBeforeUpdate, 10645 onDeactivated, 10646 onErrorCaptured, 10647 onMounted, 10648 onRenderTracked, 10649 onRenderTriggered, 10650 onScopeDispose, 10651 onServerPrefetch, 10652 onUnmounted, 10653 onUpdated, 10654 onWatcherCleanup, 10655 openBlock, 10656 popScopeId, 10657 provide, 10658 proxyRefs, 10659 pushScopeId, 10660 queuePostFlushCb, 10661 reactive, 10662 readonly, 10663 ref, 10664 registerRuntimeCompiler, 10665 render, 10666 renderList, 10667 renderSlot, 10668 resolveComponent, 10669 resolveDirective, 10670 resolveDynamicComponent, 10671 resolveFilter, 10672 resolveTransitionHooks, 10673 setBlockTracking, 10674 setDevtoolsHook, 10675 setTransitionHooks, 10676 shallowReactive, 10677 shallowReadonly, 10678 shallowRef, 10679 ssrContextKey, 10680 ssrUtils, 10681 stop, 10682 toDisplayString, 10683 toHandlerKey, 10684 toHandlers, 10685 toRaw, 10686 toRef, 10687 toRefs, 10688 toValue, 10689 transformVNodeArgs, 10690 triggerRef, 10691 unref, 10692 useAttrs, 10693 useCssModule, 10694 useCssVars, 10695 useHost, 10696 useId, 10697 useModel, 10698 useSSRContext, 10699 useShadowRoot, 10700 useSlots, 10701 useTemplateRef, 10702 useTransitionState, 10703 vModelCheckbox, 10704 vModelDynamic, 10705 vModelRadio, 10706 vModelSelect, 10707 vModelText, 10708 vShow, 10709 version, 10710 warn, 10711 watch, 10712 watchEffect, 10713 watchPostEffect, 10714 watchSyncEffect, 10715 withAsyncContext, 10716 withCtx, 10717 withDefaults, 10718 withDirectives, 10719 withKeys, 10720 withMemo, 10721 withModifiers, 10722 withScopeId 10723}, Symbol.toStringTag, { value: "Module" })); 10724const HASH_RE$2 = /#/g; 10725const AMPERSAND_RE$2 = /&/g; 10726const SLASH_RE$2 = /\//g; 10727const EQUAL_RE$2 = /=/g; 10728const PLUS_RE$2 = /\+/g; 10729const ENC_CARET_RE$2 = /%5e/gi; 10730const ENC_BACKTICK_RE$2 = /%60/gi; 10731const ENC_PIPE_RE$2 = /%7c/gi; 10732const ENC_SPACE_RE$2 = /%20/gi; 10733function encode$3(text) { 10734 return encodeURI("" + text).replace(ENC_PIPE_RE$2, "|"); 10735} 10736function encodeQueryValue$2(input) { 10737 return encode$3(typeof input === "string" ? input : JSON.stringify(input)).replace(PLUS_RE$2, "%2B").replace(ENC_SPACE_RE$2, "+").replace(HASH_RE$2, "%23").replace(AMPERSAND_RE$2, "%26").replace(ENC_BACKTICK_RE$2, "`").replace(ENC_CARET_RE$2, "^").replace(SLASH_RE$2, "%2F"); 10738} 10739function encodeQueryKey$2(text) { 10740 return encodeQueryValue$2(text).replace(EQUAL_RE$2, "%3D"); 10741} 10742function decode$2(text = "") { 10743 try { 10744 return decodeURIComponent("" + text); 10745 } catch { 10746 return "" + text; 10747 } 10748} 10749function decodeQueryKey$1(text) { 10750 return decode$2(text.replace(PLUS_RE$2, " ")); 10751} 10752function decodeQueryValue$1(text) { 10753 return decode$2(text.replace(PLUS_RE$2, " ")); 10754} 10755function parseQuery$2(parametersString = "") { 10756 const object = {}; 10757 if (parametersString[0] === "?") { 10758 parametersString = parametersString.slice(1); 10759 } 10760 for (const parameter of parametersString.split("&")) { 10761 const s = parameter.match(/([^=]+)=?(.*)/) || []; 10762 if (s.length < 2) { 10763 continue; 10764 }
10765 const key = decodeQueryKey$1(s[1]); 10766 if (key === "__proto__" || key === "constructor") { 10767 continue; 10768 } 10769 const value = decodeQueryValue$1(s[2] || ""); 10770 if (object[key] === void 0) { 10771 object[key] = value; 10772 } else if (Array.isArray(object[key])) { 10773 object[key].push(value); 10774 } else { 10775 object[key] = [object[key], value]; 10776 } 10777 } 10778 return object; 10779} 10780function encodeQueryItem$1(key, value) { 10781 if (typeof value === "number" || typeof value === "boolean") { 10782 value = String(value); 10783 } 10784 if (!value) { 10785 return encodeQueryKey$2(key); 10786 } 10787 if (Array.isArray(value)) { 10788 return value.map((_value) => `${encodeQueryKey$2(key)}=${encodeQueryValue$2(_value)}`).join("&"); 10789 } 10790 return `${encodeQueryKey$2(key)}=${encodeQueryValue$2(value)}`; 10791} 10792function stringifyQuery$2(query) { 10793 return Object.keys(query).filter((k3) => query[k3] !== void 0).map((k3) => encodeQueryItem$1(k3, query[k3])).filter(Boolean).join("&"); 10794} 10795const PROTOCOL_STRICT_REGEX$1 = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/; 10796const PROTOCOL_REGEX$1 = /^[\s\w\0+.-]{2,}:([/\\]{2})?/; 10797const PROTOCOL_RELATIVE_REGEX$1 = /^([/\\]\s*){2,}[^/\\]/; 10798const JOIN_LEADING_SLASH_RE$1 = /^\.?\//; 10799function hasProtocol$1(inputString, opts = {}) { 10800 if (typeof opts === "boolean") { 10801 opts = { acceptRelative: opts }; 10802 } 10803 if (opts.strict) { 10804 return PROTOCOL_STRICT_REGEX$1.test(inputString); 10805 } 10806 return PROTOCOL_REGEX$1.test(inputString) || (opts.acceptRelative ? PROTOCOL_RELATIVE_REGEX$1.test(inputString) : false); 10807} 10808function hasTrailingSlash$1(input = "", respectQueryAndFragment) { 10809 { 10810 return input.endsWith("/"); 10811 } 10812} 10813function withoutTrailingSlash$1(input = "", respectQueryAndFragment) { 10814 { 10815 return (hasTrailingSlash$1(input) ? input.slice(0, -1) : input) || "/"; 10816 } 10817} 10818function withTrailingSlash$1(input = "", respectQueryAndFragment) { 10819 { 10820 return input.endsWith("/") ? input : input + "/"; 10821 } 10822} 10823function withBase(input, base) { 10824 if (isEmptyURL$1(base) || hasProtocol$1(input)) { 10825 return input; 10826 } 10827 const _base = withoutTrailingSlash$1(base); 10828 if (input.startsWith(_base)) { 10829 return input; 10830 } 10831 return joinURL$1(_base, input); 10832} 10833function withQuery$1(input, query) { 10834 const parsed = parseURL$2(input); 10835 const mergedQuery = { ...parseQuery$2(parsed.search), ...query }; 10836 parsed.search = stringifyQuery$2(mergedQuery); 10837 return stringifyParsedURL$1(parsed); 10838} 10839function isEmptyURL$1(url) { 10840 return !url || url === "/"; 10841} 10842function isNonEmptyURL$1(url) { 10843 return url && url !== "/"; 10844} 10845function joinURL$1(base, ...input) { 10846 let url = base || ""; 10847 for (const segment of input.filter((url2) => isNonEmptyURL$1(url2))) { 10848 if (url) { 10849 const _segment = segment.replace(JOIN_LEADING_SLASH_RE$1, ""); 10850 url = withTrailingSlash$1(url) + _segment; 10851 } else { 10852 url = segment; 10853 } 10854 } 10855 return url; 10856} 10857function joinRelativeURL(..._input) { 10858 var _a, _b, _c, _d; 10859 const JOIN_SEGMENT_SPLIT_RE = /\/(?!\/)/; 10860 const input = _input.filter(Boolean); 10861 const segments = []; 10862 let segmentsDepth = 0; 10863 for (const i of input) { 10864 if (!i || i === "/") { 10865 continue; 10866 } 10867 for (const [sindex, s] of i.split(JOIN_SEGMENT_SPLIT_RE).entries()) { 10868 if (!s || s === ".") { 10869 continue; 10870 } 10871 if (s === "..") { 10872 if (segments.length === 1 && hasProtocol$1(segments[0])) { 10873 continue; 10874 } 10875 segments.pop(); 10876 segmentsDepth--; 10877 continue; 10878 } 10879 if (sindex === 1 && ((_a = segments[segments.length - 1]) == null ? void 0 : _a.endsWith(":/"))) { 10880 segments[segments.length - 1] += "/" + s; 10881 continue; 10882 } 10883 segments.push(s); 10884 segmentsDepth++; 10885 } 10886 } 10887 let url = segments.join("/"); 10888 if (segmentsDepth >= 0) { 10889 if (((_b = input[0]) == null ? void 0 : _b.startsWith("/")) && !url.startsWith("/")) { 10890 url = "/" + url; 10891 } else if (((_c = input[0]) == null ? void 0 : _c.startsWith("./")) && !url.startsWith("./")) { 10892 url = "./" + url; 10893 } 10894 } else { 10895 url = "../".repeat(-1 * segmentsDepth) + url; 10896 } 10897 if (((_d = input[input.length - 1]) == null ? void 0 : _d.endsWith("/")) && !url.endsWith("/")) { 10898 url += "/"; 10899 } 10900 return url; 10901} 10902function withHttps(input) { 10903 return withProtocol(input, "https://"); 10904} 10905function withProtocol(input, protocol) { 10906 let match2 = input.match(PROTOCOL_REGEX$1); 10907 if (!match2) { 10908 match2 = input.match(/^\/{2,}/); 10909 } 10910 if (!match2) { 10911 return protocol + input; 10912 } 10913 return protocol + input.slice(match2[0].length); 10914} 10915const protocolRelative$1 = Symbol.for("ufo:protocolRelative"); 10916function parseURL$2(input = "", defaultProto) { 10917 const _specialProtoMatch = input.match( 10918 /^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i 10919 ); 10920 if (_specialProtoMatch) { 10921 const [, _proto, _pathname = ""] = _specialProtoMatch; 10922 return { 10923 protocol: _proto.toLowerCase(), 10924 pathname: _pathname, 10925 href: _proto + _pathname, 10926 auth: "", 10927 host: "", 10928 search: "", 10929 hash: "" 10930 }; 10931 }
10932 if (!hasProtocol$1(input, { acceptRelative: true })) { 10933 return parsePath$1(input); 10934 } 10935 const [, protocol = "", auth, hostAndPath = ""] = input.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || []; 10936 let [, host = "", path = ""] = hostAndPath.match(/([^#/?]*)(.*)?/) || []; 10937 if (protocol === "file:") { 10938 path = path.replace(/\/(?=[A-Za-z]:)/, ""); 10939 } 10940 const { pathname, search, hash: hash2 } = parsePath$1(path); 10941 return { 10942 protocol: protocol.toLowerCase(), 10943 auth: auth ? auth.slice(0, Math.max(0, auth.length - 1)) : "", 10944 host, 10945 pathname, 10946 search, 10947 hash: hash2, 10948 [protocolRelative$1]: !protocol 10949 }; 10950} 10951function parsePath$1(input = "") { 10952 const [pathname = "", search = "", hash2 = ""] = (input.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1); 10953 return { 10954 pathname, 10955 search, 10956 hash: hash2 10957 }; 10958} 10959function stringifyParsedURL$1(parsed) { 10960 const pathname = parsed.pathname || ""; 10961 const search = parsed.search ? (parsed.search.startsWith("?") ? "" : "?") + parsed.search : ""; 10962 const hash2 = parsed.hash || ""; 10963 const auth = parsed.auth ? parsed.auth + "@" : ""; 10964 const host = parsed.host || ""; 10965 const proto = parsed.protocol || parsed[protocolRelative$1] ? (parsed.protocol || "") + "//" : ""; 10966 return proto + auth + host + pathname + search + hash2; 10967} 10968const useRuntimeConfig$1 = () => { 10969 var _a; 10970 return ((_a = window == null ? void 0 : window.__NUXT__) == null ? void 0 : _a.config) || {}; 10971}; 10972const appConfig = useRuntimeConfig$1().app; 10973const baseURL = () => appConfig.baseURL; 10974const buildAssetsDir = () => appConfig.buildAssetsDir; 10975const buildAssetsURL = (...path) => joinRelativeURL(publicAssetsURL(), buildAssetsDir(), ...path); 10976const publicAssetsURL = (...path) => { 10977 const publicBase = appConfig.cdnURL || appConfig.baseURL; 10978 return path.length ? joinRelativeURL(publicBase, ...path) : publicBase; 10979}; 10980{ 10981 globalThis.__buildAssetsURL = buildAssetsURL; 10982 globalThis.__publicAssetsURL = publicAssetsURL; 10983} 10984function flatHooks(configHooks, hooks = {}, parentName) { 10985 for (const key in configHooks) { 10986 const subHook = configHooks[key]; 10987 const name = parentName ? `${parentName}:${key}` : key; 10988 if (typeof subHook === "object" && subHook !== null) { 10989 flatHooks(subHook, hooks, name); 10990 } else if (typeof subHook === "function") { 10991 hooks[name] = subHook; 10992 } 10993 } 10994 return hooks; 10995} 10996const defaultTask = { run: (function_) => function_() }; 10997const _createTask = () => defaultTask; 10998const createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask; 10999function serialTaskCaller(hooks, args) { 11000 const name = args.shift(); 11001 const task = createTask(name); 11002 return hooks.reduce( 11003 (promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))), 11004 Promise.resolve() 11005 ); 11006} 11007function parallelTaskCaller(hooks, args) { 11008 const name = args.shift(); 11009 const task = createTask(name); 11010 return Promise.all(hooks.map((hook) => task.run(() => hook(...args)))); 11011} 11012function callEachWith(callbacks, arg0) { 11013 for (const callback of [...callbacks]) { 11014 callback(arg0); 11015 } 11016} 11017class Hookable { 11018 constructor() { 11019 this._hooks = {}; 11020 this._before = void 0; 11021 this._after = void 0; 11022 this._deprecatedMessages = void 0; 11023 this._deprecatedHooks = {}; 11024 this.hook = this.hook.bind(this); 11025 this.callHook = this.callHook.bind(this); 11026 this.callHookWith = this.callHookWith.bind(this); 11027 } 11028 hook(name, function_, options = {}) { 11029 if (!name || typeof function_ !== "function") { 11030 return () => { 11031 }; 11032 } 11033 const originalName = name; 11034 let dep; 11035 while (this._deprecatedHooks[name]) { 11036 dep = this._deprecatedHooks[name]; 11037 name = dep.to; 11038 } 11039 if (dep && !options.allowDeprecated) { 11040 let message2 = dep.message; 11041 if (!message2) { 11042 message2 = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : ""); 11043 } 11044 if (!this._deprecatedMessages) { 11045 this._deprecatedMessages = /* @__PURE__ */ new Set(); 11046 } 11047 if (!this._deprecatedMessages.has(message2)) { 11048 console.warn(message2); 11049 this._deprecatedMessages.add(message2); 11050 } 11051 } 11052 if (!function_.name) {
11053 try { 11054 Object.defineProperty(function_, "name", { 11055 get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb", 11056 configurable: true 11057 }); 11058 } catch { 11059 } 11060 } 11061 this._hooks[name] = this._hooks[name] || []; 11062 this._hooks[name].push(function_); 11063 return () => { 11064 if (function_) { 11065 this.removeHook(name, function_); 11066 function_ = void 0; 11067 } 11068 }; 11069 } 11070 hookOnce(name, function_) { 11071 let _unreg; 11072 let _function = (...arguments_) => { 11073 if (typeof _unreg === "function") { 11074 _unreg(); 11075 } 11076 _unreg = void 0; 11077 _function = void 0; 11078 return function_(...arguments_); 11079 }; 11080 _unreg = this.hook(name, _function); 11081 return _unreg; 11082 } 11083 removeHook(name, function_) { 11084 if (this._hooks[name]) { 11085 const index2 = this._hooks[name].indexOf(function_); 11086 if (index2 !== -1) { 11087 this._hooks[name].splice(index2, 1); 11088 } 11089 if (this._hooks[name].length === 0) { 11090 delete this._hooks[name]; 11091 } 11092 } 11093 } 11094 deprecateHook(name, deprecated) { 11095 this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated; 11096 const _hooks = this._hooks[name] || []; 11097 delete this._hooks[name]; 11098 for (const hook of _hooks) { 11099 this.hook(name, hook); 11100 } 11101 } 11102 deprecateHooks(deprecatedHooks) { 11103 Object.assign(this._deprecatedHooks, deprecatedHooks); 11104 for (const name in deprecatedHooks) { 11105 this.deprecateHook(name, deprecatedHooks[name]); 11106 } 11107 } 11108 addHooks(configHooks) { 11109 const hooks = flatHooks(configHooks); 11110 const removeFns = Object.keys(hooks).map( 11111 (key) => this.hook(key, hooks[key]) 11112 ); 11113 return () => { 11114 for (const unreg of removeFns.splice(0, removeFns.length)) { 11115 unreg(); 11116 } 11117 }; 11118 } 11119 removeHooks(configHooks) { 11120 const hooks = flatHooks(configHooks); 11121 for (const key in hooks) { 11122 this.removeHook(key, hooks[key]); 11123 } 11124 } 11125 removeAllHooks() { 11126 for (const key in this._hooks) { 11127 delete this._hooks[key]; 11128 } 11129 } 11130 callHook(name, ...arguments_) { 11131 arguments_.unshift(name); 11132 return this.callHookWith(serialTaskCaller, name, ...arguments_); 11133 } 11134 callHookParallel(name, ...arguments_) { 11135 arguments_.unshift(name); 11136 return this.callHookWith(parallelTaskCaller, name, ...arguments_); 11137 } 11138 callHookWith(caller, name, ...arguments_) { 11139 const event = this._before || this._after ? { name, args: arguments_, context: {} } : void 0; 11140 if (this._before) { 11141 callEachWith(this._before, event); 11142 } 11143 const result = caller( 11144 name in this._hooks ? [...this._hooks[name]] : [], 11145 arguments_ 11146 ); 11147 if (result instanceof Promise) { 11148 return result.finally(() => { 11149 if (this._after && event) { 11150 callEachWith(this._after, event); 11151 } 11152 }); 11153 } 11154 if (this._after && event) { 11155 callEachWith(this._after, event); 11156 } 11157 return result; 11158 } 11159 beforeEach(function_) { 11160 this._before = this._before || []; 11161 this._before.push(function_); 11162 return () => { 11163 if (this._before !== void 0) { 11164 const index2 = this._before.indexOf(function_); 11165 if (index2 !== -1) { 11166 this._before.splice(index2, 1); 11167 } 11168 } 11169 }; 11170 } 11171 afterEach(function_) { 11172 this._after = this._after || []; 11173 this._after.push(function_); 11174 return () => { 11175 if (this._after !== void 0) { 11176 const index2 = this._after.indexOf(function_); 11177 if (index2 !== -1) { 11178 this._after.splice(index2, 1); 11179 } 11180 } 11181 }; 11182 } 11183} 11184function createHooks() { 11185 return new Hookable(); 11186} 11187function createContext(opts = {}) { 11188 let currentInstance2; 11189 let isSingleton = false; 11190 const checkConflict = (instance) => { 11191 if (currentInstance2 && currentInstance2 !== instance) { 11192 throw new Error("Context conflict"); 11193 } 11194 }; 11195 let als; 11196 if (opts.asyncContext) { 11197 const _AsyncLocalStorage = opts.AsyncLocalStorage || globalThis.AsyncLocalStorage; 11198 if (_AsyncLocalStorage) { 11199 als = new _AsyncLocalStorage(); 11200 } else { 11201 console.warn("[unctx] `AsyncLocalStorage` is not provided."); 11202 } 11203 } 11204 const _getCurrentInstance = () => { 11205 if (als) { 11206 const instance = als.getStore(); 11207 if (instance !== void 0) { 11208 return instance; 11209 } 11210 } 11211 return currentInstance2; 11212 }; 11213 return { 11214 use: () => { 11215 const _instance = _getCurrentInstance(); 11216 if (_instance === void 0) { 11217 throw new Error("Context is not available"); 11218 } 11219 return _instance; 11220 }, 11221 tryUse: () => { 11222 return _getCurrentInstance(); 11223 }, 11224 set: (instance, replace) => { 11225 if (!replace) { 11226 checkConflict(instance); 11227 } 11228 currentInstance2 = instance; 11229 isSingleton = true; 11230 }, 11231 unset: () => { 11232 currentInstance2 = void 0; 11233 isSingleton = false;
11234 }, 11235 call: (instance, callback) => { 11236 checkConflict(instance); 11237 currentInstance2 = instance; 11238 try { 11239 return als ? als.run(instance, callback) : callback(); 11240 } finally { 11241 if (!isSingleton) { 11242 currentInstance2 = void 0; 11243 } 11244 } 11245 }, 11246 async callAsync(instance, callback) { 11247 currentInstance2 = instance; 11248 const onRestore = () => { 11249 currentInstance2 = instance; 11250 }; 11251 const onLeave = () => currentInstance2 === instance ? onRestore : void 0; 11252 asyncHandlers.add(onLeave); 11253 try { 11254 const r2 = als ? als.run(instance, callback) : callback(); 11255 if (!isSingleton) { 11256 currentInstance2 = void 0; 11257 } 11258 return await r2; 11259 } finally { 11260 asyncHandlers.delete(onLeave); 11261 } 11262 } 11263 }; 11264} 11265function createNamespace(defaultOpts = {}) { 11266 const contexts = {}; 11267 return { 11268 get(key, opts = {}) { 11269 if (!contexts[key]) { 11270 contexts[key] = createContext({ ...defaultOpts, ...opts }); 11271 } 11272 return contexts[key]; 11273 } 11274 }; 11275} 11276const _globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : {}; 11277const globalKey = "__unctx__"; 11278const defaultNamespace = _globalThis[globalKey] || (_globalThis[globalKey] = createNamespace()); 11279const getContext = (key, opts = {}) => defaultNamespace.get(key, opts); 11280const asyncHandlersKey = "__unctx_async_handlers__"; 11281const asyncHandlers = _globalThis[asyncHandlersKey] || (_globalThis[asyncHandlersKey] = /* @__PURE__ */ new Set()); 11282function executeAsync(function_) { 11283 const restores = []; 11284 for (const leaveHandler of asyncHandlers) { 11285 const restore2 = leaveHandler(); 11286 if (restore2) { 11287 restores.push(restore2); 11288 } 11289 } 11290 const restore = () => { 11291 for (const restore2 of restores) { 11292 restore2(); 11293 } 11294 }; 11295 let awaitable = function_(); 11296 if (awaitable && typeof awaitable === "object" && "catch" in awaitable) { 11297 awaitable = awaitable.catch((error) => { 11298 restore(); 11299 throw error; 11300 }); 11301 } 11302 return [awaitable, restore]; 11303} 11304const appLayoutTransition = false; 11305const appPageTransition = false; 11306const appKeepalive = false; 11307const nuxtLinkDefaults = { "componentName": "NuxtLink", "prefetch": true, "prefetchOn": { "visibility": true } }; 11308const asyncDataDefaults = { "value": null, "errorValue": null, "deep": true }; 11309const nuxtDefaultErrorValue = null; 11310const fetchDefaults = {}; 11311const vueAppRootContainer = "#__nuxt"; 11312const appId = "nuxt-app"; 11313const outdatedBuildInterval = 36e5; 11314const chunkErrorEvent = "vite:preloadError"; 11315function getNuxtAppCtx(id = appId) { 11316 return getContext(id, { 11317 asyncContext: false 11318 }); 11319} 11320const NuxtPluginIndicator = "__nuxt_plugin"; 11321function createNuxtApp(options) { 11322 var _a; 11323 let hydratingCount = 0; 11324 const nuxtApp = { 11325 _id: options.id || appId || "nuxt-app", 11326 _scope: effectScope(), 11327 provide: void 0, 11328 globalName: "nuxt", 11329 versions: { 11330 get nuxt() { 11331 return "3.17.1"; 11332 }, 11333 get vue() { 11334 return nuxtApp.vueApp.version; 11335 } 11336 }, 11337 payload: shallowReactive({ 11338 ...((_a = options.ssrContext) == null ? void 0 : _a.payload) || {}, 11339 data: shallowReactive({}), 11340 state: reactive({}), 11341 once: /* @__PURE__ */ new Set(), 11342 _errors: shallowReactive({}) 11343 }), 11344 static: { 11345 data: {} 11346 }, 11347 runWithContext(fn) { 11348 if (nuxtApp._scope.active && !getCurrentScope()) { 11349 return nuxtApp._scope.run(() => callWithNuxt(nuxtApp, fn)); 11350 } 11351 return callWithNuxt(nuxtApp, fn); 11352 }, 11353 isHydrating: true, 11354 deferHydration() { 11355 if (!nuxtApp.isHydrating) { 11356 return () => { 11357 }; 11358 } 11359 hydratingCount++; 11360 let called = false; 11361 return () => { 11362 if (called) { 11363 return; 11364 } 11365 called = true; 11366 hydratingCount--; 11367 if (hydratingCount === 0) { 11368 nuxtApp.isHydrating = false; 11369 return nuxtApp.callHook("app:suspense:resolve"); 11370 } 11371 }; 11372 }, 11373 _asyncDataPromises: {}, 11374 _asyncData: shallowReactive({}), 11375 _payloadRevivers: {}, 11376 ...options 11377 }; 11378 { 11379 const __NUXT__ = window.__NUXT__; 11380 if (__NUXT__) { 11381 for (const key in __NUXT__) { 11382 switch (key) { 11383 case "data": 11384 case "state": 11385 case "_errors": 11386 Object.assign(nuxtApp.payload[key], __NUXT__[key]); 11387 break; 11388 default: 11389 nuxtApp.payload[key] = __NUXT__[key]; 11390 } 11391 } 11392 } 11393 } 11394 nuxtApp.hooks = createHooks(); 11395 nuxtApp.hook = nuxtApp.hooks.hook; 11396 nuxtApp.callHook = nuxtApp.hooks.callHook; 11397 nuxtApp.provide = (name, value) => { 11398 const $name = "$" + name; 11399 defineGetter(nuxtApp, $name, value); 11400 defineGetter(nuxtApp.vueApp.config.globalProperties, $name, value); 11401 }; 11402 defineGetter(nuxtApp.vueApp, "$nuxt", nuxtApp); 11403 defineGetter(nuxtApp.vueApp.config.globalProperties, "$nuxt", nuxtApp); 11404 { 11405 { 11406 window.addEventListener(chunkErrorEvent, (event) => { 11407 nuxtApp.callHook("app:chunkError", { error: event.payload }); 11408 if (nuxtApp.isHydrating || event.payload.message.includes("Unable to preload CSS")) { 11409 event.preventDefault(); 11410 } 11411 }); 11412 } 11413 window.useNuxtApp || (window.useNuxtApp = useNuxtApp); 11414 const unreg = nuxtApp.hook("app:error", (...args) => { 11415 console.error("[nuxt] error caught during app initialization", ...args); 11416 }); 11417 nuxtApp.hook("app:mounted", unreg); 11418 } 11419 const runtimeConfig = nuxtApp.payload.config; 11420 nuxtApp.provide("config", runtimeConfig); 11421 return nuxtApp; 11422} 11423function registerPluginHooks(nuxtApp, plugin) { 11424 if (plugin.hooks) { 11425 nuxtApp.hooks.addHooks(plugin.hooks); 11426 } 11427} 11428async function applyPlugin(nuxtApp, plugin) { 11429 if (typeof plugin === "function") { 11430 const { provide: provide2 } = await nuxtApp.runWithContext(() => plugin(nuxtApp)) || {}; 11431 if (provide2 && typeof provide2 === "object") { 11432 for (const key in provide2) { 11433 nuxtApp.provide(key, provide2[key]); 11434 } 11435 } 11436 } 11437} 11438async function applyPlugins(nuxtApp, plugins) { 11439 const resolvedPlugins = []; 11440 const unresolvedPlugins = []; 11441 const parallels = []; 11442 const errors = []; 11443 let promiseDepth = 0; 11444 async function executePlugin(plugin) { 11445 var _a; 11446 const unresolvedPluginsForThisPlugin = ((_a = plugin.dependsOn) == null ? void 0 : _a.filter((name) => plugins.some((p2) => p2._name === name) && !resolvedPlugins.includes(name))) ?? []; 11447 if (unresolvedPluginsForThisPlugin.length > 0) { 11448 unresolvedPlugins.push([new Set(unresolvedPluginsForThisPlugin), plugin]); 11449 } else { 11450 const promise = applyPlugin(nuxtApp, plugin).then(async () => { 11451 if (plugin._name) { 11452 resolvedPlugins.push(plugin._name); 11453 await Promise.all(unresolvedPlugins.map(async ([dependsOn, unexecutedPlugin]) => { 11454 if (dependsOn.has(plugin._name)) { 11455 dependsOn.delete(plugin._name); 11456 if (dependsOn.size === 0) { 11457 promiseDepth++; 11458 await executePlugin(unexecutedPlugin); 11459 } 11460 } 11461 })); 11462 } 11463 }); 11464 if (plugin.parallel) { 11465 parallels.push(promise.catch((e) => errors.push(e))); 11466 } else { 11467 await promise; 11468 } 11469 } 11470 } 11471 for (const plugin of plugins) { 11472 registerPluginHooks(nuxtApp, plugin); 11473 } 11474 for (const plugin of plugins) { 11475 await executePlugin(plugin); 11476 } 11477 await Promise.all(parallels); 11478 if (promiseDepth) { 11479 for (let i = 0; i < promiseDepth; i++) { 11480 await Promise.all(parallels); 11481 } 11482 } 11483 if (errors.length) { 11484 throw errors[0]; 11485 } 11486} 11487// @__NO_SIDE_EFFECTS__ 11488function defineNuxtPlugin(plugin) { 11489 if (typeof plugin === "function") { 11490 return plugin; 11491 } 11492 const _name = plugin._name || plugin.name; 11493 delete plugin.name; 11494 return Object.assign(plugin.setup || (() => { 11495 }), plugin, { [NuxtPluginIndicator]: true, _name }); 11496} 11497function callWithNuxt(nuxt, setup, args) { 11498 const fn = () => setup(); 11499 const nuxtAppCtx = getNuxtAppCtx(nuxt._id); 11500 { 11501 nuxtAppCtx.set(nuxt); 11502 return nuxt.vueApp.runWithContext(fn); 11503 } 11504} 11505function tryUseNuxtApp(id) { 11506 var _a; 11507 let nuxtAppInstance; 11508 if (hasInjectionContext()) { 11509 nuxtAppInstance = (_a = getCurrentInstance()) == null ? void 0 : _a.appContext.app.$nuxt; 11510 } 11511 nuxtAppInstance || (nuxtAppInstance = getNuxtAppCtx(id).tryUse()); 11512 return nuxtAppInstance || null; 11513} 11514function useNuxtApp(id) { 11515 const nuxtAppInstance = tryUseNuxtApp(id); 11516 if (!nuxtAppInstance) { 11517 { 11518 throw new Error("[nuxt] instance unavailable"); 11519 } 11520 } 11521 return nuxtAppInstance; 11522} 11523// @__NO_SIDE_EFFECTS__ 11524function useRuntimeConfig(_event) { 11525 return useNuxtApp().$config; 11526} 11527function defineGetter(obj, key, val) { 11528 Object.defineProperty(obj, key, { get: () => val }); 11529} 11530function _createMatcher(table, strictTrailingSlash) { 11531 return { 11532 ctx: { table }, 11533 matchAll: (path) => _matchRoutes(path, table) 11534 }; 11535} 11536function _createTableFromExport(matcherExport) { 11537 const table = {}; 11538 for (const property in matcherExport) { 11539 table[property] = property === "dynamic" ? new Map( 11540 Object.entries(matcherExport[property]).map(([key, value]) => [ 11541 key, 11542 _createTableFromExport(value) 11543 ]) 11544 ) : new Map( 11545 Object.entries(matcherExport[property]) 11546 ); 11547 } 11548 return table; 11549} 11550function createMatcherFromExport(matcherExport) { 11551 return _createMatcher(_createTableFromExport(matcherExport)); 11552} 11553function _matchRoutes(path, table, strictTrailingSlash) { 11554 if (path.endsWith("/")) { 11555 path = path.slice(0, -1) || "/"; 11556 } 11557 const matches2 = []; 11558 for (const [key, value] of _sortRoutesMap(table.wildcard)) { 11559 if (path === key || path.startsWith(key + "/")) { 11560 matches2.push(value); 11561 } 11562 } 11563 for (const [key, value] of _sortRoutesMap(table.dynamic)) { 11564 if (path.startsWith(key + "/")) { 11565 const subPath = "/" + path.slice(key.length).split("/").splice(2).join("/"); 11566 matches2.push(..._matchRoutes(subPath, value)); 11567 } 11568 } 11569 const staticMatch = table.static.get(path); 11570 if (staticMatch) { 11571 matches2.push(staticMatch); 11572 } 11573 return matches2.filter(Boolean); 11574} 11575function _sortRoutesMap(m) { 11576 return [...m.entries()].sort((a, b2) => a[0].length - b2[0].length); 11577} 11578const suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/; 11579const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/; 11580const JsonSigRx = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/; 11581function jsonParseTransform(key, value) { 11582 if (key === "__proto__" || key === "constructor" && value && typeof value === "object" && "prototype" in value) { 11583 warnKeyDropped(key); 11584 return; 11585 } 11586 return value; 11587} 11588function warnKeyDropped(key) { 11589 console.warn(`[destr] Dropping "${key}" key to prevent prototype pollution.`); 11590} 11591function destr(value, options = {}) { 11592 if (typeof value !== "string") { 11593 return value; 11594 } 11595 if (value[0] === '"' && value[value.length - 1] === '"' && value.indexOf("\\") === -1) { 11596 return value.slice(1, -1); 11597 } 11598 const _value = value.trim(); 11599 if (_value.length <= 9) { 11600 switch (_value.toLowerCase()) { 11601 case "true": { 11602 return true; 11603 } 11604 case "false": { 11605 return false;
11606 } 11607 case "undefined": { 11608 return void 0; 11609 } 11610 case "null": { 11611 return null; 11612 } 11613 case "nan": { 11614 return Number.NaN; 11615 } 11616 case "infinity": { 11617 return Number.POSITIVE_INFINITY; 11618 } 11619 case "-infinity": { 11620 return Number.NEGATIVE_INFINITY; 11621 } 11622 } 11623 } 11624 if (!JsonSigRx.test(value)) { 11625 if (options.strict) { 11626 throw new SyntaxError("[destr] Invalid JSON"); 11627 } 11628 return value; 11629 } 11630 try { 11631 if (suspectProtoRx.test(value) || suspectConstructorRx.test(value)) { 11632 if (options.strict) { 11633 throw new Error("[destr] Possible prototype pollution"); 11634 } 11635 return JSON.parse(value, jsonParseTransform); 11636 } 11637 return JSON.parse(value); 11638 } catch (error) { 11639 if (options.strict) { 11640 throw error; 11641 } 11642 return value; 11643 } 11644} 11645function isPlainObject$3(value) { 11646 if (value === null || typeof value !== "object") { 11647 return false; 11648 } 11649 const prototype2 = Object.getPrototypeOf(value); 11650 if (prototype2 !== null && prototype2 !== Object.prototype && Object.getPrototypeOf(prototype2) !== null) { 11651 return false; 11652 } 11653 if (Symbol.iterator in value) { 11654 return false; 11655 } 11656 if (Symbol.toStringTag in value) { 11657 return Object.prototype.toString.call(value) === "[object Module]"; 11658 } 11659 return true; 11660} 11661function _defu(baseObject, defaults2, namespace = ".", merger) { 11662 if (!isPlainObject$3(defaults2)) { 11663 return _defu(baseObject, {}, namespace, merger); 11664 } 11665 const object = Object.assign({}, defaults2); 11666 for (const key in baseObject) { 11667 if (key === "__proto__" || key === "constructor") { 11668 continue; 11669 } 11670 const value = baseObject[key]; 11671 if (value === null || value === void 0) { 11672 continue; 11673 } 11674 if (merger && merger(object, key, value, namespace)) { 11675 continue; 11676 } 11677 if (Array.isArray(value) && Array.isArray(object[key])) { 11678 object[key] = [...value, ...object[key]]; 11679 } else if (isPlainObject$3(value) && isPlainObject$3(object[key])) { 11680 object[key] = _defu( 11681 value, 11682 object[key], 11683 (namespace ? `${namespace}.` : "") + key.toString(), 11684 merger 11685 ); 11686 } else { 11687 object[key] = value; 11688 } 11689 } 11690 return object; 11691} 11692function createDefu(merger) { 11693 return (...arguments_) => ( 11694 // eslint-disable-next-line unicorn/no-array-reduce 11695 arguments_.reduce((p2, c2) => _defu(p2, c2, "", merger), {}) 11696 ); 11697} 11698const defu = createDefu(); 11699function hasProp(obj, prop) { 11700 try { 11701 return prop in obj; 11702 } catch { 11703 return false; 11704 } 11705} 11706class H3Error extends Error { 11707 constructor(message2, opts = {}) { 11708 super(message2, opts); 11709 __publicField(this, "statusCode", 500); 11710 __publicField(this, "fatal", false); 11711 __publicField(this, "unhandled", false); 11712 __publicField(this, "statusMessage"); 11713 __publicField(this, "data"); 11714 __publicField(this, "cause"); 11715 if (opts.cause && !this.cause) { 11716 this.cause = opts.cause; 11717 } 11718 } 11719 toJSON() { 11720 const obj = { 11721 message: this.message, 11722 statusCode: sanitizeStatusCode(this.statusCode, 500) 11723 }; 11724 if (this.statusMessage) { 11725 obj.statusMessage = sanitizeStatusMessage(this.statusMessage); 11726 } 11727 if (this.data !== void 0) { 11728 obj.data = this.data; 11729 } 11730 return obj; 11731 } 11732} 11733__publicField(H3Error, "__h3_error__", true); 11734function createError$1(input) { 11735 if (typeof input === "string") { 11736 return new H3Error(input); 11737 } 11738 if (isError(input)) { 11739 return input; 11740 } 11741 const err = new H3Error(input.message ?? input.statusMessage ?? "", { 11742 cause: input.cause || input 11743 }); 11744 if (hasProp(input, "stack")) { 11745 try { 11746 Object.defineProperty(err, "stack", { 11747 get() { 11748 return input.stack; 11749 } 11750 }); 11751 } catch { 11752 try { 11753 err.stack = input.stack; 11754 } catch { 11755 } 11756 } 11757 } 11758 if (input.data) { 11759 err.data = input.data; 11760 } 11761 if (input.statusCode) { 11762 err.statusCode = sanitizeStatusCode(input.statusCode, err.statusCode); 11763 } else if (input.status) { 11764 err.statusCode = sanitizeStatusCode(input.status, err.statusCode); 11765 } 11766 if (input.statusMessage) { 11767 err.statusMessage = input.statusMessage; 11768 } else if (input.statusText) { 11769 err.statusMessage = input.statusText; 11770 } 11771 if (err.statusMessage) { 11772 const originalMessage = err.statusMessage; 11773 const sanitizedMessage = sanitizeStatusMessage(err.statusMessage); 11774 if (sanitizedMessage !== originalMessage) { 11775 console.warn( 11776 "[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default." 11777 ); 11778 } 11779 } 11780 if (input.fatal !== void 0) { 11781 err.fatal = input.fatal; 11782 } 11783 if (input.unhandled !== void 0) { 11784 err.unhandled = input.unhandled; 11785 } 11786 return err; 11787} 11788function isError(input) { 11789 var _a; 11790 return ((_a = input == null ? void 0 : input.constructor) == null ? void 0 : _a.__h3_error__) === true; 11791} 11792const DISALLOWED_STATUS_CHARS = /[^\u0009\u0020-\u007E]/g; 11793function sanitizeStatusMessage(statusMessage = "") { 11794 return statusMessage.replace(DISALLOWED_STATUS_CHARS, ""); 11795} 11796function sanitizeStatusCode(statusCode, defaultStatusCode = 200) { 11797 if (!statusCode) { 11798 return defaultStatusCode; 11799 } 11800 if (typeof statusCode === "string") { 11801 statusCode = Number.parseInt(statusCode, 10); 11802 } 11803 if (statusCode < 100 || statusCode > 999) { 11804 return defaultStatusCode; 11805 } 11806 return statusCode; 11807} 11808typeof setImmediate === "undefined" ? (fn) => fn() : setImmediate; 11809const HASH_RE$1 = /#/g; 11810const AMPERSAND_RE$1 = /&/g; 11811const SLASH_RE$1 = /\//g; 11812const EQUAL_RE$1 = /=/g; 11813const PLUS_RE$1 = /\+/g; 11814const ENC_CARET_RE$1 = /%5e/gi; 11815const ENC_BACKTICK_RE$1 = /%60/gi; 11816const ENC_PIPE_RE$1 = /%7c/gi; 11817const ENC_SPACE_RE$1 = /%20/gi; 11818function encode$2(text) { 11819 return encodeURI("" + text).replace(ENC_PIPE_RE$1, "|"); 11820} 11821function encodeQueryValue$1(input) { 11822 return encode$2(typeof input === "string" ? input : JSON.stringify(input)).replace(PLUS_RE$1, "%2B").replace(ENC_SPACE_RE$1, "+").replace(HASH_RE$1, "%23").replace(AMPERSAND_RE$1, "%26").replace(ENC_BACKTICK_RE$1, "`").replace(ENC_CARET_RE$1, "^").replace(SLASH_RE$1, "%2F"); 11823} 11824function encodeQueryKey$1(text) { 11825 return encodeQueryValue$1(text).replace(EQUAL_RE$1, "%3D"); 11826} 11827function decode$1(text = "") { 11828 try { 11829 return decodeURIComponent("" + text); 11830 } catch { 11831 return "" + text; 11832 } 11833} 11834function decodeQueryKey(text) { 11835 return decode$1(text.replace(PLUS_RE$1, " ")); 11836} 11837function decodeQueryValue(text) { 11838 return decode$1(text.replace(PLUS_RE$1, " ")); 11839} 11840function parseQuery$1(parametersString = "") { 11841 const object = /* @__PURE__ */ Object.create(null); 11842 if (parametersString[0] === "?") { 11843 parametersString = parametersString.slice(1); 11844 } 11845 for (const parameter of parametersString.split("&")) { 11846 const s = parameter.match(/([^=]+)=?(.*)/) || []; 11847 if (s.length < 2) { 11848 continue; 11849 }
vendor: 5,755 bytes, lines 11850-12028
11850 const key = decodeQueryKey(s[1]); 11851 if (key === "__proto__" || key === "constructor") { 11852 continue; 11853 } 11854 const value = decodeQueryValue(s[2] || ""); 11855 if (object[key] === void 0) { 11856 object[key] = value; 11857 } else if (Array.isArray(object[key])) { 11858 object[key].push(value); 11859 } else { 11860 object[key] = [object[key], value]; 11861 } 11862 } 11863 return object; 11864} 11865function encodeQueryItem(key, value) { 11866 if (typeof value === "number" || typeof value === "boolean") { 11867 value = String(value); 11868 } 11869 if (!value) { 11870 return encodeQueryKey$1(key); 11871 } 11872 if (Array.isArray(value)) { 11873 return value.map( 11874 (_value) => `${encodeQueryKey$1(key)}=${encodeQueryValue$1(_value)}` 11875 ).join("&"); 11876 } 11877 return `${encodeQueryKey$1(key)}=${encodeQueryValue$1(value)}`; 11878} 11879function stringifyQuery$1(query) { 11880 return Object.keys(query).filter((k3) => query[k3] !== void 0).map((k3) => encodeQueryItem(k3, query[k3])).filter(Boolean).join("&"); 11881} 11882const PROTOCOL_STRICT_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/; 11883const PROTOCOL_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{2})?/; 11884const PROTOCOL_RELATIVE_REGEX = /^([/\\]\s*){2,}[^/\\]/; 11885const PROTOCOL_SCRIPT_RE = /^[\s\0]*(blob|data|javascript|vbscript):$/i; 11886const TRAILING_SLASH_RE$1 = /\/$|\/\?|\/#/; 11887const JOIN_LEADING_SLASH_RE = /^\.?\//; 11888function hasProtocol(inputString, opts = {}) { 11889 if (typeof opts === "boolean") { 11890 opts = { acceptRelative: opts }; 11891 } 11892 if (opts.strict) { 11893 return PROTOCOL_STRICT_REGEX.test(inputString); 11894 } 11895 return PROTOCOL_REGEX.test(inputString) || (opts.acceptRelative ? PROTOCOL_RELATIVE_REGEX.test(inputString) : false); 11896} 11897function isScriptProtocol(protocol) { 11898 return !!protocol && PROTOCOL_SCRIPT_RE.test(protocol); 11899} 11900function hasTrailingSlash(input = "", respectQueryAndFragment) { 11901 if (!respectQueryAndFragment) { 11902 return input.endsWith("/"); 11903 } 11904 return TRAILING_SLASH_RE$1.test(input); 11905} 11906function withoutTrailingSlash(input = "", respectQueryAndFragment) { 11907 if (!respectQueryAndFragment) { 11908 return (hasTrailingSlash(input) ? input.slice(0, -1) : input) || "/"; 11909 } 11910 if (!hasTrailingSlash(input, true)) { 11911 return input || "/"; 11912 } 11913 let path = input; 11914 let fragment = ""; 11915 const fragmentIndex = input.indexOf("#"); 11916 if (fragmentIndex !== -1) { 11917 path = input.slice(0, fragmentIndex); 11918 fragment = input.slice(fragmentIndex); 11919 } 11920 const [s0, ...s] = path.split("?"); 11921 const cleanPath = s0.endsWith("/") ? s0.slice(0, -1) : s0; 11922 return (cleanPath || "/") + (s.length > 0 ? `?${s.join("?")}` : "") + fragment; 11923} 11924function withTrailingSlash(input = "", respectQueryAndFragment) { 11925 if (!respectQueryAndFragment) { 11926 return input.endsWith("/") ? input : input + "/"; 11927 } 11928 if (hasTrailingSlash(input, true)) { 11929 return input || "/"; 11930 } 11931 let path = input; 11932 let fragment = ""; 11933 const fragmentIndex = input.indexOf("#"); 11934 if (fragmentIndex !== -1) { 11935 path = input.slice(0, fragmentIndex); 11936 fragment = input.slice(fragmentIndex); 11937 if (!path) { 11938 return fragment; 11939 } 11940 } 11941 const [s0, ...s] = path.split("?"); 11942 return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment; 11943} 11944function withoutBase(input, base) { 11945 if (isEmptyURL(base)) { 11946 return input; 11947 } 11948 const _base = withoutTrailingSlash(base); 11949 if (!input.startsWith(_base)) { 11950 return input; 11951 } 11952 const trimmed = input.slice(_base.length); 11953 return trimmed[0] === "/" ? trimmed : "/" + trimmed; 11954} 11955function withQuery(input, query) { 11956 const parsed = parseURL$1(input); 11957 const mergedQuery = { ...parseQuery$1(parsed.search), ...query }; 11958 parsed.search = stringifyQuery$1(mergedQuery); 11959 return stringifyParsedURL(parsed); 11960} 11961function isEmptyURL(url) { 11962 return !url || url === "/"; 11963} 11964function isNonEmptyURL(url) { 11965 return url && url !== "/"; 11966} 11967function joinURL(base, ...input) { 11968 let url = base || ""; 11969 for (const segment of input.filter((url2) => isNonEmptyURL(url2))) { 11970 if (url) { 11971 const _segment = segment.replace(JOIN_LEADING_SLASH_RE, ""); 11972 url = withTrailingSlash(url) + _segment; 11973 } else { 11974 url = segment; 11975 } 11976 } 11977 return url; 11978} 11979function isSamePath(p1, p2) { 11980 return decode$1(withoutTrailingSlash(p1)) === decode$1(withoutTrailingSlash(p2)); 11981} 11982const protocolRelative = Symbol.for("ufo:protocolRelative"); 11983function parseURL$1(input = "", defaultProto) { 11984 const _specialProtoMatch = input.match( 11985 /^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i 11986 ); 11987 if (_specialProtoMatch) { 11988 const [, _proto, _pathname = ""] = _specialProtoMatch; 11989 return { 11990 protocol: _proto.toLowerCase(), 11991 pathname: _pathname, 11992 href: _proto + _pathname, 11993 auth: "", 11994 host: "", 11995 search: "", 11996 hash: "" 11997 }; 11998 } 11999 if (!hasProtocol(input, { acceptRelative: true })) { 12000 return defaultProto ? parseURL$1(defaultProto + input) : parsePath(input); 12001 } 12002 const [, protocol = "", auth, hostAndPath = ""] = input.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || []; 12003 let [, host = "", path = ""] = hostAndPath.match(/([^#/?]*)(.*)?/) || []; 12004 if (protocol === "file:") { 12005 path = path.replace(/\/(?=[A-Za-z]:)/, ""); 12006 } 12007 const { pathname, search, hash: hash2 } = parsePath(path); 12008 return { 12009 protocol: protocol.toLowerCase(), 12010 auth: auth ? auth.slice(0, Math.max(0, auth.length - 1)) : "", 12011 host, 12012 pathname, 12013 search, 12014 hash: hash2, 12015 [protocolRelative]: !protocol 12016 }; 12017} 12018function parsePath(input = "") { 12019 const [pathname = "", search = "", hash2 = ""] = (input.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1); 12020 return { 12021 pathname, 12022 search, 12023 hash: hash2 12024 }; 12025} 12026function stringifyParsedURL(parsed) { 12027 const pathname = parsed.pathname || ""; 12028 const search = parsed.search ? (parsed.search.startsWith("?") ? "" : "?") + parsed.search : "";
12029 const hash2 = parsed.hash || ""; 12030 const auth = parsed.auth ? parsed.auth + "@" : ""; 12031 const host = parsed.host || ""; 12032 const proto = parsed.protocol || parsed[protocolRelative] ? (parsed.protocol || "") + "//" : ""; 12033 return proto + auth + host + pathname + search + hash2; 12034} 12035const LayoutMetaSymbol = Symbol("layout-meta"); 12036const PageRouteSymbol = Symbol("route"); 12037const useRouter$2 = () => { 12038 var _a; 12039 return (_a = useNuxtApp()) == null ? void 0 : _a.$router; 12040}; 12041const useRoute$2 = () => { 12042 if (hasInjectionContext()) { 12043 return inject(PageRouteSymbol, useNuxtApp()._route); 12044 } 12045 return useNuxtApp()._route; 12046}; 12047// @__NO_SIDE_EFFECTS__ 12048function defineNuxtRouteMiddleware(middleware) { 12049 return middleware; 12050} 12051const isProcessingMiddleware = () => { 12052 try { 12053 if (useNuxtApp()._processingMiddleware) { 12054 return true; 12055 } 12056 } catch { 12057 return false; 12058 } 12059 return false; 12060}; 12061const navigateTo = (to, options) => { 12062 to || (to = "/"); 12063 const toPath = typeof to === "string" ? to : "path" in to ? resolveRouteObject(to) : useRouter$2().resolve(to).href; 12064 if (options == null ? void 0 : options.open) { 12065 const { target = "_blank", windowFeatures = {} } = options.open; 12066 const features = Object.entries(windowFeatures).filter(([_, value]) => value !== void 0).map(([feature, value]) => `${feature.toLowerCase()}=${value}`).join(", "); 12067 open(toPath, target, features); 12068 return Promise.resolve(); 12069 } 12070 const isExternalHost = hasProtocol(toPath, { acceptRelative: true }); 12071 const isExternal = (options == null ? void 0 : options.external) || isExternalHost; 12072 if (isExternal) { 12073 if (!(options == null ? void 0 : options.external)) { 12074 throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`."); 12075 } 12076 const { protocol } = new URL(toPath, window.location.href); 12077 if (protocol && isScriptProtocol(protocol)) { 12078 throw new Error(`Cannot navigate to a URL with '${protocol}' protocol.`); 12079 } 12080 } 12081 const inMiddleware = isProcessingMiddleware(); 12082 if (!isExternal && inMiddleware) { 12083 if (options == null ? void 0 : options.replace) { 12084 if (typeof to === "string") { 12085 const { pathname, search, hash: hash2 } = parseURL$1(to); 12086 return { 12087 path: pathname, 12088 ...search && { query: parseQuery$1(search) }, 12089 ...hash2 && { hash: hash2 }, 12090 replace: true 12091 }; 12092 } 12093 return { ...to, replace: true }; 12094 } 12095 return to; 12096 } 12097 const router = useRouter$2(); 12098 const nuxtApp = useNuxtApp(); 12099 if (isExternal) { 12100 nuxtApp._scope.stop(); 12101 if (options == null ? void 0 : options.replace) { 12102 location.replace(toPath); 12103 } else { 12104 location.href = toPath; 12105 } 12106 if (inMiddleware) { 12107 if (!nuxtApp.isHydrating) { 12108 return false; 12109 } 12110 return new Promise(() => { 12111 }); 12112 } 12113 return Promise.resolve(); 12114 } 12115 return (options == null ? void 0 : options.replace) ? router.replace(to) : router.push(to); 12116}; 12117function resolveRouteObject(to) { 12118 return withQuery(to.path || "", to.query || {}) + (to.hash || ""); 12119} 12120const NUXT_ERROR_SIGNATURE = "__nuxt_error"; 12121const useError = () => toRef(useNuxtApp().payload, "error"); 12122const showError = (error) => { 12123 const nuxtError = createError(error); 12124 try { 12125 const nuxtApp = useNuxtApp(); 12126 const error2 = useError(); 12127 if (true) { 12128 nuxtApp.hooks.callHook("app:error", nuxtError); 12129 } 12130 error2.value || (error2.value = nuxtError); 12131 } catch { 12132 throw nuxtError; 12133 } 12134 return nuxtError; 12135}; 12136const clearError = async (options = {}) => { 12137 const nuxtApp = useNuxtApp(); 12138 const error = useError(); 12139 nuxtApp.callHook("app:error:cleared", options); 12140 if (options.redirect) { 12141 await useRouter$2().replace(options.redirect); 12142 } 12143 error.value = nuxtDefaultErrorValue; 12144}; 12145const isNuxtError = (error) => !!error && typeof error === "object" && NUXT_ERROR_SIGNATURE in error; 12146const createError = (error) => { 12147 const nuxtError = createError$1(error); 12148 Object.defineProperty(nuxtError, NUXT_ERROR_SIGNATURE, { 12149 value: true, 12150 configurable: false, 12151 writable: false 12152 }); 12153 return nuxtError; 12154}; 12155function decode64(string) { 12156 const binaryString = asciiToBinary(string); 12157 const arraybuffer = new ArrayBuffer(binaryString.length); 12158 const dv = new DataView(arraybuffer); 12159 for (let i = 0; i < arraybuffer.byteLength; i++) { 12160 dv.setUint8(i, binaryString.charCodeAt(i)); 12161 } 12162 return arraybuffer; 12163} 12164const KEY_STRING = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
12164+/"; 12165function asciiToBinary(data) { 12166 if (data.length % 4 === 0) { 12167 data = data.replace(/==?$/, ""); 12168 } 12169 let output = ""; 12170 let buffer2 = 0; 12171 let accumulatedBits = 0; 12172 for (let i = 0; i < data.length; i++) { 12173 buffer2 <<= 6; 12174 buffer2 |= KEY_STRING.indexOf(data[i]); 12175 accumulatedBits += 6; 12176 if (accumulatedBits === 24) { 12177 output += String.fromCharCode((buffer2 & 16711680) >> 16); 12178 output += String.fromCharCode((buffer2 & 65280) >> 8); 12179 output += String.fromCharCode(buffer2 & 255); 12180 buffer2 = accumulatedBits = 0; 12181 } 12182 } 12183 if (accumulatedBits === 12) { 12184 buffer2 >>= 4; 12185 output += String.fromCharCode(buffer2); 12186 } else if (accumulatedBits === 18) { 12187 buffer2 >>= 2; 12188 output += String.fromCharCode((buffer2 & 65280) >> 8); 12189 output += String.fromCharCode(buffer2 & 255); 12190 } 12191 return output; 12192} 12193const UNDEFINED = -1; 12194const HOLE = -2; 12195const NAN$1 = -3; 12196const POSITIVE_INFINITY = -4; 12197const NEGATIVE_INFINITY = -5; 12198const NEGATIVE_ZERO = -6; 12199function parse(serialized, revivers) { 12200 return unflatten(JSON.parse(serialized), revivers); 12201} 12202function unflatten(parsed, revivers) { 12203 if (typeof parsed === "number") return hydrate2(parsed, true); 12204 if (!Array.isArray(parsed) || parsed.length === 0) { 12205 throw new Error("Invalid input"); 12206 } 12207 const values = ( 12208 /** @type {any[]} */ 12209 parsed 12210 ); 12211 const hydrated = Array(values.length); 12212 function hydrate2(index2, standalone = false) { 12213 if (index2 === UNDEFINED) return void 0; 12214 if (index2 === NAN$1) return NaN; 12215 if (index2 === POSITIVE_INFINITY) return Infinity; 12216 if (index2 === NEGATIVE_INFINITY) return -Infinity; 12217 if (index2 === NEGATIVE_ZERO) return -0; 12218 if (standalone) throw new Error(`Invalid input`); 12219 if (index2 in hydrated) return hydrated[index2]; 12220 const value = values[index2]; 12221 if (!value || typeof value !== "object") { 12222 hydrated[index2] = value; 12223 } else if (Array.isArray(value)) { 12224 if (typeof value[0] === "string") { 12225 const type = value[0]; 12226 const reviver = revivers == null ? void 0 : revivers[type]; 12227 if (reviver) { 12228 return hydrated[index2] = reviver(hydrate2(value[1])); 12229 } 12230 switch (type) { 12231 case "Date": 12232 hydrated[index2] = new Date(value[1]); 12233 break; 12234 case "Set": 12235 const set2 = /* @__PURE__ */ new Set(); 12236 hydrated[index2] = set2; 12237 for (let i = 1; i < value.length; i += 1) { 12238 set2.add(hydrate2(value[i])); 12239 } 12240 break; 12241 case "Map": 12242 const map = /* @__PURE__ */ new Map(); 12243 hydrated[index2] = map; 12244 for (let i = 1; i < value.length; i += 2) { 12245 map.set(hydrate2(value[i]), hydrate2(value[i + 1])); 12246 } 12247 break; 12248 case "RegExp": 12249 hydrated[index2] = new RegExp(value[1], value[2]); 12250 break; 12251 case "Object": 12252 hydrated[index2] = Object(value[1]); 12253 break; 12254 case "BigInt": 12255 hydrated[index2] = BigInt(value[1]); 12256 break; 12257 case "null": 12258 const obj = /* @__PURE__ */ Object.create(null); 12259 hydrated[index2] = obj; 12260 for (let i = 1; i < value.length; i += 2) { 12261 obj[value[i]] = hydrate2(value[i + 1]); 12262 } 12263 break; 12264 case "Int8Array": 12265 case "Uint8Array": 12266 case "Uint8ClampedArray": 12267 case "Int16Array": 12268 case "Uint16Array": 12269 case "Int32Array": 12270 case "Uint32Array": 12271 case "Float32Array": 12272 case "Float64Array": 12273 case "BigInt64Array": 12274 case "BigUint64Array": { 12275 const TypedArrayConstructor = globalThis[type]; 12276 const base64 = value[1]; 12277 const arraybuffer = decode64(base64); 12278 const typedArray = new TypedArrayConstructor(arraybuffer); 12279 hydrated[index2] = typedArray; 12280 break; 12281 } 12282 case "ArrayBuffer": { 12283 const base64 = value[1]; 12284 const arraybuffer = decode64(base64); 12285 hydrated[index2] = arraybuffer; 12286 break; 12287 } 12288 default: 12289 throw new Error(`Unknown type ${type}`); 12290 } 12291 } else { 12292 const array = new Array(value.length); 12293 hydrated[index2] = array; 12294 for (let i = 0; i < value.length; i += 1) { 12295 const n = value[i]; 12296 if (n === HOLE) continue; 12297 array[i] = hydrate2(n); 12298 } 12299 } 12300 } else { 12301 const object = {}; 12302 hydrated[index2] = object; 12303 for (const key in value) { 12304 const n = value[key]; 12305 object[key] = hydrate2(n); 12306 } 12307 } 12308 return hydrated[index2]; 12309 } 12310 return hydrate2(0); 12311} 12312const DupeableTags = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]); 12313const TagsWithInnerContent = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style", "noscript"]); 12314const HasElementTags = /* @__PURE__ */ new Set([ 12315 "base", 12316 "meta", 12317 "link", 12318 "style", 12319 "script", 12320 "noscript" 12321]); 12322const ValidHeadTags = /* @__PURE__ */ new Set([ 12323 "title", 12324 "base", 12325 "htmlAttrs", 12326 "bodyAttrs", 12327 "meta", 12328 "link", 12329 "style", 12330 "script", 12331 "noscript" 12332]); 12333const UniqueTags = /* @__PURE__ */ new Set(["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"]); 12334const TagConfigKeys = /* @__PURE__ */ new Set(["key", "tagPosition", "tagPriority", "tagDuplicateStrategy", "innerHTML", "textContent", "processTemplateParams"]); 12335const UsesMergeStrategy = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"]); 12336const MetaTagsArrayable = /* @__PURE__ */ new Set([ 12337 "theme-color", 12338 "google-site-verification", 12339 "og", 12340 "article", 12341 "book", 12342 "profile", 12343 "twitter", 12344 "author" 12345]); 12346function defineHeadPlugin(plugin) { 12347 return plugin; 12348} 12349const allowedMetaProperties = ["name", "property", "http-equiv"]; 12350function isMetaArrayDupeKey(v2) { 12351 const k3 = v2.split(":")[1]; 12352 return MetaTagsArrayable.has(k3); 12353} 12354function dedupeKey(tag) { 12355 const { props, tag: name } = tag; 12356 if (UniqueTags.has(name)) 12357 return name; 12358 if (name === "link" && props.rel === "canonical") 12359 return "canonical"; 12360 if (props.charset) 12361 return "charset"; 12362 if (tag.tag === "meta") { 12363 for (const n of allowedMetaProperties) { 12364 if (props[n] !== void 0) { 12365 return `${name}:${props[n]}`; 12366 } 12367 } 12368 } 12369 if (tag.key) { 12370 return `${name}:key:${tag.key}`; 12371 } 12372 if (props.id) { 12373 return `${name}:id:${props.id}`; 12374 } 12375 if (TagsWithInnerContent.has(name)) { 12376 const v2 = tag.textContent || tag.innerHTML; 12377 if (v2) { 12378 return `${name}:content:${v2}`; 12379 } 12380 } 12381} 12382function hashTag(tag) { 12383 const dedupe = tag._h || tag._d; 12384 if (dedupe) 12385 return dedupe; 12386 const inner = tag.textContent || tag.innerHTML; 12387 if (inner) 12388 return inner; 12389 return `${tag.tag}:${Object.entries(tag.props).map(([k3, v2]) => `${k3}:${String(v2)}`).join(",")}`; 12390} 12391function walkResolver(val, resolve2, key) { 12392 const type = typeof val; 12393 if (type === "function") { 12394 if (!key || key !== "titleTemplate" && !(key[0] === "o" && key[1] === "
12394n")) { 12395 val = val(); 12396 } 12397 } 12398 let v2; 12399 if (resolve2) { 12400 v2 = resolve2(key, val); 12401 } 12402 if (Array.isArray(v2)) { 12403 return v2.map((r2) => walkResolver(r2, resolve2)); 12404 } 12405 if ((v2 == null ? void 0 : v2.constructor) === Object) { 12406 const next = {}; 12407 for (const key2 of Object.keys(v2)) { 12408 next[key2] = walkResolver(v2[key2], resolve2, key2); 12409 } 12410 return next; 12411 } 12412 return v2; 12413} 12414function normalizeStyleClassProps(key, value) { 12415 const store = key === "style" ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(); 12416 function processValue(rawValue2) { 12417 const value2 = rawValue2.trim(); 12418 if (!value2) 12419 return; 12420 if (key === "style") { 12421 const [k3, ...v2] = value2.split(":").map((s) => s.trim()); 12422 if (k3 && v2.length) 12423 store.set(k3, v2.join(":")); 12424 } else { 12425 value2.split(" ").filter(Boolean).forEach((c2) => store.add(c2)); 12426 } 12427 } 12428 if (typeof value === "string") { 12429 key === "style" ? value.split(";").forEach(processValue) : processValue(value); 12430 } else if (Array.isArray(value)) { 12431 value.forEach((item) => processValue(item)); 12432 } else if (value && typeof value === "object") { 12433 Object.entries(value).forEach(([k3, v2]) => { 12434 if (v2 && v2 !== "false") { 12435 key === "style" ? store.set(k3.trim(), v2) : processValue(k3); 12436 } 12437 }); 12438 } 12439 return store; 12440} 12441function normalizeProps(tag, input) { 12442 tag.props = tag.props || {}; 12443 if (!input) { 12444 return tag; 12445 } 12446 Object.entries(input).forEach(([key, value]) => { 12447 if (value === null) { 12448 tag.props[key] = null; 12449 return; 12450 } 12451 if (key === "class" || key === "style") { 12452 tag.props[key] = normalizeStyleClassProps(key, value); 12453 return; 12454 } 12455 if (TagConfigKeys.has(key)) { 12456 if (["textContent", "innerHTML"].includes(key) && typeof value === "object") { 12457 let type = input.type; 12458 if (!input.type) { 12459 type = "application/json"; 12460 } 12461 if (!(type == null ? void 0 : type.endsWith("json")) && type !== "speculationrules") { 12462 return; 12463 } 12464 input.type = type; 12465 tag.props.type = type; 12466 tag[key] = JSON.stringify(value); 12467 } else { 12468 tag[key] = value; 12469 } 12470 return; 12471 } 12472 const strValue = String(value); 12473 const isDataKey = key.startsWith("data-"); 12474 if (strValue === "true" || strValue === "") { 12475 tag.props[key] = isDataKey ? strValue : true; 12476 } else if (!value && isDataKey && strValue === "false") { 12477 tag.props[key] = "false"; 12478 } else if (value !== void 0) { 12479 tag.props[key] = value; 12480 } 12481 }); 12482 return tag; 12483} 12484function normalizeTag(tagName, _input) { 12485 const input = typeof _input === "object" && typeof _input !== "function" ? _input : { [tagName === "script" || tagName === "noscript" || tagName === "style" ? "innerHTML" : "textContent"]: _input }; 12486 const tag = normalizeProps({ tag: tagName, props: {} }, input); 12487 if (tag.key && DupeableTags.has(tag.tag)) { 12488 tag.props["data-hid"] = tag._h = tag.key; 12489 } 12490 if (tag.tag === "script" && typeof tag.innerHTML === "object") { 12491 tag.innerHTML = JSON.stringify(tag.innerHTML); 12492 tag.props.type = tag.props.type || "application/json"; 12493 } 12494 return Array.isArray(tag.props.content) ? tag.props.content.map((v2) => ({ ...tag, props: { ...tag.props, content: v2 } })) : tag; 12495} 12496function normalizeEntryToTags(input, propResolvers) { 12497 if (!input) { 12498 return []; 12499 } 12500 if (typeof input === "function") { 12501 input = input(); 12502 } 12503 const resolvers = (key, val) => { 12504 for (let i = 0; i < propResolvers.length; i++) { 12505 val = propResolvers[i](key, val); 12506 } 12507 return val; 12508 }; 12509 input = resolvers(void 0, input); 12510 const tags = []; 12511 input = walkResolver(input, resolvers); 12512 Object.entries(input || {}).forEach(([key, value]) => { 12513 if (value === void 0) 12514 return; 12515 for (const v2 of Array.isArray(value) ? value : [value]) 12516 tags.push(normalizeTag(key, v2)); 12517 }); 12518 return tags.flat(); 12519} 12520const sortTags = (a, b2) => a._w === b2._w ? a._p - b2._p : a._w - b2._w; 12521const TAG_WEIGHTS = { 12522 base: -10, 12523 title: 10 12524}; 12525const TAG_ALIASES = { 12526 critical: -8, 12527 high: -1, 12528 low: 2 12529}; 12530const WEIGHT_MAP = { 12531 meta: { 12532 "content-security-policy": -30, 12533 "charset": -20, 12534 "viewport": -15 12535 }, 12536 link: { 12537 "preconnect": 20, 12538 "stylesheet": 60, 12539 "preload": 70, 12540 "modulepreload": 70, 12541 "prefetch": 90, 12542 "dns-prefetch": 90, 12543 "prerender": 90 12544 }, 12545 script: { 12546 async: 30, 12547 defer: 80, 12548 sync: 50 12549 }, 12550 style: { 12551 imported: 40, 12552 sync: 60 12553 } 12554}; 12555const ImportStyleRe = /@import/; 12556const isTruthy = (val) => val === "" || val === true; 12557function tagWeight(head, tag) { 12558 var _a;
12559 if (typeof tag.tagPriority === "number") 12560 return tag.tagPriority; 12561 let weight = 100; 12562 const offset = TAG_ALIASES[tag.tagPriority] || 0; 12563 const weightMap = head.resolvedOptions.disableCapoSorting ? { 12564 link: {}, 12565 script: {}, 12566 style: {} 12567 } : WEIGHT_MAP; 12568 if (tag.tag in TAG_WEIGHTS) { 12569 weight = TAG_WEIGHTS[tag.tag]; 12570 } else if (tag.tag === "meta") { 12571 const metaType = tag.props["http-equiv"] === "content-security-policy" ? "content-security-policy" : tag.props.charset ? "charset" : tag.props.name === "viewport" ? "viewport" : null; 12572 if (metaType) 12573 weight = WEIGHT_MAP.meta[metaType]; 12574 } else if (tag.tag === "link" && tag.props.rel) { 12575 weight = weightMap.link[tag.props.rel]; 12576 } else if (tag.tag === "script") { 12577 if (isTruthy(tag.props.async)) { 12578 weight = weightMap.script.async; 12579 } else if (tag.props.src && !isTruthy(tag.props.defer) && !isTruthy(tag.props.async) && tag.props.type !== "module" && !((_a = tag.props.type) == null ? void 0 : _a.endsWith("json"))) { 12580 weight = weightMap.script.sync; 12581 } else if (isTruthy(tag.props.defer) && tag.props.src && !isTruthy(tag.props.async)) { 12582 weight = weightMap.script.defer; 12583 } 12584 } else if (tag.tag === "style") { 12585 weight = tag.innerHTML && ImportStyleRe.test(tag.innerHTML) ? weightMap.style.imported : weightMap.style.sync; 12586 } 12587 return (weight || 100) + offset; 12588} 12589function registerPlugin(head, p2) { 12590 const plugin = typeof p2 === "function" ? p2(head) : p2; 12591 const key = plugin.key || String(head.plugins.size + 1); 12592 const exists = head.plugins.get(key); 12593 if (!exists) { 12594 head.plugins.set(key, plugin); 12595 head.hooks.addHooks(plugin.hooks || {}); 12596 } 12597} 12598// @__NO_SIDE_EFFECTS__ 12599function createUnhead(resolvedOptions = {}) { 12600 var _a; 12601 const hooks = createHooks(); 12602 hooks.addHooks(resolvedOptions.hooks || {}); 12603 const ssr = !resolvedOptions.document; 12604 const entries = /* @__PURE__ */ new Map(); 12605 const plugins = /* @__PURE__ */ new Map(); 12606 const normalizeQueue = []; 12607 const head = { 12608 _entryCount: 1, 12609 // 0 is reserved for internal use 12610 plugins, 12611 dirty: false, 12612 resolvedOptions, 12613 hooks, 12614 ssr, 12615 entries, 12616 headEntries() { 12617 return [...entries.values()]; 12618 }, 12619 use: (p2) => registerPlugin(head, p2), 12620 push(input, _options) { 12621 const options = { ..._options || {} }; 12622 delete options.head; 12623 const _i = options._index ?? head._entryCount++; 12624 const inst = { _i, input, options }; 12625 const _ = { 12626 _poll(rm = false) { 12627 head.dirty = true; 12628 !rm && normalizeQueue.push(_i); 12629 hooks.callHook("entries:updated", head); 12630 }, 12631 dispose() { 12632 if (entries.delete(_i)) { 12633 _._poll(true); 12634 } 12635 }, 12636 // a patch is the same as creating a new entry, just a nice DX 12637 patch(input2) { 12638 if (!options.mode || options.mode === "server" && ssr || options.mode === "client" && !ssr) { 12639 inst.input = input2; 12640 entries.set(_i, inst); 12641 _._poll(); 12642 } 12643 } 12644 }; 12645 _.patch(input); 12646 return _; 12647 }, 12648 async resolveTags() { 12649 var _a2; 12650 const ctx = { 12651 tagMap: /* @__PURE__ */ new Map(), 12652 tags: [], 12653 entries: [...head.entries.values()] 12654 }; 12655 await hooks.callHook("entries:resolve", ctx); 12656 while (normalizeQueue.length) { 12657 const i = normalizeQueue.shift(); 12658 const e = entries.get(i); 12659 if (e) { 12660 const normalizeCtx = { 12661 tags: normalizeEntryToTags(e.input, resolvedOptions.propResolvers || []).map((t) => Object.assign(t, e.options)), 12662 entry: e 12663 }; 12664 await hooks.callHook("entries:normalize", normalizeCtx); 12665 e._tags = normalizeCtx.tags.map((t, i2) => { 12666 t._w = tagWeight(head, t); 12667 t._p = (e._i << 10) + i2; 12668 t._d = dedupeKey(t); 12669 return t; 12670 }); 12671 } 12672 } 12673 let hasFlatMeta = false; 12674 ctx.entries.flatMap((e) => (e._tags || []).map((t) => ({ ...t, props: { ...t.props } }))).sort(sortTags).reduce((acc, next) => {
12675 const k3 = String(next._d || next._p); 12676 if (!acc.has(k3)) 12677 return acc.set(k3, next); 12678 const prev = acc.get(k3); 12679 const strategy = (next == null ? void 0 : next.tagDuplicateStrategy) || (UsesMergeStrategy.has(next.tag) ? "merge" : null) || (next.key && next.key === prev.key ? "merge" : null); 12680 if (strategy === "merge") { 12681 const newProps = { ...prev.props }; 12682 Object.entries(next.props).forEach(([p2, v2]) => ( 12683 // @ts-expect-error untyped 12684 newProps[p2] = p2 === "style" ? new Map([...prev.props.style || /* @__PURE__ */ new Map(), ...v2]) : p2 === "class" ? /* @__PURE__ */ new Set([...prev.props.class || /* @__PURE__ */ new Set(), ...v2]) : v2 12685 )); 12686 acc.set(k3, { ...next, props: newProps }); 12687 } else if (next._p >> 10 === prev._p >> 10 && isMetaArrayDupeKey(next._d)) { 12688 acc.set(k3, Object.assign([...Array.isArray(prev) ? prev : [prev], next], next)); 12689 hasFlatMeta = true; 12690 } else if (next._w === prev._w ? next._p > prev._p : (next == null ? void 0 : next._w) < (prev == null ? void 0 : prev._w)) { 12691 acc.set(k3, next); 12692 } 12693 return acc; 12694 }, ctx.tagMap); 12695 const title = ctx.tagMap.get("title"); 12696 const titleTemplate = ctx.tagMap.get("titleTemplate"); 12697 head._title = title == null ? void 0 : title.textContent; 12698 if (titleTemplate) { 12699 const titleTemplateFn = titleTemplate == null ? void 0 : titleTemplate.textContent; 12700 head._titleTemplate = titleTemplateFn; 12701 if (titleTemplateFn) { 12702 let newTitle = typeof titleTemplateFn === "function" ? titleTemplateFn(title == null ? void 0 : title.textContent) : titleTemplateFn; 12703 if (typeof newTitle === "string" && !head.plugins.has("template-params")) { 12704 newTitle = newTitle.replace("%s", (title == null ? void 0 : title.textContent) || ""); 12705 } 12706 if (title) { 12707 newTitle === null ? ctx.tagMap.delete("title") : ctx.tagMap.set("title", { ...title, textContent: newTitle }); 12708 } else { 12709 titleTemplate.tag = "title"; 12710 titleTemplate.textContent = newTitle; 12711 } 12712 } 12713 } 12714 ctx.tags = Array.from(ctx.tagMap.values()); 12715 if (hasFlatMeta) { 12716 ctx.tags = ctx.tags.flat().sort(sortTags); 12717 } 12718 await hooks.callHook("tags:beforeResolve", ctx); 12719 await hooks.callHook("tags:resolve", ctx); 12720 await hooks.callHook("tags:afterResolve", ctx); 12721 const finalTags = []; 12722 for (const t of ctx.tags) { 12723 const { innerHTML, tag, props } = t; 12724 if (!ValidHeadTags.has(tag)) { 12725 continue; 12726 } 12727 if (Object.keys(props).length === 0 && !t.innerHTML && !t.textContent) { 12728 continue; 12729 } 12730 if (tag === "meta" && !props.content && !props["http-equiv"] && !props.charset) { 12731 continue; 12732 } 12733 if (tag === "script" && innerHTML) { 12734 if ((_a2 = props.type) == null ? void 0 : _a2.endsWith("json")) { 12735 const v2 = typeof innerHTML === "string" ? innerHTML : JSON.stringify(innerHTML); 12736 t.innerHTML = v2.replace(/</g, "\\u003C"); 12737 } else if (typeof innerHTML === "string") { 12738 t.innerHTML = innerHTML.replace(new RegExp(`</${tag}`, "g"), `<\\/${tag}`); 12739 } 12740 t._d = dedupeKey(t); 12741 } 12742 finalTags.push(t); 12743 } 12744 return finalTags; 12745 } 12746 }; 12747 ((resolvedOptions == null ? void 0 : resolvedOptions.plugins) || []).forEach((p2) => registerPlugin(head, p2)); 12748 head.hooks.callHook("init", head); 12749 (_a = resolvedOptions.init) == null ? void 0 : _a.forEach((e) => e && head.push(e)); 12750 return head; 12751} 12752const SepSub = "%separator"; 12753const SepSubRE = new RegExp(`${SepSub}(?:\\s*${SepSub})*`, "g"); 12754function sub(p2, token, isJson = false) { 12755 var _a; 12756 let val; 12757 if (token === "s" || token === "pageTitle") { 12758 val = p2.pageTitle; 12759 } else if (token.includes(".")) { 12760 const dotIndex = token.indexOf("."); 12761 val = (_a = p2[token.substring(0, dotIndex)]) == null ? void 0 : _a[token.substring(dotIndex + 1)]; 12762 } else { 12763 val = p2[token]; 12764 } 12765 if (val !== void 0) { 12766 return isJson ? (val || "").replace(/\\/g, "\\\\").replace(/</g, "\\u003C").replace(/"/g, '\\"') : val || ""; 12767 } 12768 return void 0; 12769} 12770function processTemplateParams(s, p2, sep, isJson = false) { 12771 if (typeof s !== "string" || !s.includes("%")) 12772 return s; 12773 let decoded = s; 12774 try { 12775 decoded = decodeURI(s); 12776 } catch { 12777 } 12778 const tokens = decoded.match(/%\w+(?:\.\w+)?/g); 12779 if (!tokens) { 12780 return s; 12781 } 12782 const hasSepSub = s.includes(SepSub); 12783 s = s.replace(/%\w+(?:\.\w+)?/g, (token) => { 12784 if (token === SepSub || !tokens.includes(token)) { 12785 return token; 12786 } 12787 const re = sub(p2, token.slice(1), isJson); 12788 return re !== void 0 ? re : token; 12789 }).trim(); 12790 if (hasSepSub) { 12791 if (s.endsWith(SepSub)) 12792 s = s.slice(0, -SepSub.length); 12793 if (s.startsWith(SepSub)) 12794 s = s.slice(SepSub.length); 12795 s = s.replace(SepSubRE, sep || "").trim(); 12796 } 12797 return s; 12798} 12799const formatKey = (k3) => !k3.includes(":key") ? k3.split(":").join(":key:") : k3; 12800const AliasSortingPlugin = defineHeadPlugin({ 12801 key: "aliasSorting", 12802 hooks: { 12803 "tags:resolve": (ctx) => { 12804 let m = false;
12805 for (const t of ctx.tags) { 12806 const p2 = t.tagPriority; 12807 if (!p2) 12808 continue; 12809 const s = String(p2); 12810 if (s.startsWith("before:")) { 12811 const k3 = formatKey(s.slice(7)); 12812 const l3 = ctx.tagMap.get(k3); 12813 if (l3) { 12814 if (typeof l3.tagPriority === "number") 12815 t.tagPriority = l3.tagPriority; 12816 t._p = l3._p - 1; 12817 m = true; 12818 } 12819 } else if (s.startsWith("after:")) { 12820 const k3 = formatKey(s.slice(6)); 12821 const l3 = ctx.tagMap.get(k3); 12822 if (l3) { 12823 if (typeof l3.tagPriority === "number") 12824 t.tagPriority = l3.tagPriority; 12825 t._p = l3._p + 1; 12826 m = true; 12827 } 12828 } 12829 } 12830 if (m) 12831 ctx.tags = ctx.tags.sort(sortTags); 12832 } 12833 } 12834}); 12835const DeprecationsPlugin = /* @__PURE__ */ defineHeadPlugin({ 12836 key: "deprecations", 12837 hooks: { 12838 "entries:normalize": ({ tags }) => { 12839 for (const tag of tags) { 12840 if (tag.props.children) { 12841 tag.innerHTML = tag.props.children; 12842 delete tag.props.children; 12843 } 12844 if (tag.props.hid) { 12845 tag.key = tag.props.hid; 12846 delete tag.props.hid; 12847 } 12848 if (tag.props.vmid) { 12849 tag.key = tag.props.vmid; 12850 delete tag.props.vmid; 12851 } 12852 if (tag.props.body) { 12853 tag.tagPosition = "bodyClose"; 12854 delete tag.props.body; 12855 } 12856 } 12857 } 12858 } 12859}); 12860async function walkPromises(v2) { 12861 const type = typeof v2; 12862 if (type === "function") { 12863 return v2; 12864 } 12865 if (v2 instanceof Promise) { 12866 return await v2; 12867 } 12868 if (Array.isArray(v2)) { 12869 return await Promise.all(v2.map((r2) => walkPromises(r2))); 12870 } 12871 if ((v2 == null ? void 0 : v2.constructor) === Object) { 12872 const next = {}; 12873 for (const key of Object.keys(v2)) { 12874 next[key] = await walkPromises(v2[key]); 12875 } 12876 return next; 12877 } 12878 return v2; 12879} 12880const PromisesPlugin = /* @__PURE__ */ defineHeadPlugin({ 12881 key: "promises", 12882 hooks: { 12883 "entries:resolve": async (ctx) => { 12884 const promises = []; 12885 for (const k3 in ctx.entries) { 12886 if (!ctx.entries[k3]._promisesProcessed) { 12887 promises.push( 12888 walkPromises(ctx.entries[k3].input).then((val) => { 12889 ctx.entries[k3].input = val; 12890 ctx.entries[k3]._promisesProcessed = true; 12891 }) 12892 ); 12893 } 12894 } 12895 await Promise.all(promises); 12896 } 12897 } 12898}); 12899const SupportedAttrs = { 12900 meta: "content", 12901 link: "href", 12902 htmlAttrs: "lang" 12903}; 12904const contentAttrs = ["innerHTML", "textContent"]; 12905const TemplateParamsPlugin = /* @__PURE__ */ defineHeadPlugin((head) => { 12906 return { 12907 key: "template-params", 12908 hooks: { 12909 "entries:normalize": (ctx) => { 12910 var _a, _b, _c; 12911 const params = ((_b = (_a = ctx.tags.filter((t) => t.tag === "templateParams" && t.mode === "server")) == null ? void 0 : _a[0]) == null ? void 0 : _b.props) || {}; 12912 if (Object.keys(params).length) { 12913 head._ssrPayload = { 12914 templateParams: { 12915 ...((_c = head._ssrPayload) == null ? void 0 : _c.templateParams) || {}, 12916 ...params 12917 } 12918 }; 12919 } 12920 }, 12921 "tags:resolve": ({ tagMap, tags }) => { 12922 var _a; 12923 const params = ((_a = tagMap.get("templateParams")) == null ? void 0 : _a.props) || {}; 12924 const sep = params.separator || "|"; 12925 delete params.separator; 12926 params.pageTitle = processTemplateParams( 12927 // find templateParams 12928 params.pageTitle || head._title || "", 12929 params, 12930 sep 12931 ); 12932 for (const tag of tags) { 12933 if (tag.processTemplateParams === false) { 12934 continue; 12935 } 12936 const v2 = SupportedAttrs[tag.tag]; 12937 if (v2 && typeof tag.props[v2] === "string") { 12938 tag.props[v2] = processTemplateParams(tag.props[v2], params, sep); 12939 } else if (tag.processTemplateParams || tag.tag === "titleTemplate" || tag.tag === "title") { 12940 for (const p2 of contentAttrs) { 12941 if (typeof tag[p2] === "string") 12942 tag[p2] = processTemplateParams(tag[p2], params, sep, tag.tag === "script" && tag.props.type.endsWith("json")); 12943 } 12944 } 12945 } 12946 head._templateParams = params; 12947 head._separator = sep; 12948 }, 12949 "tags:afterResolve": ({ tagMap }) => { 12950 const title = tagMap.get("title"); 12951 if ((title == null ? void 0 : title.textContent) && title.processTemplateParams !== false) { 12952 title.textContent = processTemplateParams(title.textContent, head._templateParams, head._separator); 12953 } 12954 } 12955 } 12956 }; 12957}); 12958const VueResolver = (_, value) => { 12959 return isRef(value) ? toValue(value) : value; 12960}; 12961const headSymbol = "usehead"; 12962function vueInstall(head) { 12963 const plugin = { 12964 install(app) { 12965 app.config.globalProperties.$unhead = head; 12966 app.config.globalProperties.$head = head; 12967 app.provide(headSymbol, head); 12968 } 12969 }; 12970 return plugin.install; 12971} 12972function injectHead$1() { 12973 if (hasInjectionContext()) { 12974 const instance = inject(headSymbol); 12975 if (!instance) { 12976 throw new Error("useHead() was called without provide context, ensure you call it through the setup() function."); 12977 } 12978 return instance; 12979 } 12980 throw new Error("useHead() was called without provide context, ensure you call it through the setup() function."); 12981} 12982function useHead$1(input, options = {}) { 12983 const head = options.head || injectHead$1(); 12984 return head.ssr ? head.push(input || {}, options) : clientUseHead(head, input, options); 12985} 12986function clientUseHead(head, input, options = {}) { 12987 const deactivated = ref(false); 12988 let entry; 12989 watchEffect(() => { 12990 const i = deactivated.value ? {} : walkResolver(input, VueResolver); 12991 if (entry) { 12992 entry.patch(i); 12993 } else { 12994 entry = head.push(i, options); 12995 } 12996 }); 12997 const vm = getCurrentInstance(); 12998 if (vm) { 12999 onBeforeUnmount(() => { 13000 entry.dispose(); 13001 }); 13002 onDeactivated(() => { 13003 deactivated.value = true; 13004 }); 13005 onActivated(() => { 13006 deactivated.value = false;
13007 }); 13008 } 13009 return entry; 13010} 13011function injectHead(nuxtApp) { 13012 var _a; 13013 const nuxt = nuxtApp || tryUseNuxtApp(); 13014 return ((_a = nuxt == null ? void 0 : nuxt.ssrContext) == null ? void 0 : _a.head) || (nuxt == null ? void 0 : nuxt.runWithContext(() => { 13015 if (hasInjectionContext()) { 13016 return inject(headSymbol); 13017 } 13018 })); 13019} 13020function useHead(input, options = {}) { 13021 const head = injectHead(options.nuxt); 13022 if (head) { 13023 return useHead$1(input, { head, ...options }); 13024 } 13025} 13026const scriptRel = "modulepreload"; 13027const assetsURL = function(dep, importerUrl) { 13028 return new URL(dep, importerUrl).href; 13029}; 13030const seen = {}; 13031const __vitePreload = function preload(baseModule, deps, importerUrl) { 13032 let promise = Promise.resolve(); 13033 if (deps && deps.length > 0) { 13034 let allSettled2 = function(promises) { 13035 return Promise.all( 13036 promises.map( 13037 (p2) => Promise.resolve(p2).then( 13038 (value) => ({ status: "fulfilled", value }), 13039 (reason) => ({ status: "rejected", reason }) 13040 ) 13041 ) 13042 ); 13043 }; 13044 const links = document.getElementsByTagName("link"); 13045 const cspNonceMeta = document.querySelector( 13046 "meta[property=csp-nonce]" 13047 ); 13048 const cspNonce = (cspNonceMeta == null ? void 0 : cspNonceMeta.nonce) || (cspNonceMeta == null ? void 0 : cspNonceMeta.getAttribute("nonce")); 13049 promise = allSettled2( 13050 deps.map((dep) => { 13051 dep = assetsURL(dep, importerUrl); 13052 if (dep in seen) return; 13053 seen[dep] = true; 13054 const isCss = dep.endsWith(".css"); 13055 const cssSelector = isCss ? '[rel="stylesheet"]' : ""; 13056 const isBaseRelative = !!importerUrl; 13057 if (isBaseRelative) { 13058 for (let i = links.length - 1; i >= 0; i--) { 13059 const link2 = links[i]; 13060 if (link2.href === dep && (!isCss || link2.rel === "stylesheet")) { 13061 return; 13062 } 13063 } 13064 } else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) { 13065 return; 13066 } 13067 const link = document.createElement("link"); 13068 link.rel = isCss ? "stylesheet" : scriptRel; 13069 if (!isCss) { 13070 link.as = "script"; 13071 } 13072 link.crossOrigin = ""; 13073 link.href = dep; 13074 if (cspNonce) { 13075 link.setAttribute("nonce", cspNonce); 13076 } 13077 document.head.appendChild(link); 13078 if (isCss) { 13079 return new Promise((res, rej) => { 13080 link.addEventListener("load", res); 13081 link.addEventListener( 13082 "error", 13083 () => rej(new Error(`Unable to preload CSS for ${dep}`)) 13084 ); 13085 }); 13086 } 13087 }) 13088 ); 13089 } 13090 function handlePreloadError(err) { 13091 const e = new Event("vite:preloadError", { 13092 cancelable: true 13093 }); 13094 e.payload = err; 13095 window.dispatchEvent(e); 13096 if (!e.defaultPrevented) { 13097 throw err; 13098 } 13099 } 13100 return promise.then((res) => { 13101 for (const item of res || []) { 13102 if (item.status !== "rejected") continue; 13103 handlePreloadError(item.reason); 13104 } 13105 return baseModule().catch(handlePreloadError); 13106 }); 13107}; 13108let manifest; 13109let matcher; 13110function fetchManifest() { 13111 { 13112 manifest = $fetch(buildAssetsURL(`builds/meta/${(/* @__PURE__ */ useRuntimeConfig()).app.buildId}.json`), { 13113 responseType: "json" 13114 }); 13115 } 13116 manifest.then((m) => { 13117 matcher = createMatcherFromExport(m.matcher); 13118 }).catch((e) => { 13119 console.error("[nuxt] Error fetching app manifest.", e); 13120 }); 13121 return manifest; 13122} 13123function getAppManifest() { 13124 return manifest || fetchManifest(); 13125} 13126async function getRouteRules(arg) { 13127 const path = typeof arg === "string" ? arg : arg.path; 13128 await getAppManifest(); 13129 if (!matcher) { 13130 console.error("[nuxt] Error creating app manifest matcher.", matcher); 13131 return {}; 13132 } 13133 try { 13134 return defu({}, ...matcher.matchAll(path).reverse()); 13135 } catch (e) { 13136 console.error("[nuxt] Error matching route rules.", e); 13137 return {}; 13138 } 13139} 13140async function loadPayload(url, opts = {}) { 13141 const shouldLoadPayload = await isPrerendered(url); 13142 if (!shouldLoadPayload) { 13143 return null; 13144 } 13145 const payloadURL = await _getPayloadURL(url, opts); 13146 return await _importPayload(payloadURL) || null; 13147} 13148const filename = "_payload.json"; 13149async function _getPayloadURL(url, opts = {}) { 13150 const u = new URL(url, "http://localhost"); 13151 if (u.host !== "localhost" || hasProtocol(u.pathname, { acceptRelative: true })) { 13152 throw new Error("Payload URL must not include hostname: " + url); 13153 } 13154 const config = /* @__PURE__ */ useRuntimeConfig(); 13155 const hash2 = opts.hash || (opts.fresh ? Date.now() : config.app.buildId); 13156 const cdnURL = config.app.cdnURL; 13157 const baseOrCdnURL = cdnURL && await isPrerendered(url) ? cdnURL : config.app.baseURL; 13158 return joinURL(baseOrCdnURL, u.pathname, filename + (hash2 ? `?${hash2}` : "")); 13159} 13160async function _importPayload(payloadURL) { 13161 const payloadPromise = fetch(payloadURL, { cache: "force-cache" }).then((res) => res.text().then(parsePayload)); 13162 try { 13163 return await payloadPromise; 13164 } catch (err) { 13165 console.warn("[nuxt] Cannot load payload ", payloadURL, err); 13166 } 13167 return null; 13168} 13169async function isPrerendered(url = useRoute$2().path) { 13170 const nuxtApp = useNuxtApp(); 13171 url = withoutTrailingSlash(url); 13172 const manifest2 = await getAppManifest(); 13173 if (manifest2.prerendered.includes(url)) { 13174 return true; 13175 } 13176 return nuxtApp.runWithContext(async () => { 13177 const rules = await getRouteRules({ path: url }); 13178 return !!rules.prerender && !rules.redirect; 13179 }); 13180} 13181let payloadCache = null; 13182async function getNuxtClientPayload() { 13183 var _a; 13184 if (payloadCache) { 13185 return payloadCache; 13186 } 13187 const el = document.getElementById("__NUXT_DATA__"); 13188 if (!el) { 13189 return {}; 13190 } 13191 const inlineData = await parsePayload(el.textContent || ""); 13192 const externalData = el.dataset.src ? await _importPayload(el.dataset.src) : void 0; 13193 payloadCache = { 13194 ...inlineData, 13195 ...externalData, 13196 ...window.__NUXT__ 13197 }; 13198 if ((_a = payloadCache.config) == null ? void 0 : _a.public) { 13199 payloadCache.config.public = reactive(payloadCache.config.public); 13200 } 13201 return payloadCache; 13202} 13203async function parsePayload(payload) { 13204 return await parse(payload, useNuxtApp()._payloadRevivers); 13205} 13206function definePayloadReviver(name, revive) { 13207 { 13208 useNuxtApp()._payloadRevivers[name] = revive; 13209 } 13210} 13211function getDevtoolsGlobalHook() { 13212 return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__; 13213} 13214function getTarget() { 13215 return typeof navigator !== "undefined" && typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : {}; 13216} 13217const isProxyAvailable = typeof Proxy === "function"; 13218const HOOK_SETUP = "devtools-plugin:setup"; 13219const HOOK_PLUGIN_SETTINGS_SET = "plugin:settings:set"; 13220let supported; 13221let perf; 13222function isPerformanceSupported() { 13223 var _a; 13224 if (supported !== void 0) { 13225 return supported; 13226 } 13227 if (typeof window !== "undefined" && window.performance) { 13228 supported = true; 13229 perf = window.performance; 13230 } else if (typeof globalThis !== "undefined" && ((_a = globalThis.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) { 13231 supported = true; 13232 perf = globalThis.perf_hooks.performance; 13233 } else { 13234 supported = false;
13235 } 13236 return supported; 13237} 13238function now() { 13239 return isPerformanceSupported() ? perf.now() : Date.now(); 13240} 13241class ApiProxy { 13242 constructor(plugin, hook) { 13243 this.target = null; 13244 this.targetQueue = []; 13245 this.onQueue = []; 13246 this.plugin = plugin; 13247 this.hook = hook; 13248 const defaultSettings = {}; 13249 if (plugin.settings) { 13250 for (const id in plugin.settings) { 13251 const item = plugin.settings[id]; 13252 defaultSettings[id] = item.defaultValue; 13253 } 13254 } 13255 const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin.id}`; 13256 let currentSettings = Object.assign({}, defaultSettings); 13257 try { 13258 const raw = localStorage.getItem(localSettingsSaveId); 13259 const data = JSON.parse(raw); 13260 Object.assign(currentSettings, data); 13261 } catch (e) { 13262 } 13263 this.fallbacks = { 13264 getSettings() { 13265 return currentSettings; 13266 }, 13267 setSettings(value) { 13268 try { 13269 localStorage.setItem(localSettingsSaveId, JSON.stringify(value)); 13270 } catch (e) { 13271 } 13272 currentSettings = value; 13273 }, 13274 now() { 13275 return now(); 13276 } 13277 }; 13278 if (hook) { 13279 hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => { 13280 if (pluginId === this.plugin.id) { 13281 this.fallbacks.setSettings(value); 13282 } 13283 }); 13284 } 13285 this.proxiedOn = new Proxy({}, { 13286 get: (_target, prop) => { 13287 if (this.target) { 13288 return this.target.on[prop]; 13289 } else { 13290 return (...args) => { 13291 this.onQueue.push({ 13292 method: prop, 13293 args 13294 }); 13295 }; 13296 } 13297 } 13298 }); 13299 this.proxiedTarget = new Proxy({}, { 13300 get: (_target, prop) => { 13301 if (this.target) { 13302 return this.target[prop]; 13303 } else if (prop === "on") { 13304 return this.proxiedOn; 13305 } else if (Object.keys(this.fallbacks).includes(prop)) { 13306 return (...args) => { 13307 this.targetQueue.push({ 13308 method: prop, 13309 args, 13310 resolve: () => { 13311 } 13312 }); 13313 return this.fallbacks[prop](...args); 13314 }; 13315 } else { 13316 return (...args) => { 13317 return new Promise((resolve2) => { 13318 this.targetQueue.push({ 13319 method: prop, 13320 args, 13321 resolve: resolve2 13322 }); 13323 }); 13324 }; 13325 } 13326 } 13327 }); 13328 } 13329 async setRealTarget(target) { 13330 this.target = target; 13331 for (const item of this.onQueue) { 13332 this.target.on[item.method](...item.args); 13333 } 13334 for (const item of this.targetQueue) { 13335 item.resolve(await this.target[item.method](...item.args)); 13336 } 13337 } 13338} 13339function setupDevtoolsPlugin(pluginDescriptor, setupFn) { 13340 const descriptor = pluginDescriptor; 13341 const target = getTarget(); 13342 const hook = getDevtoolsGlobalHook(); 13343 const enableProxy = isProxyAvailable && descriptor.enableEarlyProxy; 13344 if (hook && (target.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !enableProxy)) { 13345 hook.emit(HOOK_SETUP, pluginDescriptor, setupFn); 13346 } else { 13347 const proxy = enableProxy ? new ApiProxy(descriptor, hook) : null; 13348 const list = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || []; 13349 list.push({ 13350 pluginDescriptor: descriptor, 13351 setupFn, 13352 proxy 13353 }); 13354 if (proxy) { 13355 setupFn(proxy.proxiedTarget); 13356 } 13357 } 13358} 13359/*! 13360 * vue-router v4.5.0 13361 * (c) 2024 Eduardo San Martin Morote 13362 * @license MIT 13363 */ 13364const isBrowser = typeof document !== "undefined"; 13365function isRouteComponent(component) { 13366 return typeof component === "object" || "displayName" in component || "props" in component || "__vccOpts" in component; 13367} 13368function isESModule(obj) { 13369 return obj.__esModule || obj[Symbol.toStringTag] === "Module" || // support CF with dynamic imports that do not 13370 // add the Module string tag 13371 obj.default && isRouteComponent(obj.default); 13372} 13373const assign = Object.assign; 13374function applyToParams(fn, params) { 13375 const newParams = {}; 13376 for (const key in params) { 13377 const value = params[key]; 13378 newParams[key] = isArray$3(value) ? value.map(fn) : fn(value); 13379 } 13380 return newParams; 13381} 13382const noop$2 = () => { 13383}; 13384const isArray$3 = Array.isArray; 13385const HASH_RE = /#/g; 13386const AMPERSAND_RE = /&/g; 13387const SLASH_RE = /\//g; 13388const EQUAL_RE = /=/g; 13389const IM_RE = /\?/g; 13390const PLUS_RE = /\+/g; 13391const ENC_BRACKET_OPEN_RE = /%5B/g; 13392const ENC_BRACKET_CLOSE_RE = /%5D/g; 13393const ENC_CARET_RE = /%5E/g; 13394const ENC_BACKTICK_RE = /%60/g; 13395const ENC_CURLY_OPEN_RE = /%7B/g; 13396const ENC_PIPE_RE = /%7C/g; 13397const ENC_CURLY_CLOSE_RE = /%7D/g; 13398const ENC_SPACE_RE = /%20/g; 13399function commonEncode(text) { 13400 return encodeURI("" + text).replace(ENC_PIPE_RE, "|").replace(ENC_BRACKET_OPEN_RE, "[").replace(ENC_BRACKET_CLOSE_RE, "]"); 13401} 13402function encodeHash(text) { 13403 return commonEncode(text).replace(ENC_CURLY_OPEN_RE, "{").replace(ENC_CURLY_CLOSE_RE, "}").replace(ENC_CARET_RE, "^"); 13404} 13405function encodeQueryValue(text) { 13406 return commonEncode(text).replace(PLUS_RE, "%2B").replace(ENC_SPACE_RE, "+").replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CURLY_OPEN_RE, "{").replace(ENC_CURLY_CLOSE_RE, "}").replace(ENC_CARET_RE, "^"); 13407} 13408function encodeQueryKey(text) { 13409 return encodeQueryValue(text).replace(EQUAL_RE, "%3D"); 13410} 13411function encodePath(text) { 13412 return commonEncode(text).replace(HASH_RE, "%23").replace(IM_RE, "%3F"); 13413} 13414function encodeParam(text) { 13415 return text == null ? "" : encodePath(text).replace(SLASH_RE, "%2F"); 13416} 13417function decode(text) { 13418 try { 13419 return decodeURIComponent("" + text); 13420 } catch (err) { 13421 } 13422 return "" + text; 13423} 13424const TRAILING_SLASH_RE = /\/$/; 13425const removeTrailingSlash = (path) => path.replace(TRAILING_SLASH_RE, ""); 13426function parseURL(parseQuery2, location2, currentLocation = "/") { 13427 let path, query = {}, searchString = "", hash2 = "";
13428 const hashPos = location2.indexOf("#"); 13429 let searchPos = location2.indexOf("?"); 13430 if (hashPos < searchPos && hashPos >= 0) { 13431 searchPos = -1; 13432 } 13433 if (searchPos > -1) { 13434 path = location2.slice(0, searchPos); 13435 searchString = location2.slice(searchPos + 1, hashPos > -1 ? hashPos : location2.length); 13436 query = parseQuery2(searchString); 13437 } 13438 if (hashPos > -1) { 13439 path = path || location2.slice(0, hashPos); 13440 hash2 = location2.slice(hashPos, location2.length); 13441 } 13442 path = resolveRelativePath(path != null ? path : location2, currentLocation); 13443 return { 13444 fullPath: path + (searchString && "?") + searchString + hash2, 13445 path, 13446 query, 13447 hash: decode(hash2) 13448 }; 13449} 13450function stringifyURL(stringifyQuery2, location2) { 13451 const query = location2.query ? stringifyQuery2(location2.query) : ""; 13452 return location2.path + (query && "?") + query + (location2.hash || ""); 13453} 13454function stripBase(pathname, base) { 13455 if (!base || !pathname.toLowerCase().startsWith(base.toLowerCase())) 13456 return pathname; 13457 return pathname.slice(base.length) || "/"; 13458} 13459function isSameRouteLocation(stringifyQuery2, a, b2) { 13460 const aLastIndex = a.matched.length - 1; 13461 const bLastIndex = b2.matched.length - 1; 13462 return aLastIndex > -1 && aLastIndex === bLastIndex && isSameRouteRecord(a.matched[aLastIndex], b2.matched[bLastIndex]) && isSameRouteLocationParams(a.params, b2.params) && stringifyQuery2(a.query) === stringifyQuery2(b2.query) && a.hash === b2.hash; 13463} 13464function isSameRouteRecord(a, b2) { 13465 return (a.aliasOf || a) === (b2.aliasOf || b2); 13466} 13467function isSameRouteLocationParams(a, b2) { 13468 if (Object.keys(a).length !== Object.keys(b2).length) 13469 return false; 13470 for (const key in a) { 13471 if (!isSameRouteLocationParamsValue(a[key], b2[key])) 13472 return false; 13473 } 13474 return true; 13475} 13476function isSameRouteLocationParamsValue(a, b2) { 13477 return isArray$3(a) ? isEquivalentArray(a, b2) : isArray$3(b2) ? isEquivalentArray(b2, a) : a === b2; 13478} 13479function isEquivalentArray(a, b2) { 13480 return isArray$3(b2) ? a.length === b2.length && a.every((value, i) => value === b2[i]) : a.length === 1 && a[0] === b2; 13481} 13482function resolveRelativePath(to, from) { 13483 if (to.startsWith("/")) 13484 return to; 13485 if (!to) 13486 return from; 13487 const fromSegments = from.split("/"); 13488 const toSegments = to.split("/"); 13489 const lastToSegment = toSegments[toSegments.length - 1]; 13490 if (lastToSegment === ".." || lastToSegment === ".") { 13491 toSegments.push(""); 13492 } 13493 let position = fromSegments.length - 1; 13494 let toPosition; 13495 let segment; 13496 for (toPosition = 0; toPosition < toSegments.length; toPosition++) { 13497 segment = toSegments[toPosition]; 13498 if (segment === ".") 13499 continue; 13500 if (segment === "..") { 13501 if (position > 1) 13502 position--; 13503 } else 13504 break; 13505 } 13506 return fromSegments.slice(0, position).join("/") + "/" + toSegments.slice(toPosition).join("/"); 13507} 13508const START_LOCATION_NORMALIZED = { 13509 path: "/", 13510 // TODO: could we use a symbol in the future? 13511 name: void 0, 13512 params: {}, 13513 query: {}, 13514 hash: "", 13515 fullPath: "/", 13516 matched: [], 13517 meta: {}, 13518 redirectedFrom: void 0 13519}; 13520var NavigationType; 13521(function(NavigationType2) { 13522 NavigationType2["pop"] = "pop"; 13523 NavigationType2["push"] = "push"; 13524})(NavigationType || (NavigationType = {})); 13525var NavigationDirection; 13526(function(NavigationDirection2) { 13527 NavigationDirection2["back"] = "back"; 13528 NavigationDirection2["forward"] = "forward"; 13529 NavigationDirection2["unknown"] = ""; 13530})(NavigationDirection || (NavigationDirection = {})); 13531function normalizeBase(base) { 13532 if (!base) { 13533 if (isBrowser) { 13534 const baseEl = document.querySelector("base"); 13535 base = baseEl && baseEl.getAttribute("href") || "/"; 13536 base = base.replace(/^\w+:\/\/[^\/]+/, ""); 13537 } else { 13538 base = "/"; 13539 } 13540 } 13541 if (base[0] !== "/" && base[0] !== "#") 13542 base = "/" + base; 13543 return removeTrailingSlash(base); 13544} 13545const BEFORE_HASH_RE = /^[^#]+#/; 13546function createHref(base, location2) { 13547 return base.replace(BEFORE_HASH_RE, "#") + location2; 13548} 13549function getElementPosition(el, offset) { 13550 const docRect = document.documentElement.getBoundingClientRect(); 13551 const elRect = el.getBoundingClientRect(); 13552 return { 13553 behavior: offset.behavior, 13554 left: elRect.left - docRect.left - (offset.left || 0), 13555 top: elRect.top - docRect.top - (offset.top || 0) 13556 }; 13557} 13558const computeScrollPosition = () => ({ 13559 left: window.scrollX, 13560 top: window.scrollY 13561}); 13562function scrollToPosition(position) { 13563 let scrollToOptions; 13564 if ("el" in position) { 13565 const positionEl = position.el; 13566 const isIdSelector = typeof positionEl === "string" && positionEl.startsWith("#"); 13567 const el = typeof positionEl === "string" ? isIdSelector ? document.getElementById(positionEl.slice(1)) : document.querySelector(positionEl)
13567: positionEl; 13568 if (!el) { 13569 return; 13570 } 13571 scrollToOptions = getElementPosition(el, position); 13572 } else { 13573 scrollToOptions = position; 13574 } 13575 if ("scrollBehavior" in document.documentElement.style) 13576 window.scrollTo(scrollToOptions); 13577 else { 13578 window.scrollTo(scrollToOptions.left != null ? scrollToOptions.left : window.scrollX, scrollToOptions.top != null ? scrollToOptions.top : window.scrollY); 13579 } 13580} 13581function getScrollKey(path, delta) { 13582 const position = history.state ? history.state.position - delta : -1; 13583 return position + path; 13584} 13585const scrollPositions = /* @__PURE__ */ new Map(); 13586function saveScrollPosition(key, scrollPosition) { 13587 scrollPositions.set(key, scrollPosition); 13588} 13589function getSavedScrollPosition(key) { 13590 const scroll = scrollPositions.get(key); 13591 scrollPositions.delete(key); 13592 return scroll; 13593} 13594let createBaseLocation = () => location.protocol + "//" + location.host; 13595function createCurrentLocation(base, location2) { 13596 const { pathname, search, hash: hash2 } = location2; 13597 const hashPos = base.indexOf("#"); 13598 if (hashPos > -1) { 13599 let slicePos = hash2.includes(base.slice(hashPos)) ? base.slice(hashPos).length : 1; 13600 let pathFromHash = hash2.slice(slicePos); 13601 if (pathFromHash[0] !== "/") 13602 pathFromHash = "/" + pathFromHash; 13603 return stripBase(pathFromHash, ""); 13604 } 13605 const path = stripBase(pathname, base); 13606 return path + search + hash2; 13607} 13608function useHistoryListeners(base, historyState, currentLocation, replace) { 13609 let listeners = []; 13610 let teardowns = []; 13611 let pauseState = null; 13612 const popStateHandler = ({ state }) => { 13613 const to = createCurrentLocation(base, location); 13614 const from = currentLocation.value; 13615 const fromState = historyState.value; 13616 let delta = 0; 13617 if (state) { 13618 currentLocation.value = to; 13619 historyState.value = state; 13620 if (pauseState && pauseState === from) { 13621 pauseState = null; 13622 return; 13623 } 13624 delta = fromState ? state.position - fromState.position : 0; 13625 } else { 13626 replace(to); 13627 } 13628 listeners.forEach((listener) => { 13629 listener(currentLocation.value, from, { 13630 delta, 13631 type: NavigationType.pop, 13632 direction: delta ? delta > 0 ? NavigationDirection.forward : NavigationDirection.back : NavigationDirection.unknown 13633 }); 13634 }); 13635 }; 13636 function pauseListeners() { 13637 pauseState = currentLocation.value; 13638 } 13639 function listen(callback) { 13640 listeners.push(callback); 13641 const teardown = () => { 13642 const index2 = listeners.indexOf(callback); 13643 if (index2 > -1) 13644 listeners.splice(index2, 1); 13645 }; 13646 teardowns.push(teardown); 13647 return teardown; 13648 } 13649 function beforeUnloadListener() { 13650 const { history: history2 } = window; 13651 if (!history2.state) 13652 return; 13653 history2.replaceState(assign({}, history2.state, { scroll: computeScrollPosition() }), ""); 13654 } 13655 function destroy() { 13656 for (const teardown of teardowns) 13657 teardown(); 13658 teardowns = []; 13659 window.removeEventListener("popstate", popStateHandler); 13660 window.removeEventListener("beforeunload", beforeUnloadListener); 13661 } 13662 window.addEventListener("popstate", popStateHandler); 13663 window.addEventListener("beforeunload", beforeUnloadListener, { 13664 passive: true 13665 }); 13666 return { 13667 pauseListeners, 13668 listen, 13669 destroy 13670 }; 13671} 13672function buildState(back, current, forward, replaced = false, computeScroll = false) { 13673 return { 13674 back, 13675 current, 13676 forward, 13677 replaced, 13678 position: window.history.length, 13679 scroll: computeScroll ? computeScrollPosition() : null 13680 }; 13681} 13682function useHistoryStateNavigation(base) { 13683 const { history: history2, location: location2 } = window; 13684 const currentLocation = { 13685 value: createCurrentLocation(base, location2) 13686 }; 13687 const historyState = { value: history2.state }; 13688 if (!historyState.value) { 13689 changeLocation(currentLocation.value, { 13690 back: null, 13691 current: currentLocation.value, 13692 forward: null, 13693 // the length is off by one, we need to decrease it 13694 position: history2.length - 1, 13695 replaced: true, 13696 // don't add a scroll as the user may have an anchor, and we want 13697 // scrollBehavior to be triggered without a saved position 13698 scroll: null 13699 }, true); 13700 } 13701 function changeLocation(to, state, replace2) { 13702 const hashIndex = base.indexOf("#"); 13703 const url = hashIndex > -1 ? (location2.host && document.querySelector("base") ? base : base.slice(hashIndex)) + to : createBaseLocation() + base + to; 13704 try { 13705 history2[replace2 ? "replaceState" : "pushState"](state, "", url); 13706 historyState.value = state; 13707 } catch (err) { 13708 { 13709 console.error(err); 13710 } 13711 location2[replace2 ? "replace" : "assign"](url); 13712 } 13713 } 13714 function replace(to, data) { 13715 const state = assign({}, history2.state, buildState( 13716 historyState.value.back, 13717 // keep back and forward entries but override current position 13718 to, 13719 historyState.value.forward, 13720 true 13721 ), data, { position: historyState.value.position }); 13722 changeLocation(to, state, true); 13723 currentLocation.value = to; 13724 } 13725 function push2(to, data) { 13726 const currentState = assign( 13727 {}, 13728 // use current history state to gracefully handle a wrong call to 13729 // history.replaceState 13730 // https://github.com/vuejs/router/issues/366 13731 historyState.value, 13732 history2.state, 13733 { 13734 forward: to, 13735 scroll: computeScrollPosition() 13736 } 13737 ); 13738 changeLocation(currentState.current, currentState, true); 13739 const state = assign({}, buildState(currentLocation.value, to, null), { position: currentState.position + 1 }, data); 13740 changeLocation(to, state, false); 13741 currentLocation.value = to; 13742 } 13743 return { 13744 location: currentLocation, 13745 state: historyState, 13746 push: push2, 13747 replace 13748 }; 13749} 13750function createWebHistory(base) { 13751 base = normalizeBase(base); 13752 const historyNavigation = useHistoryStateNavigation(base); 13753 const historyListeners = useHistoryListeners(base, historyNavigation.state, historyNavigation.location, historyNavigation.replace); 13754 function go(delta, triggerListeners = true) { 13755 if (!triggerListeners) 13756 historyListeners.pauseListeners(); 13757 history.go(delta); 13758 } 13759 const routerHistory = assign({ 13760 // it's overridden right after 13761 location: "", 13762 base, 13763 go, 13764 createHref: createHref.bind(null, base) 13765 }, historyNavigation, historyListeners); 13766 Object.defineProperty(routerHistory, "location", { 13767 enumerable: true, 13768 get: () => historyNavigation.location.value 13769 }); 13770 Object.defineProperty(routerHistory, "state", { 13771 enumerable: true, 13772 get: () => historyNavigation.state.value 13773 }); 13774 return routerHistory; 13775} 13776function createWebHashHistory(base) { 13777 base = location.host ? base || location.pathname + location.search : ""; 13778 if (!base.includes("#")) 13779 base += "#"; 13780 return createWebHistory(base); 13781} 13782function isRouteLocation(route) { 13783 return typeof route === "string" || route && typeof route === "object"; 13784} 13785function isRouteName(name) { 13786 return typeof name === "string" || typeof name === "symbol"; 13787} 13788const NavigationFailureSymbol = Symbol(""); 13789var NavigationFailureType; 13790(function(NavigationFailureType2) { 13791 NavigationFailureType2[NavigationFailureType2["aborted"] = 4] = "aborted"; 13792 NavigationFailureType2[NavigationFailureType2["cancelled"] = 8] = "cancelled"; 13793 NavigationFailureType2[NavigationFailureType2["duplicated"] = 16] = "duplicated"; 13794})(NavigationFailureType || (NavigationFailureType = {})); 13795function createRouterError(type, params) { 13796 { 13797 return assign(new Error(), { 13798 type, 13799 [NavigationFailureSymbol]: true 13800 }, params); 13801 } 13802} 13803function isNavigationFailure(error, type) { 13804 return error instanceof Error && NavigationFailureSymbol in error && (type == null || !!(error.type & type)); 13805} 13806const BASE_PARAM_PATTERN = "[^/]+?"; 13807const BASE_PATH_PARSER_OPTIONS = { 13808 sensitive: false, 13809 strict: false, 13810 start: true, 13811 end: true 13812}; 13813const REGEX_CHARS_RE = /[.+*?^${}()[\]/\\]/g; 13814function tokensToParser(segments, extraOptions) { 13815 const options = assign({}, BASE_PATH_PARSER_OPTIONS, extraOptions); 13816 const score = []; 13817 let pattern = options.start ? "^" : "";
13818 const keys2 = []; 13819 for (const segment of segments) { 13820 const segmentScores = segment.length ? [] : [ 13821 90 13822 /* PathScore.Root */ 13823 ]; 13824 if (options.strict && !segment.length) 13825 pattern += "/"; 13826 for (let tokenIndex = 0; tokenIndex < segment.length; tokenIndex++) { 13827 const token = segment[tokenIndex]; 13828 let subSegmentScore = 40 + (options.sensitive ? 0.25 : 0); 13829 if (token.type === 0) { 13830 if (!tokenIndex) 13831 pattern += "/"; 13832 pattern += token.value.replace(REGEX_CHARS_RE, "\\$&"); 13833 subSegmentScore += 40; 13834 } else if (token.type === 1) { 13835 const { value, repeatable, optional, regexp } = token; 13836 keys2.push({ 13837 name: value, 13838 repeatable, 13839 optional 13840 }); 13841 const re2 = regexp ? regexp : BASE_PARAM_PATTERN; 13842 if (re2 !== BASE_PARAM_PATTERN) { 13843 subSegmentScore += 10; 13844 try { 13845 new RegExp(`(${re2})`); 13846 } catch (err) { 13847 throw new Error(`Invalid custom RegExp for param "${value}" (${re2}): ` + err.message); 13848 } 13849 } 13850 let subPattern = repeatable ? `((?:${re2})(?:/(?:${re2}))*)` : `(${re2})`; 13851 if (!tokenIndex) 13852 subPattern = // avoid an optional / if there are more segments e.g. /:p?-static 13853 // or /:p?-:p2 13854 optional && segment.length < 2 ? `(?:/${subPattern})` : "/" + subPattern; 13855 if (optional) 13856 subPattern += "?"; 13857 pattern += subPattern; 13858 subSegmentScore += 20; 13859 if (optional) 13860 subSegmentScore += -8; 13861 if (repeatable) 13862 subSegmentScore += -20; 13863 if (re2 === ".*") 13864 subSegmentScore += -50; 13865 } 13866 segmentScores.push(subSegmentScore); 13867 } 13868 score.push(segmentScores); 13869 } 13870 if (options.strict && options.end) { 13871 const i = score.length - 1; 13872 score[i][score[i].length - 1] += 0.7000000000000001; 13873 } 13874 if (!options.strict) 13875 pattern += "/?"; 13876 if (options.end) 13877 pattern += "$"; 13878 else if (options.strict && !pattern.endsWith("/")) 13879 pattern += "(?:/|$)"; 13880 const re = new RegExp(pattern, options.sensitive ? "" : "i"); 13881 function parse4(path) { 13882 const match2 = path.match(re); 13883 const params = {}; 13884 if (!match2) 13885 return null; 13886 for (let i = 1; i < match2.length; i++) { 13887 const value = match2[i] || ""; 13888 const key = keys2[i - 1]; 13889 params[key.name] = value && key.repeatable ? value.split("/") : value; 13890 } 13891 return params; 13892 } 13893 function stringify(params) { 13894 let path = ""; 13895 let avoidDuplicatedSlash = false; 13896 for (const segment of segments) { 13897 if (!avoidDuplicatedSlash || !path.endsWith("/")) 13898 path += "/"; 13899 avoidDuplicatedSlash = false; 13900 for (const token of segment) { 13901 if (token.type === 0) { 13902 path += token.value; 13903 } else if (token.type === 1) { 13904 const { value, repeatable, optional } = token; 13905 const param = value in params ? params[value] : ""; 13906 if (isArray$3(param) && !repeatable) { 13907 throw new Error(`Provided param "${value}" is an array but it is not repeatable (* or + modifiers)`); 13908 } 13909 const text = isArray$3(param) ? param.join("/") : param; 13910 if (!text) { 13911 if (optional) { 13912 if (segment.length < 2) { 13913 if (path.endsWith("/")) 13914 path = path.slice(0, -1); 13915 else 13916 avoidDuplicatedSlash = true; 13917 } 13918 } else 13919 throw new Error(`Missing required param "${value}"`); 13920 } 13921 path += text; 13922 } 13923 } 13924 } 13925 return path || "/"; 13926 } 13927 return { 13928 re, 13929 score, 13930 keys: keys2, 13931 parse: parse4, 13932 stringify 13933 }; 13934} 13935function compareScoreArray(a, b2) { 13936 let i = 0; 13937 while (i < a.length && i < b2.length) { 13938 const diff = b2[i] - a[i]; 13939 if (diff) 13940 return diff; 13941 i++; 13942 } 13943 if (a.length < b2.length) { 13944 return a.length === 1 && a[0] === 40 + 40 ? -1 : 1; 13945 } else if (a.length > b2.length) { 13946 return b2.length === 1 && b2[0] === 40 + 40 ? 1 : -1; 13947 } 13948 return 0; 13949} 13950function comparePathParserScore(a, b2) { 13951 let i = 0; 13952 const aScore = a.score; 13953 const bScore = b2.score; 13954 while (i < aScore.length && i < bScore.length) { 13955 const comp = compareScoreArray(aScore[i], bScore[i]); 13956 if (comp) 13957 return comp; 13958 i++; 13959 } 13960 if (Math.abs(bScore.length - aScore.length) === 1) { 13961 if (isLastScoreNegative(aScore)) 13962 return 1; 13963 if (isLastScoreNegative(bScore)) 13964 return -1; 13965 } 13966 return bScore.length - aScore.length; 13967} 13968function isLastScoreNegative(score) { 13969 const last = score[score.length - 1]; 13970 return score.length > 0 && last[last.length - 1] < 0; 13971} 13972const ROOT_TOKEN = { 13973 type: 0, 13974 value: "" 13975}; 13976const VALID_PARAM_RE = /[a-zA-Z0-9_]/; 13977function tokenizePath(path) { 13978 if (!path) 13979 return [[]]; 13980 if (path === "/") 13981 return [[ROOT_TOKEN]]; 13982 if (!path.startsWith("/")) { 13983 throw new Error(`Invalid path "${path}"`); 13984 } 13985 function crash(message2) { 13986 throw new Error(`ERR (${state})/"${buffer2}": ${message2}`); 13987 } 13988 let state = 0; 13989 let previousState = state; 13990 const tokens = []; 13991 let segment; 13992 function finalizeSegment() { 13993 if (segment) 13994 tokens.push(segment); 13995 segment = []; 13996 } 13997 let i = 0; 13998 let char; 13999 let buffer2 = ""; 14000 let customRe = ""; 14001 function consumeBuffer() { 14002 if (!buffer2) 14003 return; 14004 if (state === 0) { 14005 segment.push({ 14006 type: 0, 14007 value: buffer2 14008 }); 14009 } else if (state === 1 || state === 2 || state === 3) { 14010 if (segment.length > 1 && (char === "*" || char === "+")) 14011 crash(`A repeatable param (${buffer2}) must be alone in its segment. eg: '/:ids+.`); 14012 segment.push({ 14013 type: 1, 14014 value: buffer2, 14015 regexp: customRe, 14016 repeatable: char === "*" || char === "+", 14017 optional: char === "*" || char === "?" 14018 }); 14019 } else { 14020 crash("Invalid state to consume buffer"); 14021 } 14022 buffer2 = ""; 14023 } 14024 function addCharToBuffer() { 14025 buffer2 += char; 14026 } 14027 while (i < path.length) { 14028 char = path[i++]; 14029 if (char === "\\" && state !== 2) { 14030 previousState = state; 14031 state = 4; 14032 continue; 14033 } 14034 switch (state) { 14035 case 0: 14036 if (char === "/") { 14037 if (buffer2) { 14038 consumeBuffer(); 14039 } 14040 finalizeSegment(); 14041 } else if (char === ":") { 14042 consumeBuffer(); 14043 state = 1; 14044 } else { 14045 addCharToBuffer(); 14046 } 14047 break; 14048 case 4: 14049 addCharToBuffer(); 14050 state = previousState; 14051 break; 14052 case 1: 14053 if (char === "(") { 14054 state = 2; 14055 } else if (VALID_PARAM_RE.test(char)) { 14056 addCharToBuffer(); 14057 } else { 14058 consumeBuffer(); 14059 state = 0; 14060 if (char !== "*" && char !== "?" && char !== "+") 14061 i--; 14062 } 14063 break; 14064 case 2: 14065 if (char === ")") { 14066 if (customRe[customRe.length - 1] == "\\") 14067 customRe = customRe.slice(0, -1) + char; 14068 else 14069 state = 3; 14070 } else { 14071 customRe += char; 14072 } 14073 break; 14074 case 3: 14075 consumeBuffer(); 14076 state = 0; 14077 if (char !== "*" && char !== "?" && char !== "+") 14078 i--; 14079 customRe = ""; 14080 break; 14081 default: 14082 crash("Unknown state"); 14083 break; 14084 } 14085 } 14086 if (state === 2) 14087 crash(`Unfinished custom RegExp for param "${buffer2}"`); 14088 consumeBuffer(); 14089 finalizeSegment(); 14090 return tokens; 14091} 14092function createRouteRecordMatcher(record, parent, options) { 14093 const parser = tokensToParser(tokenizePath(record.path), options); 14094 const matcher2 = assign(parser, { 14095 record, 14096 parent, 14097 // these needs to be populated by the parent 14098 children: [],
14099 alias: [] 14100 }); 14101 if (parent) { 14102 if (!matcher2.record.aliasOf === !parent.record.aliasOf) 14103 parent.children.push(matcher2); 14104 } 14105 return matcher2; 14106} 14107function createRouterMatcher(routes, globalOptions) { 14108 const matchers = []; 14109 const matcherMap = /* @__PURE__ */ new Map(); 14110 globalOptions = mergeOptions({ strict: false, end: true, sensitive: false }, globalOptions); 14111 function getRecordMatcher(name) { 14112 return matcherMap.get(name); 14113 } 14114 function addRoute(record, parent, originalRecord) { 14115 const isRootAdd = !originalRecord; 14116 const mainNormalizedRecord = normalizeRouteRecord(record); 14117 mainNormalizedRecord.aliasOf = originalRecord && originalRecord.record; 14118 const options = mergeOptions(globalOptions, record); 14119 const normalizedRecords = [mainNormalizedRecord]; 14120 if ("alias" in record) { 14121 const aliases = typeof record.alias === "string" ? [record.alias] : record.alias; 14122 for (const alias of aliases) { 14123 normalizedRecords.push( 14124 // we need to normalize again to ensure the `mods` property 14125 // being non enumerable 14126 normalizeRouteRecord(assign({}, mainNormalizedRecord, { 14127 // this allows us to hold a copy of the `components` option 14128 // so that async components cache is hold on the original record 14129 components: originalRecord ? originalRecord.record.components : mainNormalizedRecord.components, 14130 path: alias, 14131 // we might be the child of an alias 14132 aliasOf: originalRecord ? originalRecord.record : mainNormalizedRecord 14133 // the aliases are always of the same kind as the original since they 14134 // are defined on the same record 14135 })) 14136 ); 14137 } 14138 } 14139 let matcher2; 14140 let originalMatcher; 14141 for (const normalizedRecord of normalizedRecords) { 14142 const { path } = normalizedRecord; 14143 if (parent && path[0] !== "/") { 14144 const parentPath = parent.record.path; 14145 const connectingSlash = parentPath[parentPath.length - 1] === "/" ? "" : "/"; 14146 normalizedRecord.path = parent.record.path + (path && connectingSlash + path); 14147 } 14148 matcher2 = createRouteRecordMatcher(normalizedRecord, parent, options); 14149 if (originalRecord) { 14150 originalRecord.alias.push(matcher2); 14151 } else { 14152 originalMatcher = originalMatcher || matcher2; 14153 if (originalMatcher !== matcher2) 14154 originalMatcher.alias.push(matcher2); 14155 if (isRootAdd && record.name && !isAliasRecord(matcher2)) { 14156 removeRoute(record.name); 14157 } 14158 } 14159 if (isMatchable(matcher2)) { 14160 insertMatcher(matcher2); 14161 } 14162 if (mainNormalizedRecord.children) { 14163 const children = mainNormalizedRecord.children; 14164 for (let i = 0; i < children.length; i++) { 14165 addRoute(children[i], matcher2, originalRecord && originalRecord.children[i]); 14166 } 14167 } 14168 originalRecord = originalRecord || matcher2; 14169 } 14170 return originalMatcher ? () => { 14171 removeRoute(originalMatcher); 14172 } : noop$2; 14173 } 14174 function removeRoute(matcherRef) { 14175 if (isRouteName(matcherRef)) { 14176 const matcher2 = matcherMap.get(matcherRef); 14177 if (matcher2) { 14178 matcherMap.delete(matcherRef); 14179 matchers.splice(matchers.indexOf(matcher2), 1); 14180 matcher2.children.forEach(removeRoute); 14181 matcher2.alias.forEach(removeRoute); 14182 } 14183 } else { 14184 const index2 = matchers.indexOf(matcherRef); 14185 if (index2 > -1) { 14186 matchers.splice(index2, 1); 14187 if (matcherRef.record.name) 14188 matcherMap.delete(matcherRef.record.name); 14189 matcherRef.children.forEach(removeRoute); 14190 matcherRef.alias.forEach(removeRoute); 14191 } 14192 } 14193 } 14194 function getRoutes() { 14195 return matchers; 14196 } 14197 function insertMatcher(matcher2) { 14198 const index2 = findInsertionIndex(matcher2, matchers); 14199 matchers.splice(index2, 0, matcher2); 14200 if (matcher2.record.name && !isAliasRecord(matcher2)) 14201 matcherMap.set(matcher2.record.name, matcher2); 14202 } 14203 function resolve2(location2, currentLocation) { 14204 let matcher2; 14205 let params = {}; 14206 let path; 14207 let name; 14208 if ("name" in location2 && location2.name) { 14209 matcher2 = matcherMap.get(location2.name); 14210 if (!matcher2) 14211 throw createRouterError(1, { 14212 location: location2 14213 }); 14214 name = matcher2.record.name; 14215 params = assign( 14216 // paramsFromLocation is a new object 14217 paramsFromLocation( 14218 currentLocation.params, 14219 // only keep params that exist in the resolved location 14220 // only keep optional params coming from a parent record 14221 matcher2.keys.filter((k3) => !k3.optional).concat(matcher2.parent ? matcher2.parent.keys.filter((k3) => k3.optional) : []).map((k3) => k3.name) 14222 ), 14223 // discard any existing params in the current location that do not exist here 14224 // #1497 this ensures better active/exact matching 14225 location2.params && paramsFromLocation(location2.params, matcher2.keys.map((k3) => k3.name)) 14226 ); 14227 path = matcher2.stringify(params); 14228 } else if (location2.path != null) { 14229 path = location2.path; 14230 matcher2 = matchers.find((m) => m.re.test(path)); 14231 if (matcher2) { 14232 params = matcher2.parse(path); 14233 name = matcher2.record.name; 14234 } 14235 } else { 14236 matcher2 = currentLocation.name ? matcherMap.get(currentLocation.name) : matchers.find((m) => m.re.test(currentLocation.path)); 14237 if (!matcher2) 14238 throw createRouterError(1, { 14239 location: location2, 14240 currentLocation 14241 }); 14242 name = matcher2.record.name; 14243 params = assign({}, currentLocation.params, location2.params); 14244 path = matcher2.stringify(params); 14245 } 14246 const matched = []; 14247 let parentMatcher = matcher2; 14248 while (parentMatcher) { 14249 matched.unshift(parentMatcher.record); 14250 parentMatcher = parentMatcher.parent; 14251 } 14252 return { 14253 name, 14254 path, 14255 params, 14256 matched, 14257 meta: mergeMetaFields(matched) 14258 }; 14259 }
14260 routes.forEach((route) => addRoute(route)); 14261 function clearRoutes() { 14262 matchers.length = 0; 14263 matcherMap.clear(); 14264 } 14265 return { 14266 addRoute, 14267 resolve: resolve2, 14268 removeRoute, 14269 clearRoutes, 14270 getRoutes, 14271 getRecordMatcher 14272 }; 14273} 14274function paramsFromLocation(params, keys2) { 14275 const newParams = {}; 14276 for (const key of keys2) { 14277 if (key in params) 14278 newParams[key] = params[key]; 14279 } 14280 return newParams; 14281} 14282function normalizeRouteRecord(record) { 14283 const normalized = { 14284 path: record.path, 14285 redirect: record.redirect, 14286 name: record.name, 14287 meta: record.meta || {}, 14288 aliasOf: record.aliasOf, 14289 beforeEnter: record.beforeEnter, 14290 props: normalizeRecordProps(record), 14291 children: record.children || [], 14292 instances: {}, 14293 leaveGuards: /* @__PURE__ */ new Set(), 14294 updateGuards: /* @__PURE__ */ new Set(), 14295 enterCallbacks: {}, 14296 // must be declared afterwards 14297 // mods: {}, 14298 components: "components" in record ? record.components || null : record.component && { default: record.component } 14299 }; 14300 Object.defineProperty(normalized, "mods", { 14301 value: {} 14302 }); 14303 return normalized; 14304} 14305function normalizeRecordProps(record) { 14306 const propsObject = {}; 14307 const props = record.props || false; 14308 if ("component" in record) { 14309 propsObject.default = props; 14310 } else { 14311 for (const name in record.components) 14312 propsObject[name] = typeof props === "object" ? props[name] : props; 14313 } 14314 return propsObject; 14315} 14316function isAliasRecord(record) { 14317 while (record) { 14318 if (record.record.aliasOf) 14319 return true; 14320 record = record.parent; 14321 } 14322 return false; 14323} 14324function mergeMetaFields(matched) { 14325 return matched.reduce((meta, record) => assign(meta, record.meta), {}); 14326} 14327function mergeOptions(defaults2, partialOptions) { 14328 const options = {}; 14329 for (const key in defaults2) { 14330 options[key] = key in partialOptions ? partialOptions[key] : defaults2[key]; 14331 } 14332 return options; 14333} 14334function findInsertionIndex(matcher2, matchers) { 14335 let lower = 0; 14336 let upper = matchers.length; 14337 while (lower !== upper) { 14338 const mid = lower + upper >> 1; 14339 const sortOrder = comparePathParserScore(matcher2, matchers[mid]); 14340 if (sortOrder < 0) { 14341 upper = mid; 14342 } else { 14343 lower = mid + 1; 14344 } 14345 } 14346 const insertionAncestor = getInsertionAncestor(matcher2); 14347 if (insertionAncestor) { 14348 upper = matchers.lastIndexOf(insertionAncestor, upper - 1); 14349 } 14350 return upper; 14351} 14352function getInsertionAncestor(matcher2) { 14353 let ancestor = matcher2; 14354 while (ancestor = ancestor.parent) { 14355 if (isMatchable(ancestor) && comparePathParserScore(matcher2, ancestor) === 0) { 14356 return ancestor; 14357 } 14358 } 14359 return; 14360} 14361function isMatchable({ record }) { 14362 return !!(record.name || record.components && Object.keys(record.components).length || record.redirect); 14363} 14364function parseQuery(search) { 14365 const query = {}; 14366 if (search === "" || search === "?") 14367 return query; 14368 const hasLeadingIM = search[0] === "?"; 14369 const searchParams = (hasLeadingIM ? search.slice(1) : search).split("&"); 14370 for (let i = 0; i < searchParams.length; ++i) { 14371 const searchParam = searchParams[i].replace(PLUS_RE, " "); 14372 const eqPos = searchParam.indexOf("="); 14373 const key = decode(eqPos < 0 ? searchParam : searchParam.slice(0, eqPos)); 14374 const value = eqPos < 0 ? null : decode(searchParam.slice(eqPos + 1)); 14375 if (key in query) { 14376 let currentValue = query[key]; 14377 if (!isArray$3(currentValue)) { 14378 currentValue = query[key] = [currentValue]; 14379 } 14380 currentValue.push(value); 14381 } else { 14382 query[key] = value; 14383 } 14384 } 14385 return query; 14386} 14387function stringifyQuery(query) { 14388 let search = ""; 14389 for (let key in query) { 14390 const value = query[key]; 14391 key = encodeQueryKey(key); 14392 if (value == null) { 14393 if (value !== void 0) { 14394 search += (search.length ? "&" : "") + key; 14395 } 14396 continue; 14397 } 14398 const values = isArray$3(value) ? value.map((v2) => v2 && encodeQueryValue(v2)) : [value && encodeQueryValue(value)]; 14399 values.forEach((value2) => { 14400 if (value2 !== void 0) { 14401 search += (search.length ? "&" : "") + key; 14402 if (value2 != null) 14403 search += "=" + value2; 14404 } 14405 }); 14406 } 14407 return search; 14408} 14409function normalizeQuery(query) { 14410 const normalizedQuery = {}; 14411 for (const key in query) { 14412 const value = query[key]; 14413 if (value !== void 0) { 14414 normalizedQuery[key] = isArray$3(value) ? value.map((v2) => v2 == null ? null : "" + v2) : value == null ? value : "" + value; 14415 } 14416 } 14417 return normalizedQuery; 14418} 14419const matchedRouteKey = Symbol(""); 14420const viewDepthKey = Symbol(""); 14421const routerKey = Symbol(""); 14422const routeLocationKey = Symbol(""); 14423const routerViewLocationKey = Symbol(""); 14424function useCallbacks() { 14425 let handlers = []; 14426 function add(handler) { 14427 handlers.push(handler); 14428 return () => { 14429 const i = handlers.indexOf(handler); 14430 if (i > -1) 14431 handlers.splice(i, 1); 14432 }; 14433 } 14434 function reset() { 14435 handlers = []; 14436 } 14437 return { 14438 add, 14439 list: () => handlers.slice(), 14440 reset 14441 }; 14442} 14443function guardToPromiseFn(guard, to, from, record, name, runWithContext = (fn) => fn()) { 14444 const enterCallbackArray = record && // name is defined if record
14444is because of the function overload 14445 (record.enterCallbacks[name] = record.enterCallbacks[name] || []); 14446 return () => new Promise((resolve2, reject) => { 14447 const next = (valid) => { 14448 if (valid === false) { 14449 reject(createRouterError(4, { 14450 from, 14451 to 14452 })); 14453 } else if (valid instanceof Error) { 14454 reject(valid); 14455 } else if (isRouteLocation(valid)) { 14456 reject(createRouterError(2, { 14457 from: to, 14458 to: valid 14459 })); 14460 } else { 14461 if (enterCallbackArray && // since enterCallbackArray is truthy, both record and name also are 14462 record.enterCallbacks[name] === enterCallbackArray && typeof valid === "function") { 14463 enterCallbackArray.push(valid); 14464 } 14465 resolve2(); 14466 } 14467 }; 14468 const guardReturn = runWithContext(() => guard.call(record && record.instances[name], to, from, next)); 14469 let guardCall = Promise.resolve(guardReturn); 14470 if (guard.length < 3) 14471 guardCall = guardCall.then(next); 14472 guardCall.catch((err) => reject(err)); 14473 }); 14474} 14475function extractComponentsGuards(matched, guardType, to, from, runWithContext = (fn) => fn()) { 14476 const guards = []; 14477 for (const record of matched) { 14478 for (const name in record.components) { 14479 let rawComponent = record.components[name]; 14480 if (guardType !== "beforeRouteEnter" && !record.instances[name]) 14481 continue; 14482 if (isRouteComponent(rawComponent)) { 14483 const options = rawComponent.__vccOpts || rawComponent; 14484 const guard = options[guardType]; 14485 guard && guards.push(guardToPromiseFn(guard, to, from, record, name, runWithContext)); 14486 } else { 14487 let componentPromise = rawComponent(); 14488 guards.push(() => componentPromise.then((resolved) => { 14489 if (!resolved) 14490 throw new Error(`Couldn't resolve component "${name}" at "${record.path}"`); 14491 const resolvedComponent = isESModule(resolved) ? resolved.default : resolved; 14492 record.mods[name] = resolved; 14493 record.components[name] = resolvedComponent; 14494 const options = resolvedComponent.__vccOpts || resolvedComponent; 14495 const guard = options[guardType]; 14496 return guard && guardToPromiseFn(guard, to, from, record, name, runWithContext)(); 14497 })); 14498 } 14499 } 14500 } 14501 return guards; 14502} 14503function useLink(props) { 14504 const router = inject(routerKey); 14505 const currentRoute = inject(routeLocationKey); 14506 const route = computed(() => { 14507 const to = unref(props.to); 14508 return router.resolve(to); 14509 }); 14510 const activeRecordIndex = computed(() => { 14511 const { matched } = route.value; 14512 const { length } = matched; 14513 const routeMatched = matched[length - 1]; 14514 const currentMatched = currentRoute.matched; 14515 if (!routeMatched || !currentMatched.length) 14516 return -1; 14517 const index2 = currentMatched.findIndex(isSameRouteRecord.bind(null, routeMatched)); 14518 if (index2 > -1) 14519 return index2; 14520 const parentRecordPath = getOriginalPath(matched[length - 2]); 14521 return ( 14522 // we are dealing with nested routes 14523 length > 1 && // if the parent and matched route have the same path, this link is 14524 // referring to the empty child. Or we currently are on a different 14525 // child of the same parent 14526 getOriginalPath(routeMatched) === parentRecordPath && // avoid comparing the child with its parent 14527 currentMatched[currentMatched.length - 1].path !== parentRecordPath ? currentMatched.findIndex(isSameRouteRecord.bind(null, matched[length - 2])) : index2 14528 ); 14529 }); 14530 const isActive = computed(() => activeRecordIndex.value > -1 && includesParams(currentRoute.params, route.value.params)); 14531 const isExactActive = computed(() => activeRecordIndex.value > -1 && activeRecordIndex.value === currentRoute.matched.length - 1 && isSameRouteLocationParams(currentRoute.params, route.value.params)); 14532 function navigate(e = {}) { 14533 if (guardEvent(e)) { 14534 const p2 = router[unref(props.replace) ? "replace" : "push"]( 14535 unref(props.to) 14536 // avoid uncaught errors are they are logged anyway 14537 ).catch(noop$2); 14538 if (props.viewTransition && typeof document !== "undefined" && "startViewTransition" in document) { 14539 document.startViewTransition(() => p2); 14540 } 14541 return p2; 14542 } 14543 return Promise.resolve(); 14544 } 14545 return { 14546 route, 14547 href: computed(() => route.value.href), 14548 isActive, 14549 isExactActive, 14550 navigate 14551 }; 14552} 14553function preferSingleVNode(vnodes) { 14554 return vnodes.length === 1 ? vnodes[0] : vnodes; 14555} 14556const RouterLinkImpl = /* @__PURE__ */ defineComponent({ 14557 name: "RouterLink", 14558 compatConfig: { MODE: 3 }, 14559 props: { 14560 to: { 14561 type: [String, Object], 14562 required: true 14563 }, 14564 replace: Boolean, 14565 activeClass: String, 14566 // inactiveClass: String, 14567 exactActiveClass: String, 14568 custom: Boolean, 14569 ariaCurrentValue: { 14570 type: String, 14571 default: "page" 14572 } 14573 }, 14574 useLink, 14575 setup(props, { slots }) { 14576 const link = reactive(useLink(props)); 14577 const { options } = inject(routerKey); 14578 const elClass = computed(() => ({ 14579 [getLinkClass(props.activeClass, options.linkActiveClass, "router-link-active")]: link.isActive, 14580 // [getLinkClass( 14581 // props.inactiveClass, 14582 // options.linkInactiveClass, 14583 // 'router-link-inactive' 14584 // )]: !link.isExactActive, 14585 [getLinkClass(props.exactActiveClass, options.linkExactActiveClass, "router-link-exact-active")]: link.isExactActive 14586 })); 14587 return () => { 14588 const children = slots.default && preferSingleVNode(slots.default(link)); 14589 return props.custom ? children : h("a", { 14590 "aria-current": link.isExactActive ? props.ariaCurrentValue : null, 14591 href: link.href, 14592 // this would override user added attrs but Vue will still add 14593 // the listener, so we end up triggering both 14594 onClick: link.navigate, 14595 class: elClass.value 14596 }, children); 14597 }; 14598 } 14599}); 14600const RouterLink = RouterLinkImpl; 14601function guardEvent(e) { 14602 if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) 14603 return; 14604 if (e.defaultPrevented) 14605 return; 14606 if (e.button !== void 0 && e.button !== 0) 14607 return; 14608 if (e.currentTarget && e.currentTarget.getAttribute) { 14609 const target = e.currentTarget.getAttribute("target"); 14610 if (/\b_blank\b/i.test(target)) 14611 return; 14612 } 14613 if (e.preventDefault) 14614 e.preventDefault(); 14615 return true; 14616} 14617function includesParams(outer, inner) { 14618 for (const key in inner) { 14619 const innerValue = inner[key]; 14620 const outerValue = outer[key]; 14621 if (typeof innerValue === "string") { 14622 if (innerValue !== outerValue) 14623 return false;
14624 } else { 14625 if (!isArray$3(outerValue) || outerValue.length !== innerValue.length || innerValue.some((value, i) => value !== outerValue[i])) 14626 return false; 14627 } 14628 } 14629 return true; 14630} 14631function getOriginalPath(record) { 14632 return record ? record.aliasOf ? record.aliasOf.path : record.path : ""; 14633} 14634const getLinkClass = (propClass, globalClass, defaultClass) => propClass != null ? propClass : globalClass != null ? globalClass : defaultClass; 14635const RouterViewImpl = /* @__PURE__ */ defineComponent({ 14636 name: "RouterView", 14637 // #674 we manually inherit them 14638 inheritAttrs: false, 14639 props: { 14640 name: { 14641 type: String, 14642 default: "default" 14643 }, 14644 route: Object 14645 }, 14646 // Better compat for @vue/compat users 14647 // https://github.com/vuejs/router/issues/1315 14648 compatConfig: { MODE: 3 }, 14649 setup(props, { attrs, slots }) { 14650 const injectedRoute = inject(routerViewLocationKey); 14651 const routeToDisplay = computed(() => props.route || injectedRoute.value); 14652 const injectedDepth = inject(viewDepthKey, 0); 14653 const depth = computed(() => { 14654 let initialDepth = unref(injectedDepth); 14655 const { matched } = routeToDisplay.value; 14656 let matchedRoute; 14657 while ((matchedRoute = matched[initialDepth]) && !matchedRoute.components) { 14658 initialDepth++; 14659 } 14660 return initialDepth; 14661 }); 14662 const matchedRouteRef = computed(() => routeToDisplay.value.matched[depth.value]); 14663 provide(viewDepthKey, computed(() => depth.value + 1)); 14664 provide(matchedRouteKey, matchedRouteRef); 14665 provide(routerViewLocationKey, routeToDisplay); 14666 const viewRef = ref(); 14667 watch(() => [viewRef.value, matchedRouteRef.value, props.name], ([instance, to, name], [oldInstance, from, oldName]) => { 14668 if (to) { 14669 to.instances[name] = instance; 14670 if (from && from !== to && instance && instance === oldInstance) { 14671 if (!to.leaveGuards.size) { 14672 to.leaveGuards = from.leaveGuards; 14673 } 14674 if (!to.updateGuards.size) { 14675 to.updateGuards = from.updateGuards; 14676 } 14677 } 14678 } 14679 if (instance && to && // if there is no instance but to and from are the same this might be 14680 // the first visit 14681 (!from || !isSameRouteRecord(to, from) || !oldInstance)) { 14682 (to.enterCallbacks[name] || []).forEach((callback) => callback(instance)); 14683 } 14684 }, { flush: "post" }); 14685 return () => { 14686 const route = routeToDisplay.value; 14687 const currentName = props.name; 14688 const matchedRoute = matchedRouteRef.value; 14689 const ViewComponent = matchedRoute && matchedRoute.components[currentName]; 14690 if (!ViewComponent) { 14691 return normalizeSlot(slots.default, { Component: ViewComponent, route }); 14692 } 14693 const routePropsOption = matchedRoute.props[currentName]; 14694 const routeProps = routePropsOption ? routePropsOption === true ? route.params : typeof routePropsOption === "function" ? routePropsOption(route) : routePropsOption : null; 14695 const onVnodeUnmounted = (vnode) => { 14696 if (vnode.component.isUnmounted) { 14697 matchedRoute.instances[currentName] = null; 14698 } 14699 }; 14700 const component = h(ViewComponent, assign({}, routeProps, attrs, { 14701 onVnodeUnmounted, 14702 ref: viewRef 14703 })); 14704 return ( 14705 // pass the vnode to the slot as a prop. 14706 // h and <component :is="..."> both accept vnodes 14707 normalizeSlot(slots.default, { Component: component, route }) || component 14708 ); 14709 }; 14710 } 14711}); 14712function normalizeSlot(slot, data) { 14713 if (!slot) 14714 return null; 14715 const slotContent = slot(data); 14716 return slotContent.length === 1 ? slotContent[0] : slotContent; 14717} 14718const RouterView = RouterViewImpl; 14719function createRouter(options) { 14720 const matcher2 = createRouterMatcher(options.routes, options); 14721 const parseQuery$12 = options.parseQuery || parseQuery; 14722 const stringifyQuery$12 = options.stringifyQuery || stringifyQuery; 14723 const routerHistory = options.history; 14724 const beforeGuards = useCallbacks(); 14725 const beforeResolveGuards = useCallbacks(); 14726 const afterGuards = useCallbacks(); 14727 const currentRoute = shallowRef(START_LOCATION_NORMALIZED); 14728 let pendingLocation = START_LOCATION_NORMALIZED; 14729 if (isBrowser && options.scrollBehavior && "scrollRestoration" in history) { 14730 history.scrollRestoration = "manual"; 14731 } 14732 const normalizeParams2 = applyToParams.bind(null, (paramValue) => "" + paramValue); 14733 const encodeParams = applyToParams.bind(null, encodeParam); 14734 const decodeParams = ( 14735 // @ts-expect-error: intentionally avoid the type check 14736 applyToParams.bind(null, decode) 14737 ); 14738 function addRoute(parentOrRoute, route) { 14739 let parent; 14740 let record; 14741 if (isRouteName(parentOrRoute)) { 14742 parent = matcher2.getRecordMatcher(parentOrRoute); 14743 record = route; 14744 } else { 14745 record = parentOrRoute; 14746 } 14747 return matcher2.addRoute(record, parent); 14748 } 14749 function removeRoute(name) { 14750 const recordMatcher = matcher2.getRecordMatcher(name); 14751 if (recordMatcher) { 14752 matcher2.removeRoute(recordMatcher); 14753 } 14754 } 14755 function getRoutes() { 14756 return matcher2.getRoutes().map((routeMatcher) => routeMatcher.record); 14757 } 14758 function hasRoute(name) { 14759 return !!matcher2.getRecordMatcher(name); 14760 } 14761 function resolve2(rawLocation, currentLocation) { 14762 currentLocation = assign({}, currentLocation || currentRoute.value); 14763 if (typeof rawLocation === "string") { 14764 const locationNormalized = parseURL(parseQuery$12, rawLocation, currentLocation.path); 14765 const matchedRoute2 = matcher2.resolve({ path: locationNormalized.path }, currentLocation); 14766 const href2 = routerHistory.createHref(locationNormalized.fullPath); 14767 return assign(locationNormalized, matchedRoute2, { 14768 params: decodeParams(matchedRoute2.params), 14769 hash: decode(locationNormalized.hash), 14770 redirectedFrom: void 0, 14771 href: href2 14772 }); 14773 } 14774 let matcherLocation; 14775 if (rawLocation.path != null) { 14776 matcherLocation = assign({}, rawLocation, { 14777 path: parseURL(parseQuery$12, rawLocation.path, currentLocation.path).path 14778 }); 14779 } else { 14780 const targetParams = assign({}, rawLocation.params); 14781 for (const key in targetParams) { 14782 if (targetParams[key] == null) { 14783 delete targetParams[key]; 14784 } 14785 } 14786 matcherLocation = assign({}, rawLocation, { 14787 params: encodeParams(targetParams) 14788 }); 14789 currentLocation.params = encodeParams(currentLocation.params); 14790 } 14791 const matchedRoute = matcher2.resolve(matcherLocation, currentLocation); 14792 const hash2 = rawLocation.hash || ""; 14793 matchedRoute.params = normalizeParams2(decodeParams(matchedRoute.params)); 14794 const fullPath = stringifyURL(stringifyQuery$12, assign({}, rawLocation, { 14795 hash: encodeHash(hash2), 14796 path: matchedRoute.path 14797 })); 14798 const href = routerHistory.createHref(fullPath); 14799 return assign({ 14800 fullPath, 14801 // keep the hash encoded so fullPath is effectively path + encodedQuery + 14802 // hash 14803 hash: hash2, 14804 query: ( 14805 // if the user is using a custom query lib like qs, we might have 14806 // nested objects, so we keep the query as is, meaning it can contain 14807 // numbers at `$route.query`, but at the point, the user will have to 14808 // use their own type anyway. 14809 // https://github.com/vuejs/router/issues/328#issuecomment-649481567
14810 stringifyQuery$12 === stringifyQuery ? normalizeQuery(rawLocation.query) : rawLocation.query || {} 14811 ) 14812 }, matchedRoute, { 14813 redirectedFrom: void 0, 14814 href 14815 }); 14816 } 14817 function locationAsObject(to) { 14818 return typeof to === "string" ? parseURL(parseQuery$12, to, currentRoute.value.path) : assign({}, to); 14819 } 14820 function checkCanceledNavigation(to, from) { 14821 if (pendingLocation !== to) { 14822 return createRouterError(8, { 14823 from, 14824 to 14825 }); 14826 } 14827 } 14828 function push2(to) { 14829 return pushWithRedirect(to); 14830 } 14831 function replace(to) { 14832 return push2(assign(locationAsObject(to), { replace: true })); 14833 } 14834 function handleRedirectRecord(to) { 14835 const lastMatched = to.matched[to.matched.length - 1]; 14836 if (lastMatched && lastMatched.redirect) { 14837 const { redirect } = lastMatched; 14838 let newTargetLocation = typeof redirect === "function" ? redirect(to) : redirect; 14839 if (typeof newTargetLocation === "string") { 14840 newTargetLocation = newTargetLocation.includes("?") || newTargetLocation.includes("#") ? newTargetLocation = locationAsObject(newTargetLocation) : ( 14841 // force empty params 14842 { path: newTargetLocation } 14843 ); 14844 newTargetLocation.params = {}; 14845 } 14846 return assign({ 14847 query: to.query, 14848 hash: to.hash, 14849 // avoid transferring params if the redirect has a path 14850 params: newTargetLocation.path != null ? {} : to.params 14851 }, newTargetLocation); 14852 } 14853 } 14854 function pushWithRedirect(to, redirectedFrom) { 14855 const targetLocation = pendingLocation = resolve2(to); 14856 const from = currentRoute.value; 14857 const data = to.state; 14858 const force = to.force; 14859 const replace2 = to.replace === true; 14860 const shouldRedirect = handleRedirectRecord(targetLocation); 14861 if (shouldRedirect) 14862 return pushWithRedirect( 14863 assign(locationAsObject(shouldRedirect), { 14864 state: typeof shouldRedirect === "object" ? assign({}, data, shouldRedirect.state) : data, 14865 force, 14866 replace: replace2 14867 }), 14868 // keep original redirectedFrom if it exists 14869 redirectedFrom || targetLocation 14870 ); 14871 const toLocation = targetLocation; 14872 toLocation.redirectedFrom = redirectedFrom; 14873 let failure; 14874 if (!force && isSameRouteLocation(stringifyQuery$12, from, targetLocation)) { 14875 failure = createRouterError(16, { to: toLocation, from }); 14876 handleScroll( 14877 from, 14878 from, 14879 // this is a push, the only way for it to be triggered from a 14880 // history.listen is with a redirect, which makes it become a push 14881 true, 14882 // This cannot be the first navigation because the initial location 14883 // cannot be manually navigated to 14884 false 14885 ); 14886 } 14887 return (failure ? Promise.resolve(failure) : navigate(toLocation, from)).catch((error) => isNavigationFailure(error) ? ( 14888 // navigation redirects still mark the router as ready 14889 isNavigationFailure( 14890 error, 14891 2 14892 /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */ 14893 ) ? error : markAsReady(error) 14894 ) : ( 14895 // reject any unknown error 14896 triggerError(error, toLocation, from) 14897 )).then((failure2) => { 14898 if (failure2) { 14899 if (isNavigationFailure( 14900 failure2, 14901 2 14902 /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */ 14903 )) { 14904 return pushWithRedirect( 14905 // keep options 14906 assign({ 14907 // preserve an existing replacement but allow the redirect to override it 14908 replace: replace2 14909 }, locationAsObject(failure2.to), { 14910 state: typeof failure2.to === "object" ? assign({}, data, failure2.to.state) : data, 14911 force 14912 }), 14913 // preserve the original redirectedFrom if any 14914 redirectedFrom || toLocation 14915 ); 14916 } 14917 } else { 14918 failure2 = finalizeNavigation(toLocation, from, true, replace2, data); 14919 } 14920 triggerAfterEach(toLocation, from, failure2); 14921 return failure2; 14922 }); 14923 } 14924 function checkCanceledNavigationAndReject(to, from) { 14925 const error = checkCanceledNavigation(to, from); 14926 return error ? Promise.reject(error) : Promise.resolve(); 14927 } 14928 function runWithContext(fn) { 14929 const app = installedApps.values().next().value; 14930 return app && typeof app.runWithContext === "function" ? app.runWithContext(fn) : fn(); 14931 } 14932 function navigate(to, from) { 14933 let guards; 14934 const [leavingRecords, updatingRecords, enteringRecords] = extractChangingRecords(to, from); 14935 guards = extractComponentsGuards(leavingRecords.reverse(), "beforeRouteLeave", to, from); 14936 for (const record of leavingRecords) { 14937 record.leaveGuards.forEach((guard) => { 14938 guards.push(guardToPromiseFn(guard, to, from)); 14939 }); 14940 } 14941 const canceledNavigationCheck = checkCanceledNavigationAndReject.bind(null, to, from); 14942 guards.push(canceledNavigationCheck); 14943 return runGuardQueue(guards).then(() => { 14944 guards = []; 14945 for (const guard of beforeGuards.list()) { 14946 guards.push(guardToPromiseFn(guard, to, from)); 14947 } 14948 guards.push(canceledNavigationCheck); 14949 return runGuardQueue(guards); 14950 }).then(() => { 14951 guards = extractComponentsGuards(updatingRecords, "beforeRouteUpdate", to, from); 14952 for (const record of updatingRecords) { 14953 record.updateGuards.forEach((guard) => { 14954 guards.push(guardToPromiseFn(guard, to, from)); 14955 }); 14956 } 14957 guards.push(canceledNavigationCheck); 14958 return runGuardQueue(guards); 14959 }).then(() => { 14960 guards = []; 14961 for (const record of enteringRecords) { 14962 if (record.beforeEnter) { 14963 if (isArray$3(record.beforeEnter)) { 14964 for (const beforeEnter of record.beforeEnter) 14965 guards.push(guardToPromiseFn(beforeEnter, to, from)); 14966 } else { 14967 guards.push(guardToPromiseFn(record.beforeEnter, to, from)); 14968 } 14969 } 14970 } 14971 guards.push(canceledNavigationCheck); 14972 return runGuardQueue(guards); 14973 }).then(() => { 14974 to.matched.forEach((record) => record.enterCallbacks = {}); 14975 guards = extractComponentsGuards(enteringRecords, "beforeRouteEnter", to, from, runWithContext); 14976 guards.push(canceledNavigationCheck); 14977 return runGuardQueue(guards); 14978 }).then(() => { 14979 guards = []; 14980 for (const guard of beforeResolveGuards.list()) { 14981 guards.push(guardToPromiseFn(guard, to, from)); 14982 } 14983 guards.push(canceledNavigationCheck); 14984 return runGuardQueue(guards); 14985 }).catch((err) => isNavigationFailure( 14986 err, 14987 8 14988 /* ErrorTypes.NAVIGATION_CANCELLED */ 14989 ) ? err : Promise.reject(err)); 14990 } 14991 function triggerAfterEach(to, from, failure) {
14992 afterGuards.list().forEach((guard) => runWithContext(() => guard(to, from, failure))); 14993 } 14994 function finalizeNavigation(toLocation, from, isPush, replace2, data) { 14995 const error = checkCanceledNavigation(toLocation, from); 14996 if (error) 14997 return error; 14998 const isFirstNavigation = from === START_LOCATION_NORMALIZED; 14999 const state = !isBrowser ? {} : history.state; 15000 if (isPush) { 15001 if (replace2 || isFirstNavigation) 15002 routerHistory.replace(toLocation.fullPath, assign({ 15003 scroll: isFirstNavigation && state && state.scroll 15004 }, data)); 15005 else 15006 routerHistory.push(toLocation.fullPath, data); 15007 } 15008 currentRoute.value = toLocation; 15009 handleScroll(toLocation, from, isPush, isFirstNavigation); 15010 markAsReady(); 15011 } 15012 let removeHistoryListener; 15013 function setupListeners() { 15014 if (removeHistoryListener) 15015 return; 15016 removeHistoryListener = routerHistory.listen((to, _from, info) => { 15017 if (!router.listening) 15018 return; 15019 const toLocation = resolve2(to); 15020 const shouldRedirect = handleRedirectRecord(toLocation); 15021 if (shouldRedirect) { 15022 pushWithRedirect(assign(shouldRedirect, { replace: true, force: true }), toLocation).catch(noop$2); 15023 return; 15024 } 15025 pendingLocation = toLocation; 15026 const from = currentRoute.value; 15027 if (isBrowser) { 15028 saveScrollPosition(getScrollKey(from.fullPath, info.delta), computeScrollPosition()); 15029 } 15030 navigate(toLocation, from).catch((error) => { 15031 if (isNavigationFailure( 15032 error, 15033 4 | 8 15034 /* ErrorTypes.NAVIGATION_CANCELLED */ 15035 )) { 15036 return error; 15037 } 15038 if (isNavigationFailure( 15039 error, 15040 2 15041 /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */ 15042 )) { 15043 pushWithRedirect( 15044 assign(locationAsObject(error.to), { 15045 force: true 15046 }), 15047 toLocation 15048 // avoid an uncaught rejection, let push call triggerError 15049 ).then((failure) => { 15050 if (isNavigationFailure( 15051 failure, 15052 4 | 16 15053 /* ErrorTypes.NAVIGATION_DUPLICATED */ 15054 ) && !info.delta && info.type === NavigationType.pop) { 15055 routerHistory.go(-1, false); 15056 } 15057 }).catch(noop$2); 15058 return Promise.reject(); 15059 } 15060 if (info.delta) { 15061 routerHistory.go(-info.delta, false); 15062 } 15063 return triggerError(error, toLocation, from); 15064 }).then((failure) => { 15065 failure = failure || finalizeNavigation( 15066 // after navigation, all matched components are resolved 15067 toLocation, 15068 from, 15069 false 15070 ); 15071 if (failure) { 15072 if (info.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history 15073 // entry while a different route is displayed 15074 !isNavigationFailure( 15075 failure, 15076 8 15077 /* ErrorTypes.NAVIGATION_CANCELLED */ 15078 )) { 15079 routerHistory.go(-info.delta, false); 15080 } else if (info.type === NavigationType.pop && isNavigationFailure( 15081 failure, 15082 4 | 16 15083 /* ErrorTypes.NAVIGATION_DUPLICATED */ 15084 )) { 15085 routerHistory.go(-1, false); 15086 } 15087 } 15088 triggerAfterEach(toLocation, from, failure); 15089 }).catch(noop$2); 15090 }); 15091 } 15092 let readyHandlers = useCallbacks(); 15093 let errorListeners = useCallbacks(); 15094 let ready; 15095 function triggerError(error, to, from) { 15096 markAsReady(error); 15097 const list = errorListeners.list(); 15098 if (list.length) { 15099 list.forEach((handler) => handler(error, to, from)); 15100 } else { 15101 console.error(error); 15102 } 15103 return Promise.reject(error); 15104 } 15105 function isReady() { 15106 if (ready && currentRoute.value !== START_LOCATION_NORMALIZED) 15107 return Promise.resolve(); 15108 return new Promise((resolve22, reject) => { 15109 readyHandlers.add([resolve22, reject]); 15110 }); 15111 } 15112 function markAsReady(err) { 15113 if (!ready) { 15114 ready = !err; 15115 setupListeners();
15116 readyHandlers.list().forEach(([resolve22, reject]) => err ? reject(err) : resolve22()); 15117 readyHandlers.reset(); 15118 } 15119 return err; 15120 } 15121 function handleScroll(to, from, isPush, isFirstNavigation) { 15122 const { scrollBehavior } = options; 15123 if (!isBrowser || !scrollBehavior) 15124 return Promise.resolve(); 15125 const scrollPosition = !isPush && getSavedScrollPosition(getScrollKey(to.fullPath, 0)) || (isFirstNavigation || !isPush) && history.state && history.state.scroll || null; 15126 return nextTick().then(() => scrollBehavior(to, from, scrollPosition)).then((position) => position && scrollToPosition(position)).catch((err) => triggerError(err, to, from)); 15127 } 15128 const go = (delta) => routerHistory.go(delta); 15129 let started; 15130 const installedApps = /* @__PURE__ */ new Set(); 15131 const router = { 15132 currentRoute, 15133 listening: true, 15134 addRoute, 15135 removeRoute, 15136 clearRoutes: matcher2.clearRoutes, 15137 hasRoute, 15138 getRoutes, 15139 resolve: resolve2, 15140 options, 15141 push: push2, 15142 replace, 15143 go, 15144 back: () => go(-1), 15145 forward: () => go(1), 15146 beforeEach: beforeGuards.add, 15147 beforeResolve: beforeResolveGuards.add, 15148 afterEach: afterGuards.add, 15149 onError: errorListeners.add, 15150 isReady, 15151 install(app) { 15152 const router2 = this; 15153 app.component("RouterLink", RouterLink); 15154 app.component("RouterView", RouterView); 15155 app.config.globalProperties.$router = router2; 15156 Object.defineProperty(app.config.globalProperties, "$route", { 15157 enumerable: true, 15158 get: () => unref(currentRoute) 15159 }); 15160 if (isBrowser && // used for the initial navigation client side to avoid pushing 15161 // multiple times when the router is used in multiple apps 15162 !started && currentRoute.value === START_LOCATION_NORMALIZED) { 15163 started = true; 15164 push2(routerHistory.location).catch((err) => { 15165 }); 15166 } 15167 const reactiveRoute = {}; 15168 for (const key in START_LOCATION_NORMALIZED) { 15169 Object.defineProperty(reactiveRoute, key, { 15170 get: () => currentRoute.value[key], 15171 enumerable: true 15172 }); 15173 } 15174 app.provide(routerKey, router2); 15175 app.provide(routeLocationKey, shallowReactive(reactiveRoute)); 15176 app.provide(routerViewLocationKey, currentRoute); 15177 const unmountApp = app.unmount; 15178 installedApps.add(app); 15179 app.unmount = function() { 15180 installedApps.delete(app); 15181 if (installedApps.size < 1) { 15182 pendingLocation = START_LOCATION_NORMALIZED; 15183 removeHistoryListener && removeHistoryListener(); 15184 removeHistoryListener = null; 15185 currentRoute.value = START_LOCATION_NORMALIZED; 15186 started = false; 15187 ready = false; 15188 } 15189 unmountApp(); 15190 }; 15191 } 15192 }; 15193 function runGuardQueue(guards) { 15194 return guards.reduce((promise, guard) => promise.then(() => runWithContext(guard)), Promise.resolve()); 15195 } 15196 return router; 15197} 15198function extractChangingRecords(to, from) { 15199 const leavingRecords = []; 15200 const updatingRecords = []; 15201 const enteringRecords = []; 15202 const len = Math.max(from.matched.length, to.matched.length); 15203 for (let i = 0; i < len; i++) { 15204 const recordFrom = from.matched[i]; 15205 if (recordFrom) { 15206 if (to.matched.find((record) => isSameRouteRecord(record, recordFrom))) 15207 updatingRecords.push(recordFrom); 15208 else 15209 leavingRecords.push(recordFrom); 15210 } 15211 const recordTo = to.matched[i]; 15212 if (recordTo) { 15213 if (!from.matched.find((record) => isSameRouteRecord(record, recordTo))) { 15214 enteringRecords.push(recordTo); 15215 } 15216 } 15217 } 15218 return [leavingRecords, updatingRecords, enteringRecords]; 15219} 15220function useRouter$1() { 15221 return inject(routerKey); 15222} 15223function useRoute$1(_name) { 15224 return inject(routeLocationKey); 15225} 15226const _wrapInTransition = (props, children) => { 15227 return { default: () => { 15228 var _a; 15229 return props ? h(Transition, props === true ? {} : props, children) : (_a = children.default) == null ? void 0 : _a.call(children); 15230 } }; 15231}; 15232const ROUTE_KEY_PARENTHESES_RE = /(:\w+)\([^)]+\)/g; 15233const ROUTE_KEY_SYMBOLS_RE = /(:\w+)[?+*]/g; 15234const ROUTE_KEY_NORMAL_RE = /:\w+/g; 15235function generateRouteKey(route) { 15236 const source = (route == null ? void 0 : route.meta.key) ?? route.path.replace(ROUTE_KEY_PARENTHESES_RE, "$1").replace(ROUTE_KEY_SYMBOLS_RE, "$1").replace(ROUTE_KEY_NORMAL_RE, (r2) => { 15237 var _a; 15238 return ((_a = route.params[r2.slice(1)]) == null ? void 0 : _a.toString()) || ""; 15239 }); 15240 return typeof source === "function" ? source(route) : source; 15241} 15242function isChangingPage(to, from) { 15243 if (to === from || from === START_LOCATION_NORMALIZED) { 15244 return false;
15245 } 15246 if (generateRouteKey(to) !== generateRouteKey(from)) { 15247 return true; 15248 } 15249 const areComponentsSame = to.matched.every( 15250 (comp, index2) => { 15251 var _a, _b; 15252 return comp.components && comp.components.default === ((_b = (_a = from.matched[index2]) == null ? void 0 : _a.components) == null ? void 0 : _b.default); 15253 } 15254 ); 15255 if (areComponentsSame) { 15256 return false; 15257 } 15258 return true; 15259} 15260const routerOptions0 = { 15261 scrollBehavior(to, from, savedPosition) { 15262 var _a; 15263 const nuxtApp = useNuxtApp(); 15264 const behavior = ((_a = useRouter$2().options) == null ? void 0 : _a.scrollBehaviorType) ?? "auto"; 15265 let position = savedPosition || void 0; 15266 const routeAllowsScrollToTop = typeof to.meta.scrollToTop === "function" ? to.meta.scrollToTop(to, from) : to.meta.scrollToTop; 15267 if (!position && from && to && routeAllowsScrollToTop !== false && isChangingPage(to, from)) { 15268 position = { left: 0, top: 0 }; 15269 } 15270 if (to.path === from.path) { 15271 if (from.hash && !to.hash) { 15272 return { left: 0, top: 0 }; 15273 } 15274 if (to.hash) { 15275 return { el: to.hash, top: _getHashElementScrollMarginTop(to.hash), behavior }; 15276 } 15277 return false; 15278 } 15279 const hasTransition = (route) => !!(route.meta.pageTransition ?? appPageTransition); 15280 const hookToWait = hasTransition(from) && hasTransition(to) ? "page:transition:finish" : "page:loading:end"; 15281 return new Promise((resolve2) => { 15282 nuxtApp.hooks.hookOnce(hookToWait, () => { 15283 requestAnimationFrame(() => resolve2(_calculatePosition(to, "instant", position))); 15284 }); 15285 }); 15286 } 15287}; 15288function _getHashElementScrollMarginTop(selector) { 15289 try { 15290 const elem = document.querySelector(selector); 15291 if (elem) { 15292 return (Number.parseFloat(getComputedStyle(elem).scrollMarginTop) || 0) + (Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0); 15293 } 15294 } catch { 15295 } 15296 return 0; 15297} 15298function _calculatePosition(to, scrollBehaviorType, position) { 15299 if (position) { 15300 return position; 15301 } 15302 if (to.hash) { 15303 return { 15304 el: to.hash, 15305 top: _getHashElementScrollMarginTop(to.hash), 15306 behavior: scrollBehaviorType 15307 }; 15308 } 15309 return { left: 0, top: 0, behavior: scrollBehaviorType }; 15310} 15311const setInterval = window.setInterval; 15312const routerOptions1 = { 15313 scrollBehavior(to, from, savedPosition) { 15314 if (savedPosition) { 15315 return savedPosition; 15316 } 15317 window.scrollTo(0, 0); 15318 if (to.hash) { 15319 let attempts = 0; 15320 const maxAttempts = 10; 15321 let id = setInterval(() => { 15322 const element = document.getElementById(to.hash.substring(1)); 15323 if (element) { 15324 element.scrollIntoView({ behavior: "smooth" }); 15325 if (id) { 15326 clearInterval(id); 15327 } 15328 } else if (++attempts >= maxAttempts) { 15329 clearInterval(id); 15330 } 15331 }, 600); 15332 } 15333 } 15334}; 15335const configRouterOptions = { 15336 hashMode: false, 15337 scrollBehaviorType: "auto" 15338}; 15339const hashMode = routerOptions0.hashMode ?? false; 15340const routerOptions = { 15341 ...configRouterOptions, 15342 ...routerOptions0, 15343 ...routerOptions1 15344}; 15345function serialize(o) { 15346 return typeof o == "string" ? `'${o}'` : new c$1().serialize(o); 15347} 15348const c$1 = /* @__PURE__ */ function() { 15349 var _t; 15350 class o { 15351 constructor() { 15352 __privateAdd(this, _t, /* @__PURE__ */ new Map()); 15353 } 15354 compare(t, r2) { 15355 const e = typeof t, n = typeof r2; 15356 return e === "string" && n === "string" ? t.localeCompare(r2) : e === "number" && n === "number" ? t - r2 : String.prototype.localeCompare.call(this.serialize(t, true), this.serialize(r2, true)); 15357 } 15358 serialize(t, r2) { 15359 if (t === null) return "null"; 15360 switch (typeof t) { 15361 case "string": 15362 return r2 ? t : `'${t}'`; 15363 case "bigint": 15364 return `${t}n`; 15365 case "object": 15366 return this.$object(t); 15367 case "function": 15368 return this.$function(t); 15369 } 15370 return String(t); 15371 } 15372 serializeObject(t) { 15373 const r2 = Object.prototype.toString.call(t); 15374 if (r2 !== "[object Object]") return this.serializeBuiltInType(r2.length < 10 ? `unknown:${r2}` : r2.slice(8, -1), t); 15375 const e = t.constructor, n = e === Object || e === void 0 ? "" : e.name; 15376 if (n !== "" && globalThis[n] === e) return this.serializeBuiltInType(n, t); 15377 if (typeof t.toJSON == "function") { 15378 const i = t.toJSON(); 15379 return n + (i !== null && typeof i == "object" ? this.$object(i) : `(${this.serialize(i)})`); 15380 } 15381 return this.serializeObjectEntries(n, Object.entries(t)); 15382 } 15383 serializeBuiltInType(t, r2) { 15384 const e = this["$" + t]; 15385 if (e) return e.call(this, r2); 15386 if (typeof (r2 == null ? void 0 : r2.entries) == "function") return this.serializeObjectEntries(t, r2.entries()); 15387 throw new Error(`Cannot serialize ${t}`); 15388 } 15389 serializeObjectEntries(t, r2) { 15390 const e = Array.from(r2).sort((i, a) => this.compare(i[0], a[0])); 15391 let n = `${t}{`; 15392 for (let i = 0; i < e.length; i++) { 15393 const [a, l3] = e[i]; 15394 n += `${this.serialize(a, true)}:${this.serialize(l3)}`, i < e.length - 1 && (n += ","); 15395 } 15396 return n + "}"; 15397 } 15398 $object(t) { 15399 let r2 = __privateGet(this, _t).get(t); 15400 return r2 === void 0 && (__privateGet(this, _t).set(t, `#${__privateGet(this, _t).size}`), r2 = this.serializeObject(t), __privateGet(this, _t).set(t, r2)), r2; 15401 } 15402 $function(t) { 15403 const r2 = Function.prototype.toString.call(t); 15404 return r2.slice(-15) === "[native code] }" ? `${t.name || ""}()[native]` : `${t.name}(${t.length})${r2.replace(/\s*\n\s*/g, "")}`; 15405 } 15406 $Array(t) { 15407 let r2 = "["; 15408 for (let e = 0; e < t.length; e++) r2 += this.serialize(t[e]), e < t.length - 1 && (r2 += ","); 15409 return r2 + "]"; 15410 } 15411 $Date(t) {
15412 try { 15413 return `Date(${t.toISOString()})`; 15414 } catch { 15415 return "Date(null)"; 15416 } 15417 } 15418 $ArrayBuffer(t) { 15419 return `ArrayBuffer[${new Uint8Array(t).join(",")}]`; 15420 } 15421 $Set(t) { 15422 return `Set${this.$Array(Array.from(t).sort((r2, e) => this.compare(r2, e)))}`; 15423 } 15424 $Map(t) { 15425 return this.serializeObjectEntries("Map", t.entries()); 15426 } 15427 } 15428 _t = new WeakMap(); 15429 for (const s of ["Error", "RegExp", "URL"]) o.prototype["$" + s] = function(t) { 15430 return `${s}(${t})`; 15431 }; 15432 for (const s of ["Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array"]) o.prototype["$" + s] = function(t) { 15433 return `${s}[${t.join(",")}]`; 15434 }; 15435 for (const s of ["BigInt64Array", "BigUint64Array"]) o.prototype["$" + s] = function(t) { 15436 return `${s}[${t.join("n,")}${t.length > 0 ? "n" : ""}]`; 15437 }; 15438 return o; 15439}(); 15440const z = [1779033703, -1150833019, 1013904242, -1521486534, 1359893119, -1694144372, 528734635, 1541459225], R$1 = [1116352408, 1899447441, -1245643825, -373957723, 961987163, 1508970993, -1841331548, -1424204075, -670586216, 310598401, 607225278, 1426881987, 1925078388, -2132889090, -1680079193, -1046744716, -459576895, -272742522, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, -1740746414, -1473132947, -1341970488, -1084653625, -958395405, -710438585, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, -2117940946, -1838011259, -1564481375, -1474664885, -1035236496, -949202525, -778901479, -694614492, -200395387, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, -2067236844, -1933114872, -1866530822, -1538233109, -1090935817, -965641998], S$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", r = []; 15441let k$1 = class k { 15442 constructor() { 15443 __publicField(this, "_data", new l$1()); 15444 __publicField(this, "_hash", new l$1([...z])); 15445 __publicField(this, "_nDataBytes", 0); 15446 __publicField(this, "_minBufferSize", 0); 15447 } 15448 finalize(e) { 15449 e && this._append(e); 15450 const s = this._nDataBytes * 8, t = this._data.sigBytes * 8; 15451 return this._data.words[t >>> 5] |= 128 << 24 - t % 32, this._data.words[(t + 64 >>> 9 << 4) + 14] = Math.floor(s / 4294967296), this._data.words[(t + 64 >>> 9 << 4) + 15] = s, this._data.sigBytes = this._data.words.length * 4, this._process(), this._hash; 15452 } 15453 _doProcessBlock(e, s) { 15454 const t = this._hash.words; 15455 let i = t[0], o = t[1], a = t[2], c2 = t[3], h2 = t[4], g = t[5], f = t[6], y = t[7]; 15456 for (let n = 0; n < 64; n++) { 15457 if (n < 16) r[n] = e[s + n] | 0; 15458 else { 15459 const d = r[n - 15], j = (d << 25 | d >>> 7) ^ (d << 14 | d >>> 18) ^ d >>> 3, B = r[n - 2], x2 = (B << 15 | B >>> 17) ^ (B << 13 | B >>> 19) ^ B >>> 10; 15460 r[n] = j + r[n - 7] + x2 + r[n - 16]; 15461 } 15462 const m = h2 & g ^ ~h2 & f, p2 = i & o ^ i & a ^ o & a, u = (i << 30 | i >>> 2) ^ (i << 19 | i >>> 13) ^ (i << 10 | i >>> 22), b2 = (h2 << 26 | h2 >>> 6) ^ (h2 << 21 | h2 >>> 11) ^ (h2 << 7 | h2 >>> 25), w2 = y + b2 + m + R$1[n] + r[n], M = u + p2; 15463 y = f, f = g, g = h2, h2 = c2 + w2 | 0, c2 = a, a = o, o = i, i = w2 + M | 0; 15464 } 15465 t[0] = t[0] + i | 0, t[1] = t[1] + o | 0, t[2] = t[2] + a | 0, t[3] = t[3] + c2 | 0, t[4] = t[4] + h2 | 0, t[5] = t[5] + g | 0, t[6] = t[6] + f | 0, t[7] = t[7] + y | 0; 15466 } 15467 _append(e) { 15468 typeof e == "string" && (e = l$1.fromUtf8(e)), this._data.concat(e), this._nDataBytes += e.sigBytes; 15469 } 15470 _process(e) { 15471 let s, t = this._data.sigBytes / 64; 15472 e ? t = Math.ceil(t) : t = Math.max((t | 0) - this._minBufferSize, 0); 15473 const i = t * 16, o = Math.min(i * 4, this._data.sigBytes); 15474 if (i) { 15475 for (let a = 0; a < i; a += 16) this._doProcessBlock(this._data.words, a); 15476 s = this._data.words.splice(0, i), this._data.sigBytes -= o; 15477 } 15478 return new l$1(s, o); 15479 } 15480}; 15481let l$1 = class l { 15482 constructor(e, s) { 15483 __publicField(this, "words"); 15484 __publicField(this, "sigBytes"); 15485 e = this.words = e || [], this.sigBytes = s === void 0 ? e.length * 4 : s; 15486 } 15487 static fromUtf8(e) { 15488 const s = unescape(encodeURIComponent(e)), t = s.length, i = []; 15489 for (let o = 0; o < t; o++) i[o >>> 2] |= (s.charCodeAt(o) & 255) << 24 - o % 4 * 8; 15490 return new l(i, t); 15491 } 15492 toBase64() { 15493 const e = []; 15494 for (let s = 0; s < this.sigBytes; s += 3) { 15495 const t = this.words[s >>> 2] >>> 24 - s % 4 * 8 & 255, i = this.words[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, o = this.words[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, a = t << 16 | i << 8 | o; 15496 for (let c2 = 0; c2 < 4 && s * 8 + c2 * 6 < this.sigBytes * 8; c2++) e.push(S$1.charAt(a >>> 6 * (3 - c2) & 63)); 15497 } 15498 return e.join(""); 15499 } 15500 concat(e) { 15501 if (this.words[this.sigBytes >>> 2] &= 4294967295 << 32 - this.sigBytes % 4 * 8, this.words.length = Math.ceil(this.sigBytes / 4), this.sigBytes % 4) for (let s = 0; s < e.sigBytes; s++) { 15502 const t = e.words[s >>> 2] >>> 24 - s % 4 * 8 & 255; 15503 this.words[this.sigBytes + s >>> 2] |= t << 24 - (this.sigBytes + s) % 4 * 8; 15504 } 15505 else for (let s = 0; s < e.sigBytes; s += 4) this.words[this.sigBytes + s >>> 2] = e.words[s >>> 2]; 15506 this.sigBytes += e.sigBytes; 15507 } 15508}; 15509function digest(_) { 15510 return new k$1().finalize(_).toBase64(); 15511} 15512function hash(input) { 15513 return digest(serialize(input)); 15514} 15515const DEBOUNCE_DEFAULTS = { 15516 trailing: true 15517}; 15518function debounce(fn, wait = 25, options = {}) { 15519 options = { ...DEBOUNCE_DEFAULTS, ...options }; 15520 if (!Number.isFinite(wait)) { 15521 throw new TypeError("Expected `wait` to be a finite number"); 15522 } 15523 let leadingValue; 15524 let timeout; 15525 let resolveList = []; 15526 let currentPromise; 15527 let trailingArgs; 15528 const applyFn = (_this, args) => { 15529 currentPromise = _applyPromised(fn, _this, args); 15530 currentPromise.finally(() => { 15531 currentPromise = null; 15532 if (options.trailing && trailingArgs && !timeout) { 15533 const promise = applyFn(_this, trailingArgs); 15534 trailingArgs = null; 15535 return promise; 15536 } 15537 }); 15538 return currentPromise; 15539 }; 15540 return function(...args) { 15541 if (currentPromise) { 15542 if (options.trailing) { 15543 trailingArgs = args; 15544 } 15545 return currentPromise; 15546 } 15547 return new Promise((resolve2) => { 15548 const shouldCallNow = !timeout && options.leading; 15549 clearTimeout(timeout); 15550 timeout = setTimeout(() => { 15551 timeout = null; 15552 const promise = options.leading ? leadingValue : applyFn(this, args); 15553 for (const _resolve of resolveList) { 15554 _resolve(promise); 15555 } 15556 resolveList = []; 15557 }, wait); 15558 if (shouldCallNow) { 15559 leadingValue = applyFn(this, args); 15560 resolve2(leadingValue); 15561 } else { 15562 resolveList.push(resolve2); 15563 } 15564 }); 15565 }; 15566} 15567async function _applyPromised(fn, _this, args) { 15568 return await fn.apply(_this, args); 15569} 15570const requestIdleCallback = globalThis.requestIdleCallback || ((cb) => { 15571 const start = Date.now(); 15572 const idleDeadline = { 15573 didTimeout: false, 15574 timeRemaining: () => Math.max(0, 50 - (Date.now() - start)) 15575 }; 15576 return setTimeout(() => { 15577 cb(idleDeadline); 15578 }, 1); 15579}); 15580const cancelIdleCallback = globalThis.cancelIdleCallback || ((id) => { 15581 clearTimeout(id); 15582}); 15583const onNuxtReady = (callback) => { 15584 const nuxtApp = useNuxtApp(); 15585 if (nuxtApp.isHydrating) { 15586 nuxtApp.hooks.hookOnce("app:suspense:resolve", () => { 15587 requestIdleCallback(() => callback()); 15588 }); 15589 } else { 15590 requestIdleCallback(() => callback()); 15591 } 15592}; 15593const isDefer = (dedupe) => dedupe === "defer" || dedupe === false; 15594function useAsyncData(...args) { 15595 var _a; 15596 const autoKey = typeof args[args.length - 1] === "string" ? args.pop() : void 0; 15597 if (typeof args[0] !== "string" && typeof args[0] !== "object" && !(typeof args[0] === "function" && typeof args[1] === "function")) { 15598 args.unshift(autoKey); 15599 } 15600 let [_key, _handler, options = {}] = args; 15601 const key = computed(() => toValue(_key)); 15602 if (typeof key.value !== "string") { 15603 throw new TypeError("[nuxt] [useAsyncData] key must be a string."); 15604 } 15605 if (typeof _handler !== "function") { 15606 throw new TypeError("[nuxt] [useAsyncData] handler must be a function."); 15607 } 15608 const nuxtApp = useNuxtApp(); 15609 const getDefault = () => asyncDataDefaults.value; 15610 const getDefaultCachedData = (key2, nuxtApp2, ctx) => { 15611 if (nuxtApp2.isHydrating) { 15612 return nuxtApp2.payload.data[key2]; 15613 } 15614 if (ctx.cause !== "refresh:manual" && ctx.cause !== "refresh:hook") { 15615 return nuxtApp2.static.data[key2]; 15616 } 15617 }; 15618 options.server ?? (options.server = true); 15619 options.default ?? (options.default = getDefault); 15620 options.getCachedData ?? (options.getCachedData = getDefaultCachedData); 15621 options.lazy ?? (options.lazy = false); 15622 options.immediate ?? (options.immediate = true); 15623 options.deep ?? (options.deep = asyncDataDefaults.deep); 15624 options.dedupe ?? (options.dedupe = "cancel"); 15625 options._functionName || "useAsyncData"; 15626 nuxtApp._asyncData[key.value]; 15627 const initialCachedData = options.getCachedData(key.value, nuxtApp, { cause: "initial" }); 15628 if (!((_a = nuxtApp._asyncData[key.value]) == null ? void 0 : _a._deps)) { 15629 nuxtApp._asyncData[key.value] = createAsyncData(nuxtApp, key.value, _handler, options, initialCachedData); 15630 } 15631 const asyncData = nuxtApp._asyncData[key.value]; 15632 asyncData._deps++; 15633 const initialFetch = () => nuxtApp._asyncData[key.value].execute({ cause: "initial", dedupe: options.dedupe }); 15634 const fetchOnServer = options.server !== false && nuxtApp.payload.serverRendered; 15635 { 15636 let unregister2 = function(key2) { 15637 const data = nuxtApp._asyncData[key2]; 15638 if (data == null ? void 0 : data._deps) { 15639 data._deps--; 15640 if (data._deps === 0) { 15641 data == null ? void 0 : data._off(); 15642 { 15643 clearNuxtDataByKey(nuxtApp, key2); 15644 data.execute = () => Promise.resolve(); 15645 nuxtApp._asyncData[key2].data.value = asyncDataDefaults.value; 15646 } 15647 } 15648 } 15649 }; 15650 const instance = getCurrentInstance(); 15651 if (instance && fetchOnServer && options.immediate && !instance.sp) { 15652 instance.sp = []; 15653 } 15654 if (instance && !instance._nuxtOnBeforeMountCbs) { 15655 instance._nuxtOnBeforeMountCbs = []; 15656 const cbs = instance._nuxtOnBeforeMountCbs; 15657 onBeforeMount(() => {
15658 cbs.forEach((cb) => { 15659 cb(); 15660 }); 15661 cbs.splice(0, cbs.length); 15662 }); 15663 onUnmounted(() => cbs.splice(0, cbs.length)); 15664 } 15665 if (fetchOnServer && nuxtApp.isHydrating && (asyncData.error.value || initialCachedData != null)) { 15666 { 15667 asyncData.pending.value = false; 15668 } 15669 asyncData.status.value = asyncData.error.value ? "error" : "success"; 15670 } else if (instance && (nuxtApp.payload.serverRendered && nuxtApp.isHydrating || options.lazy) && options.immediate) { 15671 instance._nuxtOnBeforeMountCbs.push(initialFetch); 15672 } else if (options.immediate) { 15673 initialFetch(); 15674 } 15675 const hasScope = getCurrentScope(); 15676 const unsub = watch([key, ...options.watch || []], ([newKey], [oldKey]) => { 15677 var _a2; 15678 if (oldKey === newKey) { 15679 asyncData._execute({ cause: "watch", dedupe: options.dedupe }); 15680 return; 15681 } 15682 if (oldKey) { 15683 unregister2(oldKey); 15684 } 15685 if (!((_a2 = nuxtApp._asyncData[newKey]) == null ? void 0 : _a2._deps)) { 15686 nuxtApp._asyncData[newKey] = createAsyncData(nuxtApp, newKey, _handler, options, options.getCachedData(newKey, nuxtApp, { cause: "initial" })); 15687 } 15688 nuxtApp._asyncData[newKey]._deps++; 15689 if (options.immediate) { 15690 nuxtApp._asyncData[newKey].execute({ cause: "initial", dedupe: options.dedupe }); 15691 } 15692 }); 15693 if (hasScope) { 15694 onScopeDispose(() => { 15695 unsub(); 15696 unregister2(key.value); 15697 }); 15698 } 15699 } 15700 const asyncReturn = { 15701 data: writableComputedRef(() => nuxtApp._asyncData[key.value].data), 15702 pending: writableComputedRef(() => nuxtApp._asyncData[key.value].pending), 15703 status: writableComputedRef(() => nuxtApp._asyncData[key.value].status), 15704 error: writableComputedRef(() => nuxtApp._asyncData[key.value].error), 15705 refresh: (...args2) => nuxtApp._asyncData[key.value].execute(...args2), 15706 execute: (...args2) => nuxtApp._asyncData[key.value].execute(...args2), 15707 clear: () => clearNuxtDataByKey(nuxtApp, key.value) 15708 }; 15709 const asyncDataPromise = Promise.resolve(nuxtApp._asyncDataPromises[key.value]).then(() => asyncReturn); 15710 Object.assign(asyncDataPromise, asyncReturn); 15711 return asyncDataPromise; 15712} 15713function writableComputedRef(getter) { 15714 return computed({ 15715 get() { 15716 return getter().value; 15717 }, 15718 set(value) { 15719 getter().value = value; 15720 } 15721 }); 15722} 15723function clearNuxtDataByKey(nuxtApp, key) { 15724 if (key in nuxtApp.payload.data) { 15725 nuxtApp.payload.data[key] = void 0; 15726 } 15727 if (key in nuxtApp.payload._errors) { 15728 nuxtApp.payload._errors[key] = asyncDataDefaults.errorValue; 15729 } 15730 if (nuxtApp._asyncData[key]) { 15731 nuxtApp._asyncData[key].data.value = void 0; 15732 nuxtApp._asyncData[key].error.value = asyncDataDefaults.errorValue; 15733 { 15734 nuxtApp._asyncData[key].pending.value = false; 15735 } 15736 nuxtApp._asyncData[key].status.value = "idle"; 15737 } 15738 if (key in nuxtApp._asyncDataPromises) { 15739 if (nuxtApp._asyncDataPromises[key]) { 15740 nuxtApp._asyncDataPromises[key].cancelled = true; 15741 } 15742 nuxtApp._asyncDataPromises[key] = void 0; 15743 } 15744} 15745function pick(obj, keys2) { 15746 const newObj = {}; 15747 for (const key of keys2) { 15748 newObj[key] = obj[key]; 15749 } 15750 return newObj; 15751} 15752function createAsyncData(nuxtApp, key, _handler, options, initialCachedData) { 15753 var _a; 15754 (_a = nuxtApp.payload._errors)[key] ?? (_a[key] = asyncDataDefaults.errorValue); 15755 const handler = _handler; 15756 const _ref = options.deep ? ref : shallowRef; 15757 const hasCachedData = initialCachedData != null; 15758 const asyncData = { 15759 data: _ref(hasCachedData ? initialCachedData : options.default()), 15760 pending: shallowRef(!hasCachedData), 15761 error: toRef(nuxtApp.payload._errors, key), 15762 status: shallowRef("idle"), 15763 execute: (opts = {}) => { 15764 if (nuxtApp._asyncDataPromises[key]) { 15765 if (isDefer(opts.dedupe ?? options.dedupe)) { 15766 return nuxtApp._asyncDataPromises[key]; 15767 } 15768 nuxtApp._asyncDataPromises[key].cancelled = true; 15769 } 15770 if (opts.cause === "initial" || nuxtApp.isHydrating) { 15771 const cachedData = opts.cause === "initial" ? initialCachedData : options.getCachedData(key, nuxtApp, { cause: opts.cause ?? "refresh:manual" }); 15772 if (cachedData != null) { 15773 nuxtApp.payload.data[key] = asyncData.data.value = cachedData; 15774 asyncData.error.value = asyncDataDefaults.errorValue; 15775 asyncData.status.value = "success"; 15776 return Promise.resolve(cachedData); 15777 } 15778 } 15779 { 15780 asyncData.pending.value = true; 15781 } 15782 asyncData.status.value = "pending"; 15783 const promise = new Promise( 15784 (resolve2, reject) => { 15785 try { 15786 resolve2(handler(nuxtApp)); 15787 } catch (err) { 15788 reject(err); 15789 } 15790 } 15791 ).then(async (_result) => { 15792 if (promise.cancelled) { 15793 return nuxtApp._asyncDataPromises[key]; 15794 } 15795 let result = _result; 15796 if (options.transform) { 15797 result = await options.transform(_result); 15798 } 15799 if (options.pick) { 15800 result = pick(result, options.pick); 15801 } 15802 nuxtApp.payload.data[key] = result; 15803 asyncData.data.value = result; 15804 asyncData.error.value = asyncDataDefaults.errorValue; 15805 asyncData.status.value = "success"; 15806 }).catch((error) => { 15807 if (promise.cancelled) { 15808 return nuxtApp._asyncDataPromises[key]; 15809 } 15810 asyncData.error.value = createError(error); 15811 asyncData.data.value = unref(options.default()); 15812 asyncData.status.value = "error"; 15813 }).finally(() => { 15814 if (promise.cancelled) { 15815 return; 15816 } 15817 { 15818 asyncData.pending.value = false;
15819 } 15820 delete nuxtApp._asyncDataPromises[key]; 15821 }); 15822 nuxtApp._asyncDataPromises[key] = promise; 15823 return nuxtApp._asyncDataPromises[key]; 15824 }, 15825 _execute: debounce((...args) => asyncData.execute(...args), 0, { leading: true }), 15826 _default: options.default, 15827 _deps: 0, 15828 _hash: void 0, 15829 _off: nuxtApp.hook("app:data:refresh", async (keys2) => { 15830 if (!keys2 || keys2.includes(key)) { 15831 await asyncData.execute({ cause: "refresh:hook" }); 15832 } 15833 }) 15834 }; 15835 return asyncData; 15836} 15837async function callOnce(...args) { 15838 var _a; 15839 const autoKey = typeof args[args.length - 1] === "string" ? args.pop() : void 0; 15840 if (typeof args[0] !== "string") { 15841 args.unshift(autoKey); 15842 } 15843 const [_key, fn, options] = args; 15844 if (!_key || typeof _key !== "string") { 15845 throw new TypeError("[nuxt] [callOnce] key must be a string: " + _key); 15846 } 15847 if (fn !== void 0 && typeof fn !== "function") { 15848 throw new Error("[nuxt] [callOnce] fn must be a function: " + fn); 15849 } 15850 const nuxtApp = useNuxtApp(); 15851 if ((options == null ? void 0 : options.mode) === "navigation") { 15852 nuxtApp.hooks.hookOnce("page:start", () => { 15853 nuxtApp.payload.once.delete(_key); 15854 }); 15855 } 15856 if (nuxtApp.payload.once.has(_key)) { 15857 return; 15858 } 15859 nuxtApp._once || (nuxtApp._once = {}); 15860 (_a = nuxtApp._once)[_key] || (_a[_key] = fn() || true); 15861 await nuxtApp._once[_key]; 15862 nuxtApp.payload.once.add(_key); 15863 delete nuxtApp._once[_key]; 15864} 15865const useStateKeyPrefix = "$s"; 15866function useState(...args) { 15867 const autoKey = typeof args[args.length - 1] === "string" ? args.pop() : void 0; 15868 if (typeof args[0] !== "string") { 15869 args.unshift(autoKey); 15870 } 15871 const [_key, init] = args; 15872 if (!_key || typeof _key !== "string") { 15873 throw new TypeError("[nuxt] [useState] key must be a string: " + _key); 15874 } 15875 if (init !== void 0 && typeof init !== "function") { 15876 throw new Error("[nuxt] [useState] init must be a function: " + init); 15877 } 15878 const key = useStateKeyPrefix + _key; 15879 const nuxtApp = useNuxtApp(); 15880 const state = toRef(nuxtApp.payload.state, key); 15881 if (state.value === void 0 && init) { 15882 const initialValue = init(); 15883 if (isRef(initialValue)) { 15884 nuxtApp.payload.state[key] = initialValue; 15885 return initialValue; 15886 } 15887 state.value = initialValue; 15888 } 15889 return state; 15890} 15891function useFetch(request, arg1, arg2) { 15892 const [opts = {}, autoKey] = typeof arg1 === "string" ? [{}, arg1] : [arg1, arg2]; 15893 const _request = computed(() => toValue(request)); 15894 const key = computed(() => toValue(opts.key) || "$f" + hash([autoKey, typeof _request.value === "string" ? _request.value : "", ...generateOptionSegments(opts)])); 15895 if (!opts.baseURL && typeof _request.value === "string" && (_request.value[0] === "/" && _request.value[1] === "/")) { 15896 throw new Error('[nuxt] [useFetch] the request URL must not start with "//".'); 15897 } 15898 const { 15899 server, 15900 lazy, 15901 default: defaultFn, 15902 transform, 15903 pick: pick2, 15904 watch: watchSources, 15905 immediate, 15906 getCachedData, 15907 deep, 15908 dedupe, 15909 ...fetchOptions 15910 } = opts; 15911 const _fetchOptions = reactive({ 15912 ...fetchDefaults, 15913 ...fetchOptions, 15914 cache: typeof opts.cache === "boolean" ? void 0 : opts.cache 15915 }); 15916 const _asyncDataOptions = { 15917 server, 15918 lazy, 15919 default: defaultFn, 15920 transform, 15921 pick: pick2, 15922 immediate, 15923 getCachedData, 15924 deep, 15925 dedupe, 15926 watch: watchSources === false ? [] : [...watchSources || [], _fetchOptions] 15927 }; 15928 if (watchSources !== false && !immediate) { 15929 watch([...watchSources || [], _fetchOptions], () => { 15930 _asyncDataOptions.immediate = true; 15931 }, { flush: "pre", once: true }); 15932 } 15933 let controller; 15934 const asyncData = useAsyncData(key, () => { 15935 var _a; 15936 (_a = controller == null ? void 0 : controller.abort) == null ? void 0 : _a.call(controller, new DOMException("Request aborted as another request to the same endpoint was initiated.", "AbortError")); 15937 controller = typeof AbortController !== "undefined" ? new AbortController() : {}; 15938 const timeoutLength = toValue(opts.timeout); 15939 let timeoutId; 15940 if (timeoutLength) { 15941 timeoutId = setTimeout(() => controller.abort(new DOMException("Request aborted due to timeout.", "AbortError")), timeoutLength); 15942 controller.signal.onabort = () => clearTimeout(timeoutId); 15943 } 15944 let _$fetch = opts.$fetch || globalThis.$fetch; 15945 return _$fetch(_request.value, { signal: controller.signal, ..._fetchOptions }).finally(() => { 15946 clearTimeout(timeoutId); 15947 }); 15948 }, _asyncDataOptions); 15949 return asyncData; 15950} 15951function generateOptionSegments(opts) { 15952 var _a; 15953 const segments = [ 15954 ((_a = toValue(opts.method)) == null ? void 0 : _a.toUpperCase()) || "GET", 15955 toValue(opts.baseURL) 15956 ]; 15957 for (const _obj of [opts.params || opts.query]) { 15958 const obj = toValue(_obj); 15959 if (!obj) { 15960 continue; 15961 } 15962 const unwrapped = {}; 15963 for (const [key, value] of Object.entries(obj)) { 15964 unwrapped[toValue(key)] = toValue(value); 15965 } 15966 segments.push(unwrapped); 15967 } 15968 if (opts.body) { 15969 segments.push(hash(toValue(opts.body))); 15970 } 15971 return segments; 15972} 15973async function preloadRouteComponents(to, router = useRouter$2()) { 15974 const { path, matched } = router.resolve(to); 15975 if (!matched.length) { 15976 return; 15977 } 15978 router._routePreloaded || (router._routePreloaded = /* @__PURE__ */ new Set()); 15979 if (router._routePreloaded.has(path)) { 15980 return; 15981 } 15982 const promises = router._preloadPromises || (router._preloadPromises = []); 15983 if (promises.length > 4) { 15984 return Promise.all(promises).then(() => preloadRouteComponents(to, router)); 15985 } 15986 router._routePreloaded.add(path); 15987 const components = matched.map((component) => { 15988 var _a; 15989 return (_a = component.components) == null ? void 0 : _a.default; 15990 }).filter((component) => typeof component === "function"); 15991 for (const component of components) { 15992 const promise = Promise.resolve(component()).catch(() => { 15993 }).finally(() => promises.splice(promises.indexOf(promise))); 15994 promises.push(promise); 15995 } 15996 await Promise.all(promises); 15997} 15998function reloadNuxtApp(options = {}) { 15999 const path = options.path || window.location.pathname; 16000 let handledPath = {}; 16001 try { 16002 handledPath = destr(sessionStorage.getItem("nuxt:reload") || "{}"); 16003 } catch { 16004 } 16005 if (options.force || (handledPath == null ? void 0 : handledPath.path) !== path || (handledPath == null ? void 0 : handledPath.expires) < Date.now()) { 16006 try { 16007 sessionStorage.setItem("nuxt:reload", JSON.stringify({ path, expires: Date.now() + (options.ttl ?? 1e4) })); 16008 } catch { 16009 } 16010 if (options.persistState) {
16011 try { 16012 sessionStorage.setItem("nuxt:reload:state", JSON.stringify({ state: useNuxtApp().payload.state })); 16013 } catch { 16014 } 16015 } 16016 if (window.location.pathname !== path) { 16017 window.location.href = path; 16018 } else { 16019 window.location.reload(); 16020 } 16021 } 16022} 16023function useRequestURL(opts) { 16024 return new URL(window.location.href); 16025} 16026const firstNonUndefined = (...args) => args.find((arg) => arg !== void 0); 16027// @__NO_SIDE_EFFECTS__ 16028function defineNuxtLink(options) { 16029 const componentName = options.componentName || "NuxtLink"; 16030 function isHashLinkWithoutHashMode(link) { 16031 return !hashMode && typeof link === "string" && link.startsWith("#"); 16032 } 16033 function resolveTrailingSlashBehavior(to, resolve2, trailingSlash) { 16034 const effectiveTrailingSlash = trailingSlash ?? options.trailingSlash; 16035 if (!to || effectiveTrailingSlash !== "append" && effectiveTrailingSlash !== "remove") { 16036 return to; 16037 } 16038 if (typeof to === "string") { 16039 return applyTrailingSlashBehavior(to, effectiveTrailingSlash); 16040 } 16041 const path = "path" in to && to.path !== void 0 ? to.path : resolve2(to).path; 16042 const resolvedPath = { 16043 ...to, 16044 name: void 0, 16045 // named routes would otherwise always override trailing slash behavior 16046 path: applyTrailingSlashBehavior(path, effectiveTrailingSlash) 16047 }; 16048 return resolvedPath; 16049 } 16050 function useNuxtLink(props) { 16051 const router = useRouter$2(); 16052 const config = /* @__PURE__ */ useRuntimeConfig(); 16053 const hasTarget = computed(() => !!props.target && props.target !== "_self"); 16054 const isAbsoluteUrl = computed(() => { 16055 const path = props.to || props.href || ""; 16056 return typeof path === "string" && hasProtocol(path, { acceptRelative: true }); 16057 }); 16058 const builtinRouterLink = resolveComponent("RouterLink"); 16059 const useBuiltinLink = builtinRouterLink && typeof builtinRouterLink !== "string" ? builtinRouterLink.useLink : void 0; 16060 const isExternal = computed(() => { 16061 if (props.external) { 16062 return true; 16063 } 16064 const path = props.to || props.href || ""; 16065 if (typeof path === "object") { 16066 return false; 16067 } 16068 return path === "" || isAbsoluteUrl.value; 16069 }); 16070 const to = computed(() => { 16071 const path = props.to || props.href || ""; 16072 if (isExternal.value) { 16073 return path; 16074 } 16075 return resolveTrailingSlashBehavior(path, router.resolve, props.trailingSlash); 16076 }); 16077 const link = isExternal.value ? void 0 : useBuiltinLink == null ? void 0 : useBuiltinLink({ ...props, to }); 16078 const href = computed(() => { 16079 var _a; 16080 const effectiveTrailingSlash = props.trailingSlash ?? options.trailingSlash; 16081 if (!to.value || isAbsoluteUrl.value || isHashLinkWithoutHashMode(to.value)) { 16082 return to.value; 16083 } 16084 if (isExternal.value) { 16085 const path = typeof to.value === "object" && "path" in to.value ? resolveRouteObject(to.value) : to.value; 16086 const href2 = typeof path === "object" ? router.resolve(path).href : path; 16087 return applyTrailingSlashBehavior(href2, effectiveTrailingSlash); 16088 } 16089 if (typeof to.value === "object") { 16090 return ((_a = router.resolve(to.value)) == null ? void 0 : _a.href) ?? null; 16091 } 16092 return applyTrailingSlashBehavior(joinURL(config.app.baseURL, to.value), effectiveTrailingSlash); 16093 }); 16094 return { 16095 to, 16096 hasTarget, 16097 isAbsoluteUrl, 16098 isExternal, 16099 // 16100 href, 16101 isActive: (link == null ? void 0 : link.isActive) ?? computed(() => to.value === router.currentRoute.value.path), 16102 isExactActive: (link == null ? void 0 : link.isExactActive) ?? computed(() => to.value === router.currentRoute.value.path), 16103 route: (link == null ? void 0 : link.route) ?? computed(() => router.resolve(to.value)), 16104 async navigate(_e) { 16105 await navigateTo(href.value, { replace: props.replace, external: isExternal.value || hasTarget.value }); 16106 } 16107 }; 16108 } 16109 return /* @__PURE__ */ defineComponent({ 16110 name: componentName, 16111 props: { 16112 // Routing 16113 to: { 16114 type: [String, Object], 16115 default: void 0, 16116 required: false 16117 }, 16118 href: { 16119 type: [String, Object], 16120 default: void 0, 16121 required: false 16122 }, 16123 // Attributes 16124 target: { 16125 type: String, 16126 default: void 0, 16127 required: false 16128 }, 16129 rel: { 16130 type: String, 16131 default: void 0, 16132 required: false 16133 }, 16134 noRel: { 16135 type: Boolean, 16136 default: void 0, 16137 required: false 16138 }, 16139 // Prefetching 16140 prefetch: { 16141 type: Boolean, 16142 default: void 0, 16143 required: false 16144 }, 16145 prefetchOn: { 16146 type: [String, Object], 16147 default: void 0, 16148 required: false 16149 }, 16150 noPrefetch: { 16151 type: Boolean, 16152 default: void 0, 16153 required: false 16154 }, 16155 // Styling 16156 activeClass: { 16157 type: String, 16158 default: void 0, 16159 required: false 16160 }, 16161 exactActiveClass: { 16162 type: String, 16163 default: void 0, 16164 required: false 16165 }, 16166 prefetchedClass: { 16167 type: String, 16168 default: void 0, 16169 required: false 16170 }, 16171 // Vue Router's `<RouterLink>` additional props 16172 replace: { 16173 type: Boolean, 16174 default: void 0, 16175 required: false 16176 }, 16177 ariaCurrentValue: { 16178 type: String, 16179 default: void 0, 16180 required: false 16181 }, 16182 // Edge cases handling 16183 external: { 16184 type: Boolean, 16185 default: void 0, 16186 required: false 16187 }, 16188 // Slot API 16189 custom: { 16190 type: Boolean, 16191 default: void 0, 16192 required: false 16193 }, 16194 // Behavior 16195 trailingSlash: { 16196 type: String, 16197 default: void 0, 16198 required: false 16199 } 16200 }, 16201 useLink: useNuxtLink, 16202 setup(props, { slots }) { 16203 const router = useRouter$2(); 16204 const { to, href, navigate, isExternal, hasTarget, isAbsoluteUrl } = useNuxtLink(props); 16205 const prefetched = ref(false); 16206 const el = ref(null); 16207 const elRef = (ref2) => { 16208 var _a; 16209 el.value = props.custom ? (_a = ref2 == null ? void 0 : ref2.$el) == null ? void 0 : _a.nextElementSibling : ref2 == null ? void 0 : ref2.$el; 16210 }; 16211 function shouldPrefetch(mode) { 16212 var _a, _b; 16213 return !prefetched.value && (typeof props.prefetchOn === "string" ? props.prefetchOn === mode : ((_a = props.prefetchOn) == null ? void 0 : _a[mode]) ?? ((_b = options.prefetchOn) == null ? void 0 : _b[mode])) && (props.prefetch ?? options.prefetch) !== false && props.noPrefetch !== true && props.target !== "_blank" && !isSlowConnection(); 16214 } 16215 async function prefetch(nuxtApp = useNuxtApp()) { 16216 if (prefetched.value) { 16217 return; 16218 } 16219 prefetched.value = true; 16220 const path = typeof to.value === "string" ? to.value : isExternal.value ? resolveRouteObject(to.value) : router.resolve(to.value).fullPath; 16221 const normalizedPath = isExternal.value ? new URL(path, window.location.href).href : path; 16222 await Promise.all([ 16223 nuxtApp.hooks.callHook("link:prefetch", normalizedPath).catch(() => { 16224 }), 16225 !isExternal.value && !hasTarget.value && preloadRouteComponents(to.value, router).catch(() => { 16226 }) 16227 ]); 16228 } 16229 { 16230 if (shouldPrefetch("visibility")) { 16231 const nuxtApp = useNuxtApp(); 16232 let idleId; 16233 let unobserve = null; 16234 onMounted(() => { 16235 const observer = useObserver(); 16236 onNuxtReady(() => { 16237 idleId = requestIdleCallback(() => { 16238 var _a; 16239 if ((_a = el == null ? void 0 : el.value) == null ? void 0 : _a.tagName) { 16240 unobserve = observer.observe(el.value, async () => { 16241 unobserve == null ? void 0 : unobserve(); 16242 unobserve = null; 16243 await prefetch(nuxtApp); 16244 }); 16245 } 16246 }); 16247 }); 16248 }); 16249 onBeforeUnmount(() => { 16250 if (idleId) { 16251 cancelIdleCallback(idleId); 16252 } 16253 unobserve == null ? void 0 : unobserve(); 16254 unobserve = null; 16255 }); 16256 } 16257 } 16258 return () => { 16259 var _a; 16260 if (!isExternal.value && !hasTarget.value && !isHashLinkWithoutHashMode(to.value)) { 16261 const routerLinkProps = { 16262 ref: elRef, 16263 to: to.value, 16264 activeClass: props.activeClass || options.activeClass, 16265 exactActiveClass: props.exactActiveClass || options.exactActiveClass, 16266 replace: props.replace, 16267 ariaCurrentValue: props.ariaCurrentValue, 16268 custom: props.custom 16269 }; 16270 if (!props.custom) { 16271 { 16272 if (shouldPrefetch("interaction")) { 16273 routerLinkProps.onPointerenter = prefetch.bind(null, void 0); 16274 routerLinkProps.onFocus = prefetch.bind(null, void 0); 16275 } 16276 if (prefetched.value) { 16277 routerLinkProps.class = props.prefetchedClass || options.prefetchedClass; 16278 } 16279 } 16280 routerLinkProps.rel = props.rel || void 0; 16281 } 16282 return h( 16283 resolveComponent("RouterLink"), 16284 routerLinkProps, 16285 slots.default 16286 ); 16287 } 16288 const target = props.target || null; 16289 const rel = firstNonUndefined( 16290 // converts `""` to `null` to prevent the attribute from being added as empty (`rel=""`) 16291 props.noRel ? "" : props.rel, 16292 options.externalRelAttribute, 16293 /* 16294 * A fallback rel of `noopener noreferrer` is applied for external links or links that open in a new tab. 16295 * This solves a reverse tabnapping security flaw in browsers pre-2021 as well as improving privacy. 16296 */ 16297 isAbsoluteUrl.value || hasTarget.value ? "noopener noreferrer" : "" 16298 ) || null; 16299 if (props.custom) { 16300 if (!slots.default) { 16301 return null; 16302 } 16303 return slots.default({ 16304 href: href.value, 16305 navigate, 16306 prefetch, 16307 get route() { 16308 if (!href.value) { 16309 return void 0; 16310 } 16311 const url = new URL(href.value, window.location.href); 16312 return { 16313 path: url.pathname, 16314 fullPath: url.pathname, 16315 get query() { 16316 return parseQuery$1(url.search); 16317 }, 16318 hash: url.hash, 16319 params: {}, 16320 name: void 0, 16321 matched: [], 16322 redirectedFrom: void 0, 16323 meta: {}, 16324 href: href.value 16325 }; 16326 }, 16327 rel, 16328 target, 16329 isExternal: isExternal.value || hasTarget.value, 16330 isActive: false, 16331 isExactActive: false 16332 }); 16333 } 16334 return h("a", { ref: el, href: href.value || null, rel, target }, (_a = slots.default) == null ? void 0 : _a.call(slots)); 16335 }; 16336 } 16337 // }) as unknown as DefineComponent<NuxtLinkProps, object, object, ComputedOptions, MethodOptions, object, object, EmitsOptions, string, object, NuxtLinkProps, object, SlotsType<NuxtLinkSlots>> 16338 }); 16339} 16340const __nuxt_component_2$5 = /* @__PURE__ */ defineNuxtLink(nuxtLinkDefaults); 16341function applyTrailingSlashBehavior(to, trailingSlash) { 16342 const normalizeFn = trailingSlash === "append" ? withTrailingSlash : withoutTrailingSlash; 16343 const hasProtocolDifferentFromHttp = hasProtocol(to) && !to.startsWith("http"); 16344 if (hasProtocolDifferentFromHttp) { 16345 return to; 16346 } 16347 return normalizeFn(to, true); 16348} 16349function useObserver() { 16350 const nuxtApp = useNuxtApp(); 16351 if (nuxtApp._observer) { 16352 return nuxtApp._observer; 16353 } 16354 let observer = null; 16355 const callbacks = /* @__PURE__ */ new Map(); 16356 const observe = (element, callback) => { 16357 observer || (observer = new IntersectionObserver((entries) => {
16358 for (const entry of entries) { 16359 const callback2 = callbacks.get(entry.target); 16360 const isVisible = entry.isIntersecting || entry.intersectionRatio > 0; 16361 if (isVisible && callback2) { 16362 callback2(); 16363 } 16364 } 16365 })); 16366 callbacks.set(element, callback); 16367 observer.observe(element); 16368 return () => { 16369 callbacks.delete(element); 16370 observer == null ? void 0 : observer.unobserve(element); 16371 if (callbacks.size === 0) { 16372 observer == null ? void 0 : observer.disconnect(); 16373 observer = null; 16374 } 16375 }; 16376 }; 16377 const _observer = nuxtApp._observer = { 16378 observe 16379 }; 16380 return _observer; 16381} 16382const IS_2G_RE = /2g/; 16383function isSlowConnection() { 16384 const cn = navigator.connection; 16385 if (cn && (cn.saveData || IS_2G_RE.test(cn.effectiveType))) { 16386 return true; 16387 } 16388 return false; 16389} 16390const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 16391 __proto__: null, 16392 applyPlugin, 16393 applyPlugins, 16394 callOnce, 16395 callWithNuxt, 16396 cancelIdleCallback, 16397 clearError, 16398 createError, 16399 createNuxtApp, 16400 defineNuxtLink, 16401 defineNuxtPlugin, 16402 defineNuxtRouteMiddleware, 16403 definePayloadReviver, 16404 getAppManifest, 16405 getRouteRules, 16406 injectHead, 16407 isNuxtError, 16408 isPrerendered, 16409 loadPayload, 16410 navigateTo, 16411 onNuxtReady, 16412 preloadRouteComponents, 16413 registerPluginHooks, 16414 reloadNuxtApp, 16415 requestIdleCallback, 16416 showError, 16417 tryUseNuxtApp, 16418 useAsyncData, 16419 useError, 16420 useFetch, 16421 useHead, 16422 useNuxtApp, 16423 useRequestURL, 16424 useRoute: useRoute$2, 16425 useRouter: useRouter$2, 16426 useRuntimeConfig, 16427 useState 16428}, Symbol.toStringTag, { value: "Module" })); 16429const LazyCoreBlockCalendly = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockCalendly$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16430const LazyCoreBlockContactCard = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockContactCard$3), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16431const LazyCoreBlockDisclosures = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockDisclosures$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16432const LazyCoreBlockForm = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockForm$3), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16433const LazyCoreBlockFooter = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooter$2), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16434const LazyCoreBlockFooterBackground = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterBackground), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16435const LazyCoreBlockFooterBanner = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterBanner), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16436const LazyCoreBlockFooterDisclosures = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterDisclosures), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16437const LazyCoreBlockFooterLogo = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterLogo), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16438const LazyCoreBlockFooterOneTrust = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterOneTrust), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16439const LazyCoreBlockFooterSocialLinks = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterSocialLinks), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16440const LazyCoreBlockFooterContact = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterContact), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16441const LazyCoreBlockFooterContactAddress = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterContactAddress), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16442const LazyCoreBlockFooterContactEmail = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterContactEmail), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16443const LazyCoreBlockFooterContactGroup = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterContactGroup), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16444const LazyCoreBlockFooterContactPhone = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterContactPhone), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16445const LazyCoreAnchorLinkNavigation = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreAnchorLinkNavigation), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16446const LazyCoreBlock = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlock), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16447const LazyCoreBlockAccessibleTooltip = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockAccessibleTooltip), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16448const LazyCoreBlockAddressAutocomplete = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockAddressAutocomplete$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16449const LazyCoreBlockArticleCard = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockArticleCard$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16450const LazyCoreBlockArticles = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockArticles$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16451const LazyCoreBlockBreadcrumbs = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockBreadcrumbs), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16452const LazyCoreBlockButton = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockButton$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16453const LazyCoreBlockCalculators = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockCalculators$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16454const LazyCoreBlockCalendlyEmbed = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockCalendlyEmbed), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16455const LazyCoreBlockCarousel = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockCarousel), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16456const LazyCoreBlockCenteredNavBar = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockCenteredNavBar), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16457const LazyCoreBlockColumns = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockColumns), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16458const LazyCoreBlockContactHero = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockContactHero$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16459const LazyCoreBlockContentCard = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockContentCard$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16460const LazyCoreBlockContentCardTextField = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockContentCardTextField), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16461const LazyCoreBlockDialog = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockDialog), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16462const LazyCoreBlockDivider = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockDivider$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16463const LazyCoreBlockDynamicForm = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockDynamicForm), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16464const LazyCoreBlockFile = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFile$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16465const LazyCoreBlockFrameEmbed = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockFrameEmbed), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16466const LazyCoreBlockGrid = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockGrid$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16467const LazyCoreBlockHero = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockHero$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2));
16468const LazyCoreBlockHeroBackground = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockHeroBackground), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16469const LazyCoreBlockHeroComponent = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockHeroComponent), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16470const LazyCoreBlockHtml = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockHtml$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16471const LazyCoreBlockIcon = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockIcon$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16472const LazyCoreBlockImage = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockImage), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16473const LazyCoreBlockImageCropped = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockImageCropped), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16474const LazyCoreBlockLazy = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockLazy), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16475const LazyCoreBlockMainNav = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockMainNav), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16476const LazyCoreBlockMainNavImage = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockMainNavImage), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16477const LazyCoreBlockMap = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockMap), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16478const LazyCoreBlockMedia = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockMedia$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16479const LazyCoreBlockNavItem = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockNavItem), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16480const LazyCoreBlockOEmbed = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockOEmbed$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16481const LazyCoreBlockPencilBanner = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockPencilBanner$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16482const LazyCoreBlockRepeat = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockRepeat$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16483const LazyCoreBlockRichText = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockRichText), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16484const LazyCoreBlockRows = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockRows$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16485const LazyCoreBlockSelect = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockSelect), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16486const LazyCoreBlockSocialLinks = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockSocialLinks$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16487const LazyCoreBlockStickyButton = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockStickyButton), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16488const LazyCoreBlockText = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockText$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16489const LazyCoreBlockUnknown = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockUnknown$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16490const LazyCoreBlockVerticalDivider = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockVerticalDivider), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16491const LazyCoreBlockVideo = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockVideo), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16492const LazyCoreBlockContainer = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockContainer$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16493const LazyCoreBlockContainerAccordion = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockContainerAccordion), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16494const LazyCoreBlockContainerTabs = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockContainerTabs), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16495const LazyCoreBlockContainerToggle = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreBlockContainerToggle), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16496const LazyCoreIcon = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIcon), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16497const LazyCoreIconAccordion = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() =>
16497 CoreIconAccordion$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16498const LazyCoreIconAccount = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconAccount$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16499const LazyCoreIconActions = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconActions), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16500const LazyCoreIconActivity = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconActivity), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16501const LazyCoreIconAddFolder = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconAddFolder$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16502const LazyCoreIconAddPage = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconAddPage$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16503const LazyCoreIconAdvancedSearch = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconAdvancedSearch$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16504const LazyCoreIconAlignCenter = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconAlignCenter$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16505const LazyCoreIconAlignLeft = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconAlignLeft$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16506const LazyCoreIconAlignRight = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconAlignRight$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16507const LazyCoreIconAlignVerticalBottom = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconAlignVerticalBottom$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16508const LazyCoreIconAlignVerticalCenter = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconAlignVerticalCenter$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16509const LazyCoreIconAlignVerticalTop = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconAlignVerticalTop$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16510const LazyCoreIconAnalytics = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconAnalytics$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16511const LazyCoreIconAnchorLink = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconAnchorLink$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16512const LazyCoreIconArchive = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconArchive$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16513const LazyCoreIconArrowDown = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconArrowDown$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16514const LazyCoreIconArrowLeft = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconArrowLeft$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16515const LazyCoreIconArrowLeftCircle = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconArrowLeftCircle$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16516const LazyCoreIconArrowRight = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconArrowRight$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16517const LazyCoreIconArrowUp = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconArrowUp$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16518const LazyCoreIconArticle = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconArticle$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16519const LazyCoreIconBars = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconBars$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16520const LazyCoreIconBell = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconBell$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16521const LazyCoreIconBilling = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconBilling$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16522const LazyCoreIconBlock = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconBlock), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16523const LazyCoreIconBottomBanner = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconBottomBanner$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16524const LazyCoreIconBreadcrumbExpand = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconBreadcrumbExpand), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16525const LazyCoreIconBrush = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconBrush$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16526const LazyCoreIconButton = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconButton$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16527const LazyCoreIconCalendar = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCalendar$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16528const LazyCoreIconCalendly = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCalendly), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16529const LazyCoreIconCalendlyTitle = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCalendlyTitle), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16530const LazyCoreIconCamera = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCamera$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16531const LazyCoreIconCardAccount = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCardAccount), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16532const LazyCoreIconCarousel = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCarousel$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16533const LazyCoreIconCarouselBackward = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCarouselBackward$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16534const LazyCoreIconCarouselForward = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCarouselForward$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16535const LazyCoreIconCategories = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCategories$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16536const LazyCoreIconChanges = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconChanges$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16537const LazyCoreIconCheckmark = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCheckmark$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16538const LazyCoreIconChevronDown = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconChevronDown$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16539const LazyCoreIconChevronLeft = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconChevronLeft$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16540const LazyCoreIconChevronRight = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconChevronRight$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16541const LazyCoreIconChevronUp = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconChevronUp$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16542const LazyCoreIconCircleCheck = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCircleCheck), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16543const LazyCoreIconCircleCheckLight = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCircleCheckLight$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16544const LazyCoreIconCircleMinus = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCircleMinus$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16545const LazyCoreIconCircleMinusFilled = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCircleMinusFilled$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16546const LazyCoreIconCirclePlus = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCirclePlus$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16547const LazyCoreIconCirclePlusFilled = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCirclePlusFilled$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16548const LazyCoreIconClock = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconClock$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16549const LazyCoreIconClockFilled = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconClockFilled$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16550const LazyCoreIconClose = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconClose), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16551const LazyCoreIconCloseCircle = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCloseCircle$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16552const LazyCoreIconCloseCircleFilled = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCloseCircleFilled$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16553const LazyCoreIconCompliance = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCompliance$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16554const LazyCoreIconComputer = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconComputer$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16555const LazyCoreIconConnected = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconConnected$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16556const LazyCoreIconConnectedOutline = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconConnectedOutline$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16557const LazyCoreIconContact = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconContact$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16558const LazyCoreIconContactEmail = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconContactEmail$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16559const LazyCoreIconContactFax = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconContactFax$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16560const LazyCoreIconContactPage = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconContactPage$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16561const LazyCoreIconContactPhone = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconContactPhone$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16562const LazyCoreIconContactSmartphone = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconContactSmartphone$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16563const LazyCoreIconContainersIcon = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconContainersIcon$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16564const LazyCoreIconContentLibrary = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconContentLibrary$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16565const LazyCoreIconContentLibraryMedia = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconContentLibraryMedia), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16566const LazyCoreIconCopy = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Prom
16566ise.resolve().then(() => CoreIconCopy$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16567const LazyCoreIconCopyright = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCopyright$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16568const LazyCoreIconCornerDownRight = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCornerDownRight$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16569const LazyCoreIconCreditCard = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCreditCard$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16570const LazyCoreIconCrop = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconCrop$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16571const LazyCoreIconDefault = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDefault$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16572const LazyCoreIconDesign = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDesign$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16573const LazyCoreIconDevices = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDevices$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16574const LazyCoreIconDiagonalRightArrow = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDiagonalRightArrow), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16575const LazyCoreIconDisclosures = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDisclosures$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16576const LazyCoreIconDivider = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDivider$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16577const LazyCoreIconDomains = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDomains$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16578const LazyCoreIconDotsHorizontal = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDotsHorizontal$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16579const LazyCoreIconDotsVertical = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDotsVertical$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16580const LazyCoreIconDownArrow = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDownArrow), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16581const LazyCoreIconDownload = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDownload$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16582const LazyCoreIconDraftDetails = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDraftDetails), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16583const LazyCoreIconDrafts = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDrafts$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16584const LazyCoreIconDuplicate = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconDuplicate$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16585const LazyCoreIconEdit = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconEdit$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16586const LazyCoreIconEditCircle = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconEditCircle$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16587const LazyCoreIconEllipsisOutlined = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconEllipsisOutlined$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16588const LazyCoreIconEmail = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconEmail$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16589const LazyCoreIconEmoji = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconEmoji$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16590const LazyCoreIconError = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconError), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16591const LazyCoreIconErrorFilled = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconErrorFilled$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16592const LazyCoreIconExternalLink = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconExternalLink$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16593const LazyCoreIconFacebook = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconFacebook), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16594const LazyCoreIconFavoriteFilled = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconFavoriteFilled$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16595const LazyCoreIconFavoriteUnfilled = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconFavoriteUnfilled$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16596const LazyCoreIconFax = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconFax$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16597const LazyCoreIconFile = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconFile$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16598const LazyCoreIconFilter = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconFilter$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16599const LazyCoreIconFilterOutline = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconFilterOutline$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16600const LazyCoreIconFocalPoint = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconFocalPoint$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16601const LazyCoreIconFolder = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconFolder$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16602const LazyCoreIconFooter = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconFooter$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16603const LazyCoreIconForm = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconForm$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16604const LazyCoreIconFormIcon = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconFormIcon$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16605const LazyCoreIconGlobe = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconGlobe$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16606const LazyCoreIconGradient = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconGradient$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16607const LazyCoreIconGradientSquare = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconGradientSquare$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16608const LazyCoreIconGrid = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconGrid$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16609const LazyCoreIconGridOn = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconGridOn$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16610const LazyCoreIconHamburgerMenu = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconHamburgerMenu), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16611const LazyCoreIconHeader = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconHeader$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16612const LazyCoreIconHome = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconHome$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16613const LazyCoreIconIcon71 = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconIcon71$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16614const LazyCoreIconIcons = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconIcons$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16615const LazyCoreIconImage = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconImage$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16616const LazyCoreIconImageOffset = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconImageOffset$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16617const LazyCoreIconInReview = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconInReview$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16618const LazyCoreIconInfo = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconInfo), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16619const LazyCoreIconInsertDriveFile = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconInsertDriveFile$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16620const LazyCoreIconInsertLink = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconInsertLink$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16621const LazyCoreIconInstagram = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconInstagram), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16622const LazyCoreIconLandingLogo = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconLandingLogo$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16623const LazyCoreIconLayout = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconLayout$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16624const LazyCoreIconLeftArrow = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconLeftArrow$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16625const LazyCoreIconLinkedin = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconLinkedin), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16626const LazyCoreIconList = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconList$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16627const LazyCoreIconListView = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconListView$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16628const LazyCoreIconLock = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconLock$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16629const LazyCoreIconLogo = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconLogo$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16630const LazyCoreIconMap = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconMap$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16631const LazyCoreIconMapPin = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconMapPin$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16632const LazyCoreIconMaximize = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconMaximize$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16633const LazyCoreIconMedia = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconMedia$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16634const LazyCoreIconMenuClose = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconMenuClose), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16635const LazyCoreIconMessageCircle = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconMessageCircle), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16636const LazyCoreIconMinimize = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconMinimize$1), true ? void 0 : void 0
16636, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16637const LazyCoreIconMinus = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconMinus$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16638const LazyCoreIconMobilePhone = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconMobilePhone$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16639const LazyCoreIconModal = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconModal$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16640const LazyCoreIconMonitor = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconMonitor$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16641const LazyCoreIconMovieStrip = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconMovieStrip$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16642const LazyCoreIconNews = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconNews$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16643const LazyCoreIconNotes = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconNotes$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16644const LazyCoreIconNotificationAlert = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconNotificationAlert$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16645const LazyCoreIconNotifications = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconNotifications$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16646const LazyCoreIconOneTrust = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconOneTrust$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16647const LazyCoreIconOpenInFull = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconOpenInFull$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16648const LazyCoreIconPaddingAll = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPaddingAll), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16649const LazyCoreIconPaddingBottom = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPaddingBottom), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16650const LazyCoreIconPaddingHorizontal = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPaddingHorizontal), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16651const LazyCoreIconPaddingLeft = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPaddingLeft), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16652const LazyCoreIconPaddingRight = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPaddingRight), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16653const LazyCoreIconPaddingTop = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPaddingTop), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16654const LazyCoreIconPage = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPage$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16655const LazyCoreIconPages = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPages$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16656const LazyCoreIconPaintersPalette = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPaintersPalette$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16657const LazyCoreIconPause = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPause$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16658const LazyCoreIconPauseCircle = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPauseCircle$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16659const LazyCoreIconPdf = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPdf$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16660const LazyCoreIconPhone = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPhone$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16661const LazyCoreIconPhotoLibrary = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPhotoLibrary$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16662const LazyCoreIconPlay = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPlay$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16663const LazyCoreIconPlayCircle = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPlayCircle$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16664const LazyCoreIconPlayCircleButton = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPlayCircleButton$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16665const LazyCoreIconPlus = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconPlus$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16666const LazyCoreIconQuestionMark = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconQuestionMark$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16667const LazyCoreIconReaderMode = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconReaderMode$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16668const LazyCoreIconRedo = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconRedo$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16669const LazyCoreIconReorder = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconReorder$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16670const LazyCoreIconReplace = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconReplace$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16671const LazyCoreIconReplay = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconReplay$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16672const LazyCoreIconRevert = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconRevert$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16673const LazyCoreIconRightArrow = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconRightArrow$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16674const LazyCoreIconRoundedSquare = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconRoundedSquare$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16675const LazyCoreIconSearch = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconSearch$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16676const LazyCoreIconSection = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconSection$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16677const LazyCoreIconSelectAll = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconSelectAll$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16678const LazyCoreIconSeo = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconSeo$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16679const LazyCoreIconSettings = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconSettings$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16680const LazyCoreIconShield = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconShield$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16681const LazyCoreIconShoppingBag = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconShoppingBag$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16682const LazyCoreIconShoppingCart = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconShoppingCart$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16683const LazyCoreIconSiteRedo = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconSiteRedo$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16684const LazyCoreIconSiteStyles = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconSiteStyles$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16685const LazyCoreIconSiteUndo = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconSiteUndo$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16686const LazyCoreIconSizing = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconSizing$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16687const LazyCoreIconSocial = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconSocial$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16688const LazyCoreIconSquareEdit = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconSquareEdit$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16689const LazyCoreIconStore = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconStore$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16690const LazyCoreIconTablet = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconTablet$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16691const LazyCoreIconTabs = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconTabs$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16692const LazyCoreIconTemplate = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconTemplate$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16693const LazyCoreIconTextStyle = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconTextStyle$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16694const LazyCoreIconTheme = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconTheme$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16695const LazyCoreIconTool = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconTool$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16696const LazyCoreIconTrash = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconTrash$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16697const LazyCoreIconTwitter = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconTwitter), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16698const LazyCoreIconUndo = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconUndo$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16699const LazyCoreIconUnlock = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() =>
16699 CoreIconUnlock$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16700const LazyCoreIconUpdate = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconUpdate$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16701const LazyCoreIconUpload = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconUpload$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16702const LazyCoreIconUser = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconUser), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16703const LazyCoreIconUserCheck = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconUserCheck$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16704const LazyCoreIconVideo = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconVideo$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16705const LazyCoreIconVideoPlay = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconVideoPlay$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16706const LazyCoreIconViewDesktop = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconViewDesktop$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16707const LazyCoreIconViewDesktopSettings = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconViewDesktopSettings), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16708const LazyCoreIconViewLiveSite = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconViewLiveSite$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16709const LazyCoreIconVisibilityOff = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconVisibilityOff$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16710const LazyCoreIconVisibilityOn = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconVisibilityOn$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16711const LazyCoreIconVolumeOff = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconVolumeOff$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16712const LazyCoreIconVolumeOn = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconVolumeOn$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16713const LazyCoreIconVolumeUp = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconVolumeUp$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16714const LazyCoreIconWatchLater = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconWatchLater$1), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16715const LazyCoreIconYoutube = /* @__PURE__ */ defineAsyncComponent(() => __vitePreload(() => Promise.resolve().then(() => CoreIconYoutube), true ? void 0 : void 0, import.meta.url).then((r2) => r2["default"] || r2.default || r2)); 16716const BRAND_FEATURE_FLAGS = { 16717 contentLibraryPermissionsRequired: 1, 16718 onBoardingMessages: 2, 16719 siteSettingsDataDictionary: 3, 16720 brightcoveRowBgVideoAutoPlayLoop: 4, 16721 stripeManualInvoices: 5, 16722 guidedTour: 6, 16723 siteViewerSites: 7, 16724 seoPermissions: 8, 16725 EditCustomSiteStyles: 9, 16726 ContactCardReadOnly: 10, 16727 CoreLite: 11, 16728 SubscriptionSelfService: 12, 16729 DomainSelfService: 13 16730}; 16731/*! 16732 * vuex v4.0.2 16733 * (c) 2021 Evan You 16734 * @license MIT 16735 */ 16736var storeKey = "store"; 16737function useStore$1(key) { 16738 if (key === void 0) key = null; 16739 return inject(key !== null ? key : storeKey); 16740} 16741function forEachValue(obj, fn) {
16742 Object.keys(obj).forEach(function(key) { 16743 return fn(obj[key], key); 16744 }); 16745} 16746function isObject$3(obj) { 16747 return obj !== null && typeof obj === "object"; 16748} 16749function isPromise(val) { 16750 return val && typeof val.then === "function"; 16751} 16752function partial(fn, arg) { 16753 return function() { 16754 return fn(arg); 16755 }; 16756} 16757function genericSubscribe(fn, subs, options) { 16758 if (subs.indexOf(fn) < 0) { 16759 options && options.prepend ? subs.unshift(fn) : subs.push(fn); 16760 } 16761 return function() { 16762 var i = subs.indexOf(fn); 16763 if (i > -1) { 16764 subs.splice(i, 1); 16765 } 16766 }; 16767} 16768function resetStore(store, hot) { 16769 store._actions = /* @__PURE__ */ Object.create(null); 16770 store._mutations = /* @__PURE__ */ Object.create(null); 16771 store._wrappedGetters = /* @__PURE__ */ Object.create(null); 16772 store._modulesNamespaceMap = /* @__PURE__ */ Object.create(null); 16773 var state = store.state; 16774 installModule(store, state, [], store._modules.root, true); 16775 resetStoreState(store, state, hot); 16776} 16777function resetStoreState(store, state, hot) { 16778 var oldState = store._state; 16779 store.getters = {}; 16780 store._makeLocalGettersCache = /* @__PURE__ */ Object.create(null); 16781 var wrappedGetters = store._wrappedGetters; 16782 var computedObj = {}; 16783 forEachValue(wrappedGetters, function(fn, key) { 16784 computedObj[key] = partial(fn, store); 16785 Object.defineProperty(store.getters, key, { 16786 // TODO: use `computed` when it's possible. at the moment we can't due to 16787 // https://github.com/vuejs/vuex/pull/1883 16788 get: function() { 16789 return computedObj[key](); 16790 }, 16791 enumerable: true 16792 // for local getters 16793 }); 16794 }); 16795 store._state = reactive({ 16796 data: state 16797 }); 16798 if (store.strict) { 16799 enableStrictMode(store); 16800 } 16801 if (oldState) { 16802 if (hot) { 16803 store._withCommit(function() { 16804 oldState.data = null; 16805 }); 16806 } 16807 } 16808} 16809function installModule(store, rootState, path, module2, hot) { 16810 var isRoot = !path.length; 16811 var namespace = store._modules.getNamespace(path); 16812 if (module2.namespaced) { 16813 if (store._modulesNamespaceMap[namespace] && false) ; 16814 store._modulesNamespaceMap[namespace] = module2; 16815 } 16816 if (!isRoot && !hot) { 16817 var parentState = getNestedState(rootState, path.slice(0, -1)); 16818 var moduleName = path[path.length - 1]; 16819 store._withCommit(function() { 16820 parentState[moduleName] = module2.state; 16821 }); 16822 } 16823 var local = module2.context = makeLocalContext(store, namespace, path); 16824 module2.forEachMutation(function(mutation, key) { 16825 var namespacedType = namespace + key; 16826 registerMutation(store, namespacedType, mutation, local); 16827 }); 16828 module2.forEachAction(function(action, key) { 16829 var type = action.root ? key : namespace + key; 16830 var handler = action.handler || action; 16831 registerAction(store, type, handler, local); 16832 }); 16833 module2.forEachGetter(function(getter, key) { 16834 var namespacedType = namespace + key; 16835 registerGetter(store, namespacedType, getter, local); 16836 }); 16837 module2.forEachChild(function(child, key) { 16838 installModule(store, rootState, path.concat(key), child, hot); 16839 }); 16840} 16841function makeLocalContext(store, namespace, path) { 16842 var noNamespace = namespace === ""; 16843 var local = { 16844 dispatch: noNamespace ? store.dispatch : function(_type, _payload, _options) { 16845 var args = unifyObjectStyle(_type, _payload, _options); 16846 var payload = args.payload; 16847 var options = args.options; 16848 var type = args.type; 16849 if (!options || !options.root) { 16850 type = namespace + type; 16851 } 16852 return store.dispatch(type, payload); 16853 }, 16854 commit: noNamespace ? store.commit : function(_type, _payload, _options) { 16855 var args = unifyObjectStyle(_type, _payload, _options); 16856 var payload = args.payload; 16857 var options = args.options; 16858 var type = args.type; 16859 if (!options || !options.root) { 16860 type = namespace + type; 16861 } 16862 store.commit(type, payload, options); 16863 } 16864 }; 16865 Object.defineProperties(local, { 16866 getters: { 16867 get: noNamespace ? function() { 16868 return store.getters; 16869 } : function() { 16870 return makeLocalGetters(store, namespace); 16871 } 16872 }, 16873 state: { 16874 get: function() { 16875 return getNestedState(store.state, path); 16876 } 16877 } 16878 }); 16879 return local; 16880} 16881function makeLocalGetters(store, namespace) { 16882 if (!store._makeLocalGettersCache[namespace]) { 16883 var gettersProxy = {}; 16884 var splitPos = namespace.length;
16885 Object.keys(store.getters).forEach(function(type) { 16886 if (type.slice(0, splitPos) !== namespace) { 16887 return; 16888 } 16889 var localType = type.slice(splitPos); 16890 Object.defineProperty(gettersProxy, localType, { 16891 get: function() { 16892 return store.getters[type]; 16893 }, 16894 enumerable: true 16895 }); 16896 }); 16897 store._makeLocalGettersCache[namespace] = gettersProxy; 16898 } 16899 return store._makeLocalGettersCache[namespace]; 16900} 16901function registerMutation(store, type, handler, local) { 16902 var entry = store._mutations[type] || (store._mutations[type] = []); 16903 entry.push(function wrappedMutationHandler(payload) { 16904 handler.call(store, local.state, payload); 16905 }); 16906} 16907function registerAction(store, type, handler, local) { 16908 var entry = store._actions[type] || (store._actions[type] = []); 16909 entry.push(function wrappedActionHandler(payload) { 16910 var res = handler.call(store, { 16911 dispatch: local.dispatch, 16912 commit: local.commit, 16913 getters: local.getters, 16914 state: local.state, 16915 rootGetters: store.getters, 16916 rootState: store.state 16917 }, payload); 16918 if (!isPromise(res)) { 16919 res = Promise.resolve(res); 16920 } 16921 if (store._devtoolHook) { 16922 return res.catch(function(err) { 16923 store._devtoolHook.emit("vuex:error", err); 16924 throw err; 16925 }); 16926 } else { 16927 return res; 16928 } 16929 }); 16930} 16931function registerGetter(store, type, rawGetter, local) { 16932 if (store._wrappedGetters[type]) { 16933 return; 16934 } 16935 store._wrappedGetters[type] = function wrappedGetter(store2) { 16936 return rawGetter( 16937 local.state, 16938 // local state 16939 local.getters, 16940 // local getters 16941 store2.state, 16942 // root state 16943 store2.getters 16944 // root getters 16945 ); 16946 }; 16947} 16948function enableStrictMode(store) { 16949 watch(function() { 16950 return store._state.data; 16951 }, function() { 16952 }, { deep: true, flush: "sync" }); 16953} 16954function getNestedState(state, path) { 16955 return path.reduce(function(state2, key) { 16956 return state2[key]; 16957 }, state); 16958} 16959function unifyObjectStyle(type, payload, options) { 16960 if (isObject$3(type) && type.type) { 16961 options = payload; 16962 payload = type; 16963 type = type.type; 16964 } 16965 return { type, payload, options }; 16966} 16967var LABEL_VUEX_BINDINGS = "vuex bindings"; 16968var MUTATIONS_LAYER_ID = "vuex:mutations"; 16969var ACTIONS_LAYER_ID = "vuex:actions"; 16970var INSPECTOR_ID = "vuex"; 16971var actionId = 0; 16972function addDevtools(app, store) { 16973 setupDevtoolsPlugin( 16974 { 16975 id: "org.vuejs.vuex", 16976 app, 16977 label: "Vuex", 16978 homepage: "https://next.vuex.vuejs.org/", 16979 logo: "https://vuejs.org/images/icons/favicon-96x96.png", 16980 packageName: "vuex", 16981 componentStateTypes: [LABEL_VUEX_BINDINGS] 16982 }, 16983 function(api) { 16984 api.addTimelineLayer({ 16985 id: MUTATIONS_LAYER_ID, 16986 label: "Vuex Mutations", 16987 color: COLOR_LIME_500 16988 }); 16989 api.addTimelineLayer({ 16990 id: ACTIONS_LAYER_ID, 16991 label: "Vuex Actions", 16992 color: COLOR_LIME_500 16993 }); 16994 api.addInspector({ 16995 id: INSPECTOR_ID, 16996 label: "Vuex", 16997 icon: "storage", 16998 treeFilterPlaceholder: "Filter stores..." 16999 }); 17000 api.on.getInspectorTree(function(payload) { 17001 if (payload.app === app && payload.inspectorId === INSPECTOR_ID) { 17002 if (payload.filter) { 17003 var nodes = []; 17004 flattenStoreForInspectorTree(nodes, store._modules.root, payload.filter, ""); 17005 payload.rootNodes = nodes; 17006 } else { 17007 payload.rootNodes = [ 17008 formatStoreForInspectorTree(store._modules.root, "") 17009 ]; 17010 } 17011 } 17012 }); 17013 api.on.getInspectorState(function(payload) { 17014 if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
17015 var modulePath = payload.nodeId; 17016 makeLocalGetters(store, modulePath); 17017 payload.state = formatStoreForInspectorState( 17018 getStoreModule(store._modules, modulePath), 17019 modulePath === "root" ? store.getters : store._makeLocalGettersCache, 17020 modulePath 17021 ); 17022 } 17023 }); 17024 api.on.editInspectorState(function(payload) { 17025 if (payload.app === app && payload.inspectorId === INSPECTOR_ID) { 17026 var modulePath = payload.nodeId; 17027 var path = payload.path; 17028 if (modulePath !== "root") { 17029 path = modulePath.split("/").filter(Boolean).concat(path); 17030 } 17031 store._withCommit(function() { 17032 payload.set(store._state.data, path, payload.state.value); 17033 }); 17034 } 17035 }); 17036 store.subscribe(function(mutation, state) { 17037 var data = {}; 17038 if (mutation.payload) { 17039 data.payload = mutation.payload; 17040 } 17041 data.state = state; 17042 api.notifyComponentUpdate(); 17043 api.sendInspectorTree(INSPECTOR_ID); 17044 api.sendInspectorState(INSPECTOR_ID); 17045 api.addTimelineEvent({ 17046 layerId: MUTATIONS_LAYER_ID, 17047 event: { 17048 time: Date.now(), 17049 title: mutation.type, 17050 data 17051 } 17052 }); 17053 }); 17054 store.subscribeAction({ 17055 before: function(action, state) { 17056 var data = {}; 17057 if (action.payload) { 17058 data.payload = action.payload; 17059 } 17060 action._id = actionId++; 17061 action._time = Date.now(); 17062 data.state = state; 17063 api.addTimelineEvent({ 17064 layerId: ACTIONS_LAYER_ID, 17065 event: { 17066 time: action._time, 17067 title: action.type, 17068 groupId: action._id, 17069 subtitle: "start", 17070 data 17071 } 17072 }); 17073 }, 17074 after: function(action, state) { 17075 var data = {}; 17076 var duration = Date.now() - action._time; 17077 data.duration = { 17078 _custom: { 17079 type: "duration", 17080 display: duration + "ms", 17081 tooltip: "Action duration", 17082 value: duration 17083 } 17084 }; 17085 if (action.payload) { 17086 data.payload = action.payload; 17087 } 17088 data.state = state; 17089 api.addTimelineEvent({ 17090 layerId: ACTIONS_LAYER_ID, 17091 event: { 17092 time: Date.now(), 17093 title: action.type, 17094 groupId: action._id, 17095 subtitle: "end", 17096 data 17097 } 17098 }); 17099 } 17100 }); 17101 } 17102 ); 17103} 17104var COLOR_LIME_500 = 8702998; 17105var COLOR_DARK = 6710886; 17106var COLOR_WHITE = 16777215; 17107var TAG_NAMESPACED = { 17108 label: "namespaced", 17109 textColor: COLOR_WHITE, 17110 backgroundColor: COLOR_DARK 17111}; 17112function extractNameFromPath(path) { 17113 return path && path !== "root" ? path.split("/").slice(-2, -1)[0] : "Root"; 17114} 17115function formatStoreForInspectorTree(module2, path) { 17116 return { 17117 id: path || "root", 17118 // all modules end with a `/`, we want the last segment only 17119 // cart/ -> cart 17120 // nested/cart/ -> cart 17121 label: extractNameFromPath(path), 17122 tags: module2.namespaced ? [TAG_NAMESPACED] : [], 17123 children: Object.keys(module2._children).map( 17124 function(moduleName) { 17125 return formatStoreForInspectorTree( 17126 module2._children[moduleName], 17127 path + moduleName + "/" 17128 ); 17129 } 17130 ) 17131 }; 17132} 17133function flattenStoreForInspectorTree(result, module2, filter2, path) { 17134 if (path.includes(filter2)) { 17135 result.push({ 17136 id: path || "root", 17137 label: path.endsWith("/") ? path.slice(0, path.length - 1) : path || "Root", 17138 tags: module2.namespaced ? [TAG_NAMESPACED] : [] 17139 }); 17140 } 17141 Object.keys(module2._children).forEach(function(moduleName) { 17142 flattenStoreForInspectorTree(result, module2._children[moduleName], filter2, path + moduleName + "/"); 17143 }); 17144} 17145function formatStoreForInspectorState(module2, getters, path) { 17146 getters = path === "root" ? getters : getters[path]; 17147 var gettersKeys = Object.keys(getters); 17148 var storeState = { 17149 state: Object.keys(module2.state).map(function(key) { 17150 return { 17151 key, 17152 editable: true, 17153 value: module2.state[key] 17154 }; 17155 }) 17156 }; 17157 if (gettersKeys.length) { 17158 var tree = transformPathsToObjectTree(getters); 17159 storeState.getters = Object.keys(tree).map(function(key) { 17160 return { 17161 key: key.endsWith("/") ? extractNameFromPath(key) : key, 17162 editable: false, 17163 value: canThrow(function() { 17164 return tree[key]; 17165 }) 17166 }; 17167 }); 17168 } 17169 return storeState; 17170} 17171function transformPathsToObjectTree(getters) { 17172 var result = {};
17173 Object.keys(getters).forEach(function(key) { 17174 var path = key.split("/"); 17175 if (path.length > 1) { 17176 var target = result; 17177 var leafKey = path.pop(); 17178 path.forEach(function(p2) { 17179 if (!target[p2]) { 17180 target[p2] = { 17181 _custom: { 17182 value: {}, 17183 display: p2, 17184 tooltip: "Module", 17185 abstract: true 17186 } 17187 }; 17188 } 17189 target = target[p2]._custom.value; 17190 }); 17191 target[leafKey] = canThrow(function() { 17192 return getters[key]; 17193 }); 17194 } else { 17195 result[key] = canThrow(function() { 17196 return getters[key]; 17197 }); 17198 } 17199 }); 17200 return result; 17201} 17202function getStoreModule(moduleMap, path) { 17203 var names = path.split("/").filter(function(n) { 17204 return n; 17205 }); 17206 return names.reduce( 17207 function(module2, moduleName, i) { 17208 var child = module2[moduleName]; 17209 if (!child) { 17210 throw new Error('Missing module "' + moduleName + '" for path "' + path + '".'); 17211 } 17212 return i === names.length - 1 ? child : child._children; 17213 }, 17214 path === "root" ? moduleMap : moduleMap.root._children 17215 ); 17216} 17217function canThrow(cb) { 17218 try { 17219 return cb(); 17220 } catch (e) { 17221 return e; 17222 } 17223} 17224var Module = function Module2(rawModule, runtime) { 17225 this.runtime = runtime; 17226 this._children = /* @__PURE__ */ Object.create(null); 17227 this._rawModule = rawModule; 17228 var rawState = rawModule.state; 17229 this.state = (typeof rawState === "function" ? rawState() : rawState) || {}; 17230}; 17231var prototypeAccessors$1 = { namespaced: { configurable: true } }; 17232prototypeAccessors$1.namespaced.get = function() { 17233 return !!this._rawModule.namespaced; 17234}; 17235Module.prototype.addChild = function addChild(key, module2) { 17236 this._children[key] = module2; 17237}; 17238Module.prototype.removeChild = function removeChild(key) { 17239 delete this._children[key]; 17240}; 17241Module.prototype.getChild = function getChild(key) { 17242 return this._children[key]; 17243}; 17244Module.prototype.hasChild = function hasChild(key) { 17245 return key in this._children; 17246}; 17247Module.prototype.update = function update(rawModule) { 17248 this._rawModule.namespaced = rawModule.namespaced; 17249 if (rawModule.actions) { 17250 this._rawModule.actions = rawModule.actions; 17251 } 17252 if (rawModule.mutations) { 17253 this._rawModule.mutations = rawModule.mutations; 17254 } 17255 if (rawModule.getters) { 17256 this._rawModule.getters = rawModule.getters; 17257 } 17258}; 17259Module.prototype.forEachChild = function forEachChild(fn) { 17260 forEachValue(this._children, fn); 17261}; 17262Module.prototype.forEachGetter = function forEachGetter(fn) { 17263 if (this._rawModule.getters) { 17264 forEachValue(this._rawModule.getters, fn); 17265 } 17266}; 17267Module.prototype.forEachAction = function forEachAction(fn) { 17268 if (this._rawModule.actions) { 17269 forEachValue(this._rawModule.actions, fn); 17270 } 17271}; 17272Module.prototype.forEachMutation = function forEachMutation(fn) { 17273 if (this._rawModule.mutations) { 17274 forEachValue(this._rawModule.mutations, fn); 17275 } 17276}; 17277Object.defineProperties(Module.prototype, prototypeAccessors$1); 17278var ModuleCollection = function ModuleCollection2(rawRootModule) { 17279 this.register([], rawRootModule, false); 17280}; 17281ModuleCollection.prototype.get = function get(path) { 17282 return path.reduce(function(module2, key) { 17283 return module2.getChild(key); 17284 }, this.root); 17285}; 17286ModuleCollection.prototype.getNamespace = function getNamespace(path) { 17287 var module2 = this.root; 17288 return path.reduce(function(namespace, key) { 17289 module2 = module2.getChild(key); 17290 return namespace + (module2.namespaced ? key + "/" : ""); 17291 }, ""); 17292}; 17293ModuleCollection.prototype.update = function update$1(rawRootModule) { 17294 update2([], this.root, rawRootModule); 17295}; 17296ModuleCollection.prototype.register = function register(path, rawModule, runtime) { 17297 var this$1$1 = this; 17298 if (runtime === void 0) runtime = true; 17299 var newModule = new Module(rawModule, runtime); 17300 if (path.length === 0) { 17301 this.root = newModule; 17302 } else { 17303 var parent = this.get(path.slice(0, -1)); 17304 parent.addChild(path[path.length - 1], newModule); 17305 } 17306 if (rawModule.modules) { 17307 forEachValue(rawModule.modules, function(rawChildModule, key) { 17308 this$1$1.register(path.concat(key), rawChildModule, runtime); 17309 }); 17310 } 17311}; 17312ModuleCollection.prototype.unregister = function unregister(path) { 17313 var parent = this.get(path.slice(0, -1)); 17314 var key = path[path.length - 1]; 17315 var child = parent.getChild(key); 17316 if (!child) { 17317 return; 17318 } 17319 if (!child.runtime) { 17320 return; 17321 } 17322 parent.removeChild(key); 17323}; 17324ModuleCollection.prototype.isRegistered = function isRegistered(path) { 17325 var parent = this.get(path.slice(0, -1)); 17326 var key = path[path.length - 1]; 17327 if (parent) { 17328 return parent.hasChild(key); 17329 } 17330 return false;
17331}; 17332function update2(path, targetModule, newModule) { 17333 targetModule.update(newModule); 17334 if (newModule.modules) { 17335 for (var key in newModule.modules) { 17336 if (!targetModule.getChild(key)) { 17337 return; 17338 } 17339 update2( 17340 path.concat(key), 17341 targetModule.getChild(key), 17342 newModule.modules[key] 17343 ); 17344 } 17345 } 17346} 17347function createStore(options) { 17348 return new Store(options); 17349} 17350var Store = function Store2(options) { 17351 var this$1$1 = this; 17352 if (options === void 0) options = {}; 17353 var plugins = options.plugins; 17354 if (plugins === void 0) plugins = []; 17355 var strict = options.strict; 17356 if (strict === void 0) strict = false; 17357 var devtools2 = options.devtools; 17358 this._committing = false; 17359 this._actions = /* @__PURE__ */ Object.create(null); 17360 this._actionSubscribers = []; 17361 this._mutations = /* @__PURE__ */ Object.create(null); 17362 this._wrappedGetters = /* @__PURE__ */ Object.create(null); 17363 this._modules = new ModuleCollection(options); 17364 this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null); 17365 this._subscribers = []; 17366 this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null); 17367 this._devtools = devtools2; 17368 var store = this; 17369 var ref2 = this; 17370 var dispatch2 = ref2.dispatch; 17371 var commit2 = ref2.commit; 17372 this.dispatch = function boundDispatch(type, payload) { 17373 return dispatch2.call(store, type, payload); 17374 }; 17375 this.commit = function boundCommit(type, payload, options2) { 17376 return commit2.call(store, type, payload, options2); 17377 }; 17378 this.strict = strict; 17379 var state = this._modules.root.state; 17380 installModule(this, state, [], this._modules.root); 17381 resetStoreState(this, state); 17382 plugins.forEach(function(plugin) { 17383 return plugin(this$1$1); 17384 }); 17385}; 17386var prototypeAccessors = { state: { configurable: true } }; 17387Store.prototype.install = function install(app, injectKey) { 17388 app.provide(injectKey || storeKey, this); 17389 app.config.globalProperties.$store = this; 17390 var useDevtools = this._devtools !== void 0 ? this._devtools : false; 17391 if (useDevtools) { 17392 addDevtools(app, this); 17393 } 17394}; 17395prototypeAccessors.state.get = function() { 17396 return this._state.data; 17397}; 17398prototypeAccessors.state.set = function(v2) { 17399}; 17400Store.prototype.commit = function commit(_type, _payload, _options) { 17401 var this$1$1 = this; 17402 var ref2 = unifyObjectStyle(_type, _payload, _options); 17403 var type = ref2.type; 17404 var payload = ref2.payload; 17405 var mutation = { type, payload }; 17406 var entry = this._mutations[type]; 17407 if (!entry) { 17408 return; 17409 } 17410 this._withCommit(function() { 17411 entry.forEach(function commitIterator(handler) { 17412 handler(payload); 17413 }); 17414 }); 17415 this._subscribers.slice().forEach(function(sub2) { 17416 return sub2(mutation, this$1$1.state); 17417 }); 17418}; 17419Store.prototype.dispatch = function dispatch(_type, _payload) { 17420 var this$1$1 = this; 17421 var ref2 = unifyObjectStyle(_type, _payload); 17422 var type = ref2.type; 17423 var payload = ref2.payload; 17424 var action = { type, payload }; 17425 var entry = this._actions[type]; 17426 if (!entry) { 17427 return; 17428 } 17429 try { 17430 this._actionSubscribers.slice().filter(function(sub2) { 17431 return sub2.before; 17432 }
17432).forEach(function(sub2) { 17433 return sub2.before(action, this$1$1.state); 17434 }); 17435 } catch (e) { 17436 } 17437 var result = entry.length > 1 ? Promise.all(entry.map(function(handler) { 17438 return handler(payload); 17439 })) : entry[0](payload); 17440 return new Promise(function(resolve2, reject) { 17441 result.then(function(res) { 17442 try { 17443 this$1$1._actionSubscribers.filter(function(sub2) { 17444 return sub2.after; 17445 }).forEach(function(sub2) { 17446 return sub2.after(action, this$1$1.state); 17447 }); 17448 } catch (e) { 17449 } 17450 resolve2(res); 17451 }, function(error) { 17452 try { 17453 this$1$1._actionSubscribers.filter(function(sub2) { 17454 return sub2.error; 17455 }).forEach(function(sub2) { 17456 return sub2.error(action, this$1$1.state, error); 17457 }); 17458 } catch (e) { 17459 } 17460 reject(error); 17461 }); 17462 }); 17463}; 17464Store.prototype.subscribe = function subscribe(fn, options) { 17465 return genericSubscribe(fn, this._subscribers, options); 17466}; 17467Store.prototype.subscribeAction = function subscribeAction(fn, options) { 17468 var subs = typeof fn === "function" ? { before: fn } : fn; 17469 return genericSubscribe(subs, this._actionSubscribers, options); 17470}; 17471Store.prototype.watch = function watch$12(getter, cb, options) { 17472 var this$1$1 = this; 17473 return watch(function() { 17474 return getter(this$1$1.state, this$1$1.getters); 17475 }, cb, Object.assign({}, options)); 17476}; 17477Store.prototype.replaceState = function replaceState(state) { 17478 var this$1$1 = this; 17479 this._withCommit(function() { 17480 this$1$1._state.data = state; 17481 }); 17482}; 17483Store.prototype.registerModule = function registerModule(path, rawModule, options) { 17484 if (options === void 0) options = {}; 17485 if (typeof path === "string") { 17486 path = [path]; 17487 } 17488 this._modules.register(path, rawModule); 17489 installModule(this, this.state, path, this._modules.get(path), options.preserveState); 17490 resetStoreState(this, this.state); 17491}; 17492Store.prototype.unregisterModule = function unregisterModule(path) { 17493 var this$1$1 = this; 17494 if (typeof path === "string") { 17495 path = [path]; 17496 } 17497 this._modules.unregister(path); 17498 this._withCommit(function() { 17499 var parentState = getNestedState(this$1$1.state, path.slice(0, -1)); 17500 delete parentState[path[path.length - 1]]; 17501 }); 17502 resetStore(this); 17503}; 17504Store.prototype.hasModule = function hasModule(path) { 17505 if (typeof path === "string") { 17506 path = [path]; 17507 } 17508 return this._modules.isRegistered(path); 17509}; 17510Store.prototype.hotUpdate = function hotUpdate(newOptions) { 17511 this._modules.update(newOptions); 17512 resetStore(this, true); 17513}; 17514Store.prototype._withCommit = function _withCommit(fn) { 17515 var committing = this._committing; 17516 this._committing = true; 17517 fn(); 17518 this._committing = committing; 17519}; 17520Object.defineProperties(Store.prototype, prototypeAccessors); 17521var mapGetters = normalizeNamespace(function(namespace, getters) { 17522 var res = {}; 17523 normalizeMap(getters).forEach(function(ref2) { 17524 var key = ref2.key; 17525 var val = ref2.val; 17526 val = namespace + val; 17527 res[key] = function mappedGetter() { 17528 if (namespace && !getModuleByNamespace(this.$store, "mapGetters", namespace)) { 17529 return; 17530 } 17531 return this.$store.getters[val]; 17532 }; 17533 res[key].vuex = true; 17534 }); 17535 return res; 17536}); 17537function normalizeMap(map) { 17538 if (!isValidMap(map)) { 17539 return []; 17540 } 17541 return Array.isArray(map) ? map.map(function(key) { 17542 return { key, val: key }; 17543 }) : Object.keys(map).map(function(key) { 17544 return { key, val: map[key] }; 17545 }); 17546} 17547function isValidMap(map) { 17548 return Array.isArray(map) || isObject$3(map); 17549} 17550function normalizeNamespace(fn) { 17551 return function(namespace, map) { 17552 if (typeof namespace !== "string") { 17553 map = namespace; 17554 namespace = ""; 17555 } else if (namespace.charAt(namespace.length - 1) !== "/") { 17556 namespace += "/"; 17557 } 17558 return fn(namespace, map); 17559 }; 17560} 17561function getModuleByNamespace(store, helper, namespace) { 17562 var module2 = store._modulesNamespaceMap[namespace]; 17563 return module2; 17564} 17565function bind(fn, thisArg) { 17566 return function wrap() { 17567 return fn.apply(thisArg, arguments); 17568 }; 17569} 17570const { toString: toString$1 } = Object.prototype; 17571const { getPrototypeOf } = Object; 17572const { iterator, toStringTag } = Symbol; 17573const kindOf = /* @__PURE__ */ ((cache) => (thing) => { 17574 const str = toString$1.call(thing); 17575 return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); 17576})(/* @__PURE__ */ Object.create(null)); 17577const kindOfTest = (type) => { 17578 type = type.toLowerCase(); 17579 return (thing) => kindOf(thing) === type; 17580}; 17581const typeOfTest = (type) => (thing) => typeof thing === type; 17582const { isArray: isArray$2 } = Array; 17583const isUndefined = typeOfTest("undefined"); 17584function isBuffer$1(val) { 17585 return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$3(val.constructor.isBuffer) && val.constructor.isBuffer(val); 17586} 17587const isArrayBuffer = kindOfTest("ArrayBuffer"); 17588function isArrayBufferView(val) { 17589 let result; 17590 if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) { 17591 result = ArrayBuffer.isView(val); 17592 } else { 17593 result = val && val.buffer && isArrayBuffer(val.buffer); 17594 } 17595 return result; 17596} 17597const isString = typeOfTest("string"); 17598const isFunction$3 = typeOfTest("function"); 17599const isNumber = typeOfTest("number"); 17600const isObject$2 = (thing) => thing !== null && typeof thing === "object"; 17601const isBoolean = (thing) => thing === true || thing === false; 17602const isPlainObject$2 = (val) => { 17603 if (kindOf(val) !== "object") { 17604 return false;
17605 } 17606 const prototype2 = getPrototypeOf(val); 17607 return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val); 17608}; 17609const isEmptyObject = (val) => { 17610 if (!isObject$2(val) || isBuffer$1(val)) { 17611 return false; 17612 } 17613 try { 17614 return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype; 17615 } catch (e) { 17616 return false; 17617 } 17618}; 17619const isDate$1 = kindOfTest("Date"); 17620const isFile$1 = kindOfTest("File"); 17621const isReactNativeBlob = (value) => { 17622 return !!(value && typeof value.uri !== "undefined"); 17623}; 17624const isReactNative = (formData) => formData && typeof formData.getParts !== "undefined"; 17625const isBlob = kindOfTest("Blob"); 17626const isFileList = kindOfTest("FileList"); 17627const isStream = (val) => isObject$2(val) && isFunction$3(val.pipe); 17628function getGlobal() { 17629 if (typeof globalThis !== "undefined") return globalThis; 17630 if (typeof self !== "undefined") return self; 17631 if (typeof window !== "undefined") return window; 17632 if (typeof global !== "undefined") return global; 17633 return {}; 17634} 17635const G = getGlobal(); 17636const FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0; 17637const isFormData = (thing) => { 17638 if (!thing) return false; 17639 if (FormDataCtor && thing instanceof FormDataCtor) return true; 17640 const proto = getPrototypeOf(thing); 17641 if (!proto || proto === Object.prototype) return false; 17642 if (!isFunction$3(thing.append)) return false; 17643 const kind = kindOf(thing); 17644 return kind === "formdata" || // detect form-data instance 17645 kind === "object" && isFunction$3(thing.toString) && thing.toString() === "[object FormData]"; 17646}; 17647const isURLSearchParams = kindOfTest("URLSearchParams"); 17648const [isReadableStream, isRequest, isResponse, isHeaders] = [ 17649 "ReadableStream", 17650 "Request", 17651 "Response", 17652 "Headers" 17653].map(kindOfTest); 17654const trim = (str) => { 17655 return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); 17656}; 17657function forEach(obj, fn, { allOwnKeys = false } = {}) { 17658 if (obj === null || typeof obj === "undefined") { 17659 return; 17660 } 17661 let i; 17662 let l3; 17663 if (typeof obj !== "object") { 17664 obj = [obj]; 17665 } 17666 if (isArray$2(obj)) { 17667 for (i = 0, l3 = obj.length; i < l3; i++) { 17668 fn.call(null, obj[i], i, obj); 17669 } 17670 } else { 17671 if (isBuffer$1(obj)) { 17672 return; 17673 } 17674 const keys2 = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); 17675 const len = keys2.length; 17676 let key; 17677 for (i = 0; i < len; i++) { 17678 key = keys2[i]; 17679 fn.call(null, obj[key], key, obj); 17680 } 17681 } 17682} 17683function findKey$1(obj, key) { 17684 if (isBuffer$1(obj)) { 17685 return null; 17686 } 17687 key = key.toLowerCase(); 17688 const keys2 = Object.keys(obj); 17689 let i = keys2.length; 17690 let _key; 17691 while (i-- > 0) { 17692 _key = keys2[i]; 17693 if (key === _key.toLowerCase()) { 17694 return _key; 17695 } 17696 } 17697 return null; 17698} 17699const _global = (() => { 17700 if (typeof globalThis !== "undefined") return globalThis; 17701 return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global; 17702})(); 17703const isContextDefined = (context) => !isUndefined(context) && context !== _global; 17704function merge$2(...objs) { 17705 const { caseless, skipUndefined } = isContextDefined(this) && this || {}; 17706 const result = {}; 17707 const assignValue2 = (val, key) => { 17708 if (key === "__proto__" || key === "constructor" || key === "prototype") { 17709 return; 17710 } 17711 const targetKey = caseless && findKey$1(result, key) || key; 17712 const existing = hasOwnProperty$b(result, targetKey) ? result[targetKey] : void 0; 17713 if (isPlainObject$2(existing) && isPlainObject$2(val)) { 17714 result[targetKey] = merge$2(existing, val); 17715 } else if (isPlainObject$2(val)) { 17716 result[targetKey] = merge$2({}, val); 17717 } else if (isArray$2(val)) { 17718 result[targetKey] = val.slice(); 17719 } else if (!skipUndefined || !isUndefined(val)) { 17720 result[targetKey] = val; 17721 } 17722 }; 17723 for (let i = 0, l3 = objs.length; i < l3; i++) { 17724 objs[i] && forEach(objs[i], assignValue2); 17725 } 17726 return result; 17727} 17728const extend = (a, b2, thisArg, { allOwnKeys } = {}) => { 17729 forEach( 17730 b2, 17731 (val, key) => { 17732 if (thisArg && isFunction$3(val)) { 17733 Object.defineProperty(a, key, { 17734 // Null-proto descriptor so a polluted Object.prototype.get cannot 17735 // hijack defineProperty's accessor-vs-data resolution. 17736 __proto__: null, 17737 value: bind(val, thisArg), 17738 writable: true, 17739 enumerable: true, 17740 configurable: true 17741 }); 17742 } else { 17743 Object.defineProperty(a, key, { 17744 __proto__: null, 17745 value: val, 17746 writable: true, 17747 enumerable: true, 17748 configurable: true 17749 }); 17750 } 17751 }, 17752 { allOwnKeys } 17753 ); 17754 return a; 17755}; 17756const stripBOM = (content) => { 17757 if (content.charCodeAt(0) === 65279) { 17758 content = content.slice(1); 17759 } 17760 return content; 17761}; 17762const inherits = (constructor, superConstructor, props, descriptors) => { 17763 constructor.prototype = Object.create(superConstructor.prototype, descriptors); 17764 Object.defineProperty(constructor.prototype, "constructor", { 17765 __proto__: null, 17766 value: constructor, 17767 writable: true, 17768 enumerable: false, 17769 configurable: true 17770 }); 17771 Object.defineProperty(constructor, "super", { 17772 __proto__: null, 17773 value: superConstructor.prototype 17774 }); 17775 props && Object.assign(constructor.prototype, props); 17776}; 17777const toFlatObject = (sourceObj, destObj, filter2, propFilter) => { 17778 let props; 17779 let i; 17780 let prop; 17781 const merged = {}; 17782 destObj = destObj || {}; 17783 if (sourceObj == null) return destObj; 17784 do { 17785 props = Object.getOwnPropertyNames(sourceObj); 17786 i = props.length; 17787 while (i-- > 0) { 17788 prop = props[i]; 17789 if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { 17790 destObj[prop] = sourceObj[prop]; 17791 merged[prop] = true; 17792 } 17793 } 17794 sourceObj = filter2 !== false && getPrototypeOf(sourceObj); 17795 } while (sourceObj && (!filter2 || filter2(sourceObj, destObj)) && sourceObj !== Object.prototype); 17796 return destObj; 17797}; 17798const endsWith = (str, searchString, position) => { 17799 str = String(str); 17800 if (position === void 0 || position > str.length) { 17801 position = str.length; 17802 } 17803 position -= searchString.length; 17804 const lastIndex = str.indexOf(searchString, position); 17805 return lastIndex !== -1 && lastIndex === position; 17806}; 17807const toArray = (thing) => { 17808 if (!thing) return null; 17809 if (isArray$2(thing)) return thing; 17810 let i = thing.length; 17811 if (!isNumber(i)) return null; 17812 const arr = new Array(i); 17813 while (i-- > 0) { 17814 arr[i] = thing[i]; 17815 } 17816 return arr; 17817}; 17818const isTypedArray$1 = /* @__PURE__ */ ((TypedArray) => { 17819 return (thing) => { 17820 return TypedArray && thing instanceof TypedArray; 17821 }; 17822})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
vendor: 6,575 bytes, lines 17823-18069
17823const forEachEntry = (obj, fn) => { 17824 const generator = obj && obj[iterator]; 17825 const _iterator = generator.call(obj); 17826 let result; 17827 while ((result = _iterator.next()) && !result.done) { 17828 const pair = result.value; 17829 fn.call(obj, pair[0], pair[1]); 17830 } 17831}; 17832const matchAll = (regExp, str) => { 17833 let matches2; 17834 const arr = []; 17835 while ((matches2 = regExp.exec(str)) !== null) { 17836 arr.push(matches2); 17837 } 17838 return arr; 17839}; 17840const isHTMLForm = kindOfTest("HTMLFormElement"); 17841const toCamelCase = (str) => { 17842 return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer2(m, p1, p2) { 17843 return p1.toUpperCase() + p2; 17844 }); 17845}; 17846const hasOwnProperty$b = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype); 17847const isRegExp = kindOfTest("RegExp"); 17848const reduceDescriptors = (obj, reducer) => { 17849 const descriptors = Object.getOwnPropertyDescriptors(obj); 17850 const reducedDescriptors = {}; 17851 forEach(descriptors, (descriptor, name) => { 17852 let ret; 17853 if ((ret = reducer(descriptor, name, obj)) !== false) { 17854 reducedDescriptors[name] = ret || descriptor; 17855 } 17856 }); 17857 Object.defineProperties(obj, reducedDescriptors); 17858}; 17859const freezeMethods = (obj) => { 17860 reduceDescriptors(obj, (descriptor, name) => { 17861 if (isFunction$3(obj) && ["arguments", "caller", "callee"].includes(name)) { 17862 return false; 17863 } 17864 const value = obj[name]; 17865 if (!isFunction$3(value)) return; 17866 descriptor.enumerable = false; 17867 if ("writable" in descriptor) { 17868 descriptor.writable = false; 17869 return; 17870 } 17871 if (!descriptor.set) { 17872 descriptor.set = () => { 17873 throw Error("Can not rewrite read-only method '" + name + "'"); 17874 }; 17875 } 17876 }); 17877}; 17878const toObjectSet = (arrayOrString, delimiter) => { 17879 const obj = {}; 17880 const define = (arr) => { 17881 arr.forEach((value) => { 17882 obj[value] = true; 17883 }); 17884 }; 17885 isArray$2(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); 17886 return obj; 17887}; 17888const noop$1 = () => { 17889}; 17890const toFiniteNumber = (value, defaultValue) => { 17891 return value != null && Number.isFinite(value = +value) ? value : defaultValue; 17892}; 17893function isSpecCompliantForm(thing) { 17894 return !!(thing && isFunction$3(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]); 17895} 17896const toJSONObject = (obj) => { 17897 const visited = /* @__PURE__ */ new WeakSet(); 17898 const visit = (source) => { 17899 if (isObject$2(source)) { 17900 if (visited.has(source)) { 17901 return; 17902 } 17903 if (isBuffer$1(source)) { 17904 return source; 17905 } 17906 if (!("toJSON" in source)) { 17907 visited.add(source); 17908 const target = isArray$2(source) ? [] : {}; 17909 forEach(source, (value, key) => { 17910 const reducedValue = visit(value); 17911 !isUndefined(reducedValue) && (target[key] = reducedValue); 17912 }); 17913 visited.delete(source); 17914 return target; 17915 } 17916 } 17917 return source; 17918 }; 17919 return visit(obj); 17920}; 17921const isAsyncFn = kindOfTest("AsyncFunction"); 17922const isThenable = (thing) => thing && (isObject$2(thing) || isFunction$3(thing)) && isFunction$3(thing.then) && isFunction$3(thing.catch); 17923const _setImmediate = ((setImmediateSupported, postMessageSupported) => { 17924 if (setImmediateSupported) { 17925 return setImmediate; 17926 } 17927 return postMessageSupported ? ((token, callbacks) => { 17928 _global.addEventListener( 17929 "message", 17930 ({ source, data }) => { 17931 if (source === _global && data === token) { 17932 callbacks.length && callbacks.shift()(); 17933 } 17934 }, 17935 false 17936 ); 17937 return (cb) => { 17938 callbacks.push(cb); 17939 _global.postMessage(token, "*"); 17940 }; 17941 })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb); 17942})(typeof setImmediate === "function", isFunction$3(_global.postMessage)); 17943const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate; 17944const isIterable = (thing) => thing != null && isFunction$3(thing[iterator]); 17945const utils$1 = { 17946 isArray: isArray$2, 17947 isArrayBuffer, 17948 isBuffer: isBuffer$1, 17949 isFormData, 17950 isArrayBufferView, 17951 isString, 17952 isNumber, 17953 isBoolean, 17954 isObject: isObject$2, 17955 isPlainObject: isPlainObject$2, 17956 isEmptyObject, 17957 isReadableStream, 17958 isRequest, 17959 isResponse, 17960 isHeaders, 17961 isUndefined, 17962 isDate: isDate$1, 17963 isFile: isFile$1, 17964 isReactNativeBlob, 17965 isReactNative, 17966 isBlob, 17967 isRegExp, 17968 isFunction: isFunction$3, 17969 isStream, 17970 isURLSearchParams, 17971 isTypedArray: isTypedArray$1, 17972 isFileList, 17973 forEach, 17974 merge: merge$2, 17975 extend, 17976 trim, 17977 stripBOM, 17978 inherits, 17979 toFlatObject, 17980 kindOf, 17981 kindOfTest, 17982 endsWith, 17983 toArray, 17984 forEachEntry, 17985 matchAll, 17986 isHTMLForm, 17987 hasOwnProperty: hasOwnProperty$b, 17988 hasOwnProp: hasOwnProperty$b, 17989 // an alias to avoid ESLint no-prototype-builtins detection 17990 reduceDescriptors, 17991 freezeMethods, 17992 toObjectSet, 17993 toCamelCase, 17994 noop: noop$1, 17995 toFiniteNumber, 17996 findKey: findKey$1, 17997 global: _global, 17998 isContextDefined, 17999 isSpecCompliantForm, 18000 toJSONObject, 18001 isAsyncFn, 18002 isThenable, 18003 setImmediate: _setImmediate, 18004 asap, 18005 isIterable 18006}; 18007const ignoreDuplicateOf = utils$1.toObjectSet([ 18008 "age", 18009 "authorization", 18010 "content-length", 18011 "content-type", 18012 "etag", 18013 "expires", 18014 "from", 18015 "host", 18016 "if-modified-since", 18017 "if-unmodified-since", 18018 "last-modified", 18019 "location", 18020 "max-forwards", 18021 "proxy-authorization", 18022 "referer", 18023 "retry-after", 18024 "user-agent" 18025]); 18026const parseHeaders = (rawHeaders) => { 18027 const parsed = {}; 18028 let key; 18029 let val; 18030 let i; 18031 rawHeaders && rawHeaders.split("\n").forEach(function parser(line) { 18032 i = line.indexOf(":"); 18033 key = line.substring(0, i).trim().toLowerCase(); 18034 val = line.substring(i + 1).trim(); 18035 if (!key || parsed[key] && ignoreDuplicateOf[key]) { 18036 return; 18037 } 18038 if (key === "set-cookie") { 18039 if (parsed[key]) { 18040 parsed[key].push(val); 18041 } else { 18042 parsed[key] = [val]; 18043 } 18044 } else { 18045 parsed[key] = parsed[key] ? parsed[key] + ", " + val : val; 18046 } 18047 }); 18048 return parsed; 18049}; 18050function trimSPorHTAB(str) { 18051 let start = 0; 18052 let end = str.length; 18053 while (start < end) { 18054 const code = str.charCodeAt(start); 18055 if (code !== 9 && code !== 32) { 18056 break; 18057 } 18058 start += 1; 18059 } 18060 while (end > start) { 18061 const code = str.charCodeAt(end - 1); 18062 if (code !== 9 && code !== 32) { 18063 break; 18064 } 18065 end -= 1; 18066 } 18067 return start === 0 && end === str.length ? str : str.slice(start, end); 18068} 18069const INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp("[\\u0000-\\u
180690008\\u000a-\\u001f\\u007f]+", "g"); 18070const INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g"); 18071function sanitizeValue(value, invalidChars) { 18072 if (utils$1.isArray(value)) { 18073 return value.map((item) => sanitizeValue(item, invalidChars)); 18074 } 18075 return trimSPorHTAB(String(value).replace(invalidChars, "")); 18076} 18077const sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS); 18078const sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS); 18079function toByteStringHeaderObject(headers) { 18080 const byteStringHeaders = /* @__PURE__ */ Object.create(null); 18081 utils$1.forEach(headers.toJSON(), (value, header) => { 18082 byteStringHeaders[header] = sanitizeByteStringHeaderValue(value); 18083 }); 18084 return byteStringHeaders; 18085} 18086const $internals = Symbol("internals"); 18087function normalizeHeader(header) { 18088 return header && String(header).trim().toLowerCase(); 18089} 18090function normalizeValue(value) { 18091 if (value === false || value == null) { 18092 return value; 18093 } 18094 return utils$1.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value)); 18095} 18096function parseTokens(str) { 18097 const tokens = /* @__PURE__ */ Object.create(null); 18098 const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; 18099 let match2; 18100 while (match2 = tokensRE.exec(str)) { 18101 tokens[match2[1]] = match2[2]; 18102 } 18103 return tokens; 18104} 18105const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()); 18106function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) { 18107 if (utils$1.isFunction(filter2)) { 18108 return filter2.call(this, value, header); 18109 } 18110 if (isHeaderNameFilter) { 18111 value = header; 18112 } 18113 if (!utils$1.isString(value)) return; 18114 if (utils$1.isString(filter2)) { 18115 return value.indexOf(filter2) !== -1; 18116 } 18117 if (utils$1.isRegExp(filter2)) { 18118 return filter2.test(value); 18119 } 18120} 18121function formatHeader(header) { 18122 return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w2, char, str) => { 18123 return char.toUpperCase() + str; 18124 }); 18125} 18126function buildAccessors(obj, header) { 18127 const accessorName = utils$1.toCamelCase(" " + header); 18128 ["get", "set", "has"].forEach((methodName) => { 18129 Object.defineProperty(obj, methodName + accessorName, { 18130 // Null-proto descriptor so a polluted Object.prototype.get cannot turn 18131 // this data descriptor into an accessor descriptor on the way in. 18132 __proto__: null, 18133 value: function(arg1, arg2, arg3) { 18134 return this[methodName].call(this, header, arg1, arg2, arg3); 18135 }, 18136 configurable: true 18137 }); 18138 }); 18139} 18140let AxiosHeaders$1 = class AxiosHeaders { 18141 constructor(headers) { 18142 headers && this.set(headers); 18143 } 18144 set(header, valueOrRewrite, rewrite) { 18145 const self2 = this; 18146 function setHeader(_value, _header, _rewrite) { 18147 const lHeader = normalizeHeader(_header); 18148 if (!lHeader) { 18149 throw new Error("header name must be a non-empty string"); 18150 } 18151 const key = utils$1.findKey(self2, lHeader); 18152 if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) { 18153 self2[key || _header] = normalizeValue(_value); 18154 } 18155 } 18156 const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)); 18157 if (utils$1.isPlainObject(header) || header instanceof this.constructor) { 18158 setHeaders(header, valueOrRewrite); 18159 } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { 18160 setHeaders(parseHeaders(header), valueOrRewrite); 18161 } else if (utils$1.isObject(header) && utils$1.isIterable(header)) { 18162 let obj = {}, dest, key; 18163 for (const entry of header) { 18164 if (!utils$1.isArray(entry)) { 18165 throw TypeError("Object iterator must return a key-value pair"); 18166 } 18167 obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1]; 18168 } 18169 setHeaders(obj, valueOrRewrite); 18170 } else { 18171 header != null && setHeader(valueOrRewrite, header, rewrite); 18172 } 18173 return this; 18174 } 18175 get(header, parser) { 18176 header = normalizeHeader(header); 18177 if (header) {
vendor: 16,026 bytes, lines 18178-18687
18178 const key = utils$1.findKey(this, header); 18179 if (key) { 18180 const value = this[key]; 18181 if (!parser) { 18182 return value; 18183 } 18184 if (parser === true) { 18185 return parseTokens(value); 18186 } 18187 if (utils$1.isFunction(parser)) { 18188 return parser.call(this, value, key); 18189 } 18190 if (utils$1.isRegExp(parser)) { 18191 return parser.exec(value); 18192 } 18193 throw new TypeError("parser must be boolean|regexp|function"); 18194 } 18195 } 18196 } 18197 has(header, matcher2) { 18198 header = normalizeHeader(header); 18199 if (header) { 18200 const key = utils$1.findKey(this, header); 18201 return !!(key && this[key] !== void 0 && (!matcher2 || matchHeaderValue(this, this[key], key, matcher2))); 18202 } 18203 return false; 18204 } 18205 delete(header, matcher2) { 18206 const self2 = this; 18207 let deleted = false; 18208 function deleteHeader(_header) { 18209 _header = normalizeHeader(_header); 18210 if (_header) { 18211 const key = utils$1.findKey(self2, _header); 18212 if (key && (!matcher2 || matchHeaderValue(self2, self2[key], key, matcher2))) { 18213 delete self2[key]; 18214 deleted = true; 18215 } 18216 } 18217 } 18218 if (utils$1.isArray(header)) { 18219 header.forEach(deleteHeader); 18220 } else { 18221 deleteHeader(header); 18222 } 18223 return deleted; 18224 } 18225 clear(matcher2) { 18226 const keys2 = Object.keys(this); 18227 let i = keys2.length; 18228 let deleted = false; 18229 while (i--) { 18230 const key = keys2[i]; 18231 if (!matcher2 || matchHeaderValue(this, this[key], key, matcher2, true)) { 18232 delete this[key]; 18233 deleted = true; 18234 } 18235 } 18236 return deleted; 18237 } 18238 normalize(format2) { 18239 const self2 = this; 18240 const headers = {}; 18241 utils$1.forEach(this, (value, header) => { 18242 const key = utils$1.findKey(headers, header); 18243 if (key) { 18244 self2[key] = normalizeValue(value); 18245 delete self2[header]; 18246 return; 18247 } 18248 const normalized = format2 ? formatHeader(header) : String(header).trim(); 18249 if (normalized !== header) { 18250 delete self2[header]; 18251 } 18252 self2[normalized] = normalizeValue(value); 18253 headers[normalized] = true; 18254 }); 18255 return this; 18256 } 18257 concat(...targets) { 18258 return this.constructor.concat(this, ...targets); 18259 } 18260 toJSON(asStrings) { 18261 const obj = /* @__PURE__ */ Object.create(null); 18262 utils$1.forEach(this, (value, header) => { 18263 value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value); 18264 }); 18265 return obj; 18266 } 18267 [Symbol.iterator]() { 18268 return Object.entries(this.toJSON())[Symbol.iterator](); 18269 } 18270 toString() { 18271 return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n"); 18272 } 18273 getSetCookie() { 18274 return this.get("set-cookie") || []; 18275 } 18276 get [Symbol.toStringTag]() { 18277 return "AxiosHeaders"; 18278 } 18279 static from(thing) { 18280 return thing instanceof this ? thing : new this(thing); 18281 } 18282 static concat(first, ...targets) { 18283 const computed2 = new this(first); 18284 targets.forEach((target) => computed2.set(target)); 18285 return computed2; 18286 } 18287 static accessor(header) { 18288 const internals = this[$internals] = this[$internals] = { 18289 accessors: {} 18290 }; 18291 const accessors = internals.accessors; 18292 const prototype2 = this.prototype; 18293 function defineAccessor(_header) { 18294 const lHeader = normalizeHeader(_header); 18295 if (!accessors[lHeader]) { 18296 buildAccessors(prototype2, _header); 18297 accessors[lHeader] = true; 18298 } 18299 } 18300 utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); 18301 return this; 18302 } 18303}; 18304AxiosHeaders$1.accessor([ 18305 "Content-Type", 18306 "Content-Length", 18307 "Accept", 18308 "Accept-Encoding", 18309 "User-Agent", 18310 "Authorization" 18311]); 18312utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => { 18313 let mapped = key[0].toUpperCase() + key.slice(1); 18314 return { 18315 get: () => value, 18316 set(headerValue) { 18317 this[mapped] = headerValue; 18318 } 18319 }; 18320}); 18321utils$1.freezeMethods(AxiosHeaders$1); 18322const REDACTED = "[REDACTED ****]"; 18323function hasOwnOrPrototypeToJSON(source) { 18324 if (utils$1.hasOwnProp(source, "toJSON")) { 18325 return true; 18326 } 18327 let prototype2 = Object.getPrototypeOf(source); 18328 while (prototype2 && prototype2 !== Object.prototype) { 18329 if (utils$1.hasOwnProp(prototype2, "toJSON")) { 18330 return true; 18331 } 18332 prototype2 = Object.getPrototypeOf(prototype2); 18333 } 18334 return false; 18335} 18336function redactConfig(config, redactKeys) { 18337 const lowerKeys = new Set(redactKeys.map((k3) => String(k3).toLowerCase())); 18338 const seen2 = []; 18339 const visit = (source) => { 18340 if (source === null || typeof source !== "object") return source; 18341 if (utils$1.isBuffer(source)) return source; 18342 if (seen2.indexOf(source) !== -1) return void 0; 18343 if (source instanceof AxiosHeaders$1) { 18344 source = source.toJSON(); 18345 } 18346 seen2.push(source); 18347 let result; 18348 if (utils$1.isArray(source)) { 18349 result = []; 18350 source.forEach((v2, i) => { 18351 const reducedValue = visit(v2); 18352 if (!utils$1.isUndefined(reducedValue)) { 18353 result[i] = reducedValue; 18354 } 18355 }); 18356 } else { 18357 if (!utils$1.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) { 18358 seen2.pop(); 18359 return source; 18360 } 18361 result = /* @__PURE__ */ Object.create(null); 18362 for (const [key, value] of Object.entries(source)) { 18363 const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value); 18364 if (!utils$1.isUndefined(reducedValue)) { 18365 result[key] = reducedValue; 18366 } 18367 } 18368 } 18369 seen2.pop(); 18370 return result; 18371 }; 18372 return visit(config); 18373} 18374let AxiosError$1 = class AxiosError extends Error { 18375 static from(error, code, config, request, response, customProps) { 18376 const axiosError = new AxiosError(error.message, code || error.code, config, request, response); 18377 axiosError.cause = error; 18378 axiosError.name = error.name; 18379 if (error.status != null && axiosError.status == null) { 18380 axiosError.status = error.status; 18381 } 18382 customProps && Object.assign(axiosError, customProps); 18383 return axiosError; 18384 } 18385 /** 18386 * Create an Error with the specified message, config, error code, request and response. 18387 * 18388 * @param {string} message The error message. 18389 * @param {string} [code] The error code (for example, 'ECONNABORTED'). 18390 * @param {Object} [config] The config. 18391 * @param {Object} [request] The request. 18392 * @param {Object} [response] The response. 18393 * 18394 * @returns {Error} The created error. 18395 */ 18396 constructor(message2, code, config, request, response) { 18397 super(message2); 18398 Object.defineProperty(this, "message", { 18399 // Null-proto descriptor so a polluted Object.prototype.get cannot turn 18400 // this data descriptor into an accessor descriptor on the way in. 18401 __proto__: null, 18402 value: message2, 18403 enumerable: true, 18404 writable: true, 18405 configurable: true 18406 }); 18407 this.name = "AxiosError"; 18408 this.isAxiosError = true; 18409 code && (this.code = code); 18410 config && (this.config = config); 18411 request && (this.request = request); 18412 if (response) { 18413 this.response = response; 18414 this.status = response.status; 18415 } 18416 } 18417 toJSON() { 18418 const config = this.config; 18419 const redactKeys = config && utils$1.hasOwnProp(config, "redact") ? config.redact : void 0; 18420 const serializedConfig = utils$1.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils$1.toJSONObject(config); 18421 return { 18422 // Standard 18423 message: this.message, 18424 name: this.name, 18425 // Microsoft 18426 description: this.description, 18427 number: this.number, 18428 // Mozilla 18429 fileName: this.fileName, 18430 lineNumber: this.lineNumber, 18431 columnNumber: this.columnNumber, 18432 stack: this.stack, 18433 // Axios 18434 config: serializedConfig, 18435 code: this.code, 18436 status: this.status 18437 }; 18438 } 18439}; 18440AxiosError$1.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE"; 18441AxiosError$1.ERR_BAD_OPTION = "ERR_BAD_OPTION"; 18442AxiosError$1.ECONNABORTED = "ECONNABORTED"; 18443AxiosError$1.ETIMEDOUT = "ETIMEDOUT"; 18444AxiosError$1.ECONNREFUSED = "ECONNREFUSED"; 18445AxiosError$1.ERR_NETWORK = "ERR_NETWORK"; 18446AxiosError$1.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS"; 18447AxiosError$1.ERR_DEPRECATED = "ERR_DEPRECATED"; 18448AxiosError$1.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE"; 18449AxiosError$1.ERR_BAD_REQUEST = "ERR_BAD_REQUEST"; 18450AxiosError$1.ERR_CANCELED = "ERR_CANCELED"; 18451AxiosError$1.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT"; 18452AxiosError$1.ERR_INVALID_URL = "ERR_INVALID_URL"; 18453AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED"; 18454const httpAdapter = null; 18455function isVisitable(thing) { 18456 return utils$1.isPlainObject(thing) || utils$1.isArray(thing); 18457} 18458function removeBrackets(key) { 18459 return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key; 18460} 18461function renderKey(path, key, dots) { 18462 if (!path) return key; 18463 return path.concat(key).map(function each(token, i) { 18464 token = removeBrackets(token); 18465 return !dots && i ? "[" + token + "]" : token; 18466 }).join(dots ? "." : ""); 18467} 18468function isFlatArray(arr) { 18469 return utils$1.isArray(arr) && !arr.some(isVisitable); 18470} 18471const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) { 18472 return /^is[A-Z]/.test(prop); 18473}); 18474function toFormData$1(obj, formData, options) { 18475 if (!utils$1.isObject(obj)) { 18476 throw new TypeError("target must be an object"); 18477 } 18478 formData = formData || new FormData(); 18479 options = utils$1.toFlatObject( 18480 options, 18481 { 18482 metaTokens: true, 18483 dots: false, 18484 indexes: false 18485 }, 18486 false, 18487 function defined(option, source) { 18488 return !utils$1.isUndefined(source[option]); 18489 } 18490 ); 18491 const metaTokens = options.metaTokens; 18492 const visitor = options.visitor || defaultVisitor; 18493 const dots = options.dots; 18494 const indexes = options.indexes; 18495 const _Blob = options.Blob || typeof Blob !== "undefined" && Blob; 18496 const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth; 18497 const useBlob = _Blob && utils$1.isSpecCompliantForm(formData); 18498 if (!utils$1.isFunction(visitor)) { 18499 throw new TypeError("visitor must be a function"); 18500 } 18501 function convertValue(value) { 18502 if (value === null) return ""; 18503 if (utils$1.isDate(value)) { 18504 return value.toISOString(); 18505 } 18506 if (utils$1.isBoolean(value)) { 18507 return value.toString(); 18508 } 18509 if (!useBlob && utils$1.isBlob(value)) { 18510 throw new AxiosError$1("Blob is not supported. Use a Buffer instead."); 18511 } 18512 if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) { 18513 return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value); 18514 } 18515 return value; 18516 } 18517 function defaultVisitor(value, key, path) { 18518 let arr = value; 18519 if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) { 18520 formData.append(renderKey(path, key, dots), convertValue(value)); 18521 return false; 18522 } 18523 if (value && !path && typeof value === "object") { 18524 if (utils$1.endsWith(key, "{}")) { 18525 key = metaTokens ? key : key.slice(0, -2); 18526 value = JSON.stringify(value); 18527 } else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, "[]")) && (arr = utils$1.toArray(value))) { 18528 key = removeBrackets(key); 18529 arr.forEach(function each(el, index2) { 18530 !(utils$1.isUndefined(el) || el === null) && formData.append( 18531 // eslint-disable-next-line no-nested-ternary 18532 indexes === true ? renderKey([key], index2, dots) : indexes === null ? key : key + "[]", 18533 convertValue(el) 18534 ); 18535 }); 18536 return false; 18537 } 18538 } 18539 if (isVisitable(value)) { 18540 return true; 18541 } 18542 formData.append(renderKey(path, key, dots), convertValue(value)); 18543 return false; 18544 } 18545 const stack2 = []; 18546 const exposedHelpers = Object.assign(predicates, { 18547 defaultVisitor, 18548 convertValue, 18549 isVisitable 18550 }); 18551 function build(value, path, depth = 0) { 18552 if (utils$1.isUndefined(value)) return; 18553 if (depth > maxDepth) { 18554 throw new AxiosError$1( 18555 "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, 18556 AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED 18557 ); 18558 } 18559 if (stack2.indexOf(value) !== -1) { 18560 throw Error("Circular reference detected in " + path.join(".")); 18561 } 18562 stack2.push(value); 18563 utils$1.forEach(value, function each(el, key) { 18564 const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers); 18565 if (result === true) { 18566 build(el, path ? path.concat(key) : [key], depth + 1); 18567 } 18568 }); 18569 stack2.pop(); 18570 } 18571 if (!utils$1.isObject(obj)) { 18572 throw new TypeError("data must be an object"); 18573 } 18574 build(obj); 18575 return formData; 18576} 18577function encode$1(str) { 18578 const charMap = { 18579 "!": "%21", 18580 "'": "%27", 18581 "(": "%28", 18582 ")": "%29", 18583 "~": "%7E", 18584 "%20": "+" 18585 }; 18586 return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer2(match2) { 18587 return charMap[match2]; 18588 }); 18589} 18590function AxiosURLSearchParams(params, options) { 18591 this._pairs = []; 18592 params && toFormData$1(params, this, options); 18593} 18594const prototype = AxiosURLSearchParams.prototype; 18595prototype.append = function append(name, value) { 18596 this._pairs.push([name, value]); 18597}; 18598prototype.toString = function toString(encoder) { 18599 const _encode = encoder ? function(value) { 18600 return encoder.call(this, value, encode$1); 18601 } : encode$1; 18602 return this._pairs.map(function each(pair) { 18603 return _encode(pair[0]) + "=" + _encode(pair[1]); 18604 }, "").join("&"); 18605}; 18606function encode(val) { 18607 return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+"); 18608} 18609function buildURL(url, params, options) { 18610 if (!params) { 18611 return url; 18612 } 18613 const _encode = options && options.encode || encode; 18614 const _options = utils$1.isFunction(options) ? { 18615 serialize: options 18616 } : options; 18617 const serializeFn = _options && _options.serialize; 18618 let serializedParams; 18619 if (serializeFn) { 18620 serializedParams = serializeFn(params, _options); 18621 } else { 18622 serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode); 18623 } 18624 if (serializedParams) { 18625 const hashmarkIndex = url.indexOf("#"); 18626 if (hashmarkIndex !== -1) { 18627 url = url.slice(0, hashmarkIndex); 18628 } 18629 url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams; 18630 } 18631 return url; 18632} 18633class InterceptorManager { 18634 constructor() { 18635 this.handlers = []; 18636 } 18637 /** 18638 * Add a new interceptor to the stack 18639 * 18640 * @param {Function} fulfilled The function to handle `then` for a `Promise` 18641 * @param {Function} rejected The function to handle `reject` for a `Promise` 18642 * @param {Object} options The options for the interceptor, synchronous and runWhen 18643 * 18644 * @return {Number} An ID used to remove interceptor later 18645 */ 18646 use(fulfilled, rejected, options) { 18647 this.handlers.push({ 18648 fulfilled, 18649 rejected, 18650 synchronous: options ? options.synchronous : false, 18651 runWhen: options ? options.runWhen : null 18652 }); 18653 return this.handlers.length - 1; 18654 } 18655 /** 18656 * Remove an interceptor from the stack 18657 * 18658 * @param {Number} id The ID that was returned by `use` 18659 * 18660 * @returns {void} 18661 */ 18662 eject(id) { 18663 if (this.handlers[id]) { 18664 this.handlers[id] = null; 18665 } 18666 } 18667 /** 18668 * Clear all interceptors from the stack 18669 * 18670 * @returns {void} 18671 */ 18672 clear() { 18673 if (this.handlers) { 18674 this.handlers = []; 18675 } 18676 } 18677 /** 18678 * Iterate over all the registered interceptors 18679 * 18680 * This method is particularly useful for skipping over any 18681 * interceptors that may have become `null` calling `eject`. 18682 * 18683 * @param {Function} fn The function to call for each interceptor 18684 * 18685 * @returns {void} 18686 */ 18687 forEach(fn) {
18688 utils$1.forEach(this.handlers, function forEachHandler(h2) { 18689 if (h2 !== null) { 18690 fn(h2); 18691 } 18692 }); 18693 } 18694} 18695const transitionalDefaults = { 18696 silentJSONParsing: true, 18697 forcedJSONParsing: true, 18698 clarifyTimeoutError: false, 18699 legacyInterceptorReqResOrdering: true 18700}; 18701const URLSearchParams$1 = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams; 18702const FormData$1 = typeof FormData !== "undefined" ? FormData : null; 18703const Blob$1 = typeof Blob !== "undefined" ? Blob : null; 18704const platform$1 = { 18705 isBrowser: true, 18706 classes: { 18707 URLSearchParams: URLSearchParams$1, 18708 FormData: FormData$1, 18709 Blob: Blob$1 18710 }, 18711 protocols: ["http", "https", "file", "blob", "url", "data"] 18712}; 18713const hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined"; 18714const _navigator = typeof navigator === "object" && navigator || void 0; 18715const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0); 18716const hasStandardBrowserWebWorkerEnv = (() => { 18717 return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef 18718 self instanceof WorkerGlobalScope && typeof self.importScripts === "function"; 18719})(); 18720const origin = hasBrowserEnv && window.location.href || "http://localhost"; 18721const utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 18722 __proto__: null, 18723 hasBrowserEnv, 18724 hasStandardBrowserEnv, 18725 hasStandardBrowserWebWorkerEnv, 18726 navigator: _navigator, 18727 origin 18728}, Symbol.toStringTag, { value: "Module" })); 18729const platform = { 18730 ...utils, 18731 ...platform$1 18732}; 18733function toURLEncodedForm(data, options) { 18734 return toFormData$1(data, new platform.classes.URLSearchParams(), { 18735 visitor: function(value, key, path, helpers) { 18736 if (platform.isNode && utils$1.isBuffer(value)) { 18737 this.append(key, value.toString("base64")); 18738 return false; 18739 } 18740 return helpers.defaultVisitor.apply(this, arguments); 18741 }, 18742 ...options 18743 }); 18744} 18745function parsePropPath(name) { 18746 return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map((match2) => { 18747 return match2[0] === "[]" ? "" : match2[1] || match2[0]; 18748 }); 18749} 18750function arrayToObject(arr) { 18751 const obj = {}; 18752 const keys2 = Object.keys(arr); 18753 let i; 18754 const len = keys2.length; 18755 let key; 18756 for (i = 0; i < len; i++) { 18757 key = keys2[i]; 18758 obj[key] = arr[key]; 18759 } 18760 return obj; 18761} 18762function formDataToJSON(formData) { 18763 function buildPath(path, value, target, index2) { 18764 let name = path[index2++]; 18765 if (name === "__proto__") return true; 18766 const isNumericKey = Number.isFinite(+name); 18767 const isLast = index2 >= path.length; 18768 name = !name && utils$1.isArray(target) ? target.length : name; 18769 if (isLast) { 18770 if (utils$1.hasOwnProp(target, name)) { 18771 target[name] = utils$1.isArray(target[name]) ? target[name].concat(value) : [target[name], value]; 18772 } else { 18773 target[name] = value; 18774 } 18775 return !isNumericKey; 18776 } 18777 if (!utils$1.hasOwnProp(target, name) || !utils$1.isObject(target[name])) { 18778 target[name] = []; 18779 } 18780 const result = buildPath(path, value, target[name], index2); 18781 if (result && utils$1.isArray(target[name])) { 18782 target[name] = arrayToObject(target[name]); 18783 } 18784 return !isNumericKey; 18785 } 18786 if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) { 18787 const obj = {}; 18788 utils$1.forEachEntry(formData, (name, value) => { 18789 buildPath(parsePropPath(name), value, obj, 0); 18790 }); 18791 return obj; 18792 } 18793 return null; 18794} 18795const own = (obj, key) => obj != null && utils$1.hasOwnProp(obj, key) ? obj[key] : void 0; 18796function stringifySafely(rawValue2, parser, encoder) { 18797 if (utils$1.isString(rawValue2)) { 18798 try { 18799 (parser || JSON.parse)(rawValue2); 18800 return utils$1.trim(rawValue2); 18801 } catch (e) { 18802 if (e.name !== "SyntaxError") { 18803 throw e; 18804 } 18805 } 18806 } 18807 return (encoder || JSON.stringify)(rawValue2); 18808} 18809const defaults = { 18810 transitional: transitionalDefaults, 18811 adapter: ["xhr", "http", "fetch"], 18812 transformRequest: [ 18813 function transformRequest(data, headers) { 18814 const contentType = headers.getContentType() || ""; 18815 const hasJSONContentType = contentType.indexOf("application/json") > -1; 18816 const isObjectPayload = utils$1.isObject(data); 18817 if (isObjectPayload && utils$1.isHTMLForm(data)) { 18818 data = new FormData(data); 18819 } 18820 const isFormData2 = utils$1.isFormData(data); 18821 if (isFormData2) { 18822 return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data; 18823 } 18824 if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) { 18825 return data; 18826 } 18827 if (utils$1.isArrayBufferView(data)) { 18828 return data.buffer; 18829 } 18830 if (utils$1.isURLSearchParams(data)) { 18831 headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false); 18832 return data.toString(); 18833 } 18834 let isFileList2; 18835 if (isObjectPayload) {
vendor: 5,632 bytes, lines 18836-19013
18836 const formSerializer = own(this, "formSerializer"); 18837 if (contentType.indexOf("application/x-www-form-urlencoded") > -1) { 18838 return toURLEncodedForm(data, formSerializer).toString(); 18839 } 18840 if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) { 18841 const env = own(this, "env"); 18842 const _FormData = env && env.FormData; 18843 return toFormData$1( 18844 isFileList2 ? { "files[]": data } : data, 18845 _FormData && new _FormData(), 18846 formSerializer 18847 ); 18848 } 18849 } 18850 if (isObjectPayload || hasJSONContentType) { 18851 headers.setContentType("application/json", false); 18852 return stringifySafely(data); 18853 } 18854 return data; 18855 } 18856 ], 18857 transformResponse: [ 18858 function transformResponse(data) { 18859 const transitional2 = own(this, "transitional") || defaults.transitional; 18860 const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing; 18861 const responseType = own(this, "responseType"); 18862 const JSONRequested = responseType === "json"; 18863 if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) { 18864 return data; 18865 } 18866 if (data && utils$1.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) { 18867 const silentJSONParsing = transitional2 && transitional2.silentJSONParsing; 18868 const strictJSONParsing = !silentJSONParsing && JSONRequested; 18869 try { 18870 return JSON.parse(data, own(this, "parseReviver")); 18871 } catch (e) { 18872 if (strictJSONParsing) { 18873 if (e.name === "SyntaxError") { 18874 throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, own(this, "response")); 18875 } 18876 throw e; 18877 } 18878 } 18879 } 18880 return data; 18881 } 18882 ], 18883 /** 18884 * A timeout in milliseconds to abort a request. If set to 0 (default) a 18885 * timeout is not created. 18886 */ 18887 timeout: 0, 18888 xsrfCookieName: "XSRF-TOKEN", 18889 xsrfHeaderName: "X-XSRF-TOKEN", 18890 maxContentLength: -1, 18891 maxBodyLength: -1, 18892 env: { 18893 FormData: platform.classes.FormData, 18894 Blob: platform.classes.Blob 18895 }, 18896 validateStatus: function validateStatus(status) { 18897 return status >= 200 && status < 300; 18898 }, 18899 headers: { 18900 common: { 18901 Accept: "application/json, text/plain, */*", 18902 "Content-Type": void 0 18903 } 18904 } 18905}; 18906utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => { 18907 defaults.headers[method] = {}; 18908}); 18909function transformData(fns, response) { 18910 const config = this || defaults; 18911 const context = response || config; 18912 const headers = AxiosHeaders$1.from(context.headers); 18913 let data = context.data; 18914 utils$1.forEach(fns, function transform(fn) { 18915 data = fn.call(config, data, headers.normalize(), response ? response.status : void 0); 18916 }); 18917 headers.normalize(); 18918 return data; 18919} 18920function isCancel$1(value) { 18921 return !!(value && value.__CANCEL__); 18922} 18923let CanceledError$1 = class CanceledError extends AxiosError$1 { 18924 /** 18925 * A `CanceledError` is an object that is thrown when an operation is canceled. 18926 * 18927 * @param {string=} message The message. 18928 * @param {Object=} config The config. 18929 * @param {Object=} request The request. 18930 * 18931 * @returns {CanceledError} The created error. 18932 */ 18933 constructor(message2, config, request) { 18934 super(message2 == null ? "canceled" : message2, AxiosError$1.ERR_CANCELED, config, request); 18935 this.name = "CanceledError"; 18936 this.__CANCEL__ = true; 18937 } 18938}; 18939function settle(resolve2, reject, response) { 18940 const validateStatus2 = response.config.validateStatus; 18941 if (!response.status || !validateStatus2 || validateStatus2(response.status)) { 18942 resolve2(response); 18943 } else { 18944 reject(new AxiosError$1( 18945 "Request failed with status code " + response.status, 18946 response.status >= 400 && response.status < 500 ? AxiosError$1.ERR_BAD_REQUEST : AxiosError$1.ERR_BAD_RESPONSE, 18947 response.config, 18948 response.request, 18949 response 18950 )); 18951 } 18952} 18953function parseProtocol(url) { 18954 const match2 = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url); 18955 return match2 && match2[1] || ""; 18956} 18957function speedometer(samplesCount, min) { 18958 samplesCount = samplesCount || 10; 18959 const bytes = new Array(samplesCount); 18960 const timestamps = new Array(samplesCount); 18961 let head = 0; 18962 let tail = 0; 18963 let firstSampleTS; 18964 min = min !== void 0 ? min : 1e3; 18965 return function push2(chunkLength) { 18966 const now2 = Date.now(); 18967 const startedAt = timestamps[tail]; 18968 if (!firstSampleTS) { 18969 firstSampleTS = now2; 18970 } 18971 bytes[head] = chunkLength; 18972 timestamps[head] = now2; 18973 let i = tail; 18974 let bytesCount = 0; 18975 while (i !== head) { 18976 bytesCount += bytes[i++]; 18977 i = i % samplesCount; 18978 } 18979 head = (head + 1) % samplesCount; 18980 if (head === tail) { 18981 tail = (tail + 1) % samplesCount; 18982 } 18983 if (now2 - firstSampleTS < min) { 18984 return; 18985 } 18986 const passed = startedAt && now2 - startedAt; 18987 return passed ? Math.round(bytesCount * 1e3 / passed) : void 0; 18988 }; 18989} 18990function throttle(fn, freq) { 18991 let timestamp = 0; 18992 let threshold = 1e3 / freq; 18993 let lastArgs; 18994 let timer; 18995 const invoke = (args, now2 = Date.now()) => { 18996 timestamp = now2; 18997 lastArgs = null; 18998 if (timer) { 18999 clearTimeout(timer); 19000 timer = null; 19001 } 19002 fn(...args); 19003 }; 19004 const throttled = (...args) => { 19005 const now2 = Date.now(); 19006 const passed = now2 - timestamp; 19007 if (passed >= threshold) { 19008 invoke(args, now2); 19009 } else { 19010 lastArgs = args; 19011 if (!timer) { 19012 timer = setTimeout(() => { 19013 timer = null;
19014 invoke(lastArgs); 19015 }, threshold - passed); 19016 } 19017 } 19018 }; 19019 const flush = () => lastArgs && invoke(lastArgs); 19020 return [throttled, flush]; 19021} 19022const progressEventReducer = (listener, isDownloadStream, freq = 3) => { 19023 let bytesNotified = 0; 19024 const _speedometer = speedometer(50, 250); 19025 return throttle((e) => { 19026 if (!e || typeof e.loaded !== "number") { 19027 return; 19028 } 19029 const rawLoaded = e.loaded; 19030 const total = e.lengthComputable ? e.total : void 0; 19031 const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded; 19032 const progressBytes = Math.max(0, loaded - bytesNotified); 19033 const rate = _speedometer(progressBytes); 19034 bytesNotified = Math.max(bytesNotified, loaded); 19035 const data = { 19036 loaded, 19037 total, 19038 progress: total ? loaded / total : void 0, 19039 bytes: progressBytes, 19040 rate: rate ? rate : void 0, 19041 estimated: rate && total ? (total - loaded) / rate : void 0, 19042 event: e, 19043 lengthComputable: total != null, 19044 [isDownloadStream ? "download" : "upload"]: true 19045 }; 19046 listener(data); 19047 }, freq); 19048}; 19049const progressEventDecorator = (total, throttled) => { 19050 const lengthComputable = total != null; 19051 return [ 19052 (loaded) => throttled[0]({ 19053 lengthComputable, 19054 total, 19055 loaded 19056 }), 19057 throttled[1] 19058 ]; 19059}; 19060const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args)); 19061const isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url) => { 19062 url = new URL(url, platform.origin); 19063 return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port); 19064})( 19065 new URL(platform.origin), 19066 platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent) 19067) : () => true; 19068const cookies = platform.hasStandardBrowserEnv ? ( 19069 // Standard browser envs support document.cookie 19070 { 19071 write(name, value, expires, path, domain, secure, sameSite) { 19072 if (typeof document === "undefined") return; 19073 const cookie = [`${name}=${encodeURIComponent(value)}`]; 19074 if (utils$1.isNumber(expires)) { 19075 cookie.push(`expires=${new Date(expires).toUTCString()}`); 19076 } 19077 if (utils$1.isString(path)) { 19078 cookie.push(`path=${path}`); 19079 } 19080 if (utils$1.isString(domain)) { 19081 cookie.push(`domain=${domain}`); 19082 } 19083 if (secure === true) { 19084 cookie.push("secure"); 19085 } 19086 if (utils$1.isString(sameSite)) { 19087 cookie.push(`SameSite=${sameSite}`); 19088 } 19089 document.cookie = cookie.join("; "); 19090 }, 19091 read(name) { 19092 if (typeof document === "undefined") return null; 19093 const cookies2 = document.cookie.split(";"); 19094 for (let i = 0; i < cookies2.length; i++) { 19095 const cookie = cookies2[i].replace(/^\s+/, ""); 19096 const eq2 = cookie.indexOf("="); 19097 if (eq2 !== -1 && cookie.slice(0, eq2) === name) { 19098 return decodeURIComponent(cookie.slice(eq2 + 1)); 19099 } 19100 } 19101 return null; 19102 }, 19103 remove(name) { 19104 this.write(name, "", Date.now() - 864e5, "/"); 19105 } 19106 } 19107) : ( 19108 // Non-standard browser env (web workers, react-native) lack needed support. 19109 { 19110 write() { 19111 }, 19112 read() { 19113 return null; 19114 }, 19115 remove() { 19116 } 19117 } 19118); 19119function isAbsoluteURL(url) { 19120 if (typeof url !== "string") { 19121 return false; 19122 } 19123 return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); 19124} 19125function combineURLs(baseURL2, relativeURL) { 19126 return relativeURL ? baseURL2.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL2; 19127} 19128function buildFullPath(baseURL2, requestedURL, allowAbsoluteUrls) { 19129 let isRelativeUrl = !isAbsoluteURL(requestedURL); 19130 if (baseURL2 && (isRelativeUrl || allowAbsoluteUrls === false)) { 19131 return combineURLs(baseURL2, requestedURL); 19132 } 19133 return requestedURL; 19134} 19135const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing; 19136function mergeConfig$1(config1, config2) { 19137 config2 = config2 || {}; 19138 const config = /* @__PURE__ */ Object.create(null); 19139 Object.defineProperty(config, "hasOwnProperty", { 19140 // Null-proto descriptor so a polluted Object.prototype.get cannot turn 19141 // this data descriptor into an accessor descriptor on the way in. 19142 __proto__: null, 19143 value: Object.prototype.hasOwnProperty, 19144 enumerable: false, 19145 writable: true, 19146 configurable: true 19147 }); 19148 function getMergedValue(target, source, prop, caseless) { 19149 if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) { 19150 return utils$1.merge.call({ caseless }, target, source); 19151 } else if (utils$1.isPlainObject(source)) { 19152 return utils$1.merge({}, source); 19153 } else if (utils$1.isArray(source)) { 19154 return source.slice(); 19155 } 19156 return source; 19157 } 19158 function mergeDeepProperties(a, b2, prop, caseless) { 19159 if (!utils$1.isUndefined(b2)) { 19160 return getMergedValue(a, b2, prop, caseless); 19161 } else if (!utils$1.isUndefined(a)) { 19162 return getMergedValue(void 0, a, prop, caseless); 19163 } 19164 } 19165 function valueFromConfig2(a, b2) { 19166 if (!utils$1.isUndefined(b2)) { 19167 return getMergedValue(void 0, b2); 19168 } 19169 } 19170 function defaultToConfig2(a, b2) { 19171 if (!utils$1.isUndefined(b2)) { 19172 return getMergedValue(void 0, b2); 19173 } else if (!utils$1.isUndefined(a)) { 19174 return getMergedValue(void 0, a); 19175 } 19176 } 19177 function mergeDirectKeys(a, b2, prop) { 19178 if (utils$1.hasOwnProp(config2, prop)) { 19179 return getMergedValue(a, b2); 19180 } else if (utils$1.hasOwnProp(config1, prop)) { 19181 return getMergedValue(void 0, a); 19182 } 19183 } 19184 const mergeMap = { 19185 url: valueFromConfig2, 19186 method: valueFromConfig2, 19187 data: valueFromConfig2, 19188 baseURL: defaultToConfig2, 19189 transformRequest: defaultToConfig2, 19190 transformResponse: defaultToConfig2, 19191 paramsSerializer: defaultToConfig2, 19192 timeout: defaultToConfig2, 19193 timeoutMessage: defaultToConfig2, 19194 withCredentials: defaultToConfig2, 19195 withXSRFToken: defaultToConfig2, 19196 adapter: defaultToConfig2, 19197 responseType: defaultToConfig2, 19198 xsrfCookieName: defaultToConfig2, 19199 xsrfHeaderName: defaultToConfig2, 19200 onUploadProgress: defaultToConfig2, 19201 onDownloadProgress: defaultToConfig2, 19202 decompress: defaultToConfig2, 19203 maxContentLength: defaultToConfig2,
vendor: 6,645 bytes, lines 19204-19382
19204 maxBodyLength: defaultToConfig2, 19205 beforeRedirect: defaultToConfig2, 19206 transport: defaultToConfig2, 19207 httpAgent: defaultToConfig2, 19208 httpsAgent: defaultToConfig2, 19209 cancelToken: defaultToConfig2, 19210 socketPath: defaultToConfig2, 19211 allowedSocketPaths: defaultToConfig2, 19212 responseEncoding: defaultToConfig2, 19213 validateStatus: mergeDirectKeys, 19214 headers: (a, b2, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b2), prop, true) 19215 }; 19216 utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) { 19217 if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return; 19218 const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties; 19219 const a = utils$1.hasOwnProp(config1, prop) ? config1[prop] : void 0; 19220 const b2 = utils$1.hasOwnProp(config2, prop) ? config2[prop] : void 0; 19221 const configValue = merge2(a, b2, prop); 19222 utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue); 19223 }); 19224 return config; 19225} 19226const FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"]; 19227function setFormDataHeaders(headers, formHeaders, policy2) { 19228 if (policy2 !== "content-only") { 19229 headers.set(formHeaders); 19230 return; 19231 } 19232 Object.entries(formHeaders).forEach(([key, val]) => { 19233 if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) { 19234 headers.set(key, val); 19235 } 19236 }); 19237} 19238const encodeUTF8 = (str) => encodeURIComponent(str).replace( 19239 /%([0-9A-F]{2})/gi, 19240 (_, hex) => String.fromCharCode(parseInt(hex, 16)) 19241); 19242const resolveConfig = (config) => { 19243 const newConfig = mergeConfig$1({}, config); 19244 const own2 = (key) => utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : void 0; 19245 const data = own2("data"); 19246 let withXSRFToken = own2("withXSRFToken"); 19247 const xsrfHeaderName = own2("xsrfHeaderName"); 19248 const xsrfCookieName = own2("xsrfCookieName"); 19249 let headers = own2("headers"); 19250 const auth = own2("auth"); 19251 const baseURL2 = own2("baseURL"); 19252 const allowAbsoluteUrls = own2("allowAbsoluteUrls"); 19253 const url = own2("url"); 19254 newConfig.headers = headers = AxiosHeaders$1.from(headers); 19255 newConfig.url = buildURL( 19256 buildFullPath(baseURL2, url, allowAbsoluteUrls), 19257 config.params, 19258 config.paramsSerializer 19259 ); 19260 if (auth) { 19261 headers.set( 19262 "Authorization", 19263 "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")) 19264 ); 19265 } 19266 if (utils$1.isFormData(data)) { 19267 if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) { 19268 headers.setContentType(void 0); 19269 } else if (utils$1.isFunction(data.getHeaders)) { 19270 setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy")); 19271 } 19272 } 19273 if (platform.hasStandardBrowserEnv) { 19274 if (utils$1.isFunction(withXSRFToken)) { 19275 withXSRFToken = withXSRFToken(newConfig); 19276 } 19277 const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin(newConfig.url); 19278 if (shouldSendXSRF) { 19279 const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName); 19280 if (xsrfValue) { 19281 headers.set(xsrfHeaderName, xsrfValue); 19282 } 19283 } 19284 } 19285 return newConfig; 19286}; 19287const isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined"; 19288const xhrAdapter = isXHRAdapterSupported && function(config) { 19289 return new Promise(function dispatchXhrRequest(resolve2, reject) { 19290 const _config = resolveConfig(config); 19291 let requestData = _config.data; 19292 const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize(); 19293 let { responseType, onUploadProgress, onDownloadProgress } = _config; 19294 let onCanceled; 19295 let uploadThrottled, downloadThrottled; 19296 let flushUpload, flushDownload; 19297 function done() { 19298 flushUpload && flushUpload(); 19299 flushDownload && flushDownload(); 19300 _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled); 19301 _config.signal && _config.signal.removeEventListener("abort", onCanceled); 19302 } 19303 let request = new XMLHttpRequest(); 19304 request.open(_config.method.toUpperCase(), _config.url, true); 19305 request.timeout = _config.timeout; 19306 function onloadend() { 19307 if (!request) { 19308 return; 19309 } 19310 const responseHeaders = AxiosHeaders$1.from( 19311 "getAllResponseHeaders" in request && request.getAllResponseHeaders() 19312 ); 19313 const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response; 19314 const response = { 19315 data: responseData, 19316 status: request.status, 19317 statusText: request.statusText, 19318 headers: responseHeaders, 19319 config, 19320 request 19321 }; 19322 settle( 19323 function _resolve(value) { 19324 resolve2(value); 19325 done(); 19326 }, 19327 function _reject(err) { 19328 reject(err); 19329 done(); 19330 }, 19331 response 19332 ); 19333 request = null; 19334 } 19335 if ("onloadend" in request) { 19336 request.onloadend = onloadend; 19337 } else { 19338 request.onreadystatechange = function handleLoad() { 19339 if (!request || request.readyState !== 4) { 19340 return; 19341 } 19342 if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) { 19343 return; 19344 } 19345 setTimeout(onloadend); 19346 }; 19347 } 19348 request.onabort = function handleAbort() { 19349 if (!request) { 19350 return; 19351 } 19352 reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request)); 19353 done(); 19354 request = null; 19355 }; 19356 request.onerror = function handleError2(event) { 19357 const msg = event && event.message ? event.message : "Network Error"; 19358 const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request); 19359 err.event = event || null; 19360 reject(err); 19361 done(); 19362 request = null; 19363 }; 19364 request.ontimeout = function handleTimeout() { 19365 let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded"; 19366 const transitional2 = _config.transitional || transitionalDefaults; 19367 if (_config.timeoutErrorMessage) { 19368 timeoutErrorMessage = _config.timeoutErrorMessage; 19369 } 19370 reject( 19371 new AxiosError$1( 19372 timeoutErrorMessage, 19373 transitional2.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED, 19374 config, 19375 request 19376 ) 19377 ); 19378 done(); 19379 request = null; 19380 }; 19381 requestData === void 0 && requestHeaders.setContentType(null); 19382 if ("setRequestHeader" in request) {
vendor: 6,949 bytes, lines 19383-19624
19383 utils$1.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) { 19384 request.setRequestHeader(key, val); 19385 }); 19386 } 19387 if (!utils$1.isUndefined(_config.withCredentials)) { 19388 request.withCredentials = !!_config.withCredentials; 19389 } 19390 if (responseType && responseType !== "json") { 19391 request.responseType = _config.responseType; 19392 } 19393 if (onDownloadProgress) { 19394 [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true); 19395 request.addEventListener("progress", downloadThrottled); 19396 } 19397 if (onUploadProgress && request.upload) { 19398 [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress); 19399 request.upload.addEventListener("progress", uploadThrottled); 19400 request.upload.addEventListener("loadend", flushUpload); 19401 } 19402 if (_config.cancelToken || _config.signal) { 19403 onCanceled = (cancel) => { 19404 if (!request) { 19405 return; 19406 } 19407 reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel); 19408 request.abort(); 19409 done(); 19410 request = null; 19411 }; 19412 _config.cancelToken && _config.cancelToken.subscribe(onCanceled); 19413 if (_config.signal) { 19414 _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled); 19415 } 19416 } 19417 const protocol = parseProtocol(_config.url); 19418 if (protocol && !platform.protocols.includes(protocol)) { 19419 reject( 19420 new AxiosError$1( 19421 "Unsupported protocol " + protocol + ":", 19422 AxiosError$1.ERR_BAD_REQUEST, 19423 config 19424 ) 19425 ); 19426 return; 19427 } 19428 request.send(requestData || null); 19429 }); 19430}; 19431const composeSignals = (signals, timeout) => { 19432 signals = signals ? signals.filter(Boolean) : []; 19433 if (!timeout && !signals.length) { 19434 return; 19435 } 19436 const controller = new AbortController(); 19437 let aborted = false; 19438 const onabort = function(reason) { 19439 if (!aborted) { 19440 aborted = true; 19441 unsubscribe(); 19442 const err = reason instanceof Error ? reason : this.reason; 19443 controller.abort( 19444 err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err) 19445 ); 19446 } 19447 }; 19448 let timer = timeout && setTimeout(() => { 19449 timer = null; 19450 onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT)); 19451 }, timeout); 19452 const unsubscribe = () => { 19453 if (!signals) { 19454 return; 19455 } 19456 timer && clearTimeout(timer); 19457 timer = null; 19458 signals.forEach((signal2) => { 19459 signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort); 19460 }); 19461 signals = null; 19462 }; 19463 signals.forEach((signal2) => signal2.addEventListener("abort", onabort)); 19464 const { signal } = controller; 19465 signal.unsubscribe = () => utils$1.asap(unsubscribe); 19466 return signal; 19467}; 19468const streamChunk = function* (chunk, chunkSize) { 19469 let len = chunk.byteLength; 19470 if (len < chunkSize) { 19471 yield chunk; 19472 return; 19473 } 19474 let pos = 0; 19475 let end; 19476 while (pos < len) { 19477 end = pos + chunkSize; 19478 yield chunk.slice(pos, end); 19479 pos = end; 19480 } 19481}; 19482const readBytes = async function* (iterable, chunkSize) { 19483 for await (const chunk of readStream(iterable)) { 19484 yield* streamChunk(chunk, chunkSize); 19485 } 19486}; 19487const readStream = async function* (stream) { 19488 if (stream[Symbol.asyncIterator]) { 19489 yield* stream; 19490 return; 19491 } 19492 const reader = stream.getReader(); 19493 try { 19494 for (; ; ) { 19495 const { done, value } = await reader.read(); 19496 if (done) { 19497 break; 19498 } 19499 yield value; 19500 } 19501 } finally { 19502 await reader.cancel(); 19503 } 19504}; 19505const trackStream = (stream, chunkSize, onProgress, onFinish) => { 19506 const iterator2 = readBytes(stream, chunkSize); 19507 let bytes = 0; 19508 let done; 19509 let _onFinish = (e) => { 19510 if (!done) { 19511 done = true; 19512 onFinish && onFinish(e); 19513 } 19514 }; 19515 return new ReadableStream( 19516 { 19517 async pull(controller) { 19518 try { 19519 const { done: done2, value } = await iterator2.next(); 19520 if (done2) { 19521 _onFinish(); 19522 controller.close(); 19523 return; 19524 } 19525 let len = value.byteLength; 19526 if (onProgress) { 19527 let loadedBytes = bytes += len; 19528 onProgress(loadedBytes); 19529 } 19530 controller.enqueue(new Uint8Array(value)); 19531 } catch (err) { 19532 _onFinish(err); 19533 throw err; 19534 } 19535 }, 19536 cancel(reason) { 19537 _onFinish(reason); 19538 return iterator2.return(); 19539 } 19540 }, 19541 { 19542 highWaterMark: 2 19543 } 19544 ); 19545}; 19546function estimateDataURLDecodedBytes(url) { 19547 if (!url || typeof url !== "string") return 0; 19548 if (!url.startsWith("data:")) return 0; 19549 const comma = url.indexOf(","); 19550 if (comma < 0) return 0; 19551 const meta = url.slice(5, comma); 19552 const body = url.slice(comma + 1); 19553 const isBase64 = /;base64/i.test(meta); 19554 if (isBase64) { 19555 let effectiveLen = body.length; 19556 const len = body.length; 19557 for (let i = 0; i < len; i++) { 19558 if (body.charCodeAt(i) === 37 && i + 2 < len) { 19559 const a = body.charCodeAt(i + 1); 19560 const b2 = body.charCodeAt(i + 2); 19561 const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b2 >= 48 && b2 <= 57 || b2 >= 65 && b2 <= 70 || b2 >= 97 && b2 <= 102); 19562 if (isHex) { 19563 effectiveLen -= 2; 19564 i += 2; 19565 } 19566 } 19567 } 19568 let pad = 0; 19569 let idx = len - 1; 19570 const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%' 19571 body.charCodeAt(j - 1) === 51 && // '3' 19572 (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); 19573 if (idx >= 0) { 19574 if (body.charCodeAt(idx) === 61) { 19575 pad++; 19576 idx--; 19577 } else if (tailIsPct3D(idx)) { 19578 pad++; 19579 idx -= 3; 19580 } 19581 } 19582 if (pad === 1 && idx >= 0) { 19583 if (body.charCodeAt(idx) === 61) { 19584 pad++; 19585 } else if (tailIsPct3D(idx)) { 19586 pad++; 19587 } 19588 } 19589 const groups = Math.floor(effectiveLen / 4); 19590 const bytes2 = groups * 3 - (pad || 0); 19591 return bytes2 > 0 ? bytes2 : 0; 19592 } 19593 if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") { 19594 return Buffer.byteLength(body, "utf8"); 19595 } 19596 let bytes = 0; 19597 for (let i = 0, len = body.length; i < len; i++) { 19598 const c2 = body.charCodeAt(i); 19599 if (c2 < 128) { 19600 bytes += 1; 19601 } else if (c2 < 2048) { 19602 bytes += 2; 19603 } else if (c2 >= 55296 && c2 <= 56319 && i + 1 < len) { 19604 const next = body.charCodeAt(i + 1); 19605 if (next >= 56320 && next <= 57343) { 19606 bytes += 4; 19607 i++; 19608 } else { 19609 bytes += 3; 19610 } 19611 } else { 19612 bytes += 3; 19613 } 19614 } 19615 return bytes; 19616} 19617const VERSION$1 = "1.16.1"; 19618const DEFAULT_CHUNK_SIZE = 64 * 1024; 19619const { isFunction: isFunction$2 } = utils$1; 19620const test = (fn, ...args) => { 19621 try { 19622 return !!fn(...args); 19623 } catch (e) { 19624 return false;
19625 } 19626}; 19627const factory = (env) => { 19628 const globalObject = utils$1.global !== void 0 && utils$1.global !== null ? utils$1.global : globalThis; 19629 const { ReadableStream: ReadableStream2, TextEncoder } = globalObject; 19630 env = utils$1.merge.call( 19631 { 19632 skipUndefined: true 19633 }, 19634 { 19635 Request: globalObject.Request, 19636 Response: globalObject.Response 19637 }, 19638 env 19639 ); 19640 const { fetch: envFetch, Request, Response } = env; 19641 const isFetchSupported = envFetch ? isFunction$2(envFetch) : typeof fetch === "function"; 19642 const isRequestSupported = isFunction$2(Request); 19643 const isResponseSupported = isFunction$2(Response); 19644 if (!isFetchSupported) { 19645 return false; 19646 } 19647 const isReadableStreamSupported = isFetchSupported && isFunction$2(ReadableStream2); 19648 const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer())); 19649 const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => { 19650 let duplexAccessed = false; 19651 const request = new Request(platform.origin, { 19652 body: new ReadableStream2(), 19653 method: "POST", 19654 get duplex() { 19655 duplexAccessed = true; 19656 return "half"; 19657 } 19658 }); 19659 const hasContentType = request.headers.has("Content-Type"); 19660 if (request.body != null) { 19661 request.body.cancel(); 19662 } 19663 return duplexAccessed && !hasContentType; 19664 }); 19665 const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body)); 19666 const resolvers = { 19667 stream: supportsResponseStream && ((res) => res.body) 19668 }; 19669 isFetchSupported && (() => { 19670 ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => { 19671 !resolvers[type] && (resolvers[type] = (res, config) => { 19672 let method = res && res[type]; 19673 if (method) { 19674 return method.call(res); 19675 } 19676 throw new AxiosError$1( 19677 `Response type '${type}' is not supported`, 19678 AxiosError$1.ERR_NOT_SUPPORT, 19679 config 19680 ); 19681 }); 19682 }); 19683 })(); 19684 const getBodyLength = async (body) => { 19685 if (body == null) { 19686 return 0; 19687 } 19688 if (utils$1.isBlob(body)) { 19689 return body.size; 19690 } 19691 if (utils$1.isSpecCompliantForm(body)) { 19692 const _request = new Request(platform.origin, { 19693 method: "POST", 19694 body 19695 }); 19696 return (await _request.arrayBuffer()).byteLength; 19697 } 19698 if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) { 19699 return body.byteLength; 19700 } 19701 if (utils$1.isURLSearchParams(body)) { 19702 body = body + ""; 19703 } 19704 if (utils$1.isString(body)) { 19705 return (await encodeText(body)).byteLength; 19706 } 19707 }; 19708 const resolveBodyLength = async (headers, body) => { 19709 const length = utils$1.toFiniteNumber(headers.getContentLength()); 19710 return length == null ? getBodyLength(body) : length; 19711 }; 19712 return async (config) => { 19713 let { 19714 url, 19715 method, 19716 data, 19717 signal, 19718 cancelToken, 19719 timeout, 19720 onDownloadProgress, 19721 onUploadProgress, 19722 responseType, 19723 headers, 19724 withCredentials = "same-origin", 19725 fetchOptions, 19726 maxContentLength, 19727 maxBodyLength 19728 } = resolveConfig(config); 19729 const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1; 19730 const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1; 19731 let _fetch = envFetch || fetch; 19732 responseType = responseType ? (responseType + "").toLowerCase() : "text"; 19733 let composedSignal = composeSignals( 19734 [signal, cancelToken && cancelToken.toAbortSignal()], 19735 timeout 19736 ); 19737 let request = null; 19738 const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => { 19739 composedSignal.unsubscribe(); 19740 }); 19741 let requestContentLength; 19742 try { 19743 if (hasMaxContentLength && typeof url === "string" && url.startsWith("data:")) { 19744 const estimated = estimateDataURLDecodedBytes(url); 19745 if (estimated > maxContentLength) { 19746 throw new AxiosError$1( 19747 "maxContentLength size of " + maxContentLength + " exceeded", 19748 AxiosError$1.ERR_BAD_RESPONSE, 19749 config, 19750 request 19751 ); 19752 } 19753 } 19754 if (hasMaxBodyLength && method !== "get" && method !== "head") { 19755 const outboundLength = await resolveBodyLength(headers, data); 19756 if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) { 19757 throw new AxiosError$1( 19758 "Request body larger than maxBodyLength limit", 19759 AxiosError$1.ERR_BAD_REQUEST, 19760 config, 19761 request 19762 ); 19763 } 19764 } 19765 if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
19766 let _request = new Request(url, { 19767 method: "POST", 19768 body: data, 19769 duplex: "half" 19770 }); 19771 let contentTypeHeader; 19772 if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) { 19773 headers.setContentType(contentTypeHeader); 19774 } 19775 if (_request.body) { 19776 const [onProgress, flush] = progressEventDecorator( 19777 requestContentLength, 19778 progressEventReducer(asyncDecorator(onUploadProgress)) 19779 ); 19780 data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush); 19781 } 19782 } 19783 if (!utils$1.isString(withCredentials)) { 19784 withCredentials = withCredentials ? "include" : "omit"; 19785 } 19786 const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype; 19787 if (utils$1.isFormData(data)) { 19788 const contentType = headers.getContentType(); 19789 if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) { 19790 headers.delete("content-type"); 19791 } 19792 } 19793 headers.set("User-Agent", "axios/" + VERSION$1, false); 19794 const resolvedOptions = { 19795 ...fetchOptions, 19796 signal: composedSignal, 19797 method: method.toUpperCase(), 19798 headers: toByteStringHeaderObject(headers.normalize()), 19799 body: data, 19800 duplex: "half", 19801 credentials: isCredentialsSupported ? withCredentials : void 0 19802 }; 19803 request = isRequestSupported && new Request(url, resolvedOptions); 19804 let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions)); 19805 if (hasMaxContentLength) { 19806 const declaredLength = utils$1.toFiniteNumber(response.headers.get("content-length")); 19807 if (declaredLength != null && declaredLength > maxContentLength) { 19808 throw new AxiosError$1( 19809 "maxContentLength size of " + maxContentLength + " exceeded", 19810 AxiosError$1.ERR_BAD_RESPONSE, 19811 config, 19812 request 19813 ); 19814 } 19815 } 19816 const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response"); 19817 if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) { 19818 const options = {}; 19819 ["status", "statusText", "headers"].forEach((prop) => { 19820 options[prop] = response[prop]; 19821 }); 19822 const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length")); 19823 const [onProgress, flush] = onDownloadProgress && progressEventDecorator( 19824 responseContentLength, 19825 progressEventReducer(asyncDecorator(onDownloadProgress), true) 19826 ) || []; 19827 let bytesRead = 0; 19828 const onChunkProgress = (loadedBytes) => { 19829 if (hasMaxContentLength) { 19830 bytesRead = loadedBytes; 19831 if (bytesRead > maxContentLength) { 19832 throw new AxiosError$1( 19833 "maxContentLength size of " + maxContentLength + " exceeded", 19834 AxiosError$1.ERR_BAD_RESPONSE, 19835 config, 19836 request 19837 ); 19838 } 19839 } 19840 onProgress && onProgress(loadedBytes); 19841 }; 19842 response = new Response( 19843 trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => { 19844 flush && flush(); 19845 unsubscribe && unsubscribe(); 19846 }), 19847 options 19848 ); 19849 } 19850 responseType = responseType || "text"; 19851 let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"]( 19852 response, 19853 config 19854 ); 19855 if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) { 19856 let materializedSize; 19857 if (responseData != null) { 19858 if (typeof responseData.byteLength === "number") { 19859 materializedSize = responseData.byteLength; 19860 } else if (typeof responseData.size === "number") { 19861 materializedSize = responseData.size; 19862 } else if (typeof responseData === "string") { 19863 materializedSize = typeof TextEncoder === "function" ? new TextEncoder().encode(responseData).byteLength : responseData.length; 19864 } 19865 } 19866 if (typeof materializedSize === "number" && materializedSize > maxContentLength) { 19867 throw new AxiosError$1( 19868 "maxContentLength size of " + maxContentLength + " exceeded", 19869 AxiosError$1.ERR_BAD_RESPONSE, 19870 config, 19871 request 19872 ); 19873 } 19874 } 19875 !isStreamResponse && unsubscribe && unsubscribe(); 19876 return await new Promise((resolve2, reject) => { 19877 settle(resolve2, reject, { 19878 data: responseData, 19879 headers: AxiosHeaders$1.from(response.headers), 19880 status: response.status, 19881 statusText: response.statusText, 19882 config, 19883 request 19884 }); 19885 }); 19886 } catch (err) { 19887 unsubscribe && unsubscribe(); 19888 if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError$1) { 19889 const canceledError = composedSignal.reason; 19890 canceledError.config = config; 19891 request && (canceledError.request = request); 19892 err !== canceledError && (canceledError.cause = err); 19893 throw canceledError; 19894 } 19895 if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) { 19896 throw Object.assign( 19897 new AxiosError$1( 19898 "Network Error", 19899 AxiosError$1.ERR_NETWORK, 19900 config, 19901 request, 19902 err && err.response 19903 ), 19904 { 19905 cause: err.cause || err 19906 } 19907 ); 19908 } 19909 throw AxiosError$1.from(err, err && err.code, config, request, err && err.response); 19910 } 19911 }; 19912}; 19913const seedCache = /* @__PURE__ */ new Map(); 19914const getFetch = (config) => { 19915 let env = config && config.env || {}; 19916 const { fetch: fetch2, Request, Response } = env; 19917 const seeds = [Request, Response, fetch2]; 19918 let len = seeds.length, i = len, seed, target, map = seedCache; 19919 while (i--) { 19920 seed = seeds[i]; 19921 target = map.get(seed);
vendor: 15,057 bytes, lines 19922-20388
19922 target === void 0 && map.set(seed, target = i ? /* @__PURE__ */ new Map() : factory(env)); 19923 map = target; 19924 } 19925 return target; 19926}; 19927getFetch(); 19928const knownAdapters = { 19929 http: httpAdapter, 19930 xhr: xhrAdapter, 19931 fetch: { 19932 get: getFetch 19933 } 19934}; 19935utils$1.forEach(knownAdapters, (fn, value) => { 19936 if (fn) { 19937 try { 19938 Object.defineProperty(fn, "name", { __proto__: null, value }); 19939 } catch (e) { 19940 } 19941 Object.defineProperty(fn, "adapterName", { __proto__: null, value }); 19942 } 19943}); 19944const renderReason = (reason) => `- ${reason}`; 19945const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false; 19946function getAdapter$1(adapters2, config) { 19947 adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2]; 19948 const { length } = adapters2; 19949 let nameOrAdapter; 19950 let adapter; 19951 const rejectedReasons = {}; 19952 for (let i = 0; i < length; i++) { 19953 nameOrAdapter = adapters2[i]; 19954 let id; 19955 adapter = nameOrAdapter; 19956 if (!isResolvedHandle(nameOrAdapter)) { 19957 adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; 19958 if (adapter === void 0) { 19959 throw new AxiosError$1(`Unknown adapter '${id}'`); 19960 } 19961 } 19962 if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) { 19963 break; 19964 } 19965 rejectedReasons[id || "#" + i] = adapter; 19966 } 19967 if (!adapter) { 19968 const reasons = Object.entries(rejectedReasons).map( 19969 ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build") 19970 ); 19971 let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified"; 19972 throw new AxiosError$1( 19973 `There is no suitable adapter to dispatch the request ` + s, 19974 "ERR_NOT_SUPPORT" 19975 ); 19976 } 19977 return adapter; 19978} 19979const adapters = { 19980 /** 19981 * Resolve an adapter from a list of adapter names or functions. 19982 * @type {Function} 19983 */ 19984 getAdapter: getAdapter$1, 19985 /** 19986 * Exposes all known adapters 19987 * @type {Object<string, Function|Object>} 19988 */ 19989 adapters: knownAdapters 19990}; 19991function throwIfCancellationRequested(config) { 19992 if (config.cancelToken) { 19993 config.cancelToken.throwIfRequested(); 19994 } 19995 if (config.signal && config.signal.aborted) { 19996 throw new CanceledError$1(null, config); 19997 } 19998} 19999function dispatchRequest(config) { 20000 throwIfCancellationRequested(config); 20001 config.headers = AxiosHeaders$1.from(config.headers); 20002 config.data = transformData.call(config, config.transformRequest); 20003 if (["post", "put", "patch"].indexOf(config.method) !== -1) { 20004 config.headers.setContentType("application/x-www-form-urlencoded", false); 20005 } 20006 const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config); 20007 return adapter(config).then( 20008 function onAdapterResolution(response) { 20009 throwIfCancellationRequested(config); 20010 config.response = response; 20011 try { 20012 response.data = transformData.call(config, config.transformResponse, response); 20013 } finally { 20014 delete config.response; 20015 } 20016 response.headers = AxiosHeaders$1.from(response.headers); 20017 return response; 20018 }, 20019 function onAdapterRejection(reason) { 20020 if (!isCancel$1(reason)) { 20021 throwIfCancellationRequested(config); 20022 if (reason && reason.response) { 20023 config.response = reason.response; 20024 try { 20025 reason.response.data = transformData.call( 20026 config, 20027 config.transformResponse, 20028 reason.response 20029 ); 20030 } finally { 20031 delete config.response; 20032 } 20033 reason.response.headers = AxiosHeaders$1.from(reason.response.headers); 20034 } 20035 } 20036 return Promise.reject(reason); 20037 } 20038 ); 20039} 20040const validators$1 = {}; 20041["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => { 20042 validators$1[type] = function validator2(thing) { 20043 return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type; 20044 }; 20045}); 20046const deprecatedWarnings = {}; 20047validators$1.transitional = function transitional(validator2, version2, message2) { 20048 function formatMessage(opt, desc) { 20049 return "[Axios v" + VERSION$1 + "] Transitional option '" + opt + "'" + desc + (message2 ? ". " + message2 : ""); 20050 } 20051 return (value, opt, opts) => { 20052 if (validator2 === false) { 20053 throw new AxiosError$1( 20054 formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")), 20055 AxiosError$1.ERR_DEPRECATED 20056 ); 20057 } 20058 if (version2 && !deprecatedWarnings[opt]) { 20059 deprecatedWarnings[opt] = true; 20060 console.warn( 20061 formatMessage( 20062 opt, 20063 " has been deprecated since v" + version2 + " and will be removed in the near future" 20064 ) 20065 ); 20066 } 20067 return validator2 ? validator2(value, opt, opts) : true; 20068 }; 20069}; 20070validators$1.spelling = function spelling(correctSpelling) { 20071 return (value, opt) => { 20072 console.warn(`${opt} is likely a misspelling of ${correctSpelling}`); 20073 return true; 20074 }; 20075}; 20076function assertOptions(options, schema, allowUnknown) { 20077 if (typeof options !== "object") { 20078 throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE); 20079 } 20080 const keys2 = Object.keys(options); 20081 let i = keys2.length; 20082 while (i-- > 0) { 20083 const opt = keys2[i]; 20084 const validator2 = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0; 20085 if (validator2) { 20086 const value = options[opt]; 20087 const result = value === void 0 || validator2(value, opt, options); 20088 if (result !== true) { 20089 throw new AxiosError$1( 20090 "option " + opt + " must be " + result, 20091 AxiosError$1.ERR_BAD_OPTION_VALUE 20092 ); 20093 } 20094 continue; 20095 } 20096 if (allowUnknown !== true) { 20097 throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION); 20098 } 20099 } 20100} 20101const validator = { 20102 assertOptions, 20103 validators: validators$1 20104}; 20105const validators = validator.validators; 20106let Axios$1 = class Axios { 20107 constructor(instanceConfig) { 20108 this.defaults = instanceConfig || {}; 20109 this.interceptors = { 20110 request: new InterceptorManager(), 20111 response: new InterceptorManager() 20112 }; 20113 } 20114 /** 20115 * Dispatch a request 20116 * 20117 * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) 20118 * @param {?Object} config 20119 * 20120 * @returns {Promise} The Promise to be fulfilled 20121 */ 20122 async request(configOrUrl, config) { 20123 try { 20124 return await this._request(configOrUrl, config); 20125 } catch (err) { 20126 if (err instanceof Error) { 20127 let dummy = {}; 20128 Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error(); 20129 const stack2 = (() => { 20130 if (!dummy.stack) { 20131 return ""; 20132 } 20133 const firstNewlineIndex = dummy.stack.indexOf("\n"); 20134 return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1); 20135 })(); 20136 try { 20137 if (!err.stack) { 20138 err.stack = stack2; 20139 } else if (stack2) { 20140 const firstNewlineIndex = stack2.indexOf("\n"); 20141 const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack2.indexOf("\n", firstNewlineIndex + 1); 20142 const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack2.slice(secondNewlineIndex + 1); 20143 if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) { 20144 err.stack += "\n" + stack2; 20145 } 20146 } 20147 } catch (e) { 20148 } 20149 } 20150 throw err; 20151 } 20152 } 20153 _request(configOrUrl, config) { 20154 if (typeof configOrUrl === "string") { 20155 config = config || {}; 20156 config.url = configOrUrl; 20157 } else { 20158 config = configOrUrl || {}; 20159 } 20160 config = mergeConfig$1(this.defaults, config); 20161 const { transitional: transitional2, paramsSerializer, headers } = config; 20162 if (transitional2 !== void 0) { 20163 validator.assertOptions( 20164 transitional2, 20165 { 20166 silentJSONParsing: validators.transitional(validators.boolean), 20167 forcedJSONParsing: validators.transitional(validators.boolean), 20168 clarifyTimeoutError: validators.transitional(validators.boolean), 20169 legacyInterceptorReqResOrdering: validators.transitional(validators.boolean) 20170 }, 20171 false 20172 ); 20173 } 20174 if (paramsSerializer != null) { 20175 if (utils$1.isFunction(paramsSerializer)) { 20176 config.paramsSerializer = { 20177 serialize: paramsSerializer 20178 }; 20179 } else { 20180 validator.assertOptions( 20181 paramsSerializer, 20182 { 20183 encode: validators.function, 20184 serialize: validators.function 20185 }, 20186 true 20187 ); 20188 } 20189 } 20190 if (config.allowAbsoluteUrls !== void 0) ; 20191 else if (this.defaults.allowAbsoluteUrls !== void 0) { 20192 config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls; 20193 } else { 20194 config.allowAbsoluteUrls = true; 20195 } 20196 validator.assertOptions( 20197 config, 20198 { 20199 baseUrl: validators.spelling("baseURL"), 20200 withXsrfToken: validators.spelling("withXSRFToken") 20201 }, 20202 true 20203 ); 20204 config.method = (config.method || this.defaults.method || "get").toLowerCase(); 20205 let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]); 20206 headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => { 20207 delete headers[method]; 20208 }); 20209 config.headers = AxiosHeaders$1.concat(contextHeaders, headers); 20210 const requestInterceptorChain = []; 20211 let synchronousRequestInterceptors = true; 20212 this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { 20213 if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) { 20214 return; 20215 } 20216 synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; 20217 const transitional3 = config.transitional || transitionalDefaults; 20218 const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering; 20219 if (legacyInterceptorReqResOrdering) { 20220 requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); 20221 } else { 20222 requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); 20223 } 20224 }); 20225 const responseInterceptorChain = []; 20226 this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { 20227 responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); 20228 }); 20229 let promise; 20230 let i = 0; 20231 let len; 20232 if (!synchronousRequestInterceptors) { 20233 const chain = [dispatchRequest.bind(this), void 0]; 20234 chain.unshift(...requestInterceptorChain); 20235 chain.push(...responseInterceptorChain); 20236 len = chain.length; 20237 promise = Promise.resolve(config); 20238 while (i < len) { 20239 promise = promise.then(chain[i++], chain[i++]); 20240 } 20241 return promise; 20242 } 20243 len = requestInterceptorChain.length; 20244 let newConfig = config; 20245 while (i < len) { 20246 const onFulfilled = requestInterceptorChain[i++]; 20247 const onRejected = requestInterceptorChain[i++]; 20248 try { 20249 newConfig = onFulfilled(newConfig); 20250 } catch (error) { 20251 onRejected.call(this, error); 20252 break; 20253 } 20254 } 20255 try { 20256 promise = dispatchRequest.call(this, newConfig); 20257 } catch (error) { 20258 return Promise.reject(error); 20259 } 20260 i = 0; 20261 len = responseInterceptorChain.length; 20262 while (i < len) { 20263 promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); 20264 } 20265 return promise; 20266 } 20267 getUri(config) { 20268 config = mergeConfig$1(this.defaults, config); 20269 const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls); 20270 return buildURL(fullPath, config.params, config.paramsSerializer); 20271 } 20272}; 20273utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) { 20274 Axios$1.prototype[method] = function(url, config) { 20275 return this.request( 20276 mergeConfig$1(config || {}, { 20277 method, 20278 url, 20279 data: (config || {}).data 20280 }) 20281 ); 20282 }; 20283}); 20284utils$1.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) { 20285 function generateHTTPMethod(isForm) { 20286 return function httpMethod(url, data, config) { 20287 return this.request( 20288 mergeConfig$1(config || {}, { 20289 method, 20290 headers: isForm ? { 20291 "Content-Type": "multipart/form-data" 20292 } : {}, 20293 url, 20294 data 20295 }) 20296 ); 20297 }; 20298 } 20299 Axios$1.prototype[method] = generateHTTPMethod(); 20300 if (method !== "query") { 20301 Axios$1.prototype[method + "Form"] = generateHTTPMethod(true); 20302 } 20303}); 20304let CancelToken$1 = class CancelToken { 20305 constructor(executor) { 20306 if (typeof executor !== "function") { 20307 throw new TypeError("executor must be a function."); 20308 } 20309 let resolvePromise; 20310 this.promise = new Promise(function promiseExecutor(resolve2) { 20311 resolvePromise = resolve2; 20312 }); 20313 const token = this; 20314 this.promise.then((cancel) => { 20315 if (!token._listeners) return; 20316 let i = token._listeners.length; 20317 while (i-- > 0) { 20318 token._listeners[i](cancel); 20319 } 20320 token._listeners = null; 20321 }); 20322 this.promise.then = (onfulfilled) => { 20323 let _resolve; 20324 const promise = new Promise((resolve2) => { 20325 token.subscribe(resolve2); 20326 _resolve = resolve2; 20327 }).then(onfulfilled); 20328 promise.cancel = function reject() { 20329 token.unsubscribe(_resolve); 20330 }; 20331 return promise; 20332 }; 20333 executor(function cancel(message2, config, request) { 20334 if (token.reason) { 20335 return; 20336 } 20337 token.reason = new CanceledError$1(message2, config, request); 20338 resolvePromise(token.reason); 20339 }); 20340 } 20341 /** 20342 * Throws a `CanceledError` if cancellation has been requested. 20343 */ 20344 throwIfRequested() { 20345 if (this.reason) { 20346 throw this.reason; 20347 } 20348 } 20349 /** 20350 * Subscribe to the cancel signal 20351 */ 20352 subscribe(listener) { 20353 if (this.reason) { 20354 listener(this.reason); 20355 return; 20356 } 20357 if (this._listeners) { 20358 this._listeners.push(listener); 20359 } else { 20360 this._listeners = [listener]; 20361 } 20362 } 20363 /** 20364 * Unsubscribe from the cancel signal 20365 */ 20366 unsubscribe(listener) { 20367 if (!this._listeners) { 20368 return; 20369 } 20370 const index2 = this._listeners.indexOf(listener); 20371 if (index2 !== -1) { 20372 this._listeners.splice(index2, 1); 20373 } 20374 } 20375 toAbortSignal() { 20376 const controller = new AbortController(); 20377 const abort = (err) => { 20378 controller.abort(err); 20379 }; 20380 this.subscribe(abort); 20381 controller.signal.unsubscribe = () => this.unsubscribe(abort); 20382 return controller.signal; 20383 } 20384 /** 20385 * Returns an object that contains a new `CancelToken` and a function that, when called, 20386 * cancels the `CancelToken`. 20387 */ 20388 static source() {
20389 let cancel; 20390 const token = new CancelToken(function executor(c2) { 20391 cancel = c2; 20392 }); 20393 return { 20394 token, 20395 cancel 20396 }; 20397 } 20398}; 20399function spread$1(callback) { 20400 return function wrap(arr) { 20401 return callback.apply(null, arr); 20402 }; 20403} 20404function isAxiosError$1(payload) { 20405 return utils$1.isObject(payload) && payload.isAxiosError === true; 20406} 20407const HttpStatusCode$1 = { 20408 Continue: 100, 20409 SwitchingProtocols: 101, 20410 Processing: 102, 20411 EarlyHints: 103, 20412 Ok: 200, 20413 Created: 201, 20414 Accepted: 202, 20415 NonAuthoritativeInformation: 203, 20416 NoContent: 204, 20417 ResetContent: 205, 20418 PartialContent: 206, 20419 MultiStatus: 207, 20420 AlreadyReported: 208, 20421 ImUsed: 226, 20422 MultipleChoices: 300, 20423 MovedPermanently: 301, 20424 Found: 302, 20425 SeeOther: 303, 20426 NotModified: 304, 20427 UseProxy: 305, 20428 Unused: 306, 20429 TemporaryRedirect: 307, 20430 PermanentRedirect: 308, 20431 BadRequest: 400, 20432 Unauthorized: 401, 20433 PaymentRequired: 402, 20434 Forbidden: 403, 20435 NotFound: 404, 20436 MethodNotAllowed: 405, 20437 NotAcceptable: 406, 20438 ProxyAuthenticationRequired: 407, 20439 RequestTimeout: 408, 20440 Conflict: 409, 20441 Gone: 410, 20442 LengthRequired: 411, 20443 PreconditionFailed: 412, 20444 PayloadTooLarge: 413, 20445 UriTooLong: 414, 20446 UnsupportedMediaType: 415, 20447 RangeNotSatisfiable: 416, 20448 ExpectationFailed: 417, 20449 ImATeapot: 418, 20450 MisdirectedRequest: 421, 20451 UnprocessableEntity: 422, 20452 Locked: 423, 20453 FailedDependency: 424, 20454 TooEarly: 425, 20455 UpgradeRequired: 426, 20456 PreconditionRequired: 428, 20457 TooManyRequests: 429, 20458 RequestHeaderFieldsTooLarge: 431, 20459 UnavailableForLegalReasons: 451, 20460 InternalServerError: 500, 20461 NotImplemented: 501, 20462 BadGateway: 502, 20463 ServiceUnavailable: 503, 20464 GatewayTimeout: 504, 20465 HttpVersionNotSupported: 505, 20466 VariantAlsoNegotiates: 506, 20467 InsufficientStorage: 507, 20468 LoopDetected: 508, 20469 NotExtended: 510, 20470 NetworkAuthenticationRequired: 511, 20471 WebServerIsDown: 521, 20472 ConnectionTimedOut: 522, 20473 OriginIsUnreachable: 523, 20474 TimeoutOccurred: 524, 20475 SslHandshakeFailed: 525, 20476 InvalidSslCertificate: 526 20477}; 20478Object.entries(HttpStatusCode$1).forEach(([key, value]) => { 20479 HttpStatusCode$1[value] = key; 20480}); 20481function createInstance(defaultConfig) { 20482 const context = new Axios$1(defaultConfig); 20483 const instance = bind(Axios$1.prototype.request, context); 20484 utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true }); 20485 utils$1.extend(instance, context, null, { allOwnKeys: true }); 20486 instance.create = function create2(instanceConfig) { 20487 return createInstance(mergeConfig$1(defaultConfig, instanceConfig)); 20488 }; 20489 return instance; 20490} 20491const axios = createInstance(defaults); 20492axios.Axios = Axios$1; 20493axios.CanceledError = CanceledError$1; 20494axios.CancelToken = CancelToken$1; 20495axios.isCancel = isCancel$1; 20496axios.VERSION = VERSION$1; 20497axios.toFormData = toFormData$1; 20498axios.AxiosError = AxiosError$1; 20499axios.Cancel = axios.CanceledError; 20500axios.all = function all(promises) { 20501 return Promise.all(promises); 20502}; 20503axios.spread = spread$1; 20504axios.isAxiosError = isAxiosError$1; 20505axios.mergeConfig = mergeConfig$1; 20506axios.AxiosHeaders = AxiosHeaders$1; 20507axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing); 20508axios.getAdapter = adapters.getAdapter; 20509axios.HttpStatusCode = HttpStatusCode$1; 20510axios.default = axios; 20511const { 20512 Axios: Axios2, 20513 AxiosError: AxiosError2, 20514 CanceledError: CanceledError2, 20515 isCancel, 20516 CancelToken: CancelToken2, 20517 VERSION, 20518 all: all2, 20519 Cancel, 20520 isAxiosError, 20521 spread, 20522 toFormData, 20523 AxiosHeaders: AxiosHeaders2, 20524 HttpStatusCode, 20525 formToJSON, 20526 getAdapter, 20527 mergeConfig, 20528 create 20529} = axios; 20530/*! 20531 * mustache.js - Logic-less {{mustache}} templates with JavaScript 20532 * http://github.com/janl/mustache.js 20533 */ 20534var objectToString$1 = Object.prototype.toString; 20535var isArray$1 = Array.isArray || function isArrayPolyfill(object) { 20536 return objectToString$1.call(object) === "[object Array]"; 20537}; 20538function isFunction$1(object) { 20539 return typeof object === "function"; 20540} 20541function typeStr(obj) { 20542 return isArray$1(obj) ? "array" : typeof obj; 20543} 20544function escapeRegExp(string) { 20545 return string.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&"); 20546} 20547function hasProperty(obj, propName) { 20548 return obj != null && typeof obj === "object" && propName in obj; 20549} 20550function primitiveHasOwnProperty(primitive, propName) { 20551 return primitive != null && typeof primitive !== "object" && primitive.hasOwnProperty && primitive.hasOwnProperty(propName); 20552} 20553var regExpTest = RegExp.prototype.test; 20554function testRegExp(re, string) { 20555 return regExpTest.call(re, string); 20556} 20557var nonSpaceRe = /\S/; 20558function isWhitespace(string) { 20559 return !testRegExp(nonSpaceRe, string); 20560} 20561var entityMap = { 20562 "&": "&", 20563 "<": "<", 20564 ">": ">", 20565 '"': """, 20566 "'": "'", 20567 "/": "/", 20568 "`": "`", 20569 "=": "=" 20570}; 20571function escapeHtml(string) { 20572 return String(string).replace(/[&<>
vendor: 5,893 bytes, lines 20572-20775
20572"'`=\/]/g, function fromEntityMap(s) { 20573 return entityMap[s]; 20574 }); 20575} 20576var whiteRe = /\s*/; 20577var spaceRe = /\s+/; 20578var equalsRe = /\s*=/; 20579var curlyRe = /\s*\}/; 20580var tagRe = /#|\^|\/|>|\{|&|=|!/; 20581function parseTemplate(template, tags) { 20582 if (!template) 20583 return []; 20584 var lineHasNonSpace = false; 20585 var sections = []; 20586 var tokens = []; 20587 var spaces = []; 20588 var hasTag = false; 20589 var nonSpace = false; 20590 var indentation = ""; 20591 var tagIndex = 0; 20592 function stripSpace() { 20593 if (hasTag && !nonSpace) { 20594 while (spaces.length) 20595 delete tokens[spaces.pop()]; 20596 } else { 20597 spaces = []; 20598 } 20599 hasTag = false; 20600 nonSpace = false; 20601 } 20602 var openingTagRe, closingTagRe, closingCurlyRe; 20603 function compileTags(tagsToCompile) { 20604 if (typeof tagsToCompile === "string") 20605 tagsToCompile = tagsToCompile.split(spaceRe, 2); 20606 if (!isArray$1(tagsToCompile) || tagsToCompile.length !== 2) 20607 throw new Error("Invalid tags: " + tagsToCompile); 20608 openingTagRe = new RegExp(escapeRegExp(tagsToCompile[0]) + "\\s*"); 20609 closingTagRe = new RegExp("\\s*" + escapeRegExp(tagsToCompile[1])); 20610 closingCurlyRe = new RegExp("\\s*" + escapeRegExp("}" + tagsToCompile[1])); 20611 } 20612 compileTags(tags || mustache.tags); 20613 var scanner = new Scanner(template); 20614 var start, type, value, chr, token, openSection; 20615 while (!scanner.eos()) { 20616 start = scanner.pos; 20617 value = scanner.scanUntil(openingTagRe); 20618 if (value) { 20619 for (var i = 0, valueLength = value.length; i < valueLength; ++i) { 20620 chr = value.charAt(i); 20621 if (isWhitespace(chr)) { 20622 spaces.push(tokens.length); 20623 indentation += chr; 20624 } else { 20625 nonSpace = true; 20626 lineHasNonSpace = true; 20627 indentation += " "; 20628 } 20629 tokens.push(["text", chr, start, start + 1]); 20630 start += 1; 20631 if (chr === "\n") { 20632 stripSpace(); 20633 indentation = ""; 20634 tagIndex = 0; 20635 lineHasNonSpace = false; 20636 } 20637 } 20638 } 20639 if (!scanner.scan(openingTagRe)) 20640 break; 20641 hasTag = true; 20642 type = scanner.scan(tagRe) || "name"; 20643 scanner.scan(whiteRe); 20644 if (type === "=") { 20645 value = scanner.scanUntil(equalsRe); 20646 scanner.scan(equalsRe); 20647 scanner.scanUntil(closingTagRe); 20648 } else if (type === "{") { 20649 value = scanner.scanUntil(closingCurlyRe); 20650 scanner.scan(curlyRe); 20651 scanner.scanUntil(closingTagRe); 20652 type = "&"; 20653 } else { 20654 value = scanner.scanUntil(closingTagRe); 20655 } 20656 if (!scanner.scan(closingTagRe)) 20657 throw new Error("Unclosed tag at " + scanner.pos); 20658 if (type == ">") { 20659 token = [type, value, start, scanner.pos, indentation, tagIndex, lineHasNonSpace]; 20660 } else { 20661 token = [type, value, start, scanner.pos]; 20662 } 20663 tagIndex++; 20664 tokens.push(token); 20665 if (type === "#" || type === "^") { 20666 sections.push(token); 20667 } else if (type === "/") { 20668 openSection = sections.pop(); 20669 if (!openSection) 20670 throw new Error('Unopened section "' + value + '" at ' + start); 20671 if (openSection[1] !== value) 20672 throw new Error('Unclosed section "' + openSection[1] + '" at ' + start); 20673 } else if (type === "name" || type === "{" || type === "&") { 20674 nonSpace = true; 20675 } else if (type === "=") { 20676 compileTags(value); 20677 } 20678 } 20679 stripSpace(); 20680 openSection = sections.pop(); 20681 if (openSection) 20682 throw new Error('Unclosed section "' + openSection[1] + '" at ' + scanner.pos); 20683 return nestTokens(squashTokens(tokens)); 20684} 20685function squashTokens(tokens) { 20686 var squashedTokens = []; 20687 var token, lastToken; 20688 for (var i = 0, numTokens = tokens.length; i < numTokens; ++i) { 20689 token = tokens[i]; 20690 if (token) { 20691 if (token[0] === "text" && lastToken && lastToken[0] === "text") { 20692 lastToken[1] += token[1]; 20693 lastToken[3] = token[3]; 20694 } else { 20695 squashedTokens.push(token); 20696 lastToken = token; 20697 } 20698 } 20699 } 20700 return squashedTokens; 20701} 20702function nestTokens(tokens) { 20703 var nestedTokens = []; 20704 var collector = nestedTokens; 20705 var sections = []; 20706 var token, section; 20707 for (var i = 0, numTokens = tokens.length; i < numTokens; ++i) { 20708 token = tokens[i]; 20709 switch (token[0]) { 20710 case "#": 20711 case "^": 20712 collector.push(token); 20713 sections.push(token); 20714 collector = token[4] = []; 20715 break; 20716 case "/": 20717 section = sections.pop(); 20718 section[5] = token[2]; 20719 collector = sections.length > 0 ? sections[sections.length - 1][4] : nestedTokens; 20720 break; 20721 default: 20722 collector.push(token); 20723 } 20724 } 20725 return nestedTokens; 20726} 20727function Scanner(string) { 20728 this.string = string; 20729 this.tail = string; 20730 this.pos = 0; 20731} 20732Scanner.prototype.eos = function eos() { 20733 return this.tail === ""; 20734}; 20735Scanner.prototype.scan = function scan(re) { 20736 var match2 = this.tail.match(re); 20737 if (!match2 || match2.index !== 0) 20738 return ""; 20739 var string = match2[0]; 20740 this.tail = this.tail.substring(string.length); 20741 this.pos += string.length; 20742 return string; 20743}; 20744Scanner.prototype.scanUntil = function scanUntil(re) { 20745 var index2 = this.tail.search(re), match2; 20746 switch (index2) { 20747 case -1: 20748 match2 = this.tail; 20749 this.tail = ""; 20750 break; 20751 case 0: 20752 match2 = ""; 20753 break; 20754 default: 20755 match2 = this.tail.substring(0, index2); 20756 this.tail = this.tail.substring(index2); 20757 } 20758 this.pos += match2.length; 20759 return match2; 20760}; 20761function Context(view, parentContext) { 20762 this.view = view; 20763 this.cache = { ".": this.view }; 20764 this.parent = parentContext; 20765} 20766Context.prototype.push = function push(view) { 20767 return new Context(view, this); 20768}; 20769Context.prototype.lookup = function lookup(name) { 20770 var cache = this.cache; 20771 var value; 20772 if (cache.hasOwnProperty(name)) { 20773 value = cache[name]; 20774 } else { 20775 var context = this, intermediateValue, names, index2, lookupHit = false;
20776 while (context) { 20777 if (name.indexOf(".") > 0) { 20778 intermediateValue = context.view; 20779 names = name.split("."); 20780 index2 = 0; 20781 while (intermediateValue != null && index2 < names.length) { 20782 if (index2 === names.length - 1) 20783 lookupHit = hasProperty(intermediateValue, names[index2]) || primitiveHasOwnProperty(intermediateValue, names[index2]); 20784 intermediateValue = intermediateValue[names[index2++]]; 20785 } 20786 } else { 20787 intermediateValue = context.view[name]; 20788 lookupHit = hasProperty(context.view, name); 20789 } 20790 if (lookupHit) { 20791 value = intermediateValue; 20792 break; 20793 } 20794 context = context.parent; 20795 } 20796 cache[name] = value; 20797 } 20798 if (isFunction$1(value)) 20799 value = value.call(this.view); 20800 return value; 20801}; 20802function Writer() { 20803 this.templateCache = { 20804 _cache: {}, 20805 set: function set2(key, value) { 20806 this._cache[key] = value; 20807 }, 20808 get: function get2(key) { 20809 return this._cache[key]; 20810 }, 20811 clear: function clear() { 20812 this._cache = {}; 20813 } 20814 }; 20815} 20816Writer.prototype.clearCache = function clearCache() { 20817 if (typeof this.templateCache !== "undefined") { 20818 this.templateCache.clear(); 20819 } 20820}; 20821Writer.prototype.parse = function parse2(template, tags) { 20822 var cache = this.templateCache; 20823 var cacheKey = template + ":" + (tags || mustache.tags).join(":"); 20824 var isCacheEnabled = typeof cache !== "undefined"; 20825 var tokens = isCacheEnabled ? cache.get(cacheKey) : void 0; 20826 if (tokens == void 0) { 20827 tokens = parseTemplate(template, tags); 20828 isCacheEnabled && cache.set(cacheKey, tokens); 20829 } 20830 return tokens; 20831}; 20832Writer.prototype.render = function render2(template, view, partials, config) { 20833 var tags = this.getConfigTags(config); 20834 var tokens = this.parse(template, tags); 20835 var context = view instanceof Context ? view : new Context(view, void 0); 20836 return this.renderTokens(tokens, context, partials, template, config); 20837}; 20838Writer.prototype.renderTokens = function renderTokens(tokens, context, partials, originalTemplate, config) { 20839 var buffer2 = ""; 20840 var token, symbol, value; 20841 for (var i = 0, numTokens = tokens.length; i < numTokens; ++i) { 20842 value = void 0; 20843 token = tokens[i]; 20844 symbol = token[0]; 20845 if (symbol === "#") value = this.renderSection(token, context, partials, originalTemplate, config); 20846 else if (symbol === "^") value = this.renderInverted(token, context, partials, originalTemplate, config); 20847 else if (symbol === ">") value = this.renderPartial(token, context, partials, config); 20848 else if (symbol === "&") value = this.unescapedValue(token, context); 20849 else if (symbol === "name") value = this.escapedValue(token, context, config); 20850 else if (symbol === "text") value = this.rawValue(token); 20851 if (value !== void 0) 20852 buffer2 += value; 20853 } 20854 return buffer2; 20855};
vendor: 1,842 bytes, lines 20856-20893
20856Writer.prototype.renderSection = function renderSection(token, context, partials, originalTemplate, config) { 20857 var self2 = this; 20858 var buffer2 = ""; 20859 var value = context.lookup(token[1]); 20860 function subRender(template) { 20861 return self2.render(template, context, partials, config); 20862 } 20863 if (!value) return; 20864 if (isArray$1(value)) { 20865 for (var j = 0, valueLength = value.length; j < valueLength; ++j) { 20866 buffer2 += this.renderTokens(token[4], context.push(value[j]), partials, originalTemplate, config); 20867 } 20868 } else if (typeof value === "object" || typeof value === "string" || typeof value === "number") { 20869 buffer2 += this.renderTokens(token[4], context.push(value), partials, originalTemplate, config); 20870 } else if (isFunction$1(value)) { 20871 if (typeof originalTemplate !== "string") 20872 throw new Error("Cannot use higher-order sections without the original template"); 20873 value = value.call(context.view, originalTemplate.slice(token[3], token[5]), subRender); 20874 if (value != null) 20875 buffer2 += value; 20876 } else { 20877 buffer2 += this.renderTokens(token[4], context, partials, originalTemplate, config); 20878 } 20879 return buffer2; 20880}; 20881Writer.prototype.renderInverted = function renderInverted(token, context, partials, originalTemplate, config) { 20882 var value = context.lookup(token[1]); 20883 if (!value || isArray$1(value) && value.length === 0) 20884 return this.renderTokens(token[4], context, partials, originalTemplate, config); 20885}; 20886Writer.prototype.indentPartial = function indentPartial(partial2, indentation, lineHasNonSpace) { 20887 var filteredIndentation = indentation.replace(/[^ \t]/g, ""); 20888 var partialByNl = partial2.split("\n"); 20889 for (var i = 0; i < partialByNl.length; i++) { 20890 if (partialByNl[i].length && (i > 0 || !lineHasNonSpace)) { 20891 partialByNl[i] = filteredIndentation + partialByNl[i]; 20892 } 20893 }
20894 return partialByNl.join("\n"); 20895}; 20896Writer.prototype.renderPartial = function renderPartial(token, context, partials, config) { 20897 if (!partials) return; 20898 var tags = this.getConfigTags(config); 20899 var value = isFunction$1(partials) ? partials(token[1]) : partials[token[1]]; 20900 if (value != null) { 20901 var lineHasNonSpace = token[6]; 20902 var tagIndex = token[5]; 20903 var indentation = token[4]; 20904 var indentedValue = value; 20905 if (tagIndex == 0 && indentation) { 20906 indentedValue = this.indentPartial(value, indentation, lineHasNonSpace); 20907 } 20908 var tokens = this.parse(indentedValue, tags); 20909 return this.renderTokens(tokens, context, partials, indentedValue, config); 20910 } 20911}; 20912Writer.prototype.unescapedValue = function unescapedValue(token, context) { 20913 var value = context.lookup(token[1]); 20914 if (value != null) 20915 return value; 20916}; 20917Writer.prototype.escapedValue = function escapedValue(token, context, config) { 20918 var escape = this.getConfigEscape(config) || mustache.escape; 20919 var value = context.lookup(token[1]); 20920 if (value != null) 20921 return typeof value === "number" && escape === mustache.escape ? String(value) : escape(value); 20922}; 20923Writer.prototype.rawValue = function rawValue(token) { 20924 return token[1]; 20925}; 20926Writer.prototype.getConfigTags = function getConfigTags(config) { 20927 if (isArray$1(config)) { 20928 return config; 20929 } else if (config && typeof config === "object") { 20930 return config.tags; 20931 } else { 20932 return void 0; 20933 } 20934}; 20935Writer.prototype.getConfigEscape = function getConfigEscape(config) { 20936 if (config && typeof config === "object" && !isArray$1(config)) { 20937 return config.escape; 20938 } else { 20939 return void 0; 20940 } 20941}; 20942var mustache = { 20943 name: "mustache.js", 20944 version: "4.2.0", 20945 tags: ["{{", "}}"], 20946 clearCache: void 0, 20947 escape: void 0, 20948 parse: void 0, 20949 render: void 0, 20950 Scanner: void 0, 20951 Context: void 0, 20952 Writer: void 0, 20953 /** 20954 * Allows a user to override the default caching strategy, by providing an 20955 * object with set, get and clear methods. This can also be used to disable 20956 * the cache by setting it to the literal `undefined`. 20957 */ 20958 set templateCache(cache) { 20959 defaultWriter.templateCache = cache; 20960 }, 20961 /** 20962 * Gets the default or overridden caching object from the default writer. 20963 */ 20964 get templateCache() { 20965 return defaultWriter.templateCache; 20966 } 20967}; 20968var defaultWriter = new Writer(); 20969mustache.clearCache = function clearCache2() { 20970 return defaultWriter.clearCache(); 20971}; 20972mustache.parse = function parse3(template, tags) { 20973 return defaultWriter.parse(template, tags); 20974}; 20975mustache.render = function render3(template, view, partials, config) { 20976 if (typeof template !== "string") { 20977 throw new TypeError('Invalid template! Template should be a "string" but "' + typeStr(template) + '" was given as the first argument for mustache#render(template, view, partials)'); 20978 } 20979 return defaultWriter.render(template, view, partials, config); 20980}; 20981mustache.escape = escapeHtml; 20982mustache.Scanner = Scanner; 20983mustache.Context = Context; 20984mustache.Writer = Writer; 20985const _export_sfc = (sfc, props) => { 20986 const target = sfc.__vccOpts || sfc; 20987 for (const [key, val] of props) { 20988 target[key] = val; 20989 } 20990 return target; 20991}; 20992const __variableDynamicImportRuntimeHelper = (glob, path, segs) => { 20993 const v2 = glob[path]; 20994 if (v2) { 20995 return typeof v2 === "function" ? v2() : Promise.resolve(v2); 20996 } 20997 return new Promise((_, reject) => { 20998 (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)( 20999 reject.bind( 21000 null, 21001 new Error( 21002 "Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "") 21003 ) 21004 ) 21005 ); 21006 }); 21007}; 21008function getRoot() { 21009 const vm = getCurrentInstance(); 21010 if (!vm || !vm.proxy) 21011 throw new Error( 21012 "Must be called within the setup function of a Vue component." 21013 ); 21014 return vm.proxy; 21015} 21016const useRoot = () => getRoot(); 21017const useStore = () => useStore$1(); 21018const useRoute = () => useRoute$1(); 21019const useRouter = () => useRouter$1(); 21020function useLoadComponent(props, options = {}) { 21021 let componentModule = shallowRef(null); 21022 const store = useStore(); 21023 const useBrandSpecificComponents = props.isEditable || (options.useBrandSpecificComponents ?? false); 21024 function getBlockComponent(props2, useResolvedPath = props2.isEditable) { 21025 var _a; 21026 const containerValue = useResolvedPath ? "container/CoreBlockContainer" : "CoreBlockContainer"; 21027 const footer = useResolvedPath ? "footer/CoreBlockFooter" : "CoreBlockFooter"; 21028 const types = { 21029 button: "CoreBlockButton", 21030 breadcrumbs: "CoreBlockBreadcrumbs", 21031 "contact-card": "CoreBlockContactCard", 21032 "contact-hero": "CoreBlockContactHero", 21033 columns: "CoreBlockColumns", 21034 container: containerValue, 21035 section: containerValue, 21036 accordion: containerValue, 21037 toggle: containerValue, 21038 tabs: containerValue, 21039 "content-card": "CoreBlockContentCard", 21040 disclosures: "CoreBlockDisclosures", 21041 divider: "CoreBlockDivider", 21042 file: "CoreBlockFile", 21043 grid: "CoreBlockGrid", 21044 heroComponent: "CoreBlockHeroComponent", 21045 hero: "CoreBlockHero", 21046 calculators: "CoreBlockCalculators", 21047 html: "CoreBlockHtml", 21048 icon: "CoreBlockIcon", 21049 image: "CoreBlockImage", 21050 media: "CoreBlockMedia", 21051 rows: "CoreBlockRows", 21052 "social-links": "CoreBlockSocialLinks", 21053 text: "CoreBlockText", 21054 video: "CoreBlockVideo", 21055 "pencil-banner": "CoreBlockPencilBanner", 21056 "rich-text": "CoreBlockRichText", 21057 form: "CoreBlockForm", 21058 calendly: "CoreBlockCalendly", 21059 calendlyEmbed: "CoreBlockCalendlyEmbed", 21060 map: "CoreBlockMap", 21061 select: "CoreBlockSelect", 21062 "anchor-link-nav": "CoreAnchorLinkNavigation", 21063 articles: "CoreBlockArticles", 21064 article: "CoreBlockArticleCard", 21065 footer, 21066 stickyButton: "CoreBlockStickyButton", 21067 repeat: "CoreBlockRepeat", 21068 oembed: "CoreBlockOEmbed", 21069 frameEmbed: "CoreBlockFrameEmbed" 21070 }; 21071 return types[(_a = props2.settings) == null ? void 0 : _a.type] || "CoreBlockUnknown"; 21072 } 21073 async function loadComponent() { 21074 var _a, _b, _c, _d; 21075 const componentType = getBlockComponent( 21076 props, 21077 useBrandSpecificComponents 21078 );
21079 let componentPath; 21080 let componentName; 21081 if (componentType.includes("/")) { 21082 const [folder, name] = componentType.split("/"); 21083 componentPath = folder; 21084 componentName = name; 21085 } else { 21086 componentPath = ""; 21087 componentName = componentName || componentType; 21088 } 21089 const brandId = (_b = (_a = store.state) == null ? void 0 : _a.brand) == null ? void 0 : _b.id; 21090 let brand = null; 21091 if (store.getters && store.getters["brand/getBrand"]) { 21092 brand = store.getters["brand/getBrand"](brandId); 21093 } else if ((_d = (_c = store.state) == null ? void 0 : _c.brand) == null ? void 0 : _d.brands) { 21094 brand = store.state.brand.brands.find((b2) => b2.id === brandId); 21095 } 21096 let module2; 21097 const brandHandle = brand == null ? void 0 : brand.handle; 21098 if (!brandHandle) { 21099 await loadGenericComponent(); 21100 return; 21101 } 21102 try { 21103 if (componentPath) { 21104 module2 = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({
21104"../components/nyl/block/footer/CoreBlockFooter.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooter$2), true ? void 0 : void 0, import.meta.url),
21104"../components/nyl/block/footer/CoreBlockFooterBackground.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterBackground), true ? void 0 : void 0, import.meta.url),
21104"../components/nyl/block/footer/CoreBlockFooterBanner.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterBanner), true ? void 0 : void 0, import.meta.url),
21104"../components/nyl/block/footer/CoreBlockFooterDisclosures.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterDisclosures), true ? void 0 : void 0, import.meta.url),
21104"../components/nyl/block/footer/CoreBlockFooterLogo.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterLogo), true ? void 0 : void 0, import.meta.url),
21104"../components/nyl/block/footer/CoreBlockFooterOneTrust.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterOneTrust), true ? void 0 : void 0, import.meta.url),
21104"../components/nyl/block/footer/CoreBlockFooterSocialLinks.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooterSocialLinks), true ? void 0 : void 0, import.meta.url) }), `../components/${brandHandle}/block/${componentPath}/${componentName}.vue`, 6).catch((e) => { 21105 throw e; 21106 }); 21107 } else { 21108 module2 = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({
21108"../components/nyl/block/CoreBlockCalendly.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockCalendly$1), true ? void 0 : void 0, import.meta.url),
21108"../components/nyl/block/CoreBlockContactCard.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockContactCard$3), true ? void 0 : void 0, import.meta.url),
21108"../components/nyl/block/CoreBlockDisclosures.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockDisclosures$1), true ? void 0 : void 0, import.meta.url),
21108"../components/nyl/block/CoreBlockForm.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockForm$3), true ? void 0 : void 0, import.meta.url) }), `../components/${brandHandle}/block/${componentName}.vue`, 5).catch((e) => { 21109 throw e; 21110 }); 21111 } 21112 componentModule.value = markRaw(module2.default || module2); 21113 } catch (error) { 21114 await loadGenericComponent(); 21115 } 21116 async function loadGenericComponent() { 21117 try { 21118 let fallbackModule; 21119 if (componentPath) { 21120 fallbackModule = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({
21120"../components/block/container/CoreBlockContainer.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockContainer$1), true ? void 0 : void 0, import.meta.url),
21120"../components/block/container/CoreBlockContainerAccordion.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockContainerAccordion), true ? void 0 : void 0, import.meta.url),
21120"../components/block/container/CoreBlockContainerTabs.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockContainerTabs), true ? void 0 : void 0, import.meta.url),
21120"../components/block/container/CoreBlockContainerToggle.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockContainerToggle), true ? void 0 : void 0, import.meta.url),
21120"../components/block/footer/CoreBlockFooter.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockFooter$1), true ? void 0 : void 0, import.meta.url) }), `../components/block/${componentPath}/${componentName}.vue`, 5); 21121 } else { 21122 fallbackModule = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({
21122"../components/block/CoreAnchorLinkNavigation.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreAnchorLinkNavigation), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlock.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlock), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockAccessibleTooltip.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockAccessibleTooltip), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockAddressAutocomplete.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockAddressAutocomplete$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockArticleCard.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockArticleCard$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockArticles.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockArticles$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockBreadcrumbs.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockBreadcrumbs), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockButton.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockButton$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockCalculators.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockCalculators$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockCalendlyEmbed.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockCalendlyEmbed), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockCarousel.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockCarousel), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockCenteredNavBar.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockCenteredNavBar), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockColumns.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockColumns), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockContactCard.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockContactCard$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockContactHero.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockContactHero$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockContentCard.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockContentCard$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockContentCardTextField.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockContentCardTextField), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockDialog.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockDialog), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockDivider.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockDivider$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockDynamicForm.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockDynamicForm), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockFile.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockFile$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockForm.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockForm$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockFrameEmbed.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockFrameEmbed), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockGrid.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockGrid$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockHero.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockHero$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockHeroBackground.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockHeroBackground), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockHeroComponent.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockHeroComponent), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockHtml.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockHtml$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockIcon.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockIcon$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockImage.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockImage), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockImageCropped.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockImageCropped), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockLazy.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockLazy), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockMainNav.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockMainNav), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockMainNavImage.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockMainNavImage), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockMap.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockMap), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockMedia.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockMedia$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockNavItem.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockNavItem), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockOEmbed.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockOEmbed$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockPencilBanner.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockPencilBanner$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockRepeat.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockRepeat$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockRichText.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockRichText), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockRows.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockRows$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockSelect.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockSelect), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockSocialLinks.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockSocialLinks$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockStickyButton.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockStickyButton), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockText.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockText$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockUnknown.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockUnknown$1), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockVerticalDivider.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockVerticalDivider), true ? void 0 : void 0, import.meta.url),
21122"../components/block/CoreBlockVideo.vue": () => __vitePreload(() => Promise.resolve().then(() => CoreBlockVideo), true ? void 0 : void 0, import.meta.url)
21122 }), `../components/block/${componentName}.vue`, 4); 21123 } 21124 componentModule.value = markRaw( 21125 fallbackModule.default || fallbackModule 21126 ); 21127 } catch (error) { 21128 const unknownModule = await __vitePreload(() => Promise.resolve().then(() => CoreBlockUnknown$1), true ? void 0 : void 0, import.meta.url); 21129 componentModule.value = markRaw( 21130 unknownModule.default || unknownModule 21131 ); 21132 } 21133 } 21134 } 21135 watch( 21136 () => props.settings.type, 21137 () => { 21138 loadComponent(); 21139 } 21140 ); 21141 if (useBrandSpecificComponents) { 21142 onMounted(() => { 21143 loadComponent(); 21144 }); 21145 watch( 21146 () => { 21147 var _a, _b; 21148 return (_b = (_a = store.state) == null ? void 0 : _a.brand) == null ? void 0 : _b.id; 21149 }, 21150 () => { 21151 setTimeout(() => { 21152 loadComponent(); 21153 }, 100); 21154 } 21155 ); 21156 } else if (props.settings) { 21157 componentModule.value = markRaw( 21158 resolveComponent(getBlockComponent(props)) 21159 ); 21160 } 21161 return { 21162 componentModule 21163 }; 21164} 21165function useEmptyComponent(settings) { 21166 const store = useStore(); 21167 const { getters } = store; 21168 const classes = ref([]); 21169 const emptyContainers = computed( 21170 () => getters["complianceAgent/getEmptyContainers"] 21171 ); 21172 const isEmptyComponent = computed( 21173 () => { 21174 var _a; 21175 return (_a = emptyContainers.value) == null ? void 0 : _a.some((block) => block.id && block.id === settings.id); 21176 } 21177 ); 21178 function updateClasses() { 21179 if (isEmptyComponent.value) { 21180 classes.value = ["block_empty"]; 21181 } else { 21182 classes.value = []; 21183 } 21184 } 21185 watch( 21186 emptyContainers, 21187 () => { 21188 updateClasses(); 21189 }, 21190 { immediate: true } 21191 ); 21192 return { 21193 classes 21194 }; 21195} 21196const SURFACE_BLOCK_TYPES = ["hero", "heroComponent", "contact-hero"]; 21197const DISTRIBUTING_BLOCK_TYPES = ["columns", "grid"]; 21198const MEDIA_BLEED_DEFER_BLOCK_TYPES = [ 21199 "rows", 21200 "container", 21201 ...DISTRIBUTING_BLOCK_TYPES 21202]; 21203const CONDITIONALLY_HIDDEN_CHILD_LAYOUTS = [ 21204 "carousel", 21205 "carousel-hero", 21206 "toggle", 21207 "tabbed" 21208]; 21209const NAV_HIDDEN_BLOCK_TYPES = ["breadcrumbs"]; 21210function useBlockNavOffset(props) { 21211 const store = useStore(); 21212 const isFirstPageLevelBlock = computed(() => !!props.isFirstPageLevelBlock); 21213 const isFirstPageLevelPosition = computed( 21214 () => !!props.isFirstPageLevelPosition 21215 ); 21216 const siteRecord = computed(() => { 21217 var _a; 21218 const state = store == null ? void 0 : store.state; 21219 return ((_a = state == null ? void 0 : state.site) == null ? void 0 : _a.workingSite) ?? (state == null ? void 0 : state.site); 21220 }); 21221 const getFeatureFlag = (flagName) => { 21222 var _a, _b; 21223 return ((_b = (_a = store == null ? void 0 : store.getters) == null ? void 0 : _a["settings/getFeatureFlag"]) == null ? void 0 : _b.call(_a, flagName)) === true; 21224 }; 21225 const navOffsetStyle = computed(() => { 21226 var _a, _b; 21227 if (props.isEditable) return null; 21228 return resolveNavOffsetStyle( 21229 (_b = (_a = siteRecord.value) == null ? void 0 : _a.navigation) == null ? void 0 : _b.navStyle, 21230 getFeatureFlag 21231 ); 21232 }); 21233 const isNavOffsetActive = computed(() => navOffsetStyle.value !== null); 21234 const navBarHeightSize = computed(() => { 21235 var _a, _b; 21236 if (!getFeatureFlag("NavBarEnhancements")) return null; 21237 return ((_b = (_a = siteRecord.value) == null ? void 0 : _a.navigation) == null ? void 0 : _b.navBarHeight) || null; 21238 }); 21239 const isStackedRightNav = computed( 21240 () => { 21241 var _a, _b; 21242 return !!((_b = (_a = siteRecord.value) == null ? void 0 : _a.navigation) == null ? void 0 : _b.stackedRight) && getFeatureFlag("BuilderEnhStackedRightNavigation"); 21243 } 21244 ); 21245 const hasSurface = computed(() => blockHasOwnSurface(props.settings)); 21246 const dataDictionary = computed(() => { 21247 var _a; 21248 return (_a = siteRecord.value) == null ? void 0 : _a.dataDictionary; 21249 }); 21250 const firstVisibleChild = computed( 21251 () => { 21252 var _a; 21253 return firstVisibleBlock( 21254 (_a = props.settings) == null ? void 0 : _a.blocks, 21255 dataDictionary.value, 21256 isNavOffsetActive.value 21257 ); 21258 } 21259 ); 21260 const isFirstEligibleChild = (childSettings) => isSameBlock(childSettings, firstVisibleChild.value); 21261 const firstStructuralChild = computed( 21262 () => { 21263 var _a; 21264 return firstVisibleBlock((_a = props.settings) == null ? void 0 : _a.blocks, dataDictionary.value, false); 21265 } 21266 ); 21267 const isFirstEligibleChildForPosition = (childSettings) => isSameBlock(childSettings, firstStructuralChild.value);
21268 const firstChildChainSome = (predicate, canDescend = () => true) => { 21269 const childrenOf = (blockSettings) => { 21270 if (!blockSettings) return []; 21271 if (DISTRIBUTING_BLOCK_TYPES.includes(blockSettings.type)) { 21272 return visibleChildren( 21273 blockSettings.blocks, 21274 dataDictionary.value, 21275 isNavOffsetActive.value 21276 ); 21277 } 21278 const child = firstVisibleBlock( 21279 blockSettings.blocks, 21280 dataDictionary.value, 21281 isNavOffsetActive.value 21282 ); 21283 return child ? [child] : []; 21284 }; 21285 const walk = (blockSettings) => childrenOf(blockSettings).some((child) => { 21286 if (predicate(child)) return true; 21287 if (!canDescend(child)) return false; 21288 return walk(child); 21289 }); 21290 return walk(props.settings); 21291 }; 21292 const canDeferFromThisBlock = computed( 21293 () => canDeferToMediaBleedBlock(props.settings) 21294 ); 21295 const firstChildChainHasSurface = computed( 21296 () => canDeferFromThisBlock.value && firstChildChainSome(blockHasOwnSurface) 21297 ); 21298 const firstChildChainHasMediaBleedBlock = computed( 21299 () => canDeferFromThisBlock.value && firstChildChainSome(isMediaBleedBlock, canDeferToMediaBleedBlock) 21300 ); 21301 const applyOffset = computed(() => { 21302 return isFirstPageLevelBlock.value && isNavOffsetActive.value; 21303 }); 21304 const hasBackgroundImageSurface = computed( 21305 () => blockHasBackgroundImageSurface(props.settings) 21306 ); 21307 const offsetMode = computed(() => { 21308 if (!applyOffset.value) return "none"; 21309 if (firstChildChainHasMediaBleedBlock.value && !hasBackgroundImageSurface.value) 21310 return "none"; 21311 if (hasSurface.value) return "inset"; 21312 if (firstChildChainHasSurface.value) return "none"; 21313 return "reserve"; 21314 }); 21315 const insetsOwnContent = computed(() => offsetMode.value === "inset"); 21316 const shouldDeferToChildren = computed( 21317 () => applyOffset.value && offsetMode.value === "none" 21318 ); 21319 const distributesToChildren = computed( 21320 () => { 21321 var _a; 21322 return shouldDeferToChildren.value && DISTRIBUTING_BLOCK_TYPES.includes((_a = props.settings) == null ? void 0 : _a.type); 21323 } 21324 ); 21325 const isFirstPageLevelBlockFor = (childSettings) => { 21326 if (!shouldDeferToChildren.value) return false; 21327 if (distributesToChildren.value) { 21328 return isBlockVisible(childSettings, dataDictionary.value, false); 21329 } 21330 return isFirstEligibleChild(childSettings); 21331 }; 21332 const isFirstPageLevelPositionFor = (childSettings) => isFirstPageLevelPosition.value && isFirstEligibleChildForPosition(childSettings); 21333 const isNavHidden = computed( 21334 () => { 21335 var _a; 21336 return isFirstPageLevelPosition.value && isNavOffsetActive.value && NAV_HIDDEN_BLOCK_TYPES.includes((_a = props.settings) == null ? void 0 : _a.type); 21337 } 21338 ); 21339 return { 21340 isFirstPageLevelBlock, 21341 isFirstPageLevelPosition, 21342 navOffsetStyle, 21343 isNavOffsetActive, 21344 hasSurface, 21345 insetsOwnContent, 21346 applyOffset, 21347 navBarHeightSize, 21348 isStackedRightNav, 21349 offsetMode, 21350 shouldDeferToChildren, 21351 distributesToChildren, 21352 isFirstEligibleChild, 21353 isFirstPageLevelBlockFor, 21354 isFirstPageLevelPositionFor, 21355 isNavHidden 21356 }; 21357} 21358function isSameBlock(a, b2) { 21359 if (!a || !b2) return false; 21360 if (a === b2) return true; 21361 return !!a.id && !!b2.id && a.id === b2.id; 21362} 21363function isBlockVisible(settings, dataDictionary, isNavOffsetActive) { 21364 const field = settings == null ? void 0 : settings.conditionalDisplay; 21365 const value = field && dataDictionary ? dataDictionary[field] : void 0; 21366 const conditionallyVisible = typeof value === "boolean" ? value : true; 21367 if (!conditionallyVisible) return false; 21368 if (isNavOffsetActive && NAV_HIDDEN_BLOCK_TYPES.includes(settings == null ? void 0 : settings.type)) { 21369 return false; 21370 } 21371 return true; 21372} 21373function visibleChildren(blocks, dataDictionary, isNavOffsetActive) { 21374 if (!Array.isArray(blocks)) return []; 21375 return blocks.filter( 21376 (block) => isBlockVisible(block, dataDictionary, isNavOffsetActive) 21377 ); 21378} 21379function firstVisibleBlock(blocks, dataDictionary, isNavOffsetActive) { 21380 return visibleChildren(blocks, dataDictionary, isNavOffsetActive)[0]; 21381} 21382function resolveNavOffsetStyle(navStyle, getFeatureFlag) { 21383 const style = navStyle || "standard"; 21384 if (style === "floating" && getFeatureFlag("FloatingNavigation") && getFeatureFlag("FloatingNavContentAdjustment")) { 21385 return "floating"; 21386 } 21387 if (style === "transparent" && getFeatureFlag("BuilderEnhTransparentNavigation")) { 21388 return "transparent";
21389 } 21390 return null; 21391} 21392function getFirstEligiblePageBlockIndex(blocks, dataDictionary, isNavOffsetActive) { 21393 if (!Array.isArray(blocks)) return -1; 21394 return blocks.findIndex( 21395 (block) => isBlockVisible(block, dataDictionary, isNavOffsetActive) 21396 ); 21397} 21398function blockHasOwnSurface(settings) { 21399 settings = settings || {}; 21400 const variants = settings.variants || {}; 21401 if (SURFACE_BLOCK_TYPES.includes(settings.type)) return true; 21402 if (settings.backgroundMediaSrc || settings.heroBackgroundMediaSrc) 21403 return true; 21404 if (variants.gradient) return true; 21405 if (settings["overlay-toggle"] || settings["gradient-toggle"]) return true; 21406 const bgColor = variants["bg-color"]; 21407 if (bgColor && bgColor !== "transparent") return true; 21408 return isMediaBleedBlock(settings); 21409} 21410function blockHasBackgroundImageSurface(settings) { 21411 settings = settings || {}; 21412 if (resolveMediaSrc(settings.backgroundMediaSrc)) return true; 21413 if (resolveMediaSrc(settings.heroBackgroundMediaSrc)) return true; 21414 if (settings.type === "grid" && resolveMediaSrc(settings.image)) 21415 return true; 21416 return false; 21417} 21418const MEDIA_BLEED_BLOCK_TYPES = { 21419 "content-card": (settings) => settings.media, 21420 image: (settings) => settings.src, 21421 grid: (settings) => settings.image 21422}; 21423function canDeferToMediaBleedBlock(settings) { 21424 var _a; 21425 if (!MEDIA_BLEED_DEFER_BLOCK_TYPES.includes(settings == null ? void 0 : settings.type)) return false; 21426 if (settings.hasAccordion) return false; 21427 return !CONDITIONALLY_HIDDEN_CHILD_LAYOUTS.includes( 21428 (_a = settings.variants) == null ? void 0 : _a.layout 21429 ); 21430} 21431function resolveMediaSrc(media) { 21432 return typeof media === "string" ? media : media == null ? void 0 : media.src; 21433} 21434function isMediaBleedBlock(settings) { 21435 const getMedia = MEDIA_BLEED_BLOCK_TYPES[settings == null ? void 0 : settings.type]; 21436 if (!getMedia) return false; 21437 return !!resolveMediaSrc(getMedia(settings)); 21438} 21439const ANIMATION_STYLE_FADE = "fade"; 21440const ANIMATION_STYLE_SCALE = "scale"; 21441const ANIMATION_STYLE_SLIDE = "slide"; 21442const ANIMATION_SPEED_SLOW = "slow"; 21443const ANIMATION_SPEED_MEDIUM = "medium"; 21444const ANIMATION_SPEED_FAST = "fast"; 21445const ANIMATION_SPEED_DURATIONS = { 21446 [ANIMATION_SPEED_SLOW]: 1.5, 21447 [ANIMATION_SPEED_MEDIUM]: 0.9, 21448 [ANIMATION_SPEED_FAST]: 0.6 21449}; 21450const DEFAULT_ANIMATION_SPEED = ANIMATION_SPEED_MEDIUM; 21451const SCROLL_ANIMATION_EXCLUDED_KEY = "scrollAnimationExcluded"; 21452const _scrollAnimationsSuppressed = ref(false); 21453const scrollAnimationsSuppressed = readonly(_scrollAnimationsSuppressed); 21454const VALID_ANIMATION_STYLES = /* @__PURE__ */ new Set([ 21455 ANIMATION_STYLE_FADE, 21456 ANIMATION_STYLE_SCALE, 21457 ANIMATION_STYLE_SLIDE 21458]); 21459function normalizeAnimationStyle(value) { 21460 if (value && VALID_ANIMATION_STYLES.has(value)) { 21461 return value; 21462 } 21463 return null; 21464} 21465function normalizeAnimationSpeed(value) {
21466 if (value && Object.prototype.hasOwnProperty.call(ANIMATION_SPEED_DURATIONS, value)) { 21467 return value; 21468 } 21469 return DEFAULT_ANIMATION_SPEED; 21470} 21471function isAnimationEnabled(style) { 21472 return normalizeAnimationStyle(style) !== null; 21473} 21474function unwrapSiteRecord(site) { 21475 if (!site || typeof site !== "object") { 21476 return null; 21477 } 21478 if ("value" in site && site.value && typeof site.value === "object") { 21479 return site.value; 21480 } 21481 return site; 21482} 21483function getSiteAnimationSettingsFromRecord(site) { 21484 const record = unwrapSiteRecord(site); 21485 if (!record) { 21486 return {}; 21487 } 21488 return { 21489 animationStyle: record.animationStyle ?? record.AnimationStyle, 21490 animationSpeed: record.animationSpeed ?? record.AnimationSpeed, 21491 animationEnabledOnMobile: record.animationEnabledOnMobile ?? record.AnimationEnabledOnMobile ?? false 21492 }; 21493} 21494const SCROLL_ANIMATION_CONTAINER_TYPES = /* @__PURE__ */ new Set([ 21495 "rows", 21496 "columns", 21497 "grid", 21498 "container", 21499 "section", 21500 "accordion", 21501 "tabs", 21502 "toggle", 21503 "content-card", 21504 "repeat", 21505 "footer", 21506 "divider", 21507 "breadcrumbs", 21508 "stickyButton", 21509 "pencil-banner", 21510 "calculators", 21511 "article", 21512 "calendly", 21513 "calendlyEmbed", 21514 "select", 21515 "anchor-link-nav" 21516]); 21517const SCROLL_ANIMATION_CONTENT_TYPES = /* @__PURE__ */ new Set([ 21518 "text", 21519 "rich-text", 21520 "button", 21521 "image", 21522 "media", 21523 "video", 21524 "icon", 21525 "map", 21526 "social-links", 21527 "oembed", 21528 "frameEmbed", 21529 "file", 21530 "html" 21531]); 21532const SCROLL_ANIMATION_WHOLE_BLOCK_TYPES = /* @__PURE__ */ new Set([ 21533 "articles", 21534 "form", 21535 "hero", 21536 "heroComponent", 21537 "contact-hero", 21538 "contact-card" 21539]); 21540function isScrollAnimatableBlockType(blockType) { 21541 if (!blockType) { 21542 return false; 21543 } 21544 if (SCROLL_ANIMATION_WHOLE_BLOCK_TYPES.has(blockType)) { 21545 return true; 21546 } 21547 if (SCROLL_ANIMATION_CONTAINER_TYPES.has(blockType)) { 21548 return false; 21549 } 21550 return SCROLL_ANIMATION_CONTENT_TYPES.has(blockType); 21551} 21552function useReducedMotion() { 21553 const prefersReducedMotion = ref( 21554 typeof window !== "undefined" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : false 21555 ); 21556 let mediaQuery = null; 21557 onMounted(() => { 21558 mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)"); 21559 if (mediaQuery) { 21560 prefersReducedMotion.value = mediaQuery.matches; 21561 mediaQuery.addEventListener("change", handleReducedMotionChange); 21562 } 21563 }); 21564 onUnmounted(() => { 21565 if (mediaQuery) 21566 mediaQuery.removeEventListener("change", handleReducedMotionChange); 21567 }); 21568 function handleReducedMotionChange(event) { 21569 prefersReducedMotion.value = event.matches; 21570 } 21571 return { prefersReducedMotion }; 21572} 21573const BREAKPOINT_MD = 768; 21574const BREAKPOINT_LG = 992; 21575const BREAKPOINT_XL = 1280; 21576const MOBILE_PREVIEW_WIDTH_PX = 390; 21577function useIsMobile(props = {}, options = {}) { 21578 const { widthValue = null, heightValue = null } = options; 21579 const breakpoint = BREAKPOINT_LG; 21580 const isMobile = ref(false); 21581 const windowWidth = ref(window.innerWidth); 21582 function checkIfMobile() { 21583 isMobile.value = !window.matchMedia(`(min-width: ${breakpoint}px)`).matches; 21584 } 21585 function setWindowWidth() { 21586 windowWidth.value = window.innerWidth; 21587 } 21588 function handleResize() { 21589 setWindowWidth(); 21590 checkIfMobile(); 21591 } 21592 { 21593 onMounted(() => { 21594 handleResize(); 21595 window.addEventListener("resize", handleResize); 21596 }); 21597 onBeforeUnmount(() => { 21598 window.removeEventListener("resize", handleResize); 21599 }); 21600 } 21601 const store = useStore(); 21602 const { state } = store; 21603 const mobileSettingsFF = computed( 21604 () => { 21605 var _a, _b; 21606 return (_b = (_a = state == null ? void 0 : state.settings) == null ? void 0 : _a.featureFlags) == null ? void 0 : _b.MobileSettings; 21607 } 21608 ); 21609 const isMobileView = computed(() => { 21610 return isMobile.value || props.isBuilderMobile; 21611 }); 21612 const viewportWidth = computed(() => { 21613 if (props.isBuilderMobile) { 21614 return MOBILE_PREVIEW_WIDTH_PX; 21615 } 21616 if (typeof window !== "undefined") { 21617 return window.innerWidth; 21618 } 21619 return null; 21620 }); 21621 const calculateNumericWidth = (widthValue2) => { 21622 if (!mobileSettingsFF.value || !widthValue2) return void 0; 21623 let numericValue = null; 21624 if (typeof widthValue2 === "string") { 21625 const numericMatch = widthValue2.match(/^(\d+)/); 21626 if (numericMatch) { 21627 numericValue = parseInt(numericMatch[1], 10); 21628 } 21629 } else if (typeof widthValue2 === "number") { 21630 numericValue = widthValue2; 21631 } 21632 if (numericValue === null) return void 0; 21633 if (isMobileView.value) { 21634 const maxViewportWidth = viewportWidth.value || BREAKPOINT_MD; 21635 numericValue = Math.min(numericValue, maxViewportWidth); 21636 } 21637 return numericValue; 21638 }; 21639 const calculateNumericHeight = (widthNum, heightValue2, originalWidth) => { 21640 if (!mobileSettingsFF.value || !widthNum || !heightValue2) 21641 return void 0; 21642 let heightNum = null; 21643 let widthNumFromHeight = widthNum; 21644 if (typeof heightValue2 === "string") { 21645 const numericMatch = heightValue2.match(/^(\d+)/); 21646 if (numericMatch) { 21647 heightNum = parseInt(numericMatch[1], 10); 21648 } 21649 } else if (typeof heightValue2 === "number") { 21650 heightNum = heightValue2; 21651 } 21652 if (heightNum === null) return void 0; 21653 if (originalWidth) { 21654 if (typeof originalWidth === "string") { 21655 const widthMatch = originalWidth.match(/^(\d+)/); 21656 if (widthMatch) { 21657 widthNumFromHeight = parseInt(widthMatch[1], 10); 21658 } 21659 } else if (typeof originalWidth === "number") { 21660 widthNumFromHeight = originalWidth; 21661 } 21662 } 21663 if (typeof widthNumFromHeight === "number" && !isNaN(widthNumFromHeight) && widthNumFromHeight > 0 && heightNum) { 21664 const aspectRatio = heightNum / widthNumFromHeight; 21665 return Math.round(widthNum * aspectRatio); 21666 } 21667 return heightNum; 21668 }; 21669 const imageWidthNumeric = computed(() => { 21670 return calculateNumericWidth(widthValue == null ? void 0 : widthValue.value); 21671 }); 21672 const imageHeightNumeric = computed(() => { 21673 const widthNum = imageWidthNumeric.value; 21674 if (!widthNum || !(heightValue == null ? void 0 : heightValue.value)) return void 0; 21675 return calculateNumericHeight( 21676 widthNum, 21677 heightValue.value, 21678 widthValue == null ? void 0 : widthValue.value 21679 ); 21680 }); 21681 const imageSizes = computed(() => { 21682 if (!mobileSettingsFF.value) return void 0; 21683 return `(max-width: ${BREAKPOINT_LG}
21683px) 100vw, ${BREAKPOINT_XL}px`; 21684 }); 21685 return { 21686 isMobile, 21687 mobileSettingsFF, 21688 isMobileView, 21689 viewportWidth, 21690 imageWidthNumeric, 21691 imageHeightNumeric, 21692 imageSizes, 21693 calculateNumericWidth, 21694 calculateNumericHeight 21695 }; 21696} 21697const DEFAULT_ROOT_MARGIN = "0px 0px -10% 0px"; 21698const DEFAULT_THRESHOLD = 0; 21699const MOBILE_MEDIA_QUERY = `(max-width: ${BREAKPOINT_LG - 1}px)`; 21700const pendingRevealChecks = /* @__PURE__ */ new Set(); 21701let scrollFrameRequested = false; 21702let scrollListenersAttached = false; 21703const getViewportSize = () => { 21704 if (typeof window === "undefined") { 21705 return { height: 0, width: 0 }; 21706 } 21707 return { 21708 height: window.innerHeight || document.documentElement.clientHeight, 21709 width: window.innerWidth || document.documentElement.clientWidth 21710 }; 21711}; 21712const isPartiallyInViewport = (rect) => { 21713 if (!rect) { 21714 return false; 21715 } 21716 const { height, width } = getViewportSize(); 21717 return rect.bottom > 0 && rect.right > 0 && rect.top < height && rect.left < width; 21718}; 21719const getEntryRect = (entry) => { 21720 var _a, _b; 21721 return entry.boundingClientRect ?? ((_b = (_a = entry.target) == null ? void 0 : _a.getBoundingClientRect) == null ? void 0 : _b.call(_a)) ?? null; 21722}; 21723const runPendingRevealChecks = () => { 21724 scrollFrameRequested = false; 21725 pendingRevealChecks.forEach((check) => check()); 21726}; 21727const schedulePendingRevealChecks = () => { 21728 if (scrollFrameRequested || typeof window === "undefined") { 21729 return; 21730 } 21731 scrollFrameRequested = true; 21732 requestAnimationFrame(runPendingRevealChecks); 21733}; 21734const attachPendingRevealListeners = () => { 21735 if (scrollListenersAttached || typeof window === "undefined") { 21736 return; 21737 } 21738 scrollListenersAttached = true; 21739 window.addEventListener("scroll", schedulePendingRevealChecks, { 21740 passive: true 21741 }); 21742 window.addEventListener("resize", schedulePendingRevealChecks, { 21743 passive: true 21744 }); 21745}; 21746const passesAnimationGates = ({ 21747 enabled, 21748 siteAnimationsFeatureEnabled, 21749 isCompliance, 21750 prefersReducedMotion, 21751 resolvedStyle, 21752 isMobileViewport, 21753 siteMobileAnimationsEnabled 21754}) => { 21755 if (typeof window === "undefined") return false; 21756 if (!unref(enabled)) return false; 21757 if (prefersReducedMotion.value) return false; 21758 if (!unref(siteAnimationsFeatureEnabled)) return false; 21759 if (unref(isCompliance)) return false; 21760 if (scrollAnimationsSuppressed.value) return false; 21761 if (!isAnimationEnabled(resolvedStyle.value)) return false; 21762 if (isMobileViewport.value && !unref(siteMobileAnimationsEnabled)) { 21763 return false; 21764 } 21765 return true; 21766}; 21767const isElementVisibleForPreview = (element, root2) => { 21768 if (!element || typeof window === "undefined") { 21769 return false; 21770 } 21771 const rect = element.getBoundingClientRect(); 21772 if (!isPartiallyInViewport(rect)) { 21773 return false; 21774 } 21775 const rootElement = unref(root2); 21776 if (!rootElement) { 21777 return true; 21778 } 21779 const rootRect = rootElement.getBoundingClientRect(); 21780 return !(rect.bottom <= rootRect.top || rect.top >= rootRect.bottom || rect.right <= rootRect.left || rect.left >= rootRect.right); 21781}; 21782function useScrollAnimation(elementRef, options = {}) { 21783 const { 21784 enabled = true, 21785 animationStyle = null, 21786 animationSpeed = "medium", 21787 isEditable = false, 21788 isCompliance = false, 21789 siteAnimationsFeatureEnabled = true, 21790 siteMobileAnimationsEnabled = false, 21791 isBuilderMobile = false, 21792 builderPreviewToken = 0, 21793 builderPreviewRoot = null, 21794 rootMargin = DEFAULT_ROOT_MARGIN, 21795 threshold = DEFAULT_THRESHOLD 21796 } = options; 21797 const isIntersecting = ref(false); 21798 const hasBeenRevealed = ref(false); 21799 const revealGeneration = ref(0); 21800 const showBuilderPreviewClasses = ref(false); 21801 const { prefersReducedMotion } = useReducedMotion(); 21802 const isMobile = ref(false); 21803 let mobileMediaQuery = null; 21804 const handleMobileMediaChange = (event) => { 21805 isMobile.value = event.matches; 21806 }; 21807 let observer = null; 21808 const resolvedStyle = computed( 21809 () => normalizeAnimationStyle(unref(animationStyle)) 21810 ); 21811 const resolvedSpeed = computed( 21812 () => normalizeAnimationSpeed(unref(animationSpeed)) 21813 ); 21814 const isMobileViewport = computed( 21815 () => unref(isBuilderMobile) || isMobile.value 21816 ); 21817 const animationGateOptions = computed(() => ({ 21818 enabled, 21819 siteAnimationsFeatureEnabled, 21820 isCompliance, 21821 prefersReducedMotion, 21822 resolvedStyle, 21823 isMobileViewport, 21824 siteMobileAnimationsEnabled 21825 })); 21826 const isBuilderPreviewMode = computed( 21827 () => unref(isEditable) && passesAnimationGates(animationGateOptions.value) 21828 ); 21829 const shouldRunScrollAnimations = computed(() => { 21830 if (unref(isEditable)) return false;
21831 return passesAnimationGates(animationGateOptions.value); 21832 }); 21833 const shouldRunAnimations = computed( 21834 () => shouldRunScrollAnimations.value || isBuilderPreviewMode.value && showBuilderPreviewClasses.value 21835 ); 21836 const shouldRenderInitialPendingState = computed( 21837 () => typeof window === "undefined" && unref(enabled) && unref(siteAnimationsFeatureEnabled) && !unref(isCompliance) && isAnimationEnabled(resolvedStyle.value) && unref(siteMobileAnimationsEnabled) 21838 ); 21839 const scrollAnimationClasses = computed(() => { 21840 if (!shouldRunAnimations.value && !shouldRenderInitialPendingState.value) { 21841 return []; 21842 } 21843 const style = resolvedStyle.value; 21844 const classes = [ 21845 "site-scroll-animate", 21846 `site-scroll-animate--${style}` 21847 ]; 21848 if (isIntersecting.value) { 21849 classes.push("site-scroll-animate--visible"); 21850 classes.push( 21851 `site-scroll-animate--reveal-${revealGeneration.value}` 21852 ); 21853 } else { 21854 classes.push("site-scroll-animate--pending"); 21855 } 21856 return classes; 21857 }); 21858 const resetReveal = () => { 21859 hasBeenRevealed.value = false; 21860 isIntersecting.value = false; 21861 }; 21862 const markRevealed = () => { 21863 if (hasBeenRevealed.value && isIntersecting.value) { 21864 return; 21865 } 21866 hasBeenRevealed.value = true; 21867 revealGeneration.value += 1; 21868 isIntersecting.value = true; 21869 }; 21870 const syncViewportState = (rect) => { 21871 if (!rect) { 21872 return; 21873 } 21874 if (isPartiallyInViewport(rect)) { 21875 if (!hasBeenRevealed.value) { 21876 markRevealed(); 21877 } 21878 return; 21879 } 21880 if (hasBeenRevealed.value || isIntersecting.value) { 21881 resetReveal(); 21882 } 21883 }; 21884 const syncViewportFromElement = () => { 21885 if (!shouldRunScrollAnimations.value) { 21886 return; 21887 } 21888 const element = elementRef.value; 21889 if (!element) { 21890 return; 21891 } 21892 syncViewportState(element.getBoundingClientRect()); 21893 }; 21894 const destroyObserver = () => { 21895 if (observer) { 21896 observer.disconnect(); 21897 observer = null; 21898 } 21899 }; 21900 const syncIntersectionState = (element) => { 21901 if (!element || typeof window === "undefined") { 21902 return; 21903 } 21904 syncViewportState(element.getBoundingClientRect()); 21905 }; 21906 const updateIntersectionFromEntry = (entry) => { 21907 if (entry.isIntersecting) { 21908 if (!hasBeenRevealed.value) { 21909 markRevealed(); 21910 } 21911 return; 21912 } 21913 syncViewportState(getEntryRect(entry)); 21914 }; 21915 const initObserver = async () => { 21916 destroyObserver(); 21917 if (!shouldRunScrollAnimations.value || !elementRef.value) { 21918 return; 21919 } 21920 await nextTick(); 21921 const element = elementRef.value; 21922 if (!shouldRunScrollAnimations.value || !element) { 21923 return; 21924 } 21925 syncIntersectionState(element); 21926 observer = new IntersectionObserver( 21927 (entries) => { 21928 entries.forEach((entry) => { 21929 if (entry.target === elementRef.value) { 21930 updateIntersectionFromEntry(entry); 21931 } 21932 }); 21933 }, 21934 { rootMargin, threshold } 21935 ); 21936 observer.observe(element); 21937 syncViewportFromElement(); 21938 }; 21939 const runBuilderPreview = async (token) => { 21940 if (!isBuilderPreviewMode.value || !token) { 21941 showBuilderPreviewClasses.value = false; 21942 isIntersecting.value = true; 21943 return; 21944 } 21945 await nextTick(); 21946 const element = elementRef.value; 21947 if (!element || !isElementVisibleForPreview(element, builderPreviewRoot)) { 21948 showBuilderPreviewClasses.value = false; 21949 isIntersecting.value = true; 21950 return; 21951 } 21952 showBuilderPreviewClasses.value = true; 21953 isIntersecting.value = false; 21954 await nextTick(); 21955 requestAnimationFrame(() => { 21956 if (unref(builderPreviewToken) === token) { 21957 isIntersecting.value = true; 21958 } 21959 }); 21960 }; 21961 onMounted(async () => { 21962 if (typeof window !== "undefined") { 21963 mobileMediaQuery = window.matchMedia(MOBILE_MEDIA_QUERY); 21964 isMobile.value = mobileMediaQuery.matches; 21965 mobileMediaQuery.addEventListener( 21966 "change", 21967 handleMobileMediaChange 21968 ); 21969 } 21970 pendingRevealChecks.add(syncViewportFromElement); 21971 attachPendingRevealListeners(); 21972 if (shouldRunScrollAnimations.value) {
21973 await initObserver(); 21974 } else { 21975 isIntersecting.value = true; 21976 } 21977 }); 21978 onBeforeUnmount(() => { 21979 pendingRevealChecks.delete(syncViewportFromElement); 21980 if (mobileMediaQuery) { 21981 mobileMediaQuery.removeEventListener( 21982 "change", 21983 handleMobileMediaChange 21984 ); 21985 } 21986 destroyObserver(); 21987 }); 21988 watch(shouldRunScrollAnimations, (active) => { 21989 if (active) { 21990 initObserver(); 21991 } else { 21992 destroyObserver(); 21993 if (!showBuilderPreviewClasses.value) { 21994 isIntersecting.value = true; 21995 } 21996 } 21997 }); 21998 watch( 21999 () => elementRef.value, 22000 (element, previous) => { 22001 if (element === previous) { 22002 return; 22003 } 22004 if (shouldRunScrollAnimations.value) { 22005 initObserver(); 22006 } else if (!element) { 22007 resetReveal(); 22008 } 22009 } 22010 ); 22011 watch( 22012 () => unref(builderPreviewToken), 22013 (token) => { 22014 runBuilderPreview(token); 22015 } 22016 ); 22017 watch(isBuilderPreviewMode, (active) => { 22018 if (!active) { 22019 showBuilderPreviewClasses.value = false; 22020 isIntersecting.value = true; 22021 } 22022 }); 22023 return { 22024 scrollAnimationClasses, 22025 shouldRunAnimations, 22026 isIntersecting, 22027 animationDurationSeconds: computed( 22028 () => ANIMATION_SPEED_DURATIONS[resolvedSpeed.value] 22029 ) 22030 }; 22031} 22032var freeGlobal = typeof global == "object" && global && global.Object === Object && global; 22033var freeSelf = typeof self == "object" && self && self.Object === Object && self; 22034var root = freeGlobal || freeSelf || Function("return this")(); 22035var Symbol$1 = root.Symbol; 22036var objectProto$d = Object.prototype; 22037var hasOwnProperty$a = objectProto$d.hasOwnProperty; 22038var nativeObjectToString$1 = objectProto$d.toString; 22039var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0; 22040function getRawTag(value) { 22041 var isOwn = hasOwnProperty$a.call(value, symToStringTag$1), tag = value[symToStringTag$1]; 22042 try { 22043 value[symToStringTag$1] = void 0; 22044 var unmasked = true; 22045 } catch (e) { 22046 } 22047 var result = nativeObjectToString$1.call(value); 22048 if (unmasked) { 22049 if (isOwn) { 22050 value[symToStringTag$1] = tag; 22051 } else { 22052 delete value[symToStringTag$1]; 22053 } 22054 } 22055 return result; 22056} 22057var objectProto$c = Object.prototype; 22058var nativeObjectToString = objectProto$c.toString; 22059function objectToString(value) { 22060 return nativeObjectToString.call(value); 22061} 22062var nullTag = "[object Null]", undefinedTag = "[object Undefined]"; 22063var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0; 22064function baseGetTag(value) { 22065 if (value == null) { 22066 return value === void 0 ? undefinedTag : nullTag; 22067 } 22068 return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); 22069} 22070function isObjectLike$2(value) { 22071 return value != null && typeof value == "object"; 22072} 22073var symbolTag$2 = "[object Symbol]"; 22074function isSymbol(value) { 22075 return typeof value == "symbol" || isObjectLike$2(value) && baseGetTag(value) == symbolTag$2; 22076} 22077function arrayMap(array, iteratee) { 22078 var index2 = -1, length = array == null ? 0 : array.length, result = Array(length); 22079 while (++index2 < length) { 22080 result[index2] = iteratee(array[index2], index2, array); 22081 } 22082 return result; 22083} 22084var isArray = Array.isArray; 22085var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto$1 ? symbolProto$1.toString : void 0; 22086function baseToString(value) { 22087 if (typeof value == "string") { 22088 return value; 22089 } 22090 if (isArray(value)) { 22091 return arrayMap(value, baseToString) + ""; 22092 } 22093 if (isSymbol(value)) { 22094 return symbolToString ? symbolToString.call(value) : ""; 22095 } 22096 var result = value + ""; 22097 return result == "0" && 1 / value == -Infinity ? "-0" : result; 22098} 22099var reWhitespace = /\s/; 22100function trimmedEndIndex(string) { 22101 var index2 = string.length; 22102 while (index2-- && reWhitespace.test(string.charAt(index2))) { 22103 } 22104 return index2; 22105} 22106var reTrimStart = /^\s+/; 22107function baseTrim(string) { 22108 return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string; 22109} 22110function isObject$1(value) { 22111 var type = typeof value; 22112 return value != null && (type == "object" || type == "function"); 22113} 22114var NAN = 0 / 0; 22115var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
22116var reIsBinary = /^0b[01]+$/i; 22117var reIsOctal = /^0o[0-7]+$/i; 22118var freeParseInt = parseInt; 22119function toNumber$1(value) { 22120 if (typeof value == "number") { 22121 return value; 22122 } 22123 if (isSymbol(value)) { 22124 return NAN; 22125 } 22126 if (isObject$1(value)) { 22127 var other = typeof value.valueOf == "function" ? value.valueOf() : value; 22128 value = isObject$1(other) ? other + "" : other; 22129 } 22130 if (typeof value != "string") { 22131 return value === 0 ? value : +value; 22132 } 22133 value = baseTrim(value); 22134 var isBinary = reIsBinary.test(value); 22135 return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; 22136} 22137function identity(value) { 22138 return value; 22139} 22140var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]"; 22141function isFunction(value) { 22142 if (!isObject$1(value)) { 22143 return false; 22144 } 22145 var tag = baseGetTag(value); 22146 return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag; 22147} 22148var coreJsData = root["__core-js_shared__"]; 22149var maskSrcKey = function() { 22150 var uid2 = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); 22151 return uid2 ? "Symbol(src)_1." + uid2 : ""; 22152}(); 22153function isMasked(func) { 22154 return !!maskSrcKey && maskSrcKey in func; 22155} 22156var funcProto$1 = Function.prototype; 22157var funcToString$1 = funcProto$1.toString; 22158function toSource(func) { 22159 if (func != null) { 22160 try { 22161 return funcToString$1.call(func); 22162 } catch (e) { 22163 } 22164 try { 22165 return func + ""; 22166 } catch (e) { 22167 } 22168 } 22169 return ""; 22170} 22171var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; 22172var reIsHostCtor = /^\[object .+?Constructor\]$/; 22173var funcProto = Function.prototype, objectProto$b = Object.prototype; 22174var funcToString = funcProto.toString; 22175var hasOwnProperty$9 = objectProto$b.hasOwnProperty; 22176var reIsNative = RegExp( 22177 "^" + funcToString.call(hasOwnProperty$9).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" 22178); 22179function baseIsNative(value) { 22180 if (!isObject$1(value) || isMasked(value)) { 22181 return false; 22182 } 22183 var pattern = isFunction(value) ? reIsNative : reIsHostCtor; 22184 return pattern.test(toSource(value)); 22185} 22186function getValue(object, key) { 22187 return object == null ? void 0 : object[key]; 22188} 22189function getNative(object, key) { 22190 var value = getValue(object, key); 22191 return baseIsNative(value) ? value : void 0; 22192} 22193var WeakMap$1 = getNative(root, "WeakMap"); 22194var metaMap = WeakMap$1 && new WeakMap$1(); 22195var objectCreate = Object.create; 22196var baseCreate = /* @__PURE__ */ function() { 22197 function object() { 22198 } 22199 return function(proto) { 22200 if (!isObject$1(proto)) { 22201 return {}; 22202 } 22203 if (objectCreate) { 22204 return objectCreate(proto); 22205 } 22206 object.prototype = proto; 22207 var result = new object(); 22208 object.prototype = void 0; 22209 return result; 22210 }; 22211}(); 22212function apply(func, thisArg, args) { 22213 switch (args.length) { 22214 case 0: 22215 return func.call(thisArg); 22216 case 1: 22217 return func.call(thisArg, args[0]); 22218 case 2: 22219 return func.call(thisArg, args[0], args[1]); 22220 case 3: 22221 return func.call(thisArg, args[0], args[1], args[2]); 22222 } 22223 return func.apply(thisArg, args); 22224} 22225function baseLodash() { 22226} 22227var MAX_ARRAY_LENGTH = 4294967295; 22228function LazyWrapper(value) { 22229 this.__wrapped__ = value; 22230 this.__actions__ = []; 22231 this.__dir__ = 1; 22232 this.__filtered__ = false; 22233 this.__iteratees__ = []; 22234 this.__takeCount__ = MAX_ARRAY_LENGTH; 22235 this.__views__ = []; 22236} 22237LazyWrapper.prototype = baseCreate(baseLodash.prototype); 22238LazyWrapper.prototype.constructor = LazyWrapper; 22239function noop() { 22240} 22241var getData = !metaMap ? noop : function(func) { 22242 return metaMap.get(func); 22243}; 22244var realNames = {}; 22245var objectProto$a = Object.prototype; 22246var hasOwnProperty$8 = objectProto$a.hasOwnProperty; 22247function getFuncName(func) { 22248 var result = func.name + "", array = realNames[result], length = hasOwnProperty$8.call(realNames, result) ? array.length : 0; 22249 while (length--) { 22250 var data = array[length], otherFunc = data.func; 22251 if (otherFunc == null || otherFunc == func) { 22252 return data.name; 22253 } 22254 } 22255 return result; 22256} 22257function LodashWrapper(value, chainAll) { 22258 this.__wrapped__ = value; 22259 this.__actions__ = []; 22260 this.__chain__ = !!chainAll; 22261 this.__index__ = 0; 22262 this.__values__ = void 0; 22263}
22264LodashWrapper.prototype = baseCreate(baseLodash.prototype); 22265LodashWrapper.prototype.constructor = LodashWrapper; 22266function copyArray(source, array) { 22267 var index2 = -1, length = source.length; 22268 array || (array = Array(length)); 22269 while (++index2 < length) { 22270 array[index2] = source[index2]; 22271 } 22272 return array; 22273} 22274function wrapperClone(wrapper) { 22275 if (wrapper instanceof LazyWrapper) { 22276 return wrapper.clone(); 22277 } 22278 var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__); 22279 result.__actions__ = copyArray(wrapper.__actions__); 22280 result.__index__ = wrapper.__index__; 22281 result.__values__ = wrapper.__values__; 22282 return result; 22283} 22284var objectProto$9 = Object.prototype; 22285var hasOwnProperty$7 = objectProto$9.hasOwnProperty; 22286function lodash(value) { 22287 if (isObjectLike$2(value) && !isArray(value) && !(value instanceof LazyWrapper)) { 22288 if (value instanceof LodashWrapper) { 22289 return value; 22290 } 22291 if (hasOwnProperty$7.call(value, "__wrapped__")) { 22292 return wrapperClone(value); 22293 } 22294 } 22295 return new LodashWrapper(value); 22296} 22297lodash.prototype = baseLodash.prototype; 22298lodash.prototype.constructor = lodash; 22299function isLaziable(func) { 22300 var funcName = getFuncName(func), other = lodash[funcName]; 22301 if (typeof other != "function" || !(funcName in LazyWrapper.prototype)) { 22302 return false; 22303 } 22304 if (func === other) { 22305 return true; 22306 } 22307 var data = getData(other); 22308 return !!data && func === data[0]; 22309} 22310var HOT_COUNT = 800, HOT_SPAN = 16; 22311var nativeNow = Date.now; 22312function shortOut(func) { 22313 var count = 0, lastCalled = 0; 22314 return function() { 22315 var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); 22316 lastCalled = stamp; 22317 if (remaining > 0) { 22318 if (++count >= HOT_COUNT) { 22319 return arguments[0]; 22320 } 22321 } else { 22322 count = 0; 22323 } 22324 return func.apply(void 0, arguments); 22325 }; 22326} 22327function constant(value) { 22328 return function() { 22329 return value; 22330 }; 22331} 22332var defineProperty = function() { 22333 try { 22334 var func = getNative(Object, "defineProperty"); 22335 func({}, "", {}); 22336 return func; 22337 } catch (e) { 22338 } 22339}(); 22340var baseSetToString = !defineProperty ? identity : function(func, string) { 22341 return defineProperty(func, "toString", { 22342 "configurable": true, 22343 "enumerable": false, 22344 "value": constant(string), 22345 "writable": true 22346 }); 22347}; 22348var setToString = shortOut(baseSetToString); 22349function arrayEach(array, iteratee) { 22350 var index2 = -1, length = array == null ? 0 : array.length; 22351 while (++index2 < length) { 22352 if (iteratee(array[index2], index2, array) === false) { 22353 break; 22354 } 22355 } 22356 return array; 22357} 22358var MAX_SAFE_INTEGER$1 = 9007199254740991; 22359var reIsUint = /^(?:0|[1-9]\d*)$/; 22360function isIndex$1(value, length) { 22361 var type = typeof value; 22362 length = length == null ? MAX_SAFE_INTEGER$1 : length; 22363 return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); 22364} 22365function baseAssignValue(object, key, value) { 22366 if (key == "__proto__" && defineProperty) { 22367 defineProperty(object, key, { 22368 "configurable": true, 22369 "enumerable": true, 22370 "value": value, 22371 "writable": true 22372 }); 22373 } else { 22374 object[key] = value; 22375 } 22376} 22377function eq(value, other) { 22378 return value === other || value !== value && other !== other; 22379} 22380var objectProto$8 = Object.prototype; 22381var hasOwnProperty$6 = objectProto$8.hasOwnProperty; 22382function assignValue(object, key, value) { 22383 var objValue = object[key]; 22384 if (!(hasOwnProperty$6.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) { 22385 baseAssignValue(object, key, value); 22386 } 22387} 22388var nativeMax = Math.max; 22389function overRest(func, start, transform) { 22390 start = nativeMax(start === void 0 ? func.length - 1 : start, 0); 22391 return function() { 22392 var args = arguments, index2 = -1, length = nativeMax(args.length - start, 0), array = Array(length); 22393 while (++index2 < length) { 22394 array[index2] = args[start + index2]; 22395 } 22396 index2 = -1; 22397 var otherArgs = Array(start + 1); 22398 while (++index2 < start) { 22399 otherArgs[index2] = args[index2]; 22400 } 22401 otherArgs[start] = transform(array); 22402 return apply(func, this, otherArgs); 22403 }; 22404} 22405var MAX_SAFE_INTEGER = 9007199254740991; 22406function isLength(value) { 22407 return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; 22408} 22409function isArrayLike(value) { 22410 return value != null && isLength(value.length) && !isFunction(value); 22411} 22412var objectProto$7 = Object.prototype; 22413function isPrototype(value) { 22414 var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$7; 22415 return value === proto; 22416} 22417function baseTimes(n, iteratee) { 22418 var index2 = -1, result = Array(n); 22419 while (++index2 < n) { 22420 result[index2] = iteratee(index2); 22421 } 22422 return result; 22423} 22424var argsTag$2 = "[object Arguments]"; 22425function baseIsArguments(value) { 22426 return isObjectLike$2(value) && baseGetTag(value) == argsTag$2; 22427} 22428var objectProto$6 = Object.prototype; 22429var hasOwnProperty$5 = objectProto$6.hasOwnProperty; 22430var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable; 22431var isArguments = baseIsArguments(/* @__PURE__ */ function() { 22432 return arguments; 22433}()) ? baseIsArguments : function(value) { 22434 return isObjectLike$2(value) && hasOwnProperty$5.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee"); 22435}; 22436function stubFalse() { 22437 return false;
vendor: 6,534 bytes, lines 22438-22577
22438} 22439var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports; 22440var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module; 22441var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2; 22442var Buffer$2 = moduleExports$2 ? root.Buffer : void 0; 22443var nativeIsBuffer = Buffer$2 ? Buffer$2.isBuffer : void 0; 22444var isBuffer = nativeIsBuffer || stubFalse; 22445var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]"; 22446var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]"; 22447var typedArrayTags = {}; 22448typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true; 22449typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false; 22450function baseIsTypedArray(value) { 22451 return isObjectLike$2(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; 22452} 22453function baseUnary(func) { 22454 return function(value) { 22455 return func(value); 22456 }; 22457} 22458var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports; 22459var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module; 22460var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1; 22461var freeProcess = moduleExports$1 && freeGlobal.process; 22462var nodeUtil = function() { 22463 try { 22464 var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types; 22465 if (types) { 22466 return types; 22467 } 22468 return freeProcess && freeProcess.binding && freeProcess.binding("util"); 22469 } catch (e) { 22470 } 22471}(); 22472var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; 22473var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; 22474var objectProto$5 = Object.prototype; 22475var hasOwnProperty$4 = objectProto$5.hasOwnProperty; 22476function arrayLikeKeys(value, inherited) { 22477 var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; 22478 for (var key in value) { 22479 if (hasOwnProperty$4.call(value, key) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode. 22480 (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. 22481 isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. 22482 isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties. 22483 isIndex$1(key, length)))) { 22484 result.push(key); 22485 } 22486 } 22487 return result; 22488} 22489function overArg(func, transform) { 22490 return function(arg) { 22491 return func(transform(arg)); 22492 }; 22493} 22494var nativeKeys = overArg(Object.keys, Object); 22495var objectProto$4 = Object.prototype; 22496var hasOwnProperty$3 = objectProto$4.hasOwnProperty; 22497function baseKeys(object) { 22498 if (!isPrototype(object)) { 22499 return nativeKeys(object); 22500 } 22501 var result = []; 22502 for (var key in Object(object)) { 22503 if (hasOwnProperty$3.call(object, key) && key != "constructor") { 22504 result.push(key); 22505 } 22506 } 22507 return result; 22508} 22509function keys(object) { 22510 return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); 22511} 22512var nativeCreate = getNative(Object, "create"); 22513function hashClear() { 22514 this.__data__ = nativeCreate ? nativeCreate(null) : {}; 22515 this.size = 0; 22516} 22517function hashDelete(key) { 22518 var result = this.has(key) && delete this.__data__[key]; 22519 this.size -= result ? 1 : 0; 22520 return result; 22521} 22522var HASH_UNDEFINED$1 = "__lodash_hash_undefined__"; 22523var objectProto$3 = Object.prototype; 22524var hasOwnProperty$2 = objectProto$3.hasOwnProperty; 22525function hashGet(key) { 22526 var data = this.__data__; 22527 if (nativeCreate) { 22528 var result = data[key]; 22529 return result === HASH_UNDEFINED$1 ? void 0 : result; 22530 } 22531 return hasOwnProperty$2.call(data, key) ? data[key] : void 0; 22532} 22533var objectProto$2 = Object.prototype; 22534var hasOwnProperty$1 = objectProto$2.hasOwnProperty; 22535function hashHas(key) { 22536 var data = this.__data__; 22537 return nativeCreate ? data[key] !== void 0 : hasOwnProperty$1.call(data, key); 22538} 22539var HASH_UNDEFINED = "__lodash_hash_undefined__"; 22540function hashSet(key, value) { 22541 var data = this.__data__; 22542 this.size += this.has(key) ? 0 : 1; 22543 data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value; 22544 return this; 22545} 22546function Hash(entries) { 22547 var index2 = -1, length = entries == null ? 0 : entries.length; 22548 this.clear(); 22549 while (++index2 < length) { 22550 var entry = entries[index2]; 22551 this.set(entry[0], entry[1]); 22552 } 22553} 22554Hash.prototype.clear = hashClear; 22555Hash.prototype["delete"] = hashDelete; 22556Hash.prototype.get = hashGet; 22557Hash.prototype.has = hashHas; 22558Hash.prototype.set = hashSet; 22559function listCacheClear() { 22560 this.__data__ = []; 22561 this.size = 0; 22562} 22563function assocIndexOf(array, key) { 22564 var length = array.length; 22565 while (length--) { 22566 if (eq(array[length][0], key)) { 22567 return length; 22568 } 22569 } 22570 return -1; 22571} 22572var arrayProto = Array.prototype; 22573var splice = arrayProto.splice; 22574function listCacheDelete(key) { 22575 var data = this.__data__, index2 = assocIndexOf(data, key); 22576 if (index2 < 0) { 22577 return false;
22578 } 22579 var lastIndex = data.length - 1; 22580 if (index2 == lastIndex) { 22581 data.pop(); 22582 } else { 22583 splice.call(data, index2, 1); 22584 } 22585 --this.size; 22586 return true; 22587} 22588function listCacheGet(key) { 22589 var data = this.__data__, index2 = assocIndexOf(data, key); 22590 return index2 < 0 ? void 0 : data[index2][1]; 22591} 22592function listCacheHas(key) { 22593 return assocIndexOf(this.__data__, key) > -1; 22594} 22595function listCacheSet(key, value) { 22596 var data = this.__data__, index2 = assocIndexOf(data, key); 22597 if (index2 < 0) { 22598 ++this.size; 22599 data.push([key, value]); 22600 } else { 22601 data[index2][1] = value; 22602 } 22603 return this; 22604} 22605function ListCache(entries) { 22606 var index2 = -1, length = entries == null ? 0 : entries.length; 22607 this.clear(); 22608 while (++index2 < length) { 22609 var entry = entries[index2]; 22610 this.set(entry[0], entry[1]); 22611 } 22612} 22613ListCache.prototype.clear = listCacheClear; 22614ListCache.prototype["delete"] = listCacheDelete; 22615ListCache.prototype.get = listCacheGet; 22616ListCache.prototype.has = listCacheHas; 22617ListCache.prototype.set = listCacheSet; 22618var Map$1 = getNative(root, "Map"); 22619function mapCacheClear() { 22620 this.size = 0; 22621 this.__data__ = { 22622 "hash": new Hash(), 22623 "map": new (Map$1 || ListCache)(), 22624 "string": new Hash() 22625 }; 22626} 22627function isKeyable(value) { 22628 var type = typeof value; 22629 return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; 22630} 22631function getMapData(map, key) { 22632 var data = map.__data__; 22633 return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; 22634} 22635function mapCacheDelete(key) { 22636 var result = getMapData(this, key)["delete"](key); 22637 this.size -= result ? 1 : 0; 22638 return result; 22639} 22640function mapCacheGet(key) { 22641 return getMapData(this, key).get(key); 22642} 22643function mapCacheHas(key) { 22644 return getMapData(this, key).has(key); 22645} 22646function mapCacheSet(key, value) { 22647 var data = getMapData(this, key), size = data.size; 22648 data.set(key, value); 22649 this.size += data.size == size ? 0 : 1; 22650 return this; 22651} 22652function MapCache(entries) { 22653 var index2 = -1, length = entries == null ? 0 : entries.length; 22654 this.clear(); 22655 while (++index2 < length) { 22656 var entry = entries[index2]; 22657 this.set(entry[0], entry[1]); 22658 } 22659} 22660MapCache.prototype.clear = mapCacheClear; 22661MapCache.prototype["delete"] = mapCacheDelete; 22662MapCache.prototype.get = mapCacheGet; 22663MapCache.prototype.has = mapCacheHas; 22664MapCache.prototype.set = mapCacheSet; 22665function toString2(value) { 22666 return value == null ? "" : baseToString(value); 22667} 22668function arrayPush(array, values) { 22669 var index2 = -1, length = values.length, offset = array.length; 22670 while (++index2 < length) { 22671 array[offset + index2] = values[index2]; 22672 } 22673 return array; 22674} 22675var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0; 22676function isFlattenable(value) { 22677 return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); 22678} 22679function baseFlatten(array, depth, predicate, isStrict, result) { 22680 var index2 = -1, length = array.length; 22681 predicate || (predicate = isFlattenable); 22682 result || (result = []); 22683 while (++index2 < length) { 22684 var value = array[index2]; 22685 if (predicate(value)) { 22686 { 22687 arrayPush(result, value); 22688 } 22689 } else { 22690 result[result.length] = value; 22691 } 22692 } 22693 return result; 22694} 22695function flatten(array) { 22696 var length = array == null ? 0 : array.length; 22697 return length ? baseFlatten(array) : []; 22698} 22699function flatRest(func) { 22700 return setToString(overRest(func, void 0, flatten), func + ""); 22701} 22702var getPrototype = overArg(Object.getPrototypeOf, Object); 22703function baseSlice(array, start, end) { 22704 var index2 = -1, length = array.length; 22705 if (start < 0) { 22706 start = -start > length ? 0 : length + start; 22707 } 22708 end = end > length ? length : end; 22709 if (end < 0) { 22710 end += length; 22711 } 22712 length = start > end ? 0 : end - start >>> 0; 22713 start >>>= 0; 22714 var result = Array(length); 22715 while (++index2 < length) { 22716 result[index2] = array[index2 + start]; 22717 } 22718 return result; 22719} 22720function castSlice(array, start, end) { 22721 var length = array.length; 22722 end = end === void 0 ? length : end; 22723 return false ? array : baseSlice(array, start, end); 22724} 22725var rsAstralRange$2 = "\\ud800-\\udfff", rsComboMarksRange$3 = "\\u0300-\\u036f", reComboHalfMarksRange$3 = "\\ufe20-\\ufe2f", rsComboSymbol
vendor: 8,982 bytes, lines 22725-23010
22725sRange$3 = "\\u20d0-\\u20ff", rsComboRange$3 = rsComboMarksRange$3 + reComboHalfMarksRange$3 + rsComboSymbolsRange$3, rsVarRange$2 = "\\ufe0e\\ufe0f"; 22726var rsZWJ$2 = "\\u200d"; 22727var reHasUnicode = RegExp("[" + rsZWJ$2 + rsAstralRange$2 + rsComboRange$3 + rsVarRange$2 + "]"); 22728function hasUnicode(string) { 22729 return reHasUnicode.test(string); 22730} 22731function asciiToArray(string) { 22732 return string.split(""); 22733} 22734var rsAstralRange$1 = "\\ud800-\\udfff", rsComboMarksRange$2 = "\\u0300-\\u036f", reComboHalfMarksRange$2 = "\\ufe20-\\ufe2f", rsComboSymbolsRange$2 = "\\u20d0-\\u20ff", rsComboRange$2 = rsComboMarksRange$2 + reComboHalfMarksRange$2 + rsComboSymbolsRange$2, rsVarRange$1 = "\\ufe0e\\ufe0f"; 22735var rsAstral = "[" + rsAstralRange$1 + "]", rsCombo$2 = "[" + rsComboRange$2 + "]", rsFitz$1 = "\\ud83c[\\udffb-\\udfff]", rsModifier$1 = "(?:" + rsCombo$2 + "|" + rsFitz$1 + ")", rsNonAstral$1 = "[^" + rsAstralRange$1 + "]", rsRegional$1 = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair$1 = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsZWJ$1 = "\\u200d"; 22736var reOptMod$1 = rsModifier$1 + "?", rsOptVar$1 = "[" + rsVarRange$1 + "]?", rsOptJoin$1 = "(?:" + rsZWJ$1 + "(?:" + [rsNonAstral$1, rsRegional$1, rsSurrPair$1].join("|") + ")" + rsOptVar$1 + reOptMod$1 + ")*", rsSeq$1 = rsOptVar$1 + reOptMod$1 + rsOptJoin$1, rsSymbol = "(?:" + [rsNonAstral$1 + rsCombo$2 + "?", rsCombo$2, rsRegional$1, rsSurrPair$1, rsAstral].join("|") + ")"; 22737var reUnicode = RegExp(rsFitz$1 + "(?=" + rsFitz$1 + ")|" + rsSymbol + rsSeq$1, "g"); 22738function unicodeToArray(string) { 22739 return string.match(reUnicode) || []; 22740} 22741function stringToArray(string) { 22742 return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string); 22743} 22744function createCaseFirst(methodName) { 22745 return function(string) { 22746 string = toString2(string); 22747 var strSymbols = hasUnicode(string) ? stringToArray(string) : void 0; 22748 var chr = strSymbols ? strSymbols[0] : string.charAt(0); 22749 var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1); 22750 return chr[methodName]() + trailing; 22751 }; 22752} 22753var upperFirst = createCaseFirst("toUpperCase"); 22754function capitalize(string) { 22755 return upperFirst(toString2(string).toLowerCase()); 22756} 22757function arrayReduce(array, iteratee, accumulator, initAccum) { 22758 var index2 = -1, length = array == null ? 0 : array.length; 22759 while (++index2 < length) { 22760 accumulator = iteratee(accumulator, array[index2], index2, array); 22761 } 22762 return accumulator; 22763} 22764function basePropertyOf(object) { 22765 return function(key) { 22766 return object == null ? void 0 : object[key]; 22767 }; 22768} 22769var deburredLetters = { 22770 // Latin-1 Supplement block. 22771 "Ã": "A", 22772 "Ã": "A", 22773 "Ã": "A", 22774 "Ã": "A", 22775 "Ã": "A", 22776 "à ": "A", 22777 "à ": "a", 22778 "á": "a", 22779 "â": "a", 22780 "ã": "a", 22781 "ä": "a", 22782 "Ã¥": "a", 22783 "Ã": "C", 22784 "ç": "c", 22785 "Ã": "D", 22786 "ð": "d", 22787 "Ã": "E", 22788 "Ã": "E", 22789 "Ã": "E", 22790 "Ã": "E", 22791 "è": "e", 22792 "é": "e", 22793 "ê": "e", 22794 "ë": "e", 22795 "Ã": "I", 22796 "Ã": "I", 22797 "Ã": "I", 22798 "Ã": "I", 22799 "ì": "i", 22800 "Ã": "i", 22801 "î": "i", 22802 "ï": "i", 22803 "Ã": "N", 22804 "ñ": "n", 22805 "Ã": "O", 22806 "Ã": "O", 22807 "Ã": "O", 22808 "Ã": "O", 22809 "Ã": "O", 22810 "Ã": "O", 22811 "ò": "o", 22812 "ó": "o", 22813 "ô": "o", 22814 "õ": "o", 22815 "ö": "o", 22816 "ø": "o", 22817 "Ã": "U", 22818 "Ã": "U", 22819 "Ã": "U", 22820 "Ã": "U", 22821 "ù": "u", 22822 "ú": "u", 22823 "û": "u", 22824 "ü": "u", 22825 "Ã": "Y", 22826 "ý": "y", 22827 "ÿ": "y", 22828 "Ã": "Ae", 22829 "æ": "ae", 22830 "Ã": "Th", 22831 "þ": "th", 22832 "Ã": "ss", 22833 // Latin Extended-A block. 22834 "Ä": "A", 22835 "Ä": "A", 22836 "Ä": "A", 22837 "Ä": "a", 22838 "Ä": "a", 22839 "Ä ": "a", 22840 "Ä": "C", 22841 "Ä": "C", 22842 "Ä": "C", 22843 "Ä": "C", 22844 "Ä": "c", 22845 "Ä": "c", 22846 "Ä": "c", 22847 "Ä": "c", 22848 "Ä": "D", 22849 "Ä": "D", 22850 "Ä": "d", 22851 "Ä": "d", 22852 "Ä": "E", 22853 "Ä": "E", 22854 "Ä": "E", 22855 "Ä": "E", 22856 "Ä": "E", 22857 "Ä": "e", 22858 "Ä": "e", 22859 "Ä": "e", 22860 "Ä": "e", 22861 "Ä": "e", 22862 "Ä": "G", 22863 "Ä": "G", 22864 "Ä ": "G", 22865 "Ä¢": "G", 22866 "Ä": "g", 22867 "Ä": "g", 22868 "Ä¡": "g", 22869 "Ä£": "g", 22870 "Ĥ": "H", 22871 "Ħ": "H", 22872 "Ä¥": "h", 22873 "ħ": "h", 22874 "Ĩ": "I", 22875 "Ī": "I", 22876 "Ĭ": "I", 22877 "Ä®": "I", 22878 "İ": "I", 22879 "Ä©": "i", 22880 "Ä«": "i", 22881 "Ä": "i", 22882 "į": "i", 22883 "ı": "i", 22884 "Ä´": "J", 22885 "ĵ": "j", 22886 "Ķ": "K", 22887 "Ä·": "k", 22888 "ĸ": "k", 22889 "Ĺ": "L", 22890 "Ä»": "L", 22891 "Ľ": "L", 22892 "Ä¿": "L", 22893 "Å": "L", 22894 "ĺ": "l", 22895 "ļ": "l", 22896 "ľ": "l", 22897 "Å": "l", 22898 "Å": "l", 22899 "Å": "N", 22900 "Å ": "N", 22901 "Å": "N", 22902 "Å": "N", 22903 "Å": "n", 22904 "Å": "n", 22905 "Å": "n", 22906 "Å": "n", 22907 "Å": "O", 22908 "Å": "O", 22909 "Å": "O", 22910 "Å": "o", 22911 "Å": "o", 22912 "Å": "o", 22913 "Å": "R", 22914 "Å": "R", 22915 "Å": "R", 22916 "Å": "r", 22917 "Å": "r", 22918 "Å": "r", 22919 "Å": "S", 22920 "Å": "S", 22921 "Å": "S", 22922 "Å ": "S", 22923 "Å": "s", 22924 "Å": "s", 22925 "Å": "s", 22926 "Å¡": "s", 22927 "Å¢": "T", 22928 "Ť": "T", 22929 "Ŧ": "T", 22930 "Å£": "t", 22931 "Å¥": "t", 22932 "ŧ": "t", 22933 "Ũ": "U", 22934 "Ū": "U", 22935 "Ŭ": "U", 22936 "Å®": "U", 22937 "Ű": "U", 22938 "Ų": "U", 22939 "Å©": "u", 22940 "Å«": "u", 22941 "Å": "u", 22942 "ů": "u", 22943 "ű": "u", 22944 "ų": "u", 22945 "Å´": "W", 22946 "ŵ": "w", 22947 "Ŷ": "Y", 22948 "Å·": "y", 22949 "Ÿ": "Y", 22950 "Ź": "Z", 22951 "Å»": "Z", 22952 "Ž": "Z", 22953 "ź": "z", 22954 "ż": "z", 22955 "ž": "z", 22956 "IJ": "IJ", 22957 "ij": "ij", 22958 "Å": "Oe", 22959 "Å": "oe", 22960 "Å": "'n", 22961 "Å¿": "s" 22962}; 22963var deburrLetter = basePropertyOf(deburredLetters); 22964var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; 22965var rsComboMarksRange$1 = "\\u0300-\\u036f", reComboHalfMarksRange$1 = "\\ufe20-\\ufe2f", rsComboSymbolsRange$1 = "\\u20d0-\\u20ff", rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1; 22966var rsCombo$1 = "[" + rsComboRange$1 + "]"; 22967var reComboMark = RegExp(rsCombo$1, "g"); 22968function deburr(string) { 22969 string = toString2(string); 22970 return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ""); 22971} 22972var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; 22973function asciiWords(string) { 22974 return string.match(reAsciiWord) || []; 22975} 22976var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; 22977function hasUnicodeWord(string) { 22978 return reHasUnicodeWord.test(string); 22979} 22980var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsDingbatRange = "\\u2700-\\u27bf", rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff", rsMathOpRange = "\\xac\\xb1\\xd7\\xf7", rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", rsPunctuationRange = "\\u2000-\\u206f", rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde", rsVarRange = "\\ufe0e\\ufe0f", rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; 22981var rsApos$1 = "['â]", rsBreak = "[" + rsBreakRange + "]", rsCombo = "[" + rsComboRange + "]", rsDigits = "\\d+", rsDingbat = "[" + rsDingbatRange + "]", rsLower = "[" + rsLowerRange + "]", rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsUpper = "[" + rsUpperRange + "]", rsZWJ = "\\u200d"; 22982var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")", rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")", rsOptContrLower = "(?:" + rsApos$1 + "(?:d|ll|m|re|s|t|ve))?", rsOptContrUpper = "(?:" + rsApos$1 + "(?:D|LL|M|RE|S|T|VE))?", reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = "(?:" + [rsDingbat, rsRegional, rsSurrPair].join("|") + ")" + rsSeq; 22983var reUnicodeWord = RegExp([ 22984 rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")", 22985 rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [rsBreak, rsUpper + rsMiscLower, "$"].join("|") + ")", 22986 rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower, 22987 rsUpper + "+" + rsOptContrUpper, 22988 rsOrdUpper, 22989 rsOrdLower, 22990 rsDigits, 22991 rsEmoji 22992].join("|"), "g"); 22993function unicodeWords(string) { 22994 return string.match(reUnicodeWord) || []; 22995} 22996function words(string, pattern, guard) { 22997 string = toString2(string); 22998 pattern = pattern; 22999 if (pattern === void 0) { 23000 return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string); 23001 } 23002 return string.match(pattern) || []; 23003} 23004var rsApos = "['â]"; 23005var reApos = RegExp(rsApos, "g"); 23006function createCompounder(callback) { 23007 return function(string) { 23008 return arrayReduce(words(deburr(string).replace(reApos, "")), callback, ""); 23009 }; 23010}
23011var camelCase = createCompounder(function(result, word, index2) { 23012 word = word.toLowerCase(); 23013 return result + (index2 ? capitalize(word) : word); 23014}); 23015function baseClamp(number, lower, upper) { 23016 if (number === number) { 23017 if (upper !== void 0) { 23018 number = number <= upper ? number : upper; 23019 } 23020 if (lower !== void 0) { 23021 number = number >= lower ? number : lower; 23022 } 23023 } 23024 return number; 23025} 23026function clamp(number, lower, upper) { 23027 if (upper === void 0) { 23028 upper = lower; 23029 lower = void 0; 23030 } 23031 if (upper !== void 0) { 23032 upper = toNumber$1(upper); 23033 upper = upper === upper ? upper : 0; 23034 } 23035 if (lower !== void 0) { 23036 lower = toNumber$1(lower); 23037 lower = lower === lower ? lower : 0; 23038 } 23039 return baseClamp(toNumber$1(number), lower, upper); 23040} 23041function stackClear() { 23042 this.__data__ = new ListCache(); 23043 this.size = 0; 23044} 23045function stackDelete(key) { 23046 var data = this.__data__, result = data["delete"](key); 23047 this.size = data.size; 23048 return result; 23049} 23050function stackGet(key) { 23051 return this.__data__.get(key); 23052} 23053function stackHas(key) { 23054 return this.__data__.has(key); 23055} 23056var LARGE_ARRAY_SIZE = 200; 23057function stackSet(key, value) { 23058 var data = this.__data__; 23059 if (data instanceof ListCache) { 23060 var pairs = data.__data__; 23061 if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) { 23062 pairs.push([key, value]); 23063 this.size = ++data.size; 23064 return this; 23065 } 23066 data = this.__data__ = new MapCache(pairs); 23067 } 23068 data.set(key, value); 23069 this.size = data.size; 23070 return this; 23071} 23072function Stack(entries) { 23073 var data = this.__data__ = new ListCache(entries); 23074 this.size = data.size; 23075} 23076Stack.prototype.clear = stackClear; 23077Stack.prototype["delete"] = stackDelete; 23078Stack.prototype.get = stackGet; 23079Stack.prototype.has = stackHas; 23080Stack.prototype.set = stackSet; 23081var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; 23082var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module; 23083var moduleExports = freeModule && freeModule.exports === freeExports; 23084var Buffer$1 = moduleExports ? root.Buffer : void 0; 23085Buffer$1 ? Buffer$1.allocUnsafe : void 0; 23086function cloneBuffer(buffer2, isDeep) { 23087 { 23088 return buffer2.slice(); 23089 } 23090} 23091function arrayFilter(array, predicate) { 23092 var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; 23093 while (++index2 < length) { 23094 var value = array[index2]; 23095 if (predicate(value, index2, array)) { 23096 result[resIndex++] = value; 23097 } 23098 } 23099 return result; 23100} 23101function stubArray() { 23102 return []; 23103} 23104var objectProto$1 = Object.prototype; 23105var propertyIsEnumerable = objectProto$1.propertyIsEnumerable; 23106var nativeGetSymbols = Object.getOwnPropertySymbols; 23107var getSymbols = !nativeGetSymbols ? stubArray : function(object) { 23108 if (object == null) { 23109 return []; 23110 } 23111 object = Object(object); 23112 return arrayFilter(nativeGetSymbols(object), function(symbol) { 23113 return propertyIsEnumerable.call(object, symbol); 23114 }); 23115}; 23116function baseGetAllKeys(object, keysFunc, symbolsFunc) { 23117 var result = keysFunc(object); 23118 return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); 23119} 23120function getAllKeys(object) { 23121 return baseGetAllKeys(object, keys, getSymbols); 23122} 23123var DataView$1 = getNative(root, "DataView"); 23124var Promise$1 = getNative(root, "Promise"); 23125var Set$1 = getNative(root, "Set"); 23126var mapTag$3 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]"; 23127var dataViewTag$2 = "[object DataView]"; 23128var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1); 23129var getTag$2 = baseGetTag; 23130if (DataView$1 && getTag$2(new DataView$1(new ArrayBuffer(1))) != dataViewTag$2 || Map$1 && getTag$2(new Map$1()) != mapTag$3 || Promise$1 && getTag$2(Promise$1.resolve()) != promiseTag || Set$1 && getTag$2(new Set$1()) != setTag$3 || WeakMap$1 && getTag$2(new WeakMap$1()) != weakMapTag$1) { 23131 getTag$2 = function(value) { 23132 var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorStr
23132ing = Ctor ? toSource(Ctor) : ""; 23133 if (ctorString) { 23134 switch (ctorString) { 23135 case dataViewCtorString: 23136 return dataViewTag$2; 23137 case mapCtorString: 23138 return mapTag$3; 23139 case promiseCtorString: 23140 return promiseTag; 23141 case setCtorString: 23142 return setTag$3; 23143 case weakMapCtorString: 23144 return weakMapTag$1; 23145 } 23146 } 23147 return result; 23148 }; 23149} 23150var objectProto = Object.prototype; 23151var hasOwnProperty = objectProto.hasOwnProperty; 23152function initCloneArray(array) { 23153 var length = array.length, result = new array.constructor(length); 23154 if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) { 23155 result.index = array.index; 23156 result.input = array.input; 23157 } 23158 return result; 23159} 23160var Uint8Array$1 = root.Uint8Array; 23161function cloneArrayBuffer(arrayBuffer) { 23162 var result = new arrayBuffer.constructor(arrayBuffer.byteLength); 23163 new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer)); 23164 return result; 23165} 23166function cloneDataView(dataView, isDeep) { 23167 var buffer2 = cloneArrayBuffer(dataView.buffer); 23168 return new dataView.constructor(buffer2, dataView.byteOffset, dataView.byteLength); 23169} 23170var reFlags = /\w*$/; 23171function cloneRegExp(regexp) { 23172 var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); 23173 result.lastIndex = regexp.lastIndex; 23174 return result; 23175} 23176var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; 23177function cloneSymbol(symbol) { 23178 return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; 23179} 23180function cloneTypedArray(typedArray, isDeep) { 23181 var buffer2 = cloneArrayBuffer(typedArray.buffer); 23182 return new typedArray.constructor(buffer2, typedArray.byteOffset, typedArray.length); 23183} 23184var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]"; 23185var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]"; 23186function initCloneByTag(object, tag, isDeep) { 23187 var Ctor = object.constructor; 23188 switch (tag) { 23189 case arrayBufferTag$1: 23190 return cloneArrayBuffer(object); 23191 case boolTag$1: 23192 case dateTag$1: 23193 return new Ctor(+object); 23194 case dataViewTag$1: 23195 return cloneDataView(object); 23196 case float32Tag$1: 23197 case float64Tag$1: 23198 case int8Tag$1: 23199 case int16Tag$1: 23200 case int32Tag$1: 23201 case uint8Tag$1: 23202 case uint8ClampedTag$1: 23203 case uint16Tag$1: 23204 case uint32Tag$1: 23205 return cloneTypedArray(object); 23206 case mapTag$2: 23207 return new Ctor(); 23208 case numberTag$1: 23209 case stringTag$1: 23210 return new Ctor(object); 23211 case regexpTag$1: 23212 return cloneRegExp(object); 23213 case setTag$2: 23214 return new Ctor(); 23215 case symbolTag$1: 23216 return cloneSymbol(object); 23217 } 23218} 23219function initCloneObject(object) { 23220 return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {}; 23221} 23222var mapTag$1 = "[object Map]"; 23223function baseIsMap(value) { 23224 return isObjectLike$2(value) && getTag$2(value) == mapTag$1; 23225} 23226var nodeIsMap = nodeUtil && nodeUtil.isMap; 23227var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; 23228var setTag$1 = "[object Set]"; 23229function baseIsSet(value) { 23230 return isObjectLike$2(value) && getTag$2(value) == setTag$1; 23231} 23232var nodeIsSet = nodeUtil && nodeUtil.isSet; 23233var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; 23234var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]"; 23235var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array
23235]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]"; 23236var cloneableTags = {}; 23237cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; 23238cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; 23239function baseClone(value, bitmask, customizer, key, object, stack2) { 23240 var result; 23241 if (result !== void 0) { 23242 return result; 23243 } 23244 if (!isObject$1(value)) { 23245 return value; 23246 } 23247 var isArr = isArray(value); 23248 if (isArr) { 23249 result = initCloneArray(value); 23250 } else { 23251 var tag = getTag$2(value), isFunc = tag == funcTag || tag == genTag; 23252 if (isBuffer(value)) { 23253 return cloneBuffer(value); 23254 } 23255 if (tag == objectTag || tag == argsTag || isFunc && !object) { 23256 result = isFunc ? {} : initCloneObject(value); 23257 } else { 23258 if (!cloneableTags[tag]) { 23259 return object ? value : {}; 23260 } 23261 result = initCloneByTag(value, tag); 23262 } 23263 } 23264 stack2 || (stack2 = new Stack()); 23265 var stacked = stack2.get(value); 23266 if (stacked) { 23267 return stacked; 23268 } 23269 stack2.set(value, result); 23270 if (isSet(value)) { 23271 value.forEach(function(subValue) { 23272 result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack2)); 23273 }); 23274 } else if (isMap(value)) { 23275 value.forEach(function(subValue, key2) { 23276 result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack2)); 23277 }); 23278 } 23279 var keysFunc = getAllKeys; 23280 var props = isArr ? void 0 : keysFunc(value); 23281 arrayEach(props || value, function(subValue, key2) { 23282 if (props) { 23283 key2 = subValue; 23284 subValue = value[key2]; 23285 } 23286 assignValue(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack2)); 23287 }); 23288 return result; 23289} 23290var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4; 23291function cloneDeep(value) { 23292 return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); 23293} 23294var FUNC_ERROR_TEXT = "Expected a function"; 23295var WRAP_CURRY_FLAG = 8, WRAP_PARTIAL_FLAG = 32, WRAP_ARY_FLAG = 128, WRAP_REARG_FLAG = 256; 23296function createFlow(fromRight) { 23297 return flatRest(function(funcs) { 23298 var length = funcs.length, index2 = length, prereq = LodashWrapper.prototype.thru; 23299 while (index2--) { 23300 var func = funcs[index2]; 23301 if (typeof func != "function") { 23302 throw new TypeError(FUNC_ERROR_TEXT); 23303 } 23304 if (prereq && !wrapper && getFuncName(func) == "wrapper") { 23305 var wrapper = new LodashWrapper([], true); 23306 } 23307 } 23308 index2 = wrapper ? index2 : length; 23309 while (++index2 < length) { 23310 func = funcs[index2]; 23311 var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : void 0; 23312 if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) { 23313 wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]); 23314 } else { 23315 wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func); 23316 } 23317 } 23318 return function() { 23319 var args = arguments, value = args[0]; 23320 if (wrapper && args.length == 1 && isArray(value)) { 23321 return wrapper.plant(value).value(); 23322 } 23323 var index3 = 0, result = length ? funcs[index3].apply(this, args) : value; 23324 while (++index3 < length) { 23325 result = funcs[index3].call(this, result); 23326 } 23327 return result; 23328 }; 23329 }); 23330} 23331var flow = createFlow(); 23332function isNil(value) { 23333 return value == null; 23334} 23335var kebabCase = createCompounder(function(result, word, index2) { 23336 return result + (index2 ? "-" : "") + word.toLowerCase(); 23337}); 23338var htmlUnescapes = { 23339 "&": "&", 23340 "<": "<", 23341 ">": ">", 23342 """: '"', 23343 "'": "'" 23344}; 23345var unescapeHtmlChar = basePropertyOf(htmlUnescapes); 23346var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, reHasEscapedHtml = RegExp(reEscapedHtml.source); 23347function unescape$1(string) { 23348 string = toString2(string); 23349 return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string; 23350} 23351const isContentLibraryPath = (path) => Boolean(path == null ? void 0 : path.includes("/library/content")); 23352const isEmpty$1 = (value) => { 23353 if (value == null) return true; 23354 if (Array.isArray(value) || typeof value === "string") { 23355 return value.length === 0; 23356 } 23357 if (typeof value === "object") { 23358 return Object.keys(value).length === 0; 23359 } 23360 return false;
23361}; 23362const renderData = (value, object) => { 23363 if (typeof value !== "string") return null; 23364 if (value.replace(/(^<\w*>)|(<\/\w*>$)/gi, "")) { 23365 const hasAllBrackets = ["{{", "}}"].every( 23366 (item) => value.includes(item) 23367 ); 23368 try { 23369 return hasAllBrackets ? mustache.render(value, object) : value; 23370 } catch (err) { 23371 console.error("Rendering crashed:", err.message); 23372 } 23373 } else { 23374 return null; 23375 } 23376}; 23377const PLACEHOLDER_PHOTO_FALLBACK = "/img/Profile_Image_Empty.svg"; 23378const resolvePlaceholderPhotoUrl = (store) => { 23379 var _a, _b, _c, _d, _e, _f, _g; 23380 const contentLibraryPreview = (_c = (_b = (_a = store == null ? void 0 : store.state) == null ? void 0 : _a.settings) == null ? void 0 : _b.featureFlags) == null ? void 0 : _c.ContentLibraryPreview; 23381 if (!contentLibraryPreview) { 23382 return PLACEHOLDER_PHOTO_FALLBACK; 23383 } 23384 const placeholders = ((_e = (_d = store == null ? void 0 : store.state) == null ? void 0 : _d.cms) == null ? void 0 : _e.componentPlaceholderContent) || {}; 23385 const photoMedia = placeholders.photoURLProfile; 23386 if (photoMedia && typeof photoMedia === "object" && photoMedia.id && photoMedia.contentType) { 23387 const path = (_g = (_f = store.getters) == null ? void 0 : _f["cms/getCmsMediaPath"]) == null ? void 0 : _g.call(_f, photoMedia); 23388 return path || PLACEHOLDER_PHOTO_FALLBACK; 23389 } 23390 if (typeof photoMedia === "string") { 23391 return photoMedia; 23392 } 23393 return (photoMedia == null ? void 0 : photoMedia.name) ?? PLACEHOLDER_PHOTO_FALLBACK; 23394}; 23395const sitePath = (store) => { 23396 var _a, _b, _c, _d, _e, _f, _g; 23397 if ((_a = store == null ? void 0 : store.state) == null ? void 0 : _a.site) { 23398 const builderSite = store.state.site.workingSite; 23399 const generatorSite = store.state.site; 23400 const site = builderSite || generatorSite; 23401 const contentLibraryPreview = (_d = (_c = (_b = store.state) == null ? void 0 : _b.settings) == null ? void 0 : _c.featureFlags) == null ? void 0 : _d.ContentLibraryPreview; 23402 let isContentLibrary = false; 23403 try { 23404 const route = useRoute == null ? void 0 : useRoute(); 23405 isContentLibrary = isContentLibraryPath(route == null ? void 0 : route.path) ?? false; 23406 } catch (_) { 23407 } 23408 const shouldUsePlaceholders = contentLibraryPreview && (isContentLibrary || isEmpty$1((_e = site == null ? void 0 : site.user) == null ? void 0 : _e.ddcUserData)); 23409 if (shouldUsePlaceholders) { 23410 const { footer, ...placeholders } = ((_g = (_f = store.state) == null ? void 0 : _f.cms) == null ? void 0 : _g.componentPlaceholderContent) || {}; 23411 if (!isEmpty$1(placeholders)) { 23412 const photoURLProfile = resolvePlaceholderPhotoUrl(store); 23413 return { 23414 ...site, 23415 user: { 23416 ...site == null ? void 0 : site.user, 23417 ddcUserData: { 23418 ...placeholders, 23419 photoURLProfile 23420 } 23421 }, 23422 footer: { 23423 ...site == null ? void 0 : site.footer, 23424 ...footer, 23425 showDisclosures: isContentLibrary 23426 } 23427 }; 23428 } 23429 } 23430 return site; 23431 } 23432}; 23433const formatName = (name, ddcUserData) => { 23434 const firstName = ddcUserData == null ? void 0 : ddcUserData.mktrLglFirstNm; 23435 const preferredFirstName = ddcUserData == null ? void 0 : ddcUserData.mktrPrefFirstNm; 23436 const mktrPrefFirstNmRegex = /"[^"]*"/gi; 23437 if (preferredFirstName && firstName !== preferredFirstName) return name; 23438 return name == null ? void 0 : name.replace(mktrPrefFirstNmRegex, ""); 23439}; 23440const storageRoot = (config) => { 23441 const { storageURL } = (config == null ? void 0 : config.public) ?? {}; 23442 return typeof storageURL === "string" ? storageURL : null; 23443}; 23444const generateFallbackLogoURL = (brandId) => { 23445 const root2 = storageRoot(/* @__PURE__ */ useRuntimeConfig()); 23446 if (root2 === null || !brandId) return null; 23447 return `${root2}/brands/${brandId}/uploads/logos/default`; 23448}; 23449function useShowExpiredPresetId(getters) { 23450 return computed( 23451 () => { 23452 var _a; 23453 return ((_a = getters["settings/getFeatureFlag"]) == null ? void 0 : _a.call(getters, "ShowExpiredPresetId")) === true; 23454 } 23455 ); 23456} 23457function getPresetId(item) { 23458 return (item == null ? void 0 : item.presetId) ?? (item == null ? void 0 : item.id); 23459} 23460function useIsExpired(settings, itemCheckFunction) { 23461 const store = useStore(); 23462 const { getters } = store; 23463 const resolveSettings = () => typeof settings === "function" ? settings() : settings; 23464 const isExpired = computed(() => { 23465 var _a; 23466 return getters["library/isExpired"]( 23467 (_a = resolveSettings()) == null ? void 0 : _a.contentLibraryItems, 23468 itemCheckFunction 23469 ); 23470 }); 23471 const showExpiredPresetId = useShowExpiredPresetId(getters); 23472 const expiredPresetId = computed(() => { 23473 var _a, _b; 23474 if (!showExpiredPresetId.value) return void 0; 23475 const expiredItem = (_b = (_a = resolveSettings()) == null ? void 0 : _a.contentLibraryItems) == null ? void 0 : _b.find( 23476 (item) => getters["library/isContentExpired"](item == null ? void 0 : item.id, item) && itemCheckFunction(item) 23477 ); 23478 return getPresetId(expiredItem); 23479 }); 23480 const processExpiredLinks = (htmlContent) => { 23481 if (!htmlContent || typeof htmlContent !== "string" || typeof document === "undefined" || false) { 23482 return htmlContent; 23483 } 23484 setTimeout(() => { 23485 const domLinks = document.querySelectorAll("a[preset-id]"); 23486 domLinks.forEach((link) => { 23487 const presetId = link.getAttribute("preset-id"); 23488 if (presetId) { 23489 const presetIdNum = parseInt(presetId); 23490 if (getters["library/isPresetExpired"](presetIdNum)) { 23491 link.removeAttribute("href"); 23492 } 23493 } 23494 }); 23495 }, 0); 23496 return htmlContent; 23497 }; 23498 return { 23499 isExpired, 23500 expiredPresetId, 23501 processExpiredLinks 23502 }; 23503} 23504function useIsPresetExpired(settings) { 23505 const store = useStore(); 23506 const { getters, state } = store; 23507 const isExpired = computed(() => { 23508 var _a, _b; 23509 const presetId = settings == null ? void 0 : settings.presetId; 23510 const isPresetExpired = getters["library/isPresetExpired"](presetId); 23511 if (isPresetExpired) return true; 23512 const evaluateArticlesAsCLItems = (_b = (_a = state == null ? void 0 : state.settings) == null ? void 0 : _a.featureFlags) == null ? void 0 : _b.EvaluateArticlesAsCLItems;
23513 if (evaluateArticlesAsCLItems && (settings == null ? void 0 : settings.type) === "article" && (settings == null ? void 0 : settings.id)) { 23514 return getters["library/isContentExpired"](settings.id, settings); 23515 } 23516 return false; 23517 }); 23518 const showExpiredPresetId = useShowExpiredPresetId(getters); 23519 const expiredPresetId = computed(() => { 23520 if (!showExpiredPresetId.value || !isExpired.value) return void 0; 23521 return getPresetId(settings); 23522 }); 23523 return { 23524 isExpired, 23525 expiredPresetId 23526 }; 23527} 23528const _hoisted_1$4o = { 23529 key: 1, 23530 "data-testid": "expired-block", 23531 class: "block__body" 23532}; 23533const _hoisted_2$3_ = ["data-expired-preset-id"]; 23534const _sfc_main$4x = { 23535 __name: "CoreBlock", 23536 props: { 23537 index: { 23538 type: Number, 23539 default: 0 23540 }, 23541 disableLink: { 23542 type: Boolean, 23543 default: false 23544 }, 23545 isEditable: { 23546 type: Boolean, 23547 default: false 23548 }, 23549 nestedLevel: { 23550 type: Number, 23551 default: 0 23552 }, 23553 settings: { 23554 type: Object, 23555 required: true 23556 }, 23557 isBuilderMobile: { 23558 type: Boolean, 23559 default: false 23560 }, 23561 isFirstPageLevelBlock: { 23562 type: Boolean, 23563 default: void 0 23564 }, 23565 isFirstPageLevelPosition: { 23566 type: Boolean, 23567 default: void 0 23568 }, 23569 // Builder-only: forwarded to editable block renderers (e.g. rich text) 23570 // to enable inline canvas editing. Defaults off so SiteViewer is
23570inert. 23571 inlineEditable: { 23572 type: Boolean, 23573 default: false 23574 }, 23575 // Builder-only: whether inline editing is currently active for this block. 23576 inlineEditing: { 23577 type: Boolean, 23578 default: false 23579 } 23580 }, 23581 setup(__props) { 23582 const props = __props; 23583 const store = useStore(); 23584 const route = useRoute(); 23585 const blockRootRef = ref(null); 23586 const setBlockRootRef = (element) => { 23587 if (!element) { 23588 blockRootRef.value = null; 23589 return; 23590 } 23591 blockRootRef.value = element.$el ?? element; 23592 }; 23593 const dataSite = computed(() => sitePath(store)); 23594 const scrollAnimationExcluded = inject(SCROLL_ANIMATION_EXCLUDED_KEY, false); 23595 const siteScrollAnimation = inject("siteScrollAnimation", null); 23596 const builderPreviewRoot = inject("siteScrollAnimationPreviewRoot", null); 23597 const siteScrollAnimationConfig = computed(() => { 23598 var _a, _b, _c; 23599 const source = siteScrollAnimation; 23600 const injected = unref(source); 23601 const siteRecord = ((_b = (_a = store.state) == null ? void 0 : _a.site) == null ? void 0 : _b.workingSite) ?? ((_c = store.state) == null ? void 0 : _c.site) ?? null; 23602 return { 23603 ...getSiteAnimationSettingsFromRecord(siteRecord), 23604 ...injected || {} 23605 }; 23606 }); 23607 const builderPreviewToken = computed(() => { 23608 var _a, _b; 23609 if (!props.isEditable) { 23610 return 0; 23611 } 23612 return ((_b = (_a = store.state) == null ? void 0 : _a.site) == null ? void 0 : _b.animationPreviewGeneration) ?? 0; 23613 }); 23614 const isScrollAnimatableBlock = computed( 23615 () => { 23616 var _a; 23617 return !scrollAnimationExcluded && isScrollAnimatableBlockType((_a = props.settings) == null ? void 0 : _a.type); 23618 } 23619 ); 23620 const siteAnimationsFeatureEnabled = computed( 23621 () => { 23622 var _a, _b; 23623 return ((_b = (_a = store.getters) == null ? void 0 : _a["settings/getFeatureFlag"]) == null ? void 0 : _b.call(_a, "SiteAnimations")) === true; 23624 } 23625 ); 23626 const { scrollAnimationClasses } = useScrollAnimation(blockRootRef, { 23627 enabled: isScrollAnimatableBlock, 23628 animationStyle: computed( 23629 () => { 23630 var _a; 23631 return (_a = siteScrollAnimationConfig.value) == null ? void 0 : _a.animationStyle; 23632 } 23633 ), 23634 animationSpeed: computed( 23635 () => { 23636 var _a; 23637 return (_a = siteScrollAnimationConfig.value) == null ? void 0 : _a.animationSpeed; 23638 } 23639 ), 23640 siteMobileAnimationsEnabled: computed( 23641 () => { 23642 var _a; 23643 return ((_a = siteScrollAnimationConfig.value) == null ? void 0 : _a.animationEnabledOnMobile) === true; 23644 } 23645 ), 23646 isEditable: computed(() => props.isEditable), 23647 isCompliance: computed(() => { 23648 var _a; 23649 return (_a = route == null ? void 0 : route.name) == null ? void 0 : _a.includes("compliance"); 23650 }), 23651 siteAnimationsFeatureEnabled, 23652 isBuilderMobile: computed(() => props.isBuilderMobile), 23653 builderPreviewToken, 23654 builderPreviewRoot 23655 }); 23656 const useBrandSpecificComponents = inject("useBrandSpecificComponents", false); 23657 const { componentModule } = useLoadComponent(props, { 23658 useBrandSpecificComponents 23659 }); 23660 const { classes: emptyComponentClasses } = useEmptyComponent(props == null ? void 0 : props.settings); 23661 const { isExpired, expiredPresetId } = useIsPresetExpired(props.settings); 23662 const { 23663 offsetMode: navOffsetMode, 23664 navOffsetStyle, 23665 navBarHeightSize, 23666 isStackedRightNav, 23667 isFirstPageLevelBlock: resolvedIsFirstPageLevelBlock, 23668 isNavHidden 23669 } = useBlockNavOffset(props); 23670 const displayLinkProperties = computed( 23671 () => { 23672 var _a, _b, _c; 23673 return !!(((_a = props.settings) == null ? void 0 : _a.displayLinkProperties) || ((_b = props.settings) == null ? void 0 : _b["image-link"]) || ((_c = props.settings) == null ? void 0 : _c.linkInternal)); 23674 } 23675 ); 23676 const internalLink = computed(() => { 23677 var _a; 23678 const url = (_a = props.settings) == null ? void 0 : _a.linkUrl; 23679 return isObject$1(url) || !!(url == null ? void 0 : url.startsWith("/")); 23680 }); 23681 const blockTag = computed(() => { 23682 var _a; 23683 if (displayLinkProperties.value && ((_a = props.settings) == null ? void 0 : _a.linkUrl) && !props.isEditable) { 23684 return internalLink.value ? __nuxt_component_2$5 : "a"; 23685 } 23686 return "div"; 23687 }); 23688 const linkUrl = computed(() => { 23689 var _a, _b, _c, _d; 23690 if (props.disableLink) { 23691 return ""; 23692 } 23693 if (isObject$1((_a = props.settings) == null ? void 0 : _a.linkUrl)) { 23694 return props.settings.linkUrl; 23695 } 23696 if (((_c = (_b = props.settings) == null ? void 0 : _b.linkUrl) == null ? void 0 : _c.charAt(0)) === "#") { 23697 return { 23698 hash: props.settings.linkUrl, 23699 path: route.path 23700 }; 23701 } 23702 return (_d = props.settings) == null ? void 0 : _d.linkUrl; 23703 }); 23704 const linkTarget = computed(() => { 23705 var _a, _b; 23706 if (((_a = props.settings) == null ? void 0 : _a.newWindowLink) === void 0) { 23707 return ((_b = props.settings) == null ? void 0 : _b.linkInternal) ? "_self" : "_blank"; 23708 } 23709 return props.settings.newWindowLink ? "_blank" : "_self"; 23710 }); 23711 const blockId = computed(() => props.settings.id); 23712 const blockStyle = computed(() => { 23713 const styleSetting = props.settings.style || ""; 23714 return [styleSetting].join("\n").replaceAll("#id", `#${blockId.value}`); 23715 }); 23716 const blockType = computed(() => props.settings.type); 23717 const NAV_OFFSET_AWARE_BLOCK_TYPES = [ 23718 "rows", 23719 "columns", 23720 "grid", 23721 "container", 23722 "heroComponent" 23723 ]; 23724 const navOffsetForwardedProps = computed(() => { 23725 if (!NAV_OFFSET_AWARE_BLOCK_TYPES.includes(blockType.value)) return {}; 23726 return { 23727 isFirstPageLevelBlock: resolvedIsFirstPageLevelBlock.value, 23728 isFirstPageLevelPosition: props.isFirstPageLevelPosition 23729 }; 23730 }); 23731 const forwardedProps = computed(() => { 23732 if (!props.inlineEditable && !props.inlineEditing) { 23733 return navOffsetForwardedProps.value; 23734 } 23735 return { 23736 ...navOffsetForwardedProps.value, 23737 inlineEditable: props.inlineEditable, 23738 inlineEditing: props.inlineEditing 23739 }; 23740 }); 23741 const isCompliance = computed(() => { 23742 var _a; 23743 return (_a = route == null ? void 0 : route.name) == null ? void 0 : _a.includes("compliance"); 23744 }); 23745 const CORNER_RADIUS_VARIANT_KEYS = ["corner-radius", "per-column-corners"]; 23746 const cornerRadiusEnabled = computed( 23747 () => { 23748 var _a, _b; 23749 return ((_b = (_a = store.getters) == null ? void 0 : _a["settings/getFeatureFlag"]) == null ? void 0 : _b.call( 23750 _a, 23751 "BuilderEnhCornerRadius" 23752 )) === true; 23753 } 23754 ); 23755 const blockVariants = computed(() => { 23756 const variants = []; 23757 if (props.settings.variants) { 23758 for (const [variantKey, variantValue] of Object.entries( 23759 props.settings.variants 23760 )) { 23761 if (!cornerRadiusEnabled.value && CORNER_RADIUS_VARIANT_KEYS.includes(variantKey)) { 23762 continue; 23763 } 23764 if (variantKey !== "_custom") { 23765 if (variantValue === true) { 23766 variants.push(variantKey); 23767 } else { 23768 variants.push(variantValue); 23769 } 23770 } 23771 } 23772 } 23773 if (!variants.length) { 23774 variants.push("base"); 23775 } 23776 return variants; 23777 }); 23778 const blockClasses = computed(() => { 23779 var _a; 23780 const classList = ["block", `block_${blockType.value}`]; 23781 blockVariants.value.forEach((variant) => { 23782 if (variant) { 23783 classList.push(`block_${blockType.value}_${variant}`); 23784 } 23785 }); 23786 if ((_a = props.settings.variants) == null ? void 0 : _a._custom) { 23787 classList.push(props.settings.variants._custom.split(" ")); 23788 } 23789 if (!isCompliance.value) { 23790 classList.push(...emptyComponentClasses.value); 23791 } 23792 if ((props == null ? void 0 : props.settings.type) == "repeat" && !props.settings.dictionaryId) { 23793 classList.push(["repeat_without_source"]); 23794 }
23795 if (navOffsetMode.value !== "none") { 23796 classList.push(`block--nav-offset_${navOffsetMode.value}`); 23797 if (navOffsetStyle.value === "transparent") { 23798 classList.push("block--nav-offset-style_transparent"); 23799 } 23800 if (navBarHeightSize.value) { 23801 classList.push( 23802 `block--nav-offset-height_${navBarHeightSize.value}` 23803 ); 23804 } 23805 if (isStackedRightNav.value) { 23806 classList.push("block--nav-offset-stacked-right"); 23807 } 23808 } 23809 return classList; 23810 }); 23811 const blockClassesWithAnimation = computed(() => [ 23812 ...blockClasses.value, 23813 ...scrollAnimationClasses.value 23814 ]); 23815 const linkProps = computed(() => { 23816 if (!displayLinkProperties.value) return {}; 23817 return internalLink.value ? { to: linkUrl.value, target: linkTarget.value } : { href: linkUrl.value, target: linkTarget.value }; 23818 }); 23819 const relAttributes = computed(() => { 23820 var _a, _b, _c, _d; 23821 const featureEnabled = (_c = (_b = (_a = store.state) == null ? void 0 : _a.settings) == null ? void 0 : _b.featureFlags) == null ? void 0 : _c.SeoLinkRelAttributes; 23822 if (!featureEnabled) return null; 23823 if (!((_d = props.settings) == null ? void 0 : _d["image-link"])) return null; 23824 if (Array.isArray(props.settings.relAttributes) && props.settings.relAttributes.length > 0) { 23825 return props.settings.relAttributes.join(" "); 23826 } 23827 if (linkTarget.value === "_blank") { 23828 return "noopener noreferrer"; 23829 } 23830 return null; 23831 }); 23832 return (_ctx, _cache) => { 23833 return !unref(isExpired) && !unref(isNavHidden) ? (openBlock(), createBlock(resolveDynamicComponent(blockTag.value), mergeProps({ 23834 key: 0, 23835 id: blockId.value, 23836 ref: setBlockRootRef, 23837 target: linkTarget.value, 23838 class: blockClassesWithAnimation.value 23839 }, linkProps.value, { rel: relAttributes.value }), { 23840 default: withCtx(() => [ 23841 (openBlock(), createBlock(resolveDynamicComponent(unref(componentModule)), mergeProps({ 23842 settings: __props.settings, 23843 "nested-level": __props.nestedLevel, 23844 index: __props.index, 23845 "is-editable": __props.isEditable, 23846 "data-site": dataSite.value, 23847 "is-builder-mobile": __props.isBuilderMobile 23848 }, forwardedProps.value), createSlots({ _: 2 }, [ 23849 _ctx.$slots["inline-editor"] ? { 23850 name: "inline-editor", 23851 fn: withCtx((slotData) => [ 23852 renderSlot(_ctx.$slots, "inline-editor", normalizeProps$1(guardReactiveProps(slotData))) 23853 ]), 23854 key: "0" 23855 } : void 0 23856 ]), 1040, ["settings", "nested-level", "index", "is-editable", "data-site", "is-builder-mobile"])), 23857 renderSlot(_ctx.$slots, "controls"), 23858 blockStyle.value ? (openBlock(), createBlock(resolveDynamicComponent("style"), { key: 0 }, { 23859 default: withCtx(() => [ 23860 createTextVNode(toDisplayString(blockStyle.value), 1) 23861 ]), 23862 _: 1 23863 })) : createCommentVNode("", true) 23864 ]), 23865 _: 3 23866 }, 16, ["id", "target", "class", "rel"])) : unref(isExpired) ? (openBlock(), createElementBlock("div", _hoisted_1$4o, [ 23867 createBaseVNode("div", { 23868 class: "expired-content", 23869 "data-expired-preset-id": unref(expiredPresetId) 23870 }, null, 8, _hoisted_2$3_) 23871 ])) : createCommentVNode("", true); 23872 }; 23873 } 23874}; 23875const CoreBlock = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 23876 __proto__: null, 23877 default: _sfc_main$4x 23878}, Symbol.toStringTag, { value: "Module" })); 23879const _sfc_main$4w = { 23880 name: "CoreBlockCalendly", 23881 props: { 23882 settings: { 23883 type: Object, 23884 required: true 23885 }, 23886 isEditable: { 23887 type: Boolean, 23888 default: false 23889 } 23890 }, 23891 computed: { 23892 calendlyUrl() { 23893 let eventType = this.settings.eventType; 23894 let calURL = ""; 23895 if (eventType === "Custom Event") { 23896 calURL = `https://calendly.com/${this.settings.calendlyId}/${this.customEvent}?utm_campaign=marketing&utm_source=agentwebsites`; 23897 } else if (eventType) { 23898 eventType = eventType.toLowerCase().replace(/\s/g, ""); 23899 calURL = `https://calendly.com/${this.settings.calendlyId}/${eventType}?utm_campaign=marketing&utm_source=agentwebsites`; 23900 } else { 23901 calURL = `https://calendly.com/${this.settings.calendlyId}/?utm_campaign=marketing&utm_source=agentwebsites`; 23902 } 23903 return calURL; 23904 }, 23905 customEvent() { 23906 const customEvent = this.settings.customEvent; 23907 const eventType = this.settings.eventType; 23908 if (customEvent && eventType === "Custom Event") { 23909 return customEvent; 23910 } 23911 switch (eventType) { 23912 case "General Discussion":
23913 return "generaldiscussion"; 23914 case "Intro Appointment": 23915 return "introappointment"; 23916 case "Review": 23917 return "review"; 23918 case "Intro to NYL": 23919 return "introtonyl"; 23920 case "Quick Checkin": 23921 return "quickcheckin"; 23922 case "First Interview": 23923 return "firstinterview"; 23924 default: 23925 return ""; 23926 } 23927 }, 23928 buttonText() { 23929 return this.settings.buttonText; 23930 }, 23931 getDisplayType() { 23932 return this.settings.displayType; 23933 }, 23934 primaryBtn() { 23935 return { 23936 type: "button", 23937 label: this.buttonText, 23938 newTab: this.settings.primaryBtnNewTab, 23939 event: this.showPopUp 23940 }; 23941 } 23942 }, 23943 methods: { 23944 showPopUp() { 23945 this.GTMCalendly(); 23946 { 23947 window.Calendly.showPopupWidget(this.calendlyUrl); 23948 this.setCalendlyAttributes(this.settings.iframeTitle); 23949 this.addModalListener(); 23950 this.focusPopup(); 23951 } 23952 return false; 23953 }, 23954 focusPopup() { 23955 const container = document.querySelector(".calendly-popup-content"); 23956 if (!container) { 23957 return; 23958 } 23959 const button = document.createElement("button"); 23960 container.prepend(button); 23961 button.focus(); 23962 button.remove(); 23963 }, 23964 setCalendlyAttributes(title) { 23965 var _a; 23966 const iframes = document.querySelectorAll("iframe"); 23967 for (const iframe of iframes) {
23968 if ((_a = iframe.src) == null ? void 0 : _a.includes("https://calendly.com")) { 23969 iframe.setAttribute( 23970 "title", 23971 title || "default-calendly-title" 23972 ); 23973 } 23974 } 23975 document.querySelector(".calendly-popup-close").setAttribute("tabIndex", "0"); 23976 }, 23977 closeModalKeyHandler(event) { 23978 if (event.key === "Escape" || event.keyCode === 27) { 23979 this.closeCalendlyModal(); 23980 } 23981 }, 23982 closeCalendlyModal() { 23983 window.Calendly.closePopupWidget(); 23984 document.removeEventListener( 23985 "keydown", 23986 this.closeModalKeyHandler, 23987 true 23988 ); 23989 }, 23990 addModalListener() { 23991 document.addEventListener( 23992 "keydown", 23993 this.closeModalKeyHandler, 23994 true 23995 ); 23996 }, 23997 GTMCalendly() { 23998 const { eventType, calendlyId } = this.decodeCalendlyUrl( 23999 this.settings.url 24000 ); 24001 this.$gtm.push({ 24002 event: "nyl-calendly", 24003 calendly_id: calendlyId, 24004 calendly_category: this.getCalendlyCategory(eventType), 24005 event_type: eventType, 24006 calendly_event_id: eventType == null ? void 0 : eventType.toLowerCase().replace(/\s/g, ""), 24007 click_url: this.settings.url 24008 }); 24009 }, 24010 decodeCalendlyUrl(url) { 24011 if (!url || typeof url !== "string" || url.trim() === "") { 24012 return { 24013 eventType: null, 24014 calendlyId: null 24015 }; 24016 } 24017 try { 24018 const urlObj = new URL(url); 24019 const pathParts = urlObj.pathname.split("/").filter((part) => part !== ""); 24020 const calendlyId = pathParts[0] || null; 24021 let eventType = ""; 24022 if (pathParts.length > 1) { 24023 eventType = decodeURIComponent(pathParts[1]); 24024 } 24025 if (!eventType || eventType.includes("utm_campaign") && eventType.includes("utm_source")) { 24026 eventType = null; 24027 } 24028 return { 24029 eventType, 24030 calendlyId 24031 }; 24032 } catch (error) { 24033 console.error("Invalid Calendly URL:", error); 24034 return { 24035 eventType: null, 24036 calendlyId: null 24037 }; 24038 } 24039 }, 24040 getCalendlyCategory(eventType) { 24041 var calendlyCategory = ""; 24042 switch (eventType) { 24043 case "Custom Event": 24044 calendlyCategory = "custom"; 24045 break; 24046 case "General Discussion": 24047 case "Intro Appointment": 24048 case "Review": 24049 calendlyCategory = "agent"; 24050 break; 24051 case "Intro to NYL": 24052 case "Quick Checkin": 24053 case "First Interview": 24054 calendlyCategory = "GO"; 24055 break; 24056 } 24057 return calendlyCategory; 24058 } 24059 } 24060}; 24061function _sfc_render$3V(_ctx, _cache, $props, $setup, $data, $options) { 24062 const _component_CoreBlock = _sfc_main$4x; 24063 return openBlock(), createElementBlock("div", null, [ 24064 $options.getDisplayType === "Button" ? (openBlock(), createBlock(_component_CoreBlock, { 24065 key: 0, 24066 settings: $options.primaryBtn, 24067 class: "primary-button", 24068 "is-editable": $props.isEditable 24069 }, null, 8, ["settings", "is-editable"])) : createCommentVNode("", true), 24070 $options.getDisplayType === "Link" ? (openBlock(), createElementBlock("a", { 24071 key: 1, 24072 class: "calendly__link", 24073 tabindex: "0", 24074 role: "button", 24075 onKeydown: _cache[0] || (_cache[0] = withKeys((...args) => $options.showPopUp && $options.showPopUp(...args), ["enter"])), 24076 onClick: _cache[1] || (_cache[1] = (...args) => $options.showPopUp && $options.showPopUp(...args)) 24077 }, toDisplayString($options.buttonText), 33)) : createCommentVNode("", true) 24078 ]); 24079} 24080const CoreBlockCalendly = /* @__PURE__ */ _export_sfc(_sfc_main$4w, [["render", _sfc_render$3V]]); 24081const CoreBlockCalendly$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 24082 __proto__: null, 24083 default: CoreBlockCalendly 24084}, Symbol.toStringTag, { value: "Module" })); 24085const iconSchema = [ 24086 { 24087 value: "account", 24088 label: "Account" 24089 }, 24090 { 24091 value: "add-folder", 24092 label: "Add Folder" 24093 }, 24094 { 24095 value: "add-page", 24096 label: "Add Page" 24097 }, 24098 { 24099 value: "advanced-search", 24100 label: "Advanced Search" 24101 }, 24102 { 24103 value: "align-vertical-bottom", 24104 label: "Align Vertical Bottom" 24105 }, 24106 { 24107 value: "align-center", 24108 label: "Align Center" 24109 }, 24110 { 24111 value: "align-left", 24112 label: "Align Left" 24113 }, 24114 { 24115 value: "align-right", 24116 label: "Align Right" 24117 }, 24118 { 24119 value: "align-vertical-center", 24120 label: "Align Vertical Center" 24121 }, 24122 { 24123 value: "align-vertical-top", 24124 label: "Align Vertical Top" 24125 }, 24126 { 24127 value: "analytics", 24128 label: "Analytics" 24129 }, 24130 { 24131 value: "anchor-link", 24132 label: "Anchor Link" 24133 }, 24134 { 24135 value: "archive", 24136 label: "Archive" 24137 }, 24138 { 24139 value: "arrow-down", 24140 label: "Arrow Down" 24141 }, 24142 { 24143 value: "arrow-left", 24144 label: "Arrow Left" 24145 }, 24146 { 24147 value: "arrow-left-circle", 24148 label: "Arrow Left Circle" 24149 }, 24150 { 24151 value: "arrow-right", 24152 label: "Arrow Right" 24153 }, 24154 { 24155 value: "arrow-up", 24156 label: "Arrow Up" 24157 }, 24158 { 24159 value: "article", 24160 label: "Article" 24161 }, 24162 { 24163 value: "breadcrumb-expand", 24164 label: "Breadcrumb Expand" 24165 }, 24166 { 24167 value: "brush", 24168 label: "Brush" 24169 }, 24170 { 24171 value: "button", 24172 label: "Button" 24173 }, 24174 { 24175 value: "calendar", 24176 label: "Calendar" 24177 }, 24178 { 24179 value: "carousel", 24180 label: "Carousel" 24181 }, 24182 { 24183 value: "carousel-backward", 24184 label: "Carousel Backward" 24185 }, 24186 { 24187 value: "carousel-forward", 24188 label: "Carousel Forward" 24189 }, 24190 { 24191 value: "changes", 24192 label: "Changes" 24193 }, 24194 { 24195 value: "checkmark", 24196 label: "Checkmark" 24197 }, 24198 { 24199 value: "chevron-down", 24200 label: "Chevron Down" 24201 }, 24202 { 24203 value: "chevron-left", 24204 label: "Chevron Left" 24205 }, 24206 { 24207 value: "chevron-right", 24208 label: "Chevron Right" 24209 }, 24210 { 24211 value: "chevron-up", 24212 label: "Chevron Up" 24213 }, 24214 { 24215 value: "circle-check", 24216 label: "Circle Check" 24217 }, 24218 { 24219 value: "circle-minus", 24220 label: "Circle Minus" 24221 }, 24222 { 24223 value: "circle-minus-filled", 24224 label: "Circle Minus Filled" 24225 }, 24226 { 24227 value: "circle-plus", 24228 label: "Circle Plus" 24229 }, 24230 { 24231 value: "circle-plus-filled", 24232 label: "CIrcle Plus Filled" 24233 }, 24234 { 24235 value: "clock", 24236 label: "Clock" 24237 }, 24238 { 24239 value: "clock-filled", 24240 label: "Clock Filled" 24241 }, 24242 { 24243 value: "close", 24244 label: "Close" 24245 }, 24246 { 24247 value: "close-circle", 24248 label: "Close Circle" 24249 }, 24250 { 24251 value: "compliance", 24252 label: "Compliance" 24253 }, 24254 { 24255 value: "computer", 24256 label: "Computer" 24257 }, 24258 { 24259 value: "connected", 24260 label: "Connected" 24261 }, 24262 { 24263 value: "connected-outline", 24264 label: "Connected Outline" 24265 }, 24266 { 24267 value: "contact", 24268 label: "Contact" 24269 }, 24270 { 24271 value: "contact-email", 24272 label: "Contact Email" 24273 }, 24274 { 24275 value: "contact-fax", 24276 label: "Contact Fax" 24277 }, 24278 { 24279 value: "contact-phone", 24280 label: "Contact Phone" 24281 }, 24282 { 24283 value: "contact-smartphone", 24284 label: "Contact Smartphone" 24285 }, 24286 { 24287 value: "containers-icon", 24288 label: "Containers Icon" 24289 }, 24290 { 24291 value: "content-library", 24292 label: "Content Library" 24293 }, 24294 { 24295 value: "copyright", 24296 label: "Copyright" 24297 }, 24298 { 24299 value: "default", 24300 label: "Default" 24301 }, 24302 { 24303 value: "design", 24304 label: "Design" 24305 }, 24306 { 24307 value: "devices", 24308 label: "Devices" 24309 }, 24310 { 24311 value: "domains", 24312 label: "Domains" 24313 }, 24314 { 24315 value: "down-arrow", 24316 label: "Down Arrow" 24317 }, 24318 { 24319 value: "download", 24320 label: "Download" 24321 }, 24322 { 24323 value: "drafts", 24324 label: "Drafts" 24325 }, 24326 { 24327 value: "duplicate", 24328 label: "Duplicate" 24329 }, 24330 { 24331 value: "edit", 24332 label: "Edit" 24333 }, 24334 { 24335 value: "email", 24336 label: "Email" 24337 }, 24338 { 24339 value: "emoji", 24340 label: "Emoji" 24341 }, 24342 { 24343 value: "error", 24344 label: "Error" 24345 }, 24346 { 24347 value: "error-filled", 24348 label: "Error Filled" 24349 }, 24350 { 24351 value: "external-link", 24352 label: "External Link" 24353 }, 24354 { 24355 value: "facebook", 24356 label: "Facebook" 24357 }, 24358 { 24359 value: "favorite-filled", 24360 label: "Favorite Filled" 24361 }, 24362 { 24363 value: "favorite-unfilled", 24364 label: "Favorite Unfilled" 24365 }, 24366 { 24367 value: "fax", 24368 label: "Fax" 24369 }, 24370 { 24371 value: "file", 24372 label: "File" 24373 }, 24374 { 24375 value: "filter", 24376 label: "Filter" 24377 }, 24378 { 24379 value: "folder", 24380 label: "Folder" 24381 }, 24382 { 24383 value: "footer", 24384 label: "Footer" 24385 }, 24386 { 24387 value: "form", 24388 label: "Form" 24389 }, 24390 { 24391 value: "form-icon", 24392 label: "Form Icon" 24393 }, 24394 { 24395 value: "gradient", 24396 label: "Gradient" 24397 }, 24398 { 24399 value: "gradient-square", 24400 label: "Gradient Square" 24401 }, 24402 { 24403 value: "grid", 24404 label: "Grid" 24405 }, 24406 { 24407 value: "grid-on", 24408 label: "Grid On" 24409 }, 24410 { 24411 value: "hamburger-menu", 24412 label: "Hamburger Menu" 24413 }, 24414 { 24415 value: "header", 24416 label: "Header" 24417 }, 24418 { 24419 value: "home", 24420 label: "Home" 24421 }, 24422 { 24423 value: "icons", 24424 label: "Icons" 24425 }, 24426 { 24427 value: "icon-71", 24428 label: "Icon 71" 24429 }, 24430 { 24431 value: "image", 24432 label: "Image" 24433 }, 24434 { 24435 value: "info", 24436 label: "Info" 24437 }, 24438 { 24439 value: "in-review", 24440 label: "In Review" 24441 }, 24442 { 24443 value: "insert-drive-file", 24444 label: "Insert Drive File" 24445 }, 24446 { 24447 value: "insert-link", 24448 label: "Insert Link" 24449 }, 24450 { 24451 value: "landing-logo", 24452 label: "Landing Logo" 24453 }, 24454 { 24455 value: "layout", 24456 label: "Layout" 24457 }, 24458 { 24459 value: "left-arrow", 24460 label: "Left Arrow" 24461 }, 24462 { 24463 value: "linkedin", 24464 label: "Linkedin" 24465 }, 24466 { 24467 value: "list", 24468 label: "List" 24469 }, 24470 { 24471 value: "list-view", 24472 label: "List View" 24473 }, 24474 { 24475 value: "lock", 24476 label: "Lock" 24477 }, 24478 { 24479 value: "logo", 24480 label: "Logo" 24481 }, 24482 { 24483 value: "map", 24484 label: "Map" 24485 }, 24486 { 24487 value: "map-pin", 24488 label: "Mappin" 24489 }, 24490 { 24491 value: "maximize", 24492 label: "Maximize" 24493 }, 24494 { 24495 value: "media", 24496 label: "Media" 24497 }, 24498 { 24499 value: "menu-close", 24500 label: "Menu Close" 24501 }, 24502 { 24503 value: "minimize", 24504 label: "Minimize" 24505 }, 24506 { 24507 value: "mobile-phone", 24508 label: "Mobile Phone" 24509 }, 24510 { 24511 value: "movie-strip", 24512 label: "Movie Strip" 24513 }, 24514 { 24515 value: "news", 24516 label: "News" 24517 }, 24518 { 24519 value: "notification-alert", 24520 label: "Notification Alert" 24521 }, 24522 { 24523 value: "notifications", 24524 label: "Notifications" 24525 }, 24526 { 24527 value: "open-in-full", 24528 label: "Open In Full" 24529 }, 24530 { 24531 value: "pages", 24532 label: "Pages" 24533 }, 24534 { 24535 value: "painters-palette", 24536 label: "Painters Palette" 24537 }, 24538 { 24539 value: "pause", 24540 label: "Pause" 24541 }, 24542 { 24543 value: "pause-circle", 24544 label: "Pause Circle" 24545 }, 24546 { 24547 value: "phone", 24548 label: "Phone" 24549 }, 24550 { 24551 value: "photo-library", 24552 label: "Photo Library" 24553 }, 24554 { 24555 value: "play", 24556 label: "Play" 24557 }, 24558 { 24559 value: "play-circle", 24560 label: "Play Circle" 24561 }, 24562 { 24563 value: "play-circle-button", 24564 label: "Play Circle Button" 24565 }, 24566 { 24567 value: "plus", 24568 label: "Plus" 24569 }, 24570 { 24571 value: "question-mark", 24572 label: "Question Mark" 24573 }, 24574 { 24575 value: "redo", 24576 label: "Redo" 24577 }, 24578 { 24579 value: "reorder", 24580 label: "Reorder" 24581 }, 24582 { 24583 value: "replay", 24584 label: "Replay" 24585 }, 24586 { 24587 value: "revert", 24588 label: "Revert" 24589 }, 24590 { 24591 value: "right-arrow", 24592 label: "Right Arrow" 24593 }, 24594 { 24595 value: "search", 24596 label: "Search" 24597 }, 24598 { 24599 value: "settings", 24600 label: "Settings" 24601 }, 24602 { 24603 value: "shopping-bag", 24604 label: "Shopping Bag" 24605 }, 24606 { 24607 value: "site-styles", 24608 label: "Site Styles" 24609 }, 24610 { 24611 value: "social", 24612 label: "Social" 24613 }, 24614 { 24615 value: "store", 24616 label: "Store" 24617 }, 24618 { 24619 value: "tablet", 24620 label: "Tablet" 24621 }, 24622 { 24623 value: "tabs", 24624 label: "Tabs" 24625 }, 24626 { 24627 value: "text-style", 24628 label: "Text Style" 24629 }, 24630 { 24631 value: "theme", 24632 label: "Theme" 24633 }, 24634 { 24635 value: "trash", 24636 label: "Trash" 24637 }, 24638 { 24639 value: "twitter", 24640 label: "Twitter" 24641 }, 24642 { 24643 value: "unlock", 24644 label: "Unlock" 24645 }, 24646 { 24647 value: "update", 24648 label: "Update" 24649 }, 24650 { 24651 value: "upload", 24652 label: "Upload" 24653 }, 24654 { 24655 value: "video", 24656 label: "Video" 24657 }, 24658 { 24659 value: "view-desktop", 24660 label: "View Desktop" 24661 }, 24662 { 24663 value: "visibility-off", 24664 label: "Visibility Off" 24665 }, 24666 { 24667 value: "visibility-on", 24668 label: "Visibility On" 24669 }, 24670 { 24671 value: "volume-off", 24672 label: "Volume Off" 24673 }, 24674 { 24675 value: "volume-on", 24676 label: "Volume On" 24677 }, 24678 { 24679 value: "volume-up", 24680 label: "Volume Up" 24681 }, 24682 { 24683 value: "watch-later", 24684 label: "Watch Later" 24685 }, 24686 { 24687 value: "youtube", 24688 label: "Youtube" 24689 }, 24690 { 24691 value: "tool", 24692 label: "Tool" 24693 }, 24694 { 24695 value: "bottom-banner", 24696 label: "Bottom Banner" 24697 }, 24698 { 24699 value: "notes", 24700 label: "Notes" 24701 }, 24702 { 24703 value: "sizing", 24704 label: "Sizing" 24705 }, 24706 { 24707 value: "select-all", 24708 label: "Select All" 24709 }, 24710 { 24711 value: "reader-mode", 24712 label: "Reader Mode" 24713 }, 24714 { 24715 value: "bars", 24716 label: "Bars" 24717 }, 24718 { 24719 value: "rounded-square", 24720 label: "Rounded Square" 24721 }, 24722 { 24723 value: "divider", 24724 label: "Divider" 24725 }, 24726 { 24727 value: "accordion", 24728 label: "Accordion" 24729 }, 24730 { 24731 value: "replace", 24732 label: "Replace" 24733 }, 24734 { 24735 value: "shield", 24736 label: "Shield" 24737 }, 24738 { 24739 value: "contact-page", 24740 label: "ContactPage" 24741 }, 24742 { 24743 value: "close-circle-filled", 24744 label: "Close Circle Filled" 24745 }, 24746 { 24747 value: "square-edit", 24748 label: "Square Edit" 24749 }, 24750 { 24751 value: "video-play", 24752 label: "Square Edit" 24753 }, 24754 { 24755 value: "pdf", 24756 label: "pdf" 24757 }, 24758 { 24759 value: "copy", 24760 label: "Copy" 24761 }, 24762 { 24763 value: "ellipsis-outlined", 24764 label: "ellipsis" 24765 }, 24766 { 24767 value: "page", 24768 label: "Page" 24769 }, 24770 { 24771 value: "section", 24772 label: "Section" 24773 }, 24774 { 24775 value: "categories", 24776 label: "Categories" 24777 }, 24778 { 24779 value: "content-library-media", 24780 label: "Content Library Media" 24781 }, 24782 { 24783 value: "template", 24784 label: "Template" 24785 }, 24786 { 24787 value: "disclosures", 24788 label: "Disclosures" 24789 } 24790]; 24791const _sfc_main$4v = { 24792 name: "CoreIcon", 24793 inject: { 24794 isBuilder: { 24795 default: false 24796 } 24797 }, 24798 props: { 24799 icon: { 24800 type: String, 24801 required: true 24802 }, 24803 settings: { 24804 type: Object, 24805 required: false, 24806 default: () => ({}) 24807 } 24808 }, 24809 computed: { 24810 style() { 24811 return { 24812 ...this.$attrs.style, 24813 color: this.isBuilder ? "currentColor" : "var(--_core__icon_color, currentColor)" 24814 }; 24815 }, 24816 iconName() { 24817 const iconValue = kebabCase(this.icon); 24818 const iconExists = iconSchema.some( 24819 (icon) => icon.value === iconValue 24820 ); 24821 const componentName = "CoreIcon" + flow(camelCase, upperFirst)(this.icon);
24822 try { 24823 const component = resolveComponent(componentName); 24824 if (iconExists && component) { 24825 return componentName; 24826 } 24827 return "CoreIconQuestionMark"; 24828 } catch (e) { 24829 return "CoreIconQuestionMark"; 24830 } 24831 } 24832 } 24833}; 24834function _sfc_render$3U(_ctx, _cache, $props, $setup, $data, $options) { 24835 return openBlock(), createBlock(resolveDynamicComponent($options.iconName), { 24836 class: "block_icon-icon", 24837 style: normalizeStyle($options.style), 24838 value: $props.icon, 24839 settings: $props.settings 24840 }, null, 8, ["style", "value", "settings"]); 24841} 24842const __nuxt_component_1$7 = /* @__PURE__ */ _export_sfc(_sfc_main$4v, [["render", _sfc_render$3U]]); 24843const CoreIcon = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 24844 __proto__: null, 24845 default: __nuxt_component_1$7 24846}, Symbol.toStringTag, { value: "Module" })); 24847const licenseStates = [ 24848 { value: "AL", text: "Alabama" }, 24849 { value: "AK", text: "Alaska" }, 24850 { value: "AZ", text: "Arizona" }, 24851 { value: "AR", text: "Arkansas" }, 24852 { value: "CA", text: "California" }, 24853 { value: "CO", text: "Colorado" }, 24854 { value: "CT", text: "Connecticut" }, 24855 { value: "DC", text: "District of Columbia" }, 24856 { value: "DE", text: "Delaware" }, 24857 { value: "FL", text: "Florida" }, 24858 { value: "GA", text: "Georgia" }, 24859 { value: "HI", text: "Hawaii" }, 24860 { value: "ID", text: "Idaho" }, 24861 { value: "IL", text: "Illinois" }, 24862 { value: "IN", text: "Indiana" }, 24863 { value: "IA", text: "Iowa" }, 24864 { value: "KS", text: "Kansas" }, 24865 { value: "KY", text: "Kentucky" }, 24866 { value: "LA", text: "Louisiana" }, 24867 { value: "ME", text: "Maine" }, 24868 { value: "MD", text: "Maryland" }, 24869 { value: "MA", text: "Massachusetts" }, 24870 { value: "MI", text: "Michigan" }, 24871 { value: "MN", text: "Minnesota" }, 24872 { value: "MS", text: "Mississippi" }, 24873 { value: "MO", text: "Missouri" }, 24874 { value: "MT", text: "Montana" }, 24875 { value: "NE", text: "Nebraska" }, 24876 { value: "NV", text: "Nevada" }, 24877 { value: "NH", text: "New Hampshire" }, 24878 { value: "NJ", text: "New Jersey" }, 24879 { value: "NM", text: "New Mexico" }, 24880 { value: "NY", text: "New York" }, 24881 { value: "NC", text: "North Carolina" }, 24882 { value: "ND", text: "North Dakota" }, 24883 { value: "OH", text: "Ohio" }, 24884 { value: "OK", text: "Oklahoma" }, 24885 { value: "OR", text: "Oregon" }, 24886 { value: "PA", text: "Pennsylvania" }, 24887 { value: "RI", text: "Rhode Island" }, 24888 { value: "SC", text: "South Carolina" }, 24889 { value: "SD", text: "South Dakota" }, 24890 { value: "TN", text: "Tennessee" }, 24891 { value: "TX", text: "Texas" }, 24892 { value: "UT", text: "Utah" }, 24893 { value: "VT", text: "Vermont" }, 24894 { value: "VA", text: "Virginia" }, 24895 { value: "WA", text: "Washington" }, 24896 { value: "WV", text: "West Virginia" }, 24897 { value: "WI", text: "Wisconsin" }, 24898 { value: "WY", text: "Wyoming" } 24899]; 24900const licenseItems = (args = {}, items) => { 24901 const licenses = items || []; 24902 const dateToTime = (date) => { 24903 if (date) { 24904 return new Date(date).getTime(); 24905 } 24906 return (/* @__PURE__ */ new Date()).getTime(); 24907 }; 24908 const filtered = licenses.filter((license) => { 24909 const today = dateToTime(); 24910 const paramsQuery = Object.entries(args).every((key) => { 24911 if (Array.isArray(key[1]) && key[0] === "licenseLobCode") { 24912 return key[1].includes(license[key[0]]); 24913 } 24914 return license[key[0]] === args[key[0]]; 24915 }); 24916 const notExpired = dateToTime(license.licenseExpiryDt) >= today && dateToTime(license.licenseIssueDt) <= today; 24917 return license.stateCountyCode && paramsQuery && notExpired; 24918 }); 24919 return filtered.filter( 24920 (obj, index2, self2) => index2 === self2.findIndex((t) => t.stateCountyCode === obj.stateCountyCode) 24921 ); 24922}; 24923const isAdult = (value) => { 24924 var today = /* @__PURE__ */ new Date(); 24925 var birthDate = new Date(value); 24926 var age = today.getFullYear() - birthDate.getFullYear(); 24927 var m = today.getMonth() - birthDate.getMonth(); 24928 if (m < 0 || m === 0 && today.getDate() < birthDate.getDate()) { 24929 age--; 24930 } 24931 return age >= 18; 24932}; 24933const isValidDate = (dateString) => { 24934 if (!/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(dateString)) return false;
24935 var parts = dateString.split("/"); 24936 var day = parseInt(parts[1], 10); 24937 var month = parseInt(parts[0], 10); 24938 var year = parseInt(parts[2], 10); 24939 if (year < 1e3 || year > 3e3 || month == 0 || month > 12) return false; 24940 var monthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; 24941 if (year % 400 == 0 || year % 100 != 0 && year % 4 == 0) 24942 monthLength[1] = 29; 24943 return day > 0 && day <= monthLength[month - 1]; 24944}; 24945const wysiwygRequired = (value) => { 24946 if (value === "" || value === void 0 || value === null) { 24947 return false; 24948 } 24949 if (typeof value == "string") { 24950 const textOnly = value.replace(/<[^>]*>/g, "").trim(); 24951 return textOnly.length > 0; 24952 } 24953 return true; 24954}; 24955const formatPhoneNumber = (phoneNumber) => { 24956 let extNumber = ""; 24957 if (phoneNumber) { 24958 phoneNumber = phoneNumber.replace(/\D/g, ""); 24959 if (phoneNumber.length > 10) { 24960 extNumber = phoneNumber.slice(10, phoneNumber.length); 24961 phoneNumber = phoneNumber.slice(0, 10); 24962 } 24963 const phoneNumberRegex = /^(\d{1,3})(\d{0,3})(\d{0,4})$/; 24964 phoneNumber = phoneNumber.replace( 24965 phoneNumberRegex, 24966 function(match2, p1, p2, p3) { 24967 let formattedNumber = ""; 24968 if (p1) { 24969 formattedNumber = `(${p1})`; 24970 } 24971 if (p2) { 24972 formattedNumber += ` ${p2}`; 24973 } 24974 if (p3) { 24975 formattedNumber += `-${p3}`; 24976 } 24977 return formattedNumber; 24978 } 24979 ); 24980 } 24981 if (extNumber !== "") phoneNumber += " ext. " + extNumber; 24982 return phoneNumber; 24983}; 24984const getNumbersOnlyFromPhoneFormat = (phoneNumber) => { 24985 if (phoneNumber) phoneNumber = phoneNumber.replace(/\D/g, ""); 24986 return phoneNumber; 24987}; 24988const _sfc_main$4u = { 24989 props: { 24990 settings: { 24991 type: Object, 24992 required: true 24993 }, 24994 dataSite: { 24995 type: Object, 24996 required: true 24997 }, 24998 isEditable: { 24999 type: Boolean, 25000 default: false 25001 }, 25002 contactCardClasses: { 25003 type: Array, 25004 default: () => [] 25005 }, 25006 isBuilderMobile: { 25007 type: Boolean, 25008 default: false 25009 } 25010 }, 25011 setup() { 25012 provide(SCROLL_ANIMATION_EXCLUDED_KEY, true); 25013 const store = useStore(); 25014 const { state } = store; 25015 const { isMobile } = useIsMobile(); 25016 return { 25017 state, 25018 isMobile 25019 }; 25020 }, 25021 data() { 25022 return { 25023 entityTitles: { 25024 "FINANCIAL ADVISOR": "Eagle Strategies LLC", 25025 "WEALTH ADVISOR": "Eagle Strategies LLC", 25026 "INVESTMENT ADVISER REPRESENTATIVE": "Eagle Strategies LLC", 25027 "FINANCIAL PLANNER": "Eagle Strategies LLC", 25028 "REGISTERED REPRESENTATIVE": "NYLIFE Securities LLC", 25029 AGENT: "New York Life Insurance Company", 25030 "LICENSED AGENT": "New York Life Insurance Company" 25031 }, 25032 photoLocation: "", 25033 widestTextComputed: false, 25034 widestText: 0 25035 }; 25036 }, 25037 computed: { 25038 isMobileView() { 25039 return this.isMobile || this.isBuilderMobile; 25040 }, 25041 mobileSettingsEnabled() { 25042 var _a; 25043 return !!((_a = this.state.settings.featureFlags) == null ? void 0 : _a.MobileSettings); 25044 }, 25045 titlePath() { 25046 var _a; 25047 return ((_a = this.settings) == null ? void 0 : _a.titles) ?? this.settings ?? {}; 25048 }, 25049 isAgent() { 25050 return !this.isDBA || !this.toggleDBA; 25051 }, 25052 toggleGo() { 25053 return this.settings["goName-show"]; 25054 }, 25055 isGo() { 25056 var _a; 25057 if (this.toggleGo === true) return true; 25058 if (this.isDBA) return false; 25059 if (!isNil(this.toggleGo)) return Boolean(this.toggleGo); 25060 return ((_a = this.dataSite.tags) == null ? void 0 : _a.includes(1305)) ?? false; 25061 }, 25062 toggleButton() { 25063 var _a; 25064 return (_a = this.settings) == null ? void 0 : _a.button; 25065 }, 25066 toggleButton2() { 25067 var _a; 25068 return (_a = this.settings) == null ? void 0 : _a.button2; 25069 }, 25070 toggleDBA() { 25071 var _a; 25072 return (_a = this.settings) == null ? void 0 : _a.toggleDba; 25073 }, 25074 toggleDesignation() { 25075 var _a; 25076 return (_a = this.settings) == null ? void 0 : _a.toggleDesignation; 25077 }, 25078 toggleEntityTitle() { 25079 return false; 25080 }, 25081 toggleImage() { 25082 var _a; 25083 return (_a = this.settings) == null ? void 0 : _a.toggleImage; 25084 }, 25085 imageHeight() { 25086 var _a; 25087 const height = (_a = this.settings) == null ? void 0 : _a.height; 25088 if (!height) return "auto"; 25089 return `${height}px`; 25090 }, 25091 imageWidth() { 25092 var _a; 25093 const width = (_a = this.settings) == null ? void 0 : _a.width; 25094 if (!width) return "100%"; 25095 return `${width}px`; 25096 }, 25097 toggleLicense() { 25098 var _a; 25099 return (_a = this.settings) == null ? void 0 : _a.toggleLicense; 25100 }, 25101 toggleName() { 25102 var _a; 25103 return (_a = this.settings) == null ? void 0 : _a.toggleName; 25104 }, 25105 toggleTitle() { 25106 return this.titlePath.toggleTitle; 25107 }, 25108 toggleTitle2() { 25109 return this.titlePath.toggleTitle2; 25110 }, 25111 toggleTitle3() { 25112 return this.titlePath.toggleTitle3; 25113 }, 25114 toggleTitle4() { 25115 return this.titlePath.toggleTitle4; 25116 }, 25117 dbaOnly() { 25118 return !this.toggleName && !this.toggleTitle; 25119 }, 25120 noPhoto() { 25121 return !this.blockPhoto && !this.photoTop && !this.photoBackgroun
25121d; 25122 }, 25123 blockPhoto() { 25124 if (this.isMemberSelected) 25125 return this.memberSelected.headshotImageURL; 25126 return renderData(this.mediaMetadataPhoto, this.dataSite); 25127 }, 25128 mediaMetadataPhoto() { 25129 var _a; 25130 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.photo; 25131 return mediaSrc && typeof mediaSrc === "object" ? mediaSrc.src : mediaSrc; 25132 }, 25133 photoMedia() { 25134 var _a, _b, _c; 25135 if (this.isMemberSelected) 25136 return this.memberSelected.headshotImageURL; 25137 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.photo; 25138 const { crop, focal } = mediaSrc; 25139 if (crop || focal) { 25140 const mediaObject = { src: crop || {} }; 25141 if (focal) mediaObject.src.focal = focal; 25142 return mediaObject; 25143 } 25144 return { src: (_c = (_b = this.settings) == null ? void 0 : _b.mediaMetadata) == null ? void 0 : _c.photo }; 25145 }, 25146 altText() { 25147 var _a; 25148 return (_a = this.settings) == null ? void 0 : _a.photo.alt; 25149 }, 25150 blockLogo() { 25151 return this.mediaMetadataLogo || null; 25152 }, 25153 mediaMetadataLogo() { 25154 var _a; 25155 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.logo; 25156 return mediaSrc && typeof mediaSrc === "object" ? mediaSrc.src : mediaSrc; 25157 }, 25158 logoMedia() { 25159 var _a, _b, _c; 25160 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.logo; 25161 const { crop, focal } = mediaSrc; 25162 if (crop || focal) { 25163 const mediaObject = { src: crop }; 25164 if (focal) mediaObject.src.focal = focal; 25165 return mediaObject; 25166 } 25167 return { src: (_c = (_b = this.settings) == null ? void 0 : _b.mediaMetadata) == null ? void 0 : _c.logo }; 25168 }, 25169 blockGoName() { 25170 if (this.isOrganizationSelected || this.isTeamMemberWithOrganization) { 25171 return this.dataSite.organizationName + " General Office"; 25172 } 25173 if (!this.isGo) return ""; 25174 const rawGoName = this.settings.goName != null && String(this.settings.goName).trim() !== "" ? this.settings.goName : "{{{ user.ddcUserData.orgUnitDesc }}}"; 25175 return renderData(`${rawGoName} General Office`, this.dataSite); 25176 }, 25177 managingPartner() { 25178 var _a, _b, _c, _d, _e; 25179 if (this.isMemberSelected) return ""; 25180 if (((_c = (_b = (_a = this.dataSite.user) == null ? void 0 : _a.ddcUserData) == null ? void 0 : _b.marketerTitleTpDesc) == null ? void 0 : _c.toLowerCase()) === "managing partner") { 25181 return renderData( 25182 (_e = (_d = this.dataSite.user) == null ? void 0 : _d.ddcUserData) == null ? void 0 : _e.marketerTitleTpDesc, 25183 this.dataSite 25184 ); 25185 } 25186 return false; 25187 }, 25188 blockContactName() { 25189 var _a, _b, _c, _d, _e, _f; 25190 if (this.isOrganizationSelected) { 25191 return ""; 25192 } 25193 if (this.isMemberSelected) { 25194 const renderedData = renderData( 25195 this.settings.name, 25196 this.memberSelected 25197 ); 25198 if (renderedData) return renderedData; 25199 return ((_a = this.memberSelected) == null ? void 0 : _a.displayName) || `${(_b = this.memberSelected) == null ? void 0 : _b.firstName} ${(_c = this.memberSelected) == null ? void 0 : _c.lastName}`; 25200 } 25201 const formattedContactName = formatName( 25202 this.settings.name, 25203 (_e = (_d = this.dataSite) == null ? void 0 : _d.user) == null ? void 0 : _e.ddcUserData 25204 ); 25205 return this.displayName || ((_f = renderData(formattedContactName, this.dataSite)) == null ? void 0 : _f.trim()) || ""; 25206 }, 25207 displayName() { 25208 var _a, _b, _c; 25209 return (_c = (_b = (_a = this.dataSite) == null ? void 0 : _a.user) == null ? void 0 : _b.ddcUserData) == null ? void 0 : _c.displayName; 25210 }, 25211 designationCharacters() { 25212 var _a; 25213 return (_a = this.blockContactDesignation) == null ? void 0 : _a.length; 25214 }, 25215 blockContactDesignation() { 25216 if (this.isMemberSelected) return ""; 25217 return renderData(this.settings.designation || "", this.dataSite); 25218 }, 25219 htmlFormattedDesignation() { 25220 const data = this.blockContactDesignation; 25221 if (!data) return; 25222 const tag = "sup"; 25223 const symbolClass = "block__name_designation-symbol"; 25224 const designationArray = data.split(",").map( 25225 (d, index2, arr) =>
25225 index2 < arr.length - 1 ? `<span>${d.trim()}, </span>` : `<span>${d.trim()}</span>` 25226 ); 25227 const designation = designationArray.join(""); 25228 const symbolRegex = /©|\u00A9|®|\u00AE|™|\u2122/gi; 25229 return " " + (designation == null ? void 0 : designation.replace( 25230 symbolRegex, 25231 `<${tag} class="${symbolClass}">$&</${tag}>` 25232 )); 25233 }, 25234 blockContactTitle() { 25235 if (this.isMemberSelected) return this.memberSelected.title; 25236 return renderData(this.titlePath.title, this.dataSite); 25237 }, 25238 blockContactTitle2() { 25239 if (this.isMemberSelected) return this.memberSelected.title2; 25240 return renderData(this.titlePath.title2, this.dataSite); 25241 }, 25242 blockContactTitle3() { 25243 if (this.isMemberSelected) return this.memberSelected.title3; 25244 return renderData(this.titlePath.title3, this.dataSite); 25245 }, 25246 blockContactTitle4() { 25247 if (this.isMemberSelected) return this.memberSelected.title4; 25248 return renderData(this.titlePath.title4, this.dataSite); 25249 }, 25250 blockEntityTitle() { 25251 var _a; 25252 return this.entityTitles[(_a = this.blockContactTitle) == null ? void 0 : _a.toUpperCase()]; 25253 }, 25254 blockDBAName() { 25255 var _a; 25256 if (this.isOrganizationSelected || this.isTeamMemberWithOrganization) { 25257 return this.dataSite.organizationName + " General Office"; 25258 } 25259 const name = (_a = renderData( 25260 this.settings.dbaname, 25261 this.dataSite 25262 )) == null ? void 0 : _a.trim(); 25263 return name || null; 25264 }, 25265 blockContactDescription() { 25266 if (this.isMemberSelected) return ""; 25267 return this.settings.description; 25268 }, 25269 blockContactLandline() { 25270 var _a, _b; 25271 if (!((_a = this.settings) == null ? void 0 : _a["landline-show"])) return ""; 25272 const phoneNumber = getNumbersOnlyFromPhoneFormat( 25273 this.renderValue(this.settings.landline, "phoneNumber") 25274 ); 25275 if (!phoneNumber) return ""; 25276 const extension = this.renderValue( 25277 this.settings.extension, 25278 "phoneExt" 25279 ); 25280 const value = `${(_b = formatPhoneNumber(phoneNumber)) == null ? void 0 : _b.replace( 25281 " ext. ", 25282 "" 25283 )}${extension ? ` ext. ${extension}` : ""}`; 25284 return value; 25285 }, 25286 blockContactLandlineLabel() { 25287 var _a; 25288 if (!((_a = this.settings) == null ? void 0 : _a["landline-show"])) return ""; 25289 return this.addEndColon( 25290 this.renderValue(this.settings.landlineLabel, "phoneLabel") 25291 ); 25292 }, 25293 blockContactAltPhone1() { 25294 var _a, _b; 25295 if (!((_a = this.settings) == null ? void 0 : _a["alt_phone_1-show"])) return ""; 25296 const phoneNumber = getNumbersOnlyFromPhoneFormat( 25297 this.renderValue(this.settings.alt_phone_1, "altPhone1") 25298 ); 25299 if (!phoneNumber) return ""; 25300 const extension = this.renderValue( 25301 this.settings.extension_alt_phone_1, 25302 "altPhoneExt1" 25303 ); 25304 const value = `${(_b = formatPhoneNumber(phoneNumber)) == null ? void 0 : _b.replace( 25305 " ext. ", 25306 "" 25307 )}${extension ? ` ext. ${extension}` : ""}`; 25308 return value; 25309 }, 25310 blockContactAltPhone1Label() { 25311 var _a; 25312 if (!((_a = this.settings) == null ? void 0 : _a["alt_phone_1-show"])) return ""; 25313 const value = this.settings.alt_phone_1Label; 25314 if ((value == null ? void 0 : value.length) <= 100 || !value || this.isMustacheValue(value)) { 25315 return this.addEndColon( 25316 this.renderValue(value, "altPhoneLabel1") 25317 ); 25318 } 25319 return false; 25320 }, 25321 blockContactAltPhone2Label() { 25322 var _a; 25323 if (!((_a = this.settings) == null ? void 0 : _a["alt_phone_2-show"])) return ""; 25324 const value = this.settings.alt_phone_2Label; 25325 if ((value == null ? void 0 : value.length) <= 100 || !value || this.isMustacheValue(value)) { 25326 return this.addEndColon( 25327 this.renderValue(value, "altPhoneLabel2") 25328 ); 25329 } 25330 return false; 25331 }, 25332 blockContactAltPhone2() { 25333 var _a, _b; 25334 if (!((_a = this.settings) == null ? void 0 : _a["alt_phone_2-show"])) return ""; 25335 const phoneNumber = getNumbersOnlyFromPhoneFormat( 25336 this.renderValue(this.settings.alt_phone_2, "altPhone2") 25337 ); 25338 if (!phoneNumber) return ""; 25339 const extension = this.renderValue( 25340 this.settings.extension_alt_phone_2, 25341 "altPhoneExt2" 25342 ); 25343 const value = `${(_b = formatPhoneNumber(phoneNumber)) == null ? void 0 : _b.replace( 25344 " ext. ", 25345 "" 25346 )}${extension ? ` ext. ${extension}` : ""}`; 25347 return value; 25348 }, 25349 blockContactAltPhone3Label() { 25350 var _a; 25351 if (!((_a = this.settings) == null ? void 0 : _a["alt_phone_3-show"])) return ""; 25352 const value = this.settings.alt_phone_3Label; 25353 if ((value == null ? void 0 : value.length) <= 100 || !value || this.isMustacheValue(value)) { 25354 return this.addEndColon( 25355 this.renderValue(value, "altPhoneLabel3") 25356 ); 25357 } 25358 return false;
25359 }, 25360 blockContactAltPhone3() { 25361 var _a, _b; 25362 if (!((_a = this.settings) == null ? void 0 : _a["alt_phone_3-show"])) return ""; 25363 const phoneNumber = getNumbersOnlyFromPhoneFormat( 25364 this.renderValue(this.settings.alt_phone_3, "altPhone3") 25365 ); 25366 if (!phoneNumber) return ""; 25367 const extension = this.renderValue( 25368 this.settings.extension_alt_phone_3, 25369 "altPhoneExt3" 25370 ); 25371 const value = `${(_b = formatPhoneNumber(phoneNumber)) == null ? void 0 : _b.replace( 25372 " ext. ", 25373 "" 25374 )}${extension ? ` ext. ${extension}` : ""}`; 25375 return value; 25376 }, 25377 blockContactMobile() { 25378 var _a; 25379 if (!((_a = this.settings) == null ? void 0 : _a["mobile-show"])) return ""; 25380 if (this.isMemberSelected) return ""; 25381 const phoneNumber = getNumbersOnlyFromPhoneFormat( 25382 renderData(this.settings.mobile, this.dataSite) 25383 ); 25384 return formatPhoneNumber(phoneNumber); 25385 }, 25386 blockContactFax() { 25387 var _a; 25388 if (!((_a = this.settings) == null ? void 0 : _a["fax-show"])) return ""; 25389 if (this.isMemberSelected) return ""; 25390 const phoneNumber = getNumbersOnlyFromPhoneFormat( 25391 renderData(this.settings.fax, this.dataSite) 25392 ); 25393 return formatPhoneNumber(phoneNumber); 25394 }, 25395 blockContactEmail() { 25396 var _a; 25397 if (!((_a = this.settings) == null ? void 0 : _a["email-show"])) return ""; 25398 return this.renderValue(this.settings.email, "emailAddress"); 25399 }, 25400 hasAddressSection() { 25401 var _a; 25402 if (!((_a = this.settings) == null ? void 0 : _a["address-show"])) return false; 25403 return !!(this.blockContactAddressLine1 || this.blockContactAddressCity || this.blockContactAddressState || this.blockContactAddressZip); 25404 }, 25405 hasAddress2Section() { 25406 var _a; 25407 if (!((_a = this.settings) == null ? void 0 : _a["address2-show"])) return false; 25408 return !!(this.blockContactAddress2Line1 || this.blockContactAddress2City || this.blockContactAddress2State || this.blockContactAddress2Zip); 25409 }, 25410 hasAddress3Section() { 25411 var _a; 25412 if (!((_a = this.settings) == null ? void 0 : _a["address3-show"])) return false; 25413 return !!(this.blockContactAddress3Line1 || this.blockContactAddress3City || this.blockContactAddress3State || this.blockContactAddress3Zip); 25414 }, 25415 blockContactAddressLabel() { 25416 var _a; 25417 const value = (_a = this.settings.address) == null ? void 0 : _a.label; 25418 if ((value == null ? void 0 : value.length) <= 100 || !value || this.isMustacheValue(value)) { 25419 return this.addEndColon( 25420 this.renderValue(value, "addressLabel1") 25421 ); 25422 } 25423 return false; 25424 }, 25425 blockContactAddressLine1() { 25426 var _a; 25427 return this.renderValue((_a = this.settings.address) == null ? void 0 : _a.line1, "address"); 25428 }, 25429 blockContactAddressLine2() { 25430 var _a; 25431 return this.renderValue((_a = this.settings.address) == null ? void 0 : _a.line2, "address2"); 25432 }, 25433 blockContactAddressCity() { 25434 var _a; 25435 return this.renderValue((_a = this.settings.address) == null ? void 0 : _a.city, "city"); 25436 }, 25437 blockContactAddressState() { 25438 var _a; 25439 return this.renderValue((_a = this.settings.address) == null ? void 0 : _a.state, "state"); 25440 }, 25441 blockContactAddressZip() { 25442 var _a; 25443 return this.renderValue( 25444 (_a = this.settings.address) == null ? void 0 : _a.zip, 25445 "postalCode", 25446 "busLocAddrZipCodeExt" 25447 ); 25448 }, 25449 blockContactAddress2Label() { 25450 var _a; 25451 const value = (_a = this.settings.address2) == null ? void 0 : _a.label; 25452 if ((value == null ? void 0 : value.length) <= 100 || !value || this.isMustacheValue(value)) { 25453 return this.addEndColon( 25454 this.renderValue(value, "addressLabel2") 25455 ); 25456 } 25457 return false; 25458 }, 25459 blockContactAddress2Line1() { 25460 var _a; 25461 return this.renderValue( 25462 (_a = this.settings.address2) == null ? void 0 : _a.line1, 25463 "address2Line1" 25464 ); 25465 }, 25466 blockContactAddress2Line2() { 25467 var _a; 25468 return this.renderValue( 25469 (_a = this.settings.address2) == null ? void 0 : _a.line2, 25470 "address2Line2" 25471 ); 25472 }, 25473 blockContactAddress2City() { 25474 var _a; 25475 return this.renderValue((_a = this.settings.address2) == null ? void 0 : _a.city, "city2"); 25476 }, 25477 blockContactAddress2State() { 25478 var _a; 25479 return this.renderValue((_a = this.settings.address2) == null ? void 0 : _a.state, "state2"); 25480 }, 25481 blockContactAddress2Zip() { 25482 var _a; 25483 return this.renderValue( 25484 (_a = this.settings.address2) == null ? void 0 : _a.zip, 25485 "postalCode2", 25486 "busLocAddrZipCodeExt2" 25487 ); 25488 }, 25489 blockContactAddress3Label() { 25490 var _a; 25491 const value = (_a = this.settings.address3) == null ? void 0 : _a.label; 25492 if ((value == null ? void 0 : value.length) <= 100 || !value || this.isMustacheValue(value)) { 25493 return this.addEndColon( 25494 this.renderValue(value, "addressLabel3") 25495 ); 25496 } 25497 return false;
25498 }, 25499 blockContactAddress3Line1() { 25500 var _a; 25501 return this.renderValue( 25502 (_a = this.settings.address3) == null ? void 0 : _a.line1, 25503 "address3Line1" 25504 ); 25505 }, 25506 blockContactAddress3Line2() { 25507 var _a; 25508 return this.renderValue( 25509 (_a = this.settings.address3) == null ? void 0 : _a.line2, 25510 "address3Line2" 25511 ); 25512 }, 25513 blockContactAddress3City() { 25514 var _a; 25515 return this.renderValue((_a = this.settings.address3) == null ? void 0 : _a.city, "city3"); 25516 }, 25517 blockContactAddress3State() { 25518 var _a; 25519 return this.renderValue((_a = this.settings.address3) == null ? void 0 : _a.state, "state3"); 25520 }, 25521 blockContactAddress3Zip() { 25522 var _a; 25523 return this.renderValue( 25524 (_a = this.settings.address3) == null ? void 0 : _a.zip, 25525 "postalCode3", 25526 "busLocAddrZipCodeExt3" 25527 ); 25528 }, 25529 buttonSettings() { 25530 var _a; 25531 return { 25532 type: "button", 25533 icon: this.settings.buttonIcon, 25534 label: this.settings.buttonLabel, 25535 newWindow: this.settings.newWindow || false, 25536 url: this.settings.buttonUrl, 25537 relAttributes: this.settings.buttonRelAttributes, 25538 variants: { 25539 "icon-placement": this.settings.buttonIconPlacement || "icon-right", 25540 style: ((_a = this.settings) == null ? void 0 : _a.variants["buttonStyle"]) || "primary" 25541 } 25542 }; 25543 }, 25544 button2Settings() { 25545 return { 25546 type: "button", 25547 icon: this.settings.buttonIcon2, 25548 label: this.settings.buttonLabel2, 25549 newWindow: this.settings.newWindow2 || false, 25550 url: this.settings.buttonUrl2, 25551 relAttributes: this.settings.buttonRelAttributes2, 25552 variants: { 25553 "icon-placement": this.settings.buttonIconPlacement2 || "icon-right", 25554 style: "secondary" 25555 } 25556 }; 25557 }, 25558 socialLinksSettings() { 25559 return { 25560 type: "social-links", 25561 facebook: this.blockFacebook, 25562 instagram: this.blockInstagram, 25563 linkedin: this.blockLinkedin, 25564 twitter: this.blockTwitter, 25565 youtube: this.blockYoutube 25566 }; 25567 }, 25568 cleanAddress() { 25569 return `http://maps.google.com/?q=` + encodeURIComponent( 25570 `${this.blockContactAddressLine1} ${this.blockContactAddressLine2} ${this.blockContactAddressCity} ${this.blockContactAddressState} ${this.blockContactAddressZip}` 25571 ); 25572 }, 25573 cleanAddress2() { 25574 return `http://maps.google.com/?q=` + encodeURIComponent( 25575 `${this.blockContactAddress2Line1} ${this.blockContactAddress2Line2} ${this.blockContactAddress2City} ${this.blockContactAddress2State} ${this.blockContactAddress2Zip}` 25576 ); 25577 }, 25578 cleanAddress3() { 25579 return `http://maps.google.com/?q=` + encodeURIComponent( 25580 `${this.blockContactAddress3Line1} ${this.blockContactAddress3Line2} ${this.blockContactAddress3City} ${this.blockContactAddress3State} ${this.blockContactAddress3Zip}` 25581 ); 25582 }, 25583 blockFacebook() { 25584 var _a; 25585 if (!((_a = this.settings) == null ? void 0 : _a["facebook-show"])) return ""; 25586 if (this.isMemberSelected) return this.memberSelected.facebookUrl; 25587 return renderData(this.settings.facebook, this.dataSite); 25588 }, 25589 blockLinkedin() { 25590 var _a; 25591 if (!((_a = this.settings) == null ? void 0 : _a["linkedin-show"])) return ""; 25592 if (this.isMemberSelected) return this.memberSelected.linkedInUrl; 25593 return renderData(this.settings.linkedin, this.dataSite); 25594 }, 25595 blockInstagram() { 25596 var _a; 25597 if (!((_a = this.settings) == null ? void 0 : _a["instagram-show"])) return ""; 25598 if (this.isMemberSelected) return ""; 25599 return renderData(this.settings.instagram, this.dataSite); 25600 }, 25601 blockTwitter() { 25602 var _a; 25603 if (!((_a = this.settings) == null ? void 0 : _a["twitter-show"])) return ""; 25604 if (this.isMemberSelected) return this.memberSelected.twitterUrl; 25605 return renderData(this.settings.twitter, this.dataSite); 25606 }, 25607 blockYoutube() { 25608 if (this.isMemberSelected) return ""; 25609 return this.settings.youtube || null; 25610 }, 25611 photoPlacement() { 25612 var _a; 25613 if (this.isMobileView && this.mobileSettingsEnabled && this.imagePlacementMobile) { 25614 return this.imagePlacementMobile === "image-bottom" ? "bottom" : "top"; 25615 } 25616 return ((_a = this.settings) == null ? void 0 : _a.variants["photo-placement"]) || "top"; 25617 }, 25618 hideProfileImageOnMobile() { 25619 var _a; 25620 return this.mobileSettingsEnabled && this.isMobileView && !!((_a = this.settings) == null ? void 0 : _a.hideProfileImageOnMobile); 25621 }, 25622 imagePlacementMobile() { 25623 var _a; 25624 return ((_a = this.settings) == null ? void 0 : _a.imagePlacementMobile) || "image-top"; 25625 }, 25626 mobileSettingsClasses() { 25627 if (!this.mobileSettingsEnabled) { 25628 return []; 25629 } 25630 const classes = []; 25631 if (this.isMobileView) { 25632 if (this.hideProfileImageOnMobile) { 25633 classes.push( 25634 "block_contact-card_hide-profile-image-mobile" 25635 ); 25636 } 25637 const placement = this.imagePlacementMobile; 25638 if (placement === "image-bottom") { 25639 classes.push("block_contact-card_image-bottom"); 25640 } else if (placement === "image-top") { 25641 classes.push("block_contact-card_image-top"); 25642 } 25643 } 25644 return classes; 25645 },
25646 alignContent() { 25647 var _a; 25648 return ((_a = this.settings) == null ? void 0 : _a.variants["align-content"]) || "align-center"; 25649 }, 25650 photoBackground() { 25651 return ["background"].includes(this.photoPlacement); 25652 }, 25653 photoTop() { 25654 return ["top"].includes(this.photoPlacement); 25655 }, 25656 photoSides() { 25657 return !(this.photoTop || this.photoBackground || this.noPhoto); 25658 }, 25659 licenses() { 25660 var _a, _b, _c; 25661 if (this.memberSelected) return this.memberSelected.licenses || []; 25662 return ((_c = (_b = (_a = this.dataSite) == null ? void 0 : _a.user) == null ? void 0 : _b.ddcUserData) == null ? void 0 : _c.ddcLicenseData) || []; 25663 }, 25664 licensesCalifornia() { 25665 return this.getLicenses("CA"); 25666 }, 25667 licensesArkansas() { 25668 return this.getLicenses("AR"); 25669 }, 25670 isOrganizationSelected() { 25671 var _a; 25672 return this.settings["team-member"] === -1 && ((_a = this.dataSite) == null ? void 0 : _a.organizationId) != null; 25673 }, 25674 isTeamMemberWithOrganization() { 25675 var _a; 25676 return this.settings["team-member"] !== -1 && ((_a = this.dataSite) == null ? void 0 : _a.organizationId) != null; 25677 }, 25678 isDBA() { 25679 var _a, _b, _c, _d, _e, _f; 25680 return ((_c = (_b = (_a = this.dataSite) == null ? void 0 : _a.user) == null ? void 0 : _b.ddcUserData) == null ? void 0 : _c.dbaWebsiteOptIn) ?? !!((_f = (_e = (_d = this.dataSite) == null ? void 0 : _d.user) == null ? void 0 : _e.ddcUserData) == null ? void 0 : _f.dbaName); 25681 }, 25682 hasSocialIcons() { 25683 return this.blockFacebook || this.blockInstagram || this.blockLinkedin || this.blockTwitter || this.blockYoutube; 25684 }, 25685 hasDuplicateTitle() { 25686 if (this.managingPartner && this.blockContactTitle) { 25687 if (this.managingPartner.toLowerCase().trim() === this.blockContactTitle.toLowerCase().trim()) { 25688 return true; 25689 } 25690 } 25691 return false; 25692 }, 25693 memberSelected() { 25694 var _a, _b; 25695 return (_b = (_a = this.dataSite) == null ? void 0 : _a.teamMembers) == null ? void 0 : _b.find( 25696 (t) => this.settings["team-member"] !== -1 && t.id === this.settings["team-member"] 25697 ); 25698 }, 25699 isMemberSelected() { 25700 return !!this.memberSelected; 25701 } 25702 }, 25703 methods: { 25704 verifyAgentState(stateValue) { 25705 var _a, _b, _c; 25706 return ((_c = (_b = (_a = this.dataSite) == null ? void 0 : _a.user) == null ? void 0 : _b.ddcUserData) == null ? void 0 : _c.discBusLocAddrStateCode) === stateValue ? true : false; 25707 }, 25708 isMustacheValue(value) { 25709 return ["{{", "}}"].every( 25710 (item) => { 25711 var _a; 25712 return (_a = value == null ? void 0 : value.replace(/(^<\w*>)|(<\/\w*>$)/gi, "")) == null ? void 0 : _a.includes(item); 25713 } 25714 ); 25715 }, 25716 renderValue(value, fallback, extensionKey) { 25717 var _a, _b, _c, _d; 25718 if (this.isMemberSelected) { 25719 const renderedData = renderData(value, this.memberSelected); 25720 if (!renderedData && fallback) { 25721 return (_a = this.memberSelected) == null ? void 0 : _a[fallback]; 25722 } 25723 return renderedData; 25724 } 25725 const rendered = renderData(value, this.dataSite); 25726 const extension = extensionKey && this.isMustacheValue(value) && ((_d = (_c = (_b = this.dataSite) == null ? void 0 : _b.user) == null ? void 0 : _c.ddcUserData) == null ? void 0 : _d[extensionKey]); 25727 return extension ? `${rendered}-${extension}` : rendered; 25728 }, 25729 clickToCall(phoneNumber, extension) { 25730 const cleanPhoneNumber = phoneNumber && (phoneNumber == null ? void 0 : phoneNumber.replace(/[^0-9+]/g, "")); 25731 const cleanExtension = extension && (extension == null ? void 0 : extension.replace(/[^0-9+]/g, "")); 25732 if (cleanExtension) 25733 return `tel:${cleanPhoneNumber};${cleanExtension}`; 25734 return `tel:${cleanPhoneNumber}`; 25735 }, 25736 getLicenses(stateCountyCode) { 25737 let licenses = licenseItems( 25738 { 25739 stateCountyCode, 25740 licenseLobCode: "80", 25741 busLicenseTpCode: "I", 25742 busEntityCode: "001" 25743 }, 25744 this.licenses 25745 ); 25746 licenses = licenses.concat( 25747 licenseItems( 25748 { 25749 stateCountyCode, 25750 licenseLobCode: ["80", "70", "60", "50", "40"], 25751 busLicenseTpCode: "I", 25752 busEntityCode: "002" 25753 }, 25754 this.licenses 25755 ) 25756 ); 25757 licenses = licenses.concat( 25758 licenseItems( 25759 { 25760 stateCountyCode, 25761 licenseLobCode: "80", 25762 busLicenseTpCode: "I", 25763 busEntityCode: "004" 25764 }, 25765 this.licenses 25766 ) 25767 ); 25768 return licenses.filter(
25769 (obj, index2, self2) => index2 === self2.findIndex( 25770 (t) => t.stateCountyCode === obj.stateCountyCode 25771 ) 25772 ); 25773 }, 25774 addEndColon(str) { 25775 return str ? `${str}: ` : str; 25776 } 25777 } 25778}; 25779const _hoisted_1$4n = { 25780 key: 0, 25781 class: "block__section_photo" 25782}; 25783const _hoisted_2$3Z = { 25784 key: 0, 25785 class: "block__icon_group" 25786}; 25787const _hoisted_3$A = { class: "contactAgentContainer" }; 25788const _hoisted_4$q = { class: "contactNameContainer" }; 25789const _hoisted_5$p = ["innerHTML"]; 25790const _hoisted_6$g = { class: "contactInfoContainer" }; 25791const _hoisted_7$d = { 25792 key: 0, 25793 class: "block__section_info_contact" 25794}; 25795const _hoisted_8$d = ["innerHTML"]; 25796const _hoisted_9$b = ["title", "href"]; 25797const _hoisted_10$9 = { 25798 key: 1, 25799 class: "block__section_info_contact" 25800}; 25801const _hoisted_11$8 = ["innerHTML"]; 25802const _hoisted_12$8 = ["title", "href"]; 25803const _hoisted_13$8 = { 25804 key: 2, 25805 class: "block__section_info_contact" 25806}; 25807const _hoisted_14$8 = ["innerHTML"]; 25808const _hoisted_15$8 = ["title", "href"]; 25809const _hoisted_16$7 = { 25810 key: 3, 25811 class: "block__section_info_contact" 25812}; 25813const _hoisted_17$6 = ["innerHTML"]; 25814const _hoisted_18$6 = ["title", "href"]; 25815const _hoisted_19$6 = { 25816 key: 4, 25817 class: "block__section_info_contact" 25818}; 25819const _hoisted_20$4 = ["title", "href"]; 25820const _hoisted_21$3 = { 25821 key: 5, 25822 class: "block__section_info_contact" 25823}; 25824const _hoisted_22$2 = ["title"]; 25825const _hoisted_23$2 = { 25826 key: 6, 25827 class: "block__section_info_contact" 25828}; 25829const _hoisted_24$2 = ["href", "title"]; 25830const _hoisted_25$2 = { 25831 key: 7, 25832 class: "block__section_info_contact" 25833}; 25834const _hoisted_26$2 = { class: "block__section_info_address" }; 25835const _hoisted_27$2 = ["innerHTML"]; 25836const _hoisted_28$2 = ["href"]; 25837const _hoisted_29$2 = ["title"]; 25838const _hoisted_30$2 = ["title"]; 25839const _hoisted_31$2 = ["title"]; 25840const _hoisted_32$2 = { 25841 key: 8, 25842 class: "block__section_info_contact" 25843}; 25844const _hoisted_33$2 = { class: "block__section_info_address" }; 25845const _hoisted_34$2 = ["innerHTML"]; 25846const _hoisted_35$2 = ["href"]; 25847const _hoisted_36$2 = ["title"]; 25848const _hoisted_37$1 = ["title"]; 25849const _hoisted_38$1 = ["title"]; 25850const _hoisted_39$1 = { 25851 key: 9, 25852 class: "block__section_info_contact" 25853}; 25854const _hoisted_40$1 = { class: "block__section_info_address" }; 25855const _hoisted_41$1 = ["innerHTML"]; 25856const _hoisted_42$1 = ["href"]; 25857const _hoisted_43$1 = ["title"]; 25858const _hoisted_44$1 = ["title"]; 25859const _hoisted_45$1 = ["title"]; 25860const _hoisted_46$1 = { 25861 key: 10, 25862 class: "block__section-button-row" 25863}; 25864const _hoisted_47$1 = { 25865 key: 0, 25866 class: "block__button_container" 25867}; 25868const _hoisted_48$1 = { 25869 key: 1, 25870 class: "block__button_container" 25871}; 25872const _hoisted_49$1 = { 25873 key: 0, 25874 class: "block__icon_container block__icon_group" 25875}; 25876const _hoisted_50$1 = { 25877 key: 1, 25878 class: "block__section-button-row" 25879}; 25880const _hoisted_51$1 = { 25881 key: 0, 25882 class: "block__button_container" 25883}; 25884const _hoisted_52$1 = { 25885 key: 1, 25886 class: "block__button_container" 25887}; 25888function _sfc_render$3T(_ctx, _cache, $props, $setup, $data, $options) { 25889 const _component_CoreBlock = _sfc_main$4x; 25890 const _component_CoreIcon = __nuxt_component_1$7; 25891 return openBlock(), createElementBlock("div", { 25892 class: normalizeClass(["block__body", $options.mobileSettingsClasses]) 25893 }, [ 25894 $options.blockPhoto && !$options.photoBackground ? (openBlock(), createElementBlock("div", _hoisted_1$4n, [ 25895 withDirectives(createVNode(_component_CoreBlock, { 25896 "is-editable": $props.isEditable, 25897 settings: { 25898 alt: `Headshot of ${$options.blockContactName}`, 25899 height: $options.imageHeight, 25900 src: $options.blockPhoto, 25901 type: "image", 25902 width: $options.imageWidth, 25903 mediaMetadata: $options.photoMedia 25904 } 25905 }, null, 8, ["is-editable", "settings"]), [ 25906 [vShow, $options.toggleImage && !$options.hideProfileImageOnMobile] 25907 ]), 25908 !$options.photoTop && $options.hasSocialIcons ? (openBlock(), createElementBlock("div", _hoisted_2$3Z, [ 25909 createVNode(_component_CoreBlock, { 25910 settings: $options.socialLinksSettings, 25911 "is-editable": $props.isEditable 25912 }, null, 8, ["settings", "is-editable"]) 25913 ])) : createCommentVNode("", true) 25914 ])) : createCommentVNode("", true), 25915 createBaseVNode("div", { 25916 class: normalizeClass(["block__section_info", { "photo-background": $options.photoBackgroun
25916d }]), 25917 style: normalizeStyle([ 25918 $options.photoBackground ? { 25919 "background-image": `url('${$options.blockPhoto}')`, 25920 "background-position": "center", 25921 "background-repeat": "no-repeat" 25922 } : "" 25923 ]) 25924 }, [ 25925 $options.blockLogo && !$options.photoBackground ? (openBlock(), createBlock(_component_CoreBlock, { 25926 key: 0, 25927 "is-editable": $props.isEditable, 25928 settings: { 25929 alt: "Logo", 25930 height: "auto", 25931 src: $options.blockLogo, 25932 type: "image", 25933 width: "350px", 25934 mediaMetadata: $options.logoMedia 25935 } 25936 }, null, 8, ["is-editable", "settings"])) : createCommentVNode("", true), 25937 createBaseVNode("div", _hoisted_3$A, [ 25938 withDirectives(createVNode(_component_CoreBlock, { 25939 "is-editable": $props.isEditable, 25940 settings: { 25941 type: "text", 25942 text: $options.blockDBAName, 25943 tag: "h5", 25944 variants: { 25945 size: "text", 25946 class: $options.dbaOnly ? "contact-name" : "contact-title" 25947 } 25948 } 25949 }, null, 8, ["is-editable", "settings"]), [ 25950 [vShow, $options.isDBA && $options.toggleDBA] 25951 ]), 25952 withDirectives(createVNode(_component_CoreBlock, { 25953 "is-editable": $props.isEditable, 25954 settings: { 25955 type: "text", 25956 text: $options.blockGoName, 25957 tag: $options.isGo && $options.isAgent ? "h5" : "h6", 25958 variants: { size: "title", class: "contact-name-go" } 25959 } 25960 }, null, 8, ["is-editable", "settings"]), [ 25961 [vShow, $options.isGo] 25962 ]), 25963 createBaseVNode("div", _hoisted_4$q, [ 25964 createBaseVNode("div", { 25965 class: normalizeClass([ 25966 { block__name: $options.toggleDesignation }, 25967 "block__designation_name_group" 25968 ]) 25969 }, [ 25970 withDirectives(createVNode(_component_CoreBlock, { 25971 "is-editable": $props.isEditable, 25972 class: normalizeClass( 25973 $options.designationCharacters > 25 ? "designations-long" : "designations-short" 25974 ), 25975 settings: { 25976 type: "text", 25977 text: `${$options.blockContactName.replace( 25978 /^\s+|\s+$/g, 25979 `` 25980 )}${$options.toggleDesignation && $options.toggleName && $options.blockContactDesignation ? `,` : ``}`, 25981 tag: $options.blockDBAName === "" || $options.isAgent && !$options.isGo ? "h5" : "h6", 25982 variants: { 25983 size: $options.isGo ? "text" : "title", 25984 class: $options.isGo ? "contact-title" : "contact-name" 25985 } 25986 } 25987 }, null, 8, ["is-editable", "class", "settings"]), [ 25988 [vShow, $options.toggleName] 25989 ]), 25990 withDirectives(createBaseVNode("span", { 25991 class: normalizeClass(`block__name_designation ${$options.blockDBAName === "" || $options.isAgent && !$options.isGo ? "block__name_designation_h5" : "block__name_designation_h6"}`), 25992 innerHTML: $options.htmlFormattedDesignation 25993 }, null, 10, _hoisted_5$p), [ 25994 [vShow, $options.toggleDesignation && $options.toggleName] 25995 ]) 25996 ], 2), 25997 withDirectives(createVNode(_component_CoreBlock, { 25998 "is-editable": $props.isEditable, 25999 settings: { 26000 type: "text", 26001 text: $options.managingPartner, 26002 tag: "h6", 26003 variants: { size: "text", class: "contact-title" } 26004 } 26005 }, null, 8, ["is-editable", "settings"]), [ 26006 [vShow, $options.toggleTitle && $options.isGo] 26007 ]) 26008 ]), 26009 withDirectives(createVNode(_component_CoreBlock, { 26010 "is-editable": $props.isEditable, 26011 settings: { 26012 type: "text", 26013 text: $options.blockContactTitle, 26014 tag: "h6", 26015 variants: { 26016 size: $options.isGo ? "text" : "title", 26017 class: "contact-title" 26018 } 26019 } 26020 }, null, 8, ["is-editable", "settings"]), [ 26021 [vShow, $options.toggleName && $options.toggleTitle && !$options.hasDuplicateTitle] 26022 ]), 26023 withDirectives(createVNode(_component_CoreBlock, { 26024 "is-editable": $props.isEditable, 26025 settings: { 26026 type: "text", 26027 text: $options.blockContactTitle2, 26028 tag: "h6", 26029 variants: { 26030 size: "text", 26031 class: "contact-title" 26032 } 26033 } 26034 }, null, 8, ["is-editable", "settings"]), [ 26035 [vShow, $options.toggleName && $options.toggleTitle2] 26036 ]), 26037 withDirectives(createVNode(_component_CoreBlock, { 26038 "is-editable": $props.isEditable, 26039 settings: { 26040 type: "text", 26041 text: $options.blockContactTitle3, 26042 tag: "h6", 26043 variants: { 26044 size: "text", 26045 class: "contact-title" 26046 } 26047 } 26048 }, null, 8, ["is-editable", "settings"]), [ 26049 [vShow, $options.toggleName && $options.toggleTitle3] 26050 ]), 26051 withDirectives(createVNode(_component_CoreBlock, { 26052 "is-editable": $props.isEditable, 26053 settings: { 26054 type: "text", 26055 text: $options.blockContactTitle4, 26056 tag: "h6", 26057 variants: { 26058 size: "text", 26059 class: "contact-title" 26060 } 26061 } 26062 }, null, 8, ["is-editable", "settings"]), [ 26063 [vShow, $options.toggleName && $options.toggleTitle4] 26064 ]), 26065 withDirectives(createVNode(_component_CoreBlock, { 26066 "is-editable": $props.isEditable, 26067 settings: { 26068 type: "text", 26069 text: $options.blockEntityTitle, 26070 tag: "h6", 26071 variants: { 26072 size: $options.isGo ? "text" : "title", 26073 class: "contact-entity-title" 26074 } 26075 } 26076 }, null, 8, ["is-editable", "settings"]), [ 26077 [vShow, $options.toggleEntityTitle] 26078 ]), 26079 $options.blockContactDescription ? (openBlock(), createBlock(_component_CoreBlock, { 26080 key: 0, 26081 "is-editable": $props.isEditable, 26082 settings: { 26083 type: "text", 26084 tag: "p", 26085 text: $options.blockContactDescription, 26086 variants: { 26087 class: "contact-description", 26088 align: $options.alignContent 26089 } 26090 } 26091 }, null, 8, ["is-editable", "settings"])) : createCommentVNode("", true) 26092 ]), 26093 createBaseVNode("div", _hoisted_6$g, [ 26094 $options.blockContactLandline ? (openBlock(), createElementBlock("div", _hoisted_7$d, [ 26095 createVNode(_component_CoreIcon, { 26096 icon: "phone", 26097 class: "icon", 26098 settings: { ["aria-label"]: $options.blockContactLandline } 26099 }, null, 8, ["settings"]), 26100 $options.blockContactLandlineLabel ? (openBlock(), createElementBlock("span", { 26101 key: 0, 26102 innerHTML: $options.blockContactLandlineLabel 26103 }, null, 8, _hoisted_8$d)) : createCommentVNode("", true), 26104 createBaseVNode("a", { 26105 title: $options.blockContactLandline, 26106 href: $options.clickToCall( 26107 $options.renderValue($props.settings.landline), 26108 $options.renderValue($props.settings.extension) 26109 ) 26110 }, toDisplayString($options.blockContactLandline), 9, _hoisted_9$b) 26111 ])) : createCommentVNode("", true), 26112 $options.blockContactAltPhone1 ? (openBlock(), createElementBlock("div", _hoisted_10$9, [ 26113 createVNode(_component_CoreIcon, { 26114 icon: "phone", 26115 class: "icon", 26116 settings: { ["aria-label"]: $options.blockContactAltPhone1 } 26117 }, null, 8, ["settings"]), 26118 $options.blockContactAltPhone1Label ? (openBlock(), createElementBlock("span", { 26119 key: 0, 26120 innerHTML: $options.blockContactAltPhone1Label 26121 }, null, 8, _hoisted_11$8)) : createCommentVNode("", true), 26122 createBaseVNode("a", { 26123 title: $options.blockContactAltPhone1, 26124 href: $options.clickToCall( 26125 $options.renderValue($props.settings.alt_phone_1), 26126 $options.renderValue($props.settings.extension_alt_phone_1) 26127 ) 26128 }, toDisplayString($options.blockContactAltPhone1), 9, _hoisted_12$8) 26129 ])) : createCommentVNode("", true), 26130 $options.blockContactAltPhone2 ? (openBlock(), createElementBlock("div", _hoisted_13$8, [ 26131 createVNode(_component_CoreIcon, { 26132 icon: "phone", 26133 class: "icon", 26134 settings: { ["aria-label"]: $options.blockContactAltPhone2 } 26135 }, null, 8, ["settings"]), 26136 $options.blockContactAltPhone2Label ? (openBlock(), createElementBlock("span", { 26137 key: 0, 26138 innerHTML: $options.blockContactAltPhone2Label 26139 }, null, 8, _hoisted_14$8)) : createCommentVNode("", true), 26140 createBaseVNode("a", { 26141 title: $options.blockContactAltPhone2, 26142 href: $options.clickToCall( 26143 $options.renderValue($props.settings.alt_phone_2), 26144 $options.renderValue($props.settings.extension_alt_phone_2) 26145 ) 26146 }, toDisplayString($options.blockContactAltPhone2), 9, _hoisted_15$8) 26147 ])) : createCommentVNode("", true), 26148 $options.blockContactAltPhone3 ? (openBlock(), createElementBlock("div", _hoisted_16$7, [ 26149 createVNode(_component_CoreIcon, { 26150 icon: "phone", 26151 class: "icon", 26152 settings: { ["aria-label"]: $options.blockContactAltPhone3 } 26153 }, null, 8, ["settings"]), 26154 $options.blockContactAltPhone3Label ? (openBlock(), createElementBlock("span", { 26155 key: 0, 26156 innerHTML: $options.blockContactAltPhone3Label 26157 }, null, 8, _hoisted_17$6)) : createCommentVNode("", true), 26158 createBaseVNode("a", { 26159 title: $options.blockContactAltPhone3, 26160 href: $options.clickToCall( 26161 $options.renderValue($props.settings.alt_phone_3), 26162 $options.renderValue($props.settings.extension_alt_phone_3) 26163 ) 26164 }, toDisplayString($options.blockContactAltPhone3), 9, _hoisted_18$6) 26165 ])) : createCommentVNode("", true), 26166 $options.blockContactMobile ? (openBlock(), createElementBlock("div", _hoisted_19$6, [ 26167 createVNode(_component_CoreIcon, { 26168 icon: "mobile-phone", 26169 class: "icon", 26170 settings: { ["aria-label"]: $options.blockContactMobile } 26171 }, null, 8, ["settings"]), 26172 createBaseVNode("a", { 26173 title: $options.blockContactMobile, 26174 href: $options.clickToCall($options.renderValue($props.settings.mobile)) 26175 }, toDisplayString($options.blockContactMobile), 9, _hoisted_20$4) 26176 ])) : createCommentVNode("", true), 26177 $options.blockContactFax ? (openBlock(), createElementBlock("div", _hoisted_21$3, [ 26178 createVNode(_component_CoreIcon, { 26179 icon: "fax", 26180 class: "icon", 26181 settings: { ["aria-label"]: $options.blockContactFax } 26182 }, null, 8, ["settings"]), 26183 createBaseVNode("p", { 26184 class: "fax", 26185 title: $options.blockContactFax 26186 }, toDisplayString($options.blockContactFax), 9, _hoisted_22$2) 26187 ])) : createCommentVNode("", true), 26188 $options.blockContactEmail ? (openBlock(), createElementBlock("div", _hoisted_23$2, [ 26189 createVNode(_component_CoreIcon, { 26190 icon: "email", 26191 class: "icon", 26192 settings: { ["aria-label"]: $options.blockContactEmail } 26193 }, null, 8, ["settings"]), 26194 createBaseVNode("a", { 26195 href: `mailto:${$options.blockContactEmail}`, 26196 class: "email", 26197 title: $options.blockContactEmail 26198 }, toDisplayString($options.blockContactEmail), 9, _hoisted_24$2) 26199 ])) : createCommentVNode("", true), 26200 $options.hasAddressSection ? (openBlock(), createElementBlock("div", _hoisted_25$2, [ 26201 createVNode(_component_CoreIcon, { 26202 icon: "map-pin", 26203 class: "icon" 26204 }), 26205 createBaseVNode("div", _hoisted_26$2, [ 26206 $options.blockContactAddressLabel ? (openBlock(), createElementBlock("span", { 26207 key: 0, 26208 innerHTML: $options.blockContactAddressLabel 26209 }, null, 8, _hoisted_27$2)) : createCommentVNode("", true), 26210 createBaseVNode("a", { 26211 href: $options.cleanAddress, 26212 target: "_blank" 26213 }, [ 26214 createBaseVNode("p", { title: $options.blockContactAddressLine1 }, toDisplayString($options.blockContactAddressLine1), 9, _hoisted_29$2), 26215 $options.blockContactAddressLine2 ? (openBlock(), createElementBlock("p", { 26216 key: 0, 26217 title: $options.blockContactAddressLine2 26218 }, toDisplayString($options.blockContactAddressLine2), 9, _hoisted_30$2)) : createCommentVNode("", true), 26219 createBaseVNode("p", { 26220 title: `${$options.blockContactAddressCity}${$options.blockContactAddressState}${$options.blockContactAddressZip}` 26221 }, toDisplayString($options.blockContactAddressCity) + ", " + toDisplayString($options.blockContactAddressState) + " " + toDisplayString($options.blockContactAddressZip), 9, _hoisted_31$2) 26222 ], 8, _hoisted_28$2) 26223 ]) 26224 ])) : createCommentVNode("", true), 26225 $options.hasAddress2Section ? (openBlock(), createElementBlock("div", _hoisted_32$2, [ 26226 createVNode(_component_CoreIcon, { 26227 icon: "map-pin", 26228 class: "icon" 26229 }), 26230 createBaseVNode("div", _hoisted_33$2, [ 26231 $options.blockContactAddress2Label ? (openBlock(), createElementBlock("span", { 26232 key: 0, 26233 innerHTML: $options.blockContactAddress2Label 26234 }, null, 8, _hoisted_34$2)) : createCommentVNode("", true), 26235 createBaseVNode("a", { 26236 href: $options.cleanAddress2, 26237 target: "_blank" 26238 }, [ 26239 createBaseVNode("p", { title: $options.blockContactAddress2Line1 }, toDisplayString($options.blockContactAddress2Line1), 9, _hoisted_36$2), 26240 $options.blockContactAddress2Line2 ? (openBlock(), createElementBlock("p", { 26241 key: 0, 26242 title: $options.blockContactAddress2Line2 26243 }, toDisplayString($options.blockContactAddress2Line2), 9, _hoisted_37$1)) : createCommentVNode("", true), 26244 createBaseVNode("p", { 26245 title: `${$options.blockContactAddress2City}${$options.blockContactAddress2State}${$options.blockContactAddress2Zip}` 26246 }, toDisplayString($options.blockContactAddress2City) + " " + toDisplayString($options.blockContactAddress2State) + " " + toDisplayString($options.blockContactAddress2Zip), 9, _hoisted_38$1) 26247 ], 8, _hoisted_35$2) 26248 ]) 26249 ])) : createCommentVNode("", true), 26250 $options.hasAddress3Section ? (openBlock(), createElementBlock("div", _hoisted_39$1, [ 26251 createVNode(_component_CoreIcon, { 26252 icon: "map-pin", 26253 class: "icon" 26254 }), 26255 createBaseVNode("div", _hoisted_40$1, [ 26256 $options.blockContactAddress3Label ? (openBlock(), createElementBlock("span", { 26257 key: 0, 26258 innerHTML: $options.blockContactAddress3Label 26259 }, null, 8, _hoisted_41$1)) : createCommentVNode("", true), 26260 createBaseVNode("a", { 26261 href: $options.cleanAddress3, 26262 target: "_blank" 26263 }, [ 26264 createBaseVNode("p", { title: $options.blockContactAddress3Line1 }, toDisplayString($options.blockContactAddress3Line1), 9, _hoisted_43$1), 26265 $options.blockContactAddress3Line2 ? (openBlock(), createElementBlock("p", { 26266 key: 0, 26267 title: $options.blockContactAddress3Line2 26268 }, toDisplayString($options.blockContactAddress3Line2), 9, _hoisted_44$1)) : createCommentVNode("", true), 26269 createBaseVNod
26269e("p", { 26270 title: `${$options.blockContactAddress3City}${$options.blockContactAddress3State}${$options.blockContactAddress3Zip}` 26271 }, toDisplayString($options.blockContactAddress3City) + " " + toDisplayString($options.blockContactAddress3State) + " " + toDisplayString($options.blockContactAddress3Zip), 9, _hoisted_45$1) 26272 ], 8, _hoisted_42$1) 26273 ]) 26274 ])) : createCommentVNode("", true), 26275 $options.toggleButton || $options.toggleButton2 ? (openBlock(), createElementBlock("div", _hoisted_46$1, [ 26276 $options.toggleButton && $options.photoSides ? (openBlock(), createElementBlock("div", _hoisted_47$1, [ 26277 createVNode(_component_CoreBlock, { 26278 "is-editable": $props.isEditable, 26279 settings: $options.buttonSettings 26280 }, null, 8, ["is-editable", "settings"]) 26281 ])) : createCommentVNode("", true), 26282 $options.toggleButton2 && $options.photoSides ? (openBlock(), createElementBlock("div", _hoisted_48$1, [ 26283 createVNode(_component_CoreBlock, { 26284 "is-editable": $props.isEditable, 26285 settings: $options.button2Settings 26286 }, null, 8, ["is-editable", "settings"]) 26287 ])) : createCommentVNode("", true) 26288 ])) : createCommentVNode("", true) 26289 ]), 26290 $options.isDBA && $options.verifyAgentState("AR") && $options.licensesArkansas.length || $options.isAgent && $options.licensesArkansas.length ? withDirectives((openBlock(), createBlock(_component_CoreBlock, { 26291 key: 1, 26292 "is-editable": $props.isEditable, 26293 settings: { 26294 type: "rich-text", 26295 richText: `<span>AR Insurance License:</span> <span class='license-number'>#${$options.licensesArkansas[0].licenseIdNumber}</span>`, 26296 variants: { 26297 class: "info_license" 26298 } 26299 } 26300 }, null, 8, ["is-editable", "settings"])), [ 26301 [vShow, $options.toggleLicense] 26302 ]) : createCommentVNode("", true), 26303 $options.isDBA && $options.verifyAgentState("CA") && $options.licensesCalifornia.length || $options.isAgent && $options.licensesCalifornia.length ? withDirectives((openBlock(), createBlock(_component_CoreBlock, { 26304 key: 2, 26305 "is-editable": $props.isEditable, 26306 settings: { 26307 type: "rich-text", 26308 richText: `<span>CA Insurance License:</span> <span class='license-number'>#${$options.licensesCalifornia[0].licenseIdNumber}</span>`, 26309 variants: { 26310 class: "info_license" 26311 } 26312 } 26313 }, null, 8, ["is-editable", "settings"])), [ 26314 [vShow, $options.toggleLicense] 26315 ]) : createCommentVNode("", true), 26316 !$options.photoSides ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [ 26317 $options.hasSocialIcons ? (openBlock(), createElementBlock("div", _hoisted_49$1, [ 26318 createVNode(_component_CoreBlock, { 26319 "is-editable": $props.isEditable, 26320 settings: { 26321 ...$options.socialLinksSettings, 26322 variants: { 26323 style: "slim", 26324 align: $options.alignContent 26325 } 26326 } 26327 }, null, 8, ["is-editable", "settings"]) 26328 ])) : createCommentVNode("", true), 26329 $options.toggleButton || $options.toggleButton2 ? (openBlock(), createElementBlock("div", _hoisted_50$1, [ 26330 $options.toggleButton ? (openBlock(), createElementBlock("div", _hoisted_51$1, [ 26331 createVNode(_component_CoreBlock, { 26332 settings: $options.buttonSettings, 26333 "is-editable": $props.isEditable 26334 }, null, 8, ["settings", "is-editable"]) 26335 ])) : createCommentVNode("", true), 26336 $options.toggleButton2 ? (openBlock(), createElementBlock("div", _hoisted_52$1, [ 26337 createVNode(_component_CoreBlock, { 26338 "is-editable": $props.isEditable, 26339 settings: $options.button2Settings 26340 }, null, 8, ["is-editable", "settings"]) 26341 ])) : createCommentVNode("", true) 26342 ])) : createCommentVNode("", true) 26343 ], 64)) : createCommentVNode("", true) 26344 ], 6) 26345 ], 2); 26346} 26347const CoreBlockContactCard$2 = /* @__PURE__ */ _export_sfc(_sfc_main$4u, [["render", _sfc_render$3T]]); 26348const CoreBlockContactCard$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 26349 __proto__: null, 26350 default: CoreBlockContactCard$2 26351}, Symbol.toStringTag, { value: "Module" })); 26352function getPageSettings(page) { 26353 const settings = page == null ? void 0 : page.settings; 26354 if (typeof settings !== "string") return settings; 26355 try { 26356 return JSON.parse(settings); 26357 } catch { 26358 return settings; 26359 } 26360} 26361function isDisclosuresPage(page) { 26362 var _a; 26363 return Boolean((_a = getPageSettings(page)) == null ? void 0 : _a.isDisclosures); 26364} 26365const _sfc_main$4t = { 26366 name: "CoreBlockFooterDisclosures", 26367 components: { 26368 NuxtLink: __nuxt_component_2$5 26369 }, 26370 props: { 26371 site: { 26372 type: Object, 26373 required: true 26374 }, 26375 isMobile: { 26376 type: Boolean, 26377 default: false 26378 }, 26379 isEditable: { 26380 type: Boolean, 26381 default: false 26382 }, 26383 showDisclosuresPageLink: { 26384 type: Boolean, 26385 default: false 26386 }, 26387 accordionWrapper: { 26388 type: Boolean, 26389 default: true 26390 } 26391 }, 26392 data() { 26393 return { 26394 clonedSite: null 26395 }; 26396 }, 26397 computed: { 26398 user() { 26399 return this.site.user || {}; 26400 }, 26401 isRegisteredRep() { 26402 var _a; 26403 return ((_a = this.user.ddcUserData) == null ? void 0 : _a.regRepInd) === "Y"; 26404 }, 26405 businessLocationState() { 26406 var _a; 26407 return (_a = this.user.ddcUserData) == null ? void 0 : _a.discBusLocAddrStateCode;
26408 }, 26409 disclosures() { 26410 var _a; 26411 const disclosures = ((_a = this.site.footer) == null ? void 0 : _a.disclosures) || []; 26412 return disclosures.map((item) => renderData(item, this.clonedSite)); 26413 }, 26414 showDisclosures() { 26415 var _a; 26416 return !!((_a = this.site.footer) == null ? void 0 : _a.showDisclosures); 26417 }, 26418 disclosuresPage() { 26419 const pages = this.site.pages || []; 26420 return pages.find(isDisclosuresPage); 26421 }, 26422 disclosuresPageLink() { 26423 return this.disclosuresPage ? `/${this.disclosuresPage.handle}` : "#"; 26424 }, 26425 wrapperSettings() { 26426 return this.accordionWrapper ? this.accordionSettings : this.rowSettings; 26427 }, 26428 disclosureBlocks() { 26429 return this.disclosures.map((disclosure) => { 26430 return { 26431 type: "rich-text", 26432 variants: { 26433 size: "disclosure" 26434 }, 26435 richText: disclosure 26436 }; 26437 }); 26438 }, 26439 accordionSettings() { 26440 return { 26441 accordionText: "<h5>Disclosure</h5>", 26442 blocks: [...this.disclosureBlocks], 26443 defaultOpen: true, 26444 hasAccordion: true, 26445 locked: null, 26446 type: "accordion", 26447 variants: {} 26448 }; 26449 }, 26450 rowSettings() { 26451 return { 26452 type: "rows", 26453 rowHeight: "auto", 26454 variants: {}, 26455 blocks: [...this.disclosureBlocks] 26456 }; 26457 }, 26458 sellingInsuranceLicenses() { 26459 var _a; 26460 return this.sellingInsuranceLicensesLogic( 26461 (_a = this.user.ddcUserData) == null ? void 0 : _a.ddcLicenseData 26462 ); 26463 }, 26464 registeredAgentLicenses() { 26465 var _a; 26466 return this.registeredAgentLicensesLogic( 26467 (_a = this.user.ddcUserData) == null ? void 0 : _a.ddcLicenseData, 26468 this.isRegisteredRep, 26469 this.businessLocationState 26470 ); 26471 }, 26472 eagleAdvisorLicenses() { 26473 var _a; 26474 return this.eagleAdvisorLicensesLogic( 26475 (_a = this.user.ddcUserData) == null ? void 0 : _a.ddcLicenseData 26476 ); 26477 }, 26478 statesSellingInsurance() { 26479 return this.states(this.sellingInsuranceLicenses); 26480 }, 26481 arCaLicenseNumbers() { 26482 return this.formatArCaLicenseNumbers(this.sellingInsuranceLicenses); 26483 }, 26484 sellingInsuranceStateText() { 26485 return this.stateText(this.sellingInsuranceLicenses); 26486 }, 26487 statesRegisteredAgent() { 26488 return this.states(this.registeredAgentLicenses); 26489 }, 26490 registeredAgentStateText() { 26491 return this.stateText(this.registeredAgentLicenses); 26492 }, 26493 statesEagleFinancial() { 26494 return this.states(this.eagleAdvisorLicenses); 26495 },
26496 eagleFinancialStateText() { 26497 return this.stateText(this.eagleAdvisorLicenses); 26498 } 26499 }, 26500 watch: { 26501 // Only these two feed addDataToSite's mustache context â watch them 26502 // directly instead of deep-watching the whole (large) site tree. 26503 user: { 26504 handler() { 26505 this.addDataToSite(); 26506 }, 26507 deep: true 26508 }, 26509 "site.teamMembers": { 26510 handler() { 26511 this.addDataToSite(); 26512 }, 26513 deep: true 26514 } 26515 }, 26516 created() { 26517 this.addDataToSite(); 26518 }, 26519 methods: { 26520 sellingInsuranceLicensesLogic(allLicenses) { 26521 let licenses = this.licenses( 26522 { 26523 licenseLobCode: "80", 26524 busLicenseTpCode: "I", 26525 busEntityCode: "001" 26526 }, 26527 allLicenses 26528 ); 26529 licenses = licenses.concat( 26530 this.licenses( 26531 { 26532 licenseLobCode: ["80", "70", "60", "50", "40"], 26533 busLicenseTpCode: "I", 26534 busEntityCode: "002" 26535 }, 26536 allLicenses 26537 ) 26538 ); 26539 licenses = licenses.concat( 26540 this.licenses( 26541 { 26542 licenseLobCode: "80", 26543 busLicenseTpCode: "I", 26544 busEntityCode: "004" 26545 }, 26546 allLicenses 26547 ) 26548 ); 26549 return licenses.filter( 26550 (obj, index2, self2) => index2 === self2.findIndex( 26551 (t) => t.stateCountyCode === obj.stateCountyCode 26552 ) 26553 ); 26554 }, 26555 registeredAgentLicensesLogic(allLicenses, isRegisteredRep, businessLocationState) { 26556 if (!isRegisteredRep) { 26557 return []; 26558 } 26559 const licenses = this.licenses( 26560 { 26561 licenseLobCode: ["30", "20"], 26562 busLicenseTpCode: "S" 26563 }, 26564 allLicenses 26565 ); 26566 if (!licenses.length) { 26567 const allowedStates = ["CO", "DC", "FL", "LA", "MD"]; 26568 if (allowedStates.includes(businessLocationState)) { 26569 return [ 26570 { 26571 stateCountyCode: businessLocationState 26572 } 26573 ]; 26574 } 26575 } 26576 return licenses; 26577 }, 26578 eagleAdvisorLicensesLogic(allLicenses) { 26579 return this.licenses({ eagleData: "Y" }, allLicenses); 26580 }, 26581 stateText(states) { 26582 return states.length > 1 ? "states" : "state"; 26583 }, 26584 licenses(args = {}, licenses) { 26585 return licenseItems(args, licenses); 26586 }, 26587 states(licenses) { 26588 const appendableStates = ["CA", "AR"]; 26589 const stateArray = licenses.map((license) => { 26590 const state = license.stateCountyCode; 26591 if (this.canShowLicenseNumber(license) && appendableStates.includes(state)) { 26592 return `${state} (${state} Insurance License #${license.licenseIdNumber})`; 26593 } 26594 if (!isNaN(state)) { 26595 return "FL"; 26596 } 26597 return state; 26598 }).join(",").split(","); 26599 stateArray.sort(); 26600 if (stateArray.length > 1) { 26601 const lastItem = stateArray.pop(); 26602 return `${stateArray.join(", ")}, and ${lastItem}`; 26603 } 26604 const singleState = stateArray[0].split(" ")[0].trim(); 26605 const fullState = licenseStates.find((state) => { 26606 return state.value === singleState; 26607 }); 26608 if (fullState) { 26609 const license = licenses.find( 26610 (l3) => l3.stateCountyCode === fullState.value 26611 ); 26612 if (this.canShowLicenseNumber(license) && appendableStates.includes(license.stateCountyCode.trim())) { 26613 return `${fullState.text} (${fullState.text} Insurance License #${license.licenseIdNumber})`; 26614 } 26615 return fullState.text; 26616 } 26617 return ""; 26618 }, 26619 formatArCaLicenseNumbers(licenses) { 26620 const appendableStates = ["AR", "CA"]; 26621 return licenses.filter( 26622 (license) => appendableStates.includes(license.stateCountyCode) && this.canShowLicenseNumber(license) 26623 ).sort( 26624 (a, b2) => a.stateCountyCode.localeCompare(b2.stateCountyCode) 26625 ).map((license) => { 26626 const state = license.stateCountyCode; 26627 return `(${state} Insurance License #${license.licenseIdNumber})`; 26628 }).join(" "); 26629 }, 26630 addDataToSite() { 26631 var _a, _b, _c; 26632 this.clonedSite = { 26633 statesSellingInsurance: this.statesSellingInsurance, 26634 arCaLicenseNumbers: this.arCaLicenseNumbers, 26635 statesRegisteredAgent: this.statesRegisteredAgent, 26636 sellingInsuranceStateText: this.sellingInsuranceStateText, 26637 registeredAgentStateText: this.registeredAgentStateText,
26638 eagleFinancialStateText: this.eagleFinancialStateText, 26639 statesEagleFinancial: this.statesEagleFinancial, 26640 ...this.site 26641 }; 26642 if (((_b = (_a = this.clonedSite) == null ? void 0 : _a.teamMembers) == null ? void 0 : _b.length) > 0) { 26643 const filteredTeamMembers = (_c = this.clonedSite) == null ? void 0 : _c.teamMembers.filter( 26644 (tm) => !!tm.nylId && tm.id !== -1 26645 ); 26646 filteredTeamMembers.forEach((tm) => { 26647 const licensesSellingInsurance = this.sellingInsuranceLicensesLogic(tm.licenses); 26648 const licensesEagle = this.eagleAdvisorLicensesLogic( 26649 tm.licenses 26650 ); 26651 const licensesRegRep = this.registeredAgentLicensesLogic( 26652 tm.licenses, 26653 tm.regRepInd === "Y", 26654 tm.discBusLocAddrStateCode 26655 ); 26656 this.clonedSite["statesSellingInsuranceTeamMember" + tm.id] = this.states(licensesSellingInsurance); 26657 this.clonedSite["sellingInsuranceStateTextTeamMember" + tm.id] = this.stateText(licensesSellingInsurance); 26658 this.clonedSite["statesEagleFinancialTeamMember" + tm.id] = this.states(licensesEagle);
26659 this.clonedSite["eagleFinancialStateTextTeamMember" + tm.id] = this.stateText(licensesEagle); 26660 this.clonedSite["statesRegisteredAgentTeamMember" + tm.id] = this.states(licensesRegRep); 26661 this.clonedSite["registeredAgentStateTextTeamMember" + tm.id] = this.stateText(licensesRegRep); 26662 }); 26663 } 26664 }, 26665 canShowLicenseNumber(license) { 26666 return (license == null ? void 0 : license.licenseIdNumber) && license.licenseLobCode !== "30" && // do not show license number if license is registered rep 26667 license.licenseLobCode !== "20" && license.busLicenseTpCode !== "S" && license.eagleData !== "Y"; 26668 } 26669 } 26670}; 26671function _sfc_render$3S(_ctx, _cache, $props, $setup, $data, $options) { 26672 const _component_CoreBlock = _sfc_main$4x; 26673 const _component_NuxtLink = __nuxt_component_2$5; 26674 return $options.showDisclosures && !$props.showDisclosuresPageLink ? (openBlock(), createBlock(_component_CoreBlock, { 26675 key: 0, 26676 class: normalizeClass(["disclosures", { "disclosures--mobile": $props.isMobile }]), 26677 settings: $options.wrapperSettings, 26678 "is-editable": $props.isEditable 26679 }, null, 8, ["class", "settings", "is-editable"])) : $options.showDisclosures && $props.showDisclosuresPageLink ? (openBlock(), createElementBlock("div", { 26680 key: 1, 26681 class: normalizeClass(["disclosures disclosures-page-link", { "disclosures--mobile": $props.isMobile }]), 26682 "data-testid": "disclosures-page-link" 26683 }, [ 26684 createVNode(_component_NuxtLink, { 26685 to: $options.disclosuresPageLink, 26686 class: "disclosures-page-link__link" 26687 }, { 26688 default: withCtx(() => _cache[0] || (_cache[0] = [ 26689 createTextVNode(" View Important Regulatory and Licensing Disclosures ") 26690 ])), 26691 _: 1 26692 }, 8, ["to"]), 26693 _cache[1] || (_cache[1] = createBaseVNode("p", { class: "disclosures-page-link__description" }, " This link includes important licensing and registration information, including, where applicable, insurance license information, state-specific license details, and securities and advisory role disclosures. ", -1)) 26694 ], 2)) : createCommentVNode("", true); 26695} 26696const __nuxt_component_0$d = /* @__PURE__ */ _export_sfc(_sfc_main$4t, [["render", _sfc_render$3S]]); 26697const CoreBlockFooterDisclosures = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 26698 __proto__: null, 26699 default: __nuxt_component_0$d 26700}, Symbol.toStringTag, { value: "Module" })); 26701const _hoisted_1$4m = { class: "block__body" }; 26702const _sfc_main$4s = { 26703 __name: "CoreBlockDisclosures", 26704 props: { 26705 settings: { 26706 type: Object, 26707 required: true 26708 }, 26709 dataSite: { 26710 type: Object, 26711 default: () => ({}) 26712 }, 26713 isBuilderMobile: { 26714 type: Boolean, 26715 default: false 26716 } 26717 }, 26718 setup(__props) { 26719 return (_ctx, _cache) => { 26720 return openBlock(), createElementBlock("div", _hoisted_1$4m, [ 26721 createVNode(__nuxt_component_0$d, { 26722 site: __props.dataSite, 26723 "is-mobile": __props.isBuilderMobile, 26724 "show-disclosures-page-link": false, 26725 "accordion-wrapper": false 26726 }, null, 8, ["site", "is-mobile"]) 26727 ]); 26728 }; 26729 } 26730}; 26731const CoreBlockDisclosures = /* @__PURE__ */ _export_sfc(_sfc_main$4s, [["__scopeId", "data-v-ac6abd73"]]); 26732const CoreBlockDisclosures$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 26733 __proto__: null, 26734 default: CoreBlockDisclosures 26735}, Symbol.toStringTag, { value: "Module" })); 26736const _sfc_main$4r = { 26737 name: "CoreIconCircleCheck", 26738 props: { 26739 settings: { 26740 type: Object, 26741 required: false 26742 } 26743 }, 26744 computed: { 26745 alt() { 26746 var _a, _b; 26747 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 26748 }, 26749 id() { 26750 var _a, _b; 26751 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 26752 } 26753 } 26754}; 26755const _hoisted_1$4l = ["aria-labelledby", "aria-label"]; 26756const _hoisted_2$3Y = ["id"]; 26757function _sfc_render$3R(_ctx, _cache, $props, $setup, $data, $options) { 26758 return openBlock(), createElementBlock("svg", { 26759 width: "24", 26760 height: "24",
26761 viewBox: "0 0 24 24", 26762 fill: "none", 26763 xmlns: "http://www.w3.org/2000/svg", 26764 role: "img", 26765 "aria-labelledby": `icon-title-${$options.id}`, 26766 "aria-label": $options.alt 26767 }, [ 26768 createBaseVNode("title", { 26769 id: `icon-title-${$options.id}` 26770 }, toDisplayString($options.alt), 9, _hoisted_2$3Y), 26771 _cache[0] || (_cache[0] = createBaseVNode("path", { 26772 "fill-rule": "evenodd", 26773 "clip-rule": "evenodd", 26774 d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM18.7016 8.71257C19.0951 8.32508 19.1001 7.69194 18.7126 7.2984C18.3251 6.90486 17.6919 6.89995 17.2984 7.28743L9.88046 14.5912L6.70711 11.4179C6.31658 11.0274 5.68342 11.0274 5.29289 11.4179C4.90237 11.8084 4.90237 12.4416 5.29289 12.8321L9.16789 16.7071C9.55628 17.0955 10.1852 17.0979 10.5766 16.7126L18.7016 8.71257Z", 26775 fill: "currentColor" 26776 }, null, -1)) 26777 ], 8, _hoisted_1$4l); 26778} 26779const __nuxt_component_0$c = /* @__PURE__ */ _export_sfc(_sfc_main$4r, [["render", _sfc_render$3R]]); 26780const CoreIconCircleCheck = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 26781 __proto__: null, 26782 default: __nuxt_component_0$c 26783}, Symbol.toStringTag, { value: "Module" })); 26784const _sfc_main$4q = { 26785 name: "CoreIconError", 26786 props: { 26787 settings: { 26788 type: Object, 26789 required: false 26790 } 26791 }, 26792 computed: { 26793 alt() { 26794 var _a, _b; 26795 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 26796 }, 26797 id() { 26798 var _a, _b; 26799 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 26800 } 26801 } 26802}; 26803const _hoisted_1$4k = ["aria-labelledby", "aria-label"]; 26804const _hoisted_2$3X = ["id"]; 26805function _sfc_render$3Q(_ctx, _cache, $props, $setup, $data, $options) { 26806 return openBlock(), createElementBlock("svg", { 26807 width: "24", 26808 height: "24", 26809 viewBox: "0 0 24 24", 26810 fill: "none", 26811 xmlns: "http://www.w3.org/2000/svg", 26812 role: "img", 26813 "aria-labelledby": `icon-title-${$options.id}`, 26814 "aria-label": $options.alt 26815 }, [ 26816 createBaseVNode("title", { 26817 id: `icon-title-${$options.id}` 26818 }, toDisplayString($options.alt), 9, _hoisted_2$3X), 26819 _cache[0] || (_cache[0] = createBaseVNode("path", { 26820 d: "M10.738 3.96274L2.26802 18.1027C2.09339 18.4052 2.00099 18.748 2.00001 19.0973C1.99903 19.4465 2.08951 19.7899 2.26245 20.0933C2.43538 20.3967 2.68474 20.6495 2.98573 20.8266C3.28671 21.0037 3.62882 21.0989 3.97802 21.1027H20.918C21.2672 21.0989 21.6093 21.0037 21.9103 20.8266C22.2113 20.6495 22.4607 20.3967 22.6336 20.0933C22.8065 19.7899 22.897 19.4465 22.896 19.0973C22.8951 18.748 22.8027 18.4052 22.628 18.1027L14.158 3.96274C13.9797 3.66885 13.7287 3.42586 13.4292 3.25723C13.1297 3.08859 12.7918 3 12.448 3C12.1043 3 11.7663 3.08859 11.4668 3.25723C11.1673 3.42586 10.9163 3.66885 10.738 3.96274V3.96274Z", 26821 stroke: "currentColor", 26822 "stroke-width": "2", 26823 "stroke-linecap": "round", 26824 "stroke-linejoin": "round" 26825 }, null, -1)), 26826 _cache[1] || (_cache[1] = createBaseVNode("path", { 26827 d: "M12.448 9.10278V13.1028", 26828 stroke: "currentColor", 26829 "stroke-width": "2", 26830 "stroke-linecap": "round", 26831 "stroke-linejoin": "round" 26832 }, null, -1)), 26833 _cache[2] || (_cache[2] = createBaseVNode("path", { 26834 d: "M12.448 17.1028H12.458", 26835 stroke: "currentColor", 26836 "stroke-width": "2", 26837 "stroke-linecap": "round", 26838 "stroke-linejoin": "round" 26839 }, null, -1)) 26840 ], 8, _hoisted_1$4k); 26841} 26842const __nuxt_component_2$4 = /* @__PURE__ */ _export_sfc(_sfc_main$4q, [["render", _sfc_render$3Q]]); 26843const CoreIconError = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 26844 __proto__: null, 26845 default: __nuxt_component_2$4 26846}, Symbol.toStringTag, { value: "Module" })); 26847const _hoisted_1$4j = { class: "tooltip-wrapper" }; 26848const _hoisted_2$3W = { 26849 class: "tooltip", 26850 type: "button", 26851 tabindex: "0", 26852 role: "tooltip" 26853}; 26854const _hoisted_3$z = ["id"]; 26855const _sfc_main$4p = { 26856 __name: "CoreBlockAccessibleTooltip", 26857 props: { 26858 id: { 26859 type: String, 26860 required: true 26861 }, 26862 field: { 26863 type: Object, 26864 required: true 26865 } 26866 }, 26867 setup(__props) { 26868 const props = __props; 26869 const tooltip = computed(() => { 26870 return props.field.tooltip; 26871 }); 26872 return (_ctx, _cache) => { 26873 return openBlock(), createElementBlock("div", _hoisted_1$4j, [ 26874 createBaseVNode("div", _hoisted_2$3W, [ 26875 (openBlock(), createBlock(resolveDynamicComponent(`CoreIcon${tooltip.value.icon.name}`), { 26876 settings: { 26877 id: tooltip.value.icon.id, 26878 alt: tooltip.value.icon.alt 26879 } 26880 }, null, 8, ["settings"])), 26881 tooltip.value.content ? (openBlock(), createElementBlock("div", { 26882 key: 0, 26883 id: __props.id, 26884 class: "tooltip-content" 26885 }, toDisplayString(tooltip.value.content), 9, _hoisted_3$z)) : createCommentVNode("", true) 26886 ]) 26887 ]); 26888 }; 26889 } 26890}; 26891const __nuxt_component_0$b = /* @__PURE__ */ _export_sfc(_sfc_main$4p, [["__scopeId", "data-v-09be58b1"]]); 26892const CoreBlockAccessibleTooltip = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 26893 __proto__: null, 26894 default: __nuxt_component_0$b 26895}, Symbol.toStringTag, { value: "Module" })); 26896/** 26897 * vee-validate v4.15.0 26898 * (c) 2024 Abdelrahman Awad 26899 * @license MIT 26900 */ 26901function isCallable$1(fn) { 26902 return typeof fn === "function"; 26903} 26904function isNullOrUndefined$1(value) { 26905 return value === null || value === void 0; 26906} 26907const isObject = (obj) => obj !== null && !!obj && typeof obj === "object" && !Array.isArray(obj); 26908function isIndex(value) { 26909 return Number(value) >= 0; 26910} 26911function toNumber(value) { 26912 const n = parseFloat(value); 26913 return isNaN(n) ? value : n; 26914} 26915function isObjectLike$1(value) { 26916 return typeof value === "object" && value !== null; 26917} 26918function getTag$1(value) { 26919 if (value == null) {
vendor: 4,853 bytes, lines 26920-27071
26920 return value === void 0 ? "[object Undefined]" : "[object Null]"; 26921 } 26922 return Object.prototype.toString.call(value); 26923} 26924function isPlainObject$1(value) { 26925 if (!isObjectLike$1(value) || getTag$1(value) !== "[object Object]") { 26926 return false; 26927 } 26928 if (Object.getPrototypeOf(value) === null) { 26929 return true; 26930 } 26931 let proto = value; 26932 while (Object.getPrototypeOf(proto) !== null) { 26933 proto = Object.getPrototypeOf(proto); 26934 } 26935 return Object.getPrototypeOf(value) === proto; 26936} 26937function merge$1(target, source) { 26938 Object.keys(source).forEach((key) => { 26939 if (isPlainObject$1(source[key]) && isPlainObject$1(target[key])) { 26940 if (!target[key]) { 26941 target[key] = {}; 26942 } 26943 merge$1(target[key], source[key]); 26944 return; 26945 } 26946 target[key] = source[key]; 26947 }); 26948 return target; 26949} 26950function normalizeFormPath(path) { 26951 const pathArr = path.split("."); 26952 if (!pathArr.length) { 26953 return ""; 26954 } 26955 let fullPath = String(pathArr[0]); 26956 for (let i = 1; i < pathArr.length; i++) { 26957 if (isIndex(pathArr[i])) { 26958 fullPath += `[${pathArr[i]}]`; 26959 continue; 26960 } 26961 fullPath += `.${pathArr[i]}`; 26962 } 26963 return fullPath; 26964} 26965const RULES = {}; 26966function defineRule(id, validator2) { 26967 guardExtend(id, validator2); 26968 RULES[id] = validator2; 26969} 26970function resolveRule(id) { 26971 return RULES[id]; 26972} 26973function guardExtend(id, validator2) { 26974 if (isCallable$1(validator2)) { 26975 return; 26976 } 26977 throw new Error(`Extension Error: The validator '${id}' must be a function.`); 26978} 26979function set(obj, key, val) { 26980 if (typeof val.value === "object") val.value = klona(val.value); 26981 if (!val.enumerable || val.get || val.set || !val.configurable || !val.writable || key === "__proto__") { 26982 Object.defineProperty(obj, key, val); 26983 } else obj[key] = val.value; 26984} 26985function klona(x2) { 26986 if (typeof x2 !== "object") return x2; 26987 var i = 0, k3, list, tmp, str = Object.prototype.toString.call(x2); 26988 if (str === "[object Object]") { 26989 tmp = Object.create(x2.__proto__ || null); 26990 } else if (str === "[object Array]") { 26991 tmp = Array(x2.length); 26992 } else if (str === "[object Set]") { 26993 tmp = /* @__PURE__ */ new Set(); 26994 x2.forEach(function(val) { 26995 tmp.add(klona(val)); 26996 }); 26997 } else if (str === "[object Map]") { 26998 tmp = /* @__PURE__ */ new Map(); 26999 x2.forEach(function(val, key) { 27000 tmp.set(klona(key), klona(val)); 27001 }); 27002 } else if (str === "[object Date]") { 27003 tmp = /* @__PURE__ */ new Date(+x2); 27004 } else if (str === "[object RegExp]") { 27005 tmp = new RegExp(x2.source, x2.flags); 27006 } else if (str === "[object DataView]") { 27007 tmp = new x2.constructor(klona(x2.buffer)); 27008 } else if (str === "[object ArrayBuffer]") { 27009 tmp = x2.slice(0); 27010 } else if (str.slice(-6) === "Array]") { 27011 tmp = new x2.constructor(x2); 27012 } 27013 if (tmp) { 27014 for (list = Object.getOwnPropertySymbols(x2); i < list.length; i++) { 27015 set(tmp, list[i], Object.getOwnPropertyDescriptor(x2, list[i])); 27016 } 27017 for (i = 0, list = Object.getOwnPropertyNames(x2); i < list.length; i++) { 27018 if (Object.hasOwnProperty.call(tmp, k3 = list[i]) && tmp[k3] === x2[k3]) continue; 27019 set(tmp, k3, Object.getOwnPropertyDescriptor(x2, k3)); 27020 } 27021 } 27022 return tmp || x2; 27023} 27024const FormContextKey = Symbol("vee-validate-form"); 27025const PublicFormContextKey = Symbol("vee-validate-form-context"); 27026const FieldContextKey = Symbol("vee-validate-field-instance"); 27027const IS_ABSENT = Symbol("Default empty value"); 27028const isClient = typeof window !== "undefined"; 27029function isLocator(value) { 27030 return isCallable$1(value) && !!value.__locatorRef; 27031} 27032function isTypedSchema(value) { 27033 return !!value && isCallable$1(value.parse) && value.__type === "VVTypedSchema"; 27034} 27035function isYupValidator(value) { 27036 return !!value && isCallable$1(value.validate); 27037} 27038function hasCheckedAttr(type) { 27039 return type === "checkbox" || type === "radio"; 27040} 27041function isContainerValue(value) { 27042 return isObject(value) || Array.isArray(value); 27043} 27044function isEmptyContainer(value) { 27045 if (Array.isArray(value)) { 27046 return value.length === 0; 27047 } 27048 return isObject(value) && Object.keys(value).length === 0; 27049} 27050function isNotNestedPath(path) { 27051 return /^\[.+\]$/i.test(path); 27052} 27053function isNativeMultiSelect(el) { 27054 return isNativeSelect(el) && el.multiple; 27055} 27056function isNativeSelect(el) { 27057 return el.tagName === "SELECT"; 27058} 27059function isNativeMultiSelectNode(tag, attrs) { 27060 const hasTruthyBindingValue = ![false, null, void 0, 0].includes(attrs.multiple) && !Number.isNaN(attrs.multiple); 27061 return tag === "select" && "multiple" in attrs && hasTruthyBindingValue; 27062} 27063function shouldHaveValueBinding(tag, attrs) { 27064 return !isNativeMultiSelectNode(tag, attrs) && attrs.type !== "file" && !hasCheckedAttr(attrs.type); 27065} 27066function isFormSubmitEvent(evt) { 27067 return isEvent(evt) && evt.target && "submit" in evt.target; 27068} 27069function isEvent(evt) { 27070 if (!evt) { 27071 return false;
27072 } 27073 if (typeof Event !== "undefined" && isCallable$1(Event) && evt instanceof Event) { 27074 return true; 27075 } 27076 if (evt && evt.srcElement) { 27077 return true; 27078 } 27079 return false; 27080} 27081function isPropPresent(obj, prop) { 27082 return prop in obj && obj[prop] !== IS_ABSENT; 27083} 27084function isEqual(a, b2) { 27085 if (a === b2) 27086 return true; 27087 if (a && b2 && typeof a === "object" && typeof b2 === "object") { 27088 if (a.constructor !== b2.constructor) 27089 return false; 27090 var length, i, keys2; 27091 if (Array.isArray(a)) { 27092 length = a.length; 27093 if (length != b2.length) 27094 return false; 27095 for (i = length; i-- !== 0; ) 27096 if (!isEqual(a[i], b2[i])) 27097 return false; 27098 return true; 27099 } 27100 if (a instanceof Map && b2 instanceof Map) { 27101 if (a.size !== b2.size) 27102 return false; 27103 for (i of a.entries()) 27104 if (!b2.has(i[0])) 27105 return false; 27106 for (i of a.entries()) 27107 if (!isEqual(i[1], b2.get(i[0]))) 27108 return false; 27109 return true; 27110 } 27111 if (isFile(a) && isFile(b2)) { 27112 if (a.size !== b2.size) 27113 return false; 27114 if (a.name !== b2.name) 27115 return false; 27116 if (a.lastModified !== b2.lastModified) 27117 return false; 27118 if (a.type !== b2.type) 27119 return false; 27120 return true; 27121 } 27122 if (a instanceof Set && b2 instanceof Set) { 27123 if (a.size !== b2.size) 27124 return false; 27125 for (i of a.entries()) 27126 if (!b2.has(i[0])) 27127 return false; 27128 return true; 27129 } 27130 if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b2)) { 27131 length = a.length; 27132 if (length != b2.length) 27133 return false; 27134 for (i = length; i-- !== 0; ) 27135 if (a[i] !== b2[i]) 27136 return false; 27137 return true; 27138 } 27139 if (a.constructor === RegExp) 27140 return a.source === b2.source && a.flags === b2.flags; 27141 if (a.valueOf !== Object.prototype.valueOf) 27142 return a.valueOf() === b2.valueOf(); 27143 if (a.toString !== Object.prototype.toString) 27144 return a.toString() === b2.toString(); 27145 keys2 = Object.keys(a); 27146 length = keys2.length - countUndefinedValues(a, keys2); 27147 if (length !== Object.keys(b2).length - countUndefinedValues(b2, Object.keys(b2))) 27148 return false; 27149 for (i = length; i-- !== 0; ) { 27150 if (!Object.prototype.hasOwnProperty.call(b2, keys2[i])) 27151 return false; 27152 } 27153 for (i = length; i-- !== 0; ) { 27154 var key = keys2[i]; 27155 if (!isEqual(a[key], b2[key])) 27156 return false; 27157 } 27158 return true; 27159 } 27160 return a !== a && b2 !== b2; 27161} 27162function countUndefinedValues(a, keys2) { 27163 let result = 0; 27164 for (let i = keys2.length; i-- !== 0; ) { 27165 var key = keys2[i]; 27166 if (a[key] === void 0) 27167 result++; 27168 } 27169 return result; 27170} 27171function isFile(a) { 27172 if (!isClient) { 27173 return false; 27174 } 27175 return a instanceof File; 27176} 27177function cleanupNonNestedPath(path) { 27178 if (isNotNestedPath(path)) { 27179 return path.replace(/\[|\]/gi, ""); 27180 } 27181 return path; 27182} 27183function getFromPath(object, path, fallback) { 27184 if (!object) { 27185 return fallback; 27186 } 27187 if (isNotNestedPath(path)) { 27188 return object[cleanupNonNestedPath(path)]; 27189 } 27190 const resolvedValue = (path || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((acc, propKey) => { 27191 if (isContainerValue(acc) && propKey in acc) { 27192 return acc[propKey]; 27193 } 27194 return fallback; 27195 }, object); 27196 return resolvedValue; 27197} 27198function setInPath(object, path, value) { 27199 if (isNotNestedPath(path)) { 27200 object[cleanupNonNestedPath(path)] = value; 27201 return; 27202 } 27203 const keys2 = path.split(/\.|\[(\d+)\]/).filter(Boolean); 27204 let acc = object; 27205 for (let i = 0; i < keys2.length; i++) { 27206 if (i === keys2.length - 1) { 27207 acc[keys2[i]] = value; 27208 return; 27209 } 27210 if (!(keys2[i] in acc) || isNullOrUndefined$1(acc[keys2[i]])) { 27211 acc[keys2[i]] = isIndex(keys2[i + 1]) ? [] : {}; 27212 } 27213 acc = acc[keys2[i]]; 27214 } 27215} 27216function unset(object, key) { 27217 if (Array.isArray(object) && isIndex(key)) { 27218 object.splice(Number(key), 1); 27219 return; 27220 } 27221 if (isObject(object)) { 27222 delete object[key]; 27223 } 27224} 27225function unsetPath(object, path) { 27226 if (isNotNestedPath(path)) { 27227 delete object[cleanupNonNestedPath(path)]; 27228 return; 27229 }
27230 const keys2 = path.split(/\.|\[(\d+)\]/).filter(Boolean); 27231 let acc = object; 27232 for (let i = 0; i < keys2.length; i++) { 27233 if (i === keys2.length - 1) { 27234 unset(acc, keys2[i]); 27235 break; 27236 } 27237 if (!(keys2[i] in acc) || isNullOrUndefined$1(acc[keys2[i]])) { 27238 break; 27239 } 27240 acc = acc[keys2[i]]; 27241 } 27242 const pathValues = keys2.map((_, idx) => { 27243 return getFromPath(object, keys2.slice(0, idx).join(".")); 27244 }); 27245 for (let i = pathValues.length - 1; i >= 0; i--) { 27246 if (!isEmptyContainer(pathValues[i])) { 27247 continue; 27248 } 27249 if (i === 0) { 27250 unset(object, keys2[0]); 27251 continue; 27252 } 27253 unset(pathValues[i - 1], keys2[i - 1]); 27254 } 27255} 27256function keysOf(record) { 27257 return Object.keys(record); 27258} 27259function injectWithSelf(symbol, def2 = void 0) { 27260 const vm = getCurrentInstance(); 27261 return (vm === null || vm === void 0 ? void 0 : vm.provides[symbol]) || inject(symbol, def2); 27262} 27263function resolveNextCheckboxValue(currentValue, checkedValue, uncheckedValue) { 27264 if (Array.isArray(currentValue)) { 27265 const newVal = [...currentValue]; 27266 const idx = newVal.findIndex((v2) => isEqual(v2, checkedValue)); 27267 idx >= 0 ? newVal.splice(idx, 1) : newVal.push(checkedValue); 27268 return newVal; 27269 } 27270 return isEqual(currentValue, checkedValue) ? uncheckedValue : checkedValue; 27271} 27272function debounceAsync(inner, ms = 0) { 27273 let timer = null; 27274 let resolves = []; 27275 return function(...args) { 27276 if (timer) { 27277 clearTimeout(timer); 27278 } 27279 timer = setTimeout(() => { 27280 const result = inner(...args); 27281 resolves.forEach((r2) => r2(result)); 27282 resolves = []; 27283 }, ms); 27284 return new Promise((resolve2) => resolves.push(resolve2)); 27285 }; 27286} 27287function applyModelModifiers(value, modifiers) { 27288 if (!isObject(modifiers)) { 27289 return value; 27290 } 27291 if (modifiers.number) { 27292 return toNumber(value); 27293 } 27294 return value; 27295} 27296function withLatest(fn, onDone) { 27297 let latestRun; 27298 return async function runLatest(...args) { 27299 const pending = fn(...args); 27300 latestRun = pending; 27301 const result = await pending; 27302 if (pending !== latestRun) { 27303 return result; 27304 } 27305 latestRun = void 0; 27306 return onDone(result, args); 27307 }; 27308} 27309function normalizeErrorItem(message2) { 27310 return Array.isArray(message2) ? message2 : message2 ? [message2] : []; 27311} 27312function omit(obj, keys2) { 27313 const target = {}; 27314 for (const key in obj) { 27315 if (!keys2.includes(key)) { 27316 target[key] = obj[key]; 27317 } 27318 } 27319 return target; 27320} 27321function debounceNextTick(inner) { 27322 let lastTick = null; 27323 let resolves = []; 27324 return function(...args) { 27325 const thisTick = nextTick(() => { 27326 if (lastTick !== thisTick) { 27327 return; 27328 } 27329 const result = inner(...args); 27330 resolves.forEach((r2) => r2(result)); 27331 resolves = []; 27332 lastTick = null; 27333 }); 27334 lastTick = thisTick; 27335 return new Promise((resolve2) => resolves.push(resolve2)); 27336 }; 27337} 27338function normalizeChildren(tag, context, slotProps) { 27339 if (!context.slots.default) { 27340 return context.slots.default; 27341 } 27342 if (typeof tag === "string" || !tag) { 27343 return context.slots.default(slotProps()); 27344 } 27345 return { 27346 default: () => { 27347 var _a, _b; 27348 return (_b = (_a = context.slots).default) === null || _b === void 0 ? void 0 : _b.call(_a, slotProps()); 27349 } 27350 }; 27351} 27352function getBoundValue(el) { 27353 if (hasValueBinding(el)) { 27354 return el._value; 27355 } 27356 return void 0; 27357} 27358function hasValueBinding(el) { 27359 return "_value" in el; 27360} 27361function parseInputValue(el) { 27362 if (el.type === "number") { 27363 return Number.isNaN(el.valueAsNumber) ? el.value : el.valueAsNumber; 27364 } 27365 if (el.type === "range") { 27366 return Number.isNaN(el.valueAsNumber) ? el.value : el.valueAsNumber; 27367 } 27368 return el.value; 27369} 27370function normalizeEventValue(value) { 27371 if (!isEvent(value)) { 27372 return value; 27373 } 27374 const input = value.target; 27375 if (hasCheckedAttr(input.type) && hasValueBinding(input)) { 27376 return getBoundValue(input); 27377 } 27378 if (input.type === "file" && input.files) { 27379 const files = Array.from(input.files); 27380 return input.multiple ? files : files[0]; 27381 } 27382 if (isNativeMultiSelect(input)) { 27383 return Array.from(input.options).filter((opt) => opt.selected && !opt.disabled).map(getBoundValue); 27384 } 27385 if (isNativeSelect(input)) { 27386 const selectedOption = Array.from(input.options).find((opt) => opt.selected); 27387 return selectedOption ? getBoundValue(selectedOption) : input.value; 27388 } 27389 return parseInputValue(input); 27390} 27391function normalizeRules(rules) { 27392 const acc = {}; 27393 Object.defineProperty(acc, "_$$isNormalized", { 27394 value: true, 27395 writable: false, 27396 enumerable: false, 27397 configurable: false 27398 }); 27399 if (!rules) { 27400 return acc; 27401 } 27402 if (isObject(rules) && rules._$$isNormalized) { 27403 return rules; 27404 } 27405 if (isObject(rules)) { 27406 return Object.keys(rules).reduce((prev, curr) => { 27407 const params = normalizeParams(rules[curr]); 27408 if (rules[curr] !== false) { 27409 prev[curr] = buildParams(params); 27410 } 27411 return prev; 27412 }, acc); 27413 } 27414 if (typeof rules !== "string") { 27415 return acc; 27416 } 27417 return rules.split("|").reduce((prev, rule) => { 27418 const parsedRule = parseRule(rule); 27419 if (!parsedRule.name) { 27420 return prev; 27421 } 27422 prev[parsedRule.name] = buildParams(parsedRule.params); 27423 return prev; 27424 }, acc); 27425} 27426function normalizeParams(params) { 27427 if (params === true) { 27428 return []; 27429 } 27430 if (Array.isArray(params)) { 27431 return params; 27432 } 27433 if (isObject(params)) { 27434 return params; 27435 } 27436 return [params]; 27437} 27438function buildParams(provided) { 27439 const mapValueToLocator = (value) => { 27440 if (typeof value === "string" && value[0] === "@") { 27441 return createLocator(value.slice(1)); 27442 } 27443 return value; 27444 }; 27445 if (Array.isArray(provided)) { 27446 return provided.map(mapValueToLocator); 27447 } 27448 if (provided instanceof RegExp) { 27449 return [provided]; 27450 } 27451 return Object.keys(provided).reduce((prev, key) => {
27452 prev[key] = mapValueToLocator(provided[key]); 27453 return prev; 27454 }, {}); 27455} 27456const parseRule = (rule) => { 27457 let params = []; 27458 const name = rule.split(":")[0]; 27459 if (rule.includes(":")) { 27460 params = rule.split(":").slice(1).join(":").split(","); 27461 } 27462 return { name, params }; 27463}; 27464function createLocator(value) { 27465 const locator = (crossTable) => { 27466 var _a; 27467 const val = (_a = getFromPath(crossTable, value)) !== null && _a !== void 0 ? _a : crossTable[value]; 27468 return val; 27469 }; 27470 locator.__locatorRef = value; 27471 return locator; 27472} 27473function extractLocators(params) { 27474 if (Array.isArray(params)) { 27475 return params.filter(isLocator); 27476 } 27477 return keysOf(params).filter((key) => isLocator(params[key])).map((key) => params[key]); 27478} 27479const DEFAULT_CONFIG = { 27480 generateMessage: ({ field }) => `${field} is not valid.`, 27481 bails: true, 27482 validateOnBlur: true, 27483 validateOnChange: true, 27484 validateOnInput: false, 27485 validateOnModelUpdate: true 27486}; 27487let currentConfig = Object.assign({}, DEFAULT_CONFIG); 27488const getConfig = () => currentConfig; 27489const setConfig = (newConf) => { 27490 currentConfig = Object.assign(Object.assign({}, currentConfig), newConf); 27491}; 27492const configure = setConfig; 27493async function validate(value, rules, options = {}) { 27494 const shouldBail = options === null || options === void 0 ? void 0 : options.bails; 27495 const field = { 27496 name: (options === null || options === void 0 ? void 0 : options.name) || "{field}", 27497 rules, 27498 label: options === null || options === void 0 ? void 0 : options.label, 27499 bails: shouldBail !== null && shouldBail !== void 0 ? shouldBail : true, 27500 formData: (options === null || options === void 0 ? void 0 : options.values) || {} 27501 }; 27502 const result = await _validate(field, value); 27503 return Object.assign(Object.assign({}, result), { valid: !result.errors.length }); 27504} 27505async function _validate(field, value) { 27506 const rules = field.rules; 27507 if (isTypedSchema(rules) || isYupValidator(rules)) { 27508 return validateFieldWithTypedSchema(value, Object.assign(Object.assign({}, field), { rules })); 27509 } 27510 if (isCallable$1(rules) || Array.isArray(rules)) { 27511 const ctx = { 27512 field: field.label || field.name, 27513 name: field.name, 27514 label: field.label, 27515 form: field.formData, 27516 value 27517 }; 27518 const pipeline = Array.isArray(rules) ? rules : [rules]; 27519 const length2 = pipeline.length; 27520 const errors2 = []; 27521 for (let i = 0; i < length2; i++) { 27522 const rule = pipeline[i]; 27523 const result = await rule(value, ctx); 27524 const isValid2 = typeof result !== "string" && !Array.isArray(result) && result; 27525 if (isValid2) { 27526 continue; 27527 } 27528 if (Array.isArray(result)) { 27529 errors2.push(...result); 27530 } else { 27531 const message2 = typeof result === "string" ? result : _generateFieldError(ctx); 27532 errors2.push(message2); 27533 } 27534 if (field.bails) { 27535 return { 27536 errors: errors2 27537 }; 27538 } 27539 } 27540 return { 27541 errors: errors2 27542 }; 27543 } 27544 const normalizedContext = Object.assign(Object.assign({}, field), { rules: normalizeRules(rules) }); 27545 const errors = []; 27546 const rulesKeys = Object.keys(normalizedContext.rules); 27547 const length = rulesKeys.length; 27548 for (let i = 0; i < length; i++) { 27549 const rule = rulesKeys[i]; 27550 const result = await _test(normalizedContext, value, { 27551 name: rule, 27552 params: normalizedContext.rules[rule] 27553 }); 27554 if (result.error) { 27555 errors.push(result.error); 27556 if (field.bails) { 27557 return { 27558 errors 27559 }; 27560 } 27561 } 27562 } 27563 return { 27564 errors 27565 }; 27566} 27567function isYupError(err) { 27568 return !!err && err.name === "ValidationError"; 27569} 27570function yupToTypedSchema(yupSchema) { 27571 const schema = { 27572 __type: "VVTypedSchema", 27573 async parse(values, context) { 27574 var _a;
27575 try { 27576 const output = await yupSchema.validate(values, { abortEarly: false, context: (context === null || context === void 0 ? void 0 : context.formData) || {} }); 27577 return { 27578 output, 27579 errors: [] 27580 }; 27581 } catch (err) { 27582 if (!isYupError(err)) { 27583 throw err; 27584 } 27585 if (!((_a = err.inner) === null || _a === void 0 ? void 0 : _a.length) && err.errors.length) { 27586 return { errors: [{ path: err.path, errors: err.errors }] }; 27587 } 27588 const errors = err.inner.reduce((acc, curr) => { 27589 const path = curr.path || ""; 27590 if (!acc[path]) { 27591 acc[path] = { errors: [], path }; 27592 } 27593 acc[path].errors.push(...curr.errors); 27594 return acc; 27595 }, {}); 27596 return { errors: Object.values(errors) }; 27597 } 27598 } 27599 }; 27600 return schema; 27601} 27602async function validateFieldWithTypedSchema(value, context) { 27603 const typedSchema = isTypedSchema(context.rules) ? context.rules : yupToTypedSchema(context.rules); 27604 const result = await typedSchema.parse(value, { formData: context.formData }); 27605 const messages = []; 27606 for (const error of result.errors) { 27607 if (error.errors.length) { 27608 messages.push(...error.errors); 27609 } 27610 } 27611 return { 27612 value: result.value, 27613 errors: messages 27614 }; 27615} 27616async function _test(field, value, rule) { 27617 const validator2 = resolveRule(rule.name); 27618 if (!validator2) { 27619 throw new Error(`No such validator '${rule.name}' exists.`); 27620 } 27621 const params = fillTargetValues(rule.params, field.formData); 27622 const ctx = { 27623 field: field.label || field.name, 27624 name: field.name, 27625 label: field.label, 27626 value, 27627 form: field.formData, 27628 rule: Object.assign(Object.assign({}, rule), { params }) 27629 }; 27630 const result = await validator2(value, params, ctx); 27631 if (typeof result === "string") { 27632 return { 27633 error: result 27634 }; 27635 } 27636 return { 27637 error: result ? void 0 : _generateFieldError(ctx) 27638 }; 27639} 27640function _generateFieldError(fieldCtx) { 27641 const message2 = getConfig().generateMessage; 27642 if (!message2) { 27643 return "Field is invalid"; 27644 } 27645 return message2(fieldCtx); 27646} 27647function fillTargetValues(params, crossTable) { 27648 const normalize = (value) => { 27649 if (isLocator(value)) { 27650 return value(crossTable); 27651 } 27652 return value; 27653 }; 27654 if (Array.isArray(params)) { 27655 return params.map(normalize); 27656 } 27657 return Object.keys(params).reduce((acc, param) => { 27658 acc[param] = normalize(params[param]); 27659 return acc; 27660 }, {}); 27661} 27662async function validateTypedSchema(schema, values) { 27663 const typedSchema = isTypedSchema(schema) ? schema : yupToTypedSchema(schema); 27664 const validationResult = await typedSchema.parse(klona(values), { formData: klona(values) }); 27665 const results = {}; 27666 const errors = {}; 27667 for (const error of validationResult.errors) { 27668 const messages = error.errors; 27669 const path = (error.path || "").replace(/\["(\d+)"\]/g, (_, m) => { 27670 return `[${m}]`; 27671 }); 27672 results[path] = { valid: !messages.length, errors: messages }; 27673 if (messages.length) { 27674 errors[path] = messages[0]; 27675 } 27676 } 27677 return { 27678 valid: !validationResult.errors.length, 27679 results, 27680 errors, 27681 values: validationResult.value, 27682 source: "schema" 27683 }; 27684} 27685async function validateObjectSchema(schema, values, opts) { 27686 const paths = keysOf(schema); 27687 const validations = paths.map(async (path) => { 27688 var _a, _b, _c; 27689 const strings = (_a = opts === null || opts === void 0 ? void 0 : opts.names) === null || _a === void 0 ? void 0 : _a[path]; 27690 const fieldResult = await validate(getFromPath(values, path), schema[path], { 27691 name: (strings === null || strings === void 0 ? void 0 : strings.name) || path, 27692 label: strings === null || strings === void 0 ? void 0 : strings.label, 27693 values, 27694 bails: (_c = (_b = opts === null || opts === void 0 ? void 0 : opts.bailsMap) === null || _b === void 0 ? void 0 : _b[path]) !== null && _c !== void 0 ? _c : true 27695 }); 27696 return Object.assign(Object.assign({}, fieldResult), { path }); 27697 }); 27698 let isAllValid = true; 27699 const validationResults = await Promise.all(validations); 27700 const results = {}; 27701 const errors = {}; 27702 for (const result of validationResults) { 27703 results[result.path] = { 27704 valid: result.valid, 27705 errors: result.errors 27706 }; 27707 if (!result.valid) { 27708 isAllValid = false;
27709 errors[result.path] = result.errors[0]; 27710 } 27711 } 27712 return { 27713 valid: isAllValid, 27714 results, 27715 errors, 27716 source: "schema" 27717 }; 27718} 27719let ID_COUNTER = 0; 27720function useFieldState(path, init) { 27721 const { value, initialValue, setInitialValue } = _useFieldValue(path, init.modelValue, init.form); 27722 if (!init.form) { 27723 let setState2 = function(state2) { 27724 var _a; 27725 if ("value" in state2) { 27726 value.value = state2.value; 27727 } 27728 if ("errors" in state2) { 27729 setErrors(state2.errors); 27730 } 27731 if ("touched" in state2) { 27732 meta.touched = (_a = state2.touched) !== null && _a !== void 0 ? _a : meta.touched; 27733 } 27734 if ("initialValue" in state2) { 27735 setInitialValue(state2.initialValue); 27736 } 27737 }; 27738 const { errors: errors2, setErrors } = createFieldErrors(); 27739 const id = ID_COUNTER >= Number.MAX_SAFE_INTEGER ? 0 : ++ID_COUNTER; 27740 const meta = createFieldMeta(value, initialValue, errors2, init.schema); 27741 return { 27742 id, 27743 path, 27744 value, 27745 initialValue, 27746 meta, 27747 flags: { pendingUnmount: { [id]: false }, pendingReset: false }, 27748 errors: errors2, 27749 setState: setState2 27750 }; 27751 } 27752 const state = init.form.createPathState(path, { 27753 bails: init.bails, 27754 label: init.label, 27755 type: init.type, 27756 validate: init.validate, 27757 schema: init.schema 27758 }); 27759 const errors = computed(() => state.errors); 27760 function setState(state2) { 27761 var _a, _b, _c; 27762 if ("value" in state2) { 27763 value.value = state2.value; 27764 } 27765 if ("errors" in state2) { 27766 (_a = init.form) === null || _a === void 0 ? void 0 : _a.setFieldError(unref(path), state2.errors); 27767 } 27768 if ("touched" in state2) { 27769 (_b = init.form) === null || _b === void 0 ? void 0 : _b.setFieldTouched(unref(path), (_c = state2.touched) !== null && _c !== void 0 ? _c : false); 27770 } 27771 if ("initialValue" in state2) { 27772 setInitialValue(state2.initialValue); 27773 } 27774 } 27775 return { 27776 id: Array.isArray(state.id) ? state.id[state.id.length - 1] : state.id, 27777 path, 27778 value, 27779 errors, 27780 meta: state, 27781 initialValue, 27782 flags: state.__flags, 27783 setState 27784 }; 27785} 27786function _useFieldValue(path, modelValue, form) { 27787 const modelRef = ref(unref(modelValue)); 27788 function resolveInitialValue2() { 27789 if (!form) { 27790 return unref(modelRef); 27791 } 27792 return getFromPath(form.initialValues.value, unref(path), unref(modelRef)); 27793 } 27794 function setInitialValue(value2) { 27795 if (!form) { 27796 modelRef.value = value2; 27797 return; 27798 } 27799 form.setFieldInitialValue(unref(path), value2, true); 27800 } 27801 const initialValue = computed(resolveInitialValue2); 27802 if (!form) { 27803 const value2 = ref(resolveInitialValue2()); 27804 return { 27805 value: value2, 27806 initialValue, 27807 setInitialValue 27808 }; 27809 } 27810 const currentValue = resolveModelValue(modelValue, form, initialValue, path); 27811 form.stageInitialValue(unref(path), currentValue, true); 27812 const value = computed({ 27813 get() { 27814 return getFromPath(form.values, unref(path)); 27815 }, 27816 set(newVal) { 27817 form.setFieldValue(unref(path), newVal, false); 27818 } 27819 }); 27820 return { 27821 value, 27822 initialValue, 27823 setInitialValue 27824 }; 27825} 27826function resolveModelValue(modelValue, form, initialValue, path) { 27827 if (isRef(modelValue)) { 27828 return unref(modelValue); 27829 } 27830 if (modelValue !== void 0) { 27831 return modelValue; 27832 } 27833 return getFromPath(form.values, unref(path), unref(initialValue)); 27834} 27835function createFieldMeta(currentValue, initialValue, errors, schema) { 27836 const isRequired = computed(() => { 27837 var _a, _b, _c; 27838 return (_c = (_b = (_a = toValue(schema)) === null || _a === void 0 ? void 0 : _a.describe) === null || _b === void 0 ? void 0 : _b.call(_a).required) !== null && _c !== void 0 ? _c : false; 27839 }); 27840 const meta = reactive({ 27841 touched: false, 27842 pending: false, 27843 valid: true, 27844 required: isRequired, 27845 validated: !!unref(errors).length, 27846 initialValue: computed(() => unref(initialValue)), 27847 dirty: computed(() => { 27848 return !isEqual(unref(currentValue), unref(initialValue)); 27849 }) 27850 }); 27851 watch(errors, (value) => { 27852 meta.valid = !value.length; 27853 }, { 27854 immediate: true, 27855 flush: "sync" 27856 }); 27857 return meta; 27858} 27859function createFieldErrors() { 27860 const errors = ref([]); 27861 return { 27862 errors, 27863 setErrors: (messages) => { 27864 errors.value = normalizeErrorItem(messages); 27865 } 27866 }; 27867} 27868function useField(path, rules, opts) { 27869 if (hasCheckedAttr(opts === null || opts === void 0 ? void 0 : opts.type)) { 27870 return useFieldWithChecked(path, rules, opts); 27871 } 27872 return _useField(path, rules, opts); 27873} 27874function _useField(path, rules, opts) { 27875 const { initialValue: modelValue, validateOnMount, bails, type, checkedValue, label, validateOnValueUpdate, uncheckedValue, controlled, keepValueOnUnmount, syncVModel, form: controlForm } = normalizeOptions(opts); 27876 const injectedForm = controlled ? injectWithSelf(FormContextKey) : void 0; 27877 const form = controlForm || injectedForm; 27878 const name = computed(() => normalizeFormPath(toValue(path))); 27879 const validator2 = computed(() => { 27880 const schema = toValue(form === null || form === void 0 ? void 0 : form.schema); 27881 if (schema) { 27882 return void 0; 27883 } 27884 const rulesValue = unref(rules); 27885 if (isYupValidator(rulesValue) || isTypedSchema(rulesValue) || isCallable$1(rulesValue) || Array.isArray(rulesValue)) { 27886 return rulesValue; 27887 } 27888 return normalizeRules(rulesValue); 27889 }); 27890 const isTyped = !isCallable$1(validator2.value) && isTypedSchema(toValue(rules)); 27891 const { id, value, initialValue, meta, setState, errors, flags } = useFieldState(name, { 27892 modelValue, 27893 form, 27894 bails, 27895 label, 27896 type, 27897 validate: validator2.value ? validate$1 : void 0, 27898 schema: isTyped ? rules : void 0 27899 }); 27900 const errorMessage = computed(() => errors.value[0]); 27901 if (syncVModel) { 27902 useVModel({ 27903 value, 27904 prop: syncVModel, 27905 handleChange, 27906 shouldValidate: () =>
vendor: 7,081 bytes, lines 27906-28111
27906 validateOnValueUpdate && !flags.pendingReset 27907 }); 27908 } 27909 const handleBlur = (evt, shouldValidate = false) => { 27910 meta.touched = true; 27911 if (shouldValidate) { 27912 validateWithStateMutation(); 27913 } 27914 }; 27915 async function validateCurrentValue(mode) { 27916 var _a, _b; 27917 if (form === null || form === void 0 ? void 0 : form.validateSchema) { 27918 const { results } = await form.validateSchema(mode); 27919 return (_a = results[toValue(name)]) !== null && _a !== void 0 ? _a : { valid: true, errors: [] }; 27920 } 27921 if (validator2.value) { 27922 return validate(value.value, validator2.value, { 27923 name: toValue(name), 27924 label: toValue(label), 27925 values: (_b = form === null || form === void 0 ? void 0 : form.values) !== null && _b !== void 0 ? _b : {}, 27926 bails 27927 }); 27928 } 27929 return { valid: true, errors: [] }; 27930 } 27931 const validateWithStateMutation = withLatest(async () => { 27932 meta.pending = true; 27933 meta.validated = true; 27934 return validateCurrentValue("validated-only"); 27935 }, (result) => { 27936 if (flags.pendingUnmount[field.id]) { 27937 return result; 27938 } 27939 setState({ errors: result.errors }); 27940 meta.pending = false; 27941 meta.valid = result.valid; 27942 return result; 27943 }); 27944 const validateValidStateOnly = withLatest(async () => { 27945 return validateCurrentValue("silent"); 27946 }, (result) => { 27947 meta.valid = result.valid; 27948 return result; 27949 }); 27950 function validate$1(opts2) { 27951 if ((opts2 === null || opts2 === void 0 ? void 0 : opts2.mode) === "silent") { 27952 return validateValidStateOnly(); 27953 } 27954 return validateWithStateMutation(); 27955 } 27956 function handleChange(e, shouldValidate = true) { 27957 const newValue = normalizeEventValue(e); 27958 setValue(newValue, shouldValidate); 27959 } 27960 onMounted(() => { 27961 if (validateOnMount) { 27962 return validateWithStateMutation(); 27963 } 27964 if (!form || !form.validateSchema) { 27965 validateValidStateOnly(); 27966 } 27967 }); 27968 function setTouched(isTouched) { 27969 meta.touched = isTouched; 27970 } 27971 function resetField(state) { 27972 var _a; 27973 const newValue = state && "value" in state ? state.value : initialValue.value; 27974 setState({ 27975 value: klona(newValue), 27976 initialValue: klona(newValue), 27977 touched: (_a = state === null || state === void 0 ? void 0 : state.touched) !== null && _a !== void 0 ? _a : false, 27978 errors: (state === null || state === void 0 ? void 0 : state.errors) || [] 27979 }); 27980 meta.pending = false; 27981 meta.validated = false; 27982 validateValidStateOnly(); 27983 } 27984 const vm = getCurrentInstance(); 27985 function setValue(newValue, shouldValidate = true) { 27986 value.value = vm && syncVModel ? applyModelModifiers(newValue, vm.props.modelModifiers) : newValue; 27987 const validateFn = shouldValidate ? validateWithStateMutation : validateValidStateOnly; 27988 validateFn(); 27989 } 27990 function setErrors(errors2) { 27991 setState({ errors: Array.isArray(errors2) ? errors2 : [errors2] }); 27992 } 27993 const valueProxy = computed({ 27994 get() { 27995 return value.value; 27996 }, 27997 set(newValue) { 27998 setValue(newValue, validateOnValueUpdate); 27999 } 28000 }); 28001 const field = { 28002 id, 28003 name, 28004 label, 28005 value: valueProxy, 28006 meta, 28007 errors, 28008 errorMessage, 28009 type, 28010 checkedValue, 28011 uncheckedValue, 28012 bails, 28013 keepValueOnUnmount, 28014 resetField, 28015 handleReset: () => resetField(), 28016 validate: validate$1, 28017 handleChange, 28018 handleBlur, 28019 setState, 28020 setTouched, 28021 setErrors, 28022 setValue 28023 }; 28024 provide(FieldContextKey, field); 28025 if (isRef(rules) && typeof unref(rules) !== "function") { 28026 watch(rules, (value2, oldValue) => { 28027 if (isEqual(value2, oldValue)) { 28028 return; 28029 } 28030 meta.validated ? validateWithStateMutation() : validateValidStateOnly(); 28031 }, { 28032 deep: true 28033 }); 28034 } 28035 if (!form) { 28036 return field; 28037 } 28038 const dependencies = computed(() => { 28039 const rulesVal = validator2.value; 28040 if (!rulesVal || isCallable$1(rulesVal) || isYupValidator(rulesVal) || isTypedSchema(rulesVal) || Array.isArray(rulesVal)) { 28041 return {}; 28042 } 28043 return Object.keys(rulesVal).reduce((acc, rule) => { 28044 const deps = extractLocators(rulesVal[rule]).map((dep) => dep.__locatorRef).reduce((depAcc, depName) => { 28045 const depValue = getFromPath(form.values, depName) || form.values[depName]; 28046 if (depValue !== void 0) { 28047 depAcc[depName] = depValue; 28048 } 28049 return depAcc; 28050 }, {}); 28051 Object.assign(acc, deps); 28052 return acc; 28053 }, {}); 28054 }); 28055 watch(dependencies, (deps, oldDeps) => { 28056 if (!Object.keys(deps).length) { 28057 return; 28058 } 28059 const shouldValidate = !isEqual(deps, oldDeps); 28060 if (shouldValidate) { 28061 meta.validated ? validateWithStateMutation() : validateValidStateOnly(); 28062 } 28063 }); 28064 onBeforeUnmount(() => { 28065 var _a; 28066 const shouldKeepValue = (_a = toValue(field.keepValueOnUnmount)) !== null && _a !== void 0 ? _a : toValue(form.keepValuesOnUnmount); 28067 const path2 = toValue(name); 28068 if (shouldKeepValue || !form || flags.pendingUnmount[field.id]) { 28069 form === null || form === void 0 ? void 0 : form.removePathState(path2, id); 28070 return; 28071 } 28072 flags.pendingUnmount[field.id] = true; 28073 const pathState = form.getPathState(path2); 28074 const matchesId = Array.isArray(pathState === null || pathState === void 0 ? void 0 : pathState.id) && (pathState === null || pathState === void 0 ? void 0 : pathState.multiple) ? pathState === null || pathState === void 0 ? void 0 : pathState.id.includes(field.id) : (pathState === null || pathState === void 0 ? void 0 : pathState.id) === field.id; 28075 if (!matchesId) { 28076 return; 28077 } 28078 if ((pathState === null || pathState === void 0 ? void 0 : pathState.multiple) && Array.isArray(pathState.value)) { 28079 const valueIdx = pathState.value.findIndex((i) => isEqual(i, toValue(field.checkedValue))); 28080 if (valueIdx > -1) { 28081 const newVal = [...pathState.value]; 28082 newVal.splice(valueIdx, 1); 28083 form.setFieldValue(path2, newVal); 28084 } 28085 if (Array.isArray(pathState.id)) { 28086 pathState.id.splice(pathState.id.indexOf(field.id), 1); 28087 } 28088 } else { 28089 form.unsetPathValue(toValue(name)); 28090 } 28091 form.removePathState(path2, id); 28092 }); 28093 return field; 28094} 28095function normalizeOptions(opts) { 28096 const defaults2 = () => ({ 28097 initialValue: void 0, 28098 validateOnMount: false, 28099 bails: true, 28100 label: void 0, 28101 validateOnValueUpdate: true, 28102 keepValueOnUnmount: void 0, 28103 syncVModel: false, 28104 controlled: true 28105 }); 28106 const isVModelSynced = !!(opts === null || opts === void 0 ? void 0 : opts.syncVModel); 28107 const modelPropName = typeof (opts === null || opts === void 0 ? void 0 : opts.syncVModel) === "string" ? opts.syncVModel : (opts === null || opts === void 0 ? void 0 : opts.modelPropName) || "modelValue"; 28108 const initialValue = isVModelSynced && !("initialValue" in (opts || {})) ? getCurrentModelValue(getCurrentInstance(), modelPropName) : opts === null || opts === void 0 ? void 0 : opts.initialValue; 28109 if (!opts) { 28110 return Object.assign(Object.assign({}, defaults2()), { initialValue }); 28111 }
28112 const checkedValue = "valueProp" in opts ? opts.valueProp : opts.checkedValue; 28113 const controlled = "standalone" in opts ? !opts.standalone : opts.controlled; 28114 const syncVModel = (opts === null || opts === void 0 ? void 0 : opts.modelPropName) || (opts === null || opts === void 0 ? void 0 : opts.syncVModel) || false; 28115 return Object.assign(Object.assign(Object.assign({}, defaults2()), opts || {}), { 28116 initialValue, 28117 controlled: controlled !== null && controlled !== void 0 ? controlled : true, 28118 checkedValue, 28119 syncVModel 28120 }); 28121} 28122function useFieldWithChecked(name, rules, opts) { 28123 const form = !(opts === null || opts === void 0 ? void 0 : opts.standalone) ? injectWithSelf(FormContextKey) : void 0; 28124 const checkedValue = opts === null || opts === void 0 ? void 0 : opts.checkedValue; 28125 const uncheckedValue = opts === null || opts === void 0 ? void 0 : opts.uncheckedValue; 28126 function patchCheckedApi(field) { 28127 const handleChange = field.handleChange; 28128 const checked = computed(() => { 28129 const currentValue = toValue(field.value); 28130 const checkedVal = toValue(checkedValue); 28131 return Array.isArray(currentValue) ? currentValue.findIndex((v2) => isEqual(v2, checkedVal)) >= 0 : isEqual(checkedVal, currentValue); 28132 }); 28133 function handleCheckboxChange(e, shouldValidate = true) { 28134 var _a, _b; 28135 if (checked.value === ((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked)) { 28136 if (shouldValidate) { 28137 field.validate(); 28138 } 28139 return; 28140 } 28141 const path = toValue(name); 28142 const pathState = form === null || form === void 0 ? void 0 : form.getPathState(path); 28143 const value = normalizeEventValue(e); 28144 let newValue = (_b = toValue(checkedValue)) !== null && _b !== void 0 ? _b : value; 28145 if (form && (pathState === null || pathState === void 0 ? void 0 : pathState.multiple) && pathState.type === "checkbox") { 28146 newValue = resolveNextCheckboxValue(getFromPath(form.values, path) || [], newValue, void 0); 28147 } else if ((opts === null || opts === void 0 ? void 0 : opts.type) === "checkbox") { 28148 newValue = resolveNextCheckboxValue(toValue(field.value), newValue, toValue(uncheckedValue)); 28149 } 28150 handleChange(newValue, shouldValidate); 28151 } 28152 return Object.assign(Object.assign({}, field), { 28153 checked, 28154 checkedValue, 28155 uncheckedValue, 28156 handleChange: handleCheckboxChange 28157 }); 28158 } 28159 return patchCheckedApi(_useField(name, rules, opts)); 28160} 28161function useVModel({ prop, value, handleChange, shouldValidate }) { 28162 const vm = getCurrentInstance(); 28163 if (!vm || !prop) { 28164 return; 28165 } 28166 const propName = typeof prop === "string" ? prop : "modelValue"; 28167 const emitName = `update:${propName}`; 28168 if (!(propName in vm.props)) { 28169 return; 28170 } 28171 watch(value, (newValue) => { 28172 if (isEqual(newValue, getCurrentModelValue(vm, propName))) { 28173 return; 28174 } 28175 vm.emit(emitName, newValue); 28176 }); 28177 watch(() => getCurrentModelValue(vm, propName), (propValue) => { 28178 if (propValue === IS_ABSENT && value.value === void 0) { 28179 return; 28180 } 28181 const newValue = propValue === IS_ABSENT ? void 0 : propValue; 28182 if (isEqual(newValue, value.value)) { 28183 return; 28184 } 28185 handleChange(newValue, shouldValidate()); 28186 }); 28187} 28188function getCurrentModelValue(vm, propName) { 28189 if (!vm) { 28190 return void 0; 28191 } 28192 return vm.props[propName]; 28193} 28194const FieldImpl = /* @__PURE__ */ defineComponent({ 28195 name: "Field", 28196 inheritAttrs: false, 28197 props: { 28198 as: { 28199 type: [String, Object], 28200 default: void 0 28201 }, 28202 name: { 28203 type: String, 28204 required: true 28205 }, 28206 rules: { 28207 type: [Object, String, Function], 28208 default: void 0 28209 }, 28210 validateOnMount: { 28211 type: Boolean, 28212 default: false 28213 }, 28214 validateOnBlur: { 28215 type: Boolean, 28216 default: void 0 28217 }, 28218 validateOnChange: { 28219 type: Boolean, 28220 default: void 0 28221 }, 28222 validateOnInput: { 28223 type: Boolean, 28224 default: void 0 28225 }, 28226 validateOnModelUpdate: { 28227 type: Boolean, 28228 default: void 0 28229 }, 28230 bails: { 28231 type: Boolean, 28232 default: () => getConfig().bails 28233 }, 28234 label: { 28235 type: String, 28236 default: void 0 28237 }, 28238 uncheckedValue: { 28239 type: null, 28240 default: void 0 28241 }, 28242 modelValue: { 28243 type: null, 28244 default: IS_ABSENT 28245 }, 28246 modelModifiers: { 28247 type: null, 28248 default: () => ({}) 28249 }, 28250 "onUpdate:modelValue": { 28251 type: null, 28252 default: void 0 28253 }, 28254 standalone: { 28255 type: Boolean, 28256 default: false 28257 }, 28258 keepValue: { 28259 type: Boolean, 28260 default: void 0 28261 } 28262 }, 28263 setup(props, ctx) { 28264 const rules = toRef(props, "rules"); 28265 const name = toRef(props, "name"); 28266 const label = toRef(props, "label"); 28267 const uncheckedValue = toRef(props, "uncheckedValue");
28268 const keepValue = toRef(props, "keepValue"); 28269 const { errors, value, errorMessage, validate: validateField, handleChange, handleBlur, setTouched, resetField, handleReset, meta, checked, setErrors, setValue } = useField(name, rules, { 28270 validateOnMount: props.validateOnMount, 28271 bails: props.bails, 28272 standalone: props.standalone, 28273 type: ctx.attrs.type, 28274 initialValue: resolveInitialValue(props, ctx), 28275 // Only for checkboxes and radio buttons 28276 checkedValue: ctx.attrs.value, 28277 uncheckedValue, 28278 label, 28279 validateOnValueUpdate: props.validateOnModelUpdate, 28280 keepValueOnUnmount: keepValue, 28281 syncVModel: true 28282 }); 28283 const onChangeHandler = function handleChangeWithModel(e, shouldValidate = true) { 28284 handleChange(e, shouldValidate); 28285 }; 28286 const sharedProps = computed(() => { 28287 const { validateOnInput, validateOnChange, validateOnBlur, validateOnModelUpdate } = resolveValidationTriggers(props); 28288 function baseOnBlur(e) { 28289 handleBlur(e, validateOnBlur); 28290 if (isCallable$1(ctx.attrs.onBlur)) { 28291 ctx.attrs.onBlur(e); 28292 } 28293 } 28294 function baseOnInput(e) { 28295 onChangeHandler(e, validateOnInput); 28296 if (isCallable$1(ctx.attrs.onInput)) { 28297 ctx.attrs.onInput(e); 28298 } 28299 } 28300 function baseOnChange(e) { 28301 onChangeHandler(e, validateOnChange); 28302 if (isCallable$1(ctx.attrs.onChange)) { 28303 ctx.attrs.onChange(e); 28304 } 28305 } 28306 const attrs = { 28307 name: props.name, 28308 onBlur: baseOnBlur, 28309 onInput: baseOnInput, 28310 onChange: baseOnChange 28311 }; 28312 attrs["onUpdate:modelValue"] = (e) => onChangeHandler(e, validateOnModelUpdate); 28313 return attrs; 28314 }); 28315 const fieldProps = computed(() => { 28316 const attrs = Object.assign({}, sharedProps.value); 28317 if (hasCheckedAttr(ctx.attrs.type) && checked) { 28318 attrs.checked = checked.value; 28319 } 28320 const tag = resolveTag(props, ctx); 28321 if (shouldHaveValueBinding(tag, ctx.attrs)) { 28322 attrs.value = value.value; 28323 } 28324 return attrs; 28325 }); 28326 const componentProps = computed(() => { 28327 return Object.assign(Object.assign({}, sharedProps.value), { modelValue: value.value }); 28328 }); 28329 function slotProps() { 28330 return { 28331 field: fieldProps.value, 28332 componentField: componentProps.value, 28333 value: value.value, 28334 meta, 28335 errors: errors.value, 28336 errorMessage: errorMessage.value, 28337 validate: validateField, 28338 resetField, 28339 handleChange: onChangeHandler, 28340 handleInput: (e) => onChangeHandler(e, false), 28341 handleReset, 28342 handleBlur: sharedProps.value.onBlur, 28343 setTouched, 28344 setErrors, 28345 setValue 28346 }; 28347 } 28348 ctx.expose({ 28349 value, 28350 meta, 28351 errors, 28352 errorMessage, 28353 setErrors, 28354 setTouched, 28355 setValue, 28356 reset: resetField, 28357 validate: validateField, 28358 handleChange 28359 }); 28360 return () => { 28361 const tag = resolveDynamicComponent(resolveTag(props, ctx)); 28362 const children = normalizeChildren(tag, ctx, slotProps); 28363 if (tag) { 28364 return h(tag, Object.assign(Object.assign({}, ctx.attrs), fieldProps.value), children); 28365 } 28366 return children; 28367 }; 28368 } 28369}); 28370function resolveTag(props, ctx) { 28371 let tag = props.as || ""; 28372 if (!props.as && !ctx.slots.default) { 28373 tag = "input"; 28374 } 28375 return tag; 28376} 28377function resolveValidationTriggers(props) { 28378 var _a, _b, _c, _d; 28379 const { validateOnInput, validateOnChange, validateOnBlur, validateOnModelUpdate } = getConfig(); 28380 return { 28381 validateOnInput: (_a = props.validateOnInput) !== null && _a !== void 0 ? _a : validateOnInput, 28382 validateOnChange: (_b = props.validateOnChange) !== null && _b !== void 0 ? _b : validateOnChange, 28383 validateOnBlur: (_c = props.validateOnBlur) !== null && _c !== void 0 ? _c : validateOnBlur, 28384 validateOnModelUpdate: (_d = props.validateOnModelUpdate) !== null && _d !== void 0 ? _d : validateOnModelUpdate 28385 }; 28386} 28387function resolveInitialValue(props, ctx) { 28388 if (!hasCheckedAttr(ctx.attrs.type)) { 28389 return isPropPresent(props, "modelValue") ? props.modelValue : ctx.attrs.value; 28390 } 28391 return isPropPresent(props, "modelValue") ? props.modelValue : void 0; 28392} 28393const Field = FieldImpl; 28394let FORM_COUNTER = 0; 28395const PRIVATE_PATH_STATE_KEYS = ["bails", "fieldsCount", "id", "multiple", "type", "validate"]; 28396function resolveInitialValues(opts) { 28397 const givenInitial = (opts === null || opts === void 0 ? void 0 : opts.initialValues) || {}; 28398 const providedValues = Object.assign({}, toValue(givenInitial)); 28399 const schema = unref(opts === null || opts === void 0 ? void 0 : opts.validationSchema); 28400 if (schema && isTypedSchema(schema) && isCallable$1(schema.cast)) { 28401 return klona(schema.cast(providedValues) || {}); 28402 } 28403 return klona(providedValues); 28404} 28405function useForm(opts) { 28406 var _a; 28407 const formId = FORM_COUNTER++; 28408 const name = (opts === null || opts === void 0 ? void 0 : opts.name) || "Form"; 28409 let FIELD_ID_COUNTER = 0; 28410 const isSubmitting = ref(false); 28411 const isValidating = ref(false); 28412 const submitCount = ref(0); 28413 const fieldArrays = []; 28414 const formValues = reactive(resolveInitialValues(opts)); 28415 const pathStates = ref([]); 28416 const extraErrorsBag = ref({}); 28417 const pathStateLookup = ref({}); 28418 const rebuildPathLookup = debounceNextTick(() => { 28419 pathStateLookup.value = pathStates.value.reduce((names, state) => { 28420 names[normalizeFormPath(toValue(state.path))] = state; 28421 return names; 28422 }, {}); 28423 }); 28424 function setFieldError(field, message2) { 28425 const state = findPathState(field); 28426 if (!state) { 28427 if (typeof field === "string") { 28428 extraErrorsBag.value[normalizeFormPath(field)] = normalizeErrorItem(message2); 28429 } 28430 return; 28431 } 28432 if (typeof field === "string") { 28433 const normalizedPath = normalizeFormPath(field); 28434 if (extraErrorsBag.value[normalizedPath]) { 28435 delete extraErrorsBag.value[normalizedPath]; 28436 } 28437 } 28438 state.errors = normalizeErrorItem(message2); 28439 state.valid = !state.errors.length; 28440 } 28441 function setErrors(paths) {
vendor: 4,270 bytes, lines 28442-28538
28442 keysOf(paths).forEach((path) => { 28443 setFieldError(path, paths[path]); 28444 }); 28445 } 28446 if (opts === null || opts === void 0 ? void 0 : opts.initialErrors) { 28447 setErrors(opts.initialErrors); 28448 } 28449 const errorBag = computed(() => { 28450 const pathErrors = pathStates.value.reduce((acc, state) => { 28451 if (state.errors.length) { 28452 acc[toValue(state.path)] = state.errors; 28453 } 28454 return acc; 28455 }, {}); 28456 return Object.assign(Object.assign({}, extraErrorsBag.value), pathErrors); 28457 }); 28458 const errors = computed(() => { 28459 return keysOf(errorBag.value).reduce((acc, key) => { 28460 const errors2 = errorBag.value[key]; 28461 if (errors2 === null || errors2 === void 0 ? void 0 : errors2.length) { 28462 acc[key] = errors2[0]; 28463 } 28464 return acc; 28465 }, {}); 28466 }); 28467 const fieldNames = computed(() => { 28468 return pathStates.value.reduce((names, state) => { 28469 names[toValue(state.path)] = { name: toValue(state.path) || "", label: state.label || "" }; 28470 return names; 28471 }, {}); 28472 }); 28473 const fieldBailsMap = computed(() => { 28474 return pathStates.value.reduce((map, state) => { 28475 var _a2; 28476 map[toValue(state.path)] = (_a2 = state.bails) !== null && _a2 !== void 0 ? _a2 : true; 28477 return map; 28478 }, {}); 28479 }); 28480 const initialErrors = Object.assign({}, (opts === null || opts === void 0 ? void 0 : opts.initialErrors) || {}); 28481 const keepValuesOnUnmount = (_a = opts === null || opts === void 0 ? void 0 : opts.keepValuesOnUnmount) !== null && _a !== void 0 ? _a : false; 28482 const { initialValues, originalInitialValues, setInitialValues } = useFormInitialValues(pathStates, formValues, opts); 28483 const meta = useFormMeta(pathStates, formValues, originalInitialValues, errors); 28484 const controlledValues = computed(() => { 28485 return pathStates.value.reduce((acc, state) => { 28486 const value = getFromPath(formValues, toValue(state.path)); 28487 setInPath(acc, toValue(state.path), value); 28488 return acc; 28489 }, {}); 28490 }); 28491 const schema = opts === null || opts === void 0 ? void 0 : opts.validationSchema; 28492 function createPathState(path, config) { 28493 var _a2, _b; 28494 const initialValue = computed(() => getFromPath(initialValues.value, toValue(path))); 28495 const pathStateExists = pathStateLookup.value[toValue(path)]; 28496 const isCheckboxOrRadio = (config === null || config === void 0 ? void 0 : config.type) === "checkbox" || (config === null || config === void 0 ? void 0 : config.type) === "radio"; 28497 if (pathStateExists && isCheckboxOrRadio) { 28498 pathStateExists.multiple = true; 28499 const id2 = FIELD_ID_COUNTER++; 28500 if (Array.isArray(pathStateExists.id)) { 28501 pathStateExists.id.push(id2); 28502 } else { 28503 pathStateExists.id = [pathStateExists.id, id2]; 28504 } 28505 pathStateExists.fieldsCount++; 28506 pathStateExists.__flags.pendingUnmount[id2] = false; 28507 return pathStateExists; 28508 } 28509 const currentValue = computed(() => getFromPath(formValues, toValue(path))); 28510 const pathValue = toValue(path); 28511 const unsetBatchIndex = UNSET_BATCH.findIndex((_path) => _path === pathValue); 28512 if (unsetBatchIndex !== -1) { 28513 UNSET_BATCH.splice(unsetBatchIndex, 1); 28514 } 28515 const isRequired = computed(() => { 28516 var _a3, _b2, _c, _d; 28517 const schemaValue = toValue(schema); 28518 if (isTypedSchema(schemaValue)) { 28519 return (_b2 = (_a3 = schemaValue.describe) === null || _a3 === void 0 ? void 0 : _a3.call(schemaValue, toValue(path)).required) !== null && _b2 !== void 0 ? _b2 : false; 28520 } 28521 const configSchemaValue = toValue(config === null || config === void 0 ? void 0 : config.schema); 28522 if (isTypedSchema(configSchemaValue)) { 28523 return (_d = (_c = configSchemaValue.describe) === null || _c === void 0 ? void 0 : _c.call(configSchemaValue).required) !== null && _d !== void 0 ? _d : false; 28524 } 28525 return false; 28526 }); 28527 const id = FIELD_ID_COUNTER++; 28528 const state = reactive({ 28529 id, 28530 path, 28531 touched: false, 28532 pending: false, 28533 valid: true, 28534 validated: !!((_a2 = initialErrors[pathValue]) === null || _a2 === void 0 ? void 0 : _a2.length), 28535 required: isRequired, 28536 initialValue, 28537 errors: shallowRef([]), 28538 bails: (_b = config === null || config === void 0 ? void 0 : config.bail
28538s) !== null && _b !== void 0 ? _b : false, 28539 label: config === null || config === void 0 ? void 0 : config.label, 28540 type: (config === null || config === void 0 ? void 0 : config.type) || "default", 28541 value: currentValue, 28542 multiple: false, 28543 __flags: { 28544 pendingUnmount: { [id]: false }, 28545 pendingReset: false 28546 }, 28547 fieldsCount: 1, 28548 validate: config === null || config === void 0 ? void 0 : config.validate, 28549 dirty: computed(() => { 28550 return !isEqual(unref(currentValue), unref(initialValue)); 28551 }) 28552 }); 28553 pathStates.value.push(state); 28554 pathStateLookup.value[pathValue] = state; 28555 rebuildPathLookup(); 28556 if (errors.value[pathValue] && !initialErrors[pathValue]) { 28557 nextTick(() => { 28558 validateField(pathValue, { mode: "silent" }); 28559 }); 28560 } 28561 if (isRef(path)) { 28562 watch(path, (newPath) => { 28563 rebuildPathLookup(); 28564 const nextValue = klona(currentValue.value); 28565 pathStateLookup.value[newPath] = state; 28566 nextTick(() => { 28567 setInPath(formValues, newPath, nextValue); 28568 }); 28569 }); 28570 } 28571 return state; 28572 } 28573 const debouncedSilentValidation = debounceAsync(_validateSchema, 5); 28574 const debouncedValidation = debounceAsync(_validateSchema, 5); 28575 const validateSchema = withLatest(async (mode) => { 28576 return await (mode === "silent" ? debouncedSilentValidation() : debouncedValidation()); 28577 }, (formResult, [mode]) => { 28578 const currentErrorsPaths = keysOf(formCtx.errorBag.value); 28579 const paths = [ 28580 .../* @__PURE__ */ new Set([...keysOf(formResult.results), ...pathStates.value.map((p2) => p2.path), ...currentErrorsPaths]) 28581 ].sort(); 28582 const results = paths.reduce((validation, _path) => { 28583 var _a2; 28584 const expectedPath = _path; 28585 const pathState = findPathState(expectedPath) || findHoistedPath(expectedPath); 28586 const messages = ((_a2 = formResult.results[expectedPath]) === null || _a2 === void 0 ? void 0 : _a2.errors) || []; 28587 const path = toValue(pathState === null || pathState === void 0 ? void 0 : pathState.path) || expectedPath; 28588 const fieldResult = mergeValidationResults({ errors: messages, valid: !messages.length }, validation.results[path]); 28589 validation.results[path] = fieldResult; 28590 if (!fieldResult.valid) { 28591 validation.errors[path] = fieldResult.errors[0]; 28592 } 28593 if (pathState && extraErrorsBag.value[path]) { 28594 delete extraErrorsBag.value[path]; 28595 } 28596 if (!pathState) { 28597 setFieldError(path, messages); 28598 return validation; 28599 } 28600 pathState.valid = fieldResult.valid; 28601 if (mode === "silent") { 28602 return validation; 28603 } 28604 if (mode === "validated-only" && !pathState.validated) { 28605 return validation; 28606 } 28607 setFieldError(pathState, fieldResult.errors); 28608 return validation; 28609 }, { 28610 valid: formResult.valid, 28611 results: {}, 28612 errors: {}, 28613 source: formResult.source 28614 }); 28615 if (formResult.values) { 28616 results.values = formResult.values; 28617 results.source = formResult.source; 28618 } 28619 keysOf(results.results).forEach((path) => { 28620 var _a2; 28621 const pathState = findPathState(path); 28622 if (!pathState) { 28623 return; 28624 } 28625 if (mode === "silent") { 28626 return; 28627 } 28628 if (mode === "validated-only" && !pathState.validated) { 28629 return; 28630 } 28631 setFieldError(pathState, (_a2 = results.results[path]) === null || _a2 === void 0 ? void 0 : _a2.errors); 28632 }); 28633 return results; 28634 }); 28635 function mutateAllPathState(mutation) { 28636 pathStates.value.forEach(mutation); 28637 } 28638 function findPathState(path) { 28639 const normalizedPath = typeof path === "string" ? normalizeFormPath(path) : path; 28640 const pathState = typeof normalizedPath === "string" ? pathStateLookup.value[normalizedPath] : normalizedPath; 28641 return pathState; 28642 } 28643 function findHoistedPath(path) { 28644 const candidates = pathStates.value.filter((state) => path.startsWith(toValue(state.path))); 28645 return candidates.reduce((bestCandidate, candidate) => { 28646 if (!bestCandidate) { 28647 return candidate; 28648 } 28649 return candidate.path.length > bestCandidate.path.length ? candidate : bestCandidate; 28650 }, void 0); 28651 } 28652 let UNSET_BATCH = []; 28653 let PENDING_UNSET; 28654 function unsetPathValue(path) { 28655 UNSET_BATCH.push(path); 28656 if (!PENDING_UNSET) { 28657 PENDING_UNSET = nextTick(() => { 28658 const sortedPaths = [...UNSET_BATCH].sort().reverse(); 28659 sortedPaths.forEach((p2) => { 28660 unsetPath(formValues, p2); 28661 }); 28662 UNSET_BATCH = []; 28663 PENDING_UNSET = null; 28664 }); 28665 } 28666 return PENDING_UNSET; 28667 } 28668 function makeSubmissionFactory(onlyControlled) { 28669 return function submitHandlerFactory(fn, onValidationError) { 28670 return function submissionHandler(e) { 28671 if (e instanceof Event) { 28672 e.preventDefault(); 28673 e.stopPropagation(); 28674 } 28675 mutateAllPathState((s) => s.touched = true); 28676 isSubmitting.value = true; 28677 submitCount.value++; 28678 return validate2().then((result) => { 28679 const values = klona(formValues); 28680 if (result.valid && typeof fn === "function") { 28681 const controlled = klona(controlledValues.value); 28682 let submittedValues = onlyControlled ? controlled : values; 28683 if (result.values) { 28684 submittedValues = result.source === "schema" ? result.values : Object.assign({}, submittedValues, result.values); 28685 } 28686 return fn(submittedValues, { 28687 evt: e, 28688 controlledValues: controlled, 28689 setErrors, 28690 setFieldError, 28691 setTouched, 28692 setFieldTouched, 28693 setValues, 28694 setFieldValue, 28695 resetForm, 28696 resetField 28697 }); 28698 } 28699 if (!result.valid && typeof onValidationError === "function") { 28700 onValidationError({ 28701 values, 28702 evt: e, 28703 errors: result.errors, 28704 results: result.results 28705 }); 28706 } 28707 }).then((returnVal) => { 28708 isSubmitting.value = false;
28709 return returnVal; 28710 }, (err) => { 28711 isSubmitting.value = false; 28712 throw err; 28713 }); 28714 }; 28715 }; 28716 } 28717 const handleSubmitImpl = makeSubmissionFactory(false); 28718 const handleSubmit = handleSubmitImpl; 28719 handleSubmit.withControlled = makeSubmissionFactory(true); 28720 function removePathState(path, id) { 28721 const idx = pathStates.value.findIndex((s) => { 28722 return s.path === path && (Array.isArray(s.id) ? s.id.includes(id) : s.id === id); 28723 }); 28724 const pathState = pathStates.value[idx]; 28725 if (idx === -1 || !pathState) { 28726 return; 28727 } 28728 nextTick(() => { 28729 validateField(path, { mode: "silent", warn: false }); 28730 }); 28731 if (pathState.multiple && pathState.fieldsCount) { 28732 pathState.fieldsCount--; 28733 } 28734 if (Array.isArray(pathState.id)) { 28735 const idIndex = pathState.id.indexOf(id); 28736 if (idIndex >= 0) { 28737 pathState.id.splice(idIndex, 1); 28738 } 28739 delete pathState.__flags.pendingUnmount[id]; 28740 } 28741 if (!pathState.multiple || pathState.fieldsCount <= 0) { 28742 pathStates.value.splice(idx, 1); 28743 unsetInitialValue(path); 28744 rebuildPathLookup(); 28745 delete pathStateLookup.value[path]; 28746 } 28747 } 28748 function destroyPath(path) { 28749 keysOf(pathStateLookup.value).forEach((key) => { 28750 if (key.startsWith(path)) { 28751 delete pathStateLookup.value[key]; 28752 } 28753 }); 28754 pathStates.value = pathStates.value.filter((s) => !s.path.startsWith(path)); 28755 nextTick(() => { 28756 rebuildPathLookup(); 28757 }); 28758 } 28759 const formCtx = { 28760 name, 28761 formId, 28762 values: formValues, 28763 controlledValues, 28764 errorBag, 28765 errors, 28766 schema, 28767 submitCount, 28768 meta, 28769 isSubmitting, 28770 isValidating, 28771 fieldArrays, 28772 keepValuesOnUnmount, 28773 validateSchema: unref(schema) ? validateSchema : void 0, 28774 validate: validate2, 28775 setFieldError, 28776 validateField, 28777 setFieldValue, 28778 setValues, 28779 setErrors, 28780 setFieldTouched, 28781 setTouched, 28782 resetForm, 28783 resetField, 28784 handleSubmit, 28785 useFieldModel, 28786 defineInputBinds, 28787 defineComponentBinds, 28788 defineField, 28789 stageInitialValue, 28790 unsetInitialValue, 28791 setFieldInitialValue, 28792 createPathState, 28793 getPathState: findPathState, 28794 unsetPathValue, 28795 removePathState, 28796 initialValues, 28797 getAllPathStates: () => pathStates.value, 28798 destroyPath, 28799 isFieldTouched, 28800 isFieldDirty, 28801 isFieldValid 28802 }; 28803 function setFieldValue(field, value, shouldValidate = true) { 28804 const clonedValue = klona(value); 28805 const path = typeof field === "string" ? field : field.path; 28806 const pathState = findPathState(path); 28807 if (!pathState) { 28808 createPathState(path); 28809 } 28810 setInPath(formValues, path, clonedValue); 28811 if (shouldValidate) { 28812 validateField(path); 28813 } 28814 } 28815 function forceSetValues(fields, shouldValidate = true) { 28816 keysOf(formValues).forEach((key) => { 28817 delete formValues[key]; 28818 }); 28819 keysOf(fields).forEach((path) => { 28820 setFieldValue(path, fields[path], false); 28821 }); 28822 if (shouldValidate) { 28823 validate2(); 28824 } 28825 } 28826 function setValues(fields, shouldValidate = true) { 28827 merge$1(formValues, fields); 28828 fieldArrays.forEach((f) => f && f.reset()); 28829 if (shouldValidate) { 28830 validate2(); 28831 } 28832 } 28833 function createModel(path, shouldValidate) { 28834 const pathState = findPathState(toValue(path)) || createPathState(path); 28835 return computed({ 28836 get() { 28837 return pathState.value; 28838 }, 28839 set(value) { 28840 var _a2; 28841 const pathValue = toValue(path); 28842 setFieldValue(pathValue, value, (_a2 = toValue(shouldValidate)) !== null && _a2 !== void 0 ? _a2 : false); 28843 } 28844 }); 28845 } 28846 function setFieldTouched(field, isTouched) { 28847 const pathState = findPathState(field); 28848 if (pathState) { 28849 pathState.touched = isTouched; 28850 } 28851 } 28852 function isFieldTouched(field) { 28853 const pathState = findPathState(field); 28854 if (pathState) { 28855 return pathState.touched; 28856 } 28857 return pathStates.value.filter((s) => s.path.startsWith(field)).some((s) => s.touched); 28858 } 28859 function isFieldDirty(field) { 28860 const pathState = findPathState(field); 28861 if (pathState) { 28862 return pathState.dirty; 28863 } 28864 return pathStates.value.filter((s) => s.path.startsWith(field)).some((s) => s.dirty); 28865 } 28866 function isFieldValid(field) { 28867 const pathState = findPathState(field); 28868 if (pathState) { 28869 return pathState.valid; 28870 } 28871 return pathStates.value.filter((s) => s.path.startsWith(field)).every((s) => s.valid); 28872 } 28873 function setTouched(fields) { 28874 if (typeof fields === "boolean") { 28875 mutateAllPathState((state) => { 28876 state.touched = fields; 28877 }); 28878 return; 28879 }
28880 keysOf(fields).forEach((field) => { 28881 setFieldTouched(field, !!fields[field]); 28882 }); 28883 } 28884 function resetField(field, state) { 28885 var _a2; 28886 const newValue = state && "value" in state ? state.value : getFromPath(initialValues.value, field); 28887 const pathState = findPathState(field); 28888 if (pathState) { 28889 pathState.__flags.pendingReset = true; 28890 } 28891 setFieldInitialValue(field, klona(newValue), true); 28892 setFieldValue(field, newValue, false); 28893 setFieldTouched(field, (_a2 = state === null || state === void 0 ? void 0 : state.touched) !== null && _a2 !== void 0 ? _a2 : false); 28894 setFieldError(field, (state === null || state === void 0 ? void 0 : state.errors) || []); 28895 nextTick(() => { 28896 if (pathState) { 28897 pathState.__flags.pendingReset = false; 28898 } 28899 }); 28900 } 28901 function resetForm(resetState, opts2) { 28902 let newValues = klona((resetState === null || resetState === void 0 ? void 0 : resetState.values) ? resetState.values : originalInitialValues.value); 28903 newValues = (opts2 === null || opts2 === void 0 ? void 0 : opts2.force) ? newValues : merge$1(originalInitialValues.value, newValues); 28904 newValues = isTypedSchema(schema) && isCallable$1(schema.cast) ? schema.cast(newValues) : newValues; 28905 setInitialValues(newValues, { force: opts2 === null || opts2 === void 0 ? void 0 : opts2.force }); 28906 mutateAllPathState((state) => { 28907 var _a2; 28908 state.__flags.pendingReset = true; 28909 state.validated = false; 28910 state.touched = ((_a2 = resetState === null || resetState === void 0 ? void 0 : resetState.touched) === null || _a2 === void 0 ? void 0 : _a2[toValue(state.path)]) || false; 28911 setFieldValue(toValue(state.path), getFromPath(newValues, toValue(state.path)), false); 28912 setFieldError(toValue(state.path), void 0); 28913 }); 28914 (opts2 === null || opts2 === void 0 ? void 0 : opts2.force) ? forceSetValues(newValues, false) : setValues(newValues, false); 28915 setErrors((resetState === null || resetState === void 0 ? void 0 : resetState.errors) || {}); 28916 submitCount.value = (resetState === null || resetState === void 0 ? void 0 : resetState.submitCount) || 0; 28917 nextTick(() => { 28918 validate2({ mode: "silent" }); 28919 mutateAllPathState((state) => { 28920 state.__flags.pendingReset = false; 28921 }); 28922 }); 28923 } 28924 async function validate2(opts2) { 28925 const mode = (opts2 === null || opts2 === void 0 ? void 0 : opts2.mode) || "force"; 28926 if (mode === "force") { 28927 mutateAllPathState((f) => f.validated = true); 28928 } 28929 if (formCtx.validateSchema) { 28930 return formCtx.validateSchema(mode); 28931 } 28932 isValidating.value = true; 28933 const validations = await Promise.all(pathStates.value.map((state) => { 28934 if (!state.validate) { 28935 return Promise.resolve({ 28936 key: toValue(state.path), 28937 valid: true, 28938 errors: [], 28939 value: void 0 28940 }); 28941 } 28942 return state.validate(opts2).then((result) => { 28943 return { 28944 key: toValue(state.path), 28945 valid: result.valid, 28946 errors: result.errors, 28947 value: result.value 28948 }; 28949 }); 28950 })); 28951 isValidating.value = false; 28952 const results = {}; 28953 const errors2 = {}; 28954 const values = {}; 28955 for (const validation of validations) { 28956 results[validation.key] = { 28957 valid: validation.valid, 28958 errors: validation.errors 28959 }; 28960 if (validation.value) { 28961 setInPath(values, validation.key, validation.value); 28962 } 28963 if (validation.errors.length) { 28964 errors2[validation.key] = validation.errors[0]; 28965 } 28966 } 28967 return { 28968 valid: validations.every((r2) => r2.valid), 28969 results, 28970 errors: errors2, 28971 values, 28972 source: "fields" 28973 }; 28974 } 28975 async function validateField(path, opts2) { 28976 var _a2; 28977 const state = findPathState(path); 28978 if (state && (opts2 === null || opts2 === void 0 ? void 0 : opts2.mode) !== "silent") { 28979 state.validated = true; 28980 } 28981 if (schema) { 28982 const { results } = await validateSchema((opts2 === null || opts2 === void 0 ? void 0 : opts2.mode) || "validated-only"); 28983 return results[path] || { errors: [], valid: true }; 28984 } 28985 if (state === null || state === void 0 ? void 0 : state.validate) { 28986 return state.validate(opts2); 28987 } 28988 !state && ((_a2 = opts2 === null || opts2 === void 0 ? void 0 : opts2.warn) !== null && _a2 !== void 0 ? _a2 : true); 28989 return Promise.resolve({ errors: [], valid: true }); 28990 } 28991 function unsetInitialValue(path) { 28992 unsetPath(initialValues.value, path); 28993 } 28994 function stageInitialValue(path, value, updateOriginal = false) { 28995 setFieldInitialValue(path, value); 28996 setInPath(formValues, path, value); 28997 if (updateOriginal && !(opts === null || opts === void 0 ? void 0 : opts.initialValues)) { 28998 setInPath(originalInitialValues.value, path, klona(value)); 28999 } 29000 } 29001 function setFieldInitialValue(path, value, updateOriginal = false) { 29002 setInPath(initialValues.value, path, klona(value)); 29003 if (updateOriginal) { 29004 setInPath(originalInitialValues.value, path, klona(value)); 29005 } 29006 } 29007 async function _validateSchema() { 29008 const schemaValue = unref(schema); 29009 if (!schemaValue) { 29010 return { valid: true, results: {}, errors: {}, source: "none" }; 29011 } 29012 isValidating.value = true; 29013 const formResult = isYupValidator(schemaValue) || isTypedSchema(schemaValue) ? await validateTypedSchema(schemaValue, formValues) : await validateObjectSchema(schemaValue, formValues, { 29014 names: fieldNames.value, 29015 bailsMap: fieldBailsMap.value 29016 }); 29017 isValidating.value = false;
29018 return formResult; 29019 } 29020 const submitForm = handleSubmit((_, { evt }) => { 29021 if (isFormSubmitEvent(evt)) { 29022 evt.target.submit(); 29023 } 29024 }); 29025 onMounted(() => { 29026 if (opts === null || opts === void 0 ? void 0 : opts.initialErrors) { 29027 setErrors(opts.initialErrors); 29028 } 29029 if (opts === null || opts === void 0 ? void 0 : opts.initialTouched) { 29030 setTouched(opts.initialTouched); 29031 } 29032 if (opts === null || opts === void 0 ? void 0 : opts.validateOnMount) { 29033 validate2(); 29034 return; 29035 } 29036 if (formCtx.validateSchema) { 29037 formCtx.validateSchema("silent"); 29038 } 29039 }); 29040 if (isRef(schema)) { 29041 watch(schema, () => { 29042 var _a2; 29043 (_a2 = formCtx.validateSchema) === null || _a2 === void 0 ? void 0 : _a2.call(formCtx, "validated-only"); 29044 }); 29045 } 29046 provide(FormContextKey, formCtx); 29047 function defineField(path, config) { 29048 const label = isCallable$1(config) ? void 0 : config === null || config === void 0 ? void 0 : config.label; 29049 const pathState = findPathState(toValue(path)) || createPathState(path, { label }); 29050 const evalConfig = () => isCallable$1(config) ? config(omit(pathState, PRIVATE_PATH_STATE_KEYS)) : config || {}; 29051 function onBlur() { 29052 var _a2; 29053 pathState.touched = true; 29054 const validateOnBlur = (_a2 = evalConfig().validateOnBlur) !== null && _a2 !== void 0 ? _a2 : getConfig().validateOnBlur; 29055 if (validateOnBlur) { 29056 validateField(toValue(pathState.path)); 29057 } 29058 } 29059 function onInput() { 29060 var _a2; 29061 const validateOnInput = (_a2 = evalConfig().validateOnInput) !== null && _a2 !== void 0 ? _a2 : getConfig().validateOnInput; 29062 if (validateOnInput) { 29063 nextTick(() => { 29064 validateField(toValue(pathState.path)); 29065 }); 29066 } 29067 } 29068 function onChange() { 29069 var _a2; 29070 const validateOnChange = (_a2 = evalConfig().validateOnChange) !== null && _a2 !== void 0 ? _a2 : getConfig().validateOnChange; 29071 if (validateOnChange) { 29072 nextTick(() => { 29073 validateField(toValue(pathState.path)); 29074 }); 29075 } 29076 } 29077 const props = computed(() => { 29078 const base = { 29079 onChange, 29080 onInput, 29081 onBlur 29082 }; 29083 if (isCallable$1(config)) { 29084 return Object.assign(Object.assign({}, base), config(omit(pathState, PRIVATE_PATH_STATE_KEYS)).props || {}); 29085 } 29086 if (config === null || config === void 0 ? void 0 : config.props) { 29087 return Object.assign(Object.assign({}, base), config.props(omit(pathState, PRIVATE_PATH_STATE_KEYS))); 29088 } 29089 return base; 29090 }); 29091 const model = createModel(path, () => { 29092 var _a2, _b, _c; 29093 return (_c = (_a2 = evalConfig().validateOnModelUpdate) !== null && _a2 !== void 0 ? _a2 : (_b = getConfig()) === null || _b === void 0 ? void 0 : _b.validateOnModelUpdate) !== null && _c !== void 0 ? _c : true; 29094 }); 29095 return [model, props]; 29096 } 29097 function useFieldModel(pathOrPaths) { 29098 if (!Array.isArray(pathOrPaths)) { 29099 return createModel(pathOrPaths); 29100 } 29101 return pathOrPaths.map((p2) => createModel(p2, true)); 29102 } 29103 function defineInputBinds(path, config) { 29104 const [model, props] = defineField(path, config); 29105 function onBlur() { 29106 props.value.onBlur(); 29107 } 29108 function onInput(e) { 29109 const value = normalizeEventValue(e); 29110 setFieldValue(toValue(path), value, false); 29111 props.value.onInput(); 29112 } 29113 function onChange(e) { 29114 const value = normalizeEventValue(e); 29115 setFieldValue(toValue(path), value, false); 29116 props.value.onChange(); 29117 } 29118 return computed(() => { 29119 return Object.assign(Object.assign({}, props.value), { 29120 onBlur, 29121 onInput, 29122 onChange, 29123 value: model.value 29124 }); 29125 }); 29126 } 29127 function defineComponentBinds(path, config) { 29128 const [model, props] = defineField(path, config); 29129 const pathState = findPathState(toValue(path)); 29130 function onUpdateModelValue(value) { 29131 model.value = value; 29132 } 29133 return computed(() => { 29134 const conf = isCallable$1(config) ? config(omit(pathState, PRIVATE_PATH_STATE_KEYS)) : config || {}; 29135 return Object.assign({ [conf.model || "modelValue"]: model.value, [`onUpdate:${conf.model || "modelValue"}`]: onUpdateModelValue }, props.value); 29136 }); 29137 } 29138 const ctx = Object.assign(Object.assign({}, formCtx), { values: readonly(formValues), handleReset: () => resetForm(), submitForm }); 29139 provide(PublicFormContextKey, ctx); 29140 return ctx; 29141} 29142function useFormMeta(pathsState, currentValues, initialValues, errors) { 29143 const MERGE_STRATEGIES = {
29144 touched: "some", 29145 pending: "some", 29146 valid: "every" 29147 }; 29148 const isDirty2 = computed(() => { 29149 return !isEqual(currentValues, unref(initialValues)); 29150 }); 29151 function calculateFlags() { 29152 const states = pathsState.value; 29153 return keysOf(MERGE_STRATEGIES).reduce((acc, flag) => { 29154 const mergeMethod = MERGE_STRATEGIES[flag]; 29155 acc[flag] = states[mergeMethod]((s) => s[flag]); 29156 return acc; 29157 }, {}); 29158 } 29159 const flags = reactive(calculateFlags()); 29160 watchEffect(() => { 29161 const value = calculateFlags(); 29162 flags.touched = value.touched; 29163 flags.valid = value.valid; 29164 flags.pending = value.pending; 29165 }); 29166 return computed(() => { 29167 return Object.assign(Object.assign({ initialValues: unref(initialValues) }, flags), { valid: flags.valid && !keysOf(errors.value).length, dirty: isDirty2.value }); 29168 }); 29169} 29170function useFormInitialValues(pathsState, formValues, opts) { 29171 const values = resolveInitialValues(opts); 29172 const initialValues = ref(values); 29173 const originalInitialValues = ref(klona(values)); 29174 function setInitialValues(values2, opts2) { 29175 if (opts2 === null || opts2 === void 0 ? void 0 : opts2.force) { 29176 initialValues.value = klona(values2); 29177 originalInitialValues.value = klona(values2); 29178 } else { 29179 initialValues.value = merge$1(klona(initialValues.value) || {}, klona(values2)); 29180 originalInitialValues.value = merge$1(klona(originalInitialValues.value) || {}, klona(values2)); 29181 } 29182 if (!(opts2 === null || opts2 === void 0 ? void 0 : opts2.updateFields)) { 29183 return; 29184 } 29185 pathsState.value.forEach((state) => { 29186 const wasTouched = state.touched; 29187 if (wasTouched) { 29188 return; 29189 } 29190 const newValue = getFromPath(initialValues.value, toValue(state.path)); 29191 setInPath(formValues, toValue(state.path), klona(newValue)); 29192 }); 29193 } 29194 return { 29195 initialValues, 29196 originalInitialValues, 29197 setInitialValues 29198 }; 29199} 29200function mergeValidationResults(a, b2) { 29201 if (!b2) { 29202 return a; 29203 } 29204 return { 29205 valid: a.valid && b2.valid, 29206 errors: [...a.errors, ...b2.errors] 29207 }; 29208} 29209const FormImpl = /* @__PURE__ */ defineComponent({ 29210 name: "Form", 29211 inheritAttrs: false, 29212 props: { 29213 as: { 29214 type: null, 29215 default: "form" 29216 }, 29217 validationSchema: { 29218 type: Object, 29219 default: void 0 29220 }, 29221 initialValues: { 29222 type: Object, 29223 default: void 0 29224 }, 29225 initialErrors: { 29226 type: Object, 29227 default: void 0 29228 }, 29229 initialTouched: { 29230 type: Object, 29231 default: void 0 29232 }, 29233 validateOnMount: { 29234 type: Boolean, 29235 default: false 29236 }, 29237 onSubmit: { 29238 type: Function, 29239 default: void 0 29240 }, 29241 onInvalidSubmit: { 29242 type: Function, 29243 default: void 0 29244 }, 29245 keepValues: { 29246 type: Boolean, 29247 default: false 29248 }, 29249 name: { 29250 type: String, 29251 default: "Form" 29252 } 29253 }, 29254 setup(props, ctx) { 29255 const validationSchema = toRef(props, "validationSchema"); 29256 const keepValues = toRef(props, "keepValues"); 29257 const { errors, errorBag, values, meta, isSubmitting, isValidating, submitCount, controlledValues, validate: validate2, validateField, handleReset, resetForm, handleSubmit, setErrors, setFieldError, setFieldValue, setValues, setFieldTouched, setTouched, resetField } = useForm({ 29258 validationSchema: validationSchema.value ? validationSchema : void 0, 29259 initialValues: props.initialValues, 29260 initialErrors: props.initialErrors, 29261 initialTouched: props.initialTouched, 29262 validateOnMount: props.validateOnMount, 29263 keepValuesOnUnmount: keepValues, 29264 name: props.name 29265 }); 29266 const submitForm = handleSubmit((_, { evt }) => { 29267 if (isFormSubmitEvent(evt)) { 29268 evt.target.submit(); 29269 } 29270 }, props.onInvalidSubmit); 29271 const onSubmit = props.onSubmit ? handleSubmit(props.onSubmit, props.onInvalidSubmit) : submitForm; 29272 function handleFormReset(e) { 29273 if (isEvent(e)) { 29274 e.preventDefault(); 29275 } 29276 handleReset(); 29277 if (typeof ctx.attrs.onReset === "function") { 29278 ctx.attrs.onReset(); 29279 } 29280 } 29281 function handleScopedSlotSubmit(evt, onSubmit2) { 29282 const onSuccess = typeof evt === "function" && !onSubmit2 ? evt : onSubmit2; 29283 return handleSubmit(onSuccess, props.onInvalidSubmit)(evt); 29284 } 29285 function getValues() { 29286 return klona(values); 29287 } 29288 function getMeta() { 29289 return klona(meta.value); 29290 } 29291 function getErrors() { 29292 return klona(errors.value); 29293 } 29294 function slotProps() { 29295 return { 29296 meta: meta.value, 29297 errors: errors.value, 29298 errorBag: errorBag.value, 29299 values, 29300 isSubmitting: isSubmitting.value, 29301 isValidating: isValidating.value, 29302 submitCount: submitCount.value, 29303 controlledValues: controlledValues.value, 29304 validate: validate2, 29305 validateField, 29306 handleSubmit: handleScopedSlotSubmit, 29307 handleReset, 29308 submitForm, 29309 setErrors, 29310 setFieldError, 29311 setFieldValue, 29312 setValues, 29313 setFieldTouched, 29314 setTouched, 29315 resetForm, 29316 resetField, 29317 getValues, 29318 getMeta, 29319 getErrors 29320 }; 29321 } 29322 ctx.expose({ 29323 setFieldError, 29324 setErrors, 29325 setFieldValue, 29326 setValues, 29327 setFieldTouched, 29328 setTouched, 29329 resetForm, 29330 validate: validate2, 29331 validateField, 29332 resetField, 29333 getValues, 29334 getMeta, 29335 getErrors, 29336 values, 29337 meta, 29338 errors 29339 }); 29340 return function renderForm() { 29341 const tag = props.as === "form" ? props.as : !props.as ? null : resolveDynamicComponent(props.as); 29342 const children = normalizeChildren(tag, ctx, slotProps); 29343 if (!tag) { 29344 return children; 29345 } 29346 const formAttrs = tag === "form" ? { 29347 // Disables native validation as vee-validate will handle it. 29348 novalidate: true 29349 } : {}; 29350 return h(tag, Object.assign(Object.assign(Object.assign({}, formAttrs), ctx.attrs), { onSubmit, onReset: handleFormReset }), children); 29351 }; 29352 } 29353}); 29354const Form = FormImpl; 29355/** 29356 * vee-validate v4.15.0 29357 * (c) 2024 Abdelrahman Awad 29358 * @license MIT 29359 */
29360const alphanumeric = { 29361 en: /^[0-9A-Z]*$/i, 29362 cs: /^[0-9A-ZÃÄÄÃÄÃÅÃÅŠŤÃŮÎ]*$/i, 29363 da: /^[0-9A-ZÃÃà ]$/i, 29364 de: /^[0-9A-ZÃÃÃÃ]*$/i, 29365 es: /^[0-9A-ZÃÃÃÃÃÃÃ]*$/i, 29366 fr: /^[0-9A-ZÃÃÃÃÃÃÃÃÃÃÃÅÃÃß]*$/i, 29367 it: /^[0-9A-Z\xC0-\xFF]*$/i, 29368 lt: /^[0-9A-ZÄÄÄÄĮŠŲŪŽ]*$/i, 29369 hu: /^[0-9A-ZÃÃÃÃÃÅÃÃŰ]*$/i, 29370 nl: /^[0-9A-ZÃÃÃÃÃÃ]*$/i, 29371 pl: /^[0-9A-ZÄÄÄÅÅÅÃŻŹ]*$/i, 29372 pt: /^[0-9A-ZÃÃÃÃÃÃÃÃÃÃÃÃÃ]*$/i, 29373 ru: /^[0-9Ð-ЯÐ]*$/i, 29374 kz: /^[0-9Ð-ЯÐ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]*$/i, 29375 sk: /^[0-9A-ZÃÃÄÄÃÃĹĽÅÃÅŠŤÃÃŽ]*$/i, 29376 sr: /^[0-9A-ZÄÄŽŠÄ]*$/i, 29377 sv: /^[0-9A-Zà ÃÃ]*$/i, 29378 tr: /^[0-9A-ZÃÄİıÃÅÃ]*$/i, 29379 uk: /^[0-9Ð-ЩЬЮЯÐÐÐÒ]*$/i, 29380 ar: /^[٠١٢٣٤٥٦٧٨٩0-9Ø¡Ø¢Ø£Ø¤Ø¥Ø¦Ø§Ø¨Ø©ØªØ«Ø¬ØØ®Ø¯Ø°Ø±Ø²Ø³Ø´ØµØ¶Ø·Ø¸Ø¹ØºÙÙÙÙÙ ÙÙÙÙÙÙÙÙÙÙÙÙÙÙ°]*$/, 29381 az: /^[0-9A-ZÃÆÄİıÃÅÃ]*$/i, 29382 ug: /^[0-9A-ZÚÛÛØ±ØªÙÛÚÙپھسداÛÙÙÙÙØ²Ø´ØºÛبÙÙ ÚÙÚ¯Ø®Ø¬ÛØ¦]*$/i 29383}; 29384const alphaDash = { 29385 en: /^[0-9A-Z_-]*$/i, 29386 cs: /^[0-9A-ZÃÄÄÃÄÃÅÃÅŠŤÃŮÎ_-]*$/i, 29387 da: /^[0-9A-ZÃÃà _-]*$/i, 29388 de: /^[0-9A-ZÃÃÃÃ_-]*$/i, 29389 es: /^[0-9A-ZÃÃÃÃÃÃÃ_-]*$/i, 29390 fr: /^[0-9A-ZÃÃÃÃÃÃÃÃÃÃÃÅÃÃß_-]*$/i, 29391 it: /^[0-9A-Z\xC0-\xFF_-]*$/i, 29392 lt: /^[0-9A-ZÄÄÄÄĮŠŲŪŽ_-]*$/i, 29393 nl: /^[0-9A-ZÃÃÃÃÃÃ_-]*$/i, 29394 hu: /^[0-9A-ZÃÃÃÃÃÅÃÃŰ_-]*$/i, 29395 pl: /^[0-9A-ZÄÄÄÅÅÅÃŻŹ_-]*$/i, 29396 pt: /^[0-9A-ZÃÃÃÃÃÃÃÃÃÃÃÃÃ_-]*$/i, 29397 ru: /^[0-9Ð-ЯÐ_-]*$/i, 29398 kz: /^[0-9Ð-ЯÐ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA_-]*$/i, 29399 sk: /^[0-9A-ZÃÃÄÄÃÃĹĽÅÃÅŠŤÃÃŽ_-]*$/i, 29400 sr: /^[0-9A-ZÄÄŽŠÄ_-]*$/i, 29401 sv: /^[0-9A-Zà ÃÃ_-]*$/i, 29402 tr: /^[0-9A-ZÃÄİıÃÅÃ_-]*$/i, 29403 uk: /^[0-9Ð-ЩЬЮЯÐÐÐÒ_-]*$/i, 29404 ar: /^[٠١٢٣٤٥٦٧٨٩0-9Ø¡Ø¢Ø£Ø¤Ø¥Ø¦Ø§Ø¨Ø©ØªØ«Ø¬ØØ®Ø¯Ø°Ø±Ø²Ø³Ø´ØµØ¶Ø·Ø¸Ø¹ØºÙÙÙÙÙ ÙÙÙÙÙÙÙÙÙÙÙÙÙÙ°_-]*$/, 29405 az: /^[0-9A-ZÃÆÄİıÃÅÃ_-]*$/i, 29406 ug: /^[0-9A-ZÚÛÛØ±ØªÙÛÚÙپھسداÛÙÙÙÙØ²Ø´ØºÛبÙÙ ÚÙÚ¯Ø®Ø¬ÛØ¦_-]*$/i 29407}; 29408const getLocale = (params) => { 29409 if (!params) { 29410 return void 0; 29411 } 29412 return Array.isArray(params) ? params[0] : params.locale; 29413}; 29414function getSingleParam(params, paramName) { 29415 return Array.isArray(params) ? params[0] : params[paramName]; 29416} 29417function isEmpty(value) { 29418 if (value === null || value === void 0 || value === "") { 29419 return true; 29420 } 29421 if (Array.isArray(value) && value.length === 0) { 29422 return true; 29423 } 29424 return false; 29425} 29426const alphaDashValidator = (value, params) => { 29427 if (isEmpty(value)) { 29428 return true; 29429 } 29430 const locale = getLocale(params); 29431 if (Array.isArray(value)) { 29432 return value.every((val) => alphaDashValidator(val, { locale })); 29433 } 29434 const valueAsString = String(value); 29435 if (!locale) { 29436 return Object.keys(alphaDash).some((loc) => alphaDash[loc].test(valueAsString)); 29437 } 29438 return (alphaDash[locale] || alphaDash.en).test(valueAsString); 29439}; 29440const alphaNumValidator = (value, params) => { 29441 if (isEmpty(value)) { 29442 return true; 29443 } 29444 const locale = getLocale(params); 29445 if (Array.isArray(value)) { 29446 return value.every((val) => alphaNumValidator(val, { locale })); 29447 } 29448 const valueAsString = String(value); 29449 if (!locale) { 29450 return Object.keys(alphanumeric).some((loc) => alphanumeric[loc].test(valueAsString)); 29451 } 29452 return (alphanumeric[locale] || alphanumeric.en).test(valueAsString); 29453}; 29454const emailRE = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i; 29455const emailValidator = (value) => { 29456 if (isEmpty(value)) { 29457 return true; 29458 } 29459 if (Array.isArray(value)) { 29460 return value.every((val) => emailRE.test(String(val))); 29461 } 29462 return emailRE.test(String(value)); 29463}; 29464const maxLengthValidator = (value, params) => { 29465 if (isEmpty(value)) { 29466 return true; 29467 } 29468 const length = getSingleParam(params, "length"); 29469 if (Array.isArray(value)) { 29470 return value.every((val) => maxLengthValidator(val, { length })); 29471 } 29472 return [...String(value)].length <= Number(length); 29473}; 29474const minValidator = (value, params) => { 29475 if (isEmpty(value)) { 29476 return true; 29477 } 29478 const length = getSingleParam(params, "length"); 29479 if (Array.isArray(value)) { 29480 return value.every((val) => minValidator(val, { length })); 29481 } 29482 return [...String(value)].length >= Number(length); 29483}; 29484const ar = /^[٠١٢٣٤٥٦٧٨٩]+$/; 29485const en = /^[0-9]+$/; 29486const numericValidator = (value) => { 29487 if (isEmpty(value)) { 29488 return true; 29489 } 29490 const testValue = (val) => { 29491 const strValue = String(val); 29492 return en.test(strValue) || ar.test(strValue); 29493 }; 29494 if (Array.isArray(value)) { 29495 return value.every(testValue); 29496 } 29497 return testValue(value); 29498}; 29499function isNullOrUndefined(value) { 29500 return value === null || value === void 0; 29501} 29502function isEmptyArray(arr) { 29503 return Array.isArray(arr) && arr.length === 0; 29504} 29505const requiredValidator = (value) => { 29506 if (isNullOrUndefined(value) || isEmptyArray(value) || value === false) { 29507 return false;
29508 } 29509 return !!String(value).trim().length; 29510}; 29511/** 29512 * vee-validate v4.15.0 29513 * (c) 2024 Abdelrahman Awad 29514 * @license MIT 29515 */ 29516function isCallable(fn) { 29517 return typeof fn === "function"; 29518} 29519function isObjectLike(value) { 29520 return typeof value === "object" && value !== null; 29521} 29522function getTag(value) { 29523 if (value == null) { 29524 return value === void 0 ? "[object Undefined]" : "[object Null]"; 29525 } 29526 return Object.prototype.toString.call(value); 29527} 29528function isPlainObject(value) { 29529 if (!isObjectLike(value) || getTag(value) !== "[object Object]") { 29530 return false; 29531 } 29532 if (Object.getPrototypeOf(value) === null) { 29533 return true; 29534 } 29535 let proto = value; 29536 while (Object.getPrototypeOf(proto) !== null) { 29537 proto = Object.getPrototypeOf(proto); 29538 } 29539 return Object.getPrototypeOf(value) === proto; 29540} 29541function merge(target, source) { 29542 Object.keys(source).forEach((key) => { 29543 if (isPlainObject(source[key]) && isPlainObject(target[key])) { 29544 if (!target[key]) { 29545 target[key] = {}; 29546 } 29547 merge(target[key], source[key]); 29548 return; 29549 } 29550 target[key] = source[key]; 29551 }); 29552 return target; 29553} 29554function interpolate(template, values, options) { 29555 const { prefix, suffix } = options; 29556 const regExp = buildRegex(prefix, suffix); 29557 return template.replace(regExp, function(_, param, placeholder) { 29558 if (!param || !values.params) { 29559 return placeholder in values ? values[placeholder] : values.params && placeholder in values.params ? values.params[placeholder] : `${prefix}${placeholder}${suffix}`; 29560 } 29561 if (!Array.isArray(values.params)) { 29562 return placeholder in values.params ? values.params[placeholder] : `${prefix}${placeholder}${suffix}`; 29563 } 29564 const paramIndex = Number(param.replace(":", "")); 29565 return paramIndex in values.params ? values.params[paramIndex] : `${param}${prefix}${placeholder}${suffix}`; 29566 }); 29567} 29568function escapeRegex(string) { 29569 return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); 29570} 29571function buildRegex(prefix, suffix) { 29572 const safePrefix = escapeRegex(prefix); 29573 const safeSuffix = escapeRegex(suffix); 29574 return new RegExp(`([0-9]:)?${safePrefix}((?:(?!${safeSuffix}).)+)${safeSuffix}`, "g"); 29575} 29576class Dictionary { 29577 constructor(locale, dictionary, interpolateOptions = { prefix: "{", suffix: "}" }) { 29578 this.container = {}; 29579 this.locale = locale; 29580 this.interpolateOptions = interpolateOptions; 29581 this.merge(dictionary); 29582 } 29583 resolve(ctx, interpolateOptions) { 29584 let result = this.format(this.locale, ctx, interpolateOptions); 29585 if (!result && this.fallbackLocale && this.fallbackLocale !== this.locale) { 29586 result = this.format(this.fallbackLocale, ctx, interpolateOptions); 29587 } 29588 return result || this.getDefaultMessage(this.locale, ctx); 29589 } 29590 getDefaultMessage(locale, ctx) { 29591 const { label, name } = ctx; 29592 const fieldName = this.resolveLabel(locale, name, label); 29593 return `${fieldName} is not valid`; 29594 } 29595 getLocaleDefault(locale, field) { 29596 var _a, _b, _c, _d, _e; 29597 return ((_c = (_b = (_a = this.container[locale]) === null || _a === void 0 ? void 0 : _a.fields) === null || _b === void 0 ? void 0 : _b[field]) === null || _c === void 0 ? void 0 : _c._default) || ((_e = (_d = this.container[locale]) === null || _d === void 0 ? void 0 : _d.messages) === null || _e === void 0 ? void 0 : _e._default); 29598 } 29599 resolveLabel(locale, name, label) { 29600 var _a, _b, _c, _d; 29601 if (label) { 29602 return ((_b = (_a = this.container[locale]) === null || _a === void 0 ? void 0 : _a.names) === null || _b === void 0 ? void 0 : _b[label]) || label; 29603 } 29604 return ((_d = (_c = this.container[locale]) === null || _c === void 0 ? void 0 : _c.names) === null || _d === void 0 ? void 0 : _d[name]) || name; 29605 } 29606 format(locale, ctx, interpolateOptions) { 29607 var _a, _b, _c, _d, _e; 29608 let message2; 29609 const { rule, form, label, name } = ctx; 29610 const fieldName = this.resolveLabel(locale, name, label); 29611 if (!rule) { 29612 message2 = this.getLocaleDefault(locale, name) || ""; 29613 return isCallable(message2) ? message2(ctx) : interpolate(message2, Object.assign(Object.assign({}, form), { field: fieldName }), interpolateOptions !== null && interpolateOptions !== void 0 ? interpolateOptions : this.interpolateOptions); 29614 } 29615 message2 = ((_c = (_b = (_a = this.container[locale]) === null || _a === void 0 ? void 0 : _a.fields) === null || _b === void 0 ? void 0 : _b[name]) === null || _c === void 0 ? void 0 : _c[rule.name]) || ((_e = (_d = this.container[locale]) === null || _d === void 0 ? void 0 : _d.messages) === null || _e === void 0 ? void 0 : _e[rule.name]); 29616 if (!message2) { 29617 message2 = this.getLocaleDefault(locale, name) || ""; 29618 } 29619 return isCallable(message2) ? message2(ctx) : interpolate(message2, Object.assign(Object.assign({}, form), { field: fieldName, params: rule.params }), interpolateOptions !== null && interpolateOptions !== void 0 ? interpolateOptions : this.interpolateOptions); 29620 } 29621 merge(dictionary) { 29622 merge(this.container, dictionary); 29623 } 29624} 29625const DICTIONARY = new Dictionary("en", {}); 29626function localize$1(locale, dictionary, interpolateOptions) { 29627 const generateMessage = (ctx) => { 29628 return DICTIONARY.resolve(ctx, interpolateOptions); 29629 }; 29630 { 29631 DICTIONARY.locale = locale; 29632 if (dictionary) { 29633 DICTIONARY.merge({ [locale]: dictionary }); 29634 } 29635 return generateMessage; 29636 } 29637} 29638function veeValidateRules() { 29639 defineRule("required", requiredValidator); 29640 defineRule("required_named", requiredValidator); 29641 defineRule("required_named_format", requiredValidator); 29642 defineRule("required_named_alt", requiredValidator); 29643 defineRule("numeric", numericValidator); 29644 defineRule("max", maxLengthValidator); 29645 defineRule("min", minValidator); 29646 defineRule("email", emailValidator); 29647 defineRule("alpha_num", alphaNumValidator); 29648 defineRule("alpha_dash", alphaDashValidator); 29649 configure({ 29650 generateMessage: localize$1("en", { 29651 messages: { 29652 required: "This field is required", 29653 required_named: "{field} is required", 29654 required_named_alt: "Please enter a valid {field}", 29655 required_named_format: "{field} is required in the format 0:{format}", 29656 max: "{field} must be less than 0:{length} characters", 29657 min: "{field} must be more than 0:{length} characters", 29658 numeric: "{field} must be a number", 29659 email: "Please enter an email address in the [email protected] format", 29660 alpha_num: "{field} must contain only letters and numbers", 29661 alpha_dash: "{field} must contain only letters, numbers, or dashes" 29662 } 29663 }) 29664 }); 29665 defineRule("date_format", (value) => { 29666 if (!value) return true; 29667 const dateRegex2 = /^\d{2}\/\d{2}\/\d{4}$/; 29668 return dateRegex2.test(value) || "Please enter a date of birth in the MM/DD/YYYY format."; 29669 }); 29670 defineRule("zip", (value, [variant] = []) => { 29671 if (!value) return true; 29672 if (value.match(/^\d{5}$/) || value.match(/^\d{5}-\d{4}$/)) return true; 29673 return variant === "alt" ? "Please enter a valid Zip Code" : "This field must be 5 or 9 digits, 00000 or 00000-0000."; 29674 }); 29675 defineRule("linkedin", (value) => { 29676 if (!value) return true; 29677 const linkedinRegex = /^(http(s)?:\/\/)?([\w]+\.)?linkedin\.com\/(pub|in|profile)\/([-a-zA-Z0-9]+)\/*/; 29678 return linkedinRegex.test(value) || "Must be a valid LinkedIn url, e.g. https://linkedin.com/in/FirstName-LastName-xxxxxxxx"; 29679 }); 29680 defineRule("phone", (value) => { 29681 if (!value) return true; 29682 return value.match(/^\d{3}-\d{3}-\d{4}$/) || "Phone number can only contain numbers and must be in format: 000-000-0000"; 29683 }); 29684 defineRule("isAdult", (value) => { 29685 if (!value) return true; 29686 return isAdult(value) || "You must be 18 or older to submit this form."; 29687 }); 29688 defineRule("isValidDate", (value) => { 29689 if (!value) return true; 29690 return isValidDate(value) || "Please enter a valid date."; 29691 }); 29692} 29693const US_STATE_OPTIONS = [ 29694 { value: "AL", text: "Alabama" }, 29695 { value: "AK", text: "Alaska" }, 29696 { value: "AZ", text: "Arizona" }, 29697 { value: "AR", text: "Arkansas" }, 29698 { value: "CA", text: "California" }, 29699 { value: "CO", text: "Colorado" }, 29700 { value: "CT", text: "Connecticut" }, 29701 { value: "DC", text: "District of Columbia" }, 29702 { value: "DE", text: "Delaware" }, 29703 { value: "FL", text: "Florida" }, 29704 { value: "GA", text: "Georgia" }, 29705 { value: "HI", text: "Hawaii" }, 29706 { value: "ID", text: "Idaho" }, 29707 { value: "IL", text: "Illinois" }, 29708 { value: "IN", text: "Indiana" }, 29709 { value: "IA", text: "Iowa" }, 29710 { value: "KS", text: "Kansas" }, 29711 { value: "KY", text: "Kentucky" }, 29712 { value: "LA", text: "Louisiana" }, 29713 { value: "ME", text: "Maine" }, 29714 { value: "MD", text: "Maryland" }, 29715 { value: "MA", text: "Massachusetts" }, 29716 { value: "MI", text: "Michigan" }, 29717 { value: "MN", text: "Minnesota" }, 29718 { value: "MS", text: "Mississippi" }, 29719 { value: "MO", text: "Missouri" }, 29720 { value: "MT", text: "Montana" }, 29721 { value: "NE", text: "Nebraska" }, 29722 { value: "NV", text: "Nevada" }, 29723 { value: "NH", text: "New Hampshire" }, 29724 { value: "NJ", text: "New Jersey" }, 29725 { value: "NM", text: "New Mexico" }, 29726 { value: "NY", text: "New York" }, 29727 { value: "NC", text: "North Carolina" }, 29728 { value: "ND", text: "North Dakota" }, 29729 { value: "OH", text: "Ohio" }, 29730 { value: "OK", text: "Oklahoma" }, 29731 { value: "OR", text: "Oregon" }, 29732 { value: "PA", text: "Pennsylvania" }, 29733 { value: "RI", text: "Rhode Island" }, 29734 { value: "SC", text: "South Carolina" }, 29735 { value: "SD", text: "South Dakota" }, 29736 { value: "TN", text: "Tennessee" }, 29737 { value: "TX", text: "Texas" }, 29738 { value: "UT", text: "Utah" }, 29739 { value: "VT", text: "Vermont" }, 29740 { value: "VA", text: "Virginia" }, 29741 { value: "WA", text: "Washington" }, 29742 { value: "WV", text: "West Virginia" }, 29743 { value: "WI", text: "Wisconsin" }, 29744 { value: "WY", text: "Wyoming" } 29745]; 29746const LANGUAGE_OPTIONS = [ 29747 { value: "English", text: "English" }, 29748 { value: "Cantonese", text: "Cantonese" }, 29749 { value: "Farsi", text: "Farsi" }, 29750 { value: "French", text: "French" }, 29751 { value: "Fukienese", text: "Fukienese" }, 29752 { value: "German", text: "German" }, 29753 { value: "Gujarati", text: "Gujarati" }, 29754 { value: "Hebrew", text: "Hebrew" }, 29755 { value: "Hindi", text: "Hindi" }, 29756 { value: "Japanese", text: "Japanese" }, 29757 { value: "Korean", text: "Korean" }, 29758 { value: "Lao", text: "Lao" }, 29759 { value: "Mandarin", text: "Mandarin" }, 29760 { value: "Polish", text: "Polish" }, 29761 { value: "Portuguese", text: "Portuguese" }, 29762 { value: "Punjabi", text: "Punjabi" }, 29763 { value: "Russian", text: "Russian" }, 29764 { value: "Shanghainese", text: "Shanghainese" }, 29765 { value: "Spanish", text: "Spanish" }, 29766 { value: "Tagalog", text: "Tagalog" }, 29767 { value: "Taiwanese", text: "Taiwanese" }, 29768 { value: "Urdu", text: "Urdu" }, 29769 { value: "Vietnamese", text: "Vietnamese" } 29770]; 29771const CONTACT_METHOD_OPTIONS = [ 29772 { value: "Email", text: "Email" }, 29773 { value: "Phone", text: "Phone" } 29774]; 29775const CONTACT_TIME_OPTIONS = [ 29776 { value: "Morning", text: "Morning" }, 29777 { value: "Afternoon", text: "Afternoon" }, 29778 { value: "Evening", text: "Evening" } 29779]; 29780function settingsShowsLanguageFieldset({ settings }) { 29781 if ((settings == null ? void 0 : settings.formType) === "agentNewsletter") { 29782 return false;
29783 } 29784 return Boolean(settings == null ? void 0 : settings.languageFieldset); 29785} 29786function settingsShowsBestMethodFieldset({ settings }) { 29787 if ((settings == null ? void 0 : settings.formType) === "agentNewsletter") { 29788 return false; 29789 } 29790 return Boolean(settings == null ? void 0 : settings.bestMethodFieldset); 29791} 29792function settingsShowsBestTimeFieldset({ settings }) { 29793 if ((settings == null ? void 0 : settings.formType) === "agentNewsletter") { 29794 return false; 29795 } 29796 return Boolean(settings == null ? void 0 : settings.bestTimeFieldset); 29797} 29798function settingsShowsBirthDateFieldset({ settings }) { 29799 if ((settings == null ? void 0 : settings.formType) === "agentNewsletter") { 29800 return false; 29801 } 29802 const ft = settings == null ? void 0 : settings.formType; 29803 return ft === "goConsumer" || ft === "agentConsumer" || ft === "goCustom"; 29804} 29805function settingsShowsLinkedinFieldset({ settings }) { 29806 if ((settings == null ? void 0 : settings.formType) === "agentNewsletter") { 29807 return false; 29808 } 29809 return Boolean(settings == null ? void 0 : settings.linkedinFieldset); 29810} 29811function settingsShowsOpenTextFields({ settings }, openFieldNumber) { 29812 if ((settings == null ? void 0 : settings.formType) === "agentNewsletter") { 29813 return false; 29814 } 29815 return Boolean(settings == null ? void 0 : settings["openTextFieldset" + openFieldNumber]); 29816} 29817function openTextFieldLabel({ settings }, openFieldNumber) { 29818 return (settings == null ? void 0 : settings["openTextLabel" + openFieldNumber]) || "No Label"; 29819} 29820function requireContactMethod({ settings }) { 29821 return ["agentConsumer", "goRecruiter", "goConsumer"].includes( 29822 settings == null ? void 0 : settings.formType 29823 ); 29824} 29825function isEmailRequired({ settings, form }) { 29826 return (settings == null ? void 0 : settings.formType) === "goCustom" || (settings == null ? void 0 : settings.formType) === "agentNewsletter" || requireContactMethod({ settings }) || !form.phoneNumber && (settings == null ? void 0 : settings.formType) === "agentCustom"; 29827} 29828function isPhoneRequired({ settings, form }) { 29829 return (settings == null ? void 0 : settings.formType) === "goCustom" || requireContactMethod({ settings }) || !form.emailAddress && (settings == null ? void 0 : settings.formType) === "agentCustom" ? "###-###-####" : false; 29830} 29831function resolveFieldRequired(field, context) { 29832 if ((field == null ? void 0 : field.required) == null) { 29833 return void 0; 29834 } 29835 if (typeof field.required === "function") { 29836 return Boolean(field.required(context)) || void 0; 29837 } 29838 return Boolean(field.required) || void 0; 29839} 29840function resolveFieldRules(field, context) { 29841 if ((field == null ? void 0 : field.rules) == null) { 29842 return resolveFieldRequired(field, context) ? { required: true } : void 0; 29843 } 29844 if (typeof field.rules === "string") { 29845 return field.rules; 29846 } 29847 const raw = typeof field.rules === "object" ? { ...field.rules } : {}; 29848 const out = {}; 29849 for (const key of Object.keys(raw)) { 29850 let val = raw[key]; 29851 if (typeof val === "function") { 29852 val = val(context); 29853 } 29854 if (val === false) { 29855 continue; 29856 } 29857 out[key] = val; 29858 } 29859 const requiredWasDefinedInRules = Object.prototype.hasOwnProperty.call( 29860 raw, 29861 "required" 29862 ); 29863 const requiredDisabledInRules = requiredWasDefinedInRules && !Object.prototype.hasOwnProperty.call(out, "required"); 29864 if (resolveFieldRequired(field, context) && out.required === void 0 && !requiredDisabledInRules) { 29865 out.required = true; 29866 } 29867 return Object.keys(out).length ? out : void 0; 29868} 29869const LEAD_DYNAMIC_FORM_FIELDS = { 29870 "required-label": { 29871 id: "required-label", 29872 component: "div", 29873 type: "label", 29874 label: "*Required" 29875 }, 29876 "life-insurance": { 29877 id: "life-insurance", 29878 component: "input", 29879 type: "checkbox", 29880 label: "Life Insurance", 29881 checkboxValue: "Life Insurance" 29882 }, 29883 "retirement-planning": { 29884 id: "retirement-planning", 29885 component: "input", 29886 type: "checkbox", 29887 label: "Retirement Planning", 29888 checkboxValue: "Retirement Planning" 29889 }, 29890 "retirement-and-other-savings": { 29891 id: "retirement-and-other-savings", 29892 component: "input", 29893 type: "checkbox", 29894 label: "Retirement and Other Savings", 29895 checkboxValue: "Retirement and Other Savings" 29896 }, 29897 "estate-trust-legacy": { 29898 id: "estate-trust-legacy", 29899 component: "input", 29900 type: "checkbox", 29901 label: "Estate, Trust & Legacy Planning", 29902 checkboxValue: "Estate, Trust & Legacy Planning" 29903 }, 29904 "not-sure": { 29905 id: "not-sure", 29906 component: "input", 29907 type: "checkbox", 29908 label: "Not sure", 29909 checkboxValue: "Not sure" 29910 }, 29911 "financial-professional": { 29912 id: "financial-professional", 29913 component: "input", 29914 type: "checkbox", 29915 label: "Financial Professional", 29916 checkboxValue: "Financial Professional" 29917 }, 29918 "college-intern": { 29919 id: "college-intern", 29920 component: "input", 29921 type: "checkbox", 29922 label: "College Intern", 29923 checkboxValue: "College Intern" 29924 }, 29925 "fast-track": { 29926 id: "fast-track", 29927 component: "input", 29928 type: "checkbox", 29929 label: "Fast Track", 29930 checkboxValue: "Fast Track" 29931 }, 29932 management: { 29933 id: "management", 29934 component: "input", 29935 type: "checkbox", 29936 label: "Management", 29937 checkboxValue: "Management" 29938 }, 29939 "first-name": { 29940 id: "first-name", 29941 component: "input", 29942 cols: 3, 29943 label: "First Name", 29944 required: true, 29945 modelKey: "firstName", 29946 rules: { max: 31, required_named: true }, 29947 componentProps: { 29948 type: "text", 29949 autocomplete: "given-name" 29950 } 29951 }, 29952 "last-name": { 29953 id: "last-name", 29954 component: "input", 29955 cols: 3, 29956 label: "Last Name", 29957 required: true, 29958 modelKey: "lastName", 29959 rules: { max: 31, required_named: true }, 29960 componentProps: { 29961 type: "text", 29962 autocomplete: "family-name" 29963 } 29964 }, 29965 "language-preference": { 29966 id: "language", 29967 component: "CoreBlockSelect", 29968 cols: 3, 29969 label: "Language Preference", 29970 modelKey: "languagePref", 29971 show: settingsShowsLanguageFieldset, 29972 componentProps: { 29973 placeholder: "Select", 29974 options: LANGUAGE_OPTIONS 29975 } 29976 }, 29977 address: { 29978 id: "street-address", 29979 component: "input", 29980 cols: 4, 29981 label: "Address (street, apt, bldg., etc.)", 29982 required: true, 29983 modelKey: "address", 29984 googlePlacesAutocomplete: true, 29985 rules: { max: 31, required_named: true }, 29986 componentProps: { 29987 type: "text" 29988 } 29989 }, 29990 city: { 29991 id: "city", 29992 component: "input", 29993 cols: 3, 29994 label: "City", 29995 required: true, 29996 modelKey: "city", 29997 rules: { max: 31, required_named: true }, 29998 componentProps: { 29999 type: "text", 30000 autocomplete: "address-level2" 30001 } 30002 }, 30003 state: { 30004 id: "state", 30005 component: "CoreBlockSelect", 30006 cols: 3, 30007 label: "State", 30008 required: true, 30009 modelKey: "state", 30010 rules: { required_named: true }, 30011 componentProps: { 30012 placeholder: "Select", 30013 options: US_STATE_OPTIONS 30014 } 30015 }, 30016 zip: { 30017 id: "zipcode", 30018 component: "input", 30019 cols: 2, 30020 label: "Zip Code", 30021 required: true, 30022 modelKey: "zip", 30023 rules: { 30024 required_named_alt: true, 30025 max: 10, 30026 zip: "alt" 30027 }, 30028 componentProps: { 30029 type: "text", 30030 inputmode: "numeric", 30031 autocomplete: "postal-code", 30032 placeholder: "#####", 30033 ariaPlaceholder: "ZIP code", 30034 "data-maska": "#####-####" 30035 } 30036 }, 30037 "date-of-birth": { 30038 id: "birthDate", 30039 component: "input", 30040 cols: 3, 30041 label: "Date of Birth", 30042 required: true, 30043 modelKey: "birthDate", 30044 show: settingsShowsBirthDateFieldset, 30045 tooltip: { 30046 content: "This helps us understand your immediate needs.", 30047 icon: { 30048 id: "info", 30049 alt: "Info", 30050 name: "Info" 30051 } 30052 }, 30053 rules: { 30054 required_named_format: "MM/DD/YYYY", 30055 isValidDate: true, 30056 isAdult: true 30057 }, 30058 componentProps: { 30059 type: "text", 30060 placeholder: "MM/DD/YYYY",
30061 ariaPlaceholder: "Date as month, day, and year", 30062 "data-maska": "##/##/####" 30063 } 30064 }, 30065 email: { 30066 id: "emailAddress", 30067 component: "input", 30068 cols: 3, 30069 label: "Email", 30070 required: isEmailRequired, 30071 modelKey: "emailAddress", 30072 rules: { email: true, required_named: isEmailRequired, max: 40 }, 30073 componentProps: { 30074 type: "email", 30075 autocomplete: "email" 30076 } 30077 }, 30078 phone: { 30079 id: "phoneNumber", 30080 component: "input", 30081 cols: 3, 30082 label: "Phone Number", 30083 required: isPhoneRequired, 30084 modelKey: "phoneNumber", 30085 rules: { max: 12, phone: true, required_named_format: isPhoneRequired }, 30086 componentProps: { 30087 type: "tel", 30088 autocomplete: "tel", 30089 placeholder: "###-###-####", 30090 ariaPlaceholder: "Phone number with area code", 30091 "data-maska": "###-###-####" 30092 } 30093 }, 30094 "best-contact-method": { 30095 id: "best-contact-method", 30096 component: "CoreBlockSelect", 30097 cols: 3, 30098 label: "Best method to contact", 30099 modelKey: "contactMethod", 30100 show: settingsShowsBestMethodFieldset, 30101 componentProps: { 30102 placeholder: "Select", 30103 options: CONTACT_METHOD_OPTIONS 30104 } 30105 }, 30106 "best-time-to-call": { 30107 id: "best-time-to-call", 30108 component: "CoreBlockSelect", 30109 cols: 3, 30110 label: "Best time of day to call", 30111 modelKey: "bestTimeToCall", 30112 show: settingsShowsBestTimeFieldset, 30113 componentProps: { 30114 placeholder: "Select", 30115 options: CONTACT_TIME_OPTIONS 30116 } 30117 }, 30118 linkedin: { 30119 id: "linkin-url", 30120 component: "input", 30121 cols: 3, 30122 label: "LinkedIn", 30123 modelKey: "linkedinUrl", 30124 show: settingsShowsLinkedinFieldset, 30125 rules: { 30126 max: 50, 30127 linkedin: true 30128 }, 30129 componentProps: { 30130 type: "text", 30131 autocomplete: "off" 30132 } 30133 }, 30134 "open-text-field-1": { 30135 id: "openText1", 30136 component: "input", 30137 cols: 4, 30138 label: ({ settings }) => openTextFieldLabel({ settings }, 1), 30139 modelKey: "openText1", 30140 show: ({ settings }) => settingsShowsOpenTextFields({ settings }, 1), 30141 rules: { max: 255 } 30142 }, 30143 "open-text-field-2": { 30144 id: "openText2", 30145 component: "input", 30146 cols: 4, 30147 label: ({ settings }) => openTextFieldLabel({ settings }, 2), 30148 modelKey: "openText2", 30149 show: ({ settings }) => settingsShowsOpenTextFields({ settings }, 2), 30150 rules: { max: 255 } 30151 }, 30152 "open-text-field-3": { 30153 id: "openText3", 30154 component: "input", 30155 cols: 4, 30156 label: ({ settings }) => openTextFieldLabel({ settings }, 3), 30157 modelKey: "openText3", 30158 show: ({ settings }) => settingsShowsOpenTextFields({ settings }, 3), 30159 rules: { max: 255 } 30160 }, 30161 "open-text-field-4": { 30162 id: "openText4", 30163 component: "input", 30164 cols: 4, 30165 label: ({ settings }) => openTextFieldLabel({ settings }, 4), 30166 modelKey: "openText4", 30167 show: ({ settings }) => settingsShowsOpenTextFields({ settings }, 4), 30168 rules: { max: 255 } 30169 }, 30170 "open-text-field-5": { 30171 id: "openText5", 30172 component: "input", 30173 cols: 4, 30174 label: ({ settings }) => openTextFieldLabel({ settings }, 5), 30175 modelKey: "openText5", 30176 show: ({ settings }) => settingsShowsOpenTextFields({ settings }, 5), 30177 rules: { max: 255 } 30178 } 30179}; 30180function sectionFields(sectionId, fields) { 30181 return fields.map((field) => { 30182 var _a; 30183 const fieldId = typeof field === "object" ? field.id : field; 30184 const cols = typeof field === "object" ? field.cols : void 0; 30185 return { 30186 ...LEAD_DYNAMIC_FORM_FIELDS[fieldId], 30187 cols: cols ?? ((_a = LEAD_DYNAMIC_FORM_FIELDS[fieldId]) == null ? void 0 : _a.cols) 30188 }; 30189 }); 30190} 30191const AGENT_CONSUMER_FORM = { 30192 grouped: { 30193 sections: [ 30194 { 30195 id: "interests", 30196 title: "Interests", 30197 subtitle: "Select all topics you would like to discuss", 30198 autoCols: true, 30199 show: ({ settings }) => (settings == null ? void 0 : settings.formType) !== "agentNewsletter" && Boolean(settings == null ? void 0 : settings.interestsFieldset), 30200 fields: sectionFields("interests", [ 30201 "life-insurance", 30202 "retirement-planning", 30203 "retirement-and-other-savings", 30204 "estate-trust-legacy", 30205 "not-sure" 30206 ]) 30207 }, 30208 { 30209 id: "required-row", 30210 fields: sectionFields("required-row", ["required-label"]) 30211 }, 30212 { 30213 id: "row-1", 30214 title: "Personal information", 30215 fields: sectionFields("row-1", [ 30216 "first-name", 30217 "last-name", 30218 "language-preference" 30219 ]) 30220 }, 30221 { 30222 id: "row-2", 30223 fields: sectionFields("row-2", [ 30224 "address", 30225 "city", 30226 "state", 30227 "zip" 30228 ]) 30229 }, 30230 { 30231 id: "row-3", 30232 fields: sectionFields("row-3", ["date-of-birth"]) 30233 }, 30234 { 30235 id: "row-4", 30236 title: "Contact information", 30237 fields: sectionFields("row-4", [ 30238 "email", 30239 "phone", 30240 "best-contact-method", 30241 "best-time-to-call" 30242 ]) 30243 } 30244 ] 30245 }, 30246 ungrouped: { 30247 sections: [ 30248 { 30249 id: "interests", 30250 title: "Interests",
30251 subtitle: "Select all topics you would like to discuss", 30252 autoCols: true, 30253 show: ({ settings }) => (settings == null ? void 0 : settings.formType) !== "agentNewsletter" && Boolean(settings == null ? void 0 : settings.interestsFieldset), 30254 fields: sectionFields("interests", [ 30255 "life-insurance", 30256 "retirement-planning", 30257 "retirement-and-other-savings", 30258 "estate-trust-legacy", 30259 "not-sure" 30260 ]) 30261 }, 30262 { 30263 id: "required-row", 30264 fields: sectionFields("required-row", ["required-label"]) 30265 }, 30266 { 30267 id: "row-1", 30268 fields: sectionFields("row-1", [ 30269 "first-name", 30270 "last-name", 30271 "email", 30272 "phone" 30273 ]) 30274 }, 30275 { 30276 id: "row-2", 30277 fields: sectionFields("row-2", [ 30278 "address", 30279 "city", 30280 "state", 30281 "zip" 30282 ]) 30283 }, 30284 { 30285 id: "row-3", 30286 fields: sectionFields("row-3", [ 30287 "date-of-birth", 30288 "language-preference", 30289 "best-contact-method", 30290 "best-time-to-call" 30291 ]) 30292 } 30293 ] 30294 } 30295}; 30296const AGENT_NEWSLETTER_FORM = { 30297 ungrouped: { 30298 sections: [ 30299 { 30300 id: "required-row", 30301 fields: sectionFields("required-row", ["required-label"]) 30302 }, 30303 { 30304 id: "row-1", 30305 fields: sectionFields("row-1", [ 30306 { id: "first-name", cols: 6 }, 30307 { id: "last-name", cols: 6 } 30308 ]) 30309 }, 30310 { 30311 id: "row-2", 30312 fields: sectionFields("row-2", [{ id: "email", cols: 6 }]) 30313 } 30314 ] 30315 } 30316}; 30317const AGENT_CUSTOM_FORM = { 30318 grouped: { 30319 sections: [ 30320 { 30321 id: "interests", 30322 title: "Interests", 30323 subtitle: "Select all topics you would like to discuss", 30324 autoCols: true, 30325 show: ({ settings }) => (settings == null ? void 0 : settings.formType) !== "agentNewsletter" && Boolean(settings == null ? void 0 : settings.interestsFieldset), 30326 fields: sectionFields("interests", [ 30327 "life-insurance", 30328 "retirement-planning", 30329 "retirement-and-other-savings", 30330 "estate-trust-legacy", 30331 "not-sure" 30332 ]) 30333 }, 30334 { 30335 id: "required-row", 30336 fields: sectionFields("required-row", ["required-label"]) 30337 }, 30338 { 30339 id: "row-1", 30340 title: "Personal information", 30341 fields: sectionFields("row-1", [ 30342 "first-name", 30343 "last-name", 30344 "language-preference" 30345 ]) 30346 }, 30347 { 30348 id: "row-2", 30349 title: "Contact information", 30350 fields: sectionFields("row-2", [ 30351 "email", 30352 "phone", 30353 "best-contact-method", 30354 "best-time-to-call" 30355 ]) 30356 }, 30357 { 30358 id: "custom-fields", 30359 title: "Other information", 30360 fields: sectionFields("custom-fields", [ 30361 "open-text-field-1", 30362 "open-text-field-2", 30363 "open-text-field-3", 30364 "open-text-field-4", 30365 "open-text-field-5" 30366 ]) 30367 } 30368 ] 30369 }, 30370 ungrouped: { 30371 sections: [ 30372 { 30373 id: "interests", 30374 title: "Interests", 30375 subtitle: "Select all topics you would like to discuss", 30376 autoCols: true, 30377 show: ({ settings }) => (settings == null ? void 0 : settings.formType) !== "agentNewsletter" && Boolean(settings == null ? void 0 : settings.interestsFieldset), 30378 fields: sectionFields("interests", [ 30379 "life-insurance", 30380 "retirement-planning", 30381 "retirement-and-other-savings", 30382 "estate-trust-legacy", 30383 "not-sure" 30384 ]) 30385 }, 30386 { 30387 id: "required-row", 30388 fields: sectionFields("required-row", ["required-label"]) 30389 }, 30390 { 30391 id: "row-1", 30392 fields: sectionFields("row-1", [ 30393 "first-name", 30394 "last-name", 30395 "email", 30396 "phone" 30397 ]) 30398 }, 30399 { 30400 id: "row-2", 30401 fields: sectionFields("row-2", [ 30402 "language-preference", 30403 "best-contact-method", 30404 "best-time-to-call" 30405 ]) 30406 }, 30407 { 30408 id: "custom-fields", 30409 fields: sectionFields("custom-fields", [ 30410 "open-text-field-1", 30411 "open-text-field-2", 30412 "open-text-field-3", 30413 "open-text-field-4", 30414 "open-text-field-5" 30415 ]) 30416 } 30417 ] 30418 } 30419}; 30420const GO_CONSUMER_FORM = { 30421 grouped: { 30422 sections: [ 30423 { 30424 id: "interests", 30425 title: "Interests",
30426 subtitle: "Select all topics you would like to discuss", 30427 autoCols: true, 30428 show: ({ settings }) => (settings == null ? void 0 : settings.formType) !== "agentNewsletter" && Boolean(settings == null ? void 0 : settings.interestsFieldset), 30429 fields: sectionFields("interests", [ 30430 "life-insurance", 30431 "retirement-planning", 30432 "retirement-and-other-savings", 30433 "estate-trust-legacy", 30434 "not-sure" 30435 ]) 30436 }, 30437 { 30438 id: "required-row", 30439 fields: sectionFields("required-row", ["required-label"]) 30440 }, 30441 { 30442 id: "row-1", 30443 title: "Personal information", 30444 fields: sectionFields("row-1", [ 30445 "first-name", 30446 "last-name", 30447 "language-preference" 30448 ]) 30449 }, 30450 { 30451 id: "row-2", 30452 fields: sectionFields("row-2", [ 30453 "address", 30454 "city", 30455 "state", 30456 "zip" 30457 ]) 30458 }, 30459 { 30460 id: "row-3", 30461 fields: sectionFields("row-3", ["date-of-birth"]) 30462 }, 30463 { 30464 id: "row-4", 30465 title: "Contact information", 30466 fields: sectionFields("row-4", [ 30467 "email", 30468 "phone", 30469 "best-contact-method", 30470 "best-time-to-call" 30471 ]) 30472 } 30473 ] 30474 }, 30475 ungrouped: { 30476 sections: [ 30477 { 30478 id: "interests", 30479 title: "Interests", 30480 subtitle: "Select all topics you would like to discuss", 30481 autoCols: true, 30482 show: ({ settings }) => (settings == null ? void 0 : settings.formType) !== "agentNewsletter" && Boolean(settings == null ? void 0 : settings.interestsFieldset), 30483 fields: sectionFields("interests", [ 30484 "life-insurance", 30485 "retirement-planning", 30486 "retirement-and-other-savings", 30487 "estate-trust-legacy", 30488 "not-sure" 30489 ]) 30490 }, 30491 { 30492 id: "required-row", 30493 fields: sectionFields("required-row", ["required-label"]) 30494 }, 30495 { 30496 id: "row-1", 30497 fields: sectionFields("row-1", [ 30498 "first-name", 30499 "last-name", 30500 "email", 30501 "phone" 30502 ]) 30503 }, 30504 { 30505 id: "row-2", 30506 fields: sectionFields("row-2", [ 30507 "address", 30508 "city", 30509 "state", 30510 "zip" 30511 ]) 30512 }, 30513 { 30514 id: "row-3", 30515 fields: sectionFields("row-3", [ 30516 "date-of-birth", 30517 "language-preference", 30518 "best-contact-method", 30519 "best-time-to-call" 30520 ]) 30521 } 30522 ] 30523 } 30524}; 30525const GO_CUSTOM_FORM = { 30526 grouped: { 30527 sections: [ 30528 { 30529 id: "interests", 30530 title: "Interests", 30531 subtitle: "Select all topics you would like to discuss", 30532 autoCols: true, 30533 show: ({ settings }) => (settings == null ? void 0 : settings.formType) !== "agentNewsletter" && Boolean(settings == null ? void 0 : settings.interestsFieldset), 30534 fields: sectionFields("interests", [ 30535 "life-insurance", 30536 "retirement-planning", 30537 "retirement-and-other-savings", 30538 "estate-trust-legacy", 30539 "not-sure" 30540 ]) 30541 }, 30542 { 30543 id: "required-row", 30544 fields: sectionFields("required-row", ["required-label"]) 30545 }, 30546 { 30547 id: "row-1", 30548 title: "Personal information", 30549 fields: sectionFields("row-1", [ 30550 "first-name", 30551 "last-name", 30552 "language-preference" 30553 ]) 30554 }, 30555 { 30556 id: "row-2", 30557 fields: sectionFields("row-2", [ 30558 "address", 30559 "city", 30560 "state", 30561 "zip" 30562 ]) 30563 }, 30564 { 30565 id: "row-3", 30566 fields: sectionFields("row-3", ["date-of-birth"]) 30567 }, 30568 { 30569 id: "row-4", 30570 title: "Contact information", 30571 fields: sectionFields("row-4", [ 30572 "email", 30573 "phone", 30574 "best-contact-method", 30575 "best-time-to-call" 30576 ]) 30577 }, 30578 { 30579 id: "custom-fields", 30580 title: "Other information", 30581 fields: sectionFields("custom-fields", [ 30582 "open-text-field-1", 30583 "open-text-field-2", 30584 "open-text-field-3", 30585 "open-text-field-4", 30586 "open-text-field-5" 30587 ]) 30588 } 30589 ] 30590 }, 30591 ungrouped: { 30592 sections: [ 30593 { 30594 id: "interests", 30595 title: "Interests",
30596 subtitle: "Select all topics you would like to discuss", 30597 autoCols: true, 30598 show: ({ settings }) => (settings == null ? void 0 : settings.formType) !== "agentNewsletter" && Boolean(settings == null ? void 0 : settings.interestsFieldset), 30599 fields: sectionFields("interests", [ 30600 "life-insurance", 30601 "retirement-planning", 30602 "retirement-and-other-savings", 30603 "estate-trust-legacy", 30604 "not-sure" 30605 ]) 30606 }, 30607 { 30608 id: "required-row", 30609 fields: sectionFields("required-row", ["required-label"]) 30610 }, 30611 { 30612 id: "row-1", 30613 fields: sectionFields("row-1", [ 30614 "first-name", 30615 "last-name", 30616 "email", 30617 "phone" 30618 ]) 30619 }, 30620 { 30621 id: "row-2", 30622 fields: sectionFields("row-2", [ 30623 "address", 30624 "city", 30625 "state", 30626 "zip" 30627 ]) 30628 }, 30629 { 30630 id: "row-3", 30631 fields: sectionFields("row-3", [ 30632 "date-of-birth", 30633 "language-preference", 30634 "best-contact-method", 30635 "best-time-to-call" 30636 ]) 30637 }, 30638 { 30639 id: "custom-fields", 30640 fields: sectionFields("custom-fields", [ 30641 "open-text-field-1", 30642 "open-text-field-2", 30643 "open-text-field-3", 30644 "open-text-field-4", 30645 "open-text-field-5" 30646 ]) 30647 } 30648 ] 30649 } 30650}; 30651const GO_RECRUITER_FORM = { 30652 grouped: { 30653 sections: [ 30654 { 30655 id: "interests", 30656 title: "Interests", 30657 subtitle: "Select all topics you would like to discuss", 30658 autoCols: true, 30659 show: ({ settings }) => (settings == null ? void 0 : settings.formType) !== "agentNewsletter" && Boolean(settings == null ? void 0 : settings.interestsFieldset), 30660 fields: sectionFields("interests", [ 30661 "financial-professional", 30662 "college-intern", 30663 "fast-track", 30664 "management", 30665 "not-sure" 30666 ]) 30667 }, 30668 { 30669 id: "required-row", 30670 fields: sectionFields("required-row", ["required-label"]) 30671 }, 30672 { 30673 id: "row-1", 30674 title: "Personal information", 30675 fields: sectionFields("row-1", [ 30676 "first-name", 30677 "last-name", 30678 "language-preference" 30679 ]) 30680 }, 30681 { 30682 id: "row-2", 30683 fields: sectionFields("row-2", [ 30684 "address", 30685 "city", 30686 "state", 30687 "zip" 30688 ]) 30689 }, 30690 { 30691 id: "row-3", 30692 title: "Contact information", 30693 fields: sectionFields("row-3", [ 30694 "email", 30695 "phone", 30696 "best-contact-method", 30697 "best-time-to-call", 30698 "linkedin" 30699 ]) 30700 } 30701 ] 30702 }, 30703 ungrouped: { 30704 sections: [ 30705 { 30706 id: "interests", 30707 title: "Interests", 30708 subtitle: "Select all topics you would like to discuss", 30709 autoCols: true, 30710 show: ({ settings }) => (settings == null ? void 0 : settings.formType) !== "agentNewsletter" && Boolean(settings == null ? void 0 : settings.interestsFieldset), 30711 fields: sectionFields("interests", [ 30712 "financial-professional", 30713 "college-intern", 30714 "fast-track", 30715 "management", 30716 "not-sure" 30717 ]) 30718 }, 30719 { 30720 id: "required-row", 30721 fields: sectionFields("required-row", ["required-label"]) 30722 }, 30723 { 30724 id: "row-1", 30725 fields: sectionFields("row-1", [ 30726 "first-name", 30727 "last-name", 30728 "email", 30729 "phone" 30730 ]) 30731 }, 30732 { 30733 id: "row-2", 30734 fields: sectionFields("row-2", [ 30735 "address", 30736 "city", 30737 "state", 30738 "zip" 30739 ]) 30740 }, 30741 { 30742 id: "row-3", 30743 fields: sectionFields("row-3", [ 30744 "language-preference", 30745 "best-contact-method", 30746 "best-time-to-call", 30747 "linkedin" 30748 ]) 30749 } 30750 ] 30751 } 30752}; 30753const ADDITIONAL_FIELD_KEYS_BY_FORM_TYPE = { 30754 agentConsumer: [ 30755 "languageFieldset", 30756 "bestTimeFieldset", 30757 "bestMethodFieldset" 30758 ], 30759 agentCustom: [ 30760 "languageFieldset", 30761 "bestTimeFieldset", 30762 "bestMethodFieldset", 30763 "openTextFieldset1", 30764 "openTextFieldset2", 30765 "openTextFieldset3", 30766 "openTextFieldset4", 30767 "openTextFieldset5" 30768 ], 30769 goConsumer: ["languageFieldset", "bestTimeFieldset", "bestMethodFieldset"], 30770 goCustom: [ 30771 "languageFieldset", 30772 "bestTimeFieldset", 30773 "bestMethodFieldset", 30774 "openTextFieldset1", 30775 "openTextFieldset2", 30776 "openTextFieldset3", 30777 "openTextFieldset4", 30778 "openTextFieldset5" 30779 ], 30780 goRecruiter: [ 30781 "languageFieldset", 30782 "bestTimeFieldset", 30783 "bestMethodFieldset", 30784 "linkedinFieldset" 30785 ] 30786}; 30787function hasAdditionalFields(settings) { 30788 const keys2 = ADDITIONAL_FIELD_KEYS_BY_FORM_TYPE[settings == null ? void 0 : settings.formType] ?? []; 30789 return keys2.some((key) => settings == null ? void 0 : settings[key]); 30790} 30791function useCoreBlockDynamicForm(props) { 30792 const resolvedForm = computed(() => { 30793 const { settings } = unref(props); 30794 const formGrouping = hasAdditionalFields(settings) ? "grouped" : "ungrouped"; 30795 let formConfig = null; 30796 switch (settings == null ? void 0 : settings.formType) { 30797 case "agentNewsletter": 30798 formConfig = AGENT_NEWSLETTER_FORM; 30799 break; 30800 case "agentConsumer": 30801 formConfig = AGENT_CONSUMER_FORM; 30802 break; 30803 case "agentCustom": 30804 formConfig = AGENT_CUSTOM_FORM; 30805 break; 30806 case "goConsumer": 30807 formConfig = GO_CONSUMER_FORM; 30808 break; 30809 case "goCustom": 30810 formConfig = GO_CUSTOM_FORM; 30811 break; 30812 case "goRecruiter": 30813 formConfig = GO_RECRUITER_FORM; 30814 break; 30815 } 30816 if (formConfig) { 30817 return (formConfig == null ? void 0 : formConfig[formGrouping]) ?? (formConfig == null ? void 0 : formConfig.ungrouped); 30818 } 30819 return AGENT_CONSUMER_FORM == null ? void 0 : AGENT_CONSUMER_FORM.ungrouped; 30820 }); 30821 return { 30822 resolvedForm 30823 }; 30824} 30825const _sfc_main$4o = { 30826 name: "CoreBlockSelect", 30827 inheritAttrs: false, 30828 props: { 30829 id: { 30830 type: String, 30831 default: null 30832 }, 30833 options: { 30834 type: Array, 30835 required: true 30836 }, 30837 customClass: { 30838 type: String, 30839 default: null 30840 }, 30841 modelValue: { 30842 type: String, 30843 default: null 30844 }, 30845 placeholder: { 30846 type: String, 30847 default: null 30848 }, 30849 required: { 30850 type: Boolean, 30851 default: false 30852 }, 30853 disableFiltering: { 30854 type: Boolean, 30855 default: false 30856 } 30857 }, 30858 data() { 30859 return { 30860 _anonymousListboxKey: Math.random().toString(36).slice(2, 11), 30861 isOpen: false, 30862 isTouched: false, 30863 isTyping: false, 30864 searchText: "", 30865 selectedOption: null, 30866 highlightedIndex: null 30867 }; 30868 }, 30869 computed: { 30870 listboxId() { 30871 return this.id ? `cbs-lb-${this.id}` : `cbs-lb-${this._anonymousListboxKey}`; 30872 }, 30873 activeDescendantId() { 30874 if (!this.isOpen || this.highlightedIndex === null || this.filteredOptions.length === 0) { 30875 return void 0; 30876 } 30877 if (this.highlightedIndex < 0 || this.highlightedIndex >= this.filteredOptions.length) { 30878 return void 0; 30879 } 30880 return `${this.listboxId}-opt-${this.highlightedIndex}`; 30881 }, 30882 filteredOptions() { 30883 if (this.disableFiltering) { 30884 return this.options; 30885 } 30886 return this.options.filter( 30887 (option) => option.text.toLowerCase().includes(this.searchText.toLowerCase()) 30888 ); 30889 } 30890 }, 30891 watch: { 30892 modelValue: { 30893 handler(newValue) { 30894 this.selectedOption = this.options.find((option) => option.value === newValue) || null; 30895 this.searchText = this.selectedOption ? this.selectedOption.text : ""; 30896 const index2 = this.options.findIndex( 30897 (option) => option.value === newValue 30898 ); 30899 this.highlightedIndex = index2 === -1 ? null : index2; 30900 }, 30901 immediate: true 30902 }, 30903 selectedOption(newValue) { 30904 if (newValue) { 30905 this.$emit("update:modelValue", newValue.value); 30906 } else { 30907 this.$emit("update:modelValue", null); 30908 } 30909 } 30910 }, 30911 mounted() { 30912 window.addEventListener("click", this.closeDropdown); 30913 }, 30914 beforeUnmount() { 30915 window.removeEventListener("click", this.closeDropdown); 30916 }, 30917 methods: { 30918 openIfClosed() { 30919 this.isTouched = false;
30920 if (!this.isOpen) { 30921 this.searchText = ""; 30922 this.isOpen = true; 30923 } 30924 }, 30925 toggleDropdown() { 30926 if (this.isOpen) { 30927 this.searchText = this.selectedOption ? this.selectedOption.text : ""; 30928 } else { 30929 this.searchText = ""; 30930 } 30931 this.isOpen = !this.isOpen; 30932 }, 30933 selectOption(option) { 30934 this.selectedOption = option; 30935 this.searchText = (option == null ? void 0 : option.text) || ""; 30936 this.isOpen = false; 30937 }, 30938 handleInput(event) { 30939 if (event) { 30940 event.stopPropagation(); 30941 } 30942 this.isOpen = true; 30943 this.isTyping = true; 30944 this.highlightedIndex = 0; 30945 }, 30946 focusHandler() { 30947 }, 30948 blurHandler() { 30949 setTimeout(() => { 30950 if (this.searchText === "") { 30951 this.isTouched = true; 30952 this.$emit("update:modelValue", ""); 30953 } else { 30954 this.isOpen = false; 30955 } 30956 this.isTyping = false; 30957 }, 200); 30958 }, 30959 closeDropdown(event) { 30960 if (this.isOpen && !this.$el.contains(event.target)) { 30961 this.isTyping = false; 30962 this.isOpen = false; 30963 const matchedOption = this.options.find( 30964 (o) => o.text.toLowerCase() === this.searchText.toLowerCase() 30965 ); 30966 if (!matchedOption) { 30967 this.searchText = this.selectedOption ? this.selectedOption.text : ""; 30968 } else { 30969 this.selectOption(matchedOption); 30970 } 30971 } 30972 }, 30973 highlightOption(index2) { 30974 this.highlightedIndex = index2; 30975 }, 30976 clearHighlightOption() { 30977 this.highlightedIndex = null; 30978 }, 30979 isSelected(option) { 30980 return this.selectedOption === option; 30981 }, 30982 handleClick() { 30983 this.openIfClosed(); 30984 }, 30985 handleKeyDown(event) { 30986 if (event.key === "ArrowUp") { 30987 this.isOpen = true; 30988 event.preventDefault(); 30989 const lastOptionIndex = this.filteredOptions.length - 1; 30990 if ([null, 0].includes(this.highlightedIndex)) { 30991 this.highlightedIndex = lastOptionIndex; 30992 } else { 30993 this.highlightedIndex--; 30994 } 30995 this.scrollToHighlightedOption(); 30996 } else if (event.key === "ArrowDown") { 30997 this.isOpen = true; 30998 event.preventDefault(); 30999 const lastOptionIndex = this.filteredOptions.length - 1; 31000 if ([null, lastOptionIndex].includes(this.highlightedIndex)) { 31001 this.highlightedIndex = 0; 31002 } else { 31003 this.highlightedIndex++; 31004 } 31005 this.scrollToHighlightedOption(); 31006 } else if (event.key === "Enter") { 31007 event.preventDefault(); 31008 if (this.isOpen) { 31009 const selectedOption = this.filteredOptions[this.highlightedIndex]; 31010 this.selectOption(selectedOption); 31011 } else { 31012 this.openIfClosed(); 31013 } 31014 } else if (event.key === "Tab" && this.isOpen) { 31015 this.isOpen = false; 31016 if (this.filteredOptions.length === 0) { 31017 this.searchText = ""; 31018 this.$emit("update:modelValue", ""); 31019 } else if (this.highlightedIndex !== null && this.filteredOptions.length > 0) { 31020 const selectedOption = this.filteredOptions[this.highlightedIndex]; 31021 this.selectOption(selectedOption); 31022 } else { 31023 const matchedOption = this.filteredOptions.find( 31024 (o) => o.text.toLowerCase() === this.searchText.toLowerCase() 31025 ); 31026 if (matchedOption) { 31027 this.selectOption(matchedOption); 31028 } else { 31029 this.searchText = ""; 31030 this.$emit("update:modelValue", ""); 31031 } 31032 } 31033 } else if (event.key === "Escape") { 31034 this.isOpen = false; 31035 } 31036 }, 31037 scrollToHighlightedOption() { 31038 if (!this.$refs.dropdownList || this.highlightedIndex === null) { 31039 return; 31040 } 31041 const listElement = this.$refs.dropdownList; 31042 const itemElement = listElement.querySelector( 31043 `li:nth-child(${this.highlightedIndex + 1})` 31044 ); 31045 if (!itemElement) { 31046 return; 31047 } 31048 const itemOffsetTop = itemElement.offsetTop; 31049 const itemOffsetBottom = itemOffsetTop + itemElement.offsetHeight; 31050 const listScrollTop = listElement.scrollTop; 31051 const listScrollBottom = listScrollTop + listElement.offsetHeight; 31052 if (itemOffsetTop < listScrollTop) { 31053 listElement.scrollTop = itemOffsetTop; 31054 } else if (itemOffsetBottom > listScrollBottom) { 31055 listElement.scrollTop = itemOffsetBottom - listElement.offsetHeight; 31056 } 31057 } 31058 } 31059}; 31060const _hoisted_1$4i = ["id", "placeholder", "required", "aria-controls", "aria-owns", "aria-activedescendant", "aria-expanded"]; 31061const _hoisted_2$3V = ["id"]; 31062const _hoisted_3$y = ["id", "aria-label", "aria-selected", "onMousedown", "onMouseover"]; 31063function _sfc_render$3P(_ctx, _cache, $props, $setup, $data, $options) { 31064 return openBlock(), createElementBlock("div", { 31065 class: normalizeClass([$props.customClass, "custom-select", _ctx.$attrs.class]), 31066 onClick: _cache[8] || (_cache[8] = (...args) => $options.toggleDropdown && $options.toggleDropdown(...args)) 31067 }, [ 31068 createBaseVNode("div", { 31069 class: normalizeClass(["selected-option", { "is-open": $data.isOpen }]) 31070 }, [ 31071 withDirectives(createBaseVNode("input", { 31072 id: $props.id, 31073 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.searchText = $event), 31074 class: "search-input", 31075 type: "text", 31076 role: "combobox", 31077 placeholder: $props.placeholder, 31078 required: $props.required, 31079 "aria-autocomplete": "list", 31080 "aria-haspopup": "listbox", 31081 "aria-controls": $options.listboxId, 31082 "aria-owns": $data.isOpen ? $options.listboxId : void 0, 31083 "aria-activedescendant": $options.activeDescendantId, 31084 "aria-expanded": $data.isOpen.toString(), 31085 onInput: _cache[1] || (_cache[1] = (...args) => $options.handleInput && $options.handleInput(...args)), 31086 onBlur: _cache[2] || (_cache[2] = (...args) => $options.blurHandler && $options.blurHandler(...args)), 31087 onFocus: _cache[3] || (_cache[3] = (...args) => $options.focusHandler && $options.focusHandler(...args)), 31088 onKeydown: _cache[4] || (_cache[4] = (...args) => $options.handleKeyDown && $options.handleKeyDown(...args)), 31089 onClick: _cache[5] || (_cache[5] = withModifiers((...args) => $options.handleClick && $options.handleClick(...args), ["stop"])) 31090 }, null, 40, _hoisted_1$4i), [ 31091 [vModelText, $data.searchText] 31092 ]), 31093 _cache[9] || (_cache[9] = createBaseVNode("span", { class: "arrow" }, null, -1)) 31094 ], 2), 31095 withDirectives(createBaseVNode("ul", {
31096 id: $options.listboxId, 31097 ref: "dropdownList", 31098 class: "dropdown", 31099 role: "listbox", 31100 "aria-label": "Select an option" 31101 }, [ 31102 (openBlock(true), createElementBlock(Fragment, null, renderList($options.filteredOptions, (option, index2) => { 31103 return openBlock(), createElementBlock("li", { 31104 id: `${$options.listboxId}-opt-${index2}`, 31105 key: index2, 31106 class: normalizeClass({ 31107 highlighted: index2 === $data.highlightedIndex, 31108 selected: $options.isSelected(option) 31109 }), 31110 role: "option", 31111 "aria-label": option.text, 31112 "aria-selected": $options.isSelected(option), 31113 onMousedown: withModifiers(($event) => $options.selectOption(option), ["prevent"]), 31114 onClick: _cache[6] || (_cache[6] = withModifiers(() => { 31115 }, ["stop"])), 31116 onMouseover: ($event) => $options.highlightOption(index2), 31117 onMouseout: _cache[7] || (_cache[7] = (...args) => $options.clearHighlightOption && $options.clearHighlightOption(...args)) 31118 }, toDisplayString(option.text), 43, _hoisted_3$y); 31119 }), 128)) 31120 ], 8, _hoisted_2$3V), [ 31121 [vShow, $data.isOpen] 31122 ]) 31123 ], 2); 31124} 31125const __nuxt_component_4$2 = /* @__PURE__ */ _export_sfc(_sfc_main$4o, [["render", _sfc_render$3P], ["__scopeId", "data-v-a5b1902f"]]); 31126const CoreBlockSelect = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 31127 __proto__: null, 31128 default: __nuxt_component_4$2 31129}, Symbol.toStringTag, { value: "Module" })); 31130function useGooglePlacesAutocomplete(inputRef) { 31131 const suggestions = shallowRef([]); 31132 const isLoading = ref(false); 31133 const error = ref(null); 31134 let ignoreNextWatch = false; 31135 let sessionToken = null; 31136 let debounceTimer = null; 31137 const search = async (input) => { 31138 if (!(input == null ? void 0 : input.trim())) { 31139 suggestions.value = []; 31140 return; 31141 } 31142 try { 31143 isLoading.value = true; 31144 error.value = null; 31145 if (!sessionToken) { 31146 sessionToken = crypto.randomUUID(); 31147 } 31148 const { 31149 data: { suggestions: results } 31150 } = await axios.post("/api/places/autocomplete", { 31151 input, 31152 sessionToken 31153 }); 31154 suggestions.value = results; 31155 } catch (err) { 31156 error.value = err.message || "Failed to fetch suggestions"; 31157 suggestions.value = []; 31158 } finally { 31159 isLoading.value = false; 31160 } 31161 }; 31162 watch(inputRef, (value) => { 31163 if (ignoreNextWatch) { 31164 ignoreNextWatch = false; 31165 clearTimeout(debounceTimer); 31166 return; 31167 } 31168 clearTimeout(debounceTimer); 31169 debounceTimer = setTimeout(() => search(value), 300); 31170 }); 31171 const fetchFields = async (suggestion) => { 31172 try { 31173 isLoading.value = true; 31174 error.value = null; 31175 const { data: place } = await axios.get(`/api/places/details`, { 31176 params: { 31177 placeId: suggestion.placePrediction.placeId, 31178 sessionToken 31179 } 31180 }); 31181 ignoreNextWatch = true; 31182 return place; 31183 } catch (err) { 31184 error.value = err.message || "Failed to fetch place details"; 31185 return null; 31186 } finally { 31187 sessionToken = crypto.randomUUID(); 31188 isLoading.value = false; 31189 } 31190 }; 31191 const clearSuggestions = () => { 31192 suggestions.value = []; 31193 }; 31194 onUnmounted(() => { 31195 clearTimeout(debounceTimer); 31196 }); 31197 return { 31198 suggestions, 31199 isLoading: readonly(isLoading), 31200 error: readonly(error), 31201 fetchFields, 31202 clearSuggestions 31203 }; 31204} 31205function useLeadFormAddress(props, autocompleteModel) { 31206 const { 31207 suggestions: addressSuggestions, 31208 isLoading, 31209 fetchFields, 31210 clearSuggestions 31211 } = useGooglePlacesAutocomplete(autocompleteModel); 31212 async function suggestionSelected(suggestion) { 31213 const place = await fetchFields(suggestion); 31214 fillInAddress(place); 31215 } 31216 function fillInAddress(place) { 31217 if (!(place == null ? void 0 : place.addressComponents)) { 31218 return; 31219 } 31220 let address = ""; 31221 let postcode = ""; 31222 let city = ""; 31223 let state = ""; 31224 for (const component of place.addressComponents) { 31225 if (component.types.includes("street_number")) { 31226 address = `${component.longText} ${address}`; 31227 } 31228 if (component.types.includes("route")) { 31229 address += component.longText; 31230 } 31231 if (component.types.includes("postal_code")) { 31232 postcode = `${component.longText}${postcode}`; 31233 } 31234 if (component.types.includes("postal_code_suffix")) { 31235 postcode = `${postcode}-${component.longText}`; 31236 } 31237 if (component.types.includes("locality")) { 31238 city = component.longText; 31239 } else if (!city && component.types.includes("sublocality")) { 31240 city = component.longText; 31241 } 31242 if (component.types.includes("administrative_area_level_1")) { 31243 state = component.shortText; 31244 } 31245 } 31246 props.form.address = address; 31247 props.form.zip = postcode; 31248 props.form.city = city; 31249 props.form.state = state; 31250 clearSuggestions(); 31251 } 31252 return { 31253 suggestionSelected, 31254 addressSuggestions, 31255 isLoading 31256 }; 31257} 31258const _hoisted_1$4h = { class: "core-block-address-autocomplete-wrapper" }; 31259const _hoisted_2$3U = ["value", "aria-controls", "aria-expanded", "aria-activedescendant"]; 31260const _hoisted_3$x = { 31261 key: 0, 31262 class: "core-block-address-autocomplete-loader", 31263 role: "progressbar", 31264 "aria-label": "Loading address suggestions" 31265}; 31266const _hoisted_4$p = ["id"]; 31267const _hoisted_5$o = ["id", "aria-selected", "aria-label", "onMousedown"]; 31268const _sfc_main$4n = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, { 31269 __name: "CoreBlockAddressAutocomplete", 31270 props: { 31271 modelValue: { 31272 type: String, 31273 default: "" 31274 }, 31275 form: { 31276 type: Object, 31277 required: true 31278 }, 31279 field: { 31280 type: Object, 31281 required: true 31282 } 31283 }, 31284 emits: ["update:modelValue"], 31285 setup(__props, { emit: __emit }) { 31286 const props = __props; 31287 const emit2 = __emit; 31288 const attrs = useAttrs(); 31289 const isFocused = ref(false); 31290 const activeIndex = ref(-1); 31291 const autocompleteModel = computed(() => props.modelValue); 31292 const { addressSuggestions, isLoading, suggestionSelected } = useLeadFormAddress(props, autocompleteModel); 31293 const dropdownVisible = computed( 31294 () => { 31295 var _a; 31296 return props.field.googlePlacesAutocomplete && isFocused.value && !!((_a = addressSuggestions.value) == null ? void 0 : _a.length); 31297 } 31298 ); 31299 const listboxId = computed(() => { 31300 const id = attrs.id; 31301 return id ? `cbs-lb-${id}` : `cbs-lb-${fallbackId}`; 31302 }); 31303 const activeDescendantId = computed(() => { 31304 if (!dropdownVisible.value || activeIndex.value < 0) return void 0; 31305 const sug = addressSuggestions.value[activeIndex.value]; 31306 return sug ? `${listboxId.value}-opt-${sug.placePrediction.placeId}` : void 0; 31307 }); 31308 const fallbackId = Math.random().toString(36).slice(2, 11); 31309 watch(addressSuggestions, () => { 31310 activeIndex.value = -1; 31311 isFocused.value = true; 31312 }); 31313 watch(activeIndex, () => { 31314 nextTick(scrollActiveIntoView); 31315 }); 31316 function scrollActiveIntoView() { 31317 const i = activeIndex.value; 31318 if (i < 0) return; 31319 const sug = addressSuggestions.value[i]; 31320 if (!sug) return; 31321 const el = document.getElementById( 31322 `${listboxId.value}-opt-${sug.placePrediction.placeId}` 31323 ); 31324 el == null ? void 0 : el.scrollIntoView({ block: "nearest" }); 31325 } 31326 function onFocus() { 31327 isFocused.value = true; 31328 activeIndex.value = -1; 31329 } 31330 function onKeydown(e) { 31331 var _a; 31332 if (!dropdownVisible.value) return; 31333 const len = ((_a = addressSuggestions.value) == null ? void 0 : _a.length) ?? 0; 31334 if (!len) return; 31335 if (e.key === "ArrowDown") { 31336 e.preventDefault(); 31337 activeIndex.value = activeIndex.value < len - 1 ? activeIndex.value + 1 : 0; 31338 } else if (e.key === "ArrowUp") { 31339 e.preventDefault(); 31340 activeIndex.value = activeIndex.value <= 0 ? len - 1 : activeIndex.value - 1; 31341 } else if (e.key === "Enter" && activeIndex.value >= 0) { 31342 const suggestion = addressSuggestions.value[activeIndex.value]; 31343 if (suggestion) { 31344 e.preventDefault(); 31345 e.stopPropagation(); 31346 suggestionSelected(suggestion); 31347 } 31348 } else if (e.key === "Escape") { 31349 e.preventDefault(); 31350 isFocused.value = false;
31351 activeIndex.value = -1; 31352 } 31353 } 31354 return (_ctx, _cache) => { 31355 return openBlock(), createElementBlock("div", _hoisted_1$4h, [ 31356 createBaseVNode("input", mergeProps(_ctx.$attrs, { 31357 value: __props.modelValue, 31358 class: { "is-loading": unref(isLoading) }, 31359 role: "combobox", 31360 "aria-autocomplete": "list", 31361 "aria-haspopup": "listbox", 31362 "aria-controls": listboxId.value, 31363 "aria-expanded": String(dropdownVisible.value), 31364 "aria-activedescendant": activeDescendantId.value, 31365 onInput: _cache[0] || (_cache[0] = ($event) => emit2("update:modelValue", $event.target.value)), 31366 onFocus, 31367 onBlur: _cache[1] || (_cache[1] = ($event) => isFocused.value = false), 31368 onKeydown 31369 }), null, 16, _hoisted_2$3U), 31370 unref(isLoading) ? (openBlock(), createElementBlock("div", _hoisted_3$x)) : createCommentVNode("", true), 31371 withDirectives(createBaseVNode("ul", { 31372 id: listboxId.value, 31373 class: "core-block-address-autocomplete", 31374 role: "listbox", 31375 "aria-label": "Select an address" 31376 }, [ 31377 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(addressSuggestions), (suggestion, index2) => { 31378 return openBlock(), createElementBlock("li", { 31379 id: `${listboxId.value}-opt-${suggestion.placePrediction.placeId}`, 31380 key: suggestion.placePrediction.placeId, 31381 class: normalizeClass(["core-block-address-autocomplete__item", { 31382 "core-block-address-autocomplete__item--active": index2 === activeIndex.value 31383 }]), 31384 role: "option", 31385 "aria-selected": index2 === activeIndex.value, 31386 "aria-label": suggestion.placePrediction.text.text, 31387 onMousedown: withModifiers(($event) => unref(suggestionSelected)(suggestion), ["prevent"]) 31388 }, toDisplayString(suggestion.placePrediction.text.text), 43, _hoisted_5$o); 31389 }), 128)), 31390 _cache[2] || (_cache[2] = createBaseVNode("li", { 31391 class: "core-block-address-autocomplete__attribution", 31392 role: "presentation", 31393 "aria-hidden": "true" 31394 }, [ 31395 createBaseVNode("img", { 31396 src: "https://maps.gstatic.com/mapfiles/api-3/images/powered-by-google-on-white3.png", 31397 alt: "", 31398 width: "120", 31399 height: "14", 31400 loading: "lazy", 31401 decoding: "async" 31402 }) 31403 ], -1)) 31404 ], 8, _hoisted_4$p), [ 31405 [vShow, !unref(isLoading) && dropdownVisible.value] 31406 ]) 31407 ]); 31408 }; 31409 } 31410}); 31411const CoreBlockAddressAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$4n, [["__scopeId", "data-v-06e71309"]]); 31412const CoreBlockAddressAutocomplete$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 31413 __proto__: null, 31414 default: CoreBlockAddressAutocomplete 31415}, Symbol.toStringTag, { value: "Module" })); 31416var I = Object.defineProperty; 31417var S = (n, s, t) => s in n ? I(n, s, { enumerable: true, configurable: true, writable: true, value: t }) : n[s] = t; 31418var b = (n, s, t) => S(n, typeof s != "symbol" ? s + "" : s, t); 31419const N = { 31420 "#": { pattern: /[0-9]/ }, 31421 "@": { pattern: /[a-zA-Z]/ }, 31422 "*": { pattern: /[a-zA-Z0-9]/ } 31423}, R = (n, s, t) => n.replaceAll(s, "").replace(t, ".").replace("..", ".").replace(/[^.\d]/g, ""), C = (n, s, t) => { 31424 var e; 31425 return new Intl.NumberFormat(((e = t.number) == null ? void 0 : e.locale) ?? "en", { 31426 minimumFractionDigits: n, 31427 maximumFractionDigits: s, 31428 roundingMode: "trunc" 31429 }); 31430}, P = (n, s = true, t) => { 31431 var A, y, g, d; 31432 const e = ((A = t.number) == null ? void 0 : A.unsigned) !== true && n.startsWith("-") ? "-" : "", a = ((y = t.number) == null ? void 0 : y.fraction) ?? 0; 31433 let r2 = C(0, a, t); 31434 const h2 = r2.formatToParts(1000.12), u = ((g = h2.find((o) => o.type === "group")) == null ? void 0 : g.value) ?? " ", f = ((d = h2.find((o) => o.type === "decimal")) == null ? void 0 : d.value) ?? ".", i = R(n, u, f); 31435 if (Number.isNaN(parseFloat(i))) return e; 31436 const p2 = i.split("."); 31437 if (p2[1] != null && p2[1].length >= 1) { 31438 const o = p2[1].length <= a ? p2[1].length : a; 31439 r2 = C(o, a, t); 31440 } 31441 let l3 = r2.format(parseFloat(i)); 31442 return s ? a > 0 && i.endsWith(".") && !i.slice(0, -1).includes(".") && (l3 += f) : l3 = R(l3, u, f), e + l3; 31443}; 31444class F { 31445 constructor(s = {}) { 31446 b(this, "opts", {});
31447 b(this, "memo", /* @__PURE__ */ new Map()); 31448 const t = { ...s }; 31449 if (t.tokens != null) { 31450 t.tokens = t.tokensReplace ? { ...t.tokens } : { ...N, ...t.tokens }; 31451 for (const e of Object.values(t.tokens)) 31452 typeof e.pattern == "string" && (e.pattern = new RegExp(e.pattern)); 31453 } else 31454 t.tokens = N; 31455 Array.isArray(t.mask) && (t.mask.length > 1 ? t.mask = [...t.mask].sort((e, a) => e.length - a.length) : t.mask = t.mask[0] ?? ""), t.mask === "" && (t.mask = null), this.opts = t; 31456 } 31457 masked(s) { 31458 return this.process(String(s), this.findMask(String(s))); 31459 } 31460 unmasked(s) { 31461 return this.process(String(s), this.findMask(String(s)), false); 31462 } 31463 isEager() { 31464 return this.opts.eager === true; 31465 } 31466 isReversed() { 31467 return this.opts.reversed === true; 31468 } 31469 completed(s) { 31470 const t = this.findMask(String(s)); 31471 if (this.opts.mask == null || t == null) return false; 31472 const e = this.process(String(s), t).length; 31473 return typeof this.opts.mask == "string" ? e >= this.opts.mask.length : e >= t.length; 31474 } 31475 findMask(s) { 31476 const t = this.opts.mask; 31477 if (t == null) 31478 return null; 31479 if (typeof t == "string") 31480 return t; 31481 if (typeof t == "function") 31482 return t(s); 31483 const e = this.process(s, t.slice(-1).pop() ?? "", false); 31484 return t.find((a) => this.process(s, a, false).length >= e.length) ?? ""; 31485 } 31486 escapeMask(s) { 31487 const t = [], e = []; 31488 return s.split("").forEach((a, r2) => { 31489 a === "!" && s[r2 - 1] !== "!" ? e.push(r2 - e.length) : t.push(a); 31490 }), { mask: t.join(""), escaped: e }; 31491 } 31492 process(s, t, e = true) { 31493 if (this.opts.number != null) return P(s, e, this.opts); 31494 if (t == null) return s; 31495 const a = `v=${s},mr=${t},m=${e ? 1 : 0}`; 31496 if (this.memo.has(a)) return this.memo.get(a); 31497 const { mask: r2, escaped: h2 } = this.escapeMask(t), u = [], f = this.opts.tokens != null ? this.opts.tokens : {}, i = this.isReversed() ? -1 : 1, p2 = this.isReversed() ? "unshift" : "push", l3 = this.isReversed() ? 0 : r2.length - 1, A = this.isReversed() ? () => o > -1 && c2 > -1 : () => o < r2.length && c2 < s.length, y = (k3) => !this.isReversed() && k3 <= l3 || this.isReversed() && k3 >= l3; 31498 let g, d = -1, o = this.isReversed() ? r2.length - 1 : 0, c2 = this.isReversed() ? s.length - 1 : 0, E = false; 31499 for (; A(); ) { 31500 const k3 = r2.charAt(o), m = f[k3], M = (m == null ? void 0 : m.transform) != null ? m.transform(s.charAt(c2)) : s.charAt(c2); 31501 if (!h2.includes(o) && m != null ? (M.match(m.pattern) != null ? (u[p2](M), m.repeated ? (d === -1 ? d = o : o === l3 && o !== d && (o = d - i), l3 === d && (o -= i)) : m.multiple && (E = true, o -= i), o += i) : m.multiple ? E && (o += i, c2 -= i, E = false) : M === g ? g = void 0 : m.optional && (o += i, c2 -= i), c2 += i) : (e && !this.isEager() && u[p2](k3), M === k3 && !this.isEager() ? c2 += i : g = k3, this.isEager() || (o += i)), this.isEager()) 31502 for (; y(o) && (f[r2.charAt(o)] == null || h2.includes(o)); ) { 31503 if (e) { 31504 if (u[p2](r2.charAt(o)), s.charAt(c2) === r2.charAt(o)) { 31505 o += i, c2 += i; 31506 continue; 31507 } 31508 } else r2.charAt(o) === s.charAt(c2) && (c2 += i); 31509 o += i; 31510 } 31511 } 31512 return this.memo.set(a, u.join("")), this.memo.get(a); 31513 } 31514} 31515const w = (n) => JSON.parse(n.replaceAll("'", '"')), T = (n, s = {}) => { 31516 const t = { ...s }; 31517 n.dataset.maska != null && n.dataset.maska !== "" && (t.mask = x(n.dataset.maska)), n.dataset.maskaEager != null && (t.eager = v(n.dataset.maskaEager)), n.dataset.maskaReversed != null && (t.reversed = v(n.dataset.maskaReversed)), n.dataset.maskaTokensReplace != null && (t.tokensReplace = v(n.dataset.maskaTokensReplace)), n.dataset.maskaTokens != null && (t.tokens = W(n.dataset.maskaTokens)); 31518 const e = {}; 31519 return n.dataset.maskaNumberLocale != null && (e.locale = n.dataset.maskaNumberLocale), n.dataset.maskaNumberFraction != null && (e.fraction = parseInt(n.dataset.maskaNumberFraction)), n.dataset.maskaNumberUnsigned != null && (e.unsigned = v(n.dataset.maskaNumberUnsigned)), (n.dataset.maskaNumber != null || Ob
31519ject.values(e).length > 0) && (t.number = e), t; 31520}, v = (n) => n !== "" ? !!JSON.parse(n) : true, x = (n) => n.startsWith("[") && n.endsWith("]") ? w(n) : n, W = (n) => { 31521 if (n.startsWith("{") && n.endsWith("}")) 31522 return w(n); 31523 const s = {}; 31524 return n.split("|").forEach((t) => { 31525 const e = t.split(":"); 31526 s[e[0]] = { 31527 pattern: new RegExp(e[1]), 31528 optional: e[2] === "optional", 31529 multiple: e[2] === "multiple", 31530 repeated: e[2] === "repeated" 31531 }; 31532 }), s; 31533}; 31534class V { 31535 constructor(s, t = {}) { 31536 b(this, "items", /* @__PURE__ */ new Map()); 31537 b(this, "eventAbortController"); 31538 b(this, "onInput", (s2) => { 31539 if (s2 instanceof CustomEvent && s2.type === "input" && !s2.isTrusted && !s2.bubbles) 31540 return; 31541 const t2 = s2.target, e = this.items.get(t2), a = "inputType" in s2 && s2.inputType.startsWith("delete"), r2 = e.isEager(), h2 = a && r2 && e.unmasked(t2.value) === "" ? "" : t2.value; 31542 this.fixCursor(t2, a, () => this.setValue(t2, h2)); 31543 }); 31544 this.options = t, this.eventAbortController = new AbortController(), this.init(this.getInputs(s)); 31545 } 31546 update(s = {}) { 31547 this.options = { ...s }, this.init(Array.from(this.items.keys())); 31548 } 31549 updateValue(s) { 31550 s.value !== "" && s.value !== this.processInput(s).masked && this.setValue(s, s.value); 31551 } 31552 destroy() { 31553 this.eventAbortController.abort(), this.items.clear(); 31554 } 31555 init(s) { 31556 const t = this.getOptions(this.options); 31557 for (const e of s) { 31558 if (!this.items.has(e)) { 31559 const { signal: r2 } = this.eventAbortController; 31560 e.addEventListener("input", this.onInput, { capture: true, signal: r2 }); 31561 } 31562 const a = new F(T(e, t)); 31563 this.items.set(e, a), queueMicrotask(() => this.updateValue(e)), e.selectionStart === null && a.isEager() && console.warn("Maska: input of `%s` type is not supported", e.type); 31564 } 31565 } 31566 getInputs(s) { 31567 return typeof s == "string" ? Array.from(document.querySelectorAll(s)) : "length" in s ? Array.from(s) : [s]; 31568 } 31569 getOptions(s) { 31570 const { onMaska: t, preProcess: e, postProcess: a, ...r2 } = s; 31571 return r2; 31572 } 31573 fixCursor(s, t, e) { 31574 const a = s.selectionStart, r2 = s.value; 31575 if (e(), a === null || a === r2.length && !t) return; 31576 const h2 = s.value, u = r2.slice(0, a), f = h2.slice(0, a), i = this.processInput(s, u).unmasked, p2 = this.processInput(s, f).unmasked; 31577 let l3 = a; 31578 u !== f && (l3 += t ? h2.length - r2.length : i.length - p2.length), s.setSelectionRange(l3, l3); 31579 } 31580 setValue(s, t) { 31581 const e = this.processInput(s, t); 31582 s.value = e.masked, this.options.onMaska != null && (Array.isArray(this.options.onMaska) ? this.options.onMaska.forEach((a) => a(e)) : this.options.onMaska(e)), s.dispatchEvent(new CustomEvent("maska", { detail: e })), s.dispatchEvent(new CustomEvent("input", { detail: e.masked })); 31583 } 31584 processInput(s, t) { 31585 const e = this.items.get(s); 31586 let a = t ?? s.value; 31587 this.options.preProcess != null && (a = this.options.preProcess(a)); 31588 let r2 = e.masked(a); 31589 return this.options.postProcess != null && (r2 = this.options.postProcess(r2)), { 31590 masked: r2, 31591 unmasked: e.unmasked(a), 31592 completed: e.completed(a) 31593 }; 31594 } 31595} 31596const l2 = /* @__PURE__ */ new WeakMap(), c = (e, s) => { 31597 if (e.arg == null || e.instance == null) return; 31598 const a = "setup" in e.instance.$.type; 31599 e.arg in e.instance ? e.instance[e.arg] = s : a && console.warn("Maska: please expose `%s` using defineExpose", e.arg); 31600}, k2 = (e, s) => { 31601 var u; 31602 const a = e instanceof HTMLInputElement ? e : e.querySelector("input"); 31603 if (a == null || (a == null ? void 0 : a.type) === "file") return; 31604 let t = {}; 31605 if (s.value != null && (t = typeof s.value == "string" ? { mask: s.value } : { ...s.value }), s.arg != null) { 31606 const o = (r2) => { 31607 const p2 = s.modifiers.unmasked ? r2.unmasked : s.modifiers.completed ? r2.completed : r2.masked; 31608 c(s, p2); 31609 }; 31610 t.onMaska = t.onMaska == null ? o : Array.isArray(t.onMaska) ? [...t.onMaska, o] : [t.onMaska, o]; 31611 } 31612 l2.has(a) ? (u = l2.get(a)) == null || u.update(t) : l2.set(a, new V(a, t)); 31613}; 31614const _hoisted_1$4g = { class: "core-block-dynamic-form" }; 31615const _hoisted_2$3T = { 31616 key: 0, 31617 class: "core-block-dynamic-form__section" 31618}; 31619const _hoisted_3$w = { 31620 key: 0, 31621 class: "core-block-dynamic-form__section-header" 31622}; 31623const _hoisted_4$o = { 31624 key: 0, 31625 class: "core-block-dynamic-form__title" 31626}; 31627const _hoisted_5$n = { 31628 key: 1, 31629 class: "core-block-dynamic-form__subtitle" 31630}; 31631const _hoisted_6$f = { 31632 key: 0, 31633 class: "core-block-dynamic-form__checkbox-row" 31634}; 31635const _hoisted_7$c = ["id", "value", "aria-label", "aria-checked"]; 31636const _hoisted_8$c = ["for"]; 31637const _hoisted_9$a = { 31638 key: 0, 31639 class: "core-block-dynamic-form__required" 31640}; 31641const _hoisted_10$8 = { 31642 key: 0, 31643 class: "core-block-dynamic-form__label-row" 31644};
31645const _hoisted_11$7 = ["for"]; 31646const _hoisted_12$7 = { 31647 key: 0, 31648 class: "core-block-dynamic-form__required" 31649}; 31650const _hoisted_13$7 = ["aria-invalid", "aria-required", "aria-describedby"]; 31651const _hoisted_14$7 = ["id"]; 31652const _hoisted_15$7 = { class: "core-block-dynamic-form__submit-button submit-button" }; 31653const _sfc_main$4m = { 31654 __name: "CoreBlockDynamicForm", 31655 props: { 31656 form: { 31657 type: Object, 31658 required: false, 31659 default: void 0 31660 }, 31661 settings: { 31662 type: Object, 31663 required: false, 31664 default: () => ({}) 31665 }, 31666 isEditable: { 31667 type: Boolean, 31668 default: false 31669 } 31670 }, 31671 emits: ["submit"], 31672 setup(__props, { expose: __expose, emit: __emit }) { 31673 veeValidateRules(); 31674 const COMPONENT_REGISTRY = { 31675 input: "input", 31676 CoreBlockSelect: __nuxt_component_4$2 31677 }; 31678 const props = __props; 31679 const emit2 = __emit; 31680 const { resolvedForm } = useCoreBlockDynamicForm(toRef(props)); 31681 const fallbackForm = reactive({}); 31682 const formModel = computed(() => props.form ?? fallbackForm); 31683 function isSectionVisible(section) { 31684 const anyFieldVisible = section.fields.some( 31685 (field) => isFieldVisible(field) 31686 ); 31687 if (!anyFieldVisible) return false; 31688 const s = section == null ? void 0 : section.show; 31689 if (s == null) { 31690 return true; 31691 } 31692 if (typeof s === "function") { 31693 return Boolean( 31694 s({ 31695 form: formModel.value, 31696 settings: props.settings ?? {} 31697 }) 31698 ); 31699 } 31700 return Boolean(s); 31701 } 31702 function isFieldVisible(field) { 31703 const s = field == null ? void 0 : field.show; 31704 if (s == null) { 31705 return true; 31706 } 31707 if (typeof s === "function") { 31708 return Boolean( 31709 s({ 31710 form: formModel.value, 31711 settings: props.settings ?? {} 31712 }) 31713 ); 31714 } 31715 return Boolean(s); 31716 } 31717 function fieldDynamicContext() { 31718 return { 31719 form: formModel.value, 31720 settings: props.settings ?? {} 31721 }; 31722 } 31723 function resolveFieldLabel(field) { 31724 const raw = field == null ? void 0 : field.label; 31725 if (raw == null) { 31726 return ""; 31727 } 31728 if (typeof raw === "function") { 31729 const out = raw(fieldDynamicContext()); 31730 return out == null ? "" : String(out); 31731 } 31732 return String(raw); 31733 } 31734 function fieldValueKey(field) { 31735 return field.modelKey ?? field.id; 31736 } 31737 function fieldDisplayName(field) { 31738 const resolved = resolveFieldLabel(field); 31739 if (resolved) { 31740 return resolved; 31741 } 31742 return field.name ?? String(field.id ?? field.modelKey ?? "field"); 31743 } 31744 function fieldVid(field) { 31745 const id = field.id ?? fieldValueKey(field); 31746 return `dynamic-form-field:${id}`; 31747 } 31748 function fieldErrorDomId(sectionIndex, fieldIndex, field) { 31749 const { type } = field; 31750 if (type === "label") return void 0; 31751 return `error-${fieldDomId(sectionIndex, fieldIndex, field)}`; 31752 } 31753 function fieldAriaLabel(field) { 31754 return resolveFieldLabel(field) || void 0; 31755 } 31756 function applyFieldAriaLabel(bindings, field) { 31757 const { type } = field; 31758 if (type === "label") return; 31759 if (bindings["aria-label"]) { 31760 return; 31761 } 31762 const label = fieldAriaLabel(field); 31763 if (label) { 31764 bindings["aria-label"] = label; 31765 } 31766 } 31767 function fieldAriaDescribedBy(sectionIndex, fieldIndex, field) { 31768 const { type } = field; 31769 if (type === "label") return void 0; 31770 const ids = []; 31771 ids.push(fieldErrorDomId(sectionIndex, fieldIndex, field)); 31772 if (field.tooltip) { 31773 ids.push(`${fieldDomId(sectionIndex, fieldIndex, field)}-tooltip`); 31774 } 31775 return ids.length ? ids.join(" ") : void 0; 31776 } 31777 function isCheckboxField(field) { 31778 var _a; 31779 if (field.component !== "input") { 31780 return false; 31781 } 31782 const t = field.type ?? ((_a = field.componentProps) == null ? void 0 : _a.type); 31783 return t === "checkbox"; 31784 } 31785 function checkboxConcernValue(field) { 31786 return field.checkboxValue ?? field.value ?? (resolveFieldLabel(field) || field.id); 31787 } 31788 function checkboxExtraProps(field) { 31789 const extra = { ...field.componentProps ?? {} }; 31790 delete extra.type; 31791 delete extra.class; 31792 return extra; 31793 } 31794 function checkboxInputClass(field) { 31795 var _a; 31796 const extraClass = (_a = field.componentProps) == null ? void 0 : _a.class; 31797 return [ 31798 "core-block-dynamic-form__control", 31799 "core-block-dynamic-form__control--checkbox", 31800 extraClass
31801 ].filter(Boolean); 31802 } 31803 function seedFormModelKeys(formDef) { 31804 const target = props.form ?? fallbackForm; 31805 let anyCheckbox = false; 31806 for (const section of formDef.sections ?? []) { 31807 for (const field of section.fields ?? []) { 31808 if (field.type === "label") return; 31809 if (isCheckboxField(field)) { 31810 anyCheckbox = true; 31811 continue; 31812 } 31813 const key = fieldValueKey(field); 31814 if (key == null || key in target) { 31815 continue; 31816 } 31817 target[key] = ""; 31818 } 31819 } 31820 if (anyCheckbox && !Array.isArray(target.leadConcerns)) { 31821 target.leadConcerns = []; 31822 } 31823 } 31824 watch( 31825 resolvedForm, 31826 (formDef) => { 31827 seedFormModelKeys(formDef); 31828 }, 31829 { immediate: true, deep: true } 31830 ); 31831 function resolveIs(name) { 31832 return COMPONENT_REGISTRY[name] ?? name; 31833 } 31834 function rowClass(section) { 31835 return section.autoCols ? "core-block-dynamic-form__row--flex" : "core-block-dynamic-form__row--grid"; 31836 } 31837 function cellClass(section, field) { 31838 if (section.autoCols && field.cols == null) { 31839 return "core-block-dynamic-form__cell--auto"; 31840 } 31841 return ""; 31842 } 31843 function cellStyle(section, field) { 31844 if (!section.autoCols) { 31845 const span = field.cols ?? 12; 31846 return { gridColumn: `span ${span}` }; 31847 } 31848 if (field.cols != null) { 31849 const pct = field.cols / 12 * 100; 31850 return { 31851 flex: `0 1 ${pct}%`, 31852 minWidth: 0, 31853 maxWidth: "100%" 31854 }; 31855 } 31856 return {}; 31857 } 31858 function fieldDomId(sectionIndex, fieldIndex, field) { 31859 const { type } = field; 31860 if (type === "label") return void 0; 31861 return field.id ? `${field.id}` : `dynamic-form-s${sectionIndex}-f${fieldIndex}`; 31862 } 31863 function mergedNativeBindings(field, domId, veeField) { 31864 const bindings = Object.assign( 31865 {}, 31866 veeField, 31867 controlVisualBind(field, domId) 31868 ); 31869 applyFieldAriaLabel(bindings, field); 31870 return bindings; 31871 } 31872 function mergedComponentBindings(field, domId, componentField) { 31873 const bindings = Object.assign( 31874 {}, 31875 componentField, 31876 controlVisualBind(field, domId) 31877 ); 31878 applyFieldAriaLabel(bindings, field); 31879 return bindings; 31880 } 31881 function controlVisualBind(field, domId) { 31882 const extra = { ...field.componentProps }; 31883 if (field.component === "input") { 31884 return { 31885 ...extra, 31886 id: domId, 31887 class: ["core-block-dynamic-form__control", extra.class].filter( 31888 Boolean 31889 ) 31890 }; 31891 } 31892 if (field.component === "CoreBlockSelect") { 31893 return { 31894 ...extra, 31895 id: domId, 31896 class: ["core-block-dynamic-form__control", extra.class].filter( 31897 Boolean 31898 ), 31899 required: resolveFieldRequired(field, fieldDynamicContext()) ?? false 31900 }; 31901 } 31902 return { 31903 ...extra, 31904 id: domId, 31905 class: ["core-block-dynamic-form__control", extra.class].filter( 31906 Boolean 31907 ) 31908 }; 31909 } 31910 function fieldHasValidationError(field, errors) { 31911 if (!errors) { 31912 return false; 31913 } 31914 return Boolean(errors[fieldDisplayName(field)]); 31915 } 31916 function getFocusableElement(domId, field) { 31917 const root2 = document.getElementById(domId); 31918 if (!root2) { 31919 return null; 31920 } 31921 if (root2.matches("input, select, textarea, [role='combobox']")) { 31922 return root2; 31923 } 31924 if (field.component === "CoreBlockSelect") { 31925 return root2; 31926 } 31927 return root2.querySelector("input, select, textarea, [role='combobox']") ?? root2; 31928 } 31929 async function focusFirstInvalidField(errors) { 31930 var _a; 31931 await nextTick(); 31932 for (let sectionIndex = 0; sectionIndex < resolvedForm.value.sections.length; sectionIndex++) { 31933 const section = resolvedForm.value.sections[sectionIndex]; 31934 if (!isSectionVisible(section)) { 31935 continue; 31936 } 31937 for (let fieldIndex = 0; fieldIndex < section.fields.length; fieldIndex++) { 31938 const field = section.fields[fieldIndex]; 31939 if (!isFieldVisible(field) || field.type === "label") { 31940 continue; 31941 } 31942 if (isCheckboxField(field)) { 31943 continue; 31944 } 31945 if (!fieldHasValidationError(field, errors)) { 31946 continue; 31947 } 31948 const focusTarget = getFocusableElement( 31949 fieldDomId(sectionIndex, fieldIndex, field), 31950 field 31951 );
31952 if (!(focusTarget == null ? void 0 : focusTarget.focus)) { 31953 continue; 31954 } 31955 focusTarget.focus({ preventScroll: false }); 31956 (_a = focusTarget.scrollIntoView) == null ? void 0 : _a.call(focusTarget, { 31957 block: "nearest", 31958 behavior: "smooth" 31959 }); 31960 return true; 31961 } 31962 } 31963 return false; 31964 } 31965 __expose({ 31966 focusFirstInvalidField 31967 }); 31968 return (_ctx, _cache) => { 31969 const _component_CoreBlockAccessibleTooltip = __nuxt_component_0$b; 31970 const _component_CoreBlock = _sfc_main$4x; 31971 return openBlock(), createElementBlock("div", _hoisted_1$4g, [ 31972 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(resolvedForm).sections, (section, sectionIndex) => { 31973 return openBlock(), createElementBlock(Fragment, { 31974 key: section.id ?? `section-${sectionIndex}` 31975 }, [ 31976 isSectionVisible(section) ? (openBlock(), createElementBlock("section", _hoisted_2$3T, [ 31977 section.title || section.subtitle ? (openBlock(), createElementBlock("header", _hoisted_3$w, [ 31978 section.title ? (openBlock(), createElementBlock("h5", _hoisted_4$o, toDisplayString(section.title), 1)) : createCommentVNode("", true), 31979 section.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$n, toDisplayString(section.subtitle), 1)) : createCommentVNode("", true) 31980 ])) : createCommentVNode("", true), 31981 createBaseVNode("div", { 31982 class: normalizeClass(["core-block-dynamic-form__row", rowClass(section)]) 31983 }, [ 31984 (openBlock(true), createElementBlock(Fragment, null, renderList(section.fields, (field, fieldIndex) => { 31985 return openBlock(), createElementBlock(Fragment, { 31986 key: field.id ?? `field-${sectionIndex}-${fieldIndex}` 31987 }, [ 31988 isFieldVisible(field) ? (openBlock(), createElementBlock("div", { 31989 key: 0, 31990 class: normalizeClass(["core-block-dynamic-form__cell", cellClass(section, field)]), 31991 style: normalizeStyle(cellStyle(section, field)) 31992 }, [ 31993 isCheckboxField(field) ? (openBlock(), createElementBlock("div", _hoisted_6$f, [ 31994 withDirectives(createBaseVNode("input", mergeProps({ 31995 id: fieldDomId( 31996 sectionIndex, 31997 fieldIndex, 31998 field 31999 ), 32000 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formModel.value.leadConcerns = $event), 32001 value: checkboxConcernValue(field), 32002 type: "checkbox", 32003 autocomplete: "off", 32004 ref_for: true 32005 }, checkboxExtraProps(field), { 32006 class: checkboxInputClass(field), 32007 "aria-label": fieldAriaLabel(field), 32008 "aria-checked": formModel.value.leadConcerns.includes( 32009 checkboxConcernValue(field) 32010 ) 32011 }), null, 16, _hoisted_7$c), [ 32012 [vModelCheckbox, formModel.value.leadConcerns] 32013 ]), 32014 resolveFieldLabel(field) ? (openBlock(), createElementBlock("label", { 32015 key: 0, 32016 class: "core-block-dynamic-form__checkbox-label", 32017 for: fieldDomId( 32018 sectionIndex, 32019 fieldIndex, 32020 field 32021 ) 32022 }, [ 32023 createTextVNode(toDisplayString(resolveFieldLabel(field)), 1), 32024 unref(resolveFieldRequired)( 32025 field, 32026 fieldDynamicContext() 32027 ) ? (openBlock(), createElementBlock("span", _hoisted_9$a, "*")) : createCommentVNode("", true) 32028 ], 8, _hoisted_8$c)) : createCommentVNode("", true) 32029 ])) : (openBlock(), createBlock(unref(Field), { 32030 key: 1, 32031 modelValue: formModel.value[fieldValueKey(field)], 32032 "onUpdate:modelValue": ($event) => formModel.value[fieldValueKey(field)] = $event, 32033 rules: unref(resolveFieldRules)( 32034 field, 32035 fieldDynamicContext() 32036 ), 32037 name: fieldDisplayName(field), 32038 vid: fieldVid(field), 32039 tag: "div", 32040 "validate-on-blur": "" 32041 }, { 32042 default: withCtx(({ 32043 field: veeField, 32044 componentField, 32045 errors 32046 }) => [ 32047 resolveFieldLabel(field) ? (openBlock(), createElementBlock("div", _hoisted_10$8, [ 32048 createBaseVNode("label", { 32049 class: normalizeClass(["core-block-dynamic-form__label", { 32050 "italic-label": field.type === "label", 32051 "has-tooltip": field.tooltip 32052 }]), 32053 for: fieldDomId( 32054 sectionIndex, 32055 fieldIndex, 32056 field 32057 ) 32058 }, [ 32059 createTextVNode(toDisplayString(resolveFieldLabel(field)), 1), 32060 unref(resolveFieldRequired)( 32061 field, 32062 fieldDynamicContext() 32063 ) ? (openBlock(), createElementBlock("span", _hoisted_12$7, "*")) : createCommentVNode("", true) 32064 ], 10, _hoisted_11$7) 32065 ])) : createCommentVNode("", true), 32066 field.component === "input" && !field.googlePlacesAutocomplete ? withDirectives((openBlock(), createElementBlock("input", mergeProps( 32067 { 32068 key: 1, 32069 ref_for: true 32070 }, 32071 mergedNativeBindings( 32072 field, 32073 fieldDomId( 32074 sectionIndex, 32075 fieldIndex, 32076 field 32077 ), 32078 veeField 32079 ), 32080 { 32081 class: { 32082 error: errors.length > 0 32083 }, 32084 "aria-invalid": errors.length > 0 ? true : void 0, 32085 "aria-required": unref(resolveFieldRequired)( 32086 field, 32087 fieldDynamicContext() 32088 ), 32089 "aria-describedby": fieldAriaDescribedBy( 32090 sectionIndex, 32091 fieldIndex, 32092 field 32093 ) 32094 } 32095 ), null, 16, _hoisted_13$7)), [ 32096 [unref(k2)] 32097 ]) : field.component === "CoreBlockSelect" ? (openBlock(), createBlock(resolveDynamicComponent(__nuxt_component_4$2), mergeProps( 32098 { 32099 key: 2, 32100 ref_for: true 32101 }, 32102 mergedComponentBindings( 32103 field, 32104 fieldDomId( 32105 sectionIndex, 32106 fieldIndex, 32107 field 32108 ), 32109 componentField 32110 ), 32111 { 32112 class: { 32113 error: errors.length > 0 32114 }, 32115 "aria-invalid": errors.length > 0 ? true : void 0, 32116 "aria-describedby": fieldAriaDescribedBy( 32117 sectionIndex, 32118 fieldIndex, 32119 field 32120 ) 32121 } 32122 ), null, 16, ["class", "aria-invalid", "aria-describedby"])) : field.component === "input" && field.googlePlacesAutocomplete ? (openBlock(), createBlock(resolveDynamicComponent(CoreBlockAddressAutocomplete), mergeProps( 32123 { 32124 key: 3, 32125 ref_for: true 32126 }, 32127 mergedComponentBindings( 32128 field, 32129 fieldDomId( 32130 sectionIndex, 32131 fieldIndex, 32132 field 32133 ), 32134 componentField 32135 ), 32136 { 32137 class: { 32138 error: errors.length > 0 32139 }, 32140 form: formModel.value, 32141 field, 32142 "aria-invalid": errors.length > 0 ? true : void 0, 32143 "aria-required": unref(resolveFieldRequired)( 32144 field, 32145 fieldDynamicContext() 32146 ), 32147 "aria-describedby": fieldAriaDescribedBy( 32148 sectionIndex, 32149 fieldIndex, 32150 field 32151 ) 32152 } 32153 ), null, 16, ["class", "form", "field", "aria-invalid", "aria-required", "aria-describedby"])) : (openBlock(), createBlock(resolveDynamicComponent(resolveIs(field.component)), mergeProps( 32154 { 32155 key: 4, 32156 ref_for: true 32157 }, 32158 mergedComponentBindings( 32159 field, 32160 fieldDomId( 32161 sectionIndex, 32162 fieldIndex, 32163 field 32164 ), 32165 componentField 32166 ), 32167 { 32168 "aria-invalid": errors.length > 0 ? true : void 0, 32169 "aria-describedby": fieldAriaDescribedBy( 32170 sectionIndex, 32171 fieldIndex, 32172 field 32173 ) 32174 } 32175 ), null, 16, ["aria-invalid", "aria-describedby"])), 32176 createBaseVNode("small", { 32177 id: fieldErrorDomId( 32178 sectionIndex, 32179 fieldIndex, 32180 field 32181 ), 32182 class: "text-error core-block-dynamic-form__error" 32183 }, toDisplayString(errors[0]), 9, _hoisted_14$7) 32184 ]), 32185 _: 2 32186 }, 1032, ["modelValue", "onUpdate:modelValue", "rules", "name", "vid"])), 32187 field.tooltip ? (openBlock(), createBlock(_component_CoreBlockAccessibleTooltip, { 32188 key: 2, 32189 id: `${fieldDomId( 32190 sectionIndex, 32191 fieldIndex, 32192 field 32193 )}-tooltip`, 32194 field, 32195 class: "core-block-dynamic-form__tooltip--positioned" 32196 }, null, 8, ["id", "field"])) : createCommentVNode("", true)
32197 ], 6)) : createCommentVNode("", true) 32198 ], 64); 32199 }), 128)) 32200 ], 2) 32201 ])) : createCommentVNode("", true) 32202 ], 64); 32203 }), 128)), 32204 createBaseVNode("div", _hoisted_15$7, [ 32205 createVNode(_component_CoreBlock, { 32206 "data-testid": `form-submit-button`, 32207 "is-editable": __props.isEditable, 32208 type: "submit", 32209 value: "submit", 32210 settings: { 32211 type: "button", 32212 label: __props.settings.formType === "agentNewsletter" ? "Sign up for my Newsletter" : "Submit", 32213 event: () => emit2("submit"), 32214 icon: null, 32215 variants: { 32216 style: "primary" 32217 } 32218 } 32219 }, null, 8, ["is-editable", "settings"]) 32220 ]) 32221 ]); 32222 }; 32223 } 32224}; 32225const __nuxt_component_3$4 = /* @__PURE__ */ _export_sfc(_sfc_main$4m, [["__scopeId", "data-v-8652d021"]]); 32226const CoreBlockDynamicForm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 32227 __proto__: null, 32228 default: __nuxt_component_3$4 32229}, Symbol.toStringTag, { value: "Module" })); 32230const _sfc_main$4l = { 32231 props: { 32232 settings: { 32233 type: Object, 32234 required: false 32235 } 32236 }, 32237 computed: { 32238 alt() { 32239 var _a, _b; 32240 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 32241 }, 32242 id() { 32243 var _a, _b; 32244 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 32245 } 32246 } 32247}; 32248const _hoisted_1$4f = ["aria-labelledby", "aria-label"]; 32249const _hoisted_2$3S = ["id"]; 32250function _sfc_render$3O(_ctx, _cache, $props, $setup, $data, $options) { 32251 return openBlock(), createElementBlock("svg", { 32252 width: "24", 32253 height: "24", 32254 viewBox: "0 0 24 24", 32255 fill: "none", 32256 xmlns: "http://www.w3.org/2000/svg", 32257 role: "img", 32258 "aria-labelledby": `icon-title-${$options.id}`, 32259 "aria-label": $options.alt 32260 }, [ 32261 createBaseVNode("title", { 32262 id: `icon-title-${$options.id}` 32263 }, toDisplayString($options.alt), 9, _hoisted_2$3S), 32264 _cache[0] || (_cache[0] = createBaseVNode("path", { 32265 d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", 32266 stroke: "currentColor", 32267 "stroke-width": "2", 32268 "stroke-linecap": "round", 32269 "stroke-linejoin": "round" 32270 }, null, -1)), 32271 _cache[1] || (_cache[1] = createBaseVNode("path", { 32272 d: "M12 16V12", 32273 stroke: "currentColor", 32274 "stroke-width": "2", 32275 "stroke-linecap": "round", 32276 "stroke-linejoin": "round" 32277 }, null, -1)), 32278 _cache[2] || (_cache[2] = createBaseVNode("path", { 32279 d: "M12 8H12.01", 32280 stroke: "currentColor", 32281 "stroke-width": "2", 32282 "stroke-linecap": "round", 32283 "stroke-linejoin": "round" 32284 }, null, -1)) 32285 ], 8, _hoisted_1$4f); 32286} 32287const __nuxt_component_5$1 = /* @__PURE__ */ _export_sfc(_sfc_main$4l, [["render", _sfc_render$3O]]); 32288const CoreIconInfo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 32289 __proto__: null, 32290 default: __nuxt_component_5$1 32291}, Symbol.toStringTag, { value: "Module" })); 32292const clientOnlySymbol = Symbol.for("nuxt:client-only"); 32293const __nuxt_component_3$3 = /* @__PURE__ */ defineComponent({ 32294 name: "ClientOnly", 32295 inheritAttrs: false, 32296 props: ["fallback", "placeholder", "placeholderTag", "fallbackTag"], 32297 setup(_, { slots, attrs }) { 32298 const mounted = ref(false); 32299 onMounted(() => { 32300 mounted.value = true; 32301 }); 32302 provide(clientOnlySymbol, true); 32303 return (props) => { 32304 var _a; 32305 if (mounted.value) { 32306 return (_a = slots.default) == null ? void 0 : _a.call(slots); 32307 } 32308 const slot = slots.fallback || slots.placeholder; 32309 if (slot) { 32310 return slot(); 32311 } 32312 const fallbackStr = props.fallback || props.placeholder || ""; 32313 const fallbackTag = props.fallbackTag || props.placeholderTag || "span"; 32314 return createElementBlock(fallbackTag, attrs, fallbackStr); 32315 }; 32316 } 32317}); 32318const useRecaptcha = () => { 32319 const isLoaded = ref(false); 32320 const isLoading = ref(false); 32321 const error = ref(null); 32322 const recaptchaInstance = ref(null); 32323 const isReady = computed( 32324 () => isLoaded.value && recaptchaInstance.value && !error.value 32325 ); 32326 const initializeRecaptcha = async () => { 32327 if (typeof window === "undefined") return; 32328 try { 32329 isLoading.value = true; 32330 error.value = null; 32331 let nuxtRecaptcha = null;
32332 try { 32333 const { $recaptcha, $recaptchaLoaded } = useNuxtApp().vueApp.config.globalProperties; 32334 if ($recaptchaLoaded) { 32335 await $recaptchaLoaded(); 32336 const { $recaptcha: loadedRecaptcha } = useNuxtApp().vueApp.config.globalProperties; 32337 if (loadedRecaptcha && typeof loadedRecaptcha === "function") { 32338 recaptchaInstance.value = loadedRecaptcha; 32339 isLoaded.value = true; 32340 return; 32341 } 32342 } 32343 } catch (e) { 32344 } 32345 let attempts = 0; 32346 const maxAttempts = 50; 32347 while (attempts < maxAttempts) { 32348 if (typeof window !== "undefined") { 32349 if (window.$recaptchaLoaded) { 32350 await window.$recaptchaLoaded(); 32351 if (window.$recaptcha && typeof window.$recaptcha === "function") { 32352 recaptchaInstance.value = window.$recaptcha; 32353 isLoaded.value = true; 32354 break; 32355 } 32356 } 32357 } 32358 await new Promise((resolve2) => setTimeout(resolve2, 100)); 32359 attempts++; 32360 } 32361 } catch (err) { 32362 error.value = err.message || "Failed to initialize reCAPTCHA"; 32363 try { 32364 const { $appInsights } = useNuxtApp(); 32365 if ($appInsights && typeof $appInsights.trackException === "function") { 32366 $appInsights.trackException({ 32367 exception: err, 32368 properties: { 32369 location: "useRecaptcha-composable", 32370 action: "initialization-error", 32371 errorMessage: err.message 32372 } 32373 }); 32374 } 32375 } catch (e) { 32376 } 32377 } finally { 32378 isLoading.value = false; 32379 } 32380 }; 32381 const executeRecaptcha = async (action = "submit") => { 32382 if (!isReady.value) { 32383 if (!isLoading.value && !isLoaded.value) { 32384 await initializeRecaptcha(); 32385 } 32386 if (!isReady.value) { 32387 return { 32388 success: true, 32389 token: "recaptcha-unavailable" 32390 }; 32391 } 32392 } 32393 try { 32394 const token = await recaptchaInstance.value(action); 32395 return { 32396 success: true, 32397 token 32398 }; 32399 } catch (err) { 32400 const errorMessage = err.message || "reCAPTCHA execution failed"; 32401 try { 32402 const { $appInsights } = useNuxtApp(); 32403 if ($appInsights && typeof $appInsights.trackException === "function") { 32404 $appInsights.trackException({ 32405 exception: err, 32406 properties: { 32407 location: "useRecaptcha-composable", 32408 action: "execution-error", 32409 recaptchaAction: action, 32410 errorMessage: err.message 32411 } 32412 }); 32413 } 32414 } catch (e) { 32415 } 32416 return { 32417 success: false, 32418 error: errorMessage 32419 }; 32420 } 32421 }; 32422 const verifyRecaptcha = async (token) => { 32423 var _a; 32424 if (!token) { 32425 return { 32426 success: false, 32427 error: true, 32428 errorMessage: "No reCAPTCHA token provided" 32429 }; 32430 } 32431 if (token === "static-generation-bypass" || token === "recaptcha-unavailable") { 32432 return { 32433 success: true, 32434 error: false, 32435 errorMessage: null 32436 }; 32437 } 32438 try { 32439 const config = /* @__PURE__ */ useRuntimeConfig(); 32440 const baseURL2 = config.public.apiBaseURL || config.public.apiBaseUrl || "https://localhost:7283/api"; 32441 const response = await axios.post( 32442 `${baseURL2}/tooling/submit/recaptcha`, 32443 { 32444 responseToken: token 32445 } 32446 ); 32447 return { 32448 success: ((_a = response.data) == null ? void 0 : _a.success) || false, 32449 error: false, 32450 errorMessage: null 32451 }; 32452 } catch (err) { 32453 try { 32454 const { $appInsights } = useNuxtApp(); 32455 if ($appInsights && typeof $appInsights.trackException === "function") { 32456 $appInsights.trackException({ 32457 exception: err, 32458 properties: { 32459 location: "useRecaptcha-composable", 32460 action: "verification-error", 32461 token: token ? "provided" : "missing", 32462 errorMessage: err.message 32463 } 32464 }); 32465 } 32466 } catch (e) { 32467 } 32468 return { 32469 success: false, 32470 error: true, 32471 errorMessage: err.message || "Verification failed" 32472 }; 32473 } 32474 }; 32475 const handleRecaptcha = async (action = "submit") => { 32476 const executeResult = await executeRecaptcha(action); 32477 if (!executeResult.success) { 32478 return { 32479 success: false, 32480 error: true, 32481 errorMessage: executeResult.error 32482 }; 32483 } 32484 return await verifyRecaptcha(executeResult.token); 32485 }; 32486 onMounted(() => { 32487 { 32488 setTimeout(() => { 32489 initializeRecaptcha(); 32490 }, 100); 32491 } 32492 }); 32493 return { 32494 // State 32495 isLoaded: readonly(isLoaded), 32496 isLoading: readonly(isLoading), 32497 isReady: readonly(isReady), 32498 error: readonly(error), 32499 // Methods 32500 initializeRecaptcha, 32501 executeRecaptcha, 32502 verifyRecaptcha, 32503 handleRecaptcha 32504 }; 32505}; 32506const _sfc_main$4k = /* @__PURE__ */ defineComponent({ 32507 directives: { 32508 maska: k2 32509 }, 32510 components: { 32511 Form, 32512 Field 32513 }, 32514 props: { 32515 settings: { 32516 type: Object, 32517 required: true 32518 }, 32519 dataSite: { 32520 type: Object, 32521 default: () => { 32522 } 32523 }, 32524 isEditable: { 32525 type: Boolean, 32526 default: false 32527 } 32528 }, 32529 setup() { 32530 provide(SCROLL_ANIMATION_EXCLUDED_KEY, true); 32531 const store = useStore(); 32532 const { state } = store; 32533 const config = /* @__PURE__ */ useRuntimeConfig(); 32534 const baseURL2 = config.public.apiBaseURL || config.public.apiBaseUrl || "https://localhost:7283/api"; 32535 veeValidateRules(); 32536 const { 32537 isReady: recaptchaReady, 32538 handleRecaptcha, 32539 executeRecaptcha, 32540 error: recaptchaError 32541 } = useRecaptcha(); 32542 const leadFormOptimization = computed(() => { 32543 var _a, _b; 32544 return ((_b = (_a = state == null ? void 0 : state.settings) == null ? void 0 : _a.featureFlags) == null ? void 0 : _b.leadFormOptimization) || false; 32545 }); 32546 const recaptchaHardening = computed( 32547 () => { 32548 var _a, _b; 32549 return ((_b = (_a = state == null ? void 0 : state.settings) == null ? void 0 : _a.featureFlags) == null ? void 0 : _b.RecaptchaHardening) || false; 32550 } 32551 ); 32552 return { 32553 baseURL: baseURL2, 32554 recaptchaReady, 32555 handleRecaptcha, 32556 executeRecaptcha, 32557 recaptchaError, 32558 leadFormOptimization, 32559 recaptchaHardening 32560 }; 32561 }, 32562 data() { 32563 return { 32564 formValidationId: null, 32565 form: { 32566 // fields that are always included 32567 firstName: null, 32568 lastName: null, 32569 address: null, 32570 city: null, 32571 state: null, 32572 zip: null, 32573 emailAddress: null, 32574 phoneNumber: null, 32575 birthDate: null, 32576 // fields that are toggled on 32577 openText1: null, 32578 openText2: null, 32579 openText3: null, 32580 openText4: null, 32581 openText5: null, 32582 languagePref: null, 32583 bestTimeToCall: null, 32584 contactMethod: null, 32585 linkedinUrl: null, 32586 leadConcerns: [], 32587 // tells us where the lead came from i.e. google, bing, direct 32588 leadSource: "FUSION", 32589 // always fusion 32590 sourceCode: null, 32591 // values here: https://fusion92.sharepoint.com/:x:/s/NewYorkLife/EXkXq09zb4BFl-3OFknfg88BOrs99Jvk3YupzWfT5KWX2w 32592 leadProcessType: null, 32593 // agentPersWeb, goWeb, goWebRec 32594 campaignProgramCode: null, 32595 // C4, A2 32596 campaignCode: null 32597 // PAW667, PGW668, UL0235 32598 }, 32599 status: null, 32600 // null, "success", "fail" 32601 stateOptions: [ 32602 { value: "AL", text: "AL" }, 32603 { value: "AK", text: "AK" }, 32604 { value: "AZ", text: "AZ" }, 32605 { value: "AR", text: "AR" }, 32606 { value: "CA", text: "CA" }, 32607 { value: "CO", text: "CO" }, 32608 { value: "CT", text: "CT" }, 32609 { value: "DC", text: "DC" }, 32610 { value: "DE", text: "DE" }, 32611 { value: "FL", text: "FL" }, 32612 { value: "GA", text: "GA" }, 32613 { value: "HI", text: "HI" }, 32614 { value: "ID", text: "ID" }, 32615 { value: "IL", text: "IL" }, 32616 { value: "IN", text: "IN" }, 32617 { value: "IA", text: "IA" }, 32618 { value: "KS", text: "KS" }, 32619 { value: "KY", text: "KY" }, 32620 { value: "LA", text: "LA" }, 32621 { value: "ME", text: "ME" }, 32622 { value: "MD", text: "MD" }, 32623 { value: "MA", text: "MA" }, 32624 { value: "MI", text: "MI" }, 32625 { value: "MN", text: "MN" }, 32626 { value: "MS", text: "MS" }, 32627 { value: "MO", text: "MO" }, 32628 { value: "MT", text: "MT" }, 32629 { value: "NE", text: "NE" }, 32630 { value: "NV", text: "NV" }, 32631 { value: "NH", text: "NH" }, 32632 { value: "NJ", text: "NJ" }, 32633 { value: "NM", text: "NM" }, 32634 { value: "NY", text: "NY" }, 32635 { value: "NC", text: "NC" }, 32636 { value: "ND", text: "ND" }, 32637 { value: "OH", text: "OH" }, 32638 { value: "OK", text: "OK" }, 32639 { value: "OR", text: "OR" }, 32640 { value: "PA", text: "PA" }, 32641 { value: "RI", text: "RI" }, 32642 { value: "SC", text: "SC" }, 32643 { value: "SD", text: "SD" }, 32644 { value: "TN", text: "TN" },
32645 { value: "TX", text: "TX" }, 32646 { value: "UT", text: "UT" }, 32647 { value: "VT", text: "VT" }, 32648 { value: "VA", text: "VA" }, 32649 { value: "WA", text: "WA" }, 32650 { value: "WV", text: "WV" }, 32651 { value: "WI", text: "WI" }, 32652 { value: "WY", text: "WY" } 32653 ], 32654 stateSelectIsOpen: null, 32655 contactTimeOptions: [ 32656 { value: "Morning", text: "Morning" }, 32657 { value: "Afternoon", text: "Afternoon" }, 32658 { value: "Evening", text: "Evening" } 32659 ], 32660 contactMethodOptions: [ 32661 { value: "Email", text: "Email" }, 32662 { value: "Phone", text: "Phone" } 32663 ], 32664 languageOptions: [ 32665 { value: "English", text: "English" }, 32666 { value: "Cantonese", text: "Cantonese" }, 32667 { value: "Farsi", text: "Farsi" }, 32668 { value: "French", text: "French" }, 32669 { value: "Fukienese", text: "Fukienese" }, 32670 { value: "German", text: "German" }, 32671 { value: "Gujarati", text: "Gujarati" }, 32672 { value: "Hebrew", text: "Hebrew" }, 32673 { value: "Hindi", text: "Hindi" }, 32674 { value: "Japanese", text: "Japanese" }, 32675 { value: "Korean", text: "Korean" }, 32676 { value: "Lao", text: "Lao" }, 32677 { value: "Mandarin", text: "Mandarin" }, 32678 { value: "Polish", text: "Polish" }, 32679 { value: "Portuguese", text: "Portuguese" }, 32680 { value: "Punjabi", text: "Punjabi" }, 32681 { value: "Russian", text: "Russian" }, 32682 { value: "Shanghainese", text: "Shanghainese" }, 32683 { value: "Spanish", text: "Spanish" }, 32684 { value: "Tagalog", text: "Tagalog" }, 32685 { value: "Taiwanese", text: "Taiwanese" }, 32686 { value: "Urdu", text: "Urdu" }, 32687 { value: "Vietnamese", text: "Vietnamese" } 32688 ], 32689 userAge: null, 32690 selectedState: "" 32691 }; 32692 }, 32693 computed: { 32694 formType() { 32695 return this.settings.formType; 32696 }, 32697 hasInterestFields() { 32698 var _a; 32699 if (this.settings.formType !== "agentNewsletter") { 32700 return (_a = this.settings) == null ? void 0 : _a.interestsFieldset; 32701 } 32702 return false; 32703 }, 32704 interestOptions() { 32705 if (this.hasInterestFields) { 32706 if (this.settings.formType === "goConsumer" || this.settings.formType === "agentConsumer" || this.settings.formType === "agentCustom" || this.settings.formType === "goCustom") { 32707 return [ 32708 { value: "Life Insurance" }, 32709 { 32710 value: "Retirement Planning" 32711 }, 32712 { 32713 value: "Retirement and Other Savings" 32714 }, 32715 { 32716 value: "Estate, Trust & Legacy Planning" 32717 } 32718 ]; 32719 } 32720 if (this.settings.formType === "goRecruiter") { 32721 return [ 32722 { 32723 value: "Financial Professional" 32724 }, 32725 { value: "College Intern" }, 32726 { value: "Fast Track" }, 32727 { value: "Management" } 32728 ]; 32729 } 32730 } 32731 return []; 32732 }, 32733 hasAddressFields() { 32734 if (this.formType === "agentNewsletter" || this.formType === "agentCustom") { 32735 return false; 32736 } 32737 return true; 32738 }, 32739 hasPhoneFields() { 32740 if (this.formType === "agentNewsletter") { 32741 return false; 32742 } 32743 return true; 32744 }, 32745 isPhoneRequired() { 32746 if (this.formType === "goCustom") { 32747 return true; 32748 } 32749 return this.requireContactMethod || !this.form.emailAddress && this.formType === "agentCustom"; 32750 }, 32751 isEmailRequired() { 32752 return this.formType === "goCustom" || this.formType === "agentNewsletter" || this.requireContactMethod || !this.form.phoneNumber && this.formType === "agentCustom"; 32753 }, 32754 hasLanguageFields() { 32755 var _a; 32756 if (this.formType === "agentNewsletter") { 32757 return false; 32758 } 32759 return !!((_a = this.settings) == null ? void 0 : _a.languageFieldset); 32760 }, 32761 hasBestTimeFields() { 32762 var _a; 32763 if (this.formType === "agentNewsletter") { 32764 return false; 32765 } 32766 return !!((_a = this.settings) == null ? void 0 : _a.bestTimeFieldset); 32767 }, 32768 hasBestMethodFields() { 32769 var _a; 32770 if (this.formType === "agentNewsletter") { 32771 return false;
32772 } 32773 return !!((_a = this.settings) == null ? void 0 : _a.bestMethodFieldset); 32774 }, 32775 hasLinkedinFields() { 32776 var _a; 32777 if (this.formType === "agentNewsletter") { 32778 return false; 32779 } 32780 return !!((_a = this.settings) == null ? void 0 : _a.linkedinFieldset); 32781 }, 32782 hasBirthDateFields() { 32783 if (this.formType === "agentNewsletter") { 32784 return false; 32785 } 32786 return this.formType === "goConsumer" || this.formType === "agentConsumer" || this.formType === "goCustom"; 32787 }, 32788 hasOpenTextFields() { 32789 var _a, _b, _c, _d, _e; 32790 if (this.formType === "agentNewsletter") { 32791 return false; 32792 } 32793 return { 32794 1: !!((_a = this.settings) == null ? void 0 : _a.openTextFieldset1), 32795 2: !!((_b = this.settings) == null ? void 0 : _b.openTextFieldset2), 32796 3: !!((_c = this.settings) == null ? void 0 : _c.openTextFieldset3), 32797 4: !!((_d = this.settings) == null ? void 0 : _d.openTextFieldset4), 32798 5: !!((_e = this.settings) == null ? void 0 : _e.openTextFieldset5) 32799 }; 32800 }, 32801 openTextFieldLabel() { 32802 return (type) => { 32803 var _a, _b, _c, _d, _e; 32804 switch (type) { 32805 case 2: 32806 return ((_a = this.settings) == null ? void 0 : _a.openTextLabel2) || ""; 32807 case 3: 32808 return ((_b = this.settings) == null ? void 0 : _b.openTextLabel3) || ""; 32809 case 4: 32810 return ((_c = this.settings) == null ? void 0 : _c.openTextLabel4) || ""; 32811 case 5: 32812 return ((_d = this.settings) == null ? void 0 : _d.openTextLabel5) || ""; 32813 default: 32814 return ((_e = this.settings) == null ? void 0 : _e.openTextLabel1) || ""; 32815 } 32816 }; 32817 }, 32818 marketerNumber() { 32819 var _a, _b; 32820 if (this.formType === "goConsumer" || this.formType === "goRecruiter") { 32821 return null; 32822 } 32823 return ((_b = (_a = this.dataSite.user) == null ? void 0 : _a.ddcUserData) == null ? void 0 : _b.marketerNo) || null; 32824 }, 32825 orgUnitCD() { 32826 var _a, _b, _c; 32827 if (this.formType === "agentCustom" || this.formType === "agentConsumer" || this.formType === "agentNewsletter") { 32828 return null; 32829 } 32830 const orgUnitCode = (_a = this.dataSite.organization) == null ? void 0 : _a.tenantOrgId; 32831 const ddcUserUnitCode = (_c = (_b = this.dataSite.user) == null ? void 0 : _b.ddcUserData) == null ? void 0 : _c.orgUnitCode; 32832 return orgUnitCode || ddcUserUnitCode || null; 32833 }, 32834 requireContactMethod() { 32835 if (this.formType === "agentConsumer" || this.formType === "goRecruiter" || this.formType === "goConsumer") { 32836 return true; 32837 } 32838 return false; 32839 }, 32840 onSuccessMessage() { 32841 if (this.formType === "goRecruiter") { 32842 return "Thank you for your interest in joining our team at New York Life. A member of our team will c
32842ontact you soon."; 32843 } 32844 if (this.formType === "agentNewsletter") { 32845 return "Thank you for reaching out and signing up for our newsletter."; 32846 } 32847 return "Thank you for reaching out. A member of our team will contact you soon."; 32848 } 32849 }, 32850 watch: { 32851 form(val) { 32852 this.form = val.replace(/\W/g, ""); 32853 } 32854 }, 32855 created() { 32856 this.formValidationId = this.generateId(); 32857 }, 32858 methods: { 32859 statusAnnouncement() { 32860 if (this.status === "pending") { 32861 return "Submitting form, one moment..."; 32862 } 32863 if (this.status === "success") { 32864 return this.onSuccessMessage; 32865 } 32866 if (this.status === "fail") { 32867 return "There was problem submitting your form."; 32868 } 32869 return ""; 32870 }, 32871 scrollFormToTop() { 32872 var _a; 32873 if (typeof window === "undefined") { 32874 return; 32875 } 32876 (_a = this.$refs.formBlockRef) == null ? void 0 : _a.scrollIntoView({ 32877 behavior: "smooth", 32878 block: "start", 32879 inline: "start" 32880 }); 32881 }, 32882 async submit() { 32883 var _a, _b; 32884 const validResult = await this.$refs.observer.validate(); 32885 if (!validResult.valid) { 32886 if (this.leadFormOptimization) { 32887 await ((_b = (_a = this.$refs.dynamicForm) == null ? void 0 : _a.focusFirstInvalidField) == null ? void 0 : _b.call( 32888 _a, 32889 validResult.errors 32890 )); 32891 } 32892 return; 32893 } 32894 this.GTMForm(); 32895 let isFormSubmitable = false; 32896 let success = false; 32897 let token = null; 32898 if (this.recaptchaHardening) { 32899 const { success: recaptchaSuccess, token: recaptchaToken } = await this.executeRecaptcha("form"); 32900 isFormSubmitable = recaptchaSuccess && recaptchaToken; 32901 success = recaptchaSuccess; 32902 token = recaptchaToken; 32903 } else { 32904 const { success: recaptchaSuccess, error: recaptchaError } = await this.handleRecaptcha("form"); 32905 isFormSubmitable = recaptchaSuccess || recaptchaError; 32906 success = recaptchaSuccess; 32907 } 32908 if (isFormSubmitable) { 32909 await this.submitForm(token); 32910 } else if (success === false) { 32911 console.log("Form is not submitable, recaptcha not successful"); 32912 } 32913 }, 32914 async submitForm(token = null) { 32915 this.scrollFormToTop(); 32916 this.status = "pending"; 32917 try { 32918 const payload = { 32919 ...this.form, 32920 marketerNumber: this.marketerNumber, 32921 orgUnitCD: this.orgUnitCD, 32922 siteId: this.dataSite.id, 32923 acf2id: this.acf2id, 32924 formType: this.formType, 32925 referrer: document.referrer 32926 }; 32927 if (token) { 32928 payload.recaptchaToken = token; 32929 } 32930 payload.customFields = []; 32931 if (payload.zip) 32932 payload.zip = payload.zip.match(/\d+/g).join(""); 32933 if (payload.phoneNumber) 32934 payload.phoneNumber = payload.phoneNumber.match(/\d+/g).join(""); 32935 if (payload.openText1) { 32936 payload.customFields.push({ 32937 id: "1", 32938 label: this.openTextFieldLabel(1), 32939 value: payload.openText1 32940 }); 32941 } 32942 if (payload.openText2) { 32943 payload.customFields.push({ 32944 id: "2", 32945 label: this.openTextFieldLabel(2), 32946 value: payload.openText2 32947 }); 32948 } 32949 if (payload.openText3) { 32950 payload.customFields.push({ 32951 id: "3", 32952 label: this.openTextFieldLabel(3), 32953 value: payload.openText3 32954 }); 32955 } 32956 if (payload.openText4) { 32957 payload.customFields.push({ 32958 id: "4", 32959 label: this.openTextFieldLabel(4), 32960 value: payload.openText4 32961 }); 32962 } 32963 if (payload.openText5) { 32964 payload.customFields.push({ 32965 id: "5", 32966 label: this.openTextFieldLabel(5), 32967 value: payload.openText5 32968 }); 32969 } 32970 if (this.formType === "agentNewsletter") { 32971 payload.customFields = [ 32972 { 32973 id: "1", 32974 label: "call to action", 32975 value: "newsletter" 32976 } 32977 ]; 32978 } 32979 if (payload.leadConcerns) { 32980 const interestString = payload.leadConcerns.join(";"); 32981 payload.leadConcerns = interestString; 32982 } 32983 delete payload.openText1; 32984 delete payload.openText2; 32985 delete payload.openText3; 32986 delete payload.openText4; 32987 delete payload.openText5; 32988 const response = await axios.post( 32989 `${this.baseURL}
32989/leads/submit`, 32990 payload 32991 ); 32992 if (response.status === 200) { 32993 this.status = "success"; 32994 } else { 32995 this.status = "fail"; 32996 } 32997 } catch { 32998 this.status = "fail"; 32999 } 33000 }, 33001 preventAngleBracket(event) { 33002 if (/<|>/gi.test(event.key)) { 33003 event.preventDefault(); 33004 } 33005 }, 33006 GTMForm() { 33007 var _a; 33008 this.$gtm.push({ 33009 event: "nyl-form", 33010 lead_form: this.formType, 33011 lead_form_long: ((_a = this.dataSite) == null ? void 0 : _a.user.displayName) || "", 33012 lead_form_category: this.getLeadFormCategory(this.formType) 33013 }); 33014 }, 33015 getLeadFormCategory(formType) { 33016 let category = ""; 33017 switch (formType) { 33018 case "agentNewsletter": 33019 case "agentConsumer": 33020 case "agentCustom": 33021 category = "Customer"; 33022 break; 33023 default: 33024 category = formType; 33025 } 33026 return category; 33027 }, 33028 checkOpenTextFields(type) { 33029 if (this.formType !== "agentCustom" && this.formType !== "goCustom") { 33030 return false; 33031 } 33032 return this.hasOpenTextFields[type]; 33033 }, 33034 generateId(length = 4, otherIds = []) { 33035 let flag = true; 33036 while (flag) { 33037 const letters = "bcdfghjkmnpqrstvwxyz"; 33038 const characters = letters + "23456789"; 33039 let id = letters[Math.floor(Math.random() * letters.length)]; 33040 for (let i = 1; i < length; i++) { 33041 id += characters[Math.floor(Math.random() * characters.length)]; 33042 } 33043 if (otherIds.includes(id)) { 33044 continue; 33045 } 33046 flag = false; 33047 return id; 33048 } 33049 } 33050 } 33051}); 33052const _hoisted_1$4e = { 33053 ref: "formBlockRef", 33054 class: "block__body" 33055}; 33056const _hoisted_2$3R = { class: "container" }; 33057const _hoisted_3$v = ["aria-live", "role"]; 33058const _hoisted_4$n = { 33059 key: 0, 33060 class: "form--pending" 33061}; 33062const _hoisted_5$m = { 33063 key: 1, 33064 class: "form_success" 33065}; 33066const _hoisted_6$e = { 33067 key: 2, 33068 class: "form--fail" 33069}; 33070const _hoisted_7$b = { 33071 key: 3, 33072 class: "form" 33073}; 33074const _hoisted_8$b = ["onSubmit"]; 33075const _hoisted_9$9 = { class: "row" }; 33076const _hoisted_10$7 = { class: "col" }; 33077const _hoisted_11$6 = ["aria-invalid"]; 33078const _hoisted_12$6 = { 33079 key: 0, 33080 id: "error-first-name", 33081 class: "text-error", 33082 "aria-live": "assertive" 33083}; 33084const _hoisted_13$6 = { class: "col" }; 33085const _hoisted_14$6 = ["aria-invalid"]; 33086const _hoisted_15$6 = { 33087 key: 0, 33088 id: "error-last-name", 33089 class: "text-error", 33090 "aria-live": "assertive" 33091}; 33092const _hoisted_16$6 = { class: "row" }; 33093const _hoisted_17$5 = { class: "col" }; 33094const _hoisted_18$5 = ["aria-invalid"]; 33095const _hoisted_19$5 = { 33096 key: 0, 33097 id: "error-street-address", 33098 class: "text-error", 33099 "aria-live": "assertive" 33100}; 33101const _hoisted_20$3 = { class: "row" }; 33102const _hoisted_21$2 = { class: "col-6" }; 33103const _hoisted_22$1 = ["aria-invalid"]; 33104const _hoisted_23$1 = { 33105 key: 0, 33106 id: "error-city", 33107 class: "text-error", 33108 "aria-live": "assertive" 33109}; 33110const _hoisted_24$1 = { class: "col-6" }; 33111const _hoisted_25$1 = { 33112 key: 0, 33113 id: "error-state", 33114 class: "text-error", 33115 "aria-live": "assertive" 33116}; 33117const _hoisted_26$1 = { class: "col-6" }; 33118const _hoisted_27$1 = ["aria-invalid", "onBlur"]; 33119const _hoisted_28$1 = { 33120 key: 0, 33121 id: "error-zipcode", 33122 class: "text-error", 33123 "aria-live": "assertive" 33124}; 33125const _hoisted_29$1 = { 33126 key: 0, 33127 class: "col-6" 33128}; 33129const _hoisted_30$1 = ["aria-required", "aria-invalid", "onBlur"]; 33130const _hoisted_31$1 = { 33131 key: 0, 33132 id: "error-phoneNumber", 33133 class: "text-error", 33134 "aria-live": "assertive" 33135}; 33136const _hoisted_32$1 = { class: "row" }; 33137const _hoisted_33$1 = { class: "col" }; 33138const _hoisted_34$1 = ["aria-required", "aria-invalid"]; 33139const _hoisted_35$1 = { 33140 key: 0, 33141 id: "error-emailAddress", 33142 class: "text-error", 33143 "aria-live": "assertive" 33144}; 33145const _hoisted_36$1 = { 33146 key: 0, 33147 class: "col-6" 33148}; 33149const _hoisted_37 = ["aria-required", "aria-invalid", "onBlur"]; 33150const _hoisted_38 = { 33151 key: 0, 33152 id: "error-phoneNumber", 33153 class: "text-error", 33154 "aria-live": "assertive" 33155}; 33156const _hoisted_39 = { class: "row" }; 33157const _hoisted_40 = { 33158 key: 0, 33159 class: "col-6" 33160}; 33161const _hoisted_41 = { class: "birthContainer" }; 33162const _hoisted_42 = { class: "birthContainer-block" }; 33163const _hoisted_43 = ["aria-invalid", "onBlur"]; 33164const _hoisted_44 = { 33165 class: "icon-only cursor-help birthdate-icon", 33166 title: "This helps us understand your immediate needs." 33167}; 33168const _hoisted_45 = { 33169 key: 0, 33170 id: "error-birthDate", 33171 class: "text-error", 33172 "aria-live": "assertive" 33173}; 33174const _hoisted_46 = { 33175 key: 1, 33176 class: "col-6" 33177}; 33178const _hoisted_47 = { 33179 key: 2, 33180 class: "col-6" 33181}; 33182const _hoisted_48 = { 33183 key: 3, 33184 class: "col-6" 33185}; 33186const _hoisted_49 = { 33187 key: 4, 33188 class: "col-6" 33189}; 33190const _hoisted_50 = ["aria-invalid"]; 33191const _hoisted_51 = { 33192 key: 0, 33193 id: "error-linkin-url", 33194 class: "text-error", 33195 "aria-live": "assertive" 33196}; 33197const _hoisted_52 = { 33198 key: 1, 33199 class: "row row--interests" 33200}; 33201const _hoisted_53 = { class: "col" }; 33202const _hoisted_54 = ["for"]; 33203const _hoisted_55 = { class: "interests-container" }; 33204const _hoisted_56 = ["id", "aria-checked", "value"]; 33205const _hoisted_57 = { class: "interests-label" }; 33206const _hoisted_58 = { class: "col" }; 33207const _hoisted_59 = ["for"]; 33208const _hoisted_60 = ["id", "aria-invalid", "aria-errormessage", "name"]; 33209const _hoisted_61 = ["id"]; 33210const _hoisted_62 = { 33211 key: 2, 33212 class: "row" 33213}; 33214const _hoisted_63 = { class: "col submit-button" }; 33215const _hoisted_64 = { class: "form__debug" }; 33216const _hoisted_65 = { key: 0 }; 33217const _hoisted_66 = { key: 1 }; 33218function _sfc_render$3N(_ctx, _cache, $props, $setup, $data, $options) { 33219 const _component_CoreIconCircleCheck = __nuxt_component_0$c; 33220 const _component_CoreBlock = _sfc_main$4x; 33221 const _component_CoreIconError = __nuxt_component_2$4; 33222 const _component_CoreBlockDynamicForm = __nuxt_component_3$4;
33223 const _component_Field = resolveComponent("Field"); 33224 const _component_CoreBlockSelect = __nuxt_component_4$2; 33225 const _component_CoreIconInfo = __nuxt_component_5$1; 33226 const _component_Form = resolveComponent("Form"); 33227 const _component_ClientOnly = __nuxt_component_3$3; 33228 const _directive_maska = resolveDirective("maska"); 33229 return openBlock(), createElementBlock("div", _hoisted_1$4e, [ 33230 createBaseVNode("div", _hoisted_2$3R, [ 33231 createBaseVNode("div", { 33232 class: "form-status-announcer", 33233 "aria-live": _ctx.status === "fail" ? "assertive" : "polite", 33234 role: _ctx.status === "fail" ? "alert" : "status", 33235 "aria-atomic": "true" 33236 }, toDisplayString(_ctx.statusAnnouncement()), 9, _hoisted_3$v), 33237 _ctx.status === "pending" ? (openBlock(), createElementBlock("div", _hoisted_4$n, _cache[32] || (_cache[32] = [ 33238 createBaseVNode("p", null, "Submitting form, one moment...", -1), 33239 createBaseVNode("progress", null, null, -1) 33240 ]))) : _ctx.status === "success" ? (openBlock(), createElementBlock("div", _hoisted_5$m, [ 33241 createVNode(_component_CoreIconCircleCheck, { class: "form_success-check" }), 33242 createVNode(_component_CoreBlock, { 33243 "is-editable": _ctx.isEditable, 33244 settings: { 33245 type: "text", 33246 text: _ctx.onSuccessMessage, 33247 tag: "h4" 33248 } 33249 }, null, 8, ["is-editable", "settings"]) 33250 ])) : _ctx.status === "fail" ? (openBlock(), createElementBlock("div", _hoisted_6$e, [ 33251 createVNode(_component_CoreIconError, { class: "fail-icon" }), 33252 createVNode(_component_CoreBlock, { 33253 "is-editable": _ctx.isEditable, 33254 settings: { 33255 type: "text", 33256 text: "There was problem submitting your form.", 33257 tag: "h4" 33258 } 33259 }, null, 8, ["is-editable"]) 33260 ])) : (openBlock(), createElementBlock("div", _hoisted_7$b, [ 33261 createVNode(_component_ClientOnly, null, { 33262 default: withCtx(() => [ 33263 (openBlock(), createBlock(_component_Form, { 33264 key: _ctx.formValidationId, 33265 ref: "observer", 33266 onSubmit: _ctx.submit 33267 }, { 33268 default: withCtx(({ handleSubmit }) => [ 33269 createBaseVNode("form", { 33270 onSubmit: withModifiers(($event) => handleSubmit($event), ["prevent"]) 33271 }, [ 33272 _ctx.leadFormOptimization ? (openBlock(), createBlock(_component_CoreBlockDynamicForm, { 33273 key: 0, 33274 ref: "dynamicForm", 33275 form: _ctx.form, 33276 settings: _ctx.settings, 33277 "is-editable": _ctx.isEditable, 33278 onSubmit: _ctx.submit 33279 }, null, 8, ["form", "settings", "is-editable", "onSubmit"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [ 33280 createBaseVNode("div", _hoisted_9$9, [ 33281 createBaseVNode("div", _hoisted_10$7, [ 33282 createVNode(_component_Field, { 33283 modelValue: _ctx.form.firstName, 33284 "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.form.firstName = $event), 33285 modelModifiers: { trim: true }, 33286 rules: { 33287 max: 31, 33288 required: true 33289 }, 33290 class: "col", 33291 name: "First Name", 33292 vid: `first-name-form:${_ctx.formValidationId}`, 33293 tag: "div", 33294 "validate-on-input": "" 33295 }, { 33296 default: withCtx(({ field, errors }) => [ 33297 _cache[33] || (_cache[33] = createBaseVNode("label", { 33298 for: "first-name", 33299 class: "required" 33300 }, " First Name ", -1)), 33301 createBaseVNode("input", mergeProps({ id: "first-name" }, field, { 33302 "aria-required": "true", 33303 "aria-invalid": errors.length > 0, 33304 "aria-errormessage": "error-first-name", 33305 type: "text", 33306 name: "first-name", 33307 autocomplete: "off", 33308 class: { 33309 "bd-error": errors.length 33310 }, 33311 onKeydown: _cache[0] || (_cache[0] = ($event) => _ctx.preventAngleBracket($event)) 33312 }), null, 16, _hoisted_11$6), 33313 errors ? (openBlock(), createElementBlock("small", _hoisted_12$6, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 33314 ]), 33315 _: 1 33316 }, 8, ["modelValue", "vid"]) 33317 ]), 33318 createBaseVNode("div", _hoisted_13$6, [ 33319 createVNode(_component_Field, { 33320 modelValue: _ctx.form.lastName, 33321 "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.form.lastName = $event), 33322 modelModifiers: { trim: true }, 33323 rules: { 33324 max: 31, 33325 required: true 33326 }, 33327 class: "col", 33328 name: "Last Name", 33329 vid: `last-name-form:${_ctx.formValidationId}`, 33330 tag: "div", 33331 "validate-on-input": "" 33332 }, { 33333 default: withCtx(({ field, errors }) => [ 33334 _cache[34] || (_cache[34] = createBaseVNode("label", { 33335 for: "last-name", 33336 class: "required" 33337 }, " Last Name ", -1)), 33338 createBaseVNode("input", mergeProps({ id: "last-name" }, field, { 33339 "aria-required": "true", 33340 "aria-invalid": errors.length > 0, 33341 "aria-errormessage": "error-last-name", 33342 class: ["form-input", { 33343 "bd-error": errors.length 33344 }], 33345 type: "text", 33346 name: "last-name", 33347 autocomplete: "off", 33348 onKeydown: _cache[2] || (_cache[2] = ($event) => _ctx.preventAngleBracket($event)) 33349 }), null, 16, _hoisted_14$6), 33350 errors ? (openBlock(), createElementBlock("small", _hoisted_15$6, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 33351 ]), 33352 _: 1 33353 }, 8, ["modelValue", "vid"]) 33354 ]) 33355 ]), 33356 _ctx.hasAddressFields ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 33357 createBaseVNode("div", _hoisted_16$6, [ 33358 createBaseVNode("div", _hoisted_17$5, [ 33359 createVNode(_component_Field, { 33360 modelValue: _ctx.form.address, 33361 "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.form.address = $event), 33362 modelModifiers: { trim: true }, 33363 rules: { 33364 max: 31, 33365 required: true 33366 }, 33367 name: "Street Address", 33368 vid: `street-address-form:${_ctx.formValidationId}`, 33369 tag: "div", 33370 "validate-on-input": "" 33371 }, { 33372 default: withCtx(({ field, errors }) => [ 33373 _cache[35] || (_cache[35] = createBaseVNode("label", { 33374 for: "street-address", 33375 class: "required" 33376 }, " Street Address ", -1)), 33377 createBaseVNode("input", mergeProps({ id: "street-address" }, field, { 33378 "aria-required": "true", 33379 "aria-invalid": errors.length > 0, 33380 "aria-errormessage": "error-street-address", 33381 class: ["form-input", { 33382 "bd-error": errors.length 33383 }], 33384 type: "text", 33385 name: "street-address", 33386 autocomplete: "off", 33387 onKeydown: _cache[4] || (_cache[4] = ($event) => _ctx.preventAngleBracket( 33388 $event 33389 )) 33390 }), null, 16, _hoisted_18$5), 33391 errors ? (openBlock(), createElementBlock("small", _hoisted_19$5, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 33392 ]), 33393 _: 1 33394 }, 8, ["modelValue", "vid"]) 33395 ]) 33396 ]), 33397 createBaseVNode("div", _hoisted_20$3, [ 33398 createBaseVNode("div", _hoisted_21$2, [ 33399 createVNode(_component_Field, { 33400 modelValue: _ctx.form.city, 33401 "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.form.city = $event), 33402 modelModifiers: { trim: true }, 33403 rules: { 33404 max: 31, 33405 required: true 33406 }, 33407 class: "col-6", 33408 name: "City", 33409 vid: `city-form:${_ctx.formValidationId}`, 33410 tag: "div", 33411 "validate-on-input": "" 33412 }, { 33413 default: withCtx(({ field, errors }) => [ 33414 _cache[36] || (_cache[36] = createBaseVNode("label", { 33415 for: "city", 33416 class: "required" 33417 }, " City ", -1)), 33418 createBaseVNode("input", mergeProps({ id: "city" }, field, { 33419 "aria-required": "true", 33420 "aria-invalid": errors.length > 0, 33421 "aria-errormessage": "error-city", 33422 class: ["form-input", { 33423 "bd-error": errors.length 33424 }], 33425 type: "text", 33426 name: "city", 33427 autocomplete: "off", 33428 onKeydown: _cache[6] || (_cache[6] = ($event) => _ctx.preventAngleBracket( 33429 $event 33430 )) 33431 }), null, 16, _hoisted_22$1), 33432 errors ? (openBlock(), createElementBlock("small", _hoisted_23$1, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 33433 ]), 33434 _: 1 33435 }, 8, ["modelValue", "vid"]) 33436 ]), 33437 createBaseVNode("div", _hoisted_24$1, [ 33438 createVNode(_component_Field, { 33439 modelValue: _ctx.form.state, 33440 "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => _ctx.form.state = $event), 33441 modelModifiers: { trim: true }, 33442 rules: { 33443 required: true 33444 }, 33445 class: "col-6", 33446 name: "State", 33447 vid: `state-form:${_ctx.formValidationId}`, 33448 tag: "div", 33449 "validate-on-input": "" 33450 }, { 33451 default: withCtx(({ field, errors }) => [ 33452 _cache[37] || (_cache[37] = createBaseVNode("label", { 33453 for: "state", 33454 class: "required" 33455 }, " State ", -1)), 33456 createVNode(_component_CoreBlockSelect, mergeProps({ id: "state" }, field, { 33457 "model-value": _ctx.form.state, 33458 "aria-required": "true", 33459 "aria-invalid": errors.length > 0, 33460 "aria-label": "State Select", 33461 "aria-errormessage": "error-state", 33462 name: "state", 33463 class: { 33464 "bd-error": errors.length 33465 }, 33466 options: _ctx.stateOptions, 33467 "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => _ctx.form.state = $event) 33468 }), null, 16, ["model-value", "aria-invalid", "class", "options"]), 33469 errors ? (openBlock(), createElementBlock("small", _hoisted_25$1, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 33470 ]), 33471 _: 1 33472 }, 8, ["modelValue", "vid"]) 33473 ]), 33474 createBaseVNode("div", _hoisted_26$1, [ 33475 createVNode(_component_Field, { 33476 modelValue: _ctx.form.zip, 33477 "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => _ctx.form.zip = $event), 33478 modelModifiers: { trim: true }, 33479 rules: { 33480 required: true, 33481 max: 10, 33482 zip: true 33483 }, 33484 class: "col-6", 33485 name: "Zip Code", 33486 vid: `zip-code-form:${_ctx.formValidationId}`, 33487 tag: "div", 33488 "validate-on-input": "" 33489 }, { 33490 default: withCtx(({ 33491 field, 33492 errors, 33493 handleBlur 33494 }) => [ 33495 _cache[38] || (_cache[38] = createBaseVNode("label", { 33496 for: "zipcode", 33497 class: "required" 33498 }, " Zip Code ", -1)), 33499 withDirectives(createBaseVNode("input", mergeProps({ id: "zipcode" }, field, { 33500 "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => _ctx.form.zip = $event), 33501 "aria-required": "true", 33502 "aria-invalid": errors.length > 0, 33503 "aria-errormessage": "error-zipcode", 33504 class: ["form-input", { 33505 "bd-error": errors.length 33506 }], 33507 type: "text", 33508 autocomplete: "off", 33509 name: "zipcode", 33510 onKeydown: _cache[11] || (_cache[11] = ($event) => _ctx.preventAngleBracket( 33511 $event 33512 )), 33513 onBlur: handleBlur 33514
33514 }), null, 16, _hoisted_27$1), [ 33515 [vModelText, _ctx.form.zip], 33516 [_directive_maska, { 33517 mask: [ 33518 "#####", 33519 "#####-####" 33520 ] 33521 }] 33522 ]), 33523 errors ? (openBlock(), createElementBlock("small", _hoisted_28$1, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 33524 ]), 33525 _: 1 33526 }, 8, ["modelValue", "vid"]) 33527 ]), 33528 _ctx.hasPhoneFields ? (openBlock(), createElementBlock("div", _hoisted_29$1, [ 33529 createVNode(_component_Field, { 33530 modelValue: _ctx.form.phoneNumber, 33531 "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => _ctx.form.phoneNumber = $event), 33532 modelModifiers: { trim: true }, 33533 rules: { 33534 max: 12, 33535 phone: true, 33536 required: _ctx.isPhoneRequired 33537 }, 33538 name: "Phone Number", 33539 vid: `phone-number-form:${_ctx.formValidationId}`, 33540 class: "col-6", 33541 tag: "div", 33542 "validate-on-input": "" 33543 }, { 33544 default: withCtx(({ 33545 field, 33546 errors, 33547 handleBlur 33548 }) => [ 33549 createBaseVNode("label", { 33550 for: "phoneNumber", 33551 class: normalizeClass({ 33552 required: _ctx.isPhoneRequired 33553 }) 33554 }, " Phone Number ", 2), 33555 withDirectives(createBaseVNode("input", mergeProps({ id: "phoneNumber" }, field, { 33556 "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => _ctx.form.phoneNumber = $event), 33557 "aria-required": _ctx.isPhoneRequired, 33558 "aria-invalid": errors.length > 0, 33559 "aria-errormessage": "error-phoneNumber", 33560 "data-maska": "###-###-####", 33561 class: ["form-input", { 33562 "bd-error": errors.length 33563 }], 33564 type: "tel", 33565 autocomplete: "off", 33566 name: "phoneNumber", 33567 onKeydown: _cache[14] || (_cache[14] = ($event) => _ctx.preventAngleBracket( 33568 $event 33569 )), 33570 onBlur: handleBlur 33571 }), null, 16, _hoisted_30$1), [ 33572 [ 33573 vModelText, 33574 _ctx.form.phoneNumber 33575 ], 33576 [_directive_maska] 33577 ]), 33578 errors ? (openBlock(), createElementBlock("small", _hoisted_31$1, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 33579 ]), 33580 _: 1 33581 }, 8, ["modelValue", "rules", "vid"]) 33582 ])) : createCommentVNode("", true) 33583 ]) 33584 ], 64)) : createCommentVNode("", true), 33585 createBaseVNode("div", _hoisted_32$1, [ 33586 createBaseVNode("div", _hoisted_33$1, [ 33587 createVNode(_component_Field, { 33588 modelValue: _ctx.form.emailAddress, 33589 "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => _ctx.form.emailAddress = $event), 33590 modelModifiers: { trim: true }, 33591 rules: { 33592 email: true, 33593 required: _ctx.isEmailRequired, 33594 max: 40 33595 }, 33596 class: "col", 33597 name: "Email", 33598 vid: `email-form:${_ctx.formValidationId}`, 33599 tag: "div", 33600 "validate-on-input": "" 33601 }, { 33602 default: withCtx(({ field, errors }) => [ 33603 createBaseVNode("label", { 33604 for: "emailAddress", 33605 class: normalizeClass({ 33606 required: _ctx.isEmailRequired 33607 }) 33608 }, " Email ", 2), 33609 withDirectives(createBaseVNode("input", mergeProps({ id: "emailAddress" }, field, { 33610 "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => _ctx.form.emailAddress = $event), 33611 "aria-required": _ctx.isEmailRequired, 33612 "aria-invalid": errors.length > 0, 33613 "aria-errormessage": "error-emailAddress", 33614 class: ["form-input", { 33615 "bd-error": errors.length 33616 }], 33617 type: "email", 33618 name: "emailAddress", 33619 autocomplete: "off", 33620 onKeydown: _cache[17] || (_cache[17] = ($event) => _ctx.preventAngleBracket($event)) 33621 }), null, 16, _hoisted_34$1), [ 33622 [ 33623 vModelText, 33624 _ctx.form.emailAddress, 33625 void 0, 33626 { trim: true } 33627 ] 33628 ]), 33629 errors ? (openBlock(), createElementBlock("small", _hoisted_35$1, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 33630 ]), 33631 _: 1 33632 }, 8, ["modelValue", "rules", "vid"]) 33633 ]), 33634 _ctx.hasPhoneFields && !_ctx.hasAddressFields ? (openBlock(), createElementBlock("div", _hoisted_36$1, [ 33635 createVNode(_component_Field, { 33636 modelValue: _ctx.form.phoneNumber, 33637 "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => _ctx.form.phoneNumber = $event), 33638 modelModifiers: { trim: true }, 33639 rules: { 33640 max: 12, 33641 phone: true, 33642 required: _ctx.isPhoneRequired 33643 }, 33644 name: "Phone Number", 33645 vid: `phone-number-form:${_ctx.formValidationId}`, 33646 class: "col-6", 33647 tag: "div", 33648 "validate-on-input": "" 33649 }, { 33650 default: withCtx(({ 33651 field, 33652 errors, 33653 handleBlur 33654 }) => [ 33655 createBaseVNode("label", { 33656 for: "phoneNumber", 33657 class: normalizeClass({ 33658 required: _ctx.isPhoneRequired 33659 }) 33660 }, " Phone Number ", 2), 33661 withDirectives(createBaseVNode("input", mergeProps({ id: "phoneNumber" }, field, { 33662 "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => _ctx.form.phoneNumber = $event), 33663 "aria-required": _ctx.isPhoneRequired, 33664 "aria-invalid": errors.length > 0, 33665 "aria-errormessage": "error-phoneNumber", 33666 "data-maska": "###-###-####", 33667 class: ["form-input", { 33668 "bd-error": errors.length 33669 }], 33670 type: "tel", 33671 autocomplete: "off", 33672 name: "phoneNumber", 33673 onKeydown: _cache[20] || (_cache[20] = ($event) => _ctx.preventAngleBracket( 33674 $event 33675 )), 33676 onBlur: handleBlur 33677 }), null, 16, _hoisted_37), [ 33678 [vModelText, _ctx.form.phoneNumber], 33679 [_directive_maska] 33680 ]), 33681 errors ? (openBlock(), createElementBlock("small", _hoisted_38, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 33682 ]), 33683 _: 1 33684 }, 8, ["modelValue", "rules", "vid"]) 33685 ])) : createCommentVNode("", true) 33686 ]), 33687 createBaseVNode("div", _hoisted_39, [ 33688 _ctx.hasBirthDateFields ? (openBlock(), createElementBlock("div", _hoisted_40, [ 33689 createVNode(_component_Field, { 33690 modelValue: _ctx.form.birthDate, 33691 "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => _ctx.form.birthDate = $event), 33692 modelModifiers: { trim: true }, 33693 rules: { 33694 required: true, 33695 isValidDate: true, 33696 isAdult: true 33697 }, 33698 class: "col-6", 33699 name: "Date of Birth", 33700 vid: `date-of-birth-form:${_ctx.formValidationId}`, 33701 tag: "div", 33702 "validate-on-input": "" 33703 }, { 33704 default: withCtx(({ errors, handleBlur }) => [ 33705 createBaseVNode("div", _hoisted_41, [ 33706 createBaseVNode("div", _hoisted_42, [ 33707 _cache[39] || (_cache[39] = createBaseVNode("label", { 33708 for: "birthDate", 33709 class: "required" 33710 }, " Date of Birth ", -1)), 33711 withDirectives(createBaseVNode("input", { 33712 id: "birthDate", 33713 "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => _ctx.form.birthDate = $event), 33714 "aria-required": "true", 33715 "aria-invalid": errors.length > 0, 33716 "aria-errormessage": "error-birthDate", 33717 "data-maska": "##/##/####", 33718 placeholder: "MM/DD/YYYY", 33719 class: normalizeClass(["form-input", { 33720 "bd-error": errors.length 33721 }]), 33722 type: "tel", 33723 autocomplete: "off", 33724 name: "birthDate", 33725 onKeydown: _cache[23] || (_cache[23] = ($event) => _ctx.preventAngleBracket( 33726 $event 33727 )), 33728 onBlur: handleBlur 33729 }, null, 42, _hoisted_43), [ 33730 [ 33731 vModelText, 33732 _ctx.form.birthDate, 33733 void 0, 33734 { trim: true } 33735 ], 33736 [_directive_maska] 33737 ]) 33738 ]), 33739 createBaseVNode("div", _hoisted_44, [ 33740 createVNode(_component_CoreIconInfo) 33741 ]) 33742 ]), 33743 errors ? (openBlock(), createElementBlock("small", _hoisted_45, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 33744 ]), 33745 _: 1 33746 }, 8, ["modelValue", "vid"]) 33747 ])) : createCommentVNode("", true), 33748 _ctx.hasLanguageFields ? (openBlock(), createElementBlock("div", _hoisted_46, [ 33749 _cache[40] || (_cache[40] = createBaseVNode("label", { for: "language" }, " Language Preference: ", -1)), 33750 createVNode(_component_CoreBlockSelect, { 33751 id: "language", 33752 "model-value": _ctx.form.languagePref, 33753 options: _ctx.languageOptions, 33754 "onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => _ctx.form.languagePref = $event) 33755 }, null, 8, ["model-value", "options"]) 33756 ])) : createCommentVNode("", true), 33757 _ctx.hasBestMethodFields ? (openBlock(), createElementBlock("div", _hoisted_47, [ 33758 _cache[41] || (_cache[41] = createBaseVNode("label", { for: "best-contact-method" }, " Best Method to Contact: ", -1)), 33759 createVNode(_component_CoreBlockSelect, { 33760 id: "best-contact-method", 33761 "model-value": _ctx.form.contactMethod, 33762 options: _ctx.contactMethodOptions, 33763 "onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => _ctx.form.contactMethod = $event) 33764 }, null, 8, ["model-value", "options"]) 33765 ])) : createCommentVNode("", true), 33766 _ctx.hasBestTimeFields ? (openBlock(), createElementBlock("div", _hoisted_48, [ 33767 _cache[42] || (_cache[42] = createBaseVNode("label", { for: "best-time-to-call" }, " Best Time of Day to Call: ", -1)), 33768 createVNode(_component_CoreBlockSelect, { 33769 id: "best-time-to-call", 33770 "model-value": _ctx.form.bestTimeToCall, 33771 options: _ctx.contactTimeOptions, 33772 "onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => _ctx.form.bestTimeToCall = $event) 33773 }, null, 8, ["model-value", "options"]) 33774 ])) : createCommentVNode("", true), 33775 _ctx.hasLinkedinFields ? (openBlock(), createElementBlock("div", _hoisted_49, [ 33776 createVNode(_component_Field, { 33777 modelValue: _ctx.form.linkedinUrl, 33778 "onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => _ctx.form.linkedinUrl = $event), 33779 modelModifiers: { trim: true }, 33780 rules: { 33781 max: 50, 33782 linkedin: true 33783 }, 33784 class: "col-6", 33785 name: "LinkedIn", 33786 vid: `linkedin-form:${_ctx.formValidationId}`, 33787 tag: "div", 33788 "validate-on-input": "" 33789 }, { 33790 default: withCtx(({ errors }) => [ 33791 _cache[43] || (_cache[43] = createBaseVNode("label", {
33791for: "linkin-url" }, "LinkedIn:", -1)), 33792 withDirectives(createBaseVNode("input", { 33793 id: "linkin-url", 33794 "onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => _ctx.form.linkedinUrl = $event), 33795 "aria-invalid": errors.length > 0, 33796 "aria-errormessage": "error-linkin-url", 33797 class: normalizeClass(["form-input", { 33798 "bd-error": errors.length 33799 }]), 33800 name: "linkedin-url", 33801 type: "text", 33802 autocomplete: "off" 33803 }, null, 10, _hoisted_50), [ 33804 [ 33805 vModelText, 33806 _ctx.form.linkedinUrl, 33807 void 0, 33808 { trim: true } 33809 ] 33810 ]), 33811 errors ? (openBlock(), createElementBlock("small", _hoisted_51, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 33812 ]), 33813 _: 1 33814 }, 8, ["modelValue", "vid"]) 33815 ])) : createCommentVNode("", true) 33816 ]), 33817 _cache[46] || (_cache[46] = createBaseVNode("div", { class: "row" }, null, -1)), 33818 _ctx.hasInterestFields ? (openBlock(), createElementBlock("div", _hoisted_52, [ 33819 createBaseVNode("div", _hoisted_53, [ 33820 _cache[45] || (_cache[45] = createBaseVNode("p", null, "Interests:", -1)), 33821 (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.interestOptions, ({ value }) => { 33822 return openBlock(), createElementBlock("div", { key: value }, [ 33823 (openBlock(), createElementBlock("label", { 33824 key: value, 33825 for: value, 33826 class: "interests-field" 33827 }, [ 33828 createBaseVNode("span", _hoisted_55, [ 33829 withDirectives(createBaseVNode("input", { 33830 id: value, 33831 "onUpdate:modelValue": _cache[30] || (_cache[30] = ($event) => _ctx.form.leadConcerns = $event), 33832 "aria-checked": _ctx.form.leadConcerns.includes( 33833 value 33834 ), 33835 value, 33836 type: "checkbox", 33837 autocomplete: "off" 33838 }, null, 8, _hoisted_56), [ 33839 [ 33840 vModelCheckbox, 33841 _ctx.form.leadConcerns 33842 ] 33843 ]), 33844 _cache[44] || (_cache[44] = createBaseVNode("span", { class: "interests-checkmark" }, null, -1)) 33845 ]), 33846 createBaseVNode("span", _hoisted_57, toDisplayString(value), 1) 33847 ], 8, _hoisted_54)) 33848 ]); 33849 }), 128)) 33850 ]) 33851 ])) : createCommentVNode("", true), 33852 (openBlock(), createElementBlock(Fragment, null, renderList([1, 2, 3, 4, 5], (fieldNumber) => { 33853 return openBlock(), createElementBlock(Fragment, null, [ 33854 _ctx.checkOpenTextFields(fieldNumber) ? (openBlock(), createElementBlock("div", { 33855 key: `custom-field-${fieldNumber}`, 33856 class: "row row--open-text" 33857 }, [ 33858 (openBlock(), createBlock(_component_Field, { 33859 key: `openText${fieldNumber}`, 33860 modelValue: _ctx.form[`openText${fieldNumber}`], 33861 "onUpdate:modelValue": ($event) => _ctx.form[`openText${fieldNumber}`] = $event, 33862 modelModifiers: { trim: true }, 33863 name: `Custom Field${fieldNumber}`, 33864 vid: `custom-field-${fieldNumber}-form:${_ctx.formValidationId}`, 33865 class: "row row--open-text", 33866 rules: "max:255", 33867 tag: "div", 33868 "validate-on-input": "" 33869 }, { 33870 default: withCtx(({ field, errors }) => [ 33871 createBaseVNode("div", _hoisted_58, [ 33872 createBaseVNode("label", { 33873 for: `openText${fieldNumber}` 33874 }, toDisplayString(_ctx.openTextFieldLabel( 33875 fieldNumber 33876 ) || "No Label"), 9, _hoisted_59), 33877 createBaseVNode("input", mergeProps({ 33878 id: `openText${fieldNumber}`, 33879 ref_for: true 33880 }, field, { 33881 "aria-invalid": errors.length > 0, 33882 "aria-errormessage": `error-openText${fieldNumber}`, 33883 class: { 33884 "bd-error": errors.length 33885 }, 33886 name: `openText${fieldNumber}`, 33887 autocomplete: "off", 33888 type: "text", 33889 onKeydown: _cache[31] || (_cache[31] = ($event) => _ctx.preventAngleBracket( 33890 $event 33891 )) 33892 }), null, 16, _hoisted_60), 33893 errors ? (openBlock(), createElementBlock("small", { 33894 key: 0, 33895 id: `error-openText${fieldNumber}`, 33896 "aria-live": "assertive", 33897 class: "text-error" 33898 }, toDisplayString(errors[0]), 9, _hoisted_61)) : createCommentVNode("", true) 33899 ]) 33900 ]), 33901 _: 2 33902 }, 1032, ["modelValue", "onUpdate:modelValue", "name", "vid"])) 33903 ])) : createCommentVNode("", true) 33904 ], 64); 33905 }), 64)) 33906 ], 64)), 33907 !_ctx.leadFormOptimization ? (openBlock(), createElementBlock("div", _hoisted_62, [ 33908 createBaseVNode("div", _hoisted_63, [ 33909 createVNode(_component_CoreBlock, { 33910 "data-testid": `form-submit-button`, 33911 "is-editable": _ctx.isEditable, 33912 type: "submit", 33913 value: "submit", 33914 class: "button", 33915 settings: { 33916 type: "button", 33917 label: _ctx.formType === "agentNewsletter" ? "Sign up for my Newsletter" : "Submit", 33918 event: _ctx.submit, 33919 icon: null, 33920 variants: { 33921 style: "primary" 33922 } 33923 } 33924 }, null, 8, ["is-editable", "settings"]), 33925 _cache[47] || (_cache[47] = createBaseVNode("div", { class: "mt-2" }, "* Required", -1)) 33926 ]) 33927 ])) : createCommentVNode("", true), 33928 createBaseVNode("div", _hoisted_64, [ 33929 _ctx.marketerNumber ? (openBlock(), createElementBlock("p", _hoisted_65, " MarketerID: " + toDisplayString(_ctx.marketerNumber), 1)) : createCommentVNode("", true), 33930 _ctx.orgUnitCD ? (openBlock(), createElementBlock("p", _hoisted_66, "GO Code: " + toDisplayString(_ctx.orgUnitCD), 1)) : createCommentVNode("", true) 33931 ]) 33932 ], 40, _hoisted_8$b) 33933 ]), 33934 _: 1 33935 }, 8, ["onSubmit"])) 33936 ]), 33937 _: 1 33938 }) 33939 ])) 33940 ]) 33941 ], 512); 33942} 33943const CoreBlockForm$2 = /* @__PURE__ */ _export_sfc(_sfc_main$4k, [["render", _sfc_render$3N]]); 33944const CoreBlockForm$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 33945 __proto__: null, 33946 default: CoreBlockForm$2 33947}, Symbol.toStringTag, { value: "Module" })); 33948const _sfc_main$4j = { 33949 name: "CoreBlockFooterBanner", 33950 props: { 33951 site: { 33952 type: Object, 33953 required: true 33954 }, 33955 isEditable: { 33956 type: Boolean, 33957 default: false 33958 } 33959 }, 33960 computed: { 33961 banner() { 33962 var _a; 33963 return ((_a = this.site.footer) == null ? void 0 : _a.banner) || {}; 33964 }, 33965 bodyCopy() { 33966 return this.banner.bodyCopy; 33967 }, 33968 buttonText() { 33969 return this.banner.buttonText; 33970 }, 33971 buttonLink() { 33972 return this.banner.buttonLink; 33973 }, 33974 pencilBannerSettings() { 33975 var _a, _b; 33976 return { 33977 id: "f36wnm", 33978 type: "pencil-banner", 33979 variants: { 33980 alignment: "center", 33981 hidden: false, 33982 "text-align": "align-center" 33983 }, 33984 bodyCopy: this.bodyCopy, 33985 buttonText: this.buttonText, 33986 buttonLink: this.buttonLink, 33987 newTab: ((_a = this.banner) == null ? void 0 : _a.newTab) || null, 33988 // Not convinced this does anything 33989 newWindow: false, 33990 closeButton: ((_b = this.banner) == null ? void 0 : _b.closeButton) || null 33991 }; 33992 } 33993 } 33994}; 33995function _sfc_render$3M(_ctx, _cache, $props, $setup, $data, $options) { 33996 const _component_CoreBlock = _sfc_main$4x; 33997 return openBlock(), createBlock(_component_CoreBlock, { 33998 "is-editable": $props.isEditable, 33999 settings: $options.pencilBannerSettings, 34000 class: normalizeClass("footer-banner") 34001 }, null, 8, ["is-editable", "settings"]); 34002} 34003const __nuxt_component_1$6 = /* @__PURE__ */ _export_sfc(_sfc_main$4j, [["render", _sfc_render$3M]]); 34004const CoreBlockFooterBanner = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 34005 __proto__: null, 34006 default: __nuxt_component_1$6 34007}, Symbol.toStringTag, { value: "Module" })); 34008const _sfc_main$4i = { 34009 props: { 34010 footer: { 34011 type: Object, 34012 required: true 34013 }, 34014 clonedSite: { 34015 type: Object, 34016 required: true 34017 }, 34018 isFooterMobile: { 34019 type: Boolean, 34020 required: true 34021 },
34022 align: { 34023 type: String, 34024 default: "left", 34025 validator: (value) => ["left", "center", "right"].includes(value) 34026 } 34027 }, 34028 setup(props) { 34029 const showSocialTitle = computed(() => { 34030 return Object.prototype.hasOwnProperty.call( 34031 props.footer, 34032 "social-title-show" 34033 ) ? props.footer["social-title-show"] : true; 34034 }); 34035 const facebook = computed(() => { 34036 var _a; 34037 if (!((_a = props.footer) == null ? void 0 : _a["facebook-show"])) return ""; 34038 return renderData(props.footer.facebook, props.clonedSite); 34039 }); 34040 const linkedin = computed(() => { 34041 var _a; 34042 if (!((_a = props.footer) == null ? void 0 : _a["linkedin-show"])) return ""; 34043 return renderData(props.footer.linkedin, props.clonedSite); 34044 }); 34045 const twitter = computed(() => { 34046 var _a; 34047 if (!((_a = props.footer) == null ? void 0 : _a["twitter-show"])) return ""; 34048 return renderData(props.footer.twitter, props.clonedSite); 34049 }); 34050 const hasSocialLink = computed(() => { 34051 return facebook.value || linkedin.value || twitter.value; 34052 }); 34053 return { 34054 showSocialTitle, 34055 facebook, 34056 linkedin, 34057 twitter, 34058 hasSocialLink 34059 }; 34060 } 34061}; 34062const _hoisted_1$4d = { 34063 key: 0, 34064 "data-testid": "social-links", 34065 class: "footer__social-links" 34066}; 34067function _sfc_render$3L(_ctx, _cache, $props, $setup, $data, $options) { 34068 const _component_CoreBlock = _sfc_main$4x; 34069 return $setup.hasSocialLink ? (openBlock(), createElementBlock("div", _hoisted_1$4d, [ 34070 $setup.showSocialTitle ? (openBlock(), createBlock(_component_CoreBlock, { 34071 key: 0, 34072 "data-testid": "social-title", 34073 settings: { 34074 type: "text", 34075 text: "Connect on Social", 34076 tag: "p", 34077 variants: { 34078 align: $props.align === "center" ? "align-center" : "base" 34079 } 34080 } 34081 }, null, 8, ["settings"])) : createCommentVNode("", true), 34082 createVNode(_component_CoreBlock, { 34083 settings: { 34084 type: "social-links", 34085 facebook: $setup.facebook, 34086 linkedin: $setup.linkedin, 34087 twitter: $setup.twitter, 34088 variants: { 34089 style: "slim", 34090 align: $props.isFooterMobile ? "align-center" : `align-${$props.align}` 34091 } 34092 } 34093 }, null, 8, ["settings"]) 34094 ])) : createCommentVNode("", true); 34095} 34096const __nuxt_component_3$2 = /* @__PURE__ */ _export_sfc(_sfc_main$4i, [["render", _sfc_render$3L]]); 34097const CoreBlockFooterSocialLinks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 34098 __proto__: null, 34099 default: __nuxt_component_3$2 34100}, Symbol.toStringTag, { value: "Module" })); 34101const _sfc_main$4h = { 34102 name: "CoreBlockFooterLogo", 34103 components: { 34104 NuxtLink: __nuxt_component_2$5 34105 }, 34106 props: { 34107 site: { 34108 type: Object, 34109 required: true 34110 }, 34111 isFooterMobile: { 34112 type: Boolean, 34113 default: false 34114 } 34115 }, 34116 setup(props) { 34117 const footer = computed(() => props.site.footer ?? {}); 34118 const isNYL = computed(() => { 34119 var _a; 34120 return ((_a = props.site) == null ? void 0 : _a.brandId) === 3; 34121 }); 34122 const isGO = computed(() => { 34123 var _a; 34124 return ((_a = props.site.tags) == null ? void 0 : _a.includes(1305)) ?? false; 34125 }); 34126 const defaultLogo = ref({ 34127 src: "/img/logos/nyl-logo-blue.svg", 34128 alt: "New York Life Insurance" 34129 }); 34130 const originalLogo = computed(() => { 34131 const logoSrc = isObject$1(footer.value.logo) ? footer.value.logo.src : footer.value.logo; 34132 const rendered = renderData(logoSrc, props.site); 34133 if (logoFallbackEnabled.value) 34134 return rendered || fallbackLogo.value || staticLogo.value; 34135 if (rendered) return rendered; 34136 if (isNYL.value) return defaultLogo.value.src; 34137 if (isCoreLite.value) return fallbackLogo.value || staticLogo.value; 34138 return "/img/core-logo.svg"; 34139 }); 34140 const store = useStore(); 34141 const logoFallbackEnabled = computed(() => { 34142 var _a; 34143 return (_a = store.state.settings.featureFlags) == null ? void 0 : _a.LogoFallback; 34144 }); 34145 const isCoreLite = computed( 34146 () => { 34147 var _a, _b, _c; 34148 return ((_c = (_b = (_a = store.state) == null ? void 0 : _a.settings) == null ? void 0 : _b.brandFeatureFlags) == null ? void 0 : _c.includes( 34149 BRAND_FEATURE_FLAGS.CoreLite 34150 )) ?? false; 34151 } 34152 ); 34153 const fallbackLogo = computed( 34154 () => generateFallbackLogoURL(props.site.brandId) 34155 ); 34156 const staticLogo = computed( 34157 () => isNYL.value ? defaultLogo.value.src : "/img/core-logo.svg" 34158 ); 34159 const logo = ref(null); 34160 onMounted(() => { 34161 logo.value = originalLogo.value; 34162 }); 34163 watch(originalLogo, (newLogo) => { 34164 logo.value = newLogo; 34165 }); 34166 const logoFailedToLoad = () => { 34167 if (!logoFallbackEnabled.value && !isCoreLite.value) return; 34168 if (logo.value === staticLogo.value) return; 34169 logo.value = fallbackLogo.value && logo.value !== fallbackLogo.value ? fallbackLogo.value : staticLogo.value; 34170 }; 34171 const teamMembersName = computed(() => { 34172 var _a, _b, _c; 34173 if ((_a = footer.value) == null ? void 0 : _a["team-member"]) { 34174 const teamMember = (_c = (_b = props.site) == null ? void 0 : _b.teamMembers) == null ? void 0 : _c.find( 34175 (t) => { 34176 var _a2; 34177 return t.id === ((_a2 = footer.value) == null ? void 0 : _a2["team-member"]); 34178 } 34179 ); 34180 if (!teamMember) { 34181 return ""; 34182 } 34183 const firstName = (teamMember == null ? void 0 : teamMember.firstName) ? (teamMember == null ? void 0 : teamMember.firstName) + " " : ""; 34184 const middleName = (teamMember == null ? void 0 : teamMember.middleName) ? (teamMember == null ? void 0 : teamMember.middleName) + " " : ""; 34185 const lastName = (teamMember == null ? void 0 : teamMember.lastName) ? (teamMember == null ? void 0 : teamMember.lastName) + " " : ""; 34186 return `${firstName}${middleName}${lastName}`; 34187 } 34188 return void 0; 34189 }); 34190 const logoShow = computed(() => { 34191 if (Object.prototype.hasOwnProperty.call(footer.value, "logoShow")) { 34192 return footer.value.logoShow; 34193 } 34194 return null; 34195 }); 34196 const logoStyle = computed(() => footer.value.logoStyle); 34197 const showText = computed(() => { 34198 if (logoShow.value === null) { 34199 return logoStyle.value !== "large" && logoStyle.value !== "
34199none"; 34200 } 34201 return !props.isFooterMobile; 34202 }); 34203 const showLogo = computed(() => { 34204 return logoShow.value !== null ? logoShow.value : logoStyle.value !== "none"; 34205 }); 34206 const nameFooter = computed(() => { 34207 var _a; 34208 const formattedName = formatName( 34209 footer.value.nameFooter, 34210 (_a = props.site.user) == null ? void 0 : _a.ddcUserData 34211 ); 34212 return hasDataNameFooter.value ? unescape$1(renderData(formattedName, props.site)) : props.site.title; 34213 }); 34214 const logoAltText = computed(() => { 34215 const logoAlt = isObject$1(footer.value.logo) ? footer.value.logo.alt : footer.value.logoAltText; 34216 if (logoFallbackEnabled.value) { 34217 return logoAlt || "Website Logo"; 34218 } else { 34219 const defaultAlt = logo.value === defaultLogo.value.src && defaultLogo.value.alt; 34220 return logoAlt || defaultAlt || nameFooter.value; 34221 } 34222 }); 34223 const logoLink = computed(() => footer.value.logoLink || "/#"); 34224 const logoInternalLink = computed(() => logoLink.value.startsWith("/")); 34225 const logoTag = computed(() => { 34226 if (logoInternalLink.value) { 34227 return "NuxtLink"; 34228 } 34229 return "a"; 34230 }); 34231 const externalLink = computed(() => logoLink.value); 34232 const goHeadquarters = computed( 34233 () => { 34234 var _a, _b; 34235 return (_b = (_a = props.site.user) == null ? void 0 : _a.ddcUserData) == null ? void 0 : _b.orgUnitDesc; 34236 } 34237 ); 34238 const hasOrganization = computed( 34239 () => props.site.organizationId != null 34240 ); 34241 const hasOrganizationManager = computed( 34242 () => props.site.organizationManagerId != null 34243 ); 34244 const organizationName = computed(() => props.site.organizationName); 34245 const overlineFooter = computed(() => { 34246 if (hasOrganization.value) { 34247 return organizationName.value + " General Office"; 34248 } 34249 if (isGO.value) { 34250 return goHeadquarters.value + " General Office"; 34251 } 34252 return unescape$1( 34253 renderData(footer.value.overlineFooter, props.site) 34254 ); 34255 }); 34256 const isManagingPartner = computed(() => { 34257 var _a, _b, _c; 34258 if (((_c = (_b = (_a = props.site.user) == null ? void 0 : _a.ddcUserData) == null ? void 0 : _b.marketerTitleTpDesc) == null ? void 0 : _c.toLowerCase()) === "managing partner") { 34259 return true; 34260 } 34261 if (hasOrganizationManager.value) { 34262 return true; 34263 } 34264 return false; 34265 }); 34266 const jobTitleFooter = computed(() => { 34267 if (isManagingPartner.value) { 34268 return "Managing Partner"; 34269 } 34270 return renderData(footer.value.jobTitleFooter, props.site); 34271 }); 34272 const showUsernameFooter = computed( 34273 () => footer.value.showUsernameFooter 34274 ); 34275 const showOverlineFooter = computed( 34276 () => footer.value.showOverlineFooter 34277 ); 34278 const showTitleFooter = computed(() => footer.value.showTitleFooter); 34279 const hasDataNameFooter = computed(() => { 34280 const dataName = renderData(footer.value.nameFooter, props.site) || ""; 34281 return !!dataName.trim(); 34282 }); 34283 const displayName = computed( 34284 () => { 34285 var _a, _b; 34286 return (_b = (_a = props.site.user) == null ? void 0 : _a.ddcUserData) == null ? void 0 : _b.displayName; 34287 } 34288 ); 34289 const showForm = computed(() => { 34290 const forms = ["left-aligned-form", "center-aligned-form"]; 34291 return isNYL.value && forms.includes(footer.value.component); 34292 }); 34293 const showImage = computed(() => { 34294 const imageTypes = [ 34295 "large-image-three-contact", 34296 "small-image-three-contact" 34297 ]; 34298 return imageTypes.includes(footer.value.component); 34299 }); 34300 const isCenterForm = computed( 34301 () => footer.value.component === "center-aligned-form" 34302 ); 34303 const isLargeImage = computed( 34304 () => footer.value.component === "large-image-three-contact" 34305 ); 34306 const isCenterLogo = computed(() => { 34307 const contactTypes = [ 34308 "center-logo-two-contact", 34309 "center-logo-stack-contact" 34310 ]; 34311 return contactTypes.includes(footer.value.component); 34312 }); 34313 const logoClass = computed(() => { 34314 if (isCenterLogo.value) { 34315 return "logo-center"; 34316 } 34317 if (showForm.value || showImage.value) { 34318 return isCenterForm.value || isLargeImage.value ? "logo-left" : "logo-right"; 34319 } 34320 return ""; 34321 }); 34322 const logoImgClass = computed( 34323 () => `logo_image logo_image--${logoStyle.value}` 34324 ); 34325 return { 34326 overlineFooter, 34327 showOverlineFooter, 34328 hasDataNameFooter, 34329 showUsernameFooter, 34330 displayName, 34331 nameFooter, 34332 jobTitleFooter, 34333 showTitleFooter, 34334 logoStyle, 34335 logoTag, 34336 logoInternalLink, 34337 logoLink, 34338 logoFallbackEnabled, 34339 fallbackLogo, 34340 originalLogo, 34341 externalLink, 34342 logoAltText, 34343 logoClass, 34344 logoImgClass, 34345 logo, 34346 logoFailedToLoad, 34347 showText, 34348 showLogo, 34349 teamMembersName 34350 }; 34351 } 34352}; 34353const _hoisted_1$4c = ["alt", "src"]; 34354const _hoisted_2$3Q = { class: "logo_text" }; 34355const _hoisted_3$u = { 34356 key: 0, 34357 class: "logo_text__subtitle" 34358}; 34359const _hoisted_4$m = { 34360 key: 1, 34361 class: "logo_text__title" 34362}; 34363const _hoisted_5$l = { 34364 key: 2, 34365 class: "logo_text__subtitle" 34366}; 34367function _sfc_render$3K(_ctx, _cache, $props, $setup, $data, $options) { 34368 return openBlock(), createElementBlock("figure", { 34369 class: normalizeClass(["logo", $setup.logoClass]) 34370 }, [ 34371 $setup.showLogo ? (openBlock(), createBlock(resolveDynamicComponent($setup.logoTag), mergeProps({ 34372 key: 0, 34373 class: "logo_link", 34374 target: $setup.logoInternalLink ? "_self" : "_blank" 34375 }, {
34376 ...$setup.logoInternalLink ? { to: $setup.logoLink } : { href: $setup.externalLink } 34377 }), { 34378 default: withCtx(() => [ 34379 createBaseVNode("img", { 34380 alt: $setup.logoAltText, 34381 class: normalizeClass($setup.logoImgClass), 34382 src: $setup.logo, 34383 onError: _cache[0] || (_cache[0] = (...args) => $setup.logoFailedToLoad && $setup.logoFailedToLoad(...args)) 34384 }, null, 42, _hoisted_1$4c) 34385 ]), 34386 _: 1 34387 }, 16, ["target"])) : createCommentVNode("", true), 34388 withDirectives(createBaseVNode("figcaption", _hoisted_2$3Q, [ 34389 $setup.overlineFooter && $setup.showOverlineFooter ? (openBlock(), createElementBlock("h6", _hoisted_3$u, toDisplayString($setup.overlineFooter), 1)) : createCommentVNode("", true), 34390 $setup.hasDataNameFooter && $setup.showUsernameFooter ? (openBlock(), createElementBlock("h4", _hoisted_4$m, toDisplayString($setup.teamMembersName || $setup.displayName || $setup.nameFooter), 1)) : createCommentVNode("", true), 34391 $setup.jobTitleFooter && $setup.showUsernameFooter && $setup.showTitleFooter ? (openBlock(), createElementBlock("h6", _hoisted_5$l, toDisplayString($setup.jobTitleFooter), 1)) : createCommentVNode("", true) 34392 ], 512), [ 34393 [vShow, $setup.showText] 34394 ]) 34395 ], 2); 34396} 34397const __nuxt_component_4$1 = /* @__PURE__ */ _export_sfc(_sfc_main$4h, [["render", _sfc_render$3K], ["__scopeId", "data-v-61eacf7f"]]); 34398const CoreBlockFooterLogo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 34399 __proto__: null, 34400 default: __nuxt_component_4$1 34401}, Symbol.toStringTag, { value: "Module" })); 34402const _sfc_main$4g = { 34403 name: "CoreBlockFooterContactAddress", 34404 props: { 34405 address: { 34406 type: Object, 34407 required: true 34408 }, 34409 dataObject: { 34410 type: Object, 34411 required: true 34412 } 34413 }, 34414 setup(props) { 34415 const streetAddress = computed(() => { 34416 return renderData( 34417 props.address.streetAddress || "", 34418 props.dataObject 34419 ); 34420 }); 34421 const streetAddress2 = computed(() => { 34422 return renderData( 34423 props.address.streetAddress2 || "", 34424 props.dataObject 34425 ); 34426 }); 34427 const city = computed(() => { 34428 return renderData(props.address.city || "", props.dataObject); 34429 }); 34430 const state = computed(() => { 34431 return renderData(props.address.state || "", props.dataObject); 34432 }); 34433 const zip = computed(() => { 34434 return renderData(props.address.zip || "", props.dataObject); 34435 }); 34436 const addressLabel = computed(() => { 34437 return renderData(props.address.label || "", props.dataObject); 34438 }); 34439 const cleanAddress = computed(() => { 34440 return `http://maps.google.com/?q=` + encodeURIComponent( 34441 `${streetAddress.value} ${city.value} ${state.value} ${zip.value}` 34442 ); 34443 }); 34444 return { 34445 addressLabel, 34446 streetAddress, 34447 streetAddress2, 34448 city, 34449 state, 34450 zip, 34451 cleanAddress 34452 }; 34453 } 34454}; 34455const _hoisted_1$4b = { class: "footer-address" }; 34456const _hoisted_2$3P = { key: 0 }; 34457const _hoisted_3$t = ["href"]; 34458const _hoisted_4$l = ["title"]; 34459const _hoisted_5$k = ["title"]; 34460const _hoisted_6$d = ["title"]; 34461function _sfc_render$3J(_ctx, _cache, $props, $setup, $data, $options) { 34462 const _component_CoreIcon = __nuxt_component_1$7; 34463 return openBlock(), createElementBlock("div", _hoisted_1$4b, [ 34464 createVNode(_component_CoreIcon, { 34465 icon: "map-pin", 34466 class: "footer-address__icon" 34467 }), 34468 createBaseVNode("div", null, [ 34469 $setup.addressLabel ? (openBlock(), createElementBlock("p", _hoisted_2$3P, toDisplayString($setup.addressLabel) + ":", 1)) : createCommentVNode("", true), 34470 createBaseVNode("a", { 34471 href: $setup.cleanAddress, 34472 target: "_blank" 34473 }, [ 34474 createBaseVNode("p", { title: $setup.streetAddress }, toDisplayString($setup.streetAddress), 9, _hoisted_4$l), 34475 createBaseVNode("p", { title: $setup.streetAddress2 }, toDisplayString($setup.streetAddress2), 9, _hoisted_5$k), 34476 createBaseVNode("p", { 34477 title: `${$setup.city}${$setup.state}${$setup.zip}` 34478 }, toDisplayString($setup.city) + ", " + toDisplayString($setup.state) + " " + toDisplayString($setup.zip), 9, _hoisted_6$d) 34479 ], 8, _hoisted_3$t) 34480 ]) 34481 ]); 34482} 34483const __nuxt_component_0$a = /* @__PURE__ */ _export_sfc(_sfc_main$4g, [["render", _sfc_render$3J], ["__scopeId", "data-v-fe43f690"]]); 34484const CoreBlockFooterContactAddress = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 34485 __proto__: null, 34486 default: __nuxt_component_0$a 34487}, Symbol.toStringTag, { value: "Module" })); 34488const _sfc_main$4f = { 34489 name: "CoreBlockFooterContactPhone", 34490 props: { 34491 phone: { 34492 type: Object, 34493 required: true 34494 }, 34495 dataObject: { 34496 type: Object, 34497 required: true 34498 } 34499 }, 34500 setup(props) { 34501 const phoneNumber = computed(() => { 34502 return formatPhoneNumber( 34503 renderData(props.phone.phone || "", props.dataObject) 34504 ); 34505 }); 34506 const phoneLabel = computed(() => { 34507 return renderData(props.phone.label || "", props.dataObject) || ""; 34508 }); 34509 const phoneExt = computed( 34510 () => renderData(props.phone.extension || "", props.dataObject) || "" 34511 ); 34512 const hasExtension = computed(() => phoneExt.value !== ""); 34513 const clickToCall = (phoneNumber2, extension = "") => { 34514 const cleanPhoneNumber = phoneNumber2 && phoneNumber2.replace(/[^0-9+]/g, ""); 34515 const cleanExtension = extension && extension.replace(/[^0-9+]/g, ""); 34516 if (cleanExtension) 34517 return `tel:${cleanPhoneNumber};${cleanExtension}`; 34518 return `tel:${cleanPhoneNumber}`; 34519 }; 34520 const iconType = computed(() => { 34521 return props.phone.type === "Mobile" ? "mobile-phone" : "phone"; 34522 }); 34523 return { 34524 phoneLabel, 34525 clickToCall, 34526 phoneNumber, 34527 phoneExt, 34528 hasExtension, 34529 iconType 34530 }; 34531 } 34532}; 34533const _hoisted_1$4a = { class: "footer-phone" }; 34534const _hoisted_2$3O = { key: 0 }; 34535const _hoisted_3$s = ["title", "href"]; 34536function _sfc_render$3I(_ctx, _cache, $props, $setup, $data, $options) { 34537 const _component_CoreIcon = __nuxt_component_1$7; 34538 return openBlock(), createElementBlock("div", _hoisted_1$4a, [ 34539 createVNode(_component_CoreIcon, { 34540 icon: $setup.iconType, 34541 class: "footer-phone__icon", 34542 settings: { ["aria-label"]: $setup.phoneNumber } 34543 }, null, 8, ["icon", "settings"]), 34544 createBaseVNode("div", null, [ 34545 $setup.phoneLabel ? (openBlock(), createElementBlock("p", _hoisted_2$3O, toDisplayString($setup.phoneLabel) + ":", 1)) : createCommentVNode("", true), 34546 createBaseVNode("a", { 34547 title: $setup.phoneNumber, 34548 href: $setup.clickToCall($setup.phoneNumber, $setup.phoneExt) 34549 }, toDisplayString($setup.phoneNumber) + " " + toDisplayString($setup.hasExtension ? `Ext. ${$setup.phoneExt}` : ""), 9, _hoisted_3$s) 34550 ]) 34551 ]); 34552} 34553const __nuxt_component_1$5 = /* @__PURE__ */ _export_sfc(_sfc_main$4f, [["render", _sfc_render$3I], ["__scopeId", "data-v-fcedcfe9"]]); 34554const CoreBlockFooterContactPhone = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 34555 __proto__: null, 34556 default: __nuxt_component_1$5 34557}, Symbol.toStringTag, { value: "Module" })); 34558const _sfc_main$4e = { 34559 name: "CoreBlockFooterContactEmail", 34560 props: { 34561 email: { 34562 type: String, 34563 required: true 34564 }, 34565 dataObject: { 34566 type: Object, 34567 required: true 34568 } 34569 }, 34570 setup(props) { 34571 const emailValue = computed( 34572 () => renderData(props.email || "", props.dataObject) 34573 ); 34574 return { emailValue }; 34575 } 34576}; 34577const _hoisted_1$49 = { class: "footer-email" }; 34578const _hoisted_2$3N = ["href", "title"]; 34579function _sfc_render$3H(_ctx, _cache, $props, $setup, $data, $options) { 34580 const _component_CoreIcon = __nuxt_component_1$7; 34581 return openBlock(), createElementBlock("div", _hoisted_1$49, [ 34582 createVNode(_component_CoreIcon, { 34583 icon: "email", 34584 class: "footer-email__icon", 34585 settings: { ["aria-label"]: $setup.emailValue } 34586 }, null, 8, ["settings"]), 34587 createBaseVNode("div", null, [ 34588 createBaseVNode("a", { 34589 href: `mailto:${$setup.emailValue}`, 34590 title: $setup.emailValue 34591 }, toDisplayString($setup.emailValue), 9, _hoisted_2$3N) 34592 ]) 34593 ]); 34594} 34595const __nuxt_component_2$3 = /* @__PURE__ */ _export_sfc(_sfc_main$4e, [["render", _sfc_render$3H], ["__scopeId", "data-v-4de2fc02"]]); 34596const CoreBlockFooterContactEmail = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 34597 __proto__: null, 34598 default: __nuxt_component_2$3 34599}, Symbol.toStringTag, { value: "Module" })); 34600const _sfc_main$4d = { 34601 name: "CoreBlockFooterContact", 34602 components: { 34603 CoreBlockFooterContactAddress: __nuxt_component_0$a, 34604 CoreBlockFooterContactPhone: __nuxt_component_1$5, 34605 CoreBlockFooterContactEmail: __nuxt_component_2$3 34606 }, 34607 props: { 34608 contact: { 34609 type: Object, 34610 required: true 34611 }, 34612 site: { 34613 type: Object, 34614 required: true 34615 }, 34616 type: { 34617 type: String, 34618 default: null, 34619 validator: (type) => ["contacts", "locations"].includes(type) 34620 }, 34621 teamMemberId: { 34622 type: String, 34623 default: null 34624 }, 34625 isStacked: { 34626 type: Boolean, 34627 default: false 34628 } 34629 }, 34630 setup(props) { 34631 const getContactFieldType = (field = {}) => { 34632 let fieldType; 34633 const types = [ 34634 "officePhone", 34635 "altPhone", 34636 "altPhone2", 34637 "altPhone3", 34638 "mobile", 34639 "fax", 34640 "email", 34641 "address", 34642 "address2", 34643 "address3" 34644 ]; 34645 for (const key of types) { 34646 if (key in field) { 34647 fieldType = key; 34648 break; 34649 } 34650 } 34651 return fieldType; 34652 }; 34653 const displayFieldType = (field) => { 34654 const fieldType = getContactFieldType(field); 34655 if (fieldType) { 34656 return { [`${fieldType}Display`]: (field == null ? void 0 : field.display) ?? true }; 34657 } 34658 }; 34659 const flattenedContact = computed(() => { 34660 const { type1, type2, type3 } = props.contact; 34661 displayFieldType(type1); 34662 return { 34663 ...type1, 34664 ...displayFieldType(type1), 34665 ...type2, 34666 ...displayFieldType(type2), 34667 ...type3, 34668 ...displayFieldType(type3) 34669 }; 34670 }); 34671 const footer = computed(() => { 34672 return props.site.footer; 34673 }); 34674 const teamMember = (teamMemberKey) => { 34675 var _a, _b; 34676 const memberId = footer.value[teamMemberKey || props.teamMemberId]; 34677 return (_b = (_a = props.site) == null ? void 0 : _a.teamMembers) == null ? void 0 : _b.find( 34678 (member) => memberId !== -1 && member.id === memberId 34679 ); 34680 }; 34681 const dataObject = computed(() => { 34682 if (teamMember(props.teamMemberId)) { 34683 return teamMember(props.teamMemberId); 34684 } 34685 return props.site; 34686 }); 34687 const displayHeading = computed( 34688 () => props.isStacked ? true : props.contact.displayTitle ?? true 34689 ); 34690 const heading = computed(() => { 34691 if (props.isStacked) { 34692 if (props.type === "contacts") { 34693 return "Contact us"; 34694 } 34695 if (props.type === "locations") { 34696 return "Our Locations"; 34697 } 34698 } 34699 return props.contact.title; 34700 }); 34701 const officePhone = computed(() => { 34702 var _a, _b, _c, _d, _e, _f, _g; 34703 if (!((_a = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _a.officePhoneDisplay)) return null; 34704 return { 34705 label: (_c = (_b = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _b.officePhone) == null ? void 0 : _c.label, 34706 phone: (_e = (_d = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _d.officePhone) == null ? void 0 : _e.phone, 34707 extension: (_g = (_f = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _f.officePhone) == null ? void 0 : _g.extension 34708 }; 34709 }); 34710 const altPhone = computed(() => { 34711 var _a, _b, _c, _d, _e, _f, _g; 34712 if (!((_a = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _a.altPhoneDisplay)) return null; 34713 return { 34714 label: (_c = (_b = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _b.altPhone) == null ? void 0 : _c.label, 34715 phone: (_e = (_d = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _d.altPhone) == null ? void 0 : _e.phone, 34716 extension: (_g = (_f = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _f.altPhone) == null ? void 0 : _g.extension 34717 }; 34718 }); 34719 const altPhone2 = computed(() => { 34720 var _a, _b, _c, _d, _e, _f, _g; 34721 if (!((_a = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _a.altPhone2Dis
34721play)) return null; 34722 return { 34723 label: (_c = (_b = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _b.altPhone2) == null ? void 0 : _c.label, 34724 phone: (_e = (_d = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _d.altPhone2) == null ? void 0 : _e.phone, 34725 extension: (_g = (_f = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _f.altPhone2) == null ? void 0 : _g.extension 34726 }; 34727 }); 34728 const altPhone3 = computed(() => { 34729 var _a, _b, _c, _d, _e, _f, _g; 34730 if (!((_a = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _a.altPhone3Display)) return null; 34731 return { 34732 label: (_c = (_b = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _b.altPhone3) == null ? void 0 : _c.label, 34733 phone: (_e = (_d = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _d.altPhone3) == null ? void 0 : _e.phone, 34734 extension: (_g = (_f = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _f.altPhone3) == null ? void 0 : _g.extension 34735 }; 34736 }); 34737 const mobile = computed(() => { 34738 if (!flattenedContact.value.mobileDisplay) return null; 34739 return { 34740 ...flattenedContact.value.mobile, 34741 type: "Mobile" 34742 }; 34743 }); 34744 const fax = computed(() => { 34745 if (!flattenedContact.value.faxDisplay) return null; 34746 return flattenedContact.value.fax; 34747 }); 34748 const email = computed(() => { 34749 var _a; 34750 if (!flattenedContact.value.emailDisplay) return null; 34751 if (teamMember(props.teamMemberId)) { 34752 return (_a = teamMember(props.teamMemberId)) == null ? void 0 : _a.emailAddress; 34753 } 34754 return flattenedContact.value.email; 34755 }); 34756 const address = computed(() => { 34757 var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m; 34758 if (!((_a = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _a.addressDisplay)) return null; 34759 return { 34760 label: (_c = (_b = flattenedContact.value) == null ? void 0 : _b.address) == null ? void 0 : _c.label, 34761 streetAddress: (_e = (_d = flattenedContact.value) == null ? void 0 : _d.address) == null ? void 0 : _e.streetAddress, 34762 streetAddress2: (_g = (_f = flattenedContact.value) == null ? void 0 : _f.address) == null ? void 0 : _g.streetAddress2, 34763 city: (_i = (_h = flattenedContact.value) == null ? void 0 : _h.address) == null ? void 0 : _i.city, 34764 state: (_k = (_j = flattenedContact.value) == null ? void 0 : _j.address) == null ? void 0 : _k.state, 34765 zip: (_m = (_l = flattenedContact.value) == null ? void 0 : _l.address) == null ? void 0 : _m.zip 34766 }; 34767 }); 34768 const address2 = computed(() => { 34769 var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m; 34770 if (!((_a = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _a.address2Display)) return null; 34771 return { 34772 label: (_c = (_b = flattenedContact.value) == null ? void 0 : _b.address2) == null ? void 0 : _c.label, 34773 streetAddress: (_e = (_d = flattenedContact.value) == null ? void 0 : _d.address2) == null ? void 0 : _e.streetAddress, 34774 streetAddress2: (_g = (_f = flattenedContact.value) == null ? void 0 : _f.address2) == null ? void 0 : _g.streetAddress2, 34775 city: (_i = (_h = flattenedContact.value) == null ? void 0 : _h.address2) == null ? void 0 : _i.city, 34776 state: (_k = (_j = flattenedContact.value) == null ? void 0 : _j.address2) == null ? void 0 : _k.state, 34777 zip: (_m = (_l = flattenedContact.value) == null ? void 0 : _l.address2) == null ? void 0 : _m.zip 34778 }; 34779 }); 34780 const address3 = computed(() => { 34781 var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m; 34782 if (!((_a = flattenedContact == null ? void 0 : flattenedContact.value) == null ? void 0 : _a.address3Display)) return null; 34783 return { 34784 label: (_c = (_b = flattenedContact.value) == null ? void 0 : _b.address3) == null ? void 0 : _c.label, 34785 streetAddress: (_e = (_d = flattenedContact.value) == null ? void 0 : _d.address3) == null ? void 0 : _e.streetAddress, 34786 streetAddress2: (_g = (_f = flattenedContact.value) == null ? void 0 : _f.address3) == null ? void 0 : _g.streetAddress2, 34787 city: (_i = (_h = flattenedContact.value) == null ? void 0 : _h.address3) == null ? void 0 : _i.city, 34788 state: (_k = (_j = flattenedContact.value) == null ? void 0 : _j.address3) == null ? void 0 : _k.state, 34789 zip: (_m = (_l = flattenedContact.value) == null ? void 0 : _l.address3) == null ? void 0 : _m.zip 34790 }; 34791 }); 34792 const contactData = computed(() => { 34793 if (!props.isStacked) return { addresses: {}, contacts: {} }; 34794 const types = ["type1", "type2", "type3"]; 34795 const locations = [ 34796 footer.value["contact-1"], 34797 footer.value["contact-2"], 34798 footer.value["contact-3"] 34799 ]; 34800 const addressObjects = {}; 34801 const contactObjects = {}; 34802 locations.forEach((location2, index2) => { 34803 var _a; 34804 const contactShow = Object.hasOwnProperty.call( 34805 footer.value, 34806 `contact-${index2 + 1}-show` 34807 ) ? footer.value[`contact-${index2 + 1}-show`] : true; 34808 if (location2 && contactShow) { 34809 const contactKey = `contact-${index2 + 1}`; 34810 const teamMemberKey = `team-member-${index2 + 1}`; 34811 const mergedProps = {};
34812 types.forEach((type) => { 34813 if (location2[type]) { 34814 Object.assign(mergedProps, location2[type]); 34815 } 34816 }); 34817 const { address: address4, ...contactProps } = mergedProps; 34818 if (address4) { 34819 if (teamMember(teamMemberKey)) { 34820 const member = teamMember(teamMemberKey); 34821 addressObjects[contactKey] = { 34822 label: address4.label, 34823 streetAddress: member.address, 34824 city: member.city, 34825 state: member.state, 34826 zip: member.postalCode 34827 }; 34828 } else { 34829 addressObjects[contactKey] = address4; 34830 } 34831 } 34832 if (Object.keys(contactProps).length > 0) { 34833 if (teamMember(teamMemberKey)) { 34834 const member = teamMember(teamMemberKey); 34835 contactObjects[contactKey] = { 34836 ...contactProps, 34837 officePhone: { 34838 label: (_a = contactProps.officePhone) == null ? void 0 : _a.label, 34839 phone: member.phoneNumber 34840 }, 34841 email: member.emailAddress 34842 }; 34843 } else { 34844 contactObjects[contactKey] = contactProps; 34845 } 34846 } 34847 } 34848 }); 34849 return { addresses: addressObjects, contacts: contactObjects }; 34850 }); 34851 return { 34852 flattenedContact, 34853 heading, 34854 displayHeading, 34855 officePhone, 34856 altPhone, 34857 altPhone2, 34858 altPhone3, 34859 mobile, 34860 fax, 34861 email, 34862 address, 34863 address2, 34864 address3, 34865 contactData, 34866 teamMember, 34867 dataObject 34868 }; 34869 } 34870}; 34871const _hoisted_1$48 = { 34872 class: "footer-contact", 34873 "data-testid": "footer-contact" 34874}; 34875const _hoisted_2$3M = { 34876 key: 0, 34877 class: "footer-contact__title" 34878}; 34879const _hoisted_3$r = { key: 1 }; 34880const _hoisted_4$k = { key: 0 }; 34881const _hoisted_5$j = { key: 1 }; 34882const _hoisted_6$c = { key: 2 }; 34883function _sfc_render$3G(_ctx, _cache, $props, $setup, $data, $options) { 34884 const _component_CoreBlockFooterContactAddress = __nuxt_component_0$a; 34885 const _component_CoreBlockFooterContactPhone = __nuxt_component_1$5; 34886 const _component_CoreBlockFooterContactEmail = __nuxt_component_2$3; 34887 return openBlock(), createElementBlock("div", _hoisted_1$48, [ 34888 createBaseVNode("div", null, [ 34889 $setup.heading && $setup.displayHeading ? (openBlock(), createElementBlock("h3", _hoisted_2$3M, toDisplayString($setup.heading), 1)) : createCommentVNode("", true), 34890 $props.isStacked ? (openBlock(), createElementBlock("div", _hoisted_3$r, [ 34891 $props.type === "locations" ? (openBlock(), createElementBlock("div", _hoisted_4$k, [ 34892 (openBlock(true), createElementBlock(Fragment, null, renderList($setup.contactData.addresses, (item, index2) => { 34893 return openBlock(), createBlock(_component_CoreBlockFooterContactAddress, { 34894 key: index2, 34895 address: item, 34896 "data-object": $setup.dataObject, 34897 "team-member": item.teamMember 34898 }, null, 8, ["address", "data-object", "team-member"]); 34899 }), 128)) 34900 ])) : createCommentVNode("", true), 34901 $props.type === "contacts" ? (openBlock(), createElementBlock("div", _hoisted_5$j, [ 34902 (openBlock(true), createElementBlock(Fragment, null, renderList($setup.contactData.contacts, (item, index2) => { 34903 return openBlock(), createElementBlock("div", { key: index2 }, [ 34904 item.officePhone ? (openBlock(), createBlock(_component_CoreBlockFooterContactPhone, { 34905 key: 0, 34906 phone: item.officePhone, 34907 "data-object": $setup.dataObject 34908 }, null, 8, ["phone", "data-object"])) : createCommentVNode("", true), 34909 item.altPhone ? (openBlock(), createBlock(_component_CoreBlockFooterContactPhone, { 34910 key: 1, 34911 phone: item.altPhone, 34912 "data-object": $setup.dataObject 34913 }, null, 8, ["phone", "data-object"])) : createCommentVNode("", true), 34914 item.altPhone2 ? (openBlock(), createBlock(_component_CoreBlockFooterContactPhone, { 34915 key: 2, 34916 phone: item.altPhone2, 34917 "data-object": $setup.dataObject 34918 }, null, 8, ["phone", "data-object"])) : createCommentVNode("", true), 34919 item.altPhone3 ? (openBlock(), createBlock(_component_CoreBlockFooterContactPhone, { 34920 key: 3, 34921 phone: item.altPhone3, 34922 "data-object": $setup.dataObject 34923 }, null, 8, ["phone", "data-object"])) : createCommentVNode("", true), 34924 item.mobile ? (openBlock(), createBlock(_component_CoreBlockFooterContactPhone, { 34925 key: 4, 34926 phone: item.mobile, 34927 "data-object": $setup.dataObject 34928 }, null, 8, ["phone", "data-object"])) : createCommentVNode("", true), 34929 item.fax ? (openBlock(), createBlock(_component_CoreBlockFooterContactPhone, { 34930 key: 5,
34931 phone: item.fax, 34932 "data-object": $setup.dataObject 34933 }, null, 8, ["phone", "data-object"])) : createCommentVNode("", true), 34934 item.email ? (openBlock(), createBlock(_component_CoreBlockFooterContactEmail, { 34935 key: 6, 34936 email: item.email, 34937 "data-object": $setup.dataObject 34938 }, null, 8, ["email", "data-object"])) : createCommentVNode("", true) 34939 ]); 34940 }), 128)) 34941 ])) : createCommentVNode("", true) 34942 ])) : (openBlock(), createElementBlock("div", _hoisted_6$c, [ 34943 $setup.officePhone ? (openBlock(), createBlock(_component_CoreBlockFooterContactPhone, { 34944 key: 0, 34945 phone: $setup.officePhone, 34946 "data-object": $setup.dataObject 34947 }, null, 8, ["phone", "data-object"])) : createCommentVNode("", true), 34948 $setup.altPhone ? (openBlock(), createBlock(_component_CoreBlockFooterContactPhone, { 34949 key: 1, 34950 phone: $setup.altPhone, 34951 "data-object": $setup.dataObject 34952 }, null, 8, ["phone", "data-object"])) : createCommentVNode("", true), 34953 $setup.altPhone2 ? (openBlock(), createBlock(_component_CoreBlockFooterContactPhone, { 34954 key: 2, 34955 phone: $setup.altPhone2, 34956 "data-object": $setup.dataObject 34957 }, null, 8, ["phone", "data-object"])) : createCommentVNode("", true), 34958 $setup.altPhone3 ? (openBlock(), createBlock(_component_CoreBlockFooterContactPhone, { 34959 key: 3, 34960 phone: $setup.altPhone3, 34961 "data-object": $setup.dataObject 34962 }, null, 8, ["phone", "data-object"])) : createCommentVNode("", true), 34963 $setup.mobile ? (openBlock(), createBlock(_component_CoreBlockFooterContactPhone, { 34964 key: 4, 34965 phone: $setup.mobile, 34966 "data-object": $setup.dataObject 34967 }, null, 8, ["phone", "data-object"])) : createCommentVNode("", true), 34968 $setup.fax ? (openBlock(), createBlock(_component_CoreBlockFooterContactPhone, { 34969 key: 5, 34970 phone: $setup.fax, 34971 "data-object": $setup.dataObject 34972 }, null, 8, ["phone", "data-object"])) : createCommentVNode("", true), 34973 $setup.email ? (openBlock(), createBlock(_component_CoreBlockFooterContactEmail, { 34974 key: 6, 34975 email: $setup.email, 34976 "data-object": $setup.dataObject 34977 }, null, 8, ["email", "data-object"])) : createCommentVNode("", true), 34978 $setup.address ? (openBlock(), createBlock(_component_CoreBlockFooterContactAddress, { 34979 key: 7, 34980 address: $setup.address, 34981 "data-object": $setup.dataObject 34982 }, null, 8, ["address", "data-object"])) : createCommentVNode("", true), 34983 $setup.address2 ? (openBlock(), createBlock(_component_CoreBlockFooterContactAddress, { 34984 key: 8, 34985 address: $setup.address2, 34986 "data-object": $setup.dataObject 34987 }, null, 8, ["address", "data-object"])) : createCommentVNode("", true), 34988 $setup.address3 ? (openBlock(), createBlock(_component_CoreBlockFooterContactAddress, { 34989 key: 9, 34990 address: $setup.address3, 34991 "data-object": $setup.dataObject 34992 }, null, 8, ["address", "data-object"])) : createCommentVNode("", true) 34993 ])) 34994 ]) 34995 ]); 34996} 34997const __nuxt_component_2$2 = /* @__PURE__ */ _export_sfc(_sfc_main$4d, [["render", _sfc_render$3G], ["__scopeId", "data-v-feef12a6"]]); 34998const CoreBlockFooterContact = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 34999 __proto__: null, 35000 default: __nuxt_component_2$2 35001}, Symbol.toStringTag, { value: "Module" })); 35002const _sfc_main$4c = { 35003 name: "CoreBlockFooterContactGroup", 35004 components: { 35005 CoreBlockFooterSocialLinks: __nuxt_component_3$2, 35006 CoreBlockFooterContact: __nuxt_component_2$2, 35007 CoreBlockFooterLogo: __nuxt_component_4$1 35008 }, 35009 props: { 35010 site: { 35011 type: Object, 35012 required: true 35013 }, 35014 isFooterMobile: { 35015 type: Boolean, 35016 default: false 35017 } 35018 }, 35019 setup(props) { 35020 const footer = computed(() => { 35021 return props.site.footer; 35022 }); 35023 const isStackedContentType = computed(() => { 35024 const contactTypes = [ 35025 "center-logo-stack-contact", 35026 "left-logo-stack-contact" 35027 ]; 35028 return contactTypes.includes(footer.value.component); 35029 }); 35030 const isCenterLogoType = computed(() => { 35031 const contactTypes = [ 35032 "center-logo-two-contact", 35033 "center-logo-stack-contact" 35034 ]; 35035 return contactTypes.includes(footer.value.component); 35036 }); 35037 const contact1 = computed(() => { 35038 return footer.value["contact-1"]; 35039 }); 35040 const showContact1 = computed(() => { 35041 if (Object.prototype.hasOwnProperty.call( 35042 footer.value, 35043 "contact-1-show" 35044 ) && !isStackedContentType.value) { 35045 return footer.value["contact-1-show"]; 35046 } 35047 return true; 35048 }); 35049 const contact2 = computed(() => { 35050 return footer.value["contact-2"]; 35051 }); 35052 const showContact2 = computed(() => { 35053 if (Object.prototype.hasOwnProperty.call( 35054 footer.value, 35055 "contact-2-show" 35056 ) && !isStackedContentType.value) { 35057 return footer.value["contact-2-show"]; 35058 } 35059 return true; 35060 }); 35061 const contact3 = computed(() => { 35062 return footer.value["contact-3"]; 35063 }); 35064 const showContact3 = computed(() => { 35065 if (isCenterLogoType.value || isStackedContentType.value) { 35066 return false;
35067 } 35068 if (Object.prototype.hasOwnProperty.call( 35069 footer.value, 35070 "contact-3-show" 35071 )) { 35072 return footer.value["contact-3-show"]; 35073 } 35074 return true; 35075 }); 35076 return { 35077 contact1, 35078 showContact1, 35079 contact2, 35080 showContact2, 35081 contact3, 35082 showContact3, 35083 isCenterLogoType, 35084 isStackedContentType, 35085 footer 35086 }; 35087 } 35088}; 35089const _hoisted_1$47 = { class: "footer-contact-group" }; 35090const _hoisted_2$3L = { key: 0 }; 35091const _hoisted_3$q = { key: 2 }; 35092function _sfc_render$3F(_ctx, _cache, $props, $setup, $data, $options) { 35093 const _component_CoreBlockFooterLogo = __nuxt_component_4$1; 35094 const _component_CoreBlockFooterSocialLinks = __nuxt_component_3$2; 35095 const _component_CoreBlockFooterContact = __nuxt_component_2$2; 35096 return openBlock(), createElementBlock("div", _hoisted_1$47, [ 35097 $setup.isCenterLogoType && $props.isFooterMobile ? (openBlock(), createElementBlock("div", _hoisted_2$3L, [ 35098 createVNode(_component_CoreBlockFooterLogo, { 35099 site: $props.site, 35100 "is-footer-mobile": true 35101 }, null, 8, ["site"]), 35102 createVNode(_component_CoreBlockFooterSocialLinks, { 35103 footer: $setup.footer, 35104 "cloned-site": $props.site, 35105 align: "center", 35106 "is-footer-mobile": true 35107 }, null, 8, ["footer", "cloned-site"]) 35108 ])) : createCommentVNode("", true), 35109 $setup.showContact1 && $setup.contact1 ? (openBlock(), createBlock(_component_CoreBlockFooterContact, { 35110 key: 1, 35111 contact: $setup.contact1, 35112 site: $props.site, 35113 type: "locations", 35114 "is-stacked": $setup.isStackedContentType, 35115 "team-member-id": "team-member-1" 35116 }, null, 8, ["contact", "site", "is-stacked"])) : createCommentVNode("", true), 35117 $setup.isCenterLogoType && !$props.isFooterMobile ? (openBlock(), createElementBlock("div", _hoisted_3$q, [ 35118 createVNode(_component_CoreBlockFooterLogo, { 35119 site: $props.site, 35120 "is-footer-mobile": false 35121 }, null, 8, ["site"]), 35122 createVNode(_component_CoreBlockFooterSocialLinks, { 35123 footer: $setup.footer, 35124 "cloned-site": $props.site, 35125 align: "center", 35126 "is-footer-mobile": false 35127 }, null, 8, ["footer", "cloned-site"]) 35128 ])) : createCommentVNode("", true), 35129 $setup.showContact2 && $setup.contact2 ? (openBlock(), createBlock(_component_CoreBlockFooterContact, { 35130 key: 3, 35131 contact: $setup.contact2, 35132 site: $props.site, 35133 type: "contacts", 35134 "is-stacked": $setup.isStackedContentType, 35135 "team-member-id": "team-member-2" 35136 }, null, 8, ["contact", "site", "is-stacked"])) : createCommentVNode("", true), 35137 $setup.showContact3 && $setup.contact3 ? (openBlock(), createBlock(_component_CoreBlockFooterContact, { 35138 key: 4, 35139 contact: $setup.contact3, 35140 site: $props.site, 35141 "team-member-id": "team-member-3" 35142 }, null, 8, ["contact", "site"])) : createCommentVNode("", true) 35143 ]); 35144} 35145const __nuxt_component_5 = /* @__PURE__ */ _export_sfc(_sfc_main$4c, [["render", _sfc_render$3F], ["__scopeId", "data-v-4319c159"]]); 35146const CoreBlockFooterContactGroup = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 35147 __proto__: null, 35148 default: __nuxt_component_5 35149}, Symbol.toStringTag, { value: "Module" })); 35150const _sfc_main$4b = { 35151 props: { 35152 settings: { 35153 type: Object, 35154 required: false 35155 } 35156 }, 35157 computed: { 35158 alt() { 35159 var _a, _b; 35160 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 35161 }, 35162 id() { 35163 var _a, _b; 35164 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 35165 } 35166 } 35167}; 35168const _hoisted_1$46 = ["aria-labelledby", "aria-label"]; 35169const _hoisted_2$3K = ["id"]; 35170function _sfc_render$3E(_ctx, _cache, $props, $setup, $data, $options) { 35171 return openBlock(), createElementBlock("svg", { 35172 width: "24", 35173 height: "24", 35174 viewBox: "0 0 24 24", 35175 fill: "none", 35176 "aria-label": "link", 35177 xmlns: "http://www.w3.org/2000/svg", 35178 role: "img", 35179 "aria-labelledby": `icon-title-${$options.id}` 35180 }, [ 35181 createBaseVNode("title", { 35182 id: `icon-title-${$options.id}` 35183 }, toDisplayString($options.alt), 9, _hoisted_2$3K), 35184 _cache[0] || (_cache[0] = createBaseVNode("path", { 35185 d: "M6 9L12 15L18 9", 35186 stroke: "currentColor", 35187 "stroke-width": "2", 35188 "stroke-linecap": "round", 35189 "stroke-linejoin": "round" 35190 }, null, -1)) 35191 ], 8, _hoisted_1$46); 35192} 35193const __nuxt_component_0$9 = /* @__PURE__ */ _export_sfc(_sfc_main$4b, [["render", _sfc_render$3E]]); 35194const CoreIconDownArrow = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 35195 __proto__: null, 35196 default: __nuxt_component_0$9 35197}, Symbol.toStringTag, { value: "Module" })); 35198const _hoisted_1$45 = { style: { "display": "flex" } }; 35199const _hoisted_2$3J = ["target", "href", "title", "aria-label"]; 35200const _hoisted_3$p = { style: { "display": "flex" } }; 35201const _hoisted_4$j = ["aria-expanded", "aria-label", "aria-controls", "onKeyup", "onKeydown"]; 35202const _hoisted_5$i = ["title", "aria-expanded", "aria-label", "aria-controls", "onKeydown"]; 35203const _hoisted_6$b = ["id", "aria-label"]; 35204const _hoisted_7$a = { 35205 key: 0, 35206 class: "navbar_item" 35207}; 35208const _hoisted_8$a = { style: { "display": "flex" } }; 35209const _sfc_main$4a = { 35210 __name: "CoreBlockNavItem", 35211 props: { 35212 site: { 35213 type: Object, 35214 default: () => ({}) 35215 }, 35216 parentLinkUrl: { 35217 type: String, 35218 default: "" 35219 }, 35220 navitem: { 35221 type: Object, 35222 default: () => ({ 35223 id: "", 35224 title: "", 35225 openInNewTab: false 35226 }) 35227 }, 35228 tier: { 35229 type: Number, 35230 default: 1 35231 }, 35232 isBuilderMobile: { 35233 type: Boolean, 35234 default: false 35235 }, 35236 isFooter: { 35237 type: Boolean, 35238 default: false 35239 }, 35240 isNavOpen: { 35241 type: Boolean, 35242 default: false 35243 }, 35244 isMobile: { 35245 type: Boolean, 35246 default: false 35247 }, 35248 isEditable: { 35249 type: Boolean, 35250 default: false 35251 }, 35252 isBuilder: { 35253 type: Boolean, 35254 default: false 35255 } 35256 }, 35257 emits: ["click"], 35258 setup(__props, { emit: __emit }) { 35259 var _a; 35260 const props = __props; 35261 const emit2 = __emit; 35262 const route = useRoute(); 35263 const store = useStore(); 35264 const { state } = store; 35265 const featureFlags = computed(() => { 35266 var _a2; 35267 return (_a2 = state == null ? void 0 : state.settings) == null ? void 0 : _a2.featureFlags; 35268 }); 35269 const showDropDown = ref( 35270 ((_a = featureFlags.value) == null ? void 0 : _a.MobileNavItemCollapse) ? false : props.isMobile 35271 ); 35272 const autoCollapse = ref(true); 35273 const hoverPageId = ref(null); 35274 const submenuId = computed(() => { 35275 const prefix = props.isFooter ? "footer-nav-" : "nav-"; 35276 const baseId = props.navitem.id.toString() || (props.navitem.title ? props.navitem.title.replace(/\s+/g, "-") : "item"); 35277 const cleanBaseId = typeof baseId === "string" ? baseId.replace(/[^a-z0-9-_]/gi, "") : "item"; 35278 return `${prefix}${cleanBaseId}-tier${props.tier}`; 35279 }); 35280 const showSubmenu = computed(() => { 35281 const hasDropDown = hasChildren.value || isPageAsFolder.value; 35282 return hasDropDown && (showDropDown.value || props.tier == 1 && !props.isFooter && !props.isMobile || !props.isMobile && props.isFooter); 35283 }); 35284 const isFolder = computed(() => { 35285 var _a2; 35286 const hasBlocks = ((_a2 = props.navitem.blocks) == null ? void 0 : _a2.length) > 0 && isValidValue(props.navitem.blocks); 35287 const isLink = isValidValue(props.navitem.link); 35288 return !hasBlocks && !isLink && !isPageAsFolder.value; 35289 }); 35290 const isPageAsFolder = computed(() => { 35291 const pageSettings = parseString(props.navitem.settings); 35292 return pageSettings == null ? void 0 : pageSettings.pageAsFolder; 35293 }); 35294 const showPageAsFolderLink = computed(() => isPageAsFolder.value); 35295 const showFolderArrow = computed(() => { 35296 var _a2; 35297 if ((_a2 = featureFlags.value) == null ? void 0 : _a2.MobileNavItemCollapse) { 35298 return !!hasChildren.value && (props.isMobile || !props.isFooter); 35299 } 35300 return !props.isMobile && !props.isFooter; 35301 }); 35302 const showMobileCollapseSplit = computed( 35303 () => { 35304 var _a2; 35305 return ((_a2 = featureFlags.value) == null ? void 0 : _a2.MobileNavItemCollapse) && props.isMobile && !isFolder.value && hasChildren.value; 35306 } 35307 ); 35308 const rotateFolderArrow = computed(() => { 35309 var _a2; 35310 if ((_a2 = featureFlags.value) == null ? void 0 : _a2.MobileNavItemCollapse) { 35311 return showDropDown.value; 35312 } 35313 return showDropDown.value && !props.isMobile; 35314 }); 35315 const navTitle = computed( 35316 () => props.navitem.navigationTitle ? props.navitem.navigationTitle : props.navitem.title 35317 ); 35318 const isInternalLink = computed(() => { 35319 var _a2, _b, _c, _d; 35320 let link;
35321 try { 35322 link = (_b = JSON.parse((_a2 = props.navitem) == null ? void 0 : _a2.link)) == null ? void 0 : _b.url; 35323 } catch { 35324 link = (_d = (_c = props.navitem) == null ? void 0 : _c.link) == null ? void 0 : _d.url; 35325 } 35326 return !(typeof link === "string" && ((link == null ? void 0 : link.startsWith("http")) || (link == null ? void 0 : link.startsWith("mailto")) || (link == null ? void 0 : link.startsWith("tel")))); 35327 }); 35328 const navItems = computed( 35329 () => { 35330 var _a2, _b; 35331 return ((_b = (_a2 = props.site) == null ? void 0 : _a2.pages) == null ? void 0 : _b.filter((item) => !item.isPrivate)) || []; 35332 } 35333 ); 35334 const fullLinkUrl = computed(() => { 35335 var _a2, _b, _c, _d, _e, _f; 35336 let url; 35337 try { 35338 url = (_b = JSON.parse((_a2 = props.navitem) == null ? void 0 : _a2.link)) == null ? void 0 : _b.url; 35339 } catch { 35340 url = (_c = props.navitem.link) == null ? void 0 : _c.url; 35341 } 35342 const homepageId = (_d = props.site) == null ? void 0 : _d.homepageId; 35343 if (isInternalLink.value && !url) { 35344 const parentPath = props.parentLinkUrl !== "/" && props.parentLinkUrl !== "" ? props.parentLinkUrl : ""; 35345 return `${parentPath}/${props.navitem.handle}`; 35346 } else if (isInternalLink.value && (url == null ? void 0 : url.name) && (props.isEditable || props.isBuilder)) { 35347 return url.name; 35348 } else if (isInternalLink.value && (url == null ? void 0 : url.name)) { 35349 return { name: url.name, ...url.hash ? { hash: url.hash } : {} }; 35350 } else if (isInternalLink.value && url) { 35351 const page = (_f = (_e = props.site) == null ? void 0 : _e.pages) == null ? void 0 : _f.find( 35352 (p2) => p2.handle == url.substring(1) 35353 ); 35354 if ((page == null ? void 0 : page.id) == homepageId) { 35355 return "/"; 35356 } 35357 return url; 35358 } 35359 return url; 35360 }); 35361 const handleFocus = () => { 35362 if (props.isMobile) return; 35363 if (props.tier === 1) showDropDown.value = false; 35364 }; 35365 const parseString = (str) => { 35366 try { 35367 return JSON.parse(str); 35368 } catch { 35369 return str; 35370 } 35371 }; 35372 const isValidValue = (value) => { 35373 return value && value !== "null" && value !== "[]"; 35374 }; 35375 const subPages = computed(() => { 35376 return navItems.value.filter((nI) => nI.parentPageId == props.navitem.id); 35377 }); 35378 const target = computed( 35379 () => props.navitem.openInNewTab || !isInternalLink.value ? "_blank" : "_self" 35380 ); 35381 const hasChildren = computed(() => { 35382 var _a2; 35383 return (_a2 = subPages.value) == null ? void 0 : _a2.length; 35384 }); 35385 const activeLink = computed(() => { 35386 var _a2; 35387 const handle = (_a2 = props.navitem) == null ? void 0 : _a2.handle; 35388 if (!handle || !(route == null ? void 0 : route.path)) return false; 35389 const segment = `/${handle}`; 35390 const path = route.path; 35391 return path === segment || path.startsWith(`${segment}/`) || path.endsWith(segment); 35392 }); 35393 const toggleDropDown = () => { 35394 var _a2; 35395 if (((_a2 = featureFlags.value) == null ? void 0 : _a2.MobileNavItemCollapse) || !props.isMobile) { 35396 showDropDown.value = !showDropDown.value; 35397 } 35398 }; 35399 const closeDropDown = () => { 35400 showDropDown.value = false; 35401 }; 35402 const onClick = (event, closeNav = true) => { 35403 if (autoCollapse.value && !props.isMobile) showDropDown.value = false; 35404 emit2("click", event, closeNav); 35405 }; 35406 watch( 35407 () => props.isNavOpen, 35408 (newValue) => { 35409 var _a2; 35410 if (!newValue && autoCollapse.value) { 35411 if (!props.isMobile || ((_a2 = featureFlags.value) == null ? void 0 : _a2.MobileNavItemCollapse)) { 35412 showDropDown.value = false; 35413 } 35414 } 35415 } 35416 ); 35417 watch( 35418 () => props.isMobile, 35419 (newValue) => { 35420 var _a2; 35421 if (!((_a2 = featureFlags.value) == null ? void 0 : _a2.MobileNavItemCollapse)) { 35422 showDropDown.value = newValue; 35423 } 35424 } 35425 ); 35426 return (_ctx, _cache) => { 35427 const _component_CoreIconDownArrow = __nuxt_component_0$9; 35428 const _component_CoreBlockNavItem = _sfc_main$4a; 35429 return openBlock(), createElementBlock("li", { 35430 class: normalizeClass(["nav__item--container desktop-nav-updates", { "nuxt-link-active": activeLink.value }]), 35431 onMouseover: _cache[0] || (_cache[0] = ($event) => hoverPageId.value = `/${__props.navitem.handle}`), 35432 onMouseout: _cache[1] || (_cache[1] = ($event) => hoverPageId.value = null) 35433 }, [ 35434 isInternalLink.value && !isFolder.value && !hasChildren.value ? (openBlock(), createBlock(unref(__nuxt_component_2$5), { 35435 key: 0, 35436 to: fullLinkUrl.value, 35437 target: target.value, 35438 class: "navbar_link navbar_link-internal", 35439 tabindex: "0", 35440 exact: "", 35441 title: navTitle.value, 35442 "aria-label": navTitle.value, 35443 onClick 35444 }, { 35445 default: withCtx(() => [ 35446 createBaseVNode("div", null, toDisplayString(navTitle.value), 1), 35447 createBaseVNode("div", _hoisted_1$45, [ 35448 withDirectives(createVNode(_component_CoreIconDownArrow, { 35449 class: "right__arrow nav-arrow", 35450 "aria-hidden": "true" 35451 }, null, 512), [ 35452 [ 35453 vShow, 35454 featureFlags.value.MobileNavItemCollapse ? __props.isFooter && !__props.isMobile : __props.isFooter || __props.isMobile 35455 ] 35456 ]) 35457 ]) 35458 ]), 35459 _: 1 35460 }, 8, ["to", "target", "title", "aria-label"])) : !isFolder.value && !hasChildren.value ? (openBlock(), createElementBlock("a", { 35461 key: 1, 35462 class: "navbar_link navbar_link-external", 35463 target: target.value, 35464 href: fullLinkUrl.value, 35465 tabindex: "0", 35466 title: navTitle.value, 35467 "aria-label": navTitle.value 35468 }, [ 35469 createBaseVNode("div", null, toDisplayString(navTitle.value), 1), 35470 createBaseVNode("div", _hoisted_3$p, [ 35471 withDirectives(createVNode(_component_CoreIconDownArrow, { 35472 class: "right__arrow nav-arrow", 35473 "aria-hidden": "true" 35474 }, null, 512), [ 35475 [ 35476 vShow, 35477 featureFlags.value.MobileNavItemCollapse ? __props.isFooter && !__props.isMobile : __props.isFooter || __props.isMobile 35478 ] 35479 ]) 35480 ]) 35481 ], 8, _hoisted_2$3J)) : isFolder.value || hasChildren.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [ 35482 showMobileCollapseSplit.value ? (openBlock(), createElementBlock("div", { 35483 key: 0, 35484 class: normalizeClass(["navbar_link navbar_link-folder navbar_link-folder--mobile-split", { "nuxt-link-active": activeLink.value }]) 35485 }, [ 35486 createVNode(unref(__nuxt_component_2$5), { 35487 to: fullLinkUrl.value, 35488 target: target.value, 35489 class: "navbar_link--split-text", 35490 tabindex: "0", 35491 exact: "", 35492 title: navTitle.value, 35493 "aria-label": navTitle.value, 35494 onClick 35495 }, { 35496 default: withCtx(() => [ 35497 createTextVNode(toDisplayString(navTitle.value), 1) 35498 ]), 35499 _: 1 35500 }, 8, ["to", "target", "title", "aria-label"]), 35501 createBaseVNode("button", { 35502 class: "navbar_link--split-toggle", 35503 "aria-expanded": String(showDropDown.value), 35504 "aria-label": `Toggle ${navTitle.value} submenu`, 35505 "aria-controls": submenuId.value, 35506 onClick: withModifiers(toggleDropDown, ["stop"]), 35507 onKeyup: [ 35508 withKeys(withModifiers(toggleDropDown, ["stop"]), ["enter"]), 35509 withKeys(withModifiers(toggleDropDown, ["stop"]), ["space"]) 35510 ], 35511 onKeydown: withKeys(withModifiers(closeDropDown, ["stop"]), ["escape"]) 35512 }, [ 35513 createVNode(_component_CoreIconDownArrow, { 35514 class: normalizeClass(["nav-arrow", { upward__arrow: showDropDown.value }]), 35515 "aria-hidden": "true" 35516 }, null, 8, ["class"]) 35517 ], 40, _hoisted_4$j) 35518 ], 2)) : (openBlock(), createElementBlock("div", { 35519 key: 1, 35520 class: normalizeClass(["navbar_link navbar_link-folder", { "nuxt-link-active": activeLink.value }]), 35521 role: "button", 35522 tabindex: "0", 35523 title: navTitle.value, 35524 "aria-expanded": String(showDropDown.value), 35525 "aria-label": navTitle.value, 35526 "aria-controls": submenuId.value, 35527 onKeyup: [ 35528 withKeys(toggleDropDown, ["enter"]), 35529 withKeys(toggleDropDown, ["space"]) 35530 ], 35531 onClick: toggleDropDown, 35532 onFocus: handleFocus, 35533 onKeydown: withKeys(withModifiers(closeDropDown, ["stop"]), ["escape"]) 35534 }, [ 35535 createTextVNode(toDisplayString(navTitle.value) + " ", 1), 35536 withDirectives(createVNode(_component_CoreIconDownArrow, { 35537 class: normalizeClass(["nav-arrow", { upward__arrow: rotateFolderArrow.value }]), 35538 "aria-hidden": "true" 35539 }, null, 8, ["class"]), [ 35540 [vShow, showFolderArrow.value] 35541 ]) 35542 ], 42, _hoisted_5$i)) 35543 ], 64)) : createCommentVNode("", true), 35544 showSubmenu.value ? (openBlock(), createElementBlock("ul", { 35545 key: 3, 35546 id: submenuId.value, 35547 class: normalizeClass(["navbar_nav navbar_nav--subnav", { "block_main-nav--subnav_open": showDropDown.value }]), 35548 "aria-label": `${navTitle.value} submenu` 35549 }, [ 35550 showPageAsFolderLink.value ? (openBlock(), createElementBlock("li", _hoisted_7$a, [ 35551 createVNode(unref(__nuxt_component_2$5), { 35552 to: fullLinkUrl.value, 35553 target: target.value, 35554 class: "navbar_link navbar_link-internal", 35555 tabindex: "0", 35556 exact: "", 35557 title: navTitle.value, 35558 "aria-label": navTitle.value, 35559 onClick 35560 }, { 35561 default: withCtx(() => [ 35562 createBaseVNode("div", null, toDisplayString(navTitle.value), 1), 35563 createBaseVNode("div", _hoisted_8$a, [ 35564 withDirectives(createVNode(_component_CoreIconDownArrow, { 35565 class: "right__arrow nav-arrow", 35566 "aria-hidden": "true" 35567 }, null, 512), [ 35568 [vShow, __props.isFooter || __props.isMobile] 35569 ]) 35570 ]) 35571 ]), 35572 _: 1 35573 }, 8, ["to", "target", "title", "aria-label"]) 35574 ])) : createCommentVNode("", true), 35575 (openBlock(true), createElementBlock(Fragment, null, renderList(subPages.value, (subPage) => { 35576 return openBlock(), createBlock(_component_CoreBlockNavItem, { 35577 key: subPage.title + subPage.handle, 35578 "is-editable": __props.isEditable, 35579 navitem: subPage, 35580 "parent-link-url": fullLinkUrl.value, 35581 site: __props.site, 35582 tier: __props.tier + 1, 35583 "is-footer": __props.isFooter, 35584 class: "navbar_item", 35585 tabindex: "-1", 35586 "is-mobile": __props.isMobile, 35587 onClick 35588 }
35588, null, 8, ["is-editable", "navitem", "parent-link-url", "site", "tier", "is-footer", "is-mobile"]); 35589 }), 128)) 35590 ], 10, _hoisted_6$b)) : createCommentVNode("", true) 35591 ], 34); 35592 }; 35593 } 35594}; 35595const CoreBlockNavItem = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 35596 __proto__: null, 35597 default: _sfc_main$4a 35598}, Symbol.toStringTag, { value: "Module" })); 35599const _sfc_main$49 = { 35600 name: "CoreBlockFooterOneTrust", 35601 props: { 35602 site: { 35603 type: Object, 35604 required: true 35605 }, 35606 isCoreLite: { 35607 type: Boolean, 35608 default: false 35609 } 35610 }, 35611 computed: { 35612 showLink() { 35613 var _a, _b, _c, _d; 35614 return ((_b = (_a = this.site.footer) == null ? void 0 : _a.oneTrust) == null ? void 0 : _b.useIntegration) && !((_d = (_c = this.site.footer) == null ? void 0 : _c.oneTrust) == null ? void 0 : _d.disabled) && !this.isCoreLite; 35615 } 35616 }, 35617 methods: { 35618 emitClick() { 35619 this.$el.querySelector(".ot-sdk-show-settings").click(); 35620 } 35621 } 35622}; 35623const _hoisted_1$44 = { 35624 key: 0, 35625 class: "one-trust-wrapper" 35626}; 35627function _sfc_render$3D(_ctx, _cache, $props, $setup, $data, $options) { 35628 return $options.showLink ? (openBlock(), createElementBlock("span", _hoisted_1$44, [ 35629 createBaseVNode("a", { 35630 tabindex: "0", 35631 role: "link", 35632 class: "ot-sdk-show-settings", 35633 title: "Your Privacy Choices", 35634 onKeyup: _cache[0] || (_cache[0] = withKeys((...args) => $options.emitClick && $options.emitClick(...args), ["enter"])) 35635 }, " Your Privacy Choices ", 32) 35636 ])) : createCommentVNode("", true); 35637} 35638const __nuxt_component_8 = /* @__PURE__ */ _export_sfc(_sfc_main$49, [["render", _sfc_render$3D]]); 35639const CoreBlockFooterOneTrust = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 35640 __proto__: null, 35641 default: __nuxt_component_8 35642}, Symbol.toStringTag, { value: "Module" })); 35643const _sfc_main$48 = { 35644 name: "CoreBlockImageCropped", 35645 props: { 35646 imageSrc: { 35647 type: [String, Object], 35648 default: "" 35649 }, 35650 mediaMetadata: { 35651 type: [String, Object], 35652 default: () => { 35653 } 35654 } 35655 }, 35656 watch: { 35657 mediaMetadata() { 35658 this.updateCanvas(); 35659 } 35660 }, 35661 mounted() { 35662 this.updateCanvas(); 35663 }, 35664 methods: { 35665 getMimeTypeByFilename(filename2) { 35666 try { 35667 const extension = filename2.split(".").splice(-1).join(); 35668 const mimeTypeMap = { 35669 // Add more extensions and MIME types as needed 35670 jpg: "image/jpeg", 35671 jpeg: "image/jpeg", 35672 png: "image/png" 35673 }; 35674 const lowercaseExtension = extension.toLowerCase(); 35675 return mimeTypeMap[lowercaseExtension] || "image/png"; 35676 } catch { 35677 return "image/png"; 35678 } 35679 }, 35680 updateCanvas() { 35681 var _a; 35682 const imageSrc = this.imageSrc && typeof this.imageSrc === "object" ? this.imageSrc.src : this.imageSrc; 35683 if (!((_a = this.mediaMetadata) == null ? void 0 : _a.image)) { 35684 return this.$emit("loaded", ""); 35685 } else { 35686 const requestedMetadata = this.mediaMetadata; 35687 const imageToCrop = new Image(); 35688 imageToCrop.crossOrigin = "anonymous"; 35689 imageToCrop.onload = () => { 35690 if (this.mediaMetadata !== requestedMetadata) return; 35691 const transformedImage = this.transformCanvas(imageToCrop); 35692 const croppedImage = this.cropCanvas(transformedImage); 35693 const type = this.getMimeTypeByFilename(imageSrc); 35694 const dataUrl = croppedImage == null ? void 0 : croppedImage.toDataURL(type, 0.8); 35695 this.$emit("loaded", dataUrl); 35696 }; 35697 imageToCrop.src = imageSrc; 35698 } 35699 }, 35700 transformCanvas(source) { 35701 try { 35702 const { image } = this.mediaMetadata; 35703 const sourceImage = source; 35704 const canvas = document.createElement("canvas"); 35705 if (canvas && image && sourceImage) { 35706 let postTranslateX, postTranslateY; 35707 const flipVertical = image.transforms.flip.vertical ? -1 : 1; 35708 const flipHorizontal = image.transforms.flip.horizontal ? -1 : 1; 35709 const convertedDegrees = Math.abs( 35710 image.transforms.rotate % 360 35711 ); 35712 if ([90, 270].includes(convertedDegrees)) { 35713 canvas.height = sourceImage.width; 35714 canvas.width = sourceImage.height; 35715 postTranslateX = canvas.height / 2; 35716 postTranslateY = canvas.width / 2; 35717 } else { 35718 canvas.height = sourceImage.height; 35719 canvas.width = sourceImage.width; 35720 postTranslateX = canvas.width / 2; 35721 postTranslateY = canvas.height / 2; 35722 } 35723 const ctx = canvas.getContext("2d"); 35724 ctx.translate(canvas.width / 2, canvas.height / 2); 35725 ctx.rotate(convertedDegrees * Math.PI / 180); 35726 ctx.scale(flipHorizontal, flipVertical); 35727 ctx.translate(-postTranslateX, -postTranslateY);
35728 ctx.drawImage(sourceImage, 0, 0); 35729 return canvas; 35730 } 35731 } catch (e) { 35732 this.$emit("loaded", ""); 35733 } 35734 }, 35735 cropCanvas(sourceCanvas) { 35736 try { 35737 const { coordinates } = this.mediaMetadata; 35738 const sourceImage = sourceCanvas; 35739 const canvas = document.createElement("canvas"); 35740 if (canvas && coordinates && sourceImage) { 35741 canvas.height = coordinates.height; 35742 canvas.width = coordinates.width; 35743 const ctx = canvas.getContext("2d"); 35744 ctx.drawImage( 35745 sourceImage, 35746 coordinates.left, 35747 coordinates.top, 35748 coordinates.width, 35749 coordinates.height, 35750 0, 35751 0, 35752 coordinates.width, 35753 coordinates.height 35754 ); 35755 return canvas; 35756 } 35757 } catch (e) { 35758 this.$emit("loaded", ""); 35759 } 35760 } 35761 } 35762}; 35763function _sfc_render$3C(_ctx, _cache, $props, $setup, $data, $options) { 35764 return createCommentVNode("", true); 35765} 35766const __nuxt_component_0$8 = /* @__PURE__ */ _export_sfc(_sfc_main$48, [["render", _sfc_render$3C]]); 35767const CoreBlockImageCropped = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 35768 __proto__: null, 35769 default: __nuxt_component_0$8 35770}, Symbol.toStringTag, { value: "Module" })); 35771function useMedia(mediaSrc) { 35772 const mediaUrl = computed(() => { 35773 return mediaSrc.value && typeof mediaSrc.value === "object" ? mediaSrc.value.src : mediaSrc.value; 35774 }); 35775 const isImage = computed(() => { 35776 return mediaUrl.value ? mediaUrl.value.match( 35777 /\.jpg|\.jpeg|\.jfif|\.pjpeg|\.pjp|\.gif|\.png|\.svg|\.webp|^data:image\//i 35778 ) : null; 35779 }); 35780 const isFile2 = computed(() => { 35781 return mediaUrl.value ? mediaUrl.value.match(/\.csv|\.pdf|\.html|\.txt/i) : null; 35782 }); 35783 const isBlobFile = computed(() => { 35784 return mediaUrl.value ? mediaUrl.value.includes("uploads") : false; 35785 }); 35786 const isYoutube = computed(() => { 35787 return mediaUrl.value ? mediaUrl.value.match(/https:\/\/www\.youtube\.com\/embed\/.*/) : null; 35788 }); 35789 const isVimeo = computed(() => { 35790 return mediaUrl.value ? mediaUrl.value.match(/https:\/\/player\.vimeo\.com\/video\/.*/) : null; 35791 }); 35792 const isBrightcove = computed(() => { 35793 return mediaUrl.value ? mediaUrl.value.match(/https:\/\/players\.brightcove\.net\/.*/) : null; 35794 }); 35795 const isEMoney = computed(() => { 35796 return mediaUrl.value ? mediaUrl.value.match(/https:\/\/abm\.emaplan\.com\/.*/) : null; 35797 }); 35798 const isUploadedVideo = computed(() => { 35799 if (mediaUrl.value) { 35800 return /\.(mp4|mov|avi|webm)(\?.*)?$/i.test(mediaUrl.value) && isBlobFile.value; 35801 } 35802 return null; 35803 }); 35804 const isVideo = computed(() => { 35805 return isYoutube.value || isVimeo.value || isBrightcove.value || isEMoney.value || isUploadedVideo.value; 35806 }); 35807 const videoAutoPlayUrl = computed(() => { 35808 if (!isVideo.value) return ""; 35809 try { 35810 const url = new URL(mediaUrl.value); 35811 if (isYoutube.value) { 35812 url.searchParams.set("autoplay", "1"); 35813 url.searchParams.set("mute", "1"); 35814 url.searchParams.set("rel", "0"); 35815 url.searchParams.set("iv_load_policy", "3"); 35816 return url.toString(); 35817 } 35818 url.searchParams.set("autoplay", "1"); 35819 url.searchParams.set("muted", "1"); 35820 return url.toString(); 35821 } catch (error) { 35822 return mediaUrl.value; 35823 } 35824 }); 35825 const videoLoopUrl = computed(() => { 35826 if (!isVideo.value) return ""; 35827 try { 35828 const url = new URL(videoAutoPlayUrl.value); 35829 if (isYoutube.value) { 35830 const videoId = url.toString().match(/\/embed\/([^?]*)/)[1]; 35831 url.searchParams.set("loop", "1"); 35832 url.searchParams.set("playlist", videoId); 35833 return url.toString(); 35834 } 35835 url.searchParams.set("loop", "1"); 35836 return url.toString(); 35837 } catch (error) { 35838 return videoAutoPlayUrl.value; 35839 } 35840 }); 35841 const mediaType = computed(() => { 35842 if (isImage.value) { 35843 return "image"; 35844 } 35845 if (isVideo.value) { 35846 return "video"; 35847 } 35848 if (isFile2.value) { 35849 return "file"; 35850 } 35851 return null; 35852 }); 35853 return { 35854 mediaUrl, 35855 isImage, 35856 isFile: isFile2, 35857 isBlobFile, 35858 isYoutube, 35859 isVimeo, 35860 isBrightcove, 35861 isEMoney, 35862 isUploadedVideo, 35863 isVideo, 35864 mediaType, 35865 videoAutoPlayUrl, 35866 videoLoopUrl 35867 }; 35868} 35869const JWPLAYER_LIBRARY_URL = "https://content.jwplatform.com/libraries/ljXVSIQY.js"; 35870async function loadExternalScriptOnce(src) { 35871 return new Promise((resolve2, reject) => { 35872 const existing = document.querySelector(`script[src="${src}"]`); 35873 if (existing) { 35874 resolve2(true); 35875 return; 35876 } 35877 const script = document.createElement("script"); 35878 script.src = src; 35879 script.onload = () => resolve2(true); 35880 script.onerror = () => reject(new Error(`Failed to load script ${src}`)); 35881 document.body.appendChild(script); 35882 }); 35883} 35884async function waitForJwPlayerReadyById(playerId, timeoutMs = 5e3) { 35885 const start = Date.now(); 35886 while (Date.now() - start < timeoutMs) { 35887 const el = document.getElementById(playerId); 35888 if (el && el.innerHTML && (el.innerHTML.includes("jwplayer") || el.querySelector("video, iframe"))) { 35889 return true; 35890 } 35891 await new Promise((r2) => setTimeout(r2, 100)); 35892 } 35893 return false;
35894} 35895async function ensureJwLibraryLoaded() { 35896 if (typeof window !== "undefined" && window.jwplayer) return true; 35897 await loadExternalScriptOnce(JWPLAYER_LIBRARY_URL); 35898 await new Promise((r2) => setTimeout(r2, 0)); 35899 return true; 35900} 35901const mediaHelper = { 35902 isImage(src) { 35903 return typeof src === "string" && src && src.match( 35904 /\.jpg|\.jpeg|\.jfif|\.pjpeg|\.pjp|\.gif|\.png|\.svg|\.webp|^data:image\//i 35905 ); 35906 }, 35907 isFile(src) { 35908 return typeof src === "string" && src && src.match(/\.csv|\.pdf|\.html|\.txt\//i); 35909 }, 35910 isVideo(src) { 35911 return typeof src === "string" && src && (this.isYoutube(src) || this.isVimeo(src) || this.isBrightcove(src) || this.isEMoney(src)); 35912 }, 35913 isYoutube(src) { 35914 return typeof src === "string" && src.match(/https:\/\/www\.youtube\.com\/embed\/.*/); 35915 }, 35916 isVimeo(src) { 35917 return typeof src === "string" && src.match(/https:\/\/player\.vimeo\.com\/video\/.*/); 35918 }, 35919 isBrightcove(src) { 35920 return typeof src === "string" && src.match(/https:\/\/players\.brightcove\.net\/.*/); 35921 }, 35922 isEMoney(src) { 35923 return typeof src === "string" && src.match(/https:\/\/abm\.emaplan\.com\/.*/); 35924 }, 35925 isCoreLiteUnsupportedVideo(src) { 35926 return Boolean(this.isEMoney(src) || this.isBrightcove(src)); 35927 }, 35928 loadImage(src) { 35929 return new Promise((resolve2, reject) => { 35930 const img = new Image(); 35931 img.src = src; 35932 img.onload = () => resolve2(img); 35933 img.onerror = (e) => reject(e); 35934 }); 35935 }, 35936 async getImageBackgroundPosition(metaData, focalPointMedatada, croppedCoordinates) { 35937 var _a, _b; 35938 try { 35939 const img = (metaData == null ? void 0 : metaData.image) || await this.loadImage(metaData.url); 35940 let x2 = (focalPointMedatada == null ? void 0 : focalPointMedatada.left) / ((croppedCoordinates == null ? void 0 : croppedCoordinates.width) || (img == null ? void 0 : img.width)) * 100; 35941 let y = (focalPointMedatada == null ? void 0 : focalPointMedatada.top) / ((croppedCoordinates == null ? void 0 : croppedCoordinates.height) || (img == null ? void 0 : img.height)) * 100; 35942 x2 = x2 > 100 ? 100 : x2; 35943 y = y > 100 ? 100 : y; 35944 x2 = ((_a = focalPointMedatada == null ? void 0 : focalPointMedatada.flip) == null ? void 0 : _a.horizontal) ? 100 - x2 : x2; 35945 y = ((_b = focalPointMedatada == null ? void 0 : focalPointMedatada.flip) == null ? void 0 : _b.vertical) ? 100 - y : y; 35946 if (isNaN(x2) || isNaN(y)) return "50% 50%"; 35947 return `${Math.round(x2)}% ${Math.round(y)}%`; 35948 } catch { 35949 return "50% 50%"; 35950 } 35951 }, 35952 getEncodedURI(url) { 35953 if (!url || typeof url !== "string") return url; 35954 try { 35955 const isEncoded = decodeURI(url) !== url; 35956 return isEncoded ? url : encodeURI(url).replace(/\(/g, "%28").replace(/\)/g, "%29"); 35957 } catch { 35958 return url; 35959 } 35960 }, 35961 checkIfHasPlayerId(url) { 35962 if (!url) return ""; 35963 try { 35964 let myUrl = new URL(url); 35965 let params = myUrl.searchParams; 35966 if (params.has("playerId")) { 35967 return params.get("playerId"); 35968 } 35969 } catch { 35970 return ""; 35971 } 35972 return ""; 35973 }, 35974 getMediaTypeFromSrc(src) { 35975 if (!src) return "unknown"; 35976 const _src = src.toLowerCase(); 35977 if (this.isImage(src)) return "image"; 35978 if (this.isVideo(src)) return "video"; 35979 if (_src.includes("mp4") || _src.includes("mov") || _src.includes("avi") || _src.includes("webm")) 35980 return "video"; 35981 return "unknown"; 35982 }, 35983 async getMediaTypeFromHeaders(url) { 35984 try { 35985 const response = await fetch(url, { method: "GET" }); 35986 const contentType = response.headers.get("content-type") || ""; 35987 if (contentType.startsWith("image/")) return "image"; 35988 if (contentType.startsWith("video/")) return "video"; 35989 return "unknown"; 35990 } catch (e) { 35991 return "unknown"; 35992 } 35993 } 35994}; 35995const _sfc_main$47 = { 35996 name: "CoreBlockFooterBackground", 35997 props: { 35998 footer: { 35999 type: Object, 36000 required: true 36001 } 36002 }, 36003 setup(props) { 36004 const { isExpired } = useIsExpired( 36005 props.footer, 36006 (item) => (item == null ? void 0 : item.propertyKey) === "backgroundImage" 36007 ); 36008 const backgroundImage = computed( 36009 () => props.footer.backgroundImage || {} 36010 ); 36011 const croppedImage = ref(null); 36012 const { isImage } = useMedia(backgroundImage); 36013 watch(backgroundImage, (newValue) => { 36014 if (!newValue || !newValue.src) { 36015 croppedImage.value = null; 36016 } 36017 }); 36018 const background = computed(() => { 36019 var _a, _b, _c; 36020 if (!backgroundImage.value) return ""; 36021 if (isExpired.value) return ""; 36022 const image = croppedImage.value || mediaHelper.getEncodedURI((_a = backgroundImage.value) == null ? void 0 : _a.src); 36023 if (!image) return ""; 36024 return { 36025 "background-image": `url(${image})`, 36026 "background-position": (_c = (_b = backgroundImage.value) == null ? void 0 : _b.focal) == null ? void 0 : _c.bgPosition, 36027 "background-repeat": "no-repeat", 36028 "background-size": "cover", 36029 height: "inherit" 36030 }; 36031 }); 36032 const backgroundClass = computed(() => { 36033 const color = props.footer.backgroundColor; 36034 switch (color) { 36035 case "white": 36036 return "footer__background--white"; 36037 case "grey": 36038 return "footer__background--grey"; 36039 case "light": 36040 return "footer__background--light"; 36041 case "dark": 36042 return "footer__background--dark"; 36043 default: 36044 return ""; 36045 } 36046 }); 36047 const applyOverlay = computed(() => { 36048 return !!props.footer.overlay || !!props.footer.gradient; 36049 });
36050 const overlayClasses = computed(() => { 36051 if (isExpired.value) return null; 36052 const overlay2 = props.footer.overlay; 36053 const gradient = props.footer.gradient; 36054 if (!overlay2 && !gradient) return false; 36055 const classes = { 36056 "footer__background--overlay": overlay2, 36057 "footer__background--gradient": gradient 36058 }; 36059 if (overlay2 && props.footer.overlayOpacity) { 36060 classes[`footer__background--${props.footer.overlayOpacity}`] = true; 36061 } 36062 if (overlay2 && props.footer.overlayColor) { 36063 classes[`footer__background--${props.footer.overlayColor}`] = true; 36064 } 36065 if (gradient && props.footer.gradientColor) { 36066 classes[`footer__background--${props.footer.gradientColor}`] = true; 36067 } 36068 if (gradient && props.footer.gradientDirection) { 36069 classes[`footer__background--${props.footer.gradientDirection}`] = true; 36070 } 36071 return classes; 36072 }); 36073 const overlay = computed(() => { 36074 return { 36075 enabled: applyOverlay.value, 36076 classes: overlayClasses.value 36077 }; 36078 }); 36079 const setCroppedImage = (image) => { 36080 croppedImage.value = image; 36081 }; 36082 return { 36083 applyOverlay, 36084 background, 36085 backgroundClass, 36086 backgroundImage, 36087 croppedImage, 36088 isExpired, 36089 isImage, 36090 overlay, 36091 setCroppedImage 36092 }; 36093 } 36094}; 36095const _hoisted_1$43 = { key: 0 }; 36096const _hoisted_2$3I = { class: "footer__content" }; 36097function _sfc_render$3B(_ctx, _cache, $props, $setup, $data, $options) { 36098 const _component_CoreBlockImageCropped = __nuxt_component_0$8; 36099 return openBlock(), createElementBlock("div", { 36100 class: normalizeClass(["footer__background", $setup.backgroundClass]), 36101 style: normalizeStyle($setup.background) 36102 }, [ 36103 $setup.isImage ? (openBlock(), createElementBlock("div", _hoisted_1$43, [ 36104 $setup.backgroundImage.src ? (openBlock(), createBlock(_component_CoreBlockImageCropped, { 36105 key: 0, 36106 "image-src": $setup.backgroundImage.src, 36107 "media-metadata": { 36108 ...$setup.backgroundImage.crop, 36109 ...$setup.backgroundImage.focal 36110 }, 36111 onLoaded: $setup.setCroppedImage 36112 }, null, 8, ["image-src", "media-metadata", "onLoaded"])) : createCommentVNode("", true) 36113 ])) : createCommentVNode("", true), 36114 createBaseVNode("div", _hoisted_2$3I, [ 36115 renderSlot(_ctx.$slots, "default"), 36116 $setup.applyOverlay ? (openBlock(), createElementBlock("div", { 36117 key: 0, 36118 class: normalizeClass($setup.overlay.classes) 36119 }, null, 2)) : createCommentVNode("", true) 36120 ]) 36121 ], 6); 36122} 36123const __nuxt_component_9 = /* @__PURE__ */ _export_sfc(_sfc_main$47, [["render", _sfc_render$3B]]); 36124const CoreBlockFooterBackground = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 36125 __proto__: null, 36126 default: __nuxt_component_9 36127}, Symbol.toStringTag, { value: "Module" })); 36128const BrandEnum = { 36129 NYL: 3 36130}; 36131const GENERAL_OFFICE_TAG_ID = 1305; 36132const isRegRepIndicator = (indicator) => (indicator == null ? void 0 : indicator.toUpperCase()) === "Y"; 36133const requiresSecuritiesDisclosure = (site) => { 36134 var _a, _b, _c, _d; 36135 if ((site == null ? void 0 : site.brandId) !== BrandEnum.NYL) return false; 36136 return (((_a = site.tags) == null ? void 0 : _a.includes(GENERAL_OFFICE_TAG_ID)) ?? false) || isRegRepIndicator((_c = (_b = site.user) == null ? void 0 : _b.ddcUserData) == null ? void 0 : _c.regRepInd) || (((_d = site.teamMembers) == null ? void 0 : _d.some( 36137 (member) => isRegRepIndicator(member == null ? void 0 : member.regRepInd) 36138 )) ?? false); 36139}; 36140const _sfc_main$46 = { 36141 name: "CoreBlockFooter", 36142 components: { 36143 NuxtLink: __nuxt_component_2$5, 36144 CoreBlockFooterDisclosures: __nuxt_component_0$d, 36145 CoreBlockFooterBanner: __nuxt_component_1$6, 36146 CoreBlockFooterOneTrust: __nuxt_component_8, 36147 CoreBlockFooterLogo: __nuxt_component_4$1, 36148 CoreBlockFooterContactGroup: __nuxt_component_5, 36149 CoreBlockFooterSocialLinks: __nuxt_component_3$2, 36150 CoreBlockFooterBackground: __nuxt_component_9 36151 }, 36152 props: { 36153 site: { 36154 type: Object, 36155 default: () => { 36156 return {}; 36157 } 36158 }, 36159 isBuilder: { 36160 type: Boolean, 36161 default: false 36162 }, 36163 // the builder preview is set to mobile view 36164 isBuilderMobile: { 36165 type: Boolean, 36166 default: false 36167 }, 36168 isEditable: { 36169 type: Boolean, 36170 default: false 36171 } 36172 }, 36173 setup(props) { 36174 provide(SCROLL_ANIMATION_EXCLUDED_KEY, true); 36175 const { isMobile } = useIsMobile(); 36176 const { isExpired } = useIsExpired( 36177 props.site.footer, 36178 (item) => (item == null ? void 0 : item.propertyKey) === "image" 36179 ); 36180 const store = useStore(); 36181 const { state, commit: commit2 } = store; 36182 const dataSite = computed(() => { 36183 const fromStore = sitePath(store); 36184 const hasPropSiteData = props.site && (props.site.footer !== void 0 || props.site.pages !== void 0); 36185 const hasStoreSiteData = fromStore && (fromStore.footer !== void 0 || fromStore.pages !== void 0); 36186 if (hasPropSiteData) return props.site; 36187 return hasStoreSiteData ? fromStore : props.site; 36188 }); 36189 const isCoreLite = computed( 36190 () => store.getters["settings/getBrandFeatureFlag"]("CoreLite") 36191 ); 36192 return { 36193 isExpired, 36194 isMobile, 36195 state, 36196 commit: commit2, 36197 dataSite, 36198 isCoreLite 36199 }; 36200 }, 36201 computed: { 36202 isNYL() { 36203 var _a; 36204 return ((_a = this == null ? void 0 : this.site) == null ? void 0 : _a.brandId) === BrandEnum.NYL; 36205 }, 36206 requiresSecuritiesDisclosure() { 36207 return requiresSecuritiesDisclosure(this.site); 36208 }, 36209 isAgentDisclosureUpdatesEnabled() { 36210 var _a, _b, _c; 36211 return !!((_c = (_b = (_a = this.state) == null ? void 0 : _a.settings) == null ? void 0 : _b.featureFlags) == null ? void 0 : _c.AgentDisclosureUpdatesUI); 36212 }, 36213 disclosureLocation() { 36214 var _a; 36215 return (_a = this.footer) == null ? void 0 : _a.disclosureLocation; 36216 }, 36217 showDisclosuresInsideFooter() { 36218 return this.isNYL && this.isAgentDisclosureUpdatesEnabled; 36219 }, 36220 showDisclosuresPageLink() { 36221 return this.isNYL && this.isAgentDisclosureUpdatesEnabled && this.disclosureLocation === "disclosures_page"; 36222 }, 36223 showDisclosuresAboveNav() { 36224 return this.showDisclosuresInsideFooter && this.showDisclosuresPageLink; 36225 }, 36226 showDisclosuresBelowNav() { 36227 return this.showDisclosuresInsideFooter && !this.showDisclosuresPageLink; 36228 }, 36229 hasFooterNav() { 36230 return this.pageTree.length > 1; 36231 }, 36232 blockClasses() { 36233 const classList = []; 36234 if (this.isBuilder) { 36235 classList.push("footer__pointer_all"); 36236 } 36237 if (this.showDisclosuresInsideFooter) { 36238 classList.push("footer--disclosures-inside-footer"); 36239 if (!this.hasFooterNav) { 36240 classList.push("footer--disclosures-no-nav"); 36241 } 36242 } 36243 return classList; 36244 }, 36245 pageTree() { 36246 var _a, _b, _c;
36247 try { 36248 const pageTree = ((_a = this == null ? void 0 : this.site) == null ? void 0 : _a.pages.filter( 36249 (p2) => { 36250 var _a2, _b2; 36251 return !p2.isPrivate && !p2.parentPageId && ((_a2 = this == null ? void 0 : this.site) == null ? void 0 : _a2.homepageId) != p2.id && !((_b2 = getPageSettings(p2)) == null ? void 0 : _b2.isNavButton); 36252 } 36253 )) || []; 36254 const navButton = (_c = (_b = this == null ? void 0 : this.site) == null ? void 0 : _b.pages) == null ? void 0 : _c.find( 36255 (p2) => { 36256 var _a2; 36257 return (_a2 = getPageSettings(p2)) == null ? void 0 : _a2.isNavButton; 36258 } 36259 ); 36260 if (navButton) { 36261 pageTree.push(navButton); 36262 } 36263 return pageTree; 36264 } catch (err) { 36265 return []; 36266 } 36267 }, 36268 footer() { 36269 var _a; 36270 return ((_a = this.site) == null ? void 0 : _a.footer) || {}; 36271 }, 36272 clonedSite() { 36273 const site = this.dataSite; 36274 if (!site) return null; 36275 const year = (/* @__PURE__ */ new Date()).getFullYear(); 36276 const needsCopyright = this.requiresSecuritiesDisclosure; 36277 return { year, needsCopyright, ...site }; 36278 }, 36279 copyright() { 36280 return renderData(this.footer.copyright, this.clonedSite); 36281 }, 36282 copyrightText() { 36283 var _a; 36284 return renderData( 36285 ((_a = this.footer) == null ? void 0 : _a.copyrightText) || "", 36286 this.clonedSite 36287 ); 36288 }, 36289 showFooter() { 36290 return this.footer.showFooter || false; 36291 }, 36292 showCopyright() { 36293 return this.footer.showCopyright || false; 36294 }, 36295 isCenterForm() { 36296 return this.footer.component === "center-aligned-form"; 36297 }, 36298 showForm() { 36299 const formTypes = ["left-aligned-form", "center-aligned-form"]; 36300 return formTypes.includes(this.footer.component); 36301 }, 36302 showImage() { 36303 const imageTypes = [ 36304 "large-image-three-contact", 36305 "small-image-three-contact" 36306 ]; 36307 return imageTypes.includes(this.footer.component); 36308 }, 36309 showContacts() { 36310 const contactTypes = [ 36311 "large-image-three-contact", 36312 "small-image-three-contact", 36313 "center-logo-two-contact", 36314 "top-logo-three-contact", 36315 "left-logo-three-contact", 36316 "left-logo-stack-contact", 36317 "center-logo-stack-contact" 36318 ]; 36319 return contactTypes.includes(this.footer.component); 36320 }, 36321 isLargeImage() { 36322 return this.footer.component === "large-image-three-contact"; 36323 }, 36324 image() { 36325 if (!this.showImage) { 36326 return {}; 36327 } 36328 return this.footer.image || { 36329 src: "https://f92core-nylwebsites.azureedge.net/3/uploads/Image-Placeholder-500x500.png", 36330 alt: "" 36331 }; 36332 }, 36333 imageClass() { 36334 if (!this.showImage) { 36335 return ""; 36336 } 36337 return this.isLargeImage ? "footer__image--large" : "footer__image--small"; 36338 }, 36339 formSettings() { 36340 return { 36341 location: "footer", 36342 type: "form", 36343 formType: "agentCustom", 36344 variants: { 36345 buttonAlign: this.isCenterForm ? "button-center" : "button-left" 36346 } 36347 }; 36348 }, 36349 formHeadline() { 36350 return this.footer.formHeadline; 36351 }, 36352 navItems() { 36353 var _a, _b; 36354 return ((_b = (_a = this == null ? void 0 : this.site) == null ? void 0 : _a.navigation) == null ? void 0 : _b.links) || []; 36355 }, 36356 isFooterMobile() { 36357 return (this.isBuilderMobile || this.isMobile) ?? false; 36358 }, 36359 isLogoLeft() { 36360 return !this.showForm && !this.showImage && !this.isLogoCenter && !this.isLogoTop || !this.isLogoRight; 36361 }, 36362 isLogoRight() { 36363 return !this.isCenterForm || this.isLargeImage; 36364 }, 36365 isLogoCenter() { 36366 const contactTypes = [ 36367 "center-logo-two-contact", 36368 "center-logo-stack-contact" 36369 ]; 36370 return contactTypes.includes(this.footer.component); 36371 }, 36372 isLogoTop() { 36373 return this.footer.component === "top-logo-three-contact"; 36374 } 36375 }, 36376 methods: { 36377 handleToggle() { 36378 if (this.isBuilder && this.isEditable && !this.state.interface.isLeftRailClosing) { 36379 if (!this.state.interface.activeSidebarKey) { 36380 this.commit("interface/toggleActiveSidebarKey", "footer"); 36381 } else { 36382 this.commit("interface/setActiveSidebarKey"); 36383 } 36384 this.commit( 36385 "interface/setRightRailOpening", 36386 !this.state.interface.isRightRailOpening 36387 ); 36388 this.commit("site/clearSelectedBlockIds"); 36389 setTimeout(() => { 36390 const targetElement = document.querySelector( 36391 ".editor-main-navigation" 36392 ); 36393 if (targetElement) 36394 targetElement.scrollIntoView({ behavior: "smooth" }); 36395 }, 500); 36396 } 36397 } 36398 } 36399}; 36400const _hoisted_1$42 = { class: "footer__top" }; 36401const _hoisted_2$3H = { class: "navbar" }; 36402const _hoisted_3$o = { class: "nav" }; 36403const _hoisted_4$i = { class: "nav-left" }; 36404const _hoisted_5$h = { key: 0 }; 36405const _hoisted_6$a = { 36406 key: 0, 36407 "data-testid": "footer-image-expired", 36408 class: "expired-content", 36409 "aria-hidden": "true" 36410}; 36411const _hoisted_7$9 = { key: 1 }; 36412const _hoisted_8$9 = { 36413 key: 2, 36414 class: "footer__form" 36415}; 36416const _hoisted_9$8 = { 36417 key: 0,
36418 class: "nav-center" 36419}; 36420const _hoisted_10$6 = { key: 0 }; 36421const _hoisted_11$5 = { 36422 key: 0, 36423 class: "footer__form" 36424}; 36425const _hoisted_12$5 = { class: "nav-right" }; 36426const _hoisted_13$5 = { class: "footer__top--right" }; 36427const _hoisted_14$5 = { 36428 key: 1, 36429 "aria-label": "Footer navigation" 36430}; 36431const _hoisted_15$5 = { 36432 class: "subnav", 36433 "aria-label": "Site pages" 36434}; 36435const _hoisted_16$5 = { 36436 class: "copyright-section", 36437 role: "region", 36438 "aria-label": "Copyright information" 36439}; 36440const _hoisted_17$4 = { class: "copyright-text" }; 36441const _hoisted_18$4 = { key: 0 }; 36442const _hoisted_19$4 = ["innerHTML"]; 36443function _sfc_render$3A(_ctx, _cache, $props, $setup, $data, $options) { 36444 const _component_CoreBlockFooterDisclosures = __nuxt_component_0$d; 36445 const _component_CoreBlockFooterBanner = __nuxt_component_1$6; 36446 const _component_CoreBlock = _sfc_main$4x; 36447 const _component_CoreBlockFooterSocialLinks = __nuxt_component_3$2; 36448 const _component_CoreBlockFooterLogo = __nuxt_component_4$1; 36449 const _component_CoreBlockFooterContactGroup = __nuxt_component_5; 36450 const _component_CoreBlockNavItem = _sfc_main$4a; 36451 const _component_NuxtLink = __nuxt_component_2$5; 36452 const _component_CoreBlockFooterOneTrust = __nuxt_component_8; 36453 const _component_CoreBlockFooterBackground = __nuxt_component_9; 36454 return withDirectives((openBlock(), createElementBlock("footer", { 36455 class: normalizeClass(["footer", $options.blockClasses]), 36456 role: "contentinfo", 36457 "aria-label": "Footer", 36458 onClick: _cache[0] || (_cache[0] = (...args) => $options.handleToggle && $options.handleToggle(...args)) 36459 }, [ 36460 $options.isNYL && !$options.showDisclosuresInsideFooter ? (openBlock(), createBlock(_component_CoreBlockFooterDisclosures, { 36461 key: 0, 36462 site: $props.site, 36463 "is-mobile": $options.isFooterMobile, 36464 "show-disclosures-page-link": $options.showDisclosuresPageLink 36465 }, null, 8, ["site", "is-mobile", "show-disclosures-page-link"])) : createCommentVNode("", true), 36466 $options.requiresSecuritiesDisclosure ? (openBlock(), createBlock(_component_CoreBlockFooterBanner, { 36467 key: 1, 36468 site: $props.site 36469 }, null, 8, ["site"])) : createCommentVNode("", true), 36470 createVNode(_component_CoreBlockFooterBackground, { footer: $options.footer }, { 36471 default: withCtx(() => [ 36472 createBaseVNode("div", _hoisted_1$42, [ 36473 createBaseVNode("div", _hoisted_2$3H, [ 36474 createBaseVNode("nav", _hoisted_3$o, [ 36475 createBaseVNode("div", _hoisted_4$i, [ 36476 $options.showImage ? (openBlock(), createElementBlock("div", _hoisted_5$h, [ 36477 $options.image.src ? (openBlock(), createElementBlock("div", { 36478 key: 0, 36479 class: normalizeClass($options.imageClass) 36480 }, [ 36481 $setup.isExpired ? (openBlock(), createElementBlock("div", _hoisted_6$a)) : (openBlock(), createBlock(_component_CoreBlock, { 36482 key: 1, 36483 settings: { 36484 type: "image", 36485 src: $options.image 36486 } 36487 }, null, 8, ["settings"])) 36488 ], 2)) : createCommentVNode("", true), 36489 $options.isLargeImage ? (openBlock(), createBlock(_component_CoreBlockFooterSocialLinks, { 36490 key: 1, 36491 footer: $options.footer, 36492 "cloned-site": $options.clonedSite, 36493 "is-footer-mobile": $options.isFooterMobile 36494 }, null, 8, ["footer", "cloned-site", "is-footer-mobile"])) : createCommentVNode("", true) 36495 ])) : createCommentVNode("", true), 36496 $options.showImage && $options.isLargeImage ? (openBlock(), createElementBlock("div", _hoisted_7$9, [ 36497 createVNode(_component_CoreBlockFooterLogo, { 36498 site: $props.site, 36499 "is-footer-mobile": $options.isFooterMobile 36500 }, null, 8, ["site", "is-footer-mobile"]), 36501 createVNode(_component_CoreBlockFooterContactGroup, { 36502 site: $setup.dataSite, 36503 "is-footer-mobile": $options.isFooterMobile 36504 }, null, 8, ["site", "is-footer-mobile"]) 36505 ])) : createCommentVNode("", true), 36506 $options.showForm && !$options.isCenterForm ? (openBlock(), createElementBlock("div", _hoisted_8$9, [ 36507 createVNode(_component_CoreBlock, { 36508 settings: {
36509 type: "rich-text", 36510 bodyText: $options.formHeadline 36511 } 36512 }, null, 8, ["settings"]), 36513 createVNode(_component_CoreBlock, { 36514 settings: $options.formSettings, 36515 "is-editable": $props.isEditable 36516 }, null, 8, ["settings", "is-editable"]) 36517 ])) : createCommentVNode("", true), 36518 $options.isLogoLeft ? (openBlock(), createBlock(_component_CoreBlockFooterLogo, { 36519 key: 3, 36520 site: $props.site, 36521 "is-footer-mobile": $options.isFooterMobile 36522 }, null, 8, ["site", "is-footer-mobile"])) : createCommentVNode("", true) 36523 ]), 36524 $options.showContacts || $options.showForm ? (openBlock(), createElementBlock("div", _hoisted_9$8, [ 36525 createBaseVNode("div", null, [ 36526 $options.isLogoTop ? (openBlock(), createElementBlock("div", _hoisted_10$6, [ 36527 createVNode(_component_CoreBlockFooterLogo, { 36528 site: $props.site, 36529 "is-footer-mobile": $options.isFooterMobile 36530 }, null, 8, ["site", "is-footer-mobile"]), 36531 createVNode(_component_CoreBlockFooterSocialLinks, { 36532 footer: $options.footer, 36533 "cloned-site": $options.clonedSite, 36534 "is-footer-mobile": $options.isFooterMobile, 36535 align: "center" 36536 }, null, 8, ["footer", "cloned-site", "is-footer-mobile"]) 36537 ])) : createCommentVNode("", true), 36538 $options.showContacts && !$options.isLargeImage ? (openBlock(), createBlock(_component_CoreBlockFooterContactGroup, { 36539 key: 1, 36540 site: $setup.dataSite, 36541 "is-footer-mobile": $options.isFooterMobile 36542 }, null, 8, ["site", "is-footer-mobile"])) : createCommentVNode("", true) 36543 ]), 36544 $options.showForm && $options.isCenterForm ? (openBlock(), createElementBlock("div", _hoisted_11$5, [ 36545 createVNode(_component_CoreBlock, { 36546 settings: { 36547 type: "rich-text", 36548 bodyText: $options.formHeadline 36549 } 36550 }, null, 8, ["settings"]), 36551 createVNode(_component_CoreBlock, { 36552 settings: $options.formSettings, 36553 "is-editable": $props.isEditable 36554 }, null, 8, ["settings", "is-editable"]) 36555 ])) : createCommentVNode("", true) 36556 ])) : createCommentVNode("", true), 36557 createBaseVNode("div", _hoisted_12$5, [ 36558 createBaseVNode("div", _hoisted_13$5, [ 36559 ($options.showForm || $options.showImage) && $options.isLogoRight && !$options.isLargeImage ? (openBlock(), createBlock(_component_CoreBlockFooterLogo, { 36560 key: 0, 36561 class: "mb-4", 36562 site: $props.site, 36563 "is-footer-mobile": $options.isFooterMobile 36564 }, null, 8, ["site", "is-footer-mobile"])) : createCommentVNode("", true), 36565 !$options.isLargeImage && !$options.isLogoTop && !$options.isLogoCenter ? (openBlock(), createBlock(_component_CoreBlockFooterSocialLinks, { 36566 key: 1, 36567 footer: $options.footer, 36568 "cloned-site": $options.clonedSite, 36569 "is-footer-mobile": $options.isFooterMobile, 36570 align: "right" 36571 }, null, 8, ["footer", "cloned-site", "is-footer-mobile"])) : createCommentVNode("", true) 36572 ]) 36573 ]) 36574 ]) 36575 ]) 36576 ]), 36577 $options.showDisclosuresAboveNav ? (openBlock(), createBlock(_component_CoreBlockFooterDisclosures, { 36578 key: 0, 36579 site: $props.site, 36580 "is-mobile": $options.isFooterMobile, 36581 "show-disclosures-page-link": $options.showDisclosuresPageLink 36582 }, null, 8, ["site", "is-mobile", "show-disclosures-page-link"])) : createCommentVNode("", true), 36583 $options.hasFooterNav ? (openBlock(), createElementBlock("nav", _hoisted_14$5, [ 36584 createBaseVNode("ul", _hoisted_15$5, [ 36585 (openBlock(true), createElementBlock(Fragment, null, renderList($options.pageTree, (pageItem, index2) => { 36586 return openBlock(), createBlock(_component_CoreBlockNavItem, { 36587 key: pageItem.linkText + pageItem.linkUrl + index2 || index2, 36588 site: $props.site, 36589 navitem: pageItem, 36590 "is-footer": true, 36591 class: "navbar_item navbar_item--dropdown", 36592 "is-mobile": $options.isFooterMobile, 36593 "is-editable": $props.isEditable 36594 }
36594, null, 8, ["site", "navitem", "is-mobile", "is-editable"]); 36595 }), 128)) 36596 ]) 36597 ])) : createCommentVNode("", true), 36598 $options.showDisclosuresBelowNav ? (openBlock(), createBlock(_component_CoreBlockFooterDisclosures, { 36599 key: 2, 36600 site: $props.site, 36601 "is-mobile": $options.isFooterMobile, 36602 "show-disclosures-page-link": $options.showDisclosuresPageLink 36603 }, null, 8, ["site", "is-mobile", "show-disclosures-page-link"])) : createCommentVNode("", true), 36604 withDirectives(createBaseVNode("div", _hoisted_16$5, [ 36605 withDirectives(createBaseVNode("div", { 36606 class: normalizeClass(["copyright", { "disclosures--mobile": $options.isFooterMobile }]) 36607 }, [ 36608 createBaseVNode("span", _hoisted_17$4, [ 36609 $options.isNYL ? (openBlock(), createElementBlock("p", _hoisted_18$4, [ 36610 createVNode(_component_NuxtLink, { 36611 rel: "noopener noreferrer nofollow", 36612 to: "/copyright", 36613 tabindex: "0", 36614 "aria-label": $options.copyrightText 36615 }, { 36616 default: withCtx(() => [ 36617 createTextVNode(toDisplayString($options.copyrightText), 1) 36618 ]), 36619 _: 1 36620 }, 8, ["aria-label"]) 36621 ])) : createCommentVNode("", true), 36622 createBaseVNode("span", { innerHTML: $options.copyright }, null, 8, _hoisted_19$4) 36623 ]) 36624 ], 2), [ 36625 [vShow, $options.copyright] 36626 ]) 36627 ], 512), [ 36628 [vShow, $options.showCopyright] 36629 ]), 36630 createVNode(_component_CoreBlockFooterOneTrust, { 36631 site: $props.site, 36632 "is-core-lite": $setup.isCoreLite 36633 }, null, 8, ["site", "is-core-lite"]) 36634 ]), 36635 _: 1 36636 }, 8, ["footer"]) 36637 ], 2)), [ 36638 [vShow, $options.showFooter] 36639 ]); 36640} 36641const __nuxt_component_2$1 = /* @__PURE__ */ _export_sfc(_sfc_main$46, [["render", _sfc_render$3A]]); 36642const CoreBlockFooter$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 36643 __proto__: null, 36644 default: __nuxt_component_2$1 36645}, Symbol.toStringTag, { value: "Module" })); 36646const _hoisted_1$41 = { class: "anchor_link_nav-wrapper" }; 36647const _hoisted_2$3G = ["title", "onClick"]; 36648const _sfc_main$45 = { 36649 __name: "CoreAnchorLinkNavigation", 36650 props: { 36651 settings: { 36652 type: Object, 36653 default: () => ({}) 36654 }, 36655 dataSite: { 36656 type: Object, 36657 default: () => ({}) 36658 }, 36659 isEditable: { 36660 type: Boolean, 36661 default: false 36662 } 36663 }, 36664 setup(__props) { 36665 const props = __props; 36666 const selectedIndex = ref(0); 36667 const offset = ref(0); 36668 const isFixed = ref(false); 36669 const links = computed(() => { 36670 var _a; 36671 return ((_a = props.settings) == null ? void 0 : _a.anchorLinks) || []; 36672 }); 36673 const isTop = computed( 36674 () => { 36675 var _a, _b, _c, _d; 36676 return ((_b = (_a = props.settings) == null ? void 0 : _a.variants) == null ? void 0 : _b.isTop) !== void 0 ? (_d = (_c = props.settings) == null ? void 0 : _c.variants) == null ? void 0 : _d.isTop : true; 36677 } 36678 ); 36679 const setSelectedIndex = (value) => { 36680 var _a; 36681 selectedIndex.value = value; 36682 const id = (_a = links.value[value]) == null ? void 0 : _a.section; 36683 if (id) { 36684 const el = document.getElementById(id); 36685 if (el) { 36686 el.scrollIntoView({ behavior: "smooth" }); 36687 } 36688 } 36689 }; 36690 const isSelectedIndex = (value) => selectedIndex.value === value; 36691 const updateOffset = () => { 36692 var _a; 36693 if (props.isEditable) { 36694 return; 36695 } 36696 const element = document.getElementById((_a = props.settings) == null ? void 0 : _a.id); 36697 if (!element) { 36698 return; 36699 } 36700 const rect = element.getBoundingClientRect(); 36701 const top = rect.top; 36702 if (isTop.value) { 36703 const mainNav = document.getElementById("main-nav"); 36704 if (mainNav) { 36705 const mainNavRect = mainNav.getBoundingClientRect(); 36706 const navOffset = mainNavRect.bottom; 36707 offset.value = navOffset; 36708 if (window.pageYOffset <= rect.top + window.pageYOffset - navOffset) { 36709 isFixed.value = false;
36710 } else { 36711 isFixed.value = true; 36712 } 36713 } else { 36714 isFixed.value = top <= 0; 36715 if (window.pageYOffset <= rect.top + window.pageYOffset) { 36716 isFixed.value = true; 36717 } 36718 } 36719 } else { 36720 const height = rect.height; 36721 const windowHeight = window.innerHeight; 36722 isFixed.value = top + height <= windowHeight; 36723 } 36724 }; 36725 onMounted(() => { 36726 updateOffset(); 36727 window.addEventListener("scroll", updateOffset); 36728 }); 36729 onBeforeUnmount(() => { 36730 window.removeEventListener("scroll", updateOffset); 36731 }); 36732 return (_ctx, _cache) => { 36733 return openBlock(), createElementBlock("div", _hoisted_1$41, [ 36734 createBaseVNode("div", { 36735 class: normalizeClass([ 36736 __props.isEditable ? "anchor_link_nav-builder" : "anchor_link_nav", 36737 isTop.value ? "anchor_link_nav-top" : "anchor_link_nav-bottom", 36738 isFixed.value && "anchor_link_nav-fixed" 36739 ]), 36740 style: normalizeStyle(isTop.value ? { top: `${offset.value}px` } : { bottom: `${offset.value}px` }) 36741 }, [ 36742 (openBlock(true), createElementBlock(Fragment, null, renderList(links.value, (link, index2) => { 36743 return openBlock(), createElementBlock("div", { 36744 key: `${link.text}-${link.section}-${index2}`, 36745 title: link.text, 36746 tabindex: 0, 36747 class: normalizeClass([ 36748 isTop.value ? "anchor_link_nav--text-top" : "anchor_link_nav--text-bottom", 36749 isSelectedIndex(index2) ? "anchor_link_nav--text-active" : "anchor_link_nav--text-inactive" 36750 ]), 36751 style: normalizeStyle({ 36752 display: link.text && link.text.length > 0 ? "inherit" : "none" 36753 }), 36754 onClick: ($event) => setSelectedIndex(index2) 36755 }, toDisplayString(link.text), 15, _hoisted_2$3G); 36756 }), 128)) 36757 ], 6), 36758 createBaseVNode("div", { 36759 class: normalizeClass( 36760 isFixed.value ? "anchor_link_nav-placeholder-active" : "anchor_link_nav-placeholder-inactive" 36761 ) 36762 }, null, 2) 36763 ]); 36764 }; 36765 } 36766}; 36767const CoreAnchorLinkNavigation = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 36768 __proto__: null, 36769 default: _sfc_main$45 36770}, Symbol.toStringTag, { value: "Module" })); 36771const millisecondsInWeek = 6048e5; 36772const millisecondsInDay = 864e5; 36773const millisecondsInMinute = 6e4; 36774const millisecondsInHour = 36e5; 36775const constructFromSymbol = Symbol.for("constructDateFrom"); 36776function constructFrom(date, value) { 36777 if (typeof date === "function") return date(value); 36778 if (date && typeof date === "object" && constructFromSymbol in date) 36779 return date[constructFromSymbol](value); 36780 if (date instanceof Date) return new date.constructor(value); 36781 return new Date(value); 36782} 36783function toDate(argument, context) { 36784 return constructFrom(context || argument, argument); 36785} 36786let defaultOptions = {}; 36787function getDefaultOptions() { 36788 return defaultOptions; 36789} 36790function startOfWeek(date, options) { 36791 var _a, _b, _c, _d; 36792 const defaultOptions2 = getDefaultOptions(); 36793 const weekStartsOn = (options == null ? void 0 : options.weekStartsOn) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) ?? defaultOptions2.weekStartsOn ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.weekStartsOn) ?? 0; 36794 const _date = toDate(date, options == null ? void 0 : options.in); 36795 const day = _date.getDay(); 36796 const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; 36797 _date.setDate(_date.getDate() - diff); 36798 _date.setHours(0, 0, 0, 0); 36799 return _date; 36800} 36801function startOfISOWeek(date, options) { 36802 return startOfWeek(date, { ...options, weekStartsOn: 1 }); 36803} 36804function getISOWeekYear(date, options) { 36805 const _date = toDate(date, options == null ? void 0 : options.in); 36806 const year = _date.getFullYear(); 36807 const fourthOfJanuaryOfNextYear = constructFrom(_date, 0); 36808 fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); 36809 fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); 36810 const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear); 36811 const fourthOfJanuaryOfThisYear = constructFrom(_date, 0); 36812 fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4); 36813 fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0); 36814 const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear); 36815 if (_date.getTime() >= startOfNextYear.getTime()) { 36816 return year + 1; 36817 } else if (_date.getTime() >= startOfThisYear.getTime()) { 36818 return year; 36819 } else { 36820 return year - 1; 36821 } 36822} 36823function getTimezoneOffsetInMilliseconds(date) { 36824 const _date = toDate(date);
36825 const utcDate = new Date( 36826 Date.UTC( 36827 _date.getFullYear(), 36828 _date.getMonth(), 36829 _date.getDate(), 36830 _date.getHours(), 36831 _date.getMinutes(), 36832 _date.getSeconds(), 36833 _date.getMilliseconds() 36834 ) 36835 ); 36836 utcDate.setUTCFullYear(_date.getFullYear()); 36837 return +date - +utcDate; 36838} 36839function normalizeDates(context, ...dates) { 36840 const normalize = constructFrom.bind( 36841 null, 36842 dates.find((date) => typeof date === "object") 36843 ); 36844 return dates.map(normalize); 36845} 36846function startOfDay(date, options) { 36847 const _date = toDate(date, options == null ? void 0 : options.in); 36848 _date.setHours(0, 0, 0, 0); 36849 return _date; 36850} 36851function differenceInCalendarDays(laterDate, earlierDate, options) { 36852 const [laterDate_, earlierDate_] = normalizeDates( 36853 options == null ? void 0 : options.in, 36854 laterDate, 36855 earlierDate 36856 ); 36857 const laterStartOfDay = startOfDay(laterDate_); 36858 const earlierStartOfDay = startOfDay(earlierDate_); 36859 const laterTimestamp = +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay); 36860 const earlierTimestamp = +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay); 36861 return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay); 36862} 36863function startOfISOWeekYear(date, options) { 36864 const year = getISOWeekYear(date, options); 36865 const fourthOfJanuary = constructFrom(date, 0); 36866 fourthOfJanuary.setFullYear(year, 0, 4); 36867 fourthOfJanuary.setHours(0, 0, 0, 0); 36868 return startOfISOWeek(fourthOfJanuary); 36869} 36870function isDate(value) { 36871 return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]"; 36872} 36873function isValid(date) { 36874 return !(!isDate(date) && typeof date !== "number" || isNaN(+toDate(date))); 36875} 36876function startOfYear(date, options) { 36877 const date_ = toDate(date, options == null ? void 0 : options.in); 36878 date_.setFullYear(date_.getFullYear(), 0, 1); 36879 date_.setHours(0, 0, 0, 0); 36880 return date_; 36881} 36882const formatDistanceLocale = { 36883 lessThanXSeconds: { 36884 one: "less than a second", 36885 other: "less than {{count}} seconds" 36886 }, 36887 xSeconds: { 36888 one: "1 second", 36889 other: "{{count}} seconds" 36890 }, 36891 halfAMinute: "half a minute", 36892 lessThanXMinutes: { 36893 one: "less than a minute", 36894 other: "less than {{count}} minutes" 36895 }, 36896 xMinutes: { 36897 one: "1 minute", 36898 other: "{{count}} minutes" 36899 }, 36900 aboutXHours: { 36901 one: "about 1 hour", 36902 other: "about {{count}} hours" 36903 }, 36904 xHours: { 36905 one: "1 hour", 36906 other: "{{count}} hours" 36907 }, 36908 xDays: { 36909 one: "1 day", 36910 other: "{{count}} days" 36911 }, 36912 aboutXWeeks: { 36913 one: "about 1 week", 36914 other: "about {{count}} weeks" 36915 }, 36916 xWeeks: { 36917 one: "1 week", 36918 other: "{{count}} weeks" 36919 }, 36920 aboutXMonths: { 36921 one: "about 1 month", 36922 other: "about {{count}} months" 36923 }, 36924 xMonths: { 36925 one: "1 month", 36926 other: "{{count}} months" 36927 }, 36928 aboutXYears: { 36929 one: "about 1 year", 36930 other: "about {{count}} years" 36931 }, 36932 xYears: { 36933 one: "1 year", 36934 other: "{{count}} years" 36935 }, 36936 overXYears: { 36937 one: "over 1 year", 36938 other: "over {{count}} years" 36939 }, 36940 almostXYears: { 36941 one: "almost 1 year", 36942 other: "almost {{count}} years" 36943 } 36944}; 36945const formatDistance = (token, count, options) => { 36946 let result; 36947 const tokenValue = formatDistanceLocale[token]; 36948 if (typeof tokenValue === "string") { 36949 result = tokenValue; 36950 } else if (count === 1) { 36951 result = tokenValue.one; 36952 } else { 36953 result = tokenValue.other.replace("{{count}}", count.toString()); 36954 } 36955 if (options == null ? void 0 : options.addSuffix) { 36956 if (options.comparison && options.comparison > 0) { 36957 return "in " + result; 36958 } else { 36959 return result + " ago"; 36960 } 36961 } 36962 return result; 36963}; 36964function buildFormatLongFn(args) { 36965 return (options = {}) => { 36966 const width = options.width ? String(options.width) : args.defaultWidth; 36967 const format2 = args.formats[width] || args.formats[args.defaultWidth]; 36968 return format2; 36969 }; 36970} 36971const dateFormats = { 36972 full: "EEEE, MMMM do, y", 36973 long: "MMMM do, y", 36974 medium: "MMM d, y", 36975 short: "MM/dd/yyyy" 36976}; 36977const timeFormats = { 36978 full: "h:mm:ss a zzzz", 36979 long: "h:mm:ss a z", 36980 medium: "h:mm:ss a", 36981 short: "h:mm a" 36982}; 36983const dateTimeFormats = { 36984 full: "{{date}} 'at' {{time}}", 36985 long: "{{date}} 'at' {{time}}", 36986 medium: "{{date}}, {{time}}", 36987 short: "{{date}}, {{time}}" 36988}; 36989const formatLong = { 36990 date: buildFormatLongFn({ 36991 formats: dateFormats, 36992 defaultWidth: "full" 36993 }), 36994 time: buildFormatLongFn({ 36995 formats: timeFormats, 36996 defaultWidth: "full" 36997 }), 36998 dateTime: buildFormatLongFn({ 36999 formats: dateTimeFormats, 37000 defaultWidth: "full" 37001 }) 37002}; 37003const formatRelativeLocale = { 37004 lastWeek: "'last' eeee 'at' p", 37005 yesterday: "'yesterday at' p", 37006 today: "'today at' p", 37007 tomorrow: "'tomorrow at' p", 37008 nextWeek: "eeee 'at' p", 37009 other: "P" 37010}; 37011const formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token]; 37012function buildLocalizeFn(args) { 37013 return (value, options) => { 37014 const context = (options == null ? void 0 : options.context) ? String(options.context) : "standalone"; 37015 let valuesArray; 37016 if (context === "formatting" && args.formattingValues) { 37017 const defaultWidth = args.defaultFormattingWidth || args.defaultWidth; 37018 const width = (options == null ? void 0 : options.width) ? String(options.width) : defaultWidth; 37019 valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; 37020 } else { 37021 const defaultWidth = args.defaultWidth; 37022 const width = (options == null ? void 0 : options.width) ? String(options.width) : args.defaultWidth; 37023 valuesArray = args.values[width] || args.values[defaultWidth]; 37024 } 37025 const index2 = args.argumentCallback ? args.argumentCallback(value) : value; 37026 return valuesArray[index2]; 37027 }; 37028} 37029const eraValues = { 37030 narrow: ["B", "A"], 37031 abbreviated: ["BC", "AD"], 37032 wide: ["Before Christ", "Anno Domini"] 37033}; 37034const quarterValues = { 37035 narrow: ["1", "2", "3", "4"], 37036 abbreviated: ["Q1", "Q2", "Q3", "Q4"], 37037 wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] 37038}; 37039const monthValues = { 37040 narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], 37041 abbreviated: [ 37042 "Jan", 37043 "Feb", 37044 "Mar", 37045 "Apr", 37046 "May", 37047 "Jun", 37048 "Jul", 37049 "Aug", 37050 "Sep", 37051 "Oct", 37052 "Nov", 37053 "Dec" 37054 ], 37055 wide: [ 37056 "January", 37057 "February", 37058 "March", 37059 "April", 37060 "May", 37061 "June", 37062 "July", 37063 "August", 37064 "September", 37065 "October", 37066 "November", 37067 "December" 37068 ] 37069}; 37070const dayValues = { 37071 narrow: ["S", "M", "T", "W", "T", "F", "S"], 37072 short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], 37073 abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], 37074 wide: [ 37075 "Sunday", 37076 "Monday", 37077 "Tuesday", 37078 "Wednesday", 37079 "Thursday", 37080 "Friday", 37081 "Saturday" 37082 ] 37083}; 37084const dayPeriodValues = { 37085 narrow: { 37086 am: "a", 37087 pm: "p", 37088 midnight: "mi", 37089 noon: "n", 37090 morning: "morning", 37091 afternoon: "afternoon", 37092 evening: "evening", 37093 night: "night" 37094 }, 37095 abbreviated: { 37096 am: "AM", 37097 pm: "PM", 37098 midnight: "midnight", 37099 noon: "noon", 37100 morning: "morning", 37101 afternoon: "afternoon", 37102 evening: "evening", 37103 night: "night" 37104 }, 37105 wide: { 37106 am: "a.m.", 37107 pm: "p.m.", 37108 midnight: "midnight", 37109 noon: "noon", 37110 morning: "morning", 37111 afternoon: "afternoon", 37112 evening: "evening", 37113 night: "night" 37114 } 37115}; 37116const formattingDayPeriodValues = { 37117 narrow: { 37118 am: "a", 37119 pm: "p", 37120 midnight: "mi", 37121 noon: "n", 37122 morning: "in the morning", 37123 afternoon: "in the afternoon", 37124 evening: "in the evening", 37125 night: "at night" 37126 }, 37127 abbreviated: { 37128 am: "AM", 37129 pm: "PM", 37130 midnight: "midnight", 37131 noon: "noon", 37132 morning: "in the morning", 37133 afternoon: "in the afternoon", 37134 evening: "in the evening", 37135 night: "at night" 37136 }, 37137 wide: { 37138 am: "a.m.", 37139 pm: "p.m.", 37140 midnight: "midnight", 37141 noon: "noon", 37142 morning: "in the morning", 37143 afternoon: "in the afternoon", 37144 evening: "in the evening", 37145 night: "at night" 37146 } 37147}; 37148const ordinalNumber = (dirtyNumber, _options) => { 37149 const number = Number(dirtyNumber); 37150 const rem100 = number % 100; 37151 if (rem100 > 20 || rem100 < 10) { 37152 switch (rem100 % 10) { 37153 case 1: 37154 return number + "st"; 37155 case 2: 37156 return number + "nd"; 37157 case 3: 37158 return number + "rd"; 37159 } 37160 } 37161 return number + "th"; 37162}; 37163const localize = { 37164 ordinalNumber, 37165 era: buildLocalizeFn({ 37166 values: eraValues, 37167 defaultWidth: "wide" 37168 }), 37169 quarter: buildLocalizeFn({ 37170 values: quarterValues, 37171 defaultWidth: "wide", 37172 argumentCallback: (quarter) => quarter - 1 37173 }), 37174 month: buildLocalizeFn({ 37175 values: monthValues, 37176 defaultWidth: "wide" 37177 }), 37178 day: buildLocalizeFn({ 37179 values: dayValues, 37180 defaultWidth: "wide" 37181 }), 37182 dayPeriod: buildLocalizeFn({ 37183 values: dayPeriodValues, 37184 defaultWidth: "wide", 37185 formattingValues: formattingDayPeriodValues, 37186 defaultFormattingWidth: "wide" 37187 }) 37188}; 37189function buildMatchFn(args) { 37190 return (string, options = {}) => { 37191 const width = options.width; 37192 const matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; 37193 const matchResult = string.match(matchPattern); 37194 if (!matchResult) { 37195 return null; 37196 } 37197 const matchedString = matchResult[0]; 37198 const parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
37199 const key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString)) : ( 37200 // [TODO] -- I challenge you to fix the type 37201 findKey(parsePatterns, (pattern) => pattern.test(matchedString)) 37202 ); 37203 let value; 37204 value = args.valueCallback ? args.valueCallback(key) : key; 37205 value = options.valueCallback ? ( 37206 // [TODO] -- I challenge you to fix the type 37207 options.valueCallback(value) 37208 ) : value; 37209 const rest = string.slice(matchedString.length); 37210 return { value, rest }; 37211 }; 37212} 37213function findKey(object, predicate) { 37214 for (const key in object) { 37215 if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) { 37216 return key; 37217 } 37218 } 37219 return void 0; 37220} 37221function findIndex(array, predicate) { 37222 for (let key = 0; key < array.length; key++) { 37223 if (predicate(array[key])) { 37224 return key; 37225 } 37226 } 37227 return void 0; 37228} 37229function buildMatchPatternFn(args) { 37230 return (string, options = {}) => { 37231 const matchResult = string.match(args.matchPattern); 37232 if (!matchResult) return null; 37233 const matchedString = matchResult[0]; 37234 const parseResult = string.match(args.parsePattern); 37235 if (!parseResult) return null; 37236 let value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; 37237 value = options.valueCallback ? options.valueCallback(value) : value; 37238 const rest = string.slice(matchedString.length); 37239 return { value, rest }; 37240 }; 37241} 37242const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; 37243const parseOrdinalNumberPattern = /\d+/i; 37244const matchEraPatterns = { 37245 narrow: /^(b|a)/i, 37246 abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, 37247 wide: /^(before christ|before common era|anno domini|common era)/i 37248}; 37249const parseEraPatterns = { 37250 any: [/^b/i, /^(a|c)/i] 37251}; 37252const matchQuarterPatterns = { 37253 narrow: /^[1234]/i, 37254 abbreviated: /^q[1234]/i, 37255 wide: /^[1234](th|st|nd|rd)? quarter/i 37256}; 37257const parseQuarterPatterns = { 37258 any: [/1/i, /2/i, /3/i, /4/i] 37259}; 37260const matchMonthPatterns = { 37261 narrow: /^[jfmasond]/i, 37262 abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, 37263 wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i 37264}; 37265const parseMonthPatterns = { 37266 narrow: [ 37267 /^j/i, 37268 /^f/i, 37269 /^m/i, 37270 /^a/i, 37271 /^m/i, 37272 /^j/i, 37273 /^j/i, 37274 /^a/i, 37275 /^s/i, 37276 /^o/i, 37277 /^n/i, 37278 /^d/i 37279 ], 37280 any: [ 37281 /^ja/i, 37282 /^f/i, 37283 /^mar/i, 37284 /^ap/i, 37285 /^may/i, 37286 /^jun/i, 37287 /^jul/i, 37288 /^au/i, 37289 /^s/i, 37290 /^o/i, 37291 /^n/i, 37292 /^d/i 37293 ] 37294}; 37295const matchDayPatterns = { 37296 narrow: /^[smtwf]/i, 37297 short: /^(su|mo|tu|we|th|fr|sa)/i, 37298 abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, 37299 wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i 37300}; 37301const parseDayPatterns = { 37302 narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], 37303 any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] 37304}; 37305const matchDayPeriodPatterns = { 37306 narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, 37307 any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i 37308}; 37309const parseDayPeriodPatterns = { 37310 any: { 37311 am: /^a/i, 37312 pm: /^p/i, 37313 midnight: /^mi/i, 37314 noon: /^no/i, 37315 morning: /morning/i, 37316 afternoon: /afternoon/i, 37317 evening: /evening/i, 37318 night: /night/i 37319 } 37320}; 37321const match = { 37322 ordinalNumber: buildMatchPatternFn({ 37323 matchPattern: matchOrdinalNumberPattern, 37324 parsePattern: parseOrdinalNumberPattern, 37325 valueCallback: (value) => parseInt(value, 10) 37326 }), 37327 era: buildMatchFn({ 37328 matchPatterns: matchEraPatterns, 37329 defaultMatchWidth: "wide", 37330 parsePatterns: parseEraPatterns, 37331 defaultParseWidth: "any" 37332 }), 37333 quarter: buildMatchFn({ 37334 matchPatterns: matchQuarterPatterns, 37335 defaultMatchWidth: "wide", 37336 parsePatterns: parseQuarterPatterns, 37337 defaultParseWidth: "any", 37338 valueCallback: (index2) => index2 + 1 37339 }), 37340 month: buildMatchFn({ 37341 matchPatterns: matchMonthPatterns, 37342 defaultMatchWidth: "wide", 37343 parsePatterns: parseMonthPatterns, 37344 defaultParseWidth: "any" 37345 }), 37346 day: buildMatchFn({ 37347 matchPatterns: matchDayPatterns, 37348 defaultMatchWidth: "wide", 37349 parsePatterns: parseDayPatterns, 37350 defaultParseWidth: "any" 37351 }), 37352 dayPeriod: buildMatchFn({ 37353 matchPatterns: matchDayPeriodPatterns, 37354 defaultMatchWidth: "any", 37355 parsePatterns: parseDayPeriodPatterns, 37356 defaultParseWidth: "any" 37357 }) 37358}; 37359const enUS = { 37360 code: "en-US", 37361 formatDistance, 37362 formatLong, 37363 formatRelative, 37364 localize, 37365 match, 37366 options: { 37367 weekStartsOn: 0, 37368 firstWeekContainsDate: 1 37369 } 37370}; 37371function getDayOfYear(date, options) { 37372 const _date = toDate(date, options == null ? void 0 : options.in); 37373 const diff = differenceInCalendarDays(_date, startOfYear(_date)); 37374 const dayOfYear = diff + 1; 37375 return dayOfYear; 37376} 37377function getISOWeek(date, options) { 37378 const _date = toDate(date, options == null ? void 0 : options.in); 37379 const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date); 37380 return Math.round(diff / millisecondsInWeek) + 1; 37381} 37382function getWeekYear(date, options) { 37383 var _a, _b, _c, _d; 37384 const _date = toDate(date, options == null ? void 0 : options.in); 37385 const year = _date.getFullYear(); 37386 const defaultOptions2 = getDefaultOptions(); 37387 const firstWeekContainsDate = (options == null ? void 0 : options.firstWeekContainsDate) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) ?? defaultOptions2.firstWeekContainsDate ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.firstWeekContainsDate) ?? 1; 37388 const firstWeekOfNextYear = constructFrom((options == null ? void 0 : options.in) || date, 0); 37389 firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate); 37390 firstWeekOfNextYear.setHours(0, 0, 0, 0); 37391 const startOfNextYear = startOfWeek(firstWeekOfNextYear, options); 37392 const firstWeekOfThisYear = constructFrom((options == null ? void 0 : options.in) || date, 0); 37393 firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate); 37394 firstWeekOfThisYear.setHours(0, 0, 0, 0); 37395 const startOfThisYear = startOfWeek(firstWeekOfThisYear, options); 37396 if (+_date >= +startOfNextYear) { 37397 return year + 1; 37398 } else if (+_date >= +startOfThisYear) { 37399 return year; 37400 } else { 37401 return year - 1; 37402 } 37403} 37404function startOfWeekYear(date, options) { 37405 var _a, _b, _c, _d; 37406 const defaultOptions2 = getDefaultOptions(); 37407 const firstWeekContainsDate = (options == null ? void 0 : options.firstWeekContainsDate) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) ?? defaultOptions2.firstWeekContainsDate ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.firstWeekContainsDate) ?? 1; 37408 const year = getWeekYear(date, options); 37409 const firstWeek = constructFrom((options == null ? void 0 : options.in) || date, 0); 37410 firstWeek.setFullYear(year, 0, firstWeekContainsDate); 37411 firstWeek.setHours(0, 0, 0, 0); 37412 const _date = startOfWeek(firstWeek, options); 37413 return _date; 37414} 37415function getWeek(date, options) { 37416 const _date = toDate(date, options == null ? void 0 : options.in); 37417 const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options); 37418 return Math.round(diff / millisecondsInWeek) + 1; 37419} 37420function addLeadingZeros(number, targetLength) { 37421 const sign = number < 0 ? "-" : "";
vendor: 4,917 bytes, lines 37422-37585
37422 const output = Math.abs(number).toString().padStart(targetLength, "0"); 37423 return sign + output; 37424} 37425const lightFormatters = { 37426 // Year 37427 y(date, token) { 37428 const signedYear = date.getFullYear(); 37429 const year = signedYear > 0 ? signedYear : 1 - signedYear; 37430 return addLeadingZeros(token === "yy" ? year % 100 : year, token.length); 37431 }, 37432 // Month 37433 M(date, token) { 37434 const month = date.getMonth(); 37435 return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2); 37436 }, 37437 // Day of the month 37438 d(date, token) { 37439 return addLeadingZeros(date.getDate(), token.length); 37440 }, 37441 // AM or PM 37442 a(date, token) { 37443 const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am"; 37444 switch (token) { 37445 case "a": 37446 case "aa": 37447 return dayPeriodEnumValue.toUpperCase(); 37448 case "aaa": 37449 return dayPeriodEnumValue; 37450 case "aaaaa": 37451 return dayPeriodEnumValue[0]; 37452 case "aaaa": 37453 default: 37454 return dayPeriodEnumValue === "am" ? "a.m." : "p.m."; 37455 } 37456 }, 37457 // Hour [1-12] 37458 h(date, token) { 37459 return addLeadingZeros(date.getHours() % 12 || 12, token.length); 37460 }, 37461 // Hour [0-23] 37462 H(date, token) { 37463 return addLeadingZeros(date.getHours(), token.length); 37464 }, 37465 // Minute 37466 m(date, token) { 37467 return addLeadingZeros(date.getMinutes(), token.length); 37468 }, 37469 // Second 37470 s(date, token) { 37471 return addLeadingZeros(date.getSeconds(), token.length); 37472 }, 37473 // Fraction of second 37474 S(date, token) { 37475 const numberOfDigits = token.length; 37476 const milliseconds = date.getMilliseconds(); 37477 const fractionalSeconds = Math.trunc( 37478 milliseconds * Math.pow(10, numberOfDigits - 3) 37479 ); 37480 return addLeadingZeros(fractionalSeconds, token.length); 37481 } 37482}; 37483const dayPeriodEnum = { 37484 midnight: "midnight", 37485 noon: "noon", 37486 morning: "morning", 37487 afternoon: "afternoon", 37488 evening: "evening", 37489 night: "night" 37490}; 37491const formatters = { 37492 // Era 37493 G: function(date, token, localize2) { 37494 const era = date.getFullYear() > 0 ? 1 : 0; 37495 switch (token) { 37496 // AD, BC 37497 case "G": 37498 case "GG": 37499 case "GGG": 37500 return localize2.era(era, { width: "abbreviated" }); 37501 // A, B 37502 case "GGGGG": 37503 return localize2.era(era, { width: "narrow" }); 37504 // Anno Domini, Before Christ 37505 case "GGGG": 37506 default: 37507 return localize2.era(era, { width: "wide" }); 37508 } 37509 }, 37510 // Year 37511 y: function(date, token, localize2) { 37512 if (token === "yo") { 37513 const signedYear = date.getFullYear(); 37514 const year = signedYear > 0 ? signedYear : 1 - signedYear; 37515 return localize2.ordinalNumber(year, { unit: "year" }); 37516 } 37517 return lightFormatters.y(date, token); 37518 }, 37519 // Local week-numbering year 37520 Y: function(date, token, localize2, options) { 37521 const signedWeekYear = getWeekYear(date, options); 37522 const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; 37523 if (token === "YY") { 37524 const twoDigitYear = weekYear % 100; 37525 return addLeadingZeros(twoDigitYear, 2); 37526 } 37527 if (token === "Yo") { 37528 return localize2.ordinalNumber(weekYear, { unit: "year" }); 37529 } 37530 return addLeadingZeros(weekYear, token.length); 37531 }, 37532 // ISO week-numbering year 37533 R: function(date, token) { 37534 const isoWeekYear = getISOWeekYear(date); 37535 return addLeadingZeros(isoWeekYear, token.length); 37536 }, 37537 // Extended year. This is a single number designating the year of this calendar system. 37538 // The main difference between `y` and `u` localizers are B.C. years: 37539 // | Year | `y` | `u` | 37540 // |------|-----|-----| 37541 // | AC 1 | 1 | 1 | 37542 // | BC 1 | 1 | 0 | 37543 // | BC 2 | 2 | -1 | 37544 // Also `yy` always returns the last two digits of a year, 37545 // while `uu` pads single digit years to 2 characters and returns other years unchanged. 37546 u: function(date, token) { 37547 const year = date.getFullYear(); 37548 return addLeadingZeros(year, token.length); 37549 }, 37550 // Quarter 37551 Q: function(date, token, localize2) { 37552 const quarter = Math.ceil((date.getMonth() + 1) / 3); 37553 switch (token) { 37554 // 1, 2, 3, 4 37555 case "Q": 37556 return String(quarter); 37557 // 01, 02, 03, 04 37558 case "QQ": 37559 return addLeadingZeros(quarter, 2); 37560 // 1st, 2nd, 3rd, 4th 37561 case "Qo": 37562 return localize2.ordinalNumber(quarter, { unit: "quarter" }); 37563 // Q1, Q2, Q3, Q4 37564 case "QQQ": 37565 return localize2.quarter(quarter, { 37566 width: "abbreviated", 37567 context: "formatting" 37568 }); 37569 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 37570 case "QQQQQ": 37571 return localize2.quarter(quarter, { 37572 width: "narrow", 37573 context: "formatting" 37574 }); 37575 // 1st quarter, 2nd quarter, ... 37576 case "QQQQ": 37577 default: 37578 return localize2.quarter(quarter, { 37579 width: "wide", 37580 context: "formatting" 37581 }); 37582 } 37583 }, 37584 // Stand-alone quarter 37585 q: function(date, token, localize2) {
vendor: 1,751 bytes, lines 37586-37647
37586 const quarter = Math.ceil((date.getMonth() + 1) / 3); 37587 switch (token) { 37588 // 1, 2, 3, 4 37589 case "q": 37590 return String(quarter); 37591 // 01, 02, 03, 04 37592 case "qq": 37593 return addLeadingZeros(quarter, 2); 37594 // 1st, 2nd, 3rd, 4th 37595 case "qo": 37596 return localize2.ordinalNumber(quarter, { unit: "quarter" }); 37597 // Q1, Q2, Q3, Q4 37598 case "qqq": 37599 return localize2.quarter(quarter, { 37600 width: "abbreviated", 37601 context: "standalone" 37602 }); 37603 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 37604 case "qqqqq": 37605 return localize2.quarter(quarter, { 37606 width: "narrow", 37607 context: "standalone" 37608 }); 37609 // 1st quarter, 2nd quarter, ... 37610 case "qqqq": 37611 default: 37612 return localize2.quarter(quarter, { 37613 width: "wide", 37614 context: "standalone" 37615 }); 37616 } 37617 }, 37618 // Month 37619 M: function(date, token, localize2) { 37620 const month = date.getMonth(); 37621 switch (token) { 37622 case "M": 37623 case "MM": 37624 return lightFormatters.M(date, token); 37625 // 1st, 2nd, ..., 12th 37626 case "Mo": 37627 return localize2.ordinalNumber(month + 1, { unit: "month" }); 37628 // Jan, Feb, ..., Dec 37629 case "MMM": 37630 return localize2.month(month, { 37631 width: "abbreviated", 37632 context: "formatting" 37633 }); 37634 // J, F, ..., D 37635 case "MMMMM": 37636 return localize2.month(month, { 37637 width: "narrow", 37638 context: "formatting" 37639 }); 37640 // January, February, ..., December 37641 case "MMMM": 37642 default: 37643 return localize2.month(month, { width: "wide", context: "formatting" }); 37644 } 37645 }, 37646 // Stand-alone month 37647 L: function(date, token, localize2) {
vendor: 11,725 bytes, lines 37648-38046
37648 const month = date.getMonth(); 37649 switch (token) { 37650 // 1, 2, ..., 12 37651 case "L": 37652 return String(month + 1); 37653 // 01, 02, ..., 12 37654 case "LL": 37655 return addLeadingZeros(month + 1, 2); 37656 // 1st, 2nd, ..., 12th 37657 case "Lo": 37658 return localize2.ordinalNumber(month + 1, { unit: "month" }); 37659 // Jan, Feb, ..., Dec 37660 case "LLL": 37661 return localize2.month(month, { 37662 width: "abbreviated", 37663 context: "standalone" 37664 }); 37665 // J, F, ..., D 37666 case "LLLLL": 37667 return localize2.month(month, { 37668 width: "narrow", 37669 context: "standalone" 37670 }); 37671 // January, February, ..., December 37672 case "LLLL": 37673 default: 37674 return localize2.month(month, { width: "wide", context: "standalone" }); 37675 } 37676 }, 37677 // Local week of year 37678 w: function(date, token, localize2, options) { 37679 const week = getWeek(date, options); 37680 if (token === "wo") { 37681 return localize2.ordinalNumber(week, { unit: "week" }); 37682 } 37683 return addLeadingZeros(week, token.length); 37684 }, 37685 // ISO week of year 37686 I: function(date, token, localize2) { 37687 const isoWeek = getISOWeek(date); 37688 if (token === "Io") { 37689 return localize2.ordinalNumber(isoWeek, { unit: "week" }); 37690 } 37691 return addLeadingZeros(isoWeek, token.length); 37692 }, 37693 // Day of the month 37694 d: function(date, token, localize2) { 37695 if (token === "do") { 37696 return localize2.ordinalNumber(date.getDate(), { unit: "date" }); 37697 } 37698 return lightFormatters.d(date, token); 37699 }, 37700 // Day of year 37701 D: function(date, token, localize2) { 37702 const dayOfYear = getDayOfYear(date); 37703 if (token === "Do") { 37704 return localize2.ordinalNumber(dayOfYear, { unit: "dayOfYear" }); 37705 } 37706 return addLeadingZeros(dayOfYear, token.length); 37707 }, 37708 // Day of week 37709 E: function(date, token, localize2) { 37710 const dayOfWeek = date.getDay(); 37711 switch (token) { 37712 // Tue 37713 case "E": 37714 case "EE": 37715 case "EEE": 37716 return localize2.day(dayOfWeek, { 37717 width: "abbreviated", 37718 context: "formatting" 37719 }); 37720 // T 37721 case "EEEEE": 37722 return localize2.day(dayOfWeek, { 37723 width: "narrow", 37724 context: "formatting" 37725 }); 37726 // Tu 37727 case "EEEEEE": 37728 return localize2.day(dayOfWeek, { 37729 width: "short", 37730 context: "formatting" 37731 }); 37732 // Tuesday 37733 case "EEEE": 37734 default: 37735 return localize2.day(dayOfWeek, { 37736 width: "wide", 37737 context: "formatting" 37738 }); 37739 } 37740 }, 37741 // Local day of week 37742 e: function(date, token, localize2, options) { 37743 const dayOfWeek = date.getDay(); 37744 const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; 37745 switch (token) { 37746 // Numerical value (Nth day of week with current locale or weekStartsOn) 37747 case "e": 37748 return String(localDayOfWeek); 37749 // Padded numerical value 37750 case "ee": 37751 return addLeadingZeros(localDayOfWeek, 2); 37752 // 1st, 2nd, ..., 7th 37753 case "eo": 37754 return localize2.ordinalNumber(localDayOfWeek, { unit: "day" }); 37755 case "eee": 37756 return localize2.day(dayOfWeek, { 37757 width: "abbreviated", 37758 context: "formatting" 37759 }); 37760 // T 37761 case "eeeee": 37762 return localize2.day(dayOfWeek, { 37763 width: "narrow", 37764 context: "formatting" 37765 }); 37766 // Tu 37767 case "eeeeee": 37768 return localize2.day(dayOfWeek, { 37769 width: "short", 37770 context: "formatting" 37771 }); 37772 // Tuesday 37773 case "eeee": 37774 default: 37775 return localize2.day(dayOfWeek, { 37776 width: "wide", 37777 context: "formatting" 37778 }); 37779 } 37780 }, 37781 // Stand-alone local day of week 37782 c: function(date, token, localize2, options) { 37783 const dayOfWeek = date.getDay(); 37784 const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; 37785 switch (token) { 37786 // Numerical value (same as in `e`) 37787 case "c": 37788 return String(localDayOfWeek); 37789 // Padded numerical value 37790 case "cc": 37791 return addLeadingZeros(localDayOfWeek, token.length); 37792 // 1st, 2nd, ..., 7th 37793 case "co": 37794 return localize2.ordinalNumber(localDayOfWeek, { unit: "day" }); 37795 case "ccc": 37796 return localize2.day(dayOfWeek, { 37797 width: "abbreviated", 37798 context: "standalone" 37799 }); 37800 // T 37801 case "ccccc": 37802 return localize2.day(dayOfWeek, { 37803 width: "narrow", 37804 context: "standalone" 37805 }); 37806 // Tu 37807 case "cccccc": 37808 return localize2.day(dayOfWeek, { 37809 width: "short", 37810 context: "standalone" 37811 }); 37812 // Tuesday 37813 case "cccc": 37814 default: 37815 return localize2.day(dayOfWeek, { 37816 width: "wide", 37817 context: "standalone" 37818 }); 37819 } 37820 }, 37821 // ISO day of week 37822 i: function(date, token, localize2) { 37823 const dayOfWeek = date.getDay(); 37824 const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; 37825 switch (token) { 37826 // 2 37827 case "i": 37828 return String(isoDayOfWeek); 37829 // 02 37830 case "ii": 37831 return addLeadingZeros(isoDayOfWeek, token.length); 37832 // 2nd 37833 case "io": 37834 return localize2.ordinalNumber(isoDayOfWeek, { unit: "day" }); 37835 // Tue 37836 case "iii": 37837 return localize2.day(dayOfWeek, { 37838 width: "abbreviated", 37839 context: "formatting" 37840 }); 37841 // T 37842 case "iiiii": 37843 return localize2.day(dayOfWeek, { 37844 width: "narrow", 37845 context: "formatting" 37846 }); 37847 // Tu 37848 case "iiiiii": 37849 return localize2.day(dayOfWeek, { 37850 width: "short", 37851 context: "formatting" 37852 }); 37853 // Tuesday 37854 case "iiii": 37855 default: 37856 return localize2.day(dayOfWeek, { 37857 width: "wide", 37858 context: "formatting" 37859 }); 37860 } 37861 }, 37862 // AM or PM 37863 a: function(date, token, localize2) { 37864 const hours = date.getHours(); 37865 const dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am"; 37866 switch (token) { 37867 case "a": 37868 case "aa": 37869 return localize2.dayPeriod(dayPeriodEnumValue, { 37870 width: "abbreviated", 37871 context: "formatting" 37872 }); 37873 case "aaa": 37874 return localize2.dayPeriod(dayPeriodEnumValue, { 37875 width: "abbreviated", 37876 context: "formatting" 37877 }).toLowerCase(); 37878 case "aaaaa": 37879 return localize2.dayPeriod(dayPeriodEnumValue, { 37880 width: "narrow", 37881 context: "formatting" 37882 }); 37883 case "aaaa": 37884 default: 37885 return localize2.dayPeriod(dayPeriodEnumValue, { 37886 width: "wide", 37887 context: "formatting" 37888 }); 37889 } 37890 }, 37891 // AM, PM, midnight, noon 37892 b: function(date, token, localize2) { 37893 const hours = date.getHours(); 37894 let dayPeriodEnumValue; 37895 if (hours === 12) { 37896 dayPeriodEnumValue = dayPeriodEnum.noon; 37897 } else if (hours === 0) { 37898 dayPeriodEnumValue = dayPeriodEnum.midnight; 37899 } else { 37900 dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am"; 37901 } 37902 switch (token) { 37903 case "b": 37904 case "bb": 37905 return localize2.dayPeriod(dayPeriodEnumValue, { 37906 width: "abbreviated", 37907 context: "formatting" 37908 }); 37909 case "bbb": 37910 return localize2.dayPeriod(dayPeriodEnumValue, { 37911 width: "abbreviated", 37912 context: "formatting" 37913 }).toLowerCase(); 37914 case "bbbbb": 37915 return localize2.dayPeriod(dayPeriodEnumValue, { 37916 width: "narrow", 37917 context: "formatting" 37918 }); 37919 case "bbbb": 37920 default: 37921 return localize2.dayPeriod(dayPeriodEnumValue, { 37922 width: "wide", 37923 context: "formatting" 37924 }); 37925 } 37926 }, 37927 // in the morning, in the afternoon, in the evening, at night 37928 B: function(date, token, localize2) { 37929 const hours = date.getHours(); 37930 let dayPeriodEnumValue; 37931 if (hours >= 17) { 37932 dayPeriodEnumValue = dayPeriodEnum.evening; 37933 } else if (hours >= 12) { 37934 dayPeriodEnumValue = dayPeriodEnum.afternoon; 37935 } else if (hours >= 4) { 37936 dayPeriodEnumValue = dayPeriodEnum.morning; 37937 } else { 37938 dayPeriodEnumValue = dayPeriodEnum.night; 37939 } 37940 switch (token) { 37941 case "B": 37942 case "BB": 37943 case "BBB": 37944 return localize2.dayPeriod(dayPeriodEnumValue, { 37945 width: "abbreviated", 37946 context: "formatting" 37947 }); 37948 case "BBBBB": 37949 return localize2.dayPeriod(dayPeriodEnumValue, { 37950 width: "narrow", 37951 context: "formatting" 37952 }); 37953 case "BBBB": 37954 default: 37955 return localize2.dayPeriod(dayPeriodEnumValue, { 37956 width: "wide", 37957 context: "formatting" 37958 }); 37959 } 37960 }, 37961 // Hour [1-12] 37962 h: function(date, token, localize2) { 37963 if (token === "ho") { 37964 let hours = date.getHours() % 12; 37965 if (hours === 0) hours = 12; 37966 return localize2.ordinalNumber(hours, { unit: "hour" }); 37967 } 37968 return lightFormatters.h(date, token); 37969 }, 37970 // Hour [0-23] 37971 H: function(date, token, localize2) { 37972 if (token === "Ho") { 37973 return localize2.ordinalNumber(date.getHours(), { unit: "hour" }); 37974 } 37975 return lightFormatters.H(date, token); 37976 }, 37977 // Hour [0-11] 37978 K: function(date, token, localize2) { 37979 const hours = date.getHours() % 12; 37980 if (token === "Ko") { 37981 return localize2.ordinalNumber(hours, { unit: "hour" }); 37982 } 37983 return addLeadingZeros(hours, token.length); 37984 }, 37985 // Hour [1-24] 37986 k: function(date, token, localize2) { 37987 let hours = date.getHours(); 37988 if (hours === 0) hours = 24; 37989 if (token === "ko") { 37990 return localize2.ordinalNumber(hours, { unit: "hour" }); 37991 } 37992 return addLeadingZeros(hours, token.length); 37993 }, 37994 // Minute 37995 m: function(date, token, localize2) { 37996 if (token === "mo") { 37997 return localize2.ordinalNumber(date.getMinutes(), { unit: "minute" }); 37998 } 37999 return lightFormatters.m(date, token); 38000 }, 38001 // Second 38002 s: function(date, token, localize2) { 38003 if (token === "so") { 38004 return localize2.ordinalNumber(date.getSeconds(), { unit: "second" }); 38005 } 38006 return lightFormatters.s(date, token); 38007 }, 38008 // Fraction of second 38009 S: function(date, token) { 38010 return lightFormatters.S(date, token); 38011 }, 38012 // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) 38013 X: function(date, token, _localize) { 38014 const timezoneOffset = date.getTimezoneOffset(); 38015 if (timezoneOffset === 0) { 38016 return "Z"; 38017 } 38018 switch (token) { 38019 // Hours and optional minutes 38020 case "X": 38021 return formatTimezoneWithOptionalMinutes(timezoneOffset); 38022 // Hours, minutes and optional seconds without `:` delimiter 38023 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 38024 // so this token always has the same output as `XX` 38025 case "XXXX": 38026 case "XX": 38027 return formatTimezone(timezoneOffset); 38028 // Hours, minutes and optional seconds with `:` delimiter 38029 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 38030 // so this token always has the same output as `XXX` 38031 case "XXXXX": 38032 case "XXX": 38033 // Hours and minutes with `:` delimiter 38034 default: 38035 return formatTimezone(timezoneOffset, ":"); 38036 } 38037 }, 38038 // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) 38039 x: function(date, token, _localize) { 38040 const timezoneOffset = date.getTimezoneOffset(); 38041 switch (token) { 38042 // Hours and optional minutes 38043 case "x": 38044 return formatTimezoneWithOptionalMinutes(timezoneOffset); 38045 // Hours, minutes and optional seconds without `:` delimiter 38046 // Note: neither ISO-8601 nor JavaScript supports seconds
vendor: 6,739 bytes, lines 38046-38232
38046in timezone offsets 38047 // so this token always has the same output as `xx` 38048 case "xxxx": 38049 case "xx": 38050 return formatTimezone(timezoneOffset); 38051 // Hours, minutes and optional seconds with `:` delimiter 38052 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 38053 // so this token always has the same output as `xxx` 38054 case "xxxxx": 38055 case "xxx": 38056 // Hours and minutes with `:` delimiter 38057 default: 38058 return formatTimezone(timezoneOffset, ":"); 38059 } 38060 }, 38061 // Timezone (GMT) 38062 O: function(date, token, _localize) { 38063 const timezoneOffset = date.getTimezoneOffset(); 38064 switch (token) { 38065 // Short 38066 case "O": 38067 case "OO": 38068 case "OOO": 38069 return "GMT" + formatTimezoneShort(timezoneOffset, ":"); 38070 // Long 38071 case "OOOO": 38072 default: 38073 return "GMT" + formatTimezone(timezoneOffset, ":"); 38074 } 38075 }, 38076 // Timezone (specific non-location) 38077 z: function(date, token, _localize) { 38078 const timezoneOffset = date.getTimezoneOffset(); 38079 switch (token) { 38080 // Short 38081 case "z": 38082 case "zz": 38083 case "zzz": 38084 return "GMT" + formatTimezoneShort(timezoneOffset, ":"); 38085 // Long 38086 case "zzzz": 38087 default: 38088 return "GMT" + formatTimezone(timezoneOffset, ":"); 38089 } 38090 }, 38091 // Seconds timestamp 38092 t: function(date, token, _localize) { 38093 const timestamp = Math.trunc(+date / 1e3); 38094 return addLeadingZeros(timestamp, token.length); 38095 }, 38096 // Milliseconds timestamp 38097 T: function(date, token, _localize) { 38098 return addLeadingZeros(+date, token.length); 38099 } 38100}; 38101function formatTimezoneShort(offset, delimiter = "") { 38102 const sign = offset > 0 ? "-" : "+"; 38103 const absOffset = Math.abs(offset); 38104 const hours = Math.trunc(absOffset / 60); 38105 const minutes = absOffset % 60; 38106 if (minutes === 0) { 38107 return sign + String(hours); 38108 } 38109 return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2); 38110} 38111function formatTimezoneWithOptionalMinutes(offset, delimiter) { 38112 if (offset % 60 === 0) { 38113 const sign = offset > 0 ? "-" : "+"; 38114 return sign + addLeadingZeros(Math.abs(offset) / 60, 2); 38115 } 38116 return formatTimezone(offset, delimiter); 38117} 38118function formatTimezone(offset, delimiter = "") { 38119 const sign = offset > 0 ? "-" : "+"; 38120 const absOffset = Math.abs(offset); 38121 const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2); 38122 const minutes = addLeadingZeros(absOffset % 60, 2); 38123 return sign + hours + delimiter + minutes; 38124} 38125const dateLongFormatter = (pattern, formatLong2) => { 38126 switch (pattern) { 38127 case "P": 38128 return formatLong2.date({ width: "short" }); 38129 case "PP": 38130 return formatLong2.date({ width: "medium" }); 38131 case "PPP": 38132 return formatLong2.date({ width: "long" }); 38133 case "PPPP": 38134 default: 38135 return formatLong2.date({ width: "full" }); 38136 } 38137}; 38138const timeLongFormatter = (pattern, formatLong2) => { 38139 switch (pattern) { 38140 case "p": 38141 return formatLong2.time({ width: "short" }); 38142 case "pp": 38143 return formatLong2.time({ width: "medium" }); 38144 case "ppp": 38145 return formatLong2.time({ width: "long" }); 38146 case "pppp": 38147 default: 38148 return formatLong2.time({ width: "full" }); 38149 } 38150}; 38151const dateTimeLongFormatter = (pattern, formatLong2) => { 38152 const matchResult = pattern.match(/(P+)(p+)?/) || []; 38153 const datePattern = matchResult[1]; 38154 const timePattern = matchResult[2]; 38155 if (!timePattern) { 38156 return dateLongFormatter(pattern, formatLong2); 38157 } 38158 let dateTimeFormat; 38159 switch (datePattern) { 38160 case "P": 38161 dateTimeFormat = formatLong2.dateTime({ width: "short" }); 38162 break; 38163 case "PP": 38164 dateTimeFormat = formatLong2.dateTime({ width: "medium" }); 38165 break; 38166 case "PPP": 38167 dateTimeFormat = formatLong2.dateTime({ width: "long" }); 38168 break; 38169 case "PPPP": 38170 default: 38171 dateTimeFormat = formatLong2.dateTime({ width: "full" }); 38172 break; 38173 } 38174 return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong2)).replace("{{time}}", timeLongFormatter(timePattern, formatLong2)); 38175}; 38176const longFormatters = { 38177 p: timeLongFormatter, 38178 P: dateTimeLongFormatter 38179}; 38180const dayOfYearTokenRE = /^D+$/; 38181const weekYearTokenRE = /^Y+$/; 38182const throwTokens = ["D", "DD", "YY", "YYYY"]; 38183function isProtectedDayOfYearToken(token) { 38184 return dayOfYearTokenRE.test(token); 38185} 38186function isProtectedWeekYearToken(token) { 38187 return weekYearTokenRE.test(token); 38188} 38189function warnOrThrowProtectedError(token, format2, input) { 38190 const _message = message(token, format2, input); 38191 console.warn(_message); 38192 if (throwTokens.includes(token)) throw new RangeError(_message); 38193} 38194function message(token, format2, input) { 38195 const subject = token[0] === "Y" ? "years" : "days of the month"; 38196 return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format2}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`; 38197} 38198const formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; 38199const longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; 38200const escapedStringRegExp = /^'([^]*?)'?$/; 38201const doubleQuoteRegExp = /''/g; 38202const unescapedLatinCharacterRegExp = /[a-zA-Z]/; 38203function format(date, formatStr, options) { 38204 var _a, _b, _c, _d; 38205 const defaultOptions2 = getDefaultOptions(); 38206 const locale = defaultOptions2.locale ?? enUS; 38207 const firstWeekContainsDate = defaultOptions2.firstWeekContainsDate ?? ((_b = (_a = defaultOptions2.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) ?? 1; 38208 const weekStartsOn = defaultOptions2.weekStartsOn ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.weekStartsOn) ?? 0; 38209 const originalDate = toDate(date, options == null ? void 0 : options.in); 38210 if (!isValid(originalDate)) { 38211 throw new RangeError("Invalid time value"); 38212 } 38213 let parts = formatStr.match(longFormattingTokensRegExp).map((substring) => { 38214 const firstCharacter = substring[0]; 38215 if (firstCharacter === "p" || firstCharacter === "P") { 38216 const longFormatter = longFormatters[firstCharacter]; 38217 return longFormatter(substring, locale.formatLong); 38218 } 38219 return substring; 38220 }).join("").match(formattingTokensRegExp).map((substring) => { 38221 if (substring === "''") { 38222 return { isToken: false, value: "'" }; 38223 } 38224 const firstCharacter = substring[0]; 38225 if (firstCharacter === "'") { 38226 return { isToken: false, value: cleanEscapedString(substring) }; 38227 } 38228 if (formatters[firstCharacter]) { 38229 return { isToken: true, value: substring }; 38230 } 38231 if (firstCharacter.match(unescapedLatinCharacterRegExp)) { 38232 throw new RangeError(
38233 "Format string contains an unescaped latin alphabet character `" + firstCharacter + "`" 38234 ); 38235 } 38236 return { isToken: false, value: substring }; 38237 }); 38238 if (locale.localize.preprocessor) { 38239 parts = locale.localize.preprocessor(originalDate, parts); 38240 } 38241 const formatterOptions = { 38242 firstWeekContainsDate, 38243 weekStartsOn, 38244 locale 38245 }; 38246 return parts.map((part) => { 38247 if (!part.isToken) return part.value; 38248 const token = part.value; 38249 if (isProtectedWeekYearToken(token) || isProtectedDayOfYearToken(token)) { 38250 warnOrThrowProtectedError(token, formatStr, String(date)); 38251 } 38252 const formatter = formatters[token[0]]; 38253 return formatter(originalDate, token, locale.localize, formatterOptions); 38254 }).join(""); 38255} 38256function cleanEscapedString(input) { 38257 const matched = input.match(escapedStringRegExp); 38258 if (!matched) { 38259 return input; 38260 } 38261 return matched[1].replace(doubleQuoteRegExp, "'"); 38262} 38263function parseISO(argument, options) { 38264 const invalidDate = () => constructFrom(options == null ? void 0 : options.in, NaN); 38265 const additionalDigits = 2; 38266 const dateStrings = splitDateString(argument); 38267 let date; 38268 if (dateStrings.date) { 38269 const parseYearResult = parseYear(dateStrings.date, additionalDigits); 38270 date = parseDate(parseYearResult.restDateString, parseYearResult.year); 38271 } 38272 if (!date || isNaN(+date)) return invalidDate(); 38273 const timestamp = +date; 38274 let time = 0; 38275 let offset; 38276 if (dateStrings.time) { 38277 time = parseTime(dateStrings.time); 38278 if (isNaN(time)) return invalidDate(); 38279 } 38280 if (dateStrings.timezone) { 38281 offset = parseTimezone(dateStrings.timezone); 38282 if (isNaN(offset)) return invalidDate(); 38283 } else { 38284 const tmpDate = new Date(timestamp + time); 38285 const result = toDate(0, options == null ? void 0 : options.in); 38286 result.setFullYear( 38287 tmpDate.getUTCFullYear(), 38288 tmpDate.getUTCMonth(), 38289 tmpDate.getUTCDate() 38290 ); 38291 result.setHours( 38292 tmpDate.getUTCHours(), 38293 tmpDate.getUTCMinutes(), 38294 tmpDate.getUTCSeconds(), 38295 tmpDate.getUTCMilliseconds() 38296 ); 38297 return result; 38298 } 38299 return toDate(timestamp + time + offset, options == null ? void 0 : options.in); 38300} 38301const patterns = { 38302 dateTimeDelimiter: /[T ]/, 38303 timeZoneDelimiter: /[Z ]/i, 38304 timezone: /([Z+-].*)$/ 38305}; 38306const dateRegex = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/; 38307const timeRegex = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/; 38308const timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/; 38309function splitDateString(dateString) { 38310 const dateStrings = {}; 38311 const array = dateString.split(patterns.dateTimeDelimiter); 38312 let timeString; 38313 if (array.length > 2) { 38314 return dateStrings; 38315 } 38316 if (/:/.test(array[0])) { 38317 timeString = array[0]; 38318 } else { 38319 dateStrings.date = array[0]; 38320 timeString = array[1]; 38321 if (patterns.timeZoneDelimiter.test(dateStrings.date)) { 38322 dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0]; 38323 timeString = dateString.substr( 38324 dateStrings.date.length, 38325 dateString.length 38326 ); 38327 } 38328 } 38329 if (timeString) { 38330 const token = patterns.timezone.exec(timeString); 38331 if (token) {
vendor: 1,028 bytes, lines 38332-38358
38332 dateStrings.time = timeString.replace(token[1], ""); 38333 dateStrings.timezone = token[1]; 38334 } else { 38335 dateStrings.time = timeString; 38336 } 38337 } 38338 return dateStrings; 38339} 38340function parseYear(dateString, additionalDigits) { 38341 const regex = new RegExp( 38342 "^(?:(\\d{4}|[+-]\\d{" + (4 + additionalDigits) + "})|(\\d{2}|[+-]\\d{" + (2 + additionalDigits) + "})$)" 38343 ); 38344 const captures = dateString.match(regex); 38345 if (!captures) return { year: NaN, restDateString: "" }; 38346 const year = captures[1] ? parseInt(captures[1]) : null; 38347 const century = captures[2] ? parseInt(captures[2]) : null; 38348 return { 38349 year: century === null ? year : century * 100, 38350 restDateString: dateString.slice((captures[1] || captures[2]).length) 38351 }; 38352} 38353function parseDate(dateString, year) { 38354 if (year === null) return /* @__PURE__ */ new Date(NaN); 38355 const captures = dateString.match(dateRegex); 38356 if (!captures) return /* @__PURE__ */ new Date(NaN); 38357 const isWeekDate = !!captures[4]; 38358 const dayOfYear = parseDateUnit(captures[1]);
38359 const month = parseDateUnit(captures[2]) - 1; 38360 const day = parseDateUnit(captures[3]); 38361 const week = parseDateUnit(captures[4]); 38362 const dayOfWeek = parseDateUnit(captures[5]) - 1; 38363 if (isWeekDate) { 38364 if (!validateWeekDate(year, week, dayOfWeek)) { 38365 return /* @__PURE__ */ new Date(NaN); 38366 } 38367 return dayOfISOWeekYear(year, week, dayOfWeek); 38368 } else { 38369 const date = /* @__PURE__ */ new Date(0); 38370 if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) { 38371 return /* @__PURE__ */ new Date(NaN); 38372 } 38373 date.setUTCFullYear(year, month, Math.max(dayOfYear, day)); 38374 return date; 38375 } 38376} 38377function parseDateUnit(value) { 38378 return value ? parseInt(value) : 1; 38379} 38380function parseTime(timeString) { 38381 const captures = timeString.match(timeRegex); 38382 if (!captures) return NaN; 38383 const hours = parseTimeUnit(captures[1]); 38384 const minutes = parseTimeUnit(captures[2]); 38385 const seconds = parseTimeUnit(captures[3]); 38386 if (!validateTime(hours, minutes, seconds)) { 38387 return NaN; 38388 } 38389 return hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * 1e3; 38390} 38391function parseTimeUnit(value) { 38392 return value && parseFloat(value.replace(",", ".")) || 0; 38393} 38394function parseTimezone(timezoneString) { 38395 if (timezoneString === "Z") return 0; 38396 const captures = timezoneString.match(timezoneRegex); 38397 if (!captures) return 0; 38398 const sign = captures[1] === "+" ? -1 : 1; 38399 const hours = parseInt(captures[2]); 38400 const minutes = captures[3] && parseInt(captures[3]) || 0; 38401 if (!validateTimezone(hours, minutes)) { 38402 return NaN; 38403 } 38404 return sign * (hours * millisecondsInHour + minutes * millisecondsInMinute); 38405} 38406function dayOfISOWeekYear(isoWeekYear, week, day) { 38407 const date = /* @__PURE__ */ new Date(0); 38408 date.setUTCFullYear(isoWeekYear, 0, 4); 38409 const fourthOfJanuaryDay = date.getUTCDay() || 7; 38410 const diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay; 38411 date.setUTCDate(date.getUTCDate() + diff); 38412 return date; 38413} 38414const daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; 38415function isLeapYearIndex(year) { 38416 return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; 38417} 38418function validateDate(year, month, date) { 38419 return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28)); 38420} 38421function validateDayOfYearDate(year, dayOfYear) { 38422 return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365); 38423} 38424function validateWeekDate(_year, week, day) { 38425 return week >= 1 && week <= 53 && day >= 0 && day <= 6; 38426} 38427function validateTime(hours, minutes, seconds) { 38428 if (hours === 24) { 38429 return minutes === 0 && seconds === 0; 38430 } 38431 return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25; 38432} 38433function validateTimezone(_hours, minutes) { 38434 return minutes >= 0 && minutes <= 59; 38435} 38436const _sfc_main$44 = { 38437 name: "CoreBlockArticleCard", 38438 props: { 38439 settings: { 38440 type: Object, 38441 required: true 38442 }, 38443 isEditable: { 38444 type: Boolean, 38445 default: false 38446 } 38447 }, 38448 setup(props) { 38449 const isBuilder = inject("isBuilder", false); 38450 const articleSettings = computed(() => { 38451 var _a; 38452 return (_a = props.settings) == null ? void 0 : _a.presetSettings; 38453 }); 38454 const store = useStore(); 38455 const sitePages = computed(() => { 38456 var _a, _b, _c; 38457 const pages = props.isEditable || isBuilder ? (_b = (_a = store.state.site) == null ? void 0 : _a.workingSite) == null ? void 0 : _b.pages : (_c = store.state.site) == null ? void 0 : _c.pages; 38458 return pages ?? []; 38459 }); 38460 const articleAdapter = computed(() => { 38461 var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o; 38462 const articleMediaSrc = ((_a = props.settings) == null ? void 0 : _a.showMedia) ? articleSettings.value.url || articleSettings.value.webHostedAssetUrl : null; 38463 const headline = ((_b = props.settings) == null ? void 0 : _b.showHeadline) ? `<h4>${(_c = articleSettings.value) == null ? void 0 : _c.headline}</h4>` : null; 38464 const bodyText = ((_d = props.settings) == null ? void 0 : _d.showBody) ? (_e = articleSettings.value) == null ? void 0 : _e.bodyText : null; 38465 const parsedDate = parseISO((_f = props.settings) == null ? void 0 : _f.createdDt); 38466 const formattedDate = isValid(parsedDate) ? format(parsedDate, "dd MMM yyyy") : (_g = props.settings) == null ? void 0 : _g.createdDt; 38467 const overline = ((_h = props.settings) == null ? void 0 : _h.createdDt) && ((_i = props.settings) == null ? void 0 : _i.showDatePublished) ? `date published ${formattedDate}` : null; 38468 const headlineText = ((_j = articleSettings.value) == null ? void 0 : _j.headline) || ""; 38469 const secondaryLabel = ((_l = (_k = articleSettings.value) == null ? void 0 : _k.page) == null ? void 0 : _l.ctaText) ?? (headlineText ? `Read more: ${headlineText}` : "Read more"); 38470 let secondaryUrl = null; 38471 if (store.getters["settings/getFeatureFlag"]("UseNamedRouting")) { 38472 const selectedPage = sitePages.value.find( 38473 (page) => { 38474 var _a2, _b2; 38475 return page.handle === ((_b2 = (_a2 = articleSettings.value) == null ? void 0 : _a2.page) == null ? void 0 : _b2.urlSlug); 38476 } 38477 ); 38478 const pageHasRoute = selectedPage && !["null", "[]"].includes(selectedPage.blocks || "[]"); 38479 if (pageHasRoute) { 38480 secondaryUrl = { 38481 name: `page-${selectedPage.id}` 38482 }; 38483 } 38484 } else { 38485 secondaryUrl = { 38486 name: ((_o = (_n = (_m = articleSettings.value) == null ? void 0 : _m.page) == null ? void 0 : _n.urlSlug) == null ? void 0 : _o.toLowerCase()) ?? props.settings.title.toLowerCase().split(" ").join("-") 38487 }; 38488 } 38489 return { 38490 ...articleSettings.value, 38491 id: props.settings.id, 38492 type: "content-card", 38493 media: { 38494 src: articleMediaSrc, 38495 alt: articleSettings.value.altText 38496 }, 38497 overline, 38498 headline, 38499 bodyText, 38500 secondaryButton: true, 38501 secondaryBtnIcon: "arrow-right", 38502 secondaryBtnIconPlacement: "icon-right", 38503 secondaryBtnNewWindow: true, 38504 secondaryLabel, 38505 secondaryUrl, 38506 secondaryTypeText: true, 38507 variants: { 38508 cardStyle: "articles-section", 38509 "padding-x": "px-small" 38510 } 38511 }; 38512 }); 38513 const hideImage = computed(() => { 38514 var _a; 38515 return (_a = props.settings) == null ? void 0 : _a.hideImage; 38516 }); 38517 const isRemovedArticle = computed(() => { 38518 var _a; 38519 const contentRemovalEnabled = Boolean( 38520 store.getters["settings/isContentRemovalEnabled"] 38521 ); 38522 return contentRemovalEnabled && ((_a = props.settings) == null ? void 0 : _a.isRemoved) === true; 38523 }); 38524 const isArchivedArticle = computed( 38525 () => { 38526 var _a; 38527 return ((_a = props.settings) == null ? void 0 : _a.isArchived) === true; 38528 } 38529 ); 38530 const showExpiredPlaceholder = computed( 38531 () => !isBuilder && (isRemovedArticle.value || isArchivedArticle.value) 38532 ); 38533 return { 38534 articleSettings, 38535 articleAdapter, 38536 hideImage, 38537 isRemovedArticle, 38538 isArchivedArticle, 38539 showExpiredPlaceholder 38540 }; 38541 } 38542}; 38543const _hoisted_1$40 = { 38544 key: 0, 38545 "data-testid": "expired-block", 38546 class: "block__body" 38547}; 38548function _sfc_render$3z(_ctx, _cache, $props, $setup, $data, $options) { 38549 const _component_CoreBlock = _sfc_main$4x; 38550 return $setup.showExpiredPlaceholder ? (openBlock(), createElementBlock("div", _hoisted_1$40, _cache[0] || (_cache[0] = [ 38551 createBaseVNode("div", { class: "expired-content" }, null, -1) 38552 ]))) : (openBlock(), createBlock(_component_CoreBlock, { 38553 key: 1, 38554 settings: $setup.articleAdapter, 38555 "is-editable": $props.isEditable 38556 }, null, 8, ["settings", "is-editable"])); 38557} 38558const CoreBlockArticleCard = /* @__PURE__ */ _export_sfc(_sfc_main$44, [["render", _sfc_render$3z], ["__scopeId", "data-v-32e534a3"]]); 38559const CoreBlockArticleCard$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 38560 __proto__: null, 38561 default: CoreBlockArticleCard 38562}, Symbol.toStringTag, { value: "Module" })); 38563const _sfc_main$43 = { 38564 name: "CoreBlockArticles", 38565 props: { 38566 settings: { 38567 type: Object, 38568 required: true 38569 }, 38570 isEditable: { 38571 type: Boolean, 38572 default: false 38573 }, 38574 isBuilderMobile: { 38575 type: Boolean, 38576 default: false 38577 } 38578 }, 38579 setup(props) { 38580 provide(SCROLL_ANIMATION_EXCLUDED_KEY, true); 38581 const containerType = computed( 38582 () => { 38583 var _a; 38584 return (_a = props.settings) == null ? void 0 : _a["container-type"]; 38585 } 38586 ); 38587 const containerVariants = computed(() => { 38588 var _a, _b; 38589 return containerType.value === "container" ? { ...(_a = props.settings) == null ? void 0 : _a.variants, layout: "carousel" } : { ...(_b = props.settings) == null ? void 0 : _b.variants }; 38590 }); 38591 const title = computed(() => { 38592 var _a; 38593 return (_a = props.settings) == null ? void 0 : _a.title; 38594 }); 38595 const sortBy = computed(() => { 38596 var _a; 38597 return (_a = props.settings) == null ? void 0 : _a.sortBy; 38598 }); 38599 const articleFields = computed(() => { 38600 var _a, _b, _c, _d; 38601 return { 38602 showMedia: (_a = props.settings) == null ? void 0 : _a.showMedia, 38603 showDatePublished: (_b = props.settings) == null ? void 0 : _b.showDatePublished, 38604 showHeadline: (_c = props.settings) == null ? void 0 : _c.showHeadline, 38605 showBody: (_d = props.settings) == null ? void 0 : _d.showBody 38606 }; 38607 }); 38608 const itemsAdapter = (item) => { 38609 var _a, _b; 38610 if (!item) return item; 38611 switch (item.type) { 38612 case "image": 38613 case "video": 38614 return { 38615 id: item.id, 38616 type: item.type, 38617 src: { 38618 src: (_a = item == null ? void 0 : item.presetSettings) == null ? void 0 : _a.url, 38619 alt: (_b = item == null ? void 0 : item.presetSettings) == null ? void 0 : _b.altText 38620 } 38621 }; 38622 case "article": 38623 return { ...item, ...articleFields.value }; 38624 default: 38625 return item; 38626 } 38627 }; 38628 const items = computed(() => { 38629 var _a, _b; 38630 if (!Array.isArray((_a = props.settings) == null ? void 0 : _a.items)) return []; 38631 return (_b = props.settings) == null ? void 0 : _b.items.map(itemsAdapter); 38632 }); 38633 const getSettings = computed(() => ({ 38634 ...props.settings, 38635 id: `${props.settings.id}a`, 38636 items: null, 38637 type: containerType.value, 38638 variants: containerVariants.value, 38639 blocks: items.value 38640 })); 38641 return { 38642 containerType, 38643 containerVariants, 38644 title, 38645 items, 38646 sortBy, 38647 articleFields, 38648 getSettings 38649 }; 38650 } 38651}; 38652const _hoisted_1$3$ = ["innerHTML"]; 38653function _sfc_render$3y(_ctx, _cache, $props, $setup, $data, $options) { 38654 const _component_CoreBlock = _sfc_main$4x; 38655 return openBlock(), createElementBlock("div", null, [ 38656 $setup.title ? (openBlock(), createElementBlock("span", { 38657 key: 0, 38658 innerHTML: $setup.title 38659 }, null, 8, _hoisted_1$3$)) : createCommentVNode("", true), 38660 createVNode(_component_CoreBlock, { 38661 settings: $setup.getSettings, 38662 "is-editable": $props.isEditable, 38663 "is-builder-mobile": $props.isBuilderMobile 38664 }, null, 8, ["settings", "is-editable", "is-builder-mobile"]) 38665 ]); 38666} 38667const CoreBlockArticles = /* @__PURE__ */ _export_sfc(_sfc_main$43, [["render", _sfc_render$3y]]); 38668const CoreBlockArticles$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 38669 __proto__: null, 38670 default: CoreBlockArticles 38671}, Symbol.toStringTag, { value: "Module" })); 38672const _sfc_main$42 = { 38673 props: { 38674 settings: { 38675 type: Object, 38676 required: false 38677 } 38678 }, 38679 computed: { 38680 alt() { 38681 var _a, _b; 38682 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 38683 }, 38684 id() { 38685 var _a, _b; 38686 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 38687 } 38688 } 38689}; 38690const _hoisted_1$3_ = ["aria-labelledby", "aria-label"]; 38691const _hoisted_2$3F = ["id"]; 38692function _sfc_render$3x(_ctx, _cache, $props, $setup, $data, $options) { 38693 return openBlock(), createElementBlock("svg", { 38694 width: "24", 38695 height: "24",
38696 viewBox: "0 0 24 24", 38697 fill: "none", 38698 xmlns: "http://www.w3.org/2000/svg", 38699 role: "img", 38700 "aria-labelledby": `icon-title-${$options.id}`, 38701 "aria-label": $options.alt 38702 }, [ 38703 createBaseVNode("title", { 38704 id: `icon-title-${$options.id}` 38705 }, toDisplayString($options.alt), 9, _hoisted_2$3F), 38706 _cache[0] || (_cache[0] = createBaseVNode("circle", { 38707 cx: "8", 38708 cy: "12", 38709 r: "1", 38710 fill: "currentColor" 38711 }, null, -1)), 38712 _cache[1] || (_cache[1] = createBaseVNode("circle", { 38713 cx: "12", 38714 cy: "12", 38715 r: "1", 38716 fill: "currentColor" 38717 }, null, -1)), 38718 _cache[2] || (_cache[2] = createBaseVNode("circle", { 38719 cx: "16", 38720 cy: "12", 38721 r: "1", 38722 fill: "currentColor" 38723 }, null, -1)), 38724 _cache[3] || (_cache[3] = createBaseVNode("rect", { 38725 x: "3", 38726 y: "8", 38727 width: "18", 38728 height: "8", 38729 rx: "1", 38730 stroke: "currentColor", 38731 "stroke-width": "2" 38732 }, null, -1)) 38733 ], 8, _hoisted_1$3_); 38734} 38735const __nuxt_component_0$7 = /* @__PURE__ */ _export_sfc(_sfc_main$42, [["render", _sfc_render$3x]]); 38736const CoreIconBreadcrumbExpand = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 38737 __proto__: null, 38738 default: __nuxt_component_0$7 38739}, Symbol.toStringTag, { value: "Module" })); 38740const _sfc_main$41 = { 38741 name: "CoreBlockBreadcrumbs", 38742 components: { 38743 NuxtLink: __nuxt_component_2$5 38744 }, 38745 props: { 38746 settings: { 38747 type: Object, 38748 default: () => { 38749 } 38750 }, 38751 dataSite: { 38752 type: Object, 38753 default: () => { 38754 } 38755 } 38756 }, 38757 setup() { 38758 const router = useRouter(); 38759 const route = useRoute(); 38760 return { 38761 router, 38762 route 38763 }; 38764 }, 38765 data() { 38766 return { 38767 windowWidth: window.innerWidth, 38768 isCollapsed: true 38769 }; 38770 }, 38771 computed: { 38772 navItems() { 38773 var _a, _b; 38774 return ((_b = (_a = this.dataSite) == null ? void 0 : _a.navigation) == null ? void 0 : _b.links) || []; 38775 }, 38776 crumbs() { 38777 var _a, _b, _c, _d, _e; 38778 if ((_a = this.settings.breadcrumbList) == null ? void 0 : _a.length) { 38779 return this.settings.breadcrumbList; 38780 } 38781 const fullPath = (_b = this.route) == null ? void 0 : _b.fullPath; 38782 const params = fullPath.startsWith("/") ? fullPath.substring(1).split("/") : fullPath.split("/"); 38783 if (!params.length || params.length === 1 && params[0] === "") { 38784 return []; 38785 } 38786 const newBreadcrumbList = []; 38787 const selectedPageHandle = params[params.length - 1]; 38788 const homePage = (_d = (_c = this == null ? void 0 : this.dataSite) == null ? void 0 : _c.pages) == null ? void 0 : _d.find( 38789 (p2) => { 38790 var _a2; 38791 return p2.id === ((_a2 = this == null ? void 0 : this.dataSite) == null ? void 0 : _a2.homepageId); 38792 } 38793 ); 38794 if (homePage) { 38795 newBreadcrumbList.push({ 38796 title: homePage.title, 38797 pageId: homePage.handle, 38798 selectedPageId: selectedPageHandle, 38799 path: "/", 38800 linkUrl: `/${homePage.handle}` 38801 }); 38802 } 38803 let path = ""; 38804 for (const param of params.filter((p2) => p2 !== "")) { 38805 path = `${path}/${param}`; 38806 const match2 = this.router.resolve(path); 38807 const page = (_e = this == null ? void 0 : this.dataSite) == null ? void 0 : _e.pages.find( 38808 (p2) => p2.handle.replace(/^\/|\/$/g, "") === decodeURI(param) 38809 ); 38810 if (!page) { 38811 newBreadcrumbList.push({ 38812 title: param, 38813 pageId: param, 38814 selectedPageId: selectedPageHandle, 38815 path: `/${param}` 38816 }); 38817 continue; 38818 } 38819 newBreadcrumbList.push({ 38820 title: page.title, 38821 pageId: page.handle, 38822 selectedPageId: selectedPageHandle, 38823 path: (match2 == null ? void 0 : match2.path) || this.getPathForPage(page.handle), 38824 linkUrl: `/${page.handle}` 38825 }); 38826 } 38827 return newBreadcrumbList; 38828 }, 38829 variants() { 38830 var _a; 38831 return ((_a = this.settings) == null ? void 0 : _a.variants) || {}; 38832 }, 38833 isCompact() { 38834 return this.variants.breadcrumbVariant === "compact"; 38835 }, 38836 crumbClasses() { 38837 let classes = "breadcrumb"; 38838 if (this.isCompact) { 38839 classes = `${classes} breadcrumb__compact`; 38840 } 38841 return classes; 38842 }, 38843 listClasses() { 38844 let classes = "breadcrumb__list-item"; 38845 if (this.isCompact) { 38846 classes = `${classes} breadcrumb__list-item--compact`; 38847 } 38848 return classes; 38849 } 38850 }, 38851 created() { 38852 { 38853 this.windowWidth = window.innerWidth; 38854 window.addEventListener("resize", this.onResize); 38855 } 38856 }, 38857 unmounted() { 38858 { 38859 window.removeEventListener("resize", this.onResize); 38860 } 38861 }, 38862 methods: { 38863 onResize() { 38864 this.windowWidth = window.innerWidth; 38865 }, 38866 setIsCollapsed(value) { 38867 this.isCollapsed = value; 38868 },
38869 getPathForPage(pageHandle, pagePath = "") { 38870 var _a, _b; 38871 const page = (_b = (_a = this.dataSite) == null ? void 0 : _a.pages) == null ? void 0 : _b.find( 38872 (p2) => p2.handle === pageHandle || p2.id === pageHandle 38873 ); 38874 if (!page) { 38875 return pagePath ?? "/"; 38876 } 38877 pagePath = `/${page.handle}${pagePath}`; 38878 if (page.parentPageId || page.newFieldForParentId) { 38879 return this.getPathForPage( 38880 page.parentPageId || page.newFieldForParentId, 38881 pagePath 38882 ); 38883 } 38884 return pagePath; 38885 }, 38886 isFolder(crumb) { 38887 const navItem = this.navItems.find( 38888 (nav) => nav.linkUrl === crumb.linkUrl 38889 ); 38890 if (!navItem) { 38891 return true; 38892 } 38893 if (navItem.isFolder) { 38894 return true; 38895 } 38896 return false; 38897 } 38898 } 38899}; 38900const _hoisted_1$3Z = { class: "breadcrumb__list" }; 38901const _hoisted_2$3E = { 38902 key: 1, 38903 class: "breadcrumb__list-item-collapsed" 38904}; 38905const _hoisted_3$n = { 38906 key: 0, 38907 class: "breadcrumb__list-item--separator" 38908}; 38909const _hoisted_4$h = { 38910 key: 1, 38911 class: "breadcrumb__list-item--title" 38912}; 38913const _hoisted_5$g = { class: "breadcrumb__list-item--title" }; 38914function _sfc_render$3w(_ctx, _cache, $props, $setup, $data, $options) { 38915 const _component_CoreIconBreadcrumbExpand = __nuxt_component_0$7; 38916 const _component_NuxtLink = __nuxt_component_2$5; 38917 return $options.crumbs.length > 1 ? (openBlock(), createElementBlock("nav", { 38918 key: 0, 38919 "aria-label": "breadcrumb", 38920 class: normalizeClass($options.crumbClasses) 38921 }, [ 38922 createBaseVNode("ul", _hoisted_1$3Z, [ 38923 $data.windowWidth < 768 && $data.isCollapsed ? (openBlock(), createBlock(_component_CoreIconBreadcrumbExpand, { 38924 key: 0, 38925 "data-testid": "breadcrumb-expand", 38926 class: "breadcrumb-expand", 38927 onClick: _cache[0] || (_cache[0] = ($event) => $options.setIsCollapsed(false)) 38928 })) : createCommentVNode("", true), 38929 $data.windowWidth < 768 && $data.isCollapsed ? (openBlock(), createElementBlock("span", _hoisted_2$3E, toDisplayString($options.crumbs[$options.crumbs.length - 1].title), 1)) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList($options.crumbs, (crumb, index2) => { 38930 return openBlock(), createElementBlock("li", { 38931 key: index2, 38932 class: normalizeClass($options.listClasses) 38933 }, [ 38934 index2 !== 0 ? (openBlock(), createElementBlock("span", _hoisted_3$n, " > ")) : createCommentVNode("", true), 38935 $options.isFolder(crumb) ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString(crumb.title), 1)) : (openBlock(), createBlock(_component_NuxtLink, { 38936 key: 2, 38937 to: crumb.path, 38938 "aria-current": crumb.selectedPageId === crumb.pageId 38939 }, { 38940 default: withCtx(() => [ 38941 createBaseVNode("span", _hoisted_5$g, toDisplayString(crumb.title), 1) 38942 ]), 38943 _: 2 38944 }, 1032, ["to", "aria-current"])) 38945 ], 2); 38946 }), 128)) 38947 ]) 38948 ], 2)) : createCommentVNode("", true); 38949} 38950const __nuxt_component_0$6 = /* @__PURE__ */ _export_sfc(_sfc_main$41, [["render", _sfc_render$3w]]); 38951const CoreBlockBreadcrumbs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 38952 __proto__: null, 38953 default: __nuxt_component_0$6 38954}, Symbol.toStringTag, { value: "Module" })); 38955const _sfc_main$40 = { 38956 name: "CoreIconClose", 38957 props: { 38958 settings: { 38959 type: Object, 38960 required: false 38961 }, 38962 click: { 38963 type: Function, 38964 default: () => { 38965 } 38966 }, 38967 size: { 38968 type: Number, 38969 default: 24 38970 } 38971 }, 38972 computed: { 38973 alt() { 38974 var _a, _b; 38975 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 38976 }, 38977 id() { 38978 var _a, _b; 38979 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 38980 } 38981 } 38982}; 38983const _hoisted_1$3Y = ["width", "height", "aria-labelledby", "aria-label"]; 38984const _hoisted_2$3D = ["id"]; 38985function _sfc_render$3v(_ctx, _cache, $props, $setup, $data, $options) { 38986 return openBlock(), createElementBlock("svg", { 38987 width: $props.size, 38988 height: $props.size,
38989 viewBox: "0 0 24 24", 38990 fill: "none", 38991 xmlns: "http://www.w3.org/2000/svg", 38992 role: "img", 38993 "aria-labelledby": `icon-title-${$options.id}`, 38994 "aria-label": $options.alt, 38995 onClick: _cache[0] || (_cache[0] = (...args) => $props.click && $props.click(...args)) 38996 }, [ 38997 createBaseVNode("title", { 38998 id: `icon-title-${$options.id}` 38999 }, toDisplayString($options.alt), 9, _hoisted_2$3D), 39000 _cache[1] || (_cache[1] = createBaseVNode("path", { 39001 d: "M18 6L6 18", 39002 stroke: "currentColor", 39003 "stroke-width": "2", 39004 "stroke-linecap": "round", 39005 "stroke-linejoin": "round" 39006 }, null, -1)), 39007 _cache[2] || (_cache[2] = createBaseVNode("path", { 39008 d: "M6 6L18 18", 39009 stroke: "currentColor", 39010 "stroke-width": "2", 39011 "stroke-linecap": "round", 39012 "stroke-linejoin": "round" 39013 }, null, -1)) 39014 ], 8, _hoisted_1$3Y); 39015} 39016const __nuxt_component_0$5 = /* @__PURE__ */ _export_sfc(_sfc_main$40, [["render", _sfc_render$3v]]); 39017const CoreIconClose = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 39018 __proto__: null, 39019 default: __nuxt_component_0$5 39020}, Symbol.toStringTag, { value: "Module" })); 39021const _sfc_main$3$ = { 39022 name: "CoreBlockDialog", 39023 inheritAttrs: false, 39024 props: { 39025 show: { 39026 type: Boolean, 39027 default: false 39028 }, 39029 type: { 39030 type: String, 39031 default: "dialog" 39032 } 39033 }, 39034 data() { 39035 return { 39036 bodyScrollLocked: false, 39037 originalBodyOverflow: null, 39038 scrollPosition: 0 39039 }; 39040 }, 39041 watch: { 39042 show(value) { 39043 this.$nextTick(() => { 39044 if (!this.$refs.dialog) return; 39045 if (value) { 39046 if (this.type === "modal") { 39047 this.lockBodyScroll(); 39048 this.$refs.dialog.showModal(); 39049 } else { 39050 this.$refs.dialog.show(); 39051 } 39052 } else { 39053 this.$refs.dialog.close(); 39054 if (this.type === "modal") { 39055 this.unlockBodyScroll(); 39056 } 39057 } 39058 }); 39059 } 39060 }, 39061 mounted() { 39062 const dialog = this.$refs.dialog; 39063 dialog.addEventListener("close", this.handleClose); 39064 }, 39065 beforeUnmount() { 39066 const dialog = this.$refs.dialog; 39067 if (dialog) { 39068 dialog.removeEventListener("close", this.handleClose); 39069 } 39070 if (this.type === "modal" && this.bodyScrollLocked) { 39071 this.unlockBodyScroll(); 39072 } 39073 }, 39074 methods: { 39075 lockBodyScroll() { 39076 if (this.bodyScrollLocked || false) return; 39077 this.scrollPosition = window.scrollY || window.pageYOffset || document.documentElement.scrollTop; 39078 this.originalBodyOverflow = document.body.style.overflow; 39079 document.body.style.overflow = "hidden"; 39080 document.body.style.position = "fixed"; 39081 document.body.style.top = `-${this.scrollPosition}px`; 39082 document.body.style.left = "0"; 39083 document.body.style.width = "100%"; 39084 this.bodyScrollLocked = true; 39085 }, 39086 unlockBodyScroll() { 39087 if (!this.bodyScrollLocked || false) return; 39088 const scrollPosition = this.scrollPosition; 39089 document.body.style.overflow = this.originalBodyOverflow || ""; 39090 document.body.style.position = ""; 39091 document.body.style.top = ""; 39092 document.body.style.left = ""; 39093 document.body.style.width = ""; 39094 this.bodyScrollLocked = false; 39095 this.originalBodyOverflow = null; 39096 this.scrollPosition = 0; 39097 if (scrollPosition > 0) { 39098 document.documentElement.scrollTop = scrollPosition; 39099 window.scrollTo(0, scrollPosition); 39100 } 39101 }, 39102 handleClose() { 39103 if (this.type === "modal") { 39104 this.unlockBodyScroll(); 39105 this.$emit("modal-close"); 39106 } else { 39107 this.$emit("close", false); 39108 } 39109 }, 39110 handleClick() { 39111 this.$refs.dialog.close(); 39112 } 39113 } 39114}; 39115const _hoisted_1$3X = { class: "dialog-header" }; 39116const _hoisted_2$3C = { class: "dialog-body" }; 39117function _sfc_render$3u(_ctx, _cache, $props, $setup, $data, $options) { 39118 const _component_CoreIconClose = __nuxt_component_0$5; 39119 return openBlock(), createElementBlock("dialog", { 39120 ref: "dialog", 39121 class: normalizeClass([_ctx.$attrs.class, $props.type === "modal" ? "dialog--modal" : ""]) 39122 }, [ 39123 createBaseVNode("div", _hoisted_1$3X, [ 39124 createBaseVNode("button", { 39125 class: "dialog-button", 39126 onClick: _cache[0] || (_cache[0] = (...args) => $options.handleClick && $options.handleClick(...args)), 39127 onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(() => { 39128 }, ["prevent"]), ["enter"])), 39129 onKeyup: _cache[2] || (_cache[2] = withKeys((...args) => $options.handleClick && $options.handleClick(...args), ["enter"])) 39130 }, [ 39131 _cache[3] || (_cache[3] = createBaseVNode("span", null, "Close", -1)), 39132 createVNode(_component_CoreIconClose) 39133 ], 32) 39134 ]), 39135 createBaseVNode("div", _hoisted_2$3C, [ 39136 renderSlot(_ctx.$slots, "default", {}, void 0, true) 39137 ]) 39138 ], 2); 39139} 39140const __nuxt_component_3$1 = /* @__PURE__ */ _export_sfc(_sfc_main$3$, [["render", _sfc_render$3u], ["__scopeId", "data-v-aea5e853"]]); 39141const CoreBlockDialog = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 39142 __proto__: null, 39143 default: __nuxt_component_3$1 39144}, Symbol.toStringTag, { value: "Module" })); 39145const _sfc_main$3_ = { 39146 name: "CoreBlockButton", 39147 components: { 39148 NuxtLink: __nuxt_component_2$5 39149 }, 39150 props: { 39151 settings: { 39152 type: Object, 39153 required: true 39154 }, 39155 isEditable: { 39156 type: Boolean, 39157 default: false 39158 }, 39159 dataSite: { 39160 type: Object, 39161 default: () => ({}) 39162 } 39163 }, 39164 setup(props) { 39165 const root2 = useRoot(); 39166 const router = useRouter(); 39167 const store = useStore(); 39168 const { state } = store; 39169 const coreLiteEnabled = computed( 39170 () => { 39171 var _a, _b; 39172 return ((_b = (_a = store.getters) == null ? void 0 : _a["settings/getBrandFeatureFlag"]) == null ? void 0 : _b.call(_a, "CoreLite")) ?? false; 39173 } 39174 ); 39175 const brandCalendlyId = computed( 39176 () => { 39177 var _a; 39178 return ((_a = store.getters) == null ? void 0 : _a["settings/getBrandCalendlyId"]) ?? null; 39179 } 39180 ); 39181 const effectiveCalendlyUrl = computed(() => { 39182 var _a; 39183 const url = (_a = props.settings) == null ? void 0 : _a.url; 39184 if (typeof url === "string" && url.includes("https://calendly.com")) { 39185 return url; 39186 } 39187 if (coreLiteEnabled.value && brandCalendlyId.value) { 39188 return `https://calendly.com/${brandCalendlyId.value}
39188/generaldiscussion`; 39189 } 39190 return null; 39191 }); 39192 const isDialogOpen = ref(false); 39193 const modalPageData = ref(null); 39194 const itemCheckFunction = (item) => item.type === "document" || item.type === "link"; 39195 const { isExpired } = useIsExpired(props.settings, itemCheckFunction); 39196 const buttonLabel = computed(() => { 39197 var _a; 39198 return ((_a = props.settings) == null ? void 0 : _a.label) || "Button Label"; 39199 }); 39200 const buttonAltText = computed(() => { 39201 var _a; 39202 return ((_a = props.settings) == null ? void 0 : _a.alt) || buttonLabel.value; 39203 }); 39204 const isNuxtLink = computed(() => { 39205 if (!buttonUrl.value) return false; 39206 try { 39207 if (router.resolve(buttonUrl.value)) { 39208 return true; 39209 } 39210 return false; 39211 } catch (err) { 39212 return false; 39213 } 39214 }); 39215 const buttonUrl = computed(() => { 39216 var _a, _b; 39217 if (isExpired.value) return null; 39218 const url = (_a = props.settings) == null ? void 0 : _a.url; 39219 if (effectiveCalendlyUrl.value) { 39220 return null; 39221 } else if (url === "dialog" || isModal.value) { 39222 return null; 39223 } 39224 const newUrl = ((_b = props.settings) == null ? void 0 : _b.newWindow) && typeof url === "string" ? replaceUrlBasePath(url) : url; 39225 return newUrl || null; 39226 }); 39227 const clickEvent = computed(() => { 39228 var _a; 39229 if (effectiveCalendlyUrl.value) { 39230 GTMCalendly(); 39231 if (newWindowTarget.value === "_self") { 39232 return showPopUp; 39233 } else { 39234 return () => { 39235 window.open(effectiveCalendlyUrl.value, "_blank"); 39236 }; 39237 } 39238 } else if (isModal.value) { 39239 return toggleModalDialog; 39240 } else if (isDialog.value) { 39241 return toggleDialog; 39242 } 39243 return ((_a = props.settings) == null ? void 0 : _a.event) || noEventFound; 39244 }); 39245 const isInternal = computed(() => { 39246 var _a; 39247 const url = (_a = props.settings) == null ? void 0 : _a.url; 39248 return typeof url === "string" && (url == null ? void 0 : url.charAt(0)) == "/" || typeof url === "object" && url !== null; 39249 }); 39250 const isModal = computed(() => { 39251 var _a; 39252 const url = (_a = props.settings) == null ? void 0 : _a.url; 39253 return typeof url === "string" && (url == null ? void 0 : url.startsWith("modal:")); 39254 }); 39255 const modalId = computed(() => { 39256 var _a; 39257 if (!isModal.value) return null; 39258 const url = (_a = props.settings) == null ? void 0 : _a.url; 39259 const id = url.replace("modal:", ""); 39260 return isNaN(Number(id)) ? id : Number(id); 39261 }); 39262 const isDialog = computed(() => { 39263 var _a; 39264 return ((_a = props.settings) == null ? void 0 : _a.url) === "dialog" || isModal.value; 39265 }); 39266 const newWindowTarget = computed(() => { 39267 if (props.settings.newWindow === void 0) { 39268 return "_self"; 39269 } 39270 return props.settings.newWindow ? "_blank" : "_self"; 39271 }); 39272 const ariaLabel = computed(() => { 39273 const lastUrlSegment = getLastUrlSegment(); 39274 const urlSegment = lastUrlSegment ? " - " + lastUrlSegment.toLowerCase() : ""; 39275 if (props.settings.newWindow) 39276 return `${buttonLabel.value}${urlSegment} (opens in a new window)`; 39277 return `${buttonLabel.value}${urlSegment}`; 39278 }); 39279 const relAttributes = computed(() => { 39280 var _a, _b; 39281 const featureEnabled = (_b = (_a = state == null ? void 0 : state.settings) == null ? void 0 : _a.featureFlags) == null ? void 0 : _b.SeoLinkRelAttributes; 39282 if (!featureEnabled) { 39283 return null; 39284 } 39285 if (Array.isArray(props.settings.relAttributes) && props.settings.relAttributes.length > 0) { 39286 return props.settings.relAttributes.join(" "); 39287 } 39288 if (newWindowTarget.value === "_blank") { 39289 return "noopener noreferrer"; 39290 } 39291 return null; 39292 }); 39293 const buttonDataTestId = computed(() => { 39294 var _a, _b, _c; 39295 const calendlyUrlSelf = typeof ((_a = props.settings) == null ? void 0 : _a.url) === "string" && ((_c = (_b = props.settings) == null ? void 0 : _b.url) == null ? void 0 : _c.includes("https://calendly.com")) && newWindowTarget.value !== "_blank"; 39296 return isDialog.value || calendlyUrlSelf ? "dialog-button" : "button"; 39297 }); 39298 const formSettings = computed(() => { 39299 var _a; 39300 return ((_a = props.settings) == null ? void 0 : _a.dialog) || {}; 39301 }); 39302 const modalSize = computed(() => { 39303 if (!modalPageData.value) return "medium";
39304 try { 39305 const settings = typeof modalPageData.value.settings === "string" ? JSON.parse(modalPageData.value.settings) : modalPageData.value.settings; 39306 return (settings == null ? void 0 : settings.modalSize) || "medium"; 39307 } catch { 39308 return "medium"; 39309 } 39310 }); 39311 const modalBackgroundClass = computed(() => { 39312 if (!modalPageData.value) return ""; 39313 try { 39314 const settings = typeof modalPageData.value.settings === "string" ? JSON.parse(modalPageData.value.settings) : modalPageData.value.settings; 39315 const bgColor = (settings == null ? void 0 : settings.backgroundColor) || "default"; 39316 if (bgColor === "light") return "_themed-light"; 39317 if (bgColor === "dark") return "_themed-dark"; 39318 if (bgColor === "grey") return "_themed-grey"; 39319 return ""; 39320 } catch { 39321 return ""; 39322 } 39323 }); 39324 const modalBlocks = computed(() => { 39325 if (!modalPageData.value) return []; 39326 try { 39327 const blocks = typeof modalPageData.value.blocks === "string" ? JSON.parse(modalPageData.value.blocks) : modalPageData.value.blocks; 39328 return blocks || []; 39329 } catch { 39330 return []; 39331 } 39332 }); 39333 const noEventFound = () => { 39334 }; 39335 const focusPopup = () => { 39336 const container = document.querySelector(".calendly-popup-content"); 39337 if (!container) { 39338 return; 39339 } 39340 const button = document.createElement("button"); 39341 container.prepend(button); 39342 button.focus(); 39343 button.remove(); 39344 }; 39345 const showPopUp = () => { 39346 { 39347 window.Calendly.showPopupWidget(effectiveCalendlyUrl.value); 39348 setCalendlyAttributes(props.settings.iframeTitle); 39349 addModalListener(); 39350 focusPopup(); 39351 } 39352 return false; 39353 }; 39354 const toggleDialog = () => { 39355 isDialogOpen.value = !isDialogOpen.value; 39356 return false; 39357 }; 39358 const toggleModalDialog = () => { 39359 var _a; 39360 if (!isDialogOpen.value && modalId.value) { 39361 const sitePages = ((_a = props.dataSite) == null ? void 0 : _a.pages) || []; 39362 const modalPage = sitePages.find((p2) => p2.id === modalId.value); 39363 if (modalPage) { 39364 modalPageData.value = modalPage; 39365 } 39366 } 39367 toggleDialog(); 39368 }; 39369 const setCalendlyAttributes = (title) => { 39370 var _a; 39371 const iframes = document.querySelectorAll("iframe"); 39372 for (const iframe of iframes) {
39373 if ((_a = iframe.src) == null ? void 0 : _a.includes("https://calendly.com")) { 39374 iframe.setAttribute( 39375 "title", 39376 title || "default-calendly-title" 39377 ); 39378 } 39379 } 39380 const calendlyCloseButton = document.querySelector( 39381 ".calendly-popup-close" 39382 ); 39383 calendlyCloseButton.setAttribute("tabIndex", "0"); 39384 calendlyCloseButton.addEventListener( 39385 "keydown", 39386 closeModalEnterHandler, 39387 true 39388 ); 39389 }; 39390 const closeModalEnterHandler = (event) => { 39391 if (event.key === "Enter" || event.keyCode === 13) { 39392 closeCalendlyModal(); 39393 } 39394 }; 39395 const closeModalKeyHandler = (event) => { 39396 if (event.key === "Escape" || event.keyCode === 27) { 39397 closeCalendlyModal(); 39398 } 39399 }; 39400 const closeCalendlyModal = () => { 39401 window.Calendly.closePopupWidget(); 39402 document.removeEventListener("keydown", closeModalKeyHandler, true); 39403 }; 39404 const addModalListener = () => { 39405 document.addEventListener("keydown", closeModalKeyHandler, true); 39406 }; 39407 const GTMCalendly = () => { 39408 const { eventType, calendlyId } = decodeCalendlyUrl( 39409 props.settings.url 39410 ); 39411 root2.$gtm.push({ 39412 event: "nyl-calendly", 39413 calendly_id: calendlyId, 39414 calendly_category: getCalendlyCategory(eventType), 39415 event_type: eventType, 39416 calendly_event_id: eventType == null ? void 0 : eventType.toLowerCase().replace(/\s/g, ""), 39417 click_url: props.settings.url 39418 }); 39419 }; 39420 const getCalendlyCategory = (eventType) => { 39421 var calendlyCategory = ""; 39422 switch (eventType) { 39423 case "Custom Event": 39424 calendlyCategory = "custom"; 39425 break; 39426 case "General Discussion": 39427 case "Intro Appointment": 39428 case "Review": 39429 calendlyCategory = "agent"; 39430 break; 39431 case "Intro to NYL": 39432 case "Quick Checkin": 39433 case "First Interview": 39434 calendlyCategory = "GO"; 39435 break; 39436 } 39437 return calendlyCategory; 39438 }; 39439 const replaceUrlBasePath = (url) => { 39440 if (!url || !isInternal.value) return url; 39441 const config = /* @__PURE__ */ useRuntimeConfig(); 39442 const basePath = config.public.basePath || "/"; 39443 return `${basePath}/${url}`.replace(/\/+/g, "/"); 39444 }; 39445 const getLastUrlSegment = () => { 39446 if (!buttonUrl.value || typeof buttonUrl.value !== "string") { 39447 return ""; 39448 } 39449 const segments = buttonUrl.value.split("/"); 39450 const lastSegment = segments[segments.length - 1] || ""; 39451 return lastSegment.replace(/[-_]/g, " "); 39452 }; 39453 const decodeCalendlyUrl = (url) => { 39454 if (!url || typeof url !== "string" || url.trim() === "") { 39455 return { 39456 eventType: null, 39457 calendlyId: null 39458 }; 39459 } 39460 try { 39461 const urlObj = new URL(url); 39462 const pathParts = urlObj.pathname.split("/").filter((part) => part !== ""); 39463 const calendlyId = pathParts[0] || null; 39464 let eventType = ""; 39465 if (pathParts.length > 1) { 39466 eventType = decodeURIComponent(pathParts[1]); 39467 } 39468 if (!eventType || eventType.includes("utm_campaign") && eventType.includes("utm_source")) { 39469 eventType = null; 39470 } 39471 return { 39472 eventType, 39473 calendlyId 39474 }; 39475 } catch { 39476 return { 39477 eventType: null, 39478 calendlyId: null 39479 }; 39480 } 39481 }; 39482 return { 39483 addModalListener, 39484 buttonAltText, 39485 buttonDataTestId, 39486 buttonLabel, 39487 buttonUrl, 39488 clickEvent, 39489 closeCalendlyModal, 39490 closeModalKeyHandler, 39491 formSettings, 39492 getCalendlyCategory, 39493 GTMCalendly, 39494 isDialog, 39495 isDialogOpen, 39496 isExpired, 39497 isInternal, 39498 isModal, 39499 modalBackgroundClass, 39500 modalBlocks, 39501 modalId, 39502 modalSize, 39503 ariaLabel, 39504 newWindowTarget, 39505 noEventFound, 39506 relAttributes, 39507 replaceUrlBasePath, 39508 setCalendlyAttributes, 39509 showPopUp, 39510 toggleDialog, 39511 toggleModalDialog, 39512 isNuxtLink 39513 }; 39514 } 39515}; 39516const _hoisted_1$3W = ["data-testid"]; 39517const _hoisted_2$3B = ["href", "target", "rel", "aria-label", "title"]; 39518const _hoisted_3$m = { class: "button_icon--custom" }; 39519const _hoisted_4$g = { class: "button_label button_icon--down" }; 39520const _hoisted_5$f = { class: "button_label_text" }; 39521const _hoisted_6$9 = { class: "button_icon--custom" }; 39522const _hoisted_7$8 = { class: "button_label button_icon--down" }; 39523const _hoisted_8$8 = { class: "button_label_text" }; 39524const _hoisted_9$7 = { 39525 key: 0, 39526 class: "modal-content" 39527}; 39528function _sfc_render$3t(_ctx, _cache, $props, $setup, $data, $options) { 39529 const _component_CoreIcon = __nuxt_component_1$7; 39530 const _component_NuxtLink = __nuxt_component_2$5; 39531 const _component_CoreBlock = _sfc_main$4x; 39532 const _component_CoreBlockDialog = __nuxt_component_3$1; 39533 return openBlock(), createElementBlock("div", { 39534 class: "block__body", 39535 "data-testid": $setup.buttonDataTestId 39536 }, [ 39537 !$setup.isInternal || $props.settings.newWindow && typeof $setup.buttonUrl === "string" || $setup.isDialog || !$setup.isNuxtLink ? (openBlock(), createElementBlock("a", { 39538 key: 0, 39539 href: $setup.buttonUrl, 39540 target: $setup.newWindowTarget, 39541 rel: $setup.relAttributes, 39542 class: "button", 39543 role: "button", 39544 tabindex: "0", 39545 "aria-label": $setup.ariaLabel, 39546 title: $setup.buttonAltText, 39547 onClick: _cache[0] || (_cache[0] = withModifiers((...args) => $setup.clickEvent && $setup.clickEvent(...args), ["stop"])), 39548 onKeyup: _cache[1] || (_cache[1] = withKeys((...args) => $setup.clickEvent && $setup.clickEvent(...args), ["enter"])) 39549 }, [ 39550 createBaseVNode("span", _hoisted_3$m, [ 39551 $props.settings.icon ? (openBlock(), createBlock(_component_CoreIcon, { 39552 key: 0, 39553 "aria-label": $props.settings.label, 39554 icon: $props.settings.icon, 39555 class: "button_icon", 39556 name: "buttonIcon", 39557 role: "img" 39558 }, null, 8, ["aria-label", "icon"])) : createCommentVNode("", true) 39559 ]), 39560 createBaseVNode("span", _hoisted_4$g, [ 39561 createBaseVNode("span", _hoisted_5$f, toDisplayString($setup.buttonLabel), 1), 39562 createVNode(_component_CoreIcon, { 39563 class: "button_icon button_i", 39564 icon: "down-arrow", 39565 role: "img" 39566 }) 39567 ]) 39568 ], 40, _hoisted_2$3B)) : (openBlock(), createBlock(_component_NuxtLink, mergeProps({ 39569 key: 1, 39570 to: $setup.buttonUrl, 39571 class: "button", 39572 role: "button" 39573 }, {
39574 ...$props.settings.newWindow && { target: "_blank" }, 39575 ...$setup.relAttributes && { rel: $setup.relAttributes } 39576 }, { 39577 "aria-label": $setup.ariaLabel, 39578 onClick: $setup.clickEvent 39579 }), { 39580 default: withCtx(() => [ 39581 createBaseVNode("span", _hoisted_6$9, [ 39582 $props.settings.icon ? (openBlock(), createBlock(_component_CoreIcon, { 39583 key: 0, 39584 "aria-label": $props.settings.label, 39585 icon: $props.settings.icon, 39586 class: "button_icon", 39587 name: "buttonIcon", 39588 role: "img" 39589 }, null, 8, ["aria-label", "icon"])) : createCommentVNode("", true) 39590 ]), 39591 createBaseVNode("span", _hoisted_7$8, [ 39592 createBaseVNode("span", _hoisted_8$8, toDisplayString($setup.buttonLabel), 1), 39593 createVNode(_component_CoreIcon, { 39594 class: "button_icon button_i", 39595 icon: "down-arrow", 39596 role: "img" 39597 }) 39598 ]) 39599 ]), 39600 _: 1 39601 }, 16, ["to", "aria-label", "onClick"])), 39602 $setup.isDialog ? (openBlock(), createBlock(_component_CoreBlockDialog, { 39603 key: 2, 39604 show: $setup.isDialogOpen, 39605 type: "modal", 39606 class: normalizeClass( 39607 $setup.isModal ? `modal-size-${$setup.modalSize} block ${$setup.modalBackgroundClass}` : "" 39608 ), 39609 onClose: $setup.toggleDialog, 39610 onModalClose: $setup.toggleModalDialog 39611 }, { 39612 default: withCtx(() => [ 39613 $setup.isModal ? (openBlock(), createElementBlock("div", _hoisted_9$7, [ 39614 (openBlock(true), createElementBlock(Fragment, null, renderList($setup.modalBlocks, (block, index2) => { 39615 return openBlock(), createBlock(_component_CoreBlock, { 39616 key: block.id || index2, 39617 settings: block, 39618 index: index2, 39619 "is-editable": $props.isEditable 39620 }, null, 8, ["settings", "index", "is-editable"]); 39621 }), 128)) 39622 ])) : (openBlock(), createBlock(_component_CoreBlock, { 39623 key: 1, 39624 settings: $setup.formSettings, 39625 "is-editable": $props.isEditable 39626 }, null, 8, ["settings", "is-editable"])) 39627 ]), 39628 _: 1 39629 }, 8, ["show", "class", "onClose", "onModalClose"])) : createCommentVNode("", true) 39630 ], 8, _hoisted_1$3W); 39631} 39632const CoreBlockButton = /* @__PURE__ */ _export_sfc(_sfc_main$3_, [["render", _sfc_render$3t]]); 39633const CoreBlockButton$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 39634 __proto__: null, 39635 default: CoreBlockButton 39636}, Symbol.toStringTag, { value: "Module" })); 39637const _sfc_main$3Z = { 39638 name: "CoreBlockCalculators", 39639 props: { 39640 index: { 39641 type: Number, 39642 default: 0 39643 }, 39644 nestedLevel: { 39645 type: Number, 39646 default: 0 39647 }, 39648 settings: { 39649 type: Object, 39650 required: true 39651 }, 39652 isEditable: { 39653 type: Boolean, 39654 default: false 39655 } 39656 }, 39657 computed: { 39658 background() { 39659 if (this.mediaIsImg) { 39660 return { 39661 "background-image": `url('${this.mediaSrc}')`, 39662 "background-position": "center", 39663 "background-repeat": "no-repeat" 39664 }; 39665 } 39666 return null; 39667 }, 39668 childBlockComponent() { 39669 if (this.isEditable) { 39670 return "ForgeControlBlock"; 39671 } 39672 return "CoreBlock"; 39673 }, 39674 blockId() { 39675 return this.settings.id; 39676 }, 39677 variants() { 39678 return this.settings.variants || {}; 39679 }, 39680 imageAlign() { 39681 return (this.variants["image-align"] || "left").replace( 39682 "image-", 39683 "" 39684 ); 39685 }, 39686 videoMediaSrc() { 39687 let ret = this.mediaSrc; 39688 if (mediaHelper.isYoutube(this.mediaSrc)) { 39689 let embedId = this.mediaSrc.match( 39690 /https:\/\/www.youtube.com\/embed\/([^\/?]+)/ 39691 ); 39692 if ((embedId == null ? void 0 : embedId.length) > 1) { 39693 ret = `https://www.youtube.com/embed/${embedId}?playlist=${embedId[1]}&controls=0&autoplay=1&fs=0&iv_load_policy=3&loop=1&disablekb=1&modestbranding=1&mute=1`; 39694 } 39695 } 39696 return ret; 39697 }, 39698 textAlign() { 39699 return (this.variants["text-align"] || "left").replace("text-", ""); 39700 }, 39701 verticalAlign() { 39702 return this.variants["vertical-align"] || null; 39703 }, 39704 mediaIsVideo() { 39705 return !!this.mediaSrc && mediaHelper.isVideo(this.mediaSrc); 39706 }, 39707 mediaIsImg() { 39708 return !!this.mediaSrc && mediaHelper.isImage(this.mediaSrc); 39709 }, 39710 mediaSrc() { 39711 var _a; 39712 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.backgroundMediaSrc; 39713 return mediaSrc && typeof mediaSrc === "object" ? mediaSrc.src : mediaSrc; 39714 }, 39715 sideMediaSrc() { 39716 var _a; 39717 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.sideMediaSrc; 39718 return mediaSrc && typeof mediaSrc === "object" ? mediaSrc.src : mediaSrc; 39719 } 39720 }, 39721 methods: { 39722 getSettings() { 39723 const response = { 39724 type: "columns", 39725 "column-count": 2, 39726 variants: { 39727 layout: "grid", 39728 "vertical-alignment": this.verticalAlign, 39729 "image-alignment": this.imageAlign, 39730 "padding-top": "pt-small", 39731 "bg-color": "transparent" 39732 // layout: "contained", 39733 }, 39734 locked: true, 39735 blocks: [] 39736 }; 39737 const imageBlock = { 39738 type: "rows", 39739 blocks: [], 39740 variants: { 39741 "bg-color": "transparent" 39742 } 39743 }; 39744 if (this.sideMediaSrc) { 39745 imageBlock.blocks.push({ 39746 id: `i1_${this.settings.id}`, 39747 type: "media", 39748 acceptTypes: ["video", "image"], 39749 variants: { 39750 sizing: "contain", 39751 "bg-color": "transparent" 39752 }, 39753 src: this.sideMediaSrc, 39754 width: "100%", 39755 height: "auto" 39756 }); 39757 } 39758 response.blocks.push(imageBlock); 39759 const contentBlock = { 39760 id: `c1_${this.settings.id}`, 39761 type: "rows", 39762 variants: { 39763 "padding-horizontal": "px-medium", 39764 "bg-color": "transparent" 39765 }, 39766 blocks: [ 39767 { 39768 type: "text", 39769 variants: { 39770 size: "overline", 39771 align: this.textAlign 39772 }, 39773 text: this.settings.overline 39774 }, 39775 { 39776 type: "text", 39777 variants: { 39778 size: "headline", 39779 align: this.textAlign, 39780 weight: "bold" 39781 }, 39782 text: this.settings.headline, 39783 tag: "h2" 39784 }, 39785 { 39786 type: "text", 39787 variants: { 39788 size: "subline", 39789 align: this.textAlign, 39790 weight: "bold" 39791 }, 39792 text: this.settings.subline 39793 }, 39794 {
39795 type: "rich-text", 39796 variants: { 39797 align: this.textAlign 39798 }, 39799 richText: this.settings.bodyText 39800 } 39801 ] 39802 }; 39803 const buttonContainer = this.getButtonContainer(); 39804 if (buttonContainer) { 39805 contentBlock.blocks.push(buttonContainer); 39806 } 39807 response.blocks.push(contentBlock); 39808 return response; 39809 }, 39810 getButtonContainer() { 39811 let response = null; 39812 if (this.settings["button-primary-url"] || this.settings["button-secondary-url"] || this.settings["button-tertiary-url"]) { 39813 response = { 39814 id: `c2_${this.settings.id}`, 39815 type: "container", 39816 variants: { 39817 layout: "columns", 39818 "bg-color": "transparent" 39819 }, 39820 locked: false, 39821 allowTypes: ["button"], 39822 blocks: [] 39823 }; 39824 if (this.settings["button-primary-url"]) { 39825 response.blocks.push({ 39826 id: `b1_${this.settings.id}`, 39827 type: "button", 39828 variants: { 39829 style: "primary" 39830 }, 39831 label: this.settings["button-primary-label"] || "Primary Button Label", 39832 url: this.settings["button-primary-url"] 39833 }); 39834 } 39835 if (this.settings["button-secondary-url"]) { 39836 response.blocks.push({ 39837 id: `b2_${this.settings.id}`, 39838 type: "button", 39839 variants: { 39840 style: "secondary" 39841 }, 39842 label: this.settings["button-secondary-label"] || "Secondary Button Label", 39843 url: this.settings["button-secondary-url"] 39844 }); 39845 } 39846 if (this.settings["button-tertiary-url"]) { 39847 response.blocks.push({ 39848 id: `b3_${this.settings.id}`, 39849 type: "button", 39850 variants: { 39851 style: "tertiary" 39852 }, 39853 label: this.settings["button-tertiary-label"] || "Tertiary Button Label" 39854 }); 39855 } 39856 } 39857 return response; 39858 }, 39859 scrollDown() { 39860 { 39861 window.scroll({ top: 900, behavior: "smooth" }); 39862 } 39863 } 39864 } 39865}; 39866const _hoisted_1$3V = ["src"]; 39867function _sfc_render$3s(_ctx, _cache, $props, $setup, $data, $options) { 39868 return openBlock(), createElementBlock("div", { 39869 class: "block__body", 39870 style: normalizeStyle({ 39871 ...$options.background 39872 }) 39873 }, [ 39874 $options.mediaIsVideo ? (openBlock(), createElementBlock("iframe", { 39875 key: 0, 39876 class: "block__section_content--player", 39877 src: $options.mediaSrc, 39878 title: "Video Block", 39879 frameborder: "0", 39880 allowfullscreen: "" 39881 }, null, 8, _hoisted_1$3V)) : createCommentVNode("", true), 39882 (openBlock(), createBlock(resolveDynamicComponent($options.childBlockComponent), { 39883 index: 0, 39884 "is-editable": $props.isEditable, 39885 "is-first-child": true, 39886 "is-last-child": true, 39887 settings: $options.getSettings() 39888 }, null, 8, ["is-editable", "settings"])) 39889 ], 4); 39890} 39891const CoreBlockCalculators = /* @__PURE__ */ _export_sfc(_sfc_main$3Z, [["render", _sfc_render$3s]]); 39892const CoreBlockCalculators$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 39893 __proto__: null, 39894 default: CoreBlockCalculators 39895}, Symbol.toStringTag, { value: "Module" })); 39896const _hoisted_1$3U = ["aria-labelledby", "aria-label"]; 39897const _hoisted_2$3A = ["id"]; 39898const _sfc_main$3Y = { 39899 __name: "CoreIconCalendlyTitle", 39900 props: { 39901 settings: { 39902 type: Object, 39903 required: false 39904 } 39905 }, 39906 setup(__props) { 39907 const props = __props; 39908 const alt = computed(() => { 39909 var _a, _b; 39910 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Actions"; 39911 }); 39912 const id = computed(() => { 39913 var _a, _b; 39914 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 39915 }); 39916 return (_ctx, _cache) => { 39917 return openBlock(), createElementBlock("svg", { 39918 xmlns: "http://www.w3.org/2000/svg", 39919 width: "76", 39920 height: "19",
39921 viewBox: "0 0 76 19", 39922 fill: "none", 39923 "aria-labelledby": `icon-title-${unref(id)}`, 39924 "aria-label": unref(alt) 39925 }, [ 39926 createBaseVNode("title", { 39927 id: `icon-title-${unref(id)}` 39928 }, toDisplayString(unref(alt)), 9, _hoisted_2$3A), 39929 _cache[0] || (_cache[0] = createStaticVNode('<path d="M45.0178 7.1371C46.1811 7.1371 47.2826 7.84869 47.5151 9.38622H42.3346C42.5514 8.03703 43.56 7.1371 45.0178 7.1371ZM47.3495 11.661C46.9538 12.2777 46.1891 12.7521 45.1421 12.7521C43.6995 12.7521 42.5979 11.9613 42.3346 10.5651H48.8339C48.8652 10.365 48.8809 10.1628 48.8813 9.96024C48.8813 7.78892 47.3633 5.86523 45.0188 5.86523C42.5993 5.86523 40.9551 7.64897 40.9551 9.94506C40.9551 12.2696 42.6155 14.0249 45.1118 14.0249C46.663 14.0249 47.8419 13.3266 48.5241 12.2696L47.3495 11.661Z" fill="#006BFF"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M38.9673 2.5H40.3165V13.8234H38.9673V2.5Z" fill="#006BFF"></path><path d="M56.3888 9.06179V13.8233H55.0391V9.13911C55.0391 7.86725 54.3104 7.15376 53.1159 7.15376C51.8748 7.15376 50.8668 7.88291 50.8668 9.71314V13.8233H49.5171V6.06881H50.8668V7.18554C51.4408 6.27043 52.2937 5.86719 53.3811 5.86719C55.1956 5.86719 56.3902 7.0769 56.3902 9.06274" fill="#006BFF"></path><path d="M63.8294 9.94521C63.8294 8.36309 62.6349 7.16856 61.0684 7.16856C59.5171 7.16856 58.3231 8.36309 58.3231 9.94521C58.3231 11.5273 59.5171 12.7219 61.0684 12.7219C62.6339 12.7219 63.8294 11.5273 63.8294 9.94521ZM65.1786 2.5V13.8234H63.8294V12.4889C63.2089 13.4377 62.2164 14.025 60.8976 14.025C58.7415 14.025 56.9734 12.2408 56.9734 9.94521C56.9734 7.6496 58.7415 5.86538 60.8976 5.86538C62.216 5.86538 63.2089 6.45459 63.8294 7.40101V2.5H65.1786Z" fill="#006BFF"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M66.2668 2.5H67.616V13.8234H66.2668V2.5Z" fill="#006BFF"></path><path d="M36.5621 9.94701C36.5621 8.3649 35.368 7.17036 33.8011 7.17036C32.2503 7.17036 31.0557 8.3649 31.0557 9.94701C31.0557 11.5291 32.2503 12.7237 33.8011 12.7237C35.3666 12.7237 36.5621 11.5291 36.5621 9.94701ZM37.9117 6.07023V13.8247H36.5621V12.4907C35.9415 13.4395 34.9491 14.0268 33.6308 14.0268C31.4746 14.0268 29.7061 12.2426 29.7061 9.94701C29.7061 7.6514 31.4746 5.86719 33.6308 5.86719C34.9491 5.86719 35.9415 6.45639 36.5621 7.40282V6.07023H37.9117Z" fill="#006BFF"></path><path d="M27.7046 12.3318C27.2391 12.5036 26.7468 12.5915 26.2506 12.5915C23.9467 12.5915 22.0508 10.6956 22.0508 8.39163C22.0508 6.08767 23.9467 4.19178 26.2506 4.19178C27.2239 4.19178 28.1675 4.53008 28.919 5.14845C29.1561 5.3441 29.3706 5.56559 29.5585 5.80882L30.726 4.9549C29.6571 3.55756 27.995 2.73633 26.2357 2.73633C23.1343 2.73633 20.5823 5.28835 20.5823 8.38973C20.5823 11.4911 23.1343 14.0431 26.2357 14.0431C27.4879 14.0431 28.7053 13.6271 29.6956 12.8607L28.9185 11.6321C28.5555 11.9311 28.1452 12.1676 27.7046 12.3318Z" fill="#006BFF"></path><path d="M74.1295 6.07031V10.4718C74.1295 11.895 73.3017 12.7963 72.0379 12.7963C70.7741 12.7963 69.859 11.895 69.859 10.4718V6.07031H68.4937V10.3399C68.4937 12.5772 69.8879 14.0298 72.0379 14.0298C73.8975 14.0298 74.1879 12.8533 74.1879 12.8238V14.4074C74.1879 15.9762 73.5052 16.8624 72.0815 16.8624C71.0345 16.8676 70.136 16.0876 69.9942 15.0502L68.7735 15.4772C69.1322 17.0089 70.5108 18.1002 72.0839 18.0973C74.2918 18.0973 75.4996 16.6442 75.4996 14.4074V6.07031H74.1295Z" fill="#006BFF"></path><path d="M11.4841 10.5898C10.9656 11.0499 10.318 11.6225 9.1439 11.6225H8.44179C7.59215 11.6225 6.81935 11.3137 6.2662 10.7539C5.72586 10.2069 5.42842 9.45834 5.42842 8.6457V7.68504C5.42842 6.87239 5.72586 6.12379 6.2662 5.57681C6.81935 5.01702 7.59215 4.70866 8.44179 4.70866H9.1439C10.3195 4.70866 10.9656 5.28079 11.4841 5.74095C12.0226 6.21535 12.487 6.62998 13.7256 6.62998C13.9145 6.62993 14.1032 6.61484 14.2897 6.58491L14.2854 6.574C14.2112 6.38974 14.1242 6.21094 14.025 6.03888L13.1972 4.60477C12.4383 3.29059 11.0314 2.47847 9.51394 2.47852H7.85781C6.3403 2.47847 4.93343 3.29059 4.17458 4.60477L3.34675 6.03888C2.58819 7.3532 2.58819 8.97754 3.34675 10.2919L4.17458 11.726C4.93343 13.0401 6.3403 13.8523 7.85781 13.8522H9.51394C11.0314 13.8523 12.4383 13.0401 13.1972 11.726L14.025 10.2942C14.1242 10.1222 14.2112 9.94337 14.2854 9.75911L14.2897 9.74867C14.1033 9.71769 13.9146 9.70185 13.7256 9.70123C12.487 9.70123 12.0226 10.1135 11.4841 10.5903" fill="#006BFF"></path><path d="M9.1438 5.58008H8.44169C7.14848 5.58008 6.29883 6.50373 6.29883 7.68593V8.64659C6.29883 9.82879 7.14848 10.7524 8.44169 10.7524H9.1438C11.0281 10.7524 10.8801 8.83113 13.7255 8.83113C13.9951 8.83085 14.2642 8.85561 14.5292 8.90514C14.6155 8.41636 14.6155 7.91616 14.5292 7.42739C14.2641 7.47668 13.9951 7.50144 13.7255 7.50139C10.8791 7.50139 11.0281 5.58008 9.1438 5.58008Z" fill="#006BFF"></path><path d="M16.1641 9.60681C15.6796 9.25191 15.1207 9.01167 14.5298 8.90422V8.91845C14.479 9.20172 14.3995 9.47905 14.2926 9.74628C14.7807 9.82185 15.2439 10.0127 15.6437 10.3027C15.6437 10.3065 15.6413 10.3113 15.6399 10.3156C14.6996 13.3603 11.8656 15.4512 8.67896 15.4512C4.68234 15.4512 1.39362 12.1624 1.39362 8.16582C1.39362 4.1692 4.68234 0.880484 8.67896 0.880484C11.8656 0.880484 14.6996 2.9713 15.6399 6.01608C15.6399 6.02035 15.6423 6.0251 15.6437 6.02889C15.244 6.31904 14.7808 6.50965 14.2926 6.58489C14.3994 6.85245 14.4788 7.13011 14.5298 7.41366C14.5295 7.41807 14.5295 7.42253 14.5298 7.42695C15.1207 7.31968 15.6796 7.07959 16.1641 6.72484C16.63 6.37995 16.5398 5.99047 16.4692 5.75991C1
399295.4164 2.34533 12.239 0 8.66582 0C4.18617 0 0.5 3.68617 0.5 8.16582C0.5 12.6455 4.18617 16.3316 8.66582 16.3316C12.239 16.3316 15.4164 13.9863 16.4692 10.5717C16.5398 10.3412 16.63 9.95169 16.1641 9.60681Z" fill="#006BFF"></path><path d="M14.2895 6.58333C14.1031 6.61431 13.9145 6.63016 13.7255 6.63077C12.4868 6.63077 12.0224 6.21852 11.4844 5.74175C10.9654 5.28158 10.3193 4.70898 9.14371 4.70898H8.4416C7.59148 4.70898 6.81916 5.01782 6.26601 5.57761C5.72567 6.12459 5.42822 6.87319 5.42822 7.68583V8.64649C5.42822 9.45914 5.72567 10.2077 6.26601 10.7547C6.81916 11.3145 7.59148 11.6229 8.4416 11.6229H9.14371C10.3193 11.6229 10.9654 11.0507 11.4844 10.5906C12.0224 10.1162 12.4868 9.70155 13.7255 9.70155C13.9144 9.7016 14.103 9.71669 14.2895 9.74662C14.3966 9.47949 14.476 9.20211 14.5267 8.9188C14.527 8.91405 14.527 8.90931 14.5267 8.90456C14.2617 8.85542 13.9926 8.8308 13.7231 8.83103C10.8767 8.83103 11.0257 10.7528 9.14134 10.7528H8.43923C7.14602 10.7528 6.29637 9.82869 6.29637 8.64649V7.68394C6.29637 6.50174 7.14602 5.57808 8.43923 5.57808H9.14134C11.0257 5.57808 10.8776 7.49892 13.7231 7.49892C13.9927 7.4994 14.2617 7.47478 14.5267 7.42539V7.41211C14.4757 7.12856 14.3963 6.85089 14.2895 6.58333Z" fill="#0AE8F0"></path><path d="M14.2895 6.58333C14.1031 6.61431 13.9145 6.63016 13.7255 6.63077C12.4868 6.63077 12.0224 6.21852 11.4844 5.74175C10.9654 5.28158 10.3193 4.70898 9.14371 4.70898H8.4416C7.59148 4.70898 6.81916 5.01782 6.26601 5.57761C5.72567 6.12459 5.42822 6.87319 5.42822 7.68583V8.64649C5.42822 9.45914 5.72567 10.2077 6.26601 10.7547C6.81916 11.3145 7.59148 11.6229 8.4416 11.6229H9.14371C10.3193 11.6229 10.9654 11.0507 11.4844 10.5906C12.0224 10.1162 12.4868 9.70155 13.7255 9.70155C13.9144 9.7016 14.103 9.71669 14.2895 9.74662C14.3966 9.47949 14.476 9.20211 14.5267 8.9188C14.527 8.91405 14.527 8.90931 14.5267 8.90456C14.2617 8.85542 13.9926 8.8308 13.7231 8.83103C10.8767 8.83103 11.0257 10.7528 9.14134 10.7528H8.43923C7.14602 10.7528 6.29637 9.82869 6.29637 8.64649V7.68394C6.29637 6.50174 7.14602 5.57808 8.43923 5.57808H9.14134C11.0257 5.57808 10.8776 7.49892 13.7231 7.49892C13.9927 7.4994 14.2617 7.47478 14.5267 7.42539V7.41211C14.4757 7.12856 14.3963 6.85089 14.2895 6.58333Z" fill="#0AE8F0"></path>', 13)) 39930 ], 8, _hoisted_1$3U); 39931 }; 39932 } 39933}; 39934const CoreIconCalendlyTitle = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 39935 __proto__: null, 39936 default: _sfc_main$3Y 39937}, Symbol.toStringTag, { value: "Module" })); 39938const _hoisted_1$3T = { class: "block__body" }; 39939const _hoisted_2$3z = { 39940 key: 0, 39941 class: "calendly-no-url" 39942}; 39943const _hoisted_3$l = ["data-url"]; 39944const _sfc_main$3X = { 39945 __name: "CoreBlockCalendlyEmbed", 39946 props: { 39947 settings: { 39948 type: Object, 39949 required: true 39950 }, 39951 dataSite: { 39952 type: Object, 39953 required: true 39954 }, 39955 isEditable: { 39956 type: Boolean, 39957 default: false 39958 } 39959 }, 39960 setup(__props) { 39961 const props = __props; 39962 const store = useStore(); 39963 const calendlyContainer = ref(null); 39964 const isInitialized = ref(false); 39965 const itemCheckFunction = (item) => item.type === "link"; 39966 const { isExpired } = useIsExpired(props.settings, itemCheckFunction); 39967 const calendlyId = computed(() => { 39968 var _a, _b, _c, _d, _e, _f; 39969 const coreLiteEnabled = ((_b = (_a = store.getters) == null ? void 0 : _a["settings/getBrandFeatureFlag"]) == null ? void 0 : _b.call(_a, "CoreLite")) ?? false; 39970 const brandCalendlyId = ((_c = store.getters) == null ? void 0 : _c["settings/getBrandCalendlyId"]) ?? null; 39971 if (coreLiteEnabled && brandCalendlyId) return brandCalendlyId; 39972 if (!props.dataSite) return null; 39973 const site = props.dataSite; 39974 return ((_f = (_e = (_d = site.teamMembers) == null ? void 0 : _d.find( 39975 (member) => { 39976 var _a2; 39977 return ((_a2 = member.calendlyIntegrations) == null ? void 0 : _a2.length) > 0; 39978 } 39979 )) == null ? void 0 : _e.calendlyIntegrations[0]) == null ? void 0 : _f.calendlyAccountId) || null; 39980 }); 39981 const getDefaultCalendlyUrl = () => { 39982 var _a, _b; 39983 if (calendlyId.value) { 39984 const coreLiteEnabled = ((_b = (_a = store.getters) == null ? void 0 : _a["settings/getBrandFeatureFlag"]) == null ? void 0 : _b.call(_a, "CoreLite")) ?? false;
39985 const utmParams = coreLiteEnabled ? "" : "?utm_campaign=marketing&utm_source=agentwebsites"; 39986 return `https://calendly.com/${calendlyId.value}/generaldiscussion${utmParams}`; 39987 } 39988 return null; 39989 }; 39990 const calendlyUrl = computed(() => { 39991 var _a; 39992 if (isExpired.value) return null; 39993 const url = (_a = props.settings) == null ? void 0 : _a.url; 39994 if (typeof url === "string" && (url == null ? void 0 : url.includes("https://calendly.com"))) { 39995 return url; 39996 } 39997 if (!url || url.trim() === "") { 39998 return getDefaultCalendlyUrl(); 39999 } 40000 return null; 40001 }); 40002 const widgetHeight = computed(() => { 40003 var _a; 40004 return ((_a = props.settings) == null ? void 0 : _a.height) || "700px"; 40005 }); 40006 const widgetStyle = computed(() => { 40007 return { 40008 width: "100%", 40009 height: widgetHeight.value 40010 }; 40011 }); 40012 const loadCalendlyScript = () => { 40013 return new Promise((resolve2, reject) => { 40014 if (window.Calendly) { 40015 resolve2(); 40016 return; 40017 } 40018 const script = document.createElement("script"); 40019 script.src = "https://assets.calendly.com/assets/external/widget.js"; 40020 script.async = true; 40021 script.onload = () => resolve2(); 40022 script.onerror = () => reject(new Error("Failed to load Calendly script")); 40023 document.head.appendChild(script); 40024 const link = document.createElement("link"); 40025 link.href = "https://assets.calendly.com/assets/external/widget.css"; 40026 link.rel = "stylesheet"; 40027 document.head.appendChild(link); 40028 }); 40029 }; 40030 const clearCalendlyWidget = () => { 40031 if (calendlyContainer.value) { 40032 calendlyContainer.value.innerHTML = ""; 40033 } 40034 }; 40035 const initializeCalendly = async () => { 40036 if (!calendlyContainer.value) { 40037 return; 40038 } 40039 if (!calendlyUrl.value) { 40040 return; 40041 } 40042 try { 40043 clearCalendlyWidget(); 40044 await loadCalendlyScript(); 40045 if (window.Calendly) { 40046 window.Calendly.initInlineWidget({ 40047 url: calendlyUrl.value, 40048 parentElement: calendlyContainer.value 40049 }); 40050 isInitialized.value = true; 40051 setCalendlyIframeAttributes(); 40052 } 40053 } catch (error) { 40054 console.error("Error initializing Calendly:", error); 40055 } 40056 }; 40057 const setCalendlyIframeAttributes = () => { 40058 setTimeout(() => { 40059 var _a, _b; 40060 const iframe = (_a = calendlyContainer.value) == null ? void 0 : _a.querySelector("iframe"); 40061 if (iframe) { 40062 iframe.setAttribute( 40063 "title", 40064 ((_b = props.settings) == null ? void 0 : _b.iframeTitle) || "Calendly Scheduling Page" 40065 ); 40066 } 40067 }, 1e3); 40068 }; 40069 if (props.isEditable) { 40070 watch(calendlyUrl, (newUrl) => { 40071 isInitialized.value = false; 40072 if (newUrl && true) { 40073 initializeCalendly(); 40074 } else if (!newUrl && calendlyContainer.value) { 40075 clearCalendlyWidget(); 40076 } 40077 }); 40078 } 40079 onMounted(() => { 40080 if (calendlyUrl.value && true) { 40081 initializeCalendly(); 40082 } 40083 }); 40084 return (_ctx, _cache) => { 40085 const _component_CoreIconCalendlyTitle = _sfc_main$3Y; 40086 return openBlock(), createElementBlock("div", _hoisted_1$3T, [ 40087 !calendlyId.value && __props.isEditable ? (openBlock(), createElementBlock("div", _hoisted_2$3z, [ 40088 createBaseVNode("div", null, [ 40089 createVNode(_component_CoreIconCalendlyTitle, { 40090 width: "165", 40091 height: "40" 40092 }) 40093 ]), 40094 _cache[0] || (_cache[0] = createBaseVNode("p", null, "Choose a team member to add their scheduling calendar.", -1)) 40095 ])) : calendlyUrl.value ? (openBlock(), createElementBlock("div", { 40096 key: 1, 40097 ref_key: "calendlyContainer", 40098 ref: calendlyContainer, 40099 class: "calendly-inline-widget", 40100 style: normalizeStyle(widgetStyle.value), 40101 "data-url": calendlyUrl.value 40102 }, null, 12, _hoisted_3$l)) : createCommentVNode("", true) 40103 ]); 40104 }; 40105 } 40106}; 40107const CoreBlockCalendlyEmbed = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 40108 __proto__: null, 40109 default: _sfc_main$3X 40110}, Symbol.toStringTag, { value: "Module" })); 40111const _sfc_main$3W = { 40112 name: "CoreBlockCarousel", 40113 props: { 40114 settings: { 40115 type: Object, 40116 required: true 40117 }, 40118 isEditable: { 40119 type: Boolean, 40120 default: false 40121 } 40122 }, 40123 computed: { 40124 childBlockComponent() { 40125 return "CoreBlock"; 40126 } 40127 }, 40128 methods: { 40129 getSettings() { 40130 if (this.settings.arrayMediaSrc) { 40131 const carouselContainer = { 40132 ...this.settings, 40133 id: `carousel_${this.settings.id}`, 40134 blocks: [] 40135 }; 40136 for (const element of this.settings.arrayMediaSrc) { 40137 carouselContainer.blocks.push({ 40138 ...element, 40139 variants: { 40140 sizing: "contain", 40141 "bg-color": "transparent" 40142 }, 40143 width: "100%", 40144 height: "auto" 40145 }); 40146 } 40147 } 40148 } 40149 } 40150}; 40151const _hoisted_1$3S = { class: "block__body--carousel" }; 40152function _sfc_render$3r(_ctx, _cache, $props, $setup, $data, $options) { 40153 return openBlock(), createElementBlock("div", _hoisted_1$3S, [ 40154 (openBlock(), createBlock(resolveDynamicComponent($options.childBlockComponent), { 40155 index: 0, 40156 "is-first-child": true, 40157 "is-last-child": true, 40158 settings: $props.settings, 40159 "is-editable": $props.isEditable 40160 }, null, 8, ["settings", "is-editable"])) 40161 ]); 40162} 40163const __nuxt_component_1$4 = /* @__PURE__ */ _export_sfc(_sfc_main$3W, [["render", _sfc_render$3r]]); 40164const CoreBlockCarousel = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 40165 __proto__: null, 40166 default: __nuxt_component_1$4 40167}, Symbol.toStringTag, { value: "Module" })); 40168const _sfc_main$3V = { 40169 __name: "CoreBlockCenteredNavBar", 40170 props: { 40171 site: { 40172 type: Object, 40173 default: () => ({}) 40174 }, 40175 isBuilder: { 40176 type: Boolean, 40177 default: false 40178 }, 40179 isEditable: { 40180 type: Boolean, 40181 default: false 40182 }, 40183 isNavMobile: { 40184 type: Boolean, 40185 default: false 40186 }, 40187 colorOption: { 40188 type: String, 40189 default: "single-color-divider" 40190 }, 40191 pageTree: { 40192 type: Array, 40193 default: () => [] 40194 }, 40195 hamVisible: { 40196 type: Boolean, 40197 default: false 40198 } 40199 }, 40200 setup(__props) { 40201 const props = __props; 40202 const barClasses = computed(() => { 40203 if (props.colorOption === "two-color-split") { 40204 return ["centered-nav-bar--two-color"]; 40205 } 40206 return ["centered-nav-bar--single-color"]; 40207 }); 40208 const hasMoreThanOnePage = computed(() => { 40209 var _a; 40210 return ((_a = props.site.pages) == null ? void 0 : _a.length) > 1; 40211 }); 40212 function navClick(e) { 40213 var _a; 40214 e.target.blur(); 40215 (_a = e.target.parentNode) == null ? void 0 : _a.blur(); 40216 } 40217 return (_ctx, _cache) => { 40218 const _component_CoreBlockNavItem = _sfc_main$4a; 40219 return openBlock(), createElementBlock("div", { 40220 class: normalizeClass(["centered-nav-bar", barClasses.value]) 40221 }, [ 40222 hasMoreThanOnePage.value ? (openBlock(), createElementBlock("ul", { 40223 key: 0, 40224 id: "centered-nav-menu", 40225 class: normalizeClass(["centered-nav-bar__links navbar_nav navbar_nav--center", { "centered-nav-bar__links--open": __props.hamVisible }]), 40226 "aria-labelledby": "mainmenulabel", 40227 onClick: navClick 40228 }, [ 40229 (openBlock(true), createElementBlock(Fragment, null, renderList(__props.pageTree, (page, pIndex) => { 40230 return openBlock(), createBlock(_component_CoreBlockNavItem, { 40231 key: `${page.linkUrl}-${pIndex}`, 40232 site: __props.site, 40233 navitem: page, 40234 class: "navbar_item navbar_item--dropdown", 40235 "is-nav-open": __props.hamVisible, 40236 "is-mobile": __props.isNavMobile, 40237 "is-editable": __props.isEditable, 40238 "is-builder": __props.isBuilder, 40239 onClick: navClick 40240 }
40240, null, 8, ["site", "navitem", "is-nav-open", "is-mobile", "is-editable", "is-builder"]); 40241 }), 128)) 40242 ], 2)) : createCommentVNode("", true) 40243 ], 2); 40244 }; 40245 } 40246}; 40247const CoreBlockCenteredNavBar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 40248 __proto__: null, 40249 default: _sfc_main$3V 40250}, Symbol.toStringTag, { value: "Module" })); 40251const _sfc_main$3U = { 40252 name: "CoreBlockVerticalDivider", 40253 props: { 40254 divider: { 40255 type: Object, 40256 default: () => { 40257 } 40258 } 40259 }, 40260 setup(props) { 40261 const dividerLineHeight = computed(() => { 40262 var _a; 40263 let unit; 40264 const defaultLineHeight = "100%"; 40265 const value = (_a = props.divider) == null ? void 0 : _a.lineHeight; 40266 if (!value) return defaultLineHeight; 40267 if (value.includes("%")) unit = "%"; 40268 else if (value.includes("px")) unit = "px"; 40269 if (!unit) return defaultLineHeight; 40270 let numericValue = Number(value.match(/\d/g).join("")); 40271 return `${numericValue}${unit}`; 40272 }); 40273 const dividerWidth = "24px"; 40274 const dividerStyle = computed(() => { 40275 var _a; 40276 return (_a = props.divider) == null ? void 0 : _a.style; 40277 }); 40278 const dividerWeight = computed(() => { 40279 var _a; 40280 return (_a = props.divider) == null ? void 0 : _a.weight; 40281 }); 40282 const dividerColorClass = computed(() => { 40283 var _a; 40284 const color = (_a = props.divider) == null ? void 0 : _a.color; 40285 if (!color) return "divider_default"; 40286 return `divider_${color}`; 40287 }); 40288 const weightConstant = { 40289 thin: "2px", 40290 medium: "6px", 40291 thick: "10px" 40292 }; 40293 const containerStylesObject = computed(() => { 40294 return { 40295 width: dividerWidth,
40296 "min-width": dividerWidth 40297 }; 40298 }); 40299 const lineStylesObject = computed(() => { 40300 let lineWeight = "0px"; 40301 if (dividerWeight.value) 40302 lineWeight = weightConstant[dividerWeight.value]; 40303 return { 40304 height: dividerLineHeight.value, 40305 "background-color": "transparent", 40306 "border-style": `${dividerStyle.value}`, 40307 "border-width": `0 ${lineWeight} 0 0` 40308 }; 40309 }); 40310 return { 40311 containerStylesObject, 40312 lineStylesObject, 40313 dividerColorClass 40314 }; 40315 } 40316}; 40317function _sfc_render$3q(_ctx, _cache, $props, $setup, $data, $options) { 40318 return openBlock(), createElementBlock("div", { 40319 class: "divider", 40320 style: normalizeStyle($setup.containerStylesObject) 40321 }, [ 40322 createBaseVNode("div", { 40323 class: normalizeClass($setup.dividerColorClass), 40324 style: normalizeStyle($setup.lineStylesObject) 40325 }, null, 6) 40326 ], 4); 40327} 40328const __nuxt_component_0$4 = /* @__PURE__ */ _export_sfc(_sfc_main$3U, [["render", _sfc_render$3q]]); 40329const CoreBlockVerticalDivider = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 40330 __proto__: null, 40331 default: __nuxt_component_0$4 40332}, Symbol.toStringTag, { value: "Module" })); 40333function useBlock(props) { 40334 const blockChildren = computed(() => { 40335 var _a; 40336 return ((_a = props.settings) == null ? void 0 : _a.blocks) || []; 40337 }); 40338 const blockChildrenCount = computed(() => { 40339 return blockChildren.value.length; 40340 }); 40341 const hasChildren = computed(() => { 40342 return blockChildrenCount.value > 0; 40343 }); 40344 const hasDivider = computed(() => { 40345 var _a, _b, _c; 40346 return ((_a = props.settings) == null ? void 0 : _a.divider) && ((_c = (_b = props.settings) == null ? void 0 : _b.divider) == null ? void 0 : _c.weight); 40347 }); 40348 const blockVariantLayout = computed(() => { 40349 var _a, _b; 40350 return ((_b = (_a = props.settings) == null ? void 0 : _a.variants) == null ? void 0 : _b.layout) || "rows"; 40351 }); 40352 const bodyClasses = computed(() => { 40353 const classList = ["block__body"]; 40354 if (!hasChildren.value) { 40355 classList.push("block__body--empty"); 40356 } 40357 return classList; 40358 }); 40359 const nestedLevelNext = computed(() => { 40360 return props.nestedLevel + 1; 40361 }); 40362 const childBlockComponent = computed( 40363 () => props.isEditable ? "ForgeControlBlock" : "CoreBlock" 40364 ); 40365 return { 40366 blockChildren, 40367 blockChildrenCount, 40368 hasChildren, 40369 hasDivider, 40370 blockVariantLayout, 40371 bodyClasses, 40372 nestedLevelNext, 40373 childBlockComponent 40374 }; 40375} 40376function useColumnsOverflow(props) { 40377 const { state, commit: commit2 } = useNuxtApp().$vuexStore; 40378 const featureFlags = computed(() => state.settings.featureFlags); 40379 const isColumnsOverflowEnabled = computed(() => { 40380 return featureFlags.value.ColumnsOverflow; 40381 }); 40382 const isBuilder = computed(() => props == null ? void 0 : props.isEditable); 40383 const block = computed(() => { 40384 var _a, _b, _c; 40385 if (!isColumnsOverflowEnabled.value) return null; 40386 if (((_a = props == null ? void 0 : props.settings) == null ? void 0 : _a.type) !== "columns") return null; 40387 const workingBlock = (_b = state.site) == null ? void 0 : _b.workingBlock; 40388 const blockToUse = (workingBlock == null ? void 0 : workingBlock.id) === ((_c = props == null ? void 0 : props.settings) == null ? void 0 : _c.id) ? workingBlock : props == null ? void 0 : props.settings; 40389 return blockToUse; 40390 }); 40391 const columnsOverflow = computed(() => { 40392 var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j; 40393 if (!block.value) return null; 40394 const show = Boolean( 40395 ((_b = (_a = block.value) == null ? void 0 : _a.blocks) == null ? void 0 : _b.length) > ((_c = block.value) == null ? void 0 : _c["column-count"]) 40396 ); 40397 const count = ((_e = (_d = block.value) == null ? void 0 : _d.blocks) == null ? void 0 : _e.length) - ((_f = block.value) == null ? void 0 : _f["column-count"]) || 0; 40398 const currentOffset = ((_g = block.value) == null ? void 0 : _g.offset) || 0; 40399 const maxOffset = ((_i = (_h = block.value) == null ? void 0 : _h.blocks) == null ? void 0 : _i.length) - ((_j = block.value) == null ? void 0 : _j["column-count"]) || 0; 40400 return { 40401 show, 40402 count, 40403 currentOffset, 40404 maxOffset 40405 }; 40406 }); 40407 const offsetValue = computed(() => { 40408 var _a, _b, _c, _d; 40409 if (!block.value) return null; 40410 if (!isBuilder.value) return null; 40411 const rawOffset = (_a = block.value) == null ? void 0 : _a.offset; 40412 if (!rawOffset) return null;
40413 let columnCountValue = (_b = block.value) == null ? void 0 : _b["column-count"]; 40414 const maxOffset = Math.max( 40415 0, 40416 ((_d = (_c = block.value) == null ? void 0 : _c.blocks) == null ? void 0 : _d.length) - columnCountValue 40417 ); 40418 return Math.max(0, Math.min(rawOffset, maxOffset)); 40419 }); 40420 const overflowStyles = computed(() => { 40421 if (!block.value) return null; 40422 if (!isBuilder.value) return null; 40423 const { blocks, ["column-count"]: columnCount } = block.value ?? {}; 40424 const styles = {}; 40425 styles["--column-count"] = columnCount; 40426 styles["--children-count"] = blocks == null ? void 0 : blocks.length; 40427 styles["--offset"] = offsetValue.value; 40428 return styles; 40429 }); 40430 function handleDirectionChange(direction) { 40431 if (!block.value) return; 40432 const { 40433 offset = 0, 40434 blocks = [], 40435 ["column-count"]: columnCount = 0 40436 } = block.value ?? {}; 40437 const maxOffset = (blocks == null ? void 0 : blocks.length) - columnCount; 40438 let newOffset; 40439 if (direction === "left") { 40440 newOffset = offset - 1; 40441 } else { 40442 newOffset = offset + 1; 40443 } 40444 newOffset = newOffset < 0 ? 0 : newOffset; 40445 newOffset = newOffset > maxOffset ? maxOffset : newOffset; 40446 commit2("site/setWorkingBlockSetting", { 40447 key: "offset", 40448 value: newOffset 40449 }); 40450 } 40451 return { 40452 isColumnsOverflowEnabled, 40453 overflowStyles, 40454 handleDirectionChange, 40455 columnsOverflow, 40456 offsetValue 40457 }; 40458} 40459const _hoisted_1$3R = ["data-offset"]; 40460const _hoisted_2$3y = ["data-offset"]; 40461const _sfc_main$3T = /* @__PURE__ */ Object.assign({ 40462 name: "CoreBlockColumns" 40463}, { 40464 __name: "CoreBlockColumns", 40465 props: { 40466 index: { 40467 type: Number, 40468 default: 0 40469 }, 40470 nestedLevel: { 40471 type: Number, 40472 default: 0 40473 }, 40474 settings: { 40475 type: Object, 40476 required: true 40477 }, 40478 isEditable: { 40479 type: Boolean, 40480 default: false 40481 }, 40482 isBuilderMobile: { 40483 type: Boolean, 40484 default: false 40485 }, 40486 isFirstPageLevelBlock: { 40487 type: Boolean, 40488 default: void 0 40489 }, 40490 isFirstPageLevelPosition: { 40491 type: Boolean, 40492 default: void 0 40493 } 40494 }, 40495 setup(__props) { 40496 const props = __props; 40497 const { 40498 bodyClasses, 40499 blockChildren, 40500 blockChildrenCount, 40501 nestedLevelNext, 40502 childBlockComponent, 40503 hasDivider 40504 } = useBlock(props); 40505 const store = useStore(); 40506 const { getters } = store; 40507 const { isColumnsOverflowEnabled, offsetValue, overflowStyles } = useColumnsOverflow(props); 40508 const { isFirstPageLevelBlockFor, isFirstPageLevelPositionFor } = useBlockNavOffset(props); 40509 const mobileSettingsFF = computed(() => { 40510 return getters["settings/getFeatureFlag"]("MobileSettings") || false; 40511 }); 40512 const dividerClass = computed(() => { 40513 if (hasDivider) { 40514 return "hasDivider"; 40515 } 40516 return ""; 40517 }); 40518 const mobileReverseClass = computed(() => { 40519 var _a; 40520 if (((_a = props.settings) == null ? void 0 : _a.mobileReverseOrder) === true && mobileSettingsFF.value) { 40521 return "block__section_main--mobile-reverse"; 40522 } 40523 return ""; 40524 }); 40525 const sectionMainClasses = computed(() => { 40526 const classList = ["block__container", "block__section_main"]; 40527 let columnCountValue = props.settings["column-count"]; 40528 if (columnCountValue < 2) { 40529 columnCountValue = 2; 40530 } 40531 if (columnCountValue > 6) { 40532 columnCountValue = 6; 40533 } 40534 classList.push(`block__section_main--${columnCountValue}_column`); 40535 if (mobileReverseClass.value) { 40536 classList.push(mobileReverseClass.value); 40537 } 40538 if (isColumnsOverflowEnabled.value) { 40539 classList.push("columns-overflow"); 40540 } 40541 return classList; 40542 }); 40543 const isTheFirst = (index2) => { 40544 return index2 == 0; 40545 }; 40546 const isTheLast = (index2) => { 40547 return blockChildrenCount.value - 1 == index2; 40548 }; 40549 const displayLeftDivider = computed(() => { 40550 var _a, _b; 40551 return (_b = (_a = props.settings) == null ? void 0 : _a.divider) == null ? void 0 : _b.left; 40552 }); 40553 const displayRightDivider = computed(() => { 40554 var _a, _b; 40555 return (_b = (_a = props.settings) == null ? void 0 : _a.divider) == null ? void 0 : _b.right; 40556 }); 40557 return (_ctx, _cache) => { 40558 const _component_CoreBlockVerticalDivider = __nuxt_component_0$4; 40559 return openBlock(), createElementBlock("div", { 40560 class: normalizeClass(unref(bodyClasses)) 40561 }, [
40562 !unref(hasDivider) ? (openBlock(), createElementBlock("div", { 40563 key: 0, 40564 class: normalizeClass(sectionMainClasses.value), 40565 style: normalizeStyle(unref(overflowStyles)), 40566 "data-offset": unref(offsetValue) 40567 }, [ 40568 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(blockChildren), (childSettings, childIndex) => { 40569 return openBlock(), createBlock(resolveDynamicComponent(unref(childBlockComponent)), { 40570 key: childSettings.id, 40571 settings: childSettings, 40572 index: childIndex, 40573 "nested-level": unref(nestedLevelNext), 40574 "is-editable": __props.isEditable, 40575 "is-first-child": !childIndex, 40576 "is-last-child": childIndex >= unref(blockChildren).length - 1, 40577 "parent-is-horizontal": true, 40578 "is-builder-mobile": __props.isBuilderMobile, 40579 "is-first-page-level-block": unref(isFirstPageLevelBlockFor)(childSettings), 40580 "is-first-page-level-position": unref(isFirstPageLevelPositionFor)(childSettings) 40581 }, null, 8, ["settings", "index", "nested-level", "is-editable", "is-first-child", "is-last-child", "is-builder-mobile", "is-first-page-level-block", "is-first-page-level-position"]); 40582 }), 128)) 40583 ], 14, _hoisted_1$3R)) : (openBlock(), createElementBlock("div", { 40584 key: 1, 40585 class: normalizeClass([sectionMainClasses.value, dividerClass.value]), 40586 style: normalizeStyle(unref(overflowStyles)), 40587 "data-offset": unref(offsetValue) 40588 }, [ 40589 (openBlock(true), createElementBlock(Fragment, null, renderList(unref(blockChildren), (childSettings, childIndex) => { 40590 return openBlock(), createElementBlock("div", { 40591 key: childSettings.id, 40592 class: "ninjaBlock block" 40593 }, [ 40594 isTheFirst(childIndex) && displayLeftDivider.value ? (openBlock(), createBlock(_component_CoreBlockVerticalDivider, { 40595 key: 0, 40596 divider: __props.settings.divider 40597 }, null, 8, ["divider"])) : createCommentVNode("", true), 40598 (openBlock(), createBlock(resolveDynamicComponent(unref(childBlockComponent)), { 40599 settings: childSettings, 40600 index: childIndex, 40601 "nested-level": unref(nestedLevelNext), 40602 "is-editable": __props.isEditable, 40603 "is-first-child": !childIndex, 40604 "is-last-child": isTheLast(childIndex), 40605 "parent-is-horizontal": true, 40606 "is-builder-mobile": __props.isBuilderMobile, 40607 "is-first-page-level-block": unref(isFirstPageLevelBlockFor)(childSettings), 40608 "is-first-page-level-position": unref(isFirstPageLevelPositionFor)(childSettings) 40609 }, null, 8, ["settings", "index", "nested-level", "is-editable", "is-first-child", "is-last-child", "is-builder-mobile", "is-first-page-level-block", "is-first-page-level-position"])), 40610 !isTheLast(childIndex) || displayRightDivider.value ? (openBlock(), createBlock(_component_CoreBlockVerticalDivider, { 40611 key: 1, 40612 divider: __props.settings.divider 40613 }, null, 8, ["divider"])) : createCommentVNode("", true) 40614 ]); 40615 }), 128)) 40616 ], 14, _hoisted_2$3y)) 40617 ], 2); 40618 }; 40619 } 40620}); 40621const CoreBlockColumns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 40622 __proto__: null, 40623 default: _sfc_main$3T 40624}, Symbol.toStringTag, { value: "Module" })); 40625const _sfc_main$3S = { 40626 name: "CoreBlockContactHero", 40627 props: { 40628 settings: { 40629 type: Object, 40630 required: true 40631 }, 40632 dataSite: { 40633 type: Object, 40634 required: true 40635 }, 40636 isEditable: { 40637 type: Boolean, 40638 default: false 40639 } 40640 }, 40641 setup(props) { 40642 provide(SCROLL_ANIMATION_EXCLUDED_KEY, true); 40643 const { componentModule: contactCardModule } = useLoadComponent({ 40644 ...props, 40645 settings: { type: "contact-card" } 40646 }); 40647 return { 40648 contactCardModule 40649 }; 40650 }, 40651 data() { 40652 return { 40653 croppedImage: null 40654 }; 40655 }, 40656 computed: { 40657 background() { 40658 if (this.mediaIsImg) { 40659 return { 40660 "background-image": `url('${this.croppedSrc}')`,
40661 "background-position": this.mediaBackgroundPosition, 40662 "background-repeat": "no-repeat", 40663 "background-size": "cover" 40664 }; 40665 } 40666 return null; 40667 }, 40668 videoMediaSrc() { 40669 let ret = this.mediaSrc; 40670 if (mediaHelper.isYoutube(this.mediaSrc)) { 40671 let embedId = this.mediaSrc.match( 40672 /https:\/\/www.youtube.com\/embed\/([^/?]+)/ 40673 ); 40674 if ((embedId == null ? void 0 : embedId.length) > 1) { 40675 ret = `https://www.youtube.com/embed/${embedId}?playlist=${embedId[1]}&controls=0&autoplay=1&fs=0&iv_load_policy=3&loop=1&disablekb=1&modestbranding=1&mute=1`; 40676 } 40677 } 40678 return ret; 40679 }, 40680 mediaIsVideo() { 40681 return !!this.mediaSrc && mediaHelper.isVideo(this.mediaSrc); 40682 }, 40683 mediaIsImg() { 40684 return !!this.mediaSrc && mediaHelper.isImage(this.mediaSrc); 40685 }, 40686 mediaSrc() { 40687 var _a; 40688 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.backgroundMediaSrc; 40689 return mediaSrc && typeof mediaSrc === "object" ? mediaSrc.src : mediaSrc; 40690 }, 40691 croppedSrc() { 40692 var _a; 40693 return ((_a = this.backgroundMediaCrop) == null ? void 0 : _a.image) ? this.croppedImage : mediaHelper.getEncodedURI(this.mediaSrc); 40694 }, 40695 mediaBackgroundPosition() { 40696 var _a; 40697 return ((_a = this.backgroundMediaFocal) == null ? void 0 : _a.bgPosition) || "center"; 40698 }, 40699 mediaAlt() { 40700 var _a, _b; 40701 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.backgroundMediaSrc; 40702 return mediaSrc && typeof mediaSrc === "object" ? mediaSrc.alt : (_b = this.settings) == null ? void 0 : _b.alt; 40703 }, 40704 //if backgroundMediaSrc is string means that the image has the above format, now backgroundMediaSrc is a object 40705 //when you add o edit the image, It will be saved as object 40706 backgroundMedia() { 40707 var _a, _b, _c; 40708 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.backgroundMediaSrc; 40709 const { crop, focal } = mediaSrc; 40710 if (crop || focal) { 40711 const mediaObject = crop || {}; 40712 if (focal) mediaObject.focal = focal; 40713 return mediaObject; 40714 } 40715 return (_c = (_b = this.settings) == null ? void 0 : _b.mediaMetadata) == null ? void 0 : _c.backgroundMediaSrc; 40716 }, 40717 backgroundMediaCrop() { 40718 return this.backgroundMedia; 40719 }, 40720 backgroundMediaFocal() { 40721 var _a; 40722 return (_a = this.backgroundMedia) == null ? void 0 : _a.focal; 40723 }, 40724 settingsObj() { 40725 return this.settings; 40726 }, 40727 dataSiteObj() { 40728 return this.dataSite; 40729 } 40730 }, 40731 methods: { 40732 getCarouselSettings() { 40733 const imageBlock = { 40734 type: "rows", 40735 blocks: [], 40736 variants: { 40737 "bg-color": "transparent" 40738 } 40739 }; 40740 if (this.settings.arrayMediaSrc) { 40741 const carouselContainer = { 40742 ...this.settings, 40743 id: `carousel_${this.settings.id}`, 40744 type: "container", 40745 variants: { 40746 layout: "carousel-hero", 40747 "child-width": "slim" 40748 }, 40749 blocks: [] 40750 }; 40751 for (const element of this.settings.arrayMediaSrc) { 40752 carouselContainer.blocks.push({ 40753 ...element, 40754 variants: { 40755 sizing: "contain", 40756 "bg-color": "transparent" 40757 }, 40758 width: "100%", 40759 height: "auto" 40760 }); 40761 } 40762 imageBlock.blocks = [carouselContainer]; 40763 } 40764 return imageBlock; 40765 } 40766 } 40767}; 40768const _hoisted_1$3Q = ["aria-label"]; 40769const _hoisted_2$3x = ["src"]; 40770const _hoisted_3$k = { class: "contact-card-inner" }; 40771const _hoisted_4$f = ["src", "alt"]; 40772const _hoisted_5$e = { class: "contact-hero block_contact-card" }; 40773function _sfc_render$3p(_ctx, _cache, $props, $setup, $data, $options) { 40774 const _component_CoreBlockImageCropped = __nuxt_component_0$8; 40775 const _component_CoreBlockCarousel = __nuxt_component_1$4; 40776 return openBlock(), createElementBlock("div", { 40777 class: "bg-img", 40778 style: normalizeStyle($options.background), 40779 role: "img", 40780 "aria-label": $options.mediaAlt 40781 }, [ 40782 $options.mediaSrc ? (openBlock(), createBlock(_component_CoreBlockImageCropped, { 40783 key: 0, 40784 "image-src": $options.mediaSrc, 40785 "media-metadata": $options.backgroundMediaCrop, 40786 onLoaded: _cache[0] || (_cache[0] = (value) => $data.croppedImage = value) 40787 }, null, 8, ["image-src", "media-metadata"])) : createCommentVNode("", true), 40788 createVNode(_component_CoreBlockCarousel, { 40789 settings: $options.getCarouselSettings() 40790 }, null, 8, ["settings"]), 40791 $options.mediaIsVideo ? (openBlock(), createElementBlock("iframe", { 40792 key: 1, 40793 width: "100%", 40794 height: "100%", 40795 class: "video-media", 40796 src: $options.videoMediaSrc, 40797 title: "Video player", 40798 frameborder: "0", 40799 allow: "accelerometer;autoplay;clipboard-write;encrypted-media;gyroscope;picture-in-picture;web-share", 40800 allowfullscreen: "" 40801 }, null, 8, _hoisted_2$3x)) : createCommentVNode("", true), 40802 createBaseVNode("div", _hoisted_3$k, [ 40803 $options.mediaIsImg ? (openBlock(), createElementBlock("img", { 40804 key: 0, 40805 src: $options.croppedSrc, 40806 alt: $options.mediaAlt, 40807 class: "contact-card-bg-img", 40808 style: normalizeStyle([{ "height": "100%", "width": "100%" }
40808, { objectPosition: $options.mediaBackgroundPosition }]) 40809 }, null, 12, _hoisted_4$f)) : createCommentVNode("", true), 40810 createBaseVNode("div", _hoisted_5$e, [ 40811 (openBlock(), createBlock(resolveDynamicComponent($setup.contactCardModule), { 40812 "is-editable": $props.isEditable, 40813 settings: $options.settingsObj, 40814 "data-site": $options.dataSiteObj 40815 }, null, 8, ["is-editable", "settings", "data-site"])) 40816 ]) 40817 ]) 40818 ], 12, _hoisted_1$3Q); 40819} 40820const CoreBlockContactHero = /* @__PURE__ */ _export_sfc(_sfc_main$3S, [["render", _sfc_render$3p]]); 40821const CoreBlockContactHero$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 40822 __proto__: null, 40823 default: CoreBlockContactHero 40824}, Symbol.toStringTag, { value: "Module" })); 40825const _hoisted_1$3P = { class: "block__body" }; 40826const _sfc_main$3R = { 40827 __name: "CoreBlockContentCardTextField", 40828 props: { 40829 field: { 40830 type: String, 40831 required: true 40832 }, 40833 editing: { 40834 type: Boolean, 40835 default: false 40836 }, 40837 text: { 40838 type: String, 40839 default: null 40840 }, 40841 rawHtml: { 40842 type: String, 40843 default: "" 40844 }, 40845 // Viewport point the user clicked to open this field, if any. 40846 caretPoint: { 40847 type: Object, 40848 default: null 40849 }, 40850 canEdit: { 40851 type: Boolean, 40852 default: false 40853 }, 40854 // Builder-only. Off in SiteViewer, where the click-target wrapper below 40855 // would otherwise add a DOM level to every published card. 40856 inlineCapable: { 40857 type: Boolean, 40858 default: false 40859 }, 40860 wrapperClass: { 40861 type: String, 40862 default: "" 40863 }, 40864 fieldClass: { 40865 type: [String, Array], 40866 default: "" 40867 }, 40868 isEditable: { 40869 type: Boolean, 40870 default: false 40871 }, 40872 blockSettings: { 40873 type: Object, 40874 required: true 40875 } 40876 }, 40877 emits: ["enter", "close"], 40878 setup(__props) { 40879 return (_ctx, _cache) => { 40880 const _component_CoreBlock = _sfc_main$4x; 40881 return __props.editing ? (openBlock(), createElementBlock("div", { 40882 key: 0, 40883 class: normalizeClass(["card-inline-editor block_rich-text", [__props.wrapperClass, __props.fieldClass]]), 40884 onMousedown: _cache[0] || (_cache[0] = withModifiers(() => { 40885 }, ["stop"])), 40886 onClick: _cache[1] || (_cache[1] = withModifiers(() => { 40887 }, ["stop"])) 40888 }, [ 40889 createBaseVNode("div", _hoisted_1$3P, [ 40890 renderSlot(_ctx.$slots, "inline-editor", { 40891 field: __props.field, 40892 html: __props.rawHtml, 40893 caretPoint: __props.caretPoint, 40894 onClose: () => _ctx.$emit("close") 40895 }) 40896 ]) 40897 ], 34)) : __props.inlineCapable && (__props.text || __props.canEdit) ? (openBlock(), createElementBlock("div", { 40898 key: 1, 40899 class: normalizeClass([ 40900 "card-inline-field", 40901 { 40902 "card-inline-field--editable": __props.canEdit, 40903 "card-inline-field--empty": !__props.text 40904 } 40905 ]), 40906 onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("enter", $event)) 40907 }, [ 40908 createVNode(_component_CoreBlock, { 40909 class: normalizeClass(__props.fieldClass), 40910 "is-editable": __props.isEditable, 40911 settings: __props.blockSettings 40912 }, null, 8, ["class", "is-editable", "settings"]) 40913 ], 2)) : __props.text ? (openBlock(), createBlock(_component_CoreBlock, { 40914 key: 2, 40915 class: normalizeClass(__props.fieldClass), 40916 "is-editable": __props.isEditable, 40917 settings: __props.blockSettings 40918 }, null, 8, ["class", "is-editable", "settings"])) : createCommentVNode("", true); 40919 }; 40920 } 40921}; 40922const CoreBlockContentCardTextField = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 40923 __proto__: null, 40924 default: _sfc_main$3R 40925}, Symbol.toStringTag, { value: "Module" })); 40926function useImageProperties(props, imageKey, imageComponent) { 40927 const croppedImage = ref(null); 40928 const imageSrc = computed(() => { 40929 const mediaSrc = props.settings[imageKey]; 40930 return mediaSrc && typeof mediaSrc === "object" ? mediaSrc.src : mediaSrc; 40931 }); 40932 const imageAlt = computed(() => { 40933 var _a, _b; 40934 const mediaSrc = (_a = props.settings) == null ? void 0 : _a[imageKey]; 40935 if (mediaSrc && typeof mediaSrc === "object") { 40936 return mediaSrc.decorative ? "" : mediaSrc.alt || ""; 40937 } 40938 return ((_b = props.settings) == null ? void 0 : _b.alt) || ""; 40939 }); 40940 const croppedSrc = computed(() => { 40941 var _a; 40942 return ((_a = backgroundMediaCrop.value) == null ? void 0 : _a.image) ? croppedImage.value : imageSrc.value; 40943 }); 40944 const imageHeight = computed(() => { 40945 var _a, _b; 40946 return ((_b = (_a = props.settings) == null ? void 0 : _a.extraProps) == null ? void 0 : _b.height) || props.settings.height || null; 40947 }); 40948 const imageWidth = computed(() => { 40949 var _a, _b; 40950 return ((_b = (_a = props.settings) == null ? void 0 : _a.extraProps) == null ? void 0 : _b.width) || props.settings.width || null; 40951 });
40952 const mediaBackgroundPosition = computed(() => { 40953 var _a; 40954 return ((_a = backgroundMediaFocal.value) == null ? void 0 : _a.bgPosition) || "center"; 40955 }); 40956 const backgroundMediaFocal = computed(() => { 40957 var _a; 40958 return (_a = backgroundMediaCrop.value) == null ? void 0 : _a.focal; 40959 }); 40960 const backgroundMediaCrop = computed(() => { 40961 var _a, _b, _c; 40962 const mediaSrc = ((_a = props.settings) == null ? void 0 : _a[imageKey]) || ""; 40963 const { crop, focal } = mediaSrc; 40964 if (crop || focal) { 40965 const mediaObject = { ...crop }; 40966 if (focal) mediaObject.focal = focal; 40967 return mediaObject; 40968 } 40969 return (_c = (_b = props.settings) == null ? void 0 : _b.mediaMetadata) == null ? void 0 : _c[imageKey]; 40970 }); 40971 const updateCroppedImage = (croppedImg) => { 40972 if (!imageComponent.value) imageComponent.value = {}; 40973 if (!croppedImg) { 40974 return imageComponent.value[imageKey] = imageSrc.value; 40975 } 40976 croppedImage.value = croppedImg; 40977 imageComponent.value[imageKey] = croppedImg; 40978 }; 40979 return { 40980 imageAlt, 40981 imageSrc, 40982 croppedImage, 40983 croppedSrc, 40984 imageHeight, 40985 imageWidth, 40986 mediaBackgroundPosition, 40987 backgroundMediaFocal, 40988 backgroundMediaCrop, 40989 updateCroppedImage 40990 }; 40991} 40992function useInlineActiveFieldRef(explicitRef) { 40993 return explicitRef ?? ref(null); 40994} 40995const INLINE_ACTIVE_FIELD_KEY = Symbol("inlineActiveField"); 40996function provideInlineActiveField(activeFieldRef) { 40997 provide(INLINE_ACTIVE_FIELD_KEY, activeFieldRef); 40998} 40999function injectInlineActiveField() { 41000 return inject(INLINE_ACTIVE_FIELD_KEY, null); 41001} 41002function propertyKeysFor(key) { 41003 return key === "bodyText" || key === "richText" ? ["bodyText", "richText"] : [key]; 41004} 41005function isContentLibraryLocked(settings, propertyKey) { 41006 if (!propertyKey) return false; 41007 const keys2 = propertyKeysFor(propertyKey); 41008 return ((settings == null ? void 0 : settings.contentLibraryItems) || []).some( 41009 (item) => keys2.includes(item == null ? void 0 : item.propertyKey) && (item == null ? void 0 : item.type) === "copy" && !!(item == null ? void 0 : item.isLocked) && !(item == null ? void 0 : item.edited) 41010 ); 41011} 41012function isTextEligible(raw, settings, propertyKey) { 41013 if (!raw || raw.includes("{{")) return false; 41014 if ((settings == null ? void 0 : settings.dataDictionaryIndex) != null) return false; 41015 if (isContentLibraryLocked(settings, propertyKey)) return false; 41016 return true; 41017} 41018function caretPointFrom(event) { 41019 return (event == null ? void 0 : event.clientX) == null ? null : { x: event.clientX, y: event.clientY }; 41020} 41021function getStoredRichText(settings) { 41022 return (settings == null ? void 0 : settings.bodyText) || (settings == null ? void 0 : settings.richText) || ""; 41023} 41024const CONTENT_CARD_TEXT_KEYS = ["headline", "bodyText", "disclosure"]; 41025function fieldSource(settings, key) { 41026 if (key === "bodyText") return getStoredRichText(settings); 41027 return (settings == null ? void 0 : settings[key]) || ""; 41028} 41029function useInlineTextEdit(props, options = {}) { 41030 const slots = useSlots(); 41031 const getSource = options.getSource || (() => getStoredRichText(props.settings)); 41032 const propertyKey = options.propertyKey || "bodyText"; 41033 const editableSource = computed(() => getSource() || ""); 41034 const permitted = computed( 41035 () => { 41036 var _a; 41037 return !!props.inlineEditable && !((_a = options.isExpired) == null ? void 0 : _a.value) && !isContentLibraryLocked(props.settings, propertyKey); 41038 } 41039 ); 41040 const sourceEligible = computed( 41041 () => isTextEligible(editableSource.value, props.settings, propertyKey) 41042 ); 41043 const canInlineEdit = computed( 41044 () => permitted.value && sourceEligible.value 41045 ); 41046 const entryEligible = ref(false); 41047 watch( 41048 [() => !!props.inlineEditing, sourceEligible], 41049 ([active, eligible]) => { 41050 if (!active) { 41051 entryEligible.value = false; 41052 return; 41053 } 41054 if (eligible) entryEligible.value = true; 41055 }, 41056 { immediate: true } 41057 ); 41058 const showInlineEditor = computed( 41059 () => permitted.value && entryEligible.value && !!slots["inline-editor"] 41060 ); 41061 return { editableSource, canInlineEdit, showInlineEditor }; 41062} 41063function useInlineTextFields(props, options = {}) { 41064 const slots = useSlots(); 41065 const editingField = useInlineActiveFieldRef(options.activeField); 41066 const entryPoint = ref(null); 41067 const canEditFields = computed( 41068 () => { 41069 var _a; 41070 return props.inlineEditable && props.inlineEditing && !((_a = options.isExpired) == null ? void 0 : _a.value) && !!slots["inline-editor"]; 41071 } 41072 ); 41073 watch( 41074 () => props.inlineEditing, 41075 (active) => { 41076 if (!active) editingField.value = null; 41077 } 41078 ); 41079 watch( 41080 () => { 41081 var _a; 41082 return !!editingField.value && CONTENT_CARD_TEXT_KEYS.includes(editingField.value) && (!!((_a = options.isExpired) == null ? void 0 : _a.value) || isContentLibraryLocked(props.settings, editingField.value)); 41083 }, 41084 (blocked) => { 41085 if (blocked) editingField.value = null; 41086 } 41087 ); 41088 const rawField = (key) => fieldSource(props.settings, key); 41089 const canEditField = (key) => canEditFields.value && CONTENT_CARD_TEXT_KEYS.includes(key) && isTextEligible(rawField(key), props.settings, key); 41090 const enterField = (key, event) => { 41091 if (!canEditField(key)) return; 41092 event == null ? void 0 : event.stopPropagation(); 41093 entryPoint.value = caretPointFrom(event); 41094 editingField.value = key; 41095 }; 41096 const closeField = () => { 41097 editingField.value = null; 41098 entryPoint.value = null; 41099 }; 41100 return { 41101 editingField, 41102 entryPoint, 41103 canEditFields, 41104 canEditField, 41105 rawField, 41106 enterField, 41107 closeField 41108 }; 41109} 41110function isMediaEligible(value, settings) { 41111 const src = value && typeof value === "object" ? value.src : value; 41112 if (!src || src.includes("{{")) return false;
41113 if ((settings == null ? void 0 : settings.dataDictionaryIndex) != null) return false; 41114 return true; 41115} 41116function isHeroCardMediaEligible(settings) { 41117 const componentType = (settings == null ? void 0 : settings.component) || "content-card"; 41118 return componentType === "content-card" && isMediaEligible(settings == null ? void 0 : settings.media, settings); 41119} 41120const inlineMediaEditProps = { 41121 // Builder-only: enables inline canvas editing capability for this block. 41122 // SiteViewer never sets this, so published sites are unaffected. 41123 inlineEditable: { 41124 type: Boolean, 41125 default: false 41126 }, 41127 // Builder-only: whether inline editing is currently active for this block. 41128 inlineEditing: { 41129 type: Boolean, 41130 default: false 41131 } 41132}; 41133function useInlineMediaEdit(props, options = {}) { 41134 const slots = useSlots(); 41135 const getSource = options.getSource || (() => { 41136 var _a; 41137 return (_a = props.settings) == null ? void 0 : _a[options.mediaKey]; 41138 }); 41139 const mediaValue = computed(() => getSource()); 41140 const canInlineEdit = computed( 41141 () => { 41142 var _a; 41143 return !!props.inlineEditable && !((_a = options.isExpired) == null ? void 0 : _a.value) && isMediaEligible(mediaValue.value, props.settings); 41144 } 41145 ); 41146 const fieldKey = options.fieldKey ?? null; 41147 const activeField = fieldKey ? useInlineActiveFieldRef(options.activeField) : null; 41148 const isActiveField = computed( 41149 () => !activeField || activeField.value === fieldKey 41150 ); 41151 const showInlineEditor = computed( 41152 () => canInlineEdit.value && !!props.inlineEditing && isActiveField.value && !!slots["inline-editor"] 41153 ); 41154 function enter(event) { 41155 if (!activeField || !props.inlineEditing || !canInlineEdit.value) 41156 return; 41157 event == null ? void 0 : event.stopPropagation(); 41158 activeField.value = fieldKey; 41159 } 41160 return { mediaValue, canInlineEdit, showInlineEditor, enter }; 41161} 41162function useSocialIcons(props) { 41163 const blockFacebook = computed(() => { 41164 var _a; 41165 if (!((_a = props.settings) == null ? void 0 : _a["facebook-show"])) return ""; 41166 return renderData(props.settings.facebook, props.dataSite); 41167 }); 41168 const blockLinkedin = computed(() => { 41169 var _a; 41170 if (!((_a = props.settings) == null ? void 0 : _a["linkedin-show"])) return ""; 41171 return renderData(props.settings.linkedin, props.dataSite); 41172 }); 41173 const blockTwitter = computed(() => { 41174 var _a; 41175 if (!((_a = props.settings) == null ? void 0 : _a["twitter-show"])) return ""; 41176 return renderData(props.settings.twitter, props.dataSite); 41177 }); 41178 const blockYoutube = computed(() => { 41179 return props.settings.youtube || null; 41180 }); 41181 const hasSocialIcons = computed(() => { 41182 return blockFacebook.value || blockLinkedin.value || blockTwitter.value || blockYoutube.value; 41183 }); 41184 return { 41185 blockFacebook, 41186 blockLinkedin, 41187 blockTwitter, 41188 blockYoutube, 41189 hasSocialIcons 41190 }; 41191} 41192const _sfc_main$3Q = { 41193 name: "CoreBlockContentCard", 41194 props: { 41195 settings: { 41196 type: Object, 41197 required: true 41198 }, 41199 dataSite: { 41200 type: Object, 41201 required: true 41202 }, 41203 isEditable: { 41204 type: Boolean, 41205 default: false 41206 }, 41207 isBuilderMobile: { 41208 type: Boolean, 41209 default: false 41210 }, 41211 index: { 41212 type: Number, 41213 default: 0 41214 }, 41215 nestedLevel: { 41216 type: Number, 41217 default: 0 41218 }, 41219 // Builder-only: inline canvas editing capability for this card. 41220 inlineEditable: { 41221 type: Boolean, 41222 default: false 41223 }, 41224 // Builder-only: whether the card is the active selection. 41225 inlineEditing: { 41226 type: Boolean, 41227 default: false 41228 } 41229 }, 41230 setup(props) { 41231 var _a, _b; 41232 const store = useStore(); 41233 const { state } = store; 41234 const { isExpired: hasExpiredCopy } = useIsExpired( 41235 () => props.settings, 41236 (item) => item.type === "copy" 41237 ); 41238 const { 41239 editingField, 41240 entryPoint, 41241 canEditField, 41242 rawField, 41243 enterField, 41244 closeField 41245 } = useInlineTextFields(props, { 41246 isExpired: hasExpiredCopy, 41247 activeField: injectInlineActiveField() 41248 }); 41249 const { 41250 canInlineEdit: mediaCanInlineEdit, 41251 showInlineEditor: mediaShowInlineEditor, 41252 enter: enterMediaField 41253 } = useInlineMediaEdit(props, { 41254 mediaKey: "media", 41255 getSource: () => { 41256 var _a2; 41257 return (_a2 = props.settings) == null ? void 0 : _a2.media; 41258 }, 41259 isExpired: hasExpiredCopy, 41260 fieldKey: "media", 41261 activeField: editingField 41262 }); 41263 const mediaInlineCapable = computed( 41264 () => props.inlineEditing && mediaCanInlineEdit.value 41265 ); 41266 const mediaSizingFlag = (_b = (_a = state == null ? void 0 : state.settings) == null ? void 0 : _a.featureFlags) == null ? void 0 : _b.ContentCardMediaSizing; 41267 const { imageSrc: mediaSrc, imageAlt: mediaAlt } = useImageProperties( 41268 props, 41269 "media", 41270 null 41271 ); 41272 const { 41273 blockFacebook, 41274 blockLinkedin, 41275 blockTwitter, 41276 blockYoutube, 41277 hasSocialIcons 41278 } = useSocialIcons(props); 41279 const { isMobile } = useIsMobile(); 41280 const isMobileView = computed(() => { 41281 return isMobile.value || props.isBuilderMobile; 41282 }); 41283 const mobileSettingsEnabled = computed(() => { 41284 var _a2, _b2; 41285 return !!((_b2 = (_a2 = state == null ? void 0 : state.settings) == null ? void 0 : _a2.featureFlags) == null ? void 0 : _b2.MobileSettings); 41286 }); 41287 const hideOnMobile = computed(() => { 41288 var _a2; 41289 return mobileSettingsEnabled.value && !!((_a2 = props.settings) == null ? void 0 : _a2.hideOnMobile); 41290 }); 41291 const hasMobilePlaceholder = computed(() => { 41292 var _a2, _b2, _c; 41293 const placeholder = (_a2 = props.settings) == null ? void 0 : _a2.placeholderImageMobile; 41294 return mobileSettingsEnabled.value && !((_b2 = props.settings) == null ? void 0 : _b2.hideOnMobile) && !!((_c = props.settings) == null ? void 0 : _c.togglePlaceholderMobile) && !!(typeof placeholder === "string" ? placeholder : placeholder == null ? void 0 : placeholder.src); 41295 }); 41296 const imagePlacementMobile = computed(() => { 41297 var _a2; 41298 return (_a2 = props.settings) == null ? void 0 : _a2.imagePlacementMobile; 41299 }); 41300 const displayMediaSrc = computed(() => { 41301 var _a2; 41302 if (hideOnMobile.value && isMobileView.value) { 41303 return null; 41304 } 41305 if (hasMobilePlaceholder.value && isMobileView.value) { 41306 const placeholder = (_a2 = props.settings) == null ? void 0 : _a2.placeholderImageMobile; 41307 if (placeholder && typeof placeholder === "string") { 41308 return placeholder; 41309 } 41310 return (placeholder == null ? void 0 : placeholder.src) || null; 41311 } 41312 return mediaSrc.value; 41313 }); 41314 const displayMediaAlt = computed(() => { 41315 var _a2; 41316 if (hasMobilePlaceholder.value && isMobileView.value) { 41317 const placeholder = (_a2 = props.settings) == null ? void 0 : _a2.placeholderImageMobile; 41318 if (placeholder && typeof placeholder === "object") { 41319 return placeholder.alt || ""; 41320 } 41321 return ""; 41322 } 41323 return mediaAlt.value; 41324 }); 41325 const displayMediaMetadata = computed(() => { 41326 var _a2; 41327 if (hasMobilePlaceholder.value && isMobileView.value) { 41328 const placeholder = (_a2 = props.settings) == null ? void 0 : _a2.placeholderImageMobile; 41329 if (!placeholder || typeof placeholder === "string") { 41330 return { src: placeholder }; 41331 } 41332 const { crop } = placeholder; 41333 return { src: crop ? crop : placeholder }; 41334 } 41335 return mediaMetadata.value; 41336 }); 41337 const mobileSettingsClasses = computed(() => { 41338 if (!mobileSettingsEnabled.value) { 41339 return []; 41340 } 41341 const classes = []; 41342 if (isMobileView.value) { 41343 if (hideOnMobile.value) { 41344 classes.push("block_content-card_hide-media-mobile"); 41345 } 41346 } 41347 const placement = imagePlacementMobile.value; 41348 if (placement === "image-bottom") { 41349 classes.push("block_content-card_image-bottom"); 41350 } else if (placement === "image-top") { 41351 classes.push("block_content-card_image-top"); 41352 } 41353 return classes; 41354 }); 41355 const contentLibraryItems = computed(() => { 41356 var _a2; 41357 return ((_a2 = props.settings) == null ? void 0 : _a2.contentLibraryItems) || []; 41358 }); 41359 const overlineType = computed(() => { 41360 var _a2; 41361 const containsHTML = (str) => /<[^>]*>/.test(str); 41362 if (containsHTML((_a2 = props.settings) == null ? void 0 : _a2.overline)) { 41363 return "rich-text"; 41364 } 41365 return "text"; 41366 }); 41367 const autoPlayProp = computed(() => { 41368 var _a2; 41369 return ((_a2 = props.settings) == null ? void 0 : _a2.autoPlay) || false; 41370 }); 41371 const loopProp = computed(() => { 41372 var _a2; 41373 return ((_a2 = props.settings) == null ? void 0 : _a2.loop) || false; 41374 }); 41375 const overlineText = computed(() => { 41376 var _a2, _b2; 41377 return wysiwygRequired((_a2 = props.settings) == null ? void 0 : _a2.overline) ? renderData((_b2 = props.settings) == null ? void 0 : _b2.overline, props.dataSite) : null; 41378 }); 41379 const headlineText = computed(() => { 41380 var _a2, _b2; 41381 return wysiwygRequired((_a2 = props.settings) == null ? void 0 : _a2.headline) ? renderData((_b2 = props.settings) == null ? void 0 : _b2.headline, props.dataSite) : null; 41382 }); 41383 const bodyText = computed(() => { 41384 const textValue = getStoredRichText(props.settings); 41385 return textValue && wysiwygRequired(textValue) ? renderData(textValue, props.dataSite) : null; 41386 }); 41387 const disclosureText = computed(() => { 41388 var _a2; 41389 return wysiwygRequired((_a2 = props.settings) == null ? void 0 : _a2.disclosure) ? renderData(props.settings.disclosure, props.dataSite) : null; 41390 }); 41391 const mediaMetadata = computed(() => { 41392 var _a2, _b2, _c, _d; 41393 const background = (_a2 = props.settings) == null ? void 0 : _a2.media; 41394 const mediaSrc2 = background && typeof background === "string" ? (_c = (_b2 = props.settings) == null ? void 0 : _b2.mediaMetadata) == null ? void 0 : _c.media : (_d = props.settings) == null ? void 0 : _d.media; 41395 if (!mediaSrc2) return { src: background }; 41396 const { crop } = mediaSrc2; 41397 return { src: crop ? crop : mediaSrc2 }; 41398 }); 41399 const wrapText = computed(() => { 41400 var _a2, _b2; 41401 return ((_b2 = (_a2 = props.settings) == null ? void 0 : _a2.variants) == null ? void 0 : _b2.wrapText) || false; 41402 }); 41403 const mediaHeight = computed(() => { 41404 var _a2, _b2; 41405 if (mediaSizingFlag) { 41406 return ((_a2 = props.settings) == null ? void 0 : _a2.mediaHeight) || (wrapText.value ? "auto" : "100%"); 41407 } 41408 return ((_b2 = props.settings) == null ? void 0 : _b2.mediaHeight) || "100%"; 41409 }); 41410 const mediaWidth = computed(() => { 41411 var _a2; 41412 return ((_a2 = props.settings) == null ? void 0 : _a2.mediaWidth) || "auto"; 41413 }); 41414 const validMediaWidth = computed(() => { 41415 if (mediaWidth.value === "auto") { 41416 return false;
41417 } else { 41418 return /^(\d+)(px|%|em|rem)$/.test(mediaWidth.value); 41419 } 41420 }); 41421 const hasButtons = computed(() => { 41422 return hasPrimaryButton.value || hasSecondaryButton.value; 41423 }); 41424 const hasPrimaryButton = computed(() => { 41425 var _a2; 41426 return ((_a2 = props.settings) == null ? void 0 : _a2.primaryButton) || false; 41427 }); 41428 const hasSecondaryButton = computed(() => { 41429 var _a2; 41430 return ((_a2 = props.settings) == null ? void 0 : _a2.secondaryButton) || false; 41431 }); 41432 const secondaryButtonAsPrimary = computed(() => { 41433 var _a2, _b2; 41434 return ((_b2 = (_a2 = props.settings) == null ? void 0 : _a2.variants) == null ? void 0 : _b2["secondary-as-primary"]) || false; 41435 }); 41436 const secondaryTypeText = computed(() => { 41437 var _a2; 41438 return ((_a2 = props.settings) == null ? void 0 : _a2.secondaryTypeText) ?? false; 41439 }); 41440 const imageLocation = computed(() => { 41441 var _a2; 41442 return (_a2 = props.settings.variants) == null ? void 0 : _a2["align-image"]; 41443 }); 41444 const imageLocationHorizontal = computed(() => { 41445 return imageLocation.value === "image-left" || imageLocation.value === "image-right"; 41446 }); 41447 const columnOffset = computed(() => { 41448 var _a2; 41449 return ((_a2 = props.settings.variants) == null ? void 0 : _a2["column-offset"]) || false; 41450 }); 41451 const mediaContainerStyles = computed(() => { 41452 var _a2; 41453 return { 41454 width: mediaWidth.value, 41455 height: mediaHeight.value, 41456 ...imageLocationHorizontal.value && (mediaSizingFlag || wrapText.value) && { 41457 "flex-basis": isMobileView.value ? mediaHeight.value === "auto" || !((_a2 = props.settings) == null ? void 0 : _a2.mediaHeight) ? "50%" : mediaHeight.value : mediaWidth.value === "auto" ? "50%" : mediaWidth.value, 41458 width: `${mediaWidth.value === "auto" ? "auto" : mediaWidth.value}`, 41459 // 24px to account for the container gap 41460 ...mediaSizingFlag && !isMobileView.value && { 41461 maxWidth: "calc(75% - 24px)" 41462 } 41463 }, 41464 ...columnOffset.value && { width: "unset", height: "unset" } 41465 }; 41466 }); 41467 const textBlockStyles = computed(() => { 41468 if (mediaSrc.value && imageLocationHorizontal.value) { 41469 return { 41470 flexBasis: `calc(100% - ${mediaWidth.value === "auto" ? "50%" : mediaWidth.value})`, 41471 // 24px to account for the container gap 41472 ...mediaSizingFlag && !isMobileView.value && { 41473 minWidth: "calc(25% - 24px)" 41474 } 41475 }; 41476 } 41477 return {}; 41478 }); 41479 const nestedLevelNext = computed(() => props.nestedLevel + 1); 41480 return { 41481 editingField, 41482 entryPoint, 41483 canEditField, 41484 rawField, 41485 enterField, 41486 closeField, 41487 mediaCanInlineEdit, 41488 mediaShowInlineEditor, 41489 enterMediaField, 41490 mediaInlineCapable, 41491 contentLibraryItems, 41492 overlineText, 41493 overlineType, 41494 headlineText, 41495 bodyText, 41496 disclosureText, 41497 mediaSrc, 41498 mediaAlt, 41499 mediaMetadata, 41500 wrapText, 41501 mediaHeight, 41502 mediaWidth, 41503 validMediaWidth, 41504 hasButtons, 41505 hasPrimaryButton, 41506 hasSecondaryButton, 41507 secondaryButtonAsPrimary, 41508 secondaryTypeText, 41509 hasSocialIcons, 41510 blockFacebook, 41511 blockLinkedin, 41512 blockTwitter, 41513 blockYoutube, 41514 imageLocation, 41515 imageLocationHorizontal, 41516 columnOffset, 41517 isMobile, 41518 isMobileView, 41519 autoPlayProp, 41520 loopProp, 41521 nestedLevelNext, 41522 mediaContainerStyles, 41523 textBlockStyles, 41524 mobileSettingsEnabled, 41525 hideOnMobile, 41526 hasMobilePlaceholder, 41527 imagePlacementMobile, 41528 displayMediaSrc, 41529 displayMediaAlt, 41530 displayMediaMetadata, 41531 mobileSettingsClasses 41532 }; 41533 } 41534}; 41535const _hoisted_1$3O = { 41536 key: 0, 41537 class: "block__section_btns" 41538}; 41539function _sfc_render$3o(_ctx, _cache, $props, $setup, $data, $options) { 41540 const _component_CoreBlock = _sfc_main$4x; 41541 const _component_CoreBlockContentCardTextField = _sfc_main$3R; 41542 return openBlock(), createElementBlock("div", { 41543 class: normalizeClass(["block__body block__content-card", $setup.mobileSettingsClasses]) 41544 }, [ 41545 createBaseVNode("div", { 41546 class: normalizeClass(["container", { 41547 "wrapping-text": $setup.wrapText 41548 }]) 41549 }, [ 41550 $setup.displayMediaSrc ? (openBlock(), createElementBlock("div", { 41551 key: 0, 41552 class: normalizeClass(["media-container", { 41553 "width-50": !$setup.validMediaWidth, 41554 "media-container--editable": $setup.mediaInlineCapable 41555 }]), 41556 style: normalizeStyle($setup.mediaContainerStyles), 41557 onClick: _cache[0] || (_cache[0] = ($event) => $setup.enterMediaField($event)) 41558 }, [ 41559 createVNode(_component_CoreBlock, { 41560 "is-editable": $props.isEditable, 41561 "is-builder-mobile": $props.isBuilderMobile, 41562 index: 0, 41563 "nested-level": $setup.nestedLevelNext, 41564 "inline-editable": $setup.mediaCanInlineEdit, 41565 "inline-editing": $setup.mediaShowInlineEditor, 41566 settings: { 41567 type: "media", 41568 src: $setup.displayMediaSrc, 41569 height: $setup.mediaHeight, 41570 width: "100%", 41571 ...$setup.columnOffset && $setup.mediaWidth !== "auto" && { 41572 width: $setup.mediaWidth, 41573 height: $setup.mediaHeight === "auto" ? "auto" : $setup.mediaHeight 41574 }, 41575 ...$setup.columnOffset && $setup.mediaHeight !== "auto" && { 41576 height: $setup.mediaHeight, 41577 width: $setup.mediaWidth === "auto" ? "auto" : $setup.mediaWidth 41578 }, 41579 alt: $setup.displayMediaAlt, 41580 mediaMetadata: $setup.displayMediaMetadata, 41581 showHeadline: $props.settings.showHeadline || false, 41582 videoHeadline: $props.settings.videoHeadline || "", 41583 contentLibraryItems: $setup.contentLibraryItems, 41584 autoPlay: $setup.autoPlayProp, 41585 loop: $setup.loopProp 41586 } 41587 }, createSlots({ _: 2 }, [ 41588 $setup.mediaCanInlineEdit ? { 41589 name: "inline-editor", 41590 fn: withCtx((slotProps) => [ 41591 renderSlot(_ctx.$slots, "inline-editor", normalizeProps$1(guardReactiveProps({ ...slotProps, field: "media" }))) 41592 ]), 41593 key: "0" 41594 } : void 0 41595 ]), 1032, ["is-editable", "is-builder-mobile", "nested-level", "inline-editable", "inline-editing", "settings"]), 41596 $setup.hasSocialIcons ? (openBlock(), createBlock(_component_CoreBlock, { 41597 key: 0, 41598 "is-editable": $props.isEditable, 41599 settings: { 41600 type: "social-links", 41601 facebook: $setup.blockFacebook, 41602 linkedin: $setup.blockLinkedin, 41603 twitter: $setup.blockTwitter, 41604 youtube: $setup.blockYoutube 41605 } 41606 }, null, 8, ["is-editable", "settings"])) : createCommentVNode("", true)
41607 ], 6)) : createCommentVNode("", true), 41608 createBaseVNode("div", { 41609 class: "block__section_text", 41610 style: normalizeStyle($setup.textBlockStyles) 41611 }, [ 41612 createVNode(_component_CoreBlockContentCardTextField, { 41613 field: "overline", 41614 text: $setup.overlineText, 41615 "is-editable": $props.isEditable, 41616 "block-settings": { 41617 type: $setup.overlineType, 41618 text: $setup.overlineText, 41619 bodyText: $setup.overlineText, 41620 tag: "h6", 41621 variants: { 41622 size: "overline" 41623 }, 41624 contentLibraryItems: $setup.contentLibraryItems 41625 } 41626 }, null, 8, ["text", "is-editable", "block-settings"]), 41627 createVNode(_component_CoreBlockContentCardTextField, { 41628 field: "headline", 41629 "inline-capable": $props.inlineEditing, 41630 editing: $setup.editingField === "headline", 41631 text: $setup.headlineText, 41632 "raw-html": $setup.rawField("headline"), 41633 "caret-point": $setup.entryPoint, 41634 "can-edit": $setup.canEditField("headline"), 41635 "wrapper-class": "block_rich-text_headline", 41636 "is-editable": $props.isEditable, 41637 "block-settings": { 41638 type: "rich-text", 41639 richText: $setup.headlineText, 41640 variants: { 41641 size: "headline" 41642 }, 41643 contentLibraryItems: $setup.contentLibraryItems 41644 }, 41645 onEnter: _cache[1] || (_cache[1] = ($event) => $setup.enterField("headline", $event)), 41646 onClose: $setup.closeField 41647 }, { 41648 "inline-editor": withCtx((slotProps) => [ 41649 renderSlot(_ctx.$slots, "inline-editor", normalizeProps$1(guardReactiveProps(slotProps))) 41650 ]), 41651 _: 3 41652 }, 8, ["inline-capable", "editing", "text", "raw-html", "caret-point", "can-edit", "is-editable", "block-settings", "onClose"]), 41653 createVNode(_component_CoreBlockContentCardTextField, { 41654 field: "bodyText", 41655 "inline-capable": $props.inlineEditing, 41656 editing: $setup.editingField === "bodyText", 41657 text: $setup.bodyText, 41658 "raw-html": $setup.rawField("bodyText"), 41659 "caret-point": $setup.entryPoint, 41660 "can-edit": $setup.canEditField("bodyText"), 41661 "wrapper-class": "block_rich-text_base", 41662 "is-editable": $props.isEditable, 41663 "block-settings": { 41664 type: "rich-text", 41665 richText: $setup.bodyText, 41666 contentLibraryItems: $setup.contentLibraryItems 41667 }, 41668 onEnter: _cache[2] || (_cache[2] = ($event) => $setup.enterField("bodyText", $event)), 41669 onClose: $setup.closeField 41670 }, { 41671 "inline-editor": withCtx((slotProps) => [ 41672 renderSlot(_ctx.$slots, "inline-editor", normalizeProps$1(guardReactiveProps(slotProps))) 41673 ]), 41674 _: 3 41675 }, 8, ["inline-capable", "editing", "text", "raw-html", "caret-point", "can-edit", "is-editable", "block-settings", "onClose"]), 41676 $setup.hasButtons ? (openBlock(), createElementBlock("div", _hoisted_1$3O, [ 41677 $setup.hasPrimaryButton ? (openBlock(), createBlock(_component_CoreBlock, { 41678 key: 0, 41679 "is-editable": $props.isEditable, 41680 settings: { 41681 type: "button", 41682 url: $props.settings.primaryUrl, 41683 label: $props.settings.primaryLabel, 41684 newWindow: $props.settings.primaryBtnNewWindow, 41685 icon: $props.settings.primaryBtnIcon || false, 41686 variants: { 41687 style: "primary", 41688 "icon-placement": $props.settings.primaryBtnIconPlacement || "icon-left" 41689 }, 41690 contentLibraryItems: $setup.contentLibraryItems, 41691 relAttributes: $props.settings.primaryRelAttributes 41692 } 41693 }, null, 8, ["is-editable", "settings"])) : createCommentVNode("", true), 41694 $setup.hasSecondaryButton ? (openBlock(), createBlock(_component_CoreBlock, { 41695 key: 1, 41696 "is-editable": $props.isEditable, 41697 settings: { 41698 type: "button", 41699 url: $props.settings.secondaryUrl, 41700 label: $props.settings.secondaryLabel, 41701 newWindow: $props.settings.secondaryBtnNewWindow, 41702 icon: $props.settings.secondaryBtnIcon || false, 41703 variants: { 41704 style: $setup.secondaryTypeText ? "text" : "secondary", 41705 outline: !$setup.secondaryButtonAsPrimary, 41706 "icon-placement": $props.settings.secondaryBtnIconPlacement || "icon-left" 41707 }, 41708 contentLibraryItems: $setup.contentLibraryItems, 41709 relAttributes: $props.settings.secondaryRelAttributes 41710 } 41711 }, null, 8, ["is-editable", "settings"])) : createCommentVNode("", true) 41712 ])) : createCommentVNode("", true), 41713 createVNode(_component_CoreBlockContentCardTextField, { 41714 field: "disclosure", 41715 "inline-capable": $props.inlineEditing, 41716 editing: $setup.editingField === "disclosure", 41717 text: $setup.disclosureText, 41718 "raw-html": $setup.rawField("disclosure"), 41719 "caret-point": $setup.entryPoint, 41720 "can-edit": $setup.canEditField("disclosure"), 41721 "wrapper-class": "block_rich-text_disclosure", 41722 "field-class": "disclosure-text", 41723 "is-editable": $props.isEditable, 41724 "block-settings": {
41725 type: "rich-text", 41726 richText: $setup.disclosureText, 41727 variants: { 41728 size: "disclosure" 41729 } 41730 }, 41731 onEnter: _cache[3] || (_cache[3] = ($event) => $setup.enterField("disclosure", $event)), 41732 onClose: $setup.closeField 41733 }, { 41734 "inline-editor": withCtx((slotProps) => [ 41735 renderSlot(_ctx.$slots, "inline-editor", normalizeProps$1(guardReactiveProps(slotProps))) 41736 ]), 41737 _: 3 41738 }, 8, ["inline-capable", "editing", "text", "raw-html", "caret-point", "can-edit", "is-editable", "block-settings", "onClose"]) 41739 ], 4) 41740 ], 2) 41741 ], 2); 41742} 41743const CoreBlockContentCard = /* @__PURE__ */ _export_sfc(_sfc_main$3Q, [["render", _sfc_render$3o]]); 41744const CoreBlockContentCard$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 41745 __proto__: null, 41746 default: CoreBlockContentCard 41747}, Symbol.toStringTag, { value: "Module" })); 41748const _sfc_main$3P = { 41749 name: "CoreBlockDivider", 41750 props: { 41751 settings: { 41752 type: Object, 41753 required: true 41754 } 41755 }, 41756 setup(props) { 41757 const blockContent = computed(() => props.settings.content || null); 41758 const dividerWidth = computed(() => { 41759 var _a; 41760 return ((_a = props.settings) == null ? void 0 : _a.dividerWidth) || "100%"; 41761 }); 41762 const dividerHorizontalAlignment = computed(() => { 41763 var _a; 41764 return ((_a = props.settings) == null ? void 0 : _a.dividerHorizontalAlignment) || "center"; 41765 }); 41766 return { 41767 blockContent, 41768 dividerWidth, 41769 dividerHorizontalAlignment 41770 }; 41771 } 41772}; 41773const _hoisted_1$3N = { 41774 key: 0, 41775 class: "block__section_content" 41776}; 41777function _sfc_render$3n(_ctx, _cache, $props, $setup, $data, $options) { 41778 return openBlock(), createElementBlock("div", { 41779 class: "block__body", 41780 style: normalizeStyle(`justify-content: ${$setup.dividerHorizontalAlignment}`) 41781 }, [ 41782 createBaseVNode("hr", { 41783 class: "divider", 41784 style: normalizeStyle(`width: ${$setup.dividerWidth};`) 41785 }, null, 4), 41786 $setup.blockContent ? (openBlock(), createElementBlock("div", _hoisted_1$3N, toDisplayString($setup.blockContent), 1)) : createCommentVNode("", true) 41787 ], 4); 41788} 41789const CoreBlockDivider = /* @__PURE__ */ _export_sfc(_sfc_main$3P, [["render", _sfc_render$3n]]); 41790const CoreBlockDivider$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 41791 __proto__: null, 41792 default: CoreBlockDivider 41793}, Symbol.toStringTag, { value: "Module" })); 41794const _sfc_main$3O = { 41795 name: "CoreBlockFile", 41796 props: { 41797 settings: { 41798 type: Object, 41799 required: true 41800 } 41801 } 41802}; 41803const _hoisted_1$3M = { class: "block__body" }; 41804function _sfc_render$3m(_ctx, _cache, $props, $setup, $data, $options) { 41805 return openBlock(), createElementBlock("div", _hoisted_1$3M, _cache[0] || (_cache[0] = [ 41806 createBaseVNode("div", { class: "block__section_content" }, "File", -1) 41807 ])); 41808} 41809const CoreBlockFile = /* @__PURE__ */ _export_sfc(_sfc_main$3O, [["render", _sfc_render$3m]]); 41810const CoreBlockFile$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 41811 __proto__: null, 41812 default: CoreBlockFile 41813}, Symbol.toStringTag, { value: "Module" })); 41814const _hoisted_1$3L = { 41815 key: 0, 41816 class: "block__body frame-embed-container" 41817}; 41818const _hoisted_2$3w = { 41819 key: 0, 41820 class: "frame-embed-no-url" 41821}; 41822const _hoisted_3$j = ["src", "width", "height", "title"]; 41823const _sfc_main$3N = { 41824 __name: "CoreBlockFrameEmbed", 41825 props: { 41826 settings: { 41827 type: Object, 41828 required: true 41829 }, 41830 dataSite: { 41831 type: Object, 41832 required: true 41833 }, 41834 isEditable: { 41835 type: Boolean, 41836 default: false 41837 } 41838 }, 41839 setup(__props) { 41840 const props = __props; 41841 const store = useStore(); 41842 const componentEnabled = computed(() => { 41843 var _a; 41844 if (!props.isEditable) { 41845 return true; 41846 } 41847 const getBrandFeatureFlag = (_a = store.getters) == null ? void 0 : _a["settings/getBrandFeatureFlag"]; 41848 if (typeof getBrandFeatureFlag === "function") { 41849 return getBrandFeatureFlag("CoreLite"); 41850 } 41851 return false;
41852 }); 41853 const frameUrl = computed(() => { 41854 var _a; 41855 const url = (_a = props.settings) == null ? void 0 : _a.url; 41856 if (typeof url === "string" && url.trim() !== "") { 41857 return url; 41858 } 41859 return null; 41860 }); 41861 const frameHeight = computed(() => { 41862 var _a; 41863 return ((_a = props.settings) == null ? void 0 : _a.height) || "400px"; 41864 }); 41865 const frameWidth = computed(() => { 41866 var _a; 41867 return ((_a = props.settings) == null ? void 0 : _a.width) || "100%"; 41868 }); 41869 const frameTitle = computed(() => { 41870 var _a; 41871 return ((_a = props.settings) == null ? void 0 : _a.iframeTitle) || "Embedded Content"; 41872 }); 41873 return (_ctx, _cache) => { 41874 return componentEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_1$3L, [ 41875 !frameUrl.value && __props.isEditable ? (openBlock(), createElementBlock("div", _hoisted_2$3w, _cache[0] || (_cache[0] = [ 41876 createBaseVNode("p", null, "Enter a URL to embed content in an iframe.", -1) 41877 ]))) : frameUrl.value ? (openBlock(), createElementBlock("iframe", { 41878 key: 1, 41879 src: frameUrl.value, 41880 width: frameWidth.value, 41881 height: frameHeight.value, 41882 title: frameTitle.value, 41883 frameborder: "0", 41884 allowfullscreen: "" 41885 }, null, 8, _hoisted_3$j)) : createCommentVNode("", true) 41886 ])) : createCommentVNode("", true); 41887 }; 41888 } 41889}; 41890const CoreBlockFrameEmbed = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 41891 __proto__: null, 41892 default: _sfc_main$3N 41893}, Symbol.toStringTag, { value: "Module" })); 41894const _sfc_main$3M = { 41895 name: "CoreBlockGrid", 41896 props: { 41897 index: { 41898 type: Number, 41899 default: 0 41900 }, 41901 nestedLevel: { 41902 type: Number, 41903 default: 0 41904 }, 41905 settings: { 41906 type: Object, 41907 required: true 41908 }, 41909 isEditable: { 41910 type: Boolean, 41911 default: false 41912 }, 41913 isBuilderMobile: { 41914 type: Boolean, 41915 default: false 41916 }, 41917 isFirstPageLevelBlock: { 41918 type: Boolean, 41919 default: void 0 41920 }, 41921 isFirstPageLevelPosition: { 41922 type: Boolean, 41923 default: void 0 41924 }, 41925 ...inlineMediaEditProps 41926 }, 41927 setup(props) { 41928 const { 41929 blockChildren, 41930 blockChildrenCount, 41931 blockVariantLayout, 41932 bodyClasses, 41933 childBlockComponent, 41934 hasChildren, 41935 nestedLevelNext 41936 } = useBlock(props); 41937 const { isFirstPageLevelBlockFor, isFirstPageLevelPositionFor } = useBlockNavOffset(props); 41938 const { showInlineEditor } = useInlineMediaEdit(props, { 41939 mediaKey: "image" 41940 }); 41941 const blockId = computed(() => { 41942 return props.settings.id; 41943 }); 41944 const blockBackgroundImage = computed(() => { 41945 var _a, _b; 41946 const imgSrc = isObject$1(props.settings.image) ? props.settings.image.src : props.settings.image; 41947 const bgPosition = isObject$1(props.settings.image) ? (_b = (_a = props.settings.image) == null ? void 0 : _a.focal) == null ? void 0 : _b.bgPosition : "center"; 41948 const bgStyle = { 41949 "background-image": `url('${imgSrc}')`, 41950 "background-position": bgPosition, 41951 "padding-top": "12rem" 41952 }; 41953 return props.settings.image ? bgStyle : ""; 41954 }); 41955 const sectionMainClasses = computed(() => { 41956 const fillSpace = props.settings["fill-space"]; 41957 const classList = [ 41958 "block__section_main", 41959 fillSpace ? "block__section_main-fill-space" : "block__section_main-fill-container" 41960 ]; 41961 let columnCount = props.settings["column-count"]; 41962 if (isNaN(columnCount)) { 41963 columnCount = 2; 41964 } else { 41965 if (columnCount < 2) { 41966 columnCount = 2; 41967 } 41968 if (columnCount > 6) { 41969 columnCount = 6; 41970 } 41971 } 41972 classList.push( 41973 `block__section_main--${columnCount}_column${fillSpace ? "_fill-space" : ""}` 41974 ); 41975 return classList; 41976 }); 41977 return { 41978 showInlineEditor, 41979 blockBackgroundImage, 41980 blockChildren, 41981 blockChildrenCount, 41982 blockId, 41983 blockVariantLayout, 41984 bodyClasses, 41985 childBlockComponent, 41986 hasChildren, 41987 nestedLevelNext,
41988 sectionMainClasses, 41989 isFirstPageLevelBlockFor, 41990 isFirstPageLevelPositionFor 41991 }; 41992 } 41993}; 41994const _hoisted_1$3K = { 41995 key: 0, 41996 class: "block__inline-media" 41997}; 41998function _sfc_render$3l(_ctx, _cache, $props, $setup, $data, $options) { 41999 return openBlock(), createElementBlock("div", { 42000 class: normalizeClass($setup.bodyClasses) 42001 }, [ 42002 createBaseVNode("div", { 42003 class: normalizeClass($setup.sectionMainClasses), 42004 style: normalizeStyle([$setup.blockBackgroundImage]) 42005 }, [ 42006 (openBlock(true), createElementBlock(Fragment, null, renderList($setup.blockChildren, (childSettings, childIndex) => { 42007 return openBlock(), createBlock(resolveDynamicComponent($setup.childBlockComponent), { 42008 key: childSettings.id, 42009 index: childIndex, 42010 "is-editable": $props.isEditable, 42011 "is-first-child": !childIndex, 42012 "is-last-child": childIndex >= $setup.blockChildren.length - 1, 42013 "nested-level": $setup.nestedLevelNext, 42014 "parent-is-horizontal": true, 42015 settings: childSettings, 42016 "is-builder-mobile": $props.isBuilderMobile, 42017 "is-first-page-level-block": $setup.isFirstPageLevelBlockFor(childSettings), 42018 "is-first-page-level-position": $setup.isFirstPageLevelPositionFor(childSettings) 42019 }, null, 8, ["index", "is-editable", "is-first-child", "is-last-child", "nested-level", "settings", "is-builder-mobile", "is-first-page-level-block", "is-first-page-level-position"]); 42020 }), 128)) 42021 ], 6), 42022 $setup.showInlineEditor ? (openBlock(), createElementBlock("div", _hoisted_1$3K, [ 42023 renderSlot(_ctx.$slots, "inline-editor", { field: "image" }) 42024 ])) : createCommentVNode("", true) 42025 ], 2); 42026} 42027const CoreBlockGrid = /* @__PURE__ */ _export_sfc(_sfc_main$3M, [["render", _sfc_render$3l]]); 42028const CoreBlockGrid$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 42029 __proto__: null, 42030 default: CoreBlockGrid 42031}, Symbol.toStringTag, { value: "Module" })); 42032const _sfc_main$3L = { 42033 name: "CoreBlockHero", 42034 props: { 42035 index: { 42036 type: Number, 42037 default: 0 42038 }, 42039 nestedLevel: { 42040 type: Number, 42041 default: 0 42042 }, 42043 settings: { 42044 type: Object, 42045 required: true 42046 }, 42047 isEditable: { 42048 type: Boolean, 42049 default: false 42050 } 42051 }, 42052 setup() { 42053 provide(SCROLL_ANIMATION_EXCLUDED_KEY, true); 42054 }, 42055 data() { 42056 return { 42057 dataUrl: null 42058 }; 42059 }, 42060 computed: { 42061 background() { 42062 if (this.mediaIsImg) { 42063 return { 42064 "background-image": `url('${this.croppedSrc}')`, 42065 "background-position": this.mediaBackgroundPosition, 42066 "background-repeat": "no-repeat", 42067 "background-size": "cover" 42068 }; 42069 } 42070 return null; 42071 }, 42072 childBlockComponent() { 42073 if (this.isEditable) { 42074 return "ForgeControlBlock"; 42075 } 42076 return "CoreBlock"; 42077 }, 42078 blockId() { 42079 return this.settings.id; 42080 }, 42081 variants() { 42082 return this.settings.variants || {}; 42083 }, 42084 imageAlign() { 42085 return (this.variants["image-align"] || "left").replace( 42086 "image-", 42087 "" 42088 ); 42089 }, 42090 textAlign() { 42091 return (this.variants["text-align"] || "left").replace("text-", ""); 42092 }, 42093 verticalAlign() { 42094 return this.variants["vertical-align"] || null; 42095 }, 42096 mediaIsVideo() { 42097 return !!this.mediaSrc && mediaHelper.isVideo(this.mediaSrc); 42098 }, 42099 mediaIsImg() { 42100 return !!this.mediaSrc && mediaHelper.isImage(this.mediaSrc); 42101 }, 42102 mediaSrc() { 42103 var _a; 42104 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.backgroundMediaSrc; 42105 return mediaSrc && typeof mediaSrc === "object" ? mediaSrc.src : mediaSrc; 42106 }, 42107 croppedSrc() { 42108 var _a; 42109 return ((_a = this.mediaMetadataBackground) == null ? void 0 : _a.image) ? this.dataUrl : mediaHelper.getEncodedURI(this.mediaSrc); 42110 }, 42111 mediaBackgroundPosition() { 42112 var _a; 42113 return ((_a = this.backgroundMediaFocal) == null ? void 0 : _a.bgPosition) || "center"; 42114 }, 42115 backgroundMediaFocal() { 42116 var _a, _b, _c, _d; 42117 const background = (_a = this.settings) == null ? void 0 : _a.backgroundMediaSrc; 42118 const mediaSrc = background && typeof background === "string" ? (_c = (_b = this.settings) == null ? void 0 : _b.mediaMetadata) == null ? void 0 : _c.backgroundMediaSrc : (_d = this.settings) == null ? void 0 : _d.backgroundMediaSrc; 42119 return mediaSrc == null ? void 0 : mediaSrc.focal; 42120 }, 42121 sideMediaSrc() { 42122 var _a; 42123 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.sideMediaSrc; 42124 return mediaSrc && typeof mediaSrc === "object" ? mediaSrc.src : mediaSrc; 42125 }, 42126 settingsObj() { 42127 return this.settings; 42128 }, 42129 mediaAlt() { 42130 var _a, _b; 42131 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.backgroundMediaSrc; 42132 return mediaSrc && typeof mediaSrc === "object" ? mediaSrc.alt : (_b = this.settings) == null ? void 0 : _b.alt; 42133 },
42134 mediaMetadataBackground() { 42135 var _a, _b, _c, _d; 42136 const background = (_a = this.settings) == null ? void 0 : _a.backgroundMediaSrc; 42137 const mediaSrc = background && typeof background === "string" ? (_c = (_b = this.settings) == null ? void 0 : _b.mediaMetadata) == null ? void 0 : _c.backgroundMediaSrc : (_d = this.settings) == null ? void 0 : _d.backgroundMediaSrc; 42138 if (!mediaSrc) return background; 42139 const { crop } = mediaSrc; 42140 return crop ? crop : mediaSrc; 42141 }, 42142 mediaMetadataSide() { 42143 var _a, _b, _c; 42144 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.sideMediaSrc; 42145 const { crop, focal } = mediaSrc; 42146 if (crop || focal) { 42147 const mediaObject = { src: crop }; 42148 if (focal) mediaObject.src.focal = focal; 42149 return mediaObject; 42150 } 42151 return { src: (_c = (_b = this.settings) == null ? void 0 : _b.mediaMetadata) == null ? void 0 : _c.sideMediaSrc }; 42152 } 42153 }, 42154 methods: { 42155 getSettings() { 42156 const response = { 42157 type: "columns", 42158 "column-count": 2, 42159 variants: { 42160 layout: "grid", 42161 "vertical-alignment": this.verticalAlign, 42162 "image-alignment": this.imageAlign, 42163 "padding-top": "pt-small", 42164 "bg-color": "transparent" 42165 // layout: "contained", 42166 }, 42167 locked: true, 42168 blocks: [] 42169 }; 42170 const imageBlock = { 42171 type: "rows", 42172 blocks: [], 42173 variants: { 42174 "bg-color": "transparent" 42175 } 42176 }; 42177 if (this.sideMediaSrc) { 42178 imageBlock.blocks.push({ 42179 id: `i1_${this.settings.id}`, 42180 type: "media", 42181 acceptTypes: ["video", "image"], 42182 variants: { 42183 sizing: "contain", 42184 "bg-color": "transparent" 42185 }, 42186 src: this.sideMediaSrc, 42187 width: "100%", 42188 height: "auto", 42189 mediaMetadata: this.mediaMetadataSide 42190 }); 42191 } 42192 response.blocks.push(imageBlock); 42193 const contentBlock = { 42194 id: `c1_${this.settings.id}`, 42195 type: "rows", 42196 variants: { 42197 "padding-horizontal": "px-medium", 42198 "bg-color": "transparent" 42199 }, 42200 blocks: [ 42201 { 42202 type: "text", 42203 variants: { 42204 size: "overline", 42205 align: this.textAlign 42206 }, 42207 text: this.settings.overline 42208 }, 42209 { 42210 type: "text", 42211 variants: { 42212 size: "headline", 42213 align: this.textAlign, 42214 weight: "bold" 42215 }, 42216 text: this.settings.headline 42217 }, 42218 { 42219 type: "text", 42220 variants: { 42221 size: "subline", 42222 align: this.textAlign, 42223 weight: "bold" 42224 }, 42225 text: this.settings.subline 42226 }, 42227 { 42228 type: "rich-text", 42229 variants: { 42230 align: this.textAlign 42231 }, 42232 richText: this.settings.bodyText 42233 } 42234 ] 42235 }; 42236 const buttonContainer = this.getButtonContainer(); 42237 if (buttonContainer) { 42238 contentBlock.blocks.push(buttonContainer); 42239 } 42240 response.blocks.push(contentBlock); 42241 return response; 42242 }, 42243 getCarouselSettings() { 42244 const imageBlock = { 42245 type: "rows", 42246 blocks: [], 42247 variants: { 42248 "bg-color": "transparent" 42249 } 42250 }; 42251 if (this.settings.arrayMediaSrc) { 42252 const carouselContainer = { 42253 ...this.settings, 42254 id: `carousel_${this.settings.id}`, 42255 type: "container", 42256 variants: { 42257 layout: "carousel-hero", 42258 "child-width": "slim" 42259 }, 42260 blocks: [] 42261 }; 42262 for (const element of this.settings.arrayMediaSrc) { 42263 carouselContainer.blocks.push({ 42264 ...element, 42265 variants: { 42266 sizing: "contain", 42267 "bg-color": "transparent" 42268 }, 42269 width: "100%", 42270 height: "auto" 42271 }); 42272 } 42273 imageBlock.blocks = [carouselContainer]; 42274 } 42275 return imageBlock; 42276 }, 42277 getButtonContainer() { 42278 let response = null; 42279 if (this.settings["button-primary-url"] || this.settings["button-secondary-url"] || this.settings["button-tertiary-url"]) { 42280 response = { 42281 id: `c2_${this.settings.id}`, 42282 type: "container", 42283 variants: { 42284 layout: "columns", 42285 "bg-color": "transparent" 42286 },
42287 locked: false, 42288 allowTypes: ["button"], 42289 blocks: [] 42290 }; 42291 if (this.settings["button-primary-url"]) { 42292 response.blocks.push({ 42293 icon: this.settings["button-primary-icon"], 42294 id: `b1_${this.settings.id}`, 42295 label: this.settings["button-primary-label"] || "Primary Button Label", 42296 newWindow: this.settings["button-primary-newTab"], 42297 type: "button", 42298 url: this.settings["button-primary-url"], 42299 variants: { 42300 "icon-placement": this.settings["button-primary-icon-placement"], 42301 style: "primary" 42302 } 42303 }); 42304 } 42305 if (this.settings["button-secondary-url"]) { 42306 response.blocks.push({ 42307 icon: this.settings["button-secondary-icon"], 42308 id: `b2_${this.settings.id}`, 42309 label: this.settings["button-secondary-label"] || "Secondary Button Label", 42310 newWindow: this.settings["button-secondary-newTab"], 42311 type: "button", 42312 url: this.settings["button-secondary-url"], 42313 variants: { 42314 "icon-placement": this.settings["button-secondary-icon-placement"], 42315 style: "secondary" 42316 } 42317 }); 42318 } 42319 if (this.settings["button-tertiary-url"]) { 42320 response.blocks.push({ 42321 icon: this.settings["button-tertiary-icon"], 42322 id: `b3_${this.settings.id}`, 42323 label: this.settings["button-tertiary-label"] || "Tertiary Button Label", 42324 newWindow: this.settings["button-tertiary-newTab"], 42325 type: "button", 42326 url: this.settings["button-tertiary-url"], 42327 variants: { 42328 "icon-placement": this.settings["button-tertiary-icon-placement"], 42329 style: "tertiary" 42330 } 42331 }); 42332 } 42333 } 42334 return response; 42335 }, 42336 scrollDown() { 42337 { 42338 window.scroll({ top: 900, behavior: "smooth" }); 42339 } 42340 } 42341 } 42342}; 42343const _hoisted_1$3J = ["aria-label"]; 42344const _hoisted_2$3v = ["src"]; 42345const _hoisted_3$i = ["src", "alt"]; 42346function _sfc_render$3k(_ctx, _cache, $props, $setup, $data, $options) { 42347 const _component_CoreBlockImageCropped = __nuxt_component_0$8; 42348 const _component_CoreBlockCarousel = __nuxt_component_1$4; 42349 const _component_CoreBlockBreadcrumbs = __nuxt_component_0$6; 42350 const _component_CoreBlock = _sfc_main$4x; 42351 return openBlock(), createElementBlock("div", { 42352 class: "block__body bg-img", 42353 style: normalizeStyle($options.background), 42354 "aria-label": $options.mediaAlt, 42355 role: "img" 42356 }, [ 42357 $options.mediaSrc ? (openBlock(), createBlock(_component_CoreBlockImageCropped, { 42358 key: 0, 42359 "image-src": $options.mediaSrc, 42360 "media-metadata": $options.mediaMetadataBackground, 42361 onLoaded: _cache[0] || (_cache[0] = (value) => $data.dataUrl = value) 42362 }, null, 8, ["image-src", "media-metadata"])) : createCommentVNode("", true), 42363 createVNode(_component_CoreBlockCarousel, { 42364 settings: $options.getCarouselSettings() 42365 }, null, 8, ["settings"]), 42366 $options.mediaIsVideo ? (openBlock(), createElementBlock("iframe", { 42367 key: 1, 42368 class: "block__section_content--player", 42369 src: $options.mediaSrc, 42370 title: "Video Block", 42371 frameborder: "0", 42372 allowfullscreen: "" 42373 }, null, 8, _hoisted_2$3v)) : createCommentVNode("", true), 42374 $props.settings.showBreadcrumb ? (openBlock(), createBlock(_component_CoreBlockBreadcrumbs, { 42375 key: 2, 42376 settings: $props.settings 42377 }, null, 8, ["settings"])) : createCommentVNode("", true), 42378 createBaseVNode("div", { 42379 class: normalizeClass($options.mediaIsImg ? `hero-frame-inner-img` : `hero-frame-inner`) 42380 }, [ 42381 $options.mediaIsImg ? (openBlock(), createElementBlock("img", { 42382 key: 0, 42383 src: $options.croppedSrc, 42384 alt: $options.mediaAlt, 42385 class: "hero-img-frame-bg-img", 42386 style: normalizeStyle([{ "height": "100%", "width": "100%" }, { objectPosition: $options.mediaBackgroundPosition }]) 42387 }, null, 12, _hoisted_3$i)) : createCommentVNode("", true), 42388 (openBlock(), createBlock(resolveDynamicComponent($options.childBlockComponent), { 42389 index: 0, 42390 "is-editable": $props.isEditable, 42391 "is-first-child": true, 42392 "is-last-child": true, 42393 settings: $options.getSettings() 42394 }, null, 8, ["is-editable", "settings"])), 42395 $props.settings.showKeepScrolling ? (openBlock(), createBlock(_component_CoreBlock, { 42396 key: 1, 42397 "is-editable": $props.isEditable, 42398 settings: { 42399 type: "button", 42400 label: "Keep Scrolling", 42401 variants: { 42402 scroll: true 42403 }, 42404 event: $options.scrollDown 42405 } 42406 }, null, 8, ["is-editable", "settings"])) : createCommentVNode("", true) 42407 ], 2) 42408 ], 12, _hoisted_1$3J); 42409} 42410const CoreBlockHero = /* @__PURE__ */ _export_sfc(_sfc_main$3L, [["render", _sfc_render$3k]]); 42411const CoreBlockHero$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 42412 __proto__: null, 42413 default: CoreBlockHero 42414}, Symbol.toStringTag, { value: "Module" })); 42415function useIntersectionObserver(elementRef, options = {}) { 42416 const { 42417 rootMargin = "200px 0px", 42418 threshold = 0, 42419 enabled = true, 42420 initialHeuristic = false 42421 }
42421 = options; 42422 const getHeuristicValue = (heuristic) => typeof heuristic === "object" && "value" in heuristic ? heuristic.value : heuristic; 42423 const initialHeuristicValue = getHeuristicValue(initialHeuristic); 42424 const isAboveFold = ref(initialHeuristicValue); 42425 let observer = null; 42426 let wasAboveFoldDetermined = false; 42427 const checkInitialPosition = () => { 42428 if (!elementRef.value) return; 42429 const currentHeuristic = getHeuristicValue(initialHeuristic); 42430 if (currentHeuristic) { 42431 return; 42432 } 42433 const rect = elementRef.value.getBoundingClientRect(); 42434 const viewportHeight = window.innerHeight || 800; 42435 const rootMarginTop = parseInt(rootMargin.split(" ")[0]) || 0; 42436 const hasNoDimensions = rect.width === 0 && rect.height === 0; 42437 const isAtOrigin = rect.top === 0 && rect.left === 0 && rect.bottom === 0; 42438 const isInViewport = rect.top < viewportHeight + rootMarginTop && rect.bottom > 0; 42439 if (!wasAboveFoldDetermined) { 42440 isAboveFold.value = hasNoDimensions || isAtOrigin ? true : isInViewport; 42441 } 42442 }; 42443 if (!initialHeuristicValue) { 42444 watchEffect(() => { 42445 if (elementRef.value && true) { 42446 checkInitialPosition(); 42447 } 42448 }); 42449 } 42450 const initializeObserver = () => { 42451 const isEnabled = unref(enabled); 42452 if (!isEnabled || !elementRef.value) { 42453 return; 42454 } 42455 if (observer) { 42456 return; 42457 } 42458 checkInitialPosition(); 42459 const finalizeDetermination = () => { 42460 wasAboveFoldDetermined = true; 42461 observer.unobserve(elementRef.value); 42462 }; 42463 observer = new IntersectionObserver( 42464 (entries) => { 42465 entries.forEach((entry) => { 42466 if (!wasAboveFoldDetermined) { 42467 if (isAboveFold.value === true) { 42468 finalizeDetermination(); 42469 } else { 42470 isAboveFold.value = entry.isIntersecting; 42471 finalizeDetermination(); 42472 } 42473 } 42474 }); 42475 }, 42476 { 42477 rootMargin, 42478 threshold 42479 } 42480 ); 42481 observer.observe(elementRef.value); 42482 }; 42483 const destroyObserver = () => { 42484 if (observer) { 42485 observer.disconnect(); 42486 observer = null; 42487 } 42488 }; 42489 const isRef2 = (value) => typeof value === "object" && value !== null && "value" in value; 42490 onMounted(() => { 42491 const isEnabled = unref(enabled); 42492 if (isEnabled) { 42493 initializeObserver(); 42494 } else { 42495 checkInitialPosition(); 42496 } 42497 if (isRef2(enabled)) { 42498 watch(enabled, (newValue) => { 42499 if (newValue && !observer) { 42500 initializeObserver(); 42501 } else if (!newValue && observer) { 42502 destroyObserver(); 42503 checkInitialPosition(); 42504 } 42505 }); 42506 } 42507 if (isRef2(initialHeuristic)) { 42508 watch(initialHeuristic, (newValue) => { 42509 if (!observer || !elementRef.value) { 42510 isAboveFold.value = newValue; 42511 } 42512 }); 42513 } 42514 }); 42515 onBeforeUnmount(() => { 42516 destroyObserver(); 42517 }); 42518 return { 42519 isAboveFold 42520 }; 42521} 42522const _sfc_main$3K = { 42523 __name: "CoreBlockLazy", 42524 props: { 42525 onLoad: { 42526 type: Function, 42527 default: () => { 42528 } 42529 }, 42530 trackAboveFold: { 42531 type: Boolean, 42532 default: false 42533 }, 42534 rootMargin: { 42535 type: String, 42536 default: "200px 0px" 42537 } 42538 }, 42539 setup(__props) { 42540 const props = __props; 42541 const lazyComponent = ref(null); 42542 const observer = ref(null); 42543 const hasLoaded = ref(false); 42544 const { isAboveFold } = useIntersectionObserver(lazyComponent, { 42545 enabled: computed(() => props.trackAboveFold), 42546 rootMargin: props.rootMargin 42547 }); 42548 provide("isAboveFold", isAboveFold); 42549 const initializeObserver = () => { 42550 if (observer.value || false || !lazyComponent.value) { 42551 return; 42552 } 42553 observer.value = new IntersectionObserver( 42554 (entries, obs) => { 42555 entries.forEach((entry) => { 42556 if (!entry.isIntersecting || hasLoaded.value) { 42557 return; 42558 } 42559 hasLoaded.value = true; 42560 props.onLoad(entry.target.children); 42561 obs.unobserve(entry.target); 42562 }); 42563 }, 42564 { 42565 threshold: 0.1 42566 } 42567 ); 42568 observer.value.observe(lazyComponent.value); 42569 }; 42570 const destroyObserver = () => { 42571 if (observer.value) { 42572 observer.value.disconnect(); 42573 observer.value = null; 42574 } 42575 }; 42576 onMounted(() => { 42577 initializeObserver(); 42578 }); 42579 onBeforeUnmount(() => { 42580 destroyObserver(); 42581 }); 42582 return (_ctx, _cache) => { 42583 return openBlock(), createElementBlock("span", { 42584 ref_key: "lazyComponent", 42585 ref: lazyComponent 42586 }, [ 42587 renderSlot(_ctx.$slots, "default", { isAboveFold: unref(isAboveFold) }) 42588 ], 512); 42589 }; 42590 } 42591}; 42592const CoreBlockLazy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 42593 __proto__: null, 42594 default: _sfc_main$3K 42595}, Symbol.toStringTag, { value: "Module" })); 42596const _hoisted_1$3I = ["data-testid", "data-expired-preset-id"]; 42597const _hoisted_2$3u = ["id"]; 42598const _hoisted_3$h = ["src", "title", "loading", "fetchpriority", "width", "height"]; 42599const _hoisted_4$e = ["src", "poster", "preload", "width", "height"]; 42600const _hoisted_5$d = { key: 0 }; 42601const _hoisted_6$8 = ["id"];
42602const _hoisted_7$7 = ["src", "title", "loading", "fetchpriority", "width", "height"]; 42603const _hoisted_8$7 = ["src", "poster", "preload", "width", "height"]; 42604const _hoisted_9$6 = { 42605 key: 3, 42606 class: "block__inline-media" 42607}; 42608const _sfc_main$3J = { 42609 __name: "CoreBlockVideo", 42610 props: { 42611 settings: { 42612 type: Object, 42613 required: true 42614 }, 42615 isEditable: { 42616 type: Boolean, 42617 default: false 42618 }, 42619 isBuilderMobile: { 42620 type: Boolean, 42621 default: false 42622 }, 42623 index: { 42624 type: Number, 42625 default: 0 42626 }, 42627 nestedLevel: { 42628 type: Number, 42629 default: 0 42630 }, 42631 // Builder-only: enables inline canvas editing capability for this block. 42632 // SiteViewer never sets this, so published sites are unaffected. 42633 inlineEditable: { 42634 type: Boolean, 42635 default: false 42636 }, 42637 // Builder-only: whether inline editing is currently active for this block. 42638 inlineEditing: { 42639 type: Boolean, 42640 default: false 42641 } 42642 }, 42643 setup(__props) { 42644 const props = __props; 42645 const store = useStore(); 42646 const { state } = store; 42647 const seoVideoImprovementsFF = computed( 42648 () => { 42649 var _a, _b; 42650 return !!((_b = (_a = state == null ? void 0 : state.settings) == null ? void 0 : _a.featureFlags) == null ? void 0 : _b.SeoVideoImprovements); 42651 } 42652 ); 42653 const { mobileSettingsFF, isMobile, imageWidthNumeric, imageHeightNumeric } = useIsMobile(props, { 42654 widthValue: computed( 42655 () => { 42656 var _a, _b, _c; 42657 return ((_a = props.settings) == null ? void 0 : _a.width) || ((_c = (_b = props.settings) == null ? void 0 : _b.extraProps) == null ? void 0 : _c.width); 42658 } 42659 ), 42660 heightValue: computed( 42661 () => { 42662 var _a, _b, _c; 42663 return ((_a = props.settings) == null ? void 0 : _a.height) || ((_c = (_b = props.settings) == null ? void 0 : _b.extraProps) == null ? void 0 : _c.height); 42664 } 42665 ) 42666 }); 42667 const videoElementRef = ref(null); 42668 const { isAboveFold } = useIntersectionObserver(videoElementRef, { 42669 enabled: true, 42670 initialHeuristic: computed( 42671 () => props.nestedLevel <= 2 && props.index === 0 42672 ) 42673 }); 42674 const componentId = Math.random().toString(36).substr(2, 9); 42675 const htmlVideoId = `jwplayer-script-video-${componentId}`; 42676 const { isExpired, expiredPresetId } = useIsExpired( 42677 props.settings, 42678 (item) => item.type === props.settings.type 42679 ); 42680 const { showInlineEditor } = useInlineMediaEdit(props, { 42681 mediaKey: "src", 42682 isExpired 42683 }); 42684 const shouldHideOnMobile = computed(() => { 42685 var _a; 42686 return mobileSettingsFF.value && ((_a = props.settings) == null ? void 0 : _a.hideOnMobile) === true && (isMobile.value || props.isBuilderMobile); 42687 }); 42688 const videoContainer = ref(null); 42689 const shouldLoadVideo = ref(false); 42690 const mediaSrc = computed(() => { 42691 var _a; 42692 return (_a = props.settings) == null ? void 0 : _a.src; 42693 }); 42694 const { 42695 mediaUrl: src, 42696 isBlobFile: isFile2, 42697 isEMoney: isEMoneyUrl, 42698 videoAutoPlayUrl, 42699 videoLoopUrl 42700 } = useMedia(mediaSrc); 42701 const { prefersReducedMotion } = useReducedMotion(); 42702 const shouldUseLazyLoading = computed(() => { 42703 if (!mobileSettingsFF.value || isExpired.value || !src.value) return false; 42704 if (seoVideoImprovementsFF.value) return !isAboveFold.value; 42705 return true; 42706 }); 42707 const fullSrc = computed(() => { 42708 if (!src.value) return; 42709 const shouldDisableAutoplay = prefersReducedMotion.value || !props.settings.autoPlay; 42710 if (shouldDisableAutoplay) { 42711 try { 42712 const videoUrl = new URL(src.value); 42713 videoUrl.searchParams.set("autoplay", "false"); 42714 if (props.isEditable) { 42715 videoUrl.searchParams.set("muted", "1"); 42716 } 42717 return videoUrl.toString(); 42718 } catch (error) { 42719 return src.value; 42720 } 42721 } 42722 if (props.settings.autoPlay && props.settings.loop) 42723 return videoLoopUrl.value; 42724 if (props.settings.autoPlay) return videoAutoPlayUrl.value; 42725 return src.value; 42726 }); 42727 const playerId = computed(() => { 42728 if (isEMoneyUrl.value) { 42729 return mediaHelper.checkIfHasPlayerId(src.value); 42730 } 42731 return ""; 42732 }); 42733 const loadingStrategy = computed(() => { 42734 if (seoVideoImprovementsFF.value) 42735 return isAboveFold.value ? "eager" : "lazy"; 42736 if (!mobileSettingsFF.value) return void 0; 42737 return isAboveFold.value ? "eager" : "lazy"; 42738 }); 42739 const fetchPriority = computed(() => { 42740 if (seoVideoImprovementsFF.value) return isAboveFold.value ? "high" : "low"; 42741 if (!mobileSettingsFF.value) return void 0; 42742 return isAboveFold.value ? "high" : "low"; 42743 }); 42744 const videoWidth = computed(() => { 42745 if (!mobileSettingsFF.value) return void 0; 42746 return imageWidthNumeric.value; 42747 }); 42748 const videoHeight = computed(() => { 42749 if (!mobileSettingsFF.value) return void 0; 42750 return imageHeightNumeric.value; 42751 }); 42752 const videoStyle = computed(() => { 42753 if (!mobileSettingsFF.value) return void 0; 42754 return { 42755 "max-width": "100vw" 42756 }; 42757 }); 42758 const posterUrl = computed(() => { 42759 var _a, _b; 42760 const url = ((_a = props.settings) == null ? void 0 : _a.thumbnailUrl) || ((_b = props.settings) == null ? void 0 : _b.posterUrl); 42761 return url || void 0; 42762 }); 42763 const videoPreload = computed(() => { 42764 if (shouldUseLazyLoading.value && !isAboveFold.value) return "none"; 42765 return "metadata"; 42766 }); 42767 const iframeTitle = computed(() => { 42768 var _a; 42769 return ((_a = props.settings) == null ? void 0 : _a.videoTitle) || "Video Block"; 42770 }); 42771 function loadPlayer() { 42772 if (!src.value || !playerId.value) { 42773 return; 42774 } 42775 const allPlayersWithId = document.querySelectorAll( 42776 `[id="${playerId.value}"]` 42777 ); 42778 const currentContainer = document.getElementById(playerId.value); 42779 for (const player of allPlayersWithId) { 42780 if (player !== currentContainer && player.innerHTML && (player.innerHTML.includes("jwplayer") || player.querySelector("video, iframe"))) { 42781 const clone = player.cloneNode(true); 42782 clone.id = `${playerId.value}-${componentId}`; 42783 const nestedElements = clone.querySelectorAll( 42784 `[id="${playerId.value}"]` 42785 );
42786 nestedElements.forEach((el) => { 42787 el.id = `${playerId.value}-${componentId}`; 42788 }); 42789 currentContainer.innerHTML = ""; 42790 currentContainer.appendChild(clone); 42791 return; 42792 } 42793 } 42794 const existingPlayerScript = document.getElementById(htmlVideoId); 42795 if (existingPlayerScript) { 42796 removeLoadedVideoScript(); 42797 } 42798 const script = document.createElement("script"); 42799 script.id = htmlVideoId; 42800 script.src = src.value; 42801 document.head.appendChild(script); 42802 } 42803 function removeLoadedVideoScript() { 42804 const existingVideoScript = document.getElementById(htmlVideoId); 42805 if (existingVideoScript) { 42806 existingVideoScript.parentNode.removeChild(existingVideoScript); 42807 } 42808 } 42809 const handleLazyLoad = async () => { 42810 shouldLoadVideo.value = true; 42811 if (isEMoneyUrl.value && isEMoneyUrl.value.length > 0) { 42812 await ensureJwLibraryLoaded(); 42813 loadPlayer(); 42814 } 42815 }; 42816 if (props.isEditable) { 42817 watch(isEMoneyUrl, async (newVal) => { 42818 if (newVal && newVal.length > 0) { 42819 await ensureJwLibraryLoaded(); 42820 loadPlayer(); 42821 } else { 42822 removeLoadedVideoScript(); 42823 } 42824 }); 42825 watch(src, async (newSrc, oldSrc) => { 42826 if (newSrc !== oldSrc && isEMoneyUrl.value) { 42827 await ensureJwLibraryLoaded(); 42828 loadPlayer(); 42829 } 42830 }); 42831 } 42832 onMounted(async () => { 42833 if (shouldUseLazyLoading.value) { 42834 return; 42835 } 42836 if (isEMoneyUrl.value && isEMoneyUrl.value.length > 0) { 42837 await ensureJwLibraryLoaded(); 42838 loadPlayer(); 42839 } 42840 }); 42841 return (_ctx, _cache) => { 42842 const _component_CoreBlock = _sfc_main$4x; 42843 return !shouldHideOnMobile.value ? (openBlock(), createElementBlock("div", { 42844 key: 0, 42845 ref_key: "videoElementRef", 42846 ref: videoElementRef, 42847 class: "block__body" 42848 }, [ 42849 unref(isExpired) ? (openBlock(), createElementBlock("div", { 42850 key: 0, 42851 "data-testid": `${__props.settings.type}-expired`, 42852 "data-expired-preset-id": unref(expiredPresetId), 42853 class: "expired-content" 42854 }, null, 8, _hoisted_1$3I)) : createCommentVNode("", true), 42855 __props.settings.showHeadline && __props.settings.videoHeadline && !unref(isExpired) ? (openBlock(), createBlock(_component_CoreBlock, { 42856 key: 1, 42857 "is-editable": __props.isEditable, 42858 settings: { 42859 bodyText: __props.settings.videoHeadline, 42860 type: "rich-text", 42861 variants: { 42862 "padding-bottom": "pb-small", 42863 "padding-top": "pt-small", 42864 size: "headline" 42865 }, 42866 contentLibraryItems: __props.settings.contentLibraryItems 42867 } 42868 }, null, 8, ["is-editable", "settings"])) : createCommentVNode("", true), 42869 !unref(isExpired) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [ 42870 shouldUseLazyLoading.value ? (openBlock(), createBlock(_sfc_main$3K, { 42871 key: 0, 42872 "on-load": handleLazyLoad 42873 }, { 42874 default: withCtx(() => [ 42875 unref(isEMoneyUrl) ? (openBlock(), createElementBlock("div", { 42876 key: 0, 42877 id: playerId.value, 42878 ref_key: "videoContainer", 42879 ref: videoContainer 42880 }, null, 8, _hoisted_2$3u)) : (openBlock(), createElementBlock("div", { 42881 key: 1, 42882 ref_key: "videoContainer", 42883 ref: videoContainer, 42884 class: "block__section_content", 42885 style: normalizeStyle(unref(mobileSettingsFF) ? videoStyle.value : void 0) 42886 }, [ 42887 !unref(isFile2) && shouldLoadVideo.value ? (openBlock(), createElementBlock("iframe", { 42888 key: 0, 42889 class: "block__section_content--player", 42890 type: "video", 42891 src: fullSrc.value, 42892 title: iframeTitle.value, 42893 allow: "fullscreen;encrypted-media", 42894 loading: loadingStrategy.value, 42895 fetchpriority: fetchPriority.value, 42896 width: unref(mobileSettingsFF) ? videoWidth.value : void 0, 42897 height: unref(mobileSettingsFF) ? videoHeight.value : void 0 42898 }, null, 8, _hoisted_3$h)) : createCommentVNode("", true), 42899 unref(isFile2) && shouldLoadVideo.value ? (openBlock(), createElementBlock("video", mergeProps({ 42900 key: 1, 42901 controls: "", 42902 playsinline: "", 42903 class: "block__section_content--player", 42904 src: unref(src), 42905 poster: posterUrl.value, 42906 preload: videoPreload.value, 42907 width: unref(mobileSettingsFF) ? videoWidth.value : void 0, 42908 height: unref(mobileSettingsFF) ? videoHeight.value : void 0 42909 }, _ctx.$attrs), null, 16, _hoisted_4$e)) : createCommentVNode("", true) 42910 ], 4)) 42911 ]), 42912 _: 1 42913 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [ 42914 unref(isEMoneyUrl) ? (openBlock(), createElementBlock("div", _hoisted_5$d, [ 42915 createBaseVNode("div", { id: playerId.value }, null, 8, _hoisted_6$8) 42916 ])) : (openBlock(), createElementBlock("div", { 42917 key: 1, 42918 class: "block__section_content", 42919 style: normalizeStyle(unref(mobileSettingsFF) ? videoStyle.value : void 0) 42920 }, [ 42921 !unref(isFile2) ? (openBlock(), createElementBlock("iframe", { 42922 key: 0, 42923 class: "block__section_content--player", 42924 type: "video", 42925 src: fullSrc.value, 42926 title: iframeTitle.value, 42927 allow: "fullscreen;encrypted-media", 42928 loading: loadingStrategy.value, 42929 fetchpriority: fetchPriority.value, 42930 width: unref(mobileSettingsFF) ? videoWidth.value : void 0, 42931 height: unref(mobileSettingsFF) ? videoHeight.value : void 0 42932 }, null, 8, _hoisted_7$7)) : createCommentVNode("", true), 42933 unref(isFile2) ? (openBlock(), createElementBlock("video", mergeProps({ 42934 key: 1, 42935 controls: "", 42936 playsinline: "", 42937 class: "block__section_content--player", 42938 src: unref(src), 42939 poster: posterUrl.value, 42940 preload: videoPreload.value, 42941 width: unref(mobileSettingsFF) ? videoWidth.value : void 0, 42942 height: unref(mobileSettingsFF) ? videoHeight.value : void 0 42943 }, _ctx.$attrs), null, 16, _hoisted_8$7)) : createCommentVNode("", true) 42944 ], 4)) 42945 ], 64)) 42946 ], 64)) : createCommentVNode("", true), 42947 unref(showInlineEditor) ? (openBlock(), createElementBlock("div", _hoisted_9$6, [ 42948 renderSlot(_ctx.$slots, "inline-editor", { field: "src" }) 42949 ])) : createCommentVNode("", true) 42950 ], 512)) : createCommentVNode("", true); 42951 }; 42952 } 42953}; 42954const CoreBlockVideo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 42955 __proto__: null, 42956 default: _sfc_main$3J 42957}, Symbol.toStringTag, { value: "Module" })); 42958const _hoisted_1$3H = { 42959 key: 0, 42960 "data-testid": "hero-expired", 42961 class: "expired-content" 42962}; 42963const _hoisted_2$3t = ["aria-label"]; 42964const _hoisted_3$g = { 42965 key: 2, 42966 class: "hosted-video-container" 42967}; 42968const _hoisted_4$d = ["aria-label"]; 42969const _hoisted_5$c = { 42970 key: 5,
42971 class: "block__inline-media" 42972}; 42973const _sfc_main$3I = /* @__PURE__ */ Object.assign({ 42974 name: "CoreBlockHeroBackground" 42975}, { 42976 __name: "CoreBlockHeroBackground", 42977 props: { 42978 slide: { 42979 type: Object, 42980 default: () => ({ 42981 src: "", 42982 focal: {} 42983 }) 42984 }, 42985 slideIndex: { 42986 type: Number, 42987 default: null 42988 }, 42989 currentSlide: { 42990 type: Number, 42991 default: 0 42992 }, 42993 componentType: { 42994 type: String, 42995 default: "contact-card" 42996 }, 42997 // Whether the content-card variant's own media field is eligible for 42998 // inline editing. Only true when componentType is "content-card" and it 42999 // actually has its own media configured. 43000 cardMediaEligible: { 43001 type: Boolean, 43002 default: false 43003 }, 43004 overlay: { 43005 type: Object, 43006 default: () => ({}) 43007 }, 43008 backgroundClasses: { 43009 type: Array, 43010 default: () => [] 43011 }, 43012 // Builder-only: enables inline canvas editing capability for this block. 43013 // SiteViewer never sets this, so published sites are unaffected. 43014 inlineEditable: { 43015 type: Boolean, 43016 default: false 43017 }, 43018 // Builder-only: whether inline editing is currently active for this block. 43019 inlineEditing: { 43020 type: Boolean, 43021 default: false 43022 } 43023 }, 43024 setup(__props) { 43025 var _a, _b; 43026 const props = __props; 43027 const store = useStore(); 43028 const { state } = store; 43029 const croppedImage = ref(null); 43030 const videoPaused = ref(true); 43031 const imageLoadTimeout = ref(null); 43032 const itemCheckFunction = (item) => (item == null ? void 0 : item.propertyKey) === "heroBackgroundMediaSrc"; 43033 const { isExpired } = useIsExpired(props.slide, itemCheckFunction); 43034 const { 43035 canInlineEdit: canInlineEditBackground, 43036 showInlineEditor: canShowInlineMediaEditor, 43037 enter: enterBackgroundMedia 43038 } = useInlineMediaEdit(props, { 43039 mediaKey: "heroBackgroundMediaSrc", 43040 getSource: () => { 43041 var _a2; 43042 return (_a2 = props.slide) == null ? void 0 : _a2.src; 43043 }, 43044 isExpired, 43045 // Only the content-card variant gates on exclusivity with its sibling 43046 // CoreBlockContentCard's fields (see CoreBlockHeroComponent.vue) - the 43047 // contact-card/background variants have no such sibling and keep 43048 // today's auto-show-on-selection behavior (no fieldKey). 43049 fieldKey: props.componentType === "content-card" ? "heroBackgroundMediaSrc" : void 0, 43050 activeField: injectInlineActiveField() 43051 }); 43052 const showInlineEditor = computed( 43053 () => canShowInlineMediaEditor.value && props.slideIndex === props.currentSlide && !props.cardMediaEligible 43054 ); 43055 const backgroundMediaEditable = computed( 43056 () => props.inlineEditable && props.inlineEditing && canInlineEditBackground.value && props.componentType === "content-card" && !props.cardMediaEligible && props.slideIndex === props.currentSlide 43057 ); 43058 const handleBackgroundClick = (event) => { 43059 if (!backgroundMediaEditable.value) return; 43060 enterBackgroundMedia(event); 43061 }; 43062 const mediaSrc = computed(() => { 43063 var _a2; 43064 return (_a2 = props.slide) == null ? void 0 : _a2.src; 43065 }); 43066 const { 43067 isEMoney: isEMoneyUrl, 43068 isImage: mediaIsImg, 43069 isUploadedVideo, 43070 isVideo 43071 } = useMedia(mediaSrc); 43072 const root2 = useRoot(); 43073 const videoTemplateRef = ref(null); 43074 const video = computed(() => { 43075 var _a2, _b2; 43076 return (_b2 = (_a2 = videoTemplateRef.value) == null ? void 0 : _a2.$el) == null ? void 0 : _b2.querySelector("video"); 43077 }); 43078 const mobileSettingsFF = (_b = (_a = state == null ? void 0 : state.settings) == null ? void 0 : _a.featureFlags) == null ? void 0 : _b.MobileSettings; 43079 const computedVideoObject = computed(() => { 43080 var _a2, _b2, _c; 43081 return { 43082 src: (_a2 = props.slide) == null ? void 0 : _a2.src, 43083 autoPlay: (_b2 = props.slide) == null ? void 0 : _b2.autoPlay, 43084 loop: (_c = props.slide) == null ? void 0 : _c.loop 43085 }; 43086 }); 43087 const staticVideoClass = { 43088 "hosted-video-container_eMoney": isEMoneyUrl 43089 }; 43090 const computedVideoBind = computed(() => { 43091 return { 43092 muted: true, 43093 playsinline: true 43094 }; 43095 }); 43096 const background = computed(() => { 43097 var _a2, _b2, _c; 43098 return { 43099 "background-image": `url(${croppedImage.value || mediaHelper.getEncodedURI((_a2 = props.slide) == null ? void 0 : _a2.src)})`, 43100 "background-position": (_c = (_b2 = props.slide) == null ? void 0 : _b2.focal) == null ? void 0 : _c.bgPosition, 43101 "background-repeat": "no-repeat", 43102 "background-size": "cover", 43103 height: "inherit" 43104 }; 43105 }); 43106 const toggleVideoStatus = () => { 43107 if (video.value) { 43108 video.value.paused ? video.value.play() : video.value.pause(); 43109 videoPaused.value = video.value.paused; 43110 } 43111 };
43112 const emitBackgroundReady = () => { 43113 if (!root2.$emit) return; 43114 root2.$emit("backgroundReady"); 43115 }; 43116 const handleCanPlay = () => { 43117 emitBackgroundReady(); 43118 }; 43119 const initializeVideoReady = async () => { 43120 if (mediaIsImg.value) { 43121 if (!mobileSettingsFF || !needsCanvasProcessing.value && !isExpired.value) { 43122 emitBackgroundReady(); 43123 } 43124 return; 43125 } 43126 if (!isUploadedVideo.value || isEMoneyUrl.value) { 43127 emitBackgroundReady(); 43128 return; 43129 } 43130 await nextTick(); 43131 if (!video.value) { 43132 emitBackgroundReady(); 43133 } 43134 }; 43135 const needsCanvasProcessing = computed(() => { 43136 var _a2, _b2; 43137 if (!mobileSettingsFF) return true; 43138 return !!((_b2 = (_a2 = props.slide) == null ? void 0 : _a2.crop) == null ? void 0 : _b2.image); 43139 }); 43140 const applyOverlay = computed(() => { 43141 var _a2; 43142 if (isVideo.value) return false; 43143 return ((_a2 = props.overlay) == null ? void 0 : _a2.enabled) ?? false; 43144 }); 43145 watch( 43146 () => props.currentSlide, 43147 (nv) => { 43148 if (!mediaIsImg.value && isUploadedVideo.value && video.value) { 43149 if (nv == props.slideIndex) { 43150 video.value.play(); 43151 videoPaused.value = false; 43152 } else { 43153 video.value.pause(); 43154 videoPaused.value = true; 43155 } 43156 } 43157 } 43158 ); 43159 watch( 43160 [mediaIsImg, needsCanvasProcessing, isExpired], 43161 ([isImg, needsCanvas, expired]) => { 43162 if (mobileSettingsFF && isImg && !needsCanvas && !expired) { 43163 emitBackgroundReady(); 43164 } 43165 }, 43166 { immediate: true } 43167 ); 43168 watch( 43169 [() => props.slide, needsCanvasProcessing], 43170 ([newSlide, needsCanvas], [oldSlide]) => { 43171 if (!mobileSettingsFF) return; 43172 if (newSlide !== oldSlide || !needsCanvas) { 43173 if (imageLoadTimeout.value) { 43174 clearTimeout(imageLoadTimeout.value); 43175 imageLoadTimeout.value = null; 43176 } 43177 croppedImage.value = null; 43178 } 43179 } 43180 ); 43181 watch(croppedImage, (newValue, oldValue) => { 43182 if (mobileSettingsFF && mediaIsImg.value && needsCanvasProcessing.value && oldValue === null && newValue !== null) { 43183 if (imageLoadTimeout.value) { 43184 clearTimeout(imageLoadTimeout.value); 43185 imageLoadTimeout.value = null; 43186 } 43187 emitBackgroundReady(); 43188 } 43189 }); 43190 watch(isExpired, async (newValue, oldValue) => { 43191 if (newValue && video.value) { 43192 video.value.removeEventListener("canplay", handleCanPlay); 43193 } else if (!newValue && oldValue) { 43194 await initializeVideoReady(); 43195 } 43196 }); 43197 watch(video, (newVideo) => { 43198 if (newVideo && !isExpired.value && isUploadedVideo.value && !isEMoneyUrl.value) { 43199 newVideo.removeEventListener("canplay", handleCanPlay); 43200 if (newVideo.readyState >= 2) { 43201 emitBackgroundReady(); 43202 } else { 43203 newVideo.addEventListener("canplay", handleCanPlay); 43204 } 43205 } 43206 }); 43207 onMounted(async () => { 43208 if (isExpired.value) { 43209 emitBackgroundReady(); 43210 return; 43211 } 43212 await initializeVideoReady(); 43213 if (mobileSettingsFF && mediaIsImg.value && needsCanvasProcessing.value && !isExpired.value) { 43214 imageLoadTimeout.value = setTimeout(() => { 43215 if (croppedImage.value === null) { 43216 emitBackgroundReady(); 43217 } 43218 imageLoadTimeout.value = null; 43219 }, 5e3); 43220 } 43221 if (!mediaIsImg.value && isUploadedVideo.value && props.slideIndex === 0) 43222 videoPaused.value = false; 43223 }); 43224 onBeforeUnmount(() => { 43225 if (video.value) { 43226 video.value.removeEventListener("canplay", handleCanPlay); 43227 } 43228 if (imageLoadTimeout.value) { 43229 clearTimeout(imageLoadTimeout.value); 43230 imageLoadTimeout.value = null; 43231 } 43232 }); 43233 return (_ctx, _cache) => { 43234 var _a2; 43235 const _component_CoreBlockImageCropped = __nuxt_component_0$8; 43236 const _component_CoreBlockVideo = _sfc_main$3J; 43237 const _component_CoreIcon = __nuxt_component_1$7; 43238 return openBlock(), createElementBlock("div", { 43239 style: { "height": "inherit", "position": "relative" }, 43240 class: normalizeClass({ "hero-bg--editable": backgroundMediaEditable.value }),
43241 onClick: handleBackgroundClick 43242 }, [ 43243 unref(isExpired) ? (openBlock(), createElementBlock("div", _hoisted_1$3H)) : createCommentVNode("", true), 43244 unref(mediaIsImg) && !unref(isExpired) ? (openBlock(), createElementBlock("div", { 43245 key: 1, 43246 class: normalizeClass(`bg-img ${__props.componentType === "content-card" ? "bg-img_content-card" : ""}`), 43247 style: normalizeStyle(background.value), 43248 "aria-label": __props.slide.alt, 43249 role: "img" 43250 }, [ 43251 __props.slide.src && needsCanvasProcessing.value ? (openBlock(), createBlock(_component_CoreBlockImageCropped, { 43252 key: 0, 43253 "image-src": __props.slide.src, 43254 "media-metadata": { 43255 ...__props.slide.crop, 43256 ...__props.slide.focal 43257 }, 43258 onLoaded: _cache[0] || (_cache[0] = (value) => croppedImage.value = value) 43259 }, null, 8, ["image-src", "media-metadata"])) : createCommentVNode("", true) 43260 ], 14, _hoisted_2$3t)) : !unref(isExpired) ? (openBlock(), createElementBlock("div", _hoisted_3$g, [ 43261 createVNode(_component_CoreBlockVideo, mergeProps({ 43262 ref_key: "videoTemplateRef", 43263 ref: videoTemplateRef, 43264 class: staticVideoClass, 43265 settings: computedVideoObject.value 43266 }, computedVideoBind.value), null, 16, ["settings"]), 43267 !unref(isEMoneyUrl) && unref(isUploadedVideo) && !unref(isExpired) ? (openBlock(), createElementBlock("div", { 43268 key: 0, 43269 class: "playBtn", 43270 role: "button", 43271 "aria-label": videoPaused.value ? "Play Video" : "Pause Video", 43272 tabindex: "0", 43273 onClick: toggleVideoStatus, 43274 onKeyup: withKeys(toggleVideoStatus, ["enter"]) 43275 }, [ 43276 createVNode(_component_CoreIcon, { 43277 icon: videoPaused.value ? "play-circle-button" : "pause-circle" 43278 }, null, 8, ["icon"]) 43279 ], 40, _hoisted_4$d)) : createCommentVNode("", true) 43280 ])) : createCommentVNode("", true), 43281 ((_a2 = __props.backgroundClasses) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", { 43282 key: 3, 43283 class: normalizeClass(["plain-background", __props.backgroundClasses]) 43284 }, null, 2)) : createCommentVNode("", true), 43285 applyOverlay.value ? (openBlock(), createElementBlock("div", { 43286 key: 4, 43287 class: normalizeClass(__props.overlay.classes) 43288 }, null, 2)) : createCommentVNode("", true), 43289 showInlineEditor.value ? (openBlock(), createElementBlock("div", _hoisted_5$c, [ 43290 renderSlot(_ctx.$slots, "inline-editor", { 43291 field: "heroBackgroundMediaSrc", 43292 index: __props.slideIndex 43293 }) 43294 ])) : createCommentVNode("", true) 43295 ], 2); 43296 }; 43297 } 43298}); 43299const CoreBlockHeroBackground = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 43300 __proto__: null, 43301 default: _sfc_main$3I 43302}, Symbol.toStringTag, { value: "Module" })); 43303const _hoisted_1$3G = { 43304 key: 0, 43305 class: "slider-wrapper" 43306}; 43307const _hoisted_2$3s = { 43308 id: "slides-container", 43309 class: "slides-container" 43310}; 43311const _hoisted_3$f = { class: "block__control block__control_nav" }; 43312const _hoisted_4$c = ["aria-label", "onClick", "onKeyup"]; 43313const _hoisted_5$b = ["aria-label"]; 43314const _hoisted_6$7 = { 43315 key: 1, 43316 class: "mobile-placeholder-wrapper" 43317}; 43318const _hoisted_7$6 = ["src", "alt", "loading", "fetchpriority", "width", "height", "sizes"]; 43319const _hoisted_8$6 = ["aria-label"]; 43320const _hoisted_9$5 = { 43321 key: 2, 43322 class: "contact-card-inner" 43323}; 43324const _hoisted_10$5 = { 43325 key: 3, 43326 class: "content-card-inner" 43327}; 43328const _sfc_main$3H = /* @__PURE__ */ Object.assign({ 43329 name: "CoreBlockHero" 43330}, { 43331 __name: "CoreBlockHeroComponent", 43332 props: { 43333 index: { 43334 type: Number, 43335 default: 0 43336 }, 43337 settings: { 43338 type: Object, 43339 required: true 43340 }, 43341 isEditable: { 43342 type: Boolean, 43343 default: false 43344 }, 43345 dataSite: { 43346 type: Object, 43347 required: true 43348 }, 43349 isBuilderMobile: { 43350 type: Boolean, 43351 default: false 43352 }, 43353 nestedLevel: { 43354 type: Number, 43355 default: 0 43356 }, 43357 isFirstPageLevelBlock: { 43358 type: Boolean, 43359 default: void 0 43360 }, 43361 // Builder-only: forwarded to the nested content-card CoreBlock to enable
43362 // inline canvas editing. Defaults off so SiteViewer is inert. 43363 inlineEditable: { 43364 type: Boolean, 43365 default: false 43366 }, 43367 // Builder-only: whether inline editing is currently active for this block. 43368 inlineEditing: { 43369 type: Boolean, 43370 default: false 43371 } 43372 }, 43373 setup(__props) { 43374 var _a; 43375 const props = __props; 43376 provide(SCROLL_ANIMATION_EXCLUDED_KEY, true); 43377 const heroActiveField = ref(null); 43378 if ((((_a = props.settings) == null ? void 0 : _a.component) || "content-card") === "content-card") { 43379 provideInlineActiveField(heroActiveField); 43380 } 43381 const store = useStore(); 43382 const { state } = store; 43383 const currentSlide = ref(0); 43384 watch(currentSlide, () => { 43385 heroActiveField.value = null; 43386 }); 43387 const slidesContainer = ref(null); 43388 const slide = ref(null); 43389 const slideWidth = ref(null); 43390 const autoSlide = ref(null); 43391 const autoSlidePaused = ref(false); 43392 const lastSlideChangeTime = ref(0); 43393 const throttleDuration = ref(400); 43394 const mobilePlaceholderCropped = ref(null); 43395 const root2 = useRoot(); 43396 const useBrandSpecificComponents = inject("useBrandSpecificComponents", false); 43397 const { componentModule: contactCardModule } = useLoadComponent( 43398 { 43399 ...props, 43400 settings: { type: "contact-card" } 43401 }, 43402 { useBrandSpecificComponents } 43403 ); 43404 const { applyOffset: applyNavOffset, insetsOwnContent: navOffsetInsets } = useBlockNavOffset(props); 43405 const heroHeightStyle = computed(() => { 43406 const baseHeight = `${props.settings.heroHeight || 700}px`; 43407 if (!applyNavOffset.value || !navOffsetInsets.value) return baseHeight; 43408 return `calc(${baseHeight} + var(--_core__nav-offset_height-bump, 0px))`; 43409 }); 43410 const componentSettings = computed(() => { 43411 if (componentType.value === "content-card") { 43412 return { 43413 ...props.settings, 43414 type: "content-card" 43415 }; 43416 } else { 43417 return { 43418 ...props.settings, 43419 newWindow: props.settings.buttonNewWindow || false, 43420 newWindow2: props.settings.buttonNewWindow2 || false 43421 }; 43422 } 43423 }); 43424 const randomIndex = useState("hero-random-index", () => 0); 43425 const filteredHeroBackgroundMediaSrc = computed(() => { 43426 var _a2, _b; 43427 return ((_b = (_a2 = props.settings) == null ? void 0 : _a2.heroBackgroundMediaSrc) == null ? void 0 : _b.filter( 43428 (image) => image.src && image.src !== "" 43429 )) || []; 43430 }); 43431 const carouselSlides = computed(() => { 43432 var _a2; 43433 if (hasMobilePlaceholder.value) { 43434 return []; 43435 } 43436 let heroBackgroundMediaSrc = filteredHeroBackgroundMediaSrc.value; 43437 if (randomSlideEnabled.value) { 43438 if (randomIndex.value > 0) { 43439 const [randomItem] = heroBackgroundMediaSrc.splice( 43440 randomIndex.value, 43441 1 43442 ); 43443 heroBackgroundMediaSrc.unshift(randomItem); 43444 } 43445 } 43446 const contentLibraryItems = ((_a2 = props.settings) == null ? void 0 : _a2.contentLibraryItems) || []; 43447 return heroBackgroundMediaSrc.map((heroItem) => { 43448 var _a3, _b; 43449 const matchingItem = contentLibraryItems.find( 43450 (item) => item.localItemId === heroItem.localItemId 43451 ); 43452 const autoPlay = (_a3 = props.settings) == null ? void 0 : _a3.autoPlay; 43453 const loop = (_b = props.settings) == null ? void 0 : _b.loop; 43454 return { 43455 ...heroItem, 43456 contentLibraryItems: [matchingItem], 43457 autoPlay, 43458 loop 43459 }; 43460 }); 43461 }); 43462 const applyOverlay = computed(() => { 43463 var _a2, _b, _c, _d; 43464 return !!((_b = (_a2 = props.settings) == null ? void 0 : _a2.variants) == null ? void 0 : _b.overlay) || !!((_d = (_c = props.settings) == null ? void 0 : _c.variants) == null ? void 0 : _d.gradient); 43465 }); 43466 const overlayClasses = computed(() => { 43467 var _a2, _b, _c, _d, _e, _f, _g, _h; 43468 if (!((_b = (_a2 = props.settings) == null ? void 0 : _a2.variants) == null ? void 0 : _b.overlay) && !((_d = (_c = props.settings) == null ? void 0 : _c.variants) == null ? void 0 : _d.gradient)) 43469 return false;
43470 return { 43471 "slide-overlay": (_f = (_e = props.settings) == null ? void 0 : _e.variants) == null ? void 0 : _f.overlay, 43472 "slide-gradient": (_h = (_g = props.settings) == null ? void 0 : _g.variants) == null ? void 0 : _h.gradient 43473 }; 43474 }); 43475 const backgroundClasses = computed(() => { 43476 var _a2, _b; 43477 const color = (_b = (_a2 = props.settings) == null ? void 0 : _a2.variants) == null ? void 0 : _b["hero-background-color"]; 43478 if (!color) return []; 43479 return ["plain-background_" + color]; 43480 }); 43481 const overlay = computed(() => { 43482 return { 43483 enabled: applyOverlay.value, 43484 classes: overlayClasses.value 43485 }; 43486 }); 43487 const componentType = computed(() => { 43488 var _a2; 43489 return ((_a2 = props.settings) == null ? void 0 : _a2.component) || "content-card"; 43490 }); 43491 const cardMediaEligible = computed( 43492 () => isHeroCardMediaEligible(props.settings) 43493 ); 43494 const displayCarouselControls = computed(() => { 43495 if (isRandomMode.value) return false; 43496 return carouselSlides.value.length > 1; 43497 }); 43498 const autoSlideEnabled = computed(() => { 43499 var _a2, _b; 43500 return ((_b = (_a2 = state == null ? void 0 : state.settings) == null ? void 0 : _a2.featureFlags) == null ? void 0 : _b.HeroComponentEnhancements) && carouselSlides.value.length > 1 && props.settings["background-mode"] === "auto" && !props.isEditable; 43501 }); 43502 const siteAnimationsFeatureEnabled = computed( 43503 () => { 43504 var _a2, _b; 43505 return ((_b = (_a2 = store.getters) == null ? void 0 : _a2["settings/getFeatureFlag"]) == null ? void 0 : _b.call(_a2, "SiteAnimations")) === true; 43506 } 43507 ); 43508 let fadeRaf1 = null; 43509 let fadeRaf2 = null; 43510 const fadeComponent = () => { 43511 if (typeof window === "undefined") return; 43512 if (!root2.$el) return; 43513 const el = root2.$el; 43514 const shouldAnimate = siteAnimationsFeatureEnabled.value && !window.matchMedia("(prefers-reduced-motion: reduce)").matches && !scrollAnimationsSuppressed.value; 43515 if (fadeRaf1) cancelAnimationFrame(fadeRaf1); 43516 if (fadeRaf2) cancelAnimationFrame(fadeRaf2); 43517 fadeRaf1 = null; 43518 fadeRaf2 = null; 43519 if (!shouldAnimate) { 43520 el.style.opacity = "1"; 43521 return; 43522 } 43523 el.style.transition = "none"; 43524 el.style.opacity = "0"; 43525 fadeRaf1 = requestAnimationFrame(() => { 43526 fadeRaf2 = requestAnimationFrame(() => { 43527 fadeRaf1 = null; 43528 fadeRaf2 = null; 43529 el.style.removeProperty("transition"); 43530 el.style.opacity = "1"; 43531 }); 43532 }); 43533 }; 43534 const startAutoSlideTimer = () => { 43535 if (autoSlidePaused.value) return; 43536 const interval = props.settings["auto-rotation-speed"] ? props.settings["auto-rotation-speed"] : 10; 43537 autoSlide.value = setInterval(() => { 43538 nextSlide(); 43539 }, +interval * 1e3); 43540 }; 43541 const restartAutoSlide = () => { 43542 clearInterval(autoSlide.value); 43543 startAutoSlideTimer(); 43544 }; 43545 const toggleAutoSlide = () => { 43546 autoSlidePaused.value = !autoSlidePaused.value; 43547 if (autoSlidePaused.value) { 43548 clearInterval(autoSlide.value); 43549 autoSlide.value = null; 43550 } else { 43551 startAutoSlideTimer(); 43552 } 43553 }; 43554 const isRandomMode = computed(() => { 43555 var _a2, _b; 43556 return ((_b = (_a2 = state == null ? void 0 : state.settings) == null ? void 0 : _a2.featureFlags) == null ? void 0 : _b.HeroComponentEnhancements) && props.settings["background-mode"] === "random"; 43557 }); 43558 const randomSlideEnabled = computed(() => { 43559 return isRandomMode.value && !props.isEditable; 43560 }); 43561 const canChangeSlide = () => { 43562 const now2 = Date.now(); 43563 if (now2 - lastSlideChangeTime.value < throttleDuration.value) { 43564 return false; 43565 } 43566 lastSlideChangeTime.value = now2; 43567 return true; 43568 }; 43569 const nextSlide = () => { 43570 var _a2; 43571 if (!canChangeSlide()) { 43572 return; 43573 } 43574 slideWidth.value = (_a2 = slide.value) == null ? void 0 : _a2.clientWidth; 43575 if (currentSlide.value + 1 < carouselSlides.value.length) { 43576 slidesContainer.value.scrollLeft += slideWidth.value; 43577 currentSlide.value++; 43578 } else { 43579 slidesContainer.value.scrollLeft -= slideWidth.value * carouselSlides.value.length - 1; 43580 currentSlide.value = 0; 43581 } 43582 if (autoSlideEnabled.value) restartAutoSlide(); 43583 }; 43584 const previousSlide = () => { 43585 var _a2; 43586 if (!canChangeSlide()) { 43587 return; 43588 } 43589 slideWidth.value = (_a2 = slide.value) == null ? void 0 : _a2.clientWidth; 43590 if (currentSlide.value - 1 >= 0) { 43591 slidesContainer.value.scrollLeft -= slideWidth.value; 43592 currentSlide.value--; 43593 } else { 43594 slidesContainer.value.scrollLeft += slideWidth.value * carouselSlides.value.length - 1; 43595 currentSlide.value = carouselSlides.value.length - 1; 43596 } 43597 if (autoSlideEnabled.value) restartAutoSlide(); 43598 }; 43599 const goToSlide = (i) => { 43600 var _a2; 43601 if (!canChangeSlide()) { 43602 return; 43603 } 43604 slideWidth.value = (_a2 = slide.value) == null ? void 0 : _a2.clientWidth; 43605 if (currentSlide.value !== i) { 43606 if (currentSlide.value > i) { 43607 slidesContainer.value.scrollLeft -= slideWidth.value * (currentSlide.value - i); 43608 currentSlide.value = i; 43609 } else { 43610 slidesContainer.value.scrollLeft += slideWidth.value * (i - currentSlide.value); 43611 currentSlide.value = i; 43612 } 43613 if (autoSlideEnabled.value) restartAutoSlide(); 43614 } 43615 }; 43616 const contactCardClasses = computed(() => { 43617 var _a2, _b; 43618 const color = (_b = (_a2 = props.settings) == null ? void 0 : _a2.variants) == null ? void 0 : _b["bg-color"]; 43619 if (!color) return []; 43620 return ["block_contact-card_" + color]; 43621 }); 43622 const mobileSettingsEnabled = computed(() => { 43623 var _a2, _b; 43624 return !!((_b = (_a2 = state == null ? void 0 : state.settings) == null ? void 0 : _a2.featureFlags) == null ? void 0 : _b.MobileSettings); 43625 }); 43626 const { mobileSettingsFF, isMobileView, viewportWidth } = useIsMobile(props); 43627 const mobilePlaceholderWidth = computed(() => { 43628 var _a2, _b; 43629 if (!mobileSettingsFF.value || !((_b = (_a2 = props.settings) == null ? void 0 : _a2.placeholderImageMobile) == null ? void 0 : _b.src)) { 43630 return void 0; 43631 } 43632 if (isMobileView.value) { 43633 return viewportWidth.value || BREAKPOINT_MD; 43634 } 43635 return BREAKPOINT_XL; 43636 }); 43637 const mobilePlaceholderHeight = computed(() => { 43638 if (!mobileSettingsFF.value || !mobilePlaceholderWidth.value) { 43639 return void 0; 43640 } 43641 const aspectRatio = 9 / 16; 43642 return Math.round(mobilePlaceholderWidth.value * aspectRatio); 43643 }); 43644 const mobilePlaceholderSizes = computed(() => { 43645 if (!mobileSettingsFF.value) return void 0; 43646 return "100vw"; 43647 }); 43648 const mobilePlaceholderLoading = computed(() => { 43649 if (!mobileSettingsFF.value) return void 0; 43650 return "eager"; 43651 }); 43652 const mobilePlaceholderFetchPriority = computed(() => { 43653 if (!mobileSettingsFF.value) return void 0; 43654 return "high"; 43655 }); 43656 const hideOnMobile = computed(() => { 43657 var _a2; 43658 return mobileSettingsEnabled.value && !!((_a2 = props.settings) == null ? void 0 : _a2.hideOnMobile); 43659 }); 43660 const hasMobilePlaceholder = computed(() => { 43661 var _a2, _b, _c; 43662 const placeholder = (_a2 = props.settings) == null ? void 0 : _a2.placeholderImageMobile; 43663 const hasPlaceholderSettings = mobileSettingsEnabled.value && !((_b = props.settings) == null ? void 0 : _b.hideOnMobile) && !!((_c = props.settings) == null ? void 0 : _c.togglePlaceholderMobile) && !!(typeof placeholder === "string" ? placeholder : placeholder == null ? void 0 : placeholder.src); 43664 return hasPlaceholderSettings && isMobileView.value; 43665 }); 43666 const needsMobilePlaceholderCrop = computed(() => { 43667 var _a2, _b; 43668 const crop = (_b = (_a2 = props.settings) == null ? void 0 : _a2.placeholderImageMobile) == null ? void 0 : _b.crop; 43669 if (!crop) return false;
43670 return !!crop.image; 43671 }); 43672 const mobilePlaceholderFocalStyle = computed(() => { 43673 var _a2, _b; 43674 const focal = (_b = (_a2 = props.settings) == null ? void 0 : _a2.placeholderImageMobile) == null ? void 0 : _b.focal; 43675 if (!(focal == null ? void 0 : focal.bgPosition)) return {}; 43676 return { 43677 "object-position": focal.bgPosition 43678 }; 43679 }); 43680 const mobilePlaceholderBackground = computed(() => { 43681 var _a2, _b; 43682 const placeholder = (_a2 = props.settings) == null ? void 0 : _a2.placeholderImageMobile; 43683 if (!(placeholder == null ? void 0 : placeholder.src)) return {}; 43684 const imageSrc = mobilePlaceholderCropped.value || mediaHelper.getEncodedURI(placeholder.src); 43685 return { 43686 "background-image": `url(${imageSrc})`, 43687 "background-position": ((_b = placeholder == null ? void 0 : placeholder.focal) == null ? void 0 : _b.bgPosition) || "center", 43688 "background-repeat": "no-repeat", 43689 "background-size": "cover" 43690 }; 43691 }); 43692 const mobileSettingsClasses = computed(() => { 43693 var _a2; 43694 if (!mobileSettingsEnabled.value) { 43695 return []; 43696 } 43697 const classes = []; 43698 if (hideOnMobile.value) { 43699 classes.push("block_heroComponent_hide-media-mobile"); 43700 return classes; 43701 } 43702 if (hasMobilePlaceholder.value) { 43703 classes.push("block_heroComponent_has-mobile-placeholder"); 43704 } 43705 const placement = (_a2 = props.settings) == null ? void 0 : _a2.imagePlacementMobile; 43706 if (placement === "image-bottom") { 43707 classes.push("block_heroComponent_image-bottom"); 43708 } else if (placement === "image-top") { 43709 classes.push("block_heroComponent_image-top"); 43710 } 43711 return classes; 43712 }); 43713 onMounted(async () => { 43714 var _a2, _b; 43715 if (carouselSlides.value.length > 0) { 43716 slidesContainer.value = (_a2 = root2.$el) == null ? void 0 : _a2.querySelector("#slides-container"); 43717 slide.value = (_b = root2.$el) == null ? void 0 : _b.querySelector(".slide"); 43718 } else { 43719 await nextTick(); 43720 fadeComponent(); 43721 } 43722 if (autoSlideEnabled.value) { 43723 autoSlidePaused.value = false; 43724 startAutoSlideTimer(); 43725 } 43726 }); 43727 onBeforeUnmount(() => { 43728 clearInterval(autoSlide.value); 43729 }); 43730 return (_ctx, _cache) => { 43731 var _a2, _b, _c, _d, _e, _f; 43732 const _component_CoreBlockBreadcrumbs = __nuxt_component_0$6; 43733 const _component_CoreBlockHeroBackground = _sfc_main$3I; 43734 const _component_CoreIcon = __nuxt_component_1$7; 43735 const _component_CoreBlockImageCropped = __nuxt_component_0$8; 43736 const _component_CoreBlock = _sfc_main$4x; 43737 return openBlock(), createElementBlock("div", { 43738 "data-testid": "slider-container", 43739 class: normalizeClass(["block__body block_heroComponent", mobileSettingsClasses.value]), 43740 style: normalizeStyle({ 43741 height: heroHeightStyle.value 43742 }) 43743 }, [ 43744 !hasMobilePlaceholder.value ? (openBlock(), createElementBlock("div", _hoisted_1$3G, [ 43745 createBaseVNode("ul", _hoisted_2$3s, [ 43746 __props.settings.showBreadcrumb ? (openBlock(), createBlock(_component_CoreBlockBreadcrumbs, { 43747 key: 0, 43748 settings: __props.settings, 43749 style: { "position": "absolute", "z-index": "102" } 43750 }, null, 8, ["settings"])) : createCommentVNode("", true), 43751 (openBlock(true), createElementBlock(Fragment, null, renderList(carouselSlides.value, (carouselSlide, slideIndex) => { 43752 return openBlock(), createElementBlock("li", { 43753 key: carouselSlide.localItemId, 43754 class: "slide" 43755 }, [ 43756 createVNode(_component_CoreBlockHeroBackground, { 43757 slide: carouselSlide, 43758 "current-slide": currentSlide.value, 43759 "slide-index": slideIndex, 43760 "component-type": componentType.value, 43761 "card-media-eligible": cardMediaEligible.value, 43762 overlay: overlay.value,
43763 "background-classes": backgroundClasses.value, 43764 "inline-editable": __props.inlineEditable, 43765 "inline-editing": __props.inlineEditing, 43766 onBackgroundReady: fadeComponent 43767 }, createSlots({ _: 2 }, [ 43768 _ctx.$slots["inline-editor"] ? { 43769 name: "inline-editor", 43770 fn: withCtx((slotData) => [ 43771 renderSlot(_ctx.$slots, "inline-editor", mergeProps({ ref_for: true }, slotData)) 43772 ]), 43773 key: "0" 43774 } : void 0 43775 ]), 1032, ["slide", "current-slide", "slide-index", "component-type", "card-media-eligible", "overlay", "background-classes", "inline-editable", "inline-editing"]) 43776 ]); 43777 }), 128)) 43778 ]), 43779 withDirectives(createBaseVNode("div", { 43780 class: normalizeClass(`carousel__navigation carousel__navigation_${componentType.value}`) 43781 }, [ 43782 createBaseVNode("ul", _hoisted_3$f, [ 43783 createBaseVNode("div", { 43784 class: "block__control block__control_slide", 43785 tabindex: "0", 43786 "aria-label": "Carousel Backward", 43787 role: "button", 43788 onClick: previousSlide, 43789 onKeyup: withKeys(previousSlide, ["enter"]) 43790 }, [ 43791 createVNode(_component_CoreIcon, { 43792 icon: "carousel-backward", 43793 style: { "height": "48px", "width": "48px" } 43794 }) 43795 ], 32), 43796 (openBlock(true), createElementBlock(Fragment, null, renderList(carouselSlides.value, (childSettings, childIndex) => { 43797 return openBlock(), createElementBlock("li", { 43798 key: childIndex + "-nav-control", 43799 "data-testid": "slider-item", 43800 class: normalizeClass({ 43801 block__control_nav_item: true, 43802 "block__control_nav_item--active": currentSlide.value === childIndex 43803 }), 43804 tabindex: "0", 43805 "aria-label": `${childIndex + 1} Carousel Slide`, 43806 role: "button", 43807 onClick: ($event) => goToSlide(childIndex), 43808 onKeyup: withKeys(($event) => goToSlide(childIndex), ["enter"]) 43809 }, toDisplayString(childIndex + 1), 43, _hoisted_4$c); 43810 }), 128)), 43811 createBaseVNode("div", { 43812 class: "block__control block__control_slide", 43813 tabindex: "0", 43814 "aria-label": "Carousel Forward", 43815 role: "button", 43816 onClick: nextSlide, 43817 onKeyup: withKeys(nextSlide, ["enter"]) 43818 }, [ 43819 createVNode(_component_CoreIcon, { 43820 style: { "height": "48px", "width": "48px" }, 43821 icon: "carousel-forward" 43822 }) 43823 ], 32) 43824 ]) 43825 ], 2), [ 43826 [vShow, displayCarouselControls.value] 43827 ]), 43828 autoSlideEnabled.value ? (openBlock(), createElementBlock("div", { 43829 key: 0, 43830 class: "playBtn", 43831 role: "button", 43832 "aria-label": autoSlidePaused.value ? "Play Auto Slide" : "Pause Auto Slide", 43833 tabindex: "0", 43834 onClick: toggleAutoSlide, 43835 onKeyup: withKeys(toggleAutoSlide, ["enter"]) 43836 }, [ 43837 createVNode(_component_CoreIcon, { 43838 icon: autoSlidePaused.value ? "play-circle-button" : "pause-circle" 43839 }, null, 8, ["icon"]) 43840 ], 40, _hoisted_5$b)) : createCommentVNode("", true) 43841 ])) : createCommentVNode("", true), 43842 hasMobilePlaceholder.value ? (openBlock(), createElementBlock("div", _hoisted_6$7, [ 43843 !needsMobilePlaceholderCrop.value ? (openBlock(), createElementBlock("img", { 43844 key: 0, 43845 class: normalizeClass(["mobile-placeholder-img", { 43846 "mobile-placeholder-img_content-card": componentType.value === "content-card" 43847 }]), 43848 src: (_a2 = __props.settings.placeholderImageMobile) == null ? void 0 : _a2.src, 43849 alt: ((_b = __props.settings.placeholderImageMobile) == null ? void 0 : _b.alt) || "",
43850 style: normalizeStyle(mobilePlaceholderFocalStyle.value), 43851 loading: mobilePlaceholderLoading.value, 43852 fetchpriority: mobilePlaceholderFetchPriority.value, 43853 width: mobilePlaceholderWidth.value, 43854 height: mobilePlaceholderHeight.value, 43855 sizes: mobilePlaceholderSizes.value, 43856 decoding: "async" 43857 }, null, 14, _hoisted_7$6)) : (openBlock(), createElementBlock("div", { 43858 key: 1, 43859 class: normalizeClass(["mobile-placeholder-img", { 43860 "mobile-placeholder-img_content-card": componentType.value === "content-card" 43861 }]), 43862 style: normalizeStyle(mobilePlaceholderBackground.value), 43863 "aria-label": ((_c = __props.settings.placeholderImageMobile) == null ? void 0 : _c.alt) || "", 43864 role: "img" 43865 }, [ 43866 ((_d = __props.settings.placeholderImageMobile) == null ? void 0 : _d.src) ? (openBlock(), createBlock(_component_CoreBlockImageCropped, { 43867 key: 0, 43868 "image-src": __props.settings.placeholderImageMobile.src, 43869 "media-metadata": { 43870 ...(_e = __props.settings.placeholderImageMobile) == null ? void 0 : _e.crop, 43871 ...(_f = __props.settings.placeholderImageMobile) == null ? void 0 : _f.focal 43872 }, 43873 onLoaded: _cache[0] || (_cache[0] = (value) => mobilePlaceholderCropped.value = value) 43874 }, null, 8, ["image-src", "media-metadata"])) : createCommentVNode("", true) 43875 ], 14, _hoisted_8$6)) 43876 ])) : createCommentVNode("", true), 43877 componentType.value === "contact-card" ? (openBlock(), createElementBlock("div", _hoisted_9$5, [ 43878 createBaseVNode("div", { 43879 class: normalizeClass(["contact-hero block_contact-card", contactCardClasses.value]) 43880 }, [ 43881 (openBlock(), createBlock(resolveDynamicComponent(unref(contactCardModule)), { 43882 "is-editable": __props.isEditable, 43883 settings: componentSettings.value, 43884 "data-site": __props.dataSite 43885 }, null, 8, ["is-editable", "settings", "data-site"])) 43886 ], 2) 43887 ])) : createCommentVNode("", true), 43888 componentType.value === "content-card" ? (openBlock(), createElementBlock("div", _hoisted_10$5, [ 43889 createVNode(_component_CoreBlock, { 43890 "is-editable": __props.isEditable, 43891 "is-builder-mobile": __props.isBuilderMobile, 43892 "nested-level": __props.nestedLevel + 1, 43893 settings: componentSettings.value, 43894 "inline-editable": __props.inlineEditable, 43895 "inline-editing": __props.inlineEditing 43896 }, createSlots({ _: 2 }, [ 43897 _ctx.$slots["inline-editor"] ? { 43898 name: "inline-editor", 43899 fn: withCtx((slotData) => [ 43900 renderSlot(_ctx.$slots, "inline-editor", normalizeProps$1(guardReactiveProps(slotData))) 43901 ]), 43902 key: "0" 43903 } : void 0 43904 ]), 1032, ["is-editable", "is-builder-mobile", "nested-level", "settings", "inline-editable", "inline-editing"]) 43905 ])) : createCommentVNode("", true) 43906 ], 6); 43907 }; 43908 } 43909}); 43910const CoreBlockHeroComponent = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 43911 __proto__: null, 43912 default: _sfc_main$3H 43913}, Symbol.toStringTag, { value: "Module" })); 43914const _sfc_main$3G = { 43915 name: "CoreBlockHtml", 43916 props: { 43917 settings: { 43918 type: Object, 43919 required: true 43920 }, 43921 isEditable: { 43922 type: Boolean, 43923 default: false 43924 } 43925 }, 43926 computed: { 43927 blockContent() { 43928 var _a; 43929 return ((_a = this.settings) == null ? void 0 : _a.html) || null; 43930 } 43931 } 43932}; 43933const _hoisted_1$3F = ["innerHTML"]; 43934const _hoisted_2$3r = { 43935 key: 1, 43936 class: "block__body_html--editable" 43937}; 43938function _sfc_render$3j(_ctx, _cache, $props, $setup, $data, $options) { 43939 return $options.blockContent ? (openBlock(), createElementBlock("div", { 43940 key: 0, 43941 class: "block__body", 43942 innerHTML: $options.blockContent 43943 }, null, 8, _hoisted_1$3F)) : $props.isEditable ? (openBlock(), createElementBlock("div", _hoisted_2$3r)) : createCommentVNode("", true); 43944} 43945const CoreBlockHtml = /* @__PURE__ */ _export_sfc(_sfc_main$3G, [["render", _sfc_render$3j]]); 43946const CoreBlockHtml$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 43947 __proto__: null, 43948 default: CoreBlockHtml 43949}, Symbol.toStringTag, { value: "Module" })); 43950const _sfc_main$3F = { 43951 name: "CoreBlockButton", 43952 props: { 43953 settings: { 43954 type: Object, 43955 required: true 43956 } 43957 }, 43958 setup(props) { 43959 const icon = computed(() => { 43960 var _a; 43961 return (_a = props.settings) == null ? void 0 : _a.icon; 43962 }); 43963 return { 43964 icon 43965 }; 43966 } 43967}; 43968const _hoisted_1$3E = { class: "block__body" }; 43969const _hoisted_2$3q = { class: "icon--custom" }; 43970function _sfc_render$3i(_ctx, _cache, $props, $setup, $data, $options) { 43971 const _component_CoreIcon = __nuxt_component_1$7; 43972 return openBlock(), createElementBlock("div", _hoisted_1$3E, [ 43973 createBaseVNode("span", _hoisted_2$3q, [ 43974 $setup.icon ? (openBlock(), createBlock(_component_CoreIcon, { 43975 key: 0, 43976 icon: $setup.icon, 43977 class: "icon", 43978 settings: $props.settings 43979 }, null, 8, ["icon", "settings"])) : createCommentVNode("", true) 43980 ]) 43981 ]); 43982} 43983const CoreBlockIcon = /* @__PURE__ */ _export_sfc(_sfc_main$3F, [["render", _sfc_render$3i]]); 43984const CoreBlockIcon$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 43985 __proto__: null, 43986 default: CoreBlockIcon 43987}, Symbol.toStringTag, { value: "Module" })); 43988const oneOf = (value, allowed, fallback) => allowed.includes(value) ? value : fallback; 43989const OFFSET_ACCENT_SHAPE_TYPES = ["border", "solid"]; 43990const OFFSET_ACCENT_COLORS = ["primary", "secondary", "tertiary"]; 43991const OFFSET_ACCENT_WEIGHTS = ["thin", "medium", "bold"]; 43992const OFFSET_ACCENT_RADII = ["none", "small", "medium", "large"]; 43993const OFFSET_ACCENT_DISTANCES = [ 43994 "x-small", 43995 "small", 43996 "medium", 43997 "large", 43998 "x-large" 43999]; 44000const OFFSET_ACCENT_LAYERS = ["behind", "front"]; 44001const OFFSET_ACCENT_EFFECTS = ["none", "shadow", "white-border"]; 44002const OFFSET_ACCENT_POSITIONS = [ 44003 "top-left", 44004 "top-right", 44005 "bottom-left", 44006 "bottom-right" 44007]; 44008const OFFSET_ACCENT_SHAPE_DEFAULTS = Object.freeze({
44009 type: "border", 44010 color: "primary", 44011 weight: "medium", 44012 radius: "none", 44013 distance: "medium", 44014 position: "top-left" 44015}); 44016const OFFSET_ACCENT_IMAGE_SIZE = Object.freeze({ 44017 min: 10, 44018 max: 100, 44019 step: 5 44020}); 44021const OFFSET_ACCENT_IMAGE_POSITION = Object.freeze({ 44022 min: -50, 44023 max: 150, 44024 // Where a new accent starts: up and left of the main image's top-left 44025 // corner, so the author sees an offset before they move anything. 44026 default: -10, 44027 nudge: 1, 44028 nudgeLarge: 10 44029}); 44030const OFFSET_ACCENT_IMAGE_DEFAULTS = Object.freeze({ 44031 layer: "behind", 44032 effect: "none", 44033 radius: "none", 44034 size: 40, 44035 position: Object.freeze({ 44036 x: OFFSET_ACCENT_IMAGE_POSITION.default, 44037 y: OFFSET_ACCENT_IMAGE_POSITION.default 44038 }) 44039}); 44040const ACCENT_CLASS = "block__image-accent"; 44041const OFFSET_ACCENT_SHAPE_PROPERTY_KEY = "offsetAccentShape"; 44042const OFFSET_ACCENT_IMAGE_PROPERTY_KEY = "offsetAccentImage"; 44043const resolveShape = (stored) => { 44044 if (!stored) return null; 44045 return { 44046 type: oneOf( 44047 stored.type, 44048 OFFSET_ACCENT_SHAPE_TYPES, 44049 OFFSET_ACCENT_SHAPE_DEFAULTS.type 44050 ), 44051 color: oneOf( 44052 stored.color, 44053 OFFSET_ACCENT_COLORS, 44054 OFFSET_ACCENT_SHAPE_DEFAULTS.color 44055 ), 44056 weight: oneOf( 44057 stored.weight, 44058 OFFSET_ACCENT_WEIGHTS, 44059 OFFSET_ACCENT_SHAPE_DEFAULTS.weight 44060 ), 44061 radius: oneOf( 44062 stored.radius, 44063 OFFSET_ACCENT_RADII, 44064 OFFSET_ACCENT_SHAPE_DEFAULTS.radius 44065 ), 44066 distance: oneOf( 44067 stored.distance, 44068 OFFSET_ACCENT_DISTANCES, 44069 OFFSET_ACCENT_SHAPE_DEFAULTS.distance 44070 ), 44071 position: oneOf( 44072 stored.position, 44073 OFFSET_ACCENT_POSITIONS, 44074 OFFSET_ACCENT_SHAPE_DEFAULTS.position 44075 ) 44076 }; 44077}; 44078const clampPercent = (value, { min, max }, fallback) => { 44079 const percent = typeof value === "number" ? value : Number.parseFloat(value); 44080 return Number.isFinite(percent) ? clamp(percent, min, max) : fallback; 44081}; 44082const clampSize = (value) => clampPercent( 44083 value, 44084 OFFSET_ACCENT_IMAGE_SIZE, 44085 OFFSET_ACCENT_IMAGE_DEFAULTS.size 44086); 44087const clampOffsetAccentPosition = (value) => clampPercent( 44088 value, 44089 OFFSET_ACCENT_IMAGE_POSITION, 44090 OFFSET_ACCENT_IMAGE_POSITION.default 44091); 44092const resolvePosition = (stored) => ({ 44093 x: clampOffsetAccentPosition(stored == null ? void 0 : stored.x), 44094 y: clampOffsetAccentPosition(stored == null ? void 0 : stored.y) 44095}); 44096const resolveOffsetAccentImage = (stored) => { 44097 const src = typeof (stored == null ? void 0 : stored.src) === "string" ? stored.src : ""; 44098 if (!src) return null; 44099 return { 44100 src, 44101 layer: oneOf( 44102 stored.layer, 44103 OFFSET_ACCENT_LAYERS, 44104 OFFSET_ACCENT_IMAGE_DEFAULTS.layer 44105 ), 44106 effect: oneOf( 44107 stored.effect, 44108 OFFSET_ACCENT_EFFECTS, 44109 OFFSET_ACCENT_IMAGE_DEFAULTS.effect 44110 ), 44111 radius: oneOf( 44112 stored.radius, 44113 OFFSET_ACCENT_RADII, 44114 OFFSET_ACCENT_IMAGE_DEFAULTS.radius 44115 ), 44116 size: clampSize(stored.size), 44117 position: resolvePosition(stored.position) 44118 }; 44119}; 44120function useOffsetAccent(settings, guards = {}) { 44121 const suppressed = computed( 44122 () => unref(guards.enabled) === false || Boolean(unref(guards.isVideo)) || Boolean(unref(guards.isExpired)) || !unref(guards.hasImage) 44123 ); 44124 const shape = computed(() => { 44125 var _a; 44126 if (suppressed.value) return null; 44127 return resolveShape( 44128 (_a = unref(settings)) == null ? void 0 : _a[OFFSET_ACCENT_SHAPE_PROPERTY_KEY] 44129 ); 44130 }); 44131 const image = computed(() => { 44132 var _a; 44133 if (suppressed.value) return null; 44134 return resolveOffsetAccentImage( 44135 (_a = unref(settings)) == null ? void 0 : _a[OFFSET_ACCENT_IMAGE_PROPERTY_KEY] 44136 ); 44137 }); 44138 const hasShapeAccent = computed(() => shape.value !== null); 44139 const hasOffsetAccent = computed( 44140 () => hasShapeAccent.value || image.value !== null 44141 ); 44142 const offsetAccentClasses = computed(() => { 44143 if (!hasOffsetAccent.value) return []; 44144 const classes = [ACCENT_CLASS]; 44145 if (shape.value) { 44146 const { type, color, weight, radius, distance, position } = shape.value; 44147 classes.push( 44148 `${ACCENT_CLASS}--shape_${type}`, 44149 `${ACCENT_CLASS}--shape-color_${color}`, 44150 `${ACCENT_CLASS}--shape-radius_${radius}`, 44151 `${ACCENT_CLASS}--shape-distance_${distance}`, 44152 `${ACCENT_CLASS}--shape-position_${position}` 44153 ); 44154 if (type === "border") { 44155 classes.push(`${ACCENT_CLASS}--shape-weight_${weight}`); 44156 } 44157 } 44158 if (image.value) { 44159 const { layer, effect: effect2, radius } = image.value; 44160 classes.push( 44161 `${ACCENT_CLASS}--image-layer_${layer}`, 44162 `${ACCENT_CLASS}--image-effect_${effect2}`, 44163 `${ACCENT_CLASS}--image-radius_${radius}` 44164 ); 44165 } 44166 return classes; 44167 }); 44168 const offsetAccentStyle = computed(() => { 44169 if (!image.value) return {}; 44170 const { size, position } = image.value; 44171 return { 44172 "--_core__image_offset_image-size": `${size}%`, 44173 "--_core__image_offset_image-x": `${position.x}%`, 44174 "--_core__image_offset_image-y": `${position.y}%` 44175 }; 44176 }); 44177 const offsetImage = computed( 44178 () => image.value ? { src: image.value.src } : null 44179 ); 44180 return { 44181 hasOffsetAccent, 44182 hasShapeAccent, 44183 offsetAccentClasses, 44184 offsetAccentStyle, 44185 offsetImage 44186 }; 44187} 44188const _hoisted_1$3D = ["data-testid", "data-expired-preset-id"]; 44189const _hoisted_2$3p = { 44190 key: 1, 44191 class: "block__section_content" 44192}; 44193const _hoisted_3$e = ["src", "alt", "loading", "fetchpriority", "width", "height", "sizes"]; 44194const _hoisted_4$b = ["data-src", "alt"]; 44195const _hoisted_5$a = { 44196 key: 2, 44197 class: "block__inline-media" 44198}; 44199const _sfc_main$3E = /* @__PURE__ */ Object.assign({ 44200 name: "CoreBlockImage" 44201}, { 44202 __name: "CoreBlockImage", 44203 props: { 44204 settings: { 44205 type: Object, 44206 required: true 44207 }, 44208 isBuilderMobile: { 44209 type: Boolean, 44210 default: false 44211 }, 44212 index: { 44213 type: Number, 44214 default: 0 44215 }, 44216 nestedLevel: { 44217 type: Number, 44218 default: 0 44219 }, 44220 isEditable: { 44221 type: Boolean, 44222 default: false 44223 }, 44224 // Builder-only: enables inline canvas editing capability for this block. 44225 // SiteViewer never sets this, so published sites are unaffected. 44226 inlineEditable: { 44227 type: Boolean, 44228 default: false 44229 }, 44230 // Builder-only: whether inline editing is currently active for this block. 44231 inlineEditing: { 44232 type: Boolean, 44233 default: false 44234 } 44235 }, 44236 setup(__props) { 44237 const AccentWrapper = (props2, { slots }) => { 44238 var _a, _b; 44239 const shape = h("span", { 44240 class: "block__image-accent_shape", 44241 "aria-hidden": "true" 44242 }); 44243 const offsetImage2 = h("img", { 44244 class: "block__image-accent_image", 44245 src: (_a = props2.offsetImage) == null ? void 0 : _a.src, 44246 alt: "", 44247 "aria-hidden": "true" 44248 }); 44249 return h("div", { class: props2.accentClasses, style: props2.accentStyle }, [ 44250 props2.hasShape ? shape : null, 44251 props2.offsetImage ? offsetImage2 : null, 44252 ...((_b = slots.default) == null ? void 0 : _b.call(slots)) ?? [] 44253 ]); 44254 }; 44255 AccentWrapper.props = { 44256 accentClasses: { type: Array, default: () => [] }, 44257 accentStyle: { type: Object, default: () => ({}) }, 44258 hasShape: { type: Boolean, default: false }, 44259 offsetImage: { type: Object, default: null } 44260 }; 44261 const AccentPassThrough = (_props, { slots }) => { 44262 var _a; 44263 const children = ((_a = slots.default) == null ? void 0 : _a.call(slots)) ?? []; 44264 return children.length === 1 ? children[0] : children; 44265 }; 44266 AccentPassThrough.inheritAttrs = false;
44267 const props = __props; 44268 const store = useStore(); 44269 const imageComponent = ref(null); 44270 const imageElementRef = ref(null); 44271 const { 44272 mobileSettingsFF, 44273 isMobile, 44274 imageWidthNumeric, 44275 imageHeightNumeric, 44276 imageSizes 44277 } = useIsMobile(props, { 44278 widthValue: computed( 44279 () => { 44280 var _a, _b, _c; 44281 return ((_a = props.settings) == null ? void 0 : _a.width) || ((_c = (_b = props.settings) == null ? void 0 : _b.extraProps) == null ? void 0 : _c.width); 44282 } 44283 ), 44284 heightValue: computed( 44285 () => { 44286 var _a, _b, _c; 44287 return ((_a = props.settings) == null ? void 0 : _a.height) || ((_c = (_b = props.settings) == null ? void 0 : _b.extraProps) == null ? void 0 : _c.height); 44288 } 44289 ) 44290 }); 44291 const { isAboveFold } = useIntersectionObserver(imageElementRef, { 44292 enabled: true, 44293 initialHeuristic: computed( 44294 () => props.nestedLevel <= 2 && props.index === 0 44295 ) 44296 }); 44297 const { 44298 imageSrc, 44299 imageAlt, 44300 croppedSrc, 44301 croppedImage, 44302 imageHeight, 44303 imageWidth, 44304 backgroundMediaFocal, 44305 backgroundMediaCrop, 44306 updateCroppedImage 44307 } = useImageProperties(props, "src", imageComponent); 44308 const objectPositionStyle = computed(() => { 44309 var _a, _b, _c, _d, _e; 44310 const sizing = (_b = (_a = props.settings) == null ? void 0 : _a.variants) == null ? void 0 : _b.sizing; 44311 if (sizing === "contain" || sizing === "cover") { 44312 const vAlign = (_d = (_c = props.settings) == null ? void 0 : _c.variants) == null ? void 0 : _d["vertical-alignment"]; 44313 if (vAlign === "y-top") return "top center"; 44314 if (vAlign === "y-center") return "center"; 44315 if (vAlign === "y-bottom") return "bottom center"; 44316 } 44317 return ((_e = backgroundMediaFocal.value) == null ? void 0 : _e.bgPosition) || "center"; 44318 }); 44319 const mediaSrc = computed(() => { 44320 var _a; 44321 return (_a = props.settings) == null ? void 0 : _a.src; 44322 }); 44323 const { isVideo } = useMedia(mediaSrc); 44324 const { isExpired, expiredPresetId } = useIsExpired( 44325 props.settings, 44326 (item) => item.type === props.settings.type || item.propertyKey === props.settings.type 44327 ); 44328 const { showInlineEditor } = useInlineMediaEdit(props, { 44329 mediaKey: "src", 44330 isExpired 44331 }); 44332 const shouldHideOnMobile = computed(() => { 44333 var _a; 44334 return mobileSettingsFF.value && ((_a = props.settings) == null ? void 0 : _a.hideOnMobile) === true && (isMobile.value || props.isBuilderMobile); 44335 }); 44336 const needsCanvasProcessing = computed(() => { 44337 var _a; 44338 if (!imageSrc.value || !((_a = backgroundMediaCrop.value) == null ? void 0 : _a.image)) { 44339 return false; 44340 } 44341 if (!mobileSettingsFF.value) { 44342 return true; 44343 } 44344 return true; 44345 }); 44346 const shouldUseLazyLoading = computed(() => { 44347 var _a; 44348 return !!(mobileSettingsFF.value && imageSrc.value && ((_a = backgroundMediaCrop.value) == null ? void 0 : _a.image)); 44349 }); 44350 watch( 44351 () => { 44352 const crop = { ...backgroundMediaCrop.value }; 44353 delete crop.focal; 44354 return JSON.stringify(crop); 44355 }, 44356 () => { 44357 if (mobileSettingsFF.value) croppedImage.value = null; 44358 } 44359 ); 44360 const displayImageSrc = computed(() => { 44361 if (mobileSettingsFF.value && needsCanvasProcessing.value) { 44362 return croppedImage.value || null; 44363 } 44364 if (mobileSettingsFF.value) { 44365 return imageSrc.value; 44366 } 44367 return croppedSrc.value; 44368 }); 44369 const loadImage = (image) => { 44370 const src = image.getAttribute("data-src"); 44371 image.src = src; 44372 image.removeAttribute("data-src"); 44373 }; 44374 const handleLazyLoad = () => { 44375 }; 44376 const loadingStrategy = computed(() => { 44377 if (!mobileSettingsFF.value) return void 0; 44378 return isAboveFold.value ? "eager" : "lazy"; 44379 }); 44380 const fetchPriority = computed(() => { 44381 if (!mobileSettingsFF.value) return void 0; 44382 return isAboveFold.value ? "high" : "low"; 44383 }); 44384 const numericWidth = computed(() => { 44385 if (!mobileSettingsFF.value) return void 0; 44386 return imageWidthNumeric.value; 44387 }); 44388 const numericHeight = computed(() => { 44389 if (!mobileSettingsFF.value) return void 0; 44390 return imageHeightNumeric.value; 44391 }); 44392 const sizesAttribute = computed(() => { 44393 if (!mobileSettingsFF.value) return void 0; 44394 return imageSizes.value; 44395 }); 44396 const { 44397 hasOffsetAccent, 44398 hasShapeAccent, 44399 offsetAccentClasses, 44400 offsetAccentStyle, 44401 offsetImage 44402 } = useOffsetAccent( 44403 computed(() => props.settings), 44404 { 44405 // The flag gates the render too, so it stays a kill switch for 44406 // accents that authors already saved. 44407 enabled: computed( 44408 () => { 44409 var _a, _b, _c; 44410 return ((_c = (_b = (_a = store == null ? void 0 : store.state) == null ? void 0 : _a.settings) == null ? void 0 : _b.featureFlags) == null ? void 0 : _c.BuilderEnhImageOffsetAccent) === true; 44411 } 44412 ), 44413 isVideo, 44414 isExpired, 44415 hasImage: computed(() => !!imageSrc.value) 44416 } 44417 ); 44418 const toPixelLength = (value) => { 44419 if (typeof value === "number") return `${value}px`; 44420 const match2 = typeof value === "string" ? value.trim().match(/^(\d+(?:\.\d+)?)(px)?$/) : null; 44421 return match2 ? `${match2[1]}px` : void 0; 44422 }; 44423 const accentStyleWithSize = computed(() => ({ 44424 ...offsetAccentStyle.value, 44425 width: toPixelLength(imageWidth.value), 44426 height: toPixelLength(imageHeight.value) 44427 })); 44428 return (_ctx, _cache) => { 44429 const _component_CoreBlockImageCropped = __nuxt_component_0$8; 44430 return unref(isVideo) && !shouldHideOnMobile.value ? (openBlock(), createBlock(_sfc_main$3J, { 44431 key: 0, 44432 settings: __props.settings, 44433 "is-expired": unref(isExpired), 44434 "is-builder-mobile": __props.isBuilderMobile, 44435 index: __props.index, 44436 "nested-level": __props.nestedLevel, 44437 "inline-editable": __props.inlineEditable, 44438 "inline-editing": __props.inlineEditing 44439 }, createSlots({ _: 2 }, [ 44440 _ctx.$slots["inline-editor"] ? { 44441 name: "inline-editor", 44442 fn: withCtx((slotData) => [ 44443 renderSlot(_ctx.$slots, "inline-editor", normalizeProps$1(guardReactiveProps(slotData))) 44444 ]), 44445 key: "0" 44446 } : void 0 44447 ]), 1032, ["settings", "is-expired", "is-builder-mobile", "index", "nested-level", "inline-editable", "inline-editing"])) : !unref(isVideo) && !shouldHideOnMobile.value ? (openBlock(), createElementBlock("div", { 44448 key: 1, 44449 ref_key: "imageElementRef", 44450 ref: imageElementRef, 44451 class: normalizeClass(["block__body", { "block__body--empty": !unref(imageSrc) }]) 44452 }, [ 44453 unref(isExpired) ? (openBlock(), createElementBlock("div", { 44454 key: 0, 44455 "data-testid": `${__props.settings.type}-expired`, 44456 "data-expired-preset-id": unref(expiredPresetId), 44457 class: "expired-content" 44458 }, null, 8, _hoisted_1$3D)) : (openBlock(), createElementBlock("figure", _hoisted_2$3p, [ 44459 (openBlock(), createBlock(resolveDynamicComponent(unref(hasOffsetAccent) ? AccentWrapper : AccentPassThrough), { 44460 "accent-classes": unref(offsetAccentClasses), 44461 "accent-style": accentStyleWithSize.value, 44462 "has-shape": unref(hasShapeAccent), 44463 "offset-image": unref(offsetImage) 44464 }, { 44465 default: withCtx(() => [ 44466 unref(mobileSettingsFF) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 44467 displayImageSrc.value && (!needsCanvasProcessing.value || unref(croppedImage)) ? (openBlock(), createElementBlock("img", { 44468 key: 0, 44469 ref_key: "imageComponent", 44470 ref: imageComponent, 44471 src: displayImageSrc.value, 44472 alt: unref(imageAlt), 44473 loading: loadingStrategy.value, 44474 fetchpriority: fetchPriority.value, 44475 width: numericWidth.value, 44476 height: numericHeight.value, 44477 sizes: sizesAttribute.value, 44478 decoding: "async", 44479 style: normalizeStyle({ 44480 height: unref(imageHeight), 44481 width: unref(imageWidth), 44482 objectPosition: objectPositionStyle.value 44483 }) 44484 }, null, 12, _hoisted_3$e)) : shouldUseLazyLoading.value && !unref(croppedImage) ? (openBlock(), createBlock(_sfc_main$3K, { 44485 key: 1, 44486 "on-load": handleLazyLoad, 44487 "track-above-fold": true 44488 }, { 44489 default: withCtx(() => [ 44490 createVNode(_component_CoreBlockImageCropped, { 44491 "image-src": unref(imageSrc), 44492 "media-metadata": unref(backgroundMediaCrop
44492), 44493 onLoaded: unref(updateCroppedImage) 44494 }, null, 8, ["image-src", "media-metadata", "onLoaded"]) 44495 ]), 44496 _: 1 44497 })) : createCommentVNode("", true) 44498 ], 64)) : (openBlock(), createBlock(_sfc_main$3K, { 44499 key: 1, 44500 "on-load": (children) => loadImage(children[0]), 44501 "track-above-fold": true 44502 }, { 44503 default: withCtx(() => [ 44504 createBaseVNode("img", mergeProps({ 44505 ...__props.isEditable && { src: unref(croppedSrc) } 44506 }, { 44507 ref_key: "imageComponent", 44508 ref: imageComponent, 44509 "data-src": unref(croppedSrc), 44510 alt: unref(imageAlt), 44511 style: { 44512 height: unref(imageHeight), 44513 width: unref(imageWidth), 44514 objectPosition: objectPositionStyle.value 44515 } 44516 }), null, 16, _hoisted_4$b), 44517 unref(imageSrc) ? (openBlock(), createBlock(_component_CoreBlockImageCropped, { 44518 key: 0, 44519 "image-src": unref(imageSrc), 44520 "media-metadata": unref(backgroundMediaCrop), 44521 onLoaded: unref(updateCroppedImage) 44522 }, null, 8, ["image-src", "media-metadata", "onLoaded"])) : createCommentVNode("", true) 44523 ]), 44524 _: 1 44525 }, 8, ["on-load"])) 44526 ]), 44527 _: 1 44528 }, 8, ["accent-classes", "accent-style", "has-shape", "offset-image"])) 44529 ])), 44530 unref(showInlineEditor) ? (openBlock(), createElementBlock("div", _hoisted_5$a, [ 44531 renderSlot(_ctx.$slots, "inline-editor", { field: "src" }) 44532 ])) : createCommentVNode("", true) 44533 ], 2)) : createCommentVNode("", true); 44534 }; 44535 } 44536}); 44537const CoreBlockImage = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 44538 __proto__: null, 44539 default: _sfc_main$3E 44540}, Symbol.toStringTag, { value: "Module" })); 44541const _sfc_main$3D = { 44542 props: { 44543 settings: { 44544 type: Object, 44545 required: false 44546 } 44547 }, 44548 computed: { 44549 alt() { 44550 var _a, _b; 44551 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 44552 }, 44553 id() { 44554 var _a, _b; 44555 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 44556 } 44557 } 44558}; 44559const _hoisted_1$3C = ["aria-labelledby", "aria-label"]; 44560const _hoisted_2$3o = ["id"]; 44561function _sfc_render$3h(_ctx, _cache, $props, $setup, $data, $options) { 44562 return openBlock(), createElementBlock("svg", { 44563 width: "24", 44564 height: "24", 44565 viewBox: "0 0 24 24", 44566 fill: "none", 44567 xmlns: "http://www.w3.org/2000/svg", 44568 role: "img", 44569 "aria-labelledby": `icon-title-${$options.id}`, 44570 "aria-label": $options.alt 44571 }, [ 44572 createBaseVNode("title", { 44573 id: `icon-title-${$options.id}` 44574 }, toDisplayString($options.alt), 9, _hoisted_2$3o), 44575 _cache[0] || (_cache[0] = createBaseVNode("path", { 44576 d: "M18 6L6 18", 44577 stroke: "currentColor", 44578 "stroke-width": "2", 44579 "stroke-linecap": "round", 44580 "stroke-linejoin": "round" 44581 }, null, -1)), 44582 _cache[1] || (_cache[1] = createBaseVNode("path", { 44583 d: "M6 6L18 18", 44584 stroke: "currentColor", 44585 "stroke-width": "2", 44586 "stroke-linecap": "round", 44587 "stroke-linejoin": "round" 44588 }, null, -1)) 44589 ], 8, _hoisted_1$3C); 44590} 44591const __nuxt_component_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3D, [["render", _sfc_render$3h]]); 44592const CoreIconMenuClose = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 44593 __proto__: null, 44594 default: __nuxt_component_0$3 44595}, Symbol.toStringTag, { value: "Module" })); 44596const _sfc_main$3C = { 44597 name: "CoreIconHamburgerMenu", 44598 props: { 44599 settings: { 44600 type: Object, 44601 required: false 44602 } 44603 }, 44604 computed: { 44605 alt() { 44606 var _a, _b; 44607 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 44608 }, 44609 id() { 44610 var _a, _b; 44611 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 44612 } 44613 } 44614}; 44615const _hoisted_1$3B = ["aria-labelledby", "aria-label"]; 44616const _hoisted_2$3n = ["id"]; 44617function _sfc_render$3g(_ctx, _cache, $props, $setup, $data, $options) { 44618 return openBlock(), createElementBlock("svg", { 44619 role: "img", 44620 width: "20", 44621 height: "17",
44622 viewBox: "0 0 20 17", 44623 fill: "none", 44624 xmlns: "http://www.w3.org/2000/svg", 44625 "aria-labelledby": `icon-title-${$options.id}`, 44626 "aria-label": $options.alt 44627 }, [ 44628 createBaseVNode("title", { 44629 id: `icon-title-${$options.id}` 44630 }, toDisplayString($options.alt), 9, _hoisted_2$3n), 44631 _cache[0] || (_cache[0] = createBaseVNode("path", { 44632 d: "M1 6H19", 44633 stroke: "currentColor", 44634 "stroke-width": "2", 44635 "stroke-linecap": "round", 44636 "stroke-linejoin": "round" 44637 }, null, -1)), 44638 _cache[1] || (_cache[1] = createBaseVNode("path", { 44639 d: "M1 1H19", 44640 stroke: "currentColor", 44641 "stroke-width": "2", 44642 "stroke-linecap": "round", 44643 "stroke-linejoin": "round" 44644 }, null, -1)), 44645 _cache[2] || (_cache[2] = createBaseVNode("path", { 44646 d: "M1 11H19", 44647 stroke: "currentColor", 44648 "stroke-width": "2", 44649 "stroke-linecap": "round", 44650 "stroke-linejoin": "round" 44651 }, null, -1)), 44652 _cache[3] || (_cache[3] = createBaseVNode("path", { 44653 d: "M1 16H19", 44654 stroke: "currentColor", 44655 "stroke-width": "2", 44656 "stroke-linecap": "round", 44657 "stroke-linejoin": "round" 44658 }, null, -1)) 44659 ], 8, _hoisted_1$3B); 44660} 44661const __nuxt_component_1$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3C, [["render", _sfc_render$3g]]); 44662const CoreIconHamburgerMenu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 44663 __proto__: null, 44664 default: __nuxt_component_1$3 44665}, Symbol.toStringTag, { value: "Module" })); 44666const _hoisted_1$3A = ["alt", "src"]; 44667const _sfc_main$3B = { 44668 __name: "CoreBlockMainNavImage", 44669 props: { 44670 site: { 44671 type: Object, 44672 default: () => { 44673 return {}; 44674 } 44675 } 44676 }, 44677 emits: ["click"], 44678 setup(__props, { emit: __emit }) { 44679 const emit2 = __emit; 44680 const props = __props; 44681 const navigation = computed(() => { 44682 return props.site.navigation; 44683 }); 44684 const navigationImage = computed(() => { 44685 var _a; 44686 return (_a = navigation.value) == null ? void 0 : _a.navImage; 44687 }); 44688 const navigationImageLink = computed(() => { 44689 var _a; 44690 return ((_a = navigation.value) == null ? void 0 : _a.navImageLink) || "/"; 44691 }); 44692 const navigationImageInternalLink = computed(() => { 44693 var _a; 44694 return (_a = navigationImageLink.value) == null ? void 0 : _a.startsWith("/"); 44695 }); 44696 const navigationImageTag = computed(() => { 44697 if (navigationImageInternalLink.value) { 44698 return __nuxt_component_2$5; 44699 } 44700 return "a"; 44701 }); 44702 const imageClick = (event, closeNav = true) => { 44703 emit2("click", event, closeNav); 44704 }; 44705 return (_ctx, _cache) => { 44706 return openBlock(), createBlock(resolveDynamicComponent(navigationImageTag.value), mergeProps({ 44707 class: "navbar_nav-end-link", 44708 target: navigationImageInternalLink.value ? "_self" : "_blank" 44709 }, { 44710 ...navigationImageInternalLink.value ? { to: navigationImageLink.value } : { href: navigationImageLink.value } 44711 }, { onClick: imageClick }), { 44712 default: withCtx(() => [ 44713 createBaseVNode("img", { 44714 class: "navbar_nav-image", 44715 alt: navigationImage.value.alt, 44716 src: navigationImage.value.src 44717 }, null, 8, _hoisted_1$3A) 44718 ]), 44719 _: 1 44720 }, 16, ["target"]); 44721 }; 44722 } 44723}; 44724const CoreBlockMainNavImage = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 44725 __proto__: null, 44726 default: _sfc_main$3B 44727}, Symbol.toStringTag, { value: "Module" })); 44728const NAV_STYLES_WITH_DISPLAY_INFO = ["standard", "transparent"]; 44729const NAV_LAYOUTS = { 44730 "stacked-center": { 44731 flag: "CenteredLogoNavigation", 44732 classes: ["block_main-nav--stacked-center"], 44733 sticky: true 44734 }, 44735 floating: { 44736 flag: "FloatingNavigation", 44737 classes: ["block_main-nav--floating"], 44738 sticky: false 44739 }, 44740 transparent: { 44741 flag: "BuilderEnhTransparentNavigation", 44742 classes: ["block_main-nav--transparent"], 44743 sticky: false 44744 } 44745};
44746const STACKED_RIGHT_NAV_STYLES = ["standard", "floating", "transparent"]; 44747const STANDARD_NAV_LAYOUT = { flag: null, classes: [], sticky: true }; 44748const _sfc_main$3A = { 44749 name: "CoreBlockMainNav", 44750 components: { 44751 NuxtLink: __nuxt_component_2$5 44752 }, 44753 props: { 44754 site: { 44755 type: Object, 44756 default: () => { 44757 return {}; 44758 } 44759 }, 44760 isBuilder: { 44761 type: Boolean, 44762 default: false 44763 }, 44764 isBuilderMobile: { 44765 type: Boolean, 44766 default: false 44767 }, 44768 isEditable: { 44769 type: Boolean, 44770 default: false 44771 } 44772 }, 44773 setup() { 44774 const store = useStore(); 44775 const { state, commit: commit2 } = store; 44776 const { isMobile } = useIsMobile(); 44777 return { isMobile, state, commit: commit2 }; 44778 }, 44779 data() { 44780 return { 44781 hamVisible: false, 44782 hoverPageId: null, 44783 mobileNavVisible: false, 44784 windowScroll: null, 44785 showSkipLink: false, 44786 blockId: void 0, 44787 scrollLockHandler: null, 44788 navScrollHandler: null, 44789 isNavAtTop: true, 44790 logoSrc: null, 44791 defaultLogo: { 44792 src: "/img/logos/nyl-logo-blue.svg", 44793 alt: "New York Life Insurance" 44794 } 44795 }; 44796 }, 44797 computed: { 44798 isNYL() { 44799 var _a; 44800 return ((_a = this == null ? void 0 : this.site) == null ? void 0 : _a.brandId) === 3; 44801 }, 44802 isCoreLite() { 44803 var _a, _b, _c; 44804 return ((_c = (_b = (_a = this.state) == null ? void 0 : _a.settings) == null ? void 0 : _b.brandFeatureFlags) == null ? void 0 : _c.includes( 44805 BRAND_FEATURE_FLAGS.CoreLite 44806 )) ?? false; 44807 }, 44808 buttonSettings() { 44809 return { 44810 icon: this.navButtonIcon, 44811 label: this.navButton ? this.navButton.title : "", 44812 newWindow: this.navButtonLink && !isObject$1(this.navButtonLink) ? this.navButtonLink.startsWith("http") : false, 44813 type: "button", 44814 url: this.navButtonLink, 44815 relAttributes: this.navButtonRelAttributes, 44816 variants: { 44817 "icon-placement": this.navButtonIconPlacement, 44818 style: this.navButtonStyle 44819 } 44820 }; 44821 }, 44822 navButton() { 44823 var _a, _b; 44824 return (_b = (_a = this == null ? void 0 : this.site) == null ? void 0 : _a.pages) == null ? void 0 : _b.find( 44825 (p2) => { 44826 var _a2; 44827 return (_a2 = getPageSettings(p2)) == null ? void 0 : _a2.isNavButton; 44828 } 44829 ); 44830 }, 44831 showNavigationImage() { 44832 var _a, _b; 44833 return ((_a = this.navigation) == null ? void 0 : _a.navImage) && ((_b = this.state.settings.featureFlags) == null ? void 0 : _b.NavBarEnhancements); 44834 }, 44835 navButtonDialog() { 44836 var _a, _b, _c, _d;
44837 try { 44838 const dialog = (_b = JSON.parse((_a = this.navButton) == null ? void 0 : _a.link)) == null ? void 0 : _b.dialog; 44839 return dialog; 44840 } catch { 44841 return (_d = (_c = this.navButton) == null ? void 0 : _c.link) == null ? void 0 : _d.dialog; 44842 } 44843 }, 44844 navButtonIcon() { 44845 var _a, _b, _c, _d; 44846 try { 44847 const icon = (_b = JSON.parse((_a = this.navButton) == null ? void 0 : _a.settings)) == null ? void 0 : _b.icon; 44848 return icon; 44849 } catch { 44850 return (_d = (_c = this.navButton) == null ? void 0 : _c.settings) == null ? void 0 : _d.icon; 44851 } 44852 }, 44853 navButtonIconPlacement() { 44854 var _a, _b, _c, _d; 44855 try { 44856 const iconPlacement = (_b = JSON.parse( 44857 (_a = this.navButton) == null ? void 0 : _a.settings 44858 )) == null ? void 0 : _b.iconPlacement; 44859 return iconPlacement ?? "icon-left"; 44860 } catch { 44861 return ((_d = (_c = this.navButton) == null ? void 0 : _c.settings) == null ? void 0 : _d.iconPlacement) ?? "icon-left"; 44862 } 44863 }, 44864 navButtonStyle() { 44865 var _a; 44866 return ((_a = this.navigation) == null ? void 0 : _a.buttonStyle) ?? "primary"; 44867 }, 44868 navButtonLink() { 44869 var _a, _b, _c, _d, _e, _f; 44870 try { 44871 return ((_b = JSON.parse((_a = this.navButton) == null ? void 0 : _a.link)) == null ? void 0 : _b.url) || `/${(_c = this.navButton) == null ? void 0 : _c.handle}`; 44872 } catch { 44873 return ((_e = (_d = this.navButton) == null ? void 0 : _d.link) == null ? void 0 : _e.url) || `/${(_f = this.navButton) == null ? void 0 : _f.handle}`; 44874 } 44875 }, 44876 navButtonRelAttributes() { 44877 var _a, _b, _c, _d;
44878 try { 44879 return (_b = JSON.parse((_a = this.navButton) == null ? void 0 : _a.link)) == null ? void 0 : _b.relAttributes; 44880 } catch { 44881 return (_d = (_c = this.navButton) == null ? void 0 : _c.link) == null ? void 0 : _d.relAttributes; 44882 } 44883 }, 44884 pageTree() { 44885 var _a; 44886 try { 44887 return ((_a = this == null ? void 0 : this.site) == null ? void 0 : _a.pages.filter( 44888 (p2) => { 44889 var _a2, _b; 44890 return !p2.isPrivate && !p2.parentPageId && ((_a2 = this == null ? void 0 : this.site) == null ? void 0 : _a2.homepageId) != p2.id && !((_b = getPageSettings(p2)) == null ? void 0 : _b.isNavButton); 44891 } 44892 )) || []; 44893 } catch (err) { 44894 return []; 44895 } 44896 }, 44897 logoInternalLink() { 44898 return isObject$1(this.logoLink) || this.logoLink.startsWith("/"); 44899 }, 44900 logoTag() { 44901 if (this.logoInternalLink) { 44902 return "NuxtLink"; 44903 } 44904 return "a"; 44905 }, 44906 blockClasses() { 44907 var _a, _b; 44908 const classList = ["block", "block_main-nav"]; 44909 if ((_a = this.navigation) == null ? void 0 : _a.menuAlignment) { 44910 classList.push( 44911 `block_main-nav_align-${this.navigation.menuAlignment}` 44912 ); 44913 } 44914 if (this.hamVisible) { 44915 classList.push("block_main-nav--subnav_open"); 44916 } 44917 classList.push(...this.navLayout.classes); 44918 if (this.navLayout.sticky && !this.isBuilder) { 44919 classList.push("block_main-nav--sticky_nav"); 44920 } 44921 if (this.invertNavColors) { 44922 classList.push("block_main-nav--transparent-invert"); 44923 } 44924 if (this.isTransparent && !this.isBuilder && this.isNavAtTop) { 44925 classList.push("block_main-nav--at-top"); 44926 } 44927 if (this.isStackedRightDesktop) { 44928 classList.push("block_main-nav--stacked-right"); 44929 } 44930 if (this.isBuilder) { 44931 classList.push("block_main-nav--pointer_all"); 44932 classList.push("block_main-nav--builder-canvas"); 44933 } 44934 if (((_b = this.state.settings.featureFlags) == null ? void 0 : _b.NavBarEnhancements) && this.navigation.navBarHeight && !(this.isNavMobile && this.navigation.toggleNavHeightMobile)) { 44935 classList.push( 44936 `block_main-nav--height-${this.navigation.navBarHeight}` 44937 ); 44938 } 44939 return classList; 44940 }, 44941 navigation() { 44942 var _a; 44943 return ((_a = this.site) == null ? void 0 : _a.navigation) || {}; 44944 }, 44945 navStyle() { 44946 return this.navigation.navStyle || "standard"; 44947 }, 44948 resolvedNavStyle() { 44949 var _a; 44950 const layout = NAV_LAYOUTS[this.navStyle]; 44951 if (layout && ((_a = this.state.settings.featureFlags) == null ? void 0 : _a[layout.flag])) { 44952 return this.navStyle; 44953 } 44954 return "standard"; 44955 }, 44956 navLayout() { 44957 return NAV_LAYOUTS[this.resolvedNavStyle] || STANDARD_NAV_LAYOUT; 44958 }, 44959 isStackedCenter() { 44960 return this.resolvedNavStyle === "stacked-center"; 44961 }, 44962 isFloating() { 44963 return this.resolvedNavStyle === "floating"; 44964 }, 44965 isTransparent() { 44966 return this.resolvedNavStyle === "transparent"; 44967 }, 44968 invertNavColors() { 44969 return this.isTransparent && !!this.navigation.invertNavColors; 44970 }, 44971 isStackedRight() { 44972 var _a; 44973 return !!this.navigation.stackedRight && !!((_a = this.state.settings.featureFlags) == null ? void 0 : _a.BuilderEnhStackedRightNavigation) && STACKED_RIGHT_NAV_STYLES.includes(this.resolvedNavStyle); 44974 }, 44975 isStackedRightDesktop() { 44976 return this.isStackedRight && !this.isNavMobile; 44977 }, 44978 centeredNavColorOption() { 44979 return this.navigation.centeredNavColorOption || "single-color-divider"; 44980 }, 44981 originalLogo() { 44982 const logoSrc = isObject$1(this.navigation.logo) ? this.navigation.logo.src : this.navigation.logo; 44983 const rendered = renderData(logoSrc, this.site); 44984 if (this.logoFallbackEnabled) { 44985 return rendered || this.fallbackLogo || this.staticLogo; 44986 } 44987 if (rendered) return rendered; 44988 if (this.isCoreLite) return this.fallbackLogo || this.staticLogo; 44989 if (this.isNYL) return this.defaultLogo.src; 44990 return "/img/core-logo.svg"; 44991 }, 44992 // Both fallback rungs must describe the same brand: in the Builder the loaded brand wins 44993 // over the edited site's, so deriving them separately would mix two brands' logos. 44994 logoBrandId() { 44995 var _a, _b, _c; 44996 return ((_b = (_a = this.state) == null ? void 0 : _a.brand) == null ? void 0 : _b.id) ?? ((_c = this.site) == null ? void 0 : _c.brandId); 44997 }, 44998 fallbackLogo() { 44999 return generateFallbackLogoURL(this.logoBrandId); 45000 }, 45001 // Last resort, bundled with the app so it cannot 404 the way a remote URL can. 45002 staticLogo() { 45003 return this.logoBrandId === 3 ? this.defaultLogo.src : "/img/core-logo.svg"; 45004 }, 45005 logoFallbackEnabled() { 45006 var _a; 45007 return (_a = this.state.settings.featureFlags) == null ? void 0 : _a.LogoFallback; 45008 }, 45009 logoStyle() { 45010 return this.navigation.logoStyle; 45011 }, 45012 logoAltText() { 45013 const logoAlt = isObject$1(this.navigation.logo) ? this.navigation.logo.alt : this.navigation.logoAltText; 45014 if (this.logoFallbackEnabled) { 45015 return logoAlt || "Website Logo"; 45016 } else { 45017 const defaultAlt = this.logoSrc === this.defaultLogo.src && this.defaultLogo.alt; 45018 return logoAlt || defaultAlt || this.name; 45019 } 45020 }, 45021 logoLink() { 45022 return this.isCoreLite ? "/" : this.navigation.logoLink || "/"; 45023 }, 45024 hasDataName() { 45025 const dataName = renderData(this.navigation.name, this.site) || ""; 45026 return !!dataName.trim(); 45027 }, 45028 name() { 45029 var _a; 45030 const formattedName = formatName( 45031 this.navigation.name, 45032 (_a = this.site.user) == null ? void 0 : _a.ddcUserData 45033 ); 45034 return this.hasDataName ? unescape$1(renderData(formattedName, this.site)) : this.site.title; 45035 }, 45036 displayName() { 45037 var _a, _b; 45038 return (_b = (_a = this.site.user) == null ? void 0 : _a.ddcUserData) == null ? void 0 : _b.dis
45038playName; 45039 }, 45040 showsDisplayInformation() { 45041 return !this.isCoreLite && NAV_STYLES_WITH_DISPLAY_INFO.includes(this.navStyle); 45042 }, 45043 showUsername() { 45044 if (!this.showsDisplayInformation) return false; 45045 return this.navigation.showUsername; 45046 }, 45047 showOverline() { 45048 if (!this.showsDisplayInformation) return false; 45049 return this.navigation.showOverline; 45050 }, 45051 showTitle() { 45052 if (!this.showsDisplayInformation) return false; 45053 return this.navigation.showTitle; 45054 }, 45055 isManagingPartner() { 45056 var _a, _b, _c; 45057 if (((_c = (_b = (_a = this.site.user) == null ? void 0 : _a.ddcUserData) == null ? void 0 : _b.marketerTitleTpDesc) == null ? void 0 : _c.toLowerCase()) === "managing partner") { 45058 return true; 45059 } 45060 if (this.hasOrganizationManager) { 45061 return true; 45062 } 45063 return false; 45064 }, 45065 overline() { 45066 if (this.hasOrganization) { 45067 return this.organizationName + " General Office"; 45068 } 45069 if (this.isGO) { 45070 return this.goHeadquarters + " General Office"; 45071 } 45072 return unescape$1(renderData(this.navigation.overline, this.site)); 45073 }, 45074 jobTitle() { 45075 if (this.isManagingPartner) { 45076 return "Managing Partner"; 45077 } 45078 return renderData(this.navigation.jobTitle, this.site); 45079 }, 45080 isGO() { 45081 var _a; 45082 return ((_a = this.site.tags) == null ? void 0 : _a.includes(1305)) ?? false; 45083 }, 45084 hasOrganization() { 45085 return this.site.organizationId != null; 45086 }, 45087 hasOrganizationManager() { 45088 return this.site.organizationManagerId != null; 45089 }, 45090 organizationName() { 45091 return this.site.organizationName; 45092 }, 45093 organizationTitle() { 45094 var _a, _b; 45095 return (_b = (_a = this.site.user) == null ? void 0 : _a.ddcUserData) == null ? void 0 : _b.AgentTitleExternalDesc; 45096 }, 45097 goHeadquarters() { 45098 var _a, _b; 45099 return (_b = (_a = this.site.user) == null ? void 0 : _a.ddcUserData) == null ? void 0 : _b.orgUnitDesc; 45100 }, 45101 hasButton() { 45102 var _a; 45103 return (_a = this.navigation) == null ? void 0 : _a.button; 45104 }, 45105 buttonLink() { 45106 var _a; 45107 return (_a = this.navigation) == null ? void 0 : _a.buttonLink; 45108 }, 45109 buttonText() { 45110 var _a; 45111 return (_a = this.navigation) == null ? void 0 : _a.buttonText; 45112 }, 45113 buttonTarget() { 45114 var _a; 45115 return (_a = this.navigation) == null ? void 0 : _a.buttonTarget; 45116 }, 45117 menuAlignmentClass() { 45118 return `navbar__nav--${this.navigation.menuAlignment}`; 45119 }, 45120 logoClass() { 45121 return `brand_image brand_image--${this.logoStyle}`; 45122 }, 45123 navCenterClasses() { 45124 return [ 45125 "nav-center", 45126 "navbar__nav", 45127 "hide-xs", 45128 "hide-sm", 45129 `text-${this.navigation.menuAlignment}` 45130 ]; 45131 }, 45132 hasMoreThanOnePage() { 45133 var _a; 45134 return ((_a = this.site.pages) == null ? void 0 : _a.length) > 1; 45135 }, 45136 isNavMobile() { 45137 return this.isBuilderMobile || this.isMobile; 45138 }, 45139 teamMembersName() { 45140 var _a, _b, _c; 45141 if ((_a = this.navigation) == null ? void 0 : _a["team-member"]) { 45142 const teamMember = (_c = (_b = this.site) == null ? void 0 : _b.teamMembers) == null ? void 0 : _c.find( 45143 (t) => { 45144 var _a2; 45145 return t.id === ((_a2 = this.navigation) == null ? void 0 : _a2["team-member"]); 45146 } 45147 ); 45148 if (!teamMember) { 45149 return ""; 45150 } 45151 const firstName = (teamMember == null ? void 0 : teamMember.firstName) ? (teamMember == null ? void 0 : teamMember.firstName) + " " : ""; 45152 const middleName = (teamMember == null ? void 0 : teamMember.middleName) ? (teamMember == null ? void 0 : teamMember.middleName) + " " : ""; 45153 const lastName = (teamMember == null ? void 0 : teamMember.lastName) ? (teamMember == null ? void 0 : teamMember.lastName) + " " : ""; 45154 return `${firstName}${middleName}${lastName}`; 45155 } 45156 return ""; 45157 } 45158 }, 45159 watch: { 45160 "state.brand.id"() { 45161 this.logoSrc = this.originalLogo; 45162 }, 45163 originalLogo(newVal) { 45164 this.logoSrc = newVal; 45165 }, 45166 isNavMobile(nv) { 45167 if (!nv && this.hamVisible) this.hamVisible = false;
45168 }, 45169 hamVisible(nv) { 45170 if (nv && this.isNavMobile) { 45171 this.lockScroll(); 45172 } else { 45173 this.unlockScroll(); 45174 } 45175 }, 45176 navStyle() { 45177 this.syncNavScrollPadding(); 45178 this.syncTransparentScrollListener(); 45179 } 45180 }, 45181 mounted() { 45182 this.logoSrc = this.originalLogo; 45183 this.syncNavScrollPadding(); 45184 this.syncTransparentScrollListener(); 45185 }, 45186 beforeUnmount() { 45187 document.documentElement.style.scrollPaddingTop = ""; 45188 this.unlockScroll(); 45189 this.teardownNavScrollListener(); 45190 }, 45191 methods: { 45192 lockScroll() { 45193 this.unlockScroll(); 45194 const panel = this.$el.querySelector("#main-nav-menu"); 45195 this.scrollLockHandler = (event) => { 45196 if (panel && panel.contains(event.target)) return; 45197 event.preventDefault(); 45198 }; 45199 window.addEventListener("wheel", this.scrollLockHandler, { 45200 passive: false 45201 }); 45202 window.addEventListener("touchmove", this.scrollLockHandler, { 45203 passive: false 45204 }); 45205 }, 45206 unlockScroll() { 45207 if (!this.scrollLockHandler) return; 45208 window.removeEventListener("wheel", this.scrollLockHandler); 45209 window.removeEventListener("touchmove", this.scrollLockHandler); 45210 this.scrollLockHandler = null; 45211 }, 45212 syncNavScrollPadding() { 45213 if (this.isBuilder) { 45214 document.documentElement.style.scrollPaddingTop = ""; 45215 return; 45216 } 45217 if (this.isFloating) { 45218 document.documentElement.style.scrollPaddingTop = "calc(var(--_core__nav_height) + var(--_core__floating-nav_gutter) * 2)"; 45219 } else if (this.isTransparent) { 45220 document.documentElement.style.scrollPaddingTop = "var(--_core__nav_height)"; 45221 } else { 45222 document.documentElement.style.scrollPaddingTop = ""; 45223 } 45224 }, 45225 syncTransparentScrollListener() { 45226 this.teardownNavScrollListener(); 45227 if (this.isBuilder || !this.isTransparent) { 45228 this.isNavAtTop = true; 45229 return; 45230 } 45231 this.navScrollHandler = () => { 45232 this.isNavAtTop = window.scrollY <= 0; 45233 }; 45234 window.addEventListener("scroll", this.navScrollHandler, { 45235 passive: true 45236 }); 45237 this.navScrollHandler(); 45238 }, 45239 teardownNavScrollListener() { 45240 if (!this.navScrollHandler) return; 45241 window.removeEventListener("scroll", this.navScrollHandler); 45242 this.navScrollHandler = null; 45243 }, 45244 // Steps one rung down the chain: site logo -> brand default -> bundled static. 45245 logoFailedToLoad() { 45246 if (!this.logoFallbackEnabled && !this.isCoreLite) return; 45247 if (this.logoSrc === this.staticLogo) return; 45248 this.logoSrc = this.fallbackLogo && this.logoSrc !== this.fallbackLogo ? this.fallbackLogo : this.staticLogo; 45249 }, 45250 handleToggle() { 45251 if (this.isBuilder && this.isEditable && !this.state.interface.isLeftRailClosing) { 45252 if (!this.state.interface.activeSidebarKey) { 45253 this.commit( 45254 "interface/toggleActiveSidebarKey", 45255 "navigation" 45256 ); 45257 } else { 45258 this.commit("interface/setActiveSidebarKey"); 45259 } 45260 this.commit( 45261 "interface/setRightRailOpening", 45262 !this.state.interface.isRightRailOpening 45263 ); 45264 this.commit("site/clearSelectedBlockIds"); 45265 setTimeout(() => { 45266 const targetElement = document.querySelector( 45267 ".editor-main-navigation" 45268 ); 45269 if (targetElement) 45270 targetElement.scrollIntoView({ behavior: "smooth" }); 45271 }, 500); 45272 } 45273 }, 45274 toggleHamVisible() { 45275 if (this.isNavMobile) { 45276 this.hamVisible = !this.hamVisible; 45277 } 45278 }, 45279 handleEscapeKey() { 45280 if (this.hamVisible) { 45281 this.hamVisible = false; 45282 this.$nextTick(() => { 45283 var _a; 45284 (_a = this.$refs.hamburgerBtn) == null ? void 0 : _a.focus(); 45285 }); 45286 } 45287 }, 45288 navClick(e, closeNav) { 45289 e.target.blur(); 45290 e.target.parentNode.blur(); 45291 if (closeNav) this.hamVisible = false; 45292 }, 45293 handleSkipLinkFocus() { 45294 this.blockId = this.getBlockId(); 45295 }, 45296 handleSkipNavigation(event) { 45297 event.preventDefault(); 45298 var firstChild = this.getFirstChild(); 45299 if (firstChild) { 45300 firstChild.scrollIntoView({ 45301 behavior: "smooth", 45302 block: "start", 45303 inline: "start" 45304 }); 45305 } 45306 this.$refs.skipLink.blur(); 45307 }, 45308 getBlockId() { 45309 var firstChild = this.getFirstChild(); 45310 var firstChildId = firstChild ? "#" + firstChild.id : null; 45311 return firstChildId; 45312 }, 45313 getFirstChild() { 45314 var parentElement = document.querySelector(".page__blocks"); 45315 var firstChild = parentElement.querySelector(":first-child"); 45316 return firstChild; 45317 } 45318 } 45319}; 45320const _hoisted_1$3z = { class: "block__body" }; 45321const _hoisted_2$3m = { 45322 class: /* @__PURE__ */ normalizeClass({ 45323 navbar: true 45324 }), 45325 "aria-labelledby": "mainmenulabel" 45326}; 45327const _hoisted_3$d = { class: "navbar_nav navbar_nav--left" };
45328const _hoisted_4$a = ["href"]; 45329const _hoisted_5$9 = { class: "brand" }; 45330const _hoisted_6$6 = ["alt", "src"]; 45331const _hoisted_7$5 = { class: "brand_text" }; 45332const _hoisted_8$5 = { 45333 key: 0, 45334 class: "brand_text__subtitle" 45335}; 45336const _hoisted_9$4 = { 45337 key: 1, 45338 class: "brand_text__title" 45339}; 45340const _hoisted_10$4 = { 45341 key: 2, 45342 class: "brand_text__subtitle" 45343}; 45344const _hoisted_11$4 = { class: "d-flex" }; 45345const _hoisted_12$4 = ["aria-expanded"]; 45346const _hoisted_13$4 = { 45347 key: 0, 45348 class: "navbar_nav--stacked-center-right" 45349}; 45350const _hoisted_14$4 = { 45351 key: 0, 45352 class: "navbar_item navbar_item--button navbar_item--stacked-center-btn" 45353}; 45354const _hoisted_15$4 = { 45355 key: 1, 45356 class: "navbar_nav navbar_nav--end" 45357}; 45358const _hoisted_16$4 = { 45359 key: 1, 45360 class: "navbar_nav--stacked-right-top" 45361}; 45362const _hoisted_17$3 = { 45363 key: 0, 45364 class: "navbar_item navbar_item--button" 45365}; 45366const _hoisted_18$3 = { 45367 key: 1, 45368 class: "navbar_nav navbar_nav--end" 45369}; 45370const _hoisted_19$3 = { 45371 key: 0, 45372 class: "navbar_item navbar_item--button" 45373}; 45374const _hoisted_20$2 = { 45375 key: 1, 45376 class: "navbar_nav navbar_nav--end navbar_nav--end-mobile" 45377}; 45378const _hoisted_21$1 = { 45379 key: 3, 45380 class: "navbar_nav navbar_nav--end" 45381}; 45382function _sfc_render$3f(_ctx, _cache, $props, $setup, $data, $options) { 45383 const _component_CoreIconMenuClose = __nuxt_component_0$3; 45384 const _component_CoreIconHamburgerMenu = __nuxt_component_1$3; 45385 const _component_CoreBlock = _sfc_main$4x; 45386 const _component_CoreBlockMainNavImage = _sfc_main$3B; 45387 const _component_CoreBlockNavItem = _sfc_main$4a; 45388 const _component_CoreBlockCenteredNavBar = _sfc_main$3V; 45389 return openBlock(), createElementBlock("div", { 45390 id: "main-nav", 45391 class: normalizeClass($options.blockClasses), 45392 onClick: _cache[8] || (_cache[8] = (...args) => $options.handleToggle && $options.handleToggle(...args)), 45393 onKeydown: _cache[9] || (_cache[9] = withKeys((...args) => $options.handleEscapeKey && $options.handleEscapeKey(...args), ["escape"])) 45394 }, [ 45395 createBaseVNode("div", _hoisted_1$3z, [ 45396 createBaseVNode("nav", _hoisted_2$3m, [ 45397 createBaseVNode("div", _hoisted_3$d, [ 45398 !$props.isBuilder ? (openBlock(), createElementBlock("a", { 45399 key: 0, 45400 ref: "skipLink", 45401 href: $data.blockId, 45402 class: "skiptocontent", 45403 role: "link", 45404 tabindex: "0", 45405 onFocus: _cache[0] || (_cache[0] = (...args) => $options.handleSkipLinkFocus && $options.handleSkipLinkFocus(...args)), 45406 onClick: _cache[1] || (_cache[1] = (...args) => $options.handleSkipNavigation && $options.handleSkipNavigation(...args)) 45407 }, " skip to main content ", 40, _hoisted_4$a)) : createCommentVNode("", true), 45408 _cache[11] || (_cache[11] = createBaseVNode("div", { 45409 id: "mainmenulabel", 45410 class: "navbar_label--hidden" 45411 }, " Main Menu ", -1)), 45412 createBaseVNode("figure", _hoisted_5$9, [ 45413 withDirectives((openBlock(), createBlock(resolveDynamicComponent($options.logoTag), mergeProps({ 45414 class: "brand_link", 45415 target: $options.logoInternalLink ? "_self" : "_blank" 45416 }, { 45417 ...$options.logoInternalLink ? { to: $options.logoLink } : { href: $options.logoLink } 45418 }), { 45419 default: withCtx(() => [ 45420 createBaseVNode("img", { 45421 alt: $options.logoAltText, 45422 class: normalizeClass($options.logoClass), 45423 src: $data.logoSrc, 45424 onError: _cache[2] || (_cache[2] = (...args) => $options.logoFailedToLoad && $options.logoFailedToLoad(...args)) 45425 }, null, 42, _hoisted_6$6) 45426 ]), 45427 _: 1 45428 }, 16, ["target"])), [ 45429 [vShow, $options.logoStyle !== "none"] 45430 ]), 45431 withDirectives(createBaseVNode("figcaption", _hoisted_7$5, [ 45432 $options.overline && $options.showOverline ? (openBlock(), createElementBlock("h6", _hoisted_8$5, toDisplayString($options.overline), 1)) : createCommentVNode("", true), 45433 $options.hasDataName && $options.showUsername ? (openBlock(), createElementBlock("h4", _hoisted_9$4, toDisplayString($options.teamMembersName || $options.displayName || $options.name), 1)) : createCommentVNode("", true), 45434 $options.jobTitle && $options.showUsername && $options.showTitle ? (openBlock(), createElementBlock("h6", _hoisted_10$4, toDisplayString($options.jobTitle), 1)) : createCommentVNode("", true) 45435 ], 512), [ 45436 [ 45437 vShow, 45438 $options.logoStyle !== "large" && $options.logoStyle !== "none" 45439 ] 45440 ]) 45441 ]), 45442 $options.logoStyle === "none" ? (openBlock(), createBlock(resolveDynamicComponent($options.logoTag), mergeProps( 45443 { 45444 key: 1, 45445 class: [ 45446 "navbar_link", 45447 $options.logoInternalLink ? "navbar_link-internal" : "navbar_link-external" 45448 ], 45449 target: $options.logoInternalLink ? "_self" : "_blank" 45450 }, 45451 $options.logoInternalLink ? { to: $options.logoLink } : { href: $options.logoLink } 45452 ), { 45453 default: withCtx(() => _cache[10] || (_cache[10] = [ 45454 createTextVNode(" Home ") 45455 ])), 45456 _: 1 45457 }, 16, ["class", "target"])) : createCommentVNode("", true) 45458 ]), 45459 createBaseVNode("div", { 45460 class: normalizeClass(["navbar_nav navbar_nav--right d-block", { 45461 "d-none-lg": !$options.isNavMobile 45462 }]) 45463 }, [ 45464 createBaseVNode("div", _hoisted_11$4, [ 45465 createBaseVNode("button", { 45466 ref: "hamburgerBtn", 45467 type: "button",
45468 class: "hamburger-menu-button", 45469 "aria-expanded": $data.hamVisible, 45470 "aria-controls": "main-nav-menu", 45471 "aria-label": "Toggle navigation menu", 45472 onClick: _cache[3] || (_cache[3] = (...args) => $options.toggleHamVisible && $options.toggleHamVisible(...args)) 45473 }, [ 45474 _cache[12] || (_cache[12] = createBaseVNode("span", { class: "hamburger-menu-label visually-hidden" }, "Menu", -1)), 45475 $data.hamVisible ? (openBlock(), createBlock(_component_CoreIconMenuClose, { 45476 key: 0, 45477 "aria-hidden": "true" 45478 })) : (openBlock(), createBlock(_component_CoreIconHamburgerMenu, { 45479 key: 1, 45480 "aria-hidden": "true" 45481 })) 45482 ], 8, _hoisted_12$4) 45483 ]) 45484 ], 2), 45485 $options.isStackedCenter && !$options.isNavMobile ? (openBlock(), createElementBlock("div", _hoisted_13$4, [ 45486 $options.navButton ? (openBlock(), createElementBlock("div", _hoisted_14$4, [ 45487 createVNode(_component_CoreBlock, { 45488 "is-editable": $props.isEditable, 45489 settings: $options.buttonSettings, 45490 onClick: _cache[4] || (_cache[4] = () => $data.hamVisible = false) 45491 }, null, 8, ["is-editable", "settings"]) 45492 ])) : createCommentVNode("", true), 45493 $options.showNavigationImage ? (openBlock(), createElementBlock("div", _hoisted_15$4, [ 45494 createVNode(_component_CoreBlockMainNavImage, { 45495 site: $props.site, 45496 onClick: $options.navClick 45497 }, null, 8, ["site", "onClick"]) 45498 ])) : createCommentVNode("", true) 45499 ])) : createCommentVNode("", true), 45500 $options.isStackedRightDesktop && ($options.navButton || $options.showNavigationImage) ? (openBlock(), createElementBlock("div", _hoisted_16$4, [ 45501 $options.navButton ? (openBlock(), createElementBlock("div", _hoisted_17$3, [ 45502 createVNode(_component_CoreBlock, { 45503 "is-editable": $props.isEditable, 45504 settings: $options.buttonSettings, 45505 onClick: _cache[5] || (_cache[5] = () => $data.hamVisible = false) 45506 }, null, 8, ["is-editable", "settings"]) 45507 ])) : createCommentVNode("", true), 45508 $options.showNavigationImage ? (openBlock(), createElementBlock("div", _hoisted_18$3, [ 45509 createVNode(_component_CoreBlockMainNavImage, { 45510 site: $props.site, 45511 onClick: $options.navClick 45512 }, null, 8, ["site", "onClick"]) 45513 ])) : createCommentVNode("", true) 45514 ])) : createCommentVNode("", true), 45515 $options.hasMoreThanOnePage && (!$options.isStackedCenter || $options.isNavMobile) ? (openBlock(), createElementBlock("ul", { 45516 key: 2, 45517 id: "main-nav-menu", 45518 class: normalizeClass(["navbar_nav navbar_nav--center", { "navbar_nav--center-mobile": $options.isNavMobile }]), 45519 "aria-labelledby": "mainmenulabel", 45520 onClick: _cache[7] || (_cache[7] = (...args) => $options.navClick && $options.navClick(...args)) 45521 }, [ 45522 (openBlock(true), createElementBlock(Fragment, null, renderList($options.pageTree, (page1, pIndex) => { 45523 return openBlock(), createBlock(_component_CoreBlockNavItem, { 45524 key: page1.linkText + page1.linkUrl + pIndex || pIndex, 45525 site: $props.site, 45526 navitem: page1, 45527 class: "navbar_item navbar_item--dropdown", 45528 "is-nav-open": $data.hamVisible, 45529 "is-mobile": $options.isNavMobile, 45530 "is-editable": $props.isEditable, 45531 "is-builder": $props.isBuilder, 45532 onClick: $options.navClick 45533 }, null, 8, ["site", "navitem", "is-nav-open", "is-mobile", "is-editable", "is-builder", "onClick"]); 45534 }), 128)), 45535 $options.navButton && !$options.isStackedRightDesktop ? (openBlock(), createElementBlock("li", _hoisted_19$3, [ 45536 createVNode(_component_CoreBlock, { 45537 "is-editable": $props.isEditable, 45538 settings: $options.buttonSettings, 45539 onClick: _cache[6] || (_cache[6] = () => $data.hamVisible = false) 45540 }, null, 8, ["is-editable", "settings"]) 45541 ])) : createCommentVNode("", true), 45542 $options.showNavigationImage && $options.isNavMobile ? (openBlock(), createElementBlock("li", _hoisted_20$2, [ 45543 createVNode(_component_CoreBlockMainNavImage, { 45544 site: $props.site, 45545 onClick: $options.navClick 45546 }, null, 8, ["site", "onClick"]) 45547 ])) : createCommentVNode("", true) 45548 ], 2)) : createCommentVNode("", true), 45549 $options.showNavigationImage && !$options.isNavMobile && !$options.isStackedCenter && !$options.isStackedRightDesktop ? (openBlock(), createElementBlock("div", _hoisted_21$1, [ 45550 createVNode(_component_CoreBlockMainNavImage, { 45551 site: $props.site, 45552 onClick: $options.navClick 45553 }, null, 8, ["site", "onClick"]) 45554 ])) : createCommentVNode("", true) 45555 ]), 45556 $options.isStackedCenter && !$options.isNavMobile ? (openBlock(), createBlock(_component_CoreBlockCenteredNavBar, { 45557 key: 0, 45558 site: $props.site, 45559 "is-builder": $props.isBuilder, 45560 "is-editable": $props.isEditable, 45561 "is-nav-mobile": $options.isNavMobile, 45562 "color-option": $options.centeredNavColorOption, 45563 "page-tree": $options.pageTree, 45564 "ham-visible": $data.hamVisible 45565 }, null, 8, ["site", "is-builder", "is-editable", "is-nav-mobile", "color-option", "page-tree", "ham-visible"])) : createCommentVNode("", true) 45566 ]) 45567 ], 34); 45568} 45569const __nuxt_component_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$3A, [["render", _sfc_render$3f]]); 45570const CoreBlockMainNav = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 45571 __proto__: null, 45572 default: __nuxt_component_0$2 45573}, Symbol.toStringTag, { value: "Module" })); 45574const _hoisted_1$3y = ["src", "alt"]; 45575const _hoisted_2$3l = { 45576 key: 1, 45577 class: "map-overlay" 45578}; 45579const _sfc_main$3z = { 45580 __name: "CoreBlockMap", 45581 props: { 45582 settings: { 45583 type: Object, 45584 required: true 45585 }, 45586 dataSite: { 45587 type: Object, 45588 required: true 45589 } 45590 }, 45591 setup(__props) { 45592 const props = __props; 45593 const store = useStore(); 45594 const { state } = store; 45595 const useStaticMapFlag = computed( 45596 () => { 45597 var _a, _b; 45598 return (_b = (_a = state == null ? void 0 : state.settings) == null ? void 0 : _a.featureFlags) == null ? void 0 : _b.StaticMap; 45599 } 45600 ); 45601 const mapContainer = ref(); 45602 const map = ref(); 45603 const showInteractiveMap = ref(false); 45604 const loaded = ref(false); 45605 const mapInstance = shallowRef(null); 45606 const mapMarker = ref(null); 45607 const apiKey = ref(null); 45608 onMounted(async () => {
45609 try { 45610 const { useRuntimeConfig: useRuntimeConfig2 } = await __vitePreload(async () => { 45611 const { useRuntimeConfig: useRuntimeConfig3 } = await Promise.resolve().then(() => index); 45612 return { useRuntimeConfig: useRuntimeConfig3 }; 45613 }, true ? void 0 : void 0, import.meta.url); 45614 const config = useRuntimeConfig2(); 45615 apiKey.value = config.public.googleMapsKey; 45616 if (!useStaticMapFlag.value) { 45617 loadInteractiveMap(); 45618 } 45619 } catch { 45620 console.warn( 45621 "Runtime config not available. Google Maps API key should be provided via environment or props." 45622 ); 45623 } 45624 }); 45625 const address = computed(() => props.settings.address || {}); 45626 const line1 = computed(() => renderData(address.value.line1, props.dataSite)); 45627 const line2 = computed(() => renderData(address.value.line2, props.dataSite)); 45628 const city = computed(() => renderData(address.value.city, props.dataSite)); 45629 const stateValue = computed( 45630 () => renderData(address.value.state, props.dataSite) 45631 ); 45632 const zip = computed(() => renderData(address.value.zip, props.dataSite)); 45633 const fullAddress = computed(() => { 45634 return `${line1.value ? line1.value : ""} ${line2.value ? line2.value : ""}, ${city.value ? city.value : ""}, ${stateValue.value ? stateValue.value : ""}, ${zip.value ? zip.value : ""}`; 45635 }); 45636 const staticMapUrl = computed(() => { 45637 if (!apiKey.value || !mapContainer.value) return ""; 45638 const address2 = `${line1.value ? encodeURIComponent(line1.value) : ""} ${line2.value ? encodeURIComponent(line2.value) : ""}, ${city.value ? encodeURIComponent(city.value) : ""}, ${stateValue.value ? encodeURIComponent(stateValue.value) : ""}`; 45639 const zoom = 18; 45640 const scale = mapContainer.value.offsetWidth > 640 ? 2 : 1; 45641 const width = mapContainer.value.offsetWidth > 640 ? Math.floor(mapContainer.value.offsetWidth / 2) : mapContainer.value.offsetWidth || 600; 45642 const height = Math.floor(500 / scale); 45643 const size = `${width}x${height}`; 45644 return `https://maps.googleapis.com/maps/api/staticmap?center=${address2}&markers=color:red%7C${address2}&zoom=${zoom}&size=${size}&scale=${scale}&style=feature:poi|visibility:off&key=${apiKey.value}`; 45645 }); 45646 const mapAlt = computed(() => `Map showing ${city.value}, ${stateValue.value}`); 45647 const handleMapClick = () => { 45648 loadInteractiveMap(); 45649 }; 45650 const handleMapKeydown = (event) => { 45651 if (event.key === "Enter" || event.key === " ") { 45652 event.preventDefault(); 45653 loadInteractiveMap(); 45654 } 45655 }; 45656 const loadInteractiveMap = async () => { 45657 if (!apiKey.value || loaded.value) return; 45658 showInteractiveMap.value = true; 45659 try { 45660 const GoogleMapsLoader = await __vitePreload(() => import("./CJDL-Qke.js"), true ? [] : void 0, import.meta.url); 45661 const loader = new GoogleMapsLoader.Loader({ 45662 apiKey: apiKey.value, 45663 version: "weekly", 45664 libraries: ["marker"] 45665 }); 45666 await loader.load(); 45667 const { Map: Map2, Geocoder, GeocoderStatus, marker, InfoWindow } = google.maps; 45668 mapInstance.value = new Map2(map.value, { 45669 zoom: 18, 45670 mapId: "8a73bae3db62b7306bacbbda" 45671 }); 45672 const geocoder = new Geocoder(); 45673 geocoder.geocode({ address: fullAddress.value }, (results, status) => { 45674 if (status === GeocoderStatus.OK && mapInstance.value) { 45675 const location2 = results[0].geometry.location; 45676 mapInstance.value.setCenter(location2); 45677 mapInstance.value.setZoom(18); 45678 mapMarker.value = new marker.AdvancedMarkerElement({ 45679 map: mapInstance.value, 45680 position: location2, 45681 title: fullAddress.value 45682 }); 45683 const infoWindow = new InfoWindow({ 45684 content: `<div class='poi-info-window'> 45685 <p class='info-address'>${fullAddress.value}</p> 45686 <div> 45687 <a href='https://www.google.com/maps/search/${encodeURIComponent( 45688 fullAddress.value 45689 )}' target='_blank' class='info-map-link' aria-label='open Google Maps in a new tab'>view larger map</a> 45690 | 45691 <a href='https://www.google.com/maps/dir//${encodeURIComponent( 45692 fullAddress.value 45693 )}' target='_blank' class='info-directions-link' aria-label='open Google Maps Directions in a new tab'>get directions</a> 45694 </div> 45695 </div>` 45696 }); 45697 mapMarker.value.addListener("click", () => { 45698 infoWindow.open({ 45699 anchor: mapMarker.value, 45700 map: mapInstance.value 45701 }); 45702 }); 45703 } 45704 }); 45705 loaded.value = true; 45706 } catch (error) { 45707 console.error("Failed to load Google Maps:", error); 45708 } 45709 }; 45710 return (_ctx, _cache) => { 45711 return openBlock(), createElementBlock("div", { 45712 ref_key: "mapContainer", 45713 ref: mapContainer, 45714 class: "block__body" 45715 }, [ 45716 useStaticMapFlag.value && !showInteractiveMap.value ? (openBlock(), createElementBlock("div", { 45717 key: 0, 45718 class: normalizeClass(["block_map block_map--static", { "block_map--disabled": !apiKey.value }]) 45719 }, [ 45720 apiKey.value && staticMapUrl.value ? (openBlock(), createElementBlock("img", { 45721 key: 0, 45722 src: staticMapUrl.value, 45723 alt: mapAlt.value, 45724 class: "static-map-image", 45725 tabindex: "0", 45726 role: "button", 45727 "aria-label": "Click to open interactive map", 45728 onClick: handleMapClick, 45729 onKeydown: handleMapKeydown 45730 }, null, 40, _hoisted_1$3y)) : createCommentVNode("", true), 45731 apiKey.value ? (openBlock(), createElementBlock("div", _hoisted_2$3l, [ 45732 createBaseVNode("button", { 45733 class: "map-overlay-button", 45734 "aria-label": "Open interactive map", 45735 onClick: handleMapClick 45736 }, _cache[0] || (_cache[0] = [ 45737 createBaseVNode("svg", { 45738 width: "24", 45739 height: "24",
45740 viewBox: "0 0 24 24", 45741 fill: "none", 45742 xmlns: "http://www.w3.org/2000/svg" 45743 }, [ 45744 createBaseVNode("path", { 45745 d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z", 45746 fill: "currentColor" 45747 }) 45748 ], -1), 45749 createTextVNode(" Open Interactive Map ") 45750 ])) 45751 ])) : createCommentVNode("", true) 45752 ], 2)) : createCommentVNode("", true), 45753 !useStaticMapFlag.value || showInteractiveMap.value ? (openBlock(), createElementBlock("div", { 45754 key: 1, 45755 ref_key: "map", 45756 ref: map, 45757 class: normalizeClass(["block_map block_map--interactive", { "block_map--disabled": !apiKey.value }]) 45758 }, null, 2)) : createCommentVNode("", true) 45759 ], 512); 45760 }; 45761 } 45762}; 45763const CoreBlockMap = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 45764 __proto__: null, 45765 default: _sfc_main$3z 45766}, Symbol.toStringTag, { value: "Module" })); 45767const _sfc_main$3y = { 45768 name: "CoreBlockMedia", 45769 props: { 45770 settings: { 45771 type: Object, 45772 required: true 45773 }, 45774 isEditable: { 45775 type: Boolean, 45776 default: false 45777 }, 45778 // Builder-only: forwarded to the inner CoreBlock (image/video) to 45779 // enable inline canvas editing. Defaults off so SiteViewer is
45779inert. 45780 inlineEditable: { 45781 type: Boolean, 45782 default: false 45783 }, 45784 // Builder-only: whether inline editing is currently active for this block. 45785 inlineEditing: { 45786 type: Boolean, 45787 default: false 45788 } 45789 }, 45790 setup(props) { 45791 const mediaSrc = computed(() => { 45792 var _a; 45793 return (_a = props.settings) == null ? void 0 : _a.src; 45794 }); 45795 const { mediaType } = useMedia(mediaSrc); 45796 return { 45797 mediaType 45798 }; 45799 } 45800}; 45801function _sfc_render$3e(_ctx, _cache, $props, $setup, $data, $options) { 45802 const _component_CoreBlock = _sfc_main$4x; 45803 return openBlock(), createElementBlock("div", null, [ 45804 createVNode(_component_CoreBlock, { 45805 settings: { ...$props.settings, type: $setup.mediaType }, 45806 "is-editable": $props.isEditable, 45807 "inline-editable": $props.inlineEditable, 45808 "inline-editing": $props.inlineEditing 45809 }, createSlots({ _: 2 }, [ 45810 _ctx.$slots["inline-editor"] ? { 45811 name: "inline-editor", 45812 fn: withCtx((slotData) => [ 45813 renderSlot(_ctx.$slots, "inline-editor", normalizeProps$1(guardReactiveProps(slotData))) 45814 ]), 45815 key: "0" 45816 } : void 0 45817 ]), 1032, ["settings", "is-editable", "inline-editable", "inline-editing"]) 45818 ]); 45819} 45820const CoreBlockMedia = /* @__PURE__ */ _export_sfc(_sfc_main$3y, [["render", _sfc_render$3e]]); 45821const CoreBlockMedia$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 45822 __proto__: null, 45823 default: CoreBlockMedia 45824}, Symbol.toStringTag, { value: "Module" })); 45825const _hoisted_1$3x = { 45826 key: 0, 45827 class: "block__body oembed-container" 45828}; 45829const _hoisted_2$3k = { key: 0 }; 45830const _hoisted_3$c = ["innerHTML"]; 45831const _hoisted_4$9 = { key: 1 }; 45832const _hoisted_5$8 = ["src", "width", "height", "alt"]; 45833const _sfc_main$3x = { 45834 __name: "CoreBlockOEmbed", 45835 props: { 45836 settings: { 45837 type: Object, 45838 required: true 45839 }, 45840 dataSite: { 45841 type: Object, 45842 required: true 45843 } 45844 }, 45845 setup(__props) { 45846 const props = __props; 45847 const config = /* @__PURE__ */ useRuntimeConfig(); 45848 const type = ref(null); 45849 const oEmbed = ref({}); 45850 const emptyContent = ref(false); 45851 const store = useStore(); 45852 const { state } = store; 45853 const baseURL2 = config.public.apiBaseURL || // Generator (Deprecated) 45854 config.public.apiBaseUrl || // SiteViewer 45855 config.public.apiBase || // Builder 45856 "https://localhost:34924/api"; 45857 const oembedSrc = computed(() => { 45858 var _a; 45859 return (_a = props.settings) == null ? void 0 : _a.src; 45860 }); 45861 const componentEnabled = computed(() => { 45862 var _a, _b; 45863 return (_b = (_a = state == null ? void 0 : state.settings) == null ? void 0 : _a.featureFlags) == null ? void 0 : _b.OEmbedComponent; 45864 }); 45865 onMounted(async () => { 45866 await getData2(); 45867 }); 45868 watch(oembedSrc, async () => { 45869 await getData2(); 45870 }); 45871 const getData2 = async () => { 45872 if (componentEnabled.value && oembedSrc.value) { 45873 const encodedUrlParam = encodeURIComponent(oembedSrc.value); 45874 const response = await axios.get( 45875 `${baseURL2}/oembed?brandId=${props.dataSite.brandId}&url=${encodedUrlParam}` 45876 ); 45877 if (response.status === 204) emptyContent.value = true; 45878 else { 45879 emptyContent.value = false; 45880 oEmbed.value = { 45881 html: response.data.html, 45882 url: response.data.url, 45883 width: response.data.width, 45884 height: response.data.height, 45885 title: response.data.title 45886 }; 45887 type.value = response.data.type; 45888 } 45889 } 45890 }; 45891 return (_ctx, _cache) => { 45892 return componentEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_1$3x, [ 45893 emptyContent.value ? (openBlock(), createElementBlock("div", _hoisted_2$3k, "Cannot load oEmbed data")) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [ 45894 type.value === "rich" || type.value === "video" ? (openBlock(), createElementBlock("div", { 45895 key: 0, 45896 innerHTML: oEmbed.value.html 45897 }
45897, null, 8, _hoisted_3$c)) : type.value === "photo" ? (openBlock(), createElementBlock("div", _hoisted_4$9, [ 45898 createBaseVNode("img", { 45899 src: oEmbed.value.url, 45900 width: oEmbed.value.width, 45901 height: oEmbed.value.height, 45902 alt: oEmbed.value.title 45903 }, null, 8, _hoisted_5$8) 45904 ])) : createCommentVNode("", true) 45905 ], 64)) 45906 ])) : createCommentVNode("", true); 45907 }; 45908 } 45909}; 45910const CoreBlockOEmbed = /* @__PURE__ */ _export_sfc(_sfc_main$3x, [["__scopeId", "data-v-9635d32d"]]); 45911const CoreBlockOEmbed$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 45912 __proto__: null, 45913 default: CoreBlockOEmbed 45914}, Symbol.toStringTag, { value: "Module" })); 45915const _sfc_main$3w = { 45916 name: "CoreBlockPencilBanner", 45917 props: { 45918 settings: { 45919 type: Object, 45920 required: true 45921 }, 45922 dataSite: { 45923 type: Object, 45924 default: () => ({}) 45925 }, 45926 isEditable: { 45927 type: Boolean, 45928 default: false 45929 } 45930 }, 45931 setup(props) { 45932 const bannerIsClosed = ref(false); 45933 const bodyCopy = computed(() => { 45934 let copy = props.settings.bodyCopy || ""; 45935 if (!/<\/?[a-z][\s\S]*>/i.test(copy)) copy = `<p>${copy}</p>`; 45936 return renderData(copy, props.dataSite); 45937 }); 45938 const label = computed( 45939 () => renderData(props.settings.buttonText, props.dataSite) 45940 ); 45941 const url = computed(() => { 45942 if (props.settings.buttonLink) { 45943 return renderData(props.settings.buttonLink, props.dataSite); 45944 } 45945 if (props.settings["button-url"]) { 45946 return renderData(props.settings["button-url"], props.dataSite); 45947 } 45948 return null; 45949 }); 45950 return { 45951 bannerIsClosed, 45952 bodyCopy, 45953 label, 45954 url 45955 }; 45956 } 45957}; 45958const _hoisted_1$3w = { 45959 key: 0, 45960 class: "block__body", 45961 role: "banner" 45962}; 45963const _hoisted_2$3j = { class: "block__body-container" }; 45964function _sfc_render$3d(_ctx, _cache, $props, $setup, $data, $options) { 45965 const _component_CoreBlock = _sfc_main$4x; 45966 const _component_CoreIcon = __nuxt_component_1$7; 45967 return !$setup.bannerIsClosed ? (openBlock(), createElementBlock("div", _hoisted_1$3w, [ 45968 createBaseVNode("div", _hoisted_2$3j, [ 45969 createVNode(_component_CoreBlock, { 45970 settings: { type: "rich-text", bodyText: $setup.bodyCopy }, 45971 "is-editable": $props.isEditable 45972 }, null, 8, ["settings", "is-editable"]), 45973 $setup.label ? (openBlock(), createBlock(_component_CoreBlock, { 45974 key: 0, 45975 "is-editable": $props.isEditable, 45976 class: "block__body-container_button", 45977 settings: { 45978 type: "button", 45979 label: $setup.label, 45980 newWindow: $props.settings.newWindow, 45981 url: $setup.url, 45982 icon: "right-arrow", 45983 variants: { 45984 style: "text", 45985 "icon-placement": "icon-right" 45986 } 45987 } 45988 }, null, 8, ["is-editable", "settings"])) : createCommentVNode("", true) 45989 ]), 45990 $props.settings.closeButton && !$setup.bannerIsClosed ? (openBlock(), createElementBlock("div", { 45991 key: 0, 45992 class: "d-flex cursor-pointer", 45993 onClick: _cache[0] || (_cache[0] = ($event) => $setup.bannerIsClosed = true) 45994 }, [ 45995 createVNode(_component_CoreIcon, { icon: "close" }) 45996 ])) : createCommentVNode("", true) 45997 ])) : createCommentVNode("", true); 45998} 45999const CoreBlockPencilBanner = /* @__PURE__ */ _export_sfc(_sfc_main$3w, [["render", _sfc_render$3d]]); 46000const CoreBlockPencilBanner$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 46001 __proto__: null, 46002 default: CoreBlockPencilBanner 46003}, Symbol.toStringTag, { value: "Module" })); 46004const _sfc_main$3v = { 46005 name: "CoreBlockRepeat", 46006 props: { 46007 index: { 46008 type: Number, 46009 default: 0 46010 }, 46011 nestedLevel: { 46012 type: Number, 46013 default: 0 46014 }, 46015 settings: { 46016 type: Object, 46017 required: true 46018 }, 46019 isEditable: { 46020 type: Boolean, 46021 default: false 46022 }, 46023 dataSite: { 46024 type: Object, 46025 required: false 46026 }, 46027 isBuilderMobile: { 46028 type: Boolean, 46029 default: false 46030 } 46031 }, 46032 setup(props) { 46033 const blockChildren = computed(() => { 46034 var _a; 46035 return ((_a = props.settings) == null ? void 0 : _a.blocks) || []; 46036 }); 46037 const hasChildren = computed(() => { 46038 var _a, _b; 46039 return !!((_b = (_a = props.settings) == null ? void 0 : _a.blocks) == null ? void 0 : _b.length); 46040 }); 46041 const nestedLevelNext = computed(() => props.nestedLevel + 1); 46042 const listItems = computed(() => { 46043 if (!props.dataSite) return [{}];
46044 const key = props.settings.dictionaryId; 46045 if (!key) return [{}]; 46046 const out = props.dataSite.dataDictionary[key]; 46047 return out; 46048 }); 46049 function childBlockComponent(index2) { 46050 if (!props.isEditable) { 46051 return "CoreBlock"; 46052 } 46053 if (index2 == 0) return "ForgeControlBlock"; 46054 return "CoreBlock"; 46055 } 46056 const isConditionalVisible = computed(() => { 46057 if (!hasConditionalDisplay.value) return true; 46058 if (!props.dataSite) return true; 46059 if (!props.dataSite.dataDictionary) return true; 46060 const field = props.settings.conditionalDisplay; 46061 const value = props.dataSite.dataDictionary[field]; 46062 if (typeof value == "boolean") { 46063 return value; 46064 } 46065 return true; 46066 }); 46067 const hasConditionalDisplay = computed(() => { 46068 if (!props.settings) { 46069 return false; 46070 } 46071 if ("conditionalDisplay" in props.settings) { 46072 return !!props.settings.conditionalDisplay; 46073 } 46074 return false; 46075 }); 46076 const addIndexToSettings = (settings, idx) => { 46077 return Object.assign( 46078 { 46079 dataDictionaryIndex: idx, 46080 dataDictionaryKey: props.settings.dictionaryId 46081 }, 46082 settings 46083 ); 46084 }; 46085 return { 46086 blockChildren, 46087 hasChildren, 46088 nestedLevelNext, 46089 childBlockComponent, 46090 hasConditionalDisplay, 46091 isConditionalVisible, 46092 listItems, 46093 addIndexToSettings 46094 }; 46095 } 46096}; 46097const _hoisted_1$3v = { class: "block__container block__section_main" }; 46098function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) { 46099 return openBlock(), createElementBlock("div", null, [ 46100 (openBlock(true), createElementBlock(Fragment, null, renderList($setup.listItems, (item, itemIndex) => { 46101 return openBlock(), createElementBlock("div", _hoisted_1$3v, [ 46102 (openBlock(true), createElementBlock(Fragment, null, renderList($setup.blockChildren, (childSettings, childIndex) => { 46103 return openBlock(), createBlock(resolveDynamicComponent($setup.childBlockComponent(itemIndex)), { 46104 key: childSettings.id, 46105 settings: $setup.addIndexToSettings(childSettings, itemIndex), 46106 index: childIndex, 46107 "nested-level": $setup.nestedLevelNext, 46108 "is-editable": $props.isEditable, 46109 "parent-is-horizontal": false, 46110 "is-first-child": !childIndex, 46111 "is-last-child": childIndex >= $setup.blockChildren.length - 1, 46112 "is-builder-mobile": $props.isBuilderMobile 46113 }, null, 8, ["settings", "index", "nested-level", "is-editable", "is-first-child", "is-last-child", "is-builder-mobile"]); 46114 }), 128)) 46115 ]); 46116 }), 256)) 46117 ]); 46118} 46119const CoreBlockRepeat = /* @__PURE__ */ _export_sfc(_sfc_main$3v, [["render", _sfc_render$3c]]); 46120const CoreBlockRepeat$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 46121 __proto__: null, 46122 default: CoreBlockRepeat 46123}, Symbol.toStringTag, { value: "Module" })); 46124const _hoisted_1$3u = ["data-testid"]; 46125const _hoisted_2$3i = { 46126 key: 1, 46127 class: "block__body" 46128}; 46129const _hoisted_3$b = { 46130 key: 2, 46131 class: "block__body" 46132}; 46133const _hoisted_4$8 = ["innerHTML"]; 46134const _hoisted_5$7 = { class: "modal-content" }; 46135const _hoisted_6$5 = { 46136 key: 3, 46137 class: "block__body" 46138}; 46139const _sfc_main$3u = { 46140 __name: "CoreBlockRichText", 46141 props: { 46142 settings: { 46143 type: Object, 46144 required: true 46145 }, 46146 dataSite: { 46147 type: Object, 46148 default: () => ({}) 46149 }, 46150 // Builder-only: enables inline canvas editing capability for this block. 46151 // SiteViewer never sets this, so published sites are unaffected. 46152 inlineEditable: { 46153 type: Boolean, 46154 default: false 46155 }, 46156 // Builder-only: whether inline editing is currently active for this block. 46157 inlineEditing: { 46158 type: Boolean, 46159 default: false 46160 } 46161 }, 46162 setup(__props) { 46163 const props = __props; 46164 const store = useStore(); 46165 const { state } = store; 46166 const useModalsEnabled = computed( 46167 () => { 46168 var _a, _b; 46169 return (_b = (_a = state == null ? void 0 : state.settings) == null ? void 0 : _a.featureFlags) == null ? void 0 : _b.UseModals; 46170 } 46171 ); 46172 const isDialogOpen = ref(false); 46173 const modalPageData = ref(null); 46174 const parseJsonSafe = (value, fallback) => { 46175 if (!value) return fallback;
46176 try { 46177 return typeof value === "string" ? JSON.parse(value) : value; 46178 } catch { 46179 return fallback; 46180 } 46181 }; 46182 const modalSettings = computed( 46183 () => { 46184 var _a; 46185 return parseJsonSafe((_a = modalPageData.value) == null ? void 0 : _a.settings, {}); 46186 } 46187 ); 46188 const modalSize = computed(() => { 46189 var _a; 46190 return ((_a = modalSettings.value) == null ? void 0 : _a.modalSize) || "medium"; 46191 }); 46192 const modalBackgroundClass = computed(() => { 46193 var _a; 46194 const bgColorMap = { 46195 light: "_themed-light", 46196 dark: "_themed-dark", 46197 grey: "_themed-grey" 46198 }; 46199 return bgColorMap[(_a = modalSettings.value) == null ? void 0 : _a.backgroundColor] || ""; 46200 }); 46201 const modalBlocks = computed( 46202 () => { 46203 var _a; 46204 return parseJsonSafe((_a = modalPageData.value) == null ? void 0 : _a.blocks, []); 46205 } 46206 ); 46207 const closeModal = () => { 46208 isDialogOpen.value = false; 46209 modalPageData.value = null; 46210 }; 46211 const handleModalLinkClick = (event) => { 46212 var _a, _b; 46213 if (!useModalsEnabled.value) return; 46214 const target = event.target.closest("a"); 46215 if (!target) return; 46216 const href = target.getAttribute("href"); 46217 if (!(href == null ? void 0 : href.startsWith("modal:"))) return; 46218 event.preventDefault(); 46219 event.stopPropagation(); 46220 const id = Number(href.replace("modal:", "")); 46221 const modalPage = (_b = (_a = props.dataSite) == null ? void 0 : _a.pages) == null ? void 0 : _b.find((p2) => p2.id === id); 46222 if (modalPage) { 46223 modalPageData.value = modalPage; 46224 nextTick(() => { 46225 isDialogOpen.value = true; 46226 }); 46227 } 46228 }; 46229 const itemCheckFunction = (item) => item.type === "copy"; 46230 const { isExpired, processExpiredLinks } = useIsExpired( 46231 () => props.settings, 46232 itemCheckFunction 46233 ); 46234 const replaceUrlBasePathInContent = (content) => { 46235 const config = /* @__PURE__ */ useRuntimeConfig(); 46236 const basePath = config.public.basePath || "/"; 46237 return renderData( 46238 (content == null ? void 0 : content.replace(/href=('|")[/]/gi, `href="${basePath}`)) || "", 46239 getDataSource.value 46240 ); 46241 }; 46242 const getDataSource = computed(() => { 46243 if (props.settings.dataDictionaryIndex === null) { 46244 return props.dataSite; 46245 } 46246 const key = props.settings.dataDictionaryKey; 46247 if (!key) { 46248 return props.dataSite; 46249 } 46250 const arr = props.dataSite.dataDictionary[key]; 46251 if (!arr) { 46252 return props.dataSite; 46253 } 46254 const arrValue = arr[props.settings.dataDictionaryIndex]; 46255 const copy = cloneDeep(props.dataSite); 46256 if (typeof arrValue === "string") { 46257 return Object.assign(copy, { 46258 value: arrValue 46259 }); 46260 } 46261 const out = Object.assign(copy, arrValue); 46262 return out; 46263 }); 46264 const blockContent = computed(() => { 46265 var _a; 46266 const content = ((_a = props.settings) == null ? void 0 : _a.bodyText) ? replaceUrlBasePathInContent(props.settings.bodyText) : replaceUrlBasePathInContent(props.settings.richText); 46267 return processExpiredLinks(content); 46268 }); 46269 const { editableSource, showInlineEditor } = useInlineTextEdit(props, { 46270 isExpired 46271 }); 46272 return (_ctx, _cache) => { 46273 const _component_CoreBlock = _sfc_main$4x; 46274 const _component_CoreBlockDialog = __nuxt_component_3$1; 46275 return unref(isExpired) ? (openBlock(), createElementBlock("div", { 46276 key: 0, 46277 "data-testid": `${__props.settings.type}-expired` 46278 }, null, 8, _hoisted_1$3u)) : unref(showInlineEditor) ? (openBlock(), createElementBlock("div", _hoisted_2$3i, [ 46279 createBaseVNode("div", { 46280 class: "block__body_inline-edit", 46281 onMousedown: _cache[0] || (_cache[0] = withModifiers(() => { 46282 }, ["stop"])), 46283 onClick: _cache[1] || (_cache[1] = withModifiers(() => { 46284 }, ["stop"])) 46285 }, [ 46286 renderSlot(_ctx.$slots, "inline-editor", { html: unref(editableSource) }) 46287 ], 32) 46288 ])) : blockContent.value ? (openBlock(), createElementBlock("div", _hoisted_3$b, [ 46289 createBaseVNode("div", { 46290 onClick: handleModalLinkClick, 46291 innerHTML: blockContent.value 46292 }, null, 8, _hoisted_4$8), 46293 useModalsEnabled.value && modalPageData.value ? (openBlock(), createBlock(_component_CoreBlockDialog, { 46294 key: 0, 46295 show: isDialogOpen.value, 46296 type: "modal",
46297 class: normalizeClass(`modal-size-${modalSize.value} block ${modalBackgroundClass.value}`), 46298 onModalClose: closeModal 46299 }, { 46300 default: withCtx(() => [ 46301 createBaseVNode("div", _hoisted_5$7, [ 46302 (openBlock(true), createElementBlock(Fragment, null, renderList(modalBlocks.value, (block, index2) => { 46303 return openBlock(), createBlock(_component_CoreBlock, { 46304 key: block.id || index2, 46305 settings: block, 46306 index: index2, 46307 "data-site": __props.dataSite 46308 }, null, 8, ["settings", "index", "data-site"]); 46309 }), 128)) 46310 ]) 46311 ]), 46312 _: 1 46313 }, 8, ["show", "class"])) : createCommentVNode("", true) 46314 ])) : (openBlock(), createElementBlock("div", _hoisted_6$5)); 46315 }; 46316 } 46317}; 46318const CoreBlockRichText = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 46319 __proto__: null, 46320 default: _sfc_main$3u 46321}, Symbol.toStringTag, { value: "Module" })); 46322const _sfc_main$3t = { 46323 name: "CoreBlockRows", 46324 props: { 46325 index: { 46326 type: Number, 46327 default: 0 46328 }, 46329 nestedLevel: { 46330 type: Number, 46331 default: 0 46332 }, 46333 settings: { 46334 type: Object, 46335 required: true 46336 }, 46337 isEditable: { 46338 type: Boolean, 46339 default: false 46340 }, 46341 dataSite: { 46342 type: Object, 46343 default: null 46344 }, 46345 isBuilderMobile: { 46346 type: Boolean, 46347 default: false 46348 }, 46349 isFirstPageLevelBlock: { 46350 type: Boolean, 46351 default: void 0 46352 }, 46353 isFirstPageLevelPosition: { 46354 type: Boolean, 46355 default: void 0 46356 }, 46357 ...inlineMediaEditProps 46358 }, 46359 setup(props) { 46360 const imageComponent = ref(null); 46361 const eMoneyPlayerRef = ref(null); 46362 const { showInlineEditor } = useInlineMediaEdit(props, { 46363 mediaKey: "backgroundMediaSrc" 46364 }); 46365 const { 46366 croppedSrc, 46367 mediaBackgroundPosition, 46368 backgroundMediaFocal, 46369 backgroundMediaCrop, 46370 imageSrc: mediaSrc, 46371 updateCroppedImage 46372 } = useImageProperties(props, "backgroundMediaSrc", imageComponent); 46373 const { 46374 isVideo: mediaIsVideo, 46375 isImage: mediaIsImg, 46376 isEMoney: isEMoneyUrl, 46377 videoAutoPlayUrl, 46378 videoLoopUrl 46379 } = useMedia(mediaSrc); 46380 const componentId = Math.random().toString(36).substr(2, 9); 46381 const htmlVideoId = "jwplayer-script-row-" + Math.random().toString(36).substr(2, 9); 46382 const canUseDom = typeof window !== "undefined" && typeof document !== "undefined"; 46383 const playerId = computed(() => { 46384 if (!isEMoneyUrl.value) return ""; 46385 return mediaHelper.checkIfHasPlayerId(mediaSrc.value); 46386 }); 46387 const { isMobile } = useIsMobile(); 46388 const isMobileView = computed( 46389 () => props.isBuilderMobile || isMobile.value 46390 ); 46391 const { 46392 applyOffset: applyNavOffset, 46393 insetsOwnContent: navOffsetInsets, 46394 isFirstPageLevelBlockFor, 46395 isFirstPageLevelPositionFor 46396 } = useBlockNavOffset(props); 46397 const blockChildren = computed(() => { 46398 var _a; 46399 return ((_a = props.settings) == null ? void 0 : _a.blocks) || []; 46400 }); 46401 const blockVariants = computed(() => { 46402 var _a; 46403 return Object.entries(((_a = props.settings) == null ? void 0 : _a.variants) || {}).map( 46404 ([key, value]) => { 46405 return { 46406 key, 46407 value 46408 }; 46409 } 46410 ); 46411 }); 46412 const applyOverlay = computed(() => { 46413 var _a, _b; 46414 return ((_a = props.settings) == null ? void 0 : _a["overlay-toggle"]) || ((_b = props.settings) == null ? void 0 : _b["gradient-toggle"]); 46415 }); 46416 const legacyOverlayClasses = computed(() => { 46417 var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j; 46418 const isNewOverlayToggled = ((_a = props.settings) == null ? void 0 : _a["overlay-toggle"]) !== void 0 || ((_b = props.settings) == null ? void 0 : _b["gradient-toggle"]) !== void 0; 46419 if (isNewOverlayToggled) return false; 46420 return { 46421 "row-overlay": ((_c = props.settings) == null ? void 0 : _c["overlay-show"]) || ((_e = (_d = props.settings) == null ? void 0 : _d.variants) == null ? void 0 : _e["bg-overlay"]) ? (_g = (_f = props.settings) == null ? void 0 : _f.variants) == null ? void 0 : _g["bg-overlay"] : null, 46422 "row-gradient": ((_h = props.settings) == null ? void 0 : _h["gradient-show"]) ? (_j = (_i = props.settings) == null ? void 0 : _i.variants) == null ? void 0 : _j["bg-gradient"] : null 46423 }; 46424 });
46425 const overlayClasses = computed(() => { 46426 var _a, _b, _c, _d, _e, _f, _g, _h; 46427 if (!((_a = props.settings) == null ? void 0 : _a["overlay-toggle"]) && !((_b = props.settings) == null ? void 0 : _b["gradient-toggle"])) 46428 return false; 46429 return { 46430 "row-overlay": ((_c = props.settings) == null ? void 0 : _c["overlay-toggle"]) && ((_e = (_d = props.settings) == null ? void 0 : _d.variants) == null ? void 0 : _e["bg-overlay"]), 46431 "row-gradient": ((_f = props.settings) == null ? void 0 : _f["gradient-toggle"]) && ((_h = (_g = props.settings) == null ? void 0 : _g.variants) == null ? void 0 : _h["bg-gradient"]) 46432 }; 46433 }); 46434 const hasChildren = computed(() => { 46435 var _a, _b; 46436 return !!((_b = (_a = props.settings) == null ? void 0 : _a.blocks) == null ? void 0 : _b.length); 46437 }); 46438 const nestedLevelNext = computed(() => props.nestedLevel + 1); 46439 const bodyClasses = computed(() => { 46440 const classList = [ 46441 "block__body", 46442 ...blockVariants.value.map((variant) => { 46443 return `${variant.key}-${variant.value}`; 46444 }) 46445 ]; 46446 if (!hasChildren.value) { 46447 classList.push("block__body--empty"); 46448 } 46449 return [...classList]; 46450 }); 46451 const bodyStyles = computed(() => { 46452 var _a, _b, _c; 46453 const mobileRowSizeShow = (_a = props.settings) == null ? void 0 : _a.mobileRowSizeShow; 46454 const mobileRowSizeHeight = (_b = props.settings) == null ? void 0 : _b.mobileRowSizeHeight; 46455 const formatHeight = (height) => { 46456 if (!height || height === "auto") return height; 46457 if (typeof height === "number" || /^\d+$/.test(String(height))) { 46458 return `${height}px`; 46459 } 46460 return height; 46461 }; 46462 let rowHeight = isMobileView.value && mobileRowSizeShow === true && mobileRowSizeHeight ? formatHeight(mobileRowSizeHeight) : formatHeight((_c = props.settings) == null ? void 0 : _c.rowHeight) || "100%"; 46463 if (applyNavOffset.value && navOffsetInsets.value && rowHeight !== "auto" && rowHeight !== "100%") { 46464 rowHeight = `calc(${rowHeight} + var(--_core__nav-offset_height-bump, 0px))`; 46465 } 46466 if (mediaIsImg.value) { 46467 return { 46468 "background-image": `url('${croppedSrc.value}')`, 46469 "background-position": mediaBackgroundPosition.value, 46470 "background-repeat": "no-repeat", 46471 "background-size": "cover", 46472 width: "100%", 46473 "min-height": rowHeight 46474 }; 46475 } 46476 return { 46477 "min-height": rowHeight 46478 }; 46479 }); 46480 const childBlockComponent = computed( 46481 () => props.isEditable ? "ForgeControlBlock" : "CoreBlock" 46482 ); 46483 const isConditionalVisible = computed(() => { 46484 if (!hasConditionalDisplay.value) return true; 46485 if (!props.dataSite) return true; 46486 if (!props.dataSite.dataDictionary) return true; 46487 const field = props.settings.conditionalDisplay; 46488 const value = props.dataSite.dataDictionary[field]; 46489 if (typeof value == "boolean") { 46490 return value; 46491 } 46492 return true; 46493 }); 46494 const hasConditionalDisplay = computed(() => { 46495 if (!props.settings) { 46496 return false; 46497 } 46498 if ("conditionalDisplay" in props.settings) { 46499 return !!props.settings.conditionalDisplay; 46500 } 46501 return false; 46502 }); 46503 const fullVideoSrc = computed(() => { 46504 if (!mediaIsVideo.value) return mediaSrc.value; 46505 if (props.settings.autoPlay && props.settings.loop) 46506 return videoLoopUrl.value; 46507 if (props.settings.autoPlay) return videoAutoPlayUrl.value; 46508 return mediaSrc.value; 46509 }); 46510 const removeLoadedVideoScript = () => { 46511 if (!canUseDom) return; 46512 const existingVideoScript = document.getElementById(htmlVideoId); 46513 if (existingVideoScript) { 46514 existingVideoScript.parentNode.removeChild(existingVideoScript); 46515 } 46516 }; 46517 const loadEmoneyPlayer = async () => { 46518 if (!canUseDom) return; 46519 if (!isEMoneyUrl.value || !playerId.value || !mediaSrc.value) 46520 return; 46521 await ensureJwLibraryLoaded(); 46522 const container = eMoneyPlayerRef.value; 46523 if (!container) return; 46524 const cloneExistingPlayer = () => { 46525 const allPlayersWithId2 = document.querySelectorAll( 46526 `[id="${playerId.value}"]` 46527 ); 46528 for (const player of allPlayersWithId2) { 46529 if (player !== container && player.innerHTML && (player.innerHTML.includes("jwplayer") || player.querySelector("video, iframe"))) { 46530 const clone = player.cloneNode(true); 46531 const cloneId = `${playerId.value}-${componentId}`; 46532 clone.id = cloneId; 46533 const nestedElements = clone.querySelectorAll( 46534 `[id="${playerId.value}"]` 46535 );
46536 nestedElements.forEach((el, index2) => { 46537 el.id = `${cloneId}-${index2}`; 46538 }); 46539 container.innerHTML = ""; 46540 container.appendChild(clone); 46541 return true; 46542 } 46543 } 46544 return false; 46545 }; 46546 const waitForCloneFromExistingPlayer = (timeoutMs = 2e3) => { 46547 return new Promise((resolve2) => { 46548 if (cloneExistingPlayer()) { 46549 resolve2(true); 46550 return; 46551 } 46552 const observer = new MutationObserver(() => { 46553 if (cloneExistingPlayer()) { 46554 cleanup(); 46555 resolve2(true); 46556 } 46557 }); 46558 const cleanup = () => { 46559 observer.disconnect(); 46560 clearTimeout(timeoutId); 46561 }; 46562 const timeoutId = setTimeout(() => { 46563 cleanup(); 46564 resolve2(cloneExistingPlayer()); 46565 }, timeoutMs); 46566 observer.observe(document.body, { 46567 childList: true, 46568 subtree: true 46569 }); 46570 }); 46571 }; 46572 if (cloneExistingPlayer()) return; 46573 const allPlayersWithId = document.querySelectorAll( 46574 `[id="${playerId.value}"]` 46575 ); 46576 const firstPlayerWithId = allPlayersWithId[0]; 46577 if (firstPlayerWithId && firstPlayerWithId !== container) { 46578 await waitForJwPlayerReadyById(playerId.value); 46579 await waitForCloneFromExistingPlayer(); 46580 return; 46581 } 46582 removeLoadedVideoScript(); 46583 const script = document.createElement("script"); 46584 script.id = htmlVideoId; 46585 script.src = mediaSrc.value; 46586 container.insertAdjacentElement("afterend", script); 46587 }; 46588 watch( 46589 [mediaSrc, playerId, isEMoneyUrl], 46590 async ([src, id, isEMoney]) => { 46591 if (!canUseDom) return; 46592 if (!src || !isEMoney || !id) { 46593 removeLoadedVideoScript(); 46594 return; 46595 } 46596 await loadEmoneyPlayer(); 46597 }, 46598 { immediate: true } 46599 ); 46600 onMounted(async () => { 46601 if (isEMoneyUrl.value && playerId.value) { 46602 await loadEmoneyPlayer(); 46603 } 46604 }); 46605 onBeforeUnmount(() => { 46606 removeLoadedVideoScript(); 46607 }); 46608 return { 46609 showInlineEditor, 46610 fullVideoSrc, 46611 eMoneyPlayerRef, 46612 imageComponent, 46613 blockChildren, 46614 blockVariants, 46615 applyOverlay, 46616 legacyOverlayClasses, 46617 overlayClasses, 46618 hasChildren, 46619 nestedLevelNext, 46620 bodyClasses, 46621 bodyStyles, 46622 mediaIsImg, 46623 mediaSrc, 46624 croppedSrc, 46625 mediaBackgroundPosition, 46626 backgroundMediaCrop, 46627 backgroundMediaFocal, 46628 childBlockComponent, 46629 mediaIsVideo, 46630 isEMoneyUrl, 46631 playerId, 46632 updateCroppedImage, 46633 hasConditionalDisplay, 46634 isConditionalVisible, 46635 navOffsetInsets, 46636 isFirstPageLevelBlockFor, 46637 isFirstPageLevelPositionFor, 46638 isMobile 46639 }; 46640 } 46641}; 46642const _hoisted_1$3t = { 46643 key: 2, 46644 class: "video-media video-media-emoney" 46645}; 46646const _hoisted_2$3h = ["id"]; 46647const _hoisted_3$a = ["src"]; 46648const _hoisted_4$7 = { 46649 key: 4, 46650 class: "block__inline-media" 46651}; 46652function _sfc_render$3b(_ctx, _cache, $props, $setup, $data, $options) { 46653 const _component_CoreBlockImageCropped = __nuxt_component_0$8; 46654 return $setup.isConditionalVisible ? (openBlock(), createElementBlock("div", { 46655 key: 0, 46656 class: normalizeClass([$setup.bodyClasses, $setup.legacyOverlayClasses]), 46657 style: normalizeStyle($setup.bodyStyles) 46658 }, [ 46659 $setup.applyOverlay ? (openBlock(), createElementBlock("div", { 46660 key: 0, 46661 class: normalizeClass($setup.overlayClasses) 46662 }, null, 2)) : createCommentVNode("", true), 46663 $setup.mediaSrc && !$setup.mediaIsVideo ? (openBlock(), createBlock(_component_CoreBlockImageCropped, { 46664 key: 1, 46665 "image-src": $setup.mediaSrc, 46666 "media-metadata": $setup.backgroundMediaCrop, 46667 onLoaded: $setup.updateCroppedImage 46668 }, null, 8, ["image-src", "media-metadata", "onLoaded"])) : createCommentVNode("", true), 46669 $setup.mediaIsVideo && $setup.isEMoneyUrl && $setup.playerId ? (openBlock(), createElementBlock("div", _hoisted_1$3t, [ 46670 createBaseVNode("div", { 46671 id: $setup.playerId, 46672 ref: "eMoneyPlayerRef" 46673 }, null, 8, _hoisted_2$3h) 46674 ])) : $setup.mediaIsVideo ? (openBlock(), createElementBlock("iframe", { 46675 key: 3, 46676 width: "100%", 46677 height: "100%", 46678 class: "video-media", 46679 src: $setup.fullVideoSrc, 46680 title: "Video player", 46681 frameborder: "0", 46682 allow: "accelerometer;autoplay;clipboard-write;encrypted-media;gyroscope;picture-in-picture;web-share", 46683 allowfullscreen: "" 46684 }, null, 8, _hoisted_3$a)) : createCommentVNode("", true), 46685 $setup.showInlineEditor ? (openBlock(), createElementBlock("div", _hoisted_4$7, [ 46686 renderSlot(_ctx.$slots, "inline-editor", { field: "backgroundMediaSrc" }) 46687 ])) : createCommentVNode("", true), 46688 createBaseVNode("div", { 46689 class: normalizeClass([ 46690 "block__container", 46691 "block__section_main", 46692 { 46693 "block__section_main--has-video": $setup.mediaIsVideo && !$props.isEditable 46694 } 46695 ]) 46696 }, [ 46697 (openBlock(true), createElementBlock(Fragment, null, renderList($setup.blockChildren, (childSettings, childIndex) => { 46698 return openBlock(), createBlock(resolveDynamicComponent($setup.childBlockComponent), { 46699 key: childSettings.id, 46700 settings: childSettings, 46701 index: childIndex, 46702 "nested-level": $setup.nestedLevelNext, 46703 "is-editable": $props.isEditable, 46704 "parent-is-horizontal": false, 46705 "is-first-child": !childIndex, 46706 "is-last-child": childIndex >= $setup.blockChildren.length - 1, 46707 "is-builder-mobile": $props.isBuilderMobile, 46708 "is-first-page-level-block": $setup.isFirstPageLevelBlockFor(childSettings), 46709 "is-first-page-level-position": $setup.isFirstPageLevelPositionFor(childSettings) 46710 }, null, 8, ["settings", "index", "nested-level", "is-editable", "is-first-child", "is-last-child", "is-builder-mobile", "is-first-page-level-block", "is-first-page-level-position"]); 46711 }), 128)) 46712 ], 2) 46713 ], 6)) : createCommentVNode("", true); 46714} 46715const CoreBlockRows = /* @__PURE__ */ _export_sfc(_sfc_main$3t, [["render", _sfc_render$3b]]); 46716const CoreBlockRows$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 46717 __proto__: null, 46718 default: CoreBlockRows 46719}, Symbol.toStringTag, { value: "Module" })); 46720const _sfc_main$3s = { 46721 name: "CoreIconFacebook", 46722 props: { 46723 settings: { 46724 type: Object, 46725 required: false 46726 } 46727 }, 46728 computed: { 46729 alt() { 46730 var _a, _b; 46731 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 46732 }, 46733 id() { 46734 var _a, _b; 46735 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 46736 } 46737 } 46738}; 46739const _hoisted_1$3s = ["aria-labelledby", "aria-label"]; 46740const _hoisted_2$3g = ["id"]; 46741function _sfc_render$3a(_ctx, _cache, $props, $setup, $data, $options) { 46742 return openBlock(), createElementBlock("svg", { 46743 width: "24", 46744 height: "24", 46745 class: "facebookicon",
46746 viewBox: "0 0 24 24", 46747 fill: "none", 46748 xmlns: "http://www.w3.org/2000/svg", 46749 role: "img", 46750 "aria-labelledby": `icon-title-${$options.id}`, 46751 "aria-label": $options.alt 46752 }, [ 46753 createBaseVNode("title", { 46754 id: `icon-title-${$options.id}` 46755 }, toDisplayString($options.alt), 9, _hoisted_2$3g), 46756 _cache[0] || (_cache[0] = createBaseVNode("path", { 46757 d: "M12 0C5.373 0 0 5.373 0 12C0 18.627 5.373 24 12 24C18.627 24 24 18.627 24 12C24 5.373 18.627 0 12 0ZM15 8H13.65C13.112 8 13 8.221 13 8.778V10H15L14.791 12H13V19H10V12H8V10H10V7.692C10 5.923 10.931 5 13.029 5H15V8Z", 46758 fill: "currentColor" 46759 }, null, -1)) 46760 ], 8, _hoisted_1$3s); 46761} 46762const __nuxt_component_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$3s, [["render", _sfc_render$3a]]); 46763const CoreIconFacebook = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 46764 __proto__: null, 46765 default: __nuxt_component_0$1 46766}, Symbol.toStringTag, { value: "Module" })); 46767const _sfc_main$3r = { 46768 name: "CoreIconTwitter", 46769 props: { 46770 settings: { 46771 type: Object, 46772 required: false 46773 } 46774 }, 46775 computed: { 46776 alt() { 46777 var _a, _b; 46778 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 46779 }, 46780 id() { 46781 var _a, _b; 46782 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 46783 }, 46784 ariaAttrs() { 46785 const value = this.settings && this.settings["aria-label"] ? this.settings["aria-label"] : ""; 46786 return { 46787 "aria-label": `Twitter${value ? ` ${value}` : ""}` 46788 }; 46789 } 46790 } 46791}; 46792const _hoisted_1$3r = ["aria-label"]; 46793function _sfc_render$39(_ctx, _cache, $props, $setup, $data, $options) { 46794 return openBlock(), createElementBlock("svg", { 46795 width: "24", 46796 height: "24", 46797 viewBox: "0 0 24 24", 46798 class: "twittericon", 46799 fill: "none", 46800 xmlns: "http://www.w3.org/2000/svg", 46801 role: "img", 46802 "aria-label": $options.ariaAttrs["aria-label"] 46803 }, [ 46804 createBaseVNode("title", null, toDisplayString($options.alt), 1), 46805 _cache[0] || (_cache[0] = createBaseVNode("path", { 46806 d: "M12 0C5.373 0 0 5.373 0 12C0 18.627 5.373 24 12 24C18.627 24 24 18.627 24 12C24 5.373 18.627 0 12 0ZM18.066 9.645C18.249 13.685 15.236 18.189 9.902 18.189C8.28 18.189 6.771 17.713 5.5 16.898C7.024 17.078 8.545 16.654 9.752 15.709C8.496 15.686 7.435 14.855 7.068 13.714C7.519 13.8 7.963 13.775 8.366 13.665C6.985 13.387 6.031 12.143 6.062 10.812C6.45 11.027 6.892 11.156 7.363 11.171C6.084 10.316 5.722 8.627 6.474 7.336C7.89 9.074 10.007 10.217 12.394 10.337C11.975 8.541 13.338 6.81 15.193 6.81C16.018 6.81 16.765 7.159 17.289 7.717C17.943 7.589 18.559 7.349 19.113 7.02C18.898 7.691 18.443 8.253 17.85 8.609C18.431 8.539 18.985 8.385 19.499 8.156C19.115 8.734 18.629 9.24 18.066 9.645Z", 46807 fill: "currentColor" 46808 }, null, -1)) 46809 ], 8, _hoisted_1$3r); 46810} 46811const __nuxt_component_1$2 = /* @__PURE__ */ _export_sfc(_sfc_main$3r, [["render", _sfc_render$39]]); 46812const CoreIconTwitter = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 46813 __proto__: null, 46814 default: __nuxt_component_1$2 46815}, Symbol.toStringTag, { value: "Module" })); 46816const _sfc_main$3q = { 46817 name: "CoreIconLinkedin", 46818 props: { 46819 settings: { 46820 type: Object, 46821 required: false 46822 } 46823 }, 46824 computed: { 46825 alt() { 46826 var _a, _b; 46827 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 46828 }, 46829 id() { 46830 var _a, _b; 46831 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 46832 } 46833 } 46834}; 46835const _hoisted_1$3q = ["aria-labelledby", "aria-label"]; 46836const _hoisted_2$3f = ["id"]; 46837function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) { 46838 return openBlock(), createElementBlock("svg", { 46839 width: "24", 46840 height: "24", 46841 viewBox: "0 0 24 24", 46842 class: "linkedinicon", 46843 fill: "none", 46844 xmlns: "http://www.w3.org/2000/svg", 46845 role: "img", 46846 "aria-labelledby": `icon-title-${$options.id}`, 46847 "aria-label": $options.alt 46848 }, [ 46849 createBaseVNode("title", { 46850 id: `icon-title-${$options.id}` 46851 }, toDisplayString($options.alt), 9, _hoisted_2$3f), 46852 _cache[0] || (_cache[0] = createBaseVNode("path", { 46853 "fill-rule": "evenodd", 46854 "clip-rule": "evenodd", 46855 d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24ZM6.5625 7.75C7.41875 7.75 8.1125 7.05062 8.1125 6.1875C8.1125 5.325 7.41875 4.625 6.5625 4.625C5.70625 4.625 5.0125 5.325 5.0125 6.1875C5.0125 7.05062 5.70625 7.75 6.5625 7.75ZM5 19V9H8.125V19H5ZM10.0087 9H13.1138V10.3469C14.4237 7.9225 20 7.74312 20 12.6681V19H16.8825V13.7506C16.8825 10.593
468551 13.1144 10.8319 13.1144 13.7506V19H10.0087V9Z", 46856 fill: "currentColor" 46857 }, null, -1)) 46858 ], 8, _hoisted_1$3q); 46859} 46860const __nuxt_component_2 = /* @__PURE__ */ _export_sfc(_sfc_main$3q, [["render", _sfc_render$38]]); 46861const CoreIconLinkedin = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 46862 __proto__: null, 46863 default: __nuxt_component_2 46864}, Symbol.toStringTag, { value: "Module" })); 46865const _sfc_main$3p = { 46866 name: "CoreIconInstagram", 46867 props: { 46868 settings: { 46869 type: Object, 46870 required: false 46871 } 46872 }, 46873 computed: { 46874 alt() { 46875 var _a, _b; 46876 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 46877 }, 46878 id() { 46879 var _a, _b; 46880 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 46881 } 46882 } 46883}; 46884const _hoisted_1$3p = ["aria-labelledby", "aria-label"]; 46885const _hoisted_2$3e = ["id"]; 46886function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) { 46887 return openBlock(), createElementBlock("svg", { 46888 width: "24", 46889 height: "24", 46890 viewBox: "0 0 24 24", 46891 class: "instagramicon", 46892 fill: "none", 46893 xmlns: "http://www.w3.org/2000/svg", 46894 role: "img", 46895 "aria-labelledby": `icon-title-${$options.id}`, 46896 "aria-label": $options.alt 46897 }, [ 46898 createBaseVNode("title", { 46899 id: `icon-title-${$options.id}` 46900 }, toDisplayString($options.alt), 9, _hoisted_2$3e), 46901 _cache[0] || (_cache[0] = createStaticVNode('<defs><radialGradient id="rg" r="150%" cx="30%" cy="107%"><stop stop-color="#fdf497" offset="0"></stop><stop stop-color="#fdf497" offset="0.05"></stop><stop stop-color="#fd5949" offset="0.45"></stop><stop stop-color="#d6249f" offset="0.6"></stop><stop stop-color="#285AEB" offset="0.9"></stop></radialGradient></defs><path d="M14.829 6.302C14.091 6.268 13.869 6.262 12 6.262C10.131 6.262 9.91 6.269 9.172 6.302C7.273 6.389 6.389 7.288 6.302 9.172C6.269 9.91 6.261 10.131 6.261 12C6.261 13.869 6.269 14.09 6.302 14.829C6.389 16.708 7.269 17.612 9.172 17.699C9.909 17.732 10.131 17.74 12 17.74C13.87 17.74 14.091 17.733 14.829 17.699C16.728 17.613 17.611 16.711 17.699 14.829C17.732 14.091 17.739 13.869 17.739 12C17.739 10.131 17.732 9.91 17.699 9.172C17.611 7.289 16.726 6.389 14.829 6.302ZM12 15.595C10.015 15.595 8.405 13.986 8.405 12C8.405 10.015 10.015 8.406 12 8.406C13.985 8.406 15.595 10.015 15.595 12C15.595 13.985 13.985 15.595 12 15.595ZM15.737 9.104C15.273 9.104 14.897 8.728 14.897 8.264C14.897 7.8 15.273 7.424 15.737 7.424C16.201 7.424 16.577 7.8 16.577 8.264C16.577 8.727 16.201 9.104 15.737 9.104ZM14.333 12C14.333 13.289 13.288 14.333 12 14.333C10.712 14.333 9.667 13.289 9.667 12C9.667 10.711 10.712 9.667 12 9.667C13.288 9.667 14.333 10.711 14.333 12ZM12 0C5.373 0 0 5.373 0 12C0 18.627 5.373 24 12 24C18.627 24 24 18.627 24 12C24 5.373 18.627 0 12 0ZM18.958 14.886C18.843 17.431 17.426 18.841 14.887 18.958C14.14 18.992 13.901 19 12 19C10.099 19 9.861 18.992 9.114 18.958C6.57 18.841 5.159 17.429 5.042 14.886C5.008 14.14 5 13.901 5 12C5 10.099 5.008 9.861 5.042 9.114C5.159 6.57 6.571 5.159 9.114 5.043C9.861 5.008 10.099 5 12 5C13.901 5 14.14 5.008 14.887 5.043C17.432 5.16 18.844 6.575 18.958 9.114C18.992 9.861 19 10.099 19 12C19 13.901 18.992 14.14 18.958 14.886Z"></path>', 2)) 46902 ], 8, _hoisted_1$3p); 46903} 46904const __nuxt_component_3 = /* @__PURE__ */ _export_sfc(_sfc_main$3p, [["render", _sfc_render$37]]); 46905const CoreIconInstagram = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 46906 __proto__: null, 46907 default: __nuxt_component_3 46908}, Symbol.toStringTag, { value: "Module" })); 46909const _sfc_main$3o = { 46910 name: "CoreIconYoutube", 46911 props: { 46912 settings: { 46913 type: Object, 46914 required: false 46915 } 46916 }, 46917 computed: { 46918 alt() { 46919 var _a, _b; 46920 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 46921 }, 46922 id() { 46923 var _a, _b; 46924 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 46925 } 46926 } 46927}; 46928const _hoisted_1$3o = ["aria-labelledby", "aria-label"]; 46929const _hoisted_2$3d = ["id"]; 46930function _sfc_render$36(_ctx, _cache, $props, $setup, $data, $options) { 46931 return openBlock(), createElementBlock("svg", { 46932 width: "24", 46933 height: "24", 46934 class: "youtubeicon",
46935 viewBox: "0 0 24 24", 46936 fill: "none", 46937 xmlns: "http://www.w3.org/2000/svg", 46938 role: "img", 46939 "aria-labelledby": `icon-title-${$options.id}`, 46940 "aria-label": $options.alt 46941 }, [ 46942 createBaseVNode("title", { 46943 id: `icon-title-${$options.id}` 46944 }, toDisplayString($options.alt), 9, _hoisted_2$3d), 46945 _cache[0] || (_cache[0] = createBaseVNode("path", { 46946 d: "M12 0C5.373 0 0 5.373 0 12C0 18.627 5.373 24 12 24C18.627 24 24 18.627 24 12C24 5.373 18.627 0 12 0ZM16.441 16.892C14.339 17.036 9.657 17.036 7.558 16.892C5.282 16.736 5.017 15.622 5 12C5.017 8.371 5.285 7.264 7.558 7.108C9.657 6.964 14.34 6.964 16.441 7.108C18.718 7.264 18.982 8.378 19 12C18.982 15.629 18.715 16.736 16.441 16.892ZM10 9.658L14.917 11.996L10 14.342V9.658Z", 46947 fill: "currentColor" 46948 }, null, -1)) 46949 ], 8, _hoisted_1$3o); 46950} 46951const __nuxt_component_4 = /* @__PURE__ */ _export_sfc(_sfc_main$3o, [["render", _sfc_render$36]]); 46952const CoreIconYoutube = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 46953 __proto__: null, 46954 default: __nuxt_component_4 46955}, Symbol.toStringTag, { value: "Module" })); 46956const _sfc_main$3n = { 46957 name: "CoreBlockSocialLinks", 46958 props: { 46959 settings: { 46960 type: Object, 46961 required: true 46962 }, 46963 dataSite: { 46964 type: Object, 46965 default: () => ({}) 46966 } 46967 }, 46968 setup(props) { 46969 const blockHeadline = computed(() => { 46970 var _a; 46971 if (!((_a = props.settings) == null ? void 0 : _a["headline-show"])) return null; 46972 return props.settings.headline || null; 46973 }); 46974 const blockUsername = computed(() => { 46975 var _a; 46976 if (!((_a = props.settings) == null ? void 0 : _a["username-show"])) return ""; 46977 return props.settings.username || null; 46978 }); 46979 const blockFacebook = computed(() => { 46980 var _a; 46981 if (((_a = props.settings) == null ? void 0 : _a["facebook-show"]) === false) return ""; 46982 return renderData(props.settings.facebook, props.dataSite); 46983 }); 46984 const blockLinkedin = computed(() => { 46985 var _a; 46986 if (((_a = props.settings) == null ? void 0 : _a["linkedin-show"]) === false) return ""; 46987 return renderData(props.settings.linkedin, props.dataSite); 46988 }); 46989 const blockInstagram = computed(() => { 46990 return props.settings.instagram || ""; 46991 }); 46992 const blockTwitter = computed(() => { 46993 var _a; 46994 if (((_a = props.settings) == null ? void 0 : _a["twitter-show"]) === false) return ""; 46995 return renderData(props.settings.twitter, props.dataSite); 46996 }); 46997 const blockYoutube = computed(() => { 46998 return props.settings.youtube || ""; 46999 }); 47000 return { 47001 blockHeadline, 47002 blockUsername, 47003 blockFacebook, 47004 blockLinkedin, 47005 blockInstagram, 47006 blockTwitter, 47007 blockYoutube 47008 }; 47009 } 47010}; 47011const _hoisted_1$3n = { class: "block__body" }; 47012const _hoisted_2$3c = { class: "block__header_group" }; 47013const _hoisted_3$9 = ["innerHTML"]; 47014const _hoisted_4$6 = { class: "block__icon_group" }; 47015const _hoisted_5$6 = { 47016 key: 0, 47017 class: "block__facebook" 47018}; 47019const _hoisted_6$4 = ["href"]; 47020const _hoisted_7$4 = { 47021 key: 1, 47022 class: "block__twitter" 47023}; 47024const _hoisted_8$4 = ["href"]; 47025const _hoisted_9$3 = { 47026 key: 2, 47027 class: "block__linkedin" 47028}; 47029const _hoisted_10$3 = ["href"]; 47030const _hoisted_11$3 = { 47031 key: 3, 47032 class: "block__instagram" 47033}; 47034const _hoisted_12$3 = ["href"]; 47035const _hoisted_13$3 = { 47036 key: 4, 47037 class: "block__youtube" 47038}; 47039const _hoisted_14$3 = ["href"]; 47040const _hoisted_15$3 = { class: "block__header_group" }; 47041const _hoisted_16$3 = { 47042 key: 0, 47043 class: "block__username" 47044}; 47045function _sfc_render$35(_ctx, _cache, $props, $setup, $data, $options) { 47046 const _component_CoreIconFacebook = __nuxt_component_0$1; 47047 const _component_CoreIconTwitter = __nuxt_component_1$2; 47048 const _component_CoreIconLinkedin = __nuxt_component_2; 47049 const _component_CoreIconInstagram = __nuxt_component_3; 47050 const _component_CoreIconYoutube = __nuxt_component_4; 47051 return openBlock(), createElementBlock("div", _hoisted_1$3n, [ 47052 createBaseVNode("div", _hoisted_2$3c, [ 47053 $setup.blockHeadline ? (openBlock(), createElementBlock("div", { 47054 key: 0, 47055 class: "block__headline", 47056 innerHTML: $setup.blockHeadline 47057 }, null, 8, _hoisted_3$9)) : createCommentVNode("", true) 47058 ]), 47059 createBaseVNode("div", _hoisted_4$6, [ 47060 $setup.blockFacebook ? (openBlock(), createElementBlock("div", _hoisted_5$6, [ 47061 createBaseVNode("a", { 47062 class: "block__link", 47063 href: $setup.blockFacebook, 47064 target: "_blank" 47065 }, [ 47066 createVNode(_component_CoreIconFacebook) 47067 ], 8, _hoisted_6$4) 47068 ])) : createCommentVNode("", true), 47069 $setup.blockTwitter ? (openBlock(), createElementBlock("div", _hoisted_7$4, [ 47070 createBaseVNode("a", { 47071 href: $setup.blockTwitter, 47072 class: "block__link", 47073 target: "_blank" 47074 }, [ 47075 createVNode(_component_CoreIconTwitter) 47076 ], 8, _hoisted_8$4) 47077 ])) : createCommentVNode("", true), 47078 $setup.blockLinkedin ? (openBlock(), createElementBlock("div", _hoisted_9$3, [ 47079 createBaseVNode("a", { 47080 href: $setup.blockLinkedin, 47081 class: "block__link", 47082 target: "_blank" 47083 }, [ 47084 createVNode(_component_CoreIconLinkedin) 47085 ], 8, _hoisted_10$3) 47086 ])) : createCommentVNode("", true), 47087 $setup.blockInstagram ? (openBlock(), createElementBlock("div", _hoisted_11$3, [ 47088 createBaseVNode("a", { 47089 href: $setup.blockInstagram, 47090 class: "block__link", 47091 target: "_blank" 47092 }, [ 47093 createVNode(_component_CoreIconInstagram) 47094 ], 8, _hoisted_12$3) 47095 ])) : createCommentVNode("", true), 47096 $setup.blockYoutube ? (openBlock(), createElementBlock("div", _hoisted_13$3, [ 47097 createBaseVNode("a", { 47098 href: $setup.blockYoutube, 47099 class: "block__link", 47100 target: "_blank" 47101 }, [ 47102 createVNode(_component_CoreIconYoutube) 47103 ], 8, _hoisted_14$3) 47104 ])) : createCommentVNode("", true) 47105 ]), 47106 createBaseVNode("div", _hoisted_15$3, [ 47107 $setup.blockUsername ? (openBlock(), createElementBlock("div", _hoisted_16$3, toDisplayString($setup.blockUsername), 1)) : createCommentVNode("", true) 47108 ]) 47109 ]); 47110} 47111const CoreBlockSocialLinks = /* @__PURE__ */ _export_sfc(_sfc_main$3n, [["render", _sfc_render$35]]); 47112const CoreBlockSocialLinks$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 47113 __proto__: null, 47114 default: CoreBlockSocialLinks 47115}, Symbol.toStringTag, { value: "Module" })); 47116const _sfc_main$3m = { 47117 name: "CoreBlockStickyButton", 47118 components: { 47119 NuxtLink: __nuxt_component_2$5 47120 }, 47121 props: { 47122 isEditable: { 47123 type: Boolean, 47124 default: false 47125 }, 47126 isBuilder: { 47127 type: Boolean, 47128 default: false 47129 }, 47130 settings: { 47131 type: Object, 47132 required: true 47133 } 47134 }, 47135 setup(props) { 47136 const root2 = useRoot(); 47137 useRoute(); 47138 const { getters, state, commit: commit2 } = useStore(); 47139 const isDialogOpen = ref(false); 47140 const offset = ref(0); 47141 const isFixed = ref(false); 47142 const mainNavHeight = ref(100); 47143 const isStickyNavOnTop = ref(false); 47144 const handleToggle = () => { 47145 if (props.isBuilder && props.isEditable && !state.interface.isLeftRailClosing) { 47146 const hasPermission = getters["authorization/hasScopePermission"]("site", "SITE_STICKY_BUTTON"); 47147 if (!hasPermission) { 47148 return; 47149 } 47150 if (!state.interface.activeSidebarKey) { 47151 commit2("interface/toggleActiveSidebarKey", "stickyButton"); 47152 } else { 47153 commit2("interface/setActiveSidebarKey"); 47154 } 47155 commit2( 47156 "interface/setRightRailOpening", 47157 !state.interface.isRightRailOpening 47158 ); 47159 commit2("site/clearSelectedBlockIds"); 47160 setTimeout(() => { 47161 const targetElement = document.querySelector( 47162 ".editor-main-navigation" 47163 ); 47164 if (targetElement) 47165 targetElement.scrollIntoView({ behavior: "smooth" }); 47166 }, 500); 47167 } 47168 }; 47169 const itemCheckFunction = (item) => item.type === "document" || item.type === "link"; 47170 const { isExpired } = useIsExpired(props.settings, itemCheckFunction); 47171 const buttonLabel = computed(() => { 47172 var _a; 47173 return ((_a = props.settings) == null ? void 0 : _a.label) ?? ""; 47174 }); 47175 const buttonAltText = computed(() => { 47176 var _a; 47177 return ((_a = props.settings) == null ? void 0 : _a.alt) || buttonLabel.value; 47178 }); 47179 const buttonUrl = computed(() => { 47180 var _a, _b; 47181 if (isExpired.value) return ""; 47182 const url = (_a = props.settings) == null ? void 0 : _a.url; 47183 if (typeof url === "string" && (url == null ? void 0 : url.includes("https://calendly.com"))) { 47184 return ""; 47185 } else if (url === "dialog") { 47186 return ""; 47187 } 47188 if (typeof url === "object" && url !== null && url.name) { 47189 const router = useRouter$2(); 47190 if (!router.hasRoute(url.name)) { 47191 return ""; 47192 } 47193 } 47194 const newUrl = ((_b = props.settings) == null ? void 0 : _b.newWindow) ? replaceUrlBasePath(url) : url; 47195 return newUrl || ""; 47196 }); 47197 const clickEvent = computed(() => { 47198 var _a, _b, _c; 47199 if (typeof ((_a = props.settings) == null ? void 0 : _a.url) === "string" && ((_c = (_b = props.settings) == null ? void 0 : _b.url) == null ? void 0 : _c.includes("https://calendly.com"))) { 47200 return (e) => { 47201 e.preventDefault(); 47202 showPopUp(); 47203 }; 47204 } else if (isDialog.value) { 47205 return (e) => { 47206 e.preventDefault(); 47207 toggleDialog(); 47208 }; 47209 } 47210 return (e) => { 47211 var _a2; 47212 if ((_a2 = props.settings) == null ? void 0 : _a2.event) { 47213 e.preventDefault(); 47214 props.settings.event(); 47215 } 47216 }; 47217 }); 47218 const isInternal = computed(() => { 47219 var _a; 47220 const url = (_a = props.settings) == null ? void 0 : _a.url; 47221 return typeof url === "string" && (url == null ? void 0 : url.charAt(0)) == "/" || typeof url === "object" && url !== null; 47222 }); 47223 const isDialog = computed(() => { 47224 var _a; 47225 return ((_a = props.settings) == null ? void 0 : _a.url) === "dialog"; 47226 }); 47227 const newWindowTarget = computed(() => { 47228 var _a; 47229 if ((_a = props.settings) == null ? void 0 : _a.newWindow) return "_blank"; 47230 return "_self"; 47231 }); 47232 const newWindowAriaLabel = computed(() => { 47233 if (props.settings.newWindow && buttonLabel.value) 47234 return `${buttonLabel.value} (opens in a new window)`; 47235 return null; 47236 }); 47237 const relAttributes = computed(() => { 47238 var _a, _b; 47239 const featureEnabled = (_b = (_a = state == null ? void 0 : state.settings) == null ? void 0 : _a.featureFlags) == null ? void 0 : _b.SeoLinkRelAttributes; 47240 if (!featureEnabled) { 47241 return null; 47242 } 47243 if (Array.isArray(props.settings.relAttributes) && props.settings.relAttributes.length > 0) { 47244 return props.settings.relAttributes.join(" "); 47245 } 47246 if (newWindowTarget.value === "_blank") { 47247 return "noopener noreferrer"; 47248 } 47249 return null; 47250 }); 47251 const buttonDataTestId = computed(() => { 47252 var _a, _b, _c; 47253 const calendlyUrlSelf = typeof ((_a = props.settings) == null ? void 0 : _a.url) === "string" && ((_c = (_b = props.settings) == null ? void 0 : _b.url) == null ? void 0 : _c.includes("https://calendly.com")) && newWindowTarget.value !== "_blank"; 47254 return isDialog.value || calendlyUrlSelf ? "dialog-button" : "button"; 47255 }); 47256 const formSettings = computed(() => { 47257 var _a; 47258 return ((_a = props.settings) == null ? void 0 : _a.dialog) || {}; 47259 }); 47260 const focusPopup = () => { 47261 const container = document.querySelector(".calendly-popup-content"); 47262 if (!container) { 47263 return; 47264 } 47265 const button = document.createElement("button"); 47266 container.prepend(button); 47267 button.focus(); 47268 button.remove(); 47269 }; 47270 const showPopUp = () => { 47271 var _a; 47272 GTMCalendly(); 47273 { 47274 window.Calendly.showPopupWidget((_a = props.settings) == null ? void 0 : _a.url); 47275 setCalendlyAttributes(props.settings.iframeTitle); 47276 addModalListener(); 47277 focusPopup(); 47278 } 47279 return false;
47280 }; 47281 const toggleDialog = () => { 47282 isDialogOpen.value = !isDialogOpen.value; 47283 return false; 47284 }; 47285 const setCalendlyAttributes = (title) => { 47286 var _a; 47287 const iframes = document.querySelectorAll("iframe"); 47288 for (const iframe of iframes) { 47289 if ((_a = iframe.src) == null ? void 0 : _a.includes("https://calendly.com")) { 47290 iframe.setAttribute( 47291 "title", 47292 title || "default-calendly-title" 47293 ); 47294 } 47295 } 47296 const calendlyCloseButton = document.querySelector( 47297 ".calendly-popup-close" 47298 ); 47299 calendlyCloseButton.setAttribute("tabIndex", "0"); 47300 calendlyCloseButton.addEventListener( 47301 "keydown", 47302 closeModalEnterHandler, 47303 true 47304 ); 47305 }; 47306 const closeModalEnterHandler = (event) => { 47307 if (event.key === "Enter" || event.keyCode === 13) { 47308 closeCalendlyModal(); 47309 } 47310 }; 47311 const closeModalKeyHandler = (event) => { 47312 if (event.key === "Escape" || event.keyCode === 27) { 47313 closeCalendlyModal(); 47314 } 47315 }; 47316 const closeCalendlyModal = () => { 47317 window.Calendly.closePopupWidget(); 47318 document.removeEventListener("keydown", closeModalKeyHandler, true); 47319 }; 47320 const addModalListener = () => { 47321 document.addEventListener("keydown", closeModalKeyHandler, true); 47322 }; 47323 const GTMCalendly = () => { 47324 const { eventType, calendlyId } = decodeCalendlyUrl( 47325 props.settings.url 47326 ); 47327 root2.$gtm.push({ 47328 event: "nyl-calendly", 47329 calendly_id: calendlyId, 47330 calendly_category: getCalendlyCategory(eventType), 47331 event_type: eventType, 47332 calendly_event_id: eventType == null ? void 0 : eventType.toLowerCase().replace(/\s/g, ""), 47333 click_url: props.settings.url 47334 }); 47335 }; 47336 const getCalendlyCategory = (eventType) => { 47337 var calendlyCategory = ""; 47338 switch (eventType) { 47339 case "Custom Event": 47340 calendlyCategory = "custom"; 47341 break; 47342 case "General Discussion": 47343 case "Intro Appointment": 47344 case "Review": 47345 calendlyCategory = "agent"; 47346 break; 47347 case "Intro to NYL": 47348 case "Quick Checkin": 47349 case "First Interview": 47350 calendlyCategory = "GO"; 47351 break; 47352 } 47353 return calendlyCategory; 47354 }; 47355 const replaceUrlBasePath = (url) => { 47356 if (!url || !isInternal.value) return url; 47357 const config = /* @__PURE__ */ useRuntimeConfig(); 47358 const basePath = config.public.basePath || "/"; 47359 return `${basePath}/${url}`.replace(/\/+/g, "/"); 47360 }; 47361 const decodeCalendlyUrl = (url) => { 47362 if (!url || typeof url !== "string" || url.trim() === "") { 47363 return { 47364 eventType: null, 47365 calendlyId: null 47366 }; 47367 } 47368 try { 47369 if (!url || typeof url !== "string" || url.trim() === "") { 47370 return url; 47371 } 47372 const urlObj = new URL(url); 47373 const pathParts = urlObj.pathname.split("/").filter((part) => part !== ""); 47374 const calendlyId = pathParts[0] || null; 47375 let eventType = ""; 47376 if (pathParts.length > 1) { 47377 eventType = decodeURIComponent(pathParts[1]); 47378 } 47379 if (!eventType || eventType.includes("utm_campaign") && eventType.includes("utm_source")) { 47380 eventType = null; 47381 } 47382 return { 47383 eventType, 47384 calendlyId 47385 }; 47386 } catch (error) { 47387 console.error("Invalid Calendly URL:", error); 47388 return { 47389 eventType: null, 47390 calendlyId: null 47391 }; 47392 } 47393 }; 47394 const isTop = computed(() => { 47395 var _a, _b, _c; 47396 return (_c = (_b = (_a = props.settings) == null ? void 0 : _a.variants) == null ? void 0 : _b.location) == null ? void 0 : _c.includes("top"); 47397 }); 47398 const classList = computed(() => { 47399 var _a; 47400 const variants = ((_a = props.settings) == null ? void 0 : _a.variants) || {}; 47401 let classes = []; 47402 Object.keys(variants).forEach((key) => { 47403 if (variants[key]) { 47404 classes.push(`block_sticky-button_${variants[key]}`); 47405 if (variants[key] === "top-left" || variants[key] === "bottom-left") { 47406 classes.push(`block_sticky-button_pl-huge`); 47407 classes.push(`block_sticky-button_align-left`); 47408 } 47409 if (variants[key] === "top-right" || variants[key] === "bottom-right") { 47410 classes.push(`block_sticky-button_pr-huge`); 47411 classes.push(`block_sticky-button_align-right`); 47412 } 47413 } 47414 }); 47415 if (isFixed.value) { 47416 classes.push(`block_sticky-button_fixed`); 47417 } 47418 return classes.join(" "); 47419 }); 47420 const updateOffset = () => { 47421 var _a, _b; 47422 if (props.isBuilder) { 47423 return; 47424 } 47425 const topValue = (_b = (_a = document == null ? void 0 : document.getElementsByTagName("footer")) == null ? void 0 : _a[0]) == null ? void 0 : _b.getBoundingClientRect().top; 47426 if (isTop.value) { 47427 const top = document.getElementById("sticky-button").getBoundingClientRect().top; 47428 offset.value = 0; 47429 isStickyNavOnTop.value = !!(document == null ? void 0 : document.querySelector( 47430 ".block_anchor-link-nav_isTop .anchor_link_nav-fixed" 47431 )); 47432 const TOP_OFFSET = isStickyNavOnTop.value ? 40 : 20; 47433 const mainNav = document.getElementById("main-nav"); 47434 if (mainNav) { 47435 const navHeight = mainNav.getBoundingClientRect().height + TOP_OFFSET; 47436 offset.value = navHeight; 47437 if (top <= navHeight) { 47438 isFixed.value = true; 47439 } 47440 } else { 47441 if (top <= 0) { 47442 isFixed.value = true; 47443 } else { 47444 isFixed.value = false;
47445 } 47446 } 47447 } else { 47448 const BOTTOM_OFFSET = 30; 47449 const toggleFix = topValue > window.innerHeight - BOTTOM_OFFSET; 47450 if (toggleFix) { 47451 offset.value = BOTTOM_OFFSET; 47452 isFixed.value = true; 47453 } else { 47454 offset.value = 0; 47455 isFixed.value = false; 47456 } 47457 } 47458 }; 47459 onMounted(() => { 47460 var _a; 47461 mainNavHeight.value = ((_a = document == null ? void 0 : document.getElementById("main-nav")) == null ? void 0 : _a.getBoundingClientRect().height) ?? 100; 47462 updateOffset(); 47463 window.addEventListener("scroll", updateOffset); 47464 window.addEventListener("resize", updateOffset); 47465 }); 47466 onBeforeUnmount(() => { 47467 window.removeEventListener("scroll", updateOffset); 47468 window.removeEventListener("resize", updateOffset); 47469 }); 47470 const routePath = computed(() => { 47471 var _a; 47472 return ((_a = root2 == null ? void 0 : root2.$route) == null ? void 0 : _a.fullPath) || ""; 47473 }); 47474 watch(routePath, async () => { 47475 { 47476 await nextTick(); 47477 requestAnimationFrame(() => { 47478 updateOffset(); 47479 setTimeout(() => { 47480 window.dispatchEvent(new Event("scroll")); 47481 }, 200); 47482 }); 47483 } 47484 }); 47485 return { 47486 addModalListener, 47487 buttonAltText, 47488 buttonDataTestId, 47489 buttonLabel, 47490 buttonUrl, 47491 clickEvent, 47492 closeCalendlyModal, 47493 closeModalKeyHandler, 47494 formSettings, 47495 getCalendlyCategory, 47496 GTMCalendly, 47497 isDialog, 47498 isDialogOpen, 47499 isExpired, 47500 isInternal, 47501 newWindowAriaLabel, 47502 newWindowTarget, 47503 relAttributes, 47504 replaceUrlBasePath, 47505 setCalendlyAttributes, 47506 showPopUp, 47507 toggleDialog, 47508 handleToggle, 47509 classList, 47510 isTop, 47511 offset, 47512 isFixed, 47513 mainNavHeight 47514 }; 47515 } 47516}; 47517const _hoisted_1$3m = ["data-testid"]; 47518const _hoisted_2$3b = ["href", "target", "rel", "aria-label", "title"]; 47519const _hoisted_3$8 = { class: "button_icon--custom" }; 47520const _hoisted_4$5 = { class: "button_label button_icon--down" }; 47521const _hoisted_5$5 = { class: "button_label_text" }; 47522const _hoisted_6$3 = { class: "button_icon--custom" }; 47523const _hoisted_7$3 = { class: "button_label button_icon--down" }; 47524const _hoisted_8$3 = { class: "button_label_text" }; 47525function _sfc_render$34(_ctx, _cache, $props, $setup, $data, $options) { 47526 const _component_CoreIcon = __nuxt_component_1$7; 47527 const _component_NuxtLink = __nuxt_component_2$5; 47528 const _component_CoreBlock = _sfc_main$4x; 47529 const _component_CoreBlockDialog = __nuxt_component_3$1; 47530 return openBlock(), createElementBlock("span", null, [ 47531 $setup.isFixed && $setup.isTop ? (openBlock(), createElementBlock("div", { 47532 key: 0, 47533 id: "sticky-button-placeholder", 47534 style: normalizeStyle(`height: ${$setup.mainNavHeight}px`) 47535 }, null, 4)) : createCommentVNode("", true), 47536 createBaseVNode("div", { 47537 id: "sticky-button", 47538 class: normalizeClass(`${$setup.classList} control-block_container block block_sticky-button`), 47539 style: normalizeStyle({ 47540 zIndex: $setup.isFixed ? 300 : "unset", 47541 pointerEvents: "all", 47542 cursor: "pointer", 47543 height: $props.isBuilder ? "unset" : "0px", 47544 marginBottom: $props.isBuilder ? "0px" : "44px", 47545 ...$setup.isTop ? { top: `${$setup.offset}px` } : { bottom: `${$setup.offset}px` } 47546 }), 47547 onClick: _cache[2] || (_cache[2] = (...args) => $setup.handleToggle && $setup.handleToggle(...args)) 47548 }, [ 47549 createBaseVNode("div", { 47550 class: "block__body", 47551 "data-testid": $setup.buttonDataTestId 47552 }, [ 47553 !$setup.isInternal || $props.settings.newWindow || $setup.isDialog ? (openBlock(), createElementBlock("a", { 47554 key: 0, 47555 href: $setup.buttonUrl, 47556 target: $setup.newWindowTarget, 47557 rel: $setup.relAttributes, 47558 class: "button", 47559 role: "button", 47560 tabindex: "0", 47561 "aria-label": $setup.newWindowAriaLabel, 47562 title: $setup.buttonAltText, 47563 onClick: _cache[0] || (_cache[0] = withModifiers((...args) => $setup.clickEvent && $setup.clickEvent(...args), ["stop"])), 47564 onKeyup: _cache[1] || (_cache[1] = withKeys((...args) => $setup.clickEvent && $setup.clickEvent(...args), ["enter"])) 47565 }, [ 47566 createBaseVNode("span", _hoisted_3$8, [ 47567 $props.settings.icon ? (openBlock(), createBlock(_component_CoreIcon, { 47568 key: 0, 47569 "aria-label": $props.settings.label, 47570 icon: $props.settings.icon, 47571 class: "button_icon", 47572 name: "buttonIcon", 47573 role: "img" 47574 }, null, 8, ["aria-label", "icon"])) : createCommentVNode("", true) 47575 ]), 47576 createBaseVNode("span", _hoisted_4$5, [ 47577 createBaseVNode("span", _hoisted_5$5, toDisplayString($setup.buttonLabel), 1), 47578 createVNode(_component_CoreIcon, { 47579 class: "button_icon button_i", 47580 icon: "down-arrow", 47581 role: "img" 47582 }) 47583 ]) 47584 ], 40, _hoisted_2$3b)) : (openBlock(), createBlock(_component_NuxtLink, mergeProps({ 47585 key: 1, 47586 to: $setup.buttonUrl, 47587 class: "button", 47588 role: "button" 47589 }, { 47590 ...$setup.relAttributes && { rel: $setup.relAttributes } 47591 }, { onClick: $setup.clickEvent }), { 47592 default: withCtx(() => [ 47593 createBaseVNode("span", _hoisted_6$3, [ 47594 $props.settings.icon ? (openBlock(), createBlock(_component_CoreIcon, { 47595 key: 0, 47596 "aria-label": $props.settings.label, 47597 icon: $props.settings.icon, 47598 class: "button_icon", 47599 name: "buttonIcon", 47600 role: "img" 47601 }, null, 8, ["aria-label", "icon"])) : createCommentVNode("", true) 47602 ]), 47603 createBaseVNode("span", _hoisted_7$3, [ 47604 createBaseVNode("span", _hoisted_8$3, toDisplayString($setup.buttonLabel), 1), 47605 createVNode(_component_CoreIcon, { 47606 class: "button_icon button_i", 47607 icon: "down-arrow", 47608 role: "img" 47609 }) 47610 ]) 47611 ]), 47612 _: 1 47613 }, 16, ["to", "onClick"])), 47614 $setup.isDialog ? (openBlock(), createBlock(_component_CoreBlockDialog, { 47615 key: 2, 47616 show: $setup.isDialogOpen, 47617 type: "modal", 47618 onClose: $setup.toggleDialog 47619 }, { 47620 default: withCtx(() => [ 47621 createVNode(_component_CoreBlock, { 47622 settings: $setup.formSettings, 47623 "is-editable": $props.isEditable 47624 }, null, 8, ["settings", "is-editable"]) 47625 ]), 47626 _: 1 47627 }, 8, ["show", "onClose"])) : createCommentVNode("", true) 47628 ], 8, _hoisted_1$3m) 47629 ], 6) 47630 ]); 47631} 47632const __nuxt_component_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$3m, [["render", _sfc_render$34]]); 47633const CoreBlockStickyButton = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 47634 __proto__: null, 47635 default: __nuxt_component_1$1 47636}, Symbol.toStringTag, { value: "Module" })); 47637const _sfc_main$3l = { 47638 name: "CoreBlockText", 47639 props: { 47640 settings: { 47641 type: Object, 47642 required: true 47643 } 47644 }, 47645 setup() { 47646 const store = useStore(); 47647 const { getters } = store; 47648 return { 47649 getters 47650 }; 47651 }, 47652 computed: { 47653 isExpired() { 47654 const itemCheckFunction = (item) => item.type === "copy"; 47655 return this.getters["library/isExpired"]( 47656 this.settings.contentLibraryItems, 47657 itemCheckFunction 47658 ); 47659 }, 47660 blockContent() { 47661 var _a; 47662 return ((_a = this.settings) == null ? void 0 : _a.text) || null; 47663 }, 47664 blockTag() { 47665 var _a; 47666 return ((_a = this.settings) == null ? void 0 : _a.tag) || "p"; 47667 } 47668 } 47669}; 47670const _hoisted_1$3l = { class: "block__body" }; 47671const _hoisted_2$3a = ["data-testid"]; 47672function _sfc_render$33(_ctx, _cache, $props, $setup, $data, $options) { 47673 return openBlock(), createElementBlock("div", _hoisted_1$3l, [ 47674 $options.isExpired ? (openBlock(), createElementBlock("div", { 47675 key: 0, 47676 "data-testid": `${$props.settings.type}-expired` 47677 }, null, 8, _hoisted_2$3a)) : $options.blockContent ? (openBlock(), createBlock(resolveDynamicComponent($options.blockTag), { key: 1 }, { 47678 default: withCtx(() => [ 47679 createTextVNode(toDisplayString($options.blockContent), 1) 47680 ]), 47681 _: 1 47682 })) : createCommentVNode("", true) 47683 ]); 47684} 47685const CoreBlockText = /* @__PURE__ */ _export_sfc(_sfc_main$3l, [["render", _sfc_render$33]]); 47686const CoreBlockText$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 47687 __proto__: null, 47688 default: CoreBlockText 47689}, Symbol.toStringTag, { value: "Module" })); 47690const _imports_0 = publicAssetsURL("/img/Add_Component_Icon.svg"); 47691const _sfc_main$3k = { 47692 name: "CoreBlockUnknown", 47693 props: { 47694 isEditable: { 47695 type: Boolean, 47696 default: false 47697 }, 47698 settings: { 47699 type: Object, 47700 required: true 47701 } 47702 } 47703}; 47704const _hoisted_1$3k = { 47705 class: "block__body", 47706 style: { 47707 display: "flex", 47708 alignContent: "center", 47709 justifyContent: "center", 47710 padding: "1rem" 47711 } 47712}; 47713const _hoisted_2$39 = { class: "block__section_content" }; 47714const _hoisted_3$7 = { key: 0 }; 47715const _hoisted_4$4 = { key: 1 }; 47716const _hoisted_5$4 = { 47717 key: 2, 47718 class: "add-component-container" 47719}; 47720function _sfc_render$32(_ctx, _cache, $props, $setup, $data, $options) { 47721 return openBlock(), createElementBlock("div", _hoisted_1$3k, [ 47722 createBaseVNode("div", _hoisted_2$39, [ 47723 !$props.isEditable ? (openBlock(), createElementBlock("div", _hoisted_3$7)) : $props.settings.type ? (openBlock(), createElementBlock("div", _hoisted_4$4, [ 47724 _cache[0] || (_cache[0] = createTextVNode(" UNREGISTERED BLOCK TYPE: ")), 47725 _cache[1] || (_cache[1] = createBaseVNode("br", null, null, -1)), 47726 createBaseVNode("strong", null, toDisplayString($props.settings.type), 1) 47727 ])) : (openBlock(), createElementBlock("div", _hoisted_5$4, _cache[2] || (_cache[2] = [ 47728 createBaseVNode("img", { 47729 src: _imports_0, 47730 class: "add-component-icon" 47731 }, null, -1), 47732 createBaseVNode("button", { 47733 "data-testid": "add-component-btn", 47734 class: "add-component-btn" 47735 }, [ 47736 createBaseVNode("span", { class: "material-icons" }), 47737 createTextVNode(" Add Component ") 47738 ], -1) 47739 ]))) 47740 ]) 47741 ]); 47742} 47743const CoreBlockUnknown = /* @__PURE__ */ _export_sfc(_sfc_main$3k, [["render", _sfc_render$32]]); 47744const CoreBlockUnknown$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 47745 __proto__: null, 47746 default: CoreBlockUnknown 47747}, Symbol.toStringTag, { value: "Module" })); 47748const _sfc_main$3j = { 47749 name: "CoreBlockContainerToggle", 47750 props: { 47751 settings: { 47752 type: Object, 47753 required: true 47754 }, 47755 activeId: { 47756 type: String, 47757 required: true 47758 }, 47759 // Pre-filtered by the parent CoreBlockContainer, whose hasOverlay gate 47760 // (flag + settings.hasOverlay + overlay child present) is the source of 47761 // truth. Falls back to the raw settings.blocks when rendered standalone. 47762 blocks: { 47763 type: Array, 47764 default: null 47765 } 47766 }, 47767 computed: { 47768 blockChildren() { 47769 var _a; 47770 return this.blocks ?? ((_a = this.settings) == null ? void 0 : _a.blocks) ?? []; 47771 } 47772 }, 47773 methods: { 47774 toggleLabel(toggleIndex) { 47775 return this.settings[`label-${toggleIndex + 1}`] || "Toggle"; 47776 }, 47777 setToggle(event) { 47778 this.$emit("set-item", event); 47779 } 47780 } 47781}; 47782const _hoisted_1$3j = { class: "block_container_toggle__buttons--container" }; 47783const _hoisted_2$38 = { class: "block_container_toggle__buttons" }; 47784const _hoisted_3$6 = ["onClick"]; 47785function _sfc_render$31(_ctx, _cache, $props, $setup, $data, $options) { 47786 return openBlock(), createElementBlock("div", _hoisted_1$3j, [ 47787 createBaseVNode("div", _hoisted_2$38, [ 47788 (openBlock(true), createElementBlock(Fragment, null, renderList($options.blockChildren, (toggle, childIndex) => { 47789 return openBlock(), createElementBlock("button", { 47790 key: toggle.id, 47791 class: normalizeClass({ active: $props.activeId === toggle.id }), 47792 onClick: ($event) => $options.setToggle(toggle.id) 47793 }, toDisplayString($options.toggleLabel(childIndex)), 11, _hoisted_3$6); 47794 }), 128)) 47795 ]) 47796 ]); 47797} 47798const __nuxt_component_0 = /* @__PURE__ */ _export_sfc(_sfc_main$3j, [["render", _sfc_render$31]]); 47799const CoreBlockContainerToggle = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 47800 __proto__: null, 47801 default: __nuxt_component_0 47802}, Symbol.toStringTag, { value: "Module" })); 47803const _sfc_main$3i = { 47804 name: "CoreBlockContainerTabs", 47805 props: { 47806 settings: { 47807 type: Object, 47808 required: true 47809 }, 47810 activeId: { 47811 type: String, 47812 required: true 47813 }, 47814 // Pre-filtered by the parent CoreBlockContainer, whose hasOverlay gate 47815 // (flag + settings.hasOverlay + overlay child present) is the source of 47816 // truth. Falls back to the raw settings.blocks when rendered standalone. 47817 blocks: { 47818 type: Array, 47819 default: null 47820 } 47821 }, 47822 computed: { 47823 blockChildren() { 47824 var _a; 47825 return this.blocks ?? ((_a = this.settings) == null ? void 0 : _a.blocks) ?? []; 47826 } 47827 }, 47828 methods: { 47829 setTab(event) { 47830 this.$emit("set-item", event); 47831 } 47832 } 47833}; 47834const _hoisted_1$3i = { class: "block__control block__control_nav" }; 47835const _hoisted_2$37 = ["onClick"]; 47836function _sfc_render$30(_ctx, _cache, $props, $setup, $data, $options) { 47837 return openBlock(), createElementBlock("ul", _hoisted_1$3i, [ 47838 (openBlock(true), createElementBlock(Fragment, null, renderList($options.blockChildren, (tab, tabIndex) => { 47839 return openBlock(), createElementBlock("li", { 47840 key: tab.id, 47841 class: normalizeClass({ 47842 block__control_nav_item: true, 47843 "block__control_nav_item--active": $props.activeId === tab.id 47844 }), 47845 onClick: ($event) => $options.setTab(tab.id) 47846 }, toDisplayString(`Tab ${tabIndex + 1}`), 11, _hoisted_2$37); 47847 }), 128)) 47848 ]); 47849} 47850const __nuxt_component_1 = /* @__PURE__ */ _export_sfc(_sfc_main$3i, [["render", _sfc_render$30]]); 47851const CoreBlockContainerTabs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 47852 __proto__: null, 47853 default: __nuxt_component_1 47854}, Symbol.toStringTag, { value: "Module" })); 47855const _hoisted_1$3h = ["data-testid"]; 47856const _sfc_main$3h = { 47857 __name: "CoreBlockContainerAccordion", 47858 props: { 47859 isShowingContents: { 47860 type: Boolean, 47861 default: true 47862 }, 47863 settings: { 47864 type: Object, 47865 required: true 47866 }, 47867 isEditable: { 47868 type: Boolean, 47869 default: false 47870 } 47871 }, 47872 emits: ["toggle-contents"], 47873 setup(__props, { emit: __emit }) { 47874 const store = useStore(); 47875 const { state } = store; 47876 const props = __props; 47877 const accordionLabel = computed(() => { 47878 var _a; 47879 let label = ((_a = props.settings) == null ? void 0 : _a.accordionText) || ""; 47880 if (!/<\/?[a-z][\s\S]*>/i.test(label)) label = `<h5>${label}</h5>`; 47881 return label.replaceAll(/<[^>]*>/g, "") ? label : "<h5>Accordion</h5>"; 47882 }); 47883 const accordionDataTestId = computed(() => { 47884 return props.isShowingContents ? "component" : "clickable-component"; 47885 }); 47886 const accordionBuilderClasses = computed(() => { 47887 var _a, _b; 47888 if (!((_a = state.interface) == null ? void 0 : _a.activeSidebarKey) || !((_b = state.site) == null ? void 0 : _b.workingBlock)) 47889 return ""; 47890 return "block__control_accordion-sidebar_open"; 47891 }); 47892 return (_ctx, _cache) => { 47893 const _component_CoreBlock = _sfc_main$4x; 47894 const _component_CoreIcon = __nuxt_component_1$7; 47895 return openBlock(), createElementBlock("div", { 47896 "data-testid": accordionDataTestId.value, 47897 class: normalizeClass(["block__control block__control_accordion", accordionBuilderClasses.value]), 47898 tabindex: "0", 47899 role: "link", 47900 onKeydown: _cache[0] || (_cache[0] = withKeys(($event) => _ctx.$emit("toggle-contents"), ["enter"])), 47901 onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("toggle-contents")) 47902 }, [ 47903 createVNode(_component_CoreBlock, { 47904 "is-editab
47904le": __props.isEditable, 47905 settings: { 47906 ...__props.settings, 47907 bodyText: __props.settings.bodyText || accordionLabel.value, 47908 type: "rich-text" 47909 } 47910 }, null, 8, ["is-editable", "settings"]), 47911 __props.isShowingContents ? (openBlock(), createBlock(_component_CoreIcon, { 47912 key: 0, 47913 icon: "circle-minus", 47914 role: "button", 47915 "aria-label": "Collapse Accordion", 47916 tabindex: "0" 47917 })) : (openBlock(), createBlock(_component_CoreIcon, { 47918 key: 1, 47919 icon: "circle-plus", 47920 role: "button", 47921 "aria-label": "Expand Accordion", 47922 tabindex: "0" 47923 })) 47924 ], 42, _hoisted_1$3h); 47925 }; 47926 } 47927}; 47928const CoreBlockContainerAccordion = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 47929 __proto__: null, 47930 default: _sfc_main$3h 47931}, Symbol.toStringTag, { value: "Module" })); 47932const OVERLAY_ANIMATIONS = [ 47933 "fade", 47934 "bottom-to-top", 47935 "top-to-bottom", 47936 "left-to-right", 47937 "right-to-left" 47938]; 47939const _sfc_main$3g = { 47940 name: "CoreBlockContainer", 47941 props: { 47942 index: { 47943 type: Number, 47944 default: 0 47945 }, 47946 nestedLevel: { 47947 type: Number, 47948 default: 0 47949 }, 47950 settings: { 47951 type: Object, 47952 required: true 47953 }, 47954 isEditable: { 47955 type: Boolean, 47956 default: false 47957 }, 47958 isBuilderMobile: { 47959 type: Boolean, 47960 default: false 47961 }, 47962 isFirstPageLevelBlock: { 47963 type: Boolean, 47964 default: void 0 47965 }, 47966 isFirstPageLevelPosition: { 47967 type: Boolean, 47968 default: void 0 47969 } 47970 }, 47971 setup(props) { 47972 const { isMobile } = useIsMobile(); 47973 const { 47974 isFirstPageLevelBlockFor, 47975 isFirstPageLevelPositionFor, 47976 shouldDeferToChildren 47977 } = useBlockNavOffset(props); 47978 const store = useStore(); 47979 return { 47980 isMobile, 47981 isFirstPageLevelBlockFor, 47982 isFirstPageLevelPositionFor, 47983 shouldDeferToChildren, 47984 store 47985 }; 47986 }, 47987 data() { 47988 return { 47989 activeChildId: null, 47990 isShowingContents: true, 47991 mainSectionStyles: { 47992 display: "flex", 47993 width: "100%", 47994 minWidth: "100%", 47995 marginLeft: "0%", 47996 transition: "margin-left .2s", 47997 alignItems: "stretch", 47998 justifyContent: "center", 47999 gap: "24px" 48000 }, 48001 carouselInterval: null, 48002 currentSlideIndex: 0 48003 }; 48004 }, 48005 computed: { 48006 activeChildIndex() { 48007 if (!this.activeChildId) { 48008 return null; 48009 } 48010 const childIndex = this.blockChildren.findIndex((childSettings) => { 48011 return childSettings.id === this.activeChildId; 48012 }); 48013 if (childIndex >= 0) { 48014 return childIndex; 48015 } 48016 return this.blockChildren.length ? 0 : null; 48017 }, 48018 overlayFeatureEnabled() { 48019 var _a, _b, _c; 48020 return ((_c = (_b = (_a = this.store) == null ? void 0 : _a.getters) == null ? void 0 : _b["settings/getFeatureFlag"]) == null ? void 0 : _c.call( 48021 _b, 48022 "BuilderEnhContainerOverlay" 48023 )) === true; 48024 }, 48025 // Single pass over settings.blocks: skipped entirely unless the flag and 48026 // hasOverlay are both on, and shared by blockChildren/overlayBlock/ 48027 // overlayChildIndex instead of each re-scanning the array separately. 48028 overlayScan() { 48029 var _a, _b; 48030 const blocks = ((_a = this.settings) == null ? void 0 : _a.blocks) || []; 48031 if (!this.overlayFeatureEnabled || !((_b = this.settings) == null ? void 0 : _b.hasOverlay)) { 48032 return { 48033 visibleBlocks: blocks, 48034 overlayBlock: null, 48035 overlayIndex: -1 48036 }; 48037 } 48038 const visibleBlocks = []; 48039 let overlayBlock = null; 48040 let overlayIndex = -1; 48041 blocks.forEach((block, index2) => { 48042 if (block == null ? void 0 : block.isOverlay) { 48043 overlayBlock = block; 48044 overlayIndex = index2; 48045 } else { 48046 visibleBlocks.push(block); 48047 } 48048 }); 48049 return { visibleBlocks, overlayBlock, overlayIndex }; 48050 }, 48051 blockChildren() { 48052 return this.overlayScan.visibleBlocks; 48053 }, 48054 overlayBlock() { 48055 return this.overlayScan.overlayBlock; 48056 }, 48057 overlayChildIndex() { 48058 return this.overlayScan.overlayIndex; 48059 }, 48060 hasOverlay() { 48061 return !!this.overlayBlock; 48062 }, 48063 isEditingOverlay() { 48064 var _a; 48065 return this.isEditable && this.hasOverlay && (((_a = this.settings) == null ? void 0 : _a.overlayEditView) || "overlay") === "overlay"; 48066 }, 48067 showOverlayLayer() { 48068 return this.hasOverlay && (!this.isEditable || this.isEditingOverlay); 48069 }, 48070 overlayAnimation() { 48071 var _a; 48072 return oneOf( 48073 (_a = this.settings) == null ? void 0 : _a.overlayAnimation, 48074 OVERLAY_ANIMATIONS, 48075 "fade" 48076 ); 48077 }, 48078 overlayBodyClasses() { 48079 var _a; 48080 if (!this.hasOverlay || this.isEditable) { 48081 return []; 48082 } 48083 const classes = [ 48084 "block__body--has-overlay", 48085 `block__body--overlay-${this.overlayAnimation}` 48086 ]; 48087 if ((_a = this.settings) == null ? void 0 : _a.overlayVariableHeight) { 48088 classes.push("block__body--overlay-variable-height"); 48089 } 48090 return classes; 48091 }, 48092 slidePages() { 48093 let chunkSize = this.isContainerMobile ? 1 : 3; 48094 if (this.blockVariantLayout === "carousel" && !this.isSlim) { 48095 chunkSize = 1; 48096 } 48097 const pages = []; 48098 for (let i = 0; i < this.blockChildren.length; i += chunkSize) { 48099 const chunk = this.blockChildren.slice(i, i + chunkSize); 48100 pages.push({ id: chunk[0].id }); 48101 } 48102 return pages; 48103 }, 48104 blockChildrenCount() { 48105 return this.blockChildren.length; 48106 }, 48107 blockId() { 48108 return this.settings.id; 48109 }, 48110 blockVariantLayout() { 48111 var _a, _b; 48112 return ((_b = (_a = this.settings) == null ? void 0 : _a.variants) == null ? void 0 : _b.layout) || "rows"; 48113 }, 48114 isSlim() { 48115 var _a, _b; 48116 this.handleResizeMainSection(); 48117 return ((_a = this.settings) == null ? void 0 : _a.variants) && ((_b = this.settings) == null ? void 0 : _b.variants["child-width"]) === "slim"; 48118 }, 48119 carouselHeight() { 48120 var _a; 48121 return { 48122 height: (_a = this.settings) == null ? void 0 : _a.height 48123 }; 48124 }, 48125 blockSectionMainStyles() { 48126 if (this.hasSlideControls) { 48127 return this.mainSectionStyles; 48128 } 48129 return null; 48130 }, 48131 nestedLevelNext() { 48132 return this.nestedLevel + 1; 48133 }, 48134 isHorizontal() { 48135 return [ 48136 "columns", 48137 "grid", 48138 "carousel", 48139 "tabbed", 48140 "toggle", 48141 "carousel-hero" 48142 ].indexOf(this.blockVariantLayout) >= 0; 48143 }, 48144 /* 48145 todo the childBlockComponent property is only useful for the builder 48146 so it should be separated from this block's logic 48147 */ 48148 childBlockComponent() { 48149 if (this.isEditable) { 48150 return "ForgeControlBlock"; 48151 } 48152 return "CoreBlock"; 48153 }, 48154 hasPageControls() { 48155 return ["carousel", "tabbed", "toggle", "carousel-hero"].indexOf( 48156 this.blockVariantLayout 48157 ) >= 0; 48158 },
48159 hasSlideControls() { 48160 return ["carousel", "carousel-hero"].indexOf( 48161 this.blockVariantLayout 48162 ) >= 0; 48163 }, 48164 displayCarouselArrows() { 48165 return this.settings.showArrows || this.settings.showArrows === void 0; 48166 }, 48167 hasAccordionControls() { 48168 return this.settings.hasAccordion; 48169 }, 48170 hasToggleControls() { 48171 return ["toggle"].indexOf(this.blockVariantLayout) >= 0; 48172 }, 48173 showTabs() { 48174 return this.isShowingContents && this.hasPageControls && !this.hasSlideControls && !this.hasToggleControls; 48175 }, 48176 enableCarouselMode() { 48177 return this.settings.enableCarouselMode; 48178 }, 48179 autoSwipeMode() { 48180 return this.intervalSwipeTime; 48181 }, 48182 intervalSwipeTime() { 48183 return this.settings.intervalSwipeTime; 48184 }, 48185 introText() { 48186 var _a; 48187 if (this.blockVariantLayout === "carousel" && ((_a = this.settings) == null ? void 0 : _a["intro-text-show"])) { 48188 return this.settings["intro-text"]; 48189 } 48190 return ""; 48191 }, 48192 containerDataTestId() { 48193 return this.showSlide ? "slider-container" : null; 48194 }, 48195 isContainerMobile() { 48196 if (this.isBuilderMobile) { 48197 return true; 48198 } 48199 return this.isMobile; 48200 }, 48201 showSlide() { 48202 void this.isContainerMobile; 48203 return this.isShowingContents && this.hasPageControls && this.hasSlideControls && this.blockChildrenCount * this.blockChildrenWidth() > 100 && this.isCarouselModeEnabled(); 48204 }, 48205 visibleBlockChildren() { 48206 if (this.blockVariantLayout.includes("carousel")) { 48207 if (this.isSlim && !this.isContainerMobile) { 48208 return this.blockChildren.slice( 48209 this.activeChildIndex, 48210 this.activeChildIndex + 3 48211 ); 48212 } else { 48213 const carouselChildren = this.blockChildren[this.activeChildIndex]; 48214 if (carouselChildren) 48215 return [this.blockChildren[this.activeChildIndex]]; 48216 } 48217 } 48218 return this.blockChildren; 48219 } 48220 }, 48221 watch: { 48222 blockChildren: function(newBlocksChildren, oldBlocksChildren) { 48223 this.handleResizeMainSection(); 48224 this.handleBlockChildrenChange( 48225 newBlocksChildren, 48226 oldBlocksChildren 48227 ); 48228 }, 48229 enableCarouselMode() { 48230 if (!this.enableCarouselMode) { 48231 if (this.carouselInterval) { 48232 clearInterval(this.carouselInterval); 48233 } 48234 return; 48235 } 48236 if (this.autoSwipeMode) { 48237 this.generateSwipeInterval(); 48238 } 48239 }, 48240 autoSwipeMode: function() { 48241 if (!this.autoSwipeMode) { 48242 clearInterval(this.carouselInterval); 48243 return; 48244 } 48245 this.generateSwipeInterval(); 48246 }, 48247 intervalSwipeTime: function() { 48248 if (this.carouselInterval) { 48249 clearInterval(this.carouselInterval); 48250 } 48251 this.generateSwipeInterval(); 48252 }, 48253 hasAccordionControls(value) { 48254 if (!value) this.isShowingContents = true; 48255 }, 48256 isSlim: { 48257 handler() { 48258 this.handleResizeMainSection(); 48259 }, 48260 immediate: true 48261 } 48262 }, 48263 mounted() { 48264 if (this.hasSlideControls) { 48265 const swipeArea = this.$el; 48266 let touchstartX = 0; 48267 let touchstartY = 0; 48268 let touchendX = 0; 48269 let touchendY = 0; 48270 const threshold = 50; 48271 swipeArea.addEventListener( 48272 "touchstart", 48273 (event) => { 48274 touchstartX = event.changedTouches[0].screenX; 48275 touchstartY = event.changedTouches[0].screenY; 48276 }, 48277 false 48278 ); 48279 swipeArea.addEventListener( 48280 "touchend", 48281 (event) => { 48282 touchendX = event.changedTouches[0].screenX; 48283 touchendY = event.changedTouches[0].screenY; 48284 const deltaX = touchendX - touchstartX; 48285 const deltaY = touchendY - touchstartY; 48286 if (Math.abs(deltaX) > threshold && Math.abs(deltaY) < threshold) { 48287 this.handleSwipe(deltaX > 0 ? "right" : "left"); 48288 } 48289 }, 48290 false 48291 ); 48292 } 48293 if (this.isCarouselModeEnabled() && this.autoSwipeMode && !this.isEditable) { 48294 this.generateSwipeInterval(); 48295 } 48296 window.addEventListener("resize", this.handleResizeMainSection); 48297 this.handleResizeMainSection(); 48298 }, 48299 created() { 48300 if (this.hasPageControls) { 48301 if (this.blockChildren.length) { 48302 this.setActiveChild(this.blockChildren[0].id); 48303 } 48304 } 48305 if (this.hasSlideControls) ; 48306 if (this.hasAccordionControls) { 48307 this.isShowingContents = this.settings.defaultOpen || false; 48308 } 48309 }, 48310 beforeUnmount() { 48311 window.removeEventListener("resize", this.handleResizeMainSection); 48312 if (this.carouselInterval) { 48313 clearInterval(this.carouselInterval); 48314 } 48315 }, 48316 methods: { 48317 toggleContents() { 48318 this.isShowingContents = !this.isShowingContents; 48319 }, 48320 setActiveChild(childId) { 48321 this.activeChildId = childId; 48322 this.currentSlideIndex = this.blockChildren.findIndex( 48323 (childSettings) => childSettings.id === childId 48324 ); 48325 this.handleResizeMarginLeft(); 48326 }, 48327 resetActiveChild() { 48328 var _a; 48329 this.setActiveChild((_a = this.blockChildren[0]) == null ? void 0 : _a.id); 48330 this.handleResizeMarginLeft(); 48331 }, 48332 showNextSlide() { 48333 let currentSlideIndex = this.slidePages.findIndex((slide) => { 48334 return slide.id === this.activeChildId; 48335 }); 48336 currentSlideIndex++; 48337 if (currentSlideIndex >= this.slidePages.length) { 48338 currentSlideIndex = 0; 48339 } 48340 if (this.slidePages[currentSlideIndex]) { 48341 this.setActiveChild(this.slidePages[currentSlideIndex].id); 48342 } 48343 }, 48344 showPreviousSlide() { 48345 let currentSlideIndex = this.slidePages.findIndex((slide) => { 48346 return slide.id === this.activeChildId; 48347 }); 48348 currentSlideIndex--; 48349 if (currentSlideIndex < 0) { 48350 currentSlideIndex = this.slidePages.length - 1; 48351 } 48352 if (this.slidePages[currentSlideIndex]) { 48353 this.setActiveChild(this.slidePages[currentSlideIndex].id); 48354 } 48355 }, 48356 handleSwipe(direction) { 48357 if (direction === "right") { 48358 this.showPreviousSlide(); 48359 } else { 48360 this.showNextSlide(); 48361 } 48362 }, 48363 handleResizeMainSection() { 48364 if (this.blockVariantLayout.includes("carousel")) return; 48365 this.mainSectionStyles.width = `${this.blockChildrenCount * this.blockChildrenWidth()}%`; 48366 if (this.currentSlideIndex === 0) { 48367 this.mainSectionStyles.maxWidth = "100%"; 48368 } else { 48369 this.mainSectionStyles.maxWidth = "unset"; 48370 } 48371 this.handleResizeMarginLeft(); 48372 if (!this.showSlide) { 48373 this.resetActiveChild(); 48374 } 48375 }, 48376 handleResizeMarginLeft() { 48377 if (this.blockVariantLayout.includes("carousel")) return; 48378 this.mainSectionStyles.marginLeft = `${-this.activeChildIndex * this.blockChildrenWidth()}%`; 48379 }, 48380 blockChildrenWidth() { 48381 if (this.isSlim) { 48382 { 48383 if (window.matchMedia("(min-width: 992px)").matches && this.blockVariantLayout != "carousel-hero") { 48384 return 33.3; 48385 } 48386 } 48387 } 48388 return 100; 48389 }, 48390 isCarouselModeEnabled() { 48391 if (this.blockVariantLayout !== "carousel-hero") { 48392 return true; 48393 } 48394 return !!this.enableCarouselMode; 48395 }, 48396 generateSwipeInterval() { 48397 clearInterval(this.carouselInterval); 48398 if (!this.intervalSwipeTime || this.intervalSwipeTime <= 0) { 48399 return; 48400 } 48401 this.carouselInterval = setInterval( 48402 (function() { 48403 this.handleSwipe("left"); 48404 }).bind(this), 48405 this.intervalSwipeTime * 1e3 > 1e3 ? this.intervalSwipeTime * 1e3 : 3e3 48406 ); 48407 }, 48408 handleBlockChildrenChange(newBlocksChildren, oldBlocksChildren) { 48409 if (this.showSlide) { 48410 if ((newBlocksChildren == null ? void 0 : newBlocksChildren.length) > (oldBlocksChildren == null ? void 0 : oldBlocksChildren.length)) { 48411 const oldBlocksChildrenIds = oldBlocksChildren.map( 48412 (o) => o.id 48413 ); 48414 const newBlock = newBlocksChildren.find( 48415 (nb) => !oldBlocksChildrenIds.includes(nb.id) 48416 ); 48417 if (newBlock) this.setActiveChild(newBlock.id); 48418 } else if ((newBlocksChildren == null ? void 0 : newBlocksChildren.length) < (oldBlocksChildren == null ? void 0 : oldBlocksChildren.length)) { 48419 this.resetActiveChild(); 48420 } 48421 } 48422 }, 48423 shouldHiddeChildBlock(childIndex) { 48424 if (this.blockVariantLayout === "carousel") { 48425 if (this.isSlim) { 48426 return !(childIndex === this.activeChildIndex || childIndex === this.activeChildIndex + 1 || childIndex === this.activeChildIndex + 2); 48427 } else { 48428 return childIndex !== this.activeChildIndex; 48429 } 48430 } 48431 return false;
48432 } 48433 } 48434}; 48435const _hoisted_1$3g = ["data-testid"]; 48436const _hoisted_2$36 = ["innerHTML"]; 48437const _hoisted_3$5 = { 48438 key: 4, 48439 class: "block__control block__control_nav" 48440}; 48441const _hoisted_4$3 = ["aria-label", "onClick", "onKeyup"]; 48442const _hoisted_5$3 = { 48443 key: 5, 48444 class: "block__overlay", 48445 "data-testid": "container-overlay" 48446}; 48447function _sfc_render$2$(_ctx, _cache, $props, $setup, $data, $options) { 48448 const _component_CoreBlockContainerToggle = __nuxt_component_0; 48449 const _component_CoreBlockContainerTabs = __nuxt_component_1; 48450 const _component_CoreBlockContainerAccordion = _sfc_main$3h; 48451 const _component_CoreIcon = __nuxt_component_1$7; 48452 return openBlock(), createElementBlock("div", { 48453 class: normalizeClass(["block__body", $options.overlayBodyClasses]), 48454 "data-testid": $options.containerDataTestId 48455 }, [ 48456 $options.introText ? (openBlock(), createElementBlock("span", { 48457 key: 0, 48458 innerHTML: $options.introText 48459 }, null, 8, _hoisted_2$36)) : createCommentVNode("", true), 48460 $options.hasToggleControls ? (openBlock(), createBlock(_component_CoreBlockContainerToggle, { 48461 key: 1, 48462 "active-id": $data.activeChildId || "", 48463 settings: $props.settings, 48464 blocks: $options.blockChildren, 48465 onSetItem: $options.setActiveChild 48466 }, null, 8, ["active-id", "settings", "blocks", "onSetItem"])) : createCommentVNode("", true), 48467 $options.showTabs ? (openBlock(), createBlock(_component_CoreBlockContainerTabs, { 48468 key: 2, 48469 settings: $props.settings, 48470 blocks: $options.blockChildren, 48471 "active-id": $data.activeChildId || "", 48472 onSetItem: $options.setActiveChild 48473 }, null, 8, ["settings", "blocks", "active-id", "onSetItem"])) : createCommentVNode("", true), 48474 $options.hasAccordionControls ? (openBlock(), createBlock(_component_CoreBlockContainerAccordion, { 48475 key: 3, 48476 settings: $props.settings, 48477 "is-showing-contents": $data.isShowingContents, 48478 onToggleContents: $options.toggleContents 48479 }, null, 8, ["settings", "is-showing-contents", "onToggleContents"])) : createCommentVNode("", true), 48480 withDirectives(createBaseVNode("div", { 48481 class: normalizeClass({ 48482 block__section_main: true 48483 }), 48484 style: normalizeStyle([$options.carouselHeight, $options.blockSectionMainStyles]) 48485 }, [ 48486 (openBlock(true), createElementBlock(Fragment, null, renderList($options.visibleBlockChildren, (childSettings, childIndex) => { 48487 return openBlock(), createBlock(resolveDynamicComponent($options.childBlockComponent), { 48488 key: childSettings.id, 48489 settings: childSettings, 48490 index: childIndex, 48491 "nested-level": $options.nestedLevelNext, 48492 "is-editable": $props.isEditable, 48493 "is-first-child": !childIndex, 48494 "is-last-child": childIndex >= $options.visibleBlockChildren.length - 1, 48495 "parent-is-horizontal": $options.isHorizontal, 48496 class: normalizeClass({ 48497 complianceRemovedBlock: childSettings._removeBlock, 48498 "block__child--active": $data.activeChildId === childSettings.id 48499 }), 48500 "is-builder-mobile": $props.isBuilderMobile, 48501 "is-first-page-level-block": $setup.isFirstPageLevelBlockFor(childSettings), 48502 "is-first-page-level-position": $setup.isFirstPageLevelPositionFor(childSettings), 48503 onImageLoaded: $options.handleResizeMainSection 48504 }, null, 40, ["settings", "index", "nested-level", "is-editable", "is-first-child", "is-last-child", "parent-is-horizontal", "class", "is-builder-mobile", "is-first-page-level-block", "is-first-page-level-position", "onImageLoaded"]); 48505 }), 128)) 48506 ], 4), [ 48507 [vShow, $data.isShowingContents && !$options.isEditingOverlay] 48508 ]), 48509 $options.showSlide ? (openBlock(), createElementBlock("ul", _hoisted_3$5, [ 48510 $data.isShowingContents && $options.hasSlideControls && $options.displayCarouselArrows ? (openBlock(), createElementBlock("div", { 48511 key: 0, 48512 class: "block__control block__control_slide", 48513 tabindex: "0", 48514 "aria-label": "Carousel Backward", 48515 role: "button", 48516 onClick: _cache[0] || (_cache[0] = (...args) => $options.showPreviousSlide && $options.showPreviousSlide(...args)), 48517 onKeyup: _cache[1] || (_cache[1] = withKeys((...args) => $options.showPreviousSlide && $options.showPreviousSlide(...args), ["enter"])) 48518 }, [ 48519 createVNode(_component_CoreIcon, { 48520 style: { "height": "48px", "width": "48px" }, 48521 icon: "carousel-backward", 48522 settings: { alt: "Previous slide" } 48523 }) 48524 ], 32)) : createCommentVNode("", true), 48525 (openBlock(true), createElementBlock(Fragment, null, renderList($options.slidePages, (slide, slideIndex) => { 48526 return openBlock(), createElementBlock("li", { 48527 key: slideIndex, 48528 "data-testid": "slider-item", 48529 class: normalizeClass({ 48530 block__control_nav_item: true, 48531 "block__control_nav_item--active": $data.activeChildId === slide.id 48532 }), 48533 tabindex: "0", 48534 "aria-label": `${slideIndex + 1} Carousel Slide`, 48535 role: "button", 48536 onClick: ($event) => $options.setActiveChild(slide.id), 48537 onKeyup: withKeys(($event) => $options.setActiveChild(slide.id), ["enter"]) 48538 }, toDisplayString(slideIndex + 1), 43, _hoisted_4$3); 48539 }), 128)), 48540 $data.isShowingContents && $options.hasSlideControls && $options.displayCarouselArrows ? (openBlock(), createElementBlock("div", { 48541 key: 1, 48542 class: "block__control block__control_slide", 48543 tabindex: "0", 48544 "aria-label": "Carousel Forward", 48545 role: "button", 48546 onClick: _cache[2] || (_cache[2] = (...args) => $options.showNextSlide && $options.showNextSlide(...args)), 48547 onKeyup: _cache[3] || (_cache[3] = withKeys((...args) => $options.showNextSlide && $options.showNextSlide(...args), ["enter"])) 48548 }, [ 48549 createVNode(_component_CoreIcon, { 48550 style: { "height": "48px", "width": "48px" }, 48551 icon: "carousel-forward", 48552 settings: { alt: "Next slide" } 48553 }) 48554 ], 32)) : createCommentVNode("", true) 48555 ])) : createCommentVNode("", true), 48556 $options.showOverlayLayer ? (openBlock(), createElementBlock("div", _hoisted_5$3, [ 48557 (openBlock(), createBlock(resolveDynamicComponent($options.childBlockComponent), { 48558 settings: $options.overlayBlock, 48559 index: $options.overlayChildIndex, 48560 "nested-level": $options.nestedLevelNext, 48561 "is-editable": $props.isEditable, 48562 "is-first-child": true, 48563 "is-last-child": true, 48564 "is-builder-mobile": $props.isBuilderMobile, 48565 "is-first-page-level-block": $setup.shouldDeferToChildren, 48566 "is-first-page-level-position": $props.isFirstPageLevelPosition 48567 }, null, 8, ["settings", "index", "nested-level", "is-editable", "is-builder-mobile", "is-first-page-level-block", "is-first-page-level-position"])) 48568 ])) : createCommentVNode("", true) 48569 ], 10, _hoisted_1$3g); 48570} 48571const CoreBlockContainer = /* @__PURE__ */ _export_sfc(_sfc_main$3g, [["render", _sfc_render$2$]]); 48572const CoreBlockContainer$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 48573 __proto__: null, 48574 default: CoreBlockContainer 48575}, Symbol.toStringTag, { value: "Module" })); 48576const _sfc_main$3f = { 48577 props: { 48578 settings: { 48579 type: Object, 48580 required: false, 48581 default: () => { 48582 } 48583 } 48584 }, 48585 computed: { 48586 alt() { 48587 var _a, _b; 48588 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 48589 }, 48590 id() { 48591 var _a, _b; 48592 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 48593 } 48594 } 48595}; 48596const _hoisted_1$3f = ["aria-labelledby", "aria-label"]; 48597const _hoisted_2$35 = ["id"]; 48598function _sfc_render$2_(_ctx, _cache, $props, $setup, $data, $options) { 48599 return openBlock(), createElementBlock("svg", { 48600 width: "24", 48601 height: "24",
48602 viewBox: "0 0 24 24", 48603 fill: "none", 48604 xmlns: "http://www.w3.org/2000/svg", 48605 role: "img", 48606 "aria-labelledby": `icon-title-${$options.id}`, 48607 "aria-label": $options.alt 48608 }, [ 48609 createBaseVNode("title", { 48610 id: `icon-title-${$options.id}` 48611 }, toDisplayString($options.alt), 9, _hoisted_2$35), 48612 _cache[0] || (_cache[0] = createBaseVNode("path", { 48613 d: "M19 8.98865H5C3.9 8.98865 3 9.88865 3 10.9886V19.9886C3 21.0886 3.9 21.9886 5 21.9886H19C20.1 21.9886 21 21.0886 21 19.9886V10.9886C21 9.88865 20.1 8.98865 19 8.98865ZM19 19.9886H5V10.9886H19V19.9886Z", 48614 fill: "CurrentColor" 48615 }, null, -1)), 48616 _cache[1] || (_cache[1] = createBaseVNode("path", { 48617 d: "M19 2.0116H5C3.9 2.0116 3 2.9116 3 4.0116V6.0116C3 7.1116 3.9 8.0116 5 8.0116H19C20.1 8.0116 21 7.1116 21 6.0116V4.0116C21 2.9116 20.1 2.0116 19 2.0116ZM19 6.0116H5V4.0116H19V6.0116Z", 48618 fill: "CurrentColor" 48619 }, null, -1)) 48620 ], 8, _hoisted_1$3f); 48621} 48622const CoreIconAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$3f, [["render", _sfc_render$2_]]); 48623const CoreIconAccordion$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 48624 __proto__: null, 48625 default: CoreIconAccordion 48626}, Symbol.toStringTag, { value: "Module" })); 48627const _sfc_main$3e = { 48628 props: { 48629 settings: { 48630 type: Object, 48631 required: false 48632 } 48633 }, 48634 computed: { 48635 alt() { 48636 var _a, _b; 48637 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 48638 }, 48639 id() { 48640 var _a, _b; 48641 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 48642 } 48643 } 48644}; 48645const _hoisted_1$3e = ["aria-labelledby", "aria-label"]; 48646const _hoisted_2$34 = ["id"]; 48647function _sfc_render$2Z(_ctx, _cache, $props, $setup, $data, $options) { 48648 return openBlock(), createElementBlock("svg", { 48649 width: "24", 48650 height: "24", 48651 viewBox: "0 0 24 24", 48652 fill: "none", 48653 xmlns: "http://www.w3.org/2000/svg", 48654 role: "img", 48655 "aria-labelledby": `icon-title-${$options.id}`, 48656 "aria-label": $options.alt 48657 }, [ 48658 createBaseVNode("title", { 48659 id: `icon-title-${$options.id}` 48660 }, toDisplayString($options.alt), 9, _hoisted_2$34), 48661 _cache[0] || (_cache[0] = createBaseVNode("path", { 48662 d: "M20 21V19C20 17.9391 19.5786 16.9217 18.8284 16.1716C18.0783 15.4214 17.0609 15 16 15H8C6.93913 15 5.92172 15.4214 5.17157 16.1716C4.42143 16.9217 4 17.9391 4 19V21", 48663 stroke: "currentColor", 48664 "stroke-width": "2", 48665 "stroke-linecap": "round", 48666 "stroke-linejoin": "round" 48667 }, null, -1)), 48668 _cache[1] || (_cache[1] = createBaseVNode("path", { 48669 d: "M12 11C14.2091 11 16 9.20913 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20913 9.79086 11 12 11Z", 48670 stroke: "currentColor", 48671 "stroke-width": "2", 48672 "stroke-linecap": "round", 48673 "stroke-linejoin": "round" 48674 }, null, -1)) 48675 ], 8, _hoisted_1$3e); 48676} 48677const CoreIconAccount = /* @__PURE__ */ _export_sfc(_sfc_main$3e, [["render", _sfc_render$2Z]]); 48678const CoreIconAccount$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 48679 __proto__: null, 48680 default: CoreIconAccount 48681}, Symbol.toStringTag, { value: "Module" })); 48682const _hoisted_1$3d = ["aria-labelledby", "aria-label"]; 48683const _hoisted_2$33 = ["id"]; 48684const _sfc_main$3d = { 48685 __name: "CoreIconActions", 48686 props: { 48687 settings: { 48688 type: Object, 48689 required: false 48690 } 48691 }, 48692 setup(__props) { 48693 const props = __props; 48694 const alt = computed(() => { 48695 var _a, _b; 48696 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Actions"; 48697 }); 48698 const id = computed(() => { 48699 var _a, _b; 48700 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 48701 }); 48702 return (_ctx, _cache) => { 48703 return openBlock(), createElementBlock("svg", { 48704 width: "22", 48705 height: "20",
48706 viewBox: "0 0 22 20", 48707 fill: "none", 48708 xmlns: "http://www.w3.org/2000/svg", 48709 "aria-labelledby": `icon-title-${unref(id)}`, 48710 "aria-label": unref(alt) 48711 }, [ 48712 createBaseVNode("title", { 48713 id: `icon-title-${unref(id)}` 48714 }, toDisplayString(unref(alt)), 9, _hoisted_2$33), 48715 _cache[0] || (_cache[0] = createBaseVNode("path", { 48716 d: "M21 10H17L14 19L8 1L5 10H1", 48717 stroke: "currentColor", 48718 "stroke-width": "2", 48719 "stroke-linecap": "round", 48720 "stroke-linejoin": "round" 48721 }, null, -1)) 48722 ], 8, _hoisted_1$3d); 48723 }; 48724 } 48725}; 48726const CoreIconActions = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 48727 __proto__: null, 48728 default: _sfc_main$3d 48729}, Symbol.toStringTag, { value: "Module" })); 48730const _hoisted_1$3c = { 48731 width: "24", 48732 height: "24", 48733 viewBox: "0 0 24 24", 48734 fill: "none", 48735 xmlns: "http://www.w3.org/2000/svg" 48736}; 48737const _sfc_main$3c = { 48738 __name: "CoreIconActivity", 48739 props: { 48740 settings: { 48741 type: Object, 48742 required: false 48743 } 48744 }, 48745 setup(__props) { 48746 const props = __props; 48747 const alt = computed(() => { 48748 var _a, _b; 48749 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Activity & Usage"; 48750 }); 48751 return (_ctx, _cache) => { 48752 return openBlock(), createElementBlock("svg", _hoisted_1$3c, [ 48753 createBaseVNode("title", null, toDisplayString(unref(alt)), 1), 48754 _cache[0] || (_cache[0] = createBaseVNode("path", { 48755 d: "M22 12H18L15 21L9 3L6 12H2", 48756 stroke: "currentColor", 48757 "stroke-width": "2", 48758 "stroke-linecap": "round", 48759 "stroke-linejoin": "round" 48760 }, null, -1)) 48761 ]); 48762 }; 48763 } 48764}; 48765const CoreIconActivity = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 48766 __proto__: null, 48767 default: _sfc_main$3c 48768}, Symbol.toStringTag, { value: "Module" })); 48769const _sfc_main$3b = { 48770 props: { 48771 settings: { 48772 type: Object, 48773 required: false 48774 } 48775 }, 48776 computed: { 48777 alt() { 48778 var _a, _b; 48779 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 48780 }, 48781 id() { 48782 var _a, _b; 48783 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 48784 } 48785 } 48786}; 48787const _hoisted_1$3b = ["aria-labelledby", "aria-label"]; 48788const _hoisted_2$32 = ["id"]; 48789function _sfc_render$2Y(_ctx, _cache, $props, $setup, $data, $options) { 48790 return openBlock(), createElementBlock("svg", { 48791 width: "24", 48792 height: "24", 48793 viewBox: "0 0 24 24", 48794 fill: "none", 48795 xmlns: "http://www.w3.org/2000/svg", 48796 role: "img", 48797 "aria-labelledby": `icon-title-${$options.id}`, 48798 "aria-label": $options.alt 48799 }, [ 48800 createBaseVNode("title", { 48801 id: `icon-title-${$options.id}` 48802 }, toDisplayString($options.alt), 9, _hoisted_2$32), 48803 _cache[0] || (_cache[0] = createBaseVNode("path", { 48804 "fill-rule": "evenodd", 48805 "clip-rule": "evenodd", 48806 d: "M20 13.2921V18H4V6H9.17L11.014 7.844C11.0047 7.70276 11 7.56026 11 7.41667C11 6.69086 11.1205 5.9932 11.3426 5.3426L10 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V11.9074C21.4315 12.4875 20.7537 12.9602 20 13.2921Z", 48807 fill: "currentColor" 48808 }, null, -1)), 48809 _cache[1] || (_cache[1] = createBaseVNode("path", { 48810 d: "M17.4167 12C19.948 12 22 9.94801 22 7.41671C22 4.8854 19.948 2.83337 17.4167 2.83337C14.8854 2.83337 12.8333 4.8854 12.8333 7.41671C12.8333 9.94801 14.8854 12 17.4167 12Z", 48811 stroke: "currentColor", 48812 "stroke-width": "1.27907", 48813 "stroke-linecap": "round", 48814 "stroke-linejoin": "round" 48815 }, null, -1)), 48816 _cache[2] || (_cache[2] = createBaseVNode("path", { 48817 d: "M17.4166 5.58337V9.25004", 48818 stroke: "currentColor", 48819 "stroke-width": "0.916667", 48820 "stroke-linecap": "round", 48821 "stroke-linejoin": "round" 48822 }, null, -1)), 48823 _cache[3] || (_cache[3] = createBaseVNode("path", { 48824 d: "M15.5833 7.41687H19.25", 48825 stroke: "currentColor", 48826 "stroke-width": "0.916667", 48827 "stroke-linecap": "round", 48828 "stroke-linejoin": "round" 48829 }, null, -1)) 48830 ], 8, _hoisted_1$3b); 48831} 48832const CoreIconAddFolder = /* @__PURE__ */ _export_sfc(_sfc_main$3b, [["render", _sfc_render$2Y]]); 48833const CoreIconAddFolder$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 48834 __proto__: null, 48835 default: CoreIconAddFolder 48836}, Symbol.toStringTag, { value: "Module" })); 48837const _sfc_main$3a = { 48838 props: { 48839 settings: { 48840 type: Object, 48841 required: false 48842 } 48843 }, 48844 computed: { 48845 alt() { 48846 var _a, _b; 48847 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 48848 }, 48849 id() { 48850 var _a, _b; 48851 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 48852 } 48853 } 48854}; 48855const _hoisted_1$3a = ["aria-labelledby", "aria-label"]; 48856const _hoisted_2$31 = ["id"]; 48857function _sfc_render$2X(_ctx, _cache, $props, $setup, $data, $options) { 48858 return openBlock(), createElementBlock("svg", { 48859 width: "24", 48860 height: "24",
48861 viewBox: "0 0 24 24", 48862 fill: "none", 48863 xmlns: "http://www.w3.org/2000/svg", 48864 role: "img", 48865 "aria-labelledby": `icon-title-${$options.id}`, 48866 "aria-label": $options.alt 48867 }, [ 48868 createBaseVNode("title", { 48869 id: `icon-title-${$options.id}` 48870 }, toDisplayString($options.alt), 9, _hoisted_2$31), 48871 _cache[0] || (_cache[0] = createBaseVNode("path", { 48872 d: "M17.4167 12C19.948 12 22 9.94801 22 7.41671C22 4.8854 19.948 2.83337 17.4167 2.83337C14.8854 2.83337 12.8333 4.8854 12.8333 7.41671C12.8333 9.94801 14.8854 12 17.4167 12Z", 48873 stroke: "currentColor", 48874 "stroke-width": "1.27907", 48875 "stroke-linecap": "round", 48876 "stroke-linejoin": "round" 48877 }, null, -1)), 48878 _cache[1] || (_cache[1] = createBaseVNode("path", { 48879 d: "M17.4166 5.58337V9.25004", 48880 stroke: "currentColor", 48881 "stroke-width": "0.916667", 48882 "stroke-linecap": "round", 48883 "stroke-linejoin": "round" 48884 }, null, -1)), 48885 _cache[2] || (_cache[2] = createBaseVNode("path", { 48886 d: "M15.5833 7.41687H19.25", 48887 stroke: "currentColor", 48888 "stroke-width": "0.916667", 48889 "stroke-linecap": "round", 48890 "stroke-linejoin": "round" 48891 }, null, -1)), 48892 _cache[3] || (_cache[3] = createBaseVNode("path", { 48893 "fill-rule": "evenodd", 48894 "clip-rule": "evenodd", 48895 d: "M18 13.8072V19H7V5H11.4707C11.7747 4.25276 12.2154 3.57573 12.7619 3H7C5.9 3 5.01 3.9 5.01 5L5 19C5 20.1 5.89 21 6.99 21H18C19.1 21 20 20.1 20 19V13.2921C19.3787 13.5657 18.7058 13.7436 18 13.8072Z", 48896 fill: "currentColor" 48897 }, null, -1)) 48898 ], 8, _hoisted_1$3a); 48899} 48900const CoreIconAddPage = /* @__PURE__ */ _export_sfc(_sfc_main$3a, [["render", _sfc_render$2X]]); 48901const CoreIconAddPage$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 48902 __proto__: null, 48903 default: CoreIconAddPage 48904}, Symbol.toStringTag, { value: "Module" })); 48905const _sfc_main$39 = { 48906 props: { 48907 settings: { 48908 type: Object, 48909 required: false 48910 } 48911 }, 48912 computed: { 48913 alt() { 48914 var _a, _b; 48915 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 48916 }, 48917 id() { 48918 var _a, _b; 48919 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 48920 } 48921 } 48922}; 48923const _hoisted_1$39 = ["aria-labelledby", "aria-label"]; 48924const _hoisted_2$30 = ["id"]; 48925function _sfc_render$2W(_ctx, _cache, $props, $setup, $data, $options) { 48926 return openBlock(), createElementBlock("svg", { 48927 width: "24", 48928 height: "24", 48929 viewBox: "0 0 24 24", 48930 fill: "none", 48931 xmlns: "http://www.w3.org/2000/svg", 48932 role: "img", 48933 "aria-labelledby": `icon-title-${$options.id}`, 48934 "aria-label": $options.alt 48935 }, [ 48936 createBaseVNode("title", { 48937 id: `icon-title-${$options.id}` 48938 }, toDisplayString($options.alt), 9, _hoisted_2$30), 48939 _cache[0] || (_cache[0] = createBaseVNode("path", { 48940 d: "M7.005 6H17.005L11.995 12.3L7.005 6ZM4.255 5.61C6.275 8.2 10.005 13 10.005 13V19C10.005 19.55 10.455 20 11.005 20H13.005C13.555 20 14.005 19.55 14.005 19V13C14.005 13 17.725 8.2 19.745 5.61C20.255 4.95 19.785 4 18.955 4H5.045C4.215 4 3.745 4.95 4.255 5.61Z", 48941 fill: "currentColor" 48942 }, null, -1)) 48943 ], 8, _hoisted_1$39); 48944} 48945const CoreIconAdvancedSearch = /* @__PURE__ */ _export_sfc(_sfc_main$39, [["render", _sfc_render$2W]]); 48946const CoreIconAdvancedSearch$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 48947 __proto__: null, 48948 default: CoreIconAdvancedSearch 48949}, Symbol.toStringTag, { value: "Module" })); 48950const _sfc_main$38 = { 48951 props: { 48952 settings: { 48953 type: Object, 48954 required: false 48955 } 48956 }, 48957 computed: { 48958 alt() { 48959 var _a, _b; 48960 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 48961 }, 48962 id() { 48963 var _a, _b; 48964 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 48965 } 48966 } 48967}; 48968const _hoisted_1$38 = ["aria-labelledby", "aria-label"]; 48969const _hoisted_2$2$ = ["id"]; 48970function _sfc_render$2V(_ctx, _cache, $props, $setup, $data, $options) { 48971 return openBlock(), createElementBlock("svg", { 48972 width: "24", 48973 height: "24",
48974 viewBox: "0 0 24 24", 48975 fill: "none", 48976 xmlns: "http://www.w3.org/2000/svg", 48977 role: "img", 48978 "aria-labelledby": `icon-title-${$options.id}`, 48979 "aria-label": $options.alt 48980 }, [ 48981 createBaseVNode("title", { 48982 id: `icon-title-${$options.id}` 48983 }, toDisplayString($options.alt), 9, _hoisted_2$2$), 48984 _cache[0] || (_cache[0] = createBaseVNode("path", { 48985 d: "M11 2H13V7H21V10H13V14H18V17H13V22H11V17H6V14H11V10H3V7H11V2Z", 48986 fill: "currentColor" 48987 }, null, -1)) 48988 ], 8, _hoisted_1$38); 48989} 48990const CoreIconAlignCenter = /* @__PURE__ */ _export_sfc(_sfc_main$38, [["render", _sfc_render$2V]]); 48991const CoreIconAlignCenter$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 48992 __proto__: null, 48993 default: CoreIconAlignCenter 48994}, Symbol.toStringTag, { value: "Module" })); 48995const _sfc_main$37 = { 48996 props: { 48997 settings: { 48998 type: Object, 48999 required: false 49000 } 49001 }, 49002 computed: { 49003 alt() { 49004 var _a, _b; 49005 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49006 }, 49007 id() { 49008 var _a, _b; 49009 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49010 } 49011 } 49012}; 49013const _hoisted_1$37 = ["aria-labelledby", "aria-label"]; 49014const _hoisted_2$2_ = ["id"]; 49015function _sfc_render$2U(_ctx, _cache, $props, $setup, $data, $options) { 49016 return openBlock(), createElementBlock("svg", { 49017 width: "24", 49018 height: "24", 49019 viewBox: "0 0 24 24", 49020 fill: "none", 49021 xmlns: "http://www.w3.org/2000/svg", 49022 role: "img", 49023 "aria-labelledby": `icon-title-${$options.id}`, 49024 "aria-label": $options.alt 49025 }, [ 49026 createBaseVNode("title", { 49027 id: `icon-title-${$options.id}` 49028 }, toDisplayString($options.alt), 9, _hoisted_2$2_), 49029 _cache[0] || (_cache[0] = createBaseVNode("path", { 49030 d: "M4 22H2V2H4V22ZM22 7H6V10H22V7ZM16 14H6V17H16V14Z", 49031 fill: "currentColor" 49032 }, null, -1)) 49033 ], 8, _hoisted_1$37); 49034} 49035const CoreIconAlignLeft = /* @__PURE__ */ _export_sfc(_sfc_main$37, [["render", _sfc_render$2U]]); 49036const CoreIconAlignLeft$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49037 __proto__: null, 49038 default: CoreIconAlignLeft 49039}, Symbol.toStringTag, { value: "Module" })); 49040const _sfc_main$36 = { 49041 props: { 49042 settings: { 49043 type: Object, 49044 required: false 49045 } 49046 }, 49047 computed: { 49048 alt() { 49049 var _a, _b; 49050 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49051 }, 49052 id() { 49053 var _a, _b; 49054 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49055 } 49056 } 49057}; 49058const _hoisted_1$36 = ["aria-labelledby", "aria-label"]; 49059const _hoisted_2$2Z = ["id"]; 49060function _sfc_render$2T(_ctx, _cache, $props, $setup, $data, $options) { 49061 return openBlock(), createElementBlock("svg", { 49062 width: "24", 49063 height: "24", 49064 viewBox: "0 0 24 24", 49065 fill: "none", 49066 xmlns: "http://www.w3.org/2000/svg", 49067 role: "img", 49068 "aria-labelledby": `icon-title-${$options.id}`, 49069 "aria-label": $options.alt 49070 }, [ 49071 createBaseVNode("title", { 49072 id: `icon-title-${$options.id}` 49073 }, toDisplayString($options.alt), 9, _hoisted_2$2Z), 49074 _cache[0] || (_cache[0] = createBaseVNode("path", { 49075 d: "M20 2H22V22H20V2ZM2 10H18V7H2V10ZM8 17H18V14H8V17Z", 49076 fill: "currentColor" 49077 }, null, -1)) 49078 ], 8, _hoisted_1$36); 49079} 49080const CoreIconAlignRight = /* @__PURE__ */ _export_sfc(_sfc_main$36, [["render", _sfc_render$2T]]); 49081const CoreIconAlignRight$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49082 __proto__: null, 49083 default: CoreIconAlignRight 49084}, Symbol.toStringTag, { value: "Module" })); 49085const _sfc_main$35 = { 49086 props: { 49087 settings: { 49088 type: Object, 49089 required: false 49090 } 49091 }, 49092 computed: { 49093 alt() { 49094 var _a, _b; 49095 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49096 }, 49097 id() { 49098 var _a, _b; 49099 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49100 } 49101 } 49102}; 49103const _hoisted_1$35 = ["aria-labelledby", "aria-label"]; 49104const _hoisted_2$2Y = ["id"]; 49105function _sfc_render$2S(_ctx, _cache, $props, $setup, $data, $options) { 49106 return openBlock(), createElementBlock("svg", { 49107 width: "18", 49108 height: "18",
49109 viewBox: "0 0 18 18", 49110 fill: "none", 49111 xmlns: "http://www.w3.org/2000/svg", 49112 role: "img", 49113 "aria-labelledby": `icon-title-${$options.id}`, 49114 "aria-label": $options.alt 49115 }, [ 49116 createBaseVNode("title", { 49117 id: `icon-title-${$options.id}` 49118 }, toDisplayString($options.alt), 9, _hoisted_2$2Y), 49119 _cache[0] || (_cache[0] = createBaseVNode("path", { 49120 d: "M16.5 16.5H1.5V15H16.5V16.5ZM7.5 1.5H5.25V13.5H7.5V1.5ZM12.75 6H10.5V13.5H12.75V6Z", 49121 fill: "currentColor" 49122 }, null, -1)) 49123 ], 8, _hoisted_1$35); 49124} 49125const CoreIconAlignVerticalBottom = /* @__PURE__ */ _export_sfc(_sfc_main$35, [["render", _sfc_render$2S]]); 49126const CoreIconAlignVerticalBottom$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49127 __proto__: null, 49128 default: CoreIconAlignVerticalBottom 49129}, Symbol.toStringTag, { value: "Module" })); 49130const _sfc_main$34 = { 49131 props: { 49132 settings: { 49133 type: Object, 49134 required: false 49135 } 49136 }, 49137 computed: { 49138 alt() { 49139 var _a, _b; 49140 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49141 }, 49142 id() { 49143 var _a, _b; 49144 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49145 } 49146 } 49147}; 49148const _hoisted_1$34 = ["aria-labelledby", "aria-label"]; 49149const _hoisted_2$2X = ["id"]; 49150function _sfc_render$2R(_ctx, _cache, $props, $setup, $data, $options) { 49151 return openBlock(), createElementBlock("svg", { 49152 width: "18", 49153 height: "18", 49154 viewBox: "0 0 18 18", 49155 fill: "none", 49156 xmlns: "http://www.w3.org/2000/svg", 49157 role: "img", 49158 "aria-labelledby": `icon-title-${$options.id}`, 49159 "aria-label": $options.alt 49160 }, [ 49161 createBaseVNode("title", { 49162 id: `icon-title-${$options.id}` 49163 }, toDisplayString($options.alt), 9, _hoisted_2$2X), 49164 _cache[0] || (_cache[0] = createBaseVNode("path", { 49165 d: "M16.5599 8.25H12.8099V4.5H10.5599V8.25H7.55994V2.25H5.30994V8.25H1.43994V9.75H5.30994V15.75H7.55994V9.75H10.5599V13.5H12.8099V9.75H16.5599V8.25Z", 49166 fill: "currentColor" 49167 }, null, -1)) 49168 ], 8, _hoisted_1$34); 49169} 49170const CoreIconAlignVerticalCenter = /* @__PURE__ */ _export_sfc(_sfc_main$34, [["render", _sfc_render$2R]]); 49171const CoreIconAlignVerticalCenter$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49172 __proto__: null, 49173 default: CoreIconAlignVerticalCenter 49174}, Symbol.toStringTag, { value: "Module" })); 49175const _sfc_main$33 = { 49176 props: { 49177 settings: { 49178 type: Object, 49179 required: false 49180 } 49181 }, 49182 computed: { 49183 alt() { 49184 var _a, _b; 49185 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49186 }, 49187 id() { 49188 var _a, _b; 49189 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49190 } 49191 } 49192}; 49193const _hoisted_1$33 = ["aria-labelledby", "aria-label"]; 49194const _hoisted_2$2W = ["id"]; 49195function _sfc_render$2Q(_ctx, _cache, $props, $setup, $data, $options) { 49196 return openBlock(), createElementBlock("svg", { 49197 width: "18", 49198 height: "18", 49199 viewBox: "0 0 18 18", 49200 fill: "none", 49201 xmlns: "http://www.w3.org/2000/svg", 49202 role: "img", 49203 "aria-labelledby": `icon-title-${$options.id}`, 49204 "aria-label": $options.alt 49205 }, [ 49206 createBaseVNode("title", { 49207 id: `icon-title-${$options.id}` 49208 }, toDisplayString($options.alt), 9, _hoisted_2$2W), 49209 _cache[0] || (_cache[0] = createBaseVNode("path", { 49210 d: "M16.5 1.5V3H1.5V1.5H16.5ZM5.25 16.5H7.5V4.5H5.25V16.5ZM10.5 12H12.75V4.5H10.5V12Z", 49211 fill: "currentColor" 49212 }, null, -1)) 49213 ], 8, _hoisted_1$33); 49214} 49215const CoreIconAlignVerticalTop = /* @__PURE__ */ _export_sfc(_sfc_main$33, [["render", _sfc_render$2Q]]); 49216const CoreIconAlignVerticalTop$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49217 __proto__: null, 49218 default: CoreIconAlignVerticalTop 49219}, Symbol.toStringTag, { value: "Module" })); 49220const _sfc_main$32 = { 49221 props: { 49222 settings: { 49223 type: Object, 49224 required: false 49225 } 49226 }, 49227 computed: { 49228 alt() { 49229 var _a, _b; 49230 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49231 }, 49232 id() { 49233 var _a, _b; 49234 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49235 } 49236 } 49237}; 49238const _hoisted_1$32 = ["aria-labelledby", "aria-label"]; 49239const _hoisted_2$2V = ["id"]; 49240function _sfc_render$2P(_ctx, _cache, $props, $setup, $data, $options) { 49241 return openBlock(), createElementBlock("svg", { 49242 width: "25", 49243 height: "25",
49244 viewBox: "0 0 25 25", 49245 fill: "none", 49246 xmlns: "http://www.w3.org/2000/svg", 49247 role: "img", 49248 "aria-labelledby": `icon-title-${$options.id}`, 49249 "aria-label": $options.alt 49250 }, [ 49251 createBaseVNode("title", { 49252 id: `icon-title-${$options.id}` 49253 }, toDisplayString($options.alt), 9, _hoisted_2$2V), 49254 _cache[0] || (_cache[0] = createBaseVNode("path", { 49255 d: "M18.498 20.0078V10.0078", 49256 stroke: "currentColor", 49257 "stroke-width": "2", 49258 "stroke-linecap": "round", 49259 "stroke-linejoin": "round" 49260 }, null, -1)), 49261 _cache[1] || (_cache[1] = createBaseVNode("path", { 49262 d: "M12.498 20.0078V4.00781", 49263 stroke: "currentColor", 49264 "stroke-width": "2", 49265 "stroke-linecap": "round", 49266 "stroke-linejoin": "round" 49267 }, null, -1)), 49268 _cache[2] || (_cache[2] = createBaseVNode("path", { 49269 d: "M6.49805 20.0078V14.0078", 49270 stroke: "currentColor", 49271 "stroke-width": "2", 49272 "stroke-linecap": "round", 49273 "stroke-linejoin": "round" 49274 }, null, -1)) 49275 ], 8, _hoisted_1$32); 49276} 49277const CoreIconAnalytics = /* @__PURE__ */ _export_sfc(_sfc_main$32, [["render", _sfc_render$2P]]); 49278const CoreIconAnalytics$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49279 __proto__: null, 49280 default: CoreIconAnalytics 49281}, Symbol.toStringTag, { value: "Module" })); 49282const _sfc_main$31 = { 49283 props: { 49284 settings: { 49285 type: Object, 49286 required: false 49287 } 49288 }, 49289 computed: { 49290 alt() { 49291 var _a, _b; 49292 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49293 }, 49294 id() { 49295 var _a, _b; 49296 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49297 } 49298 } 49299}; 49300const _hoisted_1$31 = ["aria-labelledby", "aria-label"]; 49301const _hoisted_2$2U = ["id"]; 49302function _sfc_render$2O(_ctx, _cache, $props, $setup, $data, $options) { 49303 return openBlock(), createElementBlock("svg", { 49304 width: "24", 49305 height: "24", 49306 viewBox: "0 0 24 24", 49307 fill: "none", 49308 xmlns: "http://www.w3.org/2000/svg", 49309 role: "img", 49310 "aria-labelledby": `icon-title-${$options.id}`, 49311 "aria-label": $options.alt 49312 }, [ 49313 createBaseVNode("title", { 49314 id: `icon-title-${$options.id}` 49315 }, toDisplayString($options.alt), 9, _hoisted_2$2U), 49316 _cache[0] || (_cache[0] = createBaseVNode("g", { "clip-path": "url(#clip0_840_12490)" }, [ 49317 createBaseVNode("path", { 49318 d: "M17 15L18.55 16.55C17.59 18.24 15.22 19.59 13 19.92V11H16V9H13V7.82C14.16 7.4 15 6.3 15 5C15 3.35 13.65 2 12 2C10.35 2 9 3.35 9 5C9 6.3 9.84 7.4 11 7.82V9H8V11H11V19.92C8.78 19.59 6.41 18.24 5.45 16.55L7 15L3 12V15C3 18.88 7.92 22 12 22C16.08 22 21 18.88 21 15V12L17 15ZM12 4C12.55 4 13 4.45 13 5C13 5.55 12.55 6 12 6C11.45 6 11 5.55 11 5C11 4.45 11.45 4 12 4Z", 49319 fill: "currentColor" 49320 }) 49321 ], -1)), 49322 _cache[1] || (_cache[1] = createBaseVNode("defs", null, [ 49323 createBaseVNode("clipPath", { id: "clip0_840_12490" }, [ 49324 createBaseVNode("rect", { 49325 width: "24", 49326 height: "24", 49327 fill: "white" 49328 }) 49329 ]) 49330 ], -1)) 49331 ], 8, _hoisted_1$31); 49332} 49333const CoreIconAnchorLink = /* @__PURE__ */ _export_sfc(_sfc_main$31, [["render", _sfc_render$2O]]); 49334const CoreIconAnchorLink$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49335 __proto__: null, 49336 default: CoreIconAnchorLink 49337}, Symbol.toStringTag, { value: "Module" })); 49338const _sfc_main$30 = { 49339 props: { 49340 settings: { 49341 type: Object, 49342 required: false 49343 } 49344 }, 49345 computed: { 49346 alt() { 49347 var _a, _b; 49348 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49349 }, 49350 id() { 49351 var _a, _b; 49352 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49353 } 49354 } 49355}; 49356const _hoisted_1$30 = ["aria-labelledby", "aria-label"]; 49357const _hoisted_2$2T = ["id"]; 49358function _sfc_render$2N(_ctx, _cache, $props, $setup, $data, $options) { 49359 return openBlock(), createElementBlock("svg", { 49360 width: "24", 49361 height: "24",
49362 viewBox: "0 0 24 24", 49363 fill: "none", 49364 xmlns: "http://www.w3.org/2000/svg", 49365 role: "img", 49366 "aria-labelledby": `icon-title-${$options.id}`, 49367 "aria-label": $options.alt 49368 }, [ 49369 createBaseVNode("title", { 49370 id: `icon-title-${$options.id}` 49371 }, toDisplayString($options.alt), 9, _hoisted_2$2T), 49372 _cache[0] || (_cache[0] = createBaseVNode("path", { 49373 d: "M20.54 5.23L19.15 3.55C18.88 3.21 18.47 3 18 3H6C5.53 3 5.12 3.21 4.84 3.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V6.5C21 6.02 20.83 5.57 20.54 5.23ZM6.24 5H17.76L18.57 5.97H5.44L6.24 5ZM5 19V8H19V19H5ZM13.45 10H10.55V13H8L12 17L16 13H13.45V10Z", 49374 fill: "currentColor" 49375 }, null, -1)) 49376 ], 8, _hoisted_1$30); 49377} 49378const CoreIconArchive = /* @__PURE__ */ _export_sfc(_sfc_main$30, [["render", _sfc_render$2N]]); 49379const CoreIconArchive$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49380 __proto__: null, 49381 default: CoreIconArchive 49382}, Symbol.toStringTag, { value: "Module" })); 49383const _sfc_main$2$ = { 49384 props: { 49385 settings: { 49386 type: Object, 49387 required: false 49388 } 49389 }, 49390 computed: { 49391 alt() { 49392 var _a, _b; 49393 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49394 }, 49395 id() { 49396 var _a, _b; 49397 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49398 } 49399 } 49400}; 49401const _hoisted_1$2$ = ["aria-labelledby", "aria-label"]; 49402const _hoisted_2$2S = ["id"]; 49403function _sfc_render$2M(_ctx, _cache, $props, $setup, $data, $options) { 49404 return openBlock(), createElementBlock("svg", { 49405 width: "24", 49406 height: "24", 49407 viewBox: "0 0 24 24", 49408 fill: "none", 49409 xmlns: "http://www.w3.org/2000/svg", 49410 role: "img", 49411 "aria-labelledby": `icon-title-${$options.id}`, 49412 "aria-label": $options.alt 49413 }, [ 49414 createBaseVNode("title", { 49415 id: `icon-title-${$options.id}` 49416 }, toDisplayString($options.alt), 9, _hoisted_2$2S), 49417 _cache[0] || (_cache[0] = createBaseVNode("path", { 49418 d: "M12 5V19", 49419 stroke: "currentColor", 49420 "stroke-width": "2", 49421 "stroke-linecap": "round", 49422 "stroke-linejoin": "round" 49423 }, null, -1)), 49424 _cache[1] || (_cache[1] = createBaseVNode("path", { 49425 d: "M19 12L12 19L5 12", 49426 stroke: "currentColor", 49427 "stroke-width": "2", 49428 "stroke-linecap": "round", 49429 "stroke-linejoin": "round" 49430 }, null, -1)) 49431 ], 8, _hoisted_1$2$); 49432} 49433const CoreIconArrowDown = /* @__PURE__ */ _export_sfc(_sfc_main$2$, [["render", _sfc_render$2M]]); 49434const CoreIconArrowDown$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49435 __proto__: null, 49436 default: CoreIconArrowDown 49437}, Symbol.toStringTag, { value: "Module" })); 49438const _sfc_main$2_ = { 49439 props: { 49440 settings: { 49441 type: Object, 49442 required: false 49443 } 49444 }, 49445 computed: { 49446 alt() { 49447 var _a, _b; 49448 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49449 }, 49450 id() { 49451 var _a, _b; 49452 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49453 } 49454 } 49455}; 49456const _hoisted_1$2_ = ["aria-labelledby", "aria-label"]; 49457const _hoisted_2$2R = ["id"]; 49458function _sfc_render$2L(_ctx, _cache, $props, $setup, $data, $options) { 49459 return openBlock(), createElementBlock("svg", { 49460 width: "24", 49461 height: "24", 49462 viewBox: "0 0 24 24", 49463 fill: "none", 49464 xmlns: "http://www.w3.org/2000/svg", 49465 role: "img", 49466 "aria-labelledby": `icon-title-${$options.id}`, 49467 "aria-label": $options.alt 49468 }, [ 49469 createBaseVNode("title", { 49470 id: `icon-title-${$options.id}` 49471 }, toDisplayString($options.alt), 9, _hoisted_2$2R), 49472 _cache[0] || (_cache[0] = createBaseVNode("path", { 49473 d: "M19 12H5", 49474 stroke: "currentColor", 49475 "stroke-width": "2", 49476 "stroke-linecap": "round", 49477 "stroke-linejoin": "round" 49478 }, null, -1)), 49479 _cache[1] || (_cache[1] = createBaseVNode("path", { 49480 d: "M12 19L5 12L12 5", 49481 stroke: "currentColor", 49482 "stroke-width": "2", 49483 "stroke-linecap": "round", 49484 "stroke-linejoin": "round" 49485 }, null, -1)) 49486 ], 8, _hoisted_1$2_); 49487} 49488const CoreIconArrowLeft = /* @__PURE__ */ _export_sfc(_sfc_main$2_, [["render", _sfc_render$2L]]); 49489const CoreIconArrowLeft$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49490 __proto__: null, 49491 default: CoreIconArrowLeft 49492}, Symbol.toStringTag, { value: "Module" })); 49493const _sfc_main$2Z = { 49494 props: { 49495 settings: { 49496 type: Object, 49497 required: false 49498 } 49499 }, 49500 computed: { 49501 alt() { 49502 var _a, _b; 49503 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49504 }, 49505 id() { 49506 var _a, _b; 49507 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49508 } 49509 } 49510}; 49511const _hoisted_1$2Z = ["aria-labelledby", "aria-label"]; 49512const _hoisted_2$2Q = ["id"]; 49513function _sfc_render$2K(_ctx, _cache, $props, $setup, $data, $options) { 49514 return openBlock(), createElementBlock("svg", { 49515 width: "24", 49516 height: "24",
49517 viewBox: "0 0 24 24", 49518 fill: "none", 49519 xmlns: "http://www.w3.org/2000/svg", 49520 role: "img", 49521 "aria-labelledby": `icon-title-${$options.id}`, 49522 "aria-label": $options.alt 49523 }, [ 49524 createBaseVNode("title", { 49525 id: `icon-title-${$options.id}` 49526 }, toDisplayString($options.alt), 9, _hoisted_2$2Q), 49527 _cache[0] || (_cache[0] = createBaseVNode("path", { 49528 d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", 49529 stroke: "currentColor", 49530 "stroke-width": "2", 49531 "stroke-linecap": "round", 49532 "stroke-linejoin": "round" 49533 }, null, -1)), 49534 _cache[1] || (_cache[1] = createBaseVNode("path", { 49535 d: "M12 8L8 12L12 16", 49536 stroke: "currentColor", 49537 "stroke-width": "2", 49538 "stroke-linecap": "round", 49539 "stroke-linejoin": "round" 49540 }, null, -1)), 49541 _cache[2] || (_cache[2] = createBaseVNode("path", { 49542 d: "M16 12H8", 49543 stroke: "currentColor", 49544 "stroke-width": "2", 49545 "stroke-linecap": "round", 49546 "stroke-linejoin": "round" 49547 }, null, -1)) 49548 ], 8, _hoisted_1$2Z); 49549} 49550const CoreIconArrowLeftCircle = /* @__PURE__ */ _export_sfc(_sfc_main$2Z, [["render", _sfc_render$2K]]); 49551const CoreIconArrowLeftCircle$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49552 __proto__: null, 49553 default: CoreIconArrowLeftCircle 49554}, Symbol.toStringTag, { value: "Module" })); 49555const _sfc_main$2Y = { 49556 props: { 49557 settings: { 49558 type: Object, 49559 required: false 49560 } 49561 }, 49562 computed: { 49563 alt() { 49564 var _a, _b; 49565 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49566 }, 49567 id() { 49568 var _a, _b; 49569 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49570 } 49571 } 49572}; 49573const _hoisted_1$2Y = ["aria-labelledby", "aria-label"]; 49574const _hoisted_2$2P = ["id"]; 49575function _sfc_render$2J(_ctx, _cache, $props, $setup, $data, $options) { 49576 return openBlock(), createElementBlock("svg", { 49577 width: "24", 49578 height: "24", 49579 viewBox: "0 0 24 24", 49580 fill: "none", 49581 xmlns: "http://www.w3.org/2000/svg", 49582 role: "img", 49583 "aria-labelledby": `icon-title-${$options.id}`, 49584 "aria-label": $options.alt 49585 }, [ 49586 createBaseVNode("title", { 49587 id: `icon-title-${$options.id}` 49588 }, toDisplayString($options.alt), 9, _hoisted_2$2P), 49589 _cache[0] || (_cache[0] = createBaseVNode("path", { 49590 d: "M5 12H19", 49591 stroke: "currentColor", 49592 "stroke-width": "2", 49593 "stroke-linecap": "round", 49594 "stroke-linejoin": "round" 49595 }, null, -1)), 49596 _cache[1] || (_cache[1] = createBaseVNode("path", { 49597 d: "M12 5L19 12L12 19", 49598 stroke: "currentColor", 49599 "stroke-width": "2", 49600 "stroke-linecap": "round", 49601 "stroke-linejoin": "round" 49602 }, null, -1)) 49603 ], 8, _hoisted_1$2Y); 49604} 49605const CoreIconArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$2Y, [["render", _sfc_render$2J]]); 49606const CoreIconArrowRight$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49607 __proto__: null, 49608 default: CoreIconArrowRight 49609}, Symbol.toStringTag, { value: "Module" })); 49610const _sfc_main$2X = { 49611 props: { 49612 settings: { 49613 type: Object, 49614 required: false 49615 } 49616 }, 49617 computed: { 49618 alt() { 49619 var _a, _b; 49620 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49621 }, 49622 id() { 49623 var _a, _b; 49624 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49625 } 49626 } 49627}; 49628const _hoisted_1$2X = ["aria-labelledby", "aria-label"]; 49629const _hoisted_2$2O = ["id"]; 49630function _sfc_render$2I(_ctx, _cache, $props, $setup, $data, $options) { 49631 return openBlock(), createElementBlock("svg", { 49632 width: "24", 49633 height: "24", 49634 viewBox: "0 0 24 24", 49635 fill: "none", 49636 xmlns: "http://www.w3.org/2000/svg", 49637 role: "img", 49638 "aria-labelledby": `icon-title-${$options.id}`, 49639 "aria-label": $options.alt 49640 }, [ 49641 createBaseVNode("title", { 49642 id: `icon-title-${$options.id}` 49643 }, toDisplayString($options.alt), 9, _hoisted_2$2O), 49644 _cache[0] || (_cache[0] = createBaseVNode("path", { 49645 d: "M12 19V5", 49646 stroke: "currentColor", 49647 "stroke-width": "2", 49648 "stroke-linecap": "round", 49649 "stroke-linejoin": "round" 49650 }, null, -1)), 49651 _cache[1] || (_cache[1] = createBaseVNode("path", { 49652 d: "M5 12L12 5L19 12", 49653 stroke: "currentColor", 49654 "stroke-width": "2", 49655 "stroke-linecap": "round", 49656 "stroke-linejoin": "round" 49657 }, null, -1)) 49658 ], 8, _hoisted_1$2X); 49659} 49660const CoreIconArrowUp = /* @__PURE__ */ _export_sfc(_sfc_main$2X, [["render", _sfc_render$2I]]); 49661const CoreIconArrowUp$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49662 __proto__: null, 49663 default: CoreIconArrowUp 49664}, Symbol.toStringTag, { value: "Module" })); 49665const _sfc_main$2W = { 49666 props: { 49667 settings: { 49668 type: Object, 49669 required: false 49670 } 49671 }, 49672 computed: { 49673 alt() { 49674 var _a, _b; 49675 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49676 }, 49677 id() { 49678 var _a, _b; 49679 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49680 } 49681 } 49682}; 49683const _hoisted_1$2W = ["aria-labelledby", "aria-label"]; 49684const _hoisted_2$2N = ["id"]; 49685function _sfc_render$2H(_ctx, _cache, $props, $setup, $data, $options) { 49686 return openBlock(), createElementBlock("svg", { 49687 width: "25", 49688 height: "25",
49689 viewBox: "0 0 25 25", 49690 fill: "none", 49691 xmlns: "http://www.w3.org/2000/svg", 49692 role: "img", 49693 "aria-labelledby": `icon-title-${$options.id}`, 49694 "aria-label": $options.alt 49695 }, [ 49696 createBaseVNode("title", { 49697 id: `icon-title-${$options.id}` 49698 }, toDisplayString($options.alt), 9, _hoisted_2$2N), 49699 _cache[0] || (_cache[0] = createStaticVNode('<g clip-path="url(#clip0_1006_14979)"><path d="M19.7917 5.20833V19.7917H5.20833V5.20833H19.7917ZM19.7917 3.125H5.20833C4.0625 3.125 3.125 4.0625 3.125 5.20833V19.7917C3.125 20.9375 4.0625 21.875 5.20833 21.875H19.7917C20.9375 21.875 21.875 20.9375 21.875 19.7917V5.20833C21.875 4.0625 20.9375 3.125 19.7917 3.125Z" fill="currentColor"></path><path d="M14.5833 17.7083H7.29167V15.625H14.5833V17.7083ZM17.7083 13.5416H7.29167V11.4583H17.7083V13.5416ZM17.7083 9.37496H7.29167V7.29163H17.7083V9.37496Z" fill="currentColor"></path></g><defs><clipPath id="clip0_1006_14979"><rect width="25" height="25" fill="white"></rect></clipPath></defs>', 2)) 49700 ], 8, _hoisted_1$2W); 49701} 49702const CoreIconArticle = /* @__PURE__ */ _export_sfc(_sfc_main$2W, [["render", _sfc_render$2H]]); 49703const CoreIconArticle$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49704 __proto__: null, 49705 default: CoreIconArticle 49706}, Symbol.toStringTag, { value: "Module" })); 49707const _sfc_main$2V = { 49708 props: { 49709 settings: { 49710 type: Object, 49711 required: false, 49712 default: () => { 49713 } 49714 } 49715 }, 49716 computed: { 49717 alt() { 49718 var _a, _b; 49719 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49720 }, 49721 id() { 49722 var _a, _b; 49723 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49724 } 49725 } 49726}; 49727const _hoisted_1$2V = ["aria-labelledby", "aria-label"]; 49728const _hoisted_2$2M = ["id"]; 49729function _sfc_render$2G(_ctx, _cache, $props, $setup, $data, $options) { 49730 return openBlock(), createElementBlock("svg", { 49731 xmlns: "http://www.w3.org/2000/svg", 49732 width: "24", 49733 height: "24", 49734 viewBox: "0 0 24 24", 49735 fill: "none", 49736 role: "img", 49737 "aria-labelledby": `icon-title-${$options.id}`, 49738 "aria-label": $options.alt 49739 }, [ 49740 createBaseVNode("title", { 49741 id: `icon-title-${$options.id}` 49742 }, toDisplayString($options.alt), 9, _hoisted_2$2M), 49743 _cache[0] || (_cache[0] = createBaseVNode("path", { 49744 d: "M3 12H21", 49745 stroke: "CurrentColor", 49746 "stroke-width": "2", 49747 "stroke-linecap": "round", 49748 "stroke-linejoin": "round" 49749 }, null, -1)), 49750 _cache[1] || (_cache[1] = createBaseVNode("path", { 49751 d: "M3 6H21", 49752 stroke: "CurrentColor", 49753 "stroke-width": "2", 49754 "stroke-linecap": "round", 49755 "stroke-linejoin": "round" 49756 }, null, -1)), 49757 _cache[2] || (_cache[2] = createBaseVNode("path", { 49758 d: "M3 18H21", 49759 stroke: "CurrentColor", 49760 "stroke-width": "2", 49761 "stroke-linecap": "round", 49762 "stroke-linejoin": "round" 49763 }, null, -1)) 49764 ], 8, _hoisted_1$2V); 49765} 49766const CoreIconBars = /* @__PURE__ */ _export_sfc(_sfc_main$2V, [["render", _sfc_render$2G]]); 49767const CoreIconBars$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49768 __proto__: null, 49769 default: CoreIconBars 49770}, Symbol.toStringTag, { value: "Module" })); 49771const _sfc_main$2U = { 49772 props: { 49773 settings: { 49774 type: Object, 49775 required: false 49776 } 49777 }, 49778 computed: { 49779 alt() { 49780 var _a, _b; 49781 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49782 }, 49783 id() { 49784 var _a, _b; 49785 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49786 } 49787 } 49788}; 49789const _hoisted_1$2U = ["aria-labelledby", "aria-label"]; 49790const _hoisted_2$2L = ["id"]; 49791function _sfc_render$2F(_ctx, _cache, $props, $setup, $data, $options) { 49792 return openBlock(), createElementBlock("svg", { 49793 width: "24", 49794 height: "24", 49795 viewBox: "0 0 24 24", 49796 fill: "none", 49797 xmlns: "http://www.w3.org/2000/svg", 49798 role: "img", 49799 "aria-labelledby": `icon-title-${$options.id}`, 49800 "aria-label": $options.alt 49801 }, [ 49802 createBaseVNode("title", { 49803 id: `icon-title-${$options.id}` 49804 }, toDisplayString($options.alt), 9, _hoisted_2$2L), 49805 _cache[0] || (_cache[0] = createBaseVNode("path", { 49806 d: "M12 21.75C13.1 21.75 14 20.85 14 19.75H10C10 20.85 10.9 21.75 12 21.75ZM18 15.75V10.75C18 7.68 16.37 5.11 13.5 4.43V3.75C13.5 2.92 12.83 2.25 12 2.25C11.17 2.25 10.5 2.92 10.5 3.75V4.43C7.64 5.11 6 7.67 6 10.75V15.75L4 17.75V18.7
498065H20V17.75L18 15.75ZM16 16.75H8V10.75C8 8.27 9.51 6.25 12 6.25C14.49 6.25 16 8.27 16 10.75V16.75Z", 49807 fill: "black" 49808 }, null, -1)) 49809 ], 8, _hoisted_1$2U); 49810} 49811const CoreIconBell = /* @__PURE__ */ _export_sfc(_sfc_main$2U, [["render", _sfc_render$2F]]); 49812const CoreIconBell$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49813 __proto__: null, 49814 default: CoreIconBell 49815}, Symbol.toStringTag, { value: "Module" })); 49816const _sfc_main$2T = { 49817 props: { 49818 settings: { 49819 type: Object, 49820 required: false 49821 } 49822 }, 49823 computed: { 49824 alt() { 49825 var _a, _b; 49826 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49827 }, 49828 id() { 49829 var _a, _b; 49830 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49831 } 49832 } 49833}; 49834const _hoisted_1$2T = ["aria-labelledby", "aria-label"]; 49835const _hoisted_2$2K = ["id"]; 49836function _sfc_render$2E(_ctx, _cache, $props, $setup, $data, $options) { 49837 return openBlock(), createElementBlock("svg", { 49838 width: "24", 49839 height: "24", 49840 viewBox: "0 0 24 24", 49841 fill: "none", 49842 xmlns: "http://www.w3.org/2000/svg", 49843 role: "img", 49844 "aria-labelledby": `icon-title-${$options.id}`, 49845 "aria-label": $options.alt 49846 }, [ 49847 createBaseVNode("title", { 49848 id: `icon-title-${$options.id}` 49849 }, toDisplayString($options.alt), 9, _hoisted_2$2K), 49850 _cache[0] || (_cache[0] = createBaseVNode("path", { 49851 d: "M18.36 9L18.96 12H5.04L5.64 9H18.36ZM20 4H4V6H20V4ZM20 7H4L3 12V14H4V20H14V14H18V20H20V14H21V12L20 7ZM6 18V14H12V18H6Z", 49852 fill: "black" 49853 }, null, -1)) 49854 ], 8, _hoisted_1$2T); 49855} 49856const CoreIconBilling = /* @__PURE__ */ _export_sfc(_sfc_main$2T, [["render", _sfc_render$2E]]); 49857const CoreIconBilling$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49858 __proto__: null, 49859 default: CoreIconBilling 49860}, Symbol.toStringTag, { value: "Module" })); 49861const _hoisted_1$2S = ["aria-labelledby", "aria-label"]; 49862const _hoisted_2$2J = ["id"]; 49863const _sfc_main$2S = { 49864 __name: "CoreIconBlock", 49865 props: { 49866 settings: { 49867 type: Object, 49868 required: false 49869 } 49870 }, 49871 setup(__props) { 49872 const props = __props; 49873 const alt = computed(() => { 49874 var _a, _b; 49875 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Actions"; 49876 }); 49877 const id = computed(() => { 49878 var _a, _b; 49879 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 49880 }); 49881 return (_ctx, _cache) => { 49882 return openBlock(), createElementBlock("svg", { 49883 width: "24", 49884 height: "24", 49885 xmlns: "http://www.w3.org/2000/svg",
49886 viewBox: "0 0 24 24", 49887 "aria-labelledby": `icon-title-${unref(id)}`, 49888 "aria-label": unref(alt) 49889 }, [ 49890 createBaseVNode("title", { 49891 id: `icon-title-${unref(id)}` 49892 }, toDisplayString(unref(alt)), 9, _hoisted_2$2J), 49893 _cache[0] || (_cache[0] = createBaseVNode("path", { d: "M5 3C3.9 3 3 3.9 3 5S2.1 7 1 7V9C2.1 9 3 9.9 3 11S3.9 13 5 13H7V11H5V10C5 8.9 4.1 8 3 8C4.1 8 5 7.1 5 6V5H7V3M11 3C12.1 3 13 3.9 13 5S13.9 7 15 7V9C13.9 9 13 9.9 13 11S12.1 13 11 13H9V11H11V10C11 8.9 11.9 8 13 8C11.9 8 11 7.1 11 6V5H9V3H11M22 6V18C22 19.11 21.11 20 20 20H4C2.9 20 2 19.11 2 18V15H4V18H20V6H17.03V4H20C21.11 4 22 4.89 22 6Z" }, null, -1)) 49894 ], 8, _hoisted_1$2S); 49895 }; 49896 } 49897}; 49898const CoreIconBlock = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49899 __proto__: null, 49900 default: _sfc_main$2S 49901}, Symbol.toStringTag, { value: "Module" })); 49902const _sfc_main$2R = { 49903 props: { 49904 settings: { 49905 type: Object, 49906 required: false 49907 } 49908 }, 49909 computed: { 49910 alt() { 49911 var _a, _b; 49912 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49913 }, 49914 id() { 49915 var _a, _b; 49916 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49917 } 49918 } 49919}; 49920const _hoisted_1$2R = ["aria-labelledby", "aria-label"]; 49921const _hoisted_2$2I = ["id"]; 49922function _sfc_render$2D(_ctx, _cache, $props, $setup, $data, $options) { 49923 return openBlock(), createElementBlock("svg", { 49924 xmlns: "http://www.w3.org/2000/svg", 49925 width: "24", 49926 height: "25", 49927 viewBox: "0 0 24 25", 49928 fill: "none", 49929 role: "img", 49930 "aria-labelledby": `icon-title-${$options.id}`, 49931 "aria-label": $options.alt 49932 }, [ 49933 createBaseVNode("title", { 49934 id: `icon-title-${$options.id}` 49935 }, toDisplayString($options.alt), 9, _hoisted_2$2I), 49936 _cache[0] || (_cache[0] = createBaseVNode("path", { 49937 d: "M21 3.17773H3C1.9 3.17773 1 4.07773 1 5.17773V19.1777C1 20.2777 1.9 21.1777 3 21.1777H21C22.1 21.1777 23 20.2777 23 19.1777V5.17773C23 4.07773 22.1 3.17773 21 3.17773ZM21 19.1777H3V5.17773H21V19.1777ZM5 15.1777H19V18.1777H5V15.1777Z", 49938 fill: "currentColor" 49939 }, null, -1)) 49940 ], 8, _hoisted_1$2R); 49941} 49942const CoreIconBottomBanner = /* @__PURE__ */ _export_sfc(_sfc_main$2R, [["render", _sfc_render$2D]]); 49943const CoreIconBottomBanner$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49944 __proto__: null, 49945 default: CoreIconBottomBanner 49946}, Symbol.toStringTag, { value: "Module" })); 49947const _sfc_main$2Q = { 49948 props: { 49949 settings: { 49950 type: Object, 49951 required: false 49952 } 49953 }, 49954 computed: { 49955 alt() { 49956 var _a, _b; 49957 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 49958 }, 49959 id() { 49960 var _a, _b; 49961 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 49962 } 49963 } 49964}; 49965const _hoisted_1$2Q = ["aria-labelledby", "aria-label"]; 49966const _hoisted_2$2H = ["id"]; 49967function _sfc_render$2C(_ctx, _cache, $props, $setup, $data, $options) { 49968 return openBlock(), createElementBlock("svg", { 49969 width: "24", 49970 height: "24", 49971 viewBox: "0 0 24 24", 49972 fill: "none", 49973 xmlns: "http://www.w3.org/2000/svg", 49974 role: "img", 49975 "aria-labelledby": `icon-title-${$options.id}`, 49976 "aria-label": $options.alt 49977 }, [ 49978 createBaseVNode("title", { 49979 id: `icon-title-${$options.id}` 49980 }, toDisplayString($options.alt), 9, _hoisted_2$2H), 49981 _cache[0] || (_cache[0] = createBaseVNode("path", { 49982 d: "M7 14.0025C5.34 14.0025 4 15.3425 4 17.0025C4 18.3125 2.84 19.0025 2 19.0025C2.92 20.2225 4.49 21.0025 6 21.0025C8.21 21.0025 10 19.2125 10 17.0025C10 15.3425 8.66 14.0025 7 14.0025ZM20.71 4.6325L19.37 3.2925C18.98 2.9025 18.35 2.9025 17.96 3.2925L9 12.2525L11.75 15.0025L20.71 6.0425C21.1 5.6525 21.1 5.0225 20.71 4.6325Z", 49983 fill: "currentColor" 49984 }, null, -1)) 49985 ], 8, _hoisted_1$2Q); 49986} 49987const CoreIconBrush = /* @__PURE__ */ _export_sfc(_sfc_main$2Q, [["render", _sfc_render$2C]]); 49988const CoreIconBrush$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 49989 __proto__: null, 49990 default: CoreIconBrush 49991}, Symbol.toStringTag, { value: "Module" })); 49992const _sfc_main$2P = { 49993 props: { 49994 settings: { 49995 type: Object, 49996 required: false 49997 } 49998 }, 49999 computed: { 50000 alt() { 50001 var _a, _b; 50002 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50003 }, 50004 id() { 50005 var _a, _b; 50006 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50007 } 50008 } 50009}; 50010const _hoisted_1$2P = ["aria-labelledby", "aria-label"];
50011const _hoisted_2$2G = ["id"]; 50012function _sfc_render$2B(_ctx, _cache, $props, $setup, $data, $options) { 50013 return openBlock(), createElementBlock("svg", { 50014 width: "24", 50015 height: "24", 50016 viewBox: "0 0 24 24", 50017 fill: "none", 50018 xmlns: "http://www.w3.org/2000/svg", 50019 role: "img", 50020 "aria-labelledby": `icon-title-${$options.id}`, 50021 "aria-label": $options.alt 50022 }, [ 50023 createBaseVNode("title", { 50024 id: `icon-title-${$options.id}` 50025 }, toDisplayString($options.alt), 9, _hoisted_2$2G), 50026 _cache[0] || (_cache[0] = createBaseVNode("path", { 50027 d: "M19 13H5C3.9 13 3 13.9 3 15V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V15C21 13.9 20.1 13 19 13ZM19 19H5V15H19V19Z", 50028 fill: "currentColor" 50029 }, null, -1)), 50030 _cache[1] || (_cache[1] = createBaseVNode("path", { 50031 d: "M19 3H5C3.9 3 3 3.9 3 5V9C3 10.1 3.9 11 5 11H19C20.1 11 21 10.1 21 9V5C21 3.9 20.1 3 19 3ZM19 9H5V5H19V9Z", 50032 fill: "currentColor" 50033 }, null, -1)) 50034 ], 8, _hoisted_1$2P); 50035} 50036const CoreIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$2P, [["render", _sfc_render$2B]]); 50037const CoreIconButton$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50038 __proto__: null, 50039 default: CoreIconButton 50040}, Symbol.toStringTag, { value: "Module" })); 50041const _sfc_main$2O = { 50042 props: { 50043 settings: { 50044 type: Object, 50045 required: false 50046 } 50047 }, 50048 computed: { 50049 alt() { 50050 var _a, _b; 50051 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50052 }, 50053 id() { 50054 var _a, _b; 50055 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50056 } 50057 } 50058}; 50059const _hoisted_1$2O = ["aria-labelledby", "aria-label"]; 50060const _hoisted_2$2F = ["id"]; 50061function _sfc_render$2A(_ctx, _cache, $props, $setup, $data, $options) { 50062 return openBlock(), createElementBlock("svg", { 50063 width: "24", 50064 height: "24", 50065 viewBox: "0 0 24 24", 50066 fill: "none", 50067 xmlns: "http://www.w3.org/2000/svg", 50068 role: "img", 50069 "aria-labelledby": `icon-title-${$options.id}`, 50070 "aria-label": $options.alt 50071 }, [ 50072 createBaseVNode("title", { 50073 id: `icon-title-${$options.id}` 50074 }, toDisplayString($options.alt), 9, _hoisted_2$2F), 50075 _cache[0] || (_cache[0] = createBaseVNode("path", { 50076 d: "M19 4H5C3.89543 4 3 4.89543 3 6V20C3 21.1046 3.89543 22 5 22H19C20.1046 22 21 21.1046 21 20V6C21 4.89543 20.1046 4 19 4Z", 50077 stroke: "currentColor", 50078 "stroke-width": "2", 50079 "stroke-linecap": "round", 50080 "stroke-linejoin": "round" 50081 }, null, -1)), 50082 _cache[1] || (_cache[1] = createBaseVNode("path", { 50083 d: "M16 2V6", 50084 stroke: "currentColor", 50085 "stroke-width": "2", 50086 "stroke-linecap": "round", 50087 "stroke-linejoin": "round" 50088 }, null, -1)), 50089 _cache[2] || (_cache[2] = createBaseVNode("path", { 50090 d: "M8 2V6", 50091 stroke: "currentColor", 50092 "stroke-width": "2", 50093 "stroke-linecap": "round", 50094 "stroke-linejoin": "round" 50095 }, null, -1)), 50096 _cache[3] || (_cache[3] = createBaseVNode("path", { 50097 d: "M3 10H21", 50098 stroke: "currentColor", 50099 "stroke-width": "2", 50100 "stroke-linecap": "round", 50101 "stroke-linejoin": "round" 50102 }, null, -1)) 50103 ], 8, _hoisted_1$2O); 50104} 50105const CoreIconCalendar = /* @__PURE__ */ _export_sfc(_sfc_main$2O, [["render", _sfc_render$2A]]); 50106const CoreIconCalendar$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50107 __proto__: null, 50108 default: CoreIconCalendar 50109}, Symbol.toStringTag, { value: "Module" })); 50110const _hoisted_1$2N = ["aria-labelledby", "aria-label"]; 50111const _hoisted_2$2E = ["id"]; 50112const _sfc_main$2N = { 50113 __name: "CoreIconCalendly", 50114 props: { 50115 settings: { 50116 type: Object, 50117 required: false 50118 } 50119 }, 50120 setup(__props) { 50121 const props = __props; 50122 const alt = computed(() => { 50123 var _a, _b; 50124 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Actions"; 50125 }); 50126 const id = computed(() => { 50127 var _a, _b; 50128 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 50129 }); 50130 return (_ctx, _cache) => { 50131 return openBlock(), createElementBlock("svg", { 50132 width: "18", 50133 height: "18", 50134 fill: "none", 50135 xmlns: "http://www.w3.org/2000/svg", 50136 style: { "vertical-align": "middle" }, 50137 "aria-labelledby": `icon-title-${unref(id)}`, 50138 "aria-label": unref(alt) 50139 }, [ 50140 createBaseVNode("title", { 50141 id: `icon-title-${unref(id)}` 50142 }, toDisplayString(unref(alt)), 9, _hoisted_2$2E), 50143 _cache[0] || (_cache[0] = createBaseVNode("path", { 50144 d: "M9.663 6.24h-.75c-1.38 0-2.288.985-2.288 2.247v1.025c0 1.262.907 2.247 2.288 2.247h.75c2.011 0 1.853-2.05 4.89-2.05.289 0 .576.026.858.079a4.517 4.517 0 0 0 0-1.577 4.65 4.65 0 0 1-.857.079c-3.039 0-2.88-2.05-4.891-2.05Z", 50145 fill: "currentColor" 50146 }, null, -1)), 50147 _cache[1] || (_cache[1] = createBaseVNode("path", {
50148 d: "M17.149 10.528a4.232 4.232 0 0 0-1.74-.744v.015c-.055.3-.14.595-.253.878.52.08 1.013.282 1.44.59 0 .004-.004.01-.005.014-1.264 4.077-5.608 6.362-9.702 5.103-4.093-1.26-6.387-5.587-5.123-9.664C3.03 2.643 7.374.358 11.467 1.617a7.74 7.74 0 0 1 5.124 5.103c0 .005.002.01.003.014-.426.308-.92.51-1.44.59.115.284.199.578.254.879v.014a4.244 4.244 0 0 0 1.74-.745c.496-.366.4-.779.325-1.023C16.057 1.877 11.19-.685 6.6.724 2.011 2.134-.562 6.98.853 11.552c1.416 4.57 6.283 7.134 10.872 5.724a8.681 8.681 0 0 0 5.748-5.724c.075-.245.172-.658-.324-1.024Z", 50149 fill: "currentColor" 50150 }, null, -1)), 50151 _cache[2] || (_cache[2] = createBaseVNode("path", { 50152 "fill-rule": "evenodd", 50153 "clip-rule": "evenodd", 50154 d: "m15.176 7.344-.004-.012a4.442 4.442 0 0 0-.277-.569l-.88-1.525a4.524 4.524 0 0 0-3.918-2.261H8.334c-1.616 0-3.11.861-3.917 2.26l-.881 1.526a4.525 4.525 0 0 0 0 4.524l.88 1.526a4.524 4.524 0 0 0 3.918 2.26h1.763c1.615 0 3.109-.861 3.917-2.26l.881-1.524a4.5 4.5 0 0 0 .277-.57l.005-.01a3.635 3.635 0 0 0-.602-.05c-1.311 0-1.806.438-2.375.94l-.008.006-.001.002c-.553.489-1.24 1.096-2.489 1.096h-.747c-.905 0-1.726-.328-2.314-.923-.575-.582-.891-1.377-.891-2.242V8.516c0-.423.075-.83.22-1.202.151-.391.378-.745.672-1.043.587-.595 1.41-.923 2.314-.923h.747c1.25 0 1.938.609 2.489 1.098l.009.008c.57.501 1.065.938 2.375.938a3.818 3.818 0 0 0 .6-.049v.001Z", 50155 fill: "currentColor" 50156 }, null, -1)) 50157 ], 8, _hoisted_1$2N); 50158 }; 50159 } 50160}; 50161const CoreIconCalendly = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50162 __proto__: null, 50163 default: _sfc_main$2N 50164}, Symbol.toStringTag, { value: "Module" })); 50165const _sfc_main$2M = { 50166 name: "CoreIconCamera", 50167 props: { 50168 width: { 50169 type: Number, 50170 default: 28 50171 }, 50172 height: { 50173 type: Number, 50174 default: 27 50175 }, 50176 settings: { 50177 type: Object, 50178 required: false 50179 } 50180 }, 50181 computed: { 50182 alt() { 50183 var _a, _b; 50184 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50185 }, 50186 id() { 50187 var _a, _b; 50188 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50189 } 50190 } 50191}; 50192const _hoisted_1$2M = ["width", "height", "aria-labelledby", "aria-label"]; 50193const _hoisted_2$2D = ["id"]; 50194const _hoisted_3$4 = ["width", "height"]; 50195function _sfc_render$2z(_ctx, _cache, $props, $setup, $data, $options) { 50196 return openBlock(), createElementBlock("svg", { 50197 width: $props.width, 50198 height: $props.height, 50199 viewBox: "0 0 25 24", 50200 fill: "none", 50201 xmlns: "http://www.w3.org/2000/svg", 50202 "aria-labelledby": `icon-title-${$options.id}`, 50203 "aria-label": $options.alt 50204 }, [ 50205 createBaseVNode("title", { 50206 id: `icon-title-${$options.id}` 50207 }, toDisplayString($options.alt), 9, _hoisted_2$2D), 50208 createBaseVNode("rect", { 50209 width: $props.width, 50210 height: $props.height, 50211 fill: "currentColor" 50212 }, null, 8, _hoisted_3$4), 50213 _cache[0] || (_cache[0] = createBaseVNode("path", { 50214 d: "M21 17.4092C21 17.819 20.8372 18.2121 20.5474 18.502C20.2575 18.7918 19.8645 18.9546 19.4546 18.9546H5.54549C5.1356 18.9546 4.74251 18.7918 4.45268 18.502C4.16285 18.2121 4.00003 17.819 4.00003 17.4092V8.90917C4.00003 8.49929 4.16285 8.1062 4.45268 7.81637C4.74251 7.52654 5.1356 7.36371 5.54549 7.36371H8.63639L10.1818 5.04553H14.8182L16.3637 7.36371H19.4546C19.8645 7.36371 20.2575 7.52654 20.5474 7.81637C20.8372 8.1062 21 8.49929 21 8.90917V17.4092Z", 50215 stroke: "white", 50216 "stroke-width": "1.83", 50217 "stroke-linecap": "round", 50218 "stroke-linejoin": "round" 50219 }, null, -1)), 50220 _cache[1] || (_cache[1] = createBaseVNode("path", { 50221 d: "M12.5004 15.8637C14.2075 15.8637 15.5913 14.4799 15.5913 12.7728C15.5913 11.0657 14.2075 9.68188 12.5004 9.68188C10.7933 9.68188 9.4095 11.0657 9.4095 12.7728C9.4095 14.4799 10.7933 15.8637 12.5004 15.8637Z", 50222 stroke: "white", 50223 "stroke-width": "1.83", 50224 "stroke-linecap": "round", 50225 "stroke-linejoin": "round" 50226 }, null, -1)) 50227 ], 8, _hoisted_1$2M); 50228} 50229const CoreIconCamera = /* @__PURE__ */ _export_sfc(_sfc_main$2M, [["render", _sfc_render$2z], ["__scopeId", "data-v-87116f10"]]); 50230const CoreIconCamera$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50231 __proto__: null, 50232 default: CoreIconCamera 50233}, Symbol.toStringTag, { value: "Module" })); 50234const _hoisted_1$2L = ["aria-labelledby", "aria-label"]; 50235const _hoisted_2$2C = ["id"]; 50236const _sfc_main$2L = { 50237 __name: "CoreIconCardAccount", 50238 props: { 50239 settings: { 50240 type: Object, 50241 required: false 50242 } 50243 }, 50244 setup(__props) { 50245 const props = __props; 50246 const alt = computed(() => { 50247 var _a, _b; 50248 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Actions"; 50249 }); 50250 const id = computed(() => { 50251 var _a, _b; 50252 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 50253 }); 50254 return (_ctx, _cache) => { 50255 return openBlock(), createElementBlock("svg", { 50256 xmlns: "http://www.w3.org/2000/svg", 50257 width: "24", 50258 height: "25",
50259 viewBox: "0 0 24 25", 50260 fill: "none", 50261 role: "img", 50262 "aria-labelledby": `icon-title-${unref(id)}`, 50263 "aria-label": unref(alt) 50264 }, [ 50265 createBaseVNode("title", { 50266 id: `icon-title-${unref(id)}` 50267 }, toDisplayString(unref(alt)), 9, _hoisted_2$2C), 50268 _cache[0] || (_cache[0] = createBaseVNode("path", { 50269 d: "M21.8182 3.2002H2.18182C0.981818 3.2002 0 4.1002 0 5.2002V19.2002C0 20.3002 0.981818 21.2002 2.18182 21.2002H21.8182C23.0182 21.2002 24 20.3002 24 19.2002V5.2002C24 4.1002 23.0182 3.2002 21.8182 3.2002ZM22.3636 19.7002H1.63636V12.2002V4.7002H22.3636V19.7002Z", 50270 fill: "currentColor" 50271 }, null, -1)), 50272 _cache[1] || (_cache[1] = createBaseVNode("path", { 50273 d: "M7.82651 11.7002C9.11782 11.7002 10.1743 10.6877 10.1743 9.4502C10.1743 8.2127 9.11782 7.2002 7.82651 7.2002C6.53521 7.2002 5.47869 8.2127 5.47869 9.4502C5.47869 10.6877 6.53521 11.7002 7.82651 11.7002ZM7.82651 8.7002C8.25695 8.7002 8.60912 9.0377 8.60912 9.4502C8.60912 9.8627 8.25695 10.2002 7.82651 10.2002C7.39608 10.2002 7.0439 9.8627 7.0439 9.4502C7.0439 9.0377 7.39608 8.7002 7.82651 8.7002ZM12.5222 15.1427C12.5222 13.2677 9.41521 12.4577 7.82651 12.4577C6.23782 12.4577 3.13086 13.2677 3.13086 15.1427V16.2002H7.82651H12.5222V15.1427ZM5.07173 14.7002C5.65086 14.3252 6.80912 13.9502 7.82651 13.9502C8.8439 13.9502 9.99434 14.3177 10.5813 14.7002H5.07173Z", 50274 fill: "currentColor" 50275 }, null, -1)), 50276 _cache[2] || (_cache[2] = createBaseVNode("rect", { 50277 x: "14", 50278 y: "9.16113", 50279 width: "7", 50280 height: "1.5", 50281 fill: "currentColor" 50282 }, null, -1)), 50283 _cache[3] || (_cache[3] = createBaseVNode("rect", { 50284 x: "14", 50285 y: "13.1611", 50286 width: "7", 50287 height: "1.5", 50288 fill: "currentColor" 50289 }, null, -1)) 50290 ], 8, _hoisted_1$2L); 50291 }; 50292 } 50293}; 50294const CoreIconCardAccount = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50295 __proto__: null, 50296 default: _sfc_main$2L 50297}, Symbol.toStringTag, { value: "Module" })); 50298const _sfc_main$2K = { 50299 props: { 50300 settings: { 50301 type: Object, 50302 required: false 50303 } 50304 }, 50305 computed: { 50306 alt() { 50307 var _a, _b; 50308 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50309 }, 50310 id() { 50311 var _a, _b; 50312 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50313 } 50314 } 50315}; 50316const _hoisted_1$2K = ["aria-labelledby", "aria-label"]; 50317const _hoisted_2$2B = ["id"]; 50318function _sfc_render$2y(_ctx, _cache, $props, $setup, $data, $options) { 50319 return openBlock(), createElementBlock("svg", { 50320 width: "24", 50321 height: "24", 50322 viewBox: "0 0 24 24", 50323 fill: "none", 50324 xmlns: "http://www.w3.org/2000/svg", 50325 role: "img", 50326 "aria-labelledby": `icon-title-${$options.id}`, 50327 "aria-label": $options.alt 50328 }, [ 50329 createBaseVNode("title", { 50330 id: `icon-title-${$options.id}` 50331 }, toDisplayString($options.alt), 9, _hoisted_2$2B), 50332 _cache[0] || (_cache[0] = createStaticVNode('<g clip-path="url(#clip0_529_2866)"><rect x="7" y="8" width="10" height="8" rx="1" stroke="currentColor" stroke-width="2"></rect><rect x="7" y="-4" width="10" height="8" rx="1" stroke="currentColor" stroke-width="2"></rect><rect x="7" y="20" width="10" height="8" rx="1" stroke="currentColor" stroke-width="2"></rect></g><defs><clipPath id="clip0_529_2866"><rect width="24" height="24" fill="white" transform="translate(0 24) rotate(-90)"></rect></clipPath></defs>', 2)) 50333 ], 8, _hoisted_1$2K); 50334} 50335const CoreIconCarousel = /* @__PURE__ */ _export_sfc(_sfc_main$2K, [["render", _sfc_render$2y]]); 50336const CoreIconCarousel$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50337 __proto__: null, 50338 default: CoreIconCarousel 50339}, Symbol.toStringTag, { value: "Module" })); 50340const _sfc_main$2J = { 50341 props: { 50342 settings: { 50343 type: Object, 50344 required: false, 50345 default: () => ({}) 50346 } 50347 }, 50348 computed: { 50349 alt() { 50350 var _a, _b; 50351 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50352 }, 50353 id() { 50354 var _a, _b; 50355 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50356 } 50357 } 50358}; 50359const _hoisted_1$2J = ["aria-labelledby", "aria-label"]; 50360const _hoisted_2$2A = ["id"]; 50361function _sfc_render$2x(_ctx, _cache, $props, $setup, $data, $options) { 50362 return openBlock(), createElementBlock("svg", { 50363 width: "48", 50364 height: "48",
50365 viewBox: "0 0 48 48", 50366 xmlns: "http://www.w3.org/2000/svg", 50367 role: "img", 50368 "aria-labelledby": `icon-title-${$options.id}`, 50369 "aria-label": $options.alt, 50370 fill: "none" 50371 }, [ 50372 createBaseVNode("title", { 50373 id: `icon-title-${$options.id}` 50374 }, toDisplayString($options.alt), 9, _hoisted_2$2A), 50375 _cache[0] || (_cache[0] = createBaseVNode("rect", { 50376 fill: "var(--_core__container_control_carousel_svg_fill)", 50377 x: "47", 50378 y: "47", 50379 width: "46", 50380 height: "46", 50381 rx: "23", 50382 transform: "rotate(-180 47 47)" 50383 }, null, -1)), 50384 _cache[1] || (_cache[1] = createBaseVNode("path", { 50385 d: "M27.3716 16.705L19.3716 24.705L27.3716 32.705", 50386 stroke: "var(--_core__container_control_carousel_svg_stroke)", 50387 "stroke-width": "2", 50388 "stroke-linecap": "round", 50389 "stroke-linejoin": "round" 50390 }, null, -1)), 50391 _cache[2] || (_cache[2] = createBaseVNode("rect", { 50392 x: "47", 50393 y: "47", 50394 width: "46", 50395 height: "46", 50396 rx: "23", 50397 transform: "rotate(-180 47 47)",
50398 stroke: "var(--_core__container_control_carousel_svg_stroke)", 50399 "stroke-width": "2" 50400 }, null, -1)) 50401 ], 8, _hoisted_1$2J); 50402} 50403const CoreIconCarouselBackward = /* @__PURE__ */ _export_sfc(_sfc_main$2J, [["render", _sfc_render$2x]]); 50404const CoreIconCarouselBackward$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50405 __proto__: null, 50406 default: CoreIconCarouselBackward 50407}, Symbol.toStringTag, { value: "Module" })); 50408const _sfc_main$2I = { 50409 props: { 50410 settings: { 50411 type: Object, 50412 required: false, 50413 default: () => ({}) 50414 } 50415 }, 50416 computed: { 50417 alt() { 50418 var _a, _b; 50419 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50420 }, 50421 id() { 50422 var _a, _b; 50423 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50424 } 50425 } 50426}; 50427const _hoisted_1$2I = ["aria-labelledby", "aria-label"]; 50428const _hoisted_2$2z = ["id"]; 50429function _sfc_render$2w(_ctx, _cache, $props, $setup, $data, $options) { 50430 return openBlock(), createElementBlock("svg", { 50431 width: "48", 50432 height: "48", 50433 viewBox: "0 0 48 48", 50434 xmlns: "http://www.w3.org/2000/svg", 50435 role: "img", 50436 "aria-labelledby": `icon-title-${$options.id}`, 50437 "aria-label": $options.alt, 50438 fill: "none" 50439 }, [ 50440 createBaseVNode("title", { 50441 id: `icon-title-${$options.id}` 50442 }, toDisplayString($options.alt), 9, _hoisted_2$2z), 50443 _cache[0] || (_cache[0] = createBaseVNode("rect", {
50444 fill: "var(--_core__container_control_carousel_svg_fill)", 50445 x: "1", 50446 y: "1", 50447 width: "46", 50448 height: "46", 50449 rx: "23" 50450 }, null, -1)), 50451 _cache[1] || (_cache[1] = createBaseVNode("path", { 50452 d: "M21.9155 32.5821L29.9155 24.5822L21.9155 16.5822", 50453 stroke: "var(--_core__container_control_carousel_svg_stroke)", 50454 "stroke-width": "2", 50455 "stroke-linecap": "round", 50456 "stroke-linejoin": "round" 50457 }, null, -1)), 50458 _cache[2] || (_cache[2] = createBaseVNode("rect", { 50459 x: "1", 50460 y: "1", 50461 width: "46", 50462 height: "46", 50463 rx: "23", 50464 stroke: "var(--_core__container_control_carousel_svg_stroke)", 50465 "stroke-width": "2" 50466 }, null, -1)) 50467 ], 8, _hoisted_1$2I); 50468} 50469const CoreIconCarouselForward = /* @__PURE__ */ _export_sfc(_sfc_main$2I, [["render", _sfc_render$2w]]); 50470const CoreIconCarouselForward$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50471 __proto__: null, 50472 default: CoreIconCarouselForward 50473}, Symbol.toStringTag, { value: "Module" })); 50474const _sfc_main$2H = { 50475 props: { 50476 settings: { 50477 type: Object, 50478 required: false 50479 } 50480 }, 50481 computed: { 50482 alt() { 50483 var _a, _b; 50484 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50485 }, 50486 id() { 50487 var _a, _b; 50488 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50489 } 50490 } 50491}; 50492const _hoisted_1$2H = ["aria-labelledby", "aria-label"]; 50493const _hoisted_2$2y = ["id"]; 50494function _sfc_render$2v(_ctx, _cache, $props, $setup, $data, $options) { 50495 return openBlock(), createElementBlock("svg", { 50496 width: "24", 50497 height: "24", 50498 viewBox: "0 0 24 24", 50499 fill: "none", 50500 xmlns: "http://www.w3.org/2000/svg", 50501 role: "img", 50502 "aria-labelledby": `icon-title-${$options.id}`, 50503 "aria-label": $options.alt 50504 }, [ 50505 createBaseVNode("title", { 50506 id: `icon-title-${$options.id}` 50507 }, toDisplayString($options.alt), 9, _hoisted_2$2y), 50508 _cache[0] || (_cache[0] = createBaseVNode("svg", { 50509 width: "24", 50510 height: "24", 50511 viewBox: "0 0 24 24", 50512 fill: "none", 50513 xmlns: "http://www.w3.org/2000/svg" 50514 }, [ 50515 createBaseVNode("path", { 50516 "fill-rule": "evenodd", 50517 "clip-rule": "evenodd", 50518 d: "M12.0109 3.90612L8.80548 8.99981H15.1838L12.0109 3.90612ZM11.9507 1.64074C12.2434 1.63024 12.5338 1.69553 12.7938 1.83028C13.0539 1.96504 13.2747 2.16469 13.4349 2.40989L13.4465 2.42808L17.1379 8.35412C17.3044 8.60287 17.4024 8.89136 17.4217 9.19046C17.4416 9.49994 17.3766 9.80897 17.2335 10.0841C17.0904 10.3593 16.8748 10.59 16.61 10.7514C16.3452 10.9128 16.0413 10.9987 15.7312 10.9998L15.7277 10.9998H8.321C8.01912 11.0104 7.71966 10.9403 7.45355 10.7966C7.17769 10.6476 6.94842 10.4252 6.79108 10.154C6.63374 9.88275 6.55446 9.57333 6.56202 9.25988C6.56951 8.94892 6.66218 8.64602 6.82986 8.38414L10.5419 2.48532C10.6833 2.24203 10.883 2.03749 11.1233 1.89025C11.373 1.73719 11.658 1.65125 11.9507 1.64074Z", 50519 fill: "currentColor" 50520 }), 50521 createBaseVNode("path", { 50522 "fill-rule": "evenodd", 50523 "clip-rule": "evenodd", 50524 d: "M2 15C2 13.8954 2.89543 13 4 13H9C10.1046 13 11 13.8954 11 15V20C11 21.1046 10.1046 22 9 22H4C2.89543 22 2 21.1046 2 20V15ZM9 15H4V20H9V15Z", 50525 fill: "currentColor" 50526 }), 50527 createBaseVNode("path", { 50528 "fill-rule": "evenodd", 50529 "clip-rule": "evenodd", 50530 d: "M17.5 15C16.1193 15 15 16.1193 15 17.5C15 18.8807 16.1193 20 17.5 20C18.8807 20 20 18.8807 20 17.5C20 16.1193 18.8807 15 17.5 15ZM13 17.5C13 15.0147 15.0147 13 17.5 13C19.9853 13 22 15.0147 22 17.5C22 19.9853 19.9853 22 17.5 22C15.0147 22 13 19.9853 13 17.5Z", 50531 fill: "currentColor" 50532 }) 50533 ], -1)) 50534 ], 8, _hoisted_1$2H); 50535} 50536const CoreIconCategories = /* @__PURE__ */ _export_sfc(_sfc_main$2H, [["render", _sfc_render$2v]]); 50537const CoreIconCategories$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50538 __proto__: null, 50539 default: CoreIconCategories 50540}, Symbol.toStringTag, { value: "Module" })); 50541const _sfc_main$2G = { 50542 props: { 50543 settings: { 50544 type: Object, 50545 required: false 50546 } 50547 }, 50548 computed: { 50549 alt() { 50550 var _a, _b; 50551 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50552 }, 50553 id() { 50554 var _a, _b; 50555 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50556 } 50557 } 50558}; 50559const _hoisted_1$2G = ["aria-labelledby", "aria-label"]; 50560const _hoisted_2$2x = ["id"]; 50561function _sfc_render$2u(_ctx, _cache, $props, $setup, $data, $options) { 50562 return openBlock(), createElementBlock("svg", { 50563 width: "24", 50564 height: "24",
50565 viewBox: "0 0 24 24", 50566 fill: "none", 50567 xmlns: "http://www.w3.org/2000/svg", 50568 role: "img", 50569 "aria-labelledby": `icon-title-${$options.id}`, 50570 "aria-label": $options.alt 50571 }, [ 50572 createBaseVNode("title", { 50573 id: `icon-title-${$options.id}` 50574 }, toDisplayString($options.alt), 9, _hoisted_2$2x), 50575 _cache[0] || (_cache[0] = createBaseVNode("path", { 50576 d: "M19.1024 10.39L20.1624 9.33C20.9424 8.55 20.9424 7.28 20.1624 6.5L18.7524 5.09C17.9724 4.31 16.7024 4.31 15.9224 5.09L14.8624 6.15L19.1024 10.39ZM14.8624 11.81L7.66244 19H6.25244V17.59L13.4424 10.4L14.8624 11.81ZM13.4424 7.56L4.25244 16.76V21H8.49244L17.6824 11.81L13.4424 7.56ZM19.2524 17.5C19.2524 19.69 16.7124 21 14.2524 21C13.7024 21 13.2524 20.55 13.2524 20C13.2524 19.45 13.7024 19 14.2524 19C15.7924 19 17.2524 18.27 17.2524 17.5C17.2524 17.03 16.7724 16.63 16.0224 16.3L17.5024 14.82C18.5724 15.45 19.2524 16.29 19.2524 17.5ZM4.83244 13.35C3.86244 12.79 3.25244 12.06 3.25244 11C3.25244 9.2 5.14244 8.37 6.81244 7.64C7.84244 7.18 9.25244 6.56 9.25244 6C9.25244 5.59 8.47244 5 7.25244 5C5.99244 5 5.45244 5.61 5.42244 5.64C5.07244 6.05 4.44244 6.1 4.02244 5.76C3.61244 5.42 3.53244 4.81 3.87244 4.38C3.98244 4.24 5.01244 3 7.25244 3C9.49244 3 11.2524 4.32 11.2524 6C11.2524 7.87 9.32244 8.72 7.61244 9.47C6.67244 9.88 5.25244 10.5 5.25244 11C5.25244 11.31 5.68244 11.6 6.32244 11.86L4.83244 13.35Z", 50577 fill: "currentColor" 50578 }, null, -1)) 50579 ], 8, _hoisted_1$2G); 50580} 50581const CoreIconChanges = /* @__PURE__ */ _export_sfc(_sfc_main$2G, [["render", _sfc_render$2u]]); 50582const CoreIconChanges$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50583 __proto__: null, 50584 default: CoreIconChanges 50585}, Symbol.toStringTag, { value: "Module" })); 50586const _sfc_main$2F = { 50587 props: { 50588 settings: { 50589 type: Object, 50590 required: false 50591 } 50592 }, 50593 computed: { 50594 alt() { 50595 var _a, _b; 50596 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50597 }, 50598 id() { 50599 var _a, _b; 50600 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50601 } 50602 } 50603}; 50604const _hoisted_1$2F = ["aria-labelledby", "aria-label"]; 50605const _hoisted_2$2w = ["id"]; 50606function _sfc_render$2t(_ctx, _cache, $props, $setup, $data, $options) { 50607 return openBlock(), createElementBlock("svg", { 50608 width: "24", 50609 height: "24", 50610 viewBox: "0 0 24 24", 50611 fill: "none", 50612 xmlns: "http://www.w3.org/2000/svg", 50613 role: "img", 50614 "aria-labelledby": `icon-title-${$options.id}`, 50615 "aria-label": $options.alt 50616 }, [ 50617 createBaseVNode("title", { 50618 id: `icon-title-${$options.id}` 50619 }, toDisplayString($options.alt), 9, _hoisted_2$2w), 50620 _cache[0] || (_cache[0] = createBaseVNode("path", { 50621 d: "M20 6L9 17L4 12", 50622 stroke: "currentColor", 50623 "stroke-width": "2", 50624 "stroke-linecap": "round", 50625 "stroke-linejoin": "round" 50626 }, null, -1)) 50627 ], 8, _hoisted_1$2F); 50628} 50629const CoreIconCheckmark = /* @__PURE__ */ _export_sfc(_sfc_main$2F, [["render", _sfc_render$2t]]); 50630const CoreIconCheckmark$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50631 __proto__: null, 50632 default: CoreIconCheckmark 50633}, Symbol.toStringTag, { value: "Module" })); 50634const _sfc_main$2E = { 50635 props: { 50636 settings: { 50637 type: Object, 50638 required: false 50639 } 50640 }, 50641 computed: { 50642 alt() { 50643 var _a, _b; 50644 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50645 }, 50646 id() { 50647 var _a, _b; 50648 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50649 } 50650 } 50651}; 50652const _hoisted_1$2E = ["aria-labelledby", "aria-label"]; 50653const _hoisted_2$2v = ["id"]; 50654function _sfc_render$2s(_ctx, _cache, $props, $setup, $data, $options) { 50655 return openBlock(), createElementBlock("svg", { 50656 width: "24", 50657 height: "24", 50658 viewBox: "0 0 24 24", 50659 fill: "none", 50660 xmlns: "http://www.w3.org/2000/svg", 50661 role: "img", 50662 "aria-labelledby": `icon-title-${$options.id}`, 50663 "aria-label": $options.alt 50664 }, [ 50665 createBaseVNode("title", { 50666 id: `icon-title-${$options.id}` 50667 }, toDisplayString($options.alt), 9, _hoisted_2$2v), 50668 _cache[0] || (_cache[0] = createBaseVNode("path", { 50669 d: "M6 9L12 15L18 9", 50670 stroke: "currentColor", 50671 "stroke-width": "2", 50672 "stroke-linecap": "round", 50673 "stroke-linejoin": "round" 50674 }, null, -1)) 50675 ], 8, _hoisted_1$2E); 50676} 50677const CoreIconChevronDown = /* @__PURE__ */ _export_sfc(_sfc_main$2E, [["render", _sfc_render$2s]]); 50678const CoreIconChevronDown$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50679 __proto__: null, 50680 default: CoreIconChevronDown 50681}, Symbol.toStringTag, { value: "Module" })); 50682const _sfc_main$2D = { 50683 props: { 50684 settings: { 50685 type: Object, 50686 required: false 50687 } 50688 }, 50689 computed: { 50690 alt() { 50691 var _a, _b; 50692 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50693 }, 50694 id() { 50695 var _a, _b; 50696 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50697 } 50698 } 50699}; 50700const _hoisted_1$2D = ["aria-labelledby", "aria-label"]; 50701const _hoisted_2$2u = ["id"]; 50702function _sfc_render$2r(_ctx, _cache, $props, $setup, $data, $options) { 50703 return openBlock(), createElementBlock("svg", { 50704 width: "24", 50705 height: "24",
50706 viewBox: "0 0 24 24", 50707 fill: "none", 50708 xmlns: "http://www.w3.org/2000/svg", 50709 role: "img", 50710 "aria-labelledby": `icon-title-${$options.id}`, 50711 "aria-label": $options.alt 50712 }, [ 50713 createBaseVNode("title", { 50714 id: `icon-title-${$options.id}` 50715 }, toDisplayString($options.alt), 9, _hoisted_2$2u), 50716 _cache[0] || (_cache[0] = createBaseVNode("path", { 50717 d: "M14 18L8 12L14 6", 50718 stroke: "currentColor", 50719 "stroke-width": "2", 50720 "stroke-linecap": "round", 50721 "stroke-linejoin": "round" 50722 }, null, -1)) 50723 ], 8, _hoisted_1$2D); 50724} 50725const CoreIconChevronLeft = /* @__PURE__ */ _export_sfc(_sfc_main$2D, [["render", _sfc_render$2r]]); 50726const CoreIconChevronLeft$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50727 __proto__: null, 50728 default: CoreIconChevronLeft 50729}, Symbol.toStringTag, { value: "Module" })); 50730const _sfc_main$2C = { 50731 props: { 50732 settings: { 50733 type: Object, 50734 required: false 50735 } 50736 }, 50737 computed: { 50738 alt() { 50739 var _a, _b; 50740 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50741 }, 50742 id() { 50743 var _a, _b; 50744 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50745 } 50746 } 50747}; 50748const _hoisted_1$2C = ["aria-labelledby", "aria-label"]; 50749const _hoisted_2$2t = ["id"]; 50750function _sfc_render$2q(_ctx, _cache, $props, $setup, $data, $options) { 50751 return openBlock(), createElementBlock("svg", { 50752 width: "24", 50753 height: "24", 50754 viewBox: "0 0 24 24", 50755 fill: "none", 50756 xmlns: "http://www.w3.org/2000/svg", 50757 role: "img", 50758 "aria-labelledby": `icon-title-${$options.id}`, 50759 "aria-label": $options.alt 50760 }, [ 50761 createBaseVNode("title", { 50762 id: `icon-title-${$options.id}` 50763 }, toDisplayString($options.alt), 9, _hoisted_2$2t), 50764 _cache[0] || (_cache[0] = createBaseVNode("path", { 50765 d: "M10 18L16 12L10 6", 50766 stroke: "currentColor", 50767 "stroke-width": "2", 50768 "stroke-linecap": "round", 50769 "stroke-linejoin": "round" 50770 }, null, -1)) 50771 ], 8, _hoisted_1$2C); 50772} 50773const CoreIconChevronRight = /* @__PURE__ */ _export_sfc(_sfc_main$2C, [["render", _sfc_render$2q]]); 50774const CoreIconChevronRight$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50775 __proto__: null, 50776 default: CoreIconChevronRight 50777}, Symbol.toStringTag, { value: "Module" })); 50778const _sfc_main$2B = { 50779 props: { 50780 settings: { 50781 type: Object, 50782 required: false 50783 } 50784 }, 50785 computed: { 50786 alt() { 50787 var _a, _b; 50788 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50789 }, 50790 id() { 50791 var _a, _b; 50792 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50793 } 50794 } 50795}; 50796const _hoisted_1$2B = ["aria-labelledby", "aria-label"]; 50797const _hoisted_2$2s = ["id"]; 50798function _sfc_render$2p(_ctx, _cache, $props, $setup, $data, $options) { 50799 return openBlock(), createElementBlock("svg", { 50800 width: "24", 50801 height: "24", 50802 viewBox: "0 0 24 24", 50803 fill: "none", 50804 xmlns: "http://www.w3.org/2000/svg", 50805 role: "img", 50806 "aria-labelledby": `icon-title-${$options.id}`, 50807 "aria-label": $options.alt 50808 }, [ 50809 createBaseVNode("title", { 50810 id: `icon-title-${$options.id}` 50811 }, toDisplayString($options.alt), 9, _hoisted_2$2s), 50812 _cache[0] || (_cache[0] = createBaseVNode("path", { 50813 d: "M18 15L12 9L6 15", 50814 stroke: "currentColor", 50815 "stroke-width": "2", 50816 "stroke-linecap": "round", 50817 "stroke-linejoin": "round" 50818 }, null, -1)) 50819 ], 8, _hoisted_1$2B); 50820} 50821const CoreIconChevronUp = /* @__PURE__ */ _export_sfc(_sfc_main$2B, [["render", _sfc_render$2p]]); 50822const CoreIconChevronUp$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50823 __proto__: null, 50824 default: CoreIconChevronUp 50825}, Symbol.toStringTag, { value: "Module" })); 50826const _sfc_main$2A = { 50827 name: "CoreIconCircleCheckLight", 50828 props: { 50829 settings: { 50830 type: Object, 50831 required: false 50832 } 50833 }, 50834 computed: { 50835 alt() { 50836 var _a, _b; 50837 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50838 }, 50839 id() { 50840 var _a, _b; 50841 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50842 } 50843 } 50844}; 50845const _hoisted_1$2A = ["aria-labelledby", "aria-label"]; 50846const _hoisted_2$2r = ["id"]; 50847function _sfc_render$2o(_ctx, _cache, $props, $setup, $data, $options) { 50848 return openBlock(), createElementBlock("svg", { 50849 width: "32", 50850 height: "32",
50851 viewBox: "0 0 32 32", 50852 fill: "none", 50853 xmlns: "http://www.w3.org/2000/svg", 50854 role: "img", 50855 "aria-labelledby": `icon-title-${$options.id}`, 50856 "aria-label": $options.alt 50857 }, [ 50858 createBaseVNode("title", { 50859 id: `icon-title-${$options.id}` 50860 }, toDisplayString($options.alt), 9, _hoisted_2$2r), 50861 _cache[0] || (_cache[0] = createBaseVNode("rect", { 50862 width: "32", 50863 height: "32", 50864 rx: "16", 50865 fill: "#CAE7DD", 50866 "fill-opacity": "0.866667" 50867 }, null, -1)), 50868 _cache[1] || (_cache[1] = createBaseVNode("path", { 50869 d: "M24 10L13 22L8 16.5455", 50870 stroke: "#2E8540", 50871 "stroke-width": "2", 50872 "stroke-linecap": "round", 50873 "stroke-linejoin": "round" 50874 }, null, -1)) 50875 ], 8, _hoisted_1$2A); 50876} 50877const CoreIconCircleCheckLight = /* @__PURE__ */ _export_sfc(_sfc_main$2A, [["render", _sfc_render$2o]]); 50878const CoreIconCircleCheckLight$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50879 __proto__: null, 50880 default: CoreIconCircleCheckLight 50881}, Symbol.toStringTag, { value: "Module" })); 50882const _sfc_main$2z = { 50883 props: { 50884 settings: { 50885 type: Object, 50886 required: false 50887 } 50888 }, 50889 computed: { 50890 alt() { 50891 var _a, _b; 50892 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50893 }, 50894 id() { 50895 var _a, _b; 50896 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50897 } 50898 } 50899}; 50900const _hoisted_1$2z = ["aria-labelledby", "aria-label"]; 50901const _hoisted_2$2q = ["id"]; 50902function _sfc_render$2n(_ctx, _cache, $props, $setup, $data, $options) { 50903 return openBlock(), createElementBlock("svg", { 50904 width: "24", 50905 height: "24", 50906 viewBox: "0 0 24 24", 50907 fill: "none", 50908 xmlns: "http://www.w3.org/2000/svg", 50909 role: "img", 50910 "aria-labelledby": `icon-title-${$options.id}`, 50911 "aria-label": $options.alt 50912 }, [ 50913 createBaseVNode("title", { 50914 id: `icon-title-${$options.id}` 50915 }, toDisplayString($options.alt), 9, _hoisted_2$2q), 50916 _cache[0] || (_cache[0] = createBaseVNode("path", { 50917 d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", 50918 stroke: "currentColor", 50919 "stroke-width": "2", 50920 "stroke-linecap": "round", 50921 "stroke-linejoin": "round" 50922 }, null, -1)), 50923 _cache[1] || (_cache[1] = createBaseVNode("path", { 50924 d: "M8 12L16 12", 50925 stroke: "currentColor", 50926 "stroke-width": "2", 50927 "stroke-linecap": "round", 50928 "stroke-linejoin": "round" 50929 }, null, -1)) 50930 ], 8, _hoisted_1$2z); 50931} 50932const CoreIconCircleMinus = /* @__PURE__ */ _export_sfc(_sfc_main$2z, [["render", _sfc_render$2n]]); 50933const CoreIconCircleMinus$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50934 __proto__: null, 50935 default: CoreIconCircleMinus 50936}, Symbol.toStringTag, { value: "Module" })); 50937const _sfc_main$2y = { 50938 props: { 50939 settings: { 50940 type: Object, 50941 required: false 50942 } 50943 }, 50944 computed: { 50945 alt() { 50946 var _a, _b; 50947 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50948 }, 50949 id() { 50950 var _a, _b; 50951 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50952 } 50953 } 50954}; 50955const _hoisted_1$2y = ["aria-labelledby", "aria-label"]; 50956const _hoisted_2$2p = ["id"]; 50957function _sfc_render$2m(_ctx, _cache, $props, $setup, $data, $options) { 50958 return openBlock(), createElementBlock("svg", { 50959 width: "24", 50960 height: "24", 50961 viewBox: "0 0 24 24", 50962 fill: "none", 50963 xmlns: "http://www.w3.org/2000/svg", 50964 role: "img", 50965 "aria-labelledby": `icon-title-${$options.id}`, 50966 "aria-label": $options.alt 50967 }, [ 50968 createBaseVNode("title", { 50969 id: `icon-title-${$options.id}` 50970 }, toDisplayString($options.alt), 9, _hoisted_2$2p), 50971 _cache[0] || (_cache[0] = createBaseVNode("path", { 50972 "fill-rule": "evenodd", 50973 "clip-rule": "evenodd", 50974 d: "M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13H16C16.5523 13 17 12.5523 17 12C17 11.4477 16.5523 11 16 11H8Z", 50975 fill: "currentColor" 50976 }, null, -1)) 50977 ], 8, _hoisted_1$2y); 50978} 50979const CoreIconCircleMinusFilled = /* @__PURE__ */ _export_sfc(_sfc_main$2y, [["render", _sfc_render$2m]]); 50980const CoreIconCircleMinusFilled$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 50981 __proto__: null, 50982 default: CoreIconCircleMinusFilled 50983}, Symbol.toStringTag, { value: "Module" })); 50984const _sfc_main$2x = { 50985 props: { 50986 settings: { 50987 type: Object, 50988 required: false 50989 } 50990 }, 50991 computed: { 50992 alt() { 50993 var _a, _b; 50994 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 50995 }, 50996 id() { 50997 var _a, _b; 50998 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 50999 } 51000 } 51001}; 51002const _hoisted_1$2x = ["aria-labelledby", "aria-label"]; 51003const _hoisted_2$2o = ["id"]; 51004function _sfc_render$2l(_ctx, _cache, $props, $setup, $data, $options) { 51005 return openBlock(), createElementBlock("svg", { 51006 width: "24", 51007 height: "24",
51008 viewBox: "0 0 24 24", 51009 fill: "none", 51010 xmlns: "http://www.w3.org/2000/svg", 51011 role: "img", 51012 "aria-labelledby": `icon-title-${$options.id}`, 51013 "aria-label": $options.alt 51014 }, [ 51015 createBaseVNode("title", { 51016 id: `icon-title-${$options.id}` 51017 }, toDisplayString($options.alt), 9, _hoisted_2$2o), 51018 _cache[0] || (_cache[0] = createBaseVNode("path", { 51019 d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", 51020 stroke: "currentColor", 51021 "stroke-width": "2", 51022 "stroke-linecap": "round", 51023 "stroke-linejoin": "round" 51024 }, null, -1)), 51025 _cache[1] || (_cache[1] = createBaseVNode("path", { 51026 d: "M12 8V16", 51027 stroke: "currentColor", 51028 "stroke-width": "2", 51029 "stroke-linecap": "round", 51030 "stroke-linejoin": "round" 51031 }, null, -1)), 51032 _cache[2] || (_cache[2] = createBaseVNode("path", { 51033 d: "M8 12H16", 51034 stroke: "currentColor", 51035 "stroke-width": "2", 51036 "stroke-linecap": "round", 51037 "stroke-linejoin": "round" 51038 }, null, -1)) 51039 ], 8, _hoisted_1$2x); 51040} 51041const CoreIconCirclePlus = /* @__PURE__ */ _export_sfc(_sfc_main$2x, [["render", _sfc_render$2l]]); 51042const CoreIconCirclePlus$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51043 __proto__: null, 51044 default: CoreIconCirclePlus 51045}, Symbol.toStringTag, { value: "Module" })); 51046const _sfc_main$2w = { 51047 props: { 51048 settings: { 51049 type: Object, 51050 required: false 51051 } 51052 }, 51053 computed: { 51054 alt() { 51055 var _a, _b; 51056 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51057 }, 51058 id() { 51059 var _a, _b; 51060 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51061 } 51062 } 51063}; 51064const _hoisted_1$2w = ["aria-labelledby", "aria-label"]; 51065const _hoisted_2$2n = ["id"]; 51066function _sfc_render$2k(_ctx, _cache, $props, $setup, $data, $options) { 51067 return openBlock(), createElementBlock("svg", { 51068 width: "24", 51069 height: "24", 51070 viewBox: "0 0 24 24", 51071 fill: "none", 51072 xmlns: "http://www.w3.org/2000/svg", 51073 role: "img", 51074 "aria-labelledby": `icon-title-${$options.id}`, 51075 "aria-label": $options.alt 51076 }, [ 51077 createBaseVNode("title", { 51078 id: `icon-title-${$options.id}` 51079 }, toDisplayString($options.alt), 9, _hoisted_2$2n), 51080 _cache[0] || (_cache[0] = createBaseVNode("path", { 51081 "fill-rule": "evenodd", 51082 "clip-rule": "evenodd", 51083 d: "M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM12 7C12.5523 7 13 7.44772 13 8V11H16C16.5523 11 17 11.4477 17 12C17 12.5523 16.5523 13 16 13H13V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V13H8C7.44772 13 7 12.5523 7 12C7 11.4477 7.44772 11 8 11H11V8C11 7.44772 11.4477 7 12 7Z", 51084 fill: "currentColor" 51085 }, null, -1)) 51086 ], 8, _hoisted_1$2w); 51087} 51088const CoreIconCirclePlusFilled = /* @__PURE__ */ _export_sfc(_sfc_main$2w, [["render", _sfc_render$2k]]); 51089const CoreIconCirclePlusFilled$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51090 __proto__: null, 51091 default: CoreIconCirclePlusFilled 51092}, Symbol.toStringTag, { value: "Module" })); 51093const _sfc_main$2v = { 51094 props: { 51095 settings: { 51096 type: Object, 51097 required: false 51098 } 51099 }, 51100 computed: { 51101 alt() { 51102 var _a, _b; 51103 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51104 }, 51105 id() { 51106 var _a, _b; 51107 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51108 } 51109 } 51110}; 51111const _hoisted_1$2v = ["aria-labelledby", "aria-label"]; 51112const _hoisted_2$2m = ["id"]; 51113function _sfc_render$2j(_ctx, _cache, $props, $setup, $data, $options) { 51114 return openBlock(), createElementBlock("svg", { 51115 width: "24", 51116 height: "24", 51117 viewBox: "0 0 24 24", 51118 fill: "none", 51119 xmlns: "http://www.w3.org/2000/svg", 51120 role: "img", 51121 "aria-labelledby": `icon-title-${$options.id}`, 51122 "aria-label": $options.alt 51123 }, [ 51124 createBaseVNode("title", { 51125 id: `icon-title-${$options.id}` 51126 }, toDisplayString($options.alt), 9, _hoisted_2$2m), 51127 _cache[0] || (_cache[0] = createBaseVNode("path", { 51128 d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", 51129 stroke: "currentColor", 51130 "stroke-width": "2", 51131 "stroke-linecap": "round", 51132 "stroke-linejoin": "round" 51133 }, null, -1)), 51134 _cache[1] || (_cache[1] = createBaseVNode("path", { 51135 d: "M12 6V12L16 14", 51136 stroke: "currentColor", 51137 "stroke-width": "2", 51138 "stroke-linecap": "round", 51139 "stroke-linejoin": "round" 51140 }, null, -1)) 51141 ], 8, _hoisted_1$2v); 51142} 51143const CoreIconClock = /* @__PURE__ */ _export_sfc(_sfc_main$2v, [["render", _sfc_render$2j]]); 51144const CoreIconClock$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51145 __proto__: null, 51146 default: CoreIconClock 51147}, Symbol.toStringTag, { value: "Module" })); 51148const _sfc_main$2u = { 51149 props: { 51150 settings: { 51151 type: Object, 51152 required: false 51153 } 51154 }, 51155 computed: { 51156 alt() { 51157 var _a, _b; 51158 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51159 }, 51160 id() { 51161 var _a, _b; 51162 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51163 } 51164 } 51165}; 51166const _hoisted_1$2u = ["aria-labelledby", "aria-label"]; 51167const _hoisted_2$2l = ["id"]; 51168function _sfc_render$2i(_ctx, _cache, $props, $setup, $data, $options) { 51169 return openBlock(), createElementBlock("svg", { 51170 width: "24", 51171 height: "24",
51172 viewBox: "0 0 24 24", 51173 fill: "none", 51174 xmlns: "http://www.w3.org/2000/svg", 51175 role: "img", 51176 "aria-labelledby": `icon-title-${$options.id}`, 51177 "aria-label": $options.alt 51178 }, [ 51179 createBaseVNode("title", { 51180 id: `icon-title-${$options.id}` 51181 }, toDisplayString($options.alt), 9, _hoisted_2$2l), 51182 _cache[0] || (_cache[0] = createBaseVNode("path", { 51183 "fill-rule": "evenodd", 51184 "clip-rule": "evenodd", 51185 d: "M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM12 5C12.5523 5 13 5.44772 13 6V11.382L16.4472 13.1056C16.9412 13.3526 17.1414 13.9532 16.8944 14.4472C16.6474 14.9412 16.0468 15.1414 15.5528 14.8944L11.5528 12.8944C11.214 12.725 11 12.3788 11 12V6C11 5.44772 11.4477 5 12 5Z", 51186 fill: "currentColor" 51187 }, null, -1)) 51188 ], 8, _hoisted_1$2u); 51189} 51190const CoreIconClockFilled = /* @__PURE__ */ _export_sfc(_sfc_main$2u, [["render", _sfc_render$2i]]); 51191const CoreIconClockFilled$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51192 __proto__: null, 51193 default: CoreIconClockFilled 51194}, Symbol.toStringTag, { value: "Module" })); 51195const _sfc_main$2t = { 51196 props: { 51197 settings: { 51198 type: Object, 51199 required: false 51200 } 51201 }, 51202 computed: { 51203 alt() { 51204 var _a, _b; 51205 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51206 }, 51207 id() { 51208 var _a, _b; 51209 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51210 } 51211 } 51212}; 51213const _hoisted_1$2t = ["aria-labelledby", "aria-label"]; 51214const _hoisted_2$2k = ["id"]; 51215function _sfc_render$2h(_ctx, _cache, $props, $setup, $data, $options) { 51216 return openBlock(), createElementBlock("svg", { 51217 width: "24", 51218 height: "24", 51219 viewBox: "0 0 24 24", 51220 fill: "none", 51221 xmlns: "http://www.w3.org/2000/svg", 51222 role: "img", 51223 "aria-labelledby": `icon-title-${$options.id}`, 51224 "aria-label": $options.alt 51225 }, [ 51226 createBaseVNode("title", { 51227 id: `icon-title-${$options.id}` 51228 }, toDisplayString($options.alt), 9, _hoisted_2$2k), 51229 _cache[0] || (_cache[0] = createBaseVNode("path", { 51230 d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", 51231 stroke: "currentColor", 51232 "stroke-width": "2", 51233 "stroke-linecap": "round", 51234 "stroke-linejoin": "round" 51235 }, null, -1)), 51236 _cache[1] || (_cache[1] = createBaseVNode("path", { 51237 d: "M15 9L9 15", 51238 stroke: "currentColor", 51239 "stroke-width": "2", 51240 "stroke-linecap": "round", 51241 "stroke-linejoin": "round" 51242 }, null, -1)), 51243 _cache[2] || (_cache[2] = createBaseVNode("path", { 51244 d: "M9 9L15 15", 51245 stroke: "currentColor", 51246 "stroke-width": "2", 51247 "stroke-linecap": "round", 51248 "stroke-linejoin": "round" 51249 }, null, -1)) 51250 ], 8, _hoisted_1$2t); 51251} 51252const CoreIconCloseCircle = /* @__PURE__ */ _export_sfc(_sfc_main$2t, [["render", _sfc_render$2h]]); 51253const CoreIconCloseCircle$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51254 __proto__: null, 51255 default: CoreIconCloseCircle 51256}, Symbol.toStringTag, { value: "Module" })); 51257const _sfc_main$2s = { 51258 props: { 51259 settings: { 51260 type: Object, 51261 required: false, 51262 default: () => ({}) 51263 } 51264 }, 51265 computed: { 51266 alt() { 51267 var _a, _b; 51268 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51269 }, 51270 id() { 51271 var _a, _b; 51272 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51273 } 51274 } 51275}; 51276const _hoisted_1$2s = ["aria-labelledby", "aria-label"]; 51277const _hoisted_2$2j = ["id"]; 51278function _sfc_render$2g(_ctx, _cache, $props, $setup, $data, $options) { 51279 return openBlock(), createElementBlock("svg", { 51280 width: "24", 51281 height: "24", 51282 viewBox: "0 0 24 24", 51283 fill: "none", 51284 xmlns: "http://www.w3.org/2000/svg", 51285 role: "img", 51286 "aria-labelledby": `icon-title-${$options.id}`, 51287 "aria-label": $options.alt 51288 }, [ 51289 createBaseVNode("title", { 51290 id: `icon-title-${$options.id}` 51291 }, toDisplayString($options.alt), 9, _hoisted_2$2j), 51292 _cache[0] || (_cache[0] = createBaseVNode("path", { 51293 d: "M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM17 15.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59L15.59 7L17 8.41L13.41 12L17 15.59Z", 51294 fill: "currentColor" 51295 }, null, -1)) 51296 ], 8, _hoisted_1$2s); 51297} 51298const CoreIconCloseCircleFilled = /* @__PURE__ */ _export_sfc(_sfc_main$2s, [["render", _sfc_render$2g]]); 51299const CoreIconCloseCircleFilled$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51300 __proto__: null, 51301 default: CoreIconCloseCircleFilled 51302}, Symbol.toStringTag, { value: "Module" })); 51303const _sfc_main$2r = { 51304 props: { 51305 settings: { 51306 type: Object, 51307 required: false 51308 } 51309 }, 51310 computed: { 51311 alt() { 51312 var _a, _b; 51313 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51314 }, 51315 id() { 51316 var _a, _b; 51317 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51318 } 51319 } 51320}; 51321const _hoisted_1$2r = ["aria-labelledby", "aria-label"]; 51322const _hoisted_2$2i = ["id"]; 51323function _sfc_render$2f(_ctx, _cache, $props, $setup, $data, $options) { 51324 return openBlock(), createElementBlock("svg", { 51325 width: "24", 51326 height: "24",
51327 viewBox: "0 0 24 24", 51328 fill: "none", 51329 xmlns: "http://www.w3.org/2000/svg", 51330 role: "img", 51331 "aria-labelledby": `icon-title-${$options.id}`, 51332 "aria-label": $options.alt 51333 }, [ 51334 createBaseVNode("title", { 51335 id: `icon-title-${$options.id}` 51336 }, toDisplayString($options.alt), 9, _hoisted_2$2i), 51337 _cache[0] || (_cache[0] = createBaseVNode("path", { 51338 d: "M12 3.18772L19 6.29447V10.9896C19 15.5049 16.02 19.6705 12 20.9092C7.98 19.6705 5 15.5049 5 10.9896V6.29447L12 3.18772ZM12 1L3 4.99583V10.9896C3 16.5338 6.84 21.7184 12 22.9771C17.16 21.7184 21 16.5338 21 10.9896V4.99583L12 1Z", 51339 fill: "currentColor" 51340 }, null, -1)) 51341 ], 8, _hoisted_1$2r); 51342} 51343const CoreIconCompliance = /* @__PURE__ */ _export_sfc(_sfc_main$2r, [["render", _sfc_render$2f]]); 51344const CoreIconCompliance$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51345 __proto__: null, 51346 default: CoreIconCompliance 51347}, Symbol.toStringTag, { value: "Module" })); 51348const _sfc_main$2q = { 51349 props: { 51350 settings: { 51351 type: Object, 51352 required: false, 51353 default: () => ({}) 51354 } 51355 }, 51356 computed: { 51357 alt() { 51358 var _a, _b; 51359 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51360 }, 51361 id() { 51362 var _a, _b; 51363 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51364 } 51365 } 51366}; 51367const _hoisted_1$2q = ["aria-labelledby", "aria-label"]; 51368const _hoisted_2$2h = ["id"]; 51369function _sfc_render$2e(_ctx, _cache, $props, $setup, $data, $options) { 51370 return openBlock(), createElementBlock("svg", { 51371 width: "36", 51372 height: "30", 51373 viewBox: "0 0 36 30", 51374 fill: "none", 51375 xmlns: "http://www.w3.org/2000/svg", 51376 "aria-labelledby": `icon-title-${$options.id}`, 51377 "aria-label": $options.alt 51378 }, [ 51379 createBaseVNode("title", { 51380 id: `icon-title-${$options.id}` 51381 }, toDisplayString($options.alt), 9, _hoisted_2$2h), 51382 _cache[0] || (_cache[0] = createStaticVNode('<g id="Group 1175"><path id="Subtract" fill-rule="evenodd" clip-rule="evenodd" d="M3.0522 4.82049C3.0522 4.06232 3.66681 3.44771 4.42498 3.44771H26.3895C27.1476 3.44771 27.7622 4.06232 27.7622 4.82049V7.16218H30.5078V4.82049C30.5078 2.54599 28.6639 0.702148 26.3895 0.702148H4.42498C2.15048 0.702148 0.306641 2.54599 0.306641 4.82049V18.5483C0.306641 20.8228 2.15048 22.6666 4.42498 22.6666H14.0347V25.4126H9.91597C9.1578 25.4126 8.54319 26.0272 8.54319 26.7854C8.54319 27.5436 9.1578 28.1582 9.91597 28.1582H20.8982C21.6564 28.1582 22.271 27.5436 22.271 26.7854C22.271 26.0272 21.6564 25.4126 20.8982 25.4126H16.7803V22.6666H19.6869V19.9211H4.42498C3.66681 19.9211 3.0522 19.3064 3.0522 18.5483V4.82049Z" fill="currentColor"></path><g id="Group 1172"><path id="Vector (Stroke)" fill-rule="evenodd" clip-rule="evenodd" d="M25.2616 11.7018C25.1832 11.7918 25.112 11.9455 25.112 12.147V26.1799C25.112 26.3814 25.1832 26.5351 25.2616 26.6251C25.3377 26.7127 25.3993 26.7227 25.427 26.7227H33.0585C33.0862 26.7227 33.1478 26.7127 33.224 26.6251C33.3023 26.5351 33.3736 26.3814 33.3736 26.1799V12.147C33.3736 11.9455 33.3023 11.7918 33.224 11.7018C33.1478 11.6142 33.0862 11.6042 33.0585 11.6042H25.427C25.3993 11.6042 25.3377 11.6142 25.2616 11.7018ZM22.6895 12.147C22.6895 10.673 23.7624 9.18164 25.427 9.18164H33.0585C34.7232 9.18164 35.7961 10.673 35.7961 12.147V26.1799C35.7961 27.6539 34.7232 29.1453 33.0585 29.1453H25.427C23.7624 29.1453 22.6895 27.6539 22.6895 26.1799V12.147Z" fill="currentColor"></path><path id="Vector (Stroke)_2" fill-rule="evenodd" clip-rule="evenodd" d="M28.4956 25.2114C28.4956 24.7244 28.8904 24.3296 29.3774 24.3296H29.3877C29.8747 24.3296 30.2695 24.7244 30.2695 25.2114C30.2695 25.6984 29.8747 26.0932 29.3877 26.0932H29.3774C28.8904 26.0932 28.4956 25.6984 28.4956 25.2114Z" fill="currentColor"></path></g></g>', 1)) 51383 ], 8, _hoisted_1$2q); 51384} 51385const CoreIconComputer = /* @__PURE__ */ _export_sfc(_sfc_main$2q, [["render", _sfc_render$2e]]); 51386const CoreIconComputer$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51387 __proto__: null, 51388 default: CoreIconComputer 51389}, Symbol.toStringTag, { value: "Module" })); 51390const _sfc_main$2p = { 51391 props: { 51392 settings: { 51393 type: Object, 51394 required: false 51395 } 51396 }, 51397 computed: { 51398 alt() { 51399 var _a, _b; 51400 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51401 }, 51402 id() { 51403 var _a, _b; 51404 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51405 } 51406 } 51407}; 51408const _hoisted_1$2p = ["aria-labelledby", "aria-label"];
51409const _hoisted_2$2g = ["id"]; 51410function _sfc_render$2d(_ctx, _cache, $props, $setup, $data, $options) { 51411 return openBlock(), createElementBlock("svg", { 51412 width: "24", 51413 height: "24", 51414 viewBox: "0 0 24 24", 51415 fill: "none", 51416 xmlns: "http://www.w3.org/2000/svg", 51417 role: "img", 51418 "aria-labelledby": `icon-title-${$options.id}`, 51419 "aria-label": $options.alt 51420 }, [ 51421 createBaseVNode("title", { 51422 id: `icon-title-${$options.id}` 51423 }, toDisplayString($options.alt), 9, _hoisted_2$2g), 51424 _cache[0] || (_cache[0] = createBaseVNode("path", { 51425 "fill-rule": "evenodd", 51426 "clip-rule": "evenodd", 51427 d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM9 10.14C7.974 10.14 7.14 10.974 7.14 12C7.14 13.026 7.974 13.86 9 13.86H11.4V15H9C7.344 15 6 13.656 6 12C6 10.344 7.344 9 9 9H11.4V10.14H9ZM12.6 9H15C16.656 9 18 10.344 18 12C18 13.656 16.656 15 15 15H12.6V13.86H15C16.026 13.86 16.86 13.026 16.86 12C16.86 10.974 16.026 10.14 15 10.14H12.6V9ZM14.4 12.6H9.6V11.4H14.4V12.6Z", 51428 fill: "currentColor" 51429 }, null, -1)) 51430 ], 8, _hoisted_1$2p); 51431} 51432const CoreIconConnected = /* @__PURE__ */ _export_sfc(_sfc_main$2p, [["render", _sfc_render$2d]]); 51433const CoreIconConnected$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51434 __proto__: null, 51435 default: CoreIconConnected 51436}, Symbol.toStringTag, { value: "Module" })); 51437const _sfc_main$2o = { 51438 props: { 51439 settings: { 51440 type: Object, 51441 required: false 51442 } 51443 }, 51444 computed: { 51445 alt() { 51446 var _a, _b; 51447 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51448 }, 51449 id() { 51450 var _a, _b; 51451 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51452 } 51453 } 51454}; 51455const _hoisted_1$2o = ["aria-labelledby", "aria-label"];
51456const _hoisted_2$2f = ["id"]; 51457function _sfc_render$2c(_ctx, _cache, $props, $setup, $data, $options) { 51458 return openBlock(), createElementBlock("svg", { 51459 width: "24", 51460 height: "24", 51461 viewBox: "0 0 24 24", 51462 fill: "none", 51463 xmlns: "http://www.w3.org/2000/svg", 51464 role: "img", 51465 "aria-labelledby": `icon-title-${$options.id}`, 51466 "aria-label": $options.alt 51467 }, [ 51468 createBaseVNode("title", { 51469 id: `icon-title-${$options.id}` 51470 }, toDisplayString($options.alt), 9, _hoisted_2$2f), 51471 _cache[0] || (_cache[0] = createBaseVNode("path", { 51472 d: "M11.4 10.215H11.475V10.14V9V8.925H11.4H9C7.30258 8.925 5.925 10.3026 5.925 12C5.925 13.6974 7.30258 15.075 9 15.075H11.4H11.475V15V13.86V13.785H11.4H9C8.01542 13.785 7.215 12.9846 7.215 12C7.215 11.0154 8.01542 10.215 9 10.215H11.4ZM9.525 12.6V12.675H9.6H14.4H14.475V12.6V11.4V11.325H14.4H9.6H9.525V11.4V12.6ZM12.6 8.925H12.525V9V10.14V10.215H12.6H15C15.9846 10.215 16.785 11.0154 16.785 12C16.785 12.9846 15.9846 13.785 15 13.785H12.6H12.525V13.86V15V15.075H12.6H15C16.6974 15.075 18.075 13.6974 18.075 12C18.075 10.3026 16.6974 8.925 15 8.925H12.6Z", 51473 fill: "currentColor", 51474 stroke: "currentColor", 51475 "stroke-width": "0.15" 51476 }, null, -1)), 51477 _cache[1] || (_cache[1] = createBaseVNode("path", { 51478 d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", 51479 stroke: "currentColor", 51480 "stroke-width": "2", 51481 "stroke-linecap": "round", 51482 "stroke-linejoin": "round" 51483 }, null, -1)) 51484 ], 8, _hoisted_1$2o); 51485} 51486const CoreIconConnectedOutline = /* @__PURE__ */ _export_sfc(_sfc_main$2o, [["render", _sfc_render$2c]]); 51487const CoreIconConnectedOutline$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51488 __proto__: null, 51489 default: CoreIconConnectedOutline 51490}, Symbol.toStringTag, { value: "Module" })); 51491const _sfc_main$2n = { 51492 props: { 51493 settings: { 51494 type: Object, 51495 required: false 51496 } 51497 }, 51498 computed: { 51499 alt() { 51500 var _a, _b; 51501 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51502 }, 51503 id() { 51504 var _a, _b; 51505 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51506 } 51507 } 51508}; 51509const _hoisted_1$2n = ["aria-labelledby", "aria-label"]; 51510const _hoisted_2$2e = ["id"]; 51511function _sfc_render$2b(_ctx, _cache, $props, $setup, $data, $options) { 51512 return openBlock(), createElementBlock("svg", { 51513 width: "24", 51514 height: "24", 51515 viewBox: "0 0 24 24", 51516 fill: "none", 51517 xmlns: "http://www.w3.org/2000/svg", 51518 role: "img", 51519 "aria-labelledby": `icon-title-${$options.id}`, 51520 "aria-label": $options.alt 51521 }, [ 51522 createBaseVNode("title", { 51523 id: `icon-title-${$options.id}` 51524 }, toDisplayString($options.alt), 9, _hoisted_2$2e), 51525 _cache[0] || (_cache[0] = createBaseVNode("path", { 51526 d: "M20 15.7252C18.76 15.7252 17.55 15.5252 16.43 15.1552C16.33 15.1152 16.22 15.1052 16.12 15.1052C15.86 15.1052 15.61 15.2052 15.41 15.3952L13.21 17.5952C10.38 16.1452 8.06 13.8352 6.62 11.0052L8.82 8.80516C9.1 8.52516 9.18 8.13516 9.07 7.78516C8.7 6.66516 8.5 5.46516 8.5 4.21516C8.5 3.66516 8.05 3.21516 7.5 3.21516H4C3.45 3.21516 3 3.66516 3 4.21516C3 13.6052 10.61 21.2152 20 21.2152C20.55 21.2152 21 20.7652 21 20.2152V16.7252C21 16.1752 20.55 15.7252 20 15.7252ZM5.03 5.21516H6.53C6.6 6.10516 6.75 6.97516 6.99 7.80516L5.79 9.00516C5.38 7.80516 5.12 6.53516 5.03 5.21516ZM19 19.1852C17.68 19.0952 16.41 18.8352 15.2 18.4352L16.39 17.2452C17.24 17.4852 18.11 17.6352 18.99 17.6952V19.1852H19ZM18 9.21516H15.41L20.43 4.19516L19.02 2.78516L14 7.80516V5.21516H12V11.2152H18V9.21516Z", 51527 fill: "currentColor" 51528 }, null, -1)) 51529 ], 8, _hoisted_1$2n); 51530} 51531const CoreIconContact = /* @__PURE__ */ _export_sfc(_sfc_main$2n, [["render", _sfc_render$2b]]); 51532const CoreIconContact$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51533 __proto__: null, 51534 default: CoreIconContact 51535}, Symbol.toStringTag, { value: "Module" })); 51536const _sfc_main$2m = { 51537 props: { 51538 settings: { 51539 type: Object, 51540 required: false 51541 } 51542 }, 51543 computed: { 51544 alt() { 51545 var _a, _b; 51546 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51547 }, 51548 id() { 51549 var _a, _b; 51550 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51551 } 51552 } 51553}; 51554const _hoisted_1$2m = ["aria-labelledby", "aria-label"]; 51555const _hoisted_2$2d = ["id"]; 51556function _sfc_render$2a(_ctx, _cache, $props, $setup, $data, $options) { 51557 return openBlock(), createElementBlock("svg", { 51558 width: "24", 51559 height: "24",
51560 viewBox: "0 0 24 24", 51561 fill: "none", 51562 xmlns: "http://www.w3.org/2000/svg", 51563 role: "img", 51564 "aria-labelledby": `icon-title-${$options.id}`, 51565 "aria-label": $options.alt 51566 }, [ 51567 createBaseVNode("title", { 51568 id: `icon-title-${$options.id}` 51569 }, toDisplayString($options.alt), 9, _hoisted_2$2d), 51570 _cache[0] || (_cache[0] = createBaseVNode("path", { 51571 d: "M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z", 51572 stroke: "currentColor", 51573 "stroke-width": "2", 51574 "stroke-linecap": "round", 51575 "stroke-linejoin": "round" 51576 }, null, -1)), 51577 _cache[1] || (_cache[1] = createBaseVNode("path", { 51578 d: "M22 6L12 13L2 6", 51579 stroke: "currentColor", 51580 "stroke-width": "2", 51581 "stroke-linecap": "round", 51582 "stroke-linejoin": "round" 51583 }, null, -1)) 51584 ], 8, _hoisted_1$2m); 51585} 51586const CoreIconContactEmail = /* @__PURE__ */ _export_sfc(_sfc_main$2m, [["render", _sfc_render$2a]]); 51587const CoreIconContactEmail$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51588 __proto__: null, 51589 default: CoreIconContactEmail 51590}, Symbol.toStringTag, { value: "Module" })); 51591const _sfc_main$2l = { 51592 props: { 51593 settings: { 51594 type: Object, 51595 required: false 51596 } 51597 }, 51598 computed: { 51599 alt() { 51600 var _a, _b; 51601 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51602 }, 51603 id() { 51604 var _a, _b; 51605 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51606 } 51607 } 51608}; 51609const _hoisted_1$2l = ["aria-labelledby", "aria-label"]; 51610const _hoisted_2$2c = ["id"]; 51611function _sfc_render$29(_ctx, _cache, $props, $setup, $data, $options) { 51612 return openBlock(), createElementBlock("svg", { 51613 width: "24", 51614 height: "24", 51615 viewBox: "0 0 24 24", 51616 fill: "none", 51617 xmlns: "http://www.w3.org/2000/svg", 51618 role: "img", 51619 "aria-labelledby": `icon-title-${$options.id}`, 51620 "aria-label": $options.alt 51621 }, [ 51622 createBaseVNode("title", { 51623 id: `icon-title-${$options.id}` 51624 }, toDisplayString($options.alt), 9, _hoisted_2$2c), 51625 _cache[0] || (_cache[0] = createBaseVNode("path", { 51626 d: "M6 9V2H18V9", 51627 stroke: "currentColor", 51628 "stroke-width": "2", 51629 "stroke-linecap": "round", 51630 "stroke-linejoin": "round" 51631 }, null, -1)), 51632 _cache[1] || (_cache[1] = createBaseVNode("path", { 51633 d: "M6 18H4C3.46957 18 2.96086 17.7893 2.58579 17.4142C2.21071 17.0391 2 16.5304 2 16V11C2 10.4696 2.21071 9.96086 2.58579 9.58579C2.96086 9.21071 3.46957 9 4 9H20C20.5304 9 21.0391 9.21071 21.4142 9.58579C21.7893 9.96086 22 10.4696 22 11V16C22 16.5304 21.7893 17.0391 21.4142 17.4142C21.0391 17.7893 20.5304 18 20 18H18", 51634 stroke: "currentColor", 51635 "stroke-width": "2", 51636 "stroke-linecap": "round", 51637 "stroke-linejoin": "round" 51638 }, null, -1)), 51639 _cache[2] || (_cache[2] = createBaseVNode("path", { 51640 d: "M18 14H6V22H18V14Z", 51641 stroke: "currentColor", 51642 "stroke-width": "2", 51643 "stroke-linecap": "round", 51644 "stroke-linejoin": "round" 51645 }, null, -1)) 51646 ], 8, _hoisted_1$2l); 51647} 51648const CoreIconContactFax = /* @__PURE__ */ _export_sfc(_sfc_main$2l, [["render", _sfc_render$29]]); 51649const CoreIconContactFax$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51650 __proto__: null, 51651 default: CoreIconContactFax 51652}, Symbol.toStringTag, { value: "Module" })); 51653const _sfc_main$2k = { 51654 props: { 51655 settings: { 51656 type: Object, 51657 default: () => ({}) 51658 }, 51659 width: { 51660 type: String, 51661 default: "24" 51662 }, 51663 height: { 51664 type: String, 51665 default: "24" 51666 } 51667 }, 51668 computed: { 51669 alt() { 51670 var _a, _b; 51671 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51672 }, 51673 id() { 51674 var _a, _b; 51675 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51676 } 51677 } 51678}; 51679const _hoisted_1$2k = ["width", "height", "aria-labelledby", "aria-label"];
51680const _hoisted_2$2b = ["id"]; 51681function _sfc_render$28(_ctx, _cache, $props, $setup, $data, $options) { 51682 return openBlock(), createElementBlock("svg", { 51683 xmlns: "http://www.w3.org/2000/svg", 51684 width: $props.width, 51685 height: $props.height, 51686 viewBox: "0 0 24 25", 51687 fill: "none", 51688 "aria-labelledby": `icon-title-${$options.id}`, 51689 "aria-label": $options.alt 51690 }, [ 51691 createBaseVNode("title", { 51692 id: `icon-title-${$options.id}` 51693 }, toDisplayString($options.alt), 9, _hoisted_2$2b), 51694 _cache[0] || (_cache[0] = createBaseVNode("g", { "clip-path": "url(#clip0_5845_47954)" }, [ 51695 createBaseVNode("path", { 51696 d: "M13.17 4.03894L18 8.86894V20.0389H6V4.03894H13.17ZM14 2.03894H6C4.9 2.03894 4 2.93894 4 4.03894V20.0389C4 21.1389 4.9 22.0389 6 22.0389H18C19.1 22.0389 20 21.1389 20 20.0389V8.03894L14 2.03894ZM12 14.0389C13.1 14.0389 14 13.1389 14 12.0389C14 10.9389 13.1 10.0389 12 10.0389C10.9 10.0389 10 10.9389 10 12.0389C10 13.1389 10.9 14.0389 12 14.0389ZM16 17.4689C16 16.6589 15.52 15.9389 14.78 15.6189C13.93 15.2489 12.99 15.0389 12 15.0389C11.01 15.0389 10.07 15.2489 9.22 15.6189C8.48 15.9389 8 16.6589 8 17.4689V18.0389H16V17.4689Z", 51697 fill: "currentColor" 51698 }) 51699 ], -1)), 51700 _cache[1] || (_cache[1] = createBaseVNode("defs", null, [ 51701 createBaseVNode("clipPath", { id: "clip0_5845_47954" }, [ 51702 createBaseVNode("rect", { 51703 width: "24", 51704 height: "24", 51705 fill: "white", 51706 transform: "translate(0 0.0389404)" 51707 }) 51708 ]) 51709 ], -1)) 51710 ], 8, _hoisted_1$2k); 51711} 51712const CoreIconContactPage = /* @__PURE__ */ _export_sfc(_sfc_main$2k, [["render", _sfc_render$28]]); 51713const CoreIconContactPage$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51714 __proto__: null, 51715 default: CoreIconContactPage 51716}, Symbol.toStringTag, { value: "Module" })); 51717const _sfc_main$2j = { 51718 props: { 51719 settings: { 51720 type: Object, 51721 required: false 51722 } 51723 }, 51724 computed: { 51725 alt() { 51726 var _a, _b; 51727 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51728 }, 51729 id() { 51730 var _a, _b; 51731 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51732 } 51733 } 51734}; 51735const _hoisted_1$2j = ["aria-labelledby", "aria-label"]; 51736const _hoisted_2$2a = ["id"]; 51737function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) { 51738 return openBlock(), createElementBlock("svg", { 51739 width: "24", 51740 height: "24", 51741 viewBox: "0 0 24 24", 51742 fill: "none", 51743 xmlns: "http://www.w3.org/2000/svg", 51744 role: "img", 51745 "aria-labelledby": `icon-title-${$options.id}`, 51746 "aria-label": $options.alt 51747 }, [ 51748 createBaseVNode("title", { 51749 id: `icon-title-${$options.id}` 51750 }, toDisplayString($options.alt), 9, _hoisted_2$2a), 51751 _cache[0] || (_cache[0] = createBaseVNode("path", { 51752 d: "M22 16.9201V19.9201C22.0011 20.1986 21.9441 20.4743 21.8325 20.7294C21.7209 20.9846 21.5573 21.2137 21.3521 21.402C21.1468 21.5902 20.9046 21.7336 20.6407 21.8228C20.3769 21.912 20.0974 21.9452 19.82 21.9201C16.7428 21.5857 13.787 20.5342 11.19 18.8501C8.77382 17.3148 6.72533 15.2663 5.18999 12.8501C3.49997 10.2413 2.44824 7.27109 2.11999 4.1801C2.095 3.90356 2.12787 3.62486 2.21649 3.36172C2.30512 3.09859 2.44756 2.85679 2.63476 2.65172C2.82196 2.44665 3.0498 2.28281 3.30379 2.17062C3.55777 2.05843 3.83233 2.00036 4.10999 2.0001H7.10999C7.5953 1.99532 8.06579 2.16718 8.43376 2.48363C8.80173 2.80008 9.04207 3.23954 9.10999 3.7201C9.23662 4.68016 9.47144 5.62282 9.80999 6.5301C9.94454 6.88802 9.97366 7.27701 9.8939 7.65098C9.81415 8.02494 9.62886 8.36821 9.35999 8.6401L8.08999 9.9101C9.51355 12.4136 11.5864 14.4865 14.09 15.9101L15.36 14.6401C15.6319 14.3712 15.9751 14.1859 16.3491 14.1062C16.7231 14.0264 17.1121 14.0556 17.47 14.1901C18.3773 14.5286 19.3199 14.7635 20.28 14.8901C20.7658 14.9586 21.2094 15.2033 21.5265 15.5776C21.8437 15.9519 22.0122 16.4297 22 16.9201Z", 51753 stroke: "currentColor", 51754 "stroke-width": "2", 51755 "stroke-linecap": "round", 51756 "stroke-linejoin": "round" 51757 }, null, -1)) 51758 ], 8, _hoisted_1$2j); 51759} 51760const CoreIconContactPhone = /* @__PURE__ */ _export_sfc(_sfc_main$2j, [["render", _sfc_render$27]]); 51761const CoreIconContactPhone$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51762 __proto__: null, 51763 default: CoreIconContactPhone 51764}, Symbol.toStringTag, { value: "Module" })); 51765const _sfc_main$2i = { 51766 props: { 51767 settings: { 51768 type: Object, 51769 required: false 51770 } 51771 }, 51772 computed: { 51773 alt() { 51774 var _a, _b; 51775 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51776 }, 51777 id() { 51778 var _a, _b; 51779 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51780 } 51781 } 51782}; 51783const _hoisted_1$2i = ["aria-labelledby", "aria-label"]; 51784const _hoisted_2$29 = ["id"]; 51785function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) { 51786 return openBlock(), createElementBlock("svg", { 51787 width: "24", 51788 height: "24",
51789 viewBox: "0 0 24 24", 51790 fill: "none", 51791 xmlns: "http://www.w3.org/2000/svg", 51792 role: "img", 51793 "aria-labelledby": `icon-title-${$options.id}`, 51794 "aria-label": $options.alt 51795 }, [ 51796 createBaseVNode("title", { 51797 id: `icon-title-${$options.id}` 51798 }, toDisplayString($options.alt), 9, _hoisted_2$29), 51799 _cache[0] || (_cache[0] = createBaseVNode("path", { 51800 d: "M17 2H7C5.89543 2 5 2.89543 5 4V20C5 21.1046 5.89543 22 7 22H17C18.1046 22 19 21.1046 19 20V4C19 2.89543 18.1046 2 17 2Z", 51801 stroke: "currentColor", 51802 "stroke-width": "2", 51803 "stroke-linecap": "round", 51804 "stroke-linejoin": "round" 51805 }, null, -1)), 51806 _cache[1] || (_cache[1] = createBaseVNode("path", { 51807 d: "M12 18H12.01", 51808 stroke: "currentColor", 51809 "stroke-width": "2", 51810 "stroke-linecap": "round", 51811 "stroke-linejoin": "round" 51812 }, null, -1)) 51813 ], 8, _hoisted_1$2i); 51814} 51815const CoreIconContactSmartphone = /* @__PURE__ */ _export_sfc(_sfc_main$2i, [["render", _sfc_render$26]]); 51816const CoreIconContactSmartphone$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51817 __proto__: null, 51818 default: CoreIconContactSmartphone 51819}, Symbol.toStringTag, { value: "Module" })); 51820const _sfc_main$2h = { 51821 props: { 51822 settings: { 51823 type: Object, 51824 required: false 51825 } 51826 }, 51827 computed: { 51828 alt() { 51829 var _a, _b; 51830 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51831 }, 51832 id() { 51833 var _a, _b; 51834 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51835 } 51836 } 51837}; 51838const _hoisted_1$2h = ["aria-labelledby", "aria-label"]; 51839const _hoisted_2$28 = ["id"]; 51840function _sfc_render$25(_ctx, _cache, $props, $setup, $data, $options) { 51841 return openBlock(), createElementBlock("svg", { 51842 width: "24", 51843 height: "24", 51844 viewBox: "0 0 24 24", 51845 fill: "none", 51846 xmlns: "http://www.w3.org/2000/svg", 51847 role: "img", 51848 "aria-labelledby": `icon-title-${$options.id}`, 51849 "aria-label": $options.alt 51850 }, [ 51851 createBaseVNode("title", { 51852 id: `icon-title-${$options.id}` 51853 }, toDisplayString($options.alt), 9, _hoisted_2$28), 51854 _cache[0] || (_cache[0] = createBaseVNode("path", { 51855 d: "M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z", 51856 stroke: "currentColor", 51857 "stroke-width": "2", 51858 "stroke-linecap": "round", 51859 "stroke-linejoin": "round" 51860 }, null, -1)), 51861 _cache[1] || (_cache[1] = createBaseVNode("path", { 51862 d: "M12 3V21", 51863 stroke: "currentColor", 51864 "stroke-width": "2", 51865 "stroke-linecap": "round", 51866 "stroke-linejoin": "round" 51867 }, null, -1)) 51868 ], 8, _hoisted_1$2h); 51869} 51870const CoreIconContainersIcon = /* @__PURE__ */ _export_sfc(_sfc_main$2h, [["render", _sfc_render$25]]); 51871const CoreIconContainersIcon$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51872 __proto__: null, 51873 default: CoreIconContainersIcon 51874}, Symbol.toStringTag, { value: "Module" })); 51875const _sfc_main$2g = { 51876 props: { 51877 settings: { 51878 type: Object, 51879 required: false 51880 } 51881 }, 51882 computed: { 51883 alt() { 51884 var _a, _b; 51885 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51886 }, 51887 id() { 51888 var _a, _b; 51889 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51890 } 51891 } 51892}; 51893const _hoisted_1$2g = ["aria-labelledby", "aria-label"]; 51894const _hoisted_2$27 = ["id"]; 51895function _sfc_render$24(_ctx, _cache, $props, $setup, $data, $options) { 51896 return openBlock(), createElementBlock("svg", { 51897 width: "24", 51898 height: "24", 51899 viewBox: "0 0 24 24", 51900 fill: "none", 51901 xmlns: "http://www.w3.org/2000/svg", 51902 role: "img", 51903 "aria-labelledby": `icon-title-${$options.id}`, 51904 "aria-label": $options.alt 51905 }, [ 51906 createBaseVNode("title", { 51907 id: `icon-title-${$options.id}` 51908 }, toDisplayString($options.alt), 9, _hoisted_2$27), 51909 _cache[0] || (_cache[0] = createBaseVNode("path", { 51910 d: "M21 5C19.89 4.65 18.67 4.5 17.5 4.5C15.55 4.5 13.45 4.9 12 6C10.55 4.9 8.45 4.5 6.5 4.5C4.55 4.5 2.45 4.9 1 6V20.65C1 20.9 1.25 21.15 1.5 21.15C1.6 21.15 1.65 21.1 1.75 21.1C3.1 20.45 5.05 20 6.5 20C8.45 20 10.55 20.4 12 21.5C13.35 20.65 15.8 20 17.5 20C19.15 20 20.85 20.3 22.25 21.05C22.35 21.1 22.4 21.1 22.5 21.1C22.75 21.1 23 20.85 23 20.6V6C22.4 5.55 21.75 5.25 21 5ZM3
5191018.5V7C4.1 6.65 5.3 6.5 6.5 6.5C7.84 6.5 9.63 6.91 11 7.49V18.99C9.63 18.41 7.84 18 6.5 18C5.3 18 4.1 18.15 3 18.5ZM21 18.5C19.9 18.15 18.7 18 17.5 18C16.16 18 14.37 18.41 13 18.99V7.49C14.37 6.9 16.16 6.5 17.5 6.5C18.7 6.5 19.9 6.65 21 7V18.5Z", 51911 fill: "currentColor" 51912 }, null, -1)) 51913 ], 8, _hoisted_1$2g); 51914} 51915const CoreIconContentLibrary = /* @__PURE__ */ _export_sfc(_sfc_main$2g, [["render", _sfc_render$24]]); 51916const CoreIconContentLibrary$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51917 __proto__: null, 51918 default: CoreIconContentLibrary 51919}, Symbol.toStringTag, { value: "Module" })); 51920const _hoisted_1$2f = ["aria-labelledby", "aria-label"]; 51921const _hoisted_2$26 = ["id"]; 51922const _sfc_main$2f = { 51923 __name: "CoreIconContentLibraryMedia", 51924 props: { 51925 settings: { 51926 type: Object, 51927 required: false 51928 } 51929 }, 51930 setup(__props) { 51931 const props = __props; 51932 const alt = computed(() => { 51933 var _a, _b; 51934 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Media Management Icon"; 51935 }); 51936 const id = computed(() => { 51937 var _a, _b; 51938 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 51939 }); 51940 return (_ctx, _cache) => { 51941 return openBlock(), createElementBlock("svg", { 51942 width: "24", 51943 height: "25",
51944 viewBox: "0 0 24 25", 51945 fill: "none", 51946 xmlns: "http://www.w3.org/2000/svg", 51947 "aria-labelledby": `icon-title-${unref(id)}`, 51948 "aria-label": unref(alt) 51949 }, [ 51950 createBaseVNode("title", { 51951 id: `icon-title-${unref(id)}` 51952 }, toDisplayString(unref(alt)), 9, _hoisted_2$26), 51953 _cache[0] || (_cache[0] = createBaseVNode("path", { 51954 "fill-rule": "evenodd", 51955 "clip-rule": "evenodd", 51956 d: "M3 4.56672C3 3.91502 3.5283 3.38672 4.18 3.38672H6V6.38672H3V4.56672ZM3 8.38672H6V11.3867H3V8.38672ZM1 4.56672V7.38672V12.3867V17.3867V20.2067C1 21.963 2.42373 23.3867 4.18 23.3867H7H17H19.82C21.5763 23.3867 23 21.963 23 20.2067V17.3867V12.3867V7.38672V4.56672C23 2.81045 21.5763 1.38672 19.82 1.38672H17H7H4.18C2.42373 1.38672 1 2.81045 1 4.56672ZM21 6.38672V4.56672C21 3.91502 20.4717 3.38672 19.82 3.38672H18V6.38672H21ZM18 8.38672H21V11.3867H18V8.38672ZM16 7.38672V3.38672H8V7.38672V11.3867H16V7.38672ZM21 13.3867V16.3867H18V13.3867H21ZM21 18.3867H18V21.3867H19.82C20.4717 21.3867 21 20.8584 21 20.2067V18.3867ZM16 13.3867V17.3867V21.3867H8V17.3867V13.3867H16ZM3 18.3867V20.2067C3 20.8584 3.5283 21.3867 4.18 21.3867H6V18.3867H3ZM6 16.3867H3V13.3867H6V16.3867Z", 51957 fill: "currentColor" 51958 }, null, -1)) 51959 ], 8, _hoisted_1$2f); 51960 }; 51961 } 51962}; 51963const CoreIconContentLibraryMedia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 51964 __proto__: null, 51965 default: _sfc_main$2f 51966}, Symbol.toStringTag, { value: "Module" })); 51967const _sfc_main$2e = { 51968 props: { 51969 settings: { 51970 type: Object, 51971 required: false 51972 } 51973 }, 51974 computed: { 51975 alt() { 51976 var _a, _b; 51977 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 51978 }, 51979 id() { 51980 var _a, _b; 51981 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 51982 } 51983 } 51984}; 51985const _hoisted_1$2e = ["aria-labelledby", "aria-label"]; 51986const _hoisted_2$25 = ["id"]; 51987function _sfc_render$23(_ctx, _cache, $props, $setup, $data, $options) { 51988 return openBlock(), createElementBlock("svg", { 51989 width: "24", 51990 height: "24", 51991 version: "1.1", 51992 xmlns: "http://www.w3.org/2000/svg", 51993 "xmlns:xlink": "http://www.w3.org/1999/xlink", 51994 viewBox: "0 0 30 30", 51995 style: { "enable-background": "new 0 0 30 30" }, 51996 "aria-labelledby": `icon-title-${$options.id}`, 51997 "aria-label": $options.alt, 51998 fill: "currentColor" 51999 }, [ 52000 createBaseVNode("title", { 52001 id: `icon-title-${$options.id}` 52002 }, toDisplayString($options.alt), 9, _hoisted_2$25), 52003 _cache[0] || (_cache[0] = createBaseVNode("path", { d: "M2.5,23.1h25v5h-25V23.1z M6.9,19.4h3l1.6-4.5h7.1l1.6,4.5h3L16.6,1.9h-3.1L6.9,19.4z M12.4,12.4l2.5-7.2h0.1\n l2.5,7.2H12.4z" }, null, -1)) 52004 ], 8, _hoisted_1$2e); 52005} 52006const CoreIconCopy = /* @__PURE__ */ _export_sfc(_sfc_main$2e, [["render", _sfc_render$23]]); 52007const CoreIconCopy$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52008 __proto__: null, 52009 default: CoreIconCopy 52010}, Symbol.toStringTag, { value: "Module" })); 52011const _sfc_main$2d = { 52012 props: { 52013 settings: { 52014 type: Object, 52015 required: false 52016 } 52017 }, 52018 computed: { 52019 alt() { 52020 var _a, _b; 52021 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52022 }, 52023 id() { 52024 var _a, _b; 52025 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52026 } 52027 } 52028}; 52029const _hoisted_1$2d = ["aria-labelledby", "aria-label"]; 52030const _hoisted_2$24 = { id: "`icon-title-${id}`" }; 52031function _sfc_render$22(_ctx, _cache, $props, $setup, $data, $options) { 52032 return openBlock(), createElementBlock("svg", { 52033 width: "24", 52034 height: "24", 52035 viewBox: "0 0 24 24", 52036 fill: "none", 52037 xmlns: "http://www.w3.org/2000/svg", 52038 role: "img", 52039 "aria-labelledby": `icon-title-${$options.id}`, 52040 "aria-label": $options.alt 52041 }, [ 52042 createBaseVNode("title", _hoisted_2$24, toDisplayString($options.alt), 1), 52043 _cache[0] || (_cache[0] = createBaseVNode("g", { "clip-path": "url(#clip0_548_2917)" }, [ 52044 createBaseVNode("path", { 52045 d: "M11.88 9.14C13.16 9.2 13.49 10.29 13.51 10.8H15.3C15.22 8.82 13.81 7.61 11.85 7.61C9.64 7.61 8 9 8 12.14C8 14.08 8.93 16.38 11.84 16.38C14.06 16.38 15.25 14.73 15.28 13.43H13.49C13.46 14.02 13.04 14.81 11.86 14.87C10.55 14.83 10 13.81 10 12.14C10 9.25 11.28 9.16 11.88 9.14ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z", 52046 fill: "currentColor" 52047 }) 52048 ], -1)), 52049 _cache[1] || (_cache[1] = createBaseVNode("defs", null, [ 52050 createBaseVNode("clipPath", { id: "clip0_548_2917" }, [ 52051 createBaseVNode("rect", { 52052 width: "24", 52053 height: "24", 52054 fill: "white" 52055 }) 52056 ]) 52057 ], -1)) 52058 ], 8, _hoisted_1$2d); 52059} 52060const CoreIconCopyright = /* @__PURE__ */ _export_sfc(_sfc_main$2d, [["render", _sfc_render$22]]); 52061const CoreIconCopyright$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52062 __proto__: null, 52063 default: CoreIconCopyright 52064}, Symbol.toStringTag, { value: "Module" })); 52065const _sfc_main$2c = { 52066 props: { 52067 settings: { 52068 type: Object, 52069 required: false 52070 } 52071 }, 52072 computed: { 52073 alt() { 52074 var _a, _b; 52075 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52076 }, 52077 id() { 52078 var _a, _b; 52079 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52080 } 52081 } 52082}; 52083const _hoisted_1$2c = ["aria-labelledby", "aria-label"]; 52084const _hoisted_2$23 = ["id"]; 52085function _sfc_render$21(_ctx, _cache, $props, $setup, $data, $options) { 52086 return openBlock(), createElementBlock("svg", { 52087 xmlns: "http://www.w3.org/2000/svg", 52088 width: "24", 52089 height: "24",
52090 viewBox: "0 0 24 24", 52091 fill: "none", 52092 role: "img", 52093 "aria-labelledby": `icon-title-${$options.id}`, 52094 "aria-label": $options.alt 52095 }, [ 52096 createBaseVNode("title", { 52097 id: `icon-title-${$options.id}` 52098 }, toDisplayString($options.alt), 9, _hoisted_2$23), 52099 _cache[0] || (_cache[0] = createBaseVNode("path", { 52100 d: "M15.17 14L13.58 12.41L15 11L19 15L15 19L13.59 17.59L15.17 16H7C5.9 16 5 15.1 5 14V5H7V14H15.17Z", 52101 fill: "black" 52102 }, null, -1)) 52103 ], 8, _hoisted_1$2c); 52104} 52105const CoreIconCornerDownRight = /* @__PURE__ */ _export_sfc(_sfc_main$2c, [["render", _sfc_render$21]]); 52106const CoreIconCornerDownRight$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52107 __proto__: null, 52108 default: CoreIconCornerDownRight 52109}, Symbol.toStringTag, { value: "Module" })); 52110const _sfc_main$2b = { 52111 props: { 52112 settings: { 52113 type: Object, 52114 required: false 52115 } 52116 }, 52117 computed: { 52118 alt() { 52119 var _a, _b; 52120 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52121 }, 52122 id() { 52123 var _a, _b; 52124 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52125 } 52126 } 52127}; 52128const _hoisted_1$2b = ["aria-labelledby", "aria-label"]; 52129const _hoisted_2$22 = ["id"]; 52130function _sfc_render$20(_ctx, _cache, $props, $setup, $data, $options) { 52131 return openBlock(), createElementBlock("svg", { 52132 xmlns: "http://www.w3.org/2000/svg", 52133 width: "24", 52134 height: "24", 52135 viewBox: "0 0 24 24", 52136 fill: "none", 52137 role: "img", 52138 "aria-labelledby": `icon-title-${$options.id}`, 52139 "aria-label": $options.alt 52140 }, [ 52141 createBaseVNode("title", { 52142 id: `icon-title-${$options.id}` 52143 }, toDisplayString($options.alt), 9, _hoisted_2$22), 52144 _cache[0] || (_cache[0] = createBaseVNode("path", { 52145 d: "M21 4H3C1.89543 4 1 4.89543 1 6V18C1 19.1046 1.89543 20 3 20H21C22.1046 20 23 19.1046 23 18V6C23 4.89543 22.1046 4 21 4Z", 52146 stroke: "currentColor", 52147 "stroke-width": "2", 52148 "stroke-linecap": "round", 52149 "stroke-linejoin": "round" 52150 }, null, -1)), 52151 _cache[1] || (_cache[1] = createBaseVNode("path", { 52152 d: "M1 10H23", 52153 stroke: "currentColor", 52154 "stroke-width": "2", 52155 "stroke-linecap": "round", 52156 "stroke-linejoin": "round" 52157 }, null, -1)) 52158 ], 8, _hoisted_1$2b); 52159} 52160const CoreIconCreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$2b, [["render", _sfc_render$20]]); 52161const CoreIconCreditCard$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52162 __proto__: null, 52163 default: CoreIconCreditCard 52164}, Symbol.toStringTag, { value: "Module" })); 52165const _sfc_main$2a = { 52166 props: { 52167 settings: { 52168 type: Object, 52169 required: false 52170 } 52171 }, 52172 computed: { 52173 alt() { 52174 var _a, _b; 52175 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52176 }, 52177 id() { 52178 var _a, _b; 52179 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52180 } 52181 } 52182}; 52183const _hoisted_1$2a = ["aria-labelledby", "aria-label"]; 52184const _hoisted_2$21 = ["id"]; 52185function _sfc_render$1$(_ctx, _cache, $props, $setup, $data, $options) { 52186 return openBlock(), createElementBlock("svg", { 52187 xmlns: "http://www.w3.org/2000/svg", 52188 width: "24", 52189 height: "25", 52190 viewBox: "0 0 24 25", 52191 fill: "none", 52192 role: "img", 52193 "aria-labelledby": `icon-title-${$options.id}`, 52194 "aria-label": $options.alt 52195 }, [ 52196 createBaseVNode("title", { 52197 id: `icon-title-${$options.id}` 52198 }, toDisplayString($options.alt), 9, _hoisted_2$21), 52199 _cache[0] || (_cache[0] = createBaseVNode("path", { 52200 d: "M17 15.1182H19V7.11816C19 6.01816 18.1 5.11816 17 5.11816H9V7.11816H17V15.1182ZM7 17.1182V1.11816H5V5.11816H1V7.11816H5V17.1182C5 18.2182 5.9 19.1182 7 19.1182H17V23.1182H19V19.1182H23V17.1182H7Z", 52201 fill: "currentColor" 52202 }, null, -1)) 52203 ], 8, _hoisted_1$2a); 52204} 52205const CoreIconCrop = /* @__PURE__ */ _export_sfc(_sfc_main$2a, [["render", _sfc_render$1$]]); 52206const CoreIconCrop$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52207 __proto__: null, 52208 default: CoreIconCrop 52209}, Symbol.toStringTag, { value: "Module" })); 52210const _sfc_main$29 = { 52211 props: { 52212 settings: { 52213 type: Object, 52214 required: false 52215 } 52216 }, 52217 computed: { 52218 alt() { 52219 var _a, _b; 52220 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52221 }, 52222 id() { 52223 var _a, _b; 52224 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52225 } 52226 } 52227}; 52228const _hoisted_1$29 = ["aria-labelledby", "aria-label"]; 52229const _hoisted_2$20 = ["id"]; 52230function _sfc_render$1_(_ctx, _cache, $props, $setup, $data, $options) { 52231 return openBlock(), createElementBlock("svg", { 52232 width: "24", 52233 height: "24",
52234 viewBox: "0 0 24 24", 52235 fill: "none", 52236 xmlns: "http://www.w3.org/2000/svg", 52237 role: "img", 52238 "aria-labelledby": `icon-title-${$options.id}`, 52239 "aria-label": $options.alt 52240 }, [ 52241 createBaseVNode("title", { 52242 id: `icon-title-${$options.id}` 52243 }, toDisplayString($options.alt), 9, _hoisted_2$20), 52244 _cache[0] || (_cache[0] = createBaseVNode("path", { 52245 d: "M21.275 16.87L22.415 15.87L21.415 14.14L19.965 14.63C19.645 14.36 19.285 14.15 18.885 14L18.585 12.5H16.585L16.285 13.99C15.885 14.14 15.525 14.35 15.205 14.62L13.755 14.13L12.755 15.86L13.895 16.86C13.815 17.36 13.815 17.62 13.895 18.12L12.755 19.12L13.755 20.85L15.205 20.36C15.525 20.63 15.885 20.84 16.285 20.99L16.585 22.5H18.585L18.885 21.01C19.285 20.86 19.645 20.65 19.965 20.38L21.415 20.87L22.415 19.14L21.275 18.14C21.355 17.63 21.355 17.37 21.275 16.87ZM17.585 19.5C16.485 19.5 15.585 18.6 15.585 17.5C15.585 16.4 16.485 15.5 17.585 15.5C18.685 15.5 19.585 16.4 19.585 17.5C19.585 18.6 18.685 19.5 17.585 19.5ZM19.585 10.5C19.585 5.53 15.555 1.5 10.585 1.5C7.75496 1.5 5.23496 2.82 3.58496 4.86V2.5H1.58496V8.5H7.58496V6.5H4.84496C6.11496 4.69 8.21496 3.5 10.585 3.5C14.445 3.5 17.585 6.64 17.585 10.5H19.585ZM9.44496 17.41C6.45496 16.92 4.09496 14.51 3.66496 11.5H1.64496C2.14496 16 5.95496 19.5 10.585 19.5C10.605 19.5 10.635 19.5 10.655 19.5L9.44496 17.41Z", 52246 fill: "currentColor" 52247 }, null, -1)) 52248 ], 8, _hoisted_1$29); 52249} 52250const CoreIconDefault = /* @__PURE__ */ _export_sfc(_sfc_main$29, [["render", _sfc_render$1_]]); 52251const CoreIconDefault$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52252 __proto__: null, 52253 default: CoreIconDefault 52254}, Symbol.toStringTag, { value: "Module" })); 52255const _sfc_main$28 = { 52256 props: { 52257 settings: { 52258 type: Object, 52259 required: false 52260 } 52261 }, 52262 computed: { 52263 alt() { 52264 var _a, _b; 52265 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52266 }, 52267 id() { 52268 var _a, _b; 52269 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52270 } 52271 } 52272}; 52273const _hoisted_1$28 = ["aria-labelledby", "aria-label"]; 52274const _hoisted_2$1$ = ["id"]; 52275function _sfc_render$1Z(_ctx, _cache, $props, $setup, $data, $options) { 52276 return openBlock(), createElementBlock("svg", { 52277 width: "24", 52278 height: "24", 52279 viewBox: "0 0 24 24", 52280 fill: "none", 52281 xmlns: "http://www.w3.org/2000/svg", 52282 role: "img", 52283 "aria-labelledby": `icon-title-${$options.id}`, 52284 "aria-label": $options.alt 52285 }, [ 52286 createBaseVNode("title", { 52287 id: `icon-title-${$options.id}` 52288 }, toDisplayString($options.alt), 9, _hoisted_2$1$), 52289 _cache[0] || (_cache[0] = createStaticVNode('<path d="M12 22C6.49 22 2 17.51 2 12C2 6.49 6.49 2 12 2C17.51 2 22 6.04 22 11C22 14.31 19.31 17 16 17H14.23C13.95 17 13.73 17.22 13.73 17.5C13.73 17.62 13.78 17.73 13.86 17.83C14.27 18.3 14.5 18.89 14.5 19.5C14.5 20.88 13.38 22 12 22ZM12 4C7.59 4 4 7.59 4 12C4 16.41 7.59 20 12 20C12.28 20 12.5 19.78 12.5 19.5C12.5 19.34 12.42 19.22 12.36 19.15C11.95 18.69 11.73 18.1 11.73 17.5C11.73 16.12 12.85 15 14.23 15H16C18.21 15 20 13.21 20 11C20 7.14 16.41 4 12 4Z" fill="currentColor"></path><path d="M6.5 13C7.32843 13 8 12.3284 8 11.5C8 10.6716 7.32843 10 6.5 10C5.67157 10 5 10.6716 5 11.5C5 12.3284 5.67157 13 6.5 13Z" fill="currentColor"></path><path d="M9.5 9C10.3284 9 11 8.32843 11 7.5C11 6.67157 10.3284 6 9.5 6C8.67157 6 8 6.67157 8 7.5C8 8.32843 8.67157 9 9.5 9Z" fill="currentColor"></path><path d="M14.5 9C15.3284 9 16 8.32843 16 7.5C16 6.67157 15.3284 6 14.5 6C13.6716 6 13 6.67157 13 7.5C13 8.32843 13.6716 9 14.5 9Z" fill="currentColor"></path><path d="M17.5 13C18.3284 13 19 12.3284 19 11.5C19 10.6716 18.3284 10 17.5 10C16.6716 10 16 10.6716 16 11.5C16 12.3284 16.6716 13 17.5 13Z" fill="currentColor"></path>', 5)) 52290 ], 8, _hoisted_1$28); 52291} 52292const CoreIconDesign = /* @__PURE__ */ _export_sfc(_sfc_main$28, [["render", _sfc_render$1Z]]); 52293const CoreIconDesign$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52294 __proto__: null, 52295 default: CoreIconDesign 52296}, Symbol.toStringTag, { value: "Module" })); 52297const _sfc_main$27 = { 52298 props: { 52299 settings: { 52300 type: Object, 52301 required: false 52302 } 52303 }, 52304 computed: { 52305 alt() { 52306 var _a, _b; 52307 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52308 }, 52309 id() { 52310 var _a, _b; 52311 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52312 } 52313 } 52314}; 52315const _hoisted_1$27 = ["aria-labelledby", "aria-label"]; 52316const _hoisted_2$1_ = ["id"]; 52317function _sfc_render$1Y(_ctx, _cache, $props, $setup, $data, $options) { 52318 return openBlock(), createElementBlock("svg", { 52319 width: "24", 52320 height: "24",
52321 viewBox: "0 0 24 24", 52322 fill: "none", 52323 xmlns: "http://www.w3.org/2000/svg", 52324 role: "img", 52325 "aria-labelledby": `icon-title-${$options.id}`, 52326 "aria-label": $options.alt 52327 }, [ 52328 createBaseVNode("title", { 52329 id: `icon-title-${$options.id}` 52330 }, toDisplayString($options.alt), 9, _hoisted_2$1_), 52331 _cache[0] || (_cache[0] = createBaseVNode("path", { 52332 "fill-rule": "evenodd", 52333 "clip-rule": "evenodd", 52334 d: "M3.60193 6.38361C3.60193 5.94125 3.96053 5.58264 4.40289 5.58264H17.2183C17.6607 5.58264 18.0193 5.94125 18.0193 6.38361V7.74995H19.6212V6.38361C19.6212 5.05653 18.5454 3.98071 17.2183 3.98071H4.40289C3.07581 3.98071 2 5.05653 2 6.38361V14.3933C2 15.7203 3.07581 16.7961 4.40289 16.7961H10.0096V18.3981H7.60673C7.16437 18.3981 6.80576 18.7567 6.80576 19.1991C6.80576 19.6414 7.16437 20 7.60673 20H14.0144C14.4568 20 14.8154 19.6414 14.8154 19.1991C14.8154 18.7567 14.4568 18.3981 14.0144 18.3981H11.6116V16.7961H13.3077V15.1942H10.8232L10.8106 15.1941L10.798 15.1942H4.40289C3.96053 15.1942 3.60193 14.8356 3.60193 14.3933V6.38361Z", 52335 fill: "currentColor" 52336 }, null, -1)), 52337 _cache[1] || (_cache[1] = createBaseVNode("path", { 52338 "fill-rule": "evenodd", 52339 "clip-rule": "evenodd", 52340 d: "M16.5602 10.3983C16.5145 10.4508 16.473 10.5405 16.473 10.658V18.8457C16.473 18.9632 16.5145 19.0529 16.5602 19.1055C16.6047 19.1565 16.6406 19.1624 16.6568 19.1624H21.1095C21.1256 19.1624 21.1616 19.1565 21.206 19.1055C21.2517 19.0529 21.2933 18.9632 21.2933 18.8457V10.658C21.2933 10.5405 21.2517 10.4508 21.206 10.3983C21.1616 10.3472 21.1256 10.3413 21.1095 10.3413H16.6568C16.6406 10.3413 16.6047 10.3472 16.5602 10.3983ZM15.0595 10.658C15.0595 9.79801 15.6855 8.92786 16.6568 8.92786H21.1095C22.0807 8.92786 22.7067 9.79801 22.7067 10.658V18.8457C22.7067 19.7057 22.0807 20.5759 21.1095 20.5759H16.6568C15.6855 20.5759 15.0595 19.7057 15.0595 18.8457V10.658Z", 52341 fill: "currentColor" 52342 }, null, -1)), 52343 _cache[2] || (_cache[2] = createBaseVNode("path", { 52344 "fill-rule": "evenodd", 52345 "clip-rule": "evenodd", 52346 d: "M18.4471 18.2809C18.4471 17.9967 18.6775 17.7664 18.9616 17.7664H18.9676C19.2518 17.7664 19.4821 17.9967 19.4821 18.2809C19.4821 18.565 19.2518 18.7954 18.9676 18.7954H18.9616C18.6775 18.7954 18.4471 18.565 18.4471 18.2809Z", 52347 fill: "currentColor" 52348 }, null, -1)) 52349 ], 8, _hoisted_1$27); 52350} 52351const CoreIconDevices = /* @__PURE__ */ _export_sfc(_sfc_main$27, [["render", _sfc_render$1Y]]); 52352const CoreIconDevices$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52353 __proto__: null, 52354 default: CoreIconDevices 52355}, Symbol.toStringTag, { value: "Module" })); 52356const _hoisted_1$26 = ["aria-labelledby", "aria-label"]; 52357const _hoisted_2$1Z = ["id"]; 52358const _sfc_main$26 = { 52359 __name: "CoreIconDiagonalRightArrow", 52360 props: { 52361 settings: { 52362 type: Object, 52363 required: false 52364 } 52365 }, 52366 setup(__props) { 52367 const props = __props; 52368 const alt = computed(() => { 52369 var _a, _b; 52370 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Arrow Icon"; 52371 }); 52372 const id = computed(() => { 52373 var _a, _b; 52374 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 52375 }); 52376 return (_ctx, _cache) => { 52377 return openBlock(), createElementBlock("svg", { 52378 xmlns: "http://www.w3.org/2000/svg", 52379 width: "24", 52380 height: "25",
52381 viewBox: "0 0 24 25", 52382 fill: "none", 52383 role: "img", 52384 "aria-labelledby": `icon-title-${unref(id)}`, 52385 "aria-label": unref(alt) 52386 }, [ 52387 createBaseVNode("title", { 52388 id: `icon-title-${unref(id)}` 52389 }, toDisplayString(unref(alt)), 9, _hoisted_2$1Z), 52390 _cache[0] || (_cache[0] = createBaseVNode("path", { 52391 d: "M3 12.7012L22 3.70117L13 22.7012L11 14.7012L3 12.7012Z", 52392 stroke: "currentColor", 52393 "stroke-width": "2", 52394 "stroke-linecap": "round", 52395 "stroke-linejoin": "round" 52396 }, null, -1)) 52397 ], 8, _hoisted_1$26); 52398 }; 52399 } 52400}; 52401const CoreIconDiagonalRightArrow = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52402 __proto__: null, 52403 default: _sfc_main$26 52404}, Symbol.toStringTag, { value: "Module" })); 52405const _sfc_main$25 = { 52406 props: { 52407 settings: { 52408 type: Object, 52409 required: false 52410 } 52411 }, 52412 computed: { 52413 alt() { 52414 var _a, _b; 52415 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon) || "Disclosures"; 52416 }, 52417 id() { 52418 var _a, _b; 52419 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52420 } 52421 } 52422}; 52423const _hoisted_1$25 = ["aria-labelledby", "aria-label"];
52424const _hoisted_2$1Y = ["id"]; 52425function _sfc_render$1X(_ctx, _cache, $props, $setup, $data, $options) { 52426 return openBlock(), createElementBlock("svg", { 52427 width: "24", 52428 height: "25", 52429 viewBox: "0 0 24 25", 52430 fill: "none", 52431 xmlns: "http://www.w3.org/2000/svg", 52432 "aria-labelledby": `icon-title-${$options.id}`, 52433 "aria-label": $options.alt 52434 }, [ 52435 createBaseVNode("title", { 52436 id: `icon-title-${$options.id}` 52437 }, toDisplayString($options.alt), 9, _hoisted_2$1Y), 52438 _cache[0] || (_cache[0] = createBaseVNode("path", { 52439 "fill-rule": "evenodd", 52440 "clip-rule": "evenodd", 52441 d: "M4.79138 6.77008C4.79138 6.32772 5.14999 5.96912 5.59235 5.96912H18.4078C18.8501 5.96912 19.2087 6.32772 19.2087 6.77008V10.9492H20.8107V6.77008C20.8107 5.443 19.7349 4.36719 18.4078 4.36719H5.59235C4.26527 4.36719 3.18945 5.443 3.18945 6.77008V14.7797C3.18945 16.1068 4.26527 17.1826 5.59235 17.1826H11.1992V18.7852H8.79608C8.35372 18.7852 7.99512 19.1438 7.99512 19.5861C7.99512 20.0285 8.35372 20.3871 8.79608 20.3871H11.9656C11.971 20.3873 11.9765 20.3875 11.982 20.3876C11.988 20.3878 11.9941 20.3878 12.0002 20.3878C12.0118 20.3878 12.0233 20.3876 12.0348 20.3871H15.2038C15.6462 20.3871 16.0048 20.0285 16.0048 19.5861C16.0048 19.1438 15.6462 18.7852 15.2038 18.7852H12.8011V17.1826H16.0947V15.5807H5.59235C5.14999 15.5807 4.79138 15.2221 4.79138 14.7797V6.77008Z", 52442 fill: "currentColor" 52443 }, null, -1)), 52444 _cache[1] || (_cache[1] = createBaseVNode("path", { 52445 d: "M21.6543 14.4902V13.4902C21.6543 12.3902 20.7543 11.4902 19.6543 11.4902C18.5543 11.4902 17.6543 12.3902 17.6543 13.4902V14.4902C17.1043 14.4902 16.6543 14.9402 16.6543 15.4902V18.4902C16.6543 19.0402 17.1043 19.4902 17.6543 19.4902H21.6543C22.2043 19.4902 22.6543 19.0402 22.6543 18.4902V15.4902C22.6543 14.9402 22.2043 14.4902 21.6543 14.4902ZM20.6543 14.4902H18.6543V13.4902C18.6543 12.9402 19.1043 12.4902 19.6543 12.4902C20.2043 12.4902 20.6543 12.9402 20.6543 13.4902V14.4902Z", 52446 fill: "currentColor" 52447 }, null, -1)), 52448 _cache[2] || (_cache[2] = createBaseVNode("rect", { 52449 x: "6.00391", 52450 y: "12.9727", 52451 width: "10.6509", 52452 height: "1.5", 52453 fill: "currentColor" 52454 }, null, -1)) 52455 ], 8, _hoisted_1$25); 52456} 52457const CoreIconDisclosures = /* @__PURE__ */ _export_sfc(_sfc_main$25, [["render", _sfc_render$1X]]); 52458const CoreIconDisclosures$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52459 __proto__: null, 52460 default: CoreIconDisclosures 52461}, Symbol.toStringTag, { value: "Module" })); 52462const _sfc_main$24 = { 52463 props: { 52464 settings: { 52465 type: Object, 52466 required: false, 52467 default: () => { 52468 } 52469 } 52470 }, 52471 computed: { 52472 alt() { 52473 var _a, _b; 52474 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52475 }, 52476 id() { 52477 var _a, _b; 52478 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52479 } 52480 } 52481}; 52482const _hoisted_1$24 = ["aria-labelledby", "aria-label"]; 52483const _hoisted_2$1X = ["id"]; 52484function _sfc_render$1W(_ctx, _cache, $props, $setup, $data, $options) { 52485 return openBlock(), createElementBlock("svg", { 52486 xmlns: "http://www.w3.org/2000/svg", 52487 width: "24", 52488 height: "24", 52489 viewBox: "0 0 24 24", 52490 fill: "none", 52491 role: "img", 52492 "aria-labelledby": `icon-title-${$options.id}`, 52493 "aria-label": $options.alt 52494 }, [ 52495 createBaseVNode("title", { 52496 id: `icon-title-${$options.id}` 52497 }, toDisplayString($options.alt), 9, _hoisted_2$1X), 52498 _cache[0] || (_cache[0] = createBaseVNode("path", { 52499 "fill-rule": "evenodd", 52500 "clip-rule": "evenodd", 52501 d: "M20.9999 11.9999C20.9999 12.5522 20.5522 12.9999 19.9999 12.9999H3.99994C3.44765 12.9999 2.99994 12.5522 2.99994 11.9999C2.99994 11.4476 3.44765 10.9999 3.99994 10.9999H19.9999C20.5522 10.9999 20.9999 11.4476 20.9999 11.9999Z", 52502 fill: "CurrentColor" 52503 }, null, -1)) 52504 ], 8, _hoisted_1$24); 52505} 52506const CoreIconDivider = /* @__PURE__ */ _export_sfc(_sfc_main$24, [["render", _sfc_render$1W]]); 52507const CoreIconDivider$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52508 __proto__: null, 52509 default: CoreIconDivider 52510}, Symbol.toStringTag, { value: "Module" })); 52511const _sfc_main$23 = { 52512 props: { 52513 settings: { 52514 type: Object, 52515 required: false 52516 } 52517 }, 52518 computed: { 52519 alt() { 52520 var _a, _b; 52521 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52522 }, 52523 id() { 52524 var _a, _b; 52525 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52526 } 52527 } 52528}; 52529const _hoisted_1$23 = ["aria-labelledby", "aria-label"]; 52530const _hoisted_2$1W = ["id"]; 52531function _sfc_render$1V(_ctx, _cache, $props, $setup, $data, $options) { 52532 return openBlock(), createElementBlock("svg", { 52533 width: "24", 52534 height: "24",
52535 viewBox: "0 0 24 24", 52536 fill: "none", 52537 xmlns: "http://www.w3.org/2000/svg", 52538 role: "img", 52539 "aria-labelledby": `icon-title-${$options.id}`, 52540 "aria-label": $options.alt 52541 }, [ 52542 createBaseVNode("title", { 52543 id: `icon-title-${$options.id}` 52544 }, toDisplayString($options.alt), 9, _hoisted_2$1W), 52545 _cache[0] || (_cache[0] = createBaseVNode("path", { 52546 d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", 52547 stroke: "currentColor", 52548 "stroke-width": "2", 52549 "stroke-linecap": "round", 52550 "stroke-linejoin": "round" 52551 }, null, -1)), 52552 _cache[1] || (_cache[1] = createBaseVNode("path", { 52553 d: "M2 12H22", 52554 stroke: "currentColor", 52555 "stroke-width": "2", 52556 "stroke-linecap": "round", 52557 "stroke-linejoin": "round" 52558 }, null, -1)), 52559 _cache[2] || (_cache[2] = createBaseVNode("path", { 52560 d: "M12 2C14.5013 4.73835 15.9228 8.29203 16 12C15.9228 15.708 14.5013 19.2616 12 22C9.49872 19.2616 8.07725 15.708 8 12C8.07725 8.29203 9.49872 4.73835 12 2V2Z", 52561 stroke: "currentColor", 52562 "stroke-width": "2", 52563 "stroke-linecap": "round", 52564 "stroke-linejoin": "round" 52565 }, null, -1)) 52566 ], 8, _hoisted_1$23); 52567} 52568const CoreIconDomains = /* @__PURE__ */ _export_sfc(_sfc_main$23, [["render", _sfc_render$1V]]); 52569const CoreIconDomains$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52570 __proto__: null, 52571 default: CoreIconDomains 52572}, Symbol.toStringTag, { value: "Module" })); 52573const _sfc_main$22 = { 52574 name: "CoreIconHamburgerMenu", 52575 props: { 52576 settings: { 52577 type: Object, 52578 required: false 52579 } 52580 }, 52581 computed: { 52582 alt() { 52583 var _a, _b; 52584 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52585 }, 52586 id() { 52587 var _a, _b; 52588 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52589 } 52590 } 52591}; 52592const _hoisted_1$22 = ["aria-labelledby", "aria-label"]; 52593const _hoisted_2$1V = ["id"]; 52594function _sfc_render$1U(_ctx, _cache, $props, $setup, $data, $options) { 52595 return openBlock(), createElementBlock("svg", { 52596 role: "img", 52597 width: "20", 52598 height: "17", 52599 viewBox: "0 0 20 17", 52600 fill: "none", 52601 xmlns: "http://www.w3.org/2000/svg", 52602 "aria-labelledby": `icon-title-${$options.id}`, 52603 "aria-label": $options.alt 52604 }, [ 52605 createBaseVNode("title", { 52606 id: `icon-title-${$options.id}` 52607 }, toDisplayString($options.alt), 9, _hoisted_2$1V), 52608 _cache[0] || (_cache[0] = createBaseVNode("path", { 52609 d: "M1 6H19", 52610 stroke: "currentColor", 52611 "stroke-width": "2", 52612 "stroke-linecap": "round", 52613 "stroke-linejoin": "round" 52614 }, null, -1)), 52615 _cache[1] || (_cache[1] = createBaseVNode("path", { 52616 d: "M1 1H19", 52617 stroke: "currentColor", 52618 "stroke-width": "2", 52619 "stroke-linecap": "round", 52620 "stroke-linejoin": "round" 52621 }, null, -1)), 52622 _cache[2] || (_cache[2] = createBaseVNode("path", { 52623 d: "M1 11H19", 52624 stroke: "currentColor", 52625 "stroke-width": "2", 52626 "stroke-linecap": "round", 52627 "stroke-linejoin": "round" 52628 }, null, -1)), 52629 _cache[3] || (_cache[3] = createBaseVNode("path", { 52630 d: "M1 16H19", 52631 stroke: "currentColor", 52632 "stroke-width": "2", 52633 "stroke-linecap": "round", 52634 "stroke-linejoin": "round" 52635 }, null, -1)) 52636 ], 8, _hoisted_1$22); 52637} 52638const CoreIconDotsHorizontal = /* @__PURE__ */ _export_sfc(_sfc_main$22, [["render", _sfc_render$1U]]); 52639const CoreIconDotsHorizontal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52640 __proto__: null, 52641 default: CoreIconDotsHorizontal 52642}, Symbol.toStringTag, { value: "Module" })); 52643const _sfc_main$21 = { 52644 props: { 52645 settings: { 52646 type: Object, 52647 required: false, 52648 default: () => { 52649 } 52650 } 52651 }, 52652 computed: { 52653 alt() { 52654 var _a, _b; 52655 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52656 }, 52657 id() { 52658 var _a, _b; 52659 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52660 } 52661 } 52662}; 52663const _hoisted_1$21 = ["aria-labelledby", "aria-label"]; 52664const _hoisted_2$1U = ["id"]; 52665function _sfc_render$1T(_ctx, _cache, $props, $setup, $data, $options) { 52666 return openBlock(), createElementBlock("svg", { 52667 xmlns: "http://www.w3.org/2000/svg",
52668 viewBox: "0 0 24 24", 52669 role: "img", 52670 width: "20", 52671 height: "30", 52672 fill: "currentColor", 52673 "aria-labelledby": `icon-title-${$options.id}`, 52674 "aria-label": $options.alt 52675 }, [ 52676 createBaseVNode("title", { 52677 id: `icon-title-${$options.id}` 52678 }, toDisplayString($options.alt), 9, _hoisted_2$1U), 52679 _cache[0] || (_cache[0] = createBaseVNode("path", { 52680 stroke: "currentColor", 52681 d: "M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z" 52682 }, null, -1)) 52683 ], 8, _hoisted_1$21); 52684} 52685const CoreIconDotsVertical = /* @__PURE__ */ _export_sfc(_sfc_main$21, [["render", _sfc_render$1T]]); 52686const CoreIconDotsVertical$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52687 __proto__: null, 52688 default: CoreIconDotsVertical 52689}, Symbol.toStringTag, { value: "Module" })); 52690const _sfc_main$20 = { 52691 props: { 52692 settings: { 52693 type: Object, 52694 required: false 52695 } 52696 }, 52697 computed: { 52698 alt() { 52699 var _a, _b; 52700 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52701 }, 52702 id() { 52703 var _a, _b; 52704 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52705 } 52706 } 52707}; 52708const _hoisted_1$20 = ["aria-labelledby", "aria-label"]; 52709const _hoisted_2$1T = ["id"]; 52710function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) { 52711 return openBlock(), createElementBlock("svg", { 52712 width: "24", 52713 height: "24", 52714 viewBox: "0 0 24 24", 52715 fill: "none", 52716 xmlns: "http://www.w3.org/2000/svg", 52717 role: "img", 52718 "aria-labelledby": `icon-title-${$options.id}`, 52719 "aria-label": $options.alt 52720 }, [ 52721 createBaseVNode("title", { 52722 id: `icon-title-${$options.id}` 52723 }, toDisplayString($options.alt), 9, _hoisted_2$1T), 52724 _cache[0] || (_cache[0] = createBaseVNode("path", { 52725 d: "M18 15V18H6V15H4V18C4 19.1 4.9 20 6 20H18C19.1 20 20 19.1 20 18V15H18ZM17 11L15.59 9.59L13 12.17V4H11V12.17L8.41 9.59L7 11L12 16L17 11Z", 52726 fill: "currentColor" 52727 }, null, -1)) 52728 ], 8, _hoisted_1$20); 52729} 52730const CoreIconDownload = /* @__PURE__ */ _export_sfc(_sfc_main$20, [["render", _sfc_render$1S]]); 52731const CoreIconDownload$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52732 __proto__: null, 52733 default: CoreIconDownload 52734}, Symbol.toStringTag, { value: "Module" })); 52735const _hoisted_1$1$ = { 52736 width: "24", 52737 height: "24", 52738 viewBox: "0 0 24 24", 52739 fill: "none", 52740 xmlns: "http://www.w3.org/2000/svg" 52741}; 52742const _sfc_main$1$ = { 52743 __name: "CoreIconDraftDetails", 52744 props: { 52745 settings: { 52746 type: Object, 52747 required: false 52748 } 52749 }, 52750 setup(__props) { 52751 const props = __props; 52752 const alt = computed(() => { 52753 var _a, _b; 52754 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Draft details"; 52755 }); 52756 return (_ctx, _cache) => { 52757 return openBlock(), createElementBlock("svg", _hoisted_1$1$, [ 52758 createBaseVNode("title", null, toDisplayString(unref(alt)), 1), 52759 _cache[0] || (_cache[0] = createBaseVNode("path", { 52760 d: "M12.5 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V13.5M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20M13.378 15.6259C13.5752 15.4287 13.7317 15.1945 13.8384 14.9368C13.9452 14.6791 14.0001 14.4029 14.0001 14.1239C14.0001 13.845 13.9452 13.5687 13.8384 13.311C13.7317 13.0533 13.5752 12.8191 13.378 12.6219C13.1807 12.4247 12.9466 12.2682 12.6889 12.1614C12.4311 12.0547 12.1549 11.9998 11.876 11.9998C11.597 11.9998 11.3208 12.0547 11.0631 12.1614C10.8054 12.2682 10.5712 12.4247 10.374 12.6219L5.36398 17.6339C5.12622 17.8715 4.9522 18.1652 4.85798 18.4879L4.02098 21.3579C3.99588 21.444 3.99437 21.5352 4.01662 21.622C4.03887 21.7088 4.08404 21.7881 4.14742 21.8515C4.2108 21.9148 4.29006 21.96 4.37689 21.9823C4.46372 22.0045 4.55493 22.003 4.64098 21.9779L7.51098 21.1409C7.83364 21.0467 8.12735 20.8727 8.36498 20.6349L13.378 15.6259Z", 52761 stroke: "currentColor", 52762 "stroke-width": "2", 52763 "stroke-linecap": "round", 52764 "stroke-linejoin": "round" 52765 }, null, -1)) 52766 ]); 52767 }; 52768 } 52769}; 52770const CoreIconDraftDetails = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52771 __proto__: null, 52772 default: _sfc_main$1$ 52773}, Symbol.toStringTag, { value: "Module" })); 52774const _sfc_main$1_ = { 52775 props: { 52776 settings: { 52777 type: Object, 52778 required: false 52779 } 52780 }, 52781 computed: { 52782 alt() { 52783 var _a, _b; 52784 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52785 }, 52786 id() { 52787 var _a, _b; 52788 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52789 } 52790 } 52791}; 52792const _hoisted_1$1_ = ["aria-labelledby", "aria-label"]; 52793const _hoisted_2$1S = ["id"]; 52794function _sfc_render$1R(_ctx, _cache, $props, $setup, $data, $options) { 52795 return openBlock(), createElementBlock("svg", { 52796 width: "24", 52797 height: "24",
52798 viewBox: "0 0 24 24", 52799 fill: "none", 52800 xmlns: "http://www.w3.org/2000/svg", 52801 role: "img", 52802 "aria-labelledby": `icon-title-${$options.id}`, 52803 "aria-label": $options.alt 52804 }, [ 52805 createBaseVNode("title", { 52806 id: `icon-title-${$options.id}` 52807 }, toDisplayString($options.alt), 9, _hoisted_2$1S), 52808 _cache[0] || (_cache[0] = createBaseVNode("path", { 52809 d: "M20 6H12L10 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V8C22 6.9 21.1 6 20 6ZM20 18H4V6H9.17L11.17 8H20V18Z", 52810 fill: "currentColor" 52811 }, null, -1)), 52812 _cache[1] || (_cache[1] = createBaseVNode("path", { 52813 d: "M13 13.16L14.59 11.58L16 12.99L11.99 17L8 12.99L9.41 11.57L11 13.16L11 9L13 9L13 13.16Z", 52814 fill: "currentColor" 52815 }, null, -1)) 52816 ], 8, _hoisted_1$1_); 52817} 52818const CoreIconDrafts = /* @__PURE__ */ _export_sfc(_sfc_main$1_, [["render", _sfc_render$1R]]); 52819const CoreIconDrafts$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52820 __proto__: null, 52821 default: CoreIconDrafts 52822}, Symbol.toStringTag, { value: "Module" })); 52823const _sfc_main$1Z = { 52824 props: { 52825 settings: { 52826 type: Object, 52827 default: () => ({}) 52828 } 52829 }, 52830 computed: { 52831 alt() { 52832 var _a, _b; 52833 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52834 }, 52835 id() { 52836 var _a, _b; 52837 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52838 } 52839 } 52840}; 52841const _hoisted_1$1Z = ["aria-labelledby", "aria-label"]; 52842const _hoisted_2$1R = ["id"]; 52843function _sfc_render$1Q(_ctx, _cache, $props, $setup, $data, $options) { 52844 return openBlock(), createElementBlock("svg", { 52845 width: "24", 52846 height: "24", 52847 viewBox: "0 0 24 24", 52848 fill: "none", 52849 xmlns: "http://www.w3.org/2000/svg", 52850 role: "img", 52851 "aria-labelledby": `icon-title-${$options.id}`, 52852 "aria-label": $options.alt 52853 }, [ 52854 createBaseVNode("title", { 52855 id: `icon-title-${$options.id}` 52856 }, toDisplayString($options.alt), 9, _hoisted_2$1R), 52857 _cache[0] || (_cache[0] = createBaseVNode("path", { 52858 d: "M4 6H2V20C2 21.1 2.9 22 4 22H18V20H4V6ZM20 2H8C6.9 2 6 2.9 6 4V16C6 17.1 6.9 18 8 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2ZM20 16H8V4H20V16ZM13 15H15V11H19V9H15V5H13V9H9V11H13V15Z", 52859 fill: "currentColor" 52860 }, null, -1)) 52861 ], 8, _hoisted_1$1Z); 52862} 52863const CoreIconDuplicate = /* @__PURE__ */ _export_sfc(_sfc_main$1Z, [["render", _sfc_render$1Q]]); 52864const CoreIconDuplicate$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52865 __proto__: null, 52866 default: CoreIconDuplicate 52867}, Symbol.toStringTag, { value: "Module" })); 52868const _sfc_main$1Y = { 52869 props: { 52870 settings: { 52871 type: Object, 52872 required: false 52873 } 52874 }, 52875 computed: { 52876 alt() { 52877 var _a, _b; 52878 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52879 }, 52880 id() { 52881 var _a, _b; 52882 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52883 } 52884 } 52885}; 52886const _hoisted_1$1Y = ["aria-labelledby", "aria-label"]; 52887const _hoisted_2$1Q = ["id"]; 52888function _sfc_render$1P(_ctx, _cache, $props, $setup, $data, $options) { 52889 return openBlock(), createElementBlock("svg", { 52890 width: "24", 52891 height: "24", 52892 viewBox: "0 0 24 24", 52893 fill: "none", 52894 xmlns: "http://www.w3.org/2000/svg", 52895 role: "img", 52896 "aria-labelledby": `icon-title-${$options.id}`, 52897 "aria-label": $options.alt 52898 }, [ 52899 createBaseVNode("title", { 52900 id: `icon-title-${$options.id}` 52901 }, toDisplayString($options.alt), 9, _hoisted_2$1Q), 52902 _cache[0] || (_cache[0] = createBaseVNode("path", { 52903 d: "M17 3.00006C17.2626 2.73741 17.5744 2.52907 17.9176 2.38693C18.2608 2.24479 18.6286 2.17163 19 2.17163C19.3714 2.17163 19.7392 2.24479 20.0824 2.38693C20.4256 2.52907 20.7374 2.73741 21 3.00006C21.2626 3.2627 21.471 3.57451 21.6131 3.91767C21.7553 4.26083 21.8284 4.62862 21.8284 5.00006C21.8284 5.37149 21.7553 5.73929 21.6131 6.08245C21.471 6.42561 21.2626 6.73741 21 7.00006L7.5 20.5001L2 22.0001L3.5 16.5001L17 3.00006Z", 52904 stroke: "currentColor", 52905 "stroke-width": "2", 52906 "stroke-linecap": "round", 52907 "stroke-linejoin": "round" 52908 }, null, -1)) 52909 ], 8, _hoisted_1$1Y); 52910} 52911const CoreIconEdit = /* @__PURE__ */ _export_sfc(_sfc_main$1Y, [["render", _sfc_render$1P]]); 52912const CoreIconEdit$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52913 __proto__: null, 52914 default: CoreIconEdit 52915}, Symbol.toStringTag, { value: "Module" })); 52916const _sfc_main$1X = { 52917 props: { 52918 settings: { 52919 type: Object, 52920 required: false 52921 } 52922 }, 52923 computed: { 52924 alt() { 52925 var _a, _b; 52926 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 52927 }, 52928 id() { 52929 var _a, _b; 52930 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 52931 } 52932 } 52933}; 52934const _hoisted_1$1X = ["aria-labelledby", "aria-label"]; 52935const _hoisted_2$1P = ["id"]; 52936function _sfc_render$1O(_ctx, _cache, $props, $setup, $data, $options) { 52937 return openBlock(), createElementBlock("svg", { 52938 width: "24", 52939 height: "24",
52940 viewBox: "0 0 24 24", 52941 fill: "none", 52942 xmlns: "http://www.w3.org/2000/svg", 52943 "aria-labelledby": `icon-title-${$options.id}`, 52944 "aria-label": $options.alt 52945 }, [ 52946 createBaseVNode("title", { 52947 id: `icon-title-${$options.id}` 52948 }, toDisplayString($options.alt), 9, _hoisted_2$1P), 52949 _cache[0] || (_cache[0] = createStaticVNode('<rect x="0.666667" y="0.666667" width="22.6667" height="22.6667" rx="11.3333" fill="#0051CA"></rect><rect x="0.666667" y="0.666667" width="22.6667" height="22.6667" rx="11.3333" stroke="white" stroke-width="1.33333"></rect><g clip-path="url(#clip0_9595_22556)"><path d="M14.2334 7.50015C14.3647 7.36883 14.5206 7.26466 14.6922 7.19359C14.8638 7.12252 15.0477 7.08594 15.2334 7.08594C15.4191 7.08594 15.603 7.12252 15.7746 7.19359C15.9462 7.26466 16.1021 7.36883 16.2334 7.50015C16.3647 7.63147 16.4689 7.78737 16.54 7.95895C16.611 8.13054 16.6476 8.31443 16.6476 8.50015C16.6476 8.68587 16.611 8.86977 16.54 9.04135C16.4689 9.21293 16.3647 9.36883 16.2334 9.50015L9.4834 16.2502L6.7334 17.0002L7.4834 14.2502L14.2334 7.50015Z" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_9595_22556"><rect width="12" height="12" fill="white" transform="translate(5.7334 6)"></rect></clipPath></defs>', 4)) 52950 ], 8, _hoisted_1$1X); 52951} 52952const CoreIconEditCircle = /* @__PURE__ */ _export_sfc(_sfc_main$1X, [["render", _sfc_render$1O]]); 52953const CoreIconEditCircle$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 52954 __proto__: null, 52955 default: CoreIconEditCircle 52956}, Symbol.toStringTag, { value: "Module" })); 52957const _sfc_main$1W = { 52958 name: "CoreIconCamera", 52959 props: { 52960 width: { 52961 type: Number, 52962 default: 28 52963 }, 52964 height: { 52965 type: Number, 52966 default: 27 52967 }, 52968 settings: { 52969 type: Object, 52970 required: false, 52971 default: () => ({}) 52972 } 52973 }, 52974 setup(props) { 52975 const alt = computed(() => { 52976 var _a, _b; 52977 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon); 52978 }); 52979 const id = computed(() => { 52980 var _a, _b; 52981 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 52982 }); 52983 return { 52984 alt, 52985 id 52986 }; 52987 } 52988}; 52989const _hoisted_1$1W = ["width", "height", "aria-labelledby", "aria-label"]; 52990const _hoisted_2$1O = ["id"]; 52991function _sfc_render$1N(_ctx, _cache, $props, $setup, $data, $options) { 52992 return openBlock(), createElementBlock("svg", { 52993 width: $props.width, 52994 height: $props.height, 52995 viewBox: "0 0 24 25", 52996 fill: "none", 52997 xmlns: "http://www.w3.org/2000/svg", 52998 "aria-labelledby": `icon-title-${$setup.id}`, 52999 "aria-label": $setup.alt 53000 }, [ 53001 createBaseVNode("title", { 53002 id: `icon-title-${$setup.id}` 53003 }, toDisplayString($setup.alt), 9, _hoisted_2$1O), 53004 _cache[0] || (_cache[0] = createBaseVNode("path", { 53005 d: "M12 22.8174C17.5228 22.8174 22 18.3402 22 12.8174C22 7.29454 17.5228 2.81738 12 2.81738C6.47715 2.81738 2 7.29454 2 12.8174C2 18.3402 6.47715 22.8174 12 22.8174Z", 53006 stroke: "currentColor", 53007 "stroke-width": "2", 53008 "stroke-linecap": "round", 53009 "stroke-linejoin": "round" 53010 }, null, -1)), 53011 _cache[1] || (_cache[1] = createBaseVNode("path", { 53012 d: "M17 12.8174H17.01", 53013 stroke: "currentColor", 53014 "stroke-width": "2", 53015 "stroke-linecap": "round", 53016 "stroke-linejoin": "round" 53017 }, null, -1)), 53018 _cache[2] || (_cache[2] = createBaseVNode("path", { 53019 d: "M12 12.8174H12.01", 53020 stroke: "currentColor", 53021 "stroke-width": "2", 53022 "stroke-linecap": "round", 53023 "stroke-linejoin": "round" 53024 }, null, -1)), 53025 _cache[3] || (_cache[3] = createBaseVNode("path", { 53026 d: "M7 12.8174H7.01", 53027 stroke: "currentColor", 53028 "stroke-width": "2", 53029 "stroke-linecap": "round", 53030 "stroke-linejoin": "round" 53031 }, null, -1)) 53032 ], 8, _hoisted_1$1W); 53033} 53034const CoreIconEllipsisOutlined = /* @__PURE__ */ _export_sfc(_sfc_main$1W, [["render", _sfc_render$1N], ["__scopeId", "data-v-de4d3df8"]]); 53035const CoreIconEllipsisOutlined$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53036 __proto__: null, 53037 default: CoreIconEllipsisOutlined 53038}, Symbol.toStringTag, { value: "Module" }));
53039const _sfc_main$1V = { 53040 props: { 53041 settings: { 53042 type: Object, 53043 required: false 53044 } 53045 }, 53046 computed: { 53047 alt() { 53048 var _a, _b; 53049 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53050 }, 53051 id() { 53052 var _a, _b; 53053 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53054 } 53055 } 53056}; 53057const _hoisted_1$1V = ["aria-labelledby", "aria-label"]; 53058const _hoisted_2$1N = ["id"]; 53059function _sfc_render$1M(_ctx, _cache, $props, $setup, $data, $options) { 53060 return openBlock(), createElementBlock("svg", { 53061 width: "24", 53062 height: "24", 53063 viewBox: "0 0 24 24", 53064 fill: "none", 53065 xmlns: "http://www.w3.org/2000/svg", 53066 role: "img", 53067 "aria-labelledby": `icon-title-${$options.id}`, 53068 "aria-label": $options.alt 53069 }, [ 53070 createBaseVNode("title", { 53071 id: `icon-title-${$options.id}` 53072 }, toDisplayString($options.alt), 9, _hoisted_2$1N), 53073 _cache[0] || (_cache[0] = createBaseVNode("path", { 53074 d: "M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z", 53075 stroke: "currentColor", 53076 "stroke-width": "2", 53077 "stroke-linecap": "round", 53078 "stroke-linejoin": "round" 53079 }, null, -1)), 53080 _cache[1] || (_cache[1] = createBaseVNode("path", { 53081 d: "M22 6L12 13L2 6", 53082 stroke: "currentColor", 53083 "stroke-width": "2", 53084 "stroke-linecap": "round", 53085 "stroke-linejoin": "round" 53086 }, null, -1)) 53087 ], 8, _hoisted_1$1V); 53088} 53089const CoreIconEmail = /* @__PURE__ */ _export_sfc(_sfc_main$1V, [["render", _sfc_render$1M]]); 53090const CoreIconEmail$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53091 __proto__: null, 53092 default: CoreIconEmail 53093}, Symbol.toStringTag, { value: "Module" })); 53094const _sfc_main$1U = { 53095 props: { 53096 settings: { 53097 type: Object, 53098 required: false 53099 } 53100 }, 53101 computed: { 53102 alt() { 53103 var _a, _b; 53104 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53105 }, 53106 id() { 53107 var _a, _b; 53108 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53109 } 53110 } 53111}; 53112const _hoisted_1$1U = ["aria-labelledby", "aria-label"]; 53113const _hoisted_2$1M = ["id"]; 53114function _sfc_render$1L(_ctx, _cache, $props, $setup, $data, $options) { 53115 return openBlock(), createElementBlock("svg", { 53116 width: "14", 53117 height: "15", 53118 viewBox: "0 0 14 15", 53119 fill: "none", 53120 xmlns: "http://www.w3.org/2000/svg", 53121 role: "img", 53122 "aria-labelledby": `icon-title-${$options.id}`, 53123 "aria-label": $options.alt 53124 }, [ 53125 createBaseVNode("title", { 53126 id: `icon-title-${$options.id}` 53127 }, toDisplayString($options.alt), 9, _hoisted_2$1M), 53128 _cache[0] || (_cache[0] = createBaseVNode("path", { 53129 d: "M6.99325 0.827888C5.65852 0.829223 4.35414 1.22624 3.24499 1.96875C2.13585 2.71126 1.27174 3.76593 0.761881 4.99945C0.252024 6.23297 0.119314 7.58995 0.380526 8.89888C0.641738 10.2078 1.28515 11.4099 2.22942 12.3532C3.17369 13.2966 4.37644 13.9388 5.68562 14.1987C6.99481 14.4586 8.35166 14.3245 9.58467 13.8134C10.8177 13.3023 11.8715 12.4372 12.6129 11.3273C13.3543 10.2174 13.75 8.91263 13.75 7.57789C13.7504 6.69077 13.5759 5.81228 13.2364 4.9927C12.8969 4.17311 12.3992 3.42852 11.7716 2.80155C11.144 2.17458 10.3989 1.67754 9.57896 1.33887C8.75903 1.0002 7.88037 0.826564 6.99325 0.827888V0.827888ZM7 12.8279C5.96165 12.8279 4.94662 12.52 4.08326 11.9431C3.2199 11.3662 2.547 10.5463 2.14964 9.58698C1.75228 8.62766 1.64831 7.57206 1.85088 6.55366C2.05345 5.53526 2.55347 4.5998 3.28769 3.86558C4.02192 3.13135 4.95738 2.63134 5.97578 2.42877C6.99418 2.22619 8.04978 2.33016 9.00909 2.72752C9.9684 3.12488 10.7883 3.79779 11.3652 4.66114C11.9421 5.5245 12.25 6.53954 12.25 7.57789C12.2502 8.26738 12.1145 8.95016 11.8508 9.5872C11.587 10.2242 11.2003 10.8031 10.7127 11.2906C10.2252 11.7782 9.64636 12.1649 9.00932 12.4286C8.37227 12.6924 7.6895 12.8281 7 12.8279V12.8279ZM9.32875 8.92789H10.456C10.1848 9.62388 9.70982 10.2218 9.09317 10.6433C8.47652 11.
531290649 7.74696 11.2904 7 11.2904C6.25304 11.2904 5.52349 11.0649 4.90684 10.6433C4.29019 10.2218 3.81518 9.62388 3.544 8.92789H4.67125C4.90614 9.33806 5.2452 9.67892 5.65413 9.91598C6.06305 10.153 6.52733 10.2779 7 10.2779C7.47267 10.2779 7.93695 10.153 8.34588 9.91598C8.75481 9.67892 9.09386 9.33806 9.32875 8.92789V8.92789ZM3.625 5.89039C3.625 5.69013 3.68439 5.49438 3.79564 5.32787C3.90689 5.16137 4.06503 5.03159 4.25004 4.95496C4.43505 4.87833 4.63863 4.85828 4.83503 4.89734C5.03144 4.93641 5.21185 5.03284 5.35345 5.17444C5.49505 5.31604 5.59148 5.49645 5.63055 5.69286C5.66962 5.88927 5.64956 6.09285 5.57293 6.27786C5.4963 6.46287 5.36652 6.621 5.20002 6.73225C5.03351 6.84351 4.83776 6.90289 4.6375 6.90289C4.36897 6.90289 4.11144 6.79621 3.92156 6.60633C3.73168 6.41645 3.625 6.15892 3.625 5.89039ZM8.35 5.89039C8.35 5.69013 8.40939 5.49438 8.52064 5.32787C8.6319 5.16137 8.79003 5.03159 8.97504 4.95496C9.16005 4.87833 9.36363 4.85828 9.56003 4.89734C9.75644 4.93641 9.93685 5.03284 10.0784 5.17444C10.22 5.31604 10.3165 5.49645 10.3555 5.69286C10.3946 5.88927 10.3746 6.09285 10.2979 6.27786C10.2213 6.46287 10.0915 6.621 9.92502 6.73225C9.75851 6.84351 9.56276 6.90289 9.3625 6.90289C9.09397 6.90289 8.83644 6.79621 8.64656 6.60633C8.45668 6.41645 8.35 6.15892 8.35 5.89039V5.89039Z", 53130 fill: "currentColor" 53131 }, null, -1)) 53132 ], 8, _hoisted_1$1U); 53133} 53134const CoreIconEmoji = /* @__PURE__ */ _export_sfc(_sfc_main$1U, [["render", _sfc_render$1L]]); 53135const CoreIconEmoji$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53136 __proto__: null, 53137 default: CoreIconEmoji 53138}, Symbol.toStringTag, { value: "Module" })); 53139const _sfc_main$1T = { 53140 props: { 53141 settings: { 53142 type: Object, 53143 default: () => ({}) 53144 }, 53145 width: { 53146 type: String, 53147 default: "24" 53148 }, 53149 height: { 53150 type: String, 53151 default: "24" 53152 } 53153 }, 53154 computed: { 53155 alt() { 53156 var _a, _b; 53157 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53158 }, 53159 id() { 53160 var _a, _b; 53161 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53162 } 53163 } 53164}; 53165const _hoisted_1$1T = ["width", "height", "aria-labelledby", "aria-label"]; 53166const _hoisted_2$1L = ["id"]; 53167function _sfc_render$1K(_ctx, _cache, $props, $setup, $data, $options) { 53168 return openBlock(), createElementBlock("svg", { 53169 width: $props.width, 53170 height: $props.height, 53171 viewBox: "0 0 24 24", 53172 fill: "none", 53173 xmlns: "http://www.w3.org/2000/svg", 53174 role: "img", 53175 "aria-labelledby": `icon-title-${$options.id}`, 53176 "aria-label": $options.alt 53177 }, [ 53178 createBaseVNode("title", { 53179 id: `icon-title-${$options.id}` 53180 }, toDisplayString($options.alt), 9, _hoisted_2$1L), 53181 _cache[0] || (_cache[0] = createBaseVNode("path", { 53182 "fill-rule": "evenodd", 53183 "clip-rule": "evenodd", 53184 d: "M12.448 2C11.9324 2 11.4255 2.13289 10.9762 2.38584C10.5269 2.6388 10.1504 3.00328 9.88302 3.44412L1.40203 17.6027C1.14008 18.0563 1.00148 18.5706 1.00001 19.0945C0.998545 19.6183 1.13426 20.1334 1.39367 20.5885C1.65307 21.0436 2.02712 21.4228 2.47859 21.6885C2.93006 21.9541 3.44322 22.097 3.96703 22.1027L20.918 22.1028L20.929 22.1027C21.4528 22.0969 21.966 21.9541 22.4174 21.6885C22.8689 21.4228 23.243 21.0436 23.5024 20.5885C23.7618 20.1334 23.8975 19.6183 23.896 19.0945C23.8946 18.5706 23.756 18.0563 23.494 17.6027L23.4859 17.5889L15.0159 3.44886L15.013 3.44412C14.7456 3.00328 14.3691 2.6388 13.9198 2.38584C13.4705 2.13289 12.9636 2 12.448 2ZM12.448 8.10278C13.0003 8.10278 13.448 8.5505 13.448 9.10278V13.1028C13.448 13.6551 13.0003 14.1028 12.448 14.1028C11.8957 14.1028 11.448 13.6551 11.448 13.1028V9.10278C11.448 8.5505 11.8957 8.10278 12.448 8.10278ZM11.448 17.1028C11.448 16.5505 11.8957 16.1028 12.448 16.1028H12.458C13.0103 16.1028 13.458 16.5505 13.458 17.1028C13.458 17.6551 13.0103 18.1028 12.458 18.1028H12.448C11.8957 18.1028 11.448 17.6551 11.448 17.1028Z", 53185 fill: "currentColor" 53186 }, null, -1)) 53187 ], 8, _hoisted_1$1T); 53188} 53189const CoreIconErrorFilled = /* @__PURE__ */ _export_sfc(_sfc_main$1T, [["render", _sfc_render$1K]]); 53190const CoreIconErrorFilled$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53191 __proto__: null, 53192 default: CoreIconErrorFilled 53193}, Symbol.toStringTag, { value: "Module" })); 53194const _sfc_main$1S = { 53195 props: { 53196 settings: { 53197 type: Object, 53198 required: false 53199 } 53200 }, 53201 computed: { 53202 alt() { 53203 var _a, _b; 53204 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53205 }, 53206 id() { 53207 var _a, _b; 53208 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53209 } 53210 } 53211}; 53212const _hoisted_1$1S = ["aria-labelledby", "aria-label"]; 53213const _hoisted_2$1K = ["id"]; 53214function _sfc_render$1J(_ctx, _cache, $props, $setup, $data, $options) { 53215 return openBlock(), createElementBlock("svg", { 53216 width: "24", 53217 height: "24", 53218 version: "1.1", 53219 xmlns: "http://www.w3.org/2000/svg", 53220 "xmlns:xlink": "http://www.w3.org/1999/xlink",
53221 viewBox: "0 0 31 31", 53222 fill: "currentColor", 53223 "aria-labelledby": `icon-title-${$options.id}`, 53224 "aria-label": $options.alt 53225 }, [ 53226 createBaseVNode("title", { 53227 id: `icon-title-${$options.id}` 53228 }, toDisplayString($options.alt), 9, _hoisted_2$1K), 53229 _cache[0] || (_cache[0] = createBaseVNode("path", { 53230 class: "st0", 53231 d: "M23.2,15.7c-0.6,0-1,0.4-1,1v7.5c0,0.4-0.2,0.8-0.4,1.1s-0.7,0.4-1.1,0.4H6.9c-0.4,0-0.8-0.2-1.1-0.4\n c-0.3-0.3-0.4-0.7-0.4-1.1V10.5c0-0.4,0.2-0.8,0.4-1.1C6.1,9.1,6.5,9,6.9,9h7.5c0.6,0,1-0.4,1-1s-0.4-1-1-1H6.9C6,7,5.1,7.3,4.4,8\n c-0.7,0.7-1,1.5-1,2.5v13.8c0,0.9,0.4,1.8,1,2.5c0.7,0.7,1.5,1,2.5,1h13.8c0.9,0,1.8-0.4,2.5-1s1-1.5,1-2.5v-7.5\n C24.2,16.2,23.7,15.7,23.2,15.7z" 53232 }, null, -1)), 53233 _cache[1] || (_cache[1] = createBaseVNode("path", { 53234 class: "st0", 53235 d: "M27.8,3.8c-0.1-0.2-0.3-0.4-0.5-0.5c-0.1-0.1-0.3-0.1-0.4-0.1h-7.5c-0.6,0-1,0.4-1,1s0.4,1,1,1h5.1l-12,12\n c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l12-12v5.1c0,0.6,0.4,1,1,1s1-0.4,1-1V4.2\n C27.9,4.1,27.9,3.9,27.8,3.8z" 53236 }, null, -1)) 53237 ], 8, _hoisted_1$1S); 53238} 53239const CoreIconExternalLink = /* @__PURE__ */ _export_sfc(_sfc_main$1S, [["render", _sfc_render$1J]]); 53240const CoreIconExternalLink$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53241 __proto__: null, 53242 default: CoreIconExternalLink 53243}, Symbol.toStringTag, { value: "Module" })); 53244const _sfc_main$1R = { 53245 props: { 53246 settings: { 53247 type: Object, 53248 required: false 53249 } 53250 }, 53251 computed: { 53252 alt() { 53253 var _a, _b; 53254 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53255 }, 53256 id() { 53257 var _a, _b; 53258 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53259 } 53260 } 53261}; 53262const _hoisted_1$1R = ["aria-labelledby", "aria-label"]; 53263const _hoisted_2$1J = ["id"]; 53264function _sfc_render$1I(_ctx, _cache, $props, $setup, $data, $options) { 53265 return openBlock(), createElementBlock("svg", { 53266 width: "24", 53267 height: "24", 53268 viewBox: "0 0 24 24", 53269 fill: "none", 53270 xmlns: "http://www.w3.org/2000/svg", 53271 role: "img", 53272 "aria-labelledby": `icon-title-${$options.id}`, 53273 "aria-label": $options.alt 53274 }, [ 53275 createBaseVNode("title", { 53276 id: `icon-title-${$options.id}` 53277 }, toDisplayString($options.alt), 9, _hoisted_2$1J), 53278 _cache[0] || (_cache[0] = createBaseVNode("path", { 53279 d: "M12 22L10.55 20.6332C5.4 15.7978 2 12.6087 2 8.69482C2 5.50572 4.42 3 7.5 3C9.24 3 10.91 3.83869 12 5.16403C13.09 3.83869 14.76 3 16.5 3C19.58 3 22 5.50572 22 8.69482C22 12.6087 18.6 15.7978 13.45 20.6436L12 22Z", 53280 fill: "currentColor" 53281 }, null, -1)) 53282 ], 8, _hoisted_1$1R); 53283} 53284const CoreIconFavoriteFilled = /* @__PURE__ */ _export_sfc(_sfc_main$1R, [["render", _sfc_render$1I]]); 53285const CoreIconFavoriteFilled$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53286 __proto__: null, 53287 default: CoreIconFavoriteFilled 53288}, Symbol.toStringTag, { value: "Module" })); 53289const _sfc_main$1Q = { 53290 props: { 53291 settings: { 53292 type: Object, 53293 required: false 53294 } 53295 }, 53296 computed: { 53297 alt() { 53298 var _a, _b; 53299 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53300 }, 53301 id() { 53302 var _a, _b; 53303 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53304 } 53305 } 53306}; 53307const _hoisted_1$1Q = ["aria-labelledby", "aria-label"]; 53308const _hoisted_2$1I = ["id"]; 53309function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) { 53310 return openBlock(), createElementBlock("svg", { 53311 width: "24", 53312 height: "24", 53313 viewBox: "0 0 24 24", 53314 fill: "none", 53315 xmlns: "http://www.w3.org/2000/svg", 53316 role: "img", 53317 "aria-labelledby": `icon-title-${$options.id}`, 53318 "aria-label": $options.alt 53319 }, [ 53320 createBaseVNode("title", { 53321 id: `icon-title-${$options.id}` 53322 }, toDisplayString($options.alt), 9, _hoisted_2$1I), 53323 _cache[0] || (_cache[0] = createBaseVNode("path", { 53324 d: "M11.2359 19.9056L11.2345 19.9042C8.63993 17.4681 6.56587 15.5182 5.12845 13.6986C3.70344 11.8947 3 10.3345 3 8.69482C3 6.02491 5.00481 4 7.5 4C8.92398 4 10.3166 4.69142 11.2277 5.79923L12 6.73834L12.7723 5.79923C13.6834 4.69142 15.076 4 16.5 4C18.9952 4 21 6.02491 21 8.69482C21 10.3345 20.2966 11.8947 18.8713 13.7001C17.4339 15.521 15.3601 17.4732 12.7659 19.9142C12.7655 19.9146 12.7651 19.9149 12.7647 19.9153L12.0026 20.6282L11.2359 19.9056Z", 53325 stroke: "currentColor", 53326 "stroke-width": "2" 53327 }, null, -1)) 53328 ], 8, _hoisted_1$1Q); 53329} 53330const CoreIconFavoriteUnfilled = /* @__PURE__ */ _export_sfc(_sfc_main$1Q, [["render", _sfc_render$1H]]); 53331const CoreIconFavoriteUnfilled$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53332 __proto__: null, 53333 default: CoreIconFavoriteUnfilled 53334}, Symbol.toStringTag, { value: "Module" })); 53335const _sfc_main$1P = { 53336 props: { 53337 settings: { 53338 type: Object, 53339 required: false 53340 } 53341 }, 53342 computed: { 53343 alt() { 53344 var _a, _b; 53345 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53346 }, 53347 id() { 53348 var _a, _b; 53349 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53350 } 53351 } 53352}; 53353const _hoisted_1$1P = ["aria-labelledby", "aria-label"]; 53354const _hoisted_2$1H = ["id"]; 53355function _sfc_render$1G(_ctx, _cache, $props, $setup, $data, $options) { 53356 return openBlock(), createElementBlock("svg", { 53357 width: "24", 53358 height: "24",
53359 viewBox: "0 0 24 24", 53360 fill: "none", 53361 xmlns: "http://www.w3.org/2000/svg", 53362 role: "img", 53363 "aria-labelledby": `icon-title-${$options.id}`, 53364 "aria-label": $options.alt 53365 }, [ 53366 createBaseVNode("title", { 53367 id: `icon-title-${$options.id}` 53368 }, toDisplayString($options.alt), 9, _hoisted_2$1H), 53369 _cache[0] || (_cache[0] = createBaseVNode("path", { 53370 d: "M6 9V2H18V9", 53371 stroke: "currentColor", 53372 "stroke-width": "2", 53373 "stroke-linecap": "round", 53374 "stroke-linejoin": "round" 53375 }, null, -1)), 53376 _cache[1] || (_cache[1] = createBaseVNode("path", { 53377 d: "M6 18H4C3.46957 18 2.96086 17.7893 2.58579 17.4142C2.21071 17.0391 2 16.5304 2 16V11C2 10.4696 2.21071 9.96086 2.58579 9.58579C2.96086 9.21071 3.46957 9 4 9H20C20.5304 9 21.0391 9.21071 21.4142 9.58579C21.7893 9.96086 22 10.4696 22 11V16C22 16.5304 21.7893 17.0391 21.4142 17.4142C21.0391 17.7893 20.5304 18 20 18H18", 53378 stroke: "currentColor", 53379 "stroke-width": "2", 53380 "stroke-linecap": "round", 53381 "stroke-linejoin": "round" 53382 }, null, -1)), 53383 _cache[2] || (_cache[2] = createBaseVNode("path", { 53384 d: "M18 14H6V22H18V14Z", 53385 stroke: "currentColor", 53386 "stroke-width": "2", 53387 "stroke-linecap": "round", 53388 "stroke-linejoin": "round" 53389 }, null, -1)) 53390 ], 8, _hoisted_1$1P); 53391} 53392const CoreIconFax = /* @__PURE__ */ _export_sfc(_sfc_main$1P, [["render", _sfc_render$1G]]); 53393const CoreIconFax$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53394 __proto__: null, 53395 default: CoreIconFax 53396}, Symbol.toStringTag, { value: "Module" })); 53397const _sfc_main$1O = { 53398 props: { 53399 settings: { 53400 type: Object, 53401 required: false 53402 } 53403 }, 53404 computed: { 53405 alt() { 53406 var _a, _b; 53407 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53408 }, 53409 id() { 53410 var _a, _b; 53411 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53412 } 53413 } 53414}; 53415const _hoisted_1$1O = ["aria-labelledby", "aria-label"]; 53416const _hoisted_2$1G = ["id"]; 53417function _sfc_render$1F(_ctx, _cache, $props, $setup, $data, $options) { 53418 return openBlock(), createElementBlock("svg", { 53419 "data-testid": "icon-file", 53420 xmlns: "http://www.w3.org/2000/svg", 53421 width: "24", 53422 height: "24", 53423 viewBox: "0 0 24 24", 53424 fill: "none", 53425 role: "img", 53426 "aria-labelledby": `icon-title-${$options.id}`, 53427 "aria-label": $options.alt 53428 }, [ 53429 createBaseVNode("title", { 53430 id: `icon-title-${$options.id}` 53431 }, toDisplayString($options.alt), 9, _hoisted_2$1G), 53432 _cache[0] || (_cache[0] = createBaseVNode("path", { 53433 d: "M14 2.04H6c-1.1 0-1.99.9-1.99 2l-.01 16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2v-12l-6-6Zm-8 18v-16h7v5h5v11H6Z", 53434 fill: "currentColor", 53435 stroke: "currentColor" 53436 }, null, -1)) 53437 ], 8, _hoisted_1$1O); 53438} 53439const CoreIconFile = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["render", _sfc_render$1F]]); 53440const CoreIconFile$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53441 __proto__: null, 53442 default: CoreIconFile 53443}, Symbol.toStringTag, { value: "Module" })); 53444const _sfc_main$1N = { 53445 props: { 53446 settings: { 53447 type: Object, 53448 required: false 53449 } 53450 }, 53451 computed: { 53452 alt() { 53453 var _a, _b; 53454 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53455 }, 53456 id() { 53457 var _a, _b; 53458 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53459 } 53460 } 53461}; 53462const _hoisted_1$1N = ["aria-labelledby", "aria-label"]; 53463const _hoisted_2$1F = ["id"]; 53464function _sfc_render$1E(_ctx, _cache, $props, $setup, $data, $options) { 53465 return openBlock(), createElementBlock("svg", { 53466 width: "24", 53467 height: "24", 53468 viewBox: "0 0 24 24", 53469 fill: "none", 53470 xmlns: "http://www.w3.org/2000/svg", 53471 role: "img", 53472 "aria-labelledby": `icon-title-${$options.id}`, 53473 "aria-label": $options.alt 53474 }, [ 53475 createBaseVNode("title", { 53476 id: `icon-title-${$options.id}` 53477 }, toDisplayString($options.alt), 9, _hoisted_2$1F), 53478 _cache[0] || (_cache[0] = createBaseVNode("g", { "clip-path": "url(#clip0_979_12430)" }, [ 53479 createBaseVNode("path", { 53480 d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z", 53481 fill: "currentColor" 53482 }) 53483 ], -1)), 53484 _cache[1] || (_cache[1] = createBaseVNode("defs", null, [ 53485 createBaseVNode("clipPath", { id: "clip0_979_12430" }, [ 53486 createBaseVNode("rect", { 53487 width: "24", 53488 height: "24", 53489 fill: "white" 53490 }) 53491 ]) 53492 ], -1)) 53493 ], 8, _hoisted_1$1N); 53494} 53495const CoreIconFilter = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", _sfc_render$1E]]); 53496const CoreIconFilter$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53497 __proto__: null, 53498 default: CoreIconFilter 53499}, Symbol.toStringTag, { value: "Module" })); 53500const _sfc_main$1M = { 53501 props: { 53502 settings: { 53503 type: Object, 53504 default: () => ({}) 53505 }, 53506 color: { 53507 type: String, 53508 default: "currentColor" 53509 } 53510 }, 53511 computed: { 53512 alt() { 53513 var _a, _b; 53514 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53515 }, 53516 id() { 53517 var _a, _b; 53518 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53519 } 53520 } 53521}; 53522const _hoisted_1$1M = ["aria-labelledby", "aria-label"]; 53523const _hoisted_2$1E = ["id"]; 53524const _hoisted_3$3 = ["fill", "stroke"]; 53525function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) { 53526 return openBlock(), createElementBlock("svg", { 53527 width: "24", 53528 height: "24",
53529 viewBox: "0 0 24 24", 53530 fill: "none", 53531 xmlns: "http://www.w3.org/2000/svg", 53532 role: "img", 53533 "aria-labelledby": `icon-title-${$options.id}`, 53534 "aria-label": $options.alt 53535 }, [ 53536 createBaseVNode("title", { 53537 id: `icon-title-${$options.id}` 53538 }, toDisplayString($options.alt), 9, _hoisted_2$1E), 53539 createBaseVNode("path", { 53540 d: "M7.00457 5.5H5.9707L6.61263 6.31045L11.6026 12.6104L11.9938 13.1043L12.3859 12.6112L17.3959 6.31121L18.041 5.5H17.0046H7.00457ZM10.0046 13L10.3993 12.6931L10.3992 12.693L10.3987 12.6923L10.3967 12.6897L10.3886 12.6793L10.357 12.6386L10.2351 12.4819L9.78496 11.9027C9.40369 11.4122 8.8743 10.7312 8.28177 9.9693C7.09707 8.44595 5.65983 6.59878 4.64964 5.30353C4.39538 4.97332 4.62883 4.5 5.04457 4.5H18.9546C19.3703 4.5 19.6037 4.97326 19.3496 5.30347C18.3392 6.59894 16.9043 8.44632 15.7221 9.96971C15.1308 10.7316 14.6026 11.4126 14.2223 11.9031L13.7732 12.4824L13.6517 12.6392L13.6201 12.6799L13.6121 12.6902L13.61 12.6928L13.6095 12.6935L13.6094 12.6937L14.0046 13L13.6094 12.6937L13.5046 12.8289V13V19C13.5046 19.2739 13.2784 19.5 13.0046 19.5H11.0046C10.7307 19.5 10.5046 19.2739 10.5046 19V13V12.8286L10.3994 12.6932L10.0046 13Z", 53541 fill: $props.color, 53542 stroke: $props.color 53543 }, null, 8, _hoisted_3$3) 53544 ], 8, _hoisted_1$1M); 53545} 53546const CoreIconFilterOutline = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$1D]]); 53547const CoreIconFilterOutline$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53548 __proto__: null, 53549 default: CoreIconFilterOutline 53550}, Symbol.toStringTag, { value: "Module" })); 53551const _sfc_main$1L = { 53552 props: { 53553 settings: { 53554 type: Object, 53555 required: false 53556 } 53557 }, 53558 computed: { 53559 alt() { 53560 var _a, _b; 53561 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53562 }, 53563 id() { 53564 var _a, _b; 53565 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53566 } 53567 } 53568}; 53569const _hoisted_1$1L = ["aria-labelledby", "aria-label"]; 53570const _hoisted_2$1D = ["id"]; 53571function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) { 53572 return openBlock(), createElementBlock("svg", { 53573 xmlns: "http://www.w3.org/2000/svg", 53574 width: "24", 53575 height: "25", 53576 viewBox: "0 0 24 25", 53577 fill: "none", 53578 role: "img", 53579 "aria-labelledby": `icon-title-${$options.id}`, 53580 "aria-label": $options.alt 53581 }, [ 53582 createBaseVNode("title", { 53583 id: `icon-title-${$options.id}` 53584 }, toDisplayString($options.alt), 9, _hoisted_2$1D), 53585 _cache[0] || (_cache[0] = createBaseVNode("path", { 53586 d: "M5 15.1182H3V19.1182C3 20.2182 3.9 21.1182 5 21.1182H9V19.1182H5V15.1182ZM5 5.11816H9V3.11816H5C3.9 3.11816 3 4.01816 3 5.11816V9.11816H5V5.11816ZM12 8.11816C9.79 8.11816 8 9.90816 8 12.1182C8 14.3282 9.79 16.1182 12 16.1182C14.21 16.1182 16 14.3282 16 12.1182C16 9.90816 14.21 8.11816 12 8.11816ZM12 14.1182C10.9 14.1182 10 13.2182 10 12.1182C10 11.0182 10.9 10.1182 12 10.1182C13.1 10.1182 14 11.0182 14 12.1182C14 13.2182 13.1 14.1182 12 14.1182ZM19 3.11816H15V5.11816H19V9.11816H21V5.11816C21 4.01816 20.1 3.11816 19 3.11816ZM19 19.1182H15V21.1182H19C20.1 21.1182 21 20.2182 21 19.1182V15.1182H19V19.1182Z", 53587 fill: "currentColor" 53588 }, null, -1)) 53589 ], 8, _hoisted_1$1L); 53590} 53591const CoreIconFocalPoint = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$1C]]); 53592const CoreIconFocalPoint$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53593 __proto__: null, 53594 default: CoreIconFocalPoint 53595}, Symbol.toStringTag, { value: "Module" })); 53596const _sfc_main$1K = { 53597 props: { 53598 settings: { 53599 type: Object, 53600 required: false 53601 } 53602 }, 53603 computed: { 53604 alt() { 53605 var _a, _b; 53606 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53607 }, 53608 id() { 53609 var _a, _b; 53610 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53611 } 53612 } 53613}; 53614const _hoisted_1$1K = ["aria-labelledby", "aria-label"]; 53615const _hoisted_2$1C = ["id"]; 53616function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) { 53617 return openBlock(), createElementBlock("svg", { 53618 "data-testid": "icon-folder", 53619 xmlns: "http://www.w3.org/2000/svg", 53620 width: "24", 53621 height: "25",
53622 viewBox: "0 0 24 25", 53623 fill: "none", 53624 role: "img", 53625 "aria-labelledby": `icon-title-${$options.id}`, 53626 "aria-label": $options.alt, 53627 stroke: "currentColor" 53628 }, [ 53629 createBaseVNode("title", { 53630 id: `icon-title-${$options.id}` 53631 }, toDisplayString($options.alt), 9, _hoisted_2$1C), 53632 _cache[0] || (_cache[0] = createBaseVNode("path", { 53633 d: "M9.17 6.46753L11.17 8.46753H20V18.4675H4V6.46753H9.17ZM10 4.46753H4C2.9 4.46753 2.01 5.36753 2.01 6.46753L2 18.4675C2 19.5675 2.9 20.4675 4 20.4675H20C21.1 20.4675 22 19.5675 22 18.4675V8.46753C22 7.36753 21.1 6.46753 20 6.46753H12L10 4.46753Z", 53634 fill: "currentColor" 53635 }, null, -1)) 53636 ], 8, _hoisted_1$1K); 53637} 53638const CoreIconFolder = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$1B]]); 53639const CoreIconFolder$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53640 __proto__: null, 53641 default: CoreIconFolder 53642}, Symbol.toStringTag, { value: "Module" })); 53643const _sfc_main$1J = { 53644 props: { 53645 settings: { 53646 type: Object, 53647 required: false 53648 } 53649 }, 53650 computed: { 53651 alt() { 53652 var _a, _b; 53653 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53654 }, 53655 id() { 53656 var _a, _b; 53657 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53658 } 53659 } 53660}; 53661const _hoisted_1$1J = ["aria-labelledby", "aria-label"]; 53662const _hoisted_2$1B = ["id"]; 53663function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) { 53664 return openBlock(), createElementBlock("svg", { 53665 width: "24", 53666 height: "24", 53667 viewBox: "0 0 24 24", 53668 fill: "none", 53669 xmlns: "http://www.w3.org/2000/svg", 53670 role: "img", 53671 "aria-labelledby": `icon-title-${$options.id}`, 53672 "aria-label": $options.alt 53673 }, [ 53674 createBaseVNode("title", { 53675 id: `icon-title-${$options.id}` 53676 }, toDisplayString($options.alt), 9, _hoisted_2$1B), 53677 _cache[0] || (_cache[0] = createBaseVNode("path", { 53678 d: "M14.17 3L19 7.83V20H5V3H14.17ZM14.17 1H5C3.9 1 3 1.9 3 3V20C3 21.1 3.9 22 5 22H19C20.1 22 21 21.1 21 20V7.83C21 7.3 20.79 6.79 20.41 6.42L15.58 1.59C15.21 1.21 14.7 1 14.17 1ZM7 17H17V19H12H7V17Z", 53679 fill: "currentColor" 53680 }, null, -1)) 53681 ], 8, _hoisted_1$1J); 53682} 53683const CoreIconFooter = /* @__PURE__ */ _export_sfc(_sfc_main$1J, [["render", _sfc_render$1A]]); 53684const CoreIconFooter$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53685 __proto__: null, 53686 default: CoreIconFooter 53687}, Symbol.toStringTag, { value: "Module" })); 53688const _sfc_main$1I = { 53689 props: { 53690 settings: { 53691 type: Object, 53692 required: false 53693 } 53694 }, 53695 computed: { 53696 alt() { 53697 var _a, _b; 53698 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53699 }, 53700 id() { 53701 var _a, _b; 53702 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53703 } 53704 } 53705}; 53706const _hoisted_1$1I = ["aria-labelledby", "aria-label"]; 53707const _hoisted_2$1A = ["id"]; 53708function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) { 53709 return openBlock(), createElementBlock("svg", { 53710 width: "24", 53711 height: "24", 53712 viewBox: "0 0 24 24", 53713 fill: "none", 53714 xmlns: "http://www.w3.org/2000/svg", 53715 role: "img", 53716 "aria-labelledby": `icon-title-${$options.id}`, 53717 "aria-label": $options.alt 53718 }, [ 53719 createBaseVNode("title", { 53720 id: `icon-title-${$options.id}` 53721 }, toDisplayString($options.alt), 9, _hoisted_2$1A), 53722 _cache[0] || (_cache[0] = createBaseVNode("path", { 53723 d: "M11 4H4C3.46957 4 2.96086 4.21071 2.58579 4.58579C2.21071 4.96086 2 5.46957 2 6V20C2 20.5304 2.21071 21.0391 2.58579 21.4142C2.96086 21.7893 3.46957 22 4 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V13", 53724 stroke: "currentColor", 53725 "stroke-width": "2", 53726 "stroke-linecap": "round", 53727 "stroke-linejoin": "round" 53728 }, null, -1)), 53729 _cache[1] || (_cache[1] = createBaseVNode("path", { 53730 d: "M18.5 2.49998C18.8978 2.10216 19.4374 1.87866 20 1.87866C20.5626 1.87866 21.1022 2.10216 21.5 2.49998C21.8978 2.89781 22.1213 3.43737 22.1213 3.99998C22.1213 4.56259 21.8978 5.10216 21.5 5.49998L12 15L8 16L9 12L18.5 2.49998Z", 53731 stroke: "currentColor", 53732 "stroke-width": "2", 53733 "stroke-linecap": "round", 53734 "stroke-linejoin": "round" 53735 }, null, -1)) 53736 ], 8, _hoisted_1$1I); 53737} 53738const CoreIconForm = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1z]]); 53739const CoreIconForm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53740 __proto__: null, 53741 default: CoreIconForm 53742}, Symbol.toStringTag, { value: "Module" })); 53743const _sfc_main$1H = { 53744 props: { 53745 settings: { 53746 type: Object, 53747 required: false 53748 } 53749 }, 53750 computed: { 53751 alt() { 53752 var _a, _b; 53753 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53754 }, 53755 id() { 53756 var _a, _b; 53757 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53758 } 53759 } 53760}; 53761const _hoisted_1$1H = ["aria-labelledby", "aria-label"]; 53762const _hoisted_2$1z = ["id"]; 53763function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) { 53764 return openBlock(), createElementBlock("svg", { 53765 width: "24", 53766 height: "24",
53767 viewBox: "0 0 24 24", 53768 fill: "none", 53769 xmlns: "http://www.w3.org/2000/svg", 53770 role: "img", 53771 "aria-labelledby": `icon-title-${$options.id}`, 53772 "aria-label": $options.alt 53773 }, [ 53774 createBaseVNode("title", { 53775 id: `icon-title-${$options.id}` 53776 }, toDisplayString($options.alt), 9, _hoisted_2$1z), 53777 _cache[0] || (_cache[0] = createBaseVNode("path", { 53778 d: "M22 2L11 13", 53779 stroke: "currentColor", 53780 "stroke-width": "2", 53781 "stroke-linecap": "round", 53782 "stroke-linejoin": "round" 53783 }, null, -1)), 53784 _cache[1] || (_cache[1] = createBaseVNode("path", { 53785 d: "M22 2L15 22L11 13L2 9L22 2Z", 53786 stroke: "currentColor", 53787 "stroke-width": "2", 53788 "stroke-linecap": "round", 53789 "stroke-linejoin": "round" 53790 }, null, -1)) 53791 ], 8, _hoisted_1$1H); 53792} 53793const CoreIconFormIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1H, [["render", _sfc_render$1y]]); 53794const CoreIconFormIcon$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53795 __proto__: null, 53796 default: CoreIconFormIcon 53797}, Symbol.toStringTag, { value: "Module" })); 53798const _sfc_main$1G = { 53799 props: { 53800 settings: { 53801 type: Object, 53802 required: false 53803 } 53804 }, 53805 computed: { 53806 alt() { 53807 var _a, _b; 53808 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53809 }, 53810 id() { 53811 var _a, _b; 53812 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53813 } 53814 } 53815}; 53816const _hoisted_1$1G = ["aria-labelledby", "aria-label"]; 53817const _hoisted_2$1y = ["id"]; 53818function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) { 53819 return openBlock(), createElementBlock("svg", { 53820 xmlns: "http://www.w3.org/2000/svg", 53821 width: "24", 53822 height: "24", 53823 viewBox: "0 0 24 24", 53824 fill: "none", 53825 role: "img", 53826 "aria-labelledby": `icon-title-${$options.id}`, 53827 "aria-label": $options.alt 53828 }, [ 53829 createBaseVNode("title", { 53830 id: `icon-title-${$options.id}` 53831 }, toDisplayString($options.alt), 9, _hoisted_2$1y), 53832 _cache[0] || (_cache[0] = createBaseVNode("path", { 53833 d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", 53834 stroke: "currentColor", 53835 "stroke-width": "2", 53836 "stroke-linecap": "round", 53837 "stroke-linejoin": "round" 53838 }, null, -1)), 53839 _cache[1] || (_cache[1] = createBaseVNode("path", { 53840 d: "M2 12H22", 53841 stroke: "currentColor", 53842 "stroke-width": "2", 53843 "stroke-linecap": "round", 53844 "stroke-linejoin": "round" 53845 }, null, -1)), 53846 _cache[2] || (_cache[2] = createBaseVNode("path", { 53847 d: "M12 2C14.5013 4.73835 15.9228 8.29203 16 12C15.9228 15.708 14.5013 19.2616 12 22C9.49872 19.2616 8.07725 15.708 8 12C8.07725 8.29203 9.49872 4.73835 12 2Z", 53848 stroke: "currentColor", 53849 "stroke-width": "2", 53850 "stroke-linecap": "round", 53851 "stroke-linejoin": "round" 53852 }, null, -1)) 53853 ], 8, _hoisted_1$1G); 53854} 53855const CoreIconGlobe = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1x]]); 53856const CoreIconGlobe$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53857 __proto__: null, 53858 default: CoreIconGlobe 53859}, Symbol.toStringTag, { value: "Module" })); 53860const _sfc_main$1F = { 53861 props: { 53862 settings: { 53863 type: Object, 53864 required: false 53865 } 53866 }, 53867 computed: { 53868 alt() { 53869 var _a, _b; 53870 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53871 }, 53872 id() { 53873 var _a, _b; 53874 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53875 } 53876 } 53877}; 53878const _hoisted_1$1F = ["aria-labelledby", "aria-label"]; 53879const _hoisted_2$1x = ["id"]; 53880function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) { 53881 return openBlock(), createElementBlock("svg", { 53882 width: "24", 53883 height: "24", 53884 viewBox: "0 0 24 24", 53885 fill: "none", 53886 xmlns: "http://www.w3.org/2000/svg", 53887 role: "img", 53888 "aria-labelledby": `icon-title-${$options.id}`, 53889 "aria-label": $options.alt 53890 }, [ 53891 createBaseVNode("title", { 53892 id: `icon-title-${$options.id}` 53893 }, toDisplayString($options.alt), 9, _hoisted_2$1x), 53894 _cache[0] || (_cache[0] = createBaseVNode("circle", { 53895 cx: "9", 53896 cy: "15", 53897 r: "8", 53898 fill: "#565656" 53899 }, null, -1)), 53900 _cache[1] || (_cache[1] = createBaseVNode("rect", { 53901 x: "7", 53902 y: "1", 53903 width: "16", 53904 height: "16", 53905 fill: "currentColor", 53906 "fill-opacity": "0.4" 53907 }, null, -1)) 53908 ], 8, _hoisted_1$1F); 53909} 53910const CoreIconGradient = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1w]]); 53911const CoreIconGradient$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53912 __proto__: null, 53913 default: CoreIconGradient 53914}, Symbol.toStringTag, { value: "Module" })); 53915const _sfc_main$1E = { 53916 props: { 53917 settings: { 53918 type: Object, 53919 required: false 53920 } 53921 }, 53922 computed: { 53923 alt() { 53924 var _a, _b; 53925 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53926 }, 53927 id() { 53928 var _a, _b; 53929 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53930 } 53931 } 53932}; 53933const _hoisted_1$1E = ["aria-labelledby", "aria-label"]; 53934const _hoisted_2$1w = ["id"]; 53935function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) { 53936 return openBlock(), createElementBlock("svg", { 53937 width: "24", 53938 height: "24",
53939 viewBox: "0 0 24 24", 53940 fill: "none", 53941 xmlns: "http://www.w3.org/2000/svg", 53942 role: "img", 53943 "aria-labelledby": `icon-title-${$options.id}`, 53944 "aria-label": $options.alt 53945 }, [ 53946 createBaseVNode("title", { 53947 id: `icon-title-${$options.id}` 53948 }, toDisplayString($options.alt), 9, _hoisted_2$1w), 53949 _cache[0] || (_cache[0] = createBaseVNode("rect", { 53950 width: "24", 53951 height: "24", 53952 fill: "url(#paint0_linear_548_2912)" 53953 }, null, -1)), 53954 _cache[1] || (_cache[1] = createBaseVNode("defs", null, [ 53955 createBaseVNode("linearGradient", { 53956 id: "paint0_linear_548_2912", 53957 x1: "4.6549e-08", 53958 y1: "11.907", 53959 x2: "24", 53960 y2: "11.907", 53961 gradientUnits: "userSpaceOnUse" 53962 }, [ 53963 createBaseVNode("stop"), 53964 createBaseVNode("stop", { 53965 offset: "1", 53966 "stop-opacity": "0" 53967 }) 53968 ]) 53969 ], -1)) 53970 ], 8, _hoisted_1$1E); 53971} 53972const CoreIconGradientSquare = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$1v]]); 53973const CoreIconGradientSquare$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 53974 __proto__: null, 53975 default: CoreIconGradientSquare 53976}, Symbol.toStringTag, { value: "Module" })); 53977const _sfc_main$1D = { 53978 props: { 53979 settings: { 53980 type: Object, 53981 required: false 53982 } 53983 }, 53984 computed: { 53985 alt() { 53986 var _a, _b; 53987 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 53988 }, 53989 id() { 53990 var _a, _b; 53991 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 53992 } 53993 } 53994}; 53995const _hoisted_1$1D = ["aria-labelledby", "aria-label"]; 53996const _hoisted_2$1v = ["id"]; 53997function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) { 53998 return openBlock(), createElementBlock("svg", { 53999 width: "24", 54000 height: "24", 54001 viewBox: "0 0 24 24", 54002 fill: "none", 54003 xmlns: "http://www.w3.org/2000/svg", 54004 role: "img", 54005 "aria-labelledby": `icon-title-${$options.id}`, 54006 "aria-label": $options.alt 54007 }, [ 54008 createBaseVNode("title", { 54009 id: `icon-title-${$options.id}` 54010 }, toDisplayString($options.alt), 9, _hoisted_2$1v), 54011 _cache[0] || (_cache[0] = createBaseVNode("path", { 54012 d: "M4 4V11.1111H11.1111V4H4ZM9.33333 9.33333H5.77778V5.77778H9.33333V9.33333ZM4 12.8889V20H11.1111V12.8889H4ZM9.33333 18.2222H5.77778V14.6667H9.33333V18.2222ZM12.8889 4V11.1111H20V4H12.8889ZM18.2222 9.33333H14.6667V5.77778H18.2222V9.33333ZM12.8889 12.8889V20H20V12.8889H12.8889ZM18.2222 18.2222H14.6667V14.6667H18.2222V18.2222Z", 54013 fill: "currentColor" 54014 }, null, -1)) 54015 ], 8, _hoisted_1$1D); 54016} 54017const CoreIconGrid = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1u]]); 54018const CoreIconGrid$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54019 __proto__: null, 54020 default: CoreIconGrid 54021}, Symbol.toStringTag, { value: "Module" })); 54022const _sfc_main$1C = { 54023 props: { 54024 settings: { 54025 type: Object, 54026 required: false, 54027 default: () => { 54028 } 54029 } 54030 }, 54031 computed: { 54032 alt() { 54033 var _a, _b; 54034 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54035 }, 54036 id() { 54037 var _a, _b; 54038 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54039 } 54040 } 54041}; 54042const _hoisted_1$1C = ["aria-labelledby", "aria-label"]; 54043const _hoisted_2$1u = ["id"]; 54044function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) { 54045 return openBlock(), createElementBlock("svg", { 54046 xmlns: "http://www.w3.org/2000/svg", 54047 width: "24", 54048 height: "24", 54049 viewBox: "0 0 24 24", 54050 fill: "none", 54051 role: "img", 54052 "aria-labelledby": `icon-title-${$options.id}`, 54053 "aria-label": $options.alt 54054 }, [ 54055 createBaseVNode("title", { 54056 id: `icon-title-${$options.id}` 54057 }, toDisplayString($options.alt), 9, _hoisted_2$1u), 54058 _cache[0] || (_cache[0] = createBaseVNode("path", { 54059 d: "M20 2H4C2.9 2 2 2.9 2 4V20C2 21.1 2.9 22 4 22H20C21.1 22 22 21.1 22 20V4C22 2.9 21.1 2 20 2ZM8 20H4V16H8V20ZM8 14H4V10H8V14ZM8 8H4V4H8V8ZM14 20H10V16H14V20ZM14 14H10V10H14V14ZM14 8H10V4H14V8ZM20 20H16V16H20V20ZM20 14H16V10H20V14ZM20 8H16V4H20V8Z", 54060 fill: "CurrentColor" 54061 }, null, -1)) 54062 ], 8, _hoisted_1$1C); 54063} 54064const CoreIconGridOn = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["render", _sfc_render$1t]]); 54065const CoreIconGridOn$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54066 __proto__: null, 54067 default: CoreIconGridOn 54068}, Symbol.toStringTag, { value: "Module" })); 54069const _sfc_main$1B = { 54070 props: { 54071 settings: { 54072 type: Object, 54073 required: false 54074 } 54075 }, 54076 computed: { 54077 alt() { 54078 var _a, _b; 54079 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54080 }, 54081 id() { 54082 var _a, _b; 54083 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54084 } 54085 } 54086}; 54087const _hoisted_1$1B = ["aria-labelledby", "aria-label"]; 54088const _hoisted_2$1t = ["id"]; 54089function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) { 54090 return openBlock(), createElementBlock("svg", { 54091 width: "24", 54092 height: "24",
54093 viewBox: "0 0 24 24", 54094 fill: "none", 54095 xmlns: "http://www.w3.org/2000/svg", 54096 role: "img", 54097 "aria-labelledby": `icon-title-${$options.id}`, 54098 "aria-label": $options.alt 54099 }, [ 54100 createBaseVNode("title", { 54101 id: `icon-title-${$options.id}` 54102 }, toDisplayString($options.alt), 9, _hoisted_2$1t), 54103 _cache[0] || (_cache[0] = createBaseVNode("path", { 54104 d: "M14.17 3L19 7.83V20H5V3H14.17ZM14.17 1H5C3.9 1 3 1.9 3 3V20C3 21.1 3.9 22 5 22H19C20.1 22 21 21.1 21 20V7.83C21 7.3 20.79 6.79 20.41 6.42L15.58 1.59C15.21 1.21 14.7 1 14.17 1ZM6 5H15V7H6V5Z", 54105 fill: "currentColor" 54106 }, null, -1)) 54107 ], 8, _hoisted_1$1B); 54108} 54109const CoreIconHeader = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1s]]); 54110const CoreIconHeader$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54111 __proto__: null, 54112 default: CoreIconHeader 54113}, Symbol.toStringTag, { value: "Module" })); 54114const _sfc_main$1A = { 54115 props: { 54116 settings: { 54117 type: Object, 54118 required: false 54119 } 54120 }, 54121 computed: { 54122 alt() { 54123 var _a, _b; 54124 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54125 }, 54126 id() { 54127 var _a, _b; 54128 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54129 } 54130 } 54131}; 54132const _hoisted_1$1A = ["aria-labelledby", "aria-label"]; 54133const _hoisted_2$1s = ["id"]; 54134function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) { 54135 return openBlock(), createElementBlock("svg", { 54136 "data-testid": "icon-home", 54137 width: "24", 54138 height: "24", 54139 viewBox: "0 0 24 24", 54140 fill: "none", 54141 xmlns: "http://www.w3.org/2000/svg", 54142 role: "img", 54143 "aria-labelledby": `icon-title-${$options.id}`, 54144 "aria-label": $options.alt 54145 }, [ 54146 createBaseVNode("title", { 54147 id: `icon-title-${$options.id}` 54148 }, toDisplayString($options.alt), 9, _hoisted_2$1s), 54149 _cache[0] || (_cache[0] = createBaseVNode("path", { 54150 d: "M4.2229 9.23284L12.2365 3L20.2502 9.23284V19.0273C20.2502 19.4996 20.0626 19.9526 19.7286 20.2865C19.3946 20.6205 18.9417 20.8081 18.4694 20.8081H6.00371C5.53141 20.8081 5.07845 20.6205 4.74449 20.2865C4.41052 19.9526 4.2229 19.4996 4.2229 19.0273V9.23284Z", 54151 stroke: "currentColor", 54152 "stroke-width": "1.78081", 54153 "stroke-linecap": "round", 54154 "stroke-linejoin": "round" 54155 }, null, -1)), 54156 _cache[1] || (_cache[1] = createBaseVNode("path", { 54157 d: "M9.56543 20.8081V11.9041H14.9079V20.8081", 54158 stroke: "currentColor", 54159 "stroke-width": "1.78081", 54160 "stroke-linecap": "round", 54161 "stroke-linejoin": "round" 54162 }, null, -1)) 54163 ], 8, _hoisted_1$1A); 54164} 54165const CoreIconHome = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1r]]); 54166const CoreIconHome$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54167 __proto__: null, 54168 default: CoreIconHome 54169}, Symbol.toStringTag, { value: "Module" })); 54170const _sfc_main$1z = { 54171 props: { 54172 settings: { 54173 type: Object, 54174 required: false 54175 } 54176 }, 54177 computed: { 54178 alt() { 54179 var _a, _b; 54180 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54181 }, 54182 id() { 54183 var _a, _b; 54184 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54185 } 54186 } 54187}; 54188const _hoisted_1$1z = ["aria-labelledby", "aria-label"]; 54189const _hoisted_2$1r = ["id"]; 54190function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) { 54191 return openBlock(), createElementBlock("svg", { 54192 width: "24", 54193 height: "24", 54194 viewBox: "0 0 24 24", 54195 fill: "none", 54196 xmlns: "http://www.w3.org/2000/svg", 54197 role: "img", 54198 "aria-labelledby": `icon-title-${$options.id}`, 54199 "aria-label": $options.alt 54200 }, [ 54201 createBaseVNode("title", { 54202 id: `icon-title-${$options.id}` 54203 }, toDisplayString($options.alt), 9, _hoisted_2$1r), 54204 _cache[0] || (_cache[0] = createBaseVNode("path", { 54205 d: "M12.6633 9.2406H11.9135C10.5327 9.2406 9.62567 10.2257 9.62567 11.4877V12.5122C9.62567 13.7742 10.5327 14.7593 11.9135 14.7593H12.6633C14.6749 14.7593 14.5167 12.7096 17.5543 12.7096C17.8424 12.7096 18.1295 12.7351 18.412 12.7882C18.5044 12.2673 18.5044 11.7336 18.412 11.2118C18.1295 11.2639 17.8424 11.2913 17.5543 11.2904C14.5158 11.2904 14.6749 9.2406 12.6633 9.2406Z", 54206 fill: "currentColor" 54207 }, null, -1)), 54208 _cache[1] || (_cache[1] = createBaseVNode("path", { 54209 d: "M20.1492 13.5285C19.633 13.1524 19.0383 12.8971 18.4089 12.7836V12.799C18.3542 13.0988 18.2703 13.394 18.1563 13.6766C18.6762 13.7565 19.1696 13.9591 19.5956 14.2671C19.5956 14.2707 19.5928 14.2761 19.5919 14.2807C18.3277 18.3578 13.9833 20.6426 9.88979 19.3835C5.79623 18.1243 3.50227 13.7974 4.76646 9.72025C6.03065 5.64311 10.3741 3.35836 14.4677 4.61747C16.9176 5.37058 18.8349 7.28105 19.591 9.72025C19.591 9.72479 19.5937 9.73024 19.5947 9.73388C19.1687 10.0418 18.6752 10.2435 18.1553 10.3235C18.2694 10.6078 18.3533 10.9021 18.408 11.2028C18.408 11.2074 18.408 11.2119 18.408 11.2174C19.0374 11.1029 19.6321 10.8485 20.1483 10.4724C20.6445 10.1063 20.5487 9.693 20.473 9.44862C19.0574 4.87729 14.1904 2.3
542091454 9.60156 3.72355C5.01182 5.13347 2.43875 9.98098 3.85344 14.5523C5.26903 19.1227 10.1361 21.6855 14.7249 20.2765C17.4731 19.4325 19.6248 17.2895 20.473 14.5523C20.5487 14.307 20.6454 13.8937 20.1492 13.5285Z", 54210 fill: "currentColor" 54211 }, null, -1)), 54212 _cache[2] || (_cache[2] = createBaseVNode("path", { 54213 "fill-rule": "evenodd", 54214 "clip-rule": "evenodd", 54215 d: "M18.1763 10.3446C18.1764 10.3446 18.1766 10.3445 18.1767 10.3445L18.1722 10.3327C18.0938 10.1368 18.0009 9.94637 17.8952 9.76325L17.0142 8.2381C16.2061 6.83869 14.7128 5.97681 13.0966 5.97681H11.3346C9.7183 5.97681 8.22504 6.83869 7.41692 8.2381L6.5359 9.76325C5.72778 11.1627 5.72778 12.8873 6.5359 14.2877L7.41692 15.8128C8.22504 17.2122 9.7183 18.0741 11.3346 18.0741H13.0966C14.7119 18.0741 16.2061 17.2122 17.0142 15.8128L17.8952 14.2895C18.0009 14.1064 18.0929 13.9169 18.1722 13.7201L18.1767 13.7091C18.1013 13.6963 18.0255 13.686 17.9496 13.6781C17.8254 13.6659 17.7006 13.6599 17.5755 13.6599C16.2641 13.6599 15.7688 14.0969 15.1999 14.5987L15.1921 14.6056L15.1908 14.6068C14.638 15.0958 13.9512 15.7035 12.7021 15.7035H11.955C11.0503 15.7035 10.2295 15.3755 9.64091 14.7806C9.06602 14.1984 8.74988 13.403 8.74988 12.5384V11.5162C8.74988 11.0932 8.82554 10.6868 8.97015 10.3138C9.12125 9.92302 9.34782 9.56895 9.64177 9.27126C10.2294 8.67633 11.0521 8.34834 11.9559 8.34834H12.703C13.9539 8.34834 14.6409 8.95694 15.1921 9.44619L15.2009 9.45399C15.7702 9.95546 16.2657 10.3919 17.5763 10.3919C17.7202 10.3919 17.8636 10.384 18.0062 10.3678C18.063 10.361 18.1196 10.3529 18.1759 10.3436C18.176 10.3439 18.1761 10.3443 18.1763 10.3446Z", 54216 fill: "currentColor" 54217 }, null, -1)) 54218 ], 8, _hoisted_1$1z); 54219} 54220const CoreIconIcon71 = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1q]]); 54221const CoreIconIcon71$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54222 __proto__: null, 54223 default: CoreIconIcon71 54224}, Symbol.toStringTag, { value: "Module" })); 54225const _sfc_main$1y = { 54226 props: { 54227 settings: { 54228 type: Object, 54229 required: false 54230 } 54231 }, 54232 computed: { 54233 alt() { 54234 var _a, _b; 54235 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54236 }, 54237 id() { 54238 var _a, _b; 54239 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54240 } 54241 } 54242}; 54243const _hoisted_1$1y = ["aria-labelledby", "aria-label"]; 54244const _hoisted_2$1q = ["id"]; 54245function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) { 54246 return openBlock(), createElementBlock("svg", { 54247 width: "24", 54248 height: "24", 54249 viewBox: "0 0 24 24", 54250 fill: "none", 54251 xmlns: "http://www.w3.org/2000/svg", 54252 role: "img", 54253 "aria-labelledby": `icon-title-${$options.id}`, 54254 "aria-label": $options.alt 54255 }, [ 54256 createBaseVNode("title", { 54257 id: `icon-title-${$options.id}` 54258 }, toDisplayString($options.alt), 9, _hoisted_2$1q), 54259 _cache[0] || (_cache[0] = createStaticVNode('<g clip-path="url(#clip0_548_2904)"><path d="M17 19.22H5V7H12V5H5C3.9 5 3 5.9 3 7V19C3 20.1 3.9 21 5 21H17C18.1 21 19 20.1 19 19V12H17V19.22Z" fill="currentColor"></path><path d="M19 2H17V5H14C14.01 5.01 14 7 14 7H17V9.99C17.01 10 19 9.99 19 9.99V7H22V5H19V2Z" fill="currentColor"></path><path d="M7 9V17H15V9H12H7Z" fill="currentColor"></path></g><defs><clipPath id="clip0_548_2904"><rect width="24" height="24" fill="white"></rect></clipPath></defs>', 2)) 54260 ], 8, _hoisted_1$1y); 54261} 54262const CoreIconIcons = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1p]]); 54263const CoreIconIcons$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54264 __proto__: null, 54265 default: CoreIconIcons 54266}, Symbol.toStringTag, { value: "Module" })); 54267const _sfc_main$1x = { 54268 props: { 54269 settings: { 54270 type: Object, 54271 required: false 54272 } 54273 }, 54274 computed: { 54275 alt() { 54276 var _a, _b; 54277 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54278 }, 54279 id() { 54280 var _a, _b; 54281 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54282 } 54283 } 54284}; 54285const _hoisted_1$1x = ["aria-labelledby", "aria-label"]; 54286const _hoisted_2$1p = ["id"]; 54287function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) { 54288 return openBlock(), createElementBlock("svg", { 54289 width: "24", 54290 height: "24",
54291 viewBox: "0 0 24 24", 54292 fill: "none", 54293 xmlns: "http://www.w3.org/2000/svg", 54294 role: "img", 54295 "aria-labelledby": `icon-title-${$options.id}`, 54296 "aria-label": $options.alt 54297 }, [ 54298 createBaseVNode("title", { 54299 id: `icon-title-${$options.id}` 54300 }, toDisplayString($options.alt), 9, _hoisted_2$1p), 54301 _cache[0] || (_cache[0] = createBaseVNode("path", { 54302 d: "M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z", 54303 stroke: "currentColor", 54304 "stroke-width": "2", 54305 "stroke-linecap": "round", 54306 "stroke-linejoin": "round" 54307 }, null, -1)), 54308 _cache[1] || (_cache[1] = createBaseVNode("path", { 54309 d: "M8.5 10C9.32843 10 10 9.32843 10 8.5C10 7.67157 9.32843 7 8.5 7C7.67157 7 7 7.67157 7 8.5C7 9.32843 7.67157 10 8.5 10Z", 54310 stroke: "currentColor", 54311 "stroke-width": "2", 54312 "stroke-linecap": "round", 54313 "stroke-linejoin": "round" 54314 }, null, -1)), 54315 _cache[2] || (_cache[2] = createBaseVNode("path", { 54316 d: "M21 15L16 10L5 21", 54317 stroke: "currentColor", 54318 "stroke-width": "2", 54319 "stroke-linecap": "round", 54320 "stroke-linejoin": "round" 54321 }, null, -1)) 54322 ], 8, _hoisted_1$1x); 54323} 54324const CoreIconImage = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$1o]]); 54325const CoreIconImage$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54326 __proto__: null, 54327 default: CoreIconImage 54328}, Symbol.toStringTag, { value: "Module" })); 54329const _sfc_main$1w = { 54330 props: { 54331 settings: { 54332 type: Object, 54333 required: false 54334 } 54335 }, 54336 computed: { 54337 alt() { 54338 var _a, _b; 54339 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54340 }, 54341 id() { 54342 var _a, _b; 54343 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54344 } 54345 } 54346}; 54347const _hoisted_1$1w = ["aria-labelledby", "aria-label"]; 54348const _hoisted_2$1o = ["id"]; 54349function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) { 54350 return openBlock(), createElementBlock("svg", { 54351 xmlns: "http://www.w3.org/2000/svg", 54352 width: "24", 54353 height: "24", 54354 viewBox: "0 0 24 24", 54355 fill: "none", 54356 role: "img", 54357 "aria-labelledby": `icon-title-${$options.id}`, 54358 "aria-label": $options.alt 54359 }, [ 54360 createBaseVNode("title", { 54361 id: `icon-title-${$options.id}` 54362 }, toDisplayString($options.alt), 9, _hoisted_2$1o), 54363 _cache[0] || (_cache[0] = createBaseVNode("rect", { 54364 x: "1", 54365 y: "1", 54366 width: "15", 54367 height: "15", 54368 rx: "1", 54369 stroke: "currentColor", 54370 "stroke-width": "2", 54371 fill: "none" 54372 }, null, -1)), 54373 _cache[1] || (_cache[1] = createBaseVNode("rect", { 54374 x: "8", 54375 y: "8", 54376 width: "15", 54377 height: "15", 54378 rx: "1", 54379 fill: "currentColor" 54380 }, null, -1)) 54381 ], 8, _hoisted_1$1w); 54382} 54383const CoreIconImageOffset = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1n]]); 54384const CoreIconImageOffset$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54385 __proto__: null, 54386 default: CoreIconImageOffset 54387}, Symbol.toStringTag, { value: "Module" })); 54388const _sfc_main$1v = { 54389 props: { 54390 settings: { 54391 type: Object, 54392 required: false 54393 } 54394 }, 54395 computed: { 54396 alt() { 54397 var _a, _b; 54398 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54399 }, 54400 id() { 54401 var _a, _b; 54402 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54403 } 54404 } 54405}; 54406const _hoisted_1$1v = ["aria-labelledby", "aria-label"]; 54407const _hoisted_2$1n = ["id"]; 54408function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) { 54409 return openBlock(), createElementBlock("svg", { 54410 width: "24", 54411 height: "24", 54412 viewBox: "0 0 24 24", 54413 fill: "none", 54414 xmlns: "http://www.w3.org/2000/svg", 54415 role: "img", 54416 "aria-labelledby": `icon-title-${$options.id}`, 54417 "aria-label": $options.alt 54418 }, [ 54419 createBaseVNode("title", { 54420 id: `icon-title-${$options.id}` 54421 }, toDisplayString($options.alt), 9, _hoisted_2$1n), 54422 _cache[0] || (_cache[0] = createBaseVNode("path", { 54423 d: "M4 18H20C21.1 18 21.99 17.1 21.99 16L22 5C22 3.9 21.1 3 20 3H4C2.9 3 2 3.9 2 5V16C2 17.1 2.9 18 4 18ZM4 5H2
544230V16H4V5Z", 54424 fill: "currentColor" 54425 }, null, -1)), 54426 _cache[1] || (_cache[1] = createBaseVNode("path", { 54427 d: "M23 19H1V21H23V19Z", 54428 fill: "currentColor" 54429 }, null, -1)), 54430 _cache[2] || (_cache[2] = createBaseVNode("path", { 54431 d: "M13.97 7.53C12.6 6.16 10.39 6.16 9.02 7.53C7.65 8.9 7.65 11.11 9.02 12.48C10.2 13.66 12.02 13.82 13.38 12.95L15.47 15.04L16.53 13.98L14.44 11.89C15.31 10.53 15.16 8.71 13.97 7.53ZM12.91 11.41C12.13 12.19 10.86 12.19 10.08 11.41C9.3 10.63 9.3 9.36 10.08 8.58C10.86 7.8 12.13 7.8 12.91 8.58C13.69 9.37 13.69 10.63 12.91 11.41Z", 54432 fill: "currentColor" 54433 }, null, -1)) 54434 ], 8, _hoisted_1$1v); 54435} 54436const CoreIconInReview = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$1m]]); 54437const CoreIconInReview$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54438 __proto__: null, 54439 default: CoreIconInReview 54440}, Symbol.toStringTag, { value: "Module" })); 54441const _sfc_main$1u = { 54442 props: { 54443 settings: { 54444 type: Object, 54445 required: false 54446 } 54447 }, 54448 computed: { 54449 alt() { 54450 var _a, _b; 54451 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54452 }, 54453 id() { 54454 var _a, _b; 54455 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54456 } 54457 } 54458}; 54459const _hoisted_1$1u = ["aria-labelledby", "aria-label"]; 54460const _hoisted_2$1m = ["id"]; 54461function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) { 54462 return openBlock(), createElementBlock("svg", { 54463 width: "24", 54464 height: "24", 54465 viewBox: "0 0 24 24", 54466 fill: "none", 54467 xmlns: "http://www.w3.org/2000/svg", 54468 role: "img", 54469 "aria-labelledby": `icon-title-${$options.id}`, 54470 "aria-label": $options.alt 54471 }, [ 54472 createBaseVNode("title", { 54473 id: `icon-title-${$options.id}` 54474 }, toDisplayString($options.alt), 9, _hoisted_2$1m), 54475 _cache[0] || (_cache[0] = createBaseVNode("path", { 54476 d: "M14 2H6C4.9 2 4.01 2.9 4.01 4L4 20C4 21.1 4.89 22 5.99 22H18C19.1 22 20 21.1 20 20V8L14 2ZM6 20V4H13V9H18V20H6Z", 54477 fill: "currentColor" 54478 }, null, -1)) 54479 ], 8, _hoisted_1$1u); 54480} 54481const CoreIconInsertDriveFile = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$1l]]); 54482const CoreIconInsertDriveFile$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54483 __proto__: null, 54484 default: CoreIconInsertDriveFile 54485}, Symbol.toStringTag, { value: "Module" })); 54486const _sfc_main$1t = { 54487 props: { 54488 settings: { 54489 type: Object, 54490 required: false 54491 } 54492 }, 54493 computed: { 54494 alt() { 54495 var _a, _b; 54496 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54497 }, 54498 id() { 54499 var _a, _b; 54500 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54501 } 54502 } 54503}; 54504const _hoisted_1$1t = ["aria-labelledby", "aria-label"]; 54505const _hoisted_2$1l = ["id"]; 54506function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) { 54507 return openBlock(), createElementBlock("svg", { 54508 "data-testid": "icon-insert-link", 54509 width: "24", 54510 height: "24", 54511 viewBox: "0 0 24 24", 54512 fill: "none", 54513 xmlns: "http://www.w3.org/2000/svg", 54514 role: "img", 54515 "aria-labelledby": `icon-title-${$options.id}`, 54516 "aria-label": $options.alt 54517 }, [ 54518 createBaseVNode("title", { 54519 id: `icon-title-${$options.id}` 54520 }, toDisplayString($options.alt), 9, _hoisted_2$1l), 54521 _cache[0] || (_cache[0] = createBaseVNode("path", { 54522 d: "M3.9 12C3.9 10.29 5.29 8.9 7 8.9H11V7H7C4.24 7 2 9.24 2 12C2 14.76 4.24 17 7 17H11V15.1H7C5.29 15.1 3.9 13.71 3.9 12ZM8 13H16V11H8V13ZM17 7H13V8.9H17C18.71 8.9 20.1 10.29 20.1 12C20.1 13.71 18.71 15.1 17 15.1H13V17H17C19.76 17 22 14.76 22 12C22 9.24 19.76 7 17 7Z", 54523 fill: "currentColor" 54524 }, null, -1)) 54525 ], 8, _hoisted_1$1t); 54526} 54527const CoreIconInsertLink = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1k]]); 54528const CoreIconInsertLink$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54529 __proto__: null, 54530 default: CoreIconInsertLink 54531}, Symbol.toStringTag, { value: "Module" })); 54532const _sfc_main$1s = { 54533 props: { 54534 settings: { 54535 type: Object, 54536 required: false 54537 } 54538 }, 54539 computed: { 54540 alt() { 54541 var _a, _b; 54542 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54543 }, 54544 id() { 54545 var _a, _b; 54546 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54547 } 54548 } 54549}; 54550const _hoisted_1$1s = ["aria-labelledby", "aria-label"]; 54551const _hoisted_2$1k = ["id"]; 54552function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) { 54553 return openBlock(), createElementBlock("svg", { 54554 width: "65", 54555 height: "65",
54556 viewBox: "0 0 65 65", 54557 fill: "none", 54558 xmlns: "http://www.w3.org/2000/svg", 54559 role: "img", 54560 "aria-labelledby": `icon-title-${$options.id}`, 54561 "aria-label": $options.alt 54562 }, [ 54563 createBaseVNode("title", { 54564 id: `icon-title-${$options.id}` 54565 }, toDisplayString($options.alt), 9, _hoisted_2$1k), 54566 _cache[0] || (_cache[0] = createStaticVNode('<g clip-path="url(#clip0_1254_20648)"><path d="M24.2185 25.3259C23.5008 25.2695 22.7812 25.4074 22.1352 25.7251C21.4891 26.0428 20.9406 26.5286 20.5472 27.1315C19.6565 28.4315 19.7106 31.507 19.7106 31.507C19.5421 35.5695 20.5292 37.1824 20.5292 37.1824C20.8274 37.7848 21.2783 38.2985 21.8369 38.6724C22.3955 39.0462 23.0424 39.2671 23.713 39.313C24.513 39.3842 25.316 39.2135 26.0179 38.8229C26.7197 38.4322 27.288 37.8397 27.6491 37.1222C28.5519 35.1181 28.3954 31.507 28.3954 31.507C28.3231 28.4616 27.4083 27.1315 27.4083 27.1315C27.0862 26.5733 26.6204 26.1114 26.0595 25.7939C25.4986 25.4764 24.8629 25.3148 24.2185 25.3259Z" fill="white"></path><path d="M31.9764 11.0862C31.8449 10.7209 31.6038 10.4051 31.2859 10.1821C30.9681 9.95908 30.5892 9.83972 30.2009 9.84033C30.2009 9.84033 29.6653 9.70191 26.5898 9.84033C26.5898 9.84033 25.5426 9.84032 25.6028 11.2246V14.7514C25.6028 14.7514 27.3782 14.8417 30.0866 14.6973C30.4124 14.67 30.7337 14.6033 31.0435 14.4987L30.7606 16.8098C30.7606 16.8098 30.6764 16.4426 25.8255 16.6112C25.7754 16.6126 25.7271 16.6296 25.6872 16.6598C25.6473 16.69 25.6178 16.7319 25.6028 16.7797C25.6028 16.7797 25.5185 18.7899 25.6028 21.3237C25.6657 21.6495 25.8481 21.94 26.1143 22.1382C26.3804 22.3364 26.711 22.428 27.0412 22.395C27.0412 22.395 31.4708 22.5093 32.4278 22.0038C32.4278 22.0038 32.8491 21.9315 33.4449 20.8723C33.4449 20.8723 33.4449 21.2213 33.162 24.0561H36.713C36.713 24.0561 37.1463 24.0019 37.1463 23.6047C37.1463 23.6047 37.3449 23.1834 36.5445 21.095C35.1927 17.6833 33.6681 14.3427 31.9764 11.0862V11.0862Z" fill="white"></path><path d="M46.6255 40.0051C46.9204 40.0051 46.9083 39.2287 46.9083 39.2287C47.2755 32.3736 46.9384 26.3972 46.9384 26.3972C46.7398 24.1402 45.9875 23.9898 45.9875 23.9898H47.1912C47.1573 23.6207 47.0722 23.2581 46.9384 22.9125C44.3143 15.3291 42.7616 11.9768 42.7616 11.9768C40.619 17.9953 39.2528 22.8463 39.2528 22.8463C39.1264 23.3638 39.0421 24.05 39.0421 24.05C41.8889 23.9958 42.5088 24.4713 42.5088 24.4713C44.2421 25.1935 44.3444 27.318 44.3444 27.318C44.3973 27.8421 44.3251 28.3712 44.1336 28.862C43.9421 29.3527 43.6369 29.7909 43.2431 30.1407C42.5536 30.7058 41.7196 31.0665 40.8357 31.1819C41.9548 33.7091 43.2751 36.1424 44.7838 38.4583C45.9875 40.324 46.6255 40.0051 46.6255 40.0051Z" fill="white"></path><path d="M61.9907 0H3.00926C2.21115 0 1.44574 0.317044 0.881399 0.881389C0.317053 1.44574 0 2.21115 0 3.00926V61.9907C0 62.7888 0.317053 63.5543 0.881399 64.1186C1.44574 64.683 2.21115 65 3.00926 65H61.9907C62.7888 65 63.5543 64.683 64.1186 64.1186C64.683 63.5543 65 62.7888 65 61.9907V3.00926C65 2.21115 64.683 1.44574 64.1186 0.881389C63.5543 0.317044 62.7888 0 61.9907 0V0ZM52.6681 55.1296C52.6681 55.1296 52.5838 56.1769 52.0662 56.1468C52.0662 56.1468 51.8917 56.3694 47.2514 56.0866C47.2514 56.0866 46.2403 55.8338 42.5449 56.0866C42.5449 56.0866 43.3634 55.888 43.5019 53.7755C43.5019 53.7755 43.7306 47.7931 43.6162 41.1366C43.6162 41.1366 43.6583 40.1676 42.9662 40.0954C42.7649 40.1124 42.5628 40.0743 42.3815 39.9853C42.2002 39.8962 42.0466 39.7595 41.937 39.5898C41.937 39.5898 39.9028 35.4731 38.5907 32.175C38.4423 31.7738 38.3039 31.4066 38.1755 31.0736C38.1755 31.0736 37.8625 30.6764 38.4824 30.7907C39.2945 30.7993 40.0835 30.52 40.7093 30.0023C41.0558 29.6508 41.3135 29.2218 41.4611 28.7508C41.6086 28.2798 41.6418 27.7804 41.5579 27.294C41.5271 26.8931 41.3719 26.5117 41.1141 26.2032C40.8562 25.8946 40.5085 25.6742 40.1194 25.5727C39.1312 25.3285 38.0984 25.3285 37.1102 25.5727C36.9111 25.6117 36.733 25.7217 36.609 25.8823C36.485 26.0428 36.4236 26.2429 36.4361 26.4454V38.8495C36.4361 38.8495 36.2375 40.1796 37.7903 40.0532H39.9028C39.9028 40.0532 40.607 39.9329 40.3843 40.5528L40.0713 42.0755C40.0713 42.0755 40.0171 41.8347 39.2227 41.7745C39.2227 41.7745 38.4644 41.5157 34.9435 41.7083C34.9435 41.7083 34.125 41.7083 34.0949 42.1898V47.0046H37.6519C38.4782 47.0443 39.3064 47.006 40.1255 46.8903L39.6801 49.1954C39.3936 48.9872 39.0382 48.8967 38.687 48.9426C38.687 48.9426 37.6157 48.7199 34.0648 48.8884L34.125 54.1306C34.125 54.1306 34.0949 55.9361 34.9435 56.1347C33.4149 55.9771 31.874 55.9771 30.3454 56.1347C30.6652 55.9855 30.9343 55.7457 31.1194 55.4451C31.3044 55.1446 31.3973 54.7963 31.3866 54.4435C31.3866 54.4435 31.8079 48.2083 31.6394 42.4606C31.6394 42.4606 31.7838 40.0833 30.8208 39.8005H32.2893C32.2893 39.8005 33.4208 39.9991 33.6435 37.4352C33.6435 37.4352 33.8662 35.094 33.8903 32.163C33.913 30.459 33.8406 28.7551 33.6736 27.0593C33.6736 27.0593 33.7037 24.4593 32.0065 24.2907H26.1986C26.1986 24.2907 28.4796 24.9648 29.6111 26.3792C29.6111 26.3792 31.2602 28.1847 31.2482 31.6213C31.2482 31.6213 31.2482 31.8199 31.2482 32.187C31.2903 33.4269 31.2481 36.6829 29.6171 38.362C29.6171 38.362 29.1898 39.319 26.5417 39.9931C26.5417 39.9931 25.3861 40.4444 25.4102 42.2801C25.4102 42.2801 25.2718 47.9736 25.4102 54.919C25.4372 55.2069 25.5479 55.4805 25.7287 55.7062C25.9094 55.9318 26.1523 56.0996 26.4273 56.1889C24.7375 55.9379 23.0229 55.8995 21.3236 56.0745C21.3236 56.0745 22.0579 56.0144 22.2866 54.9731C22.2866 54.9731 22.738 53.8778 22.762 47.8954V42.256C22.762 42.256 22.7921 40.2579 21.6065 39.975C21.6065 39.975 19.4398 39.6319 18.4227 38.4222C18.4227 38.4222 16.9542 37.3208 16.9 32.8972C16.9 32.8972 16.8699 32.6384 16.8639 32.1931C16.7914 30.5702 17.0835 28.9517 17.7185 27.4565C18.0881 26.6712 18.6425 25.9871 19.3343 25.463C20.0261 24.9389 20.8347 24.5904 21.6907 24.4472C21.6907 24.4472 20.6014 22.4731 13.4995 11.7301V22.8102C13.5405 23.1572 13.7034 23.4783 13.9591 23.7164C14.2148 23.9545 14.5468 24.0941 14.8958 24.1102H18.0796C18.0796 24.1102 17.4778 24.248
545666 13.4032 31.4107C13.4032 31.4107 13.1986 31.7357 12.9398 32.2051C12.5125 32.9935 11.9407 34.2032 11.9889 34.9676V38.687C11.9889 38.687 11.9889 39.644 13.3731 39.8426H16.0815C15.892 39.8329 15.7024 39.8613 15.5241 39.926C15.3457 39.9908 15.1821 40.0906 15.043 40.2197C14.9039 40.3487 14.792 40.5043 14.714 40.6773C14.636 40.8503 14.5935 41.0372 14.5889 41.2269C14.2759 46.9204 14.4986 53.7875 14.4986 53.7875C14.4444 54.5458 15.6301 54.6301 15.6301 54.6301C16.7949 54.707 17.9639 54.695 19.1269 54.594C19.4313 54.5474 19.7232 54.4397 19.9849 54.2773C20.2466 54.1149 20.4727 53.9012 20.6495 53.6491L20.3125 55.575C20.3125 55.575 20.2704 56.0144 19.6083 56.1769C19.6083 56.1769 19.2232 56.4056 16.5028 56.1287C14.6246 56.0192 12.7416 56.0192 10.8634 56.1287C10.8634 56.1287 12.019 55.7616 11.9889 53.4204C11.9889 53.4204 12.0792 48.5153 11.9889 42.4847C11.9889 42.4847 11.9347 40.0773 10.3579 40.1676L8.18519 40.1977C8.58519 40.0648 8.93475 39.8123 9.18662 39.4743C9.43848 39.1363 9.58051 38.7292 9.59352 38.3079V34.3296C9.54804 33.4342 9.27233 32.5656 8.79305 31.8079C8.14305 30.7125 7.22223 28.4315 5.51899 26.3912C3.81575 24.3509 2.44352 24.1583 2.44352 24.1583H6.22917C7.00387 24.4943 7.66897 25.0406 8.14908 25.7352C8.75093 26.5116 11.375 31.4407 11.375 31.4407L14.1676 26.5116C14.1676 26.5116 15.1546 24.393 13.662 24.2546H9.9125C10.2768 24.2549 10.6271 24.114 10.8897 23.8615C11.1523 23.609 11.3068 23.2645 11.3208 22.9005C11.5586 18.816 11.5867 14.7221 11.4051 10.6347C11.4051 10.6347 11.4352 8.82916 10.6708 8.3236H15.4074C15.4074 8.3236 15.2991 9.28056 16.6532 11.4773L22.8704 21.1792V10.6889C22.8704 10.6889 22.9546 8.34768 21.9134 8.17916C21.9134 8.17916 23.719 8.3176 33.3185 8.20927C33.3185 8.20927 33.9204 8.04075 34.3356 9.33473C34.3356 9.33473 35.2745 12.4403 38.35 18.4708C38.35 18.4708 39.638 15.0583 41.269 9.50325C41.269 9.50325 41.6241 8.37778 41.0583 8.14908C42.1711 8.29295 43.2978 8.29295 44.4107 8.14908C44.4107 8.14908 44.3023 8.66064 45.8792 12.7472C45.8792 12.7472 46.4148 14.1014 48.5032 19.2352C48.5032 19.2352 49.8815 15.7384 51.5125 10.2074C51.5125 10.2074 52.2227 8.60047 51.3199 8.26343C52.4439 8.38895 53.5784 8.38895 54.7023 8.26343C54.7023 8.26343 54.1005 8.52222 49.0329 24.0319H50.357C50.357 24.0319 49.7551 24.1102 49.713 25.1815V32.175C49.713 34.0969 49.713 36.4181 49.713 39.1384C49.713 39.1384 49.713 40.1676 50.6458 40.0713H51.9699C51.9699 40.0713 52.9028 40.0292 52.7583 40.3782L52.3611 42.1296C52.3611 42.1296 52.1384 41.7204 51.35 41.7204C51.35 41.7204 50.6157 41.5218 47.2032 41.606C47.2032 41.606 46.3727 41.5639 46.3787 42.2681V46.6676H49.5685C51.8255 46.7278 51.9759 46.5833 51.9759 46.5833L51.6148 48.756C51.6148 48.756 51.3861 48.5333 50.5676 48.5093C49.1665 48.3848 47.7579 48.3707 46.3546 48.4671V53.4324C46.3546 53.4324 46.3847 54.2449 47.4861 54.3051C48.501 54.4886 49.5406 54.4886 50.5556 54.3051C50.5556 54.3051 52.644 54.4315 53.0713 53.1014L52.6681 55.1296ZM56.7005 40.0472C56.0986 40.1315 55.575 39.3972 55.575 39.3972C50.2185 31.1097 49.9357 31.0796 49.9357 31.0796C53.5167 26.8667 55.6292 24.5134 55.6292 24.5134C55.9985 24.1766 56.4836 23.9955 56.9833 24.0079H59.2403C58.5233 24.4417 57.876 24.9814 57.3204 25.6088C55.1236 27.7273 52.8065 30.4597 52.8065 30.4597C58.5602 39.5657 59.8963 40.0472 59.8963 40.0472H56.7005Z" fill="white"></path></g><defs><clipPath id="clip0_1254_20648"><rect width="65" height="65" fill="white"></rect></clipPath></defs>', 2)) 54567 ], 8, _hoisted_1$1s); 54568} 54569const CoreIconLandingLogo = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$1j]]); 54570const CoreIconLandingLogo$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54571 __proto__: null, 54572 default: CoreIconLandingLogo 54573}, Symbol.toStringTag, { value: "Module" })); 54574const _sfc_main$1r = { 54575 props: { 54576 settings: { 54577 type: Object, 54578 required: false 54579 } 54580 }, 54581 computed: { 54582 alt() { 54583 var _a, _b; 54584 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54585 }, 54586 id() { 54587 var _a, _b; 54588 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54589 } 54590 } 54591}; 54592const _hoisted_1$1r = ["aria-labelledby", "aria-label"]; 54593const _hoisted_2$1j = ["id"]; 54594function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) { 54595 return openBlock(), createElementBlock("svg", { 54596 width: "24", 54597 height: "24",
54598 viewBox: "0 0 24 24", 54599 fill: "none", 54600 xmlns: "http://www.w3.org/2000/svg", 54601 role: "img", 54602 "aria-labelledby": `icon-title-${$options.id}`, 54603 "aria-label": $options.alt 54604 }, [ 54605 createBaseVNode("title", { 54606 id: `icon-title-${$options.id}` 54607 }, toDisplayString($options.alt), 9, _hoisted_2$1j), 54608 _cache[0] || (_cache[0] = createBaseVNode("path", { 54609 d: "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM5 19V5H11V19H5ZM19 19H13V12H19V19ZM19 10H13V5H19V10Z", 54610 fill: "currentColor" 54611 }, null, -1)) 54612 ], 8, _hoisted_1$1r); 54613} 54614const CoreIconLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1i]]); 54615const CoreIconLayout$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54616 __proto__: null, 54617 default: CoreIconLayout 54618}, Symbol.toStringTag, { value: "Module" })); 54619const _sfc_main$1q = { 54620 props: { 54621 settings: { 54622 type: Object, 54623 required: false 54624 } 54625 }, 54626 computed: { 54627 alt() { 54628 var _a, _b; 54629 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54630 }, 54631 id() { 54632 var _a, _b; 54633 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54634 } 54635 } 54636}; 54637const _hoisted_1$1q = ["aria-labelledby", "aria-label"]; 54638const _hoisted_2$1i = ["id"]; 54639function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) { 54640 return openBlock(), createElementBlock("svg", { 54641 role: "img", 54642 width: "25", 54643 height: "24", 54644 viewBox: "0 0 25 24", 54645 fill: "none", 54646 xmlns: "http://www.w3.org/2000/svg", 54647 "aria-labelledby": `icon-title-${$options.id}`, 54648 "aria-label": $options.alt 54649 }, [ 54650 createBaseVNode("title", { 54651 id: `icon-title-${$options.id}` 54652 }, toDisplayString($options.alt), 9, _hoisted_2$1i), 54653 _cache[0] || (_cache[0] = createBaseVNode("path", { 54654 d: "M19.5 12H5.5", 54655 stroke: "currentColor", 54656 "stroke-width": "2", 54657 "stroke-linecap": "round", 54658 "stroke-linejoin": "round" 54659 }, null, -1)), 54660 _cache[1] || (_cache[1] = createBaseVNode("path", { 54661 d: "M12.5 19L5.5 12L12.5 5", 54662 stroke: "currentColor", 54663 "stroke-width": "2", 54664 "stroke-linecap": "round", 54665 "stroke-linejoin": "round" 54666 }, null, -1)) 54667 ], 8, _hoisted_1$1q); 54668} 54669const CoreIconLeftArrow = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1h]]); 54670const CoreIconLeftArrow$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54671 __proto__: null, 54672 default: CoreIconLeftArrow 54673}, Symbol.toStringTag, { value: "Module" })); 54674const _sfc_main$1p = { 54675 props: { 54676 settings: { 54677 type: Object, 54678 required: false 54679 } 54680 }, 54681 computed: { 54682 alt() { 54683 var _a, _b; 54684 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54685 }, 54686 id() { 54687 var _a, _b; 54688 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54689 } 54690 } 54691}; 54692const _hoisted_1$1p = ["aria-labelledby", "aria-label"]; 54693const _hoisted_2$1h = ["id"]; 54694function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) { 54695 return openBlock(), createElementBlock("svg", { 54696 width: "24", 54697 height: "24", 54698 viewBox: "0 0 24 24", 54699 fill: "none", 54700 xmlns: "http://www.w3.org/2000/svg", 54701 role: "img", 54702 "aria-labelledby": `icon-title-${$options.id}`, 54703 "aria-label": $options.alt 54704 }, [ 54705 createBaseVNode("title", { 54706 id: `icon-title-${$options.id}` 54707 }, toDisplayString($options.alt), 9, _hoisted_2$1h), 54708 _cache[0] || (_cache[0] = createBaseVNode("path", { 54709 d: "M11 7H17V9H11V7ZM11 11H17V13H11V11ZM11 15H17V17H11V15ZM7 7H9V9H7V7ZM7 11H9V13H7V11ZM7 15H9V17H7V15ZM20.1 3H3.9C3.4 3 3 3.4 3 3.9V20.1C3 20.5 3.4 21 3.9 21H20.1C20.5 21 21 20.5 21 20.1V3.9C21 3.4 20.5 3 20.1 3ZM19 19H5V5H19V19Z", 54710 fill: "currentColor" 54711 }, null, -1)) 54712 ], 8, _hoisted_1$1p); 54713} 54714const CoreIconList = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1g]]); 54715const CoreIconList$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54716 __proto__: null, 54717 default: CoreIconList 54718}, Symbol.toStringTag, { value: "Module" })); 54719const _sfc_main$1o = { 54720 props: { 54721 settings: { 54722 type: Object, 54723 required: false 54724 } 54725 }, 54726 computed: { 54727 alt() { 54728 var _a, _b; 54729 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54730 }, 54731 id() { 54732 var _a, _b; 54733 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54734 } 54735 } 54736}; 54737const _hoisted_1$1o = ["aria-labelledby", "aria-label"]; 54738const _hoisted_2$1g = ["id"]; 54739function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) { 54740 return openBlock(), createElementBlock("svg", { 54741 width: "24", 54742 height: "24",
54743 viewBox: "0 0 24 24", 54744 fill: "none", 54745 xmlns: "http://www.w3.org/2000/svg", 54746 role: "img", 54747 "aria-labelledby": `icon-title-${$options.id}`, 54748 "aria-label": $options.alt 54749 }, [ 54750 createBaseVNode("title", { 54751 id: `icon-title-${$options.id}` 54752 }, toDisplayString($options.alt), 9, _hoisted_2$1g), 54753 _cache[0] || (_cache[0] = createBaseVNode("path", { 54754 d: "M3 13H5V11H3V13ZM3 19H5V17H3V19ZM3 7H5V5H3V7ZM7 13H21V11H7V13ZM7 19H21V17H7V19ZM7 5V7H21V5H7Z", 54755 fill: "currentColor" 54756 }, null, -1)) 54757 ], 8, _hoisted_1$1o); 54758} 54759const CoreIconListView = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1f]]); 54760const CoreIconListView$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54761 __proto__: null, 54762 default: CoreIconListView 54763}, Symbol.toStringTag, { value: "Module" })); 54764const _sfc_main$1n = { 54765 props: { 54766 settings: { 54767 type: Object, 54768 required: false 54769 } 54770 }, 54771 computed: { 54772 alt() { 54773 var _a, _b; 54774 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54775 }, 54776 id() { 54777 var _a, _b; 54778 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54779 }, 54780 height() { 54781 var _a; 54782 return ((_a = this.settings) == null ? void 0 : _a.height) || 24; 54783 }, 54784 width() { 54785 var _a; 54786 return ((_a = this.settings) == null ? void 0 : _a.width) || 24; 54787 } 54788 } 54789}; 54790const _hoisted_1$1n = ["aria-labelledby", "aria-label", "height", "width"]; 54791const _hoisted_2$1f = ["id"]; 54792function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) { 54793 return openBlock(), createElementBlock("svg", { 54794 fill: "none", 54795 role: "img", 54796 viewBox: "0 0 24 24", 54797 xmlns: "http://www.w3.org/2000/svg", 54798 "aria-labelledby": `icon-title-${$options.id}`, 54799 "aria-label": $options.alt, 54800 height: $options.height, 54801 width: $options.width 54802 }, [ 54803 createBaseVNode("title", { 54804 id: `icon-title-${$options.id}` 54805 }, toDisplayString($options.alt), 9, _hoisted_2$1f), 54806 _cache[0] || (_cache[0] = createBaseVNode("path", { 54807 d: "M18 8.5H17V6.5C17 3.74 14.76 1.5 12 1.5C9.24 1.5 7 3.74 7 6.5V8.5H6C4.9 8.5 4 9.4 4 10.5V20.5C4 21.6 4.9 22.5 6 22.5H18C19.1 22.5 20 21.6 20 20.5V10.5C20 9.4 19.1 8.5 18 8.5ZM9 6.5C9 4.84 10.34 3.5 12 3.5C13.66 3.5 15 4.84 15 6.5V8.5H9V6.5ZM18 20.5H6V10.5H18V20.5Z", 54808 fill: "currentColor" 54809 }, null, -1)) 54810 ], 8, _hoisted_1$1n); 54811} 54812const CoreIconLock = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1e]]); 54813const CoreIconLock$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54814 __proto__: null, 54815 default: CoreIconLock 54816}, Symbol.toStringTag, { value: "Module" })); 54817const _sfc_main$1m = { 54818 props: { 54819 settings: { 54820 type: Object, 54821 required: false 54822 } 54823 }, 54824 computed: { 54825 alt() { 54826 var _a, _b; 54827 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54828 }, 54829 id() { 54830 var _a, _b; 54831 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54832 } 54833 } 54834}; 54835const _hoisted_1$1m = ["aria-labelledby", "aria-label"]; 54836const _hoisted_2$1e = ["id"]; 54837function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) { 54838 return openBlock(), createElementBlock("svg", { 54839 width: "24", 54840 height: "24", 54841 viewBox: "0 0 24 24", 54842 fill: "none", 54843 xmlns: "http://www.w3.org/2000/svg", 54844 role: "img", 54845 "aria-labelledby": `icon-title-${$options.id}`, 54846 "aria-label": $options.alt 54847 }, [ 54848 createBaseVNode("title", { 54849 id: `icon-title-${$options.id}` 54850 }, toDisplayString($options.alt), 9, _hoisted_2$1e), 54851 _cache[0] || (_cache[0] = createBaseVNode("path", { 54852 d: "M21.8182 3H2.18182C0.981818 3 0 3.9 0 5V19C0 20.1 0.981818 21 2.18182 21H21.8182C23.0182 21 24 20.1 24 19V5C24 3.9 23.0182 3 21.8182 3ZM22.3636 19.5H1.63636V12V4.5H22.3636V19.5Z", 54853 fill: "currentColor" 54854 }, null, -1)), 54855 _cache[1] || (_cache[1] = createBaseVNode("path", {
54856 d: "M7.82651 11.5C9.11782 11.5 10.1743 10.4875 10.1743 9.25C10.1743 8.0125 9.11782 7 7.82651 7C6.53521 7 5.47869 8.0125 5.47869 9.25C5.47869 10.4875 6.53521 11.5 7.82651 11.5ZM7.82651 8.5C8.25695 8.5 8.60912 8.8375 8.60912 9.25C8.60912 9.6625 8.25695 10 7.82651 10C7.39608 10 7.0439 9.6625 7.0439 9.25C7.0439 8.8375 7.39608 8.5 7.82651 8.5ZM12.5222 14.9425C12.5222 13.0675 9.41521 12.2575 7.82651 12.2575C6.23782 12.2575 3.13086 13.0675 3.13086 14.9425V16H7.82651H12.5222V14.9425ZM5.07173 14.5C5.65086 14.125 6.80912 13.75 7.82651 13.75C8.8439 13.75 9.99434 14.1175 10.5813 14.5H5.07173Z", 54857 fill: "currentColor" 54858 }, null, -1)), 54859 _cache[2] || (_cache[2] = createBaseVNode("rect", { 54860 x: "14", 54861 y: "8.96094", 54862 width: "7", 54863 height: "1.5", 54864 fill: "currentColor" 54865 }, null, -1)), 54866 _cache[3] || (_cache[3] = createBaseVNode("rect", { 54867 x: "14", 54868 y: "12.9609", 54869 width: "7", 54870 height: "1.5", 54871 fill: "currentColor" 54872 }, null, -1)) 54873 ], 8, _hoisted_1$1m); 54874} 54875const CoreIconLogo = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1d]]); 54876const CoreIconLogo$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54877 __proto__: null, 54878 default: CoreIconLogo 54879}, Symbol.toStringTag, { value: "Module" })); 54880const _sfc_main$1l = { 54881 props: { 54882 settings: { 54883 type: Object, 54884 required: false 54885 } 54886 }, 54887 computed: { 54888 alt() { 54889 var _a, _b; 54890 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54891 }, 54892 id() { 54893 var _a, _b; 54894 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54895 } 54896 } 54897}; 54898const _hoisted_1$1l = ["aria-labelledby", "aria-label"]; 54899const _hoisted_2$1d = ["id"]; 54900function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) { 54901 return openBlock(), createElementBlock("svg", { 54902 width: "24", 54903 height: "24", 54904 viewBox: "0 0 24 24", 54905 fill: "none", 54906 xmlns: "http://www.w3.org/2000/svg", 54907 role: "img", 54908 "aria-labelledby": `icon-title-${$options.id}`, 54909 "aria-label": $options.alt 54910 }, [ 54911 createBaseVNode("title", { 54912 id: `icon-title-${$options.id}` 54913 }, toDisplayString($options.alt), 9, _hoisted_2$1d), 54914 _cache[0] || (_cache[0] = createStaticVNode('<path d="M5.17227 10.1035C4.13536 10.696 3.65503 10.8621 3.65503 10.8621V23.0001L8.96537 19.9656L15.0343 23.0001L20.3447 19.9656V7.82764L18.8274 8.96557" stroke="currentColor" stroke-width="1.51724" stroke-linecap="round" stroke-linejoin="round"></path><path d="M8.96558 15.4138L8.96558 19.9655" stroke="currentColor" stroke-width="1.51724" stroke-linecap="round" stroke-linejoin="round"></path><path d="M15.0344 15.4138V23" stroke="currentColor" stroke-width="1.51724" stroke-linecap="round" stroke-linejoin="round"></path><path d="M18.8275 7.82759C18.8275 13.1379 11.9999 17.6897 11.9999 17.6897C11.9999 17.6897 5.17236 13.1379 5.17236 7.82759C5.17236 6.0168 5.8917 4.28017 7.17212 2.99975C8.45254 1.71933 10.1892 1 11.9999 1C13.8107 1 15.5474 1.71933 16.8278 2.99975C18.1082 4.28017 18.8275 6.0168 18.8275 7.82759Z" stroke="currentColor" stroke-width="1.51724" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 10.1035C13.2569 10.1035 14.2758 9.08454 14.2758 7.82762C14.2758 6.5707 13.2569 5.55176 12 5.55176C10.7431 5.55176 9.72412 6.5707 9.72412 7.82762C9.72412 9.08454 10.7431 10.1035 12 10.1035Z" stroke="currentColor" stroke-width="1.51724" stroke-linecap="round" stroke-linejoin="round"></path>', 5)) 54915 ], 8, _hoisted_1$1l); 54916} 54917const CoreIconMap = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1c]]); 54918const CoreIconMap$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54919 __proto__: null, 54920 default: CoreIconMap 54921}, Symbol.toStringTag, { value: "Module" })); 54922const _sfc_main$1k = { 54923 props: { 54924 settings: { 54925 type: Object, 54926 required: false 54927 } 54928 }, 54929 computed: { 54930 alt() { 54931 var _a, _b; 54932 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54933 }, 54934 id() { 54935 var _a, _b; 54936 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54937 } 54938 } 54939}; 54940const _hoisted_1$1k = ["aria-labelledby", "aria-label"]; 54941const _hoisted_2$1c = ["id"]; 54942function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) { 54943 return openBlock(), createElementBlock("svg", { 54944 width: "24", 54945 height: "24",
54946 viewBox: "0 0 24 24", 54947 fill: "none", 54948 xmlns: "http://www.w3.org/2000/svg", 54949 role: "img", 54950 "aria-labelledby": `icon-title-${$options.id}`, 54951 "aria-label": $options.alt 54952 }, [ 54953 createBaseVNode("title", { 54954 id: `icon-title-${$options.id}` 54955 }, toDisplayString($options.alt), 9, _hoisted_2$1c), 54956 _cache[0] || (_cache[0] = createBaseVNode("path", { 54957 d: "M21 10C21 17 12 23 12 23C12 23 3 17 3 10C3 7.61305 3.94821 5.32387 5.63604 3.63604C7.32387 1.94821 9.61305 1 12 1C14.3869 1 16.6761 1.94821 18.364 3.63604C20.0518 5.32387 21 7.61305 21 10Z", 54958 stroke: "currentColor", 54959 "stroke-width": "2", 54960 "stroke-linecap": "round", 54961 "stroke-linejoin": "round" 54962 }, null, -1)), 54963 _cache[1] || (_cache[1] = createBaseVNode("path", { 54964 d: "M12 13C13.6569 13 15 11.6569 15 10C15 8.34315 13.6569 7 12 7C10.3431 7 9 8.34315 9 10C9 11.6569 10.3431 13 12 13Z", 54965 stroke: "currentColor", 54966 "stroke-width": "2", 54967 "stroke-linecap": "round", 54968 "stroke-linejoin": "round" 54969 }, null, -1)) 54970 ], 8, _hoisted_1$1k); 54971} 54972const CoreIconMapPin = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1b]]); 54973const CoreIconMapPin$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 54974 __proto__: null, 54975 default: CoreIconMapPin 54976}, Symbol.toStringTag, { value: "Module" })); 54977const _sfc_main$1j = { 54978 props: { 54979 settings: { 54980 type: Object, 54981 required: false 54982 } 54983 }, 54984 computed: { 54985 alt() { 54986 var _a, _b; 54987 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 54988 }, 54989 id() { 54990 var _a, _b; 54991 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 54992 } 54993 } 54994}; 54995const _hoisted_1$1j = ["aria-labelledby", "aria-label"]; 54996const _hoisted_2$1b = ["id"]; 54997function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) { 54998 return openBlock(), createElementBlock("svg", { 54999 width: "24", 55000 height: "24", 55001 viewBox: "0 0 24 24", 55002 fill: "none", 55003 xmlns: "http://www.w3.org/2000/svg", 55004 role: "img", 55005 "aria-labelledby": `icon-title-${$options.id}`, 55006 "aria-label": $options.alt 55007 }, [ 55008 createBaseVNode("title", { 55009 id: `icon-title-${$options.id}` 55010 }, toDisplayString($options.alt), 9, _hoisted_2$1b), 55011 _cache[0] || (_cache[0] = createBaseVNode("path", { 55012 d: "M14.3333 5H19V9.66667", 55013 stroke: "currentColor", 55014 "stroke-width": "1.55556", 55015 "stroke-linecap": "round", 55016 "stroke-linejoin": "round" 55017 }, null, -1)), 55018 _cache[1] || (_cache[1] = createBaseVNode("path", { 55019 d: "M9.66667 19H5V14.3334", 55020 stroke: "currentColor", 55021 "stroke-width": "1.55556", 55022 "stroke-linecap": "round", 55023 "stroke-linejoin": "round" 55024 }, null, -1)), 55025 _cache[2] || (_cache[2] = createBaseVNode("path", { 55026 d: "M19 5L13.5556 10.4444", 55027 stroke: "currentColor", 55028 "stroke-width": "1.55556", 55029 "stroke-linecap": "round", 55030 "stroke-linejoin": "round" 55031 }, null, -1)), 55032 _cache[3] || (_cache[3] = createBaseVNode("path", { 55033 d: "M5 19L10.4444 13.5555", 55034 stroke: "currentColor", 55035 "stroke-width": "1.55556", 55036 "stroke-linecap": "round", 55037 "stroke-linejoin": "round" 55038 }, null, -1)) 55039 ], 8, _hoisted_1$1j); 55040} 55041const CoreIconMaximize = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1a]]); 55042const CoreIconMaximize$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55043 __proto__: null, 55044 default: CoreIconMaximize 55045}, Symbol.toStringTag, { value: "Module" })); 55046const _sfc_main$1i = { 55047 props: { 55048 settings: { 55049 type: Object, 55050 required: false 55051 } 55052 }, 55053 computed: { 55054 alt() { 55055 var _a, _b; 55056 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 55057 }, 55058 id() { 55059 var _a, _b; 55060 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 55061 } 55062 } 55063}; 55064const _hoisted_1$1i = ["aria-labelledby", "aria-label"]; 55065const _hoisted_2$1a = ["id"]; 55066function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) { 55067 return openBlock(), createElementBlock("svg", { 55068 width: "24", 55069 height: "24",
55070 viewBox: "0 0 24 24", 55071 fill: "none", 55072 xmlns: "http://www.w3.org/2000/svg", 55073 role: "img", 55074 "aria-labelledby": `icon-title-${$options.id}`, 55075 "aria-label": $options.alt 55076 }, [ 55077 createBaseVNode("title", { 55078 id: `icon-title-${$options.id}` 55079 }, toDisplayString($options.alt), 9, _hoisted_2$1a), 55080 _cache[0] || (_cache[0] = createBaseVNode("path", { 55081 "fill-rule": "evenodd", 55082 "clip-rule": "evenodd", 55083 d: "M3 4.18C3 3.5283 3.5283 3 4.18 3H6V6H3V4.18ZM3 8H6V11H3V8ZM1 4.18V7V12V17V19.82C1 21.5763 2.42373 23 4.18 23H7H17H19.82C21.5763 23 23 21.5763 23 19.82V17V12V7V4.18C23 2.42373 21.5763 1 19.82 1H17H7H4.18C2.42373 1 1 2.42373 1 4.18ZM21 6V4.18C21 3.5283 20.4717 3 19.82 3H18V6H21ZM18 8H21V11H18V8ZM16 7V3H8V7V11H16V7ZM21 13V16H18V13H21ZM21 18H18V21H19.82C20.4717 21 21 20.4717 21 19.82V18ZM16 13V17V21H8V17V13H16ZM3 18V19.82C3 20.4717 3.5283 21 4.18 21H6V18H3ZM6 16H3V13H6V16Z", 55084 fill: "currentColor" 55085 }, null, -1)) 55086 ], 8, _hoisted_1$1i); 55087} 55088const CoreIconMedia = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$19]]); 55089const CoreIconMedia$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55090 __proto__: null, 55091 default: CoreIconMedia 55092}, Symbol.toStringTag, { value: "Module" })); 55093const _hoisted_1$1h = ["aria-labelledby", "aria-label"]; 55094const _hoisted_2$19 = ["id"]; 55095const _sfc_main$1h = { 55096 __name: "CoreIconMessageCircle", 55097 props: { 55098 settings: { 55099 type: Object, 55100 required: false 55101 } 55102 }, 55103 setup(__props) { 55104 const props = __props; 55105 const alt = computed(() => { 55106 var _a, _b; 55107 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Message Circle"; 55108 }); 55109 const id = computed(() => { 55110 var _a, _b; 55111 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 55112 }); 55113 return (_ctx, _cache) => { 55114 return openBlock(), createElementBlock("svg", { 55115 xmlns: "http://www.w3.org/2000/svg", 55116 width: "24", 55117 height: "24",
55118 viewBox: "0 0 24 24", 55119 fill: "none", 55120 role: "img", 55121 "aria-labelledby": `icon-title-${unref(id)}`, 55122 "aria-label": unref(alt) 55123 }, [ 55124 createBaseVNode("title", { 55125 id: `icon-title-${unref(id)}` 55126 }, toDisplayString(unref(alt)), 9, _hoisted_2$19), 55127 _cache[0] || (_cache[0] = createBaseVNode("path", { 55128 d: "M21 12.0278C21.0034 13.2743 20.695 14.504 20.1 15.6167C19.3944 16.95 18.3097 18.0714 16.9674 18.8554C15.6251 19.6394 14.0782 20.055 12.5 20.0556C11.1801 20.0588 9.8781 19.7676 8.69999 19.2056L3 21L4.9 15.6167C4.30493 14.504 3.99656 13.2743 4 12.0278C4.00061 10.5372 4.44061 9.07627 5.27072 7.80854C6.10082 6.54081 7.28825 5.51639 8.69999 4.85003C9.8781 4.28802 11.1801 3.99678 12.5 4.00003H13C15.0843 4.10863 17.053 4.93952 18.5291 6.33361C20.0052 7.7277 20.885 9.58702 21 11.5556V12.0278Z", 55129 stroke: "currentColor", 55130 "stroke-width": "2", 55131 "stroke-linecap": "round", 55132 "stroke-linejoin": "round" 55133 }, null, -1)) 55134 ], 8, _hoisted_1$1h); 55135 }; 55136 } 55137}; 55138const CoreIconMessageCircle = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55139 __proto__: null, 55140 default: _sfc_main$1h 55141}, Symbol.toStringTag, { value: "Module" })); 55142const _sfc_main$1g = { 55143 props: { 55144 settings: { 55145 type: Object, 55146 required: false 55147 } 55148 }, 55149 computed: { 55150 alt() { 55151 var _a, _b; 55152 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 55153 }, 55154 id() { 55155 var _a, _b; 55156 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 55157 } 55158 } 55159}; 55160const _hoisted_1$1g = ["aria-labelledby", "aria-label"]; 55161const _hoisted_2$18 = ["id"]; 55162function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) { 55163 return openBlock(), createElementBlock("svg", { 55164 width: "24", 55165 height: "24", 55166 viewBox: "0 0 24 24", 55167 fill: "none", 55168 xmlns: "http://www.w3.org/2000/svg", 55169 role: "img", 55170 "aria-labelledby": `icon-title-${$options.id}`, 55171 "aria-label": $options.alt 55172 }, [ 55173 createBaseVNode("title", { 55174 id: `icon-title-${$options.id}` 55175 }, toDisplayString($options.alt), 9, _hoisted_2$18), 55176 _cache[0] || (_cache[0] = createBaseVNode("path", { 55177 d: "M4 14H10V20", 55178 stroke: "currentColor", 55179 "stroke-width": "2", 55180 "stroke-linecap": "round", 55181 "stroke-linejoin": "round" 55182 }, null, -1)), 55183 _cache[1] || (_cache[1] = createBaseVNode("path", { 55184 d: "M20 10H14V4", 55185 stroke: "currentColor", 55186 "stroke-width": "2", 55187 "stroke-linecap": "round", 55188 "stroke-linejoin": "round" 55189 }, null, -1)), 55190 _cache[2] || (_cache[2] = createBaseVNode("path", { 55191 d: "M14 10L21 3", 55192 stroke: "currentColor", 55193 "stroke-width": "2", 55194 "stroke-linecap": "round", 55195 "stroke-linejoin": "round" 55196 }, null, -1)), 55197 _cache[3] || (_cache[3] = createBaseVNode("path", { 55198 d: "M3 21L10 14", 55199 stroke: "currentColor", 55200 "stroke-width": "2", 55201 "stroke-linecap": "round", 55202 "stroke-linejoin": "round" 55203 }, null, -1)) 55204 ], 8, _hoisted_1$1g); 55205} 55206const CoreIconMinimize = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$18]]); 55207const CoreIconMinimize$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55208 __proto__: null, 55209 default: CoreIconMinimize 55210}, Symbol.toStringTag, { value: "Module" })); 55211const _sfc_main$1f = { 55212 props: { 55213 settings: { 55214 type: Object, 55215 required: false 55216 } 55217 }, 55218 computed: { 55219 alt() { 55220 var _a, _b; 55221 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 55222 }, 55223 id() { 55224 var _a, _b; 55225 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 55226 } 55227 } 55228}; 55229const _hoisted_1$1f = ["aria-labelledby", "aria-label"]; 55230const _hoisted_2$17 = ["id"]; 55231function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) { 55232 return openBlock(), createElementBlock("svg", { 55233 width: "24", 55234 height: "24",
55235 viewBox: "0 0 24 24", 55236 fill: "none", 55237 xmlns: "http://www.w3.org/2000/svg", 55238 role: "img", 55239 "aria-labelledby": `icon-title-${$options.id}`, 55240 "aria-label": $options.alt 55241 }, [ 55242 createBaseVNode("title", { 55243 id: `icon-title-${$options.id}` 55244 }, toDisplayString($options.alt), 9, _hoisted_2$17), 55245 _cache[0] || (_cache[0] = createBaseVNode("path", { 55246 d: "M20.4853 11.9999H3.51472", 55247 stroke: "currentColor", 55248 "stroke-width": "2", 55249 "stroke-linecap": "round", 55250 "stroke-linejoin": "round" 55251 }, null, -1)) 55252 ], 8, _hoisted_1$1f); 55253} 55254const CoreIconMinus = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$17]]); 55255const CoreIconMinus$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55256 __proto__: null, 55257 default: CoreIconMinus 55258}, Symbol.toStringTag, { value: "Module" })); 55259const _sfc_main$1e = { 55260 props: { 55261 settings: { 55262 type: Object, 55263 required: false 55264 } 55265 }, 55266 computed: { 55267 alt() { 55268 var _a, _b; 55269 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 55270 }, 55271 id() { 55272 var _a, _b; 55273 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 55274 } 55275 } 55276}; 55277const _hoisted_1$1e = ["aria-labelledby", "aria-label"]; 55278const _hoisted_2$16 = ["id"]; 55279function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) { 55280 return openBlock(), createElementBlock("svg", { 55281 width: "24", 55282 height: "24", 55283 viewBox: "0 0 24 24", 55284 fill: "none", 55285 xmlns: "http://www.w3.org/2000/svg", 55286 role: "img", 55287 "aria-labelledby": `icon-title-${$options.id}`, 55288 "aria-label": $options.alt 55289 }, [ 55290 createBaseVNode("title", { 55291 id: `icon-title-${$options.id}` 55292 }, toDisplayString($options.alt), 9, _hoisted_2$16), 55293 _cache[0] || (_cache[0] = createBaseVNode("path", { 55294 d: "M17 2H7C5.89543 2 5 2.89543 5 4V20C5 21.1046 5.89543 22 7 22H17C18.1046 22 19 21.1046 19 20V4C19 2.89543 18.1046 2 17 2Z", 55295 stroke: "currentColor", 55296 "stroke-width": "2", 55297 "stroke-linecap": "round", 55298 "stroke-linejoin": "round" 55299 }, null, -1)), 55300 _cache[1] || (_cache[1] = createBaseVNode("path", { 55301 d: "M12 18H12.01", 55302 stroke: "currentColor", 55303 "stroke-width": "2", 55304 "stroke-linecap": "round", 55305 "stroke-linejoin": "round" 55306 }, null, -1)) 55307 ], 8, _hoisted_1$1e); 55308} 55309const CoreIconMobilePhone = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$16]]); 55310const CoreIconMobilePhone$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55311 __proto__: null, 55312 default: CoreIconMobilePhone 55313}, Symbol.toStringTag, { value: "Module" })); 55314const _sfc_main$1d = { 55315 props: { 55316 settings: { 55317 type: Object, 55318 required: false 55319 } 55320 }, 55321 computed: { 55322 alt() { 55323 var _a, _b; 55324 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 55325 }, 55326 id() { 55327 var _a, _b; 55328 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 55329 } 55330 } 55331}; 55332const _hoisted_1$1d = ["aria-labelledby", "aria-label"]; 55333const _hoisted_2$15 = ["id"]; 55334function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) { 55335 return openBlock(), createElementBlock("svg", { 55336 width: "20", 55337 height: "19", 55338 viewBox: "0 0 20 19", 55339 fill: "none", 55340 xmlns: "http://www.w3.org/2000/svg", 55341 role: "img", 55342 "aria-labelledby": `icon-title-${$options.id}`, 55343 "aria-label": $options.alt 55344 }, [ 55345 createBaseVNode("title", { 55346 id: `icon-title-${$options.id}` 55347 }, toDisplayString($options.alt), 9, _hoisted_2$15), 55348 _cache[0] || (_cache[0] = createBaseVNode("path", { 55349 d: "M2 3H0V17C0 18.1 0.9 19 2 19H16V17H2V3Z", 55350 fill: "currentColor" 55351 }, null, -1)), 55352 _cache[1] || (_cache[1] = createBaseVNode("path", { 55353 d: "M18.1111 0H4.88889C3.84056 0 3 0.9 3 2V14C3 15.1 3.84056 16 4.88889 16H18.1111C19.15 16 20 15.1 20 14V2C20 0.9 19.1594 0 18.1111 0ZM18.1111 14H4.88889V4H18.1111V14Z", 55354 fill: "currentColor" 55355 }, null, -1)) 55356 ], 8, _hoisted_1$1d); 55357} 55358const CoreIconModal = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$15]]); 55359const CoreIconModal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55360 __proto__: null, 55361 default: CoreIconModal 55362}, Symbol.toStringTag, { value: "Module" })); 55363const _sfc_main$1c = { 55364 props: { 55365 settings: { 55366 type: Object, 55367 required: false 55368 } 55369 }, 55370 computed: { 55371 alt() { 55372 var _a, _b; 55373 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 55374 }, 55375 id() { 55376 var _a, _b; 55377 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 55378 } 55379 } 55380}; 55381const _hoisted_1$1c = ["aria-labelledby", "aria-label"]; 55382const _hoisted_2$14 = ["id"]; 55383function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) { 55384 return openBlock(), createElementBlock("svg", { 55385 width: "24", 55386 height: "24",
55387 viewBox: "0 0 24 24", 55388 fill: "none", 55389 xmlns: "http://www.w3.org/2000/svg", 55390 role: "img", 55391 "aria-labelledby": `icon-title-${$options.id}`, 55392 "aria-label": $options.alt 55393 }, [ 55394 createBaseVNode("title", { 55395 id: `icon-title-${$options.id}` 55396 }, toDisplayString($options.alt), 9, _hoisted_2$14), 55397 _cache[0] || (_cache[0] = createBaseVNode("path", { 55398 "fill-rule": "evenodd", 55399 "clip-rule": "evenodd", 55400 d: "M3.602 6.384a.8.8 0 0 1 .8-.801h12.816a.8.8 0 0 1 .801.8V7.75h1.602V6.384a2.403 2.403 0 0 0-2.403-2.403H4.403A2.403 2.403 0 0 0 2 6.384v8.01a2.403 2.403 0 0 0 2.403 2.402h5.607v1.602H7.607a.801.801 0 0 0 0 1.602h6.407a.801.801 0 1 0 0-1.602h-2.402v-1.602h1.696v-1.602H4.403a.8.8 0 0 1-.801-.8v-8.01Z", 55401 fill: "currentColor" 55402 }, null, -1)), 55403 _cache[1] || (_cache[1] = createBaseVNode("path", { 55404 "fill-rule": "evenodd", 55405 "clip-rule": "evenodd", 55406 d: "M16.56 10.398a.397.397 0 0 0-.087.26v8.188c0 .117.042.207.087.26.045.05.08.056.097.056h4.453c.016 0 .052-.005.096-.056a.397.397 0 0 0 .087-.26v-8.188a.397.397 0 0 0-.087-.26c-.044-.05-.08-.057-.096-.057h-4.453c-.016 0-.052.006-.097.057Zm-1.5.26c0-.86.626-1.73 1.597-1.73h4.453c.97 0 1.597.87 1.597 1.73v8.188c0 .86-.626 1.73-1.598 1.73h-4.452c-.971 0-1.597-.87-1.597-1.73v-8.188Z", 55407 fill: "currentColor" 55408 }, null, -1)), 55409 _cache[2] || (_cache[2] = createBaseVNode("path", { 55410 "fill-rule": "evenodd", 55411 "clip-rule": "evenodd", 55412 d: "M18.447 18.28c0-.283.23-.514.515-.514h.006a.515.515 0 0 1 0 1.03h-.006a.515.515 0 0 1-.515-.515Z", 55413 fill: "currentColor" 55414 }, null, -1)) 55415 ], 8, _hoisted_1$1c); 55416} 55417const CoreIconMonitor = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$14]]); 55418const CoreIconMonitor$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55419 __proto__: null, 55420 default: CoreIconMonitor 55421}, Symbol.toStringTag, { value: "Module" })); 55422const _sfc_main$1b = { 55423 props: { 55424 settings: { 55425 type: Object, 55426 required: false 55427 } 55428 }, 55429 computed: { 55430 alt() { 55431 var _a, _b; 55432 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 55433 }, 55434 id() { 55435 var _a, _b; 55436 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 55437 } 55438 } 55439}; 55440const _hoisted_1$1b = ["aria-labelledby", "aria-label"]; 55441const _hoisted_2$13 = ["id"]; 55442function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) { 55443 return openBlock(), createElementBlock("svg", { 55444 width: "24", 55445 height: "24", 55446 viewBox: "0 0 24 24", 55447 fill: "none", 55448 xmlns: "http://www.w3.org/2000/svg", 55449 role: "img", 55450 "aria-labelledby": `icon-title-${$options.id}`, 55451 "aria-label": $options.alt 55452 }, [ 55453 createBaseVNode("title", { 55454 id: `icon-title-${$options.id}` 55455 }, toDisplayString($options.alt), 9, _hoisted_2$13), 55456 _cache[0] || (_cache[0] = createBaseVNode("path", { 55457 "fill-rule": "evenodd", 55458 "clip-rule": "evenodd", 55459 d: "M3 4.18C3 3.5283 3.5283 3 4.18 3H6V6H3V4.18ZM3 8H6V11H3V8ZM1 4.18V7V12V17V19.82C1 21.5763 2.42373 23 4.18 23H7H17H19.82C21.5763 23 23 21.5763 23 19.82V17V12V7V4.18C23 2.42373 21.5763 1 19.82 1H17H7H4.18C2.42373 1 1 2.42373 1 4.18ZM21 6V4.18C21 3.5283 20.4717 3 19.82 3H18V6H21ZM18 8H21V11H18V8ZM16 7V3H8V7V11H16V7ZM21 13V16H18V13H21ZM21 18H18V21H19.82C20.4717 21 21 20.4717 21 19.82V18ZM16 13V17V21H8V17V13H16ZM3 18V19.82C3 20.4717 3.5283 21 4.18 21H6V18H3ZM6 16H3V13H6V16Z", 55460 fill: "currentColor" 55461 }, null, -1)) 55462 ], 8, _hoisted_1$1b); 55463} 55464const CoreIconMovieStrip = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$13]]); 55465const CoreIconMovieStrip$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55466 __proto__: null, 55467 default: CoreIconMovieStrip 55468}, Symbol.toStringTag, { value: "Module" })); 55469const _sfc_main$1a = { 55470 props: { 55471 settings: { 55472 type: Object, 55473 required: false 55474 } 55475 }, 55476 computed: { 55477 alt() { 55478 var _a, _b; 55479 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 55480 }, 55481 id() { 55482 var _a, _b; 55483 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 55484 } 55485 } 55486}; 55487const _hoisted_1$1a = ["aria-labelledby", "aria-label"]; 55488const _hoisted_2$12 = ["id"]; 55489function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) { 55490 return openBlock(), createElementBlock("svg", { 55491 width: "24", 55492 height: "24",
55493 viewBox: "0 0 24 24", 55494 fill: "none", 55495 xmlns: "http://www.w3.org/2000/svg", 55496 role: "img", 55497 "aria-labelledby": `icon-title-${$options.id}`, 55498 "aria-label": $options.alt 55499 }, [ 55500 createBaseVNode("title", { 55501 id: `icon-title-${$options.id}` 55502 }, toDisplayString($options.alt), 9, _hoisted_2$12), 55503 _cache[0] || (_cache[0] = createBaseVNode("path", { 55504 d: "M2 3V18C2 19.645 3.35503 21 5 21H19C20.645 21 22 19.645 22 18V7H20V18C20 18.565 19.565 19 19 19C18.435 19 18 18.565 18 18V3H2ZM4 5H16V18C16 18.3883 16.279 18.658 16.416 19H5C4.43497 19 4 18.565 4 18V5ZM6 7V10H14V7H6ZM6 12V14H14V12H6ZM6 16V18H14V16H6Z", 55505 fill: "currentColor" 55506 }, null, -1)) 55507 ], 8, _hoisted_1$1a); 55508} 55509const CoreIconNews = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$12]]); 55510const CoreIconNews$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55511 __proto__: null, 55512 default: CoreIconNews 55513}, Symbol.toStringTag, { value: "Module" })); 55514const _sfc_main$19 = { 55515 props: { 55516 settings: { 55517 type: Object, 55518 required: false 55519 } 55520 }, 55521 computed: { 55522 alt() { 55523 var _a, _b; 55524 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 55525 }, 55526 id() { 55527 var _a, _b; 55528 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 55529 } 55530 } 55531}; 55532const _hoisted_1$19 = ["aria-labelledby", "aria-label"]; 55533const _hoisted_2$11 = ["id"]; 55534function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) { 55535 return openBlock(), createElementBlock("svg", { 55536 xmlns: "http://www.w3.org/2000/svg", 55537 width: "24", 55538 height: "25", 55539 viewBox: "0 0 24 25", 55540 fill: "none", 55541 role: "img", 55542 "aria-labelledby": `icon-title-${$options.id}`, 55543 "aria-label": $options.alt 55544 }, [ 55545 createBaseVNode("title", { 55546 id: `icon-title-${$options.id}` 55547 }, toDisplayString($options.alt), 9, _hoisted_2$11), 55548 _cache[0] || (_cache[0] = createBaseVNode("path", { 55549 d: "M21 11.1877L3 11.1777V13.1777H21V11.1877ZM3 16.1777H15V18.1777H3V16.1777ZM21 6.17773H3V8.18773L21 8.17773V6.17773Z", 55550 fill: "currentColor" 55551 }, null, -1)) 55552 ], 8, _hoisted_1$19); 55553} 55554const CoreIconNotes = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$11]]); 55555const CoreIconNotes$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55556 __proto__: null, 55557 default: CoreIconNotes 55558}, Symbol.toStringTag, { value: "Module" })); 55559const _sfc_main$18 = { 55560 props: { 55561 settings: { 55562 type: Object, 55563 required: false 55564 } 55565 }, 55566 computed: { 55567 alt() { 55568 var _a, _b; 55569 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 55570 }, 55571 id() { 55572 var _a, _b; 55573 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 55574 } 55575 } 55576}; 55577const _hoisted_1$18 = ["aria-labelledby", "aria-label"]; 55578const _hoisted_2$10 = ["id"]; 55579function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) { 55580 return openBlock(), createElementBlock("svg", { 55581 width: "24", 55582 height: "24", 55583 viewBox: "0 0 24 24", 55584 fill: "none", 55585 xmlns: "http://www.w3.org/2000/svg", 55586 role: "img", 55587 "aria-labelledby": `icon-title-${$options.id}`, 55588 "aria-label": $options.alt 55589 }, [ 55590 createBaseVNode("title", { 55591 id: `icon-title-${$options.id}` 55592 }, toDisplayString($options.alt), 9, _hoisted_2$10), 55593 _cache[0] || (_cache[0] = createBaseVNode("path", { 55594 d: "M12 21.75C13.1 21.75 14 20.85 14 19.75H10C10 20.85 10.9 21.75 12 21.75ZM18 15.75V10.75C18 7.68 16.37 5.11 13.5 4.43V3.75C13.5 2.92 12.83 2.25 12 2.25C11.17 2.25 10.5 2.92 10.5 3.75V4.43C7.64 5.11 6 7.67 6 10.75V15.75L4 17.75V18.75H20V17.75L18 15.75ZM16 16.75H8V10.75C8 8.27 9.51 6.25 12 6.25C14.49 6.25 16 8.27 16 10.75V16.75Z", 55595 fill: "currentColor" 55596 }, null, -1)), 55597 _cache[1] || (_cache[1] = createBaseVNode("circle", { 55598 cx: "17", 55599 cy: "7", 55600 r: "3", 55601 fill: "#DE0D0D" 55602 }, null, -1)) 55603 ], 8, _hoisted_1$18); 55604} 55605const CoreIconNotificationAlert = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render$10]]); 55606const CoreIconNotificationAlert$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55607 __proto__: null, 55608 default: CoreIconNotificationAlert 55609}, Symbol.toStringTag, { value: "Module" })); 55610const _sfc_main$17 = { 55611 props: { 55612 settings: { 55613 type: Object, 55614 required: false 55615 } 55616 }, 55617 computed: { 55618 alt() { 55619 var _a, _b; 55620 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 55621 }, 55622 id() { 55623 var _a, _b; 55624 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 55625 } 55626 } 55627}; 55628const _hoisted_1$17 = ["aria-labelledby", "aria-label"];
55629const _hoisted_2$$ = ["id"]; 55630function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) { 55631 return openBlock(), createElementBlock("svg", { 55632 width: "24", 55633 height: "24", 55634 viewBox: "0 0 24 24", 55635 fill: "none", 55636 xmlns: "http://www.w3.org/2000/svg", 55637 role: "img", 55638 "aria-labelledby": `icon-title-${$options.id}`, 55639 "aria-label": $options.alt 55640 }, [ 55641 createBaseVNode("title", { 55642 id: `icon-title-${$options.id}` 55643 }, toDisplayString($options.alt), 9, _hoisted_2$$), 55644 _cache[0] || (_cache[0] = createBaseVNode("path", { 55645 d: "M12 21.75C13.1 21.75 14 20.85 14 19.75H10C10 20.85 10.9 21.75 12 21.75ZM18 15.75V10.75C18 7.68 16.37 5.11 13.5 4.43V3.75C13.5 2.92 12.83 2.25 12 2.25C11.17 2.25 10.5 2.92 10.5 3.75V4.43C7.64 5.11 6 7.67 6 10.75V15.75L4 17.75V18.75H20V17.75L18 15.75ZM16 16.75H8V10.75C8 8.27 9.51 6.25 12 6.25C14.49 6.25 16 8.27 16 10.75V16.75Z", 55646 fill: "currentColor" 55647 }, null, -1)) 55648 ], 8, _hoisted_1$17); 55649} 55650const CoreIconNotifications = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$$]]); 55651const CoreIconNotifications$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55652 __proto__: null, 55653 default: CoreIconNotifications 55654}, Symbol.toStringTag, { value: "Module" })); 55655const _sfc_main$16 = { 55656 props: { 55657 settings: { 55658 type: Object, 55659 required: false 55660 } 55661 }, 55662 computed: { 55663 alt() { 55664 var _a, _b; 55665 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 55666 }, 55667 id() { 55668 var _a, _b; 55669 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 55670 } 55671 } 55672}; 55673const _hoisted_1$16 = ["aria-labelledby", "aria-label"]; 55674const _hoisted_2$_ = ["id"]; 55675function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) { 55676 return openBlock(), createElementBlock("svg", { 55677 id: "Layer_1", 55678 version: "1.1", 55679 xmlns: "http://www.w3.org/2000/svg", 55680 "xmlns:xlink": "http://www.w3.org/1999/xlink", 55681 x: "0px", 55682 y: "0px", 55683 height: "30", 55684 width: "45", 55685 viewBox: "0 0 30 14", 55686 style: { "enable-background": "new 0 0 30 14" }, 55687 "xml:space": "preserve", 55688 role: "img", 55689 "aria-labelledby": `icon-title-${$options.id}`, 55690 "aria-label": $options.alt 55691 }, [ 55692 createBaseVNode("title", { 55693 id: `icon-title-${$options.id}` 55694 }, toDisplayString($options.alt), 9, _hoisted_2$_), 55695 _cache[0] || (_cache[0] = createStaticVNode('<g data-v-600b03c5><g id="final---dec.11-2020_1_" data-v-600b03c5><g id="_x30_208-our-toggle_2_" transform="translate(-1275.000000, -200.000000)" data-v-600b03c5><g id="Final-Copy-2_2_" transform="translate(1275.000000, 200.000000)" data-v-600b03c5><path class="st0" d="M7.4,12.8h6.8l3.1-11.6H7.4C4.2,1.2,1.6,3.8,1.6,7S4.2,12.8,7.4,12.8z" data-v-600b03c5></path></g></g></g><g id="final---dec.11-2020" data-v-600b03c5><g id="_x30_208-our-toggle" transform="translate(-1275.000000, -200.000000)" data-v-600b03c5><g id="Final-Copy-2" transform="translate(1275.000000, 200.000000)" data-v-600b03c5><path class="st1" d="M22.6,0H7.4c-3.9,0-7,3.1-7,7s3.1,7,7,7h15.2c3.9,0,7-3.1,7-7S26.4,0,22.6,0z M1.6,7c0-3.2,2.6-5.8,5.8-5.8\n h9.9l-3.1,11.6H7.4C4.2,12.8,1.6,10.2,1.6,7z" data-v-600b03c5></path><path id="x" class="st2" d="M24.6,4c0.2,0.2,0.2,0.6,0,0.8l0,0L22.5,7l2.2,2.2c0.2,0.2,0.2,0.6,0,0.8c-0.2,0.2-0.6,0.2-0.8,0\n l0,0l-2.2-2.2L19.5,10c-0.2,0.2-0.6,0.2-0.8,0c-0.2-0.2-0.2-0.6,0-0.8l0,0L20.8,7l-2.2-2.2c-0.2-0.2-0.2-0.6,0-0.8\n c0.2-0.2,0.6-0.2,0.8,0l0,0l2.2,2.2L23.8,4C24,3.8,24.4,3.8,24.6,4z" data-v-600b03c5></path><path id="y" class="st3" d="M12.7,4.1c0.2,0.2,0.3,0.6,0.1,0.8l0,0L8.6,9.8C8.5,9.9,8.4,10,8.3,10c-0.2,0.1-0.5,0.1-0.7-0.1l0,0\n L5.4,7.7c-0.2-0.2-0.2-0.6,0-0.8c0.2-0.2,0.6-0.2,0.8,0l0,0L8,8.6l3.8-4.5C12,3.9,12.4,3.9,12.7,4.1z" data-v-600b03c5></path></g></g></g></g>', 1)) 55696 ], 8, _hoisted_1$16); 55697} 55698const CoreIconOneTrust = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$_], ["__scopeId", "data-v-600b03c5"]]); 55699const CoreIconOneTrust$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55700 __proto__: null, 55701 default: CoreIconOneTrust 55702}, Symbol.toStringTag, { value: "Module" })); 55703const _sfc_main$15 = { 55704 props: { 55705 settings: { 55706 type: Object, 55707 required: false 55708 } 55709 }, 55710 computed: { 55711 alt() { 55712 var _a, _b; 55713 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 55714 }, 55715 id() { 55716 var _a, _b; 55717 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 55718 } 55719 } 55720}; 55721const _hoisted_1$15 = ["aria-labelledby", "aria-label"]; 55722const _hoisted_2$Z = ["id"]; 55723function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) { 55724 return openBlock(), createElementBlock("svg", { 55725 width: "24", 55726 height: "24",
55727 viewBox: "0 0 24 24", 55728 fill: "none", 55729 xmlns: "http://www.w3.org/2000/svg", 55730 role: "img", 55731 "aria-labelledby": `icon-title-${$options.id}`, 55732 "aria-label": $options.alt 55733 }, [ 55734 createBaseVNode("title", { 55735 id: `icon-title-${$options.id}` 55736 }, toDisplayString($options.alt), 9, _hoisted_2$Z), 55737 _cache[0] || (_cache[0] = createBaseVNode("path", { 55738 d: "M21 11V3H13L16.29 6.29L6.29 16.29L3 13V21H11L7.71 17.71L17.71 7.71L21 11Z", 55739 fill: "currentColor" 55740 }, null, -1)) 55741 ], 8, _hoisted_1$15); 55742} 55743const CoreIconOpenInFull = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$Z]]); 55744const CoreIconOpenInFull$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55745 __proto__: null, 55746 default: CoreIconOpenInFull 55747}, Symbol.toStringTag, { value: "Module" })); 55748const _hoisted_1$14 = ["aria-labelledby", "aria-label"]; 55749const _hoisted_2$Y = ["id"]; 55750const _sfc_main$14 = { 55751 __name: "CoreIconPaddingAll", 55752 props: { 55753 settings: { 55754 type: Object, 55755 required: false 55756 } 55757 }, 55758 setup(__props) { 55759 const props = __props; 55760 const alt = computed(() => { 55761 var _a, _b; 55762 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Padding All"; 55763 }); 55764 const id = computed(() => { 55765 var _a, _b; 55766 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 55767 }); 55768 return (_ctx, _cache) => { 55769 return openBlock(), createElementBlock("svg", { 55770 xmlns: "http://www.w3.org/2000/svg", 55771 width: "18", 55772 height: "18",
55773 viewBox: "0 0 18 18", 55774 fill: "none", 55775 "aria-labelledby": `icon-title-${unref(id)}`, 55776 "aria-label": unref(alt) 55777 }, [ 55778 createBaseVNode("title", { 55779 id: `icon-title-${unref(id)}` 55780 }, toDisplayString(unref(alt)), 9, _hoisted_2$Y), 55781 _cache[0] || (_cache[0] = createStaticVNode('<path d="M2.91217 15.75L14.9894 15.75V14.25L2.91217 14.25L2.91217 15.75ZM2.456 3.75L15.3886 3.75V2.25L2.456 2.25L2.456 3.75ZM2.25 15.75H3.75L3.75 2.25L2.25 2.25L2.25 15.75Z" fill="black"></path><path d="M3.75 15.75H2.25L2.25 2.25L3.75 2.25L3.75 15.75Z" fill="black"></path><path d="M3.75 15.75H2.25L2.25 2.25L3.75 2.25L3.75 15.75Z" fill="black"></path><path d="M15.75 15.75H14.25L14.2492 2.25L15.7492 2.25L15.75 15.75Z" fill="black"></path><path d="M15.75 15.75H14.25L14.2492 2.25L15.7492 2.25L15.75 15.75Z" fill="black"></path>', 5)) 55782 ], 8, _hoisted_1$14); 55783 }; 55784 } 55785}; 55786const CoreIconPaddingAll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55787 __proto__: null, 55788 default: _sfc_main$14 55789}, Symbol.toStringTag, { value: "Module" })); 55790const _hoisted_1$13 = ["aria-labelledby", "aria-label"]; 55791const _hoisted_2$X = ["id"]; 55792const _sfc_main$13 = { 55793 __name: "CoreIconPaddingBottom", 55794 props: { 55795 settings: { 55796 type: Object, 55797 required: false 55798 } 55799 }, 55800 setup(__props) { 55801 const props = __props; 55802 const alt = computed(() => { 55803 var _a, _b; 55804 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Padding Bottom"; 55805 }); 55806 const id = computed(() => { 55807 var _a, _b; 55808 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 55809 }); 55810 return (_ctx, _cache) => { 55811 return openBlock(), createElementBlock("svg", { 55812 xmlns: "http://www.w3.org/2000/svg", 55813 width: "18", 55814 height: "18",
55815 viewBox: "0 0 18 18", 55816 fill: "none", 55817 "aria-labelledby": `icon-title-${unref(id)}`, 55818 "aria-label": unref(alt) 55819 }, [ 55820 createBaseVNode("title", { 55821 id: `icon-title-${unref(id)}` 55822 }, toDisplayString(unref(alt)), 9, _hoisted_2$X), 55823 _cache[0] || (_cache[0] = createBaseVNode("path", { 55824 d: "M15.75 9.75L15.75 8.25L14.25 8.25L14.25 9.75L15.75 9.75ZM3.75 9.75L3.75 8.25L2.25 8.25L2.25 9.75L3.75 9.75ZM15.75 12.75L15.75 11.25L14.25 11.25L14.25 12.75L15.75 12.75ZM3.75 12.75L3.75 11.25L2.25 11.25L2.25 12.75L3.75 12.75ZM15.75 15.75L15.75 14.25L2.25 14.25L2.25 15.75L15.75 15.75ZM6.75 3.75L6.75 2.25L5.25 2.25L5.25 3.75L6.75 3.75ZM15.75 6.75L15.75 5.25L14.25 5.25L14.25 6.75L15.75 6.75ZM12.75 3.75L12.75 2.25L11.25 2.25L11.25 3.75L12.75 3.75ZM2.25 3.75L3.75 3.75L3.75 2.25L2.25 2.25L2.25 3.75ZM9.75 3.75L9.75 2.25L8.25 2.25L8.25 3.75L9.75 3.75ZM15.75 3.75L15.75 2.25L14.25 2.25L14.25 3.75L15.75 3.75ZM3.75 6.75L3.75 5.25L2.25 5.25L2.25 6.75L3.75 6.75Z", 55825 fill: "black" 55826 }, null, -1)) 55827 ], 8, _hoisted_1$13); 55828 }; 55829 } 55830}; 55831const CoreIconPaddingBottom = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55832 __proto__: null, 55833 default: _sfc_main$13 55834}, Symbol.toStringTag, { value: "Module" })); 55835const _hoisted_1$12 = ["aria-labelledby", "aria-label"]; 55836const _hoisted_2$W = ["id"]; 55837const _sfc_main$12 = { 55838 __name: "CoreIconPaddingHorizontal", 55839 props: { 55840 settings: { 55841 type: Object, 55842 required: false 55843 } 55844 }, 55845 setup(__props) { 55846 const props = __props; 55847 const alt = computed(() => { 55848 var _a, _b; 55849 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Padding Horizontal"; 55850 }); 55851 const id = computed(() => { 55852 var _a, _b; 55853 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 55854 }); 55855 return (_ctx, _cache) => { 55856 return openBlock(), createElementBlock("svg", { 55857 xmlns: "http://www.w3.org/2000/svg", 55858 width: "18", 55859 height: "18",
55860 viewBox: "0 0 18 18", 55861 fill: "none", 55862 "aria-labelledby": `icon-title-${unref(id)}`, 55863 "aria-label": unref(alt) 55864 }, [ 55865 createBaseVNode("title", { 55866 id: `icon-title-${unref(id)}` 55867 }, toDisplayString(unref(alt)), 9, _hoisted_2$W), 55868 _cache[0] || (_cache[0] = createStaticVNode('<path d="M8.25 15.75H9.75V14.25H8.25V15.75ZM8.25 3.75H9.75V2.25L8.25 2.25V3.75ZM5.25 15.75H6.75V14.25H5.25V15.75ZM5.25 3.75L6.75 3.75V2.25L5.25 2.25V3.75ZM2.25 15.75H3.75L3.75 2.25L2.25 2.25L2.25 15.75ZM11.25 15.75H12.75V14.25H11.25V15.75ZM11.25 3.75H12.75V2.25L11.25 2.25V3.75Z" fill="black"></path><path d="M3.75 15.75H2.25L2.25 2.25L3.75 2.25L3.75 15.75Z" fill="black"></path><path d="M3.75 15.75H2.25L2.25 2.25L3.75 2.25L3.75 15.75Z" fill="black"></path><path d="M15.75 15.75H14.25L14.2492 2.25L15.7492 2.25L15.75 15.75Z" fill="black"></path><path d="M15.75 15.75H14.25L14.2492 2.25L15.7492 2.25L15.75 15.75Z" fill="black"></path>', 5)) 55869 ], 8, _hoisted_1$12); 55870 }; 55871 } 55872}; 55873const CoreIconPaddingHorizontal = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55874 __proto__: null, 55875 default: _sfc_main$12 55876}, Symbol.toStringTag, { value: "Module" })); 55877const _hoisted_1$11 = ["aria-labelledby", "aria-label"]; 55878const _hoisted_2$V = ["id"]; 55879const _sfc_main$11 = { 55880 __name: "CoreIconPaddingLeft", 55881 props: { 55882 settings: { 55883 type: Object, 55884 required: false 55885 } 55886 }, 55887 setup(__props) { 55888 const props = __props; 55889 const alt = computed(() => { 55890 var _a, _b; 55891 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Padding Left"; 55892 }); 55893 const id = computed(() => { 55894 var _a, _b; 55895 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 55896 }); 55897 return (_ctx, _cache) => { 55898 return openBlock(), createElementBlock("svg", { 55899 xmlns: "http://www.w3.org/2000/svg", 55900 width: "18", 55901 height: "18",
55902 viewBox: "0 0 18 18", 55903 fill: "none", 55904 "aria-labelledby": `icon-title-${unref(id)}`, 55905 "aria-label": unref(alt) 55906 }, [ 55907 createBaseVNode("title", { 55908 id: `icon-title-${unref(id)}` 55909 }, toDisplayString(unref(alt)), 9, _hoisted_2$V), 55910 _cache[0] || (_cache[0] = createBaseVNode("path", { 55911 d: "M8.25 15.75H9.75V14.25H8.25V15.75ZM8.25 3.75H9.75V2.25L8.25 2.25V3.75ZM5.25 15.75H6.75V14.25H5.25V15.75ZM5.25 3.75L6.75 3.75V2.25L5.25 2.25V3.75ZM2.25 15.75H3.75L3.75 2.25L2.25 2.25L2.25 15.75ZM14.25 6.75H15.75V5.25H14.25V6.75ZM11.25 15.75H12.75V14.25H11.25V15.75ZM14.25 12.75H15.75V11.25H14.25V12.75ZM14.25 2.25V3.75L15.75 3.75V2.25L14.25 2.25ZM14.25 9.75H15.75V8.25H14.25V9.75ZM14.25 15.75H15.75V14.25H14.25V15.75ZM11.25 3.75H12.75V2.25L11.25 2.25V3.75Z", 55912 fill: "black" 55913 }, null, -1)) 55914 ], 8, _hoisted_1$11); 55915 }; 55916 } 55917}; 55918const CoreIconPaddingLeft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55919 __proto__: null, 55920 default: _sfc_main$11 55921}, Symbol.toStringTag, { value: "Module" })); 55922const _hoisted_1$10 = ["aria-labelledby", "aria-label"]; 55923const _hoisted_2$U = ["id"]; 55924const _sfc_main$10 = { 55925 __name: "CoreIconPaddingRight", 55926 props: { 55927 settings: { 55928 type: Object, 55929 required: false 55930 } 55931 }, 55932 setup(__props) { 55933 const props = __props; 55934 const alt = computed(() => { 55935 var _a, _b; 55936 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Padding Right"; 55937 }); 55938 const id = computed(() => { 55939 var _a, _b; 55940 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 55941 }); 55942 return (_ctx, _cache) => { 55943 return openBlock(), createElementBlock("svg", { 55944 xmlns: "http://www.w3.org/2000/svg", 55945 width: "18", 55946 height: "18",
55947 viewBox: "0 0 18 18", 55948 fill: "none", 55949 "aria-labelledby": `icon-title-${unref(id)}`, 55950 "aria-label": unref(alt) 55951 }, [ 55952 createBaseVNode("title", { 55953 id: `icon-title-${unref(id)}` 55954 }, toDisplayString(unref(alt)), 9, _hoisted_2$U), 55955 _cache[0] || (_cache[0] = createBaseVNode("path", { 55956 d: "M9.75 2.25L8.25 2.25L8.25 3.75L9.75 3.75L9.75 2.25ZM9.75 14.25L8.25 14.25L8.25 15.75L9.75 15.75L9.75 14.25ZM12.75 2.25L11.25 2.25L11.25 3.75L12.75 3.75L12.75 2.25ZM12.75 14.25L11.25 14.25L11.25 15.75L12.75 15.75L12.75 14.25ZM15.75 2.25L14.25 2.25L14.25 15.75L15.75 15.75L15.75 2.25ZM3.75 11.25L2.25 11.25L2.25 12.75L3.75 12.75L3.75 11.25ZM6.75 2.25L5.25 2.25L5.25 3.75L6.75 3.75L6.75 2.25ZM3.75 5.25L2.25 5.25L2.25 6.75L3.75 6.75L3.75 5.25ZM3.75 15.75L3.75 14.25L2.25 14.25L2.25 15.75L3.75 15.75ZM3.75 8.25L2.25 8.25L2.25 9.75L3.75 9.75L3.75 8.25ZM3.75 2.25L2.25 2.25L2.25 3.75L3.75 3.75L3.75 2.25ZM6.75 14.25L5.25 14.25L5.25 15.75L6.75 15.75L6.75 14.25Z", 55957 fill: "black" 55958 }, null, -1)) 55959 ], 8, _hoisted_1$10); 55960 }; 55961 } 55962}; 55963const CoreIconPaddingRight = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 55964 __proto__: null, 55965 default: _sfc_main$10 55966}, Symbol.toStringTag, { value: "Module" })); 55967const _hoisted_1$$ = ["aria-labelledby", "aria-label"]; 55968const _hoisted_2$T = ["id"]; 55969const _sfc_main$$ = { 55970 __name: "CoreIconPaddingTop", 55971 props: { 55972 settings: { 55973 type: Object, 55974 required: false 55975 } 55976 }, 55977 setup(__props) { 55978 const props = __props; 55979 const alt = computed(() => { 55980 var _a, _b; 55981 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "Padding Top"; 55982 }); 55983 const id = computed(() => { 55984 var _a, _b; 55985 return ((_a = props.settings) == null ? void 0 : _a.id) || ((_b = props.settings) == null ? void 0 : _b.icon); 55986 }); 55987 return (_ctx, _cache) => { 55988 return openBlock(), createElementBlock("svg", { 55989 xmlns: "http://www.w3.org/2000/svg", 55990 width: "18", 55991 height: "18",
55992 viewBox: "0 0 18 18", 55993 fill: "none", 55994 "aria-labelledby": `icon-title-${unref(id)}`, 55995 "aria-label": unref(alt) 55996 }, [ 55997 createBaseVNode("title", { 55998 id: `icon-title-${unref(id)}` 55999 }, toDisplayString(unref(alt)), 9, _hoisted_2$T), 56000 _cache[0] || (_cache[0] = createBaseVNode("path", { 56001 d: "M2.25 8.25L2.25 9.75L3.75 9.75L3.75 8.25L2.25 8.25ZM14.25 8.25L14.25 9.75L15.75 9.75L15.75 8.25L14.25 8.25ZM2.25 5.25L2.25 6.75L3.75 6.75L3.75 5.25L2.25 5.25ZM14.25 5.25L14.25 6.75L15.75 6.75L15.75 5.25L14.25 5.25ZM2.25 2.25L2.25 3.75L15.75 3.75L15.75 2.25L2.25 2.25ZM11.25 14.25L11.25 15.75L12.75 15.75L12.75 14.25L11.25 14.25ZM2.25 11.25L2.25 12.75L3.75 12.75L3.75 11.25L2.25 11.25ZM5.25 14.25L5.25 15.75L6.75 15.75L6.75 14.25L5.25 14.25ZM15.75 14.25L14.25 14.25L14.25 15.75L15.75 15.75L15.75 14.25ZM8.25 14.25L8.25 15.75L9.75 15.75L9.75 14.25L8.25 14.25ZM2.25 14.25L2.25 15.75L3.75 15.75L3.75 14.25L2.25 14.25ZM14.25 11.25L14.25 12.75L15.75 12.75L15.75 11.25L14.25 11.25Z", 56002 fill: "black" 56003 }, null, -1)) 56004 ], 8, _hoisted_1$$); 56005 }; 56006 } 56007}; 56008const CoreIconPaddingTop = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56009 __proto__: null, 56010 default: _sfc_main$$ 56011}, Symbol.toStringTag, { value: "Module" })); 56012const _sfc_main$_ = { 56013 props: { 56014 settings: { 56015 type: Object, 56016 required: false 56017 } 56018 }, 56019 computed: { 56020 alt() { 56021 var _a, _b; 56022 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56023 }, 56024 id() { 56025 var _a, _b; 56026 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56027 } 56028 } 56029}; 56030const _hoisted_1$_ = ["aria-labelledby", "aria-label"]; 56031const _hoisted_2$S = ["id"]; 56032function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) { 56033 return openBlock(), createElementBlock("svg", { 56034 width: "24", 56035 height: "24", 56036 viewBox: "0 0 27 27", 56037 fill: "none", 56038 xmlns: "http://www.w3.org/2000/svg", 56039 stroke: "currentColor", 56040 "aria-labelledby": `icon-title-${$options.id}`, 56041 "aria-label": $options.alt 56042 }, [ 56043 createBaseVNode("title", { 56044 id: `icon-title-${$options.id}` 56045 }, toDisplayString($options.alt), 9, _hoisted_2$S), 56046 _cache[0] || (_cache[0] = createBaseVNode("path", { 56047 d: "M14.3004 2.19922H6.60039C6.01691 2.19922 5.45734 2.431 5.04476 2.84358C4.63218 3.25616 4.40039 3.81574 4.40039 4.39922V21.9992C4.40039 22.5827 4.63218 23.1423 5.04476 23.5549C5.45734 23.9674 6.01691 24.1992 6.60039 24.1992H19.8004C20.3839 24.1992 20.9434 23.9674 21.356 23.5549C21.7686 23.1423 22.0004 22.5827 22.0004 21.9992V9.89922L14.3004 2.19922Z", 56048 "stroke-width": "1.83", 56049 "stroke-linecap": "round", 56050 "stroke-linejoin": "round" 56051 }, null, -1)), 56052 _cache[1] || (_cache[1] = createBaseVNode("path", { 56053 d: "M14.2998 2.19922V9.89922H21.9998", 56054 "stroke-width": "1.83", 56055 "stroke-linecap": "round", 56056 "stroke-linejoin": "round" 56057 }, null, -1)) 56058 ], 8, _hoisted_1$_); 56059} 56060const CoreIconPage = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$Y]]); 56061const CoreIconPage$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56062 __proto__: null, 56063 default: CoreIconPage 56064}, Symbol.toStringTag, { value: "Module" })); 56065const _sfc_main$Z = { 56066 props: { 56067 settings: { 56068 type: Object, 56069 required: false 56070 } 56071 }, 56072 computed: { 56073 alt() { 56074 var _a, _b; 56075 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56076 }, 56077 id() { 56078 var _a, _b; 56079 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56080 } 56081 } 56082}; 56083const _hoisted_1$Z = ["aria-labelledby", "aria-label"]; 56084const _hoisted_2$R = ["id"]; 56085function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) { 56086 return openBlock(), createElementBlock("svg", { 56087 width: "24", 56088 height: "24", 56089 viewBox: "0 0 24 24", 56090 fill: "none", 56091 xmlns: "http://www.w3.org/2000/svg", 56092 role: "img", 56093 "aria-labelledby": `icon-title-${$options.id}`, 56094 "aria-label": $options.alt 56095 }, [ 56096 createBaseVNode("title", { 56097 id: `icon-title-${$options.id}` 56098 }, toDisplayString($options.alt), 9, _hoisted_2$R), 56099 _cache[0] || (_cache[0] = createBaseVNode("path", { 56100 d: "M16.5 1H4.5C3.4 1 2.5 1.9 2.5 3V17H4.5V3H16.5V1ZM15.5 5H8.5C7.4 5 6.51 5.9 6.51 7L6.5 21C6.5 22.1 7.39 23 8.49 23H19.5C20.6 23 21.5 22.1 21.5 21V11L15.5 5ZM8.5 21V7H14.5V12H19.5V21H8.5Z", 56101 fill: "currentColor" 56102 }, null, -1)) 56103 ], 8, _hoisted_1$Z); 56104} 56105const CoreIconPages = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$X]]); 56106const CoreIconPages$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56107 __proto__: null, 56108 default: CoreIconPages 56109}, Symbol.toStringTag, { value: "Module" })); 56110const _sfc_main$Y = { 56111 props: { 56112 settings: { 56113 type: Object, 56114 required: false 56115 } 56116 }, 56117 computed: { 56118 alt() { 56119 var _a, _b; 56120 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56121 }, 56122 id() { 56123 var _a, _b; 56124 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56125 } 56126 } 56127}; 56128const _hoisted_1$Y = ["aria-labelledby", "aria-label"]; 56129const _hoisted_2$Q = ["id"]; 56130function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) { 56131 return openBlock(), createElementBlock("svg", { 56132 role: "img", 56133 width: "20", 56134 height: "20",
56135 viewBox: "0 0 20 20", 56136 fill: "none", 56137 xmlns: "http://www.w3.org/2000/svg", 56138 "aria-labelledby": `icon-title-${$options.id}`, 56139 "aria-label": $options.alt 56140 }, [ 56141 createBaseVNode("title", { 56142 id: `icon-title-${$options.id}` 56143 }, toDisplayString($options.alt), 9, _hoisted_2$Q), 56144 _cache[0] || (_cache[0] = createStaticVNode('<path d="M10 20C4.49 20 0 15.51 0 10C0 4.49 4.49 0 10 0C15.51 0 20 4.04 20 9C20 12.31 17.31 15 14 15H12.23C11.95 15 11.73 15.22 11.73 15.5C11.73 15.62 11.78 15.73 11.86 15.83C12.27 16.3 12.5 16.89 12.5 17.5C12.5 18.88 11.38 20 10 20ZM10 2C5.59 2 2 5.59 2 10C2 14.41 5.59 18 10 18C10.28 18 10.5 17.78 10.5 17.5C10.5 17.34 10.42 17.22 10.36 17.15C9.95 16.69 9.73 16.1 9.73 15.5C9.73 14.12 10.85 13 12.23 13H14C16.21 13 18 11.21 18 9C18 5.14 14.41 2 10 2Z" fill="currentColor"></path><path d="M4.5 11C5.32843 11 6 10.3284 6 9.5C6 8.67157 5.32843 8 4.5 8C3.67157 8 3 8.67157 3 9.5C3 10.3284 3.67157 11 4.5 11Z" fill="currentColor"></path><path d="M7.5 7C8.32843 7 9 6.32843 9 5.5C9 4.67157 8.32843 4 7.5 4C6.67157 4 6 4.67157 6 5.5C6 6.32843 6.67157 7 7.5 7Z" fill="currentColor"></path><path d="M12.5 7C13.3284 7 14 6.32843 14 5.5C14 4.67157 13.3284 4 12.5 4C11.6716 4 11 4.67157 11 5.5C11 6.32843 11.6716 7 12.5 7Z" fill="currentColor"></path><path d="M15.5 11C16.3284 11 17 10.3284 17 9.5C17 8.67157 16.3284 8 15.5 8C14.6716 8 14 8.67157 14 9.5C14 10.3284 14.6716 11 15.5 11Z" fill="currentColor"></path>', 5)) 56145 ], 8, _hoisted_1$Y); 56146} 56147const CoreIconPaintersPalette = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$W]]); 56148const CoreIconPaintersPalette$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56149 __proto__: null, 56150 default: CoreIconPaintersPalette 56151}, Symbol.toStringTag, { value: "Module" })); 56152const _sfc_main$X = { 56153 props: { 56154 settings: { 56155 type: Object, 56156 required: false 56157 } 56158 }, 56159 computed: { 56160 alt() { 56161 var _a, _b; 56162 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56163 }, 56164 id() { 56165 var _a, _b; 56166 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56167 } 56168 } 56169}; 56170const _hoisted_1$X = ["aria-labelledby", "aria-label"]; 56171const _hoisted_2$P = ["id"]; 56172function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) { 56173 return openBlock(), createElementBlock("svg", { 56174 width: "24", 56175 height: "24", 56176 viewBox: "0 0 24 24", 56177 fill: "none", 56178 xmlns: "http://www.w3.org/2000/svg", 56179 role: "img", 56180 "aria-labelledby": `icon-title-${$options.id}`, 56181 "aria-label": $options.alt 56182 }, [ 56183 createBaseVNode("title", { 56184 id: `icon-title-${$options.id}` 56185 }, toDisplayString($options.alt), 9, _hoisted_2$P), 56186 _cache[0] || (_cache[0] = createBaseVNode("path", { 56187 d: "M10 4H6V20H10V4Z", 56188 stroke: "currentColor", 56189 "stroke-width": "2", 56190 "stroke-linecap": "round", 56191 "stroke-linejoin": "round" 56192 }, null, -1)), 56193 _cache[1] || (_cache[1] = createBaseVNode("path", { 56194 d: "M18 4H14V20H18V4Z", 56195 stroke: "currentColor", 56196 "stroke-width": "2", 56197 "stroke-linecap": "round", 56198 "stroke-linejoin": "round" 56199 }, null, -1)) 56200 ], 8, _hoisted_1$X); 56201} 56202const CoreIconPause = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$V]]); 56203const CoreIconPause$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56204 __proto__: null, 56205 default: CoreIconPause 56206}, Symbol.toStringTag, { value: "Module" })); 56207const _sfc_main$W = { 56208 props: { 56209 settings: { 56210 type: Object, 56211 required: false 56212 } 56213 }, 56214 computed: { 56215 alt() { 56216 var _a, _b; 56217 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56218 }, 56219 id() { 56220 var _a, _b; 56221 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56222 } 56223 } 56224}; 56225const _hoisted_1$W = ["aria-labelledby", "aria-label"]; 56226const _hoisted_2$O = ["id"]; 56227function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) { 56228 return openBlock(), createElementBlock("svg", { 56229 width: "48", 56230 height: "48",
56231 viewBox: "0 0 48 48", 56232 fill: "none", 56233 xmlns: "http://www.w3.org/2000/svg", 56234 role: "img", 56235 "aria-labelledby": `icon-title-${$options.id}`, 56236 "aria-label": $options.alt 56237 }, [ 56238 createBaseVNode("title", { 56239 id: `icon-title-${$options.id}` 56240 }, toDisplayString($options.alt), 9, _hoisted_2$O), 56241 _cache[0] || (_cache[0] = createBaseVNode("rect", { 56242 x: "1", 56243 y: "1", 56244 width: "46", 56245 height: "46", 56246 rx: "23", 56247 fill: "var(--_core__container_control_carousel_svg_fill)" 56248 }, null, -1)), 56249 _cache[1] || (_cache[1] = createBaseVNode("rect", { 56250 x: "1", 56251 y: "1", 56252 width: "46", 56253 height: "46", 56254 rx: "23", 56255 "stroke-width": "2" 56256 }, null, -1)), 56257 _cache[2] || (_cache[2] = createBaseVNode("path", { 56258 d: "M21.3333 13.334H16V34.6673H21.3333V13.334Z", 56259 fill: "var(--_core__container_control_carousel_svg_stroke)", 56260 stroke: "var(--_core__container_control_carousel_svg_stroke)", 56261 "stroke-linecap": "round", 56262 "stroke-linejoin": "round" 56263 }, null, -1)), 56264 _cache[3] || (_cache[3] = createBaseVNode("path", { 56265 d: "M31.9998 13.334H26.6665V34.6673H31.9998V13.334Z",
56266 fill: "var(--_core__container_control_carousel_svg_stroke)", 56267 stroke: "var(--_core__container_control_carousel_svg_stroke)", 56268 "stroke-linecap": "round", 56269 "stroke-linejoin": "round" 56270 }, null, -1)) 56271 ], 8, _hoisted_1$W); 56272} 56273const CoreIconPauseCircle = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$U]]); 56274const CoreIconPauseCircle$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56275 __proto__: null, 56276 default: CoreIconPauseCircle 56277}, Symbol.toStringTag, { value: "Module" })); 56278const _sfc_main$V = { 56279 props: { 56280 settings: { 56281 type: Object, 56282 required: false 56283 } 56284 }, 56285 computed: { 56286 alt() { 56287 var _a, _b; 56288 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56289 }, 56290 id() { 56291 var _a, _b; 56292 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56293 } 56294 } 56295}; 56296const _hoisted_1$V = ["aria-labelledby", "aria-label"]; 56297const _hoisted_2$N = ["id"]; 56298function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) { 56299 return openBlock(), createElementBlock("svg", { 56300 width: "24", 56301 height: "24", 56302 version: "1.1", 56303 xmlns: "http://www.w3.org/2000/svg", 56304 "xmlns:xlink": "http://www.w3.org/1999/xlink", 56305 viewBox: "0 0 31 31", 56306 style: { "enable-background": "new 0 0 31 31" }, 56307 fill: "currentColor", 56308 "aria-labelledby": `icon-title-${$options.id}`, 56309 "aria-label": $options.alt 56310 }, [ 56311 createBaseVNode("title", { 56312 id: `icon-title-${$options.id}` 56313 }, toDisplayString($options.alt), 9, _hoisted_2$N), 56314 _cache[0] || (_cache[0] = createBaseVNode("path", { d: "M29.9,8.6L22,0.9c-0.2-0.2-0.5-0.3-0.7-0.3H9.5C8,0.6,6.7,1.8,6.7,3.3v7.4H2.4c-1.2,0-2.2,1-2.2,2.1v8.4\n c0,1.2,1,2.1,2.2,2.1h4.3v4.6c0,1.5,1.3,2.7,2.8,2.7h17.8c1.6,0,2.8-1.2,2.8-2.7V9.3C30.2,9.1,30.1,8.8,29.9,8.6z M26.8,8.5h-4.9\n V3.7L26.8,8.5z M8.8,23.4h9.7c1.2,0,2.2-1,2.2-2.1v-8.4c0-1.2-1-2.1-2.2-2.1H8.8V3.3c0-0.4,0.3-0.7,0.7-0.7h10.2v6.8\n c0,0.6,0.5,1,1,1h7.3v17.5c0,0.4-0.3,0.7-0.7,0.7H9.5c-0.4,0-0.7-0.3-0.7-0.7V23.4z M2.2,12.8c0-0.1,0.1-0.1,0.1-0.1h16\n c0.1,0,0.1,0.1,0.1,0.1v8.4c0,0.1-0.1,0.1-0.1,0.1h-16c-0.1,0-0.1-0.1-0.1-0.1V12.8z" }, null, -1)), 56315 _cache[1] || (_cache[1] = createBaseVNode("path", { d: "M7.4,15c-0.2-0.3-0.5-0.5-0.8-0.6c-0.2-0.1-0.6-0.1-1.3-0.1H3.5v5.5h1.3l0,0v-2h0.6c0.5,0,0.9,0,1.1-0.1\n c0.2,0,0.4-0.1,0.6-0.3c0.2-0.1,0.4-0.3,0.5-0.6c0.1-0.2,0.2-0.5,0.2-0.9C7.7,15.6,7.6,15.3,7.4,15z M6.4,16.1c0,0.1,0,0.2-0.1,0.3\n c-0.1,0.1-0.2,0.2-0.3,0.2c-0.1,0-0.3,0.1-0.8,0.1H4.8v-1.2h0.4c0.4,0,0.6,0,0.7,0c0.1,0,0.3,0.1,0.4,0.2\n C6.4,15.8,6.4,15.9,6.4,16.1z" }, null, -1)), 56316 _cache[2] || (_cache[2] = createBaseVNode("path", { d: "M12.8,15.8c-0.1-0.3-0.3-0.6-0.5-0.9c-0.2-0.2-0.5-0.4-0.8-0.5c-0.2-0.1-0.6-0.1-1-0.1h-2v5.5h2.1\n c0.4,0,0.7,0,1-0.1c0.3-0.1,0.6-0.3,0.8-0.4c0.3-0.2,0.5-0.6,0.6-1c0.1-0.3,0.2-0.7,0.2-1.1C13,16.6,12.9,16.2,12.8,15.8z\n M11.6,17.1c0,0.4,0,0.7-0.1,0.9c-0.1,0.2-0.1,0.4-0.2,0.5c-0.1,0.1-0.2,0.2-0.4,0.2c-0.1,0-0.3,0-0.6,0H9.6l0,0v-3.2H10\n c0.4,0,0.7,0,0.8,0c0.2,0,0.3,0.1,0.4,0.2c0.1,0.1,0.2,0.3,0.3,0.5C11.6,16.4,11.6,16.7,11.6,17.1z" }, null, -1)), 56317 _cache[3] || (_cache[3] = createBaseVNode("polygon", { points: "17.4,15.4 17.4,14.3 13.6,14.3 13.6,19.8 14.9,19.8 14.9,19.8 14.9,17.6 17.1,17.6 17.1,16.5\n 14.9,16.5 14.9,15.4 " }, null, -1)) 56318 ], 8, _hoisted_1$V); 56319} 56320const CoreIconPdf = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$T]]); 56321const CoreIconPdf$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56322 __proto__: null, 56323 default: CoreIconPdf 56324}, Symbol.toStringTag, { value: "Module" })); 56325const _sfc_main$U = { 56326 props: { 56327 settings: { 56328 type: Object, 56329 required: false 56330 } 56331 }, 56332 computed: { 56333 alt() { 56334 var _a, _b; 56335 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56336 }, 56337 id() { 56338 var _a, _b; 56339 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56340 } 56341 } 56342}; 56343const _hoisted_1$U = ["aria-labelledby", "aria-label"]; 56344const _hoisted_2$M = ["id"]; 56345function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) { 56346 return openBlock(), createElementBlock("svg", { 56347 role: "img", 56348 width: "24", 56349 height: "24",
56350 viewBox: "0 0 24 24", 56351 fill: "none", 56352 xmlns: "http://www.w3.org/2000/svg", 56353 "aria-labelledby": `icon-title-${$options.id}`, 56354 "aria-label": $options.alt 56355 }, [ 56356 createBaseVNode("title", { 56357 id: `icon-title-${$options.id}` 56358 }, toDisplayString($options.alt), 9, _hoisted_2$M), 56359 _cache[0] || (_cache[0] = createBaseVNode("path", { 56360 d: "M21.9999 16.92V19.92C22.0011 20.1985 21.944 20.4741 21.8324 20.7293C21.7209 20.9845 21.5572 21.2136 21.352 21.4018C21.1468 21.5901 20.9045 21.7335 20.6407 21.8227C20.3769 21.9119 20.0973 21.945 19.8199 21.92C16.7428 21.5856 13.7869 20.5341 11.1899 18.85C8.77376 17.3146 6.72527 15.2661 5.18993 12.85C3.49991 10.2412 2.44818 7.27097 2.11993 4.17997C2.09494 3.90344 2.12781 3.62474 2.21643 3.3616C2.30506 3.09846 2.4475 2.85666 2.6347 2.6516C2.82189 2.44653 3.04974 2.28268 3.30372 2.1705C3.55771 2.05831 3.83227 2.00024 4.10993 1.99997H7.10993C7.59524 1.9952 8.06572 2.16705 8.43369 2.48351C8.80166 2.79996 9.04201 3.23942 9.10993 3.71997C9.23656 4.68004 9.47138 5.6227 9.80993 6.52997C9.94448 6.8879 9.9736 7.27689 9.89384 7.65086C9.81408 8.02482 9.6288 8.36809 9.35993 8.63998L8.08993 9.90997C9.51349 12.4135 11.5864 14.4864 14.0899 15.91L15.3599 14.64C15.6318 14.3711 15.9751 14.1858 16.3491 14.1061C16.723 14.0263 17.112 14.0554 17.4699 14.19C18.3772 14.5285 19.3199 14.7634 20.2799 14.89C20.7657 14.9585 21.2093 15.2032 21.5265 15.5775C21.8436 15.9518 22.0121 16.4296 21.9999 16.92Z", 56361 stroke: "currentColor", 56362 "stroke-width": "2", 56363 "stroke-linecap": "round", 56364 "stroke-linejoin": "round" 56365 }, null, -1)) 56366 ], 8, _hoisted_1$U); 56367} 56368const CoreIconPhone = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$S]]); 56369const CoreIconPhone$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56370 __proto__: null, 56371 default: CoreIconPhone 56372}, Symbol.toStringTag, { value: "Module" })); 56373const _sfc_main$T = { 56374 props: { 56375 settings: { 56376 type: Object, 56377 required: false 56378 } 56379 }, 56380 computed: { 56381 alt() { 56382 var _a, _b; 56383 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56384 }, 56385 id() { 56386 var _a, _b; 56387 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56388 } 56389 } 56390}; 56391const _hoisted_1$T = ["aria-labelledby", "aria-label"]; 56392const _hoisted_2$L = ["id"]; 56393function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) { 56394 return openBlock(), createElementBlock("svg", { 56395 width: "24", 56396 height: "24", 56397 viewBox: "0 0 24 24", 56398 fill: "none", 56399 xmlns: "http://www.w3.org/2000/svg", 56400 role: "img", 56401 "aria-labelledby": `icon-title-${$options.id}`, 56402 "aria-label": $options.alt 56403 }, [ 56404 createBaseVNode("title", { 56405 id: `icon-title-${$options.id}` 56406 }, toDisplayString($options.alt), 9, _hoisted_2$L), 56407 _cache[0] || (_cache[0] = createBaseVNode("path", { 56408 d: "M20 4V16H8V4H20ZM20 2H8C6.9 2 6 2.9 6 4V16C6 17.1 6.9 18 8 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2ZM11.5 11.67L13.19 13.93L15.67 10.83L19 15H9L11.5 11.67ZM2 6V20C2 21.1 2.9 22 4 22H18V20H4V6H2Z", 56409 fill: "currentColor" 56410 }, null, -1)) 56411 ], 8, _hoisted_1$T); 56412} 56413const CoreIconPhotoLibrary = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$R]]); 56414const CoreIconPhotoLibrary$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56415 __proto__: null, 56416 default: CoreIconPhotoLibrary 56417}, Symbol.toStringTag, { value: "Module" })); 56418const _sfc_main$S = { 56419 props: { 56420 settings: { 56421 type: Object, 56422 required: false 56423 } 56424 }, 56425 computed: { 56426 alt() { 56427 var _a, _b; 56428 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56429 }, 56430 id() { 56431 var _a, _b; 56432 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56433 } 56434 } 56435}; 56436const _hoisted_1$S = ["aria-labelledby", "aria-label"]; 56437const _hoisted_2$K = ["id"]; 56438function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) { 56439 return openBlock(), createElementBlock("svg", { 56440 width: "24", 56441 height: "24",
56442 viewBox: "0 0 24 24", 56443 fill: "none", 56444 xmlns: "http://www.w3.org/2000/svg", 56445 role: "img", 56446 "aria-labelledby": `icon-title-${$options.id}`, 56447 "aria-label": $options.alt 56448 }, [ 56449 createBaseVNode("title", { 56450 id: `icon-title-${$options.id}` 56451 }, toDisplayString($options.alt), 9, _hoisted_2$K), 56452 _cache[0] || (_cache[0] = createBaseVNode("path", { 56453 d: "M5 3L19 12L5 21V3Z", 56454 stroke: "currentColor", 56455 "stroke-width": "2", 56456 "stroke-linecap": "round", 56457 "stroke-linejoin": "round" 56458 }, null, -1)) 56459 ], 8, _hoisted_1$S); 56460} 56461const CoreIconPlay = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$Q]]); 56462const CoreIconPlay$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56463 __proto__: null, 56464 default: CoreIconPlay 56465}, Symbol.toStringTag, { value: "Module" })); 56466const _sfc_main$R = { 56467 props: { 56468 settings: { 56469 type: Object, 56470 required: false 56471 } 56472 }, 56473 computed: { 56474 alt() { 56475 var _a, _b; 56476 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56477 }, 56478 id() { 56479 var _a, _b; 56480 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56481 } 56482 } 56483}; 56484const _hoisted_1$R = ["aria-labelledby", "aria-label"]; 56485const _hoisted_2$J = ["id"]; 56486function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) { 56487 return openBlock(), createElementBlock("svg", { 56488 width: "24", 56489 height: "24", 56490 viewBox: "0 0 24 24", 56491 fill: "none", 56492 xmlns: "http://www.w3.org/2000/svg", 56493 role: "img", 56494 "aria-labelledby": `icon-title-${$options.id}`, 56495 "aria-label": $options.alt 56496 }, [ 56497 createBaseVNode("title", { 56498 id: `icon-title-${$options.id}` 56499 }, toDisplayString($options.alt), 9, _hoisted_2$J), 56500 _cache[0] || (_cache[0] = createBaseVNode("path", { 56501 d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", 56502 stroke: "currentColor", 56503 "stroke-width": "2", 56504 "stroke-linecap": "round", 56505 "stroke-linejoin": "round" 56506 }, null, -1)), 56507 _cache[1] || (_cache[1] = createBaseVNode("path", { 56508 d: "M10 8L16 12L10 16V8Z", 56509 fill: "currentColor", 56510 stroke: "currentColor", 56511 "stroke-width": "2", 56512 "stroke-linecap": "round", 56513 "stroke-linejoin": "round" 56514 }, null, -1)) 56515 ], 8, _hoisted_1$R); 56516} 56517const CoreIconPlayCircle = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$P]]); 56518const CoreIconPlayCircle$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56519 __proto__: null, 56520 default: CoreIconPlayCircle 56521}, Symbol.toStringTag, { value: "Module" })); 56522const _sfc_main$Q = { 56523 props: { 56524 settings: { 56525 type: Object, 56526 required: false, 56527 default: () => ({}) 56528 } 56529 }, 56530 computed: { 56531 alt() { 56532 var _a, _b; 56533 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56534 }, 56535 id() { 56536 var _a, _b; 56537 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56538 } 56539 } 56540}; 56541const _hoisted_1$Q = ["aria-labelledby", "aria-label"]; 56542const _hoisted_2$I = ["id"]; 56543function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) { 56544 return openBlock(), createElementBlock("svg", { 56545 width: "48", 56546 height: "48", 56547 viewBox: "0 0 48 48", 56548 fill: "none", 56549 xmlns: "http://www.w3.org/2000/svg", 56550 role: "img", 56551 "aria-labelledby": `icon-title-${$options.id}`, 56552 "aria-label": $options.alt 56553 }, [ 56554 createBaseVNode("title", { 56555 id: `icon-title-${$options.id}` 56556 }, toDisplayString($options.alt), 9, _hoisted_2$I), 56557 _cache[0] || (_cache[0] = createBaseVNode("rect", { 56558 x: "1", 56559 y: "1", 56560 width: "46", 56561 height: "46", 56562 rx: "23",
56563 fill: "var(--_core__container_control_carousel_svg_fill)" 56564 }, null, -1)), 56565 _cache[1] || (_cache[1] = createBaseVNode("rect", { 56566 x: "1", 56567 y: "1", 56568 width: "46", 56569 height: "46", 56570 rx: "23", 56571 "stroke-width": "2" 56572 }, null, -1)), 56573 _cache[2] || (_cache[2] = createBaseVNode("path", { 56574 d: "M17.6665 12L36.3332 24L17.6665 36V12Z", 56575 fill: "var(--_core__container_control_carousel_svg_stroke)", 56576 stroke: "var(--_core__container_control_carousel_svg_stroke)", 56577 "stroke-width": "2", 56578 "stroke-linecap": "round", 56579 "stroke-linejoin": "round" 56580 }, null, -1)) 56581 ], 8, _hoisted_1$Q); 56582} 56583const CoreIconPlayCircleButton = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$O]]); 56584const CoreIconPlayCircleButton$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56585 __proto__: null, 56586 default: CoreIconPlayCircleButton 56587}, Symbol.toStringTag, { value: "Module" })); 56588const _sfc_main$P = { 56589 props: { 56590 settings: { 56591 type: Object, 56592 required: false 56593 } 56594 }, 56595 computed: { 56596 alt() { 56597 var _a, _b; 56598 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56599 }, 56600 id() { 56601 var _a, _b; 56602 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56603 } 56604 } 56605}; 56606const _hoisted_1$P = ["aria-labelledby", "aria-label"]; 56607const _hoisted_2$H = ["id"]; 56608function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) { 56609 return openBlock(), createElementBlock("svg", { 56610 width: "24", 56611 height: "24", 56612 viewBox: "0 0 24 24", 56613 fill: "none", 56614 xmlns: "http://www.w3.org/2000/svg", 56615 role: "img", 56616 "aria-labelledby": `icon-title-${$options.id}`, 56617 "aria-label": $options.alt 56618 }, [ 56619 createBaseVNode("title", { 56620 id: `icon-title-${$options.id}` 56621 }, toDisplayString($options.alt), 9, _hoisted_2$H), 56622 _cache[0] || (_cache[0] = createBaseVNode("path", { 56623 d: "M20.4853 11.9999H3.51472", 56624 stroke: "currentColor", 56625 "stroke-width": "2", 56626 "stroke-linecap": "round", 56627 "stroke-linejoin": "round" 56628 }, null, -1)), 56629 _cache[1] || (_cache[1] = createBaseVNode("path", { 56630 d: "M12 3.51465V20.4852", 56631 stroke: "currentColor", 56632 "stroke-width": "2", 56633 "stroke-linecap": "round", 56634 "stroke-linejoin": "round" 56635 }, null, -1)) 56636 ], 8, _hoisted_1$P); 56637} 56638const CoreIconPlus = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$N]]); 56639const CoreIconPlus$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56640 __proto__: null, 56641 default: CoreIconPlus 56642}, Symbol.toStringTag, { value: "Module" })); 56643const _sfc_main$O = { 56644 props: { 56645 settings: { 56646 type: Object, 56647 required: false 56648 } 56649 }, 56650 computed: { 56651 alt() { 56652 var _a, _b; 56653 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56654 }, 56655 id() { 56656 var _a, _b; 56657 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56658 } 56659 } 56660}; 56661const _hoisted_1$O = ["aria-labelledby", "aria-label"]; 56662const _hoisted_2$G = ["id"]; 56663function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) { 56664 return openBlock(), createElementBlock("svg", { 56665 width: "24", 56666 height: "24", 56667 viewBox: "0 0 24 24", 56668 fill: "none", 56669 xmlns: "http://www.w3.org/2000/svg", 56670 role: "img", 56671 "aria-labelledby": `icon-title-${$options.id}`, 56672 "aria-label": $options.alt 56673 }, [ 56674 createBaseVNode("title", { 56675 id: `icon-title-${$options.id}` 56676 }, toDisplayString($options.alt), 9, _hoisted_2$G), 56677 _cache[0] || (_cache[0] = createBaseVNode("path", { 56678 d: "M10.738 3.96274L2.26802 18.1027C2.09339 18.4052 2.00099 18.748 2.00001 19.0973C1.99903 19.4465 2.08951 19.7899 2.26245 20.0933C2.43538 20.3967 2.68474 20.6495 2.98573 20.8266C3.28671 21.0037 3.62882 21.0989 3.97802 21.1027H20.918C21.2672 21.0989 21.6093 21.0037 21.9103 20.8266C22.2113 20.6495 22.4607 20.3967 22.6336 20.0933C22.8065 19.7899 22.897 19.4465 22.896 19.0973C22.8951 18.748 22.8027 18.4052 22.628 18.1027L14.158 3.96274C13.9797 3.66885 13.7287 3.42586 13.4292 3.25723C13.1297 3.08859 12.7918 3 12.448 3C12.1043 3 11.7663 3.08859 11.4668 3.25723C11.1673 3.42586 10.9163 3.66885 10.738 3.96274V3.96274Z", 56679 stroke: "currentColor", 56680 "stroke-width": "2", 56681 "stroke-linecap": "round", 56682 "stroke-linejoin": "round" 56683 }, null, -1)), 56684 _cache[1] || (_cache[1] = createBaseVNode("path", { 56685 d: "M12.448 9.10278V13.1028", 56686 stroke: "currentColor", 56687 "stroke-width": "2", 56688 "stroke-linecap": "round", 56689 "stroke-linejoin": "round" 56690 }, null, -1)), 56691 _cache[2] || (_cache[2] = createBaseVNode("path", { 56692 d: "M12.448 17.1028H12.458", 56693 stroke: "currentColor", 56694 "stroke-width": "2", 56695 "stroke-linecap": "round", 56696 "stroke-linejoin": "round" 56697 }, null, -1)) 56698 ], 8, _hoisted_1$O); 56699} 56700const CoreIconQuestionMark = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$M]]); 56701const CoreIconQuestionMark$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56702 __proto__: null, 56703 default: CoreIconQuestionMark 56704}, Symbol.toStringTag, { value: "Module" })); 56705const _sfc_main$N = { 56706 props: { 56707 settings: { 56708 type: Object, 56709 required: false, 56710 default: () => { 56711 } 56712 } 56713 }, 56714 computed: { 56715 alt() { 56716 var _a, _b; 56717 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56718 }, 56719 id() { 56720 var _a, _b; 56721 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56722 } 56723 } 56724}; 56725const _hoisted_1$N = ["aria-labelledby", "aria-label"]; 56726const _hoisted_2$F = ["id"]; 56727function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) { 56728 return openBlock(), createElementBlock("svg", { 56729 xmlns: "http://www.w3.org/2000/svg", 56730 width: "24", 56731 height: "24",
56732 viewBox: "0 0 24 24", 56733 fill: "none", 56734 role: "img", 56735 "aria-labelledby": `icon-title-${$options.id}`, 56736 "aria-label": $options.alt 56737 }, [ 56738 createBaseVNode("title", { 56739 id: `icon-title-${$options.id}` 56740 }, toDisplayString($options.alt), 9, _hoisted_2$F), 56741 _cache[0] || (_cache[0] = createBaseVNode("path", { 56742 d: "M21 3.5H3C1.9 3.5 1 4.4 1 5.5V18.5C1 19.6 1.9 20.5 3 20.5H21C22.1 20.5 23 19.6 23 18.5V5.5C23 4.4 22.1 3.5 21 3.5ZM3 18.5V5.5H11V18.5H3ZM21 18.5H13V5.5H21V18.5ZM14 9H20V10.5H14V9ZM14 11.5H20V13H14V11.5ZM14 14H20V15.5H14V14Z", 56743 fill: "CurrentColor" 56744 }, null, -1)) 56745 ], 8, _hoisted_1$N); 56746} 56747const CoreIconReaderMode = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$L]]); 56748const CoreIconReaderMode$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56749 __proto__: null, 56750 default: CoreIconReaderMode 56751}, Symbol.toStringTag, { value: "Module" })); 56752const _sfc_main$M = { 56753 props: { 56754 settings: { 56755 type: Object, 56756 required: false 56757 } 56758 }, 56759 computed: { 56760 alt() { 56761 var _a, _b; 56762 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56763 }, 56764 id() { 56765 var _a, _b; 56766 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56767 } 56768 } 56769}; 56770const _hoisted_1$M = ["aria-labelledby", "aria-label"]; 56771const _hoisted_2$E = ["id"]; 56772function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) { 56773 return openBlock(), createElementBlock("svg", { 56774 width: "24", 56775 height: "24", 56776 viewBox: "0 0 24 24", 56777 fill: "none", 56778 xmlns: "http://www.w3.org/2000/svg", 56779 role: "img", 56780 "aria-labelledby": `icon-title-${$options.id}`, 56781 "aria-label": $options.alt 56782 }, [ 56783 createBaseVNode("title", { 56784 id: `icon-title-${$options.id}` 56785 }, toDisplayString($options.alt), 9, _hoisted_2$E), 56786 _cache[0] || (_cache[0] = createBaseVNode("path", { 56787 d: "M18.63 11.1C16.78 9.49 14.38 8.5 11.73 8.5C7.08002 8.5 3.15002 11.53 1.77002 15.72L4.13002 16.5C5.18002 13.31 8.18002 11 11.73 11C13.68 11 15.46 11.72 16.85 12.88L13.23 16.5H22.23V7.5L18.63 11.1Z", 56788 fill: "currentColor" 56789 }, null, -1)) 56790 ], 8, _hoisted_1$M); 56791} 56792const CoreIconRedo = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$K]]); 56793const CoreIconRedo$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56794 __proto__: null, 56795 default: CoreIconRedo 56796}, Symbol.toStringTag, { value: "Module" })); 56797const _sfc_main$L = { 56798 props: { 56799 settings: { 56800 type: Object, 56801 required: false 56802 } 56803 }, 56804 computed: { 56805 alt() { 56806 var _a, _b; 56807 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56808 }, 56809 id() { 56810 var _a, _b; 56811 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56812 } 56813 } 56814}; 56815const _hoisted_1$L = ["aria-labelledby", "aria-label"]; 56816const _hoisted_2$D = ["id"]; 56817function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) { 56818 return openBlock(), createElementBlock("svg", { 56819 width: "24", 56820 height: "24", 56821 viewBox: "0 0 24 24", 56822 fill: "none", 56823 xmlns: "http://www.w3.org/2000/svg", 56824 role: "img", 56825 "aria-labelledby": `icon-title-${$options.id}`, 56826 "aria-label": $options.alt 56827 }, [ 56828 createBaseVNode("title", { 56829 id: `icon-title-${$options.id}` 56830 }, toDisplayString($options.alt), 9, _hoisted_2$D), 56831 _cache[0] || (_cache[0] = createBaseVNode("path", { 56832 d: "M3 9H21", 56833 stroke: "currentColor", 56834 "stroke-width": "2", 56835 "stroke-linecap": "round", 56836 "stroke-linejoin": "round" 56837 }, null, -1)), 56838 _cache[1] || (_cache[1] = createBaseVNode("path", { 56839 d: "M3 4H21", 56840 stroke: "currentColor", 56841 "stroke-width": "2", 56842 "stroke-linecap": "round", 56843 "stroke-linejoin": "round" 56844 }, null, -1)), 56845 _cache[2] || (_cache[2] = createBaseVNode("path", { 56846 d: "M3 14H21", 56847 stroke: "currentColor", 56848 "stroke-width": "2", 56849 "stroke-linecap": "round", 56850 "stroke-linejoin": "round" 56851 }, null, -1)), 56852 _cache[3] || (_cache[3] = createBaseVNode("path", { 56853 d: "M3 19H21", 56854 stroke: "currentColor", 56855 "stroke-width": "2", 56856 "stroke-linecap": "round", 56857 "stroke-linejoin": "round" 56858 }, null, -1)) 56859 ], 8, _hoisted_1$L); 56860} 56861const CoreIconReorder = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$J]]); 56862const CoreIconReorder$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56863 __proto__: null, 56864 default: CoreIconReorder 56865}, Symbol.toStringTag, { value: "Module" })); 56866const _sfc_main$K = { 56867 props: { 56868 settings: { 56869 type: Object, 56870 default: () => ({}) 56871 } 56872 }, 56873 computed: { 56874 alt() { 56875 var _a, _b; 56876 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56877 }, 56878 id() { 56879 var _a, _b; 56880 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56881 } 56882 } 56883}; 56884const _hoisted_1$K = ["aria-labelledby", "aria-label"]; 56885const _hoisted_2$C = ["id"]; 56886function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) { 56887 return openBlock(), createElementBlock("svg", { 56888 xmlns: "http://www.w3.org/2000/svg", 56889 width: "22", 56890 height: "23",
56891 viewBox: "0 0 22 23", 56892 fill: "none", 56893 "aria-labelledby": `icon-title-${$options.id}`, 56894 "aria-label": $options.alt 56895 }, [ 56896 createBaseVNode("title", { 56897 id: `icon-title-${$options.id}` 56898 }, toDisplayString($options.alt), 9, _hoisted_2$C), 56899 _cache[0] || (_cache[0] = createStaticVNode('<g clip-path="url(#clip0_143_10767)"><path d="M15.5832 0.989899L19.2499 4.65657L15.5832 8.32323" stroke="currentColor" stroke-width="1.83333" stroke-linecap="round" stroke-linejoin="round"></path><path d="M2.74982 10.1566V8.32325C2.74982 7.35079 3.13613 6.41816 3.82376 5.73053C4.51139 5.04289 5.44402 4.65659 6.41648 4.65659H19.2498" stroke="currentColor" stroke-width="1.83333" stroke-linecap="round" stroke-linejoin="round"></path><path d="M6.41648 21.1566L2.74982 17.4899L6.41648 13.8232" stroke="currentColor" stroke-width="1.83333" stroke-linecap="round" stroke-linejoin="round"></path><path d="M19.2498 11.9899V13.8232C19.2498 14.7957 18.8635 15.7283 18.1759 16.416C17.4882 17.1036 16.5556 17.4899 15.5832 17.4899H2.74982" stroke="currentColor" stroke-width="1.83333" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_143_10767"><rect width="22" height="22" fill="white" transform="translate(0 0.0732422)"></rect></clipPath></defs>', 2)) 56900 ], 8, _hoisted_1$K); 56901} 56902const CoreIconReplace = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$I]]); 56903const CoreIconReplace$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56904 __proto__: null, 56905 default: CoreIconReplace 56906}, Symbol.toStringTag, { value: "Module" })); 56907const _sfc_main$J = { 56908 props: { 56909 settings: { 56910 type: Object, 56911 required: false 56912 } 56913 }, 56914 computed: { 56915 alt() { 56916 var _a, _b; 56917 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56918 }, 56919 id() { 56920 var _a, _b; 56921 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56922 } 56923 } 56924}; 56925const _hoisted_1$J = ["aria-labelledby", "aria-label"]; 56926const _hoisted_2$B = ["id"]; 56927function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) { 56928 return openBlock(), createElementBlock("svg", { 56929 width: "24", 56930 height: "24", 56931 viewBox: "0 0 24 24", 56932 fill: "none", 56933 xmlns: "http://www.w3.org/2000/svg", 56934 role: "img", 56935 "aria-labelledby": `icon-title-${$options.id}`, 56936 "aria-label": $options.alt 56937 }, [ 56938 createBaseVNode("title", { 56939 id: `icon-title-${$options.id}` 56940 }, toDisplayString($options.alt), 9, _hoisted_2$B), 56941 _cache[0] || (_cache[0] = createBaseVNode("path", { 56942 d: "M2 4V10H8", 56943 stroke: "currentColor", 56944 "stroke-width": "2", 56945 "stroke-linecap": "round", 56946 "stroke-linejoin": "round" 56947 }, null, -1)), 56948 _cache[1] || (_cache[1] = createBaseVNode("path", { 56949 d: "M4.51 14.9999C5.15839 16.8403 6.38734 18.4201 8.01166 19.5013C9.63598 20.5825 11.5677 21.1065 13.5157 20.9944C15.4637 20.8823 17.3226 20.1401 18.8121 18.8797C20.3017 17.6193 21.3413 15.9089 21.7742 14.0063C22.2072 12.1037 22.0101 10.1119 21.2126 8.33105C20.4152 6.55019 19.0605 5.07674 17.3528 4.13271C15.6451 3.18868 13.6769 2.82521 11.7447 3.09707C9.81245 3.36892 8.02091 4.26137 6.64 5.63995L2 9.99995", 56950 stroke: "currentColor", 56951 "stroke-width": "2", 56952 "stroke-linecap": "round", 56953 "stroke-linejoin": "round" 56954 }, null, -1)) 56955 ], 8, _hoisted_1$J); 56956} 56957const CoreIconReplay = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$H]]); 56958const CoreIconReplay$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 56959 __proto__: null, 56960 default: CoreIconReplay 56961}, Symbol.toStringTag, { value: "Module" })); 56962const _sfc_main$I = { 56963 props: { 56964 settings: { 56965 type: Object, 56966 required: false 56967 } 56968 }, 56969 computed: { 56970 alt() { 56971 var _a, _b; 56972 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 56973 }, 56974 id() { 56975 var _a, _b; 56976 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 56977 } 56978 } 56979}; 56980const _hoisted_1$I = ["aria-labelledby", "aria-label"]; 56981const _hoisted_2$A = ["id"]; 56982function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) { 56983 return openBlock(), createElementBlock("svg", { 56984 width: "24", 56985 height: "24",
56986 viewBox: "0 0 24 24", 56987 fill: "none", 56988 xmlns: "http://www.w3.org/2000/svg", 56989 role: "img", 56990 "aria-labelledby": `icon-title-${$options.id}`, 56991 "aria-label": $options.alt 56992 }, [ 56993 createBaseVNode("title", { 56994 id: `icon-title-${$options.id}` 56995 }, toDisplayString($options.alt), 9, _hoisted_2$A), 56996 _cache[0] || (_cache[0] = createBaseVNode("path", { 56997 d: "M11 8V13L15.25 15.52L16.02 14.24L12.5 12.15V8H11ZM21 10V3L18.36 5.64C16.74 4.01 14.49 3 12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C16.97 21 21 16.97 21 12H19C19 15.86 15.86 19 12 19C8.14 19 5 15.86 5 12C5 8.14 8.14 5 12 5C13.93 5 15.68 5.79 16.95 7.05L14 10H21Z", 56998 fill: "currentColor" 56999 }, null, -1)) 57000 ], 8, _hoisted_1$I); 57001} 57002const CoreIconRevert = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$G]]); 57003const CoreIconRevert$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57004 __proto__: null, 57005 default: CoreIconRevert 57006}, Symbol.toStringTag, { value: "Module" })); 57007const _sfc_main$H = { 57008 props: { 57009 settings: { 57010 type: Object, 57011 required: false 57012 } 57013 }, 57014 computed: { 57015 alt() { 57016 var _a, _b; 57017 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57018 }, 57019 id() { 57020 var _a, _b; 57021 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57022 } 57023 } 57024}; 57025const _hoisted_1$H = ["aria-labelledby", "aria-label"]; 57026const _hoisted_2$z = ["id"]; 57027function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) { 57028 return openBlock(), createElementBlock("svg", { 57029 width: "25", 57030 height: "24", 57031 viewBox: "0 0 25 24", 57032 fill: "none", 57033 xmlns: "http://www.w3.org/2000/svg", 57034 role: "img", 57035 "aria-labelledby": `icon-title-${$options.id}`, 57036 "aria-label": $options.alt 57037 }, [ 57038 createBaseVNode("title", { 57039 id: `icon-title-${$options.id}` 57040 }, toDisplayString($options.alt), 9, _hoisted_2$z), 57041 _cache[0] || (_cache[0] = createBaseVNode("path", { 57042 d: "M5.5 12H19.5", 57043 stroke: "currentColor", 57044 "stroke-width": "2", 57045 "stroke-linecap": "round", 57046 "stroke-linejoin": "round" 57047 }, null, -1)), 57048 _cache[1] || (_cache[1] = createBaseVNode("path", { 57049 d: "M12.5 5L19.5 12L12.5 19", 57050 stroke: "currentColor", 57051 "stroke-width": "2", 57052 "stroke-linecap": "round", 57053 "stroke-linejoin": "round" 57054 }, null, -1)) 57055 ], 8, _hoisted_1$H); 57056} 57057const CoreIconRightArrow = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$F]]); 57058const CoreIconRightArrow$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57059 __proto__: null, 57060 default: CoreIconRightArrow 57061}, Symbol.toStringTag, { value: "Module" })); 57062const _sfc_main$G = { 57063 props: { 57064 settings: { 57065 type: Object, 57066 required: false, 57067 default: () => { 57068 } 57069 } 57070 }, 57071 computed: { 57072 alt() { 57073 var _a, _b; 57074 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57075 }, 57076 id() { 57077 var _a, _b; 57078 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57079 } 57080 } 57081}; 57082const _hoisted_1$G = ["aria-labelledby", "aria-label"]; 57083const _hoisted_2$y = ["id"]; 57084function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) { 57085 return openBlock(), createElementBlock("svg", { 57086 xmlns: "http://www.w3.org/2000/svg", 57087 width: "24", 57088 height: "24", 57089 viewBox: "0 0 24 24", 57090 fill: "none", 57091 role: "img", 57092 "aria-labelledby": `icon-title-${$options.id}`, 57093 "aria-label": $options.alt 57094 }, [ 57095 createBaseVNode("title", { 57096 id: `icon-title-${$options.id}` 57097 }, toDisplayString($options.alt), 9, _hoisted_2$y), 57098 _cache[0] || (_cache[0] = createBaseVNode("path", { 57099 d: "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19Z", 57100 fill: "CurrentColor" 57101 }, null, -1)) 57102 ], 8, _hoisted_1$G); 57103} 57104const CoreIconRoundedSquare = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$E]]); 57105const CoreIconRoundedSquare$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57106 __proto__: null, 57107 default: CoreIconRoundedSquare 57108}, Symbol.toStringTag, { value: "Module" })); 57109const _sfc_main$F = { 57110 props: { 57111 settings: { 57112 type: Object, 57113 required: false 57114 } 57115 }, 57116 computed: { 57117 alt() { 57118 var _a, _b; 57119 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57120 }, 57121 id() { 57122 var _a, _b; 57123 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57124 } 57125 } 57126}; 57127const _hoisted_1$F = ["aria-labelledby", "aria-label"]; 57128const _hoisted_2$x = ["id"]; 57129function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) { 57130 return openBlock(), createElementBlock("svg", { 57131 width: "24", 57132 height: "24",
57133 viewBox: "0 0 24 24", 57134 fill: "none", 57135 xmlns: "http://www.w3.org/2000/svg", 57136 role: "img", 57137 "aria-labelledby": `icon-title-${$options.id}`, 57138 "aria-label": $options.alt 57139 }, [ 57140 createBaseVNode("title", { 57141 id: `icon-title-${$options.id}` 57142 }, toDisplayString($options.alt), 9, _hoisted_2$x), 57143 _cache[0] || (_cache[0] = createBaseVNode("path", { 57144 d: "M10.5266 18.6089C14.9449 18.6089 18.5266 15.0272 18.5266 10.6089C18.5266 6.19061 14.9449 2.60889 10.5266 2.60889C6.10833 2.60889 2.52661 6.19061 2.52661 10.6089C2.52661 15.0272 6.10833 18.6089 10.5266 18.6089Z", 57145 stroke: "currentColor", 57146 "stroke-width": "2", 57147 "stroke-linecap": "round", 57148 "stroke-linejoin": "round" 57149 }, null, -1)), 57150 _cache[1] || (_cache[1] = createBaseVNode("path", { 57151 d: "M20.5265 20.6088L16.1765 16.2588", 57152 stroke: "currentColor", 57153 "stroke-width": "2", 57154 "stroke-linecap": "round", 57155 "stroke-linejoin": "round" 57156 }, null, -1)) 57157 ], 8, _hoisted_1$F); 57158} 57159const CoreIconSearch = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$D]]); 57160const CoreIconSearch$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57161 __proto__: null, 57162 default: CoreIconSearch 57163}, Symbol.toStringTag, { value: "Module" })); 57164const _sfc_main$E = { 57165 props: { 57166 settings: { 57167 type: Object, 57168 required: false 57169 } 57170 }, 57171 computed: { 57172 alt() { 57173 var _a, _b; 57174 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57175 }, 57176 id() { 57177 var _a, _b; 57178 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57179 } 57180 } 57181}; 57182const _hoisted_1$E = ["aria-labelledby", "aria-label"]; 57183const _hoisted_2$w = ["id"]; 57184function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) { 57185 return openBlock(), createElementBlock("svg", { 57186 width: "24", 57187 height: "24", 57188 viewBox: "0 0 27 27", 57189 fill: "none", 57190 xmlns: "http://www.w3.org/2000/svg", 57191 "aria-labelledby": `icon-title-${$options.id}`, 57192 "aria-label": $options.alt 57193 }, [ 57194 createBaseVNode("title", { 57195 id: `icon-title-${$options.id}` 57196 }, toDisplayString($options.alt), 9, _hoisted_2$w), 57197 _cache[0] || (_cache[0] = createBaseVNode("path", { 57198 d: "M21.266 14.4961H5.86602C4.65602 14.4961 3.66602 15.4861 3.66602 16.6961V21.0961C3.66602 22.3061 4.65602 23.2961 5.86602 23.2961H21.266C22.476 23.2961 23.466 22.3061 23.466 21.0961V16.6961C23.466 15.4861 22.476 14.4961 21.266 14.4961ZM21.266 21.0961H5.86602V16.6961H21.266V21.0961Z", 57199 fill: "currentColor" 57200 }, null, -1)), 57201 _cache[1] || (_cache[1] = createBaseVNode("path", { 57202 d: "M21.266 3.49609H5.86602C4.65602 3.49609 3.66602 4.48609 3.66602 5.69609V10.0961C3.66602 11.3061 4.65602 12.2961 5.86602 12.2961H21.266C22.476 12.2961 23.466 11.3061 23.466 10.0961V5.69609C23.466 4.48609 22.476 3.49609 21.266 3.49609ZM21.266 10.0961H5.86602V5.69609H21.266V10.0961Z", 57203 fill: "currentColor" 57204 }, null, -1)) 57205 ], 8, _hoisted_1$E); 57206} 57207const CoreIconSection = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$C]]); 57208const CoreIconSection$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57209 __proto__: null, 57210 default: CoreIconSection 57211}, Symbol.toStringTag, { value: "Module" })); 57212const _sfc_main$D = { 57213 props: { 57214 settings: { 57215 type: Object, 57216 required: false, 57217 default: () => { 57218 } 57219 } 57220 }, 57221 computed: { 57222 alt() { 57223 var _a, _b; 57224 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57225 }, 57226 id() { 57227 var _a, _b; 57228 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57229 } 57230 } 57231}; 57232const _hoisted_1$D = ["aria-labelledby", "aria-label"]; 57233const _hoisted_2$v = ["id"]; 57234function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) { 57235 return openBlock(), createElementBlock("svg", { 57236 xmlns: "http://www.w3.org/2000/svg", 57237 width: "24", 57238 height: "24",
57239 viewBox: "0 0 24 24", 57240 fill: "none", 57241 role: "img", 57242 "aria-labelledby": `icon-title-${$options.id}`, 57243 "aria-label": $options.alt 57244 }, [ 57245 createBaseVNode("title", { 57246 id: `icon-title-${$options.id}` 57247 }, toDisplayString($options.alt), 9, _hoisted_2$v), 57248 _cache[0] || (_cache[0] = createBaseVNode("path", { 57249 d: "M3 5H5V3C3.9 3 3 3.9 3 5ZM3 13H5V11H3V13ZM7 21H9V19H7V21ZM3 9H5V7H3V9ZM13 3H11V5H13V3ZM19 3V5H21C21 3.9 20.1 3 19 3ZM5 21V19H3C3 20.1 3.9 21 5 21ZM3 17H5V15H3V17ZM9 3H7V5H9V3ZM11 21H13V19H11V21ZM19 13H21V11H19V13ZM19 21C20.1 21 21 20.1 21 19H19V21ZM19 9H21V7H19V9ZM19 17H21V15H19V17ZM15 21H17V19H15V21ZM15 5H17V3H15V5ZM7 17H17V7H7V17ZM9 9H15V15H9V9Z", 57250 fill: "currentColor" 57251 }, null, -1)) 57252 ], 8, _hoisted_1$D); 57253} 57254const CoreIconSelectAll = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$B]]); 57255const CoreIconSelectAll$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57256 __proto__: null, 57257 default: CoreIconSelectAll 57258}, Symbol.toStringTag, { value: "Module" })); 57259const _sfc_main$C = { 57260 props: { 57261 settings: { 57262 type: Object, 57263 required: false, 57264 default: () => ({ 57265 alt: "SEO", 57266 id: "seo" 57267 }) 57268 } 57269 }, 57270 computed: { 57271 alt() { 57272 var _a; 57273 return (_a = this.settings) == null ? void 0 : _a.alt; 57274 }, 57275 id() { 57276 var _a; 57277 return (_a = this.settings) == null ? void 0 : _a.id; 57278 } 57279 } 57280}; 57281const _hoisted_1$C = ["aria-labelledby", "aria-label"]; 57282const _hoisted_2$u = ["id"]; 57283function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) { 57284 return openBlock(), createElementBlock("svg", { 57285 width: "24", 57286 height: "24", 57287 viewBox: "0 0 24 24", 57288 fill: "none", 57289 xmlns: "http://www.w3.org/2000/svg", 57290 role: "img", 57291 "aria-labelledby": `icon-title-${$options.id}`, 57292 "aria-label": $options.alt 57293 }, [ 57294 createBaseVNode("title", { 57295 id: `icon-title-${$options.id}` 57296 }, toDisplayString($options.alt), 9, _hoisted_2$u), 57297 _cache[0] || (_cache[0] = createBaseVNode("circle", { 57298 cx: "10", 57299 cy: "10", 57300 r: "7", 57301 stroke: "currentColor", 57302 "stroke-width": "2", 57303 "stroke-linecap": "round", 57304 "stroke-linejoin": "round" 57305 }, null, -1)), 57306 _cache[1] || (_cache[1] = createBaseVNode("path", { 57307 d: "M15 15L21 21", 57308 stroke: "currentColor", 57309 "stroke-width": "2", 57310 "stroke-linecap": "round", 57311 "stroke-linejoin": "round" 57312 }, null, -1)), 57313 _cache[2] || (_cache[2] = createBaseVNode("path", { 57314 d: "M7 10L9 8L11 9L13 6", 57315 stroke: "currentColor", 57316 "stroke-width": "1.5", 57317 "stroke-linecap": "round", 57318 "stroke-linejoin": "round" 57319 }, null, -1)) 57320 ], 8, _hoisted_1$C); 57321} 57322const CoreIconSeo = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$A]]); 57323const CoreIconSeo$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57324 __proto__: null, 57325 default: CoreIconSeo 57326}, Symbol.toStringTag, { value: "Module" })); 57327const _sfc_main$B = { 57328 props: { 57329 settings: { 57330 type: Object, 57331 required: false 57332 } 57333 }, 57334 computed: { 57335 alt() { 57336 var _a, _b; 57337 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57338 }, 57339 id() { 57340 var _a, _b; 57341 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57342 } 57343 } 57344}; 57345const _hoisted_1$B = ["aria-labelledby", "aria-label"]; 57346const _hoisted_2$t = ["id"]; 57347function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) { 57348 return openBlock(), createElementBlock("svg", { 57349 width: "24", 57350 height: "24", 57351 viewBox: "0 0 24 24", 57352 fill: "none", 57353 xmlns: "http://www.w3.org/2000/svg", 57354 role: "img", 57355 "aria-labelledby": `icon-title-${$options.id}`, 57356 "aria-label": $options.alt 57357 }, [ 57358 createBaseVNode("title", { 57359 id: `icon-title-${$options.id}` 57360 }, toDisplayString($options.alt), 9, _hoisted_2$t), 57361 _cache[0] || (_cache[0] = createStaticVNode('<g clip-path="url(#clip0_23_744)"><path d="M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
57361<path d="M19.4 15C19.2669 15.3016 19.2272 15.6362 19.286 15.9606C19.3448 16.285 19.4995 16.5843 19.73 16.82L19.79 16.88C19.976 17.0657 20.1235 17.2863 20.2241 17.5291C20.3248 17.7719 20.3766 18.0322 20.3766 18.295C20.3766 18.5578 20.3248 18.8181 20.2241 19.0609C20.1235 19.3037 19.976 19.5243 19.79 19.71C19.6043 19.896 19.3837 20.0435 19.1409 20.1441C18.8981 20.2448 18.6378 20.2966 18.375 20.2966C18.1122 20.2966 17.8519 20.2448 17.6091 20.1441C17.3663 20.0435 17.1457 19.896 16.96 19.71L16.9 19.65C16.6643 19.4195 16.365 19.2648 16.0406 19.206C15.7162 19.1472 15.3816 19.1869 15.08 19.32C14.7842 19.4468 14.532 19.6572 14.3543 19.9255C14.1766 20.1938 14.0813 20.5082 14.08 20.83V21C14.08 21.5304 13.8693 22.0391 13.4942 22.4142C13.1191 22.7893 12.6104 23 12.08 23C11.5496 23 11.0409 22.7893 10.6658 22.4142C10.2907 22.0391 10.08 21.5304 10.08 21V20.91C10.0723 20.579 9.96512 20.258 9.77251 19.9887C9.5799 19.7194 9.31074 19.5143 9 19.4C8.69838 19.2669 8.36381 19.2272 8.03941 19.286C7.71502 19.3448 7.41568 19.4995 7.18 19.73L7.12 19.79C6.93425 19.976 6.71368 20.1235 6.47088 20.2241C6.22808 20.3248 5.96783 20.3766 5.705 20.3766C5.44217 20.3766 5.18192 20.3248 4.93912 20.2241C4.69632 20.1235 4.47575 19.976 4.29 19.79C4.10405 19.6043 3.95653 19.3837 3.85588 19.1409C3.75523 18.8981 3.70343 18.6378 3.70343 18.375C3.70343 18.1122 3.75523 17.8519 3.85588 17.6091C3.95653 17.3663 4.10405 17.1457 4.29 16.96L4.35 16.9C4.58054 16.6643 4.73519 16.365 4.794 16.0406C4.85282 15.7162 4.81312 15.3816 4.68 15.08C4.55324 14.7842 4.34276 14.532 4.07447 14.3543C3.80618 14.1766 3.49179 14.0813 3.17 14.08H3C2.46957 14.08 1.96086 13.8693 1.58579 13.4942C1.21071 13.1191 1 12.6104 1 12.08C1 11.5496 1.21071 11.0409 1.58579 10.6658C1.96086 10.2907 2.46957 10.08 3 10.08H3.09C3.42099 10.0723 3.742 9.96512 4.0113 9.77251C4.28059 9.5799 4.48572 9.31074 4.6 9C4.73312 8.69838 4.77282 8.36381 4.714 8.03941C4.65519 7.71502 4.50054 7.41568 4.27 7.18L4.21 7.12C4.02405 6.93425 3.87653 6.71368 3.77588 6.47088C3.67523 6.22808 3.62343 5.96783 3.62343 5.705C3.62343 5.44217 3.67523 5.18192 3.77588 4.93912C3.87653 4.69632 4.02405 4.47575 4.21 4.29C4.39575 4.10405 4.61632 3.95653 4.85912 3.85588C5.10192 3.75523 5.36217 3.70343 5.625 3.70343C5.88783 3.70343 6.14808 3.75523 6.39088 3.85588C6.63368 3.95653 6.85425 4.10405 7.04 4.29L7.1 4.35C7.33568 4.58054 7.63502 4.73519 7.95941 4.794C8.28381 4.85282 8.61838 4.81312 8.92 4.68H9C9.29577 4.55324 9.54802 4.34276 9.72569 4.07447C9.90337 3.80618 9.99872 3.49179 10 3.17V3C10 2.46957 10.2107 1.96086 10.5858 1.58579C10.9609 1.21071 11.4696 1 12 1C12.5304 1 13.0391 1.21071 13.4142 1.58579C13.7893 1.96086 14 2.46957 14 3V3.09C14.0013 3.41179 14.0966 3.72618 14.2743 3.99447C14.452 4.26276 14.7042 4.47324 15 4.6C15.3016 4.73312 15.6362 4.77282 15.9606 4.714C16.285 4.65519 16.5843 4.50054 16.82 4.27L16.88 4.21C17.0657 4.02405 17.2863 3.87653 17.5291 3.77588C17.7719 3.67523 18.0322 3.62343 18.295 3.62343C18.5578 3.62343 18.8181 3.67523 19.0609 3.77588C19.3037 3.87653 19.5243 4.02405 19.71 4.21C19.896 4.39575 20.0435 4.61632 20.1441 4.85912C20.2448 5.10192 20.2966 5.36217 20.2966 5.625C20.2966 5.88783 20.2448 6.14808 20.1441 6.39088C20.0435 6.63368 19.896 6.85425 19.71 7.04L19.65 7.1C19.4195 7.33568 19.2648 7.63502 19.206 7.95941C19.1472 8.28381 19.1869 8.61838 19.32 8.92V9C19.4468 9.29577 19.6572 9.54802 19.9255 9.72569C20.1938 9.90337 20.5082 9.99872 20.83 10H21C21.5304 10 22.0391 10.2107 22.4142 10.5858C22.7893 10.9609 23 11.4696 23 12C23 12.5304 22.7893 13.0391 22.4142 13.4142C22.0391 13.7893 21.5304 14 21 14H20.91C20.5882 14.0013 20.2738 14.0966 20.0055 14.2743C19.7372 14.452 19.5268 14.7042 19.4 15V15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_23_744"><rect width="24" height="24" fill="white"></rect></clipPath></defs>', 2)) 57362 ], 8, _hoisted_1$B); 57363} 57364const CoreIconSettings = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$z]]); 57365const CoreIconSettings$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57366 __proto__: null, 57367 default: CoreIconSettings 57368}, Symbol.toStringTag, { value: "Module" })); 57369const _sfc_main$A = { 57370 props: { 57371 settings: { 57372 type: Object, 57373 required: false, 57374 default: () => { 57375 } 57376 } 57377 }, 57378 computed: { 57379 alt() { 57380 var _a, _b; 57381 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57382 }, 57383 id() { 57384 var _a, _b; 57385 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57386 } 57387 } 57388}; 57389const _hoisted_1$A = ["aria-labelledby", "aria-label"]; 57390const _hoisted_2$s = ["id"]; 57391function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) { 57392 return openBlock(), createElementBlock("svg", { 57393 xmlns: "http://www.w3.org/2000/svg", 57394 width: "18", 57395 height: "17",
57396 viewBox: "0 0 18 17", 57397 fill: "currentColor", 57398 "aria-labelledby": `icon-title-${$options.id}`, 57399 "aria-label": $options.alt 57400 }, [ 57401 createBaseVNode("title", { 57402 id: `icon-title-${$options.id}` 57403 }, toDisplayString($options.alt), 9, _hoisted_2$s), 57404 _cache[0] || (_cache[0] = createBaseVNode("path", { 57405 "fill-rule": "evenodd", 57406 "clip-rule": "evenodd", 57407 d: "M1.125 8.5C1.125 4.15076 4.65076 0.625 9 0.625C13.3492 0.625 16.875 4.15076 16.875 8.5C16.875 12.8492 13.3492 16.375 9 16.375C4.65076 16.375 1.125 12.8492 1.125 8.5ZM12.9184 5.45114L9.01659 3.71943L5.1148 5.45114V8.06818C5.1148 10.585 6.77585 12.9069 9.01659 13.5974C11.2573 12.9069 12.9184 10.585 12.9184 8.06818V5.45114ZM4 4.72727L9.01659 2.5L14.0332 4.72727V8.06818C14.0332 11.1585 11.8928 14.0484 9.01659 14.75C6.14041 14.0484 4 11.1585 4 8.06818V4.72727Z", 57408 fill: "currentColor" 57409 }, null, -1)) 57410 ], 8, _hoisted_1$A); 57411} 57412const CoreIconShield = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$y]]); 57413const CoreIconShield$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57414 __proto__: null, 57415 default: CoreIconShield 57416}, Symbol.toStringTag, { value: "Module" })); 57417const _sfc_main$z = { 57418 props: { 57419 settings: { 57420 type: Object, 57421 required: false 57422 } 57423 }, 57424 computed: { 57425 alt() { 57426 var _a, _b; 57427 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57428 }, 57429 id() { 57430 var _a, _b; 57431 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57432 } 57433 } 57434}; 57435const _hoisted_1$z = ["aria-labelledby", "aria-label"]; 57436const _hoisted_2$r = ["id"]; 57437function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) { 57438 return openBlock(), createElementBlock("svg", { 57439 width: "24", 57440 height: "24", 57441 viewBox: "0 0 24 24", 57442 fill: "none", 57443 xmlns: "http://www.w3.org/2000/svg", 57444 role: "img", 57445 "aria-labelledby": `icon-title-${$options.id}`, 57446 "aria-label": $options.alt 57447 }, [ 57448 createBaseVNode("title", { 57449 id: `icon-title-${$options.id}` 57450 }, toDisplayString($options.alt), 9, _hoisted_2$r), 57451 _cache[0] || (_cache[0] = createBaseVNode("path", { 57452 d: "M18 6H16C16 3.79 14.21 2 12 2C9.79 2 8 3.79 8 6H6C4.9 6 4 6.9 4 8V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V8C20 6.9 19.1 6 18 6ZM12 4C13.1 4 14 4.9 14 6H10C10 4.9 10.9 4 12 4ZM18 20H6V8H8V10C8 10.55 8.45 11 9 11C9.55 11 10 10.55 10 10V8H14V10C14 10.55 14.45 11 15 11C15.55 11 16 10.55 16 10V8H18V20Z", 57453 fill: "currentColor" 57454 }, null, -1)) 57455 ], 8, _hoisted_1$z); 57456} 57457const CoreIconShoppingBag = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$x]]); 57458const CoreIconShoppingBag$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57459 __proto__: null, 57460 default: CoreIconShoppingBag 57461}, Symbol.toStringTag, { value: "Module" })); 57462const _sfc_main$y = { 57463 props: { 57464 settings: { 57465 type: Object, 57466 required: false 57467 } 57468 }, 57469 computed: { 57470 alt() { 57471 var _a, _b; 57472 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57473 }, 57474 id() { 57475 var _a, _b; 57476 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57477 } 57478 } 57479}; 57480const _hoisted_1$y = { 57481 width: "21", 57482 height: "20", 57483 fill: "none", 57484 xmlns: "http://www.w3.org/2000/svg" 57485}; 57486function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) { 57487 return openBlock(), createElementBlock("svg", _hoisted_1$y, _cache[0] || (_cache[0] = [ 57488 createBaseVNode("g", { 57489 "clip-path": "url(#a)", 57490 stroke: "#002840", 57491 "stroke-width": "1.667", 57492 "stroke-linecap": "round", 57493 "stroke-linejoin": "round" 57494 }, [ 57495 createBaseVNode("path", { d: "M8.001 18.333a.833.833 0 1 0 0-1.667.833.833 0 0 0 0 1.667ZM17.165 18.333a.833.833 0 1 0 0-1.667.833.833 0 0 0 0 1.667ZM1.332.834h3.333L6.9 11.992a1.667 1.667 0 0 0 1.666 1.342h8.1a1.666 1.666 0 0 0 1.667-1.342l1.333-6.991H5.5" }) 57496 ], -1), 57497 createBaseVNode("defs", null, [ 57498 createBaseVNode("clipPath", { id: "a" }, [ 57499 createBaseVNode("path", { 57500 fill: "#fff", 57501 transform: "translate(.5)", 57502 d: "M0 0h20v20H0z" 57503 }) 57504 ]) 57505 ], -1) 57506 ])); 57507} 57508const CoreIconShoppingCart = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$w]]); 57509const CoreIconShoppingCart$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57510 __proto__: null, 57511 default: CoreIconShoppingCart 57512}, Symbol.toStringTag, { value: "Module" })); 57513const _sfc_main$x = { 57514 inheritAttrs: false, 57515 props: { 57516 settings: { 57517 type: Object, 57518 default: () => ({}) 57519 } 57520 }, 57521 computed: { 57522 alt() { 57523 var _a, _b; 57524 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57525 }, 57526 id() { 57527 var _a, _b; 57528 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57529 } 57530 } 57531}; 57532const _hoisted_1$x = ["fill"]; 57533const _hoisted_2$q = ["fill"]; 57534function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) { 57535 return openBlock(), createElementBlock("svg", { 57536 xmlns: "http://www.w3.org/2000/svg", 57537 width: "16", 57538 height: "8",
57539 viewBox: "0 0 16 8", 57540 fill: _ctx.$attrs.fill || "none" 57541 }, [ 57542 createBaseVNode("path", { 57543 "fill-rule": "evenodd", 57544 "clip-rule": "evenodd", 57545 d: "M14.1698 1.42111C14.1698 1.03132 14.4857 0.715332 14.8755 0.715332C15.2653 0.715332 15.5813 1.03132 15.5813 1.42111V6.36153C15.5813 6.75131 15.2653 7.0673 14.8755 7.0673H14.6883C14.6454 7.07141 14.6026 7.07136 14.5603 7.0673H9.93511C9.54532 7.0673 9.22933 6.75131 9.22933 6.36153C9.22933 5.97174 9.54532 5.65575 9.93511 5.65575H13.3979C11.9867 3.60977 9.8714 2.44273 7.80398 2.36074C5.45303 2.2675 3.06238 3.57272 1.75496 6.84154C1.60855 7.20759 1.2026 7.38172 0.848238 7.23049C0.493879 7.07925 0.325302 6.6599 0.47171 6.29386C1.98732 2.50454 4.88979 0.809844 7.85725 0.927533C10.2075 1.02074 12.5327 2.24811 14.1698 4.33599V1.42111Z", 57546 fill: _ctx.$attrs.fill || "#989898" 57547 }, null, 8, _hoisted_2$q) 57548 ], 8, _hoisted_1$x); 57549} 57550const CoreIconSiteRedo = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$v]]); 57551const CoreIconSiteRedo$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57552 __proto__: null, 57553 default: CoreIconSiteRedo 57554}, Symbol.toStringTag, { value: "Module" })); 57555const _sfc_main$w = { 57556 props: { 57557 settings: { 57558 type: Object, 57559 required: false 57560 } 57561 }, 57562 computed: { 57563 alt() { 57564 var _a, _b; 57565 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57566 }, 57567 id() { 57568 var _a, _b; 57569 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57570 } 57571 } 57572}; 57573const _hoisted_1$w = ["aria-labelledby", "aria-label"]; 57574const _hoisted_2$p = ["id"]; 57575function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) { 57576 return openBlock(), createElementBlock("svg", { 57577 width: "24", 57578 height: "24", 57579 viewBox: "0 0 24 24", 57580 fill: "none", 57581 xmlns: "http://www.w3.org/2000/svg", 57582 role: "img", 57583 "aria-labelledby": $options.id, 57584 "aria-label": $options.alt 57585 }, [ 57586 createBaseVNode("title", { id: $options.id }, toDisplayString($options.alt), 9, _hoisted_2$p), 57587 _cache[0] || (_cache[0] = createStaticVNode('<path d="M12 22C6.49 22 2 17.51 2 12C2 6.49 6.49 2 12 2C17.51 2 22 6.04 22 11C22 14.31 19.31 17 16 17H14.23C13.95 17 13.73 17.22 13.73 17.5C13.73 17.62 13.78 17.73 13.86 17.83C14.27 18.3 14.5 18.89 14.5 19.5C14.5 20.88 13.38 22 12 22ZM12 4C7.59 4 4 7.59 4 12C4 16.41 7.59 20 12 20C12.28 20 12.5 19.78 12.5 19.5C12.5 19.34 12.42 19.22 12.36 19.15C11.95 18.69 11.73 18.1 11.73 17.5C11.73 16.12 12.85 15 14.23 15H16C18.21 15 20 13.21 20 11C20 7.14 16.41 4 12 4Z" fill="currentColor"></path><path d="M6.5 13C7.32843 13 8 12.3284 8 11.5C8 10.6716 7.32843 10 6.5 10C5.67157 10 5 10.6716 5 11.5C5 12.3284 5.67157 13 6.5 13Z" fill="currentColor"></path><path d="M9.5 9C10.3284 9 11 8.32843 11 7.5C11 6.67157 10.3284 6 9.5 6C8.67157 6 8 6.67157 8 7.5C8 8.32843 8.67157 9 9.5 9Z" fill="currentColor"></path><path d="M14.5 9C15.3284 9 16 8.32843 16 7.5C16 6.67157 15.3284 6 14.5 6C13.6716 6 13 6.67157 13 7.5C13 8.32843 13.6716 9 14.5 9Z" fill="currentColor"></path><path d="M17.5 13C18.3284 13 19 12.3284 19 11.5C19 10.6716 18.3284 10 17.5 10C16.6716 10 16 10.6716 16 11.5C16 12.3284 16.6716 13 17.5 13Z" fill="currentColor"></path>', 5)) 57588 ], 8, _hoisted_1$w); 57589} 57590const CoreIconSiteStyles = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$u]]); 57591const CoreIconSiteStyles$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57592 __proto__: null, 57593 default: CoreIconSiteStyles 57594}, Symbol.toStringTag, { value: "Module" })); 57595const _sfc_main$v = { 57596 inheritAttrs: false, 57597 props: { 57598 settings: { 57599 type: Object, 57600 required: false 57601 } 57602 }, 57603 computed: { 57604 alt() { 57605 var _a, _b; 57606 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57607 }, 57608 id() { 57609 var _a, _b; 57610 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57611 } 57612 } 57613}; 57614const _hoisted_1$v = ["fill"]; 57615const _hoisted_2$o = ["fill"]; 57616function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) { 57617 return openBlock(), createElementBlock("svg", { 57618 xmlns: "http://www.w3.org/2000/svg", 57619 width: "16", 57620 height: "8",
57621 viewBox: "0 0 16 8", 57622 fill: _ctx.$attrs.fill || "none" 57623 }, [ 57624 createBaseVNode("path", { 57625 "fill-rule": "evenodd", 57626 "clip-rule": "evenodd", 57627 d: "M1.83035 1.42091C1.83035 1.0311 1.51434 0.715088 1.12453 0.715088C0.73471 0.715088 0.418701 1.0311 0.418701 1.42091V6.36169C0.418701 6.75151 0.73471 7.06752 1.12453 7.06752H1.31315C1.35534 7.07151 1.39755 7.07145 1.43925 7.06752H6.06531C6.45512 7.06752 6.77113 6.75151 6.77113 6.36169C6.77113 5.97188 6.45512 5.65587 6.06531 5.65587H2.60257C4.01388 3.60968 6.12939 2.44253 8.19699 2.36053C10.5481 2.26728 12.9389 3.57259 14.2465 6.84165C14.3929 7.20772 14.7989 7.38188 15.1532 7.23063C15.5076 7.07938 15.6762 6.66 15.5298 6.29393C14.0141 2.50433 11.1114 0.809516 8.14372 0.927213C5.79309 1.02044 3.46753 2.24809 1.83035 4.33643V1.42091Z", 57628 fill: _ctx.$attrs.fill || "#989898" 57629 }, null, 8, _hoisted_2$o) 57630 ], 8, _hoisted_1$v); 57631} 57632const CoreIconSiteUndo = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$t]]); 57633const CoreIconSiteUndo$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57634 __proto__: null, 57635 default: CoreIconSiteUndo 57636}, Symbol.toStringTag, { value: "Module" })); 57637const _sfc_main$u = { 57638 props: { 57639 settings: { 57640 type: Object, 57641 required: false 57642 } 57643 }, 57644 computed: { 57645 alt() { 57646 var _a, _b; 57647 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57648 }, 57649 id() { 57650 var _a, _b; 57651 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57652 } 57653 } 57654}; 57655const _hoisted_1$u = ["aria-labelledby", "aria-label"]; 57656const _hoisted_2$n = ["id"]; 57657function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) { 57658 return openBlock(), createElementBlock("svg", { 57659 xmlns: "http://www.w3.org/2000/svg", 57660 width: "24", 57661 height: "25", 57662 viewBox: "0 0 24 25", 57663 fill: "none", 57664 role: "img", 57665 "aria-labelledby": $options.id, 57666 "aria-label": $options.alt 57667 }, [ 57668 createBaseVNode("title", { id: $options.id }, toDisplayString($options.alt), 9, _hoisted_2$n), 57669 _cache[0] || (_cache[0] = createStaticVNode('<path d="M3.88289 21.0391L19.9859 21.0391V19.0391L3.88289 19.0391V21.0391ZM3.27467 5.03906L20.5181 5.03906V3.03906L3.27467 3.03906L3.27467 5.03906ZM3 21.0391H5L5 3.03906L3 3.03906L3 21.0391Z" fill="currentColor"></path><path d="M5 21.0391H3L3 3.03906L5 3.03906L5 21.0391Z" fill="currentColor"></path><path d="M5 21.0391H3L3 3.03906L5 3.03906L5 21.0391Z" fill="currentColor"></path><path d="M21 21.0391H19L18.9989 3.03906L20.9989 3.03906L21 21.0391Z" fill="currentColor"></path><path d="M21 21.0391H19L18.9989 3.03906L20.9989 3.03906L21 21.0391Z" fill="currentColor"></path><path d="M15.6868 12.8726H17.6282V17.726H12.7748V15.7846H15.6868V12.8726Z" fill="currentColor"></path><path d="M11.2254 8.29389H8.31342V11.2059H6.37207V6.35254H11.2254V8.29389Z" fill="currentColor"></path>', 7)) 57670 ], 8, _hoisted_1$u); 57671} 57672const CoreIconSizing = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$s]]); 57673const CoreIconSizing$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57674 __proto__: null, 57675 default: CoreIconSizing 57676}, Symbol.toStringTag, { value: "Module" })); 57677const _sfc_main$t = { 57678 props: { 57679 settings: { 57680 type: Object, 57681 required: false 57682 } 57683 }, 57684 computed: { 57685 alt() { 57686 var _a, _b; 57687 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57688 }, 57689 id() { 57690 var _a, _b; 57691 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57692 } 57693 } 57694}; 57695const _hoisted_1$t = { 57696 width: "24", 57697 height: "24", 57698 viewBox: "0 0 24 24", 57699 fill: "none", 57700 xmlns: "http://www.w3.org/2000/svg", 57701 role: "img", 57702 "aria-labelledby": "socialicon", 57703 "aria-label": "socialicon" 57704}; 57705const _hoisted_2$m = { id: "socialicon" }; 57706function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) { 57707 return openBlock(), createElementBlock("svg", _hoisted_1$t, [ 57708 createBaseVNode("title", _hoisted_2$m, toDisplayString($options.alt), 1), 57709 _cache[0] || (_cache[0] = createBaseVNode("path", {
57710 d: "M21 9H14.69L15.64 4.43L15.67 4.11C15.67 3.7 15.5 3.32 15.23 3.05L14.17 2L7.59 8.59C7.22 8.95 7 9.45 7 10V20C7 21.1 7.9 22 9 22H18C18.83 22 19.54 21.5 19.84 20.78L22.86 13.73C22.95 13.5 23 13.26 23 13V11C23 9.9 22.1 9 21 9ZM21 13L18 20H9V10L13.34 5.66L12.23 11H21V13ZM1 10H5V22H1V10Z", 57711 fill: "currentColor" 57712 }, null, -1)) 57713 ]); 57714} 57715const CoreIconSocial = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$r]]); 57716const CoreIconSocial$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57717 __proto__: null, 57718 default: CoreIconSocial 57719}, Symbol.toStringTag, { value: "Module" })); 57720const _sfc_main$s = {}; 57721const _hoisted_1$s = { 57722 xmlns: "http://www.w3.org/2000/svg", 57723 width: "24", 57724 height: "24", 57725 viewBox: "0 0 24 24", 57726 fill: "none", 57727 stroke: "currentColor", 57728 "stroke-width": "2", 57729 "stroke-linecap": "round", 57730 "stroke-linejoin": "round", 57731 class: "feather feather-edit" 57732}; 57733function _sfc_render$q(_ctx, _cache) { 57734 return openBlock(), createElementBlock("svg", _hoisted_1$s, _cache[0] || (_cache[0] = [ 57735 createBaseVNode("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }, null, -1), 57736 createBaseVNode("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" }, null, -1) 57737 ])); 57738} 57739const CoreIconSquareEdit = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$q]]); 57740const CoreIconSquareEdit$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57741 __proto__: null, 57742 default: CoreIconSquareEdit 57743}, Symbol.toStringTag, { value: "Module" })); 57744const _sfc_main$r = { 57745 props: { 57746 settings: { 57747 type: Object, 57748 required: false 57749 } 57750 }, 57751 computed: { 57752 alt() { 57753 var _a, _b; 57754 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57755 }, 57756 id() { 57757 var _a, _b; 57758 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57759 } 57760 } 57761}; 57762const _hoisted_1$r = ["aria-labelledby", "aria-label"]; 57763const _hoisted_2$l = ["id"]; 57764function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) { 57765 return openBlock(), createElementBlock("svg", { 57766 width: "24", 57767 height: "24", 57768 viewBox: "0 0 24 24", 57769 fill: "none", 57770 xmlns: "http://www.w3.org/2000/svg", 57771 role: "img", 57772 "aria-labelledby": $options.id, 57773 "aria-label": $options.alt 57774 }, [ 57775 createBaseVNode("title", { id: $options.id }, toDisplayString($options.alt), 9, _hoisted_2$l), 57776 _cache[0] || (_cache[0] = createBaseVNode("path", { 57777 d: "M18.36 9L18.96 12H5.04L5.64 9H18.36ZM20 4H4V6H20V4ZM20 7H4L3 12V14H4V20H14V14H18V20H20V14H21V12L20 7ZM6 18V14H12V18H6Z", 57778 fill: "currentColor" 57779 }, null, -1)) 57780 ], 8, _hoisted_1$r); 57781} 57782const CoreIconStore = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p]]); 57783const CoreIconStore$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57784 __proto__: null, 57785 default: CoreIconStore 57786}, Symbol.toStringTag, { value: "Module" })); 57787const _sfc_main$q = { 57788 props: { 57789 settings: { 57790 type: Object, 57791 required: false 57792 } 57793 }, 57794 computed: { 57795 alt() { 57796 var _a, _b; 57797 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57798 }, 57799 id() { 57800 var _a, _b; 57801 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57802 } 57803 } 57804}; 57805const _hoisted_1$q = ["aria-labelledby", "aria-label"]; 57806const _hoisted_2$k = ["id"]; 57807function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) { 57808 return openBlock(), createElementBlock("svg", { 57809 width: "24", 57810 height: "24", 57811 viewBox: "0 0 24 24", 57812 fill: "none", 57813 xmlns: "http://www.w3.org/2000/svg", 57814 role: "img", 57815 "aria-labelledby": $options.id, 57816 "aria-label": $options.alt 57817 }, [ 57818 createBaseVNode("title", { id: $options.id }, toDisplayString($options.alt), 9, _hoisted_2$k), 57819 _cache[0] || (_cache[0] = createBaseVNode("path", { 57820 d: "M2 6L2 18C2 19.1046 2.89543 20 4 20L20 20C21.1046 20 22 19.1046 22 18L22 6C22 4.89543 21.1046 4 20 4L4 4C2.89543 4 2 4.89543 2 6Z", 57821 stroke: "currentColor", 57822 "stroke-width": "2", 57823 "stroke-linecap": "round", 57824 "stroke-linejoin": "round" 57825 }, null, -1)), 57826 _cache[1] || (_cache[1] = createBaseVNode("path", { 57827 d: "M18 12L18 11.99", 57828 stroke: "currentColor", 57829 "stroke-width": "2", 57830 "stroke-linecap": "round", 57831 "stroke-linejoin": "round" 57832 }, null, -1)) 57833 ], 8, _hoisted_1$q); 57834} 57835const CoreIconTablet = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$o]]); 57836const CoreIconTablet$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57837 __proto__: null, 57838 default: CoreIconTablet 57839}, Symbol.toStringTag, { value: "Module" })); 57840const _sfc_main$p = { 57841 props: { 57842 settings: { 57843 type: Object, 57844 required: false 57845 } 57846 }, 57847 computed: { 57848 alt() { 57849 var _a, _b; 57850 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57851 }, 57852 id() { 57853 var _a, _b; 57854 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57855 } 57856 } 57857}; 57858const _hoisted_1$p = ["aria-labelledby", "aria-label"]; 57859const _hoisted_2$j = ["id"]; 57860function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) { 57861 return openBlock(), createElementBlock("svg", { 57862 width: "24", 57863 height: "24",
57864 viewBox: "0 0 24 24", 57865 fill: "none", 57866 xmlns: "http://www.w3.org/2000/svg", 57867 role: "img", 57868 "aria-labelledby": $options.id, 57869 "aria-label": $options.alt 57870 }, [ 57871 createBaseVNode("title", { id: $options.id }, toDisplayString($options.alt), 9, _hoisted_2$j), 57872 _cache[0] || (_cache[0] = createBaseVNode("path", { 57873 d: "M3 19.5H20V21.5H3C1.9 21.5 1 20.6 1 19.5V6.5H3V19.5ZM23 6.5V15.5C23 16.6 22.1 17.5 21 17.5H7C5.9 17.5 5 16.6 5 15.5L5.01 4.5C5.01 3.4 5.9 2.5 7 2.5H12L14 4.5H21C22.1 4.5 23 5.4 23 6.5ZM7 15.5H21V6.5H13.17L11.17 4.5H7V15.5Z", 57874 fill: "currentColor" 57875 }, null, -1)) 57876 ], 8, _hoisted_1$p); 57877} 57878const CoreIconTabs = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$n]]); 57879const CoreIconTabs$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57880 __proto__: null, 57881 default: CoreIconTabs 57882}, Symbol.toStringTag, { value: "Module" })); 57883const _sfc_main$o = { 57884 props: { 57885 settings: { 57886 type: Object, 57887 required: false 57888 } 57889 }, 57890 computed: { 57891 alt() { 57892 var _a, _b; 57893 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57894 }, 57895 id() { 57896 var _a, _b; 57897 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57898 } 57899 } 57900}; 57901const _hoisted_1$o = { 57902 width: "24", 57903 height: "24", 57904 viewBox: "0 0 24 24", 57905 fill: "none", 57906 role: "img", 57907 xmlns: "http://www.w3.org/2000/svg" 57908}; 57909function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) { 57910 return openBlock(), createElementBlock("svg", _hoisted_1$o, _cache[0] || (_cache[0] = [ 57911 createStaticVNode('<path d="M9.67097 5.00002L8.0428 5.00002L8.0428 6.62819L9.67097 6.62819L9.67097 5.00002ZM6.41464 5.00002L4.78647 5.00002L4.78647 6.62819L6.41464 6.62819L6.41464 5.00002ZM16.1836 5.00002L14.5555 5.00002L14.5555 6.62819L16.1836 6.62819L16.1836 5.00002ZM12.9273 5.00002L11.2991 5.00002L11.2991 6.62819L12.9273 6.62819L12.9273 5.00002ZM6.41464 8.25635L4.78647 8.25635L4.78647 9.88452L6.41464 9.88452L6.41464 8.25635ZM6.41464 11.5127L4.78648 11.5127L4.78648 13.1409L6.41464 13.1409L6.41464 11.5127ZM6.41464 14.769L4.78648 14.769L4.78648 16.3972L6.41464 16.3972L6.41464 14.769Z" fill="currentColor"></path><path d="M9.67097 5.00002L8.0428 5.00002L8.0428 6.62819L9.67097 6.62819L9.67097 5.00002ZM6.41464 5.00002L4.78647 5.00002L4.78647 6.62819L6.41464 6.62819L6.41464 5.00002ZM16.1836 5.00002L14.5555 5.00002L14.5555 6.62819L16.1836 6.62819L16.1836 5.00002ZM12.9273 5.00002L11.2991 5.00002L11.2991 6.62819L12.9273 6.62819L12.9273 5.00002ZM6.41464 8.25635L4.78647 8.25635L4.78647 9.88452L6.41464 9.88452L6.41464 8.25635ZM6.41464 11.5127L4.78648 11.5127L4.78648 13.1409L6.41464 13.1409L6.41464 11.5127ZM6.41464 14.769L4.78648 14.769L4.78648 16.3972L6.41464 16.3972L6.41464 14.769Z" fill="currentColor"></path><path d="M4.78648 18.0046L6.41464 18.0046L6.41464 19.6328L4.78648 19.6328L4.78648 18.0046Z" fill="currentColor"></path><path d="M17.7566 5L19.3847 5L19.3847 6.62817L17.7566 6.62817L17.7566 5Z" fill="currentColor"></path><path d="M8.05078 8.15234V22.8058H22.7043V8.15234H8.05078ZM21.0761 21.1777H9.67895V9.78051H21.0761V21.1777Z" fill="currentColor"></path><path d="M1.5293 16.3976V1.74414H16.1828V3.37231H3.15746V16.3976H1.5293Z" fill="currentColor"></path>', 6) 57912 ])); 57913} 57914const CoreIconTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$m]]); 57915const CoreIconTemplate$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57916 __proto__: null, 57917 default: CoreIconTemplate 57918}, Symbol.toStringTag, { value: "Module" })); 57919const _sfc_main$n = { 57920 props: { 57921 settings: { 57922 type: Object, 57923 required: false 57924 } 57925 }, 57926 computed: { 57927 alt() { 57928 var _a, _b; 57929 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57930 }, 57931 id() { 57932 var _a, _b; 57933 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57934 } 57935 } 57936}; 57937const _hoisted_1$n = { 57938 width: "24", 57939 height: "24", 57940 viewBox: "0 0 24 24", 57941 fill: "none", 57942 xmlns: "http://www.w3.org/2000/svg", 57943 role: "img", 57944 "aria-labelledby": "textstyleicon", 57945 "aria-label": "textstyleicon" 57946}; 57947const _hoisted_2$i = { id: "textstyleicon" }; 57948function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) { 57949 return openBlock(), createElementBlock("svg", _hoisted_1$n, [ 57950 createBaseVNode("title", _hoisted_2$i, toDisplayString($options.alt), 1), 57951 _cache[0] || (_cache[0] = createBaseVNode("path", { 57952 d: "M2 18.5H22V22.5H2V18.5ZM5.49 15.5H7.91L9.18 11.92H14.83L16.09 15.5H18.51L13.25 1.5H10.75L5.49 15.5ZM9.91 9.89L11.94 4.1H12.06L14.09 9.89H9.91Z", 57953 fill: "currentColor" 57954 }, null, -1)) 57955 ]); 57956} 57957const CoreIconTextStyle = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$l]]); 57958const CoreIconTextStyle$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 57959 __proto__: null, 57960 default: CoreIconTextStyle 57961}, Symbol.toStringTag, { value: "Module" })); 57962const _sfc_main$m = { 57963 props: { 57964 settings: { 57965 type: Object, 57966 required: false 57967 } 57968 }, 57969 computed: { 57970 alt() { 57971 var _a, _b; 57972 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 57973 }, 57974 id() { 57975 var _a, _b; 57976 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 57977 } 57978 } 57979}; 57980const _hoisted_1$m = ["aria-labelledby", "aria-label"]; 57981const _hoisted_2$h = ["id"]; 57982function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) { 57983 return openBlock(), createElementBlock("svg", { 57984 width: "24", 57985 height: "24",
57986 viewBox: "0 0 24 24", 57987 fill: "none", 57988 xmlns: "http://www.w3.org/2000/svg", 57989 role: "img", 57990 "aria-labelledby": $options.id, 57991 "aria-label": $options.alt 57992 }, [ 57993 createBaseVNode("title", { id: $options.id }, toDisplayString($options.alt), 9, _hoisted_2$h), 57994 _cache[0] || (_cache[0] = createBaseVNode("path", { 57995 d: "M10 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H10V23H12V1H10V3ZM10 18H5L10 12V18ZM19 3H14V5H19V18L14 12V21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3Z", 57996 fill: "currentColor" 57997 }, null, -1)) 57998 ], 8, _hoisted_1$m); 57999} 58000const CoreIconTheme = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$k]]); 58001const CoreIconTheme$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58002 __proto__: null, 58003 default: CoreIconTheme 58004}, Symbol.toStringTag, { value: "Module" })); 58005const _sfc_main$l = { 58006 props: { 58007 settings: { 58008 type: Object, 58009 required: false 58010 } 58011 }, 58012 computed: { 58013 alt() { 58014 var _a, _b; 58015 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58016 }, 58017 id() { 58018 var _a, _b; 58019 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58020 } 58021 } 58022}; 58023const _hoisted_1$l = ["aria-labelledby", "aria-label"];
58024const _hoisted_2$g = ["id"]; 58025function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) { 58026 return openBlock(), createElementBlock("svg", { 58027 width: "24", 58028 height: "24", 58029 viewBox: "0 0 24 24", 58030 fill: "currentColor", 58031 xmlns: "http://www.w3.org/2000/svg", 58032 role: "img", 58033 "aria-labelledby": $options.id, 58034 "aria-label": $options.alt 58035 }, [ 58036 createBaseVNode("title", { id: $options.id }, toDisplayString($options.alt), 9, _hoisted_2$g), 58037 _cache[0] || (_cache[0] = createBaseVNode("path", { 58038 d: "m22.656 18.99-9.08-9.08c.93-2.34.45-5.1-1.44-7-2.3-2.3-5.88-2.51-8.43-.65l3.84 3.85-1.42 1.41-3.83-3.83c-1.86 2.54-1.65 6.13.65 8.42 1.86 1.86 4.57 2.35 6.89 1.48l9.11 9.11c.39.39 1.02.39 1.41 0l2.3-2.3c.4-.38.4-1.01 0-1.41Zm-3 1.6-9.46-9.46c-.61.45-1.29.72-2 .82-1.36.2-2.79-.21-3.83-1.25-.95-.94-1.39-2.2-1.32-3.44l3.09 3.09 4.24-4.24-3.09-3.09c1.24-.07 2.49.37 3.44 1.31a4.469 4.469 0 0 1 1.24 3.96 4.35 4.35 0 0 1-.88 1.96l9.45 9.45-.88.89Z", 58039 fill: "currentColor" 58040 }, null, -1)) 58041 ], 8, _hoisted_1$l); 58042} 58043const CoreIconTool = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$j]]); 58044const CoreIconTool$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58045 __proto__: null, 58046 default: CoreIconTool 58047}, Symbol.toStringTag, { value: "Module" })); 58048const _sfc_main$k = { 58049 name: "CoreIconCircleTrash", 58050 props: { 58051 settings: { 58052 type: Object, 58053 required: false 58054 }, 58055 click: { 58056 type: Function, 58057 default: () => { 58058 } 58059 }, 58060 size: { 58061 type: Number, 58062 default: 24 58063 } 58064 }, 58065 computed: { 58066 alt() { 58067 var _a, _b; 58068 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58069 }, 58070 id() { 58071 var _a, _b; 58072 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58073 } 58074 } 58075}; 58076const _hoisted_1$k = ["width", "height", "aria-labelledby", "aria-label"]; 58077const _hoisted_2$f = ["id"]; 58078function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) { 58079 return openBlock(), createElementBlock("svg", { 58080 width: $props.size, 58081 height: $props.size, 58082 viewBox: "0 0 24 24", 58083 fill: "none", 58084 xmlns: "http://www.w3.org/2000/svg", 58085 onClick: _cache[0] || (_cache[0] = (...args) => $props.click && $props.click(...args)), 58086 role: "img", 58087 "aria-labelledby": $options.id, 58088 "aria-label": $options.alt 58089 }, [ 58090 createBaseVNode("title", { id: $options.id }, toDisplayString($options.alt), 9, _hoisted_2$f), 58091 _cache[1] || (_cache[1] = createBaseVNode("path", { 58092 d: "M6 19.0391C6 20.1391 6.9 21.0391 8 21.0391H16C17.1 21.0391 18 20.1391 18 19.0391V7.03906H6V19.0391ZM8 9.03906H16V19.0391H8V9.03906ZM15.5 4.03906L14.5 3.03906H9.5L8.5 4.03906H5V6.03906H19V4.03906H15.5Z", 58093 fill: "currentColor" 58094 }, null, -1)) 58095 ], 8, _hoisted_1$k); 58096} 58097const CoreIconTrash = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i]]); 58098const CoreIconTrash$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58099 __proto__: null, 58100 default: CoreIconTrash 58101}, Symbol.toStringTag, { value: "Module" })); 58102const _sfc_main$j = { 58103 name: "CoreIconUndo", 58104 props: { 58105 settings: { 58106 type: Object, 58107 required: false 58108 } 58109 }, 58110 computed: { 58111 alt() { 58112 var _a, _b; 58113 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58114 }, 58115 id() { 58116 var _a, _b; 58117 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58118 } 58119 } 58120}; 58121const _hoisted_1$j = ["aria-labelledby", "aria-label"]; 58122const _hoisted_2$e = ["id"]; 58123function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) { 58124 return openBlock(), createElementBlock("svg", { 58125 width: "19", 58126 height: "18", 58127 viewBox: "0 0 19 18", 58128 fill: "none", 58129 xmlns: "http://www.w3.org/2000/svg", 58130 role: "img", 58131 "aria-labelledby": $options.id, 58132 "aria-label": $options.alt 58133 }, [ 58134 createBaseVNode("title", { id: $options.id }, toDisplayString($options.alt), 9, _hoisted_2$e), 58135 _cache[0] || (_cache[0] = createBaseVNode("path", { 58136 d: "M8.5 5V10L12.75 12.52L13.52 11.24L10 9.15V5H8.5ZM18.5 7V0L15.86 2.64C14.24 1.01 11.99 0 9.5 0C4.53 0 0.5 4.03 0.5 9C0.5 13.97 4.53 18 9.5 18C14.47 18 18.5 13.97 18.5 9H16.5C16.5 12.86 13.36 16 9.5 16C5.64 16 2.5 12.86 2.5 9
58136C2.5 5.14 5.64 2 9.5 2C11.43 2 13.18 2.79 14.45 4.05L11.5 7H18.5Z", 58137 fill: "currentColor" 58138 }, null, -1)) 58139 ], 8, _hoisted_1$j); 58140} 58141const CoreIconUndo = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$h]]); 58142const CoreIconUndo$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58143 __proto__: null, 58144 default: CoreIconUndo 58145}, Symbol.toStringTag, { value: "Module" })); 58146const _sfc_main$i = { 58147 props: { 58148 settings: { 58149 type: Object, 58150 required: false 58151 } 58152 }, 58153 computed: { 58154 alt() { 58155 var _a, _b; 58156 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58157 }, 58158 id() { 58159 var _a, _b; 58160 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58161 } 58162 } 58163}; 58164const _hoisted_1$i = ["aria-labelledby", "aria-label"]; 58165const _hoisted_2$d = ["id"]; 58166function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) { 58167 return openBlock(), createElementBlock("svg", { 58168 width: "24", 58169 height: "24", 58170 viewBox: "0 0 24 24", 58171 fill: "none", 58172 xmlns: "http://www.w3.org/2000/svg", 58173 role: "img", 58174 "aria-labelledby": $options.id, 58175 "aria-label": $options.alt 58176 }, [ 58177 createBaseVNode("title", { id: $options.id }, toDisplayString($options.alt), 9, _hoisted_2$d), 58178 _cache[0] || (_cache[0] = createBaseVNode("path", { 58179 d: "M18 8.5H17V6.5C17 3.74 14.76 1.5 12 1.5C9.24 1.5 7 3.74 7 6.5H9C9 4.84 10.34 3.5 12 3.5C13.66 3.5 15 4.84 15 6.5V8.5H6C4.9 8.5 4 9.4 4 10.5V20.5C4 21.6 4.9 22.5 6 22.5H18C19.1 22.5 20 21.6 20 20.5V10.5C20 9.4 19.1 8.5 18 8.5ZM18 20.5H6V10.5H18V20.5ZM12 17.5C13.1 17.5 14 16.6 14 15.5C14 14.4 13.1 13.5 12 13.5C10.9 13.5 10 14.4 10 15.5C10 16.6 10.9 17.5 12 17.5Z", 58180 fill: "currentColor" 58181 }, null, -1)) 58182 ], 8, _hoisted_1$i); 58183} 58184const CoreIconUnlock = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$g]]); 58185const CoreIconUnlock$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58186 __proto__: null, 58187 default: CoreIconUnlock 58188}, Symbol.toStringTag, { value: "Module" })); 58189const _sfc_main$h = { 58190 props: { 58191 settings: { 58192 type: Object, 58193 required: false 58194 } 58195 }, 58196 computed: { 58197 alt() { 58198 var _a, _b; 58199 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58200 }, 58201 id() { 58202 var _a, _b; 58203 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58204 } 58205 } 58206}; 58207const _hoisted_1$h = ["aria-labelledby", "aria-label"]; 58208const _hoisted_2$c = ["id"]; 58209function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) { 58210 return openBlock(), createElementBlock("svg", { 58211 width: "24", 58212 height: "24", 58213 viewBox: "0 0 24 24", 58214 fill: "none", 58215 xmlns: "http://www.w3.org/2000/svg", 58216 role: "img", 58217 "aria-labelledby": $options.id, 58218 "aria-label": $options.alt 58219 }, [ 58220 createBaseVNode("title", { id: $options.id }, toDisplayString($options.alt), 9, _hoisted_2$c), 58221 _cache[0] || (_cache[0] = createBaseVNode("path", { 58222 d: "M19 8L15 12H18C18 15.31 15.31 18 12 18C10.99 18 10.03 17.75 9.2 17.3L7.74 18.76C8.97 19.54 10.43 20 12 20C16.42 20 20 16.42 20 12H23L19 8ZM6 12C6 8.69 8.69 6 12 6C13.01 6 13.97 6.25 14.8 6.7L16.26 5.24C15.03 4.46 13.57 4 12 4C7.58 4 4 7.58 4 12H1L5 16L9 12H6Z", 58223 fill: "currentColor" 58224 }, null, -1)) 58225 ], 8, _hoisted_1$h); 58226} 58227const CoreIconUpdate = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$f]]); 58228const CoreIconUpdate$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58229 __proto__: null, 58230 default: CoreIconUpdate 58231}, Symbol.toStringTag, { value: "Module" })); 58232const _sfc_main$g = { 58233 props: { 58234 settings: { 58235 type: Object, 58236 required: false 58237 } 58238 }, 58239 computed: { 58240 alt() { 58241 var _a, _b; 58242 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58243 }, 58244 id() { 58245 var _a, _b; 58246 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58247 } 58248 } 58249}; 58250const _hoisted_1$g = ["aria-labelledby", "aria-label"];
58251const _hoisted_2$b = ["id"]; 58252function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) { 58253 return openBlock(), createElementBlock("svg", { 58254 width: "24", 58255 height: "24", 58256 viewBox: "0 0 24 24", 58257 fill: "none", 58258 xmlns: "http://www.w3.org/2000/svg", 58259 role: "img", 58260 "aria-labelledby": $options.id, 58261 "aria-label": $options.alt 58262 }, [ 58263 createBaseVNode("title", { id: $options.id }, toDisplayString($options.alt), 9, _hoisted_2$b), 58264 _cache[0] || (_cache[0] = createBaseVNode("path", { 58265 d: "M21 15V19C21 19.5304 20.7893 20.0391 20.4142 20.4142C20.0391 20.7893 19.5304 21 19 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V15", 58266 stroke: "currentColor", 58267 "stroke-width": "2", 58268 "stroke-linecap": "round", 58269 "stroke-linejoin": "round" 58270 }, null, -1)), 58271 _cache[1] || (_cache[1] = createBaseVNode("path", { 58272 d: "M17 8L12 3L7 8", 58273 stroke: "currentColor", 58274 "stroke-width": "2", 58275 "stroke-linecap": "round", 58276 "stroke-linejoin": "round" 58277 }, null, -1)), 58278 _cache[2] || (_cache[2] = createBaseVNode("path", { 58279 d: "M12 3V15", 58280 stroke: "currentColor", 58281 "stroke-width": "2", 58282 "stroke-linecap": "round", 58283 "stroke-linejoin": "round" 58284 }, null, -1)) 58285 ], 8, _hoisted_1$g); 58286} 58287const CoreIconUpload = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$e]]); 58288const CoreIconUpload$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58289 __proto__: null, 58290 default: CoreIconUpload 58291}, Symbol.toStringTag, { value: "Module" })); 58292const _hoisted_1$f = { 58293 width: "31", 58294 height: "30", 58295 viewBox: "0 0 31 30", 58296 fill: "none", 58297 xmlns: "http://www.w3.org/2000/svg" 58298}; 58299const _sfc_main$f = { 58300 __name: "CoreIconUser", 58301 props: { 58302 settings: { 58303 type: Object, 58304 required: false 58305 } 58306 }, 58307 setup(__props) { 58308 const props = __props; 58309 const alt = computed(() => { 58310 var _a, _b; 58311 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "User"; 58312 }); 58313 return (_ctx, _cache) => { 58314 return openBlock(), createElementBlock("svg", _hoisted_1$f, [ 58315 createBaseVNode("title", null, toDisplayString(unref(alt)), 1), 58316 _cache[0] || (_cache[0] = createBaseVNode("path", { 58317 d: "M25.9453 26.2499V23.7499C25.9453 22.4238 25.4185 21.152 24.4808 20.2143C23.5431 19.2766 22.2714 18.7499 20.9453 18.7499H10.9453C9.61923 18.7499 8.34746 19.2766 7.40978 20.2143C6.4721 21.152 5.94531 22.4238 5.94531 23.7499V26.2499", 58318 stroke: "currentColor", 58319 "stroke-width": "2.5", 58320 "stroke-linecap": "round", 58321 "stroke-linejoin": "round" 58322 }, null, -1)), 58323 _cache[1] || (_cache[1] = createBaseVNode("path", { 58324 d: "M15.9453 13.75C18.7067 13.75 20.9453 11.5114 20.9453 8.75001C20.9453 5.98859 18.7067 3.75002 15.9453 3.75002C13.1839 3.75002 10.9453 5.98859 10.9453 8.75001C10.9453 11.5114 13.1839 13.75 15.9453 13.75Z", 58325 stroke: "currentColor", 58326 "stroke-width": "2.5", 58327 "stroke-linecap": "round", 58328 "stroke-linejoin": "round" 58329 }, null, -1)) 58330 ]); 58331 }; 58332 } 58333}; 58334const CoreIconUser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58335 __proto__: null, 58336 default: _sfc_main$f 58337}, Symbol.toStringTag, { value: "Module" })); 58338const _sfc_main$e = {}; 58339const _hoisted_1$e = { 58340 xmlns: "http://www.w3.org/2000/svg", 58341 width: "24", 58342 height: "25", 58343 viewBox: "0 0 24 25", 58344 fill: "none", 58345 role: "img", 58346 "aria-label": "user-check-icon" 58347}; 58348function _sfc_render$d(_ctx, _cache) { 58349 return openBlock(), createElementBlock("svg", _hoisted_1$e, _cache[0] || (_cache[0] = [ 58350 createBaseVNode("path", { 58351 d: "M16 22.7012V20.7012C16 19.6403 15.5786 18.6229 14.8284 17.8727C14.0783 17.1226 13.0609 16.7012 12 16.7012H5C3.93913 16.7012 2.92172 17.1226 2.17157 17.8727C1.42143 18.6229 1 19.6403 1 20.7012V22.7012", 58352 stroke: "currentColor", 58353 "stroke-width": "2", 58354 "stroke-linecap": "round", 58355 "stroke-linejoin": "round" 58356 }, null, -1), 58357 createBaseVNode("path", { 58358 d: "M8.5 12.7012C10.7091 12.7012 12.5 10.9103 12.5 8.70117C12.5 6.49203 10.7091 4.70117 8.5 4.70117C6.29086 4.70117 4.5 6.49203 4.5 8.70117C4.5 10.9103 6.29086 12.7012 8.5 12.7012Z", 58359 stroke: "currentColor", 58360 "stroke-width": "2", 58361 "stroke-linecap": "round", 58362 "stroke-linejoin": "round" 58363 }, null, -1), 58364 createBaseVNode("path", { 58365 d: "M17 12.7012L19 14.7012L23 10.7012", 58366 stroke: "currentColor", 58367 "stroke-width": "2", 58368 "stroke-linecap": "round", 58369 "stroke-linejoin": "round" 58370 }, null, -1) 58371 ])); 58372} 58373const CoreIconUserCheck = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$d]]); 58374const CoreIconUserCheck$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58375 __proto__: null, 58376 default: CoreIconUserCheck 58377}, Symbol.toStringTag, { value: "Module" })); 58378const _sfc_main$d = { 58379 props: { 58380 settings: { 58381 type: Object, 58382 required: false 58383 } 58384 }, 58385 computed: { 58386 alt() { 58387 var _a, _b; 58388 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58389 }, 58390 id() { 58391 var _a, _b; 58392 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58393 } 58394 } 58395}; 58396const _hoisted_1$d = { 58397 width: "24", 58398 height: "25", 58399 viewBox: "0 0 24 25", 58400 fill: "none", 58401 xmlns: "http://www.w3.org/2000/svg", 58402 role: "img", 58403 "aria-labelledby": "videoicon", 58404 "aria-label": "videoicon" 58405}; 58406const _hoisted_2$a = { id: "videoicon" }; 58407function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) { 58408 return openBlock(), createElementBlock("svg", _hoisted_1$d, [ 58409 createBaseVNode("title", _hoisted_2$a, toDisplayString($options.alt), 1), 58410 _cache[0] || (_cache[0] = createBaseVNode("path", { 58411 d: "M20 4.03894V16.0389H8V4.03894H20ZM20 2.03894H8C6.9 2.03894 6 2.93894 6 4.03894V16.0389C6 17.1389 6.9 18.0389 8 18.0389H20C21.1 18.0389 22 17.1389 22 16.0389V4.03894C22 2.93894 21.1 2.03894 20 2.03894ZM11.5 11.7089L13.19 13.9689L15.67 10.8689L19 15.0389H9L11.5 11.7089ZM2 6.03894V20.0389C2 21.1389 2.9 22.0389 4 22.0389H18V20.0389H4V6.03894H2Z", 58412 fill: "currentColor" 58413 }, null, -1)) 58414 ]); 58415} 58416const CoreIconVideo = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c]]); 58417const CoreIconVideo$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58418 __proto__: null, 58419 default: CoreIconVideo 58420}, Symbol.toStringTag, { value: "Module" })); 58421const _sfc_main$c = { 58422 props: { 58423 settings: { 58424 type: Object, 58425 required: false 58426 } 58427 }, 58428 computed: { 58429 alt() { 58430 var _a, _b; 58431 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58432 }, 58433 id() { 58434 var _a, _b; 58435 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58436 } 58437 } 58438}; 58439const _hoisted_1$c = ["aria-label"]; 58440function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) { 58441 return openBlock(), createElementBlock("svg", { 58442 width: "24", 58443 height: "24", 58444 version: "1.1", 58445 xmlns: "http://www.w3.org/2000/svg", 58446 "xmlns:xlink": "http://www.w3.org/1999/xlink",
58447 viewBox: "0 0 31 31", 58448 "aria-label": $options.alt, 58449 fill: "currentColor", 58450 stroke: "currentColor" 58451 }, _cache[0] || (_cache[0] = [ 58452 createBaseVNode("path", { d: "M15.7,1.7C8.2,1.7,2.2,7.7,2.2,15.2c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5\n C29.2,7.7,23.1,1.7,15.7,1.7z M15.7,26.7c-6.3,0-11.5-5.2-11.5-11.5c0-6.3,5.2-11.5,11.5-11.5c6.3,0,11.5,5.2,11.5,11.5\n C27.2,21.5,22,26.7,15.7,26.7z" }, null, -1), 58453 createBaseVNode("path", { 58454 style: { "stroke-width": "2.0833", "stroke-linecap": "round", "stroke-linejoin": "round" }, 58455 d: "M13.2,10.2l7.5,5l-7.5,5V10.2z" 58456 }, null, -1) 58457 ]), 8, _hoisted_1$c); 58458} 58459const CoreIconVideoPlay = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b]]); 58460const CoreIconVideoPlay$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58461 __proto__: null, 58462 default: CoreIconVideoPlay 58463}, Symbol.toStringTag, { value: "Module" })); 58464const _sfc_main$b = { 58465 props: { 58466 settings: { 58467 type: Object, 58468 required: false 58469 } 58470 }, 58471 computed: { 58472 alt() { 58473 var _a, _b; 58474 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58475 }, 58476 id() { 58477 var _a, _b; 58478 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58479 } 58480 } 58481}; 58482const _hoisted_1$b = ["aria-labelledby", "aria-label"]; 58483const _hoisted_2$9 = ["id"]; 58484function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) { 58485 return openBlock(), createElementBlock("svg", { 58486 width: "24", 58487 height: "24", 58488 viewBox: "0 0 24 24", 58489 fill: "none", 58490 xmlns: "http://www.w3.org/2000/svg", 58491 role: "img", 58492 "aria-labelledby": $options.id, 58493 "aria-label": $options.alt 58494 }, [ 58495 createBaseVNode("title", { id: $options.id }, toDisplayString($options.alt), 9, _hoisted_2$9), 58496 _cache[0] || (_cache[0] = createBaseVNode("path", { 58497 d: "M19.6541 3.18701H3.65405C2.54948 3.18701 1.65405 4.08244 1.65405 5.18701V15.187C1.65405 16.2916 2.54948 17.187 3.65405 17.187H19.6541C20.7586 17.187 21.6541 16.2916 21.6541 15.187V5.18701C21.6541 4.08244 20.7586 3.18701 19.6541 3.18701Z", 58498 stroke: "currentColor", 58499 "stroke-width": "2", 58500 "stroke-linecap": "round", 58501 "stroke-linejoin": "round" 58502 }, null, -1)), 58503 _cache[1] || (_cache[1] = createBaseVNode("path", { 58504 d: "M7.65405 21.187H15.6541", 58505 stroke: "currentColor", 58506 "stroke-width": "2", 58507 "stroke-linecap": "round", 58508 "stroke-linejoin": "round" 58509 }, null, -1)), 58510 _cache[2] || (_cache[2] = createBaseVNode("path", { 58511 d: "M11.6541 17.187V21.187", 58512 stroke: "currentColor", 58513 "stroke-width": "2", 58514 "stroke-linecap": "round", 58515 "stroke-linejoin": "round" 58516 }, null, -1)) 58517 ], 8, _hoisted_1$b); 58518} 58519const CoreIconViewDesktop = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a]]); 58520const CoreIconViewDesktop$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58521 __proto__: null, 58522 default: CoreIconViewDesktop 58523}, Symbol.toStringTag, { value: "Module" })); 58524const _hoisted_1$a = { 58525 width: "31", 58526 height: "30", 58527 viewBox: "0 0 31 30", 58528 fill: "none", 58529 xmlns: "http://www.w3.org/2000/svg" 58530}; 58531const _sfc_main$a = { 58532 __name: "CoreIconViewDesktopSettings", 58533 props: { 58534 settings: { 58535 type: Object, 58536 required: false 58537 } 58538 }, 58539 setup(__props) { 58540 const props = __props; 58541 const alt = computed(() => { 58542 var _a, _b; 58543 return ((_a = props.settings) == null ? void 0 : _a.alt) || ((_b = props.settings) == null ? void 0 : _b.icon) || "View Desktop Settings"; 58544 }); 58545 return (_ctx, _cache) => { 58546 return openBlock(), createElementBlock("svg", _hoisted_1$a, [ 58547 createBaseVNode("title", null, toDisplayString(unref(alt)), 1), 58548 _cache[0] || (_cache[0] = createStaticVNode('<g clip-path="url(#clip0_2131_12558)"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.44772 7.97951C5.44772 7.42656 5.89598 6.9783 6.44893 6.9783H22.4682C23.0212 6.9783 23.4694 7.42656 23.4694 7.97951V9.68742H25.4718V7.97951C25.4718 6.32066 24.1271 4.97589 22.4682 4.97589H6.44893C4.79008 4.97589 3.44531 6.32066 3.44531 7.97951V17.99
5854816C3.44531 19.6504 4.79008 20.9952 6.44893 20.9952H13.4551V22.9977H10.4524C9.89943 22.9977 9.45117 23.4459 9.45117 23.9989C9.45117 24.5518 9.89943 25.0001 10.4524 25.0001H18.462C19.015 25.0001 19.4632 24.5518 19.4632 23.9989C19.4632 23.4459 19.015 22.9977 18.462 22.9977H15.4575V20.9952H17.5811V18.9928H14.4718L14.4563 18.9927L14.4407 18.9928H6.44893C5.89598 18.9928 5.44772 18.5445 5.44772 17.9916V7.97951Z" fill="currentColor"></path><path d="M24.0732 18.4092C24.9204 18.4092 25.6072 17.7224 25.6072 16.8751C25.6072 16.0279 24.9204 15.341 24.0732 15.341C23.2259 15.341 22.5391 16.0279 22.5391 16.8751C22.5391 17.7224 23.2259 18.4092 24.0732 18.4092Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path><path d="M27.8544 18.4091C27.7863 18.5633 27.766 18.7344 27.7961 18.9003C27.8262 19.0662 27.9053 19.2193 28.0232 19.3398L28.0538 19.3705C28.1489 19.4654 28.2244 19.5782 28.2758 19.7024C28.3273 19.8265 28.3538 19.9596 28.3538 20.094C28.3538 20.2284 28.3273 20.3615 28.2758 20.4857C28.2244 20.6098 28.1489 20.7226 28.0538 20.8176C27.9589 20.9127 27.8461 20.9881 27.7219 21.0396C27.5977 21.0911 27.4647 21.1176 27.3303 21.1176C27.1959 21.1176 27.0628 21.0911 26.9386 21.0396C26.8145 20.9881 26.7017 20.9127 26.6067 20.8176L26.576 20.7869C26.4555 20.669 26.3024 20.59 26.1365 20.5599C25.9706 20.5298 25.7995 20.5501 25.6453 20.6182C25.4941 20.683 25.3651 20.7906 25.2742 20.9278C25.1834 21.065 25.1346 21.2258 25.1339 21.3903V21.4773C25.1339 21.7485 25.0262 22.0087 24.8344 22.2004C24.6426 22.3922 24.3825 22.5 24.1112 22.5C23.84 22.5 23.5798 22.3922 23.388 22.2004C23.1962 22.0087 23.0885 21.7485 23.0885 21.4773V21.4312C23.0845 21.262 23.0297 21.0978 22.9313 20.9601C22.8328 20.8224 22.6951 20.7175 22.5362 20.6591C22.382 20.591 22.2109 20.5707 22.045 20.6008C21.8791 20.6309 21.7261 20.71 21.6055 20.8278L21.5749 20.8585C21.4799 20.9536 21.3671 21.029 21.2429 21.0805C21.1188 21.132 20.9857 21.1585 20.8513 21.1585C20.7169 21.1585 20.5838 21.132 20.4596 21.0805C20.3355 21.029 20.2227 20.9536 20.1277 20.8585C20.0326 20.7635 19.9572 20.6507 19.9057 20.5266C19.8542 20.4024 19.8277 20.2693 19.8277 20.1349C19.8277 20.0005 19.8542 19.8675 19.9057 19.7433C19.9572 19.6191 20.0326 19.5063 20.1277 19.4114L20.1584 19.3807C20.2763 19.2602 20.3554 19.1071 20.3854 18.9412C20.4155 18.7753 20.3952 18.6042 20.3271 18.45C20.2623 18.2988 20.1547 18.1698 20.0175 18.0789C19.8803 17.9881 19.7195 17.9393 19.555 17.9386H19.468C19.1968 17.9386 18.9367 17.8309 18.7449 17.6391C18.5531 17.4473 18.4453 17.1872 18.4453 16.9159C18.4453 16.6447 18.5531 16.3845 18.7449 16.1927C18.9367 16.0009 19.1968 15.8932 19.468 15.8932H19.5141C19.6833 15.8892 19.8475 15.8344 19.9852 15.7359C20.1229 15.6375 20.2278 15.4998 20.2862 15.3409C20.3543 15.1867 20.3746 15.0156 20.3445 14.8497C20.3144 14.6838 20.2354 14.5307 20.1175 14.4102L20.0868 14.3795C19.9917 14.2846 19.9163 14.1718 19.8648 14.0476C19.8133 13.9235 19.7868 13.7904 19.7868 13.656C19.7868 13.5216 19.8133 13.3885 19.8648 13.2643C19.9163 13.1402 19.9917 13.0274 20.0868 12.9324C20.1818 12.8373 20.2946 12.7619 20.4187 12.7104C20.5429 12.6589 20.676 12.6324 20.8104 12.6324C20.9448 12.6324 21.0779 12.6589 21.202 12.7104C21.3262 12.7619 21.439 12.8373 21.5339 12.9324L21.5646 12.9631C21.6851 13.081 21.8382 13.16 22.0041 13.1901C22.17 13.2202 22.3411 13.1999 22.4953 13.1318H22.5362C22.6875 13.067 22.8165 12.9594 22.9073 12.8222C22.9982 12.685 23.0469 12.5242 23.0476 12.3597V12.2727C23.0476 12.0015 23.1553 11.7413 23.3471 11.5495C23.5389 11.3578 23.7991 11.25 24.0703 11.25C24.3416 11.25 24.6017 11.3578 24.7935 11.5495C24.9853 11.7413 25.093 12.0015 25.093 12.2727V12.3187C25.0937 12.4833 25.1425 12.6441 25.2333 12.7813C25.3242 12.9185 25.4532 13.0261 25.6044 13.0909C25.7586 13.159 25.9297 13.1793 26.0956 13.1492C26.2615 13.1191 26.4146 13.04 26.5351 12.9222L26.5658 12.8915C26.6608 12.7964 26.7735 12.721 26.8977 12.6695C27.0219 12.618 27.1549 12.5915 27.2893 12.5915C27.4237 12.5915 27.5568 12.618 27.681 12.6695C27.8051 12.721 27.9179 12.7964 28.0129 12.8915C28.108 12.9865 28.1835 13.0993 28.2349 13.2234C28.2864 13.3476 28.3129 13.4807 28.3129 13.6151C28.3129 13.7495 28.2864 13.8825 28.2349 14.0067C28.1835 14.1309 28.108 14.2437 28.0129 14.3386L27.9822 14.3693C27.8644 14.4898 27.7853 14.6429 27.7552 14.8088C27.7251 14.9747 27.7454 15.1458 27.8135 15.3V15.3409C27.8783 15.4922 27.9859 15.6211 28.1231 15.712C28.2603 15.8029 28.4211 15.8516 28.5857 15.8523H28.6726C28.9438 15.8523 29.204 15.96 29.3958 16.1518C29.5876 16.3436 29.6953 16.6038 29.6953 16.875C29.6953 17.1462 29.5876 17.4064 29.3958 17.5982C29.204 17.79 28.9438 17.8977 28.6726 17.8977H28.6266C28.462 17.8984 28.3012 17.9471 28.1641 18.038C28.0269 18.1289 27.9192 18.2578 27.8544 18.4091Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_2131_12558"><rect width="30" height="30" fill="white" transform="translate(0.945312)"></rect></clipPath></defs>', 2)) 58549 ]); 58550 }; 58551 } 58552}; 58553const CoreIconViewDesktopSettings = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58554 __proto__: null, 58555 default: _sfc_main$a 58556}
58556, Symbol.toStringTag, { value: "Module" })); 58557const _sfc_main$9 = {}; 58558const _hoisted_1$9 = { 58559 xmlns: "http://www.w3.org/2000/svg", 58560 width: "24", 58561 height: "24", 58562 viewBox: "0 0 24 24", 58563 fill: "none" 58564}; 58565function _sfc_render$9(_ctx, _cache) { 58566 return openBlock(), createElementBlock("svg", _hoisted_1$9, _cache[0] || (_cache[0] = [ 58567 createBaseVNode("path", { 58568 d: "M18 13V19C18 19.5304 17.7893 20.0391 17.4142 20.4142C17.0391 20.7893 16.5304 21 16 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V8C3 7.46957 3.21071 6.96086 3.58579 6.58579C3.96086 6.21071 4.46957 6 5 6H11", 58569 stroke: "black", 58570 "stroke-width": "2", 58571 "stroke-linecap": "round", 58572 "stroke-linejoin": "round" 58573 }, null, -1), 58574 createBaseVNode("path", { 58575 d: "M15 3H21V9", 58576 stroke: "black", 58577 "stroke-width": "2", 58578 "stroke-linecap": "round", 58579 "stroke-linejoin": "round" 58580 }, null, -1), 58581 createBaseVNode("path", { 58582 d: "M10 14L21 3", 58583 stroke: "black", 58584 "stroke-width": "2", 58585 "stroke-linecap": "round", 58586 "stroke-linejoin": "round" 58587 }, null, -1) 58588 ])); 58589} 58590const CoreIconViewLiveSite = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9]]); 58591const CoreIconViewLiveSite$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58592 __proto__: null, 58593 default: CoreIconViewLiveSite 58594}, Symbol.toStringTag, { value: "Module" })); 58595const _sfc_main$8 = { 58596 props: { 58597 settings: { 58598 type: Object, 58599 required: false 58600 } 58601 }, 58602 computed: { 58603 alt() { 58604 var _a, _b; 58605 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58606 }, 58607 id() { 58608 var _a, _b; 58609 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58610 } 58611 } 58612}; 58613const _hoisted_1$8 = ["aria-labelledby", "aria-label"]; 58614const _hoisted_2$8 = ["id"]; 58615function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) { 58616 return openBlock(), createElementBlock("svg", { 58617 width: "24", 58618 height: "24", 58619 viewBox: "0 0 24 24", 58620 fill: "none", 58621 xmlns: "http://www.w3.org/2000/svg", 58622 role: "img", 58623 "aria-labelledby": `icon-title-${$options.id}`, 58624 "aria-label": $options.alt 58625 }, [ 58626 createBaseVNode("title", { 58627 id: `icon-title-${$options.id}` 58628 }, toDisplayString($options.alt), 9, _hoisted_2$8), 58629 _cache[0] || (_cache[0] = createBaseVNode("path", { 58630 d: "M12 5.97505C15.79 5.97505 19.17 8.10505 20.82 11.475C20.23 12.695 19.4 13.745 18.41 14.595L19.82 16.005C21.21 14.775 22.31 13.235 23 11.475C21.27 7.08505 17 3.97505 12 3.97505C10.73 3.97505 9.51 4.17505 8.36 4.54505L10.01 6.19505C10.66 6.06505 11.32 5.97505 12 5.97505ZM10.93 7.11505L13 9.18505C13.57 9.43505 14.03 9.89505 14.28 10.465L16.35 12.535C16.43 12.195 16.49 11.835 16.49 11.465C16.5 8.98505 14.48 6.97505 12 6.97505C11.63 6.97505 11.28 7.02505 10.93 7.11505ZM2.01 3.84505L4.69 6.52505C3.06 7.80505 1.77 9.50505 1 11.475C2.73 15.865 7 18.975 12 18.975C13.52 18.975 14.98 18.685 16.32 18.155L19.74 21.575L21.15 20.165L3.42 2.42505L2.01 3.84505ZM9.51 11.345L12.12 13.955C12.08 13.965 12.04 13.975 12 13.975C10.62 13.975 9.5 12.855 9.5 11.475C9.5 11.425 9.51 11.395 9.51 11.345ZM6.11 7.94505L7.86 9.69505C7.63 10.245 7.5 10.845 7.5 11.475C7.5 13.955 9.52 15.975 12 15.975C12.63 15.975 13.23 15.845 13.77 15.615L14.75 16.595C13.87 16.835 12.95 16.975 12 16.975C8.21 16.975 4.83 14.845 3.18 11.475C3.88 10.045 4.9 8.86505 6.11 7.94505Z", 58631 fill: "currentColor" 58632 }, null, -1)) 58633 ], 8, _hoisted_1$8); 58634} 58635const CoreIconVisibilityOff = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]); 58636const CoreIconVisibilityOff$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58637 __proto__: null, 58638 default: CoreIconVisibilityOff 58639}, Symbol.toStringTag, { value: "Module" })); 58640const _sfc_main$7 = { 58641 props: { 58642 settings: { 58643 type: Object, 58644 required: false 58645 } 58646 }, 58647 computed: { 58648 alt() { 58649 var _a, _b; 58650 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58651 }, 58652 id() { 58653 var _a, _b; 58654 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58655 } 58656 } 58657}; 58658const _hoisted_1$7 = ["aria-labelledby", "aria-label"]; 58659const _hoisted_2$7 = ["id"]; 58660function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) { 58661 return openBlock(), createElementBlock("svg", { 58662 width: "24", 58663 height: "24",
58664 viewBox: "0 0 24 24", 58665 fill: "none", 58666 xmlns: "http://www.w3.org/2000/svg", 58667 role: "img", 58668 "aria-labelledby": `icon-title-${$options.id}`, 58669 "aria-label": $options.alt 58670 }, [ 58671 createBaseVNode("title", { 58672 id: `icon-title-${$options.id}` 58673 }, toDisplayString($options.alt), 9, _hoisted_2$7), 58674 _cache[0] || (_cache[0] = createBaseVNode("path", { 58675 d: "M12 6.5C15.79 6.5 19.17 8.63 20.82 12C19.17 15.37 15.79 17.5 12 17.5C8.21 17.5 4.83 15.37 3.18 12C4.83 8.63 8.21 6.5 12 6.5ZM12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 9.5C13.38 9.5 14.5 10.62 14.5 12C14.5 13.38 13.38 14.5 12 14.5C10.62 14.5 9.5 13.38 9.5 12C9.5 10.62 10.62 9.5 12 9.5ZM12 7.5C9.52 7.5 7.5 9.52 7.5 12C7.5 14.48 9.52 16.5 12 16.5C14.48 16.5 16.5 14.48 16.5 12C16.5 9.52 14.48 7.5 12 7.5Z", 58676 fill: "currentColor" 58677 }, null, -1)) 58678 ], 8, _hoisted_1$7); 58679} 58680const CoreIconVisibilityOn = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]); 58681const CoreIconVisibilityOn$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58682 __proto__: null, 58683 default: CoreIconVisibilityOn 58684}, Symbol.toStringTag, { value: "Module" })); 58685const _sfc_main$6 = { 58686 props: { 58687 settings: { 58688 type: Object, 58689 required: false 58690 } 58691 }, 58692 computed: { 58693 alt() { 58694 var _a, _b; 58695 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58696 }, 58697 id() { 58698 var _a, _b; 58699 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58700 } 58701 } 58702}; 58703const _hoisted_1$6 = ["aria-labelledby", "aria-label"]; 58704const _hoisted_2$6 = ["id"]; 58705function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) { 58706 return openBlock(), createElementBlock("svg", { 58707 width: "24", 58708 height: "24", 58709 viewBox: "0 0 24 24", 58710 fill: "none", 58711 xmlns: "http://www.w3.org/2000/svg", 58712 role: "img", 58713 "aria-labelledby": `icon-title-${$options.id}`, 58714 "aria-label": $options.alt 58715 }, [ 58716 createBaseVNode("title", { 58717 id: `icon-title-${$options.id}` 58718 }, toDisplayString($options.alt), 9, _hoisted_2$6), 58719 _cache[0] || (_cache[0] = createStaticVNode('<g clip-path="url(#clip0_153_329)"><path d="M11 5L6 9H2V15H6L11 19V5Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M23 9L17 15" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 9L23 15" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_153_329"><rect width="24" height="24" fill="white"></rect></clipPath></defs>', 2)) 58720 ], 8, _hoisted_1$6); 58721} 58722const CoreIconVolumeOff = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]); 58723const CoreIconVolumeOff$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58724 __proto__: null, 58725 default: CoreIconVolumeOff 58726}, Symbol.toStringTag, { value: "Module" })); 58727const _sfc_main$5 = { 58728 props: { 58729 settings: { 58730 type: Object, 58731 required: false 58732 } 58733 }, 58734 computed: { 58735 alt() { 58736 var _a, _b; 58737 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58738 }, 58739 id() { 58740 var _a, _b; 58741 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58742 } 58743 } 58744}; 58745const _hoisted_1$5 = ["aria-labelledby", "aria-label"]; 58746const _hoisted_2$5 = ["id"]; 58747function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) { 58748 return openBlock(), createElementBlock("svg", { 58749 width: "24", 58750 height: "24", 58751 viewBox: "0 0 24 24", 58752 fill: "none", 58753 xmlns: "http://www.w3.org/2000/svg", 58754 role: "img", 58755 "aria-labelledby": `icon-title-${$options.id}`, 58756 "aria-label": $options.alt 58757 }, [ 58758 createBaseVNode("title", { 58759 id: `icon-title-${$options.id}` 58760 }, toDisplayString($options.alt), 9, _hoisted_2$5), 58761 _cache[0] || (_cache[0] = createBaseVNode("path", {
58762 d: "M10.9143 4.71802L5.91431 8.71802H1.91431V14.718H5.91431L10.9143 18.718V4.71802Z", 58763 stroke: "currentColor", 58764 "stroke-width": "2", 58765 "stroke-linecap": "round", 58766 "stroke-linejoin": "round" 58767 }, null, -1)) 58768 ], 8, _hoisted_1$5); 58769} 58770const CoreIconVolumeOn = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]); 58771const CoreIconVolumeOn$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58772 __proto__: null, 58773 default: CoreIconVolumeOn 58774}, Symbol.toStringTag, { value: "Module" })); 58775const _sfc_main$4 = { 58776 props: { 58777 settings: { 58778 type: Object, 58779 required: false 58780 } 58781 }, 58782 computed: { 58783 alt() { 58784 var _a, _b; 58785 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58786 }, 58787 id() { 58788 var _a, _b; 58789 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58790 } 58791 } 58792}; 58793const _hoisted_1$4 = ["aria-labelledby", "aria-label"]; 58794const _hoisted_2$4 = ["id"]; 58795function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) { 58796 return openBlock(), createElementBlock("svg", { 58797 width: "24", 58798 height: "24", 58799 viewBox: "0 0 24 24", 58800 fill: "none", 58801 xmlns: "http://www.w3.org/2000/svg", 58802 role: "img", 58803 "aria-labelledby": `icon-title-${$options.id}`, 58804 "aria-label": $options.alt 58805 }, [ 58806 createBaseVNode("title", { 58807 id: `icon-title-${$options.id}` 58808 }, toDisplayString($options.alt), 9, _hoisted_2$4), 58809 _cache[0] || (_cache[0] = createBaseVNode("path", { 58810 d: "M11 5.06982L6 9.06982H2V15.0698H6L11 19.0698V5.06982Z", 58811 stroke: "currentColor", 58812 "stroke-width": "2", 58813 "stroke-linecap": "round", 58814 "stroke-linejoin": "round" 58815 }, null, -1)), 58816 _cache[1] || (_cache[1] = createBaseVNode("path", { 58817 d: "M19.07 5C20.9447 6.87528 21.9979 9.41836 21.9979 12.07C21.9979 14.7216 20.9447 17.2647 19.07 19.14M15.54 8.53C16.4774 9.46764 17.004 10.7392 17.004 12.065C17.004 13.3908 16.4774 14.6624 15.54 15.6", 58818 stroke: "currentColor", 58819 "stroke-width": "2", 58820 "stroke-linecap": "round", 58821 "stroke-linejoin": "round" 58822 }, null, -1)) 58823 ], 8, _hoisted_1$4); 58824} 58825const CoreIconVolumeUp = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]); 58826const CoreIconVolumeUp$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58827 __proto__: null, 58828 default: CoreIconVolumeUp 58829}, Symbol.toStringTag, { value: "Module" })); 58830const _sfc_main$3 = { 58831 props: { 58832 settings: { 58833 type: Object, 58834 required: false 58835 } 58836 }, 58837 computed: { 58838 alt() { 58839 var _a, _b; 58840 return ((_a = this.settings) == null ? void 0 : _a.alt) || ((_b = this.settings) == null ? void 0 : _b.icon); 58841 }, 58842 id() { 58843 var _a, _b; 58844 return ((_a = this.settings) == null ? void 0 : _a.id) || ((_b = this.settings) == null ? void 0 : _b.icon); 58845 } 58846 } 58847}; 58848const _hoisted_1$3 = ["aria-labelledby", "aria-label"]; 58849const _hoisted_2$3 = ["id"]; 58850function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) { 58851 return openBlock(), createElementBlock("svg", { 58852 width: "24", 58853 height: "24", 58854 viewBox: "0 0 24 24", 58855 fill: "none", 58856 xmlns: "http://www.w3.org/2000/svg", 58857 role: "img", 58858 "aria-labelledby": `icon-title-${$options.id}`, 58859 "aria-label": $options.alt 58860 }, [ 58861 createBaseVNode("title", { 58862 id: `icon-title-${$options.id}` 58863 }, toDisplayString($options.alt), 9, _hoisted_2$3), 58864 _cache[0] || (_cache[0] = createBaseVNode("g", { "clip-path": "url(#clip0_594_7435)" }, [ 58865 createBaseVNode("path", { 58866 d: "M12.0105 2C6.5105 2 2.0105 6.5 2.0105 12C2.0105 17.5 6.5105 22 12.0105 22C17.5105 22 22.0105 17.5 22.0105 12C22.0105 6.5 17.5105 2 12.0105 2ZM12.0105 20C7.6005 20 4.0105 16.41 4.0105 12C4.0105 7.59 7.6005 4 12.0105 4C16.4205 4 20.0105 7.59 20.0105 12C20.0105 16.41 16.4205 20 12.0105 20ZM12.5105 7H11.0105V13L16.2105 16.2L17.0105 14.9L12.5105 12.2V7Z", 58867 fill: "currentColor" 58868 }) 58869 ], -1)), 58870 _cache[1] || (_cache[1] = createBaseVNode("defs", null, [ 58871 createBaseVNode("clipPath", { id: "clip0_594_7435" }, [ 58872 createBaseVNode("rect", { 58873 width: "24", 58874 height: "24", 58875 fill: "white" 58876 }) 58877 ]) 58878 ], -1)) 58879 ], 8, _hoisted_1$3); 58880} 58881const CoreIconWatchLater = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]); 58882const CoreIconWatchLater$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 58883 __proto__: null, 58884 default: CoreIconWatchLater 58885}, Symbol.toStringTag, { value: "Module" })); 58886const _sfc_main$2 = { 58887 name: "CoreBlockFooter", 58888 components: { 58889 NuxtLink: __nuxt_component_2$5 58890 }, 58891 props: { 58892 site: { 58893 type: Object, 58894 default: () => { 58895 return {}; 58896 } 58897 }, 58898 isBuilder: { 58899 type: Boolean, 58900 default: false 58901 }, 58902 // the builder preview is set to mobile view 58903 isBuilderMobile: { 58904 type: Boolean, 58905 default: false 58906 }, 58907 isEditable: { 58908 type: Boolean, 58909 default: false 58910 } 58911 }, 58912 setup() { 58913 provide(SCROLL_ANIMATION_EXCLUDED_KEY, true); 58914 const { isMobile } = useIsMobile(); 58915 const store = useStore(); 58916 const { state, commit: commit2 } = store; 58917 return { isMobile, state, commit: commit2 }; 58918 }, 58919 data() { 58920 return { 58921 emailForm: { 58922 email: null,
58923 disclosureChecked: false 58924 }, 58925 clonedSite: null, 58926 defaultLogo: { 58927 src: "/img/core-logo.svg", 58928 alt: "Core CMS Logo" 58929 }, 58930 logoSrc: null 58931 }; 58932 }, 58933 computed: { 58934 ...mapGetters("settings", ["getBrandFeatureFlag"]), 58935 isCoreLite() { 58936 return this.getBrandFeatureFlag("CoreLite"); 58937 }, 58938 blockClasses() { 58939 const classList = []; 58940 if (this.isBuilder) { 58941 classList.push("footer__pointer_all"); 58942 } 58943 return classList; 58944 }, 58945 pageTree() { 58946 var _a, _b, _c, _d; 58947 try { 58948 let pageTree; 58949 try { 58950 pageTree = (_a = this == null ? void 0 : this.site) == null ? void 0 : _a.pages.filter( 58951 (p2) => { 58952 var _a2, _b2; 58953 return !p2.isPrivate && !p2.parentPageId && ((_a2 = this == null ? void 0 : this.site) == null ? void 0 : _a2.homepageId) != p2.id && !((_b2 = JSON.parse(p2.settings)) == null ? void 0 : _b2.isNavButton); 58954 } 58955 ); 58956 } catch (err) { 58957 pageTree = ((_b = this
58957== null ? void 0 : this.site) == null ? void 0 : _b.pages.filter( 58958 (p2) => { 58959 var _a2, _b2; 58960 return !p2.isPrivate && !p2.parentPageId && ((_a2 = this == null ? void 0 : this.site) == null ? void 0 : _a2.homepageId) != p2.id && !((_b2 = p2.settings) == null ? void 0 : _b2.isNavButton); 58961 } 58962 )) || []; 58963 } 58964 const navButton = (_d = (_c = this == null ? void 0 : this.site) == null ? void 0 : _c.pages) == null ? void 0 : _d.find((p2) => { 58965 var _a2, _b2; 58966 try { 58967 return (_a2 = JSON.parse(p2.settings)) == null ? void 0 : _a2.isNavButton; 58968 } catch { 58969 return (_b2 = p2.settings) == null ? void 0 : _b2.isNavButton; 58970 } 58971 }); 58972 if (navButton) { 58973 pageTree.push(navButton); 58974 } 58975 return pageTree; 58976 } catch (err) { 58977 return []; 58978 } 58979 }, 58980 logoInternalLink() { 58981 return this.logoLink.startsWith("/"); 58982 }, 58983 logoTag() { 58984 if (this.logoInternalLink) { 58985 return "NuxtLink"; 58986 } 58987 return "a"; 58988 }, 58989 externalLink() { 58990 return this.logoLink; 58991 }, 58992 footer() { 58993 var _a; 58994 return ((_a = this.site) == null ? void 0 : _a.footer) || {}; 58995 }, 58996 copyright() { 58997 return renderData(this.footer.copyright, this.clonedSite); 58998 }, 58999 copyrightText() { 59000 var _a; 59001 return renderData( 59002 ((_a = this.footer) == null ? void 0 : _a.copyrightText) || "", 59003 this.clonedSite 59004 ); 59005 }, 59006 copyrightLink() { 59007 var _a; 59008 return ((_a = this.footer) == null ? void 0 : _a.copyrightLink) || ""; 59009 }, 59010 showFooter() { 59011 return this.footer.showFooter || false; 59012 }, 59013 showCopyright() { 59014 return this.footer.showCopyright || false; 59015 }, 59016 originalLogo() { 59017 const logoSrc = isObject$1(this.footer.logo) ? this.footer.logo.src : this.footer.logo; 59018 if (this.logoFallbackEnabled) { 59019 return renderData(logoSrc, this.site) || this.fallbackLogo || this.staticLogo; 59020 } else { 59021 return renderData(logoSrc, this.clonedSite) || this.defaultLogo.src; 59022 } 59023 }, 59024 fallbackLogo() { 59025 var _a; 59026 const brandId = (_a = this.site) == null ? void 0 : _a.brandId; 59027 return generateFallbackLogoURL(brandId); 59028 }, 59029 // Last resort, bundled with the app so it cannot 404 the way a remote URL can. 59030 // No brand branch: NYL renders nyl/block/footer/CoreBlockFooter.vue, so this 59031 // component only ever serves brands with no brand-specific override. 59032 staticLogo() { 59033 return this.defaultLogo.src; 59034 }, 59035 logoFallbackEnabled() { 59036 var _a; 59037 return (_a = this.state.settings.featureFlags) == null ? void 0 : _a.LogoFallback; 59038 }, 59039 logoStyle() { 59040 return this.footer.logoStyle; 59041 }, 59042 logoAltText() { 59043 const logoAlt = isObject$1(this.footer.logo) ? this.footer.logo.alt : this.footer.logoAltText; 59044 if (this.logoFallbackEnabled) { 59045 return logoAlt || "Website Logo"; 59046 } else { 59047 const defaultAlt = this.logoSrc === this.defaultLogo.src && this.defaultLogo.alt; 59048 return logoAlt || defaultAlt || this.nameFooter; 59049 } 59050 }, 59051 logoLink() { 59052 return this.footer.logoLink || "/#"; 59053 }, 59054 hasDataNameFooter() { 59055 const dataName = renderData(this.footer.nameFooter, this.clonedSite) || ""; 59056 return !!dataName.trim(); 59057 }, 59058 nameFooter() { 59059 var _a; 59060 const formattedName = formatName( 59061 this.footer.nameFooter, 59062 (_a = this.site.user) == null ? void 0 : _a.ddcUserData 59063 ); 59064 return this.hasDataNameFooter ? unescape$1(renderData(formattedName, this.clonedSite)) : this.site.title; 59065 }, 59066 displayName() { 59067 var _a, _b; 59068 return (_b = (_a = this.site.user) == null ? void 0 : _a.ddcUserData) == null ? void 0 : _b.displayName; 59069 }, 59070 overlineFooter() { 59071 return unescape$1( 59072 renderData(this.footer.overlineFooter, this.clonedSite) 59073 ); 59074 }, 59075 jobTitleFooter() { 59076 return renderData(this.footer.jobTitleFooter, this.clonedSite); 59077 }, 59078 showUsernameFooter() { 59079 return this.footer.showUsernameFooter; 59080 }, 59081 showOverlineFooter() { 59082 return this.footer.showOverlineFooter; 59083 }, 59084 showTitleFooter() { 59085 return this.footer.showTitleFooter; 59086 }, 59087 logoClass() { 59088 return `brand_image brand_image--${this.logoStyle}`; 59089 }, 59090 hasSocialLink() { 59091 return this.facebook || this.linkedin || this.twitter; 59092 }, 59093 showSocialTitle() { 59094 var _a; 59095 return ((_a = this.footer) == null ? void 0 : _a["social-title-show"]) !== false; 59096 }, 59097 showLogo() { 59098 var _a; 59099 return ((_a = this.footer) == null ? void 0 : _a.logoShow) !== false; 59100 }, 59101 facebook() { 59102 var _a; 59103 if (!((_a = this.footer) == null ? void 0 : _a["facebook-show"])) return ""; 59104 return renderData(this.footer.facebook, this.clonedSite); 59105 }, 59106 linkedin() { 59107 var _a; 59108 if (!((_a = this.footer) == null ? void 0 : _a["linkedin-show"])) return ""; 59109 return renderData(this.footer.linkedin, this.clonedSite); 59110 }, 59111 instagram() { 59112 return this.footer.instagram; 59113 }, 59114 twitter() { 59115 var _a; 59116 if (!((_a = this.footer) == null ? void 0 : _a["twitter-show"])) return ""; 59117 return renderData(this.footer.twitter, this.clonedSite); 59118 }, 59119 youtube() { 59120 return this.footer.youtube; 59121 }, 59122 isFooterMobile() { 59123 return (this.isBuilderMobile || this.isMobile) ?? false; 59124 } 59125 }, 59126 watch: { 59127 originalLogo(newVal) { 59128 this.logoSrc = newVal; 59129 } 59130 }, 59131 mounted() { 59132 this.logoSrc = this.originalLogo; 59133 }, 59134 created() { 59135 this.addDataToSite(); 59136 }, 59137 methods: { 59138 handleToggle() { 59139 if (this.isBuilder && this.isEditable && !this.state.interface.isLeftRailClosing) { 59140 if (!this.state.interface.activeSidebarKey) { 59141 this.commit("interface/toggleActiveSidebarKey", "footer"); 59142 } else { 59143 this.commit("interface/setActiveSidebarKey"); 59144 } 59145 this.commit( 59146 "interface/setRightRailOpening", 59147 !this.state.interface.isRightRailOpening 59148 ); 59149 this.commit("site/clearSelectedBlockIds"); 59150 setTimeout(() => { 59151 const targetElement = document.querySelector( 59152 ".editor-main-navigation" 59153 ); 59154 if (targetElement) 59155 targetElement.scrollIntoView({ behavior: "smooth" }); 59156 }, 500); 59157 } 59158 }, 59159 addDataToSite() { 59160 const year = (/* @__PURE__ */ new Date()).getFullYear(); 59161 this.clonedSite = { year, ...this.site }; 59162 }, 59163 // Steps one rung down the chain: site logo -> brand default -> bundled static. 59164 logoFailedToLoad() { 59165 if (!this.logoFallbackEnabled) return; 59166 if (this.logoSrc === this.staticLogo) return; 59167 this.logoSrc = this.fallbackLogo && this.logoSrc !== this.fallbackLogo ? this.fallbackLogo : this.staticLogo; 59168 } 59169 } 59170};
59171const _hoisted_1$2 = { class: "footer__content-wrapper" }; 59172const _hoisted_2$2 = { class: "footer__content" }; 59173const _hoisted_3$2 = { class: "footer__top" }; 59174const _hoisted_4$2 = { class: "navbar" }; 59175const _hoisted_5$2 = { 59176 class: "nav", 59177 "aria-label": "Brand and social links" 59178}; 59179const _hoisted_6$2 = { class: "nav-left" }; 59180const _hoisted_7$2 = { class: "brand" }; 59181const _hoisted_8$2 = ["alt", "src"]; 59182const _hoisted_9$2 = { class: "brand_text" }; 59183const _hoisted_10$2 = { 59184 key: 0, 59185 class: "brand_text__subtitle" 59186}; 59187const _hoisted_11$2 = { 59188 key: 1, 59189 class: "brand_text__title" 59190}; 59191const _hoisted_12$2 = { 59192 key: 2, 59193 class: "brand_text__subtitle" 59194}; 59195const _hoisted_13$2 = { class: "nav-right" }; 59196const _hoisted_14$2 = { 59197 key: 0, 59198 class: "footer__top--social-links" 59199}; 59200const _hoisted_15$2 = { 59201 key: 0, 59202 "aria-label": "Footer navigation" 59203}; 59204const _hoisted_16$2 = { 59205 class: "subnav", 59206 "aria-label": "Site pages" 59207}; 59208const _hoisted_17$2 = { 59209 class: "copyright-section", 59210 role: "region", 59211 "aria-label": "Copyright information" 59212}; 59213const _hoisted_18$2 = { class: "copyright-text" }; 59214const _hoisted_19$2 = ["innerHTML"]; 59215function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) { 59216 const _component_CoreBlock = _sfc_main$4x; 59217 const _component_CoreBlockNavItem = _sfc_main$4a; 59218 const _component_NuxtLink = __nuxt_component_2$5; 59219 return withDirectives((openBlock(), createElementBlock("footer", { 59220 class: normalizeClass(["footer", $options.blockClasses]), 59221 role: "contentinfo", 59222 "aria-label": "Footer", 59223 onClick: _cache[1] || (_cache[1] = (...args) => $options.handleToggle && $options.handleToggle(...args)) 59224 }, [ 59225 createBaseVNode("div", _hoisted_1$2, [ 59226 createBaseVNode("div", _hoisted_2$2, [ 59227 createBaseVNode("div", _hoisted_3$2, [ 59228 createBaseVNode("div", _hoisted_4$2, [ 59229 createBaseVNode("nav", _hoisted_5$2, [ 59230 createBaseVNode("div", _hoisted_6$2, [ 59231 createBaseVNode("figure", _hoisted_7$2, [ 59232 withDirectives((openBlock(), createBlock(resolveDynamicComponent($options.logoTag), mergeProps({ 59233 class: "brand_link", 59234 target: $options.logoInternalLink ? "_self" : "_blank" 59235 }, { 59236 ...$options.logoInternalLink ? { to: $options.logoLink } : { href: $options.externalLink } 59237 }, { 59238 "aria-label": $options.logoAltText, 59239 tabindex: "0" 59240 }), { 59241 default: withCtx(() => [ 59242 createBaseVNode("img", { 59243 alt: $options.logoAltText, 59244 class: normalizeClass($options.logoClass), 59245 src: $data.logoSrc, 59246 onError: _cache[0] || (_cache[0] = (...args) => $options.logoFailedToLoad && $options.logoFailedToLoad(...args)) 59247 }, null, 42, _hoisted_8$2) 59248 ]), 59249 _: 1 59250 }, 16, ["target", "aria-label"])), [ 59251 [ 59252 vShow, 59253 $options.showLogo && $options.logoStyle !== "none" 59254 ] 59255 ]), 59256 withDirectives(createBaseVNode("figcaption", _hoisted_9$2, [ 59257 $options.overlineFooter && $options.showOverlineFooter ? (openBlock(), createElementBlock("h6", _hoisted_10$2, toDisplayString($options.overlineFooter), 1)) : createCommentVNode("", true), 59258 $options.hasDataNameFooter && $options.showUsernameFooter ? (openBlock(), createElementBlock("h4", _hoisted_11$2, toDisplayString($options.displayName || $options.nameFooter), 1)) : createCommentVNode("", true), 59259 $options.jobTitleFooter && $options.showUsernameFooter && $options.showTitleFooter ? (openBlock(), createElementBlock("h6", _hoisted_12$2, toDisplayString($options.jobTitleFooter), 1)) : createCommentVNode("", true) 59260 ], 512), [ 59261 [ 59262 vShow, 59263 $options.logoStyle !== "large" && $options.logoStyle !== "none" && !$options.isFooterMobile 59264 ] 59265 ]) 59266 ]) 59267 ]), 59268 createBaseVNode("div", _hoisted_13$2, [ 59269 $options.hasSocialLink ? (openBlock(), createElementBlock("div", _hoisted_14$2, [ 59270 $options.showSocialTitle ? (openBlock(), createBlock(_component_CoreBlock, { 59271 key: 0, 59272 "is-editable": $props.isEditable, 59273 settings: { 59274 type: "text", 59275 text: "Connect on Social", 59276 tag: "p" 59277 } 59278 }, null, 8, ["is-editable"])) : createCommentVNode("", true), 59279 createVNode(_component_CoreBlock, { 59280 "is-editable": $props.isEditable, 59281 settings: { 59282 type: "social-links", 59283 facebook: $options.facebook, 59284 linkedin: $options.linkedin, 59285 twitter: $options.twitter, 59286 variants: { 59287 style: "slim", 59288 align: $options.isFooterMobile ? "align-center" : "align-right" 59289 } 59290 } 59291 }, null, 8, ["is-editable", "settings"]) 59292 ])) : createCommentVNode("", true) 59293 ]) 59294 ]) 59295 ]) 59296 ]), 59297 $options.pageTree.length > 1 ? (openBlock(), createElementBlock("nav", _hoisted_15$2, [ 59298 createBaseVNode("ul", _hoisted_16$2, [ 59299 (openBlock(true), createElementBlock(Fragment, null, renderList($options.pageTree, (pageItem, index2) => { 59300 return openBlock(), createBlock(_component_CoreBlockNavItem, { 59301 key: pageItem.linkText + pageItem.linkUrl + index2 || index2, 59302 site: $props.site, 59303 navitem: pageItem, 59304 "is-footer": true, 59305 class: "navbar_item navbar_item--dropdown", 59306 "is-mobile": $options.isFooterMobile, 59307 "is-editable": $props.isEditable 59308 }
59308, null, 8, ["site", "navitem", "is-mobile", "is-editable"]); 59309 }), 128)) 59310 ]) 59311 ])) : createCommentVNode("", true), 59312 withDirectives(createBaseVNode("div", _hoisted_17$2, [ 59313 createBaseVNode("div", { 59314 class: normalizeClass(["copyright", { "disclosures--mobile": $options.isFooterMobile }]) 59315 }, [ 59316 createBaseVNode("span", _hoisted_18$2, [ 59317 createBaseVNode("p", null, [ 59318 createVNode(_component_NuxtLink, { 59319 rel: "noopener noreferrer nofollow", 59320 to: $options.copyrightLink, 59321 tabindex: "0", 59322 "aria-label": $options.copyrightText 59323 }, { 59324 default: withCtx(() => [ 59325 createTextVNode(toDisplayString($options.copyrightText), 1) 59326 ]), 59327 _: 1 59328 }, 8, ["to", "aria-label"]) 59329 ]), 59330 createBaseVNode("span", { innerHTML: $options.copyright }, null, 8, _hoisted_19$2) 59331 ]) 59332 ], 2) 59333 ], 512), [ 59334 [vShow, $options.showCopyright] 59335 ]) 59336 ]) 59337 ]) 59338 ], 2)), [ 59339 [vShow, $options.showFooter] 59340 ]); 59341} 59342const CoreBlockFooter = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]); 59343const CoreBlockFooter$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 59344 __proto__: null, 59345 default: CoreBlockFooter 59346}, Symbol.toStringTag, { value: "Module" })); 59347const _sfc_main$1 = { 59348 props: { 59349 settings: { 59350 type: Object, 59351 required: true 59352 }, 59353 dataSite: { 59354 type: Object, 59355 required: true 59356 }, 59357 isEditable: { 59358 type: Boolean, 59359 default: false 59360 }, 59361 isBuilderMobile: { 59362 type: Boolean, 59363 default: false 59364 } 59365 }, 59366 setup() { 59367 provide(SCROLL_ANIMATION_EXCLUDED_KEY, true); 59368 const store = useStore(); 59369 const { state } = store; 59370 const { isMobile } = useIsMobile(); 59371 return { 59372 state, 59373 isMobile 59374 }; 59375 }, 59376 data() { 59377 return { 59378 photoLocation: "", 59379 widestTextComputed: false, 59380 widestText: 0 59381 }; 59382 }, 59383 computed: { 59384 isMobileView() { 59385 return this.isMobile || this.isBuilderMobile; 59386 }, 59387 mobileSettingsEnabled() { 59388 var _a; 59389 return !!((_a = this.state.settings.featureFlags) == null ? void 0 : _a.MobileSettings); 59390 }, 59391 titlePath() { 59392 var _a; 59393 return ((_a = this.settings) == null ? void 0 : _a.titles) ?? this.settings ?? {}; 59394 }, 59395 toggleButton() { 59396 var _a; 59397 return (_a = this.settings) == null ? void 0 : _a.button; 59398 }, 59399 toggleDesignation() { 59400 var _a; 59401 return (_a = this.settings) == null ? void 0 : _a.toggleDesignation; 59402 }, 59403 toggleImage() { 59404 var _a; 59405 return (_a = this.settings) == null ? void 0 : _a.toggleImage; 59406 }, 59407 imageHeight() { 59408 var _a; 59409 const height = (_a = this.settings) == null ? void 0 : _a.height; 59410 if (!height) return "auto"; 59411 return `${height}px`; 59412 }, 59413 imageWidth() { 59414 var _a; 59415 const width = (_a = this.settings) == null ? void 0 : _a.width; 59416 if (!width) return "100%"; 59417 return `${width}px`; 59418 }, 59419 toggleLicense() { 59420 var _a; 59421 return (_a = this.settings) == null ? void 0 : _a.toggleLicense; 59422 }, 59423 toggleName() { 59424 var _a; 59425 return (_a = this.settings) == null ? void 0 : _a.toggleName; 59426 }, 59427 toggleTitle() { 59428 return this.titlePath.toggleTitle; 59429 }, 59430 toggleTitle2() { 59431 return this.titlePath.toggleTitle2; 59432 }, 59433 toggleTitle3() { 59434 return this.titlePath.toggleTitle3; 59435 }, 59436 toggleTitle4() { 59437 return this.titlePath.toggleTitle4; 59438 }, 59439 noPhoto() { 59440 return !this.blockPhoto && !this.photoTop && !this.photoBackground; 59441 }, 59442 blockPhoto() { 59443 if (this.isMemberSelected) 59444 return this.memberSelected.headshotImageURL; 59445 return renderData(this.mediaMetadataPhoto, this.dataSite); 59446 }, 59447 mediaMetadataPhoto() { 59448 var _a; 59449 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.photo; 59450 return mediaSrc && typeof mediaSrc === "object" ? mediaSrc.src : mediaSrc; 59451 }, 59452 photoMedia() { 59453 var _a, _b, _c; 59454 if (this.isMemberSelected) 59455 return this.memberSelected.headshotImageURL; 59456 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.photo; 59457 const { crop, focal } = mediaSrc; 59458 if (crop || focal) { 59459 const mediaObject = { src: crop || {} }; 59460 if (focal) mediaObject.src.focal = focal; 59461 return mediaObject; 59462 } 59463 return { src: (_c = (_b = this.settings) == null ? void 0 : _b.mediaMetadata) == null ? void 0 : _c.photo }; 59464 }, 59465 blockLogo() { 59466 return this.mediaMetadataLogo || null; 59467 }, 59468 mediaMetadataLogo() { 59469 var _a; 59470 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.logo; 59471 return mediaSrc && typeof mediaSrc === "object" ? mediaSrc.src : mediaSrc; 59472 }, 59473 logoMedia() { 59474 var _a, _b, _c; 59475 const mediaSrc = (_a = this.settings) == null ? void 0 : _a.logo; 59476 const { crop, focal } = mediaSrc; 59477 if (crop || focal) { 59478 const mediaObject = { src: crop }; 59479 if (focal) mediaObject.src.focal = focal; 59480 return mediaObject; 59481 } 59482 return { src: (_c = (_b = this.settings) == null ? void 0 : _b.mediaMetadata) == null ? void 0 : _c.logo }; 59483 }, 59484 blockContactName() { 59485 var _a, _b, _c, _d, _e, _f; 59486 if (this.isMemberSelected) 59487 return ((_a = this.memberSelected) == null ? void 0 : _a.displayName) || `${(_b = this.memberSelected) == null ? void 0 : _b.firstName} ${(_c = this.memberSelected) == null ? void 0 : _c.lastName}`; 59488 const formattedContactName = formatName( 59489 this.settings.name, 59490 (_e = (_d = this.dataSite) == null ? void 0 : _d.user) == null ? void 0 : _e.ddcUserData 59491 ); 59492 return this.displayName || ((_f = renderData(formattedContactName, this.dataSite)) == null ? void 0 : _f.trim()) || ""; 59493 }, 59494 displayName() { 59495 var _a, _b, _c; 59496 return (_c = (_b = (_a = this.dataSite) == null ? void 0 : _a.user) == null ? void 0 : _b.ddcUserData) == null ? void 0 : _c.displayName; 59497 }, 59498 designationCharacters() { 59499 var _a; 59500 return (_a = this.blockContactDesignation) == null ? void 0 : _a.length; 59501 }, 59502 blockContactDesignation() { 59503 if (this.isMemberSelected) return ""; 59504 return renderData(this.settings.designation || "", this.dataSite); 59505 }, 59506 htmlFormattedDesignation() { 59507 const data = this.blockContactDesignation; 59508 if (!data) return; 59509 const tag = "sup"; 59510 const symbolClass = "block__name_designation-symbol"; 59511 const designationArray = data.split(",").map( 59512 (d, index2, arr) =>
59512 index2 < arr.length - 1 ? `<span>${d.trim()}, </span>` : `<span>${d.trim()}</span>` 59513 ); 59514 const designation = designationArray.join(""); 59515 const symbolRegex = /©|\u00A9|®|\u00AE|™|\u2122/gi; 59516 return " " + (designation == null ? void 0 : designation.replace( 59517 symbolRegex, 59518 `<${tag} class="${symbolClass}">$&</${tag}>` 59519 )); 59520 }, 59521 blockContactTitle() { 59522 if (this.isMemberSelected) return this.memberSelected.title; 59523 return renderData(this.titlePath.title, this.dataSite); 59524 }, 59525 blockContactTitle2() { 59526 if (this.isMemberSelected) return this.memberSelected.title2; 59527 return renderData(this.titlePath.title2, this.dataSite); 59528 }, 59529 blockContactTitle3() { 59530 if (this.isMemberSelected) return this.memberSelected.title3; 59531 return renderData(this.titlePath.title3, this.dataSite); 59532 }, 59533 blockContactTitle4() { 59534 if (this.isMemberSelected) return this.memberSelected.title4; 59535 return renderData(this.titlePath.title4, this.dataSite); 59536 }, 59537 blockContactDescription() { 59538 if (this.isMemberSelected) return ""; 59539 return this.settings.description; 59540 }, 59541 blockContactLandline() { 59542 var _a, _b; 59543 if (!((_a = this.settings) == null ? void 0 : _a["landline-show"])) return ""; 59544 if (this.isMemberSelected) 59545 return formatPhoneNumber(this.memberSelected.phoneNumber); 59546 const phoneNumber = getNumbersOnlyFromPhoneFormat( 59547 renderData(this.settings.landline, this.dataSite) 59548 ); 59549 if (!phoneNumber) return ""; 59550 const extension = renderData( 59551 this.settings.extension, 59552 this.dataSite 59553 ); 59554 const value = `${(_b = formatPhoneNumber(phoneNumber)) == null ? void 0 : _b.replace( 59555 " ext. ", 59556 "" 59557 )}${extension ? ` ext. ${extension}` : ""}`; 59558 return value; 59559 }, 59560 blockContactLandlineLabel() { 59561 if (this.isMemberSelected) return ""; 59562 if (this.settings.landlineLabel) { 59563 return this.addEndColon( 59564 renderData(this.settings.landlineLabel, this.dataSite) 59565 ); 59566 } 59567 return false; 59568 }, 59569 blockContactAltPhone1() { 59570 var _a, _b; 59571 if (!((_a = this.settings) == null ? void 0 : _a["alt_phone_1-show"])) return ""; 59572 const phoneNumber = getNumbersOnlyFromPhoneFormat( 59573 renderData(this.settings.alt_phone_1, this.dataSite) 59574 ); 59575 if (!phoneNumber) return ""; 59576 const extension = renderData( 59577 this.settings.extension_alt_phone_1, 59578 this.dataSite 59579 ); 59580 const value = `${(_b = formatPhoneNumber(phoneNumber)) == null ? void 0 : _b.replace( 59581 " ext. ", 59582 "" 59583 )}${extension ? ` ext. ${extension}` : ""}`; 59584 return value; 59585 }, 59586 blockContactAltPhone1Label() { 59587 if (this.settings.alt_phone_1Label) { 59588 return this.addEndColon( 59589 renderData(this.settings.alt_phone_1Label, this.dataSite) 59590 ); 59591 } 59592 return false; 59593 }, 59594 blockContactAltPhone2Label() { 59595 if (this.settings.alt_phone_2Label) { 59596 return this.addEndColon( 59597 renderData(this.settings.alt_phone_2Label, this.dataSite) 59598 ); 59599 } 59600 return false; 59601 }, 59602 blockContactAltPhone2() { 59603 var _a, _b; 59604 if (!((_a = this.settings) == null ? void 0 : _a["alt_phone_2-show"])) return ""; 59605 if (this.isMemberSelected) return ""; 59606 const phoneNumber = getNumbersOnlyFromPhoneFormat( 59607 renderData(this.settings.alt_phone_2, this.dataSite) 59608 ); 59609 if (!phoneNumber) return ""; 59610 const extension = renderData( 59611 this.settings.extension_alt_phone_2, 59612 this.dataSite 59613 ); 59614 const value = `${(_b = formatPhoneNumber(phoneNumber)) == null ? void 0 : _b.replace( 59615 " ext. ", 59616 "" 59617 )}${extension ? ` ext. ${extension}` : ""}`; 59618 return value; 59619 }, 59620 blockContactMobile() { 59621 var _a; 59622 if (!((_a = this.settings) == null ? void 0 : _a["mobile-show"])) return ""; 59623 if (this.isMemberSelected) return ""; 59624 const phoneNumber = getNumbersOnlyFromPhoneFormat( 59625 renderData(this.settings.mobile, this.dataSite) 59626 ); 59627 return formatPhoneNumber(phoneNumber); 59628 }, 59629 blockContactFax() { 59630 var _a; 59631 if (!((_a = this.settings) == null ? void 0 : _a["fax-show"])) return ""; 59632 if (this.isMemberSelected) return ""; 59633 const phoneNumber = getNumbersOnlyFromPhoneFormat( 59634 renderData(this.settings.fax, this.dataSite) 59635 ); 59636 return formatPhoneNumber(phoneNumber); 59637 }, 59638 blockContactEmail() { 59639 var _a; 59640 if (!((_a = this.settings) == null ? void 0 : _a["email-show"])) return ""; 59641 if (this.isMemberSelected) return this.memberSelected.emailAddress; 59642 return renderData(this.settings.email, this.dataSite); 59643 }, 59644 hasAddressSection() { 59645 var _a; 59646 if (!((_a = this.settings) == null ? void 0 : _a["address-show"])) return false;
59647 return !!(this.blockContactAddressLine1 || this.blockContactAddressCity || this.blockContactAddressState || this.blockContactAddressZip); 59648 }, 59649 hasAddress2Section() { 59650 var _a; 59651 if (!((_a = this.settings) == null ? void 0 : _a["address2-show"])) return false; 59652 return !!(this.blockContactAddress2Line1 || this.blockContactAddress2City || this.blockContactAddress2Zip); 59653 }, 59654 blockContactAddressLine1() { 59655 var _a; 59656 if (this.isMemberSelected) return this.memberSelected.address; 59657 return renderData((_a = this.settings.address) == null ? void 0 : _a.line1, this.dataSite); 59658 }, 59659 blockContactAddressLine2() { 59660 var _a; 59661 if (this.isMemberSelected) return ""; 59662 return renderData((_a = this.settings.address) == null ? void 0 : _a.line2, this.dataSite); 59663 }, 59664 blockContactAddressCity() { 59665 var _a; 59666 if (this.isMemberSelected) return this.memberSelected.city; 59667 return renderData((_a = this.settings.address) == null ? void 0 : _a.city, this.dataSite); 59668 }, 59669 blockContactAddressState() { 59670 var _a; 59671 if (this.isMemberSelected) return this.memberSelected.state; 59672 return renderData((_a = this.settings.address) == null ? void 0 : _a.state, this.dataSite); 59673 }, 59674 blockContactAddressZip() { 59675 var _a; 59676 if (this.isMemberSelected) return this.memberSelected.postalCode; 59677 return this.renderValue( 59678 (_a = this.settings.address) == null ? void 0 : _a.zip, 59679 null, 59680 "busLocAddrZipCodeExt" 59681 ); 59682 }, 59683 blockContactAddress2Line1() { 59684 var _a; 59685 if (this.isMemberSelected) return this.memberSelected.address2; 59686 return renderData((_a = this.settings.address2) == null ? void 0 : _a.line1, this.dataSite); 59687 }, 59688 blockContactAddress2Line2() { 59689 var _a; 59690 if (this.isMemberSelected) return ""; 59691 return renderData((_a = this.settings.address2) == null ? void 0 : _a.line2, this.dataSite); 59692 }, 59693 blockContactAddress2City() { 59694 var _a; 59695 if (this.isMemberSelected) return ""; 59696 return renderData((_a = this.settings.address2) == null ? void 0 : _a.city, this.dataSite); 59697 }, 59698 blockContactAddress2State() { 59699 var _a; 59700 if (this.isMemberSelected) return ""; 59701 return renderData((_a = this.settings.address2) == null ? void 0 : _a.state, this.dataSite); 59702 }, 59703 blockContactAddress2Zip() { 59704 var _a; 59705 if (this.isMemberSelected) return ""; 59706 return this.renderValue( 59707 (_a = this.settings.address2) == null ? void 0 : _a.zip, 59708 null, 59709 "busLocAddrZipCodeExt2" 59710 ); 59711 }, 59712 buttonSettings() { 59713 var _a; 59714 return { 59715 type: "button", 59716 icon: this.settings.buttonIcon, 59717 label: this.settings.buttonLabel, 59718 newWindow: this.settings.newWindow || false, 59719 url: this.settings.buttonUrl, 59720 variants: { 59721 "icon-placement": this.settings.buttonIconPlacement || "icon-right", 59722 style: ((_a = this.settings) == null ? void 0 : _a.variants["buttonStyle"]) || "primary" 59723 } 59724 }; 59725 }, 59726 socialLinksSettings() { 59727 return { 59728 type: "social-links", 59729 facebook: this.blockFacebook, 59730 instagram: this.blockInstagram, 59731 linkedin: this.blockLinkedin, 59732 twitter: this.blockTwitter, 59733 youtube: this.blockYoutube 59734 }; 59735 }, 59736 cleanAddress() { 59737 return `http://maps.google.com/?q=` + encodeURIComponent( 59738 `${this.blockContactAddressLine1} ${this.blockContactAddressLine2} ${this.blockContactAddressCity} ${this.blockContactAddressState} ${this.blockContactAddressZip}` 59739 ); 59740 }, 59741 cleanAddress2() { 59742 return `http://maps.google.com/?q=` + encodeURIComponent( 59743 `${this.blockContactAddress2Line1} ${this.blockContactAddress2Line2} ${this.blockContactAddress2City} ${this.blockContactAddress2State} ${this.blockContactAddress2Zip}` 59744 ); 59745 }, 59746 blockFacebook() { 59747 var _a; 59748 if (!((_a = this.settings) == null ? void 0 : _a["facebook-show"])) return ""; 59749 if (this.isMemberSelected) return this.memberSelected.facebookUrl; 59750 return renderData(this.settings.facebook, this.dataSite); 59751 }, 59752 blockLinkedin() { 59753 var _a; 59754 if (!((_a = this.settings) == null ? void 0 : _a["linkedin-show"])) return ""; 59755 if (this.isMemberSelected) return this.memberSelected.linkedInUrl; 59756 return renderData(this.settings.linkedin, this.dataSite); 59757 }, 59758 blockInstagram() { 59759 var _a; 59760 if (!((_a = this.settings) == null ? void 0 : _a["instagram-show"])) return ""; 59761 if (this.isMemberSelected) return ""; 59762 return renderData(this.settings.instagram, this.dataSite); 59763 }, 59764 blockTwitter() { 59765 var _a; 59766 if (!((_a = this.settings) == null ? void 0 : _a["twitter-show"])) return ""; 59767 if (this.isMemberSelected) return this.memberSelected.twitterUrl; 59768 return renderData(this.settings.twitter, this.dataSite); 59769 }, 59770 blockYoutube() { 59771 if (this.isMemberSelected) return ""; 59772 return this.settings.youtube || null; 59773 }, 59774 photoPlacement() { 59775 var _a; 59776 if (this.isMobileView && this.mobileSettingsEnabled && this.imagePlacementMobile) { 59777 return this.imagePlacementMobile === "image-bottom" ? "bottom" : "top"; 59778 } 59779 return ((_a = this.settings) == null ? void 0 : _a.variants["photo-placement"]) || "top"; 59780 }, 59781 hideProfileImageOnMobile() { 59782 var _a; 59783 return this.mobileSettingsEnabled && this.isMobileView && !!((_a = this.settings) == null ? void 0 : _a.hideProfileImageOnMobile); 59784 }, 59785 imagePlacementMobile() { 59786 var _a; 59787 return ((_a = this.settings) == null ? void 0 : _a.imagePlacementMobile) || "image-top"; 59788 }, 59789 mobileSettingsClasses() { 59790 if (!this.mobileSettingsEnabled) { 59791 return []; 59792 } 59793 const classes = []; 59794 if (this.isMobileView) { 59795 if (this.hideProfileImageOnMobile) { 59796 classes.push( 59797 "block_contact-card_hide-profile-image-mobile" 59798 ); 59799 } 59800 const placement = this.imagePlacementMobile; 59801 if (placement === "image-bottom") { 59802 classes.push("block_contact-card_image-bottom"); 59803 } else if (placement === "image-top") { 59804 classes.push("block_contact-card_image-top"); 59805 } 59806 } 59807 return classes; 59808 },
59809 alignContent() { 59810 var _a; 59811 return ((_a = this.settings) == null ? void 0 : _a.variants["align-content"]) || "align-center"; 59812 }, 59813 photoBackground() { 59814 return ["background"].includes(this.photoPlacement); 59815 }, 59816 photoTop() { 59817 return ["top"].includes(this.photoPlacement); 59818 }, 59819 photoSides() { 59820 return !(this.photoTop || this.photoBackground || this.noPhoto); 59821 }, 59822 hasSocialIcons() { 59823 return this.blockFacebook || this.blockInstagram || this.blockLinkedin || this.blockTwitter || this.blockYoutube; 59824 }, 59825 memberSelected() { 59826 var _a, _b; 59827 return (_b = (_a = this.dataSite) == null ? void 0 : _a.teamMembers) == null ? void 0 : _b.find( 59828 (t) => this.settings["team-member"] !== -1 && t.id === this.settings["team-member"] 59829 ); 59830 }, 59831 isMemberSelected() { 59832 return !!this.memberSelected; 59833 } 59834 }, 59835 methods: { 59836 renderValue(value, fallback, extensionKey) { 59837 var _a, _b, _c, _d; 59838 if (this.isMemberSelected) { 59839 const renderedData = renderData(value, this.memberSelected); 59840 if (!renderedData && fallback) { 59841 return (_a = this.memberSelected) == null ? void 0 : _a[fallback]; 59842 } 59843 return renderedData; 59844 } 59845 const rendered = renderData(value, this.dataSite); 59846 const extension = extensionKey && ["{{", "}}"].every((c2) => value == null ? void 0 : value.includes(c2)) && ((_d = (_c = (_b = this.dataSite) == null ? void 0 : _b.user) == null ? void 0 : _c.ddcUserData) == null ? void 0 : _d[extensionKey]); 59847 return extension ? `${rendered}-${extension}` : rendered; 59848 }, 59849 clickToCall(phoneNumber, extension) { 59850 const cleanPhoneNumber = phoneNumber && phoneNumber.replace(/[^0-9+]/g, ""); 59851 const cleanExtension = extension && extension.replace(/[^0-9+]/g, ""); 59852 if (cleanExtension) 59853 return `tel:${cleanPhoneNumber};${cleanExtension}`; 59854 return `tel:${cleanPhoneNumber}`; 59855 }, 59856 addEndColon(str) { 59857 return str ? `${str}: ` : str; 59858 } 59859 } 59860}; 59861const _hoisted_1$1 = { 59862 key: 0, 59863 class: "block__section_photo" 59864}; 59865const _hoisted_2$1 = { 59866 key: 0, 59867 class: "block__icon_group" 59868}; 59869const _hoisted_3$1 = { class: "contactAgentContainer" }; 59870const _hoisted_4$1 = { class: "contactNameContainer" }; 59871const _hoisted_5$1 = ["innerHTML"]; 59872const _hoisted_6$1 = { class: "contactInfoContainer" }; 59873const _hoisted_7$1 = { 59874 key: 0, 59875 class: "block__section_info_contact" 59876}; 59877const _hoisted_8$1 = ["innerHTML"]; 59878const _hoisted_9$1 = ["title", "href"]; 59879const _hoisted_10$1 = { 59880 key: 1, 59881 class: "block__section_info_contact" 59882}; 59883const _hoisted_11$1 = ["innerHTML"]; 59884const _hoisted_12$1 = ["title", "href"]; 59885const _hoisted_13$1 = { 59886 key: 2, 59887 class: "block__section_info_contact" 59888}; 59889const _hoisted_14$1 = ["innerHTML"]; 59890const _hoisted_15$1 = ["title", "href"]; 59891const _hoisted_16$1 = { 59892 key: 3, 59893 class: "block__section_info_contact" 59894}; 59895const _hoisted_17$1 = ["title", "href"]; 59896const _hoisted_18$1 = { 59897 key: 4, 59898 class: "block__section_info_contact" 59899}; 59900const _hoisted_19$1 = ["title"]; 59901const _hoisted_20$1 = { 59902 key: 5, 59903 class: "block__section_info_contact" 59904}; 59905const _hoisted_21 = ["href", "title"]; 59906const _hoisted_22 = { 59907 key: 6, 59908 class: "block__section_info_contact" 59909}; 59910const _hoisted_23 = { class: "block__section_info_address" }; 59911const _hoisted_24 = ["href"]; 59912const _hoisted_25 = ["title"]; 59913const _hoisted_26 = ["title"]; 59914const _hoisted_27 = ["title"]; 59915const _hoisted_28 = { 59916 key: 7, 59917 class: "block__section_info_contact" 59918}; 59919const _hoisted_29 = { class: "block__section_info_address" }; 59920const _hoisted_30 = ["href"]; 59921const _hoisted_31 = ["title"]; 59922const _hoisted_32 = ["title"]; 59923const _hoisted_33 = ["title"]; 59924const _hoisted_34 = { 59925 key: 8, 59926 class: "block__button_container" 59927}; 59928const _hoisted_35 = { 59929 key: 0, 59930 class: "block__icon_container block__icon_group" 59931}; 59932const _hoisted_36 = { 59933 key: 1, 59934 class: "block__button_container" 59935}; 59936function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { 59937 const _component_CoreBlock = _sfc_main$4x; 59938 const _component_CoreIcon = __nuxt_component_1$7; 59939 return openBlock(), createElementBlock("div", { 59940 class: normalizeClass(["block__body", $options.mobileSettingsClasses]) 59941 }, [
59942 $options.blockPhoto && !$options.photoBackground ? (openBlock(), createElementBlock("div", _hoisted_1$1, [ 59943 withDirectives(createVNode(_component_CoreBlock, { 59944 "is-editable": $props.isEditable, 59945 settings: { 59946 alt: `Headshot of ${$options.blockContactName}`, 59947 height: $options.imageHeight, 59948 src: $options.blockPhoto, 59949 type: "image", 59950 width: $options.imageWidth, 59951 mediaMetadata: $options.photoMedia 59952 } 59953 }, null, 8, ["is-editable", "settings"]), [ 59954 [vShow, $options.toggleImage && !$options.hideProfileImageOnMobile] 59955 ]), 59956 !$options.photoTop && $options.hasSocialIcons ? (openBlock(), createElementBlock("div", _hoisted_2$1, [ 59957 createVNode(_component_CoreBlock, { 59958 "is-editable": $props.isEditable, 59959 settings: $options.socialLinksSettings 59960 }, null, 8, ["is-editable", "settings"]) 59961 ])) : createCommentVNode("", true) 59962 ])) : createCommentVNode("", true), 59963 createBaseVNode("div", { 59964 class: normalizeClass(["block__section_info", { "photo-background": $options.photoBackground }]), 59965 style: normalizeStyle([ 59966 $options.photoBackground ? { 59967 "background-image": `url('${$options.blockPhoto}')`, 59968 "background-position": "center", 59969 "background-repeat": "no-repeat" 59970 } : "" 59971 ]) 59972 }, [ 59973 $options.blockLogo && !$options.photoBackground ? (openBlock(), createBlock(_component_CoreBlock, { 59974 key: 0, 59975 "is-editable": $props.isEditable, 59976 settings: { 59977 alt: "Logo", 59978 height: "auto", 59979 src: $options.blockLogo, 59980 type: "image", 59981 width: "350px", 59982 mediaMetadata: $options.logoMedia 59983 } 59984 }, null, 8, ["is-editable", "settings"])) : createCommentVNode("", true), 59985 createBaseVNode("div", _hoisted_3$1, [ 59986 createBaseVNode("div", _hoisted_4$1, [ 59987 createBaseVNode("div", { 59988 class: normalizeClass([ 59989 { block__name: $options.toggleDesignation }, 59990 "block__designation_name_group" 59991 ]) 59992 }, [ 59993 withDirectives(createVNode(_component_CoreBlock, { 59994 "is-editable": $props.isEditable, 59995 class: normalizeClass( 59996 $options.designationCharacters > 25 ? "designations-long" : "designations-short" 59997 ), 59998 settings: { 59999 type: "text", 60000 text: `${$options.blockContactName.replace( 60001 /^\s+|\s+$/g, 60002 `` 60003 )}${$options.toggleDesignation && $options.toggleName && $options.blockContactDesignation ? `,` : ``}`, 60004 tag: "h6", 60005 variants: { 60006 size: "text", 60007 class: "contact-name" 60008 } 60009 } 60010 }, null, 8, ["is-editable", "class", "settings"]), [ 60011 [vShow, $options.toggleName] 60012 ]), 60013 withDirectives(createBaseVNode("span", { 60014 class: normalizeClass(`block__name_designation block__name_designation_h6`), 60015 innerHTML: $options.htmlFormattedDesignation 60016 }, null, 8, _hoisted_5$1), [ 60017 [vShow, $options.toggleDesignation && $options.toggleName] 60018 ]) 60019 ], 2) 60020 ]), 60021 withDirectives(createVNode(_component_CoreBlock, { 60022 "is-editable": $props.isEditable, 60023 settings: { 60024 type: "text", 60025 text: $options.blockContactTitle, 60026 tag: "h6", 60027 variants: { 60028 size: "text", 60029 class: "contact-title" 60030 } 60031 } 60032 }, null, 8, ["is-editable", "settings"]), [ 60033 [vShow, $options.toggleName && $options.toggleTitle] 60034 ]), 60035 withDirectives(createVNode(_component_CoreBlock, { 60036 "is-editable": $props.isEditable, 60037 settings: { 60038 type: "text", 60039 text: $options.blockContactTitle2, 60040 tag: "h6", 60041 variants: { 60042 size: "text", 60043 class: "contact-title" 60044 } 60045 } 60046 }, null, 8, ["is-editable", "settings"]), [ 60047 [vShow, $options.toggleName && $options.toggleTitle2] 60048 ]), 60049 withDirectives(createVNode(_component_CoreBlock, { 60050 "is-editable": $props.isEditable, 60051 settings: { 60052 type: "text", 60053 text: $options.blockContactTitle3, 60054 tag: "h6", 60055 variants: { 60056 size: "text", 60057 class: "contact-title" 60058 } 60059 } 60060 }, null, 8, ["is-editable", "settings"]), [ 60061 [vShow, $options.toggleName && $options.toggleTitle3] 60062 ]), 60063 withDirectives(createVNode(_component_CoreBlock, { 60064 "is-editable": $props.isEditable, 60065 settings: { 60066 type: "text", 60067 text: $options.blockContactTitle4, 60068 tag: "h6", 60069 variants: { 60070 size: "text", 60071 class: "contact-title" 60072 } 60073 } 60074 }, null, 8, ["is-editable", "settings"]), [ 60075 [vShow, $options.toggleName && $options.toggleTitle4] 60076 ]), 60077 $options.blockContactDescription ? (openBlock(), createBlock(_component_CoreBlock, { 60078 key: 0, 60079 "is-editable": $props.isEditable, 60080 settings: { 60081 type: "text", 60082 tag: "p", 60083 text: $options.blockContactDescription, 60084 variants: { 60085 class: "contact-description", 60086 align: $options.alignContent 60087 } 60088 } 60089 }, null, 8, ["is-editable", "settings"])) : createCommentVNode("", true) 60090 ]), 60091 createBaseVNode("div", _hoisted_6$1, [ 60092 $options.blockContactLandline ? (openBlock(), createElementBlock("div", _hoisted_7$1, [ 60093 createVNode(_component_CoreIcon, { 60094 icon: "phone", 60095 class: "icon", 60096 settings: { ["aria-label"]: $options.blockContactLandline } 60097 }, null, 8, ["settings"]), 60098 $options.blockContactLandlineLabel ? (openBlock(), createElementBlock("span", { 60099 key: 0, 60100 innerHTML: $options.blockContactLandlineLabel 60101 }, null, 8, _hoisted_8$1)) : createCommentVNode("", true), 60102 createBaseVNode("a", { 60103 title: $options.blockContactLandline, 60104 href: $options.clickToCall( 60105 $options.renderValue($props.settings.landline), 60106 $options.renderValue($props.settings.extension) 60107 ) 60108 }, toDisplayString($options.blockContactLandline), 9, _hoisted_9$1) 60109 ])) : createCommentVNode("", true), 60110 $options.blockContactAltPhone1 ? (openBlock(), createElementBlock("div", _hoisted_10$1, [ 60111 createVNode(_component_CoreIcon, { 60112 icon: "phone", 60113 class: "icon", 60114 settings: { ["aria-label"]: $options.blockContactAltPhone1 } 60115 }, null, 8, ["settings"]), 60116 $options.blockContactAltPhone1Label ? (openBlock(), createElementBlock("span", { 60117 key: 0, 60118 innerHTML: $options.blockContactAltPhone1Label 60119 }, null, 8, _hoisted_11$1)) : createCommentVNode("", true), 60120 createBaseVNode("a", { 60121 title: $options.blockContactAltPhone1, 60122 href: $options.clickToCall( 60123 $options.renderValue($props.settings.alt_phone_1), 60124 $options.renderValue($props.settings.extension_alt_phone_1) 60125 ) 60126 }, toDisplayString($options.blockContactAltPhone1), 9, _hoisted_12$1) 60127 ])) : createCommentVNode("", true), 60128 $options.blockContactAltPhone2 ? (openBlock(), createElementBlock("div", _hoisted_13$1, [ 60129 createVNode(_component_CoreIcon, { 60130 icon: "phone", 60131 class: "icon", 60132 settings: { ["aria-label"]: $options.blockContactAltPhone2 } 60133 }, null, 8, ["settings"]), 60134 $options.blockContactAltPhone2Label ? (openBlock(), createElementBlock("span", { 60135 key: 0, 60136 innerHTML: $options.blockContactAltPhone2Label 60137 }, null, 8, _hoisted_14$1)) : createCommentVNode("", true), 60138 createBaseVNode("a", { 60139 title: $options.blockContactAltPhone2, 60140 href: $options.clickToCall( 60141 $options.renderValue($props.settings.alt_phone_2), 60142 $options.renderValue($props.settings.extension_alt_phone_2) 60143 ) 60144 }, toDisplayString($options.blockContactAltPhone2), 9, _hoisted_15$1) 60145 ])) : createCommentVNode("", true), 60146 $options.blockContactMobile ? (openBlock(), createElementBlock("div", _hoisted_16$1, [ 60147 createVNode(_component_CoreIcon, { 60148 icon: "mobile-phone", 60149 class: "icon", 60150 settings: { ["aria-label"]: $options.blockContactMobile } 60151 }, null, 8, ["settings"]), 60152 createBaseVNode("a", { 60153 title: $options.blockContactMobile, 60154 href: $options.clickToCall($options.renderValue($props.settings.mobile)) 60155 }, toDisplayString($options.blockContactMobile), 9, _hoisted_17$1) 60156 ])) : createCommentVNode("", true), 60157 $options.blockContactFax ? (openBlock(), createElementBlock("div", _hoisted_18$1, [ 60158 createVNode(_component_CoreIcon, { 60159 icon: "fax", 60160 class: "icon", 60161 settings: { ["aria-label"]: $options.blockContactFax } 60162 }, null, 8, ["settings"]), 60163 createBaseVNode("p", { 60164 class: "fax", 60165 title: $options.blockContactFax 60166 }, toDisplayString($options.blockContactFax), 9, _hoisted_19$1) 60167 ])) : createCommentVNode("", true), 60168 $options.blockContactEmail ? (openBlock(), createElementBlock("div", _hoisted_20$1, [ 60169 createVNode(_component_CoreIcon, { 60170 icon: "email", 60171 class: "icon", 60172 settings: { ["aria-label"]: $options.blockContactEmail } 60173 }, null, 8, ["settings"]), 60174 createBaseVNode("a", { 60175 href: `mailto:${$options.blockContactEmail}`, 60176 class: "email", 60177 title: $options.blockContactEmail 60178 }, toDisplayString($options.blockContactEmail), 9, _hoisted_21) 60179 ])) : createCommentVNode("", true), 60180 $options.hasAddressSection ? (openBlock(), createElementBlock("div", _hoisted_22, [ 60181 createVNode(_component_CoreIcon, { 60182 icon: "map-pin", 60183 class: "icon" 60184 }), 60185 createBaseVNode("div", _hoisted_23, [ 60186 createBaseVNode("a", { 60187 href: $options.cleanAddress, 60188 target: "_blank" 60189 }, [ 60190 createBaseVNode("p", { title: $options.blockContactAddressLine1 }, toDisplayString($options.blockContactAddressLine1), 9, _hoisted_25), 60191 $options.blockContactAddressLine2 ? (openBlock(), createElementBlock("p", { 60192 key: 0, 60193 title: $options.blockContactAddressLine2 60194 }, toDisplayString($options.blockContactAddressLine2), 9, _hoisted_26)) : createCommentVNode("", true), 60195 createBaseVNode("p", { 60196 title: `${$options.blockContactAddressCity}${$options.blockContactAddressState}${$options.blockContactAddressZip}` 60197 }, toDisplayString($options.blockContactAddressCity) + ", " + toDisplayString($options.blockContactAddressState) + " " + toDisplayString($options.blockContactAddressZip), 9, _hoisted_27) 60198 ], 8, _hoisted_24) 60199 ]) 60200 ])) : createCommentVNode("", true), 60201 $options.hasAddress2Section ? (openBlock(), createElementBlock("div", _hoisted_28, [ 60202 createVNode(_component_CoreIcon, { 60203 icon: "map-pin", 60204 class: "icon" 60205 }), 60206 createBaseVNode("div", _hoisted_29, [ 60207 createBaseVNode("a", { 60208 href: $options.cleanAddress2, 60209 target: "_blank" 60210 }, [ 60211 createBaseVNode("p", { title: $options.blockContactAddress2Line1 }, toDisplayString($options.blockContactAddress2Line1), 9, _hoisted_31), 60212 $options.blockContactAddress2Line2 ? (openBlock(), createElementBlock("p", { 60213 key: 0, 60214 title: $options.blockContactAddress2Line2 60215 }, toDisplayString($options.blockContactAddress2Line2), 9, _hoisted_32)) : createCommentVNode("", true), 60216 createBaseVNode("p", { 60217 title: `${$options.blockContactAddress2City}${$options.blockContactAddress2State}${$options.blockContactAddress2Zip}` 60218 }, toDisplayString($options.blockContactAddress2City) + " " + toDisplayString($options.blockContactAddress2State) + " " + toDisplayString($options.blockContactAddress2Zip), 9, _hoisted_33) 60219 ], 8, _hoisted_30) 60220 ]) 60221 ])) : createCommentVNode("", true), 60222 $options.toggleButton && $options.photoSides ? (openBlock(), createElementBlock("div", _hoisted_34, [ 60223 createVNode(_component_CoreBlock, { 60224 "is-editable": $props.isEditable, 60225 settings: $options.buttonSettings 60226 }, null, 8, ["is-editable", "settings"]) 60227 ])) : createCommentVNode("", true) 60228 ]), 60229 !$options.photoSides ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [ 60230 $options.hasSocialIcons ? (openBlock(), createElementBlock("div", _hoisted_35, [ 60231 createVNode(_component_CoreBlock, { 60232 "is-editable": $props.isEditable, 60233 settings: { 60234 ...$options.socialLinksSettings, 60235 variants: { 60236 style: "slim", 60237 align: $options.alignContent 60238 } 60239 } 60240 }, null, 8, ["is-editable", "settings"]) 60241 ])) : createCommentVNode("", true), 60242 $options.toggleButton ? (openBlock(), createElementBlock("div", _hoisted_36, [ 60243 createVNode(_component_CoreBlock, { 60244 "is-editable": $props.isEditable, 60245 settings: $options.buttonSettings 60246 }, null, 8, ["is-editable", "settings"]) 60247 ])) : createCommentVNode("", true) 60248 ], 64)) : createCommentVNode("", true) 60249 ], 6) 60250 ], 2); 60251} 60252const CoreBlockContactCard = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]); 60253const CoreBlockContactCard$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 60254 __proto__: null, 60255 default: CoreBlockContactCard 60256}, Symbol.toStringTag, { value: "Module" })); 60257var define_process_env_default = {};
60258const _sfc_main = { 60259 directives: { 60260 maska: k2 60261 }, 60262 components: { 60263 Form, 60264 Field 60265 }, 60266 props: { 60267 settings: { 60268 type: Object, 60269 required: true 60270 }, 60271 dataSite: { 60272 type: Object, 60273 default: () => { 60274 } 60275 }, 60276 isEditable: { 60277 type: Boolean, 60278 default: false 60279 } 60280 }, 60281 setup(props) { 60282 provide(SCROLL_ANIMATION_EXCLUDED_KEY, true); 60283 const config = /* @__PURE__ */ useRuntimeConfig(); 60284 veeValidateRules(); 60285 const root2 = useRoot(); 60286 const { 60287 isReady: recaptchaReady, 60288 handleRecaptcha, 60289 error: recaptchaError 60290 } = useRecaptcha(); 60291 const formValidationId = ref(null); 60292 const formBlockRef = ref(null); 60293 const form = ref({ 60294 firstName: null, 60295 lastName: null, 60296 emailAddress: null, 60297 phoneNumber: null 60298 }); 60299 const status = ref(null); 60300 const baseURL2 = define_process_env_default.NUXT_ENV_API_BASE_URL || config.public.apiBaseUrl || "https://localhost:7283/api"; 60301 const formType = computed(() => props.settings.formType); 60302 const isPhoneRequired2 = computed(() => !form.value.emailAddress); 60303 const isEmailRequired2 = computed(() => !form.value.phoneNumber); 60304 const onSuccessMessage = computed( 60305 () =>
60305 "Thank you for reaching out. A member of our team will contact you soon." 60306 ); 60307 const statusAnnouncement = () => { 60308 if (status.value === "pending") { 60309 return "Submitting form, one moment..."; 60310 } 60311 if (status.value === "success") { 60312 return onSuccessMessage.value; 60313 } 60314 if (status.value === "fail") { 60315 return "There was problem submitting your form."; 60316 } 60317 return ""; 60318 }; 60319 const generateId = (length = 4, otherIds = []) => { 60320 let flag = true; 60321 while (flag) { 60322 const letters = "bcdfghjkmnpqrstvwxyz"; 60323 const characters = letters + "23456789"; 60324 let id = letters[Math.floor(Math.random() * letters.length)]; 60325 for (let i = 1; i < length; i++) { 60326 id += characters[Math.floor(Math.random() * characters.length)]; 60327 } 60328 if (otherIds.includes(id)) { 60329 continue; 60330 } 60331 flag = false; 60332 return id; 60333 } 60334 }; 60335 const scrollFormToTop = () => { 60336 var _a; 60337 if (typeof window === "undefined") { 60338 return; 60339 } 60340 (_a = formBlockRef.value) == null ? void 0 : _a.scrollIntoView({ 60341 behavior: "smooth", 60342 block: "start", 60343 inline: "start" 60344 }); 60345 }; 60346 const submit = async () => { 60347 const validResult = await root2.$refs.observer.validate(); 60348 if (validResult.valid) { 60349 GTMForm(); 60350 const { success, error: recaptchaError2 } = await handleRecaptcha("form"); 60351 const isFormSubmitable = success || recaptchaError2; 60352 if (isFormSubmitable) { 60353 scrollFormToTop(); 60354 status.value = "pending"; 60355 try { 60356 const payload = { 60357 ...form.value, 60358 siteId: props == null ? void 0 : props.dataSite.id, 60359 formType: formType.value, 60360 referrer: document.referrer 60361 }; 60362 if (payload.phoneNumber) 60363 payload.phoneNumber = payload.phoneNumber.match(/\d+/g).join(""); 60364 const response = await axios.post( 60365 `${baseURL2}/leads/submit`, 60366 payload 60367 ); 60368 if (response.status === 200) { 60369 status.value = "success"; 60370 } else { 60371 status.value = "fail"; 60372 } 60373 } catch { 60374 status.value = "fail"; 60375 } 60376 } else if (success === false) { 60377 console.log( 60378 "Form is not submitable, recaptcha not successful" 60379 ); 60380 } 60381 } 60382 }; 60383 const preventAngleBracket = (event) => { 60384 if (/<|>/gi.test(event.key)) { 60385 event.preventDefault(); 60386 } 60387 }; 60388 const GTMForm = () => { 60389 var _a; 60390 root2.$gtm.push({ 60391 event: "form", 60392 lead_form: formType.value, 60393 lead_form_long: ((_a = props.dataSite) == null ? void 0 : _a.user.displayName) || "" 60394 }); 60395 }; 60396 return { 60397 formBlockRef, 60398 formValidationId, 60399 form, 60400 status, 60401 baseURL: baseURL2, 60402 formType, 60403 isPhoneRequired: isPhoneRequired2, 60404 isEmailRequired: isEmailRequired2, 60405 onSuccessMessage, 60406 statusAnnouncement, 60407 generateId, 60408 scrollFormToTop, 60409 submit, 60410 preventAngleBracket, 60411 GTMForm, 60412 recaptchaReady, 60413 handleRecaptcha, 60414 recaptchaError 60415 }; 60416 } 60417}; 60418const _hoisted_1 = { 60419 ref: "formBlockRef", 60420 class: "block__body" 60421}; 60422const _hoisted_2 = { class: "container" }; 60423const _hoisted_3 = ["aria-live", "role"]; 60424const _hoisted_4 = { 60425 key: 0, 60426 class: "form--pending" 60427}; 60428const _hoisted_5 = { 60429 key: 1, 60430 class: "form_success" 60431}; 60432const _hoisted_6 = { 60433 key: 2, 60434 class: "form--fail" 60435}; 60436const _hoisted_7 = { 60437 key: 3, 60438 class: "form" 60439}; 60440const _hoisted_8 = ["onSubmit"]; 60441const _hoisted_9 = { class: "row" }; 60442const _hoisted_10 = ["aria-invalid"]; 60443const _hoisted_11 = { 60444 key: 0, 60445 id: "error-first-name", 60446 class: "text-error", 60447 "aria-live": "assertive" 60448}; 60449const _hoisted_12 = ["aria-invalid"]; 60450const _hoisted_13 = { 60451 key: 0, 60452 id: "error-last-name", 60453 class: "text-error", 60454 "aria-live": "assertive" 60455}; 60456const _hoisted_14 = { class: "row" }; 60457const _hoisted_15 = ["aria-required", "aria-invalid"]; 60458const _hoisted_16 = { 60459 key: 0, 60460 id: "error-emailAddress", 60461 class: "text-error", 60462 "aria-live": "assertive" 60463}; 60464const _hoisted_17 = ["aria-required", "aria-invalid", "onBlur"]; 60465const _hoisted_18 = { 60466 key: 0, 60467 id: "error-phoneNumber", 60468 class: "text-error", 60469 "aria-live": "assertive" 60470}; 60471const _hoisted_19 = { class: "row" }; 60472const _hoisted_20 = { class: "col submit-button" }; 60473function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { 60474 const _component_CoreIconCircleCheck = __nuxt_component_0$c; 60475 const _component_CoreBlock = _sfc_main$4x; 60476 const _component_CoreIconError = __nuxt_component_2$4;
60477 const _component_Field = resolveComponent("Field"); 60478 const _component_Form = resolveComponent("Form"); 60479 const _component_ClientOnly = __nuxt_component_3$3; 60480 const _directive_maska = resolveDirective("maska"); 60481 return openBlock(), createElementBlock("div", _hoisted_1, [ 60482 createBaseVNode("div", _hoisted_2, [ 60483 createBaseVNode("div", { 60484 class: "form-status-announcer", 60485 "aria-live": $setup.status === "fail" ? "assertive" : "polite", 60486 role: $setup.status === "fail" ? "alert" : "status", 60487 "aria-atomic": "true" 60488 }, toDisplayString($setup.statusAnnouncement()), 9, _hoisted_3), 60489 $setup.status === "pending" ? (openBlock(), createElementBlock("div", _hoisted_4, _cache[12] || (_cache[12] = [ 60490 createBaseVNode("p", null, "Submitting form, one moment...", -1), 60491 createBaseVNode("progress", null, null, -1) 60492 ]))) : $setup.status === "success" ? (openBlock(), createElementBlock("div", _hoisted_5, [ 60493 createVNode(_component_CoreIconCircleCheck, { class: "form_success-check" }), 60494 createVNode(_component_CoreBlock, { 60495 "is-editable": $props.isEditable, 60496 settings: { 60497 type: "text", 60498 text: $setup.onSuccessMessage, 60499 tag: "h4" 60500 } 60501 }, null, 8, ["is-editable", "settings"]) 60502 ])) : $setup.status === "fail" ? (openBlock(), createElementBlock("div", _hoisted_6, [ 60503 createVNode(_component_CoreIconError, { class: "fail-icon" }), 60504 createVNode(_component_CoreBlock, { 60505 "is-editable": $props.isEditable, 60506 settings: { 60507 type: "text", 60508 text: "There was problem submitting your form.", 60509 tag: "h4" 60510 } 60511 }, null, 8, ["is-editable"]) 60512 ])) : (openBlock(), createElementBlock("div", _hoisted_7, [ 60513 createVNode(_component_ClientOnly, null, { 60514 default: withCtx(() => [ 60515 createVNode(_component_Form, { 60516 ref: "observer", 60517 onSubmit: $setup.submit 60518 }, { 60519 default: withCtx(({ handleSubmit }) => [ 60520 createBaseVNode("form", { 60521 onSubmit: withModifiers(($event) => handleSubmit($event), ["prevent"]) 60522 }, [ 60523 createBaseVNode("div", _hoisted_9, [ 60524 createVNode(_component_Field, { 60525 modelValue: $setup.form.firstName, 60526 "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $setup.form.firstName = $event), 60527 rules: { 60528 max: 31, 60529 required: true 60530 }, 60531 class: "col", 60532 name: "First Name", 60533 vid: `first-name-form:${$setup.formValidationId}` 60534 }, { 60535 default: withCtx(({ field, errors }) => [ 60536 createBaseVNode("div", null, [ 60537 _cache[13] || (_cache[13] = createBaseVNode("label", { 60538 for: "first-name", 60539 class: "required" 60540 }, "First Name", -1)), 60541 withDirectives(createBaseVNode("input", mergeProps({ id: "first-name" }, field, { 60542 "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.form.firstName = $event), 60543 "aria-required": "true", 60544 "aria-invalid": errors.length > 0, 60545 "aria-errormessage": "error-first-name", 60546 type: "text", 60547 name: "first-name", 60548 autocomplete: "off", 60549 class: { 60550 "bd-error": errors.length 60551 }, 60552 onKeydown: _cache[1] || (_cache[1] = ($event) => $setup.preventAngleBracket($event)) 60553 }), null, 16, _hoisted_10), [ 60554 [ 60555 vModelText, 60556 $setup.form.firstName, 60557 void 0, 60558 { trim: true } 60559 ] 60560 ]), 60561 errors ? (openBlock(), createElementBlock("small", _hoisted_11, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 60562 ]) 60563 ]), 60564 _: 1 60565 }, 8, ["modelValue", "vid"]), 60566 createVNode(_component_Field, { 60567 modelValue: $setup.form.lastName, 60568 "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $setup.form.lastName = $event), 60569 rules: { 60570 max: 31, 60571 required: true 60572 }, 60573 class: "col", 60574 name: "Last Name", 60575 vid: `last-name-form:${$setup.formValidationId}` 60576 }, { 60577 default: withCtx(({ field, errors }) => [ 60578 createBaseVNode("div", null, [ 60579 _cache[14] || (_cache[14] = createBaseVNode("label", { 60580 for: "last-name", 60581 class: "required" 60582 }, "Last Name", -1)), 60583 withDirectives(createBaseVNode("input", mergeProps({ id: "last-name" }, field, { 60584 "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $setup.form.lastName = $event), 60585 "aria-required": "true", 60586 "aria-invalid": errors.length > 0, 60587 "aria-errormessage": "error-last-name", 60588 class: ["form-input", { 60589 "bd-error": errors.length 60590 }], 60591 type: "text", 60592 name: "last-name", 60593 autocomplete: "off", 60594 onKeydown: _cache[4] || (_cache[4] = ($event) => $setup.preventAngleBracket($event)) 60595 }), null, 16, _hoisted_12), [ 60596 [ 60597 vModelText, 60598 $setup.form.lastName, 60599 void 0, 60600 { trim: true } 60601 ] 60602 ]), 60603 errors ? (openBlock(), createElementBlock("small", _hoisted_13, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 60604 ]) 60605 ]), 60606 _: 1 60607 }, 8, ["modelValue", "vid"]) 60608 ]), 60609 createBaseVNode("div", _hoisted_14, [ 60610 createVNode(_component_Field, { 60611 modelValue: $setup.form.emailAddress, 60612 "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $setup.form.emailAddress = $event), 60613 rules: { 60614 email: true, 60615 required: $setup.isEmailRequired, 60616 max: 40 60617 }, 60618 class: "col", 60619 name: "Email", 60620 vid: `email-form:${$setup.formValidationId}` 60621 }, { 60622 default: withCtx(({ field, errors }) => [ 60623 createBaseVNode("div", null, [ 60624 createBaseVNode("label", { 60625 for: "emailAddress", 60626 class: normalizeClass({ 60627 required: $setup.isEmailRequired 60628 }) 60629 }, " Email ", 2), 60630 withDirectives(createBaseVNode("input", mergeProps({ id: "emailAddress" }, field, { 60631 "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $setup.form.emailAddress = $event), 60632 "aria-required": $setup.isEmailRequired, 60633 "aria-invalid": errors.length > 0, 60634 "aria-errormessage": "error-emailAddress", 60635 class: ["form-input", { 60636 "bd-error": errors.length 60637 }], 60638 type: "email", 60639 name: "emailAddress", 60640 autocomplete: "off", 60641 onKeydown: _cache[7] || (_cache[7] = ($event) => $setup.preventAngleBracket($event)) 60642 }), null, 16, _hoisted_15), [ 60643 [ 60644 vModelText, 60645 $setup.form.emailAddress, 60646 void 0, 60647 { trim: true } 60648 ] 60649 ]), 60650 errors ? (openBlock(), createElementBlock("small", _hoisted_16, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 60651 ]) 60652 ]), 60653 _: 1 60654 }, 8, ["modelValue", "rules", "vid"]), 60655 createVNode(_component_Field, { 60656 modelValue: $setup.form.phoneNumber, 60657 "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $setup.form.phoneNumber = $event), 60658 rules: { 60659 max: 12, 60660 phone: true, 60661 required: $setup.isPhoneRequired 60662 }, 60663 name: "Phone Number", 60664 vid: `phone-number-form:${$setup.formValidationId}`, 60665 class: "col-6" 60666 }, { 60667 default: withCtx(({ field, errors, validate: validate2 }) => [ 60668 createBaseVNode("div", null, [ 60669 createBaseVNode("label", { 60670 for: "phoneNumber", 60671 class: normalizeClass({ 60672 required: $setup.isPhoneRequired 60673 }) 60674 }, " Phone Number ", 2), 60675 withDirectives(createBaseVNode("input", mergeProps({ id: "phoneNumber" }, field, { 60676 "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $setup.form.phoneNumber = $event), 60677 "aria-required": $setup.isPhoneRequired, 60678 "aria-invalid": errors.length > 0, 60679 "aria-errormessage": "error-phoneNumber", 60680 "data-maska": "###-###-####", 60681 class: ["form-input", { 60682 "bd-error": errors.length 60683 }], 60684 type: "tel", 60685 autocomplete: "off", 60686 name: "phoneNumber", 60687 onKeydown: _cache[10] || (_cache[10] = ($event) => $setup.preventAngleBracket($event)), 60688 onBlur: validate2 60689 }), null, 16, _hoisted_17), [ 60690 [vModelText, $setup.form.phoneNumber], 60691 [_directive_maska] 60692 ]), 60693 errors ? (openBlock(), createElementBlock("small", _hoisted_18, toDisplayString(errors[0]), 1)) : createCommentVNode("", true) 60694 ]) 60695 ]), 60696 _: 1 60697 }, 8, ["modelValue", "rules", "vid"]) 60698 ]), 60699 createBaseVNode("div", _hoisted_19, [ 60700 createBaseVNode("div", _hoisted_20, [ 60701 createVNode(_component_CoreBlock, { 60702 "data-testid": `form-submit-button`, 60703 "is-editable": $props.isEditable, 60704 type: "submit", 60705 value: "submit", 60706 class: "button", 60707 settings: { 60708 type: "button", 60709 label: "Submit", 60710 event: $setup.submit, 60711 icon: null, 60712 variants: { 60713 style: "primary" 60714 } 60715 } 60716 }, null, 8, ["is-editable", "settings"]), 60717 _cache[15] || (_cache[15] = createBaseVNode("div", { class: "mt-2" }, "* Required", -1)) 60718 ]) 60719 ]) 60720 ], 40, _hoisted_8) 60721 ]), 60722 _: 1 60723 }, 8, ["onSubmit"]) 60724 ]), 60725 _: 1 60726 }) 60727 ])) 60728 ]) 60729 ], 512); 60730} 60731const CoreBlockForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); 60732const CoreBlockForm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 60733 __proto__: null, 60734 default: CoreBlockForm 60735}, Symbol.toStringTag, { value: "Module" })); 60736export { 60737 getAppManifest as $, 60738 AliasSortingPlugin as A, 60739 useRuntimeConfig as B, 60740 hashMode as C, 60741 DeprecationsPlugin as D, 60742 routerOptions as E, 60743 createWebHashHistory as F, 60744 createWebHistory as G, 60745 HasElementTags as H, 60746 createRouter as I, 60747 useError as J, 60748 KeepAlive as K, 60749 clearError as L, 60750 isReadonly as M,
60751 createError$1 as N, 60752 isNuxtError as O, 60753 PromisesPlugin as P, 60754 withoutBase as Q, 60755 isSamePath as R, 60756 START_LOCATION_NORMALIZED as S, 60757 TemplateParamsPlugin as T, 60758 toValue as U, 60759 hasProtocol$1 as V, 60760 withHttps as W, 60761 useState as X, 60762 loadPayload as Y, 60763 onNuxtReady as Z, 60764 __vitePreload as _, 60765 withQuery$1 as a, 60766 LazyCoreBlockText as a$, 60767 outdatedBuildInterval as a0, 60768 buildAssetsURL as a1, 60769 joinURL as a2, 60770 reloadNuxtApp as a3, 60771 LazyCoreBlockCalendly as a4, 60772 LazyCoreBlockContactCard as a5, 60773 LazyCoreBlockDisclosures as a6, 60774 LazyCoreBlockForm as a7, 60775 LazyCoreBlockFooter as a8, 60776 LazyCoreBlockFooterBackground as a9, 60777 LazyCoreBlockDialog as aA, 60778 LazyCoreBlockDivider as aB, 60779 LazyCoreBlockDynamicForm as aC, 60780 LazyCoreBlockFile as aD, 60781 LazyCoreBlockFrameEmbed as aE, 60782 LazyCoreBlockGrid as aF, 60783 LazyCoreBlockHero as aG, 60784 LazyCoreBlockHeroBackground as aH, 60785 LazyCoreBlockHeroComponent as aI, 60786 LazyCoreBlockHtml as aJ, 60787 LazyCoreBlockIcon as aK, 60788 LazyCoreBlockImage as aL, 60789 LazyCoreBlockImageCropped as aM, 60790 LazyCoreBlockLazy as aN, 60791 LazyCoreBlockMainNav as aO, 60792 LazyCoreBlockMainNavImage as aP, 60793 LazyCoreBlockMap as aQ, 60794 LazyCoreBlockMedia as aR, 60795 LazyCoreBlockNavItem as aS, 60796 LazyCoreBlockOEmbed as aT, 60797 LazyCoreBlockPencilBanner as aU, 60798 LazyCoreBlockRepeat as aV, 60799 LazyCoreBlockRichText as aW, 60800 LazyCoreBlockRows as aX, 60801 LazyCoreBlockSelect as aY, 60802 LazyCoreBlockSocialLinks as aZ, 60803 LazyCoreBlockStickyButton as a_, 60804 LazyCoreBlockFooterBanner as aa, 60805 LazyCoreBlockFooterDisclosures as ab, 60806 LazyCoreBlockFooterLogo as ac, 60807 LazyCoreBlockFooterOneTrust as ad, 60808 LazyCoreBlockFooterSocialLinks as ae, 60809 LazyCoreBlockFooterContact as af, 60810 LazyCoreBlockFooterContactAddress as ag, 60811 LazyCoreBlockFooterContactEmail as ah, 60812 LazyCoreBlockFooterContactGroup as ai, 60813 LazyCoreBlockFooterContactPhone as aj, 60814 LazyCoreAnchorLinkNavigation as ak, 60815 LazyCoreBlock as al, 60816 LazyCoreBlockAccessibleTooltip as am, 60817 LazyCoreBlockAddressAutocomplete as an, 60818 LazyCoreBlockArticleCard as ao, 60819 LazyCoreBlockArticles as ap, 60820 LazyCoreBlockBreadcrumbs as aq, 60821 LazyCoreBlockButton as ar, 60822 LazyCoreBlockCalculators as as, 60823 LazyCoreBlockCalendlyEmbed as at, 60824 LazyCoreBlockCarousel as au, 60825 LazyCoreBlockCenteredNavBar as av, 60826 LazyCoreBlockColumns as aw, 60827 LazyCoreBlockContactHero as ax, 60828 LazyCoreBlockContentCard as ay, 60829 LazyCoreBlockContentCardTextField as az, 60830 baseURL as b, 60831 LazyCoreIconCloseCircleFilled as b$, 60832 LazyCoreBlockUnknown as b0, 60833 LazyCoreBlockVerticalDivider as b1, 60834 LazyCoreBlockVideo as b2, 60835 LazyCoreBlockContainer as b3, 60836 LazyCoreBlockContainerAccordion as b4, 60837 LazyCoreBlockContainerTabs as b5, 60838 LazyCoreBlockContainerToggle as b6, 60839 LazyCoreIcon as b7, 60840 LazyCoreIconAccordion as b8, 60841 LazyCoreIconAccount as b9, 60842 LazyCoreIconBrush as bA, 60843 LazyCoreIconButton as bB, 60844 LazyCoreIconCalendar as bC, 60845 LazyCoreIconCalendly as bD, 60846 LazyCoreIconCalendlyTitle as bE, 60847 LazyCoreIconCamera as bF, 60848 LazyCoreIconCardAccount as bG, 60849 LazyCoreIconCarousel as bH, 60850 LazyCoreIconCarouselBackward as bI, 60851 LazyCoreIconCarouselForward as bJ, 60852 LazyCoreIconCategories as bK, 60853 LazyCoreIconChanges as bL, 60854 LazyCoreIconCheckmark as bM, 60855 LazyCoreIconChevronDown as bN, 60856 LazyCoreIconChevronLeft as bO, 60857 LazyCoreIconChevronRight as bP, 60858 LazyCoreIconChevronUp as bQ, 60859 LazyCoreIconCircleCheck as bR, 60860 LazyCoreIconCircleCheckLight as bS, 60861 LazyCoreIconCircleMinus as bT, 60862 LazyCoreIconCircleMinusFilled as bU, 60863 LazyCoreIconCirclePlus as bV, 60864 LazyCoreIconCirclePlusFilled as bW, 60865 LazyCoreIconClock as bX, 60866 LazyCoreIconClockFilled as bY, 60867 LazyCoreIconClose as bZ, 60868 LazyCoreIconCloseCircle as b_, 60869 LazyCoreIconActions as ba, 60870 LazyCoreIconActivity as bb, 60871 LazyCoreIconAddFolder as bc, 60872 LazyCoreIconAddPage as bd, 60873 LazyCoreIconAdvancedSearch as be, 60874 LazyCoreIconAlignCenter as bf, 60875 LazyCoreIconAlignLeft as bg, 60876 LazyCoreIconAlignRight as bh, 60877 LazyCoreIconAlignVerticalBottom as bi, 60878 LazyCoreIconAlignVerticalCenter as bj, 60879 LazyCoreIconAlignVerticalTop as bk, 60880 LazyCoreIconAnalytics as bl, 60881 LazyCoreIconAnchorLink as bm, 60882 LazyCoreIconArchive as bn, 60883 LazyCoreIconArrowDown as bo, 60884 LazyCoreIconArrowLeft as bp, 60885 LazyCoreIconArrowLeftCircle as bq, 60886 LazyCoreIconArrowRight as br, 60887 LazyCoreIconArrowUp as bs, 60888 LazyCoreIconArticle as bt, 60889 LazyCoreIconBars as bu, 60890 LazyCoreIconBell as bv, 60891 LazyCoreIconBilling as bw, 60892 LazyCoreIconBlock as bx, 60893 LazyCoreIconBottomBanner as by, 60894 LazyCoreIconBreadcrumbExpand as bz, 60895 createError as c, 60896 LazyCoreIconImageOffset as c$, 60897 LazyCoreIconCompliance as c0, 60898 LazyCoreIconComputer as c1, 60899 LazyCoreIconConnected as c2, 60900 LazyCoreIconConnectedOutline as c3, 60901 LazyCoreIconContact as c4, 60902 LazyCoreIconContactEmail as c5, 60903 LazyCoreIconContactFax as c6, 60904 LazyCoreIconContactPage as c7, 60905 LazyCoreIconContactPhone as c8, 60906 LazyCoreIconContactSmartphone as c9, 60907 LazyCoreIconEmoji as cA, 60908 LazyCoreIconError as cB, 60909 LazyCoreIconErrorFilled as cC, 60910 LazyCoreIconExternalLink as cD, 60911 LazyCoreIconFacebook as cE, 60912 LazyCoreIconFavoriteFilled as cF, 60913 LazyCoreIconFavoriteUnfilled as cG, 60914 LazyCoreIconFax as cH, 60915 LazyCoreIconFile as cI, 60916 LazyCoreIconFilter as cJ, 60917 LazyCoreIconFilterOutline as cK, 60918 LazyCoreIconFocalPoint as cL, 60919 LazyCoreIconFolder as cM, 60920 LazyCoreIconFooter as cN, 60921 LazyCoreIconForm as cO, 60922 LazyCoreIconFormIcon as cP, 60923 LazyCoreIconGlobe as cQ, 60924 LazyCoreIconGradient as cR, 60925 LazyCoreIconGradientSquare as cS, 60926 LazyCoreIconGrid as cT, 60927 LazyCoreIconGridOn as cU, 60928 LazyCoreIconHamburgerMenu as cV, 60929 LazyCoreIconHeader as cW, 60930 LazyCoreIconHome as cX, 60931 LazyCoreIconIcon71 as cY, 60932 LazyCoreIconIcons as cZ, 60933 LazyCoreIconImage as c_, 60934 LazyCoreIconContainersIcon as ca, 60935 LazyCoreIconContentLibrary as cb, 60936 LazyCoreIconContentLibraryMedia as cc, 60937 LazyCoreIconCopy as cd, 60938 LazyCoreIconCopyright as ce, 60939 LazyCoreIconCornerDownRight as cf, 60940 LazyCoreIconCreditCard as cg, 60941 LazyCoreIconCrop as ch, 60942 LazyCoreIconDefault as ci, 60943 LazyCoreIconDesign as cj, 60944 LazyCoreIconDevices as ck, 60945 LazyCoreIconDiagonalRightArrow as cl, 60946 LazyCoreIconDisclosures as cm, 60947 LazyCoreIconDivider as cn, 60948 LazyCoreIconDomains as co, 60949 LazyCoreIconDotsHorizontal as cp, 60950 LazyCoreIconDotsVertical as cq, 60951 LazyCoreIconDownArrow as cr, 60952 LazyCoreIconDownload as cs, 60953 LazyCoreIconDraftDetails as ct, 60954 LazyCoreIconDrafts as cu, 60955 LazyCoreIconDuplicate as cv, 60956 LazyCoreIconEdit as cw, 60957 LazyCoreIconEditCircle as cx, 60958 LazyCoreIconEllipsisOutlined as cy, 60959 LazyCoreIconEmail as cz, 60960 defineNuxtPlugin as d, 60961 LazyCoreIconSettings as d$, 60962 LazyCoreIconInReview as d0, 60963 LazyCoreIconInfo as d1, 60964 LazyCoreIconInsertDriveFile as d2, 60965 LazyCoreIconInsertLink as d3, 60966 LazyCoreIconInstagram as d4, 60967 LazyCoreIconLandingLogo as d5, 60968 LazyCoreIconLayout as d6,
60969 LazyCoreIconLeftArrow as d7, 60970 LazyCoreIconLinkedin as d8, 60971 LazyCoreIconList as d9, 60972 LazyCoreIconPaddingRight as dA, 60973 LazyCoreIconPaddingTop as dB, 60974 LazyCoreIconPage as dC, 60975 LazyCoreIconPages as dD, 60976 LazyCoreIconPaintersPalette as dE, 60977 LazyCoreIconPause as dF, 60978 LazyCoreIconPauseCircle as dG, 60979 LazyCoreIconPdf as dH, 60980 LazyCoreIconPhone as dI, 60981 LazyCoreIconPhotoLibrary as dJ, 60982 LazyCoreIconPlay as dK, 60983 LazyCoreIconPlayCircle as dL, 60984 LazyCoreIconPlayCircleButton as dM, 60985 LazyCoreIconPlus as dN, 60986 LazyCoreIconQuestionMark as dO, 60987 LazyCoreIconReaderMode as dP, 60988 LazyCoreIconRedo as dQ, 60989 LazyCoreIconReorder as dR, 60990 LazyCoreIconReplace as dS, 60991 LazyCoreIconReplay as dT, 60992 LazyCoreIconRevert as dU, 60993 LazyCoreIconRightArrow as dV, 60994 LazyCoreIconRoundedSquare as dW, 60995 LazyCoreIconSearch as dX, 60996 LazyCoreIconSection as dY, 60997 LazyCoreIconSelectAll as dZ, 60998 LazyCoreIconSeo as d_, 60999 LazyCoreIconListView as da, 61000 LazyCoreIconLock as db, 61001 LazyCoreIconLogo as dc, 61002 LazyCoreIconMap as dd, 61003 LazyCoreIconMapPin as de, 61004 LazyCoreIconMaximize as df, 61005 LazyCoreIconMedia as dg, 61006 LazyCoreIconMenuClose as dh, 61007 LazyCoreIconMessageCircle as di, 61008 LazyCoreIconMinimize as dj, 61009 LazyCoreIconMinus as dk, 61010 LazyCoreIconMobilePhone as dl, 61011 LazyCoreIconModal as dm, 61012 LazyCoreIconMonitor as dn, 61013 LazyCoreIconMovieStrip as dp, 61014 LazyCoreIconNews as dq, 61015 LazyCoreIconNotes as dr, 61016 LazyCoreIconNotificationAlert as ds, 61017 LazyCoreIconNotifications as dt, 61018 LazyCoreIconOneTrust as du, 61019 LazyCoreIconOpenInFull as dv, 61020 LazyCoreIconPaddingAll as dw, 61021 LazyCoreIconPaddingBottom as dx, 61022 LazyCoreIconPaddingHorizontal as dy, 61023 LazyCoreIconPaddingLeft as dz, 61024 shallowReactive as e, 61025 generateCodeFrame as e$, 61026 LazyCoreIconShield as e0, 61027 LazyCoreIconShoppingBag as e1, 61028 LazyCoreIconShoppingCart as e2, 61029 LazyCoreIconSiteRedo as e3, 61030 LazyCoreIconSiteStyles as e4, 61031 LazyCoreIconSiteUndo as e5, 61032 LazyCoreIconSizing as e6, 61033 LazyCoreIconSocial as e7, 61034 LazyCoreIconSquareEdit as e8, 61035 LazyCoreIconStore as e9, 61036 defineAsyncComponent as eA, 61037 toRaw as eB, 61038 nextTick as eC, 61039 BRAND_FEATURE_FLAGS as eD, 61040 createStore as eE, 61041 axios as eF, 61042 mustache as eG, 61043 NOOP as eH, 61044 extend$1 as eI, 61045 isString$1 as eJ, 61046 NO as eK, 61047 isSymbol$1 as eL, 61048 isBuiltInDirective as eM, 61049 capitalize$1 as eN, 61050 camelize as eO, 61051 EMPTY_OBJ as eP, 61052 isObject$4 as eQ, 61053 toHandlerKey as eR, 61054 isArray$4 as eS, 61055 isOn as eT, 61056 isReservedProp as eU, 61057 isHTMLTag as eV, 61058 isSVGTag as eW, 61059 isMathMLTag as eX, 61060 isVoidTag as eY, 61061 parseStringStyle as eZ, 61062 makeMap as e_, 61063 LazyCoreIconTablet as ea, 61064 LazyCoreIconTabs as eb, 61065 LazyCoreIconTemplate as ec, 61066 LazyCoreIconTextStyle as ed, 61067 LazyCoreIconTheme as ee, 61068 LazyCoreIconTool as ef, 61069 LazyCoreIconTrash as eg, 61070 LazyCoreIconTwitter as eh, 61071 LazyCoreIconUndo as ei, 61072 LazyCoreIconUnlock as ej, 61073 LazyCoreIconUpdate as ek, 61074 LazyCoreIconUpload as el, 61075 LazyCoreIconUser as em, 61076 LazyCoreIconUserCheck as en, 61077 LazyCoreIconVideo as eo, 61078 LazyCoreIconVideoPlay as ep, 61079 LazyCoreIconViewDesktop as eq, 61080 LazyCoreIconViewDesktopSettings as er, 61081 LazyCoreIconViewLiveSite as es, 61082 LazyCoreIconVisibilityOff as et, 61083 LazyCoreIconVisibilityOn as eu, 61084 LazyCoreIconVolumeOff as ev, 61085 LazyCoreIconVolumeOn as ew, 61086 LazyCoreIconVolumeUp as ex, 61087 LazyCoreIconWatchLater as ey, 61088 LazyCoreIconYoutube as ez, 61089 reactive as f, 61090 __nuxt_component_0$2 as f$, 61091 runtimeDom_esmBundler as f0, 61092 shared_esmBundler as f1, 61093 defineComponent as f2, 61094 provide as f3, 61095 PageRouteSymbol as f4, 61096 inject as f5, 61097 watch as f6, 61098 onBeforeUnmount as f7, 61099 appPageTransition as f8, 61100 appKeepalive as f9, 61101 vueAppRootContainer as fA, 61102 useHead as fB, 61103 createBaseVNode as fC, 61104 toDisplayString as fD, 61105 createTextVNode as fE, 61106 __nuxt_component_2$5 as fF, 61107 useBlockNavOffset as fG, 61108 normalizeClass as fH, 61109 createStaticVNode as fI, 61110 useStore$1 as fJ, 61111 useRequestURL as fK, 61112 withAsyncContext as fL, 61113 navigateTo as fM, 61114 resolveNavOffsetStyle as fN, 61115 getFirstEligiblePageBlockIndex as fO, 61116 onMounted as fP, 61117 createCommentVNode as fQ, 61118 renderList as fR, 61119 _sfc_main$4x as fS, 61120 __variableDynamicImportRuntimeHelper as fT, 61121 useFetch as fU, 61122 getSiteAnimationSettingsFromRecord as fV, 61123 isAnimationEnabled as fW, 61124 normalizeAnimationSpeed as fX,
61125 ANIMATION_SPEED_DURATIONS as fY, 61126 callOnce as fZ, 61127 onUnmounted as f_, 61128 _wrapInTransition as fa, 61129 Suspense as fb, 61130 RouterView as fc, 61131 defu as fd, 61132 Fragment as fe, 61133 LayoutMetaSymbol as ff, 61134 useRoute$2 as fg, 61135 useRoute$1 as fh, 61136 computed as fi, 61137 unref as fj, 61138 appLayoutTransition as fk, 61139 mergeProps as fl, 61140 _export_sfc as fm, 61141 createBlock as fn, 61142 openBlock as fo, 61143 withCtx as fp, 61144 createVNode as fq, 61145 normalizeProps$1 as fr, 61146 guardReactiveProps as fs, 61147 onErrorCaptured as ft, 61148 createElementBlock as fu, 61149 resolveDynamicComponent as fv, 61150 createSSRApp as fw, 61151 createApp as fx, 61152 createNuxtApp as fy, 61153 applyPlugins as fz, 61154 definePayloadReviver as g, 61155 renderSlot as g0, 61156 __nuxt_component_2$1 as g1, 61157 __nuxt_component_1$1 as g2, 61158 executeAsync as h, 61159 getNuxtClientPayload as i, 61160 destr as j, 61161 hashTag as k, 61162 isMetaArrayDupeKey as l, 61163 dedupeKey as m, 61164 normalizeProps as n, 61165 createUnhead as o, 61166 h as p, 61167 defineNuxtRouteMiddleware as q, 61168 ref as r, 61169 shallowRef as s, 61170 useRouter$2 as t, 61171 useNuxtApp as u, 61172 vueInstall as v, 61173 withBase as w, 61174 showError as x, 61175 getRouteRules as y, 61176 hasProtocol as z 61177};
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.