@hubspot/cms-dev-server 0.18.22 → 0.18.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -6
- package/dist/run.js +6 -8
- package/package.json +4 -5
- package/types/routes/meta.d.ts +2 -0
- package/dist/.DS_Store +0 -0
- package/dist/App.js +0 -168
- package/dist/App.js.map +0 -7
- package/dist/_.._/.DS_Store +0 -0
- package/dist/_.._/app/serverEntry.js +0 -8
- package/dist/_.._/app/serverEntry.js.map +0 -7
- package/dist/clientEntry.css +0 -2
- package/dist/clientEntry.css.map +0 -7
- package/dist/clientEntry.js +0 -168
- package/dist/clientEntry.js.map +0 -7
- package/dist/components.json +0 -20
- package/dist/fonts/LexendDeca-Bold-PSGSBIWW.woff2 +0 -0
- package/dist/fonts/LexendDeca-Bold.woff2 +0 -0
- package/dist/fonts/LexendDeca-Light-IDG5XLZG.woff2 +0 -0
- package/dist/fonts/LexendDeca-Light.woff2 +0 -0
- package/dist/fonts/LexendDeca-Medium-ZCTJP7FU.woff2 +0 -0
- package/dist/fonts/LexendDeca-Medium.woff2 +0 -0
- package/dist/fonts/LexendDeca-SemiBold-LCAJGQDV.woff2 +0 -0
- package/dist/fonts/LexendDeca-SemiBold.woff2 +0 -0
- package/dist/generateJsonFromJsx.js.map +0 -7
- package/dist/index.css +0 -2
- package/dist/index.css.map +0 -7
- package/dist/index.html +0 -14
- package/dist/index.js.map +0 -7
- package/dist/internalSsr.js.map +0 -7
- package/dist/island-runtime.js.map +0 -7
- package/dist/postcss.config.js +0 -6
- package/dist/run.js.map +0 -7
- package/dist/storybook/index.js.map +0 -7
- package/dist/storybook-main/main.js.map +0 -7
- package/dist/storybook-main/preview.js.map +0 -7
- package/dist/tailwind.config.js +0 -67
- package/types/constants/errors.d.ts +0 -5
- package/types/createAppViteConfig.d.ts +0 -2
- package/types/lib/cli.d.ts +0 -22
- package/types/lib/cliUtils.d.ts +0 -14
- package/types/routes/api.d.ts +0 -2
- package/types/routes/appServerRoutes.d.ts +0 -5
- package/types/storybook-main/preview.d.ts +0 -9
package/dist/_.._/.DS_Store
DELETED
|
Binary file
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{StrictMode as Rt}from"react";var H=(e,t,n)=>{if(!e)return"";let r=[];for(let i of e){let d="console.log";i.level==="error"&&(d="console.error"),i.level==="warn"&&(d="console.warn");let p=i.parameters.map(f=>JSON.stringify(f)).join(", ");r.push(` ${d}(${p});`)}let o="",s="";return t!=null&&(o=`
|
|
2
|
-
console.group(${JSON.stringify(t)});`,s=` console.groupEnd()
|
|
3
|
-
`),`<script ${n}>${o}
|
|
4
|
-
${r.join(`
|
|
5
|
-
`)}
|
|
6
|
-
${s}</script>
|
|
7
|
-
`};import*as fe from"dot-prop";import he from"@babel/traverse";import{jsx as Ce}from"react/jsx-runtime";import ge from"stream";import{renderToPipeableStream as ve,renderToStaticMarkup as Mn}from"react-dom/server";import*as I from"@hubspot/cms-components";import{ServerRenderContext as be}from"@hubspot/cms-components";var{setProperty:Rn,getProperty:jn,hasProperty:An}=fe;var $n=he.default;var ye=()=>{let e=[],t=new ge.Writable;return t._write=(r,o,s)=>{e.push(Buffer.from(r)),s()},{streamDonePromise:new Promise((r,o)=>{t.on("error",s=>{o(s)}),t._final=s=>{r(Buffer.concat(e).toString("utf8")),s()}}),writableStream:t}},Se=async(e,t)=>{let{streamDonePromise:n,writableStream:r}=ye(),{pipe:o}=ve(e,{...t||{},onShellReady(){},onAllReady(){o(r),t!=null&&t.onAllReady&&t.onAllReady()}});return n},{createServerRenderContextV2:W,createServerRenderContext:xe,renderServerSidePropsWithAsyncLocalStoreContext:kn}=I,we=()=>W?W(null,{environmentConfig:null,entryPointBasePath:"",supplementalFieldValues:{},messagesForBrowser:[]}):xe("",null);async function J(e,t=we(),n,r){let o=await Se(Ce(be.Provider,{value:t,children:e}),r);return t.messagesForBrowser.length>0&&(o=`${o}${H(t.messagesForBrowser,`Server messages rendering: ${n}`)}`),{html:o,renderContext:t}}import{useState as Pt}from"react";import{TooltipProvider as Mt}from"@radix-ui/react-tooltip";import{Button as ke}from"@/components/ui/button";import{Button as Ie}from"@/components/ui/button";import{jsx as j,jsxs as Te}from"react/jsx-runtime";var Ne=({text:e,url:t,Icon:n})=>Te(Ie,{variant:"ghost",children:[n&&j(n,{className:"w-6 h-6 mr-2 text-black"}),t?j("a",{href:t,target:"_blank",children:e}):j("div",{children:e})]}),A=Ne;import V from"react";import{Check as Ee}from"lucide-react";import{Button as Pe}from"@/components/ui/button";import{Tooltip as Me,TooltipContent as De,TooltipTrigger as Re}from"@/components/ui/tooltip";import{jsx as N,jsxs as $e}from"react/jsx-runtime";var je=e=>{navigator.clipboard.writeText(e)},Ae=({Icon:e,iconClassName:t,tooltipText:n,isCircle:r=!1,canCopy:o=!1,...s})=>{let[i,d]=V.useState(!1);return V.useEffect(()=>{if(i){let f=setTimeout(()=>{d(!1)},2e3);return()=>clearTimeout(f)}},[i]),$e(Me,{delayDuration:100,children:[N(Re,{asChild:!0,children:N(Pe,{variant:"outline",size:"icon",className:`w-10 h-10 min-w-10 p-0 flex items-center justify-center ${r?"rounded-full":""}`,onClick:()=>{o&&(je((n==null?void 0:n.toString())||""),d(!0))},children:i?N(Ee,{className:t,strokeWidth:3,...s}):e&&N(e,{className:t,strokeWidth:3,...s})})}),N(De,{side:"bottom",className:"bg-white max-w-[200px] font-medium",children:n})]})},M=Ae;import{CircleCheck as _e,ClipboardCopy as Oe,Copy as Fe,TriangleAlert as Le,ExternalLink as G,Layout as Kn}from"lucide-react";import{Tooltip as Ue,TooltipTrigger as Be,TooltipContent as He}from"@/components/ui/tooltip";import{jsx as l,jsxs as C}from"react/jsx-runtime";var z=({count:e,label:t,subText:n,onClick:r})=>C("div",{onClick:r,className:"w-[170px] h-36 px-8 py-6 bg-white rounded-lg flex flex-col justify-center items-center gap-1 text-gray-900 cursor-pointer",children:[l("div",{className:"text-2xl font-light",children:e}),l("div",{className:"text-xs font-semibold uppercase leading-4",children:t}),l("div",{className:"text-xs font-light leading-8",children:n})]}),We=({modulesData:e,partialsData:t})=>C("div",{className:"flex justify-start gap-2",children:[l(z,{count:e.length,label:e.length===1?"Module":"Modules",subText:"In this Project",onClick:()=>{var n;return(n=document.getElementById("modules-table"))==null?void 0:n.scrollIntoView({behavior:"smooth"})}}),l(z,{count:t.length,label:t.length===1?"Partial":"Partials",subText:"In this Project",onClick:()=>{var n;return(n=document.getElementById("partials-table"))==null?void 0:n.scrollIntoView({behavior:"smooth"})}})]});var Je=()=>l("div",{className:"flex flex-col justify-end items-start min-h-36 p-6 bg-slate-900 rounded-xl gap-6 overflow-hidden",children:C("div",{className:"flex flex-col justify-start items-start gap-6 w-full",children:[l("div",{className:"text-white text-xl font-medium leading-7",children:"Copy CLI Commands"}),l("div",{className:"flex flex-wrap w-full px-1 py-1 bg-white rounded-md border border-slate-300 text-black text-sm font-medium leading-tight",children:[{command:"Start",description:"npm start"},{command:"Run Test",description:"npm test"},{command:"Build",description:"npm run build"},{command:"Deploy",description:"npm run deploy"},{command:"Dev Environment",description:"npm run dev"}].map(({command:e,description:t})=>C(Ue,{delayDuration:100,children:[l(Be,{asChild:!0,children:l("div",{className:"flex-grow h-8 px-3 py-1.5 bg-white flex items-center justify-center relative group cursor-pointer hover:bg-gray-100 active:bg-gray-200 min-w-[120px] m-1",children:l("span",{className:"",children:e})})}),C(He,{side:"bottom",className:"bg-white font-medium p-4",children:[C("div",{children:[l("div",{className:"font-medium text-base leading-none",children:"Copy Command"}),l("div",{className:"font-light text-sm leading-5 mt-2 mb-4",children:t})]}),l("div",{className:"flex justify-end",children:C(ke,{size:"sm",className:"px-2 py-1 primary rounded",onClick:()=>navigator.clipboard.writeText(t),children:[l(Oe,{})," Copy"]})})]})]},e))})]})}),Ve=({projectName:e,authedPortalId:t,modulesData:n,partialsData:r,hubLModules:o})=>{let s=e||"",i=!!t,d=i?"You are connected to your HubSpot account":'You are not connected to your HubSpot Account. Use the "hs init" command to connect to view content in the dev server.',p=[...n,...o];return C("div",{className:"w-full h-full bg-gray-200 rounded-3xl px-10 py-8",children:[C("div",{className:"flex items-center justify-between gap-4",children:[C("div",{className:"text-gray-900 text-2xl font-semibold flex items-center gap-2",children:["CMS Developer Server",i?l(M,{Icon:_e,iconClassName:"text-green-500 w-4 h-4",tooltipText:d,isCircle:!0}):l(M,{Icon:Le,iconClassName:"text-red-500 w-4 h-4",tooltipText:d,isCircle:!0})]}),C("div",{className:"flex items-center gap-4",children:[l(A,{text:"Slack Community",Icon:G,url:"https://developers.hubspot.com/beta-docs/getting-started/slack/developer-slack"}),l(A,{text:"Getting started docs",Icon:G,url:"https://developers.hubspot.com/docs/cms/cms-react-quickstart?hs_preview=XztBJnma-168859451746"})]})]}),l("div",{className:"w-full text-gray-900 text-4xl font-extrabold mt-5 mb-4",children:s}),l("div",{className:"flex items-center space-x-4 text-black text-sm font-light",children:t&&C("div",{className:"flex items-center gap-2",children:[l("strong",{children:"Portal ID:"}),l("span",{className:"mr-2",children:t}),l(M,{Icon:Fe,canCopy:!0,tooltipText:t})]})}),C("div",{className:"flex w-full mt-10",children:[l("div",{className:"flex-none",children:l(We,{modulesData:p,partialsData:r})}),l("div",{className:"flex-grow ml-14",children:l(Je,{})})]})]})},Z=Ve;import{Table as pt,TableBody as ft,TableCell as E,TableHead as ht,TableHeader as Ct,TableRow as oe}from"@/components/ui/table";import{Button as re}from"@/components/ui/button";import{Braces as gt}from"lucide-react";import{jsx as T,jsxs as ze}from"react/jsx-runtime";function Ge(){return ze("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[T("g",{clipPath:"url(#clip0_5814_65268)",children:T("path",{d:"M19.7328 7.77091C19.4838 7.67469 19.2259 7.58365 18.9602 7.49755C19.0039 7.29749 19.044 7.10001 19.0796 6.90589C19.6644 3.71841 19.282 1.15055 17.9763 0.305104C16.7243 -0.505568 14.6767 0.339688 12.6087 2.3604C12.4099 2.55471 12.2104 2.76043 12.0111 2.97604C11.8783 2.83339 11.7457 2.69554 11.6134 2.56368C9.44613 0.403003 7.27375 -0.507535 5.96931 0.340359C4.71847 1.15338 4.34805 3.56741 4.87449 6.58821C4.92532 6.87999 4.98475 7.17795 5.05194 7.48091C4.74449 7.5789 4.44767 7.68337 4.16367 7.79451C1.62275 8.78918 0 10.3481 0 11.9651C0 13.6351 1.74202 15.3101 4.38859 16.3258C4.59745 16.406 4.81417 16.4818 5.0375 16.5537C4.96501 16.8814 4.90195 17.2025 4.84903 17.5156C4.34707 20.484 4.73906 22.841 5.98656 23.6489C7.27512 24.4832 9.43767 23.6256 11.5435 21.5589C11.7099 21.3955 11.8769 21.2222 12.0443 21.0406C12.2611 21.2751 12.4777 21.4971 12.6931 21.7053C14.7328 23.676 16.7473 24.4718 17.9937 23.6617C19.2809 22.825 19.6993 20.293 19.1561 17.2124C19.1147 16.9772 19.0664 16.7368 19.0122 16.4922C19.164 16.4418 19.3131 16.3897 19.4585 16.3356C22.2099 15.3121 24 13.6574 24 11.9651C24 10.3422 22.3249 8.77282 19.7328 7.77091ZM19.1361 15.2429C19.0048 15.2917 18.8702 15.3388 18.733 15.3845C18.4292 14.3049 18.0193 13.1568 17.5176 11.9707C17.9963 10.8128 18.3904 9.67938 18.6857 8.60672C18.9312 8.68648 19.1695 8.77062 19.3991 8.8594C21.62 9.71785 22.9747 10.9871 22.9747 11.9651C22.9747 13.0068 21.5117 14.3591 19.1361 15.2429ZM18.1504 17.436C18.3905 18.7982 18.4248 20.0298 18.2657 20.9925C18.1228 21.8576 17.8353 22.4344 17.4799 22.6654C16.7236 23.157 15.1061 22.518 13.3617 20.8326C13.1618 20.6394 12.9603 20.4331 12.7583 20.2148C13.4345 19.3843 14.1104 18.4189 14.77 17.3467C15.9303 17.2311 17.0264 17.0422 18.0204 16.7841C18.0694 17.0059 18.1129 17.2234 18.1504 17.436ZM8.18214 22.5805C7.44318 22.8735 6.85463 22.8819 6.49886 22.6516C5.74182 22.1613 5.42711 20.2689 5.8564 17.7303C5.90557 17.4396 5.96409 17.141 6.03155 16.8357C7.0147 17.0798 8.10281 17.2555 9.26581 17.3613C9.92989 18.4105 10.6253 19.3748 11.3261 20.2192C11.1729 20.3852 11.0204 20.5432 10.8688 20.6921C9.93762 21.606 9.0045 22.2544 8.18214 22.5805ZM4.72018 15.2365C3.54992 14.7874 2.58347 14.2037 1.92102 13.5668C1.32576 12.9944 1.02523 12.4261 1.02523 11.9651C1.02523 10.9838 2.32814 9.73224 4.50116 8.88156C4.76482 8.77834 5.04084 8.68106 5.32727 8.58969C5.62759 9.68657 6.02155 10.8334 6.49698 11.9931C6.0154 13.17 5.61584 14.3351 5.31258 15.4448C5.10838 15.3789 4.91054 15.3095 4.72018 15.2365ZM5.88066 6.36714C5.42963 3.77899 5.72918 1.82658 6.48297 1.33666C7.28588 0.814743 9.06136 1.55889 10.9326 3.42452C11.0523 3.54377 11.1723 3.66857 11.2928 3.7977C10.5955 4.6384 9.90644 5.59551 9.24825 6.63848C8.11952 6.75595 7.03905 6.94465 6.04565 7.19733C5.98319 6.91524 5.92787 6.6381 5.88066 6.36714ZM16.2332 9.23737C15.9957 8.7768 15.7519 8.32712 15.5034 7.88972C16.2691 7.99841 17.0028 8.14269 17.6918 8.31926C17.4849 9.06359 17.2271 9.84184 16.9236 10.6397C16.7059 10.1756 16.4757 9.70768 16.2332 9.23737ZM12.0114 4.62041C12.4844 5.19567 12.9579 5.83793 13.4238 6.53478C12.9544 6.50988 12.4791 6.49693 12 6.49693C11.5254 6.49693 11.0537 6.5096 10.5872 6.53406C11.0535 5.84369 11.5312 5.20228 12.0114 4.62041ZM7.76268 9.24533C7.52546 9.7072 7.29947 10.1726 7.08519 10.6388C6.78662 9.84376 6.5312 9.06196 6.32255 8.30707C7.00731 8.13502 7.73752 7.99433 8.4984 7.88771C8.24635 8.32914 8.00054 8.78213 7.76268 9.24524V9.24533ZM8.52031 16.1245C7.73418 16.026 6.993 15.8926 6.30841 15.7253C6.52039 14.9569 6.78145 14.1584 7.08634 13.3463C7.30118 13.8122 7.52806 14.2777 7.76674 14.7406H7.76678C8.0099 15.2122 8.26177 15.6741 8.52031 16.1245ZM12.0398 19.3909C11.5539 18.8022 11.0692 18.151 10.5958 17.4505C11.0553 17.4708 11.5238 17.4811 12 17.4811C12.4892 17.4811 12.9728 17.4688 13.4488 17.445C12.9814 18.158 12.5095 18.8102 12.0398 19.3909ZM16.9334 13.3049C17.2542 14.1258 17.5246 14.9201 17.7393 15.6754C17.0434 15.8537 16.2921 15.9972 15.5005 16.1039C15.7497 15.6606 15.9956 15.2032 16.2373 14.7327C16.4818 14.2567 16.7139 13.7799 16.9334 13.3049ZM15.3492 14.1576C14.974 14.888 14.5889 15.5852 14.1978 16.2433C13.4857 16.3005 12.7499 16.33 12 16.33C11.2531 16.33 10.5266 16.3039 9.82706 16.2529C9.42029 15.5861 9.02675 14.8869 8.65398 14.1639H8.65407C8.28228 13.4428 7.94009 12.7157 7.63003 11.9927C7.94001 11.268 8.28129 10.54 8.65095 9.8203L8.65086 9.82045C9.0215 9.0988 9.41157 8.40291 9.81459 7.74031C10.5283 7.67973 11.2603 7.64812 12 7.64812H12C12.743 7.64812 13.4759 7.67997 14.1894 7.74107C14.5863 8.39883 14.9737 9.09247 15.3458 9.81421C15.7221 10.5441 16.0678 11.2671 16.3804 11.9763C16.0688 12.6977 15.7238 13.4281 15.3492 14.1576ZM17.4642 1.30241C18.2679 1.8228 18.5804 3.9215 18.0755 6.67354C18.0433 6.84915 18.007 7.02801 17.9676 7.20928C16.9719 6.95131 15.8907 6.75936 14.7586 6.64011C14.0992 5.58568 13.4158 4.62708 12.7298 3.79717C12.9142 3.59797 13.0984 3.40802 13.2818 3.22877C15.0536 1.49744 16.7097 0.813879 17.4642 1.30241ZM12 9.55874C13.1836 9.55874 14.1431 10.6361 14.1431 11.9651C14.1431 13.294 13.1836 14.3714 12 14.3714C10.8164 14.3714 9.85688 13.294 9.85688 11.9651C9.85688 10.6361 10.8164 9.55874 12 9.55874Z",fill:"black"})}),T("defs",{children:T("clipPath",{id:"clip0_5814_65268",children:T("rect",{width:"24",height:"24",fill:"white"})})})]})}var X=Ge;import{Button as _}from"@/components/ui/button";import{Sheet as tt,SheetContent as nt,SheetTrigger as ot,SheetTitle as rt,SheetHeader as st,SheetDescription as at,SheetFooter as it,SheetClose as lt}from"@/components/ui/sheet";import{useState as dt}from"react";import{ClipboardCopy as ct}from"lucide-react";import{Table as Ke,TableHeader as Ye,TableRow as Y,TableHead as q,TableBody as qe,TableCell as Q}from"@/components/ui/table";import{Skeleton as $}from"@/components/ui/skeleton";import{useState as Ze,useEffect as Xe}from"react";function K(e,t){let[n,r]=Ze({moduleDependencies:null,isLoading:!1,error:null});return Xe(()=>{e&&(r(o=>({...o,isLoading:!0})),fetch(`/api/module-pages?path=${encodeURIComponent(e)}&portalId=${t}`).then(o=>o.ok?o.json():Promise.reject(new Error("Failed to fetch module pages"))).then(o=>r({moduleDependencies:o,isLoading:!1,error:null})).catch(o=>r({moduleDependencies:null,isLoading:!1,error:String(o)})))},[e]),n}import{jsx as g,jsxs as v}from"react/jsx-runtime";var Qe=({pages:e,componentType:t})=>{if(e.length===0)return v("div",{children:["No pages found using this ",t]});function n(r){return r?r.split("_").map(o=>o.charAt(0)+o.slice(1).toLowerCase()).join(" "):""}return v(Ke,{className:"border text-[16px]",containerClassName:"h-fit max-h-[770px] overflow-y-auto relative",children:[g(Ye,{children:v(Y,{children:[g(q,{className:"border",children:"Page Name"}),g(q,{className:"border",children:"Page Type"})]})}),g(qe,{className:"overflow-y-auto",children:e.map((r,o)=>v(Y,{className:"odd:bg-white even:bg-gray-50",children:[g(Q,{className:"border",children:r.label}),g(Q,{className:"border",children:n(r.subType)})]},o))})]})},et=({componentType:e,authedPortalId:t,projectName:n,webRootProjectComponentFolder:r,isOpen:o,moduleData:s})=>{let i=s.type==="react"?`@projects/${n}/${r}/components/modules/${s.nameWithExtension}`:s.subPath,{moduleDependencies:d,isLoading:p,error:f}=K(o?i:null,t);return v("div",{className:"flex flex-col",children:[v("div",{className:"flex justify-between items-center mb-3 gap-8",children:[g("h2",{className:"text-2xl font-semibold leading-9 decoration-skip-ink",children:"Dependencies"}),p?g($,{className:"h-[20px] flex-1"}):d&&g("span",{className:"text-lg font-bold leading-8",children:`${d.length} ${d.length===1?"page uses":"pages use"} this ${e}`})]}),p?v("div",{className:"space-y-2",children:[g($,{className:"h-[20px] w-full"}),g($,{className:"h-[20px] w-full"})]}):f?v("div",{className:"text-red-500",children:["Error loading dependencies: ",f]}):g(Qe,{pages:d||[],componentType:e})]})},ee=et;import{Fragment as ne,jsx as c,jsxs as b}from"react/jsx-runtime";var mt=({moduleData:e,themeWebRoot:t})=>{var i;let n=JSON.stringify(e.fieldsJson,null,2),r=e.type==="react"?e.subPath:`hubl/${(i=e.subPath)==null?void 0:i.split("/hubl/")[1]}`,o=e.type==="react"?`${t}/${r}.${e.extension}`:`${t}/${r}.module/fields.json`;return b("div",{className:"flex flex-col",children:[c("h2",{className:"text-2xl font-semibold leading-8",children:"JSON Fields"}),n?b(ne,{children:[b("div",{className:"relative mt-6 mb-3",children:[c(_,{variant:"outline",size:"icon",className:"w-6 h-6 text-xs rounded absolute top-1.5 right-1.5 z-10 opacity-90",onClick:()=>navigator.clipboard.writeText(n),children:c(ct,{})}),c("div",{className:"rounded-xl overflow-hidden p-4 bg-[#0F172A]",children:c("pre",{className:"text-[14px] font-medium leading-6 text-[#9CDCFE] whitespace-pre-wrap",children:n})})]}),c("div",{children:c(_,{variant:"outline",onClick:()=>{o&&fetch(`/api/open-file?path=${encodeURIComponent(o)}`).catch(d=>console.error("Failed to open file:",d))},children:"View Editor"})})]}):c("p",{children:"No fields found"})]})},ut=({moduleData:e,componentType:t,themeWebRoot:n,authedPortalId:r,projectName:o,webRootProjectComponentFolder:s,children:i})=>{var a;let[d,p]=dt(!1),f=t.charAt(0).toUpperCase()+t.slice(1);return b(tt,{onOpenChange:p,children:[c(ot,{asChild:!0,children:i}),b(nt,{className:"sm:max-w-xl overflow-y-scroll","aria-describedby":"sheet-title",children:[b(st,{children:[c(rt,{className:"text-xl font-semibold leading-8 pb-8",children:c("span",{id:"sheet-title",children:b(ne,{children:[e.name," - ",f," Details"]})})}),b(at,{className:"text-sm leading-5",children:[c("strong",{children:"Directory Path:"})," ",e.type==="react"?e.subPath:`hubl/${((a=e.subPath)==null?void 0:a.split("/hubl/")[1])||e.subPath}`]})]}),c("div",{className:"grid gap-6 pb-6 my-6 border-b border-gray-300",children:c(ee,{componentType:t,authedPortalId:r,projectName:o,webRootProjectComponentFolder:s,isOpen:d,moduleData:e})}),c("div",{className:"grid gap-6 my-6",children:c(mt,{moduleData:e,themeWebRoot:n})}),c(it,{className:"",children:c(lt,{asChild:!0,children:c(_,{variant:"outline",type:"submit",children:"Close"})})})]})]})},te=ut;import{jsx as u,jsxs as D}from"react/jsx-runtime";var vt=(e,t,n,r,o)=>{if(!n.nameWithExtension)throw new Error(`Could not find component: ${n.name}`);let s=n.type==="react"?`@projects/${e}/${t}/components/modules/${n.nameWithExtension}`:n.subPath;return`https://app.hubspot${o==="qa"?"qa":""}.com/design-previewer/${r}/modules/p/${s}`},bt=({component:e,componentType:t,onPreviewClick:n,onViewLocalClick:r})=>D("div",{className:"flex gap-2",children:[t==="module"&&u(re,{variant:"outline",onClick:()=>n(e),children:"View in app"}),u(re,{variant:"outline",onClick:()=>r(e),children:"View local version"})]});function se({componentList:e,headers:t,webRootProjectComponentFolder:n,themeWebRoot:r,projectName:o,authedPortalId:s,componentType:i,authedEnv:d}){let p=a=>{try{let m=vt(o,n,a,s,d);window.open(m,"_blank")}catch(m){console.error("Failed to open preview:",m)}},f=a=>{try{let m;switch(i){case"module":m=a.type==="react"?`https://localhost:3000/preview/module/${a.name}`:`https://localhost:3000/hublmodule/${a.subPath}`;break;case"template":m=`https://localhost:3000/template/${a.subPath}`;break;case"partial":m=`https://localhost:3000/partial/${a.name}`;break;default:throw new Error(`Unknown component type: ${i}`)}window.open(m,"_blank")}catch(m){console.error("Failed to open preview:",m)}};return D(pt,{className:"border text-[16px]",containerClassName:"h-fit max-h-[770px] overflow-y-auto relative",children:[u(Ct,{children:u(oe,{className:"",children:t.map((a,m)=>u(ht,{className:"border",children:a},m))})}),u(ft,{className:"overflow-y-auto",children:e.map((a,m)=>D(oe,{className:"odd:bg-white even:bg-gray-50",children:[a.name&&u(E,{className:"border",children:i==="module"?u(te,{moduleData:a,componentType:i,themeWebRoot:r,authedPortalId:s,projectName:o,webRootProjectComponentFolder:n,children:u("span",{className:"underline cursor-pointer",children:a.name})}):u("span",{children:a.name})}),a.type&&u(E,{className:"border",children:D("div",{className:"flex items-center gap-2",children:[a.type==="react"?u(X,{}):u(gt,{}),u("span",{children:a.type==="react"?"React":"HuBL"})]})}),a.dateCreated&&u(E,{className:"border",children:a.dateCreated}),a.status&&u(E,{className:"border",children:a.status}),u(E,{className:"border",children:u(bt,{component:a,componentType:i,onPreviewClick:p,onViewLocalClick:f})})]},m))})]})}import{jsx as x,jsxs as ie}from"react/jsx-runtime";var O=({id:e,header:t,componentType:n,subtext:r,headers:o,data:s,webRootProjectComponentFolder:i,themeWebRoot:d,projectName:p,authedPortalId:f,authedEnv:a})=>ie("div",{id:e,className:"mb-16",children:[x("h2",{className:"font-inter text-2xl font-semibold leading-9 tracking-tight text-left",children:t}),x("p",{className:"font-inter text-base font-normal leading-7 text-left mb-5",children:r}),x(se,{authedEnv:a,componentList:s,headers:o,webRootProjectComponentFolder:i,themeWebRoot:d,projectName:p,authedPortalId:f,componentType:n})]}),yt=({modulesData:e,partialsData:t,hubLModules:n,hubLTemplates:r,webRootProjectComponentFolder:o,themeWebRoot:s,projectName:i,authedPortalId:d,authedEnv:p})=>{let f=(w,ue)=>w.map(pe=>({...pe,type:ue})),a=[...f(e,"react"),...n.map(w=>({...w,type:"hubl"}))],m=[...f(t,"react")],B=r.map(w=>({...w,type:"hubl"}));return ie("div",{className:"mt-12",children:[x(O,{id:"modules-table",header:"Modules",componentType:"module",subtext:"Describe what this is",headers:["Name","Type","Actions"],data:a,webRootProjectComponentFolder:o,themeWebRoot:s,projectName:i,authedPortalId:d,authedEnv:p}),x(O,{id:"partials-table",header:"Partials",componentType:"partial",subtext:"Describe what this is",headers:["Name","Type","Actions"],data:m}),x(O,{id:"templates-table",header:"Templates",componentType:"template",subtext:"Describe what this is",headers:["Name","Type","Actions"],data:B})]})},ae=yt;import St from"react";import{Separator as xt}from"@/components/ui/separator";import{jsx as R,jsxs as It}from"react/jsx-runtime";var wt=()=>{let e=[{href:"https://www.youtube.com/playlist?list=PLjtLN8FCj4SljVFvkJbSk9J5hq4KTKYcB&jct=pci9oBKT6ttPIJIGKv-rVg",text:"CMS React Videos"},{href:"https://developers.hubspot.com/beta-docs/guides/cms/content/modules/build-modules-and-partials-with-react",text:"React Docs"},{href:"https://react.dev",text:"Learn React"},{href:"https://github.com/HubSpot/cms-react/tree/main/examples",text:"Github Examples"}];return R("footer",{className:"w-full py-16",children:R("nav",{className:"flex justify-center items-center gap-4 text-gray-900 text-sm font-normal",children:e.map((t,n)=>It(St.Fragment,{children:[R("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",children:t.text}),n<e.length-1&&R(xt,{className:"bg-gray-200 h-4",orientation:"vertical"})]},n))})})},le=wt;import{Button as ce}from"@/components/ui/button";import{useCallback as Nt}from"react";import{ArrowRightLeft as Tt,ServerCrash as Et}from"lucide-react";import{jsx as y,jsxs as de}from"react/jsx-runtime";function F({size:e=24,...t}){return de("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y("circle",{cx:"20",cy:"20",r:"20",fill:"url(#paint0_linear_6129_76863)"}),y("mask",{id:"mask0_6129_76863",maskUnits:"userSpaceOnUse",x:"8",y:"7",width:"24",height:"28",children:y("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.18164 7.27271H31.6885V34.3423H8.18164V7.27271Z",fill:"white"})}),y("g",{mask:"url(#mask0_6129_76863)",children:y("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.2583 26.7794C23.4375 26.7794 21.9612 25.1574 21.9612 23.1566C21.9612 21.1557 23.4375 19.5336 25.2583 19.5336C27.0789 19.5336 28.555 21.1557 28.555 23.1566C28.555 25.1574 27.0789 26.7794 25.2583 26.7794ZM26.2452 16.1818V12.9592C27.0106 12.5618 27.5471 11.7108 27.5471 10.7231V10.6487C27.5471 9.28578 26.532 8.17055 25.292 8.17055H25.2242C23.984 8.17055 22.969 9.28578 22.969 10.6487V10.7231C22.969 11.7108 23.5055 12.5618 24.2709 12.9592V16.182C23.1313 16.3754 22.0899 16.892 21.2306 17.6522L13.1786 10.7689C13.2315 10.5449 13.2687 10.314 13.269 10.0716C13.2708 8.52773 12.1334 7.27469 10.7285 7.27271C9.32372 7.27072 8.1833 8.52062 8.18164 10.0645C8.17984 11.6082 9.31724 12.8613 10.7222 12.8632C11.18 12.8639 11.6036 12.721 11.9752 12.4889L19.8959 19.26C19.2222 20.3773 18.8278 21.7158 18.8278 23.1566C18.8278 24.665 19.2614 26.0602 19.9943 27.2079L17.5855 29.8549C17.395 29.7922 17.1973 29.7482 16.9881 29.7482C15.8338 29.7482 14.8978 30.7767 14.8978 32.0453C14.8978 33.3139 15.8338 34.3423 16.9881 34.3423C18.1426 34.3423 19.0785 33.3139 19.0785 32.0453C19.0785 31.8155 19.0386 31.5981 18.9814 31.389L21.3641 28.7706C22.4457 29.678 23.7925 30.2228 25.2582 30.2228C28.8096 30.2228 31.6885 27.0591 31.6885 23.1566C31.6885 19.6236 29.3267 16.7049 26.2452 16.1818Z",fill:"white"})}),y("defs",{children:de("linearGradient",{id:"paint0_linear_6129_76863",x1:"0",y1:"0",x2:"0",y2:"40",gradientUnits:"userSpaceOnUse",children:[y("stop",{stopColor:"#FF8F59"}),y("stop",{offset:"1",stopColor:"#FF7A59"})]})})]})}import{jsx as h,jsxs as P}from"react/jsx-runtime";function L({onClose:e}){let t=Nt(()=>{navigator.clipboard.writeText("hs init"),window.open("terminal://open?path=.","_blank"),window.location.reload()},[]);return h("div",{className:"w-full max-w-2xl bg-background border rounded-lg shadow-lg p-8 mx-4",children:P("div",{className:"flex flex-col items-center justify-center space-y-6 text-center",children:[h("div",{className:"bg-slate-900/90 rounded-lg p-6 w-full",children:P("div",{className:"flex items-center justify-center gap-3",children:[h(Et,{className:"w-8 h-8 text-white"}),h(Tt,{className:"w-8 h-8 text-slate-400"}),h(F,{size:32,className:"text-[#ff7a59]"})]})}),h("div",{className:"space-y-2",children:h("h2",{className:"text-2xl font-semibold tracking-tight",children:"Enjoy the full preview experience by connecting to HubSpot"})}),h("div",{className:"space-y-4 max-w-md",children:P("div",{className:"space-y-2 text-sm text-muted-foreground",children:[P("p",{children:["Connect by using the"," ",h("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded text-slate-900",children:"hs init"})," ","command to create a new config file. Ensure there's a"," ",h("code",{className:"bg-muted px-1.5 py-0.5 rounded",children:"hubspot.config.yaml"})," ","in the folder (or a parent)."]}),h("p",{children:"By connecting and authenticating you can use local proxy functionality and module preview routes."}),h("p",{className:"italic",children:`You can work on modules locally at "/module/[module_name]", but we won't have all your account data to display in this server.`})]})}),P("div",{className:"flex gap-4",children:[h(ce,{variant:"outline",onClick:e,children:"Close"}),h(ce,{onClick:t,children:"Connect Now"})]})]})})}import{jsx as S,jsxs as Dt}from"react/jsx-runtime";function U({initialProps:e}){let{projectName:t,authedEnv:n,authedPortalId:r,modulesData:o,hubLModules:s,partialsData:i,hubLTemplates:d,webRootProjectComponentFolder:p,themeWebRoot:f}=e,[a,m]=Pt(!r);return S(Mt,{children:Dt("div",{className:"container relative pt-8",children:[S(Z,{projectName:t,authedPortalId:r,modulesData:o,partialsData:i,hubLModules:s}),S(ae,{modulesData:o,hubLModules:s,partialsData:i,hubLTemplates:d,webRootProjectComponentFolder:p,themeWebRoot:f,projectName:t,authedPortalId:r,authedEnv:n}),S(le,{}),a&&S("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm",children:S("div",{className:"fixed inset-0 flex items-center justify-center",children:S(L,{onClose:()=>{m(!1)}})})})]})})}import{jsx as me}from"react/jsx-runtime";async function sr(e){return await J(me(Rt,{children:me(U,{initialProps:e})}))}export{sr as render};
|
|
8
|
-
//# sourceMappingURL=serverEntry.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../app/serverEntry.tsx", "../../../../cms-js-internal/dist/types-CsJ4tzsl.js", "../../../../cms-js-internal/dist/index.js", "../../../app/App.tsx", "../../../app/components/Hero.tsx", "../../../app/components/IconButton.tsx", "../../../app/components/IconTooltip.tsx", "../../../app/components/ComponentTable.tsx", "../../../app/components/ReactIcon.tsx", "../../../app/components/ComponentDetailSheet.tsx", "../../../app/components/ComponentDependencySection.tsx", "../../../app/hooks/useModulePages.ts", "../../../app/components/ComponentTableList.tsx", "../../../app/components/Footer.tsx", "../../../app/components/Unauthed.tsx", "../../../app/components/HubSpotIcon.tsx"],
|
|
4
|
-
"sourcesContent": ["import { StrictMode } from 'react';\nimport { renderOnServer } from '@hubspot/cms-js-internal';\nimport { DevServerUIData } from './lib/constants.js';\nimport App from './App.js';\n\nexport async function render(initialProps: DevServerUIData) {\n const html = await renderOnServer(\n <StrictMode>\n <App initialProps={initialProps} />\n </StrictMode>\n );\n return html;\n}\n", "import path from \"path\";\nimport { createHash } from \"crypto\";\nimport fs, { readFileSync, existsSync, readdirSync, lstatSync } from \"fs\";\nimport { join } from \"path/posix\";\nconst COMPONENT_EXTENSIONS = [\".jsx\", \".tsx\", \".js\", \".ts\"];\nconst ENTRY_POINTS_PATH = \"components/partials/\";\nconst MODULE_FOLDER_PATH = \"components/modules/\";\nconst VIRTUAL_ISLAND_RUNTIME = \"virtual:island-runtime\";\nconst VIRTUAL_CONFIG_SETUP = \"virtual:config-setup\";\nconst CSS_LANGS_RE = /\\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\\?)/;\nconst collectCssModules = (modulePathToStartWith, viteServer, cssModulesImported = /* @__PURE__ */ new Set()) => {\n const appModulesForPath = viteServer.moduleGraph.fileToModulesMap.get(\n modulePathToStartWith\n );\n if (!appModulesForPath || appModulesForPath.size === 0) {\n throw new Error(`No modules at: ${modulePathToStartWith}`);\n } else if (appModulesForPath.size > 1) {\n throw new Error(`More than one module at: ${modulePathToStartWith}`);\n }\n const appModule = Array.from(appModulesForPath.values())[0];\n const allServerSideModulesImported = /* @__PURE__ */ new Set();\n const newCssModules = [];\n const moduleQueue = Array.from(appModule.importedModules);\n for (const importedModule of moduleQueue) {\n if (allServerSideModulesImported.has(importedModule.id)) {\n continue;\n }\n allServerSideModulesImported.add(importedModule.id);\n const isCss = CSS_LANGS_RE.test(importedModule.file);\n const moduleModulesToQueue = Array.from(importedModule.importedModules);\n if (isCss && !cssModulesImported.has(importedModule)) {\n cssModulesImported.add(importedModule);\n newCssModules.push(importedModule);\n }\n moduleQueue.push(...moduleModulesToQueue);\n }\n return newCssModules;\n};\nfunction createPreloadLink(assetPath, basePath = \"\") {\n if (assetPath && assetPath[0] !== \"/\") {\n assetPath = `/${assetPath}`;\n }\n if (assetPath.endsWith(\".js\")) {\n return `<link rel=\"modulepreload\" crossorigin href=\"${basePath}${assetPath}\">`;\n } else if (CSS_LANGS_RE.test(assetPath)) {\n return `<link rel=\"stylesheet\" href=\"${basePath}${assetPath}?css\">`;\n } else if (assetPath.endsWith(\".woff\")) {\n return ` <link rel=\"preload\" href=\"${basePath}${assetPath}\" as=\"font\" type=\"font/woff\" crossorigin>`;\n } else if (assetPath.endsWith(\".woff2\")) {\n return ` <link rel=\"preload\" href=\"${basePath}${assetPath}\" as=\"font\" type=\"font/woff2\" crossorigin>`;\n } else if (assetPath.endsWith(\".gif\")) {\n return ` <link rel=\"preload\" href=\"${basePath}${assetPath}\" as=\"image\" type=\"image/gif\">`;\n } else if (assetPath.endsWith(\".jpg\") || assetPath.endsWith(\".jpeg\")) {\n return ` <link rel=\"preload\" href=\"${basePath}${assetPath}\" as=\"image\" type=\"image/jpeg\">`;\n } else if (assetPath.endsWith(\".png\")) {\n return ` <link rel=\"preload\" href=\"${basePath}${assetPath}\" as=\"image\" type=\"image/png\">`;\n } else {\n throw new Error(`Unknown preload type for ${assetPath}`);\n }\n}\nconst collectCssInDev = (modulePathToStartWith, viteServer, cssModulesImported = /* @__PURE__ */ new Set()) => {\n return `${collectCssModules(\n modulePathToStartWith,\n viteServer,\n cssModulesImported\n ).map((cssModule) => createPreloadLink(cssModule.url)).join(\"\\n\")}\n`;\n};\nconst badInlineJsChars = /[\\u2028\\u2029<>/]/g;\nconst inlineJsEscapeChars = {\n \"\\u2028\": \"\\\\u2028\",\n \"\\u2029\": \"\\\\u2029\",\n \"<\": \"\\\\u003C\",\n \">\": \"\\\\u003E\",\n \"/\": \"\\\\u002F\"\n};\nfunction escapeChar(unsafeChar) {\n return inlineJsEscapeChars[unsafeChar];\n}\nfunction escapeForInlineJS(input) {\n return input.replace(badInlineJsChars, escapeChar);\n}\nfunction jsonStringifyAndEscapeForInlineJS(input, { baseIndent = 0, jsonIndent = 2, prettyPrint = true } = {}) {\n const indentString = \" \".repeat(baseIndent);\n jsonIndent = prettyPrint ? jsonIndent : void 0;\n return escapeForInlineJS(JSON.stringify(input, null, jsonIndent)).replace(\n /\\n/gm,\n `\n${indentString}`\n );\n}\nlet viteRoot;\nlet viteCommand;\nfunction resolveIslandPlugin(islandsSet) {\n return {\n enforce: \"pre\",\n name: \"resolve-islands\",\n configResolved(config) {\n viteRoot = config.root;\n viteCommand = config.command;\n },\n load(id) {\n if (id.endsWith(\"?island\") || id.endsWith(\"?client\")) {\n const [idWithNoParam] = id.split(\"?\");\n const islandModuleImportPath = `${idWithNoParam}?client-entry`;\n const componentExtension = path.extname(idWithNoParam);\n const componentFilenameWithNoExtension = path.basename(\n idWithNoParam,\n componentExtension\n );\n const modulePath = idWithNoParam.replace(`${viteRoot}/`, \"\");\n const moduleId = (viteCommand === \"serve\" ? idWithNoParam : modulePath).concat(\"?client-entry\");\n if (islandsSet) {\n islandsSet.add(moduleId);\n }\n return `\n const moduleId = '${moduleId}';\n\n const lazyComponent = () => import('${islandModuleImportPath}');\n lazyComponent.moduleName = '${componentFilenameWithNoExtension}';\n lazyComponent.moduleId = moduleId;\n\n export default lazyComponent;\n `;\n }\n return null;\n }\n };\n}\nfunction resolveIslandToPlainModulePlugin(enabled = true) {\n return {\n enforce: \"pre\",\n name: \"resolve-islands-to-plain\",\n configResolved(config) {\n viteRoot = config.root;\n viteCommand = config.command;\n },\n async resolveId(id, importer, options) {\n if (enabled && (id.endsWith(\"?island\") || id.endsWith(\"?client\"))) {\n const newId = id.replace(\"?island\", \"\").replace(\"?client\", \"\");\n const resolution = await this.resolve(newId, importer, {\n skipSelf: true,\n ...options\n });\n if (resolution) {\n return resolution;\n }\n }\n return null;\n }\n };\n}\nfunction resolveIslandToPlainModuleNoopPlugin() {\n return resolveIslandToPlainModulePlugin(false);\n}\nconst clientRenderIsland = \"import type { RenderableIsland } from '@hubspot/cms-components';\\nimport * as cmsComponents from '@hubspot/cms-components';\\nimport { ClientRenderContextProvider } from '@hubspot/cms-components';\\nimport { Suspense } from 'react';\\nimport ReactDOMClient from 'react-dom/client';\\n\\nconst buildIslandIdentifierPrefix =\\n cmsComponents.buildIslandIdentifierPrefix || ((id) => id);\\n\\nexport function clientRenderIsland(\\n renderableIsland: RenderableIsland,\\n Component: React.ComponentType<any>\\n) {\\n const {\\n island,\\n rootElement,\\n postHydration,\\n pageUrl,\\n islands,\\n basePath,\\n WrapperModule,\\n } = renderableIsland;\\n let reactRoot: any;\\n\\n const rootOptions = {\\n // Ensure useId is unique across island roots\\n identifierPrefix: buildIslandIdentifierPrefix(renderableIsland.island.id),\\n };\\n\\n let innerComponent = <Component islandId={island.id} {...island.props} />;\\n if (WrapperModule) {\\n innerComponent = <WrapperModule>{innerComponent}</WrapperModule>;\\n }\\n\\n const elementsToHydrate = (\\n <Suspense fallback={`client hydrate fail/waiting for ${island.id}`}>\\n <ClientRenderContextProvider\\n pageUrl={pageUrl}\\n islands={islands}\\n onTopLevelHydrationFinish={postHydration}\\n island={island}\\n basePath={basePath}\\n >\\n {innerComponent}\\n </ClientRenderContextProvider>\\n </Suspense>\\n );\\n\\n if (island.clientOnly) {\\n reactRoot = ReactDOMClient.createRoot(rootElement, rootOptions);\\n reactRoot.render(elementsToHydrate);\\n } else {\\n reactRoot = ReactDOMClient.hydrateRoot(\\n rootElement,\\n elementsToHydrate,\\n rootOptions\\n );\\n }\\n return reactRoot;\\n}\\n\";\nconst virtualClientRenderIslandModuleId = \"virtual:clientRenderIsland.tsx\";\nfunction clientIslandEntryPlugin() {\n return {\n enforce: \"pre\",\n name: \"client-island-entry-plugin\",\n resolveId(id) {\n if (id === virtualClientRenderIslandModuleId) {\n return virtualClientRenderIslandModuleId;\n }\n return null;\n },\n load(id) {\n if (id.endsWith(\"?client-entry\")) {\n const [idWithNoParam] = id.split(\"?\");\n return `\n import { clientRenderIsland } from '${virtualClientRenderIslandModuleId}';\n import Component from '${idWithNoParam}';\n\n export function render(island) {\n return clientRenderIsland(island, Component)\n }\n\n export default Component;\n `;\n }\n if (id === virtualClientRenderIslandModuleId) {\n return clientRenderIsland;\n }\n return null;\n }\n };\n}\nconst scriptTagToLogServerMessages = (messagesForBrowser, groupLabel, nonceAttribute) => {\n if (!messagesForBrowser) {\n return \"\";\n }\n const consoleLines = [];\n for (const message of messagesForBrowser) {\n let funcString = \"console.log\";\n if (message.level === \"error\") {\n funcString = \"console.error\";\n }\n if (message.level === \"warn\") {\n funcString = \"console.warn\";\n }\n const argString = message.parameters.map((arg) => JSON.stringify(arg)).join(\", \");\n consoleLines.push(` ${funcString}(${argString});`);\n }\n let groupStart = \"\";\n let groupEnd = \"\";\n if (groupLabel !== void 0 && groupLabel !== null) {\n groupStart = `\n console.group(${JSON.stringify(groupLabel)});`;\n groupEnd = ` console.groupEnd()\n`;\n }\n return `<script ${nonceAttribute}>${groupStart}\n${consoleLines.join(\"\\n\")}\n${groupEnd}<\\/script>\n`;\n};\nconst getComponentExtension = (componentPath) => {\n const filteredExtensions = COMPONENT_EXTENSIONS.filter(\n (ext) => componentPath.endsWith(ext)\n );\n if (filteredExtensions.length === 1) {\n return filteredExtensions[0];\n }\n return void 0;\n};\nconst hasComponentExtension = (componentPath) => {\n return !!getComponentExtension(componentPath);\n};\nconst isStorybookStory = (componentPath) => {\n return !!path.basename(componentPath, path.extname(componentPath)).endsWith(\".stories\");\n};\nconst removeComponentExtension = (componentPath) => {\n const ext = getComponentExtension(componentPath);\n if (ext == null) {\n return componentPath;\n }\n return componentPath.slice(0, -1 * ext.length);\n};\nfunction getEntryPointHash(entryPoint) {\n return createHash(\"md5\").update(entryPoint).digest(\"hex\").slice(0, 6);\n}\nfunction getEntryPointHashWithIndexSuffix(entryPoint, index) {\n const renderIndexSuffix = index != null ? `i${index}` : \"\";\n return `${getEntryPointHash(entryPoint)}${renderIndexSuffix}`;\n}\nconst COMBINED_REACT_BASE_PATH = \"https://static.hsappstatic.net/cms-js-static/ex/js/react/v18\";\nconst ISLAND_RUNTIME_CONFIG_BASE_PATH = \"https://static.hsappstatic.net/cms-js-static/ex/js/island-runtime/v1\";\nfunction getCombinedReactUrl() {\n const hsEnv = process.env.HS_ENV;\n const fileVersion = hsEnv === \"prod\" ? `react-combined.mjs` : \"react-combined-qa.mjs\";\n return `${COMBINED_REACT_BASE_PATH}/${fileVersion}`;\n}\nfunction getIslandRuntimeConfigUrl() {\n const hsEnv = process.env.HS_ENV;\n const fileVersion = hsEnv === \"prod\" ? `island-runtime.mjs` : \"island-runtime-qa.mjs\";\n return `${ISLAND_RUNTIME_CONFIG_BASE_PATH}/${fileVersion}`;\n}\nfunction includesHublDataReference(templateSource) {\n const hublDataPattern = /\\{%\\s+set\\s+(experimentalHublData|hublData)\\s*=/;\n return !!templateSource.match(hublDataPattern);\n}\nconst removeIndexFromPath = (id) => {\n return id.replace(/\\/index\\.[jt]sx?$/, \"\");\n};\nconst removeIndexOrTrailingJsFromPath = (id) => {\n return removeIndexFromPath(id).replace(/\\.[jt]sx?$/, \"\");\n};\nconst HEALTHCHECKS_ENABLED_DEFAULT = true;\nconst HEALTHCHECKS_STRICT_DEFAULT = false;\nfunction getCMSAssetConfig(webRoot) {\n const cmsAssetsPath = path.join(webRoot, \"cms-assets.json\");\n const cmsThemePath = path.join(webRoot, \"theme.json\");\n const configPathToUse = fs.existsSync(cmsAssetsPath) ? cmsAssetsPath : cmsThemePath;\n const parsedConfig = JSON.parse(\n fs.readFileSync(configPathToUse).toString()\n );\n return parsedConfig;\n}\nfunction getCMSAssetConfigIfExists(webRoot) {\n try {\n return getCMSAssetConfig(webRoot);\n } catch (e) {\n console.error(\n `Error finding or parsing cms-assets.json in ${webRoot}, but ignoring for now`\n );\n return {};\n }\n}\nfunction areBuildHealthChecksEnabled(config) {\n var _a, _b;\n return ((_b = (_a = config.buildConfig) == null ? void 0 : _a.healthchecks) == null ? void 0 : _b.enabled) ?? HEALTHCHECKS_ENABLED_DEFAULT;\n}\nfunction doHealthChecksFailTheBuild(config) {\n var _a, _b;\n return ((_b = (_a = config.buildConfig) == null ? void 0 : _a.healthchecks) == null ? void 0 : _b.strict) ?? HEALTHCHECKS_STRICT_DEFAULT;\n}\nfunction getServerIncludePrebundleDepPatterns(config) {\n var _a, _b;\n return ((_b = (_a = config.buildConfig) == null ? void 0 : _a.serverPrebundling) == null ? void 0 : _b.include) ?? [];\n}\nconst BUILD_INFO_PATH = \"/build-info.json\";\nfunction getBuildInfo(buildDir) {\n try {\n const buildInfo = JSON.parse(\n readFileSync(path.join(buildDir, BUILD_INFO_PATH)).toString()\n );\n return buildInfo;\n } catch (e) {\n throw new Error(`Error loading build-info.json, path: ${BUILD_INFO_PATH}`);\n }\n}\nfunction getBaseAssetUrlFromBuild(buildDir) {\n return getBuildInfo(buildDir).baseAssetUrl;\n}\nconst GATES = [\n \"CMS:JSRenderer:GetServerSideProps\",\n \"CMS:JSRenderer:ModuleHubl\",\n \"CMS:JSRenderer:RemoveCjsPlugin\",\n \"CMS:JSRenderer:RemoveMockClientEntryPlugin\",\n \"CMS:JSRenderer:AnalyzeCmsModules\",\n \"CMS:JSRenderer:ClientOnlySupplementalFieldSerialization\",\n \"CMS:React:UnifiedThemePreview\"\n];\nconst ENABLED_FEATURES_GATE_MAP = {\n \"cms:jsr:getServerSideProps\": \"CMS:JSRenderer:GetServerSideProps\",\n \"cms:jsr:RemoveCjsPlugin\": \"CMS:JSRenderer:RemoveCjsPlugin\",\n \"cms:jsr:analyzeCmsModules\": \"CMS:JSRenderer:AnalyzeCmsModules\",\n \"cms:jsr:clientOnlySupplementalFieldSerialization\": \"CMS:JSRenderer:ClientOnlySupplementalFieldSerialization\",\n \"cms:react:unifiedThemePreview\": \"CMS:React:UnifiedThemePreview\"\n};\nfunction isUngatedFor(gates, gate) {\n return gates.includes(gate);\n}\nfunction ungatedAtBuildTimeFor(buildDir, gate) {\n try {\n const buildInfo = getBuildInfo(buildDir);\n return isUngatedFor(buildInfo.gates, gate);\n } catch (e) {\n return false;\n }\n}\nconst findAllComponentsIn = (webRoot, componentsFolder) => {\n const fullComponentsFolderPath = join(webRoot, componentsFolder);\n const componentsByName = {};\n if (!existsSync(fullComponentsFolderPath)) {\n return componentsByName;\n }\n readdirSync(fullComponentsFolderPath).forEach((fileOrFolderName) => {\n const fullPath = join(fullComponentsFolderPath, fileOrFolderName);\n const subdirPath = join(componentsFolder, fileOrFolderName);\n const isDirectory = lstatSync(fullPath).isDirectory();\n if (!isDirectory && hasComponentExtension(fileOrFolderName) && !isStorybookStory(fileOrFolderName)) {\n const subdirPathNoExtension = removeComponentExtension(subdirPath);\n componentsByName[subdirPathNoExtension] = subdirPath;\n } else if (isDirectory) {\n for (const potentialExtension of COMPONENT_EXTENSIONS) {\n const potentialIndexModule = join(\n subdirPath,\n `index${potentialExtension}`\n );\n const fullPotentialPath = join(\n fullPath,\n `index${potentialExtension}`\n );\n if (existsSync(fullPotentialPath)) {\n const moduleIndexPathNoExtension = removeComponentExtension(potentialIndexModule);\n componentsByName[moduleIndexPathNoExtension] = potentialIndexModule;\n break;\n }\n }\n }\n });\n return componentsByName;\n};\nfunction findAllModulesInRoot(webRoot) {\n const allModuleComponents = findAllComponentsIn(\n webRoot,\n \"./components/modules\"\n );\n const moduleNames = Object.keys(allModuleComponents).map(\n (moduleSubpath) => moduleSubpath.replace(\"components/modules/\", \"\").replace(\"/index\", \"\")\n );\n const moduleSubpaths = Object.keys(allModuleComponents);\n const moduleExtensions = Object.values(allModuleComponents).map((path2) => {\n if (!path2) return \"\";\n const extension = path2.split(\".\").pop() || \"\";\n return extension;\n });\n const moduleNamesWithExtension = Object.values(allModuleComponents).map(\n (path2) => {\n if (!path2) return \"\";\n const file = path2.replace(\"components/modules/\", \"\");\n return file.includes(\"/index.\") ? file.split(\"/index.\")[0] : file;\n }\n );\n return {\n moduleNames,\n moduleSubpaths,\n moduleNamesWithExtension,\n moduleExtensions\n };\n}\nfunction findAllPartialsInRoot(webRoot) {\n const allPartialComponents = findAllComponentsIn(\n webRoot,\n \"./components/partials\"\n );\n const partialNames = Object.keys(allPartialComponents).map(\n (partialSubpath) => partialSubpath.replace(\"components/partials/\", \"\").replace(\"/index\", \"\")\n );\n const partialSubpaths = Object.keys(allPartialComponents);\n return { partialNames, partialSubpaths };\n}\nfunction namespaceModulePropsShape(props) {\n const {\n dataQueryResult,\n hublParameters,\n fieldValues: passedFieldValues,\n hublData,\n experimentalHublData,\n moduleName,\n supplementalFieldValues\n } = props;\n const oldPropsShape = { ...props };\n if (oldPropsShape.dataQueryResult) {\n delete oldPropsShape.dataQueryResult;\n }\n if (oldPropsShape.hublParameters) {\n delete oldPropsShape.hublParameters;\n }\n const fieldValues = passedFieldValues || oldPropsShape;\n return {\n ...fieldValues,\n dataQueryResult,\n fieldValues,\n hublParameters,\n hublData,\n experimentalHublData,\n moduleName,\n supplementalFieldValues\n };\n}\nfunction setIn(object, nestedKeysArray, value) {\n let curr = object;\n const finalKey = nestedKeysArray.pop();\n for (let index = 0; index < nestedKeysArray.length; index++) {\n const currentKey = nestedKeysArray[index];\n const nextKey = nestedKeysArray[index + 1];\n if (Number.isInteger(nextKey) || !nextKey && Number.isInteger(finalKey)) {\n if (curr[currentKey] === void 0) {\n curr[currentKey] = [];\n }\n }\n if (curr[currentKey] === void 0) {\n curr[currentKey] = {};\n }\n curr = curr[currentKey];\n }\n if (value !== void 0) {\n curr[finalKey] = value;\n }\n}\nfunction isStylesheetAsset(staticAsset) {\n return staticAsset.type === \"stylesheet\";\n}\nexport {\n areBuildHealthChecksEnabled as A,\n doHealthChecksFailTheBuild as B,\n getServerIncludePrebundleDepPatterns as C,\n isUngatedFor as D,\n ENABLED_FEATURES_GATE_MAP as E,\n ungatedAtBuildTimeFor as F,\n GATES as G,\n escapeForInlineJS as H,\n jsonStringifyAndEscapeForInlineJS as I,\n COMPONENT_EXTENSIONS as J,\n ENTRY_POINTS_PATH as K,\n VIRTUAL_CONFIG_SETUP as L,\n MODULE_FOLDER_PATH as M,\n CSS_LANGS_RE as N,\n isStylesheetAsset as O,\n getBuildInfo as P,\n getBaseAssetUrlFromBuild as Q,\n VIRTUAL_ISLAND_RUNTIME as V,\n findAllModulesInRoot as a,\n findAllPartialsInRoot as b,\n collectCssInDev as c,\n collectCssModules as d,\n resolveIslandToPlainModulePlugin as e,\n findAllComponentsIn as f,\n resolveIslandToPlainModuleNoopPlugin as g,\n clientIslandEntryPlugin as h,\n getComponentExtension as i,\n hasComponentExtension as j,\n isStorybookStory as k,\n removeComponentExtension as l,\n getEntryPointHash as m,\n namespaceModulePropsShape as n,\n getEntryPointHashWithIndexSuffix as o,\n getCombinedReactUrl as p,\n getIslandRuntimeConfigUrl as q,\n resolveIslandPlugin as r,\n setIn as s,\n scriptTagToLogServerMessages as t,\n includesHublDataReference as u,\n virtualClientRenderIslandModuleId as v,\n removeIndexFromPath as w,\n removeIndexOrTrailingJsFromPath as x,\n getCMSAssetConfig as y,\n getCMSAssetConfigIfExists as z\n};\n", "import { I as jsonStringifyAndEscapeForInlineJS, t as scriptTagToLogServerMessages } from \"./types-CsJ4tzsl.js\";\nimport { J, N, E, K, G, M, L, V, A, h, c, d, B, H, f, a, b, Q, P, y, z, p, i, m, o, q, C, j, u, k, O, D, n, l, w, x, r, g, e, s, F, v } from \"./types-CsJ4tzsl.js\";\nimport * as dotProp from \"dot-prop\";\nimport * as parser from \"@babel/parser\";\nimport _traverse from \"@babel/traverse\";\nimport * as t from \"@babel/types\";\nimport { jsx } from \"react/jsx-runtime\";\nimport stream from \"stream\";\nimport { renderToPipeableStream, renderToStaticMarkup } from \"react-dom/server\";\nimport * as cmsComponents from \"@hubspot/cms-components\";\nimport { ServerRenderContext } from \"@hubspot/cms-components\";\nimport { isValidElement, cloneElement } from \"react\";\nconst { setProperty, getProperty, hasProperty } = dotProp;\nconst serializeIslandDataForInlineScript = (tweakedIslandsArray, perServerRequestData, baseIndent = 0, prettyPrint, isUngatedForClientOnlySupplementalFieldSerialization = false) => {\n const islandsArrayToSerialize = tweakedIslandsArray.map(\n ({\n id,\n moduleName,\n moduleId,\n props,\n hydrateOn,\n clientOnly,\n priority,\n url,\n sharedStateID,\n supplementalFieldValues,\n wrapperModuleId,\n wrapperUrl\n }) => {\n const output = {\n id,\n moduleName,\n moduleId,\n hydrateOn,\n clientOnly,\n priority,\n props,\n url\n };\n if (sharedStateID) {\n output.sharedStateID = sharedStateID;\n }\n if (wrapperModuleId) {\n output.wrapperModuleId = wrapperModuleId;\n }\n if (wrapperUrl) {\n output.wrapperUrl = wrapperUrl;\n }\n const filteredSupplementalFieldValues = filterOutUnreadSupplementalFieldValues(\n supplementalFieldValues,\n perServerRequestData.get(\"supplementalFieldValuesRead\")\n );\n if (filteredSupplementalFieldValues) {\n output.supplementalFieldValues = filteredSupplementalFieldValues;\n }\n if (isUngatedForClientOnlySupplementalFieldSerialization && output.clientOnly) {\n output.supplementalFieldValues = supplementalFieldValues;\n }\n if (output.supplementalFieldValues) {\n output.supplementalFieldValues = Object.keys(\n output.supplementalFieldValues\n ).sort().reduce((acc, key) => {\n acc[key] = output.supplementalFieldValues[key];\n return acc;\n }, {});\n }\n return output;\n }\n );\n return jsonStringifyAndEscapeForInlineJS(islandsArrayToSerialize, {\n baseIndent,\n jsonIndent: 2,\n prettyPrint\n });\n};\nfunction filterOutUnreadSupplementalFieldValues(supplementalFieldValues, supplementalFieldValuesRead) {\n if (!supplementalFieldValues) {\n return supplementalFieldValues;\n }\n if (!supplementalFieldValuesRead) {\n return supplementalFieldValues;\n }\n const result = {};\n Array.from(supplementalFieldValuesRead).forEach((fieldPath) => {\n if (hasProperty(supplementalFieldValues, fieldPath)) {\n setProperty(\n result,\n fieldPath,\n getProperty(supplementalFieldValues, fieldPath)\n );\n }\n });\n return result;\n}\nconst writeSharedStateToJsGlobal = (islands, perServerRequestData, indent = 0, prettyPrint) => {\n const sharedStateIDs = islands.map((island) => island.sharedStateID).filter((x2) => !!x2);\n if (sharedStateIDs.length > 0) {\n const indentString = \" \".repeat(indent);\n const stateByID = {};\n sharedStateIDs.forEach(\n (id) => stateByID[id] = perServerRequestData.get(id)\n );\n const stringifiedState = jsonStringifyAndEscapeForInlineJS(stateByID, {\n prettyPrint,\n jsonIndent: 2\n });\n return `\n\nvar newState = ${stringifiedState};\nif(window.__hsSSInit) {\n window.__hsSSInit = Object.assign(window.__hsSSInit, newState);\n} else {\n window.__hsSSInit = newState;\n}`.replace(/\\n/gm, `\n${indentString}`);\n }\n return \"\";\n};\nfunction getIslandUrls(roots, viteDevServer) {\n return roots.map((island) => {\n const islandModule = viteDevServer.moduleGraph.getModuleById(\n island.moduleId\n );\n if (!islandModule) {\n throw new Error(`Unknown island moduleId: ${island.moduleId}`);\n }\n let wrapperModule;\n if (island.wrapperModuleId) {\n wrapperModule = viteDevServer.moduleGraph.getModuleById(\n island.wrapperModuleId\n );\n }\n const tweakedIsland = {\n ...island,\n url: islandModule.url,\n wrapperUrl: wrapperModule ? wrapperModule.url : void 0\n };\n return tweakedIsland;\n });\n}\nfunction getPerServerRequestUrls(perServerRequestData, viteDevServer) {\n if (!perServerRequestData.has(\"sharedStateIDs\")) {\n return new Map(perServerRequestData);\n }\n const perServerRequestDataWithUrls = new Map(\n perServerRequestData\n );\n perServerRequestData.get(\"sharedStateIDs\").forEach((id) => {\n const reducer = perServerRequestData.get(id);\n if (reducer.reducerFuncModuleId) {\n const reducerWithUrl = {\n ...reducer,\n reducerFuncModuleUrl: viteDevServer.moduleGraph.getModuleById(\n reducer.reducerFuncModuleId\n ).url\n };\n perServerRequestDataWithUrls.set(id, reducerWithUrl);\n }\n });\n return perServerRequestDataWithUrls;\n}\nconst createIslandsGlobalJsForClientInDev = (roots, perServerRequestData, viteDevServer, indent, prettyPrint, isUngatedForClientOnlySupplementalFieldSerialization = false) => {\n const islands = getIslandUrls(roots, viteDevServer);\n const perServerRequestDataWithUrls = getPerServerRequestUrls(\n perServerRequestData,\n viteDevServer\n );\n return `${\" \".repeat(\n indent\n )}window.__islands = ${serializeIslandDataForInlineScript(\n islands,\n perServerRequestData,\n indent,\n prettyPrint,\n isUngatedForClientOnlySupplementalFieldSerialization\n )}${writeSharedStateToJsGlobal(\n islands,\n perServerRequestDataWithUrls,\n indent,\n prettyPrint\n )}`;\n};\nfunction noncePlaceholderPlugin() {\n const HS_DEPLOYED = process.env.AWS_EXECUTION_ENV != null || process.env.HS_DEPLOYED === \"true\";\n return {\n name: \"hs-nonce-placeholder\",\n enforce: \"post\",\n apply() {\n return HS_DEPLOYED;\n },\n transformIndexHtml(html) {\n const regex = /<(style|script|link) (.*)>/gi;\n const replacer = (_, p1, p2) => {\n if (p1 === \"style\" || p1 === \"script\" || // if link, only nonce for stylesheet\n p1 === \"link\" && p2.includes('rel=\"stylesheet\"')) {\n const noncePlaceholderValue = p1 === \"script\" ? \"hs-random-nonce\" : \"hs-random-style-nonce\";\n p2 = `nonce=\"${noncePlaceholderValue}\" ${p2}`;\n }\n return `<${p1} ${p2}>`;\n };\n return html.replace(regex, replacer);\n }\n };\n}\nconst traverse = _traverse.default;\nconst CMS_MODULE_COMPONENT_NAME = \"Module\";\nconst DND_AREA_COMPONENT_NAME = \"DndArea\";\nconst PLUGIN_NAME = \"findCmsModules\";\nfunction findCmsModules(buildContentDescriptors = {}) {\n let config;\n return {\n enforce: \"pre\",\n name: \"findCmsModules\",\n configResolved(resolvedConfig) {\n config = resolvedConfig;\n },\n transform(code, id) {\n const moduleInfo = this.getModuleInfo(id);\n if (!shouldAnalyzeModule(config, moduleInfo, code)) return null;\n const contentDescriptors = analyzeSourceCodeUsages(\n this,\n moduleInfo,\n config,\n code\n );\n if (Object.keys(contentDescriptors.dndAreas).length > 0 || Object.keys(contentDescriptors.modules).length > 0) {\n return {\n meta: {\n findCmsModules: contentDescriptors\n }\n };\n }\n },\n buildEnd(error) {\n if (error) throw error;\n const entryPoints = getEntryPoints(this, config);\n const entryPointCmsModuleMap = buildEntryPointsCmsModuleMap(\n this,\n entryPoints\n );\n const relativeEntryPointCmsModuleMap = convertEntryPointPathsToRelative(\n config,\n entryPointCmsModuleMap\n );\n const entryPointIslandCmsModuleMap = buildEntryPointIslandsCmsModuleMap(\n this,\n entryPoints\n );\n const relativeEntryPointIslandCmsModuleMap = convertEntryPointIslandPathsToRelative(\n config,\n entryPointIslandCmsModuleMap\n );\n if (Object.keys(relativeEntryPointIslandCmsModuleMap).length > 0) {\n this.error(`\n Error: <Module /> cannot be used within <Island />\n Found invalid usages:\n ${JSON.stringify(relativeEntryPointIslandCmsModuleMap, null, 2)}\n `);\n }\n const modulesWithinModules = filterEntryPointsToModules(\n relativeEntryPointCmsModuleMap\n );\n if (Object.keys(modulesWithinModules).length > 0) {\n this.error(`\n Error: <Module /> can only be used in React Partials\n Found invalid usages:\n ${JSON.stringify(modulesWithinModules, null, 2)}\n `);\n }\n Object.assign(buildContentDescriptors, relativeEntryPointCmsModuleMap);\n }\n };\n}\nfunction convertEntryPointPathsToRelative(config, entryPointsCmsModuleMap) {\n const relativeEntries = Object.entries(entryPointsCmsModuleMap).map(\n ([entryPointPath, cmsModules]) => {\n return [toRelativePath(config, entryPointPath), cmsModules];\n }\n );\n return Object.fromEntries(relativeEntries);\n}\nfunction convertEntryPointIslandPathsToRelative(config, entryPointsCmsModuleMap) {\n const relativeEntries = Object.entries(entryPointsCmsModuleMap).map(\n ([entryPointPath, islandContentDescriptors]) => {\n const islandCmsModuleUsage = Object.fromEntries(\n Object.entries(islandContentDescriptors).map(\n ([islandPath, contentDescriptors]) => {\n return [\n toRelativePath(config, islandPath).replace(\"?client-entry\", \"\"),\n contentDescriptors\n ];\n }\n )\n );\n return [toRelativePath(config, entryPointPath), islandCmsModuleUsage];\n }\n );\n return Object.fromEntries(relativeEntries);\n}\nfunction toRelativePath(config, path) {\n return path.replace(`${config.root}/`, \"\");\n}\nfunction shouldAnalyzeModule(config, moduleInfo, code) {\n const [fileId, __] = moduleInfo.id.split(\"?\");\n const isExternal = config.command !== \"serve\" && moduleInfo.isExternal;\n return (\n // analyze customer code only\n !isExternal && moduleInfo.id.startsWith(config.root) && // jsx files that contain \"Module\" / \"DndArea\"\n (fileId.endsWith(\".tsx\") || fileId.endsWith(\".jsx\")) && (code.includes(CMS_MODULE_COMPONENT_NAME) || code.includes(DND_AREA_COMPONENT_NAME))\n );\n}\nfunction getEntryPoints(ctx, config) {\n return Array.from(ctx.getModuleIds()).filter((moduleId) => moduleId.startsWith(config.root)).map((moduleId) => ctx.getModuleInfo(moduleId)).filter((moduleInfo) => moduleInfo.isEntry);\n}\nfunction buildEntryPointsCmsModuleMap(ctx, entryPoints) {\n const entryPointCmsModuleUsage = {};\n for (const entryPoint of entryPoints) {\n const result = findCmsModuleUsages(ctx, entryPoint.id);\n if (result) {\n entryPointCmsModuleUsage[entryPoint.id] = result;\n }\n }\n return entryPointCmsModuleUsage;\n}\nfunction buildEntryPointIslandsCmsModuleMap(ctx, entryPoints) {\n const entryPointIslandsCmsModuleMap = {};\n for (const entryPoint of entryPoints) {\n const result = findIslandCmsModuleUsage(ctx, entryPoint.id);\n if (result) {\n entryPointIslandsCmsModuleMap[entryPoint.id] = result;\n }\n }\n return entryPointIslandsCmsModuleMap;\n}\nfunction analyzeSourceCodeUsages(ctx, moduleInfo, config, code) {\n const sourceAst = parser.parse(code, {\n sourceType: \"module\",\n plugins: [\"jsx\", \"typescript\"]\n });\n const contentDescriptors = { modules: {}, dndAreas: {} };\n let moduleComponentLocalImportName = CMS_MODULE_COMPONENT_NAME;\n let dndAreaComponentLocalImportName = DND_AREA_COMPONENT_NAME;\n traverse(sourceAst, {\n ImportDeclaration(path) {\n if (t.isStringLiteral(path.node.source, {\n value: \"@hubspot/cms-components\"\n })) {\n for (const specifier of path.node.specifiers) {\n if (t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported, {\n name: CMS_MODULE_COMPONENT_NAME\n })) {\n moduleComponentLocalImportName = specifier.local.name;\n }\n if (t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported, {\n name: DND_AREA_COMPONENT_NAME\n })) {\n dndAreaComponentLocalImportName = specifier.local.name;\n }\n }\n }\n },\n JSXOpeningElement(path) {\n if (t.isJSXIdentifier(path.node.name, {\n name: moduleComponentLocalImportName\n })) {\n let cmsModuleName;\n let cmsModulePath;\n let cmsModuleLabel;\n for (const prop of path.node.attributes) {\n if (t.isJSXAttribute(prop) && t.isJSXIdentifier(prop.name, { name: \"name\" }) && t.isStringLiteral(prop.value)) {\n cmsModuleName = prop.value.value;\n continue;\n }\n if (t.isJSXAttribute(prop) && t.isJSXIdentifier(prop.name, { name: \"path\" }) && t.isStringLiteral(prop.value)) {\n cmsModulePath = prop.value.value;\n continue;\n }\n if (t.isJSXAttribute(prop) && t.isJSXIdentifier(prop.name, { name: \"label\" }) && t.isStringLiteral(prop.value)) {\n cmsModuleLabel = prop.value.value;\n continue;\n }\n ctx.error(\n new Error(\n `Error: ${moduleInfo.id.replace(config.root, \"\")}:${prop.loc.start.line} \"name\" and \"path\" must be primitive strings`\n )\n );\n }\n const cmsModuleProps = {\n name: cmsModuleName,\n path: cmsModulePath\n };\n if (cmsModuleLabel) {\n cmsModuleProps.label = cmsModuleLabel;\n }\n if (Object.hasOwn(contentDescriptors.modules, cmsModuleProps.name)) {\n ctx.error(\n new Error(\n `Error: multiple <${CMS_MODULE_COMPONENT_NAME} /> with duplicate name: ${cmsModuleProps.name}`\n )\n );\n }\n contentDescriptors.modules[cmsModuleProps.name] = cmsModuleProps;\n }\n if (t.isJSXIdentifier(path.node.name, {\n name: dndAreaComponentLocalImportName\n })) {\n let dndAreaName;\n for (const prop of path.node.attributes) {\n if (t.isJSXAttribute(prop) && t.isJSXIdentifier(prop.name, { name: \"name\" }) && t.isStringLiteral(prop.value)) {\n dndAreaName = prop.value.value;\n continue;\n }\n ctx.error(\n new Error(\n `Error: ${moduleInfo.id.replace(config.root, \"\")}:${prop.loc.start.line} \"name\" must a primitive string`\n )\n );\n }\n const dndArea = {\n name: dndAreaName\n };\n if (Object.hasOwn(contentDescriptors.dndAreas, dndArea.name)) {\n ctx.error(\n new Error(\n `Error: multiple <${DND_AREA_COMPONENT_NAME} /> with duplicate name: ${dndArea.name}`\n )\n );\n }\n contentDescriptors.dndAreas[dndArea.name] = dndArea;\n }\n }\n });\n return contentDescriptors;\n}\nfunction findCmsModuleUsages(ctx, moduleId, processed = /* @__PURE__ */ new Set(), result = {}) {\n if (Object.hasOwn(result, moduleId)) {\n return result[moduleId];\n }\n const moduleInfo = ctx.getModuleInfo(moduleId);\n let entryPointContentDescriptors = null;\n if (Object.hasOwn(moduleInfo.meta, PLUGIN_NAME)) {\n entryPointContentDescriptors = {\n ...entryPointContentDescriptors,\n ...moduleInfo.meta[PLUGIN_NAME]\n };\n }\n for (const importedId of [\n ...moduleInfo.importedIds,\n ...moduleInfo.dynamicallyImportedIds\n ]) {\n if (processed.has(importedId)) {\n continue;\n }\n const importedResult = findCmsModuleUsages(\n ctx,\n importedId,\n processed,\n result\n );\n if (importedResult) {\n entryPointContentDescriptors = {\n ...entryPointContentDescriptors,\n ...importedResult\n };\n }\n }\n if (entryPointContentDescriptors) {\n result[moduleId] = entryPointContentDescriptors;\n }\n processed.add(moduleId);\n return entryPointContentDescriptors;\n}\nfunction findIslandCmsModuleUsage(ctx, moduleId, processedIslands = /* @__PURE__ */ new Set(), islandModuleResults = {}, processed = /* @__PURE__ */ new Set(), results = {}) {\n processedIslands.add(moduleId);\n if (Object.hasOwn(islandModuleResults, moduleId)) {\n return islandModuleResults[moduleId];\n }\n const moduleInfo = ctx.getModuleInfo(moduleId);\n let resultForModuleId = {};\n if (moduleInfo.id.endsWith(\"?client-entry\")) {\n const mergedDataDependencies = findCmsModuleUsages(\n ctx,\n moduleInfo.id,\n processed,\n results\n );\n if (mergedDataDependencies) {\n resultForModuleId[moduleInfo.id] = mergedDataDependencies;\n }\n }\n for (const importedId of [\n ...moduleInfo.importedIds,\n ...moduleInfo.dynamicallyImportedIds\n ]) {\n if (processedIslands.has(importedId)) {\n continue;\n }\n const importerCmsModuleUsageResult = findIslandCmsModuleUsage(\n ctx,\n importedId,\n processedIslands,\n islandModuleResults,\n processed,\n results\n );\n if (importerCmsModuleUsageResult) {\n resultForModuleId = {\n ...resultForModuleId,\n ...importerCmsModuleUsageResult\n };\n }\n }\n if (Object.keys(resultForModuleId).length > 0) {\n islandModuleResults[moduleId] = resultForModuleId;\n return resultForModuleId;\n }\n return null;\n}\nfunction filterEntryPointsToModules(entryPointCmsModuleMap) {\n return Object.fromEntries(\n Object.entries(entryPointCmsModuleMap).filter(\n ([entryPoint]) => entryPoint.startsWith(\"components/modules/\")\n )\n );\n}\nconst promiseForNewWritableStream = () => {\n const chunks = [];\n const writableStream = new stream.Writable();\n writableStream._write = (chunk, encoding, done) => {\n chunks.push(Buffer.from(chunk));\n done();\n };\n const streamDonePromise = new Promise((resolve, reject) => {\n writableStream.on(\"error\", (error) => {\n reject(error);\n });\n writableStream._final = (done) => {\n resolve(Buffer.concat(chunks).toString(\"utf8\"));\n done();\n };\n });\n return { streamDonePromise, writableStream };\n};\nconst renderStreamToPromise = async (reactElements, options) => {\n const { streamDonePromise, writableStream } = promiseForNewWritableStream();\n const {\n pipe\n /* abort */\n } = renderToPipeableStream(reactElements, {\n ...options || {},\n onShellReady() {\n },\n onAllReady() {\n pipe(writableStream);\n if (options == null ? void 0 : options.onAllReady) {\n options.onAllReady();\n }\n }\n });\n return streamDonePromise;\n};\nconst {\n createServerRenderContextV2,\n createServerRenderContext,\n renderServerSidePropsWithAsyncLocalStoreContext\n} = cmsComponents;\nconst bootStrapRenderContext = () => {\n const renderContext = createServerRenderContextV2 ? createServerRenderContextV2(null, {\n environmentConfig: null,\n entryPointBasePath: \"\",\n supplementalFieldValues: {},\n messagesForBrowser: []\n }) : createServerRenderContext(\"\", null);\n return renderContext;\n};\nasync function renderComponentOnServer(Component, propsAndDeps, pageUrl, environmentConfig, entryPointBasePath, contextOptions, renderOptions, getServerSideProps) {\n const { props } = propsAndDeps;\n const componentDebugName = Component.displayName || Component.name;\n const supplementalFieldValues = contextOptions == null ? void 0 : contextOptions.supplementalFieldValues;\n const messagesForBrowser = contextOptions == null ? void 0 : contextOptions.messagesForBrowser;\n const renderContext = cmsComponents.createServerRenderContextV2 ? cmsComponents.createServerRenderContextV2(pageUrl, {\n environmentConfig,\n entryPointBasePath,\n supplementalFieldValues,\n messagesForBrowser\n }) : cmsComponents.createServerRenderContext(pageUrl, environmentConfig);\n if (getServerSideProps !== void 0 && typeof getServerSideProps === \"function\") {\n const gSSPResult = await renderServerSidePropsWithAsyncLocalStoreContext(\n getServerSideProps,\n propsAndDeps,\n renderContext\n );\n if (gSSPResult) {\n props.serverSideProps = gSSPResult.serverSideProps;\n }\n }\n return renderOnServer(\n /* @__PURE__ */ jsx(Component, { ...props }),\n renderContext,\n componentDebugName,\n renderOptions\n );\n}\nasync function renderOnServer(elements, renderContext = bootStrapRenderContext(), debugName, renderOptions) {\n let html = await renderStreamToPromise(\n /* @__PURE__ */ jsx(ServerRenderContext.Provider, { value: renderContext, children: elements }),\n renderOptions\n );\n if (renderContext.messagesForBrowser.length > 0) {\n html = `${html}${scriptTagToLogServerMessages(\n renderContext.messagesForBrowser,\n `Server messages rendering: ${debugName}`\n )}`;\n }\n return { html, renderContext };\n}\nfunction getServerGlobalsToInject(environmentConfig, hsServerPageUrl, hsBasePath, prettyPrint, criticalDevErrors, includeNonces) {\n if (prettyPrint === void 0 && hsServerPageUrl && cmsComponents.isDebugUrlString) {\n prettyPrint = cmsComponents.isDebugUrlString(hsServerPageUrl);\n }\n const serializedJson = jsonStringifyAndEscapeForInlineJS(\n environmentConfig.toJSON(),\n { baseIndent: 6, prettyPrint }\n );\n const globals = [`window.__hsEnvConfig = ${serializedJson};`];\n if (hsServerPageUrl) {\n globals.push(\n `window.__hsServerPageUrl = ${jsonStringifyAndEscapeForInlineJS(\n hsServerPageUrl\n )};`\n );\n }\n if (hsBasePath) {\n globals.push(\n `window.__hsBasePath = ${jsonStringifyAndEscapeForInlineJS(hsBasePath)};`\n );\n }\n if (!environmentConfig.getIsDeployed() && (criticalDevErrors == null ? void 0 : criticalDevErrors.length)) {\n const firstCriticalDevError = criticalDevErrors[0];\n globals.push(`\n customElements.whenDefined('vite-error-overlay').then(() => {\n const ErrorOverlay = customElements.get('vite-error-overlay');\n const error = new Error(${jsonStringifyAndEscapeForInlineJS(\n firstCriticalDevError.message\n )});\n const overlay = new ErrorOverlay(error);\n\n document.body.appendChild(overlay);\n })\n `);\n }\n const nonceAttr = includeNonces && cmsComponents.SCRIPT_NONCE_PLACEHOLDER ? ` nonce=\"${cmsComponents.SCRIPT_NONCE_PLACEHOLDER}\"` : \"\";\n return `\n <script type=\"text/javascript\"${nonceAttr}>\n ${globals.join(\"\\n \")}\n <\\/script>\n `;\n}\nfunction renderFieldsJSX(fieldsJSX) {\n let moduleJson;\n const outputCallback = (callbackJson) => {\n moduleJson = callbackJson;\n };\n renderToStaticMarkup(\n cloneElement(fieldsJSX, {\n outputCallback\n })\n );\n if (!moduleJson) {\n throw new Error(\"couldn't render module fields definition to fields.json\");\n }\n return moduleJson;\n}\nfunction renderFieldsToJson(fields, moduleName) {\n let fieldsJSON;\n try {\n if (isValidElement(fields)) {\n fieldsJSON = renderFieldsJSX(fields);\n } else if (Array.isArray(fields)) {\n fieldsJSON = fields;\n } else {\n throw new Error(\n `Couldn't recognize \\`fields\\` value for module ${moduleName}`\n );\n }\n return fieldsJSON;\n } catch (e2) {\n e2.message = `Error when rendering fields for ${moduleName}: ${e2.message}`;\n throw e2;\n }\n}\nexport {\n J as COMPONENT_EXTENSIONS,\n N as CSS_LANGS_RE,\n E as ENABLED_FEATURES_GATE_MAP,\n K as ENTRY_POINTS_PATH,\n G as GATES,\n M as MODULE_FOLDER_PATH,\n L as VIRTUAL_CONFIG_SETUP,\n V as VIRTUAL_ISLAND_RUNTIME,\n A as areBuildHealthChecksEnabled,\n h as clientIslandEntryPlugin,\n c as collectCssInDev,\n d as collectCssModules,\n createIslandsGlobalJsForClientInDev,\n B as doHealthChecksFailTheBuild,\n H as escapeForInlineJS,\n f as findAllComponentsIn,\n a as findAllModulesInRoot,\n b as findAllPartialsInRoot,\n findCmsModules,\n Q as getBaseAssetUrlFromBuild,\n P as getBuildInfo,\n y as getCMSAssetConfig,\n z as getCMSAssetConfigIfExists,\n p as getCombinedReactUrl,\n i as getComponentExtension,\n m as getEntryPointHash,\n o as getEntryPointHashWithIndexSuffix,\n q as getIslandRuntimeConfigUrl,\n getIslandUrls,\n getServerGlobalsToInject,\n C as getServerIncludePrebundleDepPatterns,\n j as hasComponentExtension,\n u as includesHublDataReference,\n k as isStorybookStory,\n O as isStylesheetAsset,\n D as isUngatedFor,\n jsonStringifyAndEscapeForInlineJS,\n n as namespaceModulePropsShape,\n noncePlaceholderPlugin,\n l as removeComponentExtension,\n w as removeIndexFromPath,\n x as removeIndexOrTrailingJsFromPath,\n renderComponentOnServer,\n renderFieldsToJson,\n renderOnServer,\n renderStreamToPromise,\n r as resolveIslandPlugin,\n g as resolveIslandToPlainModuleNoopPlugin,\n e as resolveIslandToPlainModulePlugin,\n scriptTagToLogServerMessages,\n serializeIslandDataForInlineScript,\n s as setIn,\n F as ungatedAtBuildTimeFor,\n v as virtualClientRenderIslandModuleId\n};\n", "import { useState } from 'react';\nimport { DevServerUIData } from './lib/constants.js';\nimport { TooltipProvider } from '@radix-ui/react-tooltip';\nimport Hero from './components/Hero.js';\nimport ComponentTableList from './components/ComponentTableList.js';\nimport Footer from './components/Footer.js';\nimport Unauthed from './components/Unauthed.js';\n\nexport default function App({\n initialProps,\n}: {\n initialProps: DevServerUIData;\n}) {\n const {\n projectName,\n authedEnv,\n authedPortalId,\n modulesData,\n hubLModules,\n partialsData,\n hubLTemplates,\n webRootProjectComponentFolder,\n themeWebRoot,\n } = initialProps;\n\n const [showUnauthed, setShowUnauthed] = useState(!authedPortalId);\n\n const handleCloseUnauthed = () => {\n setShowUnauthed(false);\n };\n\n return (\n <TooltipProvider>\n <div className=\"container relative pt-8\">\n <Hero\n projectName={projectName}\n authedPortalId={authedPortalId}\n modulesData={modulesData}\n partialsData={partialsData}\n hubLModules={hubLModules}\n />\n <ComponentTableList\n modulesData={modulesData}\n hubLModules={hubLModules}\n partialsData={partialsData}\n hubLTemplates={hubLTemplates}\n webRootProjectComponentFolder={webRootProjectComponentFolder}\n themeWebRoot={themeWebRoot}\n projectName={projectName}\n authedPortalId={authedPortalId}\n authedEnv={authedEnv}\n />\n <Footer />\n\n {showUnauthed && (\n <div className=\"fixed inset-0 bg-background/80 backdrop-blur-sm\">\n <div className=\"fixed inset-0 flex items-center justify-center\">\n <Unauthed onClose={handleCloseUnauthed} />\n </div>\n </div>\n )}\n </div>\n </TooltipProvider>\n );\n}\n", "import { Button } from '@/components/ui/button';\nimport { Separator } from '@/components/ui/separator';\nimport IconButton from './IconButton.js';\nimport IconTooltip from './IconTooltip.js';\nimport {\n CircleCheck,\n ClipboardCopy,\n Copy,\n TriangleAlert,\n ExternalLink,\n Layout,\n} from 'lucide-react';\nimport {\n Tooltip,\n TooltipTrigger,\n TooltipContent,\n} from '@/components/ui/tooltip';\nimport { DevServerUIData } from '../lib/constants.js';\n\ninterface WhiteBoxProps {\n count: number;\n label: string;\n subText: string;\n onClick: () => void;\n}\n\nconst WhiteBox = ({ count, label, subText, onClick }: WhiteBoxProps) => (\n <div\n onClick={onClick}\n className=\"w-[170px] h-36 px-8 py-6 bg-white rounded-lg flex flex-col justify-center items-center gap-1 text-gray-900 cursor-pointer\"\n >\n <div className=\"text-2xl font-light\">{count}</div>\n <div className=\"text-xs font-semibold uppercase leading-4\">{label}</div>\n <div className=\"text-xs font-light leading-8\">{subText}</div>\n </div>\n);\nconst WhiteBoxList = ({ modulesData, partialsData }) => (\n <div className=\"flex justify-start gap-2\">\n <WhiteBox\n count={modulesData.length}\n label={modulesData.length === 1 ? 'Module' : 'Modules'}\n subText=\"In this Project\"\n onClick={() =>\n document\n .getElementById('modules-table')\n ?.scrollIntoView({ behavior: 'smooth' })\n }\n />\n <WhiteBox\n count={partialsData.length}\n label={partialsData.length === 1 ? 'Partial' : 'Partials'}\n subText=\"In this Project\"\n onClick={() =>\n document\n .getElementById('partials-table')\n ?.scrollIntoView({ behavior: 'smooth' })\n }\n />\n </div>\n);\n\nconst HeroProjectPreview = () => (\n <div className=\"relative w-1/2 ml-4 mb-[-82px] px-6\">\n <div className=\"w-full h-[470px] bg-[#0F172A] rounded-xl flex flex-col justify-center items-center gap-6\">\n <div className=\"flex flex-col justify-center items-center gap-2.5\">\n <Layout className=\"w-12 h-12 mb-6 text-white opacity-50\" />\n <span className=\"text-white text-[22px] font-medium leading-[27px] text-center\">\n Nothing to show here for now. <br />\n <br />\n </span>\n <span className=\"text-white text-[14px] font-light leading-6 text-center\">\n This is where you can view a thumbnail of your theme.\n <br />\n Keep building to see more.\n </span>\n </div>\n </div>\n </div>\n);\n\nconst CLICommands = () => (\n <div className=\"flex flex-col justify-end items-start min-h-36 p-6 bg-slate-900 rounded-xl gap-6 overflow-hidden\">\n <div className=\"flex flex-col justify-start items-start gap-6 w-full\">\n <div className=\"text-white text-xl font-medium leading-7\">\n Copy CLI Commands\n </div>\n <div className=\"flex flex-wrap w-full px-1 py-1 bg-white rounded-md border border-slate-300 text-black text-sm font-medium leading-tight\">\n {[\n { command: 'Start', description: 'npm start' },\n { command: 'Run Test', description: 'npm test' },\n { command: 'Build', description: 'npm run build' },\n { command: 'Deploy', description: 'npm run deploy' },\n { command: 'Dev Environment', description: 'npm run dev' },\n ].map(({ command, description }) => (\n <Tooltip key={command} delayDuration={100}>\n <TooltipTrigger asChild>\n <div className=\"flex-grow h-8 px-3 py-1.5 bg-white flex items-center justify-center relative group cursor-pointer hover:bg-gray-100 active:bg-gray-200 min-w-[120px] m-1\">\n <span className=\"\">{command}</span>\n </div>\n </TooltipTrigger>\n <TooltipContent side=\"bottom\" className=\"bg-white font-medium p-4\">\n <div>\n <div className=\"font-medium text-base leading-none\">\n Copy Command\n </div>\n <div className=\"font-light text-sm leading-5 mt-2 mb-4\">\n {description}\n </div>\n </div>\n <div className=\"flex justify-end\">\n <Button\n size=\"sm\"\n className=\"px-2 py-1 primary rounded\"\n onClick={() => navigator.clipboard.writeText(description)}\n >\n <ClipboardCopy /> Copy\n </Button>\n </div>\n </TooltipContent>\n </Tooltip>\n ))}\n </div>\n </div>\n </div>\n);\n\ntype HeroProps = Pick<\n DevServerUIData,\n | 'projectName'\n | 'authedPortalId'\n | 'modulesData'\n | 'partialsData'\n | 'hubLModules'\n>;\nconst Hero = ({\n projectName,\n authedPortalId,\n modulesData,\n partialsData,\n hubLModules,\n}: HeroProps) => {\n const headingContent = projectName || '';\n const isAuthed = !!authedPortalId;\n const authTooltipText = isAuthed\n ? 'You are connected to your HubSpot account'\n : `You are not connected to your HubSpot Account. Use the \"hs init\" command to connect to view content in the dev server.`;\n const combinedModules = [...modulesData, ...hubLModules];\n return (\n <div className=\"w-full h-full bg-gray-200 rounded-3xl px-10 py-8\">\n <div className=\"flex items-center justify-between gap-4\">\n <div className=\"text-gray-900 text-2xl font-semibold flex items-center gap-2\">\n CMS Developer Server\n {isAuthed ? (\n <IconTooltip\n Icon={CircleCheck}\n iconClassName=\"text-green-500 w-4 h-4\"\n tooltipText={authTooltipText}\n isCircle\n />\n ) : (\n <IconTooltip\n Icon={TriangleAlert}\n iconClassName=\"text-red-500 w-4 h-4\"\n tooltipText={authTooltipText}\n isCircle\n />\n )}\n </div>\n <div className=\"flex items-center gap-4\">\n <IconButton\n text=\"Slack Community\"\n Icon={ExternalLink}\n url=\"https://developers.hubspot.com/beta-docs/getting-started/slack/developer-slack\"\n />\n <IconButton\n text=\"Getting started docs\"\n Icon={ExternalLink}\n url=\"https://developers.hubspot.com/docs/cms/cms-react-quickstart?hs_preview=XztBJnma-168859451746\"\n />\n </div>\n </div>\n <div className=\"w-full text-gray-900 text-4xl font-extrabold mt-5 mb-4\">\n {headingContent}\n </div>\n <div className=\"flex items-center space-x-4 text-black text-sm font-light\">\n {authedPortalId && (\n <div className=\"flex items-center gap-2\">\n <strong>Portal ID:</strong>\n <span className=\"mr-2\">{authedPortalId}</span>\n <IconTooltip Icon={Copy} canCopy tooltipText={authedPortalId} />\n </div>\n )}\n {/* <Separator className=\"bg-black h-4\" orientation=\"vertical\" /> */}\n </div>\n <div className=\"flex w-full mt-10\">\n <div className=\"flex-none\">\n <WhiteBoxList\n modulesData={combinedModules}\n partialsData={partialsData}\n />\n </div>\n <div className=\"flex-grow ml-14\">\n <CLICommands />\n </div>\n {/* <HeroProjectPreview /> */}\n </div>\n </div>\n );\n};\n\nexport default Hero;\n", "import { Button } from '@/components/ui/button';\n\ninterface IconButtonProps {\n text: string;\n url?: string;\n Icon?: React.ComponentType<{ className?: string }>;\n}\n\nconst IconButton = ({ text, url, Icon }: IconButtonProps) => (\n <Button variant=\"ghost\">\n {Icon && <Icon className=\"w-6 h-6 mr-2 text-black\" />}\n {url ? (\n <a href={url} target=\"_blank\">\n {text}\n </a>\n ) : (\n <div>{text}</div>\n )}\n </Button>\n);\n\nexport default IconButton;\n", "import React from 'react';\nimport { Check } from 'lucide-react';\nimport { Button } from '@/components/ui/button';\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from '@/components/ui/tooltip';\n\nconst copyToClipboard = (value: string) => {\n navigator.clipboard.writeText(value);\n};\n\ninterface IconTooltipProps {\n Icon: React.ComponentType<React.SVGProps<SVGSVGElement>>;\n iconClassName?: string;\n tooltipText?: string | number;\n isCircle?: boolean;\n canCopy?: boolean;\n [key: string]: any;\n}\n\nconst IconTooltip = ({\n Icon,\n iconClassName,\n tooltipText,\n isCircle = false,\n canCopy = false,\n ...iconProps\n}: IconTooltipProps) => {\n const [hasCopied, setHasCopied] = React.useState(false);\n React.useEffect(() => {\n if (hasCopied) {\n const timer = setTimeout(() => {\n setHasCopied(false);\n }, 2000);\n return () => clearTimeout(timer);\n }\n }, [hasCopied]);\n\n const handleClick = () => {\n if (canCopy) {\n copyToClipboard(tooltipText?.toString() || '');\n setHasCopied(true);\n }\n };\n\n return (\n <Tooltip delayDuration={100}>\n <TooltipTrigger asChild>\n <Button\n variant=\"outline\"\n size=\"icon\"\n className={`w-10 h-10 min-w-10 p-0 flex items-center justify-center ${\n isCircle ? 'rounded-full' : ''\n }`}\n onClick={handleClick}\n >\n {hasCopied ? (\n <Check className={iconClassName} strokeWidth={3} {...iconProps} />\n ) : (\n Icon && (\n <Icon className={iconClassName} strokeWidth={3} {...iconProps} />\n )\n )}\n </Button>\n </TooltipTrigger>\n <TooltipContent\n side=\"bottom\"\n className=\"bg-white max-w-[200px] font-medium\"\n >\n {tooltipText}\n </TooltipContent>\n </Tooltip>\n );\n};\n\nexport default IconTooltip;\n", "import {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/ui/table';\nimport { Button } from '@/components/ui/button';\nimport { Braces } from 'lucide-react';\nimport ReactIcon from './ReactIcon.js';\nimport ComponentDetailSheet from './ComponentDetailSheet.js';\nimport { ModuleType } from '../lib/constants.js';\n\nexport type ComponentData = {\n name: string;\n type: ModuleType;\n subPath?: string;\n nameWithExtension?: string;\n fieldsJson?: any;\n dateCreated?: string;\n status?: string;\n};\n\ntype ComponentType = 'module' | 'partial' | 'template';\n\nexport interface ComponentTableProps {\n componentList: ComponentData[];\n headers: string[];\n webRootProjectComponentFolder: string;\n themeWebRoot: string;\n projectName: string;\n authedPortalId: number;\n componentType: ComponentType;\n authedEnv: string;\n}\n\nconst getModuleEditorPreviewUrl = (\n projectName: string,\n webRootProjectComponentFolder: string,\n component: ComponentData,\n portalId: number,\n authedEnv: string\n) => {\n // Module files can be defined in various ways, so we need to accound for this by\n // finding the matching file name to the component name. This will ensure we support modules that\n // are both defined in an index file and modules defined like MyModule.ext\n if (!component.nameWithExtension) {\n throw new Error(`Could not find component: ${component.name}`);\n }\n const previewPath =\n component.type === ModuleType.REACT\n ? `@projects/${projectName}/${webRootProjectComponentFolder}/components/modules/${component.nameWithExtension}`\n : component.subPath;\n // @TODO figure out the best way to replace \"app\" when hubspotter is testing platform locally\n return `https://app.hubspot${\n authedEnv === 'qa' ? 'qa' : ''\n }.com/design-previewer/${portalId}/modules/p/${previewPath}`;\n};\n\nconst ActionButtons = ({\n component,\n componentType,\n onPreviewClick,\n onViewLocalClick,\n}: {\n component: ComponentData;\n componentType: ComponentType;\n onPreviewClick: (component: ComponentData) => void;\n onViewLocalClick: (component: ComponentData) => void;\n}) => {\n return (\n <div className=\"flex gap-2\">\n {componentType === 'module' && (\n <Button variant=\"outline\" onClick={() => onPreviewClick(component)}>\n View in app\n </Button>\n )}\n <Button variant=\"outline\" onClick={() => onViewLocalClick(component)}>\n View local version\n </Button>\n </div>\n );\n};\n\nexport function ComponentTable({\n componentList,\n headers,\n webRootProjectComponentFolder,\n themeWebRoot,\n projectName,\n authedPortalId,\n componentType,\n authedEnv,\n}: ComponentTableProps) {\n const handlePreviewClick = (component: ComponentData) => {\n try {\n const previewUrl = getModuleEditorPreviewUrl(\n projectName,\n webRootProjectComponentFolder,\n component,\n authedPortalId,\n authedEnv\n );\n\n window.open(previewUrl, '_blank');\n } catch (error) {\n console.error('Failed to open preview:', error);\n }\n };\n const handleViewLocalClick = (component: ComponentData) => {\n try {\n let localViewUrl;\n // @todo - Once process moved to port 3000, remove https & don't even include hostname:port in url\n switch (componentType) {\n case 'module':\n localViewUrl =\n component.type === 'react'\n ? `https://localhost:3000/preview/module/${component.name}`\n : `https://localhost:3000/hublmodule/${component.subPath}`;\n break;\n case 'template':\n localViewUrl = `https://localhost:3000/template/${component.subPath}`;\n break;\n case 'partial':\n localViewUrl = `https://localhost:3000/partial/${component.name}`;\n break;\n default:\n throw new Error(`Unknown component type: ${componentType}`);\n }\n\n window.open(localViewUrl, '_blank');\n } catch (error) {\n console.error('Failed to open preview:', error);\n }\n };\n\n return (\n <Table\n className=\"border text-[16px]\"\n containerClassName=\"h-fit max-h-[770px] overflow-y-auto relative\"\n >\n <TableHeader>\n <TableRow className=\"\">\n {headers.map((header, index) => (\n <TableHead key={index} className=\"border\">\n {header}\n </TableHead>\n ))}\n </TableRow>\n </TableHeader>\n <TableBody className=\"overflow-y-auto\">\n {componentList.map((component, index) => (\n <TableRow key={index} className=\"odd:bg-white even:bg-gray-50\">\n {component.name && (\n <TableCell className=\"border\">\n {componentType === 'module' ? (\n <ComponentDetailSheet\n moduleData={component}\n componentType={componentType}\n themeWebRoot={themeWebRoot}\n authedPortalId={authedPortalId}\n projectName={projectName}\n webRootProjectComponentFolder={\n webRootProjectComponentFolder\n }\n >\n <span className=\"underline cursor-pointer\">\n {component.name}\n </span>\n </ComponentDetailSheet>\n ) : (\n <span>{component.name}</span>\n )}\n </TableCell>\n )}\n {component.type && (\n <TableCell className=\"border\">\n <div className=\"flex items-center gap-2\">\n {component.type === 'react' ? <ReactIcon /> : <Braces />}\n <span>{component.type === 'react' ? 'React' : 'HuBL'}</span>\n </div>\n </TableCell>\n )}\n {component.dateCreated && (\n <TableCell className=\"border\">{component.dateCreated}</TableCell>\n )}\n {component.status && (\n <TableCell className=\"border\">{component.status}</TableCell>\n )}\n <TableCell className=\"border\">\n <ActionButtons\n component={component}\n componentType={componentType}\n onPreviewClick={handlePreviewClick}\n onViewLocalClick={handleViewLocalClick}\n />\n </TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n );\n}\n\nexport default ComponentTable;\n", "export function ReactIcon() {\n return (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clipPath=\"url(#clip0_5814_65268)\">\n <path\n d=\"M19.7328 7.77091C19.4838 7.67469 19.2259 7.58365 18.9602 7.49755C19.0039 7.29749 19.044 7.10001 19.0796 6.90589C19.6644 3.71841 19.282 1.15055 17.9763 0.305104C16.7243 -0.505568 14.6767 0.339688 12.6087 2.3604C12.4099 2.55471 12.2104 2.76043 12.0111 2.97604C11.8783 2.83339 11.7457 2.69554 11.6134 2.56368C9.44613 0.403003 7.27375 -0.507535 5.96931 0.340359C4.71847 1.15338 4.34805 3.56741 4.87449 6.58821C4.92532 6.87999 4.98475 7.17795 5.05194 7.48091C4.74449 7.5789 4.44767 7.68337 4.16367 7.79451C1.62275 8.78918 0 10.3481 0 11.9651C0 13.6351 1.74202 15.3101 4.38859 16.3258C4.59745 16.406 4.81417 16.4818 5.0375 16.5537C4.96501 16.8814 4.90195 17.2025 4.84903 17.5156C4.34707 20.484 4.73906 22.841 5.98656 23.6489C7.27512 24.4832 9.43767 23.6256 11.5435 21.5589C11.7099 21.3955 11.8769 21.2222 12.0443 21.0406C12.2611 21.2751 12.4777 21.4971 12.6931 21.7053C14.7328 23.676 16.7473 24.4718 17.9937 23.6617C19.2809 22.825 19.6993 20.293 19.1561 17.2124C19.1147 16.9772 19.0664 16.7368 19.0122 16.4922C19.164 16.4418 19.3131 16.3897 19.4585 16.3356C22.2099 15.3121 24 13.6574 24 11.9651C24 10.3422 22.3249 8.77282 19.7328 7.77091ZM19.1361 15.2429C19.0048 15.2917 18.8702 15.3388 18.733 15.3845C18.4292 14.3049 18.0193 13.1568 17.5176 11.9707C17.9963 10.8128 18.3904 9.67938 18.6857 8.60672C18.9312 8.68648 19.1695 8.77062 19.3991 8.8594C21.62 9.71785 22.9747 10.9871 22.9747 11.9651C22.9747 13.0068 21.5117 14.3591 19.1361 15.2429ZM18.1504 17.436C18.3905 18.7982 18.4248 20.0298 18.2657 20.9925C18.1228 21.8576 17.8353 22.4344 17.4799 22.6654C16.7236 23.157 15.1061 22.518 13.3617 20.8326C13.1618 20.6394 12.9603 20.4331 12.7583 20.2148C13.4345 19.3843 14.1104 18.4189 14.77 17.3467C15.9303 17.2311 17.0264 17.0422 18.0204 16.7841C18.0694 17.0059 18.1129 17.2234 18.1504 17.436ZM8.18214 22.5805C7.44318 22.8735 6.85463 22.8819 6.49886 22.6516C5.74182 22.1613 5.42711 20.2689 5.8564 17.7303C5.90557 17.4396 5.96409 17.141 6.03155 16.8357C7.0147 17.0798 8.10281 17.2555 9.26581 17.3613C9.92989 18.4105 10.6253 19.3748 11.3261 20.2192C11.1729 20.3852 11.0204 20.5432 10.8688 20.6921C9.93762 21.606 9.0045 22.2544 8.18214 22.5805ZM4.72018 15.2365C3.54992 14.7874 2.58347 14.2037 1.92102 13.5668C1.32576 12.9944 1.02523 12.4261 1.02523 11.9651C1.02523 10.9838 2.32814 9.73224 4.50116 8.88156C4.76482 8.77834 5.04084 8.68106 5.32727 8.58969C5.62759 9.68657 6.02155 10.8334 6.49698 11.9931C6.0154 13.17 5.61584 14.3351 5.31258 15.4448C5.10838 15.3789 4.91054 15.3095 4.72018 15.2365ZM5.88066 6.36714C5.42963 3.77899 5.72918 1.82658 6.48297 1.33666C7.28588 0.814743 9.06136 1.55889 10.9326 3.42452C11.0523 3.54377 11.1723 3.66857 11.2928 3.7977C10.5955 4.6384 9.90644 5.59551 9.24825 6.63848C8.11952 6.75595 7.03905 6.94465 6.04565 7.19733C5.98319 6.91524 5.92787 6.6381 5.88066 6.36714ZM16.2332 9.23737C15.9957 8.7768 15.7519 8.32712 15.5034 7.88972C16.2691 7.99841 17.0028 8.14269 17.6918 8.31926C17.4849 9.06359 17.2271 9.84184 16.9236 10.6397C16.7059 10.1756 16.4757 9.70768 16.2332 9.23737ZM12.0114 4.62041C12.4844 5.19567 12.9579 5.83793 13.4238 6.53478C12.9544 6.50988 12.4791 6.49693 12 6.49693C11.5254 6.49693 11.0537 6.5096 10.5872 6.53406C11.0535 5.84369 11.5312 5.20228 12.0114 4.62041ZM7.76268 9.24533C7.52546 9.7072 7.29947 10.1726 7.08519 10.6388C6.78662 9.84376 6.5312 9.06196 6.32255 8.30707C7.00731 8.13502 7.73752 7.99433 8.4984 7.88771C8.24635 8.32914 8.00054 8.78213 7.76268 9.24524V9.24533ZM8.52031 16.1245C7.73418 16.026 6.993 15.8926 6.30841 15.7253C6.52039 14.9569 6.78145 14.1584 7.08634 13.3463C7.30118 13.8122 7.52806 14.2777 7.76674 14.7406H7.76678C8.0099 15.2122 8.26177 15.6741 8.52031 16.1245ZM12.0398 19.3909C11.5539 18.8022 11.0692 18.151 10.5958 17.4505C11.0553 17.4708 11.5238 17.4811 12 17.4811C12.4892 17.4811 12.9728 17.4688 13.4488 17.445C12.9814 18.158 12.5095 18.8102 12.0398 19.3909ZM16.9334 13.3049C17.2542 14.1258 17.5246 14.9201 17.7393 15.6754C17.0434 15.8537 16.2921 15.9972 15.5005 16.1039C15.7497 15.6606 15.9956 15.2032 16.2373 14.7327C16.4818 14.2567 16.7139 13.7799 16.9334 13.3049ZM15.3492 14.1576C14.974 14.888 14.5889 15.5852 14.1978 16.2433C13.4857 16.3005 12.7499 16.33 12 16.33C11.2531 16.33 10.5266 16.3039 9.82706 16.2529C9.42029 15.5861 9.02675 14.8869 8.65398 14.1639H8.65407C8.28228 13.4428 7.94009 12.7157 7.63003 11.9927C7.94001 11.268 8.28129 10.54 8.65095 9.8203L8.65086 9.82045C9.0215 9.0988 9.41157 8.40291 9.81459 7.74031C10.5283 7.67973 11.2603 7.64812 12 7.64812H12C12.743 7.64812 13.4759 7.67997 14.1894 7.74107C14.5863 8.39883 14.9737 9.09247 15.3458 9.81421C15.7221 10.5441 16.0678 11.2671 16.3804 11.9763C16.0688 12.6977 15.7238 13.4281 15.3492 14.1576ZM17.4642 1.30241C18.2679 1.8228 18.5804 3.9215 18.0755 6.67354C18.0433 6.84915 18.007 7.02801 17.9676 7.20928C16.9719 6.95131 15.8907 6.75936 14.7586 6.64011C14.0992 5.58568 13.4158 4.62708 12.7298 3.79717C12.9142 3.59797 13.0984 3.40802 13.2818 3.22877C15.0536 1.49744 16.7097 0.813879 17.4642 1.30241ZM12 9.55874C13.1836 9.55874 14.1431 10.6361 14.1431 11.9651C14.1431 13.294 13.1836 14.3714 12 14.3714C10.8164 14.3714 9.85688 13.294 9.85688 11.9651C9.85688 10.6361 10.8164 9.55874 12 9.55874Z\"\n fill=\"black\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_5814_65268\">\n <rect width=\"24\" height=\"24\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n );\n}\n\nexport default ReactIcon;\n", "import { Button } from '@/components/ui/button';\nimport {\n Sheet,\n SheetContent,\n SheetTrigger,\n SheetTitle,\n SheetHeader,\n SheetDescription,\n SheetFooter,\n SheetClose,\n} from '@/components/ui/sheet';\nimport { useState, ReactNode } from 'react';\nimport { ClipboardCopy } from 'lucide-react';\nimport { DevServerUIData, ModuleType } from '../lib/constants.js';\nimport ComponentDependencySection from './ComponentDependencySection.js';\n\ninterface ComponentDetailSheetProps {\n moduleData: DevServerUIData['modulesData'][0];\n componentType: string;\n themeWebRoot: string;\n children: ReactNode;\n authedPortalId: number;\n projectName: string;\n webRootProjectComponentFolder: string;\n}\n\nconst FieldsContainer = ({\n moduleData,\n themeWebRoot,\n}: Pick<ComponentDetailSheetProps, 'moduleData' | 'themeWebRoot'>) => {\n const codeString = JSON.stringify(moduleData.fieldsJson, null, 2);\n const subPath =\n moduleData.type === ModuleType.REACT\n ? moduleData.subPath\n : `hubl/${moduleData.subPath?.split('/hubl/')[1]}`;\n const filePath =\n moduleData.type === ModuleType.REACT\n ? `${themeWebRoot}/${subPath}.${moduleData.extension}`\n : `${themeWebRoot}/${subPath}.module/fields.json`;\n\n const handleOpenFile = () => {\n if (!filePath) return;\n fetch(`/api/open-file?path=${encodeURIComponent(filePath)}`).catch((err) =>\n console.error('Failed to open file:', err)\n );\n };\n\n return (\n <div className=\"flex flex-col\">\n <h2 className=\"text-2xl font-semibold leading-8\">JSON Fields</h2>\n {codeString ? (\n <>\n <div className=\"relative mt-6 mb-3\">\n <Button\n variant=\"outline\"\n size=\"icon\"\n className=\"w-6 h-6 text-xs rounded absolute top-1.5 right-1.5 z-10 opacity-90\"\n onClick={() => navigator.clipboard.writeText(codeString)}\n >\n <ClipboardCopy />\n </Button>\n <div className=\"rounded-xl overflow-hidden p-4 bg-[#0F172A]\">\n <pre className=\"text-[14px] font-medium leading-6 text-[#9CDCFE] whitespace-pre-wrap\">\n {codeString}\n </pre>\n </div>\n </div>\n\n <div>\n <Button variant=\"outline\" onClick={handleOpenFile}>\n View Editor\n </Button>\n </div>\n </>\n ) : (\n <p>No fields found</p>\n )}\n </div>\n );\n};\n\nconst ComponentDetailSheet = ({\n moduleData,\n componentType,\n themeWebRoot,\n authedPortalId,\n projectName,\n webRootProjectComponentFolder,\n children,\n}: ComponentDetailSheetProps) => {\n const [isOpen, setIsOpen] = useState(false);\n\n const componentTypeLabel =\n componentType.charAt(0).toUpperCase() + componentType.slice(1);\n\n return (\n <Sheet onOpenChange={setIsOpen}>\n <SheetTrigger asChild>{children}</SheetTrigger>\n <SheetContent\n className=\"sm:max-w-xl overflow-y-scroll\"\n aria-describedby={'sheet-title'}\n >\n <SheetHeader>\n <SheetTitle className=\"text-xl font-semibold leading-8 pb-8\">\n <span id=\"sheet-title\">\n <>\n {moduleData.name} - {componentTypeLabel} Details\n </>\n </span>\n </SheetTitle>\n <SheetDescription className=\"text-sm leading-5\">\n <strong>Directory Path:</strong>{' '}\n {moduleData.type === ModuleType.REACT\n ? moduleData.subPath\n : `hubl/${\n moduleData.subPath?.split('/hubl/')[1] || moduleData.subPath\n }`}\n </SheetDescription>\n </SheetHeader>\n\n <div className=\"grid gap-6 pb-6 my-6 border-b border-gray-300\">\n <ComponentDependencySection\n componentType={componentType}\n authedPortalId={authedPortalId}\n projectName={projectName}\n webRootProjectComponentFolder={webRootProjectComponentFolder}\n isOpen={isOpen}\n moduleData={moduleData}\n />\n </div>\n <div className=\"grid gap-6 my-6\">\n <FieldsContainer\n moduleData={moduleData}\n themeWebRoot={themeWebRoot}\n />\n </div>\n <SheetFooter className=\"\">\n <SheetClose asChild>\n <Button variant=\"outline\" type=\"submit\">\n Close\n </Button>\n </SheetClose>\n </SheetFooter>\n </SheetContent>\n </Sheet>\n );\n};\n\nexport default ComponentDetailSheet;\n", "import {\n Table,\n TableHeader,\n TableRow,\n TableHead,\n TableBody,\n TableCell,\n} from '@/components/ui/table';\nimport { Skeleton } from '@/components/ui/skeleton';\nimport { DevServerUIData, ModuleType } from '../lib/constants.js';\nimport { useModulePages } from '../hooks/useModulePages.js';\nimport type { ModulePageDependencyData } from '../../src/api/designmanager.js';\ninterface ComponentDependencySectionProps {\n componentType: string;\n authedPortalId: number;\n projectName: string;\n webRootProjectComponentFolder: string;\n isOpen: boolean;\n moduleData: DevServerUIData['modulesData'][0];\n}\n\nconst ComponentDependencyTable = ({\n pages,\n componentType,\n}: {\n pages: ModulePageDependencyData[];\n componentType: string;\n}) => {\n if (pages.length === 0) {\n return <div>No pages found using this {componentType}</div>;\n }\n\n function formatSubType(subType: string) {\n // Human-friendly subType: LANDING_PAGE -> Landing Page\n return subType\n ? subType\n .split('_')\n .map((word) => word.charAt(0) + word.slice(1).toLowerCase())\n .join(' ')\n : '';\n }\n\n return (\n <Table\n className=\"border text-[16px]\"\n containerClassName=\"h-fit max-h-[770px] overflow-y-auto relative\"\n >\n <TableHeader>\n <TableRow>\n <TableHead className=\"border\">Page Name</TableHead>\n <TableHead className=\"border\">Page Type</TableHead>\n </TableRow>\n </TableHeader>\n <TableBody className=\"overflow-y-auto\">\n {pages.map((page, index) => (\n <TableRow key={index} className=\"odd:bg-white even:bg-gray-50\">\n <TableCell className=\"border\">{page.label}</TableCell>\n <TableCell className=\"border\">\n {formatSubType(page.subType)}\n </TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n );\n};\n\nconst ComponentDependencySection = ({\n componentType,\n authedPortalId,\n projectName,\n webRootProjectComponentFolder,\n isOpen,\n moduleData,\n}: ComponentDependencySectionProps) => {\n const previewPath =\n moduleData.type === ModuleType.REACT\n ? `@projects/${projectName}/${webRootProjectComponentFolder}/components/modules/${moduleData.nameWithExtension}`\n : moduleData.subPath;\n\n const { moduleDependencies, isLoading, error } = useModulePages(\n isOpen ? previewPath : null,\n authedPortalId\n );\n\n return (\n <div className=\"flex flex-col\">\n <div className=\"flex justify-between items-center mb-3 gap-8\">\n <h2 className=\"text-2xl font-semibold leading-9 decoration-skip-ink\">\n Dependencies\n </h2>\n {isLoading ? (\n <Skeleton className=\"h-[20px] flex-1\" />\n ) : (\n moduleDependencies && (\n <span className=\"text-lg font-bold leading-8\">\n {`${moduleDependencies.length} ${\n moduleDependencies.length === 1 ? 'page uses' : 'pages use'\n } this ${componentType}`}\n </span>\n )\n )}\n </div>\n {isLoading ? (\n <div className=\"space-y-2\">\n <Skeleton className=\"h-[20px] w-full\" />\n <Skeleton className=\"h-[20px] w-full\" />\n </div>\n ) : error ? (\n <div className=\"text-red-500\">Error loading dependencies: {error}</div>\n ) : (\n <ComponentDependencyTable\n pages={moduleDependencies || []}\n componentType={componentType}\n />\n )}\n </div>\n );\n};\n\nexport default ComponentDependencySection;\n", "import { useState, useEffect } from 'react';\nimport type { ModulePageDependencyData } from '../../src/api/designmanager.js';\n\nexport function useModulePages(\n previewPath: string | null,\n authedPortalId: number\n) {\n const [state, setState] = useState({\n moduleDependencies: null as ModulePageDependencyData[] | null,\n isLoading: false,\n error: null as string | null,\n });\n\n useEffect(() => {\n if (!previewPath) return; // Skip fetch if path is null (before sheet is open)\n\n setState((prev) => ({ ...prev, isLoading: true }));\n\n fetch(\n `/api/module-pages?path=${encodeURIComponent(\n previewPath\n )}&portalId=${authedPortalId}`\n )\n .then((res) =>\n res.ok\n ? res.json()\n : Promise.reject(new Error('Failed to fetch module pages'))\n )\n .then((data) =>\n setState({ moduleDependencies: data, isLoading: false, error: null })\n )\n .catch((err) =>\n setState({\n moduleDependencies: null,\n isLoading: false,\n error: String(err),\n })\n );\n }, [previewPath]);\n\n return state;\n}\n", "import { ComponentTable, ComponentData } from './ComponentTable.js';\nimport { DevServerUIData } from '../lib/constants.js';\nimport { ModuleType } from '../lib/constants.js';\n\ninterface ComponentTableListItemProps {\n id: string;\n header: string;\n componentType: 'module' | 'partial' | 'template';\n subtext: string;\n headers: string[];\n data: ComponentData[];\n webRootProjectComponentFolder?: string;\n themeWebRoot?: string;\n projectName?: string;\n authedPortalId?: number;\n moduleNamesWithExtension?: string[];\n authedEnv?: string;\n}\n\nconst ComponentTableListItem = ({\n id,\n header,\n componentType,\n subtext,\n headers,\n data,\n webRootProjectComponentFolder,\n themeWebRoot,\n projectName,\n authedPortalId,\n authedEnv,\n}: ComponentTableListItemProps) => {\n return (\n <div id={id} className=\"mb-16\">\n <h2 className=\"font-inter text-2xl font-semibold leading-9 tracking-tight text-left\">\n {header}\n </h2>\n <p className=\"font-inter text-base font-normal leading-7 text-left mb-5\">\n {subtext}\n </p>\n <ComponentTable\n authedEnv={authedEnv}\n componentList={data}\n headers={headers}\n webRootProjectComponentFolder={webRootProjectComponentFolder}\n themeWebRoot={themeWebRoot}\n projectName={projectName}\n authedPortalId={authedPortalId}\n componentType={componentType}\n />\n </div>\n );\n};\n\ntype ComponentTableListProps = Pick<\n DevServerUIData,\n | 'modulesData'\n | 'partialsData'\n | 'hubLModules'\n | 'hubLTemplates'\n | 'webRootProjectComponentFolder'\n | 'themeWebRoot'\n | 'projectName'\n | 'authedPortalId'\n | 'authedEnv'\n>;\nconst ComponentTableList = ({\n modulesData,\n partialsData,\n hubLModules,\n hubLTemplates,\n webRootProjectComponentFolder,\n themeWebRoot,\n projectName,\n authedPortalId,\n authedEnv,\n}: ComponentTableListProps) => {\n const mapToTableData = (\n components:\n | DevServerUIData['modulesData']\n | DevServerUIData['partialsData'],\n type: string\n ) =>\n components.map((component) => ({\n ...component,\n type,\n }));\n\n const mappedModuleData = [\n ...mapToTableData(modulesData, 'react'),\n ...hubLModules.map((module) => ({\n ...module,\n type: 'hubl',\n })),\n ];\n const partialData = [...mapToTableData(partialsData, 'react')];\n\n const templateData = hubLTemplates.map((template) => ({\n ...template,\n type: ModuleType.HUBL,\n }));\n\n return (\n <div className=\"mt-12\">\n <ComponentTableListItem\n id=\"modules-table\"\n header=\"Modules\"\n componentType=\"module\"\n subtext=\"Describe what this is\"\n headers={['Name', 'Type', 'Actions']}\n data={mappedModuleData}\n webRootProjectComponentFolder={webRootProjectComponentFolder}\n themeWebRoot={themeWebRoot}\n projectName={projectName}\n authedPortalId={authedPortalId}\n authedEnv={authedEnv}\n />\n <ComponentTableListItem\n id=\"partials-table\"\n header=\"Partials\"\n componentType=\"partial\"\n subtext=\"Describe what this is\"\n headers={['Name', 'Type', 'Actions']}\n data={partialData}\n />\n <ComponentTableListItem\n id=\"templates-table\"\n header=\"Templates\"\n componentType=\"template\"\n subtext=\"Describe what this is\"\n headers={['Name', 'Type', 'Actions']}\n data={templateData}\n />\n </div>\n );\n};\n\nexport default ComponentTableList;\n", "import React from 'react';\nimport { Separator } from '@/components/ui/separator';\n\nexport const Footer = () => {\n const links = [\n {\n href: 'https://www.youtube.com/playlist?list=PLjtLN8FCj4SljVFvkJbSk9J5hq4KTKYcB&jct=pci9oBKT6ttPIJIGKv-rVg',\n text: 'CMS React Videos',\n },\n {\n href: 'https://developers.hubspot.com/beta-docs/guides/cms/content/modules/build-modules-and-partials-with-react',\n text: 'React Docs',\n },\n {\n href: 'https://react.dev',\n text: 'Learn React',\n },\n {\n href: 'https://github.com/HubSpot/cms-react/tree/main/examples',\n text: 'Github Examples',\n },\n ];\n\n return (\n <footer className=\"w-full py-16\">\n <nav className=\"flex justify-center items-center gap-4 text-gray-900 text-sm font-normal\">\n {links.map((link, index) => (\n <React.Fragment key={index}>\n <a href={link.href} target=\"_blank\" rel=\"noopener noreferrer\">\n {link.text}\n </a>\n {index < links.length - 1 && (\n <Separator className=\"bg-gray-200 h-4\" orientation=\"vertical\" />\n )}\n </React.Fragment>\n ))}\n </nav>\n </footer>\n );\n};\n\nexport default Footer;\n", "import { Button } from '@/components/ui/button';\nimport { useCallback } from 'react';\nimport { ArrowRightLeft, ServerCrash } from 'lucide-react';\nimport HubSpotIcon from './HubSpotIcon.js';\n\ninterface UnauthedProps {\n onClose: () => void;\n}\n\nexport default function Unauthed({ onClose }: UnauthedProps) {\n const handleCopyAndConnect = useCallback(() => {\n navigator.clipboard.writeText('hs init');\n window.open('terminal://open?path=.', '_blank');\n window.location.reload();\n }, []);\n\n return (\n <div className=\"w-full max-w-2xl bg-background border rounded-lg shadow-lg p-8 mx-4\">\n <div className=\"flex flex-col items-center justify-center space-y-6 text-center\">\n <div className=\"bg-slate-900/90 rounded-lg p-6 w-full\">\n <div className=\"flex items-center justify-center gap-3\">\n <ServerCrash className=\"w-8 h-8 text-white\" />\n <ArrowRightLeft className=\"w-8 h-8 text-slate-400\" />\n <HubSpotIcon size={32} className=\"text-[#ff7a59]\" />\n </div>\n </div>\n\n <div className=\"space-y-2\">\n <h2 className=\"text-2xl font-semibold tracking-tight\">\n Enjoy the full preview experience by connecting to HubSpot\n </h2>\n </div>\n\n <div className=\"space-y-4 max-w-md\">\n <div className=\"space-y-2 text-sm text-muted-foreground\">\n <p>\n Connect by using the{' '}\n <code className=\"bg-slate-100 px-1.5 py-0.5 rounded text-slate-900\">\n hs init\n </code>{' '}\n command to create a new config file. Ensure there's a{' '}\n <code className=\"bg-muted px-1.5 py-0.5 rounded\">\n hubspot.config.yaml\n </code>{' '}\n in the folder (or a parent).\n </p>\n <p>\n By connecting and authenticating you can use local proxy\n functionality and module preview routes.\n </p>\n <p className=\"italic\">\n You can work on modules locally at \"/module/[module_name]\", but we\n won't have all your account data to display in this server.\n </p>\n </div>\n </div>\n\n <div className=\"flex gap-4\">\n <Button variant=\"outline\" onClick={onClose}>\n Close\n </Button>\n <Button onClick={handleCopyAndConnect}>Connect Now</Button>\n </div>\n </div>\n </div>\n );\n}\n", "interface IconProps extends React.SVGProps<SVGSVGElement> {\n size?: number;\n}\n\nexport default function HubSpotIcon({ size = 24, ...props }: IconProps) {\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle cx=\"20\" cy=\"20\" r=\"20\" fill=\"url(#paint0_linear_6129_76863)\" />\n <mask\n id=\"mask0_6129_76863\"\n maskUnits=\"userSpaceOnUse\"\n x=\"8\"\n y=\"7\"\n width=\"24\"\n height=\"28\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8.18164 7.27271H31.6885V34.3423H8.18164V7.27271Z\"\n fill=\"white\"\n />\n </mask>\n <g mask=\"url(#mask0_6129_76863)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M25.2583 26.7794C23.4375 26.7794 21.9612 25.1574 21.9612 23.1566C21.9612 21.1557 23.4375 19.5336 25.2583 19.5336C27.0789 19.5336 28.555 21.1557 28.555 23.1566C28.555 25.1574 27.0789 26.7794 25.2583 26.7794ZM26.2452 16.1818V12.9592C27.0106 12.5618 27.5471 11.7108 27.5471 10.7231V10.6487C27.5471 9.28578 26.532 8.17055 25.292 8.17055H25.2242C23.984 8.17055 22.969 9.28578 22.969 10.6487V10.7231C22.969 11.7108 23.5055 12.5618 24.2709 12.9592V16.182C23.1313 16.3754 22.0899 16.892 21.2306 17.6522L13.1786 10.7689C13.2315 10.5449 13.2687 10.314 13.269 10.0716C13.2708 8.52773 12.1334 7.27469 10.7285 7.27271C9.32372 7.27072 8.1833 8.52062 8.18164 10.0645C8.17984 11.6082 9.31724 12.8613 10.7222 12.8632C11.18 12.8639 11.6036 12.721 11.9752 12.4889L19.8959 19.26C19.2222 20.3773 18.8278 21.7158 18.8278 23.1566C18.8278 24.665 19.2614 26.0602 19.9943 27.2079L17.5855 29.8549C17.395 29.7922 17.1973 29.7482 16.9881 29.7482C15.8338 29.7482 14.8978 30.7767 14.8978 32.0453C14.8978 33.3139 15.8338 34.3423 16.9881 34.3423C18.1426 34.3423 19.0785 33.3139 19.0785 32.0453C19.0785 31.8155 19.0386 31.5981 18.9814 31.389L21.3641 28.7706C22.4457 29.678 23.7925 30.2228 25.2582 30.2228C28.8096 30.2228 31.6885 27.0591 31.6885 23.1566C31.6885 19.6236 29.3267 16.7049 26.2452 16.1818Z\"\n fill=\"white\"\n />\n </g>\n <defs>\n <linearGradient\n id=\"paint0_linear_6129_76863\"\n x1=\"0\"\n y1=\"0\"\n x2=\"0\"\n y2=\"40\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stopColor=\"#FF8F59\" />\n <stop offset=\"1\" stopColor=\"#FF7A59\" />\n </linearGradient>\n </defs>\n </svg>\n );\n}\n"],
|
|
5
|
-
"mappings": "AAAA,OAAS,cAAAA,OAAkB,QC4L3B,IAAMC,EAA+B,CAACC,EAAoBC,EAAYC,IAAmB,CACvF,GAAI,CAACF,EACH,MAAO,GAET,IAAMG,EAAe,CAAC,EACtB,QAAWC,KAAWJ,EAAoB,CACxC,IAAIK,EAAa,cACbD,EAAQ,QAAU,UACpBC,EAAa,iBAEXD,EAAQ,QAAU,SACpBC,EAAa,gBAEf,IAAMC,EAAYF,EAAQ,WAAW,IAAKG,GAAQ,KAAK,UAAUA,CAAG,CAAC,EAAE,KAAK,IAAI,EAChFJ,EAAa,KAAK,KAAKE,KAAcC,KAAa,CACpD,CACA,IAAIE,EAAa,GACbC,EAAW,GACf,OAA6BR,GAAe,OAC1CO,E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A,EAACoB,EAAA,CAAS,QA9BM,IAAM,CAChCN,EAAgB,EAAK,CACvB,EA4BoD,EAC1C,EACF,GAEJ,EACF,CAEJ,CHxDM,cAAAO,OAAA,oBAHN,eAAsBC,GAAOC,EAA+B,CAM1D,OALa,MAAMC,EACjBH,GAACI,GAAA,CACC,SAAAJ,GAACK,EAAA,CAAI,aAAcH,EAAc,EACnC,CACF,CAEF",
|
|
6
|
-
"names": ["StrictMode", "scriptTagToLogServerMessages", "messagesForBrowser", "groupLabel", "nonceAttribute", "consoleLines", "message", "funcString", "argString", "arg", "groupStart", "groupEnd", "dotProp", "_traverse", "jsx", "stream", "renderToPipeableStream", "renderToStaticMarkup", "cmsComponents", "ServerRenderContext", "setProperty", "getProperty", "hasProperty", "dotProp", "traverse", "_traverse", "promiseForNewWritableStream", "chunks", "writableStream", "stream", "chunk", "encoding", "done", "resolve", "reject", "error", "renderStreamToPromise", "reactElements", "options", "streamDonePromise", "pipe", "renderToPipeableStream", "createServerRenderContextV2", "createServerRenderContext", "renderServerSidePropsWithAsyncLocalStoreContext", "cmsComponents", "bootStrapRenderContext", "renderOnServer", "elements", "renderContext", "bootStrapRenderContext", "debugName", "renderOptions", "html", "renderStreamToPromise", "jsx", "ServerRenderContext", "scriptTagToLogServerMessages", "useState", "TooltipProvider", "Button", "Button", "jsx", "jsxs", "IconButton", "text", "url", "Icon", "IconButton_default", "React", "Check", "Button", "Tooltip", "TooltipContent", "TooltipTrigger", "jsx", "jsxs", "copyToClipboard", "value", "IconTooltip", "Icon", "iconClassName", "tooltipText", "isCircle", "canCopy", "iconProps", "hasCopied", "setHasCopied", "timer", "IconTooltip_default", "CircleCheck", "ClipboardCopy", "Copy", "TriangleAlert", "ExternalLink", "Layout", "Tooltip", "TooltipTrigger", "TooltipContent", "jsx", "jsxs", "WhiteBox", "count", "label", "subText", "onClick", "WhiteBoxList", "modulesData", "partialsData", "_a", "CLICommands", "jsx", "jsxs", "command", "description", "Tooltip", "TooltipTrigger", "TooltipContent", "Button", "ClipboardCopy", "Hero", "projectName", "authedPortalId", "modulesData", "partialsData", "hubLModules", "headingContent", "isAuthed", "authTooltipText", "combinedModules", "IconTooltip_default", "CircleCheck", "TriangleAlert", "IconButton_default", "ExternalLink", "Copy", "WhiteBoxList", "Hero_default", "Table", "TableBody", "TableCell", "TableHead", "TableHeader", "TableRow", "Button", "Braces", "jsx", "jsxs", "ReactIcon", "ReactIcon_default", "Button", "Sheet", "SheetContent", "SheetTrigger", "SheetTitle", "SheetHeader", "SheetDescription", "SheetFooter", "SheetClose", "useState", "ClipboardCopy", "Table", "TableHeader", "TableRow", "TableHead", "TableBody", "TableCell", "Skeleton", "useState", "useEffect", "useModulePages", "previewPath", "authedPortalId", "state", "setState", "prev", "res", "data", "err", "jsx", "jsxs", "ComponentDependencyTable", "pages", "componentType", "formatSubType", "subType", "word", "Table", "TableHeader", "TableRow", "TableHead", "TableBody", "page", "index", "TableCell", "ComponentDependencySection", "authedPortalId", "projectName", "webRootProjectComponentFolder", "isOpen", "moduleData", "previewPath", "moduleDependencies", "isLoading", "error", "useModulePages", "Skeleton", "ComponentDependencySection_default", "Fragment", "jsx", "jsxs", "FieldsContainer", "moduleData", "themeWebRoot", "_a", "codeString", "subPath", "filePath", "Button", "ClipboardCopy", "err", "ComponentDetailSheet", "componentType", "authedPortalId", "projectName", "webRootProjectComponentFolder", "children", "isOpen", "setIsOpen", "useState", "componentTypeLabel", "Sheet", "SheetTrigger", "SheetContent", "SheetHeader", "SheetTitle", "SheetDescription", "ComponentDependencySection_default", "SheetFooter", "SheetClose", "ComponentDetailSheet_default", "jsx", "jsxs", "getModuleEditorPreviewUrl", "projectName", "webRootProjectComponentFolder", "component", "portalId", "authedEnv", "previewPath", "ActionButtons", "componentType", "onPreviewClick", "onViewLocalClick", "Button", "ComponentTable", "componentList", "headers", "themeWebRoot", "authedPortalId", "handlePreviewClick", "previewUrl", "error", "handleViewLocalClick", "localViewUrl", "Table", "TableHeader", "TableRow", "header", "index", "TableHead", "TableBody", "TableCell", "ComponentDetailSheet_default", "ReactIcon_default", "Braces", "jsx", "jsxs", "ComponentTableListItem", "id", "header", "componentType", "subtext", "headers", "data", "webRootProjectComponentFolder", "themeWebRoot", "projectName", "authedPortalId", "authedEnv", "ComponentTable", "ComponentTableList", "modulesData", "partialsData", "hubLModules", "hubLTemplates", "mapToTableData", "components", "type", "component", "mappedModuleData", "module", "partialData", "templateData", "template", "ComponentTableList_default", "React", "Separator", "jsx", "jsxs", "Footer", "links", "link", "index", "Footer_default", "Button", "useCallback", "ArrowRightLeft", "ServerCrash", "jsx", "jsxs", "HubSpotIcon", "size", "props", "jsx", "jsxs", "Unauthed", "onClose", "handleCopyAndConnect", "useCallback", "ServerCrash", "ArrowRightLeft", "HubSpotIcon", "Button", "jsx", "jsxs", "App", "initialProps", "projectName", "authedEnv", "authedPortalId", "modulesData", "hubLModules", "partialsData", "hubLTemplates", "webRootProjectComponentFolder", "themeWebRoot", "showUnauthed", "setShowUnauthed", "useState", "TooltipProvider", "Hero_default", "ComponentTableList_default", "Footer_default", "Unauthed", "jsx", "render", "initialProps", "renderOnServer", "StrictMode", "App"]
|
|
7
|
-
}
|
package/dist/clientEntry.css
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type="button"]),input:where([type="reset"]),input:where([type="submit"]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden="until-found"])){display:none}:root{--primary: 11.9 100% 67.5%;--primary-foreground: 0 0% 100%;--radius: .5rem;--accent: 240 4.8% 95.9%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--background: 0 0% 100%;--muted: 240 4.8% 95.9%}body{font-family:Lexend Deca,Helvetica,Arial,sans-serif;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-1\.5{right:.375rem}.right-4{right:1rem}.top-0{top:0}.top-1\.5{top:.375rem}.top-4{top:1rem}.z-10{z-index:10}.z-50{z-index:50}.m-1{margin:.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-16{margin-bottom:4rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-\[-82px\]{margin-bottom:-82px}.ml-14{margin-left:3.5rem}.ml-4{margin-left:1rem}.mr-2{margin-right:.5rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-36{height:9rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[20px\]{height:20px}.h-\[470px\]{height:470px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-\[770px\]{max-height:770px}.min-h-36{min-height:9rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\[170px\]{width:170px}.w-\[1px\]{width:1px}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-\[120px\]{min-width:120px}.max-w-2xl{max-width:42rem}.max-w-\[200px\]{max-width:200px}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.caption-bottom{caption-side:bottom}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity))}.bg-\[\#0F172A\]{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-black\/80{background-color:#000c}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.bg-slate-900\/90{background-color:#0f172ae6}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-0{padding:0}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[14px\]{font-size:14px}.text-\[16px\]{font-size:16px}.text-\[22px\]{font-size:22px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-9{line-height:2.25rem}.leading-\[27px\]{line-height:27px}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.text-\[\#9CDCFE\]{--tw-text-opacity: 1;color:rgb(156 220 254 / var(--tw-text-opacity))}.text-\[\#ff7a59\]{--tw-text-opacity: 1;color:rgb(255 122 89 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}@font-face{font-family:Lexend Deca;src:url(/fonts/LexendDeca-Light-IDG5XLZG.woff2) format("woff2")}@font-face{font-family:Lexend Deca;src:url(/fonts/LexendDeca-Medium-ZCTJP7FU.woff2) format("woff2");font-weight:500}@font-face{font-family:Lexend Deca;src:url(/fonts/LexendDeca-SemiBold-LCAJGQDV.woff2) format("woff2");font-weight:600}@font-face{font-family:Lexend Deca;src:url(/fonts/LexendDeca-Bold-PSGSBIWW.woff2) format("woff2");font-weight:700}.odd\:bg-white:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.even\:bg-gray-50:nth-child(even){--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.active\:bg-gray-200:active{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}@media (min-width: 640px){.sm\:max-w-sm{max-width:24rem}.sm\:max-w-xl{max-width:36rem}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}
|
|
2
|
-
/*# sourceMappingURL=/clientEntry.css.map */
|
package/dist/clientEntry.css.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../app/index.css"],
|
|
4
|
-
"sourcesContent": ["*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.14 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type='button']),\ninput:where([type='reset']),\ninput:where([type='submit']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden]:where(:not([hidden=\"until-found\"])) {\n display: none;\n}\n :root {\n --primary: 11.9 100% 67.5%;\n --primary-foreground: 0 0% 100%;\n --radius: 0.5rem;\n --accent: 240 4.8% 95.9%;\n --border: 240 5.9% 90%;\n --input: 240 5.9% 90%;\n --background: 0 0% 100%;\n --muted: 240 4.8% 95.9%;\n }\n\n body {\n font-family: \"Lexend Deca\", Helvetica, Arial, sans-serif;\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.container {\n width: 100%;\n margin-right: auto;\n margin-left: auto;\n padding-right: 2rem;\n padding-left: 2rem;\n}\n@media (min-width: 1400px) {\n\n .container {\n max-width: 1400px;\n }\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.inset-0 {\n inset: 0px;\n}\n.inset-x-0 {\n left: 0px;\n right: 0px;\n}\n.inset-y-0 {\n top: 0px;\n bottom: 0px;\n}\n.bottom-0 {\n bottom: 0px;\n}\n.left-0 {\n left: 0px;\n}\n.right-0 {\n right: 0px;\n}\n.right-1\\.5 {\n right: 0.375rem;\n}\n.right-4 {\n right: 1rem;\n}\n.top-0 {\n top: 0px;\n}\n.top-1\\.5 {\n top: 0.375rem;\n}\n.top-4 {\n top: 1rem;\n}\n.z-10 {\n z-index: 10;\n}\n.z-50 {\n z-index: 50;\n}\n.m-1 {\n margin: 0.25rem;\n}\n.mx-4 {\n margin-left: 1rem;\n margin-right: 1rem;\n}\n.my-6 {\n margin-top: 1.5rem;\n margin-bottom: 1.5rem;\n}\n.mb-16 {\n margin-bottom: 4rem;\n}\n.mb-3 {\n margin-bottom: 0.75rem;\n}\n.mb-4 {\n margin-bottom: 1rem;\n}\n.mb-5 {\n margin-bottom: 1.25rem;\n}\n.mb-6 {\n margin-bottom: 1.5rem;\n}\n.mb-\\[-82px\\] {\n margin-bottom: -82px;\n}\n.ml-14 {\n margin-left: 3.5rem;\n}\n.ml-4 {\n margin-left: 1rem;\n}\n.mr-2 {\n margin-right: 0.5rem;\n}\n.mt-10 {\n margin-top: 2.5rem;\n}\n.mt-12 {\n margin-top: 3rem;\n}\n.mt-2 {\n margin-top: 0.5rem;\n}\n.mt-4 {\n margin-top: 1rem;\n}\n.mt-5 {\n margin-top: 1.25rem;\n}\n.mt-6 {\n margin-top: 1.5rem;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.table {\n display: table;\n}\n.grid {\n display: grid;\n}\n.h-10 {\n height: 2.5rem;\n}\n.h-11 {\n height: 2.75rem;\n}\n.h-12 {\n height: 3rem;\n}\n.h-36 {\n height: 9rem;\n}\n.h-4 {\n height: 1rem;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-8 {\n height: 2rem;\n}\n.h-9 {\n height: 2.25rem;\n}\n.h-\\[1px\\] {\n height: 1px;\n}\n.h-\\[20px\\] {\n height: 20px;\n}\n.h-\\[470px\\] {\n height: 470px;\n}\n.h-fit {\n height: -moz-fit-content;\n height: fit-content;\n}\n.h-full {\n height: 100%;\n}\n.max-h-\\[770px\\] {\n max-height: 770px;\n}\n.min-h-36 {\n min-height: 9rem;\n}\n.w-1\\/2 {\n width: 50%;\n}\n.w-10 {\n width: 2.5rem;\n}\n.w-12 {\n width: 3rem;\n}\n.w-3\\/4 {\n width: 75%;\n}\n.w-4 {\n width: 1rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-8 {\n width: 2rem;\n}\n.w-\\[170px\\] {\n width: 170px;\n}\n.w-\\[1px\\] {\n width: 1px;\n}\n.w-full {\n width: 100%;\n}\n.min-w-10 {\n min-width: 2.5rem;\n}\n.min-w-\\[120px\\] {\n min-width: 120px;\n}\n.max-w-2xl {\n max-width: 42rem;\n}\n.max-w-\\[200px\\] {\n max-width: 200px;\n}\n.max-w-md {\n max-width: 28rem;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.flex-none {\n flex: none;\n}\n.shrink-0 {\n flex-shrink: 0;\n}\n.flex-grow {\n flex-grow: 1;\n}\n.caption-bottom {\n caption-side: bottom;\n}\n@keyframes pulse {\n\n 50% {\n opacity: .5;\n }\n}\n.animate-pulse {\n animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.flex-col {\n flex-direction: column;\n}\n.flex-col-reverse {\n flex-direction: column-reverse;\n}\n.flex-wrap {\n flex-wrap: wrap;\n}\n.items-start {\n align-items: flex-start;\n}\n.items-center {\n align-items: center;\n}\n.justify-start {\n justify-content: flex-start;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-1 {\n gap: 0.25rem;\n}\n.gap-2 {\n gap: 0.5rem;\n}\n.gap-2\\.5 {\n gap: 0.625rem;\n}\n.gap-3 {\n gap: 0.75rem;\n}\n.gap-4 {\n gap: 1rem;\n}\n.gap-6 {\n gap: 1.5rem;\n}\n.gap-8 {\n gap: 2rem;\n}\n.space-x-4 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(1rem * var(--tw-space-x-reverse));\n margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.space-y-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));\n}\n.space-y-4 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(1rem * var(--tw-space-y-reverse));\n}\n.space-y-6 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.overflow-y-scroll {\n overflow-y: scroll;\n}\n.whitespace-nowrap {\n white-space: nowrap;\n}\n.whitespace-pre-wrap {\n white-space: pre-wrap;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.rounded-3xl {\n border-radius: 1.5rem;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-lg {\n border-radius: var(--radius);\n}\n.rounded-md {\n border-radius: calc(var(--radius) - 2px);\n}\n.rounded-sm {\n border-radius: calc(var(--radius) - 4px);\n}\n.rounded-xl {\n border-radius: 0.75rem;\n}\n.border {\n border-width: 1px;\n}\n.border-b {\n border-bottom-width: 1px;\n}\n.border-l {\n border-left-width: 1px;\n}\n.border-r {\n border-right-width: 1px;\n}\n.border-t {\n border-top-width: 1px;\n}\n.border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}\n.border-input {\n border-color: hsl(var(--input));\n}\n.border-slate-300 {\n --tw-border-opacity: 1;\n border-color: rgb(203 213 225 / var(--tw-border-opacity));\n}\n.bg-\\[\\#0F172A\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(15 23 42 / var(--tw-bg-opacity));\n}\n.bg-background {\n background-color: hsl(var(--background));\n}\n.bg-background\\/80 {\n background-color: hsl(var(--background) / 0.8);\n}\n.bg-black {\n --tw-bg-opacity: 1;\n background-color: rgb(0 0 0 / var(--tw-bg-opacity));\n}\n.bg-black\\/80 {\n background-color: rgb(0 0 0 / 0.8);\n}\n.bg-border {\n background-color: hsl(var(--border));\n}\n.bg-destructive {\n background-color: hsl(var(--destructive));\n}\n.bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity));\n}\n.bg-muted {\n background-color: hsl(var(--muted));\n}\n.bg-muted\\/50 {\n background-color: hsl(var(--muted) / 0.5);\n}\n.bg-popover {\n background-color: hsl(var(--popover));\n}\n.bg-primary {\n background-color: hsl(var(--primary));\n}\n.bg-secondary {\n background-color: hsl(var(--secondary));\n}\n.bg-slate-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(241 245 249 / var(--tw-bg-opacity));\n}\n.bg-slate-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(15 23 42 / var(--tw-bg-opacity));\n}\n.bg-slate-900\\/90 {\n background-color: rgb(15 23 42 / 0.9);\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n.p-0 {\n padding: 0px;\n}\n.p-4 {\n padding: 1rem;\n}\n.p-6 {\n padding: 1.5rem;\n}\n.p-8 {\n padding: 2rem;\n}\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.px-1\\.5 {\n padding-left: 0.375rem;\n padding-right: 0.375rem;\n}\n.px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n.py-0\\.5 {\n padding-top: 0.125rem;\n padding-bottom: 0.125rem;\n}\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n.py-16 {\n padding-top: 4rem;\n padding-bottom: 4rem;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-6 {\n padding-top: 1.5rem;\n padding-bottom: 1.5rem;\n}\n.py-8 {\n padding-top: 2rem;\n padding-bottom: 2rem;\n}\n.pb-6 {\n padding-bottom: 1.5rem;\n}\n.pb-8 {\n padding-bottom: 2rem;\n}\n.pt-8 {\n padding-top: 2rem;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.align-middle {\n vertical-align: middle;\n}\n.text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n}\n.text-4xl {\n font-size: 2.25rem;\n line-height: 2.5rem;\n}\n.text-\\[14px\\] {\n font-size: 14px;\n}\n.text-\\[16px\\] {\n font-size: 16px;\n}\n.text-\\[22px\\] {\n font-size: 22px;\n}\n.text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.text-xl {\n font-size: 1.25rem;\n line-height: 1.75rem;\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.font-bold {\n font-weight: 700;\n}\n.font-extrabold {\n font-weight: 800;\n}\n.font-light {\n font-weight: 300;\n}\n.font-medium {\n font-weight: 500;\n}\n.font-normal {\n font-weight: 400;\n}\n.font-semibold {\n font-weight: 600;\n}\n.uppercase {\n text-transform: uppercase;\n}\n.italic {\n font-style: italic;\n}\n.leading-4 {\n line-height: 1rem;\n}\n.leading-5 {\n line-height: 1.25rem;\n}\n.leading-6 {\n line-height: 1.5rem;\n}\n.leading-7 {\n line-height: 1.75rem;\n}\n.leading-8 {\n line-height: 2rem;\n}\n.leading-9 {\n line-height: 2.25rem;\n}\n.leading-\\[27px\\] {\n line-height: 27px;\n}\n.leading-none {\n line-height: 1;\n}\n.leading-tight {\n line-height: 1.25;\n}\n.tracking-tight {\n letter-spacing: -0.025em;\n}\n.text-\\[\\#9CDCFE\\] {\n --tw-text-opacity: 1;\n color: rgb(156 220 254 / var(--tw-text-opacity));\n}\n.text-\\[\\#ff7a59\\] {\n --tw-text-opacity: 1;\n color: rgb(255 122 89 / var(--tw-text-opacity));\n}\n.text-black {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n.text-destructive-foreground {\n color: hsl(var(--destructive-foreground));\n}\n.text-foreground {\n color: hsl(var(--foreground));\n}\n.text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.text-green-500 {\n --tw-text-opacity: 1;\n color: rgb(34 197 94 / var(--tw-text-opacity));\n}\n.text-muted-foreground {\n color: hsl(var(--muted-foreground));\n}\n.text-popover-foreground {\n color: hsl(var(--popover-foreground));\n}\n.text-primary {\n color: hsl(var(--primary));\n}\n.text-primary-foreground {\n color: hsl(var(--primary-foreground));\n}\n.text-red-500 {\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity));\n}\n.text-secondary-foreground {\n color: hsl(var(--secondary-foreground));\n}\n.text-slate-400 {\n --tw-text-opacity: 1;\n color: rgb(148 163 184 / var(--tw-text-opacity));\n}\n.text-slate-900 {\n --tw-text-opacity: 1;\n color: rgb(15 23 42 / var(--tw-text-opacity));\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n.underline {\n text-decoration-line: underline;\n}\n.underline-offset-4 {\n text-underline-offset: 4px;\n}\n.opacity-50 {\n opacity: 0.5;\n}\n.opacity-70 {\n opacity: 0.7;\n}\n.opacity-90 {\n opacity: 0.9;\n}\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.outline {\n outline-style: solid;\n}\n.ring {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n.ring-offset-background {\n --tw-ring-offset-color: hsl(var(--background));\n}\n.backdrop-blur-sm {\n --tw-backdrop-blur: blur(4px);\n -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n@keyframes enter {\n\n from {\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n }\n}\n@keyframes exit {\n\n to {\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n }\n}\n.animate-in {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.fade-in-0 {\n --tw-enter-opacity: 0;\n}\n.zoom-in-95 {\n --tw-enter-scale: .95;\n}\n.ease-in-out {\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n/* HS Orange hex #FF7A59 */\n\n@font-face {\n font-family: 'Lexend Deca';\n src: url(./fonts/LexendDeca-Light.woff2) format('woff2');\n}\n\n@font-face {\n font-family: 'Lexend Deca';\n src: url(./fonts/LexendDeca-Medium.woff2) format('woff2');\n font-weight: 500;\n}\n\n@font-face {\n font-family: 'Lexend Deca';\n src: url(./fonts/LexendDeca-SemiBold.woff2) format('woff2');\n font-weight: 600;\n}\n\n@font-face {\n font-family: 'Lexend Deca';\n src: url(./fonts/LexendDeca-Bold.woff2) format('woff2');\n font-weight: 700;\n}\n\n.odd\\:bg-white:nth-child(odd) {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n\n.even\\:bg-gray-50:nth-child(even) {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity));\n}\n\n.hover\\:bg-accent:hover {\n background-color: hsl(var(--accent));\n}\n\n.hover\\:bg-destructive\\/90:hover {\n background-color: hsl(var(--destructive) / 0.9);\n}\n\n.hover\\:bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n\n.hover\\:bg-muted\\/50:hover {\n background-color: hsl(var(--muted) / 0.5);\n}\n\n.hover\\:bg-primary\\/90:hover {\n background-color: hsl(var(--primary) / 0.9);\n}\n\n.hover\\:bg-secondary\\/80:hover {\n background-color: hsl(var(--secondary) / 0.8);\n}\n\n.hover\\:text-accent-foreground:hover {\n color: hsl(var(--accent-foreground));\n}\n\n.hover\\:underline:hover {\n text-decoration-line: underline;\n}\n\n.hover\\:opacity-100:hover {\n opacity: 1;\n}\n\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.focus\\:ring-2:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.focus\\:ring-ring:focus {\n --tw-ring-color: hsl(var(--ring));\n}\n\n.focus\\:ring-offset-2:focus {\n --tw-ring-offset-width: 2px;\n}\n\n.focus-visible\\:outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.focus-visible\\:ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.focus-visible\\:ring-ring:focus-visible {\n --tw-ring-color: hsl(var(--ring));\n}\n\n.focus-visible\\:ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n\n.active\\:bg-gray-200:active {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity));\n}\n\n.disabled\\:pointer-events-none:disabled {\n pointer-events: none;\n}\n\n.disabled\\:opacity-50:disabled {\n opacity: 0.5;\n}\n\n.data-\\[state\\=open\\]\\:bg-secondary[data-state=\"open\"] {\n background-color: hsl(var(--secondary));\n}\n\n.data-\\[state\\=selected\\]\\:bg-muted[data-state=\"selected\"] {\n background-color: hsl(var(--muted));\n}\n\n.data-\\[state\\=closed\\]\\:duration-300[data-state=\"closed\"] {\n transition-duration: 300ms;\n}\n\n.data-\\[state\\=open\\]\\:duration-500[data-state=\"open\"] {\n transition-duration: 500ms;\n}\n\n.data-\\[state\\=open\\]\\:animate-in[data-state=\"open\"] {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n\n.data-\\[state\\=closed\\]\\:animate-out[data-state=\"closed\"] {\n animation-name: exit;\n animation-duration: 150ms;\n --tw-exit-opacity: initial;\n --tw-exit-scale: initial;\n --tw-exit-rotate: initial;\n --tw-exit-translate-x: initial;\n --tw-exit-translate-y: initial;\n}\n\n.data-\\[state\\=closed\\]\\:fade-out-0[data-state=\"closed\"] {\n --tw-exit-opacity: 0;\n}\n\n.data-\\[state\\=open\\]\\:fade-in-0[data-state=\"open\"] {\n --tw-enter-opacity: 0;\n}\n\n.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=\"closed\"] {\n --tw-exit-scale: .95;\n}\n\n.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=\"bottom\"] {\n --tw-enter-translate-y: -0.5rem;\n}\n\n.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=\"left\"] {\n --tw-enter-translate-x: 0.5rem;\n}\n\n.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=\"right\"] {\n --tw-enter-translate-x: -0.5rem;\n}\n\n.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=\"top\"] {\n --tw-enter-translate-y: 0.5rem;\n}\n\n.data-\\[state\\=closed\\]\\:slide-out-to-bottom[data-state=\"closed\"] {\n --tw-exit-translate-y: 100%;\n}\n\n.data-\\[state\\=closed\\]\\:slide-out-to-left[data-state=\"closed\"] {\n --tw-exit-translate-x: -100%;\n}\n\n.data-\\[state\\=closed\\]\\:slide-out-to-right[data-state=\"closed\"] {\n --tw-exit-translate-x: 100%;\n}\n\n.data-\\[state\\=closed\\]\\:slide-out-to-top[data-state=\"closed\"] {\n --tw-exit-translate-y: -100%;\n}\n\n.data-\\[state\\=open\\]\\:slide-in-from-bottom[data-state=\"open\"] {\n --tw-enter-translate-y: 100%;\n}\n\n.data-\\[state\\=open\\]\\:slide-in-from-left[data-state=\"open\"] {\n --tw-enter-translate-x: -100%;\n}\n\n.data-\\[state\\=open\\]\\:slide-in-from-right[data-state=\"open\"] {\n --tw-enter-translate-x: 100%;\n}\n\n.data-\\[state\\=open\\]\\:slide-in-from-top[data-state=\"open\"] {\n --tw-enter-translate-y: -100%;\n}\n\n.data-\\[state\\=closed\\]\\:duration-300[data-state=\"closed\"] {\n animation-duration: 300ms;\n}\n\n.data-\\[state\\=open\\]\\:duration-500[data-state=\"open\"] {\n animation-duration: 500ms;\n}\n\n@media (min-width: 640px) {\n\n .sm\\:max-w-sm {\n max-width: 24rem;\n }\n\n .sm\\:max-w-xl {\n max-width: 36rem;\n }\n\n .sm\\:flex-row {\n flex-direction: row;\n }\n\n .sm\\:justify-end {\n justify-content: flex-end;\n }\n\n .sm\\:space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n }\n\n .sm\\:text-left {\n text-align: left;\n }\n}\n\n.\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]) {\n padding-right: 0px;\n}\n\n.\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr {\n border-bottom-width: 0px;\n}\n\n.\\[\\&_svg\\]\\:pointer-events-none svg {\n pointer-events: none;\n}\n\n.\\[\\&_svg\\]\\:size-4 svg {\n width: 1rem;\n height: 1rem;\n}\n\n.\\[\\&_svg\\]\\:shrink-0 svg {\n flex-shrink: 0;\n}\n\n.\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child {\n border-width: 0px;\n}\n\n.\\[\\&_tr\\]\\:border-b tr {\n border-bottom-width: 1px;\n}\n"],
|
|
5
|
-
"mappings": "AAAA,iBACE,yBACA,yBACA,oBACA,oBACA,eACA,eACA,eACA,gBACA,gBACA,aACA,aACA,kBACA,uCACA,8BACA,6BACA,4BACA,eACA,oBACA,sBACA,uBACA,wBACA,kBACA,4BACA,6BACA,sCACA,mCACA,4BACA,uBACA,+BACA,YACA,kBACA,gBACA,iBACA,kBACA,cACA,gBACA,aACA,mBACA,qBACA,2BACA,yBACA,0BACA,2BACA,uBACA,wBACA,yBACA,sBACA,oBACA,sBACA,qBACA,qBAGF,WACE,yBACA,yBACA,oBACA,oBACA,eACA,eACA,eACA,gBACA,gBACA,aACA,aACA,kBACA,uCACA,8BACA,6BACA,4BACA,eACA,oBACA,sBACA,uBACA,wBACA,kBACA,4BACA,6BACA,sCACA,mCACA,4BACA,uBACA,+BACA,YACA,kBACA,gBACA,iBACA,kBACA,cACA,gBACA,aACA,mBACA,qBACA,2BACA,yBACA,0BACA,2BACA,uBACA,wBACA,yBACA,sBACA,oBACA,sBACA,qBACA,qBAQF,iBAGE,sBACA,eACA,mBACA,qBAGF,eAEE,iBAaF,WAEE,gBACA,8BACA,gBACA,cACG,WACH,uHACA,6BACA,+BACA,wCAQF,KA3JA,SA6JE,oBASF,GACE,SACA,cACA,qBAOF,oBACE,yCACQ,iCAOV,kBAME,kBACA,oBAOF,EACE,cACA,wBAOF,SAEE,mBAUF,kBAIE,oGACA,6BACA,+BACA,cAOF,MACE,cAOF,QAEE,cACA,cACA,kBACA,wBAGF,IACE,cAGF,IACE,UASF,MACE,cACA,qBACA,yBASF,sCAKE,oBACA,8BACA,gCACA,eACA,oBACA,oBACA,uBACA,cAhSF,mBAySA,cAEE,oBAQF,6FAIE,0BACA,6BACA,sBAOF,gBACE,aAOF,iBACE,gBAOF,SACE,wBAOF,wDAEE,YAQF,cACE,6BACA,oBAOF,4BACE,wBAQF,6BACE,0BACA,aAOF,QACE,kBAOF,mDArYA,SAqZA,SArZA,mBA0ZA,OA1ZA,UA8ZA,WAGE,gBAjaF,mBAyaA,OAzaA,UAibA,SACE,gBAQF,mDACE,UACA,cAGF,yCAEE,UACA,cAOF,qBAEE,eAMF,UACE,eASF,+CAQE,cACA,sBAOF,UAEE,eACA,YAIF,6CACE,aAEA,MACE,2BACA,gCACA,gBACA,yBACA,uBACA,sBACA,wBACA,wBAGF,KACA,mDACA,qBACA,6CAEF,WACE,WACA,kBACA,iBACA,mBACA,kBAEF,2BAEE,WACE,kBAGJ,SACE,kBACA,UACA,WArhBF,sBAwhBE,gBACA,mBACA,mBACA,eAEF,OACE,eAEF,UACE,kBAEF,UACE,kBAEF,SAtiBA,QAyiBA,WACE,OACA,QAEF,WACE,MACA,SAEF,UACE,SAEF,QACE,OAEF,SACE,QAEF,YACE,cAEF,SACE,WAEF,OACE,MAEF,UACE,YAEF,OACE,SAEF,MACE,WAEF,MACE,WAEF,KA/kBA,cAklBA,MACE,iBACA,kBAEF,MACE,kBACA,qBAEF,OACE,mBAEF,MACE,qBAEF,MACE,mBAEF,MACE,sBAEF,MACE,qBAEF,cACE,oBAEF,OACE,mBAEF,MACE,iBAEF,MACE,mBAEF,OACE,kBAEF,OACE,gBAEF,MACE,iBAEF,MACE,gBAEF,MACE,mBAEF,MACE,kBAEF,MACE,aAEF,aACE,oBAEF,OACE,cAEF,MACE,aAEF,MACE,cAEF,MACE,eAEF,MACE,YAEF,MACE,YAEF,KACE,YAEF,KACE,cAEF,KACE,YAEF,KACE,eAEF,WACE,WAEF,YACE,YAEF,aACE,aAEF,OACE,wBACA,mBAEF,QACE,YAEF,iBACE,iBAEF,UACE,gBAEF,QACE,UAEF,MACE,aAEF,MACE,WAEF,QACE,UAEF,KACE,WAEF,KACE,aAEF,KACE,WAEF,aACE,YAEF,WACE,UAEF,QACE,WAEF,UACE,iBAEF,iBACE,gBAEF,WACE,gBAEF,iBACE,gBAEF,UACE,gBAEF,QACE,YAEF,WACE,UAEF,UACE,cAEF,WACE,YAEF,gBACE,oBAEF,qBAGI,YAGJ,eACE,oDAEF,gBACE,eAEF,UACE,sBAEF,kBACE,8BAEF,WACE,eAEF,aACE,uBAEF,cACE,mBAEF,eACE,2BAEF,aACE,yBAEF,gBACE,uBAEF,iBACE,8BAEF,OACE,WAEF,OACE,UAEF,UACE,YAEF,OACE,WAEF,OACE,SAEF,OACE,WAEF,OACE,SAEF,yCACE,wBACA,oDACA,6DAEF,yCACE,wBACA,6DACA,sDAEF,yCACE,wBACA,4DACA,qDAEF,yCACE,wBACA,8DACA,uDAEF,iBACE,gBAEF,iBACE,gBAEF,mBACE,kBAEF,mBACE,mBAEF,qBACE,qBAEF,SA51BA,qBA+1BA,aA/1BA,qBAk2BA,cAl2BA,qBAq2BA,YACE,4BAEF,YACE,wCAEF,YACE,wCAEF,YA92BA,qBAi3BA,QACE,iBAEF,UACE,wBAEF,UACE,sBAEF,UACE,uBAEF,UACE,qBAEF,iBACE,uBACA,yDAEF,cACE,+BAEF,kBACE,uBACA,yDAEF,iBACE,mBACA,sDAEF,eACE,wCAEF,mBACE,6CAEF,UACE,mBACA,mDAEF,cACE,uBAEF,WACE,oCAEF,gBACE,yCAEF,aACE,mBACA,yDAEF,UACE,mCAEF,cACE,wCAEF,YACE,qCAEF,YACE,qCAEF,cACE,uCAEF,cACE,mBACA,yDAEF,cACE,mBACA,sDAEF,kBACE,2BAEF,UACE,mBACA,yDAEF,KAp8BA,UAu8BA,KAv8BA,aA08BA,KA18BA,eA68BA,KA78BA,aAg9BA,MACE,oBACA,qBAEF,SACE,qBACA,sBAEF,OACE,oBACA,qBAEF,MACE,mBACA,oBAEF,MACE,oBACA,qBAEF,MACE,kBACA,mBAEF,MACE,oBACA,qBAEF,MACE,kBACA,mBAEF,SACE,oBACA,uBAEF,MACE,mBACA,sBAEF,SACE,oBACA,uBAEF,OACE,iBACA,oBAEF,MACE,kBACA,qBAEF,MACE,mBACA,sBAEF,MACE,iBACA,oBAEF,MACE,sBAEF,MACE,oBAEF,MACE,iBAEF,WACE,gBAEF,aACE,kBAEF,cACE,sBAEF,UACE,iBACA,iBAEF,UACE,kBACA,mBAEF,eACE,eAEF,eACE,eAEF,eACE,eAEF,WACE,eACA,mBAEF,SACE,mBACA,oBAEF,SACE,kBACA,oBAEF,SACE,kBACA,oBAEF,SACE,iBACA,iBAEF,WACE,gBAEF,gBACE,gBAEF,YACE,gBAEF,aACE,gBAEF,aACE,gBAEF,eACE,gBAEF,WACE,yBAEF,QACE,kBAEF,WACE,iBAEF,WACE,oBAEF,WACE,mBAEF,WACE,oBAEF,WACE,iBAEF,WACE,oBAEF,kBACE,iBAEF,cACE,cAEF,eACE,iBAEF,gBACE,uBAEF,mBACE,qBACA,gDAEF,mBACE,qBACA,+CAEF,YACE,qBACA,0CAEF,6BACE,yCAEF,iBACE,6BAEF,eACE,qBACA,6CAEF,gBACE,qBACA,8CAEF,uBACE,mCAEF,yBACE,qCAEF,cACE,0BAEF,yBACE,qCAEF,cACE,qBACA,8CAEF,2BACE,uCAEF,gBACE,qBACA,gDAEF,gBACE,qBACA,6CAEF,YACE,qBACA,gDAEF,WACE,+BAEF,oBACE,0BAEF,YACE,WAEF,YACE,WAEF,YACE,WAEF,WACE,8EACA,oGACA,qGAEF,WACE,4EACA,kGACA,qGAEF,SACE,oBAEF,MACE,4GACA,0GACA,0FAEF,wBACE,+CAEF,kBACE,8BACA,+QACA,uQAEF,YACE,sJACA,8IACA,sKACA,mDACA,yBAEF,mBACE,0FACA,mDACA,yBAEF,oBACE,4BACA,mDACA,yBAEF,aACE,mDAEF,oBAGI,mCACA,8MAGJ,mBAGI,kCACA,wMAGJ,YACE,qBACA,wBACA,4BACA,0BACA,2BACA,gCACA,gCAEF,WACE,sBAEF,YACE,sBAEF,aACE,kDAKF,WACE,wBACA,gEAGF,WACE,wBACA,iEACA,gBAGF,WACE,wBACA,mEACA,gBAGF,WACE,wBACA,+DACA,gBAGF,8BACE,mBACA,yDAGF,kCACE,mBACA,yDAGF,wBACE,oCAGF,iCACE,8CAGF,0BACE,mBACA,yDAGF,2BACE,wCAGF,6BACE,0CAGF,+BACE,4CAGF,qCACE,oCAGF,wBACE,+BAGF,0BACE,UAGF,2BACE,8BACA,mBAGF,qBACE,4GACA,0GACA,0FAGF,wBACE,kCAGF,4BACE,4BAGF,2CACE,8BACA,mBAGF,qCACE,4GACA,0GACA,0FAGF,wCACE,kCAGF,4CACE,4BAGF,4BACE,mBACA,yDAGF,wCACE,oBAGF,+BACE,WAGF,qDACE,uCAGF,yDACE,mCAGF,yDACE,wBAGF,qDACE,wBAGF,mDACE,qBACA,wBACA,4BACA,0BACA,2BACA,gCACA,gCAGF,wDACE,oBACA,wBACA,2BACA,yBACA,0BACA,+BACA,+BAGF,uDACE,qBAGF,kDACE,sBAGF,wDACE,qBAGF,8DACE,+BAGF,4DACE,8BAGF,6DACE,+BAGF,2DACE,8BAGF,gEACE,4BAGF,8DACE,6BAGF,+DACE,4BAGF,6DACE,6BAGF,6DACE,6BAGF,2DACE,8BAGF,4DACE,6BAGF,0DACE,8BAGF,yDACE,uBAGF,qDACE,uBAGF,0BAEE,cACE,gBAGF,cACE,gBAGF,cACE,mBAGF,iBACE,yBAGF,6CACE,wBACA,qDACA,8DAGF,eACE,iBAIJ,8DACE,gBAGF,4CACE,wBAGF,qCACE,oBAGF,wBACE,WACA,YAGF,0BACE,cAGF,+CACE,iBAGF,wBACE",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|