@mirantes-micro/foundation-design-system 1.2.413 → 1.2.415

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3640,22 +3640,22 @@ mutation CreateParticipant($input: CreateParticipantInput!) {
3640
3640
  `},B__namespace.default.createElement("div",{className:"flex flex-col"},t?B__namespace.default.createElement("div",{className:"flex items-center gap-2 px-4 py-3 text-sm text-gray-400"},B__namespace.default.createElement("span",{className:"w-4 h-4 border-2 border-gray-200 border-t-primary rounded-full animate-spin"}),fA(o,"searching-label")):B__namespace.default.createElement("ul",{className:"max-h-[240px] overflow-y-auto py-1 overscroll-contain"},A?.map((s,i)=>{let l=s?.type?.toLowerCase(),c=a[s?.type];return B__namespace.default.createElement("li",{key:s?.id,onMouseDown:d=>{d.preventDefault(),n(s);},className:`
3641
3641
  flex items-center gap-3 px-3 py-2 cursor-pointer transition-colors
3642
3642
  ${i===e?"bg-[#F0F6FF]":"hover:bg-gray-50"}
3643
- `},B__namespace.default.createElement(tA,{name:s?.name??"",src:s?.avatar,type:l,size:"sm"}),B__namespace.default.createElement("div",{className:"flex-1 min-w-0"},B__namespace.default.createElement("p",{className:"text-sm capitalize font-medium text-gray-900 truncate"},fe(s?.name)),B__namespace.default.createElement("p",{className:"text-xs",style:{color:c?.color}},c?.label)))}))))}var L4A=A=>{let e=/(https?:\/\/[^\s]+)/g;return A.match(e)||[]},ZZ=A=>{let e=/(https?:\/\/[^\s]+)/g,t=[],r=0,n=null;for(;(n=e.exec(A))!==null;){n.index>r&&t.push(A.slice(r,n.index));let o=n[0];t.push(B__namespace.default.createElement("a",{key:n.index,href:o,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline cursor-pointer",onClick:a=>a.stopPropagation()},o)),r=n.index+o.length;}return r<A.length&&t.push(A.slice(r)),t},oy=B__namespace.default.memo(function({rawText:e,setRawText:t,mentionTokens:r,onAcceptMention:n,onRemoveMention:o,mentionCandidates:a,isLoadingMentions:s,onMentionQueryChange:i,placeholder:l="What's on your mind?",autoFocus:c=true}){let[d,m]=B.useState(null),p=B.useRef(false),{editorRef:u,isInternalChange:f,isMentionOpen:v,selectedIndex:x,cursorPos:g,handleInput:b,handleKeyDown:h,insertMention:y,closeMention:T}=VZ({rawText:e,setRawText:t,mentionTokens:r,onAcceptMention:n,onRemoveMention:o,mentionCandidates:a,isLoadingMentions:s,onMentionQueryChange:i}),M=B.useMemo(()=>L4A(e),[e]);B.useEffect(()=>{m(M.length>0?M[0]:null);},[M]);let E=B.useCallback(z=>{z.preventDefault();let V=z.clipboardData.getData("text/plain");if(V){let H=window.getSelection();if(H&&H.rangeCount>0){let w=H.getRangeAt(0),S=document.createTextNode(V);w.deleteContents(),w.insertNode(S),w.collapse(false);let W=new InputEvent("input",{bubbles:true});u.current?.dispatchEvent(W);}else t(e+V);}},[e,t,u]);B.useEffect(()=>{if(c&&u.current){u.current.focus();let z=document.createRange(),V=window.getSelection();V&&(z.selectNodeContents(u.current),z.collapse(false),V.removeAllRanges(),V.addRange(z));}},[c,u]),B.useEffect(()=>{let z=u.current;if(z){if(f.current){f.current=false;return}p.current||requestAnimationFrame(()=>{if(!z)return;p.current=true;let V=window.getSelection(),H=-1;if(V&&V.rangeCount>0&&V.isCollapsed){let O=V.getRangeAt(0),q=O.cloneRange();q.selectNodeContents(z),q.setEnd(O.startContainer,O.startOffset),H=q.toString().length;}let w=/@([^[\]]+)\[uid:([^\]]+)\]\[([^\]]+)\]/g;z.innerHTML="";let S=0,W=null;for(w.lastIndex=0;(W=w.exec(e))!==null;){let[O,q,k,R]=W,j=W.index;if(j>S){let F=e.slice(S,j);ZZ(F).forEach(X=>{if(typeof X=="string")z.appendChild(document.createTextNode(X));else if(B__namespace.default.isValidElement(X)){let U=document.createElement("div"),$=X?.props?.children;if(typeof $=="string"){U.innerHTML=$;let rA=U.firstChild;rA&&z.appendChild(rA);}}});}let C=document.createElement("span");C.className="mention",C.contentEditable="false",C.setAttribute("data-id",k),C.setAttribute("data-type",R),C.setAttribute("data-original-name",q),C.textContent=q,z.appendChild(document.createTextNode("\u200B")),z.appendChild(C),z.appendChild(document.createTextNode("\xA0")),S=j+O.length;}if(S<e.length){let O=e.slice(S);ZZ(O).forEach(k=>{if(typeof k=="string")z.appendChild(document.createTextNode(k));else if(B__namespace.default.isValidElement(k)){let R=document.createElement("div"),j=k?.props?.children;if(typeof j=="string"){R.innerHTML=j;let C=R.firstChild;C&&z.appendChild(C);}}});}H>=0&&(()=>{let q=document.createRange(),k=window.getSelection();if(k&&z.childNodes.length>0){let R=0,j=null,C=0,F=document.createTreeWalker(z,NodeFilter.SHOW_TEXT,null),Y=null;for(;(Y=F.nextNode())!==null;){let X=Y.textContent?.length||0;if(R+X>=H){j=Y,C=H-R;break}R+=X;}j?(q.setStart(j,Math.min(C,j.textContent?.length||0)),q.collapse(true),k.removeAllRanges(),k.addRange(q)):z.lastChild&&(q.selectNodeContents(z),q.collapse(false),k.removeAllRanges(),k.addRange(q));}})(),p.current=false,b();});}},[e,u,f,b]);let N=B.useCallback(()=>{if(M.length>0){let z=M[0],V=e.replace(z,"");t(V);}},[M,e,t]);return B__namespace.default.createElement("div",{className:"relative flex-1 flex flex-col w-full"},B__namespace.default.createElement("div",{ref:u,contentEditable:true,suppressContentEditableWarning:true,onInput:b,onKeyDown:h,onPaste:E,className:`\r
3644
- max-h-[280px] overflow-y-auto\r
3645
- min-h-[80px] w-full outline-none text-[0.95rem] text-gray-800\r
3646
- leading-relaxed whitespace-pre-wrap break-words\r
3647
- empty:before:content-[attr(data-placeholder)]\r
3648
- empty:before:text-gray-400 empty:before:pointer-events-none\r
3649
- \r
3650
- [&_.mention]:text-primary\r
3651
- [&_.mention]:font-semibold\r
3652
- [&_.mention]:px-1.5\r
3653
- [&_.mention]:py-0.5\r
3654
- [&_.mention]:rounded-md\r
3655
- [&_.mention]:inline-block\r
3656
- [&_.mention]:select-all\r
3657
- [&_.mention]:cursor-default\r
3658
- [&_.mention]:transition-colors\r
3643
+ `},B__namespace.default.createElement(tA,{name:s?.name??"",src:s?.avatar,type:l,size:"sm"}),B__namespace.default.createElement("div",{className:"flex-1 min-w-0"},B__namespace.default.createElement("p",{className:"text-sm capitalize font-medium text-gray-900 truncate"},fe(s?.name)),B__namespace.default.createElement("p",{className:"text-xs",style:{color:c?.color}},c?.label)))}))))}var L4A=A=>{let e=/(https?:\/\/[^\s]+)/g;return A.match(e)||[]},ZZ=A=>{let e=/(https?:\/\/[^\s]+)/g,t=[],r=0,n=null;for(;(n=e.exec(A))!==null;){n.index>r&&t.push(A.slice(r,n.index));let o=n[0];t.push(B__namespace.default.createElement("a",{key:n.index,href:o,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline cursor-pointer",onClick:a=>a.stopPropagation()},o)),r=n.index+o.length;}return r<A.length&&t.push(A.slice(r)),t},oy=B__namespace.default.memo(function({rawText:e,setRawText:t,mentionTokens:r,onAcceptMention:n,onRemoveMention:o,mentionCandidates:a,isLoadingMentions:s,onMentionQueryChange:i,placeholder:l="What's on your mind?",autoFocus:c=true}){let[d,m]=B.useState(null),p=B.useRef(false),{editorRef:u,isInternalChange:f,isMentionOpen:v,selectedIndex:x,cursorPos:g,handleInput:b,handleKeyDown:h,insertMention:y,closeMention:T}=VZ({rawText:e,setRawText:t,mentionTokens:r,onAcceptMention:n,onRemoveMention:o,mentionCandidates:a,isLoadingMentions:s,onMentionQueryChange:i}),M=B.useMemo(()=>L4A(e),[e]);B.useEffect(()=>{m(M.length>0?M[0]:null);},[M]);let E=B.useCallback(z=>{z.preventDefault();let V=z.clipboardData.getData("text/plain");if(V){let H=window.getSelection();if(H&&H.rangeCount>0){let w=H.getRangeAt(0),S=document.createTextNode(V);w.deleteContents(),w.insertNode(S),w.collapse(false);let W=new InputEvent("input",{bubbles:true});u.current?.dispatchEvent(W);}else t(e+V);}},[e,t,u]);B.useEffect(()=>{if(c&&u.current){u.current.focus();let z=document.createRange(),V=window.getSelection();V&&(z.selectNodeContents(u.current),z.collapse(false),V.removeAllRanges(),V.addRange(z));}},[c,u]),B.useEffect(()=>{let z=u.current;if(z){if(f.current){f.current=false;return}p.current||requestAnimationFrame(()=>{if(!z)return;p.current=true;let V=window.getSelection(),H=-1;if(V&&V.rangeCount>0&&V.isCollapsed){let O=V.getRangeAt(0),q=O.cloneRange();q.selectNodeContents(z),q.setEnd(O.startContainer,O.startOffset),H=q.toString().length;}let w=/@([^[\]]+)\[uid:([^\]]+)\]\[([^\]]+)\]/g;z.innerHTML="";let S=0,W=null;for(w.lastIndex=0;(W=w.exec(e))!==null;){let[O,q,k,R]=W,j=W.index;if(j>S){let F=e.slice(S,j);ZZ(F).forEach(X=>{if(typeof X=="string")z.appendChild(document.createTextNode(X));else if(B__namespace.default.isValidElement(X)){let U=document.createElement("div"),$=X?.props?.children;if(typeof $=="string"){U.innerHTML=$;let rA=U.firstChild;rA&&z.appendChild(rA);}}});}let C=document.createElement("span");C.className="mention",C.contentEditable="false",C.setAttribute("data-id",k),C.setAttribute("data-type",R),C.setAttribute("data-original-name",q),C.textContent=q,z.appendChild(document.createTextNode("\u200B")),z.appendChild(C),z.appendChild(document.createTextNode("\xA0")),S=j+O.length;}if(S<e.length){let O=e.slice(S);ZZ(O).forEach(k=>{if(typeof k=="string")z.appendChild(document.createTextNode(k));else if(B__namespace.default.isValidElement(k)){let R=document.createElement("div"),j=k?.props?.children;if(typeof j=="string"){R.innerHTML=j;let C=R.firstChild;C&&z.appendChild(C);}}});}H>=0&&(()=>{let q=document.createRange(),k=window.getSelection();if(k&&z.childNodes.length>0){let R=0,j=null,C=0,F=document.createTreeWalker(z,NodeFilter.SHOW_TEXT,null),Y=null;for(;(Y=F.nextNode())!==null;){let X=Y.textContent?.length||0;if(R+X>=H){j=Y,C=H-R;break}R+=X;}j?(q.setStart(j,Math.min(C,j.textContent?.length||0)),q.collapse(true),k.removeAllRanges(),k.addRange(q)):z.lastChild&&(q.selectNodeContents(z),q.collapse(false),k.removeAllRanges(),k.addRange(q));}})(),p.current=false,b();});}},[e,u,f,b]);let N=B.useCallback(()=>{if(M.length>0){let z=M[0],V=e.replace(z,"");t(V);}},[M,e,t]);return B__namespace.default.createElement("div",{className:"relative flex-1 flex flex-col w-full"},B__namespace.default.createElement("div",{ref:u,contentEditable:true,suppressContentEditableWarning:true,onInput:b,onKeyDown:h,onPaste:E,className:`
3644
+ max-h-[280px] overflow-y-auto
3645
+ min-h-[80px] w-full outline-none text-[0.95rem] text-gray-800
3646
+ leading-relaxed whitespace-pre-wrap break-words
3647
+ empty:before:content-[attr(data-placeholder)]
3648
+ empty:before:text-gray-400 empty:before:pointer-events-none
3649
+
3650
+ [&_.mention]:text-primary
3651
+ [&_.mention]:font-semibold
3652
+ [&_.mention]:px-1.5
3653
+ [&_.mention]:py-0.5
3654
+ [&_.mention]:rounded-md
3655
+ [&_.mention]:inline-block
3656
+ [&_.mention]:select-all
3657
+ [&_.mention]:cursor-default
3658
+ [&_.mention]:transition-colors
3659
3659
  `,"data-placeholder":l,spellCheck:true}),d&&B__namespace.default.createElement("div",{className:"mt-2 p-3 bg-gray-50 rounded-lg border border-gray-200"},B__namespace.default.createElement("div",{className:"flex items-start gap-3"},B__namespace.default.createElement("div",{className:"flex-shrink-0"},B__namespace.default.createElement("svg",{className:"w-5 h-5 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},B__namespace.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.102m3.172-3.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.102"}))),B__namespace.default.createElement("div",{className:"flex-1 min-w-0"},B__namespace.default.createElement("p",{className:"text-sm font-medium text-gray-900 truncate"},"Link Preview"),B__namespace.default.createElement("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-blue-600 hover:underline break-all"},d),M.length>1&&B__namespace.default.createElement("p",{className:"text-xs text-gray-500 mt-1"},"+",M.length-1," more link",M.length-1!==1?"s":"")),B__namespace.default.createElement("button",{onClick:N,className:"flex-shrink-0 text-gray-400 hover:text-gray-600","aria-label":"Remove link"},B__namespace.default.createElement("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},B__namespace.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}))))),v&&B__namespace.default.createElement(LZ,{candidates:a,selectedIndex:x,isLoading:s,position:g,onSelect:y,onClose:T}))});oy.displayName="RichTextEditor";function RZ({contentView:A,setContentView:e,mediaFiles:t,editingIndex:r,setEditingIndex:n,onUpdateFile:o,onDeleteFile:a,rawText:s,setRawText:i,mentionTokens:l,onAcceptMention:c,onRemoveMention:d,mentionCandidates:m,isLoadingMentions:p,onMentionQueryChange:u,activeAction:f}){let{isMobile:v}=Br(),{locale:x}=P(),g=Xn(y=>y.status),b=g==="uploading"||g==="publishing",h=fA(x??"en","start-a-post-title");return B.useEffect(()=>{f==="clips"&&t.length===0&&A!=="reels-trigger"&&e("reels-trigger");},[f,t.length,A,e]),A==="edit-media"?B__namespace.default.createElement(HZ,{files:t,editingIndex:r,onSelectIndex:n,onUpdateFile:o,onDeleteFile:a,onBack:()=>e("normal"),onViewGallery:()=>e("view-gallery")}):A==="view-gallery"?B__namespace.default.createElement(WZ,{files:t,onBack:()=>e("normal"),onDelete:a,onEditMedia:y=>{n(y),e("edit-media");}}):B__namespace.default.createElement("div",{className:chunk5KHU3CLL_js.i("w-full max-h-full md:min-h-[18.34rem] p-4 rounded-lg flex flex-col gap-4 bg-white mb-3 transition-all duration-300 overflow-x-auto",v&&"overflow-x-auto overscroll-x-contain",b&&"opacity-60 pointer-events-none select-none grayscale-[20%]",{"border border-[#E4EBF1]":!v})},B__namespace.default.createElement(oy,{rawText:s,setRawText:i,mentionTokens:l,onAcceptMention:c,onRemoveMention:d,mentionCandidates:m,isLoadingMentions:p,onMentionQueryChange:u,placeholder:h,autoFocus:true}),t?.length>0&&B__namespace.default.createElement(Z4A,{mediaFiles:t,onDelete:a,onEdit:y=>{n(y),e("edit-media");},onOpenGallery:()=>e("view-gallery"),isMobile:v}))}function Z4A({mediaFiles:A,onDelete:e,onEdit:t,onOpenGallery:r,isMobile:n}){let o=A.length;return o===1?B__namespace.default.createElement("div",{className:"w-full h-[28.75rem] rounded-lg overflow-hidden"},B__namespace.default.createElement(Bm,{file:A[0],index:0,onDelete:e,onEdit:t,className:"w-full h-full"})):B__namespace.default.createElement("div",{className:chunk5KHU3CLL_js.i("flex gap-[1rem] w-full h-[28.75rem] overflow-hidden",n&&"overflow-x-auto min-w-max px-1")},B__namespace.default.createElement("div",{className:chunk5KHU3CLL_js.i("h-full flex-shrink-0 rounded-lg overflow-hidden",n?"w-[80vw] max-w-[18.78rem]":"w-[18.78rem]")},B__namespace.default.createElement(Bm,{file:A[0],index:0,onDelete:e,onEdit:t,className:"w-full h-full"})),B__namespace.default.createElement("div",{className:"flex flex-col gap-[1rem] flex-1 h-full overflow-hidden min-w-[15rem]"},o===2?B__namespace.default.createElement("div",{className:"h-full rounded-lg overflow-hidden"},B__namespace.default.createElement(Bm,{file:A[1],index:1,onDelete:e,onEdit:t,className:"w-full h-full"})):B__namespace.default.createElement(B__namespace.default.Fragment,null,B__namespace.default.createElement("div",{className:"h-[13.875rem] rounded-lg overflow-hidden"},B__namespace.default.createElement(Bm,{file:A[1],index:1,onDelete:e,onEdit:t,className:"w-full h-full"})),B__namespace.default.createElement("div",{className:"h-[13.875rem] rounded-lg overflow-hidden relative"},B__namespace.default.createElement(Bm,{file:A[2],index:2,onDelete:e,onEdit:t,className:"w-full h-full",showOverlay:o>3,overlayCount:o-3,onOverlayClick:r})))),n&&o>3&&B__namespace.default.createElement("div",{className:"flex-shrink-0 w-[15rem] h-full rounded-lg overflow-hidden relative bg-gray-100 flex items-center justify-center"},B__namespace.default.createElement("div",{className:"text-center"},B__namespace.default.createElement("div",{className:"text-2xl font-bold"},"+",o-3))))}function R4A(A){let{fontSize:e="20px"}=A;return B__namespace.createElement("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",...A},B__namespace.createElement("path",{d:"M21.75 11.997v.143c-.032 1.336-.528 2.857-2.625 2.857-2.17 0-2.625-1.631-2.625-3v-3.75a.75.75 0 00-.8-.75.766.766 0 00-.7.775v.375a4.5 4.5 0 10.63 6.005c.095.164.2.32.318.469.503.626 1.462 1.376 3.177 1.376.29.001.579-.023.864-.07a.375.375 0 01.384.562 9.754 9.754 0 01-8.569 4.758c-5.136-.103-9.348-4.232-9.546-9.365a9.75 9.75 0 1119.492-.385zm-12.75 0a3 3 0 106 0 3 3 0 00-6 0z",fill:"#687588"}))}var X4A=B__namespace.memo(R4A),XZ=X4A;function F4A(A){return B__namespace.createElement("svg",{width:20,height:20,fill:"none",...A},B__namespace.createElement("path",{opacity:.4,d:"M17.775 6.202c-.349-.22-.778-.24-1.144-.053l-1.235.623c-.456.23-.74.696-.74 1.213v4.862c0 .518.284.982.74 1.214l1.234.623a1.144 1.144 0 001.145-.053c.35-.22.558-.599.558-1.015V7.218c0-.416-.208-.796-.558-1.016z",fill:"#687588"}),B__namespace.createElement("path",{d:"M9.92 16.667H5.095c-2.018 0-3.428-1.392-3.428-3.385V7.552c0-1.994 1.41-3.384 3.428-3.384h4.827c2.018 0 3.427 1.39 3.427 3.384v5.732c0 1.992-1.409 3.384-3.427 3.384z",fill:"#687588"}))}var Y4A=B__namespace.memo(F4A),FZ=Y4A;function J4A(A){return B__namespace.createElement("svg",{width:20,height:20,fill:"none",...A},B__namespace.createElement("path",{d:"M18.333 12.252v1.153c0 .191-.008.384-.025.575-.234 2.633-2.062 4.353-4.7 4.353H6.392c-1.336 0-2.464-.433-3.274-1.22a3.827 3.827 0 01-.793-1.026c.276-.335.585-.702.885-1.07.51-.61 1.002-1.212 1.311-1.604.46-.568 1.67-2.063 3.349-1.362.342.142.643.343.918.518.676.452.96.585 1.436.326.526-.284.869-.844 1.228-1.428.192-.31.384-.61.593-.886.91-1.186 2.313-1.504 3.482-.802.584.35 1.085.794 1.553 1.244.1.1.2.193.292.285.125.125.543.543.96.944z",fill:"#687588"}),B__namespace.createElement("path",{opacity:.4,d:"M13.615 1.667H6.393c-2.831 0-4.726 1.98-4.726 4.928v6.81c0 1.027.233 1.938.66 2.682.275-.335.584-.702.884-1.07.51-.61 1.002-1.212 1.311-1.604.46-.568 1.67-2.063 3.349-1.361.342.142.643.342.918.518.676.45.96.584 1.436.325.526-.284.869-.843 1.228-1.43.192-.308.384-.608.593-.884.91-1.186 2.313-1.504 3.482-.802.584.35 1.085.794 1.553 1.244.1.1.2.193.292.285.125.124.543.542.96.944V6.595c0-2.948-1.895-4.928-4.718-4.928z",fill:"#687588"}),B__namespace.createElement("path",{d:"M9.545 7.33a2.17 2.17 0 01-2.15 2.152 2.17 2.17 0 01-2.15-2.151 2.17 2.17 0 012.15-2.152 2.17 2.17 0 012.15 2.152z",fill:"#687588"}))}var U4A=B__namespace.memo(J4A),U7=U4A;function D4A(A){return B__namespace.createElement("svg",{width:14,height:17,fill:"none",...A},B__namespace.createElement("path",{opacity:.4,d:"M6.66 13.851l-5.41 2.702a.85.85 0 01-1.147-.333.908.908 0 01-.103-.414V9.757c0 .6.338.97 1.227 1.385l5.432 2.71z",fill:"#687588"}),B__namespace.createElement("path",{d:"M9.225 0c2.256 0 4.086.888 4.108 3.161v12.645a.88.88 0 01-.103.407.847.847 0 01-1.168.34l-5.403-2.701-5.431-2.71C.338 10.727 0 10.357 0 9.758V3.16C0 .888 1.83.001 4.08 0h5.145zM3.52 5.034a.657.657 0 00-.655.66c0 .363.293.657.655.658H9.79a.656.656 0 00.654-.659.657.657 0 00-.654-.659H3.52z",fill:"#687588"}))}var G4A=B__namespace.memo(D4A),YZ=G4A;var pa={container:{position:"relative",width:"100%"},scrollContainer:{display:"flex",alignItems:"center",width:"100%",overflowX:"visible"},scrollContainerMobile:{overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitOverflowScrolling:"touch"},button:{display:"flex",alignItems:"center",gap:"0.5rem",transition:"opacity 0.2s",cursor:"pointer",whiteSpace:"nowrap",flexShrink:0,background:"none",border:"none",padding:0},buttonDisabled:{opacity:.5,cursor:"not-allowed"},iconWrapper:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},label:{fontSize:"0.875rem",fontWeight:500,color:"#111827"},labelDesktop:{"@media (min-width: 768px)":{fontSize:"1rem"}},shadowLeft:{position:"absolute",left:0,top:0,bottom:0,width:"2rem",background:"linear-gradient(to right, white, transparent)",pointerEvents:"none",zIndex:10},shadowRight:{position:"absolute",right:0,top:0,bottom:0,width:"2rem",background:"linear-gradient(to left, white, transparent)",pointerEvents:"none",zIndex:10},snapStart:{scrollSnapAlign:"start"},snapContainer:{scrollSnapType:"x mandatory"}};function D7({onClick:A,onlyIcon:e=false,handleCloseMainModal:t,hiddenOptions:r=[]}){let{locale:n,createJobButton:o}=P(),a=Xn(M=>M.status),s=n??"en",i=new Set(r),l=B.useRef(null),[c,d]=B.useState(false),[m,p]=B.useState(false),[u,f]=B.useState(false);B.useEffect(()=>{let M=()=>{f(window.innerWidth<768);};return M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)},[]);let v=B.useCallback(()=>{if(!l.current)return;let{scrollLeft:M,scrollWidth:E,clientWidth:N}=l.current;d(M>0),p(M+N<E-1);},[]);B.useEffect(()=>{let M=l.current;if(M&&u)return v(),M.addEventListener("scroll",v),window.addEventListener("resize",v),()=>{M.removeEventListener("scroll",v),window.removeEventListener("resize",v);}},[u,v]);let x=M=>{let E=l.current;if(!E)return;let N=M.touches[0].clientX,z=E.scrollLeft,V=w=>{let S=w.touches[0].clientX,W=N-S;E.scrollLeft=z+W;},H=()=>{document.removeEventListener("touchmove",V),document.removeEventListener("touchend",H);};document.addEventListener("touchmove",V,{passive:false}),document.addEventListener("touchend",H);},g=[{id:"media",actionType:"media",label:fA(s,"post-trigger-actions-button-media"),icon:B__namespace.default.createElement(U7,null),action:()=>A?.("media")},{id:"job",actionType:"create-a-job",isCustomComponent:true,component:o,action:()=>A?.("create-a-job")},{id:"mentions",actionType:"mention",label:fA(s,"post-trigger-actions-button-mentions"),icon:B__namespace.default.createElement(XZ,null),action:()=>A?.("mention")},u?null:{id:"article",actionType:"articles",label:fA(s,"post-trigger-actions-button-articles"),icon:B__namespace.default.createElement(Qd,null),action:()=>A?.("articles")},{id:"clips",actionType:"clips",label:fA(s,"post-trigger-actions-button-clips"),icon:B__namespace.default.createElement(FZ,null),action:()=>A?.("clips")},{id:"saved",actionType:"saved-items",label:fA(s,"post-trigger-actions-button-scheduled-items"),icon:B__namespace.default.createElement(YZ,null),action:()=>A?.("saved-items")}],h=g.filter(M=>{if(!M||i.has(M.actionType))return false;let E=e?["media","job","mentions","article"].includes(M.id):["media","job","article","clips","saved"].includes(M.id);return M.isCustomComponent&&!M.component?false:E}),T={...pa.scrollContainer,gap:"1rem",...u&&pa.scrollContainerMobile,...u&&pa.snapContainer};return B__namespace.default.createElement("div",{style:pa.container},u&&c&&B__namespace.default.createElement("div",{style:pa.shadowLeft}),B__namespace.default.createElement("div",{ref:l,style:T,onTouchStart:u?x:void 0},h.map((M,E)=>{if(M?.isCustomComponent)return B__namespace.default.createElement("div",{key:`custom-${E}`,onClick:t,style:u?pa.snapStart:void 0},M.component?.({onClick:t,showLabel:!e}));let N=a==="publishing"||a==="uploading",z={...pa.button,...N&&pa.buttonDisabled,...u&&pa.snapStart};return B__namespace.default.createElement("button",{key:M?.id,type:"button",onClick:M?.action,disabled:N,title:e?M?.label:void 0,style:z,className:"m-0",onMouseEnter:V=>{N||(V.currentTarget.style.opacity="0.8");},onMouseLeave:V=>{V.currentTarget.style.opacity="1";}},B__namespace.default.createElement("span",{style:pa.iconWrapper},M?.icon),!e&&M?.label&&B__namespace.default.createElement("span",{style:{...pa.label,...pa.labelDesktop}},M?.label))})),u&&m&&B__namespace.default.createElement("div",{style:pa.shadowRight}))}function Q4A(A){return B__namespace.createElement("svg",{width:24,height:24,fill:"none",...A},B__namespace.createElement("path",{opacity:.4,d:"M22 12c0 5.524-4.477 10-10 10S2 17.524 2 12C2 6.478 6.477 2 12 2s10 4.478 10 10z",fill:"#0B89CE"}),B__namespace.createElement("path",{d:"M15.574 15.815a.756.756 0 01-.384-.105l-3.926-2.343a.754.754 0 01-.365-.645V7.676a.75.75 0 011.5 0v4.62l3.56 2.123a.752.752 0 01-.385 1.396z",fill:"#0B89CE"}))}var _4A=B__namespace.memo(Q4A),UZ=_4A;function n4({disabled:A=true,type:e,onSubmit:t,isLoading:r,isEditingMode:n}){let{isMobile:o}=Br(),{locale:a}=P(),s={normal:{label:n?fA(a,"edit-label-button"):fA(a,"post-trigger-publish-btn-label")},schedule:{label:fA(a,"post-trigger-schedule-btn-label"),icon:o?B__namespace.default.createElement(UZ,null):B__namespace.default.createElement(C2,null)}};return B__namespace.default.createElement(D,{disabled:A,type:"button",onClick:t,isLoading:r,className:chunk5KHU3CLL_js.i("font-medium border p-2 md:p-0 md:min-w-[7.125rem] md:min-h-[3rem]",{"bg-primary text-white ":e==="normal","bg-white text-text-secondary":e==="schedule","bg-white border-primary !text-primary text-body-sm md:text-body-md":o&&e==="schedule"}),label:s[e].label,leftElement:s[e].icon})}function iy({onActionClick:A,canSubmit:e,onSubmit:t,onSchedule:r,hideScheduleOption:n=false,handleCloseMainModal:o,isEditingMode:a}){let s=Xn(i=>i.status);return B__namespace.default.createElement("div",{className:"w-full flex items-center justify-between"},B__namespace.default.createElement(D7,{handleCloseMainModal:o,onlyIcon:true,onClick:A}),B__namespace.default.createElement("div",{className:"flex items-center gap-2"},n?null:B__namespace.default.createElement(n4,{onSubmit:r,isEditingMode:a,type:"schedule",disabled:s==="publishing"||s==="uploading"}),B__namespace.default.createElement(n4,{onSubmit:t,type:"normal",isLoading:s==="publishing"||s==="uploading",disabled:!e})))}var G7=(A,e)=>{let{user:t,isGettingUser:r,profileApiUrl:n}=P(),o=usehooks.useDebounce(A,400),a=async({pageParam:u=1})=>{if(!n||!t?.id)return {getPageUsersByUser:{data:[],meta:{}}};try{let f=await h9.request(n,c8,{options:{filter:o??"",page:u,perPage:10}},{"x-access-token":t?.accessToken??""}),v=f?.getPageUsersByUser?.data??[];return {getPageUsersByUser:{data:await Promise.all(v.map(async g=>{let b=g?.page;if(!b?.id)return {id:"",name:"",avatar:"",sector:void 0};if(!b?.sectorId)return {...b,sector:void 0};try{let y=(await h9.request(n,Cg,{id:b?.sectorId},{"x-access-token":t?.accessToken??""}))?.sector?.name??void 0;return {...b,sector:y}}catch{return {...b,sector:void 0}}})),meta:f?.getPageUsersByUser?.meta}}}catch(f){throw f}},{data:s,isLoading:i,fetchNextPage:l,hasNextPage:c,isFetchingNextPage:d}=ne({queryKey:["page-users-by-user",t?.id,o],queryFn:a,initialPageParam:1,enabled:false,getNextPageParam:u=>{let f=u?.getPageUsersByUser?.meta;if(!f)return;let v=Math.ceil((f?.total??0)/(f?.perPage??1));return f?.currentPage&&f?.currentPage<v?f.currentPage+1:void 0}});return {pages:(s?.pages?.flatMap(u=>u?.getPageUsersByUser?.data??[])?.filter(Boolean)?.reverse()??[]).filter(u=>{if(!o?.trim())return true;let f=o.toLowerCase();return u?.name?.toLowerCase()?.includes(f)||u?.sector?.toLowerCase()?.includes(f)}),isGettingPages:r||i,fetchNextPage:l,hasNextPage:c,isFetchingNextPage:d}};function A5A(A){return B__namespace.createElement("svg",{width:15,height:15,fill:"none",...A},B__namespace.createElement("rect",{width:15,height:14.5,rx:7.25,fill:"#A0AEC0"}),B__namespace.createElement("path",{d:"M11 5.5L7.5 9 4 5.5",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))}var e5A=B__namespace.memo(A5A),GZ=e5A;function ly({avatar:A,headline:e,name:t,type:r,isSelected:n,onPickAProfile:o}){return B__namespace.default.createElement("div",{className:"flex items-center gap-3 justify-between cursor-pointer hover:bg-gray-50 p-1 rounded-lg transition-colors",onClick:o},B__namespace.default.createElement("div",{className:"flex items-center gap-3"},B__namespace.default.createElement(tA,{name:t??"",src:A??"",className:"w-[2.25rem] h-[2.25rem]",type:r}),B__namespace.default.createElement("div",{className:"flex flex-col"},B__namespace.default.createElement("span",{className:"font-medium text-[#050910] md:font-bold text-body-md md:text-[1rem] truncate"},fe(t??"")),B__namespace.default.createElement("span",{className:"font-medium text-[#687588] text-body-sm truncate"},et(e??"",25)))),B__namespace.default.createElement(Pd,{isSelected:n,onSelect:o}))}function cy({onPickAProfile:A,isProfileSwitcherOpened:e=false,onCloseProfileSwitcherModal:t,selectedProfileId:r}){let{isMobile:n}=Br(),{user:o,locale:a}=P(),s=B.useRef(null),{fetchNextPage:i,hasNextPage:l,isGettingPages:c,pages:d,isFetchingNextPage:m}=G7(""),p=fA(a,"switch-profile-title"),[u]=cX__default.default({loading:m,hasNextPage:!!l,onLoadMore:i,disabled:c||!l,rootMargin:"0px 0px 200px 0px"}),f=()=>B__namespace.default.createElement("div",{ref:s,className:"flex flex-col gap-4 overflow-y-auto pr-2 custom-scrollbar min-h-[10rem]"},o&&B__namespace.default.createElement(ly,{name:o.name,avatar:o.avatar,headline:o.headline,type:"user",isSelected:r===o.id,onPickAProfile:()=>A?.({id:o.id??"",name:o.name??"",avatar:o.avatar??"",headline:o.headline,type:"user",slug:o.slug})}),d?.map(v=>B__namespace.default.createElement(ly,{key:v?.id,name:v?.name,avatar:v?.avatar||v?.logo,headline:v?.sector,type:"page",isSelected:r===v?.id,onPickAProfile:()=>A?.({id:v?.id,name:v?.name,avatar:v?.avatar||v?.logo,type:"page",headline:v?.sector,slug:v?.slug})})),(l||m)&&B__namespace.default.createElement("div",{ref:u,className:"flex justify-center py-2"},B__namespace.default.createElement(HA,{className:"w-6 h-6"})));return n?B__namespace.default.createElement(Da,{isOpen:e,onClose:t,className:"w-full",title:B__namespace.default.createElement("span",{className:"font-medium text-[#050910] text-body-md truncate"},p)},B__namespace.default.createElement("div",{className:"mt-2"},f())):B__namespace.default.createElement(dn,{isOpen:e,onClose:t,closeOnClickOutside:true,showCloseButton:false,className:"w-[26.063rem] max-h-[30rem] rounded-[1rem] p-[1.5rem] flex flex-col gap-4"},B__namespace.default.createElement("span",{className:"font-medium text-[#050910] md:font-bold text-body-md md:text-[1rem] truncate"},p),f())}function ep({profile:A,mode:e,onPickAProfile:t,restrictProfileSelection:r=false,onToggleSwitcher:n,renderOnlyModal:o=false}){let[a,s]=usehooks.useToggle(o),{locale:i,user:l}=P(),{pages:c,isGettingPages:d}=G7(""),m=!d&&c?.length===0,p=!!l&&!r||m,u=x=>{s(x),n?.(x);},f=()=>{if(!(!A?.slug&&A?.type!=="user"))switch(A?.type){case "community":window.location.href=`/community/${i}/${A?.slug}`;break;case "page":window.location.href=`/company/${i}/${A?.slug}`;break;case "user":window.location.href=`/profile/${i}`;break}},v=x=>{t?.(x),u(false);};return o?B__namespace.default.createElement(cy,{isProfileSwitcherOpened:a,onCloseProfileSwitcherModal:()=>u(false),onPickAProfile:v,selectedProfileId:A?.id}):B__namespace.default.createElement(B__namespace.default.Fragment,null,B__namespace.default.createElement("div",{className:chunk5KHU3CLL_js.i("flex items-start gap-3",{"flex-row":e==="full"})},B__namespace.default.createElement("div",{className:"relative inline-flex"},B__namespace.default.createElement(tA,{name:A?.name??"",src:A?.avatar??"",onClick:f,className:chunk5KHU3CLL_js.i("cursor-pointer",{"w-[2.25rem] h-[2.25rem]":e==="full","w-10 h-10":e==="short"}),type:A?.type}),(m||e==="short"&&p)&&B__namespace.default.createElement("div",{className:"absolute -bottom-1 -right-1 rounded-full p-0.5 flex items-center justify-center cursor-pointer",onClick:()=>u(true)},B__namespace.default.createElement(GZ,{className:"text-[#050910]"}))),e==="full"&&B__namespace.default.createElement("div",{onClick:()=>p&&u(true),role:"button",tabIndex:0,className:chunk5KHU3CLL_js.i("flex flex-col min-w-0 text-left",{"cursor-pointer":p})},B__namespace.default.createElement("div",{className:"flex items-center gap-1"},B__namespace.default.createElement("span",{className:"font-medium text-[#050910] md:font-bold text-body-md md:text-[1rem] truncate"},fe(A?.name??"")),p&&B__namespace.default.createElement(Vn,null)),B__namespace.default.createElement("span",{className:"font-medium text-[#687588] text-body-md truncate"},et(A?.headline??A?.sector??"",20)))),B__namespace.default.createElement(cy,{isProfileSwitcherOpened:a,onCloseProfileSwitcherModal:()=>u(false),onPickAProfile:v,selectedProfileId:A?.id}))}function KZ({selectedProfile:A,currentType:e,onProfileChange:t,onToggleSwitcher:r,renderScheduleInfo:n,renderMobileHeader:o}){let{isMobile:a}=Br(),{locale:s}=P(),[i,l]=B.useState("all"),[c,d]=B.useState(false),m=[{id:"all",label:fA(s,"post-trigger-actions-select-all"),value:"all"},{id:"connections",label:fA(s,"post-trigger-actions-select-connections"),value:"connections"},{id:"communities",label:fA(s,"post-trigger-actions-select-communities"),value:"communities"}],p=f=>{l(f),d(false);},u=B__namespace.default.createElement("div",{className:"flex flex-col gap-1"},m.map(f=>B__namespace.default.createElement("button",{key:f.id,onClick:()=>p(f.id),className:chunk5KHU3CLL_js.i("flex items-center justify-between w-full p-4 rounded-xl text-left transition-colors",i===f.id?"bg-blue-50 text-primary":"active:bg-gray-100")},B__namespace.default.createElement("span",{className:"font-medium"},f.label),i===f.id&&B__namespace.default.createElement(lucideReact.Check,{className:"w-5 h-5"}))));return a?B__namespace.default.createElement("div",{className:"w-full flex flex-col gap-2"},o,B__namespace.default.createElement("div",{className:"w-full flex md:mt-6 items-center justify-between p-2 bg-white"},B__namespace.default.createElement("div",{className:"flex gap-2 flex-col"},B__namespace.default.createElement(ep,{mode:"full",onToggleSwitcher:r,profile:{avatar:A?.avatar??"",headline:A?.headline??"",id:A?.id??"",name:A?.name??"",sector:A?.sector??"",slug:A?.slug??"",type:e},onPickAProfile:t}),n),B__namespace.default.createElement("div",{onClick:()=>d(true),className:"relative"},B__namespace.default.createElement("div",{className:"pointer-events-none"},B__namespace.default.createElement(nl,{className:"w-fit text-body-sm",options:m,value:i,reset:false,onChange:()=>{}})))),B__namespace.default.createElement(Da,{isOpen:c,onClose:()=>d(false)},u)):B__namespace.default.createElement("div",{className:"w-full flex md:mt-6 items-center justify-between"},B__namespace.default.createElement("div",{className:"flex gap-2 flex-col"},B__namespace.default.createElement(ep,{mode:"full",onToggleSwitcher:r,profile:{avatar:A?.avatar??"",headline:A?.headline??"",id:A?.id??"",name:A?.name??"",sector:A?.sector??"",slug:A?.slug??"",type:e},onPickAProfile:t}),n),B__namespace.default.createElement("div",null,B__namespace.default.createElement(nl,{className:"w-[140px]",options:m,value:i,reset:false,onChange:f=>{l(f?f.id:"");}})))}var B7=zustand.create(A=>({filter:"all",setFilter:e=>A({filter:e})}));var QZ=h9.gql`
3660
3660
  mutation UpdatePost($updatePostInput: UpdatePostInput!) {
3661
3661
  updatePost(updatePostInput: $updatePostInput) {
@@ -3717,7 +3717,7 @@ mutation CreateParticipant($input: CreateParticipantInput!) {
3717
3717
  success
3718
3718
  }
3719
3719
  }
3720
- `;async function iR(A,e,t){try{return (await h9__default.default(A??"",sR,{id:t.id},{"x-access-token":e})).deletePost}catch(r){throw r}}function lR(){let{successToast:A,errorToast:e}=qA(),{feedApi:t,user:r,queryClient:n,locale:o}=P(),{mutate:a,isPending:s}=sA({mutationFn:({id:i})=>iR(t??"",r?.accessToken??"",{id:i}),onMutate:async({id:i})=>{await n?.cancelQueries({queryKey:["scheduled-posts-by-entity",r?.id]}),n?.setQueryData(["scheduled-posts-by-entity",r?.id],l=>l&&{...l,pages:l?.pages?.flatMap(c=>({...c,scheduledPosts:{...c.scheduledPosts,data:c?.scheduledPosts?.data?.filter(d=>d.id!==i)}}))});},onSuccess:()=>{A({title:fA(o,"delete-post-toast-title"),message:fA(o,"delete-post-toast-message")});},onError:()=>{e({title:fA(o,"delete-post-toast-error-title"),message:fA(o,"delete-post-toast-error-message")});}});return {deleteAPost:a,isDeletingAPost:s}}function cR({onPublishNow:A,onChangeSchedule:e,onEdit:t,onDelete:r,isLoading:n=false}){let{isMobile:o}=Br(),{locale:a}=P(),[s,i]=B.useState(false),l=[{label:fA(a,"publish-now"),icon:B__namespace.default.createElement(lucideReact.Send,{size:18}),onClick:()=>{A(),i(false);},variant:"default"},{label:fA(a,"change-schedule"),icon:B__namespace.default.createElement(lucideReact.CalendarClock,{size:18}),onClick:()=>{e(),i(false);},variant:"default"},{label:fA(a,"edit-post"),icon:B__namespace.default.createElement(wc,null),onClick:()=>{t(),i(false);},variant:"default"},{label:fA(a,"delete-post"),icon:B__namespace.default.createElement(J3,null),onClick:()=>{r(),i(false);},variant:"danger"}],c=()=>B__namespace.default.createElement("div",{className:"flex flex-col w-full bg-white"},l.map((m,p)=>B__namespace.default.createElement("button",{key:p,onClick:m.onClick,disabled:n,className:chunk5KHU3CLL_js.i("flex items-center justify-start gap-3 px-4 py-4 md:py-3 text-body-sm font-medium transition-colors w-full outline-none text-left",m.variant==="danger"?"text-red-500 hover:bg-red-50 active:bg-red-100":"text-gray-700 hover:bg-gray-50 active:bg-gray-100",p!==l.length-1&&"border-b border-gray-100")},n?B__namespace.default.createElement("span",{className:"flex items-center justify-center min-w-[20px]"},B__namespace.default.createElement("svg",{className:"animate-spin h-4 w-4 text-gray-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},B__namespace.default.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),B__namespace.default.createElement("path",{className:"opacity-75",fill:"currentColor",d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014\r
3720
+ `;async function iR(A,e,t){try{return (await h9__default.default(A??"",sR,{id:t.id},{"x-access-token":e})).deletePost}catch(r){throw r}}function lR(){let{successToast:A,errorToast:e}=qA(),{feedApi:t,user:r,queryClient:n,locale:o}=P(),{mutate:a,isPending:s}=sA({mutationFn:({id:i})=>iR(t??"",r?.accessToken??"",{id:i}),onMutate:async({id:i})=>{await n?.cancelQueries({queryKey:["scheduled-posts-by-entity",r?.id]}),n?.setQueryData(["scheduled-posts-by-entity",r?.id],l=>l&&{...l,pages:l?.pages?.flatMap(c=>({...c,scheduledPosts:{...c.scheduledPosts,data:c?.scheduledPosts?.data?.filter(d=>d.id!==i)}}))});},onSuccess:()=>{A({title:fA(o,"delete-post-toast-title"),message:fA(o,"delete-post-toast-message")});},onError:()=>{e({title:fA(o,"delete-post-toast-error-title"),message:fA(o,"delete-post-toast-error-message")});}});return {deleteAPost:a,isDeletingAPost:s}}function cR({onPublishNow:A,onChangeSchedule:e,onEdit:t,onDelete:r,isLoading:n=false}){let{isMobile:o}=Br(),{locale:a}=P(),[s,i]=B.useState(false),l=[{label:fA(a,"publish-now"),icon:B__namespace.default.createElement(lucideReact.Send,{size:18}),onClick:()=>{A(),i(false);},variant:"default"},{label:fA(a,"change-schedule"),icon:B__namespace.default.createElement(lucideReact.CalendarClock,{size:18}),onClick:()=>{e(),i(false);},variant:"default"},{label:fA(a,"edit-post"),icon:B__namespace.default.createElement(wc,null),onClick:()=>{t(),i(false);},variant:"default"},{label:fA(a,"delete-post"),icon:B__namespace.default.createElement(J3,null),onClick:()=>{r(),i(false);},variant:"danger"}],c=()=>B__namespace.default.createElement("div",{className:"flex flex-col w-full bg-white"},l.map((m,p)=>B__namespace.default.createElement("button",{key:p,onClick:m.onClick,disabled:n,className:chunk5KHU3CLL_js.i("flex items-center justify-start gap-3 px-4 py-4 md:py-3 text-body-sm font-medium transition-colors w-full outline-none text-left",m.variant==="danger"?"text-red-500 hover:bg-red-50 active:bg-red-100":"text-gray-700 hover:bg-gray-50 active:bg-gray-100",p!==l.length-1&&"border-b border-gray-100")},n?B__namespace.default.createElement("span",{className:"flex items-center justify-center min-w-[20px]"},B__namespace.default.createElement("svg",{className:"animate-spin h-4 w-4 text-gray-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},B__namespace.default.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),B__namespace.default.createElement("path",{className:"opacity-75",fill:"currentColor",d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014
3721
3721
  12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`}))):B__namespace.default.createElement(B__namespace.default.Fragment,null,B__namespace.default.createElement("span",{className:chunk5KHU3CLL_js.i("flex items-center justify-center min-w-[20px]",m.variant==="danger"?"text-red-500":"text-gray-400")},m.icon),B__namespace.default.createElement("span",{className:"truncate"},m.label))))),d=B__namespace.default.createElement("button",{onClick:()=>o&&i(true),className:"text-gray-400 hover:bg-gray-100 p-1.5 rounded-full transition-colors outline-none focus:ring-2 focus:ring-primary/20"},B__namespace.default.createElement(lucideReact.MoreHorizontal,{size:20}));return o?B__namespace.default.createElement(B__namespace.default.Fragment,null,d,B__namespace.default.createElement(Wt,{isOpen:s,onClose:()=>i(false),className:"h-72",side:"bottom"},B__namespace.default.createElement("div",{className:"pb-8 pt-2"},B__namespace.default.createElement(c,null)))):B__namespace.default.createElement(ml__namespace.Root,{open:s,onOpenChange:i},B__namespace.default.createElement(ml__namespace.Trigger,{asChild:true},d),B__namespace.default.createElement(ml__namespace.Portal,null,B__namespace.default.createElement(ml__namespace.Content,{align:"end",sideOffset:8,className:"z-[9999] w-60 bg-white rounded-xl shadow-2xl border border-gray-100 overflow-hidden animate-in fade-in zoom-in-95 duration-200"},B__namespace.default.createElement(c,null))))}var y5A=()=>B__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},B__namespace.createElement("g",{id:"freepik--Floor--inject-62"},B__namespace.createElement("ellipse",{id:"freepik--floor--inject-62",cx:"251.12",cy:"333.69",fill:"#f5f5f5",rx:"238.53",ry:"140.13"})),B__namespace.createElement("g",{id:"freepik--Shadows--inject-62",fill:"#e0e0e0"},B__namespace.createElement("path",{id:"freepik--Shadow--inject-62",d:"m35.08 343.63 112.6 65a10.25 10.25 0 0 0 9.28 0L369 286.22c2.56-1.48 2.56-3.88 0-5.36l-112.6-65a10.25 10.25 0 0 0-9.28 0l-212 122.42c-2.6 1.47-2.6 3.87-.04 5.35"}),B__namespace.createElement("ellipse",{id:"freepik--shadow--inject-62",cx:"423.78",cy:"358.9",rx:"37.52",ry:"21.66"}),B__namespace.createElement("ellipse",{id:"freepik--shadow--inject-62",cx:"319.05",cy:"373.47",rx:"55.81",ry:"32.22"})),B__namespace.createElement("g",{id:"freepik--Device--inject-62"},B__namespace.createElement("g",{id:"freepik--Mobile--inject-62"},B__namespace.createElement("g",{id:"freepik--device--inject-62"},B__namespace.createElement("path",{fill:"#263238",d:"M42.6 321.2c-1.57 1.22-1.4 3 .51 4.06L148 385.8a8.5 8.5 0 0 0 7.63 0l200.31-115.69c1.94-1.12 2.1-2.88.45-4.1a8.5 8.5 0 0 1 3.36 6.31v5A8.41 8.41 0 0 1 356 284L155.59 399.64a8.41 8.41 0 0 1-7.63 0L43.12 339.12a8.38 8.38 0 0 1-3.81-6.61v-5.05a8.53 8.53 0 0 1 3.29-6.26"}),B__namespace.createElement("path",{fill:"#455a64",d:"M43.11 325.26 148 385.8a8.5 8.5 0 0 0 7.63 0l200.31-115.69c2.1-1.21 2.11-3.19 0-4.4L251.1 205.18a8.47 8.47 0 0 0-7.63 0L43.11 320.86c-2.11 1.22-2.11 3.19 0 4.4m184.24-104.43c1.8-1 3.68-.44 5.48.61l95.33 55c1.8 1 1.81 2.73 0 3.77l-156 90.07a7.28 7.28 0 0 1-6.54 0L70.3 315.27c-1.81-1-1.81-2.73 0-3.77Z"}),B__namespace.createElement("path",{fill:"#37474f",d:"M356.39 266a8.5 8.5 0 0 1 3.36 6.31v5A8.43 8.43 0 0 1 356 284L155.59 399.64a7.9 7.9 0 0 1-3.82.92V386.7a7.9 7.9 0 0 0 3.82-.91l200.35-115.68c1.94-1.11 2.06-2.88.45-4.11"}),B__namespace.createElement("path",{d:"M293.46 241.39c-1.41-.82-1.41-2.14 0-2.95a5.64 5.64 0 0 1 5.12 0c1.41.81 1.41 2.13 0 2.95a5.7 5.7 0 0 1-5.12 0"}),B__namespace.createElement("path",{fill:"#e6e6e6",d:"M105.44 354a12.8 12.8 0 0 1-6.27-1.5c-1.77-1-2.74-2.41-2.74-3.9s1-2.89 2.74-3.91a13.85 13.85 0 0 1 12.54 0c1.77 1 2.74 2.41 2.74 3.91s-1 2.88-2.74 3.9a12.8 12.8 0 0 1-6.27 1.5m0-9.82a11.9 11.9 0 0 0-5.77 1.37c-1.45.84-2.24 1.92-2.24 3.05s.79 2.2 2.24 3a12.78 12.78 0 0 0 11.54 0c1.44-.84 2.24-1.92 2.24-3s-.8-2.21-2.24-3.05a11.9 11.9 0 0 0-5.77-1.35Z"}),B__namespace.createElement("path",{d:"m296 251.18-19.74-11.39c-1.17-.68-1.23-1.75-.13-2.39a4.56 4.56 0 0 1 4.13.08L300 248.87c1.18.68 1.23 1.75.13 2.39a4.56 4.56 0 0 1-4.13-.08"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M227.35 220.83c1.8-1 3.68-.44 5.48.61l95.33 55c1.8 1 1.81 2.73 0 3.77l-156 90.07a7.28 7.28 0 0 1-6.54 0L70.3 315.27c-1.81-1-1.81-2.73 0-3.77Z"}),B__namespace.createElement("path",{fill:"#fff",d:"M227.35 220.83c1.8-1 3.68-.44 5.48.61l95.33 55c1.8 1 1.81 2.73 0 3.77l-156 90.07a7.28 7.28 0 0 1-6.54 0L70.3 315.27c-1.81-1-1.81-2.73 0-3.77Z",opacity:"0.8"})))),B__namespace.createElement("g",{id:"freepik--Plants--inject-62"},B__namespace.createElement("g",{id:"freepik--plants--inject-62"},B__namespace.createElement("path",{fill:"#0E9EDD",d:"m97.73 303.26 6.63-3.79s3.18-17.52.8-32.58c-3.34-21.17-17.76-28.47-23-26.37s-6.46 8.38 3 20.61c5.57 7.22 12.75 22.48 12.57 42.13"}),B__namespace.createElement("path",{d:"m97.73 303.26 6.63-3.79s3.18-17.52.8-32.58c-3.34-21.17-17.76-28.47-23-26.37s-6.46 8.38 3 20.61c5.57 7.22 12.75 22.48 12.57 42.13",opacity:"0.3"}),B__namespace.createElement("path",{fill:"#fff",d:"M100.13 294.85h-.06a.49.49 0 0 1-.41-.54c2.74-19.82-5.23-41.54-14.19-50.29a.47.47 0 0 1 .66-.68c9.12 8.92 17.25 31 14.47 51.1a.47.47 0 0 1-.47.41"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M79.34 313.88c-1 .6-3.21-.71-4-1.26A10 10 0 0 1 72 308.8a9.33 9.33 0 0 1-.83-5.63 22 22 0 0 1 .71-3l.84-2.9a7.4 7.4 0 0 0 .42-2.93c-.25-2-2-3.38-3.62-4.58-1.77-1.32-3.62-3.07-3.61-5.46a8.46 8.46 0 0 1 2.11-5c1.14-1.45 2.5-2.73 3.53-4.25a5.88 5.88 0 0 0 1.21-3.72 6.2 6.2 0 0 0-.81-2.32 32 32 0 0 1-2.54-4.66c-.58-1.67-.5-3.75.8-4.94a5.5 5.5 0 0 1 4.12-1 9.5 9.5 0 0 1 3.82 1.35c3.8 2.11 6 6.6 10 8.23a40 40 0 0 0 4.85 1.16 6 6 0 0 1 4 2.75c1.47 3-1.27 6.59-.23 9.73.92 2.77 3.62 3.83 5.13 6.33a6 6 0 0 1 .71 3.64 17.5 17.5 0 0 1-1.53 6.13 44.4 44.4 0 0 1-3.37 5.53c-.04.06-18.21 10.53-18.37 10.62"}),B__namespace.createElement("path",{d:"M79.34 313.88c-1 .6-3.21-.71-4-1.26A10 10 0 0 1 72 308.8a9.33 9.33 0 0 1-.83-5.63 22 22 0 0 1 .71-3l.84-2.9a7.4 7.4 0 0 0 .42-2.93c-.25-2-2-3.38-3.62-4.58-1.77-1.32-3.62-3.07-3.61-5.46a8.46 8.46 0 0 1 2.11-5c1.14-1.45 2.5-2.73 3.53-4.25a5.88 5.88 0 0 0 1.21-3.72 6.2 6.2 0 0 0-.81-2.32 32 32 0 0 1-2.54-4.66c-.58-1.67-.5-3.75.8-4.94a5.5 5.5 0 0 1 4.12-1 9.5 9.5 0 0 1 3.82 1.35c3.8 2.11 6 6.6 10 8.23a40 40 0 0 0 4.85 1.16 6 6 0 0 1 4 2.75c1.47 3-1.27 6.59-.23 9.73.92 2.77 3.62 3.83 5.13 6.33a6 6 0 0 1 .71 3.64 17.5 17.5 0 0 1-1.53 6.13 44.4 44.4 0 0 1-3.37 5.53c-.04.06-18.21 10.53-18.37 10.62",opacity:"0.15"}),B__namespace.createElement("path",{fill:"#fff",d:"M90.1 308.15a.47.47 0 0 1-.46-.49c.78-18.76-8.06-39.48-14.49-45.5a.46.46 0 0 1 0-.66.47.47 0 0 1 .66 0c6.56 6.14 15.58 27.2 14.79 46.23a.47.47 0 0 1-.5.42"}),B__namespace.createElement("path",{fill:"#fff",d:"M87.29 286a.3.3 0 0 1-.14 0 63.3 63.3 0 0 0-13.62-2.19.48.48 0 0 1 0-.95 65 65 0 0 1 13.86 2.24.47.47 0 0 1-.14.92Z"}))),B__namespace.createElement("g",{id:"freepik--Mailbox--inject-62"},B__namespace.createElement("g",{id:"freepik--mailbox--inject-62"},B__namespace.createElement("path",{fill:"#0E9EDD",d:"m160.58 132.9-12.23-7.06c-.55-.31-.94-.39-1.16-.27l-1.49.87c-.26.14-.25.59.08 1.27l3 6.16-2.22 2a1.73 1.73 0 0 0 .33 2.94l12.22 7.06 1.5-.86Z"}),B__namespace.createElement("path",{fill:"#fff",d:"m160.58 132.9-12.23-7.06c-.55-.31-.94-.39-1.16-.27l-1.49.87c-.26.14-.25.59.08 1.27l3 6.16-2.22 2a1.73 1.73 0 0 0 .33 2.94l12.22 7.06 1.5-.86Z",opacity:"0.5"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M146.86 126.71c-1.2-.7-1.68-.25-1.08 1l3 6.16-2.22 2a1.73 1.73 0 0 0 .33 2.94l12.22 7.06v-12.11Z"}),B__namespace.createElement("path",{fill:"#e0e0e0",d:"M160.52 171.81a1.45 1.45 0 0 1-1.44-1.44v-40.62a1.44 1.44 0 0 1 2.88 0v40.62a1.45 1.45 0 0 1-1.44 1.44"}),B__namespace.createElement("path",{fill:"#263238",d:"M102.65 314.67v-2.54h.62a10 10 0 0 1 4.11-4c6.32-3.65 16.56-3.65 22.88 0a10 10 0 0 1 4.11 4h.63v2.46c0 2.43-1.52 4.86-4.73 6.72-6.32 3.64-16.56 3.64-22.88 0-3.18-1.83-4.76-4.24-4.74-6.64"}),B__namespace.createElement("ellipse",{cx:"118.82",cy:"312.13",fill:"#455a64",rx:"16.18",ry:"9.34"}),B__namespace.createElement("path",{fill:"#37474f",d:"M123 186.44V311a2.07 2.07 0 0 1-1.22 1.7 6.5 6.5 0 0 1-5.89 0 2.07 2.07 0 0 1-1.22-1.7V186.44Z"}),B__namespace.createElement("path",{fill:"#263238",d:"M114.66 196.95v8.17l8.33 4.8v-8.15z"}),B__namespace.createElement("path",{fill:"#37474f",d:"m150.11 181.7 15.4 8.9a1.1 1.1 0 0 1-.3.31l-26.94 15.55c-.23.13-.41 0-.41-.24v-19.41a30.3 30.3 0 0 1 2.25-10.88Z"}),B__namespace.createElement("path",{fill:"#263238",d:"M165.63 169v21.72l-25.51-14.73a2 2 0 0 1 .08-.22c2.74-6.83 7.35-12.63 12.35-15.5a11.65 11.65 0 0 1 5.77-1.79c4.51-.05 7.31 3.98 7.31 10.52M193.34 214.92V213h-.18v.27a8.7 8.7 0 0 0-.51-1.57 14.65 14.65 0 0 0-6.44-6.54L168 194.61a3 3 0 0 0-2.75 0l-27.89 16.09a3.9 3.9 0 0 1-.89-1v2a1 1 0 0 0 .57.8l18.23 10.5a34.86 34.86 0 0 0 17.44 4.12 30.3 30.3 0 0 0 14.51-3.53c4.1-2.36 6.12-5.48 6.12-8.67"}),B__namespace.createElement("path",{fill:"#455a64",d:"M192.65 211.68a14.65 14.65 0 0 0-6.44-6.54L168 194.61a3 3 0 0 0-2.75 0l-27.89 16.09 17.91 10.35a34.86 34.86 0 0 0 17.44 4.12 30.3 30.3 0 0 0 14.51-3.53c3.68-2.12 5.69-4.85 6.06-7.7a8.3 8.3 0 0 0-.63-2.26"}),B__namespace.createElement("path",{fill:"#37474f",d:"M193.28 213.94a8.3 8.3 0 0 0-.63-2.26 14.65 14.65 0 0 0-6.44-6.54L168 194.61a3 3 0 0 0-2.75 0l-27.89 16.09-.32-.18a.83.83 0 0 1 0-1.58l28.19-16.28a3 3 0 0 1 2.75 0l18.23 10.52c3.28 1.9 5.42 4.18 6.44 6.55a8.5 8.5 0 0 1 .65 2.4 7.8 7.8 0 0 1-.02 1.81"}),B__namespace.createElement("path",{fill:"#455a64",d:"m137.65 208.66 28.19-16.28-.62-1.47-26.94 15.56z"}),B__namespace.createElement("g",{id:"freepik--Letter--inject-62"},B__namespace.createElement("path",{fill:"#0E9EDD",d:"M163.15 167.66a1.5 1.5 0 0 0-.67-1.17l-34.33-19.81a1.44 1.44 0 0 0-1.34 0l-.76.43a1.5 1.5 0 0 0-.67 1.16v26.32a1.5 1.5 0 0 0 .67 1.16l34.33 19.81a1.44 1.44 0 0 0 1.34 0l.76-.43a1.51 1.51 0 0 0 .67-1.16Z"}),B__namespace.createElement("path",{d:"m163 167-1.9 1.1-35.47-20.48a1.4 1.4 0 0 1 .47-.5l.76-.43a1.44 1.44 0 0 1 1.34 0l34.32 19.81a1.44 1.44 0 0 1 .48.5",opacity:"0.35"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M160.89 195.71"}),B__namespace.createElement("path",{d:"m161.05 168.09-.35.21a.58.58 0 0 1 .35.57v26.31a.46.46 0 0 1-.21.44.44.44 0 0 1-.32 0l-.14-.06-34.33-19.82a1.5 1.5 0 0 1-.67-1.16v-26.3a1.4 1.4 0 0 1 .2-.67Z",opacity:"0.2"}),B__namespace.createElement("path",{d:"m161.05 168.09-15.9 5.91a2.6 2.6 0 0 1-3.07-1l-2.55-3.91-14.08-21.57L139 169.26l-13.64 5.34a1.5 1.5 0 0 0 .21.67l13.47-6 3 4.75a2.58 2.58 0 0 0 3.23 1l2.11-.93 13.47 21.49a.46.46 0 0 0 .21-.44v-.44l-13.62-20.6Z",opacity:"0.2"})),B__namespace.createElement("g",{id:"freepik--letter--inject-62"},B__namespace.createElement("path",{fill:"#0E9EDD",d:"M155 172.31a1.47 1.47 0 0 0-.67-1.16L120 151.33a1.53 1.53 0 0 0-1.35 0l-.75.44a1.47 1.47 0 0 0-.67 1.16v26.31a1.47 1.47 0 0 0 .67 1.16l34.32 19.82a1.5 1.5 0 0 0 1.34 0l.76-.44a1.47 1.47 0 0 0 .67-1.16Z"}),B__namespace.createElement("path",{d:"m154.83 171.65-1.91 1.1-35.47-20.48a1.44 1.44 0 0 1 .48-.5l.76-.44a1.5 1.5 0 0 1 1.34 0l34.32 19.82a1.36 1.36 0 0 1 .48.5",opacity:"0.35"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M152.77 200.37"}),B__namespace.createElement("path",{d:"m152.93 172.75-.35.21a.58.58 0 0 1 .35.57v26.31a.46.46 0 0 1-.21.44.44.44 0 0 1-.32 0l-.14-.06-34.33-19.82a1.5 1.5 0 0 1-.67-1.16v-26.3a1.4 1.4 0 0 1 .2-.67Z",opacity:"0.2"}),B__namespace.createElement("path",{d:"M152.92 172.75 137 178.69a2.59 2.59 0 0 1-3.07-1l-2.55-3.91-14.05-21.58 13.57 21.71-13.64 5.34a1.3 1.3 0 0 0 .21.67l13.47-5.92 3 4.74a2.59 2.59 0 0 0 3.24 1l2.11-.94 13.47 21.5a.49.49 0 0 0 .2-.45v-.43l-13.6-20.64Z",opacity:"0.2"})),B__namespace.createElement("g",{id:"freepik--letter--inject-62"},B__namespace.createElement("path",{fill:"#0E9EDD",d:"M146.9 177a1.47 1.47 0 0 0-.67-1.16L111.9 156a1.47 1.47 0 0 0-1.34 0l-.76.44a1.47 1.47 0 0 0-.67 1.16v26.3a1.49 1.49 0 0 0 .67 1.16l34.33 19.82a1.5 1.5 0 0 0 1.34 0l.76-.44a1.49 1.49 0 0 0 .67-1.16Z"}),B__namespace.createElement("path",{d:"m146.7 176.31-1.9 1.1-35.47-20.48a1.34 1.34 0 0 1 .47-.5l.76-.44a1.44 1.44 0 0 1 1.34 0l34.33 19.82a1.34 1.34 0 0 1 .47.5",opacity:"0.35"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M144.64 205"}),B__namespace.createElement("path",{d:"m144.8 177.4-.35.21a.58.58 0 0 1 .35.57v26.31a.46.46 0 0 1-.21.44.44.44 0 0 1-.32 0l-.14-.06-34.33-19.81a1.5 1.5 0 0 1-.67-1.16v-26.31a1.4 1.4 0 0 1 .2-.67Z",opacity:"0.2"}),B__namespace.createElement("path",{d:"m144.8 177.41-15.9 5.93a2.56 2.56 0 0 1-3.06-1l-2.56-3.92-14.08-21.57 13.57 21.72-13.64 5.34a1.54 1.54 0 0 0 .21.67l13.47-6 3 4.75a2.58 2.58 0 0 0 3.23 1l2.11-.93 13.47 21.49a.46.46 0 0 0 .21-.44v-.44l-13.61-20.64Z",opacity:"0.2"})),B__namespace.createElement("path",{fill:"#455a64",d:"M162.06 157.73c-2.73-1.43-6.35-1.18-10.31 1.11-4.45 2.56-8.46 7.19-11.27 12.51a39 39 0 0 0-1.76 3.78 31.9 31.9 0 0 0-2.45 11.68V209a2.9 2.9 0 0 1-1.37-.33l-48.83-28.25A3.07 3.07 0 0 1 84.7 178v-21c0-10.52 6.93-23 15.47-28 4-2.34 7.73-2.53 10.49-1Z"}),B__namespace.createElement("path",{fill:"#37474f",d:"M138.72 175.13a31.9 31.9 0 0 0-2.45 11.68V209a2.7 2.7 0 0 1-.5-.05v-22.13c0-16.32 12.55-26.69 16-28-4.45 2.56-8.46 7.19-11.27 12.51a39 39 0 0 0-1.78 3.8"}),B__namespace.createElement("path",{fill:"#455a64",d:"M138.28 206.46c-.23.14-.42 0-.42-.23v-19.42a30.3 30.3 0 0 1 2.26-10.87 2 2 0 0 1 .08-.22 36 36 0 0 1 1.88-4c2.74-5.06 6.48-9.22 10.47-11.51a11.65 11.65 0 0 1 5.77-1.79 6.4 6.4 0 0 1 3 .73c2.69 1.44 4.27 4.92 4.27 9.79v21.24a.9.9 0 0 1-.41.72l.62 1.47.14-.09a2.5 2.5 0 0 0 .57-.55 3 3 0 0 0 .66-1.74V169c0-5.63-2-9.55-5.15-11.21-2.74-1.44-6.35-1.19-10.32 1.1-4.44 2.56-8.45 7.19-11.27 12.51a39 39 0 0 0-1.75 3.78 31.9 31.9 0 0 0-2.45 11.68V209h.24a2.75 2.75 0 0 0 1.13-.32Z"}))),B__namespace.createElement("g",{id:"freepik--trash-can--inject-62"},B__namespace.createElement("g",{id:"freepik--trash-can--inject-62"},B__namespace.createElement("path",{fill:"#37474f",d:"M458.17 294.35h-68.83l6 60.78c.37 3.89 3.13 7.72 8.28 10.69 11.11 6.42 29.11 6.42 40.22 0 5.15-3 7.9-6.8 8.28-10.69Z"}),B__namespace.createElement("ellipse",{cx:"423.76",cy:"293.24",fill:"#455a64",rx:"34.47",ry:"19.9"}),B__namespace.createElement("path",{fill:"#37474f",d:"M423.76 310.3c-8.72 0-16.87-1.93-23-5.44-5.59-3.23-8.67-7.36-8.67-11.62s3.08-8.39 8.67-11.62c6.09-3.51 14.24-5.45 23-5.45s16.87 1.94 22.95 5.45c5.6 3.23 8.68 7.36 8.68 11.62s-3.08 8.39-8.68 11.62c-6.08 3.51-14.23 5.44-22.95 5.44"}),B__namespace.createElement("path",{d:"M447.42 297.27c-1.72-1.29-4.78-.12-6-1.92-.38-.57-.45-1.34-1-1.78-1.6-1.32-4 2.26-5.7 1-.62-.45-.78-1.41-1.47-1.72-.51-.22-1.09 0-1.64 0a3.3 3.3 0 0 1-2.58-2.22 11.6 11.6 0 0 0-1.59-3.21 3.54 3.54 0 0 0-2.29-1.13c-2.16-.19-3.93 1.57-5.38 3.18-.23.26-.47.52-.7.79a5.2 5.2 0 0 1-1.49 1.28 1.33 1.33 0 0 1-1 .14 1.43 1.43 0 0 1-.79-.81c-.61-1.32-.47-3.35-1.88-3.72-.38-.1-.83-.05-1.13-.31s-.29-.65-.5-.94a1.55 1.55 0 0 0-1.19-.5c-2.9-.22-5.46 1.73-7.71 3.57-1.21-.8-1.34-2.57-.88-4 1.16-3.46 4.81-5.37 8.23-6.65 1.6-.6 3.23-1.13 4.87-1.61a42 42 0 0 0-14.89 4.85c-5.59 3.23-8.67 7.36-8.67 11.62s3.08 8.39 8.67 11.62c6.09 3.51 14.24 5.44 23 5.44s16.87-1.93 22.95-5.44l.36-.22c.34-.71.65-1.43.92-2.17.69-1.7.97-4.01-.52-5.14",opacity:"0.1"}),B__namespace.createElement("path",{fill:"#263238",d:"M407.56 361.4a31 31 0 0 1-4.38-2.08c-.52-.3-1-.6-1.48-.92a5.2 5.2 0 0 1-1.61-3.51L396.68 314c-.12-1.37.5-1.91 1.44-1.28q.83.56 1.74 1.08a36 36 0 0 0 5.44 2.55 4.07 4.07 0 0 1 2.49 3.31l2 40.05a1.56 1.56 0 0 1-2.23 1.69M429.06 321.77l-.68 39.76a2.74 2.74 0 0 1-2.54 2.67c-1.38.06-2.78.06-4.17 0a2.74 2.74 0 0 1-2.53-2.67l-.65-39.76a2.26 2.26 0 0 1 2.45-2.32 54 54 0 0 0 5.67 0 2.26 2.26 0 0 1 2.45 2.32M450.89 314l-3.45 40.92a5.3 5.3 0 0 1-1.62 3.52c-.47.31-1 .62-1.48.91a32 32 0 0 1-4.34 2.05 1.56 1.56 0 0 1-2.24-1.68l2-40.06a4.07 4.07 0 0 1 2.49-3.31 37 37 0 0 0 5.42-2.54c.61-.35 1.2-.72 1.76-1.1.94-.64 1.57-.11 1.46 1.29"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M394.11 299.06a20.5 20.5 0 0 0 6.69 5.8c6.09 3.51 14.24 5.44 23 5.44s16.87-1.93 22.95-5.44a23.8 23.8 0 0 0 4.88-3.65 6.1 6.1 0 0 0-.61-1.71 4 4 0 0 0-3.1-2.12c-.75 0-1.49.17-2.23.13a1.74 1.74 0 0 1-1.72-1.15c-.07-.33 0-.68-.05-1-.17-.87-1.27-1.24-2.15-1.08s-1.65.67-2.51.89a1.94 1.94 0 0 1-2.31-.8c-.17-.42-.11-.92-.35-1.31-.48-.81-1.9-.63-2.37-1.45-.37-.65.09-1.43.2-2.16a3.11 3.11 0 0 0-1.77-3 9 9 0 0 0-3.58-.8 5.9 5.9 0 0 0-3.9.55c-1.16.8-1.59 2.27-2.14 3.56s-1.57 2.64-3 2.63a3.22 3.22 0 0 0-1.89-2.73 13 13 0 0 0-2-.5c-2.05-.56-4-2.27-6-1.72a5.8 5.8 0 0 0-2.24 1.43l-3.34 2.93a5.4 5.4 0 0 0-1.82 2.34 5 5 0 0 1-.36 1.2c-.63 1-1.94.6-2.91.62a5.43 5.43 0 0 0-3.7 1.12 6.15 6.15 0 0 0-1.67 1.98"}),B__namespace.createElement("path",{d:"M446.71 304.86a23.8 23.8 0 0 0 4.88-3.65 6 6 0 0 0-.17-.61 9.89 9.89 0 0 1-8.5 2 10.4 10.4 0 0 0-3-.6 2.15 2.15 0 0 0-2.17 1.81.8.8 0 0 1 0 .41.6.6 0 0 1-.43.24c-2.62.57-5.6-1-7.92.37a14.3 14.3 0 0 1-2.4 1.59 4.8 4.8 0 0 1-3.07-.42 1.9 1.9 0 0 1-.77-.42c-.4-.41-.39-1.06-.7-1.53a2.7 2.7 0 0 0-1.05-.77 8.2 8.2 0 0 0-4.49-1.24 5.5 5.5 0 0 0-4.17 3.55c-3.69-1.29-6.36-5.6-10.25-5.19-.34-1.2 1.09-2.11 2.29-2.47s2.69-.92 2.74-2.17c0-.52-.24-1-.18-1.54.09-.72.81-1.36.59-2.06a3.1 3.1 0 0 0-.59-.82 2.14 2.14 0 0 1-.38-1.59l-2.29 2a5.4 5.4 0 0 0-1.82 2.34 5 5 0 0 1-.36 1.2c-.63 1-1.94.6-2.91.62a5.43 5.43 0 0 0-3.7 1.12 6.15 6.15 0 0 0-1.69 2 20.5 20.5 0 0 0 6.69 5.8c6.09 3.51 14.24 5.44 23 5.44s16.74-1.9 22.82-5.41",opacity:"0.1"}))),B__namespace.createElement("g",{id:"freepik--Character--inject-62"},B__namespace.createElement("g",{id:"freepik--character--inject-62"},B__namespace.createElement("g",{id:"freepik--letter--inject-62"},B__namespace.createElement("path",{fill:"#0E9EDD",d:"M396.74 226.81a1.39 1.39 0 0 0-.63-1.1L363.69 207a1.42 1.42 0 0 0-1.27 0l-.71.42a1.4 1.4 0 0 0-.64 1.09v24.85a1.4 1.4 0 0 0 .64 1.1l32.42 18.72a1.4 1.4 0 0 0 1.26 0l.72-.42a1.39 1.39 0 0 0 .63-1.09Z"}),B__namespace.createElement("path",{fill:"#fff",d:"m396.56 226.18-1.8 1-33.5-19.34a1.3 1.3 0 0 1 .45-.48l.71-.41a1.42 1.42 0 0 1 1.27 0l32.42 18.72a1.45 1.45 0 0 1 .45.51",opacity:"0.4"}),B__namespace.createElement("path",{d:"M396.74 226.81v24.85a1.39 1.39 0 0 1-.63 1.09l-.72.42-.17.08-.26.06a1.7 1.7 0 0 1-.5 0h-.12a.13.13 0 0 1-.08 0 .35.35 0 0 0 .3 0 .44.44 0 0 0 .2-.42V228a.55.55 0 0 0-.33-.54l.33-.19 1.8-1a1.4 1.4 0 0 1 .18.54",opacity:"0.2"}),B__namespace.createElement("path",{d:"m394.76 227.22-15 5.61a2.45 2.45 0 0 1-2.9-1l-2.41-3.7-13.3-20.37L374 228.32l-12.89 5a1.4 1.4 0 0 0 .2.64l12.69-5.58 2.81 4.48a2.43 2.43 0 0 0 3.05.94l2-.88 12.71 20.3a.44.44 0 0 0 .2-.42v-.41l-12.85-19.5Z",opacity:"0.2"})),B__namespace.createElement("path",{fill:"#ffa8a7",d:"m367.09 179.57-14.87-26.84s-16.53-20.64-10.06-29.2c8.82-.81 16.62.73 24 15 8.29 15.91 12.23 27.43 16.54 37.8 1.19 2.87 1.07 17 .79 27.69-.18 7 .24 14.59.24 14.59l-5.6-3.23a8.65 8.65 0 0 0-4.21-1.16h-1.4a12.84 12.84 0 0 0-3 5.13c-.89 4-3.08 5.24-4.26 4.3-.57-.46-1-2.82.33-8.42 1.08-4.6 5.27-9.1 4.72-12.62Z"}),B__namespace.createElement("path",{fill:"#37474f",d:"M342.16 123.53s5.62-1.26 9.84.16 7.18 3.07 11.69 9.79 14.51 30.18 14.51 30.18-1.21 6.46-16 8.78l-14.74-23.73Z"}),B__namespace.createElement("path",{fill:"#ffa8a7",d:"m319.11 116.05 2.97 18.73 18.58-.99-2.66-21.78z"}),B__namespace.createElement("path",{fill:"#f28f8f",d:"M306.62 93.05s-4.43 6.72-3.92 7.38 3.76 1.26 3.76 1.26Z"}),B__namespace.createElement("path",{fill:"#ffa8a7",d:"M318.92 74.47c-9 1.89-11.55 5.83-12.4 20.06-.88 14.87.64 19.55 2.59 21.55 1.32 1.35 8.65 1.6 12.35.58 4.63-1.28 15.09-5 20-12.47 5.76-8.8 7.27-20.73 1.1-25.62-8.69-6.89-20-4.87-23.64-4.1"}),B__namespace.createElement("path",{fill:"#f28f8f",d:"M319.28 117.07a37 37 0 0 0 4.72-1.19 8.37 8.37 0 0 1-4.5 2.6Z"}),B__namespace.createElement("path",{fill:"#263238",d:"M304.71 80a12.6 12.6 0 0 0 2.29 1.78 32 32 0 0 0 3.74 2.07 21.6 21.6 0 0 1 3.64 1.71c1.63 1.16 1.84 2.69 1.88 4.56v4.39c0 2.47 1.6 4.34 2.37 1 0 0 1.42-5.49 6.05-4.8s5 5.91 2.84 10c-1.35 2.49-4.95 1.84-4.95 1.84a16.2 16.2 0 0 0 4.84 12.47s3.57 1.08 10.86-.47c4.48-1 8.78-5.89 11.44-11.82 5.63-12.54 6-23.83-2-27.21-.87-5.78-5.42-8.37-10.6-9.56-7.76-1.78-15 2.82-22.69 1.11a37 37 0 0 1-3.74-1 2.1 2.1 0 0 0-1.51-.1 1.71 1.71 0 0 0-.73 1.71 4.64 4.64 0 0 0 2.26 3.64c-.16-.09-.91.11-1.11.12-.43 0-.86 0-1.29.05a24 24 0 0 1-2.52-.18 4.6 4.6 0 0 0-1.74.06 3.14 3.14 0 0 0-2 3.16 7.75 7.75 0 0 0 1.38 3.72 11 11 0 0 0 .93 1.33c.16.17.26.28.36.42"}),B__namespace.createElement("path",{fill:"#263238",d:"m347.91 77.5 5.36-3.16a3.11 3.11 0 0 0-5.36 3.16M352.91 355.79 353 357a22 22 0 0 1 .12 4.78c-.13 1.1-.45 2.59-1.47 3.19a12.9 12.9 0 0 1-3.5 1.37 12.25 12.25 0 0 1-8.11-.8c-2.1-1-3.75-2.62-6-3.26a45.3 45.3 0 0 0-7.16-1.18 16 16 0 0 1-3.16-.58 15 15 0 0 1-2.28-1 22.5 22.5 0 0 1-6.77-4.94 10.7 10.7 0 0 1-2.41-4.83c-.21-1.05-.64-4.09 1.12-4 8.62.39 17.15 2.24 25.78 2.14a9.5 9.5 0 0 1 1.68.07 7 7 0 0 1 2.89 1.35 3 3 0 0 0 2.65.65 13.2 13.2 0 0 1 4.47.06 2.11 2.11 0 0 1 1.54 1 2.4 2.4 0 0 1 .13.65c.12 1.33.26 2.74.39 4.12"}),B__namespace.createElement("path",{fill:"#ffa8a7",d:"m352 345.46-.44 6.5c-.42 2.47-8.85 4-10.59-.39l-.83-7.37Z"}),B__namespace.createElement("path",{fill:"#263238",d:"M320 371.16s1 3.38 1.56 6.33c.42 2.34 1 6.25.16 8s-4.07 2.8-9 2.65c-3.2-.1-8.23 2-11.69 3.79s-10.92 2.51-14.64 2c-4.39-.62-8.88-3.27-9.55-5.11s.32-3.7 10.77-7.88c.1 0 14.51-4.37 19.65-9.79Z"}),B__namespace.createElement("path",{fill:"#ffa8a7",d:"M320.05 367s-.08 2.86-.11 4.5-2 4-7 3.74c-3.51-.21-5.94-1.21-5.73-4.1l.09-4.17Z"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M355.43 295.56c-1.48-12.65-2.59-19.89-2.59-19.89s.25-17.61 1.29-34c1.11-17.74.86-40.08 1.3-44.5 0 0-57-12.17-57.46 8.38-.54 23.88 1 73.29 1.39 79.72.48 9 .5 18.43 2 33.08 1.51 14.47 5.9 48.65 5.9 48.65 6.47 3.69 12.76 0 12.76 0s4.95-41 4.76-51.37a143 143 0 0 0-2.16-22.52l4.49-46.35s1.76 14.33 2.24 23.36 1.71 14.55 3.94 31.35c1.94 14.59 6.85 45.36 6.85 45.36a11.52 11.52 0 0 0 12.12-.48s4.65-38.14 3.17-50.79"}),B__namespace.createElement("path",{d:"M348.82 225.19s-3.95 6.51-15.93 11.29l-3.34 11.19-.36 19.67c-.46-6.34-1.16-13.26-2.05-20.59l1.35-11.53s13.23-4.01 20.33-10.03",opacity:"0.15"}),B__namespace.createElement("path",{fill:"#455a64",d:"M357.62 135.52c-2.29-8.14-7.66-11.74-13.63-12.12-1.52-.1-4.6 0-4.6 0 .42 3.45-10.21 5.89-18.48 3.94-2.49.66-6.62 1.59-8.7 2.28-5.94 2-13.07 9.41-14 28.8 0 0-.94 41.67-.65 53.77 14.68 6.2 28.85 7 37.4 5.3 17.81-3.47 20.74-11.1 20.74-11.1s-.17-10.59-.83-27.48c3.02-23.98 3.74-39.85 2.75-43.39"}),B__namespace.createElement("g",{id:"freepik--letter--inject-62"},B__namespace.createElement("path",{fill:"#0E9EDD",d:"M233.07 124.26a.77.77 0 0 1 .45-1l36.34-14.62a2.7 2.7 0 0 1 1.68.12l1.1.46a2.43 2.43 0 0 1 1.23 1.09l8.93 23.42a.76.76 0 0 1-.45 1L246 149.35a2.7 2.7 0 0 1-1.68-.12l-1.1-.46a2.46 2.46 0 0 1-1.24-1.09Z"}),B__namespace.createElement("path",{fill:"#fff",d:"m233.09 123.69 2.77 1.15 37.54-15.11a3 3 0 0 0-.76-.48l-1.1-.46a2.62 2.62 0 0 0-1.68-.12l-36.34 14.62a.8.8 0 0 0-.43.4",opacity:"0.4"}),B__namespace.createElement("path",{d:"m233.07 124.26 8.93 23.42a2.46 2.46 0 0 0 1.24 1.09l1.1.46.26.09.36.08a4 4 0 0 0 .66 0h.24a.7.7 0 0 1-.4 0 .69.69 0 0 1-.41-.41l-8.93-23.41a.33.33 0 0 1 .24-.48l-.5-.21-2.77-1.15a.75.75 0 0 0-.02.52",opacity:"0.2"}),B__namespace.createElement("path",{d:"m235.86 124.84 21.95 6.68c1.57.48 3 .22 3.51-.63l1.87-3.25 10.34-18-9.65 18.13 18.93 6a.75.75 0 0 1 0 .57l-18.92-6.48-2.11 4c-.48.91-2.07 1.16-3.72.6l-3-1-9.6 17.94a.69.69 0 0 1-.41-.41l-.15-.39 10.1-17.22Z",opacity:"0.2"})),B__namespace.createElement("path",{fill:"#ffa8a7",d:"M294.9 143.25c-6.75 8.66-16.2 20.84-21.54 28.06-3.84-3.69-17.83-16.91-19.27-19-1.61-2.32-1.54-5.5-2.87-8.9-1.08-2.78-3.52-6.21-4.15-7.63-1.15-2.6-3.68-3.89-3.72-.09 0 3.16 1.5 6.92 1.33 7.64-.08.31-1.33-.32-2.69-1.6a12.7 12.7 0 0 1-1.62-1.88l-2.84-3.85-2-5.15s-.79.11-1.79 2.49c-2.88 6.86-2.5 14.37 3.05 20.42 3.29 3.59 8.83 8.5 14.58 15.4S267.9 188 272.5 190.65c4.14 2.38 9.19-1.38 15-7.26 8.15-8.21 20.75-22 20.75-22s9.4-15.94 3.92-31.77c-6.87.26-8.65 2.58-17.27 13.63"}),B__namespace.createElement("path",{fill:"#37474f",d:"M314.42 129s-6.63.43-10.85 2.58c-1.13.58-4.37 4.1-7.45 8.22-6 8.09-16.59 22.11-16.59 22.11s.2 13.29 13.23 17c0 0 13.05-13.39 16.56-17.53 4.57-5.38 9.03-21.38 5.1-32.38"})))),dR=y5A;function mR({isOpen:A,onClose:e,onConfirm:t,isLoading:r=false}){let{locale:n}=P();return B__namespace.default.createElement(Bs,{isOpen:A,onClose:e,hideCloseButton:!r,closeOnClickOutside:false,className:"w-[28.125rem] mx-auto p-4 bg-white rounded-[0.5rem]"},B__namespace.default.createElement("div",{className:"flex flex-col items-center justify-center gap-6 w-full"},B__namespace.default.createElement("div",{className:"w-44 h-44 mx-auto"},B__namespace.default.createElement(dR,null)),B__namespace.default.createElement("h2",{className:"text-body-md md:text-body-lg font-bold text-dark-1 text-center"},fA(n,"delete-scheduled-post-title")),B__namespace.default.createElement("p",{className:"text-body-sm md:text-body-md text-center"},fA(n,"delete-scheduled-post-content")),B__namespace.default.createElement("div",{className:"flex w-full items-center justify-between gap-4"},B__namespace.default.createElement(D,{label:fA(n,"button-cancel-delete"),disabled:r,onClick:e,className:"flex-1 w-fit p-3 border border-primary bg-white font-bold text-primary text-body-sm md:text-body-md"}),B__namespace.default.createElement(D,{label:fA(n,"button-confirm-delete"),disabled:r,isLoading:r,onClick:t,className:"bg-primary flex-1 w-full p-3 font-bold text-white text-body-sm md:text-body-md"}))))}var T5A=()=>B__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},B__namespace.createElement("g",{id:"freepik--background-complete--inject-77"},B__namespace.createElement("path",{fill:"#ebebeb",d:"M0 382.4h500v.25H0zM359 391.92h90.9v.25H359zM306.33 389.21h24.89v.25h-24.89zM349.52 401.21h38.59v.25h-38.59zM52.46 399.53H75.1v.25H52.46zM84 399.53h26.89v.25H84zM178.31 395.31h46.84v.25h-46.84zM237 337.8H43.91a5.71 5.71 0 0 1-5.7-5.71V60.66a5.71 5.71 0 0 1 5.7-5.66H237a5.71 5.71 0 0 1 5.71 5.71v271.38a5.71 5.71 0 0 1-5.71 5.71M43.91 55.2a5.46 5.46 0 0 0-5.45 5.46v271.43a5.46 5.46 0 0 0 5.45 5.46H237a5.47 5.47 0 0 0 5.46-5.46V60.66A5.47 5.47 0 0 0 237 55.2ZM453.31 337.8h-193.1a5.72 5.72 0 0 1-5.71-5.71V60.66a5.72 5.72 0 0 1 5.71-5.66h193.1a5.71 5.71 0 0 1 5.69 5.66v271.43a5.71 5.71 0 0 1-5.69 5.71M260.21 55.2a5.47 5.47 0 0 0-5.46 5.46v271.43a5.47 5.47 0 0 0 5.46 5.46h193.1a5.47 5.47 0 0 0 5.46-5.46V60.66a5.47 5.47 0 0 0-5.46-5.46Z"}),B__namespace.createElement("path",{fill:"#e6e6e6",d:"M421.42 196.37H316.49V79.79h104.93z"}),B__namespace.createElement("path",{fill:"#f5f5f5",d:"M416.58 196.37H294.04V79.79h122.54z"}),B__namespace.createElement("path",{fill:"#fff",d:"M404.54 87.29v101.6h-98.46V87.29z"}),B__namespace.createElement("path",{fill:"#f5f5f5",d:"M355.95 85.99v104.2h-1.28V85.99z"}),B__namespace.createElement("path",{fill:"#e6e6e6",d:"M215.16 356.79H81.12V86.39h134.04z"}),B__namespace.createElement("path",{fill:"#f0f0f0",d:"M212.68 356.79H71.8V86.39h140.88z"}),B__namespace.createElement("path",{fill:"#fff",d:"M200.87 98.18v246.8H83.6V98.18z"}),B__namespace.createElement("path",{fill:"#fafafa",d:"m127.84 344.98 23.13-246.79h-26.7l-23.14 246.79zM148.53 344.98l23.14-246.79h-13.36l-23.13 246.79z"}),B__namespace.createElement("path",{fill:"#e6e6e6",d:"M290.9 382.4h-25.05V276.51h25.05z"}),B__namespace.createElement("path",{fill:"#fafafa",d:"M280.43 382.4h-14.57v-14.62h29.85z"}),B__namespace.createElement("path",{fill:"#e6e6e6",d:"M439.71 382.4h-25.05V276.51h25.05z"}),B__namespace.createElement("path",{fill:"#fafafa",d:"M427.38 377.36H265.85V276.5h161.53z"}),B__namespace.createElement("path",{fill:"#fafafa",d:"M412.81 382.4h14.58v-14.62h-29.86z"}),B__namespace.createElement("path",{fill:"#f0f0f0",d:"M416.08 339.33H277.16v-25.24h138.92zM416.08 369.96H277.16v-25.24h138.92z"}),B__namespace.createElement("path",{fill:"#fafafa",d:"M389.67 316.79h-86.11a4.58 4.58 0 0 1-4.58-4.58v-.31h95.26v.31a4.58 4.58 0 0 1-4.58 4.58Z"}),B__namespace.createElement("path",{fill:"#f0f0f0",d:"M416.08 308.69H277.16v-25.24h138.92z"}),B__namespace.createElement("path",{fill:"#fafafa",d:"M389.67 286.15h-86.11a4.58 4.58 0 0 1-4.58-4.58v-.31h95.26v.31a4.58 4.58 0 0 1-4.57 4.58M389.67 347.43h-86.11a4.58 4.58 0 0 1-4.58-4.58v-.31h95.26v.31a4.58 4.58 0 0 1-4.57 4.58"}),B__namespace.createElement("path",{fill:"#f5f5f5",d:"M297.27 274.74h-4.94v-45.82h4.94z"}),B__namespace.createElement("path",{fill:"#fafafa",d:"M294.36 274.71h-1.39v-45.82h1.39z"}),B__namespace.createElement("path",{fill:"#f0f0f0",d:"M283.91 276.51h21.77a2.74 2.74 0 0 0-2.74-2.75h-16.28a2.75 2.75 0 0 0-2.75 2.75M285.34 261.44a1.43 1.43 0 0 0 1.42-1.42v-25.28a1.43 1.43 0 0 0-1.42-1.42 1.43 1.43 0 0 0-1.43 1.42V260a1.43 1.43 0 0 0 1.43 1.44"}),B__namespace.createElement("path",{fill:"#e0e0e0",d:"M272.7 241.05h44.2l-1.57-4.36a14.71 14.71 0 0 0-13.82-9.69h-13.42a14.71 14.71 0 0 0-13.82 9.69Z"}),B__namespace.createElement("path",{fill:"#f5f5f5",d:"M410.33 274.74h-4.94v-45.82h4.94z"}),B__namespace.createElement("path",{fill:"#fafafa",d:"M407.43 274.71h-1.39v-45.82h1.39z"}),B__namespace.createElement("path",{fill:"#f0f0f0",d:"M397 276.51h21.77a2.75 2.75 0 0 0-2.74-2.75h-16.31a2.75 2.75 0 0 0-2.74 2.75ZM398.4 261.44a1.43 1.43 0 0 0 1.42-1.42v-25.28a1.43 1.43 0 0 0-1.42-1.42 1.43 1.43 0 0 0-1.42 1.42V260a1.43 1.43 0 0 0 1.42 1.44"}),B__namespace.createElement("path",{fill:"#e0e0e0",d:"M385.76 241.05H430l-1.58-4.36a14.7 14.7 0 0 0-13.85-9.69h-13.41a14.71 14.71 0 0 0-13.82 9.69Z"})),B__namespace.createElement("g",{id:"freepik--Shadow--inject-77"},B__namespace.createElement("ellipse",{id:"freepik--path--inject-77",cx:"250",cy:"416.24",fill:"#f5f5f5",rx:"193.89",ry:"11.32"})),B__namespace.createElement("g",{id:"freepik--Speedometer--inject-77"},B__namespace.createElement("path",{fill:"#263238",d:"m166.53 113.94-.63-.78a166 166 0 0 1 13.7-10l.55.84a164 164 0 0 0-13.62 9.94M159.15 120.25l-.68-.74c1.34-1.21 2.72-2.42 4.09-3.59l.65.77a172 172 0 0 0-4.06 3.56"}),B__namespace.createElement("ellipse",{cx:"216.41",cy:"181.2",fill:"#263238",rx:"115.24",ry:"81.19",transform:"rotate(-41.22 216.436 181.221)"}),B__namespace.createElement("ellipse",{cx:"216.41",cy:"181.2",fill:"#fff",rx:"99.97",ry:"70.43",transform:"rotate(-41.22 216.436 181.221)"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M237.15 103.89c-43.29 3.51-87.67 41-99.13 83.66l156.77-12.69c11.46-42.7-14.35-74.47-57.64-70.97"}),B__namespace.createElement("path",{fill:"#fff",d:"m138 187.55 78.39-6.35-40.74-50.2c-17.94 15.16-31.9 35.2-37.65 56.55",opacity:"0.7"}),B__namespace.createElement("path",{fill:"#fff",d:"M237.15 103.89c-21.64 1.76-43.56 12-61.5 27.13l40.76 50.18z",opacity:"0.4"}),B__namespace.createElement("path",{fill:"#fff",d:"m237.15 103.89-20.74 77.31 70.09-59.15c-10.43-12.84-27.7-19.91-49.35-18.16",opacity:"0.1"}),B__namespace.createElement("ellipse",{cx:"216.41",cy:"181.2",fill:"#fff",rx:"40.79",ry:"28.73",transform:"rotate(-41.22 216.436 181.221)"}),B__namespace.createElement("ellipse",{cx:"216.41",cy:"181.2",fill:"#263238",rx:"23.8",ry:"16.77",transform:"rotate(-41.22 216.436 181.221)"}),B__namespace.createElement("path",{fill:"#263238",d:"M275.08 139.85a236.3 236.3 0 0 0-52.63 27.9l7.37 13.2a257.7 257.7 0 0 0 45.26-41.1"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M147 217.06a1.51 1.51 0 0 1-1.55-1.84 2.73 2.73 0 0 1 2.36-2.16l86.19-6.83a1.51 1.51 0 0 1 1.7 1.83 2.7 2.7 0 0 1-2.35 2.15l-86.12 6.84ZM221.55 225.26a1.5 1.5 0 0 1-1.55-1.84 2.7 2.7 0 0 1 2.36-2.15l28-2.23a1.51 1.51 0 0 1 1.71 1.83 2.72 2.72 0 0 1-2.36 2.16l-28 2.22ZM79.15 261.08a1.51 1.51 0 0 1-1.55-1.84 2.72 2.72 0 0 1 2.4-2.15l28-2.23a1.52 1.52 0 0 1 1.71 1.83 2.72 2.72 0 0 1-2.35 2.16l-28 2.22ZM104.09 244.71a1.5 1.5 0 0 1-1.54-1.84 2.71 2.71 0 0 1 2.35-2.15l84-6.67a1.52 1.52 0 0 1 1.71 1.83 2.73 2.73 0 0 1-2.36 2.16l-84 6.66Z"})),B__namespace.createElement("g",{id:"freepik--Character--inject-77"},B__namespace.createElement("path",{fill:"#ff8b7b",d:"m284.39 334.51 3.56 7.19 17.61-6.33-3.56-7.19zM198.77 393.64l5.35 5.99 13.6-15.45-6.59-4.58z"}),B__namespace.createElement("path",{fill:"#263238",d:"m205.34 399-3.64-9.09a.67.67 0 0 0-.75-.41l-7.11 1.5a1.22 1.22 0 0 0-.86 1.67c1.22 2.9 2.24 5 3.71 8.64.91 2.27 3.41 9.2 4.67 12.33s4.45 2.17 4.22.76c-1.07-6.29-1.1-11.38-.21-13.95a2 2 0 0 0-.03-1.45M288.76 341.24l-3.89-7.86a.71.71 0 0 0-.79-.37l-7.1 1.75a1.16 1.16 0 0 0-.77 1.67c1.45 2.81 3.64 6.82 5.41 10.38 2.06 4.17 2.34 4.3 4.76 9.18 1.46 2.95 4.85 2.3 4.51.93-1.56-6.24-2.43-7.32-1.83-13.67a3.73 3.73 0 0 0-.3-2.01"}),B__namespace.createElement("path",{fill:"#ff8b7b",d:"M358 205.24c-.37 2.6-.77 5.4-1.08 8.11s-.62 5.47-.85 8.2a116 116 0 0 0-.48 16.06c0 .65.06 1.3.14 1.91l.18 1.78a2.51 2.51 0 0 0 1.71 2.39 11 11 0 0 0 2.85.86 34 34 0 0 0 7.44.28c1.31-.09 2.65-.19 4-.35s2.72-.37 4-.56l1.94 5.71a44 44 0 0 1-4.24 1.73 43 43 0 0 1-4.35 1.36 40 40 0 0 1-4.59.93 28.4 28.4 0 0 1-4.94.32 20.1 20.1 0 0 1-5.48-.83 13.7 13.7 0 0 1-5.74-3.45 13.05 13.05 0 0 1-3.32-6.27c-.07-.31-.1-.48-.13-.68l-.1-.58-.21-1.18c-.15-.78-.25-1.55-.34-2.32a103.3 103.3 0 0 1-.38-18c.19-2.94.4-5.86.76-8.76s.71-5.75 1.27-8.76Z"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M345.19 198c-5.26 5.59-3.14 19.7-3.14 19.7l14.78 2.3s3.43-8 2.14-16.25c-1.58-10.02-8.03-11.9-13.78-5.75"}),B__namespace.createElement("path",{d:"M350 204.19c-2.44-3.14-5-4.26-6.36-4-3.27 6.41-1.61 17.47-1.61 17.47l10.47 1.7c1.2-3.25 1.35-10.26-2.5-15.17",opacity:"0.2"}),B__namespace.createElement("path",{fill:"#ff8b7b",d:"m373.94 244.79 8.57-5.62 1.9 8.7s-5.33 5.4-9.77 1.59Z"}),B__namespace.createElement("path",{fill:"#ff8b7b",d:"m387.78 237.29.99 7.52-4.36 3.06-1.91-8.7z"}),B__namespace.createElement("path",{d:"m305.55 335.38-9.07 3.26-3.56-7.2 9.07-3.26zM211.13 379.6l6.59 4.58-6.38 7.24-6.59-4.59z",opacity:"0.2"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M314.74 178.71c-6.08 31.11-22.27 59.18-24.53 65.38 5.8 2.43 27.69 11.55 39.62 16.52 22.25-33.11 25.66-57.07 26.17-62.87a2.38 2.38 0 0 0-1-2.15c-.95-.69-2.47-1.77-4.32-3-1-.64-2.07-1.31-3.22-2-.63-.37-1.28-.73-1.94-1.08a159 159 0 0 0-16.85-7c-1.08-.39-2.19-.77-3.28-1.11s-2-.61-2.95-.87c-4.26-1.14-7.7-1.82-7.7-1.82"}),B__namespace.createElement("path",{fill:"#fff",d:"m338.56 223.07 2.19.56a12.5 12.5 0 0 1-5.13 3 12.4 12.4 0 0 1-6.76.1 10 10 0 0 1-5.16-2.82 6.52 6.52 0 0 1-1.62-4.9 14.8 14.8 0 0 1 1.74-6 20.9 20.9 0 0 1 4.62-6 15 15 0 0 1 6-3.44 11.9 11.9 0 0 1 6.18-.1 7.43 7.43 0 0 1 4 2.34A6.06 6.06 0 0 1 346 210a11.5 11.5 0 0 1-1.39 5 14.46 14.46 0 0 1-4.47 5.16c-2.43 1.75-4.7 2.35-6.8 1.82a1.66 1.66 0 0 1-1.11-.67 1.54 1.54 0 0 1 0-1.17 4.8 4.8 0 0 1-3.5.67 2.71 2.71 0 0 1-2.12-2.1 5.67 5.67 0 0 1 .77-3.95 14.4 14.4 0 0 1 4-4.83q3.1-2.43 5.67-1.79a2.23 2.23 0 0 1 1.86 2.32l.94-1.27 2.71.69-6 8.25a10 10 0 0 0-.69 1 .9.9 0 0 0-.12.49.28.28 0 0 0 .21.22 2.9 2.9 0 0 0 1.63-.38 9.9 9.9 0 0 0 3-2 11.4 11.4 0 0 0 2.3-3 7 7 0 0 0 .73-5.43q-.81-2.46-4.08-3.28a9.6 9.6 0 0 0-5.4.14 12.36 12.36 0 0 0-4.85 3 18.6 18.6 0 0 0-3.58 4.79 10.6 10.6 0 0 0-1.29 4.91 5.2 5.2 0 0 0 1.5 3.82 8.65 8.65 0 0 0 4 2.1 11.4 11.4 0 0 0 4.64.26 9.84 9.84 0 0 0 4-1.7m-8.56-7.75a4.13 4.13 0 0 0-.63 2.38 1.21 1.21 0 0 0 .94 1.06 2.3 2.3 0 0 0 1.27-.06 4.6 4.6 0 0 0 1.16-.57 9.9 9.9 0 0 0 2.05-1.91 13.4 13.4 0 0 0 1.75-2.53 3.65 3.65 0 0 0 .53-2.22 1.25 1.25 0 0 0-1-1.08 2.9 2.9 0 0 0-2.05.39 7.9 7.9 0 0 0-2.3 2 14.7 14.7 0 0 0-1.72 2.54"}),B__namespace.createElement("path",{fill:"#ff8b7b",d:"M338.29 164.45c-1.19 5.86-4.27 16.24-9.57 18.27 1.72 4.16 4.16 9.15 10.51 12.06s7.06-2 6.33-5c-5.44-4-3.41-8.38-.61-12.15Z"}),B__namespace.createElement("path",{d:"m341 169.81 3.94 7.77a18.3 18.3 0 0 0-1.76 2.78c-2.17-1.3-4.29-5.16-3.53-7.68a8.8 8.8 0 0 1 1.35-2.87",opacity:"0.2"}),B__namespace.createElement("path",{fill:"#263238",d:"M354.28 164.67c6.27.46 11.82-15.18 2.67-17-6.17-1.23-6.11 2.46-6.76 6.5s.12 10.21 4.09 10.5"}),B__namespace.createElement("path",{fill:"#ff8b7b",d:"M339 156.75c-1.61 7.8-2.95 12.28-.15 17.28 4.22 7.51 14.64 6.57 18.56-.59 3.52-6.45 5.57-18.12-1.11-23.22a10.87 10.87 0 0 0-17.3 6.53"}),B__namespace.createElement("path",{fill:"#263238",d:"M337.67 162.33c6.27.46 10.47-13.84 1.32-15.67-6.17-1.23-6.69 2.38-6.59 6.24.1 4.1 1.29 9.1 5.27 9.43"}),B__namespace.createElement("path",{fill:"#263238",d:"M342.73 151.39c4.23 2.05 24.62 6.44 23.45-2.33s-12.06-12.84-12.06-12.84 6.34 6.95 1.11 5.28-6.73-2.89-13-4c0 0 6.16 5.11-1 3.67a17 17 0 0 0-12.16 1.94 12.09 12.09 0 0 1 5.28 11.27c-.49 7.71 8.38-2.99 8.38-2.99"}),B__namespace.createElement("path",{fill:"#ff8b7b",d:"M334 162.7a7 7 0 0 0 2.72 4.55c1.92 1.41 3.67-.21 3.8-2.55.11-2.11-.75-5.39-3-5.86s-3.82 1.6-3.52 3.86"}),B__namespace.createElement("path",{fill:"#263238",d:"m303.92 249.81-8.34 26.86 42.93 27c-7.41 12.36-45.06 24.66-45.06 24.66l6 12.18s52.43-4 63.06-27.18c10.23-22.26-32.7-52.72-32.7-52.72Z"}),B__namespace.createElement("path",{d:"m309.49 285.42-7.49-4.69 9.22-13.4s.26 10.74-1.73 18.09",opacity:"0.2"}),B__namespace.createElement("path",{d:"m309.49 285.42-7.49-4.69 9.22-13.4s.26 10.74-1.73 18.09",opacity:"0.2"}),B__namespace.createElement("path",{fill:"#263238",d:"M320.53 256.74s-34.62 57.58-48.91 76.26c-15.65 20.46-56.17 59-56.17 59l-12.07-8.4s35-38.58 48.19-59.93c15.05-24.32 38.64-79.6 38.64-79.6Z"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"m216.71 393.28-14.21-9.88 2.95-4.25 16.08 10.77zM299.95 342.18l-7.19-14.51 4.69-2.32 8.28 16.1z"}),B__namespace.createElement("path",{fill:"#263238",d:"M350.07 162.06c-.17.62 0 1.22.43 1.33s.88-.3 1.05-.93 0-1.22-.44-1.33-.87.31-1.04.93M357.13 164c-.17.63 0 1.22.43 1.33s.88-.3 1.05-.93 0-1.22-.43-1.33-.88.29-1.05.93"}),B__namespace.createElement("path",{fill:"#ff5652",d:"M354.8 163.68a23.3 23.3 0 0 0 1.53 6.16 3.74 3.74 0 0 1-3.14-.26Z"}),B__namespace.createElement("path",{fill:"#263238",d:"M350.11 170.54a5.38 5.38 0 0 1-3-3 .2.2 0 0 1 .13-.24.2.2 0 0 1 .24.12 5.1 5.1 0 0 0 3.5 3 .18.18 0 0 1 .14.23.19.19 0 0 1-.24.13 6 6 0 0 1-.77-.24M348.51 159.19a.44.44 0 0 1-.15-.12.37.37 0 0 1 .07-.53 3.79 3.79 0 0 1 3.4-.71.39.39 0 0 1 .23.49.38.38 0 0 1-.48.23 3 3 0 0 0-2.69.59.4.4 0 0 1-.38.05M360.83 162.38a.37.37 0 0 1-.22-.28 3 3 0 0 0-1.62-2.22.38.38 0 1 1 .29-.7 3.76 3.76 0 0 1 2.07 2.78.37.37 0 0 1-.3.44.33.33 0 0 1-.22-.02"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M205.05 402.07a9.2 9.2 0 0 1-.52-2.07.2.2 0 0 1 .09-.2.17.17 0 0 1 .2 0c.28.19 2.69 1.94 2.61 2.95a.66.66 0 0 1-.37.53 1.11 1.11 0 0 1-1.07 0 2.33 2.33 0 0 1-.94-1.21m-.05-1.67c.25 1.38.69 2.33 1.19 2.59a.72.72 0 0 0 .72-.05c.14-.06.16-.14.16-.2.03-.52-1.15-1.61-2.07-2.34"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M204.54 400a.2.2 0 0 1 .12-.26c.09 0 2.27-.8 3.32-.25a1 1 0 0 1 .52.65.65.65 0 0 1-.23.77c-.75.52-3-.25-3.68-.83a.2.2 0 0 1-.05-.08m3.57.17a.66.66 0 0 0-.31-.33 4.37 4.37 0 0 0-2.65.15c.88.51 2.47.91 2.92.6 0 0 .13-.09.07-.33ZM288.12 342.44a.18.18 0 0 1 .08-.18.2.2 0 0 1 .22 0c.33.25 3.22 2.41 3.17 3.53a.6.6 0 0 1-.31.5 1 1 0 0 1-1 .09c-1.09-.44-1.83-2.64-2.17-3.91Zm3.09 3.25c-.08-.63-1.46-1.9-2.57-2.78.53 1.72 1.18 2.87 1.79 3.12a.69.69 0 0 0 .65-.06.21.21 0 0 0 .13-.2Z"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M288.12 342.44v-.05a.17.17 0 0 1 .12-.15c.08 0 2.12-.8 3.32-.25a1.36 1.36 0 0 1 .76.8c.18.49 0 .74-.16.87-.75.53-3.16-.42-4-1.1a.17.17 0 0 1-.04-.12m3.89.67a.6.6 0 0 0-.05-.19 1 1 0 0 0-.56-.59 4.4 4.4 0 0 0-2.68.15c1 .62 2.77 1.19 3.22.87a.22.22 0 0 0 .06-.24Zm.13-.26"}),B__namespace.createElement("path",{fill:"#ff8b7b",d:"m315.05 192.32-3.16-2.11c-1.09-.71-2.2-1.4-3.31-2.09-2.23-1.37-4.49-2.67-6.77-3.92s-4.59-2.39-6.92-3.41c-1.16-.53-2.33-1-3.5-1.45l-1.75-.62-.44-.15-.22-.08s-.07 0-.16-.07a8.7 8.7 0 0 0-2.51.15 28 28 0 0 0-3.4.85 75 75 0 0 0-7.23 2.72c-4.85 2.09-9.79 4.47-14.59 6.9l-3.39-5a108 108 0 0 1 13.83-10 70 70 0 0 1 7.83-4.11 38 38 0 0 1 4.49-1.62 18 18 0 0 1 5.68-.79 13.5 13.5 0 0 1 1.88.23l.47.11.28.07.55.14 2.2.57c1.44.43 2.89.86 4.27 1.39a77 77 0 0 1 8.13 3.44c2.63 1.26 5.18 2.66 7.67 4.14 1.23.76 2.46 1.53 3.67 2.33s2.37 1.6 3.67 2.57Z"}),B__namespace.createElement("path",{fill:"#0E9EDD",d:"M327 183.83c-1.77-4.38-18.5-10.37-18.5-10.37l-5.41 14.12s5.85 3.87 10.7 6.77c9.21 5.55 16.67-1.9 13.21-10.52"}),B__namespace.createElement("path",{fill:"#ff8b7b",d:"m262.7 186.93-3.39 7.35-5.17-6.7s3.9-6.56 6.68-4ZM252.16 196.59l-2.62-5.88 4.6-3.13 5.17 6.7z"}))),pR=T5A;function uR({isOpen:A,onClose:e,post:t}){let{errorToast:r,successToast:n}=qA(),{locale:o}=P(),{isUpdating:a,updatePost:s}=tp(),i=()=>{s({updatePostInput:{id:t?.id??"",scheduledAt:null}},{onSuccess:()=>{n({title:fA(o,"publish-now-toast-title"),message:fA(o,"publish-now-toast-message")}),e();},onError:()=>{r({title:fA(o,"publish-now-toast-error-title"),message:fA(o,"publish-now-toast-error-message")});}});};return B__namespace.default.createElement(Bs,{isOpen:A,onClose:e,hideCloseButton:!a,closeOnClickOutside:false,className:"w-[28.125rem] bg-white rounded-[0.5rem] mx-auto p-4"},B__namespace.default.createElement("div",{className:"flex flex-col items-center justify-center gap-6 w-full"},B__namespace.default.createElement("div",{className:"w-44 h-44 mx-auto"},B__namespace.default.createElement(pR,null)),B__namespace.default.createElement("h2",{className:"text-body-md md:text-body-lg font-bold text-dark-1 text-center"},fA(o,"publish-now-scheduled-post-title")),B__namespace.default.createElement("p",{className:"text-body-sm md:text-body-md text-center"},fA(o,"publish-now-scheduled-post-content")),B__namespace.default.createElement("div",{className:"flex w-full items-center justify-between gap-4"},B__namespace.default.createElement(D,{disabled:a,label:fA(o,"button-cancel-publish-now"),onClick:e,className:"flex-1 w-fit p-3 border border-primary bg-white font-bold text-primary text-body-sm md:text-body-md"}),B__namespace.default.createElement(D,{label:fA(o,"button-confirm-publish-now"),disabled:a,onClick:i,isLoading:a,className:"bg-primary flex-1 w-full p-3 font-bold text-white text-body-sm md:text-body-md"}))))}var vR="UTC",my=B__namespace.default.memo(({post:A,onScheduleAgain:e})=>{let{locale:t}=P(),{deleteAPost:r,isDeletingAPost:n}=lR(),[o,a]=B.useState(false),[s,i]=B.useState(false),{formattedDate:l,formattedTime:c}=B.useMemo(()=>{let x=new Date(A?.scheduledAt??"");if(!!Number.isNaN(x.getTime()))return {formattedDate:"",formattedTime:""};let b=new Intl.DateTimeFormat(t??"pt-BR",{weekday:"short",day:"2-digit",month:"short",timeZone:vR}).format(x),h=new Intl.DateTimeFormat(t??"pt-BR",{hour:"2-digit",minute:"2-digit",hour12:false,timeZone:vR}).format(x);return {formattedDate:b,formattedTime:h}},[A?.scheduledAt,t]),d=B.useMemo(()=>({hasImages:(A?.images?.length??0)>0,hasVideos:(A?.videos?.length??0)>0,hasAttachment:!!A?.attachment?.url,imagesCount:A?.images?.length??0}),[A?.images,A?.videos,A?.attachment]),m=B.useCallback(()=>{let x=new CustomEvent("edit-post-on-schedule",{detail:{...A,mentions:A?.content?cf(A.content):[]}});window.dispatchEvent(x);},[A]),p=B.useCallback(()=>{r({id:A?.id},{onSuccess:()=>a(false)});},[A?.id,r]),u=B.useCallback(()=>a(x=>!x),[]),f=B.useCallback(()=>i(x=>!x),[]),v=B.useMemo(()=>A?.content?lW(A.content):null,[A?.content]);return B__namespace.default.createElement(B__namespace.default.Fragment,null,B__namespace.default.createElement("div",{className:"flex flex-col gap-4 p-4 border rounded-md bg-white"},B__namespace.default.createElement("div",{className:"flex items-center justify-between"},B__namespace.default.createElement("div",{className:"flex items-center gap-2 text-gray-500 text-sm"},B__namespace.default.createElement("span",{className:"text-body-sm md:text-body-md text-text-secondary"},fA(t,"scheduled-date",{formattedDate:l,formattedTime:c}))),B__namespace.default.createElement(cR,{isLoading:n,onChangeSchedule:()=>e(A?.scheduledAt??"",A?.id),onPublishNow:f,onDelete:u,onEdit:m})),B__namespace.default.createElement("div",{className:"flex gap-4 items-start"},d.hasImages?B__namespace.default.createElement("div",{className:"relative w-20 h-20 flex-shrink-0"},B__namespace.default.createElement("img",{src:A.images?.[0]?.url??"",alt:"Post preview",className:"w-full h-full object-cover rounded-md border border-gray-200",loading:"lazy"}),d.imagesCount>1&&B__namespace.default.createElement("span",{className:"absolute bottom-1 right-1 bg-black/60 text-white text-[10px] px-1 rounded"},"+",d.imagesCount-1)):d.hasVideos?B__namespace.default.createElement("div",{className:"relative w-20 h-20 flex-shrink-0 bg-gray-900 rounded-md overflow-hidden border border-gray-200"},B__namespace.default.createElement("div",{className:"absolute inset-0 flex items-center justify-center bg-black/20"},B__namespace.default.createElement(lucideReact.Play,{size:24,className:"text-white fill-white"}))):d.hasAttachment?B__namespace.default.createElement("div",{className:"w-20 h-20 flex-shrink-0 flex flex-col items-center justify-center bg-gray-50 border border-gray-200 rounded-md"},B__namespace.default.createElement(lucideReact.FileText,{className:"text-gray-400",size:24}),B__namespace.default.createElement("span",{className:"text-[10px] text-gray-500 mt-1 uppercase font-bold truncate px-1 w-full text-center"},A.attachment?.type||"DOC")):null,B__namespace.default.createElement("div",{className:"flex flex-col flex-1 min-w-0"},B__namespace.default.createElement("p",{className:"text-[#1A1A1A] text-sm md:text-base font-normal line-clamp-3 leading-relaxed"},v??B__namespace.default.createElement("span",{className:"text-body-sm md:text-body-md text-gray-400"},fA(t,"no-caption-label"))),d.hasAttachment&&B__namespace.default.createElement("div",{className:"flex items-center gap-1 mt-2 text-xs text-gray-400"},B__namespace.default.createElement(lucideReact.Paperclip,{size:12}),B__namespace.default.createElement("span",null,fA(t,"total-pages-label",{totalPages:1})," \u2022 ",A.attachment?.type??fA(t,"file-label")))))),B__namespace.default.createElement(uR,{onClose:()=>i(false),post:A,isOpen:s}),B__namespace.default.createElement(mR,{isOpen:o,isLoading:n,onClose:()=>a(false),onConfirm:p}))});my.displayName="ScheduledPostItem";function py(){return B__namespace.default.createElement("div",{className:"flex flex-col gap-4 py-6 max-h-full border-b border-gray-100 last:border-0 animate-pulse"},B__namespace.default.createElement("div",{className:"flex items-center justify-between"},B__namespace.default.createElement("div",{className:"flex items-center gap-2"},B__namespace.default.createElement("div",{className:"w-4 h-4 bg-gray-200 rounded-full"}),B__namespace.default.createElement("div",{className:"w-48 h-3 bg-gray-100 rounded"})),B__namespace.default.createElement("div",{className:"w-5 h-5 bg-gray-100 rounded-full"})),B__namespace.default.createElement("div",{className:"flex gap-4 items-start"},B__namespace.default.createElement("div",{className:"w-20 h-20 bg-gray-200 rounded-md flex-shrink-0"}),B__namespace.default.createElement("div",{className:"flex flex-col flex-1 gap-2 min-w-0"},B__namespace.default.createElement("div",{className:"w-full h-4 bg-gray-100 rounded"}),B__namespace.default.createElement("div",{className:"w-5/6 h-4 bg-gray-100 rounded"}),B__namespace.default.createElement("div",{className:"w-2/3 h-4 bg-gray-100 rounded"}),B__namespace.default.createElement("div",{className:"w-24 h-3 bg-gray-50 rounded mt-1"}))))}function xR({onScheduleAgain:A,entityId:e}){let{locale:t}=P(),r=B.useRef(null),[n,o]=B.useState(null),{fetchNextPage:a,hasNextPage:s,isFetchingNextPageOfScheduledPosts:i,isGettingScheduledPosts:l,scheduledPosts:c}=nR({enabled:true,entityId:e});B.useEffect(()=>{r.current&&o(r.current);},[]);let[d]=cX__default.default({loading:i,hasNextPage:!!s,onLoadMore:a,disabled:l||!s,rootMargin:"0px 0px 400px 0px",...n&&{scrollContainer:n}}),m=B.useMemo(()=>c?.map(f=>B__namespace.default.createElement(my,{onScheduleAgain:(v,x)=>A(v,x),key:f?.id,post:f})),[c]),p=l&&(!c||c?.length===0),u=!l&&(!c||c?.length===0);return B__namespace.default.createElement("div",{className:"w-full h-full flex flex-col gap-6"},B__namespace.default.createElement("div",{className:"flex flex-col gap-4"},B__namespace.default.createElement("button",{onClick:()=>A(""),className:"flex items-center gap-2 text-text-secondary hover:text-dark transition-colors w-fit group"},B__namespace.default.createElement(eR,null)),B__namespace.default.createElement("div",{className:"flex gap-x-3 items-center"},B__namespace.default.createElement(K7,null),B__namespace.default.createElement("div",{className:"flex flex-col"},B__namespace.default.createElement("p",{className:"text-body-md font-bold text-dark md:text-body-lg"},fA(t,"scheduled-posts-title")),B__namespace.default.createElement("p",{className:"text-body-sm font-medium text-text-secondary md:text-body-md"},fA(t,"scheduled-posts-description"))))),B__namespace.default.createElement("div",{ref:r,className:"w-full h-full max-h-[40rem] overflow-y-auto overscroll-contain px-2 custom-scrollbar"},p?B__namespace.default.createElement("div",{className:"flex flex-col"},Array.from({length:4}).map((f,v)=>B__namespace.default.createElement(py,{key:v}))):u?B__namespace.default.createElement(aR,{onSchedule:()=>A("")}):B__namespace.default.createElement(B__namespace.default.Fragment,null,B__namespace.default.createElement("div",{className:"flex flex-col gap-3"},m),(s||i)&&B__namespace.default.createElement("div",{ref:d,className:"w-full"},i&&B__namespace.default.createElement(py,null)))))}function gR({onBack:A,onSchedule:e,scheduledAt:t="",entityId:r}){let[n,o]=B.useState("define"),[a,s]=B.useState(""),[i,l]=B.useState(t),{isUpdating:c,updatePost:d}=tp(),m="UTC";return B__namespace.default.createElement("div",{className:"w-full flex flex-col mt-4"},n==="define"?B__namespace.default.createElement(AR,{onSchedule:u=>{if(!u)return;let f=dateFnsTz.formatInTimeZone(new Date(u),m,"yyyy-MM-dd'T'HH:mm:ssXXX");if(a?.length){d({updatePostInput:{id:a,scheduledAt:f}},{onSuccess:()=>{o("list"),l(""),s("");}});return}e(f);},onListScheduledPosts:()=>o("list"),onBack:A,isUpdatingScheduledDate:c,externalScheduledAt:i,scheduledAt:t}):B__namespace.default.createElement(xR,{entityId:r,onScheduleAgain:(u,f)=>{l(u),s(f??""),o("define");}}))}function xy(A){let{isMobile:e}=Br(),{locale:t}=P(),r=B.useRef(null),[n,o]=B.useState(""),a=usehooks.useDebounce(n,300),s=A.isPostTriggerModalOpened,{state:i,actions:l,isCreatingThePost:c}=vW({initialFiles:A.initialFiles,fileInputRef:r,onClose:A.onClose,isOpened:A.isPostTriggerModalOpened,entity:A?.entity,optimisticUpdateType:A?.optimisticUpdateType,editingPost:A?.editingPost,resetPostTrigger:A?.resetPostTrigger,activeAction:A?.activeAction}),{getRootProps:d,getInputProps:m,isDragActive:p}=reactDropzone.useDropzone({onDrop:E=>{if(E.length>0)if(i.contentView==="reels-trigger"){let N=E.filter(z=>z.type.startsWith("video/"));N.length>0&&(l.addFiles(N),l.setContentView("normal"),A.onClearActiveAction?.());}else l.addFiles(E);},noClick:true,noKeyboard:true,disabled:i.contentView==="schedule-a-post"||c,accept:{"image/*":[],"video/*":[],"application/pdf":[".pdf"]}}),{mentionList:u,isGettingMentionList:f}=Z8({filter:a?{name:a}:void 0,enabled:s}),v=B.useMemo(()=>(u??[]).map(E=>({id:E.uid??E.id,name:E.name,type:E.type?.toUpperCase()??"USER",avatar:E.avatar??E.profileImage})),[u]);zZ({onFiles:l.addFiles,enabled:A.isPostTriggerModalOpened}),B.useEffect(()=>{A?.activeAction==="clips"&&l.setContentView("reels-trigger");},[A?.activeAction]);let x=B.useMemo(()=>{if(!i.scheduledAt)return "";let E=dateFns.parseISO(i.scheduledAt);return dateFnsTz.formatInTimeZone(E,"UTC","dd/MM/yy, HH:mm")},[i.scheduledAt]),g=E=>{if(E==="articles"||E==="create-a-job")return l.handleRequestClose(),A.onClickAction(E);l.handleClickActions(E);},b=B.useMemo(()=>(i.isEditingMode||i.hasChanges)&&!c,[i.isEditingMode,i.hasChanges,c]);if(!A.isPostTriggerModalOpened)return null;let h=["schedule-a-post","edit-media","view-gallery"].includes(i.contentView),y=()=>B__namespace.default.createElement(KZ,{selectedProfile:A.selectedProfile,currentType:A.currentType,onProfileChange:A.onProfileChange,onToggleSwitcher:A.onToggleSwitcher,renderMobileHeader:B__namespace.default.createElement("div",{className:"w-full flex items-center bg-white gap-x-4 justify-between"},B__namespace.default.createElement("button",{type:"button",onClick:l.handleRequestClose,"aria-label":"Close"},B__namespace.default.createElement(lucideReact.XIcon,null)),B__namespace.default.createElement("p",{className:"font-bold text-body-md text-[#111827]"},fA(t,i.isEditingMode?"edit-post":"create-post-label")),B__namespace.default.createElement(n4,{type:"schedule",disabled:c,onSubmit:()=>l.setContentView("schedule-a-post")})),renderScheduleInfo:i.scheduledAt?B__namespace.default.createElement("button",{onClick:()=>l.setContentView("schedule-a-post"),className:"text-primary text-body-sm font-medium"},B__namespace.default.createElement("span",{className:"text-text-secondary"},fA(t,"scheduled-title-content",{date:x})," "),fA(t,"edit-label")):null}),T=()=>i.contentView==="schedule-a-post"?B__namespace.default.createElement(gR,{entityId:A.entity?.id??"",onSchedule:E=>{l.setScheduledAt(E),l.setContentView("normal");},scheduledAt:i.scheduledAt,onBack:()=>{l.setScheduledAt(""),l.setContentView("normal");}}):i.contentView==="reels-trigger"?B__namespace.default.createElement(TZ,{onVideoSelect:E=>{E?.type?.startsWith("video/")&&(l.addFiles([E]),l.setContentView("normal")),A.onClearActiveAction?.();}}):B__namespace.default.createElement(RZ,{...i,...l,contentView:i.contentView,onUpdateFile:l.updateMediaFile,onDeleteFile:l.removeFile,activeAction:A?.activeAction,onAcceptMention:l.acceptMention,onRemoveMention:l.removeMention,mentionCandidates:v,isLoadingMentions:f,onMentionQueryChange:o}),M=e||i.contentView==="reels-trigger"?null:B__namespace.default.createElement(iy,{handleCloseMainModal:l.handleRequestClose,canSubmit:b,onSubmit:l.handleSubmit,onSchedule:()=>l.setContentView("schedule-a-post"),onActionClick:g,isEditingMode:i.isEditingMode});return B__namespace.default.createElement(B__namespace.default.Fragment,null,B__namespace.default.createElement(ev,{isOpen:s,onClose:l.handleRequestClose,className:chunk5KHU3CLL_js.i("p-[1.5rem] flex flex-col gap-2 transition-all relative",{"!w-full md:!w-[48.5rem] md:max-h-[48.5rem] overscroll-y-none":i.contentView!=="schedule-a-post","!w-[36rem] max-h-full":i.contentView==="schedule-a-post","bg-white":!e}),header:h?void 0:y(),showCloseButton:!e,closeOnClickOutside:false,footer:!e||i.contentView==="schedule-a-post"?null:B__namespace.default.createElement(iy,{handleCloseMainModal:l.handleRequestClose,canSubmit:b,onSubmit:l.handleSubmit,hideScheduleOption:true,onSchedule:()=>l.setContentView("schedule-a-post"),onActionClick:g,isEditingMode:i.isEditingMode})},B__namespace.default.createElement("div",{...d(),className:"flex-1 flex flex-col outline-none relative"},p&&B__namespace.default.createElement("div",{className:"absolute inset-0 z-50 bg-primary/10 border-2 border-dashed border-primary rounded-xl flex flex-col items-center justify-center backdrop-blur-sm transition-all"}),B__namespace.default.createElement("input",{...m()}),B__namespace.default.createElement("div",{className:"flex-1 min-h-0 overflow-y-auto w-full flex flex-col"}," ",T()),!h&&B__namespace.default.createElement("div",{className:"mt-auto pt-4"},M))),B__namespace.default.createElement(MZ,{isOpen:i.showDiscardConfirm,onClose:()=>l.setShowDiscardConfirm(false),onDiscard:l.handleConfirmDiscard,onSave:l.handleSaveDraft}),B__namespace.default.createElement("input",{type:"file",multiple:true,ref:r,className:"hidden",accept:i.mediaFiles.length?i.mediaType==="image"?"image/*":i.mediaType==="video"?"video/*":".pdf":"image/*,video/*,application/pdf",onChange:E=>{E.target.files&&(l.addFiles(Array.from(E.target.files)),E.target.value="");}}))}function bR({isOpen:A,onClose:e,onConfirm:t}){let{locale:r}=P(),n=(o,a={})=>fA(r,o,a);return B__namespace.default.createElement(Bs,{isOpen:A,onClose:e,closeOnClickOutside:false,className:"md:p-5 text-center w-[33rem] p-6 bg-white rounded-[0.5rem]"},B__namespace.default.createElement("div",{className:"flex flex-col items-center"},B__namespace.default.createElement("div",{className:"bg-red-50 p-3 rounded-full mb-4"},B__namespace.default.createElement(lucideReact.AlertCircle,{className:"w-6 h-6 text-red-500"})),B__namespace.default.createElement("p",{className:"font-bold text-lg text-[#1A1C1E]"},n("progress-discard-title")),B__namespace.default.createElement("p",{className:"text-sm text-[#687588] mt-2 mb-6"},n("progress-discard-content")),B__namespace.default.createElement("div",{className:"flex flex-col gap-2 w-full sm:flex-row"},B__namespace.default.createElement(D,{label:n("progress-keep-uploading"),onClick:e,className:"flex-1 border w-full p-3 text-body-sm md:text-body-md border-[#E4EBF1] order-2 sm:order-1"}),B__namespace.default.createElement(D,{label:n("progress-confirm-cancel"),onClick:t,className:"flex-1 bg-red-500 w-full text-body-sm md:text-body-md p-3 text-white border-none order-1 sm:order-2"}))))}function TR({onRetry:A,onCancel:e}){let{locale:t}=P(),r=(T,M={})=>fA(t,T,M),{status:n,progress:o,filesCount:a,isOpen:s,reset:i,errorType:l,error:c,isUpdating:d}=Xn(),[m,p]=B.useState(false),[u,f]=B.useState(false);if(B.useEffect(()=>{if(n==="success"){f(true);let T=setTimeout(()=>{i(),f(false);},3e3);return ()=>clearTimeout(T)}},[n,i]),B.useEffect(()=>{if(n==="cancelled"){let T=setTimeout(()=>{i();},3e3);return ()=>clearTimeout(T)}},[n,i]),!s)return null;let v=()=>{["uploading","publishing","updating"].includes(n)?p(true):i();},x=n==="error"&&l!=="cancelled",g=n==="error",b=()=>n==="uploading"?r(d?"progress-uploading-update":"progress-uploading",{count:a,s:a>1?"s":""}):r(n==="publishing"?"progress-publishing":n==="updating"?"progress-updating":n==="success"?d?"progress-update-success":"progress-create-success":n==="cancelled"||n==="error"&&l==="cancelled"?"progress-cancelled":"progress-error"),h=()=>n==="success"?B__namespace.default.createElement("div",{className:"bg-green-100 p-2 rounded-full animate-in fade-in zoom-in duration-300"},B__namespace.default.createElement(lucideReact.CheckCircle2,{className:"text-green-500 w-5 h-5"})):n==="cancelled"?B__namespace.default.createElement("div",{className:"bg-yellow-100 p-2 rounded-full"},B__namespace.default.createElement(lucideReact.AlertCircle,{className:"text-yellow-500 w-5 h-5"})):n==="error"?B__namespace.default.createElement("div",{className:"bg-red-100 p-2 rounded-full"},B__namespace.default.createElement(lucideReact.AlertCircle,{className:"text-red-500 w-5 h-5"})):B__namespace.default.createElement("div",{className:"bg-blue-50 p-2 rounded-full"},B__namespace.default.createElement(lucideReact.Loader2,{className:"animate-spin text-primary w-5 h-5"})),y=()=>n==="error"?"bg-red-500":n==="success"?"bg-green-500":"bg-primary";return B__namespace.default.createElement(B__namespace.default.Fragment,null,B__namespace.default.createElement("div",{className:chunk5KHU3CLL_js.i("w-full flex flex-col gap-3 p-4 bg-white border border-[#E4EBF1] rounded-xl mb-4 transition-all duration-300","md:min-w-[42rem] md:p-6 md:rounded-2xl md:gap-4",n==="success"&&"border-green-200 bg-green-50/30",n==="cancelled"&&"border-yellow-200 bg-yellow-50/30",n==="error"&&"border-red-200 bg-red-50/30",u&&"animate-in fade-in slide-in-from-top-2")},B__namespace.default.createElement("div",{className:"flex items-start justify-between gap-3 md:items-center"},B__namespace.default.createElement("div",{className:"flex items-start gap-3 flex-1 min-w-0 md:items-center md:gap-4"},B__namespace.default.createElement("div",{className:"flex-shrink-0 mt-0.5 md:mt-0"},h()),B__namespace.default.createElement("div",{className:"flex flex-col flex-1 min-w-0"},B__namespace.default.createElement("span",{className:"text-sm font-semibold text-[#1A1C1E] leading-tight md:text-base"},b()),["uploading","publishing","updating"].includes(n)&&B__namespace.default.createElement("div",{className:"w-full bg-[#E4EBF1] h-1.5 rounded-full mt-2 overflow-hidden"},B__namespace.default.createElement("div",{className:chunk5KHU3CLL_js.i("h-full transition-all duration-500 ease-out",y()),style:{width:`${o}%`}})),n==="error"&&c&&B__namespace.default.createElement("p",{className:"text-xs text-red-500 mt-2"},c))),n!=="success"&&B__namespace.default.createElement("button",{onClick:v,className:"p-1.5 hover:bg-gray-100 rounded-full transition-colors -mr-1","aria-label":"Close"},B__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5 text-[#687588]"}))),(n==="error"||n==="cancelled")&&B__namespace.default.createElement("div",{className:"flex flex-col gap-2 pt-3 border-t border-[#E4EBF1] sm:flex-row"},x&&B__namespace.default.createElement(D,{label:r("progress-retry"),onClick:A,className:"h-9 w-full bg-primary text-white text-xs px-6 sm:w-auto",leftElement:B__namespace.default.createElement(lucideReact.RefreshCw,{className:"w-3 h-3"})}),g&&B__namespace.default.createElement(D,{label:r("progress-cancel"),onClick:()=>p(true),className:"h-9 w-full border border-[#E4EBF1] text-[#687588] text-xs px-6 sm:w-auto"}))),B__namespace.default.createElement(bR,{isOpen:m,onClose:()=>p(false),onConfirm:()=>{e(),p(false);}}))}var MR=h9.gql`
3722
3722
  mutation CreateAPost($createPostInput: CreatePostInput!) {
3723
3723
  createPost(createPostInput: $createPostInput) {