1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9607],{990:(e,l,t)=>{t.d(l,{A:()=>l2});var n=t(80263),a=t(1061),i=t(10930),r=t(15314),o=t(582),s=t(52659),c=t(49631),d=t(13019),m=t(81072),u=t(89870),h=t(57907),g=t(77464),b=t(51915),p=t(3024),x=t(61681),j=t(87830),f=t(89053),C=t(93465),y=t(8283),v=t(94211),w=t(53239),_=t(80001),N=t(63933),I=t(81578),L=t(60922);let k=({resolve:e,onClick:l})=>{let{t}=(0,s.Bd)("managementInf");return(0,n.jsx)(L.z,{title:t("detail.custom-column.note-before-unload-modal.title"),size:"sm",actionsChildren:[(0,n.jsx)(a.M,{buttonType:"contrast",text:t("detail.custom-column.note-before-unload-modal.buttons.keep"),onClick:()=>e(!1)},"cancel"),(0,n.jsx)(a.M,{text:t("detail.custom-column.note-before-unload-modal.buttons.leave"),onClick:()=>{e(!0),l()},isDanger:!0},"apply")],isBgClose:!1,hasCloseButton:!1,status:"danger",children:(0,n.jsx)("p",{children:t("detail.custom-column.note-before-unload-modal.description")})})};var R=t(1536),A=t(15121),z=t(83341),S=t(20859),E=t(74344),V=t(57492),H=t(32722),M=t(41728),U=t(22),T=t(72738);t(3855),t(21228),t(44612),t(40588),t(89375),t(72856);var D=t(28902);function K(e){let{editor:l}=(0,M.aA)(),t=(0,w.useMemo)(()=>e||l,[e,l]);return(0,M.er)({editor:t,selector:e=>e.editor?{editor:e.editor,editorState:e.editor.state,canCommand:e.editor.can}:{editor:null,editorState:void 0,canCommand:void 0}})||{editor:null}}let Z=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 6C8 5.44772 8.44772 5 9 5H16C16.5523 5 17 5.44772 17 6C17 6.55228 16.5523 7 16 7H9C8.44772 7 8 6.55228 8 6Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C4.55228 3 5 3.44772 5 4L5 20C5 20.5523 4.55229 21 4 21C3.44772 21 3 20.5523 3 20L3 4C3 3.44772 3.44772 3 4 3Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 12C8 11.4477 8.44772 11 9 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H9C8.44772 13 8 12.5523 8 12Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 18C8 17.4477 8.44772 17 9 17H16C16.5523 17 17 17.4477 17 18C17 18.5523 16.5523 19 16 19H9C8.44772 19 8 18.5523 8 18Z",fill:"currentColor"})]}));Z.displayName="BlockquoteIcon";let B={mod:"â",command:"â",meta:"â",ctrl:"â",control:"â",alt:"â¥",option:"â¥",shift:"â§",backspace:"Del",delete:"â¦",enter:"â",escape:"â",capslock:"âª"},q=e=>{let{shortcutKeys:l,delimiter:t="+",capitalize:n=!0}=e;return l?l.split(t).map(e=>e.trim()).map(e=>((e,l,t=!0)=>l?B[e.toLowerCase()]||(t?e.toUpperCase():e):t?e.charAt(0).toUpperCase()+e.slice(1):e)(e,"u">typeof navigator&&navigator.platform.toLowerCase().includes("mac"),n)):[]},O=(e,l)=>!!l?.schema&&void 0!==l.schema.spec.marks.get(e),Y=(e,l)=>!!l?.schema&&void 0!==l.schema.spec.nodes.get(e);function P(e){return"number"==typeof e&&e>=0}function F(e,l){return!!e&&(Array.isArray(l)?l:[l]).some(l=>e.extensionManager.extensions.some(e=>e.name===l))}function $(e){let{editor:l,node:t,nodePos:n}=e;if(!l||!l.state?.doc)return null;let a=null!=t,i=P(n);if(!a&&!i)return null;if(a){let e=-1,n=null;if(l.state.doc.descendants((l,a)=>l!==t||(e=a,n=l,!1)),-1!==e&&null!==n)return{pos:e,node:n}}if(i){let e=function(e,l){try{let t=e.state.doc.nodeAt(l);if(!t)return null;return t}catch(e){return null}}(l,n);if(e)return{pos:n,node:e}}return null}function Q(e,l=[],t=!1){if(!e||!e.state.selection)return!1;let{selection:n}=e.state;if(n.empty)return!1;if(n instanceof D.nh){let e=n.node;return!!e&&l.includes(e.type.name)}if(t){let{$from:e}=n;for(let t=e.depth;t>0;t--){let n=e.node(t);if(l.includes(n.type.name))return!0}}return!1}function G(e,l=[]){if(!e||0===l.length)return!1;let{state:t}=e,{selection:n}=t,a=new Set(l);if(n instanceof D.nh){let e=n.node?.type?.name;return!!e&&a.has(e)}if(n instanceof D.U3||n instanceof D.i5){let e=!0;return t.doc.nodesBetween(n.from,n.to,l=>
1l.isTextblock&&!a.has(l.type.name)?(e=!1,!1):e),e}return!1}let J=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g,W="mod+shift+b";function X(e,l=!0){return!(!e||!e.isEditable||!Y("blockquote",e)||Q(e,["image"]))&&(l?!!G(e,["paragraph","heading","bulletList","orderedList","taskList","blockquote","codeBlock"])&&(e.can().toggleWrap("blockquote")||e.can().clearNodes()):e.can().toggleWrap("blockquote"))}let ee=(0,w.forwardRef)(({variant:e,size:l="default",appearance:t="default",trimText:a=!1,className:i,children:r,...o},s)=>(0,n.jsx)("div",{ref:s,className:`tiptap-badge ${i||""}`,"data-style":e,"data-size":l,"data-appearance":t,"data-text-trim":a?"on":"off",...o,children:r}));ee.displayName="Badge";var el=t(33080),et=t(3638);let en=({shortcuts:e})=>0===e.length?null:(0,n.jsx)("div",{children:e.map((e,l)=>(0,n.jsxs)(w.Fragment,{children:[l>0&&(0,n.jsx)("kbd",{children:"+"}),(0,n.jsx)("kbd",{children:e})]},l))}),ea=(0,w.forwardRef)(({className:e,children:l,tooltip:t,showTooltip:a=!0,shortcutKeys:i,"aria-label":r,...o},s)=>{let c=(0,w.useMemo)(()=>q({shortcutKeys:i}),[i]),d=(0,n.jsx)("button",{className:(0,et.A)("tiptap-button",e),ref:s,"aria-label":r,...o,children:l});return t&&a?(0,n.jsxs)(el.bL,{children:[(0,n.jsx)(el.l9,{render:(0,n.jsx)("span",{style:{display:"inline-flex"}}),children:d}),(0,n.jsxs)(el.UC,{children:[t,(0,n.jsx)(en,{shortcuts:c})]})]}):d});ea.displayName="Button";let ei=(0,w.forwardRef)(({className:e,children:l,orientation:t="vertical",...a},i)=>(0,n.jsx)("div",{ref:i,className:(0,et.A)("tiptap-button-group",e),"data-orientation":t,role:"group",...a,children:l}));function er({shortcutKeys:e=W}){return(0,n.jsx)(ee,{children:q({shortcutKeys:e})})}ei.displayName="ButtonGroup";let eo=(0,w.forwardRef)(({editor:e,text:l,hideWhenUnavailable:t=!1,onToggled:a,showShortcut:i=!1,onClick:r,children:o,...s},c)=>{let{editor:d}=K(e),{isVisible:m,canToggle:u,isActive:h,handleToggle:g,label:b,shortcutKeys:p,Icon:x}=function(e){let{editor:l,hideWhenUnavailable:t=!1,onToggled:n}=e||{},{editor:a}=K(l),[i,r]=(0,w.useState)(!0),o=X(a),s=a?.isActive("blockquote")||!1;return(0,w.useEffect)(()=>{if(!a)return;let e=()=>{r(function(e){let{editor:l,hideWhenUnavailable:t}=e;return!!l&&!!l.isEditable&&!!Y("blockquote",l)&&(!t||!!l.isActive("code")||X(l))}({editor:a,hideWhenUnavailable:t}))};return e(),a.on("selectionUpdate",e),()=>{a.off("selectionUpdate",e)}},[a,t]),{isVisible:i,isActive:s,handleToggle:(0,w.useCallback)(()=>{if(!a)return!1;let e=function(e){if(!e||!e.isEditable||!X(e))return!1;try{let l=e.view,t=l.state,n=t.tr;if(t.selection.empty||t.selection instanceof D.U3){let a=$({editor:e,node:t.selection.$anchor.node(1)})?.pos;if(!P(a))return!1;n=n.setSelection(D.nh.create(t.doc,a)),l.dispatch(n),t=l.state}let a=t.selection,i=e.chain().focus();if(a instanceof D.nh){let e=a.node.firstChild?.firstChild,l=a.node.lastChild?.lastChild,n=e?a.from+e.nodeSize:a.from+1,r=l?a.to-l.nodeSize:a.to-1,o=t.doc.resolve(n),s=t.doc.resolve(r);i=i.setTextSelection(D.U3.between(o,s)).clearNodes()}return(e.isActive("blockquote")?i.lift("blockquote"):i.wrapIn("blockquote")).run(),e.chain().focus().selectTextblockEnd().run(),!0}catch{return!1}}(a);return e&&n?.(),e},[a,n]),canToggle:o,label:"Blockquote",shortcutKeys:W,Icon:Z}}({editor:d,hideWhenUnavailable:t,onToggled:a}),j=(0,w.useCallback)(e=>{r?.(e),e.defaultPrevented||g()},[g,r]);return(0,n.jsx)(ea,{type:"button","data-style":"ghost","data-active-state":h?"on":"off",role:"button",tabIndex:-1,disabled:!u||!m,"data-disabled":!u||!m,"aria-label":b,"aria-pressed":h,tooltip:"Blockquote",onClick:j,...s,ref:c,children:o??(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x,{className:"tiptap-button-icon"}),l&&(0,n.jsx)("span",{className:"tiptap-button-text",children:l}),i&&(0,n.jsx)(er,{shortcutKeys:p})]})})});eo.displayName="BlockquoteButton";let es=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.70711 2.29289C7.09763 2.68342 7.09763 3.31658 6.70711 3.70711L4.41421 6L6.70711 8.29289C7.09763 8.68342 7.09763 9.31658 6.70711 9.70711C6.31658 10.0976 5.68342 10.0976 5.29289 9.70711L2.29289 6.70711C1.90237 6.31658 1.90237 5.68342 2.29289 5.29289L5.29289 2.29289C5.68342 1.90237 6.31658 1.90237 6.70711 2.29289Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2929 2.29289C10.6834 1.90237 11.3166 1.90237 11.7071 2.29289L14.7071 5.29289C15.0976 5.68342 15.0976 6.31658 14.7071 6.70711L11.7071 9.70711C11.3166 10.0976 10.6834 10.0976 10.2929 9.70711C9.90237 9.31658 9.90237 8.68342 10.2929 8.29289L12.5858 6L10.2929 3.70711C9.90237 3.31658 9.90237 2.68342 10.2929 2.29289Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 4C17 3.44772 17.4477 3 18 3H19C20.6569 3 22 4.34315 22 6V18C22 19.6569 20.6569 21 19 21H5C3.34315 21 2 19.6569 2 18V12C2 11.4477 2.44772 11 3 11C3.55228 11 4 11.4477 4 12V18C4 18.5523 4.44772 19 5 19H19C19.5523 19 20 18.5523 20 18V6C20 5.44772 19.5523 5 19 5H18C17.4477 5 17 4.55228 17 4Z",fill:"currentColor"})]}));es.displayName="CodeBlockIcon";let ec="mod+alt+c";function ed(e,l=!0){return!(!e||!e.isEditable||!Y("codeBlock",e)||Q(e,["image"]))&&(l?!!G(e,["paragraph","heading","bulletList","orderedList","taskList","blockquote","codeBlock"])&&(e.can().toggleNode("codeBlock","paragraph")||e.can().clearNodes()):e.can().toggleNode("codeBlock","paragraph"))}function em({shortcutKeys:e=ec}){return(0,n.jsx)(ee,{children:q({shortcutKeys:e})})}let eu=(0,w.forwardRef)(({editor:e,text:l,hideWhenUnavailable:t=!1,onToggled:a,showShortcut:i=!1,onClick:r,children:o,...s},c)=>{let{editor:d}=K(e),{isVisible:m,canToggle:u,isActive:h,handleToggle:g,label:b,shortcutKeys:p,Icon:x}=function(e){let{editor:l,hideWhenUnavailable:t=!1,onToggled:n}=e||{},{editor:a}=K(l),[i,r]=(0,w.useState)(!0),o=ed(a),s=a?.isActive("codeBlock")||!1;return(0,w.useEffect)(()=>
1{if(!a)return;let e=()=>{r(function(e){let{editor:l,hideWhenUnavailable:t}=e;return!!l&&!!l.isEditable&&!!Y("codeBlock",l)&&(!t||!!l.isActive("code")||ed(l))}({editor:a,hideWhenUnavailable:t}))};return e(),a.on("selectionUpdate",e),()=>{a.off("selectionUpdate",e)}},[a,t]),{isVisible:i,isActive:s,handleToggle:(0,w.useCallback)(()=>{if(!a)return!1;let e=function(e){if(!e||!e.isEditable||!ed(e))return!1;try{let l=e.view,t=l.state,n=t.tr;if(t.selection.empty||t.selection instanceof D.U3){let a=$({editor:e,node:t.selection.$anchor.node(1)})?.pos;if(!P(a))return!1;n=n.setSelection(D.nh.create(t.doc,a)),l.dispatch(n),t=l.state}let a=t.selection,i=e.chain().focus();if(a instanceof D.nh){let e=a.node.firstChild?.firstChild,l=a.node.lastChild?.lastChild,n=e?a.from+e.nodeSize:a.from+1,r=l?a.to-l.nodeSize:a.to-1,o=t.doc.resolve(n),s=t.doc.resolve(r);i=i.setTextSelection(D.U3.between(o,s)).clearNodes()}return(e.isActive("codeBlock")?i.setNode("paragraph"):i.toggleNode("codeBlock","paragraph")).run(),e.chain().focus().selectTextblockEnd().run(),!0}catch{return!1}}(a);return e&&n?.(),e},[a,n]),canToggle:o,label:"Code Block",shortcutKeys:ec,Icon:es}}({editor:d,hideWhenUnavailable:t,onToggled:a}),j=(0,w.useCallback)(e=>{r?.(e),e.defaultPrevented||g()},[g,r]);return(0,n.jsx)(ea,{type:"button","data-style":"ghost","data-active-state":h?"on":"off",role:"button",disabled:!u||!m,"data-disabled":!u||!m,tabIndex:-1,"aria-label":b,"aria-pressed":h,tooltip:"Code Block",onClick:j,...s,ref:c,children:o??(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x,{className:"tiptap-button-icon"}),l&&(0,n.jsx)("span",{className:"tiptap-button-text",children:l}),i&&(0,n.jsx)(em,{shortcutKeys:p})]})})});function eh({editor:e,containerRef:l,query:t,items:n,onSelect:a,onClose:i,orientation:r="vertical",autoSelectFirstItem:o=!0}){let[s,c]=(0,w.useState)(o?0:-1);return(0,w.useEffect)(()=>{let t=e=>{if(!n.length)return!1;let l=()=>c(e=>-1===e?0:(e+1)%n.length),t=()=>c(e=>-1===e?n.length-1:(e-1+n.length)%n.length);switch(e.key){case"ArrowUp":if("horizontal"===r)return!1;return e.preventDefault(),t(),!0;case"ArrowDown":if("horizontal"===r)return!1;return e.preventDefault(),l(),!0;case"ArrowLeft":if("vertical"===r)return!1;return e.preventDefault(),t(),!0;case"ArrowRight":if("vertical"===r)return!1;return e.preventDefault(),l(),!0;case"Tab":return e.preventDefault(),e.shiftKey?t():l(),!0;case"Home":return e.preventDefault(),c(0),!0;case"End":return e.preventDefault(),c(n.length-1),!0;case"Enter":if(e.isComposing)return!1;return e.preventDefault(),-1!==s&&n[s]&&a?.(n[s]),!0;case"Escape":return e.preventDefault(),i?.(),!0;default:return!1}},o=null;if(e?o=e.view.dom:l?.current&&(o=l.current),o)return o.addEventListener("keydown",t,!0),()=>{o?.removeEventListener("keydown",t,!0)}},[e,l,n,s,a,i,r]),(0,w.useEffect)(()=>{t&&c(o?0:-1)},[t,o]),{selectedIndex:n.length?s:void 0,setSelectedIndex:c}}eu.displayName="CodeBlockButton";let eg=(0,w.memo)(({className:e,...l})=>(0,n.jsx)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.43471 4.01458C4.34773 4.06032 4.26607 4.11977 4.19292 4.19292C4.11977 4.26607 4.06032 4.34773 4.01458 4.43471C2.14611 6.40628 1 9.0693 1 12C1 18.0751 5.92487 23 12 23C14.9306 23 17.5936 21.854 19.5651 19.9856C19.6522 19.9398 19.7339 19.8803 19.8071 19.8071C19.8803 19.7339 19.9398 19.6522 19.9856 19.5651C21.854 17.5936 23 14.9306 23 12C23 5.92487 18.0751 1 12 1C9.0693 1 6.40628 2.14611 4.43471 4.01458ZM6.38231 4.9681C7.92199 3.73647 9.87499 3 12 3C16.9706 3 21 7.02944 21 12C21 14.125 20.2635 16.078 19.0319 17.6177L6.38231 4.9681ZM17.6177 19.0319C16.078 20.2635 14.125 21 12 21C7.02944 21 3 16.9706 3 12C3 9.87499 3.73647 7.92199 4.9681 6.38231L17.6177 19.0319Z",fill:"currentColor"})}));eg.displayName="BanIcon";let eb=(0,w.memo)(({className:e,...l})=>(0,n.jsx)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7072 4.70711C15.0977 4.31658 15.0977 3.68342 14.7072 3.29289C14.316
17 2.90237 13.6835 2.90237 13.293 3.29289L8.69294 7.89286L8.68594 7.9C8.13626 8.46079 7.82837 9.21474 7.82837 10C7.82837 10.2306 7.85491 10.4584 7.90631 10.6795L2.29289 16.2929C2.10536 16.4804 2 16.7348 2 17V20C2 20.5523 2.44772 21 3 21H12C12.2652 21 12.5196 20.8946 12.7071 20.7071L15.3205 18.0937C15.5416 18.1452 15.7695 18.1717 16.0001 18.1717C16.7853 18.1717 17.5393 17.8639 18.1001 17.3142L22.7072 12.7071C23.0977 12.3166 23.0977 11.6834 22.7072 11.2929C22.3167 10.9024 21.6835 10.9024 21.293 11.2929L16.6971 15.8887C16.5105 16.0702 16.2605 16.1717 16.0001 16.1717C15.7397 16.1717 15.4897 16.0702 15.303 15.8887L10.1113 10.697C9.92992 10.5104 9.82837 10.2604 9.82837 10C9.82837 9.73963 9.92992 9.48958 10.1113 9.30297L14.7072 4.70711ZM13.5858 17L9.00004 12.4142L4 17.4142V19H11.5858L13.5858 17Z",fill:"currentColor"})}));eb.displayName="HighlighterIcon";let ep=(0,w.forwardRef)(({className:e,...l},t)=>(0,n.jsx)("div",{ref:t,className:(0,et.A)("tiptap-card",e),...l}));ep.displayName="Card",(0,w.forwardRef)(({className:e,...l},t)=>(0,n.jsx)("div",{ref:t,className:(0,et.A)("tiptap-card-header",e),...l})).displayName="CardHeader";let ex=(0,w.forwardRef)(({className:e,...l},t)=>(0,n.jsx)("div",{ref:t,className:(0,et.A)("tiptap-card-body",e),...l}));ex.displayName="CardBody";let ej=(0,w.forwardRef)(({className:e,orientation:l="vertical",...t},a)=>(0,n.jsx)("div",{ref:a,"data-orientation":l,className:(0,et.A)("tiptap-card-item-group",e),...t}));ej.displayName="CardItemGroup",(0,w.forwardRef)(({className:e,...l},t)=>(0,n.jsx)("div",{ref:t,className:(0,et.A)("tiptap-card-group-label",e),...l})).displayName="CardGroupLabel",(0,w.forwardRef)(({className:e,...l},t)=>(0,n.jsx)("div",{ref:t,className:(0,et.A)("tiptap-card-footer",e),...l})).displayName="CardFooter";var ef=t(54896);function eC({...e}){return(0,n.jsx)(ef.bL,{...e})}function ey({...e}){return(0,n.jsx)(ef.l9,{...e})}function ev({className:e,align:l="center",sideOffset:t=4,...a}){return(0,n.jsx)(ef.ZL,{children:(0,n.jsx)(ef.UC,{align:l,sideOffset:t,className:(0,et.A)("tiptap-popover",e),...a})})}let ew=(0,w.forwardRef)(({decorative:e,orientation:l="vertical",className:t,...a},i)=>(0,n.jsx)("div",{className:(0,et.A)("tiptap-separator",t),"data-orientation":l,...e?{role:"none"}:{"aria-orientation":"vertical"===l?l:void 0,role:"separator"},...a,ref:i}));ew.displayName="Separator";var e_=t(63380);let eN="mod+shift+h",eI=[{label:"Default background",value:"var(--global-colors-white)",border:"var(--global-colors-white)"},{label:"Gray background",value:"var(--global-colors-gray-20)",border:"var(--global-colors-gray-20)"},{label:"Orange background",value:"var(--global-colors-orange-20)",border:"var(--global-colors-orange-20)"},{label:"Yellow background",value:"var(--global-colors-yellow-20)",border:"var(--global-colors-yellow-20)"},{label:"Green background",value:"var(--global-colors-green-20)",border:"var(--global-colors-green-20)"},{label:"Blue background",value:"var(--global-colors-blue-20)",border:"var(--global-colors-blue-20)"},{label:"Purple background",value:"var(--global-colors-purple-20)",border:"var(--global-colors-purple-20)"},{label:"Red background",value:"var(--global-colors-red-20)",border:"var(--global-colors-red-20)"}];function eL(e){let l=new Map(eI.map(e=>[e.value,e]));return e.map(e=>l.get(e)).filter(e=>!!e)}function ek(e,l="mark"){if(!e||!e.isEditable)return!1;if("mark"===l)return!(!O("highlight",e)||Q(e,["image"]))&&e.can().setMark("highlight");if(!F(e,["nodeBackground"]))return!1;try{return e.can().toggleNodeBackgroundColor("test")}catch{return!1}}function eR(e){let{editor:l,label:t,highlightColor:n,hideWhenUnavailable:a=!1,mode:i="mark",onApplied:r}=e,{editor:o}=K(l),[s,c]=(0,w.useState)(!0),d=ek(o,i),m=function(e,l,t="mark"){if(!e||!e.isEditable)return!1;if("mark"===t)return l?e.isActive("highlight",{color:l}):e.isActive("highlight");if(!l)return!1;try{let{state:t}=e,{selection:n}=t,a=n.$anchor;for(let e=a.depth;e>=0;e--){let t=a.node(e);if(t&&t.attrs?.backgroundColor===l)return!0}return!1}catch{return!1}}(o,n,i);(0,w.useEffect)(()=>{if(!o)return;let e=()=>{c(function(e){let{editor:l,hideWhenUnavailable:t,mode:n}=e;if(!l||!l.isEditable)return!1;if("mark"===n){if(!O("highlight",l))return!1}
1else if(!F(l,["nodeBackground"]))return!1;return!t||!!l.isActive("code")||ek(l,n)}({editor:o,hideWhenUnavailable:a,mode:i}))};return e(),o.on("selectionUpdate",e),()=>{o.off("selectionUpdate",e)}},[o,a,i]);let u=(0,w.useCallback)(()=>{if(!o||!d||!n||!t)return!1;if("mark"===i){if(o.state.storedMarks){let e=o.schema.marks.highlight;e&&o.view.dispatch(o.state.tr.removeStoredMark(e))}return setTimeout(()=>{let e=o.chain().focus().toggleMark("highlight",{color:n}).run();return e&&r?.({color:n,label:t,mode:i}),e},0),!0}{let e=o.chain().focus().toggleNodeBackgroundColor(n).run();return e&&r?.({color:n,label:t,mode:i}),e}},[d,n,o,t,r,i]),h=(0,w.useCallback)(()=>{let e=function(e,l="mark"){return!!e&&!!e.isEditable&&!!ek(e,l)&&("mark"===l?e.chain().focus().unsetMark("highlight").run():e.chain().focus().unsetNodeBackgroundColor().run())}(o,i);return e&&r?.({color:"",label:"Remove highlight",mode:i}),e},[o,r,i]);return(0,e_.vC)(eN,e=>{e.preventDefault(),u()},{enabled:s&&d,enableOnContentEditable:!0,enableOnFormTags:!0}),{isVisible:s,isActive:m,handleColorHighlight:u,handleRemoveHighlight:h,canColorHighlight:d,label:t||"Highlight",shortcutKeys:eN,Icon:eb,mode:i}}function eA({shortcutKeys:e=eN}){return(0,n.jsx)(ee,{children:q({shortcutKeys:e})})}let ez=(0,w.forwardRef)(({editor:e,highlightColor:l,text:t,hideWhenUnavailable:a=!1,mode:i="mark",onApplied:r,showShortcut:o=!1,onClick:s,children:c,style:d,...m},u)=>{let{editor:h}=K(e),{isVisible:g,canColorHighlight:b,isActive:p,handleColorHighlight:x,label:j,shortcutKeys:f}=eR({editor:h,highlightColor:l,label:t||`Toggle highlight (${l})`,hideWhenUnavailable:a,mode:i,onApplied:r}),C=(0,w.useCallback)(e=>{s?.(e),e.defaultPrevented||x()},[x,s]),y=(0,w.useMemo)(()=>({...d,"--highlight-color":l}),[l,d]);return g?(0,n.jsx)(ea,{type:"button","data-style":"ghost","data-active-state":p?"on":"off",role:"button",tabIndex:-1,disabled:!b,"data-disabled":!b,"aria-label":j,"aria-pressed":p,tooltip:j,onClick:C,style:y,...m,ref:u,children:c??(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"tiptap-button-highlight",style:{"--highlight-color":l}}),t&&(0,n.jsx)("span",{className:"tiptap-button-text",children:t}),o&&(0,n.jsx)(eA,{shortcutKeys:f})]})}):null});ez.displayName="ColorHighlightButton";let eS=(0,w.forwardRef)(({className:e,children:l,...t},a)=>(0,n.jsx)(ea,{type:"button",className:e,"data-style":"ghost","data-appearance":"default",role:"button",tabIndex:-1,"aria-label":"Highlight text",tooltip:"Highlight",ref:a,...t,children:l??(0,n.jsx)(eb,{className:"tiptap-button-icon"})}));function eE({editor:e,colors:l=eL(["var(--global-colors-green-20)","var(--global-colors-blue-20)","var(--global-colors-red-20)","var(--global-colors-purple-20)","var(--global-colors-yellow-20)"])}){let{handleRemoveHighlight:t}=eR({editor:e}),a=(0,w.useRef)(null),{selectedIndex:i}=eh({containerRef:a,items:(0,w.useMemo)(()=>[...l,{label:"Remove highlight",value:"none"}],[l]),orientation:"both",onSelect:e=>{if(!a.current)return!1;let l=a.current.querySelector('[data-highlighted="true"]');return l&&l.click(),"none"===e.value&&t(),!0},autoSelectFirstItem:!1});return(0,n.jsx)(ep,{ref:a,tabIndex:0,children:(0,n.jsx)(ex,{children:(0,n.jsxs)(ej,{orientation:"horizontal",children:[(0,n.jsx)(ei,{orientation:"horizontal",children:l.map((l,t)=>(0,n.jsx)(ez,{editor:e,highlightColor:l.value,tooltip:l.label,"aria-label":`${l.label} highlight color`,tabIndex:t===i?0:-1,"data-highlighted":i===t},l.value))}),(0,n.jsx)(ew,{}),(0,n.jsx)(ei,{orientation:"horizontal",children:(0,n.jsx)(ea,{onClick:t,"aria-label":"Remove highlight",tooltip:"Remove highlight",tabIndex:i===l.length?0:-1,type:"button",role:"menuitem","data-style":"ghost","data-highlighted":i===l.length,children:(0,n.jsx)(eg,{className:"tiptap-button-icon"})})})]})})})}function eV({editor:e,colors:l=eL(["var(--global-colors-green-20)","var(--global-colors-blue-20)","var(--global-colors-red-20)","var(--global-colors-purple-20)","var(--global-colors-yellow-20)"]),hideWhenUnavailable:t=!1,onApplied:a,...i}){let{editor:r}=K(e),[o,s]=(0,w.useState)(!1),{isVisible:c,canColorHighlight:d,isActive:m,label:u,Icon:h}=eR({editor:r,hideWhenUnavailable:t,onApplied:a});return(0,n.jsxs)(eC,{open:o,onOpenChange:s,children:[(0,n.jsx)(ey,{asChild:!0,children:(0,n.jsx)(eS,{disabled:!d||!c,"data-active-state":m?"on":"off","data-disabled":!d||!c,"aria-pressed":m,"aria-label":u,tooltip:u,...i,children:(0,n.jsx)(h,{className:"tiptap-button-icon"})})}),(0,n.jsx)(ev,{"aria-label":"Highlight colors",children:(0,n.jsx)(eE,{editor:r,colors:l})})]})}eS.displayName="ColorHighlightPopoverButton";let eH=(0,w.memo)(({className:e,width:l=24,height:t=24,...a})=>(0,n.jsx)("svg",{width:l,height:t,className:e,viewBox:"0 0 24 24",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",...a,children:(0,n.jsx)("path",{d:"M6 3C6.55228 3 7 3.44772 7 4V11H17V4C17 3.44772 17.4477 3 18 3C18.5523 3 19 3.44772 19 4V20C19 20.5523 18.5523 21 18 21C17.4477 21 17 20.5523 17 20V13H7V20C7 20.5523 6.55228 21 6 21C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3Z",fill:"currentColor"})}));eH.displayName="HeadingIcon";var eM=t(95747);let eU=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M16 10C16 9.44772 16.4477 9 17 9H21C21.5523 9 22 9.44772 22 10C22 10.5523 21.5523 11 21 11H18V12H18.3C20.2754 12 22 13.4739 22 15.5C22 17.5261 20.2754 19 18.3 19C17.6457 19 17.0925 18.8643 16.5528 18.5944C16.0588 18.3474 15.8586 17.7468 16.1055 17.2528C16.3525 16.7588 16.9532 16.5586 17.4472 16.8056C17.7074 16.9357 17.9542 17 18.3 17C19.3246 17 20 16.2739 20 15.5C20 14.7261 19.3246 14 18.3 14H17C16.4477 14 16 13.5523 16 13L16 12.9928V10Z",fill:"currentColor"})]}));eU.displayName="HeadingFiveIcon";let eT=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{d:"M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M17 9C17.5523 9 18 9.44772 18 10V13H20V10C20 9.44772 20.4477 9 21 9C21.5523 9 22 9.44772 22 10V18C22 18.5523 21.5523 19 21 19C20.4477 19 20 18.5523 20 18V15H17C16.4477 15 16 14.5523 16 14V10C16 9.44772 16.4477 9 17 9Z",fill:"currentColor"})]}));eT.displayName="HeadingFourIcon";let eD=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 9.29289C21.0976 9.68342 21.0976 10.3166 20.7071 10.7071C19.8392 11.575 19.2179 12.2949 18.7889 13.0073C18.8587 13.0025 18.929 13 19 13C20.6569 13 22 14.3431 22 16C22 17.6569 20.6569 19 19 19C17.3431 19 16 17.6569 16 16C16 14.6007 16.2837 13.4368 16.8676 12.3419C17.4384 11.2717 18.2728 10.3129 19.2929 9.29289C19.6834 8.90237 20.3166 8.90237 20.7071 9.29289ZM19 17C18.4477 17 18 16.5523 18 16C18 15.4477 18.4477 15 19 15C19.5523 15 20 15.4477 20 16C20 16.5523 19.5523 17 19 17Z",fill:"currentColor"})]}));eD.displayName="HeadingSixIcon";let eK=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{d:"M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4608 11.2169C19.1135 11.0531 18.5876 11.0204 18.0069 11.3619C17.5309 11.642 16.918 11.4831 16.638 11.007C16.358 10.531 16.5169 9.91809 16.9929 9.63807C18.1123 8.97962 19.3364 8.94691 20.314 9.40808C21.2839 9.86558 21.9999 10.818 21.9999 12C21.9999 12.7957 21.6838 13.5587 21.1212 14.1213C20.5586 14.6839 19.7956 15 18.9999 15C18.4476 15 17.9999 14.5523 17.9999 14C17.9999 13.4477 18.4476 13 18.9999 13C19.2651 13 19.5195 12.8947 19.707 12.7071C19.8946 12.5196 19.9999 12.2652 19.9999 12C19.9999 11.6821 19.8159 11.3844 19.4608 11.2169Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0001 14C18.0001 13.4477 18.4478 13 19.0001 13C19.7957 13 20.5588 13.3161 21.1214 13.8787C21.684 14.4413 22.0001 15.2043 22.0001 16C22.0001 17.2853 21.2767 18.3971 20.1604 18.8994C19.0257 19.41 17.642 19.2315 16.4001 18.3C15.9582 17.9686 15.8687 17.3418 16.2001 16.9C16.5314 16.4582 17.1582 16.3686 17.6001 16.7C18.3581 17.2685 18.9744 17.24 19.3397 17.0756C19.7234 16.9029 20.0001 16.5147 20.0001 16C20.0001 15.7348 19.8947 15.4804 19.7072 15.2929C19.5196 15.1054 19.2653 15 19.0001 15C18.4478 15 18.0001 14.5523 18.0001 14Z",fill:"currentColor"})]}));eK.displayName="HeadingThreeIcon";let eZ=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M22.0001 12C22.0001 10.7611 21.1663 9.79297 20.0663 9.42632C18.9547 9.05578 17.6171 9.28724 16.4001 10.2C15.9582 10.5314 15.8687 11.1582 16.2001 11.6C16.5314 12.0418 17.1582 12.1314 17.6001 11.8C18.383 11.2128 19.0455 11.1942 19.4338 11.3237C19.8339 11.457 20.0001 11.7389 20.0001 12C20.0001 12.4839 19.8554 12.7379 19.6537 12.9481C19.4275 13.1837 19.1378 13.363 18.7055 13.6307C18.6313 13.6767 18.553 13.7252 18.4701 13.777C17.9572 14.0975 17.3128 14.5261 16.8163 15.2087C16.3007 15.9177 16.0001 16.8183 16.0001 18C16.0001 18.5523 16.4478 19 17.0001 19H21.0001C21.5523 19 22.0001 18.5523 22.0001 18C22.0001 17.4477 21.5523 17 21.0001 17H18.131C18.21 16.742 18.3176 16.5448 18.4338 16.385C18.6873 16.0364 19.0429 15.7775 19.5301 15.473C19.5898 15.4357 19.6536 15.3966 19.7205 15.3556C20.139 15.0992 20.6783 14.7687 21.0964 14.3332C21.6447 13.7621 22.0001 13.0161 22.0001 12Z",fill:"currentColor"})]}));eZ.displayName="HeadingTwoIcon";let eB={1:eM.W,2:eZ,3:eK,4:eT,5:eU,6:eD},eq={1:"ctrl+alt+1",2:"ctrl+alt+2",3:"ctrl+alt+3",4:"ctrl+alt+4",5:"ctrl+alt+5",6:"ctrl+alt+6"};function eO(e,l,t=!0){return!(!e||!e.isEditable||!Y("heading",e)||Q(e,["image"]))&&(t?!!G(e,["paragraph","heading","bulletList","orderedList","taskList","blockquote","codeBlock"])&&(l?e.can().setNode("heading",{level:l})||e.can().clearNodes():e.can().setNode("heading")||e.can().clearNodes()):l?e.can().setNode("heading",{level:l}):e.can().setNode("heading"))}function eY(e,l){return!!e&&!!e.isEditable&&(Array.isArray(l)?l.some(l=>e.isActive("heading",{level:l})):l?e.isActive("heading",{level:l}):e.isActive("heading"))}function eP(e){let{editor:l,level:t,hideWhenUnavailable:n}=e;return!!l&&!!l.isEditable&&!!Y("heading",l)&&(!n||!!l.isActive("code")||(Array.isArray(t)?t.some(e=>eO(l,e)):eO(l,t)))}function eF({level:e,shortcutKeys:l=eq[e]}){return(0,n.jsx)(ee,{children:q({shortcutKeys:l})})}let e$=(0,w.forwardRef)(({editor:e,level:l,text:t,hideWhenUnavailable:a=!1,onToggled:i,showShortcut:r=!1,onClick:o,children:s,...c},d)=>{let{editor:m}=K(e),{isVisible:u,canToggle:h,isActive:g,handleToggle:b,label:p,Icon:x,shortcutKeys:j}=function(e){let{editor:l,level:t,hideWhenUnavailable:n=!1,onToggled:a}=e,{editor:i}=K(l),[r,o]=(0,w.useState)(!0),s=eO(i,t),c=eY(i,t);return(0,w.useEffect)(()=>{if(!i)return;let e=()=>{o(eP({editor:i,level:t,hideWhenUnavailable:n}))};return e(),i.on("selectionUpdate",e),()=>{i.off("selectionUpdate",e)}},[i,t,n]),{isVisible:r,isActive:c,handleToggle:(0,w.useCallback)(()=>{if(!i)return!1;let e=function(e,l){if(!e||!e.isEditable)return!1;let t=Array.isArray(l)?l:[l],n=t.find(l=>eO(e,l));if(!n)return!1;try{let l=e.view,a=l.state,i=a.tr;if(a.selection.empty||a.selection instanceof D.U3){let t=$({editor:e,node:a.selection.$anchor.node(1)})?.pos;if(!P(t))return!1;i=i.setSelection(D.nh.create(a.doc,t)),l.dispatch(i),a=l.state}let r=a.selection,o=e.chain().focus();if(r instanceof D.nh){let e=r.node.firstChild?.firstChild,l=r.node.lastChild?.lastChild,t=e?r.from+e.nodeSize:r.from+1,n=l?r.to-l.nodeSize:r.to-1,i=a.doc.resolve(t),s=a.doc.resolve(n);o=o.setTextSelection(D.U3.between(i,s)).clearNodes()}return(t.some(l=>e.isActive("heading",{level:l}))?o.setNode("paragraph"):o.setNode("heading",{level:n})).run(),e.chain().focus().selectTextblockEnd().run(),!0}catch{return!1}}(i,t);return e&&a?.(),e},[i,t,a]),canToggle:s,label:`Heading ${t}`,shortcutKeys:eq[t],Icon:eB[t]}}({editor:m,level:l,hideWhenUnavailable:a,onToggled:i}),f=(0,w.useCallback)(e=>{o?.(e),e.defaultPrevented||b()},[b,o]);return u?(0,n.jsx)(ea,{type:"button","data-style":"ghost","data-active-state":g?"on":"off",role:"button",tabIndex:-1,disabled:!h,"data-disabled":!h,"aria-label":p,"aria-pressed":g,tooltip:p,onClick:f,...c,ref:d,children:s??(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x,{className:"tiptap-button-icon"}),t&&(0,n.jsx)("span",{className:"tiptap-button-text",children:t}),r&&(0,n.jsx)(eF,{level:l,shortcutKeys:j})]})}):null});e$.displayName="HeadingButton";let eQ=(0,w.memo)(({className:e,...l})=>(0,n.jsx)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z",fill:"currentColor"})}));eQ.displayName="ChevronDownIcon";var eG=t(22874);function eJ({...e}){return(0,n.jsx)(eG.bL,{modal:!1,...e})}function eW({...e}){return(0,n.jsx)(eG.ZL,{...e})}let eX=(0,w.forwardRef)(({...e},l)=>(0,n.jsx)(eG.l9,{ref:l,...e}));eX.displayName=eG.l9.displayName,eG.YJ,eG.Pb,eG.z6;let e1=eG.q7;eG.ZP,(0,w.forwardRef)(({className:e,portal:l=!0,...t},a)=>{let i=(0,n.jsx)(eG.G5,{ref:a,className:(0,et.A)("tiptap-dropdown-menu",e),...t});return l?(0,n.jsx)(eW,{..."object"==typeof l?l:{},children:i}):i}).displayName=eG.G5.displayName;let e0=(0,w.forwardRef)(({className:e,sideOffset:l=4,portal:t=!1,...a},i)=>{let r=(0,n.jsx)(eG.UC,{ref:i,sideOffset:l,onCloseAutoFocus:e=>e.preventDefault(),className:(0,et.A)("tiptap-dropdown-menu",e),...a});return t?(0,n.jsx)(eW,{..."object"==typeof t?t:{},children:r}):r});e0.displayName=eG.UC.displayName;let e2=(0,w.forwardRef)(({editor:e,levels:l=[1,2,3,4,5,6],hideWhenUnavailable:t=!1,portal:a=!1,onOpenChange:i,...r},o)=>{let{editor:s}=K(e),[c,d]=(0,w.useState)(!1),{isVisible:m,isActive:u,canToggle:h,Icon:g}=function(e){let{editor:l,levels:t=[1,2,3,4,5,6],hideWhenUnavailable:n=!1}=e||{},{editor:a}=K(l),[i,r]=(0,w.useState)(!0),o=function(e,l=[1,2,3,4,5,6]){if(e&&e.isEditable)return l.find(l=>eY(e,l))}(a,t),s=eY(a),c=eO(a);return(0,w.useEffect)(()=>{if(!a)return;let e=()=>{r(eP({editor:a,hideWhenUnavailable:n,level:t}))};return e(),a.on("selectionUpdate",e),()=>{a.off("selectionUpdate",e)}},[a,n,t]),{isVisible:i,activeLevel:o,isActive:s,canToggle:c,levels:t,label:"Heading",Icon:o?eB[o]:eH}}({editor:s,levels:l,hideWhenUnavailable:t}),b=(0,w.useCallback)(e=>{s&&h&&(d(e),i?.(e))},[h,s,i]);return(0,n.jsxs)(eJ,{modal:!0,open:c,onOpenChange:b,children:[(0,n.jsx)(eX,{asChild:!0,children:(0,n.jsxs)(ea,{type:"button","data-style":"ghost","data-active-state":u?"on":"off",role:"button",tabIndex:-1,disabled:!h||!m,"data-disabled":!h||!m,"aria-label":"Format text as heading","aria-pressed":u,tooltip:"Heading",...r,ref:o,children:[(0,n.jsx)(g,{className:"tiptap-button-icon"}),(0,n.jsx)(eQ,{className:"tiptap-button-dropdown-small"})]})}),(0,n.jsx)(e0,{align:"start",portal:a,children:(0,n.jsx)(ep,{children:(0,n.jsx)(ex,{children:(0,n.jsx)(ei,{children:l.map(e=>(0,n.jsx)(e1,{asChild:!0,children:(0,n.jsx)(e$,{editor:s,level:e,text:`Heading ${e}`,showTooltip:!1})},`heading-${e}`))})})})})]})});e2.displayName="HeadingDropdownMenu";var e3=t(7276);function e7(e){return!(!e||!e.isEditable||Q(e,["image"],!0))&&e.can().setMark("link")}function e5(e){return!!e&&!!e.isEditable&&e.isActive("link")}let e4=(0,w.memo)(({className:e,...l})=>(0,n.jsx)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 4C21 3.44772 20.5523 3 20 3C19.4477 3 19 3.44772 19 4V11C19 11.7956 18.6839 12.5587 18.1213 13.1213C17.5587 13.6839 16.7956 14 16 14H6.41421L9.70711 10.7071C10.0976 10.3166 10.0976 9.68342 9.70711 9.29289C9.31658 8.90237 8.68342 8.90237 8.29289 9.29289L3.29289 14.2929C2.90237 14.6834 2.90237 15.3166 3.29289 15.7071L8.29289 20.7071C8.68342 21.0976 9.31658 21.0976 9.70711 20.7071C10.0976 20.3166 10.0976 19.6834 9.70711 19.2929L6.41421 16H16C17.3261 16 18.5979 15.4732 19.5355 14.5355C20.4732 13.5979 21 12.3261 21 11V4Z",fill:"currentColor"})}));e4.displayName="CornerDownLeftIcon";let e9=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{d:"M14 3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55228 21.5523 10 21 10C20.4477 10 20 9.55228 20 9V5.41421L10.7071 14.7071C10.3166 15.0976 9.68342 15.0976 9.29289 14.7071C8.90237 14.3166 8.90237 13.6834 9.29289 13.2929L18.5858 4H15C14.4477 4 14 3.55228 14 3Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M4.29289 7.29289C4.48043 7.10536 4.73478 7 5 7H11C11.5523 7 12 6.55228 12 6C12 5.44772 11.5523 5 11 5H5C4.20435 5 3.44129 5.31607 2.87868 5.87868C2.31607 6.44129 2 7.20435 2 8V19C2 19.7957 2.31607 20.5587 2.87868 21.1213C3.44129 21.6839 4.20435 22 5 22H16C16.7957 22 17.5587 21.6839 18.1213 21.1213C18.6839 20.5587 19 19.7957 19 19V13C19 12.4477 18.5523 12 18 12C17.4477 12 17 12.4477 17 13V19C17 19.2652 16.8946 19.5196 16.7071 19.7071C16.5196 19.8946 16.2652 20 16 20H5C4.73478 20 4.48043 19.8946 4.29289 19.7071C4.10536 19.5196 4 19.2652 4 19V8C4 7.73478 4.10536 7.48043 4.29289 7.29289Z",fill:"currentColor"})]}));e9.displayName="ExternalLinkIcon";let e6=(0,w.memo)(({className:e,...l})=>(0,n.jsx)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 5V4C7 3.17477 7.40255 2.43324 7.91789 1.91789C8.43324 1.40255 9.17477 1 10 1H14C14.8252 1 15.5668 1.40255 16.0821 1.91789C16.5975 2.43324 17 3.17477 17 4V5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H20V20C20 20.8252 19.5975 21.5668 19.0821 22.0821C18.5668 22.5975 17.8252 23 17 23H7C6.17477 23 5.43324 22.5975 4.91789 22.0821C4.40255 21.5668 4 20.8252 4 20V7H3C2.44772 7 2 6.55228 2 6C2 5.44772 2.44772 5 3 5H7ZM9 4C9 3.82523 9.09745 3.56676 9.33211 3.33211C9.56676 3.09745 9.82523 3 10 3H14C14.1748 3 14.4332 3.09745 14.6679 3.33211C14.9025 3.56676 15 3.82523 15 4V5H9V4ZM6 7V20C6 20.1748 6.09745 20.4332 6.33211 20.6679C6.56676 20.9025 6.82523 21 7 21H17C17.1748 21 17.4332 20.9025 17.6679 20.6679C17.9025 20.4332 18 20.1748 18 20V7H6Z",fill:"currentColor"})}));function e8({className:e,type:l,...t}){return(0,n.jsx)("input",{type:l,className:(0,et.A)("tiptap-input",e),...t})}function le({className:e,children:l,...t}){return(0,n.jsx)("div",{className:(0,et.A)("tiptap-input-group",e),...t,children:l})}e6.displayName="TrashIcon";let ll=(0,w.forwardRef)(({className:e,children:l,...t},a)=>(0,n.jsx)(ea,{type:"button",className:e,"data-style":"ghost",role:"button",tabIndex:-1,"aria-label":"Link",tooltip:"Link",ref:a,...t,children:l||(0,n.jsx)(e3.q,{className:"tiptap-button-icon"})}));ll.displayName="LinkButton";let lt=({url:e,setUrl:l,setLink:t,removeLink:a,openLink:i,isActive:r})=>(0,n.jsx)(ep,{children:(0,n.jsx)(ex,{children:(0,n.jsxs)(ej,{orientation:"horizontal",children:[(0,n.jsx)(le,{children:(0,n.jsx)(e8,{type:"url",placeholder:"Paste a link...",value:e,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),t())},autoFocus:!0,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off"})}),(0,n.jsx)(ei,{orientation:"horizontal",children:(0,n.jsx)(ea,{type:"button",onClick:t,title:"Apply link",disabled:!e&&!r,"data-style":"ghost",children:(0,n.jsx)(e4,{className:"tiptap-button-icon"})})}),(0,n.jsx)(ew,{}),(0,n.jsxs)(ei,{orientation:"horizontal",children:[(0,n.jsx)(ea,{type:"button",onClick:i,title:"Open in new window",disabled:!e&&!r,"data-style":"ghost",children:(0,n.jsx)(e9,{className:"tiptap-button-icon"})}),(0,n.jsx)(ea,{type:"button",onClick:a,title:"Remove link",disabled:!e&&!r,"data-style":"ghost",children:(0,n.jsx)(e6,{className:"tiptap-button-icon"})})]})]})})}),ln=(0,w.forwardRef)(({editor:e,hideWhenUnavailable:l=!1,onSetLink:t,onOpenChange:a,autoOpenOnLinkActive:i=!0,onClick:r,children:o,...s},c)=>{let{editor:d}=K(e),[m,u]=(0,w.useState)(!1),{isVisible:h,canSet:g,isActive:b,url:p,setUrl:x,setLink:j,removeLink:f,openLink:C,label:y,Icon:v}=function(e){let{editor:l,hideWhenUnavailable:t=!1,onSetLink:n}=e||{},{editor:a}=K(l),{isVisible:i,canSet:r,isActive:o}=function(e){let{editor:l,hideWhenUnavailable:t=!1}=e,n=e7(l),a=e5(l),[i,r]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{if(!l)return;let e=()=>{r(function(e){let{editor:l,hideWhenUnavailable:t}=e;return!!O("link",l)&&!!l&&(!t||!!l.isActive("code")||e7(l))}({editor:l,hideWhenUnavailable:t}))};return e(),l.on("selectionUpdate",e),()=>{l.off("selectionUpdate",e)}},[l,t]),{isVisible:i,canSet:n,isActive:a}}({editor:a,hideWhenUnavailable:t}),s=function(e){let{editor:l,onSetLink:t}=e,[n,a]=(0,w.useState)(null);(0,w.useEffect)(()=>{if(!l)return;let{href:e}=l.getAttributes("link");e5(l)&&null===n&&a(e||"")},[l,n]),(0,w.useEffect)(()=>{if(!l)return;let e=()=>{let{href:e}=l.getAttributes("link");a(e||"")};return l.on("selectionUpdate",e),()=>{l.off("selectionUpdate",e)}},[l]);let i=(0,w.useCallback)(()=>{if(!n||!l)return;let{selection:e}=l.state,i=e.empty,r=l.chain().focus();r=r.extendMarkRange("link").setLink({href:n}),i&&(r=r.insertContent({type:"text",text:n})),r.run(),a(null),t?.()},[l,t,n]),r=(0,w.useCallback)(()=>{l&&(l.chain().focus().extendMarkRange("link").unsetLink().setMeta("preventAutolink",!0).run(),a(""))},[l]),o=(0,w.useCallback)((e="_blank",l="noopener,noreferrer")=>{if(!n)return;let t=function(e,l,t){try{var n,a;let t,i=new URL(e,l);if(n=i.href,a=void 0,t=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"],a&&a.forEach(e
1=>{let l="string"==typeof e?e:e.scheme;l&&t.push(l)}),!n||n.replace(J,"").match(RegExp(`^(?:(?:${t.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i")))return i.href}catch{}return"#"}(n,window.location.href);"#"!==t&&window.open(t,e,l)},[n]);return{url:n||"",setUrl:a,setLink:i,removeLink:r,openLink:o}}({editor:a,onSetLink:n});return{isVisible:i,canSet:r,isActive:o,label:"Link",Icon:e3.q,...s}}({editor:d,hideWhenUnavailable:l,onSetLink:t}),_=(0,w.useCallback)(e=>{u(e),a?.(e)},[a]),N=(0,w.useCallback)(()=>{j(),u(!1)},[j]),I=(0,w.useCallback)(e=>{r?.(e),e.defaultPrevented||u(!m)},[r,m]);return((0,w.useEffect)(()=>{i&&b&&u(!0)},[i,b]),h)?(0,n.jsxs)(eC,{open:m,onOpenChange:_,children:[(0,n.jsx)(ey,{asChild:!0,children:(0,n.jsx)(ll,{disabled:!g,"data-active-state":b?"on":"off","data-disabled":!g,"aria-label":y,"aria-pressed":b,onClick:I,...s,ref:c,children:o??(0,n.jsx)(v,{className:"tiptap-button-icon"})})}),(0,n.jsx)(ev,{children:(0,n.jsx)(lt,{url:p,setUrl:x,setLink:N,removeLink:f,openLink:C,isActive:b})})]}):null});ln.displayName="LinkPopover";var la=t(5140);let li=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 6C9 5.44772 9.44772 5 10 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H10C9.44772 7 9 6.55228 9 6Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 12C9 11.4477 9.44772 11 10 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H10C9.44772 13 9 12.5523 9 12Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 18C9 17.4477 9.44772 17 10 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H10C9.44772 19 9 18.5523 9 18Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6C3 5.44772 3.44772 5 4 5H5C5.55228 5 6 5.44772 6 6V10C6 10.5523 5.55228 11 5 11C4.44772 11 4 10.5523 4 10V7C3.44772 7 3 6.55228 3 6Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 10C3 9.44772 3.44772 9 4 9H6C6.55228 9 7 9.44772 7 10C7 10.5523 6.55228 11 6 11H4C3.44772 11 3 10.5523 3 10Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.82219 13.0431C6.54543 13.4047 6.99997 14.1319 6.99997 15C6.99997 15.5763 6.71806 16.0426 6.48747 16.35C6.31395 16.5814 6.1052 16.8044 5.91309 17H5.99997C6.55226 17 6.99997 17.4477 6.99997 18C6.99997 18.5523 6.55226 19 5.99997 19H3.99997C3.44769 19 2.99997 18.5523 2.99997 18C2.99997 17.4237 3.28189 16.9575 3.51247 16.65C3.74323 16.3424 4.03626 16.0494 4.26965 15.8161C4.27745 15.8083 4.2852 15.8006 4.29287 15.7929C4.55594 15.5298 4.75095 15.3321 4.88748 15.15C4.96287 15.0495 4.99021 14.9922 4.99911 14.9714C4.99535 14.9112 4.9803 14.882 4.9739 14.8715C4.96613 14.8588 4.95382 14.845 4.92776 14.8319C4.87723 14.8067 4.71156 14.7623 4.44719 14.8944C3.95321 15.1414 3.35254 14.9412 3.10555 14.4472C2.85856 13.9533 3.05878 13.3526 3.55276 13.1056C4.28839 12.7378 5.12272 12.6934 5.82219 13.0431Z",fill:"currentColor"})]}));li.displayName="ListOrderedIcon";let lr=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 4.89543 2.89543 4 4 4H8C9.10457 4 10 4.89543 10 6V10C10 11.1046 9.10457 12 8 12H4C2.89543 12 2 11.1046 2 10V6ZM8 6H4V10H8V6Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.70711 14.2929C10.0976 14.6834 10.0976 15.3166 9.70711 15.7071L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071L2.29289 17.7071C1.90237 17.3166 1.90237 16.6834 2.29289 16.2929C2.68342 15.9024 3.31658 15.9024 3.70711 16.2929L5 17.5858L8.29289 14.2929C8.68342 13.9024 9.31658 13.9024 9.70711 14.2929Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6C12 5.44772 12.4477 5 13 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H13C12.4477 7 12 6.55228 12 6Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 12C12 11.4477 12.4477 11 13 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H13C12.4477 13 12 12.5523 12 12Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18C12 17.4477 12.4477 17 13 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H13C12.4477 19 12 18.5523 12 18Z",fill:"currentColor"})]}));lr.displayName="ListTodoIcon";let lo={bulletList:la.k,orderedList:li,taskList:lr},ls={bulletList:"Bullet List",orderedList:"Ordered List",taskList:"Task List"},lc={bulletList:"mod+shift+8",orderedList:"mod+shift+7",taskList:"mod+shift+9"};function ld(e,l,t=!0){if(!e||!e.isEditable||!Y(l,e)||Q(e,["image"]))return!1;if(!t)switch(l){case"bulletList":return e.can().toggleBulletList();case"orderedList":return e.can().toggleOrderedList();case"taskList":return e.can().toggleList("taskList","taskItem");default:return!1}if(!G(e,["paragraph","heading","bulletList","orderedList","taskList","blockquote","codeBlock"]))return!1;switch(l){case"bulletList":return e.can().toggleBulletList()||e.can().clearNodes();case"orderedList":return e.can().toggleOrderedList()||e.can().clearNodes();case"taskList":return e.can().toggleList("taskList","taskItem")||e.can().clearNodes();default:return!1}}function lm(e,l){if(!e||!e.isEditable)return!1;switch(l){case"bulletList":return e.isActive("bulletList");case"orderedList":return e.isActive("orderedList");case"taskList":return e.isActive("taskList");default:return!1}}let lu=[{label:"Bullet List",type:"bulletList",icon:la.k},{label:"Ordered List",type:"orderedList",icon:li},{label:"Task List",type:"taskList",icon:lr}];function lh({type:e,shortcutKeys:l=lc[e]}){return(0,n.jsx)(ee,{children:q({shortcutKeys:l})})}let lg=(0,w.forwardRef)(({editor:e,type:l,text:t,hideWhenUnavailable:a=!1,onToggled:i,showShortcut:r=!1,onClick:o,children:s,...c},d)=>{let{editor:m}=K(e),{isVisible:u,canToggle:h,isActive:g,handleToggle:b,label:p,shortcutKeys:x,Icon:j}=function(e){let{editor:l,type:t,hideWhenUnavailable:n=!1,onToggled:a}=e,{editor:i}=K(l),[r,o]=(0,w.useState)(!0),s=ld(i,t),c=lm(i,t);return(0,w.useEffect)(()=>
1{if(!i)return;let e=()=>{o(function(e){let{editor:l,type:t,hideWhenUnavailable:n}=e;return!!l&&!!l.isEditable&&!!Y(t,l)&&(!n||!!l.isActive("code")||ld(l,t))}({editor:i,type:t,hideWhenUnavailable:n}))};return e(),i.on("selectionUpdate",e),()=>{i.off("selectionUpdate",e)}},[i,t,n]),{isVisible:r,isActive:c,handleToggle:(0,w.useCallback)(()=>{if(!i)return!1;let e=function(e,l){if(!e||!e.isEditable||!ld(e,l))return!1;try{let t=e.view,n=t.state,a=n.tr;if(n.selection.empty||n.selection instanceof D.U3){let l=$({editor:e,node:n.selection.$anchor.node(1)})?.pos;if(!P(l))return!1;a=a.setSelection(D.nh.create(n.doc,l)),t.dispatch(a),n=t.state}let i=n.selection,r=e.chain().focus();if(i instanceof D.nh){let e=i.node.firstChild?.firstChild,l=i.node.lastChild?.lastChild,t=e?i.from+e.nodeSize:i.from+1,a=l?i.to-l.nodeSize:i.to-1,o=n.doc.resolve(t),s=n.doc.resolve(a);r=r.setTextSelection(D.U3.between(o,s)).clearNodes()}if(e.isActive(l))r.liftListItem("listItem").lift("bulletList").lift("orderedList").lift("taskList").run();else{let e={bulletList:()=>r.toggleBulletList(),orderedList:()=>r.toggleOrderedList(),taskList:()=>r.toggleList("taskList","taskItem")}[l];if(!e)return!1;e().run()}return e.chain().focus().selectTextblockEnd().run(),!0}catch{return!1}}(i,t);return e&&a?.(),e},[i,t,a]),canToggle:s,label:ls[t],shortcutKeys:lc[t],Icon:lo[t]}}({editor:m,type:l,hideWhenUnavailable:a,onToggled:i}),f=(0,w.useCallback)(e=>{o?.(e),e.defaultPrevented||b()},[b,o]);return u?(0,n.jsx)(ea,{type:"button","data-style":"ghost","data-active-state":g?"on":"off",role:"button",tabIndex:-1,disabled:!h,"data-disabled":!h,"aria-label":p,"aria-pressed":g,tooltip:p,onClick:f,...c,ref:d,children:s??(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j,{className:"tiptap-button-icon"}),t&&(0,n.jsx)("span",{className:"tiptap-button-text",children:t}),r&&(0,n.jsx)(lh,{type:l,shortcutKeys:x})]})}):null});function lb({editor:e,types:l=["bulletList","orderedList","taskList"],hideWhenUnavailable:t=!1,onOpenChange:a,portal:i=!1,...r}){let{editor:o}=K(e),[s,c]=(0,w.useState)(!1),{filteredLists:d,canToggle:m,isActive:u,isVisible:h,Icon:g}=function(e){let{editor:l,types:t=["bulletList","orderedList","taskList"],hideWhenUnavailable:n=!1}=e||{},{editor:a}=K(l),[i,r]=(0,w.useState)(!1),o=t.some(e=>Y(e,a)),s=(0,w.useMemo)(()=>lu.filter(e=>!e.type||t.includes(e.type)),[t]),c=!!a&&!!a.isEditable&&t.some(e=>ld(a,e)),d=!!a&&!!a.isEditable&&t.some(e=>lm(a,e)),m=function(e,l){if(e&&e.isEditable)return l.find(l=>lm(e,l))}(a,t),u=s.find(e=>e.type===m);return(0,w.useEffect)(()=>{if(!a)return;let e=()=>{r(function(e){let{editor:l,hideWhenUnavailable:t,listInSchema:n,canToggleAny:a}=e;return!!n&&!!l&&(!t||!!l.isActive("code")||a)}({editor:a,listTypes:t,hideWhenUnavailable:n,listInSchema:o,canToggleAny:c}))};return e(),a.on("selectionUpdate",e),()=>{a.off("selectionUpdate",e)}},[c,a,n,o,t]),{isVisible:i,activeType:m,isActive:d,canToggle:c,types:t,filteredLists:s,label:"List",Icon:u?lo[u.type]:la.k}}({editor:o,types:l,hideWhenUnavailable:t}),b=(0,w.useCallback)(e=>{c(e),a?.(e)},[a]);return(0,n.jsxs)(eJ,{open:s,onOpenChange:b,children:[(0,n.jsx)(eX,{asChild:!0,children:(0,n.jsxs)(ea,{type:"button","data-style":"ghost","data-active-state":u?"on":"off",role:"button",tabIndex:-1,disabled:!m||!h||!o||!o.isEditable,"data-disabled":!m||!h||!o||!o.isEditable,"aria-label":"List options",tooltip:"List",...r,children:[(0,n.jsx)(g,{className:"tiptap-button-icon"}),(0,n.jsx)(eQ,{className:"tiptap-button-dropdown-small"})]})}),(0,n.jsx)(e0,{align:"start",portal:i,children:(0,n.jsx)(ep,{children:(0,n.jsx)(ex,{children:(0,n.jsx)(ei,{children:d.map(e=>(0,n.jsx)(e1,{asChild:!0,children:(0,n.jsx)(lg,{editor:o,type:e.type,text:e.label,showTooltip:!1})},e.type))})})})})]})}lg.displayName="ListButton";var lp=t(62755),lx=t(81708),lj=t(65688);let lf=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{d:"M15.4545 4.2983C15.6192 3.77115 15.3254 3.21028 14.7983 3.04554C14.2712 2.88081 13.7103 3.1746 13.5455 3.70175L8.54554 19.7017C8.38081 20.2289 8.6746 20.7898 9.20175 20.9545C9.72889 21.1192 10.2898 20.8254 10.4545 20.2983L15.4545 4.2983Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M6.70711 7.29289C7.09763 7.68342 7.09763 8.31658 6.70711 8.70711L3.41421 12L6.70711 15.2929C7.09763 15.6834 7.09763 16.3166 6.70711 16.7071C6.31658 17.0976 5.68342 17.0976 5.29289 16.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M17.2929 7.29289C17.6834 6.90237 18.3166 6.90237 18.7071 7.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L18.7071 16.7071C18.3166 17.0976 17.6834 17.0976 17.2929 16.7071C16.9024 16.3166 16.9
1024 15.6834 17.2929 15.2929L20.5858 12L17.2929 8.70711C16.9024 8.31658 16.9024 7.68342 17.2929 7.29289Z",fill:"currentColor"})]}));lf.displayName="Code2Icon";let lC=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{d:"M9.00039 3H16.0001C16.5524 3 17.0001 3.44772 17.0001 4C17.0001 4.55229 16.5524 5 16.0001 5H9.00011C8.68006 4.99983 8.36412 5.07648 8.07983 5.22349C7.79555 5.37051 7.55069 5.5836 7.36585 5.84487C7.181 6.10614 7.06155 6.40796 7.01754 6.72497C6.97352 7.04198 7.00623 7.36492 7.11292 7.66667C7.29701 8.18737 7.02414 8.75872 6.50344 8.94281C5.98274 9.1269 5.4114 8.85403 5.2273 8.33333C5.01393 7.72984 4.94851 7.08396 5.03654 6.44994C5.12456 5.81592 5.36346 5.21229 5.73316 4.68974C6.10285 4.1672 6.59256 3.74101 7.16113 3.44698C7.72955 3.15303 8.36047 2.99975 9.00039 3Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M18 13H20C20.5523 13 21 12.5523 21 12C21 11.4477 20.5523 11 20 11H4C3.44772 11 3 11.4477 3 12C3 12.5523 3.44772 13 4 13H14C14.7956 13 15.5587 13.3161 16.1213 13.8787C16.6839 14.4413 17 15.2044 17 16C17 16.7956 16.6839 17.5587 16.1213 18.1213C15.5587 18.6839 14.7956 19 14 19H6C5.44772 19 5 19.4477 5 20C5 20.5523 5.44772 21 6 21H14C15.3261 21 16.5979 20.4732 17.5355 19.5355C18.4732 18.5979 19 17.3261 19 16C19 14.9119 18.6453 13.8604 18 13Z",fill:"currentColor"})]}));lC.displayName="StrikeIcon";let ly=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L12.7071 15.2929C13.0976 15.6834 13.0976 16.3166 12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 7.29289C13.0976 7.68342 13.0976 8.31658 12.7071 8.70711L4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L11.2929 7.29289C11.6834 6.90237 12.3166 6.90237 12.7071 7.29289Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4079 14.3995C18.0284 14.0487 18.7506 13.9217 19.4536 14.0397C20.1566 14.1578 20.7977 14.5138 21.2696 15.0481L21.2779 15.0574L21.2778 15.0575C21.7439 15.5988 22 16.2903 22 17C22 18.0823 21.3962 18.8401 20.7744 19.3404C20.194 19.8073 19.4858 20.141 18.9828 20.378C18.9638 20.387 18.9451 20.3958 18.9266 20.4045C18.4473 20.6306 18.2804 20.7817 18.1922 20.918C18.1773 20.9412 18.1619 20.9681 18.1467 21H21C21.5523 21 22 21.4477 22 22C22 22.5523 21.5523 23 21 23H17C16.4477 23 16 22.5523 16 22C16 21.1708 16.1176 20.4431 16.5128 19.832C16.9096 19.2184 17.4928 18.8695 18.0734 18.5956C18.6279 18.334 19.138 18.0901 19.5207 17.7821C19.8838 17.49 20 17.2477 20 17C20 16.7718 19.9176 16.5452 19.7663 16.3672C19.5983 16.1792 19.3712 16.0539 19.1224 16.0121C18.8722 15.9701 18.6152 16.015 18.3942 16.1394C18.1794 16.2628 18.0205 16.4549 17.9422 16.675C17.7572 17.1954 17.1854 17.4673 16.665 17.2822C16.1446 17.0972 15.8728 16.5254 16.0578 16.005C16.2993 15.3259 16.7797 14.7584 17.4039 14.4018L17.4079 14.3995L17.4079 14.3995Z",fill:"currentColor"})]}));ly.displayName="SubscriptIcon";let lv=(0,w.memo)(({className:e,...l})=>(0,n.jsxs)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 7.29289C13.0976 7.68342 13.0976 8.31658 12.7071 8.70711L4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L11.2929 7.29289C11.6834 6.90237 12.3166 6.90237 12.7071 7.29289Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L12.7071 15.2929C13.0976 15.6834 13.0976 16.3166 12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.405 1.40657C18.0246 1.05456 18.7463 0.92634 19.4492 1.04344C20.1521 1.16054 20.7933 1.51583 21.2652 2.0497L21.2697 2.05469L21.2696 2.05471C21.7431 2.5975 22 3.28922 22 4.00203C22 5.08579 21.3952 5.84326 20.7727 6.34289C20.1966 6.80531 19.4941 7.13675 18.9941 7.37261C18.9714 7.38332 18.9491 7.39383 18.9273 7.40415C18.4487 7.63034 18.2814 7.78152 18.1927 7.91844C18.1778 7.94155 18.1625 7.96834 18.1473 8.00003H21C21.5523 8.00003 22 8.44774 22 9.00003C22 9.55231 21.5523 10 21 10H17C16.4477 10 16 9.55231 16 9.00003C16 8.17007 16.1183 7.44255 16.5138 6.83161C16.9107 6.21854 17.4934 5.86971 18.0728 5.59591C18.6281 5.33347 19.1376 5.09075 19.5208 4.78316C19.8838 4.49179 20 4.25026 20 4.00203C20 3.77192 19.9178 3.54865 19.7646 3.37182C19.5968 3.18324 19.3696 3.05774 19.1205 3.01625C18.8705 2.97459 18.6137 3.02017 18.3933 3.14533C18.1762 3.26898 18.0191 3.45826 17.9406 3.67557C17.7531 4.19504 17.18 4.46414 16.6605 4.27662C16.141 4.0891 15.8719 3.51596 16.0594 2.99649C16.303 2.3219 16.7817 1.76125 17.4045 1.40689L17.405 1.40657Z",fill:"currentColor"})]}));lv.displayName="SuperscriptIcon";let lw={bold:lp.$,italic:lx.y,underline:lj.q,strike:lC,code:lf,superscript:lv,subscript:ly},l_={bold:"mod+b",italic:"mod+i",underline:"mod+u",strike:"mod+shift+s",code:"mod+e",superscript:"mod+.",subscript:"mod+,"};function lN(e,l){return!(!e||!e.isEditable||!O(l,e)||Q(e,["image"]))&&e.can().toggleMark(l)}function lI({type:e,shortcutKeys:l=l_[e]}){return(0,n.jsx)("div",{children:q({shortcutKeys:l})})}let lL=(0,w.forwardRef)(({editor:e,type:l,text:t,hideWhenUnavailable:a=!1,onToggled:i,showShortcut:r=!1,onClick:o,children:s,...c},d)=>{let{editor:m}=K(e),{isVisible:u,handleMark:h,label:g,canToggle:b,isActive:p,Icon:x,shortcutKeys:j}=function(e){let{editor:l,type:t,hideWhenUnavailable:n=!1,onToggled:a}=e,{editor:i}=K(l),[r,o]=(0,w.useState)(!0),s=lN(i,t),c=!!i&&!!i.isEditable&&i.isActive(t);return(0,w.useEffect)(()=>
1{if(!i)return;let e=()=>{o(function(e){let{editor:l,type:t,hideWhenUnavailable:n}=e;return!!l&&!!l.isEditable&&!!O(t,l)&&(!n||!!l.isActive("code")||lN(l,t))}({editor:i,type:t,hideWhenUnavailable:n}))};return e(),i.on("selectionUpdate",e),()=>{i.off("selectionUpdate",e)}},[i,t,n]),{isVisible:r,isActive:c,handleMark:(0,w.useCallback)(()=>{if(!i)return!1;let e=!!i&&!!i.isEditable&&!!lN(i,t)&&i.chain().focus().toggleMark(t).run();return e&&a?.(),e},[i,t,a]),canToggle:s,label:t.charAt(0).toUpperCase()+t.slice(1),shortcutKeys:l_[t],Icon:lw[t]}}({editor:m,type:l,hideWhenUnavailable:a,onToggled:i}),f=(0,w.useCallback)(e=>{o?.(e),e.defaultPrevented||h()},[h,o]);return(0,n.jsx)(ea,{type:"button",disabled:!b||!u,"data-style":"ghost","data-active-state":p?"on":"off","data-disabled":!b||!u,role:"button",tabIndex:-1,"aria-label":g,"aria-pressed":p,tooltip:g,onClick:f,...c,ref:d,children:s??(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x,{className:"tiptap-button-icon"}),t&&(0,n.jsx)("span",{className:"tiptap-button-text",children:t}),r&&(0,n.jsx)(lI,{type:l,shortcutKeys:j})]})})});lL.displayName="MarkButton";var lk=t(22897),lR=t(55332),lA=t(31657),lz=t(46750);let lS={left:"mod+shift+l",center:"mod+shift+e",right:"mod+shift+r",justify:"mod+shift+j"},lE={left:lA.S,center:lk.k,right:lz.n,justify:lR.x},lV={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"};function lH(e,l){return!(!e||!e.isEditable||!F(e,"textAlign")||Q(e,["image","horizontalRule"]))&&e.can().setTextAlign(l)}function lM({align:e,shortcutKeys:l=lS[e]}){return(0,n.jsx)(ee,{children:q({shortcutKeys:l})})}let lU=(0,w.forwardRef)(({editor:e,align:l,text:t,hideWhenUnavailable:a=!1,onAligned:i,showShortcut:r=!1,onClick:o,icon:s,children:c,...d},m)=>{let{editor:u}=K(e),{isVisible:h,handleTextAlign:g,label:b,canAlign:p,isActive:x,Icon:j,shortcutKeys:f}=function(e){let{editor:l,align:t,hideWhenUnavailable:n=!1,onAligned:a}=e,{editor:i}=K(l),[r,o]=(0,w.useState)(!0),s=lH(i,t),c=!!i&&!!i.isEditable&&i.isActive({textAlign:t});return(0,w.useEffect)(()=>{if(!i)return;let e=()=>{o(function(e){let{editor:l,hideWhenUnavailable:t,align:n}=e;return!!l&&!!l.isEditable&&!!F(l,"textAlign")&&(!t||!!l.isActive("code")||lH(l,n))}({editor:i,align:t,hideWhenUnavailable:n}))};return e(),i.on("selectionUpdate",e),()=>{i.off("selectionUpdate",e)}},[i,n,t]),{isVisible:r,isActive:c,handleTextAlign:(0,w.useCallback)(()=>{if(!i)return!1;let e=function(e,l){if(!e||!e.isEditable||!lH(e,l))return!1;let t=e.chain().focus();return"setTextAlign"in t&&t.setTextAlign(l).run()}(i,t);return e&&a?.(),e},[i,t,a]),canAlign:s,label:lV[t],shortcutKeys:lS[t],Icon:lE[t]}}({editor:u,align:l,hideWhenUnavailable:a,onAligned:i}),C=(0,w.useCallback)(e=>{o?.(e),e.defaultPrevented||g()},[g,o]);return(0,n.jsx)(ea,{type:"button",disabled:!p||!h,"data-style":"ghost","data-active-state":x?"on":"off","data-disabled":!p||!h,role:"button",tabIndex:-1,"aria-label":b,"aria-pressed":x,tooltip:b,onClick:C,...d,ref:m,children:c??(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s??j,{className:"tiptap-button-icon"}),t&&(0,n.jsx)("span",{className:"tiptap-button-text",children:t}),r&&(0,n.jsx)(lM,{align:l,shortcutKeys:f})]})})});lU.displayName="TextAlignButton";let lT=(0,w.memo)(({className:e,...l})=>(0,n.jsx)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7071 2.29289C15.3166 1.90237 14.6834 1.90237 14.2929 2.29289C13.9024 2.68342 13.9024 3.31658 14.2929 3.70711L17.5858 7H9.5C7.77609 7 6.12279 7.68482 4.90381 8.90381C3.68482 10.1228 3 11.7761 3 13.5C3 14.3536 3.16813 15.1988 3.49478 15.9874C3.82144 16.7761 4.30023 17.4926 4.90381 18.0962C6.12279 19.3152 7.77609 20 9.5 20H13C13.5523 20 14 19.5523 14 19C14 18.4477 13.5523 18 13 18H9.5C8.30653 18 7.16193 17.5259 6.31802 16.682C5.90016 16.2641 5.56869 15.768 5.34254 15.2221C5.1164 14.6761 5 14.0909 5 13.5C5 12.3065 5.47411 11.1619 6.31802 10.318C7.16193 9.47411 8.30653 9 9.5 9H17.5858L14.2929 12.2929C13.9024 12.6834 13.9024 13.3166 14.2929 13.7071C14.6834 14.0976 15.3166 14.0976 15.7071 13.7071L20.7071 8.70711C21.0976 8.31658 21.0976 7.68342 20.7071 7.29289L15.7071 2.29289Z",fill:"currentColor"})}));lT.displayName="Redo2Icon";let lD=(0,w.memo)(({className:e,...l})=>(0,n.jsx)("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",...l,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.70711 3.70711C10.0976 3.31658 10.0976 2.68342 9.70711 2.29289C9.31658 1.90237 8.68342 1.90237 8.29289 2.29289L3.29289 7.29289C2.90237 7.68342 2.90237 8.31658 3.29289 8.70711L8.29289 13.7071C8.68342 14.0976 9.31658 14.0976 9.70711 13.7071C10.0976 13.3166 10.0976 12.6834 9.70711 12.2929L6.41421 9H14.5C15.0909 9 15.6761 9.1164 16.2221 9.34254C16.768 9.56869 17.2641 9.90016 17.682 10.318C18.0998 10.7359 18.4313 11.232 18.6575 11.7779C18.8836 12.3239 19 12.9091 19 13.5C19 14.0909 18.8836 14.6761 18.6575 15.2221C18.4313 15.768 18.0998 16.2641 17.682 16.682C17.2641 17.0998 16.768 17.4313 16.2221 17.6575C15.6761 17.8836 15.0909 18 14.5 18H11C10.4477 18 10 18.4477 10 19C10 19.5523 10.4477 20 11 20H14.5C15.3536 20 16.1988 19.8319 16.9874 19.5052C17.7761 19.1786 18.4926 18.6998 19.0962 18.0962C19.6998 17.4926 20.1786 16.7761 20.5052 15.9874C20.8319 15.1988 21 14.3536 21 13.5C21 12.6464 20.8319 11.8012 20.5052 11.0126C20.1786 10.2239 19.6998 9.50739 19.0962 8.90381C18.4926 8.30022 17.7761 7.82144 16.9874 7.49478C16.1988 7.16813 15.3536 7 14.5 7H6.41421L9.70711 3.70711Z",fill:"currentColor"})}));lD.displayName="Undo2Icon";let lK={undo:"mod+z",redo:"mod+shift+z"},lZ={undo:"Undo",redo:"Redo"},lB={undo:lD,redo:lT};function lq(e,l){return!(!e||!e.isEditable||Q(e,["image"]))&&("undo"===l?e.can().undo():e.can().redo())}function lO({action:e,shortcutKeys:l=lK[e]}){return(0,n.jsx)(ee,{children:q({shortcutKeys:l})})}let lY=(0,w.forwardRef)(({editor:e,action:l,text:t,hideWhenUnavailable:a=!1,onExecuted:i,showShortcut:r=!1,onClick:o,children:s,...c},d)=>{let{editor:m}=K(e),{isVisible:u,handleAction:h,label:g,canExecute:b,Icon:p,shortcutKeys:x}=function(e){let{editor:l,action:t,hideWhenUnavailable:n=!1,onExecuted:a}=e,{editor:i}=K(l),[r,o]=(0,w.useState)(!0),s=lq(i,t);return(0,w.useEffect)(()=>{if(!i)return;let e=()=>{o(function(e){let{editor:l,hideWhenUnavailable:t,action:n}=e;return!!l&&!!l.isEditable&&(!t||!!l.isActive("code")||lq(l,n))}({editor:i,hideWhenUnavailable:n,action:t}))};return e(),i.on("transaction",e),()=>{i.off("transaction",e)}},[i,n,t]),{isVisible:r,handleAction:(0,w.useCallback)(()=>{if(!i)return!1;let e=function(e,l){if(!e||!e.isEditable||!lq(e,l))return!1;let t=e.chain().focus();return"undo"===l?t.undo().run():t.redo().run()}(i,t);return e&&a?.(),e},[i,t,a]),canExecute:s,label:lZ[t],shortcutKeys:lK[t],Icon:lB[t]}}({editor:m,action:l,hideWhenUnavailable:a,onExecuted:i}),j=(0,w.useCallback)(e=>{o?.(e),e.defaultPrevented||h()},[h,o]);return(0,n.jsx)(ea,{type:"button",disabled:!b||!u,"data-style":"ghost","data-disabled":!b||!u,role:"button",tabIndex:-1,"aria-label":g,tooltip:g,onClick:j,...c,ref:d,children:s??(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p,{className:"tiptap-button-icon"}),t&&(0,n.jsx)("span",{className:"tiptap-button-text",children:t}),r&&(0,n.jsx)(lO,{action:l,shortcutKeys:x})]})})});lY.displayName="UndoRedoButton";let lP=(e,l)=>{"function"==typeof e?e(l):e&&"object"==typeof e&&"current"in e&&(e.current=l)},lF=(0,w.forwardRef)(({children:e,className:l,...t},a)=>{let i,r=(0,w.useRef)(null),o=(i=(0,w.useRef)(null),(0,w.useCallback)(e=>{r&&"current"in r&&(r.current=e),i.current&&lP(i.current,null),i.current=a,a&&lP(a,e)},[r,a]));return(e=>{let[l,t]=(0,w.useState)([]),n=(0,w.useCallback)(()=>e.current?Array.from(e.current.querySelectorAll('button:not([disabled]), [role="button"]:not([disabled]), [tabindex="0"]:not([disabled])')):[],[e]);(0,w.useEffect)(()=>{let l=e.current;if(!l)return;let a=()=>t(n());a();let i=new MutationObserver(a);return i.observe(l,{childList:!0,subtree:!0}),()=>i.disconnect()},[n,e]);let{selectedIndex:a}=eh({containerRef:e,items:l,orientation:"horizontal",onSelect:e=>e.click(),autoSelectFirstItem:!1});(0,w.useEffect)(()=>{let l=e.current;if(!l)return;let t=e=>{let t=e.target;l.contains(t)&&t.setAttribute("data-focus-visible","true")},n=e=>{let t=e.target;l.contains(t)&&t.removeAttribute("data-focus-visible")};return l.addEventListener("focus",t,!0),l.addEventListener("blur",n,!0),()=>{l.removeEventListener("focus",t,!0),l.removeEventListener("blur",n,!0)}},[e]),(0,w.useEffect)(()=>
1{void 0!==a&&l[a]&&l[a].focus()},[a,l])})(r),(0,n.jsx)("div",{ref:o,role:"toolbar","aria-label":"toolbar",className:(0,et.A)("_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmp",l),...t,children:e})});lF.displayName="Toolbar";let l$=(0,w.forwardRef)(({children:e,className:l,...t},a)=>(0,n.jsx)("div",{ref:a,role:"group",className:(0,et.A)("_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmm",l),...t,children:e}));l$.displayName="ToolbarGroup";let lQ=(0,w.forwardRef)(({...e},l)=>(0,n.jsx)(ew,{ref:l,orientation:"vertical",decorative:!0,...e}));lQ.displayName="ToolbarSeparator";let lG=()=>(0,n.jsxs)(lF,{className:"_1lqss1i1 hjwbnu3b6 hjwbnu3du hjwbnu34i hjwbnu376 hjwbnu12u",children:[(0,n.jsxs)(l$,{children:[(0,n.jsx)(lY,{action:"undo"}),(0,n.jsx)(lY,{action:"redo"})]}),(0,n.jsx)(lQ,{}),(0,n.jsxs)(l$,{children:[(0,n.jsx)(e2,{levels:[1,2,3,4,5,6]}),(0,n.jsx)(lb,{types:["bulletList","orderedList","taskList"]}),(0,n.jsx)(eo,{}),(0,n.jsx)(eu,{})]}),(0,n.jsx)(lQ,{}),(0,n.jsxs)(l$,{children:[(0,n.jsx)(lL,{type:"bold"}),(0,n.jsx)(lL,{type:"italic"}),(0,n.jsx)(lL,{type:"strike"}),(0,n.jsx)(lL,{type:"code"}),(0,n.jsx)(lL,{type:"underline"}),(0,n.jsx)(eV,{}),(0,n.jsx)(ln,{})]}),(0,n.jsx)(lQ,{}),(0,n.jsxs)(l$,{children:[(0,n.jsx)(lL,{type:"superscript"}),(0,n.jsx)(lL,{type:"subscript"})]}),(0,n.jsx)(lQ,{}),(0,n.jsxs)(l$,{children:[(0,n.jsx)(lU,{align:"left"}),(0,n.jsx)(lU,{align:"center"}),(0,n.jsx)(lU,{align:"right"}),(0,n.jsx)(lU,{align:"justify"})]})]}),lJ=({content:e,onContentUpdate:l,editable:t=!0})=>{let{t:a}=(0,s.Bd)("managementInf"),i=(0,w.useRef)(null),r=(0,M.hG)({extensions:[H.Or.configure({placeholder:a("detail.custom-column.note-sheet.editor.placeholder",{noWrap:!0})}),U.A.configure({link:{openOnClick:!1,enableClickSelection:!0}}),E.A.configure({types:["heading","paragraph"]}),A._0,A.L2.configure({nested:!0}),R.Ay.configure({multicolor:!0}),V.o5,z.E,S.Z,H.LN],content:e,immediatelyRender:!1,shouldRerenderOnTransaction:!1,editable:t,editorProps:{attributes:{autocomplete:"off",autocorrect:"off",autocapitalize:"off"}},onUpdate:({editor:e})=>{l(e.getHTML())}});return(0,n.jsx)("div",{className:"_1bsrakd0 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbmp",children:(0,n.jsxs)(M.pl.Provider,{value:{editor:r},children:[(0,n.jsx)(lG,{}),(0,n.jsx)(T.r,{className:"_1bsrakd3",options:{scrollbars:{autoHide:"leave"}},onClick:()=>{r?.commands?.focus()},children:(0,n.jsx)(M.$Z,{className:"hjwbnu3b6 hjwbnu3du hjwbnu356 hjwbnu37u",editor:r,role:"presentation",ref:i})})]})})};t(75047);let lW={ig:(0,n.jsx)(x._,{}),yt:(0,n.jsx)(j.h,{}),tw:(0,n.jsx)(f.s,{}),tt:(0,n.jsx)(C.Q,{}),nb:(0,n.jsx)(y.I,{})},lX=(0,I.tq)(({resolve:e,note:l={title:null,html_text:null},influencer:t,updateNoteData:i,isReadOnly:r=!1})=>{let{t:o}=(0,s.Bd)("managementInf"),d=(0,v.jE)(),m=(0,c.hS)(k),{showToast:x}=(0,h.d)(),j=(0,N.Lu)(),[f,C]=(0,w.useState)(l),{control:y,setValue:L,setError:R,trigger:A,watch:z,handleSubmit:S}=(0,_.mN)({defaultValues:{title:l?.title??"",content:l?.html_text??""},mode:"onChange"}),E=()=>z("title")!==(f?.title??"")||z("content")!==(f?.html_text??""),V=async()=>{E()?await m({onClick:()=>e(!1)}):e(!1)},H=async l=>{E()&&(l.preventDefault(),await m({onClick:()=>e(!1)}))},M=async e=>{try{let l={title:e.title,html_text:e.content};await i?.(l),C(l),x({status:"success",title:o("detail.custom-column.note-sheet.toast-success.title"),description:o("detail.custom-column.note-sheet.toast-success.description")})}catch(e){x({status:"error",title:o("detail.custom-column.note-sheet.toast-error.title"),description:o("detail.custom-column.note-sheet.toast-error.description")})}finally{await d.invalidateQueries({queryKey:["management-group-detail"]})}},U=e=>{L("content",e,{shouldDirty:!0,shouldValidate:!0})};return(0,n.jsxs)(I.DD,{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme",beforeClose:H,onClose:V,size:846,children:[(0,n.jsxs)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbmr hjwbnu3b6 hjwbnu3du hjwbnu356 hjwbnu37u hjwbnu12o",children:[(0,n.jsxs)("div",{className:"t2qgdq3 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmq",children:[(0,n.jsxs)(g.bL,{name:t?.username??"",children:[t?.profile_img_link&&(0,n.jsx)(g._V,{src:t.profile_img_link,alt:t?.username??""}),!(j&&t?.platform_code==="yt")&&(0,n.jsx)(g.C1,{position:"bottom-right",children:(0,n.jsx)(b.f,{children:lW[t?.platform_code]})})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"lkuzww8",children:t?.username}),(0,n.jsx)("p",{className:"lkuzwwb hjwbnu3o",children:t?.full_name})]})]}),(0,n.jsx)(_.xI,{control:y,name:"title",rules:{required:o("detail.custom-column.note-sheet.title.rules.required"),maxLength:{value:30,message:o("detail.custom-column.note-sheet.title.rules.maxLength")}}
1,render:({field:{onChange:e,onBlur:l,...t},fieldState:{error:a}})=>(0,n.jsx)(u.y,{requiredRole:"editor",canAccess:!r,fallback:(0,n.jsx)(p.P,{size:"lg",required:!0,label:o("detail.custom-column.note-sheet.title.label"),placeholder:o("detail.custom-column.note-sheet.title.placeholder"),...t,readOnly:!0}),children:(0,n.jsx)(p.P,{size:"lg",required:!0,label:o("detail.custom-column.note-sheet.title.label"),placeholder:o("detail.custom-column.note-sheet.title.placeholder"),onChange:l=>{if(l.target.value.length>30){l.target.value=l.target.value.slice(0,30),R("title",{type:"maxLength",message:o("detail.custom-column.note-sheet.title.rules.maxLength")});return}e(l)},onBlur:()=>{A("title"),l()},status:a?"error":"none",validationText:a?.message,...t})})})]}),(0,n.jsx)(u.y,{requiredRole:"editor",canAccess:!r,fallback:(0,n.jsx)(lJ,{content:l?.html_text??"",onContentUpdate:U,editable:!1}),children:(0,n.jsx)(lJ,{content:l?.html_text??"",onContentUpdate:U,editable:!0})}),(0,n.jsxs)("footer",{className:"t2qgdq8 hjwbnu3b6 hjwbnu3du hjwbnu356 hjwbnu37u hjwbnu12u _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmr",children:[(0,n.jsx)(u.y,{requiredRole:"editor",canAccess:!r,fallback:(0,n.jsx)(a.M,{buttonType:"primary",text:o("detail.custom-column.note-sheet.buttons.save"),disabled:!0}),children:(0,n.jsx)(a.M,{buttonType:"primary",text:o("detail.custom-column.note-sheet.buttons.save"),onClick:S(M)})}),(0,n.jsx)(a.M,{buttonType:"contrast",text:o("detail.custom-column.note-sheet.buttons.cancel"),onClick:V})]})]})});var l1=t(90187);let l0=({note:e,influencer:l,rowUniqueParams:t,...h})=>{let g=(0,c.hS)(lX),{t:b}=(0,s.Bd)("managementInf"),p=(0,o.useRouter)().query.groupCode,x=()=>{g({note:e,influencer:l,updateNoteData:j})},j=e=>{if(l&&t&&e)return(0,m.OvI)(l?.platform_code,p,l?.platform_pk,{...{...t?.currentCellData,value_select:t?.currentCellData?.value_select?.id,value_multiselect:t?.currentCellData?.value_multiselect?.flatMap(e=>e?.id??[])},column_id:+(t?.columnId??0),value_note:{title:e.title??"",html_text:e.html_text}})};return(0,n.jsx)(l1.A,{...h,children:e?(0,n.jsx)(a.M,{buttonType:"tertiary",size:"sm",prefix:(0,n.jsx)(i.k,{fill:d.f.global.colors.primary[60]}),text:e?.title??b("detail.custom-column.note.button-text"),onClick:x}):(0,n.jsx)(u.y,{requiredRole:"editor",fallback:(0,n.jsx)(a.M,{buttonType:"tertiary",size:"sm",prefix:(0,n.jsx)(r.A,{}),text:b("detail.custom-column.note.button-text"),disabled:!0}),children:(0,n.jsx)(a.M,{buttonType:"tertiary",size:"sm",prefix:(0,n.jsx)(r.A,{}),text:b("detail.custom-column.note.button-text"),onClick:x})})})};l0.ReadOnly=({note:e,influencer:l,...t})=>{let o=(0,c.hS)(lX),{t:m}=(0,s.Bd)("managementInf");return(0,n.jsx)(l1.A,{...t,children:e?(0,n.jsx)(a.M,{buttonType:"tertiary",size:"sm",prefix:(0,n.jsx)(i.k,{fill:d.f.global.colors.primary[60]}),text:e?.title??m("detail.custom-column.note.button-text"),onClick:()=>{o({note:e,influencer:l,isReadOnly:!0})}}):(0,n.jsx)(a.M,{buttonType:"tertiary",size:"sm",prefix:(0,n.jsx)(r.A,{}),text:m("detail.custom-column.note.button-text"),disabled:!0})})};let l2=l0},3622:(e,l,t)=>{t.d(l,{A:()=>h});var n=t(80263),a=t(54896),i=t(53239),r=t(7197);t(44612),t(65014);var o="_1r6w5vy0 lkuzww7",s="_1r6w5vy2 lkuzww7";let c=e=>{let l,t=/\b((https?:\/\/)?([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/[^\s?#]*)?(\?[^\s#]*)?(#[^\s]*)?)\b/g;for(;null!==(l=t.exec(e));){let e=l[0];if(/^https?:\/\//.test(e))return e;if(/^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/[^\s?#]*)?(\?[^\s#]*)?(#[^\s]*)?$/.test(e))return`https://${e}`}};var d=t(90187),m=t(97464);let u=({content:e,onOpen:l,onClose:t,...u})=>{let h=u.row?.original,g=h?.username,[b,p]=(0,i.useState)(e||"");(0,i.useEffect)(()=>{b!==e&&p(e??"")},[e,g]);let[x,j]=(0,i.useState)(!1),f=e=>{j(e),e?l?.():e||t?.(b||null)},C=u?.column?.getSize(),y=c(b);return(0,n.jsxs)(a.bL,{onOpenChange:f,open:x,children:[(0,n.jsx)(a.l9,{asChild:!0,children:(0,n.jsx)(d.A,{justify:"start",...u,className:"_1r6w5vy1",children:(0,n.jsxs)("div",{className:o,children:[y&&(0,n.jsx)(r.A,{link:y,target:"_blank",rel:"noreferrer",onClick:e=>e.stopPropagation(),isLazy:!0,children:(0,n.jsx)("a",{className:s,href:y,target:"_blank",onClick:e=>e.stopPropagation(),rel:"noreferrer",children:b})}),!y&&(0,n.jsx)("p",{children:b})]})})}),(0,n.jsx)(a.ZL,{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.UC,{side:"top",align:"start",sideOffset:-56,hideWhenDetached:!0,style:{zIndex:10},children:(0,n.jsx)(m.A,{width:C>160?C:160,value:b,onChange:e=>p(e.currentTarget.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||f(!1)}})}),(0,n.jsx)("div",{style:{position:"fixed",width:"100vw",height:"100vh",top:0,left:0}})]})})]})};u.ReadOnly=({content:e="",...l})=>{let t=c(e);return(0,n.jsx)(d.A,{justify:"start",...l,children:(0,n.jsxs)("div",{className:o,children:[t&&(0,n.jsx)(r.A,{link:t,target:"_blank",rel:"noreferrer",onClick:e=>e.stopPropagation(),isLazy:!0,children:(0,n.jsx)("a",{className:s,href:t,target:"_blank",onClick:e=>e.stopPropagation(),rel:"noreferrer",children:e})}),!t&&(0,n.jsx)("p",{children:e})]})})};let h=u},4463:(e,l,t)=>{t.d(l,{S:()=>m,y:()=>u});var n=t(77805),a=t(81560),i=t(93625),r=t(15149),o=t(26781),s=t(2990),c=t(36758),d=t(89947);let m=[{displayName:(0,d.tF)("managementInf:detail.custom-column.column-types.text"),value:"text",icon:n.t,justify:"start",sortable:!0,size:120,analyticsName:"Text"},{displayName:(0,d.tF)("managementInf:detail.custom-column.column-types.float"),value:"float",icon:a.S,justify:"end",sortable:!0,size:120,analyticsName:"Number"},{displayName:(0,d.tF)("managementInf:detail.custom-column.column-types.url"),value:"url",icon:i.U,justify:"start",sortable:!0,size:220,analyticsName:"URL"},{displayName:(0,d.tF)("managementInf:detail.custom-column.column-types.boolean"),value:"boolean",icon:r.v,justify:"start",sortable:!0,size:100,analyticsName:"Checkbox"},{displayName:(0,d.tF)("managementInf:detail.custom-column.column-types.select"),value:"select",icon:o.t,justify:"start",sortable:!0,size:120,analyticsName:"Select"},{displayName:(0,d.tF)("managementInf:detail.custom-column.column-types.file"),value:"file",icon:s.d,justify:"start",sortable:!1,size:120,analyticsName:"File"},{displayName:(0,d.tF)("managementInf:detail.custom-column.column-types.note"),value:"note",icon:c.p,justify:"start",sortable:!1,size:120,analyticsName:"Note"}],u=m.reduce((e,l)=>(e[l.value]=l,e),{})},5140:(e,l,t)=>{t.d(l,{k:()=>a});var n=t(80263);let a=(0,t(53239).memo)(({className:e,width:l=24,height:t=24,...a})=>(0,n.jsxs)("svg",{width:l,height:t,className:e,viewBox:"0 0 24 24",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",...a,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 6C7 5.44772 7.44772 5 8 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H8C7.44772 7 7 6.55228 7 6Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 12C7 11.4477 7.44772 11 8 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H8C7.44772 13 7 12.5523 7 12Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 18C7 17.4477 7.44772 17 8 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H8C7.44772 19 7 18.5523 7 18Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H3.01C3.56228 5 4.01 5.44772 4.01 6C4.01 6.55228 3.56228 7 3.01 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H3.01C3.56228 11 4.01 11.4477 4.01 12C4.01 12.5523 3.56228 13 3.01 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H3.01C3.56228 17 4.01 17.4477 4.01 18C4.01 18.5523 3.56228 19 3.01 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor"})]}));a.displayName="ListIcon"},7276:(e,l,t)=>{t.d(l,{q:()=>a});var n=t(80263);let a=(0,t(53239).memo)(({className:e,width:l=24,height:t=24,...a})=>(0,n.jsxs)("svg",{width:l,height:t,className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...a,children:[(0,n.jsx)("path",{d:"M16.9958 1.06669C15.4226 1.05302 13.907 1.65779 12.7753 2.75074L12.765 2.76086L11.045 4.47086C10.6534 4.86024 10.6515 5.49341 11.0409 5.88507C11.4303 6.27673 12.0634 6.27858 12.4551 5.88919L14.1697 4.18456C14.9236 3.45893 15.9319 3.05752 16.9784 3.06662C18.0272 3.07573 19.0304 3.49641 19.772 4.23804C20.5137 4.97967 20.9344 5.98292 20.9435 7.03171C20.9526 8.07776 20.5515 9.08563 19.8265 9.83941L16.833 12.8329C16.4274 13.2386 15.9393 13.5524 15.4019 13.7529C14.8645 13.9533 14.2903 14.0359 13.7181 13.9949C13.146 13.9539 12.5894 13.7904 12.0861 13.5154C11.5827 13.2404 11.1444 12.8604 10.8008 12.401C10.47 11.9588 9.84333 11.8685 9.40108 12.1993C8.95883 12.5301 8.86849 13.1568 9.1993 13.599C9.71464 14.288 10.3721 14.858 11.1272 15.2705C11.8822 15.683 12.7171 15.9283 13.5753 15.9898C14.4334 16.0513 15.2948 15.9274 16.1009 15.6267C16.907 15.326 17.639 14.8555 18.2473 14.247L21.2472 11.2471L21.2593 11.2347C22.3523 10.1031 22.9571 8.58751 22.9434 7.01433C22.9297 5.44115 22.2987 3.93628 21.1863 2.82383C20.0738 1.71138 18.5689 1.08036 16.9958 1.06669Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M10.4247 8.0102C9.56657 7.94874 8.70522 8.07256 7.89911 8.37326C7.09305 8.67395 6.36096 9.14458 5.75272 9.753L2.75285 12.7529L2.74067 12.7653C1.64772 13.8969 1.04295 15.4125 1.05662 16.9857C1.07029 18.5589 1.70131 20.0637 2.81376 21.1762C3.9262 22.2886 5.43108 22.9196 7.00426 22.9333C8.57744 22.947 10.0931 22.3422 11.2247 21.2493L11.2371 21.2371L12.9471 19.5271C13.3376 19.1366 13.3376 18.5034 12.9471 18.1129C12.5565 17.7223 11.9234 17.7223 11.5328 18.1129L9.82932 19.8164C9.07555 20.5414 8.06768 20.9425 7.02164 20.9334C5.97285 20.9243 4.9696 20.5036 4.22797 19.762C3.48634 19.0203 3.06566 18.0171 3.05655 16.9683C3.04746 15.9222 3.44851 14.9144 4.17355 14.1606L7.16719 11.167C7.5727 10.7613 8.06071 10.4476 8.59811 10.2471C9.13552 10.0467 9.70976 9.96412 10.2819 10.0051C10.854 10.0461 11.4106 10.2096 11.9139 10.4846C12.4173 10.7596 12.8556 11.1397 13.1992 11.599C13.53 12.0412 14.1567 12.1316 14.5989 11.8007C15.0412 11.4699 15.1315 10.8433 14.8007 10.401C14.2854 9.71205 13.6279 9.14198 12.8729 8.72948C12.1178 8.31697 11.2829 8.07166 10.4247 8.0102Z",fill:"currentColor"})]}));a.displayName="LinkIcon"},8486:(e,l,t)=>{t.d(l,{mb:()=>a,ob:()=>r,wG:()=>i});let n={ko:"kr_name",en:"en_name",ja:"ja_name"},a=e=>n[e]??"kr_name",i=(e,l)=>{let t=a(l);return new Map(e.filter(e=>e.is_active).map(e=>[e.country_code,e.display_names[t]]))},r=(e,l,t)=>{let n=a(t);return l.find(l=>l.country_code===e)?.display_names[n]??e}},8968:(e,l,t)=>{t.d(l,{A:()=>s});var n=t(80263),a=t(582),i=t(53239),r=t(37606),o=t(8486);let s=({code:e})=>{let l=(0,a.useRouter)(),{data:t=[]}=(0,r.RA)("tt"),s=(0,i.useMemo)(()=>(0,o.wG)(t,l.locale??"ko"),[t,l.locale]);return e?(0,n.jsx)(n.Fragment,{children:s.get(e)??e}):(0,n.jsx)(n.Fragment,{children:"-"})}},10846:(e,l,t)=>{t.d(l,{A:()=>g});var n=t(80263),a=t(90453),i=t(8996),r=t(25403),o=t(95756),s=t(3638),c=t(52659),d=t(53239),m=t(50610),u=t(13019),h=t(13050);
1t(3855),t(44612),t(21228),t(40588),t(50257);let g=({children:e,justify:l="center",header:t,table:g,bgColor:b="background-1",orderAreaClassName:p,className:x,...j})=>{let{t:f}=(0,c.Bd)("managementInf"),[C,y]=(0,d.useState)(!1),v=t?.column.getIsResizing(),w=g?.getState().columnSizingInfo,_=t?.column.getToggleSortingHandler(),N=g?.options.meta?.sensitiveData,I=t?.column.id,L=!!I&&N?.[I],k=t?.column.getSize(),R={...j.style,width:`${k}px`},A=(()=>{if(!g||!t)return!1;let e=g.getHeaderGroups().flatMap(e=>e.headers).filter(e=>"left"===e.column.getIsPinned()),l=e[e.length-1];return l?.id===t.column.id})(),z=t?.column.getIsSorted(),S=t?.column.getCanSort(),E=w?.isResizingColumn!==!1,V=w?.isResizingColumn===t?.id;return(0,n.jsxs)("div",{...j,className:(0,s.A)((0,h.Uu)({align:"center",gap:"spacing-100"}),A?"_1lgofkg3 hjwbnu3a6 hjwbnu3cu _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd lkuzww1":"_1lgofkg1 hjwbnu3a6 hjwbnu3cu _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd lkuzww1",C&&!E?"_1lgofkg4":"",S?"_1lgofkg9":"",(0,m.UV)({bgColor:b}),x),style:R,onClick:e=>{j.onClick&&j.onClick(e),_&&_(e)},onMouseEnter:()=>{(!E||V)&&y(!0)},onMouseLeave:()=>{y(!1)},children:[L&&(0,n.jsx)(a.p,{containerClassName:"_1lgofkga",title:f("detail.table-head.head-cell.secret-data.tooltip.title"),text:f("detail.table-head.head-cell.secret-data.tooltip.text"),autoAdjust:!0,children:(0,n.jsx)(o.i,{size:14,fill:u.f.semantic.color.icon.tertiary})}),(0,n.jsxs)("div",{className:(0,s.A)(h.x3,(0,h.Uu)({justify:l})),children:[(0,n.jsxs)("div",{className:(0,s.A)("_1lgofkg8 _1s3rlbm0 _1s3rlbm1 _1s3rlbm4 _1s3rlbm9 _1s3rlbmd _1s3rlbmn",p),children:[e,S&&(0,n.jsxs)(n.Fragment,{children:["asc"===z&&(0,n.jsx)(i.S,{}),"desc"===z&&(0,n.jsx)(r.j,{}),!z&&C&&(0,n.jsx)(r.j,{})]})]}),(0,n.jsx)("div",{onClick:e=>{e.stopPropagation()},className:(0,s.A)("_1lgofkg6 hjwbnu20p",v?"_1lgofkg7":""),onMouseDown:t?.getResizeHandler(),onTouchStart:t?.getResizeHandler()})]})]})}},15551:(e,l,t)=>{t.d(l,{A:()=>eJ});var n=t(57907),a=t(94211),i=t(582),r=t.n(i),o=t(52659),s=t(53239),c=t(81072),d=t(19690),m=t(44954),u=t(63933),h=t(35428),g=t(80263),b=t(13019),p=t(13050),x=t(4463),j=t(85784),f=t(73528),C=t(80878),y=t(990),v=t(41323),w=t(90453),_=t(2281);
1t(3855),t(44612),t(21228),t(40588),t(8180);var N=t(1061),I=t(3024),L=t(44382),k=t(89227),R=t(30620),A=t(45169),z=t(54896),S=t(49631),E=t(59609);let V=["gray","red","orange","lightGreen","teal","blue","indigo","magenta","contrast"],H={[E.K.gray]:"íì",[E.K.red]:"빨ê°ì",[E.K.orange]:"주í©ì",[E.K.lightGreen]:"ì´ë¡ì",[E.K.teal]:"ì²ë¡ì",[E.K.blue]:"íëì",[E.K.indigo]:"ë³´ë¼ì",[E.K.magenta]:"ì주ì",[E.K.contrast]:"ê²ì ì"};var M=t(60922),U=t(95360);let T=({resolve:e})=>(0,g.jsx)(M.z,{size:"sm",title:"ì íí ìµì
ì ìì íìê² ìµëê¹?",status:"danger",handleClose:()=>e(!1),hasCloseButton:!1,isBgClose:!0,actionsChildren:[(0,g.jsx)(N.M,{buttonType:"contrast",text:"ì·¨ì",onClick:()=>e(!1)},"cancel"),(0,g.jsx)(N.M,{text:"ìì í기",isDanger:!0,onClick:()=>e(!0)},"submit")],ref:e=>{if(e){e.style.zIndex="1000";let l=e.previousElementSibling;l&&(l.style.zIndex="999")}},children:(0,g.jsx)(U.Z,{variant:"$body-2",$css:{color:"$text-1"},children:"ìµì
ì´ ìì ëë©´ í´ë¹ ìµì
ì´ ì
ë ¥ë ì
ì ë°ì´í°ë ì§ìì§ê² ë©ëë¤. ìì ë ìµì
ì 복구í ì ììµëë¤."})});t(61052);var D="_1vth24e9 hjwbnu3ku hjwbnu3no hjwbnu256";let K=({option:e,onUpdateOption:l,onDeleteOption:t,onModalOpenChange:n,onPopoverOpenChange:a})=>{let[i,r]=(0,s.useState)(!1),[o,c]=(0,s.useState)(e.label??""),d=(0,s.useRef)(null),m=String(e.id),u=t=>{let n;r(t),a?.(t),t||((n=o.trim())&&n!==e.label?l(m,{label:n}):c(e.label??""))},h=(0,S.hS)(T),b=async()=>{n?.(!0);let e=await h();n?.(!1),e&&await t(m)};return(0,g.jsxs)(z.bL,{open:i,onOpenChange:u,children:[(0,g.jsx)("div",{onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),onPointerUp:e=>e.stopPropagation(),children:(0,g.jsx)(z.l9,{asChild:!0,children:(0,g.jsx)(N.M,{size:"xs",buttonType:"contrast",prefix:(0,g.jsx)(k.n,{})})})}),(0,g.jsx)(z.ZL,{children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"_1vth24e0",onClick:()=>u?.(!1)}),(0,g.jsxs)(z.UC,{className:"_1vth24e2 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbmp hjwbnu3vi hjwbnu336 hjwbnu3a6 hjwbnu3cu hjwbnu34u hjwbnu37i hjwbnu12o",side:"bottom",align:"start",sideOffset:4,onOpenAutoFocus:e=>e.preventDefault(),onFocusOutside:e=>e.preventDefault(),onInteractOutside:e=>{e.preventDefault()},children:[(0,g.jsx)("div",{className:"_1vth24e4 hjwbnu3a6 hjwbnu3cu _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd",children:(0,g.jsx)(I.P,{ref:d,value:o,onChange:e=>c(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),u(!1))},maxLength:128})}),(0,g.jsx)("hr",{className:D}),(0,g.jsx)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme",children:V.map(t=>(0,g.jsxs)("div",{className:"_1vth24e7 _1s3rlbm0 _1s3rlbm1 _1s3rlbm6 _1s3rlbm9 _1s3rlbmd _1s3rlbmp hjwbnu336 hjwbnu3a6 hjwbnu3cu",onClick:()=>{t!==e.color&&l(m,{color:t})},children:[(0,g.jsx)(L.bL,{color:t,size:"sm",children:(0,g.jsx)(L.EY,{children:H[t]})}),e.color===t&&(0,g.jsx)(R.M,{})]},t))}),(0,g.jsx)("hr",{className:D}),(0,g.jsxs)("div",{className:"_1vth24eb hjwbnu336 hjwbnu3a6 hjwbnu3cu hjwbnu34o hjwbnu37c hjwbnuc6 lkuzww8 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmo",onClick:b,children:[(0,g.jsx)(A.w,{size:"16px"}),"ìµì
ìì "]})]})]})})]})},Z=e=>{let l=e.row?.original,t=l?.platform_code,i=l?.groupCode,r=e.column?.id??"",{updateOption:o,deleteOption:d,createOption:m}=(({columnId:e,platformCode:l,groupCode:t})=>{let i=(0,a.jE)(),{showToast:r}=(0,n.d)(),o=(0,c.JTl)(l,t),d=(0,s.useCallback)(async(n,a)=>{let s=i.getQueryData(o);i.setQueryData(o,l=>l?l.map(l=>String(l.id)!==e?l:{...l,options:l.options?.map(e=>String(e.id)===n?{...e,...a}:e)}):l);try{await (0,c.a9L)(l,t,e,n,a),await i.invalidateQueries({queryKey:o}),await i.invalidateQueries({queryKey:["management-group-detail"]})}catch{i.setQueryData(o,s),r({status:"error",title:"ìµì
ìì ì¤í¨",description:"ìµì
ìì ì¤ ì¤ë¥ê° ë°ìíìµëë¤."})}},[l,t,e,i,o,r]);return{updateOption:d,deleteOption:(0,s.useCallback)(async n=>{let a=i.getQueryData(o);i.setQueryData(o,l=>l?l.map(l=>String(l.id)!==e?l:{...l,options:l.options?.filter(e=>String(e.id)!==n)}):l);try{await (0,c.$4J)(l,t,e,n),await i.invalidateQueries({queryKey:o}),await i.invalidateQueries({queryKey:["management-group-detail"]}),r({status:"success",title:"ìµì
ìì ìë£",description:"ìµì
ì´ ìì ëììµëë¤."})}catch{i.setQueryData(o,a),r({status:"error",title:"ìµì
ìì ì¤í¨",description:"ìµì
ìì ì
1¤ ì¤ë¥ê° ë°ìíìµëë¤."})}},[l,t,e,i,o,r]),createOption:(0,s.useCallback)(async n=>{try{await (0,c.ncj)(l,t,e,n),await i.invalidateQueries({queryKey:o})}catch{r({status:"error",title:"ìµì
ìì± ì¤í¨",description:"ìµì
ìì± ì¤ ì¤ë¥ê° ë°ìíìµëë¤."})}},[l,t,e,i,o,r])}})({columnId:r,platformCode:t,groupCode:i}),{data:u=[]}=(0,c.j0w)(t,i,{query:{enabled:!!t&&!!i,select(e){let l=e?.find(e=>String(e.id)===r);return l?.options??[]}}}),h=(0,s.useRef)(!1),b=(0,s.useRef)(!1),p=u.length>=50,x=(0,s.useCallback)(e=>{(h.current||b.current)&&e.preventDefault()},[]),j=(0,s.useCallback)(()=>h.current||b.current,[]);return(0,g.jsx)(v.A,{...e,onInteractOutside:x,shouldPreventClose:j,renderOptionAction:e=>null==e.id?null:(0,g.jsx)(K,{option:e,onUpdateOption:o,onDeleteOption:d,onModalOpenChange:e=>{h.current=e},onPopoverOpenChange:e=>{b.current=e}}),footerSlot:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"ro77k31 hjwbnu3a6 hjwbnu3cu hjwbnu256"}),(0,g.jsx)(w.p,{text:"ìµë 50ê°ê¹ì§ ìì±í ì ììµëë¤.",disabled:!p,zIndex:100,children:(0,g.jsxs)("button",{type:"button",className:"ro77k33 lkuzww8 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmo hjwbnu336 hjwbnu3a6 hjwbnu3cu hjwbnu3c",onClick:()=>{p||m({label:(e=>{let l=`ìµì
${e.length+1}`,t=e.map(e=>e.label),n=l,a=1;for(;t.includes(n);)n=`${l}(${a})`,a++;return n})(u),color:"gray"})},disabled:p,children:[(0,g.jsx)(_.j,{size:"16px"})," ",(0,g.jsx)("span",{children:"ì ìµì
ìì±"})]})})]})})};Z.ReadOnly=v.A.ReadOnly;var B=t(61504),q=t(3622),O=t(10846),Y=t(24983);let P=(e,l)=>{if(void 0===r()||!e.getCanSort())return;let t=r()?.query,n=l??e.id,a=e.getNextSortingOrder();a||(delete t.sortField,delete t.sortOrder);let i={...t,page:1,...a?{sortField:String(n),sortOrder:String(a)}:{}};r()?.push({pathname:r().pathname,query:i})},F=e=>!!(null==e||"-"===e||Array.isArray(e)&&0===e.length)||"object"==typeof e&&0===Object.keys(e).length,$=e=>{let{columnId:l,columnType:t,handleUpdateCellData:n}=e.column.columnDef.meta,a=e.row.original,i=a?.platform_pk??void 0,r=a.customColumns?.[l]??{},o=r[`value_${t}`],{readOnly:s}=e.table.options.meta,c={columnId:l.toString(),platformPk:i,columnType:t,currentCellData:r},d=n?.(c);return s?(0,g.jsx)(v.A.ReadOnly,{column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)("custom").cell,content:o??void 0}):(0,g.jsx)(Z,{column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)("custom").cell,content:o??void 0,onChange:d})};var Q=t(49435),G=t(33080),J=t(78593),W=t(21539),X=t(89870);t(19351);var ee=t(63169),el=t(72738);t(94570);let et=(0,s.createContext)(void 0),en=({children:e})=>{let[l,t]=(0,s.useState)(!1),[n,a]=(0,s.useState)(!1),i=async e=>{a(!0),await e(),a(!1)};return(0,g.jsx)(et.Provider,{value:{isOpen:l,setIsOpen:e=>{n||t(e)},isOpenMultiple:n,setIsOpenMultiple:a,handleMultipleOpen:i},children:e})},ea=()=>{let e=(0,s.useContext)(et);if(void 0===e)throw Error("useColumnSettingsContext must be used within a ColumnSettingsProvider");return e};var ei=t(18577),er=t(51596),eo=t(50099);t(74055);let es=({columnData:e,onEdit:l,onDelete:t})=>{let n=x.y?.[e?.data_type]?.icon??(()=>(0,g.jsx)(g.Fragment,{}));return(0,g.jsxs)("li",{className:"qwnus81 hjwbnu336 hjwbnu3ac hjwbnu3d0 hjwbnu12o hjwbnu12v _1s3rlbm0 _1s3rlbm1 _1s3rlbm6 _1s3rlbm9 _1s3rlbmd _1s3rlbmp",children:[(0,g.jsxs)("div",{className:"qwnus82 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmp lkuzww8",children:[(0,g.jsx)(n,{size:14,fill:b.f.semantic.color.icon.secondary}),(0,g.jsx)(eo.A,{element:"p",children:e?.display_name})]}),(0,g.jsxs)("div",{className:"qwnus83 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmn",children:[(0,g.jsx)(N.M,{buttonType:"contrast",size:"xs",prefix:(0,g.jsx)(ei.O,{size:"20px"}),onClick:()=>l?.(e)}),(0,g.jsx)(N.M,{buttonType:"contrast",size:"xs",prefix:(0,g.jsx)(er.a,{size:"20px"}),onClick:()=>t?.(e)})]})]})};var ec=t(85047),ed=t(92304),em=t(20344),eu=t(91356),eh=t(80001),eg=t(45382),eb=t(91687);t(41524);let ep=({platformCode:e,groupCode:l,resolve:t})=>{let{t:i}=(0,o.Bd)(["managementInf","common"]),r=(0,a.jE)(),{showToast:d}=(0,n.d)(),{trackEvent:m}=(0,eb.Z)(),{register:u,control:h,formState:{errors:b,isValid:p},setError:j,clearErrors:f,handleSubmit:C,trigger:y}=(0,eh.mN)({defaultValues:{columnType:"text",columnName:""},mode:"onChange"}),v=(0,eh.FH)({control:h,name:"columnType"}),{options:w,handleAddOption:k,handleDeleteOption:R,handleChangeOption:z}=(()=>
1{let[e,l]=(0,s.useState)([{color:"gray",label:""}]);return{options:e,setOptions:l,handleAddOption:()=>{l([...e,{color:"gray",label:""}])},handleDeleteOption:t=>{l(e.filter((e,l)=>l!==t))},handleChangeOption:(t,n)=>{l(e.map((e,l)=>l===t?n:e))}}})(),S=u("columnName",{required:i("detail.custom-column.add-column-modal.col-name.register-required"),maxLength:{value:20,message:i("common:validation.length.too-long",{length:20})},onChange(e){if(e.target.value.length>20){e.target.value=e.target.value.slice(0,20),j("columnName",{type:"maxLength",message:i("common:validation.length.too-long",{length:20})});return}f("columnName")},onBlur(){y("columnName")}}),{mutateAsync:E,isPending:V}=(0,c.jui)(),H=C(async n=>{try{let a={data_type:n.columnType,display_name:n.columnName};"select"===n.columnType&&(a.options=w.map((e,l)=>({color:e.color,label:""!==e.label&&e.label?e.label:i("detail.custom-column.add-column-modal.select-option.option.placeholder",{num:l+1,noWrap:!0}),order:l+1}))),await E({platformCode:e,groupCode:l,data:a}),await r.invalidateQueries({queryKey:(0,c.JTl)(e,l)}),await r.invalidateQueries({queryKey:["getMgmtGroupDetailInf"]}),m("create_custom_column",{custom_column_type:x.y[n.columnType].analyticsName,custom_column_name:n.columnName}),t(!0),d({status:"success",title:i("detail.custom-column.add-column-modal.toast-success.title"),description:i("detail.custom-column.add-column-modal.toast-success.description")})}catch(e){"instance_already_exists"===e.resultCode?d({status:"error",title:i("detail.custom-column.add-column-modal.toast-duplication.title"),description:i("detail.custom-column.add-column-modal.toast-duplication.description")}):d({status:"error",title:i("detail.custom-column.add-column-modal.toast-error.title"),description:i("detail.custom-column.add-column-modal.toast-error.description")})}});return(0,g.jsx)(M.z,{size:"sm",title:i("detail.custom-column.add-column-modal.title"),handleClose:()=>t(!1),hasCloseButton:!1,isBgClose:!0,actionsChildren:[(0,g.jsx)(N.M,{buttonType:"contrast",text:i("detail.custom-column.add-column-modal.buttons.cancel"),onClick:()=>t(!1)},"cancel"),(0,g.jsx)(N.M,{buttonType:"primary",text:i("detail.custom-column.add-column-modal.buttons.add"),type:"submit",form:"add-column-form",isLoading:V,disabled:!p},"submit")],children:(0,g.jsxs)("div",{className:"_17bosxz0 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbms",children:[(0,g.jsx)("p",{className:"lkuzww8",children:i("detail.custom-column.add-column-modal.description")}),(0,g.jsxs)("form",{id:"add-column-form",className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbmr",onSubmit:H,children:[(0,g.jsx)(eh.xI,{control:h,name:"columnType",rules:{required:i("detail.custom-column.add-column-modal.col-type.register-required")},render:({field:{onChange:e,value:l,ref:t}})=>{let n=x.y[l];return(0,g.jsxs)(ec.bL,{required:!0,children:[(0,g.jsx)(ec.JU,{children:i("detail.custom-column.add-column-modal.col-type.label")}),(0,g.jsxs)(ed.bL,{value:l,onValueChange:l=>{null!=l&&e(l)},children:[(0,g.jsx)(ed.l9,{ref:t,$css:{width:"100%"},children:(0,g.jsx)(ed.WT,{children:n?(0,g.jsxs)(em.z,{$css:{gap:"$spacing-150",alignItems:"center"},children:[(0,g.jsx)(n.icon,{size:"16px"}),n.displayName()]}):void 0})}),(0,g.jsx)(ed.ZL,{children:(0,g.jsx)(ed.Pf,{children:(0,g.jsx)(ed.zD,{children:x.S.map(e=>(0,g.jsxs)(ed.q7,{value:e.value,children:[(0,g.jsx)(e.icon,{size:"16px"}),(0,g.jsx)(ed.p4,{children:e.displayName()})]},e.value))})})})]})]})}}),(0,g.jsx)(I.P,{label:i("detail.custom-column.add-column-modal.col-name.label"),required:!0,...S,status:b.columnName?"error":"none",validationText:b.columnName?b.columnName?.message:"",placeholder:i("detail.custom-column.add-column-modal.col-name.placeholder")}),"select"===v&&(0,g.jsxs)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbmq",children:[(0,g.jsxs)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm6 _1s3rlbmb _1s3rlbmd lkuzww0 hjwbnu3i",children:[(0,g.jsx)("p",{children:i("detail.custom-column.add-column-modal.select-option.title")}),(0,g.jsx)(N.M,{text:i("detail.custom-column.add-column-modal.select-option.button-add"),buttonType:"tertiary",size:"sm",prefix:(0,g.jsx)(_.j,{}),onClick:k,type:"button"})]}),(0,g.jsx)(el.r,{className:"_17bosxz7 hjwbnu336 hjwbnu350 hjwbnu37o hjwbnu3ac hjwbnu3d0 hjwbnu256",children:(0,g.jsx)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm6 _
11s3rlbmc _1s3rlbme _1s3rlbmq",children:w.map((e,l)=>(0,g.jsxs)("div",{className:"_17bosxz9 _1s3rlbm0 _1s3rlbm1 _1s3rlbm6 _1s3rlbm9 _1s3rlbmd _1s3rlbmo",children:[(0,g.jsxs)(eu.bL,{width:"78px",value:e.color,onValueChange:t=>z(l,{...e,color:t}),children:[(0,g.jsx)(eu.l9,{children:(0,g.jsx)(eu.WT,{})}),(0,g.jsx)(eu.ZL,{children:(0,g.jsx)(eu.UC,{children:Object.values(eg.n).map(e=>(0,g.jsx)(eu.q7,{value:e,children:(0,g.jsx)(L.bL,{color:e,size:"xs",children:(0,g.jsx)(L.EY,{children:i("detail.custom-column.add-column-modal.select-option.option.color")})})},e))})})]}),(0,g.jsx)(I.P,{width:"100%",placeholder:i("detail.custom-column.add-column-modal.select-option.option.placeholder",{num:l+1}),value:e.label,onChange:t=>z(l,{...e,label:t.target.value}),maxLength:20}),(0,g.jsx)(N.M,{buttonType:"contrast",size:"xs",prefix:(0,g.jsx)(A.w,{}),onClick:()=>R(l),disabled:1===w.length,type:"button"})]},l))})})]})]})]})})},ex=({platformCode:e,groupCode:l,columnData:t,resolve:i})=>{let{t:r}=(0,o.Bd)("managementInf"),s=(0,a.jE)(),{showToast:d}=(0,n.d)(),{trackEvent:m}=(0,eb.Z)(),{mutateAsync:u,isPending:h}=(0,c.TKz)(),b=async()=>{if(l&&e&&t)try{await u({platformCode:e,groupCode:l,columnId:`${t.id}`}),await s.invalidateQueries({queryKey:(0,c.JTl)(e,l)}),m("delete_custom_column",{custom_column_type:x.y?.[t?.data_type]?.analyticsName,custom_column_name:t?.display_name}),i(!0),d({status:"success",title:r("detail.custom-column.delete-column-modal.toast-success.title"),description:r("detail.custom-column.delete-column-modal.toast-success.description")})}catch(e){d({status:"error",title:r("detail.custom-column.delete-column-modal.toast-error.title"),description:r("detail.custom-column.delete-column-modal.toast-error.description")})}};return(0,g.jsx)(M.z,{size:"sm",title:r("detail.custom-column.delete-column-modal.title"),handleClose:()=>i(!1),hasCloseButton:!1,isBgClose:!0,actionsChildren:[(0,g.jsx)(N.M,{buttonType:"contrast",text:r("detail.custom-column.delete-column-modal.buttons.cancel"),onClick:()=>i(!1)},"cancel"),(0,g.jsx)(N.M,{buttonType:"primary",text:r("detail.custom-column.delete-column-modal.buttons.delete"),isDanger:!0,isLoading:h,onClick:b},"submit")],children:(0,g.jsx)("p",{className:"lkuzww8",children:r("detail.custom-column.delete-column-modal.description")})})};var ej=t(18287);let ef=()=>{let{t:e}=(0,o.Bd)("managementInf"),l=(0,i.useRouter)(),t=l.query.groupCode,n=l.query.platform,{data:a}=(0,c.j0w)(n,t,{query:{enabled:!!n&&!!t}}),{handleMultipleOpen:r}=ea(),s=(0,S.hS)(ep),d=(0,S.hS)(ej.A),m=(0,S.hS)(ex),u=async()=>{t&&n&&await r(()=>s({groupCode:t,platformCode:n}))},h=async e=>{t&&n&&e&&await r(()=>d({groupCode:t,platformCode:n,columnData:e}))},b=async e=>{t&&n&&e&&await r(()=>m({groupCode:t,platformCode:n,columnData:e}))};return(0,g.jsx)("div",{className:"a7v5m11 hjwbnu3vi hjwbnu336 hjwbnu356 hjwbnu37u hjwbnu12o _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme",children:(0,g.jsxs)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme",children:[(0,g.jsx)("div",{className:"hjwbnu3ao hjwbnu3dc hjwbnu34i hjwbnu376 hjwbnu3o lkuzww7",children:(0,g.jsx)("p",{children:e("detail.custom-column.column-settings.title")})}),(0,g.jsx)(el.r,{className:"a7v5m15",options:{scrollbars:{autoHide:"leave",autoHideDelay:0}},children:(0,g.jsxs)("ul",{className:"a7v5m17 hjwbnu3a0 hjwbnu3co _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme",children:[a?.map(e=>(0,g.jsx)(es,{columnData:e,onEdit:h,onDelete:b},e.id)),a?.length===0&&(0,g.jsxs)("div",{className:"a7v5m18 _1s3rlbm0 _1s3rlbm1 _1s3rlbm4 _1s3rlbm9 _1s3rlbme _1s3rlbmp",children:[(0,g.jsx)("p",{className:"lkuzww1",children:e("detail.custom-column.column-settings.empty-box.title")}),(0,g.jsx)("p",{className:"a7v5m1b hjwbnu3i lkuzww8",children:e("detail.custom-column.column-settings.empty-box.description")})]})]})}),(0,g.jsx)("div",{className:"a7v5m1d hjwbnu3a0 hjwbnu3co hjwbnu34i hjwbnu376",children:(0,g.jsxs)("div",{className:"a7v5m1f hjwbnu3ac hjwbnu3d0 hjwbnu12o hjwbnu207 hjwbnu100 hjwbnu3d _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmo lkuzww8",onClick:u,children:[(0,g.jsx)(_.j,{})," ",e("detail.custom-column.column-settings.add-column")]})})]})})},eC=({children:e})=>{let{isOpen:l,setIsOpen:t}=ea();return(0,g.jsxs)(z.bL,{open:l,onOpenChange:t,children:[(0,g.jsx)(z.l9,{asChild:!0,children:e}),(0,g.jsx)(ee.I,{children:(0,g.jsx)(z.UC,{side:"bottom",align:"end",sideOffset:4,hideWhenDetached:!0,children:(0,g.jsx)(ef,{})})})]})},ey=({children:e})=>(0,g.jsx)(en,{children:(0,g.jsx)(eC,{children:e})});var ev=t(74786);let ew=()=>{let{t:e}=(0,o.Bd)("managementInf"),l=(0,ev.a)(),t=e("detail.table-status-section.buttons.column-setting");return(0,g.jsx)(X.y,{requiredRole:"editor",children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("div",{className:"gqtram0","data-at-end":l?"true":"false",children:(0,g.jsx)(ey,{children:(0,g.jsx)(J.K,{variant:"contrast",size:"sm","aria-label":t,children:(0,g.jsx)(W.P,{})})})})}),(0,g.jsx)(G.UC,{children:(0,g.jsx)(G.VY,{children:t})})]})})},e_={id:"rightFiller",enableSorting:!1,enableResizing:!1,size:36,header:()=>(0,g.jsx)(ew,{}),cell:()=>null};var eN=t(31226),eI=t(88456),eL=t(28352),ek=t(57663),eR=t(53779),eA=t(91975),ez=t(90187),eS=t(33015),eE=t(30002),eV=t(3638),eH=t(50610),eM=t(26217);let eU=({children:e,isEmpty:l})=>{let{t}=(0,o.Bd)("managementInf");return l?(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:"-"}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.VY,{children:t("detail.table-col.fallback.empty-value-tooltip-container")})]})]}):(0,g.jsx)(g.Fragment,{children:e})},eT=()=>{let{t:e}=(0,o.Bd)("managementInf");return(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:(0,g.jsxs)("span",{className:(0,eV.A)(eM.C.body[1],(0,eH.UV)({color:"text-5"})),children:["(",e("detail.table-col.fallback.category-value-fallback"),")"]})}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.VY,{children:e("detail.table-col.fallback.empty-value-tooltip-container")})]})]})};var eD=t(19416),eK=t(82395);let eZ={accessorKey:"last_published_at",id:"last_published_at",size:150,meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.last-published-at.display-name")??""},header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>e.column.toggleSorting(),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.last-published-at.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.last-published-at.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original.last_published_at;return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:!l,children:(e=>{if(!e)return o.Ru?.t("managementInf:detail.table-body.last-published-at.no-result");try{let l=new Date((0,eD.default)(new Date(e),"yyyy.MM.dd")),t=(0,eD.default)(l,"yy.MM.dd"),n=(0,eK.A)(new Date,l),a=n<1?o.Ru?.t("managementInf:detail.table-body.last-published-at.today"):o.Ru?.t("managementInf:detail.table-body.last-published-at.before-day",{day:n});return`${a} (${t})`}catch{return null}})(l)})})}},eB=[{id:"select",header:e=>{let{table:l}=e;return(0,g.jsx)(eE.A,{column:e.column,justify:"start",indeterminate:l.getIsSomeRowsSelected(),checked:l.getIsSomeRowsSelected()||l.getIsAllRowsSelected(),onChange:l.getToggleAllPageRowsSelectedHandler(),bgColor:(0,Y.i)(e.column.id).header})},cell:e=>(0,g.jsx)(ek.A,{justify:"end",column:e.column,row:e.row,checked:e.row.getIsSelected(),onChange:e.row.getToggleSelectedHandler(),bgColor:(0,Y.i)(e.column.id).cell}),size:52},{id:"account",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.username.display-name")},size:350,minSize:150,enableSorting:!1,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.username.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.username.tooltip.text")})]})]})}),cell:e=>{let l=e.table.getRowModel().rows.map(e=>e.original);return(0,g.jsx)(eA.A,{platform:"ig",tableSource:l,row:e.row,column:e.column,table:e.table,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell})}},{accessorKey:"email",id:"email",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.email.display-name")},enableSorting:!1,size:140,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.email.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.email.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.email??void 0,n=l?.platform_pk??void 0;return(0,g.jsx)(eR.A,{platform:"ig",platformPk:n,userName:l?.username,column:e.column,row:e.row,isLoading:e?.isLoading,justify:"start",content:t,bgColor:(0,Y.i)(e.column.id).cell})}},{accessorKey:"note",id:"note",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.note.display-name")},enableSorting:!1,size:140,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.note.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.note.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.note??void 0,n=l?.platform_pk??void 0;return(0,g.jsx)(eR.A,{platform:"ig",platformPk:n,userName:l?.username,column:e.column,row:e.row,isLoading:e?.isLoading,justify:"start",content:t,bgColor:(0,Y.i)(e.column.id).cell})}}],eq=[{accessorKey:"category",id:"category",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.category.display-name")},enableSorting:!1,size:220,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.category.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.category.tooltip.text")})]})]})}),cell:e=>{let l=e.getValue();return(0,g.jsx)(ez.A,{column:e.column,row:e.row,isLoading:e?.isLoading,justify:"start",bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l),children:(0,g.jsxs)("div",{className:(0,p.Uu)({gap:"spacing-150"}),children:[l&&l?.length>0&&l.map((e,l)=>{let t=(0,eL.CC)(e,"ig");return e?(0,g.jsx)(L.bL,{color:t,children:(0,g.jsx)(L.EY,{children:e})},"category"+l):null}),F(l)&&(0,g.jsx)(eT,{})]})})})}},eZ,{accessorKey:"follower",id:"follower",meta:{columnCategory:"metric",displayIntlName:()=>
1o.Ru?.t("managementInf:detail.table-col.ig.follower.display-name")},size:130,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.follower.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.follower.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t);return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:n})})}},{accessorKey:"real_follower",id:"real_follower",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.real-follower.display-name")},size:160,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>{P(e.column)},table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.real-follower.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.real-follower.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t);return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:n})})}},{accessorKey:"real_engagement",id:"real_engagement",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.real-engagement.display-name")},size:160,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.real-engagement.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.real-engagement.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.real_engagement?.(l)();return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l?.real_engagement),children:t})})}},{accessorKey:"languages",id:"languages",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.languages.display-name")},enableSorting:!1,size:160,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.languages.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.languages.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.languages?.(l)();return(0,g.jsx)(ez.A,{justify:"start",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l?.languages),children:t})})}},{accessorKey:"avg_reach",id:"avg_reach",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.avg-reach.display-name")},size:150,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.avg-reach.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.avg-reach.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t);return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:n})})}},{accessorKey:"avg_feed_like",id:"avg_feed_like",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.avg-feed-like.display-name")},size:180,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,table:e.table,onClick:()=>P(e.column),bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.avg-feed-like.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.avg-feed-like.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:24});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}},{accessorKey:"avg_video_view",id:"avg_video_view",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.avg-video-view.display-name")},size:160,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.avg-video-view.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.avg-video-view.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:24});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}},{accessorKey:"avg_video_like",id:"avg_video_like",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.avg-video-like.display-name")},size:170,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.avg-video-like.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.avg-video-like.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:24});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}},{accessorKey:"avg_comment",id:"avg_comment",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.avg-comment.display-name")},size:180,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,table:e.table,onClick:()=>P(e.column),bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.avg-comment.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.avg-comment.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:24});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}}
1,{accessorKey:"main_audience_gender",id:"main_audience_gender",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.main-audience-gender.display-name")},size:140,enableSorting:!1,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:o.Ru?.t("managementInf:detail.table-col.ig.main-audience-gender.display-name")}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.main-audience-gender.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.main-audience-gender.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.main_audience_gender?.(l)();return(0,g.jsx)(ez.A,{justify:"start",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(t),children:t})})}},{accessorKey:"main_audience_age_range",id:"main_audience_age_range",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.main-audience-age-range.display-name")},size:140,enableSorting:!1,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:o.Ru?.t("managementInf:detail.table-col.ig.main-audience-age-range.display-name")}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.main-audience-age-range.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.main-audience-age-range.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.main_audience_age_range?.(l)();return(0,g.jsx)(ez.A,{justify:"start",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(t),children:t})})}},{accessorKey:"est_avg_cpr",id:"est_avg_cpr",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.est-avg-cpr.display-name")},size:130,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.est-avg-cpr.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.est-avg-cpr.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.est_avg_cpr?.(l)()??"-";return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(t),children:t})})}},{accessorKey:"campaign_price",id:"campaign_price",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.campaign-price.display-name")},size:130,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>{P(e.column)},table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.campaign-price.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.campaign-price.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.campaign_price?.(l)();return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(t),children:t??"-"})})}},{id:"filler",enableSorting:!1,enableResizing:!1,header:()=>(0,g.jsx)(O.A,{}),cell:()=>null}];var eO=t(27533);let eY=[{id:"select",enableSorting:!1,header:e=>{let{table:l}=e;return(0,g.jsx)(eE.A,{justify:"start",column:e.column,indeterminate:l.getIsSomeRowsSelected(),checked:l.getIsSomeRowsSelected()||l.getIsAllRowsSelected(),onChange:l.getToggleAllPageRowsSelectedHandler(),bgColor:(0,Y.i)(e.column.id).header})},cell:e=>(0,g.jsx)(ek.A,{justify:"end",column:e.column,row:e.row,checked:e.row.getIsSelected(),onChange:e.row.getToggleSelectedHandler(),bgColor:(0,Y.i)(e.column.id).cell}),size:52},{id:"account",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.nb.username.display-name")},enableSorting:!1,size:350,minSize:150,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.nb.username.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.nb.username.tooltip.text")})]})]})}),cell:e=>{let l=e.table.getRowModel().rows.map(e=>e.original);return(0,g.jsx)(eA.A,{platform:"nb",tableSource:l,table:e.table,column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell})}},{accessorKey:"email",id:"email",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.nb.email.display-name")},enableSorting:!1,size:140,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.nb.email.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.nb.email.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.email??void 0,n=l?.platform_pk??void 0;return(0,g.jsx)(eR.A,{platform:"nb",platformPk:n,userName:l?.username,column:e.column,row:e.row,isLoading:e?.isLoading,justify:"start",content:t,bgColor:(0,Y.i)(e.column.id).cell})}},{accessorKey:"note",id:"note",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.nb.note.display-name")},enableSorting:!1,size:140,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.nb.note.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.nb.note.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.note??void 0,n=l?.platform_pk??void 0;return(0,g.jsx)(eR.A,{platform:"nb",platformPk:n,userName:l?.username,column:e.column,row:e.row,isLoading:e?.isLoading,justify:"start",content:t,bgColor:(0,Y.i)(e.column.id).cell})}}],eP=[{id:"category",accessorKey:"category",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.nb.category.display-name")},size:220,enableSorting:!1,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.nb.category.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.nb.category.tooltip.text")})]})]})}),cell:e=>{let l=e.getValue();return(0,g.jsx)(ez.A,{column:e.column,row:e.row,justify:"start",isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsxs)("div",{className:(0,p.Uu)({align:"center",gap:"spacing-150"}),children:[l&&l?.length>0&&l.map((e,l)=>e?(0,g.jsx)(L.bL,{color:(0,eL.CC)(e,"nb"),children:(0,g.jsx)(L.EY,{children:e})},"category"+l):null),F(l)&&(0,g.jsx)(eT,{})]})})}},eZ,{id:"post_count",accessorKey:"post_count",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.nb.post-count.display-name")},size:120,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.nb.post-count.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.nb.post-count.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t);return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:n})})}},{id:"total_visitor",accessorKey:"total_visitor",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.nb.total-visitor.display-name")},size:150,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.nb.total-visitor.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.nb.total-visitor.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t);return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:n})})}},{id:"locations",accessorKey:"locations",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.nb.locations.display-name")},enableSorting:!1,size:140,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.nb.locations.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.nb.locations.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original.locations,t=eO.f.keys().find(e=>l?.some(l=>l?.includes(e))),n=t?eO.f.get(t)?.():void 0;return(0,g.jsx)(ez.A,{justify:"start",column:e.column,row:e.row,isLoading:e.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:!n,children:n})})}},{id:"avg_today_visitor",accessorKey:"avg_today_visitor",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.nb.avg-today-visitor.display-name")},size:130,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.nb.avg-today-visitor.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.nb.avg-today-visitor.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t);return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:n})})}},{id:"avg_view",accessorKey:"avg_view",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.nb.avg-view.display-name")},size:130,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.nb.avg-view.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.nb.avg-view.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:10});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}},{id:"est_avg_cpv",accessorKey:"est_avg_cpv",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.nb.est-avg-cpv.display-name")},size:120,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.nb.est-avg-cpv.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.nb.est-avg-cpv.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.est_avg_cpv?.(l)();return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(t),children:t})})}},{id:"campaign_price",accessorKey:"campaign_price",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.nb.campaign-price.display-name")},size:130,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.nb.campaign-price.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.nb.campaign-price.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.campaign_price?.(l)();return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(t),children:t})})}},{id:"filler",enableSorting:!1,enableResizing:!1,header:()=>(0,g.jsx)(O.A,{}),cell:()=>null}];var eF=t(8968);let e$=[{id:"category",accessorKey:"category",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.category.display-name")},enableSorting:!1,size:220,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.category.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.category.tooltip.text")})]})]})}),cell:e=>{let l=e.getValue();return(0,g.jsx)(ez.A,{column:e.column,row:e.row,justify:"start",isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsxs)("div",{className:(0,p.Uu)({align:"center",gap:"spacing-150"}),children:[l&&l?.length>0&&l.map((e,l)=>e?(0,g.jsx)(L.bL,{color:(0,eL.CC)(e,"tt"),children:(0,g.jsx)(L.EY,{children:e})},"category"+l):null),F(l)&&(0,g.jsx)(eT,{})]})})}},eZ,{id:"follower",accessorKey:"follower",meta:{columnCategory:"metric",displayIntlName:()=>
1o.Ru?.t("managementInf:detail.table-col.tt.follower.display-name")},size:150,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.follower.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.follower.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t);return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:n})})}},{id:"real_engagement",accessorKey:"real_engagement",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.real-engagement.display-name")},size:170,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.real-engagement.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.real-engagement.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.real_engagement?.(l)();return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l?.real_engagement),children:t})})}},{accessorKey:"most_frequent_region",id:"most_frequent_region",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.most-frequent-region.display-name")},enableSorting:!1,size:160,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.most-frequent-region.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.most-frequent-region.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original.most_frequent_region;return(0,g.jsx)(ez.A,{justify:"start",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l),children:(0,g.jsx)(eF.A,{code:l})})})}},{accessorKey:"languages",id:"languages",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.languages.display-name")},enableSorting:!1,size:160,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.languages.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.languages.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.languages?.(l)();return(0,g.jsx)(ez.A,{justify:"start",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l?.languages),children:t})})}},{id:"avg_view",accessorKey:"avg_view",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.avg-view.display-name")},size:150,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.avg-view.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.avg-view.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:30});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}},{accessorKey:"avg_like",id:"avg_like",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.avg-like.display-name")},size:140,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:o.Ru?.t("managementInf:detail.table-col.tt.avg-like.display-name")}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.avg-like.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.avg-like.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:30});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}},{accessorKey:"avg_comment",id:"avg_comment",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.avg-comment.display-name")},size:140,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:o.Ru?.t("managementInf:detail.table-col.tt.avg-comment.display-name")}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.avg-comment.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.avg-comment.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:30});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}}
1,{accessorKey:"main_audience_gender",id:"main_audience_gender",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.main-audience-gender.display-name")},size:140,enableSorting:!1,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:o.Ru?.t("managementInf:detail.table-col.tt.main-audience-gender.display-name")}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.main-audience-gender.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.main-audience-gender.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.main_audience_gender?.(l)();return(0,g.jsx)(ez.A,{justify:"start",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l?.main_audience_gender),children:t})})}},{accessorKey:"main_audience_age_range",id:"main_audience_age_range",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.main-audience-age-range.display-name")},size:140,enableSorting:!1,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:o.Ru?.t("managementInf:detail.table-col.tt.main-audience-age-range.display-name")}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.main-audience-age-range.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.main-audience-age-range.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.main_audience_age_range?.(l)();return(0,g.jsx)(ez.A,{justify:"start",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l?.main_audience_age_range),children:t})})}},{id:"est_avg_cpv",accessorKey:"est_avg_cpv",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.est-avg-cpv.display-name")},size:140,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.est-avg-cpv.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.est-avg-cpv.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.est_avg_cpv?.(l)();return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(t),children:t})})}},{id:"campaign_price",accessorKey:"campaign_price",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.campaign-price.display-name")},size:140,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.campaign-price.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.campaign-price.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.campaign_price?.(l)();return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(t),children:t})})}},{id:"filler",enableSorting:!1,enableResizing:!1,header:()=>(0,g.jsx)(O.A,{}),cell:()=>null}],eQ=[{id:"category",accessorKey:"category",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tw.category.display-name")},enableSorting:!1,size:220,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tw.category.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tw.category.tooltip.text")})]})]})}),cell:e=>{let l=e.getValue();return(0,g.jsx)(ez.A,{column:e.column,row:e.row,justify:"start",isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsxs)("div",{className:(0,p.Uu)({align:"center",gap:"spacing-150"}),children:[l&&l?.length>0&&l.map((e,l)=>e?(0,g.jsx)(L.bL,{color:(0,eL.CC)(e,"tw"),children:(0,g.jsx)(L.EY,{children:e})},"category"+l):null),F(l)&&(0,g.jsx)(eT,{})]})})}},eZ,{id:"follower",accessorKey:"follower",meta:{columnCategory:"metric",displayIntlName:()=>
1o.Ru?.t("managementInf:detail.table-col.tw.follower.display-name")},size:140,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tw.follower.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tw.follower.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t);return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:n})})}},{id:"real_follower",accessorKey:"real_follower",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tw.real-follower.display-name")},size:160,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tw.real-follower.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tw.real-follower.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t);return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:n})})}},{id:"real_engagement",accessorKey:"real_engagement",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tw.real-engagement.display-name")},size:160,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tw.real-engagement.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tw.real-engagement.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.real_engagement?.(l)();return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l?.real_engagement),children:t})})}},{accessorKey:"languages",id:"languages",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.languages.display-name")},enableSorting:!1,size:160,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.languages.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.languages.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.languages?.(l)();return(0,g.jsx)(ez.A,{justify:"start",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l?.languages),children:t})})}},{id:"avg_view",accessorKey:"avg_view",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tw.avg-view.display-name")},size:190,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tw.avg-view.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tw.avg-view.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:30});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}},{id:"avg_retweet",accessorKey:"avg_retweet",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tw.avg-retweet.display-name")},size:140,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tw.avg-retweet.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tw.avg-retweet.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:30});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}},{id:"avg_like",accessorKey:"avg_like",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tw.avg-like.display-name")},size:140,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tw.avg-like.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tw.avg-like.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:30});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}},{id:"avg_comment",accessorKey:"avg_comment",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tw.avg-comment.display-name")},size:140,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tw.avg-comment.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tw.avg-comment.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:30});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}},{id:"filler",enableSorting:!1,enableResizing:!1,header:()=>(0,g.jsx)(O.A,{}),cell:()=>null}],eG={ig:{basic:eB,metric:eq},yt:{basic:[{id:"select",enableSorting:!1,header:e=>{let{table:l}=e;return(0,g.jsx)(eE.A,{justify:"start",column:e.column,indeterminate:l.getIsSomeRowsSelected(),checked:l.getIsSomeRowsSelected()||l.getIsAllRowsSelected(),onChange:l.getToggleAllPageRowsSelectedHandler(),bgColor:(0,Y.i)(e.column.id).header})},cell:e=>(0,g.jsx)(ek.A,{justify:"end",column:e.column,row:e.row,checked:e.row.getIsSelected(),onChange:e.row.getToggleSelectedHandler(),bgColor:(0,Y.i)(e.column.id).cell}),size:52},{id:"account",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.yt.username.display-name")},enableSorting:!1,size:350,minSize:150,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.username.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.username.tooltip.text")})]})]})}),cell:e=>{let l=e.table.getRowModel().rows.map(e=>e.original);return(0,g.jsx)(eA.A,{platform:"yt",tableSource:l,table:e.table,column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell})}},{accessorKey:"email",id:"email",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.yt.email.display-name")},enableSorting:!1,size:140,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.email.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.email.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.email??void 0,n=l?.platform_pk??void 0;return(0,g.jsx)(eR.A,{platform:"yt",platformPk:n,userName:l?.username,column:e.column,row:e.row,isLoading:e?.isLoading,justify:"start",content:t,bgColor:(0,Y.i)(e.column.id).cell})}},{accessorKey:"note",id:"note",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.yt.note.display-name")},enableSorting:!1,size:140,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.note.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.note.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.note??void 0,n=l?.platform_pk??void 0;return(0,g.jsx)(eR.A,{platform:"yt",platformPk:n,userName:l?.username,column:e.column,row:e.row,isLoading:e?.isLoading,justify:"start",content:t,bgColor:(0,Y.i)(e.column.id).cell})}}],metric:[{id:"category",accessorKey:"category",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.yt.category.display-name")},enableSorting:!1,size:220,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.category.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.category.tooltip.text")})]})]})}),cell:e=>{let l=e.getValue();return(0,g.jsx)(ez.A,{column:e.column,row:e.row,justify:"start",isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsxs)("div",{className:(0,p.Uu)({align:"center",gap:"spacing-150"}),children:[l&&l?.length>0&&l.map((e,l)=>e?(0,g.jsx)(L.bL,{color:(0,eL.CC)(e,"yt"),children:(0,g.jsx)(L.EY,{children:e})},"category"+l):null),F(l)&&(0,g.jsx)(eT,{})]})})}},eZ,{id:"follower",accessorKey:"follower",meta:{columnCategory:"metric",displayIntlName:()=>
1o.Ru?.t("managementInf:detail.table-col.yt.follower.display-name")},header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.follower.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.follower.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t);return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:n})})}},{id:"real_engagement",accessorKey:"real_engagement",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.yt.real-engagement.display-name")},size:160,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.real-engagement.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.real-engagement.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.real_engagement?.(l)();return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l?.real_engagement),children:t})})}},{accessorKey:"languages",id:"languages",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.ig.languages.display-name")},enableSorting:!1,size:160,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.ig.languages.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.ig.languages.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.languages?.(l)();return(0,g.jsx)(ez.A,{justify:"start",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l?.languages),children:t})})}},{id:"avg_video_view",accessorKey:"avg_video_view",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.yt.avg-video-view.display-name")},size:160,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.avg-video-view.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.avg-video-view.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:50});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}},{id:"avg_shorts_view",accessorKey:"avg_shorts_view",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.yt.avg-shorts-view.display-name")},size:160,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.avg-shorts-view.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.avg-shorts-view.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:50});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}},{id:"avg_like",accessorKey:"avg_like",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.yt.avg-like.display-name")},size:160,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.avg-like.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.avg-like.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:50});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}},{id:"avg_comment",accessorKey:"avg_comment",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.yt.avg-comment.display-name")},size:160,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.avg-comment.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.avg-comment.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.[e.column.id],n=(0,eI.VN)(t),a=o.Ru?.t("managementInf:detail.table-col.zero-metric-tooltip",{number:50});return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(n),children:(0,g.jsx)(eS.C,{tooltipText:a,children:n})})})}}
1,{accessorKey:"main_audience_gender",id:"main_audience_gender",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.yt.main-audience-gender.display-name")},size:140,enableSorting:!1,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:o.Ru?.t("managementInf:detail.table-col.yt.main-audience-gender.display-name")}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.main-audience-gender.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.main-audience-gender.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.main_audience_gender?.(l)();return(0,g.jsx)(ez.A,{justify:"start",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l?.main_audience_gender),children:t})})}},{accessorKey:"main_audience_age_range",id:"main_audience_age_range",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.yt.main-audience-age-range.display-name")},size:140,enableSorting:!1,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:o.Ru?.t("managementInf:detail.table-col.yt.main-audience-age-range.display-name")}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.main-audience-age-range.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.main-audience-age-range.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.main_audience_age_range?.(l)();return(0,g.jsx)(ez.A,{justify:"start",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(l?.main_audience_age_range),children:t})})}},{id:"est_avg_cpv",accessorKey:"est_avg_cpv",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.yt.est-avg-cpv.display-name")},size:130,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.est-avg-cpv.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.est-avg-cpv.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.est_avg_cpv?.(l)();return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(t),children:t})})}},{id:"campaign_price",accessorKey:"campaign_price",meta:{columnCategory:"metric",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.yt.campaign-price.display-name")},size:130,header:e=>(0,g.jsx)(O.A,{justify:"end",header:e.header,onClick:()=>P(e.column),table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.yt.campaign-price.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.yt.campaign-price.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=eI.Z.campaign_price?.(l)();return(0,g.jsx)(ez.A,{justify:"end",column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,Y.i)(e.column.id).cell,children:(0,g.jsx)(eU,{isEmpty:F(t),children:t})})}},{id:"filler",enableSorting:!1,enableResizing:!1,header:()=>(0,g.jsx)(O.A,{}),cell:()=>null}]},tw:{basic:[{id:"select",enableSorting:!1,header:e=>{let{table:l}=e;return(0,g.jsx)(eE.A,{justify:"start",column:e.column,indeterminate:l.getIsSomeRowsSelected(),checked:l.getIsSomeRowsSelected()||l.getIsAllRowsSelected(),onChange:l.getToggleAllPageRowsSelectedHandler(),bgColor:(0,Y.i)(e.column.id).header})},cell:e=>(0,g.jsx)(ek.A,{justify:"end",column:e.column,row:e.row,checked:e.row.getIsSelected(),onChange:e.row.getToggleSelectedHandler(),bgColor:(0,Y.i)(e.column.id).cell}),size:52},{id:"account",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tw.username.display-name")},enableSorting:!1,size:350,minSize:150,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tw.username.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tw.username.tooltip.text")})]})]})}),cell:e=>{let l=e.table.getRowModel().rows.map(e=>e.original);return(0,g.jsx)(eA.A,{platform:"tw",tableSource:l,table:e.table,column:e.column,row:e.row,isLoading:e.isLoading,bgColor:(0,Y.i)(e.column.id).cell})}},{accessorKey:"email",id:"email",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tw.email.display-name")},enableSorting:!1,size:140,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tw.email.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tw.email.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.email??void 0,n=l?.platform_pk??void 0;return(0,g.jsx)(eR.A,{platform:"tw",platformPk:n,userName:l?.username,column:e.column,row:e.row,isLoading:e?.isLoading,justify:"start",content:t,bgColor:(0,Y.i)(e.column.id).cell})}},{accessorKey:"note",id:"note",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tw.note.display-name")},enableSorting:!1,size:140,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tw.note.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tw.note.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.note??void 0,n=l?.platform_pk??void 0;return(0,g.jsx)(eR.A,{platform:"tw",platformPk:n,userName:l?.username,column:e.column,row:e.row,isLoading:e?.isLoading,justify:"start",content:t,bgColor:(0,Y.i)(e.column.id).cell})}}],metric:eQ},tt:{basic:[{id:"select",enableSorting:!1,header:e=>{let{table:l}=e;return(0,g.jsx)(eE.A,{justify:"start",column:e.column,indeterminate:l.getIsSomeRowsSelected(),checked:l.getIsSomeRowsSelected()||l.getIsAllRowsSelected(),onChange:l.getToggleAllPageRowsSelectedHandler(),bgColor:(0,Y.i)(e.column.id).header})},cell:e=>(0,g.jsx)(ek.A,{justify:"end",column:e.column,row:e.row,checked:e.row.getIsSelected(),onChange:e.row.getToggleSelectedHandler(),bgColor:(0,Y.i)(e.column.id).cell}),size:52},{enableSorting:!1,id:"account",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.username.display-name")},size:350,minSize:150,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.username.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.username.tooltip.text")})]})]})}),cell:e=>{let l=e.table.getRowModel().rows.map(e=>e.original);return(0,g.jsx)(eA.A,{platform:"tt",tableSource:l,table:e.table,column:e.column,row:e.row,isLoading:e.isLoading,bgColor:(0,Y.i)(e.column.id).cell})}},{accessorKey:"email",id:"email",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.email.display-name")},enableSorting:!1,size:140,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.email.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.email.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.email??void 0,n=l?.platform_pk??void 0;return(0,g.jsx)(eR.A,{platform:"tt",platformPk:n,userName:l?.username,column:e.column,row:e.row,isLoading:e?.isLoading,justify:"start",content:t,bgColor:(0,Y.i)(e.column.id).cell})}},{accessorKey:"note",id:"note",meta:{columnCategory:"basic",displayIntlName:()=>o.Ru?.t("managementInf:detail.table-col.tt.note.display-name")},enableSorting:!1,size:140,header:e=>(0,g.jsx)(O.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,Y.i)(e.column.id).header,children:(0,g.jsxs)(G.bL,{children:[(0,g.jsx)(G.l9,{render:(0,g.jsx)("span",{}),children:e.column.columnDef.meta?.displayIntlName?.()}),(0,g.jsxs)(G.UC,{children:[(0,g.jsx)(G.i3,{}),(0,g.jsx)(G.hE,{children:o.Ru?.t("managementInf:detail.table-col.tt.note.tooltip.title")}),(0,g.jsx)(G.VY,{children:o.Ru?.t("managementInf:detail.table-col.tt.note.tooltip.text")})]})]})}),cell:e=>{let l=e.row.original,t=l?.note??void 0,n=l?.platform_pk??void 0;return(0,g.jsx)(eR.A,{platform:"tt",platformPk:n,userName:l?.username,column:e.column,row:e.row,isLoading:e?.isLoading,justify:"start",content:t,bgColor:(0,Y.i)(e.column.id).cell})}}],metric:e$},nb:{basic:eY,metric:eP}},eJ=(e,l)=>{let{t}=(0,o.Bd)("managementInf"),r=(0,i.useRouter)(),v=(0,a.jE)(),{showToast:w}=(0,n.d)(),_=(0,m.A)({optional:!0}),N=(0,u.Lu)(),{data:I=[],isLoading:L}=(0,d.v5)({query:{select:e=>e.properties}}),{data:k,isLoading:R}=(0,c.j0w)(e,l,{query:{enabled:!!e&&!!l&&!!_}}),A=n=>async a=>{let{columnId:i,platformPk:r,currentCellData:o,columnType:s}=n;try{if(!e||!l||!r||!i)throw Error("Missing required parameters");await v.cancelQueries({queryKey:["management-group-detail"]});let t=`value_${s}`;if("select"===s&&(a=a?.id),"multiselect"===s&&(a=a?.map(e=>e?.id)),"boolean"!==s&&o[t]===a)return;let n={...{...o,value_select:o?.value_select?.id,value_multiselect:o?.value_multiselect?.flatMap(e=>e?.id??[])},column_id:+i,[t]:a};
1await (0,c.OvI)(e,l,r,n),await v.invalidateQueries({queryKey:["management-group-detail"]})}catch(e){await v.invalidateQueries({queryKey:["management-group-detail"]}),w({status:"error",title:t("detail.custom-column.update-cell.toast-error.title"),description:t("detail.custom-column.update-cell.toast-error.description")})}},z=()=>v.cancelQueries({queryKey:["management-group-detail"]}),S=eG[e],E=["est_avg_cpv","est_avg_cpr","campaign_price"],V=(0,h.A)({source:"mgmt-detail"});return{tableCols:(0,s.useMemo)(()=>{let l=[...(0,eN.M)(S.basic,V,e),...(0,Q.h)(I,V,e),...(k??[]).filter(e=>!!e.id).map(e=>(({columnId:e,columnName:l,columnType:t,handleUpdateCellData:n,handleOpenCell:a})=>{let i=x.y[t],r=l=>{let t=i?.justify,n=i?.icon;return(0,g.jsx)(O.A,{justify:t,header:l.header,table:l.table,onClick:()=>{i?.sortable&&P(l.column,"custom_column_"+e)},bgColor:(0,Y.i)("custom").header,children:(0,g.jsxs)("div",{className:(0,p.Uu)({gap:"spacing-100"}),children:[(0,g.jsx)(n,{size:14,fill:b.f.semantic.color.icon.secondary}),l.column.columnDef.meta?.displayIntlName?.()]})})};return"select"===t?{accessorKey:e.toString(),id:e.toString(),meta:{displayIntlName:()=>l,columnCategory:"custom",columnType:t,columnId:e,handleUpdateCellData:n},enableSorting:i?.sortable,size:i?.size,header:r,cell:$}:{accessorKey:e.toString(),id:e.toString(),meta:{displayIntlName:()=>l,columnCategory:"custom",columnType:t},enableSorting:i?.sortable,size:i?.size,header:r,cell:l=>{let i=l.row.original,r=i?.platform_pk??void 0,o=i.customColumns?.[e]??{},s=o[`value_${t}`],{readOnly:c}=l.table.options.meta,d={columnId:e.toString(),platformPk:r,columnType:t,currentCellData:o},m=n?.(d);return"text"===t?c?(0,g.jsx)(B.A.ReadOnly,{column:l.column,row:l.row,isLoading:l?.isLoading,bgColor:(0,Y.i)("custom").cell,content:s??void 0}):(0,g.jsx)(B.A,{column:l.column,row:l.row,isLoading:l?.isLoading,bgColor:(0,Y.i)("custom").cell,content:s??void 0,onClose:m}):"integer"===t||"float"===t?c?(0,g.jsx)(C.A.ReadOnly,{column:l.column,row:l.row,isLoading:l?.isLoading,bgColor:(0,Y.i)("custom").cell,content:s??void 0}):(0,g.jsx)(C.A,{column:l.column,row:l.row,isLoading:l?.isLoading,bgColor:(0,Y.i)("custom").cell,content:s??void 0,onClose:m,onOpen:a}):"url"===t?c?(0,g.jsx)(q.A.ReadOnly,{column:l.column,row:l.row,isLoading:l?.isLoading,bgColor:(0,Y.i)("custom").cell,content:s??void 0}):(0,g.jsx)(q.A,{column:l.column,row:l.row,isLoading:l?.isLoading,bgColor:(0,Y.i)("custom").cell,content:s??void 0,onClose:m}):"boolean"===t?c?(0,g.jsx)(j.A.ReadOnly,{column:l.column,row:l.row,isLoading:l?.isLoading,bgColor:(0,Y.i)("custom").cell,value:s??!1}):(0,g.jsx)(j.A,{column:l.column,row:l.row,isLoading:l?.isLoading,bgColor:(0,Y.i)("custom").cell,value:s??!1,onChange:m}):"file"===t?c?(0,g.jsx)(f.A.ReadOnly,{column:l.column,row:l.row,isLoading:l?.isLoading,bgColor:(0,Y.i)("custom").cell,file:s??void 0,fileInfo:o.file_info??void 0}):(0,g.jsx)(f.A,{column:l.column,row:l.row,isLoading:l?.isLoading,bgColor:(0,Y.i)("custom").cell,file:s??void 0,fileInfo:o.file_info??void 0}):"note"===t?c?(0,g.jsx)(y.A.ReadOnly,{column:l.column,row:l.row,isLoading:l?.isLoading,bgColor:(0,Y.i)("custom").cell,note:s??void 0,influencer:i}):(0,g.jsx)(y.A,{column:l.column,row:l.row,isLoading:l?.isLoading,bgColor:(0,Y.i)("custom").cell,note:s??void 0,influencer:i,rowUniqueParams:d}):void 0}}})({columnId:e.id??0,columnName:e.display_name,columnType:e.data_type,handleUpdateCellData:A,handleOpenCell:z})),...S.metric];return"en"===r.locale&&(l=l.filter(e=>!E.includes(e.id??""))),N&&"yt"===e&&(l=l.filter(e=>!u.AK.includes(e.id??""))),[...l,e_]},[k,r.locale,I,e,V,N]),customColumns:k,isLoading:L||R}}},18287:(e,l,t)=>{t.d(l,{A:()=>N});var n=t(80263),a=t(57907),i=t(60922),r=t(1061),o=t(90453),s=t(85047),c=t(92304),d=t(20344),m=t(3024),u=t(91356),h=t(44382),g=t(2281),b=t(45169),p=t(94211),x=t(52659),j=t(72738),f=t(53239),C=t(80001),y=t(81072),v=t(45382),w=t(91687);t(3855),t(44612),t(21228),t(40588),t(88282);var _=t(4463);let N=({platformCode:e,groupCode:l,columnData:t,resolve:N})=>{let{t:I}=(0,x.Bd)(["managementInf","common"]),L=(0,p.jE)(),{showToast:k}=(0,a.d)(),{trackEvent:R}=(0,w.Z)(),{register:A,control:z,formState:{errors:S,isValid:E},setError:V,clearErrors:H,handleSubmit:M,trigger:U}=(0,C.mN)({defaultValues:{columnType:t.data_type,columnName:t.display_name},mode:"onChange"}),{options:T,handleAddOption:D,handleDeleteOption:K,handleChangeOption:Z,isDirty:B}=(({initialOptions:e=[]})=>{let[l,t]=(0,f.useState)(e),[n,a]=(0,f.useState)(!1);return{options:l,setOptions:t,handleAddOption:()=>{a(!0),t([...l,{color:"gray",label:""}])},handleDeleteOption:e=>{a(!0),t(l.filter((l,t)=>
1t!==e))},handleChangeOption:(e,n)=>{a(!0),t(l.map((l,t)=>t===e?n:l))},isDirty:n}})({initialOptions:[...(t.options??[]).map(e=>({...e,color:e.color??"gray"}))]}),q=(0,C.FH)({control:z,name:"columnType"}),O=A("columnName",{required:I("detail.custom-column.edit-column-modal.col-name.register-required"),maxLength:{value:20,message:I("common:validation.length.too-long",{length:20})},onChange(e){if(e.target.value.length>20){e.target.value=e.target.value.slice(0,20),V("columnName",{type:"maxLength",message:I("common:validation.length.too-long",{length:20})});return}H("columnName")},onBlur(e){U("columnName")}}),Y=(0,C.FH)({control:z,name:"columnName"}),P=(0,C.FH)({control:z,name:"columnType"}),F=Y!==t.display_name||"select"===P&&B,{mutateAsync:$,isPending:Q}=(0,y.GT7)(),G=M(async n=>{if(F)try{let a={data_type:n.columnType,display_name:n.columnName};"select"===n.columnType&&(a.options=T.map((e,l)=>({color:e.color,label:""!==e.label&&e.label?e.label:I("managementInf:detail.custom-column.edit-column-modal.select-option.option.placeholder",{num:l+1,noWrap:!0}),order:l+1}))),await $({platformCode:e,groupCode:l,columnId:`${t.id}`,data:a}),await L.invalidateQueries({queryKey:(0,y.JTl)(e,l)}),R("edit_custom_column",{custom_column_name:n.columnName}),N(!0),k({status:"success",title:I("managementInf:detail.custom-column.edit-column-modal.toast-success.title"),description:I("managementInf:detail.custom-column.edit-column-modal.toast-success.description")})}catch(e){"instance_already_exists"===e.resultCode?k({status:"error",title:I("managementInf:detail.custom-column.edit-column-modal.toast-duplication.title"),description:I("managementInf:detail.custom-column.edit-column-modal.toast-duplication.description")}):k({status:"error",title:I("managementInf:detail.custom-column.edit-column-modal.toast-error.title"),description:I("managementInf:detail.custom-column.edit-column-modal.toast-error.description")})}});return(0,n.jsx)(i.z,{size:"sm",title:I("detail.custom-column.edit-column-modal.title"),handleClose:()=>N(!1),hasCloseButton:!1,isBgClose:!0,actionsChildren:[(0,n.jsx)(r.M,{buttonType:"contrast",text:I("detail.custom-column.edit-column-modal.buttons.cancel"),onClick:()=>N(!1)},"cancel"),(0,n.jsx)(r.M,{buttonType:"primary",text:I("detail.custom-column.edit-column-modal.buttons.save"),type:"submit",form:"add-column-form",isLoading:Q,disabled:!E||!F},"submit")],children:(0,n.jsxs)("div",{className:"_1snxuv70 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbms",children:[(0,n.jsx)("p",{className:"lkuzww8",children:I("detail.custom-column.edit-column-modal.description")}),(0,n.jsxs)("form",{id:"add-column-form",className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbmr",onSubmit:G,children:[(0,n.jsx)(C.xI,{control:z,name:"columnType",rules:{required:I("detail.custom-column.edit-column-modal.col-type.register-required")},render:({field:{onChange:e,value:l,ref:t}})=>{let a=_.y[l];return(0,n.jsx)(o.p,{text:I("detail.custom-column.edit-column-modal.col-type.tooltip"),placement:"top",autoAdjust:!0,children:(0,n.jsxs)(s.bL,{required:!0,disabled:!0,children:[(0,n.jsx)(s.JU,{children:I("detail.custom-column.edit-column-modal.col-type.label")}),(0,n.jsxs)(c.bL,{value:l,onValueChange:l=>{null!=l&&e(l)},children:[(0,n.jsx)(c.l9,{ref:t,focusableWhenDisabled:!0,$css:{width:"100%"},children:(0,n.jsx)(c.WT,{children:a?(0,n.jsxs)(d.z,{$css:{gap:"$spacing-150",alignItems:"center"},children:[(0,n.jsx)(a.icon,{size:"16px"}),a.displayName()]}):void 0})}),(0,n.jsx)(c.ZL,{children:(0,n.jsx)(c.Pf,{children:(0,n.jsx)(c.zD,{children:_.S.map(e=>(0,n.jsxs)(c.q7,{value:e.value,children:[(0,n.jsx)(e.icon,{size:"16px"}),(0,n.jsx)(c.p4,{children:e.displayName()})]},e.value))})})})]})]})})}}),(0,n.jsx)(m.P,{label:I("detail.custom-column.edit-column-modal.col-name.label"),required:!0,...O,status:S.columnName?"error":"none",validationText:S.columnName?S.columnName?.message:"",placeholder:I("detail.custom-column.edit-column-modal.col-name.placeholder")}),"select"===q&&(0,n.jsxs)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbmq",children:[(0,n.jsxs)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm6 _
11s3rlbmb _1s3rlbmd lkuzww0 hjwbnu3i",children:[(0,n.jsx)("p",{children:I("managementInf:detail.custom-column.edit-column-modal.select-option.title")}),(0,n.jsx)(r.M,{text:I("managementInf:detail.custom-column.edit-column-modal.select-option.button-add"),buttonType:"tertiary",size:"sm",prefix:(0,n.jsx)(g.j,{}),onClick:D,type:"button"})]}),(0,n.jsx)(j.r,{className:"_1snxuv77 hjwbnu336 hjwbnu350 hjwbnu37o hjwbnu3ac hjwbnu3d0 hjwbnu256",children:(0,n.jsx)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm6 _1s3rlbmc _1s3rlbme _1s3rlbmq",children:T.map((e,l)=>(0,n.jsxs)("div",{className:"_1snxuv79 _1s3rlbm0 _1s3rlbm1 _1s3rlbm6 _1s3rlbm9 _1s3rlbmd _1s3rlbmo",children:[(0,n.jsxs)(u.bL,{width:"78px",value:e.color,onValueChange:t=>Z(l,{...e,color:t}),children:[(0,n.jsx)(u.l9,{children:(0,n.jsx)(u.WT,{})}),(0,n.jsx)(u.ZL,{children:(0,n.jsx)(u.UC,{children:Object.values(v.n).map(e=>(0,n.jsx)(u.q7,{value:e,children:(0,n.jsx)(h.bL,{color:e,size:"xs",children:(0,n.jsx)(h.EY,{children:I("managementInf:detail.custom-column.edit-column-modal.select-option.option.color")})})},e))})})]}),(0,n.jsx)(m.P,{width:"100%",placeholder:I("managementInf:detail.custom-column.edit-column-modal.select-option.option.placeholder",{num:l+1}),value:e.label,onChange:t=>Z(l,{...e,label:t.target.value}),maxLength:20}),(0,n.jsx)(r.M,{buttonType:"contrast",size:"xs",prefix:(0,n.jsx)(b.w,{}),onClick:()=>K(l),disabled:1===T.length,type:"button"})]},l))})})]})]})]})})}},22897:(e,l,t)=>{t.d(l,{k:()=>a});var n=t(80263);let a=(0,t(53239).memo)(({className:e,width:l=24,height:t=24,...a})=>(0,n.jsxs)("svg",{width:l,height:t,className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...a,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12C6 11.4477 6.44772 11 7 11H17C17.5523 11 18 11.4477 18 12C18 12.5523 17.5523 13 17 13H7C6.44772 13 6 12.5523 6 12Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 18C4 17.4477 4.44772 17 5 17H19C19.5523 17 20 17.4477 20 18C20 18.5523 19.5523 19 19 19H5C4.44772 19 4 18.5523 4 18Z",fill:"currentColor"})]}));a.displayName="AlignCenterIcon"},24983:(e,l,t)=>{t.d(l,{f:()=>s,i:()=>o});let n=["select","account","email","note"],a={header:"background-1",cell:"background-1"},i={header:"lightBlue-10",cell:"background-1"},r={header:"gray-10",cell:"background-1"},o=e=>n.includes(e)?a:"custom"===e?i:r,s=e=>"basic"===e?a:"custom"===e?i:r},27533:(e,l,t)=>{t.d(l,{f:()=>a});var n=t(89947);let a=new(t(34827)).k({ì ì²´:(0,n.tF)("filter.naver-blog.location.total"),ìì¸:(0,n.tF)("filter.naver-blog.location.seoul"),경기:(0,n.tF)("filter.naver-blog.location.gyeonggi"),ì¸ì²:(0,n.tF)("filter.naver-blog.location.incheon"),"ë구/ê²½ë¶":(0,n.tF)("filter.naver-blog.location.daegu"),"ë¶ì°/ê²½ë¨":(0,n.tF)("filter.naver-blog.location.busan"),"ëì /ì¶©ì²":(0,n.tF)("filter.naver-blog.location.daejeon"),"ê´ì£¼/ì ë¼":(0,n.tF)("filter.naver-blog.location.gwangju"),ê°ì:(0,n.tF)("filter.naver-blog.location.gangwon"),ì 주:(0,n.tF)("filter.naver-blog.location.jeju"),ì¸ì¢
:(0,n.tF)("filter.naver-blog.location.sejong")})},30002:(e,l,t)=>{t.d(l,{A:()=>s});var n=t(80263),a=t(73172),i=t(3638),r=t(50610),o=t(13050);t(3855),t(8484);let s=({justify:e="start",column:l,indeterminate:t,checked:s,onChange:c,bgColor:d="background-1"})=>{let m=l.getSize(),u={width:`${m}px`};return(0,n.jsx)("div",{className:(0,i.A)("_7iqwv31 hjwbnu3b6 hjwbnu3ci",(0,o.Uu)({justify:e}),(0,r.UV)({bgColor:d})),style:u,children:(0,n.jsx)(a.J,{labelClassName:"_7iqwv32",indeterminate:t,checked:s,onChange:c})})}},31226:(e,l,t)=>{t.d(l,{M:()=>r});var n=t(80263),a=t(61504),i=t(24983);let r=(e,l,t)=>e.map(e=>"email"===e.id?{...e,cell:r=>{let o=r.row.original,s=o?.platform_pk;return s?(0,n.jsx)(a.A,{column:r.column,row:r.row,isLoading:r?.isLoading,bgColor:(0,i.i)(e.id??"email").cell,content:o?.email??void 0,onOpen:l.handleOpenCell,onClose:l.handleSaveEmail({platformCode:t,platformPk:s,userName:o?.username})}):null}}:"note"===e.id?{...e,cell:r=>{let o=r.row.original,s=o?.platform_pk;return s?(0,n.jsx)(a.A,{column:r.column,row:r.row,isLoading:r?.isLoading,bgColor:(0,i.i)(e.id??"note").cell,content:o?.note??void 0,onOpen:l.handleOpenCell,onClose:l.handleSaveNote({platformCode:t,platformPk:s,userName:o?.username})}):null}}:e)},31657:(e,l,t)=>{t.d(l,{S:()=>a});var n=t(80263);let a=(0,t(53239).memo)(({className:e,width:l=24,height:t=24,...a})=>(0,n.jsxs)("svg",{width:l,height:t,className:e,viewBox:"0 0 24 24",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",...a,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H15C15.5523 11 16 11.4477 16 12C16 12.5523 15.5523 13 15 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H17C17.5523 17 18 17.4477 18 18C18 18.5523 17.5523 19 17 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor"})]}));a.displayName="AlignLeftIcon"},33015:(e,l,t)=>{t.d(l,{C:()=>s});var n=t(80263),a=t(90453),i=t(11410),r=t(13019),o=t(13050);t(31376);let s=({children:e,tooltipText:l})=>0!==Number(e?.replace(/,/g,""))?(0,n.jsx)(n.Fragment,{children:e}):(0,n.jsxs)("div",{className:(0,o.Uu)({gap:"spacing-150"}),children:[e,(0,n.jsx)(a.p,{text:l,placement:"top",autoAdjust:!0,containerClassName:"_18jxsuc0",children:(0,n.jsx)(i.R,{fill:r.f.semantic.color.icon.tertiary})})]})},37606:(e,l,t)=>{t.d(l,{RA:()=>r});var n=t(46626),a=t(21888),i=t(10950);function r(e,l,t){let r=((e,l)=>{let{query:t,request:n}=l??{},r=t?.queryKey??[`/commons/${e}/country-codes/`];return(0,i.l)({...t,queryKey:r,queryFn:({signal:l})=>(0,a.T)({url:`/commons/${e}/country-codes/`,method:"GET",signal:l},n)})})(e,l),o=(0,n.I)(r,t);return o.queryKey=r.queryKey,o}},41134:(e,l,t)=>{t.d(l,{A:()=>w});var n=t(80263),a=t(57907),i=t(60922),r=t(1061),o=t(73172),s=t(24530),c=t(52659),d=t(72738),m=t(80001),u=t(13019),h=t(13050),g=t(81072),b=t(16053),p=t(91687),x=t(15551);let j={category:"category",avg_feed_like:"avg_feed_likes",avg_like:"avg_likes",avg_reach:"estimated_avg_reach",avg_retweet:"avg_retweets",avg_shorts_view:"avg_shorts_views",avg_today_visitor:"daily_visitors",avg_video_like:"avg_video_likes",avg_video_view:"avg_video_views",avg_view:"avg_views",avg_comment:"avg_comments",campaign_price:"estimated_cost",est_avg_cpr:"estimated_cpr",est_avg_cpv:"estimated_cpv",follower:"followers",main_audience_age_range:"audience_age",main_audience_gender:"audience_gender",post_count:"blog_posts",real_engagement:"engagement_rate",real_follower:"estimated_authentic_followers",total_visitor:"total_visitors",languages:"account_language",most_frequent_region:"country"};t(3855),t(44612),t(21228),t(40588),t(78280);var f="_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbms hjwbnu34i hjwbnu376",C="lkuzww7 hjwbnu34i hjwbnu376 hjwbnu3o",y="lrs5ajd",v="_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbmo";let w=({resolve:e,platform:l,groupCode:t})=>{let{t:w}=(0,c.Bd)("managementInf"),{trackEvent:_}=(0,p.Z)(),{showToast:N}=(0,a.d)(),{tableCols:I,customColumns:L}=(0,x.A)(l,t),k=I.filter(e=>e?.meta&&e?.meta?.columnCategory!=="basic").reduce((e,l)=>(e[l?.id]={label:()=>l.meta?.displayIntlName?.()??"",category:l.meta?.columnCategory,type:l.meta?.columnType},e),{}),R=Object.entries(k),A=R.filter(([e,l])=>"custom"===l.category),z=R.filter(([e,l])=>"custom"!==l.category),{data:S,isLoading:E,refetch:V}=(0,g.j9Y)(l,t,{query:{enabled:!!t&&!!L,staleTime:1/0,gcTime:0,select(e){let{display_custom_column_ids:l,...t}=e,n=L?.reduce((e,t)=>(e[`${t.id}`]=!!l?.includes(t.id),e),{});return{...t,...n}}}}),{data:H}=(0,g.u2e)(l,{},{query:{enabled:!!t&&!!l,staleTime:1/0,gcTime:0,select:e=>e.find(e=>e.group_code===t)}}),{mutate:M,isPending:U}=(0,g.zHD)(),{getValues:T,control:D,setValue:K,formState:{isDirty:Z}}=(0,m.mN)({values:{...S,category:!!(S?.category_1&&S?.category_2)}}),B=(e,l,t)=>{"category"===e&&(K("category_1",l),K("category_2",l)),t(l)};return(0,n.jsx)(i.z,{title:w("groups.set-sensitive-data-modal.title"),size:"sm",handleClose:()=>e(!1),hasCloseButton:!1,isBgClose:!1,actionsChildren:[(0,n.jsx)(r.M,{buttonType:"contrast",onClick:()=>e(!1),text:w("groups.set-sensitive-data-modal.buttons.cancel")},"cancel"),(0,n.jsx)(r.M,{buttonType:"primary",onClick:()=>{var n;let a,i;if(!l)return;let r=T(),{category:o,...s}=r,c=[],d={...Object.entries(s).reduce((e,[l,t])=>{let n=k?.[l];return n?.category==="custom"?t&&c.push(+l):e[l]=t,e},{}),display_custom_column_ids:c},m=[],u=[];A.forEach(([e,l])=>{r[e]?m.push(l.label()):u.push(l.label())});let{displayed:h,hidden:g}=(n=z.map(([e])=>
1e),a=[],i=[],n.forEach(e=>{let l=j[e];l&&(r[e]?a.push(l):i.push(l))}),{displayed:a,hidden:i});_("save_sensitive_columns",{sensitive_columns:[...m,...h],insensitive_columns:[...u,...g],influencer_group_name:H?.group_name,social_media_platform:b.EK[l],"#_of_saved_influencers":H?.total_influencer_count,"#_of_custom_columns":L?.length}),M({platformCode:l,groupCode:t,data:d},{onSuccess:()=>{N({title:w("groups.set-sensitive-data-modal.toast.success.title"),description:w("groups.set-sensitive-data-modal.toast.success.description"),status:"success"}),V(),e(!0)},onError:()=>{N({title:w("groups.set-sensitive-data-modal.toast.error.title"),description:w("groups.set-sensitive-data-modal.toast.error.description"),status:"error"})}})},text:w("groups.set-sensitive-data-modal.buttons.submit"),isLoading:U,disabled:!Z},"apply")],children:(0,n.jsxs)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbms lrs5aj0",children:[(0,n.jsxs)("div",{className:(0,h.Uu)({direction:"column",gap:"spacing-100",align:"stretch"}),children:[(0,n.jsx)("p",{children:w("groups.set-sensitive-data-modal.description")}),(0,n.jsxs)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmn hjwbnu34i",children:[(0,n.jsx)(s.u,{fill:u.f.semantic.color.support.warning[3]}),(0,n.jsx)("p",{className:"lkuzww8 hjwbnu5c",children:w("groups.set-sensitive-data-modal.warning-text")})]})]}),(0,n.jsx)(d.r,{className:"lrs5aj2",options:{scrollbars:{autoHide:"leave"}},children:(0,n.jsxs)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbmu",children:[A.length>0&&(0,n.jsxs)("section",{className:v,children:[(0,n.jsx)("label",{className:C,children:w("groups.set-sensitive-data-modal.custom-cols.label")}),(0,n.jsx)("ul",{className:f,children:A.map(([e,l])=>(0,n.jsx)("li",{className:y,children:(0,n.jsx)(m.xI,{name:e,control:D,render:({field:{onChange:t,value:a}})=>(0,n.jsx)(o.J,{checked:a,disabled:E,onChange:l=>B(e,l.target.checked,t),label:l.label?.()})})},e))})]}),(0,n.jsxs)("section",{className:v,children:[(0,n.jsx)("label",{className:C,children:w("groups.set-sensitive-data-modal.rest-cols.label")}),(0,n.jsx)("ul",{className:f,children:z.map(([e,l])=>(0,n.jsx)("li",{className:y,children:(0,n.jsx)(m.xI,{name:e,control:D,render:({field:{onChange:t,value:a}})=>(0,n.jsx)(o.J,{disabled:E,checked:a,onChange:l=>B(e,l.target.checked,t),label:l.label?.()})})},e))})]})]})})]})})}},41323:(e,l,t)=>{t.d(l,{A:()=>j});var n=t(80263),a=t(44382),i=t(18577),r=t(26781),o=t(52659),s=t(72738),c=t(54896),d=t(53239),m=t(49631),u=t(81072),h=t(18287);t(3855),t(44612),t(21228),t(40588),t(27452);var g="jzjkjv0",b="jzjkjv6 _1s3rlbm0 _1s3rlbm1 _1s3rlbm6 _1s3rlbm9 _1s3rlbmd _1s3rlbmp hjwbnu330 hjwbnu3a6 hjwbnu3cu",p=t(90187);let x=({content:e,onChange:l,renderOptionAction:t,footerSlot:x,onInteractOutside:j,shouldPreventClose:f,...C})=>{let{t:y}=(0,o.Bd)("managementInf"),v=C.column?.id,w=C.row?.original,_=w?.username,N=w?.platform_code,I=w?.groupCode,[L,k]=(0,d.useState)(e||void 0),{data:{columnData:R,selectOptionList:A}={}}=(0,u.j0w)(N,I,{query:{enabled:!!N&&!!I,select(e){let l=e?.find(e=>String(e.id)===String(v));return{columnData:l,selectOptionList:l?.options}}}});(0,d.useEffect)(()=>{L!==e&&k(e??void 0)},[e,_]);let[z,S]=(0,d.useState)(!1),E=(0,m.hS)(h.A),V=async()=>{N&&I&&v&&R&&(S(!1),await E({groupCode:I,platformCode:N,columnData:R}))},H=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("hr",{className:"jzjkjv9 hjwbnu3a6 hjwbnu3cu hjwbnu256"}),(0,n.jsx)("button",{type:"button",className:b,onClick:V,children:(0,n.jsxs)("div",{className:"lkuzww8 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmo",children:[(0,n.jsx)(i.O,{size:"16px"}),(0,n.jsx)("p",{children:y("detail.custom-column.select.button-edit")})]})})]});return(0,n.jsxs)(c.bL,{onOpenChange:e=>{!e&&f?.()||S(e)},open:z,children:[(0,n.jsx)(c.l9,{asChild:!0,children:(0,n.jsx)(p.A,{justify:"start",...C,className:g,children:(0,n.jsxs)(a.bL,{color:L?.color,size:"xs",children:[(0,n.jsx)(a.EY,{children:L?.label??" "}),(0,n.jsx)(a.In,{children:(0,n.jsx)(r.t,{size:"12px"})})]})})}),(0,n.jsx)(c.ZL,{children:(0,n.jsxs)(c.UC,{className:"jzjkjv3 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbmq hjwbnu3vi hjwbnu336 hjwbnu3a6 hjwbnu3cu hjwbnu350 hjwbnu37o hjwbnu12o",align:"start",sideOffset:-14,alignOffset:10,hideWhenDetached:!0,onInteractOutside:j,children:[(0,n.jsx)(s.r,{options:{scrollbars:{autoHide:"leave"}},className:"jzjkjv4",children:A?.map((e,i)=>(0,n.jsxs)("div",{className:b,children:[(0,n.jsx)("div",{className:"jzjkjv7 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd",onClick:()=>{l?.(e),k(e),S(!1)}
1,children:(0,n.jsx)(a.bL,{color:e.color,size:"md",children:(0,n.jsx)(a.EY,{children:e.label??" "})})}),t?.(e,i)]},(e.label??"")+e.id+i))}),void 0!==x?x:H]})})]})};x.ReadOnly=({content:e,onChange:l,...t})=>(0,n.jsx)(p.A,{justify:"start",...t,className:g,children:(0,n.jsx)(a.bL,{color:e?.color,size:"xs",children:(0,n.jsx)(a.EY,{children:e?.label??" "})})});let j=x},45382:(e,l,t)=>{t.d(l,{n:()=>n});let n={gray:"gray",red:"red",orange:"orange",lightGreen:"lightGreen",teal:"teal",blue:"blue",indigo:"indigo",magenta:"magenta",primary:"primary",contrast:"contrast"}},46750:(e,l,t)=>{t.d(l,{n:()=>a});var n=t(80263);let a=(0,t(53239).memo)(({className:e,width:l=24,height:t=24,...a})=>(0,n.jsxs)("svg",{width:l,height:t,className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...a,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 12C8 11.4477 8.44772 11 9 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H9C8.44772 13 8 12.5523 8 12Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 18C6 17.4477 6.44772 17 7 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H7C6.44772 19 6 18.5523 6 18Z",fill:"currentColor"})]}));a.displayName="AlignRightIcon"},49435:(e,l,t)=>{t.d(l,{h:()=>s});var n=t(80263),a=t(24983),i=t(53779),r=t(61504),o=t(10846);let s=(e,l,t)=>e.map(e=>((e,l,t)=>{if(!e)return;let s=e.code,c=e.id,d=e.data_type,m=`value_${d}`;if(!s||!d||!c)return;let u="text"===d;return{accessorKey:s,id:s,enableSorting:!1,meta:{columnCategory:"basic",displayIntlName:()=>e.display_name,columnType:e.data_type,getExportValue:e=>{let l=e.custom_properties?.[String(c)];if(!l)return"";switch(d){case"select":return l.value_select?.label??"";case"multiselect":return l.value_multiselect?.map(e=>e.label).join(", ")??"";case"boolean":return l.value_boolean??!1;default:return l[m]??""}}},header:e=>(0,n.jsx)(o.A,{justify:"start",header:e.header,table:e.table,bgColor:(0,a.f)("basic").header,children:(0,n.jsx)(n.Fragment,{children:e.column.columnDef.meta?.displayIntlName?.()})}),cell:e=>{let o=e.row.original,h=o?.platform_pk??void 0,g=o?.platform_code||t,b=o?.custom_properties?.[c]??void 0,p=b?.[m]??void 0,x=p?.toString()??void 0;return u&&h?(0,n.jsx)(r.A,{column:e.column,row:e.row,isLoading:e?.isLoading,bgColor:(0,a.f)("basic").cell,content:x,onOpen:l.handleOpenCell,onClose:l.handleSaveCustomProperty({platformCode:g,platformPk:h,userName:o?.username,propertyCode:s,propertyId:c,dataType:d,currentValue:x})}):(0,n.jsx)(i.A,{platform:g,platformPk:h,userName:o?.username,column:e.column,row:e.row,isLoading:e?.isLoading,justify:"start",content:x,bgColor:(0,a.f)("basic").cell})}}})(e,l,t))?.filter(e=>!!e)},53779:(e,l,t)=>{t.d(l,{A:()=>f});var n=t(80263),a=t(1061),i=t(18577),r=t(3638),o=t(52659),s=t(49631),c=t(50610),d=t(13050),m=t(50099),u=t(18131),h=t(89455);t(3855),t(44612),t(21228),t(40588),t(36621);var g=t(6078),b="a27mrs2 hjwbnu3ac hjwbnu3d0 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd",p="a27mrs3 a27mrs2 hjwbnu3ac hjwbnu3d0 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd",x="a27mrs4",j=(0,g.c)({defaultClassName:"lkuzww7",variantClassNames:{hasContent:{true:"hjwbnu3c",false:"hjwbnu40"}},defaultVariants:{},compoundVariants:[]});let f=({platform:e,platformPk:l,userName:t,justify:g="start",table:f,column:C,row:y,content:v,isLoading:w,bgColor:_="background-1",...N})=>{let{t:I}=(0,o.Bd)("managementInf"),L=C?.getSize(),k={...N.style,width:`${L}px`},R=(()=>{if(!f||!C)return!1;let e=f.getHeaderGroups().flatMap(e=>e.headers).filter(e=>"left"===e.column.getIsPinned());return e[e.length-1].id===C.id})(),A=y?.getIsSelected()??!1,z=!!v,S=(0,s.hS)(h.A[e]);return w?(0,n.jsx)("div",{className:(0,r.A)((0,d.Uu)({justify:g}),(0,c.UV)({bgColor:_}),N?.className,{[p]:R,[b]:!R,[x]:A}),style:k,...N,children:(0,n.jsx)(u.A,{_width:"70%",_height:"16px"})}):(0,n.jsxs)("div",{className:(0,r.A)((0,d.Uu)({justify:g}),(0,c.UV)({bgColor:_}),N?.className,{[p]:R,[b]:!R,[x]:A}),style:k,...N,children:[(0,n.jsx)(m.A,{className:j({hasContent:z}),line:2,children:z?v:I("detail.table-body.common-data-cell.not-filled")}),(0,n.jsx)("div",{className:"a27mrsa",children:(0,n.jsx)(a.M,{buttonType:"tertiary",size:"sm",prefix:(0,n.jsx)(i.O,{}),onClick:e=>{e.stopPropagation(),S({platformPk:l,userName:t??void 0,entryPoint:"influencer management"})}})})]})}},55332:(e,l,t)=>{t.d(l,{x:()=>a});var n=t(80263);let a=(0,t(53239).memo)(({className:e,width:l=24,height:t=24,...a})=>(0,n.jsxs)("svg",{width:l,height:t,className:e,viewBox:"0 0 24 24",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",...a,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor"})]}));a.displayName="AlignJustifyIcon"},57663:(e,l,t)=>{t.d(l,{A:()=>o});var n=t(80263),a=t(73172),i=t(3638),r=t(50610);t(3855),t(21228),t(44612),t(40588),t(37159);let o=({justify:e="center",column:l,row:t,checked:o,onChange:s,bgColor:c="background-1"})=>{let d=l.getSize(),m={width:`${d}px`},u=t.getIsSelected();return(0,n.jsx)("div",{className:(0,i.A)("r2s0t81 hjwbnu3b6 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd",u&&"r2s0t82",(0,r.UV)({bgColor:c})),style:m,children:(0,n.jsx)(a.J,{labelClassName:"r2s0t83",checked:o,onChange:s})})}},61504:(e,l,t)=>{t.d(l,{A:()=>h});var n=t(80263),a=t(84290),i=t(3638),r=t(52659),o=t(54896),s=t(53239);t(3855),t(44612),t(93853);var c="_1bxbal44 lkuzww7",d=t(90453),m=t(90187);let u=({content:e,onOpen:l,onClose:t,...d})=>{let u=d.row?.original,h=u?.username,{t:g}=(0,r.Bd)("managementInf"),[b,p]=(0,s.useState)(void 0),[x,j]=(0,s.useState)(null),[f,C]=(0,s.useState)(!1),y=void 0!==b,v=y?b:null!==x?x.content:e??"",w=!y&&!v;(0,s.useEffect)(()=>{null!==x&&(x.savedDefault!==e||x.savedName!==h)&&j(null)},[e,h,x]);let _=async n=>{if(n)p(null!==x?x.content:e??""),l?.();else{let l=null!==x?x.content:e??"",n=b||null;if(p(void 0),(""!==l?l:null)===n)return;j({content:b??"",savedDefault:e,savedName:h}),C(!0);try{let e=await t?.(b||null);!1===e&&j(null)}catch{j(null)}finally{C(!1)}}},N=d?.column?.getSize();return(0,n.jsxs)(o.bL,{onOpenChange:_,open:y,children:[(0,n.jsx)(o.l9,{asChild:!0,children:(0,n.jsx)(m.A,{justify:"start",...d,className:(0,i.A)("_1bxbal40",f&&"_1bxbal43"),children:(0,n.jsx)("p",{className:c,children:w?(0,n.jsx)("span",{className:"hjwbnu40",children:g("detail.table-body.common-data-cell.not-filled")}):v})})}),(0,n.jsx)(o.ZL,{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.UC,{side:"bottom",align:"start",sideOffset:-56,hideWhenDetached:!0,style:{zIndex:10},children:(0,n.jsx)(a.K,{width:N>160?N:160,inputMode:"text",className:"_1bxbal45 lkuzww7",value:b,onChange:e=>p(e.currentTarget.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),_(!1))},onFocus:e=>{let l=e.currentTarget;l.setSelectionRange(l.value.length,l.value.length)}})}),(0,n.jsx)("div",{style:{position:"fixed",width:"100vw",height:"100vh",top:0,left:0}})]})})]})};u.ReadOnly=({content:e,...l})=>
1{let[t,a]=(0,s.useState)(!1),i=(0,s.useRef)(null),r=l.column?.getSize();return(0,s.useEffect)(()=>{if(!i.current)return;let{scrollWidth:e,offsetWidth:l,scrollHeight:t,offsetHeight:n}=i.current;a(t>n||e>l)},[i,e,r]),(0,n.jsx)(m.A,{justify:"start",...l,children:(0,n.jsx)(d.p,{...l,text:e,disabled:!t,autoAdjust:!0,children:(0,n.jsx)("p",{className:c,ref:i,children:e})})})};let h=u},62755:(e,l,t)=>{t.d(l,{$:()=>a});var n=t(80263);let a=(0,t(53239).memo)(({className:e,width:l=24,height:t=24,...a})=>(0,n.jsx)("svg",{width:l,height:t,className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...a,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2.5C5.17157 2.5 4.5 3.17157 4.5 4V20C4.5 20.8284 5.17157 21.5 6 21.5H15C16.4587 21.5 17.8576 20.9205 18.8891 19.8891C19.9205 18.8576 20.5 17.4587 20.5 16C20.5 14.5413 19.9205 13.1424 18.8891 12.1109C18.6781 11.9 18.4518 11.7079 18.2128 11.5359C19.041 10.5492 19.5 9.29829 19.5 8C19.5 6.54131 18.9205 5.14236 17.8891 4.11091C16.8576 3.07946 15.4587 2.5 14 2.5H6ZM14 10.5C14.663 10.5 15.2989 10.2366 15.7678 9.76777C16.2366 9.29893 16.5 8.66304 16.5 8C16.5 7.33696 16.2366 6.70107 15.7678 6.23223C15.2989 5.76339 14.663 5.5 14 5.5H7.5V10.5H14ZM7.5 18.5V13.5H15C15.663 13.5 16.2989 13.7634 16.7678 14.2322C17.2366 14.7011 17.5 15.337 17.5 16C17.5 16.663 17.2366 17.2989 16.7678 17.7678C16.2989 18.2366 15.663 18.5 15 18.5H7.5Z",fill:"currentColor"})}));a.displayName="BoldIcon"},65688:(e,l,t)=>{t.d(l,{q:()=>a});var n=t(80263);let a=(0,t(53239).memo)(({className:e,width:l=24,height:t=24,...a})=>(0,n.jsx)("svg",{width:l,height:t,className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...a,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 4C7 3.44772 6.55228 3 6 3C5.44772 3 5 3.44772 5 4V10C5 11.8565 5.7375 13.637 7.05025 14.9497C8.36301 16.2625 10.1435 17 12 17C13.8565 17 15.637 16.2625 16.9497 14.9497C18.2625 13.637 19 11.8565 19 10V4C19 3.44772 18.5523 3 18 3C17.4477 3 17 3.44772 17 4V10C17 11.3261 16.4732 12.5979 15.5355 13.5355C14.5979 14.4732 13.3261 15 12 15C10.6739 15 9.40215 14.4732 8.46447 13.5355C7.52678 12.5979 7 11.3261 7 10V4ZM4 19C3.44772 19 3 19.4477 3 20C3 20.5523 3.44772 21 4 21H20C20.5523 21 21 20.5523 21 20C21 19.4477 20.5523 19 20 19H4Z",fill:"currentColor"})}));a.displayName="UnderlineIcon"},73528:(e,l,t)=>{t.d(l,{A:()=>z});var n=t(80263),a=t(57907),i=t(1061),r=t(10930),o=t(65833),s=t(45169),c=t(15314),d=t(94211),m=t(52659),u=t(54896),h=t(53239),g=t(49631),b=t(13019),p=t(81072),x=t(50099),j=t(89870);t(3855),t(44612),t(21228),t(40588),t(10235);var f="_1etzatc3 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmp",C="lkuzwwb hjwbnu3u",y="_1etzatc4 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbma _1s3rlbme",v="_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbme _1s3rlbmp",w="lkuzww0 hjwbnu3i",_="_1etzatc1 hjwbnu3vi hjwbnu33c hjwbnu34u hjwbnu37i hjwbnu3a6 hjwbnu3cu hjwbnu12o",N=t(60922);let I=({resolve:e})=>{let{t:l}=(0,m.Bd)("managementInf");return(0,n.jsx)(N.z,{title:l("detail.custom-column.file-delete-modal.title"),size:"sm",status:"danger",handleClose:()=>e(!1),hasCloseButton:!1,isBgClose:!1,actionsChildren:[(0,n.jsx)(i.M,{buttonType:"contrast",text:l("detail.custom-column.file-delete-modal.buttons.cancel"),onClick:()=>e(!1)},"cancel"),(0,n.jsx)(i.M,{isDanger:!0,buttonType:"primary",text:l("detail.custom-column.file-delete-modal.buttons.delete"),onClick:()=>e(!0)},"delete")],children:(0,n.jsx)("p",{children:l("detail.custom-column.file-delete-modal.description")})})},L=({resolve:e})=>{let{t:l}=(0,m.Bd)("managementInf");return(0,n.jsx)(N.z,{title:l("detail.custom-column.file-size-error-modal.title"),size:"sm",handleClose:()=>e(!1),hasCloseButton:!1,isBgClose:!1,actionsChildren:[(0,n.jsx)(i.M,{buttonType:"primary",text:l("detail.custom-column.file-size-error-modal.buttons.confirm"),onClick:()=>e(!0)},"confirm")],children:(0,n.jsx)("p",{children:l("detail.custom-column.file-size-error-modal.description")})})};var k=t(582),R=t(90187);let A=({file:e,fileInfo:l,...t})=>{let N,k=(0,h.useRef)(null),A=(0,d.jE)(),{t:z}=(0,m.Bd)("managementInf"),S=t.row?.original,E=S?.platform_code,V=S?.groupCode?.toString(),H=S?.platform_pk?.toString(),M=t?.column?.id?.toString(),[U,T]=(0,h.useState)(!1),{showToast:D}=(0,a.d)(),{mutate:K}=(0,p.Jef)(),{mutate:Z}=(0,p.qAQ)(),B=(0,g.hS)(I),q=(0,g.hS)(L),O=async e=>{if(!E||!V||!H||!M)return;if(e.size>0x6400000)return void await q();let l=new FormData;l.append("file",e),await K({platformCode:E,groupCode:V,platformPk:H,c
1olumnId:M,data:l},{onSuccess:async()=>{D({status:"success",title:z("detail.custom-column.file-upload.toast-success.title"),description:z("detail.custom-column.file-upload.toast-success.description")}),await A.invalidateQueries({queryKey:["management-group-detail"]})},onError:async()=>{D({status:"error",title:z("detail.custom-column.file-upload.toast-error.title"),description:z("detail.custom-column.file-upload.toast-error.description")}),await A.invalidateQueries({queryKey:["management-group-detail"]})}})},Y=async()=>{E&&V&&H&&M&&(T(!1),await B()&&await Z({platformCode:E,groupCode:V,platformPk:H,columnId:M},{onSuccess:async()=>{D({status:"success",title:z("detail.custom-column.file-delete.toast-success.title"),description:z("detail.custom-column.file-delete.toast-success.description")}),await A.invalidateQueries({queryKey:["management-group-detail"]})},onError:async()=>{D({status:"error",title:z("detail.custom-column.file-delete.toast-error.title"),description:z("detail.custom-column.file-delete.toast-error.description")}),await A.invalidateQueries({queryKey:["management-group-detail"]})}}))},P=async()=>{if(!E||!V||!H||!M)return;let e=await (0,p.a$g)(E,V,H,M,{responseType:"blob"});if(!e)return;let t=window.URL.createObjectURL(e),n=document.createElement("a");n.href=t,n.download=l?.name??"undefined",n.click(),n.remove(),window.URL.revokeObjectURL(t)};return(0,n.jsx)(R.A,{...t,children:e?(0,n.jsxs)(u.bL,{open:U,onOpenChange:T,children:[(0,n.jsx)(u.l9,{children:(0,n.jsx)(i.M,{buttonType:"tertiary",size:"sm",prefix:(0,n.jsx)(r.k,{fill:b.f.global.colors.primary[60]}),text:l?.name})}),(0,n.jsx)(u.ZL,{children:(0,n.jsx)(u.UC,{sideOffset:4,align:"start",className:_,children:(0,n.jsx)("ul",{className:v,children:(0,n.jsxs)("li",{className:f,children:[(0,n.jsxs)("div",{className:y,children:[(0,n.jsx)(x.A,{className:w,children:l?.name}),(0,n.jsxs)("p",{className:C,children:[`${l?.extension}`,"(",(N=l?.size??0,`${N?.toFixed(2)}MB`),")"]})]}),(0,n.jsx)(i.M,{buttonType:"contrast",size:"sm",prefix:(0,n.jsx)(o.G,{}),onClick:P}),(0,n.jsx)(j.y,{requiredRole:"editor",fallback:(0,n.jsx)(i.M,{buttonType:"contrast",size:"sm",prefix:(0,n.jsx)(s.w,{}),disabled:!0}),children:(0,n.jsx)(i.M,{buttonType:"contrast",size:"sm",prefix:(0,n.jsx)(s.w,{}),onClick:Y})})]})})})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{ref:k,type:"file",style:{display:"none"},onChange:e=>{let l=e.target.files?.[0];l&&O(l),e.target.value=""}}),(0,n.jsx)(j.y,{requiredRole:"editor",fallback:(0,n.jsx)(i.M,{buttonType:"tertiary",text:z("detail.custom-column.file.button-text"),size:"sm",prefix:(0,n.jsx)(c.A,{}),disabled:!0}),children:(0,n.jsx)(i.M,{buttonType:"tertiary",size:"sm",prefix:(0,n.jsx)(c.A,{}),text:z("detail.custom-column.file.button-text"),onClick:()=>{k.current?.click()}})})]})})};A.ReadOnly=({file:e,fileInfo:l,...t})=>{let a,{t:d}=(0,m.Bd)("managementInf"),g=(0,k.useRouter)(),j=t.row?.original,N=j?.platform_code,I=g.query.linkCode,L=j?.platform_pk?.toString(),A=t?.column?.id?.toString(),[z,S]=(0,h.useState)(!1),E=async()=>{if(!N||!I||!L||!A)return;let e=await (0,p.ZtR)(I,L,A,{responseType:"blob"});if(!e)return;let t=window.URL.createObjectURL(e),n=document.createElement("a");n.href=t,n.download=l?.name??"undefined",n.click(),n.remove(),window.URL.revokeObjectURL(t)};return(0,n.jsx)(R.A,{...t,children:e?(0,n.jsxs)(u.bL,{open:z,onOpenChange:S,children:[(0,n.jsx)(u.l9,{children:(0,n.jsx)(i.M,{buttonType:"tertiary",size:"sm",prefix:(0,n.jsx)(r.k,{fill:b.f.global.colors.primary[60]}),text:l?.name})}),(0,n.jsx)(u.ZL,{children:(0,n.jsx)(u.UC,{sideOffset:4,align:"start",className:_,children:(0,n.jsx)("ul",{className:v,children:(0,n.jsxs)("li",{className:f,children:[(0,n.jsxs)("div",{className:y,children:[(0,n.jsx)(x.A,{className:w,children:l?.name}),(0,n.jsxs)("p",{className:C,children:[`${l?.extension}`,"(",(a=l?.size??0,`${a?.toFixed(2)}MB`),")"]})]}),(0,n.jsx)(i.M,{buttonType:"contrast",size:"sm",prefix:(0,n.jsx)(o.G,{}),onClick:E}),(0,n.jsx)(i.M,{buttonType:"contrast",size:"sm",prefix:(0,n.jsx)(s.w,{}),disabled:!0})]})})})})]}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.M,{buttonType:"tertiary",text:d("detail.custom-column.file.button-text"),size:"sm",prefix:(0,n.jsx)(c.A,{}),disabled:!0})})})};let z=A},74786:(e,l,t)=>{t.d(l,{a:()=>r,i:()=>i});var n=t(53239);let a=(0,n.createContext)(!0),i=a.Provider,r=()=>(0,n.useContext)(a)},80878:(e,l,t)=>{t.d(l,{A:()=>m});
1var n=t(80263),a=t(54896),i=t(53239);t(44612),t(69943);var r="_11yxsgk1 lkuzww7";let o=e=>""===e||void 0===e?"":Number(e).toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:2});var s=t(90187),c=t(97464);let d=({content:e,onOpen:l,onClose:t,...d})=>{let m=d.row?.original,u=m?.username,h=o(e),[g,b]=(0,i.useState)(h||void 0),p=(e=>{if(""===e||void 0===e)return"";let l=e.replace(/[^0-9.]/g,""),t=l.indexOf(".");-1!==t&&(l=l.slice(0,t+1)+l.slice(t+1).replace(/\./g,"")),"."===l[0]&&(l="0"+l);let n=Number(l);return n%1==0?l:n.toFixed(2).replace(/\.?0+$/,"")})(g),x=""===p?void 0:Number(p),j=o(x);(0,i.useEffect)(()=>{x!==e&&b(h)},[e,u]);let[f,C]=(0,i.useState)(!1),y=e=>{C(e),e?(b(p),l?.()):e||(b(j),t?.(x?.toString()?x:null))},v=d?.column?.getSize();return(0,n.jsxs)(a.bL,{onOpenChange:y,open:f,children:[(0,n.jsx)(a.l9,{asChild:!0,children:(0,n.jsx)(s.A,{justify:"end",...d,className:"_11yxsgk0",children:(0,n.jsx)("p",{className:r,children:g})})}),(0,n.jsx)(a.ZL,{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.UC,{side:"bottom",align:"start",sideOffset:-56,hideWhenDetached:!0,style:{zIndex:10},children:(0,n.jsx)(c.A,{width:v>160?v:160,type:"text",value:g,onChange:e=>b(e.currentTarget.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||y(!1)}})}),(0,n.jsx)("div",{style:{position:"fixed",width:"100vw",height:"100vh",top:0,left:0}})]})})]})};d.ReadOnly=({content:e,...l})=>{let t=o(e);return(0,n.jsx)(s.A,{justify:"end",...l,children:(0,n.jsx)("p",{className:r,children:t})})};let m=d},81708:(e,l,t)=>{t.d(l,{y:()=>a});var n=t(80263);let a=(0,t(53239).memo)(({className:e,width:l=24,height:t=24,...a})=>(0,n.jsx)("svg",{width:l,height:t,className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...a,children:(0,n.jsx)("path",{d:"M15.0222 3H19C19.5523 3 20 3.44772 20 4C20 4.55228 19.5523 5 19 5H15.693L10.443 19H14C14.5523 19 15 19.4477 15 20C15 20.5523 14.5523 21 14 21H9.02418C9.00802 21.0004 8.99181 21.0004 8.97557 21H5C4.44772 21 4 20.5523 4 20C4 19.4477 4.44772 19 5 19H8.30704L13.557 5H10C9.44772 5 9 4.55228 9 4C9 3.44772 9.44772 3 10 3H14.9782C14.9928 2.99968 15.0075 2.99967 15.0222 3Z",fill:"currentColor"})}));a.displayName="ItalicIcon"},85784:(e,l,t)=>{t.d(l,{A:()=>s});var n=t(80263),a=t(73172),i=t(53239);t(3855),t(10821);var r=t(90187);let o=({value:e,onChange:l,...t})=>{let[o,s]=(0,i.useState)(e||!1),c=t.row?.original,d=c?.username;return(0,i.useEffect)(()=>{o!==e&&s(e||!1)},[e,d]),(0,n.jsx)(r.A,{...t,className:t.isLoading?void 0:"s08h1z0",children:(0,n.jsx)(a.J,{labelClassName:"s08h1z2 hjwbnu3ac hjwbnu3d0",checked:o,onChange:e=>{let t=e.currentTarget.checked;s(t),l?.(t)}})})};o.ReadOnly=({value:e,...l})=>(0,n.jsx)(r.A,{...l,children:(0,n.jsx)(a.J,{checked:e})});let s=o},88182:(e,l,t)=>{t.d(l,{A:()=>y});var n=t(80263),a=t(57907),i=t(60922),r=t(1061),o=t(54761),s=t(83528),c=t(26128),d=t(94211),m=t(52659);t(53239);var u=t(13019),h=t(81072),g=t(16053),b=t(91687),p=t(31006);t(3855),t(44612),t(21228),t(40588),t(3219);var x=t(6078),j=(0,x.c)({defaultClassName:"_1wsvba75 hjwbnu336 hjwbnu350 hjwbnu37o hjwbnu3ac hjwbnu3d0 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmq",variantClassNames:{updateAvailable:{true:"_1wsvba76",false:"_1wsvba77"}},defaultVariants:{},compoundVariants:[]}),f=(0,x.c)({defaultClassName:"_1wsvba7f hjwbnu336 hjwbnu3a0 hjwbnu3co hjwbnu34c hjwbnu370 hjwbnu3o lkuzww7",variantClassNames:{updateAvailable:{true:"hjwbnu130",false:"hjwbnu15c"}},defaultVariants:{updateAvailable:!0},compoundVariants:[]}),C=(0,x.c)({defaultClassName:"_1wsvba7k",variantClassNames:{updateAvailable:{true:"hjwbnu3c",false:"hjwbnu4o"}},defaultVariants:{updateAvailable:!0},compoundVariants:[]});let y=({resolve:e,platformCode:l,groupCode:t,groupName:x,totalInfluencerCount:y})=>{let{t:v}=(0,m.Bd)("managementInf"),w=(0,d.jE)(),{showToast:_}=(0,a.d)(),{trackEvent:N}=(0,b.Z)(),{data:{updateAvailable:I,remainingCount:L,totalCount:k}={},isLoading:R}=(0,h.k4y)({query:{select:e=>({updateAvailable:e?.remaining_count>0,remainingCount:e?.remaining_count,totalCount:e?.available_count})}}),{mutateAsync:A}=(0,h.Oo2)(),{run:z,isLoading:S}=(0,p.A)(),E=z(async()=>{try{if(!I)throw Error("update is not available");if(!l||!t)throw Error("platformCode or groupCode is not defined");await A({data:{platform_code:l,group_code:t}}),N("update_influencer_data",{influencer_group_name:x,social_media_platform:g.EK[l],"#_of_saved_influencers":y}),_({status:"success",title:v("detail.group-bulk-update-modal.toasts.success.title"),description:v("detail.group-bulk-update-modal.toasts.success.description",{groupName:x})}),e(!0),w.invalidateQueries({queryKey:(0,h.K3B)()}),w.invalidateQueries({queryKey:(0,h.XJE)()})}catch(e){_({status:"error",title:v("detail.group-bulk-update-modal.toasts.error.title"),description:v("detail.group-bulk-update-modal.toasts.error.description")})}});return(0,n.jsx)(i.z,{size:"sm",handleClose:()=>e(!1),hasCloseButton:!1,isBgClose:!0,title:v("detail.group-bulk-update-modal.title"),actionsChildren:[(0,n.jsx)(r.M,{buttonType:"contrast",onClick:()=>e(!1),text:v("detail.group-bulk-update-modal.buttons.cancel")},"cancel"),(0,n.jsx)(r.M,{buttonType:"primary",onClick:E,text:v("detail.group-bulk-update-modal.buttons.update"),disabled:R||!I,isLoading:S},"update")],children:(0,n.jsxs)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbms",children:[(0,n.jsx)("p",{className:"lkuzww8",children:(0,n.jsx)(m.x6,{t:v,i18nKey:"detail.group-bulk-update-modal.description.text",components:{boldText:(0,n.jsx)("span",{className:"_1wsvba72 lkuzww8",children:v("detail.group-bulk-update-modal.description.bold-text")})}})}),(0,n.jsxs)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbmp",children:[(0,n.jsxs)("div",{className:j({updateAvailable:I||R}
1),children:[(0,n.jsx)("div",{className:"_1wsvba79 hjwbnu33u _1s3rlbm0 _1s3rlbm1 _1s3rlbm4 _1s3rlbm9 _1s3rlbmd",children:(0,n.jsx)(o.F,{})}),(0,n.jsx)("p",{className:"_1wsvba7b hjwbnu3i lkuzww8",children:v("detail.group-bulk-update-modal.status-box.text")}),(0,n.jsx)("div",{className:f({updateAvailable:I||R}),children:(0,n.jsx)("p",{children:(0,n.jsx)(m.x6,{t:v,i18nKey:"detail.group-bulk-update-modal.status-box.unit",components:{count:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:C({updateAvailable:I}),children:L}),"/",k]})}})})})]}),!I&&!R&&(0,n.jsxs)("div",{className:"hjwbnu4o _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmn lkuzww7",children:[(0,n.jsx)(s.m,{size:"12px"}),(0,n.jsx)("p",{children:v("detail.group-bulk-update-modal.status-box.validation-text")})]})]}),(0,n.jsxs)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbmc _1s3rlbme _1s3rlbmp",children:[(0,n.jsx)("p",{className:"lkuzww8",children:v("detail.group-bulk-update-modal.bottom-info.title")}),(0,n.jsxs)("div",{className:"_1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmn lkuzww7",children:[(0,n.jsx)(c.c,{size:14,fill:u.f.semantic.color.icon.tertiary}),(0,n.jsx)("p",{children:v("detail.group-bulk-update-modal.bottom-info.description")})]})]})]})})}},90187:(e,l,t)=>{t.d(l,{A:()=>m});var n,a=t(80263),i=t(3638),r=t(53239),o=t(50610),s=t(13050),c=t(18131);t(3855),t(44612),t(21228),t(40588),t(63855);var d="zq1p7l4";let m=(n=({children:e,justify:l="start",table:t,column:n,row:r,isLoading:m,bgColor:u="background-1",...h},g)=>{let b=n?.getSize(),p={...h.style,width:`${b}px`},x=(()=>{if(!t||!n)return!1;let e=t.getHeaderGroups().flatMap(e=>e.headers).filter(e=>"left"===e.column.getIsPinned());return e[e.length-1].id===n.id})(),j=r?.getIsSelected()??!1,f=(0,i.A)(x?"zq1p7l3 hjwbnu3ac hjwbnu3d0 hjwbnu3i _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd lkuzww8":"zq1p7l1 hjwbnu3ac hjwbnu3d0 hjwbnu3i _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd lkuzww8",h.className);return m?(0,a.jsx)("div",{...h,className:(0,i.A)((0,s.Uu)({justify:l}),f,j&&d,(0,o.UV)({bgColor:u}),h.className),style:p,ref:g,children:(0,a.jsx)(c.A,{_width:"70%",_height:"16px"})}):(0,a.jsx)("div",{...h,className:(0,i.A)((0,s.Uu)({justify:l}),f,j&&d,(0,o.UV)({bgColor:u}),h.className),style:p,ref:g,children:e})},(0,r.forwardRef)(n))},91975:(e,l,t)=>{t.d(l,{A:()=>D});var n=t(80263),a=t(90453),i=t(1061),r=t(97372),o=t(9629),s=t(52659),c=t(53239),d=t(49631),m=t(13019),u=t(13050),h=t(41864),g=t(16053),b=t(67397),p=t(63933),x=t(59935),j=t(54730),f=t(96419),C=t(45450);t(3855),t(44612),t(21228),t(40588),t(3455);var y=t(6078),v="lusxuie";(0,y.c)({defaultClassName:"lusxuib",variantClassNames:{disabled:{true:"hjwbnu136 hjwbnu137 hjwbnu138 hjwbnuyi hjwbnuyj hjwbnuyk",false:"hjwbnu12o"}},defaultVariants:{disabled:!1},compoundVariants:[]});var w=t(90187),_=t(77464),N=t(51915),I=t(61681),L=t(87830),k=t(8283),R=t(93465),A=t(89053),z=t(3716),S=t(3638),E=t(91687),V=t(18131),H=t(89455),M=t(48763);t(7);let U={ig:(0,n.jsx)(I._,{}),yt:(0,n.jsx)(L.h,{}),nb:(0,n.jsx)(k.I,{}),tt:(0,n.jsx)(R.Q,{}),tw:(0,n.jsx)(A.s,{})},T=({platformPk:e,avatarImg:l,platform:t,isVerified:i,userName:r,description:o,linkUrl:m="",accountLinkEventParams:h={},isLoading:g})=>{let x=(0,p.Lu)(),{t:f}=(0,s.Bd)("managementInf"),{trackEvent:C}=(0,E.Z)();b.LQ[t];let y=(0,c.useRef)(null),[v,w]=(0,c.useState)(!1),I=(0,d.hS)(H.A[t]);return(0,n.jsxs)("div",{className:"x6kkmw1 hjwbnu336 hjwbnu34i hjwbnu376 hjwbnu207 hjwbnu39u _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmp",onClick:l=>{l.stopPropagation(),I({platformPk:e,userName:r??void 0,entryPoint:"influencer management"})},children:[(0,n.jsx)("div",{className:"x6kkmw2 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd",onClick:e=>{C("click_social_media_external_link",h),e.stopPropagation()},children:(0,n.jsx)(j.A,{href:m,target:"_blank",children:(0,n.jsx)("div",{onMouseOver:()=>{w(!0)},onMouseOut:()=>{w(!1)},ref:y,children:(0,n.jsxs)(_.bL,{color:"gray",children:[l&&(0,n.jsx)(_._V,{src:l,alt:r??""}),(0,n.jsx)(_.H4,{icon:!0}),!(x&&"yt"===t)&&(0,n.jsx)(_.C1,{position:"bottom-right",children:(0,n.jsx)(N.f,{children:U[t]})})]})})})}),r&&!g&&(0,n.jsxs)("div",{className:"x6kkmw3 _1s3rlbm0 _1s3rlbm1 _1s3rlbm4 _1s3rlbma _1s3rlbme",children:[(0,n.jsxs)("div",{className:"x6kkmw4 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmm",children:[i&&(0,n.jsx)("div",{className:(0,S.A)((0,u.Uu)({align:"center",justify:"center"})),children:"tt"!==t&&(0,n.jsx)(z.x,{size:14})}),(0,n.jsx)(a.p,{tailInvisible:!0,text:f("detail.table-body.user-id-body-cell.inf-mgmt-info"),children:(0,n.jsx)("div",{className:"x6kkmw6 hjwbnu3c lkuzww8 _8fy5pu5",children:r})})]}),(0,n.jsx)("span",{className:"x6kkmw9 hjwbnu3o lkuzwwb",children:o})]}),(g||!r)&&(0,n.jsxs)("div",{className:"x6kkmwa _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbma _1s3rlbme _1s3rlbmp",children:[(0,n.jsx)(V.A,{_width:"100%",_height:"10px"}),(0,n.jsx)(V.A,{_width:"70%",_height:"10px"})]}),v&&y.current&&(0,n.jsx)(M.A,{platform_pk:e,is_displayed:v,target:y.current,platform:t})]})},D=({platform:e,row:l,column:t,table:c,isLoading:y=!1,..._})=>{let N,{t:I}=(0,s.Bd)("managementInf"),L=(0,h.Pj)(e=>e.authority.role),k=(0,p.Lu)(),R=l.original,A=(R.is_meta_verified||R.is_x_verified)??!1,z=""!==R.username?R.username:null,S=""!==R.full_name?R.full_name:null,E=R.profile_img_link??"",V=R.platform_pk,H=R.account_link??"",M=(0,d.hS)(x.A),U=e=>l.getAllCells().some(l=>l.column.id===e)?l.getValue(e):void 0,D=`/report/${b.LQ[e]}/${V}`,K="influencer management",Z=U("follower")||U("avg_today_visitor"),B={entry_point:K,social_media_platform:g.EK[e],social_media_account_id:z,category:U("category"),followers:Z?.toLocaleStr
1ing()};return(0,n.jsx)(w.A,{..._,className:"lusxui1 hjwbnu3a6 hjwbnu3cu hjwbnu3i _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd lkuzww8",column:t,row:l,justify:"between",table:c,children:(0,n.jsxs)("div",{className:"lusxui2 _1s3rlbm0 _1s3rlbm1 _1s3rlbm6 _1s3rlbm9 _1s3rlbmd _1s3rlbms",children:[(0,n.jsx)("div",{className:"lusxui3 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbma _1s3rlbmd _1s3rlbms",children:(0,n.jsx)(T,{platformPk:V,platform:e,isVerified:A,userName:z,description:S,avatarImg:E,linkUrl:H,isLoading:y,accountLinkEventParams:{entry_point:"influencer management - click image"}})}),(0,n.jsxs)("div",{className:"lusxui4 _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd _1s3rlbmn",children:[!k&&(0,n.jsx)(a.p,{tailInvisible:!0,text:(0,n.jsxs)("div",{className:(0,u.Uu)({align:"start",gap:"spacing-100"}),children:[(0,n.jsx)("span",{children:I("detail.table-body.profile-body-cell.report-link-tooltip.text")}),(0,n.jsx)("span",{className:"lusxui8 lkuzww7",children:I("detail.table-body.profile-body-cell.report-link-tooltip.gray-text")})]}),containerClassName:"lusxuif _1s3rlbm0 _1s3rlbm1 _1s3rlbm3 _1s3rlbm9 _1s3rlbmd",children:(0,n.jsx)(C.N,{eventName:"view_influencer_report",eventParam
1s:B,children:(0,n.jsx)(j.A,{href:D,target:"_blank",children:(0,n.jsx)(i.M,{size:"sm",className:v,buttonType:"tertiary",prefix:(0,n.jsx)(r.Y,{})})})})}),(0,n.jsx)(a.p,{tailInvisible:!0,text:I("detail.table-body.profile-body-cell.edit-group-button"),children:(0,n.jsx)(C.N,{eventName:"edit_saved_influencer",eventParams:{entry_point:"influencer management - save icon"},children:(0,n.jsx)(i.M,{size:"sm",className:v,buttonType:"tertiary",prefix:(0,n.jsx)(o.U,{fill:"viewer"===L?m.f.global.colors.gray[60]:m.f.semantic.color.icon.primary}),onClick:(N=z??void 0,l=>{l.stopPropagation(),e&&V&&N&&M({platformCode:e,platformPk:V,username:N})}),disabled:"viewer"===L})})}),(0,n.jsx)(C.N,{eventName:"view_account_actions",eventParams:{entry_point:K},children:(0,n.jsx)(f.A,{pk:V,platform:e,userName:z,platformPk:V,profileSrc:E,outLink:H,isLoading:y,eventParamsList:{view_influencer_report:B,view_influencer_info:{entry_point:K},edit_saved_influencer:{entry_point:"influencer management - account actions"},click_social_media_external_link:{entry_point:"influencer management - account actions"}}})})]})]})})}},95747:(e,l,t)=>{t.d(l,{W:()=>a});var n=t(80263);let a=(0,t(53239).memo)(({className:e,width:l=24,height:t=24,...a})=>(0,n.jsxs)("svg",{width:l,height:t,className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...a,children:[(0,n.jsx)("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M21.0001 10C21.0001 9.63121 20.7971 9.29235 20.472 9.11833C20.1468 8.94431 19.7523 8.96338 19.4454 9.16795L16.4454 11.168C15.9859 11.4743 15.8617 12.0952 16.1681 12.5547C16.4744 13.0142 17.0953 13.1384 17.5548 12.8321L19.0001 11.8685V18C19.0001 18.5523 19.4478 19 20.0001 19C20.5524 19 21.0001 18.5523 21.0001 18V10Z",fill:"currentColor"})]}));a.displayName="HeadingOneIcon"},97464:(e,l,t)=>{t.d(l,{A:()=>o});var n=t(80263),a=t(8461),i=t(53239);t(3855),t(44612),t(53206);let r=(0,i.forwardRef)(({width:e="100%",height:l=56,...t},r)=>{let o=e=>"number"==typeof e?`${e}px`:e,s=(0,i.useRef)(null);return(0,n.jsx)("div",{className:"x6ybu73 hjwbnu336 hjwbnu3ac hjwbnu3d0 hjwbnu34u hjwbnu37i hjwbnu12o",style:(0,a.D)({"var(--x6ybu70)":o(e),"var(--x6ybu71)":o(l)}),onClick:()=>s.current?.focus(),children:(0,n.jsx)("input",{className:"x6ybu74 lkuzww7",...t,ref:e=>{r&&("function"==typeof r?r(e):r.current=e),s.current=e,e&&e.focus()}})})});r.displayName="EditorInput";let o=r}}]); 2//# sourceMappingURL=9607-560beb9deb02bfa5.js.map
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.