@mirantes-micro/foundation-design-system 1.2.332 → 1.2.333
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.d.ts +1 -1
- package/dist/index.js +18 -18
- package/package.json +209 -209
package/dist/index.d.ts
CHANGED
|
@@ -2044,7 +2044,7 @@ declare function PostTriggerModal(props: any): React__default.JSX.Element | null
|
|
|
2044
2044
|
|
|
2045
2045
|
declare function PostBackgroundManager(): React__default.JSX.Element;
|
|
2046
2046
|
|
|
2047
|
-
declare function PostTrigger({ community, type: initialType, restrictProfileSelection, optimisticUpdateType, onClickAction, typeRender }: {
|
|
2047
|
+
declare function PostTrigger({ community, type: initialType, restrictProfileSelection, optimisticUpdateType, onClickAction, typeRender, }: {
|
|
2048
2048
|
typeRender?: {
|
|
2049
2049
|
render?: "input" | "button";
|
|
2050
2050
|
buttonClassName?: string;
|
package/dist/index.js
CHANGED
|
@@ -3293,23 +3293,23 @@ mutation CreateParticipant($input: CreateParticipantInput!) {
|
|
|
3293
3293
|
`},U__namespace.default.createElement("div",{className:"flex flex-col"},t?U__namespace.default.createElement("div",{className:"flex items-center gap-2 px-4 py-3 text-sm text-gray-400"},U__namespace.default.createElement("span",{className:"w-4 h-4 border-2 border-gray-200 border-t-primary rounded-full animate-spin"}),iA(o,"searching-label")):U__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 U__namespace.default.createElement("li",{key:s?.id,onMouseDown:d=>{d.preventDefault(),n(s);},className:`
|
|
3294
3294
|
flex items-center gap-3 px-3 py-2 cursor-pointer transition-colors
|
|
3295
3295
|
${i===e?"bg-[#F0F6FF]":"hover:bg-gray-50"}
|
|
3296
|
-
`},U__namespace.default.createElement($,{name:s?.name??"",src:s?.avatar,type:l,size:"sm"}),U__namespace.default.createElement("div",{className:"flex-1 min-w-0"},U__namespace.default.createElement("p",{className:"text-sm capitalize font-medium text-gray-900 truncate"},UA(s?.name)),U__namespace.default.createElement("p",{className:"text-xs",style:{color:c?.color}},c?.label)))}))))}var CdA=A=>{let e=/(https?:\/\/[^\s]+)/g;return A.match(e)||[]},gL=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(U__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},kh=U__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]=U.useState(null),u=U.useRef(false),{editorRef:p,isInternalChange:f,isMentionOpen:v,selectedIndex:x,cursorPos:b,handleInput:h,handleKeyDown:P,insertMention:g,closeMention:z}=bL({rawText:e,setRawText:t,mentionTokens:r,onAcceptMention:n,onRemoveMention:o,mentionCandidates:a,isLoadingMentions:s,onMentionQueryChange:i}),M=U.useMemo(()=>CdA(e),[e]);U.useEffect(()=>{m(M.length>0?M[0]:null);},[M]);let w=U.useCallback(T=>{T.preventDefault();let Z=T.clipboardData.getData("text/plain");if(Z){let V=window.getSelection();if(V&&V.rangeCount>0){let W=V.getRangeAt(0),O=document.createTextNode(Z);W.deleteContents(),W.insertNode(O),W.collapse(false);let k=new InputEvent("input",{bubbles:true});p.current?.dispatchEvent(k);}else t(e+Z);}},[e,t,p]);U.useEffect(()=>{if(c&&p.current){p.current.focus();let T=document.createRange(),Z=window.getSelection();Z&&(T.selectNodeContents(p.current),T.collapse(false),Z.removeAllRanges(),Z.addRange(T));}},[c,p]),U.useEffect(()=>{let T=p.current;T&&(f.current||u.current||requestAnimationFrame(()=>{if(!T)return;u.current=true;let Z=window.getSelection(),V=-1;if(Z&&Z.rangeCount>0&&Z.isCollapsed){let L=Z.getRangeAt(0),X=L.cloneRange();X.selectNodeContents(T),X.setEnd(L.startContainer,L.startOffset),V=X.toString().length;}let W=/@([^[\]]+)\[uid:([^\]]+)\]\[([^\]]+)\]/g;T.innerHTML="";let O=0,k=null;for(W.lastIndex=0;(k=W.exec(e))!==null;){let[L,X,S,I]=k,N=k.index;if(N>O){let J=e.slice(O,N);gL(J).forEach(R=>{if(typeof R=="string")T.appendChild(document.createTextNode(R));else if(U__namespace.default.isValidElement(R)){let Y=document.createElement("div"),AA=R?.props?.children;if(typeof AA=="string"){Y.innerHTML=AA;let eA=Y.firstChild;eA&&T.appendChild(eA);}}});}let q=document.createElement("span");q.className="mention",q.contentEditable="false",q.setAttribute("data-id",S),q.setAttribute("data-type",I),q.setAttribute("data-original-name",X),q.textContent=X,T.appendChild(document.createTextNode("\u200B")),T.appendChild(q),T.appendChild(document.createTextNode("\xA0")),O=N+L.length;}if(O<e.length){let L=e.slice(O);gL(L).forEach(S=>{if(typeof S=="string")T.appendChild(document.createTextNode(S));else if(U__namespace.default.isValidElement(S)){let I=document.createElement("div"),N=S?.props?.children;if(typeof N=="string"){I.innerHTML=N;let q=I.firstChild;q&&T.appendChild(q);}}});}V>=0&&(()=>{let X=document.createRange(),S=window.getSelection();if(S&&T.childNodes.length>0){let I=0,N=null,q=0,J=document.createTreeWalker(T,NodeFilter.SHOW_TEXT,null),C=null;for(;(C=J.nextNode())!==null;){let R=C.textContent?.length||0;if(I+R>=V){N=C,q=V-I;break}I+=R;}N?(X.setStart(N,Math.min(q,N.textContent?.length||0)),X.collapse(true),S.removeAllRanges(),S.addRange(X)):T.lastChild&&(X.selectNodeContents(T),X.collapse(false),S.removeAllRanges(),S.addRange(X));}})(),u.current=false;}));},[e,p,f]);let j=U.useCallback(()=>{if(M.length>0){let T=M[0],Z=e.replace(T,"");t(Z);}},[M,e,t]);return U__namespace.default.createElement("div",{className:"relative flex-1 flex flex-col w-full"},U__namespace.default.createElement("div",{ref:p,contentEditable:true,suppressContentEditableWarning:true,onInput:h,onKeyDown:P,onPaste:w,className
|
|
3297
|
-
max-h-[280px] overflow-y-auto
|
|
3298
|
-
min-h-[80px] w-full outline-none text-[0.95rem] text-gray-800
|
|
3299
|
-
leading-relaxed whitespace-pre-wrap break-words
|
|
3300
|
-
empty:before:content-[attr(data-placeholder)]
|
|
3301
|
-
empty:before:text-gray-400 empty:before:pointer-events-none
|
|
3302
|
-
|
|
3303
|
-
[&_.mention]:text-primary
|
|
3304
|
-
[&_.mention]:font-semibold
|
|
3305
|
-
[&_.mention]:px-1.5
|
|
3306
|
-
[&_.mention]:py-0.5
|
|
3307
|
-
[&_.mention]:rounded-md
|
|
3308
|
-
[&_.mention]:inline-block
|
|
3309
|
-
[&_.mention]:select-all
|
|
3310
|
-
[&_.mention]:cursor-default
|
|
3311
|
-
[&_.mention]:transition-colors
|
|
3312
|
-
`,"data-placeholder":l,spellCheck:true}),d&&U__namespace.default.createElement("div",{className:"mt-2 p-3 bg-gray-50 rounded-lg border border-gray-200"},U__namespace.default.createElement("div",{className:"flex items-start gap-3"},U__namespace.default.createElement("div",{className:"flex-shrink-0"},U__namespace.default.createElement("svg",{className:"w-5 h-5 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},U__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"}))),U__namespace.default.createElement("div",{className:"flex-1 min-w-0"},U__namespace.default.createElement("p",{className:"text-sm font-medium text-gray-900 truncate"},"Link Preview"),U__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&&U__namespace.default.createElement("p",{className:"text-xs text-gray-500 mt-1"},"+",M.length-1," more link",M.length-1!==1?"s":"")),U__namespace.default.createElement("button",{onClick:j,className:"flex-shrink-0 text-gray-400 hover:text-gray-600","aria-label":"Remove link"},U__namespace.default.createElement("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},U__namespace.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}))))),v&&U__namespace.default.createElement(hL,{candidates:a,selectedIndex:x,isLoading:s,position:b,onSelect:g,onClose:z}))});kh.displayName="RichTextEditor";function yL({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:u,onMentionQueryChange:p,activeAction:f}){let{isMobile:v}=Mr(),{locale:x}=y(),b=xn(g=>g.status),h=b==="uploading"||b==="publishing",P=iA(x??"en","start-a-post-title");return U.useEffect(()=>{f==="clips"&&t.length===0&&A!=="reels-trigger"&&e("reels-trigger");},[f,t.length,A,e]),A==="edit-media"?U__namespace.default.createElement(uL,{files:t,editingIndex:r,onSelectIndex:n,onUpdateFile:o,onDeleteFile:a,onBack:()=>e("normal"),onViewGallery:()=>e("view-gallery")}):A==="view-gallery"?U__namespace.default.createElement(fL,{files:t,onBack:()=>e("normal"),onDelete:a,onEditMedia:g=>{n(g),e("edit-media");}}):U__namespace.default.createElement("div",{className:chunkQFPEDIYS_js.g("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",h&&"opacity-60 pointer-events-none select-none grayscale-[20%]",{"border border-[#E4EBF1]":!v})},U__namespace.default.createElement(kh,{rawText:s,setRawText:i,mentionTokens:l,onAcceptMention:c,onRemoveMention:d,mentionCandidates:m,isLoadingMentions:u,onMentionQueryChange:p,placeholder:P,autoFocus:true}),t?.length>0&&U__namespace.default.createElement(YdA,{mediaFiles:t,onDelete:a,onEdit:g=>{n(g),e("edit-media");},onOpenGallery:()=>e("view-gallery"),isMobile:v}))}function YdA({mediaFiles:A,onDelete:e,onEdit:t,onOpenGallery:r,isMobile:n}){let o=A.length;return o===1?U__namespace.default.createElement("div",{className:"w-full h-[28.75rem] rounded-lg overflow-hidden"},U__namespace.default.createElement(dm,{file:A[0],index:0,onDelete:e,onEdit:t,className:"w-full h-full"})):U__namespace.default.createElement("div",{className:chunkQFPEDIYS_js.g("flex gap-[1rem] w-full h-[28.75rem] overflow-hidden",n&&"overflow-x-auto min-w-max px-1")},U__namespace.default.createElement("div",{className:chunkQFPEDIYS_js.g("h-full flex-shrink-0 rounded-lg overflow-hidden",n?"w-[80vw] max-w-[18.78rem]":"w-[18.78rem]")},U__namespace.default.createElement(dm,{file:A[0],index:0,onDelete:e,onEdit:t,className:"w-full h-full"})),U__namespace.default.createElement("div",{className:"flex flex-col gap-[1rem] flex-1 h-full overflow-hidden min-w-[15rem]"},o===2?U__namespace.default.createElement("div",{className:"h-full rounded-lg overflow-hidden"},U__namespace.default.createElement(dm,{file:A[1],index:1,onDelete:e,onEdit:t,className:"w-full h-full"})):U__namespace.default.createElement(U__namespace.default.Fragment,null,U__namespace.default.createElement("div",{className:"h-[13.875rem] rounded-lg overflow-hidden"},U__namespace.default.createElement(dm,{file:A[1],index:1,onDelete:e,onEdit:t,className:"w-full h-full"})),U__namespace.default.createElement("div",{className:"h-[13.875rem] rounded-lg overflow-hidden relative"},U__namespace.default.createElement(dm,{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&&U__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"},U__namespace.default.createElement("div",{className:"text-center"},U__namespace.default.createElement("div",{className:"text-2xl font-bold"},"+",o-3))))}function JdA(A){let{fontSize:e="20px"}=A;return U__namespace.createElement("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",...A},U__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 UdA=U__namespace.memo(JdA),TL=UdA;function DdA(A){return U__namespace.createElement("svg",{width:20,height:20,fill:"none",...A},U__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"}),U__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 GdA=U__namespace.memo(DdA),ML=GdA;function KdA(A){return U__namespace.createElement("svg",{width:20,height:20,fill:"none",...A},U__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"}),U__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"}),U__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 BdA=U__namespace.memo(KdA),P7=BdA;function QdA(A){return U__namespace.createElement("svg",{width:14,height:17,fill:"none",...A},U__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"}),U__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 _dA=U__namespace.memo(QdA),zL=_dA;var Io={container:{position:"relative",width:"100%"},scrollContainer:{display:"flex",alignItems:"center",gap:"1.5rem",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 g7({onClick:A,onlyIcon:e=false,handleCloseMainModal:t}){let{locale:r,createJobButton:n}=y(),o=xn(h=>h.status),a=r??"en",s=U.useRef(null),[i,l]=U.useState(false),[c,d]=U.useState(false),[m,u]=U.useState(false);U.useEffect(()=>{let h=()=>{u(window.innerWidth<768);};return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]);let p=()=>{if(!s.current)return;let{scrollLeft:h,scrollWidth:P,clientWidth:g}=s.current;l(h>0),d(h+g<P-1);};U.useEffect(()=>{let h=s.current;if(h&&m)return p(),h.addEventListener("scroll",p),window.addEventListener("resize",p),()=>{h.removeEventListener("scroll",p),window.removeEventListener("resize",p);}},[m]);let f=h=>{let P=s.current;if(!P)return;let g=h.touches[0].clientX,z=P.scrollLeft,M=j=>{let T=j.touches[0].clientX,Z=g-T;P.scrollLeft=z+Z;},w=()=>{document.removeEventListener("touchmove",M),document.removeEventListener("touchend",w);};document.addEventListener("touchmove",M,{passive:false}),document.addEventListener("touchend",w);},x=[{id:"media",label:iA(a,"post-trigger-actions-button-media"),icon:U__namespace.default.createElement(P7,null),action:()=>A?.("media")},{id:"job",isCustomComponent:true,component:n,action:()=>A?.("create-a-job")},{id:"mentions",label:iA(a,"post-trigger-actions-button-mentions"),icon:U__namespace.default.createElement(TL,null),action:()=>A?.("mention")},m?null:{id:"article",label:iA(a,"post-trigger-actions-button-articles"),icon:U__namespace.default.createElement(Md,null),action:()=>A?.("articles")},{id:"clips",label:iA(a,"post-trigger-actions-button-clips"),icon:U__namespace.default.createElement(ML,null),action:()=>A?.("clips")},{id:"saved",label:iA(a,"post-trigger-actions-button-scheduled-items"),icon:U__namespace.default.createElement(zL,null),action:()=>A?.("saved-items")}].filter(h=>e?["media","job","mentions","article"].includes(h?.id??""):["media","job","article","clips","saved"].includes(h?.id??"")),b={...Io.scrollContainer,...m&&Io.scrollContainerMobile,...m&&Io.snapContainer};return U__namespace.default.createElement("div",{style:Io.container},m&&i&&U__namespace.default.createElement("div",{style:Io.shadowLeft}),U__namespace.default.createElement("div",{ref:s,style:b,onTouchStart:m?f:void 0},x.map((h,P)=>{if(h?.isCustomComponent)return U__namespace.default.createElement("div",{key:`custom-${P}`,onClick:t,style:m?Io.snapStart:void 0},h.component?.({onClick:t,showLabel:!e}));let g=o==="publishing"||o==="uploading",z={...Io.button,...g&&Io.buttonDisabled,...m&&Io.snapStart};return U__namespace.default.createElement("button",{key:h?.id,type:"button",onClick:h?.action,disabled:g,title:e?h?.label:void 0,style:z,onMouseEnter:M=>{g||(M.currentTarget.style.opacity="0.8");},onMouseLeave:M=>{M.currentTarget.style.opacity="1";}},U__namespace.default.createElement("span",{style:Io.iconWrapper},h?.icon),!e&&h?.label&&U__namespace.default.createElement("span",{style:{...Io.label,...Io.labelDesktop}},h?.label))})),m&&c&&U__namespace.default.createElement("div",{style:Io.shadowRight}))}function AmA(A){return U__namespace.createElement("svg",{width:24,height:24,fill:"none",...A},U__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"}),U__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 emA=U__namespace.memo(AmA),jL=emA;function cu({disabled:A=true,type:e,onSubmit:t,isLoading:r,isEditingMode:n}){let{isMobile:o}=Mr(),{locale:a}=y(),s={normal:{label:n?iA(a,"edit-label-button"):iA(a,"post-trigger-publish-btn-label")},schedule:{label:iA(a,"post-trigger-schedule-btn-label"),icon:o?U__namespace.default.createElement(jL,null):U__namespace.default.createElement(lucideReact.Clock,{className:"h-4 w-4"})}};return U__namespace.default.createElement(D,{disabled:A,type:"button",onClick:t,isLoading:r,className:chunkQFPEDIYS_js.g("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 Sh({onActionClick:A,canSubmit:e,onSubmit:t,onSchedule:r,hideScheduleOption:n=false,handleCloseMainModal:o,isEditingMode:a}){let s=xn(i=>i.status);return U__namespace.default.createElement("div",{className:"w-full flex items-center justify-between"},U__namespace.default.createElement(g7,{handleCloseMainModal:o,onlyIcon:true,onClick:A}),U__namespace.default.createElement("div",{className:"flex items-center gap-2"},n?null:U__namespace.default.createElement(cu,{onSubmit:r,isEditingMode:a,type:"schedule",disabled:s==="publishing"||s==="uploading"}),U__namespace.default.createElement(cu,{onSubmit:t,type:"normal",isLoading:s==="publishing"||s==="uploading",disabled:!e})))}var y7=(A,e)=>{let{user:t,isGettingUser:r,profileApiUrl:n}=y(),o=usehooks.useDebounce(A,400),a=async({pageParam:p=1})=>{if(!n||!t?.id)return {getPageUsersByUser:{data:[],meta:{}}};try{let f=await Q9.request(n,i6,{options:{filter:o??"",page:p,perPage:10}},{"x-access-token":t?.accessToken??""}),v=f?.getPageUsersByUser?.data??[];return {getPageUsersByUser:{data:await Promise.all(v.map(async b=>{let h=b?.page;if(!h?.id)return {id:"",name:"",avatar:"",sector:void 0};if(!h?.sectorId)return {...h,sector:void 0};try{let g=(await Q9.request(n,qv,{id:h?.sectorId},{"x-access-token":t?.accessToken??""}))?.sector?.name??void 0;return {...h,sector:g}}catch{return {...h,sector:void 0}}})),meta:f?.getPageUsersByUser?.meta}}}catch(f){throw f}},{data:s,isLoading:i,fetchNextPage:l,hasNextPage:c,isFetchingNextPage:d}=$A({queryKey:["page-users-by-user",t?.id,o],queryFn:a,initialPageParam:1,enabled:!!t?.id||e,getNextPageParam:p=>{let f=p?.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(p=>p?.getPageUsersByUser?.data??[])?.filter(Boolean)?.reverse()??[]).filter(p=>{if(!o?.trim())return true;let f=o.toLowerCase();return p?.name?.toLowerCase()?.includes(f)||p?.sector?.toLowerCase()?.includes(f)}),isGettingPages:r||i,fetchNextPage:l,hasNextPage:c,isFetchingNextPage:d}};function nmA(A){return U__namespace.createElement("svg",{width:15,height:15,fill:"none",...A},U__namespace.createElement("rect",{width:15,height:14.5,rx:7.25,fill:"#A0AEC0"}),U__namespace.createElement("path",{d:"M11 5.5L7.5 9 4 5.5",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))}var omA=U__namespace.memo(nmA),HL=omA;function Lh({avatar:A,headline:e,name:t,type:r,isSelected:n,onPickAProfile:o}){return U__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},U__namespace.default.createElement("div",{className:"flex items-center gap-3"},U__namespace.default.createElement($,{name:t??"",src:A??"",className:"w-[2.25rem] h-[2.25rem]",type:r}),U__namespace.default.createElement("div",{className:"flex flex-col"},U__namespace.default.createElement("span",{className:"font-medium text-[#050910] md:font-bold text-body-md md:text-[1rem] truncate"},UA(t??"")),U__namespace.default.createElement("span",{className:"font-medium text-[#687588] text-body-sm truncate"},Ze(e??"",25)))),U__namespace.default.createElement(Kc,{isSelected:n,onSelect:o}))}function Eh({onPickAProfile:A,isProfileSwitcherOpened:e=false,onCloseProfileSwitcherModal:t,selectedProfileId:r}){let{isMobile:n}=Mr(),{user:o,locale:a}=y(),s=U.useRef(null),{fetchNextPage:i,hasNextPage:l,isGettingPages:c,pages:d,isFetchingNextPage:m}=y7("",e),u=iA(a,"switch-profile-title"),[p]=oX__default.default({loading:m,hasNextPage:!!l,onLoadMore:i,disabled:c||!l,rootMargin:"0px 0px 200px 0px"}),f=()=>U__namespace.default.createElement("div",{ref:s,className:"flex flex-col gap-4 overflow-y-auto pr-2 custom-scrollbar min-h-[10rem]"},o&&U__namespace.default.createElement(Lh,{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=>U__namespace.default.createElement(Lh,{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)&&U__namespace.default.createElement("div",{ref:p,className:"flex justify-center py-2"},U__namespace.default.createElement(yA,{className:"w-6 h-6"})));return n?U__namespace.default.createElement(za,{isOpen:e,onClose:t,className:"w-full",title:U__namespace.default.createElement("span",{className:"font-medium text-[#050910] text-body-md truncate"},u)},U__namespace.default.createElement("div",{className:"mt-2"},f())):U__namespace.default.createElement(Lr,{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"},U__namespace.default.createElement("span",{className:"font-medium text-[#050910] md:font-bold text-body-md md:text-[1rem] truncate"},u),f())}function xm({profile:A,mode:e,onPickAProfile:t,restrictProfileSelection:r=false,onToggleSwitcher:n,renderOnlyModal:o=false}){let[a,s]=usehooks.useToggle(o),{locale:i,user:l}=y(),{pages:c,isGettingPages:d}=y7(""),m=!d&&c?.length===0,u=!!l&&!r||m,p=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),p(false);};return o?U__namespace.default.createElement(Eh,{isProfileSwitcherOpened:a,onCloseProfileSwitcherModal:()=>p(false),onPickAProfile:v,selectedProfileId:A?.id}):U__namespace.default.createElement(U__namespace.default.Fragment,null,U__namespace.default.createElement("div",{className:chunkQFPEDIYS_js.g("flex items-start gap-3",{"flex-row":e==="full"})},U__namespace.default.createElement("div",{className:"relative inline-flex"},U__namespace.default.createElement($,{name:A?.name??"",src:A?.avatar??"",onClick:f,className:chunkQFPEDIYS_js.g("cursor-pointer",{"w-[2.25rem] h-[2.25rem]":e==="full","w-10 h-10":e==="short"}),type:A?.type}),(m||e==="short"&&u)&&U__namespace.default.createElement("div",{className:"absolute -bottom-1 -right-1 rounded-full p-0.5 flex items-center justify-center cursor-pointer",onClick:()=>p(true)},U__namespace.default.createElement(HL,{className:"text-[#050910]"}))),e==="full"&&U__namespace.default.createElement("div",{onClick:()=>u&&p(true),role:"button",tabIndex:0,className:chunkQFPEDIYS_js.g("flex flex-col min-w-0 text-left",{"cursor-pointer":u})},U__namespace.default.createElement("div",{className:"flex items-center gap-1"},U__namespace.default.createElement("span",{className:"font-medium text-[#050910] md:font-bold text-body-md md:text-[1rem] truncate"},UA(A?.name??"")),u&&U__namespace.default.createElement(lucideReact.ChevronDown,{className:"text-[#050910] h-5 w-5 "})),U__namespace.default.createElement("span",{className:"font-medium text-[#687588] text-body-md truncate"},Ze(A?.headline??A?.sector??"",20)))),U__namespace.default.createElement(Eh,{isProfileSwitcherOpened:a,onCloseProfileSwitcherModal:()=>p(false),onPickAProfile:v,selectedProfileId:A?.id}))}function OL({selectedProfile:A,currentType:e,onProfileChange:t,onToggleSwitcher:r,renderScheduleInfo:n,renderMobileHeader:o}){let{isMobile:a}=Mr(),{locale:s}=y(),[i,l]=U.useState("all"),[c,d]=U.useState(false),m=[{id:"all",label:iA(s,"post-trigger-actions-select-all"),value:"all"},{id:"connections",label:iA(s,"post-trigger-actions-select-connections"),value:"connections"},{id:"communities",label:iA(s,"post-trigger-actions-select-communities"),value:"communities"}],u=f=>{l(f),d(false);},p=U__namespace.default.createElement("div",{className:"flex flex-col gap-1"},m.map(f=>U__namespace.default.createElement("button",{key:f.id,onClick:()=>u(f.id),className:chunkQFPEDIYS_js.g("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")},U__namespace.default.createElement("span",{className:"font-medium"},f.label),i===f.id&&U__namespace.default.createElement(lucideReact.Check,{className:"w-5 h-5"}))));return a?U__namespace.default.createElement("div",{className:"w-full flex flex-col gap-2"},o,U__namespace.default.createElement("div",{className:"w-full flex md:mt-6 items-center justify-between p-2 bg-white"},U__namespace.default.createElement("div",{className:"flex gap-2 flex-col"},U__namespace.default.createElement(xm,{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),U__namespace.default.createElement("div",{onClick:()=>d(true),className:"relative"},U__namespace.default.createElement("div",{className:"pointer-events-none"},U__namespace.default.createElement(V1,{className:"w-fit text-body-sm",options:m,value:i,reset:false,onChange:()=>{}})))),U__namespace.default.createElement(za,{isOpen:c,onClose:()=>d(false)},p)):U__namespace.default.createElement("div",{className:"w-full flex md:mt-6 items-center justify-between"},U__namespace.default.createElement("div",{className:"flex gap-2 flex-col"},U__namespace.default.createElement(xm,{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),U__namespace.default.createElement("div",null,U__namespace.default.createElement(V1,{className:"w-fit",options:m,value:i,reset:false,onChange:f=>{l(f?f.id:"");}})))}var Xh="mirantes_post_draft",VL=async A=>await idbKeyval.set(Xh,A),T7=async()=>await idbKeyval.get(Xh),mu=async()=>await idbKeyval.del(Xh);async function kL(A){return A.type!=="image"?A.file:new Promise(e=>{let t=new Image;t.crossOrigin="anonymous",t.src=A.preview,t.onload=()=>{let r=document.createElement("canvas"),n=r.getContext("2d");if(!n)return e(A.file);let o=A.rotation||0,a=o%180!==0;r.width=a?t.height:t.width,r.height=a?t.width:t.height,n.translate(r.width/2,r.height/2),n.rotate(o*Math.PI/180);let s={none:"none",grayscale:"grayscale(100%)",sepia:"sepia(100%)",vivid:"saturate(200%)",fade:"opacity(70%)",warm:"sepia(30%) saturate(140%)",cool:"hue-rotate(30deg) saturate(110%)"};n.filter=s[A.filter||"none"],n.drawImage(t,-t.width/2,-t.height/2),r.toBlob(i=>{if(!i)return e(A.file);let l=new File([i],A.file.name,{type:"image/jpeg",lastModified:Date.now()});e(l);},"image/jpeg",.9);},t.onerror=()=>e(A.file);})}var qL=/@([^[\]]+)\[uid:([^\]]+)\]\[([^\]]+)\]/g;function M7(A){let e=[],t=A.matchAll(qL);for(let r of t){let[,n,o,a]=r;e.push({displayName:n,mentionedId:o,mentionType:a});}return e}function ZL(A){let e=[],t=[...A.matchAll(qL)];if(t.length===0)return [A];let r=0;for(let n of t){let[o,a,s]=n,i=n.index;i>r&&e.push(A.slice(r,i)),e.push(U__namespace.default.createElement("span",{key:`${s}-${i}`,className:"inline-flex items-center px-1.5 py-0.5 rounded-md bg-primary/10 text-primary text-xs font-semibold"},a)),r=i+o.length;}return r<A.length&&e.push(A.slice(r)),e}function va(){return `${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var bmA=["image/jpeg","image/jpg","image/png","image/gif","image/webp","image/svg+xml","image/bmp","image/tiff","image/heic","image/heif"];function LL(A){return bmA.includes(A.type)||A.type.startsWith("image/")?"image":A.type.startsWith("video/")?"video":A.type==="application/pdf"||A.name?.endsWith(".pdf")?"pdf":null}function pu(A){return A.startsWith("http")||A.startsWith("https")}function EL(A){return {id:A.id,content:A.content,scheduledAt:A.scheduledAt??"",images:A.images||[],videos:A.videos||[],attachment:A.attachment}}function XL({initialFiles:A,initialContent:e,initialMentions:t,fileInputRef:r,onClose:n,isOpened:o,entity:a,optimisticUpdateType:s,editingPost:i,resetPostTrigger:l,activeAction:c}){let d=xn(MA=>MA.startPost),m=xn(MA=>MA.startUpdate),u=xn(MA=>MA.status),p=xn(MA=>MA.isUpdating),[f,v]=U.useState([]),[x,b]=U.useState(null),[h,P]=U.useState("normal"),[g,z]=U.useState(0),[M,w]=U.useState(""),[j,T]=U.useState(""),[Z,V]=U.useState([]),[W,O]=U.useState([]),[k,L]=U.useState(false),[X,S]=U.useState(null),[I,N]=U.useState(false),[q,J]=U.useState(false),[C,R]=U.useState(false),Y=U.useRef(f),AA=U.useRef(Z),eA=U.useRef(x),oA=U.useRef(X);U.useEffect(()=>{Y.current=f;},[f]),U.useEffect(()=>{AA.current=Z;},[Z]),U.useEffect(()=>{eA.current=x;},[x]),U.useEffect(()=>{oA.current=X;},[X]);let ZA=u==="uploading"||u==="publishing"||p,QA=u!=="idle"&&u!=="error"&&u!=="success"||p,NA=U.useCallback(()=>{Y.current.forEach(MA=>{MA.preview&&!pu(MA.preview)&&URL.revokeObjectURL(MA.preview);}),v([]),b(null),P("normal"),z(0),T(""),V([]),O([]),w(""),L(false),S(null),N(false),J(false),R(false),mu();},[]),RA=U.useCallback(MA=>{if(!MA)return;let SA=M7(MA.content??"");if(S(MA),w(MA?.scheduledAt||""),T(MA?.content??""),V(SA),O([]),R(true),J(false),MA?.images&&MA?.images?.length>0){let LA=MA.images.map(ge=>({id:va(),file:new File([],ge.url??""),type:"image",preview:ge.url,rotation:0,zoom:1,filter:"none"}));v(LA),b("image");}else if(MA.videos&&MA?.videos?.length>0){let LA=MA.videos.map(ge=>({id:va(),file:new File([],ge.url??""),type:"video",preview:ge.url,rotation:0,zoom:1,filter:"none"}));v(LA),b("video");}else if(MA?.attachment?.url){let LA=new File([],MA.attachment.url??""),ge=LL(LA);v([{id:va(),file:LA,type:ge,preview:MA.attachment.url??"",rotation:0,zoom:1,filter:"none"}]),b(ge);}else v([]),b(null);P("normal"),N(true);},[]);im("edit-post-on-schedule",RA),U.useEffect(()=>{if(!o){N(false),J(false),R(false);return}if(I||ZA)return;(async()=>{if(i){let LA=EL(i);RA(LA);return}let SA=false;if(e&&T(e),t&&t.length>0&&V(t),A&&A.length>0&&OA(A),!e&&!t&&(!A||A.length===0)){let LA=await T7();LA&&(SA=true,LA.content&&T(LA.content),LA.files?.length&&OA(LA.files));}SA&&R(true),N(true);})();},[o,ZA,A,e,t,i,RA,I]),U.useEffect(()=>{if(o&&u==="success"&&!p){let MA=setTimeout(()=>{let SA=xn.getState().reset;SA(),NA(),N(false);},3500);return ()=>clearTimeout(MA)}},[o,u,p,NA]);let re=U.useMemo(()=>!!i||!!X,[i,X]),nA=U.useMemo(()=>{if(X){let MA=j?.trim()!==(X.content?.trim()||""),SA=!!(X.images?.length||X.videos?.length||X.attachment),LA=f.length>0,ge=SA!==LA,De=M!==(X.scheduledAt||"");return MA||ge||De}if(i&&!X){let MA=j?.trim()!==(i.content?.trim()||""),SA=!!(i.images?.length||i.videos?.length||i.attachment),LA=f.length>0,ge=SA!==LA,De=M!==(i.scheduledAt||"");return MA||ge||De}return j?.trim()?.length>0||f?.length>0},[j,f,X,i,M]),OA=U.useCallback(MA=>{if(MA.length===0)return;J(true),R(false);let SA=MA.map($e=>({file:$e,type:LL($e)})).filter($e=>$e.type!==null);if(SA.length===0)return;let LA=eA.current,ge=Y.current;if(LA==="pdf")return;let De=SA[0].type;if(LA&&LA!==De||De==="pdf"&&ge.length>0)return;let ct=(De==="pdf"?[SA[0]]:SA).filter(({file:$e})=>!ge.some(At=>At.file.name===$e.name&&At.file.size===$e.size));if(ct.length===0)return;let er=ct.map(({file:$e})=>({id:va(),file:$e,type:De,preview:URL.createObjectURL($e),rotation:0,zoom:1,filter:"none"}));b(De),v($e=>De==="pdf"?($e.forEach(At=>{At.preview&&!pu(At.preview)&&URL.revokeObjectURL(At.preview);}),er):[...$e,...er]);},[]),Be=U.useCallback(MA=>{MA&&(J(true),R(false),T(SA=>SA.length>0?`${SA} ${MA}`:MA));},[]),jA=U.useCallback(()=>{if(P("normal"),l?.(),ZA){n();return}if(C&&nA&&!q){n();return}nA&&q?L(true):n();},[nA,n,ZA,l,C,q]),VA=U.useCallback(()=>{NA(),n();},[NA,n]),qe=U.useCallback(async()=>{!X&&!i&&await VL({content:j,files:Y.current.map(MA=>MA.file)}),n();},[j,n,X,i]),JA=U.useCallback(MA=>MA.type==="image"&&(MA.rotation!==0||MA.filter!=="none"||MA.zoom!==1),[]),Xe=U.useCallback(async MA=>await Promise.all(MA.map(async LA=>{if(LA.type==="image")try{return JA(LA)?await kL(LA):LA.file}catch(ge){return console.error("Image processing failed for file:",LA.file.name,ge),LA.file}return LA.file})),[JA]),Or=U.useCallback(async()=>{let MA=X||(i?EL(i):null);if(MA){let SA={id:MA.id,content:j,optimisticUpdateType:s,scheduledAt:M||null},LA=MA.images||[],ge=MA.videos||[],De=MA.attachment,Ae=Y.current.filter(kt=>pu(kt.preview)),ct=Y.current.filter(kt=>!pu(kt.preview)),er=Ae.filter(kt=>JA(kt)),$e=[...ct,...er],At=Ae.filter(kt=>!JA(kt));if($e.length>0){let kt=await Xe($e);SA.pendingFiles=kt;let tn=At.map(Gn=>Gn.preview);if(LA.length>0){let Gn=LA.filter(Tt=>tn.includes(Tt?.url??""));Gn.length>0&&(SA.images=Gn);}if(ge.length>0){let Gn=ge.filter(Tt=>tn.includes(Tt?.url??""));Gn.length>0&&(SA.videos=Gn);}De&&tn.includes(De?.url??"")&&(SA.attachment=De);}else if(At.length>0){let kt=At.filter(Tt=>Tt.type==="image").map(Tt=>({url:Tt.preview})),tn=At.filter(Tt=>Tt.type==="video").map(Tt=>({url:Tt.preview})),Gn=At.find(Tt=>Tt.type==="pdf");kt.length&&(SA.images=kt),tn.length&&(SA.videos=tn),Gn&&(SA.attachment={url:Gn.preview,type:"pdf",title:Gn.file.name});}else SA.images=[],SA.videos=[],SA.attachment=null;AA.current.length>0?SA.mentions=AA.current.map(({mentionType:kt,mentionedId:tn})=>({mentionType:kt,mentionedId:tn})):SA.mentions=[],m(SA,a,NA),n();}else {let SA={content:j,postType:c==="clips"?"REEL":"NORMAL",optimisticUpdateType:s,entityType:a.type?.toUpperCase(),mentions:AA.current.map(({mentionType:De,mentionedId:Ae})=>({mentionType:De,mentionedId:Ae}))};if(M){let De=typeof M=="string"?dateFns.parseISO(M):M;dateFns.isValid(De)&&(SA.scheduledAt=dateFnsTz.formatInTimeZone(De,"UTC","yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"));}a.type==="page"?SA.page={id:a.id??"",name:a.name??"",sector:a.sector??"",slug:a.slug??"",avatar:a.avatar??""}:a.type==="community"&&(SA.community={id:a.id??"",name:a.name??"",slug:a.slug??"",avatar:a.avatar??""});let LA=Y.current,ge=await Xe(LA);d(SA,ge,a,NA),n();}},[j,M,a,s,d,m,n,NA,X,i,Xe,JA,c]),Ga=U.useCallback(MA=>{switch(J(true),R(false),MA){case "media":r.current?.click();break;case "schedule-a-post":P("schedule-a-post");break;case "mention":P("has-mentioned"),T(SA=>{if(SA.endsWith("@"))return SA;let LA=SA.length>0&&!SA.endsWith(" ");return `${SA}${LA?" ":""}@`});break;default:P("normal");}},[r]),Ve=U.useCallback(MA=>{J(true),R(false),v(SA=>{let LA=SA.find(De=>De.id===MA);LA?.preview&&!pu(LA.preview)&&URL.revokeObjectURL(LA.preview);let ge=SA.filter(De=>De.id!==MA);return ge.length===0&&(b(null),P("normal")),ge});},[]),xr=U.useCallback((MA,SA)=>{J(true),R(false),v(LA=>LA.map(ge=>ge.id===MA?{...ge,...SA}:ge));},[]),Ka=U.useCallback((MA,SA)=>{J(true),R(false),V(LA=>LA.find(ge=>ge.mentionedId===MA.mentionedId)?LA:[...LA,MA]),O(LA=>LA.find(ge=>ge.id===SA.id)?LA:[...LA,SA]);},[]),Qi=U.useCallback(MA=>{J(true),R(false),V(SA=>SA.filter(LA=>LA.mentionedId!==MA)),O(SA=>SA.filter(LA=>LA.id!==MA));},[]),$s=U.useCallback(MA=>{J(true),R(false),T(MA);},[]);return {state:{mediaFiles:f,mediaType:x,contentView:h,editingIndex:g,scheduledAt:M,rawText:j,mentionTokens:W,showDiscardConfirm:k,hasChanges:nA,isSubmitting:QA,isEditingMode:re},isCreatingThePost:QA,actions:{setContentView:P,setEditingIndex:z,setRawText:$s,setScheduledAt:w,addFiles:OA,handlePasteText:Be,removeFile:Ve,updateMediaFile:xr,acceptMention:Ka,removeMention:Qi,handleClickActions:Ga,handleRequestClose:jA,handleConfirmDiscard:VA,handleSaveDraft:qe,handleSubmit:Or,setShowDiscardConfirm:L}}}var IL=(A,e,t,r,n)=>{let o=[];switch(e){case "profile":o.push(["posts","profile",t]),o.push(["postsByUser",t]);break;case "pages":o.push(["posts","pages",r?.createPostInput?.page?.id]);break;case "community":o.push(["posts","community",r?.createPostInput?.community?.id]);break;default:o.push(["posts",t]);break}o.forEach(a=>{A.invalidateQueries({queryKey:a});});},Ih=A=>!!A?.pages?.[0]?.postsByUser?.data,hmA=(A,e,t)=>!A||!Ih(A)?A:{...A,pages:A.pages.map(r=>({...r,postsByUser:{...r.postsByUser,data:r.postsByUser?.data?.map(n=>n?.id===e?t(n):n)??[]}}))};function N7(A){if(A?.postMap)return A;let e={};return A.pages.forEach(t=>{t?.recommendedPostsUser?.data?.forEach(r=>{r.normalPosts?.forEach(n=>e[n.id]=n),r.reels?.forEach(n=>e[n.id]=n);});}),{...A,postMap:e}}function PmA(A,e,t){if(!A)return A;let r=N7(A),n=r.postMap?.[e];if(!n)return A;let o=t(n);return {...r,postMap:{...r.postMap,[e]:o}}}function j7({optimisticUpdateType:A,entity:e,payload:t,filter:r,queryClient:n,mode:o}){let s=(()=>{switch(A){case "profile":return [["posts","profile",e?.id],["postsByUser",e?.id],["postsByUserPaginated",e?.id]];case "pages":return [["posts","pages",e?.id]];case "community":return [["posts","community",e?.id]];case "feed":default:return [r?.length&&r!=="all"?["posts",e?.id,r]:["posts",e?.id]]}})();if(o==="update"){let i=t,l=i?.updatePostInput?.id,c=m=>({...m,content:i.updatePostInput.content??m.content,attachment:i.updatePostInput.attachment,images:i.updatePostInput.images?.map((u,p)=>({id:m.images?.[p]?.id??va(),url:u?.url??""}))??m.images,videos:i.updatePostInput.videos?.map((u,p)=>({id:m.videos?.[p]?.id??va(),url:u?.url??""}))??m.videos,scheduledAt:i.updatePostInput.scheduledAt});[...s,["posts",e?.id],["posts",e?.id,r],["posts",e?.id,"following"],["postsByUser",e?.id]].forEach(m=>{n?.setQueryData(m,u=>Ih(u)?hmA(u,l,c):PmA(u,l,c));});}else o==="creation"&&s.forEach(i=>{n?.setQueryData(i,l=>{if(!l)return l;let c=e?.type==="page"?{id:e?.id,name:e?.name,slug:e?.slug,logo:e?.avatar}:void 0,d=e?.type==="community"?{id:e?.id??"",name:e?.name??"",slug:e?.slug,image:e?.avatar}:void 0,m=t,u=va(),p={id:`temp-${u}`,clientId:u,postType:m.createPostInput.postType,user:e?.type==="user"?{id:e.id,name:e.name,headline:e.headline,slug:e.slug,avatar:e?.avatar??""}:{id:"",name:"",headline:"",slug:"",avatar:""},createdAt:new Date().toISOString(),expiresAt:new Date(Date.now()+48*60*60*1e3).toISOString(),page:c,community:d,images:m?.createPostInput?.images?.map(v=>({id:va(),url:v?.url??""}))??[],videos:m?.createPostInput?.videos?.map(v=>({id:va(),url:v?.url??""}))??[],content:m?.createPostInput?.content??"",attachment:{type:m?.createPostInput?.attachment?.type??"",title:m?.createPostInput?.attachment?.title??"",url:m?.createPostInput?.attachment?.url??""}};if(Ih(l))return {...l,pages:l.pages.map((v,x)=>x===0?{...v,postsByUser:{...v.postsByUser,data:[p,...v.postsByUser?.data??[]]}}:v)};let f=N7(l);return {...f,postMap:{...f.postMap,[p.id]:p},pages:f.pages.map(v=>({...v,recommendedPostsUser:{...v.recommendedPostsUser,data:v?.recommendedPostsUser?.data.map(x=>({...x,normalPosts:x.normalPosts?.length===0?[p]:[p,...x.normalPosts]}))}}))}});});}var RL=Q9.gql`
|
|
3296
|
+
`},U__namespace.default.createElement($,{name:s?.name??"",src:s?.avatar,type:l,size:"sm"}),U__namespace.default.createElement("div",{className:"flex-1 min-w-0"},U__namespace.default.createElement("p",{className:"text-sm capitalize font-medium text-gray-900 truncate"},UA(s?.name)),U__namespace.default.createElement("p",{className:"text-xs",style:{color:c?.color}},c?.label)))}))))}var CdA=A=>{let e=/(https?:\/\/[^\s]+)/g;return A.match(e)||[]},gL=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(U__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},kh=U__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]=U.useState(null),u=U.useRef(false),{editorRef:p,isInternalChange:f,isMentionOpen:v,selectedIndex:x,cursorPos:b,handleInput:h,handleKeyDown:P,insertMention:g,closeMention:z}=bL({rawText:e,setRawText:t,mentionTokens:r,onAcceptMention:n,onRemoveMention:o,mentionCandidates:a,isLoadingMentions:s,onMentionQueryChange:i}),M=U.useMemo(()=>CdA(e),[e]);U.useEffect(()=>{m(M.length>0?M[0]:null);},[M]);let w=U.useCallback(T=>{T.preventDefault();let Z=T.clipboardData.getData("text/plain");if(Z){let V=window.getSelection();if(V&&V.rangeCount>0){let W=V.getRangeAt(0),O=document.createTextNode(Z);W.deleteContents(),W.insertNode(O),W.collapse(false);let k=new InputEvent("input",{bubbles:true});p.current?.dispatchEvent(k);}else t(e+Z);}},[e,t,p]);U.useEffect(()=>{if(c&&p.current){p.current.focus();let T=document.createRange(),Z=window.getSelection();Z&&(T.selectNodeContents(p.current),T.collapse(false),Z.removeAllRanges(),Z.addRange(T));}},[c,p]),U.useEffect(()=>{let T=p.current;T&&(f.current||u.current||requestAnimationFrame(()=>{if(!T)return;u.current=true;let Z=window.getSelection(),V=-1;if(Z&&Z.rangeCount>0&&Z.isCollapsed){let L=Z.getRangeAt(0),X=L.cloneRange();X.selectNodeContents(T),X.setEnd(L.startContainer,L.startOffset),V=X.toString().length;}let W=/@([^[\]]+)\[uid:([^\]]+)\]\[([^\]]+)\]/g;T.innerHTML="";let O=0,k=null;for(W.lastIndex=0;(k=W.exec(e))!==null;){let[L,X,S,I]=k,N=k.index;if(N>O){let J=e.slice(O,N);gL(J).forEach(R=>{if(typeof R=="string")T.appendChild(document.createTextNode(R));else if(U__namespace.default.isValidElement(R)){let Y=document.createElement("div"),AA=R?.props?.children;if(typeof AA=="string"){Y.innerHTML=AA;let eA=Y.firstChild;eA&&T.appendChild(eA);}}});}let q=document.createElement("span");q.className="mention",q.contentEditable="false",q.setAttribute("data-id",S),q.setAttribute("data-type",I),q.setAttribute("data-original-name",X),q.textContent=X,T.appendChild(document.createTextNode("\u200B")),T.appendChild(q),T.appendChild(document.createTextNode("\xA0")),O=N+L.length;}if(O<e.length){let L=e.slice(O);gL(L).forEach(S=>{if(typeof S=="string")T.appendChild(document.createTextNode(S));else if(U__namespace.default.isValidElement(S)){let I=document.createElement("div"),N=S?.props?.children;if(typeof N=="string"){I.innerHTML=N;let q=I.firstChild;q&&T.appendChild(q);}}});}V>=0&&(()=>{let X=document.createRange(),S=window.getSelection();if(S&&T.childNodes.length>0){let I=0,N=null,q=0,J=document.createTreeWalker(T,NodeFilter.SHOW_TEXT,null),C=null;for(;(C=J.nextNode())!==null;){let R=C.textContent?.length||0;if(I+R>=V){N=C,q=V-I;break}I+=R;}N?(X.setStart(N,Math.min(q,N.textContent?.length||0)),X.collapse(true),S.removeAllRanges(),S.addRange(X)):T.lastChild&&(X.selectNodeContents(T),X.collapse(false),S.removeAllRanges(),S.addRange(X));}})(),u.current=false;}));},[e,p,f]);let j=U.useCallback(()=>{if(M.length>0){let T=M[0],Z=e.replace(T,"");t(Z);}},[M,e,t]);return U__namespace.default.createElement("div",{className:"relative flex-1 flex flex-col w-full"},U__namespace.default.createElement("div",{ref:p,contentEditable:true,suppressContentEditableWarning:true,onInput:h,onKeyDown:P,onPaste:w,className:`
|
|
3297
|
+
max-h-[280px] overflow-y-auto
|
|
3298
|
+
min-h-[80px] w-full outline-none text-[0.95rem] text-gray-800
|
|
3299
|
+
leading-relaxed whitespace-pre-wrap break-words
|
|
3300
|
+
empty:before:content-[attr(data-placeholder)]
|
|
3301
|
+
empty:before:text-gray-400 empty:before:pointer-events-none
|
|
3302
|
+
|
|
3303
|
+
[&_.mention]:text-primary
|
|
3304
|
+
[&_.mention]:font-semibold
|
|
3305
|
+
[&_.mention]:px-1.5
|
|
3306
|
+
[&_.mention]:py-0.5
|
|
3307
|
+
[&_.mention]:rounded-md
|
|
3308
|
+
[&_.mention]:inline-block
|
|
3309
|
+
[&_.mention]:select-all
|
|
3310
|
+
[&_.mention]:cursor-default
|
|
3311
|
+
[&_.mention]:transition-colors
|
|
3312
|
+
`,"data-placeholder":l,spellCheck:true}),d&&U__namespace.default.createElement("div",{className:"mt-2 p-3 bg-gray-50 rounded-lg border border-gray-200"},U__namespace.default.createElement("div",{className:"flex items-start gap-3"},U__namespace.default.createElement("div",{className:"flex-shrink-0"},U__namespace.default.createElement("svg",{className:"w-5 h-5 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},U__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"}))),U__namespace.default.createElement("div",{className:"flex-1 min-w-0"},U__namespace.default.createElement("p",{className:"text-sm font-medium text-gray-900 truncate"},"Link Preview"),U__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&&U__namespace.default.createElement("p",{className:"text-xs text-gray-500 mt-1"},"+",M.length-1," more link",M.length-1!==1?"s":"")),U__namespace.default.createElement("button",{onClick:j,className:"flex-shrink-0 text-gray-400 hover:text-gray-600","aria-label":"Remove link"},U__namespace.default.createElement("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},U__namespace.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}))))),v&&U__namespace.default.createElement(hL,{candidates:a,selectedIndex:x,isLoading:s,position:b,onSelect:g,onClose:z}))});kh.displayName="RichTextEditor";function yL({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:u,onMentionQueryChange:p,activeAction:f}){let{isMobile:v}=Mr(),{locale:x}=y(),b=xn(g=>g.status),h=b==="uploading"||b==="publishing",P=iA(x??"en","start-a-post-title");return U.useEffect(()=>{f==="clips"&&t.length===0&&A!=="reels-trigger"&&e("reels-trigger");},[f,t.length,A,e]),A==="edit-media"?U__namespace.default.createElement(uL,{files:t,editingIndex:r,onSelectIndex:n,onUpdateFile:o,onDeleteFile:a,onBack:()=>e("normal"),onViewGallery:()=>e("view-gallery")}):A==="view-gallery"?U__namespace.default.createElement(fL,{files:t,onBack:()=>e("normal"),onDelete:a,onEditMedia:g=>{n(g),e("edit-media");}}):U__namespace.default.createElement("div",{className:chunkQFPEDIYS_js.g("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",h&&"opacity-60 pointer-events-none select-none grayscale-[20%]",{"border border-[#E4EBF1]":!v})},U__namespace.default.createElement(kh,{rawText:s,setRawText:i,mentionTokens:l,onAcceptMention:c,onRemoveMention:d,mentionCandidates:m,isLoadingMentions:u,onMentionQueryChange:p,placeholder:P,autoFocus:true}),t?.length>0&&U__namespace.default.createElement(YdA,{mediaFiles:t,onDelete:a,onEdit:g=>{n(g),e("edit-media");},onOpenGallery:()=>e("view-gallery"),isMobile:v}))}function YdA({mediaFiles:A,onDelete:e,onEdit:t,onOpenGallery:r,isMobile:n}){let o=A.length;return o===1?U__namespace.default.createElement("div",{className:"w-full h-[28.75rem] rounded-lg overflow-hidden"},U__namespace.default.createElement(dm,{file:A[0],index:0,onDelete:e,onEdit:t,className:"w-full h-full"})):U__namespace.default.createElement("div",{className:chunkQFPEDIYS_js.g("flex gap-[1rem] w-full h-[28.75rem] overflow-hidden",n&&"overflow-x-auto min-w-max px-1")},U__namespace.default.createElement("div",{className:chunkQFPEDIYS_js.g("h-full flex-shrink-0 rounded-lg overflow-hidden",n?"w-[80vw] max-w-[18.78rem]":"w-[18.78rem]")},U__namespace.default.createElement(dm,{file:A[0],index:0,onDelete:e,onEdit:t,className:"w-full h-full"})),U__namespace.default.createElement("div",{className:"flex flex-col gap-[1rem] flex-1 h-full overflow-hidden min-w-[15rem]"},o===2?U__namespace.default.createElement("div",{className:"h-full rounded-lg overflow-hidden"},U__namespace.default.createElement(dm,{file:A[1],index:1,onDelete:e,onEdit:t,className:"w-full h-full"})):U__namespace.default.createElement(U__namespace.default.Fragment,null,U__namespace.default.createElement("div",{className:"h-[13.875rem] rounded-lg overflow-hidden"},U__namespace.default.createElement(dm,{file:A[1],index:1,onDelete:e,onEdit:t,className:"w-full h-full"})),U__namespace.default.createElement("div",{className:"h-[13.875rem] rounded-lg overflow-hidden relative"},U__namespace.default.createElement(dm,{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&&U__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"},U__namespace.default.createElement("div",{className:"text-center"},U__namespace.default.createElement("div",{className:"text-2xl font-bold"},"+",o-3))))}function JdA(A){let{fontSize:e="20px"}=A;return U__namespace.createElement("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",...A},U__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 UdA=U__namespace.memo(JdA),TL=UdA;function DdA(A){return U__namespace.createElement("svg",{width:20,height:20,fill:"none",...A},U__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"}),U__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 GdA=U__namespace.memo(DdA),ML=GdA;function KdA(A){return U__namespace.createElement("svg",{width:20,height:20,fill:"none",...A},U__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"}),U__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"}),U__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 BdA=U__namespace.memo(KdA),P7=BdA;function QdA(A){return U__namespace.createElement("svg",{width:14,height:17,fill:"none",...A},U__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"}),U__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 _dA=U__namespace.memo(QdA),zL=_dA;var Io={container:{position:"relative",width:"100%"},scrollContainer:{display:"flex",alignItems:"center",gap:"1.5rem",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 g7({onClick:A,onlyIcon:e=false,handleCloseMainModal:t}){let{locale:r,createJobButton:n}=y(),o=xn(h=>h.status),a=r??"en",s=U.useRef(null),[i,l]=U.useState(false),[c,d]=U.useState(false),[m,u]=U.useState(false);U.useEffect(()=>{let h=()=>{u(window.innerWidth<768);};return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]);let p=()=>{if(!s.current)return;let{scrollLeft:h,scrollWidth:P,clientWidth:g}=s.current;l(h>0),d(h+g<P-1);};U.useEffect(()=>{let h=s.current;if(h&&m)return p(),h.addEventListener("scroll",p),window.addEventListener("resize",p),()=>{h.removeEventListener("scroll",p),window.removeEventListener("resize",p);}},[m]);let f=h=>{let P=s.current;if(!P)return;let g=h.touches[0].clientX,z=P.scrollLeft,M=j=>{let T=j.touches[0].clientX,Z=g-T;P.scrollLeft=z+Z;},w=()=>{document.removeEventListener("touchmove",M),document.removeEventListener("touchend",w);};document.addEventListener("touchmove",M,{passive:false}),document.addEventListener("touchend",w);},x=[{id:"media",label:iA(a,"post-trigger-actions-button-media"),icon:U__namespace.default.createElement(P7,null),action:()=>A?.("media")},{id:"job",isCustomComponent:true,component:n,action:()=>A?.("create-a-job")},{id:"mentions",label:iA(a,"post-trigger-actions-button-mentions"),icon:U__namespace.default.createElement(TL,null),action:()=>A?.("mention")},m?null:{id:"article",label:iA(a,"post-trigger-actions-button-articles"),icon:U__namespace.default.createElement(Md,null),action:()=>A?.("articles")},{id:"clips",label:iA(a,"post-trigger-actions-button-clips"),icon:U__namespace.default.createElement(ML,null),action:()=>A?.("clips")},{id:"saved",label:iA(a,"post-trigger-actions-button-scheduled-items"),icon:U__namespace.default.createElement(zL,null),action:()=>A?.("saved-items")}].filter(h=>e?["media","job","mentions","article"].includes(h?.id??""):["media","job","article","clips","saved"].includes(h?.id??"")),b={...Io.scrollContainer,...m&&Io.scrollContainerMobile,...m&&Io.snapContainer};return U__namespace.default.createElement("div",{style:Io.container},m&&i&&U__namespace.default.createElement("div",{style:Io.shadowLeft}),U__namespace.default.createElement("div",{ref:s,style:b,onTouchStart:m?f:void 0},x.map((h,P)=>{if(h?.isCustomComponent)return U__namespace.default.createElement("div",{key:`custom-${P}`,onClick:t,style:m?Io.snapStart:void 0},h.component?.({onClick:t,showLabel:!e}));let g=o==="publishing"||o==="uploading",z={...Io.button,...g&&Io.buttonDisabled,...m&&Io.snapStart};return U__namespace.default.createElement("button",{key:h?.id,type:"button",onClick:h?.action,disabled:g,title:e?h?.label:void 0,style:z,onMouseEnter:M=>{g||(M.currentTarget.style.opacity="0.8");},onMouseLeave:M=>{M.currentTarget.style.opacity="1";}},U__namespace.default.createElement("span",{style:Io.iconWrapper},h?.icon),!e&&h?.label&&U__namespace.default.createElement("span",{style:{...Io.label,...Io.labelDesktop}},h?.label))})),m&&c&&U__namespace.default.createElement("div",{style:Io.shadowRight}))}function AmA(A){return U__namespace.createElement("svg",{width:24,height:24,fill:"none",...A},U__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"}),U__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 emA=U__namespace.memo(AmA),jL=emA;function cu({disabled:A=true,type:e,onSubmit:t,isLoading:r,isEditingMode:n}){let{isMobile:o}=Mr(),{locale:a}=y(),s={normal:{label:n?iA(a,"edit-label-button"):iA(a,"post-trigger-publish-btn-label")},schedule:{label:iA(a,"post-trigger-schedule-btn-label"),icon:o?U__namespace.default.createElement(jL,null):U__namespace.default.createElement(lucideReact.Clock,{className:"h-4 w-4"})}};return U__namespace.default.createElement(D,{disabled:A,type:"button",onClick:t,isLoading:r,className:chunkQFPEDIYS_js.g("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 Sh({onActionClick:A,canSubmit:e,onSubmit:t,onSchedule:r,hideScheduleOption:n=false,handleCloseMainModal:o,isEditingMode:a}){let s=xn(i=>i.status);return U__namespace.default.createElement("div",{className:"w-full flex items-center justify-between"},U__namespace.default.createElement(g7,{handleCloseMainModal:o,onlyIcon:true,onClick:A}),U__namespace.default.createElement("div",{className:"flex items-center gap-2"},n?null:U__namespace.default.createElement(cu,{onSubmit:r,isEditingMode:a,type:"schedule",disabled:s==="publishing"||s==="uploading"}),U__namespace.default.createElement(cu,{onSubmit:t,type:"normal",isLoading:s==="publishing"||s==="uploading",disabled:!e})))}var y7=(A,e)=>{let{user:t,isGettingUser:r,profileApiUrl:n}=y(),o=usehooks.useDebounce(A,400),a=async({pageParam:p=1})=>{if(!n||!t?.id)return {getPageUsersByUser:{data:[],meta:{}}};try{let f=await Q9.request(n,i6,{options:{filter:o??"",page:p,perPage:10}},{"x-access-token":t?.accessToken??""}),v=f?.getPageUsersByUser?.data??[];return {getPageUsersByUser:{data:await Promise.all(v.map(async b=>{let h=b?.page;if(!h?.id)return {id:"",name:"",avatar:"",sector:void 0};if(!h?.sectorId)return {...h,sector:void 0};try{let g=(await Q9.request(n,qv,{id:h?.sectorId},{"x-access-token":t?.accessToken??""}))?.sector?.name??void 0;return {...h,sector:g}}catch{return {...h,sector:void 0}}})),meta:f?.getPageUsersByUser?.meta}}}catch(f){throw f}},{data:s,isLoading:i,fetchNextPage:l,hasNextPage:c,isFetchingNextPage:d}=$A({queryKey:["page-users-by-user",t?.id,o],queryFn:a,initialPageParam:1,enabled:!!t?.id||e,getNextPageParam:p=>{let f=p?.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(p=>p?.getPageUsersByUser?.data??[])?.filter(Boolean)?.reverse()??[]).filter(p=>{if(!o?.trim())return true;let f=o.toLowerCase();return p?.name?.toLowerCase()?.includes(f)||p?.sector?.toLowerCase()?.includes(f)}),isGettingPages:r||i,fetchNextPage:l,hasNextPage:c,isFetchingNextPage:d}};function nmA(A){return U__namespace.createElement("svg",{width:15,height:15,fill:"none",...A},U__namespace.createElement("rect",{width:15,height:14.5,rx:7.25,fill:"#A0AEC0"}),U__namespace.createElement("path",{d:"M11 5.5L7.5 9 4 5.5",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))}var omA=U__namespace.memo(nmA),HL=omA;function Lh({avatar:A,headline:e,name:t,type:r,isSelected:n,onPickAProfile:o}){return U__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},U__namespace.default.createElement("div",{className:"flex items-center gap-3"},U__namespace.default.createElement($,{name:t??"",src:A??"",className:"w-[2.25rem] h-[2.25rem]",type:r}),U__namespace.default.createElement("div",{className:"flex flex-col"},U__namespace.default.createElement("span",{className:"font-medium text-[#050910] md:font-bold text-body-md md:text-[1rem] truncate"},UA(t??"")),U__namespace.default.createElement("span",{className:"font-medium text-[#687588] text-body-sm truncate"},Ze(e??"",25)))),U__namespace.default.createElement(Kc,{isSelected:n,onSelect:o}))}function Eh({onPickAProfile:A,isProfileSwitcherOpened:e=false,onCloseProfileSwitcherModal:t,selectedProfileId:r}){let{isMobile:n}=Mr(),{user:o,locale:a}=y(),s=U.useRef(null),{fetchNextPage:i,hasNextPage:l,isGettingPages:c,pages:d,isFetchingNextPage:m}=y7("",e),u=iA(a,"switch-profile-title"),[p]=oX__default.default({loading:m,hasNextPage:!!l,onLoadMore:i,disabled:c||!l,rootMargin:"0px 0px 200px 0px"}),f=()=>U__namespace.default.createElement("div",{ref:s,className:"flex flex-col gap-4 overflow-y-auto pr-2 custom-scrollbar min-h-[10rem]"},o&&U__namespace.default.createElement(Lh,{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=>U__namespace.default.createElement(Lh,{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)&&U__namespace.default.createElement("div",{ref:p,className:"flex justify-center py-2"},U__namespace.default.createElement(yA,{className:"w-6 h-6"})));return n?U__namespace.default.createElement(za,{isOpen:e,onClose:t,className:"w-full",title:U__namespace.default.createElement("span",{className:"font-medium text-[#050910] text-body-md truncate"},u)},U__namespace.default.createElement("div",{className:"mt-2"},f())):U__namespace.default.createElement(Lr,{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"},U__namespace.default.createElement("span",{className:"font-medium text-[#050910] md:font-bold text-body-md md:text-[1rem] truncate"},u),f())}function xm({profile:A,mode:e,onPickAProfile:t,restrictProfileSelection:r=false,onToggleSwitcher:n,renderOnlyModal:o=false}){let[a,s]=usehooks.useToggle(o),{locale:i,user:l}=y(),{pages:c,isGettingPages:d}=y7(""),m=!d&&c?.length===0,u=!!l&&!r||m,p=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),p(false);};return o?U__namespace.default.createElement(Eh,{isProfileSwitcherOpened:a,onCloseProfileSwitcherModal:()=>p(false),onPickAProfile:v,selectedProfileId:A?.id}):U__namespace.default.createElement(U__namespace.default.Fragment,null,U__namespace.default.createElement("div",{className:chunkQFPEDIYS_js.g("flex items-start gap-3",{"flex-row":e==="full"})},U__namespace.default.createElement("div",{className:"relative inline-flex"},U__namespace.default.createElement($,{name:A?.name??"",src:A?.avatar??"",onClick:f,className:chunkQFPEDIYS_js.g("cursor-pointer",{"w-[2.25rem] h-[2.25rem]":e==="full","w-10 h-10":e==="short"}),type:A?.type}),(m||e==="short"&&u)&&U__namespace.default.createElement("div",{className:"absolute -bottom-1 -right-1 rounded-full p-0.5 flex items-center justify-center cursor-pointer",onClick:()=>p(true)},U__namespace.default.createElement(HL,{className:"text-[#050910]"}))),e==="full"&&U__namespace.default.createElement("div",{onClick:()=>u&&p(true),role:"button",tabIndex:0,className:chunkQFPEDIYS_js.g("flex flex-col min-w-0 text-left",{"cursor-pointer":u})},U__namespace.default.createElement("div",{className:"flex items-center gap-1"},U__namespace.default.createElement("span",{className:"font-medium text-[#050910] md:font-bold text-body-md md:text-[1rem] truncate"},UA(A?.name??"")),u&&U__namespace.default.createElement(lucideReact.ChevronDown,{className:"text-[#050910] h-5 w-5 "})),U__namespace.default.createElement("span",{className:"font-medium text-[#687588] text-body-md truncate"},Ze(A?.headline??A?.sector??"",20)))),U__namespace.default.createElement(Eh,{isProfileSwitcherOpened:a,onCloseProfileSwitcherModal:()=>p(false),onPickAProfile:v,selectedProfileId:A?.id}))}function OL({selectedProfile:A,currentType:e,onProfileChange:t,onToggleSwitcher:r,renderScheduleInfo:n,renderMobileHeader:o}){let{isMobile:a}=Mr(),{locale:s}=y(),[i,l]=U.useState("all"),[c,d]=U.useState(false),m=[{id:"all",label:iA(s,"post-trigger-actions-select-all"),value:"all"},{id:"connections",label:iA(s,"post-trigger-actions-select-connections"),value:"connections"},{id:"communities",label:iA(s,"post-trigger-actions-select-communities"),value:"communities"}],u=f=>{l(f),d(false);},p=U__namespace.default.createElement("div",{className:"flex flex-col gap-1"},m.map(f=>U__namespace.default.createElement("button",{key:f.id,onClick:()=>u(f.id),className:chunkQFPEDIYS_js.g("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")},U__namespace.default.createElement("span",{className:"font-medium"},f.label),i===f.id&&U__namespace.default.createElement(lucideReact.Check,{className:"w-5 h-5"}))));return a?U__namespace.default.createElement("div",{className:"w-full flex flex-col gap-2"},o,U__namespace.default.createElement("div",{className:"w-full flex md:mt-6 items-center justify-between p-2 bg-white"},U__namespace.default.createElement("div",{className:"flex gap-2 flex-col"},U__namespace.default.createElement(xm,{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),U__namespace.default.createElement("div",{onClick:()=>d(true),className:"relative"},U__namespace.default.createElement("div",{className:"pointer-events-none"},U__namespace.default.createElement(V1,{className:"w-fit text-body-sm",options:m,value:i,reset:false,onChange:()=>{}})))),U__namespace.default.createElement(za,{isOpen:c,onClose:()=>d(false)},p)):U__namespace.default.createElement("div",{className:"w-full flex md:mt-6 items-center justify-between"},U__namespace.default.createElement("div",{className:"flex gap-2 flex-col"},U__namespace.default.createElement(xm,{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),U__namespace.default.createElement("div",null,U__namespace.default.createElement(V1,{className:"w-fit",options:m,value:i,reset:false,onChange:f=>{l(f?f.id:"");}})))}var Xh="mirantes_post_draft",VL=async A=>await idbKeyval.set(Xh,A),T7=async()=>await idbKeyval.get(Xh),mu=async()=>await idbKeyval.del(Xh);async function kL(A){return A.type!=="image"?A.file:new Promise(e=>{let t=new Image;t.crossOrigin="anonymous",t.src=A.preview,t.onload=()=>{let r=document.createElement("canvas"),n=r.getContext("2d");if(!n)return e(A.file);let o=A.rotation||0,a=o%180!==0;r.width=a?t.height:t.width,r.height=a?t.width:t.height,n.translate(r.width/2,r.height/2),n.rotate(o*Math.PI/180);let s={none:"none",grayscale:"grayscale(100%)",sepia:"sepia(100%)",vivid:"saturate(200%)",fade:"opacity(70%)",warm:"sepia(30%) saturate(140%)",cool:"hue-rotate(30deg) saturate(110%)"};n.filter=s[A.filter||"none"],n.drawImage(t,-t.width/2,-t.height/2),r.toBlob(i=>{if(!i)return e(A.file);let l=new File([i],A.file.name,{type:"image/jpeg",lastModified:Date.now()});e(l);},"image/jpeg",.9);},t.onerror=()=>e(A.file);})}var qL=/@([^[\]]+)\[uid:([^\]]+)\]\[([^\]]+)\]/g;function M7(A){let e=[],t=A.matchAll(qL);for(let r of t){let[,n,o,a]=r;e.push({displayName:n,mentionedId:o,mentionType:a});}return e}function ZL(A){let e=[],t=[...A.matchAll(qL)];if(t.length===0)return [A];let r=0;for(let n of t){let[o,a,s]=n,i=n.index;i>r&&e.push(A.slice(r,i)),e.push(U__namespace.default.createElement("span",{key:`${s}-${i}`,className:"inline-flex items-center px-1.5 py-0.5 rounded-md bg-primary/10 text-primary text-xs font-semibold"},a)),r=i+o.length;}return r<A.length&&e.push(A.slice(r)),e}function va(){return `${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var bmA=["image/jpeg","image/jpg","image/png","image/gif","image/webp","image/svg+xml","image/bmp","image/tiff","image/heic","image/heif"];function LL(A){return bmA.includes(A.type)||A.type.startsWith("image/")?"image":A.type.startsWith("video/")?"video":A.type==="application/pdf"||A.name?.endsWith(".pdf")?"pdf":null}function pu(A){return A.startsWith("http")||A.startsWith("https")}function EL(A){return {id:A.id,content:A.content,scheduledAt:A.scheduledAt??"",images:A.images||[],videos:A.videos||[],attachment:A.attachment}}function XL({initialFiles:A,initialContent:e,initialMentions:t,fileInputRef:r,onClose:n,isOpened:o,entity:a,optimisticUpdateType:s,editingPost:i,resetPostTrigger:l,activeAction:c}){let d=xn(MA=>MA.startPost),m=xn(MA=>MA.startUpdate),u=xn(MA=>MA.status),p=xn(MA=>MA.isUpdating),[f,v]=U.useState([]),[x,b]=U.useState(null),[h,P]=U.useState("normal"),[g,z]=U.useState(0),[M,w]=U.useState(""),[j,T]=U.useState(""),[Z,V]=U.useState([]),[W,O]=U.useState([]),[k,L]=U.useState(false),[X,S]=U.useState(null),[I,N]=U.useState(false),[q,J]=U.useState(false),[C,R]=U.useState(false),Y=U.useRef(f),AA=U.useRef(Z),eA=U.useRef(x),oA=U.useRef(X);U.useEffect(()=>{Y.current=f;},[f]),U.useEffect(()=>{AA.current=Z;},[Z]),U.useEffect(()=>{eA.current=x;},[x]),U.useEffect(()=>{oA.current=X;},[X]);let ZA=u==="uploading"||u==="publishing"||p,QA=u!=="idle"&&u!=="error"&&u!=="success"||p,NA=U.useCallback(()=>{Y.current.forEach(MA=>{MA.preview&&!pu(MA.preview)&&URL.revokeObjectURL(MA.preview);}),v([]),b(null),P("normal"),z(0),T(""),V([]),O([]),w(""),L(false),S(null),N(false),J(false),R(false),mu();},[]),RA=U.useCallback(MA=>{if(!MA)return;let SA=M7(MA.content??"");if(S(MA),w(MA?.scheduledAt||""),T(MA?.content??""),V(SA),O([]),R(true),J(false),MA?.images&&MA?.images?.length>0){let LA=MA.images.map(ge=>({id:va(),file:new File([],ge.url??""),type:"image",preview:ge.url,rotation:0,zoom:1,filter:"none"}));v(LA),b("image");}else if(MA.videos&&MA?.videos?.length>0){let LA=MA.videos.map(ge=>({id:va(),file:new File([],ge.url??""),type:"video",preview:ge.url,rotation:0,zoom:1,filter:"none"}));v(LA),b("video");}else if(MA?.attachment?.url){let LA=new File([],MA.attachment.url??""),ge=LL(LA);v([{id:va(),file:LA,type:ge,preview:MA.attachment.url??"",rotation:0,zoom:1,filter:"none"}]),b(ge);}else v([]),b(null);P("normal"),N(true);},[]);im("edit-post-on-schedule",RA),U.useEffect(()=>{if(!o){N(false),J(false),R(false);return}if(I||ZA)return;(async()=>{if(i){let LA=EL(i);RA(LA);return}let SA=false;if(e&&T(e),t&&t.length>0&&V(t),A&&A.length>0&&OA(A),!e&&!t&&(!A||A.length===0)){let LA=await T7();LA&&(SA=true,LA.content&&T(LA.content),LA.files?.length&&OA(LA.files));}SA&&R(true),N(true);})();},[o,ZA,A,e,t,i,RA,I]),U.useEffect(()=>{if(o&&u==="success"&&!p){let MA=setTimeout(()=>{let SA=xn.getState().reset;SA(),NA(),N(false);},3500);return ()=>clearTimeout(MA)}},[o,u,p,NA]);let re=U.useMemo(()=>!!i||!!X,[i,X]),nA=U.useMemo(()=>{if(X){let MA=j?.trim()!==(X.content?.trim()||""),SA=!!(X.images?.length||X.videos?.length||X.attachment),LA=f.length>0,ge=SA!==LA,De=M!==(X.scheduledAt||"");return MA||ge||De}if(i&&!X){let MA=j?.trim()!==(i.content?.trim()||""),SA=!!(i.images?.length||i.videos?.length||i.attachment),LA=f.length>0,ge=SA!==LA,De=M!==(i.scheduledAt||"");return MA||ge||De}return j?.trim()?.length>0||f?.length>0},[j,f,X,i,M]),OA=U.useCallback(MA=>{if(MA.length===0)return;J(true),R(false);let SA=MA.map($e=>({file:$e,type:LL($e)})).filter($e=>$e.type!==null);if(SA.length===0)return;let LA=eA.current,ge=Y.current;if(LA==="pdf")return;let De=SA[0].type;if(LA&&LA!==De||De==="pdf"&&ge.length>0)return;let ct=(De==="pdf"?[SA[0]]:SA).filter(({file:$e})=>!ge.some(At=>At.file.name===$e.name&&At.file.size===$e.size));if(ct.length===0)return;let er=ct.map(({file:$e})=>({id:va(),file:$e,type:De,preview:URL.createObjectURL($e),rotation:0,zoom:1,filter:"none"}));b(De),v($e=>De==="pdf"?($e.forEach(At=>{At.preview&&!pu(At.preview)&&URL.revokeObjectURL(At.preview);}),er):[...$e,...er]);},[]),Be=U.useCallback(MA=>{MA&&(J(true),R(false),T(SA=>SA.length>0?`${SA} ${MA}`:MA));},[]),jA=U.useCallback(()=>{if(P("normal"),l?.(),ZA){n();return}if(C&&nA&&!q){n();return}nA&&q?L(true):n();},[nA,n,ZA,l,C,q]),VA=U.useCallback(()=>{NA(),n();},[NA,n]),qe=U.useCallback(async()=>{!X&&!i&&await VL({content:j,files:Y.current.map(MA=>MA.file)}),n();},[j,n,X,i]),JA=U.useCallback(MA=>MA.type==="image"&&(MA.rotation!==0||MA.filter!=="none"||MA.zoom!==1),[]),Xe=U.useCallback(async MA=>await Promise.all(MA.map(async LA=>{if(LA.type==="image")try{return JA(LA)?await kL(LA):LA.file}catch(ge){return console.error("Image processing failed for file:",LA.file.name,ge),LA.file}return LA.file})),[JA]),Or=U.useCallback(async()=>{let MA=X||(i?EL(i):null);if(MA){let SA={id:MA.id,content:j,optimisticUpdateType:s,scheduledAt:M||null},LA=MA.images||[],ge=MA.videos||[],De=MA.attachment,Ae=Y.current.filter(kt=>pu(kt.preview)),ct=Y.current.filter(kt=>!pu(kt.preview)),er=Ae.filter(kt=>JA(kt)),$e=[...ct,...er],At=Ae.filter(kt=>!JA(kt));if($e.length>0){let kt=await Xe($e);SA.pendingFiles=kt;let tn=At.map(Gn=>Gn.preview);if(LA.length>0){let Gn=LA.filter(Tt=>tn.includes(Tt?.url??""));Gn.length>0&&(SA.images=Gn);}if(ge.length>0){let Gn=ge.filter(Tt=>tn.includes(Tt?.url??""));Gn.length>0&&(SA.videos=Gn);}De&&tn.includes(De?.url??"")&&(SA.attachment=De);}else if(At.length>0){let kt=At.filter(Tt=>Tt.type==="image").map(Tt=>({url:Tt.preview})),tn=At.filter(Tt=>Tt.type==="video").map(Tt=>({url:Tt.preview})),Gn=At.find(Tt=>Tt.type==="pdf");kt.length&&(SA.images=kt),tn.length&&(SA.videos=tn),Gn&&(SA.attachment={url:Gn.preview,type:"pdf",title:Gn.file.name});}else SA.images=[],SA.videos=[],SA.attachment=null;AA.current.length>0?SA.mentions=AA.current.map(({mentionType:kt,mentionedId:tn})=>({mentionType:kt,mentionedId:tn})):SA.mentions=[],m(SA,a,NA),n();}else {let SA={content:j,postType:c==="clips"?"REEL":"NORMAL",optimisticUpdateType:s,entityType:a.type?.toUpperCase(),mentions:AA.current.map(({mentionType:De,mentionedId:Ae})=>({mentionType:De,mentionedId:Ae}))};if(M){let De=typeof M=="string"?dateFns.parseISO(M):M;dateFns.isValid(De)&&(SA.scheduledAt=dateFnsTz.formatInTimeZone(De,"UTC","yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"));}a.type==="page"?SA.page={id:a.id??"",name:a.name??"",sector:a.sector??"",slug:a.slug??"",avatar:a.avatar??""}:a.type==="community"&&(SA.community={id:a.id??"",name:a.name??"",slug:a.slug??"",avatar:a.avatar??""});let LA=Y.current,ge=await Xe(LA);d(SA,ge,a,NA),n();}},[j,M,a,s,d,m,n,NA,X,i,Xe,JA,c]),Ga=U.useCallback(MA=>{switch(J(true),R(false),MA){case "media":r.current?.click();break;case "schedule-a-post":P("schedule-a-post");break;case "mention":P("has-mentioned"),T(SA=>{if(SA.endsWith("@"))return SA;let LA=SA.length>0&&!SA.endsWith(" ");return `${SA}${LA?" ":""}@`});break;default:P("normal");}},[r]),Ve=U.useCallback(MA=>{J(true),R(false),v(SA=>{let LA=SA.find(De=>De.id===MA);LA?.preview&&!pu(LA.preview)&&URL.revokeObjectURL(LA.preview);let ge=SA.filter(De=>De.id!==MA);return ge.length===0&&(b(null),P("normal")),ge});},[]),xr=U.useCallback((MA,SA)=>{J(true),R(false),v(LA=>LA.map(ge=>ge.id===MA?{...ge,...SA}:ge));},[]),Ka=U.useCallback((MA,SA)=>{J(true),R(false),V(LA=>LA.find(ge=>ge.mentionedId===MA.mentionedId)?LA:[...LA,MA]),O(LA=>LA.find(ge=>ge.id===SA.id)?LA:[...LA,SA]);},[]),Qi=U.useCallback(MA=>{J(true),R(false),V(SA=>SA.filter(LA=>LA.mentionedId!==MA)),O(SA=>SA.filter(LA=>LA.id!==MA));},[]),$s=U.useCallback(MA=>{J(true),R(false),T(MA);},[]);return {state:{mediaFiles:f,mediaType:x,contentView:h,editingIndex:g,scheduledAt:M,rawText:j,mentionTokens:W,showDiscardConfirm:k,hasChanges:nA,isSubmitting:QA,isEditingMode:re},isCreatingThePost:QA,actions:{setContentView:P,setEditingIndex:z,setRawText:$s,setScheduledAt:w,addFiles:OA,handlePasteText:Be,removeFile:Ve,updateMediaFile:xr,acceptMention:Ka,removeMention:Qi,handleClickActions:Ga,handleRequestClose:jA,handleConfirmDiscard:VA,handleSaveDraft:qe,handleSubmit:Or,setShowDiscardConfirm:L}}}var IL=(A,e,t,r,n)=>{let o=[];switch(e){case "profile":o.push(["posts","profile",t]),o.push(["postsByUser",t]);break;case "pages":o.push(["posts","pages",r?.createPostInput?.page?.id]);break;case "community":o.push(["posts","community",r?.createPostInput?.community?.id]);break;default:o.push(["posts",t]);break}o.forEach(a=>{A.invalidateQueries({queryKey:a});});},Ih=A=>!!A?.pages?.[0]?.postsByUser?.data,hmA=(A,e,t)=>!A||!Ih(A)?A:{...A,pages:A.pages.map(r=>({...r,postsByUser:{...r.postsByUser,data:r.postsByUser?.data?.map(n=>n?.id===e?t(n):n)??[]}}))};function N7(A){if(A?.postMap)return A;let e={};return A.pages.forEach(t=>{t?.recommendedPostsUser?.data?.forEach(r=>{r.normalPosts?.forEach(n=>e[n.id]=n),r.reels?.forEach(n=>e[n.id]=n);});}),{...A,postMap:e}}function PmA(A,e,t){if(!A)return A;let r=N7(A),n=r.postMap?.[e];if(!n)return A;let o=t(n);return {...r,postMap:{...r.postMap,[e]:o}}}function j7({optimisticUpdateType:A,entity:e,payload:t,filter:r,queryClient:n,mode:o}){let s=(()=>{switch(A){case "profile":return [["posts","profile",e?.id],["postsByUser",e?.id],["postsByUserPaginated",e?.id]];case "pages":return [["posts","pages",e?.id]];case "community":return [["posts","community",e?.id]];case "feed-with-go":return [r?.length&&r!=="all"?["timeline",e?.id,r]:["timeline",e?.id]];default:return [r?.length&&r!=="all"?["posts",e?.id,r]:["posts",e?.id]]}})();if(o==="update"){let i=t,l=i?.updatePostInput?.id,c=m=>({...m,content:i.updatePostInput.content??m.content,attachment:i.updatePostInput.attachment,images:i.updatePostInput.images?.map((u,p)=>({id:m.images?.[p]?.id??va(),url:u?.url??""}))??m.images,videos:i.updatePostInput.videos?.map((u,p)=>({id:m.videos?.[p]?.id??va(),url:u?.url??""}))??m.videos,scheduledAt:i.updatePostInput.scheduledAt});[...s,["posts",e?.id],["posts",e?.id,r],["posts",e?.id,"following"],["postsByUser",e?.id]].forEach(m=>{n?.setQueryData(m,u=>Ih(u)?hmA(u,l,c):PmA(u,l,c));});}else o==="creation"&&s.forEach(i=>{n?.setQueryData(i,l=>{if(!l)return l;let c=e?.type==="page"?{id:e?.id,name:e?.name,slug:e?.slug,logo:e?.avatar}:void 0,d=e?.type==="community"?{id:e?.id??"",name:e?.name??"",slug:e?.slug,image:e?.avatar}:void 0,m=t,u=va(),p={id:`temp-${u}`,clientId:u,postType:m.createPostInput.postType,user:e?.type==="user"?{id:e.id,name:e.name,headline:e.headline,slug:e.slug,avatar:e?.avatar??""}:{id:"",name:"",headline:"",slug:"",avatar:""},createdAt:new Date().toISOString(),expiresAt:new Date(Date.now()+48*60*60*1e3).toISOString(),page:c,community:d,images:m?.createPostInput?.images?.map(v=>({id:va(),url:v?.url??""}))??[],videos:m?.createPostInput?.videos?.map(v=>({id:va(),url:v?.url??""}))??[],content:m?.createPostInput?.content??"",attachment:{type:m?.createPostInput?.attachment?.type??"",title:m?.createPostInput?.attachment?.title??"",url:m?.createPostInput?.attachment?.url??""}};if(Ih(l))return {...l,pages:l.pages.map((v,x)=>x===0?{...v,postsByUser:{...v.postsByUser,data:[p,...v.postsByUser?.data??[]]}}:v)};let f=N7(l);return {...f,postMap:{...f.postMap,[p.id]:p},pages:f.pages.map(v=>({...v,recommendedPostsUser:{...v.recommendedPostsUser,data:v?.recommendedPostsUser?.data.map(x=>({...x,normalPosts:x.normalPosts?.length===0?[p]:[p,...x.normalPosts]}))}}))}});});}var RL=Q9.gql`
|
|
3313
3313
|
mutation UpdatePost($updatePostInput: UpdatePostInput!) {
|
|
3314
3314
|
updatePost(updatePostInput: $updatePostInput) {
|
|
3315
3315
|
id
|
|
@@ -3370,7 +3370,7 @@ mutation CreateParticipant($input: CreateParticipantInput!) {
|
|
|
3370
3370
|
success
|
|
3371
3371
|
}
|
|
3372
3372
|
}
|
|
3373
|
-
`;async function _L(A,e,t){try{return (await Q9__default.default(A??"",QL,{id:t.id},{"x-access-token":e})).deletePost}catch(r){throw r}}function $L(){let{successToast:A,errorToast:e}=kA(),{feedApi:t,user:r,queryClient:n,locale:o}=y(),{mutate:a,isPending:s}=rA({mutationFn:({id:i})=>_L(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:iA(o,"delete-post-toast-title"),message:iA(o,"delete-post-toast-message")});},onError:()=>{e({title:iA(o,"delete-post-toast-error-title"),message:iA(o,"delete-post-toast-error-message")});}});return {deleteAPost:a,isDeletingAPost:s}}function AE({onPublishNow:A,onChangeSchedule:e,onEdit:t,onDelete:r,isLoading:n=false}){let{isMobile:o}=Mr(),{locale:a}=y(),[s,i]=U.useState(false),l=[{label:iA(a,"publish-now"),icon:U__namespace.default.createElement(lucideReact.Send,{size:18}),onClick:()=>{A(),i(false);},variant:"default"},{label:iA(a,"change-schedule"),icon:U__namespace.default.createElement(lucideReact.CalendarClock,{size:18}),onClick:()=>{e(),i(false);},variant:"default"},{label:iA(a,"edit-post"),icon:U__namespace.default.createElement(tc,null),onClick:()=>{t(),i(false);},variant:"default"},{label:iA(a,"delete-post"),icon:U__namespace.default.createElement(Q3,null),onClick:()=>{r(),i(false);},variant:"danger"}],c=()=>U__namespace.default.createElement("div",{className:"flex flex-col w-full bg-white"},l.map((m,u)=>U__namespace.default.createElement("button",{key:u,onClick:m.onClick,disabled:n,className:chunkQFPEDIYS_js.g("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",u!==l.length-1&&"border-b border-gray-100")},n?U__namespace.default.createElement("span",{className:"flex items-center justify-center min-w-[20px]"},U__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"},U__namespace.default.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),U__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
|
|
3373
|
+
`;async function _L(A,e,t){try{return (await Q9__default.default(A??"",QL,{id:t.id},{"x-access-token":e})).deletePost}catch(r){throw r}}function $L(){let{successToast:A,errorToast:e}=kA(),{feedApi:t,user:r,queryClient:n,locale:o}=y(),{mutate:a,isPending:s}=rA({mutationFn:({id:i})=>_L(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:iA(o,"delete-post-toast-title"),message:iA(o,"delete-post-toast-message")});},onError:()=>{e({title:iA(o,"delete-post-toast-error-title"),message:iA(o,"delete-post-toast-error-message")});}});return {deleteAPost:a,isDeletingAPost:s}}function AE({onPublishNow:A,onChangeSchedule:e,onEdit:t,onDelete:r,isLoading:n=false}){let{isMobile:o}=Mr(),{locale:a}=y(),[s,i]=U.useState(false),l=[{label:iA(a,"publish-now"),icon:U__namespace.default.createElement(lucideReact.Send,{size:18}),onClick:()=>{A(),i(false);},variant:"default"},{label:iA(a,"change-schedule"),icon:U__namespace.default.createElement(lucideReact.CalendarClock,{size:18}),onClick:()=>{e(),i(false);},variant:"default"},{label:iA(a,"edit-post"),icon:U__namespace.default.createElement(tc,null),onClick:()=>{t(),i(false);},variant:"default"},{label:iA(a,"delete-post"),icon:U__namespace.default.createElement(Q3,null),onClick:()=>{r(),i(false);},variant:"danger"}],c=()=>U__namespace.default.createElement("div",{className:"flex flex-col w-full bg-white"},l.map((m,u)=>U__namespace.default.createElement("button",{key:u,onClick:m.onClick,disabled:n,className:chunkQFPEDIYS_js.g("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",u!==l.length-1&&"border-b border-gray-100")},n?U__namespace.default.createElement("span",{className:"flex items-center justify-center min-w-[20px]"},U__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"},U__namespace.default.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),U__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
|
|
3374
3374
|
12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`}))):U__namespace.default.createElement(U__namespace.default.Fragment,null,U__namespace.default.createElement("span",{className:chunkQFPEDIYS_js.g("flex items-center justify-center min-w-[20px]",m.variant==="danger"?"text-red-500":"text-gray-400")},m.icon),U__namespace.default.createElement("span",{className:"truncate"},m.label))))),d=U__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"},U__namespace.default.createElement(lucideReact.MoreHorizontal,{size:20}));return o?U__namespace.default.createElement(U__namespace.default.Fragment,null,d,U__namespace.default.createElement(vt,{isOpen:s,onClose:()=>i(false),className:"h-72",side:"bottom"},U__namespace.default.createElement("div",{className:"pb-8 pt-2"},U__namespace.default.createElement(c,null)))):U__namespace.default.createElement(X1__namespace.Root,{open:s,onOpenChange:i},U__namespace.default.createElement(X1__namespace.Trigger,{asChild:true},d),U__namespace.default.createElement(X1__namespace.Portal,null,U__namespace.default.createElement(X1__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"},U__namespace.default.createElement(c,null))))}var LmA=()=>U__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},U__namespace.createElement("g",{id:"freepik--Floor--inject-62"},U__namespace.createElement("ellipse",{id:"freepik--floor--inject-62",cx:"251.12",cy:"333.69",fill:"#f5f5f5",rx:"238.53",ry:"140.13"})),U__namespace.createElement("g",{id:"freepik--Shadows--inject-62",fill:"#e0e0e0"},U__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"}),U__namespace.createElement("ellipse",{id:"freepik--shadow--inject-62",cx:"423.78",cy:"358.9",rx:"37.52",ry:"21.66"}),U__namespace.createElement("ellipse",{id:"freepik--shadow--inject-62",cx:"319.05",cy:"373.47",rx:"55.81",ry:"32.22"})),U__namespace.createElement("g",{id:"freepik--Device--inject-62"},U__namespace.createElement("g",{id:"freepik--Mobile--inject-62"},U__namespace.createElement("g",{id:"freepik--device--inject-62"},U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"})))),U__namespace.createElement("g",{id:"freepik--Plants--inject-62"},U__namespace.createElement("g",{id:"freepik--plants--inject-62"},U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}))),U__namespace.createElement("g",{id:"freepik--Mailbox--inject-62"},U__namespace.createElement("g",{id:"freepik--mailbox--inject-62"},U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__namespace.createElement("ellipse",{cx:"118.82",cy:"312.13",fill:"#455a64",rx:"16.18",ry:"9.34"}),U__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"}),U__namespace.createElement("path",{fill:"#263238",d:"M114.66 196.95v8.17l8.33 4.8v-8.15z"}),U__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"}),U__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"}),U__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"}),U__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"}),U__namespace.createElement("path",{fill:"#455a64",d:"m137.65 208.66 28.19-16.28-.62-1.47-26.94 15.56z"}),U__namespace.createElement("g",{id:"freepik--Letter--inject-62"},U__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"}),U__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"}),U__namespace.createElement("path",{fill:"#0E9EDD",d:"M160.89 195.71"}),U__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"}),U__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"})),U__namespace.createElement("g",{id:"freepik--letter--inject-62"},U__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"}),U__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"}),U__namespace.createElement("path",{fill:"#0E9EDD",d:"M152.77 200.37"}),U__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"}),U__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"})),U__namespace.createElement("g",{id:"freepik--letter--inject-62"},U__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"}),U__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"}),U__namespace.createElement("path",{fill:"#0E9EDD",d:"M144.64 205"}),U__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"}),U__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"})),U__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"}),U__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"}),U__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"}))),U__namespace.createElement("g",{id:"freepik--trash-can--inject-62"},U__namespace.createElement("g",{id:"freepik--trash-can--inject-62"},U__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"}),U__namespace.createElement("ellipse",{cx:"423.76",cy:"293.24",fill:"#455a64",rx:"34.47",ry:"19.9"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}))),U__namespace.createElement("g",{id:"freepik--Character--inject-62"},U__namespace.createElement("g",{id:"freepik--character--inject-62"},U__namespace.createElement("g",{id:"freepik--letter--inject-62"},U__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"}),U__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"}),U__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"}),U__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"})),U__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"}),U__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"}),U__namespace.createElement("path",{fill:"#ffa8a7",d:"m319.11 116.05 2.97 18.73 18.58-.99-2.66-21.78z"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__namespace.createElement("path",{fill:"#ffa8a7",d:"m352 345.46-.44 6.5c-.42 2.47-8.85 4-10.59-.39l-.83-7.37Z"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__namespace.createElement("g",{id:"freepik--letter--inject-62"},U__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"}),U__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"}),U__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"}),U__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"})),U__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"}),U__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"})))),eE=LmA;function tE({isOpen:A,onClose:e,onConfirm:t,isLoading:r=false}){let{locale:n}=y();return U__namespace.default.createElement(ws,{isOpen:A,onClose:e,hideCloseButton:!r,closeOnClickOutside:false,className:"w-[28.125rem] mx-auto p-4 bg-white rounded-[0.5rem]"},U__namespace.default.createElement("div",{className:"flex flex-col items-center justify-center gap-6 w-full"},U__namespace.default.createElement("div",{className:"w-44 h-44 mx-auto"},U__namespace.default.createElement(eE,null)),U__namespace.default.createElement("h2",{className:"text-body-md md:text-body-lg font-bold text-dark-1 text-center"},iA(n,"delete-scheduled-post-title")),U__namespace.default.createElement("p",{className:"text-body-sm md:text-body-md text-center"},iA(n,"delete-scheduled-post-content")),U__namespace.default.createElement("div",{className:"flex w-full items-center justify-between gap-4"},U__namespace.default.createElement(D,{label:iA(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"}),U__namespace.default.createElement(D,{label:iA(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 EmA=()=>U__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},U__namespace.createElement("g",{id:"freepik--background-complete--inject-77"},U__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"}),U__namespace.createElement("path",{fill:"#e6e6e6",d:"M421.42 196.37H316.49V79.79h104.93z"}),U__namespace.createElement("path",{fill:"#f5f5f5",d:"M416.58 196.37H294.04V79.79h122.54z"}),U__namespace.createElement("path",{fill:"#fff",d:"M404.54 87.29v101.6h-98.46V87.29z"}),U__namespace.createElement("path",{fill:"#f5f5f5",d:"M355.95 85.99v104.2h-1.28V85.99z"}),U__namespace.createElement("path",{fill:"#e6e6e6",d:"M215.16 356.79H81.12V86.39h134.04z"}),U__namespace.createElement("path",{fill:"#f0f0f0",d:"M212.68 356.79H71.8V86.39h140.88z"}),U__namespace.createElement("path",{fill:"#fff",d:"M200.87 98.18v246.8H83.6V98.18z"}),U__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"}),U__namespace.createElement("path",{fill:"#e6e6e6",d:"M290.9 382.4h-25.05V276.51h25.05z"}),U__namespace.createElement("path",{fill:"#fafafa",d:"M280.43 382.4h-14.57v-14.62h29.85z"}),U__namespace.createElement("path",{fill:"#e6e6e6",d:"M439.71 382.4h-25.05V276.51h25.05z"}),U__namespace.createElement("path",{fill:"#fafafa",d:"M427.38 377.36H265.85V276.5h161.53z"}),U__namespace.createElement("path",{fill:"#fafafa",d:"M412.81 382.4h14.58v-14.62h-29.86z"}),U__namespace.createElement("path",{fill:"#f0f0f0",d:"M416.08 339.33H277.16v-25.24h138.92zM416.08 369.96H277.16v-25.24h138.92z"}),U__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"}),U__namespace.createElement("path",{fill:"#f0f0f0",d:"M416.08 308.69H277.16v-25.24h138.92z"}),U__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"}),U__namespace.createElement("path",{fill:"#f5f5f5",d:"M297.27 274.74h-4.94v-45.82h4.94z"}),U__namespace.createElement("path",{fill:"#fafafa",d:"M294.36 274.71h-1.39v-45.82h1.39z"}),U__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"}),U__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"}),U__namespace.createElement("path",{fill:"#f5f5f5",d:"M410.33 274.74h-4.94v-45.82h4.94z"}),U__namespace.createElement("path",{fill:"#fafafa",d:"M407.43 274.71h-1.39v-45.82h1.39z"}),U__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"}),U__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"})),U__namespace.createElement("g",{id:"freepik--Shadow--inject-77"},U__namespace.createElement("ellipse",{id:"freepik--path--inject-77",cx:"250",cy:"416.24",fill:"#f5f5f5",rx:"193.89",ry:"11.32"})),U__namespace.createElement("g",{id:"freepik--Speedometer--inject-77"},U__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"}),U__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)"}),U__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)"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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)"}),U__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)"}),U__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"}),U__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"})),U__namespace.createElement("g",{id:"freepik--Character--inject-77"},U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__namespace.createElement("path",{fill:"#ff8b7b",d:"m387.78 237.29.99 7.52-4.36 3.06-1.91-8.7z"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}),U__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"}))),rE=EmA;function nE({isOpen:A,onClose:e,post:t}){let{errorToast:r,successToast:n}=kA(),{locale:o}=y(),{isUpdating:a,updatePost:s}=hm(),i=()=>{s({updatePostInput:{id:t?.id??"",scheduledAt:null}},{onSuccess:()=>{n({title:iA(o,"publish-now-toast-title"),message:iA(o,"publish-now-toast-message")}),e();},onError:()=>{r({title:iA(o,"publish-now-toast-error-title"),message:iA(o,"publish-now-toast-error-message")});}});};return U__namespace.default.createElement(ws,{isOpen:A,onClose:e,hideCloseButton:!a,closeOnClickOutside:false,className:"w-[28.125rem] bg-white rounded-[0.5rem] mx-auto p-4"},U__namespace.default.createElement("div",{className:"flex flex-col items-center justify-center gap-6 w-full"},U__namespace.default.createElement("div",{className:"w-44 h-44 mx-auto"},U__namespace.default.createElement(rE,null)),U__namespace.default.createElement("h2",{className:"text-body-md md:text-body-lg font-bold text-dark-1 text-center"},iA(o,"publish-now-scheduled-post-title")),U__namespace.default.createElement("p",{className:"text-body-sm md:text-body-md text-center"},iA(o,"publish-now-scheduled-post-content")),U__namespace.default.createElement("div",{className:"flex w-full items-center justify-between gap-4"},U__namespace.default.createElement(D,{disabled:a,label:iA(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"}),U__namespace.default.createElement(D,{label:iA(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 aE="UTC",Ch=U__namespace.default.memo(({post:A,onScheduleAgain:e})=>{let{locale:t}=y(),{deleteAPost:r,isDeletingAPost:n}=$L(),[o,a]=U.useState(false),[s,i]=U.useState(false),{formattedDate:l,formattedTime:c}=U.useMemo(()=>{let x=new Date(A?.scheduledAt??"");if(!!Number.isNaN(x.getTime()))return {formattedDate:"",formattedTime:""};let h=new Intl.DateTimeFormat(t??"pt-BR",{weekday:"short",day:"2-digit",month:"short",timeZone:aE}).format(x),P=new Intl.DateTimeFormat(t??"pt-BR",{hour:"2-digit",minute:"2-digit",hour12:false,timeZone:aE}).format(x);return {formattedDate:h,formattedTime:P}},[A?.scheduledAt,t]),d=U.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=U.useCallback(()=>{let x=new CustomEvent("edit-post-on-schedule",{detail:{...A,mentions:A?.content?M7(A.content):[]}});window.dispatchEvent(x);},[A]),u=U.useCallback(()=>{r({id:A?.id},{onSuccess:()=>a(false)});},[A?.id,r]),p=U.useCallback(()=>a(x=>!x),[]),f=U.useCallback(()=>i(x=>!x),[]),v=U.useMemo(()=>A?.content?ZL(A.content):null,[A?.content]);return U__namespace.default.createElement(U__namespace.default.Fragment,null,U__namespace.default.createElement("div",{className:"flex flex-col gap-4 p-4 border rounded-md bg-white"},U__namespace.default.createElement("div",{className:"flex items-center justify-between"},U__namespace.default.createElement("div",{className:"flex items-center gap-2 text-gray-500 text-sm"},U__namespace.default.createElement("span",{className:"text-body-sm md:text-body-md text-text-secondary"},iA(t,"scheduled-date",{formattedDate:l,formattedTime:c}))),U__namespace.default.createElement(AE,{isLoading:n,onChangeSchedule:()=>e(A?.scheduledAt??"",A?.id),onPublishNow:f,onDelete:p,onEdit:m})),U__namespace.default.createElement("div",{className:"flex gap-4 items-start"},d.hasImages?U__namespace.default.createElement("div",{className:"relative w-20 h-20 flex-shrink-0"},U__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&&U__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?U__namespace.default.createElement("div",{className:"relative w-20 h-20 flex-shrink-0 bg-gray-900 rounded-md overflow-hidden border border-gray-200"},U__namespace.default.createElement("div",{className:"absolute inset-0 flex items-center justify-center bg-black/20"},U__namespace.default.createElement(lucideReact.Play,{size:24,className:"text-white fill-white"}))):d.hasAttachment?U__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"},U__namespace.default.createElement(lucideReact.FileText,{className:"text-gray-400",size:24}),U__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,U__namespace.default.createElement("div",{className:"flex flex-col flex-1 min-w-0"},U__namespace.default.createElement("p",{className:"text-[#1A1A1A] text-sm md:text-base font-normal line-clamp-3 leading-relaxed"},v??U__namespace.default.createElement("span",{className:"text-body-sm md:text-body-md text-gray-400"},iA(t,"no-caption-label"))),d.hasAttachment&&U__namespace.default.createElement("div",{className:"flex items-center gap-1 mt-2 text-xs text-gray-400"},U__namespace.default.createElement(lucideReact.Paperclip,{size:12}),U__namespace.default.createElement("span",null,iA(t,"total-pages-label",{totalPages:1})," \u2022 ",A.attachment?.type??iA(t,"file-label")))))),U__namespace.default.createElement(nE,{onClose:()=>i(false),post:A,isOpen:s}),U__namespace.default.createElement(tE,{isOpen:o,isLoading:n,onClose:()=>a(false),onConfirm:u}))});Ch.displayName="ScheduledPostItem";function Fh(){return U__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"},U__namespace.default.createElement("div",{className:"flex items-center justify-between"},U__namespace.default.createElement("div",{className:"flex items-center gap-2"},U__namespace.default.createElement("div",{className:"w-4 h-4 bg-gray-200 rounded-full"}),U__namespace.default.createElement("div",{className:"w-48 h-3 bg-gray-100 rounded"})),U__namespace.default.createElement("div",{className:"w-5 h-5 bg-gray-100 rounded-full"})),U__namespace.default.createElement("div",{className:"flex gap-4 items-start"},U__namespace.default.createElement("div",{className:"w-20 h-20 bg-gray-200 rounded-md flex-shrink-0"}),U__namespace.default.createElement("div",{className:"flex flex-col flex-1 gap-2 min-w-0"},U__namespace.default.createElement("div",{className:"w-full h-4 bg-gray-100 rounded"}),U__namespace.default.createElement("div",{className:"w-5/6 h-4 bg-gray-100 rounded"}),U__namespace.default.createElement("div",{className:"w-2/3 h-4 bg-gray-100 rounded"}),U__namespace.default.createElement("div",{className:"w-24 h-3 bg-gray-50 rounded mt-1"}))))}function sE({onScheduleAgain:A,entityId:e}){let{locale:t}=y(),r=U.useRef(null),[n,o]=U.useState(null),{fetchNextPage:a,hasNextPage:s,isFetchingNextPageOfScheduledPosts:i,isGettingScheduledPosts:l,scheduledPosts:c}=GL({enabled:true,entityId:e});U.useEffect(()=>{r.current&&o(r.current);},[]);let[d]=oX__default.default({loading:i,hasNextPage:!!s,onLoadMore:a,disabled:l||!s,rootMargin:"0px 0px 400px 0px",...n&&{scrollContainer:n}}),m=U.useMemo(()=>c?.map(f=>U__namespace.default.createElement(Ch,{onScheduleAgain:(v,x)=>A(v,x),key:f?.id,post:f})),[c]),u=l&&(!c||c?.length===0),p=!l&&(!c||c?.length===0);return U__namespace.default.createElement("div",{className:"w-full h-full flex flex-col gap-6"},U__namespace.default.createElement("div",{className:"flex flex-col gap-4"},U__namespace.default.createElement("button",{onClick:()=>A(""),className:"flex items-center gap-2 text-text-secondary hover:text-dark transition-colors w-fit group"},U__namespace.default.createElement(JL,null)),U__namespace.default.createElement("div",{className:"flex gap-x-3 items-center"},U__namespace.default.createElement(w7,null),U__namespace.default.createElement("div",{className:"flex flex-col"},U__namespace.default.createElement("p",{className:"text-body-md font-bold text-dark md:text-body-lg"},iA(t,"scheduled-posts-title")),U__namespace.default.createElement("p",{className:"text-body-sm font-medium text-text-secondary md:text-body-md"},iA(t,"scheduled-posts-description"))))),U__namespace.default.createElement("div",{ref:r,className:"w-full h-full max-h-[40rem] overflow-y-auto overscroll-contain px-2 custom-scrollbar"},u?U__namespace.default.createElement("div",{className:"flex flex-col"},Array.from({length:4}).map((f,v)=>U__namespace.default.createElement(Fh,{key:v}))):p?U__namespace.default.createElement(BL,{onSchedule:()=>A("")}):U__namespace.default.createElement(U__namespace.default.Fragment,null,U__namespace.default.createElement("div",{className:"flex flex-col gap-3"},m),(s||i)&&U__namespace.default.createElement("div",{ref:d,className:"w-full"},i&&U__namespace.default.createElement(Fh,null)))))}function iE({onBack:A,onSchedule:e,scheduledAt:t="",entityId:r}){let[n,o]=U.useState("define"),[a,s]=U.useState(""),[i,l]=U.useState(t),{isUpdating:c,updatePost:d}=hm(),m="UTC";return U__namespace.default.createElement("div",{className:"w-full flex flex-col mt-4"},n==="define"?U__namespace.default.createElement(YL,{onSchedule:p=>{if(!p)return;let f=dateFnsTz.formatInTimeZone(new Date(p),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}):U__namespace.default.createElement(sE,{entityId:r,onScheduleAgain:(p,f)=>{l(p),s(f??""),o("define");}}))}function Dh(A){let{isMobile:e}=Mr(),{locale:t}=y(),r=U.useRef(null),[n,o]=U.useState(""),a=usehooks.useDebounce(n,300),s=A.isPostTriggerModalOpened,{state:i,actions:l,isCreatingThePost:c}=XL({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:u}=reactDropzone.useDropzone({onDrop:w=>{if(w.length>0)if(i.contentView==="reels-trigger"){let j=w.filter(T=>T.type.startsWith("video/"));j.length>0&&(l.addFiles(j),l.setContentView("normal"),A.onClearActiveAction?.());}else l.addFiles(w);},noClick:true,noKeyboard:true,disabled:i.contentView==="schedule-a-post"||c,accept:{"image/*":[],"video/*":[],"application/pdf":[".pdf"]}}),{mentionList:p,isGettingMentionList:f}=E6({filter:a?{name:a}:void 0}),v=U.useMemo(()=>(p??[]).map(w=>({id:w.uid??w.id,name:w.name,type:w.type?.toUpperCase()??"USER",avatar:w.avatar??w.profileImage})),[p]);aL({onFiles:l.addFiles,enabled:A.isPostTriggerModalOpened}),U.useEffect(()=>{A?.activeAction==="clips"&&l.setContentView("reels-trigger");},[A?.activeAction]);let x=U.useMemo(()=>{if(!i.scheduledAt)return "";let w=dateFns.parseISO(i.scheduledAt);return dateFnsTz.formatInTimeZone(w,"UTC","dd/MM/yy, HH:mm")},[i.scheduledAt]),b=w=>{if(w==="articles"||w==="create-a-job")return l.handleRequestClose(),A.onClickAction(w);l.handleClickActions(w);},h=U.useMemo(()=>(i.isEditingMode||i.hasChanges)&&!c,[i.isEditingMode,i.hasChanges,c]);if(!A.isPostTriggerModalOpened)return null;let P=["schedule-a-post","edit-media","view-gallery"].includes(i.contentView),g=()=>U__namespace.default.createElement(OL,{selectedProfile:A.selectedProfile,currentType:A.currentType,onProfileChange:A.onProfileChange,onToggleSwitcher:A.onToggleSwitcher,renderMobileHeader:U__namespace.default.createElement("div",{className:"w-full flex items-center bg-white gap-x-4 justify-between"},U__namespace.default.createElement("button",{type:"button",onClick:l.handleRequestClose,"aria-label":"Close"},U__namespace.default.createElement(lucideReact.XIcon,null)),U__namespace.default.createElement("p",{className:"font-bold text-body-md text-[#111827]"},iA(t,i.isEditingMode?"edit-post":"create-post-label")),U__namespace.default.createElement(cu,{type:"schedule",disabled:c,onSubmit:()=>l.setContentView("schedule-a-post")})),renderScheduleInfo:i.scheduledAt?U__namespace.default.createElement("button",{onClick:()=>l.setContentView("schedule-a-post"),className:"text-primary text-body-sm font-medium"},U__namespace.default.createElement("span",{className:"text-text-secondary"},iA(t,"scheduled-title-content",{date:x})," "),iA(t,"edit-label")):null}),z=()=>i.contentView==="schedule-a-post"?U__namespace.default.createElement(iE,{entityId:A.entity?.id??"",onSchedule:w=>{l.setScheduledAt(w),l.setContentView("normal");},scheduledAt:i.scheduledAt,onBack:()=>{l.setScheduledAt(""),l.setContentView("normal");}}):i.contentView==="reels-trigger"?U__namespace.default.createElement(nL,{onVideoSelect:w=>{w?.type?.startsWith("video/")&&(l.addFiles([w]),l.setContentView("normal")),A.onClearActiveAction?.();}}):U__namespace.default.createElement(yL,{...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:U__namespace.default.createElement(Sh,{handleCloseMainModal:l.handleRequestClose,canSubmit:h,onSubmit:l.handleSubmit,onSchedule:()=>l.setContentView("schedule-a-post"),onActionClick:b,isEditingMode:i.isEditingMode});return U__namespace.default.createElement(U__namespace.default.Fragment,null,U__namespace.default.createElement(hf,{isOpen:s,onClose:l.handleRequestClose,className:chunkQFPEDIYS_js.g("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:P?void 0:g(),showCloseButton:!e,closeOnClickOutside:false,footer:!e||i.contentView==="schedule-a-post"?null:U__namespace.default.createElement(Sh,{handleCloseMainModal:l.handleRequestClose,canSubmit:h,onSubmit:l.handleSubmit,hideScheduleOption:true,onSchedule:()=>l.setContentView("schedule-a-post"),onActionClick:b,isEditingMode:i.isEditingMode})},U__namespace.default.createElement("div",{...d(),className:"flex-1 flex flex-col outline-none relative"},u&&U__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"}),U__namespace.default.createElement("input",{...m()}),U__namespace.default.createElement("div",{className:"flex-1 min-h-0 overflow-y-auto w-full flex flex-col"}," ",z()),!P&&U__namespace.default.createElement("div",{className:"mt-auto pt-4"},M))),U__namespace.default.createElement(oL,{isOpen:i.showDiscardConfirm,onClose:()=>l.setShowDiscardConfirm(false),onDiscard:l.handleConfirmDiscard,onSave:l.handleSaveDraft}),U__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:w=>{w.target.files&&(l.addFiles(Array.from(w.target.files)),w.target.value="");}}))}function lE({isOpen:A,onClose:e,onConfirm:t}){let{locale:r}=y(),n=(o,a={})=>iA(r,o,a);return U__namespace.default.createElement(ws,{isOpen:A,onClose:e,closeOnClickOutside:false,className:"md:p-5 text-center w-[33rem] p-6 bg-white rounded-[0.5rem]"},U__namespace.default.createElement("div",{className:"flex flex-col items-center"},U__namespace.default.createElement("div",{className:"bg-red-50 p-3 rounded-full mb-4"},U__namespace.default.createElement(lucideReact.AlertCircle,{className:"w-6 h-6 text-red-500"})),U__namespace.default.createElement("p",{className:"font-bold text-lg text-[#1A1C1E]"},n("progress-discard-title")),U__namespace.default.createElement("p",{className:"text-sm text-[#687588] mt-2 mb-6"},n("progress-discard-content")),U__namespace.default.createElement("div",{className:"flex flex-col gap-2 w-full sm:flex-row"},U__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"}),U__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 pE({onRetry:A,onCancel:e}){let{locale:t}=y(),r=(z,M={})=>iA(t,z,M),{status:n,progress:o,filesCount:a,isOpen:s,reset:i,errorType:l,error:c,isUpdating:d}=xn(),[m,u]=U.useState(false),[p,f]=U.useState(false);if(U.useEffect(()=>{if(n==="success"){f(true);let z=setTimeout(()=>{i(),f(false);},3e3);return ()=>clearTimeout(z)}},[n,i]),U.useEffect(()=>{if(n==="cancelled"){let z=setTimeout(()=>{i();},3e3);return ()=>clearTimeout(z)}},[n,i]),!s)return null;let v=()=>{["uploading","publishing","updating"].includes(n)?u(true):i();},x=n==="error"&&l!=="cancelled",b=n==="error",h=()=>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"),P=()=>n==="success"?U__namespace.default.createElement("div",{className:"bg-green-100 p-2 rounded-full animate-in fade-in zoom-in duration-300"},U__namespace.default.createElement(lucideReact.CheckCircle2,{className:"text-green-500 w-5 h-5"})):n==="cancelled"?U__namespace.default.createElement("div",{className:"bg-yellow-100 p-2 rounded-full"},U__namespace.default.createElement(lucideReact.AlertCircle,{className:"text-yellow-500 w-5 h-5"})):n==="error"?U__namespace.default.createElement("div",{className:"bg-red-100 p-2 rounded-full"},U__namespace.default.createElement(lucideReact.AlertCircle,{className:"text-red-500 w-5 h-5"})):U__namespace.default.createElement("div",{className:"bg-blue-50 p-2 rounded-full"},U__namespace.default.createElement(lucideReact.Loader2,{className:"animate-spin text-primary w-5 h-5"})),g=()=>n==="error"?"bg-red-500":n==="success"?"bg-green-500":"bg-primary";return U__namespace.default.createElement(U__namespace.default.Fragment,null,U__namespace.default.createElement("div",{className:chunkQFPEDIYS_js.g("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",p&&"animate-in fade-in slide-in-from-top-2")},U__namespace.default.createElement("div",{className:"flex items-start justify-between gap-3 md:items-center"},U__namespace.default.createElement("div",{className:"flex items-start gap-3 flex-1 min-w-0 md:items-center md:gap-4"},U__namespace.default.createElement("div",{className:"flex-shrink-0 mt-0.5 md:mt-0"},P()),U__namespace.default.createElement("div",{className:"flex flex-col flex-1 min-w-0"},U__namespace.default.createElement("span",{className:"text-sm font-semibold text-[#1A1C1E] leading-tight md:text-base"},h()),["uploading","publishing","updating"].includes(n)&&U__namespace.default.createElement("div",{className:"w-full bg-[#E4EBF1] h-1.5 rounded-full mt-2 overflow-hidden"},U__namespace.default.createElement("div",{className:chunkQFPEDIYS_js.g("h-full transition-all duration-500 ease-out",g()),style:{width:`${o}%`}})),n==="error"&&c&&U__namespace.default.createElement("p",{className:"text-xs text-red-500 mt-2"},c))),n!=="success"&&U__namespace.default.createElement("button",{onClick:v,className:"p-1.5 hover:bg-gray-100 rounded-full transition-colors -mr-1","aria-label":"Close"},U__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5 text-[#687588]"}))),(n==="error"||n==="cancelled")&&U__namespace.default.createElement("div",{className:"flex flex-col gap-2 pt-3 border-t border-[#E4EBF1] sm:flex-row"},x&&U__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:U__namespace.default.createElement(lucideReact.RefreshCw,{className:"w-3 h-3"})}),b&&U__namespace.default.createElement(D,{label:r("progress-cancel"),onClick:()=>u(true),className:"h-9 w-full border border-[#E4EBF1] text-[#687588] text-xs px-6 sm:w-auto"}))),U__namespace.default.createElement(lE,{isOpen:m,onClose:()=>u(false),onConfirm:()=>{e(),u(false);}}))}var uE=Q9.gql`
|
|
3375
3375
|
mutation CreateAPost($createPostInput: CreatePostInput!) {
|
|
3376
3376
|
createPost(createPostInput: $createPostInput) {
|
package/package.json
CHANGED
|
@@ -1,209 +1,209 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mirantes-micro/foundation-design-system",
|
|
3
|
-
"description": "A scalable and customizable design system package featuring a collection of reusable React components, utility functions, and context providers. Built to enforce visual and functional consistency across applications, this package offers accessible, themeable UI elements, shared logic through utility helpers, and context-based providers for managing global state such as themes, modals, and user sessions.",
|
|
4
|
-
"version": "1.2.
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"author": {
|
|
7
|
-
"name": "Mirantes Frontend team"
|
|
8
|
-
},
|
|
9
|
-
"sideEffects": [
|
|
10
|
-
"*.css"
|
|
11
|
-
],
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"import": {
|
|
15
|
-
"types": "./dist/index.d.ts",
|
|
16
|
-
"default": "./dist/index.js"
|
|
17
|
-
},
|
|
18
|
-
"require": {
|
|
19
|
-
"types": "./dist/index.d.ts",
|
|
20
|
-
"default": "./dist/index.js"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"./styles.css": "./dist/styles.css"
|
|
24
|
-
},
|
|
25
|
-
"source": "./src/components/fromMirantes/index.ts",
|
|
26
|
-
"module": "./dist/index.js",
|
|
27
|
-
"types": "./dist/index.d.ts",
|
|
28
|
-
"files": [
|
|
29
|
-
"dist/*"
|
|
30
|
-
],
|
|
31
|
-
"scripts": {
|
|
32
|
-
"dev": "webpack serve --mode development",
|
|
33
|
-
"build": "webpack --mode production",
|
|
34
|
-
"build:webpack": "tsup src/components/fromMirantes/index.ts --format cjs --minify",
|
|
35
|
-
"release": "pnpm build:webpack && npm publish",
|
|
36
|
-
"build:css": "npx tailwindcss -i ./src/styles/globals.css -o ./dist/styles.css --minify",
|
|
37
|
-
"prepare": "husky",
|
|
38
|
-
"format": "biome check --staged --write",
|
|
39
|
-
"test": "vitest --passWithNoTests"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@babel/core": "7.26.0",
|
|
43
|
-
"@babel/preset-env": "7.26.0",
|
|
44
|
-
"@babel/preset-react": "7.26.3",
|
|
45
|
-
"@biomejs/biome": "2.4.6",
|
|
46
|
-
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
|
|
47
|
-
"@tailwindcss/postcss7-compat": "2.2.17",
|
|
48
|
-
"@tanstack/react-query": "5.76.1",
|
|
49
|
-
"@testing-library/dom": "10.4.1",
|
|
50
|
-
"@testing-library/jest-dom": "6.9.1",
|
|
51
|
-
"@testing-library/react": "16.3.2",
|
|
52
|
-
"@types/clientjs": "0.2.2",
|
|
53
|
-
"@types/country-data": "0.0.5",
|
|
54
|
-
"@types/crypto-js": "4.2.2",
|
|
55
|
-
"@types/js-cookie": "3.0.6",
|
|
56
|
-
"@types/lodash.throttle": "^4.1.9",
|
|
57
|
-
"@types/node": "22.10.5",
|
|
58
|
-
"@types/react": "19.1.4",
|
|
59
|
-
"@types/react-detect-offline": "2.4.5",
|
|
60
|
-
"@types/react-dom": "19.1.5",
|
|
61
|
-
"@types/react-syntax-highlighter": "15.5.13",
|
|
62
|
-
"@types/uuid": "10.0.0",
|
|
63
|
-
"@vitejs/plugin-react": "5.1.4",
|
|
64
|
-
"babel-loader": "9.2.1",
|
|
65
|
-
"baseline-browser-mapping": "^2.9.19",
|
|
66
|
-
"css-loader": "6.8.1",
|
|
67
|
-
"esbuild-sass-plugin": "3.3.1",
|
|
68
|
-
"eslint": "9.17.0",
|
|
69
|
-
"eslint-plugin-react": "7.37.3",
|
|
70
|
-
"file-loader": "6.2.0",
|
|
71
|
-
"graphql-tag": "2.12.6",
|
|
72
|
-
"html-webpack-plugin": "5.5.3",
|
|
73
|
-
"husky": "9.1.7",
|
|
74
|
-
"jsdom": "28.1.0",
|
|
75
|
-
"postcss": "8.4.39",
|
|
76
|
-
"postcss-import": "16.1.0",
|
|
77
|
-
"postcss-important": "0.3.0",
|
|
78
|
-
"postcss-loader": "7.3.3",
|
|
79
|
-
"postcss-nesting": "12.1.5",
|
|
80
|
-
"prettier": "3.4.2",
|
|
81
|
-
"react-refresh": "0.16.0",
|
|
82
|
-
"sass": "^1.94.2",
|
|
83
|
-
"sass-embedded": "^1.93.3",
|
|
84
|
-
"sass-loader": "^16.0.6",
|
|
85
|
-
"style-loader": "3.3.3",
|
|
86
|
-
"tailwind-merge": "2.6.0",
|
|
87
|
-
"tailwindcss": "3.4.4",
|
|
88
|
-
"tailwindcss-animate": "1.0.7",
|
|
89
|
-
"ts-loader": "9.5.1",
|
|
90
|
-
"tsup": "8.3.5",
|
|
91
|
-
"typescript": "5.7.2",
|
|
92
|
-
"vite-tsconfig-paths": "6.1.1",
|
|
93
|
-
"vitest": "4.0.18",
|
|
94
|
-
"webpack": "5.97.1",
|
|
95
|
-
"webpack-cli": "6.0.1",
|
|
96
|
-
"webpack-dev-server": "5.2.0"
|
|
97
|
-
},
|
|
98
|
-
"dependencies": {
|
|
99
|
-
"@emoji-mart/data": "1.2.1",
|
|
100
|
-
"@emoji-mart/react": "1.1.1",
|
|
101
|
-
"@emotion/is-prop-valid": "^1.4.0",
|
|
102
|
-
"@ffmpeg/ffmpeg": "0.12.15",
|
|
103
|
-
"@ffmpeg/util": "0.12.2",
|
|
104
|
-
"@fingerprintjs/fingerprintjs": "^5.2.0",
|
|
105
|
-
"@floating-ui/react": "^0.27.16",
|
|
106
|
-
"@hookform/resolvers": "^5.2.2",
|
|
107
|
-
"@mirantes-micro/billing-v2": "0.1.50",
|
|
108
|
-
"@mirantes-micro/notifications-v2": "0.0.45",
|
|
109
|
-
"@mirantes-micro/widgets": "0.0.161",
|
|
110
|
-
"@radix-ui/react-avatar": "^1.1.10",
|
|
111
|
-
"@radix-ui/react-checkbox": "^1.3.3",
|
|
112
|
-
"@radix-ui/react-dialog": "^1.1.15",
|
|
113
|
-
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
114
|
-
"@radix-ui/react-label": "^2.1.7",
|
|
115
|
-
"@radix-ui/react-popover": "1.1.15",
|
|
116
|
-
"@radix-ui/react-radio-group": "^1.3.8",
|
|
117
|
-
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
118
|
-
"@radix-ui/react-select": "^2.2.6",
|
|
119
|
-
"@radix-ui/react-slot": "^1.2.3",
|
|
120
|
-
"@radix-ui/react-tooltip": "^1.2.8",
|
|
121
|
-
"@radix-ui/react-visually-hidden": "1.2.4",
|
|
122
|
-
"@tanstack/react-query-devtools": "5.76.1",
|
|
123
|
-
"@tiptap/core": "^3.10.7",
|
|
124
|
-
"@tiptap/extension-highlight": "^3.13.0",
|
|
125
|
-
"@tiptap/extension-horizontal-rule": "^3.13.0",
|
|
126
|
-
"@tiptap/extension-image": "^3.13.0",
|
|
127
|
-
"@tiptap/extension-list": "^3.13.0",
|
|
128
|
-
"@tiptap/extension-mention": "^3.10.7",
|
|
129
|
-
"@tiptap/extension-placeholder": "^3.10.7",
|
|
130
|
-
"@tiptap/extension-subscript": "^3.13.0",
|
|
131
|
-
"@tiptap/extension-superscript": "^3.13.0",
|
|
132
|
-
"@tiptap/extension-text-align": "^3.13.0",
|
|
133
|
-
"@tiptap/extension-typography": "^3.13.0",
|
|
134
|
-
"@tiptap/extensions": "^3.13.0",
|
|
135
|
-
"@tiptap/pm": "^3.13.0",
|
|
136
|
-
"@tiptap/react": "^3.10.7",
|
|
137
|
-
"@tiptap/starter-kit": "^3.10.7",
|
|
138
|
-
"@tiptap/suggestion": "^3.10.7",
|
|
139
|
-
"@uidotdev/usehooks": "2.4.1",
|
|
140
|
-
"axios": "1.11.0",
|
|
141
|
-
"browser-image-compression": "2.0.2",
|
|
142
|
-
"class-variance-authority": "0.7.1",
|
|
143
|
-
"clientjs": "0.2.1",
|
|
144
|
-
"clsx": "2.1.1",
|
|
145
|
-
"cmdk": "^1.1.1",
|
|
146
|
-
"cookies-next": "^5.1.0",
|
|
147
|
-
"country-data": "0.0.31",
|
|
148
|
-
"crypto-js": "4.2.0",
|
|
149
|
-
"currencies.json": "1.1.0",
|
|
150
|
-
"date-fns": "^4.1.0",
|
|
151
|
-
"date-fns-tz": "3.2.0",
|
|
152
|
-
"emoji-mart": "5.6.0",
|
|
153
|
-
"emoji-picker-react": "4.13.3",
|
|
154
|
-
"framer-motion": "12.19.2",
|
|
155
|
-
"global-currencies": "1.0.3",
|
|
156
|
-
"graphql": "16.11.0",
|
|
157
|
-
"graphql-request": "^7.3.1",
|
|
158
|
-
"html2canvas": "1.4.1",
|
|
159
|
-
"idb-keyval": "6.2.2",
|
|
160
|
-
"isomorphic-dompurify": "^2.34.0",
|
|
161
|
-
"js-cookie": "3.0.5",
|
|
162
|
-
"jspdf": "3.0.3",
|
|
163
|
-
"link-preview-js": "^3.1.0",
|
|
164
|
-
"lodash.throttle": "^4.1.1",
|
|
165
|
-
"lucide-react": "0.510.0",
|
|
166
|
-
"marked": "^17.0.0",
|
|
167
|
-
"motion": "^12.23.24",
|
|
168
|
-
"msw": "2.12.14",
|
|
169
|
-
"next": "15.3.2",
|
|
170
|
-
"next-themes": "^0.4.6",
|
|
171
|
-
"ogp-parser": "0.8.1",
|
|
172
|
-
"pdf-lib": "^1.17.1",
|
|
173
|
-
"pdfjs-dist": "4.8.69",
|
|
174
|
-
"process": "0.11.10",
|
|
175
|
-
"radix-ui": "^1.4.3",
|
|
176
|
-
"react": "19.1.0",
|
|
177
|
-
"react-day-picker": "^9.11.1",
|
|
178
|
-
"react-detect-offline": "2.4.5",
|
|
179
|
-
"react-dom": "19.1.0",
|
|
180
|
-
"react-dropzone": "14.3.8",
|
|
181
|
-
"react-easy-crop": "5.5.7",
|
|
182
|
-
"react-hook-form": "^7.65.0",
|
|
183
|
-
"react-hotkeys-hook": "^5.2.1",
|
|
184
|
-
"react-infinite-scroll-hook": "6.0.1",
|
|
185
|
-
"react-markdown": "^10.1.0",
|
|
186
|
-
"react-mentions-ts": "5.4.7",
|
|
187
|
-
"react-router-dom": "7.6.0",
|
|
188
|
-
"react-syntax-highlighter": "16.1.0",
|
|
189
|
-
"react-toastify": "^11.0.5",
|
|
190
|
-
"remark-gfm": "^4.0.1",
|
|
191
|
-
"shiki": "^3.15.0",
|
|
192
|
-
"slugify": "1.6.6",
|
|
193
|
-
"socket.io-client": "4.8.1",
|
|
194
|
-
"sonner": "^2.0.7",
|
|
195
|
-
"swiper": "11.2.10",
|
|
196
|
-
"tailwind-scrollbar-hide": "4.0.0",
|
|
197
|
-
"tippy.js": "^6.3.7",
|
|
198
|
-
"tw-animate-css": "1.2.9",
|
|
199
|
-
"uuid": "11.1.0",
|
|
200
|
-
"vaul": "^1.1.2",
|
|
201
|
-
"yup": "^1.7.1",
|
|
202
|
-
"zustand": "^5.0.8"
|
|
203
|
-
},
|
|
204
|
-
"peerDependencies": {
|
|
205
|
-
"tailwind-scrollbar-hide": "^4.0.0",
|
|
206
|
-
"tailwindcss": "^3.0.0",
|
|
207
|
-
"tailwindcss-animate": "^1.0.0"
|
|
208
|
-
}
|
|
209
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@mirantes-micro/foundation-design-system",
|
|
3
|
+
"description": "A scalable and customizable design system package featuring a collection of reusable React components, utility functions, and context providers. Built to enforce visual and functional consistency across applications, this package offers accessible, themeable UI elements, shared logic through utility helpers, and context-based providers for managing global state such as themes, modals, and user sessions.",
|
|
4
|
+
"version": "1.2.333",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Mirantes Frontend team"
|
|
8
|
+
},
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"*.css"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"./styles.css": "./dist/styles.css"
|
|
24
|
+
},
|
|
25
|
+
"source": "./src/components/fromMirantes/index.ts",
|
|
26
|
+
"module": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"files": [
|
|
29
|
+
"dist/*"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"dev": "webpack serve --mode development",
|
|
33
|
+
"build": "webpack --mode production",
|
|
34
|
+
"build:webpack": "tsup src/components/fromMirantes/index.ts --format cjs --minify",
|
|
35
|
+
"release": "pnpm build:webpack && npm publish",
|
|
36
|
+
"build:css": "npx tailwindcss -i ./src/styles/globals.css -o ./dist/styles.css --minify",
|
|
37
|
+
"prepare": "husky",
|
|
38
|
+
"format": "biome check --staged --write",
|
|
39
|
+
"test": "vitest --passWithNoTests"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@babel/core": "7.26.0",
|
|
43
|
+
"@babel/preset-env": "7.26.0",
|
|
44
|
+
"@babel/preset-react": "7.26.3",
|
|
45
|
+
"@biomejs/biome": "2.4.6",
|
|
46
|
+
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
|
|
47
|
+
"@tailwindcss/postcss7-compat": "2.2.17",
|
|
48
|
+
"@tanstack/react-query": "5.76.1",
|
|
49
|
+
"@testing-library/dom": "10.4.1",
|
|
50
|
+
"@testing-library/jest-dom": "6.9.1",
|
|
51
|
+
"@testing-library/react": "16.3.2",
|
|
52
|
+
"@types/clientjs": "0.2.2",
|
|
53
|
+
"@types/country-data": "0.0.5",
|
|
54
|
+
"@types/crypto-js": "4.2.2",
|
|
55
|
+
"@types/js-cookie": "3.0.6",
|
|
56
|
+
"@types/lodash.throttle": "^4.1.9",
|
|
57
|
+
"@types/node": "22.10.5",
|
|
58
|
+
"@types/react": "19.1.4",
|
|
59
|
+
"@types/react-detect-offline": "2.4.5",
|
|
60
|
+
"@types/react-dom": "19.1.5",
|
|
61
|
+
"@types/react-syntax-highlighter": "15.5.13",
|
|
62
|
+
"@types/uuid": "10.0.0",
|
|
63
|
+
"@vitejs/plugin-react": "5.1.4",
|
|
64
|
+
"babel-loader": "9.2.1",
|
|
65
|
+
"baseline-browser-mapping": "^2.9.19",
|
|
66
|
+
"css-loader": "6.8.1",
|
|
67
|
+
"esbuild-sass-plugin": "3.3.1",
|
|
68
|
+
"eslint": "9.17.0",
|
|
69
|
+
"eslint-plugin-react": "7.37.3",
|
|
70
|
+
"file-loader": "6.2.0",
|
|
71
|
+
"graphql-tag": "2.12.6",
|
|
72
|
+
"html-webpack-plugin": "5.5.3",
|
|
73
|
+
"husky": "9.1.7",
|
|
74
|
+
"jsdom": "28.1.0",
|
|
75
|
+
"postcss": "8.4.39",
|
|
76
|
+
"postcss-import": "16.1.0",
|
|
77
|
+
"postcss-important": "0.3.0",
|
|
78
|
+
"postcss-loader": "7.3.3",
|
|
79
|
+
"postcss-nesting": "12.1.5",
|
|
80
|
+
"prettier": "3.4.2",
|
|
81
|
+
"react-refresh": "0.16.0",
|
|
82
|
+
"sass": "^1.94.2",
|
|
83
|
+
"sass-embedded": "^1.93.3",
|
|
84
|
+
"sass-loader": "^16.0.6",
|
|
85
|
+
"style-loader": "3.3.3",
|
|
86
|
+
"tailwind-merge": "2.6.0",
|
|
87
|
+
"tailwindcss": "3.4.4",
|
|
88
|
+
"tailwindcss-animate": "1.0.7",
|
|
89
|
+
"ts-loader": "9.5.1",
|
|
90
|
+
"tsup": "8.3.5",
|
|
91
|
+
"typescript": "5.7.2",
|
|
92
|
+
"vite-tsconfig-paths": "6.1.1",
|
|
93
|
+
"vitest": "4.0.18",
|
|
94
|
+
"webpack": "5.97.1",
|
|
95
|
+
"webpack-cli": "6.0.1",
|
|
96
|
+
"webpack-dev-server": "5.2.0"
|
|
97
|
+
},
|
|
98
|
+
"dependencies": {
|
|
99
|
+
"@emoji-mart/data": "1.2.1",
|
|
100
|
+
"@emoji-mart/react": "1.1.1",
|
|
101
|
+
"@emotion/is-prop-valid": "^1.4.0",
|
|
102
|
+
"@ffmpeg/ffmpeg": "0.12.15",
|
|
103
|
+
"@ffmpeg/util": "0.12.2",
|
|
104
|
+
"@fingerprintjs/fingerprintjs": "^5.2.0",
|
|
105
|
+
"@floating-ui/react": "^0.27.16",
|
|
106
|
+
"@hookform/resolvers": "^5.2.2",
|
|
107
|
+
"@mirantes-micro/billing-v2": "0.1.50",
|
|
108
|
+
"@mirantes-micro/notifications-v2": "0.0.45",
|
|
109
|
+
"@mirantes-micro/widgets": "0.0.161",
|
|
110
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
111
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
112
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
113
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
114
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
115
|
+
"@radix-ui/react-popover": "1.1.15",
|
|
116
|
+
"@radix-ui/react-radio-group": "^1.3.8",
|
|
117
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
118
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
119
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
120
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
121
|
+
"@radix-ui/react-visually-hidden": "1.2.4",
|
|
122
|
+
"@tanstack/react-query-devtools": "5.76.1",
|
|
123
|
+
"@tiptap/core": "^3.10.7",
|
|
124
|
+
"@tiptap/extension-highlight": "^3.13.0",
|
|
125
|
+
"@tiptap/extension-horizontal-rule": "^3.13.0",
|
|
126
|
+
"@tiptap/extension-image": "^3.13.0",
|
|
127
|
+
"@tiptap/extension-list": "^3.13.0",
|
|
128
|
+
"@tiptap/extension-mention": "^3.10.7",
|
|
129
|
+
"@tiptap/extension-placeholder": "^3.10.7",
|
|
130
|
+
"@tiptap/extension-subscript": "^3.13.0",
|
|
131
|
+
"@tiptap/extension-superscript": "^3.13.0",
|
|
132
|
+
"@tiptap/extension-text-align": "^3.13.0",
|
|
133
|
+
"@tiptap/extension-typography": "^3.13.0",
|
|
134
|
+
"@tiptap/extensions": "^3.13.0",
|
|
135
|
+
"@tiptap/pm": "^3.13.0",
|
|
136
|
+
"@tiptap/react": "^3.10.7",
|
|
137
|
+
"@tiptap/starter-kit": "^3.10.7",
|
|
138
|
+
"@tiptap/suggestion": "^3.10.7",
|
|
139
|
+
"@uidotdev/usehooks": "2.4.1",
|
|
140
|
+
"axios": "1.11.0",
|
|
141
|
+
"browser-image-compression": "2.0.2",
|
|
142
|
+
"class-variance-authority": "0.7.1",
|
|
143
|
+
"clientjs": "0.2.1",
|
|
144
|
+
"clsx": "2.1.1",
|
|
145
|
+
"cmdk": "^1.1.1",
|
|
146
|
+
"cookies-next": "^5.1.0",
|
|
147
|
+
"country-data": "0.0.31",
|
|
148
|
+
"crypto-js": "4.2.0",
|
|
149
|
+
"currencies.json": "1.1.0",
|
|
150
|
+
"date-fns": "^4.1.0",
|
|
151
|
+
"date-fns-tz": "3.2.0",
|
|
152
|
+
"emoji-mart": "5.6.0",
|
|
153
|
+
"emoji-picker-react": "4.13.3",
|
|
154
|
+
"framer-motion": "12.19.2",
|
|
155
|
+
"global-currencies": "1.0.3",
|
|
156
|
+
"graphql": "16.11.0",
|
|
157
|
+
"graphql-request": "^7.3.1",
|
|
158
|
+
"html2canvas": "1.4.1",
|
|
159
|
+
"idb-keyval": "6.2.2",
|
|
160
|
+
"isomorphic-dompurify": "^2.34.0",
|
|
161
|
+
"js-cookie": "3.0.5",
|
|
162
|
+
"jspdf": "3.0.3",
|
|
163
|
+
"link-preview-js": "^3.1.0",
|
|
164
|
+
"lodash.throttle": "^4.1.1",
|
|
165
|
+
"lucide-react": "0.510.0",
|
|
166
|
+
"marked": "^17.0.0",
|
|
167
|
+
"motion": "^12.23.24",
|
|
168
|
+
"msw": "2.12.14",
|
|
169
|
+
"next": "15.3.2",
|
|
170
|
+
"next-themes": "^0.4.6",
|
|
171
|
+
"ogp-parser": "0.8.1",
|
|
172
|
+
"pdf-lib": "^1.17.1",
|
|
173
|
+
"pdfjs-dist": "4.8.69",
|
|
174
|
+
"process": "0.11.10",
|
|
175
|
+
"radix-ui": "^1.4.3",
|
|
176
|
+
"react": "19.1.0",
|
|
177
|
+
"react-day-picker": "^9.11.1",
|
|
178
|
+
"react-detect-offline": "2.4.5",
|
|
179
|
+
"react-dom": "19.1.0",
|
|
180
|
+
"react-dropzone": "14.3.8",
|
|
181
|
+
"react-easy-crop": "5.5.7",
|
|
182
|
+
"react-hook-form": "^7.65.0",
|
|
183
|
+
"react-hotkeys-hook": "^5.2.1",
|
|
184
|
+
"react-infinite-scroll-hook": "6.0.1",
|
|
185
|
+
"react-markdown": "^10.1.0",
|
|
186
|
+
"react-mentions-ts": "5.4.7",
|
|
187
|
+
"react-router-dom": "7.6.0",
|
|
188
|
+
"react-syntax-highlighter": "16.1.0",
|
|
189
|
+
"react-toastify": "^11.0.5",
|
|
190
|
+
"remark-gfm": "^4.0.1",
|
|
191
|
+
"shiki": "^3.15.0",
|
|
192
|
+
"slugify": "1.6.6",
|
|
193
|
+
"socket.io-client": "4.8.1",
|
|
194
|
+
"sonner": "^2.0.7",
|
|
195
|
+
"swiper": "11.2.10",
|
|
196
|
+
"tailwind-scrollbar-hide": "4.0.0",
|
|
197
|
+
"tippy.js": "^6.3.7",
|
|
198
|
+
"tw-animate-css": "1.2.9",
|
|
199
|
+
"uuid": "11.1.0",
|
|
200
|
+
"vaul": "^1.1.2",
|
|
201
|
+
"yup": "^1.7.1",
|
|
202
|
+
"zustand": "^5.0.8"
|
|
203
|
+
},
|
|
204
|
+
"peerDependencies": {
|
|
205
|
+
"tailwind-scrollbar-hide": "^4.0.0",
|
|
206
|
+
"tailwindcss": "^3.0.0",
|
|
207
|
+
"tailwindcss-animate": "^1.0.0"
|
|
208
|
+
}
|
|
209
|
+
}
|