1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74133],{29991:(e,t,s)=>{s.d(t,{bq:()=>u,eb:()=>x,gC:()=>m,l6:()=>d,yv:()=>c});var a=s(95155);s(12115);var l=s(42695),n=s(66088),i=s(94514),o=s(9921),r=s(40980);function d({...e}){return(0,a.jsx)(l.Root,{"data-slot":"select",...e})}function c({...e}){return(0,a.jsx)(l.Value,{"data-slot":"select-value",...e})}function u({className:e,size:t="default",children:s,...i}){return(0,a.jsxs)(l.Trigger,{"data-slot":"select-trigger","data-size":t,className:(0,r.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...i,children:[s,(0,a.jsx)(l.Icon,{asChild:!0,children:(0,a.jsx)(n.A,{className:"size-4 opacity-50"})})]})}function m({className:e,children:t,position:s="item-aligned",align:n="center",...i}){return(0,a.jsx)(l.Portal,{children:(0,a.jsxs)(l.Content,{"data-slot":"select-content",className:(0,r.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:s,align:n,...i,children:[(0,a.jsx)(h,{}),(0,a.jsx)(l.Viewport,{className:(0,r.cn)("p-1","popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),(0,a.jsx)(p,{})]})})}function x({className:e,children:t,...s}){return(0,a.jsxs)(l.Item,{"data-slot":"select-item",className:(0,r.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...s,children:[(0,a.jsx)("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,a.jsx)(l.ItemIndicator,{children:(0,a.jsx)(i.A,{className:"size-4"})})}),(0,a.jsx)(l.ItemText,{children:t})]})}function h({className:e,...t}){return(0,a.jsx)(l.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:(0,r.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,a.jsx)(o.A,{className:"size-4"})})}function p({className:e,...t}){return(0,a.jsx)(l.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:(0,r.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,a.jsx)(n.A,{className:"size-4"})})}},47687:(e,t,s)=>{s.d(t,{Xi:()=>r,av:()=>d,j7:()=>o,tU:()=>i});var a=s(95155);s(12115);var l=s(57518),n=s(40980);function i({className:e,...t}){return(0,a.jsx)(l.Root,{"data-slot":"tabs",className:(0,n.cn)("flex flex-col gap-2",e),...t})}function o({className:e,...t}){return(0,a.jsx)(l.List,{"data-slot":"tabs-list",className:(0,n.cn)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function r({className:e,...t}){return(0,a.jsx)(l.Trigger,{"data-slot":"tabs-trigger",className:(0,n.cn)("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focu
1s-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function d({className:e,...t}){return(0,a.jsx)(l.Content,{"data-slot":"tabs-content",className:(0,n.cn)("flex-1 outline-none data-[state=inactive]:hidden",e),...t})}},60529:(e,t,s)=>{s.d(t,{p:()=>n});var a=s(95155);s(12115);var l=s(40980);function n({className:e,type:t,...s}){return(0,a.jsx)("input",{type:t,"data-slot":"input",className:(0,l.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...s})}},74133:(e,t,s)=>{s.r(t),s.d(t,{BusinessAssetInsertPanel:()=>D});var a=s(95155),l=s(14780),n=s(94514),i=s(41641),o=s(484),r=s(6489),d=s(51914),c=s(18837),u=s(68459),m=s(33210),x=s(12115),h=s(66609),p=s(57181),b=s(40980);function g({config:e,variant:t="document",className:s}){let l=(0,x.useRef)(null),n=(0,x.useRef)(null),[i,o]=(0,x.useState)(0),[r,d]=(0,x.useState)(0),c=(0,x.useMemo)(()=>(0,p.w)(e),[e]),u=(0,x.useMemo)(()=>null===e?220:"alternative-choice"===e.type?108+78*e.options.length:122+(e.rows.length+1)*44,[e]);(0,x.useEffect)(()=>{let e=l.current,t=n.current;if(null===e)return;let s=()=>{let s=e.getBoundingClientRect().width;if(o(e=>1>Math.abs(e-s)?e:s),null!==t){let e=Math.max(t.scrollHeight,t.offsetHeight);d(t=>1>Math.abs(t-e)?t:e)}else d(0)};if(s(),"u"<typeof ResizeObserver)return;let a=new ResizeObserver(s);return a.observe(e),null!==t&&a.observe(t),()=>a.disconnect()},[null!==c]);let m="document"===t?1:i>0?Math.min(1,Math.max(.28,i/760)):.36,h=Math.ceil((r>0?r:u)*m);return(0,a.jsx)("div",{ref:l,className:(0,b.cn)("w-full min-w-0 max-w-full overflow-hidden rounded-md border border-slate-200 bg-white","thumbnail"===t?"min-h-36":"min-h-56",s),style:{height:h},"data-business-asset-preview-variant":t,children:null!==c?(0,a.jsx)("div",{ref:n,className:"pointer-events-none origin-top-left",style:{display:"flow-root",width:"document"===t?"100%":760,transform:"document"===t?void 0:`scale(${m})`},dangerouslySetInnerHTML:{__html:c}}):(0,a.jsx)("div",{className:"flex h-full min-h-36 items-center justify-center px-4 text-center text-sm text-slate-500",children:"미리보기를 íìí ì ììµëë¤."})})}var f=s(89239),v=s(60529),j=s(91760);function y({className:e,...t}){return(0,a.jsx)(j.b,{"data-slot":"label",className:(0,b.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}var N=s(29991),w=s(99412),C=s(47687),k=s(18349),z=s(60723),$=s(13159),A=s(30926),M=s(31181);let K=[{value:"blue",label:"ë¸ë£¨",swatch:"#1D4ED8"},{value:"green",label:"그린",swatch:"#047857"},{value:"amber",label:"ì°ë²",swatch:"#B45309"},{value:"slate",label:"ì¬ë ì´í¸",swatch:"#334155"}],_=[{key:"backgroundColor",label:"ê°ì¡° ë°°ê²½"},{key:"borderColor",label:"ê°ì¡° ì "},{key:"textColor",label:"ê°ì¡° í
ì¤í¸"},{key:"headerBackgroundColor",label:"í¤ë ë°°ê²½"},{key:"headerTextColor",label:"í¤ë í
ì¤í¸"}];function L(e,t){let s=new Set(t);for(let t=1;t<=99;t++){let a=`${e}-${t}`;if(!s.has(a))return a}return`${e}-99`}function S(e){return(0,M.NE)(e,"#000000")}function R(e,t,s){return`business-asset-${e}-${t}-${s}`}function T({id:e,label:t,value:s,onChange:l,maxLength:n,placeholder:i}){return(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(y,{htmlFor:e,className:"text-xs text-slate-600",children:t}),(0,a.jsx)(v.p,{id:e,value:s,maxLength:n,placeholder:i,onChange:e=>l(e.target.value)})]})}function O({id:e,label:t,value:s,onChange:l,maxLength:n,minRows:i=2}){return(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(y,{htmlFor:e,className:"text-xs text-slate-600",children:t}),(0,a.jsx)(k.T,{id:e,value:s,maxLength:n,rows:i,className:"min-h-16 resize-y",onChange:e=>l(e.target.value)})]})}function B({preset:e,selected:t,onSelect:s}){return(0,a.jsxs)("button",{type:"button","aria-pressed":t,onClick:()=>
1s(e.type),className:(0,b.cn)("flex h-full min-h-0 min-w-0 w-full flex-col rounded-md border bg-white p-3 text-left transition-colors hover:border-blue-300 focus-visible:border-blue-500 focus-visible:ring-2 focus-visible:ring-blue-200 focus-visible:outline-none",t?"border-blue-500 ring-2 ring-blue-100":"border-slate-200"),children:[(0,a.jsx)(g,{config:e.defaultConfig,variant:"thumbnail",className:"bg-slate-50"}),(0,a.jsxs)("div",{className:"mt-3 flex items-start gap-2",children:[(0,a.jsx)("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-md bg-slate-100 text-slate-700",children:"alternative-choice"===e.type?(0,a.jsx)(o.A,{className:"size-4"}):(0,a.jsx)(c.A,{className:"size-4"})}),(0,a.jsxs)("span",{className:"min-w-0",children:[(0,a.jsx)("span",{className:"block text-sm font-semibold text-slate-950",children:e.name}),(0,a.jsx)("span",{className:"mt-1 block text-xs leading-5 text-slate-600",children:e.summary}),(0,a.jsx)("span",{className:"mt-2 block text-xs leading-5 text-slate-500",children:e.bestFor})]})]})]})}function F({config:e,onUpdate:t}){return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(T,{id:"business-asset-title",label:"ì 목",value:e.title,maxLength:M.tK.titleMax,onChange:e=>t({title:e})}),(0,a.jsx)(O,{id:"business-asset-description",label:"ì¤ëª
",value:e.description,maxLength:M.tK.descriptionMax,onChange:e=>t({description:e})}),(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(y,{htmlFor:"business-asset-theme",className:"text-xs text-slate-600",children:"í¤"}),(0,a.jsxs)(N.l6,{value:e.theme,onValueChange:e=>t({theme:e}),children:[(0,a.jsx)(N.bq,{id:"business-asset-theme",className:"w-full",children:(0,a.jsx)(N.yv,{})}),(0,a.jsx)(N.gC,{children:K.map(e=>(0,a.jsx)(N.eb,{value:e.value,children:(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"size-3 rounded-full border border-black/10",style:{backgroundColor:e.swatch}}),e.label]})},e.value))})]})]})]})}
1function I({highlightStyle:e,onChange:t}){return(0,a.jsxs)("details",{className:"group rounded-md border border-slate-200 bg-white",children:[(0,a.jsxs)("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-3 px-3 py-2 text-sm font-semibold text-slate-900",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)(r.A,{className:"size-4 text-slate-500"}),"ìì"]}),(0,a.jsx)("span",{className:"text-xs font-medium text-slate-500 group-open:hidden",children:"í¼ì¹ê¸°"}),(0,a.jsx)("span",{className:"hidden text-xs font-medium text-slate-500 group-open:inline",children:"ì 기"})]}),(0,a.jsx)("div",{className:"grid gap-3 border-t border-slate-100 p-3 sm:grid-cols-2",children:_.map(s=>{let l=e[s.key],n=`business-asset-color-${s.key}`;return(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(y,{htmlFor:n,className:"text-xs text-slate-600",children:s.label}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{id:n,type:"color",value:S(l),onChange:e=>t(s.key,S(e.target.value)),className:"size-9 rounded-md border border-slate-200 bg-white p-1"}),(0,a.jsx)(v.p,{"aria-label":`${s.label} HEX ê°`,value:l,maxLength:7,className:"font-mono text-xs uppercase",onChange:e=>t(s.key,e.target.value.toUpperCase())})]})]},s.key)})})]})}function E({config:e,updateConfig:t}){let s=e.options.length<M.tK.maxOptions,l=e.options.length>M.tK.minOptions,i=(0,x.useCallback)((e,s)=>{t(t=>"alternative-choice"!==t.type?t:{...t,options:t.options.map(t=>t.id===e?{...t,...s}:t)})},[t]),o=(0,x.useCallback)(e=>{t(t=>"alternative-choice"!==t.type?t:{...t,options:t.options.map(t=>({...t,highlighted:t.id===e||void 0}))})},[t]),r=(0,x.useCallback)(()=>{t(e=>{if("alternative-choice"!==e.type||e.options.length>=M.tK.maxOptions)return e;let t=L("option",e.options.map(e=>e.id));return{...e,options:[...e.options,{id:t,label:"ì ì íì§",description:"ê²í 기ì¤ì ì
ë ¥íì¸ì."}]}})},[t]),c=(0,x.useCallback)(e=>{t(t=>{if("alternative-choice"!==t.type||t.options.length<=M.tK.minOptions)return t;let s=t.options.find(t=>t.id===e),a=t.options.filter(t=>t.id!==e);return s?.highlighted!==!0?{...t,options:a}:{...t,options:a.map((e,t)=>({...e,highlighted:0===t||void 0}))}})},[t]);return(0,a.jsxs)("section",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-slate-950",children:"ì íì§"}),(0,a.jsxs)(f.$,{type:"button",variant:"outline",size:"sm",onClick:r,disabled:!s,children:[(0,a.jsx)(d.A,{className:"size-3.5"})," ì¶ê°"]})]}),(0,a.jsx)("div",{className:"space-y-3",children:e.options.map((e,t)=>(0,a.jsxs)("div",{className:"rounded-md border border-slate-200 bg-white p-3",children:[(0,a.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-2",children:[(0,a.jsxs)(f.$,{type:"button",variant:!0===e.highlighted?"default":"outline",size:"sm",onClick:()=>o(e.id),children:[!0===e.highlighted?(0,a.jsx)(n.A,{className:"size-3.5"}):null,"ê°ì¡°"]}),(0,a.jsx)(f.$,{type:"button",variant:"ghost",size:"icon-sm",onClick:()=>c(e.id),disabled:!l,"aria-label":`${t+1}ë² ì íì§ ìì `,children:(0,a.jsx)(u.A,{className:"size-4"})})]}),(0,a.jsxs)("div",{className:"grid gap-3",children:[(0,a.jsx)(T,{id:R("option",e.id,"label"),label:"ë¼ë²¨",value:e.label,maxLength:M.tK.labelMax,onChange:t=>i(e.id,{label:t})}),(0,a.jsx)(O,{id:R("option",e.id,"description"),label:"ì¤ëª
",value:e.description,maxLength:M.tK.itemDescriptionMax,onChange:t=>i(e.id,{description:t})}),(0,a.jsx)(T,{id:R("option",e.id,"badge"),label:"ë°°ì§",value:e.badge??"",maxLength:M.tK.badgeMax,placeholder:"ì í",onChange:t=>i(e.id,{badge:t})})]})]},e.id))})]})}function X({config:e,updateConfig:t}){let s=e.columns.length<M.tK.maxColumns,l=e.columns.length>M.tK.minColumns,i=e.rows.length<M.tK.maxRows,o=e.rows.length>M.tK.minRows,r=(0,x.useCallback)((e,s)=>{t(t=>"comparison-table"!==t.type?t:{...t,columns:t.columns.map(t=>t.id===e?{...t,...s}:t)})},[t]),c=(0,x.useCallback)(e=>{t(t=>"comparison-table"!==t.type?t:{...t,columns:t.columns.map(t=>({...t,highlighted:t.id===e||void 0}))})},[t]),m=(0,x.useCallback)(()=>{t(e=>{if("comparison-table"!==e.type||e.columns.length>=M.tK.maxColumns)return e;let t=L("column",e.columns.map(e=>e.id));return{...e,columns:[...e.columns,{id:t,label:"ì ëì"}],rows:e.rows.map(e=>({...e,values:{...e.values,[t]:""}}))}})},[t]),h=(0,x.useCallback)(e=>{t(t=>{if("comparison-table"!==t.type||t.columns.length<=M.tK.minColumns)return t;let s=t.columns.find(t=>
1t.id===e),a=t.columns.filter(t=>t.id!==e),l=s?.highlighted===!0?a.map((e,t)=>({...e,highlighted:0===t||void 0})):a;return{...t,columns:l,rows:t.rows.map(t=>{let s={...t.values};return delete s[e],{...t,values:s}})}})},[t]),p=(0,x.useCallback)((e,s)=>{t(t=>"comparison-table"!==t.type?t:{...t,rows:t.rows.map(t=>t.id===e?{...t,...s}:t)})},[t]),b=(0,x.useCallback)((e,s,a)=>{t(t=>"comparison-table"!==t.type?t:{...t,rows:t.rows.map(t=>t.id===e?{...t,values:{...t.values,[s]:a}}:t)})},[t]),g=(0,x.useCallback)(()=>{t(e=>{if("comparison-table"!==e.type||e.rows.length>=M.tK.maxRows)return e;let t=L("row",e.rows.map(e=>e.id)),s=e.columns.reduce((e,t)=>(e[t.id]="",e),{});return{...e,rows:[...e.rows,{id:t,label:"ì íê° í목",values:s}]}})},[t]),v=(0,x.useCallback)(e=>{t(t=>"comparison-table"!==t.type||t.rows.length<=M.tK.minRows?t:{...t,rows:t.rows.filter(t=>t.id!==e)})},[t]);return(0,a.jsxs)("section",{className:"space-y-5",children:[(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-slate-950",children:"ì´"}),(0,a.jsxs)(f.$,{type:"button",variant:"outline",size:"sm",onClick:m,disabled:!s,children:[(0,a.jsx)(d.A,{className:"size-3.5"})," ì´ ì¶ê°"]})]}),(0,a.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:e.columns.map((e,t)=>(0,a.jsxs)("div",{className:"rounded-md border border-slate-200 bg-white p-3",children:[(0,a.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-2",children:[(0,a.jsxs)(f.$,{type:"button",variant:!0===e.highlighted?"default":"outline",size:"sm",onClick:()=>c(e.id),children:[!0===e.highlighted?(0,a.jsx)(n.A,{className:"size-3.5"}):null,"ê°ì¡°"]}),(0,a.jsx)(f.$,{type:"button",variant:"ghost",size:"icon-sm",onClick:()=>h(e.id),disabled:!l,"aria-label":`${t+1}ë² ì´ ìì `,children:(0,a.jsx)(u.A,{className:"size-4"})})]}),(0,a.jsx)(T,{id:R("column",e.id,"label"),label:"ì´ ì´ë¦",value:e.label,maxLength:M.tK.labelMax,onChange:t=>r(e.id,{label:t})})]},e.id))})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-slate-950",children:"í"}),(0,a.jsxs)(f.$,{type:"button",variant:"outline",size:"sm",onClick:g,disabled:!i,children:[(0,a.jsx)(d.A,{className:"size-3.5"})," í ì¶ê°"]})]}),(0,a.jsx)("div",{className:"space-y-3",children:e.rows.map((t,s)=>(0,a.jsxs)("div",{className:"rounded-md border border-slate-200 bg-white p-3",children:[(0,a.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-2",children:[(0,a.jsxs)("span",{className:"text-xs font-semibold text-slate-600",children:["í ",s+1]}),(0,a.jsx)(f.$,{type:"button",variant:"ghost",size:"icon-sm",onClick:()=>v(t.id),disabled:!o,"aria-label":`${s+1}ë² í ìì `,children:(0,a.jsx)(u.A,{className:"size-4"})})]}),(0,a.jsxs)("div",{className:"grid gap-3",children:[(0,a.jsx)(T,{id:R("row",t.id,"label"),label:"íê° í목",value:t.label,maxLength:M.tK.labelMax,onChange:e=>p(t.id,{label:e})}),(0,a.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:e.columns.map(e=>(0,a.jsx)(T,{id:R("cell",`${t.id}-${e.id}`,"value"),label:e.label,value:t.values[e.id]??"",maxLength:M.tK.cellMax,onChange:s=>b(t.id,e.id,s)},e.id))})]})]},t.id))})]})]})}function D({editor:e,onClose:t,onInsertHtml:s,onUpdateHtml:n,initialConfig:o,initialType:r}){let[d,c]=(0,x.useState)(()=>{let e;return null!==(e=(0,M.m4)(o))?e:void 0!==r?(0,A.S)(r)?.defaultConfig??null:null}),u=void 0!==n,b=d?.type??null,v=(0,x.useMemo)(()=>(0,p.w)(d),[d]),j=null!==v&&(u||void 0!==e||void 0!==s),y=(0,x.useCallback)(e=>{c(t=>null===t?t:e(t))},[]),N=(0,x.useCallback)(e=>{let t=(0,A.S)(e);null!==t&&c(t.defaultConfig)},[]),k=(0,x.useCallback)(()=>{u||c(null)},[u]),K=(0,x.useMemo)(()=>u?`${$.CA.fullLabel} ìì `:null===b?$.CA.fullLabel:(0,A.S)(b)?.name??$.CA.fullLabel,[u,b]),_=(0,x.useCallback)(e=>{y(t=>({...t,...e}))},[y]),L=(0,x.useCallback)((e,t)=>{y(s=>({...s,highlightStyle:{...s.highlightStyle,[e]:t}}))},[y]),S=(0,x.useCallback)(()=>
1{if(null!==v){if(void 0!==n){n(v),t();return}if(void 0!==e)return(0,z.dT)(e,v)?void t():void h.o.error(`${$.CA.shortLabel}를 ì´ ìì¹ì ì½ì
íì§ ëª»íìµëë¤.`);void 0!==s&&(s(v),t())}},[e,v,t,s,n]),R=null===d?null:(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsx)(F,{config:d,onUpdate:_}),"alternative-choice"===d.type?(0,a.jsx)(E,{config:d,updateConfig:y}):null,"comparison-table"===d.type?(0,a.jsx)(X,{config:d,updateConfig:y}):null,(0,a.jsx)(I,{highlightStyle:d.highlightStyle,onChange:L})]}),T=(0,a.jsx)("div",{className:"grid min-w-0 gap-4 p-4 md:grid-cols-2 md:p-5",children:A.N.map(e=>(0,a.jsx)(B,{preset:e,selected:e.type===b,onSelect:N},e.type))});return(0,a.jsx)(w.cj,{open:!0,onOpenChange:e=>e?void 0:t(),children:(0,a.jsxs)(w.h,{side:"right",showCloseButton:!1,className:"w-full gap-0 p-0 sm:max-w-none md:w-[980px] md:max-w-[calc(100vw-48px)]","data-testid":"business-asset-insert-panel",children:[(0,a.jsx)(w.Fm,{className:"border-b border-slate-200 px-4 py-3 md:px-5",children:(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[null===d||u?null:(0,a.jsx)(f.$,{type:"button",variant:"ghost",size:"icon-sm",onClick:k,"aria-label":"í리ì
ì¼ë¡ ëìê°ê¸°",children:(0,a.jsx)(i.A,{className:"size-4"})}),(0,a.jsx)("span",{className:"mt-1 flex size-8 shrink-0 items-center justify-center rounded-md bg-slate-100 text-slate-700",children:(0,a.jsx)(l.A,{className:"size-4"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)(w.qp,{className:"truncate text-base",children:K}),(0,a.jsx)(w.Qs,{className:"mt-1 line-clamp-2",children:null===d?$.CA.galleryPrompt:$.CA.editorPrompt})]})]}),(0,a.jsx)(f.$,{type:"button",variant:"ghost",size:"icon-sm",onClick:t,"aria-label":"ë«ê¸°",children:(0,a.jsx)(m.A,{className:"size-4"})})]})}),null===d?(0,a.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:T}):(0,a.jsxs)(C.tU,{defaultValue:"content",className:"min-h-0 flex-1 gap-0 overflow-hidden md:grid md:grid-cols-[minmax(0,1fr)_390px]",children:[(0,a.jsxs)(C.j7,{className:"mx-4 mt-4 grid w-auto grid-cols-2 md:hidden",children:[(0,a.jsx)(C.Xi,{value:"content",children:"ë´ì©"}),(0,a.jsx)(C.Xi,{value:"preview",children:"미리보기"})]}),(0,a.jsx)(C.av,{value:"content",forceMount:!0,className:"min-h-0 overflow-y-auto p-4 md:block md:p-5 md:data-[state=inactive]:block",children:R}),(0,a.jsxs)(C.av,{value:"preview",forceMount:!0,"data-testid":"business-asset-preview-pane",className:"min-h-0 overflow-y-auto bg-slate-50 p-4 md:block md:border-l md:border-slate-200 md:p-5 md:data-[state=inactive]:block",children:[(0,a.jsx)("div",{className:"mb-3 hidden text-xs font-semibold text-slate-600 md:block",children:"미리보기"}),(0,a.jsx)(g,{config:d,variant:"document"})]})]}),null!==d?(0,a.jsxs)(w.XW,{className:"sticky bottom-0 flex-row items-center justify-between border-t border-slate-200 bg-white px-4 py-3 md:px-5",children:[(0,a.jsx)("div",{className:"text-xs text-red-600","aria-live":"polite",children:null===v?"íì í목과 ìì íìì íì¸íì¸ì.":null}),(0,a.jsxs)("div",{className:"flex shrink-0 gap-2",children:[(0,a.jsx)(f.$,{type:"button",variant:"outline",onClick:t,children:"ì·¨ì"}),(0,a.jsx)(f.$,{type:"button",onClick:S,disabled:!j,children:u?"ìì ë°ì":"문ì
1ì ì½ì
"})]})]}):null]})})}},99412:(e,t,s)=>{s.d(t,{CG:()=>r,Fm:()=>x,Qs:()=>b,XW:()=>h,cj:()=>o,h:()=>m,kN:()=>d,qp:()=>p});var a=s(95155);s(12115);var l=s(33210),n=s(29483),i=s(40980);function o({...e}){return(0,a.jsx)(n.Root,{"data-slot":"sheet",...e})}function r({...e}){return(0,a.jsx)(n.Trigger,{"data-slot":"sheet-trigger",...e})}function d({...e}){return(0,a.jsx)(n.Close,{"data-slot":"sheet-close",...e})}function c({...e}){return(0,a.jsx)(n.Portal,{"data-slot":"sheet-portal",...e})}function u({className:e,...t}){return(0,a.jsx)(n.Overlay,{"data-slot":"sheet-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function m({className:e,children:t,side:s="right",showCloseButton:o=!0,showOverlay:r=!0,...d}){return(0,a.jsxs)(c,{children:[r?(0,a.jsx)(u,{}):null,(0,a.jsxs)(n.Content,{"data-slot":"sheet-content",className:(0,i.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===s&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===s&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===s&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===s&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...d,children:[t,o&&(0,a.jsxs)(n.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,a.jsx)(l.A,{className:"size-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function x({className:e,...t}){return(0,a.jsx)("div",{"data-slot":"sheet-header",className:(0,i.cn)("flex flex-col gap-1.5 p-4",e),...t})}function h({className:e,...t}){return(0,a.jsx)("div",{"data-slot":"sheet-footer",className:(0,i.cn)("mt-auto flex flex-col gap-2 p-4",e),...t})}function p({className:e,...t}){return(0,a.jsx)(n.Title,{"data-slot":"sheet-title",className:(0,i.cn)("text-foreground font-semibold",e),...t})}function b({className:e,...t}){return(0,a.jsx)(n.Description,{"data-slot":"sheet-description",className:(0,i.cn)("text-muted-foreground text-sm",e),...t})}}}]);
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.