import{d as O,g as I,n as A,o as f,c as h,F as W,r as H,b as E,t as z,e as b,L as $e,_ as Ce,l as F,O as k,P as Je,Q as ce,i as _,x as U,A as T,v as q,h as Qe,y as Ye,R as et,m as S,a as tt,H as Pe,S as Ie,C as G,U as V,V as nt,K as Te,W as rt,X as ot,Y as it,Z as st,$ as De,a0 as Oe,q as at}from"./entry.a471c64d.js";import{g as ee,s as lt}from"./colors.5850bc4f.js";import{_ as ct}from"./nuxt-link.2393dc25.js";import{_ as ut}from"./Card.vue.8d26cffd.js";import{_ as ue,P as me,a as dt,b as ft}from"./index.vue.053681e5.js";import{_ as Le}from"./_plugin-vue_export-helper.c27b6911.js";const mt=$e(()=>Ce(()=>import("./Lottie.2160f740.js"),["./Lottie.2160f740.js","./entry.a471c64d.js","./entry.8dba3846.css","./_plugin-vue_export-helper.c27b6911.js","./index.vue.053681e5.js","./index.667f36cf.js","./Lottie.08e02176.css"],import.meta.url).then(t=>t.default||t)),ht={class:"sm:p-2"},gt=O({__name:"SoundBricks",props:{items:{required:!0},heading:{required:!1},isFullWidth:{required:!1,type:Boolean}},setup(t){const e=t,n=I(()=>{if(e.items.length<=2)return"grid-cols-2 ";if(e.items.length>2)return"grid-cols-2 sm:gap-2 sm:grid-cols-4"});return A(()=>{console.log("soundbricks: ",e)}),(o,i)=>{const r=mt;return f(),h("div",{class:z(["margins grid gap-4",b(n)])},[(f(!0),h(W,null,H(e.items,s=>(f(),h("div",ht,[E(r,{lottieSrc:s.lottieDetails.lottieUrl,audioSrc:s.lottieDetails.audioUrl,caption:s.lottieDetails.caption,title:s.lottieDetails.title},null,8,["lottieSrc","audioSrc","caption","title"])]))),256))],2)}}});function he(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function ge(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?he(Object(n),!0).forEach(function(o){pt(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function pt(t,e,n){return e=yt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yt(t){var e=_t(t,"string");return typeof e=="symbol"?e:String(e)}function _t(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function te(t){return t._type==="span"&&"text"in t&&typeof t.text=="string"&&(typeof t.marks>"u"||Array.isArray(t.marks)&&t.marks.every(e=>typeof e=="string"))}function Be(t){return typeof t._type=="string"&&t._type[0]!=="@"&&(!("markDefs"in t)||!t.markDefs||Array.isArray(t.markDefs)&&t.markDefs.every(e=>typeof e._key=="string"))&&"children"in t&&Array.isArray(t.children)&&t.children.every(e=>typeof e=="object"&&"_type"in e)}function je(t){return Be(t)&&"listItem"in t&&typeof t.listItem=="string"&&(typeof t.level>"u"||typeof t.level=="number")}function Ae(t){return t._type==="@list"}function Me(t){return t._type==="@span"}function Ee(t){return t._type==="@text"}const pe=["strong","em","code","underline","strike-through"];function vt(t,e,n){if(!te(t)||!t.marks)return[];if(!t.marks.length)return[];const o=t.marks.slice(),i={};return o.forEach(r=>{i[r]=1;for(let s=e+1;s<n.length;s++){const a=n[s];if(a&&te(a)&&Array.isArray(a.marks)&&a.marks.indexOf(r)!==-1)i[r]++;else break}}),o.sort((r,s)=>wt(i,r,s))}function wt(t,e,n){const o=t[e],i=t[n];if(o!==i)return i-o;const r=pe.indexOf(e),s=pe.indexOf(n);return r!==s?r-s:e.localeCompare(n)}function bt(t){var e;const{children:n,markDefs:o=[]}=t;if(!n||!n.length)return[];const i=n.map(vt),r={_type:"@span",children:[],markType:"<unknown>"};let s=[r];for(let a=0;a<n.length;a++){const l=n[a];if(!l)continue;const m=i[a]||[];let g=1;if(s.length>1)for(g;g<s.length;g++){const u=((e=s[g])==null?void 0:e.markKey)||"",d=m.indexOf(u);if(d===-1)break;m.splice(d,1)}s=s.slice(0,g);let c=s[s.length-1];if(c){for(const u of m){const d=o.find($=>$._key===u),p=d?d._type:u,y={_type:"@span",_key:l._key,children:[],markDef:d,markType:p,markKey:u};c.children.push(y),s.push(y),c=y}if(te(l)){const u=l.text.split(`
`);for(let d=u.length;d-- >1;)u.splice(d,0,`
`);c.children=c.children.concat(u.map(d=>({_type:"@text",text:d})))}else c.children=c.children.concat(l)}}return r.children}function kt(t,e){const n=[];let o;for(let i=0;i<t.length;i++){const r=t[i];if(r){if(!je(r)){n.push(r),o=void 0;continue}if(!o){o=J(r,i,e),n.push(o);continue}if(xt(r,o)){o.children.push(r);continue}if((r.level||1)>o.level){const s=J(r,i,e);if(e==="html"){const a=o.children[o.children.length-1],l=ge(ge({},a),{},{children:[...a.children,s]});o.children[o.children.length-1]=l}else o.children.push(s);o=s;continue}if((r.level||1)<o.level){const s=n[n.length-1],a=s&&se(s,r);if(a){o=a,o.children.push(r);continue}o=J(r,i,e),n.push(o);continue}if(r.listItem!==o.listItem){const s=n[n.length-1],a=s&&se(s,{level:r.level||1});if(a&&a.listItem===r.listItem){o=a,o.children.push(r);continue}else{o=J(r,i,e),n.push(o);continue}}console.warn("Unknown state encountered for block",r),n.push(r)}}return n}function xt(t,e){return(t.level||1)===e.level&&t.listItem===e.listItem}function J(t,e,n){return{_type:"@list",_key:"".concat(t._key||"".concat(e),"-parent"),mode:n,level:t.level||1,listItem:t.listItem,children:[t]}}function se(t,e){const n=e.level||1,o=e.listItem||"normal",i=typeof e.listItem=="string";if(Ae(t)&&(t.level||1)===n&&i&&(t.listItem||"normal")===o)return t;if(!("children"in t))return;const r=t.children[t.children.length-1];return r&&!te(r)?se(r,e):void 0}function Ue(t){let e="";return t.children.forEach(n=>{Ee(n)?e+=n.text:Me(n)&&(e+=Ue(n))}),e}const St="html";function $t(t,e){const{block:n,list:o,listItem:i,marks:r,types:s,...a}=e;return{...t,block:X(t,e,"block"),list:X(t,e,"list"),listItem:X(t,e,"listItem"),marks:X(t,e,"marks"),types:X(t,e,"types"),...a}}function X(t,e,n){const o=e[n],i=t[n];return typeof o=="function"||o&&typeof i=="function"?o:o?{...i,...o}:i}const j=t=>(e,{slots:n})=>{var o;return k(t,(o=n.default)==null?void 0:o.call(n))},Ct=({value:t},{slots:e})=>{var n;return k("a",{href:t==null?void 0:t.href},(n=e.default)==null?void 0:n.call(e))},Pt={textDecoration:"underline"},It={code:j("code"),em:j("em"),link:Ct,"strike-through":j("del"),strong:j("strong"),underline:(t,{slots:e})=>{var n;return k("span",{style:Pt},(n=e.default)==null?void 0:n.call(e))}},Tt={number:j("ol"),bullet:j("ul")},Dt=j("li"),Z=(t,e)=>`[@portabletext/vue] Unknown ${t}, specify a component for it in the \`components.${e}\` prop`,Ne=t=>Z(`block type "${t}"`,"types"),Ot=t=>Z(`mark type "${t}"`,"marks"),Lt=t=>Z(`block style "${t}"`,"block"),Bt=t=>Z(`list style "${t}"`,"list"),jt=t=>Z(`list item style "${t}"`,"listItem");function At(t){console.warn(t)}const ye={display:"none"},Mt=({value:t,isInline:e})=>{const n=Ne(t._type);return e?k("span",{style:ye},n):k("div",{style:ye},n)},Et=({markType:t},{slots:e})=>{var n;return k("span",{class:`unknown__pt__mark__${t}`},(n=e.default)==null?void 0:n.call(e))},Ut=j("p"),Nt=j("ul"),Rt=j("li"),Wt=()=>k("br"),zt={normal:j("p"),blockquote:j("blockquote"),h1:j("h1"),h2:j("h2"),h3:j("h3"),h4:j("h4"),h5:j("h5"),h6:j("h6")},_e={types:{},block:zt,marks:It,list:Tt,listItem:Dt,hardBreak:Wt,unknownType:Mt,unknownMark:Et,unknownList:Nt,unknownListItem:Rt,unknownBlockStyle:Ut},qt=(t,e)=>{function n(c){const{node:u,index:d,isInline:p}=c,y=u._key||`node-${d}`;return Ae(u)?r(u,d,y):je(u)?i(u,d,y):Me(u)?s(u,d,y):o(u)?g(u,d,y,p):Be(u)?a(u,d,y,p):Ee(u)?l(u,y):m(u,d,y,p)}function o(c){return c._type in t.types}function i(c,u,d){const p=ve({node:c,index:u,isInline:!1,renderNode:n}),y=t.listItem,$=(typeof y=="function"?y:y[c.listItem])||t.unknownListItem;if($===t.unknownListItem){const P=c.listItem||"bullet";e(jt(P),{type:P,nodeType:"listItemStyle"})}let C=p.children;if(c.style&&c.style!=="normal"){const{listItem:P,...v}=c;C=n({node:v,index:u,isInline:!1,renderNode:n})}return k($,{key:d,value:c,index:u,isInline:!1,renderNode:n},()=>C)}function r(c,u,d){const p=c.children.map((C,P)=>n({node:C._key?C:{...C,_key:`li-${u}-${P}`},index:P,isInline:!1,renderNode:n})),y=t.list,$=(typeof y=="function"?y:y[c.listItem])||t.unknownList;if($===t.unknownList){const C=c.listItem||"bullet";e(Bt(C),{nodeType:"listStyle",type:C})}return k($,{key:d,value:c,index:u,isInline:!1,renderNode:n},()=>p)}function s(c,u,d){const{markDef:p,markType:y,markKey:$}=c,C=t.marks[y]||t.unknownMark,P=c.children.map((v,w)=>n({node:v,index:w,isInline:!0,renderNode:n}));return C===t.unknownMark&&e(Ot(y),{nodeType:"mark",type:y}),k(C,{key:d,text:Ue(c),value:p,markType:y,markKey:$,renderNode:n},()=>P)}function a(c,u,d,p){const{_key:y,children:$,...C}=ve({node:c,index:u,isInline:p,renderNode:n}),P=C.node.style||"normal",v=(typeof t.block=="function"?t.block:t.block[P])||t.unknownBlockStyle;return v===t.unknownBlockStyle&&e(Lt(P),{nodeType:"blockStyle",type:P}),k(v,{key:d,...C,value:C.node,renderNode:n},()=>$)}function l(c,u){if(c.text===`
`){const d=t.hardBreak;return d?k(d,{key:u}):`
`}return c.text}function m(c,u,d,p){const y={value:c,isInline:p,index:u,renderNode:n};e(Ne(c._type),{nodeType:"block",type:c._type});const $=t.unknownType;return k($,{key:d,...y})}function g(c,u,d,p){const y={value:c,isInline:p,index:u,renderNode:n},$=t.types[c._type];return $?k($,{key:d,...y}):void 0}return n};function ve(t){const{node:e,index:n,isInline:o,renderNode:i}=t,r=bt(e).map((s,a)=>i({node:s,isInline:!0,index:a,renderNode:i}));return{_key:e._key||`block-${n}`,children:r,index:n,isInline:o,node:e}}const Ft=O({__name:"vue-portable-text",props:{value:{},components:{},onMissingComponent:{type:[Function,Boolean],default:()=>At},listNestingMode:{}},setup(t){const e=t;function n(){}const o=e.onMissingComponent||n,i=Array.isArray(e.value)?e.value:[e.value],r=kt(i,e.listNestingMode||St),s=e.components?$t(_e,e.components):_e,a=qt(s,o),l=r.map((g,c)=>a({node:g,index:c,isInline:!1,renderNode:a})),m=()=>l;return(g,c)=>(f(),F(m))}}),de=O({__name:"SimpleText",props:{blocks:{},centeredText:{type:Boolean}},setup(t){const e=Je(),{$urlFor:n}=ce(),o={types:{image:({value:i})=>k("img",{src:n(i.asset).width(800).height(500).url(),class:"w-full my-4 corners"}),reference:({value:i})=>k("a",{href:i._key,class:"w-full my-4 corners"}),callToAction:({value:i,isInline:r},{slots:s})=>r?k("a",{href:i.url},i.text):k("div",{class:"callToAction"},i.text)},marks:{quote:({value:i},{slots:r})=>{var s;return k("p",{class:"font-serif font-normal"},(s=r.default)==null?void 0:s.call(r))},centered:({value:i},{slots:r})=>{var s;return k("div",{class:"text-center"},(s=r.default)==null?void 0:s.call(r))},link:({value:i},{slots:r})=>{var l;const s=i.href.startsWith("/")?void 0:"noreferrer noopener";let a=i.blank?"_blank":"_self";return k("a",{href:i.href,rel:s,class:"text-gray-500 ",target:a},(l=r.default)==null?void 0:l.call(r))},internalLink:({value:i},{slots:r})=>{var s,a,l,m,g,c;switch((s=i==null?void 0:i.linkDetails)==null?void 0:s._type){case"work":return k("a",{class:"text-gray-500 cursor-pointer",onClick:()=>{e.push(`/work/${i.linkDetails.slug.current}`)}},(a=r.default)==null?void 0:a.call(r));case"category":return k("a",{class:"text-gray-500 cursor-pointer ",onClick:()=>{e.push(`/category/${i.linkDetails.slug.current}`)}},(l=r.default)==null?void 0:l.call(r));case"page":return k("a",{class:"text-gray-500 cursor-pointer link-arrow",onClick:()=>{e.push(`/${i.linkDetails.slug.current}`)}},(m=r.default)==null?void 0:m.call(r));case"lab":return k("a",{class:"text-gray-500 cursor-pointer link-arrow",onClick:()=>{e.push(`/labs/${i.linkDetails.slug.current}`)}},(g=r.default)==null?void 0:g.call(r));default:return k("a",{href:i._key,class:"text-gray-500 ",target:"_blank"},(c=r.default)==null?void 0:c.call(r))}}},block:{hero:(i,{slots:r})=>{var s;return k("div",{class:"title-hero  "},(s=r.default)==null?void 0:s.call(r))},h1:(i,{slots:r})=>{var s;return k("h1",{class:"title-h1 "},(s=r.default)==null?void 0:s.call(r))},h3:(i,{slots:r})=>{var s;return k("h3",{class:"title-h3 "},(s=r.default)==null?void 0:s.call(r))},h5:(i,{slots:r})=>{var s;return k("h5",{class:"title-h5 "},(s=r.default)==null?void 0:s.call(r))},blockquote:(i,{slots:r})=>{var s;return k("blockquote",{class:"border-l-purple-500"},(s=r.default)==null?void 0:s.call(r))},normal:(i,{slots:r})=>{var s;return k("p",{class:"pb-4 "},(s=r.default)==null?void 0:s.call(r))}}};return A(()=>{}),(i,r)=>(f(),h("div",{class:z({"text-center":i.centeredText})},[E(b(Ft),{value:i.blocks,components:o},null,8,["value"])],2))}}),Ht={key:0,class:"margins thegrid"},Vt={class:"block"},Gt={key:0,class:"font-normal"},Xt={class:"ml-16 sm:ml-0"},Kt={key:1,class:"margins w-full"},Re=O({__name:"TextSection",props:{items:{required:!0},heading:{required:!1},layoutType:{type:String}},setup(t){const e=t;return A(()=>{}),(n,o)=>{const i=de;return f(),h("div",null,[e.layoutType=="columns"?(f(),h("section",Ht,[_("div",Vt,[e.heading?(f(),h("p",Gt,U(e.heading),1)):T("",!0)]),_("div",Xt,[(f(!0),h(W,null,H(e.items,r=>(f(),h("div",{class:"sm:mb-8",key:r._key},[E(i,{blocks:r.content},null,8,["blocks"])]))),128))])])):T("",!0),e.layoutType=="full"?(f(),h("section",Kt,[(f(!0),h(W,null,H(e.items,r=>(f(),h("div",{class:"",key:r._key},[E(i,{blocks:r.content},null,8,["blocks"])]))),128))])):T("",!0)])}}}),Zt={key:0,class:"absolute inset-0 flex items-center justify-center -z-10 blur-2xl opacity-40"},Jt=O({__name:"BgBlob",props:{accentColor:Object,numberOfBlobs:{type:Number,default:5}},setup(t){const e=t,n=I(()=>{var a;return(a=e==null?void 0:e.accentColor)!=null&&a.hex?ee(e.accentColor.hex):ee("#eeeeee")}),o=(a,l)=>Math.floor(Math.random()*(l-a+1))+a,i=()=>{const a=o(-90,90),l=o(-60,60),m=o(-60,60);return`translate(${l}%, ${m}%) rotate(${a}deg)`},r=a=>({backgroundColor:a,transform:i(),height:`${o(50,60)}%`,width:`${o(10,20)}%`,borderRadius:`${o(40,50)}%`,opacity:o(10,100)/100,position:"absolute",zIndex:-1}),s=I(()=>{let a=[];for(let l=0;l<e.numberOfBlobs;l++)a.push(r(n.value[l%n.value.length]));return a});return A(()=>{}),(a,l)=>e.accentColor?(f(),h("div",Zt,[(f(!0),h(W,null,H(b(s),m=>(f(),h("div",{class:"",style:q(m)},null,4))),256))])):T("",!0)}}),Qt={class:"margins relative"},Yt={key:0,class:"sm:thegrid flex w-full text-sm sm:text-sm"},en={key:0,class:"flex gap-8"},tn=_("p",{class:"text-gray-500"},"Client",-1),nn={key:0},rn={class:"text-gray-500"},on=O({__name:"ProjectHero",props:["heading","brand","categories","accentColor"],setup(t){const e=t,n=I(()=>{var o,i;return((o=e==null?void 0:e.categories)==null?void 0:o.length)>0||((i=e==null?void 0:e.brand)==null?void 0:i.name)});return A(()=>{}),(o,i)=>{var l,m;const r=Jt,s=de,a=ct;return f(),h("div",null,[_("section",Qt,[E(r,{accentColor:e.accentColor},null,8,["accentColor"]),E(s,{blocks:(l=e==null?void 0:e.heading)==null?void 0:l.content,class:"mb-16"},null,8,["blocks"]),b(n)?(f(),h("div",Yt,[e.brand?(f(),h("div",en,[_("div",null,[tn,_("p",null,U((m=e==null?void 0:e.brand)==null?void 0:m.name),1)]),e!=null&&e.categories?(f(),h("div",nn,[_("p",rn,U((e==null?void 0:e.categories.length)>1?"Services":"Service"),1),(f(!0),h(W,null,H(e==null?void 0:e.categories,g=>(f(),h("p",null,[E(a,{to:{name:"category-slug",params:{slug:g.slug.current}}},{default:Qe(()=>[Ye(U(g.name),1)]),_:2},1032,["to"])]))),256))])):T("",!0)])):T("",!0)])):T("",!0)])])}}});function ae(t,e,n=".",o){if(!oe(e))return ae(t,{},n,o);const i=Object.assign({},e);for(const r in t){if(r==="__proto__"||r==="constructor")continue;const s=t[r];s!=null&&(o&&o(i,r,s,n)||(Array.isArray(s)&&Array.isArray(i[r])?i[r]=[...s,...i[r]]:oe(s)&&oe(i[r])?i[r]=ae(s,i[r],(n?`${n}.`:"")+r.toString(),o):i[r]=s))}return i}function oe(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function sn(t){return(...e)=>e.reduce((n,o)=>ae(n,o,"",t),{})}const We=sn(),an=/#/g,ln=/&/g,cn=/\//g,un=/\?/g,dn=/\+/g,fn=/%7c/gi,mn=/%252f/gi;function hn(t){return encodeURI(""+t).replace(fn,"|")}function ze(t){return hn(t).replace(an,"%23").replace(un,"%3F").replace(mn,"%2F").replace(ln,"%26").replace(dn,"%2B")}function we(t){return ze(t).replace(cn,"%2F")}const gn=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,pn=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,yn=/^([/\\]\s*){2,}[^/\\]/;function le(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?gn.test(t):pn.test(t)||(e.acceptRelative?yn.test(t):!1)}const _n=/\/$|\/\?|\/#/;function vn(t="",e){return e?_n.test(t):t.endsWith("/")}function wn(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(vn(t,!0))return t||"/";let n=t,o="";const i=t.indexOf("#");if(i>=0&&(n=t.slice(0,i),o=t.slice(i),!n))return o;const[r,...s]=n.split("?");return r+"/"+(s.length>0?`?${s.join("?")}`:"")+o}function bn(t=""){return t.startsWith("/")}function kn(t=""){return bn(t)?t:"/"+t}function xn(t){return t&&t!=="/"}const Sn=/^\.?\//;function ne(t,...e){let n=t||"";for(const o of e.filter(i=>xn(i)))if(n){const i=o.replace(Sn,"");n=wn(n)+i}else n=o;return n}function qe(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,c,u=""]=n;return{protocol:c.toLowerCase(),pathname:u,href:c+u,auth:"",host:"",search:"",hash:""}}if(!le(t,{acceptRelative:!0}))return e?qe(e+t):be(t);const[,o="",i,r=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=r.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:m,hash:g}=be(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:o.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:s,pathname:l,search:m,hash:g}}function be(t=""){const[e="",n="",o=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:o}}async function $n(t,e){return await Cn(e).catch(o=>(console.error("Failed to get image meta for "+e,o+""),{width:0,height:0,ratio:0}))}async function Cn(t){if(typeof Image>"u")throw new TypeError("Image not supported");return new Promise((e,n)=>{const o=new Image;o.onload=()=>{const i={width:o.width,height:o.height,ratio:o.width/o.height};e(i)},o.onerror=i=>n(i),o.src=t})}function ke(t){return e=>e?t[e]||e:t.missingValue}function Fe({formatter:t,keyMap:e,joinWith:n="/",valueMap:o}={}){t||(t=(r,s)=>`${r}=${s}`),e&&typeof e!="function"&&(e=ke(e));const i=o||{};return Object.keys(i).forEach(r=>{typeof i[r]!="function"&&(i[r]=ke(i[r]))}),(r={})=>Object.entries(r).filter(([a,l])=>typeof l<"u").map(([a,l])=>{const m=i[a];return typeof m=="function"&&(l=m(r[a])),a=typeof e=="function"?e(a):a,t(a,l)}).join(n)}function R(t=""){if(typeof t=="number")return t;if(typeof t=="string"&&t.replace("px","").match(/^\d+$/g))return parseInt(t,10)}function Pn(t=""){if(t===void 0||!t.length)return[];const e=new Set;for(const n of t.split(" ")){const o=parseInt(n.replace("x",""));o&&e.add(o)}return Array.from(e)}function In(t){if(t.length===0)throw new Error("`densities` must not be empty, configure to `1` to render regular size only (DPR 1.0)")}function Tn(t){const e={};if(typeof t=="string")for(const n of t.split(/[\s,]+/).filter(o=>o)){const o=n.split(":");o.length!==2?e["1px"]=o[0].trim():e[o[0].trim()]=o[1].trim()}else Object.assign(e,t);return e}function Dn(t){const e={options:t},n=(i,r={})=>He(e,i,r),o=(i,r={},s={})=>n(i,{...s,modifiers:We(r,s.modifiers||{})}).url;for(const i in t.presets)o[i]=(r,s,a)=>o(r,s,{...t.presets[i],...a});return o.options=t,o.getImage=n,o.getMeta=(i,r)=>On(e,i,r),o.getSizes=(i,r)=>jn(e,i,r),e.$img=o,o}async function On(t,e,n){const o=He(t,e,{...n});return typeof o.getMeta=="function"?await o.getMeta():await $n(t,o.url)}function He(t,e,n){var m,g;if(typeof e!="string"||e==="")throw new TypeError(`input must be a string (received ${typeof e}: ${JSON.stringify(e)})`);if(e.startsWith("data:"))return{url:e};const{provider:o,defaults:i}=Ln(t,n.provider||t.options.provider),r=Bn(t,n.preset);if(e=le(e)?e:kn(e),!o.supportsAlias)for(const c in t.options.alias)e.startsWith(c)&&(e=ne(t.options.alias[c],e.substr(c.length)));if(o.validateDomains&&le(e)){const c=qe(e).host;if(!t.options.domains.find(u=>u===c))return{url:e}}const s=We(n,r,i);s.modifiers={...s.modifiers};const a=s.modifiers.format;(m=s.modifiers)!=null&&m.width&&(s.modifiers.width=R(s.modifiers.width)),(g=s.modifiers)!=null&&g.height&&(s.modifiers.height=R(s.modifiers.height));const l=o.getImage(e,s,t);return l.format=l.format||a||"",l}function Ln(t,e){const n=t.options.providers[e];if(!n)throw new Error("Unknown provider: "+e);return n}function Bn(t,e){if(!e)return{};if(!t.options.presets[e])throw new Error("Unknown preset: "+e);return t.options.presets[e]}function jn(t,e,n){var p,y,$,C,P;const o=R((p=n.modifiers)==null?void 0:p.width),i=R((y=n.modifiers)==null?void 0:y.height),r=Tn(n.sizes),s=($=n.densities)!=null&&$.trim()?Pn(n.densities.trim()):t.options.densities;In(s);const a=o&&i?i/o:0,l=[],m=[];if(Object.keys(r).length>=1){for(const v in r){const w=xe(v,String(r[v]),i,a,t);if(w!==void 0){l.push({size:w.size,screenMaxWidth:w.screenMaxWidth,media:`(max-width: ${w.screenMaxWidth}px)`});for(const D of s)m.push({width:w._cWidth*D,src:Se(t,e,n,w,D)})}}An(l)}else for(const v of s){const w=Object.keys(r)[0];let D=xe(w,String(r[w]),i,a,t);D===void 0&&(D={size:"",screenMaxWidth:0,_cWidth:(C=n.modifiers)==null?void 0:C.width,_cHeight:(P=n.modifiers)==null?void 0:P.height}),m.push({width:v,src:Se(t,e,n,D,v)})}Mn(m);const g=m[m.length-1],c=l.length?l.map(v=>`${v.media?v.media+" ":""}${v.size}`).join(", "):void 0,u=c?"w":"x",d=m.map(v=>`${v.src} ${v.width}${u}`).join(", ");return{sizes:c,srcset:d,src:g==null?void 0:g.src}}function xe(t,e,n,o,i){const r=i.options.screens&&i.options.screens[t]||parseInt(t),s=e.endsWith("vw");if(!s&&/^\d+$/.test(e)&&(e=e+"px"),!s&&!e.endsWith("px"))return;let a=parseInt(e);if(!r||!a)return;s&&(a=Math.round(a/100*r));const l=o?Math.round(a*o):n;return{size:e,screenMaxWidth:r,_cWidth:a,_cHeight:l}}function Se(t,e,n,o,i){return t.$img(e,{...n.modifiers,width:o._cWidth?o._cWidth*i:void 0,height:o._cHeight?o._cHeight*i:void 0},n)}function An(t){var n;t.sort((o,i)=>o.screenMaxWidth-i.screenMaxWidth);let e=null;for(let o=t.length-1;o>=0;o--){const i=t[o];i.media===e&&t.splice(o,1),e=i.media}for(let o=0;o<t.length;o++)t[o].media=((n=t[o+1])==null?void 0:n.media)||""}function Mn(t){t.sort((n,o)=>n.width-o.width);let e=null;for(let n=t.length-1;n>=0;n--){const o=t[n];o.width===e&&t.splice(n,1),e=o.width}}const En="https://cdn.sanity.io/images",Un=Fe({keyMap:{format:"fm",height:"h",quality:"q",width:"w",background:"bg",download:"dl",dpr:"dpr",sharpen:"sharp",orientation:"or","min-height":"min-h","max-height":"max-h","min-width":"min-w","max-width":"max-w",minHeight:"min-h",maxHeight:"max-h",minWidth:"min-w",maxWidth:"max-w",saturation:"sat"},valueMap:{format:{jpeg:"jpg"},fit:{cover:"crop",contain:"fill",fill:"scale",inside:"min",outside:"max"}},joinWith:"&",formatter:(t,e)=>String(e)==="true"?t:`${t}=${e}`}),Nn=t=>{const e=t.match(/-(?<width>\d*)x(?<height>\d*)-(?<format>.*)$/);if(!e||!e.groups)return{width:void 0,height:void 0,format:void 0};const n=Number(e.groups.width),o=Number(e.groups.height);return{width:n,height:o,format:e.groups.format}},Rn=(t,{modifiers:e={},projectId:n,dataset:o="production"}={})=>{const{height:i,width:r}=Nn(t);if(e.crop&&typeof e.crop!="string"&&r&&i){const g=e.crop.left*r,c=e.crop.top*i,u=r-e.crop.right*r,d=i-e.crop.bottom*i;e.rect=[g,c,u-g,d-c].map(p=>p.toFixed(0)).join(","),delete e.crop}e.hotspot&&typeof e.hotspot!="string"&&(e["fp-x"]=e.hotspot.x,e["fp-y"]=e.hotspot.y,delete e.hotspot),(!e.format||e.format==="auto")&&(e.format==="auto"&&delete e.format,e.auto="format"),e.fit==="contain"&&!e.bg&&(e.bg="ffffff");const s=Un(e),a=t.split("-").slice(1),l=a.pop(),m=a.join("-")+"."+l+(s?"?"+s:"");return{url:ne(En,n,o,m)}},Wn=Object.freeze(Object.defineProperty({__proto__:null,getImage:Rn},Symbol.toStringTag,{value:"Module"})),zn=Fe({keyMap:{format:"f",fit:"fit",width:"w",height:"h",resize:"s",quality:"q",background:"b"},joinWith:"&",formatter:(t,e)=>we(t)+"_"+we(e)}),qn=(t,{modifiers:e={},baseURL:n}={},o)=>{e.width&&e.height&&(e.resize=`${e.width}x${e.height}`,delete e.width,delete e.height);const i=zn(e)||"_";return n||(n=ne(o.options.nuxt.baseURL,"/_ipx")),{url:ne(n,i,ze(t))}},Fn=!0,Hn=!0,Vn=Object.freeze(Object.defineProperty({__proto__:null,getImage:qn,supportsAlias:Hn,validateDomains:Fn},Symbol.toStringTag,{value:"Module"})),Ve={screens:{xs:320,sm:640,md:768,lg:1024,xl:1280,xxl:1536,"2xl":1536},presets:{},provider:"ipxStatic",domains:[],alias:{},densities:[1,2],format:["webp"]};Ve.providers={sanity:{provider:Wn,defaults:{projectId:"8lj0qb0z",dataset:"production",useCdn:!0}},ipxStatic:{provider:Vn,defaults:{}}};const Ge=()=>{const t=et(),e=ce();return e.$img||e._img||(e._img=Dn({...Ve,nuxt:{baseURL:t.app.baseURL}}))},Gn={src:{type:String,required:!0},format:{type:String,default:void 0},quality:{type:[Number,String],default:void 0},background:{type:String,default:void 0},fit:{type:String,default:void 0},modifiers:{type:Object,default:void 0},preset:{type:String,default:void 0},provider:{type:String,default:void 0},sizes:{type:[Object,String],default:void 0},densities:{type:String,default:void 0},preload:{type:Boolean,default:void 0},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0},alt:{type:String,default:void 0},referrerpolicy:{type:String,default:void 0},usemap:{type:String,default:void 0},longdesc:{type:String,default:void 0},ismap:{type:Boolean,default:void 0},loading:{type:String,default:void 0,validator:t=>["lazy","eager"].includes(t)},crossorigin:{type:[Boolean,String],default:void 0,validator:t=>["anonymous","use-credentials","",!0,!1].includes(t)},decoding:{type:String,default:void 0,validator:t=>["async","auto","sync"].includes(t)},nonce:{type:[String],default:void 0}},Xn=t=>{const e=I(()=>({provider:t.provider,preset:t.preset})),n=I(()=>({width:R(t.width),height:R(t.height),alt:t.alt,referrerpolicy:t.referrerpolicy,usemap:t.usemap,longdesc:t.longdesc,ismap:t.ismap,crossorigin:t.crossorigin===!0?"anonymous":t.crossorigin||void 0,loading:t.loading,decoding:t.decoding,nonce:t.nonce})),o=Ge(),i=I(()=>({...t.modifiers,width:R(t.width),height:R(t.height),format:t.format,quality:t.quality||o.options.quality,background:t.background,fit:t.fit}));return{options:e,attrs:n,modifiers:i}},Kn={...Gn,placeholder:{type:[Boolean,String,Number,Array],default:void 0}},Xe=O({name:"NuxtImg",props:Kn,emits:["load","error"],setup:(t,e)=>{const n=Ge(),o=Xn(t),i=S(!1),r=I(()=>n.getSizes(t.src,{...o.options.value,sizes:t.sizes,densities:t.densities,modifiers:{...o.modifiers.value,width:R(t.width),height:R(t.height)}})),s=I(()=>{const d={...o.attrs.value,"data-nuxt-img":""};return(!t.placeholder||i.value)&&(d.sizes=r.value.sizes,d.srcset=r.value.srcset),d}),a=I(()=>{let d=t.placeholder;if(d===""&&(d=!0),!d||i.value)return!1;if(typeof d=="string")return d;const p=Array.isArray(d)?d:typeof d=="number"?[d,d]:[10,10];return n(t.src,{...o.modifiers.value,width:p[0],height:p[1],quality:p[2]||50,blur:p[3]||3},o.options.value)}),l=I(()=>t.sizes?r.value.src:n(t.src,o.modifiers.value,o.options.value)),m=I(()=>a.value?a.value:l.value);if(t.preload){const d=Object.values(r.value).every(p=>p);tt({link:[{rel:"preload",as:"image",nonce:t.nonce,...d?{href:r.value.src,imagesizes:r.value.sizes,imagesrcset:r.value.srcset}:{href:m.value}}]})}const g=S(),u=ce().isHydrating;return A(()=>{if(a.value){const d=new Image;d.src=l.value,t.sizes&&(d.sizes=r.value.sizes||"",d.srcset=r.value.srcset),d.onload=p=>{i.value=!0,e.emit("load",p)};return}g.value&&(g.value.complete&&u&&(g.value.getAttribute("data-error")?e.emit("error",new Event("error")):e.emit("load",new Event("load"))),g.value.onload=d=>{e.emit("load",d)},g.value.onerror=d=>{e.emit("error",d)})}),()=>k("img",{ref:g,src:m.value,...s.value,...e.attrs})}}),Zn={class:"w-full"},Jn=56.25,fe=O({__name:"Image",props:{imageData:{}},setup(t){const e=t,n=S(!1),o=I(()=>{var r,s;if((s=(r=e==null?void 0:e.imageData)==null?void 0:r.imageObject)!=null&&s.imgDimensions){const{width:a,height:l}=e.imageData.imageObject.imgDimensions;return l/a*100}else return Jn}),i=()=>{n.value=!0};return A(()=>{}),(r,s)=>{var m,g,c,u,d,p,y,$,C,P;const a=Xe,l=ue;return f(),h("div",Zn,[b(n)?T("",!0):(f(),h("div",{key:0,style:q({paddingBottom:b(o)+"%"}),class:"bg-gray-200 min-h-8 min-w-8 w-full animate-pulse"},null,4)),Pe(E(a,{onLoad:i,provider:"sanity",src:(c=(g=(m=e==null?void 0:e.imageData)==null?void 0:m.imageObject)==null?void 0:g.asset)==null?void 0:c._ref,sizes:"100vw sm:800px md:1000px lg:1600px",class:z(["h-auto w-full",{corners:!((u=e==null?void 0:e.imageData)!=null&&u.isFullWidth)}]),modifiers:{crop:(y=(p=(d=e==null?void 0:e.imageData)==null?void 0:d.imageObject)==null?void 0:p.image)==null?void 0:y.crop,hotspot:(P=(C=($=e==null?void 0:e.imageData)==null?void 0:$.imageObject)==null?void 0:C.image)==null?void 0:P.hotspot}},null,8,["src","class","modifiers"]),[[Ie,b(n)]]),E(l,{caption:e==null?void 0:e.imageData.caption},null,8,["caption"])])}}}),Qn={class:"w-full"},Yn=O({__name:"Spacer",setup(t){return(e,n)=>(f(),h("div",Qn))}}),er=_("svg",{width:"71",height:"80",class:"h-6 w-6 pl-1 sm:h-8 sm:w-8",viewBox:"0 0 71 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("path",{d:"M66 31.3386C72.6667 35.1876 72.6667 44.8101 66 48.6591L15 78.104C8.33333 81.953 -3.3649e-07 77.1417 0 69.4437L2.57416e-06 10.554C2.91065e-06 2.85598 8.33334 -1.95527 15 1.89373L66 31.3386Z",fill:"black"})],-1),tr=[er],nr=O({__name:"PlayButton",setup(t){return G(),(e,n)=>(f(),h("div",null,tr))}}),rr={class:"pointer-events-none absolute z-20 flex h-full w-full items-center justify-center bg-gray-500/10"},or=O({__name:"Overlay",props:{isPlaying:Boolean},emits:["toggle","pause"],setup(t,{emit:e}){const n=t;return(o,i)=>{const r=nr;return f(),h("div",rr,[_("div",{onClick:i[0]||(i[0]=s=>e("toggle")),class:"pointer-events-auto flex aspect-square cursor-pointer items-center justify-center rounded-full bg-white p-6 text-base text-black transition-transform hover:scale-110 @xl:text-4xl sm:p-8 sm:text-2xl"},[E(r,{isPlaying:n.isPlaying},null,8,["isPlaying"])])])}}}),ir={class:"w-full"},sr=["src"],ar=["src","data-poster"],lr=O({__name:"index",props:{videoUrl:{type:String,required:!1},muted:Boolean,autoPlay:Boolean,isFullWidth:Boolean,caption:String,loop:Boolean,controls:Boolean,simpleVideoUrl:{type:String,required:!1},posterUrl:{type:String,required:!1},poster:Object},emits:["play","pause"],setup(t,{emit:e}){const n=t,o=G(),i=S(null),r=S(!1),s=S(),a=S(),l=S(!1),m=S(null);V(()=>n.muted,v=>{});const g=I(()=>!!n.videoUrl);let c=null;nt(i,v=>{c&&n.autoPlay}),V(()=>o.nowPlaying,v=>{n.videoUrl});const u=v=>{const w=/https?:\/\/(?:www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)/;var D=v.match(w);return D?D[3]:null},d=v=>{const w=/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([\w-]+)/,D=v.match(w);return D?D[1]:null},p=I(()=>{if(n!=null&&n.videoUrl.includes("vimeo.com"))return`https://player.vimeo.com/video/${u(n==null?void 0:n.videoUrl)}`;if(n!=null&&n.videoUrl.includes("youtube.com")||n!=null&&n.videoUrl.includes("youtu.be"))return`https://www.youtube.com/embed/${d(n.videoUrl)}`;if(n.simpleVideoUrl)return n.simpleVideoUrl}),y=I(()=>!r.value),$=v=>{var N;window.localStorage.removeItem("plyr");let w=null;const D={controls:l.value?["play","progress","fullscreen","volume"]:[],debug:!1,fullscreen:{enabled:!0,fallback:!0,iosNative:!0,container:null},vimeo:{referrerPolicy:"no-referrer"},youtube:{noCookie:!1,rel:0,showinfo:0,iv_load_policy:3,modestbranding:2},resetOnEnd:!0};g.value?w=new me(v,D):w=new me(s.value,D),w.volume=n.muted?0:1,w.muted=n.muted||!1,w.loop=n.loop||!1,w.autoplay=n.autoPlay||!1,n.isFullWidth||(N=w.elements.container)==null||N.classList.add("corners"),w.on("ready",L=>{const x=L.detail.plyr;a.value=x,P(x),n.autoPlay&&(x.autoplay=!0,x.play()),n.muted&&(x.muted=!0),n.loop&&(x.loop=!0)}),w.on("playing",L=>{n.autoPlay||(o.nowPlaying=p.value),o.isDimmed=!0,r.value=!0,e("play")}),w.on("pause",L=>{w.seeking||(o.isDimmed=!1,r.value=!1,e("pause")),o.nowPlaying=null}),c=w},C=()=>{if(c){if(n.autoPlay)return;r.value?c.pause():c.play()}},P=v=>{l.value?v.elements.container.classList.remove("hide-controls"):v.elements.container.classList.add("hide-controls")};return V(()=>n.controls,v=>{l.value=v===void 0?!0:v,a.value&&P(a.value)}),A(()=>{console.log(n),l.value=n.controls===void 0?!0:n.controls,i.value&&$(i.value)}),(v,w)=>{const D=or,N=ue;return f(),h("div",ir,[_("div",{class:"relative @container",ref_key:"playerContainer",ref:m},[b(y)?(f(),F(D,{key:0,class:z(["",{corners:!n.isFullWidth}]),onToggle:C},null,8,["class"])):T("",!0),_("div",{ref_key:"container",ref:i,class:""},[b(g)?(f(),h("iframe",{key:0,class:"absolute z-40",src:b(p),allowfullscreen:"",allowtransparency:"",allow:"autoplay"},null,8,sr)):T("",!0),b(g)?T("",!0):(f(),h("video",{key:1,class:"h-full w-full pointer-events-none",src:n.simpleVideoUrl,"data-poster":t.posterUrl,playsinline:"",ref_key:"simplePlayer",ref:s,onPlaying:w[0]||(w[0]=L=>r.value=!0),onPause:w[1]||(w[1]=L=>r.value=!1)},null,40,ar))],512)],512),E(N,{caption:t.caption},null,8,["caption"])])}}});const cr={class:"margins"},ur=["src"],dr={key:0,class:"p-2 text-center text-xs text-gray-600"},Ke=O({__name:"IFrame",props:{ratio:{type:String,default:"video"},url:{type:String,required:!0},caption:{type:String}},setup(t){const e=t;G();const n={none:"",video:"w-full aspect-[16/9]",square:"aspect-[1/1] w-full",portrait:"aspect-[9/16] w-full sm:aspect-[16/9]"},o=I(()=>e!=null&&e.ratio?n[e==null?void 0:e.ratio]:"");return A(()=>{console.log("props: ",e)}),(i,r)=>(f(),h("div",cr,[e.url?(f(),h("div",{key:0,class:z([b(o),""])},[_("iframe",{src:e==null?void 0:e.url,frameborder:"0",class:"h-full w-full corners"},null,8,ur),e!=null&&e.caption?(f(),h("p",dr,U(e==null?void 0:e.caption),1)):T("",!0)],2)):T("",!0)]))}}),fr={fill:"white",viewBox:"0 0 37 37",xmlns:"http://www.w3.org/2000/svg"},mr=_("circle",{fill:"black",cx:"18.5",cy:"18.5",r:"18.5"},null,-1),hr={key:0},gr=_("path",{d:"M13 12.7647C13 12.3424 13.3762 12 13.8403 12H14.7569C15.221 12 15.5972 12.3424 15.5972 12.7647V24.2353C15.5972 24.6576 15.221 25 14.7569 25H13.8403C13.3762 25 13 24.6576 13 24.2353V12.7647Z"},null,-1),pr=_("path",{d:"M21.4028 12.7647C21.4028 12.3424 21.779 12 22.2431 12H23.1597C23.6238 12 24 12.3424 24 12.7647V24.2353C24 24.6576 23.6238 25 23.1597 25H22.2431C21.779 25 21.4028 24.6576 21.4028 24.2353V12.7647Z"},null,-1),yr=[gr,pr],_r={key:1,d:"M26.5 17.634C27.1667 18.0189 27.1667 18.9811 26.5 19.366L15.25 25.8612C14.5833 26.2461 13.75 25.765 13.75 24.9952L13.75 12.0048C13.75 11.235 14.5833 10.7539 15.25 11.1388L26.5 17.634Z"},vr=O({__name:"Button",props:{isPlaying:{type:Boolean,required:!1,default:!1},isLoading:{type:Boolean,required:!1,default:!1}},emits:["toggle"],setup(t,{emit:e}){return(n,o)=>(f(),h("div",{class:z(["h-12 w-12 @lg/audio:h-16 @lg/audio:w-16 cursor-pointer",{"animate-[spin_3s_linear_infinite]":t.isPlaying}]),onClick:o[0]||(o[0]=i=>e("toggle"))},[(f(),h("svg",fr,[mr,t.isPlaying?(f(),h("g",hr,yr)):T("",!0),t.isPlaying?T("",!0):(f(),h("path",_r))]))],2))}}),Q=250,wr=async t=>(await fetch(t)).arrayBuffer(),br=t=>t.reduce((e,n)=>n>e?n:e,0),kr=t=>{const e=Math.pow(br(t),-1);return t.map(n=>n*e)},Y=(t,e)=>{const n=Math.floor(t.length/e);let o=[];for(let i=0;i<e;i++){let r=i*n,s=i*n+n,a=0;for(let m=r;m<s;m++)t[m]>a&&(a=t[m]);let l=Math.abs(a);o.push(l/2)}return o},ie=t=>kr(t).map((n,o)=>{const i=100/t.length||1,r=Math.pow(n,.9)*100||1,s=i*.3,a=(i-s)*4;return`<rect x="${i*o+s/2}" y="${(100-r)/2}" width="${i-s}" height="${r}" rx="${a}" ry="${a}" />`}).join(""),xr=t=>{const e=[];return e[0]=ie(Y(t,Q)),e[1]=ie(Y(t,Q/1.5)),e[2]=ie(Y(t,Q/2)),e},Sr=async t=>{const e=await wr(t),i=(await new(window.AudioContext||window.webkitAudioContext)().decodeAudioData(e)).getChannelData(0),r=Y(i,Q);return xr(r)},K=t=>{var e=~~(t/3600),n=~~(t%3600/60),o=~~t%60,i="";return e>0&&(i+=""+e+":"+(n<10?"0":"")),i+=""+n+":"+(o<10?"0":""),i+=""+o,i},$r=["innerHTML"],Cr=["innerHTML"],Pr=O({__name:"WaveForm",props:{config:{type:Object,required:!0},progress:{type:Number},duration:{type:Number},isActive:{type:Boolean},isFooter:{type:Boolean},waveColor:{type:String},progressColor:{type:String}},emits:["seek"],setup(t,{emit:e}){const n=t,o=(x,B)=>{let M=null;return(...re)=>{window.clearTimeout(M),M=window.setTimeout(()=>{x.apply(null,re)},B)}};let i=null;const r=S(),s=S(!1),a=S(!1);S(!1);const l=S(),m=S(),g=S(null);S(null);const c=S(null),u=S(0),d=S(0);V(()=>n.progress,(x,B)=>{y(x)});const p=I(()=>({color:n.waveColor})),y=x=>{x?(c.value.style.clipPath=`inset(0px ${100-x}% 0px 0px)`,l.value.style.left=x+"%",d.value=K(n.duration*(x/100))):(c.value.style.clipPath="inset(0px 100% 0px 0px)",l.value.style.left="0%")},$=x=>{const B=x.target.getBoundingClientRect(),M=Math.max(0,(x.clientX-B.left)/B.width);u.value=K(n.duration*M),m.value.style.left=M*100+"%"},C=x=>{a.value=!0,m.value.style.display="block"},P=x=>{a.value=!1,m.value.style.display="none"},v=x=>{let B=x.target.getBoundingClientRect();var M=(x.clientX-B.left)/B.width;e("seek",M),P()},w=async()=>{try{i=await Sr(n.config.sourceUrl),N()}catch{}};I(()=>n.config.id);const D=S(),N=()=>{const x=r.value.clientWidth;let B=0;x<640?B=i.length-1:x<900?B=i.length-2:B=i.length-3;const M=i[B];D.value=M,g.value&&(g.value.innerHTML=M),s.value=!0},L=I(()=>n.isActive&&n.progress!=0);return Te(()=>{window.removeEventListener("resize",o(N,100))}),A(()=>{window.addEventListener("resize",o(N,100)),c.value.style.clipPath="inset(0px 100% 0px 0px)",w()}),(x,B)=>(f(),h("div",{class:"relative h-full w-full cursor-n-resize",onClick:v,onMousemove:$,onMouseenter:C,onMouseleave:P,ref_key:"container",ref:r},[_("div",{style:q({fill:n.waveColor}),class:"pointer-events-none absolute top-0 py-1 h-full w-full fill-gray-600"},[(f(),h("svg",{viewBox:"0 0 100 100",innerHTML:b(D),ref:"unplayed",id:"unplayed",class:"h-full w-full",preserveAspectRatio:"none"},null,8,$r))],4),_("div",{style:q({fill:n.progressColor}),class:"pointer-events-none absolute top-0 h-full w-full fill-gray-400 py-1",ref_key:"progress",ref:c},[(f(),h("svg",{viewBox:"0 0 100 100",innerHTML:b(D),id:"played",class:"h-full w-full",preserveAspectRatio:"none"},null,8,Cr))],4),Pe(_("div",{class:"cursor current-time",ref_key:"currentTimeEl",ref:l},[_("p",{class:"current-time-text",style:q(b(p))},U(b(d)),5)],512),[[Ie,b(L)]]),_("div",{class:"cursor cursor-time",ref_key:"cursorTimeEl",ref:m},[_("p",{class:"cursor-text",style:q(b(p))},U(b(u)),5)],512)],544))}});const Ir=Le(Pr,[["__scopeId","data-v-e0862693"]]),Tr=t=>(rt("data-v-bd4d879c"),t=t(),ot(),t),Dr=Tr(()=>_("div",{id:"line",class:"h-1 w-full bg-black"},null,-1)),Or={class:"flex w-full justify-between text-sm select-none"},Lr=O({__name:"Slider",props:{progress:{type:Number},duration:{type:Number},isActive:{type:Boolean},isFooter:{type:Boolean},waveColor:{type:String},progressColor:{type:String}},emits:["seek"],setup(t,{emit:e}){const n=t,o=S(),i=S(!1),r=S(),s=S(0);V(()=>n.progress,(u,d)=>{i.value||a(u)});const a=u=>{u?(r.value.style.left=u+"%",s.value=K(n.duration*(u/100))):r.value.style.left="0%"},l=u=>{i.value=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",g),document.addEventListener("touchmove",m,{passive:!1}),document.addEventListener("touchend",g)},m=u=>{if(u.preventDefault(),!i.value)return;let d=c(u),p=o.value.getBoundingClientRect(),y=(d-p.left)/p.width*100;a(Math.min(100,Math.max(0,y)))},g=u=>{i.value=!1,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",g),document.removeEventListener("touchmove",m),document.removeEventListener("touchend",g);let d=c(u),p=o.value.getBoundingClientRect(),y=(d-p.left)/p.width;y&&e("seek",y)},c=u=>u.touches&&u.touches.length>0?u.touches[0].clientX:u.changedTouches&&u.changedTouches.length>0?u.changedTouches[0].clientX:u.clientX;return Te(()=>{}),A(()=>{s.value=K(0)}),(u,d)=>(f(),h("div",{class:"relative h-full w-full cursor-ew-resize",ref_key:"container",ref:o},[_("div",{class:"relative sm:my-2 flex h-8 w-full items-center",onMousemove:m,onMousedown:l,onTouchstart:l,onTouchend:g,onMouseup:g},[Dr,_("div",{id:"handle",ref_key:"handleEl",ref:r,class:"absolute translate-x-[-50%] h-6 w-6 rounded-full bg-black"},null,512)],32),_("div",Or,[_("p",null,U(b(s)),1),_("p",null,U(b(K)(n.duration)),1)])],512))}});const Br=Le(Lr,[["__scopeId","data-v-bd4d879c"]]),jr={class:"w-full"},Ar={key:0,class:"flex w-full items-center gap-4"},Mr={key:1,class:"h-12 mb-4 w-full items-center @lg/audio:h-12"},Er={key:2,class:"w-full px-2"},Ur=["src"],Nr=O({__name:"index",props:{audioSrc:{type:String,required:!0},showWaveform:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:"No title"},heading:{type:String,required:!1,default:"No heading"},caption:{type:String,required:!1},mainColor:{type:String,required:!1,default:null}},setup(t){const e=t,n=G(),o=S(null),i=S(!1),r=S(!1),s=S(0),a=S(0),l=S(0),{pause:m,resume:g}=it(()=>{o.value&&(s.value=o.value.currentTime,l.value=o.value.currentTime/o.value.duration*100)}),c=I(()=>e.mainColor?ee(e.mainColor):ee("#eeeeee")),u=I(()=>e.mainColor?{color:lt(e.mainColor)?"#000":"#fff"}:{color:"#000"}),d=I(()=>n.nowPlaying===e.audioSrc);V(()=>n.nowPlaying,L=>{d.value||y()});const p=()=>{o.value&&(o.value.play(),g(),n.nowPlaying=e.audioSrc)},y=()=>{o.value&&(o.value.pause(),m())},$=()=>{var L;(L=o==null?void 0:o.value)!=null&&L.src&&(i.value?y():p())},C=L=>{i.value||p(),o.value.currentTime=o.value.duration*L},P=()=>{i.value=!0},v=()=>{i.value=!1},w=()=>{r.value=!1,a.value=o.value.duration},D=()=>{document.addEventListener("keydown",L=>{if(!(L.target instanceof HTMLElement)||L.target.nodeName==="INPUT"||L.target.nodeName==="TEXTAREA")return;["Space","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].indexOf(L.code)>-1&&L.preventDefault();function x(B){if(!o.value)return;let M=o.value.duration/10;B?o.value.currentTime=o.value.currentTime+M:o.value.currentTime=o.value.currentTime-M}switch(L.code){case"Space":d.value&&$();break;case"ArrowLeft":x(!1);break;case"ArrowRight":x(!0);break;case"ArrowDown":step(!0);break;case"ArrowUp":step(!1);break}})},N={sourceUrl:e.audioSrc};return A(()=>{console.log("mounte audio",e),D(),e.audioSrc&&o.value&&(o.value.src=e.audioSrc)}),(L,x)=>{const B=vr,M=Ir,re=Br,Ze=ue;return f(),h("div",jr,[_("div",{class:"corners flex w-full flex-col items-center justify-between gap-4 bg-gray-200 p-4 text-black @container/audio sm:p-6 md:gap-4",style:q(`background-color: ${b(c)[0]}`)},[b(r)?T("",!0):(f(),h("div",Ar,[E(B,{class:"flex-shrink-0 flex-grow-0",onToggle:$,isPlaying:b(i),isLoading:b(r)},null,8,["isPlaying","isLoading"]),_("p",{class:"w-full truncate sm:text-xl",style:q(b(u))},U(e.heading),5)])),t.showWaveform?(f(),h("div",Mr,[E(M,{onSeek:C,config:N,"is-active":!0,duration:b(a),progress:b(l),"wave-color":b(c)[4],"progress-color":b(c)[2]},null,8,["duration","progress","wave-color","progress-color"])])):(f(),h("div",Er,[E(re,{onSeek:C,duration:b(a),progress:b(l),"wave-color":b(c)[4],"progress-color":b(c)[2]},null,8,["duration","progress","wave-color","progress-color"])])),_("audio",{ref_key:"player",ref:o,crossorigin:"anonymous",onPlay:P,onPause:v,onCanplaythrough:w,preload:"auto",src:e.audioSrc},null,40,Ur)],4),E(Ze,{caption:e.caption},null,8,["caption"])])}}}),Rr=$e(()=>Ce(()=>import("./Lottie.2160f740.js"),["./Lottie.2160f740.js","./entry.a471c64d.js","./entry.8dba3846.css","./_plugin-vue_export-helper.c27b6911.js","./index.vue.053681e5.js","./index.667f36cf.js","./Lottie.08e02176.css"],import.meta.url).then(t=>t.default||t)),Wr={key:0,class:"mb-4"},zr=O({__name:"DynamicSection",props:{sectionContent:{required:!0,type:Array},heading:{required:!1,type:String},layoutType:{type:String},bgColor:{required:!1},isFullWidth:{required:!1,type:Boolean},caption:{required:!1,type:String},componentHeading:{required:!1,type:String}},setup(t){const e=t,n={textSection:Re,baseImage:fe,richText:de,work:ut,simpleVideo:dt,spacer:Yn,baseVideo:lr,iFrame:Ke,lottie:Rr,audioPlayer:Nr},o=r=>{const s=n[r];return s||null},i=I(()=>{if(!e.sectionContent)return[];if(e.sectionContent.length)return e==null?void 0:e.sectionContent.map(r=>{var s,a;return r._type==="richText"?{...r,blocks:r.content}:r._type==="work"?{...r,post:r.workDetails}:r._type==="baseImage"?{...r,imageData:{imageObject:r.imageObject,caption:r.caption,isFullWidth:e.isFullWidth||!1}}:r._type==="lottie"?{...r,lottieSrc:r.lottieDetails.lottieUrl,audioSrc:r.lottieDetails.audioUrl,title:r.lottieDetails.title,settings:r.lottieDetails.settings,caption:r.lottieDetails.caption}:r._type==="baseVideo"?{...r,videoUrl:r.videoUrl,simpleVideoUrl:r.simpleVideoUrl,autoPlay:r.autoPlay,loop:r.loop,isFullWidth:e.isFullWidth,caption:r.caption,muted:r.muted,posterUrl:r.posterUrl,poster:r.poster,controls:r.controls}:r._type==="audioPlayer"?(console.log("comp: ",r),{...r,audioSrc:r.audioDetails.audioUrl,title:r.audioDetails.title,heading:r.audioDetails.heading,caption:r.audioDetails.caption,showWaveform:r.audioDetails.showWaveform,mainColor:(a=(s=r.audioDetails)==null?void 0:s.mainColor)==null?void 0:a.hex}):r})});return A(()=>{}),(r,s)=>(f(),h("div",{class:z({margins:!e.isFullWidth})},[e.componentHeading?(f(),h("p",Wr,U(e.componentHeading),1)):T("",!0),_("div",{class:z({"mx-0 my-24 w-full px-0":e.isFullWidth,thegrid:e.layoutType=="grid","flex flex-col gap-4 sm:flex-row":e.layoutType=="flex"})},[(f(!0),h(W,null,H(b(i),(a,l)=>(f(),h(W,{key:l},[o(a._type)?(f(),F(Oe(o(a._type)),st(De({key:0},a)),null,16)):T("",!0)],64))),128))],2)],2))}}),qr={class:"flex gap-4 sm:gap-8 lg:gap-12"},Fr=_("div",{class:"hidden sm:flex"},null,-1),Hr=_("div",{class:"hidden gap-4 sm:flex sm:gap-12"},[_("div",{class:""})],-1),Vr={class:""},Gr=O({__name:"Collage",props:{items:{required:!0},heading:{required:!1},isFullWidth:{required:!1,type:Boolean}},setup(t){const e=t;return A(()=>{}),(n,o)=>{const i=fe;return e.items?(f(),h("div",{key:0,class:z(["grid gap-4 sm:grid-cols-2 sm:gap-8 lg:gap-12 xl:gap-16",{"mx-0 px-0":e.isFullWidth,margins:!e.isFullWidth}])},[_("div",qr,[e.items[0]?(f(),F(i,{key:0,imageData:e.items[0]},null,8,["imageData"])):T("",!0),e.items[1]?(f(),F(i,{key:1,imageData:e.items[1]},null,8,["imageData"])):T("",!0)]),Fr,Hr,_("div",Vr,[e.items[2]?(f(),F(i,{key:0,imageData:e.items[2]},null,8,["imageData"])):T("",!0)])],2)):T("",!0)}}}),Xr={class:"margins"},Kr=_("div",{class:"title-h3 mb-8 text-gray-500"},"Key Staff",-1),Zr={class:"grid grid-cols-2 md:grid-cols-3 gap-12"},Jr={class:"even:mt-[0%]"},Qr={class:"w-full"},Yr={class:"text-sm sm:text-base mt-4 flex flex-col"},eo={class:"truncate"},to={class:"text-gray-500 truncate text-sm"},no=O({__name:"Staff",props:["count"],setup(t){const e=G();return(n,o)=>{var r,s;const i=Xe;return f(),h("div",Xr,[Kr,_("div",Zr,[(f(!0),h(W,null,H((s=(r=b(e))==null?void 0:r.siteSettings)==null?void 0:s.employees,(a,l)=>(f(),h("div",Jr,[_("div",Qr,[a.imageObject.imgUrl?(f(),F(i,{key:0,src:a.imageObject.imgUrl,alt:a.name,class:"h-auto w-full corners"},null,8,["src","alt"])):T("",!0),_("p",Yr,[_("span",eo,U(a.name)+"  ",1),_("span",to,U(a.role),1)])])]))),256))])])}}}),ro={class:"margins"},oo={class:"thegrid title-h1"},io={class:"mb-4 sm:mb-32"},so={class:"flex items-end whitespace-nowrap"},ao=["href"],lo=O({__name:"ContactCTA",props:{contactCTA:Object},setup(t){const e=t;return G(),A(()=>{}),(n,o)=>{var i,r,s;return f(),h("div",ro,[_("div",oo,[_("p",io,U((i=e==null?void 0:e.contactCTA)==null?void 0:i.text),1),_("div",so,[_("a",{href:`mailto:${(r=e==null?void 0:e.contactCTA)==null?void 0:r.email}`,class:"hover:text-gray-500",target:"_blank"},U((s=e==null?void 0:e.contactCTA)==null?void 0:s.email)+" →",9,ao)])])])}}}),po=O({__name:"index",props:{components:Array,pageData:Object},setup(t){const{components:e,pageData:n}=t,o=S(),i={textSection:Re,baseImage:fe,projectHero:on,dynamicSection:zr,clients:ft,collage:Gr,staff:no,contactCTA:lo,iFrame:Ke,soundbricks:gt},r=(s,a=!1)=>{const l=i[s];return l&&!a?l:null};return I(()=>{if(!(e!=null&&e.length))return[];if(e.length)return e.map(s=>s._type==="richText"?{...s,blocks:s.content}:s._type==="work"?{...s,post:s.workDetails}:s._type==="baseImage"?{...s,imageData:{imageObject:s.imageObject,caption:s.caption,isFullWidth:!1}}:s._type==="lottie"?(console.log("compasdf: ",s),{...s,lottieSrc:s.lottieDetails.lottieUrl,audioSrc:s.lottieDetails.audioUrl,title:s.lottieDetails.title,settings:s.lottieDetails.settings}):s._type==="soundbricks"?(console.log("soundbricks!!: ",s),{...s,lottieSrc:s.lottieDetails.lottieUrl,audioSrc:s.lottieDetails.audioUrl,title:s.lottieDetails.title,settings:s.lottieDetails.settings}):s._type==="baseVideo"?{...s,videoUrl:s.videoUrl,simpleVideoUrl:s.simpleVideoUrl,autoPlay:s.autoPlay,loop:s.loop,isFullWidth:props.isFullWidth,caption:s.caption,muted:s.muted,posterUrl:s.posterUrl,poster:s.poster,controls:s.controls}:s)}),A(()=>{}),at(()=>{}),(s,a)=>(f(),h("div",{ref_key:"main",ref:o},[(f(!0),h(W,null,H(t.components,(l,m)=>(f(),h(W,{key:m},[r(l._type,l.isHidden)?(f(),F(Oe(r(l._type)),De({key:0,class:"animated"},{...l,...t.pageData}),null,16)):T("",!0)],64))),128))],512))}});export{po as _};
