1import{d as E,l as F,o as I,aE as k,i as O,z as x,k as J,D as Q,j as C,ah as X,n as N,M as W}from"./DSmEakSF.js";const Pe=e=>{const t=e.split(" ");return e.split(" ").forEach((n,r)=>t[r]=n[0]+n.slice(1,n.length).toLowerCase()),t.join(" ")};function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(r){Y(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y(e,t,n){return(t=Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e){var t=ee(e,"string");return typeof t=="symbol"?t:t+""}function ee(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $(e){return e._type==="span"&&"text"in e&&typeof e.text=="string"&&(typeof e.marks>"u"||Array.isArray(e.marks)&&e.marks.every(t=>typeof t=="string"))}function z(e){return typeof e._type=="string"&&e._type[0]!=="@"&&(!("markDefs"in e)||!e.markDefs||Array.isArray(e.markDefs)&&e.markDefs.every(t=>typeof t._key=="string"))&&"children"in e&&Array.isArray(e.children)&&e.children.every(t=>typeof t=="object"&&"_type"in t)}function K(e){return z(e)&&"listItem"in e&&typeof e.listItem=="string"&&(typeof e.level>"u"||typeof e.level=="number")}function q(e){return e._type==="@list"}function R(e){return e._type==="@span"}function U(e){return e._type==="@text"}const P=["strong","em","code","underline","strike-through"];function te(e,t,n){if(!$(e)||!e.marks)return[];if(!e.marks.length)return[];const r=e.marks.slice(),o={};return r.forEach(l=>{o[l]=1;for(let u=t+1;u<n.length;u++){const a=n[u];if(a&&$(a)&&Array.isArray(a.marks)&&a.marks.indexOf(l)!==-1)o[l]++;else break}}),r.sort((l,u)=>ne(o,l,u))}function ne(e,t,n){const r=e[t],o=e[n];if(r!==o)return o-r;const l=P.indexOf(t),u=P.indexOf(n);return l!==u?l-u:t.localeCompare(n)}function re(e){var t,n;const{children:r}=e,o=(t=e.markDefs)!=null?t:[];if(!r||!r.length)return[];const l=r.map(te),u={_type:"@span",children:[],markType:"<unknown>"};let a=[u];for(let b=0;b<r.length;b++){const v=r[b];if(!v)continue;const _=l[b]||[];let i=1;if(a.length>1)for(i;i<a.length;i++){const c=((n=a[i])==null?void 0:n.markKey)||"",d=_.indexOf(c);if(d===-1)break;_.splice(d,1)}a=a.slice(0,i);let s=a[a.length-1];if(s){for(const c of _){const d=o?.find(p=>p._key===c),y=d?d._type:c,f={_type:"@span",_key:v._key,children:[],markDef:d,markType:y,markKey:c};s.children.push(f),a.push(f),s=f}if($(v)){const c=v.text.split(` 2`);for(let d=c.length;d-- >1;)c.splice(d,0,` 3`);s.children=s.children.concat(c.map(d=>({_type:"@text",text:d})))}else s.children=s.children.concat(v)}}return u.children}function oe(e,t){const n=[];let r;for(let o=0;o<e.length;o++){const l=e[o];if(l){if(!K(l)){n.push(l),r=void 0;continue}if(!r){r=j(l,o,t),n.push(r);continue}if(le(l,r)){r.children.push(l);continue}if((l.level||1)>r.level){const u=j(l,o,t);if(t==="html"){const a=r.children[r.children.length-1],b=D(D({},a),{},{children:[...a.children,u]});r.children[r.children.length-1]=b}else r.children.push(u);r=u;continue}if((l.level||1)<r.level){const u=n[n.length-1],a=u&&S(u,l);if(a){r=a,r.children.push(l);continue}r=j(l,o,t),n.push(r);continue}if(l.listItem!==r.listItem){const u=n[n.length-1],a=u&&S(u,{level:l.level||1});if(a&&a.listItem===l.listItem){r=a,r.children.push(l);continue}else{r=j(l,o,t),n.push(r);continue}}console.warn("Unknown state encountered for block",l),n.push(l)}}return n}function le(e,t){return(e.level||1)===t.level&&e.listItem===t.listItem}function j(e,t,n){return{_type:"@list",_key:`${e._key||`${t}`}-parent`,mode:n,level:e.level||1,listItem:e.listItem,children:[e]}}function S(e,t){const n=t.level||1,r=t.listItem||"normal",o=typeof t.listItem=="string";if(q(e)&&(e.level||1)===n&&o&&(e.listItem||"normal")===r)return e;if(!("children"in e))return;const l=e.children[e.children.length-1];return l&&!$(l)?S(l,t):void 0}function V(e){let t="";
3return e.children.forEach(n=>{U(n)?t+=n.text:R(n)&&(t+=V(n))}),t}const ie="html";function se(e,t){const{block:n,list:r,listItem:o,marks:l,types:u,...a}=t;return{...e,block:w(e,t,"block"),list:w(e,t,"list"),listItem:w(e,t,"listItem"),marks:w(e,t,"marks"),types:w(e,t,"types"),...a}}function w(e,t,n){const r=t[n],o=e[n];return typeof r=="function"||r&&typeof o=="function"?r:r?{...o,...r}:o}const m=e=>(t,{slots:n})=>{var r;return k(e,(r=n.default)==null?void 0:r.call(n))},ce=({value:e},{slots:t})=>{var n;return k("a",{href:e?.href},(n=t.default)==null?void 0:n.call(t))},ae={textDecoration:"underline"},ue={code:m("code"),em:m("em"),link:ce,"strike-through":m("del"),strong:m("strong"),underline:(e,{slots:t})=>{var n;return k("span",{style:ae},(n=t.default)==null?void 0:n.call(t))}},de={number:m("ol"),bullet:m("ul")},ye=m("li"),T=(e,t)=>`[@portabletext/vue] Unknown ${e}, specify a component for it in the \`components.${t}\` prop`,G=e=>T(`block type "${e}"`,"types"),fe=e=>T(`mark type "${e}"`,"marks"),pe=e=>T(`block style "${e}"`,"block"),me=e=>T(`list style "${e}"`,"list"),ke=e=>T(`list item style "${e}"`,"listItem");function he(e){console.warn(e)}const B={display:"none"},be=({value:e,isInline:t})=>{const n=G(e._type);return t?k("span",{style:B},n):k("div",{style:B},n)},ve=({markType:e},{slots:t})=>{var n;return k("span",{class:`unknown__pt__mark__${e}`},(n=t.default)==null?void 0:n.call(t))},_e=m("p"),ge=m("ul"),xe=m("li"),Ie=()=>k("br"),we={normal:m("p"),blockquote:m("blockquote"),h1:m("h1"),h2:m("h2"),h3:m("h3"),h4:m("h4"),h5:m("h5"),h6:m("h6")},L={types:{},block:we,marks:ue,list:de,listItem:ye,hardBreak:Ie,unknownType:be,unknownMark:ve,unknownList:ge,unknownListItem:xe,unknownBlockStyle:_e},Oe=(e,t)=>{function n(i){const{node:s,index:c,isInline:d}=i,y=s._key||`node-${c}`;return q(s)?l(s,c,y):K(s)?o(s,c,y):R(s)?u(s,c,y):r(s)?_(s,c,y,d):z(s)?a(s,c,y,d):U(s)?b(s,y):v(s,c,y,d)}function r(i){return i._type in e.types}function o(i,s,c){const d=M({node:i,index:s,isInline:!1,renderNode:n}),y=e.listItem,f=(typeof y=="function"?y:y[i.listItem])||e.unknownListItem;if(f===e.unknownListItem){const h=i.listItem||"bullet";t(ke(h),{type:h,nodeType:"listItemStyle"})}let p=d.children;if(i.style&&i.style!=="normal"){const{listItem:h,...g}=i;p=n({node:g,index:s,isInline:!1})}return k(f,{key:c,value:i,index:s,isInline:!1,renderNode:n},()=>p)}function l(i,s,c){const d=i.children.map((p,h)=>n({node:p._key?p:{...p,_key:`li-${s}-${h}`},index:h,isInline:!1})),y=e.list,f=(typeof y=="function"?y:y[i.listItem])||e.unknownList;if(f===e.unknownList){const p=i.listItem||"bullet";t(me(p),{nodeType:"listStyle",type:p})}return k(f,{key:c,value:i,index:s,isInline:!1,renderNode:n},()=>d)}function u(i,s,c){const{markDef:d,markType:y,markKey:f}=i,p=e.marks[y]||e.unknownMark,h=i.children.map((g,H)=>n({node:g,index:H,isInline:!0}));return p===e.unknownMark&&t(fe(y),{nodeType:"mark",type:y}),k(p,{key:c,text:V(i),value:d,markType:y,markKey:f,renderNode:n},()=>h)}function a(i,s,c,d){const{_key:y,children:f,...p}=M({node:i,index:s,isInline:d,renderNode:n}),h=p.node.style||"normal",g=(typeof e.block=="function"?e.block:e.block[h])||e.unknownBlockStyle;return g===e.unknownBlockStyle&&t(pe(h),{nodeType:"blockStyle",type:h}),k(g,{key:c,...p,value:p.node,renderNode:n},()=>f)}function b(i,s){if(i.text===` 4`){const c=e.hardBreak;return c?k(c,{key:s}):` 5`}return i.text}function v(i,s,c,d){const y={value:i,isInline:d,index:s,renderNode:n};t(G(i._type),{nodeType:"block",type:i._type});const f=e.unknownType;return k(f,{key:c,...y})}function _(i,s,c,d){const y={value:i,isInline:d,index:s,renderNode:n},f=e.types[i._type];return f?k(f,{key:c,...y}):void 0}return n};function M(e){const{node:t,index:n,isInline:r,renderNode:o}=e,l=re(t).map((u,a)=>o({node:u,isInline:!0,index:a,renderNode:o}));return{_key:t._key||`block-${n}`,children:l,index:n,isInline:r,node:t}}const Te=E({__name:"vue-portable-text",props:{value:{},components:{},onMissingComponent:{type:[Function,Boolean],default:()=>he},listNestingMode:{}},setup(e){function t(){}const n=e,r=()=>{const o=n.onMissingComponent||t,l=Array.isArray(n.value)?n.value:[n.value],u=oe(l,n.listNestingMode||ie),a=n.components?se(L,n.c
5omponents):L,b=Oe(a,o);return u.map((v,_)=>b({node:v,index:_,isInline:!1,renderNode:b}))};return(o,l)=>(I(),F(r))}}),je={name:"PortableTextComponent"},$e=E({...je,props:{value:Object},setup(e){const t=e,n={marks:{textColorGreen:({markType:r,text:o})=>x("span",{class:"--text-color-green"},[o]),textColorRust:({markType:r,text:o})=>x("span",{class:"--text-color-rust"},[o]),textSizeSmall:({markType:r,text:o})=>x("span",{class:"--text-size-small"},[o]),textSizeBodyLarge:({markType:r,text:o})=>x("span",{class:"--text-size-body-large"},[o])}};return(r,o)=>(I(),O("span",null,[x(J(Te),{value:t.value,components:n},null,8,["value"])]))}}),Ce=Q($e,[["__scopeId","data-v-b276fea6"]]),Ne=["innerHTML"],Se={key:2,class:"lockup__body","data-block-anim":""},Ae={name:"Lockup Block"},Be=Object.assign(Ae,{props:{data:Object,rootClasses:{type:Array,default:()=>[]},eyebrowClasses:{type:Array,default:()=>[]},bodyClasses:{type:Array,default:()=>[]},isActive:Boolean},emits:["contentReady"],setup(e,{emit:t}){return(n,r)=>{const o=Ce;return I(),O("section",{class:N(["lockup",[...e.rootClasses]])},[e.data.eyebrow?(I(),O("label",{key:0,class:N(["lockup__eyebrow --heading3",[...e.eyebrowClasses]]),"data-block-anim":""},W(e.data.eyebrow?.text),3)):C("",!0),e.data.heading?(I(),O("h1",{key:1,class:"lockup__title",innerHTML:e.data.heading?.text,"data-block-anim":""}
5,null,8,Ne)):C("",!0),e.data.body&&e.data.body?.length?(I(),O("div",Se,[x(o,{class:N(["pt",[...e.bodyClasses]]),value:e.data.body},null,8,["class","value"])])):C("",!0),X(n.$slots,"default")],2)}}});export{Be as _,Ce as a,Pe as c};
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.