1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74380],{36120:(e,t,r)=>{r.d(t,{$:()=>l,r:()=>s});var a=r(76402);r(14138);var n=r(64416),o=r(61712),i=r(47767);let s=(0,n.F)("inline-flex shrink-0 items-center justify-center gap-2 rounded-[10px] text-sm font-medium whitespace-nowrap transition-all duration-200 outline-none focus-visible:ring-[3px] focus-visible:ring-primary/10 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-gradient-to-br from-foreground to-foreground/90 text-background shadow-sm hover:-translate-y-px hover:shadow-md active:translate-y-0 active:shadow-sm dark:from-white dark:to-white/90 dark:text-black",destructive:"bg-destructive/[0.06] text-destructive border-[0.5px] border-destructive/[0.12] hover:bg-destructive/[0.1] focus-visible:ring-destructive/20 dark:bg-destructive/15 dark:border-destructive/25",outline:"border bg-background shadow-xs hover:bg-muted hover:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-white/60 backdrop-blur-sm border-[0.5px] border-black/[0.06] text-foreground/70 hover:bg-white/80 hover:text-foreground hover:border-black/[0.1] dark:bg-white/[0.06] dark:border-white/[0.08] dark:text-foreground/70 dark:hover:bg-white/10 dark:hover:text-foreground",ghost:"text-muted-foreground hover:bg-black/[0.03] hover:text-foreground dark:hover:bg-white/[0.06]",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function l({className:e,variant:t="default",size:r="default",asChild:n=!1,...d}){let c=n?o.bL:"button";return(0,a.jsx)(c,{"data-slot":"button","data-variant":t,"data-size":r,className:(0,i.cn)(s({variant:t,size:r,className:e})),...d})}},68295:(e,t,r)=>{r.d(t,{$v:()=>m,EO:()=>c,Lt:()=>s,Rx:()=>p,Zr:()=>x,ck:()=>g,r7:()=>f,wd:()=>u});var a=r(76402);r(14138);var n=r(77578),o=r(47767),i=r(36120);function s({...e}){return(0,a.jsx)(n.Root,{"data-slot":"alert-dialog",...e})}function l({...e}){return(0,a.jsx)(n.Portal,{"data-slot":"alert-dialog-portal",...e})}function d({className:e,...t}){return(0,a.jsx)(n.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,o.cn)("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function c({className:e,size:t="default",...r}){return(0,a.jsxs)(l,{children:[(0,a.jsx)(d,{}),(0,a.jsx)(n.Content,{"data-slot":"alert-dialog-content","data-size":t,className:(0,o.cn)("group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[size=default]:sm:max-w-lg",e),...r})]})}function u({className:e,...t}){return(0,a.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,o.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...t})}function g({className:e,...t}){return(0,a.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,o.cn)("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...t})}function f({className:e,...t}){return(0,a.jsx)(n.Title,{"data-slot":"alert-dialog-title",className:(0,o.cn)("text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...t})}function m({className:e,...t}){return(0,a.jsx)(n.Description,{"data-slot":"alert-dialog-description",className:(0,o.cn)("text-sm text-muted-foreground",e),...t})}function p({className:e,variant:t="default",size:r="default",...s}){return(0,a.jsx)(i.$,{variant:t,size:r,asChild:!0,children:(0,a.jsx)(n.Action,{"data-slot":"alert-dialog-action",className:(0,o.cn)(e),...s})})}function x({className:e,variant:t="outline",size:r="default",...s}){return(0,a.jsx)(i.$,{variant:t,size:r,asChild:!0,children:(0,a.jsx)(n.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,o.cn)(e),...s})})}},74380:(e,t,r)=>{r.r(t),r.d(t,{LiveHtmlRenderer:()=>g});var a=r(76402),n=r(14138),o=r(32342);let i=` 2<script> 3 (function () { 4 function send(payload) {
5 try { 6 window.parent.postMessage({ 7 __weavin_scratchpad__: true, 8 ...payload, 9 }, '*'); 10 } catch (e) { /* ignore */ } 11 } 12 window.addEventListener('error', function (event) { 13 send({ kind: 'error', message: event.message, source: event.filename, line: event.lineno }); 14 }); 15 window.addEventListener('unhandledrejection', function (event) { 16 send({ kind: 'unhandled-rejection', reason: String(event.reason) }); 17 }); 18 window.addEventListener('load', function () { 19 send({ kind: 'ready' }); 20 }); 21 })(); 22</script> 23`;var s=r(36120);function l({state:e,onReset:t}){let r=(0,o.c)("Workbench");return"ready"===e.kind||"loading"===e.kind?null:"slow"===e.kind?(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-end justify-center bg-transparent",children:(0,a.jsx)("div",{className:"pointer-events-auto m-3 rounded-md bg-foreground/[0.92] px-3 py-1.5 text-[11px] font-medium text-background shadow-lg",children:r("liveHtmlErrorOverlay.renderSlow")})}):(0,a.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-3 bg-background/95 p-6 text-center",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-destructive",children:r("liveHtmlErrorOverlay.renderError")}),(0,a.jsx)("div",{className:"max-w-xs text-[12px] text-muted-foreground break-words",children:e.message}),void 0!==e.line&&(0,a.jsx)("div",{className:"text-[11px] text-muted-foreground/70",children:r("liveHtmlErrorOverlay.line",{line:e.line})}),(0,a.jsx)(s.$,{size:"sm",variant:"outline",onClick:t,children:r("liveHtmlErrorOverlay.reset")})]})}var d=r(68295),c=r(75244);function u({onReset:e}){let t=(0,o.c)("Workbench"),[r,i]=(0,n.useState)(!1),l=(0,c.r$)(),g=async()=>{i(!1),await e()};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.$,{size:"sm",variant:"ghost",onClick:()=>i(!0),"data-testid":"live-html-reset-button",children:t("liveHtmlResetButton.reset")}),l?(0,a.jsxs)(c.sE,{open:r,onOpenChange:i,title:t("liveHtmlResetButton.reset"),danger:!0,children:[(0,a.jsx)("p",{className:"text-[12.5px] text-muted-foreground",children:t("liveHtmlResetButton.confirm")}),(0,a.jsx)(c.HN,{cancelLabel:t("liveHtmlResetButton.cancel"),onCancel:()=>i(!1),actionLabel:t("liveHtmlResetButton.reset"),onAction:()=>void g(),danger:!0})]}):(0,a.jsx)(d.Lt,{open:r,onOpenChange:i,children:(0,a.jsxs)(d.EO,{children:[(0,a.jsxs)(d.wd,{children:[(0,a.jsx)(d.r7,{children:t("liveHtmlResetButton.reset")}),(0,a.jsx)(d.$v,{children:t("liveHtmlResetButton.confirm")})]}),(0,a.jsxs)(d.ck,{children:[(0,a.jsx)(d.Zr,{"data-testid":"live-html-reset-cancel",children:t("liveHtmlResetButton.cancel")}),(0,a.jsx)(d.Rx,{"data-testid":"live-html-reset-confirm",onClick:()=>void g(),children:t("liveHtmlResetButton.reset")})]})]})})]})}function g({rawHtml:e,onReset:t}){let r=(0,o.c)("Workbench"),s=(0,n.useRef)(null),[d,c]=(0,n.useState)({kind:"loading"}),f=(0,n.useMemo)(()=>(function(e){let t=`<meta http-equiv="Content-Security-Policy" content="${"default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; media-src data: blob:; connect-src 'none'; form-action 'none'; frame-src 'none'; base-uri 'none'; object-src 'none';".replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}">`,{headStyles:r,bodyContent:a}=function(e){if("u"<typeof DOMParser){var t=e;let r=/<body(?:\s[^>]*)?>/i.exec(t),a="";if(r){let e=r.index+r[0].length,n=t.toLowerCase().lastIndexOf("</body>");a=n>e?t.substring(e,n):t.substring(e)}else a=t.replace(/^[\s]*<!DOCTYPE[^>]*>[\s]*/i,"").replace(/^[\s]*<html[^>]*>([\s\S]*)<\/html>[\s]*$/i,"$1").replace(/^[\s]*<head[^>]*>[\s\S]*?<\/head>[\s]*/i,"");return{headStyles:"",bodyContent:a}}let r=new DOMParser().parseFromString(e,"text/html");return{headStyles:Array.from(r.head.querySelectorAll("style")).map(e=>e.outerHTML).join("\n"),bodyContent:r.body.innerHTML}}(e);return["<!DOCTYPE html>","<html>","<head>",t,r,"</head>","<body>",i.trim(),a,"</body>","</html>"].join("")})(e),[e]);(0,n.useEffect)(()=>{function e(e){if(e.source!==s.current?.contentWindow||"null"!==e.origin)return;let t=e.data;t?.__weavin_scratchpad__&&("error"===t.kind?c({kind:"error",message:t.message??r("liveHtmlRenderer.renderError"),line:t.line}):"unhandled-rejection"===t.kind?c({kind:"error",message:t.reason??r("liveHtmlRenderer.unhandledRejection")}):"ready"===t.kind&&c(e=>"loading"===e.kind||"slow"===e.kind?{kind:"ready"}:e))}return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[r]),(0,n.useEffect)(()=>{c({kind:"loading"});let e=window.setTimeout(()=>{c(e=>"loading"===e.kind?{kind:"slow"}:e)},5e3);return()=>window.clearTimeout(e)},[f]);let m=t??(()=>{});return(0,a.jsxs)("div",{className:"relative h-full w-full",children:[(0,a.jsx)("iframe",{ref:s,srcDoc:f,sandbox:"allow-scripts",referrerPolicy:"no-referrer",title:r("liveHtmlRenderer.iframeTitle"),style:{border:"none",width:"100%",height:"100%"}}),(0,a.jsx)(l,{state:d,onReset:m}),t&&(0,a.jsx)("div",{className:"absolute left-2 top-2 z-10",children:(0,a.jsx)(u,{onReset:t})})]})}},75244:(e,t,r)=>{r.d(t,{HN:()=>c,r$:()=>l,sE:()=>d});var a=r(76402),n=r(8791),o=r(47767),i=r(98995),s=r(94914);function l(){let e=(0,i.a)();return(0,s.q)()&&e}function d({open:e,onOpenChange:t,title:r,danger:i=!1,children:s}){return(0,a.jsx)(n._s,{open:e,onOpenChange:t,children:(0,a.jsxs)(n.zj,{className:"lg:hidden","data-testid":"confirm-sheet",children:[(0,a.jsx)(n.gk,{className:(0,o.cn)("px-4 pb-1 pt-0.5 text-[15px] font-extrabold",i&&"text-destructive"),children:r}),(0,a.jsx)("div",{className:"min-h-0 flex-1 space-y-3 overflow-y-auto px-4 pb-[calc(env(safe-area-inset-bottom)+1rem)] pt-1",children:s})]})})}function c({cancelLabel:e,onCancel:t,cancelDisabled:r,actionLabel:n,onAction:i,actionDisabled:s,danger:l=!1}){return(0,a.jsxs)("div",{className:"flex justify-end gap-2 pt-1",children:[(0,a.jsx)("button",{type:"button",disabled:r,onClick:t,"data-testid":"confirm-sheet-cancel",className:"h-11 rounded-full border border-border px-5 text-[12.5px] font-bold disabled:opacity-50",children:e}),(0,a.jsx)("button",{type:"button",disabled:s,onClick:i,"data-testid":"confirm-sheet-action",className:(0,o.cn)("h-11 rounded-full px-5 text-[12.5px] font-bold disabled:opacity-40 disabled:cursor-not-allowed",l?"bg-destructive text-destructive-foreground":"bg-foreground text-background"),children:n})]})}}
23,77578:(e,t,r)=>{r.r(t),r.d(t,{Action:()=>T,AlertDialog:()=>m,AlertDialogAction:()=>A,AlertDialogCancel:()=>C,AlertDialogContent:()=>j,AlertDialogDescription:()=>z,AlertDialogOverlay:()=>v,AlertDialogPortal:()=>x,AlertDialogTitle:()=>N,AlertDialogTrigger:()=>p,Cancel:()=>$,Content:()=>L,Description:()=>B,Overlay:()=>S,Portal:()=>H,Root:()=>_,Title:()=>P,Trigger:()=>O,createAlertDialogScope:()=>g});var a=r(14138),n=r(7868),o=r(7730),i=r(73496),s=r(94475),l=r(61712),d=r(76402),c="AlertDialog",[u,g]=(0,n.A)(c,[i.createDialogScope]),f=(0,i.createDialogScope)(),m=e=>{let{__scopeAlertDialog:t,...r}=e,a=f(t);return(0,d.jsx)(i.Root,{...a,...r,modal:!0})};m.displayName=c;var p=a.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...a}=e,n=f(r);return(0,d.jsx)(i.Trigger,{...n,...a,ref:t})});p.displayName="AlertDialogTrigger";var x=e=>{let{__scopeAlertDialog:t,...r}=e,a=f(t);return(0,d.jsx)(i.Portal,{...a,...r})};x.displayName="AlertDialogPortal";var v=a.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...a}=e,n=f(r);return(0,d.jsx)(i.Overlay,{...n,...a,ref:t})});v.displayName="AlertDialogOverlay";var h="AlertDialogContent",[b,w]=u(h),y=(0,l.Dc)("AlertDialogContent"),j=a.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:n,...l}=e,c=f(r),u=a.useRef(null),g=(0,o.s)(t,u),m=a.useRef(null);return(0,d.jsx)(i.WarningProvider,{contentName:h,titleName:k,docsSlug:"alert-dialog",children:(0,d.jsx)(b,{scope:r,cancelRef:m,children:(0,d.jsxs)(i.Content,{role:"alertdialog",...c,...l,ref:g,onOpenAutoFocus:(0,s.mK)(l.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,d.jsx)(y,{children:n}),(0,d.jsx)(E,{contentRef:u})]})})})});j.displayName=h;var k="AlertDialogTitle",N=a.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...a}=e,n=f(r);return(0,d.jsx)(i.Title,{...n,...a,ref:t})});N.displayName=k;var D="AlertDialogDescription",z=a.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...a}=e,n=f(r);return(0,d.jsx)(i.Description,{...n,...a,ref:t})});z.displayName=D;var A=a.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...a}=e,n=f(r);return(0,d.jsx)(i.Close,{...n,...a,ref:t})});A.displayName="AlertDialogAction";var R="AlertDialogCancel",C=a.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...a}=e,{cancelRef:n}=w(R,r),s=f(r),l=(0,o.s)(t,n);return(0,d.jsx)(i.Close,{...s,...a,ref:l})});C.displayName=R;var E=({contentRef:e})=>{let t=`\`${h}\` requires a description for the component to be accessible for screen reader users. 24 25You can add a description to the \`${h}\` by passing a \`${D}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 26 27Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${h}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 28 29For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return a.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},_=m,O=p,H=x,S=v,L=j,T=A,$=C,P=N,B=z},94914:(e,t,r)=>{r.d(t,{q:()=>a});function a(){return!0}},98995:(e,t,r)=>{r.d(t,{a:()=>n});var a=r(14138);function n(){let[e,t]=a.useState(void 0);return a.useEffect(()=>{let e=window.matchMedia("(max-width: 1023px)"),r=()=>{t(window.innerWidth<1024)};return e.addEventListener("change",r),t(window.innerWidth<1024),()=>e.removeEventListener("change",r)},[]),!!e}}}]);
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.