PageSourceSearch

https://nelsonalgren.org/_next/static/immutable/chunks/3wplsyl61eigp.js

js nelsonalgren.org collected 2026-09-24 10:03:34 UTC 107,777 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="414b9a72-4d29-e21a-ee56-ebc1f19c357a")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,447921,e=>{"use strict";var t=e.i(230614);e.s(["IconBrowserTab",()=>t.default])},962122,e=>{"use strict";var t=e.i(391398),i=e.i(191788),a=e.i(448836),s=e.i(589310),n=e.i(589876);function r({onSave:e,onDiscard:l,...o}){let c=i.useRef(null);return(0,t.jsxs)(n.Dialog,{size:"sm",initialFocusRef:c,...o,children:[(0,t.jsxs)(n.DialogContent,{className:"text-center",children:[(0,t.jsx)(n.DialogTitle,{children:"What about your changes?"}),(0,t.jsxs)("p",{children:["You’ve made a few changes but didn’t save them.",(0,t.jsx)("br",{className:"tablet:inline hidden"})," What should happen before you quit?"]})]}),(0,t.jsxs)(n.DialogActions,{children:[(0,t.jsx)(s.SecondaryButton,{size:"lg",onClick:l,children:"Discard"}),(0,t.jsx)(a.PrimaryButton,{ref:c,size:"lg",onClick:e,children:"Save changes"})]})]})}var l=e.i(183664);e.s(["PendingChangesSettler",0,function(){let{setPendingMutation:e,applyPendingMutation:i,dirty:a}=(0,l.usePendingChangesMutation)(),[s,n]=(0,l.useHandlePendingChangesSettledAtom)();return s&&a?(0,t.jsx)(r,{onSave:async()=>{await i()&&s(),n(null)},onDiscard:()=>{e(null),s(),n(null)},onDismiss:()=>{n(null)}}):null},"useSettlePendingChanges",0,function(){let{dirty:e}=(0,l.usePendingChangesMutation)(),[,t]=(0,l.useHandlePendingChangesSettledAtom)();return i=>{e?t(()=>i):(t(null),i())}}],962122)},63496,756060,249298,600020,e=>{"use strict";var t=e.i(391398),i=e.i(498817),a=e.i(301027),s=e.i(191788);e.i(881666);var n=e.i(883897),r=e.i(740806),l=e.i(364974),o=e.i(282098),c=e.i(690441),d=e.i(276469),u=e.i(791941);e.s(["SubscriptionPromptAlertBar",0,function({message:e,premiumMessage:h,className:m,gtmOrigin:p,short:g,onDismiss:x}){let[f,b]=(0,d.useSession)(),[v,j]=s.useState(!1),y=f?.user.subscriptionType==="PREMIUM",S=e&&!y||h&&y;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.AnimatePresence,{children:!b&&S&&(0,t.jsx)(a.m.div,{className:"overflow-hidden",initial:{height:"auto"},exit:{height:0},children:(0,t.jsxs)(l.AlertBar,{Icon:y?n.IconSparkles:void 0,intent:y?"neutral":"primary",className:m,children:[(0,t.jsxs)("span",{className:"space-x-2",children:[y?h:`${e} `,!y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Button,{onClick:()=>{j(!0),p&&(0,u.gtm)({event:"openPricingDialog",from:p})},className:"underline-thickness-md font-bold tracking-[0.01em] underline underline-offset-md",children:["Get Premium",g?".":""]}),g?"":" to unlock this."]})]}),y&&(0,t.jsx)("button",{className:"ml-auto",type:"button",onClick:x,children:(0,t.jsx)(r.IconX,{className:"h-4 w-4 cursor-pointer"})})]})})}),v&&(0,t.jsx)(c.PricingDialog,{onDismiss:()=>{j(!1)}})]})}],63496);var h=e.i(56206),m=e.i(160323),p=e.i(383898);function g(e,t){return 0===e.length||e===t?"warning":"success"}function x(e){return e.length<60||e.length>160?"warning":"success"}function f(e){return"HOME"===e.type?"success":!e.slug||e.slug.split("-").length-1>3?"warning":"success"}function b(){let e=(0,m.useCurrentSiteId)(),t=(0,p.useAllPagesBySiteId)(e).data,[i]=(0,d.useSession)({required:!0}),a=(0,s.useMemo)(()=>(t??[]).filter(e=>!!e.slug||"HOME"===e.type).map(e=>{var t;return{...e,seoEvaluation:{title:g(e.seo.title,`${i.user.givenName} ${i.user.familyName}`),description:x(e.seo.description),slug:f(e),overall:(t=`${i.user.givenName} ${i.user.familyName}`,[g(e.seo.title,t),x(e.seo.description),f(e)].every(e=>"success"===e)?"success":"warning")}}}),[t,i]);return{stats:{totalNumberOfPages:a.length,numberOfPagesWithGoodSEO:a.filter(e=>"success"===e.seoEvaluation.overall).length},pages:a}}e.s(["SEO_DESCRIPTION_MAX_LENGTH",0,160,"SEO_DESCRIPTION_MIN_LENGTH",0,60,"evaluatePageSEODescription",0,x,"evaluatePageSEOSlug",0,f,"evaluatePageSEOTitle",0,g,"useSEOPages",0,b],756060),e.s(["SEOProgress",0,function(){let{stats:{totalNumberOfPages:e,numberOfPagesWithGoodSEO:i}}=b();return(0,t.jsxs)("svg",{width:"64",height:"64",viewBox:"0 0 69 60",fill:"none",children:[(0,t.jsx)("path",{d:"M56.9369 56.6274C59.9083 53.6559 62.2654 50.1283 63.8736 46.2459C65.4817 42.3635 66.3094 38.2023 66.3094 34C66.3094 29.7977 65.4817 25.6366 63.8736 21.7541C62.2654 17.8717 59.9083 14.3441 56.9369 11.3726C53.9654 8.40111 50.4377 6.04401 46.5553 4.43586C42.6729 2.8277 38.5117 2 34.3094 2C30.1071 2 25.946 2.8277 22.0636 4.43585C18.1812 6.044 14.6535 8.4011 11.682 11.3726C8.71057 14.344 6.35346 17.8717 4.74531 21.7541C3.13716 25.6365 2.30945 29.7977 2.30945 34C2.30945 38.2023 3.13715 42.3634 4.7453 46.2459C6.35345 50.1283 8.71055 53.6559 11.682 56.6274",className:"stroke-graphite-10"}),i>0&&(0,t.jsx)("path",{d:"M11.682 56.6274C7.20675 52.1521 4.15905 46.4503 2.92432 40.2429C1.68959 34.0355 2.3233 27.6014 4.7453 21.7541C7.16731 15.9069 11.2688 10.9092 16.5312 7.39297C21.7936 3.87677 27.9804 2 34.3094 2C40.6385 2 46.8253 3.87677 52.0877 7.39297C57.3501 10.9092 61.4516 15.9069 63.8736 21.7541C66.2956 27.6014 66.9293 34.0355 65.6946 40.2429C64.4598 46.4503 61.4121 52.1521 56.9369 56.6274",strokeWidth:"4",strokeLinecap:"square",pathLength:"100",strokeDasharray:"100",strokeDashoffset:100-i/e*100,className:(0,h.default)(i/e==1?"stroke-emerald-40":"stroke-amber-40")}),(0,t.jsx)("text",{textAnchor:"middle",x:"50%",y:"55%",className:(0,h.default)("font-bold text-2xl",i/e==1?"fill-emerald-40":"fill-amber-40"),children:i}),(0,t.jsxs)("text",{textAnchor:"middle",x:"50%",y:"82%",className:(0,h.default)("font-bold text-xs",i/e==1?"fill-emerald-40":"fill-amber-40"),children:["of ",e]})]})}],249298);var v=e.i(893566);e.s(["useCanChangeSEOSettings",0,function(){let e=(0,v.useRequirePremiumSubscription)();return()=>e()}],600020)},344624,364338,e=>{"use strict";var t,i=e.i(391398),a=e.i(56206),s=e.i(784263);e.i(311727);var n=e.i(846415),r=e.i(508604),l=e.i(70340),o=e.i(590619),c=e.i(446883),d=e.i(503999),u=((t={})[t.ACTIVE=0]="ACTIVE",t[t.WILL_BE_DISCONNECTED=1]="WILL_BE_DISCONNECTED",t[t.WILL_EXPIRE=2]="WILL_EXPIRE",t[t.NOT_CONNECTED=3]="NOT_CONNECTED",t[t.WAITING_FOR_SETUP=4]="WAITING_FOR_SETUP",t[t.CONNECTING=5]="CONNECTING",t[t.LOADING=6]="LOADING",t[t.PAST_DUE=7]="PAST_DUE",t[t.WILL_REVERT_TO_DEFAULT=8]="WILL_REVERT_TO_DEFAULT",t[t.NOT_PUBLISHED=9]="NOT_PUBLISHED",t);function h({status:e,children:t}){return(0,i.jsx)("div",{className:(0,a.default)("inline-flex items-center space-x-1 self-start rounded py-1 pr-2 pl-[6px] font-extrabold text-xs uppercase leading-[15px] tracking-[0.01em]",{"bg-graphite-5 text-gra
2phite-40":6===e||5===e||9===e,"bg-emerald-0 text-emerald-60":0===e,"bg-crimson-0 text-crimson-40":4===e||3===e,"bg-amber-0 text-amber-60":8===e||1===e||2===e||7===e}),children:t})}e.s(["DomainStatus",()=>u,"DomainStatusBadge",0,function({status:e,context:t}){switch(e){case 6:return(0,i.jsxs)(h,{status:e,children:[(0,i.jsx)(d.Spinner,{size:"sm"}),(0,i.jsx)("span",{children:"Testing connection..."})]});case 0:return(0,i.jsxs)(h,{status:e,children:[(0,i.jsx)(n.Check,{className:"h-4"}),(0,i.jsxs)("span",{children:["Active ",t]})]});case 4:return(0,i.jsxs)(h,{status:e,children:[(0,i.jsx)(r.Clock,{className:"h-4"}),(0,i.jsxs)("span",{children:[t," Waiting for setup"]})]});case 8:return(0,i.jsxs)(h,{status:e,children:[(0,i.jsx)(o.default,{className:"h-4"}),(0,i.jsxs)("span",{children:[t," Will revert to default"]})]});case 5:return(0,i.jsxs)(h,{status:e,children:[(0,i.jsx)(r.Clock,{className:"h-4"}),(0,i.jsxs)("span",{children:["Connecting ",t]})]});case 1:return(0,i.jsxs)(h,{status:e,children:[(0,i.jsx)(o.default,{className:"h-4"}),(0,i.jsxs)("span",{children:[t," Will be disconnected"]})]});case 2:return(0,i.jsxs)(h,{status:e,children:[(0,i.jsx)(o.default,{className:"h-4"}),(0,i.jsxs)("span",{children:[t," Will expire"]})]});case 3:return(0,i.jsxs)(h,{status:e,children:[(0,i.jsx)(c.default,{className:"h-4"}),(0,i.jsxs)("span",{children:[t," Not connected"]})]});case 7:return(0,i.jsxs)(h,{status:e,children:[(0,i.jsx)(o.default,{className:"h-4"}),(0,i.jsxs)("span",{children:[t," Past due"]})]});case 9:return(0,i.jsxs)(h,{status:e,children:[(0,i.jsx)(l.EyeOff,{className:"h-4"}),(0,i.jsx)("span",{children:"Not published"})]});default:return(0,s.expectNever)(e)}}],344624);var m=e.i(203828),p=e.i(191788),g=e.i(276564);e.s(["useExternalDomain",0,function(e){let t=(0,m.useRouter)(),i=g.trpc.domain.getExternalDomain.useQuery(void 0,e?{retry:!1}:{refetchOnMount:!1});return p.default.useEffect(()=>{i.error&&e&&t.replace("/404")},[e,i.error,t]),i}],364338)},710867,e=>{"use strict";var t=e.i(391398),i=e.i(56206),a=e.i(191788),s=e.i(282098);let n=a.forwardRef(function({"aria-checked":e,"aria-pressed":a,padding:n="md",className:r,children:l,...o},c){let d=e||a;return(0,t.jsx)(s.Button,{ref:c,"aria-checked":e,"aria-pressed":a,shape:"rounded-rectangle",className:(0,i.default)("bg-graphite-0 text-graphite-60",d?"cursor-default ring-2 ring-graphite-100":"ring-1 ring-graphite-10 hover:ring-2",{"p-0":"none"===n,"p-2":"sm"===n,"p-6":"md"===n},r),...o,children:(0,t.jsx)("span",{className:"w-full text-left",children:l})})});e.s(["CardButton",0,n])},317738,179297,307879,e=>{"use strict";var t=e.i(391398),i=e.i(407464),a=e.i(308002),s=e.i(598373),n=e.i(411072),r=e.i(792042),l=e.i(365714);e.i(311727);var o=e.i(546052),c=e.i(846415),d=e.i(70340),u=e.i(907873),h=e.i(663381),m=e.i(448836),p=e.i(589310),g=e.i(441968),x=e.i(336185),f=e.i(708488),b=e.i(558227),v=e.i(191788),j=e.i(784263),y=e.i(345837),S=e.i(335999),C=e.i(962122),N=e.i(388890),w=e.i(374881),D=e.i(393349),P=e.i(311667),E=e.i(631006),T=e.i(333512),I=e.i(457915),_=e.i(209945);let O=(0,f.atomWithReset)(["INITIAL"]);e.s(["SettingsSidebar",0,function(e){let i=(0,b.useResetAtom)(O),[a,n]=(0,s.useAtom)(O),r=(0,C.useSettlePendingChanges)();return v.useEffect(()=>()=>{i()},[i]),(0,t.jsx)(N.Sidebar,{...e,children:(0,t.jsx)(y.Drilldown,{panels:a,onChange:e=>{r(()=>{n(e)})},children:e=>{switch(e){case"INITIAL":return(0,t.jsx)(T.InitialPanel,{});case"BRANDING":return(0,t.jsx)(w.BrandingPanel,{});case"DOMAIN":return(0,t.jsx)(E.DomainPanel,{});case"SEO":return(0,t.jsx)(_.SEOPanel,{});case"PRIVACY":return(0,t.jsx)(I.PrivacyPanel,{});case"FAVICON":return(0,t.jsx)(S.FaviconPanel,{});case"COOKIE":return(0,t.jsx)(P.CookiePanel,{});case"ANALYTICS":return(0,t.jsx)(D.AnalyticsPanel,{});default:return(0,j.expectNever)(e)}}})})},"settingsSidebarPanelsAtom",0,O],179297);var k=e.i(950571),L=e.i(160323),A=e.i(802941),B=e.i(435110),M=e.i(276564),F=e.i(383898),R=e.i(420726),z=e.i(13751),U=e.i(213185),W=e.i(791941);function G({onClose:e}){var i;let a,f,b=(0,L.useCurrentSiteId)(),v=(0,U.useSite)(b).data,{url:j,base:y}=(0,z.useCurrentUrl)(),[,S]=(0,s.useAtom)(A.activeSidebarAtom),[,C]=(0,s.useAtom)(O),{data:N,isPending:w}=(0,R.useCurrentSitePublishStatus)(),{mutate:D,isPending:P}=(0,B.usePublishSite)(),{mutate:E,isPending:T}=(a=(0,L.useCurrentSiteId)(),f=M.trpc.useUtils(),M.trpc.site.unpublish.useMutation({onSuccess:()=>{f.site.publishStatus.setData(a,{upToDate:!1,lastPublishedAt:null})}})),I=(0,F.useAllPagesBySiteId)(b).data,_=I?.filter(e=>"BLOG_POST"===e.type&&(e.blogPostPublishUnixTimestamp??0)*1e3>Date.now()).length??0,H=I?.filter(e=>"PROJECT"===e.type&&!e.published).length??0;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsx)(x.Popover.Header,{title:"Publish site",onClose:e,primitive:!!e}
2),(0,t.jsxs)("div",{className:"space-y-4 rounded p-6 text-graphite-100 ring-1 ring-graphite-10",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("a",{href:j,target:"_blank",rel:"noreferrer noopener",className:"font-semibold hover:underline",children:y}),N?.lastPublishedAt&&(0,t.jsx)("p",{className:"text-graphite-40",children:v?.privacy==="PUBLIC"?"Visible to anyone":v?.privacy==="NOT_INDEXED"?"Visible with the link":"Password protected"})]}),(0,t.jsx)(u.FilledBadge,{intent:N?.lastPublishedAt?"active":"neutral",children:(0,t.jsx)("div",{className:"flex items-center gap-1 font-semibold",children:N?.lastPublishedAt?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Check,{className:"size-4"})," Public site"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.EyeOff,{className:"size-4"})," Not published"]})})})]}),(0,t.jsx)(g.CopyCurrentUrlButton,{})]}),(0,t.jsx)(k.Separator,{}),(_>0||H>0)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-1",children:[_>0&&(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded bg-graphite-5 px-4 py-3",children:[(0,t.jsx)("div",{className:"size-2 animate-ring-pulse rounded-full bg-emerald-40 ring-emerald-10"}),(0,t.jsxs)("span",{className:"font-medium text-xs",children:["You have ",_," scheduled blog post",_>1?"s":""]})]}),H>0&&(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded bg-graphite-5 px-4 py-3",children:[(0,t.jsx)("div",{className:"size-2 animate-ring-pulse rounded-full bg-amber-40 ring-amber-10"}),(0,t.jsxs)("span",{className:"font-medium text-xs",children:["You have ",H," hidden project",H>1?"s":""]})]})]}),(0,t.jsx)(k.Separator,{})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)(h.FloatingButton,{size:"xs",shape:"pill",intent:"subtle",className:"hover:!ring-graphite-100",onClick:()=>{C(["INITIAL","DOMAIN"]),S("SETTINGS"),e?.()},children:["Domains ",(0,t.jsx)(o.ArrowUpRight,{className:"size-4"})," "]}),(0,t.jsxs)(h.FloatingButton,{size:"xs",shape:"pill",intent:"subtle",className:"hover:!ring-graphite-100",onClick:()=>{C(["INITIAL","PRIVACY"]),S("SETTINGS"),e?.()},children:["Privacy ",(0,t.jsx)(o.ArrowUpRight,{className:"size-4"})," "]})]})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[N?.lastPublishedAt&&(0,t.jsx)(p.SecondaryButton,{loading:T,size:"lg",className:"w-full",onClick:()=>{T||((0,W.gtm)({event:"clickedUnpublishChanges"}),E(b))},children:"Unpublish site"}),(0,t.jsx)(m.PrimaryButton,{disabled:N?.upToDate,loading:P||w,size:"lg",className:"w-full gap-2 disabled:text-graphite-40",onClick:()=>{N?.upToDate||P||(N?.lastPublishedAt?(0,W.gtm)({event:"clickedPublishChanges"}):(0,W.gtm)({event:"clickedPublishSite"}),D({id:b}))},children:N?.upToDate?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Check,{className:"h-6"}),"Your site is up to date"]}):N?.lastPublishedAt?"Publish changes":"Publish site"}),N?.lastPublishedAt&&(0,t.jsxs)("p",{className:"text-center font-medium text-graphite-40 text-xs",children:["Last published:"," ",(i=N.lastPublishedAt,(0,n.differenceInDays)(i,new Date)>1?(0,r.format)(i,"d MMM yyyy h:mm a"):(0,l.formatDistanceToNow)(i,{addSuffix:!0}))]})]})]})}e.s(["PublishOverlayContent",0,G],307879);var H=e.i(261551),Y=e.i(852713),V=e.i(893566),$=e.i(276469),X=e.i(314936);let q=(0,a.atom)(!1);e.s(["PublishButton",0,function(){let[e]=(0,$.useSession)(),a=e?.user.subscriptionType!=="PREMIUM",n=(0,V.useRequirePremiumSubscription)(!1,"PUBLISHING"),[r,l]=(0,s.useAtom)(q);return(0,t.jsxs)(x.Popover,{onOpenChange:l,open:r,children:[(0,t.jsx)(x.Popover.Trigger,{asChild:!0,onClick:e=>e.preventDefault(),children:(0,t.jsx)(X.EditorHeaderButton,{"data-editor-header-button":"publish","data-testid":"publish-button",className:(0,i.default)("h-10 bg-graphite-0 text-graphite-100 hover:bg-graphite-10",a&&"pr-2.5"),icon:null,size:"xl",onClick:()=>{(0,W.gtm)({event:"clickedPublishHeaderButton",lockVisible:a}),n()&&l(!r)},children:(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"whitespace-nowrap",children:"Publish site"}),a?(0,t.jsx)(Y.LockFilled,{className:"w-6"}):(0,t.jsx)(H.ChevronDown,{className:"w-6"})]})})}),(0,t.jsx)(x.Popover.Content,{align:"end",side:"bottom",children:(0,t.jsx)(G,{onClose:()=>l(!1)})})]})},"publishOverlayOpenAtom",0,q],317738)},243359,172512,92302,e=>{"use strict";var t=e.i(391398),i=e.i(849692),a=e.i(407464),s=e.i(56206),n=e.i(931245),r=e.i(500955),l=e.i(276469);function o({children:e,className:i,...a}){return(0,t.jsxs)("div",{className:"relative",...a,children:[(0,t.jsx)("svg",{className:i,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{className:"fill-custom-favicon",d:"M14.7557 1.00576C15.3344 0.335253 15.6237 -2.17029e-08 16 0C16.3763 2.17029e-08 16.6656 0.335254 17.2443 1.00576L18.6307 2.61221C18.9841 3.02175 19.1609 3.22652 19.4051 3.29197C19.6493 3.35741 19.9048 3.26843 20.4156 3.09048L22.4195 2.39246C23.2559 2.10112 23.6741 1.95545 24 2.14359C24.3259 2.33174 24.4088 2.76674 24.5747 3.63675L24.9721 5.72118C25.0735 6.25258 25.1241 6.51828 25.3029 6.69707C25.4817 6.87587 25.7474 6.92653 26.2788 7.02785L28.3
2632 7.42529C29.2333 7.59118 29.6683 7.67412 29.8564 8C30.0446 8.32588 29.8989 8.74408 29.6075 9.58047L28.9095 11.5844C28.7316 12.0952 28.6426 12.3506 28.708 12.5949C28.7735 12.8391 28.9783 13.0159 29.3878 13.3693L30.9942 14.7557C31.6647 15.3344 32 15.6237 32 16C32 16.3763 31.6647 16.6656 30.9942 17.2443L29.3878 18.6307C28.9783 18.9841 28.7735 19.1609 28.708 19.4051C28.6426 19.6493 28.7316 19.9048 28.9095 20.4156L29.6075 22.4195C29.8989 23.2559 30.0446 23.6741 29.8564 24C29.6683 24.3259 29.2333 24.4088 28.3632 24.5747L26.2788 24.9721C25.7474 25.0735 25.4817 25.1241 25.3029 25.3029C25.1241 25.4817 25.0735 25.7474 24.9721 26.2788L24.5747 28.3632C24.4088 29.2333 24.3259 29.6683 24 29.8564C23.6741 30.0446 23.2559 29.8989 22.4195 29.6075L20.4156 28.9095C19.9048 28.7316 19.6493 28.6426 19.4051 28.708C19.1609 28.7735 18.9841 28.9783 18.6307 29.3878L17.2443 30.9942C16.6656 31.6647 16.3763 32 16 32C15.6237 32 15.3344 31.6647 14.7557 30.9942L13.3693 29.3878C13.0159 28.9783 12.8391 28.7735 12.5949 28.708C12.3506 28.6426 12.0952 28.7316 11.5844 28.9095L9.58047 29.6075C8.74408 29.8989 8.32588 30.0446 8 29.8564C7.67412 29.6683 7.59118 29.2333 7.42529 28.3632L7.02785 26.2788C6.92653 25.7474 6.87587 25.4817 6.69707 25.3029C6.51828 25.1241 6.25258 25.0735 5.72118 24.9721L3.63675 24.5747C2.76674 24.4088 2.33174 24.3259 2.14359 24C1.95545 23.6741 2.10112 23.2559 2.39246 22.4195L3.09048 20.4156C3.26843 19.9048 3.35741 19.6493 3.29197 19.4051C3.22652 19.1609 3.02175 18.9841 2.61221 18.6307L1.00576 17.2443C0.335253 16.6656 2.17029e-08 16.3763 0 16C-2.17029e-08 15.6237 0.335254 15.3344 1.00576 14.7557L2.61221 13.3693C3.02175 13.0159 3.22652 12.8391 3.29197 12.5949C3.35741 12.3507 3.26843 12.0952 3.09048 11.5844L2.39246 9.58047C2.10112 8.74407 1.95545 8.32588 2.14359 8C2.33174 7.67412 2.76674 7.59118 3.63675 7.42529L5.72118 7.02785C6.25258 6.92653 6.51828 6.87587 6.69707 6.69707C6.87587 6.51828 6.92653 6.25258 7.02785 5.72118L7.42529 3.63675C7.59118 2.76674 7.67412 2.33174 8 2.14359C8.32588 1.95545 8.74408 2.10112 9.58047 2.39246L11.5844 3.09048C12.0952 3.26843 12.3507 3.35741 12.5949 3.29197C12.8391 3.22652 13.0159 3.02175 13.3693 2.61221L14.7557 1.00576Z"})}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:e})]})}function c({children:e,className:i,...s}){return(0,t.jsx)("div",{className:(0,a.default)("flex items-center justify-center rounded-full bg-custom-favicon",i),...s,children:e})}function d({children:e,className:i,size:s,...n}){return(0,t.jsx)("div",{className:(0,a.default)("flex items-center justify-center bg-custom-favicon",{"rounded-lg":"md"===s,rounded:"sm"===s},i),...n,children:e})}function u({preset:e,size:i="md"}){let[a]=(0,l.useSession)(),h=(0,r.getInitials)((0,n.fullNameGuess)(a?.user)),m=function(e){switch(e){case"floral":return o;case"circle":return c;default:return d}}(e);return(0,t.jsx)(m,{role:"img","aria-label":"md"===i?`favicon-preview-${e}`:void 0,className:(0,s.default)({"h-5 w-5":"sm"===i,"h-8 w-8":"md"===i}),size:i,children:(0,t.jsx)("span",{className:(0,s.default)("custom-h1 whitespace-nowrap pt-px font-bold text-custom-h1 tracking-[0.01em]",{"text-[9px]":"sm"===i,"text-[15px]":"md"===i}),children:h})})}e.s(["Favicon",0,u],172512),e.s(["BrowserTab",0,function({favicon:e,title:a}){return(0,t.jsxs)("div",{className:"relative select-none overflow-hidden rounded ring-1 ring-graphite-5",children:[(0,t.jsxs)("svg",{width:"306",height:"102",viewBox:"0 0 306 102",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_2250_314349)",filter:"url(#filter0_b_2250_314349)",children:[(0,t.jsx)("rect",{width:"306",height:"102",fill:"white"}),(0,t.jsx)("rect",{width:"306",height:"48",fill:"#F1F1F1"}),(0,t.jsx)("circle",{cx:"24",cy:"24",r:"5",stroke:"#DCDCDC",strokeWidth:"2"}),(0,t.jsx)("circle",{cx:"42",cy:"24",r:"5",stroke:"#DCDCDC",strokeWidth:"2"}),(0,t.jsx)("circle",{cx:"60",cy:"24",r:"5",stroke:"#DCDCDC",strokeWidth:"2"}),(0,t.jsx)("g",{filter:"url(#filter1_d_2250_314349)",children:(0,t.jsx)("path",{d:"M92 12C92 5.37258 97.3726 0 104 0H306V102H0V48H80C86.6274 48 92 42.6274 92 36V12Z",fill:"white"})}),(0,t.jsx)("text",{x:136,y:30,width:100,height:20,className:"fill-graphite-60 text-sm",children:a.length>18?`${a.slice(0,18)}...`:a}),(0,t.jsx)("g",{clipPath:"url(#clip2_2250_314349)",children:(0,t.jsx)("path",{d:"M34 73H21.83L27.42 67.41L26 66L18 74L26 82L27.41 80.59L21.83 75H34V73Z",fill:"#DCDCDC"})}),(0,t.jsx)("g",{clipPath:"url(#clip3_2250_314349)",children:(0,t.jsx)("path",{d:"M56 73H68.17L62.58 67.41L64 66L72 74L64 82L62.59 80.59L68.17 7
25H56V73Z",fill:"#DCDCDC"})}),(0,t.jsx)("g",{clipPath:"url(#clip4_2250_314349)",children:(0,t.jsx)("path",{d:"M93.125 74C93.125 69.0985 97.0985 65.125 102 65.125C105.523 65.125 108.567 67.1779 110 70.1527V68H112V74H106V72L108.58 72C107.723 69.1785 105.101 67.125 102 67.125C98.203 67.125 95.125 70.203 95.125 74C95.125 77.797 98.203 80.875 102 80.875C105.009 80.875 107.566 78.942 108.498 76.25H110.587C109.591 80.062 106.124 82.875 102 82.875C97.0985 82.875 93.125 78.9015 93.125 74Z",fill:"#DCDCDC"})}),(0,t.jsx)("path",{d:"M128 74C128 64.0589 136.059 56 146 56H306V92H146C136.059 92 128 83.9411 128 74V74Z",fill:"#F4F3F7"})]}),(0,t.jsxs)("defs",{children:[(0,t.jsxs)("filter",{id:"filter0_b_2250_314349",x:"-4",y:"-4",width:"314",height:"110",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:"2"}),(0,t.jsx)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_2250_314349"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_backgroundBlur_2250_314349",result:"shape"})]}),(0,t.jsxs)("filter",{id:"filter1_d_2250_314349",x:"-16",y:"-12",width:"338",height:"134",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"4"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"8"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0705882 0 0 0 0 0.0666667 0 0 0 0 0.0941176 0 0 0 0.1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2250_314349"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2250_314349",result:"shape"})]}),(0,t.jsxs)("linearGradient",{id:"paint0_linear_2250_314349",x1:"116",y1:"24",x2:"126.041",y2:"24",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#DAB707"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#F8D72C"})]}),(0,t.jsxs)("linearGradient",{id:"paint1_linear_2250_314349",x1:"116",y1:"24",x2:"126.041",y2:"24",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#F59E0B"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#FBBF24"})]}),(0,t.jsxs)("linearGradient",{id:"paint2_linear_2250_314349",x1:"116",y1:"13.96",x2:"116",y2:"34.0419",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#FBE888"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#F8D72C"})]}),(0,t.jsxs)("linearGradient",{id:"paint3_linear_2250_314349",x1:"116",y1:"13.96",x2:"116",y2:"34.0419",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#FDE68A"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#FBBF24"})]}),(0,t.jsx)("clipPath",{id:"clip0_2250_314349",children:(0,t.jsx)("rect",{width:"306",height:"102",fill:"white"})}),(0,t.jsx)("clipPath",{id:"clip1_2250_314349",children:(0,t.jsx)("rect",{width:"20",height:"20",fill:"white",transform:"translate(106 14)"})}),(0,t.jsx)("clipPath",{id:"clip2_2250_314349",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"translate(14 62)"})}),(0,t.jsx)("clipPath",{id:"clip3_2250_314349",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"translate(52 62)"})}),(0,t.jsx)("clipPath",{id:"clip4_2250_314349",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"translate(90 62)"})})]})]}),(0,t.jsx)("div",{className:"absolute top-[15px] left-[106px] h-5 w-5 rounded-full",children:"src"in e?(0,t.jsx)(i.CustomNextImage,{layout:"fill",src:e.src}):(0,t.jsx)(u,{size:"sm",preset:e.preset})})]})}],243359);var h=e.i(893566);e.s(["useCanUpdateFavicon",0,function(){let e=(0,h.useRequirePremiumSubscription)();return()=>e()}],92302)},877992,e=>{"use strict";var t=e.i(391398),i=e.i(56206);e.i(311727);var a=e.i(968702),s=e.i(282098);function n({className:e,...a}){return(0,t.jsx)("div",{className:(0,i.default)("p-6 hover:bg-graphite-5",e),...a})}e.s(["CategoryCard",0,function({title:e,actionLabel:r,className:l,onClick:o,children:c,trailing:d,...u}){return(0,t.jsxs)(n,{className:(0,i.default)("relative space-y-4 text-gra
2phite-60",l),...u,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between hover:text-graphite-100",children:[(0,t.jsxs)("h3",{className:"flex items-center gap-3 font-bold",children:[e," ",d]}),(0,t.jsx)(s.Button,{"aria-label":r,className:"pointer-area-fill-containing-block",onClick:o,children:(0,t.jsx)(a.ChevronRight,{"aria-hidden":!0,className:"h-6"})})]}),(0,t.jsx)("div",{className:"pointer-events-none",children:c})]})},"SettingsCategoryCard",0,function({title:e,icon:i,subtitle:s,onClick:n,trailing:r}){return(0,t.jsxs)("div",{role:"button","aria-hidden":!0,className:"flex items-center gap-4 p-6 hover:bg-graphite-5",onClick:n,children:[(0,t.jsx)("div",{className:"h-6 w-6 text-graphite-60",children:i}),(0,t.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,t.jsxs)("h5",{className:"flex items-center gap-2 font-semibold text-graphite-100 tracking-[0.01em]",children:[e,r]}),(0,t.jsx)("h6",{className:"text-graphite-40 text-xs",children:s})]}),(0,t.jsx)("div",{children:(0,t.jsx)(a.ChevronRight,{className:"h-6 w-6 text-graphite-60"})})]})}],877992)},441968,e=>{"use strict";var t=e.i(391398),i=e.i(191788),a=e.i(307982),s=e.i(784263);e.i(881666);var n=e.i(548218),r=e.i(28380),l=e.i(344624),o=e.i(978137),c=e.i(329849),d=e.i(160323),u=e.i(394508),h=e.i(420726),m=e.i(13751),p=e.i(364338),g=e.i(276469),x=e.i(213185);function f(){let{url:e}=(0,m.useCurrentUrl)();return(0,t.jsx)("button",{type:"button",onClick:async()=>{await navigator.clipboard.writeText(e),(0,a.default)((0,t.jsx)(o.Toast,{icon:(0,t.jsx)(r.IconLink,{}),children:"Link copied to your clipboard"}),{duration:4e3})},className:"flex h-8 w-8 items-center justify-center rounded-full p-1 ring-1 ring-graphite-10 hover:text-graphite-100 hover:ring-2 hover:ring-graphite-100",children:(0,t.jsx)(n.IconCopySmall,{className:"h-6 w-6"})})}e.s(["CopyCurrentUrlButton",0,f,"DomainCard",0,function(){let[e]=(0,g.useSession)({required:!0}),a=(0,d.useCurrentSiteId)(),{data:n}=(0,x.useSite)(a),{data:r}=(0,p.useExternalDomain)(!1),{data:o}=(0,u.useActiveSubscriptions)(),{data:m}=(0,h.useCurrentSitePublishStatus)(),b=(0,i.useMemo)(()=>"PREMIUM"===e.user.subscriptionType&&m?.lastPublishedAt?r||n?.domain?r?o?.activeProductSubscription?.cancel_at_period_end?l.DomainStatus.WILL_BE_DISCONNECTED:o?.activeProductSubscription||"USER"!==e.user.role?r.hasFolioProxyIP?l.DomainStatus.ACTIVE:l.DomainStatus.WAITING_FOR_SETUP:l.DomainStatus.NOT_CONNECTED:n?.domain?o?.activeProductSubscription?.cancel_at_period_end?l.DomainStatus.WILL_BE_DISCONNECTED:o?.activeDomainSubscription?.status==="past_due"?l.DomainStatus.PAST_DUE:o?.activeDomainSubscription?.cancel_at_period_end?l.DomainStatus.WILL_EXPIRE:l.DomainStatus.ACTIVE:l.DomainStatus.LOADING:o?.activeProductSubscription?.cancel_at_period_end&&o?.activeProductSubscription?.status!=="trialing"?l.DomainStatus.WILL_REVERT_TO_DEFAULT:l.DomainStatus.ACTIVE:l.DomainStatus.NOT_PUBLISHED,[e.user.subscriptionType,e.user.role,m?.lastPublishedAt,r,n?.domain,o?.activeProductSubscription,o?.activeDomainSubscription?.status,o?.activeDomainSubscription?.cancel_at_period_end]),v=n?.domain?.host,j=r?.host??v??(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{children:[c.PRODUCT_URL,"/v/"]}),(0,t.jsx)("wbr",{}),(0,t.jsx)("span",{children:n?.slug})]});return(0,t.jsxs)("div",{className:"space-y-3 rounded bg-graphite-0 p-6 shadow-soft-lg",children:[(0,t.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,t.jsx)("h4",{className:"font-bold text-graphite-100 leading-5",children:j}),b!==l.DomainStatus.NOT_PUBLISHED&&(0,t.jsx)("h4",{children:function(e){if(!e)return"PUBLIC";switch(e.privacy){case"PUBLIC":return"Public site";case"PASSWORD_PROTECTED":return"Password protected";case"NOT_INDEXED":return"Visible with the link";default:return(0,s.expectNever)(e.privacy)}}(n)})]}),m?.lastPublishedAt&&(0,t.jsx)(f,{})]}),(0,t.jsx)(l.DomainStatusBadge,{context:n?.domain||r?"domain":"url",status:b})]})}])},823794,e=>{"use strict";var t=e.i(391398),i=e.i(56206),a=e.i(396412),s=e.i(446883),n=e.i(419318),r=e.i(329849);
2e.s(["ProductBrandingBanner",0,function({as:e,size:l="md",muted:o,className:c,onRemove:d,...u}){let h=e||"a";return(0,t.jsxs)(h,{..."a"===h&&{href:`https://${r.PRODUCT_URL}`,target:"_blank",rel:"noreferrer"},className:(0,i.default)("inline-flex items-center justify-center text-center font-bold leading-tight focus:outline-none focus-visible:ring","bg-graphite-0/90 backdrop-blur-lg",{"h-8 space-x-1.5 px-2 text-xs":"xs"===l,"h-12 space-x-3 px-3":"md"===l},o?"text-graphite-20 ring-1 ring-graphite-10/50 ring-inset":"text-graphite-100 shadow-soft-sm",c),...u,children:[(0,t.jsx)(a.Logo,{"aria-hidden":!0,className:(0,i.default)({"h-4":"xs"===l,"h-6":"md"===l})}),(0,t.jsxs)("span",{className:"whitespace-nowrap",children:["Made with ",r.PRODUCT_NAME]}),d&&(0,t.jsx)(n.IconButton,{growOutside:!0,"aria-label":"Remove this banner",onClick:d,children:(0,t.jsx)(s.default,{"aria-hidden":!0,className:(0,i.default)("text-graphite-60",{"h-4":"xs"===l,"h-6":"md"===l})})})]})}])},388890,e=>{"use strict";var t=e.i(391398),i=e.i(942529),a=e.i(56206),s=e.i(301027),n=e.i(598373),r=e.i(41158),l=e.i(191788);e.i(311727);var o=e.i(546764),c=e.i(27018),d=e.i(446883),u=e.i(907873),h=e.i(419318),m=e.i(448836),p=e.i(589310),g=e.i(345837),x=e.i(160323),f=e.i(183664),b=e.i(802941),v=e.i(435110),j=e.i(922895);let y="22.125rem";function S({shrinksSibling:e,...i}){let[a]=(0,n.useAtom)(b.sidebarSizeAtom),r="FULL_SCREEN"===a?"100vw":y,l=e?"marginLeft":"x";return(0,t.jsx)(s.m.aside,{initial:"FULL_SCREEN"===a?{y:-20,scale:.97,opacity:0}:{[l]:`-${r}`},animate:"FULL_SCREEN"===a?{y:0,scale:1,opacity:1}:{[l]:"0rem"},exit:{[l]:`-${r}`},transition:{ease:c.easeInOut},style:{width:r,marginRight:`-${y}`},className:"desktop:!-mr-0 z-sidebar transition-all",...i})}let C=l.forwardRef(({children:e},i)=>(0,t.jsx)("div",{ref:i,className:"flex-1 overflow-auto",children:e})),N="6.0625rem";function w({visible:e,onSave:i,onDiscard:a}){return(0,t.jsxs)(s.m.footer,{initial:{marginBottom:`-${N}`},animate:{marginBottom:e?"0rem":`-${N}`},className:"grid grid-cols-2 gap-6 p-6",children:[(0,t.jsx)(p.SecondaryButton,{onClick:a,children:"Cancel"}),(0,t.jsx)(m.PrimaryButton,{onClick:i,children:"Save"})]})}function D({onBeforeSave:e,publishOnSuccess:i=!1}){let{data:a}=(0,j.useSubscriptionType)(),{dirty:s,setPendingMutation:n,applyPendingMutation:r}=(0,f.usePendingChangesMutation)(),o=(0,x.useCurrentSiteId)(),{mutate:c}=(0,v.usePublishSite)(),[d,u]=l.useState(!1),[,h]=(0,g.useDrilldown)();return l.useEffect(()=>{d&&h()},[h,d]),(0,t.jsx)(w,{visible:s&&"FREE"!==a,onSave:async()=>{(e?.()??!0)&&await r()&&(i&&c({id:o,settingsOnly:!0}),u(!0))},onDiscard:()=>{n(null)}})}e.s(["PremiumFeatureSidebarFooter",0,function({flow:e="publish",publishOnSuccess:i=!1}){let{data:a}=(0,j.useSubscriptionType)(),{dirty:n}=(0,f.usePendingChangesMutation)();return"FREE"!==a?(0,t.jsx)(D,{publishOnSuccess:i}):(0,t.jsx)(s.m.footer,{initial:{marginBottom:`-${N}`},animate:{marginBottom:n?"0rem":`-${N}`},className:"p-6",children:(0,t.jsx)(m.PrimaryButton,{as:r.default,href:"/premium",className:"w-full",children:"publish"===e?"Upgrade to Publish":"Go Premium to save"})})},"Sidebar",0,function({id:e,onClose:i,children:a,...s}){return(0,t.jsx)(S,{id:e,...s,children:(0,t.jsxs)("div",{className:"relative h-full text-graphite-40 shadow-soft-2xl",children:[i&&(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10 p-6",children:(0,t.jsx)(h.IconButton,{growOutside:!0,"aria-label":"Close sidebar","aria-controls":e,onClick:i,children:(0,t.jsx)(d.default,{"aria-hidden":!0,className:"h-6"})})}),a]})})},"SidebarContent",0,C,"SidebarHeader",0,function({title:e,description:s,noExit:n,tabs:r,activeTab:l,onTabChange:c}){let[,d]=(0,g.useDrilldown)();return(0,t.jsxs)("div",{children:[(0,t.jsxs)("header",{className:"space-y-2.5 p-6",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[!n&&(0,t.jsx)(h.IconButton,{growOutside:!0,"aria-label":"Back",onClick:d,children:(0,t.jsx)(o.ArrowLeft,{"aria-hidden":!0,className:"h-6"})}
2),(0,t.jsx)("h2",{className:"font-semibold text-2xl text-graphite-100 leading-none",children:e})]}),(0,t.jsx)("p",{children:s})]}),(r?.length??0)>0&&(0,t.jsx)(i.Root,{onValueChange:c,children:(0,t.jsx)(i.List,{className:"h-11 space-x-4 pl-6",children:r?.map(e=>(0,t.jsxs)(i.Trigger,{className:(0,a.default)("relative inline-flex h-full items-center gap-2 capitalize leading-none",l===e.label?"font-bold text-graphite-100":"text-graphite-60 hover:text-graphite-100"),value:e.label,children:[e.label,e.badge&&(0,t.jsx)(u.FilledBadge,{intent:"success",children:e.badge}),l===e.label&&(0,t.jsx)("span",{className:"absolute inset-x-0 bottom-0 rounded-t border-graphite-100 border-b-2"})]},e.label))})})]})},"SidebarWrapper",0,S])},113532,e=>{"use strict";var t=e.i(391398),i=e.i(345837);e.s(["SidebarPanel",0,function({children:e}){return(0,t.jsx)(i.DrilldownPanel,{className:"@container/sidebar-panel z-10 flex flex-col divide-y overflow-hidden",children:e})}])},374881,520889,393349,e=>{"use strict";var t=e.i(391398),i=e.i(407464),a=e.i(98837),s=e.i(849692),n=e.i(823794),r=e.i(329849),l=e.i(160323),o=e.i(855573),c=e.i(893566);function d(){let e=(0,c.useRequirePremiumSubscription)();return()=>e()}e.s(["useCanHideProductBrandingFromSites",0,d],520889);var u=e.i(213185),h=e.i(245898),m=e.i(791941),p=e.i(388890),g=e.i(113532);e.s(["BrandingPanel",0,function(){let e=(0,l.useCurrentSiteId)(),c=(0,u.useSite)(e).data,x=(0,h.useCurrentSiteTemplate)(),f=d(),{mutate:b}=(0,o.useUpdateSite)({delayMs:500});return(0,t.jsxs)(g.SidebarPanel,{children:[(0,t.jsx)(p.SidebarHeader,{title:"Branding",description:`${r.PRODUCT_NAME} branding on your site.`}),(0,t.jsx)(p.SidebarContent,{children:(0,t.jsxs)("div",{className:"space-y-6 p-6",children:[(0,t.jsx)(a.LabeledToggleSwitch,{label:`Made with ${r.PRODUCT_NAME} banner`,checked:!c.hideProductBranding,onCheckedChange:()=>{f()?b({id:e,hideProductBranding:!c.hideProductBranding}):(0,m.gtm)({event:"openPricingDialog",from:"Branding"})}}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"relative translate-x-0 overflow-hidden",children:[(0,t.jsx)("div",{className:"leading-0",children:(0,t.jsx)(s.CustomNextImage,{...x.preview,alt:x.displayName,className:"rounded blur-sm"})}),(0,t.jsx)("div",{className:(0,i.default)("pointer-events-none absolute right-2 bottom-2 translate-y-0 opacity-100 transition-all",c.hideProductBranding&&"translate-y-20 opacity-0"),children:(0,t.jsx)(n.ProductBrandingBanner,{as:"span",size:"xs"})}),(0,t.jsx)("div",{className:"absolute inset-0 z-20 rounded border"})]}),(0,t.jsx)("p",{children:c.hideProductBranding?`${r.PRODUCT_NAME}’s branding banner is not visible on your website.`:"This banner is always shown in the bottom right corner on your website."})]})]})})]})}],374881);var x=e.i(735447),f=e.i(598373),b=e.i(191788),v=e.i(276564);function j({children:e}){let i=b.default.Children.toArray(e).map((e,t)=>b.default.isValidElement(e)?b.default.cloneElement(e,{_index:t+1}):e);return(0,t.jsx)("ul",{className:"flex flex-col gap-3",children:i})}j.Step=function({children:e,_index:i}){return(0,t.jsxs)("li",{className:"flex items-start gap-2",children:[(0,t.jsx)("div",{className:"pointer-events-none flex size-6 shrink-0 select-none items-center justify-center rounded-full bg-graphite-5 text-graphite-40 text-xs",children:i}),(0,t.jsx)("p",{children:e})]})},e.i(311727);var y=e.i(877661),S=e.i(745905),C=e.i(220826),N=e.i(663381),w=e.i(844406),D=e.i(356190),P=e.i(345837),E=e.i(322797),T=e.i(978137),I=e.i(950571),_=e.i(183664);function O(e){let t=RegExp("^G-","i");return e.trim().replace(t,"").toUpperCase()}function k(e){let t=O(e);return t.length>0?`G-${t}`:""}e.s(["AnalyticsPanel",0,function(){let e=(0,l.useCurrentSiteId)(),{data:a}=(0,u.useSite)(e),s=(0,f.useSetAtom)(D.userGoogleAnalyticsEnabledAtom),{mutateAsync:n}=(0,o.useUpdateSite)({publishOnSuccess:!0,delayMs:300}),{setPendingQueryData:r,removePendingQueries:c,setPendingMutation:d}=(0,_.usePendingChangesMutation)(),[h]=(0,P.useDrilldown)(),[L,A]=(0,b.useState)(!1),B=(0,b.useCallback)(t=>{let i={...a?.analytics,...t};d([async()=>(await n({id:e,analytics:i}),(0,m.gtm)({event:"connectedGoogleAnalytics"}),!0),()=>{let t=(0,v.getQueryKey)("site.find",e);return r(t,{...a,analytics:i}
2),()=>{c(t)}}])},[e,a,n,c,d,r]),M=(0,b.useCallback)(e=>{e.preventDefault();let t=O(e.clipboardData.getData("text"));e.target.value=t,B({ga4MeasurementId:t.length>0?`G-${t}`:void 0})},[B]),F=a?.cookieBanner?.showCookieBanner??!1;return(0,t.jsxs)(g.SidebarPanel,{children:[(0,t.jsx)(p.SidebarHeader,{title:"Analytics",description:"Connect Google Analytics 4"}),(0,t.jsxs)(p.SidebarContent,{children:[!F&&(0,t.jsx)(C.Alert,{intent:"warning",className:"rounded-md py-2",children:(0,t.jsxs)("div",{className:"space-y-4 text-sm",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h4",{className:"text-amber-80",children:"Cookie consent banner is required"}),(0,t.jsx)("p",{className:"font-normal",children:"To comply with GDPR and other privacy regulations, Analytics requires user consent."})]}),(0,t.jsxs)(w.LinkButton,{className:"h-max gap-1 font-semibold text-amber-80 text-xs decoration-amber-80",onClick:()=>h("COOKIE"),children:["Open Cookie settings",(0,t.jsx)(y.ArrowRight,{className:"h-4"})]})]})}),(0,t.jsxs)("div",{className:(0,i.default)("space-y-8 p-6",!F&&"pointer-events-none opacity-50"),children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col items-start gap-3",children:[(0,t.jsx)(E.LabeledInput,{label:"Measurement ID",placeholder:"XXXXXXXXXX",prefix:"G-",defaultValue:a?.analytics?.ga4MeasurementId?O(a.analytics.ga4MeasurementId):void 0,onPaste:M,onBlur:e=>{let t=k(e.target.value);
2t!==(a?.analytics?.ga4MeasurementId??"")&&B({ga4MeasurementId:t||void 0})},onKeyDown:e=>{if("Enter"===e.key){e.preventDefault();let t=k(e.target.value);t!==(a?.analytics?.ga4MeasurementId??"")&&B({ga4MeasurementId:t||void 0})}},className:"w-full"}),(0,t.jsx)(N.FloatingButton,{size:"xs",shape:"pill",intent:"subtle",loading:L,disabled:L,className:"gap-1 px-4 text-graphite-100 disabled:bg-graphite-5 disabled:text-graphite-40",onClick:async()=>{a?.analytics?.ga4MeasurementId&&(s(!0),A(!0),await (0,S.sleep)(500),window.gtag?.("config",a.analytics.ga4MeasurementId),(0,x.sendGAEvent)("event","test_event"),(0,T.successToast)("Test event sent."),s(!1),A(!1))},children:"Send test event"})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsx)("h4",{className:"font-bold text-graphite-60",children:"Where to find your Measurement ID?"}),(0,t.jsxs)(j,{children:[(0,t.jsxs)(j.Step,{children:[(0,t.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"",className:"text-violet-40/90 hover:underline",children:"Go to your Google Analytics account"})," ","and select your property"]}),(0,t.jsx)(j.Step,{children:"Navigate to Admin → Data Streams → Web"}),(0,t.jsx)(j.Step,{children:"Copy the Measurement ID from the stream details"})]})]})]})]}),(0,t.jsx)(p.PremiumFeatureSidebarFooter,{flow:"save",publishOnSuccess:!0})]})}],393349)},311667,631006,852713,713572,410398,924399,371624,e=>{"use strict";var t=e.i(391398),i=e.i(191788),a=e.i(276564),s=e.i(863654),n=e.i(875038),r=e.i(98837),l=e.i(849692),o=e.i(322797),c=e.i(366083),d=e.i(160323),u=e.i(183664),h=e.i(855573),m=e.i(213185),p=e.i(245898),g=e.i(388890),x=e.i(113532);let f={showCookieBanner:!1,showDeclineButton:!1,title:"This site uses cookies",description:"By using this website, you agree to the use of cookies.",acceptButtonText:"Okay",declineButtonText:"Decline"};e.s(["CookiePanel",0,function(){let e=(0,d.useCurrentSiteId)(),b=(0,m.useSite)(e).data,{mutateAsync:v}=(0,h.useUpdateSite)(),{setPendingQueryData:j,removePendingQueries:y,setPendingMutation:S}=(0,u.usePendingChangesMutation)(),C=b.cookieBanner??f,N=(0,p.useCurrentSiteTemplate)(),[w,D]=(0,i.useState)(C.title||f.title),[P,E]=(0,i.useState)(C.description||f.description),[T,I]=(0,i.useState)(C.acceptButtonText||f.acceptButtonText),[_,O]=(0,i.useState)(C.declineButtonText||f.declineButtonText),k=(0,i.useCallback)(t=>{let i={...C,...t},s={...b,cookieBanner:i};S([async()=>(await v({id:e,cookieBanner:i}),!0),()=>{let t=(0,a.getQueryKey)("site.find",e);return j(t,s),()=>{y(t)}}])},[C,b,e,v,y,S,j]);return(0,t.jsxs)(x.SidebarPanel,{children:[(0,t.jsx)(g.SidebarHeader,{title:"Cookie banner",description:"Get consent from your visitors."}),(0,t.jsx)(g.SidebarContent,{children:(0,t.jsx)(n.Settings.Root,{title:null,children:(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsx)(r.LabeledToggleSwitch,{className:"pt-8",label:"Cookie banner",checked:C.showCookieBanner,onCheckedChange:e=>k({showCookieBanner:e})}),(0,t.jsxs)("div",{className:"relative overflow-hidden rounded",children:[(0,t.jsx)(l.CustomNextImage,{...N.preview,alt:N.displayName,className:"blur-sm"}),(0,t.jsx)("div",{className:"pointer-events-none absolute bottom-2 left-2 origin-bottom-left scale-[40%]",children:(0,t.jsx)(s.CookieBanner,{...C})}),(0,t.jsx)("div",{className:"absolute inset-0 rounded border"})]}),C.showCookieBanner?(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsx)(o.LabeledInput,{placeholder:f.title,label:"Title",value:w,maxLength:30,onChange:e=>D(e.target.value),onBlur:()=>k({title:w||null})}),(0,t.jsx)(n.Settings.Text,{placeholder:f.description,label:"Description",height:64,maxLength:60,counterPlacement:"inside",value:P,onChange:e=>E(e.target.value),onBlur:()=>k({description:P||null}),inputAs:c.TextArea}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(o.LabeledInput,{placeholder:f.acceptButtonText,label:'"Accept" button label',value:T,onChange:e=>I(e.target.value),onBlur:()=>k({acceptButtonText:T||null})}),(0,t.jsx)("p",{className:"text-base text-graphite-40",children:"This button accepts cookies and closes the banner."})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(n.Settings.Group,{children:(0,t.jsx)(n.Settings.Toggle,{label:"Decline button",text:"Show decline button",checked:C.showDeclineButton,onCheckedChange:e=>k({showDeclineButton:e})})}
2),(0,t.jsx)("p",{className:"text-base text-graphite-40",children:"This button lets users reject non-essential cookies, including analytics."})]}),C.showDeclineButton&&(0,t.jsx)(o.LabeledInput,{placeholder:f.declineButtonText,label:'"Decline" button label',value:_,onChange:e=>O(e.target.value),onBlur:()=>k({declineButtonText:_||null})})]}):(0,t.jsx)("p",{className:"text-base text-graphite-40",children:"The cookie banner is turned off and won't appear on your site."})]})})}),(0,t.jsx)(g.PremiumFeatureSidebarFooter,{flow:"save",publishOnSuccess:!0})]})}],311667);var b=e.i(407464),v=e.i(41158),j=e.i(342313),y=e.i(448836),S=e.i(589310),C=e.i(784263),N=e.i(823126),w=e.i(690441),D=e.i(329849),P=e.i(394508),E=e.i(364338),T=e.i(276469),I=e.i(791941),_=e.i(344624);function O({title:e,description:i,status:a,actions:s}){return(0,t.jsx)("div",{className:"rounded border border-graphite-10 bg-graphite-0 p-6",children:(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,t.jsx)("h3",{className:"font-bold text-graphite-100 leading-6",children:e}),(0,t.jsx)("p",{className:"whitespace-pre text-graphite-40 leading-6",children:i})]}),(0,t.jsx)(_.DomainStatusBadge,{status:a})]}),s&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"-mx-6 h-px w-[calc(100%+48px)] bg-graphite-10"}),(0,t.jsx)("div",{className:"flex flex-col space-y-4",children:s})]})]})})}function k({showActions:e=!0}){let s,n=(0,d.useCurrentSiteId)(),r=(0,m.useSite)(n).data,[l,o]=(0,i.useState)("none"),{mutate:c}=(s=a.trpc.useUtils(),a.trpc.domain.deleteExternalDomain.useMutation({onSuccess(){s.domain.getExternalDomain.invalidate()}})),u=a.trpc.useUtils(),h=function(){let[e,t]=(0,T.useSession)({required:!0}),{data:a,isLoading:s,isRefetching:n}=(0,E.useExternalDomain)(!1),{data:r,isLoading:l}=(0,P.useActiveSubscriptions)();return(0,i.useMemo)(()=>s||n||!a||l||!r||t||!e?_.DomainStatus.LOADING:r?.activeProductSubscription||"USER"!==e.user.role?a.hasFolioProxyIP?r?.activeProductSubscription?.cancel_at_period_end&&"USER"===e.user.role?_.DomainStatus.WILL_BE_DISCONNECTED:_.DomainStatus.ACTIVE:_.DomainStatus.WAITING_FOR_SETUP:_.DomainStatus.NOT_CONNECTED,[s,n,a,l,r,t,e])}(),p=(0,i.useMemo)(()=>{if(!e)return null;switch(h){case _.DomainStatus.ACTIVE:return(0,t.jsx)(S.SecondaryButton,{size:"lg",onClick:()=>{o("disconnect")},children:"Disconnect"});case _.DomainStatus.WILL_BE_DISCONNECTED:return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.default,{href:"/settings",passHref:!0,legacyBehavior:!0,children:(0,t.jsx)(y.PrimaryButton,{size:"lg",as:"a",children:"Resume premium"})}),(0,t.jsx)(S.SecondaryButton,{size:"lg",onClick:()=>{o("disconnect")},children:"Disconnect"})]});case _.DomainStatus.NOT_CONNECTED:return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y.PrimaryButton,{size:"lg",onClick:()=>{o("pricing"),(0,I.gtm)({event:"openPricingDialog",from:"ExternalDomainReconnect"})},className:"px-0",children:"Get premium to reconnect"}),(0,t.jsx)(S.SecondaryButton,{size:"lg",onClick:()=>{o("remove")},children:"Remove"})]});case _.DomainStatus.WAITING_FOR_SETUP:return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.default,{href:"/domains/external/setup",passHref:!0,legacyBehavior:!0,children:(0,t.jsx)(y.PrimaryButton,{size:"lg",as:"a",children:"View setup guide"})}),(0,t.jsx)(S.SecondaryButton,{size:"lg",onClick:()=>{o("remove")},children:"Remove"})]});case _.DomainStatus.LOADING:return null;default:return(0,C.expectNever)(h)}},[h,e]);return r.externalDomain?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(O,{title:r.externalDomain.host,description:"From your external provider",status:h,actions:p}),"disconnect"===l&&(0,t.jsx)(N.AreYouSureDialog,{title:"Disconnect domain?",content:(0,t.jsxs)(t.Fragment,{children:["Your visitors won't be able to reach your ",D.PRODUCT_NAME," site with this domain anymore. Are you sure about this?"]}),yesText:"Disconnect",noText:"Keep connected",onNo:()=>{o("none")},onYes:()=>{c(void 0,{onSuccess(){u.domain.getExternalDomain.invalidate(),u.site.find.setData(n,{...r,externalDomain:void 0}),o("none")}})}}),"remove"===l&&(0,t.jsx)(N.AreYouSureDialog,{title:"Remove domain?",content:(0,t.jsx)(t.Fragment,{children:"Removing this domain won't delete it - you'll still be able to manage it on your service provider's site."}),noText:"Keep domain",onNo:()=>{o("none")},yesText:"Remove",onYes:()=>{c(void 0,{onSuccess(){u.site.find.setData(n,{...r,externalDomain:void 0}),u.domain.getExternalDomain.invalidate(),o("none")}})}}),"pricing"===l&&(0,t.jsx)(w.PricingDialog,{onDismiss:()=>{o("none")}})]}):null}var L=e.i(994437),A=e.i(831135),B=e.i(873916),M=e.i(589876);function F({onDismiss:e,price:i,...a}){return(0,t.jsxs)(M.Dialog,{size:"sm",...a,children:[(0,t.jsx)(M.DialogMedia,{children:D.IS_ARCHIFOLIO?(0,t.jsx)(B.default,{"aria-hidden":!0,
2className:"h-55.5"}):(0,t.jsx)(A.default,{"aria-hidden":!0,className:"h-55.5"})}),(0,t.jsxs)(M.DialogContent,{className:"text-center",children:[(0,t.jsx)(M.DialogTitle,{children:"Your domain will renew automatically."}),(0,t.jsxs)("p",{children:["From now on, we'll renew your domain every year for $",i,". You'll get a reminder before we charge your card."]})]}),(0,t.jsx)(M.DialogActions,{children:(0,t.jsx)(S.SecondaryButton,{size:"lg",className:"col-span-full",onClick:e,children:"Sounds good"})})]})}var R=e.i(688766);function z(){let e=(0,d.useCurrentSiteId)(),{data:s}=(0,m.useSite)(e),{data:n,isLoading:r}=(0,P.useActiveSubscriptions)(),[l,o]=(0,i.useState)("none"),{mutate:c,isPending:u}=(0,R.useUpdateDomainSubscriptionStatus)(),h=a.trpc.useUtils(),p=(0,i.useCallback)(()=>{c({status:n?.activeDomainSubscription?.cancel_at_period_end?"active":"cancel_at_period_end"},{onSuccess:()=>{if(!s)return;let t=!n?.activeDomainSubscription?.cancel_at_period_end;h.site.find.setData(e,{...s,domain:{...s.domain,subscription:{...s.domain.subscription,cancel_at_period_end:t}}}),h.subscription.active.setData(void 0,e=>{if(!e)return;let i={...e};return i.activeDomainSubscription&&(i.activeDomainSubscription.cancel_at_period_end=t),i}),o(n?.activeDomainSubscription?.cancel_at_period_end?"renew_enable":"none")}})},[n?.activeDomainSubscription?.cancel_at_period_end,s,e,c,h]),g=(0,i.useMemo)(()=>r||!n?_.DomainStatus.LOADING:n?.activeProductSubscription?n?.activeDomainSubscription?.status==="past_due"?_.DomainStatus.PAST_DUE:n?.activeDomainSubscription?.cancel_at_period_end?_.DomainStatus.WILL_EXPIRE:n?.activeProductSubscription?.cancel_at_period_end?_.DomainStatus.WILL_BE_DISCONNECTED:s?.domain?.status==="IN_PROGRESS"?_.DomainStatus.CONNECTING:_.DomainStatus.ACTIVE:_.DomainStatus.NOT_CONNECTED,[n,r,s?.domain]),x=(0,i.useMemo)(()=>{let e=n?.activeDomainSubscription?.cancel_at_period_end??s?.domain?.subscription?.cancel_at_period_end,t=n?.activeDomainSubscription?.current_period_end??s?.domain?.subscription?.current_period_end,i=t?(0,L.formatTimestamp)(t):s?.domain?.expiresAt?(0,L.formatISOString)(s.domain.expiresAt):"";return e?`Expires on ${i}`:`Renews on ${i}`},[n?.activeDomainSubscription,s?.domain]),f=(0,i.useMemo)(()=>{switch(g){case _.DomainStatus.NOT_CONNECTED:return(0,t.jsx)(y.PrimaryButton,{size:"lg",onClick:()=>{o("pricing"),(0,I.gtm)({event:"openPricingDialog",from:"InternalDomainReconnect"})},className:"px-0",children:"Get premium to reconnect"});case _.DomainStatus.WILL_BE_DISCONNECTED:return(0,t.jsx)(v.default,{href:"/settings",passHref:!0,legacyBehavior:!0,children:(0,t.jsx)(y.PrimaryButton,{size:"lg",as:"a",children:"Resume premium"})});case _.DomainStatus.WILL_EXPIRE:return(0,t.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,t.jsx)(y.PrimaryButton,{size:"lg",loading:u,onClick:p,children:"Resume renewal"}),(0,t.jsx)(S.SecondaryButton,{as:v.default,href:"/domains/manage",onClick:()=>{(0,I.gtm)({event:"clickManageDomain",host:s?.domain?.host})},className:"w-full",size:"lg",children:"Manage"})]});case _.DomainStatus.PAST_DUE:return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.default,{passHref:!0,href:"/update-payment-method",legacyBehavior:!0,children:(0,t.jsx)(y.PrimaryButton,{size:"lg",children:"Pay now & keep domain"})}),(0,t.jsx)(S.SecondaryButton,{intent:"danger",size:"lg",loading:u,onClick:()=>{o("delete")},children:"Delete domain"})]});case _.DomainStatus.CONNECTING:case _.DomainStatus.ACTIVE:return(0,t.jsx)("div",{children:(0,t.jsx)(S.SecondaryButton,{as:v.default,href:"/domains/manage",onClick:()=>{(0,I.gtm)({event:"clickManageDomain",host:s?.domain?.host})},className:"w-full",size:"lg",children:"Manage"})});case _.DomainStatus.LOADING:return null;default:return(0,C.expectNever)(g)}},[s?.domain?.host,p,g,u]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(O,{title:s?.domain?.host,description:x,status:g,actions:f}),"pricing"===l&&(0,t.jsx)(w.PricingDialog,{onDismiss:()=>o("none")}),"delete"===l&&(0,t.jsx)(N.AreYouSureDialog,{title:"Delete domain?",content:(0,t.jsxs)(t.Fragment,{children:["Your domain is past due, so it'll expire immediately. ",(0,t.jsx)("br",{})," ","Others will be able to buy it right away."]}),yesText:"Delete",onYes:()=>{c({status:"canceled"},{onSuccess:()=>{s&&(h.site.find.setData(e,{...s,domain:null}),o("none"))}})},noText:"Keep domain",onNo:()=>{o("none")}}),"renew_disable"===l&&(0,t.jsx)(N.AreYouSureDialog,{title:"Turn off domain renew
2al?",content:`Your domain will expire on ${(0,L.formatISOString)(s?.domain?.expiresAt)} - after that, others will be able to purchase and use it. Are you sure?`,noText:"Keep renewal on",onNo:()=>{o("none")},yesText:"Turn off",onYes:()=>{p()}}),"renew_enable"===l&&(0,t.jsx)(F,{price:(s?.domain?.subscription?.unit_amount??0)/100,onDismiss:()=>{o("none")}})]})}function U({showActions:e=!0}){let a=(0,d.useCurrentSiteId)(),s=(0,m.useSite)(a).data,{data:n,isLoading:r}=(0,P.useActiveSubscriptions)(),l=(0,i.useMemo)(()=>r?_.DomainStatus.LOADING:n?.activeProductSubscription?.cancel_at_period_end&&n?.activeProductSubscription?.status!=="trialing"?_.DomainStatus.WILL_REVERT_TO_DEFAULT:_.DomainStatus.ACTIVE,[n,r]),o=(0,i.useMemo)(()=>{if(!e)return null;switch(l){case _.DomainStatus.ACTIVE:return(0,t.jsx)(v.default,{passHref:!0,href:"/domains/slug",legacyBehavior:!0,children:(0,t.jsx)(S.SecondaryButton,{size:"lg",as:"a",children:"Edit"})});case _.DomainStatus.WILL_REVERT_TO_DEFAULT:return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.default,{passHref:!0,href:"/settings",legacyBehavior:!0,children:(0,t.jsx)(y.PrimaryButton,{size:"lg",as:"a",children:"Resume Premium"})}),(0,t.jsx)(v.default,{passHref:!0,href:"/domains/slug",legacyBehavior:!0,children:(0,t.jsx)(S.SecondaryButton,{size:"lg",as:"a",children:"Edit"})})]});case _.DomainStatus.LOADING:return null;default:return(0,C.expectNever)(l)}},[e,l]);return(0,t.jsx)(O,{title:`${D.PRODUCT_URL}/v/${s.slug}`,description:`${D.PRODUCT_NAME} URL`,status:l,actions:o})}e.s(["DomainPanel",0,function(){let e=(0,d.useCurrentSiteId)(),i=(0,m.useSite)(e).data,[a]=(0,T.useSession)(),s=a?.user.subscriptionType==="PREMIUM";return(0,t.jsxs)(x.SidebarPanel,{children:[(0,t.jsx)(g.SidebarHeader,{title:`Domains (${i.domain||i.externalDomain?2:1})`,description:"Manage your domains."}),(0,t.jsx)(g.SidebarContent,{children:(0,t.jsxs)("div",{className:"space-y-8 p-6",children:[!s&&(0,t.jsx)(j.TipsBanner.DomainNotPublished,{}),(0,t.jsxs)("div",{className:(0,b.default)("space-y-12",!s&&"pointer-events-none opacity-40"),children:[!(i.domain||i.externalDomain)&&(0,t.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,t.jsx)("h3",{className:"font-bold text-graphite-60",children:"How about a custom domain?"}),(0,t.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,t.jsx)(v.default,{passHref:!0,href:"/domains/internal",legacyBehavior:!0,children:(0,t.jsx)(y.PrimaryButton,{size:"lg",as:"a",disabled:!s,children:"Get a new domain"})}),(0,t.jsx)(v.default,{passHref:!0,href:"/domains/external",legacyBehavior:!0,children:(0,t.jsx)(S.SecondaryButton,{size:"lg",as:"a",disabled:!s,children:"Connect a domain you own"})})]})]}),(0,t.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,t.jsx)("h3",{className:"font-bold text-graphite-60",children:"Currently in use"}),i.domain&&(0,t.jsx)(z,{}),i.externalDomain&&(0,t.jsx)(k,{}),(0,t.jsx)(U,{})]}),s&&(0,t.jsxs)("div",{className:"flex flex-col space-y-4 pb-[128px]",children:[(0,t.jsx)("h3",{className:"font-bold text-graphite-60",children:"Feeling lost?"}),(0,t.jsx)("p",{className:"text-graphite-60",children:"Send a message to our support team to get help with domains."})]})]})]})}),(0,t.jsx)(g.PremiumFeatureSidebarFooter,{})]})}],631006);var W=e.i(907873);e.i(311727);var G=e.i(157823);e.s(["LockFilled",()=>G.default],852713);var G=G;e.s(["LockedBadge",0,function(){return(0,t.jsx)(W.FilledBadge,{intent:"success",className:"h-5 px-0 py-0.5",children:(0,t.jsx)(G.default,{className:"w-6 text-violet-40"})})}],713572);var H=e.i(834922);e.s(["Cookies",()=>H.default],410398);var Y=e.i(8494);e.s(["Ga4",()=>Y.default],924399);var V=e.i(579080);e.s(["Key",()=>V.default],371624)},335999,e=>{"use strict";var t=e.i(391398),i=e.i(313974),a=e.i(191788),s=e.i(706432),n=e.i(931245),r=e.i(276564),l=e.i(342313),o=e.i(875038),c=e.i(137865),d=e.i(396412),u=e.i(773320),h=e.i(500955),m=e.i(243359),p=e.i(172512),g=e.i(160323),x=e.i(183664),f=e.i(480767),b=e.i(855573),v=e.i(92302),j=e.i(276469),y=e.i(213185),S=e.i(922895),C=e.i(791941),N=e.i(388890),w=e.i(113532);function D({children:e}){return(0,t.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-lg shadow-soft-md",children:e})}e.s(["FaviconPanel",0,function(){let[e,P]=a.useState(null),[E]=(0,j.use
2Session)(),T=(0,n.fullNameGuess)(E?.user,i.PRODUCT_NAME),{data:I}=(0,S.useSubscriptionType)(),_=(0,g.useCurrentSiteId)(),O=(0,y.useSite)(_).data,{mutateAsync:k}=(0,b.useUpdateSite)(),{mutateAsync:L}=(0,f.useCreateFile)({path:e=>e.name}),{setPendingQueryData:A,removePendingQueries:B,setPendingMutation:M}=(0,x.usePendingChangesMutation)(),F=(0,v.useCanUpdateFavicon)(),R=async e=>{let t=document.querySelector(`[aria-label="favicon-preview-${e}"]`);if(!t)throw Error(`Missing favicon preset: ${e}`);let i=await (0,u.createFaviconFromElement)(t,`favicon-${e}`),a=await L(i);return{originalWidth:s.FAVICON_SIZE,originalHeight:s.FAVICON_SIZE,src:a,preset:e}},z=async e=>{let t="string"==typeof e;M([async()=>F()?(await k({id:_,favicon:t?await R(e):e},{onSuccess:()=>{(0,C.gtm)({event:"updateFavicon",faviconPreset:t?e:"custom"})}}),!0):((0,C.gtm)({event:"openPricingDialog",from:"Favicon"}),!1),()=>{let i=(0,r.getQueryKey)("site.find",_);return A(i,{...O,favicon:null===e?null:{...O.favicon,...t?{}:e,preset:t?e:e?.preset}}),()=>{B(i)}}])};return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(w.SidebarPanel,{children:[(0,t.jsx)(N.SidebarHeader,{title:"Browser icon",description:"Change your site's favicon."}),(0,t.jsxs)(N.SidebarContent,{children:[(0,t.jsxs)("div",{className:"space-y-4 p-6",children:["FREE"===I&&(0,t.jsx)(l.TipsBanner.PreviewOnly,{}),(0,t.jsx)(m.BrowserTab,{favicon:e||O.favicon?.preset?{preset:e??O.favicon.preset}:{src:(0,s.getFaviconSrc)(O.favicon)},title:T}),(0,t.jsx)("p",{className:"text-graphite-40",children:"This is what your site's browser tabs will look like."})]}),(0,t.jsxs)(o.Settings.Root,{defaultTab:O.favicon?.preset===null?"custom":"presets",title:null,children:[(0,t.jsx)(o.Settings.Tab,{tab:"presets",children:(0,t.jsxs)(o.Settings.List,{value:e??O.favicon?.preset??s.DEFAULT_FAVICON_SRC,onChange:e=>{e===s.DEFAULT_FAVICON_SRC?(P(null),z(null)):(P(e),z(e))},children:[(0,t.jsx)(o.Settings.List.Item,{trailing:(0,t.jsx)(D,{children:(0,t.jsx)(d.Logo,{className:"h-8 w-8"})}),value:s.DEFAULT_FAVICON_SRC,children:"Default"}),["simple","circle","floral"].map(e=>(0,t.jsx)(o.Settings.List.Item,{trailing:(0,t.jsx)(D,{children:(0,t.jsx)(p.Favicon,{preset:e})}),value:e,children:(0,h.titleCase)(e)},`favicon-preset-${e}`))]})}),(0,t.jsx)(o.Settings.Tab,{tab:"custom",children:(0,t.jsx)(c.SettingsMediaUpload,{label:"Upload custom icon",description:`Use PNG or SVG files in ${s.FAVICON_SIZE}x${s.FAVICON_SIZE}px size for your custom icon.`,value:O.favicon?.preset||O.favicon?.src===s.DEFAULT_FAVICON_SRC?null:O.favicon,onChange:e=>{P(null),z(e?{...e,preset:null}:null)},dialogProps:{showPexels:!1,title:"Change browser icon",description:"Go for a square-shaped PNG or SVG file with a transparent background for the best result.",cropOptions:{aspectRatio:1,dialog:{title:"Crop browser icon",saveText:"Crop"},resize:[s.FAVICON_SIZE,s.FAVICON_SIZE],image:O.favicon&&!O.favicon.preset?O.favicon:void 0}}})})]})]}),(0,t.jsx)(N.PremiumFeatureSidebarFooter,{flow:"save"})]})})}])},333512,e=>{"use strict";var t=e.i(391398),i=e.i(713572);e.i(311727);var a=e.i(410398),s=e.i(924399),n=e.i(213060),r=e.i(371624),l=e.i(567897);e.i(881666);var o=e.i(447921),c=e.i(883897),d=e.i(877992),u=e.i(441968),h=e.i(345837),m=e.i(191788);function p({children:e,separator:i=(0,t.jsx)("div",{className:"h-px w-full bg-graphite-10"})}){let a=m.default.Children.count(e);return m.default.Children.map(e,(e,s)=>(0,t.jsxs)(t.Fragment,{children:[e,s!==a-1?(0,t.jsx)(t.Fragment,{children:i}):null]}))}var g=e.i(329849),x=e.i(276469),f=e.i(388890),b=e.i(113532);e.s(["InitialPanel",0,function(){let[e]=(0,h.useDrilldown)(),[m]=(0,x.useSession)(),v=m?.user.subscriptionType==="PREMIUM";return(0,t.jsxs)(b.SidebarPanel,{children:[(0,t.jsx)(f.SidebarHeader,{title:"Settings",description:"Configure advanced settings.",noExit:!0}),(0,t.jsxs)(f.SidebarContent,{children:[(0,t.jsx)("div",{className:"p-6",children:(0,t.jsx)(u.DomainCard,{})}),(0,t.jsxs)(p,{children:[(0,t.jsx)(d.SettingsCategoryCard,{title:"Domains",subtitle:"Connect or buy a custom domain",icon:(0,t.jsx)(n.Globe,{}),trailing:!v&&(0,t.jsx)(i.LockedBadge,{}),onClick:()=>e("DOMAIN")},"domains"),(0,t.jsx)(d.SettingsCategoryCard,{title:"Privacy",subtitle:"Change your site’s visibility",trailing:!v&&(0,t.jsx)(i.LockedBadge,{}),icon:(0,t.jsx)(r.Key,{}),onClick:()=>e("PRIVACY")},"privacy"),(0,t.jsx)(d.SettingsCategoryCard,{title:"Search Engine Optimization",subtitle:"Set meta titles and descriptions",icon:(0,t.jsx)(l.Seo,{}),onClick:()=>e("SEO")},"seo"),(0,t.jsx)(d.SettingsCategoryCard,{title:"Browser icon",subtitle:"Customize your site’s favicon",icon:(0,t.jsx)(o.IconBrowserTab,{}),onClick:()=>e("FAVICON")},"favicon"),(0,t.jsx)(d.SettingsCategoryCard,{title:`${g.PRODUCT_NAME} banner`,subtitle:`Show or hide the ${g.PRODUCT_NAME} branding`,icon:(0,t.jsx)(c.IconSparkles,{}),onClick:()=>e("BRANDING")},"banner"),(0,t.jsx)(d.SettingsCategoryCard,{title:"Google Analytics",trailing:(0,t.jsxs)("span",{className:"flex items-center gap-1 font-bold text-violet-40 text-xs",children:[(0,t.jsx)(c.IconSparkles,{className:"size-4"})," NEW"]}),subtitle:"Connect Google Analytics 4",icon:(0,t.jsx)(s.Ga4,{}),onClick:()=>e("ANALYTICS")},"ga4"),(0,t.jsx)(d.SettingsCategoryCard,{title:"Cookie banner",subtitle:"Let visitors pick their cookies",icon:(0,t.jsx)(a.Cookies,{}),onClick:()=>e("COOKIE")},"cookie")]})]})]})}],333512)},457915,961948,e=>{"use strict";var t=e.i(391398),i=e.i(407464),a=e.i(191788),s=e.i(307982),n=e.i(342313),r=e.i(710867);function l({onClick:e,checked:a,title:s,description:n,icon:o,children:c}){return(0,t.jsx)(r.CardButton,{role:"radio","aria-checked":a,onClick:e,children:(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between space-x-4",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("div",{className:(0,i.default)("font-bold tracking-[0.01em]",a?"text-gra
2phite-100":"text-graphite-60"),children:s}),(0,t.jsx)("div",{className:"text-graphite-40 leading-6",children:n})]}),(0,t.jsx)("div",{className:"rounded-full border border-graphite-10 p-[10px]",children:(0,t.jsx)(o,{className:(0,i.default)("h-6",a?"text-graphite-100":"text-graphite-60")})})]}),c]})})}var o=e.i(942165),c=e.i(871468),d=e.i(500955),u=e.i(821384);e.i(881666);var h=e.i(149149),m=e.i(220826),p=e.i(448836),g=e.i(589310),x=e.i(322797),f=e.i(589876);e.i(311727);var b=e.i(70340);let v=u.z.object({password:u.z.string().min(2,"Keep going, we'll need at least 2 characters here.").max(25)});function j({entity:e="site",onDismiss:i,flow:s="add",onSave:n,value:r,onRemove:l}){let u=(0,c.useForm)({resolver:(0,o.standardSchemaResolver)(v),shouldUnregister:!0}),[y,S]=(0,a.useState)(!1);return(0,t.jsxs)(f.Dialog,{"data-testid":"password-protection-dialog",size:"sm",onDismiss:i,children:[(0,t.jsx)(f.DialogHeader,{children:(0,t.jsxs)(f.Dialog.Title,{children:["edit"===s?"Edit":"Add"," password protection"]})}),(0,t.jsxs)(f.Dialog.Content,{as:"form",noValidate:!0,id:"add-password-protection",onSubmit:u.handleSubmit(e=>{n&&n(e.password)}),children:[(0,t.jsx)("div",{className:"flex w-full items-end gap-2",children:(0,t.jsx)(x.LabeledInput,{label:`${(0,d.capitalize)(e)} password`,autoFocus:!0,autoComplete:"off",placeholder:"Str*ng_Passw0rd42",className:"flex-1",...u.register("password"),error:u.formState.errors.password?.message,type:y?"text":"password",defaultValue:"edit"===s?r??"":"",maxLength:25,rightIcon:y?(0,t.jsx)(b.EyeOff,{onClick:()=>S(!1),className:"h-6 cursor-pointer text-graphite-60"}):(0,t.jsx)(h.IconEye,{onClick:()=>S(!0),className:"h-6 cursor-pointer text-graphite-60"})})}),(0,t.jsxs)(m.Alert,{children:["Your ",e," can only be opened with the link and the password."]})]}),(0,t.jsxs)(f.DialogActions,{children:["add"!==s&&l?(0,t.jsx)(g.SecondaryButton,{intent:"danger",size:"lg",onClick:l,children:"Remove password"}):(0,t.jsx)(g.SecondaryButton,{size:"lg",form:"add-password-protection",onClick:i,children:"Cancel"}),(0,t.jsx)(p.PrimaryButton,{size:"lg",type:"submit",form:"add-password-protection",children:"Save"})]})]})}e.s(["UpdatePrivacyPasswordDialog",0,j],961948);var y=e.i(213060),S=e.i(453098),C=e.i(740853),N=e.i(996153),w=e.i(788056),D=e.i(978137),P=e.i(160323),E=e.i(855573),T=e.i(276469),I=e.i(213185),_=e.i(276564),O=e.i(791941),k=e.i(388890),L=e.i(113532);function A({privacy:e,password:i,onUpdate:n}
2){let[r,o]=a.useState(null);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(l,{onClick:()=>{"PUBLIC"!==e&&o("public")},checked:"PUBLIC"===e,title:"Public",description:"Anyone can find or visit your site on the web.",icon:y.Globe}),(0,t.jsx)(l,{onClick:()=>{"NOT_INDEXED"!==e&&o("not_indexed")},checked:"NOT_INDEXED"===e,title:"Hidden",description:"Your site can only be visited with the link.",icon:b.EyeOff}),(0,t.jsx)(l,{onClick:()=>{"PASSWORD_PROTECTED"!==e&&o("password_protected")},checked:"PASSWORD_PROTECTED"===e,title:"Password protected",description:"Visitors will need the link and the password.",icon:S.Lock,children:"PASSWORD_PROTECTED"===e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-px w-full bg-graphite-10"}),(0,t.jsxs)("div",{className:"flex items-center justify-start gap-2",children:[(0,t.jsxs)(w.TertiaryButton,{intent:"neutral",shape:"pill",size:"xs",onClick:async()=>{i&&(await navigator.clipboard.writeText(i),(0,s.default)((0,t.jsx)(D.Toast,{icon:(0,t.jsx)(S.Lock,{}),children:"Website password copied to your clipboard"}),{duration:4e3}))},className:"gap-1",children:[(0,t.jsx)(N.default,{className:"h-4 shrink-0"}),(0,t.jsx)("span",{children:"Copy"})]}),(0,t.jsxs)(w.TertiaryButton,{intent:"subtle",shape:"pill",size:"xs",onClick:()=>o("edit_password"),className:"gap-1",children:[(0,t.jsx)(C.Pencil,{className:"h-4 shrink-0"}),(0,t.jsx)("span",{children:"Edit"})]})]})]})})]}),"public"===r&&(0,t.jsx)(f.Dialog,{size:"sm",onDismiss:()=>{o(null)},children:(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("div",{className:"text-center font-bold text-2xl text-gra
2phite-100",children:"Set your site to public?"}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{className:"text-center text-graphite-60",children:"Your site will show up on Google or other search engines and anyone will be able to see it."}),(0,t.jsx)(m.Alert,{children:"Search engines might take up to several days to show your website again."})]})]}),(0,t.jsxs)(f.DialogActions,{children:[(0,t.jsx)(g.SecondaryButton,{size:"lg",onClick:()=>o(null),children:"Cancel"}),(0,t.jsx)(p.PrimaryButton,{size:"lg",onClick:()=>{n({privacy:"PUBLIC"}),o(null)},children:"Set to public"})]})]})}),"not_indexed"===r&&(0,t.jsx)(f.Dialog,{size:"sm",onDismiss:()=>o(null),children:(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("div",{className:"text-center font-bold text-2xl text-graphite-100",children:"Hide your site from search?"}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{className:"text-center text-graphite-60",children:"Google or other search engines won't list your site. Visitors will be able to see it with the link."}),(0,t.jsx)(m.Alert,{children:"Search engines might take up to several days to hide your website."})]})]}),(0,t.jsxs)(f.DialogActions,{children:[(0,t.jsx)(g.SecondaryButton,{size:"lg",onClick:()=>o(null),children:"Cancel"}),(0,t.jsx)(p.PrimaryButton,{size:"lg",onClick:()=>{n({privacy:"NOT_INDEXED"}),o(null)},children:"Set to hidden"})]})]})}),("password_protected"===r||"edit_password"===r)&&(0,t.jsx)(j,{onDismiss:()=>o(null),entity:"site",value:i,flow:"edit_password"===r?"edit":"add",onSave:e=>{n({privacy:"PASSWORD_PROTECTED",privacyPassword:e}),o(null)}})]})}e.s(["PrivacyPanel",0,function(){let[e]=(0,T.useSession)(),a=(0,P.useCurrentSiteId)(),s=(0,I.useSite)(a).data,{mutate:r}=(0,E.useUpdateSite)({publishOnSuccess:!0}),{data:l,refetch:o}=_.trpc.site.privacyPassword.useQuery(a),c=e?.user.subscriptionType==="PREMIUM";return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(L.SidebarPanel,{children:[(0,t.jsx)(k.SidebarHeader,{title:"Privacy",description:"Control your site's privacy."}),(0,t.jsx)(k.SidebarContent,{children:(0,t.jsxs)("div",{className:"space-y-8 p-6",children:[!c&&(0,t.jsx)(n.TipsBanner.PrivacyNotPublished,{}),(0,t.jsxs)("div",{className:(0,i.default)("space-y-4",!c&&"pointer-events-none opacity-40"),children:[c&&(0,t.jsx)("div",{className:"font-bold text-graphite-60",children:"Site visibility"}),(0,t.jsx)(A,{privacy:s.privacy,password:l??null,onUpdate:e=>{if(r({id:a,...e},{onSuccess:()=>{"PASSWORD_PROTECTED"===e.privacy&&o()}}),e.privacy!==s.privacy)switch(e.privacy){case"PUBLIC":(0,O.gtm)({event:"updateVisibilityToPublic"});break;case"NOT_INDEXED":(0,O.gtm)({event:"updateVisibilityToPrivate"});break;case"PASSWORD_PROTECTED":(0,O.gtm)({event:"updateVisibilityToPasswordProtected"})}}})]})]})})]})})}],457915)},209945,e=>{"use strict";var t=e.i(391398),i=e.i(80122),a=e.i(56206),s=e.i(41158),n=e.i(191788),r=e.i(730943),l=e.i(871468),o=e.i(955592);e.i(311727);var c=e.i(924193),d=e.i(793887),u=e.i(916601),h=e.i(72877),m=e.i(63496),p=e.i(663381),g=e.i(448836),x=e.i(589310),f=e.i(788056),b=e.i(922549),v=e.i(322797),j=e.i(366083),y=e.i(740789),S=e.i(336185),C=e.i(249298),N=e.i(329849),w=e.i(645271),D=e.i(600020),P=e.i(275309),E=e.i(756060),T=e.i(276469),I=e.i(517836),_=e.i(791941),O=e.i(589876),k=e.i(823126),L=e.i(217879),A=e.i(388890),B=e.i(162244),M=e.i(113532);function F(){return(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:"Need help? "})," Check our"," ",(0,t.jsx)(s.default,{href:"https://blog.copyfol.io/beginner-seo-guide",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"SEO guide"}),"."]})}function R({value:e,onChange:i,disabled:s}){let[r,l]=(0,n.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("div",{className:(0,a.default)("font-bold text-xs tracking-[0.01em]",s?"text-graphite-20":"text-graphite-40"),children:"Social media image"}),(0,t.jsxs)(y.MediaOverlayGroup,{children:[(0,t.jsx)("div",{className:(0,a.default)("relative h-44 rounded ring-1 ring-graphite-10",!e&&"bg-graphite-5"),children:e&&(0,t.jsx)(b.ImageView,{src:e.src,originalWidth:e.originalWidth,originalHeight:e.originalHeight,layout:"fill",objectFit:"cover",contain:!1,mockup:void 0,className:"rounded"})}),(0,t.jsx)(y.MediaOverlay,{alwaysVisible:!0,rounded:"default",children:(0,t.jsx)(y.MediaOverlayItem,{alwaysVisible:!0,placement:"center",children:(0,t.jsx)("div",{className:"flex flex-col items-center justify-center space-y-2",children:e&&!s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f.TertiaryButton,{intent:"neutral",size:"xs",shape:"pill",className:"pointer-events-auto",onClick:()=>{l(!0)},children:(0,t.jsxs)("span",{className:"inline-flex items-center space-x-1",children:[(0,t.jsx)(h.default,{"aria-hidden":!0,
2className:"h-4"}),(0,t.jsx)("span",{className:"uppercase",children:"change"})]})}),(0,t.jsx)(f.TertiaryButton,{size:"xs",shape:"pill",className:"pointer-events-auto",intent:"danger",onClick:()=>{i(null)},children:(0,t.jsxs)("span",{className:"inline-flex items-center space-x-1",children:[(0,t.jsx)(c.Delete,{"aria-hidden":!0,className:"h-4"}),(0,t.jsx)("span",{className:"uppercase",children:"remove"})]})})]}):(0,t.jsx)(f.TertiaryButton,{intent:"neutral",disabled:s,size:"xs",shape:"pill",className:(0,a.default)("pointer-events-auto",s&&"shadow-hard-md"),onClick:()=>{l(!0)},children:(0,t.jsxs)("span",{className:"inline-flex items-center space-x-1",children:[(0,t.jsx)(h.default,{"aria-hidden":!0,className:"h-4"}),(0,t.jsx)("span",{className:"uppercase",children:"set"})]})})})})})]}),(0,t.jsx)("p",{className:"text-graphite-40",children:"This will appear when you share your page on social media."})]}),r&&(0,t.jsx)(L.ImageUploadDialog,{title:"Change social media image",description:"Use a wide, landscape image for the perfect fit, for example 1600x900px.",showPexels:!1,onDismiss:()=>{l(!1)},onUploadComplete:i})]})}let z=o.PageSchema.shape.seo.extend({slug:o.PageSlugSchema});function U({pageId:e,onDismiss:a}){let{mutate:s,isPending:o}=(0,w.useUpdatePage)(),[c]=(0,T.useSession)({required:!0}),u=(0,D.useCanChangeSEOSettings)(),h=(0,P.usePage)(e).data,[p,f]=(0,n.useState)(!1),[b,y]=(0,I.useCookieState)("HIDE_SEO_GUIDE",Boolean),[C,O]=(0,n.useState)(!1),L=(0,l.useForm)({resolver:(0,i.standardSchemaResolver)(z)}),A=L.watch(),B=(0,n.useRef)(null),{ref:M,...W}=L.register("slug");(0,n.useEffect)(()=>{h&&!C&&(L.reset({title:h.seo.title,description:h.seo.description,image:h.seo.image,slug:"HOME"===h.type?null:h.slug}),O(!0))},[h,L,C,O]);let G=e=>{h&&s({...h,seo:{...h.seo,title:e.title,description:e.description,image:e.image},slug:e.slug??void 0},{onError:()=>{L.setError("slug",{message:"There's already a page on your site with this URL."}),B.current?.scrollIntoView({behavior:"smooth",block:"center"})},onSuccess:()=>{(0,_.gtm)({event:"updateSeoSettings"}),a?.()}})};return(0,t.jsxs)(t.Fragment,{children:[(0,r.createPortal)((0,t.jsx)("div",{className:"fixed top-[80px] bottom-4 left-4 z-30 flex animate-slide-right rounded-lg bg-graphite-0 shadow-soft-xl ring-1 ring-graphite-5",children:(0,t.jsxs)("form",{className:"flex h-full w-[354px] flex-col divide-y",onSubmit:e=>{(e.preventDefault(),u())?L.handleSubmit(G)():(0,_.gtm)({event:"openPricingDialog",from:"SEO"})},children:[(0,t.jsxs)("div",{className:"divide-y",children:[(0,t.jsxs)("div",{className:"space-y-3 p-6",children:[(0,t.jsx)(S.Popover.Header,{primitive:!0,onClose:a,title:"SEO settings"}),(0,t.jsxs)("p",{className:"truncate text-graphite-40",children:[h?.title,h&&(0,d.isIndividualPage)(h)?" page":""]})]}),(0,t.jsx)(m.SubscriptionPromptAlertBar,{gtmOrigin:"SEO",premiumMessage:N.IS_ARCHIFOLIO||b?void 0:(0,t.jsx)(F,{}),onDismiss:()=>y(!0)})]}),(0,t.jsxs)("div",{className:"flex-1 space-y-8 overflow-auto p-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(v.LabeledInput,{label:"Meta title",placeholder:"About - Jamie Wright",...L.register("title"),status:(0,E.evaluatePageSEOTitle)(A.title??"",`${c.user.givenName} ${c.user.familyName}`),statusComment:{warning:"Add relevant keywords to your title like your name, niche, and profession.",success:"Nice! You customized your title, now people will know what the page is about."},error:L.formState.errors.title?.message,maxLength:100}),(0,t.jsx)("p",{className:"text-graphite-40",children:"This will appear in your browser tab."})]}),(0,t.jsx)("div",{className:"space-y-3",children:h&&"HOME"!==h.type?(0,t.jsx)(v.LabeledInput,{prefix:"/",placeholder:"about",label:"URL slug",disabled:!h,...W,ref:e=>{B.current=e,M(e)},status:h?(0,E.evaluatePageSEOSlug)({...h,slug:A.slug??""}):"warning",statusComment:{warning:"Keep your URL slug within three words for the optimal SEO performance.",success:"Looking good, your URL is short and to-the-point, as it should be."},error:L.formState.errors.slug?.message,maxLength:40}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.LabeledInput,{prefix:"/",value:"",label:"URL slug",disabled:!0}
2),(0,t.jsx)("p",{className:"text-graphite-40",children:"Your home page doesn't have a URL slug."})]})}),(0,t.jsx)(v.LabeledInput,{...L.register("description"),inputAs:j.TextArea,size:"1.5xl",label:"Meta description",placeholder:"Describe your page in a few words",status:(0,E.evaluatePageSEODescription)(A.description??""),statusComment:{warning:`Write a description between ${E.SEO_DESCRIPTION_MIN_LENGTH} and ${E.SEO_DESCRIPTION_MAX_LENGTH} characters & include relevant keywords.`,success:`Perfect! Descriptions between ${E.SEO_DESCRIPTION_MIN_LENGTH} and ${E.SEO_DESCRIPTION_MAX_LENGTH} characters perform the best.`},error:L.formState.errors.description?.message,maxLength:300}),(0,t.jsx)(l.Controller,{control:L.control,name:"image",render:({field:{onChange:e,value:i}})=>(0,t.jsx)(R,{value:i,onChange:e})})]}),L.formState.isDirty&&(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-6 p-6",children:[(0,t.jsx)(x.SecondaryButton,{onClick:()=>{L.formState.isDirty?f(!0):a?.()},children:"Cancel"}),(0,t.jsx)(g.PrimaryButton,{loading:L.formState.isSubmitting||o,type:"submit",children:"Save"})]})]})}),document.body),p&&(0,t.jsx)(k.AreYouSureDialog,{title:"What about your changes?",content:(0,t.jsxs)("p",{children:["You've made a few changes but didn't save them.",(0,t.jsx)("br",{}),"What should happen before you quit?"]}),yesText:"Save changes",noText:"Discard",onYes:()=>{u()?(L.handleSubmit(G)(),f(!1)):(0,_.gtm)({event:"openPricingDialog",from:"SEO"})},onNo:a})]})}e.s(["PageSEOSettingsDialog",0,U,"SEOPanel",0,function(){let{pages:e,stats:{totalNumberOfPages:i}}=(0,E.useSEOPages)(),[s,r]=(0,n.useState)(null),[l,o]=(0,I.useCookieState)("HIDE_SEO_GUIDE",Boolean);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(M.SidebarPanel,{children:[(0,t.jsx)(A.SidebarHeader,{title:"SEO",description:"Optimize your pages for search."}),(0,t.jsx)(m.SubscriptionPromptAlertBar,{premiumMessage:N.IS_ARCHIFOLIO||l?void 0:(0,t.jsx)(F,{}),onDismiss:()=>o(!0),gtmOrigin:"SEO"}),(0,t.jsx)(A.SidebarContent,{children:(0,t.jsxs)("div",{className:"space-y-12 p-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{className:"font-bold text-graphite-60",children:"Overview"}),(0,t.jsxs)("div",{className:"flex items-center space-x-6",children:[(0,t.jsx)("span",{children:(0,t.jsx)(C.SEOProgress,{})}),(0,t.jsxs)("p",{className:"text-graphite-40",children:[i>1?"pages":"page"," have meta titles, descriptions & URLs set up"]})]})]}),[{title:"Pages",subset:e.filter(e=>(0,d.isIndividualPage)(e))},{title:N.IS_ARCHIFOLIO?"Portfolio":"Projects",subset:e.filter(e=>"PROJECT"===e.type)},{title:"Blog posts",subset:e.filter(e=>"BLOG_POST"===e.type)}].map(({title:e,subset:i})=>i.length>0&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{className:"font-bold text-graphite-60",children:e}),(0,t.jsx)("ul",{className:"space-y-4",children:i.map(e=>(0,t.jsxs)("li",{className:"group flex h-[76px] items-center justify-center rounded border border-graphite-10 px-6 hover:shadow-soft-lg",children:[(0,t.jsx)("div",{className:(0,a.default)("h-2 w-2 rounded-full outline outline-4 outline-offset-0 group-hover:outline-8","success"===e.seoEvaluation.overall?"bg-emerald-40 outline-emerald-5":"bg-amber-40 outline-amber-5")}),(0,t.jsx)("div",{className:"flex-1 truncate pr-2 pl-4",children:e.title}),(0,t.jsx)("div",{className:"opacity-0 group-hover:opacity-100",children:(0,t.jsx)(B.Tooltip,{content:"Edit metadata",children:(0,t.jsx)(p.FloatingButton,{shape:"rounded-square",onClick:()=>{r(e.id)},size:"xs",...O.dialogOpenerButtonProps,children:(0,t.jsx)(u.default,{className:"h-6"})})})})]},e.id))})]},e))]})})]}),s&&(0,t.jsx)(U,{pageId:s,onDismiss:()=>{r(null)}})]})}])},13751,e=>{"use strict";var t=e.i(350461),i=e.i(797768),a=e.i(313974),s=e.i(191788),n=e.i(877163),r=e.i(160323),l=e.i(275309),o=e.i(213185);let c=i.__DEV__?t.default.env.VERCEL_URL??"localhost:3000":a.PRODUCT_URL,d=i.__DEV__?"http://":"https://";e.s(["useCurrentUrl",0,function(){let e=(0,r.useCurrentSiteId)(),t=(0,n.useCurrentPageId)(),{data:i}=(0,o.useSite)(e),{data:a}=(0,l.usePage)(t);return(0,s.useMemo)(()=>
2{if(!i)return{url:"",base:"",baseWithPath:"",urlWithPath:"",host:void 0};let e=a?.slug?`/${a.slug}`:"",t=i.domain?.host??i.externalDomain?.host,s=t??`${c}/v/${i.slug}`;return{base:s,baseWithPath:`${s}${e}`,url:`${d}${s}`,urlWithPath:`${d}${s}${e}`,host:t}},[i,a])}])},922895,e=>{"use strict";var t=e.i(276564);e.s(["useSubscriptionType",0,function(){return t.trpc.user.subscriptionType.useQuery()}])},792042,550216,527861,e=>{"use strict";let t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(e){return (t={})=>{let i=t.width?String(t.width):e.defaultWidth;return e.formats[i]||e.formats[e.defaultWidth]}}let a={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function n(e){return(t,i)=>{let a;if("formatting"===(i?.context?String(i.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,s=i?.width?String(i.width):t;a=e.formattingValues[s]||e.formattingValues[t]}else{let t=e.defaultWidth,s=i?.width?String(i.width):e.defaultWidth;a=e.values[s]||e.values[t]}return a[e.argumentCallback?e.argumentCallback(t):t]}}function r(e){return(t,i={})=>{let a,s=i.width,n=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],r=t.match(n);if(!r)return null;let l=r[0],o=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(o)?function(e,t){for(let i=0;i<e.length;i++)if(t(e[i]))return i}(o,e=>e.test(l)):function(e,t){for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t(e[i]))return i}(o,e=>e.test(l));return a=e.valueCallback?e.valueCallback(c):c,{value:a=i.valueCallback?i.valueCallback(a):a,rest:t.slice(l.length)}}}let l={code:"en-US",formatDistance:(e,i,a)=>{let s,n=t[e];if(s="string"==typeof n?n:1===i?n.one:n.other.replace("{{count}}",i.toString()),a?.addSuffix)if(a.comparison&&a.comparison>0)return"in "+s;else return s+" ago";return s},formatLong:a,formatRelative:(e,t,i,a)=>s[e],localize:{ordinalNumber:(e,t)=>{let i=Number(e),a=i%100;if(a>20||a<10)switch(a%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:n({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:n({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:n({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:n({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:n({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(d={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{let i=e.match(d.matchPattern);if(!i)return null;let a=i[0],s=e.match(d.parsePattern);if(!s)return null;let n=d.valueCallback?d.valueCallback(s[0]):s[0];return{value:n=t.valueCallback?t.valueCallback(n):n,rest:e.slice(a.length)}}),era:r({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:r({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:r({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:r({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:r({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};e.s(["defaultLocale",0,l],550216);let o={};function c(){return o}e.s(["getDefaultOptions",0,c],527861);var d,u=e.i(782415),h=e.i(635113),m=e.i(402848);function p(e,t){let i=c(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=(0,h.toDate)(e,t?.in),n=s.getDay();return s.setDate(s.getDate()-(7*(n<a)+n-a)),s.setHours(0,0,0,0),s}function g(e,t){return p(e,{...t,weekStartsOn:1})}var x=e.i(498170);function f(e,t){let i=(0,h.toDate)(e,t?.in),a=i.getFullYear(),s=(0,x.constructFrom)(i,0);s.setFullYear(a+1,0,4),s.setHours(0,0,0,0);let n=g(s),r=(0,x.constructFrom)(i,0);r.setFullYear(a,0,4),r.setHours(0,0,0,0);let l=g(r);return i.getTime()>=n.getTime()?a+1:i.getTime()>=l.getTime()?a:a-1}function b(e,t){let i=(0,h.toDate)(e,t?.in),a=i.getFullYear(),s=c(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,r=(0,x.constructFrom)(t?.in||e,0);r.setFullYear(a+1,0,n),r.setHours(0,0,0,0);let l=p(r,t),o=(0,x.constructFrom)(t?.in||e,0);o.setFullYear(a,0,n),o.setHours(0,0,0,0);let d=p(o,t);return+i>=+l?a+1:+i>=+d?a:a-1}function v(e,t){let i=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+i}let j={y(e,t){let i=e.getFullYear(),a=i>0?i:1-i;return v("yy"===t?a%100:a,t.length)},M(e,t){let i=e.getMonth();return"M"===t?String(i+1):v(i+1,2)},d:(e,t)=>v(e.getDate(),t.length),a(e,t){let i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];
2default:return"am"===i?"a.m.":"p.m."}},h:(e,t)=>v(e.getHours()%12||12,t.length),H:(e,t)=>v(e.getHours(),t.length),m:(e,t)=>v(e.getMinutes(),t.length),s:(e,t)=>v(e.getSeconds(),t.length),S(e,t){let i=t.length;return v(Math.trunc(e.getMilliseconds()*Math.pow(10,i-3)),t.length)}},y={G:function(e,t,i){let a=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return i.era(a,{width:"abbreviated"});case"GGGGG":return i.era(a,{width:"narrow"});default:return i.era(a,{width:"wide"})}},y:function(e,t,i){if("yo"===t){let t=e.getFullYear();return i.ordinalNumber(t>0?t:1-t,{unit:"year"})}return j.y(e,t)},Y:function(e,t,i,a){let s=b(e,a),n=s>0?s:1-s;return"YY"===t?v(n%100,2):"Yo"===t?i.ordinalNumber(n,{unit:"year"}):v(n,t.length)},R:function(e,t){return v(f(e),t.length)},u:function(e,t){return v(e.getFullYear(),t.length)},Q:function(e,t,i){let a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return v(a,2);case"Qo":return i.ordinalNumber(a,{unit:"quarter"});case"QQQ":return i.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(a,{width:"narrow",context:"formatting"});default:return i.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,i){let a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return v(a,2);case"qo":return i.ordinalNumber(a,{unit:"quarter"});case"qqq":return i.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(a,{width:"narrow",context:"standalone"});default:return i.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,i){let a=e.getMonth();switch(t){case"M":case"MM":return j.M(e,t);case"Mo":return i.ordinalNumber(a+1,{unit:"month"});case"MMM":return i.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(a,{width:"narrow",context:"formatting"});default:return i.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,i){let a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return v(a+1,2);case"Lo":return i.ordinalNumber(a+1,{unit:"month"});case"LLL":return i.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(a,{width:"narrow",context:"standalone"});default:return i.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,i,a){let s,n,r,l,o,d=Math.round((p(s=(0,h.toDate)(e,a?.in),a)-(n=c(),r=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,l=b(s,a),(o=(0,x.constructFrom)(a?.in||s,0)).setFullYear(l,0,r),o.setHours(0,0,0,0),p(o,a)))/m.millisecondsInWeek)+1;return"wo"===t?i.ordinalNumber(d,{unit:"week"}):v(d,t.length)},I:function(e,t,i){let a,s,n,r=Math.round((g(a=(0,h.toDate)(e,void 0))-(s=f(a,void 0),(n=(0,x.constructFrom)(a,0)).setFullYear(s,0,4),n.setHours(0,0,0,0),g(n)))/m.millisecondsInWeek)+1;return"Io"===t?i.ordinalNumber(r,{unit:"week"}):v(r,t.length)},d:function(e,t,i){return"do"===t?i.ordinalNumber(e.getDate(),{unit:"date"}):j.d(e,t)},D:function(e,t,i){let a,s,n=(a=(0,h.toDate)(e,void 0),(0,u.differenceInCalendarDays)(a,((s=(0,h.toDate)(a,void 0)).setFullYear(s.getFullYear(),0,1),s.setHours(0,0,0,0),s))+1);return"Do"===t?i.ordinalNumber(n,{unit:"dayOfYear"}):v(n,t.length)},E:function(e,t,i){let a=e.getDay();switch(t){case"E":case"EE":case"EEE":return i.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(a,{width:"short",context:"formatting"});default:return i.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,i,a){let s=e.getDay(),n=(s-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return v(n,2);case"eo":return i.ordinalNumber(n,{unit:"day"});case"eee":return i.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,i,a){let s=e.getDay(),n=(s-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return v(n,t.length);case"co":return i.ordinalNumber(n,{unit:"day"});case"ccc":return i.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(s,{width:"narrow",context:"standalone"});case"cccccc":return i.day(s,{width:"short",context:"standalone"});default:return i.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,i){let a=e.getDay(),s=0===a?7:a;switch(t){case"i":return String(s);case"ii":return v(s,t.length);case"io":return i.ordinalNumber(s,{unit:"day"});case"iii":return i.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(a,{width:"short",context:"formatting"});default:return i.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,i){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(a,{width:"narrow",context:"formatting"});default:return i.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,i){let a,s=e.getHours();switch(a=12===s?"noon":0===s?"midnight":s/12>
2=1?"pm":"am",t){case"b":case"bb":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(a,{width:"narrow",context:"formatting"});default:return i.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,i){let a,s=e.getHours();switch(a=s>=17?"evening":s>=12?"afternoon":s>=4?"morning":"night",t){case"B":case"BB":case"BBB":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(a,{width:"narrow",context:"formatting"});default:return i.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,i){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),i.ordinalNumber(t,{unit:"hour"})}return j.h(e,t)},H:function(e,t,i){return"Ho"===t?i.ordinalNumber(e.getHours(),{unit:"hour"}):j.H(e,t)},K:function(e,t,i){let a=e.getHours()%12;return"Ko"===t?i.ordinalNumber(a,{unit:"hour"}):v(a,t.length)},k:function(e,t,i){let a=e.getHours();return(0===a&&(a=24),"ko"===t)?i.ordinalNumber(a,{unit:"hour"}):v(a,t.length)},m:function(e,t,i){return"mo"===t?i.ordinalNumber(e.getMinutes(),{unit:"minute"}):j.m(e,t)},s:function(e,t,i){return"so"===t?i.ordinalNumber(e.getSeconds(),{unit:"second"}):j.s(e,t)},S:function(e,t){return j.S(e,t)},X:function(e,t,i){let a=e.getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return C(a);case"XXXX":case"XX":return N(a);default:return N(a,":")}},x:function(e,t,i){let a=e.getTimezoneOffset();switch(t){case"x":return C(a);case"xxxx":case"xx":return N(a);default:return N(a,":")}},O:function(e,t,i){let a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+S(a,":");default:return"GMT"+N(a,":")}},z:function(e,t,i){let a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+S(a,":");default:return"GMT"+N(a,":")}},t:function(e,t,i){return v(Math.trunc(e/1e3),t.length)},T:function(e,t,i){return v(+e,t.length)}};function S(e,t=""){let i=e>0?"-":"+",a=Math.abs(e),s=Math.trunc(a/60),n=a%60;return 0===n?i+String(s):i+String(s)+t+v(n,2)}function C(e,t){return e%60==0?(e>0?"-":"+")+v(Math.abs(e)/60,2):N(e,t)}function N(e,t=""){let i=Math.abs(e);return(e>0?"-":"+")+v(Math.trunc(i/60),2)+t+v(i%60,2)}let w=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},D=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},P={p:D,P:(e,t)=>{let i,a=e.match(/(P+)(p+)?/)||[],s=a[1],n=a[2];if(!n)return w(e,t);switch(s){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",w(s,t)).replace("{{time}}",D(n,t))}},E=/^D+$/,T=/^Y+$/,I=["D","DD","YY","YYYY"],_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,k=/^'([^]*?)'?$/,L=/''/g,A=/[a-zA-Z]/;e.s(["format",0,function(e,t,i){let a=c(),s=i?.locale??a.locale??l,n=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,r=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,o=(0,h.toDate)(e,i?.in);if(!(o instanceof Date||"object"==typeof o&&"[object Date]"===Object.prototype.toString.call(o))&&"number"!=typeof o||isNaN(+(0,h.toDate)(o)))throw RangeError("Invalid time value");let d=t.match(O).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,P[t])(e,s.formatLong):e}).join("").match(_).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t){var i;let t;return{isToken:!1,value:(t=(i=e).match(k))?t[1].replace(L,"'"):i}}if(y[t])return{isToken:!0,value:e};if(t.match(A))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});s.localize.preprocessor&&(d=s.localize.preprocessor(o,d));let u={firstWeekContainsDate:n,weekStartsOn:r,locale:s};return d.map(a=>{if(!a.isToken)return a.value;let n=a.value;return(!i?.useAdditionalWeekYearTokens&&T.test(n)||!i?.useAdditionalDayOfYearTokens&&E.test(n))&&function(e,t,i){var a,s,n;let r,l=(a=e,s=t,n=i,r="Y"===a[0]?"years":"days of the month",`Use \`${a.toLowerCase()}\` instead of \`${a}\` (in \`${s}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(l),I.includes(e))throw RangeError(l)}(n,t,String(e)),(0,y[n[0]])(o,n,s.localize,u)}).join("")}],792042)},365714,e=>{"use strict";var t=e.i(498170),i=e.i(550216),a=e.i(527861),s=e.i(98450),n=e.i(124323),r=e.i(635113);function l(e,t){let i=(0,r.toDate)(e)-(0,r.toDate)(t);return i<0?-1:i>0?1:i}var o=e.i(402848),c=e.i(327765),d=e.i(736980);e.s(["formatDistanceToNow",0,function(e,u){return function(e,t,u){let h,m,p=(0,a.getDefaultOptions)(),g=u?.locale??p.locale??i.defaultLocale,x=l(e,t);if(isNaN(x))throw RangeError("Invalid time value");let f=Object.assign({},u,{addSuffix:u?.addSuffix,comparison:x}),[b,v]=(0,n.normalizeDates)(u?.in,...x>0?[t,e]:[e,t]),j=(m=((0,r.toDate)(v)-(0,r.toDate)(b))/1e3,(0,d.getRoundingMethod)(void 0)(m)),y=Math.round((j-((0,s.getTimezoneOffsetInMilliseconds)(v)-(0,s.getTimezoneOffsetInMilliseconds)(b))/1e3)/60);if(y<2)if(u?.includeSeconds)if(j<5)return g.formatDistance("lessThanXSeconds",5,f);else if(j<10)return g.formatDistance("lessThanXSeconds",10,f);else if(j<20)return g.formatDistance("lessThanXSeconds",20,f);else if(j<40)return g.formatDistance("halfAMinute",0,f);else if(j<60)return g.formatDistance("lessThanXMinutes",1,f);else return g.formatDistance("xMinutes",1,f);else if(0===y)return g.formatDistance("lessThanXMinutes",1,f);else return g.formatDistance("xMinutes",y,f);if(y<45)return g.formatDistance("xMinutes",y,f);if(y<90)return g.formatDistance("aboutXHours",1,f);if(y<o.minutesInDay){let e=Math.round(y/60);return g.formatDistance("aboutXHours",e,f)}if(y<2520)return g.formatDistance("xDays",1,f);else if(y<o.minutesInMonth){let e=Math.round(y/o.minutesInDay);return g.formatDistance("xDays",e,f)}else if(y<2*o.minutesInMonth)return h=Math.round(y/o.minutesInMonth),g.formatDistance("aboutXMonths",h,f);if((h=function(e,t){var i;let a,s,o,[d,u,h]=(0,n.normalizeDates)(void 0,e,e,t),m=l(u,h),p=Math.abs(function(e,t){let[i,a]=(0,n.normalizeDates)(void 0,e,t);return 12*(i.getFullYear()-a.getFullYear())+(i.getMonth()-a.getMonth())}(u,h));if(p<1)return 0;1===u.getMonth()&&u.getDate()>27&&u.setDate(30),u.setMonth(u.getMonth()-m*p);let g=l(u,h)===-m;a=(0,r.toDate)(d,void 0),+(0,c.endOfDay)(a,void 0)==+(i=void 0,o=(s=(0,r.toDate)(a,i?.in)).getMonth(),s.setFullYear(s.getFullYear(),o+1,0),s.setHours(23,59,59,999),s)&&1===p&&1===l(d,h)&&(g=!1);let x=m*(p-g);return 0===x?0:x}(v,b))<12){let e=Math.round(y/o.minutesInMonth);return g.formatDistance("xMonths",e,f)}{let e=h%12,t=Math.trunc(h/12);return e<3?g.formatDistance("aboutXYears",t,f):e<9?g.formatDistance("overXYears",t,f):g.formatDistance("almostXYears",t+1,f)}}(e,(0,t.constructFrom)(e,Date.now()),u)}],365714)},562926,e=>{"use strict";var t=e.i(821384);let i=t.z.string().transform(e=>t.z.string().url().safeParse(e).success?e:`http://${e}`).refine(e=>t.z.string().url().safeParse(e).success,{message:"We’ll need a valid URL here."}),a=t.z.string().transform(e=>t.z.string().email().safeParse(e).success?`mailto:${e}`:t.z.string().url().safeParse(e).success?e:`http://${e}`).refine(e=>t.z.string().url().safeParse(e).success,{message:"We’ll need a valid URL or email address here."});
2e.s(["LinkOrEmailSchema",0,a,"LinkSchema",0,i])},955592,e=>{"use strict";var t=e.i(278355),i=e.i(829253),a=e.i(821384),s=e.i(177540),n=e.i(562926),r=e.i(271461);let l=a.z.enum(["RELATIONSHIPS","REAL_ESTATE","FINANCE","CINEMA","PHOTOGRAPHY","BUSINESS","NATURE","FAMILY_AND_KIDS","MUSIC","EDUCATION","CERTIFICATION","TRAVEL_AND_TOURISM","BEAUTY","ART","SPORTS_AND_FITNESS","FOOD","LAW","POLITICS","CV_AND_RESUME","MARKETING","INTERVIEWS","CARS","PHONE","LAPTOP","TELEVISION","WRITING","BROWSER_LINK","PDF_FILE"]);var o=e.i(329250);a.z.object({name:a.z.string(),slug:a.z.string()});let c=a.z.enum(["HOME","PROJECT","CUSTOM","BLOG_POST"]),d=a.z.string().min(2,{message:"Keep going, we'll need at least 2 characters here."}).regex(/^[\da-z-]+$/,{message:"Only English letters, numbers and dashes play."}).refine(e=>"-"!==e[0]&&"-"!==e[e.length-1],{message:"Dashes can't start or end your URL slug."}).refine(e=>!t.blockedPageSlugs.has(e),{message:"Great idea, but we can't let you choose this one."}).nullable();a.z.object({showBlogpostStepper:a.z.boolean().nullish()});let u=s.ImageSchema.or(l).or(o.ThumbnailDesignSchema),h=a.z.object({id:a.z.string(),slug:a.z.string().nullable(),siteId:a.z.string(),parentSectionId:a.z.string().nullable(),type:c,published:a.z.boolean(),title:a.z.string().regex(/\S+/),externalUrl:n.LinkSchema.nullable(),description:a.z.string().nullable(),position:a.z.number(),thumbnail:u.nullable(),seo:a.z.object({title:a.z.string().min(1,{message:"Come back, your page desperately needs a title."}),description:a.z.string(),image:s.ImageSchema.nullish()}),blogPostPublishUnixTimestamp:a.z.number().nullable(),categories:a.z.array(a.z.string()).max(i.maxCategoriesPerPage).default([])}).extend({privacy:r.PrivacySchema.default("PUBLIC"),privacyPassword:r.PrivacyPasswordSchema.nullable().default(null)});e.s(["PageSchema",0,h,"PageSlugSchema",0,d],955592)},342313,e=>{"use strict";var t=e.i(391398);e.i(311727);var i=e.i(70340),a=e.i(453098);function s({icon:e,title:i,description:a}){return(0,t.jsxs)("div",{className:"space-y-2 rounded bg-violet-0 px-4 py-3 text-violet-40",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[e,(0,t.jsx)("strong",{children:i})]}),(0,t.jsx)("p",{children:a})]})}s.PrivacyNotPublished=()=>(0,t.jsx)(s,{icon:(0,t.jsx)(i.EyeOff,{className:"size-6"}),title:"Your site is not published.",description:"You can customize the privacy of your site once you publish it."}),s.DomainNotPublished=()=>(0,t.jsx)(s,{icon:(0,t.jsx)(i.EyeOff,{className:"size-6"}),title:"Your site is not published.",description:"You can customize your domain once you publish your site.."}),s.PreviewOnly=()=>(0,t.jsx)(s,{icon:(0,t.jsx)(a.Lock,{className:"size-6"}),title:"This is a preview only.",description:"Upgrade to Premium to save design changes to your site."}),e.s(["TipsBanner",0,s])},863654,e=>{"use strict";var t=e.i(391398),i=e.i(407464),a=e.i(301027);let s={none:"2px",lg:"12px",full:"20px"};function n({title:e,description:a,acceptButtonText:r,declineButtonText:l,showDeclineButton:o=!0,buttonRounded:c="lg",onAccept:d,className:u,onReject:h}){let m=s[c];return(0,t.jsxs)("div",{className:(0,i.default)("flex w-[328px] flex-col gap-6 overflow-hidden p-6",u),style:{backgroundColor:"var(--cookie-banner-bg)",borderRadius:m},children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("h3",{className:"text-xl",style:{fontFamily:"var(--h3-family)",fontWeight:"var(--h3-weight)",fontStyle:"var(--h3-style)",color:"var(--h1-color)"},children:e||"We're using cookies"}),(0,t.jsx)("p",{className:"text-base",style:{fontFamily:"var(--p-family)",lineHeight:"var(--p-line-height)",color:"rgb(var(--p-color))"},children:a||"By using this website, you agree to the use of cookies."})]}),(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)("button",{type:"button",onClick:d,className:"font-bold underline decoration-1 underline-offset-[6px] hover:opacity-70",style:{fontFamily:"var(--p-family)",color:"var(--h1-color)"},children:r||"Accept"}),o&&(0,t.jsx)("button",{type:"button",onClick:h,className:"font-bold underline decoration-1 underline-offset-[6px] hover:opacity-70",style:{fontFamily:"var(--p-family)",color:"var(--h1-color)"},children:l||"Decline"})]})]})}e.s(["CookieBanner",0,n,"CookieBannerPreview",0,function({title:e,description:i,acceptButtonText:s,declineButtonText:r,showDeclineButton:l=!0,showCookieBanner:o=!0,buttonRounded:c="lg"}){return o?(0,t.jsxs)(a.m.div,{className:"fixed inset-0 z-50 flex items-end pb-6",initial:{paddingLeft:0},animate:{paddingLeft:"24rem"},transition:{duration:.3,ease:"easeOut"},children:[(0,t.jsx)(a.m.div,{className:"absolute inset-0 bg-darken-regular",initial:{opacity:0}
2,animate:{opacity:1},transition:{duration:.3}}),(0,t.jsx)("div",{className:"relative z-10",children:(0,t.jsx)(n,{showCookieBanner:o,title:e??"",description:i??"",acceptButtonText:s??"",declineButtonText:r??"",showDeclineButton:l,buttonRounded:c})})]}):null}])},453098,e=>{"use strict";var t=e.i(968853);e.s(["Lock",()=>t.default])},567897,e=>{"use strict";var t=e.i(811148);e.s(["Seo",()=>t.default])},793887,e=>{"use strict";e.s(["isIndividualPage",0,e=>"BLOG_POST"!==e.type&&"PROJECT"!==e.type])}]);
3
4//# debugId=414b9a72-4d29-e21a-ee56-ebc1f19c357a

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.