PageSourceSearch

https://app.lunacal.ai/_next/static/chunks/89044-a65f9b2c319c2604.js

js lunacal.ai collected 2026-09-24 08:53:52 UTC 96,725 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[89044],{226392:function(e,t,o){o.d(t,{N:function(){return useDebounce}});var l=o(202784);function useDebounce(e,t){let[o,n]=(0,l.useState)(e);return(0,l.useEffect)(()=>{let o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),o}},993029:function(e,t,o){o.d(t,{h:function(){return ButtonGroup}});var l=o(552322),n=o(802982);function ButtonGroup(e){let{children:t,combined:o=!1,containerProps:r}=e;return(0,l.jsx)("div",{...r,className:(0,n.Z)("flex",o?"ltr:[&>*:first-child]:ml-0 ltr:[&>*:first-child]:rounded-l-sm ltr:[&>*:first-child]:border-l rtl:[&>*:first-child]:rounded-r-sm rtl:[&>*:first-child]:border-r ltr:[&>*:last-child]:rounded-r-sm rtl:[&>*:last-child]:rounded-l-sm [&>a]:-ml-[1px] hover:[&>a]:z-[1] [&>button]:-ml-[1px] hover:[&>button]:z-[1] [&_a]:rounded-none [&_button]:rounded-none":"space-x-2 rtl:space-x-reverse",null==r?void 0:r.className),children:t})}o(202784)},141727:function(e,t,o){o.d(t,{Oc:function(){return CommandShortcut},di:function(){return h},e8:function(){return c},fu:function(){return p},m5:function(){return CommandDialog},mY:function(){return s},rb:function(){return u},sZ:function(){return d},zz:function(){return m}});var l=o(552322),n=o(802982),r=o(143145),a=o(202784),i=o(663090);let s=a.forwardRef((e,t)=>{let{className:o,...a}=e;return(0,l.jsx)(r.mY,{ref:t,className:(0,n.Z)("bg-popover text-default-foreground flex h-full w-full flex-col overflow-hidden rounded-md",o),...a})});s.displayName=r.mY.displayName;let CommandDialog=e=>{let{children:t,...o}=e;return(0,l.jsx)(i.Vq,{...o,children:(0,l.jsx)(i.cZ,{className:"overflow-hidden p-0 shadow-lg",children:(0,l.jsx)(s,{className:"[&_[cmdk-group-heading]]:text-muted-foreground hover:bg-subtle [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t})})})},d=a.forwardRef((e,t)=>{let{className:o,...a}=e;return(0,l.jsx)("div",{className:"flex items-center border-b px-3 py-2","cmdk-input-wrapper":"",children:(0,l.jsx)(r.mY.Input,{ref:t,className:(0,n.Z)("placeholder:text-muted-foreground hover:border-emphasis dark:focus:border-emphasis border-default bg-default placeholder:text-muted-foreground text-emphasis-foreground disabled:hover:border-default disabled:bg-subtle focus:ring-secondary-1 focus:border-subtle block flex h-[28px] w-full rounded-md rounded-md border bg-transparent px-3 py-1.5 text-sm text-sm leading-4 outline-none focus:outline-none focus:ring-2 disabled:cursor-not-allowed disabled:cursor-not-allowed disabled:opacity-50",o),...a})})});d.displayName=r.mY.Input.displayName;let c=a.forwardRef((e,t)=>{let{className:o,...a}=e;return(0,l.jsx)(r.mY.List,{ref:t,className:(0,n.Z)("max-h-[300px] overflow-y-auto overflow-x-hidden",o),...a})});c.displayName=r.mY.List.displayName;let u=a.forwardRef((e,t)=>(0,l.jsx)(r.mY.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));u.displayName=r.mY.Empty.displayName;let p=a.forwardRef((e,t)=>{let{className:o,...a}=e;return(0,l.jsx)(r.mY.Group,{ref:t,className:(0,n.Z)("text-default-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",o),...a})});p.displayName=r.mY.Group.displayName;let m=a.forwardRef((e,t)=>{let{className:o,...a}=e;return(0,l.jsx)(r.mY.Separator,{ref:t,className:(0,n.Z)("bg-subtle -mx-1 mb-2 h-px",o),...a})});m.displayName=r.mY.Separator.displayName;let h=a.forwardRef((e,t)=>{let{className:o,...a}=e;return(0,l.jsx)(r.mY.Item,{ref:t,className:(0,n.Z)("aria-selected:bg-muted aria-selected:text-emphasis-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...a})});h.displayName=r.mY.Item.displayName;let CommandShortcut=e=>{let{className:t,...o}=e;return(0,l.jsx)("span",{className:(0,n.Z)("text-muted-foreground ml-auto text-xs tracking-widest",t),...o})};CommandShortcut.displayName="CommandShortcut"},352582:function(e,t,o){o.d(t,{p:function(){return CreateButtonWithTeamsList}});var l=o(552322),n=o(344407),r=o(110037),a=o(420164),i=o(366080),s=o(137658),d=o(701363),c=o(682876);function CalCreateButton(e){let{t}=(0,a.b)(),o=(0,c.useRouter)(),n=(0,r.N)(),u=(0,c.usePathname)(),{createDialog:p,options:m,isPending:h,createFunction:b,buttonText:f,disableMobileButton:g,subtitle:x,...v}=e,y=p?p():null,C=!!m.find(e=>e.teamId),N=!!m.find(e=>e.platform),openModal=e=>{let t=new URLSearchParams(null!=n?n:void 0);function setParamsIfDefined(e,o){null!=o&&t.set(e,o.toString())}setParamsIfDefined("dialog","new"),setParamsIfDefined("eventPage",e.slug),setParamsIfDefined("teamId",e.teamId),e.teamId||t.delete("teamId"),o.push("".concat(u,"?").concat(t.toString()))};return(0,l.jsxs)(l.Fragment,{children:[C||N?(0,l.jsxs)(s.Lt,{children:[(0,l.jsx)(s.$F,{asChild:!0,children:(0,l.jsx)(i.z,{variant:g?"button":"fab","data-testid":"create-button-dropdown",loading:h,...v,children:f||t("new")})}),(0,l.jsxs)(s.AW,{sideOffset:14,align:"end",children:[(0,l.jsx)(s.Ju,{children:(0,l.jsx)("div",{className:"w-48 text-left text-xs",children:x})}),m.map((e,t)=>(0,l.jsx)(s.Xi,{children:(0,l.jsxs)(s.hP,{type:"button","data-testid":"option".concat(e.teamId?"-team":"","-").concat(t),CustomStartIcon:(0,l.jsx)(d.q,{alt:e.label||"",imageSrc:e.image,size:"sm"}),onClick:()=>y?openModal(e):b?b(e.teamId||void 0,e.platform,e.adminManagedWorkflow):null,children:[" ",(0,l.jsx)("span",{children:e.label})]})},e.label))]})]}):(0,l.jsx)(i.z,{onClick:()=>y?openModal(m[0]):b?b(m[0].teamId||void 0,m[0].platform,m[0].adminManagedWorkflow):null,loading:h,color:"outline-gradient",variant:g?"button":"fab",...v,children:f||t("new")}),(null==n?void 0:n.get("dialog"))==="new"&&y]})}function CreateButtonWithTeamsList(e){let t=n.S.viewer.teamsAndUserProfilesQuery.useQuery({includeOrg:!0});if(!t.data)return null;let o=t.data.filter(e=>!e.readOnly).map(e=>({teamId:e.teamId,label:e.name||e.slug,image:e.image,slug:e.slug}));return(e.isAdmin&&o.push({platform:!0,label:"Platform",image:null,slug:null,teamId:null}),e.onlyShowWithTeams&&o.length<2||e.onlyShowWithNoTeams&&o.length>1)?null:(e.adminManagedWorkflow&&o.push({adminManagedWorkflow:!0,label:"Team Owner Managed Workflows",image:null,slug:null,teamId:null}),(0,l.jsx)(CalCreateButton,{...e,options:o}))}},979358:function(e,t,o){o.d(t,{w:function(){return DataTable}});var l=o(552322),n=o(595412),r=o(873705),a=o(202784),i=o(470495),s=o(802982),d=o(31729),c=o(516634),u=o(366080);function DataTableSelectionBar(e){let{table:t,actions:o,renderAboveSelection:n}=e,r=t.getSelectedRowModel().rows.length,i=null==o?void 0:o.filter(e=>!e.needsXSelected||e.needsXSelected<=r);return(0,l.jsx)(c.M,{children:r>0?(0,l.jsxs)("div",{className:"fade-in fixed bottom-6 left-1/2 hidden -translate-x-1/2 gap-1 md:flex md:flex-col",children:[n&&n(t),(0,l.jsxs)("div",{className:"bg-secondary-1 text-inverted-foreground hidden items-center justify-between rounded-lg p-2 md:flex",children:[(0,l.jsxs)("p",{className:"text-muted-foreground w-full px-2 text-center leading-none",children:[r," selected"]}),null==i?void 0:i.map((e,o)=>(0,l.jsx)(a.Fragment,{children:"action"===e.type?(0,l.jsx)(u.z,{"aria-label":e.label,onClick:e.onClick,StartIcon:e.icon,children:e.label}):"render"===e.type?e.render(t):null},o))]})]}):null})}var p=o(226392),m=o(420164),h=o(178617),b=o(886279),f=o(170552),g=o(141727),x=o(136650);
1function DataTableFilter(e){let{column:t,title:o,options:n}=e,r=null==t?void 0:t.getFacetedUniqueValues(),a=new Set(null==t?void 0:t.getFilterValue());return(0,l.jsxs)(x.J2,{children:[(0,l.jsx)(x.xo,{asChild:!0,children:(0,l.jsxs)(u.z,{color:"outline",size:"sm",className:"border-subtle h-8 rounded-md",children:[(0,l.jsx)(b.Z,{name:"filter",className:"mr-2 h-4 w-4"}),o,(null==a?void 0:a.size)>0&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"ml-2 hidden space-x-1 md:flex",children:a.size>2?(0,l.jsx)(f.C,{color:"gray",className:"rounded-sm px-1 font-normal",children:a.size}):n.filter(e=>a.has(e.value)).map(e=>(0,l.jsx)(f.C,{color:"gray",className:"rounded-sm px-1 font-normal",children:e.label},e.value))})})]})}),(0,l.jsx)(x.yk,{className:"w-[200px] p-0",align:"start",children:(0,l.jsxs)(g.mY,{children:[(0,l.jsx)(g.sZ,{placeholder:o}),(0,l.jsxs)(g.e8,{children:[(0,l.jsx)(g.rb,{children:"No results found."}),(0,l.jsx)(g.fu,{children:n.map(e=>{let o=a.has(e.value);return(0,l.jsxs)(g.di,{onSelect:()=>{o?a.delete(e.value):a.add(e.value);let l=Array.from(a);null==t||t.setFilterValue(l.length?l:void 0)},children:[(0,l.jsx)("div",{className:(0,s.Z)("border-subtle mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",o?"text-emphasis-foreground":"opacity-50 [&_svg]:invisible"),children:(0,l.jsx)(b.Z,{name:"check",className:(0,s.Z)("h-4 w-4")})}),e.icon&&(0,l.jsx)(e.icon,{className:"text-muted-foreground mr-2 h-4 w-4"}),(0,l.jsx)("span",{children:e.label}),(null==r?void 0:r.get(e.value))&&(0,l.jsx)("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:r.get(e.value)})]},e.value)})}),a.size>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.zz,{}),(0,l.jsx)(g.fu,{children:(0,l.jsx)(g.di,{onSelect:()=>null==t?void 0:t.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}function DataTableToolbar(e){var t,o;let{table:n,filterableItems:r,tableCTA:i,searchKey:s,onSearch:d}=e,c=n.getState().columnFilters.length>0,[b,f]=(0,a.useState)(""),g=(0,p.N)(b,500);(0,a.useEffect)(()=>{null==d||d(g)},[g,d]);let{t:x}=(0,m.b)();return(0,l.jsxs)("div",{className:"flex items-center justify-end  py-4",children:[s&&(0,l.jsx)(h.II,{className:"max-w-64 mb-0 mr-auto rounded-md",placeholder:"Search",value:null!==(o=null===(t=n.getColumn(s))||void 0===t?void 0:t.getFilterValue())&&void 0!==o?o:"",onChange:e=>{var t;return null===(t=n.getColumn(s))||void 0===t?void 0:t.setFilterValue(e.target.value.trim())}}),d&&(0,l.jsx)(h.II,{className:"max-w-64 mb-0 mr-auto rounded-md",placeholder:"Search",value:b,onChange:e=>{f(e.target.value)}}),c&&(0,l.jsx)(u.z,{color:"minimal",EndIcon:"x",onClick:()=>n.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:x("clear")}),r&&(null==r?void 0:r.map(e=>{let t=n.getColumn(e.tableAccessor);if(null==t?void 0:t.getCanFilter())return(0,l.jsx)(DataTableFilter,{column:t,title:e.title,options:e.options},e.title)})),i||null]})}function DataTable(e){var t,o,c;let{columns:u,data:p,filterableItems:m,tableCTA:h,searchKey:b,selectionOptions:f,tableContainerRef:g,isPending:x,tableOverlay:v,variant:y,renderAboveSelection:C,onSearch:N,onRowMouseclick:k,onScroll:E,tableClassName:S,tableContainerClassName:j,...I}=e,[A,w]=(0,a.useState)({}),[_,z]=(0,a.useState)({}),[O,R]=(0,a.useState)([]),[T,F]=(0,a.useState)([]),D=(0,n.b7)({data:p,columns:u,state:{sorting:T,columnVisibility:_,rowSelection:A,columnFilters:O},enableRowSelection:!0,debugTable:!0,manualPagination:!0,onRowSelectionChange:w,onSortingChange:F,onColumnFiltersChange:R,onColumnVisibilityChange:z,getCoreRowModel:(0,r.sC)(),getFilteredRowModel:(0,r.vL)(),getSortedRowModel:(0,r.tj)(),getFacetedRowModel:(0,r.o6)(),getFacetedUniqueValues:(0,r.JG)()}),{rows:M}=D.getRowModel(),B=(0,i.useVirtual)({parentRef:g,size:M.length,overscan:10}),{virtualItems:L,totalSize:P}=B,G=L.length>0&&(null==L?void 0:null===(t=L[0])||void 0===t?void 0:t.start)||0,H=L.length>0?P-((null==L?void 0:null===(o=L[L.length-1])||void 0===o?void 0:o.end)||0):0;return(0,l.jsxs)("div",{className:"relative space-y-4",children:[(0,l.jsx)(DataTableToolbar,{table:D,filterableItems:m,searchKey:b,onSearch:N,tableCTA:h}),(0,l.jsx)("div",{ref:g,onScroll:E,"data-testId":null!==(c=I["data-testId"])&&void 0!==c?c:"data-table",children:(0,l.jsxs)(d.iA,{"data-testId":"",className:S,containerClassName:j,children:[(0,l.jsx)(d.xD,{children:D.getHeaderGroups().map(e=>(0,l.jsx)(d.SC,{children:e.headers.map(e=>(0,l.jsx)(d.ss,{children:e.isPlaceholder?null:(0,n.ie)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,l.jsxs)(d.RM,{children:[G>0&&(0,l.jsx)("tr",{children:(0,l.jsx)("td",{style:{height:"".concat(G,"px")}})}),L&&!x?L.map(e=>{let t=M[e.index];return(0,l.jsx)(d.SC,{"data-state":t.getIsSelected()&&"selected",onClick:()=>k&&k(t),className:(0,s.Z)(k&&"hover:cursor-pointer","compact"===y&&"!border-0"),children:t.getVisibleCells().map(e=>(0,l.jsx)(d.pj,{className:(0,s.Z)("compact"===y&&"p-1.5"),children:(0,n.ie)(e.column.columnDef.cell,e.getContext())},e.id))},t.id)}):(0,l.jsx)(d.SC,{children:(0,l.jsx)(d.pj,{colSpan:u.length,className:"h-24 text-center",children:"No results."})}),H>0&&(0,l.jsx)("tr",{children:(0,l.jsx)("td",{style:{height:"".concat(H,"px")}})})]}),v&&v]})}),(0,l.jsx)(DataTableSelectionBar,{table:D,actions:f,renderAboveSelection:C})]})}},575116:function(e,t,o){o.d(t,{VT:function(){return s},of:function(){return BlockButton}});var l=o(552322);o(202784);var n=o(830195);let r=n.z.enum(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE"]).nullable().optional(),a=n.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),i=n.z.object({top:n.z.number(),bottom:n.z.number(),right:n.z.number(),left:n.z.number()}).optional().nullable(),getPadding=e=>e?"".concat(e.top,"px ").concat(e.right,"px ").concat(e.bottom,"px ").concat(e.left,"px"):void 0,s=n.z.object({style:n.z.object({backgroundColor:a,fontSize:n.z.number().min(0).optional().nullable(),fontFamily:r,fontWeight:n.z.enum(["bold","normal"]).optional().nullable(),textAlign:n.z.enum(["left","center","right"]).optional().nullable(),padding:i}
1).optional().nullable(),props:n.z.object({buttonBackgroundColor:a,buttonStyle:n.z.enum(["rectangle","pill","rounded"]).optional().nullable(),buttonTextColor:a,fullWidth:n.z.boolean().optional().nullable(),size:n.z.enum(["x-small","small","large","medium"]).optional().nullable(),text:n.z.string().optional().nullable(),url:n.z.string().optional().nullable()}).optional().nullable()}),d={text:"",url:"",fullWidth:!1,size:"medium",buttonStyle:"rounded",buttonTextColor:"#FFFFFF",buttonBackgroundColor:"#999999"};function BlockButton(e){var t,o,n,r,a,i,s,c,u;let{style:p,props:m}=e,h=null!==(t=null==m?void 0:m.text)&&void 0!==t?t:d.text,b=null!==(o=null==m?void 0:m.url)&&void 0!==o?o:d.url,f=null!==(n=null==m?void 0:m.fullWidth)&&void 0!==n?n:d.fullWidth,g=null!==(r=null==m?void 0:m.buttonTextColor)&&void 0!==r?r:d.buttonTextColor,x=null!==(a=null==m?void 0:m.buttonBackgroundColor)&&void 0!==a?a:d.buttonBackgroundColor,v=function(e){var t;let o=null!==(t=null==e?void 0:e.size)&&void 0!==t?t:d.size;switch(o){case"x-small":return[4,8];case"small":return[8,12];case"large":return[16,32];default:return[12,20]}}(m),y=6*v[1]/4,C={backgroundColor:null!==(i=null==p?void 0:p.backgroundColor)&&void 0!==i?i:void 0,textAlign:null!==(s=null==p?void 0:p.textAlign)&&void 0!==s?s:void 0,padding:getPadding(null==p?void 0:p.padding)},N={color:g,fontSize:null!==(c=null==p?void 0:p.fontSize)&&void 0!==c?c:16,fontFamily:function(e){switch(e){case"MODERN_SANS":return'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}}(null==p?void 0:p.fontFamily),fontWeight:null!==(u=null==p?void 0:p.fontWeight)&&void 0!==u?u:"bold",backgroundColor:x,borderRadius:function(e){var t;let o=null!==(t=null==e?void 0:e.buttonStyle)&&void 0!==t?t:d.buttonStyle;switch(o){case"rectangle":return;case"pill":return 64;default:return 4}}(m),display:f?"block":"inline-block",padding:"".concat(v[0],"px ").concat(v[1],"px"),textDecoration:"none"};return(0,l.jsx)("div",{style:C,children:(0,l.jsxs)("a",{href:b,style:N,target:"_blank",children:[(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:'<!--[if mso]><i style="letter-spacing: '.concat(v[1],"px;mso-font-width:-100%;mso-text-raise:").concat(y,'" hidden>&nbsp;</i><![endif]-->')}}),(0,l.jsx)("span",{children:h}),(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:'<!--[if mso]><i style="letter-spacing: '.concat(v[1],'px;mso-font-width:-100%" hidden>&nbsp;</i><![endif]-->')}})]})})}},329413:function(e,t,o){o.d(t,{P:function(){return BlockColumnsContainer},W:function(){return s}});var l=o(552322);o(202784);var n=o(830195);let r=n.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),a=n.z.object({top:n.z.number(),bottom:n.z.number(),right:n.z.number(),left:n.z.number()}).optional().nullable(),i=n.z.tuple([n.z.number().nullish(),n.z.number().nullish(),n.z.number().nullish()]).optional().nullable(),getPadding=e=>e?"".concat(e.top,"px ").concat(e.right,"px ").concat(e.bottom,"px ").concat(e.left,"px"):void 0,s=n.z.object({style:n.z.object({backgroundColor:r,padding:a}).optional().nullable(),props:n.z.object({fixedWidths:i,columnsCount:n.z.union([n.z.literal(2),n.z.literal(3)]).optional().nullable(),columnsGap:n.z.number().optional().nullable(),contentAlignment:n.z.enum(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),d={columnsCount:2,columnsGap:0,contentAlignment:"middle"};function BlockColumnsContainer(e){var t,o,n,r;let{style:a,columns:i,props:s}=e,c={backgroundColor:null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:void 0,padding:getPadding(null==a?void 0:a.padding)},u={columnsCount:null!==(o=null==s?void 0:s.columnsCount)&&void 0!==o?o:d.columnsCount,columnsGap:null!==(n=null==s?void 0:s.columnsGap)&&void 0!==n?n:d.columnsGap,contentAlignment:null!==(r=null==s?void 0:s.contentAlignment)&&void 0!==r?r:d.contentAlignment,fixedWidths:null==s?void 0:s.fixedWidths};return(0,l.jsx)("div",{style:c,children:(0,l.jsx)("table",{align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:"fixed",borderCollapse:"collapse"},children:(0,l.jsx)("tbody",{style:{width:"100%"},children:(0,l.jsxs)("tr",{style:{width:"100%"},children:[(0,l.jsx)(TableCell,{index:0,props:u,columns:i}),(0,l.jsx)(TableCell,{index:1,props:u,columns:i}),(0,l.jsx)(TableCell,{index:2,props:u,columns:i})]})})})})}function TableCell(e){var t,o,n,r,a;let{index:i,props:s,columns:c}=e,u=null!==(o=null==s?void 0:s.contentAlignment)&&void 0!==o?o:d.contentAlignment,p=null!==(n=null==s?void 0:s.columnsCount)&&void 0!==n?n:d.columnsCount;if(2===p&&2===i)return null;let m={boxSizing:"content-box",verticalAlign:u,paddingLeft:function(e,t){let{c
1olumnsGap:o,columnsCount:l}=t;return 0===e?0:2===l?o/2:1===e?o/3:2*o/3}(i,s),paddingRight:function(e,t){let{columnsGap:o,columnsCount:l}=t;return 2===l?0===e?o/2:0:0===e?2*o/3:1===e?o/3:0}(i,s),width:null!==(r=null===(t=s.fixedWidths)||void 0===t?void 0:t[i])&&void 0!==r?r:void 0},h=null!==(a=c&&c[i])&&void 0!==a?a:null;return(0,l.jsx)("td",{style:m,children:h})}},506407:function(e,t,o){o.d(t,{V:function(){return BlockContainer},k:function(){return i}});var l=o(552322);o(202784);var n=o(830195);let r=n.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),a=n.z.object({top:n.z.number(),bottom:n.z.number(),right:n.z.number(),left:n.z.number()}).optional().nullable(),getPadding=e=>e?"".concat(e.top,"px ").concat(e.right,"px ").concat(e.bottom,"px ").concat(e.left,"px"):void 0,i=n.z.object({style:n.z.object({backgroundColor:r,borderColor:r,borderRadius:n.z.number().optional().nullable(),padding:a}).optional().nullable()});function BlockContainer(e){var t,o;let{style:n,children:r}=e,a={backgroundColor:null!==(t=null==n?void 0:n.backgroundColor)&&void 0!==t?t:void 0,border:function(e){if(e&&e.borderColor)return"1px solid ".concat(e.borderColor)}(n),borderRadius:null!==(o=null==n?void 0:n.borderRadius)&&void 0!==o?o:void 0,padding:getPadding(null==n?void 0:n.padding)};return r?(0,l.jsx)("div",{style:a,children:r}):(0,l.jsx)("div",{style:a})}},401249:function(e,t,o){o.d(t,{dO:function(){return i},gE:function(){return BlockDivider}});var l=o(552322);o(202784);var n=o(830195);let r=n.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),a=n.z.object({top:n.z.number(),bottom:n.z.number(),right:n.z.number(),left:n.z.number()}).optional().nullable(),getPadding=e=>e?"".concat(e.top,"px ").concat(e.right,"px ").concat(e.bottom,"px ").concat(e.left,"px"):void 0,i=n.z.object({style:n.z.object({backgroundColor:r,padding:a}).optional().nullable(),props:n.z.object({lineColor:r,lineHeight:n.z.number().optional().nullable()}).optional().nullable()}),s={lineHeight:1,lineColor:"#333333"};function BlockDivider(e){var t,o,n;let{style:r,props:a}=e,i={padding:getPadding(null==r?void 0:r.padding),backgroundColor:null!==(t=null==r?void 0:r.backgroundColor)&&void 0!==t?t:void 0},d=null!==(o=null==a?void 0:a.lineHeight)&&void 0!==o?o:s.lineHeight,c=null!==(n=null==a?void 0:a.lineColor)&&void 0!==n?n:s.lineColor;return(0,l.jsx)("div",{style:i,children:(0,l.jsx)("hr",{style:{width:"100%",border:"none",borderTop:"".concat(d,"px solid ").concat(c),margin:0}})})}},945939:function(e,t,o){o.d(t,{JM:function(){return BlockHeading},Qn:function(){return s}});var l=o(552322);o(202784);var n=o(830195);let r=n.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),a=n.z.object({top:n.z.number(),bottom:n.z.number(),right:n.z.number(),left:n.z.number()}).optional().nullable(),getPadding=e=>e?"".concat(e.top,"px ").concat(e.right,"px ").concat(e.bottom,"px ").concat(e.left,"px"):void 0,i=n.z.enum(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE"]).nullable().optional(),s=n.z.object({props:n.z.object({text:n.z.string().optional().nullable(),level:n.z.enum(["h1","h2","h3"]).optional().nullable()}).optional().nullable(),style:n.z.object({color:r,backgroundColor:r,fontFamily:i,fontWeight:n.z.enum(["bold","normal"]).optional().nullable(),textAlign:n.z.enum(["left","center","right"]).optional().nullable(),padding:a}).optional().nullable()}),d={level:"h2",text:""};function BlockHeading(e){var t,o,n,r,a,i;let{props:s,style:c}=e,u=null!==(t=null==s?void 0:s.level)&&void 0!==t?t:d.level,p=null!==(o=null==s?void 0:s.text)&&void 0!==o?o:d.text,m={color:null!==(n=null==c?void 0:c.color)&&void 0!==n?n:void 0,backgroundColor:null!==(r=null==c?void 0:c.backgroundColor)&&void 0!==r?r:void 0,fontWeight:null!==(a=null==c?void 0:c.fontWeight)&&void 0!==a?a:"bold",textAlign:null!==(i=null==c?void 0:c.textAlign)&&void 0!==i?i:void 0,margin:0,fontFamily:function(e){switch(e){case"MODERN_SANS":return'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}}(null==c?void 0:c.fontFamily),fontSize:function(e){switch(e){case"h1":return 32;case"h2":return 24;case"h3":return 20}}(u),padding:getPadding(null==c?void 0:c.padding)};switch(u){case"h1":return(0,l.jsx)("h1",{style:m,children:p});case"h2":return(0,l.jsx)("h2",{style:m,children:p});case"h3":return(0,l.jsx)("h3",{style:m,children:p})}}},344429:function(e,t,o){o.d(t,{e:function(){return BlockHtml},u:function(){return s}});var l=o(552322);o(202784);var n=o(830195);let r=n.z.enum(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE"]).nullable().optional(),a=n.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),i=n.z.object({top:n.z.number(),bottom:n.z.number(),right:n.z.number(),left:n.z.number()}).optional().nullable(),getPadding=e=>e?"".concat(e.top,"px ").concat(e.right,"px ").concat(e.bottom,"px ").concat(e.left,"px"):void 0,s=n.z.object({style:n.z.object({color:a,backgroundColor:a,fontFamily:r,fontSize:n.z.number().min(0).optional().nullable(),textAlign:n.z.enum(["left","right","center"]).optional().nullable(),padding:i}).optional().nullable(),props:n.z.object({contents:n.z.string().optional().nullable()}).optional().nullable()});function BlockHtml(e){var t,o,n,r;let{style:a,props:i}=e,s=null==i?void 0:i.contents,d={color:null!==(t=null==a?void 0:a.color)&&void 0!==t?t:void 0,backgroundColor:null!==(o=null==a?void 0:a.backgroundColor)&&void 0!==o?o:void 0,fontFamily:function(e){switch(e){case"MODERN_SANS":return'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}}(null==a?void 0:a.fontFamily),fontSize:null!==(n=null==a?void 0:a.fontSize)&&void 0!==n?n:void 0,textAlign:null!==(r=null==a?void 0:a.textAlign)&&void 0!==r?r:void 0,padding:getPadding(null==a?void 0:a.padding)};return s?(0,l.jsx)("div",{style:d,dangerouslySetInnerHTML:{__html:s}}):(0,l.jsx)("div",{style:d})}},440156:function(e,t,o){o.d(t,{M:function(){return a},e:function(){return BlockImage}});var l=o(552322);o(202784);var n=o(830195);let r=n.z.object({top:n.z.number(),bottom:n.z.number(),right:n.z.number(),left:n.z.number()}).optional().nullable(),getPadding=e=>e?"".concat(e.top,"px ").concat(e.right,"px ").concat(e.bottom,"px ").concat(e.left,"px"):void 0,a=n.z.object({style:n.z.object({padding:r,backgroundColor:n.z.string().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:n.z.enum(["center","left","right"]).optional().nullable()}).optional().nullable(),props:n.z.object({width:n.z.number().optional().nullable(),height:n.z.number().optional().nullable(),url:n.z.string().optional().nullable(),alt:n.z.string().optional().nullable(),linkHref:n.z.string().optional().nullable(),contentAlignment:n.z.enum(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});function BlockImage(e){var t,o,n,r,a,i,s,d;let{style:c,props:u}=e,p={padding:getPadding(null==c?void 0:c.padding),backgroundColor:null!==(t=null==c?void 0:c.backgroundColor)&&void 0!==t?t:void 0,textAlign:null!==(o=null==c?void 0:c.textAlign)&&void 0!==o?o:void 0},m=null!==(n=null==u?void 0:u.linkHref)&&void 0!==n?n:null,h=null!==(r=null==u?void 0:u.width)&&void 0!==r?r:void 0,b=null!==(a=null==u?void 0:u.height)&&void 0!==a?a:void 0,f=(0,l.jsx)("img",{alt:null!==(i=null==u?void 0:u.alt)&&void 0!==i?i:"",src:null!==(s=null==u?void 0:u.url)&&void 0!==s?s:"",width:h,height:b,style:{width:h,height:b,outline:"none",border:"none",textDecoration:"none",verticalAlign:null!==(d=null==u?void 0:u.contentAlignment)&&void 0!==d?d:"middle",display:"inline-block",maxWidth:"100%"}});return m?(0,l.jsx)("div",{style:p,children:(0,l.jsx)("a",{href:m,style:{textDecoration:"none"},target:"_blank",children:f})}):(0,l.jsx)("div",{style:p,children:f})}},939144:function(e,t,o){o.d(t,{cx:function(){return BlockSpacer},jY:function(){return r}});var l=o(552322);o(202784);var n=o(830195);let r=n.z.object({props:n.z.object({height:n.z.number().gte(0).optional().nullish()}).optional().nullable()}
1),a={height:16};function BlockSpacer(e){var t;let{props:o}=e,n={height:null!==(t=null==o?void 0:o.height)&&void 0!==t?t:a.height};return(0,l.jsx)("div",{style:n})}},321595:function(e,t,o){o.d(t,{xv:function(){return Text},mL:function(){return h}});var l=o(552322),n=o(202784),r=o(830195),a=o(594054),i=o.n(a),s=o(719870);let d=["a","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","ol","p","pre","section","span","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],c=["style","title"];let CustomRenderer=class CustomRenderer extends s.Th{table(e){let t=this.thead(e.header),o=this.tbody(e.rows);return'<table width="100%">\n          <thead>'.concat(t,"</thead>\n          <tbody>").concat(o,"</tbody>\n          </table>")}thead(e){return"<tr>".concat(e.map(e=>this.tablecell(e)).join(""),"</tr>")}tbody(e){return e.map(e=>"<tr>".concat(e.map(e=>this.tablecell(e)).join(""),"</tr>")).join("")}tablecell(e){let t=e.header?"th":"td",o=e.align?' align="'.concat(e.align,'"'):"";return"<".concat(t).concat(o,">").concat(this.parser.parseInline(e.tokens),"</").concat(t,">")}link(e){let t=this.parser.parseInline(e.tokens),o=e.href,l=e.title?' title="'.concat(e.title,'"'):"";return'<a href="'.concat(o,'"').concat(l,' target="_blank">').concat(t,"</a>")}};function EmailMarkdown(e){let{markdown:t,...o}=e,r=(0,n.useMemo)(()=>(function(e){let t=s.TU.parse(e,{async:!1,breaks:!0,gfm:!0,pedantic:!1,silent:!1,renderer:new CustomRenderer});if("string"!=typeof t)throw Error("marked.parse did not return a string");return i()(t,{allowedTags:d,allowedAttributes:{...d.reduce((e,t)=>(e[t]=[...c],e),{}),img:["src","srcset","alt","width","height",...c],table:["width",...c],td:["align","width",...c],th:["align","width",...c],a:["href","target",...c],ol:["start",...c],ul:["start",...c]}})})(t),[t]);return(0,l.jsx)("div",{className:"prose text-inherit marker:text-inherit",...o,dangerouslySetInnerHTML:{__html:r}})}let u=r.z.enum(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE"]).nullable().optional(),p=r.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),m=r.z.object({top:r.z.number(),bottom:r.z.number(),right:r.z.number(),left:r.z.number()}).optional().nullable(),getPadding=e=>e?"".concat(e.top,"px ").concat(e.right,"px ").concat(e.bottom,"px ").concat(e.left,"px"):void 0,h=r.z.object({style:r.z.object({color:p,backgroundColor:p,fontSize:r.z.number().gte(0).optional().nullable(),fontFamily:u,fontWeight:r.z.enum(["bold","normal"]).optional().nullable(),textAlign:r.z.enum(["left","center","right"]).optional().nullable(),padding:m}).optional().nullable(),props:r.z.object({markdown:r.z.boolean().optional().nullable(),text:r.z.string().optional().nullable()}).optional().nullable()}),b={text:""};function Text(e){var t,o,n,r,a,i;let{style:s,props:d}=e,c={color:null!==(t=null==s?void 0:s.color)&&void 0!==t?t:void 0,backgroundColor:null!==(o=null==s?void 0:s.backgroundColor)&&void 0!==o?o:void 0,fontSize:null!==(n=null==s?void 0:s.fontSize)&&void 0!==n?n:void 0,fontFamily:function(e){switch(e){case"MODERN_SANS":return'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}}(null==s?void 0:s.fontFamily),fontWeight:null!==(r=null==s?void 0:s.fontWeight)&&void 0!==r?r:void 0,textAlign:null!==(a=null==s?void 0:s.textAlign)&&void 0!==a?a:void 0,padding:getPadding(null==s?void 0:s.padding)},u=null!==(i=null==d?void 0:d.text)&&void 0!==i?i:b.text;return(null==d?void 0:d.markdown)?(0,l.jsx)(EmailMarkdown,{style:c,markdown:u}):(0,l.jsx)("div",{style:c,children:u})}},72491:function(e,t,o){o.d(t,{z:function(){return n}});var l=o(903588);let n={[l.rb.BOLD]:{[l.jf.CONFIRMATION]:"/emails/templates/bold/confirmation.jpg",[l.jf.RESCHEDULE]:"/emails/templates/bold/reschedule.jpg",[l.jf.CANCEL]:"/emails/templates/bold/cancel.jpg"},[l.rb.MODERN]:{[l.jf.CONFIRMATION]:"/emails/templates/modern/confirmation.jpg",[l.jf.RESCHEDULE]:"/emails/templates/modern/reschedule.jpg",[l.jf.CANCEL]:"/emails/templates/modern/cancel.jpg"},[l.rb.MINIMAL]:{[l.jf.CONFIRMATION]:"/emails/templates/minimal/confirmation.jpg",[l.jf.RESCHEDULE]:"/emails/templates/minimal/reschedule.jpg",[l.jf.CANCEL]:"/emails/templates/minimal/cancel.jpg"},default:{[l.jf.CONFIRMATION]:"/emails/templates/default/confirmation.jpg",[l.jf.RESCHEDULE]:"/emails/templates/default/reschedule.jpg",[l.jf.CANCEL]:"/emails/templates/default/cancel.jpg"}}},898955:function(e,t,o){o.d(t,{Z:function(){return buildBlockComponent}});var l=o(552322);function buildBlockComponent(e){return function(t){let{type:o,data:n}=t,r=e[o].Component;return(0,l.jsx)(r,{...n})}}o(202784)},319203:function(e,t,o){o.d(t,{Z:function(){return buildBlockConfigurationDictionary}});function buildBlockConfigurationDictionary(e){return e}},279867:function(e,t,o){o.d(t,{Z:function(){return buildBlockConfigurationSchema}});var l=o(830195);function buildBlockConfigurationSchema(e){let t=Object.keys(e).map(t=>l.z.object({type:l.z.literal(t),data:e[t].schema}));return l.z.discriminatedUnion("type",t).transform(e=>e)}},148262:function(e,t,o){o.d(t,{Z:function(){return renderToStaticMarkup}});var l=o(552322),n=o(903588),r=o(548090),a=o(601195),i=o(202784),s=o(830195),d=o(575116),c=o(401249),u=o(945939),p=o(344429),m=o(440156),h=o(939144),b=o(321595),f=o(319203),g=o(279867),x=o(898955),v=o(329413);let y=v.W.shape.props.unwrap().unwrap().shape,C=s.z.object({style:v.W.shape.style,props:s.z.object({...y,columns:s.z.tuple([s.z.object({childrenIds:s.z.array(s.z.string())}),s.z.object({childrenIds:s.z.array(s.z.string())}),s.z.object({childrenIds:s.z.array(s.z.string())})])}).optional().nullable()});var N=o(506407);let k=s.z.object({style:N.k.shape.style,props:s.z.object({childrenIds:s.z.array(s.z.string()).optional().nullable()}).optional().nullable()}),E=s.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),S=s.z.enum(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE"]).nullable().optional(),j=s.z.object({backdropColor:E,borderColor:E,borderRadius:s.z.number().optional().nullable(),canvasColor:E,textColor:E,highlightColor:E,footerColor:E,footerBlockId:s.z.string().optional().nullable(),secondaryFooterBlockId:s.z.string().optional().nullable(),protectedBlockIds:s.z.array(s.z.string()).optional().nullable(),showDescription:s.z.boolean().optional().nullable(),showBookingQuestions:s.z.boolean().optional().nullable(),fontFamily:S,childrenIds:s.z.array(s.z.string()).optional().nullable()}),I=(0,i.createContext)({}),A=(0,f.Z)({ColumnsContainer:{schema:C,Component:function(e){let t,{style:o,props:n}=e,{columns:r,...a}=null!=n?n:{};return r&&(t=r.map(e=>e.childrenIds.map(e=>(0,l.jsx)(ReaderBlock,{id:e},e)))),(0,l.jsx)(v.P,{props:a,columns:t,style:o})}},Container:{schema:k,Component:function(e){var t;let{style:o,props:n}=e,r=null!==(t=null==n?void 0:n.childrenIds)&&void 0!==t?t:[];return(0,l.jsx)(N.V,{style:o,children:r.map(e=>(0,l.jsx)(ReaderBlock,{id:e},e))})}},EmailLayout:{schema:j,Component:function(e){var t,o,n,r,a;let i=null!==(t=e.childrenIds)&&void 0!==t?t:[];return(0,l.jsx)("div",{style:{backgroundColor:null!==(o=e.backdropColor)&&void 0!==o?o:"#F5F5F5",color:null!==(n=e.textColor)&&void 0!==n?n:"#262626",fontFamily:function(e){switch(null!=e?e:"MODERN_SANS"){case"MODERN_SANS":return'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}}(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"0.15008px",lineHeight:"1.5",margin:"0",padding:"32px 0",minHeight:"100%",width:"100%"},children:(0,l.jsx)("table",{align:"center",width:"100%",style:{margin:"0 auto",maxWidth:"600px",backgroundColor:null!==(r=e.canvasColor)&&void 0!==r?r:"#FFFFFF",borderRadius:null!==(a=e.borderRadius)&&void 0!==a?a:void 0,border:function(e){let{borderColor:t}=e;if(t)return"1px solid ".concat(t)}(e)},role:"presentation",cellSpacing:"0",cellPadding:"0",border:0,children:(0,l.jsx)("tbody",{children:(0,l.jsx)("tr",{style:{width:"100%"},children:(0,l.jsx)("td",{children:i.map(e=>(0,l.jsx)(ReaderBlock,{id:e},e))})})})})})}},Button:{schema:d.VT,Component:d.of},Divider:{schema:c.dO,Component:c.gE},Heading:{schema:u.Qn,Component:u.JM},Html:{schema:p.u,Component:p.e},Image:{schema:m.M,Component:m.e},Spacer:{schema:h.jY,Component:h.cx},Text:{schema:b.mL,Component:b.xv}}),w=(0,g.Z)(A),_=s.z.record(s.z.string(),w),z=(0,x.Z)(A);function ReaderBlock(e){let{id:t}=e,o=(0,i.useContext)(I);return(0,l.jsx)(z,{...o[t]})}function Reader(e){let{document:t,rootBlockId:o}=e;return(0,l.jsx)(I.Provider,{value:t,children:(0,l.jsx)(ReaderBlock,{id:o})})}var O=o(967271);let R={EVENT_NAME:"Team Sync Meeting",EVENT_DATE:(0,O.Z)("2025-09-30T10:00:00Z"),EVENT_END_TIME:(0,O.Z)("2025-09-30T11:00:00Z"),TIMEZONE:"GMT+5:30",LOCATION:"Zoom",ADDITIONAL_NOTES:"Bring the quarterly report.",TRANSLATED_DATE:"September 30, 2025",CURRENT_TIME_FORMAT:"HH:mm",ORGANIZER_NAME:"Alice Johnson",ORGANIZER_EMAIL:"[email protected]",ATTENDEE:"Bob Smith",ATTENDEE_NAME:"Bob Smith",ATTENDEE_FIRST_NAME:"Bob",ATTENDEE_LAST_NAME:"Smith",ATTENDEE_EMAIL:"[email protected]",CANCEL_URL:"https://example.com/cancel/123",RESCHEDULE_URL:"https://example.com/reschedule/123",BOOKING_URL:"https://example.com/booking/123",MEETING_URL:"https://example.com/meeting/123",RATING_URL:"https://example.com/rating/123",NO_SHOW_URL:"https://example.com/noshow/123",BOOKING_QUESTIONS:'\n<div style="margin: 20px 0;">\n  <h3 style="margin: 0 0 10px 0; font-size: 16px; font-weight: bold;">Booking Questions:</h3>\n  <ul style="margin: 0; padding-left: 20px;">\n    <li><strong>
1What topics would you like to discuss?</strong> <br/> Discuss project roadmap</li>\n  </ul>\n</div>\n',EVENT_DESCRIPTION:'\n<p style="margin: 20px 0;">\n  This is a team sync meeting to discuss project updates, upcoming milestones, and any blockers. Please come prepared with your progress reports and questions.\n</p>\n',CANCELLATION_REASON:'\n<div style="margin: 20px 0;">\n  <p style="margin: 8px 0;"><strong>Reason for cancellation (optional)</strong></p>\n  I won\'t be able to attend due to a personal appointment.\n</div>\n'},replaceVariables=(e,t,o)=>{if(!t)return e;let l={};return(null==o?void 0:o.showDescription)===!1&&(l.EVENT_DESCRIPTION=""),(null==o?void 0:o.showBookingQuestions)===!1&&(l.BOOKING_QUESTIONS=""),e.replace(/\{(.*?)\}/g,(e,o)=>{if(void 0!==l[o])return l[o];if(void 0!==R[o])return String(R[o]);let n=t(o);return void 0!==n&&n!==o?n:"{".concat(o,"}")})};function renderToStaticMarkup(e){var t,o,i,s;let{document:d,isPreview:c=!1,rootBlockId:u="root",mailType:p=n.jf.CONFIRMATION,template:m=n.rb.MODERN,t:h}=e,b=_.safeParse(d),f=b.success?b.data:(0,a.U)({mailType:p,template:m}),g="<!DOCTYPE html>".concat((0,r.renderToStaticMarkup)((0,l.jsxs)("html",{children:[(0,l.jsx)("head",{children:(0,l.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"})}),(0,l.jsx)("body",{children:(0,l.jsx)(Reader,{document:f,rootBlockId:u})}),c&&(0,l.jsx)("script",{dangerouslySetInnerHTML:{__html:'\n            document.addEventListener("click", function(e) {\n              if (e.target.closest("a")) {\n                e.preventDefault();\n                e.stopPropagation();\n              }\n            }, true);\n          '}})]})));if(!c)return g;let x=null!==(o=null==f?void 0:null===(t=f.root)||void 0===t?void 0:t.data)&&void 0!==o?o:{},v=replaceVariables(g,h,{showDescription:null===(i=x.showDescription)||void 0===i||i,showBookingQuestions:null===(s=x.showBookingQuestions)||void 0===s||s});return v}},160621:function(e,t,o){o.d(t,{a:function(){return DialogEmailEditor}});var l=o(552322);o(202784);var n=o(663090),r=o(577670);let DialogEmailEditor=e=>{let{open:t,onOpenChange:o,...a}=e;return(0,l.jsx)(n.Vq,{open:t,onOpenChange:o,children:(0,l.jsx)(n.cZ,{overlayClassName:"z-10",className:"z-10 flex h-full max-h-none w-full max-w-none flex-col items-center gap-6 !rounded-none !border-0 px-0 pt-0",children:(0,l.jsx)(r.W,{onBack:()=>o(!1),...a})})})}},577670:function(e,t,o){o.d(t,{W:function(){return EmailEditor}});var l=o(552322),n=o(888883),r=o(420164),a=o(903588),i=o(821846),s=o(202784),d=o(63955),c=o(830195),u=o(366080),p=o(575116),m=o(401249),h=o(945939),b=o(344429),f=o(440156),g=o(939144),x=o(321595),v=o(319203),y=o(898955),C=o(279867),N=o(329413);let k=(0,s.createContext)(null),useCurrentBlockId=()=>(0,s.useContext)(k);function EditorBlock(e){let{id:t}=e,{watch:o}=(0,d.Gc)(),n=o("document"),r=n[t];if(!r)throw Error("Could not find block");return(0,l.jsx)(k.Provider,{value:t,children:(0,l.jsx)(Z,{...r})})}var E=o(12294),S=o(568218);let j=(0,E.Ue)(()=>
1({document:S.E,selectedBlockId:null,selectedSidebarTab:"styles",selectedMainTab:"editor",selectedScreenSize:"desktop",inspectorDrawerOpen:!0,samplesDrawerOpen:!0}));function setSelectedBlockId(e){let t=null===e?"styles":"block-configuration",o={};return null!==e&&(o.inspectorDrawerOpen=!0),j.setState({selectedBlockId:e,selectedSidebarTab:t,...o})}function resetDocument(e){return j.setState({document:e,selectedSidebarTab:"styles",selectedBlockId:null})}var I=o(137658),A=o(886279),w=o(273075);let _={hidden:{opacity:0,scale:.8,x:"-50%",y:"-50%",pointerEvents:"none",transition:{ease:"easeOut"}},visible:{opacity:1,scale:1,x:"-50%",y:"-50%",pointerEvents:"auto",transition:{ease:"easeOut"}}},z=(0,s.forwardRef)((e,t)=>{let{buttonElement:o,className:n,...r}=e,[a,i]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{function listener(e){let{clientX:t,clientY:l}=e;if(!o)return;let n=o.getBoundingClientRect(),r=n.y,a=n.x,s=a+n.width;if(20>Math.abs(l-r)&&a<t&&t<s){i(!0);return}i(!1)}return window.addEventListener("mousemove",listener),()=>{window.removeEventListener("mousemove",listener)}},[o]),(0,l.jsx)(w.E.button,{ref:t,initial:"hidden",animate:a?"visible":"hidden",variants:_,className:"bg-gradient-primary hover:bg-gradient-secondary absolute left-1/2 top-0 z-[1] flex h-6 w-6 items-center justify-center rounded-full text-white shadow-lg",...r,children:(0,l.jsx)(A.Z,{name:"plus",className:"h-4 w-4"})})});z.displayName="DividerButton";let O=s.forwardRef((e,t)=>{let{onClick:o,...n}=e;return(0,l.jsx)("button",{ref:t,onClick:o,...n,className:"bg-subtle/70 justify-cente flex w-full items-center rounded-sm p-4",children:(0,l.jsx)("span",{className:"bg-gradient-primary hover:bg-gradient-secondary mx-auto flex h-7 w-7 items-center justify-center rounded-full text-white",children:(0,l.jsx)(A.Z,{name:"plus",className:"h-5 w-5"})})})});O.displayName="PlaceholderButton";let R=[{label:"Heading",icon:"heading",block:()=>({type:"Heading",data:{props:{text:"Hello friend"},style:{padding:{top:16,bottom:16,left:24,right:24}}}})},{label:"Text",icon:"text",block:()=>({type:"Text",data:{props:{text:"My new text block"},style:{padding:{top:16,bottom:16,left:24,right:24},fontWeight:"normal"}}})},{label:"Button",icon:"mouse-pointer-click",block:()=>({type:"Button",data:{props:{text:"Button",url:"https://lunacal.ai/"},style:{padding:{top:16,bottom:16,left:24,right:24}}}})},{label:"Image",icon:"image",block:()=>({type:"Image",data:{props:{url:"https://assets.usewaypoint.com/sample-image.jpg",alt:"Sample product",contentAlignment:"middle",linkHref:null},style:{padding:{top:16,bottom:16,left:24,right:24}}}})},{label:"Divider",icon:"minus",block:()=>({type:"Divider",data:{style:{padding:{top:16,right:0,bottom:16,left:0}},props:{lineColor:"#CCCCCC"}}})},{label:"Spacer",icon:"rectangle-horizontal",block:()=>({type:"Spacer",data:{}})},{label:"Html",icon:"code-xml",block:()=>({type:"Html",data:{props:{contents:"<strong>Hello world</strong>"},style:{fontSize:16,textAlign:null,padding:{top:16,bottom:16,left:24,right:24}}}})},{label:"Columns",icon:"columns-3",block:()=>({type:"ColumnsContainer",data:{props:{columnsGap:16,columnsCount:3,columns:[{childrenIds:[]},{childrenIds:[]},{childrenIds:[]}]},style:{padding:{top:16,bottom:16,left:24,right:24}}}})},{label:"Container",icon:"copy-plus",block:()=>({type:"Container",data:{style:{padding:{top:16,bottom:16,left:24,right:24}}}})}];function AddBlockButton(e){let{onSelect:t,placeholder:o}=e,[n,r]=(0,s.useState)(null);return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{ref:r,style:{position:"relative"},children:(0,l.jsxs)(I.Lt,{children:[(0,l.jsx)(I.$F,{asChild:!0,children:o?(0,l.jsx)(O,{}):(0,l.jsx)(z,{buttonElement:n})}),(0,l.jsx)(I.cq,{children:(0,l.jsx)(I.AW,{sideOffset:10,align:"center",className:"flex flex-col gap-4 roun
1ded-lg px-4 py-6 lg:w-auto",children:(0,l.jsx)("div",{className:"grid grid-cols-4 gap-4",children:R.map((e,o)=>(0,l.jsx)(DropdownMenuButton,{label:e.label,icon:e.icon,onClick:()=>t(e.block())},o))})})})]})})})}let DropdownMenuButton=e=>{let{onClick:t,icon:o,label:n}=e;return(0,l.jsx)(I.Xi,{className:"border-muted hover:gradient-border h-20 w-24 shrink-0 !rounded-lg !border-2 p-1 focus:!ring-0",children:(0,l.jsxs)("button",{onClick:t,className:"text-default-foreground relative flex h-full w-full flex-col items-center justify-center gap-1 rounded-lg",children:[(0,l.jsx)(A.Z,{name:o}),(0,l.jsx)("span",{className:"text-sm font-semibold",children:n})]})})};function generateId(){return"block-".concat(Date.now())}function EditorChildrenIds(e){let{childrenIds:t,onChange:o}=e,appendBlock=e=>{let l=generateId();return o({blockId:l,block:e,childrenIds:[...t||[],l]})},insertBlock=(e,l)=>{let n=generateId(),r=[...t||[]];return r.splice(l,0,n),o({blockId:n,block:e,childrenIds:r})};return t&&0!==t.length?(0,l.jsxs)(l.Fragment,{children:[t.map((e,t)=>(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)(AddBlockButton,{onSelect:e=>insertBlock(e,t)}),(0,l.jsx)(EditorBlock,{id:e})]},e)),(0,l.jsx)(AddBlockButton,{onSelect:appendBlock})]}):(0,l.jsx)(AddBlockButton,{placeholder:!0,onSelect:appendBlock})}let T=N.W.shape.props.unwrap().unwrap().shape,F=c.z.object({style:N.W.shape.style,props:c.z.object({...T,columns:c.z.tuple([c.z.object({childrenIds:c.z.array(c.z.string())}),c.z.object({childrenIds:c.z.array(c.z.string())}),c.z.object({childrenIds:c.z.array(c.z.string())})])}).optional().nullable()}),D=[{childrenIds:[]},{childrenIds:[]},{childrenIds:[]}];function ColumnsContainerEditor(e){var t,o,n;let{style:r,props:a}=e,i=useCurrentBlockId(),{setValue:s,getValues:c}=(0,d.Gc)(),setDocument=e=>{let t=c("document");s("document",{...t,...e},{shouldDirty:!0})},{columns:u,...p}=null!=a?a:{},m=null!=u?u:D,updateColumn=(e,t)=>{let{block:o,blockId:l,childrenIds:n}=t,a=[...m];a[e]={childrenIds:n},setDocument({[l]:o,[i]:{type:"ColumnsContainer",data:F.parse({style:r,props:{...p,columns:a}})}}),setSelectedBlockId(l)};return(0,l.jsx)(N.P,{props:p,style:r,columns:[(0,l.jsx)(EditorChildrenIds,{childrenIds:null==u?void 0:null===(t=u[0])||void 0===t?void 0:t.childrenIds,onChange:e=>updateColumn(0,e)},"1"),(0,l.jsx)(EditorChildrenIds,{childrenIds:null==u?void 0:null===(o=u[1])||void 0===o?void 0:o.childrenIds,onChange:e=>updateColumn(1,e)},"2"),(0,l.jsx)(EditorChildrenIds,{childrenIds:null==u?void 0:null===(n=u[2])||void 0===n?void 0:n.childrenIds,onChange:e=>updateColumn(2,e)},"3")]})}var M=o(506407);function ContainerEditor(e){var t;let{style:o,props:n}=e,r=null!==(t=null==n?void 0:n.childrenIds)&&void 0!==t?t:[],{watch:a,setValue:i,getValues:s}=(0,d.Gc)(),c=a("document"),setDocument=e=>{let t=s("document");i("document",{...t,...e},{shouldDirty:!0})},u=useCurrentBlockId();return(0,l.jsx)(M.V,{style:o,children:(0,l.jsx)(EditorChildrenIds,{childrenIds:r,onChange:e=>{let{block:t,blockId:o,childrenIds:l}=e;setDocument({[o]:t,[u]:{type:"Container",data:{...c[u].data,props:{childrenIds:l}}}}),setSelectedBlockId(o)}})})}let B=c.z.object({style:M.k.shape.style,props:c.z.object({childrenIds:c.z.array(c.z.string()).optional().nullable()}).optional().nullable()});function EmailLayoutEditor(e){var t,o,n,r,a;let i=null!==(t=e.childrenIds)&&void 0!==t?t:[],{watch:s,setValue:c,getValues:u}=(0,d.Gc)(),p=s("document"),setDocument=e=>{let t=u("document");c("document",{...t,...e},{shouldDirty:!0})},m=useCurrentBlockId();return(0,l.jsx)("div",{onClick:()=>{setSelectedBlockId(null)},style:{backgroundColor:null!==(o=e.backdropColor)&&void 0!==o?o:"#F5F5F5",color:null!==(n=e.textColor)&&void 0!==n?n:"#262626",fontFamily:function(e){switch(null!=e?e:"MODERN_SANS"){case"MODERN_SANS":return'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}}(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"0.15008px",lineHeight:"1.5",margin:"0",padding:"32px 0",width:"100%",minHeight:"100%"},children:(0,l.jsx)("table",{align:"center",width:"100%",style:{margin:"0 auto",maxWidth:"600px",backgroundColor:null!==(r=e.canvasColor)&&void 0!==r?r:"#FFFFFF",borderRadius:null!==(a=e.borderRadius)&&void 0!==a?a:void 0,border:(()=>{let t=e.borderColor;if(t)return"1px solid ".concat(t)})()},role:"presentation",cellSpacing:"0",cellPadding:"0",border:0,children:(0,l.jsx)("tbody",{children:(0,l.jsx)("tr",{style:{width:"100%"},children:(0,l.jsx)("td",{children:(0,l.jsx)(EditorChildrenIds,{childrenIds:i,onChange:e=>{let{block:t,blockId:o,childrenIds:l}=e;setDocument({[o]:t,[m]:{type:"EmailLayout",data:{...p[m].data,childrenIds:l}}}),setSelectedBlockId(o)}})})})})})})}let L=c.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),P=c.z.enum(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE"]).nullable().optional(),G=c.z.object({backdropColor:L,borderColor:L,borderRadius:c.z.number().optional().nullable(),canvasColor:L,textColor:L,highlightColor:L,footerColor:L,footerBlockId:c.z.string().optional().nullable(),secondaryFooterBlockId:c.z.string().optional().nullable(),protectedBlockIds:c.z.array(c.z.string()).optional().nullable(),showDescription:c.z.boolean().optional().nullable(),showBookingQuestions:c.z.boolean().optional().nullable(),fontFamily:P,childrenIds:c.z.array(c.z.string()).optional().nullable()});var H=o(802982);function TuneMenu(e){let{blockId:t}=e,{watch:o}=(0,d.Gc)(),n=o("document"),handleMoveClick=e=>{let moveChildrenIds=o=>{if(!o)return o;let l=o.indexOf(t);if(l<0)return o;let n=[...o];return"up"===e&&l>0?[n[l],n[l-1]]=[n[l-1],n[l]]:"down"===e&&l<n.length-1&&([n[l],n[l+1]]=[n[l+1],n[l]]),n},o={...n};for(let[e,n]of Object.entries(o)){var l,r,a;if(e!==t)switch(n.type){case"EmailLayout":o[e]={...n,data:{...n.data,childrenIds:moveChildrenIds(n.data.childrenIds)}};break;case"Container":o[e]={...n,data:{...n.data,props:{...n.data.props,childrenIds:moveChildrenIds(null===(l=n.data.props)||void 0===l?void 0:l.childrenIds)}}};break;case"ColumnsContainer":o[e]={type:"ColumnsContainer",data:{style:n.data.style,props:{...n.data.props,columns:null===(a=n.data.props)||void 0===a?void 0:null===(r=a.columns)||void 0===r?void 0:r.map(e=>({childrenIds:moveChildrenIds(e.childrenIds)}))}}};break;default:o[e]=n}}resetDocument(o),setSelectedBlockId(t)};return(0,l.jsxs)("div",{className:"border-muted absolute -left-14 top-0 z-[10] flex flex-col overflow-hidden rounded-md border bg-white/80 shadow-md backdrop-blur-sm",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)(u.z,{className:"!rounded-none border-0",onClick:()=>handleMoveClick("up"),color:"outline",variant:"icon",StartIcon:"arrow-up"}),(0,l.jsx)(u.z,{className:"!rounded-none border-0",onClick:()=>handleMoveClick("down"),color:"outline",variant:"icon",StartIcon:"arrow-down"}),(0,l.jsx)(u.z,{className:"!rounded-none border-0",onClick:()=>{let filterChildrenIds=e=>e?e.filter(e=>e!==t):e,e={...n};for(let[n,a]of Object.entries(e)){var o,l,r;if(n!==t)switch(a.type){case"EmailLayout":e[n]={...a,data:{...a.data,childrenIds:filterChildrenIds(a.data.childrenIds)}};break;case"Container":e[n]={...a,data:{...a.data,props:{...a.data.props,childrenIds:filterChildrenIds(null===(o=a.data.props)||void 0===o?void 0:o.childrenIds)}}};break;case"ColumnsContainer":e[n]={type:"ColumnsContainer",data:{style:a.data.style,props:{...a.data.props,columns:null===(r=a.data.props)||void 0===r?void 0:null===(l=r.columns)||void 0===l?void 0:l.map(e=>({childrenIds:filterChildrenIds(e.childrenIds)}))}}};break;default:e[n]=a}}delete e[t],resetDocument(e)},StartIcon:"trash",variant:"icon",color:"destructive"})]})}function EditorBlockWrapper(e){let{children:t}=e,o=j(e=>
1e.selectedBlockId),[n,r]=(0,s.useState)(!1),a=useCurrentBlockId();return(0,l.jsxs)("div",{className:(0,H.Z)("relative max-w-full outline outline-2 -outline-offset-1 outline-transparent",o===a&&"outline-secondary-1",n&&o!==a&&"outline-secondary-1/40"),onMouseEnter:e=>{r(!0),e.stopPropagation()},onMouseLeave:()=>{r(!1)},onClick:e=>{setSelectedBlockId(a),e.stopPropagation(),e.preventDefault()},children:[o!==a?null:(0,l.jsx)(TuneMenu,{blockId:a}),t]})}let W=(0,v.Z)({Button:{schema:p.VT,Component:e=>(0,l.jsx)(EditorBlockWrapper,{children:(0,l.jsx)(p.of,{...e})})},Container:{schema:B,Component:e=>(0,l.jsx)(EditorBlockWrapper,{children:(0,l.jsx)(ContainerEditor,{...e})})},ColumnsContainer:{schema:F,Component:e=>(0,l.jsx)(EditorBlockWrapper,{children:(0,l.jsx)(ColumnsContainerEditor,{...e})})},Heading:{schema:h.Qn,Component:e=>(0,l.jsx)(EditorBlockWrapper,{children:(0,l.jsx)(h.JM,{...e})})},Html:{schema:b.u,Component:e=>(0,l.jsx)(EditorBlockWrapper,{children:(0,l.jsx)(b.e,{...e})})},Image:{schema:f.M,Component:e=>{var t,o;let n={...e,props:{...e.props,url:null!==(o=null===(t=e.props)||void 0===t?void 0:t.url)&&void 0!==o?o:"https://placehold.co/600x400@2x/F8F8F8/CCC?text=Your%20image"}};return(0,l.jsx)(EditorBlockWrapper,{children:(0,l.jsx)(f.e,{...n})})}},Text:{schema:x.mL,Component:e=>(0,l.jsx)(EditorBlockWrapper,{children:(0,l.jsx)(x.xv,{...e})})},EmailLayout:{schema:G,Component:e=>(0,l.jsx)(EmailLayoutEditor,{...e})},Spacer:{schema:g.jY,Component:e=>(0,l.jsx)(EditorBlockWrapper,{children:(0,l.jsx)(g.cx,{...e})})},Divider:{schema:m.dO,Component:e=>(0,l.jsx)(EditorBlockWrapper,{children:(0,l.jsx)(m.gE,{...e})})}}),Z=(0,y.Z)(W),U=(0,C.Z)(W),V=c.z.record(c.z.string(),U);var K=o(109177),Y=o(395696),Q=o(601195),q=o(462114);let $={canvasColor:"#FFFFFF",footerColor:"#DDF273",textColor:"#262626",highlightColor:"#2EF7A0"},ColorRow=e=>{let{label:t,value:o,onChange:n}=e;return(0,l.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,l.jsx)("span",{className:"text-gray-1 text-sm",children:t}),(0,l.jsxs)("div",{className:"border-muted flex items-center gap-1.5 rounded-md border bg-white px-1.5 py-1",children:[(0,l.jsx)(Y.Z,{size:"sm",hexInPopover:!0,defaultValue:o,onChange:n,popoverAlign:"end"}),(0,l.jsx)(A.Z,{name:"chevron-down",className:"text-gray-2 h-3.5 w-3.5"})]})]})},CheckboxRow=e=>{let{label:t,checked:o,onChange:n}=e;return(0,l.jsxs)("label",{className:"flex cursor-pointer items-center justify-between gap-3",children:[(0,l.jsx)("span",{className:"text-gray-1 text-sm",children:t}),(0,l.jsx)("input",{type:"checkbox",checked:o,onChange:e=>n(e.target.checked),className:"h-4 w-4 cursor-pointer accent-green-500"})]})};var components_ColorStylesPanel=e=>{var t,o,n,a,i;let{mailType:c}=e,{t:u}=(0,r.b)(),{watch:p,setValue:m,getValues:h}=(0,d.Gc)(),[b,f]=(0,s.useState)(!1),g=p("document"),x=p("template"),v=null==g?void 0:g.root,y=(null==v?void 0:v.type)==="EmailLayout"?v.data:{},updateFlag=(e,t)=>{let o=h("document"),l=o.root;(null==l?void 0:l.type)==="EmailLayout"&&m("document",{...o,root:{...l,data:{...l.data,[e]:t}}},{shouldDirty:!0})};return(0,l.jsxs)("aside",{className:(0,H.Z)("relative h-full shrink-0 transition-[width] duration-300 ease-in-out",b?"w-0":"w-[396px]"),children:[(0,l.jsx)("div",{className:(0,H.Z)("border-muted h-full overflow-hidden border-r bg-white transition-[width] duration-300 ease-in-out",b?"w-0 border-r-0":"w-[396px]"),children:(0,l.jsxs)("div",{className:"flex h-full w-[396px] flex-col gap-5 overflow-y-auto px-5 py-6",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,l.jsx)("h3",{className:"text-gray-1 text-base font-semibold",children:u("color_styles")}),(0,l.jsx)("p",{className:"text-gray-2 text-xs leading-snug",children:u("color_styles_description")})]}),(0,l.jsx)("button",{type:"button",onClick:()=>{let e=(0,Q.U)({mailType:c,template:null!=x?x:null});m("document",e,{shouldDirty:!0})},className:"text-gray-2 hover:text-gray-1 border-muted rounded-md border px-3 py-1.5 text-xs font-medium transition-colors hover:bg-gray-50",children:u("reset")})]}),(0,l.jsx)("div",{className:"border-muted border-t"}),(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)("p",{className:"text-gray-2 text-[11px] font-medium uppercase tracking-wider",children:u("background")}),(0,l.jsx)(ColorRow,{label:u("background_color"),value:null!==(t=y.canvasColor)&&void 0!==t?t:$.canvasColor,onChange:e=>{let t=h("document"),o=null==t?void 0:t.root;(null==o?void 0:o.type)==="EmailLayout"&&m("document",{...t,root:{...o,data:{...o.data,canvasColor:e}}},{shouldDirty:!0})}}),(0,l.jsx)(ColorRow,{label:u("secondary_background_color"),value:null!==(o=y.footerColor)&&void 0!==o?o:$.footerColor,onChange:e=>{var t;let o=h("document"),l=o.root;if((null==l?void 0:l.type)!=="EmailLayout")return;let n=l.data,r=null!==(t=n.footerColor)&&void 0!==t?t:$.footerColor,a=n.footerBlockId,i=n.secondaryFooterBlockId,s={...o,root:{...l,data:{...n,footerColor:e}}};a&&(s=(0,q.PG)(s,a,r,e)),i&&(s=(0,q.PG)(s,i,r,e)),m("document",s,{shouldDirty:!0})}})]}),(0,l.jsx)("div",{className:"border-muted border-t"}),(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)("p",{className:"text-gray-2 text-[11px] font-medium uppercase tracking-wider",children:u("text_colors")}),(0,l.jsx)(ColorRow,{label:u("text_color"),value:null!==(n=y.textColor)&&void 0!==n?n:$.textColor,onChange:e=>{var t,o;let l=h("document"),n=l.root;if((null==n?void 0:n.type)!=="EmailLayout")return;let r=n.data,a=null!==(t=r.textColor)&&void 0!==t?t:$.textColor,i=null!==(o=r.protectedBlockIds)&&void 0!==o?o:[],s={...l,root:{...n,data:{...r,textColor:e}}};a!==e&&(s=(0,q.mq)(s,a,e,!1,i)),m("document",s,{shouldDirty:!0})}}),(0,l.jsx)(ColorRow,{label:u("highlighted_text_color"),value:null!==(a=y.highlightColor)&&void 0!==a?a:$.highlightColor,onChange:e=>{var t,o;let l=h("document"),n=l.root;if((null==n?void 0:n.type)!=="EmailLayout")return;let r=n.data,a=null!==(t=r.highlightColor)&&void 0!==t?t:$.highlightColor,i=null!==(o=r.protectedBlockIds)&&void 0!==o?o:[],s={...l,root:{...n,data:{...r,highlightColor:e}}};a!==e&&(s=(0,q.mq)(s,a,e,!0,i)),m("document",s,{shouldDirty:!0})}})]}),(0,l.jsx)("div",{className:"border-muted border-t"}),(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)("p",{className:"text-gray-2 text-[11px] font-medium uppercase tracking-wider",children:u("content")}),(0,l.jsx)(CheckboxRow,{label:u("show_booking_questions"),checked:null===(i=y.showBookingQuestions)||void 0===i||i,onChange:e=>updateFlag("showBookingQuestions",e)})]})]})}),(0,l.jsx)("button",{type:"button",onClick:()=>f(e=>!e),"aria-label":b?"Expand sidebar":"Collapse sidebar",className:"border-muted absolute top-10 z-10 flex h-7 w-7 -translate-x-1/2 items-center justify-center rounded-full border bg-white shadow-sm transition-[left] duration-300 ease-in-out hover:bg-gray-50",style:{left:b?"14px":"396px"},children:(0,l.jsx)(A.Z,{name:"chevron-left",className:(0,H.Z)("text-gray-1 h-4 w-4 transition-transform",b&&"rotate-180")}
1)})]})},J=o(148262),components_PreviewPanel=()=>{let{t:e}=(0,r.b)(),{watch:t}=(0,d.Gc)(),o=t("document"),n=(0,s.useMemo)(()=>{if(!o)return"";let t=(0,J.Z)({document:o,isPreview:!0,t:e});return t.replace("<head>","<head><style>html,body{margin:0;padding:0;}</style>")},[o,e]);return o?(0,l.jsx)("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:(0,l.jsx)("iframe",{title:"email-preview",srcDoc:n,className:"mx-auto h-full w-full border-0"})}):null},X=o(996577),ee=o.n(X),et=o(72491),components_TemplatesPickerPanel=e=>{let{mailType:t}=e,{t:o}=(0,r.b)(),{setValue:n,watch:a}=(0,d.Gc)(),i=a("template"),onTemplateChange=e=>{let{document:t,template:o}=e;n("document",t,{shouldDirty:!0}),n("template",o,{shouldDirty:!0})};return(0,l.jsxs)("div",{className:"border-muted flex h-full w-[300px] shrink-0 flex-col border-l-2",children:[(0,l.jsx)("h3",{className:"text-gray-1 sticky top-0 z-10 bg-white px-5 pb-3 pt-6 text-base font-semibold",children:o("templates")}),(0,l.jsx)("div",{className:"scroll-bar flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto px-5 pb-6 pr-3",children:Q.z.map((e,o)=>{var n,r;let a=i===e.value,s=et.z[null!==(n=e.value)&&void 0!==n?n:"default"][t];return(0,l.jsx)("button",{type:"button",onClick:()=>onTemplateChange({document:e.getTemplate(t),template:e.value}),className:(0,H.Z)("border-muted flex aspect-[3/4] w-full shrink-0 items-center justify-center overflow-hidden rounded-md border-2 p-2 transition duration-200",a?"gradient-primary-border":"hover:gradient-primary-border"),children:(0,l.jsx)(ee(),{src:s,width:1080,height:1440,className:"h-full w-full rounded object-cover object-top",alt:null!==(r=e.value)&&void 0!==r?r:"empty"})},o)})})]})};let eo=c.z.object({document:V,template:c.z.nativeEnum(a.rb).nullable(),subject:c.z.string().nullable()}),EmailEditor=e=>{let{initialValues:t,onSubmit:o,onBack:c,isSubmitting:p=!1,mailType:m}=e,{t:h}=(0,r.b)(),b=(0,d.cI)({defaultValues:{document:K.tj[m],template:a.rb.MODERN,subject:"{EVENT_NAME} between {ORGANIZER_NAME} and {ATTENDEE}"},resolver:(0,n.F)(eo)}),{formState:{isDirty:f},reset:g,handleSubmit:x}=b;return(0,s.useEffect)(()=>{t&&g(t)},[t]),(0,l.jsx)(d.RV,{...b,children:(0,l.jsxs)("div",{className:"flex h-screen w-full flex-col",children:[(0,l.jsxs)("div",{className:"font-lunacal from-secondary-1 via-secondary-2 to-secondary-3 flex h-20 w-full shrink-0 items-center justify-between bg-gradient-to-r px-6 text-white",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[c&&(0,l.jsx)("button",{type:"button",onClick:c,"aria-label":h("Back"),className:"flex h-8 w-8 items-center justify-center rounded-md hover:bg-white/10",children:(0,l.jsx)(i.default,{className:"h-5 w-5"})}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("h2",{className:"text-xl font-medium leading-tight",children:h("email_customization")}),(0,l.jsx)("p",{className:"text-inverted-foreground/50 text-base",children:h("email_customization_subtitle")})]})]}),(0,l.jsx)(u.z,{loading:p,disabled:p||!f,onClick:x(o),children:h("save")})]}),(0,l.jsxs)("div",{className:"flex min-h-0 flex-1 items-stretch",children:[(0,l.jsx)(components_ColorStylesPanel,{mailType:m}),(0,l.jsx)(components_PreviewPanel,{}),(0,l.jsx)(components_TemplatesPickerPanel,{mailType:m})]})]})})}},601195:function(e,t,o){o.d(t,{U:function(){return getMailTemplate},z:function(){return v}});var l=o(903588),n=o(568218),r=o(109177);let a={backdropColor:"#E9E9E9",borderRadius:8,canvasColor:"#1E1E2F",textColor:"#FFFFFF",highlightColor:"#2EF7A0",footerColor:"#292939",footerBlockId:"block-1756571928851",showDescription:!0,showBookingQuestions:!0,fontFamily:"MODERN_SANS"},i=["block-1756570809244","block-1756570929269","block-1756570942882","block-1758557951090","block-1758557931333"],s={"block-1756570929269":{type:"Spacer",data:{props:{height:32}}},"block-1756570942882":{type:"Html",data:{style:{fontSize:16,textAlign:null,padding:{top:0,bottom:0,right:24,left:24}},props:{contents:'<div style="border-top:4px solid #2EF7A0; color:#1E1E2F; border-radius:8px; padding:24px; background-color:#FFFFFF; font-family:Arial, Helvetica, sans-serif;">\n  <p style="margin:0 0 4px 0; font-size:13px; color:#8C8CA1;">{what}</p>\n  <p style="margin:0 0 22px 0; font-size:18px; font-weight:bold; color:#1E1E2F;">{EVENT_NAME}</p>\n  <p style="margin:0 0 4px 0; font-size:13px; color:#8C8CA1;">{date} :</p>\n  <p style="margin:0 0 22px 0; font-size:14px; color:#1E1E2F;">{EVENT_DATE} {EVENT_TIME} ({TIMEZONE})</p>\n  <p style="margin:0 0 4px 0; font-size:13px; color:#8C8CA1;">{where}:</p>\n  <p style="margin:0 0 22px 0; font-size:14px; color:#1E1E2F;">{LOCATION} {MEETING_URL}</p>\n  <p style="margin:0 0 4px 0; font-size:13px; color:#8C8CA1;">{organizer}</p>\n  <p style="margin:0 0 22px 0; font-size:14px; color:#1E1E2F;">{ORGANIZER_NAME} ({ORGANIZER_EMAIL})</p>\n  <p style="margin:0 0 4px 0; font-size:13px; color:#8C8CA1;">{guests}</p>\n  <p style="margin:0; font-size:14px; color:#1E1E2F;">{ATTENDEE} ({ATTENDEE_EMAIL})</p>\n</div>\n'}}},"block-1758557951090":{type:"Text",data:{style:{color:"#B8B8C7",fontWeight:"normal",padding:{top:24,bottom:0,right:24,left:24}},props:{text:"{EVENT_DESCRIPTION}"}}},"block-1758557931333":{type:"Text",data:{style:{fontWeight:"normal",padding:{top:8,bottom:0,right:24,left:24}},props:{text:"{BOOKING_QUESTIONS}\n\n"}}},"block-1756571928851":{type:"Container",data:{style:{backgroundColor:"#292939",borderRadius:8,padding:{top:12,bottom:12,right:24,left:24}},props:{childrenIds:["block-1756572009685"]}}},"block-1756572009685":{type:"Text",data:{style:{fontWeight:"normal",textAlign:"center",padding:{top:0,bottom:0,right:0,left:0}},props:{markdown:!0,text:'{need_to_reschedule_or_cancel}  <a href="{RESCHEDULE_URL}" style="color:#2EF7A0;">{reschedule}</a> {or_lowercase} <a href="{CANCEL_URL}"  style="color:#2EF7A0;">{cancel}</a>\n'}}}},d={root:{type:"EmailLayout",data:{...a,childrenIds:["block-1756570780598","block-1756571928851"]}},"block-1756570780598":{type:"Container",data:{style:{borderRadius:0,padding:{top:16,bottom:24,right:24,left:24}},props:{childrenIds:i}}},"block-1756570809244":{type:"Html",data:{style:{fontSize:16,textAlign:null,padding:{top:0,bottom:0,right:24,left:24}},props:{contents:"<div style=\"color:#2EF7A0; font-size:42px; font-weight:800; line-height:1.05; letter-spacing:0.5px; text-transform:uppercase; font-family:'Helvetica Neue', Arial, sans-serif;\">{your_event_has_been_scheduled}</div>"}}},...s},c={root:{type:"EmailLayout",data:{...a,childrenIds:["block-1756570780598","block-1756571928851"]}},"block-1756570780598":{type:"Container",data:{style:{borderRadius:0,padding:{top:16,bottom:24,right:24,left:24}},props:{childrenIds:i}}},"block-1756570809244":{type:"Html",data:{style:{fontSize:16,textAlign:null,padding:{top:0,bottom:0,right:24,left:24}},props:{contents:"<div style=\"color:#2EF7A0; font-size:42px; font-weight:800; line-height:1.05; letter-spacing:0.5px; text-transform:uppercase; font-family:'Helvetica Neue', Arial, sans-serif;\">{event_has_been_rescheduled}</div>"}}},...s},u={root:{type:"EmailLayout",data:{...a,childrenIds:["block-1756570780598"]}},"block-1756570780598":{type:"Container",data:{style:{borderRadius:0,padding:{top:16,bottom:24,right:24,left:24}},props:{childrenIds:["block-1756570809244","block-1756570929269","block-1756570942882","block-1758557951090","block-1758557931333"]}}},"block-1756570809244":{type:"Html",data:{style:{fontSize:16,textAlign:null,padding:{top:0,bottom:0,right:24,left:24}},props:{contents:"<div style=\"color:#2EF7A0; font-size:42px; font-weight:800; line-height:1.05; letter-spacing:0.5px; text-transform:uppercase; font-family:'Helvetica Neue', Arial, sans-serif;\">{event_request_cancelled}</div>"}}},...s,"block-1758557951090":{type:"Text",data:{style:{fontWeight:"normal",padding:{top:0,bottom:0,right:24,left:24}},props:{text:"{CANCELLATION_REASON}"}}}},p={[l.jf.CONFIRMATION]:d,[l.jf.RESCHEDULE]:c,[l.jf.CANCEL]:u},m={"block-1756573149686":{type:"Html",data:{style:{fontSize:16,textAlign:null,padding:{top:0,bottom:16,right:24,left:24}},props:{contents:'<div style="width:25%; height:4px;background:#1EAE6D;border-radius:8px;"></div>'}}},"block-1756573278522":{type:"Container",data:{style:{padding:{top:16,bottom:16,right:24,left:24}},props:{childrenIds:["block-1756573281173"]}}},"block-1756573281173":{type:"Html",data:{style:{backgroundColor:null,fontSize:16,textAlign:null,padding:{top:0,bottom:0,right:0,left:0}},props:{contents:'<div style="background-color:#FFFFFF; width:auto; padding:32px 24px; border-radius:8px; font-family:Arial, Helvetica, sans-serif; color:#1E1E2F;">\n  \n  <div style="border-left:3px solid #FF5B3B; padding-left:16px; margin-bottom:24px;">\n    <p style="font-weight:bold; margin:0 0 4px 0;">{event_name}:</p>\n    <p style="color:#747474; margin:0;">{EVENT_NAME}</p>\n  </div>\n  \n  <div style="border-left:3px solid #00AB1A; padding-left:16px; margin-bottom:24px;">\n    <p style="font-weight:bold; margin:0 0 4px 0;">{date}:</p>\n    <p style="color:#747474; margin:0;">{EVENT_DATE} {EVENT_TIME} ({TIMEZONE})</p>\n  </div>\n  \n  <div style="border-left:3px solid #0EA5E9; padding-left:16px; margin-bottom:24px;">\n    <p style="font-weight:bold; margin:0 0 4px 0;">{where}:</p>\n    <p style="color:#747474; margin:0;">{LOCATION}\n{MEETING_URL}</p>\n  </div>\n  \n  <div style="border-left:3px solid #FFD83B; padding-left:16px;">\n    <p style="font-weight:bold; margin:0 0 4px 0;">{who}:</p>\n    <p style="color:#747474; margin:0;">{organizer} - {ORGANIZER_NAME} ({ORGANIZER_EMAIL})</p>\n    <p style="color:#747474; margin:0;">{guest} - {ATTENDEE} ({ATTENDEE_EMAIL})</p>\n  </div>\n  \n</div>\n'}}},"block-1756575414093":{type:"Text",data:{style:{fontWeight:"normal",padding:{top:0,bottom:0,right:24,left:24}},props:{markdown:!0,text:"{EVENT_DESCRIPTION}"}}},"block-1756575525641":{type:"Text",data:{style:{fontWeight:"normal",padding:{top:0,bottom:0,right:24,left:24}},props:{markdown:!0,text:"{BOOKING_QUESTIONS}"}}},"block-1756575636962":{type:"Html",data:{style:{fontSize:16,textAlign:null,padding:{top:0,bottom:0,right:0,left:0}},props:{contents:'<div style="background:#1EAE6D;width:auto;padding:32px 16px;border-radius:10px 10px 0px 0px;text-align:center">\n{need_to_reschedule_or_cancel} <a href="{RESCHEDULE_URL}" style="color:#000000">{reschedule}</a> {or_lowercase} <a href="{CANCEL_URL}" style="color:#000000">{cancel}</a>\n</div>'}}}},h={backdropColor:"#E9E9E9",canvasColor:"#FBF5F0",textColor:"#262626",highlightColor:"#000000",footerColor:"#1EAE6D",footerBlockId:"block-1756575636962",secondaryFooterBlockId:"block-1756573149686",showDescription:!0,showBookingQuestions:!0,fontFamily:"MODERN_SANS"},b={root:{type:"EmailLayout",data:{...h,childrenIds:["block-1756573049767","block-1756573149686","block-1756573278522","block-1756575414093","block-1756575525641","block-1756575636962"]}},"block-1756573049767":{type:"Html",data:{style:{fontFamily:"BOOK_SERIF",fontSize:16,textAlign:null,padding:{top:16,bottom:16,right:24,left:24}},props:{contents:'<div style="font-weight:bold;line-height:1.1; font-size:68px; color:#000000">\n  {your_event_has_been_scheduled} <br/>\n</div>\n'}}},...m},f={root:{type:"EmailLayout",data:{...h,childrenIds:["block-1756573049767","block-1756573149686","block-1756573278522","block-1756575414093","block-1756575525641","block-1756575636962"]}},"block-1756573049767":{type:"Html",data:{style:{fontFamily:"BOOK_SERIF",fontSize:16,textAlign:null,padding:{top:16,bottom:16,right:24,left:24}},props:{contents:'<div style="font-weight:bold;line-height:1.1; font-size:68px; color:#000000">\n  {event_has_been_rescheduled} <br/>\n</div>\n'}}},...m},g={root:{type:"EmailLayout",data:{...h,childrenIds:["block-1756573049767","block-1756573149686","block-1756573278522","block-1758560426791","block-1756575525641"]}},"block-1756573049767":{type:"Html",data:{style:{fontFamily:"BOOK_SERIF",fontSize:16,textAlign:null,padding:{top:16,bottom:16,right:24,left:24}},props:{contents:'<div style="font-weight:bold;line-height:1.1; font-size:68px; color:#000000">\n  {event_request_cancelled} <br/>\n</div>\n'}}},...m,"block-1758560426791":{type:"Text",data:{style:{fontWeight:"normal",padding:{top:0,bottom:0,right:24,left:24}},props:{text:"{CANCELLATION_REASON}"}}}},x={[l.jf.CONFIRMATION]:b,[l.jf.RESCHEDULE]:f,[l.jf.CANCEL]:g},v=[{value:null,previewImage:"/emails/templates/default.png",getTemplate:e=>n.E},{value:l.rb.MODERN,previewImage:"/emails/templates/modern.png",getTemplate:e=>r.tj[e]},{value:l.rb.BOLD,previewImage:"/emails/templates/bold.png",getTemplate:e=>p[e]},{value:l.rb.MINIMAL,previewImage:"/emails/templates/minimal.jpg",getTemplate:e=>x[e]}],getMailTemplate=e=>{let{mailType:t,template:o}=e;switch(o){case l.rb.BOLD:return p[t];case l.rb.MODERN:return r.tj[t];case l.rb.MINIMAL:return x[t];default:return r.tj.CONFIRMATION}}},568218:function(e,t,o){o.d(t,{E:function(){return l}});let l={root:{type:"EmailLayout",data:{backdropColor:"#F5F5F5",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[]}}}},109177:function(e,t,o){o.d(t,{tj:function(){return d}});var l=o(903588);let n={backdropColor:"#F5F5F5",canvasColor:"#FFFFFF",textColor:"#262626",highlightColor:"#000000",footerColor:"#DDF273",footerBlockId:"block-1756625453156",protectedBlockIds:["block-1756624161820","block-1756624170638","block-1756624226369","block-1756624260933","block-1756624339717","block-1756624457011","block-1756624753384","block-1756624793604","block-1756624823540","block-1756625022055","block-1756625038332","block-1756625061494","block-1756625081271","block-1756625188595","block-1756625195772","block-1756625289670","block-1756625305957","block-1756625433769"],showDescription:!0,showBookingQuestions:!0,fontFamily:"MODERN_SANS"},r={"block-1756624161820":{type:"Container",data:{style:{padding:{top:0,bottom:0,right:24,left:24}},props:{childrenIds:["block-1756624170638"]}}},"block-1756624170638":{type:"Container",data:{style:{backgroundColor:"#FFFFFF",borderColor:"#000000",padding:{top:0,bottom:0,right:0,left:0}},props:{childrenIds:["block-1756624226369","block-1756624457011","block-1756624753384","block-1756625022055","block-1756625038332","block-1756625188595","block-1756625195772"]}}},"block-1756624226369":{type:"ColumnsContainer",data:{style:{padding:{top:0,bottom:0,right:24,left:24}},props:{fixedWidths:[20,null,null],columnsCount:2,columnsGap:16,columns:[{
1childrenIds:["block-1756624260933"]},{childrenIds:["block-1756624339717"]},{childrenIds:[]}]}}},"block-1756624260933":{type:"Html",data:{style:{fontSize:16,textAlign:null,padding:{top:0,bottom:0,right:0,left:0}},props:{contents:'  <div style="width:20px;height:20px;border-radius:50%;border:1px solid #000000;text-align:center;background-color:#DDF273;font-size:12px;">✓</div>'}}},"block-1756624339717":{type:"Text",data:{style:{color:"#262626",fontWeight:"normal",padding:{top:0,bottom:0,right:0,left:0}},props:{markdown:!0,text:"{EVENT_NAME}"}}},"block-1756624457011":{type:"Divider",data:{style:{padding:{top:0,bottom:0,right:0,left:0}},props:{lineColor:"#000000"}}},"block-1756624753384":{type:"ColumnsContainer",data:{style:{padding:{top:0,bottom:0,right:24,left:24}},props:{fixedWidths:[20,null,null],columnsCount:2,columnsGap:16,columns:[{childrenIds:["block-1756624793604"]},{childrenIds:["block-1756624823540"]},{childrenIds:[]}]}}},"block-1756624793604":{type:"Html",data:{style:{fontSize:16,textAlign:null,padding:{top:0,bottom:0,right:0,left:0}},props:{contents:'  <div style="width:20px;height:20px;border-radius:50%;border:1px solid #000000;text-align:center;background-color:#DDF273;font-size:12px;">✓</div>'}}},"block-1756624823540":{type:"Text",data:{style:{color:"#262626",fontWeight:"normal",padding:{top:0,bottom:0,right:0,left:0}},props:{markdown:!0,text:"**{date}:**\n{EVENT_DATE} {EVENT_TIME}\n({TIMEZONE})"}}},"block-1756625022055":{type:"Divider",data:{style:{padding:{top:0,bottom:0,right:0,left:0}},props:{lineColor:"#000000"}}},"block-1756625038332":{type:"ColumnsContainer",data:{style:{padding:{top:0,bottom:0,right:24,left:24}},props:{fixedWidths:[20,null,null],columnsCount:2,columnsGap:16,columns:[{childrenIds:["block-1756625061494"]},{childrenIds:["block-1756625081271"]},{childrenIds:[]}]}}},"block-1756625061494":{type:"Html",data:{style:{fontSize:16,textAlign:null,padding:{top:0,bottom:0,right:0,left:0}},props:{contents:'  <div style="width:20px;height:20px;border-radius:50%;border:1px solid #000000;text-align:center;background-color:#DDF273;font-size:12px;">✓</div>'}}},"block-1756625081271":{type:"Text",data:{style:{color:"#262626",fontWeight:"normal",padding:{top:0,bottom:0,right:0,left:0}},props:{markdown:!0,text:"**{where}:**\n{LOCATION}\n{MEETING_URL}"}}},"block-1756625188595":{type:"Divider",data:{style:{padding:{top:0,bottom:0,right:0,left:0}},props:{lineColor:"#000000"}}},"block-1756625195772":{type:"ColumnsContainer",data:{style:{padding:{top:0,bottom:0,right:24,left:24}},props:{fixedWidths:[20,null,null],columnsCount:2,columnsGap:16,columns:[{childrenIds:["block-1756625289670"]}
1,{childrenIds:["block-1756625305957"]},{childrenIds:[]}]}}},"block-1756625289670":{type:"Html",data:{style:{fontSize:16,textAlign:null,padding:{top:0,bottom:0,right:0,left:0}},props:{contents:'   <div style="width:20px;height:20px;border-radius:50%;border:1px solid #000000;text-align:center;background-color:#DDF273;font-size:12px;">✓</div>'}}},"block-1756625305957":{type:"Text",data:{style:{color:"#262626",fontWeight:"normal",padding:{top:0,bottom:0,right:0,left:0}},props:{markdown:!0,text:"**{who}:**\n{organizer} - {ORGANIZER_NAME} ({ORGANIZER_EMAIL})\n{guest} - {ATTENDEE} ({ATTENDEE_EMAIL})"}}},"block-1756625433769":{type:"Divider",data:{style:{padding:{top:0,bottom:0,right:0,left:0}},props:{lineColor:"#000000"}}},"block-1756625453156":{type:"Text",data:{style:{backgroundColor:"#DDF273",fontWeight:"normal",textAlign:"center",padding:{top:8,bottom:8,right:24,left:24}},props:{markdown:!0,text:'{need_to_reschedule_or_cancel} <a href="{RESCHEDULE_URL}" style="color:#000000;font-weight:bold;text-decoration:none;">{reschedule}</a> {or_lowercase} <a href="{CANCEL_URL}" style="color:#000000;font-weight:bold;text-decoration:none;">{cancel}</a>\n'}}}},a={root:{type:"EmailLayout",data:{...n,childrenIds:["block-1756564312994"]}},"block-1756564312994":{type:"Container",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,right:24,left:24}},props:{childrenIds:["block-1756564335908"]}}},"block-1756564335908":{type:"Container",data:{style:{borderColor:"#262626",padding:{top:0,bottom:0,right:0,left:0}},props:{childrenIds:["block-1756564503537","block-1756624161820","block-1756567354803","block-1756567473913","block-1756625433769","block-1756625453156"]}}},"block-1756564503537":{type:"Text",data:{style:{color:"#000000",fontSize:40,fontFamily:"MODERN_SERIF",fontWeight:"bold",textAlign:"center",padding:{top:16,bottom:16,right:24,left:24}},props:{text:"{your_event_has_been_scheduled}"}}},"block-1756567354803":{type:"Text",data:{style:{fontSize:16,fontWeight:"normal",padding:{top:16,bottom:16,right:24,left:24}},props:{markdown:!0,text:"{EVENT_DESCRIPTION}"}}},"block-1756567473913":{type:"Container",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,right:24,left:24}},props:{childrenIds:["block-1756567499120"]}}},"block-1756567499120":{type:"Text",data:{style:{fontSize:16,fontWeight:"normal",padding:{top:0,bottom:0,right:0,left:0}},props:{markdown:!0,text:"{BOOKING_QUESTIONS}"}}},...r},i={root:{type:"EmailLayout",data:{...n,childrenIds:["block-1756564312994"]}},"block-1756564312994":{type:"Container",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,right:24,left:24}},props:{childrenIds:["block-1756564335908"]}}},"block-1756564335908":{type:"Container",data:{style:{borderColor:"#262626",padding:{top:0,bottom:0,right:0,left:0}},props:{childrenIds:["block-1756564503537","block-1756624161820","block-1756567354803","block-1756567473913","block-1756625433769","block-1756625453156"]}}},"block-1756564503537":{type:"Text",data:{style:{color:"#000000",fontSize:40,fontFamily:"MODERN_SERIF",fontWeight:"bold",textAlign:"center",padding:{top:16,bottom:16,right:24,left:24}},props:{text:"{event_has_been_rescheduled}"}}},"block-1756567354803":{type:"Text",data:{style:{fontSize:16,fontWeight:"normal",padding:{top:16,bottom:16,right:24,left:24}},props:{markdown:!0,text:"{EVENT_DESCRIPTION}"}}},"block-1756567473913":{type:"Container",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,right:24,left:24}},props:{childrenIds:["block-1756567499120"]}}},"block-1756567499120":{type:"Text",data:{style:{fontSize:16,fontWeight:"normal",padding:{top:0,bottom:0,right:0,left:0}},props:{markdown:!0,text:"{BOOKING_QUESTIONS}"}}},...r},s={root:{type:"EmailLayout",data:{...n,childrenIds:["block-1756564312994"]}},"block-1756564312994":{type:"Container",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,right:24,left:24}},props:{childrenIds:["block-1756564335908"]}}},"block-1756564335908":{type:"Container",data:{style:{borderColor:"#262626",padding:{top:0,bottom:0,right:0,left:0}},props:{childrenIds:["block-1756564503537","block-1756624161820","block-1756567354803","block-1756567473913"]}}},"block-1756564503537":{type:"Text",data:{style:{color:"#000000",fontSize:40,fontFamily:"MODERN_SERIF",fontWeight:"bold",textAlign:"center",padding:{top:16,bottom:16,right:24,left:24}},props:{text:"{event_request_cancelled}"}}},"block-1756567354803":{type:"Text",data:{style:{fontSize:16,fontWeight:"normal",padding:{top:4,bottom:4,right:24,left:24}},props:{markdown:!0,text:"{CANCELLATION_REASON}"}}},"block-1756567473913":{type:"Container",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,right:24,left:24}}
1,props:{childrenIds:["block-1756567499120"]}}},"block-1756567499120":{type:"Text",data:{style:{fontSize:16,fontWeight:"normal",padding:{top:0,bottom:0,right:0,left:0}},props:{markdown:!0,text:"{BOOKING_QUESTIONS}"}}},...r,"block-1756625081271":{type:"Text",data:{style:{color:"#262626",fontWeight:"normal",padding:{top:0,bottom:0,right:0,left:0}},props:{markdown:!0,text:"**{where}:**\n{LOCATION}"}}}},d={[l.jf.CONFIRMATION]:a,[l.jf.RESCHEDULE]:i,[l.jf.CANCEL]:s}},462114:function(e,t,o){function replaceColorInDocument(e,t,o,l){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],r=RegExp("".concat(t.replace(/[#]/g,"\\$&"),"(?![0-9a-fA-F])"),"gi"),a={...e};for(let e of Object.keys(a)){var i,s,d;if("root"===e||n.length>0&&n.includes(e))continue;let c=a[e];if(!(null==c?void 0:c.data))continue;let u={...c.data},p=!1;if((null===(i=u.style)||void 0===i?void 0:i.color)&&"string"==typeof u.style.color&&u.style.color.toUpperCase()===t.toUpperCase()&&(u={...u,style:{...u.style,color:o}},p=!0),l){if("string"==typeof(null===(s=u.props)||void 0===s?void 0:s.text)){let e=u.props.text.replace(r,o);e!==u.props.text&&(u={...u,props:{...u.props,text:e}},p=!0)}if("string"==typeof(null===(d=u.props)||void 0===d?void 0:d.contents)){let e=u.props.contents.replace(r,o);e!==u.props.contents&&(u={...u,props:{...u.props,contents:e}},p=!0)}}p&&(a[e]={...c,data:u})}return a}function updateFooterBlockColor(e,t,o,l){var n,r;let a=e[t];if(!(null==a?void 0:a.data))return e;let i={...a.data},s=!1;if((null===(n=i.style)||void 0===n?void 0:n.backgroundColor)!=null)i={...i,style:{...i.style,backgroundColor:l}},s=!0;else if("string"==typeof(null===(r=i.props)||void 0===r?void 0:r.contents)&&o){let e=RegExp("".concat(o.replace(/[#]/g,"\\$&"),"(?![0-9a-fA-F])"),"gi"),t=i.props.contents.replace(e,l);t!==i.props.contents&&(i={...i,props:{...i.props,contents:t}},s=!0)}return s?{...e,[t]:{...a,data:i}}:e}function syncDocumentColors(e,t){var o;let l=e.root;if((null==l?void 0:l.type)!=="EmailLayout")return e;let n=l.data,r={...e},a={...n},i=null!==(o=n.protectedBlockIds)&&void 0!==o?o:[];if(null!=t.canvasColor&&(a.canvasColor=t.canvasColor),null!=t.textColor&&t.textColor!==n.textColor){let e=n.textColor;e&&(r=replaceColorInDocument(r,e,t.textColor,!1,i)),a.textColor=t.textColor}if(null!=t.highlightColor&&t.highlightColor!==n.highlightColor){let e=n.highlightColor;e&&(r=replaceColorInDocument(r,e,t.highlightColor,!0,i)),a.highlightColor=t.highlightColor}if(null!=t.footerColor&&t.footerColor!==n.footerColor){let e=n.footerColor,o=n.footerBlockId,l=n.secondaryFooterBlockId;e&&o&&(r=updateFooterBlockColor(r,o,e,t.footerColor)),e&&l&&(r=updateFooterBlockColor(r,l,e,t.footerColor)),a.footerColor=t.footerColor}return{...r,root:{...l,data:a}}}o.d(t,{PG:function(){return updateFooterBlockColor},fO:function(){return syncDocumentColors},mq:function(){return replaceColorInDocument}})},377703:function(e,t,o){o.d(t,{t:function(){return ToggleGroup}});var l=o(552322),n=o(802982),r=o(162482),a=o(306992),i=o(886279),s=o(530731);let OptionalTooltipWrapper=e=>{let{children:t,tooltipText:o}=e;return o?(0,l.jsx)(r.Z,{delayDuration:150,sideOffset:12,side:"bottom",content:o,children:t}):(0,l.jsx)(l.Fragment,{children:t})},ToggleGroup=e=>{let{options:t,onValueChange:o,isFullWidth:r,customClassNames:d,label:c,size:u="sm",variant:p="default",...m}=e,h="segmented"===p;return(0,l.jsxs)("div",{className:(0,n.Z)("",r&&"w-full"),children:[c&&(0,l.jsx)(s._,{children:c}),(0,l.jsx)(a.fC,{type:"single",...m,onValueChange:o,className:(0,n.Z)(h?"bg-muted relative inline-flex gap-1 rounded-sm p-1 rtl:flex-row-reverse":"border-muted relative inline-flex overflow-hidden rounded-sm border rtl:flex-row-reverse",m.className,r&&"w-full",d),children:t.map(e=>(0,l.jsx)(OptionalTooltipWrapper,{tooltipText:e.tooltip,children:(0,l.jsxs)(a.ck,{disabled:e.disabled,value:e.value,"data-testid":"toggle-group-item-".concat(e.value),className:(0,n.Z)("relative flex items-center justify-center gap-1.5 leading-tight transition-colors",h&&"min-h-9 min-w-0 rounded px-2 py-1.5 text-center text-sm font-medium",h&&(e.disabled?"text-muted-foreground hover:cursor-not-allowed":"text-subtle-foreground aria-checked:text-emphasis-foreground [&[aria-checked='false']]:hover:text-default-foreground aria-checked:bg-white aria-checked:shadow-sm"),!h&&"aria-checked:bg-muted px-3 py-2 text-sm",!h&&(e.disabled?"text-muted-foreground hover:cursor-not-allowed":"text-default-foreground aria-checked:text-emphasis-foreground [&[aria-checked='false']]:hover:text-emphasis-foreground"),!h&&"sm"===u&&"h-9",!h&&"md"===u&&"h-10",!h&&"lg"===u&&"h-12",r&&"w-full"),children:[e.icon&&(0,l.jsx)(i.Z,{className:(0,n.Z)(h&&"h-3.5 w-3.5 flex-shrink-0",!h&&"sm"===u&&"h-5 w-5",!h&&"md"===u&&"h-6 w-6",!h&&"lg"===u&&"h-8 w-8"),name:e.icon}),e.label&&(0,l.jsx)("span",{className:(0,n.Z)(!h&&"font-medium",h&&"min-w-0 break-words leading-tight",h&&e.icon&&"hidden md:inline"),children:e.label})]})},e.value))})]})}}
1,771852:function(e,t,o){var l=o(552322),n=o(802982),r=o(420164),a=o(543080),i=o(239097),s=o.n(i);o(202784);var d=o(886279),c=o(701363),u=o(504165);let p={default:{base:"rounded-sm h-9 px-4 py-3",active:"bg-gradient-primary text-emphasis-foreground font-bold",inactive:"text-default-foreground bg-subtle hover:bg-muted-foreground ",iconActive:"text-emphasis-foreground",iconInactive:"text-muted-foreground group-hover:text-emphasis-foreground"},ghost:{base:"py-4 px-5 border-b-2 rounded-t-lg ",active:"bg-tertiary text-tertiary-foreground border-tertiary-foreground font-medium",inactive:"border-transparent text-muted-foreground hover:text-tertiary-foreground font-normal ",iconActive:"text-emphasis-foreground",iconInactive:"text-muted-foreground group-hover:text-emphasis-foreground",hideIcon:!0}};t.Z=function(e){var t;let{name:o,href:i,teamEvent:m,linkShallow:h,linkScroll:b,avatar:f,customUrlPrefix:g,variant:x="default",...v}=e,{t:y,isLocaleReady:C}=(0,r.b)(),N=(0,a.a)(i),k=p[x];return(0,l.jsxs)(s(),{href:(()=>{if(g){let e=i.match(/tabName=([^&]+)/),t=e?e[1]:"setup",o=i.match(/event-types\/(\d+)/),l=o?o[1]:"";return"".concat(g,"/").concat(l,"?tabName=").concat(t)}return m&&v.teamHref?v.teamHref:i})(),shallow:h,scroll:b,className:(0,n.Z)(k.base,"font-lunacal group inline-flex items-center justify-center whitespace-nowrap text-sm font-medium leading-4 transition md:mb-0",N?k.active:k.inactive,v.disabled&&"pointer-events-none !opacity-30",v.className),target:v.target?v.target:void 0,"data-testid":"horizontal-tab-".concat(o),"aria-current":N?"page":void 0,children:[v.icon&&!k.hideIcon&&(0,l.jsx)(d.Z,{name:v.icon,className:(0,n.Z)(N?k.iconActive:k.iconInactive,"-ml-0.5 h-4 w-4 ltr:mr-2 rtl:ml-2"),"aria-hidden":"true"}),C?(0,l.jsxs)("div",{className:"flex items-center gap-x-2",children:[f&&(0,l.jsx)(c.q,{size:"sm",imageSrc:f,alt:"avatar"})," ",y(o),null!==(t=v.badge)&&void 0!==t?t:null]}):(0,l.jsx)(u.N2,{className:"h-4 w-24"})]},o)}},495618:function(e,t,o){var l=o(552322),n=o(202784),r=o(802982),a=o(445076),i=o(901566),s=o(771852);let d=(0,a.j)("relative max-w-full",{variants:{variant:{default:"",ghost:""}},defaultVariants:{variant:"default"}}),c=(0,a.j)("no-scrollbar flex max-h-12 overflow-x-scroll",{variants:{variant:{default:"space-x-2",ghost:""}},defaultVariants:{variant:"default"}});t.Z=function(e){let{tabs:t,linkShallow:o,teamEvent:a,linkScroll:u,actions:p,className:m,containerClassName:h,customUrlPrefix:b,variant:f="default",...g}=e;return(0,l.jsxs)("div",{className:(0,r.Z)(d({variant:f}),h),children:[(0,l.jsx)(i.f,{children:(0,l.jsxs)("nav",{className:(0,r.Z)(c({variant:f}),m),"aria-label":"Tabs",...g,children:[t.map((e,t)=>{var l;return(0,n.createElement)(s.Z,{...e,variant:null!==(l=e.variant)&&void 0!==l?l:f,teamEvent:a,key:t,linkShallow:o,linkScroll:u,customUrlPrefix:b})}),g.children]})}),p&&p]})}},414213:function(e,t,o){o.d(t,{Table:function(){return Table}});var l=o(552322),n=o(802982),r=o(239097),a=o.n(r);let Table=e=>{let{children:t,containerClassName:o,className:r}=e;return(0,l.jsx)("div",{className:(0,n.Z)("bg-emphasis border-subtle overflow-x-auto overflow-y-hidden rounded-lg border",o),children:(0,l.jsx)("table",{className:(0,n.Z)("divide-muted w-full divide-y rounded-lg",r),children:t})})};Table.Header=e=>{let{children:t}=e;return(0,l.jsx)("thead",{className:"bg-subtle rounded-sm",children:(0,l.jsx)("tr",{className:"",children:t})})},Table.ColumnTitle=e=>{let{children:t,widthClassNames:o,className:r}=e;return(0,l.jsx)("th",{scope:"col",className:(0,n.Z)("text-default-foreground py-4 pl-4 text-left text-base font-medium first:pl-6 last:pr-6",o||"w-auto",r),children:t})},Table.Body=e=>{let{children:t}=e;return(0,l.jsx)("tbody",{className:"divide-subtle divide-y rounded-sm",children:t})},Table.Row=e=>{let{children:t,href:o,className:r}=e;return o?(0,l.jsx)(a(),{href:o,className:(0,n.Z)("hover:bg-default table-row",r),children:t}):(0,l.jsx)("tr",{className:(0,n.Z)("hover:bg-default",r),children:t})},Table.Cell=e=>{let{children:t,widthClassNames:o,href:r,className:i,...s}=e;return r?(0,l.jsx)(a(),{href:r,className:(0,n.Z)("text-default-foreground hover:bg-default relative table-cell py-4 pl-4 text-sm first:pl-6 last:pr-6",o||"w-auto",i),...s,children:t}):(0,l.jsx)("td",{className:(0,n.Z)("text-default-foreground relative py-4 pl-4 text-sm first:pl-6 last:pr-6",o||"w-auto",i),...s,children:t})}},31729:function(e,t,o){o.d(t,{RM:function(){return s},Rn:function(){return m},SC:function(){return c},iA:function(){return a},pj:function(){return p},ss:function(){return u},xD:function(){return i},yt:function(){return d}});var l=o(552322),n=o(802982),r=o(202784);let a=r.forwardRef((e,t)=>
1{let{className:o,containerClassName:r,...a}=e;return(0,l.jsx)("div",{className:(0,n.Z)("w-full overflow-auto md:overflow-visible",r),children:(0,l.jsx)("table",{ref:t,className:(0,n.Z)("border-muted w-full caption-bottom border text-sm",o),...a})})});a.displayName="Table";let i=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,l.jsx)("thead",{ref:t,className:(0,n.Z)("[&_tr]:bg-subtle md:z-10 [&_tr]:border-b",o),...r})});i.displayName="TableHeader";let s=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,l.jsx)("tbody",{ref:t,className:(0,n.Z)("[&_tr:last-child]:border-0",o),...r})});s.displayName="TableBody";let d=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,l.jsx)("tfoot",{ref:t,className:(0,n.Z)("bg-default text-emphasis-foreground font-medium",o),...r})});d.displayName="TableFooter";let c=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,l.jsx)("tr",{ref:t,className:(0,n.Z)("hover:bg-muted data-[state=selected]:bg-subtle border-muted border-b",o),...r})});c.displayName="TableRow";let u=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,l.jsx)("th",{ref:t,className:(0,n.Z)("text-default-foreground h-12 px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",o),...r})});u.displayName="TableHead";let p=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,l.jsx)("td",{ref:t,className:(0,n.Z)("text-default-foreground px-2 py-2.5 align-middle [&:has([role=checkbox])]:pr-0",o),...r})});p.displayName="TableCell";let m=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,l.jsx)("caption",{ref:t,className:(0,n.Z)("text-default-foreground mt-4 text-sm",o),...r})});m.displayName="TableCaption"},621121:function(e,t,o){o.d(t,{f:function(){return UnpublishedEntity}});var l=o(552322),n=o(490829),r=o(420164),a=o(543148),i=o(701363);function UnpublishedEntity(e){let{t}=(0,r.b)(),o=e.orgSlug||e.teamSlug;return(0,l.jsx)("div",{className:"m-8 flex items-center justify-center",children:(0,l.jsx)(a.O,{avatar:(0,l.jsx)(i.q,{alt:null!=o?o:"",imageSrc:(0,n.B)(e.logoUrl,o),size:"lg"}),headline:t("team_is_unpublished",{team:e.name}),description:t("".concat(e.orgSlug?"org":"team","_is_unpublished_description"))})})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.