"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6092],{18858:function(e,t,r){var n,i,a,o=r(2784);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.Z=function(e){return o.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",fill:"#f4f3f7",viewBox:"0 0 96 96"},e),n||(n=o.createElement("path",{fill:"#dddbe6",d:"M0 0h96v96H0z"})),i||(i=o.createElement("circle",{cx:48,cy:36,r:16})),a||(a=o.createElement("circle",{cx:48,cy:90,r:32})))}},1545:function(e,t,r){r.d(t,{ED:function(){return DrilldownPanel},H5:function(){return Drilldown},sB:function(){return useDrilldown}});var n=r(52322),i=r(40489),a=r(88241),o=r(93556),l=r(2784),s=r(35290),c=r(75392);let d=l.createContext([[],()=>{}]),u=d.Provider;function useDrilldown(e,t){let[r,n]=l.useContext(d),i=e||r,a=t||n,o=l.useCallback(e=>{let t=i[i.length-1];e!==t&&a(t=>[...t,e])},[i,a]),s=l.useCallback(()=>{i.length>1&&a(e=>e.slice(0,-1))},[i.length,a]);return[o,s]}function Drilldown(e){let{panels:t,suppressAnimations:r,onChange:i,onEnter:d,children:h}=e,g=(0,c.D)(t),f=!!g&&t.length<g.length;return(0,n.jsx)("div",{className:"grid h-full grid-cols-1 grid-rows-1 overflow-x-hidden",children:(0,n.jsx)(u,{value:l.useMemo(()=>[t,e=>{null==i||i("function"==typeof e?e(t):e)}],[i,t]),children:(0,n.jsx)(a.M,{initial:!1,children:t.map((e,i)=>(0,n.jsx)(o.m.div,{initial:{x:"100%"},animate:{x:i===t.length-1?"0%":"-30%"},exit:{x:"100%"},transition:r?{type:!1}:{ease:s.mZ},className:"col-start-1 row-start-1",onUpdate:t=>{let{x:r}=t;"0%"===r&&(null==d||d(e,f))},children:h(e)},"".concat(e,"-").concat(i)))})})})}function DrilldownPanel(e){let{className:t,style:r,...a}=e;return(0,n.jsx)("div",{className:(0,i.Z)("h-full bg-graphite-0",t),style:r,...a})}},37811:function(e,t,r){r.d(t,{Z0:function(){return Separator},v6:function(){return l}});var n=r(52322),i=r(40489),a=r(2784);let o=a.createContext("horizontal"),l=o.Provider;function Separator(e){let{"aria-orientation":t}=e,r=a.useContext(o),l=t||r;return(0,n.jsx)("div",{role:"separator","aria-orientation":l,className:(0,i.Z)("flex items-center justify-center",{"-mx-1 h-[9px] py-1":"horizontal"===l,"-my-1":"vertical"===l}),children:(0,n.jsx)("span",{className:(0,i.Z)("bg-graphite-10",{"h-px w-full":"horizontal"===l,"h-full w-px":"vertical"===l})})})}},12875:function(e,t,r){r.d(t,{N:function(){return AlertBar}});var n=r(52322),i=r(17949),a=r(40489),o=r(23095),l=r(90918);function AlertBar(e){let{intent:t="neutral",Icon:r,centered:s,textSize:c="xs",size:d="sm",className:u,children:h,onDismiss:g,actionButton:f,...p}=e;return(0,n.jsxs)("div",{role:"alert",className:(0,a.Z)("flex items-center space-x-2 px-6 text-xs",{"bg-graphite-5 text-graphite-100 dark:bg-graphite-100 dark:text-graphite-0":"neutral"===t,"bg-graphite-5 font-semibold text-graphite-100 dark:bg-graphite-100 dark:text-graphite-0":"emergency"===t,"bg-violet-0 text-violet-40":"primary"===t,"bg-crimson-0 text-crimson-40":"danger"===t,"laptop:text-sm":"sm"===c},s?"justify-center text-center":"justify-between",{"h-12":"sm"===d,"h-16":"md"===d},u),...p,children:[(0,n.jsxs)("div",{className:(0,i.Z)("flex w-full items-center space-x-2",{"w-auto text-center":"emergency"===t}),children:[r&&(0,n.jsx)(r,{"aria-hidden":!0,className:"h-5 flex-none"}),(0,n.jsx)("div",{className:(0,a.Z)(r&&"flex flex-1 justify-between space-x-2 pt-0.5"),children:h})]}),f&&(0,n.jsx)("div",{children:f}),g&&"emergency"!==t&&(0,n.jsx)(l.z,{size:"xs",shape:"circle",intent:"neutral",className:"text-graphite-20 hover:text-graphite-10",onClick:g,children:(0,n.jsx)(o.IconX,{"aria-hidden":!0,className:"h-6"})})]})}},868:function(e,t,r){r.d(t,{v:function(){return FilledBadge}});var n=r(52322),i=r(40489);function FilledBadge(e){let{intent:t="neutral",children:r}=e;return(0,n.jsx)("div",{className:(0,i.Z)("inline-flex h-6 items-center rounded px-2 text-xs font-semibold uppercase",{"bg-graphite-5 text-graphite-100":"neutral"===t,"bg-violet-0 text-violet-40":"success"===t,"bg-crimson-0 text-crimson-40":"danger"===t,"bg-emerald-0 text-emerald-60":"active"===t,"bg-amber-0 text-amber-60":"warning"===t}),children:r})}},13867:function(e,t,r){r.d(t,{T:function(){return l}});var n=r(52322),i=r(17949),a=r(2784),o=r(90918);let l=a.forwardRef(function(e,t){var r;let{intent:a="neutral",muted:l,inverted:s,noShadow:c,disabled:d,className:u,adaptive:h,...g}=e;return(0,n.jsx)(o.z,{ref:t,size:"sm",shape:null!==(r=g.shape)&&void 0!==r?r:"circle",intent:a,disabled:d,className:(0,i.Z)("font-bold uppercase",l||"subtle"===a?"bg-graphite-20":d?"bg-graphite-5":s?"bg-graphite-5 shadow-hard-md":"bg-graphite-80 shadow-hard-md",c&&"shadow-none",d?[l?"text-graphite-40":s?"text-graphite-20":"text-graphite-60"]:{"text-graphite-0 hover:bg-graphite-60":"neutral"===a,"text-crimson-40 hover:bg-crimson-40 hover:text-graphite-0 dark:hover:bg-crimson-40":"danger"===a,"bg-crimson-40 text-graphite-0":"new-danger"===a,"bg-transparent":"subtle"===a,"ring-1 ring-graphite-10 hover:ring-2 hover:ring-graphite-100":"subtle"===a},{"hover:dark:bg-custom-bg-32 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":!0===h},"high-contrast"===h&&{"dark:bg-graphite-0 dark:text-graphite-100 dark:hover:bg-graphite-5":"neutral"===a,"dark:bg-graphite-0 dark:text-crimson-40 dark:hover:text-graphite-0":"danger"===a},u),...g})})},27570:function(e,t,r){r.d(t,{K:function(){return o}});var n=r(52322),i=r(2784),a=r(61346);let o=i.forwardRef(function(e,t){return(0,n.jsx)(a.I,{as:"textarea",ref:t,...e})})},982:function(e,t,r){r.d(t,{V:function(){return EditorSectionsContainer},d:function(){return editorSectionsContainer}});var n=r(52322),i=r(93556);let a="sections-overflowing-container",editorSectionsContainer=()=>{var e;return null!==(e=document.querySelector("#".concat(a)))&&void 0!==e?e:void 0};function EditorSectionsContainer(e){let{pageId:t,children:r}=e;return(0,n.jsx)(i.m.section,{id:a,className:"h-full overflow-auto",layoutScroll:!0,children:r},t)}},56489:function(e,t,r){r.d(t,{v:function(){return Menu}});var n=r(52322),i=r(40489),a=r(37811);function Menu(e){let{"aria-orientation":t="vertical",noBorder:r,noShadow:o,className:l,...s}=e;return(0,n.jsx)(a.v6,{value:"vertical"===t?"horizontal":"vertical",children:(0,n.jsx)("div",{role:"menu","aria-orientation":t,className:(0,i.Z)("flex whitespace-nowrap rounded bg-graphite-0 p-1",{"flex-col":"vertical"===t,"space-x-1":"horizontal"===t},!r&&"ring-1 ring-graphite-5",!o&&"shadow-soft-xl",l),...s})})}},77970:function(e,t,r){r.d(t,{s:function(){return c}});var n=r(52322),i=r(17949),a=r(40489),o=r(2784),l=r(52855),s=r(90918);let c=o.forwardRef(function(e,t){let{intent:r="neutral",icon:o,rightIcon:c,"aria-checked":d,disabled:u,size:h="sm",className:g,children:f,...p}=e;return(0,n.jsx)(s.z,{ref:t,size:h,intent:r,"aria-checked":d,disabled:u,className:(0,i.Z)("relative rounded-sm focus:z-10",d?"bg-graphite-10 font-bold":"bg-graphite-0",u?"text-graphite-20":{[(0,a.Z)(d?"text-graphite-100":"text-graphite-60 hover:bg-graphite-5")]:"neutral"===r,"text-crimson-40 hover:bg-crimson-0":"danger"===r},g),...p,children:(0,n.jsxs)("span",{className:"flex w-full justify-between space-x-6 text-left",children:[(0,n.jsxs)("span",{className:(0,a.Z)("flex items-center",o&&"space-x-3"),children:[o&&(0,n.jsx)("span",{className:(0,a.Z)("danger"===r?"text-crimson-40":"text-graphite-20"),children:o}),(0,n.jsx)("span",{children:f})]}),(0,n.jsx)("span",{className:"w-6",children:(0,n.jsxs)(n.Fragment,{children:[d&&(0,n.jsx)(l.Jr,{"aria-hidden":!0,className:"h-6"}),!d&&c&&(0,n.jsx)("span",{children:c})]})})]})})})},66135:function(e,t,r){r.d(t,{EC:function(){return LegacyPopover},J2:function(){return Popover}});var n=r(52322),i=r(75746),a=r(17949),o=r(2784),l=r(23095),s=r(82885),c=r(982),d=r(90446),u=r(17293),h=r(40489);let g={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t}=e;function onKeyDown(e){"Escape"===e.key&&t()}return{onShow(){document.addEventListener("keydown",onKeyDown)},onHide(){document.removeEventListener("keydown",onKeyDown)}}}},f={none:[0,0],sm:[-4,8],md:[0,12],lg:[0,16],xl:[0,24],"-2xl":[0,-48]},p=o.forwardRef(function(e,t){let{arrow:r,arrowSize:i="md",arrowBackground:a,offset:o="md",disabled:l,className:s,content:c,...d}=e;return(0,n.jsx)(u.ZP,{ref:t,plugins:[g],popperOptions:{modifiers:[{name:"offset",options:{offset:f[o]}}]},render:e=>{let{"data-placement":t,...o}=e;return(0,n.jsxs)("div",{role:"tooltip",className:s,...o,children:[r&&(0,n.jsx)("div",{"data-popper-arrow":!0,className:(0,h.Z)("md"===i?"tooltip-arrow":"tooltip-arrow-lg",{"tooltip-arrow-light":"light"===a,"tooltip-arrow-dark":"dark"===a},t&&"md"===i&&{"tooltip-arrow-from-top":t.startsWith("top"),"tooltip-arrow-from-right":t.startsWith("right"),"tooltip-arrow-from-bottom":t.startsWith("bottom"),"tooltip-arrow-from-left":t.startsWith("left")},t&&"lg"===i&&{"tooltip-arrow-lg-from-top":t.startsWith("top"),"tooltip-arrow-lg-from-right":t.startsWith("right"),"tooltip-arrow-lg-from-bottom":t.startsWith("bottom"),"tooltip-arrow-lg-from-left":t.startsWith("left")})}),c]})},...d})});function LegacyPopover(e){let{visible:t,...r}=e;return(0,n.jsx)(p,{interactive:!0,visible:t,appendTo:d.Jl?document.body:"parent",zIndex:20,trigger:null==t?"click":void 0,className:"pointer-events-auto animate-slide-down",...r})}function Popover(e){return(0,n.jsx)(i.fC,{...e})}let x=o.forwardRef((e,t)=>(0,n.jsx)(i.xz,{ref:t,...e}));function PopoverPortal(e){let{children:t,...r}=e;if(!d.Jl)return null;let a=(0,c.d)();return a?(0,n.jsx)(i.h_,{container:a,...r,children:t}):null}Popover.Trigger=x,Popover.Portal=PopoverPortal,Popover.Content=function(e){let{title:t,children:r,portal:c,...d}=e,u=c?PopoverPortal:o.Fragment;return d.asChild?(0,n.jsx)(u,{children:(0,n.jsx)(i.VY,{align:"start",sideOffset:12,asChild:!0,...d,className:"animate-slide-down",children:r})}):(0,n.jsx)(u,{children:(0,n.jsxs)(i.VY,{align:"start",sideOffset:12,...d,className:(0,a.Z)("z-popover animate-slide-down",!d.asChild&&"w-90 space-y-4 rounded-lg bg-graphite-0 p-6 shadow-soft-xl",d.className),children:[t&&!d.asChild&&(0,n.jsxs)("div",{className:"flex items-start justify-between space-x-4",children:[(0,n.jsx)("h2",{className:"text-2xl font-bold leading-none text-graphite-100",children:t}),(0,n.jsx)(i.x8,{asChild:!0,children:(0,n.jsx)(s.h,{growOutside:!0,"aria-label":"Close ".concat(t),children:(0,n.jsx)(l.IconX,{"aria-hidden":!0,className:"h-6"})})})]}),r]})})}},94583:function(e,t,r){r.d(t,{W:function(){return i}});var n=r(65058);let i=(0,n.cn)(null)},68935:function(e,t,r){r.d(t,{h:function(){return useElementSize}});var n=r(73876),i=r(2784);function useElementSize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],[r,a]=i.useState(null),o=n.Jl?i.useLayoutEffect:i.useEffect;return o(()=>{let t="string"==typeof e?document.querySelector(e):e.current;function handleChange(){var e;a(null!==(e=null==t?void 0:t.getBoundingClientRect())&&void 0!==e?e:null)}return handleChange(),window.addEventListener("resize",handleChange),()=>window.removeEventListener("resize",handleChange)},[e,...t]),r}},75392:function(e,t,r){r.d(t,{D:function(){return usePrevious}});var n=r(2784);function usePrevious(e){let t=n.useRef();return n.useEffect(()=>{t.current=e}),t.current}},73876:function(e,t,r){r.d(t,{Jl:function(){return l},Ts:function(){return o}});var n,i,a=r(34406);let o=!1,l=!0;null!==(i=null!==(n=a.env.VERCEL_BRANCH_URL)&&void 0!==n?n:"copyfolio-git-main-uxstudioteam.vercel.app")&&void 0!==i||a.env.VERCEL_URL}}]);