"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1736],{80740:function(e,t,n){n.d(t,{o:function(){return CircularProgressContainer}});var i=n(52322),a=n(40489);n(2784);let r={sm:12,md:36},o={md:2,lg:4},CircularProgress=e=>{let{progressPercentage:t,radius:n,stroke:r,shadow:o,theme:l}=e,s=2*n*Math.PI,c=s-t/100*s;return(0,i.jsx)("div",{className:(0,a.Z)("rounded-full",{"shadow-soft-lg":"lg"===o}),children:(0,i.jsx)("div",{className:"relative -rotate-90",children:(0,i.jsxs)("svg",{height:2*n,width:2*n,className:"rounded-full",children:[(0,i.jsx)("circle",{fill:"transparent",strokeWidth:"dark"===l?r:r/2,r:n,cx:n,cy:n,className:(0,a.Z)({"stroke-graphite-10":"light"===l,"stroke-graphite-80":"dark"===l})}),(0,i.jsx)("circle",{fill:"transparent",strokeWidth:r,strokeDasharray:"".concat(s," ").concat(s),className:(0,a.Z)("transition-all duration-200 ease-out",{"stroke-graphite-100":"light"===l,"stroke-graphite-20 group-hover:stroke-graphite-0":"dark"===l}),style:{strokeDashoffset:c,backfaceVisibility:"hidden"},r:"dark"===l?n:n-r/2,cx:n,cy:n})]})})})},CircularProgressContainer=e=>{let{percentage:t,children:n,size:a="md",strokeWidth:l="md",shadow:s,theme:c="light"}=e,d=r[a],u=o[l];return(0,i.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,i.jsx)("div",{className:"absolute",children:n}),(0,i.jsx)(CircularProgress,{radius:d,stroke:u,progressPercentage:t,shadow:s,theme:c})]})}},46399:function(e,t,n){n.d(t,{h:function(){return FontSetLoader}});var i=n(52322),a=n(97729),r=n.n(a);let o={BITTER:[{file:"bitter_var.woff2",style:"normal",weight:"variable"},{file:"bitter_var_italic.woff2",style:"italic",weight:"variable"}],BOSKA:[{file:"boska_var.woff2",style:"normal",weight:"variable"},{file:"boska_var_italic.woff2",style:"italic",weight:"variable"}],CABINET_GROTESK:[{file:"cabinetgrotesk_var.woff2",style:"normal",weight:"variable"}],CAUDEX:[{file:"caudex_400.woff2",style:"normal",weight:400},{file:"caudex_400_italic.woff2",style:"italic",weight:400},{file:"caudex_700.woff2",style:"normal",weight:700},{file:"caudex_700_italic.woff2",style:"italic",weight:700}],CLASH_DISPLAY:[{file:"clashdisplay_var.woff2",style:"normal",weight:"variable"}],CORMORANT_INFANT:[{file:"cormorantinfant_300.woff2",style:"normal",weight:300},{file:"cormorantinfant_300_italic.woff2",style:"italic",weight:300},{file:"cormorantinfant_400.woff2",style:"normal",weight:400},{file:"cormorantinfant_400_italic.woff2",style:"italic",weight:400},{file:"cormorantinfant_500.woff2",style:"normal",weight:500},{file:"cormorantinfant_500_italic.woff2",style:"italic",weight:500},{file:"cormorantinfant_600.woff2",style:"normal",weight:600},{file:"cormorantinfant_600_italic.woff2",style:"italic",weight:600},{file:"cormorantinfant_700.woff2",style:"normal",weight:700},{file:"cormorantinfant_700_italic.woff2",style:"italic",weight:700}],CORMORANT_UPRIGHT:[{file:"cormorantupright_300.woff2",style:"normal",weight:300},{file:"cormorantupright_400.woff2",style:"normal",weight:400},{file:"cormorantupright_500.woff2",style:"normal",weight:500},{file:"cormorantupright_600.woff2",style:"normal",weight:600},{file:"cormorantupright_700.woff2",style:"normal",weight:700}],DM_SERIF_DISPLAY:[{file:"dmserifdisplay_400.woff2",style:"normal",weight:400},{file:"dmserifdisplay_400_italic.woff2",style:"italic",weight:400}],EB_GARAMOND:[{file:"ebgaramond_var.woff2",style:"normal",weight:"variable"},{file:"ebgaramond_var_italic.woff2",style:"italic",weight:"variable"}],EPILOGUE:[{file:"epilogue_var.woff2",style:"normal",weight:"variable"},{file:"epilogue_var_italic.woff2",style:"italic",weight:"variable"}],ERODE:[{file:"erode_var.woff2",style:"normal",weight:"variable"},{file:"erode_var_italic.woff2",style:"italic",weight:"variable"}],GAMBETTA:[{file:"gambetta_var.woff2",style:"normal",weight:"variable"},{file:"gambetta_var_italic.woff2",style:"italic",weight:"variable"}],GELASIO:[{file:"gelasio_400.woff2",style:"normal",weight:400},{file:"gelasio_400_italic.woff2",style:"italic",weight:400},{file:"gelasio_500.woff2",style:"normal",weight:500},{file:"gelasio_500_italic.woff2",style:"italic",weight:500},{file:"gelasio_600.woff2",style:"normal",weight:600},{file:"gelasio_600_italic.woff2",style:"italic",weight:600},{file:"gelasio_700.woff2",style:"normal",weight:700},{file:"gelasio_700_italic.woff2",style:"italic",weight:700}],GENERAL_SANS:[{file:"generalsans_var.woff2",style:"normal",weight:"variable"},{file:"generalsans_var_italic.woff2",style:"italic",weight:"variable"}],IBARRA_REAL_NOVA:[{file:"ibarrarealnova_var.woff2",style:"normal",weight:"variable"},{file:"ibarrarealnova_var_italic.woff2",style:"italic",weight:"variable"}],IBM_PLEX_SANS:[{file:"ibmplexsans_100.woff2",style:"normal",weight:100},{file:"ibmplexsans_100_italic.woff2",style:"italic",weight:100},{file:"ibmplexsans_200.woff2",style:"normal",weight:200},{file:"ibmplexsans_200_italic.woff2",style:"italic",weight:200},{file:"ibmplexsans_300.woff2",style:"normal",weight:300},{file:"ibmplexsans_300_italic.woff2",style:"italic",weight:300},{file:"ibmplexsans_400.woff2",style:"normal",weight:400},{file:"ibmplexsans_400_italic.woff2",style:"italic",weight:400},{file:"ibmplexsans_500.woff2",style:"normal",weight:500},{file:"ibmplexsans_500_italic.woff2",style:"italic",weight:500},{file:"ibmplexsans_600.woff2",style:"normal",weight:600},{file:"ibmplexsans_600_italic.woff2",style:"italic",weight:600},{file:"ibmplexsans_700.woff2",style:"normal",weight:700},{file:"ibmplexsans_700_italic.woff2",style:"italic",weight:700}],INTER:[{file:"inter_var.woff2",style:"normal",weight:"variable"}],KARLA:[{file:"karla_var.woff2",style:"normal",weight:"variable"},{file:"karla_var_italic.woff2",style:"italic",weight:"variable"}],KARMA:[{file:"karma_300.woff2",style:"normal",weight:300},{file:"karma_400.woff2",style:"normal",weight:400},{file:"karma_500.woff2",style:"normal",weight:500},{file:"karma_600.woff2",style:"normal",weight:600},{file:"karma_700.woff2",style:"normal",weight:700}],LITERATA:[{file:"literata_var.woff2",style:"normal",weight:"variable"},{file:"literata_var_italic.woff2",style:"italic",weight:"variable"}],MANROPE:[{file:"manrope_var.woff2",style:"normal",weight:"variable"}],MARTEL:[{file:"martel_200.woff2",style:"normal",weight:200},{file:"martel_300.woff2",style:"normal",weight:300},{file:"martel_400.woff2",style:"normal",weight:400},{file:"martel_600.woff2",style:"normal",weight:600},{file:"martel_700.woff2",style:"normal",weight:700},{file:"martel_800.woff2",style:"normal",weight:800},{file:"martel_900.woff2",style:"normal",weight:900}],MELODRAMA:[{file:"melodrama_var.woff2",style:"normal",weight:"variable"}],NECO:[{file:"neco_var.woff2",style:"normal",weight:"variable"},{file:"neco_var_italic.woff2",style:"italic",weight:"variable"}],OVERPASS:[{file:"overpass_var.woff2",style:"normal",weight:"variable"},{file:"overpass_var_italic.woff2",style:"italic",weight:"variable"}],PLAYFAIR_DISPLAY:[{file:"playfairdisplay_var.woff2",style:"normal",weight:"variable"},{file:"playfairdisplay_var_italic.woff2",style:"italic",weight:"variable"}],POPPINS:[{file:"poppins_var.woff2",style:"normal",weight:"variable"},{file:"poppins_var_italic.woff2",style:"italic",weight:"variable"}],RUBIK:[{file:"rubik_var.woff2",style:"normal",weight:"variable"},{file:"rubik_var_italic.woff2",style:"italic",weight:"variable"}],SATOSHI:[{file:"satoshi_var.woff2",style:"normal",weight:"variable"},{file:"satoshi_var_italic.woff2",style:"italic",weight:"variable"}],SENTIENT:[{file:"sentient_var.woff2",style:"normal",weight:"variable"},{file:"sentient_var_italic.woff2",style:"italic",weight:"variable"}],SORA:[{file:"sora_var.woff2",style:"normal",weight:"variable"},{file:"sora_var_italic.woff2",style:"italic",weight:"variable"}],SOURCE_SERIF_4:[{file:"sourceserif4_var.woff2",style:"normal",weight:"variable"},{file:"sourceserif4_var_italic.woff2",style:"italic",weight:"variable"}],SPACE_GROTESK:[{file:"spacegrotesk_var.woff2",style:"normal",weight:"variable"}],SPECTRAL:[{file:"spectral_200.woff2",style:"normal",weight:200},{file:"spectral_200_italic.woff2",style:"italic",weight:200},{file:"spectral_300.woff2",style:"normal",weight:300},{file:"spectral_300_italic.woff2",style:"italic",weight:300},{file:"spectral_400.woff2",style:"normal",weight:400},{file:"spectral_400_italic.woff2",style:"italic",weight:400},{file:"spectral_500.woff2",style:"normal",weight:500},{file:"spectral_500_italic.woff2",style:"italic",weight:500},{file:"spectral_600.woff2",style:"normal",weight:600},{file:"spectral_600_italic.woff2",style:"italic",weight:600},{file:"spectral_700.woff2",style:"normal",weight:700},{file:"spectral_700_italic.woff2",style:"italic",weight:700},{file:"spectral_800.woff2",style:"normal",weight:800},{file:"spectral_800_italic.woff2",style:"italic",weight:800}],TINOS:[{file:"tinos_400.woff2",style:"normal",weight:400},{file:"tinos_400_italic.woff2",style:"italic",weight:400},{file:"tinos_700.woff2",style:"normal",weight:700},{file:"tinos_700_italic.woff2",style:"italic",weight:700}],UNNA:[{file:"unna_400.woff2",style:"normal",weight:400},{file:"unna_400_italic.woff2",style:"italic",weight:400},{file:"unna_700.woff2",style:"normal",weight:700},{file:"unna_700_italic.woff2",style:"italic",weight:700}],WORK_SANS:[{file:"work_sans_var.woff2",style:"normal",weight:"variable"},{file:"work_sans_var_italic.woff2",style:"italic",weight:"variable"}],ZODIAK:[{file:"zodiak_var.woff2",style:"normal",weight:"variable"},{file:"zodiak_var_italic.woff2",style:"italic",weight:"variable"}],ALBERT_SANS:[{file:"albertsans_var.woff2",style:"normal",weight:"variable"},{file:"albertsans_var_italic.woff2",style:"italic",weight:"variable"}],JOST:[{file:"jost_var.woff2",style:"normal",weight:"variable"},{file:"jost_var_italic.woff2",style:"italic",weight:"variable"}],OPEN_SANS:[{file:"opensans_var.woff2",style:"normal",weight:"variable"},{file:"opensans_var_italic.woff2",style:"italic",weight:"variable"}],CHAKRA_PETCH:[{file:"chakrapetch_300.woff2",style:"normal",weight:300},{file:"chakrapetch_300_italic.woff2",style:"italic",weight:300},{file:"chakrapetch_400.woff2",style:"normal",weight:400},{file:"chakrapetch_400_italic.woff2",style:"italic",weight:400},{file:"chakrapetch_500.woff2",style:"normal",weight:500},{file:"chakrapetch_500_italic.woff2",style:"italic",weight:500},{file:"chakrapetch_600.woff2",style:"normal",weight:600},{file:"chakrapetch_600_italic.woff2",style:"italic",weight:600},{file:"chakrapetch_700.woff2",style:"normal",weight:700},{file:"chakrapetch_700_italic.woff2",style:"italic",weight:700}],SPACE_MONO:[{file:"spacemono_400.woff2",style:"normal",weight:400},{file:"spacemono_400_italic.woff2",style:"italic",weight:400},{file:"spacemono_700.woff2",style:"normal",weight:700},{file:"spacemono_700_italic.woff2",style:"italic",weight:700}]};var l=n(45663);function FontSetLoader(e){let{fontSetsToLoad:t}=e,n=[...new Set(t.map(e=>l.$U[e]).flatMap(e=>[e.h1.family,e.h2.family,e.h3.family,e.p1.family,e.p2.family,e.projectTitle.family,e.buttonLabel.family]))].flatMap(e=>o[e].map(t=>({font:e,...t})));return(0,i.jsxs)(r(),{children:[n.map(e=>{let{file:t}=e;return(0,i.jsx)("link",{href:"/assets/fonts/".concat(t),rel:"preload",as:"font",type:"font/woff2",crossOrigin:"anonymous"},t)}),(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:n.map(e=>{let{font:t,file:n,weight:i,style:a}=e;return"\n@font-face {\n	font-family: _site_".concat(t,";\n	src: url(/assets/fonts/").concat(n,') format("woff2");\n	font-style: ').concat(a,";\n	font-weight: ").concat("variable"===i?"100 900":i,";\n}")}).join("\n")}})]},t.join(""))}},10484:function(e,t,n){n.d(t,{g:function(){return PendingChangesSettler},c:function(){return useSettlePendingChanges}});var i=n(52322),a=n(2784),r=n(42782),o=n(57316),l=n(68851);function UnsavedChangesDialog(e){let{onSave:t,onDiscard:n,...s}=e,c=a.useRef(null);return(0,i.jsxs)(l.Vq,{size:"sm",initialFocusRef:c,...s,children:[(0,i.jsxs)(l.cZ,{className:"text-center",children:[(0,i.jsx)(l.$N,{children:"What about your changes?"}),(0,i.jsxs)("p",{children:["You’ve made a few changes but didn’t save them.",(0,i.jsx)("br",{className:"hidden tablet:inline"})," What should happen before you quit?"]})]}),(0,i.jsxs)(l.kX,{children:[(0,i.jsx)(o.k,{size:"lg",onClick:n,children:"Discard"}),(0,i.jsx)(r.K,{ref:c,size:"lg",onClick:t,children:"Save changes"})]})]})}var s=n(79209);function useSettlePendingChanges(){let{dirty:e}=(0,s.Ni)(),[,t]=(0,s.uC)();return n=>{e?t(()=>n):(t(null),n())}}function PendingChangesSettler(){let{setPendingMutation:e,applyPendingMutation:t,dirty:n}=(0,s.Ni)(),[a,r]=(0,s.uC)();return a&&n?(0,i.jsx)(UnsavedChangesDialog,{onSave:async()=>{let e=await t();e&&a(),r(null)},onDiscard:()=>{e(null),a(),r(null)},onDismiss:()=>{r(null)}}):null}},89843:function(e,t,n){n.d(t,{b:function(){return ScrollTracked}});var i=n(52322),a=n(40489),r=n(20360);function ScrollTracked(e){let{children:t,id:n,scrollMargin:o="md",...l}=e,{ref:s}=(0,r.YD)(l);return(0,i.jsx)("div",{className:(0,a.Z)({"scroll-mt-10":"md"===o,"scroll-mt-40":"4xl"===o}),id:n,ref:s,children:t})}},94343:function(e,t,n){n.d(t,{F:function(){return useRequireSubscriptionType},s:function(){return SubscriptionRequirementSettler}});var i=n(52322),a=n(39328),r=n(79209),o=n(58282);function useRequireSubscriptionType(){let[e,t]=(0,o.k)(),[,n]=(0,r.ki)();return i=>{let a=(null==e?void 0:e.user.subscriptionType)===i;return a||t||n(!0),a}}function SubscriptionRequirementSettler(){let[e,t]=(0,r.ki)();return e?(0,i.jsx)(a.n,{onDismiss:()=>{t(!1)}}):null}},15585:function(e,t,n){n.d(t,{b:function(){return Alert}});var i=n(52322),a=n(40489),r=n(10693),o=n(87708);let l={neutral:o.Z,primary:o.Z,danger:r.Z,warning:r.Z,emergency:r.Z};function Alert(e){let{intent:t="neutral",className:n,children:r,...o}=e,s=l[t];return(0,i.jsx)("div",{role:"alert",className:(0,a.Z)("rounded-sm border-l-2 font-semibold leading-snug",{"border-graphite-100 bg-graphite-5 text-graphite-100":"neutral"===t,"border-violet-40 bg-violet-0 text-violet-40":"primary"===t,"border-crimson-40 bg-crimson-0 text-crimson-40":"danger"===t,"border-amber-60 bg-amber-0 text-amber-60":"warning"===t},n),...o,children:(0,i.jsxs)("div",{className:"-ml-0.5 flex space-x-2 px-4 py-3",children:[(0,i.jsx)(s,{"aria-hidden":!0,className:"h-6 flex-none"}),(0,i.jsx)("div",{className:"py-px",children:r})]})})}},60113:function(e,t,n){n.d(t,{r:function(){return SubscriptionPromptAlertBar}});var i=n(52322),a=n(88241),r=n(93556),o=n(2784),l=n(23095),s=n(12875),c=n(90918),d=n(39328),u=n(58282),p=n(58651);function SubscriptionPromptAlertBar(e){let{message:t,premiumMessage:n,className:h,gtmOrigin:g,short:m,onDismiss:f}=e,[x,y]=(0,u.k)(),[v,b]=o.useState(!1),w=(null==x?void 0:x.user.subscriptionType)==="PREMIUM";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.M,{children:!y&&(t&&!w||n&&w)&&(0,i.jsx)(r.m.div,{className:"overflow-hidden",initial:{height:"auto"},exit:{height:0},children:(0,i.jsxs)(s.N,{Icon:w?l.IconSparkles:void 0,intent:w?"neutral":"primary",className:h,children:[(0,i.jsxs)("span",{className:"space-x-2",children:[w?n:"".concat(t," "),!w&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c.z,{onClick:()=>{b(!0),g&&(0,p.w)({event:"openPricingDialog",from:g})},className:"underline-offset-md underline-thickness-md font-semibold underline",children:["Get Premium",m?".":""]}),m?"":" to unlock this."]})]}),w&&(0,i.jsx)("button",{className:"ml-auto",type:"button",onClick:f,children:(0,i.jsx)(l.IconX,{className:"h-4 w-4 cursor-pointer"})})]})})}),v&&(0,i.jsx)(d.n,{onDismiss:()=>{b(!1)}})]})}},35313:function(e,t,n){n.d(t,{$:function(){return CharacterLimitCounter}});var i=n(52322);function CharacterLimitCounter(e){let{textLength:t,maxLength:n,className:a}=e;return(0,i.jsx)(i.Fragment,{children:t>=n-5&&(0,i.jsx)("div",{className:a,children:(0,i.jsxs)("div",{className:"z-10 hidden h-8 items-center rounded bg-graphite-100 px-3 font-body text-xs font-semibold text-graphite-0 group-focus-within:inline-flex dark:bg-graphite-0 dark:text-graphite-100",children:[t,"/",n]})})})}},24754:function(e,t,n){n.d(t,{U:function(){return SiteMatchingBadge}});var i=n(52322),a=n(17949),r=n(87036);function SiteMatchingBadge(e){let{buttonStyle:{rounded:t,variant:n}}=(0,r.m)();return(0,i.jsx)("div",{...e,className:(0,a.Z)("flex h-6 min-w-[40px] items-center justify-center px-2.5 text-xs font-semibold","none"!==t&&"rounded",{"bg-custom-h1-rgba/10 text-custom-h1":"filled"===n,"border border-custom-h1-rgba/60 text-custom-h1":"outline"===n},e.onClick&&"cursor-pointer",e.className),children:e.children})}},65628:function(e,t,n){n.d(t,{A:function(){return AnchorButton}});var i=n(52322),a=n(17949);function AnchorButton(e){let{label:t,icon:n,active:r,...o}=e,l="to"in o;return(0,i.jsxs)("a",{href:l?"#".concat(o.to):void 0,onClick:e=>{if(l){let t=document.querySelector("#".concat(o.to));t&&(e.preventDefault(),t.scrollIntoView({behavior:"smooth",block:"start"}))}else o.onClick()},className:(0,a.Z)("group relative -ml-4 flex h-12 w-max cursor-pointer items-center gap-2 rounded-full px-4 z-0 text-graphite-60 hover:text-graphite-100",r&&"z-20 bg-graphite-0 font-bold text-graphite-100 shadow-smooth-xs ring-1 ring-graphite-5"),children:[n&&(0,i.jsx)("span",{className:(0,a.Z)("text-graphite-20 group-hover:text-graphite-100",r&&"text-graphite-100"),children:n}),(0,i.jsx)("span",{children:t})]})}},67533:function(e,t,n){n.d(t,{x:function(){return l}});var i=n(52322),a=n(40489),r=n(2784),o=n(90918);let l=r.forwardRef(function(e,t){let{"aria-checked":n,"aria-pressed":r,padding:l="md",className:s,children:c,...d}=e,u=n||r;return(0,i.jsx)(o.z,{ref:t,"aria-checked":n,"aria-pressed":r,shape:"rounded-rectangle",className:(0,a.Z)("bg-graphite-0 text-graphite-60",u?"cursor-default ring-2 ring-graphite-100":"ring-1 ring-graphite-10 hover:ring-2",{"p-0":"none"===l,"p-2":"sm"===l,"p-6":"md"===l},s),...d,children:(0,i.jsx)("span",{className:"w-full text-left",children:c})})})},81565:function(e,t,n){n.d(t,{w:function(){return CategoryButton}});var i=n(52322),a=n(17949),r=n(23095),o=n(13867),l=n(11289),s=n(87036);function CategoryButton(e){let{category:t,active:n,onClick:c,onEdit:d,onRemove:u,disabled:p}=e,{buttonStyle:{rounded:h,variant:g}}=(0,s.m)();return(0,i.jsxs)("div",{className:"group relative",children:[(0,i.jsx)("button",{type:"button",onClick:()=>null==c?void 0:c(t),disabled:p,className:(0,a.Z)("custom-button-label relative flex h-11 min-w-[88px] items-center justify-center px-6 active:bg-custom-category-active active:text-custom-bg","disabled:pointer-events-none disabled:opacity-[.35]",d||u||p?"group-hover:opacity-[.35]":"@laptop:group-hover:bg-custom-button @laptop:group-hover:text-custom-bg",{"rounded-[6px]":"lg"===h,"rounded-full":"full"===h},{"bg-custom-button-rgba/[0.15] text-custom-category-label":"filled"===g,"border border-custom-button text-custom-button":"outline"===g},n&&"bg-custom-button text-custom-bg"),children:t.name}),(d||u)&&(0,i.jsxs)("div",{className:"invisible absolute inset-0 flex items-center justify-center gap-2 group-hover:visible",children:[d&&(0,i.jsx)(l.u,{adaptive:"high-contrast",content:"Edit category",children:(0,i.jsx)(o.T,{adaptive:"high-contrast",shape:"rounded-square",size:"xs",onClick:()=>d(t),children:(0,i.jsx)(r.IconPencilSm,{"aria-hidden":!0,className:"h-6"})})}),u&&(0,i.jsx)(l.u,{content:"Remove category",intent:"danger",children:(0,i.jsx)(o.T,{shape:"rounded-square",intent:"new-danger",size:"xs",onClick:()=>u(t),children:(0,i.jsx)(r.IconDeleteSmall,{"aria-hidden":!0,className:"h-6 w-6"})})})]})]})}},67087:function(e,t,n){n.d(t,{A:function(){return LabeledToggleSwitch}});var i=n(52322),a=n(17949),r=n(28019);function LabeledToggleSwitch(e){let{label:t,labelPlacement:n="left",className:o,...l}=e,{disabled:s,checked:c}=l;return(0,i.jsxs)("label",{className:(0,a.Z)("flex items-center justify-between font-bold","right"===n&&"flex-row-reverse gap-x-4",s?"text-graphite-10":[c?"text-graphite-100":"text-graphite-40"],o),children:[(0,i.jsx)("div",{children:t}),(0,i.jsx)(r.Z,{...l})]})}},79112:function(e,t,n){n.d(t,{Q:function(){return l}});var i=n(52322),a=n(17949),r=n(2784),o=n(90918);let l=r.forwardRef(function(e,t){let{intent:n="neutral",disabled:r,className:l,alignment:s,...c}=e;return(0,i.jsx)(o.z,{ref:t,size:"sm",intent:n,disabled:r,className:(0,a.Z)("pr-0 text-base font-semibold","pl-0",r?{"text-graphite-10 dark:text-graphite-60":"neutral"===n}:{"text-graphite-100 decoration-graphite-100 decoration-2 hover:underline hover:underline-offset-[6px]":"neutral"===n},"left"===s&&"!justify-start",l),...c})})},99738:function(e,t,n){n.d(t,{r:function(){return SectionTrayButton}});var i=n(52322),a=n(17949),r=n(11289),o=n(13867);function SectionTrayButton(e){let{tooltipContent:t,active:n,children:l,intent:s="neutral",className:c,...d}=e;return(0,i.jsx)(r.u,{adaptive:"high-contrast",intent:s,content:t,placement:"left",children:(0,i.jsx)(o.T,{noShadow:!0,adaptive:"high-contrast",shape:"rounded-square",intent:s,className:(0,a.Z)({"dark:bg-graphite-5":n,"dark:text-graphite-60":"neutral"===s,className:c}),...d,children:l})})}},47052:function(e,t,n){n.d(t,{H:function(){return o},w:function(){return SwitchOption}});var i=n(52322),a=n(60019),r=n(40489);function SwitchOption(e){let{active:t,disabled:n,children:a}=e;return(0,i.jsx)("span",{className:(0,r.Z)("flex-1 rounded py-1 text-base font-semibold",t?"bg-graphite-0 shadow-hard-md":"text-graphite-40",n?"text-graphite-10":"hover:text-graphite-100"),children:a})}let o=a.r},49069:function(e,t,n){n.d(t,{C:function(){return l}});var i=n(52322),a=n(40489),r=n(2784),o=n(90918);let l=r.forwardRef(function(e,t){let{intent:n,loading:r,disabled:l,className:s,...c}=e;return(0,i.jsx)(o.z,{ref:t,size:"md",intent:n,loading:r,disabled:l,className:(0,a.Z)("font-bold uppercase",l?{"bg-graphite-5 text-graphite-20":"neutral"===n,"bg-transparent text-graphite-10 ring-1 ring-inset ring-graphite-10":"subtle"===n,"bg-crimson-0 text-crimson-10":"danger"===n}:{"bg-graphite-80 text-graphite-0 hover:bg-graphite-60":"neutral"===n,"bg-transparent text-graphite-80 ring-1 ring-inset ring-graphite-10 hover:ring-2 hover:ring-graphite-80":"subtle"===n,"bg-crimson-40 text-graphite-0 hover:bg-crimson-60":"danger"===n},s),...c})})},28019:function(e,t,n){n.d(t,{Z:function(){return ToggleSwitch}});var i=n(52322),a=n(16530),r=n(40489);function ToggleSwitch(e){let{disabled:t,checked:n}=e;return(0,i.jsx)(a.fC,{...e,className:(0,r.Z)("relative h-6 w-[42px] flex-none cursor-pointer rounded-full outline-none",t?"bg-graphite-10":[n?"bg-emerald-40 hover:bg-emerald-60":"bg-graphite-10 hover:bg-graphite-20"]),children:(0,i.jsx)(a.bU,{className:"block h-5 w-5 translate-x-0.5 rounded-full bg-graphite-0 shadow-hard-xs transition-all duration-100 will-change-transform data-[state=checked]:translate-x-5"})})}},27421:function(e,t,n){n.d(t,{h:function(){return l}});var i=n(52322),a=n(40489),r=n(2784),o=n(90918);let l=r.forwardRef(function(e,t){let{className:n,...r}=e;return(0,i.jsx)(o.z,{ref:t,size:"auto",className:(0,a.Z)("px-0 text-base font-bold leading-6 text-custom-p underline decoration-custom-p decoration-1 underline-offset-[6px] hover:text-custom-h1 hover:decoration-custom-h1"),style:{fontFamily:"var(--p-family)"},...r})})},18343:function(e,t,n){n.d(t,{p:function(){return CategoryCard},z:function(){return SettingsCategoryCard}});var i=n(52322),a=n(40489),r=n(80660),o=n(90918);function Card(e){let{className:t,...n}=e;return(0,i.jsx)("div",{className:(0,a.Z)("p-6 hover:bg-graphite-5",t),...n})}function CategoryCard(e){let{title:t,actionLabel:n,className:l,onClick:s,children:c,...d}=e;return(0,i.jsxs)(Card,{className:(0,a.Z)("relative space-y-4 text-graphite-60",l),...d,children:[(0,i.jsxs)("div",{className:"flex items-center justify-between hover:text-graphite-100",children:[(0,i.jsx)("h3",{className:"font-bold",children:t}),(0,i.jsx)(o.z,{"aria-label":n,className:"pointer-area-fill-containing-block",onClick:s,children:(0,i.jsx)(r.Z,{"aria-hidden":!0,className:"h-6"})})]}),(0,i.jsx)("div",{className:"pointer-events-none",children:c})]})}function SettingsCategoryCard(e){let{title:t,icon:n,subtitle:a,onClick:o,trailing:l}=e;return(0,i.jsxs)("div",{role:"button","aria-hidden":!0,className:"flex items-center gap-4 p-6 hover:bg-graphite-5",onClick:o,children:[(0,i.jsx)("div",{className:"h-6 w-6 text-graphite-60",children:n}),(0,i.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,i.jsxs)("h5",{className:"flex items-center gap-2 font-semibold text-graphite-100",children:[t,l]}),(0,i.jsx)("h6",{className:"text-xs text-graphite-40",children:a})]}),(0,i.jsx)("div",{children:(0,i.jsx)(r.Z,{className:"h-6 w-6 text-graphite-60"})})]})}},31746:function(e,t,n){n.d(t,{o:function(){return r}});var i=n(52322),a=n(2784);let r=a.forwardRef((e,t)=>{let{children:n,leading:a,...r}=e;return(0,i.jsxs)("div",{ref:t,role:"button","aria-hidden":!0,className:"flex items-center gap-4 rounded px-6 py-4 text-graphite-60 ring-1 ring-graphite-10 hover:shadow-hard-lg",...r,children:[a,n]})})},59901:function(e,t,n){n.d(t,{$:function(){return ProjectPreviewEditor},F:function(){return calculateLineClamp}});var i=n(52322),a=n(40489),r=n(93556),o=n(39097),l=n.n(o),s=n(2784),c=n(75443),d=n(55116),u=n(3547),p=n(6958),h=n(2671),g=n(91737),m=n(24679),f=n(13479),x=n(68200),y=n(71427),v=n(23477),b=n(88883),w=n(63955),j=n(92529),I=n(30195),k=n(42782),S=n(57316),C=n(605),N=n(68851);let A=I.z.object({href:j.s});function EditLinkDialog(e){var t;let{onChange:n,onDismiss:a,defaultValue:r}=e,o=s.useId(),l=(0,w.cI)({resolver:(0,b.F)(A),shouldUnregister:!0});return(0,i.jsxs)(N.Vq,{size:"sm",onDismiss:a,children:[(0,i.jsx)(N.fK,{children:(0,i.jsx)(N.$N,{children:"Edit link"})}),(0,i.jsx)(N.cZ,{as:"form",id:o,noValidate:!0,onSubmit:l.handleSubmit(e=>n(e.href)),children:(0,i.jsx)(C.L,{...l.register("href"),inputMode:"url",label:"Link",placeholder:"https://example.com/article",defaultValue:r,autoFocus:!0,autoComplete:"off",error:null===(t=l.formState.errors.href)||void 0===t?void 0:t.message})}),(0,i.jsxs)(N.kX,{children:[(0,i.jsx)(S.k,{size:"lg",form:o,onClick:a,children:"Cancel"}),(0,i.jsx)(k.K,{size:"lg",type:"submit",form:o,children:"Save"})]})]})}var P=n(54172),T=n(15228),E=n(57855),L=n(68196),O=n(82475),_=n(67867),D=n(44655),M=n(62271),G=n(58651);function calculateLineClamp(e,t,n){if("original"===t){let t=n.originalWidth/n.originalHeight;if("string"==typeof n||n.src.startsWith("/"))return u.D[e].square;switch(!0){case t>T.LO.square:return u.D[e].horizontal;case(0,h.RA)(t,T.LO.square,.1):return u.D[e].square;default:return u.D[e].vertical}}return u.D[e][null!=t?t:"square"]}function ProjectPreviewEditor(e){var t,n,o,u;let{parentSection:h,projectPageId:b,onChange:w,onRemove:j,showDescription:I,labelPlacement:k,sizeOfThumbnails:S,aspectRatioOfImages:C="square",spacing:N}=e,A=(0,E.$)(),R=(0,M.W)(A).data,z=(0,D.q)(b).data,B=(0,_.r)(A),{mutate:Z}=(0,L.R)(),{mutate:H}=(0,O.n)({delayMs:500}),[F,W]=s.useState("none"),[U,V]=s.useState(!1),[q,Y]=s.useState(!1);if(!z)return null;let handleTextChange=(e,t)=>{var n,i,a,r,o,l,s;let{payload:c,alignment:u}=e,p=null===(n=c.content)||void 0===n?void 0:n[0],g=null!==(l=null!==(o=null==p?void 0:null===(i=p.text)||void 0===i?void 0:i.trim())&&void 0!==o?o:null==p?void 0:null===(r=p.content)||void 0===r?void 0:null===(a=r[0].text)||void 0===a?void 0:a.trim())&&void 0!==l?l:"title"===t?(0,d.qF)(z):null;w({projectPageId:b,[t]:g}),u!==h.contentAlignment&&"outside"===k&&H({...h,type:"PROJECT_GRID",contentAlignment:null!==(s=null!=u?u:h.contentAlignment)&&void 0!==s?s:"center"})};return(0,i.jsx)(r.m.span,{initial:"original"===C?void 0:{opacity:0,y:"10%"},animate:{opacity:1,y:0},transition:{duration:.3,delay:.05},className:"focus-within:z-20",children:(0,i.jsxs)(r.m.div,{onMouseEnter:()=>V(!0),onMouseLeave:()=>V(!1),className:(0,a.Z)("relative -m-6 rounded focus-within:z-20 focus-within:ring-1 focus-within:ring-custom-bg-24 hover:ring-1 hover:ring-custom-bg-24",{"p-3":"sm"===N,"p-6":"sm"!==N}),children:[(0,i.jsx)(m.E,{labelPlacement:k,image:z.thumbnail&&(0,i.jsxs)(P.nA,{children:[(0,i.jsx)(l(),{href:z.externalUrl||{query:{slugs:[R.slug,...z.slug?[z.slug]:[]]}},...z.externalUrl&&{target:"_blank",rel:"nofollow noreferrer"},className:(0,a.Z)("block focus:outline-none focus-visible:ring",{"pointer-events-none":q,"pointer-events-auto":!q}),children:(0,i.jsx)(f.k,{thumbnail:z.thumbnail,aspectRatio:C})}),(0,i.jsx)(P.sK,{padding:"sm",dark:"inside"===k,alwaysVisible:"inside"===k&&(U||q),children:(0,i.jsx)(P.up,{placement:"top-start",alwaysVisible:!0,children:(0,i.jsx)(p.P,{site:R,page:z,section:h,onRemove:j,onEdit:()=>W("link"===(0,c.r)(z)?"edit_link":"pdf"),onChangeThumbnail:()=>W("upload"),onCrop:"string"==typeof z.thumbnail||z.thumbnail.src.startsWith("/")||"original"===C?void 0:()=>W("crop"),onSeo:()=>W("seo"),onToggleStatus:()=>{if(z){if(!z.published&&!B()){(0,G.w)({event:"openPricingDialog",from:"ProjectPreviewPublish"});return}Z({id:z.id,published:!z.published})}}})})})]}),textEditors:(0,i.jsxs)("div",{className:(0,a.Z)("space-y-[7px]",{"opacity-0":"inside"===k,"opacity-100":"inside"===k&&(U||q)}),onFocus:()=>Y(!0),children:[(0,i.jsx)(g.T,{id:z.id,noAlign:"inside"===k,toolbarHidden:"inside"===k,noEmphasis:!0,noTable:!0,noLinks:!0,noLists:!0,noSuperscript:!0,noHighlight:!0,noBlockquoteAndDivider:!0,noHistoryButtons:!0,singleLine:!0,blockTypeOptions:"none",paddingY:"xxs",paddingX:"inside"===k?"xxs":"xs",placeholder:"Add a title here",headingOnly:!0,headingLevels:[4],onDarkBackground:"inside"===k,lineClamp:"inside"===k?calculateLineClamp(S,C,z.thumbnail):3,maxLength:260,showCounter:!0,textNodes:{type:"doc",content:[{content:[{text:null!==(t=z.title)&&void 0!==t?t:"",type:"text"}],type:"heading",attrs:{level:4}}]},defaultAlignment:"inside"===k?"center":null!==(n=h.contentAlignment)&&void 0!==n?n:"center",onChange:e=>{handleTextChange(e,"title")},onBlur:e=>{var t;Y(!1);let n=null===(t=e.options.element.querySelector("div.ProseMirror"))||void 0===t?void 0:t.firstElementChild,i=(0,d.qF)(z);if(n&&z.title===i){let e=document.createElement("h4");e.textContent=i,n.replaceWith(e)}}}),I&&(0,i.jsx)(g.T,{noAlign:"inside"===k,toolbarHidden:"inside"===k,noEmphasis:!0,noTable:!0,noLinks:!0,noLists:!0,noSuperscript:!0,noHighlight:!0,noBlockquoteAndDivider:!0,noHistoryButtons:!0,singleLine:!0,blockTypeOptions:"none",paddingY:"xxs",paddingX:"inside"===k?"xxs":"xs",placeholder:"Describe your project",maxLength:125,onDarkBackground:"inside"===k,lineClamp:"inside"===k?calculateLineClamp(S,C,z.thumbnail):void 0,textNodes:z.description?{type:"doc",content:[{content:[{text:z.description,type:"text"}],type:"paragraph"}]}:void 0,defaultAlignment:"inside"===k?"center":null!==(o=h.contentAlignment)&&void 0!==o?o:"center",onChange:e=>{handleTextChange(e,"description")},onBlur:()=>{Y(!1)}})]})}),["crop","upload"].includes(F)&&(0,i.jsx)(y.h,{showAspectRatioAlert:"original"===C,title:"Change thumbnail",showIllustration:!T.Ab,onDismiss:()=>{W("none")},onUploadComplete:e=>{w({projectPageId:b,thumbnail:e})},thumbnail:null==z?void 0:z.thumbnail,onThumbnailChange:e=>{w({projectPageId:b,thumbnail:e})},crop:"original"===C?void 0:{dialog:{title:"Crop thumbnail"},aspectRatio:T.LO[null!=C?C:"square"],image:(null==z?void 0:z.thumbnail)&&"string"!=typeof z.thumbnail&&"crop"===F?z.thumbnail:void 0}}),"seo"===F&&(0,i.jsx)(v.D,{pageId:b,onDismiss:()=>{W("none")}}),"edit_link"===F&&(0,i.jsx)(EditLinkDialog,{defaultValue:null!==(u=null==z?void 0:z.externalUrl)&&void 0!==u?u:"",onChange:e=>{Z({id:z.id,externalUrl:e}),W("none")},onDismiss:()=>{W("none")}}),"pdf"===F&&(0,i.jsx)(x.q,{onChange:e=>{Z({id:z.id,externalUrl:e})},onDismiss:()=>{W("none")}})]})})}},91737:function(e,t,n){n.d(t,{T:function(){return eS}});var i=n(52322),a=n(88883),r=n(37243),o=n(79609),l=n(53714),s=n(69008),c=n(42626),d=n(99635),u=n(39949),p=n(71391),h=n(6776),g=n(16122),m=n(9432),f=n(70675),x=n(103),y=n(27218),v=n(38438),b=n(37585),w=n(45376),j=n(77953),I=n(50505),k=n(6208),S=n(39615),C=n(55388),N=n(40489),A=n(29567),P=n(2784),T=n(63955),E=n(71218);function InsertBlockButtons(e){var t;let{editor:n,contentRef:a,onInsert:r}=e,o=null===(t=a.current)||void 0===t?void 0:t.getBoundingClientRect(),l=P.useMemo(()=>{if(!n||!o)return[];let e=n.view.dom.children;return[...e].map(e=>{let t=e.getBoundingClientRect();return{top:t.top-o.top-12,height:t.height+24}})},[n,o]);return(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0",children:l.map((e,t)=>(0,i.jsxs)("div",{style:e,className:"pointer-events-none absolute inset-x-0 rounded",children:[0!==t&&(0,i.jsx)(E.s,{showLine:!0,placement:"top",onInsert:e=>r(e,t),className:"opacity-0 hover:!opacity-100 group-focus-within/editable-root:opacity-0 group-hover/editable-root:opacity-100 group-focus-within/editable-root:group-hover/editable-root:opacity-0"},"insert-row-".concat(e.top,"-top")),t!==l.length-1&&(0,i.jsx)(E.s,{showLine:!0,placement:"bottom",onInsert:e=>r(e,t+1),className:"opacity-0 hover:!opacity-100 group-focus-within/editable-root:opacity-0 group-hover/editable-root:opacity-100 group-focus-within/editable-root:group-hover/editable-root:opacity-0"},"insert-row-".concat(e.top,"-bottom"))]},e.top))})}var L=n(43569),O=n(35313),_=n(94309),D=n(92529),M=n(25763),G=n(30195),R=n(42782),z=n(57316),B=n(605),Z=n(68851);let H=G.z.object({text:G.z.string(),href:D.Z});function EditTipTapLinkDialog(e){var t;let{value:n,onChange:a,onDismiss:r,editor:o,linkForm:l,linkFormElementId:s}=e;return(0,i.jsxs)(Z.Vq,{size:"sm",onDismiss:r,children:[(0,i.jsx)(Z.fK,{children:(0,i.jsx)(Z.$N,{children:o.isActive("link")?"Edit link":"Add link"})}),(0,i.jsx)(Z.cZ,{as:"form",id:s,noValidate:!0,onSubmit:l.handleSubmit(e=>{let t=(0,M.SE)(e.href);if(null===t)return;let i=(0,M.CN)(t);e.text?e.text!==n?o.chain().focus().extendMarkRange("link").setLink({href:i}).command(t=>{let{tr:n}=t;return n.insertText(e.text),!0}).run():o.chain().focus().extendMarkRange("link").setLink({href:i}).run():o.chain().focus().extendMarkRange("link").setLink({href:i}).command(e=>{let{tr:n}=e;return n.insertText(t),!0}).run(),a(null)}),children:(0,i.jsxs)("div",{className:"space-y-6",children:[(0,i.jsx)(B.L,{...l.register("text"),label:"Text",placeholder:"Visit this link",defaultValue:n,autoFocus:0===n.length,autoComplete:"off"}),(0,i.jsx)(B.L,{...l.register("href"),inputMode:"url",label:"Link or email address",placeholder:"https://example.com",defaultValue:(0,M.Ai)(o.getAttributes("link").href||""),autoFocus:n.length>0,autoComplete:"off",error:null===(t=l.formState.errors.href)||void 0===t?void 0:t.message})]})}),(0,i.jsxs)(Z.kX,{children:[o.isActive("link")?(0,i.jsx)(z.k,{size:"lg",intent:"danger",onClick:()=>{o.chain().focus().unsetLink().run(),a(null)},children:"Remove link"}):(0,i.jsx)(z.k,{size:"lg",form:s,onClick:()=>{a(null)},children:"Cancel"}),(0,i.jsx)(R.K,{size:"lg",type:"submit",form:s,children:o.isActive("link")?"Save":"Add"})]})]})}var F=n(86900);let Bold=e=>F.ZP.extend({addKeyboardShortcuts(){return{"Mod-b":()=>!this.editor.isActive("heading")&&!!e&&(this.editor.commands.toggleBold(),!0),"Mod-B":()=>!this.editor.isActive("heading")&&!!e&&(this.editor.commands.toggleBold(),!0)}}});var W=n(70349),U=n(81217);let V=c.Z.extend({content:"heading heading*"});var q=n(14036),Y=n(32357);let J=q.ZP.extend({addKeyboardShortcuts:()=>({Tab:e=>{let{editor:t}=e;return!!t.commands.goToNextCell()},"Shift-Tab":e=>{let{editor:t}=e;return t.commands.goToPreviousCell()},Backspace:e=>{let{editor:t}=e,{selection:n}=t.state;if(!(n instanceof Y.Xc))return!1;let i=0,a=(0,r.qv)(n.ranges[0].$from,e=>"table"===e.type.name);null==a||a.node.descendants(e=>"table"!==e.type.name&&(["tableCell","tableHeader"].includes(e.type.name)&&(i+=1),!0));let o=i===n.ranges.length;return!o&&n.isRowSelection()?t.commands.deleteRow():!!o&&(t.commands.deleteTable(),!0)},Enter:e=>{let{editor:t}=e;if(t.can().addRowAfter()){let{ranges:e}=t.state.selection,n=(0,r.qv)(e[0].$from,e=>"tableRow"===e.type.name),i=(0,r.qv)(e[0].$from,e=>"tableCell"===e.type.name),a=[];return(null==n||n.node.descendants(e=>"tableCell"===e.type.name&&(a.push(e),!0)),(null==i?void 0:i.node)!==a[0])?t.chain().addRowAfter().goToNextCell().run():t.chain().addRowAfter().goToNextCell().goToNextCell().run()}return!1}})}),K=P.createContext(null);var $=n(73876);let X={md:24,sm:12,xs:8,xxs:4,none:0};var Q=n(752),ee=n(66379),et=n(52855),en=n(23095),ei=n(73467),ea=n(70178),er=n(75780),eo=n(93670),el=n(48822),es=n(29332),ec=n(59229),ed=n(26272),eu=n(66047),ep=n(95166),eh=n(56489),eg=n(77970),em=n(66135),ef=n(21965),ex=n(37811),ey=n(94583),ev=n(90446);let eb=ev.G$?"Cmd":"Ctrl";function TipTapEditorToolbar(e){let{blockTypeOptions:t,noLinks:n,noEmphasis:a,noAlign:r,noLists:o,noTable:l,noBlockquoteAndDivider:s,noSuperscript:c,noHighlight:d,noHistoryButtons:u,alignment:p,setAlignment:h,onLinkButtonClick:g,...m}=e,f=P.useContext(K),[x,y]=P.useState(null),[,v]=(0,Q.KO)(ey.W),[,b]=(0,Q.KO)(ef.z),w=P.useCallback(()=>f?f.isActive("heading",{level:1})?"Heading 1":f.isActive("heading",{level:2})?"Heading 2":f.isActive("heading",{level:3})?"Heading 3":f.isActive("paragraph")||"gapcursor"===f.state.selection.toJSON().type?"Paragraph":"Mixed":"",[f]);if(!f)return null;let chain=()=>f.chain().focus();return(0,i.jsx)("div",{...m,children:(0,i.jsxs)(ee.o,{role:"toolbar",orientation:"horizontal",dir:"ltr",children:["none"!==t&&(0,i.jsxs)(em.J2,{open:"block"===x,onOpenChange:e=>y(e&&!x?"block":null),children:[(0,i.jsx)(em.J2.Trigger,{asChild:!0,children:(0,i.jsxs)(ee.o.Item,{tooltip:"Text styles",children:[w(),(0,i.jsx)(et._M,{className:(0,N.Z)("h-6 w-6","block"===x&&"rotate-180")})]})}),(0,i.jsx)(em.J2.Content,{asChild:!0,className:"z-popover",children:(0,i.jsxs)(eh.v,{className:"z-10 w-58","aria-orientation":"vertical",children:[(0,i.jsx)("div",{className:"flex flex-col space-y-1",children:[1,2,3].map(e=>(0,i.jsxs)(eg.s,{"aria-checked":f.isActive("heading",{level:e}),onMouseDown:e=>e.preventDefault(),onClick:()=>{chain().setHeading({level:e}).run(),a||f.chain().focus().unsetBold().run(),y(null)},children:["Heading ",e]},e))}),"headings"!==t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ex.Z0,{}),(0,i.jsx)(eg.s,{"aria-checked":f.isActive("paragraph"),onMouseDown:e=>e.preventDefault(),onClick:()=>{chain().setParagraph().run(),y(null)},children:"Paragraph"})]}),(0,i.jsx)(ex.Z0,{}),(0,i.jsx)(eg.s,{onMouseDown:e=>e.preventDefault(),onClick:()=>{v("DESIGN"),b(["INITIAL","FONTS"]),y(null)},rightIcon:(0,i.jsx)(en.IconPencilSm,{"aria-hidden":!0,className:"h-6"}),children:"Edit fonts"})]})})]}),!a&&(0,i.jsxs)(i.Fragment,{children:[!f.isActive("heading")&&(0,i.jsxs)(i.Fragment,{children:["none"!==t&&(0,i.jsx)(ee.o.Separator,{}),(0,i.jsx)(ee.o.Item,{tooltip:"Bold (".concat(eb,"+B)"),role:"switch","aria-label":"Bold","aria-checked":f.isActive("bold"),onClick:()=>{chain().toggleBold().run()},children:(0,i.jsx)(ei.Z,{"aria-hidden":!0,className:"h-6"})})]}),"none"!==t&&f.isActive("heading")&&(0,i.jsx)(ee.o.Separator,{}),(0,i.jsx)(ee.o.Item,{tooltip:"Italic (".concat(eb,"+I)"),role:"switch","aria-label":"Italic","aria-checked":f.isActive("italic"),onClick:()=>{chain().toggleItalic().run()},children:(0,i.jsx)(ea.Z,{"aria-hidden":!0,className:"h-6"})})]}),!c&&(0,i.jsxs)(i.Fragment,{children:["none"!==t&&a&&(0,i.jsx)(ee.o.Separator,{}),(0,i.jsx)(ee.o.Item,{tooltip:"Superscript",role:"switch","aria-label":"Superscript","aria-checked":f.isActive("superscript"),onClick:()=>chain().toggleSuperscript().run(),children:(0,i.jsx)(ec.Z,{})})]}),!d&&(0,i.jsxs)(i.Fragment,{children:["none"!==t&&a&&c&&(0,i.jsx)(ee.o.Separator,{}),(0,i.jsx)(ee.o.Item,{tooltip:"Highlight (Cmd+Shift+H)",role:"switch","aria-label":"Highlight","aria-checked":f.isActive("highlight"),onClick:()=>chain().toggleHighlight().run(),children:(0,i.jsx)(et.y$,{className:"h-6"})})]}),!r&&(0,i.jsxs)(i.Fragment,{children:[("none"!==t||!a)&&(0,i.jsx)(ee.o.Separator,{}),(0,i.jsxs)(em.J2,{onOpenChange:e=>y(e&&!x?"align":null),open:"align"===x,children:[(0,i.jsx)(em.J2.Trigger,{asChild:!0,children:(0,i.jsx)(ee.o.Item,{tooltip:"Text align",icon:function(e){switch(e){case"left":return(0,i.jsx)(eu.Z,{"aria-hidden":!0,className:"h-6 w-6"});case"right":return(0,i.jsx)(ep.Z,{"aria-hidden":!0,className:"h-6 w-6"});default:return(0,i.jsx)(ed.Z,{"aria-hidden":!0,className:"h-6 w-6"})}}(p),className:"pr-1.5",children:(0,i.jsx)(et._M,{className:(0,N.Z)("h-6 w-6","align"===x&&"rotate-180")})})}),(0,i.jsx)(em.J2.Content,{asChild:!0,align:"center",children:(0,i.jsxs)(eh.v,{"aria-orientation":"horizontal",children:[(0,i.jsx)(ee.o.Item,{tooltip:"Left (".concat(eb,"+Shift+L)"),tooltipPlacement:"bottom",role:"radio","aria-label":"Left align","aria-checked":"left"===p,onClick:()=>{h("left"),y(null)},icon:(0,i.jsx)(eu.Z,{className:"h-6 w-6"})}),(0,i.jsx)(ee.o.Item,{tooltip:"Left (".concat(eb,"+Shift+E)"),tooltipPlacement:"bottom",role:"radio","aria-label":"Center align","aria-checked":"center"===p,onClick:()=>{h("center"),y(null)},icon:(0,i.jsx)(ed.Z,{className:"h-6 w-6"})}),(0,i.jsx)(ee.o.Item,{tooltip:"Left (".concat(eb,"+Shift+R)"),tooltipPlacement:"bottom",role:"radio","aria-label":"Right align","aria-checked":"right"===p,onClick:()=>{h("right"),y(null)},icon:(0,i.jsx)(ep.Z,{className:"h-6 w-6"})})]})})]})]}),!o&&!f.isActive("blockquote")&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ee.o.Separator,{}),(0,i.jsx)(ee.o.Item,{tooltip:"Numbered list (".concat(eb,"+Shift+7)"),"aria-label":"Numbered list",role:"switch",onClick:()=>chain().toggleOrderedList().run(),"aria-checked":f.isActive("orderedList"),children:(0,i.jsx)(el.Z,{"aria-hidden":!0,className:"h-6"})}),(0,i.jsx)(ee.o.Item,{tooltip:"Bulleted list (".concat(eb,"+Shift+8)"),"aria-label":"Bulleted list",role:"switch",onClick:()=>chain().toggleBulletList().run(),"aria-checked":f.isActive("bulletList"),children:(0,i.jsx)(eo.Z,{"aria-hidden":!0,className:"h-6"})})]}),!l&&!f.isActive("blockquote")&&(0,i.jsx)(ee.o.Item,{tooltip:"Two column list","aria-label":"Two column list",role:"switch","aria-checked":f.isActive("table"),onClick:()=>{f.isActive("table")||chain().insertTable({rows:1,cols:2,withHeaderRow:!1}).run()},children:(0,i.jsx)(es.Z,{"aria-hidden":!0,className:"h-6"})}),!s&&!(f.isActive("table")||f.isActive("orderedList")||f.isActive("bulletList"))&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ee.o.Separator,{}),!f.isActive("divider")&&(0,i.jsx)(ee.o.Item,{tooltip:"Block quote (Cmd+Shift+B)","aria-checked":f.isActive("blockquote"),"aria-label":"Block quote",onClick:()=>chain().toggleBlockquote().run(),children:(0,i.jsx)(et.V6,{"aria-hidden":!0,className:"h-6"})}),!f.isActive("blockquote")&&(0,i.jsxs)(em.J2,{open:"divider"===x,onOpenChange:e=>{y(e&&!x?"divider":null)},children:[(0,i.jsx)(em.J2.Trigger,{asChild:!0,children:(0,i.jsx)(ee.o.Item,{tooltip:"Divider line",className:"pr-1.5","aria-checked":f.isActive("divider"),icon:(0,i.jsx)(et.iz,{"aria-hidden":!0,className:"h-6"}),children:(0,i.jsx)(et._M,{className:(0,N.Z)("h-6 w-6","divider"===x&&"rotate-180")})})}),(0,i.jsx)(em.J2.Content,{asChild:!0,align:"center",children:(0,i.jsxs)(eh.v,{"aria-orientation":"horizontal",children:[(0,i.jsx)(ee.o.Item,{tooltip:"Full width line",tooltipPlacement:"bottom",role:"radio","aria-label":"Full width line","aria-checked":f.isActive("divider",{variant:"full"}),onClick:()=>{chain().setDivider({variant:"full"}).run(),y(null)},icon:(0,i.jsx)(et.At,{className:"h-6 w-6"})}),(0,i.jsx)(ee.o.Item,{tooltip:"Narrow line",tooltipPlacement:"bottom",role:"radio","aria-label":"Narrow line","aria-checked":f.isActive("divider",{variant:"narrow"}),onClick:()=>{chain().setDivider({variant:"narrow"}).run(),y(null)},icon:(0,i.jsx)(et.wg,{className:"h-6 w-6"})}),(0,i.jsx)(ee.o.Item,{tooltip:"Dotted line",tooltipPlacement:"bottom",role:"radio","aria-label":"Dotted line","aria-checked":f.isActive("divider",{variant:"dotted"}),onClick:()=>{chain().setDivider({variant:"dotted"}).run(),y(null)},icon:(0,i.jsx)(et.cb,{className:"h-6 w-6"})})]})})]})]}),!n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ee.o.Separator,{}),(0,i.jsx)(ee.o.Item,{"aria-label":"Insert link","aria-checked":f.isActive("link"),tooltip:"Insert link (".concat(eb,"+K)"),onClick:g,children:(0,i.jsx)(er.Z,{"aria-hidden":!0,className:"h-6"})})]}),!u&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ee.o.Separator,{}),(0,i.jsx)(ee.o.Item,{"aria-label":"Undo",tooltip:"Undo (".concat(eb,"+Z)"),disabled:!f.can().undo(),onClick:()=>chain().undo().run(),children:(0,i.jsx)(et.WP,{className:"h-6"})}),(0,i.jsx)(ee.o.Item,{"aria-label":"Redo",tooltip:"Redo (".concat(eb,"+Shift+Z)"),disabled:!f.can().redo(),onClick:()=>chain().redo().run(),children:(0,i.jsx)(et.Jw,{className:"h-6"})})]})]})})}let ew=(0,A.I)("CmdOrCtrl","Shift","L"),ej=(0,A.I)("CmdOrCtrl","Shift","R"),eI=(0,A.I)("CmdOrCtrl","Shift","E"),ek=(0,A.I)("CmdOrCtrl","K"),eS=P.forwardRef(function(e,t){var n,A,E,D;let{toolbarHidden:M,singleLine:G,blockTypeOptions:R="all",noAlign:z,noLinks:B,noEmphasis:Z,noLists:F,noTable:q,noBlockquoteAndDivider:Y,noSuperscript:Q,noHighlight:ee,noHistoryButtons:et,textNodes:en,fallbackTextNodes:ei,headingOnly:ea,headingLevels:er,defaultAlignment:eo,placeholder:el="Add text here and type away",groupHoverEnabled:es=!0,paddingY:ec="md",paddingX:ed="md",id:eu,toolbarAlignment:ep="left",onChange:eh,onBlur:eg,maxLength:em=Number.POSITIVE_INFINITY,showCounter:ef=!0,noRing:ex,lineClamp:ey,onDarkBackground:ev=!1,skipDefaultClasses:eb,onInsert:eS}=e,[eC,eN]=P.useState(eo),[eA,eP]=P.useState(null),eT=(0,T.cI)({resolver:(0,a.F)(H)}),eE=P.useId(),eL=P.useId(),{active:eO,ignoreListeners:e_}=(0,L.Cj)(),eD=P.useCallback(e=>{if(!e)return;let{selection:t,doc:n}=e.state,{from:i,to:a,$from:r,$to:o}=t;if(i===a&&"isActive"in e&&e.isActive("link")){var l,s;let e=null===(l=r.nodeBefore)||void 0===l?void 0:l.textContent,t=null===(s=o.nodeAfter)||void 0===s?void 0:s.textContent;eP("".concat(e||"").concat(t||""))}else eP(n.textBetween(i,a," "));eT.reset()},[eT]),eM=(0,C.jE)({editorProps:{handleKeyDown(e,t){ew(t)?z||eN("left"):eI(t)?z||eN("center"):ej(t)?z||eN("right"):ek(t)&&!B&&eD(e)},transformPastedHTML:e=>e.replace(/<\/?(?:table|td|tr|tbody)[^>]*(>|$)/gm,""),attributes:{class:(0,N.Z)(eS?"space-y-6":_.oG,"focus:outline-none")}},extensions:["headings"===R||ea?V:c.Z,(eb?p.Z:U.X).configure({levels:null!=er?er:[1,2,3,4,5,6],HTMLAttributes:{class:(0,N.Z)({"text-graphite-0":ev})}}),v.Z.configure({HTMLAttributes:{class:(0,N.Z)(eb?"":_.ID.paragraph,{"text-graphite-0":ev})}}),S.Z,F?new r.hj({name:"noLists"}):y.ZP.configure({HTMLAttributes:{class:_.ID.orderedList}}),F?new r.hj({name:"noLists2"}):l.ZP.configure({HTMLAttributes:{class:_.ID.bulletList}}),F?new r.hj({name:"noLists3"}):x.Z.configure({HTMLAttributes:{class:_.ID.listItem}}),Bold(!Z),Z?new r.hj({name:"noItalic"}):m.ZP,w.Z,ee?new r.hj({name:"noHighlight"}):h.ZP.configure({HTMLAttributes:{class:_.ID.highlight},multicolor:!1}),f.ZP.configure({openOnClick:!1,HTMLAttributes:{class:_.ID.link}}),J.configure({resizable:!1,HTMLAttributes:{class:_.ID.table}}),k.Z,I.Z,j.Z.configure({HTMLAttributes:{class:_.ID.tableCell}}),Y?new r.hj({name:"noBlockquote"}):o.ZP.configure({HTMLAttributes:{class:_.ID.blockquote}}),g.Z,d.Z,G?new r.hj({name:"noSingleLine"}):u.Z,b.Z.configure({emptyEditorClass:(0,N.Z)(_.ID.placeholder,{"first:before:!text-graphite-0/50":ev}),placeholder:el}),r.hj.create({addKeyboardShortcuts:()=>({Enter:()=>!!G})}),s.Z.configure({limit:em}),Y?new r.hj({name:"noDivider"}):W.i],content:en}),eG=P.useCallback(()=>{if(!eM)return;if(eM.isEmpty&&ei){eh({alignment:eC,payload:ei.payload},eu);return}let e=null==eM?void 0:eM.getJSON();eh({alignment:eC,payload:e},eu)},[eC,eM,ei,eu,eh]),[eR,{boxHeight:ez,update:eB,maxHeight:eZ}]=function(e){let{lines:t,editorDom:n,padding:i}=e,a=P.useRef(0),r=P.useRef(null),[o,l]=P.useState(0),s=P.useMemo(()=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sm",n=arguments.length>2?arguments[2]:void 0;if(!e)return 0;let i=e.firstChild;if(!$.Jl||!i||!n)return 0;let a=document.createElement("h4");a.classList.add(...i.classList.values()),a.textContent="Hello World",a.style.position="fixed",a.style.visibility="hidden",document.body.append(a);let r=a.clientHeight;a.remove();let o=X[t];return r*n+2*o+4})(n,i,t),[n,i,t]),c=P.useCallback(()=>{if(t&&r.current){let e=r.current.clientHeight;e>o&&e<s&&(a.current=e),l(Math.min(e,a.current))}},[s,o,t]);return P.useEffect(()=>{t&&r.current&&(a.current=r.current.clientHeight)},[r.current,t]),[r,{boxHeight:o,maxHeight:s,update:c}]}({lines:ey,editorDom:null==eM?void 0:eM.view.dom,padding:ec});return(P.useEffect(()=>{eM&&(eM.off("update"),eM.off("blur"),eM.on("focus",eB),eM.on("update",()=>{eB(),eG()}),eM.on("blur",e=>{let{editor:t}=e;eG(),null==eg||eg(t)}))},[eC,eM,ei,eu,eh,eg,eB,eG]),P.useEffect(()=>{eM&&eG()},[eC,ei]),P.useMemo(()=>{eN(eo)},[eo]),P.useImperativeHandle(t,()=>({setAlignment:e=>{eN(e)}})),eM)?(0,i.jsx)(K.Provider,{value:eM,children:(0,i.jsxs)("div",{...e_,className:(0,N.Z)("group relative",{"-my-1":"xxs"===ec,"-my-2":"xs"===ec,"-my-3":"sm"===ec,"-my-6":"md"===ec,"-mx-1":"xxs"===ed,"-mx-2":"xs"===ed,"-mx-3":"sm"===ed,"-mx-6":"md"===ed}),children:[eM.isFocused&&ey&&(0,i.jsx)("div",{style:{height:"".concat(ez,"px")}}),(0,i.jsx)("div",{ref:eR,className:(0,N.Z)("rounded",eM.isFocused&&ey&&["absolute top-0 z-10 w-full",{"bg-graphite-80/90 shadow-soft-lg":(null!==(E=null===(n=eR.current)||void 0===n?void 0:n.clientHeight)&&void 0!==E?E:0)>eZ&&ev,"bg-custom-bg-8 shadow-soft-lg dark:bg-custom-bg-16":(null!==(D=null===(A=eR.current)||void 0===A?void 0:A.clientHeight)&&void 0!==D?D:0)>eZ&&!ev}],{"py-1":"xxs"===ec,"py-2":"xs"===ec,"py-3":"sm"===ec,"py-6":"md"===ec,"px-1":"xxs"===ed,"px-2":"xs"===ed,"px-3":"sm"===ed,"px-6":"md"===ed},{"text-center":"center"===eC,"text-left":"left"===eC,"text-right":"right"===eC},!ex&&{"ring-custom-bg-24 group-hover:ring-1 group-focus-within:ring-2 hover:group-focus-within:ring-2 group-focus-within:ring-graphite-100 hover:group-focus-within:ring-graphite-100 group-module-hover:ring-1 dark:ring-custom-bg-24 dark:group-focus-within:ring-graphite-0":es,"ring-custom-bg-24 focus-within:!ring-2 focus-within:ring-graphite-100 hover:ring-1 dark:ring-custom-bg-24 dark:focus-within:ring-graphite-0":!es,"group-focus-within:ring-graphite-0 hover:group-focus-within:ring-graphite-0":es&&ev}),children:(0,i.jsx)(C.kg,{editor:eM,"aria-owns":eL,className:(0,N.Z)({"text-center":"center"===eC,"text-left":"left"===eC,"text-right":"right"===eC},!eM.isFocused&&ey&&{"line-clamp-1":1===ey,"line-clamp-2":2===ey,"line-clamp-3":3===ey}),children:ef&&(0,i.jsx)(O.$,{className:"absolute bottom-[-0.375rem] right-[-2px] hidden w-full translate-y-8 justify-end pt-2 group-focus-within:flex",maxLength:em,textLength:eM.getText().length})})}),eS&&(0,i.jsx)(InsertBlockButtons,{editor:eM,contentRef:eR,onInsert:eS}),null!=eA&&(0,i.jsx)(EditTipTapLinkDialog,{value:eA,onChange:eP,editor:eM,linkForm:eT,linkFormElementId:eE,onDismiss:()=>eP(null)}),eM.isFocused&&!eO&&(0,i.jsx)("div",{className:"pointer-events-none absolute top-0 z-active-module h-full w-full",children:(0,i.jsx)("div",{className:(0,N.Z)("absolute top-[-3.75rem] h-[calc(100%+3.75rem)]",{"right-0":"right"===ep,"left-0":"left"===ep}),children:(0,i.jsx)(TipTapEditorToolbar,{hidden:M,blockTypeOptions:R,noLinks:B,noEmphasis:Z,noAlign:z,noLists:F,noTable:q,noBlockquoteAndDivider:Y,noSuperscript:Q,noHighlight:ee,noHistoryButtons:et,alignment:eC,setAlignment:eN,onLinkButtonClick:()=>{eD(eM)},id:eL,className:"pointer-events-auto sticky top-10"})})})]})}):null})},22202:function(e,t,n){n.d(t,{j:function(){return v}});var i=n(52322),a=n(69008),r=n(42626),o=n(71391),l=n(16122),s=n(38438),c=n(37585),d=n(39615),u=n(55388),p=n(37243),h=n(17949),g=n(40489),m=n(2784),f=n(35313),x=n(94309),y=n(81217);let v=m.forwardRef(function(e,t){let{text:n,fallbackText:v,maxLength:b=Number.POSITIVE_INFINITY,size:w="normal",showCounter:j=!0,noRing:I,elementType:k,attrs:S,skipDefaultClasses:C,placeholder:N,autoFocus:A=!1,alignment:P="center",rounded:T=!1,wordBreak:E,onDarkBackground:L,onChange:O,onBlur:_,onKeyDown:D,onClick:M,id:G}=e,R=(0,u.jE)({editorProps:{attributes:{class:(0,g.Z)(x.oG,"focus:outline-none")},transformPastedHTML(e){let t=e.replace(/(<([^>]+)>)/gim," ").replace(/\r\n|\r|\n/g," ").trim();if("heading"===k){let e=(null==S?void 0:S.level)||1;return"<h".concat(e,">").concat(t,"</h").concat(e,">")}return"<p>".concat(t,"</p>")},handleClick(){null==M||M()}},extensions:[r.Z,C?o.Z:y.X,s.Z.configure({HTMLAttributes:{class:C?"":x.ID.paragraph}}),d.Z,l.Z,a.Z.configure({limit:b}),c.Z.configure({emptyEditorClass:(0,g.Z)(x.ID.placeholder,{"first:before:!text-graphite-0/50":L}),placeholder:N}),p.hj.create({addKeyboardShortcuts:()=>({Enter:()=>!0})})],content:{type:"doc",content:[{type:k,attrs:S,content:n?[{type:"text",text:n}]:void 0}]}});return(m.useEffect(()=>(R&&(R.off("update"),R.off("blur"),R.on("update",e=>{let{editor:t}=e;v&&""===t.getText()||null==O||O(t.getText())}),R.on("blur",e=>{let{event:t,editor:n}=e;v&&""===n.getText()&&R.commands.setContent(v,!0),null==_||_(t)})),()=>{null==R||R.off("update"),null==R||R.off("blur")}),[R,O,_,v]),m.useImperativeHandle(t,()=>({focus:()=>{null==R||R.commands.focus("all")},blur:()=>{null==R||R.commands.blur()}}),[R]),m.useEffect(()=>{A&&(null==R||R.commands.focus())},[A,null==R?void 0:R.commands]),R)?(0,i.jsx)(u.kg,{id:G,onKeyDown:D,editor:R,className:(0,g.Z)("group relative",!I&&["ring-inset focus-within:ring-2 hover:ring-1 hover:ring-custom-bg-24 hover:focus-within:ring-2 dark:focus-within:ring-graphite-0 dark:hover:focus-within:ring-graphite-0",L?"focus-within:ring-graphite-0 hover:focus-within:ring-graphite-0":"focus-within:ring-graphite-100 hover:focus-within:ring-graphite-100"],T&&"rounded",{"-m-3 p-3":"normal"===w,"-my-3 -mx-1 py-3 px-1":"narrow"===w,"-m-6 p-6":"wide"===w,"-m-2 p-2":"compact"===w,"-my-1 -mx-2 py-1 px-2":"extra-compact"===w,"text-left":"left"===P,"text-right":"right"===P,"text-center":"center"===P},"all"===E&&"break-all"),children:j&&(0,i.jsx)(f.$,{maxLength:b,textLength:R.getText().length,className:(0,h.Z)("absolute -bottom-1 z-20 translate-y-8",{"right-3 -mr-1":"narrow"===w,"right-3 -mr-3":"normal"===w,"right-6 -mr-6":"wide"===w,"right-2 -mr-2":"compact"===w||"extra-compact"===w})})}):null})},81859:function(e,t,n){n.d(t,{J:function(){return BlogPostPreviewLayout}});var i=n(52322),a=n(34911),r=n(40489);function GridBlogPostPreviewLayout(e){let{image:t,date:n,title:a,description:o,categories:l,openPostButton:s,editor:c=!1}=e,d=l&&(0,i.jsx)("div",{className:(0,r.Z)("inline-flex flex-wrap gap-1.5",c&&"-m-2 cursor-pointer rounded p-2 ring-custom-bg-24 hover:ring-1"),children:l});return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:(0,r.Z)("group-blogpost flex flex-col items-center space-y-6 @laptop:col-span-6 @laptop:odd:col-start-2 @laptop:even:col-start-8",c&&"-m-6 rounded p-6 focus-within:ring-1 focus-within:ring-custom-bg-24 hover:ring-1 hover:ring-custom-bg-24"),children:[(0,i.jsx)("div",{className:"relative z-10 w-full",children:t}),(0,i.jsx)("div",{className:"relative w-full @laptop:col-span-full @laptop:col-start-1 @laptop:row-start-2 @laptop:my-auto",children:(0,i.jsxs)("div",{className:"space-y-4 @laptop:space-y-8",children:[(0,i.jsxs)("div",{className:"space-y-3 @laptop:space-y-6",children:[(0,i.jsxs)("div",{className:(0,r.Z)(c?"space-y-1 @laptop:space-y-3":"space-y-3"),children:[(0,i.jsx)("div",{children:n}),d,(0,i.jsx)("div",{children:a})]}),(0,i.jsx)("div",{children:o})]}),s&&(0,i.jsx)("div",{children:s})]})})]})})}function ListBlogPostPreviewLayout(e){let{image:t,date:n,title:a,listStyle:o="normal",description:l,categories:s,openPostButton:c,editor:d=!1}=e,u=s&&(0,i.jsx)("div",{className:(0,r.Z)("inline-flex flex-wrap gap-1.5",d&&"-m-2 cursor-pointer rounded p-2 ring-custom-bg-24 hover:ring-1"),children:s});return(0,i.jsxs)("div",{className:(0,r.Z)("group-blogpost flex flex-col items-center justify-center space-y-6  @laptop:col-span-12 @laptop:col-start-2 @laptop:grid @laptop:grid-cols-12 @laptop:gap-12",d&&"-m-6 rounded p-6 focus-within:ring-1 focus-within:ring-custom-bg-24 hover:ring-1 hover:ring-custom-bg-24"),children:[(0,i.jsx)("div",{className:(0,r.Z)("relative z-10 w-full @laptop:col-span-6","@laptop:col-start-1",{"@laptop:group-blogpost-even:col-start-7":"alternating"===o}),children:t}),(0,i.jsx)("div",{className:(0,r.Z)("relative w-full @laptop:col-span-5 @laptop:row-start-1 @laptop:my-auto","@laptop:col-start-8",{"@laptop:group-blogpost-even:col-start-1":"alternating"===o}),children:(0,i.jsxs)("div",{className:"space-y-4 @laptop:space-y-8",children:[(0,i.jsxs)("div",{className:"space-y-3 @laptop:space-y-6",children:[(0,i.jsxs)("div",{className:(0,r.Z)(d?"space-y-1 @laptop:space-y-3":"space-y-3 @laptop:space-y-[20px]"),children:[(0,i.jsx)("div",{children:n}),u,(0,i.jsx)("div",{children:a})]}),(0,i.jsx)("div",{children:l})]}),c&&(0,i.jsx)("div",{children:c})]})})]})}var o=n(94516);function SimpleListBlogPostPreviewLayout(e){let{date:t,title:n,description:a,categories:l,openPostButton:s,editor:c=!1,pageOptionsBar:d}=e,u=l&&(0,i.jsx)("div",{className:(0,r.Z)(c?"-m-2 inline-flex cursor-pointer flex-wrap gap-1.5 rounded p-2 ring-custom-bg-24 hover:ring-1":"inline-flex flex-wrap gap-1.5"),children:l});return(0,i.jsx)(o.J,{newGrid:!0,className:"col-span-full px-0 ",children:(0,i.jsx)("div",{className:(0,r.Z)("relative col-span-full w-full @tablet:col-start-1 @laptop:col-span-12 @laptop:col-start-2",c&&"-m-6 rounded p-6 focus-within:ring-1 focus-within:ring-custom-bg-24 hover:ring-1 hover:ring-custom-bg-24"),children:(0,i.jsxs)("div",{className:(0,r.Z)(c?"space-y-8":"space-y-4 @laptop:space-y-8"),children:[d,(0,i.jsxs)("div",{className:(0,r.Z)(c?"space-y-6":a&&"space-y-3 @laptop:space-y-6"),children:[(0,i.jsxs)("div",{className:(0,r.Z)("space-y-3",!c&&"@laptop:space-y-[20px]"),children:[(0,i.jsx)("div",{children:t}),u,(0,i.jsx)("div",{className:"@laptop:w-2/3",children:n})]}),(0,i.jsx)("div",{className:"@laptop:w-1/2",children:a})]}),s&&(0,i.jsx)("div",{children:s})]})})})}function BlogPostPreviewLayout(e){let{layout:t,...n}=e;switch(t){case"list":return(0,i.jsx)(ListBlogPostPreviewLayout,{...n});case"simple-list":return(0,i.jsx)(SimpleListBlogPostPreviewLayout,{...n});case"grid":return(0,i.jsx)(GridBlogPostPreviewLayout,{...n});default:return(0,a.pv)(t)}}},93536:function(e,t,n){n.d(t,{_:function(){return l}});var i=n(52322),a=n(40489),r=n(2784),o=n(87036);let l=r.forwardRef((e,t)=>{let{children:n,...r}=e,{buttonStyle:l,fontSizeSet:s}=(0,o.m)(),{rounded:c,variant:d}=l,{p:u}=s;return(0,i.jsx)("button",{...r,ref:t,type:"submit"===r.type?"submit":"button",className:(0,a.Z)("custom-button-label min-h-[3.5rem] w-full min-w-[6rem] px-8 py-2 uppercase transition-colors disabled:opacity-25 @tablet:w-auto",{"bg-custom-button text-custom-button-text hover:bg-custom-button-hover disabled:hover:bg-custom-button active:bg-custom-button-hover":"filled"===d,"text-custom-button disabled:hover:text-custom-button ring-custom-button disabled:hover:bg-transparent hover:bg-custom-button hover:text-custom-bg ring-1 ring-inset":"outline"===d},{"rounded-none":"none"===c,"rounded-lg":"lg"===c,"rounded-full":"full"===c},r.className),style:{fontSize:"".concat(u.laptop/16,"rem")},children:n})})},20237:function(e,t,n){n.d(t,{t:function(){return CategoryListLayout}});var i=n(52322),a=n(17949);function CategoryListLayout(e){let{children:t,alignment:n="left"}=e;return(0,i.jsx)("div",{className:"col-span-full max-h-[96px] overflow-x-auto overflow-y-hidden @tablet:col-span-6 @tablet:col-start-2 @laptop:col-span-12 @laptop:col-start-2",children:(0,i.jsx)("div",{className:(0,a.Z)("flex flex-wrap gap-2 @laptop:w-[800px]",{"justify-center mx-auto":"center"===n,"justify-end ml-auto":"right"===n}),children:t})})}},87611:function(e,t,n){n.d(t,{n:function(){return ExtensionLayout}});var i=n(52322),a=n(40489);function ExtensionLayout(e){let{alignment:t,children:n}=e;return(0,i.jsx)("div",{className:(0,a.Z)({"self-start":"left"===t,"self-center":"center"===t,"self-end":"right"===t}),children:n})}},24679:function(e,t,n){n.d(t,{E:function(){return ProjectPreviewLayout},X:function(){return commonProjectPreviewImageProps}});var i=n(52322),a=n(40489);function commonProjectPreviewImageProps(e){return{...e,alt:"",layout:"responsive",width:448,height:448}}function ProjectPreviewLayout(e){let{className:t,image:n,textEditors:r,labelPlacement:o="outside",...l}=e;return(0,i.jsxs)("div",{className:(0,a.Z)("group-projectpreviewimage space-y-6",t),...l,children:[(0,i.jsxs)("div",{className:"relative leading-0",children:[n,"inside"===o&&(0,i.jsx)("div",{className:"absolute left-1/2 top-1/2 w-full -translate-x-1/2 -translate-y-1/2 px-6",children:r})]}),"outside"===o&&r]})}},98988:function(e,t,n){n.d(t,{I:function(){return ImagePinsCanvas}});var i=n(52322),a=n(23094),r=n(82851),o=n(2784),l=n(84830),s=n(2671),c=n(68935),d=n(82669);function DraggableItem(e){let{children:t,...n}=e,{listeners:o,setNodeRef:l,transform:s,attributes:c}=(0,a.O1)(n),d={transform:r.ux.Translate.toString(s)};return(0,i.jsx)("div",{ref:l,...o,...c,style:d,children:t})}function ImagePinsCanvas(e){let{onEdit:t,onDrag:n,...r}=e,u=(0,a.Dy)((0,a.VT)(a.MA,{activationConstraint:{distance:5}})),p=(0,o.useRef)(null),h=(0,c.h)(p,[]),g=(0,o.useMemo)(()=>(function(e,t){var n,i,a;let{pins:r,crop:o,originalWidth:c,originalHeight:d,mockup:u}=e;if(!r||!t)return[];let p=(0,l.gG)(u),h=null!==(n=null==o?void 0:o.width)&&void 0!==n?n:c,g=null!==(i=null==o?void 0:o.height)&&void 0!==i?i:d,m=h/g,f=null!==(a=null==p?void 0:p.crop.aspectRatio)&&void 0!==a?a:m;if(!(0,s.RA)(m,f,.05))return[];let x=f<m?g*f:h,y=f>m?h/f:g,v=t.width/x,b=t.height/y;return r.map(e=>{var t,n;return{...e,coordinates:{x:(e.coordinates.x-(null!==(t=null==o?void 0:o.left)&&void 0!==t?t:0))*v,y:(e.coordinates.y-(null!==(n=null==o?void 0:o.top)&&void 0!==n?n:0))*b}}})})(r,h),[r,h]);return(0,i.jsx)(a.LB,{sensors:u,onDragEnd:e=>{var t;let{active:{id:i},delta:a}=e,o=null===(t=g.find(e=>e.id===i))||void 0===t?void 0:t.coordinates;if(!o||!h)return;let s={x:o.x+a.x,y:o.y+a.y},c=(0,l.kk)(s,h,r);null==n||n({id:i.toString(),coordinates:c})},children:(0,i.jsx)("div",{ref:p,className:"group/pin-canvas pointer-events-none absolute inset-0 z-20",children:g.map(e=>{var n;return(0,i.jsx)(DraggableItem,{id:e.id,disabled:!t,children:(0,i.jsx)(d.l,{...e,onRemove:t?()=>t(e.id,null):void 0,onSubmit:t?n=>t(e.id,n):void 0,deadzoneSize:(null!==(n=null==h?void 0:h.width)&&void 0!==n?n:0)*.1575},e.id)},e.id)})})})}},82669:function(e,t,n){n.d(t,{l:function(){return Pin}});var i=n(52322),a=n(17949),r=n(93556),o=n(2784),l=n(49178),s=n(23095),c=n(22202),d=n(57897),u=n(60446),p=n(87036);function Pin(e){var t;let{active:n,disabled:r,content:p,coordinates:h,deadzoneSize:g=0,onSubmit:m,onDismiss:f,onRemove:x}=e,{editing:y}=(0,u.e)(),v=(0,l.Y)(),b=!!(m&&x),[w,j]=(0,o.useState)(p),I=(0,o.useRef)(null),k=(0,o.useCallback)(()=>{if(null==w?void 0:w.trim()){var e;null==m||m(w.trim()),null===(e=I.current)||void 0===e||e.blur()}else null==x||x()},[x,m,w]),S=(0,o.useCallback)(e=>{("Enter"===e.key||"Escape"===e.key)&&(k(),e.stopPropagation(),null==f||f())},[k,f]),C="calc(".concat(g,"px + 2.5rem)");return(0,i.jsxs)("div",{"data-image-pin":!0,style:{left:h.x,top:h.y},onClick:null===(t=I.current)||void 0===t?void 0:t.focus,"aria-hidden":!0,"aria-selected":n,"aria-disabled":r,onFocus:()=>v.setPassive(!0),className:(0,a.Z)("group/pin pointer-events-auto absolute flex -translate-x-1/2 -translate-y-5 cursor-auto flex-col items-center justify-center space-y-2 hover:z-10",n&&"z-10"),children:[(0,i.jsx)("div",{"data-custom-cursor-disabled":!0,style:{width:C,height:C},className:(0,a.Z)("absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 rounded-full",y&&"cursor-none",!y&&"pointer-events-none")}),(0,i.jsx)(Pin.Head,{}),(0,i.jsx)("div",{className:(0,a.Z)("pointer-events-none absolute bottom-0 translate-y-full pt-2 opacity-0 transition-all",!y&&"group-focus-within/pin:pointer-events-auto group-focus-within/pin:opacity-100 group-hover/pin:pointer-events-auto group-hover/pin:opacity-100 group-hover/pin:delay-0",n&&"pointer-events-auto opacity-100",!b&&"delay-200"),children:(0,i.jsx)(Pin.Content,{children:b?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,a.Z)("flex-1 text-custom-p",!w&&!p&&"min-w-[160px] break-words"),children:(0,i.jsx)(c.j,{ref:I,elementType:"paragraph",text:w,onKeyDown:S,onChange:j,placeholder:"Write description here",autoFocus:n,noRing:!0,skipDefaultClasses:!0,maxLength:125,wordBreak:"all"})}),(0,i.jsx)(s.IconX,{role:"button",onClick:x,className:"h-4 w-4 cursor-pointer justify-end text-graphite-100/40 hover:text-graphite-100 dark:text-graphite-0/40 dark:hover:text-graphite-0"})]}):(0,i.jsx)(d.P,{text:p,element:{type:"paragraph"},skipDefaultClasses:!0})})})]})}Pin.Head=function(){return(0,i.jsx)(r.m.div,{className:(0,a.Z)("flex h-10 w-10 cursor-pointer items-center justify-center rounded-full bg-graphite-100/40 ring-0 ring-inset transition-all active:cursor-grabbing group-active/pin:cursor-grabbing","group-focus-within/pin:ring-2 group-focus-within/pin:ring-graphite-0/40 group-hover/pin:ring-2 group-hover/pin:ring-graphite-0/40","group-aria-checked/pin:ring-2 group-aria-checked/pin:ring-graphite-0/40","group-aria-disabled/pin:pointer-events-none group-aria-disabled/pin:opacity-[.32]"),children:(0,i.jsx)("div",{className:(0,a.Z)("h-4 w-4 rounded-full bg-graphite-0 shadow-hard-sm shadow-graphite-100 transition-all","group-focus-within/pin:h-3 group-focus-within/pin:w-3 group-hover/pin:h-3 group-hover/pin:w-3 group-hover/pin:shadow-soft-xs","group-aria-checked/pin:h-3 group-aria-checked/pin:w-3")})})},Pin.Content=function(e){let{children:t}=e,{buttonStyle:{rounded:n}}=(0,p.m)();return(0,i.jsx)("div",{role:"presentation",onClick:e=>e.stopPropagation(),className:(0,a.Z)("flex min-h-6 w-max max-w-[320px] items-center gap-2 bg-custom-bg px-[14px] py-[8.5px] text-center text-sm text-custom-p ring-1 ring-graphite-10 transition-all","group-focus-within/pin:ring-2 group-focus-within/pin:ring-graphite-100 dark:group-focus-within/pin:ring-graphite-0","shadow-[0px_48px_14px_0px_rgba(0,0,0,0.00),0px_31px_12px_0px_rgba(0,0,0,0.04),0px_17px_10px_0px_rgba(0,0,0,0.12),0px_8px_8px_0px_rgba(0,0,0,0.20),0px_2px_4px_0px_rgba(0,0,0,0.23)]",{"rounded-none":"none"===n,"rounded-lg":"lg"===n,"rounded-[18px]":"full"===n}),children:t})}},72773:function(e,t,n){n.d(t,{r:function(){return u}});var i=n(52322),a=n(5632),r=n(2784),o=n(93536),l=n(57855),s=n(73460),c=n(99283),d=n(62271);let u=r.forwardRef((e,t)=>{let{type:n="button",disabled:r,value:u,disabledLabel:p}=e,h=(0,a.useRouter)(),g=(0,s.f)(),m=(0,l.$)(),f=(0,d.W)(m).data,x=(0,c.B)(m).data;if(!u)return null;let{label:y,action:v,actionValue:b}=u;return(0,i.jsx)(o._,{ref:t,disabled:r,type:"submit"===n?"submit":"button",onClick:"submit"===n?void 0:()=>{if("NAVIGATE_TO_INTERNAL_PAGE"===v){var e,t,n;let i=null!==(n=null===(e=x.find(e=>e.id===b))||void 0===e?void 0:e.slug)&&void 0!==n?n:null===(t=x.find(e=>"HOME"===e.type))||void 0===t?void 0:t.slug;h.push(g?{pathname:i?"/".concat(i):"/"}:{query:{slugs:[f.slug,...i?[i]:[]]}});return}if("OPEN_LINK_IN_NEW_TAB"===v){window.open(["mailto:","tel:","http"].some(e=>b.startsWith(e))?b:"http://".concat(b),"_blank","noopener");return}"SEND_EMAIL"!==v||r||window.open("mailto:".concat(b),"_blank","noopener")},className:"flex items-center justify-center gap-2",children:r&&p?p:y})})},66101:function(e,t,n){n.d(t,{J:function(){return CaptionView}});var i=n(52322),a=n(40489);n(2784);var r=n(49178),o=n(22202),l=n(87036);function CaptionView(e){let{text:t,editor:n,placement:s="outside",mockup:c,...d}=e,u=(0,l.m)().captionStyle,p=c?"simple":u,h=(0,r.Y)();return(0,i.jsxs)("div",{className:(0,a.Z)("custom-p relative z-0","legacy"===p&&{"p-6":"outside"===s,"bg-graphite-100/60 px-4 py-3 text-graphite-0":"inside"===s&&!c},"simple"===p&&{"pt-3":"outside"===s,"px-4 pb-4 pt-16 text-graphite-0":"inside"===s},"filled"===p&&{"px-4 py-3":!c,"bg-graphite-100/60 text-graphite-0":"inside"===s&&!c,"py-3":"outside"===s&&c},"outline"===p&&{"flex justify-start pt-3":"outside"===s,"flex justify-start px-4 pb-4 pt-16 text-graphite-0":"inside"===s}),style:("simple"===p||"outline"===p)&&"inside"===s?{background:"linear-gradient(180deg, transparent 40.1%, rgba(28, 27, 31, 0.15) 100%), linear-gradient(180deg, transparent 33.85%, rgba(28, 27, 31, 0.15) 100%), linear-gradient(180deg, transparent 23.96%, rgba(28, 27, 31, 0.15) 100%), linear-gradient(180deg, transparent 15.1%, rgba(28, 27, 31, 0.15) 100%), linear-gradient(180deg, transparent 7.29%, rgba(28, 27, 31, 0.15) 100%), linear-gradient(180deg, transparent 0%, rgba(28, 27, 31, 0.15) 100%)"}:void 0,children:["simple"!==p&&(0,i.jsx)("div",{className:(0,a.Z)("legacy"===p&&{"absolute inset-0 bg-custom-p opacity-10":"outside"===s&&!c},"filled"===p&&!c&&{"absolute inset-0 bg-custom-button-rgba/10":"outside"===s},"outline"===p&&{"w-[2px]":!0,"bg-custom-accent":"outside"===s,"bg-graphite-0":"inside"===s})}),(0,i.jsx)("div",{onFocus:()=>h.setPassive(!0),onBlur:()=>h.setPassive(!1),onBlurCapture:()=>h.setPassive(!1),className:(0,a.Z)("pointer-events-auto min-w-0 text-sm","outline"===p&&"flex-1 pl-4","inside"===s&&"!text-graphite-0",c&&"text-center"),children:n?(0,i.jsx)(o.j,{skipDefaultClasses:!0,rounded:!0,alignment:"legacy"===p||c?"center":"left",elementType:"paragraph",size:"extra-compact",onDarkBackground:"inside"===s,text:t,placeholder:"Add your caption here",...d}):(0,i.jsx)(i.Fragment,{children:t})})]})}},81654:function(e,t,n){n.d(t,{n:function(){return ImageView}});var i=n(52322),a=n(40489),r=n(75726),o=n(22121),l=n(98988),s=n(66101);function AspectDynamic(e){let{width:t,height:n,children:a}=e;return(0,i.jsx)("div",{className:"relative",style:{paddingBottom:"calc((".concat(n," / ").concat(t,") * 100%)")},children:(0,i.jsx)("div",{className:"absolute inset-0",children:a})})}function MockupContent(e){let{viewBoxWidth:t,viewBoxHeight:n,innerX:a,innerY:r,innerWidth:o,innerHeight:l,children:s}=e;return(0,i.jsx)("div",{className:"absolute inset-0",style:{width:"calc((".concat(o," / ").concat(t,") * 100%)"),height:"calc((".concat(l," / ").concat(n,") * 100%)"),transform:"translate(calc((".concat(a," / ").concat(o,") * 100%), calc((").concat(r," / ").concat(l,") * 100%))")},children:s})}n(2784);var c=n(15878);function Mockup(e){let{children:t,mockup:n,overlay:a}=e;if(!n)return t;let{Top:r,Bottom:o,content:l}=c._[n];return(0,i.jsxs)(AspectDynamic,{width:l.viewBoxWidth,height:l.viewBoxHeight,children:[(0,i.jsx)(o,{}),(0,i.jsx)(MockupContent,{...l,children:t}),(0,i.jsx)(r,{className:"absolute inset-0"}),(0,i.jsx)(MockupContent,{...l,children:a})]})}var d=n(86105),u=n(42181);function ImageWithMockup(e){var t;let{contain:n,captionEnabled:a,className:r,onClick:l,altText:c,onLoadCapture:u,onLoadingComplete:p,overlay:h,mockup:g,...m}=e,{instantImages:f}=(0,d.y)(),x=m.crop?m.crop.src:null!==(t=f[m.src])&&void 0!==t?t:m.src,y=(0,i.jsx)(o.N,{src:x,layout:"fill",objectFit:"cover",onLoadCapture:u,onLoadingComplete:p,alt:c});return(0,i.jsxs)("div",{role:"presentation",className:r,onClick:l,children:[(0,i.jsx)(Mockup,{mockup:g,overlay:h,children:y}),a&&m.caption&&(0,i.jsx)(s.J,{mockup:g,text:m.caption})]})}function ImageView(e){var t,n,c;let{mockup:p,contain:h,captionEnabled:g,className:m,onClick:f,altText:x,blurHash:y,tight:v,overlay:b,...w}=e,{isPdfView:j}=(0,u.Z)(),{instantImages:I}=(0,d.y)(),k=w.crop?w.crop.src:null!==(n=I[w.src])&&void 0!==n?n:w.src;if(p)return(0,i.jsx)(ImageWithMockup,{contain:h,captionEnabled:g,className:m,onClick:f,altText:x,priority:j,mockup:p,overlay:b,...w});let{originalWidth:S,originalHeight:C,preferredSize:N,forceSizes:A,...P}=w;return(0,i.jsxs)("div",{className:(0,a.Z)(v&&g&&"relative"),children:[(0,i.jsx)(o.N,{layout:"responsive",objectFit:h?"contain":"cover",className:m,onClick:f,alt:x,priority:j,placeholder:y?"blur":"empty",blurDataURL:y?(0,r.Ow)(y):void 0,...P,...null!==(c=w.crop)&&void 0!==c?c:{},...null!=A?A:{},src:k},"".concat(y,"-").concat(k)),b,(null===(t=w.pins)||void 0===t?void 0:t.length)!==0&&(0,i.jsx)(l.I,{crop:w.crop,pins:w.pins,originalWidth:S,originalHeight:C,preferredSize:N}),g&&w.caption&&(0,i.jsx)("div",{className:(0,a.Z)("pointer-events-none",v&&"absolute inset-x-0 bottom-0"),children:(0,i.jsx)(s.J,{mockup:p,text:w.caption,placement:v?"inside":"outside"})})]})}},10027:function(e,t,n){n.d(t,{D:function(){return InstagramPostView}});var i=n(52322),a=n(17949),r=n(39097),o=n.n(r),l=n(8768),s=n(52855),c=n(94833),d=n(23095);function InstagramPostTypeIndicator(e){let{media_type:t}=e;return"CAROUSEL_ALBUM"===t?(0,i.jsx)(s.Kq,{"aria-hidden":!0,className:"h-4 w-4 drop-shadow-lg laptop:h-6 laptop:w-6"}):"VIDEO"===t?(0,i.jsx)(s.yK,{"aria-hidden":!0,className:"h-4 w-4 drop-shadow-lg laptop:h-6 laptop:w-6"}):null}function InstagramPostCaption(e){let{caption:t,children:n,placement:r}=e;return t?(0,i.jsx)("div",{className:(0,a.Z)("relative z-20 hidden @tablet:block",{"absolute inset-x-0 bottom-0 text-graphite-0 pt-16 bg-gradient-to-b from-transparent to-[#000a]":"outside"!==r,"opacity-0 transition-all -bottom-4 group-hover/post:opacity-100 group-hover/post:bottom-0":"hover"===r,"bg-graphite-100/5 dark:bg-graphite-0/5 custom-p":"outside"===r}),children:(0,i.jsxs)("div",{className:"flex items-end justify-between gap-6 p-4 pr-12",children:[(0,i.jsx)("p",{className:"whitespace-pre-line break-all text-sm leading-[18.5px]",children:(0,c.$G)(t,125)}),n]})}):null}function InstagramPostView(e){var t;let{post:n,content:{captionPlacement:r,captions:s,openPostsOnInstagram:c}}=e,{viewPost:u}=(0,l.o)();return(0,i.jsxs)("div",{role:"presentation",onClick:()=>u(n),className:"group/post relative w-full shrink-0 cursor-pointer self-start overflow-hidden transition-all",children:[(0,i.jsxs)("div",{className:"relative z-20",children:[(0,i.jsx)("img",{alt:null===(t=n.caption)||void 0===t?void 0:t.split("\n")[0],style:{aspectRatio:"var(--post-aspect-ratio)"},className:"w-full object-cover object-center transition-all",src:"VIDEO"===n.media_type?n.thumbnail_url:n.media_url}),s&&"outside"!==r&&(0,i.jsx)(InstagramPostCaption,{...n,placement:r}),c&&(0,i.jsx)(o(),{href:n.permalink,onClick:e=>e.stopPropagation(),target:"_blank",rel:"noopener noreferer","aria-label":"Open post in a new tab",className:(0,a.Z)("absolute bottom-4 right-4 z-20 hidden shrink-0 text-graphite-0 @tablet:block","hover"===r&&"-bottom-4 opacity-0 transition-all group-hover/post:bottom-4 group-hover/post:opacity-100"),children:(0,i.jsx)(d.IconOpen,{"aria-hidden":!0,className:"h-4 w-4"})})]}),(0,i.jsx)("span",{className:"absolute right-2 top-2 z-20 text-graphite-0",children:(0,i.jsx)(InstagramPostTypeIndicator,{media_type:n.media_type})}),s&&"outside"===r&&(0,i.jsx)(InstagramPostCaption,{...n,placement:r})]})}},13479:function(e,t,n){n.d(t,{k:function(){return ProjectThumbnailView}});var i=n(52322),a=n(40489),r=n(2784),o=n(4288),l=n(84830),s=n(24679),c=n(81654);function ProjectThumbnailView(e){let{thumbnail:t,placeholder:n,aspectRatio:d="square"}=e;return(0,i.jsx)("div",{className:"overflow-hidden",children:(0,i.jsx)("div",{className:"transition-transform duration-300 group-projectpreviewimage-hover:scale-105 motion-reduce:transition-none",children:"string"==typeof t?(0,i.jsx)("div",{className:(0,a.Z)("flex h-full w-full items-center justify-center bg-custom-accent bg-gradient-to-tl from-graphite-0/0 to-graphite-0/50",{"aspect-[4/3]":"horizontal"===d,"aspect-[1/1]":"square"===d,"aspect-[3/4]":"vertical"===d}),children:r.createElement(o.K.find(e=>e.name===t).component,{className:"h-full w-full"})}):(0,i.jsx)(c.n,{placeholder:n,...(0,s.X)(t),crop:(0,l.ET)(t,d)})})})}},46468:function(e,t,n){n.d(t,{E:function(){return l}});var i=n(52322),a=n(40489),r=n(2784),o=n(42374);function SocialButton(e){var t;let{social:n}=e,a=null===(t=o.JU[n.name])||void 0===t?void 0:t.icon;return a?(0,i.jsx)("a",{href:n.link,"aria-label":"Open ".concat(n.link," in a new tab"),target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(a,{"aria-hidden":!0,className:"h-6 cursor-pointer text-custom-button hover:opacity-60"})}):null}let l=r.forwardRef((e,t)=>{let{socials:n,alignment:r}=e;return(0,i.jsx)("div",{ref:t,className:(0,a.Z)("flex min-w-[6rem] items-center space-x-3",{"justify-center":"center"===r,"justify-start":"left"===r,"justify-end":"right"===r}),children:n.map(e=>(0,i.jsx)(SocialButton,{social:e},e.name))})})},94309:function(e,t,n){n.d(t,{ID:function(){return s},iV:function(){return TipTapView},oG:function(){return l}});var i=n(52322),a=n(40489),r=n(2784),o=n(70349);let l="space-y-text-block",s={paragraph:"custom-p",link:"underline underline-thickness-md underline-offset-md text-custom-button",table:"table-editor table-fixed border-separate border-spacing-[0.625rem] min-w-[calc(100%+1.25rem)]",bulletList:"pl-5 space-y-1 list-disc",orderedList:"pl-5 space-y-1 list-decimal",listItem:"marker:text-custom-p",tableCell:"relative w-1/2 max-w-[50%] min-w-[50%] break-word rounded-[4px] border border-transparent py-[5px] px-[7px] align-top group-focus-within:border group-focus-within:border-custom-bg-24 selected:bg-crimson-40",heading:{1:"custom-h1",2:"custom-h2",3:"custom-h3",4:"custom-h3"},placeholder:"first:before:absolute first:before:inset-0 first:before:overflow-hidden first:before:whitespace-nowrap first:before:text-custom-p/50 first:before:content-[attr(data-placeholder)] cursor-text",highlight:"rounded-sm px-1 py-0.5 bg-custom-highlight text-inherit",text:"",doc:"",blockquote:"border-l border-l-custom-p py-2.5 pl-6"};function renderElement(e){var t,n,r,l;let{element:c,content:d,options:{lineClamp:u,onDarkBackground:p,skipDefaultClasses:h}}=e,g=d;switch(u&&(g=(0,i.jsx)("div",{className:(0,a.Z)({"line-clamp-1":1===u,"line-clamp-2":2===u,"line-clamp-3":3===u}),children:g})),c.marks&&(null===(t=c.marks)||void 0===t?void 0:t.length)>0&&c.marks.forEach(e=>{if("link"===e.type){var t,n;g=(0,i.jsx)("a",{href:null===(t=e.attrs)||void 0===t?void 0:t.href,target:null===(n=e.attrs)||void 0===n?void 0:n.target,rel:"nofollow noreferrer",className:s.link,children:g})}"bold"===e.type&&(g=(0,i.jsx)("b",{children:g})),"italic"===e.type&&(g=(0,i.jsx)("i",{children:g})),"superscript"===e.type&&(g=(0,i.jsx)("sup",{children:g})),"highlight"===e.type&&(g=(0,i.jsx)("mark",{className:s.highlight,children:g}))}),c.type){case"paragraph":return(0,i.jsx)("p",{className:(0,a.Z)("relative min-h-[1.5rem]",h?"":s.paragraph,{"text-graphite-0":p}),children:g});case"text":return(0,i.jsx)("span",{children:g});case"table":return(0,i.jsx)("table",{className:s.table,children:(0,i.jsx)("tbody",{children:d})});case"tableRow":return(0,i.jsx)("tr",{children:d});case"tableCell":return(0,i.jsx)("td",{className:s.tableCell,children:d});case"bulletList":return(0,i.jsx)("ul",{className:s.bulletList,children:d});case"orderedList":return(0,i.jsx)("ol",{className:s.orderedList,children:d});case"listItem":return(0,i.jsx)("li",{className:s.listItem,children:d});case"heading":if(null===(n=c.attrs)||void 0===n?void 0:n.level){let{level:e}=c.attrs,t="h".concat(e);return(0,i.jsx)(t,{className:"relative",children:(0,i.jsx)("span",{className:(0,a.Z)(h?"":s.heading[e],{"text-graphite-0":p}),children:d})})}return(0,i.jsx)("div",{children:g});case"hardBreak":return(0,i.jsx)("br",{});case"blockquote":return(0,i.jsx)("blockquote",{className:s.blockquote,children:g});case"divider":return(0,i.jsx)("div",{className:"grid w-full grid-cols-4 gap-x-6 @tablet:grid-cols-6 @laptop:gap-x-12",children:(0,i.jsx)("div",{className:(0,o.R)(null===(r=c.attrs)||void 0===r?void 0:r.variant),children:(null===(l=c.attrs)||void 0===l?void 0:l.variant)==="dotted"&&(0,i.jsx)(i.Fragment,{children:[...Array.from({length:3}).keys()].map(e=>(0,i.jsx)("div",{className:"h-1.5 w-1.5 rounded-full bg-custom-accent"},e))})})});default:return(0,i.jsx)(i.Fragment,{children:d})}}let TipTapView=e=>{let{textNodes:t,...n}=e;if(!t)return null;let{alignment:o,payload:s}=t;return"string"==typeof s?(0,i.jsx)("div",{className:(0,a.Z)(l,{"text-center":"center"===o,"text-left":"left"===o,"text-right":"right"===o}),dangerouslySetInnerHTML:{__html:s}}):(0,i.jsx)("div",{className:(0,a.Z)(l,{"text-center":"center"===o,"text-left":"left"===o,"text-right":"right"===o}),children:null!=s&&function renderNodes(e,t){return e.map((e,n)=>(0,i.jsx)(r.Fragment,{children:e.content?renderElement({element:e,content:renderNodes(e.content,t),options:t}):renderElement({element:e,content:e.text,options:t})},n))}(s.content,n)})}},57897:function(e,t,n){n.d(t,{P:function(){return TiptapLineView}});var i=n(52322),a=n(40489),r=n(94309);let o={heading:{1:"h1",2:"h2",3:"h3",4:"h3"},paragraph:"p",text:"span",doc:"div"};function TiptapLineView(e){var t,n;let{element:l,text:s,skipDefaultClasses:c}=e,d="heading"===l.type?o.heading[(null===(t=l.attrs)||void 0===t?void 0:t.level)||2]:o[l.type||"paragraph"];return(0,i.jsx)(d,{className:(0,a.Z)(!c&&("heading"===l.type?r.ID.heading[(null===(n=l.attrs)||void 0===n?void 0:n.level)||2]:r.ID[l.type])),children:s})}},38261:function(e,t,n){n.d(t,{L:function(){return VideoView}});var i=n(52322),a=n(25237),r=n.n(a);n(2784);var o=n(11947),l=n.n(o),s=n(72682),c=n.n(s),d=n(24883),u=n(66101);let p={controls:!0,width:"100%",height:"100%",playsinline:!0},h=r()(async()=>n.e(4372).then(n.bind(n,84372)),{loadableGenerated:{webpack:()=>[84372]},ssr:!1});function VideoView(e){let{preferredSize:t,captionEnabled:n,caption:a,...r}=e;return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"aspect-h-9 aspect-w-16",children:c().canPlay(r.url)?(0,i.jsx)(h,{...p,...r,config:{youtube:{playerVars:{modestbranding:1,rel:0}}}}):l().canPlay(r.url)?(0,i.jsx)(h,{...p,...r,config:{vimeo:{playerOptions:{responsive:!0}}}}):(0,i.jsx)(d.Z,{"aria-hidden":!0})}),n&&a&&(0,i.jsx)(u.J,{text:a})]})}},90979:function(e,t,n){n.d(t,{i:function(){return FormModuleLayout}});var i=n(52322),a=n(40489),r=n(27570),o=n(2784),l=n(605),s=n(87036);let c=o.forwardRef(function(e,t){let{rounded:n,variant:a}=(0,s.m)().inputStyle;return(0,i.jsx)(l.L,{...e,ref:t,rounded:n,variant:a,matchUserSiteColors:!0})});function FormModuleLayout(e){var t,n,o;let{Button:l,onSubmit:s,form:d,editor:u=!1}=e;return(0,i.jsx)("div",{children:(0,i.jsxs)("form",{noValidate:!0,onSubmit:s,className:"space-y-8",children:[(0,i.jsxs)("div",{className:(0,a.Z)("space-y-8",u&&"pointer-events-none"),children:[(0,i.jsx)(c,{...null==d?void 0:d.register("name"),type:"text",label:"Name*",placeholder:"Your Name",disabled:u,readOnly:u,error:null==d?void 0:null===(t=d.formState.errors.name)||void 0===t?void 0:t.message}),(0,i.jsx)(c,{...null==d?void 0:d.register("email"),type:"email",label:"Email*",placeholder:"name@email.com",disabled:u,readOnly:u,error:null==d?void 0:null===(n=d.formState.errors.email)||void 0===n?void 0:n.message}),(0,i.jsx)(c,{...null==d?void 0:d.register("message"),size:"2xl",label:"Message*",inputAs:r.K,placeholder:"Start typing your message here…",disabled:u,readOnly:u,error:null==d?void 0:null===(o=d.formState.errors.message)||void 0===o?void 0:o.message})]}),l]})})}},2245:function(e,t,n){n.d(t,{k:function(){return QuoteModuleLayout}});var i=n(52322),a=n(40489);function QuoteModuleLayout(e){let{Content:t,Citation:n,alignment:r="left"}=e;return(0,i.jsxs)("div",{children:[(0,i.jsx)("h1",{className:(0,a.Z)("custom-p text-12xl",{"text-center":"center"===r,"text-left":"left"===r,"text-right":"right"===r}),style:{fontFamily:"var(--h1-family)"},children:"“"}),(0,i.jsxs)("div",{className:"-mt-6 space-y-6",children:[t,n]})]})}},41348:function(e,t,n){n.d(t,{H:function(){return TextModuleView}});var i=n(52322),a=n(5632),r=n(2784),o=n(87611),l=n(72773),s=n(46468),c=n(42181);function ExtensionView(e){let{module:t,alignment:n}=e,d=(0,a.useRouter)(),{hideButtons:u}=(0,c.Z)(),{hideButtons:p}=d.query,h=(0,r.useMemo)(()=>d.asPath.startsWith("/pdf/")?"true"!==p:void 0===u||!u,[p,u,d.asPath]);return t.extension&&h?(0,i.jsx)(o.n,{alignment:n,children:Array.isArray(t.extension)?(0,i.jsx)(s.E,{alignment:n,socials:t.extension}):(0,i.jsx)(l.r,{value:t.extension})}):null}var d=n(94309);function TextModuleView(e){var t;let{module:n,section:a,forceAlignment:r}=e,o=null!=r?r:null===(t=n.content)||void 0===t?void 0:t.alignment;return(0,i.jsxs)("div",{className:"relative flex flex-col items-stretch space-y-8",children:[(0,i.jsx)(d.iV,{textNodes:{...n.content,alignment:o}}),(0,i.jsx)(ExtensionView,{section:a,module:n,alignment:o})]})}},83538:function(e,t,n){n.d(t,{M:function(){return CVLayout}});var i=n(52322);function CVLayout(e){let{children:t}=e;return(0,i.jsx)("div",{className:"grid grid-cols-1 gap-x-12 gap-y-16 @laptop:grid-cols-2 @laptop:gap-y-18",children:t})}},1364:function(e,t,n){n.d(t,{N:function(){return InstagramFeedLayout}});var i=n(52322),a=n(17949),r=n(2784),o=n(47565),l=n(94516),s=n(19855);function Masonry(e){let{children:t}=e,n=(0,s.C)({mobile:1,tablet:2,laptop:3}),a=(0,o.U6)(r.Children.toArray(t),n);return(0,i.jsx)(l.J,{newGrid:!0,className:"py-12",children:(0,i.jsx)("div",{className:"relative col-span-full flex w-full gap-6 @tablet:col-span-6 @tablet:col-start-2 @laptop:col-span-12 @laptop:col-start-2",children:a.map(e=>(0,i.jsx)("div",{className:"flex flex-1 flex-col items-start justify-start gap-6",children:e}))})})}function InstagramFeedLayout(e){let{layout:{shape:t,rows:n},children:o}=e,s=r.Children.toArray(o).slice(0,3*n);return"original"===t?(0,i.jsx)(Masonry,{children:s}):(0,i.jsx)(l.J,{newGrid:!0,className:(0,a.Z)("py-6"),children:(0,i.jsx)("div",{style:{"--post-aspect-ratio":{vertical:"4/5",horizontal:"5/4",square:"1/1"}[t]},className:"col-span-full grid grid-cols-3 gap-px @tablet:col-span-6 @tablet:col-start-2 @tablet:gap-1 @laptop:col-span-12 @laptop:col-start-2 @laptop:gap-6",children:s})})}},69944:function(e,t,n){n.d(t,{FA:function(){return LogoWallLayout},Jr:function(){return LogoWallItemLayout},f2:function(){return imagePositions}});var i=n(52322),a=n(17949),r=n(40489),o=n(94516);let singleRowImagePosition=e=>Array.from({length:e},(t,n)=>n*(100/(e-1))),twoColumnImagePosition=e=>Array.from({length:e},()=>50);function imagePositions(e){return{laptop:singleRowImagePosition(e),tablet:5===e?[0,50,100,50,50]:singleRowImagePosition(e),mobile:e%2==0?twoColumnImagePosition(e):[...twoColumnImagePosition(e-1),50]}}function LogoWallLayout(e){let{children:t,logoCount:n,className:l}=e;return(0,i.jsx)(o.J,{newGrid:!0,children:(0,i.jsx)("section",{className:(0,r.Z)("col-span-full py-12 @tablet:col-span-6 @tablet:col-start-2 @tablet:py-14 @laptop:col-span-12 @laptop:col-start-2 @laptop:py-18"),children:(0,i.jsx)("div",{className:(0,a.Z)("grid justify-between justify-items-center gap-6 text-center bg-custom-bg",{"grid-cols-4 @tablet:grid-cols-6 @laptop:grid-cols-5":5===n,"grid-cols-2 @tablet:grid-cols-4 @laptop:grid-cols-4":4===n,"grid-cols-4 @tablet:grid-cols-3 @laptop:grid-cols-3":3===n},l),children:t})})})}function LogoWallItemLayout(e){let{children:t,logoCount:n,index:r,...o}=e;return(0,i.jsx)("div",{className:(0,a.Z)("relative w-full flex-1",5===n&&["col-span-2 @laptop:col-span-1",{"@tablet:col-span-2":r>2,"@tablet:col-start-2":3===r,"col-start-2":4===r}],4===n&&["@tablet:col-span-1"],3===n&&["col-span-2 @tablet:col-span-1 @laptop:col-span-1",{"col-start-2 @tablet:col-start-3 @laptop:col-start-3":2===r}],o.className),...o,children:t})}},30495:function(e,t,n){n.d(t,{T:function(){return ProjectGridLayout}});var i=n(52322),a=n(40489);function ProjectGridLayout(e){let{spacing:t,children:n,sizeOfThumbnails:r,labelPlacement:o}=e;return(0,i.jsx)("div",{className:(0,a.Z)("relative grid grid-cols-1","large"===r&&"@tablet:grid-cols-2","medium"===r&&"@tablet:grid-cols-2 @laptop:grid-cols-3","small"===r&&"@tablet:grid-cols-2 @laptop:grid-cols-4",{"col-span-full gap-6":"sm"===t,"gap-6 @tablet:gap-12":"sm"!==t,"gap-y-12":"sm"===t&&"outside"===o,"gap-y-18":"sm"!==t&&"outside"===o}),children:n})}},90878:function(e,t,n){n.d(t,{Z:function(){return ProjectMasonryLayout}});var i=n(52322),a=n(40489),r=n(93556),o=n(2784),l=n(47565),s=n(7320),c=n(84834),d=n(75392);function ProjectMasonryLayout(e){let{spacing:t,labelPlacement:n,children:u,sizeOfThumbnails:p,editable:h=!1}=e,g={"space-y-6":"inside"===n||h,"space-y-9":"sm"===t&&"outside"===n,"space-y-12":"outside"===n||"sm"!==t&&!h,"space-y-18":!h&&"sm"!==t&&"outside"===n},m=(0,c.G)("not screen, (min-width: 640px) and (max-width: 1023px)"),f=(0,c.G)("not screen, (min-width: 1024px)"),x=(0,d.D)(u),y=o.useMemo(()=>{var e;return null!==(e=o.Children.map(u,(e,t)=>0===t&&Array.isArray(u)&&Array.isArray(x)&&u[0].length>x[0].length?(0,i.jsx)(r.m.div,{initial:{opacity:0,y:"10%"},animate:{opacity:1,y:0},transition:{duration:.3,delay:.05},children:e}):(0,i.jsx)("div",{children:e})))&&void 0!==e?e:[]},[u,x]),v=y.filter((e,t)=>t%s.r[p]==0),b=y.filter((e,t)=>t%s.r[p]==1),w=y.filter((e,t)=>t%s.r[p]==2),j=y.filter((e,t)=>t%s.r[p]==3),[I,k]=(0,l.hv)(y);return(0,i.jsxs)(i.Fragment,{children:[f&&(0,i.jsxs)("div",{className:(0,a.Z)("relative grid",{"grid-cols-2":"large"===p,"grid-cols-3":"medium"===p,"grid-cols-4":"small"===p,"col-span-full gap-6":"sm"===t,"gap-12":"sm"!==t||h}),children:[(0,i.jsx)("div",{className:(0,a.Z)(g),children:v}),(0,i.jsx)("div",{className:(0,a.Z)(g),children:b}),("medium"===p||"small"===p)&&(0,i.jsx)("div",{className:(0,a.Z)(g),children:w}),"small"===p&&(0,i.jsx)("div",{className:(0,a.Z)(g),children:j})]}),m&&(0,i.jsx)("div",{className:(0,a.Z)("grid",{"space-y-12":"sm"!==t,"space-y-6":"sm"===t}),children:(0,i.jsxs)("div",{className:(0,a.Z)("relative grid grid-cols-2",{"gap-6":"sm"===t,"gap-12":"sm"!==t||h}),children:[(0,i.jsx)("div",{className:(0,a.Z)(g),children:I}),(0,i.jsx)("div",{className:(0,a.Z)(g),children:k})]})}),!1===f&&!1===m&&(0,i.jsx)("div",{className:(0,a.Z)("inside"===n?"space-y-6":"space-y-12"),children:y})]})}},78817:function(e,t,n){n.d(t,{U:function(){return ProjectOffsetLayout}});var i=n(52322),a=n(40489),r=n(93556),o=n(2784),l=n(47565),s=n(84834),c=n(75392);function ProjectOffsetLayout(e){let{labelPlacement:t,children:n,editable:d=!1}=e,u={"space-y-6 tablet:space-y-24 laptop:space-y-[276px]":"inside"===t||d,"space-y-12 tablet:space-y-30 laptop:space-y-[300px]":"outside"===t||!d},p=(0,s.G)("not screen, (min-width: 640px) and (max-width: 1023px)"),h=(0,s.G)("not screen, (min-width: 1024px)"),g=(0,c.D)(n),m=o.useMemo(()=>{var e;return null!==(e=o.Children.map(n,(e,t)=>0===t&&Array.isArray(n)&&Array.isArray(g)&&n[0].length>g[0].length?(0,i.jsx)(r.m.div,{initial:{opacity:0,y:"10%"},animate:{opacity:1,y:0},transition:{duration:.3,delay:.05},children:e}):(0,i.jsx)("div",{children:e})))&&void 0!==e?e:[]},[n,g]),[f,x]=(0,l.hv)(m);return h?(0,i.jsxs)("div",{className:(0,a.Z)("relative grid grid-cols-12 gap-12"),children:[(0,i.jsx)("div",{className:(0,a.Z)(u,"col-span-5"),children:f}),(0,i.jsx)("div",{className:(0,a.Z)(u,"col-span-5 col-start-8 pt-55.5"),children:x})]}):p?(0,i.jsx)("div",{className:(0,a.Z)("grid space-y-12"),children:(0,i.jsxs)("div",{className:(0,a.Z)("relative grid grid-cols-12 gap-8"),children:[(0,i.jsx)("div",{className:(0,a.Z)(u,"col-span-5 "),children:f}),(0,i.jsx)("div",{className:(0,a.Z)(u,"col-span-5 col-start-8 pt-18"),children:x})]})}):(0,i.jsx)("div",{className:(0,a.Z)("inside"===t?"space-y-6":"space-y-12"),children:m})}},55265:function(e,t,n){n.d(t,{B:function(){return servicesImageProps},_:function(){return ServicesLayout}});var i=n(52322),a=n(17949),r=n(40489),o=n(81811);function servicesImageProps(e){return{...e,priority:!0,width:e.originalWidth,height:e.originalHeight}}function ServicesLayout(e){let{children:t,columnCount:n,className:l,showTitle:s}=e;return(0,i.jsx)(o.r,{className:(0,r.Z)(s&&"pb-12 pt-2 @tablet:pb-14 @tablet:pt-4 @laptop:pb-18 @laptop:pt-6"),children:(0,i.jsx)("div",{className:"grid grid-cols-1",children:(0,i.jsx)("div",{className:"pointer-events-auto col-span-1 col-start-1 row-span-1 row-start-1",children:(0,i.jsx)("div",{className:(0,a.Z)("z-10 -mx-6 grid grid-cols-1",{"tablet:grid-cols-2 laptop:grid-cols-2":2===n,"tablet:grid-cols-1 laptop:grid-cols-3":3===n,"tablet:grid-cols-2 laptop:grid-cols-4":4===n},l),children:t})})})})}},54626:function(e,t,n){n.d(t,{I:function(){return SmartSectionLayout}});var i=n(52322),a=n(17949),r=n(40489),o=n(2784),l=n(43569),s=n(94516),c=n(50687),d=n(82475),u=n(44655);function calculateDoubleModuleLayout(e,t){let n=[{span:"@laptop:col-span-6",start:"@laptop:col-start-2"},{span:"@laptop:col-span-6",start:"@laptop:col-start-8"}],i=[{span:"@laptop:col-span-6",start:"@laptop:col-start-2"},{span:"@laptop:col-span-5",start:"@laptop:col-start-9"}],a=[{span:"@laptop:col-span-5",start:"@laptop:col-start-2"},{span:"@laptop:col-span-6",start:"@laptop:col-start-8"}],r=[{span:"@laptop:col-span-3",start:"@laptop:col-start-2"},{span:"@laptop:col-span-8",start:"@laptop:col-start-6"}];switch(e.type){case"VIDEO":case"IMAGE":switch(t.type){case"FORM":if("sm"===e.preferredSize)return a;return i;case"QUOTE":case"TEXT":if("lg"===e.preferredSize)return[{span:"@laptop:col-span-8",start:"@laptop:col-start-2"},{span:"@laptop:col-span-3",start:"@laptop:col-start-11"}];if("sm"===e.preferredSize)return a;return i;default:return n}case"FORM":switch(t.type){case"IMAGE":if("sm"===t.preferredSize)return i;return a;case"QUOTE":return i;default:return a}case"QUOTE":switch(t.type){case"TEXT":return i;case"QUOTE":default:return n;case"IMAGE":case"VIDEO":case"FORM":if("FORM"!==t.type){if("lg"===t.preferredSize)return r;if("sm"===t.preferredSize)return i}return a}case"TEXT":switch(t.type){case"TEXT":default:return n;case"QUOTE":return a;case"IMAGE":case"VIDEO":case"FORM":if("FORM"!==t.type){if("lg"===t.preferredSize)return r;if("sm"===t.preferredSize)return i}return a}default:return n}}function SmartSectionLayout(e){var t,n;let{section:p,ModuleComponent:h,editor:g}=e,m=(0,c.I)(),f=(0,u.q)(m).data,{mutate:x}=(0,d.n)(),[y,v]=(0,o.useState)([]),{layout:{left:b,right:w},alignment:j}=function(e){let t=(0,c.I)(),n=(0,u.q)(t).data,[i,a]=e.modules,o=a?e.alignment.vertical:e.alignment.horizontal,[l,s]=a?calculateDoubleModuleLayout(i,a):[function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HOME",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left";switch(e.type){case"FORM":return{start:(0,r.Z)("@tablet:col-start-2",{"@laptop:col-start-2":"left"===n,"@laptop:col-start-5":"center"===n,"@laptop:col-start-8":"right"===n}),span:"@tablet:col-span-6 @laptop:col-span-6"};case"IMAGE":case"VIDEO":{let i="lg"===e.preferredSize,a=e.preferredSize;if("BLOG_POST"===t)return{start:(0,r.Z)({"@tablet:col-start-1 @laptop:col-start-2":"lg"===a,"@tablet:col-start-2 @laptop:col-start-4":"md"===a,"@laptop:col-start-5":"sm"===a}),span:(0,r.Z)("col-span-full",{"@tablet:col-span-full @laptop:col-span-12":"lg"===a,"@tablet:col-span-6 @laptop:col-span-8":"md"===a,"@laptop:col-span-6":"sm"===a})};return{start:(0,r.Z)(i?"@tablet:col-start-1 @laptop:col-start-2":"@laptop:col-start-2",!i&&{"@laptop:col-start-5":"center"===n,"@laptop:col-start-8":"right"===n}),span:(0,r.Z)("@tablet:col-span-6",i&&"@tablet:col-span-8 @laptop:col-span-12")}}default:return{start:(0,r.Z)("@laptop:col-start-2",{"@laptop:col-start-5":"center"===n,"@laptop:col-start-8":"right"===n}),span:"@laptop:col-span-6"}}}(i,n.type,o)],d={classes:l,module:e.modules[0]},p=a?{classes:s,module:e.modules[1]}:void 0;return{layout:{left:d,right:p},alignment:o}}(p),I=(0,r.Z)([null===(t=y[1])||void 0===t?void 0:t.layout.opposing.span,null===(n=y[1])||void 0===n?void 0:n.layout.opposing.start]);return(0,i.jsx)(l.bt.Root,{method:"swap",disabled:!g,items:p.modules,onDragStart:e=>{let{active:t}=e;p.modules.length>1&&v(function(e,t){let[n,i]=e,a=[n,i].findIndex(e=>e.id===t),r=[[n,i],[i,n]].map(e=>{let n=calculateDoubleModuleLayout(...e),i=e.findIndex(e=>e.id===t),r=n[i],o=n[1-i];return{id:"dz-".concat(a!==i?"swap":"current"),layout:{dragging:r,opposing:o}}});return r}(p.modules,t.id))},onDragEnd:e=>{let{over:t}=e,n=null==t?void 0:t.id.toString().replace("dz-","");"swap"===n&&x({...p,modules:p.modules.toReversed()}),v([])},children:(0,i.jsxs)(s.J,{newGrid:!0,className:(0,r.Z)("space-y-12 @laptop:space-y-0","BLOG_POST"===f.type?"py-6 @tablet:py-8 @laptop:py-8":"py-12",{"items-start":"top"===j,"items-center":"middle"===j,"items-end":"bottom"===j}),children:[y.map(e=>(0,i.jsx)(l.bt.Dropzone,{id:e.id,data:e,className:(0,a.Z)("row-start-1",e.layout.dragging.start,e.layout.dragging.span)},e.id)),(0,i.jsx)(l.bt.Item,{id:b.module.id,disabled:!w,overClassname:I,className:(0,r.Z)("col-span-full @tablet:col-span-6 @tablet:col-start-2 @laptop:row-start-1",b.classes.start,b.classes.span),children:(0,i.jsx)(h,{module:b.module,section:p,movable:w?"right":void 0})},b.module.id),w&&(0,i.jsx)(l.bt.Item,{id:w.module.id,className:(0,r.Z)("col-span-full @tablet:col-span-6 @tablet:col-start-2 @laptop:row-start-1",w.classes.start,w.classes.span),overClassname:I,children:(0,i.jsx)(h,{module:w.module,section:p,movable:"left"})},w.module.id)]})})}},29301:function(e,t,n){n.d(t,{p:function(){return SubheadingLayout}});var i=n(52322),a=n(40489),r=n(34911);n(2784);var o=n(81885),l=n(87036);function SubheadingLayoutContentWrapper(e){var t,n,a;let{section:r,children:s,className:c}=e,d=null===(t=(0,l.m)().alignmentLock)||void 0===t?void 0:t.title,u=null!==(a=null!=d?d:null===(n=r.textModule.content)||void 0===n?void 0:n.alignment)&&void 0!==a?a:"left";return(0,i.jsx)(o.e,{className:c,alignment:u,children:s})}function FillSubheadingLayout(e){let{children:t,editor:n,...r}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-custom-button-rgba/10"}),(0,i.jsx)(SubheadingLayoutContentWrapper,{...r,children:(0,i.jsx)("div",{className:(0,a.Z)(!n&&"pb-4 @tablet:pb-10 @laptop:pb-12"),children:t})})]})}function FullLineSubheadingLayout(e){let{children:t,editor:n,templateOptions:r,...o}=e;return(0,i.jsxs)(i.Fragment,{children:[(null==r?void 0:r.decorationPlacement)==="top"&&(0,i.jsx)("div",{className:(0,a.Z)("col-span-full h-[2px] bg-custom-accent @tablet:col-span-6 @tablet:col-start-2 @laptop:col-span-12 @laptop:col-start-2",!n&&"-mt-8")}),(0,i.jsx)(SubheadingLayoutContentWrapper,{...o,children:(0,i.jsx)("div",{className:(0,a.Z)((null==r?void 0:r.decorationPlacement)==="top"&&n?"pt-2":"-mt-8 pt-8"),children:t})}),(null==r?void 0:r.decorationPlacement)==="bottom"&&(0,i.jsx)("div",{className:(0,a.Z)(!n&&"pt-6","col-span-full @tablet:col-span-6 @tablet:col-start-2 @laptop:col-span-12 @laptop:col-start-2"),children:(0,i.jsx)("div",{className:"-mb-8 h-px bg-custom-accent"})})]})}function GradientSubheadingLayout(e){let{children:t,templateOptions:n,...a}=e;return(0,i.jsxs)(i.Fragment,{children:[(null==n?void 0:n.decorationPlacement)==="top"&&(0,i.jsx)("div",{className:"absolute inset-x-0 top-18 h-[130px] bg-gradient-to-b from-custom-button-rgba/10 to-custom-button-rgba/0 @tablet:top-[5.375rem] @tablet:h-[107px] @laptop:top-[6.5rem] @laptop:h-32"}),(null==n?void 0:n.decorationPlacement)==="bottom"&&(0,i.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-full bg-gradient-to-b from-custom-button-rgba/0 to-custom-button-rgba/10 @tablet:h-44 @laptop:h-58"}),(0,i.jsx)(SubheadingLayoutContentWrapper,{...a,children:t})]})}var s=n(81654);function LegacySubheadingLayout(e){let{children:t,section:n,...a}=e;return(0,i.jsxs)(i.Fragment,{children:[n.backgroundImage&&(0,i.jsx)(s.n,{...n.backgroundImage,alt:"",layout:"fill"}),(0,i.jsx)(SubheadingLayoutContentWrapper,{...a,section:n,children:t})]})}function ShortLineSubheadingLayout(e){let{children:t,editor:n,templateOptions:r,...o}=e;return(0,i.jsxs)(i.Fragment,{children:[(null==r?void 0:r.decorationPlacement)==="top"&&(0,i.jsx)("div",{className:(0,a.Z)("w-[192px] pb-6 @tablet:col-start-2 @tablet:pb-8 @laptop:pb-12"),children:(0,i.jsx)("div",{className:"h-px w-full bg-custom-accent"})}),(0,i.jsx)(SubheadingLayoutContentWrapper,{...o,children:t})]})}function SimpleSubheadingLayout(e){let{children:t,...n}=e;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(SubheadingLayoutContentWrapper,{...n,children:t})})}var c=n(94516),d=n(15228);function SubheadingLayout(e){let{preview:{template:t},title:n}=(0,l.m)(),o=t.includes("LEGACY");return(0,i.jsx)(c.J,{newGrid:!0,className:(0,a.Z)(o?"py-12 @tablet:py-18 @laptop:py-24":[e.editor?"@laptop:pb-14 @laptop:pt-30":[d.Ab||["LEAFLET"].includes(t)?"pb-4 pt-24 @tablet:pb-6 @tablet:pt-30 @laptop:pb-8 @laptop:pt-36":"pb-8 pt-12 @tablet:pt-18 @laptop:pb-12 @laptop:pt-24"]]),children:function(e,t){switch(e){case"SIMPLE":return(0,i.jsx)(SimpleSubheadingLayout,{...t});case"SHORT_LINE":return(0,i.jsx)(ShortLineSubheadingLayout,{...t});case"FULL_LINE":return(0,i.jsx)(FullLineSubheadingLayout,{...t});case"GRADIENT":return(0,i.jsx)(GradientSubheadingLayout,{...t});case"FILL":return(0,i.jsx)(FillSubheadingLayout,{...t});case"LEGACY":return(0,i.jsx)(LegacySubheadingLayout,{...t});default:return(0,r.pv)(e)}}(n.variant,{...e,templateOptions:n})})}},74121:function(e,t,n){n.d(t,{X:function(){return s}});var i=n(52322),a=n(2784),r=n(37053),o=n(46878),l=n(94516);let s=a.memo(e=>(0,i.jsx)(l.J,{newGrid:!0,className:"py-12 @tablet:py-18",children:(0,i.jsx)("div",{className:"col-span-full space-y-12 @tablet:col-span-6 @tablet:col-start-2 @laptop:col-span-8 @laptop:col-start-4",children:(0,i.jsx)(r.x,{blocks:e.blocks})})}),o.AL)},40195:function(e,t,n){n.d(t,{J:function(){return T}});var i=n(52322),a=n(40489),r=n(5632),o=n(2784),l=n(75443),s=n(46878),c=n(81565),d=n(20237),u=n(39097),p=n.n(u),h=n(10330),g=n(24754),m=n(27421),f=n(81859),x=n(13479),y=n(57855),v=n(73460),b=n(62271);function BlogPostPreviewView(e){var t;let{blogPostPage:n,parentSection:{dateFormat:a,openPostButtonLabel:r,showOpenPostButton:o=!0,listStyle:l="normal",categories:s=[],layout:c,aspectRatioOfThumbnails:d},onCategoryClick:u}=e,w=(0,v.f)(),j=(0,y.$)(),I=(0,b.W)(j).data;if(!n)return null;let k=w?"/".concat(n.slug):{query:{slugs:[I.slug,n.slug]}},S=null!==(t=null==s?void 0:s.filter(e=>{let{slug:t}=e;return n.categories.includes(t)}))&&void 0!==t?t:[];return(0,i.jsx)(f.J,{id:n.id,listStyle:l,layout:c,image:(0,i.jsx)(p(),{href:k,children:(0,i.jsx)(x.k,{thumbnail:null==n?void 0:n.thumbnail,aspectRatio:d})}),date:(0,i.jsx)("p",{className:"custom-p text-sm",children:(0,h.X)(n.blogPostPublishUnixTimestamp,a)}),title:(0,i.jsx)(p(),{href:k,children:(0,i.jsx)("h2",{className:"break-word custom-h2",children:n.title})}),description:(0,i.jsx)("p",{className:"break-word custom-p",children:n.description}),categories:S.length>0?S.map(e=>(0,i.jsx)(g.U,{onClick:()=>null==u?void 0:u(e.slug),children:e.name},e.slug)):null,openPostButton:o?(0,i.jsx)(p(),{href:k,passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(m.h,{as:"a",children:r})}):null})}var w=n(94309),j=n(60155),I=n(81885),k=n(94516),S=n(11289),C=n(46958),N=n(1870),A=n(44655),P=n(58282);let T=o.memo(function(e){var t,n;let{id:s,showMoreButtonLabel:u,__pages:p,title:h,showTitle:g,showCategories:m,categories:f=[],pageId:x,layout:y}=e,T=(0,v.f)(),E=(0,r.useRouter)(),L=function(e){let[t]=(0,P.k)(),{data:n}=(0,A.q)(e),{data:i}=(0,b.W)(null==n?void 0:n.siteId);return!!t&&!!n&&!!i&&t.user.id===i.authorId}(x),O=o.useRef(null),_="string"==typeof E.query.categories?E.query.categories.split(",").filter(Boolean):[],D=(0,N.z)(s),M=null!=f?f:[],G=(null==p?void 0:p.length)?p:null!==(t=null==D?void 0:D.filter(e=>"published"===(0,l.D)(e)).sort((e,t)=>t.blogPostPublishUnixTimestamp-e.blogPostPublishUnixTimestamp))&&void 0!==t?t:[],toggleCategory=e=>{var t,n;let i=_.includes(e)?_.filter(t=>t!==e):[..._,e],{slugs:a,...r}=E.query,o=null!==(n=(null!=a?a:[])[0])&&void 0!==n?n:"";E.replace({pathname:T?"/".concat(o):void 0,query:{...T?r:E.query,categories:i.join(",")}},void 0,{scroll:!1}),null===(t=O.current)||void 0===t||t.scrollIntoView({behavior:"smooth"})};return 0===G.length?null:(0,i.jsxs)("div",{ref:O,className:(0,a.Z)(g?"pb-12 pt-14 @tablet:pb-14 @tablet:pt-18 @laptop:pb-18 @laptop:pt-20":"py-12 @tablet:py-14 @laptop:py-18"),children:[(0,i.jsxs)(k.J,{newGrid:!0,className:(0,a.Z)(M.length>0&&"space-y-6",(m&&M.length>0||g)&&"pb-12"),children:[g&&(0,i.jsx)(I.e,{alignment:null!==(n=null==h?void 0:h.alignment)&&void 0!==n?n:"left",children:(0,i.jsx)(w.iV,{textNodes:null!=h?h:(0,C.r)("BLOG")})}),m&&(0,i.jsx)(d.t,{alignment:null==h?void 0:h.alignment,children:M.map(e=>{let t=G.some(t=>t.categories.map(e=>e).includes(e.slug));return t||L?(0,i.jsx)(S.u,{content:!t&&(0,i.jsxs)(i.Fragment,{children:["Empty categories are not visible",(0,i.jsx)("br",{}),"to your visitors."]}),children:(0,i.jsx)("span",{children:(0,i.jsx)(c.w,{category:e,disabled:!t,active:_.includes(e.slug),onClick:t?()=>{toggleCategory(e.slug)}:void 0},e.slug)})},e.slug):null})})]}),(0,i.jsx)(j.q,{showMoreButtonLabel:u,layout:y,children:G.filter(e=>0===_.length||e.categories.some(e=>_.includes(e))).map(t=>(0,i.jsx)(BlogPostPreviewView,{blogPostPage:t,onCategoryClick:toggleCategory,parentSection:e},t.id))})]})},s.AL)},59671:function(e,t,n){n.d(t,{l:function(){return d}});var i=n(52322),a=n(40489),r=n(2784),o=n(46878),l=n(94309),s=n(83538),c=n(81811);let d=r.memo(function(e){let{textBlocks:t}=e;return(0,i.jsx)(c.r,{children:(0,i.jsx)(s.M,{children:t.map(e=>{let{payload:t,alignment:n,id:r}=e;return(0,i.jsx)("div",{id:r,className:(0,a.Z)({"text-center":"center"===n,"text-left":"left"===n,"text-right":"right"===n}),children:(0,i.jsx)(l.iV,{textNodes:{payload:t,alignment:n}})},r)})})})},o.AL)},79219:function(e,t,n){n.d(t,{j:function(){return g}});var i=n(52322),a=n(40489),r=n(2784),o=n(46878),l=n(81654),s=n(94309),c=n(82577),d=n(81885),u=n(94516),p=n(4347),h=n(46958);let g=r.memo(function(e){var t;let{images:n,layout:r,title:o,showTitle:g}=e,m=Number.parseInt(r[1],10),{showImages:f}=(0,p.zG)();return(0,i.jsxs)(u.J,{newGrid:!0,children:[g&&(0,i.jsx)(d.e,{alignment:null!==(t=null==o?void 0:o.alignment)&&void 0!==t?t:"left",className:"pb-8 pt-14 @tablet:pb-10 @tablet:pt-18 @laptop:pb-12 @laptop:pt-18",children:(0,i.jsx)(s.iV,{textNodes:null!=o?o:(0,h.r)("COLLAGE")})}),(0,i.jsx)("div",{className:(0,a.Z)("col-span-full @tablet:col-span-6 @tablet:col-start-2 @laptop:col-span-12 @laptop:col-start-2",g?"pb-12 @tablet:pb-14 @laptop:pb-18":"py-12 @tablet:py-14 @laptop:py-18"),children:(0,i.jsx)(c.b,{selectedLayout:r,children:n.map((e,t)=>(0,i.jsx)(l.n,{tight:!0,onClick:()=>{null==f||f(n.slice(0,m),t)},className:"hover:cursor-zoom-in",...e,layout:"fill"},e.src))})})]})},o.AL)},88442:function(e,t,n){n.d(t,{U:function(){return d}});var i=n(52322),a=n(40489),r=n(2784),o=n(46878),l=n(41348),s=n(61108),c=n(42181);let d=r.memo(function(e){let{backgroundImage:t,textModule:n,alignment:r}=e,{isPdfView:o}=(0,c.Z)();return(0,i.jsx)(s.p,{backgroundImage:t,verticalAlignment:r.vertical,horizontalAlignment:r.horizontal,className:(0,a.Z)("relative",o?"min-h-screen":"min-h-[500px] tablet:min-h-[600px] laptop:min-h-[800px]"),children:n&&(0,i.jsx)(l.H,{module:n,section:e})})},o.AL)},56107:function(e,t,n){n.d(t,{F:function(){return DividerView}});var i=n(52322),a=n(17949),r=n(93556),o=n(94516),l=n(75392);function DividerView(e){var t;let{style:n,width:s}=e,c={dotted:"0.0,".concat(30,".0"),dashed:"10,".concat(30,".0"),solid:"0.0,0.0"},d=null!==(t=(0,l.D)(n))&&void 0!==t?t:"solid",u={initial:{strokeDasharray:c[d]},animate:{strokeDasharray:c[n]},strokeWidth:4,strokeDashoffset:-15,strokeLinecap:"dotted"===n?"round":"square"};return(0,i.jsx)(o.J,{newGrid:!0,className:"py-4",children:(0,i.jsx)(r.m.div,{layout:!0,className:(0,a.Z)("relative h-0.5 overflow-hidden",{"col-span-2 col-start-2 @tablet:col-span-4 @tablet:col-start-3 @laptop:col-start-6":"narrow"===s,"col-span-full col-start-1 @tablet:col-span-6 @tablet:col-start-2 @laptop:col-start-5":"full"===s}),children:(0,i.jsxs)("svg",{className:"absolute left-1/2 top-1/2 h-0.5 -translate-x-1/2 -translate-y-1/2 stroke-custom-accent",viewBox:"0 0 ".concat(1600," ").concat(4),children:[(0,i.jsx)(r.m.path,{...u,d:"M".concat(800,",").concat(2,"L0,").concat(2)},"".concat(n,"-left")),(0,i.jsx)(r.m.path,{...u,d:"M".concat(800,",").concat(2,"L").concat(1600,",").concat(2)},"".concat(n,"-right"))]})})})}},10523:function(e,t,n){n.d(t,{V:function(){return InstagramFeedView}});var i=n(52322);n(2784);var a=n(8768),r=n(10027),o=n(94309),l=n(1364),s=n(81885),c=n(94516),d=n(19841);function InstagramFeed(e){var t,n;let{accountId:u,layout:p,content:h,__posts:g,...m}=e,{data:f}=(0,d.uq)(u,p.rows),x=null!=f?f:g;return x&&0!==x.length?(0,i.jsx)(a.Z,{posts:x,accountId:u,openOnInstagram:h.openPostsOnInstagram,children:(0,i.jsxs)("div",{className:"py-8",children:[m.showTitle&&(0,i.jsx)(c.J,{newGrid:!0,className:"px-6 py-2 @tablet:py-4 @laptop:py-6",children:(0,i.jsx)(s.e,{alignment:null!==(n=null===(t=m.title)||void 0===t?void 0:t.alignment)&&void 0!==n?n:"left",children:(0,i.jsx)(o.iV,{textNodes:m.title})})}),(0,i.jsx)(l.N,{layout:p,children:null==x?void 0:x.map(e=>(0,i.jsx)(r.D,{post:e,content:h},e.id))})]})}):null}function InstagramFeedView(e){let{__posts:t,...n}=e;return t?(0,i.jsx)(InstagramFeed,{...n,accountId:"",__posts:t}):n.accountId?(0,i.jsx)(InstagramFeed,{...n,accountId:n.accountId}):null}},39032:function(e,t,n){n.d(t,{d:function(){return d}});var i=n(52322),a=n(40489),r=n(2784),o=n(46878),l=n(81654),s=n(69944),c=n(19855);let d=r.memo(function(e){let t=(0,c.e)(),{logos:n,tintEnabled:r}=e;return(0,i.jsx)(s.FA,{logoCount:n.length,children:n.map((e,o)=>{let c=(0,s.f2)(n.length)[t][o];return(0,i.jsx)(s.Jr,{logoCount:n.length,index:o,children:(0,i.jsx)("div",{className:"relative w-full",children:(0,i.jsx)("div",{className:"relative h-6 tablet:h-8 laptop:h-10",children:(0,i.jsx)("div",{className:"relative h-full w-full",children:(0,i.jsx)(l.n,{objectFit:"scale-down",objectPosition:"".concat(c,"%"),layout:"fill",priority:!0,className:(0,a.Z)(r&&"mix-blend-luminosity"),...e.image},e.image.src)})})})},e.key)})})},o.AL)},7607:function(e,t,n){n.d(t,{x:function(){return S}});var i=n(52322),a=n(40489),r=n(2784),o=n(46878),l=n(39097),s=n.n(l),c=n(73620),d=n(59901),u=n(24679),p=n(13479),h=n(94309),g=n(54172),m=n(57855),f=n(73460),x=n(62271);function ProjectPreviewView(e){var t,n,a,o;let{projectPage:l,showDescription:y,parentSection:v,aspectRatioOfImages:b="square",labelPlacement:w,sizeOfThumbnails:j}=e,I=(0,f.f)(),k=(0,m.$)(),S=(0,x.W)(k).data,[C,N]=r.useState(!1),[A,P]=r.useState(!1);if(r.useEffect(()=>{("ontouchstart"in window||navigator.maxTouchPoints>0)&&P(!0)},[]),!l)return null;let T=l.externalUrl||(I?"/".concat(null!==(t=l.slug)&&void 0!==t?t:""):{query:{slugs:[S.slug,...l.slug?[l.slug]:[]]}}),handleClick=()=>{var e;(null===(e=l.externalUrl)||void 0===e?void 0:e.trim())&&(0,c.Z0)(l.externalUrl)};return(0,i.jsx)(u.E,{onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),labelPlacement:w,className:"relative",image:l.thumbnail&&(0,i.jsxs)(g.nA,{children:[(0,i.jsx)(s(),{href:T,...l.externalUrl&&{target:"_blank",rel:"nofollow noreferrer"},onClick:handleClick,className:"block focus:outline-none focus-visible:ring",children:(0,i.jsx)(p.k,{thumbnail:l.thumbnail,aspectRatio:b})}),"inside"===w&&(C||A)&&(0,i.jsx)(g.sK,{padding:"sm",dark:"inside"===w,alwaysVisible:!0})]}),textEditors:(0,i.jsx)(s(),{href:T,...l.externalUrl&&{target:"_blank",rel:"nofollow noreferrer"},"aria-label":'Open "'.concat(l.title,'" in a new tab'),onClick:handleClick,className:"block space-y-2 pointer-area-fill-containing-block",title:l.title,children:("outside"===w||C||A)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.iV,{onDarkBackground:"inside"===w,lineClamp:"inside"===w?(0,d.F)(j,b,l.thumbnail):3,textNodes:{alignment:"inside"===w?"center":null!==(n=v.contentAlignment)&&void 0!==n?n:"center",payload:{type:"doc",content:[{type:"heading",attrs:{level:4},content:[{type:"text",text:l.title}]}]}}}),y&&l.description&&(0,i.jsx)(h.iV,{onDarkBackground:"inside"===w,lineClamp:"inside"===w?(0,d.F)(j,b,l.thumbnail):void 0,textNodes:{alignment:"inside"===w?"center":null!==(a=v.contentAlignment)&&void 0!==a?a:"center",payload:{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:null!==(o=l.description)&&void 0!==o?o:""}]}]}}})]})})})}var y=n(30495),v=n(90878),b=n(78817),w=n(81885),j=n(94516),I=n(46958),k=n(99283);let S=r.memo(function(e){var t;let n=(0,m.$)(),o=(0,k.B)(n).data,{id:l,sizeOfThumbnails:s="large",aspectRatioOfImages:c="square",showDescription:d=!1,labelPlacement:u="outside",spacing:p="md",layoutType:g="grid",__pages:f,showTitle:x,title:S}=e,C="offset"===g?b.U:"original"===c?v.Z:y.T,N=r.useMemo(()=>(null==f?void 0:f.length)?f:o.filter(e=>e.parentSectionId===l&&e.published),[o,l,f]),A="sm"===p&&"offset"!==g?"wide":"regular";return N.length>0?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(j.J,{newGrid:!0,className:"py-12 @tablet:py-14 @laptop:py-18",children:[x&&(0,i.jsx)(w.e,{alignment:null!==(t=null==S?void 0:S.alignment)&&void 0!==t?t:"left",className:(0,a.Z)("sm"===p&&{"@tablet:col-start-1 @laptop:col-start-1":(null==S?void 0:S.alignment)==="left","@tablet:col-start-3 @laptop:col-start-7":(null==S?void 0:S.alignment)==="right"}),children:(0,i.jsx)("div",{className:"pb-12",children:(0,i.jsx)(h.iV,{textNodes:null!=S?S:(0,I.r)("PROJECT_GRID")})})}),(0,i.jsx)("div",{className:(0,a.Z)("col-span-full",{"@tablet:col-span-6 @tablet:col-start-2 @laptop:col-span-12 @laptop:col-start-2":"regular"===A,"col-start-1":"wide"===A}),children:(0,i.jsx)(C,{sizeOfThumbnails:s,spacing:null!=p?p:"md",labelPlacement:u,children:N.map(t=>(0,i.jsx)(ProjectPreviewView,{parentSection:e,projectPage:t,showDescription:d,aspectRatioOfImages:null!=c?c:"square",labelPlacement:null!=u?u:"outside",sizeOfThumbnails:s,spacing:null!=p?p:"md"},t.id))})})]})}):null},o.AL)},32761:function(e,t,n){n.d(t,{b:function(){return m}});var i=n(52322),a=n(17949),r=n(40489),o=n(2784),l=n(46878),s=n(84830),c=n(81654),d=n(94309),u=n(55265),p=n(81885),h=n(94516),g=n(46958);let m=o.memo(function(e){var t;let{columns:n,hideImages:o,showBackground:l,aspectRatioOfImages:m="horizontal",showTitle:f,textAlignment:x,title:y}=e;return(0,i.jsxs)(h.J,{newGrid:!0,children:[f&&(0,i.jsx)(p.e,{alignment:null!==(t=null==y?void 0:y.alignment)&&void 0!==t?t:"left",className:(0,r.Z)("pt-8 @tablet:pt-12 @laptop:pt-18",o&&"pb-4"),children:(0,i.jsx)(d.iV,{textNodes:null!=y?y:(0,g.r)("SERVICES")})}),(0,i.jsx)("div",{className:(0,r.Z)("col-span-full min-h-[248px] @tablet:col-span-6 @tablet:col-start-2 @laptop:col-span-12 @laptop:col-start-2",f?"pb-12 pt-2 @tablet:pb-14 @tablet:pt-4 @laptop:pb-18 @laptop:pt-6":"py-12 @tablet:py-14 @laptop:py-18"),children:(0,i.jsx)("div",{className:(0,r.Z)("-mx-6 grid grid-cols-1 gap-x-6 p-6",l?"gap-y-8":"gap-y-12",2===n.length&&"@tablet:grid-cols-2 @laptop:grid-cols-2",3===n.length&&"@tablet:grid-cols-1 @laptop:grid-cols-3",4===n.length&&"@tablet:grid-cols-2 @laptop:grid-cols-4"),children:n.map(e=>(0,i.jsx)("div",{children:(0,i.jsxs)("div",{children:[!o&&(0,i.jsx)(c.n,{...(0,u.B)(e.image),crop:(0,s.ET)(e.image,m)}),(0,i.jsx)("div",{className:(0,a.Z)("py-6",l&&"bg-custom-h1-rgba/[0.06] px-6"),children:(0,i.jsx)(d.iV,{textNodes:{...e.textNodes,alignment:x}})})]})},e.image.src))})})]})},l.AL)},5220:function(e,t,n){n.d(t,{k:function(){return k}});var i=n(52322),a=n(2784),r=n(46878),o=n(88883),l=n(63955),s=n(30195);let c=s.z.object({name:s.z.string().min(1,{message:"Don’t forget to add your name."}),email:s.z.string().email({message:"Make sure the email is correct."}),message:s.z.string().min(1,{message:"Don’t forget to enter your message."})});c.extend({siteId:s.z.string().min(1),recipient:s.z.string().email()});var d=n(52855),u=n(72773),p=n(68851);function SendEmailSuccessDialog(e){let{onDismiss:t,...n}=e;return(0,i.jsxs)(p.Vq,{className:"bg-custom-bg",size:"sm",...n,children:[(0,i.jsxs)(p.cZ,{className:"text-center",children:[(0,i.jsx)("h2",{id:"dialog-title",className:"custom-h2",children:"Got your message."}),(0,i.jsxs)("p",{className:"custom-p",children:["Thank you for getting in touch! ",(0,i.jsx)("br",{})," I’ll get back to you as soon as possible."]})]}),(0,i.jsx)(p.kX,{children:(0,i.jsx)("button",{type:"button",className:"col-span-full min-h-[56px] bg-custom-button px-8 font-bold uppercase hover:opacity-75 active:opacity-75 disabled:opacity-25",style:{fontFamily:"var(--p-family)",color:"var(--bg-color)"},onClick:t,children:"Close"})})]})}var h=n(57855),g=n(6431),m=n(90979);function FormModuleView(e){let{module:t}=e,[n,r]=(0,a.useState)(!1),s=(0,h.$)(),p=(0,l.cI)({resolver:(0,o.F)(c)}),{mutate:f,isSuccess:x}=g.S.useMutation("SendEmailRequest.create");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.i,{onSubmit:p.handleSubmit(e=>{f({...e,siteId:s,recipient:t.extension.actionValue},{onSuccess:()=>{r(!0),p.reset()}})}),form:p,Button:(0,i.jsx)(u.r,{type:"submit",disabled:x,disabledLabel:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Jr,{className:"h-6 w-6"}),"Message sent"]}),value:t.extension})}),n&&(0,i.jsx)(SendEmailSuccessDialog,{onDismiss:()=>{r(!1)}})]})}var f=n(40489),x=n(4347),y=n(81654);function ImageModuleView(e){var t,n;let{module:a,section:r}=e,o=r.modules.filter(e=>"IMAGE"===e.type),l=o.findIndex(e=>e.src===a.src),{showImages:s}=(0,x.zG)();return(0,i.jsx)("div",{children:(0,i.jsx)(y.n,{...a,width:a.originalWidth,height:a.originalHeight,captionEnabled:(null===(t=a.crop)||void 0===t?void 0:t.shape)!=="round"||!!a.mockup,className:(0,f.Z)("hover:cursor-zoom-in",(null===(n=a.crop)||void 0===n?void 0:n.shape)==="round"&&"rounded-full"),onClick:()=>null==s?void 0:s(o,l)})})}var v=n(94309),b=n(2245);function QuoteModuleView(e){var t;let{module:n}=e;return(0,i.jsx)(b.k,{Content:(0,i.jsx)(v.iV,{textNodes:n.content}),Citation:(0,i.jsx)(v.iV,{textNodes:n.citation}),alignment:null===(t=n.content)||void 0===t?void 0:t.alignment})}var w=n(41348),j=n(38261);function VideoModuleView(e){let{module:t}=e;return(0,i.jsx)(j.L,{...t,captionEnabled:!0})}var I=n(54626);function ModuleComponent(e){let{module:t,...n}=e;switch(t.type){case"TEXT":return(0,i.jsx)(w.H,{module:t,...n});case"IMAGE":return(0,i.jsx)(ImageModuleView,{module:t,...n});case"VIDEO":return(0,i.jsx)(VideoModuleView,{module:t,...n});case"FORM":return(0,i.jsx)(FormModuleView,{module:t,...n});case"QUOTE":return(0,i.jsx)(QuoteModuleView,{module:t,...n});default:return null}}let k=a.memo(e=>(0,i.jsx)(I.I,{section:e,ModuleComponent:ModuleComponent}),r.AL)},93287:function(e,t,n){n.d(t,{S:function(){return c}});var i=n(52322),a=n(2784),r=n(46878),o=n(41348),l=n(29301),s=n(87036);let c=a.memo(function(e){var t;let{textModule:n}=e,a=null===(t=(0,s.m)().alignmentLock)||void 0===t?void 0:t.title;return(0,i.jsx)(l.p,{section:e,children:(0,i.jsx)(o.H,{module:n,section:e,forceAlignment:a})})},r.AL)},84895:function(e,t,n){n.d(t,{l:function(){return imagesOnly},y:function(){return y}});var i=n(52322),a=n(40489),r=n(2784),o=n(3949),l=n(46878),s=n(84830),c=n(81654),d=n(94309),u=n(81811),p=n(69165),h=n(81885),g=n(94516),m=n(7320),f=n(4347),x=n(46958);function imagesOnly(e){return"IMAGE"===e[0].type}let y=r.memo(function(e){var t;let{media:n,sizeOfImages:r="large",aspectRatioOfImages:l="original",sizeOfGap:y,showTitle:v,title:b}=e,w="original"===l?m.S:p.K,j=n&&imagesOnly(n)&&n.length>1,{showImages:I}=(0,f.zG)();return(0,i.jsx)(i.Fragment,{children:j?(0,i.jsxs)(i.Fragment,{children:[v&&(0,i.jsx)(g.J,{newGrid:!0,className:"pt-8 @tablet:pt-12 @laptop:pt-18",children:(0,i.jsx)(h.e,{alignment:null!==(t=null==b?void 0:b.alignment)&&void 0!==t?t:"left",children:(0,i.jsx)(d.iV,{textNodes:null!=b?b:(0,x.r)("TEXT_AROUND_MEDIA")})})}),(0,i.jsx)(u.r,{contentWidth:"sm"===y?"wide":"regular",className:(0,a.Z)(v&&"pb-12 pt-8 @tablet:pb-14 @tablet:pt-10 @laptop:pb-18 @laptop:pt-12"),children:(0,i.jsx)(w,{sizeOfGap:null!=y?y:"md",sizeOfImages:null!=r?r:"large",children:n.map((e,t)=>{var a;return(0,i.jsx)("div",{className:"relative h-full w-full overflow-hidden",children:(0,i.jsx)(c.n,{captionEnabled:(null===(a=e.crop)||void 0===a?void 0:a.shape)!=="round",tight:"sm"===y,caption:e.caption,onClick:()=>{null==I||I(n,t)},className:"hover:cursor-zoom-in",...(0,o.pb)(e),crop:"original"===l?e.crop:(0,s.ET)(e,l)},e.src)},e.src)})})})]}):null})},l.AL)},60155:function(e,t,n){n.d(t,{W:function(){return s},q:function(){return BlogGridLayout}});var i=n(52322),a=n(40489),r=n(2784),o=n(93536),l=n(94516);let s={list:6,"simple-list":10,grid:12};function BlogGridLayout(e){let{children:t,showMoreButtonLabel:n,layout:c}=e,d=r.useMemo(()=>Math.ceil(r.Children.count(t)/s[c]),[t,c]),[u,p]=r.useState(0),h=r.useMemo(()=>r.Children.toArray(t).slice(0,(u+1)*s[c]),[t,u,c]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"@laptop:hidden",children:(0,i.jsx)(l.J,{newGrid:!0,children:(0,i.jsx)("div",{className:(0,a.Z)("col-span-full grid grid-cols-1 items-start gap-12 @tablet:col-span-6 @tablet:col-start-2 @laptop:col-span-12 @laptop:col-start-2",{"@tablet:grid-cols-2":"simple-list"!==c,"@laptop:grid-cols-1":"list"===c}),children:h})})}),(0,i.jsx)("div",{className:"hidden @laptop:block",children:(0,i.jsx)(l.J,{newGrid:!0,className:"gap-16",children:h})}),d>1&&d>u+1&&(0,i.jsx)(l.J,{newGrid:!0,className:"pt-12 @laptop:pt-16",children:(0,i.jsxs)("div",{className:"col-span-full space-y-4 @tablet:col-span-6 @tablet:col-start-2 @laptop:col-span-12 @laptop:col-start-2 @laptop:space-y-8",children:[(0,i.jsx)("div",{className:"h-px w-full bg-custom-accent"}),(0,i.jsx)(o._,{type:"button",onClick:()=>{p(e=>e+1)},children:n})]})})]})}},82577:function(e,t,n){n.d(t,{b:function(){return CollageGridLayout},$:function(){return getCollageItemCropSettings}});var i=n(52322),a=n(17949),r=n(2784);n(2834);let o={"I2-H1":[[6,12],[6,12]],"I2-H2":[[8,12],[4,12]],"I2-H3":[[4,12],[8,12]],"I2-V1":[[12,6],[12,6]],"I2-V2":[[12,8],[12,4]],"I2-V3":[[12,4],[12,8]],"I3-H1":[[6,6],[6,12],[6,6]],"I3-H2":[[8,6],[4,12],[8,6]],"I3-H3":[[4,6],[8,12],[4,6]],"I3-H4":[[6,12],[6,6],[6,6]],"I3-H5":[[8,12],[4,6],[4,6]],"I3-H6":[[4,12],[8,6],[8,6]],"I3-V1":[[12,6],[6,6],[6,6]],"I3-V2":[[12,8],[6,4],[6,4]],"I3-V3":[[12,4],[6,8],[6,8]],"I4-H1":[[6,4],[6,12],[6,4],[6,4]],"I4-H2":[[8,4],[4,12],[8,4],[8,4]],"I4-H3":[[4,4],[8,12],[4,4],[4,4]],"I4-H4":[[6,12],[6,4],[6,4],[6,4]],"I4-H5":[[8,12],[4,4],[4,4],[4,4]],"I4-H6":[[4,12],[8,4],[8,4],[8,4]],"I4-V1":[[12,6],[4,6],[4,6],[4,6]],"I4-V2":[[12,8],[4,4],[4,4],[4,4]],"I4-V3":[[12,4],[4,8],[4,8],[4,8]],"I4-S1":[[6,4],[6,8],[6,8],[6,4]],"I4-S2":[[8,8],[4,8],[8,4],[4,4]],"I4-S3":[[4,8],[8,8],[4,4],[8,4]]};function getCollageItemCropSettings(e,t){let[n=1,i=1]=function(e,t){let n=o[e],i=n[t%n.length];return[i[0],.78*i[1]]}(e,t);return{aspectRatio:n/i}}function CollageGridLayout(e){let{children:t,selectedLayout:n,itemClassname:l}=e,s=r.Children.toArray(t);return(0,i.jsx)("div",{className:"relative w-full pt-[75%]",children:(0,i.jsx)("div",{className:"absolute inset-0 grid grid-cols-12 grid-rows-12 gap-x-[2%] gap-y-[2.5%]",children:o[n].map((e,t)=>(0,i.jsx)("div",{className:(0,a.Z)({"col-span-4":4===e[0],"col-span-6":6===e[0],"col-span-8":8===e[0],"col-span-12":12===e[0],"row-span-4":4===e[1],"row-span-6":6===e[1],"row-span-8":8===e[1],"row-span-12":12===e[1]},l),children:(0,i.jsx)("div",{className:"relative h-full w-full",children:null==s?void 0:s[t]})},"".concat(n,"-").concat(t)))})})}},81811:function(e,t,n){n.d(t,{r:function(){return ContainerLayout}});var i=n(52322),a=n(17949),r=n(40489),o=n(94516);function ContainerLayout(e){let{contentWidth:t="regular",paddingY:n="md",className:l,children:s,noMinHeight:c=!1,...d}=e;return(0,i.jsx)(o.J,{newGrid:!0,className:(0,a.Z)({"py-12 @tablet:py-14 @laptop:py-18":"md"===n,"py-12 @tablet:py-18 @laptop:py-24":"lg"===n},!c&&"min-h-[248px]",l),...d,children:"full"===t?s:(0,i.jsx)("div",{className:(0,r.Z)("col-span-full",{"@tablet:col-span-4 @tablet:col-start-3 @laptop:col-span-8 @laptop:col-start-4":"sm"===t,"@tablet:col-span-6 @tablet:col-start-2 @laptop:col-span-12 @laptop:col-start-2":"regular"===t,"col-start-1":"wide"===t}),children:s})})}},61108:function(e,t,n){n.d(t,{p:function(){return CoverLayout}});var i=n(52322),a=n(17949),r=n(40489),o=n(71346),l=n.n(o),s=n(53014),c=n(93556),d=n(2784),u=n(40495),p=n(75726),h=n(35290),g=n(43474),m=n(81654),f=n(94516),x=n(57855),y=n(62271);let v=g.Cover.CoverBg;function CoverLayout(e){var t;let{backgroundImage:n,className:o,children:g,verticalAlignment:b="bottom",horizontalAlignment:w="center"}=e,[j,I]=(0,d.useState)(null),k=(0,x.$)(),S=(0,y.W)(k).data,{theme:C,colors:{heading:N}}=(0,u.PU)(S);return(0,d.useEffect)(()=>{var e,t;async function getBackGroundAreaAverageColor(e,t){let n=await (0,p.nU)(e,t),i=(0,p.so)(n);return l()(i).darken(.2).hex()}let i=[getBackGroundAreaAverageColor((null==n?void 0:null===(e=n.crop)||void 0===e?void 0:e.src)||v.src,"top"),getBackGroundAreaAverageColor((null==n?void 0:null===(t=n.crop)||void 0===t?void 0:t.src)||v.src,"bottom")];Promise.all(i).then(e=>{I({top:e[0],bottom:e[1]})})},[n]),(0,i.jsxs)("div",{className:(0,a.Z)("relative flex",{"items-start":"top"===b,"items-end":"bottom"===b},o),children:[(0,i.jsx)(m.n,{...n||v,layout:"fill"}),g&&j&&(0,i.jsx)(c.m.div,{initial:{opacity:0},animate:{opacity:1},transition:{ease:h.mZ},className:(0,r.Z)("relative w-full",{"tablet:pb-[136px] laptop:pb-[104px] pb-[152px]":"top"===b,"tablet:pt-[136px] laptop:pt-[104px] pt-[152px]":"bottom"===b}),children:(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("div",{style:j?{backgroundImage:(t=j[b],"linear-gradient(".concat("top"===b?"to top":"to bottom",", ").concat(t,"00 160px, ").concat(t,"33 400px,").concat(t,"33 400px , ").concat(t,"33 100%),\n	\n	linear-gradient(").concat("top"===b?"to top":"to bottom",", ").concat(t,"00 136px, ").concat(t,"33 400px,").concat(t,"33 400px , ").concat(t,"33 100%),\n	\n	linear-gradient(").concat("top"===b?"to top":"to bottom",", ").concat(t,"00 60px, ").concat(t,"33 400px,").concat(t,"33 400px , ").concat(t,"33 100%),\n	\n	linear-gradient(").concat("top"===b?"to top":"to bottom",", ").concat(t,"00 96px, ").concat(t,"33 400px,").concat(t,"33 400px , ").concat(t,"33 100%),\n	\n	linear-gradient(").concat("top"===b?"to top":"to bottom",", ").concat(t,"00 28px, ").concat(t,"33 400px,").concat(t,"33 400px , ").concat(t,"33 100%),\n	\n	linear-gradient(").concat("top"===b?"to top":"to bottom",", ").concat(t,"00 116px, ").concat(t,"66 400px,").concat(t,"66 400px , ").concat(t,"66 100%),\n													\n	linear-gradient(").concat("top"===b?"to top":"to bottom",", ").concat(t,"00 0px, ").concat(t,"66 400px,").concat(t,"66 400px , ").concat(t,"66 100%)"))}:void 0,className:(0,r.Z)("absolute w-full",{"tablet:bottom-[-136px] laptop:bottom-[-104px] bottom-[-152px] top-0":"top"===b,"tablet:top-[-136px] laptop:top-[-104px] top-[-152px] bottom-0":"bottom"===b})}),(0,i.jsx)(f.J,{newGrid:!0,className:" py-12 tablet:py-16 laptop:py-24",children:(0,i.jsx)("div",{className:(0,r.Z)("col-span-full tablet:col-span-6 tablet:col-start-2",{"laptop:col-start-2":"left"===w,"laptop:col-start-5":"center"===w,"laptop:col-start-8":"right"===w}),style:{...j&&(0,s.mj)("#FFF",j[b])>2?{"--h1-color":"rgb(255, 255, 255)","--h2-color":"rgb(255, 255, 255)","--h3-color":"rgb(255, 255, 255)","--p-color":"255, 255, 255","--button-color":"rgb(255, 255, 255)","--button-text-color":"rgb(0, 0, 0)","--button-hover-color":"rgb(220, 220, 220)"}:"dark"===C?{"--h1-color":"rgb(0, 0, 0)","--h2-color":"rgb(0, 0, 0)","--h3-color":"rgb(0, 0, 0)","--p-color":"0, 0, 0","--button-color":"rgb(0, 0, 0)","--button-hover-color":"rgb(35, 35, 35)","--button-text-color":"rgb(255, 255, 255)"}:{"--h1-color":"rgb(".concat(N.r,", ").concat(N.g,", ").concat(N.b,")"),"--h2-color":"rgb(".concat(N.r,", ").concat(N.g,", ").concat(N.b,")"),"--h3-color":"rgb(".concat(N.r,", ").concat(N.g,", ").concat(N.b,")"),"--p-color":"".concat(N.r,", ").concat(N.g,", ").concat(N.b),"--button-color":"rgb(".concat(N.r,", ").concat(N.g,", ").concat(N.b,")"),"--button-hover-color":"rgb(".concat(N.r+35,", ").concat(N.g+35,", ").concat(N.b+35,")"),"--button-text-color":"rgb(255, 255, 255)"}},children:g})})]})})]})}},69165:function(e,t,n){n.d(t,{K:function(){return GalleryGridLayout}});var i=n(52322),a=n(40489),r=n(2784);function GalleryGridLayout(e){var t;let{children:n,sizeOfImages:o,sizeOfGap:l,align:s="top"}=e,c=null!==(t=r.Children.map(n,e=>(0,i.jsx)("div",{className:"h-min",children:e})))&&void 0!==t?t:[];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,a.Z)("@tablet:hidden",{"space-y-12":"md"===l,"space-y-6":"sm"===l,"space-y-4":"xs"===l}),children:c}),(0,i.jsx)("div",{className:(0,a.Z)("hidden auto-rows-auto @tablet:grid",{"grid-cols-2":"large"===o,"grid-cols-3":"medium"===o,"grid-cols-4":"small"===o,"gap-12":"md"===l,"gap-6":"sm"===l,"gap-4":"xs"===l,"items-center":"center"===s}),children:c})]})}},81885:function(e,t,n){n.d(t,{e:function(){return HorizontallyAlignedLayoutGridItem}});var i=n(52322),a=n(17949);function HorizontallyAlignedLayoutGridItem(e){let{alignment:t,children:n,className:r,...o}=e;return(0,i.jsx)("div",{className:(0,a.Z)("col-span-full col-start-1 @tablet:col-span-6 @tablet:col-start-2 @laptop:col-span-8",{"@laptop:col-start-2":"left"===t,"@laptop:col-start-4":"center"===t,"@laptop:col-start-6":"right"===t},r),...o,children:n})}n(2784)},7320:function(e,t,n){n.d(t,{S:function(){return MasonryLayout},r:function(){return o}});var i=n(52322),a=n(40489),r=n(2784);let o={large:2,medium:3,small:4};function MasonryLayout(e){var t;let{children:n,sizeOfImages:l="large",sizeOfGap:s,align:c="top",editor:d}=e,u=null!==(t=r.Children.map(n,e=>(0,i.jsx)("div",{children:e})))&&void 0!==t?t:[],p=o[l],h=u.filter((e,t)=>t%p==0),g=u.filter((e,t)=>t%p==1),m=u.filter((e,t)=>t%p==2),f=u.filter((e,t)=>t%p==3),Column=e=>{let{children:t}=e;return(0,i.jsx)("div",{className:(0,a.Z)({"space-y-12":"md"===s&&!d,"space-y-6":"sm"===s||"md"===s&&d,"space-y-4":"xs"===s}),children:t})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,a.Z)("@tablet:hidden",{"space-y-12":"md"===s&&!d,"space-y-6":"sm"===s||"md"===s&&d,"space-y-4":"xs"===s}),children:u}),(0,i.jsxs)("div",{className:(0,a.Z)("hidden @tablet:grid",{"grid-cols-2":"large"===l,"grid-cols-3":"medium"===l,"grid-cols-3 @laptop:grid-cols-4":"small"===l},{"gap-12":"md"===s,"gap-6":"sm"===s,"gap-4":"xs"===s},"center"===c&&"items-center"),children:[(0,i.jsx)(Column,{children:h}),(0,i.jsx)(Column,{children:g}),("medium"===l||"small"===l)&&(0,i.jsx)(Column,{children:m}),"small"===l&&(0,i.jsx)(Column,{children:f})]})]})}},4347:function(e,t,n){n.d(t,{us:function(){return ImageViewerProvider},zG:function(){return useImageViewer}});var i=n(52322),a=n(39479),r=n(40489),o=n(2784),l=n(60670),s=n(52855),c=n(30195),d=n(11475),u=n(72907),p=n(17281),h=n(81851),g=n(90918);let m=o.forwardRef(function(e,t){let{disabled:n,className:a,children:o,...l}=e;return(0,i.jsxs)(g.z,{ref:t,size:"md",shape:"circle",disabled:n,className:(0,r.Z)("group relative font-bold uppercase shadow-soft-sm backdrop-blur-sm",n?"text-custom-bg/25":"text-custom-bg/75 hover:text-custom-bg/100",a),...l,children:[(0,i.jsx)("span",{className:(0,r.Z)("absolute inset-0 rounded-full bg-[#000000]",n?"opacity-20":"opacity-30 group-hover:hidden")}),(0,i.jsx)("span",{className:(0,r.Z)("absolute inset-0 rounded-full bg-custom-h1",n?"opacity-30":"opacity-70 group-hover:opacity-100")}),(0,i.jsx)("span",{className:"relative",children:o})]})});l.KA.extend({type:c.z.literal("IMAGE")}).array();let f=o.createContext({}),useImageViewer=()=>o.useContext(f);function ImageViewer(e){let{images:t,onHide:n,imageIndex:l=0,onIndexChanged:c}=e,[g,f]=o.useState(1),[x,y]=o.useState(!1),v=o.useRef(!1),b=o.useRef({x:0,y:0}),[w,j]=o.useState({x:0,y:0}),[I,k]=o.useState({left:0,top:0}),S=o.useRef(null),C=o.useRef(null);function handleMouseUp(e){e.preventDefault(),e.stopPropagation(),v.current=!1,y(!1)}function handleMouseMove(e){v.current&&j({x:e.clientX,y:e.clientY})}function handleKeyDown(e){switch(e.key){case"ArrowLeft":c(e=>0===e?t.length-1:e-1);break;case"ArrowRight":c(e=>e===t.length-1?0:e+1);break;case"Escape":n()}}return o.useEffect(()=>(document.addEventListener("mouseup",handleMouseUp,!1),document.addEventListener("mousemove",handleMouseMove,!1),document.addEventListener("keydown",handleKeyDown),()=>{document.removeEventListener("mouseup",handleMouseUp,!1),document.removeEventListener("mousemove",handleMouseMove,!1),document.removeEventListener("keydown",handleKeyDown)}),[]),o.useEffect(()=>{if(!S.current||!C.current)return;let e=(w.x-b.current.x)/g,t=(w.y-b.current.y)/g;b.current={x:w.x,y:w.y};let n=Math.abs((S.current.clientWidth-C.current.clientWidth*g)/g/2),i=Math.abs((S.current.clientHeight-C.current.clientHeight*g)/g/2),a={left:I.left+e>0?Math.min(I.left+e,n):Math.max(I.left+e,-n),top:I.top+t>0?Math.min(I.top+t,i):Math.max(I.top+t,-i)};k(a)},[w,g]),o.useEffect(()=>{f(1),k({left:0,top:0})},[l]),(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)(a.fC,{defaultOpen:!0,children:(0,i.jsxs)(a.h_,{forceMount:!0,children:[(0,i.jsx)(a.aV,{forceMount:!0,className:"fixed inset-0 z-30"}),(0,i.jsxs)(a.VY,{forceMount:!0,ref:S,className:"fixed inset-0 z-30 flex h-full w-full items-center justify-center backdrop-blur-lg","aria-label":"image viewer modal",children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-[#000000] opacity-50"}),(0,i.jsx)("div",{className:"absolute inset-0 bg-custom-p opacity-30"}),(0,i.jsx)("img",{className:(0,r.Z)("max-h-full max-w-full select-none object-contain shadow-soft-xl",g>1&&(x?"cursor-grabbing":"cursor-grab")),role:"presentation",alt:"zoomable",src:t[l].src,ref:C,onMouseDown:e=>{0===e.button&&1!==g&&(e.preventDefault(),e.stopPropagation(),v.current=!0,b.current={x:e.clientX,y:e.clientY},y(!0))},style:{transform:"scale(".concat(g,") translate(").concat(I.left,"px, ").concat(I.top,"px)")}}),(0,i.jsx)("div",{className:"absolute left-6 top-6 z-20",children:(0,i.jsx)(m,{onClick:n,children:(0,i.jsx)(u.Z,{className:"h-6"})})}),(0,i.jsxs)("div",{className:"absolute right-6 top-6 z-20 space-x-3",children:[(0,i.jsx)(m,{onClick:()=>{f(e=>e+.5),k({left:0,top:0})},disabled:g>1.5,children:(0,i.jsx)(p.Z,{className:"h-6"})}),(0,i.jsx)(m,{onClick:()=>{f(e=>e-.5),k({left:0,top:0})},disabled:g<1.5,children:(0,i.jsx)(h.Z,{className:"h-6"})})]}),t.length>1&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"absolute inset-y-0 right-6 flex items-center justify-center",children:(0,i.jsx)(m,{onClick:()=>{c(e=>e===t.length-1?0:e+1)},children:(0,i.jsx)(s.ol,{className:"h-6"})})}),(0,i.jsx)("div",{className:"absolute inset-x-0 bottom-6 flex items-center justify-center",children:(0,i.jsxs)("div",{className:"relative rounded-2xl p-3 backdrop-blur-sm",children:[(0,i.jsx)("div",{className:"absolute inset-0 rounded-2xl bg-custom-h1 opacity-75"}),(0,i.jsx)("div",{className:"relative flex items-center justify-center space-x-2",children:t.map((e,t)=>(0,i.jsx)("button",{type:"button",className:(0,r.Z)("rounded-full bg-graphite-0",t===l?"h-[10px] w-[10px] bg-custom-bg/75":"h-2 w-2 bg-custom-bg/50"),onClick:()=>{c(t)}},e.src))})]})}),(0,i.jsx)("div",{className:"absolute inset-y-0 left-6 flex items-center justify-center",children:(0,i.jsx)(m,{onClick:()=>{c(e=>0===e?t.length-1:e-1)},children:(0,i.jsx)(d.Z,{className:"h-6"})})})]})]})]})})})}function ImageViewerProvider(e){let{children:t}=e,[n,a]=o.useState(0),[r,l]=o.useState([]);return(0,i.jsxs)(f.Provider,{value:{images:r,showImages:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;l(e),a(t)}},children:[t,r.length>0&&(0,i.jsx)(ImageViewer,{onHide:()=>l([]),images:r,imageIndex:n,onIndexChanged:a})]})}},54172:function(e,t,n){n.d(t,{nA:function(){return MediaOverlayGroup},sK:function(){return MediaOverlay},up:function(){return MediaOverlayItem}});var i=n(52322),a=n(17949),r=n(40489);function MediaOverlayGroup(e){let{children:t,className:n}=e;return(0,i.jsx)("div",{className:(0,a.Z)("group relative h-full",n),children:t})}function MediaOverlay(e){let{padding:t="md",rounded:n="none",dark:r=!1,children:o,alwaysVisible:l,hidden:s}=e;return(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0",children:(0,i.jsx)("div",{className:(0,a.Z)("grid h-full grid-cols-1 grid-rows-3 text-base",{"p-4":"sm"===t,"p-6":"md"===t},{"rounded-full":"full"===n,"rounded-sm":"sm"===n,rounded:"default"===n,"rounded-md":"md"===n,"rounded-lg":"lg"===n,"rounded-none":"none"===n},{"bg-lighten-regular":l&&!r,"bg-darken-regular":l&&r,"bg-blend-overlay group-hover:bg-custom-bg/30 group-hover/editable:bg-custom-bg/30 group-hover/editable-module:bg-custom-bg/30 group-focus-within/editable:bg-custom-bg/30 group-module-hover:bg-custom-bg/30 group-blogpost-hover:bg-custom-bg/30":!l&&!r,"bg-blend-overlay group-hover:bg-darken-regular group-focus-within:bg-darken-regular":!l&&r},s&&"invisible"),children:o})})}function MediaOverlayItem(e){let{placement:t,alwaysVisible:n,nonInteractive:a,visibleOnFocus:o=!0,children:l}=e;return(0,i.jsx)("div",{className:(0,r.Z)("col-start-1",{"justify-self-start":t.endsWith("start"),"justify-self-center":!t.includes("-"),"justify-self-end":t.endsWith("end")},{"row-start-1 self-start":t.startsWith("top"),"row-start-2 self-center":t.startsWith("center"),"row-start-3 self-end":t.startsWith("bottom")},!n&&["opacity-0 group-focus-within/editable:opacity-100 group-hover:opacity-100 group-module-hover:opacity-100",o&&"group-focus-within:opacity-100"],!a&&"pointer-events-auto"),children:l})}},78142:function(e,t,n){n.d(t,{V:function(){return ez},K:function(){return useSettingsContext}});var i=n(52322),a=n(40489),r=n(64102),o=n(93556),l=n(2784),s=n(25265),c=n(18823),d=n(67001),u=n(11988),p=n(94367);let h={TEXT:u.D,IMAGE:c.j,VIDEO:p.U,FORM:s.$,QUOTE:d.z};var g=n(52855),m=n(16813),f=n(7459),x=n(23095),y=n(38658),v=n(92759),b=n(53582),w=n(70791),j=n(72861),I=n(28368),k=n(11775),S=n(539),C=n(97951),N=n(30006),A=n(72907),P=n(13867),T=n(82885),E=n(57316),L=n(982),O=n(39328),_=n(11289);let D={placement:"left"};function SectionTray(e){let{children:t,...n}=e;return(0,i.jsx)(_.gh,{value:D,children:(0,i.jsx)("div",{...n,className:"pointer-events-auto relative flex flex-col space-y-1 rounded-lg bg-graphite-80 p-1 ring-1 ring-graphite-60 dark:bg-graphite-0 dark:ring-graphite-5",children:t})})}SectionTray.Divider=function(){return(0,i.jsx)("div",{className:"-mx-1 h-px bg-graphite-60 dark:bg-graphite-5"})};var M=n(50687),G=n(58651),R=n(6431),z=n(72255),B=n(82475),Z=n(31939),H=n(44655),F=n(58282),W=n(62271),U=n(78536),V=n(91769),q=n(20360);function useSectionOverlay(e){let[t,n]=(0,l.useState)(!1),[i,a]=(0,l.useState)(0),r=(0,l.useRef)(null),[o,s]=(0,q.YD)(),c=(0,l.useCallback)(e=>{r.current=e,o(e)},[o]);function handleClickOutside(e){r.current&&!r.current.contains(e.target)&&n(!1)}return(0,l.useEffect)(()=>(document.addEventListener("mousedown",handleClickOutside),()=>{document.removeEventListener("mousedown",handleClickOutside)}),[]),(0,l.useEffect)(()=>{s||(null==e?void 0:e.isAnimating)||n(!1)},[s]),(0,l.useEffect)(()=>{if(t&&r.current){let{innerHeight:e}=window,{top:t,height:n}=r.current.getBoundingClientRect(),i=e-t-n-24;a(i>0?0:i)}},[t,r]),{ref:c,show:t,setShow:n,offset:i,elementRef:r}}var Y=n(13764),J=n(68851);function AddSectionButton(e){let{onClick:t,tabIndex:n,position:r}=e;return(0,i.jsx)(_.u,{adaptive:!0,content:"Add section",children:(0,i.jsx)(P.T,{"data-testid":"add-section-button",size:"xs",adaptive:!0,noShadow:!0,"aria-hidden":!0,tabIndex:n,className:(0,a.Z)("absolute left-1/2 z-add-section-button -translate-x-1/2 -translate-y-1/2 transition-all group-focus-within/section-container:pointer-events-none group-focus-within/section-editor:pointer-events-none group-focus-within/section-container:opacity-0 group-focus-within/section-editor:opacity-0 group-focus-within/section-editor:focus:pointer-events-auto group-focus-within/section-editor:focus:opacity-100","top"===r?"-mt-px":""),onClick:t,...J.nX,children:(0,i.jsx)(Y.Z,{"aria-hidden":!0,className:(0,a.Z)("h-6 fill-graphite-100 dark:fill-graphite-0")})})})}var K=n(99738),$=n(31746),X=n(47565),Q=n(868),ee=n(65628),et=n(74121),en=n(40195),ei=n(79219),ea=n(88442),er=n(59671),eo=n(56107),el=n(10523),es=n(39032),ec=n(7607),ed=n(32761),eu=n(5220),ep=n(93287),eh=n(84895),eg=n(89843),em=n(57855),ef=n(2134),ex=n(61140),ey=n(6676),ev=n.n(ey),eb=n(83978);let createPreviewPost=e=>({media_type:"VIDEO",thumbnail_url:e,media_url:e,caption:"",comments_count:0,id:e,media_product_type:"FEED",permalink:e,timestamp:"",username:"copyfolioapp"}),ew=["/assets/placeholders/instagram/image1.png","/assets/placeholders/instagram/image2.png","/assets/placeholders/instagram/image3.png","/assets/placeholders/instagram/image4.png","/assets/placeholders/instagram/image5.png","/assets/placeholders/instagram/image6.png"].map(e=>createPreviewPost(e));var ej=n(15228),eI=n(52518),ek=n(12102);let eS={Architect:[{title:[{type:"text",text:"2 500 ft"},{type:"text",text:"2",marks:[{type:"superscript"}]}],description:"Area of site",imageIndex:1},{title:"$50.000",description:"Estimated budget",imageIndex:2},{title:"2022",description:"Year",imageIndex:3},{title:"Phase 3",description:"Status of the project",imageIndex:4}],"Interior Designer":[{title:[{type:"text",text:"1 750 ft"},{type:"text",text:"2",marks:[{type:"superscript"}]}],description:"Size of real estate",imageIndex:1},{title:"$10.000",description:"Estimated budget",imageIndex:2},{title:"2022",description:"Year",imageIndex:3},{title:"Phase 3",description:"Status of the project",imageIndex:4}],"Interior Decorator":[{title:[{type:"text",text:"1 750 ft"},{type:"text",text:"2",marks:[{type:"superscript"}]}],description:"Area of site",imageIndex:1},{title:"$5.000",description:"I excel at optimizing space utilization and creating captivating interiors.",imageIndex:2},{title:"2022",description:"Year",imageIndex:3},{title:"Finished",description:"Status of the project",imageIndex:4}],"Landscape Architect":[{title:[{type:"text",text:"55 000 ft"},{type:"text",text:"2",marks:[{type:"superscript"}]}],description:"Area of site",imageIndex:1},{title:"$25.000",description:"Estimated budget",imageIndex:2},{title:"2022",description:"Year",imageIndex:3},{title:"Phase 3",description:"Status of the project",imageIndex:4}],Other:[{title:[{type:"text",text:"1 750 ft"},{type:"text",text:"2",marks:[{type:"superscript"}]}],description:"Area of site",imageIndex:1},{title:"$10.000",description:"I excel at optimizing space utilization and creating captivating interiors.",imageIndex:2},{title:"2022",description:"Year",imageIndex:3},{title:"Phase 3",description:"Status of the project",imageIndex:4}]};var eC=n(75925);let eN={type:"heading",attrs:{level:2},content:[{text:"Project intro",type:"text"}]},eA={Architect:"In this project I design and develop a hillside restaurant that offers a unique and breathtaking dining experience. The restaurant will be located on a hill with a stunning view of the surrounding landscape. The goal is to create a cozy and intimate atmosphere where guests can enjoy delicious food and drinks while taking in the beautiful surroundings.","Interior Designer":"This interior design project involves the design of a new single-family home for a family of four. The site is located in a suburban neighborhood with a mix of traditional and modern homes, and the goal of the project is to create a modern and sustainable home that is both functional and beautiful.","Interior Decorator":"This project involves the decoration of a new single-family home for a family of four. The apartment is located in a suburban neighborhood with a mix of traditional and modern homes, and the goal of the project is to create a cozy and suitable home that is both functional and beautiful.","Landscape Architect":"In this project I contributed to redesigning a university campus. I was involved in designing and implementing a cohesive and functional outdoor environment that enhances the educational experience for students, faculty, and staff. The project included the integration of natural and built elements, such as pathways, green spaces, seating areas, and water features, that encourage a sense of community and create a unique sense of place.",Other:"This project involves the design and execution of a new single-family home for a family of four. The site is located in a suburban neighborhood with a mix of traditional and modern homes, and the goal of the project is to create a modern and sustainable home that is both functional and beautiful."},eP={Architect:[{imageIndex:16,title:"5+ years",description:"I have over five years of professional work experience in the architectural industry."},{imageIndex:1,title:"27 projects",description:"The projects I’ve worked on range from large-scale hotels to small renovations."},{imageIndex:3,title:"2 awards",description:"House of the Year 2022 - 2nd prize, Archifolio Best Portfolio Award - 1st prize."}],"Interior Designer":[{imageIndex:4,title:"5+ years",description:"I have over five years of experience working as an interior designer."},{imageIndex:2,title:"27 projects",description:"I’ve worked on commercial, hospitality, healthcare, and residential projects."},{imageIndex:6,title:"2 awards",description:"Best Residential Interior Design in 2022,  Archifolio Best Portfolio Award 2023."}],"Interior Decorator":[{imageIndex:7,title:"5+ years",description:"I’ve been working as an interior decorator for five years."},{imageIndex:8,title:"27 clients",description:"I have worked with 27 satisfied clients from different cultural backgrounds."},{imageIndex:9,title:"8 certificates",description:"Among others, I’ve completed the CID certification & the  Decorator Masterclass."}],"Landscape Architect":[{title:"5+ years",description:"I have over five years of experience as a landscape architect.",imageIndex:8},{title:"27 projects",description:"I’ve worked on a wide range of projects, and 13 of them are LEED certified.",imageIndex:3},{title:"2 awards",description:"ASLA Student Award in 2019, Archifolio Best Portfolio Award in 2023.",imageIndex:10}],Other:[{title:"5+ years",description:"I have over five years of relevant work experience.",imageIndex:1},{title:"27 projects",description:"I have contributed to 27 projects since I graduated from my Master studies.",imageIndex:2},{title:"9/10 rating",description:"I asked my clients to rate my services from 1 to 10. I have received excellent ratings.",imageIndex:3}]},eT=[{title:"Topic 1",description:"Start describing your topic in a few words. Make sure to stay concise and be professional.",imageIndex:1},{title:"Topic 2",description:"Start describing your topic in a few words. Make sure to stay concise and be professional.",imageIndex:2},{title:"Topic 3",description:"Start describing your topic in a few words. Make sure to stay concise and be professional.",imageIndex:3},{title:"Topic 4",description:"Start describing your topic in a few words. Make sure to stay concise and be professional.",imageIndex:4}];function textColumnsSection(){return e=>(0,ek.i)(e,{columns:eT.map(e=>({image:{type:"IMAGE",originalWidth:522,originalHeight:560,src:"/assets/placeholders/services/image-".concat(e.imageIndex,".webp")},textNodes:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:e.title}]},{type:"paragraph",content:[{type:"text",text:e.description}]}]}}})),hideImages:!0})}var eE=n(9254);function textGridSection(){return()=>(0,eE.R)("",{textBlocks:[{alignment:"left",id:ev()(),payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:"Topic 1"}]},{type:"paragraph",content:[{type:"text",text:"Start describing your topic in a few words. Make sure to stay concise and be professional. You can write about your design process, skills and expertise, or your awards and recognitions. Avoid long descriptions and check your grammar."}]}]}},{alignment:"left",id:ev()(),payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:"Topic 2"}]},{type:"paragraph",content:[{type:"text",text:"Start describing your topic in a few words. Make sure to stay concise and be professional. You can write about your design process, skills and expertise, or your awards and recognitions. Avoid long descriptions and check your grammar."}]}]}},{alignment:"left",id:ev()(),payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:"Topic 3"}]},{type:"paragraph",content:[{type:"text",text:"Start describing your topic in a few words. Make sure to stay concise and be professional. You can write about your design process, skills and expertise, or your awards and recognitions. Avoid long descriptions and check your grammar."}]}]}},{alignment:"left",id:ev()(),payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:"Topic 4"}]},{type:"paragraph",content:[{type:"text",text:"Start describing your topic in a few words. Make sure to stay concise and be professional. You can write about your design process, skills and expertise, or your awards and recognitions. Avoid long descriptions and check your grammar."}]}]}}]})}var eL=n(23551),eO=n(41253);let toSectionId=e=>"".concat(e.toLowerCase().replace(/[\s&]+/g,"-"),"-sections");function SectionPreview(e){let{section:t,author:n}=e,[a,r]=(0,l.useState)(0),[o,s]=(0,l.useState)(0),c=(0,l.useRef)(null),d=(0,l.useRef)(null);function updateScale(){if(!c.current)return;let{width:e}=c.current.getBoundingClientRect();r(e/1024)}function updateHeight(){if(!d.current)return;let{height:e}=d.current.getBoundingClientRect();s(e)}return(0,l.useEffect)(()=>{updateHeight()},[a]),(0,l.useEffect)(()=>{setTimeout(()=>{updateHeight()})},[]),(0,l.useLayoutEffect)(()=>(window.addEventListener("resize",updateScale),updateScale(),()=>window.removeEventListener("resize",updateScale)),[]),(0,i.jsx)("div",{ref:c,children:(0,i.jsx)("div",{className:"relative",style:{width:"".concat(1024*a,"px"),height:"".concat(o,"px")},children:(0,i.jsx)("div",{className:"pointer-events-none flex items-center @container",style:{width:"".concat(1024,"px"),transform:"scale(".concat(a,")"),transformOrigin:"top left"},children:(0,i.jsx)("div",{className:"w-full overflow-hidden rounded-2xl bg-custom-bg",ref:d,children:function(){switch(t.type){case"BLOG":{let e=(0,ef.w)("short");return(0,i.jsx)(en.J,{...t,__pages:e})}case"COLLAGE":return(0,i.jsx)(ei.j,{...t});case"COVER":return(0,i.jsx)(ea.U,{...t});case"CV":return(0,i.jsx)(er.l,{...t});case"DIVIDER":return(0,i.jsx)("div",{className:"py-18",children:(0,i.jsx)(eo.F,{...t})});case"LOGO_WALL":return(0,i.jsx)(es.d,{...t});case"PROJECT_GRID":{var e;let{aspectRatioOfImages:a,sizeOfThumbnails:r}=t,{count:o}=null!==(e=ex.kl["".concat(a,"_").concat(r)])&&void 0!==e?e:{count:4},l=(0,ex.Y0)(n,o,"section");return(0,i.jsx)(ec.x,{...t,__pages:l})}case"SERVICES":return(0,i.jsx)(ed.b,{...t});case"SMART":return(0,i.jsx)(eu.k,{...t});case"SUBHEADING":return(0,i.jsx)(ep.S,{...t});case"TEXT_AROUND_MEDIA":return(0,i.jsx)(eh.y,{...t});case"INSTAGRAM_FEED":return(0,i.jsx)(el.V,{__posts:ew,...t});case"BLOGPOST_CONTENT":return(0,i.jsx)(et.X,{...t});default:return null}}()})})})})}function AddSectionDialog(e){let{authorId:t,page:n,onSelect:r,...o}=e,{data:s}=(0,eO.a)(t),[c,d]=(0,l.useState)(0),p=(0,em.$)(),h=(0,W.W)(p).data;if(!s)return null;let m=function(e,t,n){var i,a;let r=e.jobTitle,o="BLOG_POST"===n?"left":null!==(a=null===(i=eL.D3[t].defaultAlignment)||void 0===i?void 0:i.title)&&void 0!==a?a:"left",l={Icon:x.IconImage,name:"Media",sections:ej.Ab?[{name:"Large image",init:(0,f.Yk)((0,eI.l6)(r),n,{horizontal:o})},{name:"Image with text",init:(0,eI.l6)(r,!0)},{name:"Image with text and button",init:(0,eI.l6)(r,!0,!0)},{name:"Video",init:(0,eI.H2)()}]:[{name:"Image",init:(0,f.Yk)((0,eI.l6)(r),n,{horizontal:o})},{name:"Image with text",init:(0,eI.l6)(r,!0)},{name:"Gallery",init:(0,eI.NG)(r,"small")},{name:"Collage",init:(0,eI.Ki)(r,"I3-H4"),premium:!0},{name:"Video",init:(0,f.Yk)((0,eI.H2)(),n,{horizontal:o})},{name:"Desktop screenshot",init:(0,eI.Tq)("LAPTOP")},{name:"Mobile screenshot",init:(0,eI.Tq)("PHONE")}]},s={name:"Testimonials",Icon:x.IconTestimonial,sections:[{name:"Testimonial",init:(0,f.Yk)((0,eI.pM)(e),n,{horizontal:o})},{name:"Testimonial with image",init:(0,f.Yk)((0,eI.pM)(e,"random",{withImage:!0}),n,{horizontal:o})}]},c={name:"Gallery",Icon:x.IconPortfolio,sections:[{name:"Gallery 1",init:(0,eI.NG)(r,"large")},{name:"Gallery 2",init:(0,eI.NG)(r,"medium")},{name:"Gallery 3",init:(0,eI.NG)(r,"small")},{name:"Plans and sketches",init:(0,eI.Fy)(r)}]},d={name:"Collage",Icon:x.IconCollage,sections:[{name:"Side by side",init:(0,eI.Ki)(r,"I3-H5"),premium:!0},{name:"Over under",init:(0,eI.Ki)(r,"I3-V1"),premium:!0},{name:"Highlight",init:(0,eI.Ki)(r,"I4-S3"),premium:!0},{name:"Asymmetric",init:(0,eI.Ki)(r,"I4-S1"),premium:!0}]};switch(n){case"PROJECT":if(ej.Ab)return[[{Icon:x.IconTextLeft,name:"Text & CTA",sections:[{name:"Text",init:(0,eI.$y)()},{name:"Text with button",init:(0,eI.$y)(!0)},{name:"Call to action",init:(0,f.Yk)((0,eI.yl)(),n,{horizontal:o})},{name:"Text columns",init:textColumnsSection(),premium:!0},{name:"Text grid",init:textGridSection()}]},l,c,d,{name:"Dividers",Icon:x.IconSeparator,sections:[{name:"Title",init:(0,eI.hu)("Separate parts of your content with a title that adapts to your portfolio.")},{name:"Cover",init:(0,eI.ke)(r)}]}],[{name:"Info",Icon:x.IconInfoCircle,sections:[{name:"Project details",init:(0,eI.Wu)(r,"default")},{name:"Highlighted details",init:function(e){var t;let n=null!==(t=eS[e])&&void 0!==t?t:eS.Other;return e=>(0,ek.i)(e,{hideImages:!0,columns:null==n?void 0:n.map(e=>({image:{type:"IMAGE",originalWidth:522,originalHeight:560,src:"/assets/placeholders/services/image-".concat(e.imageIndex,".webp")},textNodes:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:1},content:"string"==typeof e.title?[{type:"text",text:e.title}]:e.title},{type:"paragraph",content:[{type:"text",text:e.description}]}]}}}))})}(r)},{name:"Project intro",init:function(e){var t;let n=(0,u.D)({content:{alignment:"left",payload:{type:"doc",content:[eN]}}}),i=[{type:"paragraph",content:[{type:"text",text:null!==(t=eA[e])&&void 0!==t?t:eA.Other}]}],a=(0,u.D)({content:{alignment:"left",payload:{type:"doc",content:i}}}),r=[n,a];return e=>(0,eC.d)(e,{alignment:{vertical:"top"},modules:r})}(r)},{name:"Result summary",init:(0,eI.c4)(r,"default")}]},{...s,sections:[{name:"Clients",init:(0,eI.zo)(),premium:!0},...s.sections]}]];return[[{Icon:x.IconInfoCircle,name:"About",sections:[{name:"Project details",init:(0,eI.Wu)(r)},{name:"Creative process",init:(0,eI.up)()}]},{Icon:x.IconMagazine,name:"Sample showcase",sections:[{name:"Example gallery",init:(0,eI.NG)(r,"small")},{name:"Desktop screenshots",init:(0,eI.Tq)("LAPTOP",{double:!0})},{name:"Desktop screenshot with explanation",init:(0,eI.Tq)("LAPTOP")},{name:"Mobile screenshot with explanation",init:(0,eI.Tq)("PHONE")}]},{Icon:x.IconResults,name:"Results",sections:[{name:"Results summary",init:(0,eI.c4)(r)},{name:"Numbers",init:(0,eI.mf)()}]}],[{Icon:x.IconClients,name:"Clients & logos",sections:[{name:"Client logos",init:(0,eI.B2)(),premium:!0},{name:"Client wall",init:(0,eI.zo)(),premium:!0}]},s],[{Icon:x.IconTextLeft,name:"Text & CTA",sections:[{name:"Text",init:(0,eI.$y)()},{name:"Text with button",init:(0,eI.$y)(!0)},{name:"Title",init:(0,eI.hu)()},{name:"Call to action",init:(0,f.Yk)((0,eI.yl)(),n,{horizontal:o})}]},l]];case"BLOG_POST":if(ej.Ab)return[[{Icon:x.IconTextLeft,name:"Text & CTA",sections:[{name:"Text",init:(0,eI.$y)()},{name:"Text with button",init:(0,eI.$y)(!0)},{name:"Call to action",init:(0,f.Yk)((0,eI.yl)(),n,{horizontal:o})},{name:"Text columns",init:textColumnsSection(),premium:!0},{name:"Text grid",init:textGridSection()}]},l,c,d,{name:"Dividers",Icon:x.IconSeparator,sections:[{name:"Title",init:(0,eI.hu)("Separate parts of your content with a title that adapts to your portfolio.")},{name:"Cover",init:(0,eI.ke)(r)}]}]];return[[{Icon:x.IconTextLeft,name:"Text & CTA",sections:[{name:"Heading and paragraph",init:(0,f.Yk)((0,eI.I_)(!0),n,{horizontal:o})},{name:"Simple paragraph",init:(0,f.Yk)((0,eI.I_)(),n,{horizontal:o})},{name:"Heading, paragraph and button",init:(0,f.Yk)((0,eI.I_)(!0,!0),n,{horizontal:o})},{name:"Highlighted text",init:(0,f.Yk)(function(){let e=(0,u.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"blockquote",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:"Highlight important statements with this text section to help your readers browse through your blog post."}]}]}]}}});return t=>(0,eC.d)(t,{alignment:{horizontal:"center"},modules:[e]})}(),n,{horizontal:o})},{name:"Call to action",init:(0,f.Yk)((0,eI.yl)("BLOG_POST"),n,{horizontal:o})}]},{Icon:x.IconImage,name:"Media",sections:[{name:"Image",init:(0,f.Yk)((0,eI.l6)(r,void 0,void 0,"sm"),n,{horizontal:o})},{name:"Video",init:(0,f.Yk)((0,eI.H2)("md"),n,{horizontal:o})}]}]];default:if(ej.Ab)return[[{name:"Text & CTA",Icon:x.IconTextLeft,sections:[{name:"Text",init:(0,eI.$y)()},{name:"Text with button",init:(0,eI.$y)(!0)},{name:"Call to action",init:(0,f.Yk)((0,eI.yl)(),n,{horizontal:o})},{name:"Text columns",init:textColumnsSection(),premium:!0},{name:"Text grid",init:textGridSection()}]},l,c,d,{name:"Dividers",Icon:x.IconSeparator,sections:[{name:"Title",init:(0,eI.hu)("Separate parts of your content with a title that adapts to your portfolio.")},{name:"Cover",init:(0,eI.ke)(r)}]}],[{name:"Introduction",Icon:x.IconIntroduction,sections:[{name:"About",init:(0,eI.ev)(e,t)},{name:"About with image",init:(0,eI.ev)(e,t,{withImage:!0})},{name:"Experience",init:(0,eI.TC)(r)},{name:"Resum\xe9",init:(0,eI.On)(r)}]},{name:"Services",Icon:x.IconServices,sections:[{name:"Design process",init:(0,eI.LW)(),premium:!0},{name:"Design process with images",init:(0,eI.LW)(!0),premium:!0},{name:"Big numbers",init:function(e,t){var n;let i=null!==(n=eP[e])&&void 0!==n?n:eP.Other;return e=>(0,ek.i)(e,{columns:null==i?void 0:i.map(e=>({image:{type:"IMAGE",originalWidth:522,originalHeight:560,src:"/assets/placeholders/services/image-".concat(e.imageIndex,".webp")},textNodes:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:1},content:"string"==typeof e.title?[{type:"text",text:e.title}]:e.title},{type:"paragraph",content:[{type:"text",text:e.description}]}]}}})),hideImages:!t})}(r,!1),premium:!0},{name:"Services",init:(0,eI.iI)(r,!1),premium:!0}]},{...s,sections:[{name:"Clients",init:(0,eI.zo)(),premium:!0},...s.sections]},{name:"FAQs",Icon:x.IconHelp,sections:[{name:"FAQs",init:(0,eI.Bx)(r,"columns")},{name:"FAQs in grid",init:(0,eI.Bx)(r,"tiles")}]},{name:"Contact",Icon:x.IconMail,sections:[{name:"Contact form",init:(0,eI.gU)(e)},{name:"Contact info",init:(0,eI.VY)(e,t)}]}],[{name:"Portfolio",Icon:x.IconReorder,sections:[{name:"Portfolio 01",init:(0,eI.O5)("square_medium")},{name:"Portfolio 02",init:(0,eI.O5)("horizontal_large")},{name:"Portfolio 03",init:(0,eI.O5)("original_large")},{name:"Portfolio 04",init:(0,eI.O5)("square_large")}]},{name:"Blog",Icon:x.IconBlog,sections:[{name:"Blog",init:(0,eI.iZ)("list")}]}]];return[[{Icon:x.IconIntroduction,name:"Introduction",sections:[{name:"About",init:(0,eI.ev)(e,t)},{name:"About with button",init:(0,eI.ev)(e,t,{extension:!0})},{name:"About me",init:(0,eI.ei)(r)},{name:"About me with button",init:(0,eI.ei)(r,!0)},{name:"Resum\xe9",init:(0,eI.On)(r)},{name:"Experience",init:(0,eI.TC)(r)}]},{Icon:x.IconServices,name:"Services",sections:[{name:"Services with images",init:(0,eI.iI)(r,!0),premium:!0},{name:"Services",init:(0,eI.iI)(r),premium:!0},{name:"Process",init:(0,eI.f8)(r),premium:!0}]},{Icon:x.IconHelp,name:"FAQs",sections:[{name:"FAQs in columns",init:(0,eI.Bx)(r,"columns")},{name:"FAQs in tiles",init:(0,eI.Bx)(r,"tiles")}]},{Icon:x.IconMail,name:"Contact",sections:[{name:"Contact form",init:(0,eI.gU)(e)},{name:"Contact info",init:(0,eI.VY)(e,t)}]}],[{Icon:x.IconClients,name:"Clients & logos",sections:[{name:"Client logos",init:(0,eI.B2)(),premium:!0},{name:"Client wall",init:(0,eI.zo)(),premium:!0}]},s],[{Icon:x.IconPortfolio,name:"Portfolio",sections:[{name:"Portfolio",init:(0,eI.O5)("square_medium")},{name:"Portfolio with title",init:(0,eI.O5)("square_medium",!0)}]},{Icon:x.IconBlog,name:"Blog",sections:[{name:"List layout blog",init:(0,eI.iZ)("list")},{name:"Grid layout blog",init:(0,eI.iZ)("grid")},{name:"Simple list blog",init:(0,eI.iZ)("simple-list")}]},{Icon:g.I_,name:"Social media",sections:[{name:"Instagram feed",init:e=>({id:ev()(),type:"INSTAGRAM_FEED",pageId:e,version:1,accountId:null,layout:{shape:"square",rows:3},content:{captions:!0,captionPlacement:"hover",openPostsOnInstagram:!0},showTitle:!0,title:{alignment:"left",payload:(0,eb.UZ)((0,eb.s_)("Latest posts on Instagram",2))}}),premium:!0}]}],[{Icon:x.IconTextLeft,name:"Text & CTA",sections:[{name:"Text",init:(0,eI.$y)()},{name:"Text with button",init:(0,eI.$y)(!0)},{name:"Title",init:(0,f.Yk)((0,eI.hu)(),n,{horizontal:o})},{name:"Call to action",init:(0,f.Yk)((0,eI.yl)(),n,{horizontal:o})}]},l]]}}(s,h.template,n.type);return(0,i.jsx)(J.Vq,{"data-testid":"add-section-dialog",padding:"none",className:"overflow-hidden rounded-lg bg-graphite-0",size:"lg",...o,children:(0,i.jsxs)(J.cZ,{className:"flex max-h-[75vh] w-full flex-nowrap !space-y-0",children:[(0,i.jsx)("aside",{className:"w-[14.75rem] overflow-y-auto overflow-x-visible bg-graphite-5 py-6 pl-[34px]",children:(0,i.jsx)("ul",{className:"space-y-5",children:m.map((e,t)=>(0,i.jsx)("li",{children:(0,i.jsx)("ul",{className:"space-y-1",children:e.map(e=>{let t=m.flat().findIndex(t=>t.name===e.name);return(0,i.jsx)("li",{children:(0,i.jsx)(ee.A,{active:t===c,to:toSectionId(e.name),icon:(0,i.jsx)(e.Icon,{className:"h-5 w-5"}),label:e.name})},e.name)})})},"group-".concat(t)))})}),(0,i.jsxs)("section",{className:"flex flex-1 flex-col",children:[(0,i.jsxs)("div",{className:(0,a.Z)("z-10 flex items-center justify-between p-6 transition-all"),children:[(0,i.jsx)(J.$N,{children:"Insert section"}),(0,i.jsxs)("div",{className:"space-x-6",children:[(0,i.jsx)(_.u,{placement:"left",content:"We’ll generate your sections based on your profession.",children:(0,i.jsx)(T.h,{tabIndex:-1,growOutside:!0,"aria-hidden":!0,children:(0,i.jsx)(x.IconHelp,{"aria-hidden":!0,className:"h-6"})})}),(0,i.jsx)(T.h,{onClick:o.onDismiss,growOutside:!0,"aria-hidden":!0,children:(0,i.jsx)(x.IconX,{"aria-hidden":!0,className:"h-6"})})]})]}),(0,i.jsx)("section",{className:"w-full space-y-16 overflow-y-auto px-6 pb-[20vh]",children:m.flat().map((e,t)=>{let o=(0,X.hv)(e.sections);return(0,i.jsxs)("div",{className:"space-y-6",children:[(0,i.jsx)(eg.b,{scrollMargin:"none",rootMargin:"0% 0% -65% 0%",onChange:e=>{e&&d(t)},id:toSectionId(e.name),children:(0,i.jsxs)("div",{className:"flex items-center gap-4",children:[(0,i.jsx)("span",{className:"text-sm font-semibold text-graphite-100",children:e.name}),(0,i.jsx)("div",{className:"h-px flex-1 bg-graphite-10"})]})},e.name),(0,i.jsx)("div",{className:(0,a.Z)("grid grid-cols-2 gap-8 pt-[2px]"),children:o.map((t,a)=>(0,i.jsx)("div",{className:"space-y-8",children:t.map(e=>(0,i.jsxs)("div",{"aria-label":e.name,"aria-hidden":!0,role:"button",className:"group cursor-pointer space-y-4",onClick:()=>{r(e.init)},children:[(0,i.jsx)("div",{className:"rounded bg-custom-bg ring-1 ring-graphite-10 transition-all group-hover:shadow-soft-xl group-hover:ring-2 group-hover:ring-graphite-100",children:(0,i.jsx)(SectionPreview,{author:s,section:e.init(n.id)})}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)("h5",{className:"font-semibold text-graphite-40 group-hover:text-graphite-100",children:e.name}),e.premium&&(0,i.jsx)(Q.v,{intent:"success",children:"Premium"})]})]},e.name))},"".concat(e.name,"-").concat(0===a?"left":"right")))})]},e.name)})})]})]})})}var e_=n(42782);function DeleteSectionDialog(e){let{onDelete:t,...n}=e;return(0,i.jsxs)(J.Vq,{"data-testid":"delete-section-dialog",...n,size:"sm",children:[(0,i.jsxs)(J.cZ,{className:"text-center",children:[(0,i.jsx)(J.$N,{children:"Delete section?"}),(0,i.jsx)("p",{className:"text-center",children:"If you choose delete now, all the content in this section will be lost. Are you sure?"})]}),(0,i.jsxs)(J.kX,{children:[(0,i.jsx)(E.k,{size:"lg",onClick:n.onDismiss,children:"Keep section"}),(0,i.jsx)(e_.K,{size:"lg",intent:"danger",onClick:t,children:"Delete"})]})]})}var eD=n(17949),eM=n(87708),eG=n(90918);function Indicator(e){let{className:t,...n}=e;return(0,i.jsx)("span",{className:(0,a.Z)("inline-flex h-8 items-center rounded-full bg-graphite-80 px-2.5 text-xs font-semibold leading-4 text-graphite-0 backdrop-blur-sm",t),...n})}function PremiumSectionWidget(e){let{premiumSectionType:t}=e,[n,a]=(0,l.useState)(!1),{show:r,setShow:o,ref:s}=useSectionOverlay();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,eD.Z)("absolute left-0 top-0 p-4 opacity-100 transition-opacity group-focus-within/section-container:pointer-events-none group-focus-within/section-editor:pointer-events-none group-focus-within/section-editor:opacity-0",r&&"z-popover"),children:r?(0,i.jsxs)("div",{ref:s,className:"space-y-6 rounded-lg bg-graphite-0 p-6 shadow-soft-xl ring-1 ring-graphite-5",children:[(0,i.jsx)("header",{children:(0,i.jsxs)("div",{className:"flex items-start justify-between space-x-4",children:[(0,i.jsx)("div",{className:"space-y-3",children:(0,i.jsx)("h2",{className:"text-2xl font-bold leading-none text-graphite-100",children:"Premium section"})}),(0,i.jsx)(T.h,{growOutside:!0,"aria-label":"Close",onClick:()=>{o(!1)},children:(0,i.jsx)(A.Z,{"aria-hidden":!0,className:"h-6"})})]})}),(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"text-left text-base text-graphite-40",children:["This is only a preview — upgrade so your ",(0,i.jsx)("br",{})," visitors can see this section live too."]})}),(0,i.jsx)(e_.K,{className:"w-full",onClick:()=>{a(!0),(0,G.w)({event:"openPricingDialog",from:"PremiumSection_".concat(t)}),o(!1)},children:"Get premium"})]}):(0,i.jsx)(eG.z,{onClick:()=>{o(!0)},children:(0,i.jsx)(Indicator,{className:"pointer-events-auto bg-opacity-50 transition-colors hover:bg-opacity-100 focus:bg-opacity-100 motion-reduce:transition-none",children:(0,i.jsxs)("span",{className:"inline-flex items-center space-x-1",children:[(0,i.jsx)(eM.Z,{"aria-hidden":!0,className:"-ml-0.5 h-4"}),(0,i.jsx)("span",{children:"Premium section"})]})})})}),n&&(0,i.jsx)(O.n,{onDismiss:()=>{a(!1)}})]})}let eR=l.createContext({setShowSettings:()=>{}});function useSettingsContext(){return l.useContext(eR)}let ez=l.forwardRef(function(e,t){let{section:n,unremovable:s,unmovable:c,noInsertBefore:d,noInsertAfter:u,actionButton:p,actionButtonPlacement:_="before",children:D,settings:q,toolbarClassName:Y,onDelete:J}=e,X=null===n,Q=!X&&Reflect.has(n,"showNavigation"),[ee,et]=l.useState(null),[en,ei]=l.useState(!1),[ea,er]=l.useState(!1),[eo]=(0,F.k)({required:!0}),[el,es]=l.useState(!1),{ref:ec,show:ed,setShow:eu,offset:ep}=useSectionOverlay(),{ref:eh,elementRef:eg,show:em,setShow:ef,offset:ex}=useSectionOverlay(),{ref:ey,show:ev,setShow:eb,offset:ew}=useSectionOverlay({isAnimating:el}),ej=(0,M.I)(),eI=(0,Z.b)(ej).data,ek=(0,H.q)(ej).data,eS=(0,W.W)(ek.siteId).data,eC=(0,U.P)(eS.authorId).data,eN=eI.findIndex(e=>e.id===(null==n?void 0:n.id)),{mutate:eA}=function(){let{getQueryData:e,setQueryData:t,invalidateQueries:n}=R.S.useContext();return R.S.useMutation("Section.create",{onSuccess:(i,a)=>{let r=e(["Section.findAllByPageId",a.pageId]);if(r){if(a.sibling){let e=r.findIndex(e=>e.id===a.sibling.id);if(e>=0){let n=e+("before"===a.sibling.relativePosition?1:0);t(["Section.findAllByPageId",a.pageId],[...r.slice(0,n),i,...r.slice(n)])}else n(["Section.findAllByPageId",a.pageId])}else t(["Section.findAllByPageId",a.pageId],[...r,i])}let o=e(["Page.find",i.pageId]);(0,G.w)({event:"createSection",sectionType:i.type,pageType:null==o?void 0:o.type})}})}(),{mutate:eP}=(0,B.n)(),{mutate:eT}=(0,z.G)(),{mutate:eE}=function(){let{cancelQuery:e,getQueryData:t,setQueryData:n,queryClient:i}=R.S.useContext();return R.S.useMutation("Section.move",{onMutate:async a=>{let{id:r,direction:o}=a,l=i.getQueryCache().findAll(["Section.findAllByPageId"]).flatMap(e=>e.state.data).find(e=>e.id===r);if(!l||(0,f.wP)(l))return{};await e(["Section.findAllByPageId",l.pageId]);let s=t(["Section.findAllByPageId",l.pageId]);if(!s)return{};let c=s[s.indexOf(l)+("up"===o?-1:1)];if(!c||(0,f.wP)(c))return{};let d=[...s];return d[s.indexOf(l)]={...c,version:c.version+1},d[s.indexOf(c)]={...l,version:l.version+1},n(["Section.findAllByPageId",l.pageId],d),{queryId:["Section.findAllByPageId",l.pageId],prevQueryData:s}},onError:(e,t,i)=>{i.prevQueryData&&n(i.queryId,i.prevQueryData)}})}(),[eL,eO]=(0,r.H)();function handleMove(e){var t;if(X)return;eE({id:n.id,direction:e});let i=(0,L.d)(),a=(null==i?void 0:i.scrollTop)||0,r="up"===e?eN-1:eN+1,o=(null===(t=document.getElementById("section-".concat(eI[r].id)))||void 0===t?void 0:t.clientHeight)||0,l="up"===e?a-o:a+o;eO(a,l,{type:"tween",duration:.25,ease:"easeOut",autoplay:!0,onPlay:()=>{es(!0)},onComplete:()=>{es(!1)},onUpdate:e=>{i&&(i.scrollTop=e)}})}function handleAddSection(e){ee&&(eA({...e(ej),pageId:ej,sibling:Q||X?void 0:{id:n.id,relativePosition:ee}},{onSuccess:e=>{let t=document.getElementById("section-".concat(e.id));t&&(0,m.z)(t,{behavior:"smooth",scrollMode:"if-needed"})}}),et(null))}function handleAddModule(e){if(Q||X||!("modules"in n))return;let{email:t}=eo.user,i=[...n.modules,h[e](t)];eP({...n,modules:i,alignment:{vertical:"top"}}),eu(!1)}let{isOverlay:e_}=(0,V.b)(),eD=e_&&(null==n?void 0:n.type)==="NAVIGATION";if(X)return(0,i.jsxs)("div",{className:"flex min-h-[300px] grow items-center justify-center",children:[(0,i.jsx)(P.T,{shape:"pill",size:"xs",onClick:()=>{et("before")},children:(0,i.jsxs)("span",{className:"inline-flex items-center space-x-1",children:[(0,i.jsx)(x.IconPlus,{"aria-hidden":!0,className:"h-4"}),(0,i.jsx)("span",{children:"Add section"})]})}),ee&&(0,i.jsx)(AddSectionDialog,{authorId:eS.authorId,page:ek,onSelect:e=>handleAddSection(e),onDismiss:()=>{et(null)}})]});let eM=p||"BLOG_POST"!==ek.type&&"SMART"===n.type&&n.modules.length<2||q&&("SMART"!==n.type||"BLOG_POST"!==ek.type)||!c||!s;return(0,i.jsxs)("div",{className:(0,a.Z)(!Q&&"BLOGPOST_STEPPER"!==n.type&&"-my-px","BLOGPOST_STEPPER"===n.type&&"-mb-px",eD&&"absolute inset-x-0 top-0 z-10"),ref:eL,children:[(0,i.jsxs)("div",{id:"".concat(n.id,"_editor"),className:(0,a.Z)("group-outer group/section-editor relative border-y border-transparent focus-within:border-transparent hover:border-custom-bg-16",{"border-custom-button-rgba/10":"BILLBOARD"===eS.template&&"SUBHEADING"===n.type}),children:[(0,i.jsxs)("div",{className:em||ev?void 0:"opacity-0 group-focus-within/section-editor:opacity-100 group-hover/section-editor:opacity-100",children:[!d&&(0,i.jsx)(AddSectionButton,{position:"top",onClick:()=>et("after")}),(0,i.jsx)("div",{className:(0,a.Z)("pointer-events-none absolute inset-y-0 right-0",em||ev?"z-30":"z-[25] translate-x-18 transition-transform group-focus-within/section-editor:translate-x-18 group-focus-within/section-editor:focus-within:translate-x-0 group-hover/section-editor:translate-x-0 group-focus-within/section-editor:group-hover/section-editor:translate-x-18 group-focus-within/section-editor:group-hover/section-editor:focus-within:translate-x-0"),children:(0,i.jsxs)("div",{className:(0,a.Z)("sticky top-0 flex items-start gap-3 px-4 py-6",Y),children:[(0,i.jsxs)("div",{children:[ed&&(0,i.jsxs)(o.m.div,{initial:{x:10,opacity:0},animate:{x:0,y:ep,opacity:1},transition:{duration:.15},ref:ec,className:"pointer-events-auto relative z-20 min-w-[360px] space-y-6 rounded-lg bg-graphite-0 shadow-soft-xl ring-1 ring-graphite-5",children:[(0,i.jsx)("header",{className:"px-6 pt-6",children:(0,i.jsxs)("div",{className:"flex items-start justify-between space-x-4",children:[(0,i.jsx)("div",{className:"space-y-3",children:(0,i.jsx)("h2",{className:"text-2xl font-bold leading-none text-graphite-100",children:"Add to this section"})}),(0,i.jsx)(T.h,{growOutside:!0,"aria-label":"Close",onClick:()=>{eu(!1)},children:(0,i.jsx)(A.Z,{"aria-hidden":!0,className:"h-6"})})]})}),(0,i.jsxs)("div",{className:"space-y-3 px-6 pb-6",children:[(0,i.jsx)($.o,{onClick:()=>handleAddModule("TEXT"),leading:(0,i.jsx)(j.Z,{className:"h-6 text-graphite-20"}),children:"Text"}),(0,i.jsx)($.o,{onClick:()=>handleAddModule("IMAGE"),leading:(0,i.jsx)(v.Z,{className:"h-6 text-graphite-20"}),children:"Image"}),(0,i.jsx)($.o,{onClick:()=>handleAddModule("VIDEO"),leading:(0,i.jsx)(I.Z,{className:"h-6 text-graphite-20"}),children:"Video"}),"SMART"===n.type&&!n.modules.some(e=>"FORM"===e.type)&&(0,i.jsx)($.o,{onClick:()=>handleAddModule("FORM"),leading:(0,i.jsx)(y.Z,{className:"h-6 text-graphite-20"}),children:"Form"}),(0,i.jsx)($.o,{onClick:()=>handleAddModule("QUOTE"),leading:(0,i.jsx)(w.Z,{className:"h-6 text-graphite-20"}),children:"Quote"})]})]}),em&&(0,i.jsxs)(o.m.div,{initial:{x:10,opacity:0},animate:{x:0,y:ex,opacity:1,height:"auto"},layout:!0,transition:{duration:0,x:{duration:.15},y:{duration:.15}},ref:eh,"data-testid":"section-settings-".concat(n.id),className:"pointer-events-auto relative z-20 max-h-[calc(100vh-112px)] min-w-[360px] space-y-6 rounded-lg bg-graphite-0 shadow-soft-xl ring-1 ring-graphite-5",children:[(0,i.jsx)(o.m.header,{layout:!0,className:"px-6 pt-6",children:(0,i.jsxs)("div",{className:"flex items-start justify-between space-x-4",children:[(0,i.jsx)("div",{className:"space-y-3",children:(0,i.jsx)("h2",{className:"text-2xl font-bold leading-none text-graphite-100",children:"Section settings"})}),(0,i.jsx)(T.h,{growOutside:!0,"aria-label":"Close",onClick:()=>{ef(!1)},children:(0,i.jsx)(A.Z,{"aria-hidden":!0,className:"h-6"})})]})}),(0,i.jsx)(eR.Provider,{value:{setShowSettings:ef,ref:eg},children:(0,i.jsx)("main",{children:q})})]}),ev&&(0,i.jsxs)(o.m.div,{initial:{x:10,opacity:0},animate:{x:0,y:ew,opacity:1},transition:{duration:.15},ref:ey,className:"pointer-events-auto relative z-20 w-[360px] space-y-6 rounded-lg bg-graphite-0 shadow-soft-xl ring-1 ring-graphite-5",children:[(0,i.jsx)("header",{className:"px-6 pt-6",children:(0,i.jsxs)("div",{className:"flex items-start justify-between space-x-4",children:[(0,i.jsx)("div",{className:"space-y-3",children:(0,i.jsx)("h2",{className:"text-2xl font-bold leading-none text-graphite-100",children:"Move section"})}),(0,i.jsx)(T.h,{growOutside:!0,"aria-label":"Close",onClick:()=>{eb(!1)},children:(0,i.jsx)(A.Z,{"aria-hidden":!0,className:"h-6"})})]})}),(0,i.jsxs)("div",{className:"space-y-3 px-6 pb-6",children:[(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,i.jsx)(E.k,{disabled:!eI[eN-1]||(0,f.wP)(eI[eN-1]),onClick:()=>handleMove("up"),children:(0,i.jsx)(S.Z,{className:"m-auto h-6"})}),(0,i.jsx)(E.k,{disabled:eN===eI.length-1,onClick:()=>handleMove("down"),children:(0,i.jsx)(k.Z,{className:"m-auto h-6"})})]}),(0,i.jsx)("p",{className:"text-graphite-40",children:"Move the section up or down on this page to find the perfect spot for it."})]})]})]}),eM&&(0,i.jsxs)(SectionTray,{children:["before"===_&&p,"BLOG_POST"!==ek.type&&"SMART"===n.type&&n.modules.length<2&&(0,i.jsx)(K.r,{tooltipContent:"Add module",active:ed,onClick:()=>eu(!ed),children:(0,i.jsx)(b.Z,{"aria-hidden":!0,className:"h-6"})}),q&&("SMART"!==n.type||"BLOG_POST"!==ek.type)&&(0,i.jsx)(K.r,{"data-testid":"section-tray-".concat(n.id,"-settings"),active:em,tooltipContent:"Section settings",onClick:()=>{ef(!em)},children:(0,i.jsx)(N.Z,{className:"h-6"})}),!c&&(0,i.jsx)(K.r,{tooltipContent:"Move section",onClick:()=>{eb(!ev)},active:ev,children:(0,i.jsx)(C.Z,{className:"h-6"})}),!s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(SectionTray.Divider,{}),(0,i.jsx)(K.r,{"data-testid":"section-tray-".concat(n.id,"-delete"),intent:"danger",tooltipContent:"Delete section",onClick:()=>{J?J():ei(!0)},children:(0,i.jsx)(g.HG,{"aria-hidden":!0,className:"h-6"})})]}),"after"===_&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(SectionTray.Divider,{}),p]})]})]})})]}),(0,f.bD)(n)&&"PREMIUM"!==eC&&(0,i.jsx)(PremiumSectionWidget,{premiumSectionType:n.type}),(0,i.jsx)("div",{id:"section-".concat(n.id),className:(0,a.Z)(el&&"bg-custom-bg",{"pb-6":"HERO"===n.type&&!["MUSEUM","MUSEUM_LEGACY","PALAZZO","PALAZZO_LEGACY","MODULAR","BILLBOARD","LETTERPRESS","PREMIER","JOURNAL","TYPEWRITER","LOFT","CLASSICA","DECO","BEAUX","DOWNTOWN","HAUS"].includes(eS.template),"py-6":["SMART"].includes(n.type),"pt-6":["CV"].includes(n.type)}),ref:t,children:D}),!u&&(0,i.jsx)("div",{className:"opacity-0 group-focus-within/section-editor:opacity-100 group-hover/section-editor:opacity-100",children:(0,i.jsx)(AddSectionButton,{position:"bottom",onClick:()=>et("before"),tabIndex:-1})})]}),ee&&(0,i.jsx)(AddSectionDialog,{authorId:eS.authorId,page:ek,onSelect:e=>handleAddSection(e),onDismiss:()=>{et(null)}}),ea&&(0,i.jsx)(O.n,{onDismiss:()=>{er(!1)}}),en&&!J&&(0,i.jsx)(DeleteSectionDialog,{onDismiss:()=>{ei(!1)},onDelete:()=>{eT(n.id)}})]})})},44010:function(e,t,n){n.d(t,{$l:function(){return SidebarHeader},HX:function(){return SidebarWrapper},IC:function(){return PendingChangesSidebarFooter},TZ:function(){return x},YE:function(){return Sidebar}});var i=n(52322),a=n(64266),r=n(40489),o=n(93556),l=n(2784),s=n(35290),c=n(11475),d=n(72907),u=n(82885),p=n(42782),h=n(57316),g=n(1545),m=n(79209);let f="22.125rem";function SidebarWrapper(e){let{shrinksSibling:t,...n}=e,a=t?"marginLeft":"x";return(0,i.jsx)(o.m.aside,{initial:{[a]:"-".concat(f),zIndex:30},animate:{[a]:"0rem"},exit:{[a]:"-".concat(f)},transition:{ease:s.mZ},style:{width:f},className:"mr-[-22.125rem] desktop:-mr-0",...n})}function Sidebar(e){let{id:t,onClose:n,children:a,...r}=e;return(0,i.jsx)(SidebarWrapper,{id:t,...r,children:(0,i.jsxs)("div",{className:"relative h-full text-graphite-40 shadow-soft-2xl",children:[(0,i.jsx)("div",{className:"absolute right-0 top-0 z-10 p-6",children:(0,i.jsx)(u.h,{growOutside:!0,"aria-label":"Close sidebar","aria-controls":t,onClick:n,children:(0,i.jsx)(d.Z,{"aria-hidden":!0,className:"h-6"})})}),a]})})}function SidebarHeader(e){let{title:t,description:n,noExit:o,tabs:l,activeTab:s,onTabChange:d}=e,[,p]=(0,g.sB)();return(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("header",{className:"space-y-2.5 p-6",children:[(0,i.jsxs)("div",{className:"flex items-center space-x-4",children:[!o&&(0,i.jsx)(u.h,{growOutside:!0,"aria-label":"Back",onClick:p,children:(0,i.jsx)(c.Z,{"aria-hidden":!0,className:"h-6"})}),(0,i.jsx)("h2",{className:"text-2xl font-bold leading-none text-graphite-100",children:t})]}),(0,i.jsx)("p",{children:n})]}),(0,i.jsx)(a.fC,{onValueChange:d,children:(0,i.jsx)(a.aV,{className:"space-x-4 pl-6",children:null==l?void 0:l.map(e=>(0,i.jsxs)(a.xz,{className:(0,r.Z)("relative pb-[14px] capitalize leading-none",s===e?"font-bold text-graphite-100":"text-graphite-60 hover:text-graphite-100"),value:e,children:[e,s===e&&(0,i.jsx)("span",{className:"absolute inset-x-0 bottom-0 rounded-t border-b-2 border-graphite-100"})]},e))})})]})}let x=l.forwardRef((e,t)=>{let{children:n}=e;return(0,i.jsx)("div",{ref:t,className:"flex-1 overflow-auto",children:n})}),y="6.0625rem";function SidebarFooter(e){let{visible:t,onSave:n,onDiscard:a}=e;return(0,i.jsxs)(o.m.footer,{initial:{marginBottom:"-".concat(y)},animate:{marginBottom:t?"0rem":"-".concat(y)},className:"grid grid-cols-2 gap-6 p-6",children:[(0,i.jsx)(h.k,{onClick:a,children:"Cancel"}),(0,i.jsx)(p.K,{onClick:n,children:"Save"})]})}function PendingChangesSidebarFooter(e){let{onBeforeSave:t}=e,{dirty:n,setPendingMutation:a,applyPendingMutation:r}=(0,m.Ni)(),[o,s]=l.useState(!1),[,c]=(0,g.sB)();return l.useEffect(()=>{o&&c()},[c,o]),(0,i.jsx)(SidebarFooter,{visible:n,onSave:async()=>{var e;if(null===(e=null==t?void 0:t())||void 0===e||e){let e=await r();e&&s(!0)}},onDiscard:()=>{a(null)}})}},99875:function(e,t,n){n.d(t,{f:function(){return AreYouSureDialog}});var i=n(52322),a=n(2784),r=n(42782),o=n(57316),l=n(68851);function AreYouSureDialog(e){let{onNo:t,onYes:n,title:s,content:c,noText:d="Cancel",yesText:u,yesIntent:p,loading:h,...g}=e,m=a.useRef(null);return(0,i.jsxs)(l.Vq,{size:"sm",initialFocusRef:m,...g,children:[(0,i.jsxs)(l.cZ,{className:"text-center",children:[(0,i.jsx)(l.$N,{children:s}),(0,i.jsx)("p",{children:c})]}),t?(0,i.jsxs)(l.kX,{children:[(0,i.jsx)(o.k,{size:"lg",onClick:t,children:d}),(0,i.jsx)(r.K,{intent:p,className:"whitespace-nowrap",ref:m,size:"lg",onClick:n,loading:h,children:u})]}):(0,i.jsx)(o.k,{className:"w-full",size:"lg",onClick:n,children:u})]})}},68200:function(e,t,n){n.d(t,{q:function(){return DocumentUploadDialog}});var i=n(52322),a=n(40489),r=n(87502),o=n(40641),l=n(2784),s=n(74424),c=n(37769),d=n(2671),u=n(94927),p=n(80740),h=n(68851),g=n(77948),m=n(94218),f=n(72915),x=n(21112);function DocumentUploadDialog(e){let{onChange:t,onDismiss:n}=e,{mutateAsync:y}=(0,m.R)(),[v,b]=l.useState("idle"),[w,{start:j,finish:I}]=(0,c.T)(),[k,S]=l.useState(null),[C,N]=l.useState(null),A=(0,f.$)(t),{handleRejection:P}=(0,x.i)({accept:"document-only",onError:S}),{getRootProps:T,getInputProps:E,isDragActive:L}=(0,s.uI)({onDropAccepted:async e=>{let t,[i]=e;if(i){if(!r.pj.includes(i.type)){S("We only handle PDF documents"),b("error");return}if(i.size>o.wG){S("Shoot, ".concat(i.name," (").concat((0,d.td)(i.size),") is larger than ").concat((0,d.td)(o.wG),".")),b("error");return}b("loading"),j(),N({name:i.name,size:i.size});try{t=await y(i)}catch(e){S("Our servers are a bit lazy, please try again later"),N(null),b("error");return}b("loaded"),I(),A(t),null==n||n()}},onDropRejected:P,accept:r.d7,noClick:"loading"===v||"loaded"===v,noDrag:"loading"===v||"loaded"===v,multiple:!1});return(0,i.jsxs)(h.Vq,{"data-testid":"document-upload-dialog",onDismiss:n,size:"lg",children:[(0,i.jsx)(h.fK,{children:(0,i.jsxs)("div",{className:"space-y-3",children:[(0,i.jsx)(h.$N,{children:"Upload PDF file"}),(0,i.jsx)("p",{className:"text-graphite-40",children:"Smaller PDF files appear quicker when your visitors open them."})]})}),(0,i.jsx)(h.cZ,{children:(0,i.jsxs)("div",{...T(),className:(0,a.Z)("group -mt-2 flex h-[468px] flex-col items-center justify-center space-y-8 rounded border border-dashed",L?"border-2 border-graphite-100":"border-graphite-10","idle"===v||"error"===v?"cursor-pointer":"cursor-default"),children:[(0,i.jsx)("input",{type:"file",className:"sr-only",...E(),multiple:!1}),"idle"===v&&(0,i.jsx)(g.o,{}),"error"===v&&(0,i.jsx)(g.o,{error:k}),("loading"===v||"loaded"===v)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"h-18 w-18",children:(0,i.jsx)(p.o,{percentage:w,shadow:"lg",children:(0,i.jsx)(u.Z,{className:"h-6 w-6 text-graphite-100"})})}),(0,i.jsxs)("div",{className:"flex flex-col items-center justify-between space-y-2",children:[C&&(0,i.jsxs)("p",{className:"text-base text-graphite-40",children:[C.name," (",(0,d.td)(C.size),")"]}),(0,i.jsxs)("p",{className:"text-base font-semibold text-graphite-100",children:[w,"%"]})]})]})]})})]})}},71427:function(e,t,n){n.d(t,{h:function(){return r}});var i=n(25237),a=n.n(i);let r=a()(()=>Promise.all([n.e(691),n.e(1820),n.e(623),n.e(2090)]).then(n.bind(n,52090)).then(e=>e.ImageUploadDialog),{loadableGenerated:{webpack:()=>[52090]},ssr:!1})},39328:function(e,t,n){n.d(t,{n:function(){return PricingDialog}});var i=n(52322),a=n(40489),r=n(39097),o=n.n(r),l=n(2784),s=n(52855),c=n(21694),d=n(868),u=n(67087),p=n(42782),h=n(57316),g=n(68851),m=n(15228),f=n(58651);function FeatureListItem(e){let{emphasis:t="none",children:n}=e;return(0,i.jsxs)("li",{className:"flex space-x-2",children:[(0,i.jsx)(s.Jr,{"aria-hidden":!0,className:(0,a.Z)("h-6","negative"===t?"text-graphite-20":"text-emerald-40")}),(0,i.jsx)("div",{className:(0,a.Z)("none"===t?"text-graphite-40":"font-bold text-graphite-100"),children:n})]})}function PricingDialog(e){let{size:t="md",onDismiss:n,...a}=e,[r,x]=l.useState("year");return(0,i.jsxs)(g.Vq,{size:t,onDismiss:n,className:"max-h-[90vh] overflow-y-auto bg-graphite-0",...a,children:[(0,i.jsx)(g.fK,{children:(0,i.jsxs)(g.$N,{children:["Get the most out of ",m.sG]})}),(0,i.jsx)(g.cZ,{children:(0,i.jsxs)("div",{className:"-mt-2 grid grid-cols-2 gap-6",children:[(0,i.jsxs)("div",{className:"flex flex-col divide-y rounded shadow-soft-sm transition hover:-translate-y-2 hover:shadow-soft-xl",children:[(0,i.jsx)("div",{className:"flex items-center justify-between p-6",children:(0,i.jsxs)("div",{className:"space-y-1",children:[(0,i.jsx)("h3",{className:"font-bold text-graphite-100",children:"Free"}),(0,i.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,i.jsx)("h1",{className:"text-6xl font-bold text-graphite-100",children:"$0"}),(0,i.jsxs)("p",{className:"leading-6 text-graphite-40",children:["per",(0,i.jsx)("br",{}),"month"]})]})]})}),(0,i.jsx)("div",{className:"py-4 pl-6",children:(0,i.jsx)("p",{className:"leading-6 text-graphite-40",children:"No credit card needed"})}),(0,i.jsxs)("div",{className:"flex flex-1 flex-col justify-between space-y-8 p-6",children:[(0,i.jsxs)("ul",{className:"space-y-2",children:[(0,i.jsx)(FeatureListItem,{children:"free website templates"}),(0,i.jsx)(FeatureListItem,{children:"mobile-friendly websites"}),(0,i.jsx)(FeatureListItem,{children:m.Ab?"project page writing tips":"case study writing tips"}),!m.Ab&&(0,i.jsx)(FeatureListItem,{children:"one-click mockup frames"}),(0,i.jsx)(FeatureListItem,{emphasis:"negative",children:"3 website pages"}),(0,i.jsx)(FeatureListItem,{emphasis:"negative",children:"1 public project"}),(0,i.jsx)(FeatureListItem,{emphasis:"negative",children:"1 public blog post"})]}),(0,i.jsx)(h.k,{size:"lg",disabled:!0,children:(0,i.jsxs)("span",{className:"flex items-center justify-center space-x-[10px]",children:[(0,i.jsx)(s.Jr,{className:"h-6"}),(0,i.jsx)("span",{children:"Your current plan"})]})})]})]}),(0,i.jsxs)("div",{className:"flex flex-col divide-y rounded shadow-soft-sm transition hover:-translate-y-2 hover:shadow-soft-xl",children:[(0,i.jsxs)("div",{className:"relative flex items-center justify-between p-6",children:[(0,i.jsxs)("div",{className:"space-y-1",children:[(0,i.jsx)("h3",{className:"font-bold text-graphite-100",children:"Premium"}),(0,i.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,i.jsxs)("h1",{className:"text-6xl font-bold text-graphite-100",children:["$","month"===r?m.od.MONTHLY:m.od.YEARLY/12]}),(0,i.jsxs)("p",{className:"leading-6 text-graphite-40",children:["per",(0,i.jsx)("br",{}),"month"]})]})]}),!m.Ab&&(0,i.jsx)("div",{className:"absolute right-[-19px] top-[-12px]",children:(0,i.jsx)(c.Z,{})})]}),(0,i.jsxs)("div",{className:"relative flex space-x-4 py-4 pl-6",children:[(0,i.jsx)(u.A,{label:"Pay yearly",labelPlacement:"right",checked:"year"===r,onCheckedChange:()=>{x(e=>"year"===e?"month":"year")}}),"year"===r&&(0,i.jsx)(d.v,{intent:"success",children:"Save $72"})]}),(0,i.jsx)("div",{className:"flex flex-1 flex-col justify-between overflow-hidden",children:(0,i.jsxs)("ul",{className:"max-h-[260px] space-y-2 overflow-auto p-6",children:[(0,i.jsx)(FeatureListItem,{children:"all Free plan features"}),m.Ab&&(0,i.jsx)(FeatureListItem,{emphasis:"positive",children:"export your site as a PDF"}),(0,i.jsx)(FeatureListItem,{emphasis:"positive",children:"buy or connect custom domains"}),(0,i.jsx)(FeatureListItem,{emphasis:"positive",children:"detailed SEO settings"}),(0,i.jsx)(FeatureListItem,{emphasis:"positive",children:"built-in site insights"}),(0,i.jsx)(FeatureListItem,{emphasis:"positive",children:"unlimited website pages"}),(0,i.jsx)(FeatureListItem,{emphasis:"positive",children:"unlimited public projects"}),(0,i.jsx)(FeatureListItem,{emphasis:"positive",children:"unlimited public blog posts"}),(0,i.jsx)(FeatureListItem,{emphasis:"positive",children:"designer color & font presets"}),(0,i.jsxs)(FeatureListItem,{emphasis:"positive",children:["no ",m.sG," branding"]}),(0,i.jsx)(FeatureListItem,{emphasis:"positive",children:"Premium sections"})]})}),(0,i.jsx)("div",{className:"grid p-6 shadow-soft-xl",children:(0,i.jsx)(o(),{href:"/payment?interval=".concat(r),passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(p.K,{as:"a",size:"lg",onClick:()=>{(0,f.w)({event:"clickUpgradeSubscriptionFromPricingDialog"})},children:"Go Premium"})})})]})]})})]})}},77948:function(e,t,n){n.d(t,{o:function(){return FileUploadEmptyState}});var i=n(52322),a=n(40489),r=n(23095),o=n(79112);function FileUploadEmptyState(e){let{multi:t,error:n}=e,l=n?r.IconExclamationCircle:r.IconUpload;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,a.Z)("flex h-18 w-18 items-center justify-center rounded-full",n?"bg-crimson-0 text-crimson-40 shadow-soft-lg ring-2 ring-crimson-40":"text-graphite-40 ring-1 ring-graphite-10 group-hover:text-graphite-100 group-hover:ring-2 group-hover:ring-graphite-100"),children:(0,i.jsx)(l,{className:"h-6 w-6"})}),(0,i.jsxs)("div",{className:"flex flex-col items-center justify-between space-y-2",children:[(0,i.jsx)("p",{className:(0,a.Z)("text-base text-graphite-40",n&&"text-crimson-40"),children:null!=n?n:"Drop here to upload, or"}),(0,i.jsx)("p",{className:"text-base font-semibold text-graphite-100",children:(0,i.jsx)(o.Q,{as:"span",className:"group-hover:underline-thickness-lg group-hover:underline group-hover:underline-offset-[6px]",children:t?"Select file(s)":n?"Pick another file":"Select a file"})})]})]})}},42316:function(e,t,n){n.d(t,{p:function(){return SidebarPanel}});var i=n(52322),a=n(1545);function SidebarPanel(e){let{children:t}=e;return(0,i.jsx)(a.ED,{className:"flex flex-col divide-y overflow-hidden",children:t})}},23477:function(e,t,n){n.d(t,{D:function(){return PageSEOSettingsDialog},n:function(){return SEOPanel}});var i=n(52322),a=n(88883),r=n(40489),o=n(39097),l=n.n(o),s=n(2784),c=n(28316),d=n(63955),u=n(30195),p=n(80385),h=n(40641),g=n(60670),m=n(92529);let f=u.z.enum(["RELATIONSHIPS","REAL_ESTATE","FINANCE","CINEMA","PHOTOGRAPHY","BUSINESS","NATURE","FAMILY_AND_KIDS","MUSIC","EDUCATION","CERTIFICATION","TRAVEL_AND_TOURISM","BEAUTY","ART","SPORTS_AND_FITNESS","FOOD","LAW","POLITICS","CV_AND_RESUME","MARKETING","INTERVIEWS","CARS","PHONE","LAPTOP","TELEVISION","WRITING","BROWSER_LINK","PDF_FILE"]);u.z.object({name:u.z.string(),slug:u.z.string()});let x=u.z.enum(["HOME","PROJECT","CUSTOM","BLOG_POST"]),y=u.z.string().min(2,{message:"Keep going, we'll need at least 2 characters here."}).max(40,{message:"Hold your horses, the limit is 40 characters."}).regex(/^[\da-z-]+$/,{message:"Only English letters, numbers and dashes play."}).refine(e=>"-"!==e[0]&&"-"!==e[e.length-1],{message:"Dashes can't start or end your URL slug."}).refine(e=>!p._z.has(e),{message:"Great idea, but we can't let you choose this one."}).nullable();u.z.object({showBlogpostStepper:u.z.boolean().nullish()});let v=u.z.object({id:u.z.string(),slug:u.z.string().nullable(),siteId:u.z.string(),parentSectionId:u.z.string().nullable(),type:x,published:u.z.boolean(),title:u.z.string().regex(/\S+/),externalUrl:m.s.nullable(),description:u.z.string().max(300).nullable(),position:u.z.number(),thumbnail:g.KA.or(f).nullable(),seo:u.z.object({title:u.z.string().min(1,{message:"Come back, your page desperately needs a title."}),description:u.z.string(),image:g.KA.nullish()}),blogPostPublishUnixTimestamp:u.z.number().nullable(),categories:u.z.array(u.z.string()).max(h.AQ).default([])});var b=n(52855),w=n(75093),j=n(75190),I=n(13568),k=n(72907),S=n(60113),C=n(13867),N=n(82885),A=n(42782),P=n(57316),T=n(49069),E=n(81654),L=n(605),O=n(27570),_=n(54172),D=n(57855),M=n(58282),G=n(99283);function evaluatePageSEOTitle(e,t){return 0===e.length||e===t?"warning":"success"}function evaluatePageSEODescription(e){return e.length<60||e.length>160?"warning":"success"}function evaluatePageSEOSlug(e){return"HOME"===e.type?"success":!e.slug||e.slug.split("-").length-1>3?"warning":"success"}function useSEOPages(){let e=(0,D.$)(),t=(0,G.B)(e).data,[n]=(0,M.k)({required:!0}),i=(0,s.useMemo)(()=>(null!=t?t:[]).filter(e=>!!e.slug||"HOME"===e.type).map(e=>{var t;return{...e,seoEvaluation:{title:evaluatePageSEOTitle(e.seo.title,"".concat(n.user.givenName," ").concat(n.user.familyName)),description:evaluatePageSEODescription(e.seo.description),slug:evaluatePageSEOSlug(e),overall:(t="".concat(n.user.givenName," ").concat(n.user.familyName),[evaluatePageSEOTitle(e.seo.title,t),evaluatePageSEODescription(e.seo.description),evaluatePageSEOSlug(e)].every(e=>"success"===e)?"success":"warning")}}}),[t,n]);return{stats:{totalNumberOfPages:i.length,numberOfPagesWithGoodSEO:i.filter(e=>"success"===e.seoEvaluation.overall).length},pages:i}}function SEOProgress(){let{stats:{totalNumberOfPages:e,numberOfPagesWithGoodSEO:t}}=useSEOPages();return(0,i.jsxs)("svg",{width:"64",height:"64",viewBox:"0 0 69 60",fill:"none",children:[(0,i.jsx)("path",{d:"M56.9369 56.6274C59.9083 53.6559 62.2654 50.1283 63.8736 46.2459C65.4817 42.3635 66.3094 38.2023 66.3094 34C66.3094 29.7977 65.4817 25.6366 63.8736 21.7541C62.2654 17.8717 59.9083 14.3441 56.9369 11.3726C53.9654 8.40111 50.4377 6.04401 46.5553 4.43586C42.6729 2.8277 38.5117 2 34.3094 2C30.1071 2 25.946 2.8277 22.0636 4.43585C18.1812 6.044 14.6535 8.4011 11.682 11.3726C8.71057 14.344 6.35346 17.8717 4.74531 21.7541C3.13716 25.6365 2.30945 29.7977 2.30945 34C2.30945 38.2023 3.13715 42.3634 4.7453 46.2459C6.35345 50.1283 8.71055 53.6559 11.682 56.6274",className:"stroke-graphite-10"}),t>0&&(0,i.jsx)("path",{d:"M11.682 56.6274C7.20675 52.1521 4.15905 46.4503 2.92432 40.2429C1.68959 34.0355 2.3233 27.6014 4.7453 21.7541C7.16731 15.9069 11.2688 10.9092 16.5312 7.39297C21.7936 3.87677 27.9804 2 34.3094 2C40.6385 2 46.8253 3.87677 52.0877 7.39297C57.3501 10.9092 61.4516 15.9069 63.8736 21.7541C66.2956 27.6014 66.9293 34.0355 65.6946 40.2429C64.4598 46.4503 61.4121 52.1521 56.9369 56.6274",strokeWidth:"4",strokeLinecap:"square",pathLength:"100",strokeDasharray:"100",strokeDashoffset:100-t/e*100,className:(0,r.Z)(t/e==1?"stroke-emerald-40":"stroke-amber-40")}),(0,i.jsx)("text",{textAnchor:"middle",x:"50%",y:"55%",className:(0,r.Z)("text-2xl font-bold",t/e==1?"fill-emerald-40":"fill-amber-40"),children:t}),(0,i.jsxs)("text",{textAnchor:"middle",x:"50%",y:"82%",className:(0,r.Z)("text-xs font-bold",t/e==1?"fill-emerald-40":"fill-amber-40"),children:["of ",e]})]})}var R=n(15228),z=n(68196),B=n(94343),Z=n(44655),H=n(35196);function useCookieState(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,i=R.y$[e],a=null!==(t=H.getCookie(i))&&void 0!==t?t:null,[r,o]=s.useState(n(a)),l=s.useCallback(e=>{e?(H.setCookie(i,e),o(e)):(H.deleteCookie(i),o(null))},[i]);return[r,l]}var F=n(58651),W=n(68851),U=n(99875),V=n(71427),q=n(44010),Y=n(11289),J=n(42316);function SEOGuideMessage(){return(0,i.jsxs)("span",{children:[(0,i.jsx)("strong",{children:"Need help? "})," Check our"," ",(0,i.jsx)(l(),{href:"https://blog.copyfol.io/beginner-seo-guide",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"SEO guide"}),"."]})}function SEOImageFormField(e){let{value:t,onChange:n,disabled:a}=e,[o,l]=(0,s.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"space-y-3",children:[(0,i.jsx)("div",{className:(0,r.Z)("text-xs font-semibold",a?"text-graphite-20":"text-graphite-40"),children:"Social media image"}),(0,i.jsxs)(_.nA,{children:[(0,i.jsx)("div",{className:(0,r.Z)("relative h-44 rounded ring-1 ring-graphite-10",!t&&"bg-graphite-5"),children:t&&(0,i.jsx)(E.n,{src:t.src,originalWidth:t.originalWidth,originalHeight:t.originalHeight,layout:"fill",objectFit:"cover",contain:!1,mockup:void 0,className:"rounded"})}),(0,i.jsx)(_.sK,{alwaysVisible:!0,rounded:"default",children:(0,i.jsx)(_.up,{alwaysVisible:!0,placement:"center",children:(0,i.jsx)("div",{className:"flex flex-col items-center justify-center space-y-2",children:t&&!a?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(T.C,{intent:"neutral",size:"xs",shape:"pill",className:"pointer-events-auto",onClick:()=>{l(!0)},children:(0,i.jsxs)("span",{className:"inline-flex items-center space-x-1",children:[(0,i.jsx)(I.Z,{"aria-hidden":!0,className:"h-4"}),(0,i.jsx)("span",{className:"uppercase",children:"change"})]})}),(0,i.jsx)(T.C,{size:"xs",shape:"pill",className:"pointer-events-auto",intent:"danger",onClick:()=>{n(null)},children:(0,i.jsxs)("span",{className:"inline-flex items-center space-x-1",children:[(0,i.jsx)(b.HG,{"aria-hidden":!0,className:"h-4"}),(0,i.jsx)("span",{className:"uppercase",children:"remove"})]})})]}):(0,i.jsx)(T.C,{intent:"neutral",disabled:a,size:"xs",shape:"pill",className:(0,r.Z)("pointer-events-auto",a&&"shadow-hard-md"),onClick:()=>{l(!0)},children:(0,i.jsxs)("span",{className:"inline-flex items-center space-x-1",children:[(0,i.jsx)(I.Z,{"aria-hidden":!0,className:"h-4"}),(0,i.jsx)("span",{className:"uppercase",children:"set"})]})})})})})]}),(0,i.jsx)("p",{className:"text-graphite-40",children:"This will appear when you share your page on social media."})]}),o&&(0,i.jsx)(V.h,{title:"Change social media image",description:"Use a wide, landscape image for the perfect fit, for example 1600x900px.",showPexels:!1,onDismiss:()=>{l(!1)},onUploadComplete:n})]})}let K=v.shape.seo.merge(u.z.object({slug:y}));function PageSEOSettingsDialog(e){var t,n,r,o,l,u;let{pageId:p,onDismiss:h}=e,{mutate:g}=(0,z.R)(),[m]=(0,M.k)({required:!0}),f="PREMIUM"===m.user.subscriptionType,x=function(){let e=(0,B.F)();return()=>e("PREMIUM")}(),y=(0,Z.q)(p).data,[v,b]=(0,s.useState)(!1),[j,I]=useCookieState("HIDE_SEO_GUIDE",Boolean),[C,T]=(0,s.useState)(!1),E=(0,d.cI)({resolver:(0,a.F)(K)}),_=E.watch(),D=(0,s.useRef)(null),{ref:G,...H}=E.register("slug");(0,s.useEffect)(()=>{y&&!C&&(E.reset({title:y.seo.title,description:y.seo.description,image:y.seo.image,slug:"HOME"===y.type?null:y.slug}),T(!0))},[y,E,C,T]);let dismissDialog=()=>{if(E.formState.isDirty){b(!0);return}null==h||h()},onSubmit=e=>{var t;y&&g({...y,seo:{...y.seo,title:e.title,description:e.description,image:e.image},slug:null!==(t=e.slug)&&void 0!==t?t:void 0},{onError:()=>{var e;E.setError("slug",{message:"There's already a page on your site with this URL."}),null===(e=D.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},onSuccess:()=>{(0,F.w)({event:"updateSeoSettings"}),null==h||h()}})};return(0,i.jsxs)(i.Fragment,{children:[(0,c.createPortal)((0,i.jsx)("div",{className:"fixed bottom-4 left-4 top-[80px] z-30 flex rounded-lg bg-graphite-0 shadow-soft-xl ring-1 ring-graphite-5",children:(0,i.jsxs)("form",{className:"flex h-full w-[354px] flex-col divide-y",onSubmit:e=>{if(e.preventDefault(),!x()){(0,F.w)({event:"openPricingDialog",from:"SEO"});return}E.handleSubmit(onSubmit)()},children:[(0,i.jsxs)("div",{className:"divide-y",children:[(0,i.jsx)("div",{className:"p-6",children:(0,i.jsxs)("div",{className:"flex items-start justify-between space-x-4",children:[(0,i.jsxs)("div",{className:"space-y-3 truncate",children:[(0,i.jsx)("h2",{className:"text-2xl font-bold leading-none text-graphite-100",children:"SEO settings"}),(0,i.jsxs)("p",{className:"truncate text-graphite-40",children:[null==y?void 0:y.title,y&&(0,w.Y)(y)?" page":""]})]}),(0,i.jsx)(N.h,{growOutside:!0,"aria-label":"Close",onClick:dismissDialog,children:(0,i.jsx)(k.Z,{"aria-hidden":!0,className:"h-6"})})]})}),(0,i.jsx)(S.r,{message:"Don't miss out on SEO.",gtmOrigin:"SEO",premiumMessage:R.Ab||j?void 0:(0,i.jsx)(SEOGuideMessage,{}),onDismiss:()=>I(!0)})]}),(0,i.jsxs)("div",{className:"flex-1 space-y-8 overflow-auto p-6",children:[(0,i.jsxs)("div",{className:"space-y-3",children:[(0,i.jsx)(L.L,{label:"Meta title",placeholder:"About - Jamie Wright",...E.register("title"),disabled:!f,status:evaluatePageSEOTitle(null!==(o=_.title)&&void 0!==o?o:"","".concat(m.user.givenName," ").concat(m.user.familyName)),statusComment:{warning:"Add relevant keywords to your title like your name, niche, and profession.",success:"Nice! You customized your title, now people will know what the page is about."},error:null===(t=E.formState.errors.title)||void 0===t?void 0:t.message,maxLength:100}),(0,i.jsx)("p",{className:"text-graphite-40",children:"This will appear in your browser tab."})]}),(0,i.jsx)("div",{className:"space-y-3",children:y&&"HOME"!==y.type?(0,i.jsx)(L.L,{prefix:"/",placeholder:"about",label:"URL slug",disabled:!y||!f,...H,ref:e=>{D.current=e,G(e)},status:y?evaluatePageSEOSlug({...y,slug:null!==(l=_.slug)&&void 0!==l?l:""}):"warning",statusComment:{warning:"Keep your URL slug within three words for the optimal SEO performance.",success:"Looking good, your URL is short and to-the-point, as it should be."},error:null===(n=E.formState.errors.slug)||void 0===n?void 0:n.message,maxLength:40}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(L.L,{prefix:"/",value:"",label:"URL slug",disabled:!0}),(0,i.jsx)("p",{className:"text-graphite-40",children:"Your home page doesn't have a URL slug."})]})}),(0,i.jsx)(L.L,{...E.register("description"),inputAs:O.K,size:"1.5xl",disabled:!f,label:"Meta description",placeholder:"Describe your page in a few words",status:evaluatePageSEODescription(null!==(u=_.description)&&void 0!==u?u:""),statusComment:{warning:"Write a description between ".concat(60," and ").concat(160," characters & include relevant keywords."),success:"Perfect! Descriptions between ".concat(60," and ").concat(160," characters perform the best.")},error:null===(r=E.formState.errors.description)||void 0===r?void 0:r.message,maxLength:300}),(0,i.jsx)(d.Qr,{control:E.control,name:"image",render:e=>{let{field:{onChange:t,value:n}}=e;return(0,i.jsx)(SEOImageFormField,{disabled:!f,value:n,onChange:t})}})]}),E.formState.isDirty&&(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-6 p-6",children:[(0,i.jsx)(P.k,{onClick:dismissDialog,children:"Cancel"}),(0,i.jsx)(A.K,{loading:E.formState.isSubmitting,type:"submit",children:"Save"})]})]})}),document.body),v&&(0,i.jsx)(U.f,{title:"What about your changes?",content:(0,i.jsxs)("p",{children:["You've made a few changes but didn't save them.",(0,i.jsx)("br",{}),"What should happen before you quit?"]}),yesText:"Save changes",noText:"Discard",onYes:()=>{if(!x()){(0,F.w)({event:"openPricingDialog",from:"SEO"});return}E.handleSubmit(onSubmit)(),b(!1)},onNo:h})]})}function SEOPanel(){let{pages:e,stats:{totalNumberOfPages:t}}=useSEOPages(),[n,a]=(0,s.useState)(null),[o,l]=useCookieState("HIDE_SEO_GUIDE",Boolean);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(J.p,{children:[(0,i.jsx)(q.$l,{title:"SEO",description:"Optimize your pages for search."}),(0,i.jsx)(S.r,{message:"Don't miss out on SEO.",premiumMessage:R.Ab||o?void 0:(0,i.jsx)(SEOGuideMessage,{}),onDismiss:()=>l(!0),gtmOrigin:"SEO"}),(0,i.jsx)(q.TZ,{children:(0,i.jsxs)("div",{className:"space-y-12 p-6",children:[(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)("div",{className:"font-bold text-graphite-60",children:"Overview"}),(0,i.jsxs)("div",{className:"flex items-center space-x-6",children:[(0,i.jsx)("span",{children:(0,i.jsx)(SEOProgress,{})}),(0,i.jsxs)("p",{className:"text-graphite-40",children:[t>1?"pages":"page"," have meta titles, descriptions & URLs set up"]})]})]}),[{title:"Pages",subset:e.filter(e=>(0,w.Y)(e))},{title:R.Ab?"Portfolio":"Projects",subset:e.filter(e=>"PROJECT"===e.type)},{title:"Blog posts",subset:e.filter(e=>"BLOG_POST"===e.type)}].map(e=>{let{title:t,subset:n}=e;return n.length>0&&(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)("div",{className:"font-bold text-graphite-60",children:t}),(0,i.jsx)("ul",{className:"space-y-4",children:n.map(e=>(0,i.jsxs)("li",{className:"group flex h-[76px] items-center justify-center rounded border border-graphite-10 px-6 hover:shadow-soft-lg",children:[(0,i.jsx)("div",{className:(0,r.Z)("h-2 w-2 rounded-full outline outline-4 outline-offset-0 group-hover:outline-8","success"===e.seoEvaluation.overall?"bg-emerald-40 outline-emerald-5":"bg-amber-40 outline-amber-5 ")}),(0,i.jsx)("div",{className:"flex-1 truncate pl-4 pr-2",children:e.title}),(0,i.jsx)("div",{className:"opacity-0 group-hover:opacity-100",children:(0,i.jsx)(Y.u,{content:"Edit metadata",children:(0,i.jsx)(C.T,{shape:"rounded-square",onClick:()=>{a(e.id)},size:"xs",...W.nX,children:(0,i.jsx)(j.Z,{className:"h-6"})})})})]},e.id))})]},t)})]})})]}),n&&(0,i.jsx)(PageSEOSettingsDialog,{pageId:n,onDismiss:()=>{a(null)}})]})}},21965:function(e,t,n){n.d(t,{O:function(){return DesignSidebar},z:function(){return K}});var i=n(52322),a=n(752),r=n(87809),o=n(58420),l=n(2784),s=n(34911),c=n(1545),d=n(10484),u=n(44010),p=n(64266),h=n(61462),g=n(40495),m=n(15585),f=n(60113),x=n(868),y=n(67533),v=n(40489),b=n(53014);function ColorPreview(e){let{color:t,size:n="lg",innerColor:a}=e;return(0,i.jsxs)("div",{className:(0,v.Z)("relative rounded-full",{"h-12 w-12":"lg"===n,"h-10 w-10":"md"===n,"h-6 w-6":"sm"===n},(0,b.WC)(t,"decorative")&&"ring-1 ring-graphite-5"),style:{backgroundColor:t},children:[a&&(0,i.jsx)("div",{style:{background:a},className:(0,v.Z)("absolute rounded-full",{"left-3 top-3 h-6 w-6":"lg"===n,"left-2.5 top-2.5 h-5 w-5":"md"===n})}),(0,i.jsx)("div",{className:(0,v.Z)((0,b.WC)(t,"decorative")&&"from-graphite-20/0 to-graphite-20","h-full rounded-full bg-gradient-to-br from-graphite-0 opacity-25")})]})}function ColorSetPreview(e){let{background:t,button:n,heading:a,paragraph:r,shape:o}=e;return(0,i.jsxs)("div",{className:"flex flex-row-reverse justify-end -space-x-4 space-x-reverse",children:[(0,i.jsx)(ColorPreview,{color:(0,h.Uk)(t)}),(0,i.jsx)(ColorPreview,{color:(0,h.Uk)(o)}),(0,i.jsx)(ColorPreview,{color:(0,h.Uk)(r)}),(0,i.jsx)(ColorPreview,{color:(0,h.Uk)(a)}),(0,i.jsx)(ColorPreview,{innerColor:(0,h.Uk)(t),color:(0,h.Uk)(n)})]})}var w=n(57855),j=n(79209),I=n(48275),k=n(23551),S=n(95381),C=n(94343);function useCanUpdateColorSet(){let e=(0,C.F)();return()=>e("PREMIUM")}var N=n(62271),A=n(58651),P=n(99875),T=n(42316),E=n(71346),L=n.n(E),O=n(80145),_=n(12665),D=n(47052),M=n(42428),G=n(93556),R=n(88241),z=n(52855);function ColorSwatchCard(e){let{label:t,onChange:n,selected:a,colors:r,innerColor:o}=e,[s,c]=(0,l.useState)(!1);return(0,i.jsx)(M.A,{transition:{duration:.15},children:(0,i.jsxs)("div",{className:"overflow-hidden rounded ring-1 ring-graphite-10 transition-all duration-100 hover:shadow-soft-lg",children:[(0,i.jsxs)("div",{role:"button","aria-hidden":!0,onClick:()=>c(!s),className:"flex items-center gap-4 p-6",children:[(0,i.jsx)(G.m.div,{initial:{scale:1},animate:{scale:s?0:1},children:(0,i.jsx)(ColorPreview,{color:r[a].hex(),size:"sm"})}),(0,i.jsx)(G.m.span,{initial:{x:0},animate:{x:s?"-2.5rem":0},className:"flex-1",children:t}),(0,i.jsx)(G.m.span,{initial:{rotateZ:0},animate:{rotateZ:s?"180deg":0},children:(0,i.jsx)(z._M,{className:"h-6 text-graphite-60"})})]}),(0,i.jsx)(R.M,{children:s&&(0,i.jsx)(G.m.div,{initial:{height:0,opacity:0,y:10},animate:{height:s?"auto":0,opacity:s?1:0,y:s?0:10},exit:{height:0,opacity:0,y:10},children:(0,i.jsx)("div",{className:"flex w-full items-center justify-between px-6 pb-6",children:r.map((e,t)=>(0,i.jsx)("div",{role:"button","aria-hidden":!0,onClick:()=>n(t),className:(0,v.Z)("rounded-full transition-all duration-150",a===t&&"ring-2 ring-graphite-100 ring-offset-2"),children:(0,i.jsx)(ColorPreview,{innerColor:null==o?void 0:o.hex(),color:e.hex(),size:"md"})},"".concat(e.hex(),"-").concat(t)))})})})]})})}function getDefaultShades(e){return{heading:1,paragraph:e?1:3,button:1,shape:e?3:4,background:e?3:2}}function findColorIndex(e,t){let n=t.map(e=>O.i.serialize(e)).findIndex(t=>t.r===e.r&&t.g===e.g&&t.b===e.b);return -1===n?null:n}function CustomColorsPanel(){var e,t;let n=(0,l.useRef)(!0),a=(0,l.useRef)(null),r=(0,w.$)(),o=(0,N.W)(r).data,[s,c]=(0,l.useState)(null!==(t=null===(e=o.customColorSet)||void 0===e?void 0:e.isComplementary)&&void 0!==t&&t),d=(0,l.useMemo)(()=>{let e;return e=o.customColorSet?o.customColorSet.userColor:o.colorPreset.startsWith("LEGACY_")?h.Vz[o.colorPreset].h1Color:I.PE[o.colorPreset].colors.heading,O.i.deserialize(e).hex()},[o]),[u,p]=(0,l.useState)(d),g=(0,l.useMemo)(()=>O.i.createPalette(u,s),[u,s]),m=(0,l.useMemo)(()=>getDefaultShades(s),[s]),[f,x]=(0,l.useState)(()=>(function(e,t){var n,i,a,r,o,l;let s=getDefaultShades(null!==(n=null==e?void 0:e.isComplementary)&&void 0!==n&&n);if(!e)return s;let{heading:c,background:d,paragraph:u,shape:p,button:h}=e;return{heading:null!==(i=findColorIndex(c,t.heading))&&void 0!==i?i:s.heading,paragraph:null!==(a=findColorIndex(u,t.paragraph))&&void 0!==a?a:s.paragraph,button:null!==(r=findColorIndex(h,t.button))&&void 0!==r?r:s.button,shape:null!==(o=findColorIndex(p,t.shape))&&void 0!==o?o:s.shape,background:null!==(l=findColorIndex(d,t.background))&&void 0!==l?l:s.background}})(o.customColorSet,g));(0,l.useEffect)(()=>{n.current||x(m)},[s]);let y=useCanUpdateColorSet(),{setPendingQueryData:b,removePendingQueries:k,setPendingMutation:C}=(0,j.Ni)(),{mutateAsync:P}=(0,S.g)(),T=(0,l.useCallback)(()=>{let e={...o,customColorSet:{isComplementary:s,userColor:O.i.serialize(g.userColor),background:O.i.serialize(g.background[f.background]),heading:O.i.serialize(g.heading[f.heading]),paragraph:O.i.serialize(g.paragraph[f.paragraph]),shape:O.i.serialize(g.shape[f.shape]),button:O.i.serialize(g.button[f.button])}};C([async()=>y()?(await P({id:r,customColorSet:e.customColorSet},{onSuccess:()=>{(0,A.w)({event:"updateColorSet",colorPreset:"CUSTOM",colorPresetComplementary:s})}}),!0):((0,A.w)({event:"openPricingDialog",from:"CustomColors"}),!1),()=>(b(["Site.find",r],e),()=>{k(["Site.find",r])})])},[y,o,r,P,g,s,k,f,C,b]);return(0,l.useEffect)(()=>{n.current=!1},[]),(0,l.useEffect)(()=>{let e=setTimeout(()=>T(),10);return()=>{clearTimeout(e)}},[u,f,s]),(0,i.jsxs)("div",{className:"space-y-12 p-6 pb-12",children:[(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)("h3",{className:"font-bold text-graphite-60",children:"Main color"}),(0,i.jsxs)("div",{role:"button","aria-hidden":!0,onClick:()=>{var e;null===(e=a.current)||void 0===e||e.click()},className:"flex cursor-pointer items-center gap-4 rounded p-6 ring-1 ring-graphite-10 hover:shadow-soft-lg",children:[(0,i.jsx)(ColorPreview,{color:u,size:"sm"}),(0,i.jsx)("span",{className:"flex-1 text-graphite-60",children:L()(u).hex().toUpperCase()}),(0,i.jsx)(_.Z,{className:"h-6 w-6 text-graphite-60"})]}),(0,i.jsx)("input",{className:"sr-only",type:"color",ref:a,value:u,onChange:e=>p(e.target.value)})]}),(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)("h3",{className:"font-bold text-graphite-60",children:"Website colors"}),(0,i.jsxs)("div",{className:"space-y-3",children:[(0,i.jsxs)(D.H,{checked:s,onChange:()=>c(!s),className:(0,v.Z)("flex w-full items-center justify-center space-x-2 rounded-lg bg-graphite-5 p-1 focus:outline-none focus-visible:ring"),children:[(0,i.jsx)(D.w,{active:!s,children:"Matching"}),(0,i.jsx)(D.w,{active:s,children:"Opposing"})]}),(0,i.jsx)("p",{children:"Set up how shades should be mixed from your main color."})]}),(0,i.jsxs)("div",{className:"space-y-12",children:[(0,i.jsxs)("div",{className:"space-y-3",children:[(0,i.jsx)(ColorSwatchCard,{colors:g.heading,selected:f.heading,onChange:e=>{x(t=>({...t,heading:e}))},label:"Headings"}),(0,i.jsx)(ColorSwatchCard,{colors:g.paragraph,selected:f.paragraph,onChange:e=>{x(t=>({...t,paragraph:e}))},label:"Paragraphs"}),(0,i.jsx)(ColorSwatchCard,{colors:g.button,selected:f.button,onChange:e=>{x(t=>({...t,button:e}))},label:"Buttons, links"}),(0,i.jsx)(ColorSwatchCard,{colors:g.shape,selected:f.shape,onChange:e=>{x(t=>({...t,shape:e}))},label:"Shapes, lines"}),(0,i.jsx)(ColorSwatchCard,{colors:g.background,selected:f.background,onChange:e=>{x(t=>({...t,background:e}))},label:"Background"})]}),(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)("h2",{className:"font-bold text-graphite-60",children:"Build the best color palette"}),(0,i.jsx)("p",{children:"Avoid very bright colors, try softer ones instead."})]})]})]})]})}function ColorCardButton(e){let{site:t,colorPreset:n,onClick:a}=e,r=(0,l.useMemo)(()=>I.G$.includes(n)?(0,i.jsx)(x.v,{intent:"success",children:"New"}):n.startsWith("LEGACY_")?(0,i.jsx)(x.v,{intent:"danger",children:"Legacy"}):k.D3[t.template].defaultColorSet===n?(0,i.jsx)(x.v,{children:"Default"}):null,[n,t.template]);return(0,i.jsx)(y.x,{role:"radio","aria-checked":t.colorPreset===n,onClick:()=>a(n),children:(0,i.jsxs)("span",{className:"block space-y-4",children:[(0,i.jsxs)("span",{className:"block space-y-3",children:[(0,i.jsx)("h4",{children:h.wk[n]}),(0,i.jsx)(ColorSetPreview,{...(0,g.PU)({colorPreset:n}).colors})]}),r&&(0,i.jsx)("div",{className:"flex space-x-2",children:r})]})},n)}function ColorsPanel(){let e=(0,w.$)(),t=(0,N.W)(e).data,[n,a]=(0,l.useState)(null===t.customColorSet?"presets":"custom"),r=(0,l.useRef)(null),o=useCanUpdateColorSet(),{setPendingQueryData:s,removePendingQueries:c,setPendingMutation:d,applyPendingMutation:h}=(0,j.Ni)(),{mutateAsync:g}=(0,S.g)(),[x,y]=(0,l.useState)(t.colorPreset.startsWith("LEGACY_")?t.colorPreset:null),[v,b]=(0,l.useState)(!1),handleUpdate=i=>{let a={...t,colorPreset:i,customColorSet:null};d([async()=>o()?(await g({id:e,colorPreset:a.colorPreset,customColorSet:null},{onSuccess:()=>{(0,A.w)({event:"updateColorSet",colorPreset:a.colorPreset})}}),!0):((0,A.w)({event:"openPricingDialog",from:"presets"===n?"ColorPresets":"CustomColors"}),!1),()=>(s(["Site.find",e],a),(0,A.w)({event:"previewUpdateColorSet",colorPreset:a.colorPreset}),()=>{c(["Site.find",e])})])};return(0,i.jsxs)(T.p,{children:[(0,i.jsx)(u.$l,{title:"Colors",description:"Apply a color preset to your site.",activeTab:n,tabs:["presets","custom"],onTabChange:n=>{var i;a(n),null===(i=r.current)||void 0===i||i.scrollTo(0,0),"presets"===n&&s(["Site.find",e],{...t,customColorSet:null})}}),(0,i.jsx)(f.r,{message:"presets"===n?"Need a new palette?":"Need custom colors?",gtmOrigin:"presets"===n?"ColorPresets":"CustomColors"}),(0,i.jsx)(u.TZ,{ref:r,children:(0,i.jsxs)(p.fC,{value:n,children:[(0,i.jsx)(p.VY,{value:"presets",children:(0,i.jsxs)("div",{className:"space-y-12 p-6",children:[I.Fp.map(e=>(0,i.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,i.jsx)("h3",{className:"font-bold text-graphite-60",children:e.label}),e.sets.map(e=>(0,i.jsx)(ColorCardButton,{colorPreset:e,site:t,onClick:()=>handleUpdate(e)},e))]},e.label)),x&&(0,i.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,i.jsx)("h3",{className:"font-bold text-graphite-60",children:"Old"}),(0,i.jsx)(ColorCardButton,{colorPreset:x,site:t,onClick:()=>handleUpdate(x)})]})]})}),(0,i.jsx)(p.VY,{value:"custom",children:(0,i.jsx)(CustomColorsPanel,{})})]})}),(0,i.jsx)(u.IC,{onBeforeSave:()=>!x||(b(!0),!1)}),v&&(0,i.jsx)(P.f,{title:"Switch to a new color palette?",content:(0,i.jsxs)("span",{className:"space-y-6",children:[(0,i.jsx)("p",{children:"Your site is using an old, legacy color palette. It won’t be available anymore if you switch to another one now."}),(0,i.jsx)(m.b,{className:"text-left",intent:"danger",children:"Once you switch to a new palette, the old one will disappear forever."})]}),onYes:()=>{y(null),b(!1),h()},yesText:"Switch colors",onNo:()=>{b(!1)}})]})}var B=n(25983),Z=n(1386),H=n(18013);function FontFaceSetPreview(e){let{h2Family:t,h2Weight:n,h2Italic:a,pFamily:r}=e,o=(0,Z.E)(t),l=(0,Z.E)(r);return(0,i.jsxs)("div",{className:"space-y-1.5",children:[(0,i.jsx)(H.F,{fonts:{[o]:[{wght:n,ital:Number(a)}],[l]:[{wght:400}]}}),(0,i.jsxs)("div",{className:(0,v.Z)("line-clamp-1 text-xl text-graphite-100",a&&"italic"),style:{fontFamily:t,fontWeight:n},children:[o," headings"]}),(0,i.jsxs)("div",{className:"line-clamp-2 leading-snug text-graphite-40",style:{fontFamily:r},children:[l," paragraphs read & feel like they’d be just right"]})]})}var F=n(45663),W=n(46399);function FontSetPreview(e){let{fontSet:t}=e,n=F.$U[t];return(0,i.jsxs)("div",{className:"space-y-1.5",children:[(0,i.jsx)(W.h,{fontSetsToLoad:[t]}),(0,i.jsxs)("div",{className:(0,v.Z)("line-clamp-1 text-xl text-graphite-100","italic"===n.h1.style&&"italic"),style:{fontFamily:"_site_".concat(n.h1.family),fontWeight:n.h1.weight},children:[n.headingDisplayName," headings"]}),(0,i.jsxs)("div",{className:"line-clamp-2 leading-snug text-graphite-40",style:{fontFamily:"_site_".concat(n.p1.family),fontWeight:n.p1.weight},children:[n.paragraphDisplayName," paragraphs read & feel like they'd be just right"]})]})}var U=n(15228),V=n(87036);function FontsPanel(){let e=(0,w.$)(),t=(0,N.W)(e).data,[n,a]=(0,l.useState)(Object.keys(B.X).includes(t.fontPreset)?t.fontPreset:null),[r,o]=(0,l.useState)(!1),s=function(){let e=(0,C.F)();return()=>e("PREMIUM")}(),{setPendingQueryData:c,removePendingQueries:d,setPendingMutation:p,applyPendingMutation:h}=(0,j.Ni)(),{mutateAsync:g}=(0,S.g)(),{defaultFontFaceSet:v}=(0,V.m)();async function handleClick(n){let i={...t,fontPreset:n};p([async()=>s()?(await g({id:e,fontPreset:i.fontPreset},{onSuccess:()=>{(0,A.w)({event:"updateFontFaceSet",fontPreset:i.fontPreset})}}),!0):((0,A.w)({event:"openPricingDialog",from:"Fonts"}),!1),()=>(c(["Site.find",e],i),(0,A.w)({event:"previewUpdateFontFaceSet",fontPreset:i.fontPreset}),()=>{d(["Site.find",e])})])}return(0,i.jsxs)(T.p,{children:[(0,i.jsx)(u.$l,{title:"Fonts",description:"Apply a font set to your site."}),(0,i.jsx)(f.r,{message:"Found the best font?",gtmOrigin:"Fonts"}),(0,i.jsx)(u.TZ,{children:(0,i.jsxs)("div",{className:"space-y-12 p-6",children:[(U.Ab?F.M6:F.nR).map(e=>(0,i.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,i.jsx)("h3",{className:"font-bold text-graphite-60",children:e.label}),e.fontSets.map(e=>(0,i.jsx)(y.x,{role:"radio","aria-checked":t.fontPreset===e,onClick:()=>handleClick(e),children:(0,i.jsxs)("span",{className:"block space-y-4",children:[(0,i.jsx)(FontSetPreview,{fontSet:e}),(F.aN.includes(e)||v===e)&&(0,i.jsxs)("div",{className:"space-x-2",children:[F.aN.includes(e)&&(0,i.jsx)(x.v,{intent:"success",children:"New"}),v===e&&(0,i.jsx)(x.v,{children:"Default"})]})]})},e))]},e.label)),n&&(0,i.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,i.jsx)("h3",{className:"font-bold text-graphite-60",children:"Old"}),(0,i.jsx)(y.x,{"aria-checked":t.fontPreset===n,onClick:()=>handleClick(n),children:(0,i.jsxs)("span",{className:"block space-y-4",children:[(0,i.jsx)(FontFaceSetPreview,{...B.X[n]}),(0,i.jsx)(x.v,{intent:"danger",children:"Legacy"})]})})]})]})}),(0,i.jsx)(u.IC,{onBeforeSave:()=>!n||(o(!0),!1)}),r&&(0,i.jsx)(P.f,{title:"Switch to a new font preset?",content:(0,i.jsxs)("span",{className:"space-y-6",children:[(0,i.jsx)("p",{children:"Your site is using an old, legacy font preset. It won't be available anymore if you switch to another one now."}),(0,i.jsx)(m.b,{className:"text-left",intent:"danger",children:"Once you switch to a new preset, the old one will disappear forever."})]}),yesText:"Switch fonts",onYes:()=>{o(!1),a(null),h()},noText:"Cancel",onNo:()=>{o(!1)}})]})}var q=n(18343),Y=n(22121);function InitialPanel(){let[e]=(0,c.sB)(),t=(0,w.$)(),n=(0,N.W)(t).data,a=(0,V.m)().preview;return(0,i.jsxs)(T.p,{children:[(0,i.jsx)(u.$l,{title:"Design",description:"Customize your site’s appearance.",noExit:!0}),(0,i.jsxs)(u.TZ,{children:[(0,i.jsx)(q.p,{"data-testid":"template-chooser",title:"Template",actionLabel:"Change template",onClick:()=>{e("TEMPLATES")},children:(0,i.jsx)(y.x,{as:"div",padding:"none",children:(0,i.jsx)("div",{className:"leading-0",children:(0,i.jsx)(Y.N,{className:"rounded",...a.preview,alt:a.label})})})}),(0,i.jsx)(q.p,{title:"Colors",actionLabel:"Change color palette",onClick:()=>{e("COLORS")},children:(0,i.jsxs)("div",{className:"flex flex-row-reverse items-center justify-end space-x-4 space-x-reverse",children:[(0,i.jsx)("h4",{children:n.customColorSet?"Custom":h.wk[n.colorPreset]}),(0,i.jsx)(ColorSetPreview,{...(0,g.PU)(n).colors})]})}),(0,i.jsx)(q.p,{title:"Fonts",actionLabel:"Change font preset",onClick:()=>{e("FONTS")},children:(0,i.jsx)(y.x,{as:"div",children:Object.keys(B.X).includes(n.fontPreset)?(0,i.jsx)(FontFaceSetPreview,{...B.X[n.fontPreset]}):(0,i.jsx)(FontSetPreview,{fontSet:n.fontPreset})})})]})]})}var J=n(50812);function TemplateRadioButton(e){let{template:t,disabled:n=!1,onKeyDown:a,onClick:r,...o}=e,s=l.useRef(null),[c,d,u,p]=(0,J.XZ)(s,n);return(0,J.Ym)(d,s),(0,i.jsxs)("div",{className:"space-y-3",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)("h3",{className:(0,v.Z)("font-semibold",o["aria-checked"]?"text-graphite-100":"text-graphite-40"),children:t.label}),t.badge&&(0,i.jsx)(x.v,{intent:t.badge.intent,children:t.badge.label})]}),(0,i.jsx)(y.x,{"data-testid":t.template,ref:s,role:"radio",tabIndex:c,disabled:n,padding:"none",onKeyDown:e=>{u(e),null==a||a(e)},onClick:e=>{p(),null==r||r(e)},...o,children:(0,i.jsx)("span",{className:"block leading-0",children:(0,i.jsx)(Y.N,{...t.preview,className:"rounded"})})})]})}function TemplatesPanel(){let e=(0,w.$)(),t=(0,N.W)(e).data,[n,a]=l.useState(t.template.includes("LEGACY")?k.QV.find(e=>e.template===t.template):null),[r,o]=l.useState(!1),{setPendingQueryData:s,removePendingQueries:c,setPendingMutation:d,applyPendingMutation:p}=(0,j.Ni)(),{mutateAsync:h}=(0,S.g)(),handleUpdate=n=>{let i={...t,template:n,colorPreset:k.D3[n].defaultColorSet,fontPreset:k.D3[n].defaultFontFaceSet,footer:t.footer?{...t.footer,...U.Ab?k.D3[n].footer:{}}:null};d([async()=>(await h({id:e,template:i.template,colorPreset:i.colorPreset,fontPreset:i.fontPreset,footer:i.footer}),!0),()=>(s(["Site.find",e],i),(0,A.w)({event:"previewUpdateSiteTemplate",siteTemplate:i.template}),()=>{c(["Site.find",e])})])};return(0,i.jsxs)(T.p,{children:[(0,i.jsx)(u.$l,{title:"Templates",description:"Switch between templates."}),(0,i.jsx)(u.TZ,{children:(0,i.jsx)("div",{role:"radiogroup",className:"space-y-8 p-6",children:(0,i.jsxs)(J.uP,{options:{direction:"vertical"},children:[k.U6.map(e=>(0,i.jsx)(TemplateRadioButton,{template:e,"aria-label":e.label,"aria-checked":e.template===t.template,onClick:()=>{handleUpdate(e.template)}},e.template)),n&&(0,i.jsx)(TemplateRadioButton,{template:n,"aria-label":n.label,"aria-checked":n.template===t.template,onClick:()=>{handleUpdate(n.template)}},n.template)]})})}),(0,i.jsx)(u.IC,{onBeforeSave:()=>!n||!!t.template.includes("LEGACY")||(o(!0),!1)}),r&&(0,i.jsx)(P.f,{title:"Switch to a new template?",content:(0,i.jsxs)("span",{className:"space-y-6",children:[(0,i.jsx)("p",{children:"Your site is using an old, legacy template. It won't be available anymore if you switch to another one now."}),(0,i.jsx)(m.b,{className:"text-left",intent:"danger",children:"Once you switch to a new template, the old one will disappear forever."})]}),yesText:"Switch template",onYes:()=>{o(!1),a(null),p()},noText:"Cancel",onNo:()=>{o(!1)}})]})}let K=(0,r.rw)(["INITIAL"]);function DesignSidebar(e){let t=(0,d.c)(),[n,r]=(0,a.KO)(K),p=(0,o.oC)(K);return l.useEffect(()=>()=>{p()},[p]),(0,i.jsx)(u.YE,{...e,children:(0,i.jsx)(c.H5,{panels:n,onChange:e=>{t(()=>{r(e)})},children:e=>{switch(e){case"INITIAL":return(0,i.jsx)(InitialPanel,{});case"TEMPLATES":return(0,i.jsx)(TemplatesPanel,{});case"COLORS":return(0,i.jsx)(ColorsPanel,{});case"FONTS":return(0,i.jsx)(FontsPanel,{});default:return(0,s.pv)(e)}}})})}},19518:function(e,t,n){n.d(t,{Zr:function(){return Settings}});var i=n(52322),a=n(82851),r=n(17949),o=n(88241),l=n(93556),s=n(52855),c=n(23095),d=n(64266),u=n(40489),p=n(2784),h=n(82885);function SettingsComponentWithLabel(e){let{children:t,label:n,description:a,disabled:r,text:o}=e;return(0,i.jsxs)("div",{className:"space-y-3",children:[n&&(0,i.jsx)("div",{className:(0,u.Z)("text-xs font-semibold",r?"text-graphite-20":"text-graphite-40"),children:n}),(0,i.jsxs)("label",{className:"flex w-full items-center justify-between",children:[o&&(0,i.jsx)("div",{className:(0,u.Z)("flex-1",r?"text-graphite-20":"text-graphite-100"),children:o}),t]}),a&&(0,i.jsx)("p",{className:(0,u.Z)(r?"text-graphite-20":"text-graphite-40"),children:a})]})}function SettingsRoot(e){var t,n;let{children:a,title:o="Section settings",defaultTab:s,onClose:g}=e,m=null!==(n=null===(t=p.Children.map(a,e=>p.isValidElement(e)&&e.props.tab?e.props:null))||void 0===t?void 0:t.filter(Boolean))&&void 0!==n?n:[],f=m.map(e=>e.tab),[x,y]=(0,p.useState)(null!=s?s:f[0]),v=m.find(e=>e.tab===x),b=f.join("_");return(0,i.jsxs)(d.fC,{defaultValue:x,onValueChange:y,children:[(0,i.jsxs)("div",{className:"space-y-6",children:[o&&(0,i.jsxs)("div",{className:"flex items-center justify-between px-6 pt-6",children:[(0,i.jsx)("h3",{className:"text-2xl font-bold leading-none",children:o}),g&&(0,i.jsx)(h.h,{onClick:g,growOutside:!0,"aria-label":"Close",children:(0,i.jsx)(c.IconX,{"aria-hidden":!0,className:"h-6"})})]}),(0,i.jsxs)(l.m.div,{layout:"position",children:[f.length>1&&(0,i.jsx)(d.aV,{className:"space-x-6 border-b border-graphite-10 px-6",children:f.map(e=>(0,i.jsxs)(d.xz,{value:e,className:(0,u.Z)("relative -mb-px leading-[44px] first-letter:capitalize",e===x?"font-bold text-graphite-100":"text-graphite-60"),children:[e,e===x&&(0,i.jsx)(l.m.div,{layoutScroll:!0,layoutId:b,className:"absolute inset-x-0 bottom-0 h-[2px] rounded-t-[2px] bg-graphite-100"})]},e))}),(0,i.jsx)("div",{className:(0,r.Z)("overflow-y-scroll p-6 hide-scrollbar",f.length>1?"max-h-[calc(100vh-228px)]":"max-h-[calc(100vh-184px)] space-y-6 pt-0"),children:a})]})]}),(null==v?void 0:v.description)&&(0,i.jsx)("div",{className:"border-t border-graphite-10 p-6 text-graphite-40",children:null==v?void 0:v.description})]})}function CounterButton(e){let{onClick:t,children:n}=e;return(0,i.jsx)("button",{type:"button",onClick:t,className:"px-2.5 transition-all active:scale-90",children:n})}var g=n(13867),m=n(81654),f=n(71427),x=n(54172),y=n(2991),v=n(61346);let b=p.forwardRef((e,t)=>{let{description:n,onChange:a,onValueChange:r,inputAs:o=v.I,...l}=e;return(0,i.jsx)(SettingsComponentWithLabel,{disabled:l.disabled,label:l.label,description:n,children:(0,i.jsx)(o,{...l,ref:t,onChange:e=>{null==a||a(e),null==r||r(e.target.value)},className:"flex w-full max-w-[312px]"})})});function ChildrenItems(e){var t;let{children:n,onChange:a,value:r,id:o,childClassName:l,...s}=e;return(0,i.jsx)(i.Fragment,{children:p.Children.map(null!==(t=p.Children.map(n,e=>{if(!p.isValidElement(e)||!e)throw Error("invalid child");return e}))&&void 0!==t?t:[],e=>(0,i.jsx)("div",{"aria-hidden":!0,role:"button",onClick:()=>{s.disabled||null==a||a(e.props.value)},className:l,children:p.cloneElement(e,{active:e.props.value===r,parentId:o,...s})}))})}function SettingsChoiceGrid(e){let{children:t,label:n,...a}=e,r=p.Children.count(t);return(0,i.jsx)(SettingsComponentWithLabel,{label:n,children:(0,i.jsx)("div",{className:(0,u.Z)("grid w-full gap-3",{"grid-cols-3":r>=3,"grid-cols-2":2===r}),children:(0,i.jsx)(ChildrenItems,{...a,children:t})})})}SettingsChoiceGrid.Item=function(e){let{active:t,image:n,children:a,value:r,size:o="md"}=e;return(0,i.jsxs)("div",{className:"space-y-3","aria-label":r,children:[(0,i.jsx)("div",{className:(0,u.Z)("flex h-24 items-center justify-center overflow-hidden rounded transition-all",t?"ring-2 ring-graphite-100":"ring-1 ring-graphite-10 hover:ring-2 hover:ring-graphite-40","lg"===o&&"w-full max-w-[150px]"),children:(0,i.jsx)("div",{className:(0,u.Z)("md"===o&&"w-24"),children:n})}),a&&(0,i.jsx)("h3",{className:(0,u.Z)("text-center text-base first-letter:capitalize",t?"font-semibold text-graphite-100":"text-graphite-40"),children:a})]})};var w=n(75746),j=n(78142),I=n(68935);function SettingsDropdown(e){var t,n,a;let{children:r,value:o,onChange:l,label:c,size:d="lg"}=e,[h,g]=(0,p.useState)(!1),m=(0,p.useRef)(null),f=(0,I.h)(m),{ref:x}=(0,j.K)(),y=null!==(t=p.Children.map(r,e=>{if(!p.isValidElement(e))throw Error("invalid child");return e}))&&void 0!==t?t:[],v=y.find(e=>{var t;return null!==(t=e.props.active)&&void 0!==t?t:e.props.value===o});if(!v)throw Error("active prop is missing");return(0,i.jsx)(w.fC,{open:h,onOpenChange:g,children:(0,i.jsxs)("div",{className:"relative w-full",children:[(0,i.jsxs)(SettingsComponentWithLabel,{label:c,children:[(0,i.jsx)("div",{"aria-hidden":!0,onClick:()=>g(!1),className:(0,u.Z)("absolute inset-0",h?"pointer-events-auto ":"pointer-events-none")}),(0,i.jsx)(w.ee,{}),(0,i.jsx)(w.xz,{asChild:!0,children:(0,i.jsxs)("div",{"aria-hidden":!0,role:"button",ref:m,onClick:()=>g(!h),className:(0,u.Z)("relative w-full cursor-pointer bg-graphite-5 transition-all active:bg-graphite-10",{"rounded-lg p-4 ":"lg"===d,"rounded p-2":"md"===d}),children:[p.cloneElement(v,{...null==v?void 0:v.props,size:d}),(0,i.jsx)(s._M,{className:"absolute right-4 top-1/2 h-6 -translate-y-1/2 text-graphite-60"})]})})]}),(0,i.jsx)(w.h_,{container:null!==(n=null==x?void 0:x.current)&&void 0!==n?n:void 0,children:(0,i.jsx)(w.VY,{asChild:!0,sideOffset:-64,align:"start",side:"bottom",children:(0,i.jsx)("div",{style:{width:"".concat(null!==(a=null==f?void 0:f.width)&&void 0!==a?a:0,"px")},className:(0,u.Z)("inset-x-0 top-0 z-[102] px-2 data-[side=bottom]:animate-slide-down data-[side=top]:animate-slide-up",{"data-[side=top]:pt-2":"md"===d,"data-[side=top]:pt-12":"lg"===d},h?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),children:(0,i.jsx)("div",{className:(0,u.Z)("h-auto w-full rounded bg-graphite-0 p-1 shadow-soft-md","md"===d&&"space-y-1","lg"===d&&"max-h-58 overflow-y-scroll"),children:(0,i.jsx)(ChildrenItems,{childClassName:(0,u.Z)("flex-1 rounded-sm hover:bg-graphite-5",{"py-2 pl-2 pr-4":"md"===d,"p-4":"lg"===d}),value:o,onChange:e=>{null==l||l(e),g(!1)},size:d,children:r})})})})})]})})}function SettingsList(e){let{children:t,...n}=e;return(0,i.jsx)("div",{className:"space-y-3",children:(0,i.jsx)(ChildrenItems,{...n,children:t})})}SettingsDropdown.Item=function(e){let{children:t,image:n,active:a,size:r="lg"}=e;return(0,i.jsxs)("div",{className:"flex items-center gap-4",children:[(0,i.jsx)("div",{className:(0,u.Z)("overflow-hidden rounded-sm shadow-soft-sm",{"h-16 w-24":"lg"===r,"h-10":"md"===r}),children:n}),(0,i.jsx)("span",{className:(0,u.Z)("flex-1",a?"font-semibold text-graphite-100":"text-graphite-40"),children:t}),a&&(0,i.jsx)(s.Jr,{className:"h-6 w-6 text-graphite-60"})]})},SettingsList.Item=function(e){let{active:t,children:n,trailing:a}=e;return(0,i.jsxs)("div",{className:(0,u.Z)("flex cursor-pointer items-center rounded px-6 py-4 ring-1 ring-graphite-10 hover:ring-2",t&&"ring-2 ring-graphite-100"),children:[(0,i.jsx)("div",{className:(0,u.Z)("flex-1 font-semibold text-graphite-40",t&&"text-graphite-100"),children:n}),a]})};var k=n(23094),S=n(88366),C=n(66548),N=n(28316),A=n(22121);let P=p.forwardRef((e,t)=>{let{isDragging:n,overlay:a,listeners:r,style:o,index:l,imageSrc:s,attributes:d}=e;return(0,i.jsxs)("div",{className:(0,u.Z)("group relative h-24 w-24 select-none rounded p-1 ring-inset",n?"bg-graphite-5":"bg-graphite-0",a?"ring-2 ring-graphite-100":"ring-1 ring-graphite-10 hover:ring-graphite-40"),ref:t,style:o,...d,children:[(0,i.jsx)("div",{className:"relative h-full w-full",children:!n&&(0,i.jsx)(A.N,{layout:"fill",objectFit:"cover",src:s})}),(0,i.jsx)("div",{className:"absolute inset-1 hidden bg-graphite-0 opacity-50 group-hover:block"}),(0,i.jsx)("div",{className:(0,u.Z)("absolute left-1/2 top-1/2 flex h-6 w-6 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full  text-xs font-semibold ring-1 ring-inset ring-graphite-10",n?"bg-graphite-5 text-graphite-20":"bg-graphite-0 text-graphite-100"),children:l}),(0,i.jsx)("div",{className:"absolute inset-0 hidden items-center justify-center group-hover:flex",children:(0,i.jsx)(g.T,{className:a?"!cursor-grabbing":"!cursor-grab",size:"xs",...r,children:(0,i.jsx)(c.IconDragBars,{className:"h-6"})})})]})});function SortableItem(e){let{index:t,imageSrc:n,overlay:r}=e,{attributes:o,listeners:l,setNodeRef:s,transform:c,transition:d,isDragging:u}=(0,C.nB)({id:n});return(0,i.jsx)(P,{style:{transform:a.ux.Transform.toString(c),transition:d},overlay:r,listeners:l,imageSrc:n,ref:s,index:t,isDragging:u,attributes:o},n)}function SettingsSwitch(e){let{children:t,...n}=e;return(0,i.jsx)(SettingsComponentWithLabel,{...n,children:(0,i.jsx)("div",{className:"flex w-full gap-1 rounded bg-graphite-5 p-1",children:(0,i.jsx)(ChildrenItems,{...n,childClassName:"flex-1",children:t})})})}SettingsSwitch.Item=function(e){let{children:t,parentId:n,active:a,disabled:r}=e;return(0,i.jsxs)(l.m.div,{className:"group relative flex cursor-pointer items-center justify-center py-1",children:[a&&(0,i.jsx)(l.m.div,{layoutId:n,layoutScroll:!0,className:(0,u.Z)("absolute inset-0 rounded bg-graphite-0",!r&&"shadow-hard-md transition-shadow group-hover:shadow-hard-xl")}),(0,i.jsx)("span",{className:(0,u.Z)("relative z-10 w-full rounded text-center text-base font-semibold transition-colors",r?"text-graphite-10":a?"text-graphite-100":"text-graphite-40 group-hover:text-graphite-100"),children:t})]})};var T=n(28019);function Settings(e){return(0,i.jsx)(SettingsRoot,{...e})}Settings.Root=SettingsRoot,Settings.Tab=function(e){let{tab:t,children:n}=e;return(0,i.jsx)(d.VY,{className:"space-y-6",value:t,children:n})},Settings.Switch=SettingsSwitch,Settings.Dropdown=SettingsDropdown,Settings.ChoiceGrid=SettingsChoiceGrid,Settings.Reorder=function(e){let{images:t,onChange:n,label:a}=e,[r,o]=(0,p.useState)(t),[l,s]=p.useState(null),c=(0,k.Dy)((0,k.VT)(k.MA),(0,k.VT)(k.Lg,{coordinateGetter:C.is}));return(0,i.jsx)(SettingsComponentWithLabel,{label:a,children:(0,i.jsx)("div",{className:"grid w-max grid-cols-3 gap-3",children:(0,i.jsxs)(k.LB,{sensors:c,collisionDetection:k.pE,modifiers:[S.lv],onDragStart:e=>{let{active:t}=e;t&&s(t.id)},onDragCancel:()=>{s(null)},onDragEnd:e=>{let{active:i,over:a}=e;if(i&&a){let e=t.findIndex(e=>e.src===i.id),r=t.findIndex(e=>e.src===a.id);if(e!==r){let i=(0,C.Rp)(t,e,r);o(i),n(i)}}s(null)},children:[(0,i.jsx)(C.Fo,{items:r.map(e=>e.src),strategy:C.U2,children:r.map((e,t)=>(0,i.jsx)(SortableItem,{index:t+1,imageSrc:e.src,overlay:!1},e.src))}),(0,N.createPortal)((0,i.jsx)(k.y9,{children:l?(0,i.jsx)(P,{imageSrc:r.find(e=>e.src===l).src,overlay:!0,index:r.findIndex(e=>e.src===l)+1}):null}),document.body)]})})})},Settings.List=SettingsList,Settings.ImageUpload=function(e){var t,n;let{value:a,onUploadClick:r,onCropClick:o,onRemoveClick:l,onChange:d,dialogProps:u,...h}=e,[y,v]=(0,p.useState)(null);return(0,i.jsxs)(SettingsComponentWithLabel,{...h,children:[(0,i.jsxs)(x.nA,{className:"relative h-[137px] w-full rounded bg-graphite-5 ring-1 ring-graphite-10",children:[a&&(0,i.jsx)(m.n,{src:a.src,originalWidth:a.originalWidth,originalHeight:a.originalHeight,layout:"fill",objectFit:"cover",contain:!1,mockup:void 0,pins:void 0,className:"rounded"}),(0,i.jsx)(x.sK,{alwaysVisible:!0,children:(0,i.jsx)(x.up,{alwaysVisible:!0,placement:"center",children:(0,i.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-2",children:[(0,i.jsxs)(g.T,{onClick:null!=r?r:()=>v("upload"),shape:"pill",size:"xs",className:"gap-1",children:[(0,i.jsx)(c.IconUpload,{className:"h-4 w-4"}),a?"Change":"Set"]}),a&&(0,i.jsxs)(i.Fragment,{children:[(o||d)&&(0,i.jsxs)(g.T,{onClick:null!=o?o:()=>v("crop"),shape:"pill",size:"xs",className:"gap-1",children:[(0,i.jsx)(s.oI,{className:"h-4 w-4"}),"Crop"]}),(d||l)&&(0,i.jsxs)(g.T,{intent:"new-danger",shape:"pill",size:"xs",className:"gap-1",onClick:null!=l?l:()=>null==d?void 0:d(null),children:[(0,i.jsx)(s.HG,{className:"h-4 w-4"}),"Remove"]})]})]})})})]}),!r&&d&&y&&(0,i.jsx)(f.h,{title:null!==(n=null==u?void 0:u.title)&&void 0!==n?n:"Upload image",onDismiss:()=>v(null),onUploadComplete:d,...u,crop:(null==u?void 0:u.crop)?{...u.crop,image:a&&"crop"===y?null==u?void 0:null===(t=u.crop)||void 0===t?void 0:t.image:void 0}:void 0})]})},Settings.Text=b,Settings.Toggle=function(e){let{...t}=e;return(0,i.jsx)("div",{className:"last-of-type:border-b last-of-type:border-graphite-10 last-of-type:pb-3",children:(0,i.jsx)(SettingsComponentWithLabel,{...t,children:(0,i.jsx)(T.Z,{...t})})})},Settings.Slider=function(e){let{onChange:t,onValueCommit:n,value:a,min:r,max:o,step:l,minIcon:s,maxIcon:c,...d}=e,[u,h]=p.useState(a);return(0,i.jsx)(SettingsComponentWithLabel,{...d,children:(0,i.jsxs)("div",{className:"flex grow items-center justify-center space-x-4 border-b border-graphite-10 pb-4",children:[s,(0,i.jsxs)(y.fC,{value:[a],min:r,max:o,step:l,onValueChange:e=>{let[n]=e;h(n),null==t||t(n)},onValueCommit:()=>{null==n||n(u)},onLostPointerCapture:()=>{null==n||n(u)},className:"relative flex h-[30px] grow touch-none select-none items-center",orientation:"horizontal",children:[(0,i.jsx)(y.fQ,{className:"relative h-0.5 grow bg-graphite-10",children:(0,i.jsx)(y.e6,{className:"absolute h-full bg-graphite-100"})}),(0,i.jsx)(y.bU,{className:"block h-6 w-6 cursor-grab rounded-full border border-graphite-5 bg-graphite-0 shadow-[0_2px_6px_rgba(18,17,24,0.2)] hover:shadow-[0_4px_8px_rgba(18,17,24,0.24)] active:cursor-grabbing active:shadow-[0_4px_8px_rgba(18,17,24,0.24)]"})]}),c]})})},Settings.Counter=function(e){let{value:t=0,onChange:n,min:d=Number.NEGATIVE_INFINITY,max:u=Number.POSITIVE_INFINITY,...p}=e,h=(0,a.D9)(t),g=(null!=h?h:0)>t?-1:1,handleClick=e=>()=>{let i="increment"===e?t+1:t-1,a=Math.max(Math.min(i,u),d);null==n||n(a)};return(0,i.jsx)("div",{className:"last-of-type:border-b last-of-type:border-graphite-10 last-of-type:pb-3",children:(0,i.jsx)(SettingsComponentWithLabel,{...p,children:(0,i.jsxs)("div",{className:"inline-flex rounded bg-graphite-5 p-1 text-graphite-60",children:[(0,i.jsx)(CounterButton,{onClick:handleClick("decrement"),children:(0,i.jsx)(s.WF,{className:(0,r.Z)("h-6",t===d&&"cursor-not-allowed text-graphite-20")})}),(0,i.jsx)("div",{className:"relative h-8 min-w-10 cursor-default overflow-hidden rounded-sm bg-graphite-0 px-2.5 font-semibold text-graphite-100 shadow-hard-md",children:(0,i.jsx)(o.M,{initial:!1,mode:"popLayout",custom:g,children:(0,i.jsx)(l.m.span,{custom:g,variants:{initial:e=>({y:24*e,scaleY:.4}),target:{y:0,scaleY:1},exit:e=>({y:-(24*e),scaleY:.4})},initial:"initial",animate:"target",exit:"exit",transition:{duration:.1},className:"absolute inset-0 flex h-full w-full items-center justify-center",children:t},"counter-".concat(t))})}),(0,i.jsx)(CounterButton,{onClick:handleClick("increment"),children:(0,i.jsx)(c.IconPlus,{className:(0,r.Z)("h-6",t===u&&"cursor-not-allowed text-graphite-20")})})]})})})},Settings.Group=function(e){let{children:t,...n}=e;return(0,i.jsx)(SettingsComponentWithLabel,{...n,children:(0,i.jsx)("div",{className:"w-full space-y-3",children:t})})}},70349:function(e,t,n){n.d(t,{R:function(){return tipTapDividerClass},i:function(){return o}});var i=n(37243),a=n(27191),r=n(40489);function tipTapDividerClass(e){return(0,r.Z)({"col-span-full h-0.5 bg-custom-accent":"full"===e,"col-span-full @tablet:col-start-2 @tablet:col-span-4 h-0.5 bg-custom-accent":"narrow"===e,"col-span-full flex items-center justify-center space-x-4 w-full":"dotted"===e})}let o=i.NB.create({name:"divider",addOptions:()=>({variants:["full","narrow","dotted"],HTMLAttributes:{}}),group:"block",renderHTML(e){let{HTMLAttributes:t,node:n}=e,a=["div",(0,i.P1)(this.options.HTMLAttributes,t,{class:(0,r.Z)("relative grid w-full cursor-pointer grid-cols-4 gap-x-6 rounded-sm @tablet:grid-cols-6 @laptop:gap-x-12","dotted"===n.attrs.variant?"-my-2.5 py-2.5":"-my-3 py-3")})],o=["div",{class:tipTapDividerClass(n.attrs.variant)}],l=["div",{class:"h-1.5 w-1.5 rounded-full bg-custom-accent"}];return"dotted"===n.attrs.variant&&o.push(l,l,l),a.push(o),a},addAttributes:()=>({variant:{default:"full",parseHTML:e=>e.dataset.variant,renderHTML:e=>({"data-variant":e.variant})}}),addCommands(){return{setDivider:e=>t=>{let{chain:n,state:i,commands:r}=t,{$to:o}=i.selection,l=n();return 0===o.parentOffset?r.insertContentAt(Math.max(o.pos-1,0),{type:this.name,attrs:e}):r.insertContent({type:this.name,attrs:e}),l.command(e=>{let{tr:t,dispatch:n}=e;if(n&&!this.editor.isActive("divider")){let{$to:e}=t.selection,n=e.end();if(e.nodeAfter)e.nodeAfter.isTextblock?t.setSelection(a.Bs.create(t.doc,e.pos+1)):e.nodeAfter.isBlock?t.setSelection(a.qv.create(t.doc,e.pos)):t.setSelection(a.Bs.create(t.doc,e.pos));else{var i;let r=null===(i=e.parent.type.contentMatch.defaultType)||void 0===i?void 0:i.create();r&&(t.insert(n,r),t.setSelection(a.Bs.create(t.doc,n+1)))}t.scrollIntoView()}return!0}).run()}}}})},81217:function(e,t,n){n.d(t,{X:function(){return o}});var i=n(37243),a=n(71391),r=n(94309);let o=a.Z.configure({levels:[1,2,3,4]}).extend({renderHTML(e){let{node:t,HTMLAttributes:n}=e,a=this.options.levels.includes(t.attrs.level),o=a?t.attrs.level:this.options.levels[0];return["h".concat(o),(0,i.P1)(this.options.HTMLAttributes,n,{class:"".concat(r.ID.heading[o]," relative")}),0]},addInputRules:()=>[]})},50687:function(e,t,n){n.d(t,{I:function(){return useCurrentPageId},T:function(){return r}});var i=n(2784);let a=i.createContext(""),r=a.Provider;function useCurrentPageId(){return i.useContext(a)}},57855:function(e,t,n){n.d(t,{$:function(){return useCurrentSiteId},e:function(){return r}});var i=n(2784);let a=i.createContext(""),r=a.Provider;function useCurrentSiteId(){return i.useContext(a)}},73460:function(e,t,n){n.d(t,{d:function(){return r},f:function(){return useCustomDomain}});var i=n(2784);let a=i.createContext(!1),r=a.Provider;function useCustomDomain(){return i.useContext(a)}},60446:function(e,t,n){n.d(t,{e:function(){return useImagePins},w:function(){return a}});var i=n(2784);let a=i.createContext({editing:!1}),useImagePins=()=>i.useContext(a)},86105:function(e,t,n){n.d(t,{K:function(){return InstantImageContextProvider},y:function(){return useInstantImages}});var i=n(52322),a=n(2784);let r=(0,a.createContext)({instantImages:{},addInstantImages:()=>{}});function InstantImageContextProvider(e){let{children:t}=e,[n,o]=(0,a.useState)({}),l=(0,a.useMemo)(()=>({instantImages:n,addInstantImages:e=>{o(t=>{let n={...t};return e.forEach(e=>{n[e.s3Src]=e.localSrc}),n})}}),[n]);return(0,i.jsx)(r.Provider,{value:l,children:t})}function useInstantImages(){return(0,a.useContext)(r)}},52716:function(e,t,n){n.d(t,{Y:function(){return a},k:function(){return usePageSectionsSize}});var i=n(2784);let a=i.createContext({size:"viewport",scale:1}),usePageSectionsSize=()=>i.useContext(a)},42181:function(e,t,n){n.d(t,{V:function(){return r},Z:function(){return usePdfViewSettings}});var i=n(2784);let a=i.createContext({isPdfView:!1,border:!1,pageGap:"none",shadow:!1,hideTableOfContents:!1,topMargin:!1,isPreview:!1,forPrint:!1,hideButtons:!1,previewSize:"md"}),r=a.Provider;function usePdfViewSettings(){return i.useContext(a)}},79209:function(e,t,n){n.d(t,{Ni:function(){return usePendingChangesMutation},fN:function(){return usePendingChangesQuery},ki:function(){return useShowPricingDialogAtom},sG:function(){return PendingChangesProvider},uC:function(){return useHandlePendingChangesSettledAtom}});var i=n(52322),a=n(59965),r=n(65058),o=n(752),l=n(20242),s=n(2784),c=n(82066),d=n(4050),u=n(31118),p=n(90446);let h=s.createContext(null);function PendingChangesProvider(e){let{children:t}=e,n=(0,d.Z)(()=>({queryCache:new Map,emitter:(0,l.i)(),dirtyAtom:(0,r.cn)(!1),pendingMutationAtom:(0,r.cn)(null),handlePendingChangesSettledAtom:(0,r.cn)(null),showPricingDialogAtom:(0,r.cn)(!1)})),[,a]=(0,o.KO)(n.dirtyAtom),[c,u]=(0,o.KO)(n.pendingMutationAtom);return s.useEffect(()=>{var e;let t=null==c?void 0:null===(e=c[1])||void 0===e?void 0:e.call(c),i=n.queryCache.size>0;return a(i),i||u(null),()=>{null==t||t()}},[c,n,a,u]),(0,i.jsx)(h.Provider,{value:n,children:t})}function useHandlePendingChangesSettledAtom(){let e=s.useContext(h);if(p.Ts&&!e)throw Error("PendingChangesContext value not set");return(0,o.KO)(e.handlePendingChangesSettledAtom)}function useShowPricingDialogAtom(){let e=s.useContext(h);if(p.Ts&&!e)throw Error("PendingChangesContext value not set");return(0,o.KO)(e.showPricingDialogAtom)}function usePendingChangesQuery(){let e=s.useContext(h);return(0,u.Pr)(()=>({getPendingQueryData:t=>null==e?void 0:e.queryCache.get((0,c.hashQueryKey)(t)),subscribe:(t,n)=>{if(!e)return()=>{};let i=(0,c.hashQueryKey)(t);return e.emitter.on(i,n)}}),[e])}function usePendingChangesMutation(){let e=(0,c.useQueryClient)(),t=s.useContext(h);if(p.Ts&&!t)throw Error("PendingChangesContext value not set");let[n]=(0,o.KO)(t.dirtyAtom),[i,r]=(0,o.KO)(t.pendingMutationAtom);function removePendingQueries(e){if(null!=e){let n=(0,c.hashQueryKey)(e);t.queryCache.delete(n),t.emitter.emit(n)}else{let e=[...t.queryCache.keys()];t.queryCache.clear(),e.forEach(e=>{t.emitter.emit(e)})}}return{dirty:n,setPendingQueryData:function(n,i){if((0,a.J)(i,e.getQueryData(n)))removePendingQueries(n);else{let e=(0,c.hashQueryKey)(n);t.queryCache.set(e,i),t.emitter.emit(e,i)}return i},removePendingQueries,setPendingMutation:r,applyPendingMutation:async function(){if(!i)throw Error("No mutation to apply");let[e]=i,t=await e();return t&&r(null),t}}}},2134:function(e,t,n){n.d(t,{i:function(){return blogSection},w:function(){return getDefaultBlogPosts}});var i=n(6676),a=n.n(i),r=n(10330),o=n(43474),l=n(15228);let s=l.Ab?[{title:"My process of material selection",description:"I walk you through my thought process of selecting the suitable materials for my all-time favorite project.",thumbnail:o.Blog.DefaultArchifolioThumbnail}]:[{title:"5 ways to advance in your career",description:"We never stop learning and growing —but what if that doesn’t seem to translate to your career? Read my top tips to change that.",thumbnail:{src:"/assets/project-thumbnails/thumbnail-17.jpg",originalWidth:1920,originalHeight:2560}},{title:"The power of networking in the digital age",description:"A few decades ago, networking meant attending conferences and handing out business cards. However, in 2023, a whole new set of networking etiquette and methods has emerged. Read my tips to learn more.",thumbnail:o.Blog.Blog1},{title:"The ultimate copywriter's guide to SEO",description:"This comprehensive guide will walk you through the latest SEO strategies and techniques to ensure your copy stands out in search results and engages your target audience.",thumbnail:o.Blog.Blog2},{title:"A step-by-step guide to master video copywriting",description:"Learn how to create compelling video scripts and enhance your storytelling skills with this in-depth guide to video copywriting.",thumbnail:o.Blog.Blog3}],getDefaultBlogPosts=e=>s.slice(0,"short"===e?2:4).map(e=>({...e,id:a()(),type:"BLOG_POST",slug:"",siteId:"",position:1,published:!0,externalUrl:null,parentSectionId:"",categories:[],blogPostPublishUnixTimestamp:Date.now()/1e3,seo:{...e}}));function blogSection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"horizontal";return i=>(0,r.i)(i,{layout:e,listStyle:t,aspectRatioOfThumbnails:n})}},68589:function(e,t,n){n.d(t,{V:function(){return o},e:function(){return aboutMeSection}});var i=n(11988),a=n(75925),r=n(92501);let o={Copywriter:"Learnt the basics in portfolio school, interned at my dream agency, and didn’t stop until I got the copywriter role I wanted.","Content writer":"I’m a content writer with a degree in English Literature and years of writing experience under my belt. An expert in my field, I love crafting engaging and informative pieces.","Social media manager/specialist":"I’m a social media manager, making a living doing what I love: creating content, writing copy, and engaging with people all day everyday. Could it get any better than that?","UGC creator":"I started sharing the products I love for fun and now just living the dream, getting to create content for a living.","Digital marketer":"Hey there, I’m an online marketing manager, specialized in social media and content marketing. I love working on strategy and helping brands grow.",Journalist:"I’m a journalist trained at the Copyfolio School of Journalism, currently writing for News Journal. I enjoy getting to know new people and cultures and exploring the hidden gems of the world.","Author or creative writer":"I write YA romance and fantasy, but thinking about branching out to the world of science fiction. Look for my books on the shelves of Barnes & Noble.","PR/Communications specialist":"After spending 7 years at a Fortune 500 company, I’m now helping non-profit SMEs navigating PR in the online space.",Other:"On a mission to create something meaningful and engaging, cutting through the noise of the digital world."},l={Copywriter:"Put me in a team with a great art director and we’ll be unstoppable. The snappy copy and creative ideas are on me.","Content writer":"Working with many editors and content managers throughout the years I found that being part of a team is just as fun as writing on my own.","Social media manager/specialist":"I can handle social media at any step of the way: strategy, planning, execution —I have it all under my belt.","UGC creator":"I’ve worked with dozens of brands, mainly in the fashion and beauty space, bringing them closed to their audience, one video at a time.","Digital marketer":"With years of experience behind my back, I make data-based decisions and take responsibility for reaching ambitious KPIs every quarter.",Journalist:"I’ve interviewed hundreds of people and have written longer opinion pieces. Whether it’s human connector or powerful words on paper, I’m all in.","Author or creative writer":"I’ve dipped my toes into being an indie author, but I’m currently with The Publishing House. Look out for my next book, coming in September.","PR/Communications specialist":"In the last couple of years I’ve worked with dozens of SMEs —currently building a network so I can be of help for many more.",Other:"With years of experience, I’m bringing creativity, strategic thinking, and outstanding writing skills to the table."};function aboutMeSection(e,t){let n=(0,i.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:void 0!==t?"02 — Experience":"01 — Introduction"}]}]}}}),s=(0,i.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:void 0!==t?l[e]:o[e]}]}]}},extension:"object"==typeof t?t:t?{action:"NAVIGATE_TO_INTERNAL_PAGE",actionValue:"",label:r.Z[e]}:null});return e=>(0,a.d)(e,{alignment:{vertical:"top"},modules:[n,s]})}},51585:function(e,t,n){n.d(t,{O:function(){return resumeSection},V:function(){return l}});var i=n(6676),a=n.n(i),r=n(9254),o=n(15228);let l={Architect:[{title:"Work experience",rows:[["Ennead Architects  (2022—)","Junior Architect"],["Ennead Architects (2021—2022)","Part-time 2D drafter"],["Gensler (2019—20)","Architecture Intern"]]},{title:"Education",rows:[["New York Institute of Technology (NYIT)","M. Arch | 2020—21"],["City College of New York (CCNY)","B. Arch | 2014—19"],["Williamsburg High School","2010—14"]]},{title:"Software",rows:[["ArchiCAD","️Expert"],["SketchUp + Enscape","Intermediate"],["Adobe Creative Suite","Expert"]]},{title:"Skills",rows:[["Model making","Attention to detail"],["3D rendering","Critical thinking"],["Sketching","Growth mindset"]]}],"Interior Designer":[{title:"Work experience",rows:[["AZ Home Design (2021—)","Interior designer"],["Beverly Home (2019—2021)","Kitchen designer"],["Philip Gill Design (2018—19)","Interior design intern"]]},{title:"Education",rows:[["NYIT | Interior Design major","2018—19"],["CCNY | Bachelor of Architecture","2014—19"],["Williamsburg High School","2010—14"]]},{title:"Skills",rows:[["3D rendering","Presentation skills"],["Sketching","Conceptual design"],["Client management","Creativity"]]},{title:"My go-to software",rows:[["SketchUp"],["AutoCAD"],["ArchiCAD"]]}],"Interior Decorator":[{title:"Work experience",rows:[["Freelancing (2020—)","Freelance interior decorator"],["JB Decor (2019—2021)","Interior decorator"],["Schnell Real Estate (2018-19)","Home stager"]]},{title:"Education",rows:[["New York School of Interior Design","Interior Design | 2018—19"],["City College of New York (CCNY)","Art & Design | 2014—19"],["Williamsburg High School","Art elective | 2010—14"]]},{title:"Services",rows:[["One-time consultation","3D renderings"],["Floor plan design","Consignment"],["Mood boards, Inspiration boards","Project management"]]},{title:"Favorite styles",rows:[["Scandinavian","Minimalist"],["Japandi","Mid Century Modern"],["Contemporary","Eclectic"]]}],"Landscape Architect":[{title:"Work experience",rows:[["A&Z Landscape Architects (2021—)","Lead landscape architect"],["Home & Garden Design (2019—2021)","Landscape architect"],["MNLA (2018—19)","Landscape architect intern"]]},{title:"Education",rows:[["Landscape Architecture Collage","2018—19"],["Landscape Architecture University","2014—19"],["High School","2010—14"]]},{title:"Skills",rows:[["Passion for design","Communication skills"],["Attention to detail","Problem solving"],["Critical thinking","Project management"]]},{title:"Interests",rows:[["Permaculture"],["Vertical gardening"],["Beekeeping"]]}],Copywriter:[{title:"Work experience",rows:[["Ogilvy  (2021—)","Creative Lead"],["HUGE  (2019—2021)","Copywriter"],["HUGE  (2018—19)","Copywriter"]]},{title:"Education",rows:[["Advertising Course","2018—19"],["Copywriter University","2014—19"],["Writer High School","2010—14"]]},{title:"Industries",rows:[["Food","more than 6 projects"],["Beauty","more than 2 projects"],["Healthcare","1 project"]]},{title:"Project types",rows:[["Print","Billboards, magazines, fliers"],["Media","TV & radio spots, short videos"],["Marketing","Ad campaigns, social media ads"]]}],"Content writer":[{title:"Work experience",rows:[["Goldline (2021—)","Content lead"],["Oatly! (2019—2021)","Content writer"],["Aven (2018—19)","Content writing intern"]]},{title:"My education",rows:[["Content Writing Certification","2018—19"],["English B.A.","2014—19"],["Writer High School","2010—14"]]},{title:"Niches I wrote for",rows:[["Food","8+ projects"],["Beauty","4+ projects"],["Healthcare","1 project"]]},{title:"Formats I excel at",rows:[["Blog posts"],["White papers"],["Web pages"]]}],"Social media manager/specialist":[{title:"Work experience",rows:[["Tvit (2021—)","Head of Social Media Marketing"],["Volicity (2019—2021)","Social Media Manager"],["Asgardia (2018-19)","Social Media Specialist"]]},{title:"Education",rows:[["Social Media Marketing Course","2018—19"],["Media University","2014—19"],["Writer High School","2010—14"]]},{title:"Industries",rows:[["Food industry","more than 6 projects"],["Beauty industry","more than 2 projects"],["Healthcare industry","1 project"]]},{title:"Platforms",rows:[["Facebook","Snapchat"],["Instagram","LinkedIn"],["TikTok","YouTube"]]}],"UGC creator":[{title:"Work experience",rows:[["Freelancer (2021—)","UGC Creator"],["Health & Beauty (2020—2021)","Social Media Manager"],["Wellness Boutique (2019)","Social Media Intern"]]},{title:"Education",rows:[["Content creation course","2021"],["Social Media Academy","2019—20"],["Communications & Media BA","2016—18"]]},{title:"Skills",rows:[["Content creation","Product reviews"],["Video editing","Copywriting"],["Photography","Communication"]]},{title:"Platforms",rows:[["Instagram","Reels & Stories"],["TikTok","30 sec – 5 mins"],["YouTube","Shorts"]]}],"Digital marketer":[{title:"My work experience",rows:[["Lightning (2021—)","Head of Marketing"],["Leaf (2019—2021)","Marketing Manager"],["Kyan  (2018—19)","Marketing Executive"]]},{title:"My education",rows:[["Digital Marketing University","2018—19"],["Marketing University","2014—19"],["Writer High School","2010—14"]]},{title:"Skills",rows:[["Search Engine Optimization","Email marketing"],["Google Analytics","Brand strategy"],["Copywriting","Social media"]]},{title:"Platforms & Software",rows:[["Meta Business Suite","Mailchimp, Drip & ConverKit"],["Ahrefs & SEMrush","Hotjar"],["GA, GSC & GTM","Canva"]]}],Journalist:[{title:"Work experience",rows:[["Washington Post (2021—)","Journalist"],["New York Times (2019—2021)","Reporter"],["Local Post (2018—19)","Journalism Intern"]]},{title:"Education",rows:[["Journalism Course","2018—19"],["Copyfolio School of Journalism","2014—19"],["Writer High School","2010—14"]]},{title:"Fields",rows:[["Women’s rights","67+ articles"],["Social justice","23+ articles"],["Others","177+ articles & reports"]]},{title:"Skills",rows:[["Investigative journalism","Social media"],["Interviews","Video editing"],["Field reporting","Editing"]]}],"Author or creative writer":[{title:"Publishers",rows:[["Bloomsbury","2021—"],["Harper Collins","2019—2021"],["Penguin Random House","2018—19"]]},{title:"Education",rows:[["English Literature M.F.A","2018—19"],["English Literature B.A.","2014—19"],["Writer High School","2010—14"]]},{title:"Skills",rows:[["Editing","••••"],["Classic Literature","•••"],["Creative writing","•••••"]]},{title:"Genres",rows:[["YA romance","2 novels"],["NA fantasy","3 novels"],["Other","6 novels & a lot of articles"]]}],"PR/Communications specialist":[{title:"My work experience",rows:[["Fossa (2021—)","Head of Public Relations"],["Towers (2019—2021)","Communications Specialist"],["Nira (2018—19)","PR Intern"]]},{title:"My education",rows:[["Public Relations MA","2018—19"],["PR & Communication BA","2014—19"],["Writer High School","2010—14"]]},{title:"My skills",rows:[["Communications","Public Relations"],["Social media","Networking"],["Crisis management","Copywriting"]]},{title:"Fields I worked in",rows:[["Healthcare","Mental health & wellbeing"],["Beauty","Wellness"],["Fitness & Sports","Clothing"]]}],Other:o.Ab?[{title:"Work experience",rows:[["Beverly Home (2021—)","Architect"],["AZ Architecture & Design (2019—2021)","Junior Designer"],["Schnell Architects (2018—19)","Internship"]]},{title:"Education",rows:[["Master’s degree","2018—19"],["Bachelor’s degree","2014—19"],["High School","2010—14"]]},{title:"Services",rows:[["Revit","Expert"],["ArchiCAD","Intermediate"],["Adobe Creative Suite","Intermediate"]]},{title:"Skills",rows:[["Passion for design","3D rendering"],["Attention to detail","Problem solving"],["Critical thinking","Project management"]]}]:[{title:"My work experience",rows:[["A-lab (2021—)","Team Lead"],["Fox Hub (2019—2021)","Specialist"],["Ideaaa (2018—19)","Intern"]]},{title:"My education",rows:[["Advertising Course","2018—19"],["Copywriter University","2014—19"],["Writer High School","2010—14"]]},{title:"Industries I worked in",rows:[["Food industry","more than 6 projects"],["Beauty industry","more than 2 projects"],["Healthcare industry","1 project"]]},{title:"My skills",rows:[["Copywriting","Team work"],["Social media","Google Suite"],["Communications","Digital marketing"]]}]};function resumeSection(e){var t;let n=null!==(t=l[e])&&void 0!==t?t:l.Other;return e=>(0,r.R)(e,{textBlocks:n.map(e=>({id:a()(),alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:e.title}]},{type:"table",content:e.rows.map(e=>({type:"tableRow",content:e.map(e=>({type:"tableCell",content:[{type:"paragraph",content:[{type:"text",text:e}]}]}))}))}]}}))})}},73691:function(e,t,n){n.d(t,{TV:function(){return d},ev:function(){return shortIntroSection}});var i=n(18823),a=n(11988),r=n(75925),o=n(15228),l=n(92501),s=n(23551);let c={Copywriter:"With 5 years of creative agency experience, your brand is in good hands with me.","Content writer":"I’ve been writing content about health and wellness for years — I can write anything from blog posts to white papers. ","Social media manager/specialist":"I’ve built up profiles with 100k followers from scratch & managed 13 accounts at once.","UGC creator":"After watching the content I create, your audience won’t walk but run to get your product.","Digital marketer":"From brand strategy to email campaigns, I can handle anything when it comes to online marketing.",Journalist:"158 reports. 13 countries. 8 news outlets. And many more to come.","Author or creative writer":"Started with scribbles, ended up with an English Literature degree. Now writing stories for a living to whisk you away.","PR/Communications specialist":"Celebrating successes proudly and handling crises publicly for 7 years, for big and small companies alike.",Other:"I’ve been working with words all my life, I’ll twist and turn them the way you’d like."},d={Copywriter:"I love writing anything from taglines, through online ads, to full-blown sales pages.","Content writer":"With in-depth knowledge and skills, my content is credible and engaging at the same time.","Social media manager/specialist":"I bring numbers and real engagement on any platform. Facebook, Instagram, TikTok — you name it.","UGC creator":"My specialty is short-form video with really strong hooks that people just can’t stop watching.","Digital marketer":"I make data-based decisions for the best performance but I’m also not afraid to let my creativity shine.",Journalist:"Reporting about topics regarding women’s rights and social justice.","Author or creative writer":"You’ll find me working on a draft, chatting with my editor, or at a book fair signing away.","PR/Communications specialist":"It doesn’t matter if it’s a traditional campaign or activities in the online space, I’ve got it.",Other:"Excited to jump into something new, so don’t be shy, I’m just an email away."};function shortIntroSection(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(o.Ab)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(function(e){let{jobTitle:t,familyName:n,givenName:i}=e,a="".concat(i," ").concat(n);switch(t){case"Architect":return["My name is ".concat(a,". I have a passion for creating innovative and sustainable designs that meet the needs and desires of clients, while also contributing positively to the built environment. I got my M. Arch at NYIT, specializing in Urban Design. I feel passionate about creating better cities for people."),"My portfolio includes several designs that showcase my ability to balance functionality, aesthetics, and sustainability."];case"Interior Designer":return["My name is ".concat(a,", and I am a highly skilled and creative interior designer with a passion for transforming spaces into functional and aesthetically pleasing environments. As a graduate of the New York Institute of Art and Design, I’m passionate about finding the true potential of each and every space."),"This portfolio is a testament to my commitment to excellence and attention to detail. I am excited to share my work with you and look forward to the opportunity to bring my expertise and creativity to your next project."];case"Interior Decorator":return["I am a highly creative and passionate interior decorator who can transform your space from a flat into a home. I approach each project with a collaborative mindset, believing that every space has the potential to be transformed into a beautiful and functional environment.","Whether it's a cozy bedroom, a stylish living room, or a functional office, I am committed to creating spaces that are tailored to style and personality of my clients."];case"Landscape Architect":return["As a landscape architect with 3+ years of experience, I have a deep appreciation for the natural environment and a commitment to creating sustainable and functional outdoor spaces.","I believe that every scene has the potential to be transformed into a vibrant and inviting space that enhances the well-being of people. From large-scale master plans to intimate garden designs, my portfolio showcases a variety of design styles and projects, each of which is a testament to my creativity and attention to detail."];default:return["I design with the future in mind. I bring a mindset of sustainability to the table, while always looking out for functional and aesthetically pleasing solutions.","From large master plans to small-scale designs, my portfolio showcases a variety of design styles and projects, each of which is a testament to my creativity and attention to detail."]}})(e).map(e=>({type:"paragraph",content:[{type:"text",text:e}]})),l={type:"heading",attrs:{level:2},content:[{type:"text",text:"About me"}]},c=(0,a.D)({content:{alignment:"left",payload:{type:"doc",content:n.withImage?[l,...o]:o}},extension:n.withButton?{action:"SEND_EMAIL",actionValue:e.email,label:"Get in touch"}:null}),[d]=(0,s.lq)(t),u=(0,i.j)({originalWidth:1200,originalHeight:1200,src:d}),p=n.withButton?[c,u]:n.withImage?[u,c]:[(0,a.D)({content:{alignment:"left",payload:{type:"doc",content:[l]}}}),c];return e=>(0,r.d)(e,{alignment:{vertical:"top"},modules:p})}(e,t,{...n,withButton:!!n.extension});let u=e.jobTitle,p=(0,a.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:n.extension?d[u]:c[u]}]}]}},extension:"object"==typeof n.extension?n.extension:n.extension?{action:"SEND_EMAIL",actionValue:e.email,label:l.Z[u]}:null}),[h]=(0,s.lq)(t),g=(0,i.j)({originalWidth:1200,originalHeight:1200,src:h}),m=n.extension?[p,g]:[g,p];return e=>(0,r.d)(e,{alignment:{vertical:"middle"},modules:m})}},61140:function(e,t,n){n.d(t,{O5:function(){return portfolioSection},Y0:function(){return getPreviewPortfolioPages},kl:function(){return d}});var i=n(3547),a=n(43474),r=n(15228),o=n(46958);let l=[{imageIndex:16,title:"How we increased conversion by 21% in 3 months"},{title:"How a compelling copy transformed sales",imageIndex:19},{title:"A successful copywriting campaign for GHI eCommerce Store",imageIndex:23},{title:"Establishing consistency and connection through copy",imageIndex:26},{title:"How narrative-driven copywriting increased brand loyalty",imageIndex:24},{title:"Enhancing brand perception and awareness through thoughtful copy",imageIndex:25},{title:"Mastering the Art of Social Media Engagement",imageIndex:27},{title:"The Power of Influencer Marketing",imageIndex:28},{title:"Understanding Social Media Algorithms",imageIndex:29},{title:"Crafting Compelling Visuals",imageIndex:30},{title:"Building an Authentic Online Presence",imageIndex:31},{title:"Social Media Advertising 101",imageIndex:32},{title:"Social Listening",imageIndex:33},{title:"Navigating Social Media Crisis Management",imageIndex:34}],s={Copywriter:[{title:"Ad campaign case study",imageIndex:16},{title:"Link to article",imageIndex:12},{title:"Article PDF file",imageIndex:19}],"Content writer":[{title:"Link to article",imageIndex:8},{title:"Link to article",imageIndex:19},{title:"Link to landing page",imageIndex:20}],"Social media manager/specialist":[{title:"Link to social media post",imageIndex:3},{title:"Branding case study",imageIndex:7},{title:"Link to social media post",imageIndex:11}],"UGC creator":[{title:"Product placement in a DITL vlog",imageIndex:35},{title:"Product review video (1 minute)",imageIndex:36},{title:"YouTube shorts about SaaS service",imageIndex:37}],"Digital marketer":[{title:"Marketing strategy case study",imageIndex:12},{title:"Link to article",imageIndex:19},{title:"Link to social media post",imageIndex:3}],Journalist:[{title:"Link to article",imageIndex:8},{title:"Link to article",imageIndex:19},{title:"Link to video report",imageIndex:4}],"Author or creative writer":[{title:"Novel intro",imageIndex:7},{title:"Short story",imageIndex:19},{title:"Short story PDF",imageIndex:18}],"PR/Communications specialist":[{title:"Link to website statement",imageIndex:4},{title:"Crisis response PDF file",imageIndex:16},{title:"Internal response PDF file",imageIndex:18}],Other:[{title:"Writing sample PDF file",imageIndex:12},{title:"Link to article",imageIndex:20},{title:"Marketing campaign case study",imageIndex:16}]},c={"Interior Designer":[a.Thumbnails.Interior[1],a.Thumbnails.Interior[2],a.Thumbnails.Interior[3],a.Thumbnails.Interior[4],a.Thumbnails.Interior[5],a.Thumbnails.Interior[6]],"Interior Decorator":[a.Thumbnails.Interior[1],a.Thumbnails.Interior[2],a.Thumbnails.Interior[3],a.Thumbnails.Interior[4],a.Thumbnails.Interior[5],a.Thumbnails.Interior[6]],Other:[a.Thumbnails.Architect[1],a.Thumbnails.Architect[2],a.Thumbnails.Architect[3],a.Thumbnails.Architect[4],a.Thumbnails.Architect[5],a.Thumbnails.Architect[6]]},d={square_small:{aspectRatioOfImages:"square",sizeOfThumbnails:"small",spacing:"md",labelPlacement:"outside",count:8},square_medium:{aspectRatioOfImages:"square",sizeOfThumbnails:"medium",spacing:"md",labelPlacement:"outside",count:6},horizontal_large:{aspectRatioOfImages:"horizontal",sizeOfThumbnails:"large",spacing:"md",labelPlacement:"outside",count:4},original_large:{aspectRatioOfImages:"original",sizeOfThumbnails:"large",spacing:"md",labelPlacement:"outside",count:2},square_large:{aspectRatioOfImages:"square",sizeOfThumbnails:"large",spacing:"sm",labelPlacement:r.Ab?"inside":"outside",count:4},vertical_large:{aspectRatioOfImages:"vertical",sizeOfThumbnails:"large",spacing:"md",labelPlacement:"outside",count:2}};function getPreviewPortfolioPages(e,t,n){var i,a;let o=e.jobTitle;if(r.Ab){let n=null!==(i=c[o])&&void 0!==i?i:c.Other;return n.slice(0,t).map((t,n)=>({id:t.src,title:"".concat(e.givenName,"'s project"),type:"PROJECT",blogPostPublishUnixTimestamp:null,description:"Describe your project in a few words",externalUrl:null,parentSectionId:null,position:n,published:!0,seo:{title:"",description:""},siteId:"",slug:null,thumbnail:t,categories:[]}))}let d="section"===n?null!==(a=s[o])&&void 0!==a?a:s.Other:"blog"===n?l.slice(-8):l.slice(0,t);return d.map((e,t)=>{let{title:n,imageIndex:i}=e;return{id:"project-".concat(t),title:n,type:"PROJECT",blogPostPublishUnixTimestamp:null,description:"Describe your project in a few words",externalUrl:null,parentSectionId:null,position:t,published:!0,seo:{title:"",description:""},siteId:"",slug:null,categories:[],thumbnail:{originalWidth:1200,originalHeight:1200,src:"/assets/project-thumbnails/thumbnail-".concat(i,".jpg")}}})}function portfolioSection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"square_medium",t=arguments.length>1?arguments[1]:void 0;return n=>{var a;return(0,i.p)(n,{contentAlignment:"left",...null!==(a=d[e])&&void 0!==a?a:{sizeOfThumbnails:"medium",aspectRatioOfImages:"square"},title:t?(0,o.r)("PROJECT_GRID"):null})}}},83815:function(e,t,n){n.d(t,{V:function(){return r},i:function(){return servicesSection}});var i=n(12102),a=n(15228);let r={Copywriter:[{imageIndex:16,title:"Ad copywriting",description:"Ads, especially online, need to catch and hold attention —and also make people convert."},{imageIndex:1,title:"Social media copy",description:"Grow your social media accounts with engaging copy with every post."},{imageIndex:2,title:"Landing pages",description:"Offer a solution to their problem, leaving no room for wanting any other options."},{imageIndex:3,title:"Email campaigns",description:"Subject lines they can’t resist with email contents they can’t forget. "}],"Content writer":[{imageIndex:4,title:"Blog posts",description:"SEO optimized blog posts that drive traffic to your site and convert visitors."},{imageIndex:2,title:"Web pages",description:"It’s not only landing pages that need great copy. Give all pages the care they deserve."},{imageIndex:5,title:"White papers",description:"Offer a solution to their problem, leaving no room for wanting any other options."},{imageIndex:6,title:"Brochures",description:"Keeping formatting in mind, I’ll write informative and fun-to-read copy for your brochures."}],"Social media manager/specialist":[{imageIndex:7,title:"Social media strategy",description:"Find out what platforms fit your audience and how to create great content for them."},{imageIndex:8,title:"Branding",description:"Don’t underestimate the power of a consistent look and tone of voice."},{imageIndex:9,title:"Copywriting",description:"Impress people with engaging copy under every post you share."},{imageIndex:1,title:"Social management",description:"Get a detailed content calendar and stay on top of posting on all your accounts."}],"UGC creator":[{imageIndex:19,title:"Product reviews",description:"A short video talking about the product overall, mentioning all benefits and its USP."},{imageIndex:20,title:"Haul videos",description:"Featuring the product as part of a bigger haul video, together with other items."},{imageIndex:21,title:"Features in vlogs",description:"Showing the product as part of a vlog (e.g. Get ready with me, Day in the life, etc.)."},{imageIndex:22,title:"Testing videos",description:"Trying out the product and talking about my first impressions on video."}],"Digital marketer":[{title:"Brand strategy",description:"Establish a tone of voice, sort your visual branding and start making a marketing plan.",imageIndex:8},{title:"Email marketing",description:"Let’s plan campaigns, write catchy subject lines and set everything up together.",imageIndex:3},{title:"SEO",description:"Optimize your pages and sites so they show up on the top of Google every single time.",imageIndex:9},{title:"CRO",description:"Getting a lot of traffic is great. But you know what’s even better? When they all convert.",imageIndex:10}],Journalist:[{title:"Live reporting",description:"Always where the action happens, ready to jump in and report it all live.",imageIndex:11},{title:"Video editing",description:"Reports are nothing without footage. Don’t worry, I can edit it all for you.",imageIndex:12},{title:"Social media",description:"News sites are not enough these days. I’m here to share the reports on socials too.",imageIndex:1},{title:"Article writing",description:"Other than short reports, I love writing longer opinion pieces as well.",imageIndex:9}],"Author or creative writer":[{title:"Proofreading",description:"Finding typos in your own work is always harder. So I’m here to do it for you.",imageIndex:13},{title:"Editing",description:"Editing is my second nature. To take a break from writing, I’d love to help you with yours.",imageIndex:17},{title:"Creative writing",description:"Poems, short stories, novels. In whatever shape or form, I live to put words on paper.",imageIndex:14},{title:"Blog post writing",description:"Let’s shake up all this  literature with fun and informative blog posts, shall we?",imageIndex:9}],"PR/Communications specialist":[{title:"PR Management",description:"Put the public relations of your company in good hands with me, I’ll take care of everything.",imageIndex:18},{title:"CSR campaigns",description:"Show your customers that you care with meaningful CSR campaigns.",imageIndex:15},{title:"Social media",description:"Social media presence is an essential part of PR. Let’s make sure it’s all going well.",imageIndex:1},{title:"Internal emails",description:"Colleagues deserve content just as great as customers. Let’s give it to them together.",imageIndex:3}],Architect:[{title:"Architectural design",description:"With my all-inclusive service I’ll help you transform your vision into reality.",imageIndex:1},{title:"Space planning",description:"I excel at optimizing space utilization and creating captivating interiors.",imageIndex:2},{title:"3D visualization",description:"With expertise in rendering, I bring your concepts to life with unparalleled realism.",imageIndex:3},{title:"Project management",description:"I ensure seamless execution of your project from start to finish, within budget and on schedule.",imageIndex:4}],"Interior Designer":[{title:"Concept development",description:"I offer personalized, captivating mood boards that capture your desired aesthetic.",imageIndex:1},{title:"Space planning",description:"I excel at optimizing space utilization and creating captivating interiors.",imageIndex:2},{title:"Material Selection",description:"I’ll assist you in selecting the perfect materials, finishes, and textures that bring your space to life.",imageIndex:3},{title:"Decorative Styling",description:"We’ll choose unique decor pieces and add the finishing touches that complete your space and reflect your personal style.",imageIndex:4}],"Interior Decorator":[{title:"Concept development",description:"I offer personalized, captivating mood boards that capture your desired aesthetic.",imageIndex:1},{title:"Space planning",description:"I excel at optimizing space utilization and creating captivating interiors.",imageIndex:2},{title:"Material Selection",description:"I’ll assist you in selecting the perfect materials, finishes, and textures that bring your space to life.",imageIndex:3},{title:"Decorative Styling",description:"We’ll choose unique decor pieces and add the finishing touches that complete your space and reflect your personal style.",imageIndex:4}],"Landscape Architect":[{title:"Site Analysis",description:"I conduct comprehensive site analyses to understand the unique characteristics and potential of your outdoor space.",imageIndex:1},{title:"Planting Design",description:"With expertise in horticulture, I specialize in creating harmony within the natural environment.",imageIndex:2},{title:"Material Selection",description:"I’ll help you select materials that enhance the overall design and withstand the test of time.",imageIndex:3},{title:"Water Management",description:"I’m using eco-friendly practices to minimize environmental impact and maximize resource efficiency.",imageIndex:4}],Other:a.Ab?[{title:"Combined service",description:"With my all-inclusive service I’ll help you transform your vision into reality.",imageIndex:1},{title:"Space planning",description:"I excel at optimizing space utilization and creating captivating interiors.",imageIndex:2},{title:"3D visualization",description:"With expertise in rendering, I bring your concepts to life with unparalleled realism.",imageIndex:3},{title:"Project management",description:"I ensure seamless execution of your project from start to finish, within budget and on schedule.",imageIndex:4}]:[{title:"Copywriting",description:"Impress people with witty, snappy, engaging copy, everywhere you write.",imageIndex:18},{title:"Social media",description:"A well-planned out content calendar and engaging copy is all you need for your accounts.",imageIndex:1},{title:"Article writing",description:"Fun, engaging, yet still informative articles, all optimized for SEO.",imageIndex:9},{title:"Editing",description:"Editing is my second nature. To take a break from writing, I’d love to help you with yours.",imageIndex:17}]};function servicesSection(e,t){var n;let a=null!==(n=r[e])&&void 0!==n?n:r.Other;return e=>(0,i.i)(e,{columns:null==a?void 0:a.map(e=>({image:{type:"IMAGE",originalWidth:522,originalHeight:560,src:"/assets/placeholders/services/image-".concat(e.imageIndex,".webp")},textNodes:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:e.title}]},{type:"paragraph",content:[{type:"text",text:e.description}]}]}}})),hideImages:!t})}},92501:function(e,t,n){n.d(t,{Z:function(){return i}});let i={Copywriter:"Come say hi →","Content writer":"Let’s talk →","Social media manager/specialist":"Get results with me →","UGC creator":"Work with me →","Digital marketer":"Work with me →",Journalist:"Send a message →","Author or creative writer":"Get in touch →","PR/Communications specialist":"Come reach out →",Other:"Write a message →"}},13877:function(e,t,n){n.d(t,{E:function(){return getHeroTagLine},Q:function(){return getHeroImages}});var i=n(34911),a=n(94833),r=n(43474),o=n(15228),l=n(23551);let s={Copywriter:["Writing snappy words that’ll help your business thrive.","Helping your business stand out with witty words & unusual ideas.","Copywriter, huge fan of unusual, out of the box ideas.","Copywriter, ready to hop on your next project.","The copywriter your company needs. Writing it all, in your tone.","Writing words that convert to help your business thrive.","Writing copy that people just can’t resist, all day everyday."],"Content writer":["Writing meaningful content that converts. Ready to give it a go?","Content writer —ready to help your site soar to the top of Google.","Let me get you to the top of SERP with SEO-optimized articles.","Writing SEO-optimized, engaging articles to help your business thrive.","Bringing in traffic via organic search is my speciality, so let me help.️","Let’s get your site to the top of Google, shall we?","“Content is king.” Clich\xe9? Maybe. True? Definitely. So let me help."],"Social media manager/specialist":["There’s no such thing as impossible for me in social media.","Social media manager, huge fan of unusual, out of the box ideas.","No matter the platform, I’ll bring the numbers you need.","Creating meaningful posts for greater visibility and soaring engagement.","Connect with your audience through outstanding social media content.","Social media presence is crucial. Let me help you with that.","From strategy to posting and engaging with followers, I do everything social.","Everything your social media needs: strategy, posts & engagement.","Translating creative and meaningful posts into business results."],"UGC creator":["Let people discover your brand through UGC —with my help.","Content by your brand’s biggest fans? Consider it done, by me.","UGC creator, here to create content that feels genuine.","If I make your UGC, nobody will suspect it’s not a genuine fan’s video.","The UGC your brand needs: organic, trustworthy, entertaining.","No matter the platform, I’ll create UGC that brings in sales.","The UGC creator you’ve been looking for, shooting videos that convert.","Transforming creative ideas to UGC and business results."],"Digital marketer":["I’ll help your brand stand out from the crowd and grow.","Digital marketer, huge fan of unusual, out of the box ideas.","From marketing strategy to execution and reporting, I can do it all.","Let’s get your brand in front of your target audience, shall we?","Marketer, with data-driven decisions, creative ideas & meticulous execution.","Everything your marketing needs: strategy, execution & reporting.","Translating creative ideas into business results."],Journalist:["Journalist, here to tell the story, exactly how it is.","Journalist, huge fan of unusual, out of the box ideas.","Tight deadlines and immense pressure? I’m a journalist, that’s how I thrive.","Always in seek of the truth, out here to tell meaningful stories.","Challenging and changing the world, one story at a time.","“Journalism is in fact history on the run” — Thomas Griffith","Journalist, living for the thrill of getting out there & reporting live."],"Author or creative writer":["Creative writer, huge fan of unusual ideas and surprising approaches.","Turning creative ideas into breathtaking stories.","Challenging readers’ imagination, one line at a time.","Creative writer, writing like there’s no tomorrow.","Words have power and I’m here to make them work for me.","Creative writer, ready to jump into the next story.","Making the world a more interesting place, one story at a time."],"PR/Communications specialist":["There’s no crisis too bad to handle, just wrong words and timing.","Communication specialist, huge fan of unusual, out of the box ideas.","From internal emails to press conferences, I can handle it all.","With a great network and witty words, your PR is in good hands with me.","Just as good at celebrating success as handling the worst crises.","PR manager, sailing through even the toughest times with you.","Have a lot to say but not sure how? I’ve just the right words for you."],Other:["Let’s work together on something truly amazing.","Elevate your business to the next level.","Huge fan of unusual ideas. If it’s out of the box, I’m your choice.","Ready to hop on your next project and help your business thrive."]},c={Architect:{COMPLEX:{heading:()=>"Architecture portfolio",paragraph:e=>"I’m ".concat((0,a.gA)(e),", an architect working for a more sustainable future.")},EXPERIENCE:{heading:e=>e,paragraph:()=>"I’m a professional architect with 5 years of experience. Let’s work together!"},MINIMAL:{heading:()=>"Architecture portfolio"},NORMAL:{heading:()=>"Portfolio",paragraph:e=>"My name is ".concat((0,a.gA)(e)," aiming to create functional spaces for all.")},SIMPLE:{heading:e=>"Hi, I’m ".concat((0,a.gA)(e),". An architect designing with a people-first mindset")},STATIC:{heading:()=>"My portfolio"}},"Landscape Architect":{COMPLEX:{heading:()=>"Landscape architect portfolio",paragraph:e=>"I’m ".concat((0,a.gA)(e),", landscape architect working for a more sustainable future.")},EXPERIENCE:{heading:e=>e,paragraph:()=>"I’m a professional landscape architecture with 5 years of experience. Let’s work together!"},MINIMAL:{heading:()=>"Landscape architecture portfolio"},NORMAL:{heading:()=>"Portfolio",paragraph:e=>"My name is ".concat((0,a.gA)(e)," aiming to create stunning urban landscapes.")},SIMPLE:{heading:e=>"Hi, I’m ".concat((0,a.gA)(e),". A landscape architect designing with a people-first mindset.")},STATIC:{heading:()=>"My portfolio"}},"Interior Designer":{COMPLEX:{heading:()=>"Interior designer portfolio",paragraph:e=>"I’m ".concat((0,a.gA)(e),", an interior designer working for a better everyday living")},EXPERIENCE:{heading:e=>e,paragraph:()=>"I’m a professional interior designer with 5 years of experience. Let’s work together!"},MINIMAL:{heading:()=>"Interior designer portfolio"},NORMAL:{heading:()=>"Portfolio",paragraph:e=>"My name is ".concat((0,a.gA)(e)," making spaces functional and beautiful.")},SIMPLE:{heading:e=>"Hi, I’m ".concat((0,a.gA)(e),". An interior designer working to make your house into your home.")},STATIC:{heading:()=>"My portfolio"}},"Interior Decorator":{COMPLEX:{heading:()=>"Interior decorator portfolio",paragraph:e=>"I’m ".concat((0,a.gA)(e),", an interior decorator working for a better everyday living")},EXPERIENCE:{heading:e=>e,paragraph:()=>"I’m a professional interior decorator with 5 years of experience. Let’s work together!"},MINIMAL:{heading:()=>"Interior decorator portfolio"},NORMAL:{heading:()=>"Portfolio",paragraph:e=>"My name is ".concat((0,a.gA)(e)," making spaces functional and beautiful.")},SIMPLE:{heading:e=>"Hi, I’m ".concat((0,a.gA)(e),". An interior decorator working to make your house into your home.")},STATIC:{heading:()=>"My portfolio"}},Other:{COMPLEX:{heading:()=>"My portfolio",paragraph:e=>"Hi, I’m ".concat(e,". Let’s work together to turn your visions into reality")},EXPERIENCE:{heading:e=>e,paragraph:()=>"Experienced professional with 5 years of experience. Let’s have a chat!"},MINIMAL:{heading:()=>"Welcome to my portfolio"},NORMAL:{heading:()=>"Portfolio",paragraph:e=>"My name is ".concat((0,a.gA)(e),". I’m eager to learn something new every day")},SIMPLE:{heading:e=>"Hi, I’m ".concat(e," helping you get your next project through the finish line")},STATIC:{heading:()=>"My portfolio"}}};function getHeroTagLine(e,t){var n,i,a;let r=e.jobTitle;if(!o.Ab){let e=null!==(i=s[r])&&void 0!==i?i:s.Other,t=Math.floor(Math.random()*e.length);return{heading:e[t]}}let d=null!==(a=c[r])&&void 0!==a?a:c.Other,u=d[l.D3[t].hero.taglineVariant||"EXPERIENCE"],p="".concat(e.givenName," ").concat(e.familyName),h=u.heading(p),g=null===(n=u.paragraph)||void 0===n?void 0:n.call(u,p);return{heading:h,paragraph:g}}let d=Math.floor(3*Math.random());function getHeroImagesByVariantAndType(e,t,n){switch(t){case"BEIGE":return"single"===n?r.Heroes.BeigeArchitect:[r.Heroes.BeigeTall,r.People.SimonTall,r.Heroes.BeigeOther];case"COLORFUL":return"single"===n?r.Heroes.Colorful1:[r.Heroes.ColorfulArchitect,r.Heroes.Colorful2];case"DARK":return"single"===n?r.Heroes.DarkInteriorDecorator1:[r.Heroes.DarkInteriorDecorator1,r.Heroes.DarkInteriorDesigner2,r.Heroes.DarkInteriorDecorator3];case"DARK_BEIGE":return"single"===n?r.Heroes.DarkBeigeInteriorDesigner:[r.Heroes.DarkBeigeOther,r.Heroes.DarkBeigeOther,r.Heroes.DarkBeigeOther];case"GOLDEN":return"single"===n?r.Heroes.GoldenArchitect1:[r.Heroes.GoldenArchitect1,r.Heroes.GoldenArchitect2,r.Heroes.GoldenInteriorDesigner2];case"NEUTRAL":return"single"===n?r.Heroes.NeutralInteriorDecorator:[r.Heroes.NeutralOther,r.Heroes.NeutralOther,r.Heroes.NeutralOther];case"NEUTRAL2":return"single"===n?r.Heroes.Neutral2InteriorDesigner:[r.Heroes.Neutral2Other,r.Heroes.Neutral2Other,r.Heroes.Neutral2Other];case"PERSON":return"single"===n?(0,l.e2)(e)[d]:[(0,l.e2)(e)[d],(0,l.e2)(e)[d],(0,l.e2)(e)[d]];default:return(0,i.pv)(t)}}function getHeroImages(e){let t=l.D3[e].hero.image.variant,n=l.D3[e].hero.image.type;return"foreground"===n?{backgroundImage:null,foregroundImage:getHeroImagesByVariantAndType(e,t,"single"),images:null}:"background"===n?{backgroundImage:getHeroImagesByVariantAndType(e,t,"single"),foregroundImage:null,images:null}:{backgroundImage:null,foregroundImage:null,images:getHeroImagesByVariantAndType(e,t,"multiple")}}},46958:function(e,t,n){n.d(t,{r:function(){return getDefaultSectionTitle}});function getDefaultSectionTitle(e){return{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:function(e){switch(e){case"BLOG":return"Check out my blog";case"PROJECT_GRID":return"My top projects";case"SERVICES":return"Add a title for your section";case"COLLAGE":case"TEXT_AROUND_MEDIA":return"Check out my work";default:return""}}(e)}]}]}}}},52518:function(e,t,n){n.d(t,{ei:function(){return w.e},Yh:function(){return archifolioExperienceSection},iZ:function(){return i.i},yl:function(){return callToActionSection},B2:function(){return clientLogosSection},zo:function(){return clientWallSection},Ki:function(){return collage_collageSection},gU:function(){return contactFormSection},VY:function(){return contactInfoSection},ke:function(){return cover_coverSection},up:function(){return creativeProcessSection},LW:function(){return designProcessSection},TC:function(){return experienceSection},Bx:function(){return faqSection},NG:function(){return gallerySection},wz:function(){return i.w},Y0:function(){return z.Y0},uH:function(){return heroSection},l6:function(){return imageSection},mf:function(){return numbersSection},I_:function(){return paragraphSection},Fy:function(){return plansAndSketchesSection},O5:function(){return z.O5},f8:function(){return processSection},Wu:function(){return projectDetailsSection},kl:function(){return z.kl},c4:function(){return resultSummarySection},On:function(){return N.O},Tq:function(){return screenshotSection},iI:function(){return q.i},ev:function(){return A.ev},pM:function(){return testimonialSection},$y:function(){return textSection},hu:function(){return titleSection},H2:function(){return videoSection}});var i=n(2134),a=n(6676),r=n.n(a),o=n(16002),l=n(43474);function clientLogosSection(){return e=>(function(e){let{logos:t=Array.from({length:4},()=>({key:(0,o.G)(),image:{type:"IMAGE",src:"/assets/media-examples/logo-placeholder.png",originalWidth:728,originalHeight:278}})),tintEnabled:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{version:1,pageId:e,type:"LOGO_WALL",logos:t,tintEnabled:n}})(e,{logos:[{key:r()(),image:{type:"IMAGE",...l.Logos.Amara}},{key:r()(),image:{type:"IMAGE",...l.Logos.Aven}},{key:r()(),image:{type:"IMAGE",...l.Logos.Goldline}},{key:r()(),image:{type:"IMAGE",...l.Logos.ZooTv}}]})}var s=n(12102),c=n(15228);let d=[{imageIndex:4,name:"Jean Smith",title:"Head of Marketing at Humble"},{imageIndex:1,name:"Tyrell Jay",title:"Co-founder at Dash"},{imageIndex:2,name:"Maya Bison",title:"Marketing Lead at Copyfolio"},{imageIndex:3,name:"Tim Rowan",title:"Copywriting Lead at UXfolio"}],u=[{imageIndex:4,name:"Jean Smith",title:"Lead Architect at Beverly Home"},{imageIndex:1,name:"Tyrell Jay",title:"Co-founder of JB Decor"},{imageIndex:2,name:"Maya Bison",title:"BIM manager at Schnell Architects"},{imageIndex:3,name:"Tim Rowan",title:"Office manager at Archifolio"}];function clientWallSection(){return e=>(0,s.i)(e,{columns:(c.Ab?u:d).map(e=>({image:{type:"IMAGE",...l.Clients["Image".concat(e.imageIndex)]},textNodes:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:e.name}]},{type:"paragraph",content:[{type:"text",text:e.title}]}]}}}))})}var p=n(25265),h=n(11988),g=n(75925);function contactFormSection(e){let{email:t}=e,n=(0,h.D)({content:c.Ab?{alignment:"left",payload:{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:"If you are interested in learning more about my work, discussing a potential project, or have any questions or comments, please feel free to contact me using the following information:"}]},{type:"paragraph",content:[{type:"text",text:"Tel.: (555) 555-5555"}]},{type:"paragraph",content:[{type:"text",text:"Email: ".concat(t)}]},{type:"paragraph",content:[{type:"text",text:"I look forward to hearing from you and the opportunity to collaborate on your next project."}]}]}}:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:"I can provide further case studies upon request. In case you’re reaching out because of a project, please provide some information on your goals and we’ll move the conversation on from there."}]},{type:"heading",attrs:{level:3},content:[{type:"text",text:"(555) 555-5555"}]},{type:"heading",attrs:{level:3},content:[{type:"text",text:t}]}]}}}),i=(0,p.$)(t);return e=>(0,g.d)(e,{alignment:{vertical:"top"},modules:[n,i]})}var m=n(18823),f=n(23551);function contactInfoSection(e,t){let{email:n}=e,i=(0,h.D)({extension:{action:"SEND_EMAIL",actionValue:n,label:"Send a message"},content:c.Ab?{alignment:"left",payload:{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:"If you are interested in learning more about my work, discussing a potential project, or have any questions or comments, please feel free to contact me using the following information:"}]},{type:"paragraph",content:[{type:"text",text:"Tel.: (555) 555-5555"}]},{type:"paragraph",content:[{type:"text",text:"Email: ".concat(n)}]},{type:"paragraph",content:[{type:"text",text:"I look forward to hearing from you and the opportunity to collaborate on your next project."}]}]}}:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:"Get in touch today, I’m just a click away. I’ll get back to you within 2-3 business days."}]},{type:"heading",attrs:{level:3},content:[{type:"text",text:"(555) 555-5555"}]},{type:"heading",attrs:{level:3},content:[{type:"text",text:n}]}]}}}),[a]=(0,f.lq)(t),r=(0,m.j)({originalWidth:1200,originalHeight:1200,src:a});return e=>(0,g.d)(e,{modules:c.Ab?[i,r]:[r,i]})}var x=n(9254);let y={afterContact:{question:"What happens after I contact you?",answer:"You’ll get a response in 2-3 business days. I’ll ask you for more details about the project and most likely schedule a call to iron out all the details."},longerContract:{question:"Are you open for a longer contract?",answer:"Definitely. I love one-off projects, but I’m all for building meaningful partnerships, so I’m open for retainer contracts."}},v=[y.afterContact,{question:"How will our collaboration look like?",answer:"We’ll start by setting up a plan and timeline that works for both of us. I’ll send you the work in increments that you can approve or request edits for."},{question:"Can I ask for changes?",answer:"Yes! Two rounds of changes are always included in the price. You can ask for more too, but you’ll have to pay extra for it."},y.longerContract],b={Copywriter:[y.afterContact,{question:"How will our collaboration look like?",answer:"We’ll start by setting up a plan and timeline that works for both of us. I’ll send you the work in increments that you can approve or request edits for."},{question:"Can I ask for edits?",answer:"Yes! Two rounds of edits are always included in the price. You can ask for more too, but you’ll have to pay extra for it."},y.longerContract],"Content writer":[y.afterContact,{question:"How will our collaboration look like?",answer:"We’ll start by setting up a plan and timeline that works for both of us. I’ll send you the work in increments that you can approve or request edits for."},{question:"Can I ask for edits?",answer:"Yes! Two rounds of edits are always included in the price. You can ask for more too, but you’ll have to pay extra for it."},y.longerContract],"Social media manager/specialist":[y.afterContact,{question:"What platforms do you work with?",answer:"I work with most popular social media platforms: Instagram, TikTok, YouTube & Facebook. Sometimes even Snapchat and WhatsApp."},{question:"Do you handle ads too?",answer:"At the moment I’m focusing on strategy, content creation, and community building. I could boost a post, but don’t manage and optimize ads."},y.longerContract],"UGC creator":[{question:"What kind of content do you create?",answer:"I create primarily videos, for Instagram Reels and Stories, TikTok, and YouTube shorts. But I can also do photos as part of a bigger collaboration."},{question:"What are your prices for UGC?",answer:"No two projects are the same, so please get in touch to get a personal quote.\xa0"},{question:"Can we ask for edits?",answer:"Yes! A round of revision is always included in the price. You can ask for more but that’ll cost extra."},y.longerContract],"Digital marketer":[y.afterContact,{question:"Which parts of marketing do you do?",answer:"You can read more about it on my services page, but I mostly focus on marketing strategy, content marketing + SEO, and email campaigns."},{question:"What software do you use?",answer:"I track with Google Analytics, do SEO via ahrefs, send out emails with Drip. For the full list, check out my about page."},y.longerContract],Journalist:[y.afterContact,{question:"Do you have a degree?",answer:"Yes! I have both a bachelors and a masters degree in Journalism from the University of Copyfolio."},{question:"What areas do you report on?",answer:"My areas of expertise are women’s rights and social justice, but I’m happy to report on anything concerning societal issues."},{question:"What kind of projects do you take?",answer:"I’d be happy to be an in-house reporter, but also take project-based live reporting and article writing jobs at the moment."}],"Author or creative writer":[y.afterContact,{question:"Do you have a degree?",answer:"Yes! I have a BFA and an MFA, both in English Literature from the University of Copyfolio."},{question:"What kind of projects do you take?",answer:"I’m currently working on my new novel, but I’m happy to take on some article writing projects on the side."},{question:"Do you optimize articles for SEO?",answer:"Of course. I have a certification in Advanced Search Engine Optimization, and will optimize all posts I write."}],"PR/Communications specialist":[y.afterContact,{question:"Do you have a degree?",answer:"Yes! I have a bachelors in Communication Studies and a masters in PR & Communication, both from the University of Copyfolio."},{question:"What’s your specialization?",answer:"I specialize in PR management and crises communication for big enterprises, usually Fortune 500 companies."},{question:"Do you take freelance work?",answer:"Not at the moment. Currently I’m Head of PR at Copyfolio and it doesn’t leave much time and energy to work on the side."}],Other:[y.afterContact,{question:"How will our collaboration look like?",answer:"We’ll start by setting up a plan and timeline that works for both of us. I’ll send you the work in increments that you can approve or request edits for."},{question:"Can I ask for edits?",answer:"Yes! Two rounds of edits are always included in the price. You can ask for more too, but you’ll have to pay extra for it."},y.longerContract]};function faqBlockToTextNodes(e){return[{type:"heading",attrs:{level:3},content:[{type:"text",text:e.question}]},{type:"paragraph",content:[{type:"text",text:e.answer}]}]}function faqSection(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"columns";if("tiles"===n)return function(e){var t;let n=c.Ab?v:null!==(t=b[e])&&void 0!==t?t:b.Other;return e=>(0,x.R)(e,{textBlocks:n.map(e=>({id:r()(),alignment:"left",payload:{type:"doc",content:faqBlockToTextNodes(e)}}))})}(e);let i=null!==(t=b[e])&&void 0!==t?t:b.Other,a=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:"Got questions?"}]}]}}}),o=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:i.flatMap(e=>faqBlockToTextNodes(e))}}});return e=>(0,g.d)(e,{alignment:{vertical:"top"},modules:[a,o]})}var w=n(68589);let j={Copywriter:{title:"Copywriter",workplace:"Ogilvy",responsibilities:["Writing engaging and persuasive copy for various marketing materials, such as websites, social media posts, and email campaigns, to effectively communicate the brand's message.","Collaborating with cross-functional teams, including designers and marketing managers, to develop creative concepts and ensure consistent brand voice.","Conducting thorough research on target audiences, industry trends, and competitors to inform and optimize copywriting strategies, resulting in higher conversion rates."]},"Content writer":{title:"Content Writer",workplace:"Ogilvy",responsibilities:["Researching and producing high-quality and informative content across a wide range of topics, including blog posts, articles, and whitepapers.","Optimizing content for search engines by conducting keyword research and ensuring proper formatting and structure to drive website traffic.","Collaborating with subject matter experts, stakeholders, and editorial teams to develop content strategies, brainstorm ideas, and ensure content aligns with brand guidelines."]},"Social media manager/specialist":{title:"Social Media Specialist",workplace:"Ogilvy",responsibilities:["Creating and curating visually appealing content for social media platforms, including Facebook, Instagram, and LinkedIn to increase brand awareness and drive engagement.","Developing and implementing social media strategies, including content calendars and campaign plans to meet specific marketing objectives.","Monitoring social media trends, analyzing performance metrics, and providing regular reports to identify opportunities for growth."]},"UGC creator":{title:"UGC Creator",workplace:"Freelance",responsibilities:["Creating video-based content for maximum engagement for brands for different social media platforms. This includes planning, scripting, shooting, and editing all video material.","Doing photoshoots for both product photography and to create lifestyle content","Consulting companies on branding and social media strategy, as well as using UGC to maximize their visibility and engagement."]},"Digital marketer":{title:"Digital Marketer",workplace:"Ogilvy",responsibilities:["Planning and executing comprehensive digital marketing campaigns across various channels, including SEM, display advertising, email marketing, and social media.","Conducting in-depth market research and competitor analysis to identify target audience segments and optimize marketing strategies for maximum impact and ROI.","Utilizing analytics tools and data-driven insights to track and measure campaign performance and identify areas for improvement."]},Journalist:{title:"Journalist",workplace:"Ogilvy",responsibilities:["Researching and investigating news stories and conducting interviews to produce timely news articles that engage the target audience.","Writing clear, concise, and compelling news stories, adhering to journalistic ethics and editorial guidelines, while delivering content that captivates readers.","Adapting to different media platforms, including print and online to deliver news content, and collaborating with editors, photographers, and other journalists."]},"Author or creative writer":{title:"Creative Writer",workplace:"Ogilvy",responsibilities:["Crafting captivating narratives, characters, and settings through storytelling techniques and creating unique and compelling works of fiction.","Employing literary devices, such as vivid descriptions, dialogue, and symbolism, to enhance the depth and richness of the writing.","Editing and revising drafts to refine language, pacing, and plot structure, ensuring a cohesive and polished final product."]},"PR/Communications specialist":{title:"PR Specialist",workplace:"Ogilvy",responsibilities:["Developing and executing strategic public relations campaigns to enhance brand reputation, increase media coverage, and effectively communicate key messages.","Building and maintaining relationships with journalists, bloggers, and influencers, proactively pitching stories and securing media placements.","Crafting press releases, media kits, and other PR materials, ensuring they are well-written, concise, and aligned with the brand's tone and messaging."]},Other:{title:"Creative Team Lead",workplace:"Ogilvy",responsibilities:["Leading and managing a creative team, fostering a collaborative and inspiring environment that encourages innovation, teamwork, and professional growth.","Setting creative direction and guiding the team in executing impactful campaigns, ensuring brand consistency and alignment with marketing objectives.","Collaborating with cross-functional teams, such as marketing, design, and copywriting, to deliver high-quality projects within established timelines and budgets."]}},I={Architect:["In my 3+ years of experience I’ve worked on mixed-use, commercial and residential projects. All of them were delivered on time and under budget.","From conceptual sketches to finished structures, each project is a testament to my passion for architecture and my commitment to creating spaces that are both beautiful and functional."],"Interior Designer":["In my 3+ years of experience I’ve worked on retail, commercial and residential projects. All of them were delivered on time and under budget.","I approach each project with a collaborative mindset, working closely with my clients to understand their vision and create a design that meets their unique needs and style preferences."],"Interior Decorator":["Throughout my years of experience and education, I have developed a deep understanding of how to create spaces that are not only beautiful but also functional and comfortable.","I approach each project with a collaborative mindset, working closely with my clients to understand their vision and create a design that meets their unique needs and style preferences."],"Landscape Architect":["Throughout my years of experience and education, I have honed my skills in design, planning, and project management, allowing me to deliver exceptional results on a wide range of projects.","I approach each project with a collaborative mindset, working closely with my clients to understand their vision and create a design that meets their unique needs and style preferences."],Other:["My years of experience and education background has also allowed me to develop a strong understanding of the latest trends and technologies in the field.","I approach each project with a collaborative mindset, working closely with my clients to understand their vision and create a design that meets their unique needs and style preferences."]};function archifolioExperienceSection(e,t){var n;let i=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{text:"Experience",type:"text"}]}]}}}),a=null!==(n=I[e])&&void 0!==n?n:I.Other,r=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:null==a?void 0:a.map(e=>({type:"paragraph",content:[{type:"text",text:e}]}))}},extension:null==t?void 0:t.extension});return e=>(0,g.d)(e,{alignment:{vertical:"top"},modules:[i,r]})}function experienceSection(e,t){var n;if(c.Ab)return archifolioExperienceSection(e,t);let i=null!==(n=j[e])&&void 0!==n?n:j.Other,a=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:i.title}]},{type:"paragraph",content:[{type:"text",text:i.workplace,marks:[{type:"bold"}]}]},{type:"paragraph",content:[{type:"text",text:"2021 —"}]}]}}}),r=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"paragraph",content:[{type:"text",marks:[{type:"bold"}],text:"My responsibilities include:"}]},{type:"bulletList",content:i.responsibilities.map(e=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:e}]}]}))}]}}});return e=>(0,g.d)(e,{alignment:{vertical:"top"},modules:[a,r]})}var k=n(72085),S=n(13877);let C={MODULAR:"bottom",BROCHURE:"bottom"};function heroSection(e,t){var n;let i=(0,S.E)(e,t),a=[{type:"heading",attrs:{level:1},content:[{type:"text",text:i.heading}]}];i.paragraph&&a.push({type:"paragraph",content:[{type:"text",text:i.paragraph}]});let r=null===(n=f.D3[t].defaultAlignment)||void 0===n?void 0:n.hero;return e=>(0,k.u)(e,{title:"My portfolio",alignment:C[t]?{vertical:C[t]}:null,textModule:(0,h.D)({content:{alignment:r,payload:{type:"doc",content:a}}})})}var N=n(51585),A=n(73691);function collageSection(e){let{images:t=[{type:"IMAGE",src:"/assets/media-examples/gallery-services-1.jpg",originalWidth:2076,originalHeight:2076},{type:"IMAGE",src:"/assets/media-examples/gallery-services-2.jpg",originalWidth:2076,originalHeight:2076},{type:"IMAGE",src:"/assets/media-examples/gallery-services-3.jpg",originalWidth:2076,originalHeight:2076},{type:"IMAGE",src:"/assets/media-examples/gallery-services-4.jpg",originalWidth:2076,originalHeight:2076}],layout:n="I3-H1",title:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{version:1,pageId:e,type:"COLLAGE",images:t,layout:n,title:i,showTitle:!!i}}let P={"I3-H4":{Architect:[l.Gallery.Architect[7],l.Gallery.Architect[7],l.Gallery.Architect[10],l.Gallery.Architect[6]],"Interior Designer":[l.Gallery.Interior[1],l.Gallery.Interior[12],l.Gallery.Interior[8],l.Gallery.Interior[6]],"Interior Decorator":[l.Gallery.Interior[1],l.Gallery.Interior[12],l.Gallery.Interior[8],l.Gallery.Interior[6]],"Landscape Architect":[l.Gallery.Landscape[6],l.Gallery.Landscape[5],l.Gallery.Landscape[12],l.Gallery.Landscape[8]],Other:[l.Gallery.Other[1],l.Gallery.Other[2],l.Gallery.Other[4],l.Gallery.Other[6]]},"I3-H5":{Architect:[l.Gallery.Architect[7],l.Gallery.Architect[4],l.Gallery.Architect[10],l.Gallery.Architect[9]],"Interior Designer":[l.Gallery.Interior[3],l.Gallery.Interior[12],l.Gallery.Interior[8],l.Gallery.Interior[7]],"Interior Decorator":[l.Gallery.Interior[3],l.Gallery.Interior[12],l.Gallery.Interior[8],l.Gallery.Interior[7]],"Landscape Architect":[l.Gallery.Landscape[6],l.Gallery.Landscape[5],l.Gallery.Landscape[12],l.Gallery.Landscape[11]],Other:[l.Gallery.Other[1],l.Gallery.Other[2],l.Gallery.Other[6],l.Gallery.Other[7]]},"I3-V1":{Architect:[l.Gallery.Architect[1],l.Gallery.Architect[4],l.Gallery.Architect[8],l.Gallery.Architect[3]],"Interior Designer":[l.Gallery.Interior[1],l.Gallery.Interior[13],l.Gallery.Interior[14],l.Gallery.Interior[15]],"Interior Decorator":[l.Gallery.Interior[1],l.Gallery.Interior[13],l.Gallery.Interior[14],l.Gallery.Interior[15]],"Landscape Architect":[l.Gallery.Landscape[11],l.Gallery.Landscape[4],l.Gallery.Landscape[13],l.Gallery.Landscape[7]],Other:[l.Gallery.Other[1],l.Gallery.Other[3],l.Gallery.Other[12],l.Gallery.Other[12]]},"I4-S1":{Architect:[l.Gallery.Architect[1],l.Gallery.Architect[10],l.Gallery.Architect[8],l.Gallery.Architect[11]],"Interior Designer":[l.Gallery.Interior[4],l.Gallery.Interior[7],l.Gallery.Interior[16],l.Gallery.Interior[11]],"Interior Decorator":[l.Gallery.Interior[4],l.Gallery.Interior[7],l.Gallery.Interior[16],l.Gallery.Interior[11]],"Landscape Architect":[l.Gallery.Landscape[8],l.Gallery.Landscape[10],l.Gallery.Landscape[3],l.Gallery.Landscape[12]],Other:[l.Gallery.Other[4],l.Gallery.Other[7],l.Gallery.Other[6],l.Gallery.Other[2]]},"I4-S3":{Architect:[l.Gallery.Architect[13],l.Gallery.Architect[5],l.Gallery.Architect[11],l.Gallery.Architect[6]],"Interior Designer":[l.Gallery.Interior[11],l.Gallery.Interior[3],l.Gallery.Interior[7],l.Gallery.Interior[12]],"Interior Decorator":[l.Gallery.Interior[11],l.Gallery.Interior[3],l.Gallery.Interior[7],l.Gallery.Interior[12]],"Landscape Architect":[l.Gallery.Landscape[8],l.Gallery.Landscape[2],l.Gallery.Landscape[11],l.Gallery.Landscape[7]],Other:[l.Gallery.Other[11],l.Gallery.Other[4],l.Gallery.Other[2],l.Gallery.Other[12]]}};function collage_collageSection(e,t){if(c.Ab){var n;let i=P[t],a=(null!==(n=i[e])&&void 0!==n?n:i.Other).map(e=>({type:"IMAGE",...e}));return e=>collageSection(e,{layout:t,images:a})}return e=>collageSection(e,{layout:"I3-H1",images:[{type:"IMAGE",originalWidth:1920,originalHeight:1920,src:"/assets/project-thumbnails/thumbnail-12.jpg"},{type:"IMAGE",originalWidth:1920,originalHeight:1920,src:"/assets/project-thumbnails/thumbnail-10.jpg"},{type:"IMAGE",originalWidth:1920,originalHeight:1920,src:"/assets/project-thumbnails/thumbnail-2.jpg"},{type:"IMAGE",originalWidth:1920,originalHeight:1920,src:"/assets/project-thumbnails/thumbnail-1.jpg"}]})}let T={Architect:{backgroundImageSrc:l.Gallery.Architect[1].src},"Interior Designer":{backgroundImageSrc:l.Gallery.Interior[1].src},"Interior Decorator":{backgroundImageSrc:l.Gallery.Interior[1].src},"Landscape Architect":{backgroundImageSrc:l.Gallery.Landscape[1].src},Other:{backgroundImageSrc:l.Gallery.Other[1].src}};function cover_coverSection(e){return t=>{var n,i,a,r;return function(e){let{textModule:t=(0,h.D)(),alignment:n={horizontal:"left",vertical:"bottom"},backgroundImage:i=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{version:1,type:"COVER",pageId:e,alignment:n,textModule:t,backgroundImage:i}}(t,{backgroundImage:{src:null!==(a=null===(n=T[e])||void 0===n?void 0:n.backgroundImageSrc)&&void 0!==a?a:l.Gallery.Interior[1].src,originalWidth:1668,originalHeight:1200,crop:{src:null!==(r=null===(i=T[e])||void 0===i?void 0:i.backgroundImageSrc)&&void 0!==r?r:l.Gallery.Interior[1].src,top:0,left:0,width:1668,height:1200}},textModule:{type:"TEXT",content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:1},content:[{type:"text",text:"Separate parts of your content with a cover that takes up the whole screen."}]}]}},extension:{label:"Click here",action:"NAVIGATE_TO_INTERNAL_PAGE",actionValue:null}}})}}let E=[{title:"Ideation",description:"Every project deserves a strong foundation. I take ideation really seriously to meet client needs.",imageIndex:3},{title:"Planning",description:"From floor plans to mood boards I cover all aspects of planning so we can choose what best suits the project.",imageIndex:2},{title:"Execution",description:"I help during execution to have the project wrapped up on time and stay under budget.",imageIndex:1}];function designProcessSection(e){return t=>(0,s.i)(t,{hideImages:!e,columns:E.map(e=>({image:{type:"IMAGE",...l.Process[e.imageIndex.toString()]},textNodes:{id:r()(),alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:e.title}]},{type:"paragraph",content:[{type:"text",text:e.description}]}]}}}))})}var L=n(58975);let O={large:{aspectRatioOfImages:"original",sizeOfImages:"large",sizeOfGap:"md",images:{Architect:[l.Gallery.Architect[3],l.Gallery.Architect[4],l.Gallery.Architect[5],l.Gallery.Architect[6]],"Interior Designer":[l.Gallery.Interior[3],l.Gallery.Interior[4],l.Gallery.Interior[5],l.Gallery.Interior[6]],"Interior Decorator":[l.Gallery.Interior[3],l.Gallery.Interior[4],l.Gallery.Interior[5],l.Gallery.Interior[6]],"Landscape Architect":[l.Gallery.Landscape[3],l.Gallery.Landscape[4],l.Gallery.Landscape[5],l.Gallery.Landscape[6]],Other:[l.Gallery.Other[3],l.Gallery.Other[4],l.Gallery.Other[5],l.Gallery.Other[6]]}},medium:{aspectRatioOfImages:"square",sizeOfImages:"medium",sizeOfGap:"sm",images:{Architect:[l.Gallery.Architect[7],l.Gallery.Architect[9],l.Gallery.Architect[3],l.Gallery.Architect[8],l.Gallery.Architect[2],l.Gallery.Architect[4]],"Interior Designer":[l.Gallery.Interior[7],l.Gallery.Interior[8],l.Gallery.Interior[9],l.Gallery.Interior[10],l.Gallery.Interior[11],l.Gallery.Interior[12]],"Interior Decorator":[l.Gallery.Interior[7],l.Gallery.Interior[8],l.Gallery.Interior[9],l.Gallery.Interior[10],l.Gallery.Interior[11],l.Gallery.Interior[12]],"Landscape Architect":[l.Gallery.Landscape[6],l.Gallery.Landscape[2],l.Gallery.Landscape[1],l.Gallery.Landscape[7],l.Gallery.Landscape[4],l.Gallery.Landscape[8]],Other:[l.Gallery.Other[2],l.Gallery.Other[7],l.Gallery.Other[8],l.Gallery.Other[9],l.Gallery.Other[5],l.Gallery.Other[10]]}},small:{aspectRatioOfImages:"vertical",sizeOfImages:"small",sizeOfGap:"md",images:{Architect:[l.Gallery.Architect[7],l.Gallery.Architect[10],l.Gallery.Architect[3],l.Gallery.Architect[8],l.Gallery.Architect[13],l.Gallery.Architect[2],l.Gallery.Architect[9],l.Gallery.Architect[4]],"Interior Designer":[l.Gallery.Interior[13],l.Gallery.Interior[14],l.Gallery.Interior[15],l.Gallery.Interior[10],l.Gallery.Interior[6],l.Gallery.Interior[16],l.Gallery.Interior[3],l.Gallery.Interior[4]],"Interior Decorator":[l.Gallery.Interior[13],l.Gallery.Interior[14],l.Gallery.Interior[15],l.Gallery.Interior[10],l.Gallery.Interior[6],l.Gallery.Interior[16],l.Gallery.Interior[3],l.Gallery.Interior[4]],"Landscape Architect":[l.Gallery.Landscape[9],l.Gallery.Landscape[8],l.Gallery.Landscape[5],l.Gallery.Landscape[10],l.Gallery.Landscape[3],l.Gallery.Landscape[11],l.Gallery.Landscape[12],l.Gallery.Landscape[13]],Other:[l.Gallery.Other[11],l.Gallery.Other[10],l.Gallery.Other[6],l.Gallery.Other[4],l.Gallery.Other[3],l.Gallery.Other[2],l.Gallery.Other[9],l.Gallery.Other[12]]}}};function gallerySection(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",i=arguments.length>2?arguments[2]:void 0,{images:a}=O[n],r=(null!==(t=a[e])&&void 0!==t?t:a.Other).slice(0,i).map(e=>({...e,type:"IMAGE"}));return e=>(0,L.z)(e,c.Ab?{...O[n],media:r}:{media:[{type:"IMAGE",originalWidth:1920,originalHeight:1920,src:"/assets/project-thumbnails/thumbnail-12.jpg"},{type:"IMAGE",originalWidth:1920,originalHeight:1920,src:"/assets/project-thumbnails/thumbnail-2.jpg"},{type:"IMAGE",originalWidth:1920,originalHeight:1920,src:"/assets/project-thumbnails/thumbnail-4.jpg"},{type:"IMAGE",originalWidth:1920,originalHeight:1920,src:"/assets/project-thumbnails/thumbnail-10.jpg"}],sizeOfImages:"small",sizeOfGap:"md",aspectRatioOfImages:"original"})}let _={Architect:{...l.Gallery.Architect[1],preferredSize:"lg"},"Interior Designer":{...l.Gallery.Interior[1],preferredSize:"lg"},"Interior Decorator":{...l.Gallery.Interior[1],preferredSize:"lg"},"Landscape Architect":{...l.Gallery.Landscape[1],preferredSize:"lg"},Other:c.Ab?{...l.Gallery.Other[1],preferredSize:"lg"}:{originalWidth:1920,originalHeight:1440,preferredSize:"lg",src:"/assets/project-thumbnails/thumbnail-19.jpg"}},D={Architect:l.Gallery.Architect[2],"Interior Designer":l.Gallery.Interior[2],"Interior Decorator":l.Gallery.Interior[2],"Landscape Architect":l.Gallery.Landscape[2],Other:c.Ab?l.Gallery.Other[1]:{originalWidth:1920,originalHeight:1280,preferredSize:"md",src:"/assets/project-thumbnails/thumbnail-12.jpg"}};function imageSection(e,t,n,i){var a,r;let o=t?[(0,m.j)(null!==(a=D[e])&&void 0!==a?a:D.Other),(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:c.Ab?[{type:"heading",attrs:{level:2},content:[{type:"text",text:"New topic"}]},{type:"paragraph",content:[{type:"text",text:"Write a few thoughts about your topic. Upload a related image if you can — it will make this section more meaningful. If you’re unsure you can use this section as a description to a design you’ve created or share some of your experience about a project."}]}]:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"Write a few thoughts about your topic. Upload a related image if you can — it will make this section more meaningful."}]}]}},extension:n?{action:"NAVIGATE_TO_INTERNAL_PAGE",actionValue:"/",label:"Click here"}:null})]:[(0,m.j)({..._[e],preferredSize:null!=i?i:"lg"})];return e=>(0,g.d)(e,{alignment:t?{vertical:"top"}:{horizontal:"center"},modules:o})}let M={Architect:[l.Plans.Architect[1],l.Plans.Architect[2]],"Interior Designer":[l.Plans.Interior[1],l.Plans.Interior[2]],"Interior Decorator":[l.Plans.Interior[1],l.Plans.Interior[2]],"Landscape Architect":[l.Plans.Architect[1],l.Plans.Architect[2]],Other:[l.Plans.Architect[1],l.Plans.Architect[2]]};function plansAndSketchesSection(e){var t;let n=null!==(t=M[e])&&void 0!==t?t:M.Other;return e=>(0,L.z)(e,{aspectRatioOfImages:"original",sizeOfGap:"md",sizeOfImages:"large",media:n.map(e=>({...e,type:"IMAGE"}))})}let G={LAPTOP:{...l.Screenshots.Laptop,mockup:"LAPTOP"},PHONE:{...l.Screenshots.Phone,mockup:"PHONE"}};function screenshotSection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,m.j)(G[e]);if(t.double)return e=>(0,g.d)(e,{alignment:{vertical:"middle"},modules:[n,(0,m.j)({mockup:"LAPTOP",...l.Screenshots.Laptop2})]});let i=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"Upload a screenshot into this mockup and make it stand out without fancy design software."}]}]}}}),a="PHONE"===e?[n,i]:[i,n];return e=>(0,g.d)(e,{alignment:{vertical:"middle"},modules:a})}var R=n(94367);function videoSection(e){return t=>(0,g.d)(t,{alignment:{horizontal:"center"},modules:[(0,R.U)({preferredSize:null!=e?e:"lg"})]})}var z=n(61140);function creativeProcessSection(){let e=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:"02 — Creative process"}]}]}}}),t=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"My philosophy was to address the visitor by describing their pain points and showcasing how the client’s service is a great solution for it."}]}]}}});return n=>(0,g.d)(n,{alignment:{vertical:"top"},modules:[e,t]})}let B={Architect:{paragraphs:["In this project I design and develop a hillside restaurant that offers a unique and breathtaking dining experience. The restaurant will be located on a hill with a stunning view of the surrounding landscape. The goal is to create a cozy and intimate atmosphere where guests can enjoy delicious food and drinks while taking in the beautiful surroundings."," ","As the architect, my contributions have been instrumental in shaping the overall vision and design of the project. I oversaw every aspect of  design, construction administration, through furnishing and styling."],rows:[["Area of site","1 750 ft2"],["Date","2022"],["Status of the project","Under construction"],["Tools used","AutoCAD, SketchUp"]]},"Interior Designer":{paragraphs:["This interior design project involves the design of a new single-family home for a family of four. The site is located in a suburban neighborhood with a mix of traditional and modern homes, and the goal of the project is to create a modern and sustainable home that is both functional and beautiful."," ","As the interior designer, my contributions have been instrumental in shaping the overall vision and design of the project. I oversaw every aspect of  design, construction administration, through furnishing and styling."],rows:[["Area of site","64 ft2"],["Date","2018"],["Status of the project","Complete"],["Tools used","Photoshop, SketchUp"]]},"Interior Decorator":{paragraphs:["This project involves the decoration of a new single-family home for a family of four. The apartment is located in a suburban neighborhood with a mix of traditional and modern homes, and the goal of the project is to create a cozy and suitable home that is both functional and beautiful."," ","As the interior decorator, my contributions have been instrumental in shaping the overall vision and design of  furniture, the color palette, and more. I oversaw every aspect of  design administration, through furnishing and styling."],rows:[["Area of site","64 ft2"],["Date","2018"],["Status of the project","Complete"],["Tools used","Photoshop, SketchUp"]]},"Landscape Architect":{paragraphs:["In this project I contributed to redesigning a university campus. I was involved in designing and implementing a cohesive and functional outdoor environment that enhances the educational experience for students, faculty, and staff. The project included the integration of natural and built elements, such as pathways, green spaces, seating areas, and water features, that encourage a sense of community and create a unique sense of place."," ","I began by analyzing the existing site, identifying areas for improvement, and developing a design plan that responds to the needs of the campus community. My design incorporates sustainable elements, such as rain gardens or permeable pavement, to promote ecological health and reduce the campus's environmental impact."],rows:[["Area of site","18 640 ft2"],["Date","2020"],["Status of the project","Completed"],["Tools used","Rhino 3D, Illustrator"]]},Other:{paragraphs:["This project involves the design and execution of a new single-family home for a family of four. The site is located in a suburban neighborhood with a mix of traditional and modern homes, and the goal of the project is to create a modern and sustainable home that is both functional and beautiful."," ","My contributions have been instrumental in shaping the overall vision and design of the project. I oversaw every aspect of  architecture, construction administration, through furnishing and styling."],rows:[["Area of site","65 ft2"],["Date","2022"],["Status of the project","Under construction"],["Tools used","Photoshop, SketchUp"]]}};function projectDetailsSection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";if(c.Ab)return function(e,t){var n;let i={type:"heading",attrs:{level:3},content:[{type:"text",text:"Project details"}]},a=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[i]}}}),r=null!==(n=B[e])&&void 0!==n?n:B.Other,o=[...r.paragraphs.map(e=>({type:"paragraph",content:[{type:"text",text:e}]})),{type:"table",content:r.rows.map(e=>({type:"tableRow",content:e.map(e=>({type:"tableCell",content:[{type:"paragraph",content:[{type:"text",text:e}]}]}))}))}],l=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[..."simple"===t?[i,...o]:o]}}}),s="default"===t?[a,l]:[l];return e=>(0,g.d)(e,{alignment:"simple"===t?{horizontal:"center"}:{vertical:"top"},modules:s})}(e,t);let n=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{text:"01 — Project details",type:"text"}]}]}}}),i=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"Our aim was to improve the conversion of the client’s landing page by completely reworking the copy. We couldn’t change the design which set strict limitations regarding character count."}]}]}}});return e=>(0,g.d)(e,{alignment:{vertical:"top"},modules:[n,i]})}let Z=[{value:"+32%",title:"increase in visitor sign-up conversion",imageIndex:3},{value:"+21%",title:"increase in visitors",imageIndex:2},{value:"8927",title:"words replaced during our collaboration",imageIndex:4},{value:"3",title:"cups of coffee consumed daily on average",imageIndex:1}];function numbersSection(){return e=>(0,s.i)(e,{hideImages:!0,columns:Z.map(e=>{let{value:t,title:n,imageIndex:i}=e;return{image:{type:"IMAGE",...l.Numbers[i.toString()]},textNodes:{id:r()(),alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:t}]},{type:"paragraph",content:[{type:"text",text:n}]}]}}}})})}let H={type:"heading",attrs:{level:3},content:[{text:"03 — Results",type:"text"}]},F={type:"heading",attrs:{level:2},content:[{type:"text",text:"We managed to achieve a 32% improvement in conversion, just in one month after the new copy was released."}]},W={type:"heading",attrs:{level:2},content:[{text:"Results",type:"text"}]},U={Architect:"The project was a great success. It was completed on time, and the client was very satisfied with the final result. The design plan was executed effectively, and the resulting space has exceeded expectations. The team also finished construction under the calculated budget.","Interior Designer":"In conclusion, the project was a resounding success. It was completed on time and to the satisfaction of my client. My design incorporated a mix of functional and aesthetically pleasing furniture that makes the client’s home more space efficient while not being overly minimal. I also focused on reducing unnecessary expenses and delivered the project under budget by around $1500.","Interior Decorator":"In conclusion, the project was a resounding success. It was completed on time and to the satisfaction of my client. My design incorporated a mix of functional and aesthetically pleasing furniture that makes the client’s home more space efficient while not being overly minimal. I also focused on reducing unnecessary expenses and delivered the project under budget by around $1500.","Landscape Architect":"The project was a great success. It was completed on time, and the client was very satisfied with the final result. The design plan was executed effectively, and the resulting outdoor environment has exceeded the client's expectations. The project has created a functional and aesthetically pleasing space that will benefit the community for years to come.",Other:"The project was a great success. It was completed on time, and the client was very satisfied with the final result. The design plan was executed effectively, and the resulting space has exceeded expectations. The team also finished construction under the calculated budget."};function resultSummarySection(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",i=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[c.Ab?W:H]}}}),a=[..."simple"===n?[W]:[],{type:"paragraph",content:[{type:"text",text:null!==(t=U[e])&&void 0!==t?t:U.Other}]}],r=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:c.Ab?a:[F]}}}),o="default"===n?[i,r]:[r];return e=>(0,g.d)(e,{alignment:"default"===n?{vertical:"top"}:{horizontal:"center"},modules:o})}let V={Copywriter:[{title:"1 – Getting in touch",description:"We'll start with a discovery call, where we discuss your project in detail.  I'll ask you about your business, target audience, and goals."},{title:"2 – Researching",description:"Once we're aligned on the project scope, I'll dive into research. This step involves understanding your industry, competitors, and target audience."},{title:"3 – Writing & review",description:"This is where the magic happens! I'll start crafting compelling copy, then sit down with you for a review round before fine-tuning everything."},{title:"4 – Ta-da!",description:"Once the final copy is complete, I'll share all the finished materials, so you can confidently move forward with your marketing efforts."}],"Content writer":[{title:"1 – Getting in touch",description:"We'll start with a discovery call, where we discuss your project in detail. I’ll ask you about your business, keywords, and content formats you have in mind."},{title:"2 – Researching",description:"Once we're aligned on the project scope, I'll dive into research. This step involves understanding your industry, competitors, and target audience."},{title:"3 – Writing & review",description:"This is where the magic happens! I'll start crafting engaging content that hits the mark, while keeping in mind your requirements."},{title:"4 – Ta-da!",description:"Once the content is complete, I'll share it with you for feedback. Once we've made the revisions, you can confidently move forward with your marketing efforts."}],"Social media manager/specialist":[{title:"1 – Getting in touch",description:"We'll start with a discovery call, where we discuss your project in detail. I’ll ask you about your business, target audience, and goals."},{title:"2 – Planning",description:"Once we're aligned on the project scope, I'll start researching, planning, and creating your content calendar for all of your chosen social media channels."},{title:"3 – Content creation",description:"This is where the magic happens! I'll start creating content based on the content calendar, with visuals and unique captions for each channel."},{title:"4 – Scheduling",description:"When it’s all ready to go, I’ll schedule all the posts for you. All there’s left to do is engaging with your followers and checking in on the posts’ performance."}],"UGC creator":[{title:"1 - Call & discovery",description:"First we’ll have a discovery call so I can learn about your audience, brand, products, and content you usually create."},{title:"2 - Brief & product",description:"While we iron out the details for the UGC brief, I’m waiting for the product to arrive & prep everything else I’ll need for the video."},{title:"3 - Shooting & edits",description:"I’ll plan and shoot the video, then complete the edits to make sure it’s ready to post on your social channels."},{title:"4 - Review & approval",description:"We’ll have a round of review about all the content I send over, and I can make little changes if needed before the approval."}],"Digital marketer":[{title:"1 – Getting in touch",description:"We'll start with a discovery call, where we discuss your project in detail. I’ll ask you about your business, target audience, and goals."},{title:"2 – Strategy & planning",description:"We’ll develop a comprehensive marketing strategy that aligns with your goals. After identifying the most effective channels, we’ll create a roadmap and set KPIs."},{title:"3 – Execution",description:"This is where the magic happens! Following the roadmap we created, I’ll set up analytics and automatize reports for you for the future."},{title:"4 – Refinement",description:"Once we’re done with the roadmap, we’ll evaluate the success of campaigns, identify areas of improvement, and refine our strategies for better results."}],Journalist:[{title:"1 – Getting in touch",description:"We'll start by connecting and discussing the project. Going through each assignment, we’ll talk about what to include in the reports and articles."},{title:"2 – Research & contacts",description:"Once it’s all clear, I’ll dive into research and reaching out to people for interviews and gathering information. I’ll be sure to document everything in detail."},{title:"3 – Writing",description:"This is where the magic happens! With the gathered information and interview materials, I’ll get to work to write captivating articles."},{title:"4 – Publication",description:"Once the initial draft is completed, I do a round of editing, then prepare and format the piece for publication, following the given guidelines."}],"Author or creative writer":[{title:"1 – Getting in touch",description:"We'll start by connecting and discussing the project in detail. Talking about the story ideas and formats you have in mind, we’ll finalize the assignment."},{title:"2 – Research",description:"With the details in hand, I’ll start researching to make sure every element of the story is as realistic as it needs to be."},{title:"3 – Writing",description:"This is where the magic happens! I bring your vision to life. I strive to spark imagination and create an immersive experience for the readers."},{title:"4 – Fine-tuning",description:"Once the initial draft is complete, we revise the piece, ensuring the language, pacing, and structure. We collaborate to fine-tune the work until it meets your expectations."}],"PR/Communications specialist":[{title:"1 – Getting in touch",description:"We'll start by connecting and discussing your project in detail. This is where I'll ask for information about your business, target audience, and goals."},{title:"2 – Strategy & planning",description:"Together, we develop a comprehensive PR strategy that aligns with your objectives. We’ll also identify the most relevant media outlets and influencers to target."},{title:"3 – Executing the plan",description:"I execute the PR plan by reaching out to media contacts and stakeholders. I coordinate interviews, press releases, media coverage, and any necessary events."},{title:"4 – Refinement",description:"I monitor media coverage, track online mentions, and analyze PR campaign performance. We refine our strategies based on feedback."}],Other:[{title:"1 – Getting in touch",description:"We'll start by connecting and discussing your project in detail. This is where I'll gather information about your business, target audience, and goals."},{title:"2 – Researching",description:"Once we're aligned on the project scope, I'll dive into research. All that to get a better understanding your industry, competitors, and target audience."},{title:"3 – Writing",description:"This is where the magic happens! I'll start crafting compelling copy, then sit down with you for a review round before fine-tuning everything."},{title:"4 – Ta-da!",description:"Once the copy is complete, I'll share all the finished materials, so you can confidently move forward with your marketing efforts."}]};function processSection(e){var t;let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=null!==(t=V[e])&&void 0!==t?t:V.Other;return e=>(0,s.i)(e,{hideImages:!n,columns:null==i?void 0:i.map((e,t)=>({image:{type:"IMAGE",...l.Process[(t+4).toString()]},textNodes:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:e.title}]},{type:"paragraph",content:[{type:"text",text:e.description}]}]}}}))})}var q=n(83815),Y=n(67001);let J={Copywriter:{text:["The landing page copy was spot-on. It not only communicated our brand values perfectly but conversion also increased by 20%.","It’s crazy to see writing that sounds exactly like me —but better. I was blown away by the copy.","The copy not only aligned perfectly with our tone of voice but also converted really well, it was amazing!"],citation:"— Veronica Levinsky, Head of Marketing at Copyfolio"},"Content writer":{text:["Our blog has never been so alive. Engagement increased by 35% in just a few months.","We not only got great feedback for these articles, but <USERNAME> rank high on Google, bringing in lots of new traffic.","The content is engaging, fun to read, and really well optimized for SEO as well. It’s beyond our expectations."],citation:"— Veronica Levinsky, Head of Marketing at Copyfolio"},"Social media manager/specialist":{text:["Facebook is our most important platform & conversion doubled after six months of collaboration.","Creating such a comprehensive strategy and executing it so excellently would have been impossible for us alone, so thank you!","Our brand is active on 3 social media platforms. Until now we were just posting but now we’re really thriving!"],citation:"— Veronica Levinsky, Head of Marketing at Copyfolio"},"UGC creator":{text:["These new UGC posts have the highest engagement we’ve ever had. Can’t wait to collab again & post more!","We loved the organic way our product fit into the content. No wonder our followers enjoyed it so much too.","The sales this piece of content brought were incredible! It really is UGC at its best."],citation:"— Veronica Levinsky, Head of Marketing at Copyfolio"},"Digital marketer":{text:["Our brand strategy has never been in better hands. Our online presence is just flawless.","Branding, strategy, research, social media... They take on any marketing challenge and solve it excellently.","We needed more customers but had no clue how. Now our sales and social media engagement is better than ever!"],citation:"— Veronica Levinsky, Head of Marketing at Copyfolio"},Journalist:{text:["These reports and articles generate the most engagement on our site. We love the regular updates and the amazing stories.","There’s no one else more dedicated to get to the bottom of a story to get all the details, it’s incredible.","Whether you need to find connections for info or a quick video edited for social media, <USERNAME> can do it all."],citation:"— Veronica Levinsky, Chief Editor at News Journal"},"Author or creative writer":{text:["One of our best-selling authors of all time, delivering amazing stories and regular updates.","When you think of a story that sucks you in and makes you forget the outside world... This is it.","If you want someone creative with exceptional storytelling skills, look no further. You’ve just found them."],citation:"— Veronica Levinsky, Head of Publishing at Book Company"},"PR/Communications specialist":{text:["I’m so happy that our representation is in good hands. Our public image has never been better.","We don’t have to worry about reputation if someone makes a mistake. We rest assured it’s all handled.","I wouldn’t trust anyone else with our public image and reputation. "],citation:"— Veronica Levinsky, Head of Marketing at Copyfolio"},Other:{text:["We loved the collab, the results speak for themselves. Looking forward to working together again.","Amazing communication with results way better than expected. What else could we ask for?","If you’re looking for someone who gets the job done with exceptional results, look no further."],citation:"— Veronica Levinsky, Head of Marketing at Copyfolio"}};function testimonialSection(e){var t,n;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"random",a=arguments.length>2?arguments[2]:void 0,r=e.jobTitle,o=c.Ab?0:"random"===i?Math.floor(3*Math.random()):i-1,s=c.Ab?{text:["Thank you for your short delivery time and a meticulously well-thought-out design. We couldn’t be happier with it."],citation:"— Adam Levinsky, Lead Architect at Archifolio"}:null!==(t=J[r])&&void 0!==t?t:J.Other,d=(0,Y.z)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:s.text[o].replaceAll("<USERNAME>",null!==(n=e.givenName)&&void 0!==n?n:"they")}]}]}},citation:{alignment:"left",payload:{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:s.citation}]}]}}}),u="/assets/placeholders/testimonial/".concat(c.Ab?4:o+1,".webp"),p=(0,m.j)({...l.Testimonial[o+1],altText:s.citation,preferredSize:"sm",crop:{src:u,left:0,top:0,width:(null==a?void 0:a.circular)?960:1140,height:960,shape:(null==a?void 0:a.circular)?"round":"rect"}});return e=>(0,g.d)(e,{alignment:(null==a?void 0:a.withImage)?{vertical:"middle"}:{horizontal:c.Ab?"left":"center"},modules:(null==a?void 0:a.withImage)?a.flipped?[p,d]:[d,p]:[d]})}function callToActionSection(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"HOME",i=arguments.length>1?arguments[1]:void 0,a=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:null!==(e=null==i?void 0:i.text)&&void 0!==e?e:"BLOG_POST"===n?"Have something important to show off? Redirect your visitors with an eye-catching title and button.":"Catch the attention of your visitors with a bold title and a button."}]}]}},extension:null!==(t=null==i?void 0:i.extension)&&void 0!==t?t:{label:"Click here",action:"NAVIGATE_TO_INTERNAL_PAGE",actionValue:""}});return e=>(0,g.d)(e,{alignment:{horizontal:"left"},modules:[a]})}function paragraphSection(e,t){let n=[];e&&n.push({type:"heading",attrs:{level:2},content:[{type:"text",text:"Your heading comes here"}]}),n.push({type:"paragraph",content:[{type:"text",text:"Start describing your topic in a few words. Make sure to stay concise and include important keywords. Don't be afraid to write shorter sentences. It's common to think that longer sentences sound smarter or more eloquent but in reality, they just make your story harder to follow and understand — just like this one."}]});let i=(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:n}},extension:t?{action:"NAVIGATE_TO_INTERNAL_PAGE",actionValue:"",label:"Click here"}:null});return e=>(0,g.d)(e,{alignment:{horizontal:"center"},modules:[i]})}function textSection(e,t){return c.Ab?t=>(0,g.d)(t,{alignment:{vertical:"top"},modules:[(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"My topic"}]}]}}}),(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:"Start describing your topic in a few words. Make sure to stay concise and be professional. You can write about your design process, skills and expertise, or your awards and recognitions. If you have client testimonials, include them here."}]}]}},extension:e?{label:"Click here",action:"NAVIGATE_TO_INTERNAL_PAGE",actionValue:""}:null})]}):n=>{var i,a;return(0,g.d)(n,{alignment:{vertical:"top"},modules:[(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:null!==(i=null==t?void 0:t.heading)&&void 0!==i?i:"00 - Topic"}]}]}}}),(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:null!==(a=null==t?void 0:t.text)&&void 0!==a?a:"Start describing your topic in a few words. Make sure to stay concise and include important keywords."}]}]}},extension:e?{label:"Click here",action:"NAVIGATE_TO_INTERNAL_PAGE",actionValue:""}:null})]})}}var K=n(26202);function titleSection(e,t){return n=>{var i,a;return(0,K.j)(n,{textModule:(0,h.D)({content:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:null!==(i=null==t?void 0:t.level)&&void 0!==i?i:2},content:[{type:"text",text:null!=e?e:c.Ab?"Separate parts of your content with a title that adapts to your portfolio.":"Separate parts of your website with an eye-catching title that adapts to your website."}]}]}},extension:null!==(a=null==t?void 0:t.extension)&&void 0!==a?a:null})})}}},42374:function(e,t,n){n.d(t,{JU:function(){return l},XU:function(){return r},m4:function(){return o}});var i=n(52855),a=n(15228);let r={Instagram:{icon:i.g_.Instagram,hint:"https://www.instagram.com/"},Pinterest:{icon:i.g_.Pinterest,hint:"https://www.pinterest.com/archifolioapp"},Issuu:{icon:i.g_.Issuu,hint:"https://www.issuu.com/"},LinkedIn:{icon:i.g_.Linkedin,hint:"https://www.linkedin.com/in/"},Facebook:{icon:i.g_.Facebook,hint:"https://www.facebook.com/"},Threads:{icon:i.g_.Threads,hint:"https://www.threads.net/"},Twitter:{icon:i.g_.X,hint:"https://www.x.com/",label:"X (formerly Twitter)"},TikTok:{icon:i.g_.Tiktok,hint:"https://www.tiktok.com/"},YouTube:{icon:i.g_.Youtube,hint:"https://www.youtube.com/"},Linktree:{icon:i.g_.Linktree,hint:"https://www.linktr.ee/"},Fiverr:{icon:i.g_.Fiverr,hint:"https://www.fiverr.com/"},Upwork:{icon:i.g_.Upwork,hint:"https://www.upwork.com/"},Freelancer:{icon:i.g_.Freelancer,hint:"https://www.freelancer.com/"}},o={Facebook:{icon:i.g_.Facebook,hint:"https://www.facebook.com/copyfolio"},Instagram:{icon:i.g_.Instagram,hint:"https://www.instagram.com/copyfolioapp"},Threads:{icon:i.g_.Threads,hint:"https://www.threads.net/@copyfolioapp"},Twitter:{icon:i.g_.X,hint:"https://x.com/copyfolioapp",label:"X (formerly Twitter)"},LinkedIn:{icon:i.g_.Linkedin,hint:"https://www.linkedin.com/company/copyfolio"},Pinterest:{icon:i.g_.Pinterest,hint:"https://www.pinterest.com/copyfolio"},YouTube:{icon:i.g_.Youtube,hint:"https://www.youtube.com/c/copyfolio"},TikTok:{icon:i.g_.Tiktok,hint:"https://www.tiktok.com/@copyfolioapp"},Medium:{icon:i.g_.Medium,hint:"https://www.medium.com/@copyfolio"},Goodreads:{icon:i.g_.Goodreads,hint:"https://www.goodreads.com/user/show/12345678-copyfolio"},Wattpad:{icon:i.g_.Wattpad,hint:"https://www.wattpad.com/user/copyfolio"},Linktree:{icon:i.g_.Linktree,hint:"https://www.linktr.ee/copyfolio"},Upwork:{icon:i.g_.Upwork,hint:"https://www.upwork.com/freelancers/copyfolio"},Fiverr:{icon:i.g_.Fiverr,hint:"https://www.fiverr.com/copyfolio"},Freelancer:{icon:i.g_.Freelancer,hint:"https://www.freelancer.com/u/copyfolio"},Vimeo:{icon:i.g_.Vimeo,hint:"https://www.vimeo.com"},Spotify:{icon:i.g_.Spotify,hint:"https://www.spotify.com"},"Apple Music":{icon:i.g_.AppleMusic,hint:"https://music.apple.com"},Other:{icon:i.g_.Other,hint:"https://www.example.com"}},l=a.Ab?r:o},94218:function(e,t,n){n.d(t,{R:function(){return useCreateFile}});var i=n(82066),a=n(6431);function useCreateFile(e){let{client:t}=a.S.useContext(),mutationFn=async n=>{var i;let a=null==e?void 0:null===(i=e.path)||void 0===i?void 0:i.call(e,n),{url:r,fields:o}=await t.query("FileStorage.presignedPost",{path:a,mimeType:n.type,prefix:null==e?void 0:e.prefix,metadata:n.metadata}),l=new FormData;Object.entries(o).forEach(e=>{let[t,n]=e;l.append(t,n)}),l.append("file",n);let s=await fetch(r,{method:"POST",body:l});if(!s.ok)throw Error(await s.text());return"".concat(r,"/").concat(o.key)};return(0,i.useMutation)(mutationFn)}},72255:function(e,t,n){n.d(t,{G:function(){return useDeleteSection}});var i=n(58651),a=n(6431);function useDeleteSection(){let{cancelQuery:e,getQueryData:t,setQueryData:n,invalidateQueries:r,queryClient:o}=a.S.useContext();return a.S.useMutation("Section.delete",{onMutate:async i=>{let a;let l=o.getQueryCache().findAll(["Section.findAllByPageId"]).flatMap(e=>e.state.data).find(e=>e.id===i);if(l&&(await e(["Section.findAllByPageId",l.pageId]),a=t(["Section.findAllByPageId",l.pageId]))){let e=a.findIndex(e=>e.id===i);e>=0?n(["Section.findAllByPageId",l.pageId],[...a.slice(0,e),...a.slice(e+1)]):r(["Section.findAllByPageId",l.pageId])}return{prevSection:l,prevSections:a}},onSuccess:(e,t,n)=>{var a;(0,i.w)({event:"deleteSection",sectionType:null===(a=n.prevSection)||void 0===a?void 0:a.type})},onError:(e,t,i)=>{i.prevSection&&n(["Section.findAllByPageId",i.prevSection.pageId],i.prevSections)}})}},68196:function(e,t,n){n.d(t,{R:function(){return useUpdatePage}});var i=n(5632),a=n(50687),r=n(58651),o=n(6431);function useUpdatePage(){let{delayMs:e=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.useRouter)(),n=(0,a.I)(),{cancelQuery:l,getQueryData:s,setQueryData:c,invalidateQueries:d}=o.S.useContext();return(0,o.Q)("Page.update",{delayMs:e,onMutate:async e=>{let t;await l(["Page.find",e.id]);let n=s(["Page.find",e.id]);if(n&&c(["Page.find",e.id],{...n,...e}),n&&(await l(["Page.findAllBySiteId",n.siteId]),t=s(["Page.findAllBySiteId",n.siteId]))){let i=t.findIndex(t=>t.id===e.id);if(i>=0){let a={...n,...t[i],...e};c(["Page.findAllBySiteId",n.siteId],[...t.slice(0,i),a,...t.slice(i+1)])}else d(["Page.findAllBySiteId",n.siteId])}return{prevPage:n,prevPagesByParentSite:t}},onSuccess:(e,i)=>{c(["Page.find",e.id],e);let a=s(["Page.findAllBySiteId",e.siteId]);if(a){let t=a.findIndex(t=>t.id===e.id);if(t>=0){let n=[...a.slice(0,t),e,...a.slice(t+1)];c(["Page.findAllBySiteId",e.siteId],n)}else d(["Page.findAllBySiteId",e.siteId])}if(e.id===n){var o;Array.isArray(t.query.slugs)&&e.slug!==(null!==(o=t.query.slugs[1])&&void 0!==o?o:"")&&t.replace({query:{...t.query,slugs:[t.query.slugs[0],...e.slug?[e.slug]:[]]},hash:window.location.hash},void 0,{shallow:!0})}null!=i.published&&(0,r.w)({event:i.published?"publishProjectPage":"unpublishProjectPage",pageId:i.id}),null!=i.title&&"PROJECT"===e.type&&(0,r.w)({event:"updateProjectPreviewTitle",pageId:i.id}),i.thumbnail&&((0,r.w)({event:"updateImageSrc",pageType:e.type}),"PROJECT"===e.type&&(0,r.w)({event:"updateProjectPreviewImageSrc",pageId:i.id}))},onError:(e,t,n)=>{c(["Page.find",t.id],n.prevPage),n.prevPage&&c(["Page.findAllBySiteId",n.prevPage.siteId],n.prevPagesByParentSite)}})}},82475:function(e,t,n){n.d(t,{n:function(){return useUpdateSection}});var i=n(59965),a=n(58651),r=n(6431);function useUpdateSection(){let{delayMs:e=500}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{cancelQuery:t,getQueryData:n,setQueryData:o,invalidateQueries:l,queryClient:s}=r.S.useContext();return(0,r.Q)("Section.update",{delayMs:e,retry:!0,onMutate:async e=>{let i;let a=s.getQueryCache().findAll(["Section.findAllByPageId"]).flatMap(e=>e.state.data).find(t=>t.id===e.id);if(a&&(await t(["Section.findAllByPageId",a.pageId]),i=n(["Section.findAllByPageId",a.pageId]))){let t=i.findIndex(t=>t.id===e.id);if(t>=0){let n={...e,version:a.version+1,pageId:a.pageId};o(["Section.findAllByPageId",a.pageId],[...i.slice(0,t),n,...i.slice(t+1)])}else l(["Section.findAllByPageId",a.pageId])}return{prevSection:a,prevSections:i}},onSuccess:(e,t,r)=>{if(r.prevSection){var o,l,s,c,d;let e=r.prevSection,u=n(["Page.find",e.pageId]);if("textNodes"in t&&"textNodes"in e&&!(0,i.J)(t.textNodes,e.textNodes)&&((0,a.w)({event:"updateSectionTextNodes",pageType:null==u?void 0:u.type}),"HERO"===t.type&&(0,a.w)({event:"updateHeroSectionTextNodes"})),"foregroundImage"in t&&"foregroundImage"in e&&(null===(o=t.foregroundImage)||void 0===o?void 0:o.src)!==(null===(l=e.foregroundImage)||void 0===l?void 0:l.src)&&((0,a.w)({event:"updateImageSrc",pageType:null==u?void 0:u.type}),"HERO"===t.type&&(0,a.w)({event:"updateHeroSectionImageSrc"})),"backgroundImage"in t&&"backgroundImage"in e&&(null===(s=t.backgroundImage)||void 0===s?void 0:s.src)!==(null===(c=e.backgroundImage)||void 0===c?void 0:c.src))switch((0,a.w)({event:"updateImageSrc",pageType:null==u?void 0:u.type}),t.type){case"COVER":(0,a.w)({event:"updateCoverSectionImageSrc"});break;case"HERO":(0,a.w)({event:"updateHeroSectionImageSrc"});break;case"SUBHEADING":(0,a.w)({event:"updateSubheadingSectionImageSrc"})}"media"in t&&"media"in e&&t.media&&e.media&&"IMAGE"===t.media[0].type&&"IMAGE"===e.media[0].type&&(t.media[0].src!==e.media[0].src&&(0,a.w)({event:"updateImageSrc",pageType:null==u?void 0:u.type}),t.media[0].preferredSize!==e.media[0].preferredSize&&(0,a.w)({event:"updateImagePreferredSize"}),t.media[0].mockup!==e.media[0].mockup&&(0,a.w)({event:"updateImageMockup",mockup:t.media[0].mockup}),t.media.length>1&&t.sizeOfImages!==e.sizeOfImages&&(0,a.w)({event:"updateSizeOfImages",size:null===(d=t.sizeOfImages)||void 0===d?void 0:d.toString()}))}},onError:(e,t,n)=>{n.prevSection&&o(["Section.findAllByPageId",n.prevSection.pageId],n.prevSections)}})}},95381:function(e,t,n){n.d(t,{g:function(){return useUpdateSite}});var i=n(5632),a=n(57855),r=n(58651),o=n(6431);function useUpdateSite(){let{delayMs:e=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.useRouter)(),n=(0,a.$)(),{cancelQuery:l,getQueryData:s,setQueryData:c}=o.S.useContext();return(0,o.Q)("Site.update",{delayMs:e,onMutate:async e=>{await l(["Site.find",e.id]);let t=s(["Site.find",e.id]);return{prevSite:t}},onSuccess:(e,i,a)=>{let{prevSite:o}=a;if(o&&c(["Site.find",i.id],{...o,...i}),i.slug&&i.id===n&&Array.isArray(t.query.slugs)&&i.slug!==t.query.slugs[0]&&t.replace({query:{...t.query,slugs:[i.slug,...t.query.slugs[1]?[t.query.slugs[1]]:[]]},hash:window.location.hash},void 0,{shallow:!0}),i.slug&&i.slug!==(null==o?void 0:o.slug)&&(0,r.w)({event:"updateSiteSlug"}),i.template&&i.template!==(null==o?void 0:o.template)){let e=s(["User.find",o.authorId]);(0,r.w)({event:"updateSiteTemplate",siteTemplate:i.template,profession:null==e?void 0:e.jobTitle})}null!=i.hideProductBranding&&i.hideProductBranding!==(null==o?void 0:o.hideProductBranding)&&(0,r.w)({event:i.hideProductBranding?"hideSiteProductBranding":"showSiteProductBranding"})},onError:(e,t,n)=>{c(["Site.find",t.id],n.prevSite)}})}},67867:function(e,t,n){n.d(t,{r:function(){return useCanPublishPagesOnSite}});var i=n(40641),a=n(2784),r=n(94343),o=n(99283);function useCanPublishPagesOnSite(e){let t=(0,r.F)(),n=(0,o.B)(e).data,l=a.useMemo(()=>n.filter(e=>e.published&&"PROJECT"===e.type).length,[n]);return()=>l<i.lM||t("PREMIUM")}},99283:function(e,t,n){n.d(t,{B:function(){return useAllPagesBySiteId}});var i=n(6431);function useAllPagesBySiteId(e){return i.S.useQuery(["Page.findAllBySiteId",e])}},31939:function(e,t,n){n.d(t,{b:function(){return useAllSectionsByPageId}});var i=n(6431);function useAllSectionsByPageId(e){return i.S.useQuery(["Section.findAllByPageId",e])}},19841:function(e,t,n){n.d(t,{uf:function(){return useInstagramPostAlbum},uq:function(){return useInstagramFeed},y1:function(){return useInstagramUser}});var i=n(6431);let a={staleTime:36e5,cacheTime:6048e5,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1};function useInstagramUser(e){return i.S.useQuery(["Account.instagramUser",{accountId:e}],a)}function useInstagramFeed(e,t){return i.S.useQuery(["Account.instagramFeed",{accountId:e,rows:t}],a)}function useInstagramPostAlbum(e,t){return i.S.useQuery(["Account.instagramPostAlbum",{accountId:e,postId:t}])}},44655:function(e,t,n){n.d(t,{q:function(){return usePage}});var i=n(6431);function usePage(e){return i.S.useQuery(["Page.find",e])}},1870:function(e,t,n){n.d(t,{z:function(){return usePagesByParentSectionId}});var i=n(57855),a=n(99283);function usePagesByParentSectionId(e){let t=(0,i.$)(),{data:n}=(0,a.B)(t);return null==n?void 0:n.filter(t=>t.parentSectionId===e)}},62271:function(e,t,n){n.d(t,{W:function(){return useSite}});var i=n(2784),a=n(82066),r=n(31118),o=n(79209),l=n(6431);function useSite(e){return function(e,t){let n=function(e){let{getPendingQueryData:t,subscribe:n}=(0,o.fN)(),[l,s]=i.useState(()=>t(e)),c=(0,r.Pr)(()=>e,[(0,a.hashQueryKey)(e)]);return i.useEffect(()=>n(c,e=>{s(e)}),[c,n]),l}(e);return void 0!==n&&"error"!==t.status?{...t,data:n}:t}(["Site.find",e],l.S.useQuery(["Site.find",null!=e?e:""],{enabled:!!e&&!(null==e?void 0:e.startsWith("demo-"))}))}},78536:function(e,t,n){n.d(t,{P:function(){return useSubscriptionType}});var i=n(6431);function useSubscriptionType(e){return i.S.useQuery(["User.getSubscriptionType",e])}},41253:function(e,t,n){n.d(t,{a:function(){return useUser}});var i=n(6431);function useUser(e){return i.S.useQuery(["User.find",e])}},87036:function(e,t,n){n.d(t,{m:function(){return useCurrentSiteTemplate}});var i=n(57855),a=n(23551),r=n(62271);function useCurrentSiteTemplate(){let e=(0,i.$)(),t=(0,r.W)(e).data;return a.D3[t.template]}},72915:function(e,t,n){n.d(t,{$:function(){return useEventCallback}});var i=n(2784);function useEventCallback(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useCallback(function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.current(...n)},[])}},21112:function(e,t,n){n.d(t,{i:function(){return useImageUpload}});var i=n(40641),a=n(2834),r=n(2784),o=n(75726),l=n(84830),s=n(2671),c=n(86105),d=n(94218),u=n(58651);function useImageUpload(e){let[t,n]=(0,r.useState)(null),{addInstantImages:p}=(0,c.y)(),{mutateAsync:h}=(0,d.R)(),handleError=t=>{var i;return null==e||null===(i=e.onError)||void 0===i||i.call(e,t),n(t),t},tryCreateFile=e=>{try{return h(e)}catch(e){throw Error("Our servers are a bit lazy, please try again later")}},uploadImage=async(t,i)=>{try{var a;n(null);let r=await (0,l.AB)(t),s=await tryCreateFile(i);p([{localSrc:t.src,s3Src:s}]);let c=(0,o.l$)(t);if(null==e?void 0:e.onCrop)return e.onCrop({src:s,localSrc:r.src,originalWidth:t.naturalWidth,originalHeight:t.naturalHeight,blurHash:c}),null;let d={...r,localSrc:r.src,src:s,crop:void 0,blurHash:c};return null==e||null===(a=e.onDone)||void 0===a||a.call(e,d),d}catch(e){return e instanceof Error&&handleError(e.message),null}};return{uploadImage,error:t,handleRejection:t=>{if(0===t.length)return null;let[{errors:[n],file:r}]=t;switch(n.code){case"file-invalid-type":if((null==e?void 0:e.accept)==="document-only")return handleError("We only handle PDF documents");return handleError("We only handle JPG, PNG, GIF or WEBP images".concat(a.Ab?" and PDF documents":""));case"file-too-large":return(0,u.w)({event:"maxUploadSizeExceeded",fileSize:(0,s.td)(r.size),fileType:r.type}),handleError("Shoot, ".concat(r.name," (").concat((0,s.td)(r.size),") is larger than ").concat((0,s.td)(i.wG),"."));case"too-many-files":if(null==e?void 0:e.multi)return handleError("Too many files selected, maximum 10 files can be uploaded at the same time");return handleError("Hold on, you can't upload more than one file here");default:return null}}}}},84834:function(e,t,n){n.d(t,{G:function(){return useMedia}});var i=n(2784),a=n(52716);let r={"not screen, (min-width: 1024px)":"laptop","not screen, (min-width: 640px) and (max-width: 1023px)":"tablet","not screen, (max-width: 639px)":"mobile"};function useMedia(e){let[t,n]=i.useState(),{size:o}=(0,a.k)();return i.useEffect(()=>{let t=matchMedia(e);if(!t)return()=>{};function handleChange(){"viewport"===o?n(t.matches):n(r[e]===o)}return t.addEventListener("change",handleChange),handleChange(),()=>{t.removeEventListener("change",handleChange)}},[e,o]),t}},91769:function(e,t,n){n.d(t,{b:function(){return useNavigationStyle}});var i=n(2834),a=n(50687),r=n(57855),o=n(44655),l=n(62271),s=n(87036);function useNavigationStyle(){var e,t,n,c;let d=(0,r.$)(),u=(0,a.I)(),p=(0,o.q)(u).data,h=(0,l.W)(d).data,{navigationStyle:g,navigationTextColorOverride:m}=(0,s.m)(),{isOverlay:f,paddingSize:x}=g[p.type],y=i.Ab&&h.sectionSettings&&"BLOG_POST"===p.type&&!h.template.includes("LEGACY")?(null===(t=h.sectionSettings)||void 0===t?void 0:null===(e=t.BLOGPOST_HERO)||void 0===e?void 0:e.variant)==="GRADIENT"||(null===(c=h.sectionSettings)||void 0===c?void 0:null===(n=c.BLOGPOST_HERO)||void 0===n?void 0:n.variant)==="FILL":f;return{isOverlay:y,paddingSize:x,navigationTextColorOverride:m}}},19855:function(e,t,n){n.d(t,{C:function(){return useScreenSizeBasedValue},e:function(){return useScreenSize}});var i=n(84834);function useScreenSize(){let e=(0,i.G)("not screen, (min-width: 1024px)"),t=(0,i.G)("not screen, (min-width: 640px) and (max-width: 1023px)");return e?"laptop":t?"tablet":"mobile"}function useScreenSizeBasedValue(e){let t=useScreenSize();return e[t]}},18013:function(e,t,n){n.d(t,{F:function(){return GoogleFontsSheet}});var i=n(52322),a=n(97729),r=n.n(a);function sortableAxisValue(e){return"number"==typeof e?e:e.start+Number.EPSILON}let o={ital:0,opsz:14,slnt:0,wdth:100,wght:400};function GoogleFontsSheet(e){let{fonts:t,text:n,display:a="swap"}=e,l=Object.keys(t).sort(),s=l.map(e=>{let n=new Set,i=t[e];i.forEach(e=>{Object.entries(e).forEach(e=>{let[t,i]=e;null!=i&&n.add(t)})});let a=[...n].sort();return[e,i.map(e=>new Map(a.map(t=>{var n;return[t,null!==(n=e[t])&&void 0!==n?n:o[t]]}))).sort((e,t)=>{let n=a.find(n=>e.get(n)!==t.get(n));return n?sortableAxisValue(e.get(n))-sortableAxisValue(t.get(n)):0})]});return s.length>0?(0,i.jsx)(r(),{children:(0,i.jsx)("link",{href:"https://fonts.googleapis.com/css2?"+s.map(e=>{let[t,n]=e,i="family=".concat(t.replace(/ /g,"+"));return n.length>0&&(i+=":".concat([...n[0].keys()],"@").concat([...new Set(n.map(e=>[...e.values()].join(",")))].join(";"))),i}).join("&")+(n?"&text=".concat(encodeURIComponent(n)):"")+("auto"!==a?"&display=".concat(a):""),rel:"stylesheet"})}):null}},80385:function(e,t,n){n.d(t,{YZ:function(){return i},_z:function(){return a}});let i=new Set(["400","401","403","404","405","406","407","408","409","410","411","412","413","414","415","416","417","421","422","423","424","426","428","429","431","500","501","502","503","504","505","506","507","508","509","510","511","about","about-us","abuse","access","account","accounts","ad","add","admin","administration","administrator","ads","ads.txt","advertise","advertising","aes128-ctr","aes128-gcm","aes192-ctr","aes256-ctr","aes256-gcm","affiliate","affiliates","ajax","alert","alerts","alpha","amp","analytics","api","app","app-ads.txt","apps","asc","assets","atom","auth","authentication","authorize","autoconfig","autodiscover","avatar","archifolio","archifol","backup","banner","banners","bbs","bencevass","beta","billing","billings","blog","blogs","board","bookmark","bookmarks","broadcasthost","business","buy","cache","calendar","campaign","captcha","careers","cart","cas","categories","category","cdn","cgi","cgi-bin","chacha20-poly1305","change","channel","channels","chart","chat","checkout","clear","client","close","cloud","cms","com","comment","comments","community","compare","compose","config","connect","contact","contest","cookies","copy","copyfolio","copyfolioteam","copyright","copywriting-portfolio","count","cp","cpanel","create","crossdomain.xml","css","curve25519-sha256","customer","customers","customize","danielszalay","dashboard","davidpasztor","db","deals","debug","delete","desc","destroy","dev","developer","developers","diffie-hellman-group-exchange-sha256","diffie-hellman-group14-sha1","disconnect","discuss","dns","dns0","dns1","dns2","dns3","dns4","docs","documentation","domain","dorkakardoslatif","download","downloads","downvote","draft","drop","early-access","ecdh-sha2-nistp256","ecdh-sha2-nistp384","ecdh-sha2-nistp521","edit","editor","email","enterprise","error","errors","event","events","example","examples","exception","exit","explore","export","extensions","false","family","faq","faqs","favicon.ico","features","feed","feedback","feeds","file","files","filter","follow","follower","followers","following","fonts","forgot","forgot-password","forgotpassword","form","forms","forum","forums","friend","friends","ftp","get","git","go","graphql","group","groups","guest","guidelines","guides","head","header","help","hide","hmac-sha","hmac-sha1","hmac-sha1-etm","hmac-sha2-256","hmac-sha2-256-etm","hmac-sha2-512","hmac-sha2-512-etm","home","host","hosting","hostmaster","htpasswd","http","httpd","https","humans.txt","icons","images","imap","img","import","imprint","index","info","insert","investors","invitations","invite","invites","invoice","is","isatap","issues","it","jobs","join","journoportfolio","js","json","kardoslatifdorka","keybase.txt","kristofpoduszlo","learn","legal","license","licensing","like","limit","live","load","local","localdomain","localhost","lock","login","logout","lost-password","lotto-vip-24-432","lotto432","mail","mail0","mail1","mail2","mail3","mail4","mail5","mail6","mail7","mail8","mail9","mailer-daemon","mailerdaemon","map","marketing","marketplace","master","me","media","member","members","message","messages","metrics","mis","mobile","moderator","modify","more","mx","mx1","my","net","network","new","news","newsletter","newsletters","next","nil","no-reply","nobody","noc","none","noreply","notification","notifications","ns","ns0","ns1","ns2","ns3","ns4","ns5","ns6","ns7","ns8","ns9","null","oauth","oauth2","offer","offers","online","openid","order","orders","our-team","ourteam","overview","owa","owner","page","pages","partners","passwd","password","pasztordavid","pay","payment","payments","paypal","photo","photos","pixel","plans","plugins","poduszlokristof","policies","policy","pop","pop3","popular","portal","portfolio","post","postfix","postmaster","poweruser","preferences","premium","press","previous","pricing","print","privacy","privacy-policy","private","prod","product","production","profile","profiles","project","projects","promo","public","purchase","put","quota","redirect","reduce","refund","refunds","register","registration","remove","replies","reply","report","request","request-password","reserve","reset","reset-password","response","return","returns","review","reviews","robots.txt","root","rootuser","rsa-sha2-2","rsa-sha2-512","rss","rules","sales","sandorzelenka","save","script","sdk","search","secure","security","select","services","session","sessions","settings","setup","share","shift","shop","signin","signup","site","sitemap","sites","smtp","sort","source","sql","squarespace","ssh","ssh-rsa","ssl","ssladmin","ssladministrator","sslwebmaster","stage","staging","stat","static","statistics","stats","status","store","style","styles","stylesheet","stylesheets","subdomain","subscribe","sudo","super","superuser","support","survey","sync","sysadmin","system","szalaydaniel","tablet","tag","tags","team","telnet","terms","terms-of-use","test","testimonials","theme","themes","today","tools","topic","topics","tour","training","translate","translations","trending","trial","true","umac-128","umac-128-etm","umac-64","umac-64-etm","undefined","unfollow","unlike","unsubscribe","update","upgrade","upload","usenet","user","username","users","uucp","uxfolio","uxfolioteam","uxstudio","uxstudioteam","var","vassbence","verify","video","view","void","vote","vpn","webmail","webmaster","website","weebly","why-copyfolio","whycopyfolio","widget","widgets","wiki","wix","wordpress","wpad","write","writing-portfolio","www","www-data","www1","www2","www3","www4","you","yourname","yourusername","zelenkasandor","zlib"]),a=new Set(["400","401","403","404","405","406","407","408","409","410","411","412","413","414","415","416","417","421","422","423","424","426","428","429","431","500","501","502","503","504","505","506","507","508","509","510","511","abuse","access","account","accounts","add","admin","administration","administrator","ads.txt","aes128-ctr","aes128-gcm","aes192-ctr","aes256-ctr","aes256-gcm","ajax","alert","alerts","alpha","amp","api","app","app-ads.txt","apps","asc","atom","auth","authentication","authorize","autoconfig","autodiscover","archifolio","archifol","backup","bbs","bencevass","beta","billing","billings","broadcasthost","buy","cache","captcha","cart","cas","cdn","cgi","cgi-bin","chacha20-poly1305","checkout","cms","config","copyfolio","copyfolioteam","copyright","cp","cpanel","crossdomain.xml","css","curve25519-sha256","danielszalay","davidpasztor","db","debug","delete","diffie-hellman-group-exchange-sha256","diffie-hellman-group14-sha1","dns","dns0","dns1","dns2","dns3","dns4","dorkakardoslatif","ecdh-sha2-nistp256","ecdh-sha2-nistp384","ecdh-sha2-nistp521","error","errors","favicon.ico","forgot","forgot-password","forgotpassword","ftp","get","git","graphql","hmac-sha","hmac-sha1","hmac-sha1-etm","hmac-sha2-256","hmac-sha2-256-etm","hmac-sha2-512","hmac-sha2-512-etm","home","host","hosting","hostmaster","htpasswd","http","httpd","https","humans.txt","import","index","invoice","isatap","issues","journoportfolio","js","json","kardoslatifdorka","keybase.txt","kristofpoduszlo","legal","license","licensing","load","localdomain","localhost","lock","login","logout","lost-password","lotto-vip-24-432","lotto432","mail","mail0","mail1","mail2","mail3","mail4","mail5","mail6","mail7","mail8","mail9","mailer-daemon","mailerdaemon","member","members","mis","moderator","mx","mx1","my","net","new","nil","no-reply","noc","noreply","ns","ns0","ns1","ns2","ns3","ns4","ns5","ns6","ns7","ns8","ns9","null","oauth","oauth2","offer","offers","openid","order","orders","our-team","ourteam","overview","owa","owner","partners","passwd","password","pasztordavid","pay","payment","payments","paypal","plans","poduszlokristof","policies","policy","pop","pop3","post","postfix","postmaster","poweruser","premium","pricing","privacy","privacy-policy","private","prod","promo","purchase","put","redirect","refund","refunds","register","registration","report","request","request-password","reset","reset-password","robots.txt","root","rootuser","rsa-sha2-2","rsa-sha2-512","rss","sandorzelenka","sdk","settings","setup","signin","sign-in","signup","sign-up","site","sitemap","sites","smtp","sort","source","sql","squarespace","ssh","ssh-rsa","ssl","ssladmin","ssladministrator","sslwebmaster","staging","stat","stats","status","store","stylesheet","stylesheets","subdomain","sudo","super","superuser","support","survey","sync","sysadmin","system","szalaydaniel","telnet","terms","terms-of-use","test","true","umac-128","umac-128-etm","umac-64","umac-64-etm","undefined","update","upgrade","upload","usenet","user","username","users","uucp","uxfolio","uxfolioteam","uxstudio","uxstudioteam","var","vassbence","verify","void","vote","vpn","webmail","webmaster","weebly","why-copyfolio","whycopyfolio","widget","widgets","wiki","wix","wordpress","wpad","www","www-data","www1","www2","www3","www4","you","yourname","yourusername","zelenkasandor","zlib"])},87502:function(e,t,n){n.d(t,{Kc:function(){return i},d7:function(){return o},pj:function(){return r},zj:function(){return a}});let i=["image/gif","image/jpeg","image/png","image/webp"],a={"image/*":[".gif",".jpeg",".png",".webp"]},r=["application/pdf"],o={"application/pdf":[".pdf"]}},40641:function(e,t,n){n.d(t,{AQ:function(){return u},Jg:function(){return o},RI:function(){return a},Xe:function(){return p},Yl:function(){return s},i1:function(){return l},lM:function(){return r},nf:function(){return d},rf:function(){return c},wG:function(){return i}});let i=1e7,a=10,r=1,o=3,l=7,s=1,c=125,d=10,u=5,p=3},33897:function(e,t,n){n.d(t,{$:function(){return textBlock},L:function(){return getContent}});var i=n(6676),a=n.n(i),r=n(83978);function textBlock(){let{content:e={alignment:"left",payload:(0,r.UZ)((0,r.s_)("This is your heading"),(0,r.FI)("You can write here as much as you want, this text will always look nice, whether you write longer paragraphs or just a few words. Click here and try it out."))}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"TEXT",id:a()(),content:e}}function getContent(e){var t,n;let i=null===(t=e.content)||void 0===t?void 0:t.payload;return null!==(n=null==i?void 0:i.content)&&void 0!==n?n:[]}},3949:function(e,t,n){n.d(t,{$o:function(){return a},C_:function(){return r},pb:function(){return imageWithIntrinsicSize}});var i=n(2834);let a=i.Ab?{src:"/assets/media-examples/luca-bravo-alS7ewQ41M8-unsplash.jpg",originalWidth:5847,originalHeight:3898}:{src:"/assets/media-examples/default-text-and-media.jpg",originalWidth:4688,originalHeight:3105},r=[{src:"/assets/placeholders/blog/blocks/block-1.webp",originalWidth:1400,originalHeight:1400},{src:"/assets/placeholders/blog/blocks/block-2.webp",originalWidth:1400,originalHeight:1400},{src:"/assets/placeholders/blog/blocks/block-3.webp",originalWidth:1400,originalHeight:1400},{src:"/assets/placeholders/blog/blocks/block-4.webp",originalWidth:1400,originalHeight:1400}];function imageWithIntrinsicSize(e){return{...e,width:e.originalWidth,height:e.originalHeight}}},25265:function(e,t,n){n.d(t,{$:function(){return formModule}});var i=n(6676),a=n.n(i);function formModule(e){let{extension:t={label:"Send Mail",action:"SEND_EMAIL",actionValue:e}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{id:a()(),type:"FORM",extension:t}}},18823:function(e,t,n){n.d(t,{j:function(){return imageModule}});var i=n(6676),a=n.n(i),r=n(3949);function imageModule(){let{preferredSize:e="md",originalHeight:t=r.$o.originalHeight,originalWidth:n=r.$o.originalWidth,src:i=r.$o.src,...o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:a()(),type:"IMAGE",preferredSize:e,originalHeight:t,originalWidth:n,src:i,...o}}},67001:function(e,t,n){n.d(t,{z:function(){return quoteModule}});var i=n(6676),a=n.n(i),r=n(2834);function quoteModule(){let{defaultAlignment:e="center",content:t={alignment:e,payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"We loved the collab, the results speak for themselves. Looking forward to working together again."}]}]}},citation:n={alignment:e,payload:{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:"― Jamie Wright, Head of Marketing at ".concat(r.sG)}]}]}},...i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:a()(),type:"QUOTE",content:t,citation:n,...i}}},11988:function(e,t,n){n.d(t,{D:function(){return textModule}});var i=n(6676),a=n.n(i);function textModule(){let{content:e={alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"This is your heading"}]},{type:"paragraph",content:[{type:"text",text:"You can write here as much as you want, this text will always look nice, whether you write longer paragraphs or just a few words. Click here and try it out."}]}]}},extension:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:a()(),content:e,type:"TEXT",extension:t}}},94367:function(e,t,n){n.d(t,{U:function(){return videoModule}});var i=n(6676),a=n.n(i),r=n(44102);function videoModule(){let{preferredSize:e="md",url:t=r.k.url,caption:n=r.k.caption,loop:i=r.k.loop,muted:o=r.k.muted}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:a()(),type:"VIDEO",preferredSize:e,url:t,caption:n,loop:i,muted:o}}},75443:function(e,t,n){function pageSubtypeLabel(e){return"BLOG_POST"===e.type?"blog post":e.externalUrl?e.externalUrl.startsWith("https://copyfolio.s3.us-east-1.amazonaws.com")&&e.externalUrl.endsWith(".pdf")?"PDF":"link":"page"}function getPageStatus(e){var t;return"BLOG_POST"!==e.type?e.published?"published":"draft":e.published?(null!==(t=e.blogPostPublishUnixTimestamp)&&void 0!==t?t:0)<Math.ceil(Date.now()/1e3)?"published":"scheduled":"draft"}n.d(t,{D:function(){return getPageStatus},r:function(){return pageSubtypeLabel}})},55116:function(e,t,n){n.d(t,{k$:function(){return getRandomProjectThumbnail},qF:function(){return defaultProjectPreviewTitle}});var i=n(34911),a=n(2834),r=n(75443);function defaultProjectPreviewTitle(e){let{externalUrl:t}=e,n=(0,r.r)({externalUrl:t,type:"PROJECT"});if(a.Ab)return"New project";switch(n){case"PDF":return"Writing sample PDF";case"link":return"Link to writing sample";case"page":return"Writing sample case study";default:return(0,i.pv)(n)}}let o=[{src:"/assets/project-thumbnails/thumbnail-1.jpg",originalWidth:1920,originalHeight:1920},{src:"/assets/project-thumbnails/thumbnail-10.jpg",originalWidth:1920,originalHeight:1920},{src:"/assets/project-thumbnails/thumbnail-11.jpg",originalWidth:1920,originalHeight:1920},{src:"/assets/project-thumbnails/thumbnail-12.jpg",originalWidth:1920,originalHeight:1280},{src:"/assets/project-thumbnails/thumbnail-13.jpg",originalWidth:1920,originalHeight:1920},{src:"/assets/project-thumbnails/thumbnail-14.jpg",originalWidth:1920,originalHeight:1920},{src:"/assets/project-thumbnails/thumbnail-15.jpg",originalWidth:1920,originalHeight:1790},{src:"/assets/project-thumbnails/thumbnail-16.jpg",originalWidth:1920,originalHeight:2396},{src:"/assets/project-thumbnails/thumbnail-17.jpg",originalWidth:1920,originalHeight:2560},{src:"/assets/project-thumbnails/thumbnail-18.jpg",originalWidth:1920,originalHeight:2880},{src:"/assets/project-thumbnails/thumbnail-19.jpg",originalWidth:1920,originalHeight:1440},{src:"/assets/project-thumbnails/thumbnail-2.jpg",originalWidth:1920,originalHeight:1920},{src:"/assets/project-thumbnails/thumbnail-20.jpg",originalWidth:1920,originalHeight:1920},{src:"/assets/project-thumbnails/thumbnail-21.jpg",originalWidth:1920,originalHeight:2398},{src:"/assets/project-thumbnails/thumbnail-22.jpg",originalWidth:1920,originalHeight:1811},{src:"/assets/project-thumbnails/thumbnail-3.jpg",originalWidth:1920,originalHeight:1920},{src:"/assets/project-thumbnails/thumbnail-4.jpg",originalWidth:1920,originalHeight:1920},{src:"/assets/project-thumbnails/thumbnail-5.jpg",originalWidth:1920,originalHeight:1920},{src:"/assets/project-thumbnails/thumbnail-6.jpg",originalWidth:1920,originalHeight:1920},{src:"/assets/project-thumbnails/thumbnail-7.jpg",originalWidth:1920,originalHeight:1920},{src:"/assets/project-thumbnails/thumbnail-8.jpg",originalWidth:1920,originalHeight:1920}],l=[{src:"/assets/project-thumbnails/architect-1.webp",originalWidth:1800,originalHeight:1200},{src:"/assets/project-thumbnails/architect-2.webp",originalWidth:1200,originalHeight:1800},{src:"/assets/project-thumbnails/architect-3.webp",originalWidth:1200,originalHeight:1500},{src:"/assets/project-thumbnails/architect-4.webp",originalWidth:1200,originalHeight:1800},{src:"/assets/project-thumbnails/architect-5.webp",originalWidth:1800,originalHeight:1200},{src:"/assets/project-thumbnails/architect-6.webp",originalWidth:1200,originalHeight:1500},{src:"/assets/project-thumbnails/interior-designer-1.webp",originalWidth:1200,originalHeight:1200},{src:"/assets/project-thumbnails/interior-designer-2.webp",originalWidth:1200,originalHeight:1800},{src:"/assets/project-thumbnails/interior-designer-3.webp",originalWidth:1200,originalHeight:1200},{src:"/assets/project-thumbnails/interior-designer-4.webp",originalWidth:1200,originalHeight:1200},{src:"/assets/project-thumbnails/interior-designer-5.webp",originalWidth:1200,originalHeight:1200},{src:"/assets/project-thumbnails/interior-designer-6.webp",originalWidth:1200,originalHeight:1500}];function getRandomProjectThumbnail(){return a.Ab?l[Math.floor(Math.random()*l.length)]:o[Math.floor(Math.random()*o.length)]}},10330:function(e,t,n){n.d(t,{X:function(){return formatBlogPostDate},i:function(){return blogSection}});var i=n(34911);function formatBlogPostDate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"regular";if(null===e)throw TypeError("unixTimestamp should be a number.");let n=new Date(1e3*e);switch(t){case"regular":return n.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});case"compact":return n.toLocaleDateString();default:return(0,i.pv)(t)}}function blogSection(e){let{dateFormat:t="regular",openPostButtonLabel:n="Read more",showMoreButtonLabel:i="Show more",title:a,listStyle:r="normal",layout:o="list",aspectRatioOfThumbnails:l="horizontal"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{version:1,pageId:e,type:"BLOG",layout:o,dateFormat:t,openPostButtonLabel:n,showMoreButtonLabel:i,showOpenPostButton:!0,categories:[],showCategories:!0,title:a,showTitle:!!a,listStyle:r,aspectRatioOfThumbnails:l}}},9254:function(e,t,n){n.d(t,{R:function(){return cvSection},T:function(){return cvSectionNewTextBlock}});var i=n(6676),a=n.n(i),r=n(2834);let o=[{alignment:"left",id:a()(),payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"Work experience"}]},{type:"table",content:[{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Beverly Home (2021—)"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Architect"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"AZ Architecture & Design (2019—2021)"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Junior Designer"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Schnell Architects (2018—19)"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Internship"}]}]}]}]}]}},{alignment:"left",id:a()(),payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"Education"}]},{type:"table",content:[{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Master’s degree"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"2018 - 19"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Bachelor’s degree"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"2014 - 19"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"High scool"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"2010 - 14"}]}]}]}]}]}},{alignment:"left",id:a()(),payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"Software"}]},{type:"table",content:[{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Revit"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Expert"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"ArchiCAD"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Intermediate"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Adobe Creative Suite"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Intermediate"}]}]}]}]}]}},{alignment:"left",id:a()(),payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"Skills"}]},{type:"table",content:[{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Passion for design"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"3D rendering"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Attention to detail"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Problem solving"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Critical thinking"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Project management"}]}]}]}]}]}}],l=[{alignment:"left",id:a()(),payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"Contact info"}]},{type:"table",content:[{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Name"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Jamie Wright"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Phone"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"+01 234 5678"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Email"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"jamie.wright@example.com"}]}]}]}]}]}},{alignment:"left",id:a()(),payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"Writing skills"}]},{type:"table",content:[{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Content writing"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Expert"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Advertising copywriting"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Intermediate"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"UX copy"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Intermediate"}]}]}]}]}]}},{alignment:"left",id:a()(),payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"Work experience"}]},{type:"table",content:[{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Advertising Company"}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"2018 - 2021 (lead copywriter)"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Copyfactory Inc."}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"2015 - 2018 (copywriter)"}]}]}]},{type:"tableRow",content:[{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"Copyfactory Inc."}]}]},{type:"tableCell",attrs:{colspan:1,rowspan:1,colwidth:null},content:[{type:"paragraph",content:[{type:"text",text:"2014 - 2015 (intern)"}]}]}]}]}]}},{alignment:"left",id:a()(),payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"Software & platforms"}]},{type:"bulletList",content:[{type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:"Mailchimp"}]}]},{type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:"WordPress"}]}]},{type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:"Canva"}]}]}]}]}}];function cvSection(e){let{textBlocks:t=r.Ab?o:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{version:1,pageId:e,type:"CV",textBlocks:t}}function cvSectionNewTextBlock(){return{alignment:"left",id:a()(),payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"This is your heading"}]},{type:"paragraph",attrs:{},content:[{type:"text",text:"You can write here as much as you want, this text will always look nice, whether you write longer paragraphs or just a few words. Click here and try it out."}]}]}}}},72085:function(e,t,n){n.d(t,{P:function(){return missingHeroSectionImages},u:function(){return heroSection}});var i=n(13877);function heroSection(e,t){let{textModule:n,foregroundImage:i=null,backgroundImage:a=null,images:r=null,title:o=null,alignment:l=null}=t;return{version:1,pageId:e,type:"HERO",textModule:n,textNodes:null,foregroundImage:i,backgroundImage:a,images:r,alignment:l,fontSizeMultiplication:!0,title:o}}function missingHeroSectionImages(e,t){let n=(0,i.Q)(e);return{...!t.foregroundImage&&{foregroundImage:n.foregroundImage},...!t.backgroundImage&&{backgroundImage:n.backgroundImage},...!t.images&&{images:n.images}}}},3547:function(e,t,n){function projectGridSection(e,t){let{contentAlignment:n="center",sizeOfThumbnails:i="large",showDescription:a=!0,labelPlacement:r="outside",aspectRatioOfImages:o="square",spacing:l="md",layoutType:s="grid",title:c}=t;return{version:1,pageId:e,type:"PROJECT_GRID",sizeOfThumbnails:i,showDescription:a,contentAlignment:n,labelPlacement:r,aspectRatioOfImages:o,spacing:l,layoutType:s,title:c,showTitle:!!c}}n.d(t,{D:function(){return i},p:function(){return projectGridSection}});let i={small:{vertical:3,square:2,horizontal:1},medium:{vertical:3,square:2,horizontal:2},large:{vertical:3,square:2,horizontal:2}}},12102:function(e,t,n){n.d(t,{i:function(){return servicesSection}});function servicesSection(e){let{columns:t=[{image:{type:"IMAGE",src:"/assets/media-examples/gallery-services-1.jpg",originalWidth:2076,originalHeight:2076},textNodes:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:"Your service"}]},{type:"paragraph",content:[{type:"text",text:"Write a few sentences about this service that you offer. Explain how it solves your visitor’s problem, reflect on their pain points."}]}]}}},{image:{type:"IMAGE",src:"/assets/media-examples/gallery-services-2.jpg",originalWidth:2076,originalHeight:2076},textNodes:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:"Your service"}]},{type:"paragraph",content:[{type:"text",text:"Write a few sentences about this service that you offer. Explain how it solves your visitor’s problem, reflect on their pain points."}]}]}}},{image:{type:"IMAGE",src:"/assets/media-examples/gallery-services-3.jpg",originalWidth:2076,originalHeight:2076},textNodes:{alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:3},content:[{type:"text",text:"Your service"}]},{type:"paragraph",content:[{type:"text",text:"Write a few sentences about this service that you offer. Explain how it solves your visitor’s problem, reflect on their pain points."}]}]}}}],hideImages:n=!1,aspectRatioOfImages:i="horizontal",title:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{version:1,pageId:e,type:"SERVICES",columns:t,hideImages:n,aspectRatioOfImages:i,title:a,showTitle:!!a,showBackground:!1,textAlignment:"left"}}},75925:function(e,t,n){n.d(t,{d:function(){return smartSection}});var i=n(11988);function smartSection(e){let{modules:t=[(0,i.D)()],alignment:n={horizontal:"center"}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{version:1,type:"SMART",pageId:e,alignment:n,modules:t}}},26202:function(e,t,n){n.d(t,{j:function(){return subheadingSection}});var i=n(23551),a=n(11988);let defaultSubheadingSectionPayload=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"left";return{alignment:e,payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"Your title will be amazing"}]}]}}};function subheadingSection(e){var t,n;let{textModule:r,backgroundImage:o=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"BILLBOARD";return{version:1,pageId:e,type:"SUBHEADING",backgroundImage:o,textModule:null!=r?r:(0,a.D)({content:defaultSubheadingSectionPayload(null!==(n=null===(t=i.D3[l].defaultAlignment)||void 0===t?void 0:t.title)&&void 0!==n?n:"left"),extension:null})}}},58975:function(e,t,n){n.d(t,{z:function(){return textAroundMediaSection}});function textAroundMediaSection(e){let{textNodes:t={alignment:"left",payload:{type:"doc",content:[{type:"heading",attrs:{level:2},content:[{type:"text",text:"This is your heading"}]},{type:"paragraph",content:[{type:"text",text:"You can write here as much as you want, this text will always look nice, whether you write longer paragraphs or just a few words. Click here and try it out."}]}]}},media:n=null,reverse:i=!1,button:a=null,sizeOfImages:r="medium",aspectRatioOfImages:o="original",sizeOfGap:l="md",title:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{version:1,pageId:e,type:"TEXT_AROUND_MEDIA",textNodes:t,media:n,reverse:i,button:a,sizeOfImages:r,aspectRatioOfImages:o,sizeOfGap:l,title:s,showTitle:!!s}}},14846:function(e,t,n){n.d(t,{L:function(){return defaultSocials}});var i=n(2834),a=n(42374);function defaultSocials(){return i.Ab?[{name:"Instagram",link:a.XU.Instagram.hint},{name:"LinkedIn",link:a.XU.LinkedIn.hint},{name:"Issuu",link:a.XU.Issuu.hint}]:[{name:"Instagram",link:a.m4.Instagram.hint},{name:"TikTok",link:a.m4.TikTok.hint},{name:"LinkedIn",link:a.m4.LinkedIn.hint}]}},4288:function(e,t,n){n.d(t,{K:function(){return a}});var i=n(37927);let a=[{component:i.Thumbnails.Art,name:"ART",displayName:"Art"},{component:i.Thumbnails.Beauty,name:"BEAUTY",displayName:"Beauty"},{component:i.Thumbnails.BrowserLink,name:"BROWSER_LINK",displayName:"Browser link"},{component:i.Thumbnails.Business,name:"BUSINESS",displayName:"Business"},{component:i.Thumbnails.Cars,name:"CARS",displayName:"Cars"},{component:i.Thumbnails.Certification,name:"CERTIFICATION",displayName:"Certification"},{component:i.Thumbnails.Cinema,name:"CINEMA",displayName:"Cinema"},{component:i.Thumbnails.CvAndResume,name:"CV_AND_RESUME",displayName:"CV & Resume"},{component:i.Thumbnails.Education,name:"EDUCATION",displayName:"Education"},{component:i.Thumbnails.FamilyAndKids,name:"FAMILY_AND_KIDS",displayName:"Family & kids"},{component:i.Thumbnails.Finance,name:"FINANCE",displayName:"Finance"},{component:i.Thumbnails.Food,name:"FOOD",displayName:"Food"},{component:i.Thumbnails.Interviews,name:"INTERVIEWS",displayName:"Interviews"},{component:i.Thumbnails.Laptop,name:"LAPTOP",displayName:"Laptop"},{component:i.Thumbnails.Law,name:"LAW",displayName:"Law"},{component:i.Thumbnails.Marketing,name:"MARKETING",displayName:"Marketing"},{component:i.Thumbnails.Music,name:"MUSIC",displayName:"Music"},{component:i.Thumbnails.Nature,name:"NATURE",displayName:"Nature"},{component:i.Thumbnails.PdfFile,name:"PDF_FILE",displayName:"PDF file"},{component:i.Thumbnails.Phone,name:"PHONE",displayName:"Phone"},{component:i.Thumbnails.Photography,name:"PHOTOGRAPHY",displayName:"Photography"},{component:i.Thumbnails.Politics,name:"POLITICS",displayName:"Politics"},{component:i.Thumbnails.RealEstate,name:"REAL_ESTATE",displayName:"Real estate"},{component:i.Thumbnails.Relationships,name:"RELATIONSHIPS",displayName:"Relationships"},{component:i.Thumbnails.SportsAndFitness,name:"SPORTS_AND_FITNESS",displayName:"Sports & fitness"},{component:i.Thumbnails.Television,name:"TELEVISION",displayName:"Television"},{component:i.Thumbnails.TravelAndTourism,name:"TRAVEL_AND_TOURISM",displayName:"Travel & Tourism"},{component:i.Thumbnails.Writing,name:"WRITING",displayName:"Writing"}]},83978:function(e,t,n){function tiptapDoc(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return{type:"doc",content:t}}function tiptapHeading(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return{type:"heading",attrs:{level:t},content:[{type:"text",text:e}]}}function tiptapParagraph(e){return{type:"paragraph",content:[{type:"text",text:e}]}}n.d(t,{FI:function(){return tiptapParagraph},UZ:function(){return tiptapDoc},s_:function(){return tiptapHeading}})},44102:function(e,t,n){n.d(t,{k:function(){return i}});let i={url:"https://www.youtube.com/watch?v=V_9vW4uJbe0"}},60670:function(e,t,n){n.d(t,{KA:function(){return l}});var i=n(30195);let a=i.z.object({id:i.z.string(),content:i.z.string().min(1),coordinates:i.z.object({x:i.z.number(),y:i.z.number()})}),r=i.z.enum(["BILLBOARD","LAPTOP","MAGAZINE","PHONE","TV"]),o=i.z.object({src:i.z.string(),top:i.z.number().int(),left:i.z.number().int(),width:i.z.number().int(),height:i.z.number().int(),shape:i.z.enum(["rect","round"]).optional()}),l=i.z.object({src:i.z.string(),originalWidth:i.z.number().int().positive(),originalHeight:i.z.number().int().positive(),preferredSize:i.z.enum(["sm","md","lg"]).optional(),mockup:r.optional(),caption:i.z.string().optional(),altText:i.z.string().max(140).optional(),crop:o.optional(),blurHash:i.z.string().optional(),pins:i.z.array(a).max(3).default([]).optional()})},92529:function(e,t,n){n.d(t,{Z:function(){return r},s:function(){return a}});var i=n(30195);let a=i.z.string().transform(e=>i.z.string().url().safeParse(e).success?e:"http://".concat(e)).refine(e=>i.z.string().url().safeParse(e).success,{message:"We’ll need a valid URL here."}),r=i.z.string().transform(e=>i.z.string().email().safeParse(e).success?"mailto:".concat(e):i.z.string().url().safeParse(e).success?e:"http://".concat(e)).refine(e=>i.z.string().url().safeParse(e).success,{message:"We’ll need a valid URL or email address here."})},71218:function(e,t,n){n.d(t,{s:function(){return InsertBlockButton}});var i=n(52322),a=n(75746),r=n(17949),o=n(2784),l=n(52855),s=n(39637),c=n(23095),d=n(31746),u=n(19518),p=n(6676),h=n.n(p),g=n(3949),m=n(83978);let f="You can write here as much as you want, this text will always look nice, whether you write longer paragraphs or just a few words. Click here and try it out.",x=[{id:h()(),image:g.C_[0],text:{alignment:"left",payload:(0,m.UZ)((0,m.FI)(f))}},{id:h()(),image:{...g.C_[1]},text:{alignment:"left",payload:(0,m.UZ)((0,m.FI)(f))}}];function columnsBlock(){let{showImages:e=!1,columns:t=x}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:h()(),type:"COLUMNS",showImages:e,columns:t}}var y=n(14846);function buttonBlock(){let{content:e={label:"Click here",action:"NAVIGATE_TO_INTERNAL_PAGE",actionValue:""}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"EXTENSION",id:h()(),content:e,alignment:"left"}}function socialsBlock(){let{content:e=(0,y.L)()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"EXTENSION",id:h()(),alignment:"left",content:e}}function galleryBlock(){let{images:e=g.C_,aspectRatio:t="square"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"GALLERY",id:h()(),images:e,aspectRatio:t}}function imageBlock(){let{preferredSize:e="md",originalHeight:t=g.C_[0].originalHeight,originalWidth:n=g.C_[0].originalWidth,src:i=g.C_[0].src,...a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:h()(),type:"IMAGE",preferredSize:e,originalHeight:t,originalWidth:n,src:i,...a}}function spacerBlock(){return{id:h()(),type:"SPACER"}}var v=n(33897);let b={id:h()(),payload:(0,m.UZ)((0,m.FI)("You can write here as much as you want, this text will always look nice, whether you write longer paragraphs or just a few words. Click here and try it out."))};function textWithImageBlock(){let{id:e=h()(),image:t={...g.C_[0],preferredSize:"md"},text:n=b,reverse:i=!1,alignment:a="middle"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:e,type:"TEXT_WITH_IMAGE",image:t,text:n,reverse:i,alignment:a}}var w=n(44102);function videoBlock(){let{preferredSize:e="md",url:t=w.k.url,caption:n=w.k.caption,loop:i=w.k.loop,muted:a=w.k.muted}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:h()(),type:"VIDEO",preferredSize:e,url:t,caption:n,loop:i,muted:a}}function AddBlockPopover(e){let{onClose:t,onInsert:n}=e,AddBlockCard=e=>{let{Icon:a,label:r,createFn:o}=e;return(0,i.jsx)(d.o,{leading:(0,i.jsx)(a,{className:"h-6 w-6 text-graphite-20"}),onClick:()=>{n(o()),t()},children:r})};return(0,i.jsx)(a.h_,{children:(0,i.jsxs)(a.VY,{avoidCollisions:!0,className:"pointer-events-auto",onMouseDown:e=>e.preventDefault(),children:[(0,i.jsx)("div",{className:"min-w-[500px] animate-slide-down space-y-6 rounded-lg bg-graphite-0 text-left shadow-soft-xl ring-1 ring-graphite-5",children:(0,i.jsx)(u.Zr.Root,{title:"Add new block",onClose:t,children:(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-3 py-px",children:[(0,i.jsx)(AddBlockCard,{label:"Text",createFn:v.$,Icon:c.IconTextLeft}),(0,i.jsx)(AddBlockCard,{label:"Text with image",createFn:textWithImageBlock,Icon:l.TL}),(0,i.jsx)(AddBlockCard,{label:"Text columns",createFn:columnsBlock,Icon:l.fS}),(0,i.jsx)(AddBlockCard,{label:"Image cards",createFn:()=>columnsBlock({showImages:!0}),Icon:l.h$}),(0,i.jsx)(AddBlockCard,{label:"Image",createFn:imageBlock,Icon:l.pl}),(0,i.jsx)(AddBlockCard,{label:"Image gallery",createFn:galleryBlock,Icon:l.TM}),(0,i.jsx)(AddBlockCard,{label:"Button",createFn:buttonBlock,Icon:l.zx}),(0,i.jsx)(AddBlockCard,{label:"Spacer",createFn:spacerBlock,Icon:l.LZ}),(0,i.jsx)(AddBlockCard,{label:"Video",createFn:videoBlock,Icon:l.nk}),(0,i.jsx)(AddBlockCard,{label:"Social icons",createFn:socialsBlock,Icon:l.pM})]})})}),(0,i.jsx)(a.Eh,{className:"h-2 w-4 animate-slide-up fill-graphite-0"})]})})}function InsertBlockButton(e){let{onInsert:t,placement:n,showLine:c,className:d}=e,[u,p]=o.useState(!1);return(0,i.jsxs)(a.fC,{modal:!0,open:u,onOpenChange:e=>p(e),children:[(0,i.jsxs)(a.xz,{onClick:e=>{e.preventDefault(),c&&p(!0)},className:(0,r.Z)("pointer-events-auto absolute inset-x-0 -mt-2 py-2",{"top-0":"top"===n,"top-full":"bottom"===n},d,u&&"!opacity-100"),children:[c&&(0,i.jsx)("div",{className:"absolute inset-x-0 top-1/2 h-px -translate-y-1/2 bg-custom-bg-8 text-graphite-100 dark:bg-custom-bg-16 dark:text-graphite-0"}),(0,i.jsx)(s.a,{size:"xxs",variant:"subtle",align:"center",side:"center",as:"span",onClick:()=>p(!0),children:(0,i.jsx)(l.ZC,{className:"size-5"})})]}),(0,i.jsx)(AddBlockPopover,{onClose:()=>p(!1),onInsert:t})]})}},45886:function(e,t,n){n.d(t,{n:function(){return ColumnsBlockLayout}});var i=n(52322);function ColumnsBlockLayout(e){let{block:{columns:t,showImages:n},Image:a,Text:r}=e;return(0,i.jsx)("div",{className:"grid grid-cols-1 gap-6 @tablet:grid-cols-2 @tablet:gap-8 @laptop:gap-12",children:t.map((e,t)=>(0,i.jsxs)("div",{className:"space-y-6",children:[n&&e.image&&(0,i.jsx)("div",{className:"w-full",children:a(e.image,t)}),(0,i.jsx)("div",{className:"w-full",children:r(e.text,t)})]},e.id))})}},21098:function(e,t,n){n.d(t,{b:function(){return GalleryBlockLayout}});var i=n(52322);function GalleryBlockLayout(e){let{block:t,Image:n}=e;return(0,i.jsx)("div",{className:"grid grid-cols-2 gap-4 @tablet:gap-8 @laptop:gap-12",children:t.images.map((e,t)=>(0,i.jsx)("div",{className:"relative",children:n(e,t)},e.src+t))})}},15668:function(e,t,n){n.d(t,{j:function(){return TextWithImageBlockLayout}});var i=n(52322),a=n(17949);function TextWithImageBlockLayout(e){let{block:t,Text:n,Image:r}=e,{alignment:o,image:l,text:s,reverse:c}=t;return(0,i.jsxs)("div",{className:(0,a.Z)("grid grid-cols-1 grid-rows-1 gap-6 @tablet:grid-cols-2 @tablet:gap-8 @laptop:gap-12",c&&"flex-row-reverse",{"items-start":"top"===o,"items-center":"middle"===o,"items-end":"bottom"===o}),children:[(0,i.jsx)("div",{className:(0,a.Z)("col-span-1 col-start-1 row-start-1 w-full flex-1",c&&"col-start-2"),children:r(l)}),(0,i.jsx)("div",{className:(0,a.Z)("col-span-1 col-start-2 row-start-1 w-full flex-1",c&&"col-start-1"),children:n(s)})]})}},37053:function(e,t,n){n.d(t,{x:function(){return BlockContentView}});var i=n(52322);n(2784);var a=n(81654),r=n(94309),o=n(3949),l=n(45886),s=n(72773),c=n(46468),d=n(10730),u=n(84830),p=n(4347),h=n(21098),g=n(25181),m=n(15668),f=n(38261);let x={TEXT:function(e){let{content:t}=e;return(0,i.jsx)(r.iV,{textNodes:t})},IMAGE:function(e){return(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)(a.n,{...(0,o.pb)(e)})})},VIDEO:function(e){return(0,i.jsx)(f.L,{...e})},GALLERY:function(e){let{showImages:t}=(0,p.zG)();return(0,i.jsx)(h.b,{block:e,Image:(n,r)=>(0,i.jsx)(a.n,{...(0,o.pb)(n),captionEnabled:!0,tight:!0,crop:"original"===e.aspectRatio?n.crop:(0,u.ET)(n,e.aspectRatio),onClick:()=>{null==t||t(e.images.map(e=>({...e,type:"IMAGE"})),r)}})})},EXTENSION:function(e){let{content:t,alignment:n}=e;return Array.isArray(t)?(0,i.jsx)(c.E,{socials:t,alignment:n}):(0,i.jsx)(d.X,{alignment:null!=n?n:"left",children:(0,i.jsx)(s.r,{value:t})})},TEXT_WITH_IMAGE:function(e){let{showImages:t}=(0,p.zG)();return(0,i.jsx)(m.j,{block:e,Image:n=>(0,i.jsx)(a.n,{...(0,o.pb)(n),className:"cursor-pointer",onClick:()=>t([{...e.image,type:"IMAGE"}],0)}),Text:e=>(0,i.jsx)(r.iV,{textNodes:e})})},COLUMNS:function(e){return(0,i.jsx)(l.n,{block:e,Text:e=>(0,i.jsx)(r.iV,{textNodes:e}),Image:e=>(0,i.jsx)(a.n,{...(0,o.pb)(e)})})},SPACER:g.m};function BlockContentView(e){let{blocks:t,components:n,wrapper:a}=e,r={...x,...n};return(0,i.jsx)(i.Fragment,{children:t.map(e=>{let t=r[e.type];return t?a?(0,i.jsx)(a,{block:e,children:(0,i.jsx)(t,{...e})},e.id):(0,i.jsx)(t,{...e}):null})})}},25181:function(e,t,n){n.d(t,{m:function(){return SpacerBlockView}});var i=n(52322);function SpacerBlockView(e){let{id:t}=e;return(0,i.jsx)("div",{className:"h-12"},t)}},39637:function(e,t,n){n.d(t,{a:function(){return FloatingActionButton}});var i=n(52322),a=n(17949);function FloatingActionButton(e){let{className:t,side:n,align:r,variant:o,size:l,as:s="button",...c}=e;return(0,i.jsx)(s,{...c,className:(0,a.Z)("absolute flex size-11 items-center justify-center rounded bg-graphite-100 text-graphite-0 dark:bg-graphite-0 dark:text-graphite-100",{"size-8":"sm"===l,"size-6":"xs"===l,"size-5":"xxs"===l},{"left-0 -translate-x-1/2":"left"===n,"right-0 translate-x-1/2":"right"===n,"top-0 -translate-y-1/2":"top"===n,"bottom-0 translate-y-1/2":"bottom"===n,"top-1/2 -translate-y-1/2":"center"===n},{"top-0 -translate-y-1/2":"start"===r&&("left"===n||"right"===n),"top-1/2 -translate-y-1/2":"center"===r&&("left"===n||"right"===n||"center"===n),"top-full -translate-y-1/2":"end"===r&&("left"===n||"right"===n)},{"left-0 -translate-x-1/2":"start"===r&&("top"===n||"bottom"===n),"left-1/2 -translate-x-1/2":"center"===r&&("top"===n||"bottom"===n||"center"===n),"left-full -translate-x-1/2":"end"===r&&("top"===n||"bottom"===n)},"subtle"===o&&["bg-custom-bg-8 text-graphite-100 hover:bg-custom-bg-24 hover:ring-custom-bg-32 dark:bg-custom-bg-16 dark:text-graphite-0 dark:hover:bg-custom-bg-32"],t)})}},6958:function(e,t,n){n.d(t,{P:function(){return PageOptionsBar}});var i=n(52322),a=n(17949),r=n(23095),o=n(13867),l=n(39097),s=n.n(l),c=n(5632),d=n(2784),u=n(75443),p=n(52855),h=n(46653),g=n(982);function Dropdown(e){return(0,i.jsx)(h.h_,{...e})}Dropdown.Item=function(e){let{status:t,icon:n,intent:r="neutral",children:o,...l}=e;return(0,i.jsxs)(h.Xi,{className:(0,a.Z)("flex cursor-pointer items-center space-x-3 bg-graphite-0 text-base font-normal outline-none","danger"===r?"text-crimson-40 hover:bg-crimson-0":"text-graphite-60 hover:bg-graphite-5","min-h-[44px] rounded-sm px-4"),...l,children:[n&&(0,i.jsx)("span",{className:(0,a.Z)({"text-crimson-40":"danger"===r,"text-graphite-20":"neutral"===r}),children:n}),(0,i.jsx)("span",{className:"flex-1",children:o}),"warning"===t&&(0,i.jsx)("div",{className:"h-2 w-2 rounded-full bg-amber-40 outline outline-4 outline-offset-0 outline-amber-5"})]})},Dropdown.Trigger=function(e){let{children:t,...n}=e;return(0,i.jsx)(h.xz,{...n,children:t})},Dropdown.Content=function(e){var t;return(0,i.jsx)(h.Uv,{container:(0,g.d)(),children:(0,i.jsx)(h.VY,{sideOffset:12,onCloseAutoFocus:e=>e.preventDefault(),align:null!==(t=e.align)&&void 0!==t?t:"start",...e,className:(0,a.Z)("relative z-popover animate-slide-down rounded-lg",e.className),children:(0,i.jsx)("div",{className:"min-w-[220px] rounded bg-graphite-0 p-1 shadow-soft-2xl ring-1 ring-inset ring-graphite-5",children:e.children})})})},Dropdown.Separator=function(){return(0,i.jsx)(h.Z0,{children:(0,i.jsx)("div",{className:"-mx-1 flex h-[9px] items-center justify-center py-1",children:(0,i.jsx)("span",{className:"h-px w-full bg-graphite-10"})})})};var m=n(93556);let f=d.forwardRef((e,t)=>{let{status:n,open:r,label:o,variants:l}=e;return(0,i.jsxs)("span",{className:(0,a.Z)("relative inline-flex h-8 min-w-[2rem] cursor-pointer items-center rounded px-2 text-xs font-semibold","published"===n?"bg-graphite-0 text-graphite-100":"bg-amber-60 text-graphite-0",r?"shadow-soft-lg":"shadow-hard-md hover:shadow-soft-lg"),children:["published"===n&&(0,i.jsx)(p.Jr,{"aria-hidden":!0,className:"h-4 w-4 text-emerald-60"}),"draft"===n&&(0,i.jsx)(p._j,{"aria-hidden":!0,className:"h-4 w-4 text-graphite-0"}),"scheduled"===n&&(0,i.jsx)(p.SU,{"aria-hidden":!0,className:"h-4 w-4 text-graphite-0"}),(0,i.jsxs)(m.m.span,{ref:t,variants:l,role:"button",className:"inline-flex items-center",children:[(0,i.jsxs)("span",{className:"whitespace-nowrap pl-1.5 pr-0.5",children:["published"===n?"Public":"draft"===n?"Draft":"Scheduled"," ",o]}),(0,i.jsx)(p._M,{"aria-hidden":!0,className:(0,a.Z)("h-4",r&&"rotate-180")})]})]})}),x=d.forwardRef(function(e,t){let{children:n,...a}=e;return(0,i.jsx)(o.T,{ref:t,shape:"rounded-rectangle",size:"xs",className:"flex items-center gap-1 bg-graphite-0 px-2 font-semibold normal-case text-graphite-100 shadow-hard-lg hover:bg-graphite-0 hover:shadow-soft-xl",...a,children:n})});function PageOptionsBar(e){let{id:t,section:n,page:o,site:l,onSeo:h,onCrop:g,onEdit:m,onRemove:y,onSchedule:v,onToggleStatus:b,onEditCategories:w,onChangeThumbnail:j}=e,[I,k]=(0,d.useState)(!1),[S,C]=(0,d.useState)(!1),N=(0,c.useRouter)(),A=(0,u.D)(o),P=(0,u.r)(o);return(0,i.jsxs)("div",{id:t,className:"flex w-max items-center space-x-2",children:[(0,i.jsxs)(Dropdown,{onOpenChange:k,children:[(0,i.jsx)(Dropdown.Trigger,{children:(0,i.jsx)(f,{status:A,label:P,open:I})}),(0,i.jsxs)(Dropdown.Content,{align:"start",children:[(0,i.jsx)(Dropdown.Item,{status:o.published?void 0:"warning",onClick:b,icon:o.published?(0,i.jsx)(p.Br,{"aria-hidden":!0,className:"h-6"}):(0,i.jsx)(p._q,{"aria-hidden":!0,className:"h-6"}),children:o.published?"Revert to draft":"Set to public"}),"BLOG_POST"===o.type&&"published"!==A&&(0,i.jsxs)(Dropdown.Item,{onClick:v,icon:(0,i.jsx)(p.SU,{className:"h-6"}),children:["scheduled"===A?"Res":"S","chedule for later"]}),"page"===P&&["PROJECT_GRID","BLOG"].includes(n.type)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Dropdown.Separator,{}),(0,i.jsx)(Dropdown.Item,{onClick:()=>{let e="/".concat(o.slug);N.push(N.asPath+e)},icon:(0,i.jsx)(p.Gu,{className:"h-6"}),children:"Open page"})]})]})]}),(0,i.jsxs)(Dropdown,{modal:!1,onOpenChange:C,children:[(0,i.jsx)(Dropdown.Trigger,{asChild:!0,children:(0,i.jsxs)(x,{children:[(0,i.jsx)(p.Oz,{className:"h-4 w-4"}),(0,i.jsx)(p._M,{className:(0,a.Z)("h-4 w-4",S&&"rotate-180")})]})}),(0,i.jsxs)(Dropdown.Content,{children:[w&&(0,i.jsx)(Dropdown.Item,{onClick:w,icon:o.categories.length>0?(0,i.jsx)(p.WD,{className:"h-6"}):(0,i.jsx)(p.GL,{className:"h-6"}),children:o.categories.length>0?"Edit categories":"Add to category"}),"BLOG_POST"===o.type&&"published"===A&&(0,i.jsx)(Dropdown.Item,{onClick:v,icon:(0,i.jsx)(p.uj,{className:"h-6"}),children:"Change date"}),m&&("link"===P||"PDF"===P)&&("link"===P?(0,i.jsx)(Dropdown.Item,{onClick:m,icon:(0,i.jsx)(r.IconEditLink,{className:"h-6"}),children:"Edit link"}):(0,i.jsx)(Dropdown.Item,{onClick:m,icon:(0,i.jsx)(r.IconUploadPdf,{className:"h-6"}),children:"Change PDF file"})),h&&("page"===P||"BLOG_POST"===o.type)&&(0,i.jsx)(Dropdown.Item,{onClick:h,icon:(0,i.jsx)(p.pQ,{className:"h-6"}),children:"SEO settings"}),(j||g)&&(0,i.jsx)(Dropdown.Separator,{}),j&&(0,i.jsx)(Dropdown.Item,{onClick:j,icon:(0,i.jsx)(p.Aq,{className:"h-6"}),children:"Change thumbnail"}),g&&(0,i.jsx)(Dropdown.Item,{onClick:g,icon:(0,i.jsx)(p.oI,{className:"h-6"}),children:"Crop thumbnail"}),(0,i.jsx)(Dropdown.Separator,{}),(0,i.jsx)(Dropdown.Item,{onClick:y,icon:(0,i.jsx)(p.HG,{className:"h-6"}),intent:"danger",children:"Delete"})]})]}),"BLOG_POST"===o.type&&"simple-list"===n.layout&&(0,i.jsx)(s(),{href:{query:{slugs:[l.slug,o.slug]}},legacyBehavior:!0,children:(0,i.jsxs)(x,{children:[(0,i.jsx)(p.pn,{className:"h-4 w-4"}),"Open"]})})]})}},49178:function(e,t,n){n.d(t,{C:function(){return Editable},Y:function(){return useEditable}});var i=n(52322),a=n(23094),r=n(17949),o=n(13867),l=n(2784),s=n(52855),c=n(66379);let d=l.createContext({}),useEditable=()=>l.useContext(d),u=l.createContext(!1),useInsideEditableModule=()=>l.useContext(u);function EditableRoot(e){var t,n;let{id:o,children:s,className:c,onRemove:u,padding:p="md"}=e,h=(0,l.useRef)(null),g=null!==(n=null===(t=h.current)||void 0===t?void 0:t.querySelectorAll("[data-editable-module=true]").length)&&void 0!==n?n:0,[m,f]=(0,l.useState)(!1),{active:x}=(0,a.Cj)(),y=(0,l.useCallback)(e=>{if(!h.current)return;let t=h.current;if(e){var n;t=null!==(n=h.current.querySelector('[data-editable-module-id="'.concat(e,'"]')))&&void 0!==n?n:h.current}let i=null==t?void 0:t.querySelector("[data-editable-toolbar-edit]");null==i||i.click()},[]),v=(0,l.useCallback)(()=>{var e;if(u){u();return}let t=null===(e=h.current)||void 0===e?void 0:e.querySelector("[data-editable-toolbar-delete]");null==t||t.click()},[u]),b=(0,l.useCallback)(e=>{let t=e.target;("Escape"===e.key||"Tab"===e.key)&&t.blur()},[y,v]),w="object"==typeof p?p.x:p,j="object"==typeof p?p.y:p,I=(0,l.useMemo)(()=>({setPassive:f,openEditPanel:y,passive:m,element:h.current}),[y,m]);return(0,i.jsx)(d.Provider,{value:I,children:(0,i.jsx)("div",{ref:h,id:o?"editable_".concat(o):void 0,tabIndex:0,role:"button","data-editable-root":!0,"data-editable-keyboard-target":!0,onKeyDown:b,onBlur:()=>f(!1),className:(0,r.Z)("relative cursor-pointer focus-within:z-active-module focus:z-active-module focus:cursor-grab",x&&"cursor-grabbing bg-custom-bg",g?"group/editable-root":"group/editable","hover:ring-1 hover:ring-custom-bg-24","focus:outline-none focus:ring-2 focus:ring-graphite-100 focus:hover:ring-2 focus:hover:ring-graphite-100 dark:focus:ring-graphite-0 dark:focus:hover:ring-graphite-0","focus-within:cursor-auto",m?"focus-within:outline-dashed focus-within:outline-1 focus-within:outline-custom-bg-24 focus-within:hover:ring-0":"focus-within:ring-2 focus-within:ring-graphite-100 focus-within:hover:ring-2 focus-within:hover:ring-graphite-100 dark:focus-within:ring-graphite-0 dark:focus-within:hover:ring-graphite-0",{"-mx-6 px-6":"md"===w,"-my-6 py-6":"md"===j,"-mx-2 px-2":"xs"===w,"-my-2 py-2":"xs"===j},"none"!==w&&"none"!==j&&"rounded ring-inset",c),children:s})})}function EditableExtensionRow(e){let{children:t,className:n}=e,a=useInsideEditableModule(),{passive:o}=useEditable();return o&&!a?null:(0,i.jsx)("div",{className:(0,r.Z)("pointer-events-none absolute bottom-0 left-0 z-active-module flex w-full translate-y-full flex-wrap gap-2 pt-2 opacity-0 group-focus-within/editable:pointer-events-auto group-focus-within/editable:opacity-100","group-focus-within/editable-module:pointer-events-auto group-focus-within/editable-module:opacity-100",n),children:t})}function Editable(e){return(0,i.jsx)(EditableRoot,{...e})}EditableExtensionRow.Item=function(e){let{Icon:t,children:n,...a}=e;return(0,i.jsxs)(o.T,{adaptive:!0,as:"button",type:"button",size:"xs",noShadow:!0,shape:"rounded-rectangle",className:"inline-flex items-center gap-1",...a,children:[(0,i.jsx)(t,{"aria-hidden":!0,className:"h-4"}),n]})},Editable.Root=EditableRoot,Editable.Module=function(e){let{noRing:t,removable:n,className:o,...l}=e,{active:s}=(0,a.Cj)(),{setPassive:c}=useEditable();return(0,i.jsx)(u.Provider,{value:!0,children:(0,i.jsx)("div",{tabIndex:0,role:"button","data-editable-module":!0,onFocus:()=>{t||c(!0)},onBlur:()=>c(!1),className:(0,r.Z)("group/editable-module pointer-events-none relative -m-2 cursor-pointer rounded p-2 ring-inset ring-custom-bg-24",s&&"cursor-grabbing",!1===n&&"pointer-events-auto cursor-auto","group-focus-within/editable-root:pointer-events-auto group-focus-within/editable-root:cursor-auto",!s&&!t&&"hover:ring-1 focus:ring-2 focus:ring-graphite-100 dark:focus:ring-graphite-0",!t&&"group-focus-within/editable-root:focus-within:ring-2 group-focus-within/editable-root:focus-within:ring-graphite-100 group-focus-within/editable-root:focus-within:hover:ring-2 dark:group-focus-within/editable-root:focus-within:ring-graphite-0",o),...l})})},Editable.Toolbar=function(e){let{children:t,onEdit:n,onRemove:o,className:l}=e,{passive:d}=useEditable(),u=useInsideEditableModule(),{active:p}=(0,a.Cj)(),h=(n||o)&&(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)(c.o.Item,{tooltip:"Edit","data-editable-toolbar-edit":!0,onClick:n,icon:(0,i.jsx)(s.z,{className:"h-6 w-6"}),children:"Edit"}),n&&o&&(0,i.jsx)(c.o.Separator,{}),o&&(0,i.jsx)(c.o.Item,{tooltip:"Remove","data-editable-toolbar-delete":!0,onClick:o,intent:"danger",icon:(0,i.jsx)(s.HG,{className:"h-6 w-6"})})]});return(0,i.jsx)(c.o,{className:(0,r.Z)("pointer-events-none absolute -top-2 z-popover -m-6 -translate-y-full overflow-visible opacity-0",(p||d&&!u)&&"invisible",u?["group-focus-within/editable-module:pointer-events-auto group-focus-within/editable-module:opacity-100","group-focus/editable:pointer-events-none group-focus/editable:opacity-0"]:["group-focus-within/editable-root:pointer-events-auto group-focus-within/editable-root:opacity-100","group-focus-within/editable:pointer-events-auto group-focus-within/editable:opacity-100"],l),children:null!=t?t:h})},Editable.Overlay=function(e){let{children:t,trigger:n="hover"}=e,{passive:a}=useEditable();return(0,i.jsx)("div",{className:(0,r.Z)("pointer-events-none opacity-0",!a&&["group-focus-within/editable-root:pointer-events-auto group-focus-within/editable-root:opacity-100","group-focus-within/editable:pointer-events-auto group-focus-within/editable:opacity-100","hover"===n&&["group-hover/editable-root:pointer-events-auto group-hover/editable-root:opacity-100","group-hover/editable:pointer-events-auto group-hover/editable:opacity-100","group-focus-within/editable:group-hover/editable:pointer-events-none group-focus-within/editable:group-hover/editable:opacity-0","group-focus-within/editable-root:group-hover/editable-root:pointer-events-none group-focus-within/editable-root:group-hover/editable-root:opacity-0","group-focus-within/editable:pointer-events-none group-focus-within/editable:opacity-0","group-focus-within/editable-root:pointer-events-none group-focus-within/editable-root:opacity-0","focus-within:opacity-100 group-focus-within/editable:focus-within:opacity-100 group-focus-within/editable:group-hover/editable:focus-within:opacity-100","focus-within:opacity-100 group-focus-within/editable-root:focus-within:opacity-100 group-focus-within/editable-root:group-hover/editable-root:focus-within:opacity-100"]]),children:t})},Editable.ExtensionRow=EditableExtensionRow},10730:function(e,t,n){n.d(t,{X:function(){return Aligned}});var i=n(52322),a=n(17949);function Aligned(e){let{alignment:t,children:n}=e;return(0,i.jsx)("div",{className:(0,a.Z)("flex",{"justify-start":"left"===t,"justify-center":"center"===t,"justify-end":"right"===t}),children:n})}},8768:function(e,t,n){n.d(t,{Z:function(){return InstagramPostViewer},o:function(){return x}});var i=n(52322),a=n(47783),r=n.n(a),o=n(39479),l=n(23095),s=n(19841),c=n(2784);function createReactContext(e){let t=c.createContext(e);return[t,()=>c.useContext(t)]}var d=n(52855),u=n(17949);function UserButton(e){let{className:t,variant:n="transparent",size:a,...r}=e;return(0,i.jsx)("button",{type:"button",className:(0,u.Z)("flex items-center justify-center text-graphite-100/70 hover:text-graphite-100 disabled:text-graphite-100/20 dark:text-graphite-0/70 dark:hover:text-graphite-0 dark:disabled:text-graphite-0/20","filled"===n&&["rounded-full bg-[#000]/15 backdrop-blur-sm"],"sm"===a&&["size-8"],"md"===a&&["size-12"],t),...r})}var p=n(83972),h=n(47565);function VideoPlayer(e){let{src:t,alt:n,className:a,...r}=e,[o,l]=(0,c.useState)(!0),[s,p]=(0,c.useState)(!0),h=(0,c.useRef)(null),g=(0,c.useCallback)(()=>{var e,t;(null===(e=h.current)||void 0===e?void 0:e.paused)?(h.current.play(),l(!1)):(null===(t=h.current)||void 0===t||t.pause(),l(!0))},[]),m=(0,c.useCallback)(()=>{h.current&&(h.current.muted=!h.current.muted,p(h.current.muted))},[]),f=s?d.rO:d.I5;return(0,i.jsxs)("div",{className:(0,u.Z)("relative",a),children:[(0,i.jsx)("video",{ref:h,playsInline:!0,muted:!0,onClick:g,className:"h-full w-full origin-center object-contain",...r,children:(0,i.jsx)("source",{src:t})}),o&&(0,i.jsx)(d.sh,{onClick:g,className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 cursor-pointer"}),(0,i.jsx)(UserButton,{className:"absolute bottom-6 right-6",onClick:m,children:(0,i.jsx)(f,{className:"h-6 w-6 text-graphite-0"})})]})}let[g,m]=createReactContext();function CarouselDotStepper(){let{active:e,images:t,setActive:n,onStepperClick:a}=m();return t.length<2?null:(0,i.jsx)("div",{role:"radiogroup",className:"absolute bottom-6 left-1/2 flex -translate-x-1/2 items-center gap-[14px] rounded-full bg-graphite-100/25 p-3",children:null==t?void 0:t.map((t,r)=>(0,i.jsx)("div",{role:"radio",tabIndex:0,"aria-checked":e===r,onClick:()=>{n(r),null==a||a(r)},onKeyDown:e=>{(" "===e.key||"Enter"===e.key)&&(n(r),null==a||a(r))},className:"group/stepper-item flex size-2.5 cursor-pointer items-center justify-center",children:(0,i.jsx)("div",{className:"size-2 rounded-full bg-graphite-0/50 transition-all group-aria-checked/stepper-item:size-2.5 group-aria-checked/stepper-item:bg-graphite-0/75"})},t.src))})}function CarouselArrowSteppers(){let{active:e,images:t,setActive:n,onStepperClick:a}=m();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(UserButton,{variant:"filled",size:"sm",disabled:0===e,onClick:()=>{null==a||a(e-1),n(e-1)},className:"absolute left-6 top-1/2 -translate-y-1/2 text-graphite-0",children:(0,i.jsx)(l.IconChevronLeft,{className:"h-6"})}),(0,i.jsx)(UserButton,{variant:"filled",size:"sm",disabled:e===t.length-1,onClick:()=>{null==a||a(e+1),n(e+1)},className:"absolute right-6 top-1/2 -translate-y-1/2 text-graphite-0",children:(0,i.jsx)(l.IconChevronRight,{className:"h-6"})})]})}function Carousel(e){return(0,i.jsx)(Carousel.Root,{...e})}Carousel.Root=function(e){let{children:t,images:n}=e,a=(0,c.useRef)(!1),r=(0,c.useRef)(null),[o,l]=(0,c.useState)(0),s=(0,h.uw)(n,e=>e.src),d=(0,c.useCallback)(()=>{if(a.current||!r.current)return;let e=r.current,t=(0,p.s)([0,e.scrollWidth],[0,n.length]),i=Math.round(t(e.scrollLeft));l(i)},[n.length,l]),u=(0,c.useCallback)(e=>{var t;if(e<0||e>=s.length)return;a.current=!0;let{src:i}=n[e],o=null===(t=r.current)||void 0===t?void 0:t.querySelector('[src="'.concat(i,'"]'));null==o||o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{a.current=!1},500)},[n,s.length]),m=(0,c.useCallback)(e=>{"ArrowLeft"===e.key&&o>0&&(l(o-1),u(o-1)),"ArrowRight"===e.key&&o<s.length-1&&(l(o+1),u(o+1))},[o,u,s.length]);(0,c.useEffect)(()=>{var e;let t=r.current;return null==t||t.addEventListener("scroll",d),null===(e=document)||void 0===e||e.addEventListener("keydown",m),()=>{var e;null==t||t.removeEventListener("scroll",d),null===(e=document)||void 0===e||e.removeEventListener("keydown",m)}},[m,d]);let f=(0,c.useMemo)(()=>({active:o,images:s,setActive:l,scrollContainerRef:r,onStepperClick:u}),[o,u,s]);return(0,i.jsx)(g.Provider,{value:f,children:t})},Carousel.Canvas=function(e){let{showDotStepper:t=!0,showArrowSteppers:n=!0}=e,{images:a,active:r,scrollContainerRef:o}=m();return(0,i.jsxs)("div",{className:"relative w-full @laptop:h-full",children:[(0,i.jsx)("div",{ref:o,"data-carousel-scroll-container":!0,className:"relative flex h-full w-full snap-mandatory overflow-x-auto bg-[black] dark hide-scrollbar supports-[scroll-snap-type]:snap-x",children:a.map(e=>"VIDEO"===e.type?(0,i.jsx)(VideoPlayer,{src:e.src,alt:e.alt,poster:e.thumbnailSrc,className:"h-full min-w-full snap-start snap-always object-contain object-center"}):(0,i.jsx)("img",{...e,src:e.src,alt:e.alt,className:"h-full min-w-full snap-start snap-always object-contain object-center"},e.src))}),t&&(0,i.jsx)(CarouselDotStepper,{}),n&&a.length>1&&(0,i.jsx)(CarouselArrowSteppers,{},r)]})},Carousel.Stepper=function(e){let{direction:t,asChild:n,children:a,disabled:r}=e,{images:o,active:l,onStepperClick:s}=m(),d=0===l,u=l===o.length-1,p=d&&"left"===t||u&&"right"===t,h=p||r,g=(0,c.useCallback)(()=>{let e="left"===t?l-1:l+1;null==s||s(e)},[l,t,s]),f=c.Children.only(a);return f?n&&c.isValidElement(f)?c.cloneElement(f,{disabled:h,onClick:g}):(0,i.jsx)("button",{type:"button",disabled:h,"data-disabled":h,onClick:g,children:f}):null};let[f,x]=createReactContext();function InstagramCaption(e){let{caption:t}=e;return t?t.split("\n").map(e=>(0,i.jsxs)("p",{className:r().className,children:[e.split(" ").map(t=>{if(t.startsWith("#")){let n=t.slice(1);return(0,i.jsxs)("span",{children:[(0,i.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.instagram.com/explore/tags/".concat(n),className:"text-[#3070D3] dark:text-[#B2DBFC]","aria-label":"Explore ".concat(t," on Instagram in a new tab"),children:t})," "]},"".concat(e,"-").concat(t))}return(0,i.jsxs)("span",{children:[t," "]},"".concat(e,"-").concat(t))}),(0,i.jsx)("br",{})]},e)):null}function InstagramPostViewerDialogSidebar(){let{accountId:e,post:t,openOnInstagram:n,posts:a=[],viewPost:r}=x(),{data:c}=(0,s.y1)(e),u=a.findIndex(e=>e.id===(null==t?void 0:t.id)),p=u-1,h=u+1;return c&&t?(0,i.jsxs)("div",{className:"relative flex h-full max-h-[30vh] flex-col flex-nowrap bg-graphite-0 hide-scrollbar @tablet:min-h-max @laptop:h-full @laptop:max-h-[unset] @laptop:w-[420px] dark:bg-graphite-100 dark:text-graphite-0",children:[(0,i.jsxs)("div",{className:"h-full flex-1 space-y-4 overflow-y-auto p-8",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)("div",{className:"relative flex size-[34px] items-center justify-center overflow-hidden rounded-full ring-1 ring-inset ring-graphite-5",children:(0,i.jsx)("img",{className:"absolute inset-0 object-cover object-center",src:c.profile_picture_url,alt:c.username})}),(0,i.jsx)("a",{href:"https://instagram.com/".concat(c.username),target:"_blank",rel:"noopener noreferrer",className:"font-semibold",children:c.username})]}),(0,i.jsx)(o.x8,{asChild:!0,className:"hidden @laptop:flex",children:(0,i.jsx)(UserButton,{size:"md",children:(0,i.jsx)(l.IconX,{className:"h-6 w-6"})})})]}),(0,i.jsx)("section",{children:(0,i.jsx)(InstagramCaption,{caption:t.caption})})]}),(0,i.jsxs)("div",{className:"z-10 flex items-center justify-between border-t border-t-graphite-10 bg-graphite-0 py-4 pl-5 pr-8 dark:border-t-graphite-90 dark:bg-graphite-100 dark:text-graphite-0",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(UserButton,{size:"md",disabled:p<0,onClick:()=>{let e=a[p];r(e)},children:(0,i.jsx)(l.IconArrowLeft,{className:"h-6"})}),(0,i.jsx)(UserButton,{size:"md",disabled:0===h||h>a.length-1,onClick:()=>{let e=a[h];r(e)},children:(0,i.jsx)(d.ol,{className:"h-6"})})]}),n&&(0,i.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:t.permalink,"aria-label":"Open post on Instagram in a new tab",children:(0,i.jsxs)(UserButton,{className:"flex items-center text-graphite-100/70 hover:text-graphite-100 dark:text-graphite-0/70 hover:dark:text-graphite-0",children:[(0,i.jsx)("span",{className:"flex size-12 items-center justify-center",children:(0,i.jsx)(l.IconOpen,{className:"h-6"})}),(0,i.jsx)("span",{className:"whitespace-nowrap",children:"Open on Instagram"})]})})]})]}):null}function InstagramPostViewerDialog(){var e;let{accountId:t,post:n,close:a}=x(),{data:r}=(0,s.y1)(t),{data:c=[]}=(0,s.uf)(t,null!==(e=null==n?void 0:n.id)&&void 0!==e?e:"");if(!n||!r)return null;let d="CAROUSEL_ALBUM"===n.media_type?c:[n],u=d.map(e=>"VIDEO"===e.media_type?{type:"VIDEO",src:e.media_url,alt:e.caption,thumbnailSrc:e.thumbnail_url}:{type:"IMAGE",src:e.media_url,alt:e.caption}),p="".concat(r.username,"'s Instagram post");return(0,i.jsx)(o.fC,{open:!!n,onOpenChange:e=>{e||a()},children:(0,i.jsxs)(o.h_,{forceMount:!0,children:[(0,i.jsx)(o.aV,{className:"fixed inset-0 z-dialog bg-darken-strong"}),(0,i.jsx)(o.Dx,{className:"sr-only",title:p,children:p}),(0,i.jsx)(Carousel.Root,{images:u,children:(0,i.jsx)("div",{className:"fixed inset-0 z-dialog @container",children:(0,i.jsx)(o.VY,{forceMount:!0,onClick:a,className:"absolute inset-0 flex items-center justify-center px-6 py-14 tablet:px-12 tablet:py-20 laptop:px-32 laptop:py-18",children:(0,i.jsxs)("div",{role:"presentation",onClick:e=>e.stopPropagation(),className:"flex h-full w-full flex-col flex-nowrap overflow-hidden rounded-lg @laptop:flex-row",children:[(0,i.jsxs)("div",{className:"relative flex flex-auto overflow-hidden @laptop:flex-1",children:[(0,i.jsx)(o.x8,{className:"absolute right-4 top-4 z-10 @laptop:hidden",children:(0,i.jsx)(UserButton,{size:"sm",variant:"filled",children:(0,i.jsx)(l.IconX,{className:"h-6 w-6 text-graphite-0"})})}),(0,i.jsx)(Carousel.Canvas,{})]}),(0,i.jsx)(InstagramPostViewerDialogSidebar,{})]})})})})]})})}function InstagramPostViewer(e){let{children:t,accountId:n,openOnInstagram:a,posts:r}=e,[o,l]=(0,c.useState)(null),s=(0,c.useMemo)(()=>({viewPost:l,post:o,accountId:n,close:()=>l(null),openOnInstagram:a,posts:r}),[n,a,o,r]);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(f.Provider,{value:s,children:[t,o&&(0,i.jsx)(InstagramPostViewerDialog,{})]})})}},43569:function(e,t,n){n.d(t,{Cj:function(){return useDndContext},RH:function(){return u},bt:function(){return Sortable}});var i=n(52322),a=n(23094),r=n(66548),o=n(82851),l=n(17949),s=n(84834),c=n(65058),d=n(752);let u=(0,c.cn)(!0);function useDndContext(){let e=(0,a.Cj)(),[,t]=(0,d.KO)(u);return{...e,ignoreListeners:{onFocus:()=>t(!1),onBlur:()=>t(!0)}}}function SortableRoot(e){let{items:t,children:n,onDragEnd:o,method:l="move",disabled:c,...d}=e,u=(0,a.Dy)((0,a.VT)(a.MA,{activationConstraint:{distance:5}})),p=(0,s.G)("not screen, (min-width: 1024px)");return!p||c?n:(0,i.jsx)(a.LB,{...d,onDragStart:e=>{var t,n;null===(t=document.activeElement)||void 0===t||t.blur(),null===(n=d.onDragStart)||void 0===n||n.call(d,e)},onDragEnd:e=>{if(!o)return;let{over:n,active:i}=e;if(!n||!i||i.id===n.id)return;let a=t.findIndex(e=>e.id===i.id),s=t.findIndex(e=>e.id===n.id);if("swap"===l){let n=[...t];n[a]=t[s],n[s]=t[a],o(e,n)}if("move"===l){let n=(0,r.Rp)(t,a,s);o(e,n)}},sensors:u,collisionDetection:a.pE,children:(0,i.jsx)(r.Fo,{items:t,children:n})})}function Sortable(e){return(0,i.jsx)(SortableRoot,{...e})}Sortable.Root=SortableRoot,Sortable.Item=function(e){let{id:t,children:n,disabled:s,overClassname:c,autoSort:p,...h}=e,g=p?r.nB:a.O1,[m]=(0,d.KO)(u),{attributes:f,setNodeRef:x,listeners:y,active:v,over:b,isDragging:w,transform:j}=g({id:t,data:{autoSort:p},disabled:!m||s}),I={transform:o.ux.Translate.toString(j)};return(0,i.jsx)("div",{...h,style:I,ref:x,...y,...f,"aria-describedby":void 0,className:(0,l.Z)("relative cursor-auto",h.className,w&&"z-20 shadow-soft-lg",(null==b?void 0:b.id)==="dz-swap"&&(null==v?void 0:v.id)!==t&&c),children:n})},Sortable.Dropzone=function(e){var t,n,r,o;let{id:s,data:c,...d}=e,{setNodeRef:u,isOver:p,active:h}=(0,a.Zj)({id:s,data:c});if(!h)return null;let g={height:(null===(t=h.data.current)||void 0===t?void 0:t.autoSort)?void 0:null!==(o=null==h?void 0:null===(r=h.rect.current)||void 0===r?void 0:null===(n=r.initial)||void 0===n?void 0:n.height)&&void 0!==o?o:0};return(0,i.jsx)("div",{...d,ref:u,style:g,className:(0,l.Z)(p&&"rounded bg-custom-bg-8 ring-1 ring-custom-bg-16",d.className)})}},66379:function(e,t,n){n.d(t,{o:function(){return Toolbar}});var i=n(52322),a=n(75746),r=n(99038),o=n(17949),l=n(11289),s=n(2784),c=n(52855);function Toolbar(e){return 0===s.Children.count(e.children)?null:(0,i.jsx)(r.o8,{...e,className:(0,o.Z)("relative flex w-max items-stretch justify-center gap-1 overflow-hidden rounded bg-graphite-0 p-1 shadow-soft-md ring-1 ring-graphite-5",e.className)})}let d=s.forwardRef((e,t)=>{let{children:n,icon:a,tooltip:s,tooltipPlacement:c="top",intent:d="neutral",...u}=e;return(0,i.jsx)(l.u,{content:s,intent:d,adaptive:"high-contrast",placement:c,children:(0,i.jsxs)(r.hA,{ref:t,...u,onMouseDown:e=>{var t;e.preventDefault(),null===(t=u.onMouseDown)||void 0===t||t.call(u,e)},className:(0,o.Z)("flex h-11 min-w-[44px] items-center justify-center gap-1 rounded-sm px-3 font-semibold text-graphite-60 hover:bg-graphite-5 active:bg-graphite-10 aria-checked:bg-graphite-10 aria-checked:text-graphite-60",a&&"pl-2.5",!n&&"p-2.5",{"text-crimson-40":"danger"===d},u.disabled&&"cursor-not-allowed text-graphite-20 hover:bg-graphite-0",u.className),children:[a,n]})})});Toolbar.Item=d,Toolbar.Separator=function(e){return(0,i.jsx)("div",{className:"-my-1",children:(0,i.jsx)(r.Z0,{...e,className:"relative h-[3.25rem] w-px bg-graphite-5"})})},Toolbar.Dropdown=function(e){let{value:t,onChange:n,icon:r,tooltip:d,children:u}=e,p=s.Children.map(u,e=>s.isValidElement(e)?s.cloneElement(e,{...e.props,onClick:()=>{null==n||n(e.props.value)}}):null),h=null==p?void 0:p.find(e=>e.props.value===t);if(!h)return null;let{type:g,key:m,props:f}=h;return(0,i.jsxs)(a.fC,{modal:!1,children:[(0,i.jsx)(a.xz,{className:"group/trigger",children:(0,i.jsx)(l.u,{placement:"top",content:d,children:(0,i.jsx)(g,{icon:null!=r?r:f.icon,tooltip:null,className:"pr-1.5",onClick:()=>{},children:(0,i.jsx)(c._M,{className:(0,o.Z)("size-6","group-data-[state='open']/trigger:rotate-180")})},m)})}),(0,i.jsx)(a.VY,{tabIndex:-1,autoFocus:!1,asChild:!0,align:"center",sideOffset:8,children:(0,i.jsx)("div",{className:"flex animate-slide-down items-center gap-1 rounded bg-graphite-0 p-1 shadow-soft-md","aria-orientation":"horizontal",children:p})})]})}},73620:function(e,t,n){n.d(t,{Z0:function(){return trackPageView},c2:function(){return a}});var i=n(73876);function trackPageView(e){return i.Jl?fetch("/api/track/pageview",{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json"},body:JSON.stringify({href:null!=e?e:window.location.href,referrer:document.referrer&&!1===document.referrer.includes(window.location.host)?document.referrer:null})}):null}let a='function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _array_without_holes(arr){if(Array.isArray(arr))return _array_like_to_array(arr)}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _async_to_generator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)})}}function _iterable_to_array(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function _non_iterable_spread(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _to_consumable_array(arr){return _array_without_holes(arr)||_iterable_to_array(arr)||_unsupported_iterable_to_array(arr)||_non_iterable_spread()}function _unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}}function _ts_generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return function(op){if(f)throw TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=2&op[0]?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[2&op[0],t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(!(t=(t=_.trys).length>0&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}([n,v])}}}function trackPageView(){return _trackPageView.apply(this,arguments)}function _trackPageView(){return(_trackPageView=_async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return _state.trys.push([0,2,,3]),[4,fetch("/api/track/pageview",{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json"},body:JSON.stringify({href:location.href,referrer:document.referrer&&!1===document.referrer.includes(location.host)?document.referrer:null})})];case 1:case 2:return _state.sent(),[3,3];case 3:return[2]}})})).apply(this,arguments)}!function(){if(!window.trackingInitialized){window.trackingInitialized=!0,trackPageView();var originalPushState=history.pushState.bind(history);history.pushState=function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];originalPushState.apply(void 0,_to_consumable_array(args)),trackPageView()},window.addEventListener("popstate",function(){trackPageView()})}}();'},46878:function(e,t,n){n.d(t,{AL:function(){return versionEquals}});function versionEquals(e,t){return t.version===e.version}},75726:function(e,t,n){n.d(t,{Ow:function(){return blurHashToDataURL},l$:function(){return blurHash},nU:function(){return blurHashFromUrl},so:function(){return getBlurHashAverageColor}});var i=n(390),a=n(48834).lW;let decode83=(e,t,n)=>{let i=0;for(;t<n;)i*=83,i+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~".indexOf(e[t++]);return i};function getBlurHashAverageColor(e){let t=decode83(e,2,6);return[t>>16,t>>8&255,255&t]}function blurHash(e,t){let n=document.createElement("canvas");n.width=10,n.height=10;let a=n.getContext("2d");if(!a)throw Error("missing ctx");a.drawImage(e,0,0,10,10);let r="bottom"===t?5:0,o=t?5:10,l=a.getImageData(0,r,10,o);return(0,i.cv)(l.data,10,t?5:10,4,4)}async function blurHashFromUrl(e,t){let n=await new Promise((t,n)=>{let i=new Image;i.crossOrigin="Anonymous",i.src=e,i.addEventListener("load",()=>t(i)),i.addEventListener("error",function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return n(t)})});return blurHash(n,t)}function blurHashToDataURL(e){if(!e)return;let t=(0,i.Jx)(e,10,10),n=function(e,t,n){let i=[...e].map(e=>String.fromCharCode(e)).join(""),r=function(e,t,n){let i,a,r,o;let l=String.fromCharCode(120,1),s=[],c=String.fromCharCode(137,80,78,71,13,10,26,10);for(i=0;i<256;i++){for(r=0,a=i;r<8;r++)1&a?a=3988292384^a>>>1:a>>>=1;s[i]=a}function dwordAsString(e){return String.fromCharCode((4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e)}function createChunk(e,t,n){let i=4294967295^function(e,t){let n=4294967295;for(let e=0;e<t.length;e++)n=s[(n^t.charCodeAt(e))&255]^n>>>8;return n}(0,t+n);return dwordAsString(e)+t+n+dwordAsString(i)}let d=createChunk(0,"IEND",""),u=function(e,t){let n=dwordAsString(e)+dwordAsString(t)+"\b\x06\x00\x00\x00";return createChunk(13,"IHDR",n)}(e,10),p="";for(let t=0;t<n.length;t+=4*e){if(o="\x00",Array.isArray(n))for(let i=0;i<4*e;i++)o+=String.fromCharCode(255&n[t+i]);else o+=n.substr(t,4*e);p+=o}let h=l+function(e){let t,n;let i="";for(let a=0;a<e.length;a+=65535)t=e.length-a,n="",t<=65535?n="\x01":(t=65535,n="\x00"),i+=n+String.fromCharCode(255&t,(65280&t)>>>8)+String.fromCharCode(255&~t,(65280&~t)>>>8)+e.substring(a,a+t);return i}(p)+dwordAsString(function(e){let t=1,n=0;for(let i=0;i<e.length;i++)n=(n+(t=(t+e.charCodeAt(i))%65521))%65521;return n<<16|t}(p)),g=createChunk(h.length,"IDAT",h);return c+u+g+d}(10,10,i),o=void 0!==a?a.from(function(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(r)).toString("base64"):btoa(r);return"data:image/png;base64,".concat(o)}(t,0,0);return n}},1386:function(e,t,n){n.d(t,{E:function(){return primaryFontName}});function primaryFontName(e){return e.slice(1,e.indexOf("'",2))}},37769:function(e,t,n){n.d(t,{T:function(){return useFakePercentage}});var i=n(2784),a=n(2671);function useFakePercentage(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15e5,[t,n]=i.useState("idle"),[r,o]=i.useState(0),l=i.useRef(0),finish=()=>{clearInterval(l.current),o(100),n("done")};return i.useEffect(()=>{if("loading"===t&&r<99){let t=(0,a.xT)(Math.min(350+e/1e6*5,400),Math.min(1e3+e/1e6*10,1e3));l.current=window.setInterval(()=>{let e=r+(0,a.xT)(2,8);e>r?o(Math.min(e,99)):finish()},t)}else finish();return()=>clearInterval(l.current)},[r,t,e]),[r,{start:()=>{clearInterval(l.current),o(0),n("loading")},finish}]}},75093:function(e,t,n){n.d(t,{Y:function(){return isIndividualPage}});let isIndividualPage=e=>"BLOG_POST"!==e.type&&"PROJECT"!==e.type},16813:function(e,t,n){n.d(t,{z:function(){return o}});var i=n(90446),a=n(16106),r=n(45892);let o=!i.Jl||"scrollBehavior"in document.documentElement.style?a.Z:function(e){let{behavior:t="auto",...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.Z)(e,{behavior:t,...n})}},7459:function(e,t,n){n.d(t,{Vk:function(){return getImageSizeOptions},Yk:function(){return withAlignment},bD:function(){return isPremiumSection},eL:function(){return canResizeImageModule},wP:function(){return isUnmovableSection}});var i=n(15228);function isPremiumSection(e){return i.nZ.includes(e.type)}function isUnmovableSection(e){return["NAVIGATION","HERO","PROJECT_HERO","BLOGPOST_HERO"].includes(e.type)}function canResizeImageModule(e){return!("modules"in e&&e.modules.length>1&&e.modules.every(e=>"IMAGE"===e.type||"VIDEO"===e.type))}function getImageSizeOptions(e,t){if(canResizeImageModule(e)){if("modules"in e){if(e.modules.some(e=>"FORM"===e.type))return["sm","md",void 0];if(1===e.modules.length)return"BLOG_POST"===t.type?["sm","md","lg"]:[void 0,"md","lg"]}return["sm","md","lg"]}}function withAlignment(e,t,n){return i=>{let a=e(i);if("SMART"===a.type){var r;let e=a.modules.length>1?a.modules:a.modules.map(e=>"TEXT"===e.type?{...e,content:{...e.content,alignment:n.horizontal}}:"QUOTE"===e.type?{...e,citation:{...e.citation,alignment:n.horizontal},content:{...e.content,alignment:n.horizontal}}:e);return{...a,alignment:{...null!=n?n:a.alignment,horizontal:"BLOG_POST"===t?"center":null!==(r=n.horizontal)&&void 0!==r?r:a.alignment.horizontal},modules:e}}return"SUBHEADING"===a.type?{...a,textModule:{...a.textModule,content:{...a.textModule.content,alignment:n.horizontal}}}:a}}},16002:function(e,t,n){n.d(t,{G:function(){return r}});var i=n(96150),a=n(21);let r=(0,i.k)(a.nolookalikesSafe.replace(/[A-Z]/g,""),8)},25763:function(e,t,n){n.d(t,{Ai:function(){return stripMailtoUrlScheme},CN:function(){return formatUrl},KP:function(){return stripHttpUrlScheme},SE:function(){return stripCommonUrlScheme},kh:function(){return isPreviewOrLocalhost}});var i=n(30195);let a=/^[\w+.-]+@[\dA-Za-z-]+\.[\d.A-Za-z-]+$/;function stripHttpUrlScheme(e){return e.replace(/^https?:\/\//,"")}function stripMailtoUrlScheme(e){if(e.startsWith("mailto:")){let t=i.z.string().email().safeParse(e.slice(7));if(t.success)return t.data}return e}function stripCommonUrlScheme(e){return stripHttpUrlScheme(stripMailtoUrlScheme(e))}function formatUrl(e){return a.test(e)?"mailto:".concat(e):"https://".concat(e)}function isPreviewOrLocalhost(e){return!!e&&/((copy|archi)folio-(\w+|git-staging)-uxstudioteam\.vercel\.app|http:\/\/localhost)/.test(e)}}}]);