@mirantes-micro/foundation-design-system 1.2.180 → 1.2.181
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +15 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var J=require('react'),jsxRuntime=require('react/jsx-runtime'),reactQueryDevtools=require('@tanstack/react-query-devtools'),FI=require('clsx'),lucideReact=require('lucide-react'),react=require('motion/react'),billingV2=require('@mirantes-micro/billing-v2'),En=require('@radix-ui/react-tooltip'),_o=require('@radix-ui/react-dialog'),hf=require('graphql-request'),reactToastify=require('react-toastify'),zustand=require('zustand'),rr=require('yup'),yup=require('@hookform/resolvers/yup'),reactHookForm=require('react-hook-form'),reactSlot=require('@radix-ui/react-slot'),classVarianceAuthority=require('class-variance-authority'),cmdk=require('cmdk'),ms=require('@radix-ui/react-popover'),AN=require('emoji-picker-react'),$W=require('react-dom'),uuid=require('uuid'),wP=require('axios'),middleware=require('zustand/middleware'),usehooks=require('@uidotdev/usehooks'),r2=require('@radix-ui/react-avatar'),cookiesNext=require('cookies-next'),dateFns=require('date-fns'),EM=require('react-infinite-scroll-hook'),vaul=require('vaul'),aD=require('slugify'),socket_ioClient=require('socket.io-client'),locale=require('date-fns/locale'),reactDayPicker=require('react-day-picker'),zy=require('@radix-ui/react-label'),globalCurrencies=require('global-currencies'),rp=require('crypto-js'),react$3=require('swiper/react');require('swiper/css');var core=require('@tiptap/core');require('@tiptap/extension-mention');var extensionPlaceholder=require('@tiptap/extension-placeholder'),react$2=require('@tiptap/react'),starterKit=require('@tiptap/starter-kit');require('tippy.js');var qa=require('@radix-ui/react-scroll-area'),widgets=require('@mirantes-micro/widgets'),vt=require('@radix-ui/react-select'),linkPreviewJs=require('link-preview-js'),Om=require('@radix-ui/react-radio-group'),pdfLib=require('pdf-lib'),state=require('@tiptap/pm/state');require('@tiptap/pm/tables');var react$1=require('@floating-ui/react'),Go=require('@radix-ui/react-dropdown-menu'),reactHotkeysHook=require('react-hotkeys-hook'),extensionImage=require('@tiptap/extension-image'),extensionList=require('@tiptap/extension-list'),extensionTextAlign=require('@tiptap/extension-text-align'),extensionTypography=require('@tiptap/extension-typography'),extensionHighlight=require('@tiptap/extension-highlight'),extensionSubscript=require('@tiptap/extension-subscript'),extensionSuperscript=require('@tiptap/extension-superscript'),JY=require('@tiptap/extension-horizontal-rule'),EJ=require('isomorphic-dompurify');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var J__namespace=/*#__PURE__*/_interopNamespace(J);var FI__default=/*#__PURE__*/_interopDefault(FI);var En__namespace=/*#__PURE__*/_interopNamespace(En);var _o__namespace=/*#__PURE__*/_interopNamespace(_o);var hf__default=/*#__PURE__*/_interopDefault(hf);var rr__namespace=/*#__PURE__*/_interopNamespace(rr);var ms__namespace=/*#__PURE__*/_interopNamespace(ms);var AN__default=/*#__PURE__*/_interopDefault(AN);var $W__default=/*#__PURE__*/_interopDefault($W);var wP__default=/*#__PURE__*/_interopDefault(wP);var r2__namespace=/*#__PURE__*/_interopNamespace(r2);var EM__default=/*#__PURE__*/_interopDefault(EM);var aD__default=/*#__PURE__*/_interopDefault(aD);var zy__namespace=/*#__PURE__*/_interopNamespace(zy);var rp__default=/*#__PURE__*/_interopDefault(rp);var qa__namespace=/*#__PURE__*/_interopNamespace(qa);var vt__namespace=/*#__PURE__*/_interopNamespace(vt);var Om__namespace=/*#__PURE__*/_interopNamespace(Om);var Go__namespace=/*#__PURE__*/_interopNamespace(Go);var JY__default=/*#__PURE__*/_interopDefault(JY);var EJ__default=/*#__PURE__*/_interopDefault(EJ);var gI=Object.defineProperty,hI=Object.defineProperties;var vI=Object.getOwnPropertyDescriptors;var m4=Object.getOwnPropertySymbols;var Sf=Object.prototype.hasOwnProperty,Af=Object.prototype.propertyIsEnumerable;var Nf=e=>{throw TypeError(e)},Dl=Math.pow,Pf=(e,t,o)=>t in e?gI(e,t,{enumerable:true,configurable:true,writable:true,value:o}):e[t]=o,y=(e,t)=>{for(var o in t||(t={}))Sf.call(t,o)&&Pf(e,o,t[o]);if(m4)for(var o of m4(t))Af.call(t,o)&&Pf(e,o,t[o]);return e},F=(e,t)=>hI(e,vI(t));var Q=(e,t)=>{var o={};for(var r in e)Sf.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&m4)for(var r of m4(e))t.indexOf(r)<0&&Af.call(e,r)&&(o[r]=e[r]);return o};var z5=(e,t,o)=>t.has(e)||Nf("Cannot "+o);var Z=(e,t,o)=>(z5(e,t,"read from private field"),o?o.call(e):t.get(e)),Ie=(e,t,o)=>t.has(e)?Nf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),Ce=(e,t,o,r)=>(z5(e,t,"write to private field"),t.set(e,o),o),Re=(e,t,o)=>(z5(e,t,"access private method"),o);var Z0=(e,t,o,r)=>({set _(n){Ce(e,t,n);},get _(){return Z(e,t,r)}});var j=(e,t,o)=>new Promise((r,n)=>{var a=l=>{try{i(o.next(l));}catch(d){n(d);}},s=l=>{try{i(o.throw(l));}catch(d){n(d);}},i=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,s);i((o=o.apply(e,t)).next());});function Ge({className:e}){return J__namespace.default.createElement("div",{className:""},J__namespace.default.createElement("svg",{"aria-hidden":"true",className:`w-6 h-6 mr-2 animate-spin text-gray-200 fill-primary ${e}`,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})))}function If(e,t,o){try{e.endsWith("/")||(e+="/"),t.startsWith("/")&&(t=t.substring(1));let r=e+t;if(o){let n=Object.keys(o).map(a=>encodeURIComponent(a)+"="+encodeURIComponent(o[a])).join("&");n&&(r+="?"+n);}return r}catch(r){return ""}}function Ef(e,t){let o=e.split(t),r;for(let n of o){let[a,s]=n.split("=");r||(r={}),s&&(r=F(y({},r),{[a]:s}));}return r}function f4(e){var n,a,s,i;if(!e)return "";let t=e.trim().split(/\s+/);if(t.length===0)return "";let o=(a=(n=t[0][0])==null?void 0:n.toUpperCase())!=null?a:"",r=t.length>1&&(i=(s=t[t.length-1][0])==null?void 0:s.toUpperCase())!=null?i:"";return o+r}var g4=J.createContext({locale:"pt",user:{}});var Nn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this);}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe();}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var Ur=typeof window=="undefined"||"Deno"in globalThis;function yo(){}function Df(e,t){return typeof e=="function"?e(t):e}function Y0(e){return typeof e=="number"&&e>=0&&e!==1/0}function v4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qs(e,t){return typeof e=="function"?e(t):e}function ln(e,t){return typeof e=="function"?e(t):e}function y4(e,t){let{type:o="all",exact:r,fetchStatus:n,predicate:a,queryKey:s,stale:i}=e;if(s){if(r){if(t.queryHash!==J0(s,t.options))return false}else if(!Ll(t.queryKey,s))return false}if(o!=="all"){let l=t.isActive();if(o==="active"&&!l||o==="inactive"&&l)return false}return !(typeof i=="boolean"&&t.isStale()!==i||n&&n!==t.state.fetchStatus||a&&!a(t))}function b4(e,t){let{exact:o,status:r,predicate:n,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return false;if(o){if(ba(t.options.mutationKey)!==ba(a))return false}else if(!Ll(t.options.mutationKey,a))return false}return !(r&&t.state.status!==r||n&&!n(t))}function J0(e,t){return ((t==null?void 0:t.queryKeyHashFn)||ba)(e)}function ba(e){return JSON.stringify(e,(t,o)=>B5(o)?Object.keys(o).sort().reduce((r,n)=>(r[n]=o[n],r),{}):o)}function Ll(e,t){return e===t?true:typeof e!=typeof t?false:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(o=>Ll(e[o],t[o])):false}function h4(e,t){if(e===t)return e;let o=kf(e)&&kf(t);if(o||B5(e)&&B5(t)){let r=o?e:Object.keys(e),n=r.length,a=o?t:Object.keys(t),s=a.length,i=o?[]:{},l=0;for(let d=0;d<s;d++){let c=o?d:a[d];(!o&&r.includes(c)||o)&&e[c]===void 0&&t[c]===void 0?(i[c]=void 0,l++):(i[c]=h4(e[c],t[c]),i[c]===e[c]&&e[c]!==void 0&&l++);}return n===s&&l===n?e:i}return t}function Fl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return false;for(let o in e)if(e[o]!==t[o])return false;return true}function kf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function B5(e){if(!Tf(e))return false;let t=e.constructor;if(t===void 0)return true;let o=t.prototype;return !(!Tf(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Tf(e){return Object.prototype.toString.call(e)==="[object Object]"}function Lf(e){return new Promise(t=>{setTimeout(t,e);})}function X0(e,t,o){if(typeof o.structuralSharing=="function")return o.structuralSharing(e,t);if(o.structuralSharing!==false){if(process.env.NODE_ENV!=="production")try{return h4(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${o.queryHash}]: ${r}`),r}return h4(e,t)}return t}function Ff(e,t,o=0){let r=[...e,t];return o&&r.length>o?r.slice(1):r}function zf(e,t,o=0){let r=[t,...e];return o&&r.length>o?r.slice(0,-1):r}var o1=Symbol();function x4(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===o1&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===o1?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function $0(e,t){return typeof e=="function"?e(...t):!!e}var r1,Ws,zl,Bf,bI=(Bf=class extends Nn{constructor(){super();Ie(this,r1);Ie(this,Ws);Ie(this,zl);Ce(this,zl,t=>{if(!Ur&&window.addEventListener){let o=()=>t();return window.addEventListener("visibilitychange",o,false),()=>{window.removeEventListener("visibilitychange",o);}}});}onSubscribe(){Z(this,Ws)||this.setEventListener(Z(this,zl));}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,Ws))==null||t.call(this),Ce(this,Ws,void 0));}setEventListener(t){var o;Ce(this,zl,t),(o=Z(this,Ws))==null||o.call(this),Ce(this,Ws,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus();}));}setFocused(t){Z(this,r1)!==t&&(Ce(this,r1,t),this.onFocus());}onFocus(){let t=this.isFocused();this.listeners.forEach(o=>{o(t);});}isFocused(){var t;return typeof Z(this,r1)=="boolean"?Z(this,r1):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},r1=new WeakMap,Ws=new WeakMap,zl=new WeakMap,Bf),Bl=new bI;var Ol,Qs,Hl,Of,xI=(Of=class extends Nn{constructor(){super();Ie(this,Ol,true);Ie(this,Qs);Ie(this,Hl);Ce(this,Hl,t=>{if(!Ur&&window.addEventListener){let o=()=>t(true),r=()=>t(false);return window.addEventListener("online",o,false),window.addEventListener("offline",r,false),()=>{window.removeEventListener("online",o),window.removeEventListener("offline",r);}}});}onSubscribe(){Z(this,Qs)||this.setEventListener(Z(this,Hl));}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,Qs))==null||t.call(this),Ce(this,Qs,void 0));}setEventListener(t){var o;Ce(this,Hl,t),(o=Z(this,Qs))==null||o.call(this),Ce(this,Qs,t(this.setOnline.bind(this)));}setOnline(t){Z(this,Ol)!==t&&(Ce(this,Ol,t),this.listeners.forEach(r=>{r(t);}));}isOnline(){return Z(this,Ol)}},Ol=new WeakMap,Qs=new WeakMap,Hl=new WeakMap,Of),Gl=new xI;function R0(){let e,t,o=new Promise((n,a)=>{e=n,t=a;});o.status="pending",o.catch(()=>{});function r(n){Object.assign(o,n),delete o.resolve,delete o.reject;}return o.resolve=n=>{r({status:"fulfilled",value:n}),e(n);},o.reject=n=>{r({status:"rejected",reason:n}),t(n);},o}function wI(e){return Math.min(1e3*Dl(2,e),3e4)}function O5(e){return (e!=null?e:"online")==="online"?Gl.isOnline():true}var Hf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent;}};function w4(e){return e instanceof Hf}function C4(e){let t=false,o=0,r=false,n,a=R0(),s=m=>{var v;r||(f(new Hf(m)),(v=e.abort)==null||v.call(e));},i=()=>{t=true;},l=()=>{t=false;},d=()=>Bl.isFocused()&&(e.networkMode==="always"||Gl.isOnline())&&e.canRun(),c=()=>O5(e.networkMode)&&e.canRun(),p=m=>{var v;r||(r=true,(v=e.onSuccess)==null||v.call(e,m),n==null||n(),a.resolve(m));},f=m=>{var v;r||(r=true,(v=e.onError)==null||v.call(e,m),n==null||n(),a.reject(m));},u=()=>new Promise(m=>{var v;n=h=>{(r||d())&&m(h);},(v=e.onPause)==null||v.call(e);}).then(()=>{var m;n=void 0,r||(m=e.onContinue)==null||m.call(e);}),g=()=>{if(r)return;let m,v=o===0?e.initialPromise:void 0;try{m=v!=null?v:e.fn();}catch(h){m=Promise.reject(h);}Promise.resolve(m).then(p).catch(h=>{var A,k,N;if(r)return;let b=(A=e.retry)!=null?A:Ur?0:3,x=(k=e.retryDelay)!=null?k:wI,w=typeof x=="function"?x(o,h):x,C=b===true||typeof b=="number"&&o<b||typeof b=="function"&&b(o,h);if(t||!C){f(h);return}o++,(N=e.onFail)==null||N.call(e,o,h),Lf(w).then(()=>d()?void 0:u()).then(()=>{t?f(h):g();});});};return {promise:a,cancel:s,continue:()=>(n==null||n(),a),cancelRetry:i,continueRetry:l,canStart:c,start:()=>(c()?g():u().then(g),a)}}var Gf=e=>setTimeout(e,0);function CI(){let e=[],t=0,o=i=>{i();},r=i=>{i();},n=Gf,a=i=>{t?e.push(i):n(()=>{o(i);});},s=()=>{let i=e;e=[],i.length&&n(()=>{r(()=>{i.forEach(l=>{o(l);});});});};return {batch:i=>{let l;t++;try{l=i();}finally{t--,t||s();}return l},batchCalls:i=>(...l)=>{a(()=>{i(...l);});},schedule:a,setNotifyFunction:i=>{o=i;},setBatchNotifyFunction:i=>{r=i;},setScheduler:i=>{n=i;}}}var _t=CI();var n1,Uf,M4=(Uf=class{constructor(){Ie(this,n1);}destroy(){this.clearGcTimeout();}scheduleGc(){this.clearGcTimeout(),Y0(this.gcTime)&&Ce(this,n1,setTimeout(()=>{this.optionalRemove();},this.gcTime));}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:Ur?1/0:5*60*1e3);}clearGcTimeout(){Z(this,n1)&&(clearTimeout(Z(this,n1)),Ce(this,n1,void 0));}},n1=new WeakMap,Uf);var Ul,_l,In,a1,mr,ed,s1,Yn,ns,_f,Vf=(_f=class extends M4{constructor(t){var o;super();Ie(this,Yn);Ie(this,Ul);Ie(this,_l);Ie(this,In);Ie(this,a1);Ie(this,mr);Ie(this,ed);Ie(this,s1);Ce(this,s1,false),Ce(this,ed,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ce(this,a1,t.client),Ce(this,In,Z(this,a1).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ce(this,Ul,MI(this.options)),this.state=(o=t.state)!=null?o:Z(this,Ul),this.scheduleGc();}get meta(){return this.options.meta}get promise(){var t;return (t=Z(this,mr))==null?void 0:t.promise}setOptions(t){this.options=y(y({},Z(this,ed)),t),this.updateGcTime(this.options.gcTime);}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Z(this,In).remove(this);}setData(t,o){let r=X0(this.state.data,t,this.options);return Re(this,Yn,ns).call(this,{data:r,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt,manual:o==null?void 0:o.manual}),r}setState(t,o){Re(this,Yn,ns).call(this,{type:"setState",state:t,setStateOptions:o});}cancel(t){var r,n;let o=(r=Z(this,mr))==null?void 0:r.promise;return (n=Z(this,mr))==null||n.cancel(t),o?o.then(yo).catch(yo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:true});}reset(){this.destroy(),this.setState(Z(this,Ul));}isActive(){return this.observers.some(t=>ln(t.options.enabled,this)!==false)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===o1||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?true:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!v4(this.state.dataUpdatedAt,t)}onFocus(){var o;let t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:false}),(o=Z(this,mr))==null||o.continue();}onOnline(){var o;let t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:false}),(o=Z(this,mr))==null||o.continue();}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Z(this,In).notify({type:"observerAdded",query:this,observer:t}));}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(o=>o!==t),this.observers.length||(Z(this,mr)&&(Z(this,s1)?Z(this,mr).cancel({revert:true}):Z(this,mr).cancelRetry()),this.scheduleGc()),Z(this,In).notify({type:"observerRemoved",query:this,observer:t}));}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Re(this,Yn,ns).call(this,{type:"invalidate"});}fetch(t,o){var l,d,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(o!=null&&o.cancelRefetch))this.cancel({silent:true});else if(Z(this,mr))return Z(this,mr).continueRetry(),Z(this,mr).promise}if(t&&this.setOptions(t),!this.options.queryFn){let p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options);}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));let r=new AbortController,n=p=>{Object.defineProperty(p,"signal",{enumerable:true,get:()=>(Ce(this,s1,true),r.signal)});},a=()=>{let p=x4(this.options,o),f={client:Z(this,a1),queryKey:this.queryKey,meta:this.meta};return n(f),Ce(this,s1,false),this.options.persister?this.options.persister(p,f,this):p(f)},s={fetchOptions:o,options:this.options,queryKey:this.queryKey,client:Z(this,a1),state:this.state,fetchFn:a};n(s),(l=this.options.behavior)==null||l.onFetch(s,this),Ce(this,_l,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&Re(this,Yn,ns).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});let i=p=>{var f,u,g,m;w4(p)&&p.silent||Re(this,Yn,ns).call(this,{type:"error",error:p}),w4(p)||((u=(f=Z(this,In).config).onError)==null||u.call(f,p,this),(m=(g=Z(this,In).config).onSettled)==null||m.call(g,this.state.data,p,this)),this.scheduleGc();};return Ce(this,mr,C4({initialPromise:o==null?void 0:o.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var f,u,g,m;if(p===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),i(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p);}catch(v){i(v);return}(u=(f=Z(this,In).config).onSuccess)==null||u.call(f,p,this),(m=(g=Z(this,In).config).onSettled)==null||m.call(g,p,this.state.error,this),this.scheduleGc();},onError:i,onFail:(p,f)=>{Re(this,Yn,ns).call(this,{type:"failed",failureCount:p,error:f});},onPause:()=>{Re(this,Yn,ns).call(this,{type:"pause"});},onContinue:()=>{Re(this,Yn,ns).call(this,{type:"continue"});},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>true})),Z(this,mr).start()}},Ul=new WeakMap,_l=new WeakMap,In=new WeakMap,a1=new WeakMap,mr=new WeakMap,ed=new WeakMap,s1=new WeakMap,Yn=new WeakSet,ns=function(t){let o=r=>{var n,a;switch(t.type){case "failed":return F(y({},r),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case "pause":return F(y({},r),{fetchStatus:"paused"});case "continue":return F(y({},r),{fetchStatus:"fetching"});case "fetch":return F(y(y({},r),H5(r.data,this.options)),{fetchMeta:(n=t.meta)!=null?n:null});case "success":return y(F(y({},r),{data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:false,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case "error":let s=t.error;return w4(s)&&s.revert&&Z(this,_l)?F(y({},Z(this,_l)),{fetchStatus:"idle"}):F(y({},r),{error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"});case "invalidate":return F(y({},r),{isInvalidated:true});case "setState":return y(y({},r),t.state)}};this.state=o(this.state),_t.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate();}),Z(this,In).notify({query:this,type:"updated",action:t});});},_f);function H5(e,t){return y({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:O5(t.networkMode)?"fetching":"paused"},e===void 0&&{error:null,status:"pending"})}function MI(e){let t=typeof e.initialData=="function"?e.initialData():e.initialData,o=t!==void 0,r=o?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return {data:t,dataUpdateCount:0,dataUpdatedAt:o?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:false,status:o?"success":"pending",fetchStatus:"idle"}}var xa,jf,qf=(jf=class extends Nn{constructor(t={}){super();Ie(this,xa);this.config=t,Ce(this,xa,new Map);}build(t,o,r){var i;let n=o.queryKey,a=(i=o.queryHash)!=null?i:J0(n,o),s=this.get(a);return s||(s=new Vf({client:t,queryKey:n,queryHash:a,options:t.defaultQueryOptions(o),state:r,defaultOptions:t.getQueryDefaults(n)}),this.add(s)),s}add(t){Z(this,xa).has(t.queryHash)||(Z(this,xa).set(t.queryHash,t),this.notify({type:"added",query:t}));}remove(t){let o=Z(this,xa).get(t.queryHash);o&&(t.destroy(),o===t&&Z(this,xa).delete(t.queryHash),this.notify({type:"removed",query:t}));}clear(){_t.batch(()=>{this.getAll().forEach(t=>{this.remove(t);});});}get(t){return Z(this,xa).get(t)}getAll(){return [...Z(this,xa).values()]}find(t){let o=y({exact:true},t);return this.getAll().find(r=>y4(o,r))}findAll(t={}){let o=this.getAll();return Object.keys(t).length>0?o.filter(r=>y4(t,r)):o}notify(t){_t.batch(()=>{this.listeners.forEach(o=>{o(t);});});}onFocus(){_t.batch(()=>{this.getAll().forEach(t=>{t.onFocus();});});}onOnline(){_t.batch(()=>{this.getAll().forEach(t=>{t.onOnline();});});}},xa=new WeakMap,jf);var wa,Mr,i1,Ca,Ks,Wf,Qf=(Wf=class extends M4{constructor(t){super();Ie(this,Ca);Ie(this,wa);Ie(this,Mr);Ie(this,i1);this.mutationId=t.mutationId,Ce(this,Mr,t.mutationCache),Ce(this,wa,[]),this.state=t.state||G5(),this.setOptions(t.options),this.scheduleGc();}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime);}get meta(){return this.options.meta}addObserver(t){Z(this,wa).includes(t)||(Z(this,wa).push(t),this.clearGcTimeout(),Z(this,Mr).notify({type:"observerAdded",mutation:this,observer:t}));}removeObserver(t){Ce(this,wa,Z(this,wa).filter(o=>o!==t)),this.scheduleGc(),Z(this,Mr).notify({type:"observerRemoved",mutation:this,observer:t});}optionalRemove(){Z(this,wa).length||(this.state.status==="pending"?this.scheduleGc():Z(this,Mr).remove(this));}continue(){var t,o;return (o=(t=Z(this,i1))==null?void 0:t.continue())!=null?o:this.execute(this.state.variables)}execute(t){return j(this,null,function*(){var a,s,i,l,d,c,p,f,u,g,m,v,h,b,x,w,C,A,k,N,I;let o=()=>{Re(this,Ca,Ks).call(this,{type:"continue"});};Ce(this,i1,C4({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,S)=>{Re(this,Ca,Ks).call(this,{type:"failed",failureCount:P,error:S});},onPause:()=>{Re(this,Ca,Ks).call(this,{type:"pause"});},onContinue:o,retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Z(this,Mr).canRun(this)}));let r=this.state.status==="pending",n=!Z(this,i1).canStart();try{if(r)o();else {Re(this,Ca,Ks).call(this,{type:"pending",variables:t,isPaused:n}),yield (i=(s=Z(this,Mr).config).onMutate)==null?void 0:i.call(s,t,this);let S=yield (d=(l=this.options).onMutate)==null?void 0:d.call(l,t);S!==this.state.context&&Re(this,Ca,Ks).call(this,{type:"pending",context:S,variables:t,isPaused:n});}let P=yield Z(this,i1).start();return yield (p=(c=Z(this,Mr).config).onSuccess)==null?void 0:p.call(c,P,t,this.state.context,this),yield (u=(f=this.options).onSuccess)==null?void 0:u.call(f,P,t,this.state.context),yield (m=(g=Z(this,Mr).config).onSettled)==null?void 0:m.call(g,P,null,this.state.variables,this.state.context,this),yield (h=(v=this.options).onSettled)==null?void 0:h.call(v,P,null,t,this.state.context),Re(this,Ca,Ks).call(this,{type:"success",data:P}),P}catch(P){try{throw yield (x=(b=Z(this,Mr).config).onError)==null?void 0:x.call(b,P,t,this.state.context,this),yield (C=(w=this.options).onError)==null?void 0:C.call(w,P,t,this.state.context),yield (k=(A=Z(this,Mr).config).onSettled)==null?void 0:k.call(A,void 0,P,this.state.variables,this.state.context,this),yield (I=(N=this.options).onSettled)==null?void 0:I.call(N,void 0,P,t,this.state.context),P}finally{Re(this,Ca,Ks).call(this,{type:"error",error:P});}}finally{Z(this,Mr).runNext(this);}})}},wa=new WeakMap,Mr=new WeakMap,i1=new WeakMap,Ca=new WeakSet,Ks=function(t){let o=r=>{switch(t.type){case "failed":return F(y({},r),{failureCount:t.failureCount,failureReason:t.error});case "pause":return F(y({},r),{isPaused:true});case "continue":return F(y({},r),{isPaused:false});case "pending":return F(y({},r),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()});case "success":return F(y({},r),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:false});case "error":return F(y({},r),{data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:false,status:"error"})}};this.state=o(this.state),_t.batch(()=>{Z(this,wa).forEach(r=>{r.onMutationUpdate(t);}),Z(this,Mr).notify({mutation:this,type:"updated",action:t});});},Wf);function G5(){return {context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:false,status:"idle",variables:void 0,submittedAt:0}}var as,Jn,td,Kf,Zf=(Kf=class extends Nn{constructor(t={}){super();Ie(this,as);Ie(this,Jn);Ie(this,td);this.config=t,Ce(this,as,new Set),Ce(this,Jn,new Map),Ce(this,td,0);}build(t,o,r){let n=new Qf({mutationCache:this,mutationId:++Z0(this,td)._,options:t.defaultMutationOptions(o),state:r});return this.add(n),n}add(t){Z(this,as).add(t);let o=P4(t);if(typeof o=="string"){let r=Z(this,Jn).get(o);r?r.push(t):Z(this,Jn).set(o,[t]);}this.notify({type:"added",mutation:t});}remove(t){if(Z(this,as).delete(t)){let o=P4(t);if(typeof o=="string"){let r=Z(this,Jn).get(o);if(r)if(r.length>1){let n=r.indexOf(t);n!==-1&&r.splice(n,1);}else r[0]===t&&Z(this,Jn).delete(o);}}this.notify({type:"removed",mutation:t});}canRun(t){let o=P4(t);if(typeof o=="string"){let r=Z(this,Jn).get(o),n=r==null?void 0:r.find(a=>a.state.status==="pending");return !n||n===t}else return true}runNext(t){var r,n;let o=P4(t);if(typeof o=="string"){let a=(r=Z(this,Jn).get(o))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return (n=a==null?void 0:a.continue())!=null?n:Promise.resolve()}else return Promise.resolve()}clear(){_t.batch(()=>{Z(this,as).forEach(t=>{this.notify({type:"removed",mutation:t});}),Z(this,as).clear(),Z(this,Jn).clear();});}getAll(){return Array.from(Z(this,as))}find(t){let o=y({exact:true},t);return this.getAll().find(r=>b4(o,r))}findAll(t={}){return this.getAll().filter(o=>b4(t,o))}notify(t){_t.batch(()=>{this.listeners.forEach(o=>{o(t);});});}resumePausedMutations(){let t=this.getAll().filter(o=>o.state.isPaused);return _t.batch(()=>Promise.all(t.map(o=>o.continue().catch(yo))))}},as=new WeakMap,Jn=new WeakMap,td=new WeakMap,Kf);function P4(e){var t;return (t=e.options.scope)==null?void 0:t.id}function Vl(e){return {onFetch:(t,o)=>{var c,p,f,u,g;let r=t.options,n=(f=(p=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:p.fetchMore)==null?void 0:f.direction,a=((u=t.state.data)==null?void 0:u.pages)||[],s=((g=t.state.data)==null?void 0:g.pageParams)||[],i={pages:[],pageParams:[]},l=0,d=()=>j(this,null,function*(){var x;let m=false,v=w=>{Object.defineProperty(w,"signal",{enumerable:true,get:()=>(t.signal.aborted?m=true:t.signal.addEventListener("abort",()=>{m=true;}),t.signal)});},h=x4(t.options,t.fetchOptions),b=(w,C,A)=>j(this,null,function*(){if(m)return Promise.reject();if(C==null&&w.pages.length)return Promise.resolve(w);let k={client:t.client,queryKey:t.queryKey,pageParam:C,direction:A?"backward":"forward",meta:t.options.meta};v(k);let N=yield h(k),{maxPages:I}=t.options,P=A?zf:Ff;return {pages:P(w.pages,N,I),pageParams:P(w.pageParams,C,I)}});if(n&&a.length){let w=n==="backward",C=w?Yf:U5,A={pages:a,pageParams:s},k=C(r,A);i=yield b(A,k,w);}else {let w=e!=null?e:a.length;do{let C=l===0?(x=s[0])!=null?x:r.initialPageParam:U5(r,i);if(l>0&&C==null)break;i=yield b(i,C),l++;}while(l<w)}return i});t.options.persister?t.fetchFn=()=>{var m,v;return (v=(m=t.options).persister)==null?void 0:v.call(m,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},o)}:t.fetchFn=d;}}}function U5(e,{pages:t,pageParams:o}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,o[r],o):void 0}function Yf(e,{pages:t,pageParams:o}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,o[0],o):void 0}function Jf(e,t){return t?U5(e,t)!=null:false}function Xf(e,t){return !t||!e.getPreviousPageParam?false:Yf(e,t)!=null}var bo,Zs,Ys,jl,ql,Js,Wl,Ql,$f,_5=($f=class{constructor(e={}){Ie(this,bo);Ie(this,Zs);Ie(this,Ys);Ie(this,jl);Ie(this,ql);Ie(this,Js);Ie(this,Wl);Ie(this,Ql);Ce(this,bo,e.queryCache||new qf),Ce(this,Zs,e.mutationCache||new Zf),Ce(this,Ys,e.defaultOptions||{}),Ce(this,jl,new Map),Ce(this,ql,new Map),Ce(this,Js,0);}mount(){Z0(this,Js)._++,Z(this,Js)===1&&(Ce(this,Wl,Bl.subscribe(e=>j(this,null,function*(){e&&(yield this.resumePausedMutations(),Z(this,bo).onFocus());}))),Ce(this,Ql,Gl.subscribe(e=>j(this,null,function*(){e&&(yield this.resumePausedMutations(),Z(this,bo).onOnline());}))));}unmount(){var e,t;Z0(this,Js)._--,Z(this,Js)===0&&((e=Z(this,Wl))==null||e.call(this),Ce(this,Wl,void 0),(t=Z(this,Ql))==null||t.call(this),Ce(this,Ql,void 0));}isFetching(e){return Z(this,bo).findAll(F(y({},e),{fetchStatus:"fetching"})).length}isMutating(e){return Z(this,Zs).findAll(F(y({},e),{status:"pending"})).length}getQueryData(e){var o;let t=this.defaultQueryOptions({queryKey:e});return (o=Z(this,bo).get(t.queryHash))==null?void 0:o.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),o=Z(this,bo).build(this,t),r=o.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime(qs(t.staleTime,o))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return Z(this,bo).findAll(e).map(({queryKey:t,state:o})=>{let r=o.data;return [t,r]})}setQueryData(e,t,o){let r=this.defaultQueryOptions({queryKey:e}),n=Z(this,bo).get(r.queryHash),a=n==null?void 0:n.state.data,s=Df(t,a);if(s!==void 0)return Z(this,bo).build(this,r).setData(s,F(y({},o),{manual:true}))}setQueriesData(e,t,o){return _t.batch(()=>Z(this,bo).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,o)]))}getQueryState(e){var o;let t=this.defaultQueryOptions({queryKey:e});return (o=Z(this,bo).get(t.queryHash))==null?void 0:o.state}removeQueries(e){let t=Z(this,bo);_t.batch(()=>{t.findAll(e).forEach(o=>{t.remove(o);});});}resetQueries(e,t){let o=Z(this,bo);return _t.batch(()=>(o.findAll(e).forEach(r=>{r.reset();}),this.refetchQueries(y({type:"active"},e),t)))}cancelQueries(e,t={}){let o=y({revert:true},t),r=_t.batch(()=>Z(this,bo).findAll(e).map(n=>n.cancel(o)));return Promise.all(r).then(yo).catch(yo)}invalidateQueries(e,t={}){return _t.batch(()=>{var o,r;return Z(this,bo).findAll(e).forEach(n=>{n.invalidate();}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries(F(y({},e),{type:(r=(o=e==null?void 0:e.refetchType)!=null?o:e==null?void 0:e.type)!=null?r:"active"}),t)})}refetchQueries(e,t={}){var n;let o=F(y({},t),{cancelRefetch:(n=t.cancelRefetch)!=null?n:true}),r=_t.batch(()=>Z(this,bo).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let s=a.fetch(void 0,o);return o.throwOnError||(s=s.catch(yo)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(yo)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=false);let o=Z(this,bo).build(this,t);return o.isStaleByTime(qs(t.staleTime,o))?o.fetch(t):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(yo).catch(yo)}fetchInfiniteQuery(e){return e.behavior=Vl(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(yo).catch(yo)}ensureInfiniteQueryData(e){return e.behavior=Vl(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Gl.isOnline()?Z(this,Zs).resumePausedMutations():Promise.resolve()}getQueryCache(){return Z(this,bo)}getMutationCache(){return Z(this,Zs)}getDefaultOptions(){return Z(this,Ys)}setDefaultOptions(e){Ce(this,Ys,e);}setQueryDefaults(e,t){Z(this,jl).set(ba(e),{queryKey:e,defaultOptions:t});}getQueryDefaults(e){let t=[...Z(this,jl).values()],o={};return t.forEach(r=>{Ll(e,r.queryKey)&&Object.assign(o,r.defaultOptions);}),o}setMutationDefaults(e,t){Z(this,ql).set(ba(e),{mutationKey:e,defaultOptions:t});}getMutationDefaults(e){let t=[...Z(this,ql).values()],o={};return t.forEach(r=>{Ll(e,r.mutationKey)&&Object.assign(o,r.defaultOptions);}),o}defaultQueryOptions(e){if(e._defaulted)return e;let t=F(y(y(y({},Z(this,Ys).queries),this.getQueryDefaults(e.queryKey)),e),{_defaulted:true});return t.queryHash||(t.queryHash=J0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===o1&&(t.enabled=false),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:F(y(y(y({},Z(this,Ys).mutations),(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{_defaulted:true})}clear(){Z(this,bo).clear(),Z(this,Zs).clear();}},bo=new WeakMap,Zs=new WeakMap,Ys=new WeakMap,jl=new WeakMap,ql=new WeakMap,Js=new WeakMap,Wl=new WeakMap,Ql=new WeakMap,$f);var _r,Mt,rd,Pr,l1,Kl,Xs,$s,nd,Zl,Yl,d1,c1,Rs,Jl,Ht,od,V5,j5,q5,W5,Q5,K5,Z5,o9,t9,ad=(t9=class extends Nn{constructor(t,o){super();Ie(this,Ht);Ie(this,_r);Ie(this,Mt);Ie(this,rd);Ie(this,Pr);Ie(this,l1);Ie(this,Kl);Ie(this,Xs);Ie(this,$s);Ie(this,nd);Ie(this,Zl);Ie(this,Yl);Ie(this,d1);Ie(this,c1);Ie(this,Rs);Ie(this,Jl,new Set);this.options=o,Ce(this,_r,t),Ce(this,$s,null),Ce(this,Xs,R0()),this.options.experimental_prefetchInRender||Z(this,Xs).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(o);}bindMethods(){this.refetch=this.refetch.bind(this);}onSubscribe(){this.listeners.size===1&&(Z(this,Mt).addObserver(this),Rf(Z(this,Mt),this.options)?Re(this,Ht,od).call(this):this.updateResult(),Re(this,Ht,W5).call(this));}onUnsubscribe(){this.hasListeners()||this.destroy();}shouldFetchOnReconnect(){return Y5(Z(this,Mt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Y5(Z(this,Mt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Re(this,Ht,Q5).call(this),Re(this,Ht,K5).call(this),Z(this,Mt).removeObserver(this);}setOptions(t){let o=this.options,r=Z(this,Mt);if(this.options=Z(this,_r).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ln(this.options.enabled,Z(this,Mt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Re(this,Ht,Z5).call(this),Z(this,Mt).setOptions(this.options),o._defaulted&&!Fl(this.options,o)&&Z(this,_r).getQueryCache().notify({type:"observerOptionsUpdated",query:Z(this,Mt),observer:this});let n=this.hasListeners();n&&e9(Z(this,Mt),r,this.options,o)&&Re(this,Ht,od).call(this),this.updateResult(),n&&(Z(this,Mt)!==r||ln(this.options.enabled,Z(this,Mt))!==ln(o.enabled,Z(this,Mt))||qs(this.options.staleTime,Z(this,Mt))!==qs(o.staleTime,Z(this,Mt)))&&Re(this,Ht,V5).call(this);let a=Re(this,Ht,j5).call(this);n&&(Z(this,Mt)!==r||ln(this.options.enabled,Z(this,Mt))!==ln(o.enabled,Z(this,Mt))||a!==Z(this,Rs))&&Re(this,Ht,q5).call(this,a);}getOptimisticResult(t){let o=Z(this,_r).getQueryCache().build(Z(this,_r),t),r=this.createResult(o,t);return SI(this,r)&&(Ce(this,Pr,r),Ce(this,Kl,this.options),Ce(this,l1,Z(this,Mt).state)),r}getCurrentResult(){return Z(this,Pr)}trackResult(t,o){return new Proxy(t,{get:(r,n)=>(this.trackProp(n),o==null||o(n),Reflect.get(r,n))})}trackProp(t){Z(this,Jl).add(t);}getCurrentQuery(){return Z(this,Mt)}refetch(o={}){var t=Q(o,[]);return this.fetch(y({},t))}fetchOptimistic(t){let o=Z(this,_r).defaultQueryOptions(t),r=Z(this,_r).getQueryCache().build(Z(this,_r),o);return r.fetch().then(()=>this.createResult(r,o))}fetch(t){var o;return Re(this,Ht,od).call(this,F(y({},t),{cancelRefetch:(o=t.cancelRefetch)!=null?o:true})).then(()=>(this.updateResult(),Z(this,Pr)))}createResult(t,o){var I;let r=Z(this,Mt),n=this.options,a=Z(this,Pr),s=Z(this,l1),i=Z(this,Kl),d=t!==r?t.state:Z(this,rd),{state:c}=t,p=y({},c),f=false,u;if(o._optimisticResults){let P=this.hasListeners(),S=!P&&Rf(t,o),D=P&&e9(t,r,o,n);(S||D)&&(p=y(y({},p),H5(c.data,t.options))),o._optimisticResults==="isRestoring"&&(p.fetchStatus="idle");}let{error:g,errorUpdatedAt:m,status:v}=p;u=p.data;let h=false;if(o.placeholderData!==void 0&&u===void 0&&v==="pending"){let P;a!=null&&a.isPlaceholderData&&o.placeholderData===(i==null?void 0:i.placeholderData)?(P=a.data,h=true):P=typeof o.placeholderData=="function"?o.placeholderData((I=Z(this,Yl))==null?void 0:I.state.data,Z(this,Yl)):o.placeholderData,P!==void 0&&(v="success",u=X0(a==null?void 0:a.data,P,o),f=true);}if(o.select&&u!==void 0&&!h)if(a&&u===(s==null?void 0:s.data)&&o.select===Z(this,nd))u=Z(this,Zl);else try{Ce(this,nd,o.select),u=o.select(u),u=X0(a==null?void 0:a.data,u,o),Ce(this,Zl,u),Ce(this,$s,null);}catch(P){Ce(this,$s,P);}Z(this,$s)&&(g=Z(this,$s),u=Z(this,Zl),m=Date.now(),v="error");let b=p.fetchStatus==="fetching",x=v==="pending",w=v==="error",C=x&&b,A=u!==void 0,N={status:v,fetchStatus:p.fetchStatus,isPending:x,isSuccess:v==="success",isError:w,isInitialLoading:C,isLoading:C,data:u,dataUpdatedAt:p.dataUpdatedAt,error:g,errorUpdatedAt:m,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:w&&!A,isPaused:p.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&A,isStale:J5(t,o),refetch:this.refetch,promise:Z(this,Xs)};if(this.options.experimental_prefetchInRender){let P=T=>{N.status==="error"?T.reject(N.error):N.data!==void 0&&T.resolve(N.data);},S=()=>{let T=Ce(this,Xs,N.promise=R0());P(T);},D=Z(this,Xs);switch(D.status){case "pending":t.queryHash===r.queryHash&&P(D);break;case "fulfilled":(N.status==="error"||N.data!==D.value)&&S();break;case "rejected":(N.status!=="error"||N.error!==D.reason)&&S();break}}return N}updateResult(){let t=Z(this,Pr),o=this.createResult(Z(this,Mt),this.options);if(Ce(this,l1,Z(this,Mt).state),Ce(this,Kl,this.options),Z(this,l1).data!==void 0&&Ce(this,Yl,Z(this,Mt)),Fl(o,t))return;Ce(this,Pr,o);let r=()=>{if(!t)return true;let{notifyOnChangeProps:n}=this.options,a=typeof n=="function"?n():n;if(a==="all"||!a&&!Z(this,Jl).size)return true;let s=new Set(a!=null?a:Z(this,Jl));return this.options.throwOnError&&s.add("error"),Object.keys(Z(this,Pr)).some(i=>{let l=i;return Z(this,Pr)[l]!==t[l]&&s.has(l)})};Re(this,Ht,o9).call(this,{listeners:r()});}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Re(this,Ht,W5).call(this);}},_r=new WeakMap,Mt=new WeakMap,rd=new WeakMap,Pr=new WeakMap,l1=new WeakMap,Kl=new WeakMap,Xs=new WeakMap,$s=new WeakMap,nd=new WeakMap,Zl=new WeakMap,Yl=new WeakMap,d1=new WeakMap,c1=new WeakMap,Rs=new WeakMap,Jl=new WeakMap,Ht=new WeakSet,od=function(t){Re(this,Ht,Z5).call(this);let o=Z(this,Mt).fetch(this.options,t);return t!=null&&t.throwOnError||(o=o.catch(yo)),o},V5=function(){Re(this,Ht,Q5).call(this);let t=qs(this.options.staleTime,Z(this,Mt));if(Ur||Z(this,Pr).isStale||!Y0(t))return;let r=v4(Z(this,Pr).dataUpdatedAt,t)+1;Ce(this,d1,setTimeout(()=>{Z(this,Pr).isStale||this.updateResult();},r));},j5=function(){var t;return (t=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Z(this,Mt)):this.options.refetchInterval)!=null?t:false},q5=function(t){Re(this,Ht,K5).call(this),Ce(this,Rs,t),!(Ur||ln(this.options.enabled,Z(this,Mt))===false||!Y0(Z(this,Rs))||Z(this,Rs)===0)&&Ce(this,c1,setInterval(()=>{(this.options.refetchIntervalInBackground||Bl.isFocused())&&Re(this,Ht,od).call(this);},Z(this,Rs)));},W5=function(){Re(this,Ht,V5).call(this),Re(this,Ht,q5).call(this,Re(this,Ht,j5).call(this));},Q5=function(){Z(this,d1)&&(clearTimeout(Z(this,d1)),Ce(this,d1,void 0));},K5=function(){Z(this,c1)&&(clearInterval(Z(this,c1)),Ce(this,c1,void 0));},Z5=function(){let t=Z(this,_r).getQueryCache().build(Z(this,_r),this.options);if(t===Z(this,Mt))return;let o=Z(this,Mt);Ce(this,Mt,t),Ce(this,rd,t.state),this.hasListeners()&&(o==null||o.removeObserver(this),t.addObserver(this));},o9=function(t){_t.batch(()=>{t.listeners&&this.listeners.forEach(o=>{o(Z(this,Pr));}),Z(this,_r).getQueryCache().notify({query:Z(this,Mt),type:"observerResultsUpdated"});});},t9);function PI(e,t){return ln(t.enabled,e)!==false&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===false)}function Rf(e,t){return PI(e,t)||e.state.data!==void 0&&Y5(e,t,t.refetchOnMount)}function Y5(e,t,o){if(ln(t.enabled,e)!==false){let r=typeof o=="function"?o(e):o;return r==="always"||r!==false&&J5(e,t)}return false}function e9(e,t,o,r){return (e!==t||ln(r.enabled,e)===false)&&(!o.suspense||e.state.status!=="error")&&J5(e,o)}function J5(e,t){return ln(t.enabled,e)!==false&&e.isStaleByTime(qs(t.staleTime,e))}function SI(e,t){return !Fl(e.getCurrentResult(),t)}var X5=class extends ad{constructor(e,t){super(e,t);}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this);}setOptions(e){super.setOptions(F(y({},e),{behavior:Vl()}));}getOptimisticResult(e){return e.behavior=Vl(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch(F(y({},e),{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch(F(y({},e),{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var g,m;let{state:o}=e,r=super.createResult(e,t),{isFetching:n,isRefetching:a,isError:s,isRefetchError:i}=r,l=(m=(g=o.fetchMeta)==null?void 0:g.fetchMore)==null?void 0:m.direction,d=s&&l==="forward",c=n&&l==="forward",p=s&&l==="backward",f=n&&l==="backward";return F(y({},r),{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Jf(t,o.data),hasPreviousPage:Xf(t,o.data),isFetchNextPageError:d,isFetchingNextPage:c,isFetchPreviousPageError:p,isFetchingPreviousPage:f,isRefetchError:i&&!d&&!p,isRefetching:a&&!c&&!f})}};var ei,ti,Vr,ss,is,S4,$5,r9,R5=(r9=class extends Nn{constructor(t,o){super();Ie(this,is);Ie(this,ei);Ie(this,ti);Ie(this,Vr);Ie(this,ss);Ce(this,ei,t),this.setOptions(o),this.bindMethods(),Re(this,is,S4).call(this);}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this);}setOptions(t){var r;let o=this.options;this.options=Z(this,ei).defaultMutationOptions(t),Fl(this.options,o)||Z(this,ei).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Z(this,Vr),observer:this}),o!=null&&o.mutationKey&&this.options.mutationKey&&ba(o.mutationKey)!==ba(this.options.mutationKey)?this.reset():((r=Z(this,Vr))==null?void 0:r.state.status)==="pending"&&Z(this,Vr).setOptions(this.options);}onUnsubscribe(){var t;this.hasListeners()||(t=Z(this,Vr))==null||t.removeObserver(this);}onMutationUpdate(t){Re(this,is,S4).call(this),Re(this,is,$5).call(this,t);}getCurrentResult(){return Z(this,ti)}reset(){var t;(t=Z(this,Vr))==null||t.removeObserver(this),Ce(this,Vr,void 0),Re(this,is,S4).call(this),Re(this,is,$5).call(this);}mutate(t,o){var r;return Ce(this,ss,o),(r=Z(this,Vr))==null||r.removeObserver(this),Ce(this,Vr,Z(this,ei).getMutationCache().build(Z(this,ei),this.options)),Z(this,Vr).addObserver(this),Z(this,Vr).execute(t)}},ei=new WeakMap,ti=new WeakMap,Vr=new WeakMap,ss=new WeakMap,is=new WeakSet,S4=function(){var o,r;let t=(r=(o=Z(this,Vr))==null?void 0:o.state)!=null?r:G5();Ce(this,ti,F(y({},t),{isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}));},$5=function(t){_t.batch(()=>{var o,r,n,a,s,i,l,d;if(Z(this,ss)&&this.hasListeners()){let c=Z(this,ti).variables,p=Z(this,ti).context;(t==null?void 0:t.type)==="success"?((r=(o=Z(this,ss)).onSuccess)==null||r.call(o,t.data,c,p),(a=(n=Z(this,ss)).onSettled)==null||a.call(n,t.data,null,c,p)):(t==null?void 0:t.type)==="error"&&((i=(s=Z(this,ss)).onError)==null||i.call(s,t.error,c,p),(d=(l=Z(this,ss)).onSettled)==null||d.call(l,void 0,t.error,c,p));}this.listeners.forEach(c=>{c(Z(this,ti));});});},r9);var e6=J__namespace.createContext(void 0),p1=e=>{let t=J__namespace.useContext(e6);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},t6=({client:e,children:t})=>(J__namespace.useEffect(()=>(e.mount(),()=>{e.unmount();}),[e]),jsxRuntime.jsx(e6.Provider,{value:e,children:t}));var n9=J__namespace.createContext(false),a9=()=>J__namespace.useContext(n9);n9.Provider;function NI(){let e=false;return {clearReset:()=>{e=false;},reset:()=>{e=true;},isReset:()=>e}}var II=J__namespace.createContext(NI()),s9=()=>J__namespace.useContext(II);var l9=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=false));},d9=e=>{J__namespace.useEffect(()=>{e.clearReset();},[e]);},c9=({result:e,errorResetBoundary:t,throwOnError:o,query:r,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(n&&e.data===void 0||$0(o,[e.error,r]));var p9=e=>{let t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...o)=>Math.max(t(...o),1e3):Math.max(t!=null?t:1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)));},m9=(e,t)=>e.isLoading&&e.isFetching&&!t,u9=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,o6=(e,t,o)=>t.fetchOptimistic(e).catch(()=>{o.clearReset();});function N4(e,t,o){var p,f,u,g,m;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');let r=p1(),n=a9(),a=s9(),s=r.defaultQueryOptions(e);(f=(p=r.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||f.call(p,s),process.env.NODE_ENV!=="production"&&(s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),s._optimisticResults=n?"isRestoring":"optimistic",p9(s),l9(s,a),d9(a);let i=!r.getQueryCache().get(s.queryHash),[l]=J__namespace.useState(()=>new t(r,s)),d=l.getOptimisticResult(s),c=!n&&e.subscribed!==false;if(J__namespace.useSyncExternalStore(J__namespace.useCallback(v=>{let h=c?l.subscribe(_t.batchCalls(v)):yo;return l.updateResult(),h},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),J__namespace.useEffect(()=>{l.setOptions(s);},[s,l]),u9(s,d))throw o6(s,l,a);if(c9({result:d,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw d.error;if((g=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_afterQuery)==null||g.call(u,s,d),s.experimental_prefetchInRender&&!Ur&&m9(d,n)){let v=i?o6(s,l,a):(m=r.getQueryCache().get(s.queryHash))==null?void 0:m.promise;v==null||v.catch(yo).finally(()=>{l.updateResult();});}return s.notifyOnChangeProps?d:l.trackResult(d)}function Ve(e,t){return N4(e,ad)}function ge(e,t){let o=p1(),[r]=J__namespace.useState(()=>new R5(o,e));J__namespace.useEffect(()=>{r.setOptions(e);},[r,e]);let n=J__namespace.useSyncExternalStore(J__namespace.useCallback(s=>r.subscribe(_t.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=J__namespace.useCallback((s,i)=>{r.mutate(s,i).catch(yo);},[r]);if(n.error&&$0(r.options.throwOnError,[n.error]))throw n.error;return F(y({},n),{mutate:a,mutateAsync:n.mutate})}function yt(e,t){return N4(e,X5)}var f9={"no.results":"No results found","country.label":"Country","select.a.country.label":"Select a country","component.workspace.user.list.loading":"Loading...","component.workspace.user.list.empty":"No workspaces found","component.workspace.user.complete":"complete","component.workspace.greetings":"Good to have you back, ","component.workspace.greetings.label":"Keep making the most of what we\u2019ve prepared for you.","component.workspace.user.following":"Following","component.workspace.user.followers":"Followers","component.workspace.user.posts":"Posts","component.workspace.user.contacts":"Contacts","component.workspace.panel.explore":"All workspaces","component.workspace.panel.create":"Create workspace","component.workspace.panel.modal.title":"Create a new workspace","component.workspace.panel.modal.form.interests":"Interests","component.workspace.panel.modal.form.name":"Workspace name / emoji icon","component.workspace.panel.modal.form.interests.placeholder":"Select your interests","component.workspace.panel.modal.form.name.placeholder":"Enter workspace name","component.workspace.panel.modal.form.description":"Short description","component.workspace.panel.modal.form.button.back":"Back","component.workspace.panel.modal.form.button.create":"Create workspace","component.workspace.panel.modal.form.button.creating":"Creating your workspace...","component.workspace.panel.modal.form.toats.error.title":"Error creating workspace","component.workspace.panel.modal.form.toats.error.description":"Something went wrong while creating your workspace. Please try again.","component.workspace.panel.modal.form.errors.required-field":"This field is required","component.workspace.panel.modal.form.options.edit":"Edit","component.workspace.panel.modal.form.options.delete":"Delete","component.workspace.panel.modal.form.options.delete.confirm.title":"Are you sure you want to delete this workspace?","component.workspace.panel.modal.form.options.delete.confirm.description":"This action can\u2019t be undone! Are you sure you want to permanently delete it?","component.workspace.panel.modal.form.options.delete.button.cancel":"Cancel","component.workspace.panel.modal.form.options.delete.button.delete":"Delete","component.workspace.panel.modal.form.options.delete.toats.success.title":"Workspace deleted successfully!","component.workspace.panel.modal.form.options.delete.toats.success.description":"Your workspace was deleted successfully.","component.workspace.panel.modal.form.options.delete.toats.error.title":"Error deleting workspace","component.workspace.panel.modal.form.options.delete.toats.error.description":"Something went wrong while deleting your workspace. Please try again.","component.workspace.panel.modal.edit.title":"Edit workspace details","component.workspace.panel.modal.edit.button.save":"Save","component.workspace.panel.modal.edit.toats.success.title":"Workspace updated successfully!","component.workspace.panel.modal.edit.toats.success.description":"Your workspace was updated successfully.","component.workspace.panel.modal.edit.toats.error.title":"Error updating workspace","component.workspace.panel.modal.edit.toats.error.description":"Something went wrong while updating your workspace. Please try again.","component.workspace.panel.modal.success.title":"Workspace created successfully!","component.workspace.panel.modal.success.description":"All set! Your new workspace is the first step toward great things.","component.workspace.panel.modal.success.button.view-workspace":"View workspace","component.workspace.panel.modal.success.button.store":"Go to store","component.search.placeholder":"Search","main.navbar.home":"Home","main.navbar.mcp":"MCP","main.navbar.explore":"Explore","main.navbar.job":"Job","main.navbar.notifications":"Notifications","component.user.options.settings":"Settings","component.user.options.view-profiles":"View my profiles","component.user.options.logout":"Log out","component.user.options.logout.confirm.my-profiles":"My profiles","component.user.options.logout.confirm.my-account":"My account","component.user.options.logout.confirm.pages":"Pages","component.user.options.logout.confirm.pages.create":"Create page or profile","component.user.options.logout.confirm.logout":"Log out","component.select-input.placeholder":"Select an option","component.select-input.no-elements-found":"No items found","personas.steps.label":"This section lets you select multiple topics at once","personas.steps.initial.title":"Great to have you here!","personas.steps.initial.description":"Discover tools that help you grow professionally and unlock new opportunities easily.","personas.steps.initial.button.start":"Explore Mirantes","select-persona.title":"Pick your topic of interest","select-persona.description":"Your space, your rules! Pick a topic and see everything adapt to your interests.","select-persona.button.next":"Continue","personas.steps.new-opportunity.title":"Looking for new opportunities","personas.steps.new-opportunity.option.1":"Search for jobs","personas.steps.new-opportunity.option.2":"Take courses","personas.steps.new-opportunity.option.3":"Connect with companies and professionals","personas.steps.expand-business.title":"I want to grow my business","personas.steps.expand-business.option.1":"Promote my business","personas.steps.expand-business.2":"Monetize my content","personas.steps.expand-business.option.3":"Build a community of followers","personas.steps.win-money.title":"I want to make money online","personas.steps.win-money.option.1":"Promote my business","personas.steps.win-money.option.2":"Earn money with services","personas.steps.win-money.option.3":"Connect with other entrepreneurs","personas.steps.talents.title":"I\u2019m looking for top talent","personas.steps.talents.option.1":"Post a job","personas.steps.talents.option.2":"Start recruiting now","personas.steps.talents.description":"Pick the topics you\u2019re most interested in","choose.address.title":"Where are you located right now? This helps us recommend the best content for you","choose.address.save-button":"Save","choose.address.ignore-button":"Skip","create-post.title":"Now that we know your interests, how about creating a post?","create-post.save-button":"Create post","create-post.ignore-button":"Maybe later","continue.button":"Continue","back.button":"Back","new-oportunity.phrase":"Make your first post and stand out to recruiters.","expand-business.phrase":"Showcase your business and connect with new clients or partners.","win-money.phrase":"Share your talent with the world and start building your community.","new-talents.phrase":"Share what you\u2019re looking for and attract top professionals to your team.","offline-title":"Disconnected from the internet \u26A0\uFE0F","online-title":"Connected to the internet \u2705","internet.slow":"Your internet is slow \u26A0\uFE0F","internet.medium":"Your internet is okay \u{1F642}","internet.high":"Your internet is fast \u{1F680}","calendar.title":"Calendar","calendar.new-event":"New event","calendar.my-agenda":"My agenda","calendar.done-events":"Done events","calendar.marked-events":"Marked events","download.banner.title":"Discover the true experience with our app!","download.banner.subtitle":"The best experience is waiting for you in our app.","download.banner.button":"Download now","download.banner.trigger":"Show Download Banner"};var g9={"no.results":"Aucun r\xE9sultat trouv\xE9","country.label":"Pays","select.a.country.label":"S\xE9lectionnez un pays","component.workspace.user.list.loading":"Chargement...","component.workspace.user.list.empty":"Aucun workspace trouv\xE9","component.workspace.user.complete":"complet","component.workspace.greetings":"Ravi de vous revoir, ","component.workspace.greetings.label":"Continuez \xE0 profiter de ce que nous avons pr\xE9par\xE9 pour vous.","component.workspace.user.following":"Abonnements","component.workspace.user.followers":"Abonn\xE9s","component.workspace.user.posts":"Posts","component.workspace.user.contacts":"Contacts","component.workspace.panel.explore":"Tous les workspaces","component.workspace.panel.create":"Cr\xE9er un workspace","component.workspace.panel.modal.title":"Cr\xE9er un nouveau workspace","component.workspace.panel.modal.form.interests":"Centres d\u2019int\xE9r\xEAt","component.workspace.panel.modal.form.name":"Nom du workspace / ic\xF4ne emoji","component.workspace.panel.modal.form.interests.placeholder":"S\xE9lectionnez vos centres d\u2019int\xE9r\xEAt","component.workspace.panel.modal.form.name.placeholder":"Entrez le nom du workspace","component.workspace.panel.modal.form.description":"Br\xE8ve description","component.workspace.panel.modal.form.button.back":"Retour","component.workspace.panel.modal.form.button.create":"Cr\xE9er workspace","component.workspace.panel.modal.form.button.creating":"Cr\xE9ation de votre workspace...","component.workspace.panel.modal.form.toats.error.title":"Erreur lors de la cr\xE9ation du workspace","component.workspace.panel.modal.form.toats.error.description":"Une erreur est survenue lors de la cr\xE9ation du workspace. Veuillez r\xE9essayer.","component.workspace.panel.modal.form.errors.required-field":"Champ obligatoire","component.workspace.panel.modal.form.options.edit":"Modifier","component.workspace.panel.modal.form.options.delete":"Supprimer","component.workspace.panel.modal.form.options.delete.confirm.title":"Voulez-vous vraiment supprimer ce workspace ?","component.workspace.panel.modal.form.options.delete.confirm.description":"Cette action est irr\xE9versible ! Voulez-vous vraiment supprimer d\xE9finitivement ce workspace ?","component.workspace.panel.modal.form.options.delete.button.cancel":"Annuler","component.workspace.panel.modal.form.options.delete.button.delete":"Supprimer","component.workspace.panel.modal.form.options.delete.toats.success.title":"Workspace supprim\xE9 avec succ\xE8s !","component.workspace.panel.modal.form.options.delete.toats.success.description":"Le workspace a bien \xE9t\xE9 supprim\xE9.","component.workspace.panel.modal.form.options.delete.toats.error.title":"Erreur lors de la suppression du workspace","component.workspace.panel.modal.form.options.delete.toats.error.description":"Une erreur est survenue lors de la suppression du workspace. Veuillez r\xE9essayer.","component.workspace.panel.modal.edit.title":"Modifier les d\xE9tails du workspace","component.workspace.panel.modal.edit.button.save":"Enregistrer","component.workspace.panel.modal.edit.toats.success.title":"Workspace mis \xE0 jour avec succ\xE8s !","component.workspace.panel.modal.edit.toats.success.description":"Le workspace a bien \xE9t\xE9 mis \xE0 jour.","component.workspace.panel.modal.edit.toats.error.title":"Erreur lors de la mise \xE0 jour du workspace","component.workspace.panel.modal.edit.toats.error.description":"Une erreur est survenue lors de la mise \xE0 jour du workspace. Veuillez r\xE9essayer.","component.workspace.panel.modal.success.title":"Workspace cr\xE9\xE9 avec succ\xE8s !","component.workspace.panel.modal.success.description":"Tout est pr\xEAt ! Votre nouveau workspace est le premier pas vers de belles r\xE9ussites.","component.workspace.panel.modal.success.button.view-workspace":"Voir le workspace","component.workspace.panel.modal.success.button.store":"Aller \xE0 la boutique","component.search.placeholder":"Rechercher","main.navbar.home":"Accueil","main.navbar.mcp":"MCP","main.navbar.explore":"Explorer","main.navbar.job":"Emploi","main.navbar.notifications":"Notifications","component.user.options.settings":"Param\xE8tres","component.user.options.view-profiles":"Voir mes profils","component.user.options.logout":"Se d\xE9connecter","component.user.options.logout.confirm.my-profiles":"Mes profils","component.user.options.logout.confirm.my-account":"Mon compte","component.user.options.logout.confirm.pages":"Pages","component.user.options.logout.confirm.pages.create":"Cr\xE9er une page ou un profil","component.user.options.logout.confirm.logout":"Se d\xE9connecter","component.select-input.placeholder":"S\xE9lectionnez une option","component.select-input.no-elements-found":"Aucun \xE9l\xE9ment trouv\xE9","personas.steps.label":"Cette section permet de s\xE9lectionner plusieurs sujets \xE0 la fois","personas.steps.initial.title":"Content de vous voir ici !","personas.steps.initial.description":"D\xE9couvrez des outils qui vous aideront \xE0 \xE9voluer professionnellement et \xE0 saisir de nouvelles opportunit\xE9s facilement.","personas.steps.initial.button.start":"Explorer Mirantes","select-persona.title":"Choisissez votre centre d\u2019int\xE9r\xEAt","select-persona.description":"Votre espace, vos r\xE8gles ! Choisissez un th\xE8me et tout s\u2019adaptera \xE0 vos int\xE9r\xEAts.","select-persona.button.next":"Continuer","personas.steps.new-opportunity.title":"Je recherche de nouvelles opportunit\xE9s","personas.steps.new-opportunity.option.1":"Rechercher un emploi","personas.steps.new-opportunity.option.2":"Suivre des formations","personas.steps.new-opportunity.option.3":"Se connecter avec des entreprises et des professionnels","personas.steps.expand-business.title":"Je veux d\xE9velopper mon entreprise","personas.steps.expand-business.option.1":"Promouvoir mon entreprise","personas.steps.expand-business.2":"Mon\xE9tiser mes contenus","personas.steps.expand-business.option.3":"Cr\xE9er une communaut\xE9 de followers","personas.steps.win-money.title":"Je veux gagner de l'argent en ligne","personas.steps.win-money.option.1":"Promouvoir mon entreprise","personas.steps.win-money.option.2":"Gagner de l'argent avec des services","personas.steps.win-money.option.3":"Se connecter avec d'autres entrepreneurs","personas.steps.talents.title":"Je recherche les meilleurs talents","personas.steps.talents.option.1":"Publier une offre","personas.steps.talents.option.2":"Recruter maintenant","personas.steps.talents.description":"S\xE9lectionnez les sujets qui vous int\xE9ressent le plus","choose.address.title":"Quelle est votre localisation actuelle ? Cela nous aide \xE0 mieux vous recommander du contenu","choose.address.save-button":"Enregistrer","choose.address.ignore-button":"Ignorer","create-post.title":"Maintenant que nous connaissons vos int\xE9r\xEAts, pourquoi ne pas cr\xE9er un post ?","create-post.save-button":"Cr\xE9er un post","create-post.ignore-button":"Peut-\xEAtre plus tard","continue.button":"Continuer","back.button":"Retour","new-oportunity.phrase":"Faites votre premier post et attirez l'attention des recruteurs.","expand-business.phrase":"Pr\xE9sentez votre entreprise et connectez-vous \xE0 de nouveaux clients ou partenaires.","win-money.phrase":"Montrez votre talent au monde et commencez \xE0 b\xE2tir votre communaut\xE9.","new-talents.phrase":"Partagez vos besoins et attirez les meilleurs professionnels dans votre \xE9quipe.","offline-title":"D\xE9connect\xE9 d'internet \u26A0\uFE0F","online-title":"Connect\xE9 \xE0 internet \u2705","internet.slow":"Votre connexion est lente \u26A0\uFE0F","internet.medium":"Votre connexion est correcte \u{1F642}","internet.high":"Votre connexion est rapide \u{1F680}","calendar.title":"Calendrier","calendar.new-event":"Nouvel \xE9v\xE9nement","calendar.my-agenda":"Mon agenda","calendar.done-events":"\xC9v\xE9nements r\xE9alis\xE9s","calendar.marked-events":"\xC9v\xE9nements marqu\xE9s","download.banner.title":"D\xE9couvrez la vraie exp\xE9rience avec notre app !","download.banner.subtitle":"La meilleure exp\xE9rience vous attend dans notre app.","download.banner.button":"T\xE9l\xE9charger maintenant","download.banner.trigger":"Afficher la banni\xE8re de t\xE9l\xE9chargement"};var h9={"no.results":"Sem resultados","country.label":"Pa\xEDs","select.a.country.label":"Seleccione um pa\xEDs","component.workspace.user.list.loading":"Carregando...","component.workspace.user.list.empty":"Nenhum workspace encontrado","component.workspace.user.complete":"completo","component.workspace.greetings":"Que bom ter voc\xEA de volta, ","component.workspace.greetings.label":"Continue tirando o melhor do que preparamos para voc\xEA.","component.workspace.user.following":"A seguir","component.workspace.user.followers":"Seguidores","component.workspace.user.posts":"Posts","component.workspace.user.contacts":"Contactos","component.workspace.panel.explore":"Todos workspaces","component.workspace.panel.create":"Criar workspace","component.workspace.panel.modal.title":"Criar novo workspace","component.workspace.panel.modal.form.interests":"Interesses","component.workspace.panel.modal.form.name":"Nome do workspace / icon-emoji","component.workspace.panel.modal.form.interests.placeholder":"Selecione os interesses","component.workspace.panel.modal.form.name.placeholder":"Escrever nome do workspace","component.workspace.panel.modal.form.description":"Descri\xE7\xE3o curta","component.workspace.panel.modal.form.button.back":"Voltar","component.workspace.panel.modal.form.button.create":"Criar workspace","component.workspace.panel.modal.form.button.creating":"Criando o seu workspace...","component.workspace.panel.modal.form.toats.error.title":"Erro ao criar workspace","component.workspace.panel.modal.form.toats.error.description":"Ocorreu um erro ao criar o workspace, por favor, tente novamente.","component.workspace.panel.modal.form.errors.required-field":"Campo obrigat\xF3rio","component.workspace.panel.modal.form.options.edit":"Editar","component.workspace.panel.modal.form.options.delete":"Deletar","component.workspace.panel.modal.form.options.delete.confirm.title":"Voc\xEA quer excluir este workspace?","component.workspace.panel.modal.form.options.delete.confirm.description":"Depois n\xE3o tem volta! Tem certeza que quer apagar de vez?.","component.workspace.panel.modal.form.options.delete.button.cancel":"Cancelar","component.workspace.panel.modal.form.options.delete.button.delete":"Deletar","component.workspace.panel.modal.form.options.delete.toats.success.title":"Workspace deletado com sucesso!","component.workspace.panel.modal.form.options.delete.toats.success.description":"O workspace foi deletado com sucesso.","component.workspace.panel.modal.form.options.delete.toats.error.title":"Erro ao deletar workspace","component.workspace.panel.modal.form.options.delete.toats.error.description":"Ocorreu um erro ao deletar o workspace, por favor, tente novamente.","component.workspace.panel.modal.edit.title":"Editar detalhes do worspace","component.workspace.panel.modal.edit.button.save":"Salvar","component.workspace.panel.modal.edit.toats.success.title":"Workspace atualizado com sucesso!","component.workspace.panel.modal.edit.toats.success.description":"O workspace foi atualizado com sucesso.","component.workspace.panel.modal.edit.toats.error.title":"Erro ao atualizar workspace","component.workspace.panel.modal.edit.toats.error.description":"Ocorreu um erro ao atualizar o workspace, por favor, tente novamente.","component.workspace.panel.modal.success.title":"Workspace criado com sucesso!","component.workspace.panel.modal.success.description":"Tudo pronto! Seu novo espa\xE7o de trabalho \xE9 o primeiro passo para grandes conquistas.","component.workspace.panel.modal.success.button.view-workspace":"Ver workspace","component.workspace.panel.modal.success.button.store":"Ir na loja","component.search.placeholder":"Pesquisar","main.navbar.home":"In\xEDcio","main.navbar.mcp":"MCP","main.navbar.explore":"Explorar","main.navbar.job":"Vaga","main.navbar.notifications":"Notifica\xE7\xF5es","component.user.options.settings":"Defini\xE7\xF5es","component.user.options.view-profiles":"Ver meu perfil","component.user.options.logout":"Sair da conta","component.user.options.logout.confirm.my-profiles":"Meus perfis","component.user.options.logout.confirm.my-account":"Minha conta","component.user.options.logout.confirm.pages":"P\xE1ginas","component.user.options.logout.confirm.pages.create":"Criar p\xE1gina ou perfil ","component.user.options.logout.confirm.logout":"Terminar sess\xE3o","component.select-input.placeholder":"Selecione uma op\xE7\xE3o","component.select-input.no-elements-found":"Nenhum elemento encontrado","personas.steps.label":"Esta sec\xE7\xE3o permite a sele\xE7\xE3o de v\xE1rias assuntos em simult\xE2neo","personas.steps.initial.title":"Que bom ter voc\xEA aqui!","personas.steps.initial.description":"Descubra as ferramentas que v\xE3o te ajudar crescer profissionalmente, abrir novas oportunidades de forma simples e pr\xE1tica.","personas.steps.initial.button.start":"Explorar Mirantes","select-persona.title":"Escolha o tema de interesse","select-persona.description":"Seu espa\xE7o, suas regras! Escolha um tema e veja tudo se moldar ao seu interesse.","select-persona.button.next":"Continuar","personas.steps.new-opportunity.title":"Procuro novas oportunidade","personas.steps.new-opportunity.option.1":"Procurar emprego","personas.steps.new-opportunity.option.2":"Fazer forma\xE7\xF5es","personas.steps.new-opportunity.option.3":"Conectar-se com empresas e profissionais","personas.steps.expand-business.title":"Quero expandir o meu neg\xF3cio","personas.steps.expand-business.option.1":"Promover o neg\xF3cio.","personas.steps.expand-business.2":"Rentabilizar os seus conte\xFAdos.","personas.steps.expand-business.option.3":"Criar uma comunidade de seguidores.","personas.steps.win-money.title":"Quero ganhar dinheiro online","personas.steps.win-money.option.1":"Promover o neg\xF3cio.","personas.steps.win-money.option.2":"Ganhar dinheiro com servi\xE7os.","personas.steps.win-money.option.3":"Ligar-se a outros empreendedores.","personas.steps.talents.title":"Procuro os melhores talentos","personas.steps.talents.option.1":"Publicar vaga","personas.steps.talents.option.2":"Recrutar agora","personas.steps.talents.description":"Marque os assuntos que mais te interessam","choose.address.title":"Qual \xE9 a tua localiza\xE7\xE3o atual? Isso ajuda-nos a recomendar melhor o teu conte\xFAdo","choose.address.save-button":"Salvar","choose.address.ignore-button":"Ignorar","create-post.title":"Agora que sabemos os seus interesses, que tal fazer uma publica\xE7\xE3o?","create-post.save-button":"Criar uma publica\xE7\xE3o","create-post.ignore-button":"Talvez depois eu publico","continue.button":"Continuar","back.button":"Voltar","new-oportunity.phrase":"Fa\xE7a o seu primeiro post e destaque-se entre os recrutadores.","expand-business.phrase":"Apresente o seu neg\xF3cio e conecte-se com novos clientes ou parceiros.","win-money.phrase":"Mostre ao mundo o seu talento e comece a criar uma comunidade \xE0 sua volta.","new-talents.phrase":"Partilhe o que procura e atraia os melhores profissipnais para a sua equipa.","offline-title":"Disconectado(a) da internet \u26A0\uFE0F","online-title":"Conectado(a) \xE0 internet \u2705","internet.slow":"Sua internet est\xE1 lenta \u26A0\uFE0F","internet.medium":"Sua internet est\xE1 razo\xE1vel \u{1F642}","internet.high":"Sua internet est\xE1 r\xE1pida \u{1F680}","calendar.title":"Agenda","calendar.new-event":"Novo evento","calendar.my-agenda":"Minha agenda","calendar.done-events":"Eventos realizados","calendar.marked-events":"Eventos marcados","download.banner.title":"Descobre a verdadeira experi\xEAncia com a nossa app!","download.banner.subtitle":"A melhor experi\xEAncia est\xE1 \xE0 tua espera na nossa app.","download.banner.button":"Baixar agora","download.banner.trigger":"Mostrar Banner de Download"};var EI={pt:y({},h9),en:y({},f9),fr:y({},g9)};function he(e,t){return EI[e][t]}function y9(e={}){let{checkInterval:t=3e4,latencyThresholds:o={slow:1e3,medium:400},speedThresholds:r={slow:.3,medium:1},enabled:n=true}=e,[a,s]=J.useState("high"),[i,l]=J.useState(null),[d,c]=J.useState(null),[p,f]=J.useState(typeof navigator!="undefined"?navigator.onLine:true);J.useEffect(()=>{if(typeof window=="undefined")return;let v=()=>f(true),h=()=>{f(false),s("slow");};return window.addEventListener("online",v),window.addEventListener("offline",h),()=>{window.removeEventListener("online",v),window.removeEventListener("offline",h);}},[]);let u=J.useCallback(()=>j(this,null,function*(){try{let v=`https://www.google.com/favicon.ico?t=${Date.now()}`,h=performance.now(),b=new AbortController,x=setTimeout(()=>b.abort(),5e3),w=yield fetch(v,{method:"HEAD",cache:"no-store",mode:"no-cors",signal:b.signal});return clearTimeout(x),performance.now()-h}catch(v){return typeof window!="undefined"&&window.performance?150:2e3}}),[]),g=J.useCallback(()=>{if(typeof navigator=="undefined")return null;let v=navigator,h=v.connection||v.mozConnection||v.webkitConnection;return h?{effectiveType:h.effectiveType,downlink:h.downlink,rtt:h.rtt,saveData:h.saveData}:null},[]),m=J.useCallback((v,h)=>{let b=g();if(b){let{effectiveType:x,downlink:w,rtt:C}=b;return x==="slow-2g"||x==="2g"?"slow":x==="3g"?"medium":x==="4g"&&w>2?"high":C>o.slow||w<r.slow?"slow":C>o.medium||w<r.medium?"medium":"high"}if(h!==null){if(v>o.slow||h<r.slow)return "slow";if(v>o.medium||h<r.medium)return "medium"}else {if(v>o.slow)return "slow";if(v>o.medium)return "medium"}return "high"},[o,r,g]);return J.useEffect(()=>{if(!n||!p||typeof window=="undefined"){p||s("slow");return}let v,h=true,b=()=>j(this,null,function*(){if(h){try{let C=g(),A,k=null;if(C?(A=C.rtt||0,k=C.downlink||null):A=yield u(),!h)return;l(Math.round(A)),k!==null&&c(Math.round(k*100)/100);let N=m(A,k);s(N);}catch(C){console.error("Quality check failed:",C);}h&&(v=setTimeout(b,t));}});b();let x=navigator,w=x.connection||x.mozConnection||x.webkitConnection;if(w){let C=()=>b();return w.addEventListener("change",C),()=>{h=false,clearTimeout(v),w.removeEventListener("change",C);}}return ()=>{h=false,clearTimeout(v);}},[n,p,t,u,m,g]),{quality:a,latency:i,downloadSpeed:d,isOnline:p,isSlow:a==="slow",isMedium:a==="medium",isHigh:a==="high"}}function _I({message:e,visible:t,quality:o}){let r=o==="slow"?lucideReact.WifiOff:o==="medium"?lucideReact.SignalMedium:lucideReact.Wifi;return J__namespace.default.createElement(react.AnimatePresence,null,t&&J__namespace.default.createElement(react.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3},className:FI__default.default("fixed bottom-4 right-4 flex items-center gap-2 px-4 py-2 rounded-lg shadow-lg text-white text-sm z-50",{"bg-red-500":o==="slow","bg-yellow-500":o==="medium"})},J__namespace.default.createElement(r,{className:"w-4 h-4"}),e))}function x9({children:e,Notification:t,queryClient:o,onOpenCreatePostModal:r,commentComponents:n,pageTriggerComponents:a,values:{chatApiUrl:s,chatForPage:i,locale:l,Link:d,usePathname:c,user:p,isGettingUser:f,mirantesDomain:u,environment:g,feedApi:m,searchApi:v,widgetsApi:h,hostUrl:b,assetsApiUrl:x,isDev:w,profileApiUrl:C="",analyticsApiUrl:A="",isGettingStats:k,openCageApiKey:N,pageId:I,authedApi:P,authApiUrl:S,socketApiUrl:D,uploadFilesApi:T,page:L,ocpSubscriptionKey:E,billingApiUrl:B,multicaixaExpressUrl:W,stripeKey:q,isPageFeed:Y,community:H,isCommunityFeed:z}={}}){let{quality:G}=y9({checkInterval:3e4,latencyThresholds:{slow:1e3,medium:400},speedThresholds:{slow:.3,medium:1},enabled:true}),[R,V]=J.useState(false),[_,$]=J.useState(""),oe=J.useRef("medium"),K=J.useMemo(()=>({locale:l,Link:d,usePathname:c,user:p,isGettingUser:f,openCageApiKey:N,mirantesDomain:u,environment:g,widgetsApi:h,searchApi:v,feedApi:m,hostUrl:b,isDev:w,Notification:t,profileApiUrl:C,isGettingStats:k,pageId:I,isPageFeed:Y,community:H,isCommunityFeed:z,authedApi:P,authApiUrl:S,chatApiUrl:s,assetsApiUrl:x,analyticsApiUrl:A,chatForPage:i,socketApiUrl:D,uploadFilesApi:T,queryClient:o,page:L,ocpSubscriptionKey:E,billingApiUrl:B,onOpenCreatePostModal:me=>{r==null||r(),me==null||me();},multicaixaExpressUrl:W,stripeKey:q,commentComponents:n,pageTriggerComponents:a}),[l,d,c,p,u,g,h,m,v,A,x,b,w,t,C,r,N,I,P,S,T,o,L,Y,H,z,E,B,W,q,n,a]),ne=typeof window!="undefined";return J.useEffect(()=>{if(ne&&G!==oe.current)if(oe.current=G,G==="slow"||G==="medium"){let me=G==="slow"?"internet.slow":"internet.medium",Me=he(l!=null?l:"pt",me);$(Me),V(true),setTimeout(()=>V(false),3e3);}else V(false);},[G,l,ne]),J__namespace.default.createElement(g4.Provider,{value:K},ne&&J__namespace.default.createElement(_I,{quality:G,visible:R,message:_}),J__namespace.default.createElement(t6,{client:o},J__namespace.default.createElement(billingV2.MirantesBillingProvider,{values:{billingApiUrl:B,locale:l,multicaixaExpressUrl:W,stripeKey:q,queryClient:o,user:p,page:{id:L==null?void 0:L.id,name:L==null?void 0:L.name,slug:L==null?void 0:L.slug}}},e),ne&&!w&&J__namespace.default.createElement(reactQueryDevtools.ReactQueryDevtools,{client:o,initialIsOpen:false})))}function E4(e,t){if(typeof window=="undefined")return t;let o=window.localStorage.getItem(e);try{return o?JSON.parse(o):t}catch(r){return t}}function Ma(e,t){let[o,r]=J.useState(()=>E4(e,t));return J.useEffect(()=>{typeof window!="undefined"&&window.localStorage.setItem(e,JSON.stringify(o));},[e,o]),[o,r]}var qI=["list-pages-open","chat-visible","mobile-explore-open"],WI=["job-trigger-open"];function Ae(){typeof window!="undefined"&&(qI.forEach(e=>{window.localStorage.setItem(e,JSON.stringify(false));}),WI.forEach(e=>{let t=window.localStorage.getItem(e);if(t)try{let o=JSON.parse(t);o&&typeof o=="object"&&"state"in o&&(o.state.isJobOpen=!1,window.localStorage.setItem(e,JSON.stringify(o)));}catch(o){window.localStorage.removeItem(e);}}),window.dispatchEvent(new CustomEvent("persistentUIReset")));}var s6="-",QI=e=>{let t=ZI(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return {getClassGroupId:s=>{let i=s.split(s6);return i[0]===""&&i.length!==1&&i.shift(),M9(i,t)||KI(s)},getConflictingClassGroupIds:(s,i)=>{let l=o[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},M9=(e,t)=>{var s;if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?M9(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(s6);return (s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},w9=/^\[(.+)\]$/,KI=e=>{if(w9.test(e)){let t=w9.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return "arbitrary.."+o}},ZI=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return JI(Object.entries(e.classGroups),o).forEach(([a,s])=>{a6(s,r,a,t);}),r},a6=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:C9(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(YI(n)){a6(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,s])=>{a6(s,C9(t,a),o,r);});});},C9=(e,t)=>{let o=e;return t.split(s6).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r);}),o},YI=e=>e.isThemeGetter,JI=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return [o,n]}):e,XI=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,s)=>{o.set(a,s),t++,t>e&&(t=0,r=o,o=new Map);};return {get(a){let s=o.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return n(a,s),s},set(a,s){o.has(a)?o.set(a,s):n(a,s);}}},P9="!",$I=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,s=i=>{let l=[],d=0,c=0,p;for(let v=0;v<i.length;v++){let h=i[v];if(d===0){if(h===n&&(r||i.slice(v,v+a)===t)){l.push(i.slice(c,v)),c=v+a;continue}if(h==="/"){p=v;continue}}h==="["?d++:h==="]"&&d--;}let f=l.length===0?i:i.substring(c),u=f.startsWith(P9),g=u?f.substring(1):f,m=p&&p>c?p-c:void 0;return {modifiers:l,hasImportantModifier:u,baseClassName:g,maybePostfixModifierPosition:m}};return o?i=>o({className:i,parseClassName:s}):s},RI=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r);}),t.push(...o.sort()),t},eE=e=>y({cache:XI(e.cacheSize),parseClassName:$I(e)},QI(e)),tE=/\s+/,oE=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],s=e.trim().split(tE),i="";for(let l=s.length-1;l>=0;l-=1){let d=s[l],{modifiers:c,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:u}=o(d),g=!!u,m=r(g?f.substring(0,u):f);if(!m){if(!g){i=d+(i.length>0?" "+i:i);continue}if(m=r(f),!m){i=d+(i.length>0?" "+i:i);continue}g=false;}let v=RI(c).join(":"),h=p?v+P9:v,b=h+m;if(a.includes(b))continue;a.push(b);let x=n(m,g);for(let w=0;w<x.length;++w){let C=x[w];a.push(h+C);}i=d+(i.length>0?" "+i:i);}return i};function rE(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=S9(t))&&(r&&(r+=" "),r+=o);return r}var S9=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=S9(e[r]))&&(o&&(o+=" "),o+=t);return o};function nE(e,...t){let o,r,n,a=s;function s(l){let d=t.reduce((c,p)=>p(c),e());return o=eE(d),r=o.cache.get,n=o.cache.set,a=i,i(l)}function i(l){let d=r(l);if(d)return d;let c=oE(l,o);return n(l,c),c}return function(){return a(rE.apply(null,arguments))}}var eo=e=>{let t=o=>o[e]||[];return t.isThemeGetter=true,t},A9=/^\[(?:([a-z-]+):)?(.+)\]$/i,aE=/^\d+\/\d+$/,sE=new Set(["px","full","screen"]),iE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,cE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ds=e=>$l(e)||sE.has(e)||aE.test(e),ni=e=>Rl(e,"length",bE),$l=e=>!!e&&!Number.isNaN(Number(e)),n6=e=>Rl(e,"number",$l),id=e=>!!e&&Number.isInteger(Number(e)),mE=e=>e.endsWith("%")&&$l(e.slice(0,-1)),st=e=>A9.test(e),ai=e=>iE.test(e),uE=new Set(["length","size","percentage"]),fE=e=>Rl(e,uE,N9),gE=e=>Rl(e,"position",N9),hE=new Set(["image","url"]),vE=e=>Rl(e,hE,wE),yE=e=>Rl(e,"",xE),ld=()=>true,Rl=(e,t,o)=>{let r=A9.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):false},bE=e=>lE.test(e)&&!dE.test(e),N9=()=>false,xE=e=>cE.test(e),wE=e=>pE.test(e);var CE=()=>{let e=eo("colors"),t=eo("spacing"),o=eo("blur"),r=eo("brightness"),n=eo("borderColor"),a=eo("borderRadius"),s=eo("borderSpacing"),i=eo("borderWidth"),l=eo("contrast"),d=eo("grayscale"),c=eo("hueRotate"),p=eo("invert"),f=eo("gap"),u=eo("gradientColorStops"),g=eo("gradientColorStopPositions"),m=eo("inset"),v=eo("margin"),h=eo("opacity"),b=eo("padding"),x=eo("saturate"),w=eo("scale"),C=eo("sepia"),A=eo("skew"),k=eo("space"),N=eo("translate"),I=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto",st,t],D=()=>[st,t],T=()=>["",ds,ni],L=()=>["auto",$l,st],E=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",st],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[$l,st];return {cacheSize:500,separator:":",theme:{colors:[ld],spacing:[ds,ni],blur:["none","",ai,st],brightness:z(),borderColor:[e],borderRadius:["none","","full",ai,st],borderSpacing:D(),borderWidth:T(),contrast:z(),grayscale:Y(),hueRotate:z(),invert:Y(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[mE,ni],inset:S(),margin:S(),opacity:z(),padding:D(),saturate:z(),scale:z(),sepia:Y(),skew:z(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",st]}],container:["container"],columns:[{columns:[ai]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...E(),st]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",id,st]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",st]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",id,st]}],"grid-cols":[{"grid-cols":[ld]}],"col-start-end":[{col:["auto",{span:["full",id,st]},st]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[ld]}],"row-start-end":[{row:["auto",{span:[id,st]},st]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",st]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",st]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",st,t]}],"min-w":[{"min-w":[st,t,"min","max","fit"]}],"max-w":[{"max-w":[st,t,"none","full","min","max","fit","prose",{screen:[ai]},ai]}],h:[{h:[st,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[st,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[st,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[st,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ai,ni]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",n6]}],"font-family":[{font:[ld]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",st]}],"line-clamp":[{"line-clamp":["none",$l,n6]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ds,st]}],"list-image":[{"list-image":["none",st]}],"list-style-type":[{list:["none","disc","decimal",st]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ds,ni]}],"underline-offset":[{"underline-offset":["auto",ds,st]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",st]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",st]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...E(),gE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[u]}],"gradient-via":[{via:[u]}],"gradient-to":[{to:[u]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:B()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[ds,st]}],"outline-w":[{outline:[ds,ni]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[ds,ni]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ai,yE]}],"shadow-color":[{shadow:[ld]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ai,st]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",st]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",st]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",st]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[id,st]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",st]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",st]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",st]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ds,ni,n6]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var k4=nE(CE);function U(...e){return k4(FI.clsx(e))}function i6(o){var r=o,{delayDuration:e=0}=r,t=Q(r,["delayDuration"]);return J__namespace.createElement(En__namespace.Provider,y({"data-slot":"tooltip-provider",delayDuration:e},t))}function I9(t){var e=Q(t,[]);return J__namespace.createElement(i6,null,J__namespace.createElement(En__namespace.Root,y({"data-slot":"tooltip"},e)))}function E9(t){var e=Q(t,[]);return J__namespace.createElement(En__namespace.Trigger,y({"data-slot":"tooltip-trigger"},e))}function k9(n){var a=n,{className:e,sideOffset:t=0,children:o}=a,r=Q(a,["className","sideOffset","children"]);return J__namespace.createElement(En__namespace.Portal,null,J__namespace.createElement(En__namespace.Content,y({"data-slot":"tooltip-content",sideOffset:t,className:U("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e)},r),o,J__namespace.createElement(En__namespace.Arrow,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})))}function T9({children:e,content:t,className:o}){return J__namespace.default.createElement(i6,null,J__namespace.default.createElement(I9,null,J__namespace.default.createElement(E9,{className:"w-full h-full"},e),t&&J__namespace.default.createElement(k9,{className:U("p-4 bg-white rounded-lg",o)},J__namespace.default.createElement("span",{className:"text-body-md font-medium"},t))))}function ur(){let[e,t]=J.useState(false);return {isOpen:e,onOpen:()=>{t(true);},onClose:()=>{t(false);},toggle:()=>{t(!e);}}}function kn(e,t){J.useEffect(()=>{let o=r=>{e.current&&!e.current.contains(r.target)&&t();};return document.addEventListener("click",o),()=>{document.removeEventListener("click",o);}},[e,t]);}function m1({color:e="#687588",fontSize:t=20}){return J__namespace.createElement("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none"},J__namespace.createElement("path",{opacity:.4,d:"M14.664 19.99h-9.33A5.343 5.343 0 011.4 18.6 5.346 5.346 0 01.01 14.665v-9.33a5.345 5.345 0 011.388-3.936A5.347 5.347 0 015.335.01h9.33a5.338 5.338 0 013.932 1.388 5.372 5.372 0 011.393 3.937v9.33a5.35 5.35 0 01-1.389 3.936 5.347 5.347 0 01-3.937 1.389z",fill:e}),J__namespace.createElement("path",{d:"M15.055 8.398l-6.553 6.585a1.8 1.8 0 01-1.256.517H4.958a.463.463 0 01-.331-.137.457.457 0 01-.127-.331l.058-2.313c.01-.458.195-.887.516-1.21L9.72 6.857a.212.212 0 01.292 0L11.64 8.48a.615.615 0 00.428.175c.36 0 .643-.293.643-.644a.661.661 0 00-.175-.449c-.03-.039-1.58-1.583-1.58-1.583a.26.26 0 010-.36l.652-.664a1.537 1.537 0 012.18 0l1.267 1.268a1.55 1.55 0 010 2.176z",fill:e}))}function M(){let e=J.useContext(g4);if(!e)throw new Error("useMirantesFoundation must be used within a MirantesFoundationProvider");return e}function Sr({color:e="#E03137"}){return J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},J__namespace.createElement("path",{fill:e,d:"M16.37 7.906c0 .057-.445 5.674-.699 8.038-.159 1.45-1.094 2.33-2.497 2.356-1.078.024-2.133.032-3.171.032-1.102 0-2.18-.008-3.226-.032-1.356-.033-2.292-.93-2.443-2.356-.261-2.372-.697-7.981-.705-8.038a.66.66 0 0 1 .159-.465.6.6 0 0 1 .436-.195h11.558c.166 0 .317.073.436.195a.62.62 0 0 1 .151.465",opacity:"0.4"}),J__namespace.createElement("path",{fill:e,d:"M17.5 4.982c0-.342-.27-.61-.594-.61h-2.43c-.494 0-.924-.352-1.034-.848l-.136-.608a1.654 1.654 0 0 0-1.585-1.248H8.28c-.746 0-1.397.514-1.595 1.288l-.127.569a1.07 1.07 0 0 1-1.034.846h-2.43a.6.6 0 0 0-.595.611v.317c0 .334.27.61.595.61h13.81a.607.607 0 0 0 .595-.61z"}))}var L4={blue:{shade1:"#0b89ce"},red:{shade6:"#E03137"}};var D9=()=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"24",fill:"none",viewBox:"0 0 23 24"},J__namespace.createElement("path",{fill:"#000",d:"M18.781 18.47a.75.75 0 1 1-1.061 1.061l-6.22-6.22-6.219 6.22A.75.75 0 1 1 4.22 18.47l6.22-6.22-6.22-6.219A.75.75 0 1 1 5.28 4.97l6.22 6.22 6.219-6.22A.75.75 0 1 1 18.78 6.03l-6.22 6.22z"}));var F4=_o__namespace.Root;var NE=_o__namespace.Portal;var L9=J__namespace.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.createElement(_o__namespace.Overlay,y({ref:o,className:U("fixed inset-0 z-50 bg-black/10 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 outline-none",e)},t))});L9.displayName=_o__namespace.Overlay.displayName;var cd=J__namespace.forwardRef((l,i)=>{var d=l,{className:e,children:t,onClose:o,overlayClassName:r,closeOnOverlayClick:n=true,showCloseButton:a=true}=d,s=Q(d,["className","children","onClose","overlayClassName","closeOnOverlayClick","showCloseButton"]);return J__namespace.createElement(NE,null,J__namespace.createElement(L9,{className:`${r} z-[110] bg-[#00000050]`,onClick:c=>{n||(c.preventDefault(),c.stopPropagation());}}),J__namespace.createElement(_o__namespace.Content,y({ref:i,className:U("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 bg-white shadow-2xl shadow-[#00000010] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] outline-none focus:outline-none",e),style:{zIndex:9999}},s),t,a&&J__namespace.createElement("button",{onClick:c=>{c.preventDefault(),c.stopPropagation(),o==null||o();},className:"absolute cursor-pointer hidden lg:flex top-4 !p-0 lg:right-6 right-4 outline-none focus:outline-none"},J__namespace.createElement(D9,null))))});cd.displayName=_o__namespace.Content.displayName;var d6=o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.createElement("div",y({className:U("flex flex-col space-y-1.5 text-center sm:text-left outline-none",e)},t))};d6.displayName="DialogHeader";var pd=J__namespace.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.createElement(_o__namespace.Title,y({ref:o,className:U("text-lg font-semibold leading-none tracking-tight outline-none",e)},t))});pd.displayName=_o__namespace.Title.displayName;var EE=J__namespace.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.createElement(_o__namespace.Description,y({ref:o,className:U("text-sm text-muted-foreground outline-none",e)},t))});EE.displayName=_o__namespace.Description.displayName;function qe({isOpen:e,header:t,onClose:o,isLoading:r,children:n,showCloseButton:a=true,closeOnClickOutside:s=true,className:i,disableFullScreen:l=false,asPage:d=false,width:c,hideCloseButton:p=false}){let f=d?["fixed inset-0 z-[120]","w-full max-w-[95%] h-[90dvh]","!mx-auto !my-auto","left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2","overflow-y-auto","bg-white","rounded-[0.625rem]","shadow-xl"].join(" "):["fixed left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2","w-full max-w-full",c,l?"h-auto":"h-[100dvh] lg:h-auto",l?"rounded-2xl":"rounded-none lg:!rounded-2xl","bg-white","z-[120]","lg:mx-0"].join(" "),u=g=>{g.stopPropagation(),o();};return J__namespace.default.createElement(F4,{open:e,onOpenChange:g=>{!g&&s&&o();}},J__namespace.default.createElement(cd,{onClose:o,className:`relative px-0 py-0 ${l?"pb-2":"pb-4"} lg:py-6 lg:px-6 flex flex-col justify-start overflow-visible pt-0 gap-0 ${f} ${i}`,onInteractOutside:g=>{s||g.preventDefault();}},r&&J__namespace.default.createElement("div",{className:"loading-bar"}),!l&&!d&&J__namespace.default.createElement("header",{className:"px-4 py-4 lg:hidden flex items-center justify-between w-full sticky top-0 bg-white border-b border-gray-200 z-10"},J__namespace.default.createElement("div",{className:"flex-1"},t?J__namespace.default.createElement("span",{className:"text-lg font-semibold"},t):J__namespace.default.createElement("div",null)),!p&&J__namespace.default.createElement("button",{onClick:u,className:"cursor-pointer flex-shrink-0 ml-auto !mr-12",type:"button"},J__namespace.default.createElement(lucideReact.X,{className:"h-6 w-6"}))),t&&J__namespace.default.createElement(pd,{className:"hidden lg:flex justify-between items-center px-6 py-4 border-b border-gray-200"},J__namespace.default.createElement("span",{className:"text-lg font-semibold"},t),!p&&J__namespace.default.createElement("button",{onClick:u,className:"cursor-pointer",type:"button"},J__namespace.default.createElement(lucideReact.X,{className:"h-6 w-6"}))),J__namespace.default.createElement("div",{className:`flex-1 ${l?"overflow-visible":"overflow-auto"} ${l?"":"pb-0 lg:pb-4"}`},n)))}var e2=({color:e="#0B89CE"})=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41",height:"40",fill:"none",viewBox:"0 0 41 40"},J__namespace.createElement("mask",{id:"mask0_56449_70362",width:"41",height:"40",x:"0",y:"0",maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},J__namespace.createElement("path",{fill:"#C4C4C4",d:"M40.5 20c0 11.046-8.954 20-20 20S.5 31.046.5 20s8.954-20 20-20 20 8.954 20 20M7.543 20c0 7.156 5.801 12.957 12.957 12.957S33.457 27.156 33.457 20 27.656 7.043 20.5 7.043 7.543 12.844 7.543 20"})),J__namespace.createElement("g",{mask:"url(#mask0_56449_70362)"},J__namespace.createElement("g",{clipPath:"url(#paint0_angular_56449_70362_clip_path)","data-figma-skip-parse":"true"},J__namespace.createElement("foreignObject",{width:"2088.83",height:"2088.83",x:"-1044.42",y:"-1044.42",transform:"matrix(0 .02251 -.02251 0 20.5 20.01)"},J__namespace.createElement("div",{style:{background:`conic-gradient(from 90deg,${e} 0deg,rgba(11,137,206,0) 360deg)`,height:"100%",width:"100%"}}))),J__namespace.createElement("path",{d:"M-2.014-2.504h45.029v45.029H-2.014z","data-figma-gradient-fill":'{"type":"GRADIENT_ANGULAR","stops":[{"color":{"r":0.043137256056070328,"g":0.53725492954254150,"b":0.80784314870834351,"a":1.0},"position":0.0},{"color":{"r":0.043137256056070328,"g":0.53725492954254150,"b":0.80784314870834351,"a":0.0},"position":1.0}],"stopsVar":[{"color":{"r":0.043137256056070328,"g":0.53725492954254150,"b":0.80784314870834351,"a":1.0},"position":0.0},{"color":{"r":0.043137256056070328,"g":0.53725492954254150,"b":0.80784314870834351,"a":0.0},"position":1.0}],"transform":{"m00":2.7572048986947324e-15,"m01":-45.028572082519531,"m02":43.014411926269531,"m10":45.028572082519531,"m11":2.7572048986947324e-15,"m12":-2.503906250},"opacity":1.0,"blendMode":"NORMAL","visible":true}'}),J__namespace.createElement("circle",{cx:"20.769",cy:"36.538",r:"3.562",fill:e})),J__namespace.createElement("defs",null,J__namespace.createElement("clipPath",{id:"paint0_angular_56449_70362_clip_path"},J__namespace.createElement("path",{d:"M-2.014-2.504h45.029v45.029H-2.014z"}))));function Vo({children:e,className:t,disabled:o,isLoading:r,onClick:n,type:a="button"}){return J__namespace.default.createElement("button",{disabled:o||r,type:a,onClick:s=>{a!=="submit"&&(s.preventDefault(),s.stopPropagation()),n==null||n();},className:U("flex-1 flex items-center border border-primary text-white bg-primary font-bold py-4",t)},e,r&&J__namespace.default.createElement("div",{className:"w-4 h-4 flex items-center justify-center ml-2"},J__namespace.default.createElement(e2,{color:"#fff"})))}function z9({isOpen:e,onClose:t,onConfirm:o,title:r,description:n,illustration:a,isLoading:s}){let{locale:i}=M();return J__namespace.default.createElement(qe,{isLoading:s,closeOnClickOutside:false,hideCloseButton:true,className:"min-w-[31.25rem]",disableFullScreen:true,isOpen:e,onClose:t},J__namespace.default.createElement("div",{className:"w-full flex flex-col items-center gap-y-8"},a&&J__namespace.default.createElement("div",null,a),J__namespace.default.createElement("h2",{className:"text-[2rem] font-bold text-center"},r),J__namespace.default.createElement("p",{className:"text-center text-body-xl text-dark-1"},n),J__namespace.default.createElement("div",{className:"w-full flex gap-x-4"},J__namespace.default.createElement(Vo,{disabled:s,className:"bg-white text-primary border border-primary",onClick:t},he(i,"component.workspace.panel.modal.form.options.delete.button.cancel")),J__namespace.default.createElement(Vo,{disabled:s,onClick:o},he(i,"component.workspace.panel.modal.form.options.delete.button.delete")))))}var B9=hf.gql`
|
|
1
|
+
'use strict';var J=require('react'),jsxRuntime=require('react/jsx-runtime'),reactQueryDevtools=require('@tanstack/react-query-devtools'),FI=require('clsx'),lucideReact=require('lucide-react'),react=require('motion/react'),billingV2=require('@mirantes-micro/billing-v2'),En=require('@radix-ui/react-tooltip'),_o=require('@radix-ui/react-dialog'),hf=require('graphql-request'),reactToastify=require('react-toastify'),zustand=require('zustand'),rr=require('yup'),yup=require('@hookform/resolvers/yup'),reactHookForm=require('react-hook-form'),reactSlot=require('@radix-ui/react-slot'),classVarianceAuthority=require('class-variance-authority'),cmdk=require('cmdk'),ms=require('@radix-ui/react-popover'),AN=require('emoji-picker-react'),RW=require('react-dom'),uuid=require('uuid'),wP=require('axios'),middleware=require('zustand/middleware'),usehooks=require('@uidotdev/usehooks'),r2=require('@radix-ui/react-avatar'),cookiesNext=require('cookies-next'),dateFns=require('date-fns'),EM=require('react-infinite-scroll-hook'),vaul=require('vaul'),aD=require('slugify'),socket_ioClient=require('socket.io-client'),locale=require('date-fns/locale'),reactDayPicker=require('react-day-picker'),zy=require('@radix-ui/react-label'),globalCurrencies=require('global-currencies'),rp=require('crypto-js'),react$3=require('swiper/react');require('swiper/css');var core=require('@tiptap/core');require('@tiptap/extension-mention');var extensionPlaceholder=require('@tiptap/extension-placeholder'),react$2=require('@tiptap/react'),starterKit=require('@tiptap/starter-kit');require('tippy.js');var qa=require('@radix-ui/react-scroll-area'),widgets=require('@mirantes-micro/widgets'),vt=require('@radix-ui/react-select'),linkPreviewJs=require('link-preview-js'),Om=require('@radix-ui/react-radio-group'),pdfLib=require('pdf-lib'),state=require('@tiptap/pm/state');require('@tiptap/pm/tables');var react$1=require('@floating-ui/react'),Go=require('@radix-ui/react-dropdown-menu'),reactHotkeysHook=require('react-hotkeys-hook'),extensionImage=require('@tiptap/extension-image'),extensionList=require('@tiptap/extension-list'),extensionTextAlign=require('@tiptap/extension-text-align'),extensionTypography=require('@tiptap/extension-typography'),extensionHighlight=require('@tiptap/extension-highlight'),extensionSubscript=require('@tiptap/extension-subscript'),extensionSuperscript=require('@tiptap/extension-superscript'),XY=require('@tiptap/extension-horizontal-rule'),kJ=require('isomorphic-dompurify');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var J__namespace=/*#__PURE__*/_interopNamespace(J);var FI__default=/*#__PURE__*/_interopDefault(FI);var En__namespace=/*#__PURE__*/_interopNamespace(En);var _o__namespace=/*#__PURE__*/_interopNamespace(_o);var hf__default=/*#__PURE__*/_interopDefault(hf);var rr__namespace=/*#__PURE__*/_interopNamespace(rr);var ms__namespace=/*#__PURE__*/_interopNamespace(ms);var AN__default=/*#__PURE__*/_interopDefault(AN);var RW__default=/*#__PURE__*/_interopDefault(RW);var wP__default=/*#__PURE__*/_interopDefault(wP);var r2__namespace=/*#__PURE__*/_interopNamespace(r2);var EM__default=/*#__PURE__*/_interopDefault(EM);var aD__default=/*#__PURE__*/_interopDefault(aD);var zy__namespace=/*#__PURE__*/_interopNamespace(zy);var rp__default=/*#__PURE__*/_interopDefault(rp);var qa__namespace=/*#__PURE__*/_interopNamespace(qa);var vt__namespace=/*#__PURE__*/_interopNamespace(vt);var Om__namespace=/*#__PURE__*/_interopNamespace(Om);var Go__namespace=/*#__PURE__*/_interopNamespace(Go);var XY__default=/*#__PURE__*/_interopDefault(XY);var kJ__default=/*#__PURE__*/_interopDefault(kJ);var gI=Object.defineProperty,hI=Object.defineProperties;var vI=Object.getOwnPropertyDescriptors;var m4=Object.getOwnPropertySymbols;var Sf=Object.prototype.hasOwnProperty,Af=Object.prototype.propertyIsEnumerable;var Nf=e=>{throw TypeError(e)},Dl=Math.pow,Pf=(e,t,o)=>t in e?gI(e,t,{enumerable:true,configurable:true,writable:true,value:o}):e[t]=o,y=(e,t)=>{for(var o in t||(t={}))Sf.call(t,o)&&Pf(e,o,t[o]);if(m4)for(var o of m4(t))Af.call(t,o)&&Pf(e,o,t[o]);return e},F=(e,t)=>hI(e,vI(t));var Q=(e,t)=>{var o={};for(var r in e)Sf.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&m4)for(var r of m4(e))t.indexOf(r)<0&&Af.call(e,r)&&(o[r]=e[r]);return o};var z5=(e,t,o)=>t.has(e)||Nf("Cannot "+o);var Z=(e,t,o)=>(z5(e,t,"read from private field"),o?o.call(e):t.get(e)),Ie=(e,t,o)=>t.has(e)?Nf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),Ce=(e,t,o,r)=>(z5(e,t,"write to private field"),t.set(e,o),o),Re=(e,t,o)=>(z5(e,t,"access private method"),o);var Z0=(e,t,o,r)=>({set _(n){Ce(e,t,n);},get _(){return Z(e,t,r)}});var j=(e,t,o)=>new Promise((r,n)=>{var a=l=>{try{i(o.next(l));}catch(d){n(d);}},s=l=>{try{i(o.throw(l));}catch(d){n(d);}},i=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,s);i((o=o.apply(e,t)).next());});function Ge({className:e}){return J__namespace.default.createElement("div",{className:""},J__namespace.default.createElement("svg",{"aria-hidden":"true",className:`w-6 h-6 mr-2 animate-spin text-gray-200 fill-primary ${e}`,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})))}function If(e,t,o){try{e.endsWith("/")||(e+="/"),t.startsWith("/")&&(t=t.substring(1));let r=e+t;if(o){let n=Object.keys(o).map(a=>encodeURIComponent(a)+"="+encodeURIComponent(o[a])).join("&");n&&(r+="?"+n);}return r}catch(r){return ""}}function Ef(e,t){let o=e.split(t),r;for(let n of o){let[a,s]=n.split("=");r||(r={}),s&&(r=F(y({},r),{[a]:s}));}return r}function f4(e){var n,a,s,i;if(!e)return "";let t=e.trim().split(/\s+/);if(t.length===0)return "";let o=(a=(n=t[0][0])==null?void 0:n.toUpperCase())!=null?a:"",r=t.length>1&&(i=(s=t[t.length-1][0])==null?void 0:s.toUpperCase())!=null?i:"";return o+r}var g4=J.createContext({locale:"pt",user:{}});var Nn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this);}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe();}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var Ur=typeof window=="undefined"||"Deno"in globalThis;function yo(){}function Df(e,t){return typeof e=="function"?e(t):e}function Y0(e){return typeof e=="number"&&e>=0&&e!==1/0}function v4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qs(e,t){return typeof e=="function"?e(t):e}function ln(e,t){return typeof e=="function"?e(t):e}function y4(e,t){let{type:o="all",exact:r,fetchStatus:n,predicate:a,queryKey:s,stale:i}=e;if(s){if(r){if(t.queryHash!==J0(s,t.options))return false}else if(!Ll(t.queryKey,s))return false}if(o!=="all"){let l=t.isActive();if(o==="active"&&!l||o==="inactive"&&l)return false}return !(typeof i=="boolean"&&t.isStale()!==i||n&&n!==t.state.fetchStatus||a&&!a(t))}function b4(e,t){let{exact:o,status:r,predicate:n,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return false;if(o){if(ba(t.options.mutationKey)!==ba(a))return false}else if(!Ll(t.options.mutationKey,a))return false}return !(r&&t.state.status!==r||n&&!n(t))}function J0(e,t){return ((t==null?void 0:t.queryKeyHashFn)||ba)(e)}function ba(e){return JSON.stringify(e,(t,o)=>B5(o)?Object.keys(o).sort().reduce((r,n)=>(r[n]=o[n],r),{}):o)}function Ll(e,t){return e===t?true:typeof e!=typeof t?false:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(o=>Ll(e[o],t[o])):false}function h4(e,t){if(e===t)return e;let o=kf(e)&&kf(t);if(o||B5(e)&&B5(t)){let r=o?e:Object.keys(e),n=r.length,a=o?t:Object.keys(t),s=a.length,i=o?[]:{},l=0;for(let d=0;d<s;d++){let c=o?d:a[d];(!o&&r.includes(c)||o)&&e[c]===void 0&&t[c]===void 0?(i[c]=void 0,l++):(i[c]=h4(e[c],t[c]),i[c]===e[c]&&e[c]!==void 0&&l++);}return n===s&&l===n?e:i}return t}function Fl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return false;for(let o in e)if(e[o]!==t[o])return false;return true}function kf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function B5(e){if(!Tf(e))return false;let t=e.constructor;if(t===void 0)return true;let o=t.prototype;return !(!Tf(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Tf(e){return Object.prototype.toString.call(e)==="[object Object]"}function Lf(e){return new Promise(t=>{setTimeout(t,e);})}function X0(e,t,o){if(typeof o.structuralSharing=="function")return o.structuralSharing(e,t);if(o.structuralSharing!==false){if(process.env.NODE_ENV!=="production")try{return h4(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${o.queryHash}]: ${r}`),r}return h4(e,t)}return t}function Ff(e,t,o=0){let r=[...e,t];return o&&r.length>o?r.slice(1):r}function zf(e,t,o=0){let r=[t,...e];return o&&r.length>o?r.slice(0,-1):r}var o1=Symbol();function x4(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===o1&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===o1?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function $0(e,t){return typeof e=="function"?e(...t):!!e}var r1,Ws,zl,Bf,bI=(Bf=class extends Nn{constructor(){super();Ie(this,r1);Ie(this,Ws);Ie(this,zl);Ce(this,zl,t=>{if(!Ur&&window.addEventListener){let o=()=>t();return window.addEventListener("visibilitychange",o,false),()=>{window.removeEventListener("visibilitychange",o);}}});}onSubscribe(){Z(this,Ws)||this.setEventListener(Z(this,zl));}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,Ws))==null||t.call(this),Ce(this,Ws,void 0));}setEventListener(t){var o;Ce(this,zl,t),(o=Z(this,Ws))==null||o.call(this),Ce(this,Ws,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus();}));}setFocused(t){Z(this,r1)!==t&&(Ce(this,r1,t),this.onFocus());}onFocus(){let t=this.isFocused();this.listeners.forEach(o=>{o(t);});}isFocused(){var t;return typeof Z(this,r1)=="boolean"?Z(this,r1):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},r1=new WeakMap,Ws=new WeakMap,zl=new WeakMap,Bf),Bl=new bI;var Ol,Qs,Hl,Of,xI=(Of=class extends Nn{constructor(){super();Ie(this,Ol,true);Ie(this,Qs);Ie(this,Hl);Ce(this,Hl,t=>{if(!Ur&&window.addEventListener){let o=()=>t(true),r=()=>t(false);return window.addEventListener("online",o,false),window.addEventListener("offline",r,false),()=>{window.removeEventListener("online",o),window.removeEventListener("offline",r);}}});}onSubscribe(){Z(this,Qs)||this.setEventListener(Z(this,Hl));}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,Qs))==null||t.call(this),Ce(this,Qs,void 0));}setEventListener(t){var o;Ce(this,Hl,t),(o=Z(this,Qs))==null||o.call(this),Ce(this,Qs,t(this.setOnline.bind(this)));}setOnline(t){Z(this,Ol)!==t&&(Ce(this,Ol,t),this.listeners.forEach(r=>{r(t);}));}isOnline(){return Z(this,Ol)}},Ol=new WeakMap,Qs=new WeakMap,Hl=new WeakMap,Of),Gl=new xI;function R0(){let e,t,o=new Promise((n,a)=>{e=n,t=a;});o.status="pending",o.catch(()=>{});function r(n){Object.assign(o,n),delete o.resolve,delete o.reject;}return o.resolve=n=>{r({status:"fulfilled",value:n}),e(n);},o.reject=n=>{r({status:"rejected",reason:n}),t(n);},o}function wI(e){return Math.min(1e3*Dl(2,e),3e4)}function O5(e){return (e!=null?e:"online")==="online"?Gl.isOnline():true}var Hf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent;}};function w4(e){return e instanceof Hf}function C4(e){let t=false,o=0,r=false,n,a=R0(),s=m=>{var v;r||(f(new Hf(m)),(v=e.abort)==null||v.call(e));},i=()=>{t=true;},l=()=>{t=false;},d=()=>Bl.isFocused()&&(e.networkMode==="always"||Gl.isOnline())&&e.canRun(),c=()=>O5(e.networkMode)&&e.canRun(),p=m=>{var v;r||(r=true,(v=e.onSuccess)==null||v.call(e,m),n==null||n(),a.resolve(m));},f=m=>{var v;r||(r=true,(v=e.onError)==null||v.call(e,m),n==null||n(),a.reject(m));},u=()=>new Promise(m=>{var v;n=h=>{(r||d())&&m(h);},(v=e.onPause)==null||v.call(e);}).then(()=>{var m;n=void 0,r||(m=e.onContinue)==null||m.call(e);}),g=()=>{if(r)return;let m,v=o===0?e.initialPromise:void 0;try{m=v!=null?v:e.fn();}catch(h){m=Promise.reject(h);}Promise.resolve(m).then(p).catch(h=>{var A,k,N;if(r)return;let b=(A=e.retry)!=null?A:Ur?0:3,x=(k=e.retryDelay)!=null?k:wI,w=typeof x=="function"?x(o,h):x,C=b===true||typeof b=="number"&&o<b||typeof b=="function"&&b(o,h);if(t||!C){f(h);return}o++,(N=e.onFail)==null||N.call(e,o,h),Lf(w).then(()=>d()?void 0:u()).then(()=>{t?f(h):g();});});};return {promise:a,cancel:s,continue:()=>(n==null||n(),a),cancelRetry:i,continueRetry:l,canStart:c,start:()=>(c()?g():u().then(g),a)}}var Gf=e=>setTimeout(e,0);function CI(){let e=[],t=0,o=i=>{i();},r=i=>{i();},n=Gf,a=i=>{t?e.push(i):n(()=>{o(i);});},s=()=>{let i=e;e=[],i.length&&n(()=>{r(()=>{i.forEach(l=>{o(l);});});});};return {batch:i=>{let l;t++;try{l=i();}finally{t--,t||s();}return l},batchCalls:i=>(...l)=>{a(()=>{i(...l);});},schedule:a,setNotifyFunction:i=>{o=i;},setBatchNotifyFunction:i=>{r=i;},setScheduler:i=>{n=i;}}}var _t=CI();var n1,Uf,M4=(Uf=class{constructor(){Ie(this,n1);}destroy(){this.clearGcTimeout();}scheduleGc(){this.clearGcTimeout(),Y0(this.gcTime)&&Ce(this,n1,setTimeout(()=>{this.optionalRemove();},this.gcTime));}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:Ur?1/0:5*60*1e3);}clearGcTimeout(){Z(this,n1)&&(clearTimeout(Z(this,n1)),Ce(this,n1,void 0));}},n1=new WeakMap,Uf);var Ul,_l,In,a1,mr,ed,s1,Yn,ns,_f,Vf=(_f=class extends M4{constructor(t){var o;super();Ie(this,Yn);Ie(this,Ul);Ie(this,_l);Ie(this,In);Ie(this,a1);Ie(this,mr);Ie(this,ed);Ie(this,s1);Ce(this,s1,false),Ce(this,ed,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ce(this,a1,t.client),Ce(this,In,Z(this,a1).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ce(this,Ul,MI(this.options)),this.state=(o=t.state)!=null?o:Z(this,Ul),this.scheduleGc();}get meta(){return this.options.meta}get promise(){var t;return (t=Z(this,mr))==null?void 0:t.promise}setOptions(t){this.options=y(y({},Z(this,ed)),t),this.updateGcTime(this.options.gcTime);}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Z(this,In).remove(this);}setData(t,o){let r=X0(this.state.data,t,this.options);return Re(this,Yn,ns).call(this,{data:r,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt,manual:o==null?void 0:o.manual}),r}setState(t,o){Re(this,Yn,ns).call(this,{type:"setState",state:t,setStateOptions:o});}cancel(t){var r,n;let o=(r=Z(this,mr))==null?void 0:r.promise;return (n=Z(this,mr))==null||n.cancel(t),o?o.then(yo).catch(yo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:true});}reset(){this.destroy(),this.setState(Z(this,Ul));}isActive(){return this.observers.some(t=>ln(t.options.enabled,this)!==false)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===o1||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?true:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!v4(this.state.dataUpdatedAt,t)}onFocus(){var o;let t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:false}),(o=Z(this,mr))==null||o.continue();}onOnline(){var o;let t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:false}),(o=Z(this,mr))==null||o.continue();}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Z(this,In).notify({type:"observerAdded",query:this,observer:t}));}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(o=>o!==t),this.observers.length||(Z(this,mr)&&(Z(this,s1)?Z(this,mr).cancel({revert:true}):Z(this,mr).cancelRetry()),this.scheduleGc()),Z(this,In).notify({type:"observerRemoved",query:this,observer:t}));}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Re(this,Yn,ns).call(this,{type:"invalidate"});}fetch(t,o){var l,d,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(o!=null&&o.cancelRefetch))this.cancel({silent:true});else if(Z(this,mr))return Z(this,mr).continueRetry(),Z(this,mr).promise}if(t&&this.setOptions(t),!this.options.queryFn){let p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options);}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));let r=new AbortController,n=p=>{Object.defineProperty(p,"signal",{enumerable:true,get:()=>(Ce(this,s1,true),r.signal)});},a=()=>{let p=x4(this.options,o),f={client:Z(this,a1),queryKey:this.queryKey,meta:this.meta};return n(f),Ce(this,s1,false),this.options.persister?this.options.persister(p,f,this):p(f)},s={fetchOptions:o,options:this.options,queryKey:this.queryKey,client:Z(this,a1),state:this.state,fetchFn:a};n(s),(l=this.options.behavior)==null||l.onFetch(s,this),Ce(this,_l,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&Re(this,Yn,ns).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});let i=p=>{var f,u,g,m;w4(p)&&p.silent||Re(this,Yn,ns).call(this,{type:"error",error:p}),w4(p)||((u=(f=Z(this,In).config).onError)==null||u.call(f,p,this),(m=(g=Z(this,In).config).onSettled)==null||m.call(g,this.state.data,p,this)),this.scheduleGc();};return Ce(this,mr,C4({initialPromise:o==null?void 0:o.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var f,u,g,m;if(p===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),i(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p);}catch(v){i(v);return}(u=(f=Z(this,In).config).onSuccess)==null||u.call(f,p,this),(m=(g=Z(this,In).config).onSettled)==null||m.call(g,p,this.state.error,this),this.scheduleGc();},onError:i,onFail:(p,f)=>{Re(this,Yn,ns).call(this,{type:"failed",failureCount:p,error:f});},onPause:()=>{Re(this,Yn,ns).call(this,{type:"pause"});},onContinue:()=>{Re(this,Yn,ns).call(this,{type:"continue"});},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>true})),Z(this,mr).start()}},Ul=new WeakMap,_l=new WeakMap,In=new WeakMap,a1=new WeakMap,mr=new WeakMap,ed=new WeakMap,s1=new WeakMap,Yn=new WeakSet,ns=function(t){let o=r=>{var n,a;switch(t.type){case "failed":return F(y({},r),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case "pause":return F(y({},r),{fetchStatus:"paused"});case "continue":return F(y({},r),{fetchStatus:"fetching"});case "fetch":return F(y(y({},r),H5(r.data,this.options)),{fetchMeta:(n=t.meta)!=null?n:null});case "success":return y(F(y({},r),{data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:false,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case "error":let s=t.error;return w4(s)&&s.revert&&Z(this,_l)?F(y({},Z(this,_l)),{fetchStatus:"idle"}):F(y({},r),{error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"});case "invalidate":return F(y({},r),{isInvalidated:true});case "setState":return y(y({},r),t.state)}};this.state=o(this.state),_t.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate();}),Z(this,In).notify({query:this,type:"updated",action:t});});},_f);function H5(e,t){return y({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:O5(t.networkMode)?"fetching":"paused"},e===void 0&&{error:null,status:"pending"})}function MI(e){let t=typeof e.initialData=="function"?e.initialData():e.initialData,o=t!==void 0,r=o?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return {data:t,dataUpdateCount:0,dataUpdatedAt:o?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:false,status:o?"success":"pending",fetchStatus:"idle"}}var xa,jf,qf=(jf=class extends Nn{constructor(t={}){super();Ie(this,xa);this.config=t,Ce(this,xa,new Map);}build(t,o,r){var i;let n=o.queryKey,a=(i=o.queryHash)!=null?i:J0(n,o),s=this.get(a);return s||(s=new Vf({client:t,queryKey:n,queryHash:a,options:t.defaultQueryOptions(o),state:r,defaultOptions:t.getQueryDefaults(n)}),this.add(s)),s}add(t){Z(this,xa).has(t.queryHash)||(Z(this,xa).set(t.queryHash,t),this.notify({type:"added",query:t}));}remove(t){let o=Z(this,xa).get(t.queryHash);o&&(t.destroy(),o===t&&Z(this,xa).delete(t.queryHash),this.notify({type:"removed",query:t}));}clear(){_t.batch(()=>{this.getAll().forEach(t=>{this.remove(t);});});}get(t){return Z(this,xa).get(t)}getAll(){return [...Z(this,xa).values()]}find(t){let o=y({exact:true},t);return this.getAll().find(r=>y4(o,r))}findAll(t={}){let o=this.getAll();return Object.keys(t).length>0?o.filter(r=>y4(t,r)):o}notify(t){_t.batch(()=>{this.listeners.forEach(o=>{o(t);});});}onFocus(){_t.batch(()=>{this.getAll().forEach(t=>{t.onFocus();});});}onOnline(){_t.batch(()=>{this.getAll().forEach(t=>{t.onOnline();});});}},xa=new WeakMap,jf);var wa,Mr,i1,Ca,Ks,Wf,Qf=(Wf=class extends M4{constructor(t){super();Ie(this,Ca);Ie(this,wa);Ie(this,Mr);Ie(this,i1);this.mutationId=t.mutationId,Ce(this,Mr,t.mutationCache),Ce(this,wa,[]),this.state=t.state||G5(),this.setOptions(t.options),this.scheduleGc();}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime);}get meta(){return this.options.meta}addObserver(t){Z(this,wa).includes(t)||(Z(this,wa).push(t),this.clearGcTimeout(),Z(this,Mr).notify({type:"observerAdded",mutation:this,observer:t}));}removeObserver(t){Ce(this,wa,Z(this,wa).filter(o=>o!==t)),this.scheduleGc(),Z(this,Mr).notify({type:"observerRemoved",mutation:this,observer:t});}optionalRemove(){Z(this,wa).length||(this.state.status==="pending"?this.scheduleGc():Z(this,Mr).remove(this));}continue(){var t,o;return (o=(t=Z(this,i1))==null?void 0:t.continue())!=null?o:this.execute(this.state.variables)}execute(t){return j(this,null,function*(){var a,s,i,l,d,c,p,f,u,g,m,v,h,b,x,w,C,A,k,N,I;let o=()=>{Re(this,Ca,Ks).call(this,{type:"continue"});};Ce(this,i1,C4({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,S)=>{Re(this,Ca,Ks).call(this,{type:"failed",failureCount:P,error:S});},onPause:()=>{Re(this,Ca,Ks).call(this,{type:"pause"});},onContinue:o,retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Z(this,Mr).canRun(this)}));let r=this.state.status==="pending",n=!Z(this,i1).canStart();try{if(r)o();else {Re(this,Ca,Ks).call(this,{type:"pending",variables:t,isPaused:n}),yield (i=(s=Z(this,Mr).config).onMutate)==null?void 0:i.call(s,t,this);let S=yield (d=(l=this.options).onMutate)==null?void 0:d.call(l,t);S!==this.state.context&&Re(this,Ca,Ks).call(this,{type:"pending",context:S,variables:t,isPaused:n});}let P=yield Z(this,i1).start();return yield (p=(c=Z(this,Mr).config).onSuccess)==null?void 0:p.call(c,P,t,this.state.context,this),yield (u=(f=this.options).onSuccess)==null?void 0:u.call(f,P,t,this.state.context),yield (m=(g=Z(this,Mr).config).onSettled)==null?void 0:m.call(g,P,null,this.state.variables,this.state.context,this),yield (h=(v=this.options).onSettled)==null?void 0:h.call(v,P,null,t,this.state.context),Re(this,Ca,Ks).call(this,{type:"success",data:P}),P}catch(P){try{throw yield (x=(b=Z(this,Mr).config).onError)==null?void 0:x.call(b,P,t,this.state.context,this),yield (C=(w=this.options).onError)==null?void 0:C.call(w,P,t,this.state.context),yield (k=(A=Z(this,Mr).config).onSettled)==null?void 0:k.call(A,void 0,P,this.state.variables,this.state.context,this),yield (I=(N=this.options).onSettled)==null?void 0:I.call(N,void 0,P,t,this.state.context),P}finally{Re(this,Ca,Ks).call(this,{type:"error",error:P});}}finally{Z(this,Mr).runNext(this);}})}},wa=new WeakMap,Mr=new WeakMap,i1=new WeakMap,Ca=new WeakSet,Ks=function(t){let o=r=>{switch(t.type){case "failed":return F(y({},r),{failureCount:t.failureCount,failureReason:t.error});case "pause":return F(y({},r),{isPaused:true});case "continue":return F(y({},r),{isPaused:false});case "pending":return F(y({},r),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()});case "success":return F(y({},r),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:false});case "error":return F(y({},r),{data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:false,status:"error"})}};this.state=o(this.state),_t.batch(()=>{Z(this,wa).forEach(r=>{r.onMutationUpdate(t);}),Z(this,Mr).notify({mutation:this,type:"updated",action:t});});},Wf);function G5(){return {context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:false,status:"idle",variables:void 0,submittedAt:0}}var as,Jn,td,Kf,Zf=(Kf=class extends Nn{constructor(t={}){super();Ie(this,as);Ie(this,Jn);Ie(this,td);this.config=t,Ce(this,as,new Set),Ce(this,Jn,new Map),Ce(this,td,0);}build(t,o,r){let n=new Qf({mutationCache:this,mutationId:++Z0(this,td)._,options:t.defaultMutationOptions(o),state:r});return this.add(n),n}add(t){Z(this,as).add(t);let o=P4(t);if(typeof o=="string"){let r=Z(this,Jn).get(o);r?r.push(t):Z(this,Jn).set(o,[t]);}this.notify({type:"added",mutation:t});}remove(t){if(Z(this,as).delete(t)){let o=P4(t);if(typeof o=="string"){let r=Z(this,Jn).get(o);if(r)if(r.length>1){let n=r.indexOf(t);n!==-1&&r.splice(n,1);}else r[0]===t&&Z(this,Jn).delete(o);}}this.notify({type:"removed",mutation:t});}canRun(t){let o=P4(t);if(typeof o=="string"){let r=Z(this,Jn).get(o),n=r==null?void 0:r.find(a=>a.state.status==="pending");return !n||n===t}else return true}runNext(t){var r,n;let o=P4(t);if(typeof o=="string"){let a=(r=Z(this,Jn).get(o))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return (n=a==null?void 0:a.continue())!=null?n:Promise.resolve()}else return Promise.resolve()}clear(){_t.batch(()=>{Z(this,as).forEach(t=>{this.notify({type:"removed",mutation:t});}),Z(this,as).clear(),Z(this,Jn).clear();});}getAll(){return Array.from(Z(this,as))}find(t){let o=y({exact:true},t);return this.getAll().find(r=>b4(o,r))}findAll(t={}){return this.getAll().filter(o=>b4(t,o))}notify(t){_t.batch(()=>{this.listeners.forEach(o=>{o(t);});});}resumePausedMutations(){let t=this.getAll().filter(o=>o.state.isPaused);return _t.batch(()=>Promise.all(t.map(o=>o.continue().catch(yo))))}},as=new WeakMap,Jn=new WeakMap,td=new WeakMap,Kf);function P4(e){var t;return (t=e.options.scope)==null?void 0:t.id}function Vl(e){return {onFetch:(t,o)=>{var c,p,f,u,g;let r=t.options,n=(f=(p=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:p.fetchMore)==null?void 0:f.direction,a=((u=t.state.data)==null?void 0:u.pages)||[],s=((g=t.state.data)==null?void 0:g.pageParams)||[],i={pages:[],pageParams:[]},l=0,d=()=>j(this,null,function*(){var x;let m=false,v=w=>{Object.defineProperty(w,"signal",{enumerable:true,get:()=>(t.signal.aborted?m=true:t.signal.addEventListener("abort",()=>{m=true;}),t.signal)});},h=x4(t.options,t.fetchOptions),b=(w,C,A)=>j(this,null,function*(){if(m)return Promise.reject();if(C==null&&w.pages.length)return Promise.resolve(w);let k={client:t.client,queryKey:t.queryKey,pageParam:C,direction:A?"backward":"forward",meta:t.options.meta};v(k);let N=yield h(k),{maxPages:I}=t.options,P=A?zf:Ff;return {pages:P(w.pages,N,I),pageParams:P(w.pageParams,C,I)}});if(n&&a.length){let w=n==="backward",C=w?Yf:U5,A={pages:a,pageParams:s},k=C(r,A);i=yield b(A,k,w);}else {let w=e!=null?e:a.length;do{let C=l===0?(x=s[0])!=null?x:r.initialPageParam:U5(r,i);if(l>0&&C==null)break;i=yield b(i,C),l++;}while(l<w)}return i});t.options.persister?t.fetchFn=()=>{var m,v;return (v=(m=t.options).persister)==null?void 0:v.call(m,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},o)}:t.fetchFn=d;}}}function U5(e,{pages:t,pageParams:o}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,o[r],o):void 0}function Yf(e,{pages:t,pageParams:o}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,o[0],o):void 0}function Jf(e,t){return t?U5(e,t)!=null:false}function Xf(e,t){return !t||!e.getPreviousPageParam?false:Yf(e,t)!=null}var bo,Zs,Ys,jl,ql,Js,Wl,Ql,$f,_5=($f=class{constructor(e={}){Ie(this,bo);Ie(this,Zs);Ie(this,Ys);Ie(this,jl);Ie(this,ql);Ie(this,Js);Ie(this,Wl);Ie(this,Ql);Ce(this,bo,e.queryCache||new qf),Ce(this,Zs,e.mutationCache||new Zf),Ce(this,Ys,e.defaultOptions||{}),Ce(this,jl,new Map),Ce(this,ql,new Map),Ce(this,Js,0);}mount(){Z0(this,Js)._++,Z(this,Js)===1&&(Ce(this,Wl,Bl.subscribe(e=>j(this,null,function*(){e&&(yield this.resumePausedMutations(),Z(this,bo).onFocus());}))),Ce(this,Ql,Gl.subscribe(e=>j(this,null,function*(){e&&(yield this.resumePausedMutations(),Z(this,bo).onOnline());}))));}unmount(){var e,t;Z0(this,Js)._--,Z(this,Js)===0&&((e=Z(this,Wl))==null||e.call(this),Ce(this,Wl,void 0),(t=Z(this,Ql))==null||t.call(this),Ce(this,Ql,void 0));}isFetching(e){return Z(this,bo).findAll(F(y({},e),{fetchStatus:"fetching"})).length}isMutating(e){return Z(this,Zs).findAll(F(y({},e),{status:"pending"})).length}getQueryData(e){var o;let t=this.defaultQueryOptions({queryKey:e});return (o=Z(this,bo).get(t.queryHash))==null?void 0:o.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),o=Z(this,bo).build(this,t),r=o.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime(qs(t.staleTime,o))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return Z(this,bo).findAll(e).map(({queryKey:t,state:o})=>{let r=o.data;return [t,r]})}setQueryData(e,t,o){let r=this.defaultQueryOptions({queryKey:e}),n=Z(this,bo).get(r.queryHash),a=n==null?void 0:n.state.data,s=Df(t,a);if(s!==void 0)return Z(this,bo).build(this,r).setData(s,F(y({},o),{manual:true}))}setQueriesData(e,t,o){return _t.batch(()=>Z(this,bo).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,o)]))}getQueryState(e){var o;let t=this.defaultQueryOptions({queryKey:e});return (o=Z(this,bo).get(t.queryHash))==null?void 0:o.state}removeQueries(e){let t=Z(this,bo);_t.batch(()=>{t.findAll(e).forEach(o=>{t.remove(o);});});}resetQueries(e,t){let o=Z(this,bo);return _t.batch(()=>(o.findAll(e).forEach(r=>{r.reset();}),this.refetchQueries(y({type:"active"},e),t)))}cancelQueries(e,t={}){let o=y({revert:true},t),r=_t.batch(()=>Z(this,bo).findAll(e).map(n=>n.cancel(o)));return Promise.all(r).then(yo).catch(yo)}invalidateQueries(e,t={}){return _t.batch(()=>{var o,r;return Z(this,bo).findAll(e).forEach(n=>{n.invalidate();}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries(F(y({},e),{type:(r=(o=e==null?void 0:e.refetchType)!=null?o:e==null?void 0:e.type)!=null?r:"active"}),t)})}refetchQueries(e,t={}){var n;let o=F(y({},t),{cancelRefetch:(n=t.cancelRefetch)!=null?n:true}),r=_t.batch(()=>Z(this,bo).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let s=a.fetch(void 0,o);return o.throwOnError||(s=s.catch(yo)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(yo)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=false);let o=Z(this,bo).build(this,t);return o.isStaleByTime(qs(t.staleTime,o))?o.fetch(t):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(yo).catch(yo)}fetchInfiniteQuery(e){return e.behavior=Vl(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(yo).catch(yo)}ensureInfiniteQueryData(e){return e.behavior=Vl(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Gl.isOnline()?Z(this,Zs).resumePausedMutations():Promise.resolve()}getQueryCache(){return Z(this,bo)}getMutationCache(){return Z(this,Zs)}getDefaultOptions(){return Z(this,Ys)}setDefaultOptions(e){Ce(this,Ys,e);}setQueryDefaults(e,t){Z(this,jl).set(ba(e),{queryKey:e,defaultOptions:t});}getQueryDefaults(e){let t=[...Z(this,jl).values()],o={};return t.forEach(r=>{Ll(e,r.queryKey)&&Object.assign(o,r.defaultOptions);}),o}setMutationDefaults(e,t){Z(this,ql).set(ba(e),{mutationKey:e,defaultOptions:t});}getMutationDefaults(e){let t=[...Z(this,ql).values()],o={};return t.forEach(r=>{Ll(e,r.mutationKey)&&Object.assign(o,r.defaultOptions);}),o}defaultQueryOptions(e){if(e._defaulted)return e;let t=F(y(y(y({},Z(this,Ys).queries),this.getQueryDefaults(e.queryKey)),e),{_defaulted:true});return t.queryHash||(t.queryHash=J0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===o1&&(t.enabled=false),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:F(y(y(y({},Z(this,Ys).mutations),(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{_defaulted:true})}clear(){Z(this,bo).clear(),Z(this,Zs).clear();}},bo=new WeakMap,Zs=new WeakMap,Ys=new WeakMap,jl=new WeakMap,ql=new WeakMap,Js=new WeakMap,Wl=new WeakMap,Ql=new WeakMap,$f);var _r,Mt,rd,Pr,l1,Kl,Xs,$s,nd,Zl,Yl,d1,c1,Rs,Jl,Ht,od,V5,j5,q5,W5,Q5,K5,Z5,o9,t9,ad=(t9=class extends Nn{constructor(t,o){super();Ie(this,Ht);Ie(this,_r);Ie(this,Mt);Ie(this,rd);Ie(this,Pr);Ie(this,l1);Ie(this,Kl);Ie(this,Xs);Ie(this,$s);Ie(this,nd);Ie(this,Zl);Ie(this,Yl);Ie(this,d1);Ie(this,c1);Ie(this,Rs);Ie(this,Jl,new Set);this.options=o,Ce(this,_r,t),Ce(this,$s,null),Ce(this,Xs,R0()),this.options.experimental_prefetchInRender||Z(this,Xs).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(o);}bindMethods(){this.refetch=this.refetch.bind(this);}onSubscribe(){this.listeners.size===1&&(Z(this,Mt).addObserver(this),Rf(Z(this,Mt),this.options)?Re(this,Ht,od).call(this):this.updateResult(),Re(this,Ht,W5).call(this));}onUnsubscribe(){this.hasListeners()||this.destroy();}shouldFetchOnReconnect(){return Y5(Z(this,Mt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Y5(Z(this,Mt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Re(this,Ht,Q5).call(this),Re(this,Ht,K5).call(this),Z(this,Mt).removeObserver(this);}setOptions(t){let o=this.options,r=Z(this,Mt);if(this.options=Z(this,_r).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ln(this.options.enabled,Z(this,Mt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Re(this,Ht,Z5).call(this),Z(this,Mt).setOptions(this.options),o._defaulted&&!Fl(this.options,o)&&Z(this,_r).getQueryCache().notify({type:"observerOptionsUpdated",query:Z(this,Mt),observer:this});let n=this.hasListeners();n&&e9(Z(this,Mt),r,this.options,o)&&Re(this,Ht,od).call(this),this.updateResult(),n&&(Z(this,Mt)!==r||ln(this.options.enabled,Z(this,Mt))!==ln(o.enabled,Z(this,Mt))||qs(this.options.staleTime,Z(this,Mt))!==qs(o.staleTime,Z(this,Mt)))&&Re(this,Ht,V5).call(this);let a=Re(this,Ht,j5).call(this);n&&(Z(this,Mt)!==r||ln(this.options.enabled,Z(this,Mt))!==ln(o.enabled,Z(this,Mt))||a!==Z(this,Rs))&&Re(this,Ht,q5).call(this,a);}getOptimisticResult(t){let o=Z(this,_r).getQueryCache().build(Z(this,_r),t),r=this.createResult(o,t);return SI(this,r)&&(Ce(this,Pr,r),Ce(this,Kl,this.options),Ce(this,l1,Z(this,Mt).state)),r}getCurrentResult(){return Z(this,Pr)}trackResult(t,o){return new Proxy(t,{get:(r,n)=>(this.trackProp(n),o==null||o(n),Reflect.get(r,n))})}trackProp(t){Z(this,Jl).add(t);}getCurrentQuery(){return Z(this,Mt)}refetch(o={}){var t=Q(o,[]);return this.fetch(y({},t))}fetchOptimistic(t){let o=Z(this,_r).defaultQueryOptions(t),r=Z(this,_r).getQueryCache().build(Z(this,_r),o);return r.fetch().then(()=>this.createResult(r,o))}fetch(t){var o;return Re(this,Ht,od).call(this,F(y({},t),{cancelRefetch:(o=t.cancelRefetch)!=null?o:true})).then(()=>(this.updateResult(),Z(this,Pr)))}createResult(t,o){var I;let r=Z(this,Mt),n=this.options,a=Z(this,Pr),s=Z(this,l1),i=Z(this,Kl),d=t!==r?t.state:Z(this,rd),{state:c}=t,p=y({},c),f=false,u;if(o._optimisticResults){let P=this.hasListeners(),S=!P&&Rf(t,o),D=P&&e9(t,r,o,n);(S||D)&&(p=y(y({},p),H5(c.data,t.options))),o._optimisticResults==="isRestoring"&&(p.fetchStatus="idle");}let{error:g,errorUpdatedAt:m,status:v}=p;u=p.data;let h=false;if(o.placeholderData!==void 0&&u===void 0&&v==="pending"){let P;a!=null&&a.isPlaceholderData&&o.placeholderData===(i==null?void 0:i.placeholderData)?(P=a.data,h=true):P=typeof o.placeholderData=="function"?o.placeholderData((I=Z(this,Yl))==null?void 0:I.state.data,Z(this,Yl)):o.placeholderData,P!==void 0&&(v="success",u=X0(a==null?void 0:a.data,P,o),f=true);}if(o.select&&u!==void 0&&!h)if(a&&u===(s==null?void 0:s.data)&&o.select===Z(this,nd))u=Z(this,Zl);else try{Ce(this,nd,o.select),u=o.select(u),u=X0(a==null?void 0:a.data,u,o),Ce(this,Zl,u),Ce(this,$s,null);}catch(P){Ce(this,$s,P);}Z(this,$s)&&(g=Z(this,$s),u=Z(this,Zl),m=Date.now(),v="error");let b=p.fetchStatus==="fetching",x=v==="pending",w=v==="error",C=x&&b,A=u!==void 0,N={status:v,fetchStatus:p.fetchStatus,isPending:x,isSuccess:v==="success",isError:w,isInitialLoading:C,isLoading:C,data:u,dataUpdatedAt:p.dataUpdatedAt,error:g,errorUpdatedAt:m,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:w&&!A,isPaused:p.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&A,isStale:J5(t,o),refetch:this.refetch,promise:Z(this,Xs)};if(this.options.experimental_prefetchInRender){let P=T=>{N.status==="error"?T.reject(N.error):N.data!==void 0&&T.resolve(N.data);},S=()=>{let T=Ce(this,Xs,N.promise=R0());P(T);},D=Z(this,Xs);switch(D.status){case "pending":t.queryHash===r.queryHash&&P(D);break;case "fulfilled":(N.status==="error"||N.data!==D.value)&&S();break;case "rejected":(N.status!=="error"||N.error!==D.reason)&&S();break}}return N}updateResult(){let t=Z(this,Pr),o=this.createResult(Z(this,Mt),this.options);if(Ce(this,l1,Z(this,Mt).state),Ce(this,Kl,this.options),Z(this,l1).data!==void 0&&Ce(this,Yl,Z(this,Mt)),Fl(o,t))return;Ce(this,Pr,o);let r=()=>{if(!t)return true;let{notifyOnChangeProps:n}=this.options,a=typeof n=="function"?n():n;if(a==="all"||!a&&!Z(this,Jl).size)return true;let s=new Set(a!=null?a:Z(this,Jl));return this.options.throwOnError&&s.add("error"),Object.keys(Z(this,Pr)).some(i=>{let l=i;return Z(this,Pr)[l]!==t[l]&&s.has(l)})};Re(this,Ht,o9).call(this,{listeners:r()});}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Re(this,Ht,W5).call(this);}},_r=new WeakMap,Mt=new WeakMap,rd=new WeakMap,Pr=new WeakMap,l1=new WeakMap,Kl=new WeakMap,Xs=new WeakMap,$s=new WeakMap,nd=new WeakMap,Zl=new WeakMap,Yl=new WeakMap,d1=new WeakMap,c1=new WeakMap,Rs=new WeakMap,Jl=new WeakMap,Ht=new WeakSet,od=function(t){Re(this,Ht,Z5).call(this);let o=Z(this,Mt).fetch(this.options,t);return t!=null&&t.throwOnError||(o=o.catch(yo)),o},V5=function(){Re(this,Ht,Q5).call(this);let t=qs(this.options.staleTime,Z(this,Mt));if(Ur||Z(this,Pr).isStale||!Y0(t))return;let r=v4(Z(this,Pr).dataUpdatedAt,t)+1;Ce(this,d1,setTimeout(()=>{Z(this,Pr).isStale||this.updateResult();},r));},j5=function(){var t;return (t=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Z(this,Mt)):this.options.refetchInterval)!=null?t:false},q5=function(t){Re(this,Ht,K5).call(this),Ce(this,Rs,t),!(Ur||ln(this.options.enabled,Z(this,Mt))===false||!Y0(Z(this,Rs))||Z(this,Rs)===0)&&Ce(this,c1,setInterval(()=>{(this.options.refetchIntervalInBackground||Bl.isFocused())&&Re(this,Ht,od).call(this);},Z(this,Rs)));},W5=function(){Re(this,Ht,V5).call(this),Re(this,Ht,q5).call(this,Re(this,Ht,j5).call(this));},Q5=function(){Z(this,d1)&&(clearTimeout(Z(this,d1)),Ce(this,d1,void 0));},K5=function(){Z(this,c1)&&(clearInterval(Z(this,c1)),Ce(this,c1,void 0));},Z5=function(){let t=Z(this,_r).getQueryCache().build(Z(this,_r),this.options);if(t===Z(this,Mt))return;let o=Z(this,Mt);Ce(this,Mt,t),Ce(this,rd,t.state),this.hasListeners()&&(o==null||o.removeObserver(this),t.addObserver(this));},o9=function(t){_t.batch(()=>{t.listeners&&this.listeners.forEach(o=>{o(Z(this,Pr));}),Z(this,_r).getQueryCache().notify({query:Z(this,Mt),type:"observerResultsUpdated"});});},t9);function PI(e,t){return ln(t.enabled,e)!==false&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===false)}function Rf(e,t){return PI(e,t)||e.state.data!==void 0&&Y5(e,t,t.refetchOnMount)}function Y5(e,t,o){if(ln(t.enabled,e)!==false){let r=typeof o=="function"?o(e):o;return r==="always"||r!==false&&J5(e,t)}return false}function e9(e,t,o,r){return (e!==t||ln(r.enabled,e)===false)&&(!o.suspense||e.state.status!=="error")&&J5(e,o)}function J5(e,t){return ln(t.enabled,e)!==false&&e.isStaleByTime(qs(t.staleTime,e))}function SI(e,t){return !Fl(e.getCurrentResult(),t)}var X5=class extends ad{constructor(e,t){super(e,t);}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this);}setOptions(e){super.setOptions(F(y({},e),{behavior:Vl()}));}getOptimisticResult(e){return e.behavior=Vl(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch(F(y({},e),{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch(F(y({},e),{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var g,m;let{state:o}=e,r=super.createResult(e,t),{isFetching:n,isRefetching:a,isError:s,isRefetchError:i}=r,l=(m=(g=o.fetchMeta)==null?void 0:g.fetchMore)==null?void 0:m.direction,d=s&&l==="forward",c=n&&l==="forward",p=s&&l==="backward",f=n&&l==="backward";return F(y({},r),{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Jf(t,o.data),hasPreviousPage:Xf(t,o.data),isFetchNextPageError:d,isFetchingNextPage:c,isFetchPreviousPageError:p,isFetchingPreviousPage:f,isRefetchError:i&&!d&&!p,isRefetching:a&&!c&&!f})}};var ei,ti,Vr,ss,is,S4,$5,r9,R5=(r9=class extends Nn{constructor(t,o){super();Ie(this,is);Ie(this,ei);Ie(this,ti);Ie(this,Vr);Ie(this,ss);Ce(this,ei,t),this.setOptions(o),this.bindMethods(),Re(this,is,S4).call(this);}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this);}setOptions(t){var r;let o=this.options;this.options=Z(this,ei).defaultMutationOptions(t),Fl(this.options,o)||Z(this,ei).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Z(this,Vr),observer:this}),o!=null&&o.mutationKey&&this.options.mutationKey&&ba(o.mutationKey)!==ba(this.options.mutationKey)?this.reset():((r=Z(this,Vr))==null?void 0:r.state.status)==="pending"&&Z(this,Vr).setOptions(this.options);}onUnsubscribe(){var t;this.hasListeners()||(t=Z(this,Vr))==null||t.removeObserver(this);}onMutationUpdate(t){Re(this,is,S4).call(this),Re(this,is,$5).call(this,t);}getCurrentResult(){return Z(this,ti)}reset(){var t;(t=Z(this,Vr))==null||t.removeObserver(this),Ce(this,Vr,void 0),Re(this,is,S4).call(this),Re(this,is,$5).call(this);}mutate(t,o){var r;return Ce(this,ss,o),(r=Z(this,Vr))==null||r.removeObserver(this),Ce(this,Vr,Z(this,ei).getMutationCache().build(Z(this,ei),this.options)),Z(this,Vr).addObserver(this),Z(this,Vr).execute(t)}},ei=new WeakMap,ti=new WeakMap,Vr=new WeakMap,ss=new WeakMap,is=new WeakSet,S4=function(){var o,r;let t=(r=(o=Z(this,Vr))==null?void 0:o.state)!=null?r:G5();Ce(this,ti,F(y({},t),{isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}));},$5=function(t){_t.batch(()=>{var o,r,n,a,s,i,l,d;if(Z(this,ss)&&this.hasListeners()){let c=Z(this,ti).variables,p=Z(this,ti).context;(t==null?void 0:t.type)==="success"?((r=(o=Z(this,ss)).onSuccess)==null||r.call(o,t.data,c,p),(a=(n=Z(this,ss)).onSettled)==null||a.call(n,t.data,null,c,p)):(t==null?void 0:t.type)==="error"&&((i=(s=Z(this,ss)).onError)==null||i.call(s,t.error,c,p),(d=(l=Z(this,ss)).onSettled)==null||d.call(l,void 0,t.error,c,p));}this.listeners.forEach(c=>{c(Z(this,ti));});});},r9);var e6=J__namespace.createContext(void 0),p1=e=>{let t=J__namespace.useContext(e6);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},t6=({client:e,children:t})=>(J__namespace.useEffect(()=>(e.mount(),()=>{e.unmount();}),[e]),jsxRuntime.jsx(e6.Provider,{value:e,children:t}));var n9=J__namespace.createContext(false),a9=()=>J__namespace.useContext(n9);n9.Provider;function NI(){let e=false;return {clearReset:()=>{e=false;},reset:()=>{e=true;},isReset:()=>e}}var II=J__namespace.createContext(NI()),s9=()=>J__namespace.useContext(II);var l9=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=false));},d9=e=>{J__namespace.useEffect(()=>{e.clearReset();},[e]);},c9=({result:e,errorResetBoundary:t,throwOnError:o,query:r,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(n&&e.data===void 0||$0(o,[e.error,r]));var p9=e=>{let t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...o)=>Math.max(t(...o),1e3):Math.max(t!=null?t:1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)));},m9=(e,t)=>e.isLoading&&e.isFetching&&!t,u9=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,o6=(e,t,o)=>t.fetchOptimistic(e).catch(()=>{o.clearReset();});function N4(e,t,o){var p,f,u,g,m;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');let r=p1(),n=a9(),a=s9(),s=r.defaultQueryOptions(e);(f=(p=r.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||f.call(p,s),process.env.NODE_ENV!=="production"&&(s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),s._optimisticResults=n?"isRestoring":"optimistic",p9(s),l9(s,a),d9(a);let i=!r.getQueryCache().get(s.queryHash),[l]=J__namespace.useState(()=>new t(r,s)),d=l.getOptimisticResult(s),c=!n&&e.subscribed!==false;if(J__namespace.useSyncExternalStore(J__namespace.useCallback(v=>{let h=c?l.subscribe(_t.batchCalls(v)):yo;return l.updateResult(),h},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),J__namespace.useEffect(()=>{l.setOptions(s);},[s,l]),u9(s,d))throw o6(s,l,a);if(c9({result:d,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw d.error;if((g=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_afterQuery)==null||g.call(u,s,d),s.experimental_prefetchInRender&&!Ur&&m9(d,n)){let v=i?o6(s,l,a):(m=r.getQueryCache().get(s.queryHash))==null?void 0:m.promise;v==null||v.catch(yo).finally(()=>{l.updateResult();});}return s.notifyOnChangeProps?d:l.trackResult(d)}function Ve(e,t){return N4(e,ad)}function ge(e,t){let o=p1(),[r]=J__namespace.useState(()=>new R5(o,e));J__namespace.useEffect(()=>{r.setOptions(e);},[r,e]);let n=J__namespace.useSyncExternalStore(J__namespace.useCallback(s=>r.subscribe(_t.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=J__namespace.useCallback((s,i)=>{r.mutate(s,i).catch(yo);},[r]);if(n.error&&$0(r.options.throwOnError,[n.error]))throw n.error;return F(y({},n),{mutate:a,mutateAsync:n.mutate})}function yt(e,t){return N4(e,X5)}var f9={"no.results":"No results found","country.label":"Country","select.a.country.label":"Select a country","component.workspace.user.list.loading":"Loading...","component.workspace.user.list.empty":"No workspaces found","component.workspace.user.complete":"complete","component.workspace.greetings":"Good to have you back, ","component.workspace.greetings.label":"Keep making the most of what we\u2019ve prepared for you.","component.workspace.user.following":"Following","component.workspace.user.followers":"Followers","component.workspace.user.posts":"Posts","component.workspace.user.contacts":"Contacts","component.workspace.panel.explore":"All workspaces","component.workspace.panel.create":"Create workspace","component.workspace.panel.modal.title":"Create a new workspace","component.workspace.panel.modal.form.interests":"Interests","component.workspace.panel.modal.form.name":"Workspace name / emoji icon","component.workspace.panel.modal.form.interests.placeholder":"Select your interests","component.workspace.panel.modal.form.name.placeholder":"Enter workspace name","component.workspace.panel.modal.form.description":"Short description","component.workspace.panel.modal.form.button.back":"Back","component.workspace.panel.modal.form.button.create":"Create workspace","component.workspace.panel.modal.form.button.creating":"Creating your workspace...","component.workspace.panel.modal.form.toats.error.title":"Error creating workspace","component.workspace.panel.modal.form.toats.error.description":"Something went wrong while creating your workspace. Please try again.","component.workspace.panel.modal.form.errors.required-field":"This field is required","component.workspace.panel.modal.form.options.edit":"Edit","component.workspace.panel.modal.form.options.delete":"Delete","component.workspace.panel.modal.form.options.delete.confirm.title":"Are you sure you want to delete this workspace?","component.workspace.panel.modal.form.options.delete.confirm.description":"This action can\u2019t be undone! Are you sure you want to permanently delete it?","component.workspace.panel.modal.form.options.delete.button.cancel":"Cancel","component.workspace.panel.modal.form.options.delete.button.delete":"Delete","component.workspace.panel.modal.form.options.delete.toats.success.title":"Workspace deleted successfully!","component.workspace.panel.modal.form.options.delete.toats.success.description":"Your workspace was deleted successfully.","component.workspace.panel.modal.form.options.delete.toats.error.title":"Error deleting workspace","component.workspace.panel.modal.form.options.delete.toats.error.description":"Something went wrong while deleting your workspace. Please try again.","component.workspace.panel.modal.edit.title":"Edit workspace details","component.workspace.panel.modal.edit.button.save":"Save","component.workspace.panel.modal.edit.toats.success.title":"Workspace updated successfully!","component.workspace.panel.modal.edit.toats.success.description":"Your workspace was updated successfully.","component.workspace.panel.modal.edit.toats.error.title":"Error updating workspace","component.workspace.panel.modal.edit.toats.error.description":"Something went wrong while updating your workspace. Please try again.","component.workspace.panel.modal.success.title":"Workspace created successfully!","component.workspace.panel.modal.success.description":"All set! Your new workspace is the first step toward great things.","component.workspace.panel.modal.success.button.view-workspace":"View workspace","component.workspace.panel.modal.success.button.store":"Go to store","component.search.placeholder":"Search","main.navbar.home":"Home","main.navbar.mcp":"MCP","main.navbar.explore":"Explore","main.navbar.job":"Job","main.navbar.notifications":"Notifications","component.user.options.settings":"Settings","component.user.options.view-profiles":"View my profiles","component.user.options.logout":"Log out","component.user.options.logout.confirm.my-profiles":"My profiles","component.user.options.logout.confirm.my-account":"My account","component.user.options.logout.confirm.pages":"Pages","component.user.options.logout.confirm.pages.create":"Create page or profile","component.user.options.logout.confirm.logout":"Log out","component.select-input.placeholder":"Select an option","component.select-input.no-elements-found":"No items found","personas.steps.label":"This section lets you select multiple topics at once","personas.steps.initial.title":"Great to have you here!","personas.steps.initial.description":"Discover tools that help you grow professionally and unlock new opportunities easily.","personas.steps.initial.button.start":"Explore Mirantes","select-persona.title":"Pick your topic of interest","select-persona.description":"Your space, your rules! Pick a topic and see everything adapt to your interests.","select-persona.button.next":"Continue","personas.steps.new-opportunity.title":"Looking for new opportunities","personas.steps.new-opportunity.option.1":"Search for jobs","personas.steps.new-opportunity.option.2":"Take courses","personas.steps.new-opportunity.option.3":"Connect with companies and professionals","personas.steps.expand-business.title":"I want to grow my business","personas.steps.expand-business.option.1":"Promote my business","personas.steps.expand-business.2":"Monetize my content","personas.steps.expand-business.option.3":"Build a community of followers","personas.steps.win-money.title":"I want to make money online","personas.steps.win-money.option.1":"Promote my business","personas.steps.win-money.option.2":"Earn money with services","personas.steps.win-money.option.3":"Connect with other entrepreneurs","personas.steps.talents.title":"I\u2019m looking for top talent","personas.steps.talents.option.1":"Post a job","personas.steps.talents.option.2":"Start recruiting now","personas.steps.talents.description":"Pick the topics you\u2019re most interested in","choose.address.title":"Where are you located right now? This helps us recommend the best content for you","choose.address.save-button":"Save","choose.address.ignore-button":"Skip","create-post.title":"Now that we know your interests, how about creating a post?","create-post.save-button":"Create post","create-post.ignore-button":"Maybe later","continue.button":"Continue","back.button":"Back","new-oportunity.phrase":"Make your first post and stand out to recruiters.","expand-business.phrase":"Showcase your business and connect with new clients or partners.","win-money.phrase":"Share your talent with the world and start building your community.","new-talents.phrase":"Share what you\u2019re looking for and attract top professionals to your team.","offline-title":"Disconnected from the internet \u26A0\uFE0F","online-title":"Connected to the internet \u2705","internet.slow":"Your internet is slow \u26A0\uFE0F","internet.medium":"Your internet is okay \u{1F642}","internet.high":"Your internet is fast \u{1F680}","calendar.title":"Calendar","calendar.new-event":"New event","calendar.my-agenda":"My agenda","calendar.done-events":"Done events","calendar.marked-events":"Marked events","download.banner.title":"Discover the true experience with our app!","download.banner.subtitle":"The best experience is waiting for you in our app.","download.banner.button":"Download now","download.banner.trigger":"Show Download Banner"};var g9={"no.results":"Aucun r\xE9sultat trouv\xE9","country.label":"Pays","select.a.country.label":"S\xE9lectionnez un pays","component.workspace.user.list.loading":"Chargement...","component.workspace.user.list.empty":"Aucun workspace trouv\xE9","component.workspace.user.complete":"complet","component.workspace.greetings":"Ravi de vous revoir, ","component.workspace.greetings.label":"Continuez \xE0 profiter de ce que nous avons pr\xE9par\xE9 pour vous.","component.workspace.user.following":"Abonnements","component.workspace.user.followers":"Abonn\xE9s","component.workspace.user.posts":"Posts","component.workspace.user.contacts":"Contacts","component.workspace.panel.explore":"Tous les workspaces","component.workspace.panel.create":"Cr\xE9er un workspace","component.workspace.panel.modal.title":"Cr\xE9er un nouveau workspace","component.workspace.panel.modal.form.interests":"Centres d\u2019int\xE9r\xEAt","component.workspace.panel.modal.form.name":"Nom du workspace / ic\xF4ne emoji","component.workspace.panel.modal.form.interests.placeholder":"S\xE9lectionnez vos centres d\u2019int\xE9r\xEAt","component.workspace.panel.modal.form.name.placeholder":"Entrez le nom du workspace","component.workspace.panel.modal.form.description":"Br\xE8ve description","component.workspace.panel.modal.form.button.back":"Retour","component.workspace.panel.modal.form.button.create":"Cr\xE9er workspace","component.workspace.panel.modal.form.button.creating":"Cr\xE9ation de votre workspace...","component.workspace.panel.modal.form.toats.error.title":"Erreur lors de la cr\xE9ation du workspace","component.workspace.panel.modal.form.toats.error.description":"Une erreur est survenue lors de la cr\xE9ation du workspace. Veuillez r\xE9essayer.","component.workspace.panel.modal.form.errors.required-field":"Champ obligatoire","component.workspace.panel.modal.form.options.edit":"Modifier","component.workspace.panel.modal.form.options.delete":"Supprimer","component.workspace.panel.modal.form.options.delete.confirm.title":"Voulez-vous vraiment supprimer ce workspace ?","component.workspace.panel.modal.form.options.delete.confirm.description":"Cette action est irr\xE9versible ! Voulez-vous vraiment supprimer d\xE9finitivement ce workspace ?","component.workspace.panel.modal.form.options.delete.button.cancel":"Annuler","component.workspace.panel.modal.form.options.delete.button.delete":"Supprimer","component.workspace.panel.modal.form.options.delete.toats.success.title":"Workspace supprim\xE9 avec succ\xE8s !","component.workspace.panel.modal.form.options.delete.toats.success.description":"Le workspace a bien \xE9t\xE9 supprim\xE9.","component.workspace.panel.modal.form.options.delete.toats.error.title":"Erreur lors de la suppression du workspace","component.workspace.panel.modal.form.options.delete.toats.error.description":"Une erreur est survenue lors de la suppression du workspace. Veuillez r\xE9essayer.","component.workspace.panel.modal.edit.title":"Modifier les d\xE9tails du workspace","component.workspace.panel.modal.edit.button.save":"Enregistrer","component.workspace.panel.modal.edit.toats.success.title":"Workspace mis \xE0 jour avec succ\xE8s !","component.workspace.panel.modal.edit.toats.success.description":"Le workspace a bien \xE9t\xE9 mis \xE0 jour.","component.workspace.panel.modal.edit.toats.error.title":"Erreur lors de la mise \xE0 jour du workspace","component.workspace.panel.modal.edit.toats.error.description":"Une erreur est survenue lors de la mise \xE0 jour du workspace. Veuillez r\xE9essayer.","component.workspace.panel.modal.success.title":"Workspace cr\xE9\xE9 avec succ\xE8s !","component.workspace.panel.modal.success.description":"Tout est pr\xEAt ! Votre nouveau workspace est le premier pas vers de belles r\xE9ussites.","component.workspace.panel.modal.success.button.view-workspace":"Voir le workspace","component.workspace.panel.modal.success.button.store":"Aller \xE0 la boutique","component.search.placeholder":"Rechercher","main.navbar.home":"Accueil","main.navbar.mcp":"MCP","main.navbar.explore":"Explorer","main.navbar.job":"Emploi","main.navbar.notifications":"Notifications","component.user.options.settings":"Param\xE8tres","component.user.options.view-profiles":"Voir mes profils","component.user.options.logout":"Se d\xE9connecter","component.user.options.logout.confirm.my-profiles":"Mes profils","component.user.options.logout.confirm.my-account":"Mon compte","component.user.options.logout.confirm.pages":"Pages","component.user.options.logout.confirm.pages.create":"Cr\xE9er une page ou un profil","component.user.options.logout.confirm.logout":"Se d\xE9connecter","component.select-input.placeholder":"S\xE9lectionnez une option","component.select-input.no-elements-found":"Aucun \xE9l\xE9ment trouv\xE9","personas.steps.label":"Cette section permet de s\xE9lectionner plusieurs sujets \xE0 la fois","personas.steps.initial.title":"Content de vous voir ici !","personas.steps.initial.description":"D\xE9couvrez des outils qui vous aideront \xE0 \xE9voluer professionnellement et \xE0 saisir de nouvelles opportunit\xE9s facilement.","personas.steps.initial.button.start":"Explorer Mirantes","select-persona.title":"Choisissez votre centre d\u2019int\xE9r\xEAt","select-persona.description":"Votre espace, vos r\xE8gles ! Choisissez un th\xE8me et tout s\u2019adaptera \xE0 vos int\xE9r\xEAts.","select-persona.button.next":"Continuer","personas.steps.new-opportunity.title":"Je recherche de nouvelles opportunit\xE9s","personas.steps.new-opportunity.option.1":"Rechercher un emploi","personas.steps.new-opportunity.option.2":"Suivre des formations","personas.steps.new-opportunity.option.3":"Se connecter avec des entreprises et des professionnels","personas.steps.expand-business.title":"Je veux d\xE9velopper mon entreprise","personas.steps.expand-business.option.1":"Promouvoir mon entreprise","personas.steps.expand-business.2":"Mon\xE9tiser mes contenus","personas.steps.expand-business.option.3":"Cr\xE9er une communaut\xE9 de followers","personas.steps.win-money.title":"Je veux gagner de l'argent en ligne","personas.steps.win-money.option.1":"Promouvoir mon entreprise","personas.steps.win-money.option.2":"Gagner de l'argent avec des services","personas.steps.win-money.option.3":"Se connecter avec d'autres entrepreneurs","personas.steps.talents.title":"Je recherche les meilleurs talents","personas.steps.talents.option.1":"Publier une offre","personas.steps.talents.option.2":"Recruter maintenant","personas.steps.talents.description":"S\xE9lectionnez les sujets qui vous int\xE9ressent le plus","choose.address.title":"Quelle est votre localisation actuelle ? Cela nous aide \xE0 mieux vous recommander du contenu","choose.address.save-button":"Enregistrer","choose.address.ignore-button":"Ignorer","create-post.title":"Maintenant que nous connaissons vos int\xE9r\xEAts, pourquoi ne pas cr\xE9er un post ?","create-post.save-button":"Cr\xE9er un post","create-post.ignore-button":"Peut-\xEAtre plus tard","continue.button":"Continuer","back.button":"Retour","new-oportunity.phrase":"Faites votre premier post et attirez l'attention des recruteurs.","expand-business.phrase":"Pr\xE9sentez votre entreprise et connectez-vous \xE0 de nouveaux clients ou partenaires.","win-money.phrase":"Montrez votre talent au monde et commencez \xE0 b\xE2tir votre communaut\xE9.","new-talents.phrase":"Partagez vos besoins et attirez les meilleurs professionnels dans votre \xE9quipe.","offline-title":"D\xE9connect\xE9 d'internet \u26A0\uFE0F","online-title":"Connect\xE9 \xE0 internet \u2705","internet.slow":"Votre connexion est lente \u26A0\uFE0F","internet.medium":"Votre connexion est correcte \u{1F642}","internet.high":"Votre connexion est rapide \u{1F680}","calendar.title":"Calendrier","calendar.new-event":"Nouvel \xE9v\xE9nement","calendar.my-agenda":"Mon agenda","calendar.done-events":"\xC9v\xE9nements r\xE9alis\xE9s","calendar.marked-events":"\xC9v\xE9nements marqu\xE9s","download.banner.title":"D\xE9couvrez la vraie exp\xE9rience avec notre app !","download.banner.subtitle":"La meilleure exp\xE9rience vous attend dans notre app.","download.banner.button":"T\xE9l\xE9charger maintenant","download.banner.trigger":"Afficher la banni\xE8re de t\xE9l\xE9chargement"};var h9={"no.results":"Sem resultados","country.label":"Pa\xEDs","select.a.country.label":"Seleccione um pa\xEDs","component.workspace.user.list.loading":"Carregando...","component.workspace.user.list.empty":"Nenhum workspace encontrado","component.workspace.user.complete":"completo","component.workspace.greetings":"Que bom ter voc\xEA de volta, ","component.workspace.greetings.label":"Continue tirando o melhor do que preparamos para voc\xEA.","component.workspace.user.following":"A seguir","component.workspace.user.followers":"Seguidores","component.workspace.user.posts":"Posts","component.workspace.user.contacts":"Contactos","component.workspace.panel.explore":"Todos workspaces","component.workspace.panel.create":"Criar workspace","component.workspace.panel.modal.title":"Criar novo workspace","component.workspace.panel.modal.form.interests":"Interesses","component.workspace.panel.modal.form.name":"Nome do workspace / icon-emoji","component.workspace.panel.modal.form.interests.placeholder":"Selecione os interesses","component.workspace.panel.modal.form.name.placeholder":"Escrever nome do workspace","component.workspace.panel.modal.form.description":"Descri\xE7\xE3o curta","component.workspace.panel.modal.form.button.back":"Voltar","component.workspace.panel.modal.form.button.create":"Criar workspace","component.workspace.panel.modal.form.button.creating":"Criando o seu workspace...","component.workspace.panel.modal.form.toats.error.title":"Erro ao criar workspace","component.workspace.panel.modal.form.toats.error.description":"Ocorreu um erro ao criar o workspace, por favor, tente novamente.","component.workspace.panel.modal.form.errors.required-field":"Campo obrigat\xF3rio","component.workspace.panel.modal.form.options.edit":"Editar","component.workspace.panel.modal.form.options.delete":"Deletar","component.workspace.panel.modal.form.options.delete.confirm.title":"Voc\xEA quer excluir este workspace?","component.workspace.panel.modal.form.options.delete.confirm.description":"Depois n\xE3o tem volta! Tem certeza que quer apagar de vez?.","component.workspace.panel.modal.form.options.delete.button.cancel":"Cancelar","component.workspace.panel.modal.form.options.delete.button.delete":"Deletar","component.workspace.panel.modal.form.options.delete.toats.success.title":"Workspace deletado com sucesso!","component.workspace.panel.modal.form.options.delete.toats.success.description":"O workspace foi deletado com sucesso.","component.workspace.panel.modal.form.options.delete.toats.error.title":"Erro ao deletar workspace","component.workspace.panel.modal.form.options.delete.toats.error.description":"Ocorreu um erro ao deletar o workspace, por favor, tente novamente.","component.workspace.panel.modal.edit.title":"Editar detalhes do worspace","component.workspace.panel.modal.edit.button.save":"Salvar","component.workspace.panel.modal.edit.toats.success.title":"Workspace atualizado com sucesso!","component.workspace.panel.modal.edit.toats.success.description":"O workspace foi atualizado com sucesso.","component.workspace.panel.modal.edit.toats.error.title":"Erro ao atualizar workspace","component.workspace.panel.modal.edit.toats.error.description":"Ocorreu um erro ao atualizar o workspace, por favor, tente novamente.","component.workspace.panel.modal.success.title":"Workspace criado com sucesso!","component.workspace.panel.modal.success.description":"Tudo pronto! Seu novo espa\xE7o de trabalho \xE9 o primeiro passo para grandes conquistas.","component.workspace.panel.modal.success.button.view-workspace":"Ver workspace","component.workspace.panel.modal.success.button.store":"Ir na loja","component.search.placeholder":"Pesquisar","main.navbar.home":"In\xEDcio","main.navbar.mcp":"MCP","main.navbar.explore":"Explorar","main.navbar.job":"Vaga","main.navbar.notifications":"Notifica\xE7\xF5es","component.user.options.settings":"Defini\xE7\xF5es","component.user.options.view-profiles":"Ver meu perfil","component.user.options.logout":"Sair da conta","component.user.options.logout.confirm.my-profiles":"Meus perfis","component.user.options.logout.confirm.my-account":"Minha conta","component.user.options.logout.confirm.pages":"P\xE1ginas","component.user.options.logout.confirm.pages.create":"Criar p\xE1gina ou perfil ","component.user.options.logout.confirm.logout":"Terminar sess\xE3o","component.select-input.placeholder":"Selecione uma op\xE7\xE3o","component.select-input.no-elements-found":"Nenhum elemento encontrado","personas.steps.label":"Esta sec\xE7\xE3o permite a sele\xE7\xE3o de v\xE1rias assuntos em simult\xE2neo","personas.steps.initial.title":"Que bom ter voc\xEA aqui!","personas.steps.initial.description":"Descubra as ferramentas que v\xE3o te ajudar crescer profissionalmente, abrir novas oportunidades de forma simples e pr\xE1tica.","personas.steps.initial.button.start":"Explorar Mirantes","select-persona.title":"Escolha o tema de interesse","select-persona.description":"Seu espa\xE7o, suas regras! Escolha um tema e veja tudo se moldar ao seu interesse.","select-persona.button.next":"Continuar","personas.steps.new-opportunity.title":"Procuro novas oportunidade","personas.steps.new-opportunity.option.1":"Procurar emprego","personas.steps.new-opportunity.option.2":"Fazer forma\xE7\xF5es","personas.steps.new-opportunity.option.3":"Conectar-se com empresas e profissionais","personas.steps.expand-business.title":"Quero expandir o meu neg\xF3cio","personas.steps.expand-business.option.1":"Promover o neg\xF3cio.","personas.steps.expand-business.2":"Rentabilizar os seus conte\xFAdos.","personas.steps.expand-business.option.3":"Criar uma comunidade de seguidores.","personas.steps.win-money.title":"Quero ganhar dinheiro online","personas.steps.win-money.option.1":"Promover o neg\xF3cio.","personas.steps.win-money.option.2":"Ganhar dinheiro com servi\xE7os.","personas.steps.win-money.option.3":"Ligar-se a outros empreendedores.","personas.steps.talents.title":"Procuro os melhores talentos","personas.steps.talents.option.1":"Publicar vaga","personas.steps.talents.option.2":"Recrutar agora","personas.steps.talents.description":"Marque os assuntos que mais te interessam","choose.address.title":"Qual \xE9 a tua localiza\xE7\xE3o atual? Isso ajuda-nos a recomendar melhor o teu conte\xFAdo","choose.address.save-button":"Salvar","choose.address.ignore-button":"Ignorar","create-post.title":"Agora que sabemos os seus interesses, que tal fazer uma publica\xE7\xE3o?","create-post.save-button":"Criar uma publica\xE7\xE3o","create-post.ignore-button":"Talvez depois eu publico","continue.button":"Continuar","back.button":"Voltar","new-oportunity.phrase":"Fa\xE7a o seu primeiro post e destaque-se entre os recrutadores.","expand-business.phrase":"Apresente o seu neg\xF3cio e conecte-se com novos clientes ou parceiros.","win-money.phrase":"Mostre ao mundo o seu talento e comece a criar uma comunidade \xE0 sua volta.","new-talents.phrase":"Partilhe o que procura e atraia os melhores profissipnais para a sua equipa.","offline-title":"Disconectado(a) da internet \u26A0\uFE0F","online-title":"Conectado(a) \xE0 internet \u2705","internet.slow":"Sua internet est\xE1 lenta \u26A0\uFE0F","internet.medium":"Sua internet est\xE1 razo\xE1vel \u{1F642}","internet.high":"Sua internet est\xE1 r\xE1pida \u{1F680}","calendar.title":"Agenda","calendar.new-event":"Novo evento","calendar.my-agenda":"Minha agenda","calendar.done-events":"Eventos realizados","calendar.marked-events":"Eventos marcados","download.banner.title":"Descobre a verdadeira experi\xEAncia com a nossa app!","download.banner.subtitle":"A melhor experi\xEAncia est\xE1 \xE0 tua espera na nossa app.","download.banner.button":"Baixar agora","download.banner.trigger":"Mostrar Banner de Download"};var EI={pt:y({},h9),en:y({},f9),fr:y({},g9)};function he(e,t){return EI[e][t]}function y9(e={}){let{checkInterval:t=3e4,latencyThresholds:o={slow:1e3,medium:400},speedThresholds:r={slow:.3,medium:1},enabled:n=true}=e,[a,s]=J.useState("high"),[i,l]=J.useState(null),[d,c]=J.useState(null),[p,f]=J.useState(typeof navigator!="undefined"?navigator.onLine:true);J.useEffect(()=>{if(typeof window=="undefined")return;let v=()=>f(true),h=()=>{f(false),s("slow");};return window.addEventListener("online",v),window.addEventListener("offline",h),()=>{window.removeEventListener("online",v),window.removeEventListener("offline",h);}},[]);let u=J.useCallback(()=>j(this,null,function*(){try{let v=`https://www.google.com/favicon.ico?t=${Date.now()}`,h=performance.now(),b=new AbortController,x=setTimeout(()=>b.abort(),5e3),w=yield fetch(v,{method:"HEAD",cache:"no-store",mode:"no-cors",signal:b.signal});return clearTimeout(x),performance.now()-h}catch(v){return typeof window!="undefined"&&window.performance?150:2e3}}),[]),g=J.useCallback(()=>{if(typeof navigator=="undefined")return null;let v=navigator,h=v.connection||v.mozConnection||v.webkitConnection;return h?{effectiveType:h.effectiveType,downlink:h.downlink,rtt:h.rtt,saveData:h.saveData}:null},[]),m=J.useCallback((v,h)=>{let b=g();if(b){let{effectiveType:x,downlink:w,rtt:C}=b;return x==="slow-2g"||x==="2g"?"slow":x==="3g"?"medium":x==="4g"&&w>2?"high":C>o.slow||w<r.slow?"slow":C>o.medium||w<r.medium?"medium":"high"}if(h!==null){if(v>o.slow||h<r.slow)return "slow";if(v>o.medium||h<r.medium)return "medium"}else {if(v>o.slow)return "slow";if(v>o.medium)return "medium"}return "high"},[o,r,g]);return J.useEffect(()=>{if(!n||!p||typeof window=="undefined"){p||s("slow");return}let v,h=true,b=()=>j(this,null,function*(){if(h){try{let C=g(),A,k=null;if(C?(A=C.rtt||0,k=C.downlink||null):A=yield u(),!h)return;l(Math.round(A)),k!==null&&c(Math.round(k*100)/100);let N=m(A,k);s(N);}catch(C){console.error("Quality check failed:",C);}h&&(v=setTimeout(b,t));}});b();let x=navigator,w=x.connection||x.mozConnection||x.webkitConnection;if(w){let C=()=>b();return w.addEventListener("change",C),()=>{h=false,clearTimeout(v),w.removeEventListener("change",C);}}return ()=>{h=false,clearTimeout(v);}},[n,p,t,u,m,g]),{quality:a,latency:i,downloadSpeed:d,isOnline:p,isSlow:a==="slow",isMedium:a==="medium",isHigh:a==="high"}}function _I({message:e,visible:t,quality:o}){let r=o==="slow"?lucideReact.WifiOff:o==="medium"?lucideReact.SignalMedium:lucideReact.Wifi;return J__namespace.default.createElement(react.AnimatePresence,null,t&&J__namespace.default.createElement(react.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3},className:FI__default.default("fixed bottom-4 right-4 flex items-center gap-2 px-4 py-2 rounded-lg shadow-lg text-white text-sm z-50",{"bg-red-500":o==="slow","bg-yellow-500":o==="medium"})},J__namespace.default.createElement(r,{className:"w-4 h-4"}),e))}function x9({children:e,Notification:t,queryClient:o,onOpenCreatePostModal:r,commentComponents:n,pageTriggerComponents:a,values:{chatApiUrl:s,chatForPage:i,locale:l,Link:d,usePathname:c,user:p,isGettingUser:f,mirantesDomain:u,environment:g,feedApi:m,searchApi:v,widgetsApi:h,hostUrl:b,assetsApiUrl:x,isDev:w,profileApiUrl:C="",analyticsApiUrl:A="",isGettingStats:k,openCageApiKey:N,pageId:I,authedApi:P,authApiUrl:S,socketApiUrl:D,uploadFilesApi:T,page:L,ocpSubscriptionKey:E,billingApiUrl:B,multicaixaExpressUrl:W,stripeKey:q,isPageFeed:Y,community:H,isCommunityFeed:z}={}}){let{quality:G}=y9({checkInterval:3e4,latencyThresholds:{slow:1e3,medium:400},speedThresholds:{slow:.3,medium:1},enabled:true}),[R,V]=J.useState(false),[_,$]=J.useState(""),oe=J.useRef("medium"),K=J.useMemo(()=>({locale:l,Link:d,usePathname:c,user:p,isGettingUser:f,openCageApiKey:N,mirantesDomain:u,environment:g,widgetsApi:h,searchApi:v,feedApi:m,hostUrl:b,isDev:w,Notification:t,profileApiUrl:C,isGettingStats:k,pageId:I,isPageFeed:Y,community:H,isCommunityFeed:z,authedApi:P,authApiUrl:S,chatApiUrl:s,assetsApiUrl:x,analyticsApiUrl:A,chatForPage:i,socketApiUrl:D,uploadFilesApi:T,queryClient:o,page:L,ocpSubscriptionKey:E,billingApiUrl:B,onOpenCreatePostModal:me=>{r==null||r(),me==null||me();},multicaixaExpressUrl:W,stripeKey:q,commentComponents:n,pageTriggerComponents:a}),[l,d,c,p,u,g,h,m,v,A,x,b,w,t,C,r,N,I,P,S,T,o,L,Y,H,z,E,B,W,q,n,a]),ne=typeof window!="undefined";return J.useEffect(()=>{if(ne&&G!==oe.current)if(oe.current=G,G==="slow"||G==="medium"){let me=G==="slow"?"internet.slow":"internet.medium",Me=he(l!=null?l:"pt",me);$(Me),V(true),setTimeout(()=>V(false),3e3);}else V(false);},[G,l,ne]),J__namespace.default.createElement(g4.Provider,{value:K},ne&&J__namespace.default.createElement(_I,{quality:G,visible:R,message:_}),J__namespace.default.createElement(t6,{client:o},J__namespace.default.createElement(billingV2.MirantesBillingProvider,{values:{billingApiUrl:B,locale:l,multicaixaExpressUrl:W,stripeKey:q,queryClient:o,user:p,page:{id:L==null?void 0:L.id,name:L==null?void 0:L.name,slug:L==null?void 0:L.slug}}},e),ne&&!w&&J__namespace.default.createElement(reactQueryDevtools.ReactQueryDevtools,{client:o,initialIsOpen:false})))}function E4(e,t){if(typeof window=="undefined")return t;let o=window.localStorage.getItem(e);try{return o?JSON.parse(o):t}catch(r){return t}}function Ma(e,t){let[o,r]=J.useState(()=>E4(e,t));return J.useEffect(()=>{typeof window!="undefined"&&window.localStorage.setItem(e,JSON.stringify(o));},[e,o]),[o,r]}var qI=["list-pages-open","chat-visible","mobile-explore-open"],WI=["job-trigger-open"];function Ae(){typeof window!="undefined"&&(qI.forEach(e=>{window.localStorage.setItem(e,JSON.stringify(false));}),WI.forEach(e=>{let t=window.localStorage.getItem(e);if(t)try{let o=JSON.parse(t);o&&typeof o=="object"&&"state"in o&&(o.state.isJobOpen=!1,window.localStorage.setItem(e,JSON.stringify(o)));}catch(o){window.localStorage.removeItem(e);}}),window.dispatchEvent(new CustomEvent("persistentUIReset")));}var s6="-",QI=e=>{let t=ZI(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return {getClassGroupId:s=>{let i=s.split(s6);return i[0]===""&&i.length!==1&&i.shift(),M9(i,t)||KI(s)},getConflictingClassGroupIds:(s,i)=>{let l=o[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},M9=(e,t)=>{var s;if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?M9(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(s6);return (s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},w9=/^\[(.+)\]$/,KI=e=>{if(w9.test(e)){let t=w9.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return "arbitrary.."+o}},ZI=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return JI(Object.entries(e.classGroups),o).forEach(([a,s])=>{a6(s,r,a,t);}),r},a6=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:C9(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(YI(n)){a6(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,s])=>{a6(s,C9(t,a),o,r);});});},C9=(e,t)=>{let o=e;return t.split(s6).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r);}),o},YI=e=>e.isThemeGetter,JI=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return [o,n]}):e,XI=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,s)=>{o.set(a,s),t++,t>e&&(t=0,r=o,o=new Map);};return {get(a){let s=o.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return n(a,s),s},set(a,s){o.has(a)?o.set(a,s):n(a,s);}}},P9="!",$I=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,s=i=>{let l=[],d=0,c=0,p;for(let v=0;v<i.length;v++){let h=i[v];if(d===0){if(h===n&&(r||i.slice(v,v+a)===t)){l.push(i.slice(c,v)),c=v+a;continue}if(h==="/"){p=v;continue}}h==="["?d++:h==="]"&&d--;}let f=l.length===0?i:i.substring(c),u=f.startsWith(P9),g=u?f.substring(1):f,m=p&&p>c?p-c:void 0;return {modifiers:l,hasImportantModifier:u,baseClassName:g,maybePostfixModifierPosition:m}};return o?i=>o({className:i,parseClassName:s}):s},RI=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r);}),t.push(...o.sort()),t},eE=e=>y({cache:XI(e.cacheSize),parseClassName:$I(e)},QI(e)),tE=/\s+/,oE=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],s=e.trim().split(tE),i="";for(let l=s.length-1;l>=0;l-=1){let d=s[l],{modifiers:c,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:u}=o(d),g=!!u,m=r(g?f.substring(0,u):f);if(!m){if(!g){i=d+(i.length>0?" "+i:i);continue}if(m=r(f),!m){i=d+(i.length>0?" "+i:i);continue}g=false;}let v=RI(c).join(":"),h=p?v+P9:v,b=h+m;if(a.includes(b))continue;a.push(b);let x=n(m,g);for(let w=0;w<x.length;++w){let C=x[w];a.push(h+C);}i=d+(i.length>0?" "+i:i);}return i};function rE(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=S9(t))&&(r&&(r+=" "),r+=o);return r}var S9=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=S9(e[r]))&&(o&&(o+=" "),o+=t);return o};function nE(e,...t){let o,r,n,a=s;function s(l){let d=t.reduce((c,p)=>p(c),e());return o=eE(d),r=o.cache.get,n=o.cache.set,a=i,i(l)}function i(l){let d=r(l);if(d)return d;let c=oE(l,o);return n(l,c),c}return function(){return a(rE.apply(null,arguments))}}var eo=e=>{let t=o=>o[e]||[];return t.isThemeGetter=true,t},A9=/^\[(?:([a-z-]+):)?(.+)\]$/i,aE=/^\d+\/\d+$/,sE=new Set(["px","full","screen"]),iE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,cE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ds=e=>$l(e)||sE.has(e)||aE.test(e),ni=e=>Rl(e,"length",bE),$l=e=>!!e&&!Number.isNaN(Number(e)),n6=e=>Rl(e,"number",$l),id=e=>!!e&&Number.isInteger(Number(e)),mE=e=>e.endsWith("%")&&$l(e.slice(0,-1)),st=e=>A9.test(e),ai=e=>iE.test(e),uE=new Set(["length","size","percentage"]),fE=e=>Rl(e,uE,N9),gE=e=>Rl(e,"position",N9),hE=new Set(["image","url"]),vE=e=>Rl(e,hE,wE),yE=e=>Rl(e,"",xE),ld=()=>true,Rl=(e,t,o)=>{let r=A9.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):false},bE=e=>lE.test(e)&&!dE.test(e),N9=()=>false,xE=e=>cE.test(e),wE=e=>pE.test(e);var CE=()=>{let e=eo("colors"),t=eo("spacing"),o=eo("blur"),r=eo("brightness"),n=eo("borderColor"),a=eo("borderRadius"),s=eo("borderSpacing"),i=eo("borderWidth"),l=eo("contrast"),d=eo("grayscale"),c=eo("hueRotate"),p=eo("invert"),f=eo("gap"),u=eo("gradientColorStops"),g=eo("gradientColorStopPositions"),m=eo("inset"),v=eo("margin"),h=eo("opacity"),b=eo("padding"),x=eo("saturate"),w=eo("scale"),C=eo("sepia"),A=eo("skew"),k=eo("space"),N=eo("translate"),I=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto",st,t],D=()=>[st,t],T=()=>["",ds,ni],L=()=>["auto",$l,st],E=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",st],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[$l,st];return {cacheSize:500,separator:":",theme:{colors:[ld],spacing:[ds,ni],blur:["none","",ai,st],brightness:z(),borderColor:[e],borderRadius:["none","","full",ai,st],borderSpacing:D(),borderWidth:T(),contrast:z(),grayscale:Y(),hueRotate:z(),invert:Y(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[mE,ni],inset:S(),margin:S(),opacity:z(),padding:D(),saturate:z(),scale:z(),sepia:Y(),skew:z(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",st]}],container:["container"],columns:[{columns:[ai]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...E(),st]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",id,st]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",st]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",id,st]}],"grid-cols":[{"grid-cols":[ld]}],"col-start-end":[{col:["auto",{span:["full",id,st]},st]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[ld]}],"row-start-end":[{row:["auto",{span:[id,st]},st]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",st]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",st]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",st,t]}],"min-w":[{"min-w":[st,t,"min","max","fit"]}],"max-w":[{"max-w":[st,t,"none","full","min","max","fit","prose",{screen:[ai]},ai]}],h:[{h:[st,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[st,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[st,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[st,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ai,ni]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",n6]}],"font-family":[{font:[ld]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",st]}],"line-clamp":[{"line-clamp":["none",$l,n6]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ds,st]}],"list-image":[{"list-image":["none",st]}],"list-style-type":[{list:["none","disc","decimal",st]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ds,ni]}],"underline-offset":[{"underline-offset":["auto",ds,st]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",st]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",st]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...E(),gE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[u]}],"gradient-via":[{via:[u]}],"gradient-to":[{to:[u]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:B()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[ds,st]}],"outline-w":[{outline:[ds,ni]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[ds,ni]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ai,yE]}],"shadow-color":[{shadow:[ld]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ai,st]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",st]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",st]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",st]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[id,st]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",st]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",st]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",st]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ds,ni,n6]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var k4=nE(CE);function U(...e){return k4(FI.clsx(e))}function i6(o){var r=o,{delayDuration:e=0}=r,t=Q(r,["delayDuration"]);return J__namespace.createElement(En__namespace.Provider,y({"data-slot":"tooltip-provider",delayDuration:e},t))}function I9(t){var e=Q(t,[]);return J__namespace.createElement(i6,null,J__namespace.createElement(En__namespace.Root,y({"data-slot":"tooltip"},e)))}function E9(t){var e=Q(t,[]);return J__namespace.createElement(En__namespace.Trigger,y({"data-slot":"tooltip-trigger"},e))}function k9(n){var a=n,{className:e,sideOffset:t=0,children:o}=a,r=Q(a,["className","sideOffset","children"]);return J__namespace.createElement(En__namespace.Portal,null,J__namespace.createElement(En__namespace.Content,y({"data-slot":"tooltip-content",sideOffset:t,className:U("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e)},r),o,J__namespace.createElement(En__namespace.Arrow,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})))}function T9({children:e,content:t,className:o}){return J__namespace.default.createElement(i6,null,J__namespace.default.createElement(I9,null,J__namespace.default.createElement(E9,{className:"w-full h-full"},e),t&&J__namespace.default.createElement(k9,{className:U("p-4 bg-white rounded-lg",o)},J__namespace.default.createElement("span",{className:"text-body-md font-medium"},t))))}function ur(){let[e,t]=J.useState(false);return {isOpen:e,onOpen:()=>{t(true);},onClose:()=>{t(false);},toggle:()=>{t(!e);}}}function kn(e,t){J.useEffect(()=>{let o=r=>{e.current&&!e.current.contains(r.target)&&t();};return document.addEventListener("click",o),()=>{document.removeEventListener("click",o);}},[e,t]);}function m1({color:e="#687588",fontSize:t=20}){return J__namespace.createElement("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none"},J__namespace.createElement("path",{opacity:.4,d:"M14.664 19.99h-9.33A5.343 5.343 0 011.4 18.6 5.346 5.346 0 01.01 14.665v-9.33a5.345 5.345 0 011.388-3.936A5.347 5.347 0 015.335.01h9.33a5.338 5.338 0 013.932 1.388 5.372 5.372 0 011.393 3.937v9.33a5.35 5.35 0 01-1.389 3.936 5.347 5.347 0 01-3.937 1.389z",fill:e}),J__namespace.createElement("path",{d:"M15.055 8.398l-6.553 6.585a1.8 1.8 0 01-1.256.517H4.958a.463.463 0 01-.331-.137.457.457 0 01-.127-.331l.058-2.313c.01-.458.195-.887.516-1.21L9.72 6.857a.212.212 0 01.292 0L11.64 8.48a.615.615 0 00.428.175c.36 0 .643-.293.643-.644a.661.661 0 00-.175-.449c-.03-.039-1.58-1.583-1.58-1.583a.26.26 0 010-.36l.652-.664a1.537 1.537 0 012.18 0l1.267 1.268a1.55 1.55 0 010 2.176z",fill:e}))}function M(){let e=J.useContext(g4);if(!e)throw new Error("useMirantesFoundation must be used within a MirantesFoundationProvider");return e}function Sr({color:e="#E03137"}){return J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},J__namespace.createElement("path",{fill:e,d:"M16.37 7.906c0 .057-.445 5.674-.699 8.038-.159 1.45-1.094 2.33-2.497 2.356-1.078.024-2.133.032-3.171.032-1.102 0-2.18-.008-3.226-.032-1.356-.033-2.292-.93-2.443-2.356-.261-2.372-.697-7.981-.705-8.038a.66.66 0 0 1 .159-.465.6.6 0 0 1 .436-.195h11.558c.166 0 .317.073.436.195a.62.62 0 0 1 .151.465",opacity:"0.4"}),J__namespace.createElement("path",{fill:e,d:"M17.5 4.982c0-.342-.27-.61-.594-.61h-2.43c-.494 0-.924-.352-1.034-.848l-.136-.608a1.654 1.654 0 0 0-1.585-1.248H8.28c-.746 0-1.397.514-1.595 1.288l-.127.569a1.07 1.07 0 0 1-1.034.846h-2.43a.6.6 0 0 0-.595.611v.317c0 .334.27.61.595.61h13.81a.607.607 0 0 0 .595-.61z"}))}var L4={blue:{shade1:"#0b89ce"},red:{shade6:"#E03137"}};var D9=()=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"24",fill:"none",viewBox:"0 0 23 24"},J__namespace.createElement("path",{fill:"#000",d:"M18.781 18.47a.75.75 0 1 1-1.061 1.061l-6.22-6.22-6.219 6.22A.75.75 0 1 1 4.22 18.47l6.22-6.22-6.22-6.219A.75.75 0 1 1 5.28 4.97l6.22 6.22 6.219-6.22A.75.75 0 1 1 18.78 6.03l-6.22 6.22z"}));var F4=_o__namespace.Root;var NE=_o__namespace.Portal;var L9=J__namespace.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.createElement(_o__namespace.Overlay,y({ref:o,className:U("fixed inset-0 z-50 bg-black/10 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 outline-none",e)},t))});L9.displayName=_o__namespace.Overlay.displayName;var cd=J__namespace.forwardRef((l,i)=>{var d=l,{className:e,children:t,onClose:o,overlayClassName:r,closeOnOverlayClick:n=true,showCloseButton:a=true}=d,s=Q(d,["className","children","onClose","overlayClassName","closeOnOverlayClick","showCloseButton"]);return J__namespace.createElement(NE,null,J__namespace.createElement(L9,{className:`${r} z-[110] bg-[#00000050]`,onClick:c=>{n||(c.preventDefault(),c.stopPropagation());}}),J__namespace.createElement(_o__namespace.Content,y({ref:i,className:U("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 bg-white shadow-2xl shadow-[#00000010] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] outline-none focus:outline-none",e),style:{zIndex:9999}},s),t,a&&J__namespace.createElement("button",{onClick:c=>{c.preventDefault(),c.stopPropagation(),o==null||o();},className:"absolute cursor-pointer hidden lg:flex top-4 !p-0 lg:right-6 right-4 outline-none focus:outline-none"},J__namespace.createElement(D9,null))))});cd.displayName=_o__namespace.Content.displayName;var d6=o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.createElement("div",y({className:U("flex flex-col space-y-1.5 text-center sm:text-left outline-none",e)},t))};d6.displayName="DialogHeader";var pd=J__namespace.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.createElement(_o__namespace.Title,y({ref:o,className:U("text-lg font-semibold leading-none tracking-tight outline-none",e)},t))});pd.displayName=_o__namespace.Title.displayName;var EE=J__namespace.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.createElement(_o__namespace.Description,y({ref:o,className:U("text-sm text-muted-foreground outline-none",e)},t))});EE.displayName=_o__namespace.Description.displayName;function qe({isOpen:e,header:t,onClose:o,isLoading:r,children:n,showCloseButton:a=true,closeOnClickOutside:s=true,className:i,disableFullScreen:l=false,asPage:d=false,width:c,hideCloseButton:p=false}){let f=d?["fixed inset-0 z-[120]","w-full max-w-[95%] h-[90dvh]","!mx-auto !my-auto","left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2","overflow-y-auto","bg-white","rounded-[0.625rem]","shadow-xl"].join(" "):["fixed left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2","w-full max-w-full",c,l?"h-auto":"h-[100dvh] lg:h-auto",l?"rounded-2xl":"rounded-none lg:!rounded-2xl","bg-white","z-[120]","lg:mx-0"].join(" "),u=g=>{g.stopPropagation(),o();};return J__namespace.default.createElement(F4,{open:e,onOpenChange:g=>{!g&&s&&o();}},J__namespace.default.createElement(cd,{onClose:o,className:`relative px-0 py-0 ${l?"pb-2":"pb-4"} lg:py-6 lg:px-6 flex flex-col justify-start overflow-visible pt-0 gap-0 ${f} ${i}`,onInteractOutside:g=>{s||g.preventDefault();}},r&&J__namespace.default.createElement("div",{className:"loading-bar"}),!l&&!d&&J__namespace.default.createElement("header",{className:"px-4 py-4 lg:hidden flex items-center justify-between w-full sticky top-0 bg-white border-b border-gray-200 z-10"},J__namespace.default.createElement("div",{className:"flex-1"},t?J__namespace.default.createElement("span",{className:"text-lg font-semibold"},t):J__namespace.default.createElement("div",null)),!p&&J__namespace.default.createElement("button",{onClick:u,className:"cursor-pointer flex-shrink-0 ml-auto !mr-12",type:"button"},J__namespace.default.createElement(lucideReact.X,{className:"h-6 w-6"}))),t&&J__namespace.default.createElement(pd,{className:"hidden lg:flex justify-between items-center px-6 py-4 border-b border-gray-200"},J__namespace.default.createElement("span",{className:"text-lg font-semibold"},t),!p&&J__namespace.default.createElement("button",{onClick:u,className:"cursor-pointer",type:"button"},J__namespace.default.createElement(lucideReact.X,{className:"h-6 w-6"}))),J__namespace.default.createElement("div",{className:`flex-1 ${l?"overflow-visible":"overflow-auto"} ${l?"":"pb-0 lg:pb-4"}`},n)))}var e2=({color:e="#0B89CE"})=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41",height:"40",fill:"none",viewBox:"0 0 41 40"},J__namespace.createElement("mask",{id:"mask0_56449_70362",width:"41",height:"40",x:"0",y:"0",maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},J__namespace.createElement("path",{fill:"#C4C4C4",d:"M40.5 20c0 11.046-8.954 20-20 20S.5 31.046.5 20s8.954-20 20-20 20 8.954 20 20M7.543 20c0 7.156 5.801 12.957 12.957 12.957S33.457 27.156 33.457 20 27.656 7.043 20.5 7.043 7.543 12.844 7.543 20"})),J__namespace.createElement("g",{mask:"url(#mask0_56449_70362)"},J__namespace.createElement("g",{clipPath:"url(#paint0_angular_56449_70362_clip_path)","data-figma-skip-parse":"true"},J__namespace.createElement("foreignObject",{width:"2088.83",height:"2088.83",x:"-1044.42",y:"-1044.42",transform:"matrix(0 .02251 -.02251 0 20.5 20.01)"},J__namespace.createElement("div",{style:{background:`conic-gradient(from 90deg,${e} 0deg,rgba(11,137,206,0) 360deg)`,height:"100%",width:"100%"}}))),J__namespace.createElement("path",{d:"M-2.014-2.504h45.029v45.029H-2.014z","data-figma-gradient-fill":'{"type":"GRADIENT_ANGULAR","stops":[{"color":{"r":0.043137256056070328,"g":0.53725492954254150,"b":0.80784314870834351,"a":1.0},"position":0.0},{"color":{"r":0.043137256056070328,"g":0.53725492954254150,"b":0.80784314870834351,"a":0.0},"position":1.0}],"stopsVar":[{"color":{"r":0.043137256056070328,"g":0.53725492954254150,"b":0.80784314870834351,"a":1.0},"position":0.0},{"color":{"r":0.043137256056070328,"g":0.53725492954254150,"b":0.80784314870834351,"a":0.0},"position":1.0}],"transform":{"m00":2.7572048986947324e-15,"m01":-45.028572082519531,"m02":43.014411926269531,"m10":45.028572082519531,"m11":2.7572048986947324e-15,"m12":-2.503906250},"opacity":1.0,"blendMode":"NORMAL","visible":true}'}),J__namespace.createElement("circle",{cx:"20.769",cy:"36.538",r:"3.562",fill:e})),J__namespace.createElement("defs",null,J__namespace.createElement("clipPath",{id:"paint0_angular_56449_70362_clip_path"},J__namespace.createElement("path",{d:"M-2.014-2.504h45.029v45.029H-2.014z"}))));function Vo({children:e,className:t,disabled:o,isLoading:r,onClick:n,type:a="button"}){return J__namespace.default.createElement("button",{disabled:o||r,type:a,onClick:s=>{a!=="submit"&&(s.preventDefault(),s.stopPropagation()),n==null||n();},className:U("flex-1 flex items-center border border-primary text-white bg-primary font-bold py-4",t)},e,r&&J__namespace.default.createElement("div",{className:"w-4 h-4 flex items-center justify-center ml-2"},J__namespace.default.createElement(e2,{color:"#fff"})))}function z9({isOpen:e,onClose:t,onConfirm:o,title:r,description:n,illustration:a,isLoading:s}){let{locale:i}=M();return J__namespace.default.createElement(qe,{isLoading:s,closeOnClickOutside:false,hideCloseButton:true,className:"min-w-[31.25rem]",disableFullScreen:true,isOpen:e,onClose:t},J__namespace.default.createElement("div",{className:"w-full flex flex-col items-center gap-y-8"},a&&J__namespace.default.createElement("div",null,a),J__namespace.default.createElement("h2",{className:"text-[2rem] font-bold text-center"},r),J__namespace.default.createElement("p",{className:"text-center text-body-xl text-dark-1"},n),J__namespace.default.createElement("div",{className:"w-full flex gap-x-4"},J__namespace.default.createElement(Vo,{disabled:s,className:"bg-white text-primary border border-primary",onClick:t},he(i,"component.workspace.panel.modal.form.options.delete.button.cancel")),J__namespace.default.createElement(Vo,{disabled:s,onClick:o},he(i,"component.workspace.panel.modal.form.options.delete.button.delete")))))}var B9=hf.gql`
|
|
2
2
|
query GetWorkspaces($options: GetWorkspaceInput) {
|
|
3
3
|
workspaces(options: $options) {
|
|
4
4
|
meta {
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
absolute inset-0 flex items-center justify-center
|
|
134
134
|
text-white text-[12px] font-bold
|
|
135
135
|
${a?"opacity-0":"opacity-100"}
|
|
136
|
-
`},f4(e!=null?e:"")))}function ht(e=""){var o;let t=(o=e==null?void 0:e.trim())==null?void 0:o.split(/\s+/);return t.length===1?t[0]:`${t[0]} ${t[t.length-1]}`}var Tg=()=>{var r,n;let{user:e,locale:t}=M(),o=`/profile/${t}`;return J__namespace.default.createElement("a",{href:o,className:"w-full bg-white p-4 lg:rounded-lg block","aria-label":"Ir para o perfil",onClick:a=>{a.preventDefault(),Ae(),window.location.href=o;}},J__namespace.default.createElement("div",{className:"flex items-center gap-x-4 w-full max-w-[220px] flex-shrink"},J__namespace.default.createElement(ae,{name:e==null?void 0:e.name,src:e==null?void 0:e.avatar,className:"w-12 h-12 cursor-pointer"}),J__namespace.default.createElement("div",{className:"flex items-center gap-x-2 cursor-pointer w-full flex-shrink"},J__namespace.default.createElement("div",{className:"flex flex-col items-start line-clamp-2 flex-shrink"},J__namespace.default.createElement("span",{className:"w-full text-[14px] font-bold text-[#050910] line-clamp-1 flex-shrink truncate"},ht((r=e==null?void 0:e.name)!=null?r:"")),e!=null&&e.headline?J__namespace.default.createElement("span",{className:"w-full text-[12px] text-gray-shade8 line-clamp-1 flex-shrink truncate"},oo((n=e==null?void 0:e.headline)!=null?n:"",30)):null))))};function n3(){let{isMobile:e}=Ne();return J__namespace.default.createElement("div",{className:"lg:flex-1 flex gap-y-2 lg:gap-y-4 flex-col lg:max-w-[22.813rem]"},J__namespace.default.createElement(Tg,null),e&&J__namespace.default.createElement(Ng,null),J__namespace.default.createElement(yg,null),J__namespace.default.createElement(Mg,null),J__namespace.default.createElement(xg,null),J__namespace.default.createElement(Ag,null))}var Dg=()=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},J__namespace.createElement("path",{fill:"#111827",d:"M12.012 14.83c-1.605 0-2.903-1.25-2.903-2.82s1.298-2.83 2.903-2.83 2.871 1.26 2.871 2.83-1.267 2.82-2.871 2.82"}),J__namespace.createElement("path",{fill:"#111827",d:"M21.23 14.37c-.194-.3-.47-.6-.828-.79-.286-.14-.47-.37-.633-.64-.521-.86-.215-1.99.654-2.5a2.027 2.027 0 0 0 .756-2.83l-.685-1.18a2.11 2.11 0 0 0-2.871-.76c-.9.48-2.055.16-2.576-.69-.163-.28-.255-.58-.235-.88.03-.39-.092-.76-.276-1.06A2.15 2.15 0 0 0 12.717 2h-1.44c-.747.02-1.431.42-1.81 1.04-.194.3-.306.67-.286 1.06.02.3-.071.6-.235.88-.521.85-1.676 1.17-2.565.69a2.124 2.124 0 0 0-2.882.76l-.685 1.18c-.582.99-.255 2.26.757 2.83.868.51 1.175 1.64.664 2.5-.174.27-.358.5-.644.64-.347.19-.654.49-.817.79-.379.62-.358 1.4.02 2.05l.705 1.2a2.13 2.13 0 0 0 1.82 1.04c.347 0 .755-.1 1.083-.3.255-.17.562-.23.899-.23 1.012 0 1.86.83 1.88 1.82 0 1.15.94 2.05 2.126 2.05h1.39c1.175 0 2.115-.9 2.115-2.05.03-.99.88-1.82 1.89-1.82.328 0 .634.06.9.23.327.2.726.3 1.084.3.725 0 1.43-.4 1.808-1.04l.716-1.2c.368-.67.398-1.43.02-2.05",opacity:"0.4"}));var Lg=()=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},J__namespace.createElement("path",{fill:"#E03137",d:"M2 6.447C2 3.996 4.03 2 6.525 2h4.96C13.976 2 16 3.99 16 6.437v11.116C16 20.005 13.97 22 11.474 22H6.515C4.025 22 2 20.01 2 17.563V6.447",opacity:"0.4"}),J__namespace.createElement("path",{fill:"#E03137",d:"m21.777 11.454-2.846-2.909a.736.736 0 0 0-1.06.002.785.785 0 0 0 .002 1.09l1.56 1.592H9.546a.76.76 0 0 0-.75.77c0 .426.336.77.75.77h9.885l-1.56 1.593a.785.785 0 0 0-.001 1.09.74.74 0 0 0 .532.226.74.74 0 0 0 .529-.225l2.845-2.908a.783.783 0 0 0 0-1.09"}));function Fg(e,t){let o=e==="dev";return {domain:o?"localhost":t,secure:!o,sameSite:"lax",path:"/"}}var zk="mirantes-logout",M6=null;function zg(){return !M6&&typeof window!="undefined"&&(M6=new BroadcastChannel(zk)),M6}function Bg(e){var t;(t=zg())==null||t.addEventListener("message",o=>{var r;((r=o.data)==null?void 0:r.type)==="LOGOUT"&&e();});}function Og(){var e;(e=zg())==null||e.close();}function Hg(e,t){[void 0,t.domain].forEach(r=>{cookiesNext.deleteCookie(e,F(y({},t),{domain:r,path:"/",sameSite:"lax"}));});}var Ok=["_accessToken","_refreshToken","_userData","_userId","_userSlug","_userStatus","_MIRAId","_loggedAt","_companyId","_isBackOffice","impersonate"];function P6(e,t={}){let{broadcast:o=true,reload:r=true,redirectUrl:n}=t;Ok.forEach(a=>Hg(a,e)),typeof window!="undefined"&&(localStorage.clear(),sessionStorage.clear()),o&&xd(),typeof window!="undefined"&&(n?window.location.href=n:r&&window.location.reload());}function i3(){let{environment:e,mirantesDomain:t}=M(),o=J.useMemo(()=>Fg(e!=null?e:"",t),[e,t]);return J.useEffect(()=>(Bg(()=>{P6(o,{broadcast:false,reload:true});}),()=>Og()),[o]),{handleLogout:J.useCallback(n=>{P6(o,n);},[o])}}function l3({onClose:e}){let{locale:t}=M(),{handleLogout:o}=i3(),[r,n]=J.useState(false);J.useEffect(()=>{n(true);let i=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=i,n(false);}},[]);let a=`/settings/${t}`,s=J__namespace.default.createElement(react.motion.div,{initial:{opacity:0,x:100},animate:{opacity:1,x:0},exit:{opacity:0,x:100},transition:{duration:.3},className:"w-full fixed z-[10000] top-0 flex left-0 min-h-[100dvh] bg-[#F1F5F9]"},J__namespace.default.createElement("div",{className:"w-full flex flex-col gap-y-2 h-[100dvh] pb-6 relative overflow-y-auto"},J__namespace.default.createElement("div",{className:"w-full p-6 flex items-center sticky top-0 z-[10001] bg-[#F1F5F9] justify-between"},J__namespace.default.createElement("div",{className:"flex items-center justify-start gap-x-2"},J__namespace.default.createElement(lucideReact.ChevronLeftIcon,{className:"w-5 h-5",onClick:e}),J__namespace.default.createElement("h4",{className:"text-body-lg font-bold"},Je(t,"explore.card.title"))),J__namespace.default.createElement("button",{className:"!p-0",onClick:e},J__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5"}))),J__namespace.default.createElement(n3,null),J__namespace.default.createElement("div",{className:"w-full bg-white p-4 flex flex-col gap-y-4"},J__namespace.default.createElement("a",{href:a,onClick:i=>{i.preventDefault(),window.location.href=a;},className:"flex items-center w-full justify-between"},J__namespace.default.createElement("div",{className:"flex items-center gap-x-2"},J__namespace.default.createElement(Dg,null),J__namespace.default.createElement("span",{className:"text-body-md font-medium"},Je(t,"explore.settings.title"))),J__namespace.default.createElement(lucideReact.ChevronRightIcon,{className:"w-5 h-5 text-gray-shade8"})),J__namespace.default.createElement("div",{className:"bg-border h-[1px] w-full"}),J__namespace.default.createElement("div",{role:"button",onClick:()=>o({redirectUrl:"/",reload:true}),className:"flex items-center w-full justify-between"},J__namespace.default.createElement("div",{className:"flex items-center gap-x-2"},J__namespace.default.createElement(Lg,null),J__namespace.default.createElement("span",{className:"text-body-md font-medium text-red-shade6"},Je(t,"explore.logout.title"))),J__namespace.default.createElement(lucideReact.ChevronRightIcon,{className:"w-5 h-5 text-gray-shade8"})))));return r?$W.createPortal(s,document.body):null}var S6=r=>{var n=r,{size:e=20,color:t="white"}=n,o=Q(n,["size","color"]);return J__namespace.createElement("svg",y({width:e,height:e*.75,viewBox:"0 0 20 15",fill:"none"},o),J__namespace.createElement("path",{opacity:"0.4",d:"M19.3309 2.44275C18.9119 2.17879 18.3969 2.15544 17.9579 2.37879L16.4759 3.12701C15.9279 3.40316 15.5879 3.96153 15.5879 4.58285V10.4164C15.5879 11.0377 15.9279 11.595 16.4759 11.8732L17.9569 12.6204C18.1579 12.724 18.3729 12.7737 18.5879 12.7737C18.8459 12.7737 19.1019 12.7006 19.3309 12.5575C19.7499 12.2945 19.9999 11.8387 19.9999 11.3392V3.66204C19.9999 3.16255 19.7499 2.70671 19.3309 2.44275Z",fill:t}),J__namespace.createElement("path",{d:"M9.9051 15H4.11304C1.69102 15 0 13.3299 0 10.9391V4.06091C0 1.66904 1.69102 0 4.11304 0H9.9051C12.3271 0 14.0181 1.66904 14.0181 4.06091V10.9391C14.0181 13.3299 12.3271 15 9.9051 15Z",fill:t}))};function Ug({onCreatePost:e,onCreateReel:t,onCreateJob:o}){let {locale:r}=M(),[n,a]=J.useState(false),s=J.useRef(null),i=()=>{console.log("Toggle clicked, current isOpen:",n),a(!n);},l=()=>{console.log("Closing speed dial"),a(false);};[{id:"post",icon:J__namespace.default.createElement(t3,{color:"#fff"}),label:"Criar Post",href:`/create/post/${r}`},{id:"reel",icon:J__namespace.default.createElement(S6,null),label:"Criar Reel",href:`/create/reel/${r}`},{id:"job",icon:J__namespace.default.createElement(x1,{color:"#fff"}),label:"Criar Vaga",href:`/create/job/${r}`}];return J__namespace.default.createElement("div",{ref:s,className:"!absolute"},J__namespace.default.createElement(react.AnimatePresence,null,n&&J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(react.motion.button,{initial:{opacity:0,scale:0,x:0,y:0},animate:{opacity:1,scale:1,x:-50,y:-50},exit:{opacity:0,scale:0,x:0,y:0},transition:{duration:.2,delay:.01,type:"spring",stiffness:100,damping:15},onClick:()=>{e==null||e(),l();},className:"!absolute w-9 h-9 bg-primary rounded-full flex items-center justify-center shadow-lg hover:scale-110 transition-transform z-10"},J__namespace.default.createElement(m1,{color:"#fff",fontSize:18})),J__namespace.default.createElement(react.motion.button,{initial:{opacity:0,scale:0,y:0},animate:{opacity:1,scale:1,y:-60},exit:{opacity:0,scale:0,y:0},transition:{duration:.2,delay:.1,type:"spring",stiffness:100,damping:15},onClick:()=>{t==null||t(),l();},className:"!absolute !-top-[90px] !left-1/2 !-translate-x-1/2 w-9 h-9 bg-primary rounded-full flex items-center justify-center shadow-lg hover:scale-110 transition-transform z-10"},J__namespace.default.createElement(S6,{size:18,color:"#fff"})),J__namespace.default.createElement(react.motion.button,{initial:{opacity:0,scale:0,x:0,y:0},animate:{opacity:1,scale:1,x:60,y:-50},exit:{opacity:0,scale:0,x:0,y:0},transition:{duration:.2,delay:.01,type:"spring",stiffness:100,damping:15},onClick:()=>{o==null||o(),l();},className:"!absolute w-9 h-9 bg-primary text-white rounded-full flex items-center justify-center shadow-lg hover:scale-110 transition-transform z-10"},J__namespace.default.createElement(x1,{color:"#fff",fontSize:18})))),J__namespace.default.createElement(react.motion.button,{onClick:i,className:"w-12 h-12 bg-primary rounded-full flex items-center justify-center "},J__namespace.default.createElement("div",{className:"w-10 h-10 flex rounded-lg items-center justify-center"},J__namespace.default.createElement(m1,{color:"#fff"}))))}function Jk(e){return J__namespace.createElement("svg",y({width:"20px",height:"20px",viewBox:"0 0 21 20",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M1.667 9.232c.042 1.949.158 5.281.175 5.649.06.785.36 1.58.828 2.14.652.785 1.454 1.136 2.574 1.136 1.546.009 3.251.009 4.907.009 1.663 0 3.276 0 4.639-.009 1.103 0 1.93-.36 2.574-1.137.468-.56.769-1.362.811-2.14.017-.309.1-3.926.15-5.648H1.667z",fill:"#737373"}),J__namespace.createElement("path",{d:"M9.371 12.82v1.078a.625.625 0 001.25 0V12.82a.625.625 0 00-1.25 0z",fill:"#737373"}),J__namespace.createElement("path",{d:"M11.072 1.667c1.25 0 2.276.94 2.433 2.15h1.647a3.177 3.177 0 013.173 3.174V9.88c0 .21-.106.406-.28.521-1.718 1.138-3.758 1.895-5.898 2.19a.625.625 0 01-.692-.465A1.504 1.504 0 009.992 11c-.701 0-1.297.454-1.482 1.13a.626.626 0 01-.69.456c-2.125-.297-4.157-1.051-5.872-2.184a.624.624 0 01-.281-.521V6.99a3.18 3.18 0 013.18-3.174h1.64a2.46 2.46 0 012.433-2.15h2.152zM8.92 2.917c-.56 0-1.029.383-1.169.9h4.49c-.14-.517-.609-.9-1.169-.9H8.92z",fill:"#737373"}))}var Xk=J__namespace.memo(Jk),_g=Xk;var A6=zustand.create(e=>({isCreatePostOpen:false,openCreatePost:()=>e({isCreatePostOpen:true}),closeCreatePost:()=>e({isCreatePostOpen:false}),toggleCreatePost:()=>e(t=>({isCreatePostOpen:!t.isCreatePostOpen}))}));var N6=zustand.create(e=>({isCreateReelsOpen:false,openCreateReels:()=>e({isCreateReelsOpen:true}),closeCreateReels:()=>e({isCreateReelsOpen:false}),toggleCreateReels:()=>e(t=>({isCreateReelsOpen:!t.isCreateReelsOpen}))}));var zt=zustand.create((e,t)=>({currentAssets:[],assetsToDelete:[],setCurrentAssets:o=>{e({currentAssets:o});},isCreatingThePost:false,content:"",hashtags:void 0,setHashtags:o=>e({hashtags:o}),mentions:void 0,setMentions:o=>e({mentions:o}),mentionedUsers:void 0,setMentionedUsers:o=>e({mentionedUsers:o}),isUploading:false,selectedFiles:[],uploadedMedia:[],uploadProgress:0,setUploadProgress:o=>e({uploadProgress:o}),isProcessingPost:false,setIsProcessingPost:o=>e({isProcessingPost:o}),progressText:"",setProgressText:o=>e({progressText:o}),setContent:o=>e({content:o}),handleMediaUpload:(o,r=false)=>{o&&(e({isUploading:true}),setTimeout(()=>{r||e(a=>({selectedFiles:[...a.selectedFiles,...Array.from(o)]}));let n=Array.from(o).map(a=>URL.createObjectURL(a));e(a=>({uploadedMedia:[...a.uploadedMedia,...n],isUploading:false}));},1500));},removeMedia:o=>{e(r=>({selectedFiles:r.selectedFiles.filter((n,a)=>a!==o)})),e(r=>({uploadedMedia:r.uploadedMedia.filter((n,a)=>a!==o)})),e(r=>{let n=r.currentAssets[o];return {currentAssets:r.currentAssets.filter((a,s)=>s!==o),assetsToDelete:[...r.assetsToDelete,n]}});},replaceMedia:(o,r)=>{e(n=>{let a=n.currentAssets[o],s=a?[...n.assetsToDelete,a]:n.assetsToDelete,i=n.uploadedMedia[o];i!=null&&i.startsWith("blob:")&&URL.revokeObjectURL(i);let l=URL.createObjectURL(r),d=[...n.selectedFiles];o<d.length?d[o]=r:d.push(r);let c=[...n.uploadedMedia];o<c.length?c[o]=l:c.push(l);let p=n.currentAssets.filter((f,u)=>u!==o);return {selectedFiles:d,uploadedMedia:c,currentAssets:p,assetsToDelete:s}});},resetForm:()=>e({content:"",uploadedMedia:[],isUploading:false,selectedFiles:[],currentAssets:[],assetsToDelete:[],mentionedUsers:void 0,hashtags:void 0,uploadProgress:0,isProcessingPost:false,progressText:""}),resetFormContent:()=>e({content:"",uploadedMedia:[],isUploading:false,selectedFiles:[],currentAssets:[],assetsToDelete:[],mentionedUsers:void 0,hashtags:void 0}),get isValid(){return t().content.trim().length>0||t().uploadedMedia.length>0},setIsCreatingThePost:o=>e({isCreatingThePost:o})}));var xo=zustand.create(e=>({isOpen:false,post:void 0,setPost:(t=void 0)=>{e({post:t});},operation:"create",setOperation:(t="create")=>{e({operation:t});},postType:null,initialStep:null,setInitialStep:(t=null)=>{e({initialStep:t});},openModal:(t="text",o=null)=>{e({isOpen:true,postType:t,initialStep:o,operation:"create"}),document.body.style.overflow="hidden";},closeModal:(t=false)=>{e({isOpen:false,postType:null,post:void 0,operation:"create",initialStep:null}),t||(zt.getState().resetForm(),zt.getState().setIsCreatingThePost(false)),document.body.style.overflow="auto";}}));function p3({onCreatePost:e,onCreateReel:t,onCreateJob:o,onJobsClick:r}){let {user:n,locale:a}=M(),[s,i]=Ma("mobile-explore-open",false),l=window.location.pathname;l.split("/")[3];Z4({filter:{name:"",userId:n==null?void 0:n.id},perPage:3,sort:"createdAt",sortDir:"desc"});let {Notification:f}=M(),{openJob:u,isJobOpen:g}=ea(),{openCreatePost:m}=A6(),{openCreateReels:v}=N6(),h=J.useRef(false),b=J.useRef(g),[x,w]=usehooks.useToggle(false),{openModal:C}=xo(),A=n==null?void 0:n.isActive,k=o||u,N=(S,D)=>{if(!A){w(true);return}C(S,D);};return J.useEffect(()=>{if(b.current&&!g){h.current=true;let S=setTimeout(()=>{h.current=false;},300);return ()=>clearTimeout(S)}b.current=g;},[g]),J.useEffect(()=>{let S=()=>{i(true);};return window.addEventListener("openMobileExplore",S),()=>{window.removeEventListener("openMobileExplore",S);}},[]),J.useEffect(()=>{let S=()=>{i(false);};return window.addEventListener("closeExploreCard",S),()=>{window.removeEventListener("closeExploreCard",S);}},[]),J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"w-full z-[100] flex shadow-xl shadow-[#00000010] divide-border lg:hidden bg-white h-[60px] mx-4 rounded-full max-w-[350px] fixed bottom-16 left-[47%] -translate-x-1/2"},J__namespace.default.createElement("div",{className:"flex-1 h-full rounded-l-2xl divide-border overflow-hidden flex"},J__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},J__namespace.default.createElement(v6,{active:true,icon:ag,label:"Feed",href:`/feed/${a}`,isCurrent:l==null?void 0:l.includes("feed")})),J__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},J__namespace.default.createElement(v6,{active:true,icon:J__namespace.default.createElement(_g,null),label:"Jobs",href:`/jobs/${a}`,isCurrent:l==null?void 0:l.includes("jobs"),onClick:S=>{S.preventDefault(),S.stopPropagation(),!h.current&&(g||u());}})),J__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},J__namespace.default.createElement(Ug,{onCreatePost:()=>N("post"),onCreateReel:()=>N("reel"),onCreateJob:k})),J__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},J__namespace.default.createElement("div",{className:"bg-[#FFFFFF1A] w-8 h-8 rounded-full flex-none flex items-center justify-center"},f)),J__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},J__namespace.default.createElement(dg,null)))),J__namespace.default.createElement(react.AnimatePresence,null,s&&J__namespace.default.createElement(l3,{onClose:()=>i(false)})))}function nT(e){return e>=1e15?`${(e/1e15).toFixed(1)}Q`:e>=1e12?`${(e/1e12).toFixed(1)}T`:e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:`${e}`}function m3({label:e,value:t,onClick:o,isLoading:r=false}){return J__namespace.default.createElement("div",{className:"flex items-center justify-between gap-x-4 cursor-pointer hover:opacity-80 transition-all group",onClick:o},J__namespace.default.createElement("span",{className:"text-gray-shade8 text-sm font-normal truncate"},e),J__namespace.default.createElement("div",{className:"relative flex justify-end min-w-[60px]"},r?J__namespace.default.createElement("div",{className:"h-6 w-12 rounded-md bg-gray-200 animate-pulse"}):J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("span",{className:"px-2 py-1 text-body-sm font-medium rounded-md bg-primary/10 text-primary text-right"},nT(t)),J__namespace.default.createElement("span",{className:"absolute hidden group-hover:block -top-8 left-1/2 -translate-x-1/2 px-2 py-1 text-xs bg-gray-800 text-white rounded-md whitespace-nowrap z-10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"},t.toLocaleString()))))}function jg(){return J__namespace.default.createElement("div",{className:"rounded-2xl flex items-stretch gap-x-4 bg-white min-w-[347px] px-6 py-5"},J__namespace.default.createElement("div",{className:"flex items-center gap-x-2"},J__namespace.default.createElement("div",{className:"w-14 h-14 rounded-full bg-gray-shade10 animate-pulse"}),J__namespace.default.createElement("div",{className:"flex flex-col gap-y-3"},J__namespace.default.createElement("div",{className:"w-32 h-2 rounded-full bg-gray-shade10 animate-pulse"}),J__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),J__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}))),J__namespace.default.createElement("div",{className:"w-[1px] bg-border"}),J__namespace.default.createElement("div",{className:"flex flex-col gap-y-2"},J__namespace.default.createElement("div",{className:"w-full flex items-center gap-x-14 justify-between"},J__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),J__namespace.default.createElement("div",{className:"w-8 h-5 rounded-md bg-gray-shade10 animate-pulse"})),J__namespace.default.createElement("div",{className:"w-full flex items-center gap-x-14 justify-between"},J__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),J__namespace.default.createElement("div",{className:"w-8 h-5 rounded-md bg-gray-shade10 animate-pulse"})),J__namespace.default.createElement("div",{className:"w-full flex items-center gap-x-14 justify-between"},J__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),J__namespace.default.createElement("div",{className:"w-8 h-5 rounded-md bg-gray-shade10 animate-pulse"}))))}var ui=zustand.create(e=>({activeTab:"contacts",setActiveTab:t=>e({activeTab:t})}));var qg={"tabs.contacts":"Contacts","tabs.followers":"Followers","tabs.following":"Following","actions.follow":"Follow","actions.unfollow":"Unfollow","actions.turn-into-contact":"Turn into contact","actions.remove-from-contacts":"Remove from contacts","actions.contacts":"Contact","actions.message":"Message","no-contacts":"No contacts found","no-followers":"No followers found","no-following":"No following found"};var Wg={"tabs.contacts":"Contacts","tabs.followers":"Followers","tabs.following":"Following","actions.follow":"Suivre","actions.unfollow":"Ne plus suivre","actions.turn-into-contact":"Passer en contact","actions.remove-from-contacts":"Supprimer des contacts","actions.contacts":"Contact","actions.message":"Message","no-contacts":"Aucun contact trouv\xE9","no-followers":"Aucun follower trouv\xE9","no-following":"Aucun following trouv\xE9"};var Qg={"tabs.contacts":"Contatos","tabs.followers":"Seguidores","tabs.following":"Seguindo","actions.follow":"Seguir","actions.unfollow":"Deixar de seguir","actions.turn-into-contact":"Tornar contato","actions.remove-from-contacts":"Remover dos contatos","actions.contacts":"Contato","actions.message":"Mensagem","no-contacts":"Nenhum contato encontrado","no-followers":"Nenhum seguidor encontrado","no-following":"Nenhum seguindo encontrado"};var sT={pt:y({},Qg),en:y({},qg),fr:y({},Wg)};function Fn(e,t){return sT[e][t]}var Kg=`
|
|
136
|
+
`},f4(e!=null?e:"")))}function ht(e=""){var o;let t=(o=e==null?void 0:e.trim())==null?void 0:o.split(/\s+/);return t.length===1?t[0]:`${t[0]} ${t[t.length-1]}`}var Tg=()=>{var r,n;let{user:e,locale:t}=M(),o=`/profile/${t}`;return J__namespace.default.createElement("a",{href:o,className:"w-full bg-white p-4 lg:rounded-lg block","aria-label":"Ir para o perfil",onClick:a=>{a.preventDefault(),Ae(),window.location.href=o;}},J__namespace.default.createElement("div",{className:"flex items-center gap-x-4 w-full max-w-[220px] flex-shrink"},J__namespace.default.createElement(ae,{name:e==null?void 0:e.name,src:e==null?void 0:e.avatar,className:"w-12 h-12 cursor-pointer"}),J__namespace.default.createElement("div",{className:"flex items-center gap-x-2 cursor-pointer w-full flex-shrink"},J__namespace.default.createElement("div",{className:"flex flex-col items-start line-clamp-2 flex-shrink"},J__namespace.default.createElement("span",{className:"w-full text-[14px] font-bold text-[#050910] line-clamp-1 flex-shrink truncate"},ht((r=e==null?void 0:e.name)!=null?r:"")),e!=null&&e.headline?J__namespace.default.createElement("span",{className:"w-full text-[12px] text-gray-shade8 line-clamp-1 flex-shrink truncate"},oo((n=e==null?void 0:e.headline)!=null?n:"",30)):null))))};function n3(){let{isMobile:e}=Ne();return J__namespace.default.createElement("div",{className:"lg:flex-1 flex gap-y-2 lg:gap-y-4 flex-col lg:max-w-[22.813rem]"},J__namespace.default.createElement(Tg,null),e&&J__namespace.default.createElement(Ng,null),J__namespace.default.createElement(yg,null),J__namespace.default.createElement(Mg,null),J__namespace.default.createElement(xg,null),J__namespace.default.createElement(Ag,null))}var Dg=()=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},J__namespace.createElement("path",{fill:"#111827",d:"M12.012 14.83c-1.605 0-2.903-1.25-2.903-2.82s1.298-2.83 2.903-2.83 2.871 1.26 2.871 2.83-1.267 2.82-2.871 2.82"}),J__namespace.createElement("path",{fill:"#111827",d:"M21.23 14.37c-.194-.3-.47-.6-.828-.79-.286-.14-.47-.37-.633-.64-.521-.86-.215-1.99.654-2.5a2.027 2.027 0 0 0 .756-2.83l-.685-1.18a2.11 2.11 0 0 0-2.871-.76c-.9.48-2.055.16-2.576-.69-.163-.28-.255-.58-.235-.88.03-.39-.092-.76-.276-1.06A2.15 2.15 0 0 0 12.717 2h-1.44c-.747.02-1.431.42-1.81 1.04-.194.3-.306.67-.286 1.06.02.3-.071.6-.235.88-.521.85-1.676 1.17-2.565.69a2.124 2.124 0 0 0-2.882.76l-.685 1.18c-.582.99-.255 2.26.757 2.83.868.51 1.175 1.64.664 2.5-.174.27-.358.5-.644.64-.347.19-.654.49-.817.79-.379.62-.358 1.4.02 2.05l.705 1.2a2.13 2.13 0 0 0 1.82 1.04c.347 0 .755-.1 1.083-.3.255-.17.562-.23.899-.23 1.012 0 1.86.83 1.88 1.82 0 1.15.94 2.05 2.126 2.05h1.39c1.175 0 2.115-.9 2.115-2.05.03-.99.88-1.82 1.89-1.82.328 0 .634.06.9.23.327.2.726.3 1.084.3.725 0 1.43-.4 1.808-1.04l.716-1.2c.368-.67.398-1.43.02-2.05",opacity:"0.4"}));var Lg=()=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},J__namespace.createElement("path",{fill:"#E03137",d:"M2 6.447C2 3.996 4.03 2 6.525 2h4.96C13.976 2 16 3.99 16 6.437v11.116C16 20.005 13.97 22 11.474 22H6.515C4.025 22 2 20.01 2 17.563V6.447",opacity:"0.4"}),J__namespace.createElement("path",{fill:"#E03137",d:"m21.777 11.454-2.846-2.909a.736.736 0 0 0-1.06.002.785.785 0 0 0 .002 1.09l1.56 1.592H9.546a.76.76 0 0 0-.75.77c0 .426.336.77.75.77h9.885l-1.56 1.593a.785.785 0 0 0-.001 1.09.74.74 0 0 0 .532.226.74.74 0 0 0 .529-.225l2.845-2.908a.783.783 0 0 0 0-1.09"}));function Fg(e,t){let o=e==="dev";return {domain:o?"localhost":t,secure:!o,sameSite:"lax",path:"/"}}var zk="mirantes-logout",M6=null;function zg(){return !M6&&typeof window!="undefined"&&(M6=new BroadcastChannel(zk)),M6}function Bg(e){var t;(t=zg())==null||t.addEventListener("message",o=>{var r;((r=o.data)==null?void 0:r.type)==="LOGOUT"&&e();});}function Og(){var e;(e=zg())==null||e.close();}function Hg(e,t){[void 0,t.domain].forEach(r=>{cookiesNext.deleteCookie(e,F(y({},t),{domain:r,path:"/",sameSite:"lax"}));});}var Ok=["_accessToken","_refreshToken","_userData","_userId","_userSlug","_userStatus","_MIRAId","_loggedAt","_companyId","_isBackOffice","impersonate"];function P6(e,t={}){let{broadcast:o=true,reload:r=true,redirectUrl:n}=t;Ok.forEach(a=>Hg(a,e)),typeof window!="undefined"&&(localStorage.clear(),sessionStorage.clear()),o&&xd(),typeof window!="undefined"&&(n?window.location.href=n:r&&window.location.reload());}function i3(){let{environment:e,mirantesDomain:t}=M(),o=J.useMemo(()=>Fg(e!=null?e:"",t),[e,t]);return J.useEffect(()=>(Bg(()=>{P6(o,{broadcast:false,reload:true});}),()=>Og()),[o]),{handleLogout:J.useCallback(n=>{P6(o,n);},[o])}}function l3({onClose:e}){let{locale:t}=M(),{handleLogout:o}=i3(),[r,n]=J.useState(false);J.useEffect(()=>{n(true);let i=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=i,n(false);}},[]);let a=`/settings/${t}`,s=J__namespace.default.createElement(react.motion.div,{initial:{opacity:0,x:100},animate:{opacity:1,x:0},exit:{opacity:0,x:100},transition:{duration:.3},className:"w-full fixed z-[10000] top-0 flex left-0 min-h-[100dvh] bg-[#F1F5F9]"},J__namespace.default.createElement("div",{className:"w-full flex flex-col gap-y-2 h-[100dvh] pb-6 relative overflow-y-auto"},J__namespace.default.createElement("div",{className:"w-full p-6 flex items-center sticky top-0 z-[10001] bg-[#F1F5F9] justify-between"},J__namespace.default.createElement("div",{className:"flex items-center justify-start gap-x-2"},J__namespace.default.createElement(lucideReact.ChevronLeftIcon,{className:"w-5 h-5",onClick:e}),J__namespace.default.createElement("h4",{className:"text-body-lg font-bold"},Je(t,"explore.card.title"))),J__namespace.default.createElement("button",{className:"!p-0",onClick:e},J__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5"}))),J__namespace.default.createElement(n3,null),J__namespace.default.createElement("div",{className:"w-full bg-white p-4 flex flex-col gap-y-4"},J__namespace.default.createElement("a",{href:a,onClick:i=>{i.preventDefault(),window.location.href=a;},className:"flex items-center w-full justify-between"},J__namespace.default.createElement("div",{className:"flex items-center gap-x-2"},J__namespace.default.createElement(Dg,null),J__namespace.default.createElement("span",{className:"text-body-md font-medium"},Je(t,"explore.settings.title"))),J__namespace.default.createElement(lucideReact.ChevronRightIcon,{className:"w-5 h-5 text-gray-shade8"})),J__namespace.default.createElement("div",{className:"bg-border h-[1px] w-full"}),J__namespace.default.createElement("div",{role:"button",onClick:()=>o({redirectUrl:"/",reload:true}),className:"flex items-center w-full justify-between"},J__namespace.default.createElement("div",{className:"flex items-center gap-x-2"},J__namespace.default.createElement(Lg,null),J__namespace.default.createElement("span",{className:"text-body-md font-medium text-red-shade6"},Je(t,"explore.logout.title"))),J__namespace.default.createElement(lucideReact.ChevronRightIcon,{className:"w-5 h-5 text-gray-shade8"})))));return r?RW.createPortal(s,document.body):null}var S6=r=>{var n=r,{size:e=20,color:t="white"}=n,o=Q(n,["size","color"]);return J__namespace.createElement("svg",y({width:e,height:e*.75,viewBox:"0 0 20 15",fill:"none"},o),J__namespace.createElement("path",{opacity:"0.4",d:"M19.3309 2.44275C18.9119 2.17879 18.3969 2.15544 17.9579 2.37879L16.4759 3.12701C15.9279 3.40316 15.5879 3.96153 15.5879 4.58285V10.4164C15.5879 11.0377 15.9279 11.595 16.4759 11.8732L17.9569 12.6204C18.1579 12.724 18.3729 12.7737 18.5879 12.7737C18.8459 12.7737 19.1019 12.7006 19.3309 12.5575C19.7499 12.2945 19.9999 11.8387 19.9999 11.3392V3.66204C19.9999 3.16255 19.7499 2.70671 19.3309 2.44275Z",fill:t}),J__namespace.createElement("path",{d:"M9.9051 15H4.11304C1.69102 15 0 13.3299 0 10.9391V4.06091C0 1.66904 1.69102 0 4.11304 0H9.9051C12.3271 0 14.0181 1.66904 14.0181 4.06091V10.9391C14.0181 13.3299 12.3271 15 9.9051 15Z",fill:t}))};function Ug({onCreatePost:e,onCreateReel:t,onCreateJob:o}){let {locale:r}=M(),[n,a]=J.useState(false),s=J.useRef(null),i=()=>{console.log("Toggle clicked, current isOpen:",n),a(!n);},l=()=>{console.log("Closing speed dial"),a(false);};[{id:"post",icon:J__namespace.default.createElement(t3,{color:"#fff"}),label:"Criar Post",href:`/create/post/${r}`},{id:"reel",icon:J__namespace.default.createElement(S6,null),label:"Criar Reel",href:`/create/reel/${r}`},{id:"job",icon:J__namespace.default.createElement(x1,{color:"#fff"}),label:"Criar Vaga",href:`/create/job/${r}`}];return J__namespace.default.createElement("div",{ref:s,className:"!absolute"},J__namespace.default.createElement(react.AnimatePresence,null,n&&J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(react.motion.button,{initial:{opacity:0,scale:0,x:0,y:0},animate:{opacity:1,scale:1,x:-50,y:-50},exit:{opacity:0,scale:0,x:0,y:0},transition:{duration:.2,delay:.01,type:"spring",stiffness:100,damping:15},onClick:()=>{e==null||e(),l();},className:"!absolute w-9 h-9 bg-primary rounded-full flex items-center justify-center shadow-lg hover:scale-110 transition-transform z-10"},J__namespace.default.createElement(m1,{color:"#fff",fontSize:18})),J__namespace.default.createElement(react.motion.button,{initial:{opacity:0,scale:0,y:0},animate:{opacity:1,scale:1,y:-60},exit:{opacity:0,scale:0,y:0},transition:{duration:.2,delay:.1,type:"spring",stiffness:100,damping:15},onClick:()=>{t==null||t(),l();},className:"!absolute !-top-[90px] !left-1/2 !-translate-x-1/2 w-9 h-9 bg-primary rounded-full flex items-center justify-center shadow-lg hover:scale-110 transition-transform z-10"},J__namespace.default.createElement(S6,{size:18,color:"#fff"})),J__namespace.default.createElement(react.motion.button,{initial:{opacity:0,scale:0,x:0,y:0},animate:{opacity:1,scale:1,x:60,y:-50},exit:{opacity:0,scale:0,x:0,y:0},transition:{duration:.2,delay:.01,type:"spring",stiffness:100,damping:15},onClick:()=>{o==null||o(),l();},className:"!absolute w-9 h-9 bg-primary text-white rounded-full flex items-center justify-center shadow-lg hover:scale-110 transition-transform z-10"},J__namespace.default.createElement(x1,{color:"#fff",fontSize:18})))),J__namespace.default.createElement(react.motion.button,{onClick:i,className:"w-12 h-12 bg-primary rounded-full flex items-center justify-center "},J__namespace.default.createElement("div",{className:"w-10 h-10 flex rounded-lg items-center justify-center"},J__namespace.default.createElement(m1,{color:"#fff"}))))}function Jk(e){return J__namespace.createElement("svg",y({width:"20px",height:"20px",viewBox:"0 0 21 20",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M1.667 9.232c.042 1.949.158 5.281.175 5.649.06.785.36 1.58.828 2.14.652.785 1.454 1.136 2.574 1.136 1.546.009 3.251.009 4.907.009 1.663 0 3.276 0 4.639-.009 1.103 0 1.93-.36 2.574-1.137.468-.56.769-1.362.811-2.14.017-.309.1-3.926.15-5.648H1.667z",fill:"#737373"}),J__namespace.createElement("path",{d:"M9.371 12.82v1.078a.625.625 0 001.25 0V12.82a.625.625 0 00-1.25 0z",fill:"#737373"}),J__namespace.createElement("path",{d:"M11.072 1.667c1.25 0 2.276.94 2.433 2.15h1.647a3.177 3.177 0 013.173 3.174V9.88c0 .21-.106.406-.28.521-1.718 1.138-3.758 1.895-5.898 2.19a.625.625 0 01-.692-.465A1.504 1.504 0 009.992 11c-.701 0-1.297.454-1.482 1.13a.626.626 0 01-.69.456c-2.125-.297-4.157-1.051-5.872-2.184a.624.624 0 01-.281-.521V6.99a3.18 3.18 0 013.18-3.174h1.64a2.46 2.46 0 012.433-2.15h2.152zM8.92 2.917c-.56 0-1.029.383-1.169.9h4.49c-.14-.517-.609-.9-1.169-.9H8.92z",fill:"#737373"}))}var Xk=J__namespace.memo(Jk),_g=Xk;var A6=zustand.create(e=>({isCreatePostOpen:false,openCreatePost:()=>e({isCreatePostOpen:true}),closeCreatePost:()=>e({isCreatePostOpen:false}),toggleCreatePost:()=>e(t=>({isCreatePostOpen:!t.isCreatePostOpen}))}));var N6=zustand.create(e=>({isCreateReelsOpen:false,openCreateReels:()=>e({isCreateReelsOpen:true}),closeCreateReels:()=>e({isCreateReelsOpen:false}),toggleCreateReels:()=>e(t=>({isCreateReelsOpen:!t.isCreateReelsOpen}))}));var zt=zustand.create((e,t)=>({currentAssets:[],assetsToDelete:[],setCurrentAssets:o=>{e({currentAssets:o});},isCreatingThePost:false,content:"",hashtags:void 0,setHashtags:o=>e({hashtags:o}),mentions:void 0,setMentions:o=>e({mentions:o}),mentionedUsers:void 0,setMentionedUsers:o=>e({mentionedUsers:o}),isUploading:false,selectedFiles:[],uploadedMedia:[],uploadProgress:0,setUploadProgress:o=>e({uploadProgress:o}),isProcessingPost:false,setIsProcessingPost:o=>e({isProcessingPost:o}),progressText:"",setProgressText:o=>e({progressText:o}),setContent:o=>e({content:o}),handleMediaUpload:(o,r=false)=>{o&&(e({isUploading:true}),setTimeout(()=>{r||e(a=>({selectedFiles:[...a.selectedFiles,...Array.from(o)]}));let n=Array.from(o).map(a=>URL.createObjectURL(a));e(a=>({uploadedMedia:[...a.uploadedMedia,...n],isUploading:false}));},1500));},removeMedia:o=>{e(r=>({selectedFiles:r.selectedFiles.filter((n,a)=>a!==o)})),e(r=>({uploadedMedia:r.uploadedMedia.filter((n,a)=>a!==o)})),e(r=>{let n=r.currentAssets[o];return {currentAssets:r.currentAssets.filter((a,s)=>s!==o),assetsToDelete:[...r.assetsToDelete,n]}});},replaceMedia:(o,r)=>{e(n=>{let a=n.currentAssets[o],s=a?[...n.assetsToDelete,a]:n.assetsToDelete,i=n.uploadedMedia[o];i!=null&&i.startsWith("blob:")&&URL.revokeObjectURL(i);let l=URL.createObjectURL(r),d=[...n.selectedFiles];o<d.length?d[o]=r:d.push(r);let c=[...n.uploadedMedia];o<c.length?c[o]=l:c.push(l);let p=n.currentAssets.filter((f,u)=>u!==o);return {selectedFiles:d,uploadedMedia:c,currentAssets:p,assetsToDelete:s}});},resetForm:()=>e({content:"",uploadedMedia:[],isUploading:false,selectedFiles:[],currentAssets:[],assetsToDelete:[],mentionedUsers:void 0,hashtags:void 0,uploadProgress:0,isProcessingPost:false,progressText:""}),resetFormContent:()=>e({content:"",uploadedMedia:[],isUploading:false,selectedFiles:[],currentAssets:[],assetsToDelete:[],mentionedUsers:void 0,hashtags:void 0}),get isValid(){return t().content.trim().length>0||t().uploadedMedia.length>0},setIsCreatingThePost:o=>e({isCreatingThePost:o})}));var xo=zustand.create(e=>({isOpen:false,post:void 0,setPost:(t=void 0)=>{e({post:t});},operation:"create",setOperation:(t="create")=>{e({operation:t});},postType:null,initialStep:null,setInitialStep:(t=null)=>{e({initialStep:t});},openModal:(t="text",o=null)=>{e({isOpen:true,postType:t,initialStep:o,operation:"create"}),document.body.style.overflow="hidden";},closeModal:(t=false)=>{e({isOpen:false,postType:null,post:void 0,operation:"create",initialStep:null}),t||(zt.getState().resetForm(),zt.getState().setIsCreatingThePost(false)),document.body.style.overflow="auto";}}));function p3({onCreatePost:e,onCreateReel:t,onCreateJob:o,onJobsClick:r}){let {user:n,locale:a}=M(),[s,i]=Ma("mobile-explore-open",false),l=window.location.pathname;l.split("/")[3];Z4({filter:{name:"",userId:n==null?void 0:n.id},perPage:3,sort:"createdAt",sortDir:"desc"});let {Notification:f}=M(),{openJob:u,isJobOpen:g}=ea(),{openCreatePost:m}=A6(),{openCreateReels:v}=N6(),h=J.useRef(false),b=J.useRef(g),[x,w]=usehooks.useToggle(false),{openModal:C}=xo(),A=n==null?void 0:n.isActive,k=o||u,N=(S,D)=>{if(!A){w(true);return}C(S,D);};return J.useEffect(()=>{if(b.current&&!g){h.current=true;let S=setTimeout(()=>{h.current=false;},300);return ()=>clearTimeout(S)}b.current=g;},[g]),J.useEffect(()=>{let S=()=>{i(true);};return window.addEventListener("openMobileExplore",S),()=>{window.removeEventListener("openMobileExplore",S);}},[]),J.useEffect(()=>{let S=()=>{i(false);};return window.addEventListener("closeExploreCard",S),()=>{window.removeEventListener("closeExploreCard",S);}},[]),J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"w-full z-[100] flex shadow-xl shadow-[#00000010] divide-border lg:hidden bg-white h-[60px] mx-4 rounded-full max-w-[350px] fixed bottom-16 left-[47%] -translate-x-1/2"},J__namespace.default.createElement("div",{className:"flex-1 h-full rounded-l-2xl divide-border overflow-hidden flex"},J__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},J__namespace.default.createElement(v6,{active:true,icon:ag,label:"Feed",href:`/feed/${a}`,isCurrent:l==null?void 0:l.includes("feed")})),J__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},J__namespace.default.createElement(v6,{active:true,icon:J__namespace.default.createElement(_g,null),label:"Jobs",href:`/jobs/${a}`,isCurrent:l==null?void 0:l.includes("jobs"),onClick:S=>{S.preventDefault(),S.stopPropagation(),!h.current&&(g||u());}})),J__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},J__namespace.default.createElement(Ug,{onCreatePost:()=>N("post"),onCreateReel:()=>N("reel"),onCreateJob:k})),J__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},J__namespace.default.createElement("div",{className:"bg-[#FFFFFF1A] w-8 h-8 rounded-full flex-none flex items-center justify-center"},f)),J__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},J__namespace.default.createElement(dg,null)))),J__namespace.default.createElement(react.AnimatePresence,null,s&&J__namespace.default.createElement(l3,{onClose:()=>i(false)})))}function nT(e){return e>=1e15?`${(e/1e15).toFixed(1)}Q`:e>=1e12?`${(e/1e12).toFixed(1)}T`:e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:`${e}`}function m3({label:e,value:t,onClick:o,isLoading:r=false}){return J__namespace.default.createElement("div",{className:"flex items-center justify-between gap-x-4 cursor-pointer hover:opacity-80 transition-all group",onClick:o},J__namespace.default.createElement("span",{className:"text-gray-shade8 text-sm font-normal truncate"},e),J__namespace.default.createElement("div",{className:"relative flex justify-end min-w-[60px]"},r?J__namespace.default.createElement("div",{className:"h-6 w-12 rounded-md bg-gray-200 animate-pulse"}):J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("span",{className:"px-2 py-1 text-body-sm font-medium rounded-md bg-primary/10 text-primary text-right"},nT(t)),J__namespace.default.createElement("span",{className:"absolute hidden group-hover:block -top-8 left-1/2 -translate-x-1/2 px-2 py-1 text-xs bg-gray-800 text-white rounded-md whitespace-nowrap z-10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"},t.toLocaleString()))))}function jg(){return J__namespace.default.createElement("div",{className:"rounded-2xl flex items-stretch gap-x-4 bg-white min-w-[347px] px-6 py-5"},J__namespace.default.createElement("div",{className:"flex items-center gap-x-2"},J__namespace.default.createElement("div",{className:"w-14 h-14 rounded-full bg-gray-shade10 animate-pulse"}),J__namespace.default.createElement("div",{className:"flex flex-col gap-y-3"},J__namespace.default.createElement("div",{className:"w-32 h-2 rounded-full bg-gray-shade10 animate-pulse"}),J__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),J__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}))),J__namespace.default.createElement("div",{className:"w-[1px] bg-border"}),J__namespace.default.createElement("div",{className:"flex flex-col gap-y-2"},J__namespace.default.createElement("div",{className:"w-full flex items-center gap-x-14 justify-between"},J__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),J__namespace.default.createElement("div",{className:"w-8 h-5 rounded-md bg-gray-shade10 animate-pulse"})),J__namespace.default.createElement("div",{className:"w-full flex items-center gap-x-14 justify-between"},J__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),J__namespace.default.createElement("div",{className:"w-8 h-5 rounded-md bg-gray-shade10 animate-pulse"})),J__namespace.default.createElement("div",{className:"w-full flex items-center gap-x-14 justify-between"},J__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),J__namespace.default.createElement("div",{className:"w-8 h-5 rounded-md bg-gray-shade10 animate-pulse"}))))}var ui=zustand.create(e=>({activeTab:"contacts",setActiveTab:t=>e({activeTab:t})}));var qg={"tabs.contacts":"Contacts","tabs.followers":"Followers","tabs.following":"Following","actions.follow":"Follow","actions.unfollow":"Unfollow","actions.turn-into-contact":"Turn into contact","actions.remove-from-contacts":"Remove from contacts","actions.contacts":"Contact","actions.message":"Message","no-contacts":"No contacts found","no-followers":"No followers found","no-following":"No following found"};var Wg={"tabs.contacts":"Contacts","tabs.followers":"Followers","tabs.following":"Following","actions.follow":"Suivre","actions.unfollow":"Ne plus suivre","actions.turn-into-contact":"Passer en contact","actions.remove-from-contacts":"Supprimer des contacts","actions.contacts":"Contact","actions.message":"Message","no-contacts":"Aucun contact trouv\xE9","no-followers":"Aucun follower trouv\xE9","no-following":"Aucun following trouv\xE9"};var Qg={"tabs.contacts":"Contatos","tabs.followers":"Seguidores","tabs.following":"Seguindo","actions.follow":"Seguir","actions.unfollow":"Deixar de seguir","actions.turn-into-contact":"Tornar contato","actions.remove-from-contacts":"Remover dos contatos","actions.contacts":"Contato","actions.message":"Mensagem","no-contacts":"Nenhum contato encontrado","no-followers":"Nenhum seguidor encontrado","no-following":"Nenhum seguindo encontrado"};var sT={pt:y({},Qg),en:y({},qg),fr:y({},Wg)};function Fn(e,t){return sT[e][t]}var Kg=`
|
|
137
137
|
id
|
|
138
138
|
name
|
|
139
139
|
slug
|
|
@@ -638,7 +638,7 @@
|
|
|
638
638
|
`;function jx(r){return j(this,arguments,function*({createMessageInput:e,chatApiUrl:t,accessToken:o}){return yield hf__default.default(t,Vx,{createMessageInput:e},o?{"x-access-token":o}:{})})}var qx=()=>{let{errorToast:e,successToast:t}=tt(),{chatApiUrl:o,user:r,locale:n}=M(),{mutate:a,isPending:s}=ge({mutationFn:({conversationId:i,postId:l})=>{var d;return jx({chatApiUrl:o!=null?o:"",createMessageInput:{body:l!=null?l:"",conversationId:i!=null?i:""},accessToken:(d=r==null?void 0:r.accessToken)!=null?d:""})},onError(){e({title:O(n,"send-to-chat"),message:O(n,"send-to-chat-error")});},onSuccess(){t({title:O(n,"send-to-chat"),message:O(n,"send-to-chat-success")});}});return {sendMessageIntoChat:a,isSendingMessageIntoChat:s}},Ep=()=>{let{sendMessage:e}=Qo(),{user:t,queryClient:o}=M(),{selectedChat:r,chatHeaderOption:n,onSelectChat:a,onSelectChatHeaderOption:s}=ce(),i=["messages",r==null?void 0:r.conversationId],{mutate:l,isPending:d}=ge({mutationFn:p=>j(void 0,[p],function*({createMessageInput:c}){let f=F(y({},c),{senderId:t==null?void 0:t.id,participants:[t==null?void 0:t.id].filter(Boolean)});return e(f)}),onMutate({createMessageInput:c}){let p={conversationId:r==null?void 0:r.conversationId,body:c==null?void 0:c.body,senderId:t==null?void 0:t.id,createdAt:new Date,updatedAt:new Date};B3({conversationId:r==null?void 0:r.conversationId,message:p}),z3({conversationId:r==null?void 0:r.conversationId,chatHeaderOption:n,userId:t==null?void 0:t.id,message:p});},onError(){o==null||o.invalidateQueries({queryKey:i}),o==null||o.invalidateQueries({queryKey:["conversations",t==null?void 0:t.id,n]});},onSuccess(){o==null||o.invalidateQueries({queryKey:i}),o==null||o.invalidateQueries({queryKey:["conversations",t==null?void 0:t.id,n]}),s==null||s("filter-all"),a==null||a(r);}});return {sendMessage:l,isSendingAMessage:d}};var rH=e=>e.type.startsWith("image/")?e.type==="image/gif"?"gif":"image":e.type.startsWith("video/")?"video":"file";function Qx(){let{uploadMultipleFiles:e}=B2(),{onSelectChat:t,draftMessages:o,setDraftMessage:r,replyMessage:n,setReplyMessage:a,addTemporaryMessage:s,removeTemporaryMessage:i}=ce(),{conversationExists:l}=ja(),{createANewConversation:d}=vp(),{sendMessage:c}=Ep(),{locale:p}=M(),[f,u]=J.useState([]),[g,m]=J.useState(false),v=ce(I=>I.selectedChat),h=(v==null?void 0:v.conversationId)||(v!=null&&v.id?`temp-${v.id}`:null),b=h&&o[h]||"",x=I=>{h&&r(h,I);},w=(I,P)=>{let S=I instanceof File?I:new File([I],"audio-message.webm",{type:"audio/webm"}),D={file:S,type:P,previewUrl:P==="media"||P==="audio"?URL.createObjectURL(S):void 0};u(T=>[...T,D]);},C=I=>{u(P=>P.filter((S,D)=>D!==I));},A=I=>{if(!h)return;let P=((I==null?void 0:I.convertedBody)||b).trim();if(!P&&f.length===0&&!n)return;let S=[];f.length>0&&f.forEach(T=>{let L=T.type==="media"?rH(T.file):T.type,E=`sending.${L}`,B=O(p||"pt",E),W=crypto.randomUUID();S.push(W),s(h,B,L,W);});let D=T=>{let L=E=>{let B={conversationId:T,body:P||void 0,attachments:E,replyMessageId:n==null?void 0:n.id,mentions:I==null?void 0:I.mentions};c({createMessageInput:B}),S.forEach(W=>i(T,W));};f.length>0?e({files:f.map(E=>E.file),path:`chat/${T}`,ownerType:"chat"},{onSuccess(E){let B=E.map((W,q)=>({type:f[q].type,url:W}));L(B);},onError(){S.forEach(E=>i(T,E));}}):L();};if(v!=null&&v.conversationId)D(v.conversationId);else if(l(h))D(h);else {let T=v!=null&&v.id?{id:v.id,name:v.name,avatar:v.avatar}:void 0;if(!(T!=null&&T.id))return;d(T,{onSuccess(L){var B;let E=(B=L==null?void 0:L.createConversation)==null?void 0:B.id;E&&(ce.getState().replaceTempConversationId(h,E),t==null||t(F(y({},v),{conversationId:E})),D(E));}});}x(""),u([]),a==null||a(null);},k=I=>{I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),A());};J.useEffect(()=>()=>{f.forEach(I=>I.previewUrl&&URL.revokeObjectURL(I.previewUrl));},[f]);let N=b.trim().length>0||f.length>0||!!n;return {message:b,attachedFiles:f,isRecording:g,setIsRecording:m,setDraft:x,attachFile:w,removeFile:C,send:A,handleKeyDown:k,hasMessageOrFiles:N,replyMessage:n,setReplyMessage:a}}var Kx=({message:e,onCancel:t})=>{var o;return J__namespace.default.createElement("div",{className:"flex items-center justify-between bg-gray-100 p-2 rounded-l-lg rounded-r-lg mb-1 border-l-4 border-primary"},J__namespace.default.createElement("div",{className:"flex flex-col max-w-[80%] truncate"},J__namespace.default.createElement("span",{className:"text-xs text-gray-600 truncate"},(o=e==null?void 0:e.sender)==null?void 0:o.name),J__namespace.default.createElement("span",{className:"text-sm text-gray-800 truncate"},e!=null&&e.body?jd(e==null?void 0:e.body,100):null)),J__namespace.default.createElement(re,{className:"text-gray-500 hover:text-gray-700 px-1 py-0",onClick:t},"\u2715"))};var Jx=J.lazy(()=>import('emoji-picker-react'));function q2({onSelect:e,showPicker:t,onTogglePicker:o}){let {locale:r}=M(),{isMobile:n}=Ne(),[a,s]=J.useState(false),i=J.useRef(null),l=J.useRef(null),d=t!==void 0?t:a,c=o||s;J.useEffect(()=>{if(!d||n)return;let g=m=>{l.current&&!l.current.contains(m.target)&&i.current&&!i.current.contains(m.target)&&c(false);};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[d,n]);let f=g=>{e(g.emoji),n||c(false);};return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("button",{ref:i,type:"button",onClick:()=>{c(!d);},className:"p-1 rounded-full text-dark-1 hover:bg-gray-100"},J__namespace.default.createElement(lucideReact.Smile,{className:"w-5 h-5"})),!n&&J__namespace.default.createElement(react.AnimatePresence,null,d&&J__namespace.default.createElement(react.motion.div,{ref:l,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.15},className:"absolute bottom-12 right-0 z-50"},J__namespace.default.createElement(J.Suspense,{fallback:J__namespace.default.createElement(Ge,{className:"w-6 h-6 "})},J__namespace.default.createElement(Jx,{searchPlaceHolder:"",onEmojiClick:f,lazyLoadEmojis:true})))),n&&J__namespace.default.createElement(ro,{isOpen:d,onClose:()=>c(false),header:"Emojis"},J__namespace.default.createElement("div",{className:"p-4 w-full"},J__namespace.default.createElement(J.Suspense,{fallback:J__namespace.default.createElement("div",{className:"flex justify-center items-center h-32"},J__namespace.default.createElement(Ge,{className:"w-6 h-6 "}))},J__namespace.default.createElement("div",{className:"w-full max-w-full overflow-hidden"},J__namespace.default.createElement(Jx,{searchPlaceHolder:"",searchPlaceholder:"",onEmojiClick:f,lazyLoadEmojis:true,width:"100%",previewConfig:{showPreview:false},skinTonesDisabled:true}))))))}J.createContext({mentionConfigs:[],addMentionConfig:()=>{},onSubmit:()=>{},onStop:void 0,isStreaming:false,disabled:false,value:void 0,onChange:void 0});core.Extension.create({addKeyboardShortcuts(){return {Enter:()=>{var t,o;let e=(o=(t=this.options).getOnEnter)==null?void 0:o.call(t);return e&&e(),true}}},addOptions(){return {getOnEnter:()=>()=>{}}}});J.forwardRef((e,t)=>{let{items:o,command:r,renderItem:n}=e,[a,s]=J.useState(0),i=J.useRef([]),l=J.useCallback(g=>{let m=o[g];m&&r({id:m.id,label:m.name});},[o,r]),d=J.useCallback(g=>{let m=i.current[g];m&&m.scrollIntoView({behavior:"smooth",block:"nearest"});},[]),c=J.useCallback(()=>{s(g=>{let m=(g+o.length-1)%o.length;return d(m),m});},[o.length,d]),p=J.useCallback(()=>{s(g=>{let m=(g+1)%o.length;return d(m),m});},[o.length,d]),f=J.useCallback(()=>{l(a);},[a,l]);J.useEffect(()=>{s(0),i.current=i.current.slice(0,o.length);},[o]);let u=J.useCallback(g=>g.key==="ArrowUp"?(c(),true):g.key==="ArrowDown"?(p(),true):g.key==="Enter"?(f(),true):false,[c,p,f]);return J.useImperativeHandle(t,()=>({handleKeyDown:u}),[u]),J__namespace.default.createElement("div",{className:"min-w-48 max-w-64 max-h-48 bg-popover text-popover-foreground border border-border rounded-lg shadow-md flex flex-col gap-1 overflow-y-auto p-1"},o.length?o.map((g,m)=>J__namespace.default.createElement(le,{key:g.id,variant:"ghost",size:"sm",className:bt("flex justify-start px-1 py-2 gap-2",a===m&&"bg-accent"),onClick:()=>l(m),ref:v=>{v&&(i.current[m]=v);}},n?n(g,a===m):J__namespace.default.createElement("span",{className:"px-2"},g.name))):J__namespace.default.createElement("div",{className:"text-sm text-muted-foreground px-2 py-1.5"},"No results found"))});function W2({mentions:e,initialValue:t,onSubmit:o}){let[r,n]=J.useState(t!=null?t:{type:"doc",content:[]}),a=J.useMemo(()=>e?Object.values(e):[],[e]),s=J.useMemo(()=>hH(r,a),[r,a]),i=J.useCallback(()=>{n({type:"doc",content:[]});},[]),l=J.useCallback(()=>{s.content.trim().length!==0&&(o&&o(s),i());},[s,o,i]);return y({value:r,onChange:n,parsed:s,clear:i,handleSubmit:l},e?{mentionConfigs:e}:{})}function hH(e,t){let o="",r={};function n(a){var s,i,l;if(a.type==="text"&&a.text)o+=a.text;else if(a.type==="hardBreak")o+=`
|
|
639
639
|
`;else if((s=a.type)!=null&&s.endsWith("-mention")){let d=a.type.slice(0,-8),c=t.find(p=>p.type===d);if(c){let p=(i=a.attrs)!=null?i:{},f=p.id,u=p.label;o+=`<span class="mention mention-${d}" data-type="${d}" data-id="${f}" data-name="${u}" >${c.trigger}${u}</span>`,r[d]||(r[d]=[]);let g=c.items.find(m=>m.id===f);g&&!r[d].some(m=>m.id===f)&&r[d].push(g);}else o+=(l=a.text)!=null?l:"";}else if(a.content){for(let d of a.content)n(d);a.type==="paragraph"&&(o+=`
|
|
640
640
|
|
|
641
|
-
`);}}if(e.content)for(let a of e.content)n(a);return o=o.trim(),y({content:o},r)}function Dp({participants:e,selectedIndex:t,position:o,onSelectParticipant:r}){let{isMobile:n}=Ne();if(e.length===0)return null;let a=J__namespace.default.createElement("div",{"data-mention-dropdown":true,className:n?"fixed bottom-20 left-4 right-4 z-[10001] bg-white border-2 border-gray-300 rounded-xl shadow-2xl max-h-48 overflow-y-auto":"absolute bottom-full mb-2 left-0 z-[10001] bg-white border border-gray-200 rounded-lg shadow-lg max-h-48 overflow-y-auto min-w-[250px] max-w-[300px]"},e.map((s,i)=>J__namespace.default.createElement("div",{key:s.id,className:`flex items-center gap-2 cursor-pointer transition-colors ${n?"p-3":"p-2"} ${i===t?"bg-blue-50 text-primary":"hover:bg-gray-50"}`,onClick:()=>r(s)},J__namespace.default.createElement(ae,{src:s.avatar,name:s.name,className:n?"w-8 h-8":"w-6 h-6"}),J__namespace.default.createElement("span",{className:`${n?"text-base":"text-sm"} font-medium`},s.name))));return n&&typeof window!="undefined"
|
|
641
|
+
`);}}if(e.content)for(let a of e.content)n(a);return o=o.trim(),y({content:o},r)}function Dp({participants:e,selectedIndex:t,position:o,onSelectParticipant:r}){let{isMobile:n}=Ne();if(e.length===0)return null;let a=J__namespace.default.createElement("div",{"data-mention-dropdown":true,className:n?"fixed bottom-20 left-4 right-4 z-[10001] bg-white border-2 border-gray-300 rounded-xl shadow-2xl max-h-48 overflow-y-auto":"absolute bottom-full mb-2 left-0 z-[10001] bg-white border border-gray-200 rounded-lg shadow-lg max-h-48 overflow-y-auto min-w-[250px] max-w-[300px]"},e.map((s,i)=>J__namespace.default.createElement("div",{key:s.id,className:`flex items-center gap-2 cursor-pointer transition-colors ${n?"p-3":"p-2"} ${i===t?"bg-blue-50 text-primary":"hover:bg-gray-50"}`,onClick:()=>r(s)},J__namespace.default.createElement(ae,{src:s.avatar,name:s.name,className:n?"w-8 h-8":"w-6 h-6"}),J__namespace.default.createElement("span",{className:`${n?"text-base":"text-sm"} font-medium`},s.name))));return n&&typeof window!="undefined"?RW.createPortal(a,document.body):a}function Lp({participants:e,shouldUseMentions:t,textAreaRef:o,onInsertMention:r}){Ne();let [a,s]=J.useState(false),[i,l]=J.useState(""),[d,c]=J.useState(0),[p,f]=J.useState({top:0,left:0}),[u,g]=J.useState(-1),m=J.useMemo(()=>i?e.filter(x=>x.name.toLowerCase().includes(i.toLowerCase())).slice(0,5):e.slice(0,5),[e,i]),v=(x,w)=>{if(!t)return;let C=Wb(x,w);C.isMentioning?(l(C.searchTerm),g(C.mentionStart),s(true),c(0)):s(false);},h=(x,w)=>{var I;if(!t||u===-1)return;let C=((I=o.current)==null?void 0:I.selectionStart)||0,A=ap(w),k=P2(A,w,C),N=qb(w,u,x.name,x.id,k,"USER");s(false),g(-1),l(""),r(N.newText,N.newCursorPosition),setTimeout(()=>{let P=o.current;if(P){let S=jb(N.newText,N.newCursorPosition);P.focus(),P.setSelectionRange(S,S);}},10);},b=x=>{if(!a||m.length===0)return false;switch(x.key){case "ArrowDown":return x.preventDefault(),c(w=>w<m.length-1?w+1:0),true;case "ArrowUp":return x.preventDefault(),c(w=>w>0?w-1:m.length-1),true;case "Enter":case "Tab":return x.preventDefault(),"select";case "Escape":return s(false),true;default:return false}};return J.useEffect(()=>{if(!a)return;let x=w=>{var A;let C=w.target;C&&!C.closest("[data-mention-dropdown]")&&!((A=o.current)!=null&&A.contains(C))&&s(false);};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[a,o]),{showMentionDropdown:a,filteredParticipants:m,selectedMentionIndex:d,mentionPosition:p,handleMentionInput:v,insertMention:h,handleKeyNavigation:b,setShowMentionDropdown:s}}function Iu(e,t){return e?e.split(`
|
|
642
642
|
`).flatMap((r,n)=>{let a=[];return n>0&&a.push(J__namespace.default.createElement("br",{key:`${t}-br-${n}`})),a.push(J__namespace.default.createElement("span",{key:`${t}-text-${n}`},r.length>0?r:"\xA0")),a}):[]}var Rd=J.forwardRef((u,f)=>{var g=u,{value:e,onChange:t,onKeyDown:o,onFocus:r,placeholder:n,maxRows:a=8,className:s,inputClassName:i,leftIcon:l,rightIcon:d,onMentionDetected:c}=g,p=Q(g,["value","onChange","onKeyDown","onFocus","placeholder","maxRows","className","inputClassName","leftIcon","rightIcon","onMentionDetected"]);let m=J.useRef(null),v=J.useRef(null),h=J.useRef(null),[b,x]=J.useState(""),[w,C]=J.useState("auto");J__namespace.default.useImperativeHandle(f,()=>m.current),J.useEffect(()=>{let I=ap(e);x(I);},[e]);let A=J.useCallback(()=>{let I=m.current,P=h.current;!I||!P||(P.style.transform=`translate3d(${-I.scrollLeft}px, ${-I.scrollTop}px, 0)`);},[]);J.useEffect(()=>{let I=m.current;if(!I)return;let P=20,S=16;I.style.height="auto";let D=I.scrollHeight,T=a*P+S,L=Math.min(D,T);I.style.height=`${L}px`,C(`${L}px`),A();},[b,a,A]);let k=J.useMemo(()=>{if(!e)return [];let I=np(e);return I.length===0?Iu(b,"plain"):I.flatMap((P,S)=>{let D=`${P.type}-${S}`;switch(P.type){case "mention":return J__namespace.default.createElement("span",{key:D,className:"text-[#0B89CE] font-normal"},P.content);case "hashtag":return J__namespace.default.createElement("span",{key:D,className:"text-[#0B89CE]"},P.content);case "url":return J__namespace.default.createElement("span",{key:D,className:"text-[#0B89CE] underline"},P.content);default:return Iu(P.content,D)}})},[e,b]),N=I=>{let P=I.target.value,S=I.target.selectionStart;if(P!==b)if(P.length>b.length){let D=P.length-b.length,T=0;for(let H=0;H<Math.min(b.length,P.length);H++)if(b[H]!==P[H]){T=H;break}T===0&&b.length>0&&(T=b.length);let L=P2(b,e,T),E=P.substring(T,T+D),B=e.substring(0,L),W=e.substring(L),q=B+E+W,Y=F(y({},I),{target:F(y({},I.target),{value:q,selectionStart:S,selectionEnd:I.target.selectionEnd})});if(t(Y),c){let H=P2(P,q,S);c(q,H);}}else {let D=P,T=/@([\wÀ-ÿ\s]+?)\[uid:([a-zA-Z0-9-]{36})\](?:\[([A-Za-z]+)\])?/g;Array.from(e.matchAll(T)).forEach(B=>{let W=B[0],Y=`@${B[1]}`;P.includes(Y)&&(D=D.replace(Y,W));});let E=F(y({},I),{target:F(y({},I.target),{value:D,selectionStart:S,selectionEnd:I.target.selectionEnd})});if(t(E),c){let B=P2(P,D,S);c(D,B);}}};return J__namespace.default.createElement("div",{ref:v,className:U("flex items-center gap-2 bg-white border border-gray-200 rounded-2xl transition-colors focus-within:ring-0",s)},l&&J__namespace.default.createElement("div",{className:"flex items-center pl-3"},l),J__namespace.default.createElement("div",{className:"flex-1 relative min-h-[40px]"},J__namespace.default.createElement("div",{className:U("pointer-events-none absolute inset-0 w-full h-full overflow-hidden leading-5 px-3 py-2 text-gray-900",i),"aria-hidden":"true"},J__namespace.default.createElement("div",{ref:h,className:"whitespace-pre-wrap break-words"},k.length>0?k:n?J__namespace.default.createElement("span",{className:"text-gray-400"},n):null)),J__namespace.default.createElement("textarea",y({ref:m,value:b,onChange:N,onKeyDown:o,onFocus:r,onScroll:A,placeholder:n,className:U("w-full border-none outline-none resize-none bg-transparent placeholder:text-transparent","scrollbar-thin scrollbar-thumb-gray-300 scrollbar-track-transparent","leading-5 px-3 py-2 text-transparent",i),style:{height:w,minHeight:"40px",maxHeight:`${a*20+16}px`,caretColor:"#111827"}},p))),d&&J__namespace.default.createElement("div",{className:"flex items-center pr-3"},d))});Rd.displayName="MentionAwareTextarea";var ec=e=>{let t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("span.mention.mention-participants").forEach(r=>{var s;let n=r.getAttribute("data-id"),a=r.getAttribute("data-name");if(n&&a){let i=r.getAttribute("data-account-type")||"User",l=document.createTextNode(`@${a}[uid:${n}][${i}]`);(s=r.parentNode)==null||s.replaceChild(l,r);}}),t.textContent||t.innerText||""};var ow=e=>{let t=/@[^\[]+\[uid:([a-f0-9\-]+)\](?:\[[A-Za-z]+\])?/gi,o=[],r;for(;(r=t.exec(e))!==null;)o.push({mentionedId:r[1]});return o};function MH(e){return J__namespace.createElement("svg",y({width:17,height:16,fill:"none"},e),J__namespace.createElement("path",{d:"M5.164 2.668v10.667L13.831 8 5.164 2.668z",fill:"#050910",stroke:"#050910",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))}var PH=J__namespace.memo(MH),rw=PH;function SH(e){return J__namespace.createElement("svg",y({width:17,height:16,fill:"none"},e),J__namespace.createElement("path",{fill:"#050910",stroke:"#050910",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 2.668h3v10.667h-3zM9.5 2.668h3v10.667h-3z"}))}var AH=J__namespace.memo(SH),nw=AH;function K2({src:e}){let t=J.useRef(null),o=J.useRef(null),[r,n]=J.useState(false),[a,s]=J.useState([]),[i,l]=J.useState(0),[d,c]=J.useState(0),[p,f]=J.useState(true),[u,g]=J.useState(void 0);Ne();let v=x=>{let w=Math.floor(x/60).toString().padStart(2,"0"),C=Math.floor(x%60).toString().padStart(2,"0");return `${w}:${C}`};J.useEffect(()=>{let x=()=>{o.current&&g(o.current.offsetWidth);};return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]),J.useEffect(()=>{e&&j(this,null,function*(){try{f(!0);let C=yield (yield fetch(e)).arrayBuffer(),k=yield new(window.AudioContext||window.webkitAudioContext)().decodeAudioData(C),N=64,I=k.getChannelData(0),P=Math.floor(I.length/N)||1,S=[];for(let L=0;L<N;L++){let E=L*P,B=Math.min(E+P,I.length),W=0;for(let Y=E;Y<B;Y++){let H=I[Y];W+=H*H;}let q=Math.sqrt(W/(B-E||1));S.push(q);}let D=Math.max(...S,.01),T=S.map(L=>Math.max(2,L/D*32));s(T);}catch(w){console.error("Erro ao gerar waveform:",w),s(Array.from({length:64},(C,A)=>Math.max(4,Math.sin(A*.5)*16+8)));}finally{f(false);}});},[e]);let h=()=>{t.current&&(r?t.current.pause():t.current.play());},b=x=>{if(!t.current||d===0)return;let w=x.currentTarget.getBoundingClientRect(),k=(x.clientX-w.left)/w.width*d;t.current.currentTime=k,l(k);};return p?J__namespace.default.createElement("div",{className:"flex items-center gap-3"},J__namespace.default.createElement("div",{className:"w-8 h-8 bg-gray-200 rounded-full animate-pulse"}),J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement("div",{className:"w-32 h-6 bg-gray-200 rounded animate-pulse"}))):J__namespace.default.createElement("div",{ref:o,className:"flex flex-col gap-2"},J__namespace.default.createElement("div",{className:"flex items-center gap-3 p-2 border border-gray-200 rounded-lg bg-white"},J__namespace.default.createElement(re,{onClick:h,className:"relative rounded-full w-8 h-8 flex justify-center items-center hover:bg-gray-100 transition-colors",disabled:!a.length},r?J__namespace.default.createElement(nw,null):J__namespace.default.createElement(rw,null)),J__namespace.default.createElement("div",{className:"flex flex-row items-center gap-1 flex-1 min-w-0"},J__namespace.default.createElement("div",{onClick:b,className:"cursor-pointer w-full items-center"},J__namespace.default.createElement(Jd,{levels:a,isPlaying:r,progress:d>0?i/d:0,containerWidth:u,onSeek:x=>{if(t.current&&d>0){let w=x*d;t.current.currentTime=w,l(w);}}})),J__namespace.default.createElement("div",{className:"self-center"},J__namespace.default.createElement("span",{className:"text-xs font-medium text-gray-600"},v(i)))),J__namespace.default.createElement("audio",{ref:t,src:e,preload:"metadata",onLoadedMetadata:()=>{var x;c(((x=t.current)==null?void 0:x.duration)||0),f(false);},onTimeUpdate:()=>{var x;return l(((x=t.current)==null?void 0:x.currentTime)||0)},onPlay:()=>n(true),onPause:()=>n(false),onEnded:()=>{n(false),l(0);},onError:()=>{console.error("Erro ao carregar \xE1udio"),f(false);}})))}function dw(){let {isMobile:e}=Ne(),{replyMessage:t,setReplyMessage:o,selectedChat:r}=ce(),n=J.useRef(null),a=J.useRef(null),s=J.useRef(null),[i,l]=J.useState(false),[d,c]=J.useState(""),p=J.useMemo(()=>r!=null&&r.participants?r.participants.map(H=>{let z=(H==null?void 0:H.user)||H;return !(z!=null&&z.id)||!(z!=null&&z.name)?null:{id:z.id,name:z.name,avatar:z.avatar,slug:z.slug}}).filter(H=>H!==null):[],[r==null?void 0:r.participants]),f=J.useMemo(()=>{if(p.length!==0)return {participants:{type:"participants",trigger:"@",items:p,renderItem:(H,z)=>J__namespace.default.createElement("div",{className:`flex items-center gap-2 p-2 cursor-pointer ${z?"bg-blue-50 text-primary":"hover:bg-gray-50"}`},J__namespace.default.createElement(ae,{src:H.avatar,name:H.name,className:"w-6 h-6"}),J__namespace.default.createElement("span",{className:"text-sm font-medium"},H.name))}}},[p]),{message:u,attachedFiles:g,isRecording:m,setIsRecording:v,setDraft:h,attachFile:b,removeFile:x,send:w,handleKeyDown:C}=Qx(),A=p.length>0&&(r==null?void 0:r.isGroup)===true;W2({mentions:f,onSubmit:H=>{var z;if(H.content){let G=ec(H.content);h(G);let R=((z=H.participants)==null?void 0:z.map(V=>({mentionedId:V.id})))||[];w({mentions:R,convertedBody:G});}}});W2({onSubmit:H=>{H.content&&(h(H.content),w());}});let {showMentionDropdown:P,filteredParticipants:S,selectedMentionIndex:D,mentionPosition:T,handleMentionInput:L,insertMention:E,handleKeyNavigation:B}=Lp({participants:p,shouldUseMentions:A,textAreaRef:n,onInsertMention:(H,z)=>{c(H),h(H);}}),W=()=>{let H=A?d:u;if(A){let z=ow(H);h(H),w({mentions:z,convertedBody:H}),c("");}else w();l(false);},q=A?d.trim().length>0||g.length>0:u.trim().length>0||g.length>0,Y=H=>{let z=H.emoji,G=n.current;if(!G)return;let R=G.selectionStart,V=G.selectionEnd;if(A){let _=d.substring(0,R)+z+d.substring(V),$=_.length>0?_.charAt(0).toUpperCase()+_.slice(1):_;c($),h($);}else {let _=u.substring(0,R)+z+u.substring(V);h(_.length>0?_.charAt(0).toUpperCase()+_.slice(1):_);}requestAnimationFrame(()=>{G.focus(),G.selectionStart=G.selectionEnd=R+z.length;});};return J.useEffect(()=>{if(!i)return;let H=z=>{s.current&&!s.current.contains(z.target)&&a.current&&!a.current.contains(z.target)&&l(false);};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[i]),J__namespace.default.createElement("div",{className:e?"w-full fixed bottom-0 left-0 right-0 z-50 flex flex-col gap-2 bg-white border-t border-[#E4EBF1] px-3 py-2 safe-area-bottom":"w-full flex flex-col gap-2 relative"},t&&J__namespace.default.createElement(Kx,{message:t,onCancel:()=>o==null?void 0:o(null)}),m?J__namespace.default.createElement(Ip,{onCancel:()=>v(false),onSend:H=>{b(H,"audio"),v(false);}}):J__namespace.default.createElement(J__namespace.default.Fragment,null,g.length>0&&J__namespace.default.createElement("div",{className:"flex flex-wrap gap-2 mb-2 max-h-32 overflow-y-auto"},J__namespace.default.createElement(react.AnimatePresence,null,g.map(({file:H,type:z,previewUrl:G},R)=>{let V=z==="media"&&H.type.startsWith("image/"),_=z==="media"&&H.type.startsWith("video/"),$=z==="audio";return J__namespace.default.createElement(react.motion.div,{key:R,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},className:"relative"},V&&G?J__namespace.default.createElement("div",{className:"relative"},J__namespace.default.createElement("img",{src:G,alt:H.name,className:"max-h-[120px] object-contain rounded"}),J__namespace.default.createElement("button",{className:"absolute -top-2 -right-2 w-6 h-6 bg-red-500 text-white rounded-full flex items-center justify-center hover:bg-red-600 transition-colors",onClick:()=>x(R)},"\u2715")):_&&G?J__namespace.default.createElement("div",{className:"relative"},J__namespace.default.createElement("div",{className:"w-24 h-16 bg-black flex items-center justify-center rounded overflow-hidden relative"},J__namespace.default.createElement("video",{src:G,className:"absolute w-full h-full object-cover",muted:true}),J__namespace.default.createElement("div",{className:"absolute inset-0 flex items-center justify-center text-white font-bold bg-black bg-opacity-30"},"\u25B6")),J__namespace.default.createElement("button",{className:"absolute -top-2 -right-2 w-6 h-6 bg-red-500 text-white rounded-full flex items-center justify-center hover:bg-red-600 transition-colors",onClick:()=>x(R)},"\u2715")):$&&G?J__namespace.default.createElement("div",{className:"relative min-w-[280px]"},J__namespace.default.createElement(K2,{src:G}),J__namespace.default.createElement("button",{className:"absolute -top-0 -right-2 w-6 h-6 bg-red-500 text-white rounded-full flex items-center justify-center hover:bg-red-600 transition-colors z-10",onClick:()=>x(R)},"\u2715")):J__namespace.default.createElement("div",{className:"flex items-center gap-2 bg-[#F0F4F8] px-2 py-1 rounded"},J__namespace.default.createElement("div",{className:"flex items-center gap-1 px-2"},"\u{1F4C4}"," ",J__namespace.default.createElement("span",{className:"truncate max-w-[80px]"},H.name)),J__namespace.default.createElement("button",{className:"text-gray-500 hover:text-gray-700",onClick:()=>x(R)},"\u2715")))}))),J__namespace.default.createElement("div",{className:"flex items-end gap-2 w-full"},A?J__namespace.default.createElement(Rd,{ref:n,placeholder:"Digite sua mensagem...",value:d,onChange:H=>{let z=H.target.value,G=z.length>0?z.charAt(0).toUpperCase()+z.slice(1):z;c(G),h(G);},onMentionDetected:L,onKeyDown:H=>{let z=B(H);if(z==="select"){E(S[D],d);return}z||H.key==="Enter"&&!H.shiftKey&&(H.preventDefault(),W());},onFocus:()=>{e&&setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"});},300);},maxRows:8,className:e?"w-full max-h-26 shadow-xs !h-full gap-2 px-3 py-2 rounded-[1.5rem] border border-[#E4EBF1] flex items-center !bg-white flex-1":"w-full max-h-26 shadow-xs !h-full gap-[0.625rem] px-6 py-[1rem] rounded-[1rem] border border-[#E4EBF1] flex items-center !bg-white",inputClassName:"flex-1 w-full !h-auto leading-5 resize-none",leftIcon:J__namespace.default.createElement(U2,{onAttach:b}),rightIcon:J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement(q2,{showPicker:i,onTogglePicker:l,onSelect:Y}),!d.trim()&&J__namespace.default.createElement(_2,{hasMessage:q,onStart:()=>v(true)}),(d.trim()||g.length>0)&&J__namespace.default.createElement(V2,{hasMessage:q,onClick:W}))}):J__namespace.default.createElement(U1,{ref:n,placeholder:"Digite sua mensagem...",value:u,onChange:H=>{let z=H.target.value,G=z.length>0?z.charAt(0).toUpperCase()+z.slice(1):z;h(G);},onKeyDown:C,onFocus:()=>{e&&setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"});},300);},maxRows:8,className:e?"w-full max-h-26 shadow-xs !h-full gap-2 px-3 py-2 rounded-[1.5rem] border border-[#E4EBF1] flex items-center !bg-white flex-1":"w-full max-h-26 shadow-xs !h-full gap-[0.625rem] px-6 py-[1rem] rounded-[1rem] border border-[#E4EBF1] flex items-center !bg-white",inputClassName:"flex-1 w-full !h-auto leading-5 resize-none",leftIcon:J__namespace.default.createElement(U2,{onAttach:b}),rightIcon:J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement(q2,{showPicker:i,onTogglePicker:l,onSelect:Y}),!u.trim()&&J__namespace.default.createElement(_2,{hasMessage:q,onStart:()=>v(true)}),(u.trim()||g.length>0)&&J__namespace.default.createElement(V2,{hasMessage:q,onClick:W}))})),A&&J__namespace.default.createElement(J__namespace.default.Fragment,null,P&&J__namespace.default.createElement(Dp,{participants:S,selectedIndex:D,position:{top:0,left:T.left},onSelectParticipant:H=>E(H,d)}))))}var cw=hf.gql`
|
|
643
643
|
mutation UPDATE_MESSAGE($updateMessageInput:UpdateMessageInput!) {
|
|
644
644
|
updateMessage(updateMessageInput: $updateMessageInput) {
|
|
@@ -884,7 +884,7 @@
|
|
|
884
884
|
conversationId
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
`;function NU(e,t,o){return j(this,null,function*(){try{return yield hf__default.default(e!=null?e:"",AU,{receiverId:o},{"x-access-token":t!=null?t:""})}catch(r){throw r}})}function Yp(e){var a;let{user:t,chatApiUrl:o}=M(),{data:r,isLoading:n}=Ve({queryKey:["existing-conversation",t==null?void 0:t.id,e],queryFn:()=>NU(o,t==null?void 0:t.accessToken,e)});return {conversationId:(a=r==null?void 0:r.checkExistingConversation)==null?void 0:a.conversationId,isCheckingConversation:n}}function us({user:e,page:t,icon:o,label:r,className:n,disabled:a=false,onClick:s,isSharing:i=false,link:l}){var N,I,P;let[d,c]=usehooks.useToggle(false),{isMobile:p}=Ne(),{onSelectChat:f}=ce(),{locale:u,user:g}=M(),m=J.useMemo(()=>t!=null?t:e,[t,e]),v=J.useMemo(()=>{var S;return (S=t==null?void 0:t.id)!=null?S:e==null?void 0:e.id},[t==null?void 0:t.id,e==null?void 0:e.id]),{conversationId:h,isCheckingConversation:b}=Yp(v),x=(m==null?void 0:m.id)&&(m==null?void 0:m.name),w=J.useCallback(()=>{if(g&&!g.isActive){c(true);return}i?(()=>{var L,E;if(!x||!l)return;let T=`Ol\xE1 ${m==null?void 0:m.name}! Vi este post interessante e gostaria de compartilh\xE1-lo com voc\xEA: ${l}`;f==null||f({avatar:(E=(L=m==null?void 0:m.avatar)!=null?L:m==null?void 0:m.logo)!=null?E:m==null?void 0:m.image,name:m==null?void 0:m.name,id:m==null?void 0:m.id,conversationId:h}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("toggleMessages",{detail:{isVisible:true,conversationId:h,prefilledMessage:T}}));},500);})():(()=>{var T,L;x&&(f==null||f({avatar:(L=(T=m==null?void 0:m.avatar)!=null?T:m==null?void 0:m.logo)!=null?L:m==null?void 0:m.image,name:m==null?void 0:m.name,id:m==null?void 0:m.id,conversationId:h}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("toggleMessages",{detail:{isVisible:true,conversationId:h}}));},500));})(),typeof s=="function"&&setTimeout(()=>{s();},300);},[g,c,i,x,f,m==null?void 0:m.avatar,m==null?void 0:m.logo,m==null?void 0:m.image,m==null?void 0:m.name,m==null?void 0:m.id,h,l,s]),C=o!=null?o:J__namespace.default.createElement(Zp,null),A=p?void 0:r!=null?r:O(u,"message.label"),k=n!=null?n:`bg-white text-primary font-medium p-[1rem] border border-primary ${p?"rounded-full":"rounded-[0.5rem]"}`;return i&&m?J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:`flex flex-col items-center gap-2 cursor-pointer ${a?"opacity-50 cursor-not-allowed":""}`,onClick:a?void 0:w},J__namespace.default.createElement(ae,{src:(I=(N=m==null?void 0:m.avatar)!=null?N:m==null?void 0:m.image)!=null?I:m==null?void 0:m.logo,name:(P=m==null?void 0:m.name)!=null?P:""}),J__namespace.default.createElement("span",{className:"text-sm text-gray-700 font-medium"},m==null?void 0:m.name)),J__namespace.default.createElement(ko,{isOpen:d,onClose:()=>c(false)})):J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(re,{className:k,label:A,onClick:w,leftElement:C,disabled:a||!x||b}),J__namespace.default.createElement(ko,{isOpen:d,onClose:()=>c(false)}))}function Xp({isOpen:e,onClose:t,selectedChat:o}){var q,Y,H,z;let{makeAdmin:r,isMakingAdmin:n}=bp(),{conversation:a,isLoadingConversation:s}=Kp(o==null?void 0:o.conversationId),{locale:i,user:l}=M(),[d,c]=J__namespace.default.useState(false),[p,f]=J__namespace.default.useState([]),[u,g]=J__namespace.default.useState(null),{onlineUsers:m}=Qo(),v=J__namespace.default.useMemo(()=>(a==null?void 0:a.participants)||[],[a]),h=J__namespace.default.useMemo(()=>(v==null?void 0:v.map(G=>F(y({},G==null?void 0:G.user),{participantId:G==null?void 0:G.id,isAdmin:(G==null?void 0:G.role)==="ADMIN",isOwner:(G==null?void 0:G.role)==="OWNER"})))||[],[v]),b=J__namespace.default.useMemo(()=>!a||!l?null:v==null?void 0:v.find(G=>{var R;return ((R=G==null?void 0:G.user)==null?void 0:R.id)===(l==null?void 0:l.id)}),[a,l,v]),x=J__namespace.default.useMemo(()=>(b==null?void 0:b.role)==="ADMIN"||(b==null?void 0:b.role)==="OWNER",[b]),w=J__namespace.default.useMemo(()=>x?(h==null?void 0:h.filter(G=>(G==null?void 0:G.participantId)!==(l==null?void 0:l.id)))||[]:h,[h,x,l==null?void 0:l.id]),C=J__namespace.default.useMemo(()=>{var R;if((w==null?void 0:w.length)===0)return false;let G=((R=w==null?void 0:w.map(V=>V==null?void 0:V.participantId))==null?void 0:R.filter(Boolean))||[];return G==null?void 0:G.every(V=>p==null?void 0:p.includes(V))},[w,p]),A=G=>{f(R=>R!=null&&R.includes(G)?R==null?void 0:R.filter(V=>V!==G):[...R,G]);},k=()=>{var R;let G=((R=w==null?void 0:w.map(V=>V==null?void 0:V.participantId))==null?void 0:R.filter(Boolean))||[];f(G);},N=()=>{f([]),c(false);},{deleteParticipant:I,isDeletingParticipant:P}=T2((q=o==null?void 0:o.conversationId)!=null?q:"",p),S=()=>j(this,null,function*(){!(p!=null&&p.length)||P||I(void 0,{onSuccess:N});}),D=!s,T=G=>{if(d){A(G==null?void 0:G.participantId);return}g(G);},L=()=>g(null),E=()=>j(this,null,function*(){!(u!=null&&u.participantId)||P||(f([u==null?void 0:u.participantId]),I(void 0,{onSuccess:()=>{N(),g(null);}}));}),B=()=>{!(u!=null&&u.id)||n||r(u==null?void 0:u.id,{onSuccess:()=>{g(null);}});},W=()=>{!(u!=null&&u.id)||n||r(u==null?void 0:u.id,{onSuccess:()=>{g(null);}});};return J__namespace.default.useEffect(()=>{a&&(f([]),c(false),g(null));},[a]),s?J__namespace.default.createElement(react.AnimatePresence,null,e&&J__namespace.default.createElement(react.motion.div,{className:"fixed inset-0 z-[9999] flex justify-end bg-black bg-opacity-50",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>D&&t()},J__namespace.default.createElement(react.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{duration:.3},className:"w-[22rem] h-full bg-white",onClick:G=>G.stopPropagation()},J__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},J__namespace.default.createElement(Ge,null))))):a?J__namespace.default.createElement(react.AnimatePresence,null,e&&J__namespace.default.createElement(react.motion.div,{className:"fixed inset-0 z-[9999] flex justify-end bg-black bg-opacity-50",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>D&&t()},J__namespace.default.createElement(react.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{duration:.3},className:"w-[22rem] h-full bg-white flex flex-col",onClick:G=>G.stopPropagation()},J__namespace.default.createElement("div",{className:"flex items-center justify-between px-5 pt-5 mb-4"},u?J__namespace.default.createElement("button",{onClick:L,className:"p-2 rounded-full hover:bg-gray-200"},J__namespace.default.createElement(lucideReact.ArrowLeft,{className:"w-5 h-5 text-gray-600"})):J__namespace.default.createElement("div",null),J__namespace.default.createElement("h2",{className:"text-lg font-semibold"},u?O(i,"participant-details"):O(i,"group-details")),J__namespace.default.createElement("button",{onClick:t,className:"p-2 rounded-full hover:bg-gray-200"},J__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5 text-gray-600"}))),J__namespace.default.createElement("div",{className:"flex-1 overflow-y-auto px-5 pb-5"},J__namespace.default.createElement(react.AnimatePresence,{mode:"wait"},u?J__namespace.default.createElement(react.motion.div,{key:"user-view",initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-30},className:"flex flex-col items-center pt-8 text-center"},J__namespace.default.createElement(ae,{src:u==null?void 0:u.avatar,name:u==null?void 0:u.name,className:"w-24 h-24 mb-4"}),J__namespace.default.createElement("h3",{className:"text-lg font-semibold"},ht((Y=u==null?void 0:u.name)!=null?Y:"")),(u==null?void 0:u.slug)&&J__namespace.default.createElement("p",{className:"text-sm text-gray-500 mb-6"},"@",u==null?void 0:u.slug),(u==null?void 0:u.isAdmin)&&J__namespace.default.createElement("span",{className:"text-xs text-green-700 font-medium px-2 py-1 bg-green-100 rounded-full mb-4"},"Admin"),(u==null?void 0:u.isOwner)&&J__namespace.default.createElement("span",{className:"text-xs text-blue-700 font-medium px-2 py-1 bg-blue-100 rounded-full mb-4"},O(i,"owner-label")),x&&(u==null?void 0:u.participantId)!==(l==null?void 0:l.id)&&J__namespace.default.createElement("div",{className:"flex gap-3 mb-6 justify-center"},J__namespace.default.createElement("div",{className:"relative group"},J__namespace.default.createElement("button",{onClick:E,disabled:P,className:"p-3 rounded-full border border-red-200 bg-red-50 hover:bg-red-100 text-red-600 transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},J__namespace.default.createElement(lucideReact.Trash2,{className:"w-5 h-5"})),J__namespace.default.createElement("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-1.5 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none z-10"},O(i,"delete-participant")||"Delete Participant")),!(u!=null&&u.isAdmin)&&!(u!=null&&u.isOwner)&&J__namespace.default.createElement("div",{className:"relative group"},J__namespace.default.createElement("button",{onClick:B,disabled:n,className:"p-3 rounded-full border border-blue-200 bg-blue-50 hover:bg-blue-100 text-blue-600 transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},J__namespace.default.createElement(lucideReact.UserCog,{className:"w-5 h-5"})),J__namespace.default.createElement("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-1.5 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none z-10"},n?O(i,"promoting")||"Promoting...":O(i,"promote-admin")||"Promote to Admin")),(u==null?void 0:u.isAdmin)&&!(u!=null&&u.isOwner)&&x&&J__namespace.default.createElement("div",{className:"relative group"},J__namespace.default.createElement("button",{onClick:W,disabled:n,className:"p-3 rounded-full border border-orange-200 bg-orange-50 hover:bg-orange-100 text-orange-600 transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},J__namespace.default.createElement(lucideReact.UserMinus,{className:"w-5 h-5"})),J__namespace.default.createElement("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-1.5 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none z-10"},n?O(i,"removing-admin")||"Removing Admin...":O(i,"remove-admin")||"Remove Admin"))),J__namespace.default.createElement(us,{className:"w-full border rounded-md mb-3",user:{id:u==null?void 0:u.id,avatar:u==null?void 0:u.avatar,name:u==null?void 0:u.name},onClick:()=>{g(null),t();}}),J__namespace.default.createElement(re,{className:"w-full border rounded-md",onClick:()=>{Ae(),window.open(`/profile/pt/${u==null?void 0:u.slug}`,"_blank","noopener,noreferrer");}},O(i,"see-profile"))):J__namespace.default.createElement(react.motion.div,{key:"details",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:20}},J__namespace.default.createElement("div",{className:"flex flex-col items-center gap-2 mb-6"},J__namespace.default.createElement(ae,{src:a==null?void 0:a.image,name:(H=a==null?void 0:a.name)!=null?H:"",className:"w-20 h-20"}),J__namespace.default.createElement("span",{className:"text-xl font-medium"},a==null?void 0:a.name),(a==null?void 0:a.description)&&J__namespace.default.createElement("p",{className:"text-sm text-gray-600 text-center px-4"},a==null?void 0:a.description)),J__namespace.default.createElement("div",null,J__namespace.default.createElement("div",{className:"flex justify-between items-center mb-4"},J__namespace.default.createElement("h3",{className:"text-sm font-semibold text-gray-500"},O(i,"participants-label",{count:((z=h==null?void 0:h.length)==null?void 0:z.toString())||"0"})),J__namespace.default.createElement(react.AnimatePresence,null,d?J__namespace.default.createElement(react.motion.div,{key:"selection-mode",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"flex gap-2 items-center"},!C&&J__namespace.default.createElement(re,{onClick:k,leftElement:J__namespace.default.createElement(lucideReact.List,{size:16}),className:"!p-2 border border-primary text-primary"}),J__namespace.default.createElement(re,{onClick:N,leftElement:J__namespace.default.createElement(lucideReact.X,{size:16}),className:"!p-2 bg-primary/10 text-primary"}),x&&(p==null?void 0:p.length)>0&&J__namespace.default.createElement(re,{onClick:S,disabled:P,isLoading:P,leftElement:J__namespace.default.createElement(Sr,null),className:"!p-2 bg-red-100 text-red-500"},"(",p==null?void 0:p.length,")")):J__namespace.default.createElement(react.motion.div,{key:"normal-mode",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"flex items-center gap-2"}))),(h==null?void 0:h.length)===0?J__namespace.default.createElement("p",{className:"text-center text-gray-500 py-6"},O(i,"no-participant")):J__namespace.default.createElement("ul",{className:"space-y-2"},h==null?void 0:h.map(G=>{let R=(G==null?void 0:G.id)===(l==null?void 0:l.id),V=!R||!x,_=p==null?void 0:p.includes(G==null?void 0:G.participantId),$=m==null?void 0:m[G==null?void 0:G.id];return J__namespace.default.createElement("li",{key:G==null?void 0:G.participantId,className:`flex items-center gap-3 p-3 rounded-lg cursor-pointer ${_?"bg-blue-50 border border-blue-200":"hover:bg-gray-50"} ${V?"":"opacity-60 cursor-default"}`,onClick:()=>{V&&T({id:G==null?void 0:G.id,participantId:G==null?void 0:G.participantId,name:G==null?void 0:G.name,avatar:G==null?void 0:G.avatar,slug:G==null?void 0:G.slug,isAdmin:G==null?void 0:G.isAdmin,isOwner:G==null?void 0:G.isOwner});}},J__namespace.default.createElement("div",{className:"relative"},J__namespace.default.createElement(ae,{src:G==null?void 0:G.avatar,name:G==null?void 0:G.name,className:"w-10 h-10"}),$&&J__namespace.default.createElement("span",{className:"absolute bottom-0 right-0 w-3 h-3 bg-primary border-2 border-white rounded-full"})),J__namespace.default.createElement("div",{className:"flex-1"},J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement("span",{className:"text-sm font-medium"},ht(G==null?void 0:G.name),R&&J__namespace.default.createElement("span",{className:"text-xs text-gray-500 ml-1"},O(i,"you-label")))),(G==null?void 0:G.slug)&&J__namespace.default.createElement("span",{className:"text-xs text-gray-500 block"},"@",G==null?void 0:G.slug)),J__namespace.default.createElement("div",{className:"flex flex-col items-end gap-1"},$&&J__namespace.default.createElement("span",{className:"text-xs text-primary font-medium px-2 py-1 bg-primary/10 rounded-full"},"Online"),(G==null?void 0:G.isOwner)&&J__namespace.default.createElement("span",{className:"text-xs text-blue-700 font-medium px-2 py-1 bg-blue-100 rounded-full"},O(i,"owner-label")),(G==null?void 0:G.isAdmin)&&!(G!=null&&G.isOwner)&&J__namespace.default.createElement("span",{className:"text-xs text-green-700 font-medium px-2 py-1 bg-green-100 rounded-full"},"Admin")),d&&V&&J__namespace.default.createElement(Wo,{isChecked:_,onClick:()=>A(G==null?void 0:G.participantId)}),d&&!V&&J__namespace.default.createElement("div",{className:"w-5 h-5"}))}))))))))):null}function HU({children:e}){return $W.createPortal(e,document.body)}function $p({selectedMessageIds:e,onSelectChatHeaderOption:t}){let{locale:o,user:r}=M(),{selectedChat:n}=ce(),{deleteMessages:a,isDeletingMessages:s}=jn(),[i,l]=J.useState(false),d=J.useRef(null),c=J.useRef(null),[p,f]=J.useState({top:0,left:0}),u=()=>{if(d.current){let v=d.current.getBoundingClientRect();f({top:v.bottom+8,left:v.right-192});}},g=()=>{u(),l(v=>!v);},m=v=>{a({input:{messageIds:e,deleteForAll:v,conversationId:n==null?void 0:n.id}},{onSuccess(){t==null||t("filter-all");}}),l(false);};return J.useEffect(()=>{let v=h=>{var b;c.current&&!c.current.contains(h.target)&&!((b=d.current)!=null&&b.contains(h.target))&&l(false);};return i&&document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[i]),J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(re,{ref:d,isLoading:s,disabled:s,className:"button-empty p-2 rounded-full hover:bg-red-100 disabled:opacity-50 disabled:cursor-not-allowed",onClick:g},J__namespace.default.createElement(lucideReact.Trash2,{className:"w-5 h-5 text-red-600"})),i&&J__namespace.default.createElement(HU,null,J__namespace.default.createElement("div",{ref:c,className:"absolute bg-white border rounded-lg shadow-lg w-48 z-[9999] flex flex-col",style:{position:"absolute",top:p.top,left:p.left}},J__namespace.default.createElement("button",{className:"!text-left px-4 py-2 hover:bg-gray-100 w-full",onClick:()=>m(false)},O(o,"for-me-label")),n!=null&&n.isGroupOwner?J__namespace.default.createElement("button",{className:"!text-left px-4 py-2 hover:bg-gray-100 w-full",onClick:()=>m(true)},O(o,"for-all-label")):null)))}var GU=()=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},J__namespace.createElement("g",{id:"freepik--background-complete--inject-79"},J__namespace.createElement("path",{fill:"#ebebeb",d:"m98.19 196.3 7.809-57.229 90.244 12.314-7.81 57.23z"}),J__namespace.createElement("path",{fill:"#fff",d:"M106 139.06c3.17 4 6.43 7.83 9.63 11.76s6.5 7.73 9.78 11.55c3.41 4 6.85 8 10.28 11.91.11.12.2.25.31.38q4.57 5.22 9.17 10.43l.45.5.56-.36q5.82-3.79 11.62-7.62a5 5 0 0 0 .4-.26q6.59-4.32 13.12-8.73c4.16-2.8 8.34-5.65 12.49-8.5s8.31-5.76 12.43-8.75c-4.28 2.46-8.52 5.07-12.77 7.61s-8.49 5.19-12.72 7.85q-7.06 4.39-14.12 8.93-5.29 3.36-10.58 6.76c-2.77-3.12-5.56-6.26-8.36-9.35q-5.58-6.22-11.21-12.38-5.06-5.52-10.15-11c-3.49-3.56-6.87-7.21-10.33-10.73"}),J__namespace.createElement("path",{fill:"#fff",d:"M156.3 177.05a1 1 0 0 1 .1.11l1.26 1.4c2 2.22 4.07 4.36 6.18 6.46 2.58 2.58 5.23 5.09 7.9 7.58s5.39 4.89 8.18 7.25 5.6 4.7 8.54 6.88c-2.41-2.77-5-5.39-7.53-8s-5.24-5.09-7.89-7.57-5.41-4.91-8.19-7.28c-2.21-1.89-4.47-3.75-6.8-5.53q-.8-.63-1.62-1.23ZM98.65 194.49c3.43-1.32 6.78-2.81 10.08-4.34s6.57-3.17 9.83-4.81 6.47-3.38 9.64-5.18c2.59-1.46 5.15-3 7.66-4.56.55-.34 1.08-.68 1.61-1l.12-.08a.3.3 0 0 1-.15 0l-1.9.77c-2.71 1.09-5.37 2.29-8 3.51-3.31 1.54-6.57 3.16-9.82 4.82s-6.46 3.38-9.64 5.19-6.36 3.65-9.43 5.68"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"m54.363 75.194 74.634-18.94 12.011 47.329-74.634 18.94z"}),J__namespace.createElement("path",{fill:"#fff",d:"M54.36 75.19c3.75 2.12 7.52 4.1 11.28 6.16s7.54 4 11.32 6c3.94 2.06 7.89 4.07 11.84 6.08l.36.2 10.49 5.27.51.25.33-.46c2.24-3.21 4.46-6.43 6.69-9.65a4 4 0 0 0 .23-.34q3.8-5.46 7.52-11c2.38-3.51 4.75-7.07 7.1-10.62s4.69-7.15 7-10.79c-2.58 3.28-5.07 6.67-7.6 10s-5 6.76-7.48 10.18q-4.14 5.69-8.25 11.48-3.07 4.31-6.15 8.65c-3.2-1.6-6.38-3.15-9.55-4.69q-6.36-3.12-12.72-6.16c-3.8-1.81-7.61-3.61-11.42-5.37s-7.66-3.53-11.5-5.19"}),J__namespace.createElement("path",{fill:"#fff",d:"M105.84 89a.6.6 0 0 0 .11.06l1.43.7q3.41 1.65 6.89 3.1c2.84 1.22 5.71 2.34 8.59 3.44s5.78 2.13 8.71 3.1 5.88 1.91 8.88 2.69c-2.77-1.41-5.59-2.66-8.42-3.87s-5.73-2.33-8.6-3.43-5.79-2.14-8.72-3.11c-2.33-.78-4.69-1.53-7.08-2.19-.55-.16-1.1-.3-1.66-.45ZM66.17 121c2.27-2.11 4.42-4.34 6.52-6.6s4.16-4.56 6.19-6.87 4-4.71 5.91-7.12c1.57-2 3.11-4 4.57-6l.93-1.31s0-.07.07-.1l-.1.09c-.42.4-.84.79-1.25 1.2-1.78 1.71-3.49 3.49-5.18 5.3-2.11 2.25-4.15 4.56-6.17 6.88s-4 4.7-5.91 7.12-3.82 4.81-5.58 7.41"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"m361.82 270.48 76.475-8.971 5.689 48.498-76.476 8.97z"}),J__namespace.createElement("path",{fill:"#fff",d:"M361.81 270.5c3.44 2.59 6.92 5.05 10.37 7.6s6.95 4.95 10.44 7.39 7.29 5.07 10.94 7.58l.33.24q4.83 3.31 9.7 6.61l.48.31.38-.41q4-4.33 7.9-8.69a3 3 0 0 0 .28-.3q4.47-4.92 8.9-9.92c2.82-3.16 5.63-6.38 8.43-9.59s5.59-6.47 8.33-9.79c-3 2.92-5.9 6-8.85 8.93s-5.85 6-8.76 9.11q-4.85 5.08-9.67 10.29c-2.41 2.58-4.81 5.18-7.22 7.77-2.94-2-5.88-3.95-8.82-5.89q-5.88-3.93-11.8-7.78-5.28-3.45-10.61-6.82c-3.63-2.21-7.17-4.49-10.75-6.64"}),J__namespace.createElement("path",{fill:"#fff",d:"m411 291 .1.07c.44.3.89.6 1.33.88 2.11 1.4 4.25 2.72 6.43 4 2.65 1.57 5.35 3.06 8.06 4.54s5.45 2.86 8.23 4.21 5.57 2.67 8.44 3.83c-2.55-1.76-5.19-3.37-7.84-4.93s-5.37-3.07-8.07-4.54-5.46-2.88-8.23-4.23c-2.21-1.08-4.46-2.13-6.74-3.1q-.78-.34-1.59-.66ZM367.5 317.43c2.53-1.8 5-3.73 7.33-5.68s4.72-4 7-6 4.58-4.13 6.8-6.28c1.81-1.74 3.59-3.51 5.31-5.35l1.1-1.18a1 1 0 0 0 .08-.09.3.3 0 0 1-.11.07l-1.39 1c-2 1.47-3.92 3-5.84 4.57-2.39 2-4.71 4-7 6s-4.58 4.13-6.8 6.28-4.4 4.35-6.48 6.66"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M378.13 159.62c-7.69.14-18.89.45-26.48.45h-.44v-.45l-.06-11.19v-.5h.5c7.93 0 18.94.08 26.76.23 0 3.39-.22 8-.28 11.46m0 0c-.1-3.27-.2-8-.27-11.19l.27.27c-7.66.14-18.71.21-26.48.23l.5-.5v11.19l-.45-.45c7.49 0 18.89.29 26.48.45ZM363.36 173.73c-7.69.14-18.89.45-26.48.45h-.44v-.45l-.05-11.19V162h.5c7.93 0 18.94.08 26.76.23 0 3.39-.22 8-.28 11.46Zm0 0c-.1-3.27-.2-8-.27-11.19l.27.27c-7.66.14-18.71.21-26.48.23l.5-.5-.06 11.19-.44-.45c7.49 0 18.89.29 26.48.45M392.9 173.73c-7.69.14-18.89.45-26.48.45H366v-.45l-.06-11.19V162h.5c7.93 0 18.94.08 26.76.23 0 3.39-.22 8-.28 11.46Zm0 0c-.1-3.27-.2-8-.27-11.19l.27.27c-7.65.14-18.71.21-26.48.23l.5-.5-.05 11.19-.45-.45c7.49 0 18.89.29 26.48.45M443.35 58.29c-7.69.15-18.89.45-26.48.45h-.45v-.45l-.05-11.19v-.5h.51c7.92 0 18.94.08 26.75.23 0 3.39-.21 8-.27 11.46Zm0 0c-.1-3.27-.21-8-.28-11.19l.28.27c-7.66.14-18.71.21-26.48.23l.49-.5-.05 11.19-.44-.45c7.48 0 18.89.29 26.48.45M458.12 72.4c-7.69.14-18.89.45-26.48.45h-.45v-.45l-.05-11.19v-.5h.5c7.92 0 18.94.08 26.75.23 0 3.39-.21 8-.27 11.46m0 0c-.1-3.27-.21-8-.28-11.19l.28.27c-7.66.14-18.71.21-26.48.23l.5-.5-.06 11.19-.44-.45c7.48 0 18.89.29 26.48.45M68.36 58.3c-7.69.15-18.89.45-26.48.45h-.44v-.45l-.06-11.19v-.5h.5c7.93 0 18.94.08 26.76.23 0 3.4-.22 8-.28 11.46m0 0c-.1-3.27-.2-8-.27-11.19l.27.28c-7.65.13-18.71.2-26.48.22l.5-.5-.05 11.19-.45-.44c7.49 0 18.89.29 26.48.44M431.64 318.51c7.69-.15 18.89-.45 26.48-.45h.44v.45l.06 11.19v.5h-.5c-7.93 0-18.94-.08-26.76-.23 0-3.4.22-8 .28-11.46m0 0c.1 3.27.2 8 .27 11.19l-.27-.28c7.65-.13 18.71-.2 26.48-.22l-.5.5.05-11.19.45.44c-7.49 0-18.89-.29-26.48-.44M41.88 318.51c7.69-.15 18.89-.45 26.48-.45h.45v12.139999999999999h-.5c-7.92 0-18.94-.08-26.75-.23 0-3.4.21-8 .27-11.46Zm0 0c.1 3.27.21 8 .28 11.19l-.28-.28c7.66-.13 18.71-.2 26.48-.22l-.5.5.06-11.19.44.44c-7.48 0-18.89-.29-26.48-.44M56.65 304.4c7.69-.15 18.89-.45 26.48-.45h.45v12.139999999999999h-.51c-7.92 0-18.94-.08-26.75-.23 0-3.4.21-8 .27-11.46Zm0 0c.1 3.27.21 8 .28 11.19l-.28-.28c7.66-.13 18.71-.2 26.48-.22l-.49.5V304.4l.44.44c-7.48 0-18.89-.29-26.48-.44Z"})),J__namespace.createElement("path",{id:"freepik--Table--inject-79",fill:"#263238",d:"M40 448.53c134.56-.61 285.5-.61 420.06 0-134.56.62-285.5.61-420.06 0"}),J__namespace.createElement("g",{id:"freepik--Plant--inject-79"},J__namespace.createElement("path",{fill:"#0B89CE",d:"M424.15 389.36s8.78-31.53 15.79-42.23S460 324.66 460 324.66s-.28 48.6-35.85 64.7"}),J__namespace.createElement("path",{fill:"#263238",d:"M424.78 388.82a152 152 0 0 0 8-15.28 107.5 107.5 0 0 1 4.36-16.54.08.08 0 0 1 .16 0c-1.17 5-2.52 9.92-3.75 14.88 3.54-7.67 6.91-15.44 11.13-22.69a49 49 0 0 1 4.07-10.09c.05-.09.2 0 .16.06a63 63 0 0 0-2.74 7.57 75.5 75.5 0 0 1 6.67-9.22c.16-.18.46 0 .31.21-5.64 7.21-9.54 15.4-13.25 23.7a127 127 0 0 0 11-13.77l.07.05a111.5 111.5 0 0 1-11.8 15.3c-2.7 6.08-5.36 12.19-8.58 18 6.44-5.44 11.39-12.48 16.3-19.28a.15.15 0 0 1 .24.17c-4.91 7.45-10 14.47-17 20a79 79 0 0 1-4.71 7.36.37.37 0 0 1-.64-.43"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M421.42 392.2s15.79-29.07 11.2-57.25-9.49-38.22-9.49-38.22-24.81 43.83-1.71 95.47"}),J__namespace.createElement("path",{fill:"#263238",d:"M414.94 346.5A137 137 0 0 0 421 370c0-10.34.24-20.68.52-31a80 80 0 0 1-3-19.26c0-.2.28-.18.29 0a110 110 0 0 0 2.77 16.57q.36-12.79.83-25.58a.11.11 0 0 1 .22 0c0 13.32 0 26.65-.09 40a106 106 0 0 0 4.55-15.83c0-.05.1 0 .09 0a62 62 0 0 1-4.65 18c-.07 8.52-.16 17-.35 25.55 2.67-9.05 5.52-17.82 6.3-27.39a.1.1 0 0 1 .2 0c-.21 10.55-2.93 21.27-6.41 31.19a.6.6 0 0 1-.18.25c-.08 3.11-.17 6.23-.27 9.34a.35.35 0 0 1-.69 0c-.13-6.37-.17-12.74-.16-19.11a85.5 85.5 0 0 1-6.22-26.16c.05-.13.18-.15.19-.07"}),J__namespace.createElement("path",{fill:"#263238",d:"M416 342a54 54 0 0 1 1.1 7.67.08.08 0 0 1-.15 0 55 55 0 0 1-1.3-7.65c.01-.17.35-.21.35-.02M425.26 320.76c0-.09.15-.06.15 0a19.4 19.4 0 0 1-.8 5.3c0 .14-.24.07-.21-.06.35-1.73.6-3.49.86-5.24"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M415.67 394.42s.64-30.34-8.06-45.42-23.14-22.77-23.14-22.77 5.82 53.49 31.2 68.19"}),J__namespace.createElement("path",{fill:"#263238",d:"M399.81 368.47a112.7 112.7 0 0 0 11.77 14.93q-2.59-9.3-6-18.3c-4.88-4.27-9.72-8.71-12.71-14.56a.08.08 0 0 1 .14-.09c3.22 5.19 7.52 9.34 12.05 13.33a235 235 0 0 0-12.11-26.39.19.19 0 0 1 .33-.19 145 145 0 0 1 7.6 13.85c-.82-3.25-1.47-6.56-2.31-9.78a.07.07 0 0 1 .14 0 55 55 0 0 1 3.57 12.87 155 155 0 0 1 7.67 20.76c-.23-4.55-.51-9.08-1-13.61a.08.08 0 0 1 .15 0 74 74 0 0 1 1.32 15.28c1.25 4.52 2.31 9.1 3.16 13.71a.1.1 0 0 1-.2 0c-.47-1.93-1-3.85-1.51-5.76a.2.2 0 0 1-.09 0c-4.67-4.68-9.11-10-12-16-.04-.05.01-.08.03-.05"}),J__namespace.createElement("path",{fill:"#263238",d:"M389.72 343.79c1 1 1.86 2.14 2.8 3.22a25 25 0 0 1 2.5 2.93l-.06.07a14.8 14.8 0 0 1-2.9-2.86 24.6 24.6 0 0 1-2.48-3.26.09.09 0 0 1 .14-.1"}),J__namespace.createElement("path",{fill:"#455a64",d:"m441.53 390.72-1.1 14.37-3.31 43.44h-28.83L405 405.09l-1.09-14.37h37.64Z"}),J__namespace.createElement("path",{fill:"#37474f",d:"m441.53 390.72-1.1 14.37H405l-1.09-14.37h37.64Z"}),J__namespace.createElement("path",{fill:"#455a64",d:"M444.09 394.69h-42.76v-11.02h42.76z"})),J__namespace.createElement("g",{id:"freepik--Device--inject-79"},J__namespace.createElement("path",{fill:"#263238",d:"M380.18 58.3H207.86a17.59 17.59 0 0 0-17.43 17.76v354.71a17.61 17.61 0 0 0 17.43 17.76h172.32a17.62 17.62 0 0 0 17.45-17.76V76.06a17.61 17.61 0 0 0-17.45-17.76m6.54 361.5c0 9.34-7 16.89-15.61 16.89H217c-8.65 0-15.64-7.55-15.64-16.89V89.5c0-19 7-20 15.64-20h30.88c1.79 0 3.26 2 3.26 4.57v1.09c0 5.92 3.24 5.94 7.22 5.94h71.41c4 0 7.23 0 7.23-5.94v-1.04c0-2.53 1.45-4.57 3.28-4.57h30.87c8.62 0 15.61 2.53 15.61 20Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M386.73 89.5v330.3c0 9.34-7 16.89-15.61 16.89H217c-8.65 0-15.64-7.55-15.64-16.89V89.5c0-19 7-20 15.64-20h30.88c1.79 0 3.26 2 3.26 4.57v1.09c0 5.92 3.24 5.94 7.22 5.94h71.41c4 0 7.23 0 7.23-5.94v-1.04c0-2.53 1.45-4.57 3.28-4.57h30.87c8.59 0 15.58 2.53 15.58 19.95"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M386.73 89.51v30h-185.4v-30c0-19 7-20 15.64-20h30.88c1.79 0 3.26 2 3.26 4.57v1.09c0 5.92 3.24 5.94 7.22 5.94h71.41c4 0 7.23 0 7.23-5.94v-1.04c0-2.53 1.45-4.57 3.28-4.57h30.87c8.62 0 15.61 2.53 15.61 19.95"}),J__namespace.createElement("path",{fill:"#fff",d:"M303.77 73.47h-19.48a1.2 1.2 0 0 1-1.2-1.21 1.2 1.2 0 0 1 1.2-1.2h19.48a1.2 1.2 0 0 1 1.2 1.2 1.21 1.21 0 0 1-1.2 1.21M213.41 97.8h16.09V108h-16.09z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M229.5 97.8c-.65.62-1.31 1.22-2 1.83s-1.32 1.2-2 1.79l-2.08 1.84-.07.06-1.85 1.61-.09.07-.09-.07-1.85-1.62h-.07l-2.09-1.84-2-1.79c-.65-.61-1.32-1.21-2-1.83l2.06 1.64c.68.56 1.36 1.11 2 1.68s1.5 1.26 2.26 1.9l1.69 1.44c.56-.48 1.12-1 1.69-1.44l2.26-1.9 2-1.67c.86-.61 1.54-1.16 2.23-1.7"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m219.79 103.25-.25.21c-.41.34-.82.67-1.24 1s-1 .76-1.56 1.13-1.06.73-1.61 1.08-1.09.69-1.66 1c.49-.43 1-.83 1.51-1.22s1-.76 1.56-1.13 1.07-.73 1.61-1.08.87-.55 1.32-.81l.32-.17ZM229.47 107.68c-.57-.31-1.12-.65-1.66-1s-1.08-.71-1.61-1.08-1-.74-1.57-1.13-.83-.64-1.23-1l-.25-.21.32.18q.66.39 1.32.81c.54.35 1.07.71 1.6 1.08s1.05.74 1.56 1.13 1.05.79 1.52 1.22"}),J__namespace.createElement("path",{fill:"#455a64",d:"M233 97.8a3.46 3.46 0 1 1-3.46-3.45A3.46 3.46 0 0 1 233 97.8"}),J__namespace.createElement("path",{fill:"#fff",d:"M230.64 98.49a.27.27 0 0 1-.28.27h-.05v.38a.26.26 0 0 1-.27.27.27.27 0 0 1-.27-.27v-.38h-1.56a.22.22 0 0 1-.17-.06.27.27 0 0 1 0-.38l1.79-2.32h.21v2h.05a.27.27 0 0 1 .55.49m-.87-1.5-1 1.23h1Z"}),J__namespace.createElement("g",{id:"freepik--u5Zjqx--inject-79",fill:"#fff"},J__namespace.createElement("path",{d:"m242.51 76.68-.3.3-.17.17a4.07 4.07 0 0 0-5.75 0 1.3 1.3 0 0 1-.16-.17l-.3-.29.38-.34a4.7 4.7 0 0 1 2-.94c.19 0 .39 0 .58-.08h.9a4.3 4.3 0 0 1 1.06.26 4.7 4.7 0 0 1 .72.33 4.6 4.6 0 0 1 .68.48l.32.29Z"}),J__namespace.createElement("path",{d:"M237.23 78.09c-.15-.16-.31-.31-.47-.47a3.3 3.3 0 0 1 1.92-1 3.37 3.37 0 0 1 2.89 1l-.48.47a2.74 2.74 0 0 0-3.86 0"}),J__namespace.createElement("path",{d:"m240.62 78.56-.47.47a1.39 1.39 0 0 0-2 0l-.47-.47a2 2 0 0 1 2.94 0M239.59 79.45a.43.43 0 1 1-.85 0 .43.43 0 0 1 .85 0"})),J__namespace.createElement("path",{fill:"#fff",d:"M213.41 77.58a1.23 1.23 0 1 1 1.23 1.23 1.23 1.23 0 0 1-1.23-1.23M217.28 77.58a1.23 1.23 0 1 1 1.23 1.23 1.23 1.23 0 0 1-1.23-1.23M221.15 77.58a1.23 1.23 0 1 1 1.23 1.23 1.23 1.23 0 0 1-1.23-1.23M225 77.58a1.23 1.23 0 1 1 1.23 1.23 1.23 1.23 0 0 1-1.23-1.23M228.89 77.58a1.23 1.23 0 1 1 1.23 1.23 1.23 1.23 0 0 1-1.23-1.23M372.82 80.27h-10v-4.64h10Zm-9.49-.51h9v-3.62h-9Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M363.65 76.42h6.45v3.06h-6.45zM372.83 76.71h.89v2.48h-.89zM278.08 99.78a.59.59 0 0 1 .6-.6.61.61 0 0 1 .61.6v6.41a.61.61 0 0 1-.61.6.59.59 0 0 1-.6-.6ZM282.52 106.19a.61.61 0 0 1-.59.6.6.6 0 0 1-.6-.6v-6.32a.59.59 0 0 1 1.07-.37l3.51 4.86v-4.49a.59.59 0 0 1 .58-.58.6.6 0 0 1 .6.58v6.32a.6.6 0 0 1-.6.6.6.6 0 0 1-.44-.22l-.06-.06-3.47-4.83ZM289.71 106.19v-6.41a.59.59 0 0 1 .59-.6h1.55a2.06 2.06 0 0 1 2.06 2.06 2 2 0 0 1-.41 1.24 2.33 2.33 0 0 1-1.23 4.31h-1.92a.6.6 0 0 1-.64-.6m1.2-4.06h.94a.88.88 0 0 0 .86-.89.85.85 0 0 0-.86-.85h-.94Zm0 3.45h1.36a1.13 1.13 0 0 0 0-2.25h-1.36ZM302.17 100.12a4 4 0 0 1 0 5.51 3.58 3.58 0 0 1-2.6 1.16 3.7 3.7 0 0 1-2.66-1.16 4.05 4.05 0 0 1 0-5.51 3.65 3.65 0 0 1 2.66-1.12 3.55 3.55 0 0 1 2.6 1.12m-.14 2.75a2.86 2.86 0 0 0-.74-1.9 2.35 2.35 0 0 0-3.48 0 2.76 2.76 0 0 0-.74 1.9 2.73 2.73 0 0 0 .74 1.9 2.33 2.33 0 0 0 3.48 0 2.82 2.82 0 0 0 .71-1.9ZM310.32 100.21l-2.07 2.79 2.07 2.82a.59.59 0 0 1-.14.83.54.54 0 0 1-.34.12.63.63 0 0 1-.49-.25l-1.83-2.52-1.84 2.51a.62.62 0 0 1-.47.25.55.55 0 0 1-.35-.12.59.59 0 0 1-.14-.83l2.06-2.82-2.06-2.81a.58.58 0 0 1 .14-.82.55.55 0 0 1 .82.13l1.84 2.5 1.83-2.5a.56.56 0 0 1 .83-.13.58.58 0 0 1 .14.85M361.2 106.73l-1.26 1-2.33-3.08-.86-1.13a2 2 0 0 0 .49-.27 2.1 2.1 0 0 0 .65-.84l.91 1.19Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M358.72 99.47a3.48 3.48 0 1 0-.64 4.82 3.4 3.4 0 0 0 .72-.74 3.44 3.44 0 0 0-.08-4.08m-1.48 3.73a2 2 0 0 1-.49.27 2 2 0 1 1 1.14-1.11 2.1 2.1 0 0 1-.65.84M334.95 98.33h9.14v9.14h-9.14z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M339.02 100.03h1v5.75h-1z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M336.65 103.41v-1h5.75v1z"}),J__namespace.createElement("path",{fill:"#fff",d:"M372.81 98.92a.79.79 0 1 1-.79-.79.79.79 0 0 1 .79.79M372.81 103a.79.79 0 1 1-.79-.79.79.79 0 0 1 .79.79M372.81 107.12a.79.79 0 1 1-.79-.79.79.79 0 0 1 .79.79"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M201.33 319.89h185.4v28.63h-185.4z"}),J__namespace.createElement("path",{fill:"#fff",d:"M201.33 319.89h185.4v28.63h-185.4z",opacity:"0.7"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M201.33 262.63h185.4v28.63h-185.4z"}),J__namespace.createElement("path",{fill:"#fff",d:"M201.33 262.63h185.4v28.63h-185.4z",opacity:"0.7"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M201.33 119.47h185.4v28.63h-185.4z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M231.46 139.32a6.2 6.2 0 0 1-1.87.78 6.49 6.49 0 1 1 1.87-.78"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 133a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 138.5v.82a6.2 6.2 0 0 1-1.87.78 6.5 6.5 0 0 1-5-.78v-.82a3.42 3.42 0 0 1 6.84 0ZM268.88 138.09h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 129.49 1.39 2.83 3.13.45-2.26 2.21.53 3.11-2.79-1.47-2.8 1.47.54-3.11-2.27-2.21 3.13-.45z"}),J__namespace.createElement("path",{fill:"#263238",d:"M278.55 132.04h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#455a64",d:"M350.21 132.04h19.89v3.5h-19.89zM231.46 168a6.2 6.2 0 0 1-1.87.78 6.49 6.49 0 1 1 1.87-.78"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 161.68a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 167.13v.87a6.2 6.2 0 0 1-1.87.78 6.47 6.47 0 0 1-5-.78v-.82a3.42 3.42 0 0 1 6.84 0ZM268.88 166.72h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M269 167h-9.25l3.71-4.55-3.71-4.55H269l3.71 4.55Zm-8.2-.5h8l3.3-4.05-3.3-4h-8l3.31 4Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 158.12 1.39 2.83 3.13.45-2.26 2.21.53 3.11-2.79-1.47-2.8 1.47.54-3.11-2.27-2.21 3.13-.45z"}),J__namespace.createElement("path",{fill:"#263238",d:"M278.55 160.67h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#455a64",d:"M350.21 160.67h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M201.32 176.73h155.66v28.64H201.32z"}),J__namespace.createElement("path",{fill:"#fff",d:"M201.32 176.73h155.66v28.64H201.32z",opacity:"0.7"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M201.32 189.3h38.69v3.5h-38.69zM260.93 189.3h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#a6a6a6",d:"M231.46 225.21a6.5 6.5 0 1 1 2.9-7.07 6.5 6.5 0 0 1-2.9 7.07"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 218.94a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 224.4v.81a6.47 6.47 0 0 1-6.84 0v-.81a3.42 3.42 0 1 1 6.84 0M268.88 223.98h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M269 224.23h-9.25l3.71-4.55-3.71-4.55H269l3.71 4.55Zm-8.2-.5h8l3.3-4-3.3-4.05h-8l3.31 4.05Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 215.38 1.39 2.83 3.13.46-2.26 2.2.53 3.11-2.79-1.47-2.8 1.47.54-3.11-2.27-2.2 3.13-.46z"}),J__namespace.createElement("path",{fill:"#dbdbdb",d:"M278.55 217.93h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#c7c7c7",d:"M350.21 217.93h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M201.33 234h185.4v28.63h-185.4z"}),J__namespace.createElement("path",{fill:"#37474f",d:"M231.46 253.84a6.5 6.5 0 1 1 2.9-7.07 6.5 6.5 0 0 1-2.9 7.07"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 247.57a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 253v.81a6.47 6.47 0 0 1-6.84 0V253a3.42 3.42 0 0 1 6.84 0M268.88 252.61h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 244.01 1.39 2.83 3.13.46-2.26 2.2.53 3.11-2.79-1.47-2.8 1.47.54-3.11-2.27-2.2 3.13-.46z"}),J__namespace.createElement("path",{fill:"#dbdbdb",d:"M278.55 246.56h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#c7c7c7",d:"M350.21 246.56h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M201.33 348.52h185.4v28.63h-185.4z"}),J__namespace.createElement("path",{fill:"#37474f",d:"M231.46 368.37a6.2 6.2 0 0 1-1.87.78 6.49 6.49 0 1 1 1.87-.78"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 362.09a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 367.55v.82a6.2 6.2 0 0 1-1.87.78 6.47 6.47 0 0 1-5-.79v-.81a3.42 3.42 0 0 1 6.84 0ZM268.88 367.14h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 358.54 1.39 2.83 3.13.45-2.26 2.2.53 3.12-2.79-1.47-2.8 1.47.54-3.12-2.27-2.2 3.13-.45z"}),J__namespace.createElement("path",{fill:"#dbdbdb",d:"M278.55 361.09h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#c7c7c7",d:"M350.21 361.09h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M386.73 405.78v14a17.15 17.15 0 0 1-7.73 14.63H209.11a17.14 17.14 0 0 1-7.78-14.61v-14Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M231.46 425.63a6.5 6.5 0 1 1 2.9-7.07 6.5 6.5 0 0 1-2.9 7.07"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 419.36a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 424.81v.82a6.47 6.47 0 0 1-6.84 0v-.82a3.42 3.42 0 0 1 6.84 0M268.88 424.4h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 415.8 1.39 2.83 3.13.45-2.26 2.21.53 3.11-2.79-1.47-2.8 1.47.54-3.11-2.27-2.21 3.13-.45z"}),J__namespace.createElement("path",{fill:"#dbdbdb",d:"M278.55 418.35h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#c7c7c7",d:"M350.21 418.35h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M201.32 275.19h38.69v3.5h-38.69zM260.93 275.19h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M201.33 291.26h185.4v28.63h-185.4z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M231.46 311.11a6.5 6.5 0 1 1 2.9-7.08 6.48 6.48 0 0 1-2.9 7.08"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 304.83a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 310.29v.82a6.51 6.51 0 0 1-6.84 0v-.81a3.42 3.42 0 1 1 6.84 0ZM268.88 309.88h-8.6l3.5-4.31-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 301.27 1.39 2.84 3.13.45-2.26 2.2.53 3.12-2.79-1.47-2.8 1.47.54-3.12-2.27-2.2 3.13-.45z"}),J__namespace.createElement("path",{fill:"#263238",d:"M278.55 303.83h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#455a64",d:"M350.21 303.83h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M201.32 332.46h38.69v3.5h-38.69zM260.93 332.46h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#a6a6a6",d:"M231.46 397a6.2 6.2 0 0 1-1.87.78 6.49 6.49 0 1 1 1.87-.78"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 390.73a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 396.18v.82a6.2 6.2 0 0 1-1.87.78 6.47 6.47 0 0 1-5-.78v-.82a3.42 3.42 0 0 1 6.84 0ZM268.88 395.77h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M269 396h-9.25l3.71-4.55-3.71-4.55H269l3.71 4.55Zm-8.2-.5h8l3.3-4-3.3-4.05h-8l3.31 4.05Z"}),J__namespace.createElement("path",{fill:"#fff",d:"m246.78 387.17 1.39 2.83 3.13.45-2.26 2.21.53 3.11-2.79-1.47-2.8 1.47.54-3.11-2.27-2.21 3.13-.45z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"m249.9 396.23-3.12-1.65-3.13 1.65.6-3.49-2.53-2.46 3.49-.51 1.57-3.17 1.56 3.17 3.5.51-2.53 2.46Zm-7.11-5.6 2 1.94-.47 2.74 2.47-1.29 2.46 1.29-.47-2.74 2-1.94-2.75-.4-1.23-2.5-1.23 2.5Z"}),J__namespace.createElement("path",{fill:"#dbdbdb",d:"M278.55 389.72h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#c7c7c7",d:"M350.21 389.72h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M297.45 176.73h29.76v28.63h-29.76z",opacity:"0.3"}),J__namespace.createElement("path",{fill:"#fff",d:"M312.33 185.85a5.21 5.21 0 1 0 5.21 5.21 5.2 5.2 0 0 0-5.21-5.21m-2.43 5.73a.52.52 0 0 1-.52-.52.52.52 0 1 1 1 0 .52.52 0 0 1-.48.52m2.43 0a.53.53 0 0 1-.52-.52.52.52 0 0 1 .52-.52.52.52 0 0 1 .52.52.52.52 0 0 1-.52.52m2.44 0a.52.52 0 0 1-.52-.52.52.52 0 1 1 1 0 .52.52 0 0 1-.48.52"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M327.21 176.73h29.76v28.63h-29.76z",opacity:"0.1"}),J__namespace.createElement("path",{fill:"#fff",d:"M337.43 185.84h.61v10.41h-.61z"}),J__namespace.createElement("path",{fill:"#fff",d:"M337.74 186.32c3.2-.85 6.41.85 9.62 0v7.09c-3.21.85-6.42-.85-9.62 0Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M356.97 176.73h29.76v28.63h-29.76z"}),J__namespace.createElement("path",{fill:"#fff",d:"M375.2 196.38h-6.61l-.4-8.78h7.32z"}),J__namespace.createElement("path",{fill:"#fff",d:"M367.26 186.97h9.2v.64h-9.2z"}),J__namespace.createElement("path",{fill:"#fff",d:"M373.5 187.28h-.48v-1.08h-2.33v1.08h-.48v-1.56h3.29z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M371.61 188.45h.48v6.87h-.48zM369.817 188.431l.48-.02.29 6.874-.48.02zM373.108 195.297l.295-6.874.48.021-.296 6.874z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M297.45 262.63h29.76v28.63h-29.76z",opacity:"0.3"}),J__namespace.createElement("path",{fill:"#fff",d:"M312.33 271.74a5.21 5.21 0 1 0 5.21 5.21 5.2 5.2 0 0 0-5.21-5.21m-2.43 5.73a.52.52 0 0 1-.52-.52.52.52 0 1 1 1 0 .52.52 0 0 1-.48.52m2.43 0a.53.53 0 0 1-.52-.52.52.52 0 0 1 .52-.52.52.52 0 0 1 .52.52.52.52 0 0 1-.52.52m2.44 0a.52.52 0 0 1-.52-.52.52.52 0 1 1 1 0 .52.52 0 0 1-.48.52"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M327.21 262.63h29.76v28.63h-29.76z",opacity:"0.1"}),J__namespace.createElement("path",{fill:"#fff",d:"M337.43 271.74h.61v10.41h-.61z"}),J__namespace.createElement("path",{fill:"#fff",d:"M337.74 272.22c3.2-.86 6.41.85 9.62 0v7.08c-3.21.85-6.42-.85-9.62 0Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M356.97 262.63h29.76v28.63h-29.76z"}),J__namespace.createElement("path",{fill:"#fff",d:"M375.2 282.28h-6.61l-.4-8.78h7.32zM367.26 272.86h9.2v.64h-9.2z"}),J__namespace.createElement("path",{fill:"#fff",d:"M373.5 273.18h-.48v-1.09h-2.33v1.09h-.48v-1.57h3.29z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M371.61 274.34h.48v6.87h-.48zM369.824 274.324l.48-.02.29 6.874-.48.02zM373.116 281.192l.294-6.873.48.02-.294 6.874z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M297.45 319.89h29.76v28.63h-29.76z",opacity:"0.3"}),J__namespace.createElement("path",{fill:"#fff",d:"M312.33 329a5.21 5.21 0 1 0 5.21 5.21 5.2 5.2 0 0 0-5.21-5.21m-2.43 5.73a.52.52 0 0 1-.52-.52.52.52 0 1 1 1 0 .52.52 0 0 1-.48.52m2.43 0a.53.53 0 0 1-.52-.52.52.52 0 0 1 .52-.52.52.52 0 0 1 .52.52.52.52 0 0 1-.52.52m2.44 0a.52.52 0 0 1-.52-.52.52.52 0 1 1 1 0 .52.52 0 0 1-.48.52"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M327.21 319.89h29.76v28.63h-29.76z",opacity:"0.1"}),J__namespace.createElement("path",{fill:"#fff",d:"M337.43 329h.61v10.41h-.61z"}),J__namespace.createElement("path",{fill:"#fff",d:"M337.74 329.48c3.2-.85 6.41.85 9.62 0v7.08c-3.21.85-6.42-.85-9.62 0Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M356.97 319.89h29.76v28.63h-29.76z"}),J__namespace.createElement("path",{fill:"#fff",d:"M375.2 339.54h-6.61l-.4-8.78h7.32zM367.26 330.12h9.2v.64h-9.2z"}),J__namespace.createElement("path",{fill:"#fff",d:"M373.5 330.44h-.48v-1.09h-2.33v1.09h-.48v-1.57h3.29z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M371.61 331.61h.48v6.87h-.48zM369.832 331.583l.48-.02.29 6.874-.48.02zM373.096 338.441l.295-6.873.48.02-.295 6.874z"})),J__namespace.createElement("g",{id:"freepik--Character--inject-79"},J__namespace.createElement("path",{fill:"#263238",d:"M88.58 261.92a73.2 73.2 0 0 0 12 11.66c-4.73-14.34 2.72-42.74 2.74-38.45.09 20.5 7.67 44.61 12.11 46.69h.08c12.19 4.4 24.33 3.52 35 .3v-.07c-6.53-16.48.28-45.52.54-43.6 2.93 20.56 15.19 34.9 17.74 35.43 11.42-6.95 18.4-14.85 17.25-16.06-8.32-8.8-12.88-27.78-16.4-47.56-3.5-19.5-3.51-37.32-10.44-55.57-6.36-16.7-24.85-23.67-37.3-18.59-32.71 13.36-38.33 119.75-33.32 125.82"}),J__namespace.createElement("path",{fill:"#263238",d:"M124.07 135.38a19.4 19.4 0 0 0-7.42 3.78 46.3 46.3 0 0 0-6.12 5.76 79 79 0 0 0-9.4 13.9c-5.43 9.83-9 20.58-11.61 31.44A197 197 0 0 0 85 223.45c-.18 2.79-.2 5.58-.3 8.37l-.05 8.37.28 8.35.52 8.34v-8.35l.15-8.34.31-8.33c.19-2.77.29-5.55.55-8.31a215 215 0 0 1 4.9-32.87 133.3 133.3 0 0 1 11-31.22 81.7 81.7 0 0 1 8.85-14 45.6 45.6 0 0 1 5.75-6 29 29 0 0 1 3.36-2.42 13.8 13.8 0 0 1 3.75-1.66M187.82 255.16a143 143 0 0 1-5.82-13.23c-1.78-4.48-3.39-9-4.78-13.62s-2.64-9.24-3.6-13.93-1.76-9.48-2.64-14.22c-1.87-9.48-3.73-19-6.15-28.35-1.24-4.68-2.56-9.34-4.19-13.91a66 66 0 0 0-2.84-6.7 17.6 17.6 0 0 0-4.21-5.87 18.8 18.8 0 0 1 3.76 6.08 68 68 0 0 1 2.43 6.78c1.44 4.59 2.6 9.27 3.66 14 2.12 9.4 4 18.86 5.71 28.35.94 4.74 1.79 9.47 2.82 14.23a125 125 0 0 0 3.89 14 138.7 138.7 0 0 0 11.96 26.39"}),J__namespace.createElement("path",{fill:"#37474f",d:"M209.85 448.53h-78.24q-1-3.91-2-7.84-.65-2.58-1.31-5.15c0-.11-.05-.21-.08-.32l-1.71-6.72c-.06-.22-.12-.44-.17-.66-.43-1.71-.87-3.42-1.29-5.11q-1.64-6.37-3.22-12.61c-.4-1.58-.8-3.17-1.21-4.73a1.4 1.4 0 0 0-.05-.22c-.25-1-.51-2-.76-3-1.63-6.38-3.2-12.57-4.7-18.49-.18-.7-.36-1.37-.54-2.05-1.32-5.21-2.58-10.17-3.77-14.83l-.5-2c-.29-1.15-.57-2.27-.86-3.37q-.39-1.5-.75-2.94c-.72-2.83-1.41-5.49-2-8-.1-.41-.21-.8-.3-1.19-.9-3.49-1.69-6.62-2.38-9.32-.13-.48-.24-.94-.36-1.39-.25-1-.49-1.92-.7-2.77-.11-.43-.21-.84-.32-1.23l-1.47-5.77h74.54s17.79 61.32 34.15 119.71"}),J__namespace.createElement("path",{fill:"#263238",d:"M144 448.53h-2.2q-2-7.87-3.92-15.74l-1.5-6Q134.7 420 133 413.17c0-.2-.09-.41-.14-.61-5.36-21.71-10.62-43.47-15.38-65.32-.06-.26-.12-.52-.17-.78a.11.11 0 1 1 .22 0l.07.26c6 21.41 11.61 43 17 64.58.11.37.2.75.29 1.12.45 1.78.89 3.54 1.34 5.31.62 2.51 1.26 5 1.89 7.53q2.98 11.61 5.88 23.27"}),J__namespace.createElement("path",{fill:"#263238",d:"m173.28 328.86-10.59 53-.48 2.37-.75 3.77-1.2 6-1.11 5.59v.25l-.21 1-9.49 47.56h-17.84q-1-3.91-2-7.84-.65-2.58-1.31-5.15c0-.11-.05-.21-.08-.32-.58-2.24-1.14-4.48-1.71-6.72-.06-.22-.12-.44-.17-.66-.43-1.71-.87-3.42-1.29-5.11q-1.64-6.37-3.22-12.61c-.4-1.58-.8-3.17-1.21-4.73a1.4 1.4 0 0 0-.05-.22c-.25-1-.51-2-.76-3-1.63-6.38-3.2-12.57-4.7-18.49l-.54-2.05c-1.32-5.21-2.58-10.17-3.77-14.83-.17-.67-.33-1.33-.5-2-.29-1.15-.57-2.27-.86-3.37q-.39-1.5-.75-2.94c-.72-2.83-1.41-5.49-2-8-.1-.41-.21-.8-.3-1.19-.9-3.49-1.69-6.62-2.38-9.32-.13-.48-.24-.94-.36-1.39-.25-1-.49-1.92-.7-2.77-.11-.43-.21-.84-.32-1.23l-1.47-5.77Z"}),J__namespace.createElement("path",{fill:"#37474f",d:"M173.29 328.83c0 .42-.31 4.84-1 11.59a332 332 0 0 1-7 42.19 190 190 0 0 1-2.7 10c-.66 2.26-1.38 4.5-2.15 6.62l-.06.19-1.3.49a148 148 0 0 0-20.33 10.29s0 .15 0 .42c-.05 1.48-.26 6.79-.56 14.57-.1 2.32-.19 4.86-.3 7.58-.18 4.75-.39 10.07-.6 15.74H62.37c1-12.59 1.94-25.37 2.9-37.76 0 0-7-19.61-6.24-29.52 1.89-24 12.65-52.39 12.65-52.39Z"}),J__namespace.createElement("path",{fill:"#263238",d:"m147.73 381.52.09-6c.06-3.66.31-7.32.45-11 .32-8.29.69-16.61 1.39-24.88 0-.2.35-.2.36 0 .12 3.29.19 6.57.18 9.86s.1 6.58.09 9.86c0 6.52 0 13-.27 19.56-.09 2.51-1 7.12 2.62 7.4 2.88.22 4.55-2.81 5.06-5.22a56.3 56.3 0 0 0 .68-9.09q.19-5 .21-9.93c0-7.21.17-14.4.36-21.6 0-.21.33-.19.36 0a219 219 0 0 1 1.39 21.87c0 3.5 0 7-.15 10.51-.11 3.27-.05 6.76-1.06 9.91-.79 2.47-2.58 4.84-5.2 5.49a1 1 0 0 0-.16 0 .25.25 0 0 1 .13.19c.11 1.15.3 2.3.33 3.46s0 2.31-.1 3.45a23 23 0 0 1-.42 3.49 13 13 0 0 1-.41 1.63c-.18.56-.48 1-.71 1.55a.21.21 0 0 1-.4-.07c0-.19 0-.38-.06-.56a.3.3 0 0 0 0-.1 9 9 0 0 1-.07-1c0-.56.06-1.12.1-1.68.09-1.12.24-2.25.39-3.36s.23-2.24.36-3.36.35-2.29.45-3.45a.2.2 0 0 1 .07-.11 5.13 5.13 0 0 1-5.35-2.42 8.85 8.85 0 0 1-.71-4.4"}),J__namespace.createElement("path",{fill:"#263238",d:"M132.38 412.93a63 63 0 0 1 7.41-4.88 72 72 0 0 1 8.45-4.38c5.7-2.47 11.58-4.16 17.46-6.11.17-.06.29.24.12.3-5.7 2.27-11.16 5.28-16.66 8-2.71 1.33-5.45 2.59-8.21 3.81s-5.52 2.64-8.35 3.68c-.22.05-.39-.28-.22-.42M87.91 363.26c4 0 15.85.15 22-5.61 2.6-2.44 4-6 5.13-9.25a87 87 0 0 0 3.12-11.23c0-.19.31-.12.32.05a43.4 43.4 0 0 1-1.65 12.78c-1 3.51-2.27 7.44-5.11 9.91s-7.06 3.51-10.89 4a50 50 0 0 1-12.93-.18.22.22 0 0 1 .01-.47M183.92 362.71c-1.8.12-7.13.68-10.32-4.84-1.35-2.35-2.24-5.85-3-9.05-.87-3.62-1.59-7.32-2.25-11.1 0-.18-.15-.11-.14.06a96 96 0 0 0 1.69 12.67c.7 3.47 1.59 7.34 3.05 9.71a7.35 7.35 0 0 0 5.21 3.59 10.34 10.34 0 0 0 5.81-.61c.11-.05.08-.44-.05-.43M82.5 335.16c-.1.37-9.85 37.12-9.4 46s5.66 26.85 5.68 27-.93 15.89-2.34 40.34h-1.9l2.33-40.12c-.22-1.33-5.24-18.4-5.68-27.1-.48-9.22 9-45.12 9.45-46.64a1 1 0 0 1 1.86.49Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M148.93 222.39c38.43 33.87 74.13 71 77.1 90.17 4.12 26.5-12.12 34.05-19.43 34.2-19.92.42-57-79.89-69.94-110.57-12.55-29.78 3.83-21.19 12.27-13.8"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m175.25 328.83-5.36-33.68s13.34-13.8 6.44-28.26c-3.48-7.33-27.17-43-39.82-52-11.87-8.42-25.94-1.43-31.21 7.68C92 245.56 79.37 272 71.68 328.86Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M154.09 290.8a109 109 0 0 0-16 2.95c-2.6.72-5.14 1.56-7.68 2.45-1.26.44-2.54.84-3.82 1.24a17.4 17.4 0 0 1-4.1.86.1.1 0 0 0 0 .19 29 29 0 0 0 4-.15 28 28 0 0 0 3.77-.79c2.64-.71 5.24-1.53 7.88-2.26 5.3-1.48 10.61-3 16-4.05.28-.05.2-.47-.05-.44M167.51 295.31a120 120 0 0 0-13.38-.38c-2.24.07-4.45.27-6.67.53-1.06.13-2.12.27-3.18.43s-2.3.5-3.46.65c-.12 0-.12.21 0 .19 1.1-.11 2.22 0 3.33-.09l3.33-.15c2.23-.1 4.46-.18 6.68-.3 4.46-.24 8.89-.43 13.35-.51a.19.19 0 0 0 0-.37"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M104 219.09c-35.82 28.1-71 76.67-71.24 103.83-.26 26.81 9.08 24.21 11.73 24 16.2-1.06 54.35-75.69 66-106.11 11.51-30.16 2.31-28.67-6.49-21.72"}),J__namespace.createElement("path",{fill:"#263238",d:"M66 326c1.88-3.38 3.81-6.72 5.63-10.12l5.58-10.15c3.68-6.78 7.42-13.53 11-20.37s7.27-13.6 10.79-20.46q2.67-5.13 5.2-10.33c1.75-3.44 3.34-6.95 5-10.46a208 208 0 0 1-8.86 21.43c-3.28 7-6.85 13.87-10.43 20.72s-7.45 13.55-11.4 20.19S70.46 319.68 66 326"}),J__namespace.createElement("path",{fill:"#263238",d:"M105.39 253.1a33 33 0 0 1 2.21-3.51c.4-.55.78-1.11 1.21-1.64s.83-1.1 1.31-1.63a10.4 10.4 0 0 1-1.76 3.81 11.5 11.5 0 0 1-2.97 2.97"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M214.82 273.31c-1.88-12.59-5.64-30.14-10.18-33.77-4.78-3.81-22.09-16.55-27.07-18.21s-27.18-9.83-31.22-7.44c-3.23 1.92.72 10.43 11.29 14.41 9.28 3.5 14.08 6.8 16.74 7.92s9.29 9.79 7.56 13.68c-1 2.29-7.61 5-11.75 3.21s-5.25-10-10-13.76-13.05-3.23-13.51-1 2.3 3.26 6.63 10.84c2.79 4.87 3.1 16.63 9.39 25 3.16 4.2 8.72 15.42 8.72 15.42Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M155.75 235.93a8.23 8.23 0 0 1-4.13-1.82 3.12 3.12 0 0 1-1-2.72 1.56 1.56 0 0 1 .39-1c.08-.06 0-.16-.08-.08a4.5 4.5 0 0 1-.38.51 2.6 2.6 0 0 0-.23.47 2.8 2.8 0 0 0-.16 1 3.37 3.37 0 0 0 .84 2.09 5.62 5.62 0 0 0 4.75 1.65c.07.02.07-.09 0-.1"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M204.64 239.54c-4.08-6.25-14.45-17.48-24.65-21.27-6.89-2.57-30.4 9.19-29.66 13.7s4.77 4.48 10.74 3.7c2.17-.28 13.64-4.53 15.63-2.14 2.86 3.44 6.57 15.27 6.57 15.27Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M150.9 230.2c2.87-4.87 9.25-7.52 15.62-9.62a.08.08 0 0 1 0 .15c-1.62.54-12 5.43-15.6 9.54.01.05-.05-.03-.02-.07"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M204.64 239.54c-4.08-6.25-14.45-17.48-24.65-21.27-6.89-2.57-25.43 12.35-24.69 16.86s6.54 4.81 12.92 2.51c2.06-.74 9-5.7 10.94-3.31 2.86 3.44 9.83 12 9.83 12Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M185 241c-.66-1-.88-1.33-1.55-2.3s-1.36-1.94-2.09-2.85a8.9 8.9 0 0 0-2.15-2.22 4.56 4.56 0 0 0-2.84-.52c-2.22.23-4.21 1.66-6.08 2.76-2.09 1.23-6.44 3.23-9.78 2.91a6.5 6.5 0 0 1-2.65-.68 4.2 4.2 0 0 1-1.59-1.25c-1.48-2.44.3-5.27 2.13-7.28 3.42-3.74 8-6.47 12.51-8.73 1.1-.55 2.21-1.08 3.33-1.6a9.9 9.9 0 0 1 4-1.2c2.32-.05 6.15 2.27 7.34 3 .09.05.16-.1.07-.15-1.44-.88-5-3.74-8.75-3.51a11.7 11.7 0 0 0-3.89 1.36c-1.3.57-2.58 1.19-3.85 1.84a54.5 54.5 0 0 0-7.1 4.3 22.3 22.3 0 0 0-5.78 5.59 6.52 6.52 0 0 0-.34 6.69c1 1.69 3.23 2.08 4.24 2.19a11.2 11.2 0 0 0 2.95 0 48 48 0 0 0 6.41-2c2-.83 3.84-2.22 5.92-2.87a4 4 0 0 1 3 .16 10.3 10.3 0 0 1 2.28 2.05 31.3 31.3 0 0 1 3.84 4.45c.35.44.66.3.42-.14"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M207.67 245c-1.51-3-4.12-15.29-6.54-19.05s-13.43-16.73-18.5-16.11c-6.37.78.4 12.21 3.79 16.91s2.91 12.75 2.91 12.75Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M181.68 219c1.2 1.48 2.27 3.13 3.32 4.73a38 38 0 0 1 2.9 4.67 16.7 16.7 0 0 1 1.3 5.24c.09.89.13 1.77.15 2.66s-.07 2 0 2.93c0 .1-.16.12-.16 0a43 43 0 0 0-.75-5.28 22.4 22.4 0 0 0-1.65-5.25c-1.53-3.33-3.74-6.28-5.3-9.59-.09-.18.1-.27.19-.11M189.26 240.85c.44 3.06-.44 6.16-1.54 9a31 31 0 0 1-2 4.16 35 35 0 0 1-2.6 3.79 35 35 0 0 0-4.56 7.49 36.5 36.5 0 0 0-2.36 8.58 23.8 23.8 0 0 1 1-9.07 27.5 27.5 0 0 1 4.39-8.11 43 43 0 0 0 4.7-7.46c1.31-2.67 2.63-5.37 2.97-8.38"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M204.75 345.84c-12.44-1.68-20.57-22.48-34.77-59-2.5-6.42 30-45.89 34.42-40 5.57 7.42 20.57 48.73 22.14 60 3.11 22.16-7.27 40.96-21.79 39"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m177.47 307.2 40.09-38.95s11.39 33.52 10.32 47.57-6 30.06-22.88 30.94c-12.66.66-27.53-39.56-27.53-39.56"}),J__namespace.createElement("path",{fill:"#263238",d:"M190.44 334.16c-1.45-2.05-2.74-4.2-4-6.36s-2.42-4.37-3.55-6.6-2.17-4.52-3.09-6.85a42.7 42.7 0 0 1-2.33-7.15c1.06 2.27 2.18 4.49 3.31 6.71l3.37 6.66c1.09 2.24 2.2 4.47 3.24 6.73s2.11 4.53 3.05 6.86M186.11 314c1.94-2.14 4.08-4.12 6.14-6.13s4.16-4 6.28-6q6.33-5.91 12.77-11.72 1.77-1.59 3.55-3.15c1.28-1.11 2.7-2.06 4-3.18a.11.11 0 0 1 .14.16c-1 1-1.91 2.11-2.91 3.12s-2.1 2.07-3.17 3.09q-3.13 3-6.3 5.95c-4.23 3.94-8.47 7.87-12.82 11.68-2.46 2.15-4.87 4.39-7.45 6.39a.15.15 0 0 1-.23-.21"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M114.59 216c.29 2 8.74 16.1 19.94 15.42C141 231 136.6 218 136.6 218l5.63-17.76-21.47-16.41s-6.28 31.3-6.17 32.17"}),J__namespace.createElement("path",{fill:"#263238",d:"M118.46 195.56a35.53 35.53 0 0 0 18.46 21.49l5.32-16.76-21.48-16.41s-1.04 5.27-2.3 11.68"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M167.54 175.35c.64 30.5-17.56 34.33-24.14 34.46-6 .12-26.32-.24-30.11-30.52s10.2-40.22 23.84-41.21 29.78 6.76 30.41 37.27"}),J__namespace.createElement("path",{fill:"#263238",d:"M160.39 172.9a20 20 0 0 1-2-.58 3.43 3.43 0 0 1-2-1 1.08 1.08 0 0 1 .1-1.32 2.7 2.7 0 0 1 2.69-.43 4 4 0 0 1 2.38 1.58 1.16 1.16 0 0 1-1.17 1.75M139.48 172a18 18 0 0 0 2.09-.29 3.36 3.36 0 0 0 2.08-.69 1.08 1.08 0 0 0 .1-1.32 2.67 2.67 0 0 0-2.6-.82 3.87 3.87 0 0 0-2.58 1.21 1.16 1.16 0 0 0 .91 1.91M143.26 180c0-.08-.16.09-.17.18 0 2.07-.43 4.45-2.34 5-.06 0-.06.12 0 .12 2.32-.19 2.81-3.3 2.51-5.3"}),J__namespace.createElement("path",{fill:"#263238",d:"M141.52 177.72c-3.32-.43-3.93 6.26-.85 6.65s3.64-6.3.85-6.65"}),J__namespace.createElement("path",{fill:"#263238",d:"M140.18 178c-.62.33-1.25.94-2 1s-1.38-.75-1.85-1.47c-.05-.07-.11 0-.12.07-.13 1.28.24 2.63 1.6 2.95s2.23-.77 2.67-2c.12-.36-.05-.73-.3-.55M155.81 180.19c0-.08.15.12.14.2-.27 2.06-.23 4.47 1.58 5.34.05 0 0 .13 0 .11-2.29-.54-2.31-3.74-1.72-5.65"}),J__namespace.createElement("path",{fill:"#263238",d:"M157.87 178.21c3.35.08 3 6.77-.15 6.71s-2.66-6.77.15-6.71"}),J__namespace.createElement("path",{fill:"#263238",d:"M159.24 178.74c.51.38 1 1.06 1.62 1.14s1.32-.61 1.83-1.27c.05-.07.1 0 .1.08 0 1.28-.55 2.59-1.79 2.76s-1.9-1-2.13-2.28c-.04-.24.13-.59.37-.43M143.23 195.94c.43.55.83 1.28 1.57 1.44a5.5 5.5 0 0 0 2.28-.21c.07 0 .13.06.08.11a2.81 2.81 0 0 1-2.77.77A2.22 2.22 0 0 1 143 196c0-.12.17-.14.23-.06M152.48 189.13s.19 3.12.07 4.58c0 .14-.37.18-.86.17h-.06a7 7 0 0 1-6.54-3.12c-.09-.15.11-.29.23-.19a10.5 10.5 0 0 0 6.2 2.31c.13-.39-.5-5.34-.26-5.34a12.6 12.6 0 0 1 3.25 1c-.19-6.53-1.44-13-1.53-19.47a.19.19 0 0 1 .38-.07c1.78 6.66 2.17 14.17 2.55 20.9.09.85-2.86-.48-3.43-.77"}),J__namespace.createElement("path",{fill:"#263238",d:"M114 178.59c7.51 1 13.56-21.58 14.27-24.36-.35 1.78-2.21 11.18-1.56 11.68a7.2 7.2 0 0 0 2.42 0 23 23 0 0 1 .84-3.33c.15-.51 0 1.17 0 3.26.44 0 .92-.11 1.44-.15a27.7 27.7 0 0 1 1.93-7.06c.37-.85-.07 3.2.19 6.85 5.38-.52 13.13-1.08 20.12-.14 1.88.25 3.48.54 4.89.85.48-2.78.66-5.81.76-5.13a27.5 27.5 0 0 1 .29 5.37c.76.18 1.46.35 2.09.52.86-3.9.05-10.51.52-9.44a28.1 28.1 0 0 1 2.16 10.35c2.6 1 3.25 1.62 3.45.94.34-1.24.67-12.52-6.55-22.06-7.84-10.36-26.08-15.72-38.86-4 0 0-9.6 4.18-12.5 13s-.25 22.26 4.1 22.85"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M118.47 179.45s-6-9.94-10.49-7.85-.38 16.19 4.56 18.41a5.16 5.16 0 0 0 7.08-2.32Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M109.25 175.61a.07.07 0 0 0 0 .13c3.46 1.68 5.11 5.09 6.2 8.59-1-1.38-2.36-2.2-4.2-1.06-.1.06 0 .21.08.2a3.17 3.17 0 0 1 3.41 1.33 16 16 0 0 1 1.49 2.93c.14.33.73.2.63-.17a.3.3 0 0 1 0-.09c.32-4.47-2.78-11.08-7.61-11.86"}),J__namespace.createElement("path",{fill:"#37474f",d:"M144.92 230.33 128 282.65c-.67 1.52 0 2.84 1.57 2.94l27.45 1.8a4.46 4.46 0 0 0 4-2.58l16.89-52.32c.67-1.53 0-2.85-1.56-3l-27.45-1.8a4.45 4.45 0 0 0-3.98 2.64"}),J__namespace.createElement("path",{fill:"#455a64",d:"m148.18 230.51-16.89 52.32c-.67 1.53 0 2.85 1.57 2.95l27.45 1.8a4.46 4.46 0 0 0 4-2.58l16.89-52.33c.67-1.52 0-2.84-1.56-2.94l-27.45-1.8a4.44 4.44 0 0 0-4.01 2.58"}),J__namespace.createElement("path",{fill:"#263238",d:"M155.55 233.43a2.34 2.34 0 1 1-2.13-2.53 2.34 2.34 0 0 1 2.13 2.53"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M40.77 346.9c12 1.65 26.93-7.66 65.68-35.95 5.36-3.91-12.09-49.18-18-45.3-7.48 4.9-35.46 25.51-37.31 27.28-15.68 14.89-18.5 52.85-10.37 53.97"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M74.58 279.34s11-15.48 19.35-21.82c11.14-8.49 24.25-11.24 29.81-12.06 11.61-1.71 40.87 2.19 41.22 10.81.32 7.81-29.39 2.32-29.39 2.32s31.21.6 29.87 10.07-35.44 1.13-35.44 1.13 32.06 1.33 29.13 10.88c-2.22 7.21-33.55 1.4-33.55 1.4s27.54 1.34 25.58 8.86c-2.17 8.3-31.42 4.75-31.42 4.75-8.2 18.27-20 23.41-28.51 26.25-2.11.69-16.65-42.59-16.65-42.59"}),J__namespace.createElement("path",{fill:"#263238",d:"M124.79 257.69c3.67-.07 7.38-.15 11 .11s7.32.66 10.94 1.26a63 63 0 0 1 13.87 3.69c-8.16-2.53-21.25-3.68-24.91-3.95s-7.3-.71-11-1c-.01.02.01-.11.1-.11M123.59 270.89c4.69.13 9.35.08 14 .41s9.05 1.05 13.68 1.7c.35.05.21.22-.15.18-4.65-.46-9-.53-13.64-.94s-9.29-1-13.94-1.24c-.03 0-.02-.11.05-.11M120.53 282c7.18-.18 14.37 1 21.41 2.26.35.07.14.27-.22.23-7.11-.89-12.67-1.63-21.18-2.24-.14.03-.16-.25-.01-.25"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m74.58 273.19 15.27 55.64s-41 24.11-50 17.74-3.14-38.51 7.15-50.76c4.22-5.11 27.58-22.62 27.58-22.62"}),J__namespace.createElement("path",{fill:"#263238",d:"m75.09 275-.6-1.83.15.06c-3.87 3.16-7.75 6.29-11.58 9.48s-7.67 6.37-11.31 9.74a57 57 0 0 0-5.2 5.24 43 43 0 0 0-4.13 6.1 47 47 0 0 0-4.94 14 39.4 39.4 0 0 1 4-14.46 35.8 35.8 0 0 1 4.08-6.4 58 58 0 0 1 5.25-5.47c3.71-3.37 7.6-6.53 11.54-9.6s8-6 12.18-8.75l.12-.08v.13ZM65.61 287c.93 2.73 1.64 5.55 2.41 8.33s1.52 5.58 2.23 8.39c1.42 5.6 2.81 11.21 4.12 16.84.36 1.54.72 3.08 1 4.63s.51 3.35.88 5a.1.1 0 0 1-.2.05c-.37-1.37-.94-2.69-1.34-4.06s-.81-2.83-1.18-4.26q-1.11-4.19-2.18-8.39c-1.43-5.6-2.83-11.21-4.07-16.86-.7-3.18-1.5-6.38-2-9.6a.15.15 0 0 1 .33-.07M89.85 328.83c.27.52.25.08.19-.24s-.69-3-1.28-4.7c-.06-.17-.32-.47-.22.14a47 47 0 0 0 1.31 4.8"}))),Rp=GU;function uc(){return J__namespace.default.createElement("svg",{width:"9",height:"14",viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.47273 0.292893C8.86326 0.683417 8.86326 1.31658 8.47273 1.70711L3.17984 7L8.47273 12.2929C8.86326 12.6834 8.86326 13.3166 8.47273 13.7071C8.08221 14.0976 7.44904 14.0976 7.05852 13.7071L1.05852 7.70711C0.667994 7.31658 0.667994 6.68342 1.05852 6.29289L7.05852 0.292893C7.44904 -0.0976311 8.08221 -0.0976311 8.47273 0.292893Z",fill:"#0B89CE"}))}function tm({isMobile:e=false,onBack:t,unreadCount:o=0}){var H,z,G,R,V,_,$;let[r,n]=usehooks.useToggle(false),{isDeletingMessages:a,deleteMessages:s}=jn(),{selectedChat:i,onSelectChat:l,onSelectChatHeaderOption:d,chatHeaderOption:c,selectedMessageIds:p,clearSelectedMessages:f}=ce(),[u,g]=J.useState(false),[m,v]=J.useState(false),[h,b]=J.useState(false),{searchMessage:x,onSearchMessage:w}=ce(),{mutate:C}=Yr("favorites"),A=J.useRef(null),k=J.useRef(null),{locale:N,user:I,page:P,chatForPage:S}=M();if(J.useEffect(()=>{if(e)return;let oe=K=>{u&&k.current&&A.current&&!k.current.contains(K.target)&&!A.current.contains(K.target)&&g(false);};return document.addEventListener("mousedown",oe),()=>{document.removeEventListener("mousedown",oe);}},[u,e]),!i)return null;let D=()=>{var oe,K;if(i!=null&&i.isGroup)return i==null?void 0:i.name;if(S&&(P!=null&&P.name))return P==null?void 0:P.name;if(i!=null&&i.participants&&i.participants.length>0){let ne=i.participants.find(me=>(me==null?void 0:me.id)!==(I==null?void 0:I.id));return (oe=ne==null?void 0:ne.name)!=null?oe:O(N,"someone")}return (K=i==null?void 0:i.name)!=null?K:O(N,"someone")},T=()=>{var oe;if(i!=null&&i.isGroup)return i==null?void 0:i.avatar;if(S&&(P!=null&&P.logo))return P==null?void 0:P.logo;if(i!=null&&i.participants&&i.participants.length>0){let K=i==null?void 0:i.participants.find(ne=>(ne==null?void 0:ne.id)!==(I==null?void 0:I.id));return (oe=K==null?void 0:K.avatar)!=null?oe:i==null?void 0:i.avatar}return i==null?void 0:i.avatar},L=D(),E=T(),B=[{id:i!=null&&i.isGroup?"group-details":"info-contact",label:i!=null&&i.isGroup?O(N,"group-details"):O(N,"contact.info"),icon:J__namespace.default.createElement(k2,null),destructive:false},...i!=null&&i.isGroup&&(i!=null&&i.isGroupOwner)?[{id:"add-participants",label:O(N,"add-participants"),icon:J__namespace.default.createElement(lucideReact.UserRoundPlus,{size:14}),destructive:false}]:[],{id:"select-messages",label:O(N,"select.messages"),icon:J__namespace.default.createElement(uC,null),destructive:false},{id:"close-chat",label:O(N,"close.chat"),icon:J__namespace.default.createElement(B1,null),destructive:true},{id:"clear-chat",label:O(N,"clear.chat"),icon:J__namespace.default.createElement(Sr,null),destructive:true}],W=(oe,K)=>{switch(oe.stopPropagation(),K){case "info-contact":Ae(),window.open(`/profile/${N}/${i==null?void 0:i.slug}`,"_blank");break;case "group-details":b(true);break;case "clear-chat":n(true);break;case "close-chat":l==null||l(null);break;case "add-to-favorites":C({conversationId:i==null?void 0:i.conversationId,value:true});break;case "select-messages":d==null||d("select-messages");break;case "add-participants":d==null||d("add-participant");break;}g(false);},q=()=>{if(!A.current)return {top:0,left:0};let oe=A.current.getBoundingClientRect();return {top:oe.bottom+8,left:oe.right-264}};if(c==="select-messages")return J__namespace.default.createElement("div",{className:`sticky w-full ${e?"p-4 border-b border-gray-200":"h-[3.8125rem] rounded-[1rem] p-3"} flex items-center justify-between bg-white`},J__namespace.default.createElement("div",{className:"flex items-center gap-3"},J__namespace.default.createElement("button",{onClick:()=>{f(),d==null||d("filter-all");},className:"p-2 rounded-full hover:bg-gray-200"},J__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5 text-gray-600"})),J__namespace.default.createElement("span",{className:"text-sm text-gray-700"},p==null?void 0:p.length," ",O(N,"selected-label"))),J__namespace.default.createElement($p,{selectedMessageIds:p,onSelectChatHeaderOption:d}));if(e)return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(react.motion.div,{key:"chat-header-mobile",initial:{y:-10,opacity:0},animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{duration:.3},className:"p-4 bg-white flex items-center justify-between shadow-sm"},J__namespace.default.createElement("div",{className:"flex items-center gap-3 flex-1 min-w-0"},J__namespace.default.createElement("button",{onClick:t,className:"relative p-1 rounded-full hover:bg-gray-100 flex flex-row items-center gap-2 flex-shrink-0"},J__namespace.default.createElement(uc,null),o>0&&J__namespace.default.createElement("span",{className:"bg-primary text-white text-[10px] font-bold w-[1.313rem] h-[1.313rem] flex items-center justify-center rounded-full"},o>99?"99+":o)),J__namespace.default.createElement("div",{className:`flex-1 min-w-0 gap-2 items-center ${i!=null&&i.isGroup?"cursor-pointer active:scale-95 active:shadow-lg transition-all duration-150":""}`,onClick:()=>(i==null?void 0:i.isGroup)&&b(true)},J__namespace.default.createElement("div",{className:"flex flex-row min-w-0 gap-2 items-center"},J__namespace.default.createElement(ae,{name:(H=i.name)!=null?H:"",src:i.avatar}),J__namespace.default.createElement("div",null,J__namespace.default.createElement("h2",{className:"font-semibold text-lg truncate"},i.name),i.isGroup?J__namespace.default.createElement("div",{className:"text-xs text-gray-500 truncate max-w-[12rem] flex-shrink"},(z=i.participants)==null?void 0:z.slice(0,3).map((oe,K)=>{var ne,me,Me;return J__namespace.default.createElement("span",{key:oe.id},(ne=oe.name)==null?void 0:ne.split(" ")[0],K<Math.min(((Me=(me=i.participants)==null?void 0:me.length)!=null?Me:0)-1,2)&&", ")}),((R=(G=i.participants)==null?void 0:G.length)!=null?R:0)>3&&J__namespace.default.createElement("span",null," e ",((_=(V=i.participants)==null?void 0:V.length)!=null?_:0)-3," mais")):J__namespace.default.createElement("span",{className:"text-primary"},i.isOnline?"Online":""))))),J__namespace.default.createElement("div",{className:"flex items-center gap-1"},J__namespace.default.createElement("button",{ref:A,onClick:()=>g(!u),className:"p-2 rounded-full hover:bg-gray-100 flex-shrink-0 text-2xl leading-none text-gray-400"},"\u22EE"))),Y());return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"sticky w-full h-[4.5rem] flex items-center justify-between bg-[#F1F5F9] rounded-[1rem] p-3"},J__namespace.default.createElement(react.AnimatePresence,{mode:"wait",initial:false},m?J__namespace.default.createElement(react.motion.div,{key:"search-mode",className:"flex items-center gap-2 w-full",initial:{opacity:0,x:50},animate:{opacity:1,x:0},exit:{opacity:0,x:-50},transition:{duration:.25,ease:"easeInOut"}},J__namespace.default.createElement("button",{onClick:()=>{v(false),w==null||w("");},className:"p-2 rounded-full hover:bg-gray-200"},J__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5 text-gray-600"})),J__namespace.default.createElement(gt,{value:x!=null?x:"",onChange:oe=>w==null?void 0:w(oe.target.value),leftIcon:J__namespace.default.createElement(lucideReact.Search,{className:"w-5 h-5 text-gray-600"}),placeholder:O(N,"search-message-title"),className:"flex-1 !h-auto bg-white border-none rounded-lg"})):J__namespace.default.createElement(react.motion.div,{key:"normal-mode",className:"flex items-center justify-between w-full",initial:{opacity:0,x:-50},animate:{opacity:1,x:0},exit:{opacity:0,x:50},transition:{duration:.25,ease:"easeInOut"}},J__namespace.default.createElement("div",{className:'flex items-center gap-3 cursor-pointer hover:bg-gray-50 p-2.5 !rounded-md" : ""}',onClick:()=>{i!=null&&i.isGroup?b(true):(Ae(),window.open(`/profile/${N}/${i==null?void 0:i.slug}`,"_blank"));}},J__namespace.default.createElement(ae,{src:E,name:L!=null?L:"",className:"w-11 h-11"}),J__namespace.default.createElement("div",{className:"flex flex-col"},J__namespace.default.createElement("span",{className:"font-normal text-[1rem] text-[#050910]"},ht(L!=null?L:"")),i!=null&&i.participants&&(($=i==null?void 0:i.participants)==null?void 0:$.length)>2?J__namespace.default.createElement("span",{className:"text-[0.875rem] text-gray-500 font-normal truncate max-w-[12rem]"},i.participants.map(oe=>oe==null?void 0:oe.name).join(", ")):(i==null?void 0:i.isOnline)&&J__namespace.default.createElement("span",{className:"text-[0.875rem] text-primary font-normal"},"Online"))),J__namespace.default.createElement("div",{className:"flex items-center gap-2 relative"},J__namespace.default.createElement("button",{onClick:()=>v(true),className:"p-2 rounded-full hover:bg-gray-200"},J__namespace.default.createElement(lucideReact.Search,{className:"w-5 h-5 text-gray-600"})),J__namespace.default.createElement("button",{ref:A,className:"bg-none border-none text-gray-400 cursor-pointer text-2xl leading-none",onClick:()=>g(!u)},"\u22EE"))))),Y());function Y(){return J__namespace.default.createElement(J__namespace.default.Fragment,null,!e&&$W.createPortal(J__namespace.default.createElement(react.AnimatePresence,null,u&&J__namespace.default.createElement(react.motion.div,{ref:k,style:{position:"absolute",top:`${q().top}px`,left:`${q().left}px`,width:"16.5rem"},initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeOut"},className:"p-[1rem] z-[99999] rounded-[1rem] bg-white shadow-lg border border-gray-100",onClick:oe=>oe.stopPropagation()},B.map(oe=>J__namespace.default.createElement(re,{key:oe.id,align:"left",label:oe.label,leftElement:oe.icon,onClick:K=>W(K,oe.id),className:`group text-body-md flex items-center gap-2 w-full text-left px-[0.75rem] py-[0.5rem] hover:bg-primary hover:bg-opacity-10 text-sm whitespace-nowrap ${oe.destructive?"text-red-600 hover:bg-red-50 [&>svg_*]:fill-red-600":"text-gray-700"}`})))),document.body),e&&J__namespace.default.createElement(ro,{isOpen:u,onClose:()=>g(false),className:"z-[99999] h-[15.700rem]",title:O(N,"options")},J__namespace.default.createElement("div",{className:"flex flex-col gap-1 pb-4"},B.map(oe=>J__namespace.default.createElement(re,{key:oe.id,align:"left",label:oe.label,leftElement:oe.icon,onClick:K=>W(K,oe.id),className:`group text-body-lg flex items-center gap-3 w-full text-left px-4 py-3 hover:bg-gray-100 rounded-lg transition-colors ${oe.destructive?"text-red-600 [&>svg_*]:fill-red-600":"text-gray-700"}`})))),$W.createPortal(J__namespace.default.createElement(Xp,{isOpen:h,onClose:()=>b(false),selectedChat:i}),document.body),J__namespace.default.createElement(qe,{hideCloseButton:true,isLoading:a,closeOnClickOutside:!a,isOpen:r,onClose:()=>n(false),className:"w-[30rem] max-h-full !rounded-md p-4"},J__namespace.default.createElement("div",{className:"w-full flex flex-col items-center justify-center p-4 gap-2"},J__namespace.default.createElement("p",{className:"text-center text-body-md md:text-body-lg font-bold text-dark-1 "},O(N,"warning-on-clear-messages-title")),J__namespace.default.createElement("div",{className:"w-48 h-48"},J__namespace.default.createElement(Rp,null)),J__namespace.default.createElement("div",{className:"w-full flex items-center justify-between gap-4"},J__namespace.default.createElement(re,{disabled:a,onClick:()=>n(false),label:O(N,"no-button"),className:"p-3 border !bg-primary text-white flex-1 font-bold text-body-sm md:text-body-md bg-white"}),J__namespace.default.createElement(re,{isLoading:a,disabled:a,onClick:()=>s({input:{clearConversation:true,conversationId:i==null?void 0:i.id}},{onSuccess(){n(false);}}),className:"p-3 border border-primary text-primary font-bold text-body-sm md:text-body-md bg-white flex-1",label:O(N,"yes-button")})))))}}function jU(e){return J__namespace.createElement("svg",y({width:181,height:180,fill:"none"},e),J__namespace.createElement("path",{d:"M20.578 85.419s-3.453.605-1.239 8.136c2.214 7.531 4.003 11.39 4.003 11.39s.32 1.714-1.08 1.707c-1.4-.007-4.259-1.03-5.166.5-.94 1.588 0 3.427 2.24 5.31 2.239 1.883 7.023 6.189 7.44 6.577.418.389.764 1.217-.183 1.365-.947.147-7.73-.407-7.801 2.826-.072 3.233 7.041 7.452 7.812 7.92.77.468.9.867.749 1.307-.152.439-2.416.043-4.353-.036-1.936-.08-4.194.165-4.078 2.037.115 1.872 3.934 6.48 14.72 9.612l5.094 1.127 3.6-3.802c7.2-8.611 7.83-14.558 6.883-16.178-.947-1.62-2.956-.565-4.522.576-1.566 1.141-3.218 2.736-3.6 2.452-.381-.285-.478-.677-.104-1.502.374-.824 3.942-8.28 2.08-10.933-1.86-2.653-7.163 1.595-8.016 1.998-.853.403-1.051-.475-.915-1.029.137-.555 1.707-6.794 2.52-9.605.814-2.812.573-4.864-1.08-5.659-1.605-.767-3.416 1.681-4.568 2.458-1.152.778-1.836-.824-1.836-.824s-.662-4.205-3.013-11.693c-2.351-7.488-5.627-6.02-5.627-6.02",fill:"#EBEBEB"}),J__namespace.createElement("path",{d:"M38.787 146.46c-1.703-5.508-4.568-15.347-7.07-23.782a3572.108 3572.108 0 00-6.455-21.582l-1.99-6.53c-.235-.767-.415-1.365-.54-1.775-.058-.202-.105-.36-.138-.465-.032-.104-.04-.158-.04-.158s.022.05.055.155c.032.104.086.259.154.457.13.41.324 1.004.57 1.768a712.818 712.818 0 012.04 6.516c1.703 5.508 3.996 13.132 6.48 21.567 2.484 8.435 5.35 18.281 7.028 23.796",fill:"#E0E0E0"}),J__namespace.createElement("path",{d:"M21.063 108.75c.118.042.232.098.338.166.212.115.515.291.89.514.744.443 1.756 1.08 2.861 1.8l2.822 1.869.857.561a1.8 1.8 0 01.306.216 1.52 1.52 0 01-.338-.162 32.284 32.284 0 01-.886-.518 122.399 122.399 0 01-2.85-1.829l-2.834-1.847-.853-.55a1.663 1.663 0 01-.314-.22zM29.556 113.625c-.04-.025 1.188-2.16 2.736-4.795 1.548-2.635 2.84-4.73 2.88-4.709.04.022-1.185 2.16-2.736 4.792-1.552 2.631-2.84 4.734-2.88 4.712zM32.813 126.747c.08-.101.171-.194.27-.278l.763-.72a79.28 79.28 0 002.47-2.408 81.685 81.685 0 002.36-2.52c.282-.306.516-.569.72-.774a1.73 1.73 0 01.274-.274 1.898 1.898 0 01-.223.314c-.155.194-.36.475-.666.81a46.836 46.836 0 01-2.332 2.556c-.947.964-1.844 1.8-2.52 2.379a28.84 28.84 0 01-.8.681c-.095.091-.201.17-.316.234zM24.172 124.031c.122.009.243.033.36.072l.936.252c.785.22 1.868.537 3.064.897 1.195.36 2.271.691 3.049.939l.921.303c.115.03.225.075.328.133a1.472 1.472 0 01-.36-.072l-.936-.256c-.788-.219-1.872-.536-3.064-.893a154.871 154.871 0 01-3.052-.943l-.918-.302a1.43 1.43 0 01-.328-.13zM25.578 135.984c.15.017.3.05.443.098l1.199.32c1.011.277 2.4.67 3.938 1.116 1.537.446 2.92.853 3.924 1.159l1.18.36c.149.038.292.091.43.159a2.486 2.486 0 01-.444-.098l-1.184-.309a336.75 336.75 0 01-7.862-2.279l-1.181-.36a2.341 2.341 0 01-.443-.166zM36.445 139.052c.098-.131.208-.251.328-.36l.936-.944c.788-.799 1.872-1.904 3.035-3.157a134.889 134.889 0 002.926-3.261l.872-1.001c.102-.129.213-.249.334-.36a2.53 2.53 0 01-.284.392c-.194.249-.475.605-.835 1.037a91.36 91.36 0 01-2.88 3.294 70.76 70.76 0 01-3.075 3.128c-.406.389-.72.699-.971.908-.117.121-.246.23-.386.324z",fill:"#E0E0E0"}),J__namespace.createElement("path",{d:"M43.578 66.565c5.502-5.503 5.502-14.424 0-19.927-5.503-5.502-14.424-5.502-19.927 0-5.503 5.503-5.503 14.424 0 19.927s14.424 5.503 19.927 0z",fill:"#EBEBEB"}),J__namespace.createElement("path",{d:"M26.273 53.829a7.41 7.41 0 011.037-.612c.652-.36 1.559-.839 2.567-1.361l.13-.068v.169c-1.012-.44-1.916-.839-2.564-1.138a6.919 6.919 0 01-1.022-.518c.37.104.731.238 1.08.4.662.266 1.577.647 2.588 1.08a.093.093 0 010 .169l-.13.068c-1.007.522-1.922.986-2.591 1.31a7.723 7.723 0 01-1.095.5zM40.348 53.424a7.33 7.33 0 01-1.044-.435c-.637-.292-1.509-.72-2.47-1.174a.093.093 0 01-.043-.126.08.08 0 01.047-.043l.04-.018c.99-.436 1.89-.817 2.545-1.08a6.52 6.52 0 011.08-.4 6.997 6.997 0 01-1.023.522c-.64.3-1.53.72-2.52 1.134l-.043.022v-.173c.961.468 1.825.904 2.448 1.224.343.154.671.337.983.547zM24.156 56.79l18.645-.071s-1.224 8.6-9 8.759c-7.776.158-9.645-8.687-9.645-8.687z",fill:"#E0E0E0"}),J__namespace.createElement("path",{d:"M40.722 61.688c-1.635-2.16-4.45-3.269-7.168-3.2-2.718.068-5.324 1.195-7.538 2.771 0 0 2.451 4.32 7.78 4.22 5.327-.101 6.926-3.791 6.926-3.791z",fill:"#F5F5F5"}),J__namespace.createElement("path",{d:"M24.593 65.817a.945.945 0 01-.155-.125c-.097-.087-.245-.206-.418-.386a11.8 11.8 0 01-1.357-1.587 12.845 12.845 0 01-1.105-13.17c.307-.63.669-1.231 1.08-1.8.14-.204.27-.36.36-.45a.906.906 0 01.133-.147c-.13.22-.27.432-.421.637-.382.574-.72 1.176-1.012 1.8a13.051 13.051 0 001.08 13.036c.392.573.826 1.114 1.3 1.62.181.182.353.373.515.572zM25.664 46.156c0 .054-.36.195-.72.486-.36.292-.609.598-.655.569-.047-.029.133-.407.54-.72.226-.212.524-.331.835-.335zM44.578 63.456a11.074 11.074 0 001.411-2.74c.28-.992.417-2.02.407-3.052.085.296.12.604.105.91a7.2 7.2 0 01-1.314 4.191c-.167.26-.372.493-.609.691z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M161.848 77.271a8.554 8.554 0 10-12.099-12.097 8.554 8.554 0 0012.099 12.097z",fill:"#EBEBEB"}),J__namespace.createElement("path",{d:"M151.344 69.54a16.78 16.78 0 012.16-1.23l.083-.04v.17a16.591 16.591 0 01-2.16-1.038c.768.23 1.518.519 2.242.864.023.01.04.029.05.052a.102.102 0 01.001.07.097.097 0 01-.043.047l-.083.044a16.46 16.46 0 01-2.25 1.062zM159.884 69.297a15.85 15.85 0 01-2.16-.944.097.097 0 01-.047-.054.094.094 0 01.004-.072.116.116 0 01.046-.046h.025a15.354 15.354 0 012.233-.86c-.685.402-1.4.75-2.139 1.04h-.025v-.17c.716.313 1.406.682 2.063 1.106zM150.047 71.336l11.322-.043s-.742 5.224-5.469 5.32c-4.726.098-5.853-5.277-5.853-5.277z",fill:"#E0E0E0"}),J__namespace.createElement("path",{d:"M160.115 74.308a5.292 5.292 0 00-4.352-1.95 8.367 8.367 0 00-4.575 1.68 5.489 5.489 0 004.719 2.564c3.236-.058 4.208-2.294 4.208-2.294z",fill:"#F5F5F5"}),J__namespace.createElement("path",{d:"M150.317 76.818a1.79 1.79 0 01-.36-.299 6.89 6.89 0 01-.836-.964 7.753 7.753 0 01-.662-8.021c.187-.38.408-.742.662-1.08.086-.132.188-.253.303-.36-.31.484-.593.985-.846 1.5a7.957 7.957 0 00.659 7.888c.334.466.695.912 1.08 1.336zM150.98 64.885c0 .05-.198.151-.418.32-.219.17-.36.36-.421.317-.061-.043.054-.27.306-.464.252-.195.533-.223.533-.173zM162.453 75.384a9.33 9.33 0 00.821-1.674c.155-.603.25-1.22.284-1.843.153.63.117 1.291-.104 1.901a3.242 3.242 0 01-1.001 1.616z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M60.56 38.307a7.106 7.106 0 117.106-7.107 7.113 7.113 0 01-7.106 7.107zm0-13.85a6.746 6.746 0 100 13.492 6.746 6.746 0 000-13.492z",fill:"#E0E0E0"}),J__namespace.createElement("path",{d:"M63.504 29.095c-1.293-1.857-2.945-.237-2.945-.237s-1.649-1.62-2.941.237c-1.365 1.962 1.22 4.284 2.941 5.098 1.724-.814 4.31-3.136 2.945-5.098z",fill:"#E0E0E0"}),J__namespace.createElement("path",{d:"M168.719 149.101c0 .051-35.506.094-79.293.094-43.787 0-79.301-.043-79.301-.094 0-.05 35.5-.093 79.3-.093 43.802 0 79.294.032 79.294.093zM154.371 138.767a.868.868 0 01.072-.176l.238-.508c.29-.654.523-1.332.698-2.026.461-1.8.623-4.558-.061-7.83a42.127 42.127 0 00-1.44-5.26c-.615-1.865-1.328-3.845-1.911-5.987a23.096 23.096 0 01-.944-6.883c.087-2.434.81-4.867 1.602-7.286.792-2.42 1.61-4.792 1.854-7.172a10.937 10.937 0 00-1.339-6.627c-1.051-1.933-2.372-3.6-3.359-5.3a18.454 18.454 0 01-2.019-5.093 18.978 18.978 0 01-.126-7.895c.181-.954.458-1.887.824-2.787a1.301 1.301 0 01-.05.184c-.04.133-.097.31-.166.537a18.845 18.845 0 00-.309 9.918 18.389 18.389 0 002.026 5.04c.987 1.692 2.312 3.337 3.381 5.295a11.137 11.137 0 011.357 6.757c-.245 2.423-1.08 4.81-1.861 7.229-.781 2.419-1.505 4.824-1.595 7.218-.036 2.304.275 4.6.922 6.811.572 2.131 1.278 4.111 1.886 5.983a41.965 41.965 0 011.44 5.292c.662 3.294.475 6.077-.022 7.888a11.738 11.738 0 01-.745 2.023l-.263.497a.849.849 0 01-.09.158z",fill:"#263238"}),J__namespace.createElement("path",{d:"M151.137 85.4s-2.009-6.414 1.591-10.17a.225.225 0 01.224-.061.226.226 0 01.158.17c.191 1.062.432 4.287-1.973 10.062z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M152.339 77.367a6.252 6.252 0 01-.137 1.181c-.133.817-.288 1.775-.457 2.83-.169 1.054-.321 2.016-.45 2.83-.034.396-.105.789-.213 1.173-.035-.399-.023-.8.036-1.195a44 44 0 01.378-2.848c.184-1.109.36-2.102.53-2.822.059-.394.164-.78.313-1.149z",fill:"#263238"}),J__namespace.createElement("path",{d:"M153.5 100.534s1.228-6.61 6.167-8.247a.217.217 0 01.227.048.217.217 0 01.057.225c-.331 1.04-1.631 3.993-6.451 7.974z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M158.311 93.992c-.19.35-.416.68-.673.983-.497.659-1.08 1.44-1.728 2.286l-1.721 2.293a6.687 6.687 0 01-.72.936c.154-.368.352-.716.59-1.037.4-.619.987-1.44 1.667-2.343a43.781 43.781 0 011.8-2.247c.229-.318.492-.61.785-.87z",fill:"#263238"}),J__namespace.createElement("path",{d:"M152.16 117.114s-.746-6.682 3.502-9.68a.226.226 0 01.237-.024.223.223 0 01.123.204c-.003 1.076-.399 4.291-3.862 9.5z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M154.866 109.441c-.08.391-.2.772-.36 1.138l-.99 2.689-.982 2.693a6.2 6.2 0 01-.432 1.109c.043-.397.131-.787.262-1.163.206-.72.526-1.674.915-2.725a54.78 54.78 0 011.062-2.668c.135-.376.311-.736.525-1.073z",fill:"#263238"}),J__namespace.createElement("path",{d:"M155.878 133.794s-.508-6.711 3.848-9.551a.222.222 0 01.36.194c-.065 1.077-.562 4.273-4.208 9.357z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M158.859 126.234a5.803 5.803 0 01-.399 1.124l-1.08 2.653-1.08 2.653a6.244 6.244 0 01-.472 1.08 4.84 4.84 0 01.306-1.152c.227-.72.583-1.652 1.008-2.693.425-1.04.843-1.962 1.156-2.628.149-.365.338-.712.561-1.037z",fill:"#263238"}),J__namespace.createElement("path",{d:"M148.249 79.769s-5.958-3.114-6.077-8.316a.226.226 0 01.243-.237.22.22 0 01.117.046c.882.612 3.327 2.722 5.717 8.507z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M143.414 73.242c.279.284.527.597.742.933l1.681 2.322 1.685 2.314c.256.304.483.632.676.98a5.21 5.21 0 01-.817-.868 51.022 51.022 0 01-1.749-2.279 48.785 48.785 0 01-1.624-2.369 5.48 5.48 0 01-.594-1.033z",fill:"#263238"}),J__namespace.createElement("path",{d:"M154.649 93.542s-6.138-2.744-6.57-7.92a.225.225 0 01.218-.247.22.22 0 01.117.03c.922.551 3.499 2.51 6.235 8.137z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M149.422 87.324c.294.266.56.56.795.879.526.637 1.138 1.386 1.818 2.217l1.822 2.207c.275.288.522.602.738.936a4.985 4.985 0 01-.868-.817 42.88 42.88 0 01-1.886-2.16 52.476 52.476 0 01-1.764-2.268 5.006 5.006 0 01-.655-.994z",fill:"#263238"}),J__namespace.createElement("path",{d:"M151.115 108.91s-4.212-5.238-2.236-10.051a.223.223 0 01.396-.036c.565.914 1.969 3.83 1.84 10.087z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M149.297 100.996c.139.372.241.757.306 1.148l.608 2.805c.231 1.044.44 1.991.62 2.797.11.381.187.772.23 1.166a4.706 4.706 0 01-.403-1.123 40.966 40.966 0 01-.691-2.79 57.917 57.917 0 01-.537-2.819 5.124 5.124 0 01-.133-1.184z",fill:"#263238"}),J__namespace.createElement("path",{d:"M155.297 126.999s-6.092-2.848-6.437-8.039a.216.216 0 01.025-.117.218.218 0 01.198-.12c.04 0 .08.011.115.032.907.572 3.453 2.567 6.099 8.244z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M150.172 120.691c.291.272.554.572.785.897l1.778 2.25c.67.835 1.271 1.595 1.8 2.239.268.294.509.61.72.947a4.926 4.926 0 01-.857-.832 40.846 40.846 0 01-1.85-2.199 57.742 57.742 0 01-1.725-2.297 5.27 5.27 0 01-.651-1.005zM167.414 100.571a.61.61 0 010 .148v.428c-.018.403-.043.95-.072 1.631-.079 1.44-.187 3.431-.32 5.821-.436 2.434-1.674 5.13-3.337 7.747-1.221 1.93-2.502 3.683-3.6 5.314a37.593 37.593 0 00-2.704 4.464 19.001 19.001 0 00-1.264 3.279c-.108.4-.187.72-.234.929-.02.11-.049.219-.086.324a1.457 1.457 0 01.036-.335c.032-.219.097-.536.191-.943a17.08 17.08 0 011.199-3.33 35.337 35.337 0 012.667-4.518c1.098-1.641 2.369-3.398 3.6-5.317 1.656-2.606 2.88-5.26 3.337-7.654.166-2.386.306-4.384.407-5.814.054-.68.101-1.224.133-1.627 0-.173.029-.313.044-.428.014-.115-.004-.123.003-.119z",fill:"#263238"}),J__namespace.createElement("path",{d:"M163.789 115.859s2.577-6.207-.666-10.275a.222.222 0 00-.098-.07.223.223 0 00-.291.146c-.288 1.037-.821 4.23 1.055 10.199z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M163.322 107.746c.113.383.182.778.205 1.177.09.72.194 1.739.274 2.859.079 1.119.118 2.134.118 2.88a5.06 5.06 0 01-.072 1.191 6.353 6.353 0 01-.108-1.184c-.054-.825-.118-1.8-.19-2.859-.072-1.058-.141-2.037-.198-2.862a6.035 6.035 0 01-.029-1.202z",fill:"#263238"}),J__namespace.createElement("path",{d:"M163.789 115.859s2.577-6.207-.666-10.275a.222.222 0 00-.098-.07.223.223 0 00-.291.146c-.288 1.037-.821 4.23 1.055 10.199z",fill:"#050910",opacity:.3}),J__namespace.createElement("path",{d:"M155.803 130.821s2.067-6.397-1.497-10.188a.224.224 0 00-.382.108c-.201 1.055-.471 4.281 1.879 10.08z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M154.68 122.762c.143.371.243.758.298 1.152.152.72.335 1.721.504 2.826.17 1.105.292 2.12.36 2.855.056.394.064.795.022 1.191a6.663 6.663 0 01-.202-1.173c-.118-.818-.262-1.775-.421-2.834-.158-1.058-.306-2.016-.432-2.833a6.037 6.037 0 01-.129-1.184z",fill:"#263238"}),J__namespace.createElement("path",{d:"M155.803 130.821s2.067-6.397-1.497-10.188a.224.224 0 00-.382.108c-.201 1.055-.471 4.281 1.879 10.08z",fill:"#050910",opacity:.3}),J__namespace.createElement("path",{d:"M167.078 108.271s5.497-3.869 4.95-9.028a.217.217 0 00-.137-.18.217.217 0 00-.223.036c-.806.72-2.97 3.142-4.59 9.172z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M167.078 108.271s5.497-3.869 4.95-9.028a.217.217 0 00-.137-.18.217.217 0 00-.223.036c-.806.72-2.97 3.142-4.59 9.172z",fill:"#050910",opacity:.3}),J__namespace.createElement("path",{d:"M171.039 101.164a5.499 5.499 0 01-.46 1.08 54.493 54.493 0 01-1.3 2.56 45.53 45.53 0 01-1.44 2.487 4.912 4.912 0 01-.698.965c.149-.368.332-.721.547-1.055l1.371-2.52 1.365-2.52c.169-.353.376-.687.615-.997z",fill:"#263238"}),J__namespace.createElement("path",{d:"M158.031 124.476s6.628-1.037 8.428-5.922a.221.221 0 00-.044-.231.22.22 0 00-.226-.064c-1.041.295-4.05 1.508-8.158 6.217z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M158.031 124.476s6.628-1.037 8.428-5.922a.221.221 0 00-.044-.231.22.22 0 00-.226-.064c-1.041.295-4.05 1.508-8.158 6.217z",fill:"#050910",opacity:.3}),J__namespace.createElement("path",{d:"M164.697 119.848a5.17 5.17 0 01-.896.788 48.842 48.842 0 01-2.297 1.724 45.295 45.295 0 01-2.387 1.595 5.016 5.016 0 01-1.055.562 6.33 6.33 0 01.958-.72l2.34-1.653 2.336-1.663a6.141 6.141 0 011.001-.633z",fill:"#263238"}),J__namespace.createElement("path",{d:"M150.172 136.699l1.904 12.499 7.607-.014 2.563-12.485h-12.074z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M161.125 141.521a1.671 1.671 0 01-.263.159c-.267.13-.554.217-.849.255-.471.061-.95.015-1.401-.133a2.933 2.933 0 01-1.504-1.08 2.14 2.14 0 01-.36-1.047 1.13 1.13 0 01.106-.614c.091-.191.234-.352.412-.466a1.236 1.236 0 011.274.104c.377.278.634.688.72 1.148.101.464.134.939.098 1.412a4.811 4.811 0 01-.31 1.44 3.209 3.209 0 01-.882 1.256 2.454 2.454 0 01-1.465.612 2.674 2.674 0 01-1.523-.443 4.455 4.455 0 01-1.134-1.026 2.476 2.476 0 01-.576-1.371 1.585 1.585 0 01.54-1.325 1.22 1.22 0 01.661-.242c.239-.015.477.04.685.159a1.433 1.433 0 01.778 1.019 1.96 1.96 0 01-.961 1.98 2.698 2.698 0 01-1.836.263 4.184 4.184 0 01-1.311-.512 6.812 6.812 0 01-.72-.496 1.477 1.477 0 01-.234-.198c.091.049.177.104.26.165.165.112.414.277.745.457a4.14 4.14 0 001.292.468 2.544 2.544 0 001.739-.277 1.804 1.804 0 00.868-1.818 1.268 1.268 0 00-.692-.885 1.049 1.049 0 00-1.144.068 1.398 1.398 0 00-.461 1.163c.049.463.236.901.536 1.256.303.384.668.714 1.08.976.415.277.905.42 1.404.41a2.238 2.238 0 001.339-.561c.366-.319.649-.722.825-1.174.173-.442.274-.909.299-1.382.037-.453.01-.909-.08-1.354a1.682 1.682 0 00-.644-1.037 1.056 1.056 0 00-1.08-.108.98.98 0 00-.443.918c.018.345.127.68.317.969.345.502.842.881 1.418 1.08.433.151.894.206 1.35.158a3.57 3.57 0 001.127-.346z",fill:"#263238"}),J__namespace.createElement("path",{d:"M47.633 142.199c-3.914-.403-16.456-.669-20.326.022-3.87.691-8.32 4.219-9.976 7.365-1.86 3.532-1.544 10.293 1.404 13.166 2.949 2.872 8.237 2.016 12.6 2.628 4.364.612 8.813.388 13.234.273 27.763-.72 55.735 2.88 83.196-.936 3.503-.482 7.222-1.195 9.699-3.431 2.739-2.473 3.279-6.177 3.675-9.597.313-2.704.551-5.677-1.245-7.881-1.178-1.44-3.078-2.3-5.087-2.66 3.215-3.92 4.791-6.811 4.957-10.152.292-5.908-1.253-10.285-1.602-16.128-.349-5.843-.36-11.812 1.343-17.41 1.04-3.409 2.585-7.488.263-10.188-1.34-1.558-3.536-2.008-5.566-2.34-24.307-3.96-49.108-4.032-73.67-2.282-2.93.209-6.178.598-8.082 2.833-1.53 1.8-1.783 4.367-1.495 6.71.288 2.344 1.037 4.616 1.239 6.967.954 11.16-14.886 30.258-4.561 43.041z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M47.633 142.199c-3.914-.403-16.456-.669-20.326.022-3.87.691-8.32 4.219-9.976 7.365-1.86 3.532-1.544 10.293 1.404 13.166 2.949 2.872 8.237 2.016 12.6 2.628 4.364.612 8.813.388 13.234.273 27.763-.72 55.735 2.88 83.196-.936 3.503-.482 7.222-1.195 9.699-3.431 2.739-2.473 3.279-6.177 3.675-9.597.313-2.704.551-5.677-1.245-7.881-1.178-1.44-3.078-2.3-5.087-2.66 3.215-3.92 4.791-6.811 4.957-10.152.292-5.908-1.253-10.285-1.602-16.128-.349-5.843-.36-11.812 1.343-17.41 1.04-3.409 2.585-7.488.263-10.188-1.34-1.558-3.536-2.008-5.566-2.34-24.307-3.96-49.108-4.032-73.67-2.282-2.93.209-6.178.598-8.082 2.833-1.53 1.8-1.783 4.367-1.495 6.71.288 2.344 1.037 4.616 1.239 6.967.954 11.16-14.886 30.258-4.561 43.041z",fill:"#F1F5F9",opacity:.5}),J__namespace.createElement("path",{d:"M52.656 85.255s.414-.241 1.246-.616a15.505 15.505 0 013.812-1.152c1.71-.302 3.834-.36 6.29-.496 2.455-.137 5.252-.238 8.348-.343a516.126 516.126 0 0121.744-.251c8.186.072 17.183.36 26.611.925l3.514.227c1.16.047 2.317.167 3.463.36a7.847 7.847 0 013.197 1.263c.465.337.874.747 1.209 1.213.323.47.578.982.756 1.523a8.277 8.277 0 01.36 3.305 16.822 16.822 0 01-.637 3.197c-.292 1.033-.63 2.037-.896 3.045a54.714 54.714 0 00-.72 3.017 43.99 43.99 0 00-.756 11.542c.116 1.748.338 3.488.666 5.209.306 1.659.72 3.24 1.08 4.73.781 2.992 1.44 5.728 1.656 8.187.216 2.101.07 4.223-.432 6.274a14.19 14.19 0 01-.76 2.16 12.223 12.223 0 01-.814 1.48l-.342.497-.27.338a8.61 8.61 0 01-.226.274s.068-.101.212-.285c.068-.093.158-.208.263-.36l.331-.5c.298-.474.562-.969.792-1.48.305-.699.554-1.421.745-2.16.485-2.045.619-4.159.396-6.249-.219-2.448-.893-5.17-1.677-8.161-.386-1.498-.8-3.071-1.113-4.734a43.883 43.883 0 01.065-16.812c.205-1.005.432-2.02.72-3.031.288-1.012.605-2.02.893-3.05.31-1.03.521-2.09.63-3.16a8.157 8.157 0 00-.36-3.24 5.814 5.814 0 00-.72-1.473 5.124 5.124 0 00-1.167-1.17 7.719 7.719 0 00-3.124-1.235 28.442 28.442 0 00-3.442-.36l-3.51-.227a538.521 538.521 0 00-26.604-.94 534.89 534.89 0 00-30.085.53c-2.459.115-4.576.17-6.282.46-1.31.213-2.59.587-3.809 1.113-.418.18-.72.328-.94.432l-.313.184zM141.347 153.914l-.313.09-.929.238-3.571.918-2.585.648c-.946.223-1.983.435-3.092.68-2.225.468-4.745 1.08-7.56 1.548l-4.417.806c-.767.152-1.555.252-2.358.378l-2.452.36-2.538.382c-.432.061-.864.133-1.299.191l-1.325.155-5.494.651c-7.524.763-15.84 1.311-24.566 1.408-8.727.097-17.053-.36-24.592-1.005l-5.515-.565-1.328-.137c-.44-.046-.871-.111-1.303-.169l-2.546-.338-2.459-.328c-.802-.111-1.594-.198-2.365-.338l-4.428-.72c-2.83-.432-5.36-.99-7.588-1.44-1.116-.227-2.16-.421-3.107-.63l-2.596-.601-3.6-.846-.932-.224c-.21-.05-.317-.082-.317-.082s.111.018.32.064l.936.206 3.6.81 2.614.576c.954.201 1.994.392 3.107.612 2.232.421 4.763.972 7.592 1.393l4.428.72c.77.137 1.563.223 2.365.335l2.46.32 2.54.335c.433.054.865.119 1.304.165l1.328.134 5.498.55c7.534.63 15.84 1.037 24.577.99 8.737-.046 17.028-.64 24.548-1.393l5.49-.641 1.325-.154c.435-.054.867-.126 1.299-.188l2.52-.378 2.452-.36c.803-.122 1.595-.219 2.358-.36l4.428-.792c2.819-.468 5.339-1.058 7.56-1.519 1.109-.237 2.16-.446 3.096-.662l2.585-.634 3.578-.867.933-.22.334-.072zM47.64 142.201h.224l.655.04 2.52.172c1.08.08 2.426.18 3.982.26 1.555.079 3.319.208 5.274.28 1.954.072 4.096.188 6.397.242 1.148.032 2.34.079 3.564.097l3.78.061c5.173.058 10.865.036 16.833-.101 11.945-.291 22.745-.9 30.561-1.339l9.255-.533 2.52-.137.652-.032h.209l-.22.025-.655.047-2.52.176-9.256.591c-7.812.471-18.615 1.101-30.564 1.393a467.62 467.62 0 01-16.84.086l-3.78-.068c-1.228-.022-2.416-.072-3.568-.104-2.3-.065-4.442-.177-6.397-.267-1.955-.09-3.723-.219-5.274-.309-1.552-.09-2.88-.202-3.96-.292l-2.52-.205-.655-.061-.216-.022z",fill:"#263238"}),J__namespace.createElement("path",{d:"M117.451 163.658c-.058 0-.162-1.08-.54-2.326-.378-1.245-.864-2.217-.814-2.246.151.182.272.386.36.605a9.907 9.907 0 01.965 3.258c.048.233.058.473.029.709zM120.634 162.173a14.919 14.919 0 00-.465-1.937 14.23 14.23 0 00-.903-1.775 4.853 4.853 0 011.368 3.712zM128.602 124.817a4.536 4.536 0 003.657-.958s-.119.198-.403.429a3.53 3.53 0 01-2.693.72 1.307 1.307 0 01-.561-.191zM128.383 120.497c.029-.05.666.278 1.512.486.846.209 1.559.231 1.559.288a4.495 4.495 0 01-3.071-.774z",fill:"#263238"}),J__namespace.createElement("path",{d:"M126.389 39.513a7.733 7.733 0 100-15.466 7.733 7.733 0 000 15.466z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M129.681 29.431c-1.44-2.077-3.287-.266-3.287-.266s-1.843-1.8-3.287.266c-1.522 2.193 1.365 4.781 3.287 5.692 1.926-.925 4.81-3.5 3.287-5.692z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M101.377 38.903c7.874-3.83 11.153-13.318 7.322-21.192-3.83-7.874-13.318-11.152-21.192-7.322-7.874 3.83-11.152 13.318-7.322 21.192 3.83 7.874 13.319 11.152 21.192 7.322z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M101.377 38.903c7.874-3.83 11.153-13.318 7.322-21.192-3.83-7.874-13.318-11.152-21.192-7.322-7.874 3.83-11.152 13.318-7.322 21.192 3.83 7.874 13.319 11.152 21.192 7.322z",fill:"#F1F5F9",opacity:.2}),J__namespace.createElement("path",{d:"M86.18 21.526a1.4 1.4 0 01.306-.202c.201-.115.496-.28.864-.479.72-.403 1.757-.943 2.88-1.53l.147-.075v.169c-1.137-.493-2.16-.943-2.88-1.278-.36-.166-.662-.302-.864-.403-.108-.042-.21-.1-.302-.17.115.018.227.053.331.105.212.08.511.198.886.36.745.302 1.77.72 2.909 1.224a.094.094 0 01.053.085.094.094 0 01-.053.084l-.148.076c-1.13.587-2.16 1.112-2.912 1.48-.36.187-.68.33-.893.428-.102.056-.211.099-.324.126zM102.018 21.065a7.926 7.926 0 01-1.17-.497c-.72-.327-1.699-.795-2.779-1.321a.095.095 0 01-.053-.085.095.095 0 01.053-.084l.047-.022c1.112-.49 2.124-.921 2.858-1.224a8.364 8.364 0 011.21-.457c-.372.218-.758.41-1.156.576-.72.338-1.724.788-2.836 1.278l-.047.022v-.17c1.08.53 2.052 1.016 2.754 1.372a8.96 8.96 0 011.119.612zM83.797 24.84l20.977-.082s-1.375 9.695-10.13 9.871c-8.756.176-10.847-9.788-10.847-9.788z",fill:"#263238"}),J__namespace.createElement("path",{d:"M102.44 30.361c-1.843-2.44-5.011-3.675-8.068-3.6-3.056.076-5.994 1.343-8.481 3.118 0 0 2.757 4.867 8.751 4.744 5.994-.122 7.798-4.262 7.798-4.262z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M83.797 24.84c.016.043.03.086.04.13.026.093.062.213.108.36a17.182 17.182 0 001.537 3.6 13.24 13.24 0 001.879 2.549c.424.444.884.852 1.375 1.22.54.39 1.116.726 1.72 1.004a9.423 9.423 0 002.035.63c.743.14 1.498.196 2.254.17a9.615 9.615 0 004.63-1.282 10.298 10.298 0 003.57-3.7 14.815 14.815 0 001.739-4.77l.094.104H83.797a.416.416 0 01.097 0H85.367l4.395-.044 15.012-.104a.09.09 0 01.09.09 15.036 15.036 0 01-1.76 4.828 10.483 10.483 0 01-3.636 3.787 9.791 9.791 0 01-4.72 1.296 10.654 10.654 0 01-2.29-.18 9.745 9.745 0 01-2.066-.652 9.952 9.952 0 01-1.742-1.03c-.496-.375-.959-.79-1.386-1.241a13.286 13.286 0 01-1.872-2.592 16.378 16.378 0 01-1.008-2.19 14.89 14.89 0 01-.468-1.44 8.906 8.906 0 01-.09-.384.647.647 0 01-.03-.159z",fill:"#263238"}),J__namespace.createElement("path",{d:"M84.292 35.012a1.192 1.192 0 01-.177-.14c-.108-.102-.277-.238-.468-.436a13.53 13.53 0 01-1.523-1.8 14.464 14.464 0 01-1.242-14.807c.343-.708.745-1.385 1.203-2.023.158-.23.302-.393.392-.508a.83.83 0 01.148-.17 1.216 1.216 0 01-.119.192c-.08.122-.212.291-.36.525a15.735 15.735 0 00-1.145 2.042 14.68 14.68 0 001.224 14.673c.442.645.931 1.255 1.465 1.825.184.206.36.36.443.458.06.048.114.105.159.169zM85.499 12.895c.018.05-.4.205-.82.532-.422.328-.681.68-.72.652-.04-.029.157-.454.615-.8a1.44 1.44 0 01.925-.384zM106.767 32.356c-.022-.022.227-.324.565-.857a9.311 9.311 0 001.458-4.637c.025-.63 0-1.022.025-1.026.026-.004.033.094.058.274.034.249.051.5.05.752a8.144 8.144 0 01-1.479 4.709 5.812 5.812 0 01-.472.594c-.122.13-.194.198-.205.19z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M141.592 57.882s0-.072-.022-.209c-.021-.136-.021-.36-.039-.619 0-.133-.018-.288-.029-.453-.011-.166-.05-.36-.083-.54a9.168 9.168 0 00-.27-1.343 12.301 12.301 0 00-1.44-3.442 12.957 12.957 0 00-8.723-6.077c-.539-.099-1.086-.161-1.634-.187-.277 0-.558-.036-.839-.032l-.857.043c-.14 0-.288 0-.428.029l-.432.065c-.288.05-.58.083-.868.14a14.4 14.4 0 00-3.402 1.246c-.273.147-.536.32-.802.482a6.047 6.047 0 00-.782.537 14.89 14.89 0 00-1.461 1.242c-.455.468-.877.967-1.264 1.493l-.299.4-.259.421-.259.429c-.091.14-.171.286-.238.439-.147.302-.291.605-.439.91-.147.307-.234.634-.36.955-.888 2.64-.888 5.499 0 8.14.115.32.231.636.36.953.13.317.292.609.436.911.069.153.149.3.241.44l.259.428.259.424.303.41c.387.528.809 1.029 1.263 1.499.46.445.949.86 1.462 1.241.245.199.505.378.778.537.27.162.532.335.806.482.543.279 1.105.52 1.681.72a13.73 13.73 0 001.721.504c.288.061.58.094.868.144l.432.065c.144 0 .288 0 .428.029l.857.043c.281 0 .561-.022.842-.032a12.084 12.084 0 001.631-.188 12.832 12.832 0 005.436-2.412 12.95 12.95 0 003.29-3.664 12.33 12.33 0 001.44-3.446c.123-.439.215-.886.274-1.339.029-.194.065-.36.079-.54.015-.18.022-.32.029-.453.018-.267.032-.472.04-.62.007-.147.021-.208.021-.208v.209c0 .136 0 .36-.021.619 0 .136 0 .288-.022.457l-.072.544a9.384 9.384 0 01-.256 1.35 12.394 12.394 0 01-1.418 3.48 13.074 13.074 0 01-10.429 6.38c-.281 0-.565.036-.853.032l-.864-.04c-.144 0-.292 0-.436-.028l-.436-.065c-.291-.05-.586-.083-.882-.144-.591-.13-1.173-.3-1.742-.508a13.652 13.652 0 01-1.706-.745c-.278-.15-.544-.324-.818-.486a6.862 6.862 0 01-.788-.543 11.865 11.865 0 01-2.768-2.776l-.303-.4-.284-.417-.267-.432a3.716 3.716 0 01-.241-.447l-.443-.921-.36-.972a12.97 12.97 0 010-8.255c.119-.324.238-.648.36-.968l.447-.922c.068-.156.15-.305.245-.446l.262-.436.263-.428.303-.404a11.761 11.761 0 012.768-2.772c.249-.2.512-.382.788-.543.274-.162.54-.335.818-.486a13.681 13.681 0 011.706-.745 13.525 13.525 0 011.742-.508c.296-.061.591-.093.882-.144l.436-.065c.144 0 .292 0 .436-.029l.864-.04c.288 0 .572.023.853.033.554.03 1.106.095 1.652.198a13.036 13.036 0 018.784 6.174 12.3 12.3 0 011.422 3.481c.118.443.203.893.256 1.347.025.198.057.382.072.547.014.166 0 .32.021.457 0 .267.008.472.022.616.004.122 0 .194 0 .194z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M126.026 54.843h.738s1.44-2.466 1.389-3.122c-.05-.655-.36-2.25 0-2.7.36-.45 2.585-.194 2.826 1.275.199 1.507.293 3.026.281 4.547h4.68a1.246 1.246 0 011.203.853c.043.144.058.296.043.446 0 0-.054 1.105-1.08 1.145a1.376 1.376 0 01.327 1.022c0 .738-.921 1.005-.921 1.005a.98.98 0 01.576 1.004c0 .817-.882 1.145-.882 1.145.23.365.324.8.266 1.228-.083.756-.932.932-.932.932h-8.532l.018-8.78zM124.602 54.844h-2.293a.918.918 0 00-.918.918v6.944c0 .507.411.918.918.918h2.293a.918.918 0 00.918-.918v-6.944a.918.918 0 00-.918-.918z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M103.401 67.71a4.658 4.658 0 012.373-2.236 3.136 3.136 0 013.135.472 2.38 2.38 0 01.472 3.013 3.287 3.287 0 11-1.343 5.84 2.453 2.453 0 01-3.917 1.44c-1.656-1.297-1.278-4.32-3.121-5.333",fill:"#263238"}),J__namespace.createElement("path",{d:"M102.119 72.573a6.476 6.476 0 001.703-5.454 1.356 1.356 0 010-.803c.209-.432.882-.446 1.242-.126.334.355.529.82.547 1.307a8.612 8.612 0 01-.36 3.802 3.863 3.863 0 01-.72 1.35 1.843 1.843 0 01-1.336.666 1.08 1.08 0 01-1.101-.742",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M101.009 53.672c-.688-1.908-3.96-3.542-5.739-4.496-2.675-1.422-5.101-1.037-6.555.36-2.79-2.186-6.43-4.252-9.825-3.24-3.395 1.011-6.059 4.604-5.31 8.064.436 2.04 1.919 3.834 1.904 5.922 0 1.422-.72 2.728-1.274 4.039-.554 1.31-.968 2.826-.389 4.125.54 1.21 1.8 1.934 2.52 3.053.573.911.738 2.016 1.12 3.024 1.415 3.737 5.947 5.706 9.864 4.91 3.917-.795 7.096-3.87 8.838-7.466 1.742-3.596 2.221-7.671 2.304-11.667",fill:"#263238"}),J__namespace.createElement("path",{d:"M86.318 52.895A6.48 6.48 0 0079 58.68c-.42 4.363-.777 9.846-.36 13.172.825 6.48 5.76 7.463 5.76 7.463s-.04 2.412-.093 5.227a6.999 6.999 0 0013.43 2.883c.376-.88.568-1.826.563-2.782l-.148-28.123",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M84.375 79.316c3.056.087 6.08-.645 8.759-2.12 0 0-2.322 4.525-8.759 3.71v-1.59z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M88.425 59.342c.083.245.976.159 2.016.317s1.88.468 2.023.255c.065-.1-.072-.334-.406-.58a3.405 3.405 0 00-1.487-.572 3.36 3.36 0 00-1.591.137c-.39.14-.587.328-.555.443zM80.208 59.832c.15.209.77.018 1.508.032.738.015 1.36.177 1.509-.028.068-.105-.026-.31-.292-.508a2.181 2.181 0 00-2.434 0c-.266.198-.356.403-.291.504z",fill:"#263238"}),J__namespace.createElement("path",{d:"M88.203 66.616a.238.238 0 00.41.16.238.238 0 00-.272-.38.233.233 0 00-.138.22zM81.502 65.687a.23.23 0 00.241.227.233.233 0 00.23-.241.239.239 0 00-.235-.267.238.238 0 00-.236.267v.014zM80.203 66.347a.238.238 0 00.245.226.237.237 0 000-.471.236.236 0 00-.245.245zM79.774 65.366a.238.238 0 10.226-.24.236.236 0 00-.211.15.233.233 0 00-.015.09zM89.313 67.628a.237.237 0 10.474 0 .237.237 0 00-.475 0zM90.164 66.644a.238.238 0 10.475 0 .238.238 0 00-.475 0z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M86.62 51.885a13.784 13.784 0 009.69 11.002c-1.515 2.344-.36 6.667-.287 10.303.075 3.384.108 4.35 2.358 6.002 1.825.36 2.703-4.62 4.003-6.049 1.3-1.429 2.52-3.182 2.365-5.108-.079-.9-.461-1.75-.54-2.65-.086-.997.202-1.987.36-2.977.637-4.388-1.778-9-5.655-11.16-3.877-2.16-8.943-1.828-12.633.63",fill:"#263238"}),J__namespace.createElement("path",{d:"M104.051 64.905c.057-.058.108-.12.155-.187.131-.195.226-.412.277-.641a3.733 3.733 0 00-.457-2.488 4.96 4.96 0 00-1.08-1.404 9.826 9.826 0 00-1.588-1.267 8.338 8.338 0 00-2.041-.936c-.745-.227-1.534-.4-2.336-.572-.803-.173-1.588-.342-2.322-.573-.71-.219-1.4-.492-2.067-.817a15.04 15.04 0 01-4.936-3.863c-.194-.227-.338-.414-.435-.536a1.23 1.23 0 00-.159-.187c.04.071.084.14.134.205a13.913 13.913 0 002.182 2.401 14.84 14.84 0 003.153 2.102c.672.332 1.368.61 2.084.832.742.238 1.53.407 2.333.583.803.177 1.588.339 2.326.562a8.202 8.202 0 012.027.921 9.85 9.85 0 011.58 1.239c.439.387.805.85 1.08 1.368.437.729.612 1.584.497 2.426a2.274 2.274 0 01-.407.832z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M87.063 51.434c.042.056.09.109.14.158a16.97 16.97 0 002.113 1.868 11.401 11.401 0 002.88 1.606c.619.206 1.255.356 1.9.446.667.112 1.362.191 2.07.274 1.339.116 2.664.348 3.961.695a8.622 8.622 0 012.88 1.476 5.614 5.614 0 011.44 1.652 5.2 5.2 0 01.255.544 1.1 1.1 0 00.087.19 1.09 1.09 0 00-.061-.201 4.012 4.012 0 00-.231-.558 5.347 5.347 0 00-1.411-1.71 8.528 8.528 0 00-2.912-1.523c-1.296-.36-2.621-.6-3.96-.72-.72-.083-1.4-.165-2.063-.27a11.172 11.172 0 01-1.876-.432 11.83 11.83 0 01-2.858-1.562 20.916 20.916 0 01-1.71-1.397l-.443-.41a1.313 1.313 0 00-.201-.126z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M79.664 46.052c0 .036.555.036 1.44.234.236.053.47.12.698.198.252.076.504.187.778.299.579.263 1.13.584 1.645.957a9.36 9.36 0 011.394 1.296c.181.21.352.43.51.66.145.194.276.399.393.611.443.77.605 1.303.637 1.293a1.716 1.716 0 00-.111-.36 3.246 3.246 0 00-.166-.425 5.78 5.78 0 00-.266-.547 5.927 5.927 0 00-.385-.627 7.192 7.192 0 00-.508-.677 8.32 8.32 0 00-3.089-2.293 7.973 7.973 0 00-.796-.288 5.35 5.35 0 00-.72-.183 4.85 4.85 0 00-.597-.098 2.812 2.812 0 00-.457-.036 1.793 1.793 0 00-.4-.014zM75.906 70.739l-.044-.058-.14-.151c-.126-.137-.31-.331-.522-.605a3.535 3.535 0 01-.609-1.08 1.89 1.89 0 01-.082-.763c.03-.287.12-.566.263-.817.367-.565.775-1.103 1.22-1.61a9.001 9.001 0 001.145-2.044 9.127 9.127 0 00.623-2.52c.057-.924.05-1.85-.026-2.772a9.648 9.648 0 01.162-2.733 5.4 5.4 0 011.156-2.239 5.506 5.506 0 011.8-1.404 5.184 5.184 0 011.93-.515 5.76 5.76 0 012.84.526c.24.114.472.244.695.389l.173.115c.04.025.06.036.06.032a4.055 4.055 0 00-.903-.586 5.663 5.663 0 00-2.88-.58 5.373 5.373 0 00-1.976.508 5.709 5.709 0 00-3.05 3.718 9.843 9.843 0 00-.165 2.772c.074.917.084 1.837.029 2.754a9.14 9.14 0 01-1.725 4.493 14.688 14.688 0 00-1.213 1.635 2.221 2.221 0 00-.263.86c-.02.269.013.54.097.796.146.401.363.773.641 1.098.173.212.36.412.558.6l.151.145a.241.241 0 00.055.036z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M103.729 65.273s.022 0 .069-.032l.19-.112c.246-.148.477-.318.692-.507a5.975 5.975 0 001.742-2.607 5.92 5.92 0 00-2.239-6.653 8.279 8.279 0 00-2.707-1.213 14.908 14.908 0 00-2.938-.435c-.957-.058-1.883-.072-2.761-.101a23.57 23.57 0 01-2.477-.198 10.87 10.87 0 01-2.077-.497 7.464 7.464 0 01-2.686-1.566 6.325 6.325 0 01-.569-.634l-.136-.176a.355.355 0 00-.05-.058c.199.333.44.638.72.908a7.295 7.295 0 002.689 1.623c.688.242 1.398.416 2.12.519.826.115 1.657.184 2.491.208 1.753.083 3.704.033 5.663.548a8.101 8.101 0 012.664 1.188 5.73 5.73 0 011.8 2.023 5.79 5.79 0 01.417 4.478 6.052 6.052 0 01-1.677 2.596c-.212.19-.435.365-.67.525l-.183.126a.216.216 0 00-.087.047zM80.216 63.796c.097.111.72-.36 1.62-.32.9.039 1.53.475 1.63.36.047-.047-.053-.245-.33-.458a2.257 2.257 0 00-1.304-.428 2.178 2.178 0 00-1.292.389c-.277.216-.375.406-.324.457zM89.285 63.944c.1.108.738-.36 1.623-.324.886.036 1.53.479 1.631.36.047-.047-.054-.241-.335-.454a2.26 2.26 0 00-1.3-.432 2.16 2.16 0 00-1.295.393c-.274.212-.371.407-.324.457zM85.931 69.298c0-.05-.543-.155-1.44-.288-.227-.03-.443-.076-.475-.234-.016-.234.04-.466.162-.666.227-.548.46-1.116.72-1.714.98-2.44 1.696-4.45 1.595-4.49-.101-.039-.972 1.909-1.951 4.35-.238.6-.461 1.177-.677 1.724a1.325 1.325 0 00-.137.89.576.576 0 00.36.338c.126.035.255.056.385.06.897.066 1.454.08 1.458.03z",fill:"#263238"}),J__namespace.createElement("path",{d:"M86.272 71.447a1.587 1.587 0 011.44-.565 1.44 1.44 0 011.001.561.925.925 0 01.047 1.059 1.08 1.08 0 01-1.17.27 3.29 3.29 0 01-1.12-.699 1.024 1.024 0 01-.248-.266.298.298 0 010-.331",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M88.534 69.965c-.144 0-.166.954-1.005 1.62-.839.666-1.865.544-1.872.677-.018.06.223.194.655.212a2.387 2.387 0 001.563-.508c.427-.334.708-.822.781-1.36.04-.407-.058-.645-.122-.641zM81.033 130.221l-9.853 3.34-.792 2.466s-27.49-9.896-29.441-10.936c-1.951-1.041-12.01-3.338-15.315 4.924-2.79 6.948 2.754 13.914 11.596 17.813 8.842 3.899 26.006 5.591 26.006 5.591l11.294 1.955 24.98.327A24.943 24.943 0 00118.743 147c3.938-4.59 8.006-9.785 8.777-12.495 1.501-5.267.144-12.093-7.708-12.752-7.852-.658-20.585 8.313-20.585 8.313l-4.835-1.325-13.36 1.48z",fill:"#263238"}),J__namespace.createElement("path",{d:"M80.26 146.24a1.22 1.22 0 01.04-.169.761.761 0 00-.058-.49c-.188-.414-.81-.785-1.646-.997a103.554 103.554 0 01-7.268-3.258c-3.02-1.501-6.527-3.384-10.275-5.4-2.71-1.44-5.295-2.826-7.69-3.989-2.393-1.163-4.578-2.16-6.45-2.88-.468-.187-.911-.36-1.336-.536l-1.202-.439-1.037-.4-.89-.288-1.234-.403-.317-.112-.108-.043.112.025.324.094 1.245.36.897.277 1.055.36 1.21.425c.428.158.87.36 1.338.522 1.883.72 4.075 1.71 6.48 2.88 2.405 1.17 4.993 2.52 7.704 3.981 3.748 2.016 7.24 3.917 10.253 5.418a128.1 128.1 0 007.233 3.32c.846.23 1.48.619 1.666 1.062.07.162.084.344.036.514a.8.8 0 01-.082.166zM117.028 123.48l-.111.018-.328.043c-.42.034-.837.103-1.246.205a14.374 14.374 0 00-4.273 1.782 21.884 21.884 0 00-2.624 1.847 27.953 27.953 0 00-2.711 2.495 82.95 82.95 0 01-6.04 5.951 47.317 47.317 0 01-3.41 2.775 14.524 14.524 0 01-3.564 2.027c-1.19.336-2.404.577-3.633.72a18.76 18.76 0 00-3.135.67 9.298 9.298 0 00-2.38 1.13 4.175 4.175 0 00-1.342 1.44c-.198.371-.32.777-.36 1.195v.328a.41.41 0 010 .115.477.477 0 010-.112v-.331c.027-.427.14-.844.33-1.227.322-.6.785-1.112 1.35-1.491a9.288 9.288 0 012.395-1.17 18.795 18.795 0 013.153-.698 22.775 22.775 0 003.6-.742 14.551 14.551 0 003.51-2.012c1.141-.832 2.268-1.771 3.395-2.765a88.194 88.194 0 006.041-5.929 27.79 27.79 0 012.736-2.499 21.64 21.64 0 012.657-1.836 14.032 14.032 0 014.32-1.742c.414-.094.836-.15 1.26-.169l.331-.025.079.007zM82.869 143.279a2.606 2.606 0 01-.162-.46 4.238 4.238 0 01-.13-.562c-.051-.249-.09-.5-.115-.752a15.038 15.038 0 01-.083-1.98 22.16 22.16 0 01.198-2.416 17.94 17.94 0 011.077-4.27c.119-.255.216-.493.324-.691.108-.198.201-.36.295-.497.09-.136.193-.263.31-.378a2.327 2.327 0 01-.249.418c-.079.133-.158.31-.263.504-.104.194-.183.439-.295.691a20.506 20.506 0 00-1.015 4.245 24.972 24.972 0 00-.209 2.394c-.022.654-.007 1.309.043 1.962.087 1.123.31 1.792.274 1.792z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M80.254 146.242s18.605 4.68 19.35 4.943c1.123.36 1.03 4.45-.72 4.424-.82 0-14.188.821-15.88.756-1.692-.064-6.285-1.764-6.285-1.764l2.815-6.642.72-1.717z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M88.12 153.122c.093 0 .194-.968.77-2.001.576-1.033 1.328-1.66 1.267-1.732-.061-.072-.94.472-1.54 1.581-.602 1.108-.577 2.163-.498 2.152zM86.175 152.279c.09 0 .259-.864.72-1.84.46-.975 1.037-1.667.968-1.728-.068-.061-.76.562-1.245 1.595-.486 1.033-.526 1.973-.443 1.973zM84.353 151.849c.094 0 0-.929.389-1.962.388-1.033 1.033-1.685.965-1.749-.069-.065-.854.518-1.257 1.645-.403 1.127-.173 2.095-.097 2.066z",fill:"#263238"}),J__namespace.createElement("path",{d:"M84.626 149.455a3.3 3.3 0 00.165-1.378 6.53 6.53 0 00-.514-2.358 1.082 1.082 0 00-.306-.447.497.497 0 00-.634.047.794.794 0 00-.234.529 3.206 3.206 0 000 .49c.012.304.056.606.133.9.136.492.338.963.602 1.4.216.41.506.776.856 1.08.043-.029-.277-.453-.662-1.199a6.064 6.064 0 01-.519-1.364 4.18 4.18 0 01-.108-.842c0-.285 0-.638.155-.778a.174.174 0 01.116-.062.169.169 0 01.126.037c.096.086.169.195.212.317a7.088 7.088 0 01.576 2.25c.057.846-.014 1.371.036 1.378z",fill:"#263238"}),J__namespace.createElement("path",{d:"M84.605 149.264a2.566 2.566 0 00-1.195-.165 5.3 5.3 0 00-1.307.191c-.263.061-.517.16-.752.295a.781.781 0 00-.396.853.921.921 0 00.68.644c.274.062.558.055.828-.018.435-.121.84-.332 1.188-.619.333-.234.618-.528.843-.867-.34.206-.666.437-.972.691-.338.242-.72.417-1.124.515-.224.055-.459.055-.683 0a.626.626 0 01-.461-.429.48.48 0 01.262-.522c.209-.122.433-.215.666-.277a6.008 6.008 0 011.239-.245c.723-.061 1.177.004 1.184-.047zM90.965 153.256c.093 0-.018-.8.327-1.674.346-.875.933-1.397.871-1.469-.06-.072-.795.381-1.159 1.357-.363.976-.111 1.822-.04 1.786zM78.086 154.404c.23.128.47.234.72.317.677.245 1.37.444 2.073.594 2.328.454 4.702.624 7.07.508 2.773-.094 5.264-.278 7.075-.389l2.138-.162c.265-.008.528-.043.785-.105a4.03 4.03 0 00-.792 0l-2.142.065-7.07.299a33.203 33.203 0 01-7.02-.414c-1.772-.342-2.816-.774-2.837-.713z",fill:"#263238"}),J__namespace.createElement("path",{d:"M77.54 154.838c.028.043.525-.267 1.37-.659a6.483 6.483 0 013.486-.663c1.396.184 2.408 1.098 3.063 1.732.335.384.696.745 1.08 1.08a5.64 5.64 0 00-.932-1.217 7.136 7.136 0 00-1.253-1.119 4.386 4.386 0 00-1.926-.767 6.122 6.122 0 00-3.625.77 4.953 4.953 0 00-1.264.843zM96.114 155.211c.032-.021-.13-.262-.288-.691a3.55 3.55 0 01-.173-1.735c.101-.583.349-1.13.72-1.591.284-.36.514-.537.49-.569-.246.092-.461.249-.623.454a3.15 3.15 0 00-.566 3.51c.198.435.418.64.44.622z",fill:"#263238"}),J__namespace.createElement("path",{d:"M124.017 138.707a1.59 1.59 0 01-.162.252l-.5.698c-.223.299-.483.677-.81 1.08l-1.152 1.39c-.429.511-.947 1.026-1.48 1.606-.533.579-1.166 1.126-1.8 1.742a40.526 40.526 0 01-4.554 3.499 38.043 38.043 0 01-5.04 2.776 33.114 33.114 0 01-4.392 1.609c-.641.187-1.235.313-1.749.432-.515.119-.972.18-1.34.234l-.856.09c-.195.018-.3.025-.3.022.097-.03.196-.049.296-.058l.85-.126c.36-.065.81-.162 1.328-.263s1.098-.266 1.735-.457a34.063 34.063 0 004.371-1.642c1.73-.801 3.4-1.728 4.996-2.772a42.236 42.236 0 004.54-3.474c.634-.608 1.264-1.159 1.8-1.724s1.058-1.08 1.494-1.584l1.166-1.364c.335-.407.602-.778.836-1.08l.525-.677c.061-.074.127-.144.198-.209zM76.529 143.963c-.025 0-.32-.45-.842-1.163a22.526 22.526 0 00-2.243-2.624 22.913 22.913 0 00-2.625-2.24c-.72-.522-1.177-.813-1.162-.838a1.5 1.5 0 01.36.172c.22.119.525.31.896.558a18.59 18.59 0 012.66 2.211 17.953 17.953 0 012.218 2.678c.252.36.443.673.562.893.074.109.133.228.176.353zM99.002 133.66c0 .029-.407.295-1.048.785a16.138 16.138 0 00-2.286 2.16 15.984 15.984 0 00-1.8 2.563c-.4.699-.605 1.156-.634 1.141.023-.115.06-.228.112-.334a9.38 9.38 0 01.407-.872 13.552 13.552 0 014.136-4.752c.335-.234.612-.41.81-.522.093-.069.195-.126.303-.169z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M103.707 127.964c5.018-4.014 14.457-5.922 14.457-5.922s-.529-18.317-1.962-26.733a34.572 34.572 0 00-.111-.602c-1.289-6.48-7.042-10.4-13.598-11.31l-4.438-.624-13.119.476-8.01 2.433s-9.472 2.12-10.912 15.415c-1.44 13.036-3.131 23.807-2.88 27.641.188 2.711 2.69 4.641 4.076 4.957 1.256.285 2.85.555 4.208-.266a6.932 6.932 0 00-.882 2.52h8.01l6.275-5.519 5.735 4.115 7.682-3.24 5.278-3.6m-27.173-.263v-.05c.893-4.417 1-5.713 1-5.713s-4.715-.594-3.96-6.873l.72-5.432 4.706 15.818s-1.07.882-2.466 2.25z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M92.987 121.345l1.465-3.705c-1.62-.691-2.2-.72-3.96-.929a19.022 19.022 0 00-13.32 3.478l.965 2.786h.036a4.826 4.826 0 002.21.022 3.988 3.988 0 011.868-.158c.803.198 1.38.892 2.1 1.299a3.273 3.273 0 004.32-1.238c.334-.612.64-1.462 1.335-1.44.342.049.656.216.89.471l2.49 2.186c.998.874 1.995 1.753 3.064 2.541 1.256.925 2.7 1.757 4.259 1.707a1.626 1.626 0 001.627-1.541l-9.35-5.479z",fill:"#050910",opacity:.2}),J__namespace.createElement("path",{d:"M84.325 82.797l-.23 3.777a9.152 9.152 0 00.59 3.83l4.615 12.021s-.72-7.017 2.258-9.605c2.977-2.588 6.678-2.33 6.728-6.332v-5.04l-6.372-1.26-7.589 2.61z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M107.922 84.773a1.149 1.149 0 01-.241.134c-.233.118-.458.25-.677.392a7.015 7.015 0 00-1.962 2.077 8.669 8.669 0 00-1.271 4.021c-.014.842.026 1.684.119 2.52l.256 2.715a277.705 277.705 0 001.501 12.38l.115.778c.02.09.031.181.032.273a1.422 1.422 0 01-.068-.266c-.04-.176-.086-.439-.151-.774a78.497 78.497 0 01-.461-2.88c-.36-2.423-.778-5.782-1.156-9.5-.093-.93-.18-1.836-.252-2.715a20.088 20.088 0 01-.108-2.549 8.614 8.614 0 011.332-4.078 6.795 6.795 0 012.034-2.07c.224-.14.459-.26.702-.36.082-.04.168-.073.256-.098zM106.235 128.878s-.026 0-.072-.021l-.206-.09c-.18-.08-.446-.198-.781-.36-.677-.328-1.641-.843-2.833-1.502-2.39-1.317-5.684-3.24-9.4-5.486l-.068-.04.032-.075 1.336-3.204a149.7 149.7 0 001.296-3.24c.205-.526.4-1.044.58-1.555.09-.252.18-.508.255-.76.04-.126.076-.252.108-.36 0-.065.029-.126.04-.187a.718.718 0 000-.083v-.032s.018.025.032.021l.061-.162c1.61.72 3.042 1.494 4.32 2.193 1.278.698 2.387 1.328 3.32 1.825.932.497 1.681.878 2.196 1.134l.594.284.201.108a1.3 1.3 0 01-.216-.079c-.137-.058-.342-.144-.601-.263a54.064 54.064 0 01-2.225-1.08c-.939-.479-2.063-1.101-3.341-1.8a60.33 60.33 0 00-4.32-2.16l.065-.162c.027.011.05.03.065.054a.272.272 0 010 .051.427.427 0 010 .064c.002.038.002.075 0 .112 0 .068-.025.133-.04.198-.032.133-.072.259-.108.389-.079.255-.165.511-.255.767-.184.514-.36 1.033-.58 1.558a163.1 163.1 0 01-1.296 3.24c-.453 1.106-.907 2.16-1.339 3.204l-.036-.115c3.708 2.254 6.991 4.194 9.36 5.541a93.259 93.259 0 002.804 1.548c.332.18.591.306.767.396l.198.1.087.029zM73.986 109.355a2.463 2.463 0 01-.13-.518 25.246 25.246 0 01-.255-1.44 39.498 39.498 0 01-.274-9.58c.061-.612.119-1.105.173-1.44.016-.178.05-.354.1-.525.005.178-.005.356-.028.532-.029.342-.068.836-.112 1.44a49.115 49.115 0 00-.1 4.785c.054 1.868.216 3.553.36 4.766.079.609.147 1.098.198 1.44.036.178.06.359.068.54zM73.217 112.375c-.1.16-.213.312-.338.454l-.972 1.191-3.24 3.917-3.204 3.935-.976 1.188c-.114.15-.24.291-.378.421.092-.166.199-.323.32-.468.217-.292.534-.72.93-1.224.795-1.03 1.908-2.437 3.164-3.96a215.111 215.111 0 013.265-3.884c.425-.49.774-.886 1.015-1.152.125-.152.264-.292.414-.418zM76.823 124.027c.018.151.018.303 0 .454-.01.177-.03.354-.061.529-.036.205-.062.443-.13.695-.13.599-.31 1.187-.536 1.757-.285.698-.63 1.37-1.03 2.009a13.19 13.19 0 01-1.386 1.774c-.424.445-.883.855-1.372 1.228-.201.166-.403.288-.576.407a5.27 5.27 0 01-.453.281 2.63 2.63 0 01-.403.205c-.022-.033.543-.36 1.35-.997.47-.383.915-.798 1.328-1.242.498-.55.95-1.139 1.354-1.761.395-.627.738-1.286 1.026-1.969.23-.56.422-1.135.572-1.721.234-1.008.284-1.652.317-1.649zM99.041 82.336c.05.08.094.163.134.248.079.166.209.407.36.72.373.918.647 1.872.817 2.848.24 1.454.251 2.938.032 4.395a13.847 13.847 0 01-1.775 5.07l-.529.816-.583.764-.047.064-.072-.043a5.192 5.192 0 00-6.141.66 5.33 5.33 0 00-1.869 3.639c-.057.587-.043.911-.06.911a1.676 1.676 0 01-.019-.234v-.681c.053-.848.3-1.673.72-2.412.303-.51.683-.968 1.127-1.36a5.582 5.582 0 011.732-1.08 5.336 5.336 0 014.604.395l-.122.022.558-.742c.176-.263.36-.536.522-.806a14.01 14.01 0 001.767-5.004c.222-1.44.222-2.905 0-4.345a14.718 14.718 0 00-.752-2.844c-.126-.324-.245-.57-.31-.72a1.431 1.431 0 01-.094-.281zM88.559 100.824a.917.917 0 01-.115-.206l-.3-.597c-.255-.522-.611-1.285-1.08-2.207a14.154 14.154 0 00-2.026-2.999 6.48 6.48 0 00-1.674-1.292 5.472 5.472 0 00-2.182-.572c-.313 0-.619 0-.907.021h-.119v-.108a25.74 25.74 0 011.015-4.04c.35-1.065.76-2.11 1.224-3.131.316-.685.676-1.347 1.08-1.984.14-.223.26-.389.36-.5a.912.912 0 01.134-.162c.018 0-.159.245-.421.702a19.665 19.665 0 00-1.005 1.998 32.957 32.957 0 00-1.18 3.132 26.176 26.176 0 00-1.02 4.003l-.1-.108c.295 0 .612-.029.932-.022.787.041 1.556.243 2.26.595.642.349 1.22.801 1.715 1.339a13.78 13.78 0 012.02 3.06c.467.928.805 1.699 1.04 2.232.111.252.197.457.266.615.036.074.063.151.083.231z",fill:"#263238"}),J__namespace.createElement("path",{d:"M89.3 102.198c.404-1.264.907-1.714 1.595-2.373a3.553 3.553 0 012.567-1.08c.8.047 1.551.454 2.35.468.933.022 1.8-.493 2.5-1.105a9.085 9.085 0 002.184-10.483 14.227 14.227 0 01-3.132 9.54 5.44 5.44 0 00-5.519.13A5.626 5.626 0 0089.3 102.2",fill:"#050910",opacity:.2}),J__namespace.createElement("path",{d:"M105.729 109.699c.047.164.08.331.098.501.05.36.115.82.194 1.371.155 1.163.36 2.765.569 4.54.039.335.079.662.115.979l-.072-.079a10.21 10.21 0 013.6 1.533c.322.22.629.46.918.72.111.088.211.188.299.299-.022.025-.457-.381-1.282-.907a10.948 10.948 0 00-3.571-1.44h-.065v-.065a327.25 327.25 0 01-.633-5.522c-.054-.555-.101-1.019-.137-1.379a2.676 2.676 0 01-.033-.551zM94.432 126.019a1.12 1.12 0 01-.187.058l-.544.137c-.475.108-1.17.241-2.034.36a25.666 25.666 0 01-10.458-.828c-.55-.177-1.08-.324-1.555-.529a2.529 2.529 0 01-1.123-.9 3.557 3.557 0 01-.486-1.08 6.415 6.415 0 01-.173-.875c-.036-.241-.05-.429-.061-.558a.795.795 0 010-.195s.05.263.136.742c.05.289.118.576.202.857.107.37.274.72.493 1.037a2.38 2.38 0 001.08.831c.465.191.994.339 1.541.504 1.192.345 2.407.605 3.636.778 2.239.309 4.507.339 6.754.09.86-.097 1.555-.213 2.03-.299l.55-.101a.698.698 0 01.199-.029z",fill:"#263238"}),J__namespace.createElement("path",{d:"M86.913 126.598c0 .032-.249.104-.609.313a3.536 3.536 0 00-1.699 2.653c-.04.418 0 .68-.029.688a1.486 1.486 0 01-.1-.695 3.237 3.237 0 011.763-2.761c.205-.12.436-.188.674-.198zM88.696 102.121c.024.081.038.164.043.248.022.184.047.425.083.72.065.627.151 1.534.23 2.661.159 2.246.281 5.364.198 8.805a103.108 103.108 0 01-.234 4.846 19.938 19.938 0 01-.594 3.92 8.038 8.038 0 01-1.108 2.434 5.636 5.636 0 01-.461.565 1.561 1.561 0 01-.18.18c-.018 0 .23-.266.58-.785a8.385 8.385 0 001.04-2.426c.308-1.279.493-2.584.55-3.899.101-1.487.177-3.121.22-4.838.083-3.435 0-6.549-.144-8.795-.061-1.127-.126-2.034-.169-2.664-.022-.299-.036-.54-.05-.72a1.326 1.326 0 01-.004-.252z",fill:"#263238"}),J__namespace.createElement("path",{d:"M72.383 100.189c-.999.171-2.008.282-3.02.332a23.665 23.665 0 01-3.035.144c1-.171 2.008-.281 3.02-.331a25.424 25.424 0 013.035-.145zM88.552 106.559c-.193.056-.39.093-.59.112-.378.065-.932.126-1.62.18a24.48 24.48 0 01-2.423.054 27.141 27.141 0 01-2.959-.245c-.98-.143-1.95-.339-2.909-.587a28.678 28.678 0 01-2.31-.72 17.373 17.373 0 01-1.51-.622 3.71 3.71 0 01-.536-.274c.193.055.382.124.566.205.36.148.874.342 1.522.565.648.224 1.44.465 2.311.688.872.223 1.858.421 2.88.569 1.023.147 2.034.223 2.938.263.904.039 1.724.018 2.408-.018a29.794 29.794 0 001.624-.119c.201-.031.405-.048.608-.051zM103.717 101.16a3.679 3.679 0 01-.515.324c-.335.202-.835.472-1.465.778-.63.306-1.397.641-2.265.968-1.889.697-3.85 1.18-5.846 1.44a25.83 25.83 0 01-2.455.209 19.16 19.16 0 01-1.66 0 3.502 3.502 0 01-.605-.047c.2-.023.403-.032.605-.025.392 0 .958-.022 1.652-.065a32.81 32.81 0 002.438-.248c.91-.126 1.911-.321 2.945-.576a32.916 32.916 0 002.88-.871 24.578 24.578 0 002.267-.926 35.45 35.45 0 001.491-.72c.172-.093.35-.173.533-.241zM115.752 93.68a2.154 2.154 0 01-.478.054c-.306.021-.753.06-1.3.118a26.14 26.14 0 00-8.248 2.315c-.496.234-.896.432-1.17.576-.139.082-.286.15-.439.202.126-.101.261-.19.403-.267.263-.162.656-.381 1.149-.63a22.836 22.836 0 014.035-1.558 22.495 22.495 0 014.259-.767 15.864 15.864 0 011.311-.061c.159-.011.32-.005.478.018zM117.397 108.773c-.158.01-.316.002-.472-.021a37.8 37.8 0 00-1.278-.098 31.595 31.595 0 00-4.219 0 32.71 32.71 0 00-4.18.573 49.84 49.84 0 00-1.252.273 2.547 2.547 0 01-.465.09c.142-.066.29-.117.443-.151.288-.093.72-.209 1.242-.335a26.662 26.662 0 018.438-.586c.54.05.976.108 1.278.158.158.017.314.049.465.097zM106.026 126.621c-.029 0 .141-.525.328-1.379.241-1.11.362-2.244.36-3.38a15.51 15.51 0 00-.407-3.373c-.198-.85-.382-1.361-.36-1.372.069.112.122.234.158.36.09.227.202.565.321.99a13.56 13.56 0 01.054 6.811 9.174 9.174 0 01-.303.998 1.376 1.376 0 01-.151.345zM71.369 114.086c-.344.054-.69.083-1.037.087a24.11 24.11 0 00-2.484.306 23.67 23.67 0 00-2.437.576c-.328.117-.664.21-1.005.281.306-.171.63-.307.965-.407a16.468 16.468 0 014.96-.886c.347-.025.695-.01 1.038.043zM73.902 129.202h-.137a3.21 3.21 0 01-.392 0 6.496 6.496 0 01-1.422-.273 7.07 7.07 0 01-5.04-7.315c.03-.488.114-.972.252-1.44.036-.123.078-.243.126-.36a.371.371 0 01.061-.126 10.94 10.94 0 00-.306 1.929 7.142 7.142 0 004.954 7.2c.621.187 1.259.316 1.904.385zM82.084 131.568a33.247 33.247 0 01-3.43-.77 33.993 33.993 0 01-3.388-.954 33.32 33.32 0 013.434.77c1.144.26 2.273.578 3.384.954zM101.317 128.02c-.148.096-.303.18-.465.252-.302.154-.749.36-1.303.608a38.062 38.062 0 01-4.464 1.631 39.197 39.197 0 01-4.626 1.08c-.598.101-1.08.169-1.422.205-.175.027-.352.04-.53.04.17-.055.343-.093.52-.112.33-.058.816-.148 1.41-.263a48.764 48.764 0 004.598-1.127 49.362 49.362 0 004.46-1.569 85.45 85.45 0 001.325-.555c.158-.081.324-.145.497-.19zM88.537 117.763a2.07 2.07 0 01-.415.13c-.27.076-.67.166-1.162.259a21.139 21.139 0 01-3.906.339 20.786 20.786 0 01-3.903-.393c-.493-.097-.889-.191-1.159-.27a1.732 1.732 0 01-.414-.137c.146.007.29.028.432.065.274.058.67.133 1.163.213 1.283.212 2.58.324 3.88.334 1.3.005 2.6-.09 3.885-.284.493-.072.893-.144 1.166-.194.142-.037.287-.058.433-.062zM94.198 117.82c-.204.13-.428.225-.662.281a7.604 7.604 0 01-3.434.249 2.173 2.173 0 01-.696-.18c.802.068 1.608.09 2.412.064.801-.09 1.596-.229 2.38-.414zM81.697 86.874c0 .032-.515.086-1.34.227-1.076.175-2.139.423-3.182.741-1.04.326-2.057.719-3.045 1.177-.76.36-1.217.598-1.232.573a1.3 1.3 0 01.303-.209c.198-.126.497-.291.871-.482a19.307 19.307 0 016.26-1.94c.418-.051.756-.084.994-.094.124-.012.248-.01.37.007zM84.133 88.305a13.094 13.094 0 01-1.551 4.143c-.047-.025.36-.928.785-2.07.424-1.14.712-2.084.766-2.073zM95.427 90.945c.054 0-.19 1.21-.36 2.708-.17 1.497-.187 2.718-.245 2.718a3.24 3.24 0 01-.05-.803c.003-.647.04-1.294.111-1.937.069-.643.173-1.28.314-1.912.044-.266.121-.526.23-.774zM99.733 91.082c-.054 0-.252-.619-.67-1.31-.417-.691-.882-1.17-.842-1.21.424.28.77.663 1.004 1.113.287.418.462.903.508 1.407zM74.324 114.481a9.545 9.545 0 00-.036-3.546 6.434 6.434 0 01-.169-2.142c.105-.72.72-1.476 1.44-1.44l1.293 5.108-2.528 2.02z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M74.299 102.351l4.572 18.061 8.935-.936-3.427-17.914a.969.969 0 00-1.008-.763l-8.18.36a.974.974 0 00-.892 1.192z",fill:"#263238"}),J__namespace.createElement("path",{d:"M84.572 106.647a2.965 2.965 0 01-.162-.529l-.36-1.462c-.15-.63-.327-1.364-.518-2.16-.029-.101-.047-.216-.08-.295a.54.54 0 00-.168-.223.547.547 0 00-.26-.119 1.525 1.525 0 00-.316 0l-1.415.054c-1.94.075-3.697.129-4.968.162l-1.505.029c-.184.016-.37.016-.554 0 .181-.034.366-.054.55-.058l1.502-.086c1.27-.065 3.027-.141 4.968-.216l1.414-.051c.12-.013.24-.013.36 0a.75.75 0 01.558.454c.036.106.064.214.083.324l.483 2.181c.122.598.226 1.08.306 1.473.04.172.068.346.082.522z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M79.612 102.88a.44.44 0 00-.472-.262.44.44 0 00-.374.388.488.488 0 00.266.442.456.456 0 00.508-.068.42.42 0 00.072-.5z",fill:"#FAFAFA"}),J__namespace.createElement("path",{d:"M79.603 108.387c-.201.062-4.838 2.715-4.838 2.715l-2.358 2.714s-.828 1.552 0 3.874 2.041 3.1 4.795 3.654l5.116-1.037 3.6-2.243-1.062-4.071-3.542 2.833-2.006.36-.33-.648 2.88-1.663 4.52-3.823-1.414-1.534-4.187 2.707-3.6 1.768.515-1.473 4.165-3.366s.284-1.515-2.254-.767z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M79.95 105.871s.961-.609 2.631 0c1.67.608 3.81 1.541 3.81 1.541l3.182.763-.404-.763s-3.092.45-3.042-1.8h1.876l1.57-.893 3.294 2.937 1.468 3.698 2.027 1.544-2.47 6.311-5.23-.864-4.457.453-2.347-1.735-.36-2.304-2.304-2.16s-.331-1.116.684-1.267c1.015-.151 3.567 2.16 3.567 2.16l2.46-.047s.406-.403.05-.608c-.357-.205-7.751-3.445-8.104-4.23-.353-.785-.72-1.289 0-1.545.72-.255 1.926.101 1.926.101s-.367-1.098.173-1.292z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M86.13 110.054a33.415 33.415 0 01-3.29-1.364 33.805 33.805 0 01-3.215-1.534c1.12.397 2.218.852 3.29 1.365 1.098.454 2.171.966 3.215 1.533zM87.832 115.776a1.774 1.774 0 01-.36.133c-.238.072-.584.176-1.02.273a6.994 6.994 0 01-1.565.177 4.527 4.527 0 01-1.883-.436 8.132 8.132 0 01-2.704-2.192 15.05 15.05 0 01-.659-.825 1.699 1.699 0 01-.22-.32c.344.336.67.689.976 1.058a8.774 8.774 0 002.682 2.11c.565.264 1.178.41 1.8.432a7.479 7.479 0 001.538-.133c.874-.166 1.407-.31 1.415-.277z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M96.365 112.886l-.136-.09-.397-.292-1.515-1.134c-.389-.961-.89-2.207-1.487-3.69v.018l-3.297-2.937h.079l-1.57.9h-1.894l.076-.072c-.01.314.066.625.22.9.173.271.424.484.72.612a4.09 4.09 0 002.008.219h.062l.025.047c.126.234.263.497.407.763l.086.162-.18-.043-3.186-.756a88.325 88.325 0 00-3.074-1.264 7.467 7.467 0 00-1.627-.5 2.792 2.792 0 00-1.657.22c-.169.057-.234.277-.226.504.011.236.055.47.13.694l.053.166-.169-.047a5.269 5.269 0 00-1.08-.18 1.607 1.607 0 00-1.022.198.36.36 0 00-.097.425c.055.179.126.352.212.518a1.7 1.7 0 00.263.476c.141.125.293.238.453.338a43.294 43.294 0 004.111 2.142l2.049.958 1.008.464.248.119a.492.492 0 01.256.209.398.398 0 010 .342.926.926 0 01-.173.248l-.025.025h-.036l-2.459.047h-.036l-.025-.025a15.027 15.027 0 00-2.408-1.8c-.418-.223-.886-.468-1.307-.299a.655.655 0 00-.414.454 1.373 1.373 0 000 .651l-.022-.039 2.3 2.16.022.018v.028c.118.795.238 1.563.36 2.304l-.029-.046 2.33 1.728h-.044l4.46-.44 3.87.663 1.012.18.256.05.086.018h-.086l-.26-.036-1.014-.155-3.878-.619-4.453.468h-.047l-2.336-1.717h-.025v-.029c-.115-.72-.234-1.508-.36-2.304l.021.043a665.363 665.363 0 01-2.307-2.16l-.018-.018v-.021a1.522 1.522 0 010-.742.978.978 0 01.183-.36.864.864 0 01.328-.216c.248-.088.519-.088.767 0 .237.08.466.182.684.306a15.183 15.183 0 012.444 1.822l-.061-.022 2.459-.05-.065.025c.108-.108.209-.284.155-.382-.054-.097-.263-.162-.418-.241l-1.008-.464-2.048-.954a43.214 43.214 0 01-4.137-2.16 3.516 3.516 0 01-.478-.36.781.781 0 01-.18-.267l-.126-.262a3.776 3.776 0 01-.22-.551.827.827 0 01-.022-.328.469.469 0 01.18-.288c.345-.21.752-.295 1.152-.241.377.023.75.087 1.113.191l-.115.119a2.729 2.729 0 01-.137-.753 1.055 1.055 0 01.057-.389.508.508 0 01.288-.295h-.018a2.954 2.954 0 011.779-.245 7.776 7.776 0 011.666.512c1.08.414 2.092.842 3.082 1.274l3.183.763-.094.123-.403-.764.082.044c-.708.1-1.43.018-2.098-.238a1.805 1.805 0 01-.792-.673 1.924 1.924 0 01-.238-.987v-.075h1.955-.036l1.573-.889.043-.026.036.033 3.284 2.948 1.44 3.708 1.493 1.159.386.306.075.123z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M35.148 63.152l24.963-11.527-6.549 24.415-5.59-4.622-3.798 2.513-2.027-.386-2.103-7.876-4.896-2.517z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M42.25 73.293l17.863-21.668-20.066 14.044 2.203 7.624z",fill:"#050910",opacity:.5}),J__namespace.createElement("path",{d:"M60.191 51.32c.043.026-2.52 4.425-5.71 9.821-3.189 5.397-5.824 9.753-5.871 9.72-.047-.032 2.52-4.42 5.71-9.82s5.824-9.746 5.871-9.72z",fill:"#263238"}),J__namespace.createElement("path",{d:"M52.132 55.803c.022.046-3.37 1.684-7.56 3.657-4.19 1.973-7.628 3.532-7.65 3.485-.022-.047 3.366-1.685 7.56-3.658 4.194-1.972 7.628-3.546 7.65-3.484zM53.947 55.045c.021.046-.126.162-.331.255-.206.094-.39.13-.41.083-.022-.047.125-.158.33-.256.206-.097.39-.13.41-.082zM53.165 64.258c-.133.364-.3.715-.5 1.047-.339.63-.832 1.487-1.419 2.405a35.485 35.485 0 01-1.598 2.293c-.221.318-.47.615-.742.89.186-.339.398-.663.634-.969.403-.587.957-1.4 1.548-2.315.59-.914 1.08-1.76 1.462-2.372.184-.34.39-.666.615-.98z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M39.892 75.107c-.025-.047.206-.22.53-.36.324-.14.605-.202.623-.151.017.05-.235.18-.548.32-.313.14-.58.238-.605.19zM36.242 78.385a4.659 4.659 0 011.631-1.858 6.738 6.738 0 01-.8.944c-.248.329-.526.635-.83.914zM34.458 82.957c-.039-.418.01-.84.144-1.239.075-.413.237-.806.476-1.152a7.587 7.587 0 01-.292 1.2 6.967 6.967 0 01-.328 1.19zM35.112 87.813a3.068 3.068 0 01-.49-1.148 2.935 2.935 0 01-.158-1.235c.147.385.26.782.338 1.188.141.387.245.788.31 1.195zM37.983 91.802a3.051 3.051 0 01-.95-.803 2.978 2.978 0 01-.72-1.026c.308.273.592.574.845.9.303.283.579.594.825.928zM42.35 94.023c0 .026-.144 0-.36-.021a4.427 4.427 0 01-.854-.224 2.94 2.94 0 01-1.105-.583c.393.105.778.24 1.149.407.316.115.612.205.824.27.213.065.353.126.346.151zM47.135 93.295c-.296.304-.67.522-1.08.63-.39.164-.814.23-1.235.19 0-.053.54-.147 1.174-.36.633-.212 1.109-.51 1.141-.46zM48.84 88.973c.18.386.247.815.194 1.238a2.16 2.16 0 01-.36 1.203c-.054-.022.126-.544.162-1.214.036-.67-.05-1.213.004-1.227zM45.861 85.266c.42.07.811.26 1.127.547.353.235.637.56.82.943-.042.036-.402-.385-.932-.796-.529-.41-1.05-.637-1.015-.694zM41.023 85.468c.34-.25.733-.42 1.149-.493.4-.131.826-.165 1.242-.097-.394.116-.794.21-1.199.28-.39.13-.788.234-1.192.31zM37.406 88.739c.128-.402.341-.77.627-1.08.253-.335.564-.621.918-.847a5.073 5.073 0 01-.77.965c-.232.341-.491.663-.775.962zM35.926 93.427a5.146 5.146 0 01.497-2.423c-.03.413-.1.822-.212 1.22-.05.41-.145.814-.285 1.203zM36.09 98.36a5.707 5.707 0 01-.255-2.462c.105.402.164.814.176 1.228.074.407.1.822.08 1.235zM37.557 103.077a3.484 3.484 0 01-.568-1.109 3.438 3.438 0 01-.317-1.202c.208.358.374.74.493 1.137.175.375.307.769.392 1.174zM40.134 107.285a3.465 3.465 0 01-.814-.939 3.419 3.419 0 01-.601-1.08c.288.297.54.627.752.982.262.318.485.666.663 1.037zM43.657 110.763a3.418 3.418 0 01-1.022-.72 3.509 3.509 0 01-.846-.914c.354.218.68.477.972.774.332.25.633.539.896.86zM47.932 113.231a3.33 3.33 0 01-1.17-.421 3.392 3.392 0 01-1.051-.669c.395.123.776.291 1.134.5.383.157.747.355 1.087.59zM52.76 114.197c-.41.086-.834.093-1.246.022-.42-.008-.833-.1-1.217-.27a6.08 6.08 0 011.235.083c.414.01.825.065 1.227.165zM57.675 113.697a3.69 3.69 0 01-1.202.316c-.406.096-.825.12-1.239.072.391-.136.797-.223 1.21-.259a4.857 4.857 0 011.231-.129zM62.421 112.32a4.099 4.099 0 01-1.148.479c-.384.16-.789.261-1.203.299a4.178 4.178 0 011.145-.479 4.328 4.328 0 011.206-.299zM66.974 110.336a4.311 4.311 0 01-1.08.612 4.19 4.19 0 01-1.16.443c.327-.259.69-.465 1.08-.612a4.123 4.123 0 011.16-.443zM71.258 107.855a4.126 4.126 0 01-1.004.72c-.337.246-.71.438-1.106.569a4.33 4.33 0 011.005-.72 4.294 4.294 0 011.105-.569zM74.27 105.647c.033.04-.161.249-.435.465-.274.216-.522.36-.55.316-.03-.043.161-.248.435-.464.273-.216.518-.356.55-.317z",fill:"#263238"}))}var qU=J__namespace.memo(jU),PC=qU;function om(){let{locale:e}=M();return J__namespace.default.createElement("div",{className:"w-full h-full gap-[1.5rem] p-[1.5rem] flex flex-col items-center justify-center"},J__namespace.default.createElement(PC,null),J__namespace.default.createElement("span",{className:"text-center font-medium text-[#050910] text-[1rem]"},O(e,"no-chat")))}var SC=hf.gql`
|
|
887
|
+
`;function NU(e,t,o){return j(this,null,function*(){try{return yield hf__default.default(e!=null?e:"",AU,{receiverId:o},{"x-access-token":t!=null?t:""})}catch(r){throw r}})}function Yp(e){var a;let{user:t,chatApiUrl:o}=M(),{data:r,isLoading:n}=Ve({queryKey:["existing-conversation",t==null?void 0:t.id,e],queryFn:()=>NU(o,t==null?void 0:t.accessToken,e)});return {conversationId:(a=r==null?void 0:r.checkExistingConversation)==null?void 0:a.conversationId,isCheckingConversation:n}}function us({user:e,page:t,icon:o,label:r,className:n,disabled:a=false,onClick:s,isSharing:i=false,link:l}){var N,I,P;let[d,c]=usehooks.useToggle(false),{isMobile:p}=Ne(),{onSelectChat:f}=ce(),{locale:u,user:g}=M(),m=J.useMemo(()=>t!=null?t:e,[t,e]),v=J.useMemo(()=>{var S;return (S=t==null?void 0:t.id)!=null?S:e==null?void 0:e.id},[t==null?void 0:t.id,e==null?void 0:e.id]),{conversationId:h,isCheckingConversation:b}=Yp(v),x=(m==null?void 0:m.id)&&(m==null?void 0:m.name),w=J.useCallback(()=>{if(g&&!g.isActive){c(true);return}i?(()=>{var L,E;if(!x||!l)return;let T=`Ol\xE1 ${m==null?void 0:m.name}! Vi este post interessante e gostaria de compartilh\xE1-lo com voc\xEA: ${l}`;f==null||f({avatar:(E=(L=m==null?void 0:m.avatar)!=null?L:m==null?void 0:m.logo)!=null?E:m==null?void 0:m.image,name:m==null?void 0:m.name,id:m==null?void 0:m.id,conversationId:h}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("toggleMessages",{detail:{isVisible:true,conversationId:h,prefilledMessage:T}}));},500);})():(()=>{var T,L;x&&(f==null||f({avatar:(L=(T=m==null?void 0:m.avatar)!=null?T:m==null?void 0:m.logo)!=null?L:m==null?void 0:m.image,name:m==null?void 0:m.name,id:m==null?void 0:m.id,conversationId:h}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("toggleMessages",{detail:{isVisible:true,conversationId:h}}));},500));})(),typeof s=="function"&&setTimeout(()=>{s();},300);},[g,c,i,x,f,m==null?void 0:m.avatar,m==null?void 0:m.logo,m==null?void 0:m.image,m==null?void 0:m.name,m==null?void 0:m.id,h,l,s]),C=o!=null?o:J__namespace.default.createElement(Zp,null),A=p?void 0:r!=null?r:O(u,"message.label"),k=n!=null?n:`bg-white text-primary font-medium p-[1rem] border border-primary ${p?"rounded-full":"rounded-[0.5rem]"}`;return i&&m?J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:`flex flex-col items-center gap-2 cursor-pointer ${a?"opacity-50 cursor-not-allowed":""}`,onClick:a?void 0:w},J__namespace.default.createElement(ae,{src:(I=(N=m==null?void 0:m.avatar)!=null?N:m==null?void 0:m.image)!=null?I:m==null?void 0:m.logo,name:(P=m==null?void 0:m.name)!=null?P:""}),J__namespace.default.createElement("span",{className:"text-sm text-gray-700 font-medium"},m==null?void 0:m.name)),J__namespace.default.createElement(ko,{isOpen:d,onClose:()=>c(false)})):J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(re,{className:k,label:A,onClick:w,leftElement:C,disabled:a||!x||b}),J__namespace.default.createElement(ko,{isOpen:d,onClose:()=>c(false)}))}function Xp({isOpen:e,onClose:t,selectedChat:o}){var q,Y,H,z;let{makeAdmin:r,isMakingAdmin:n}=bp(),{conversation:a,isLoadingConversation:s}=Kp(o==null?void 0:o.conversationId),{locale:i,user:l}=M(),[d,c]=J__namespace.default.useState(false),[p,f]=J__namespace.default.useState([]),[u,g]=J__namespace.default.useState(null),{onlineUsers:m}=Qo(),v=J__namespace.default.useMemo(()=>(a==null?void 0:a.participants)||[],[a]),h=J__namespace.default.useMemo(()=>(v==null?void 0:v.map(G=>F(y({},G==null?void 0:G.user),{participantId:G==null?void 0:G.id,isAdmin:(G==null?void 0:G.role)==="ADMIN",isOwner:(G==null?void 0:G.role)==="OWNER"})))||[],[v]),b=J__namespace.default.useMemo(()=>!a||!l?null:v==null?void 0:v.find(G=>{var R;return ((R=G==null?void 0:G.user)==null?void 0:R.id)===(l==null?void 0:l.id)}),[a,l,v]),x=J__namespace.default.useMemo(()=>(b==null?void 0:b.role)==="ADMIN"||(b==null?void 0:b.role)==="OWNER",[b]),w=J__namespace.default.useMemo(()=>x?(h==null?void 0:h.filter(G=>(G==null?void 0:G.participantId)!==(l==null?void 0:l.id)))||[]:h,[h,x,l==null?void 0:l.id]),C=J__namespace.default.useMemo(()=>{var R;if((w==null?void 0:w.length)===0)return false;let G=((R=w==null?void 0:w.map(V=>V==null?void 0:V.participantId))==null?void 0:R.filter(Boolean))||[];return G==null?void 0:G.every(V=>p==null?void 0:p.includes(V))},[w,p]),A=G=>{f(R=>R!=null&&R.includes(G)?R==null?void 0:R.filter(V=>V!==G):[...R,G]);},k=()=>{var R;let G=((R=w==null?void 0:w.map(V=>V==null?void 0:V.participantId))==null?void 0:R.filter(Boolean))||[];f(G);},N=()=>{f([]),c(false);},{deleteParticipant:I,isDeletingParticipant:P}=T2((q=o==null?void 0:o.conversationId)!=null?q:"",p),S=()=>j(this,null,function*(){!(p!=null&&p.length)||P||I(void 0,{onSuccess:N});}),D=!s,T=G=>{if(d){A(G==null?void 0:G.participantId);return}g(G);},L=()=>g(null),E=()=>j(this,null,function*(){!(u!=null&&u.participantId)||P||(f([u==null?void 0:u.participantId]),I(void 0,{onSuccess:()=>{N(),g(null);}}));}),B=()=>{!(u!=null&&u.id)||n||r(u==null?void 0:u.id,{onSuccess:()=>{g(null);}});},W=()=>{!(u!=null&&u.id)||n||r(u==null?void 0:u.id,{onSuccess:()=>{g(null);}});};return J__namespace.default.useEffect(()=>{a&&(f([]),c(false),g(null));},[a]),s?J__namespace.default.createElement(react.AnimatePresence,null,e&&J__namespace.default.createElement(react.motion.div,{className:"fixed inset-0 z-[9999] flex justify-end bg-black bg-opacity-50",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>D&&t()},J__namespace.default.createElement(react.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{duration:.3},className:"w-[22rem] h-full bg-white",onClick:G=>G.stopPropagation()},J__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},J__namespace.default.createElement(Ge,null))))):a?J__namespace.default.createElement(react.AnimatePresence,null,e&&J__namespace.default.createElement(react.motion.div,{className:"fixed inset-0 z-[9999] flex justify-end bg-black bg-opacity-50",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>D&&t()},J__namespace.default.createElement(react.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{duration:.3},className:"w-[22rem] h-full bg-white flex flex-col",onClick:G=>G.stopPropagation()},J__namespace.default.createElement("div",{className:"flex items-center justify-between px-5 pt-5 mb-4"},u?J__namespace.default.createElement("button",{onClick:L,className:"p-2 rounded-full hover:bg-gray-200"},J__namespace.default.createElement(lucideReact.ArrowLeft,{className:"w-5 h-5 text-gray-600"})):J__namespace.default.createElement("div",null),J__namespace.default.createElement("h2",{className:"text-lg font-semibold"},u?O(i,"participant-details"):O(i,"group-details")),J__namespace.default.createElement("button",{onClick:t,className:"p-2 rounded-full hover:bg-gray-200"},J__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5 text-gray-600"}))),J__namespace.default.createElement("div",{className:"flex-1 overflow-y-auto px-5 pb-5"},J__namespace.default.createElement(react.AnimatePresence,{mode:"wait"},u?J__namespace.default.createElement(react.motion.div,{key:"user-view",initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-30},className:"flex flex-col items-center pt-8 text-center"},J__namespace.default.createElement(ae,{src:u==null?void 0:u.avatar,name:u==null?void 0:u.name,className:"w-24 h-24 mb-4"}),J__namespace.default.createElement("h3",{className:"text-lg font-semibold"},ht((Y=u==null?void 0:u.name)!=null?Y:"")),(u==null?void 0:u.slug)&&J__namespace.default.createElement("p",{className:"text-sm text-gray-500 mb-6"},"@",u==null?void 0:u.slug),(u==null?void 0:u.isAdmin)&&J__namespace.default.createElement("span",{className:"text-xs text-green-700 font-medium px-2 py-1 bg-green-100 rounded-full mb-4"},"Admin"),(u==null?void 0:u.isOwner)&&J__namespace.default.createElement("span",{className:"text-xs text-blue-700 font-medium px-2 py-1 bg-blue-100 rounded-full mb-4"},O(i,"owner-label")),x&&(u==null?void 0:u.participantId)!==(l==null?void 0:l.id)&&J__namespace.default.createElement("div",{className:"flex gap-3 mb-6 justify-center"},J__namespace.default.createElement("div",{className:"relative group"},J__namespace.default.createElement("button",{onClick:E,disabled:P,className:"p-3 rounded-full border border-red-200 bg-red-50 hover:bg-red-100 text-red-600 transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},J__namespace.default.createElement(lucideReact.Trash2,{className:"w-5 h-5"})),J__namespace.default.createElement("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-1.5 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none z-10"},O(i,"delete-participant")||"Delete Participant")),!(u!=null&&u.isAdmin)&&!(u!=null&&u.isOwner)&&J__namespace.default.createElement("div",{className:"relative group"},J__namespace.default.createElement("button",{onClick:B,disabled:n,className:"p-3 rounded-full border border-blue-200 bg-blue-50 hover:bg-blue-100 text-blue-600 transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},J__namespace.default.createElement(lucideReact.UserCog,{className:"w-5 h-5"})),J__namespace.default.createElement("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-1.5 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none z-10"},n?O(i,"promoting")||"Promoting...":O(i,"promote-admin")||"Promote to Admin")),(u==null?void 0:u.isAdmin)&&!(u!=null&&u.isOwner)&&x&&J__namespace.default.createElement("div",{className:"relative group"},J__namespace.default.createElement("button",{onClick:W,disabled:n,className:"p-3 rounded-full border border-orange-200 bg-orange-50 hover:bg-orange-100 text-orange-600 transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},J__namespace.default.createElement(lucideReact.UserMinus,{className:"w-5 h-5"})),J__namespace.default.createElement("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-1.5 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none z-10"},n?O(i,"removing-admin")||"Removing Admin...":O(i,"remove-admin")||"Remove Admin"))),J__namespace.default.createElement(us,{className:"w-full border rounded-md mb-3",user:{id:u==null?void 0:u.id,avatar:u==null?void 0:u.avatar,name:u==null?void 0:u.name},onClick:()=>{g(null),t();}}),J__namespace.default.createElement(re,{className:"w-full border rounded-md",onClick:()=>{Ae(),window.open(`/profile/pt/${u==null?void 0:u.slug}`,"_blank","noopener,noreferrer");}},O(i,"see-profile"))):J__namespace.default.createElement(react.motion.div,{key:"details",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:20}},J__namespace.default.createElement("div",{className:"flex flex-col items-center gap-2 mb-6"},J__namespace.default.createElement(ae,{src:a==null?void 0:a.image,name:(H=a==null?void 0:a.name)!=null?H:"",className:"w-20 h-20"}),J__namespace.default.createElement("span",{className:"text-xl font-medium"},a==null?void 0:a.name),(a==null?void 0:a.description)&&J__namespace.default.createElement("p",{className:"text-sm text-gray-600 text-center px-4"},a==null?void 0:a.description)),J__namespace.default.createElement("div",null,J__namespace.default.createElement("div",{className:"flex justify-between items-center mb-4"},J__namespace.default.createElement("h3",{className:"text-sm font-semibold text-gray-500"},O(i,"participants-label",{count:((z=h==null?void 0:h.length)==null?void 0:z.toString())||"0"})),J__namespace.default.createElement(react.AnimatePresence,null,d?J__namespace.default.createElement(react.motion.div,{key:"selection-mode",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"flex gap-2 items-center"},!C&&J__namespace.default.createElement(re,{onClick:k,leftElement:J__namespace.default.createElement(lucideReact.List,{size:16}),className:"!p-2 border border-primary text-primary"}),J__namespace.default.createElement(re,{onClick:N,leftElement:J__namespace.default.createElement(lucideReact.X,{size:16}),className:"!p-2 bg-primary/10 text-primary"}),x&&(p==null?void 0:p.length)>0&&J__namespace.default.createElement(re,{onClick:S,disabled:P,isLoading:P,leftElement:J__namespace.default.createElement(Sr,null),className:"!p-2 bg-red-100 text-red-500"},"(",p==null?void 0:p.length,")")):J__namespace.default.createElement(react.motion.div,{key:"normal-mode",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"flex items-center gap-2"}))),(h==null?void 0:h.length)===0?J__namespace.default.createElement("p",{className:"text-center text-gray-500 py-6"},O(i,"no-participant")):J__namespace.default.createElement("ul",{className:"space-y-2"},h==null?void 0:h.map(G=>{let R=(G==null?void 0:G.id)===(l==null?void 0:l.id),V=!R||!x,_=p==null?void 0:p.includes(G==null?void 0:G.participantId),$=m==null?void 0:m[G==null?void 0:G.id];return J__namespace.default.createElement("li",{key:G==null?void 0:G.participantId,className:`flex items-center gap-3 p-3 rounded-lg cursor-pointer ${_?"bg-blue-50 border border-blue-200":"hover:bg-gray-50"} ${V?"":"opacity-60 cursor-default"}`,onClick:()=>{V&&T({id:G==null?void 0:G.id,participantId:G==null?void 0:G.participantId,name:G==null?void 0:G.name,avatar:G==null?void 0:G.avatar,slug:G==null?void 0:G.slug,isAdmin:G==null?void 0:G.isAdmin,isOwner:G==null?void 0:G.isOwner});}},J__namespace.default.createElement("div",{className:"relative"},J__namespace.default.createElement(ae,{src:G==null?void 0:G.avatar,name:G==null?void 0:G.name,className:"w-10 h-10"}),$&&J__namespace.default.createElement("span",{className:"absolute bottom-0 right-0 w-3 h-3 bg-primary border-2 border-white rounded-full"})),J__namespace.default.createElement("div",{className:"flex-1"},J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement("span",{className:"text-sm font-medium"},ht(G==null?void 0:G.name),R&&J__namespace.default.createElement("span",{className:"text-xs text-gray-500 ml-1"},O(i,"you-label")))),(G==null?void 0:G.slug)&&J__namespace.default.createElement("span",{className:"text-xs text-gray-500 block"},"@",G==null?void 0:G.slug)),J__namespace.default.createElement("div",{className:"flex flex-col items-end gap-1"},$&&J__namespace.default.createElement("span",{className:"text-xs text-primary font-medium px-2 py-1 bg-primary/10 rounded-full"},"Online"),(G==null?void 0:G.isOwner)&&J__namespace.default.createElement("span",{className:"text-xs text-blue-700 font-medium px-2 py-1 bg-blue-100 rounded-full"},O(i,"owner-label")),(G==null?void 0:G.isAdmin)&&!(G!=null&&G.isOwner)&&J__namespace.default.createElement("span",{className:"text-xs text-green-700 font-medium px-2 py-1 bg-green-100 rounded-full"},"Admin")),d&&V&&J__namespace.default.createElement(Wo,{isChecked:_,onClick:()=>A(G==null?void 0:G.participantId)}),d&&!V&&J__namespace.default.createElement("div",{className:"w-5 h-5"}))}))))))))):null}function HU({children:e}){return RW.createPortal(e,document.body)}function $p({selectedMessageIds:e,onSelectChatHeaderOption:t}){let{locale:o,user:r}=M(),{selectedChat:n}=ce(),{deleteMessages:a,isDeletingMessages:s}=jn(),[i,l]=J.useState(false),d=J.useRef(null),c=J.useRef(null),[p,f]=J.useState({top:0,left:0}),u=()=>{if(d.current){let v=d.current.getBoundingClientRect();f({top:v.bottom+8,left:v.right-192});}},g=()=>{u(),l(v=>!v);},m=v=>{a({input:{messageIds:e,deleteForAll:v,conversationId:n==null?void 0:n.id}},{onSuccess(){t==null||t("filter-all");}}),l(false);};return J.useEffect(()=>{let v=h=>{var b;c.current&&!c.current.contains(h.target)&&!((b=d.current)!=null&&b.contains(h.target))&&l(false);};return i&&document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[i]),J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(re,{ref:d,isLoading:s,disabled:s,className:"button-empty p-2 rounded-full hover:bg-red-100 disabled:opacity-50 disabled:cursor-not-allowed",onClick:g},J__namespace.default.createElement(lucideReact.Trash2,{className:"w-5 h-5 text-red-600"})),i&&J__namespace.default.createElement(HU,null,J__namespace.default.createElement("div",{ref:c,className:"absolute bg-white border rounded-lg shadow-lg w-48 z-[9999] flex flex-col",style:{position:"absolute",top:p.top,left:p.left}},J__namespace.default.createElement("button",{className:"!text-left px-4 py-2 hover:bg-gray-100 w-full",onClick:()=>m(false)},O(o,"for-me-label")),n!=null&&n.isGroupOwner?J__namespace.default.createElement("button",{className:"!text-left px-4 py-2 hover:bg-gray-100 w-full",onClick:()=>m(true)},O(o,"for-all-label")):null)))}var GU=()=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},J__namespace.createElement("g",{id:"freepik--background-complete--inject-79"},J__namespace.createElement("path",{fill:"#ebebeb",d:"m98.19 196.3 7.809-57.229 90.244 12.314-7.81 57.23z"}),J__namespace.createElement("path",{fill:"#fff",d:"M106 139.06c3.17 4 6.43 7.83 9.63 11.76s6.5 7.73 9.78 11.55c3.41 4 6.85 8 10.28 11.91.11.12.2.25.31.38q4.57 5.22 9.17 10.43l.45.5.56-.36q5.82-3.79 11.62-7.62a5 5 0 0 0 .4-.26q6.59-4.32 13.12-8.73c4.16-2.8 8.34-5.65 12.49-8.5s8.31-5.76 12.43-8.75c-4.28 2.46-8.52 5.07-12.77 7.61s-8.49 5.19-12.72 7.85q-7.06 4.39-14.12 8.93-5.29 3.36-10.58 6.76c-2.77-3.12-5.56-6.26-8.36-9.35q-5.58-6.22-11.21-12.38-5.06-5.52-10.15-11c-3.49-3.56-6.87-7.21-10.33-10.73"}),J__namespace.createElement("path",{fill:"#fff",d:"M156.3 177.05a1 1 0 0 1 .1.11l1.26 1.4c2 2.22 4.07 4.36 6.18 6.46 2.58 2.58 5.23 5.09 7.9 7.58s5.39 4.89 8.18 7.25 5.6 4.7 8.54 6.88c-2.41-2.77-5-5.39-7.53-8s-5.24-5.09-7.89-7.57-5.41-4.91-8.19-7.28c-2.21-1.89-4.47-3.75-6.8-5.53q-.8-.63-1.62-1.23ZM98.65 194.49c3.43-1.32 6.78-2.81 10.08-4.34s6.57-3.17 9.83-4.81 6.47-3.38 9.64-5.18c2.59-1.46 5.15-3 7.66-4.56.55-.34 1.08-.68 1.61-1l.12-.08a.3.3 0 0 1-.15 0l-1.9.77c-2.71 1.09-5.37 2.29-8 3.51-3.31 1.54-6.57 3.16-9.82 4.82s-6.46 3.38-9.64 5.19-6.36 3.65-9.43 5.68"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"m54.363 75.194 74.634-18.94 12.011 47.329-74.634 18.94z"}),J__namespace.createElement("path",{fill:"#fff",d:"M54.36 75.19c3.75 2.12 7.52 4.1 11.28 6.16s7.54 4 11.32 6c3.94 2.06 7.89 4.07 11.84 6.08l.36.2 10.49 5.27.51.25.33-.46c2.24-3.21 4.46-6.43 6.69-9.65a4 4 0 0 0 .23-.34q3.8-5.46 7.52-11c2.38-3.51 4.75-7.07 7.1-10.62s4.69-7.15 7-10.79c-2.58 3.28-5.07 6.67-7.6 10s-5 6.76-7.48 10.18q-4.14 5.69-8.25 11.48-3.07 4.31-6.15 8.65c-3.2-1.6-6.38-3.15-9.55-4.69q-6.36-3.12-12.72-6.16c-3.8-1.81-7.61-3.61-11.42-5.37s-7.66-3.53-11.5-5.19"}),J__namespace.createElement("path",{fill:"#fff",d:"M105.84 89a.6.6 0 0 0 .11.06l1.43.7q3.41 1.65 6.89 3.1c2.84 1.22 5.71 2.34 8.59 3.44s5.78 2.13 8.71 3.1 5.88 1.91 8.88 2.69c-2.77-1.41-5.59-2.66-8.42-3.87s-5.73-2.33-8.6-3.43-5.79-2.14-8.72-3.11c-2.33-.78-4.69-1.53-7.08-2.19-.55-.16-1.1-.3-1.66-.45ZM66.17 121c2.27-2.11 4.42-4.34 6.52-6.6s4.16-4.56 6.19-6.87 4-4.71 5.91-7.12c1.57-2 3.11-4 4.57-6l.93-1.31s0-.07.07-.1l-.1.09c-.42.4-.84.79-1.25 1.2-1.78 1.71-3.49 3.49-5.18 5.3-2.11 2.25-4.15 4.56-6.17 6.88s-4 4.7-5.91 7.12-3.82 4.81-5.58 7.41"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"m361.82 270.48 76.475-8.971 5.689 48.498-76.476 8.97z"}),J__namespace.createElement("path",{fill:"#fff",d:"M361.81 270.5c3.44 2.59 6.92 5.05 10.37 7.6s6.95 4.95 10.44 7.39 7.29 5.07 10.94 7.58l.33.24q4.83 3.31 9.7 6.61l.48.31.38-.41q4-4.33 7.9-8.69a3 3 0 0 0 .28-.3q4.47-4.92 8.9-9.92c2.82-3.16 5.63-6.38 8.43-9.59s5.59-6.47 8.33-9.79c-3 2.92-5.9 6-8.85 8.93s-5.85 6-8.76 9.11q-4.85 5.08-9.67 10.29c-2.41 2.58-4.81 5.18-7.22 7.77-2.94-2-5.88-3.95-8.82-5.89q-5.88-3.93-11.8-7.78-5.28-3.45-10.61-6.82c-3.63-2.21-7.17-4.49-10.75-6.64"}),J__namespace.createElement("path",{fill:"#fff",d:"m411 291 .1.07c.44.3.89.6 1.33.88 2.11 1.4 4.25 2.72 6.43 4 2.65 1.57 5.35 3.06 8.06 4.54s5.45 2.86 8.23 4.21 5.57 2.67 8.44 3.83c-2.55-1.76-5.19-3.37-7.84-4.93s-5.37-3.07-8.07-4.54-5.46-2.88-8.23-4.23c-2.21-1.08-4.46-2.13-6.74-3.1q-.78-.34-1.59-.66ZM367.5 317.43c2.53-1.8 5-3.73 7.33-5.68s4.72-4 7-6 4.58-4.13 6.8-6.28c1.81-1.74 3.59-3.51 5.31-5.35l1.1-1.18a1 1 0 0 0 .08-.09.3.3 0 0 1-.11.07l-1.39 1c-2 1.47-3.92 3-5.84 4.57-2.39 2-4.71 4-7 6s-4.58 4.13-6.8 6.28-4.4 4.35-6.48 6.66"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M378.13 159.62c-7.69.14-18.89.45-26.48.45h-.44v-.45l-.06-11.19v-.5h.5c7.93 0 18.94.08 26.76.23 0 3.39-.22 8-.28 11.46m0 0c-.1-3.27-.2-8-.27-11.19l.27.27c-7.66.14-18.71.21-26.48.23l.5-.5v11.19l-.45-.45c7.49 0 18.89.29 26.48.45ZM363.36 173.73c-7.69.14-18.89.45-26.48.45h-.44v-.45l-.05-11.19V162h.5c7.93 0 18.94.08 26.76.23 0 3.39-.22 8-.28 11.46Zm0 0c-.1-3.27-.2-8-.27-11.19l.27.27c-7.66.14-18.71.21-26.48.23l.5-.5-.06 11.19-.44-.45c7.49 0 18.89.29 26.48.45M392.9 173.73c-7.69.14-18.89.45-26.48.45H366v-.45l-.06-11.19V162h.5c7.93 0 18.94.08 26.76.23 0 3.39-.22 8-.28 11.46Zm0 0c-.1-3.27-.2-8-.27-11.19l.27.27c-7.65.14-18.71.21-26.48.23l.5-.5-.05 11.19-.45-.45c7.49 0 18.89.29 26.48.45M443.35 58.29c-7.69.15-18.89.45-26.48.45h-.45v-.45l-.05-11.19v-.5h.51c7.92 0 18.94.08 26.75.23 0 3.39-.21 8-.27 11.46Zm0 0c-.1-3.27-.21-8-.28-11.19l.28.27c-7.66.14-18.71.21-26.48.23l.49-.5-.05 11.19-.44-.45c7.48 0 18.89.29 26.48.45M458.12 72.4c-7.69.14-18.89.45-26.48.45h-.45v-.45l-.05-11.19v-.5h.5c7.92 0 18.94.08 26.75.23 0 3.39-.21 8-.27 11.46m0 0c-.1-3.27-.21-8-.28-11.19l.28.27c-7.66.14-18.71.21-26.48.23l.5-.5-.06 11.19-.44-.45c7.48 0 18.89.29 26.48.45M68.36 58.3c-7.69.15-18.89.45-26.48.45h-.44v-.45l-.06-11.19v-.5h.5c7.93 0 18.94.08 26.76.23 0 3.4-.22 8-.28 11.46m0 0c-.1-3.27-.2-8-.27-11.19l.27.28c-7.65.13-18.71.2-26.48.22l.5-.5-.05 11.19-.45-.44c7.49 0 18.89.29 26.48.44M431.64 318.51c7.69-.15 18.89-.45 26.48-.45h.44v.45l.06 11.19v.5h-.5c-7.93 0-18.94-.08-26.76-.23 0-3.4.22-8 .28-11.46m0 0c.1 3.27.2 8 .27 11.19l-.27-.28c7.65-.13 18.71-.2 26.48-.22l-.5.5.05-11.19.45.44c-7.49 0-18.89-.29-26.48-.44M41.88 318.51c7.69-.15 18.89-.45 26.48-.45h.45v12.139999999999999h-.5c-7.92 0-18.94-.08-26.75-.23 0-3.4.21-8 .27-11.46Zm0 0c.1 3.27.21 8 .28 11.19l-.28-.28c7.66-.13 18.71-.2 26.48-.22l-.5.5.06-11.19.44.44c-7.48 0-18.89-.29-26.48-.44M56.65 304.4c7.69-.15 18.89-.45 26.48-.45h.45v12.139999999999999h-.51c-7.92 0-18.94-.08-26.75-.23 0-3.4.21-8 .27-11.46Zm0 0c.1 3.27.21 8 .28 11.19l-.28-.28c7.66-.13 18.71-.2 26.48-.22l-.49.5V304.4l.44.44c-7.48 0-18.89-.29-26.48-.44Z"})),J__namespace.createElement("path",{id:"freepik--Table--inject-79",fill:"#263238",d:"M40 448.53c134.56-.61 285.5-.61 420.06 0-134.56.62-285.5.61-420.06 0"}),J__namespace.createElement("g",{id:"freepik--Plant--inject-79"},J__namespace.createElement("path",{fill:"#0B89CE",d:"M424.15 389.36s8.78-31.53 15.79-42.23S460 324.66 460 324.66s-.28 48.6-35.85 64.7"}),J__namespace.createElement("path",{fill:"#263238",d:"M424.78 388.82a152 152 0 0 0 8-15.28 107.5 107.5 0 0 1 4.36-16.54.08.08 0 0 1 .16 0c-1.17 5-2.52 9.92-3.75 14.88 3.54-7.67 6.91-15.44 11.13-22.69a49 49 0 0 1 4.07-10.09c.05-.09.2 0 .16.06a63 63 0 0 0-2.74 7.57 75.5 75.5 0 0 1 6.67-9.22c.16-.18.46 0 .31.21-5.64 7.21-9.54 15.4-13.25 23.7a127 127 0 0 0 11-13.77l.07.05a111.5 111.5 0 0 1-11.8 15.3c-2.7 6.08-5.36 12.19-8.58 18 6.44-5.44 11.39-12.48 16.3-19.28a.15.15 0 0 1 .24.17c-4.91 7.45-10 14.47-17 20a79 79 0 0 1-4.71 7.36.37.37 0 0 1-.64-.43"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M421.42 392.2s15.79-29.07 11.2-57.25-9.49-38.22-9.49-38.22-24.81 43.83-1.71 95.47"}),J__namespace.createElement("path",{fill:"#263238",d:"M414.94 346.5A137 137 0 0 0 421 370c0-10.34.24-20.68.52-31a80 80 0 0 1-3-19.26c0-.2.28-.18.29 0a110 110 0 0 0 2.77 16.57q.36-12.79.83-25.58a.11.11 0 0 1 .22 0c0 13.32 0 26.65-.09 40a106 106 0 0 0 4.55-15.83c0-.05.1 0 .09 0a62 62 0 0 1-4.65 18c-.07 8.52-.16 17-.35 25.55 2.67-9.05 5.52-17.82 6.3-27.39a.1.1 0 0 1 .2 0c-.21 10.55-2.93 21.27-6.41 31.19a.6.6 0 0 1-.18.25c-.08 3.11-.17 6.23-.27 9.34a.35.35 0 0 1-.69 0c-.13-6.37-.17-12.74-.16-19.11a85.5 85.5 0 0 1-6.22-26.16c.05-.13.18-.15.19-.07"}),J__namespace.createElement("path",{fill:"#263238",d:"M416 342a54 54 0 0 1 1.1 7.67.08.08 0 0 1-.15 0 55 55 0 0 1-1.3-7.65c.01-.17.35-.21.35-.02M425.26 320.76c0-.09.15-.06.15 0a19.4 19.4 0 0 1-.8 5.3c0 .14-.24.07-.21-.06.35-1.73.6-3.49.86-5.24"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M415.67 394.42s.64-30.34-8.06-45.42-23.14-22.77-23.14-22.77 5.82 53.49 31.2 68.19"}),J__namespace.createElement("path",{fill:"#263238",d:"M399.81 368.47a112.7 112.7 0 0 0 11.77 14.93q-2.59-9.3-6-18.3c-4.88-4.27-9.72-8.71-12.71-14.56a.08.08 0 0 1 .14-.09c3.22 5.19 7.52 9.34 12.05 13.33a235 235 0 0 0-12.11-26.39.19.19 0 0 1 .33-.19 145 145 0 0 1 7.6 13.85c-.82-3.25-1.47-6.56-2.31-9.78a.07.07 0 0 1 .14 0 55 55 0 0 1 3.57 12.87 155 155 0 0 1 7.67 20.76c-.23-4.55-.51-9.08-1-13.61a.08.08 0 0 1 .15 0 74 74 0 0 1 1.32 15.28c1.25 4.52 2.31 9.1 3.16 13.71a.1.1 0 0 1-.2 0c-.47-1.93-1-3.85-1.51-5.76a.2.2 0 0 1-.09 0c-4.67-4.68-9.11-10-12-16-.04-.05.01-.08.03-.05"}),J__namespace.createElement("path",{fill:"#263238",d:"M389.72 343.79c1 1 1.86 2.14 2.8 3.22a25 25 0 0 1 2.5 2.93l-.06.07a14.8 14.8 0 0 1-2.9-2.86 24.6 24.6 0 0 1-2.48-3.26.09.09 0 0 1 .14-.1"}),J__namespace.createElement("path",{fill:"#455a64",d:"m441.53 390.72-1.1 14.37-3.31 43.44h-28.83L405 405.09l-1.09-14.37h37.64Z"}),J__namespace.createElement("path",{fill:"#37474f",d:"m441.53 390.72-1.1 14.37H405l-1.09-14.37h37.64Z"}),J__namespace.createElement("path",{fill:"#455a64",d:"M444.09 394.69h-42.76v-11.02h42.76z"})),J__namespace.createElement("g",{id:"freepik--Device--inject-79"},J__namespace.createElement("path",{fill:"#263238",d:"M380.18 58.3H207.86a17.59 17.59 0 0 0-17.43 17.76v354.71a17.61 17.61 0 0 0 17.43 17.76h172.32a17.62 17.62 0 0 0 17.45-17.76V76.06a17.61 17.61 0 0 0-17.45-17.76m6.54 361.5c0 9.34-7 16.89-15.61 16.89H217c-8.65 0-15.64-7.55-15.64-16.89V89.5c0-19 7-20 15.64-20h30.88c1.79 0 3.26 2 3.26 4.57v1.09c0 5.92 3.24 5.94 7.22 5.94h71.41c4 0 7.23 0 7.23-5.94v-1.04c0-2.53 1.45-4.57 3.28-4.57h30.87c8.62 0 15.61 2.53 15.61 20Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M386.73 89.5v330.3c0 9.34-7 16.89-15.61 16.89H217c-8.65 0-15.64-7.55-15.64-16.89V89.5c0-19 7-20 15.64-20h30.88c1.79 0 3.26 2 3.26 4.57v1.09c0 5.92 3.24 5.94 7.22 5.94h71.41c4 0 7.23 0 7.23-5.94v-1.04c0-2.53 1.45-4.57 3.28-4.57h30.87c8.59 0 15.58 2.53 15.58 19.95"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M386.73 89.51v30h-185.4v-30c0-19 7-20 15.64-20h30.88c1.79 0 3.26 2 3.26 4.57v1.09c0 5.92 3.24 5.94 7.22 5.94h71.41c4 0 7.23 0 7.23-5.94v-1.04c0-2.53 1.45-4.57 3.28-4.57h30.87c8.62 0 15.61 2.53 15.61 19.95"}),J__namespace.createElement("path",{fill:"#fff",d:"M303.77 73.47h-19.48a1.2 1.2 0 0 1-1.2-1.21 1.2 1.2 0 0 1 1.2-1.2h19.48a1.2 1.2 0 0 1 1.2 1.2 1.21 1.21 0 0 1-1.2 1.21M213.41 97.8h16.09V108h-16.09z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M229.5 97.8c-.65.62-1.31 1.22-2 1.83s-1.32 1.2-2 1.79l-2.08 1.84-.07.06-1.85 1.61-.09.07-.09-.07-1.85-1.62h-.07l-2.09-1.84-2-1.79c-.65-.61-1.32-1.21-2-1.83l2.06 1.64c.68.56 1.36 1.11 2 1.68s1.5 1.26 2.26 1.9l1.69 1.44c.56-.48 1.12-1 1.69-1.44l2.26-1.9 2-1.67c.86-.61 1.54-1.16 2.23-1.7"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m219.79 103.25-.25.21c-.41.34-.82.67-1.24 1s-1 .76-1.56 1.13-1.06.73-1.61 1.08-1.09.69-1.66 1c.49-.43 1-.83 1.51-1.22s1-.76 1.56-1.13 1.07-.73 1.61-1.08.87-.55 1.32-.81l.32-.17ZM229.47 107.68c-.57-.31-1.12-.65-1.66-1s-1.08-.71-1.61-1.08-1-.74-1.57-1.13-.83-.64-1.23-1l-.25-.21.32.18q.66.39 1.32.81c.54.35 1.07.71 1.6 1.08s1.05.74 1.56 1.13 1.05.79 1.52 1.22"}),J__namespace.createElement("path",{fill:"#455a64",d:"M233 97.8a3.46 3.46 0 1 1-3.46-3.45A3.46 3.46 0 0 1 233 97.8"}),J__namespace.createElement("path",{fill:"#fff",d:"M230.64 98.49a.27.27 0 0 1-.28.27h-.05v.38a.26.26 0 0 1-.27.27.27.27 0 0 1-.27-.27v-.38h-1.56a.22.22 0 0 1-.17-.06.27.27 0 0 1 0-.38l1.79-2.32h.21v2h.05a.27.27 0 0 1 .55.49m-.87-1.5-1 1.23h1Z"}),J__namespace.createElement("g",{id:"freepik--u5Zjqx--inject-79",fill:"#fff"},J__namespace.createElement("path",{d:"m242.51 76.68-.3.3-.17.17a4.07 4.07 0 0 0-5.75 0 1.3 1.3 0 0 1-.16-.17l-.3-.29.38-.34a4.7 4.7 0 0 1 2-.94c.19 0 .39 0 .58-.08h.9a4.3 4.3 0 0 1 1.06.26 4.7 4.7 0 0 1 .72.33 4.6 4.6 0 0 1 .68.48l.32.29Z"}),J__namespace.createElement("path",{d:"M237.23 78.09c-.15-.16-.31-.31-.47-.47a3.3 3.3 0 0 1 1.92-1 3.37 3.37 0 0 1 2.89 1l-.48.47a2.74 2.74 0 0 0-3.86 0"}),J__namespace.createElement("path",{d:"m240.62 78.56-.47.47a1.39 1.39 0 0 0-2 0l-.47-.47a2 2 0 0 1 2.94 0M239.59 79.45a.43.43 0 1 1-.85 0 .43.43 0 0 1 .85 0"})),J__namespace.createElement("path",{fill:"#fff",d:"M213.41 77.58a1.23 1.23 0 1 1 1.23 1.23 1.23 1.23 0 0 1-1.23-1.23M217.28 77.58a1.23 1.23 0 1 1 1.23 1.23 1.23 1.23 0 0 1-1.23-1.23M221.15 77.58a1.23 1.23 0 1 1 1.23 1.23 1.23 1.23 0 0 1-1.23-1.23M225 77.58a1.23 1.23 0 1 1 1.23 1.23 1.23 1.23 0 0 1-1.23-1.23M228.89 77.58a1.23 1.23 0 1 1 1.23 1.23 1.23 1.23 0 0 1-1.23-1.23M372.82 80.27h-10v-4.64h10Zm-9.49-.51h9v-3.62h-9Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M363.65 76.42h6.45v3.06h-6.45zM372.83 76.71h.89v2.48h-.89zM278.08 99.78a.59.59 0 0 1 .6-.6.61.61 0 0 1 .61.6v6.41a.61.61 0 0 1-.61.6.59.59 0 0 1-.6-.6ZM282.52 106.19a.61.61 0 0 1-.59.6.6.6 0 0 1-.6-.6v-6.32a.59.59 0 0 1 1.07-.37l3.51 4.86v-4.49a.59.59 0 0 1 .58-.58.6.6 0 0 1 .6.58v6.32a.6.6 0 0 1-.6.6.6.6 0 0 1-.44-.22l-.06-.06-3.47-4.83ZM289.71 106.19v-6.41a.59.59 0 0 1 .59-.6h1.55a2.06 2.06 0 0 1 2.06 2.06 2 2 0 0 1-.41 1.24 2.33 2.33 0 0 1-1.23 4.31h-1.92a.6.6 0 0 1-.64-.6m1.2-4.06h.94a.88.88 0 0 0 .86-.89.85.85 0 0 0-.86-.85h-.94Zm0 3.45h1.36a1.13 1.13 0 0 0 0-2.25h-1.36ZM302.17 100.12a4 4 0 0 1 0 5.51 3.58 3.58 0 0 1-2.6 1.16 3.7 3.7 0 0 1-2.66-1.16 4.05 4.05 0 0 1 0-5.51 3.65 3.65 0 0 1 2.66-1.12 3.55 3.55 0 0 1 2.6 1.12m-.14 2.75a2.86 2.86 0 0 0-.74-1.9 2.35 2.35 0 0 0-3.48 0 2.76 2.76 0 0 0-.74 1.9 2.73 2.73 0 0 0 .74 1.9 2.33 2.33 0 0 0 3.48 0 2.82 2.82 0 0 0 .71-1.9ZM310.32 100.21l-2.07 2.79 2.07 2.82a.59.59 0 0 1-.14.83.54.54 0 0 1-.34.12.63.63 0 0 1-.49-.25l-1.83-2.52-1.84 2.51a.62.62 0 0 1-.47.25.55.55 0 0 1-.35-.12.59.59 0 0 1-.14-.83l2.06-2.82-2.06-2.81a.58.58 0 0 1 .14-.82.55.55 0 0 1 .82.13l1.84 2.5 1.83-2.5a.56.56 0 0 1 .83-.13.58.58 0 0 1 .14.85M361.2 106.73l-1.26 1-2.33-3.08-.86-1.13a2 2 0 0 0 .49-.27 2.1 2.1 0 0 0 .65-.84l.91 1.19Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M358.72 99.47a3.48 3.48 0 1 0-.64 4.82 3.4 3.4 0 0 0 .72-.74 3.44 3.44 0 0 0-.08-4.08m-1.48 3.73a2 2 0 0 1-.49.27 2 2 0 1 1 1.14-1.11 2.1 2.1 0 0 1-.65.84M334.95 98.33h9.14v9.14h-9.14z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M339.02 100.03h1v5.75h-1z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M336.65 103.41v-1h5.75v1z"}),J__namespace.createElement("path",{fill:"#fff",d:"M372.81 98.92a.79.79 0 1 1-.79-.79.79.79 0 0 1 .79.79M372.81 103a.79.79 0 1 1-.79-.79.79.79 0 0 1 .79.79M372.81 107.12a.79.79 0 1 1-.79-.79.79.79 0 0 1 .79.79"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M201.33 319.89h185.4v28.63h-185.4z"}),J__namespace.createElement("path",{fill:"#fff",d:"M201.33 319.89h185.4v28.63h-185.4z",opacity:"0.7"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M201.33 262.63h185.4v28.63h-185.4z"}),J__namespace.createElement("path",{fill:"#fff",d:"M201.33 262.63h185.4v28.63h-185.4z",opacity:"0.7"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M201.33 119.47h185.4v28.63h-185.4z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M231.46 139.32a6.2 6.2 0 0 1-1.87.78 6.49 6.49 0 1 1 1.87-.78"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 133a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 138.5v.82a6.2 6.2 0 0 1-1.87.78 6.5 6.5 0 0 1-5-.78v-.82a3.42 3.42 0 0 1 6.84 0ZM268.88 138.09h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 129.49 1.39 2.83 3.13.45-2.26 2.21.53 3.11-2.79-1.47-2.8 1.47.54-3.11-2.27-2.21 3.13-.45z"}),J__namespace.createElement("path",{fill:"#263238",d:"M278.55 132.04h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#455a64",d:"M350.21 132.04h19.89v3.5h-19.89zM231.46 168a6.2 6.2 0 0 1-1.87.78 6.49 6.49 0 1 1 1.87-.78"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 161.68a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 167.13v.87a6.2 6.2 0 0 1-1.87.78 6.47 6.47 0 0 1-5-.78v-.82a3.42 3.42 0 0 1 6.84 0ZM268.88 166.72h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M269 167h-9.25l3.71-4.55-3.71-4.55H269l3.71 4.55Zm-8.2-.5h8l3.3-4.05-3.3-4h-8l3.31 4Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 158.12 1.39 2.83 3.13.45-2.26 2.21.53 3.11-2.79-1.47-2.8 1.47.54-3.11-2.27-2.21 3.13-.45z"}),J__namespace.createElement("path",{fill:"#263238",d:"M278.55 160.67h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#455a64",d:"M350.21 160.67h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M201.32 176.73h155.66v28.64H201.32z"}),J__namespace.createElement("path",{fill:"#fff",d:"M201.32 176.73h155.66v28.64H201.32z",opacity:"0.7"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M201.32 189.3h38.69v3.5h-38.69zM260.93 189.3h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#a6a6a6",d:"M231.46 225.21a6.5 6.5 0 1 1 2.9-7.07 6.5 6.5 0 0 1-2.9 7.07"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 218.94a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 224.4v.81a6.47 6.47 0 0 1-6.84 0v-.81a3.42 3.42 0 1 1 6.84 0M268.88 223.98h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M269 224.23h-9.25l3.71-4.55-3.71-4.55H269l3.71 4.55Zm-8.2-.5h8l3.3-4-3.3-4.05h-8l3.31 4.05Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 215.38 1.39 2.83 3.13.46-2.26 2.2.53 3.11-2.79-1.47-2.8 1.47.54-3.11-2.27-2.2 3.13-.46z"}),J__namespace.createElement("path",{fill:"#dbdbdb",d:"M278.55 217.93h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#c7c7c7",d:"M350.21 217.93h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M201.33 234h185.4v28.63h-185.4z"}),J__namespace.createElement("path",{fill:"#37474f",d:"M231.46 253.84a6.5 6.5 0 1 1 2.9-7.07 6.5 6.5 0 0 1-2.9 7.07"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 247.57a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 253v.81a6.47 6.47 0 0 1-6.84 0V253a3.42 3.42 0 0 1 6.84 0M268.88 252.61h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 244.01 1.39 2.83 3.13.46-2.26 2.2.53 3.11-2.79-1.47-2.8 1.47.54-3.11-2.27-2.2 3.13-.46z"}),J__namespace.createElement("path",{fill:"#dbdbdb",d:"M278.55 246.56h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#c7c7c7",d:"M350.21 246.56h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M201.33 348.52h185.4v28.63h-185.4z"}),J__namespace.createElement("path",{fill:"#37474f",d:"M231.46 368.37a6.2 6.2 0 0 1-1.87.78 6.49 6.49 0 1 1 1.87-.78"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 362.09a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 367.55v.82a6.2 6.2 0 0 1-1.87.78 6.47 6.47 0 0 1-5-.79v-.81a3.42 3.42 0 0 1 6.84 0ZM268.88 367.14h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 358.54 1.39 2.83 3.13.45-2.26 2.2.53 3.12-2.79-1.47-2.8 1.47.54-3.12-2.27-2.2 3.13-.45z"}),J__namespace.createElement("path",{fill:"#dbdbdb",d:"M278.55 361.09h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#c7c7c7",d:"M350.21 361.09h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M386.73 405.78v14a17.15 17.15 0 0 1-7.73 14.63H209.11a17.14 17.14 0 0 1-7.78-14.61v-14Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M231.46 425.63a6.5 6.5 0 1 1 2.9-7.07 6.5 6.5 0 0 1-2.9 7.07"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 419.36a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 424.81v.82a6.47 6.47 0 0 1-6.84 0v-.82a3.42 3.42 0 0 1 6.84 0M268.88 424.4h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 415.8 1.39 2.83 3.13.45-2.26 2.21.53 3.11-2.79-1.47-2.8 1.47.54-3.11-2.27-2.21 3.13-.45z"}),J__namespace.createElement("path",{fill:"#dbdbdb",d:"M278.55 418.35h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#c7c7c7",d:"M350.21 418.35h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M201.32 275.19h38.69v3.5h-38.69zM260.93 275.19h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M201.33 291.26h185.4v28.63h-185.4z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M231.46 311.11a6.5 6.5 0 1 1 2.9-7.08 6.48 6.48 0 0 1-2.9 7.08"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 304.83a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 310.29v.82a6.51 6.51 0 0 1-6.84 0v-.81a3.42 3.42 0 1 1 6.84 0ZM268.88 309.88h-8.6l3.5-4.31-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m246.78 301.27 1.39 2.84 3.13.45-2.26 2.2.53 3.12-2.79-1.47-2.8 1.47.54-3.12-2.27-2.2 3.13-.45z"}),J__namespace.createElement("path",{fill:"#263238",d:"M278.55 303.83h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#455a64",d:"M350.21 303.83h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M201.32 332.46h38.69v3.5h-38.69zM260.93 332.46h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#a6a6a6",d:"M231.46 397a6.2 6.2 0 0 1-1.87.78 6.49 6.49 0 1 1 1.87-.78"}),J__namespace.createElement("path",{fill:"#fff",d:"M230 390.73a2 2 0 1 1-2-2 2 2 0 0 1 2 2"}),J__namespace.createElement("path",{fill:"#fff",d:"M231.46 396.18v.82a6.2 6.2 0 0 1-1.87.78 6.47 6.47 0 0 1-5-.78v-.82a3.42 3.42 0 0 1 6.84 0ZM268.88 395.77h-8.6l3.5-4.3-3.5-4.3h8.6l3.5 4.3z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M269 396h-9.25l3.71-4.55-3.71-4.55H269l3.71 4.55Zm-8.2-.5h8l3.3-4-3.3-4.05h-8l3.31 4.05Z"}),J__namespace.createElement("path",{fill:"#fff",d:"m246.78 387.17 1.39 2.83 3.13.45-2.26 2.21.53 3.11-2.79-1.47-2.8 1.47.54-3.11-2.27-2.21 3.13-.45z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"m249.9 396.23-3.12-1.65-3.13 1.65.6-3.49-2.53-2.46 3.49-.51 1.57-3.17 1.56 3.17 3.5.51-2.53 2.46Zm-7.11-5.6 2 1.94-.47 2.74 2.47-1.29 2.46 1.29-.47-2.74 2-1.94-2.75-.4-1.23-2.5-1.23 2.5Z"}),J__namespace.createElement("path",{fill:"#dbdbdb",d:"M278.55 389.72h50.74v3.5h-50.74z"}),J__namespace.createElement("path",{fill:"#c7c7c7",d:"M350.21 389.72h19.89v3.5h-19.89z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M297.45 176.73h29.76v28.63h-29.76z",opacity:"0.3"}),J__namespace.createElement("path",{fill:"#fff",d:"M312.33 185.85a5.21 5.21 0 1 0 5.21 5.21 5.2 5.2 0 0 0-5.21-5.21m-2.43 5.73a.52.52 0 0 1-.52-.52.52.52 0 1 1 1 0 .52.52 0 0 1-.48.52m2.43 0a.53.53 0 0 1-.52-.52.52.52 0 0 1 .52-.52.52.52 0 0 1 .52.52.52.52 0 0 1-.52.52m2.44 0a.52.52 0 0 1-.52-.52.52.52 0 1 1 1 0 .52.52 0 0 1-.48.52"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M327.21 176.73h29.76v28.63h-29.76z",opacity:"0.1"}),J__namespace.createElement("path",{fill:"#fff",d:"M337.43 185.84h.61v10.41h-.61z"}),J__namespace.createElement("path",{fill:"#fff",d:"M337.74 186.32c3.2-.85 6.41.85 9.62 0v7.09c-3.21.85-6.42-.85-9.62 0Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M356.97 176.73h29.76v28.63h-29.76z"}),J__namespace.createElement("path",{fill:"#fff",d:"M375.2 196.38h-6.61l-.4-8.78h7.32z"}),J__namespace.createElement("path",{fill:"#fff",d:"M367.26 186.97h9.2v.64h-9.2z"}),J__namespace.createElement("path",{fill:"#fff",d:"M373.5 187.28h-.48v-1.08h-2.33v1.08h-.48v-1.56h3.29z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M371.61 188.45h.48v6.87h-.48zM369.817 188.431l.48-.02.29 6.874-.48.02zM373.108 195.297l.295-6.874.48.021-.296 6.874z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M297.45 262.63h29.76v28.63h-29.76z",opacity:"0.3"}),J__namespace.createElement("path",{fill:"#fff",d:"M312.33 271.74a5.21 5.21 0 1 0 5.21 5.21 5.2 5.2 0 0 0-5.21-5.21m-2.43 5.73a.52.52 0 0 1-.52-.52.52.52 0 1 1 1 0 .52.52 0 0 1-.48.52m2.43 0a.53.53 0 0 1-.52-.52.52.52 0 0 1 .52-.52.52.52 0 0 1 .52.52.52.52 0 0 1-.52.52m2.44 0a.52.52 0 0 1-.52-.52.52.52 0 1 1 1 0 .52.52 0 0 1-.48.52"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M327.21 262.63h29.76v28.63h-29.76z",opacity:"0.1"}),J__namespace.createElement("path",{fill:"#fff",d:"M337.43 271.74h.61v10.41h-.61z"}),J__namespace.createElement("path",{fill:"#fff",d:"M337.74 272.22c3.2-.86 6.41.85 9.62 0v7.08c-3.21.85-6.42-.85-9.62 0Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M356.97 262.63h29.76v28.63h-29.76z"}),J__namespace.createElement("path",{fill:"#fff",d:"M375.2 282.28h-6.61l-.4-8.78h7.32zM367.26 272.86h9.2v.64h-9.2z"}),J__namespace.createElement("path",{fill:"#fff",d:"M373.5 273.18h-.48v-1.09h-2.33v1.09h-.48v-1.57h3.29z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M371.61 274.34h.48v6.87h-.48zM369.824 274.324l.48-.02.29 6.874-.48.02zM373.116 281.192l.294-6.873.48.02-.294 6.874z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M297.45 319.89h29.76v28.63h-29.76z",opacity:"0.3"}),J__namespace.createElement("path",{fill:"#fff",d:"M312.33 329a5.21 5.21 0 1 0 5.21 5.21 5.2 5.2 0 0 0-5.21-5.21m-2.43 5.73a.52.52 0 0 1-.52-.52.52.52 0 1 1 1 0 .52.52 0 0 1-.48.52m2.43 0a.53.53 0 0 1-.52-.52.52.52 0 0 1 .52-.52.52.52 0 0 1 .52.52.52.52 0 0 1-.52.52m2.44 0a.52.52 0 0 1-.52-.52.52.52 0 1 1 1 0 .52.52 0 0 1-.48.52"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M327.21 319.89h29.76v28.63h-29.76z",opacity:"0.1"}),J__namespace.createElement("path",{fill:"#fff",d:"M337.43 329h.61v10.41h-.61z"}),J__namespace.createElement("path",{fill:"#fff",d:"M337.74 329.48c3.2-.85 6.41.85 9.62 0v7.08c-3.21.85-6.42-.85-9.62 0Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M356.97 319.89h29.76v28.63h-29.76z"}),J__namespace.createElement("path",{fill:"#fff",d:"M375.2 339.54h-6.61l-.4-8.78h7.32zM367.26 330.12h9.2v.64h-9.2z"}),J__namespace.createElement("path",{fill:"#fff",d:"M373.5 330.44h-.48v-1.09h-2.33v1.09h-.48v-1.57h3.29z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M371.61 331.61h.48v6.87h-.48zM369.832 331.583l.48-.02.29 6.874-.48.02zM373.096 338.441l.295-6.873.48.02-.295 6.874z"})),J__namespace.createElement("g",{id:"freepik--Character--inject-79"},J__namespace.createElement("path",{fill:"#263238",d:"M88.58 261.92a73.2 73.2 0 0 0 12 11.66c-4.73-14.34 2.72-42.74 2.74-38.45.09 20.5 7.67 44.61 12.11 46.69h.08c12.19 4.4 24.33 3.52 35 .3v-.07c-6.53-16.48.28-45.52.54-43.6 2.93 20.56 15.19 34.9 17.74 35.43 11.42-6.95 18.4-14.85 17.25-16.06-8.32-8.8-12.88-27.78-16.4-47.56-3.5-19.5-3.51-37.32-10.44-55.57-6.36-16.7-24.85-23.67-37.3-18.59-32.71 13.36-38.33 119.75-33.32 125.82"}),J__namespace.createElement("path",{fill:"#263238",d:"M124.07 135.38a19.4 19.4 0 0 0-7.42 3.78 46.3 46.3 0 0 0-6.12 5.76 79 79 0 0 0-9.4 13.9c-5.43 9.83-9 20.58-11.61 31.44A197 197 0 0 0 85 223.45c-.18 2.79-.2 5.58-.3 8.37l-.05 8.37.28 8.35.52 8.34v-8.35l.15-8.34.31-8.33c.19-2.77.29-5.55.55-8.31a215 215 0 0 1 4.9-32.87 133.3 133.3 0 0 1 11-31.22 81.7 81.7 0 0 1 8.85-14 45.6 45.6 0 0 1 5.75-6 29 29 0 0 1 3.36-2.42 13.8 13.8 0 0 1 3.75-1.66M187.82 255.16a143 143 0 0 1-5.82-13.23c-1.78-4.48-3.39-9-4.78-13.62s-2.64-9.24-3.6-13.93-1.76-9.48-2.64-14.22c-1.87-9.48-3.73-19-6.15-28.35-1.24-4.68-2.56-9.34-4.19-13.91a66 66 0 0 0-2.84-6.7 17.6 17.6 0 0 0-4.21-5.87 18.8 18.8 0 0 1 3.76 6.08 68 68 0 0 1 2.43 6.78c1.44 4.59 2.6 9.27 3.66 14 2.12 9.4 4 18.86 5.71 28.35.94 4.74 1.79 9.47 2.82 14.23a125 125 0 0 0 3.89 14 138.7 138.7 0 0 0 11.96 26.39"}),J__namespace.createElement("path",{fill:"#37474f",d:"M209.85 448.53h-78.24q-1-3.91-2-7.84-.65-2.58-1.31-5.15c0-.11-.05-.21-.08-.32l-1.71-6.72c-.06-.22-.12-.44-.17-.66-.43-1.71-.87-3.42-1.29-5.11q-1.64-6.37-3.22-12.61c-.4-1.58-.8-3.17-1.21-4.73a1.4 1.4 0 0 0-.05-.22c-.25-1-.51-2-.76-3-1.63-6.38-3.2-12.57-4.7-18.49-.18-.7-.36-1.37-.54-2.05-1.32-5.21-2.58-10.17-3.77-14.83l-.5-2c-.29-1.15-.57-2.27-.86-3.37q-.39-1.5-.75-2.94c-.72-2.83-1.41-5.49-2-8-.1-.41-.21-.8-.3-1.19-.9-3.49-1.69-6.62-2.38-9.32-.13-.48-.24-.94-.36-1.39-.25-1-.49-1.92-.7-2.77-.11-.43-.21-.84-.32-1.23l-1.47-5.77h74.54s17.79 61.32 34.15 119.71"}),J__namespace.createElement("path",{fill:"#263238",d:"M144 448.53h-2.2q-2-7.87-3.92-15.74l-1.5-6Q134.7 420 133 413.17c0-.2-.09-.41-.14-.61-5.36-21.71-10.62-43.47-15.38-65.32-.06-.26-.12-.52-.17-.78a.11.11 0 1 1 .22 0l.07.26c6 21.41 11.61 43 17 64.58.11.37.2.75.29 1.12.45 1.78.89 3.54 1.34 5.31.62 2.51 1.26 5 1.89 7.53q2.98 11.61 5.88 23.27"}),J__namespace.createElement("path",{fill:"#263238",d:"m173.28 328.86-10.59 53-.48 2.37-.75 3.77-1.2 6-1.11 5.59v.25l-.21 1-9.49 47.56h-17.84q-1-3.91-2-7.84-.65-2.58-1.31-5.15c0-.11-.05-.21-.08-.32-.58-2.24-1.14-4.48-1.71-6.72-.06-.22-.12-.44-.17-.66-.43-1.71-.87-3.42-1.29-5.11q-1.64-6.37-3.22-12.61c-.4-1.58-.8-3.17-1.21-4.73a1.4 1.4 0 0 0-.05-.22c-.25-1-.51-2-.76-3-1.63-6.38-3.2-12.57-4.7-18.49l-.54-2.05c-1.32-5.21-2.58-10.17-3.77-14.83-.17-.67-.33-1.33-.5-2-.29-1.15-.57-2.27-.86-3.37q-.39-1.5-.75-2.94c-.72-2.83-1.41-5.49-2-8-.1-.41-.21-.8-.3-1.19-.9-3.49-1.69-6.62-2.38-9.32-.13-.48-.24-.94-.36-1.39-.25-1-.49-1.92-.7-2.77-.11-.43-.21-.84-.32-1.23l-1.47-5.77Z"}),J__namespace.createElement("path",{fill:"#37474f",d:"M173.29 328.83c0 .42-.31 4.84-1 11.59a332 332 0 0 1-7 42.19 190 190 0 0 1-2.7 10c-.66 2.26-1.38 4.5-2.15 6.62l-.06.19-1.3.49a148 148 0 0 0-20.33 10.29s0 .15 0 .42c-.05 1.48-.26 6.79-.56 14.57-.1 2.32-.19 4.86-.3 7.58-.18 4.75-.39 10.07-.6 15.74H62.37c1-12.59 1.94-25.37 2.9-37.76 0 0-7-19.61-6.24-29.52 1.89-24 12.65-52.39 12.65-52.39Z"}),J__namespace.createElement("path",{fill:"#263238",d:"m147.73 381.52.09-6c.06-3.66.31-7.32.45-11 .32-8.29.69-16.61 1.39-24.88 0-.2.35-.2.36 0 .12 3.29.19 6.57.18 9.86s.1 6.58.09 9.86c0 6.52 0 13-.27 19.56-.09 2.51-1 7.12 2.62 7.4 2.88.22 4.55-2.81 5.06-5.22a56.3 56.3 0 0 0 .68-9.09q.19-5 .21-9.93c0-7.21.17-14.4.36-21.6 0-.21.33-.19.36 0a219 219 0 0 1 1.39 21.87c0 3.5 0 7-.15 10.51-.11 3.27-.05 6.76-1.06 9.91-.79 2.47-2.58 4.84-5.2 5.49a1 1 0 0 0-.16 0 .25.25 0 0 1 .13.19c.11 1.15.3 2.3.33 3.46s0 2.31-.1 3.45a23 23 0 0 1-.42 3.49 13 13 0 0 1-.41 1.63c-.18.56-.48 1-.71 1.55a.21.21 0 0 1-.4-.07c0-.19 0-.38-.06-.56a.3.3 0 0 0 0-.1 9 9 0 0 1-.07-1c0-.56.06-1.12.1-1.68.09-1.12.24-2.25.39-3.36s.23-2.24.36-3.36.35-2.29.45-3.45a.2.2 0 0 1 .07-.11 5.13 5.13 0 0 1-5.35-2.42 8.85 8.85 0 0 1-.71-4.4"}),J__namespace.createElement("path",{fill:"#263238",d:"M132.38 412.93a63 63 0 0 1 7.41-4.88 72 72 0 0 1 8.45-4.38c5.7-2.47 11.58-4.16 17.46-6.11.17-.06.29.24.12.3-5.7 2.27-11.16 5.28-16.66 8-2.71 1.33-5.45 2.59-8.21 3.81s-5.52 2.64-8.35 3.68c-.22.05-.39-.28-.22-.42M87.91 363.26c4 0 15.85.15 22-5.61 2.6-2.44 4-6 5.13-9.25a87 87 0 0 0 3.12-11.23c0-.19.31-.12.32.05a43.4 43.4 0 0 1-1.65 12.78c-1 3.51-2.27 7.44-5.11 9.91s-7.06 3.51-10.89 4a50 50 0 0 1-12.93-.18.22.22 0 0 1 .01-.47M183.92 362.71c-1.8.12-7.13.68-10.32-4.84-1.35-2.35-2.24-5.85-3-9.05-.87-3.62-1.59-7.32-2.25-11.1 0-.18-.15-.11-.14.06a96 96 0 0 0 1.69 12.67c.7 3.47 1.59 7.34 3.05 9.71a7.35 7.35 0 0 0 5.21 3.59 10.34 10.34 0 0 0 5.81-.61c.11-.05.08-.44-.05-.43M82.5 335.16c-.1.37-9.85 37.12-9.4 46s5.66 26.85 5.68 27-.93 15.89-2.34 40.34h-1.9l2.33-40.12c-.22-1.33-5.24-18.4-5.68-27.1-.48-9.22 9-45.12 9.45-46.64a1 1 0 0 1 1.86.49Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M148.93 222.39c38.43 33.87 74.13 71 77.1 90.17 4.12 26.5-12.12 34.05-19.43 34.2-19.92.42-57-79.89-69.94-110.57-12.55-29.78 3.83-21.19 12.27-13.8"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m175.25 328.83-5.36-33.68s13.34-13.8 6.44-28.26c-3.48-7.33-27.17-43-39.82-52-11.87-8.42-25.94-1.43-31.21 7.68C92 245.56 79.37 272 71.68 328.86Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M154.09 290.8a109 109 0 0 0-16 2.95c-2.6.72-5.14 1.56-7.68 2.45-1.26.44-2.54.84-3.82 1.24a17.4 17.4 0 0 1-4.1.86.1.1 0 0 0 0 .19 29 29 0 0 0 4-.15 28 28 0 0 0 3.77-.79c2.64-.71 5.24-1.53 7.88-2.26 5.3-1.48 10.61-3 16-4.05.28-.05.2-.47-.05-.44M167.51 295.31a120 120 0 0 0-13.38-.38c-2.24.07-4.45.27-6.67.53-1.06.13-2.12.27-3.18.43s-2.3.5-3.46.65c-.12 0-.12.21 0 .19 1.1-.11 2.22 0 3.33-.09l3.33-.15c2.23-.1 4.46-.18 6.68-.3 4.46-.24 8.89-.43 13.35-.51a.19.19 0 0 0 0-.37"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M104 219.09c-35.82 28.1-71 76.67-71.24 103.83-.26 26.81 9.08 24.21 11.73 24 16.2-1.06 54.35-75.69 66-106.11 11.51-30.16 2.31-28.67-6.49-21.72"}),J__namespace.createElement("path",{fill:"#263238",d:"M66 326c1.88-3.38 3.81-6.72 5.63-10.12l5.58-10.15c3.68-6.78 7.42-13.53 11-20.37s7.27-13.6 10.79-20.46q2.67-5.13 5.2-10.33c1.75-3.44 3.34-6.95 5-10.46a208 208 0 0 1-8.86 21.43c-3.28 7-6.85 13.87-10.43 20.72s-7.45 13.55-11.4 20.19S70.46 319.68 66 326"}),J__namespace.createElement("path",{fill:"#263238",d:"M105.39 253.1a33 33 0 0 1 2.21-3.51c.4-.55.78-1.11 1.21-1.64s.83-1.1 1.31-1.63a10.4 10.4 0 0 1-1.76 3.81 11.5 11.5 0 0 1-2.97 2.97"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M214.82 273.31c-1.88-12.59-5.64-30.14-10.18-33.77-4.78-3.81-22.09-16.55-27.07-18.21s-27.18-9.83-31.22-7.44c-3.23 1.92.72 10.43 11.29 14.41 9.28 3.5 14.08 6.8 16.74 7.92s9.29 9.79 7.56 13.68c-1 2.29-7.61 5-11.75 3.21s-5.25-10-10-13.76-13.05-3.23-13.51-1 2.3 3.26 6.63 10.84c2.79 4.87 3.1 16.63 9.39 25 3.16 4.2 8.72 15.42 8.72 15.42Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M155.75 235.93a8.23 8.23 0 0 1-4.13-1.82 3.12 3.12 0 0 1-1-2.72 1.56 1.56 0 0 1 .39-1c.08-.06 0-.16-.08-.08a4.5 4.5 0 0 1-.38.51 2.6 2.6 0 0 0-.23.47 2.8 2.8 0 0 0-.16 1 3.37 3.37 0 0 0 .84 2.09 5.62 5.62 0 0 0 4.75 1.65c.07.02.07-.09 0-.1"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M204.64 239.54c-4.08-6.25-14.45-17.48-24.65-21.27-6.89-2.57-30.4 9.19-29.66 13.7s4.77 4.48 10.74 3.7c2.17-.28 13.64-4.53 15.63-2.14 2.86 3.44 6.57 15.27 6.57 15.27Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M150.9 230.2c2.87-4.87 9.25-7.52 15.62-9.62a.08.08 0 0 1 0 .15c-1.62.54-12 5.43-15.6 9.54.01.05-.05-.03-.02-.07"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M204.64 239.54c-4.08-6.25-14.45-17.48-24.65-21.27-6.89-2.57-25.43 12.35-24.69 16.86s6.54 4.81 12.92 2.51c2.06-.74 9-5.7 10.94-3.31 2.86 3.44 9.83 12 9.83 12Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M185 241c-.66-1-.88-1.33-1.55-2.3s-1.36-1.94-2.09-2.85a8.9 8.9 0 0 0-2.15-2.22 4.56 4.56 0 0 0-2.84-.52c-2.22.23-4.21 1.66-6.08 2.76-2.09 1.23-6.44 3.23-9.78 2.91a6.5 6.5 0 0 1-2.65-.68 4.2 4.2 0 0 1-1.59-1.25c-1.48-2.44.3-5.27 2.13-7.28 3.42-3.74 8-6.47 12.51-8.73 1.1-.55 2.21-1.08 3.33-1.6a9.9 9.9 0 0 1 4-1.2c2.32-.05 6.15 2.27 7.34 3 .09.05.16-.1.07-.15-1.44-.88-5-3.74-8.75-3.51a11.7 11.7 0 0 0-3.89 1.36c-1.3.57-2.58 1.19-3.85 1.84a54.5 54.5 0 0 0-7.1 4.3 22.3 22.3 0 0 0-5.78 5.59 6.52 6.52 0 0 0-.34 6.69c1 1.69 3.23 2.08 4.24 2.19a11.2 11.2 0 0 0 2.95 0 48 48 0 0 0 6.41-2c2-.83 3.84-2.22 5.92-2.87a4 4 0 0 1 3 .16 10.3 10.3 0 0 1 2.28 2.05 31.3 31.3 0 0 1 3.84 4.45c.35.44.66.3.42-.14"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M207.67 245c-1.51-3-4.12-15.29-6.54-19.05s-13.43-16.73-18.5-16.11c-6.37.78.4 12.21 3.79 16.91s2.91 12.75 2.91 12.75Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M181.68 219c1.2 1.48 2.27 3.13 3.32 4.73a38 38 0 0 1 2.9 4.67 16.7 16.7 0 0 1 1.3 5.24c.09.89.13 1.77.15 2.66s-.07 2 0 2.93c0 .1-.16.12-.16 0a43 43 0 0 0-.75-5.28 22.4 22.4 0 0 0-1.65-5.25c-1.53-3.33-3.74-6.28-5.3-9.59-.09-.18.1-.27.19-.11M189.26 240.85c.44 3.06-.44 6.16-1.54 9a31 31 0 0 1-2 4.16 35 35 0 0 1-2.6 3.79 35 35 0 0 0-4.56 7.49 36.5 36.5 0 0 0-2.36 8.58 23.8 23.8 0 0 1 1-9.07 27.5 27.5 0 0 1 4.39-8.11 43 43 0 0 0 4.7-7.46c1.31-2.67 2.63-5.37 2.97-8.38"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M204.75 345.84c-12.44-1.68-20.57-22.48-34.77-59-2.5-6.42 30-45.89 34.42-40 5.57 7.42 20.57 48.73 22.14 60 3.11 22.16-7.27 40.96-21.79 39"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m177.47 307.2 40.09-38.95s11.39 33.52 10.32 47.57-6 30.06-22.88 30.94c-12.66.66-27.53-39.56-27.53-39.56"}),J__namespace.createElement("path",{fill:"#263238",d:"M190.44 334.16c-1.45-2.05-2.74-4.2-4-6.36s-2.42-4.37-3.55-6.6-2.17-4.52-3.09-6.85a42.7 42.7 0 0 1-2.33-7.15c1.06 2.27 2.18 4.49 3.31 6.71l3.37 6.66c1.09 2.24 2.2 4.47 3.24 6.73s2.11 4.53 3.05 6.86M186.11 314c1.94-2.14 4.08-4.12 6.14-6.13s4.16-4 6.28-6q6.33-5.91 12.77-11.72 1.77-1.59 3.55-3.15c1.28-1.11 2.7-2.06 4-3.18a.11.11 0 0 1 .14.16c-1 1-1.91 2.11-2.91 3.12s-2.1 2.07-3.17 3.09q-3.13 3-6.3 5.95c-4.23 3.94-8.47 7.87-12.82 11.68-2.46 2.15-4.87 4.39-7.45 6.39a.15.15 0 0 1-.23-.21"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M114.59 216c.29 2 8.74 16.1 19.94 15.42C141 231 136.6 218 136.6 218l5.63-17.76-21.47-16.41s-6.28 31.3-6.17 32.17"}),J__namespace.createElement("path",{fill:"#263238",d:"M118.46 195.56a35.53 35.53 0 0 0 18.46 21.49l5.32-16.76-21.48-16.41s-1.04 5.27-2.3 11.68"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M167.54 175.35c.64 30.5-17.56 34.33-24.14 34.46-6 .12-26.32-.24-30.11-30.52s10.2-40.22 23.84-41.21 29.78 6.76 30.41 37.27"}),J__namespace.createElement("path",{fill:"#263238",d:"M160.39 172.9a20 20 0 0 1-2-.58 3.43 3.43 0 0 1-2-1 1.08 1.08 0 0 1 .1-1.32 2.7 2.7 0 0 1 2.69-.43 4 4 0 0 1 2.38 1.58 1.16 1.16 0 0 1-1.17 1.75M139.48 172a18 18 0 0 0 2.09-.29 3.36 3.36 0 0 0 2.08-.69 1.08 1.08 0 0 0 .1-1.32 2.67 2.67 0 0 0-2.6-.82 3.87 3.87 0 0 0-2.58 1.21 1.16 1.16 0 0 0 .91 1.91M143.26 180c0-.08-.16.09-.17.18 0 2.07-.43 4.45-2.34 5-.06 0-.06.12 0 .12 2.32-.19 2.81-3.3 2.51-5.3"}),J__namespace.createElement("path",{fill:"#263238",d:"M141.52 177.72c-3.32-.43-3.93 6.26-.85 6.65s3.64-6.3.85-6.65"}),J__namespace.createElement("path",{fill:"#263238",d:"M140.18 178c-.62.33-1.25.94-2 1s-1.38-.75-1.85-1.47c-.05-.07-.11 0-.12.07-.13 1.28.24 2.63 1.6 2.95s2.23-.77 2.67-2c.12-.36-.05-.73-.3-.55M155.81 180.19c0-.08.15.12.14.2-.27 2.06-.23 4.47 1.58 5.34.05 0 0 .13 0 .11-2.29-.54-2.31-3.74-1.72-5.65"}),J__namespace.createElement("path",{fill:"#263238",d:"M157.87 178.21c3.35.08 3 6.77-.15 6.71s-2.66-6.77.15-6.71"}),J__namespace.createElement("path",{fill:"#263238",d:"M159.24 178.74c.51.38 1 1.06 1.62 1.14s1.32-.61 1.83-1.27c.05-.07.1 0 .1.08 0 1.28-.55 2.59-1.79 2.76s-1.9-1-2.13-2.28c-.04-.24.13-.59.37-.43M143.23 195.94c.43.55.83 1.28 1.57 1.44a5.5 5.5 0 0 0 2.28-.21c.07 0 .13.06.08.11a2.81 2.81 0 0 1-2.77.77A2.22 2.22 0 0 1 143 196c0-.12.17-.14.23-.06M152.48 189.13s.19 3.12.07 4.58c0 .14-.37.18-.86.17h-.06a7 7 0 0 1-6.54-3.12c-.09-.15.11-.29.23-.19a10.5 10.5 0 0 0 6.2 2.31c.13-.39-.5-5.34-.26-5.34a12.6 12.6 0 0 1 3.25 1c-.19-6.53-1.44-13-1.53-19.47a.19.19 0 0 1 .38-.07c1.78 6.66 2.17 14.17 2.55 20.9.09.85-2.86-.48-3.43-.77"}),J__namespace.createElement("path",{fill:"#263238",d:"M114 178.59c7.51 1 13.56-21.58 14.27-24.36-.35 1.78-2.21 11.18-1.56 11.68a7.2 7.2 0 0 0 2.42 0 23 23 0 0 1 .84-3.33c.15-.51 0 1.17 0 3.26.44 0 .92-.11 1.44-.15a27.7 27.7 0 0 1 1.93-7.06c.37-.85-.07 3.2.19 6.85 5.38-.52 13.13-1.08 20.12-.14 1.88.25 3.48.54 4.89.85.48-2.78.66-5.81.76-5.13a27.5 27.5 0 0 1 .29 5.37c.76.18 1.46.35 2.09.52.86-3.9.05-10.51.52-9.44a28.1 28.1 0 0 1 2.16 10.35c2.6 1 3.25 1.62 3.45.94.34-1.24.67-12.52-6.55-22.06-7.84-10.36-26.08-15.72-38.86-4 0 0-9.6 4.18-12.5 13s-.25 22.26 4.1 22.85"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M118.47 179.45s-6-9.94-10.49-7.85-.38 16.19 4.56 18.41a5.16 5.16 0 0 0 7.08-2.32Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M109.25 175.61a.07.07 0 0 0 0 .13c3.46 1.68 5.11 5.09 6.2 8.59-1-1.38-2.36-2.2-4.2-1.06-.1.06 0 .21.08.2a3.17 3.17 0 0 1 3.41 1.33 16 16 0 0 1 1.49 2.93c.14.33.73.2.63-.17a.3.3 0 0 1 0-.09c.32-4.47-2.78-11.08-7.61-11.86"}),J__namespace.createElement("path",{fill:"#37474f",d:"M144.92 230.33 128 282.65c-.67 1.52 0 2.84 1.57 2.94l27.45 1.8a4.46 4.46 0 0 0 4-2.58l16.89-52.32c.67-1.53 0-2.85-1.56-3l-27.45-1.8a4.45 4.45 0 0 0-3.98 2.64"}),J__namespace.createElement("path",{fill:"#455a64",d:"m148.18 230.51-16.89 52.32c-.67 1.53 0 2.85 1.57 2.95l27.45 1.8a4.46 4.46 0 0 0 4-2.58l16.89-52.33c.67-1.52 0-2.84-1.56-2.94l-27.45-1.8a4.44 4.44 0 0 0-4.01 2.58"}),J__namespace.createElement("path",{fill:"#263238",d:"M155.55 233.43a2.34 2.34 0 1 1-2.13-2.53 2.34 2.34 0 0 1 2.13 2.53"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M40.77 346.9c12 1.65 26.93-7.66 65.68-35.95 5.36-3.91-12.09-49.18-18-45.3-7.48 4.9-35.46 25.51-37.31 27.28-15.68 14.89-18.5 52.85-10.37 53.97"}),J__namespace.createElement("path",{fill:"#c95f50",d:"M74.58 279.34s11-15.48 19.35-21.82c11.14-8.49 24.25-11.24 29.81-12.06 11.61-1.71 40.87 2.19 41.22 10.81.32 7.81-29.39 2.32-29.39 2.32s31.21.6 29.87 10.07-35.44 1.13-35.44 1.13 32.06 1.33 29.13 10.88c-2.22 7.21-33.55 1.4-33.55 1.4s27.54 1.34 25.58 8.86c-2.17 8.3-31.42 4.75-31.42 4.75-8.2 18.27-20 23.41-28.51 26.25-2.11.69-16.65-42.59-16.65-42.59"}),J__namespace.createElement("path",{fill:"#263238",d:"M124.79 257.69c3.67-.07 7.38-.15 11 .11s7.32.66 10.94 1.26a63 63 0 0 1 13.87 3.69c-8.16-2.53-21.25-3.68-24.91-3.95s-7.3-.71-11-1c-.01.02.01-.11.1-.11M123.59 270.89c4.69.13 9.35.08 14 .41s9.05 1.05 13.68 1.7c.35.05.21.22-.15.18-4.65-.46-9-.53-13.64-.94s-9.29-1-13.94-1.24c-.03 0-.02-.11.05-.11M120.53 282c7.18-.18 14.37 1 21.41 2.26.35.07.14.27-.22.23-7.11-.89-12.67-1.63-21.18-2.24-.14.03-.16-.25-.01-.25"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m74.58 273.19 15.27 55.64s-41 24.11-50 17.74-3.14-38.51 7.15-50.76c4.22-5.11 27.58-22.62 27.58-22.62"}),J__namespace.createElement("path",{fill:"#263238",d:"m75.09 275-.6-1.83.15.06c-3.87 3.16-7.75 6.29-11.58 9.48s-7.67 6.37-11.31 9.74a57 57 0 0 0-5.2 5.24 43 43 0 0 0-4.13 6.1 47 47 0 0 0-4.94 14 39.4 39.4 0 0 1 4-14.46 35.8 35.8 0 0 1 4.08-6.4 58 58 0 0 1 5.25-5.47c3.71-3.37 7.6-6.53 11.54-9.6s8-6 12.18-8.75l.12-.08v.13ZM65.61 287c.93 2.73 1.64 5.55 2.41 8.33s1.52 5.58 2.23 8.39c1.42 5.6 2.81 11.21 4.12 16.84.36 1.54.72 3.08 1 4.63s.51 3.35.88 5a.1.1 0 0 1-.2.05c-.37-1.37-.94-2.69-1.34-4.06s-.81-2.83-1.18-4.26q-1.11-4.19-2.18-8.39c-1.43-5.6-2.83-11.21-4.07-16.86-.7-3.18-1.5-6.38-2-9.6a.15.15 0 0 1 .33-.07M89.85 328.83c.27.52.25.08.19-.24s-.69-3-1.28-4.7c-.06-.17-.32-.47-.22.14a47 47 0 0 0 1.31 4.8"}))),Rp=GU;function uc(){return J__namespace.default.createElement("svg",{width:"9",height:"14",viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.47273 0.292893C8.86326 0.683417 8.86326 1.31658 8.47273 1.70711L3.17984 7L8.47273 12.2929C8.86326 12.6834 8.86326 13.3166 8.47273 13.7071C8.08221 14.0976 7.44904 14.0976 7.05852 13.7071L1.05852 7.70711C0.667994 7.31658 0.667994 6.68342 1.05852 6.29289L7.05852 0.292893C7.44904 -0.0976311 8.08221 -0.0976311 8.47273 0.292893Z",fill:"#0B89CE"}))}function tm({isMobile:e=false,onBack:t,unreadCount:o=0}){var H,z,G,R,V,_,$;let[r,n]=usehooks.useToggle(false),{isDeletingMessages:a,deleteMessages:s}=jn(),{selectedChat:i,onSelectChat:l,onSelectChatHeaderOption:d,chatHeaderOption:c,selectedMessageIds:p,clearSelectedMessages:f}=ce(),[u,g]=J.useState(false),[m,v]=J.useState(false),[h,b]=J.useState(false),{searchMessage:x,onSearchMessage:w}=ce(),{mutate:C}=Yr("favorites"),A=J.useRef(null),k=J.useRef(null),{locale:N,user:I,page:P,chatForPage:S}=M();if(J.useEffect(()=>{if(e)return;let oe=K=>{u&&k.current&&A.current&&!k.current.contains(K.target)&&!A.current.contains(K.target)&&g(false);};return document.addEventListener("mousedown",oe),()=>{document.removeEventListener("mousedown",oe);}},[u,e]),!i)return null;let D=()=>{var oe,K;if(i!=null&&i.isGroup)return i==null?void 0:i.name;if(S&&(P!=null&&P.name))return P==null?void 0:P.name;if(i!=null&&i.participants&&i.participants.length>0){let ne=i.participants.find(me=>(me==null?void 0:me.id)!==(I==null?void 0:I.id));return (oe=ne==null?void 0:ne.name)!=null?oe:O(N,"someone")}return (K=i==null?void 0:i.name)!=null?K:O(N,"someone")},T=()=>{var oe;if(i!=null&&i.isGroup)return i==null?void 0:i.avatar;if(S&&(P!=null&&P.logo))return P==null?void 0:P.logo;if(i!=null&&i.participants&&i.participants.length>0){let K=i==null?void 0:i.participants.find(ne=>(ne==null?void 0:ne.id)!==(I==null?void 0:I.id));return (oe=K==null?void 0:K.avatar)!=null?oe:i==null?void 0:i.avatar}return i==null?void 0:i.avatar},L=D(),E=T(),B=[{id:i!=null&&i.isGroup?"group-details":"info-contact",label:i!=null&&i.isGroup?O(N,"group-details"):O(N,"contact.info"),icon:J__namespace.default.createElement(k2,null),destructive:false},...i!=null&&i.isGroup&&(i!=null&&i.isGroupOwner)?[{id:"add-participants",label:O(N,"add-participants"),icon:J__namespace.default.createElement(lucideReact.UserRoundPlus,{size:14}),destructive:false}]:[],{id:"select-messages",label:O(N,"select.messages"),icon:J__namespace.default.createElement(uC,null),destructive:false},{id:"close-chat",label:O(N,"close.chat"),icon:J__namespace.default.createElement(B1,null),destructive:true},{id:"clear-chat",label:O(N,"clear.chat"),icon:J__namespace.default.createElement(Sr,null),destructive:true}],W=(oe,K)=>{switch(oe.stopPropagation(),K){case "info-contact":Ae(),window.open(`/profile/${N}/${i==null?void 0:i.slug}`,"_blank");break;case "group-details":b(true);break;case "clear-chat":n(true);break;case "close-chat":l==null||l(null);break;case "add-to-favorites":C({conversationId:i==null?void 0:i.conversationId,value:true});break;case "select-messages":d==null||d("select-messages");break;case "add-participants":d==null||d("add-participant");break;}g(false);},q=()=>{if(!A.current)return {top:0,left:0};let oe=A.current.getBoundingClientRect();return {top:oe.bottom+8,left:oe.right-264}};if(c==="select-messages")return J__namespace.default.createElement("div",{className:`sticky w-full ${e?"p-4 border-b border-gray-200":"h-[3.8125rem] rounded-[1rem] p-3"} flex items-center justify-between bg-white`},J__namespace.default.createElement("div",{className:"flex items-center gap-3"},J__namespace.default.createElement("button",{onClick:()=>{f(),d==null||d("filter-all");},className:"p-2 rounded-full hover:bg-gray-200"},J__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5 text-gray-600"})),J__namespace.default.createElement("span",{className:"text-sm text-gray-700"},p==null?void 0:p.length," ",O(N,"selected-label"))),J__namespace.default.createElement($p,{selectedMessageIds:p,onSelectChatHeaderOption:d}));if(e)return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(react.motion.div,{key:"chat-header-mobile",initial:{y:-10,opacity:0},animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{duration:.3},className:"p-4 bg-white flex items-center justify-between shadow-sm"},J__namespace.default.createElement("div",{className:"flex items-center gap-3 flex-1 min-w-0"},J__namespace.default.createElement("button",{onClick:t,className:"relative p-1 rounded-full hover:bg-gray-100 flex flex-row items-center gap-2 flex-shrink-0"},J__namespace.default.createElement(uc,null),o>0&&J__namespace.default.createElement("span",{className:"bg-primary text-white text-[10px] font-bold w-[1.313rem] h-[1.313rem] flex items-center justify-center rounded-full"},o>99?"99+":o)),J__namespace.default.createElement("div",{className:`flex-1 min-w-0 gap-2 items-center ${i!=null&&i.isGroup?"cursor-pointer active:scale-95 active:shadow-lg transition-all duration-150":""}`,onClick:()=>(i==null?void 0:i.isGroup)&&b(true)},J__namespace.default.createElement("div",{className:"flex flex-row min-w-0 gap-2 items-center"},J__namespace.default.createElement(ae,{name:(H=i.name)!=null?H:"",src:i.avatar}),J__namespace.default.createElement("div",null,J__namespace.default.createElement("h2",{className:"font-semibold text-lg truncate"},i.name),i.isGroup?J__namespace.default.createElement("div",{className:"text-xs text-gray-500 truncate max-w-[12rem] flex-shrink"},(z=i.participants)==null?void 0:z.slice(0,3).map((oe,K)=>{var ne,me,Me;return J__namespace.default.createElement("span",{key:oe.id},(ne=oe.name)==null?void 0:ne.split(" ")[0],K<Math.min(((Me=(me=i.participants)==null?void 0:me.length)!=null?Me:0)-1,2)&&", ")}),((R=(G=i.participants)==null?void 0:G.length)!=null?R:0)>3&&J__namespace.default.createElement("span",null," e ",((_=(V=i.participants)==null?void 0:V.length)!=null?_:0)-3," mais")):J__namespace.default.createElement("span",{className:"text-primary"},i.isOnline?"Online":""))))),J__namespace.default.createElement("div",{className:"flex items-center gap-1"},J__namespace.default.createElement("button",{ref:A,onClick:()=>g(!u),className:"p-2 rounded-full hover:bg-gray-100 flex-shrink-0 text-2xl leading-none text-gray-400"},"\u22EE"))),Y());return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"sticky w-full h-[4.5rem] flex items-center justify-between bg-[#F1F5F9] rounded-[1rem] p-3"},J__namespace.default.createElement(react.AnimatePresence,{mode:"wait",initial:false},m?J__namespace.default.createElement(react.motion.div,{key:"search-mode",className:"flex items-center gap-2 w-full",initial:{opacity:0,x:50},animate:{opacity:1,x:0},exit:{opacity:0,x:-50},transition:{duration:.25,ease:"easeInOut"}},J__namespace.default.createElement("button",{onClick:()=>{v(false),w==null||w("");},className:"p-2 rounded-full hover:bg-gray-200"},J__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5 text-gray-600"})),J__namespace.default.createElement(gt,{value:x!=null?x:"",onChange:oe=>w==null?void 0:w(oe.target.value),leftIcon:J__namespace.default.createElement(lucideReact.Search,{className:"w-5 h-5 text-gray-600"}),placeholder:O(N,"search-message-title"),className:"flex-1 !h-auto bg-white border-none rounded-lg"})):J__namespace.default.createElement(react.motion.div,{key:"normal-mode",className:"flex items-center justify-between w-full",initial:{opacity:0,x:-50},animate:{opacity:1,x:0},exit:{opacity:0,x:50},transition:{duration:.25,ease:"easeInOut"}},J__namespace.default.createElement("div",{className:'flex items-center gap-3 cursor-pointer hover:bg-gray-50 p-2.5 !rounded-md" : ""}',onClick:()=>{i!=null&&i.isGroup?b(true):(Ae(),window.open(`/profile/${N}/${i==null?void 0:i.slug}`,"_blank"));}},J__namespace.default.createElement(ae,{src:E,name:L!=null?L:"",className:"w-11 h-11"}),J__namespace.default.createElement("div",{className:"flex flex-col"},J__namespace.default.createElement("span",{className:"font-normal text-[1rem] text-[#050910]"},ht(L!=null?L:"")),i!=null&&i.participants&&(($=i==null?void 0:i.participants)==null?void 0:$.length)>2?J__namespace.default.createElement("span",{className:"text-[0.875rem] text-gray-500 font-normal truncate max-w-[12rem]"},i.participants.map(oe=>oe==null?void 0:oe.name).join(", ")):(i==null?void 0:i.isOnline)&&J__namespace.default.createElement("span",{className:"text-[0.875rem] text-primary font-normal"},"Online"))),J__namespace.default.createElement("div",{className:"flex items-center gap-2 relative"},J__namespace.default.createElement("button",{onClick:()=>v(true),className:"p-2 rounded-full hover:bg-gray-200"},J__namespace.default.createElement(lucideReact.Search,{className:"w-5 h-5 text-gray-600"})),J__namespace.default.createElement("button",{ref:A,className:"bg-none border-none text-gray-400 cursor-pointer text-2xl leading-none",onClick:()=>g(!u)},"\u22EE"))))),Y());function Y(){return J__namespace.default.createElement(J__namespace.default.Fragment,null,!e&&RW.createPortal(J__namespace.default.createElement(react.AnimatePresence,null,u&&J__namespace.default.createElement(react.motion.div,{ref:k,style:{position:"absolute",top:`${q().top}px`,left:`${q().left}px`,width:"16.5rem"},initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeOut"},className:"p-[1rem] z-[99999] rounded-[1rem] bg-white shadow-lg border border-gray-100",onClick:oe=>oe.stopPropagation()},B.map(oe=>J__namespace.default.createElement(re,{key:oe.id,align:"left",label:oe.label,leftElement:oe.icon,onClick:K=>W(K,oe.id),className:`group text-body-md flex items-center gap-2 w-full text-left px-[0.75rem] py-[0.5rem] hover:bg-primary hover:bg-opacity-10 text-sm whitespace-nowrap ${oe.destructive?"text-red-600 hover:bg-red-50 [&>svg_*]:fill-red-600":"text-gray-700"}`})))),document.body),e&&J__namespace.default.createElement(ro,{isOpen:u,onClose:()=>g(false),className:"z-[99999] h-[15.700rem]",title:O(N,"options")},J__namespace.default.createElement("div",{className:"flex flex-col gap-1 pb-4"},B.map(oe=>J__namespace.default.createElement(re,{key:oe.id,align:"left",label:oe.label,leftElement:oe.icon,onClick:K=>W(K,oe.id),className:`group text-body-lg flex items-center gap-3 w-full text-left px-4 py-3 hover:bg-gray-100 rounded-lg transition-colors ${oe.destructive?"text-red-600 [&>svg_*]:fill-red-600":"text-gray-700"}`})))),RW.createPortal(J__namespace.default.createElement(Xp,{isOpen:h,onClose:()=>b(false),selectedChat:i}),document.body),J__namespace.default.createElement(qe,{hideCloseButton:true,isLoading:a,closeOnClickOutside:!a,isOpen:r,onClose:()=>n(false),className:"w-[30rem] max-h-full !rounded-md p-4"},J__namespace.default.createElement("div",{className:"w-full flex flex-col items-center justify-center p-4 gap-2"},J__namespace.default.createElement("p",{className:"text-center text-body-md md:text-body-lg font-bold text-dark-1 "},O(N,"warning-on-clear-messages-title")),J__namespace.default.createElement("div",{className:"w-48 h-48"},J__namespace.default.createElement(Rp,null)),J__namespace.default.createElement("div",{className:"w-full flex items-center justify-between gap-4"},J__namespace.default.createElement(re,{disabled:a,onClick:()=>n(false),label:O(N,"no-button"),className:"p-3 border !bg-primary text-white flex-1 font-bold text-body-sm md:text-body-md bg-white"}),J__namespace.default.createElement(re,{isLoading:a,disabled:a,onClick:()=>s({input:{clearConversation:true,conversationId:i==null?void 0:i.id}},{onSuccess(){n(false);}}),className:"p-3 border border-primary text-primary font-bold text-body-sm md:text-body-md bg-white flex-1",label:O(N,"yes-button")})))))}}function jU(e){return J__namespace.createElement("svg",y({width:181,height:180,fill:"none"},e),J__namespace.createElement("path",{d:"M20.578 85.419s-3.453.605-1.239 8.136c2.214 7.531 4.003 11.39 4.003 11.39s.32 1.714-1.08 1.707c-1.4-.007-4.259-1.03-5.166.5-.94 1.588 0 3.427 2.24 5.31 2.239 1.883 7.023 6.189 7.44 6.577.418.389.764 1.217-.183 1.365-.947.147-7.73-.407-7.801 2.826-.072 3.233 7.041 7.452 7.812 7.92.77.468.9.867.749 1.307-.152.439-2.416.043-4.353-.036-1.936-.08-4.194.165-4.078 2.037.115 1.872 3.934 6.48 14.72 9.612l5.094 1.127 3.6-3.802c7.2-8.611 7.83-14.558 6.883-16.178-.947-1.62-2.956-.565-4.522.576-1.566 1.141-3.218 2.736-3.6 2.452-.381-.285-.478-.677-.104-1.502.374-.824 3.942-8.28 2.08-10.933-1.86-2.653-7.163 1.595-8.016 1.998-.853.403-1.051-.475-.915-1.029.137-.555 1.707-6.794 2.52-9.605.814-2.812.573-4.864-1.08-5.659-1.605-.767-3.416 1.681-4.568 2.458-1.152.778-1.836-.824-1.836-.824s-.662-4.205-3.013-11.693c-2.351-7.488-5.627-6.02-5.627-6.02",fill:"#EBEBEB"}),J__namespace.createElement("path",{d:"M38.787 146.46c-1.703-5.508-4.568-15.347-7.07-23.782a3572.108 3572.108 0 00-6.455-21.582l-1.99-6.53c-.235-.767-.415-1.365-.54-1.775-.058-.202-.105-.36-.138-.465-.032-.104-.04-.158-.04-.158s.022.05.055.155c.032.104.086.259.154.457.13.41.324 1.004.57 1.768a712.818 712.818 0 012.04 6.516c1.703 5.508 3.996 13.132 6.48 21.567 2.484 8.435 5.35 18.281 7.028 23.796",fill:"#E0E0E0"}),J__namespace.createElement("path",{d:"M21.063 108.75c.118.042.232.098.338.166.212.115.515.291.89.514.744.443 1.756 1.08 2.861 1.8l2.822 1.869.857.561a1.8 1.8 0 01.306.216 1.52 1.52 0 01-.338-.162 32.284 32.284 0 01-.886-.518 122.399 122.399 0 01-2.85-1.829l-2.834-1.847-.853-.55a1.663 1.663 0 01-.314-.22zM29.556 113.625c-.04-.025 1.188-2.16 2.736-4.795 1.548-2.635 2.84-4.73 2.88-4.709.04.022-1.185 2.16-2.736 4.792-1.552 2.631-2.84 4.734-2.88 4.712zM32.813 126.747c.08-.101.171-.194.27-.278l.763-.72a79.28 79.28 0 002.47-2.408 81.685 81.685 0 002.36-2.52c.282-.306.516-.569.72-.774a1.73 1.73 0 01.274-.274 1.898 1.898 0 01-.223.314c-.155.194-.36.475-.666.81a46.836 46.836 0 01-2.332 2.556c-.947.964-1.844 1.8-2.52 2.379a28.84 28.84 0 01-.8.681c-.095.091-.201.17-.316.234zM24.172 124.031c.122.009.243.033.36.072l.936.252c.785.22 1.868.537 3.064.897 1.195.36 2.271.691 3.049.939l.921.303c.115.03.225.075.328.133a1.472 1.472 0 01-.36-.072l-.936-.256c-.788-.219-1.872-.536-3.064-.893a154.871 154.871 0 01-3.052-.943l-.918-.302a1.43 1.43 0 01-.328-.13zM25.578 135.984c.15.017.3.05.443.098l1.199.32c1.011.277 2.4.67 3.938 1.116 1.537.446 2.92.853 3.924 1.159l1.18.36c.149.038.292.091.43.159a2.486 2.486 0 01-.444-.098l-1.184-.309a336.75 336.75 0 01-7.862-2.279l-1.181-.36a2.341 2.341 0 01-.443-.166zM36.445 139.052c.098-.131.208-.251.328-.36l.936-.944c.788-.799 1.872-1.904 3.035-3.157a134.889 134.889 0 002.926-3.261l.872-1.001c.102-.129.213-.249.334-.36a2.53 2.53 0 01-.284.392c-.194.249-.475.605-.835 1.037a91.36 91.36 0 01-2.88 3.294 70.76 70.76 0 01-3.075 3.128c-.406.389-.72.699-.971.908-.117.121-.246.23-.386.324z",fill:"#E0E0E0"}),J__namespace.createElement("path",{d:"M43.578 66.565c5.502-5.503 5.502-14.424 0-19.927-5.503-5.502-14.424-5.502-19.927 0-5.503 5.503-5.503 14.424 0 19.927s14.424 5.503 19.927 0z",fill:"#EBEBEB"}),J__namespace.createElement("path",{d:"M26.273 53.829a7.41 7.41 0 011.037-.612c.652-.36 1.559-.839 2.567-1.361l.13-.068v.169c-1.012-.44-1.916-.839-2.564-1.138a6.919 6.919 0 01-1.022-.518c.37.104.731.238 1.08.4.662.266 1.577.647 2.588 1.08a.093.093 0 010 .169l-.13.068c-1.007.522-1.922.986-2.591 1.31a7.723 7.723 0 01-1.095.5zM40.348 53.424a7.33 7.33 0 01-1.044-.435c-.637-.292-1.509-.72-2.47-1.174a.093.093 0 01-.043-.126.08.08 0 01.047-.043l.04-.018c.99-.436 1.89-.817 2.545-1.08a6.52 6.52 0 011.08-.4 6.997 6.997 0 01-1.023.522c-.64.3-1.53.72-2.52 1.134l-.043.022v-.173c.961.468 1.825.904 2.448 1.224.343.154.671.337.983.547zM24.156 56.79l18.645-.071s-1.224 8.6-9 8.759c-7.776.158-9.645-8.687-9.645-8.687z",fill:"#E0E0E0"}),J__namespace.createElement("path",{d:"M40.722 61.688c-1.635-2.16-4.45-3.269-7.168-3.2-2.718.068-5.324 1.195-7.538 2.771 0 0 2.451 4.32 7.78 4.22 5.327-.101 6.926-3.791 6.926-3.791z",fill:"#F5F5F5"}),J__namespace.createElement("path",{d:"M24.593 65.817a.945.945 0 01-.155-.125c-.097-.087-.245-.206-.418-.386a11.8 11.8 0 01-1.357-1.587 12.845 12.845 0 01-1.105-13.17c.307-.63.669-1.231 1.08-1.8.14-.204.27-.36.36-.45a.906.906 0 01.133-.147c-.13.22-.27.432-.421.637-.382.574-.72 1.176-1.012 1.8a13.051 13.051 0 001.08 13.036c.392.573.826 1.114 1.3 1.62.181.182.353.373.515.572zM25.664 46.156c0 .054-.36.195-.72.486-.36.292-.609.598-.655.569-.047-.029.133-.407.54-.72.226-.212.524-.331.835-.335zM44.578 63.456a11.074 11.074 0 001.411-2.74c.28-.992.417-2.02.407-3.052.085.296.12.604.105.91a7.2 7.2 0 01-1.314 4.191c-.167.26-.372.493-.609.691z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M161.848 77.271a8.554 8.554 0 10-12.099-12.097 8.554 8.554 0 0012.099 12.097z",fill:"#EBEBEB"}),J__namespace.createElement("path",{d:"M151.344 69.54a16.78 16.78 0 012.16-1.23l.083-.04v.17a16.591 16.591 0 01-2.16-1.038c.768.23 1.518.519 2.242.864.023.01.04.029.05.052a.102.102 0 01.001.07.097.097 0 01-.043.047l-.083.044a16.46 16.46 0 01-2.25 1.062zM159.884 69.297a15.85 15.85 0 01-2.16-.944.097.097 0 01-.047-.054.094.094 0 01.004-.072.116.116 0 01.046-.046h.025a15.354 15.354 0 012.233-.86c-.685.402-1.4.75-2.139 1.04h-.025v-.17c.716.313 1.406.682 2.063 1.106zM150.047 71.336l11.322-.043s-.742 5.224-5.469 5.32c-4.726.098-5.853-5.277-5.853-5.277z",fill:"#E0E0E0"}),J__namespace.createElement("path",{d:"M160.115 74.308a5.292 5.292 0 00-4.352-1.95 8.367 8.367 0 00-4.575 1.68 5.489 5.489 0 004.719 2.564c3.236-.058 4.208-2.294 4.208-2.294z",fill:"#F5F5F5"}),J__namespace.createElement("path",{d:"M150.317 76.818a1.79 1.79 0 01-.36-.299 6.89 6.89 0 01-.836-.964 7.753 7.753 0 01-.662-8.021c.187-.38.408-.742.662-1.08.086-.132.188-.253.303-.36-.31.484-.593.985-.846 1.5a7.957 7.957 0 00.659 7.888c.334.466.695.912 1.08 1.336zM150.98 64.885c0 .05-.198.151-.418.32-.219.17-.36.36-.421.317-.061-.043.054-.27.306-.464.252-.195.533-.223.533-.173zM162.453 75.384a9.33 9.33 0 00.821-1.674c.155-.603.25-1.22.284-1.843.153.63.117 1.291-.104 1.901a3.242 3.242 0 01-1.001 1.616z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M60.56 38.307a7.106 7.106 0 117.106-7.107 7.113 7.113 0 01-7.106 7.107zm0-13.85a6.746 6.746 0 100 13.492 6.746 6.746 0 000-13.492z",fill:"#E0E0E0"}),J__namespace.createElement("path",{d:"M63.504 29.095c-1.293-1.857-2.945-.237-2.945-.237s-1.649-1.62-2.941.237c-1.365 1.962 1.22 4.284 2.941 5.098 1.724-.814 4.31-3.136 2.945-5.098z",fill:"#E0E0E0"}),J__namespace.createElement("path",{d:"M168.719 149.101c0 .051-35.506.094-79.293.094-43.787 0-79.301-.043-79.301-.094 0-.05 35.5-.093 79.3-.093 43.802 0 79.294.032 79.294.093zM154.371 138.767a.868.868 0 01.072-.176l.238-.508c.29-.654.523-1.332.698-2.026.461-1.8.623-4.558-.061-7.83a42.127 42.127 0 00-1.44-5.26c-.615-1.865-1.328-3.845-1.911-5.987a23.096 23.096 0 01-.944-6.883c.087-2.434.81-4.867 1.602-7.286.792-2.42 1.61-4.792 1.854-7.172a10.937 10.937 0 00-1.339-6.627c-1.051-1.933-2.372-3.6-3.359-5.3a18.454 18.454 0 01-2.019-5.093 18.978 18.978 0 01-.126-7.895c.181-.954.458-1.887.824-2.787a1.301 1.301 0 01-.05.184c-.04.133-.097.31-.166.537a18.845 18.845 0 00-.309 9.918 18.389 18.389 0 002.026 5.04c.987 1.692 2.312 3.337 3.381 5.295a11.137 11.137 0 011.357 6.757c-.245 2.423-1.08 4.81-1.861 7.229-.781 2.419-1.505 4.824-1.595 7.218-.036 2.304.275 4.6.922 6.811.572 2.131 1.278 4.111 1.886 5.983a41.965 41.965 0 011.44 5.292c.662 3.294.475 6.077-.022 7.888a11.738 11.738 0 01-.745 2.023l-.263.497a.849.849 0 01-.09.158z",fill:"#263238"}),J__namespace.createElement("path",{d:"M151.137 85.4s-2.009-6.414 1.591-10.17a.225.225 0 01.224-.061.226.226 0 01.158.17c.191 1.062.432 4.287-1.973 10.062z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M152.339 77.367a6.252 6.252 0 01-.137 1.181c-.133.817-.288 1.775-.457 2.83-.169 1.054-.321 2.016-.45 2.83-.034.396-.105.789-.213 1.173-.035-.399-.023-.8.036-1.195a44 44 0 01.378-2.848c.184-1.109.36-2.102.53-2.822.059-.394.164-.78.313-1.149z",fill:"#263238"}),J__namespace.createElement("path",{d:"M153.5 100.534s1.228-6.61 6.167-8.247a.217.217 0 01.227.048.217.217 0 01.057.225c-.331 1.04-1.631 3.993-6.451 7.974z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M158.311 93.992c-.19.35-.416.68-.673.983-.497.659-1.08 1.44-1.728 2.286l-1.721 2.293a6.687 6.687 0 01-.72.936c.154-.368.352-.716.59-1.037.4-.619.987-1.44 1.667-2.343a43.781 43.781 0 011.8-2.247c.229-.318.492-.61.785-.87z",fill:"#263238"}),J__namespace.createElement("path",{d:"M152.16 117.114s-.746-6.682 3.502-9.68a.226.226 0 01.237-.024.223.223 0 01.123.204c-.003 1.076-.399 4.291-3.862 9.5z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M154.866 109.441c-.08.391-.2.772-.36 1.138l-.99 2.689-.982 2.693a6.2 6.2 0 01-.432 1.109c.043-.397.131-.787.262-1.163.206-.72.526-1.674.915-2.725a54.78 54.78 0 011.062-2.668c.135-.376.311-.736.525-1.073z",fill:"#263238"}),J__namespace.createElement("path",{d:"M155.878 133.794s-.508-6.711 3.848-9.551a.222.222 0 01.36.194c-.065 1.077-.562 4.273-4.208 9.357z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M158.859 126.234a5.803 5.803 0 01-.399 1.124l-1.08 2.653-1.08 2.653a6.244 6.244 0 01-.472 1.08 4.84 4.84 0 01.306-1.152c.227-.72.583-1.652 1.008-2.693.425-1.04.843-1.962 1.156-2.628.149-.365.338-.712.561-1.037z",fill:"#263238"}),J__namespace.createElement("path",{d:"M148.249 79.769s-5.958-3.114-6.077-8.316a.226.226 0 01.243-.237.22.22 0 01.117.046c.882.612 3.327 2.722 5.717 8.507z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M143.414 73.242c.279.284.527.597.742.933l1.681 2.322 1.685 2.314c.256.304.483.632.676.98a5.21 5.21 0 01-.817-.868 51.022 51.022 0 01-1.749-2.279 48.785 48.785 0 01-1.624-2.369 5.48 5.48 0 01-.594-1.033z",fill:"#263238"}),J__namespace.createElement("path",{d:"M154.649 93.542s-6.138-2.744-6.57-7.92a.225.225 0 01.218-.247.22.22 0 01.117.03c.922.551 3.499 2.51 6.235 8.137z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M149.422 87.324c.294.266.56.56.795.879.526.637 1.138 1.386 1.818 2.217l1.822 2.207c.275.288.522.602.738.936a4.985 4.985 0 01-.868-.817 42.88 42.88 0 01-1.886-2.16 52.476 52.476 0 01-1.764-2.268 5.006 5.006 0 01-.655-.994z",fill:"#263238"}),J__namespace.createElement("path",{d:"M151.115 108.91s-4.212-5.238-2.236-10.051a.223.223 0 01.396-.036c.565.914 1.969 3.83 1.84 10.087z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M149.297 100.996c.139.372.241.757.306 1.148l.608 2.805c.231 1.044.44 1.991.62 2.797.11.381.187.772.23 1.166a4.706 4.706 0 01-.403-1.123 40.966 40.966 0 01-.691-2.79 57.917 57.917 0 01-.537-2.819 5.124 5.124 0 01-.133-1.184z",fill:"#263238"}),J__namespace.createElement("path",{d:"M155.297 126.999s-6.092-2.848-6.437-8.039a.216.216 0 01.025-.117.218.218 0 01.198-.12c.04 0 .08.011.115.032.907.572 3.453 2.567 6.099 8.244z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M150.172 120.691c.291.272.554.572.785.897l1.778 2.25c.67.835 1.271 1.595 1.8 2.239.268.294.509.61.72.947a4.926 4.926 0 01-.857-.832 40.846 40.846 0 01-1.85-2.199 57.742 57.742 0 01-1.725-2.297 5.27 5.27 0 01-.651-1.005zM167.414 100.571a.61.61 0 010 .148v.428c-.018.403-.043.95-.072 1.631-.079 1.44-.187 3.431-.32 5.821-.436 2.434-1.674 5.13-3.337 7.747-1.221 1.93-2.502 3.683-3.6 5.314a37.593 37.593 0 00-2.704 4.464 19.001 19.001 0 00-1.264 3.279c-.108.4-.187.72-.234.929-.02.11-.049.219-.086.324a1.457 1.457 0 01.036-.335c.032-.219.097-.536.191-.943a17.08 17.08 0 011.199-3.33 35.337 35.337 0 012.667-4.518c1.098-1.641 2.369-3.398 3.6-5.317 1.656-2.606 2.88-5.26 3.337-7.654.166-2.386.306-4.384.407-5.814.054-.68.101-1.224.133-1.627 0-.173.029-.313.044-.428.014-.115-.004-.123.003-.119z",fill:"#263238"}),J__namespace.createElement("path",{d:"M163.789 115.859s2.577-6.207-.666-10.275a.222.222 0 00-.098-.07.223.223 0 00-.291.146c-.288 1.037-.821 4.23 1.055 10.199z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M163.322 107.746c.113.383.182.778.205 1.177.09.72.194 1.739.274 2.859.079 1.119.118 2.134.118 2.88a5.06 5.06 0 01-.072 1.191 6.353 6.353 0 01-.108-1.184c-.054-.825-.118-1.8-.19-2.859-.072-1.058-.141-2.037-.198-2.862a6.035 6.035 0 01-.029-1.202z",fill:"#263238"}),J__namespace.createElement("path",{d:"M163.789 115.859s2.577-6.207-.666-10.275a.222.222 0 00-.098-.07.223.223 0 00-.291.146c-.288 1.037-.821 4.23 1.055 10.199z",fill:"#050910",opacity:.3}),J__namespace.createElement("path",{d:"M155.803 130.821s2.067-6.397-1.497-10.188a.224.224 0 00-.382.108c-.201 1.055-.471 4.281 1.879 10.08z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M154.68 122.762c.143.371.243.758.298 1.152.152.72.335 1.721.504 2.826.17 1.105.292 2.12.36 2.855.056.394.064.795.022 1.191a6.663 6.663 0 01-.202-1.173c-.118-.818-.262-1.775-.421-2.834-.158-1.058-.306-2.016-.432-2.833a6.037 6.037 0 01-.129-1.184z",fill:"#263238"}),J__namespace.createElement("path",{d:"M155.803 130.821s2.067-6.397-1.497-10.188a.224.224 0 00-.382.108c-.201 1.055-.471 4.281 1.879 10.08z",fill:"#050910",opacity:.3}),J__namespace.createElement("path",{d:"M167.078 108.271s5.497-3.869 4.95-9.028a.217.217 0 00-.137-.18.217.217 0 00-.223.036c-.806.72-2.97 3.142-4.59 9.172z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M167.078 108.271s5.497-3.869 4.95-9.028a.217.217 0 00-.137-.18.217.217 0 00-.223.036c-.806.72-2.97 3.142-4.59 9.172z",fill:"#050910",opacity:.3}),J__namespace.createElement("path",{d:"M171.039 101.164a5.499 5.499 0 01-.46 1.08 54.493 54.493 0 01-1.3 2.56 45.53 45.53 0 01-1.44 2.487 4.912 4.912 0 01-.698.965c.149-.368.332-.721.547-1.055l1.371-2.52 1.365-2.52c.169-.353.376-.687.615-.997z",fill:"#263238"}),J__namespace.createElement("path",{d:"M158.031 124.476s6.628-1.037 8.428-5.922a.221.221 0 00-.044-.231.22.22 0 00-.226-.064c-1.041.295-4.05 1.508-8.158 6.217z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M158.031 124.476s6.628-1.037 8.428-5.922a.221.221 0 00-.044-.231.22.22 0 00-.226-.064c-1.041.295-4.05 1.508-8.158 6.217z",fill:"#050910",opacity:.3}),J__namespace.createElement("path",{d:"M164.697 119.848a5.17 5.17 0 01-.896.788 48.842 48.842 0 01-2.297 1.724 45.295 45.295 0 01-2.387 1.595 5.016 5.016 0 01-1.055.562 6.33 6.33 0 01.958-.72l2.34-1.653 2.336-1.663a6.141 6.141 0 011.001-.633z",fill:"#263238"}),J__namespace.createElement("path",{d:"M150.172 136.699l1.904 12.499 7.607-.014 2.563-12.485h-12.074z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M161.125 141.521a1.671 1.671 0 01-.263.159c-.267.13-.554.217-.849.255-.471.061-.95.015-1.401-.133a2.933 2.933 0 01-1.504-1.08 2.14 2.14 0 01-.36-1.047 1.13 1.13 0 01.106-.614c.091-.191.234-.352.412-.466a1.236 1.236 0 011.274.104c.377.278.634.688.72 1.148.101.464.134.939.098 1.412a4.811 4.811 0 01-.31 1.44 3.209 3.209 0 01-.882 1.256 2.454 2.454 0 01-1.465.612 2.674 2.674 0 01-1.523-.443 4.455 4.455 0 01-1.134-1.026 2.476 2.476 0 01-.576-1.371 1.585 1.585 0 01.54-1.325 1.22 1.22 0 01.661-.242c.239-.015.477.04.685.159a1.433 1.433 0 01.778 1.019 1.96 1.96 0 01-.961 1.98 2.698 2.698 0 01-1.836.263 4.184 4.184 0 01-1.311-.512 6.812 6.812 0 01-.72-.496 1.477 1.477 0 01-.234-.198c.091.049.177.104.26.165.165.112.414.277.745.457a4.14 4.14 0 001.292.468 2.544 2.544 0 001.739-.277 1.804 1.804 0 00.868-1.818 1.268 1.268 0 00-.692-.885 1.049 1.049 0 00-1.144.068 1.398 1.398 0 00-.461 1.163c.049.463.236.901.536 1.256.303.384.668.714 1.08.976.415.277.905.42 1.404.41a2.238 2.238 0 001.339-.561c.366-.319.649-.722.825-1.174.173-.442.274-.909.299-1.382.037-.453.01-.909-.08-1.354a1.682 1.682 0 00-.644-1.037 1.056 1.056 0 00-1.08-.108.98.98 0 00-.443.918c.018.345.127.68.317.969.345.502.842.881 1.418 1.08.433.151.894.206 1.35.158a3.57 3.57 0 001.127-.346z",fill:"#263238"}),J__namespace.createElement("path",{d:"M47.633 142.199c-3.914-.403-16.456-.669-20.326.022-3.87.691-8.32 4.219-9.976 7.365-1.86 3.532-1.544 10.293 1.404 13.166 2.949 2.872 8.237 2.016 12.6 2.628 4.364.612 8.813.388 13.234.273 27.763-.72 55.735 2.88 83.196-.936 3.503-.482 7.222-1.195 9.699-3.431 2.739-2.473 3.279-6.177 3.675-9.597.313-2.704.551-5.677-1.245-7.881-1.178-1.44-3.078-2.3-5.087-2.66 3.215-3.92 4.791-6.811 4.957-10.152.292-5.908-1.253-10.285-1.602-16.128-.349-5.843-.36-11.812 1.343-17.41 1.04-3.409 2.585-7.488.263-10.188-1.34-1.558-3.536-2.008-5.566-2.34-24.307-3.96-49.108-4.032-73.67-2.282-2.93.209-6.178.598-8.082 2.833-1.53 1.8-1.783 4.367-1.495 6.71.288 2.344 1.037 4.616 1.239 6.967.954 11.16-14.886 30.258-4.561 43.041z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M47.633 142.199c-3.914-.403-16.456-.669-20.326.022-3.87.691-8.32 4.219-9.976 7.365-1.86 3.532-1.544 10.293 1.404 13.166 2.949 2.872 8.237 2.016 12.6 2.628 4.364.612 8.813.388 13.234.273 27.763-.72 55.735 2.88 83.196-.936 3.503-.482 7.222-1.195 9.699-3.431 2.739-2.473 3.279-6.177 3.675-9.597.313-2.704.551-5.677-1.245-7.881-1.178-1.44-3.078-2.3-5.087-2.66 3.215-3.92 4.791-6.811 4.957-10.152.292-5.908-1.253-10.285-1.602-16.128-.349-5.843-.36-11.812 1.343-17.41 1.04-3.409 2.585-7.488.263-10.188-1.34-1.558-3.536-2.008-5.566-2.34-24.307-3.96-49.108-4.032-73.67-2.282-2.93.209-6.178.598-8.082 2.833-1.53 1.8-1.783 4.367-1.495 6.71.288 2.344 1.037 4.616 1.239 6.967.954 11.16-14.886 30.258-4.561 43.041z",fill:"#F1F5F9",opacity:.5}),J__namespace.createElement("path",{d:"M52.656 85.255s.414-.241 1.246-.616a15.505 15.505 0 013.812-1.152c1.71-.302 3.834-.36 6.29-.496 2.455-.137 5.252-.238 8.348-.343a516.126 516.126 0 0121.744-.251c8.186.072 17.183.36 26.611.925l3.514.227c1.16.047 2.317.167 3.463.36a7.847 7.847 0 013.197 1.263c.465.337.874.747 1.209 1.213.323.47.578.982.756 1.523a8.277 8.277 0 01.36 3.305 16.822 16.822 0 01-.637 3.197c-.292 1.033-.63 2.037-.896 3.045a54.714 54.714 0 00-.72 3.017 43.99 43.99 0 00-.756 11.542c.116 1.748.338 3.488.666 5.209.306 1.659.72 3.24 1.08 4.73.781 2.992 1.44 5.728 1.656 8.187.216 2.101.07 4.223-.432 6.274a14.19 14.19 0 01-.76 2.16 12.223 12.223 0 01-.814 1.48l-.342.497-.27.338a8.61 8.61 0 01-.226.274s.068-.101.212-.285c.068-.093.158-.208.263-.36l.331-.5c.298-.474.562-.969.792-1.48.305-.699.554-1.421.745-2.16.485-2.045.619-4.159.396-6.249-.219-2.448-.893-5.17-1.677-8.161-.386-1.498-.8-3.071-1.113-4.734a43.883 43.883 0 01.065-16.812c.205-1.005.432-2.02.72-3.031.288-1.012.605-2.02.893-3.05.31-1.03.521-2.09.63-3.16a8.157 8.157 0 00-.36-3.24 5.814 5.814 0 00-.72-1.473 5.124 5.124 0 00-1.167-1.17 7.719 7.719 0 00-3.124-1.235 28.442 28.442 0 00-3.442-.36l-3.51-.227a538.521 538.521 0 00-26.604-.94 534.89 534.89 0 00-30.085.53c-2.459.115-4.576.17-6.282.46-1.31.213-2.59.587-3.809 1.113-.418.18-.72.328-.94.432l-.313.184zM141.347 153.914l-.313.09-.929.238-3.571.918-2.585.648c-.946.223-1.983.435-3.092.68-2.225.468-4.745 1.08-7.56 1.548l-4.417.806c-.767.152-1.555.252-2.358.378l-2.452.36-2.538.382c-.432.061-.864.133-1.299.191l-1.325.155-5.494.651c-7.524.763-15.84 1.311-24.566 1.408-8.727.097-17.053-.36-24.592-1.005l-5.515-.565-1.328-.137c-.44-.046-.871-.111-1.303-.169l-2.546-.338-2.459-.328c-.802-.111-1.594-.198-2.365-.338l-4.428-.72c-2.83-.432-5.36-.99-7.588-1.44-1.116-.227-2.16-.421-3.107-.63l-2.596-.601-3.6-.846-.932-.224c-.21-.05-.317-.082-.317-.082s.111.018.32.064l.936.206 3.6.81 2.614.576c.954.201 1.994.392 3.107.612 2.232.421 4.763.972 7.592 1.393l4.428.72c.77.137 1.563.223 2.365.335l2.46.32 2.54.335c.433.054.865.119 1.304.165l1.328.134 5.498.55c7.534.63 15.84 1.037 24.577.99 8.737-.046 17.028-.64 24.548-1.393l5.49-.641 1.325-.154c.435-.054.867-.126 1.299-.188l2.52-.378 2.452-.36c.803-.122 1.595-.219 2.358-.36l4.428-.792c2.819-.468 5.339-1.058 7.56-1.519 1.109-.237 2.16-.446 3.096-.662l2.585-.634 3.578-.867.933-.22.334-.072zM47.64 142.201h.224l.655.04 2.52.172c1.08.08 2.426.18 3.982.26 1.555.079 3.319.208 5.274.28 1.954.072 4.096.188 6.397.242 1.148.032 2.34.079 3.564.097l3.78.061c5.173.058 10.865.036 16.833-.101 11.945-.291 22.745-.9 30.561-1.339l9.255-.533 2.52-.137.652-.032h.209l-.22.025-.655.047-2.52.176-9.256.591c-7.812.471-18.615 1.101-30.564 1.393a467.62 467.62 0 01-16.84.086l-3.78-.068c-1.228-.022-2.416-.072-3.568-.104-2.3-.065-4.442-.177-6.397-.267-1.955-.09-3.723-.219-5.274-.309-1.552-.09-2.88-.202-3.96-.292l-2.52-.205-.655-.061-.216-.022z",fill:"#263238"}),J__namespace.createElement("path",{d:"M117.451 163.658c-.058 0-.162-1.08-.54-2.326-.378-1.245-.864-2.217-.814-2.246.151.182.272.386.36.605a9.907 9.907 0 01.965 3.258c.048.233.058.473.029.709zM120.634 162.173a14.919 14.919 0 00-.465-1.937 14.23 14.23 0 00-.903-1.775 4.853 4.853 0 011.368 3.712zM128.602 124.817a4.536 4.536 0 003.657-.958s-.119.198-.403.429a3.53 3.53 0 01-2.693.72 1.307 1.307 0 01-.561-.191zM128.383 120.497c.029-.05.666.278 1.512.486.846.209 1.559.231 1.559.288a4.495 4.495 0 01-3.071-.774z",fill:"#263238"}),J__namespace.createElement("path",{d:"M126.389 39.513a7.733 7.733 0 100-15.466 7.733 7.733 0 000 15.466z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M129.681 29.431c-1.44-2.077-3.287-.266-3.287-.266s-1.843-1.8-3.287.266c-1.522 2.193 1.365 4.781 3.287 5.692 1.926-.925 4.81-3.5 3.287-5.692z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M101.377 38.903c7.874-3.83 11.153-13.318 7.322-21.192-3.83-7.874-13.318-11.152-21.192-7.322-7.874 3.83-11.152 13.318-7.322 21.192 3.83 7.874 13.319 11.152 21.192 7.322z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M101.377 38.903c7.874-3.83 11.153-13.318 7.322-21.192-3.83-7.874-13.318-11.152-21.192-7.322-7.874 3.83-11.152 13.318-7.322 21.192 3.83 7.874 13.319 11.152 21.192 7.322z",fill:"#F1F5F9",opacity:.2}),J__namespace.createElement("path",{d:"M86.18 21.526a1.4 1.4 0 01.306-.202c.201-.115.496-.28.864-.479.72-.403 1.757-.943 2.88-1.53l.147-.075v.169c-1.137-.493-2.16-.943-2.88-1.278-.36-.166-.662-.302-.864-.403-.108-.042-.21-.1-.302-.17.115.018.227.053.331.105.212.08.511.198.886.36.745.302 1.77.72 2.909 1.224a.094.094 0 01.053.085.094.094 0 01-.053.084l-.148.076c-1.13.587-2.16 1.112-2.912 1.48-.36.187-.68.33-.893.428-.102.056-.211.099-.324.126zM102.018 21.065a7.926 7.926 0 01-1.17-.497c-.72-.327-1.699-.795-2.779-1.321a.095.095 0 01-.053-.085.095.095 0 01.053-.084l.047-.022c1.112-.49 2.124-.921 2.858-1.224a8.364 8.364 0 011.21-.457c-.372.218-.758.41-1.156.576-.72.338-1.724.788-2.836 1.278l-.047.022v-.17c1.08.53 2.052 1.016 2.754 1.372a8.96 8.96 0 011.119.612zM83.797 24.84l20.977-.082s-1.375 9.695-10.13 9.871c-8.756.176-10.847-9.788-10.847-9.788z",fill:"#263238"}),J__namespace.createElement("path",{d:"M102.44 30.361c-1.843-2.44-5.011-3.675-8.068-3.6-3.056.076-5.994 1.343-8.481 3.118 0 0 2.757 4.867 8.751 4.744 5.994-.122 7.798-4.262 7.798-4.262z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M83.797 24.84c.016.043.03.086.04.13.026.093.062.213.108.36a17.182 17.182 0 001.537 3.6 13.24 13.24 0 001.879 2.549c.424.444.884.852 1.375 1.22.54.39 1.116.726 1.72 1.004a9.423 9.423 0 002.035.63c.743.14 1.498.196 2.254.17a9.615 9.615 0 004.63-1.282 10.298 10.298 0 003.57-3.7 14.815 14.815 0 001.739-4.77l.094.104H83.797a.416.416 0 01.097 0H85.367l4.395-.044 15.012-.104a.09.09 0 01.09.09 15.036 15.036 0 01-1.76 4.828 10.483 10.483 0 01-3.636 3.787 9.791 9.791 0 01-4.72 1.296 10.654 10.654 0 01-2.29-.18 9.745 9.745 0 01-2.066-.652 9.952 9.952 0 01-1.742-1.03c-.496-.375-.959-.79-1.386-1.241a13.286 13.286 0 01-1.872-2.592 16.378 16.378 0 01-1.008-2.19 14.89 14.89 0 01-.468-1.44 8.906 8.906 0 01-.09-.384.647.647 0 01-.03-.159z",fill:"#263238"}),J__namespace.createElement("path",{d:"M84.292 35.012a1.192 1.192 0 01-.177-.14c-.108-.102-.277-.238-.468-.436a13.53 13.53 0 01-1.523-1.8 14.464 14.464 0 01-1.242-14.807c.343-.708.745-1.385 1.203-2.023.158-.23.302-.393.392-.508a.83.83 0 01.148-.17 1.216 1.216 0 01-.119.192c-.08.122-.212.291-.36.525a15.735 15.735 0 00-1.145 2.042 14.68 14.68 0 001.224 14.673c.442.645.931 1.255 1.465 1.825.184.206.36.36.443.458.06.048.114.105.159.169zM85.499 12.895c.018.05-.4.205-.82.532-.422.328-.681.68-.72.652-.04-.029.157-.454.615-.8a1.44 1.44 0 01.925-.384zM106.767 32.356c-.022-.022.227-.324.565-.857a9.311 9.311 0 001.458-4.637c.025-.63 0-1.022.025-1.026.026-.004.033.094.058.274.034.249.051.5.05.752a8.144 8.144 0 01-1.479 4.709 5.812 5.812 0 01-.472.594c-.122.13-.194.198-.205.19z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M141.592 57.882s0-.072-.022-.209c-.021-.136-.021-.36-.039-.619 0-.133-.018-.288-.029-.453-.011-.166-.05-.36-.083-.54a9.168 9.168 0 00-.27-1.343 12.301 12.301 0 00-1.44-3.442 12.957 12.957 0 00-8.723-6.077c-.539-.099-1.086-.161-1.634-.187-.277 0-.558-.036-.839-.032l-.857.043c-.14 0-.288 0-.428.029l-.432.065c-.288.05-.58.083-.868.14a14.4 14.4 0 00-3.402 1.246c-.273.147-.536.32-.802.482a6.047 6.047 0 00-.782.537 14.89 14.89 0 00-1.461 1.242c-.455.468-.877.967-1.264 1.493l-.299.4-.259.421-.259.429c-.091.14-.171.286-.238.439-.147.302-.291.605-.439.91-.147.307-.234.634-.36.955-.888 2.64-.888 5.499 0 8.14.115.32.231.636.36.953.13.317.292.609.436.911.069.153.149.3.241.44l.259.428.259.424.303.41c.387.528.809 1.029 1.263 1.499.46.445.949.86 1.462 1.241.245.199.505.378.778.537.27.162.532.335.806.482.543.279 1.105.52 1.681.72a13.73 13.73 0 001.721.504c.288.061.58.094.868.144l.432.065c.144 0 .288 0 .428.029l.857.043c.281 0 .561-.022.842-.032a12.084 12.084 0 001.631-.188 12.832 12.832 0 005.436-2.412 12.95 12.95 0 003.29-3.664 12.33 12.33 0 001.44-3.446c.123-.439.215-.886.274-1.339.029-.194.065-.36.079-.54.015-.18.022-.32.029-.453.018-.267.032-.472.04-.62.007-.147.021-.208.021-.208v.209c0 .136 0 .36-.021.619 0 .136 0 .288-.022.457l-.072.544a9.384 9.384 0 01-.256 1.35 12.394 12.394 0 01-1.418 3.48 13.074 13.074 0 01-10.429 6.38c-.281 0-.565.036-.853.032l-.864-.04c-.144 0-.292 0-.436-.028l-.436-.065c-.291-.05-.586-.083-.882-.144-.591-.13-1.173-.3-1.742-.508a13.652 13.652 0 01-1.706-.745c-.278-.15-.544-.324-.818-.486a6.862 6.862 0 01-.788-.543 11.865 11.865 0 01-2.768-2.776l-.303-.4-.284-.417-.267-.432a3.716 3.716 0 01-.241-.447l-.443-.921-.36-.972a12.97 12.97 0 010-8.255c.119-.324.238-.648.36-.968l.447-.922c.068-.156.15-.305.245-.446l.262-.436.263-.428.303-.404a11.761 11.761 0 012.768-2.772c.249-.2.512-.382.788-.543.274-.162.54-.335.818-.486a13.681 13.681 0 011.706-.745 13.525 13.525 0 011.742-.508c.296-.061.591-.093.882-.144l.436-.065c.144 0 .292 0 .436-.029l.864-.04c.288 0 .572.023.853.033.554.03 1.106.095 1.652.198a13.036 13.036 0 018.784 6.174 12.3 12.3 0 011.422 3.481c.118.443.203.893.256 1.347.025.198.057.382.072.547.014.166 0 .32.021.457 0 .267.008.472.022.616.004.122 0 .194 0 .194z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M126.026 54.843h.738s1.44-2.466 1.389-3.122c-.05-.655-.36-2.25 0-2.7.36-.45 2.585-.194 2.826 1.275.199 1.507.293 3.026.281 4.547h4.68a1.246 1.246 0 011.203.853c.043.144.058.296.043.446 0 0-.054 1.105-1.08 1.145a1.376 1.376 0 01.327 1.022c0 .738-.921 1.005-.921 1.005a.98.98 0 01.576 1.004c0 .817-.882 1.145-.882 1.145.23.365.324.8.266 1.228-.083.756-.932.932-.932.932h-8.532l.018-8.78zM124.602 54.844h-2.293a.918.918 0 00-.918.918v6.944c0 .507.411.918.918.918h2.293a.918.918 0 00.918-.918v-6.944a.918.918 0 00-.918-.918z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M103.401 67.71a4.658 4.658 0 012.373-2.236 3.136 3.136 0 013.135.472 2.38 2.38 0 01.472 3.013 3.287 3.287 0 11-1.343 5.84 2.453 2.453 0 01-3.917 1.44c-1.656-1.297-1.278-4.32-3.121-5.333",fill:"#263238"}),J__namespace.createElement("path",{d:"M102.119 72.573a6.476 6.476 0 001.703-5.454 1.356 1.356 0 010-.803c.209-.432.882-.446 1.242-.126.334.355.529.82.547 1.307a8.612 8.612 0 01-.36 3.802 3.863 3.863 0 01-.72 1.35 1.843 1.843 0 01-1.336.666 1.08 1.08 0 01-1.101-.742",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M101.009 53.672c-.688-1.908-3.96-3.542-5.739-4.496-2.675-1.422-5.101-1.037-6.555.36-2.79-2.186-6.43-4.252-9.825-3.24-3.395 1.011-6.059 4.604-5.31 8.064.436 2.04 1.919 3.834 1.904 5.922 0 1.422-.72 2.728-1.274 4.039-.554 1.31-.968 2.826-.389 4.125.54 1.21 1.8 1.934 2.52 3.053.573.911.738 2.016 1.12 3.024 1.415 3.737 5.947 5.706 9.864 4.91 3.917-.795 7.096-3.87 8.838-7.466 1.742-3.596 2.221-7.671 2.304-11.667",fill:"#263238"}),J__namespace.createElement("path",{d:"M86.318 52.895A6.48 6.48 0 0079 58.68c-.42 4.363-.777 9.846-.36 13.172.825 6.48 5.76 7.463 5.76 7.463s-.04 2.412-.093 5.227a6.999 6.999 0 0013.43 2.883c.376-.88.568-1.826.563-2.782l-.148-28.123",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M84.375 79.316c3.056.087 6.08-.645 8.759-2.12 0 0-2.322 4.525-8.759 3.71v-1.59z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M88.425 59.342c.083.245.976.159 2.016.317s1.88.468 2.023.255c.065-.1-.072-.334-.406-.58a3.405 3.405 0 00-1.487-.572 3.36 3.36 0 00-1.591.137c-.39.14-.587.328-.555.443zM80.208 59.832c.15.209.77.018 1.508.032.738.015 1.36.177 1.509-.028.068-.105-.026-.31-.292-.508a2.181 2.181 0 00-2.434 0c-.266.198-.356.403-.291.504z",fill:"#263238"}),J__namespace.createElement("path",{d:"M88.203 66.616a.238.238 0 00.41.16.238.238 0 00-.272-.38.233.233 0 00-.138.22zM81.502 65.687a.23.23 0 00.241.227.233.233 0 00.23-.241.239.239 0 00-.235-.267.238.238 0 00-.236.267v.014zM80.203 66.347a.238.238 0 00.245.226.237.237 0 000-.471.236.236 0 00-.245.245zM79.774 65.366a.238.238 0 10.226-.24.236.236 0 00-.211.15.233.233 0 00-.015.09zM89.313 67.628a.237.237 0 10.474 0 .237.237 0 00-.475 0zM90.164 66.644a.238.238 0 10.475 0 .238.238 0 00-.475 0z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M86.62 51.885a13.784 13.784 0 009.69 11.002c-1.515 2.344-.36 6.667-.287 10.303.075 3.384.108 4.35 2.358 6.002 1.825.36 2.703-4.62 4.003-6.049 1.3-1.429 2.52-3.182 2.365-5.108-.079-.9-.461-1.75-.54-2.65-.086-.997.202-1.987.36-2.977.637-4.388-1.778-9-5.655-11.16-3.877-2.16-8.943-1.828-12.633.63",fill:"#263238"}),J__namespace.createElement("path",{d:"M104.051 64.905c.057-.058.108-.12.155-.187.131-.195.226-.412.277-.641a3.733 3.733 0 00-.457-2.488 4.96 4.96 0 00-1.08-1.404 9.826 9.826 0 00-1.588-1.267 8.338 8.338 0 00-2.041-.936c-.745-.227-1.534-.4-2.336-.572-.803-.173-1.588-.342-2.322-.573-.71-.219-1.4-.492-2.067-.817a15.04 15.04 0 01-4.936-3.863c-.194-.227-.338-.414-.435-.536a1.23 1.23 0 00-.159-.187c.04.071.084.14.134.205a13.913 13.913 0 002.182 2.401 14.84 14.84 0 003.153 2.102c.672.332 1.368.61 2.084.832.742.238 1.53.407 2.333.583.803.177 1.588.339 2.326.562a8.202 8.202 0 012.027.921 9.85 9.85 0 011.58 1.239c.439.387.805.85 1.08 1.368.437.729.612 1.584.497 2.426a2.274 2.274 0 01-.407.832z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M87.063 51.434c.042.056.09.109.14.158a16.97 16.97 0 002.113 1.868 11.401 11.401 0 002.88 1.606c.619.206 1.255.356 1.9.446.667.112 1.362.191 2.07.274 1.339.116 2.664.348 3.961.695a8.622 8.622 0 012.88 1.476 5.614 5.614 0 011.44 1.652 5.2 5.2 0 01.255.544 1.1 1.1 0 00.087.19 1.09 1.09 0 00-.061-.201 4.012 4.012 0 00-.231-.558 5.347 5.347 0 00-1.411-1.71 8.528 8.528 0 00-2.912-1.523c-1.296-.36-2.621-.6-3.96-.72-.72-.083-1.4-.165-2.063-.27a11.172 11.172 0 01-1.876-.432 11.83 11.83 0 01-2.858-1.562 20.916 20.916 0 01-1.71-1.397l-.443-.41a1.313 1.313 0 00-.201-.126z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M79.664 46.052c0 .036.555.036 1.44.234.236.053.47.12.698.198.252.076.504.187.778.299.579.263 1.13.584 1.645.957a9.36 9.36 0 011.394 1.296c.181.21.352.43.51.66.145.194.276.399.393.611.443.77.605 1.303.637 1.293a1.716 1.716 0 00-.111-.36 3.246 3.246 0 00-.166-.425 5.78 5.78 0 00-.266-.547 5.927 5.927 0 00-.385-.627 7.192 7.192 0 00-.508-.677 8.32 8.32 0 00-3.089-2.293 7.973 7.973 0 00-.796-.288 5.35 5.35 0 00-.72-.183 4.85 4.85 0 00-.597-.098 2.812 2.812 0 00-.457-.036 1.793 1.793 0 00-.4-.014zM75.906 70.739l-.044-.058-.14-.151c-.126-.137-.31-.331-.522-.605a3.535 3.535 0 01-.609-1.08 1.89 1.89 0 01-.082-.763c.03-.287.12-.566.263-.817.367-.565.775-1.103 1.22-1.61a9.001 9.001 0 001.145-2.044 9.127 9.127 0 00.623-2.52c.057-.924.05-1.85-.026-2.772a9.648 9.648 0 01.162-2.733 5.4 5.4 0 011.156-2.239 5.506 5.506 0 011.8-1.404 5.184 5.184 0 011.93-.515 5.76 5.76 0 012.84.526c.24.114.472.244.695.389l.173.115c.04.025.06.036.06.032a4.055 4.055 0 00-.903-.586 5.663 5.663 0 00-2.88-.58 5.373 5.373 0 00-1.976.508 5.709 5.709 0 00-3.05 3.718 9.843 9.843 0 00-.165 2.772c.074.917.084 1.837.029 2.754a9.14 9.14 0 01-1.725 4.493 14.688 14.688 0 00-1.213 1.635 2.221 2.221 0 00-.263.86c-.02.269.013.54.097.796.146.401.363.773.641 1.098.173.212.36.412.558.6l.151.145a.241.241 0 00.055.036z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M103.729 65.273s.022 0 .069-.032l.19-.112c.246-.148.477-.318.692-.507a5.975 5.975 0 001.742-2.607 5.92 5.92 0 00-2.239-6.653 8.279 8.279 0 00-2.707-1.213 14.908 14.908 0 00-2.938-.435c-.957-.058-1.883-.072-2.761-.101a23.57 23.57 0 01-2.477-.198 10.87 10.87 0 01-2.077-.497 7.464 7.464 0 01-2.686-1.566 6.325 6.325 0 01-.569-.634l-.136-.176a.355.355 0 00-.05-.058c.199.333.44.638.72.908a7.295 7.295 0 002.689 1.623c.688.242 1.398.416 2.12.519.826.115 1.657.184 2.491.208 1.753.083 3.704.033 5.663.548a8.101 8.101 0 012.664 1.188 5.73 5.73 0 011.8 2.023 5.79 5.79 0 01.417 4.478 6.052 6.052 0 01-1.677 2.596c-.212.19-.435.365-.67.525l-.183.126a.216.216 0 00-.087.047zM80.216 63.796c.097.111.72-.36 1.62-.32.9.039 1.53.475 1.63.36.047-.047-.053-.245-.33-.458a2.257 2.257 0 00-1.304-.428 2.178 2.178 0 00-1.292.389c-.277.216-.375.406-.324.457zM89.285 63.944c.1.108.738-.36 1.623-.324.886.036 1.53.479 1.631.36.047-.047-.054-.241-.335-.454a2.26 2.26 0 00-1.3-.432 2.16 2.16 0 00-1.295.393c-.274.212-.371.407-.324.457zM85.931 69.298c0-.05-.543-.155-1.44-.288-.227-.03-.443-.076-.475-.234-.016-.234.04-.466.162-.666.227-.548.46-1.116.72-1.714.98-2.44 1.696-4.45 1.595-4.49-.101-.039-.972 1.909-1.951 4.35-.238.6-.461 1.177-.677 1.724a1.325 1.325 0 00-.137.89.576.576 0 00.36.338c.126.035.255.056.385.06.897.066 1.454.08 1.458.03z",fill:"#263238"}),J__namespace.createElement("path",{d:"M86.272 71.447a1.587 1.587 0 011.44-.565 1.44 1.44 0 011.001.561.925.925 0 01.047 1.059 1.08 1.08 0 01-1.17.27 3.29 3.29 0 01-1.12-.699 1.024 1.024 0 01-.248-.266.298.298 0 010-.331",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M88.534 69.965c-.144 0-.166.954-1.005 1.62-.839.666-1.865.544-1.872.677-.018.06.223.194.655.212a2.387 2.387 0 001.563-.508c.427-.334.708-.822.781-1.36.04-.407-.058-.645-.122-.641zM81.033 130.221l-9.853 3.34-.792 2.466s-27.49-9.896-29.441-10.936c-1.951-1.041-12.01-3.338-15.315 4.924-2.79 6.948 2.754 13.914 11.596 17.813 8.842 3.899 26.006 5.591 26.006 5.591l11.294 1.955 24.98.327A24.943 24.943 0 00118.743 147c3.938-4.59 8.006-9.785 8.777-12.495 1.501-5.267.144-12.093-7.708-12.752-7.852-.658-20.585 8.313-20.585 8.313l-4.835-1.325-13.36 1.48z",fill:"#263238"}),J__namespace.createElement("path",{d:"M80.26 146.24a1.22 1.22 0 01.04-.169.761.761 0 00-.058-.49c-.188-.414-.81-.785-1.646-.997a103.554 103.554 0 01-7.268-3.258c-3.02-1.501-6.527-3.384-10.275-5.4-2.71-1.44-5.295-2.826-7.69-3.989-2.393-1.163-4.578-2.16-6.45-2.88-.468-.187-.911-.36-1.336-.536l-1.202-.439-1.037-.4-.89-.288-1.234-.403-.317-.112-.108-.043.112.025.324.094 1.245.36.897.277 1.055.36 1.21.425c.428.158.87.36 1.338.522 1.883.72 4.075 1.71 6.48 2.88 2.405 1.17 4.993 2.52 7.704 3.981 3.748 2.016 7.24 3.917 10.253 5.418a128.1 128.1 0 007.233 3.32c.846.23 1.48.619 1.666 1.062.07.162.084.344.036.514a.8.8 0 01-.082.166zM117.028 123.48l-.111.018-.328.043c-.42.034-.837.103-1.246.205a14.374 14.374 0 00-4.273 1.782 21.884 21.884 0 00-2.624 1.847 27.953 27.953 0 00-2.711 2.495 82.95 82.95 0 01-6.04 5.951 47.317 47.317 0 01-3.41 2.775 14.524 14.524 0 01-3.564 2.027c-1.19.336-2.404.577-3.633.72a18.76 18.76 0 00-3.135.67 9.298 9.298 0 00-2.38 1.13 4.175 4.175 0 00-1.342 1.44c-.198.371-.32.777-.36 1.195v.328a.41.41 0 010 .115.477.477 0 010-.112v-.331c.027-.427.14-.844.33-1.227.322-.6.785-1.112 1.35-1.491a9.288 9.288 0 012.395-1.17 18.795 18.795 0 013.153-.698 22.775 22.775 0 003.6-.742 14.551 14.551 0 003.51-2.012c1.141-.832 2.268-1.771 3.395-2.765a88.194 88.194 0 006.041-5.929 27.79 27.79 0 012.736-2.499 21.64 21.64 0 012.657-1.836 14.032 14.032 0 014.32-1.742c.414-.094.836-.15 1.26-.169l.331-.025.079.007zM82.869 143.279a2.606 2.606 0 01-.162-.46 4.238 4.238 0 01-.13-.562c-.051-.249-.09-.5-.115-.752a15.038 15.038 0 01-.083-1.98 22.16 22.16 0 01.198-2.416 17.94 17.94 0 011.077-4.27c.119-.255.216-.493.324-.691.108-.198.201-.36.295-.497.09-.136.193-.263.31-.378a2.327 2.327 0 01-.249.418c-.079.133-.158.31-.263.504-.104.194-.183.439-.295.691a20.506 20.506 0 00-1.015 4.245 24.972 24.972 0 00-.209 2.394c-.022.654-.007 1.309.043 1.962.087 1.123.31 1.792.274 1.792z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M80.254 146.242s18.605 4.68 19.35 4.943c1.123.36 1.03 4.45-.72 4.424-.82 0-14.188.821-15.88.756-1.692-.064-6.285-1.764-6.285-1.764l2.815-6.642.72-1.717z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M88.12 153.122c.093 0 .194-.968.77-2.001.576-1.033 1.328-1.66 1.267-1.732-.061-.072-.94.472-1.54 1.581-.602 1.108-.577 2.163-.498 2.152zM86.175 152.279c.09 0 .259-.864.72-1.84.46-.975 1.037-1.667.968-1.728-.068-.061-.76.562-1.245 1.595-.486 1.033-.526 1.973-.443 1.973zM84.353 151.849c.094 0 0-.929.389-1.962.388-1.033 1.033-1.685.965-1.749-.069-.065-.854.518-1.257 1.645-.403 1.127-.173 2.095-.097 2.066z",fill:"#263238"}),J__namespace.createElement("path",{d:"M84.626 149.455a3.3 3.3 0 00.165-1.378 6.53 6.53 0 00-.514-2.358 1.082 1.082 0 00-.306-.447.497.497 0 00-.634.047.794.794 0 00-.234.529 3.206 3.206 0 000 .49c.012.304.056.606.133.9.136.492.338.963.602 1.4.216.41.506.776.856 1.08.043-.029-.277-.453-.662-1.199a6.064 6.064 0 01-.519-1.364 4.18 4.18 0 01-.108-.842c0-.285 0-.638.155-.778a.174.174 0 01.116-.062.169.169 0 01.126.037c.096.086.169.195.212.317a7.088 7.088 0 01.576 2.25c.057.846-.014 1.371.036 1.378z",fill:"#263238"}),J__namespace.createElement("path",{d:"M84.605 149.264a2.566 2.566 0 00-1.195-.165 5.3 5.3 0 00-1.307.191c-.263.061-.517.16-.752.295a.781.781 0 00-.396.853.921.921 0 00.68.644c.274.062.558.055.828-.018.435-.121.84-.332 1.188-.619.333-.234.618-.528.843-.867-.34.206-.666.437-.972.691-.338.242-.72.417-1.124.515-.224.055-.459.055-.683 0a.626.626 0 01-.461-.429.48.48 0 01.262-.522c.209-.122.433-.215.666-.277a6.008 6.008 0 011.239-.245c.723-.061 1.177.004 1.184-.047zM90.965 153.256c.093 0-.018-.8.327-1.674.346-.875.933-1.397.871-1.469-.06-.072-.795.381-1.159 1.357-.363.976-.111 1.822-.04 1.786zM78.086 154.404c.23.128.47.234.72.317.677.245 1.37.444 2.073.594 2.328.454 4.702.624 7.07.508 2.773-.094 5.264-.278 7.075-.389l2.138-.162c.265-.008.528-.043.785-.105a4.03 4.03 0 00-.792 0l-2.142.065-7.07.299a33.203 33.203 0 01-7.02-.414c-1.772-.342-2.816-.774-2.837-.713z",fill:"#263238"}),J__namespace.createElement("path",{d:"M77.54 154.838c.028.043.525-.267 1.37-.659a6.483 6.483 0 013.486-.663c1.396.184 2.408 1.098 3.063 1.732.335.384.696.745 1.08 1.08a5.64 5.64 0 00-.932-1.217 7.136 7.136 0 00-1.253-1.119 4.386 4.386 0 00-1.926-.767 6.122 6.122 0 00-3.625.77 4.953 4.953 0 00-1.264.843zM96.114 155.211c.032-.021-.13-.262-.288-.691a3.55 3.55 0 01-.173-1.735c.101-.583.349-1.13.72-1.591.284-.36.514-.537.49-.569-.246.092-.461.249-.623.454a3.15 3.15 0 00-.566 3.51c.198.435.418.64.44.622z",fill:"#263238"}),J__namespace.createElement("path",{d:"M124.017 138.707a1.59 1.59 0 01-.162.252l-.5.698c-.223.299-.483.677-.81 1.08l-1.152 1.39c-.429.511-.947 1.026-1.48 1.606-.533.579-1.166 1.126-1.8 1.742a40.526 40.526 0 01-4.554 3.499 38.043 38.043 0 01-5.04 2.776 33.114 33.114 0 01-4.392 1.609c-.641.187-1.235.313-1.749.432-.515.119-.972.18-1.34.234l-.856.09c-.195.018-.3.025-.3.022.097-.03.196-.049.296-.058l.85-.126c.36-.065.81-.162 1.328-.263s1.098-.266 1.735-.457a34.063 34.063 0 004.371-1.642c1.73-.801 3.4-1.728 4.996-2.772a42.236 42.236 0 004.54-3.474c.634-.608 1.264-1.159 1.8-1.724s1.058-1.08 1.494-1.584l1.166-1.364c.335-.407.602-.778.836-1.08l.525-.677c.061-.074.127-.144.198-.209zM76.529 143.963c-.025 0-.32-.45-.842-1.163a22.526 22.526 0 00-2.243-2.624 22.913 22.913 0 00-2.625-2.24c-.72-.522-1.177-.813-1.162-.838a1.5 1.5 0 01.36.172c.22.119.525.31.896.558a18.59 18.59 0 012.66 2.211 17.953 17.953 0 012.218 2.678c.252.36.443.673.562.893.074.109.133.228.176.353zM99.002 133.66c0 .029-.407.295-1.048.785a16.138 16.138 0 00-2.286 2.16 15.984 15.984 0 00-1.8 2.563c-.4.699-.605 1.156-.634 1.141.023-.115.06-.228.112-.334a9.38 9.38 0 01.407-.872 13.552 13.552 0 014.136-4.752c.335-.234.612-.41.81-.522.093-.069.195-.126.303-.169z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M103.707 127.964c5.018-4.014 14.457-5.922 14.457-5.922s-.529-18.317-1.962-26.733a34.572 34.572 0 00-.111-.602c-1.289-6.48-7.042-10.4-13.598-11.31l-4.438-.624-13.119.476-8.01 2.433s-9.472 2.12-10.912 15.415c-1.44 13.036-3.131 23.807-2.88 27.641.188 2.711 2.69 4.641 4.076 4.957 1.256.285 2.85.555 4.208-.266a6.932 6.932 0 00-.882 2.52h8.01l6.275-5.519 5.735 4.115 7.682-3.24 5.278-3.6m-27.173-.263v-.05c.893-4.417 1-5.713 1-5.713s-4.715-.594-3.96-6.873l.72-5.432 4.706 15.818s-1.07.882-2.466 2.25z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M92.987 121.345l1.465-3.705c-1.62-.691-2.2-.72-3.96-.929a19.022 19.022 0 00-13.32 3.478l.965 2.786h.036a4.826 4.826 0 002.21.022 3.988 3.988 0 011.868-.158c.803.198 1.38.892 2.1 1.299a3.273 3.273 0 004.32-1.238c.334-.612.64-1.462 1.335-1.44.342.049.656.216.89.471l2.49 2.186c.998.874 1.995 1.753 3.064 2.541 1.256.925 2.7 1.757 4.259 1.707a1.626 1.626 0 001.627-1.541l-9.35-5.479z",fill:"#050910",opacity:.2}),J__namespace.createElement("path",{d:"M84.325 82.797l-.23 3.777a9.152 9.152 0 00.59 3.83l4.615 12.021s-.72-7.017 2.258-9.605c2.977-2.588 6.678-2.33 6.728-6.332v-5.04l-6.372-1.26-7.589 2.61z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M107.922 84.773a1.149 1.149 0 01-.241.134c-.233.118-.458.25-.677.392a7.015 7.015 0 00-1.962 2.077 8.669 8.669 0 00-1.271 4.021c-.014.842.026 1.684.119 2.52l.256 2.715a277.705 277.705 0 001.501 12.38l.115.778c.02.09.031.181.032.273a1.422 1.422 0 01-.068-.266c-.04-.176-.086-.439-.151-.774a78.497 78.497 0 01-.461-2.88c-.36-2.423-.778-5.782-1.156-9.5-.093-.93-.18-1.836-.252-2.715a20.088 20.088 0 01-.108-2.549 8.614 8.614 0 011.332-4.078 6.795 6.795 0 012.034-2.07c.224-.14.459-.26.702-.36.082-.04.168-.073.256-.098zM106.235 128.878s-.026 0-.072-.021l-.206-.09c-.18-.08-.446-.198-.781-.36-.677-.328-1.641-.843-2.833-1.502-2.39-1.317-5.684-3.24-9.4-5.486l-.068-.04.032-.075 1.336-3.204a149.7 149.7 0 001.296-3.24c.205-.526.4-1.044.58-1.555.09-.252.18-.508.255-.76.04-.126.076-.252.108-.36 0-.065.029-.126.04-.187a.718.718 0 000-.083v-.032s.018.025.032.021l.061-.162c1.61.72 3.042 1.494 4.32 2.193 1.278.698 2.387 1.328 3.32 1.825.932.497 1.681.878 2.196 1.134l.594.284.201.108a1.3 1.3 0 01-.216-.079c-.137-.058-.342-.144-.601-.263a54.064 54.064 0 01-2.225-1.08c-.939-.479-2.063-1.101-3.341-1.8a60.33 60.33 0 00-4.32-2.16l.065-.162c.027.011.05.03.065.054a.272.272 0 010 .051.427.427 0 010 .064c.002.038.002.075 0 .112 0 .068-.025.133-.04.198-.032.133-.072.259-.108.389-.079.255-.165.511-.255.767-.184.514-.36 1.033-.58 1.558a163.1 163.1 0 01-1.296 3.24c-.453 1.106-.907 2.16-1.339 3.204l-.036-.115c3.708 2.254 6.991 4.194 9.36 5.541a93.259 93.259 0 002.804 1.548c.332.18.591.306.767.396l.198.1.087.029zM73.986 109.355a2.463 2.463 0 01-.13-.518 25.246 25.246 0 01-.255-1.44 39.498 39.498 0 01-.274-9.58c.061-.612.119-1.105.173-1.44.016-.178.05-.354.1-.525.005.178-.005.356-.028.532-.029.342-.068.836-.112 1.44a49.115 49.115 0 00-.1 4.785c.054 1.868.216 3.553.36 4.766.079.609.147 1.098.198 1.44.036.178.06.359.068.54zM73.217 112.375c-.1.16-.213.312-.338.454l-.972 1.191-3.24 3.917-3.204 3.935-.976 1.188c-.114.15-.24.291-.378.421.092-.166.199-.323.32-.468.217-.292.534-.72.93-1.224.795-1.03 1.908-2.437 3.164-3.96a215.111 215.111 0 013.265-3.884c.425-.49.774-.886 1.015-1.152.125-.152.264-.292.414-.418zM76.823 124.027c.018.151.018.303 0 .454-.01.177-.03.354-.061.529-.036.205-.062.443-.13.695-.13.599-.31 1.187-.536 1.757-.285.698-.63 1.37-1.03 2.009a13.19 13.19 0 01-1.386 1.774c-.424.445-.883.855-1.372 1.228-.201.166-.403.288-.576.407a5.27 5.27 0 01-.453.281 2.63 2.63 0 01-.403.205c-.022-.033.543-.36 1.35-.997.47-.383.915-.798 1.328-1.242.498-.55.95-1.139 1.354-1.761.395-.627.738-1.286 1.026-1.969.23-.56.422-1.135.572-1.721.234-1.008.284-1.652.317-1.649zM99.041 82.336c.05.08.094.163.134.248.079.166.209.407.36.72.373.918.647 1.872.817 2.848.24 1.454.251 2.938.032 4.395a13.847 13.847 0 01-1.775 5.07l-.529.816-.583.764-.047.064-.072-.043a5.192 5.192 0 00-6.141.66 5.33 5.33 0 00-1.869 3.639c-.057.587-.043.911-.06.911a1.676 1.676 0 01-.019-.234v-.681c.053-.848.3-1.673.72-2.412.303-.51.683-.968 1.127-1.36a5.582 5.582 0 011.732-1.08 5.336 5.336 0 014.604.395l-.122.022.558-.742c.176-.263.36-.536.522-.806a14.01 14.01 0 001.767-5.004c.222-1.44.222-2.905 0-4.345a14.718 14.718 0 00-.752-2.844c-.126-.324-.245-.57-.31-.72a1.431 1.431 0 01-.094-.281zM88.559 100.824a.917.917 0 01-.115-.206l-.3-.597c-.255-.522-.611-1.285-1.08-2.207a14.154 14.154 0 00-2.026-2.999 6.48 6.48 0 00-1.674-1.292 5.472 5.472 0 00-2.182-.572c-.313 0-.619 0-.907.021h-.119v-.108a25.74 25.74 0 011.015-4.04c.35-1.065.76-2.11 1.224-3.131.316-.685.676-1.347 1.08-1.984.14-.223.26-.389.36-.5a.912.912 0 01.134-.162c.018 0-.159.245-.421.702a19.665 19.665 0 00-1.005 1.998 32.957 32.957 0 00-1.18 3.132 26.176 26.176 0 00-1.02 4.003l-.1-.108c.295 0 .612-.029.932-.022.787.041 1.556.243 2.26.595.642.349 1.22.801 1.715 1.339a13.78 13.78 0 012.02 3.06c.467.928.805 1.699 1.04 2.232.111.252.197.457.266.615.036.074.063.151.083.231z",fill:"#263238"}),J__namespace.createElement("path",{d:"M89.3 102.198c.404-1.264.907-1.714 1.595-2.373a3.553 3.553 0 012.567-1.08c.8.047 1.551.454 2.35.468.933.022 1.8-.493 2.5-1.105a9.085 9.085 0 002.184-10.483 14.227 14.227 0 01-3.132 9.54 5.44 5.44 0 00-5.519.13A5.626 5.626 0 0089.3 102.2",fill:"#050910",opacity:.2}),J__namespace.createElement("path",{d:"M105.729 109.699c.047.164.08.331.098.501.05.36.115.82.194 1.371.155 1.163.36 2.765.569 4.54.039.335.079.662.115.979l-.072-.079a10.21 10.21 0 013.6 1.533c.322.22.629.46.918.72.111.088.211.188.299.299-.022.025-.457-.381-1.282-.907a10.948 10.948 0 00-3.571-1.44h-.065v-.065a327.25 327.25 0 01-.633-5.522c-.054-.555-.101-1.019-.137-1.379a2.676 2.676 0 01-.033-.551zM94.432 126.019a1.12 1.12 0 01-.187.058l-.544.137c-.475.108-1.17.241-2.034.36a25.666 25.666 0 01-10.458-.828c-.55-.177-1.08-.324-1.555-.529a2.529 2.529 0 01-1.123-.9 3.557 3.557 0 01-.486-1.08 6.415 6.415 0 01-.173-.875c-.036-.241-.05-.429-.061-.558a.795.795 0 010-.195s.05.263.136.742c.05.289.118.576.202.857.107.37.274.72.493 1.037a2.38 2.38 0 001.08.831c.465.191.994.339 1.541.504 1.192.345 2.407.605 3.636.778 2.239.309 4.507.339 6.754.09.86-.097 1.555-.213 2.03-.299l.55-.101a.698.698 0 01.199-.029z",fill:"#263238"}),J__namespace.createElement("path",{d:"M86.913 126.598c0 .032-.249.104-.609.313a3.536 3.536 0 00-1.699 2.653c-.04.418 0 .68-.029.688a1.486 1.486 0 01-.1-.695 3.237 3.237 0 011.763-2.761c.205-.12.436-.188.674-.198zM88.696 102.121c.024.081.038.164.043.248.022.184.047.425.083.72.065.627.151 1.534.23 2.661.159 2.246.281 5.364.198 8.805a103.108 103.108 0 01-.234 4.846 19.938 19.938 0 01-.594 3.92 8.038 8.038 0 01-1.108 2.434 5.636 5.636 0 01-.461.565 1.561 1.561 0 01-.18.18c-.018 0 .23-.266.58-.785a8.385 8.385 0 001.04-2.426c.308-1.279.493-2.584.55-3.899.101-1.487.177-3.121.22-4.838.083-3.435 0-6.549-.144-8.795-.061-1.127-.126-2.034-.169-2.664-.022-.299-.036-.54-.05-.72a1.326 1.326 0 01-.004-.252z",fill:"#263238"}),J__namespace.createElement("path",{d:"M72.383 100.189c-.999.171-2.008.282-3.02.332a23.665 23.665 0 01-3.035.144c1-.171 2.008-.281 3.02-.331a25.424 25.424 0 013.035-.145zM88.552 106.559c-.193.056-.39.093-.59.112-.378.065-.932.126-1.62.18a24.48 24.48 0 01-2.423.054 27.141 27.141 0 01-2.959-.245c-.98-.143-1.95-.339-2.909-.587a28.678 28.678 0 01-2.31-.72 17.373 17.373 0 01-1.51-.622 3.71 3.71 0 01-.536-.274c.193.055.382.124.566.205.36.148.874.342 1.522.565.648.224 1.44.465 2.311.688.872.223 1.858.421 2.88.569 1.023.147 2.034.223 2.938.263.904.039 1.724.018 2.408-.018a29.794 29.794 0 001.624-.119c.201-.031.405-.048.608-.051zM103.717 101.16a3.679 3.679 0 01-.515.324c-.335.202-.835.472-1.465.778-.63.306-1.397.641-2.265.968-1.889.697-3.85 1.18-5.846 1.44a25.83 25.83 0 01-2.455.209 19.16 19.16 0 01-1.66 0 3.502 3.502 0 01-.605-.047c.2-.023.403-.032.605-.025.392 0 .958-.022 1.652-.065a32.81 32.81 0 002.438-.248c.91-.126 1.911-.321 2.945-.576a32.916 32.916 0 002.88-.871 24.578 24.578 0 002.267-.926 35.45 35.45 0 001.491-.72c.172-.093.35-.173.533-.241zM115.752 93.68a2.154 2.154 0 01-.478.054c-.306.021-.753.06-1.3.118a26.14 26.14 0 00-8.248 2.315c-.496.234-.896.432-1.17.576-.139.082-.286.15-.439.202.126-.101.261-.19.403-.267.263-.162.656-.381 1.149-.63a22.836 22.836 0 014.035-1.558 22.495 22.495 0 014.259-.767 15.864 15.864 0 011.311-.061c.159-.011.32-.005.478.018zM117.397 108.773c-.158.01-.316.002-.472-.021a37.8 37.8 0 00-1.278-.098 31.595 31.595 0 00-4.219 0 32.71 32.71 0 00-4.18.573 49.84 49.84 0 00-1.252.273 2.547 2.547 0 01-.465.09c.142-.066.29-.117.443-.151.288-.093.72-.209 1.242-.335a26.662 26.662 0 018.438-.586c.54.05.976.108 1.278.158.158.017.314.049.465.097zM106.026 126.621c-.029 0 .141-.525.328-1.379.241-1.11.362-2.244.36-3.38a15.51 15.51 0 00-.407-3.373c-.198-.85-.382-1.361-.36-1.372.069.112.122.234.158.36.09.227.202.565.321.99a13.56 13.56 0 01.054 6.811 9.174 9.174 0 01-.303.998 1.376 1.376 0 01-.151.345zM71.369 114.086c-.344.054-.69.083-1.037.087a24.11 24.11 0 00-2.484.306 23.67 23.67 0 00-2.437.576c-.328.117-.664.21-1.005.281.306-.171.63-.307.965-.407a16.468 16.468 0 014.96-.886c.347-.025.695-.01 1.038.043zM73.902 129.202h-.137a3.21 3.21 0 01-.392 0 6.496 6.496 0 01-1.422-.273 7.07 7.07 0 01-5.04-7.315c.03-.488.114-.972.252-1.44.036-.123.078-.243.126-.36a.371.371 0 01.061-.126 10.94 10.94 0 00-.306 1.929 7.142 7.142 0 004.954 7.2c.621.187 1.259.316 1.904.385zM82.084 131.568a33.247 33.247 0 01-3.43-.77 33.993 33.993 0 01-3.388-.954 33.32 33.32 0 013.434.77c1.144.26 2.273.578 3.384.954zM101.317 128.02c-.148.096-.303.18-.465.252-.302.154-.749.36-1.303.608a38.062 38.062 0 01-4.464 1.631 39.197 39.197 0 01-4.626 1.08c-.598.101-1.08.169-1.422.205-.175.027-.352.04-.53.04.17-.055.343-.093.52-.112.33-.058.816-.148 1.41-.263a48.764 48.764 0 004.598-1.127 49.362 49.362 0 004.46-1.569 85.45 85.45 0 001.325-.555c.158-.081.324-.145.497-.19zM88.537 117.763a2.07 2.07 0 01-.415.13c-.27.076-.67.166-1.162.259a21.139 21.139 0 01-3.906.339 20.786 20.786 0 01-3.903-.393c-.493-.097-.889-.191-1.159-.27a1.732 1.732 0 01-.414-.137c.146.007.29.028.432.065.274.058.67.133 1.163.213 1.283.212 2.58.324 3.88.334 1.3.005 2.6-.09 3.885-.284.493-.072.893-.144 1.166-.194.142-.037.287-.058.433-.062zM94.198 117.82c-.204.13-.428.225-.662.281a7.604 7.604 0 01-3.434.249 2.173 2.173 0 01-.696-.18c.802.068 1.608.09 2.412.064.801-.09 1.596-.229 2.38-.414zM81.697 86.874c0 .032-.515.086-1.34.227-1.076.175-2.139.423-3.182.741-1.04.326-2.057.719-3.045 1.177-.76.36-1.217.598-1.232.573a1.3 1.3 0 01.303-.209c.198-.126.497-.291.871-.482a19.307 19.307 0 016.26-1.94c.418-.051.756-.084.994-.094.124-.012.248-.01.37.007zM84.133 88.305a13.094 13.094 0 01-1.551 4.143c-.047-.025.36-.928.785-2.07.424-1.14.712-2.084.766-2.073zM95.427 90.945c.054 0-.19 1.21-.36 2.708-.17 1.497-.187 2.718-.245 2.718a3.24 3.24 0 01-.05-.803c.003-.647.04-1.294.111-1.937.069-.643.173-1.28.314-1.912.044-.266.121-.526.23-.774zM99.733 91.082c-.054 0-.252-.619-.67-1.31-.417-.691-.882-1.17-.842-1.21.424.28.77.663 1.004 1.113.287.418.462.903.508 1.407zM74.324 114.481a9.545 9.545 0 00-.036-3.546 6.434 6.434 0 01-.169-2.142c.105-.72.72-1.476 1.44-1.44l1.293 5.108-2.528 2.02z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M74.299 102.351l4.572 18.061 8.935-.936-3.427-17.914a.969.969 0 00-1.008-.763l-8.18.36a.974.974 0 00-.892 1.192z",fill:"#263238"}),J__namespace.createElement("path",{d:"M84.572 106.647a2.965 2.965 0 01-.162-.529l-.36-1.462c-.15-.63-.327-1.364-.518-2.16-.029-.101-.047-.216-.08-.295a.54.54 0 00-.168-.223.547.547 0 00-.26-.119 1.525 1.525 0 00-.316 0l-1.415.054c-1.94.075-3.697.129-4.968.162l-1.505.029c-.184.016-.37.016-.554 0 .181-.034.366-.054.55-.058l1.502-.086c1.27-.065 3.027-.141 4.968-.216l1.414-.051c.12-.013.24-.013.36 0a.75.75 0 01.558.454c.036.106.064.214.083.324l.483 2.181c.122.598.226 1.08.306 1.473.04.172.068.346.082.522z",fill:"#455A64"}),J__namespace.createElement("path",{d:"M79.612 102.88a.44.44 0 00-.472-.262.44.44 0 00-.374.388.488.488 0 00.266.442.456.456 0 00.508-.068.42.42 0 00.072-.5z",fill:"#FAFAFA"}),J__namespace.createElement("path",{d:"M79.603 108.387c-.201.062-4.838 2.715-4.838 2.715l-2.358 2.714s-.828 1.552 0 3.874 2.041 3.1 4.795 3.654l5.116-1.037 3.6-2.243-1.062-4.071-3.542 2.833-2.006.36-.33-.648 2.88-1.663 4.52-3.823-1.414-1.534-4.187 2.707-3.6 1.768.515-1.473 4.165-3.366s.284-1.515-2.254-.767z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M79.95 105.871s.961-.609 2.631 0c1.67.608 3.81 1.541 3.81 1.541l3.182.763-.404-.763s-3.092.45-3.042-1.8h1.876l1.57-.893 3.294 2.937 1.468 3.698 2.027 1.544-2.47 6.311-5.23-.864-4.457.453-2.347-1.735-.36-2.304-2.304-2.16s-.331-1.116.684-1.267c1.015-.151 3.567 2.16 3.567 2.16l2.46-.047s.406-.403.05-.608c-.357-.205-7.751-3.445-8.104-4.23-.353-.785-.72-1.289 0-1.545.72-.255 1.926.101 1.926.101s-.367-1.098.173-1.292z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M86.13 110.054a33.415 33.415 0 01-3.29-1.364 33.805 33.805 0 01-3.215-1.534c1.12.397 2.218.852 3.29 1.365 1.098.454 2.171.966 3.215 1.533zM87.832 115.776a1.774 1.774 0 01-.36.133c-.238.072-.584.176-1.02.273a6.994 6.994 0 01-1.565.177 4.527 4.527 0 01-1.883-.436 8.132 8.132 0 01-2.704-2.192 15.05 15.05 0 01-.659-.825 1.699 1.699 0 01-.22-.32c.344.336.67.689.976 1.058a8.774 8.774 0 002.682 2.11c.565.264 1.178.41 1.8.432a7.479 7.479 0 001.538-.133c.874-.166 1.407-.31 1.415-.277z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M96.365 112.886l-.136-.09-.397-.292-1.515-1.134c-.389-.961-.89-2.207-1.487-3.69v.018l-3.297-2.937h.079l-1.57.9h-1.894l.076-.072c-.01.314.066.625.22.9.173.271.424.484.72.612a4.09 4.09 0 002.008.219h.062l.025.047c.126.234.263.497.407.763l.086.162-.18-.043-3.186-.756a88.325 88.325 0 00-3.074-1.264 7.467 7.467 0 00-1.627-.5 2.792 2.792 0 00-1.657.22c-.169.057-.234.277-.226.504.011.236.055.47.13.694l.053.166-.169-.047a5.269 5.269 0 00-1.08-.18 1.607 1.607 0 00-1.022.198.36.36 0 00-.097.425c.055.179.126.352.212.518a1.7 1.7 0 00.263.476c.141.125.293.238.453.338a43.294 43.294 0 004.111 2.142l2.049.958 1.008.464.248.119a.492.492 0 01.256.209.398.398 0 010 .342.926.926 0 01-.173.248l-.025.025h-.036l-2.459.047h-.036l-.025-.025a15.027 15.027 0 00-2.408-1.8c-.418-.223-.886-.468-1.307-.299a.655.655 0 00-.414.454 1.373 1.373 0 000 .651l-.022-.039 2.3 2.16.022.018v.028c.118.795.238 1.563.36 2.304l-.029-.046 2.33 1.728h-.044l4.46-.44 3.87.663 1.012.18.256.05.086.018h-.086l-.26-.036-1.014-.155-3.878-.619-4.453.468h-.047l-2.336-1.717h-.025v-.029c-.115-.72-.234-1.508-.36-2.304l.021.043a665.363 665.363 0 01-2.307-2.16l-.018-.018v-.021a1.522 1.522 0 010-.742.978.978 0 01.183-.36.864.864 0 01.328-.216c.248-.088.519-.088.767 0 .237.08.466.182.684.306a15.183 15.183 0 012.444 1.822l-.061-.022 2.459-.05-.065.025c.108-.108.209-.284.155-.382-.054-.097-.263-.162-.418-.241l-1.008-.464-2.048-.954a43.214 43.214 0 01-4.137-2.16 3.516 3.516 0 01-.478-.36.781.781 0 01-.18-.267l-.126-.262a3.776 3.776 0 01-.22-.551.827.827 0 01-.022-.328.469.469 0 01.18-.288c.345-.21.752-.295 1.152-.241.377.023.75.087 1.113.191l-.115.119a2.729 2.729 0 01-.137-.753 1.055 1.055 0 01.057-.389.508.508 0 01.288-.295h-.018a2.954 2.954 0 011.779-.245 7.776 7.776 0 011.666.512c1.08.414 2.092.842 3.082 1.274l3.183.763-.094.123-.403-.764.082.044c-.708.1-1.43.018-2.098-.238a1.805 1.805 0 01-.792-.673 1.924 1.924 0 01-.238-.987v-.075h1.955-.036l1.573-.889.043-.026.036.033 3.284 2.948 1.44 3.708 1.493 1.159.386.306.075.123z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M35.148 63.152l24.963-11.527-6.549 24.415-5.59-4.622-3.798 2.513-2.027-.386-2.103-7.876-4.896-2.517z",fill:"#0B89CE"}),J__namespace.createElement("path",{d:"M42.25 73.293l17.863-21.668-20.066 14.044 2.203 7.624z",fill:"#050910",opacity:.5}),J__namespace.createElement("path",{d:"M60.191 51.32c.043.026-2.52 4.425-5.71 9.821-3.189 5.397-5.824 9.753-5.871 9.72-.047-.032 2.52-4.42 5.71-9.82s5.824-9.746 5.871-9.72z",fill:"#263238"}),J__namespace.createElement("path",{d:"M52.132 55.803c.022.046-3.37 1.684-7.56 3.657-4.19 1.973-7.628 3.532-7.65 3.485-.022-.047 3.366-1.685 7.56-3.658 4.194-1.972 7.628-3.546 7.65-3.484zM53.947 55.045c.021.046-.126.162-.331.255-.206.094-.39.13-.41.083-.022-.047.125-.158.33-.256.206-.097.39-.13.41-.082zM53.165 64.258c-.133.364-.3.715-.5 1.047-.339.63-.832 1.487-1.419 2.405a35.485 35.485 0 01-1.598 2.293c-.221.318-.47.615-.742.89.186-.339.398-.663.634-.969.403-.587.957-1.4 1.548-2.315.59-.914 1.08-1.76 1.462-2.372.184-.34.39-.666.615-.98z",fill:"#F1F5F9"}),J__namespace.createElement("path",{d:"M39.892 75.107c-.025-.047.206-.22.53-.36.324-.14.605-.202.623-.151.017.05-.235.18-.548.32-.313.14-.58.238-.605.19zM36.242 78.385a4.659 4.659 0 011.631-1.858 6.738 6.738 0 01-.8.944c-.248.329-.526.635-.83.914zM34.458 82.957c-.039-.418.01-.84.144-1.239.075-.413.237-.806.476-1.152a7.587 7.587 0 01-.292 1.2 6.967 6.967 0 01-.328 1.19zM35.112 87.813a3.068 3.068 0 01-.49-1.148 2.935 2.935 0 01-.158-1.235c.147.385.26.782.338 1.188.141.387.245.788.31 1.195zM37.983 91.802a3.051 3.051 0 01-.95-.803 2.978 2.978 0 01-.72-1.026c.308.273.592.574.845.9.303.283.579.594.825.928zM42.35 94.023c0 .026-.144 0-.36-.021a4.427 4.427 0 01-.854-.224 2.94 2.94 0 01-1.105-.583c.393.105.778.24 1.149.407.316.115.612.205.824.27.213.065.353.126.346.151zM47.135 93.295c-.296.304-.67.522-1.08.63-.39.164-.814.23-1.235.19 0-.053.54-.147 1.174-.36.633-.212 1.109-.51 1.141-.46zM48.84 88.973c.18.386.247.815.194 1.238a2.16 2.16 0 01-.36 1.203c-.054-.022.126-.544.162-1.214.036-.67-.05-1.213.004-1.227zM45.861 85.266c.42.07.811.26 1.127.547.353.235.637.56.82.943-.042.036-.402-.385-.932-.796-.529-.41-1.05-.637-1.015-.694zM41.023 85.468c.34-.25.733-.42 1.149-.493.4-.131.826-.165 1.242-.097-.394.116-.794.21-1.199.28-.39.13-.788.234-1.192.31zM37.406 88.739c.128-.402.341-.77.627-1.08.253-.335.564-.621.918-.847a5.073 5.073 0 01-.77.965c-.232.341-.491.663-.775.962zM35.926 93.427a5.146 5.146 0 01.497-2.423c-.03.413-.1.822-.212 1.22-.05.41-.145.814-.285 1.203zM36.09 98.36a5.707 5.707 0 01-.255-2.462c.105.402.164.814.176 1.228.074.407.1.822.08 1.235zM37.557 103.077a3.484 3.484 0 01-.568-1.109 3.438 3.438 0 01-.317-1.202c.208.358.374.74.493 1.137.175.375.307.769.392 1.174zM40.134 107.285a3.465 3.465 0 01-.814-.939 3.419 3.419 0 01-.601-1.08c.288.297.54.627.752.982.262.318.485.666.663 1.037zM43.657 110.763a3.418 3.418 0 01-1.022-.72 3.509 3.509 0 01-.846-.914c.354.218.68.477.972.774.332.25.633.539.896.86zM47.932 113.231a3.33 3.33 0 01-1.17-.421 3.392 3.392 0 01-1.051-.669c.395.123.776.291 1.134.5.383.157.747.355 1.087.59zM52.76 114.197c-.41.086-.834.093-1.246.022-.42-.008-.833-.1-1.217-.27a6.08 6.08 0 011.235.083c.414.01.825.065 1.227.165zM57.675 113.697a3.69 3.69 0 01-1.202.316c-.406.096-.825.12-1.239.072.391-.136.797-.223 1.21-.259a4.857 4.857 0 011.231-.129zM62.421 112.32a4.099 4.099 0 01-1.148.479c-.384.16-.789.261-1.203.299a4.178 4.178 0 011.145-.479 4.328 4.328 0 011.206-.299zM66.974 110.336a4.311 4.311 0 01-1.08.612 4.19 4.19 0 01-1.16.443c.327-.259.69-.465 1.08-.612a4.123 4.123 0 011.16-.443zM71.258 107.855a4.126 4.126 0 01-1.004.72c-.337.246-.71.438-1.106.569a4.33 4.33 0 011.005-.72 4.294 4.294 0 011.105-.569zM74.27 105.647c.033.04-.161.249-.435.465-.274.216-.522.36-.55.316-.03-.043.161-.248.435-.464.273-.216.518-.356.55-.317z",fill:"#263238"}))}var qU=J__namespace.memo(jU),PC=qU;function om(){let{locale:e}=M();return J__namespace.default.createElement("div",{className:"w-full h-full gap-[1.5rem] p-[1.5rem] flex flex-col items-center justify-center"},J__namespace.default.createElement(PC,null),J__namespace.default.createElement("span",{className:"text-center font-medium text-[#050910] text-[1rem]"},O(e,"no-chat")))}var SC=hf.gql`
|
|
888
888
|
mutation FORWARD_MESSAGE($input: ForwardMessageInput!) {
|
|
889
889
|
forwardMessage(input: $input) {
|
|
890
890
|
forwardedMessages {
|
|
@@ -990,7 +990,7 @@
|
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
|
-
`;var $C=()=>{var u;let{chatApiUrl:e,user:t,page:o}=M(),{searchMessage:r,selectedChat:n}=it(),a=usehooks.useDebounce(r,400),s=m=>j(void 0,[m],function*({pageParam:g=1}){var b,x;let v={body:a};return o!=null&&o.id&&(v.pageId=o.id),yield hf__default.default(e!=null?e:"",XC,{conversationId:(b=n==null?void 0:n.conversationId)!=null?b:"",options:{filter:v,page:g,perPage:20,sort:"createdAt",sortDir:"desc"}},{"x-access-token":(x=t==null?void 0:t.accessToken)!=null?x:""})}),i=a!=null&&a.length?["page-messages",n==null?void 0:n.conversationId,a,o==null?void 0:o.id]:["page-messages",n==null?void 0:n.conversationId,o==null?void 0:o.id],{data:l,isLoading:d,fetchNextPage:c,hasNextPage:p}=yt({queryKey:i,queryFn:s,initialPageParam:1,enabled:!!(n!=null&&n.conversationId)&&!!(o!=null&&o.id),staleTime:0,getNextPageParam:g=>{var v;let m=(v=g==null?void 0:g.getMessagesByConversation)==null?void 0:v.meta;if(m)return ((m==null?void 0:m.currentPage)||0)<((m==null?void 0:m.total)||0)?((m==null?void 0:m.currentPage)||0)+1:void 0}});return {messages:(u=l==null?void 0:l.pages.flatMap(g=>{var m,v;return (v=(m=g==null?void 0:g.getMessagesByConversation)==null?void 0:m.data)!=null?v:[]}).reverse())!=null?u:[],isGettingMessages:d,fetchNextPage:c,hasNextPage:p}};function RC(e){let{fetchNextPage:t,hasNextPage:o,isGettingMessages:r,messages:n}=$C(),a=o||false,s=J.useRef(null),i=J.useRef(0),l=J.useRef(null),[d,c]=J.useState(false),[p,f]=J.useState(false),[u,g]=J.useState(0),[m,v]=J.useState(false),h=J.useRef(true),[b]=EM__default.default({loading:r,hasNextPage:o,onLoadMore:()=>{s.current&&(i.current=s.current.scrollHeight),t();},disabled:!o,rootMargin:"200px 0px 0px 0px"}),x=J.useRef((n==null?void 0:n.length)||0);J.useEffect(()=>{let A=(e==null?void 0:e.current)||s.current;if(!A||!(n!=null&&n.length))return;let k=n.length,N=k>x.current;if(x.current=k,h.current&&!r){h.current=false,setTimeout(()=>{l.current&&l.current.scrollIntoView({behavior:"auto"}),setTimeout(()=>{let I=A.scrollHeight,P=A.scrollTop,S=A.clientHeight,D=I-P-S;f(D<=50);},100);},100);return}p?(l.current&&l.current.scrollIntoView({behavior:"auto"}),c(false),g(0),v(false)):N&&(c(true),g(I=>I+1),v(true),setTimeout(()=>v(false),500));},[n,p,r,e]);let w=J.useRef(p);J.useEffect(()=>{let A=(e==null?void 0:e.current)||s.current;if(!A)return;let k=()=>{let I=A.scrollHeight,P=A.scrollTop,S=A.clientHeight,T=I-P-S<=50;w.current!==T&&(w.current=T,f(T),T&&(c(false),g(0)));},N=setTimeout(()=>{k();},200);return A.addEventListener("scroll",k),()=>{clearTimeout(N),A.removeEventListener("scroll",k);}},[e]),J.useEffect(()=>{if(r&&i.current&&s.current){let A=s.current,k=A.scrollHeight-i.current;A.scrollTop=k+A.scrollTop;}},[r]);let C=J.useCallback(()=>{l.current&&l.current.scrollIntoView({behavior:"smooth"}),c(false),g(0),f(true);},[]);return {containerRef:s,infiniteRef:b,lastMessageRef:l,messages:n,isGettingMessages:r,hasNewMessages:d,newMessageCount:u,isAtBottom:p,isAnimatingUp:m,scrollToBottom:C,hasNextPage:a}}function Xu({containerRef:e}){var R;let{setHasMessages:t,hasMessages:o,messageAction:r}=Qo(),{user:n,locale:a,page:s}=M(),i=O(a,"empty-chat"),{selectedChat:l,messages:d,forwardMessageIds:c,clearForwardMessages:p}=it(),{infiniteRef:f,lastMessageRef:u,messages:g,isGettingMessages:m,hasNewMessages:v,newMessageCount:h,scrollToBottom:b,isAtBottom:x}=RC(e),w=J.useRef(b),C=J.useRef({isAtBottom:x,hasNewMessages:v,newMessageCount:h}),A=J.useRef(true);J.useEffect(()=>{w.current=b;},[b]),J.useEffect(()=>{if(A.current){A.current=false,C.current={isAtBottom:x,hasNewMessages:v,newMessageCount:h};return}if(!(C.current.isAtBottom!==x||C.current.hasNewMessages!==v||C.current.newMessageCount!==h))return;C.current={isAtBottom:x,hasNewMessages:v,newMessageCount:h};let _=setTimeout(()=>{window.dispatchEvent(new CustomEvent("chatScrollState",{detail:{isAtBottom:x,scrollToBottom:w.current,hasNewMessages:v,newMessageCount:h}}));},0);return ()=>clearTimeout(_)},[x,v,h]),J.useEffect(()=>{t==null||t(false);},[o]);function k(V){if(!V)return null;if(typeof V=="number"){let _=new Date(V);return isNaN(_.getTime())?null:_}if(typeof V=="string"&&V.includes("T")){let _=new Date(V);return isNaN(_.getTime())?null:_}if(typeof V=="string")try{let _=dateFns.parse(V,"yyyy-MM-dd HH:mm:ss",new Date);return isNaN(_.getTime())?null:_}catch(_){return null}return null}function N(V){return isNaN(V==null?void 0:V.getTime())?"":dateFns.isToday(V)?O(a,"today"):dateFns.isYesterday(V)?O(a,"yesterday"):dateFns.format(V,"MMMM d, yyyy")}let I=V=>{var _;return (r==null?void 0:r.action)==="MESSAGE_DELETED"&&(r==null?void 0:r.conversationId)===(l==null?void 0:l.conversationId)&&((_=r==null?void 0:r.messagesIds)==null?void 0:_.includes(V))},P=V=>{if(V!=null&&V.actions)switch(V.actions){case "removedAdmin":return {type:"removedAdmin",text:O(a,"admin-removed",{name:(V==null?void 0:V.body)||""}),icon:J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-orange-500"})};case "madeAdmin":return {type:"madeAdmin",text:O(a,"admin-promoted",{name:(V==null?void 0:V.body)||""}),icon:J__namespace.default.createElement(lucideReact.Crown,{size:14,className:"text-yellow-500"})};case "remove":return {type:"remove",text:O(a,"user-removed",{name:(V==null?void 0:V.body)||""}),icon:J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-red-500"})};default:return null}return null},S=V=>!(I(V==null?void 0:V.id)||V!=null&&V.actions&&["removedAdmin","madeAdmin","remove"].includes(V.actions)),D=!m&&(g==null?void 0:g.length)===0,T=m&&(g==null?void 0:g.length)===0,L=m&&(g==null?void 0:g.length)>0,E=J.useRef(false);J.useEffect(()=>{E.current=false;},[l==null?void 0:l.conversationId]),J.useEffect(()=>{!m&&(g==null?void 0:g.length)>0&&(E.current=true);},[m,g==null?void 0:g.length]);let B=m&&!E.current,W=[],q=(l==null?void 0:l.conversationId)||(l!=null&&l.id?`temp-${l.id}`:null),Y=q?((R=d==null?void 0:d[q])==null?void 0:R.filter(V=>V==null?void 0:V.isTemporary))||[]:[],H=null;if(g==null||g.forEach(V=>{if(!S(V))return;let _=k(V==null?void 0:V.createdAt);if(!_)return;let $=N(_);H!==$&&(W.push({type:"date",dateLabel:$,id:`date-${$}`}),H=$);let oe=P(V);oe?W.push({type:"system",content:oe.text,icon:oe.icon,id:`system-${V==null?void 0:V.id}`,timestamp:_}):W.push({type:"message",msg:V});}),Y==null||Y.forEach(V=>{let _=new Date(V==null?void 0:V.timestamp),$=N(_);H!==$&&(W.push({type:"date",dateLabel:$,id:`date-${$}`}),H=$),W.push({type:"message",msg:V});}),(r==null?void 0:r.conversationId)===(l==null?void 0:l.conversationId)&&(r!=null&&r.action)&&r.action!=="MESSAGE_DELETED"){let V=new Date,_=N(V);H!==_&&(W.push({type:"date",dateLabel:_,id:`date-${_}`}),H=_);let $="",oe=null;switch(r.action){case "removedAdmin":$=O(a,"admin-removed",{name:(r==null?void 0:r.userName)||""}),oe=J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-orange-500"});break;case "madeAdmin":$=O(a,"admin-promoted",{name:(r==null?void 0:r.userName)||""}),oe=J__namespace.default.createElement(lucideReact.Crown,{size:14,className:"text-yellow-500"});break;case "remove":$=O(a,"user-removed",{name:(r==null?void 0:r.userName)||""}),oe=J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-red-500"});break}$&&W.push({type:"system",content:$,icon:oe,id:`system-action-${Date.now()}`,timestamp:V});}let z=({content:V,icon:_})=>J__namespace.default.createElement("div",{className:"flex justify-center my-2"},J__namespace.default.createElement("div",{className:"flex items-center gap-2 bg-gray-100 px-3 py-1.5 rounded-full max-w-xs"},_,J__namespace.default.createElement("span",{className:"text-xs text-gray-600 font-medium text-center"},V)));return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"w-full relative min-h-0"},J__namespace.default.createElement("div",{className:U(D||T?"flex items-center justify-center flex-1 w-full":"flex flex-col flex-1 p-4 gap-[1.5rem] rounded-lg w-full")},J__namespace.default.createElement("div",{ref:f,className:"pointer-events-none"}),T&&J__namespace.default.createElement("div",{className:"flex flex-col gap-4 w-full"},J__namespace.default.createElement(en,null),J__namespace.default.createElement(en,{isOwnMessage:true}),J__namespace.default.createElement(en,null)),D&&J__namespace.default.createElement("div",{className:"flex flex-1 items-center justify-center !w-full !h-[50dvh]"},J__namespace.default.createElement("span",{className:"text-gray-500 text-center"},i)),!T&&!D&&(W==null?void 0:W.map((V,_)=>{var ne,me,Me,Se,Ze,ze;if(V.type==="date")return J__namespace.default.createElement("div",{key:V.id,className:"flex items-center my-4"},J__namespace.default.createElement("div",{className:"flex-grow border-t border-gray-300"}),J__namespace.default.createElement("span",{className:"mx-4 text-xs text-gray-500 font-medium"},V.dateLabel),J__namespace.default.createElement("div",{className:"flex-grow border-t border-gray-300"}));if(V.type==="system")return J__namespace.default.createElement(z,{key:V.id,content:V.content,icon:V.icon});if(I((ne=V.msg)==null?void 0:ne.id))return J__namespace.default.createElement("div",{key:(me=V.msg)==null?void 0:me.id,className:"flex justify-center my-1"},J__namespace.default.createElement("div",{className:"flex items-center gap-2 bg-gray-100 px-3 py-1.5 rounded-full max-w-xs"},J__namespace.default.createElement(lucideReact.Trash2,{size:14,className:"text-gray-500"}),J__namespace.default.createElement("span",{className:"text-xs text-gray-500 italic"},O(a,"message-deleted"))));let oe=((Me=V==null?void 0:V.msg)==null?void 0:Me.senderId)===(s==null?void 0:s.id),K=c.includes((Ze=(Se=V==null?void 0:V.msg)==null?void 0:Se.id)!=null?Ze:"");return J__namespace.default.createElement("div",{key:(ze=V==null?void 0:V.msg)==null?void 0:ze.id,className:"relative"},c.length>0&&J__namespace.default.createElement("div",{className:"absolute flex items-center h-full z-10",style:{left:"0",paddingRight:oe?"0.5rem":"0",paddingLeft:oe?"0":"0.5rem"}},J__namespace.default.createElement("input",{type:"checkbox",checked:K,onChange:()=>{var mt,Ct;let{selectForwardMessage:Ye}=it.getState();Ye((Ct=(mt=V==null?void 0:V.msg)==null?void 0:mt.id)!=null?Ct:"");},onClick:Ye=>Ye.stopPropagation(),className:"w-4 h-4 text-primary border-gray-300 rounded focus:ring-primary cursor-pointer"})),J__namespace.default.createElement(pc,{message:V==null?void 0:V.msg,isOwnMessage:oe,ref:_===(W==null?void 0:W.length)-1?u:void 0}))})),!T&&!D&&(L||B)&&J__namespace.default.createElement("div",{className:"flex flex-col gap-4 w-full mb-2"},J__namespace.default.createElement(en,null),J__namespace.default.createElement(en,{isOwnMessage:true}),J__namespace.default.createElement(en,null)))))}var tM="pending_chat_data",oM=60*30;function rM(e){if(!(typeof window=="undefined"||!e))try{let t=cookiesNext.getCookie(tM);if(!t||typeof t!="string")return;let o=decodeURIComponent(atob(t)),r=JSON.parse(o);(r==null?void 0:r.id)===e&&cookiesNext.deleteCookie(tM,{path:"/"});}catch(t){}}var nM=()=>{let{sendMessage:e}=Qo(),{page:t,user:o,queryClient:r}=M(),{selectedChat:n,chatHeaderOption:a,onSelectChat:s,onSelectChatHeaderOption:i}=it(),l=["page-messages",n==null?void 0:n.conversationId],{mutate:d,isPending:c}=ge({mutationFn:f=>j(void 0,[f],function*({createMessageInput:p}){let u=n==null?void 0:n.id,g=F(y({},p),{senderId:t==null?void 0:t.id,pageId:t==null?void 0:t.id,participants:[u,t==null?void 0:t.id].filter(Boolean)});return e(g),g}),onMutate({createMessageInput:p}){let f={conversationId:n==null?void 0:n.conversationId,body:p==null?void 0:p.body,senderId:t==null?void 0:t.id,createdAt:new Date,updatedAt:new Date};H3({conversationId:n==null?void 0:n.conversationId,message:f,queryClient:r}),O3({conversationId:n==null?void 0:n.conversationId,chatHeaderOption:a,pageId:t==null?void 0:t.id,message:f,queryClient:r});},onError(){r==null||r.invalidateQueries({queryKey:l}),r==null||r.invalidateQueries({queryKey:["page-conversations",t==null?void 0:t.id,a]});},onSuccess(){r==null||r.invalidateQueries({queryKey:l}),r==null||r.invalidateQueries({queryKey:["page-conversations",t==null?void 0:t.id,a]}),i==null||i("filter-all"),s==null||s(n),n!=null&&n.id&&rM(n.id);}});return {sendMessage:d,isSendingAMessage:c}};var lV=e=>e.type.startsWith("image/")?e.type==="image/gif"?"gif":"image":e.type.startsWith("video/")?"video":"file";function sM(){let{uploadMultipleFiles:e}=B2(),{onSelectChat:t,draftMessages:o,setDraftMessage:r,replyMessage:n,setReplyMessage:a,addTemporaryMessage:s,removeTemporaryMessage:i}=it(),{conversationExists:l}=G2(),{createANewConversation:d}=lm(),{sendMessage:c}=nM(),{locale:p,page:f}=M(),[u,g]=J.useState([]),[m,v]=J.useState(false),h=it(P=>P.selectedChat),b=(h==null?void 0:h.conversationId)||(h!=null&&h.id?`temp-${h.id}`:null),x=b&&o[b]||"",w=P=>{b&&r(b,P);},C=(P,S)=>{let D=P instanceof File?P:new File([P],"audio-message.webm",{type:"audio/webm"}),T={file:D,type:S,previewUrl:S==="media"||S==="audio"?URL.createObjectURL(D):void 0};g(L=>[...L,T]);},A=P=>{g(S=>S.filter((D,T)=>T!==P));},k=P=>{if(!b)return;let S=((P==null?void 0:P.convertedBody)||x).trim();if(!S&&u.length===0&&!n)return;let D=[];u.length>0&&u.forEach(L=>{let E=L.type==="media"?lV(L.file):L.type,B=`sending.${E}`,W=O(p||"pt",B),q=crypto.randomUUID();D.push(q),s(b,W,E,q);});let T=L=>{let E=B=>{let W={conversationId:L,body:S||void 0,attachments:B,replyMessageId:n==null?void 0:n.id,mentions:P==null?void 0:P.mentions};c({createMessageInput:W}),D.forEach(q=>i(L,q));};u.length>0?e({files:u.map(B=>B.file),path:`chat/${L}`,ownerType:"chat"},{onSuccess(B){let W=B.map((q,Y)=>({type:u[Y].type,url:q}));E(W);},onError(){D.forEach(B=>i(L,B));}}):E();};if(h!=null&&h.conversationId)T(h.conversationId);else if(l(b))T(b);else {let L=h!=null&&h.id?{id:h.id,name:h.name,avatar:h.avatar}:void 0;if(!(L!=null&&L.id)){console.error("N\xE3o \xE9 poss\xEDvel criar conversa: targetUser.id n\xE3o est\xE1 definido");return}d(L,E=>{var W;let B=(W=E==null?void 0:E.createConversation)==null?void 0:W.id;B&&(it.getState().replaceTempConversationId(b,B),t==null||t(F(y({},h),{conversationId:B})),T(B));});}w(""),g([]),a==null||a(null);},N=P=>{P.key==="Enter"&&!P.shiftKey&&(P.preventDefault(),k());};J.useEffect(()=>()=>{u.forEach(P=>P.previewUrl&&URL.revokeObjectURL(P.previewUrl));},[u]);let I=x.trim().length>0||u.length>0||!!n;return {message:x,attachedFiles:u,isRecording:m,setIsRecording:v,setDraft:w,attachFile:C,removeFile:A,send:k,handleKeyDown:N,hasMessageOrFiles:I,replyMessage:n,setReplyMessage:a}}function Ru(){let {isMobile:e}=Ne(),{selectedChat:t}=it(),o=J.useRef(null);J.useRef(null);let n=J.useRef(null),[a,s]=J.useState(false),[i,l]=J.useState(""),d=J.useMemo(()=>t!=null&&t.participants?t.participants.map(H=>{let z=(H==null?void 0:H.user)||H;return !(z!=null&&z.id)||!(z!=null&&z.name)?null:{id:z.id,name:z.name,avatar:z.avatar,slug:z.slug}}).filter(H=>H!==null):[],[t==null?void 0:t.participants]),c=J.useMemo(()=>{if(d.length!==0)return {participants:{type:"participants",trigger:"@",items:d,renderItem:(H,z)=>J__namespace.default.createElement("div",{className:`flex items-center gap-2 p-2 cursor-pointer ${z?"bg-blue-50 text-primary":"hover:bg-gray-50"}`},J__namespace.default.createElement(ae,{src:H.avatar,name:H.name,className:"w-6 h-6"}),J__namespace.default.createElement("span",{className:"text-sm font-medium"},H.name))}}},[d]),{message:p,attachedFiles:f,isRecording:u,setIsRecording:g,setDraft:m,attachFile:v,removeFile:h,send:b,handleKeyDown:x,hasMessageOrFiles:w,replyMessage:C}=sM(),A=d.length>0&&(t==null?void 0:t.isGroup)===true;W2({mentions:c,onSubmit:H=>{var z;if(H.content){let G=ec(H.content);m(G);let R=((z=H.participants)==null?void 0:z.map(V=>({mentionedId:V.id})))||[];b({mentions:R,convertedBody:G});}}});W2({onSubmit:H=>{H.content&&(m(H.content),b());}});let {showMentionDropdown:P,filteredParticipants:S,selectedMentionIndex:D,mentionPosition:T,handleMentionInput:L,insertMention:E,handleKeyNavigation:B}=Lp({participants:d,shouldUseMentions:A,textAreaRef:o,onInsertMention:(H,z)=>{l(H),m(H);}}),W=()=>{if(A&&c){let H=i.trim();if(H){let z=ec(H),G=d.filter(R=>H.includes(`@${R.name}`)).map(R=>({mentionedId:R.id}));b({mentions:G,convertedBody:z});}else (f.length>0||C)&&b();}else (p.trim()||f.length>0||C)&&b();},q=A?i.trim().length>0||f.length>0||!!C:w,Y=H=>{let z=H.emoji,G=o.current;if(!G)return;let R=G.selectionStart,V=G.selectionEnd;if(A){let _=i.substring(0,R)+z+i.substring(V),$=_.length>0?_.charAt(0).toUpperCase()+_.slice(1):_;l($),m($);}else {let _=p.substring(0,R)+z+p.substring(V);m(_.length>0?_.charAt(0).toUpperCase()+_.slice(1):_);}requestAnimationFrame(()=>{G.focus(),G.selectionStart=G.selectionEnd=R+z.length;});};return J__namespace.default.createElement("div",{className:"flex flex-col gap-2"},u&&J__namespace.default.createElement("div",{className:"flex items-center gap-2 p-2 bg-gray-50 rounded-lg"},J__namespace.default.createElement(Ip,{onSend:H=>{v(H,"audio"),g(false);},onCancel:()=>g(false)})),f.length>0&&J__namespace.default.createElement("div",{className:"flex gap-2 overflow-x-auto pb-2"},f.map((H,z)=>{var G;return J__namespace.default.createElement("div",{key:z,className:"relative flex-shrink-0"},H.type==="media"&&H.previewUrl&&J__namespace.default.createElement("div",{className:"relative w-20 h-20 rounded-lg overflow-hidden"},J__namespace.default.createElement("img",{src:H.previewUrl,alt:"Preview",className:"w-full h-full object-cover"}),J__namespace.default.createElement("button",{onClick:()=>h(z),className:"absolute top-1 right-1 bg-red-500 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs"},"\xD7")),H.type==="audio"&&J__namespace.default.createElement(K2,{src:(G=H.previewUrl)!=null?G:""}))})),J__namespace.default.createElement("div",{className:"flex items-end gap-2 w-full"},A?J__namespace.default.createElement(Rd,{ref:o,placeholder:"Digite sua mensagem...",value:i,onChange:H=>{let z=H.target.value,G=z.length>0?z.charAt(0).toUpperCase()+z.slice(1):z;l(G),m(G);},onMentionDetected:L,onKeyDown:H=>{let z=B(H);if(z==="select"){E(S[D],i);return}z||H.key==="Enter"&&!H.shiftKey&&(H.preventDefault(),W());},onFocus:()=>{e&&setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"});},300);},maxRows:8,className:e?"w-full max-h-26 shadow-xs !h-full gap-2 px-3 py-2 rounded-[1.5rem] border border-[#E4EBF1] flex items-center !bg-white flex-1":"w-full max-h-26 shadow-xs !h-full gap-[0.625rem] px-6 py-[1rem] rounded-[1rem] border border-[#E4EBF1] flex items-center !bg-white",inputClassName:"flex-1 w-full !h-auto leading-5 resize-none",leftIcon:J__namespace.default.createElement(U2,{onAttach:v}),rightIcon:J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement(q2,{showPicker:a,onTogglePicker:s,onSelect:Y}),!i.trim()&&J__namespace.default.createElement(_2,{hasMessage:q,onStart:()=>g(true)}),(i.trim()||f.length>0||!!C)&&J__namespace.default.createElement(V2,{hasMessage:q,onClick:W}))}):J__namespace.default.createElement(U1,{ref:o,placeholder:"Digite sua mensagem...",value:p,onChange:H=>{let z=H.target.value,G=z.length>0?z.charAt(0).toUpperCase()+z.slice(1):z;m(G);},onKeyDown:x,onFocus:()=>{e&&setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"});},300);},maxRows:8,className:e?"w-full max-h-26 shadow-xs !h-full gap-2 px-3 py-2 rounded-[1.5rem] border border-[#E4EBF1] flex items-center !bg-white flex-1":"w-full max-h-26 shadow-xs !h-full gap-[0.625rem] px-6 py-[1rem] rounded-[1rem] border border-[#E4EBF1] flex items-center !bg-white",inputClassName:"flex-1 w-full !h-auto leading-5 resize-none",leftIcon:J__namespace.default.createElement(U2,{onAttach:v}),rightIcon:J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement(q2,{showPicker:a,onTogglePicker:s,onSelect:Y}),!p.trim()&&J__namespace.default.createElement(_2,{hasMessage:q,onStart:()=>g(true)}),(p.trim()||f.length>0||!!C)&&J__namespace.default.createElement(V2,{hasMessage:q,onClick:W}))})),P&&A&&J__namespace.default.createElement(Dp,{participants:S,selectedIndex:D,position:T,onSelectParticipant:H=>{E(H,i);}}),J__namespace.default.createElement(react.AnimatePresence,null,a&&J__namespace.default.createElement(react.motion.div,{ref:n,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"absolute bottom-full right-0 mb-2 z-50"})))}function pV(){let{selectedChat:e}=it(),{isMobile:t}=Ne(),{page:o}=M();return J__namespace.default.createElement("div",{className:U("!w-full !h-full !flex !flex-col !gap-6 !p-6 !bg-white !border !border-[#E4EBF1] !rounded-xl !box-border !flex-1 !min-h-0","lg:!max-w-[44.188rem] lg:!max-h-[62.25rem]","md:!max-w-[90vw] md:!p-5 md:!gap-5","sm:!rounded-lg sm:!p-4 sm:!gap-4 sm:!h-auto sm:!max-h-[85vh]","max-sm:!max-w-full max-sm:!border-0 max-sm:!rounded-none max-sm:!h-[100vh] max-sm:!p-3 max-sm:!gap-3")},e?J__namespace.default.createElement(J__namespace.default.Fragment,null,!t&&J__namespace.default.createElement(Yu,null),J__namespace.default.createElement("div",{className:"!flex-1 !min-h-0 !overflow-y-auto !scroll-smooth !pb-24 scrollbar-hide"},J__namespace.default.createElement(Xu,null)),J__namespace.default.createElement(Ni,null),J__namespace.default.createElement(Ru,null)):J__namespace.default.createElement(om,null))}var dM={sharePost:"Share post",repostPost:"Repost post",addDescriptionToRepost:"Add a description to your repost...",startPost:"Start a post...",shareNow:"Share now",repost:"Repost",share:"Share",shareInChat:"Share in chat",searchContacts:"Search contacts",shareIn:"Share on",all:"All",connections:"Connections",communities:"Communities",facebook:"Facebook",linkedin:"LinkedIn",pages:"Pages",copyLink:"Copy link",linkCopied:"Link copied to clipboard!",selectPageToShare:"Select page to share",cancel:"Cancel",sharing:"Sharing...",errorSharingPost:"Error sharing post",errorSharingMessage:"An error occurred while sharing the post",noContactsFound:"No contacts found",tryDifferentSearch:"Try a different search",shareProfile:"Share profile",shareInCommunity:"Share in community",noCommunitiesAvailable:"No communities available to share.",noPagesAvailable:"No pages available to share.",shareProfilePersonalMessage:"Hello, I would like to share my profile with you.",shareProfileMessage:"Hello, I would like to share this profile with you. Check it out:",errorUploadTitle:"Upload error",errorUploadMessage:"Could not upload QR code.",errorUploadImageMessage:"Could not get image URL.",errorProfileInfo:"Profile information not available.",profileSharedTitle:"Profile shared",profileSharedMessage:"Profile shared successfully!",errorSharingProfileTitle:"Error sharing",errorSharingProfileMessage:"An error occurred while sharing the profile."};var cM={sharePost:"Partager la publication",repostPost:"Republier la publication",addDescriptionToRepost:"Ajouter une description \xE0 votre republication...",startPost:"Commencer une publication...",shareNow:"Partager maintenant",repost:"Republier",share:"Partager",shareInChat:"Partager dans le chat",searchContacts:"Rechercher des contacts",shareIn:"Partager sur",all:"Tous",connections:"Connexions",communities:"Communaut\xE9s",facebook:"Facebook",linkedin:"LinkedIn",pages:"Pages",copyLink:"Copier le lien",linkCopied:"Lien copi\xE9 dans le presse-papiers !",selectPageToShare:"S\xE9lectionner la page \xE0 partager",cancel:"Annuler",sharing:"Partage en cours...",errorSharingPost:"Erreur lors du partage de la publication",errorSharingMessage:"Une erreur s'est produite lors du partage de la publication",noContactsFound:"Aucun contact trouv\xE9",tryDifferentSearch:"Essayez une recherche diff\xE9rente",shareProfile:"Partager le profil",shareInCommunity:"Partager dans la communaut\xE9",noCommunitiesAvailable:"Aucune communaut\xE9 disponible pour partager.",noPagesAvailable:"Aucune page disponible pour partager.",shareProfilePersonalMessage:"Bonjour, j'aimerais partager mon profil avec vous.",shareProfileMessage:"Bonjour, j'aimerais partager ce profil avec vous. D\xE9couvrez-le :",errorUploadTitle:"Erreur de t\xE9l\xE9chargement",errorUploadMessage:"Impossible de t\xE9l\xE9charger le code QR.",errorUploadImageMessage:"Impossible d'obtenir l'URL de l'image.",errorProfileInfo:"Informations du profil non disponibles.",profileSharedTitle:"Profil partag\xE9",profileSharedMessage:"Profil partag\xE9 avec succ\xE8s !",errorSharingProfileTitle:"Erreur de partage",errorSharingProfileMessage:"Une erreur s'est produite lors du partage du profil."};var pM={sharePost:"Compartilhar publica\xE7\xE3o",repostPost:"Repostar publica\xE7\xE3o",addDescriptionToRepost:"Adicionar uma descri\xE7\xE3o ao seu repost...",startPost:"Comece uma publica\xE7\xE3o...",shareNow:"Compartilhar agora",repost:"Repost",share:"Compartilhar",shareInChat:"Compartilhar no chat",searchContacts:"Pesquisar contatos",shareIn:"Compartilhar em",all:"Todos",connections:"Conex\xF5es",communities:"Comunidades",facebook:"Facebook",linkedin:"LinkedIn",pages:"P\xE1ginas",copyLink:"Copiar link",linkCopied:"Link copiado para a \xE1rea de transfer\xEAncia!",selectPageToShare:"Selecionar p\xE1gina para partilhar",cancel:"Cancelar",sharing:"Partilhando...",errorSharingPost:"Erro ao compartilhar publica\xE7\xE3o",errorSharingMessage:"Ocorreu um erro ao compartilhar a publica\xE7\xE3o",noContactsFound:"Nenhum contato encontrado",tryDifferentSearch:"Tente uma pesquisa diferente",shareProfile:"Partilhar perfil",shareInCommunity:"Compartilhar na comunidade",noCommunitiesAvailable:"Nenhuma comunidade dispon\xEDvel para compartilhar.",noPagesAvailable:"Nenhuma p\xE1gina dispon\xEDvel para compartilhar.",shareProfilePersonalMessage:"Ol\xE1, gostaria de partilhar com voc\xEA o meu perfil.",shareProfileMessage:"Ol\xE1, gostaria de compartilhar este perfil com voc\xEA. Confira:",errorUploadTitle:"Erro ao fazer upload",errorUploadMessage:"N\xE3o foi poss\xEDvel fazer upload do QR code.",errorUploadImageMessage:"N\xE3o foi poss\xEDvel obter a URL da imagem.",errorProfileInfo:"Informa\xE7\xF5es do perfil n\xE3o dispon\xEDveis.",profileSharedTitle:"Perfil compartilhado",profileSharedMessage:"Perfil compartilhado com sucesso!",errorSharingProfileTitle:"Erro ao compartilhar",errorSharingProfileMessage:"Ocorreu um erro ao compartilhar o perfil."};var mV={pt:y({},pM),en:y({},dM),fr:y({},cM)};function se(e,t){return mV[e][t]}function t8({postId:e,onClose:t,searchTerm:o=""}){let[r,n]=J.useState(""),{isSendingMessageIntoChat:a,sendMessageIntoChat:s}=qx(),{user:i,locale:l}=M(),{conversationId:d,isCheckingConversation:c}=Yp(r),{createANewConversation:p,isCreatingANewConversation:f}=vp({avatar:"",id:r,name:""}),{contacts:u,isFetchingNextPage:g,fetchNextPage:m,hasNextPage:v,isGettingContacts:h}=zn({perPage:50,slug:i==null?void 0:i.slug,sort:"",sortDir:"",filter:{name:o.trim()||null,slug:null}}),b=J.useRef(null),x=J.useRef(null),w=J.useRef(false),C=J.useCallback(P=>{P[0].isIntersecting&&v&&!g&&m();},[m,v,g]);J.useEffect(()=>{let P={root:b.current,rootMargin:"0px",threshold:1},S=new IntersectionObserver(C,P);return x.current&&S.observe(x.current),()=>{x.current&&S.unobserve(x.current);}},[C]);let A=J.useCallback(P=>{c||a||f||n(P);},[c,a,f]);J.useEffect(()=>{if(!r||!e||w.current)return;j(this,null,function*(){if(w.current=true,d!=null&&d.length){s({conversationId:d,postId:e}),t==null||t(),w.current=false;return}p(void 0,{onSuccess(S){var D;s({conversationId:(D=S==null?void 0:S.createConversation)==null?void 0:D.id,postId:e}),t==null||t();},onSettled(){w.current=false;}});});},[r,d,e,p,s,t]);let k=()=>Array.from({length:6}).map((P,S)=>J__namespace.default.createElement("div",{key:S,className:"flex flex-col items-center text-center min-w-[64px] sm:min-w-[72px]"},J__namespace.default.createElement(Zt,{className:"h-12 w-12 rounded-full mb-1 sm:h-14 sm:w-14"}),J__namespace.default.createElement(Zt,{className:"h-3 w-[48px] sm:w-[56px]"}))),N=()=>J__namespace.default.createElement("div",{className:"flex flex-col items-center justify-center w-full text-center"},J__namespace.default.createElement("div",{className:"text-gray-shade8 mb-2"},J__namespace.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5"},J__namespace.default.createElement("path",{d:"M16 16l4 4"}),J__namespace.default.createElement("circle",{cx:"10",cy:"10",r:"6"}))),J__namespace.default.createElement("p",{className:"text-sm text-gray-shade8"},o.trim()?`${se(l!=null?l:"pt","noContactsFound")} "${o.trim()}"`:se(l!=null?l:"pt","noContactsFound")),o.trim()&&J__namespace.default.createElement("p",{className:"text-xs text-gray-shade8 mt-1"},se(l!=null?l:"pt","tryDifferentSearch"))),I=h||a||c||f;return J__namespace.default.createElement("div",{className:U("w-full overflow-x-auto scrollbar-thin scrollbar-thumb-muted scrollbar-track-transparent","hover:scrollbar-thumb-gray-shatext-gray-shade8 scroll-smooth snap-x","overflow-y-hidden touch-pan-x"),ref:b},J__namespace.default.createElement("div",{className:"flex gap-4 py-2 min-w-max"},h&&k(),!h&&(u==null?void 0:u.length)===0&&N(),!h&&(u==null?void 0:u.length)>0&&(u==null?void 0:u.map(P=>{var T;let S=(T=P==null?void 0:P.followed)!=null?T:P==null?void 0:P.follower,D=I;return J__namespace.default.createElement("div",{key:P.id,onClick:()=>!D&&A(S==null?void 0:S.id),className:U("flex flex-col items-center text-center min-w-[64px] sm:min-w-[72px]","transition-opacity select-none",D?"opacity-50 cursor-not-allowed":"cursor-pointer hover:opacity-80")},J__namespace.default.createElement(ae,{src:S==null?void 0:S.avatar,name:S==null?void 0:S.name,className:"mb-1"}),J__namespace.default.createElement("span",{className:"text-sm text-gray-shade8 truncate w-[64px] sm:w-[72px]"},S==null?void 0:S.name))})),!h&&(u==null?void 0:u.length)>0&&J__namespace.default.createElement("div",{ref:x,className:"flex items-center justify-center min-w-[80px]"},g&&k(),!g&&v&&J__namespace.default.createElement("span",{className:"text-xs text-gray-shade8 animate-pulse"},"\u22EF"))),J__namespace.default.createElement("div",{className:"absolute right-0 top-0 bottom-0 w-10 bg-gradient-to-l from-background pointer-events-none"}))}var Z1=zustand.create(e=>({isDownloadModalOpen:false,openDownloadModal:()=>e({isDownloadModalOpen:true}),closeDownloadModal:()=>e({isDownloadModalOpen:false}),toggleDownloadModal:()=>e(t=>({isDownloadModalOpen:!t.isDownloadModalOpen}))}));var ym=()=>{let{locale:e="pt"}=M(),t=o=>he(e,o);return {title:t("download.banner.title"),subtitle:t("download.banner.subtitle"),button:t("download.banner.button"),trigger:t("download.banner.trigger")}};function gV(e){let{fontSize:t=20}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 24 24",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M17.554 7.296c2.451 0 4.446 2.06 4.446 4.592v5.032c0 2.526-1.99 4.58-4.436 4.58H6.448C3.996 21.5 2 19.441 2 16.91v-5.033c0-2.525 1.991-4.58 4.438-4.58h11.116z",fill:"#fff"}),J__namespace.createElement("path",{d:"M12.546 16.037l2.91-2.967c.3-.307.3-.8-.003-1.107a.762.762 0 00-1.089.002l-1.593 1.626V3.282a.777.777 0 00-.77-.782.776.776 0 00-.77.782v10.309l-1.594-1.626a.762.762 0 00-1.089-.002.788.788 0 00-.002 1.107l2.91 2.967c.144.148.34.231.544.231a.766.766 0 00.546-.23z",fill:"#fff"}))}var hV=J__namespace.memo(gV),fM=hV;var vV="mirantes-b2c-app://",yV="https://apps.apple.com/br/app/mirantes/idYOUR_APP_ID",bV="https://play.google.com/store/apps/details?id=com.desenvolvimentomirantes.mirantes&hl=pt-BR";function gM(){if(typeof window=="undefined")return;let e=Date.now(),t=/iPhone|iPad|iPod/i.test(navigator.userAgent),o=/Android/i.test(navigator.userAgent),r=`${vV}home`;window.location.href=r,setTimeout(()=>{Date.now()-e<2e3&&(t?window.location.href=yV:o&&(window.location.href=bV));},1500);}var xV=e=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},J__namespace.createElement("g",{id:"freepik--background-complete--inject-10"},J__namespace.createElement("path",{fill:"#ebebeb",d:"M0 382.4h500v.25H0zM416.78 398.49h33.12v.25h-33.12zM322.53 401.21h8.69v.25h-8.69zM396.59 389.21h19.19v.25h-19.19zM52.46 390.89h43.19v.25H52.46zM104.56 390.89h6.33v.25h-6.33zM131.47 395.11h93.68v.25h-93.68zM237 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"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M280.25 96.3h148.01v98.39H280.25z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M283.54 96.3h148.01v98.39H283.54z"}),J__namespace.createElement("path",{fill:"#fff",d:"M425.65 102.93v85.13H289.44v-85.13z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M425.65 102.93v85.13h-2.49v-85.13z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M285.98 167.86h143.13v8.9H285.98z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M438 85.32H273.81a.91.91 0 0 0-.91.91.91.91 0 0 0 .91.91H438a.91.91 0 0 0 .91-.91.91.91 0 0 0-.91-.91"}),J__namespace.createElement("circle",{cx:"438.9",cy:"86.23",r:"2.27",fill:"#e6e6e6"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M281.48 91.32a1.23 1.23 0 0 1-1.23-1.22v-2.64a1.23 1.23 0 0 1 1.23-1.23 1.23 1.23 0 0 1 1.22 1.23v2.64a1.22 1.22 0 0 1-1.22 1.22M424.28 91.32a1.23 1.23 0 0 1-1.23-1.22v-2.64a1.24 1.24 0 0 1 1.23-1.23 1.23 1.23 0 0 1 1.23 1.23v2.64a1.23 1.23 0 0 1-1.23 1.22"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M285.98 86.23H437.7v95.6H285.98z",opacity:"0.4"}),J__namespace.createElement("circle",{cx:"296.09",cy:"86.23",r:"2.27",fill:"#e6e6e6"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M377.72 199.16c2.66 3.68-2 7 1.84 10.81s-1.21 7.33-2.09 11.37 5 5.9 5.51 10.9-8.65 11-8.65 11-6.53-1.6-8.89-6.36 2-8-1.09-11.48-9.79-5.48-8.39-10-3.67-6-5.51-10c-.62-1.36-.25-.38.52-1.91 1.93-3.84 5.29-10.72 9.53-11.43 8.92-1.56 13.5 1.94 17.22 7.1"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M379.16 193.1c-3.31 4 1.72 8-3 12.12s.78 8.38 1.44 13-6.13 6.37-7.12 12 8.9 13 8.9 13 7.52-1.39 10.58-6.63-1.62-9.16 2.18-12.94 11.53-5.56 10.31-10.77 4.64-6.52 7.06-11c.87-1.61.47-3.6-.39-5.5a13.88 13.88 0 0 0-10.64-7.82c-5.88-.92-14.67-1.07-19.32 4.54"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M410 227s-.81 22.85-31.58 22.85S346.88 227 346.88 227Z"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M279.68 256.14h29.04v119.73h-29.04zM285.26 375.88h143.2v6.52h-143.2z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M434.03 375.88H308.72V256.15h125.31z"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M423.12 330.31H319.63v-28.6h103.49Zm-102.49-1h101.49v-26.6H320.63ZM423.12 364.06H319.63v-28.59h103.49Zm-102.49-1h101.49v-26.59H320.63Z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M383.4 306.84h-24a2.32 2.32 0 0 1-2.31-2.31 2.32 2.32 0 0 1 2.31-2.32h24a2.32 2.32 0 0 1 2.31 2.32 2.32 2.32 0 0 1-2.31 2.31"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M423.12 296.56H319.63V268h103.49Zm-102.49-1h101.49V269H320.63Z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M383.4 273.09h-24a2.33 2.33 0 0 1-2.31-2.32 2.32 2.32 0 0 1 2.31-2.31h24a2.32 2.32 0 0 1 2.31 2.31 2.33 2.33 0 0 1-2.31 2.32M383.4 340.6h-24a2.33 2.33 0 0 1-2.31-2.32 2.32 2.32 0 0 1 2.31-2.31h24a2.32 2.32 0 0 1 2.31 2.31 2.33 2.33 0 0 1-2.31 2.32"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M308.72 249.85H437.9v6.3H308.72z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M308.72 256.14h-33.1v-6.3h33.1z"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M95.11 82h106.82v121.18H95.11z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M96.68 82h113.99v121.18H96.68z"}),J__namespace.createElement("path",{fill:"#fff",d:"M201.12 91.55v102.08h-94.89V91.55z"}),J__namespace.createElement("rect",{width:"52.6",height:"48.89",x:"127.37",y:"118.14",fill:"#f5f5f5",rx:"9.41",transform:"rotate(90 153.67 142.59)"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M197.47 287.61c-.53 0-1.07 0-1.61.05a23 23 0 0 0-20.55 28.86 114.8 114.8 0 0 1 3.6 29.89v29.34a3.86 3.86 0 0 0 3.85 3.86h93.16v-92Z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M298.86 310.55a22.94 22.94 0 1 0-45.1 6 114.8 114.8 0 0 1 3.6 29.89v29.34a3.85 3.85 0 0 0 3.85 3.86h29.41a3.86 3.86 0 0 0 3.86-3.86v-31.1a105 105 0 0 1 3.55-28 23 23 0 0 0 .83-6.13"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M160.69 323.75h83.61v55.86h-83.61z"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M108.95 250.57h77.18a17.36 17.36 0 0 1 17.36 17.36v68.45H91.58v-68.45a17.36 17.36 0 0 1 17.36-17.36Z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M130 250.57h78.86a16.53 16.53 0 0 1 16.53 16.53v69.28H113.45v-69.29A16.53 16.53 0 0 1 130 250.57"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M166.16 318.65h77.07a5 5 0 0 1 5 5v12.67a5 5 0 0 1-5 5h-77.07a1.51 1.51 0 0 1-1.51-1.51v-19.66a1.51 1.51 0 0 1 1.51-1.5"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M83.34 287.61c-.53 0-1.07 0-1.61.05a23 23 0 0 0-21.29 21.39 23.3 23.3 0 0 0 .74 7.47 114.8 114.8 0 0 1 3.6 29.89v29.34a3.85 3.85 0 0 0 3.85 3.86h93.15v-92Z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M184.73 310.55a22.94 22.94 0 1 0-45.1 6 115.2 115.2 0 0 1 3.59 29.89v29.34a3.86 3.86 0 0 0 3.86 3.86h29.41a3.85 3.85 0 0 0 3.85-3.86v-31.1a104.5 104.5 0 0 1 3.56-28 23 23 0 0 0 .83-6.13"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M274.28 382.4H85a2.79 2.79 0 0 1-2.8-2.79h194.87a2.79 2.79 0 0 1-2.79 2.79"})),J__namespace.createElement("g",{id:"freepik--Shadow--inject-10"},J__namespace.createElement("ellipse",{id:"freepik--path--inject-10",cx:"250",cy:"416.24",fill:"#f5f5f5",rx:"193.89",ry:"11.32"})),J__namespace.createElement("g",{id:"freepik--Character--inject-10"},J__namespace.createElement("path",{fill:"#263238",d:"M308.2 123.37c2.86 5.16 3.1 26.23-2.2 30.55-9.74-1.07-17.49-5.78-17.74-16.87s14.55-23.38 19.94-13.68"}),J__namespace.createElement("path",{fill:"#263238",d:"M297.9 151c-2.56-1.5-6.82 3.44-7.8 11.91-.7 6-12.46-4.14-16.29 5.68-3.94-3-6.21-14.69 5-11.57 7.93 2.19 6.26.87 9.92-4 3.84-5.1 6.73-4.74 9.17-2.02"}),J__namespace.createElement("path",{fill:"#803e3c",d:"m331.63 176.61.91 2.85c.32 1 .66 2 1 2.95.67 2 1.37 4 2.11 5.92s1.47 3.94 2.26 5.9l1.15 3 .29.74.07.17a1.4 1.4 0 0 0-.42-.25c-.22-.08-.31 0-.18 0a2.3 2.3 0 0 0 .71-.11 11 11 0 0 0 2.25-1 42.4 42.4 0 0 0 4.88-3.34c1.62-1.26 3.21-2.61 4.76-4s3.14-2.84 4.65-4.26l3.07 2.6c-1.28 1.84-2.64 3.52-4 5.23s-2.92 3.31-4.5 4.9a40 40 0 0 1-5.28 4.52 17.8 17.8 0 0 1-3.48 1.9 9.5 9.5 0 0 1-2.41.62 6.6 6.6 0 0 1-3.33-.45 6.9 6.9 0 0 1-3.2-3l-.26-.54-.36-.73c-.48-1-1-2-1.42-2.94-.91-2-1.82-4-2.64-6s-1.65-4.06-2.41-6.12c-.37-1-.72-2.09-1.07-3.14s-.66-2.08-1-3.31Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M329.27 167.73c3.44.88 5.85 15.06 5.85 15.06l-9.49 6.46s-9.11-14.31-6.46-18.1c2.76-3.94 5.07-4.7 10.1-3.42"}),J__namespace.createElement("path",{fill:"#263238",d:"M329.27 167.73c3.44.88 5.85 15.06 5.85 15.06l-9.49 6.46s-9.11-14.31-6.46-18.1c2.76-3.94 5.07-4.7 10.1-3.42"}),J__namespace.createElement("path",{d:"m328.96 170.9 2.64 14.29-5.33 3.62z",opacity:"0.3"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m355.91 185.52 3.17-7.64 3.91 7.64s-2.54 3.8-5.89 2.87Z"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m362.57 177.09 5.03 2.02-4.61 6.41-3.91-7.64z"}),J__namespace.createElement("rect",{width:"29.73",height:"29.73",x:"360.51",y:"171.77",fill:"#0B89CE",rx:"7.75",transform:"rotate(-38.93 375.37 186.633)"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M310.62 406.45h8.36l.56-19.37h-8.36zM254.5 381.5l7.69 3.28 10.06-16.76-7.69-3.28z"}),J__namespace.createElement("path",{fill:"#263238",d:"m263.66 383.64-8-4.92a.66.66 0 0 0-.87.14l-4.8 5.77a1.34 1.34 0 0 0 .36 2c2.82 1.67 4.27 2.33 7.79 4.49 2.16 1.34 5.19 3.5 8.18 5.34s5-1 3.89-2.05c-4.85-4.63-4.71-6.83-5.62-9.57a2.2 2.2 0 0 0-.93-1.2M319.27 405.48h-9.4a.66.66 0 0 0-.66.57l-1.07 7.44a1.33 1.33 0 0 0 1.34 1.48c3.27-.05 4.85-.25 9-.25 2.54 0 7.8.27 11.31.27s3.7-3.47 2.24-3.79c-6.56-1.41-9.14-3.35-11.34-5.2a2.17 2.17 0 0 0-1.42-.52"}),J__namespace.createElement("path",{d:"m319.54 387.09-.29 9.98h-8.36l.28-9.98zM264.55 364.75l7.7 3.27-5.19 8.64-7.7-3.28z",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#263238",d:"M329.27 167.73s4 1.4-4 50.47h-34c.57-13.82.58-22.34-6-50.71a100 100 0 0 1 14.42-1.9 107 107 0 0 1 15.42 0c6.65.6 14.16 2.14 14.16 2.14"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M301.24 148.22c1 5 1.94 14.06-1.53 17.37 0 0 1.36 5 10.58 5 10.13 0 4.84-5 4.84-5-5.53-1.32-5.39-5.43-4.43-9.28Z"}),J__namespace.createElement("path",{d:"m305.1 151.52 5.6 4.78a15.6 15.6 0 0 0-.47 2.74c-2.12-.31-5-2.63-5.25-4.84a7.5 7.5 0 0 1 .12-2.68",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M296.66 139.36c1.93 8.07 2.58 11.53 7.44 15 7.3 5.21 16.79 1.07 17.31-7.42.46-7.64-2.78-19.55-11.34-21.39a11.31 11.31 0 0 0-13.41 13.81"}),J__namespace.createElement("path",{fill:"#263238",d:"M319.67 134.09a.38.38 0 0 0 .33-.09.4.4 0 0 0 0-.56 4 4 0 0 0-3.39-1.26.41.41 0 0 0-.32.47.4.4 0 0 0 .47.31 3.15 3.15 0 0 1 2.67 1 .4.4 0 0 0 .24.13"}),J__namespace.createElement("path",{fill:"#fff",d:"M319.46 143.73a2.57 2.57 0 0 1-1.6-.6 7.8 7.8 0 0 1-2.32-5.32c-.31-3.6 1-6.65 3.09-6.95a2.43 2.43 0 0 1 1.91.58 7.8 7.8 0 0 1 2.32 5.32c.32 3.59-1 6.65-3.08 7a1.7 1.7 0 0 1-.32-.03m-.51-12.4h-.25c-1.76.26-2.95 3.14-2.67 6.42a7.28 7.28 0 0 0 2.14 5 1.94 1.94 0 0 0 1.53.48c1.76-.26 3-3.14 2.67-6.42a7.28 7.28 0 0 0-2.14-5 2.08 2.08 0 0 0-1.23-.48Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M325.27 218.2s6.6 64.42 6.05 89.92c-.57 26.52-10.29 87-10.29 87h-11.31s1.79-58.95.79-85c-1.09-28.4-10.11-91.94-10.11-91.94Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M325.27 218.2s6.6 64.42 6.05 89.92c-.57 26.52-10.29 87-10.29 87h-11.31s1.79-58.95.79-85c-1.09-28.4-10.11-91.94-10.11-91.94Z",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M308.74 395.54h13.27l.97-4.23-14.86-.52z"}),J__namespace.createElement("path",{d:"M310.62 234.23C319 251 312.3 281.62 309.35 293c-1.52-17.1-4.07-38-6.05-53.37 1.26-8.63 3.47-13.14 7.32-5.4",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M316.3 218.2s-7.69 67-13.5 88.47c-6.9 25.53-33.13 69-33.13 69l-10.49-4.46s16.24-49.36 21.51-62.81c11.26-28.7 1.62-71.47 10.62-90.2Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M316.3 218.2s-7.69 67-13.5 88.47c-6.9 25.53-33.13 69-33.13 69l-10.49-4.46s16.24-49.36 21.51-62.81c11.26-28.7 1.62-71.47 10.62-90.2Z",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m257.74 371.24 13.02 5.54 3.12-3.5-15.01-7.21z"}),J__namespace.createElement("path",{fill:"#263238",d:"M309.43 139.47c.12.66.57 1.14 1 1.06s.69-.68.58-1.34-.57-1.14-1-1.07-.69.68-.58 1.35M316.94 138.15c.12.66.57 1.14 1 1.06s.69-.68.57-1.34-.56-1.14-1-1.07-.68.68-.57 1.35"}),J__namespace.createElement("path",{fill:"#263238",d:"m317.33 136.88 1.52-.75s-.6 1.39-1.52.75"}),J__namespace.createElement("path",{fill:"#630f0f",d:"M315.16 139.64a18 18 0 0 0 3.11 3.82 2.91 2.91 0 0 1-2.29.86Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M313 147.45a6.5 6.5 0 0 0 1.13-.1.2.2 0 0 0 .16-.23.19.19 0 0 0-.29-.12 5.34 5.34 0 0 1-4.65-1.31.2.2 0 1 0-.29.27 5.56 5.56 0 0 0 3.94 1.49M308.89 127.46c.15 3.85-5.91 16.21-10.28 17.17-5.36-3.5-6.86-9.63-3.74-16.17s13.74-8.25 14.02-1"}),J__namespace.createElement("path",{fill:"#263238",d:"M311.65 121.25c-3.39-.53-15 1.42-8.78 5s11.17 4.55 14.19 4.19 2.05-8.03-5.41-9.19"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M295.64 145.27a6.06 6.06 0 0 0 3.28 3.27c2 .8 3.19-.91 2.84-2.89-.31-1.79-1.72-4.36-3.79-4.31a2.73 2.73 0 0 0-2.33 3.93"}),J__namespace.createElement("path",{fill:"#263238",d:"M306.75 137.19a.4.4 0 0 0 .24-.2 3.14 3.14 0 0 1 2.25-1.76.39.39 0 0 0 .35-.44.39.39 0 0 0-.44-.35 3.92 3.92 0 0 0-2.87 2.19.4.4 0 0 0 .18.54.42.42 0 0 0 .29.02"}),J__namespace.createElement("path",{fill:"#fff",d:"M311 145a2.6 2.6 0 0 1-1.6-.61 7.8 7.8 0 0 1-2.32-5.32c-.31-3.59 1-6.65 3.08-6.95a2.53 2.53 0 0 1 1.92.58 7.8 7.8 0 0 1 2.32 5.32c.31 3.6-1 6.65-3.08 7Zm-.51-12.41h-.25c-1.76.26-3 3.14-2.67 6.42a7.28 7.28 0 0 0 2.14 5 1.93 1.93 0 0 0 1.53.48c1.76-.25 2.95-3.13 2.67-6.42a7.3 7.3 0 0 0-2.14-5 2.08 2.08 0 0 0-1.3-.49Z"}),J__namespace.createElement("path",{fill:"#803e3c",d:"M289.62 178.33a109 109 0 0 1-1.95 14.25 77.5 77.5 0 0 1-4 14l-.75 1.73-.19.43a4 4 0 0 1-.22.44 3.5 3.5 0 0 1-.32.52 5 5 0 0 1-1 1.12 4.7 4.7 0 0 1-1.65.84 5 5 0 0 1-2.92-.08 6.2 6.2 0 0 1-1.57-.75 12.2 12.2 0 0 1-1.88-1.54 37.4 37.4 0 0 1-4.68-6 102 102 0 0 1-6.79-12.53l3.49-2c2.72 3.67 5.45 7.42 8.33 10.85a37 37 0 0 0 4.33 4.57 4.4 4.4 0 0 0 .87.59c.08 0 .14 0 0 0a2.1 2.1 0 0 0-1.21 0c-1.48.44-1.65 1.75-1.34.74l.55-1.51a90 90 0 0 0 3.11-12.87c.76-4.39 1.34-9 1.76-13.33Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M285.29 167.49c-3.4 1-7.49 12.75-7.49 12.75l13.2 9.44s4.81-9.78 3.38-14.18c-1.49-4.58-5.21-9.19-9.09-8.01"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M267.05 386.82a1.13 1.13 0 0 0 .7-.7.65.65 0 0 0 0-.68c-.6-.88-3.62-.81-4-.8a.2.2 0 0 0-.18.12.2.2 0 0 0 0 .21c.79.79 2.27 2.08 3.31 1.88Zm-2.81-1.82c1.21 0 2.83.17 3.14.64a.27.27 0 0 1 0 .3.75.75 0 0 1-.54.49c-.55.14-1.51-.43-2.6-1.43"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M265.13 384.79c.92-.29 1.89-.8 2.11-1.37a.7.7 0 0 0-.28-.82 1 1 0 0 0-.86-.21c-1.19.21-2.46 2.25-2.52 2.34a.23.23 0 0 0 0 .2.19.19 0 0 0 .17.1 4.9 4.9 0 0 0 1.38-.24m.92-2h.12a.65.65 0 0 1 .54.13c.2.16.19.28.15.37-.2.55-1.72 1.21-2.73 1.34a5 5 0 0 1 1.92-1.82ZM322.41 406.94a3.2 3.2 0 0 0 2-.51 1.1 1.1 0 0 0 .35-1 .63.63 0 0 0-.33-.52c-1-.56-4.36 1.14-4.74 1.33a.21.21 0 0 0-.1.21.18.18 0 0 0 .16.16 13.5 13.5 0 0 0 2.66.33m1.49-1.73a.8.8 0 0 1 .37.07.27.27 0 0 1 .13.22.71.71 0 0 1-.23.63c-.51.46-1.88.54-3.73.23a10.7 10.7 0 0 1 3.46-1.15"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M319.82 406.65h.08c1-.45 3-2.25 2.81-3.2 0-.23-.19-.5-.74-.56a1.43 1.43 0 0 0-1.1.34c-1.05.88-1.24 3.13-1.25 3.22a.18.18 0 0 0 .08.18.2.2 0 0 0 .12.02m2-3.39h.12c.36 0 .38.19.39.23.09.57-1.25 2-2.26 2.61a4.57 4.57 0 0 1 1.06-2.58 1 1 0 0 1 .68-.26Z"}),J__namespace.createElement("path",{fill:"#263238",d:"m290.8 216.21-.87 3c-.12.23.16.47.55.47h35c.3 0 .56-.15.58-.34l.3-3c0-.21-.24-.39-.58-.39h-34.43a.63.63 0 0 0-.55.26"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M295.42 220.05h-.92c-.19 0-.33-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.18.21-.36.21"}),J__namespace.createElement("path",{fill:"#fff",d:"M295.42 220.05h-.92c-.19 0-.33-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.18.21-.36.21",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M322.85 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.21.21-.36.21"}),J__namespace.createElement("path",{fill:"#fff",d:"M322.85 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.21.21-.36.21",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M309.13 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.18-.21.36-.21h.92c.19 0 .33.1.31.21l-.43 4c-.01.16-.17.21-.36.21"}),J__namespace.createElement("path",{fill:"#fff",d:"M309.13 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.18-.21.36-.21h.92c.19 0 .33.1.31.21l-.43 4c-.01.16-.17.21-.36.21",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#263238",d:"m309.82 138.19 1.52-.74s-.6 1.39-1.52.74"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m262.14 191.88-8-4.25 7.89-3.16s4.15 3.41 3.48 6.82Z"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m251.32 181.2 6.75-2.29 4.98 6.5-8.88 2.22z"})),J__namespace.createElement("g",{id:"freepik--Smartphone--inject-10"},J__namespace.createElement("path",{fill:"#263238",d:"M253.64 132.52H140a11.71 11.71 0 0 0-11.73 12l5.88 259.72a12.38 12.38 0 0 0 12.28 12h113.63a11.71 11.71 0 0 0 11.73-12l-5.88-259.72a12.37 12.37 0 0 0-12.27-12"}),J__namespace.createElement("path",{fill:"#263238",d:"M256.47 132.52H142.8a11.7 11.7 0 0 0-11.72 12L137 404.24a12.37 12.37 0 0 0 12.27 12H262.9a11.7 11.7 0 0 0 11.72-12l-5.88-259.72a12.37 12.37 0 0 0-12.27-12"}),J__namespace.createElement("path",{fill:"#fff",d:"m138.51 404.09-5.88-259.42a7.93 7.93 0 0 1 8-8.15h118.23a8.37 8.37 0 0 1 8.33 8.15l5.88 259.42a7.94 7.94 0 0 1-8 8.15H146.84a8.37 8.37 0 0 1-8.33-8.15"}),J__namespace.createElement("path",{fill:"#263238",d:"M178.12 401.65a1 1 0 0 1-.47-.12l-3.93-2.25a1 1 0 0 1-.49-.82.94.94 0 0 1 .48-.83l3.83-2.24a1 1 0 0 1 1.44.8l.1 4.48a1 1 0 0 1-1 1Zm-4.16-2.8 3.94 2.24a.45.45 0 0 0 .68-.4l-.1-4.49a.47.47 0 0 0-.69-.38l-3.79 2.24a.46.46 0 0 0-.23.4.48.48 0 0 0 .23.39ZM205.58 401.93a3.56 3.56 0 0 1-3.54-3.46 3.38 3.38 0 0 1 3.4-3.48 3.57 3.57 0 0 1 3.54 3.47 3.37 3.37 0 0 1-3.4 3.47m-.14-6.44a2.9 2.9 0 0 0-2.08.87 2.86 2.86 0 0 0-.82 2.1 3.06 3.06 0 0 0 3 3 2.87 2.87 0 0 0 2.9-3 3.06 3.06 0 0 0-3-2.97M237.81 401.58h-4.57a.85.85 0 0 1-.85-.83l-.1-4.57a.78.78 0 0 1 .23-.59.8.8 0 0 1 .59-.25h4.57a.85.85 0 0 1 .85.83l.1 4.57a.8.8 0 0 1-.82.84m-4.7-5.74a.33.33 0 0 0-.23.1.28.28 0 0 0-.09.23l.1 4.57a.35.35 0 0 0 .35.34h4.57a.32.32 0 0 0 .19-.08.34.34 0 0 0 .09-.24l-.1-4.57a.35.35 0 0 0-.35-.34ZM146.05 141.61a1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1 1 1 0 0 0-1-1M148.86 140.46a1 1 0 0 0-1 1v1.15a1 1 0 0 0 1 1 1 1 0 0 0 .95-1v-1.15a1 1 0 0 0-.95-1M151.67 139.28a1 1 0 0 0-.95 1l.05 2.33a1 1 0 0 0 1 1 1 1 0 0 0 1-1l-.06-2.33a1 1 0 0 0-1.04-1M250.75 138.78h-6.83a1.6 1.6 0 0 0-1.6 1.64v1.5a1.69 1.69 0 0 0 1.68 1.64h6.83a1.6 1.6 0 0 0 1.6-1.64v-1.5a1.7 1.7 0 0 0-1.68-1.64M253.49 139.82h-.37a.41.41 0 0 0-.42.43v1.84a.45.45 0 0 0 .44.43h.37a.42.42 0 0 0 .41-.43v-1.84a.43.43 0 0 0-.43-.43M229.47 143.56H170.3a6.93 6.93 0 0 1-6.94-5.14l-.72-3.42h74.11l-.56 3.42a6.56 6.56 0 0 1-6.72 5.14"}),J__namespace.createElement("path",{fill:"#263238",d:"M141.93 404.13a2.07 2.07 0 0 1-2.05-2L134.11 147a1.94 1.94 0 0 1 1.95-2 2.07 2.07 0 0 1 2.05 2l5.77 255.09a1.94 1.94 0 0 1-1.95 2.04M269.65 404.13a2.07 2.07 0 0 1-2-2L261.83 147a1.94 1.94 0 0 1 1.95-2 2.07 2.07 0 0 1 2.05 2l5.77 255.09a1.94 1.94 0 0 1-1.95 2.04",opacity:"0.1"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M172 211.4h-14.27a8 8 0 0 1-7.92-7.75l-.32-14.23a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.57 7.57 0 0 1-7.54 7.75M245.11 211.4h-14.23a8 8 0 0 1-7.92-7.75l-.32-14.23a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.92 7.75l.33 14.23a7.58 7.58 0 0 1-7.58 7.75M208.54 211.4h-14.23a8 8 0 0 1-7.93-7.75l-.32-14.23a7.56 7.56 0 0 1 7.58-7.75h14.22a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.57 7.75M172.8 248.21h-14.23a8 8 0 0 1-7.93-7.75l-.32-14.23a7.56 7.56 0 0 1 7.58-7.75h14.22a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.57 7.75M209.37 248.21h-14.23a8 8 0 0 1-7.92-7.75l-.32-14.23a7.56 7.56 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.92 7.75l.33 14.23a7.58 7.58 0 0 1-7.58 7.75M173.63 285H159.4a8 8 0 0 1-7.92-7.75l-.33-14.23a7.57 7.57 0 0 1 7.58-7.75H173a8 8 0 0 1 7.92 7.75l.33 14.23a7.58 7.58 0 0 1-7.62 7.75M246.78 285h-14.23a8 8 0 0 1-7.92-7.75l-.33-14.23a7.56 7.56 0 0 1 7.58-7.75h14.23a8 8 0 0 1 7.92 7.75l.32 14.23a7.56 7.56 0 0 1-7.57 7.75M210.21 285H196a8 8 0 0 1-7.93-7.75l-.32-14.23a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.59 7.75M174.46 321.84h-14.22a8 8 0 0 1-7.93-7.75l-.31-14.23a7.56 7.56 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.59 7.75M247.61 321.84h-14.23a8 8 0 0 1-7.92-7.75l-.32-14.23a7.56 7.56 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.57 7.57 0 0 1-7.58 7.75M211 321.84h-14.19a8 8 0 0 1-7.92-7.75l-.33-14.23a7.58 7.58 0 0 1 7.58-7.75h14.23a8 8 0 0 1 7.92 7.75l.32 14.23a7.56 7.56 0 0 1-7.61 7.75M175.87 383.8h-14.23a8 8 0 0 1-7.93-7.75l-.32-14.22a7.56 7.56 0 0 1 7.58-7.75h14.22a8 8 0 0 1 7.93 7.75l.32 14.22a7.55 7.55 0 0 1-7.57 7.75M249 383.8h-14.21a8 8 0 0 1-7.93-7.75l-.32-14.22a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.22a7.55 7.55 0 0 1-7.59 7.75M212.44 383.8h-14.23a8 8 0 0 1-7.92-7.75l-.29-14.22a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.92 7.75l.33 14.22a7.56 7.56 0 0 1-7.61 7.75M251.91 169.39H149.03l-.02-1.11h102.87zM250.44 156.81a4.07 4.07 0 0 0-5.76 0 4 4 0 0 0-.49 4.92l-1.48 1.5a1 1 0 0 0 1.48 1.45l1.47-1.51a4 4 0 0 0 4.78-6.36m-5 5.13a3.15 3.15 0 1 1 4.51 0 3.19 3.19 0 0 1-4.53 0Z"}))),hM=xV;var vM=({isOpen:e,onClose:t,children:o,hideCloseButton:r=false,closeOnClickOutside:n=true,className:a=""})=>{let[s]=J__namespace.default.useState(()=>{if(typeof window=="undefined")return null;let d=document.createElement("div");return d.setAttribute("id","mobile-modal-portal"),d});J.useEffect(()=>{if(s)return document.body.appendChild(s),()=>{s.parentNode&&s.parentNode.removeChild(s);}},[s]);let i=()=>{n&&t();},l=d=>d.stopPropagation();return !s||!e?null:$W.createPortal(J__namespace.default.createElement("div",{className:"fixed inset-0 z-[100] lg:hidden flex items-center justify-center bg-black/50",onClick:i},J__namespace.default.createElement("div",{className:`w-[90%] max-w-xs bg-white rounded-2xl p-6 shadow-lg flex flex-col gap-4 relative ${a}`,onClick:l},!r&&J__namespace.default.createElement("button",{onClick:t,className:"absolute top-4 right-4",type:"button"},J__namespace.default.createElement(lucideReact.X,{className:"h-6 w-6"})),o)),s)};var bm=()=>{let{isMobile:e}=Ne(),{isDownloadModalOpen:t,closeDownloadModal:o}=Z1(),{title:r,subtitle:n,button:a}=ym(),s=J__namespace.default.createElement("div",{className:"flex flex-col gap-4"},J__namespace.default.createElement("div",{className:"flex justify-center mb-4 w-[12.6rem] h-[12.6rem] mx-auto"},J__namespace.default.createElement(hM,null)),J__namespace.default.createElement("h2",{className:"text-[20px] font-bold text-gray-900 mb-2"},r),J__namespace.default.createElement("p",{className:"text-[#050910] text-[14px] mb-6"},n),J__namespace.default.createElement(le,{className:"w-full h-[48px] bg-primary hover:bg-primary/80 text-white text-[14px] font-bold rounded-[10px] py-2 border-0 outline-none flex items-center justify-center gap-2",onClick:gM},a,J__namespace.default.createElement(fM,{fontSize:24})));return e?J__namespace.default.createElement(vM,{isOpen:t,onClose:o,closeOnClickOutside:true,className:"text-center"},s):J__namespace.default.createElement(qe,{isOpen:t,onClose:o,closeOnClickOutside:true,disableFullScreen:true,hideCloseButton:false,className:"max-w-[327px] max-h-[512px] rounded-2xl bg-white p-6 shadow-lg text-center"},s)};var SV=()=>{let{openDownloadModal:e}=Z1(),{trigger:t}=ym();return J__namespace.default.createElement(le,{onClick:e,variant:"outline",className:"w-fit"},t)};var o8="mirantes_download_banner_last_shown",bc="mirantes_download_banner_count",xm="mirantes_download_banner_session_shown",r8=(e={})=>{let{maxShows:t=5,initialDelayMs:o=5e3,mobileOnly:r=true}=e,{openDownloadModal:n,isDownloadModalOpen:a}=Z1(),[s,i]=J.useState(false),l=()=>typeof window=="undefined"?false:window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),d=()=>!(typeof window=="undefined"||r&&!l()||sessionStorage.getItem(xm)==="true"||parseInt(sessionStorage.getItem(bc)||"0")>=t),c=()=>{if(typeof window=="undefined")return;let g=new Date().toISOString(),m=parseInt(sessionStorage.getItem(bc)||"0");sessionStorage.setItem(o8,g),sessionStorage.setItem(bc,(m+1).toString()),sessionStorage.setItem(xm,"true");},p=()=>{d()&&(i(true),setTimeout(()=>{n(),c(),i(false);},o));},f=()=>{typeof window!="undefined"&&(sessionStorage.removeItem(o8),sessionStorage.removeItem(bc),sessionStorage.removeItem(xm));},u=()=>{if(typeof window=="undefined")return {lastShown:null,showsCount:0,remainingShows:t,canShow:false,shownInCurrentSession:false};let g=sessionStorage.getItem(o8),m=parseInt(sessionStorage.getItem(bc)||"0"),v=sessionStorage.getItem(xm)==="true";return {lastShown:g?new Date(g):null,showsCount:m,remainingShows:Math.max(0,t-m),canShow:d(),shownInCurrentSession:v}};return J.useEffect(()=>{let g=setTimeout(()=>{p();},1e3);return ()=>clearTimeout(g)},[]),{shouldShow:s,showBanner:p,resetBannerData:f,getBannerStats:u,canShow:d(),isMobile:l()}};var IV=({maxShows:e=5,initialDelayMs:t=3e4,mobileOnly:o=true,enabled:r=true})=>{let{canShow:n}=r8({maxShows:e,initialDelayMs:t,mobileOnly:o});return !r||!n?J__namespace.default.createElement(bm,null):J__namespace.default.createElement(bm,null)};function EV(e){let{fontSize:t="20px"}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 20 21",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M1.667 9.732c.042 1.949.158 5.281.175 5.649.06.785.36 1.58.828 2.14.652.785 1.454 1.136 2.574 1.136 1.546.009 3.251.009 4.907.009 1.663 0 3.276 0 4.639-.009 1.103 0 1.93-.36 2.574-1.137.468-.56.769-1.362.811-2.14.017-.309.1-3.926.15-5.648H1.667z",fill:"#687588"}),J__namespace.createElement("path",{d:"M9.371 13.32v1.078a.625.625 0 001.25 0V13.32a.625.625 0 00-1.25 0z",fill:"#687588"}),J__namespace.createElement("path",{d:"M11.072 2.167c1.25 0 2.276.94 2.433 2.15h1.647a3.177 3.177 0 013.173 3.174v2.889c0 .21-.106.406-.28.521-1.718 1.138-3.758 1.895-5.898 2.19a.625.625 0 01-.692-.465A1.504 1.504 0 009.992 11.5c-.701 0-1.297.454-1.482 1.13a.626.626 0 01-.69.456c-2.125-.297-4.157-1.051-5.872-2.184a.624.624 0 01-.281-.521V7.49a3.18 3.18 0 013.18-3.174h1.64a2.46 2.46 0 012.433-2.15h2.152zM8.92 3.417c-.56 0-1.029.383-1.169.9h4.49c-.14-.517-.609-.9-1.169-.9H8.92z",fill:"#687588"}))}var kV=J__namespace.memo(EV),bM=kV;var xM=zustand.create(e=>({isOpen:false,openModal:()=>e({isOpen:true}),closeModal:()=>e({isOpen:false})}));function DV({onClick:e}){let{openModal:t}=xM(),{locale:o}=M();return J__namespace.default.createElement(re,{onClick:r=>{t(),e==null||e(r);},leftElement:J__namespace.default.createElement(bM,null),className:"text-gray-600 hover:opacity-90 h-auto !p-0 hover:bg-transparent",label:Je(o,"explore.oportunities.jobs")})}var n0=({rating:e})=>J__namespace.default.createElement("div",{className:"flex gap-[2px] my-1"},Array.from({length:5}).map((t,o)=>{let r=o+1,n=e>=r,a=!n&&e>=r-.5,s="M9.14692 0.511345L11.0023 4.23991C11.139 4.51004 11.3999 4.69764 11.7008 4.73933L15.8684 5.3463C16.1117 5.38049 16.3326 5.50889 16.4818 5.70482C16.6294 5.89825 16.6927 6.14338 16.6569 6.38433C16.6277 6.58443 16.5335 6.76953 16.3893 6.91127L13.3695 9.83859C13.1486 10.0429 13.0486 10.3455 13.1019 10.6415L13.8454 14.7569C13.9246 15.2538 13.5954 15.7224 13.1019 15.8166C12.8986 15.8491 12.6902 15.815 12.5068 15.7216L8.78934 13.7848C8.51345 13.6455 8.18755 13.6455 7.91165 13.7848L4.19419 15.7216C3.73742 15.9642 3.17147 15.7991 2.91725 15.3489C2.82306 15.1696 2.78972 14.9654 2.82056 14.7661L3.56405 10.6498C3.6174 10.3547 3.51654 10.0504 3.2965 9.84609L0.276681 6.92044C-0.0825632 6.57359 -0.0933988 6.00247 0.252509 5.64312C0.26001 5.63562 0.268345 5.62728 0.276681 5.61894C0.420045 5.47303 0.608418 5.38049 0.811795 5.35631L4.97936 4.7485C5.27942 4.70598 5.54031 4.52005 5.67784 4.24825L7.46656 0.511345C7.62576 0.191182 7.95583 -0.00808573 8.31424 0.000251838H8.42593C8.73683 0.0377709 9.00772 0.230369 9.14692 0.511345";return a?J__namespace.default.createElement("svg",{key:o,className:"w-5 h-5",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("defs",null,J__namespace.default.createElement("linearGradient",{id:`half-star-${o}`},J__namespace.default.createElement("stop",{offset:"50%",stopColor:"#EC991C"}),J__namespace.default.createElement("stop",{offset:"50%",stopColor:"rgba(236,153,28,0.3)"}))),J__namespace.default.createElement("path",{d:s,fill:`url(#half-star-${o})`})):J__namespace.default.createElement("svg",{key:o,className:"w-5 h-5",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:s,fill:n?"#EC991C":"rgba(236,153,28,0.3)"}))}));var xc=(e=0)=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString(),CM=e=>{let t=Math.floor((new Date().getTime()-new Date(e).getTime())/1e3);if(t<60)return `${t}s`;let o=Math.floor(t/60);if(o<60)return `${o}m`;let r=Math.floor(o/60);if(r<24)return `${r}h`;let n=Math.floor(r/24);if(n<7)return `${n}D`;let a=Math.floor(n/7);if(a<4)return `${a}W`;let s=Math.floor(n/30);return s<12?`${s}M`:`${Math.floor(n/365)}Y`};var MM=hf.gql`
|
|
993
|
+
`;var $C=()=>{var u;let{chatApiUrl:e,user:t,page:o}=M(),{searchMessage:r,selectedChat:n}=it(),a=usehooks.useDebounce(r,400),s=m=>j(void 0,[m],function*({pageParam:g=1}){var b,x;let v={body:a};return o!=null&&o.id&&(v.pageId=o.id),yield hf__default.default(e!=null?e:"",XC,{conversationId:(b=n==null?void 0:n.conversationId)!=null?b:"",options:{filter:v,page:g,perPage:20,sort:"createdAt",sortDir:"desc"}},{"x-access-token":(x=t==null?void 0:t.accessToken)!=null?x:""})}),i=a!=null&&a.length?["page-messages",n==null?void 0:n.conversationId,a,o==null?void 0:o.id]:["page-messages",n==null?void 0:n.conversationId,o==null?void 0:o.id],{data:l,isLoading:d,fetchNextPage:c,hasNextPage:p}=yt({queryKey:i,queryFn:s,initialPageParam:1,enabled:!!(n!=null&&n.conversationId)&&!!(o!=null&&o.id),staleTime:0,getNextPageParam:g=>{var v;let m=(v=g==null?void 0:g.getMessagesByConversation)==null?void 0:v.meta;if(m)return ((m==null?void 0:m.currentPage)||0)<((m==null?void 0:m.total)||0)?((m==null?void 0:m.currentPage)||0)+1:void 0}});return {messages:(u=l==null?void 0:l.pages.flatMap(g=>{var m,v;return (v=(m=g==null?void 0:g.getMessagesByConversation)==null?void 0:m.data)!=null?v:[]}).reverse())!=null?u:[],isGettingMessages:d,fetchNextPage:c,hasNextPage:p}};function RC(e){let{fetchNextPage:t,hasNextPage:o,isGettingMessages:r,messages:n}=$C(),a=o||false,s=J.useRef(null),i=J.useRef(0),l=J.useRef(null),[d,c]=J.useState(false),[p,f]=J.useState(false),[u,g]=J.useState(0),[m,v]=J.useState(false),h=J.useRef(true),[b]=EM__default.default({loading:r,hasNextPage:o,onLoadMore:()=>{s.current&&(i.current=s.current.scrollHeight),t();},disabled:!o,rootMargin:"200px 0px 0px 0px"}),x=J.useRef((n==null?void 0:n.length)||0);J.useEffect(()=>{let A=(e==null?void 0:e.current)||s.current;if(!A||!(n!=null&&n.length))return;let k=n.length,N=k>x.current;if(x.current=k,h.current&&!r){h.current=false,setTimeout(()=>{l.current&&l.current.scrollIntoView({behavior:"auto"}),setTimeout(()=>{let I=A.scrollHeight,P=A.scrollTop,S=A.clientHeight,D=I-P-S;f(D<=50);},100);},100);return}p?(l.current&&l.current.scrollIntoView({behavior:"auto"}),c(false),g(0),v(false)):N&&(c(true),g(I=>I+1),v(true),setTimeout(()=>v(false),500));},[n,p,r,e]);let w=J.useRef(p);J.useEffect(()=>{let A=(e==null?void 0:e.current)||s.current;if(!A)return;let k=()=>{let I=A.scrollHeight,P=A.scrollTop,S=A.clientHeight,T=I-P-S<=50;w.current!==T&&(w.current=T,f(T),T&&(c(false),g(0)));},N=setTimeout(()=>{k();},200);return A.addEventListener("scroll",k),()=>{clearTimeout(N),A.removeEventListener("scroll",k);}},[e]),J.useEffect(()=>{if(r&&i.current&&s.current){let A=s.current,k=A.scrollHeight-i.current;A.scrollTop=k+A.scrollTop;}},[r]);let C=J.useCallback(()=>{l.current&&l.current.scrollIntoView({behavior:"smooth"}),c(false),g(0),f(true);},[]);return {containerRef:s,infiniteRef:b,lastMessageRef:l,messages:n,isGettingMessages:r,hasNewMessages:d,newMessageCount:u,isAtBottom:p,isAnimatingUp:m,scrollToBottom:C,hasNextPage:a}}function Xu({containerRef:e}){var R;let{setHasMessages:t,hasMessages:o,messageAction:r}=Qo(),{user:n,locale:a,page:s}=M(),i=O(a,"empty-chat"),{selectedChat:l,messages:d,forwardMessageIds:c,clearForwardMessages:p}=it(),{infiniteRef:f,lastMessageRef:u,messages:g,isGettingMessages:m,hasNewMessages:v,newMessageCount:h,scrollToBottom:b,isAtBottom:x}=RC(e),w=J.useRef(b),C=J.useRef({isAtBottom:x,hasNewMessages:v,newMessageCount:h}),A=J.useRef(true);J.useEffect(()=>{w.current=b;},[b]),J.useEffect(()=>{if(A.current){A.current=false,C.current={isAtBottom:x,hasNewMessages:v,newMessageCount:h};return}if(!(C.current.isAtBottom!==x||C.current.hasNewMessages!==v||C.current.newMessageCount!==h))return;C.current={isAtBottom:x,hasNewMessages:v,newMessageCount:h};let _=setTimeout(()=>{window.dispatchEvent(new CustomEvent("chatScrollState",{detail:{isAtBottom:x,scrollToBottom:w.current,hasNewMessages:v,newMessageCount:h}}));},0);return ()=>clearTimeout(_)},[x,v,h]),J.useEffect(()=>{t==null||t(false);},[o]);function k(V){if(!V)return null;if(typeof V=="number"){let _=new Date(V);return isNaN(_.getTime())?null:_}if(typeof V=="string"&&V.includes("T")){let _=new Date(V);return isNaN(_.getTime())?null:_}if(typeof V=="string")try{let _=dateFns.parse(V,"yyyy-MM-dd HH:mm:ss",new Date);return isNaN(_.getTime())?null:_}catch(_){return null}return null}function N(V){return isNaN(V==null?void 0:V.getTime())?"":dateFns.isToday(V)?O(a,"today"):dateFns.isYesterday(V)?O(a,"yesterday"):dateFns.format(V,"MMMM d, yyyy")}let I=V=>{var _;return (r==null?void 0:r.action)==="MESSAGE_DELETED"&&(r==null?void 0:r.conversationId)===(l==null?void 0:l.conversationId)&&((_=r==null?void 0:r.messagesIds)==null?void 0:_.includes(V))},P=V=>{if(V!=null&&V.actions)switch(V.actions){case "removedAdmin":return {type:"removedAdmin",text:O(a,"admin-removed",{name:(V==null?void 0:V.body)||""}),icon:J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-orange-500"})};case "madeAdmin":return {type:"madeAdmin",text:O(a,"admin-promoted",{name:(V==null?void 0:V.body)||""}),icon:J__namespace.default.createElement(lucideReact.Crown,{size:14,className:"text-yellow-500"})};case "remove":return {type:"remove",text:O(a,"user-removed",{name:(V==null?void 0:V.body)||""}),icon:J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-red-500"})};default:return null}return null},S=V=>!(I(V==null?void 0:V.id)||V!=null&&V.actions&&["removedAdmin","madeAdmin","remove"].includes(V.actions)),D=!m&&(g==null?void 0:g.length)===0,T=m&&(g==null?void 0:g.length)===0,L=m&&(g==null?void 0:g.length)>0,E=J.useRef(false);J.useEffect(()=>{E.current=false;},[l==null?void 0:l.conversationId]),J.useEffect(()=>{!m&&(g==null?void 0:g.length)>0&&(E.current=true);},[m,g==null?void 0:g.length]);let B=m&&!E.current,W=[],q=(l==null?void 0:l.conversationId)||(l!=null&&l.id?`temp-${l.id}`:null),Y=q?((R=d==null?void 0:d[q])==null?void 0:R.filter(V=>V==null?void 0:V.isTemporary))||[]:[],H=null;if(g==null||g.forEach(V=>{if(!S(V))return;let _=k(V==null?void 0:V.createdAt);if(!_)return;let $=N(_);H!==$&&(W.push({type:"date",dateLabel:$,id:`date-${$}`}),H=$);let oe=P(V);oe?W.push({type:"system",content:oe.text,icon:oe.icon,id:`system-${V==null?void 0:V.id}`,timestamp:_}):W.push({type:"message",msg:V});}),Y==null||Y.forEach(V=>{let _=new Date(V==null?void 0:V.timestamp),$=N(_);H!==$&&(W.push({type:"date",dateLabel:$,id:`date-${$}`}),H=$),W.push({type:"message",msg:V});}),(r==null?void 0:r.conversationId)===(l==null?void 0:l.conversationId)&&(r!=null&&r.action)&&r.action!=="MESSAGE_DELETED"){let V=new Date,_=N(V);H!==_&&(W.push({type:"date",dateLabel:_,id:`date-${_}`}),H=_);let $="",oe=null;switch(r.action){case "removedAdmin":$=O(a,"admin-removed",{name:(r==null?void 0:r.userName)||""}),oe=J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-orange-500"});break;case "madeAdmin":$=O(a,"admin-promoted",{name:(r==null?void 0:r.userName)||""}),oe=J__namespace.default.createElement(lucideReact.Crown,{size:14,className:"text-yellow-500"});break;case "remove":$=O(a,"user-removed",{name:(r==null?void 0:r.userName)||""}),oe=J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-red-500"});break}$&&W.push({type:"system",content:$,icon:oe,id:`system-action-${Date.now()}`,timestamp:V});}let z=({content:V,icon:_})=>J__namespace.default.createElement("div",{className:"flex justify-center my-2"},J__namespace.default.createElement("div",{className:"flex items-center gap-2 bg-gray-100 px-3 py-1.5 rounded-full max-w-xs"},_,J__namespace.default.createElement("span",{className:"text-xs text-gray-600 font-medium text-center"},V)));return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"w-full relative min-h-0"},J__namespace.default.createElement("div",{className:U(D||T?"flex items-center justify-center flex-1 w-full":"flex flex-col flex-1 p-4 gap-[1.5rem] rounded-lg w-full")},J__namespace.default.createElement("div",{ref:f,className:"pointer-events-none"}),T&&J__namespace.default.createElement("div",{className:"flex flex-col gap-4 w-full"},J__namespace.default.createElement(en,null),J__namespace.default.createElement(en,{isOwnMessage:true}),J__namespace.default.createElement(en,null)),D&&J__namespace.default.createElement("div",{className:"flex flex-1 items-center justify-center !w-full !h-[50dvh]"},J__namespace.default.createElement("span",{className:"text-gray-500 text-center"},i)),!T&&!D&&(W==null?void 0:W.map((V,_)=>{var ne,me,Me,Se,Ze,ze;if(V.type==="date")return J__namespace.default.createElement("div",{key:V.id,className:"flex items-center my-4"},J__namespace.default.createElement("div",{className:"flex-grow border-t border-gray-300"}),J__namespace.default.createElement("span",{className:"mx-4 text-xs text-gray-500 font-medium"},V.dateLabel),J__namespace.default.createElement("div",{className:"flex-grow border-t border-gray-300"}));if(V.type==="system")return J__namespace.default.createElement(z,{key:V.id,content:V.content,icon:V.icon});if(I((ne=V.msg)==null?void 0:ne.id))return J__namespace.default.createElement("div",{key:(me=V.msg)==null?void 0:me.id,className:"flex justify-center my-1"},J__namespace.default.createElement("div",{className:"flex items-center gap-2 bg-gray-100 px-3 py-1.5 rounded-full max-w-xs"},J__namespace.default.createElement(lucideReact.Trash2,{size:14,className:"text-gray-500"}),J__namespace.default.createElement("span",{className:"text-xs text-gray-500 italic"},O(a,"message-deleted"))));let oe=((Me=V==null?void 0:V.msg)==null?void 0:Me.senderId)===(s==null?void 0:s.id),K=c.includes((Ze=(Se=V==null?void 0:V.msg)==null?void 0:Se.id)!=null?Ze:"");return J__namespace.default.createElement("div",{key:(ze=V==null?void 0:V.msg)==null?void 0:ze.id,className:"relative"},c.length>0&&J__namespace.default.createElement("div",{className:"absolute flex items-center h-full z-10",style:{left:"0",paddingRight:oe?"0.5rem":"0",paddingLeft:oe?"0":"0.5rem"}},J__namespace.default.createElement("input",{type:"checkbox",checked:K,onChange:()=>{var mt,Ct;let{selectForwardMessage:Ye}=it.getState();Ye((Ct=(mt=V==null?void 0:V.msg)==null?void 0:mt.id)!=null?Ct:"");},onClick:Ye=>Ye.stopPropagation(),className:"w-4 h-4 text-primary border-gray-300 rounded focus:ring-primary cursor-pointer"})),J__namespace.default.createElement(pc,{message:V==null?void 0:V.msg,isOwnMessage:oe,ref:_===(W==null?void 0:W.length)-1?u:void 0}))})),!T&&!D&&(L||B)&&J__namespace.default.createElement("div",{className:"flex flex-col gap-4 w-full mb-2"},J__namespace.default.createElement(en,null),J__namespace.default.createElement(en,{isOwnMessage:true}),J__namespace.default.createElement(en,null)))))}var tM="pending_chat_data",oM=60*30;function rM(e){if(!(typeof window=="undefined"||!e))try{let t=cookiesNext.getCookie(tM);if(!t||typeof t!="string")return;let o=decodeURIComponent(atob(t)),r=JSON.parse(o);(r==null?void 0:r.id)===e&&cookiesNext.deleteCookie(tM,{path:"/"});}catch(t){}}var nM=()=>{let{sendMessage:e}=Qo(),{page:t,user:o,queryClient:r}=M(),{selectedChat:n,chatHeaderOption:a,onSelectChat:s,onSelectChatHeaderOption:i}=it(),l=["page-messages",n==null?void 0:n.conversationId],{mutate:d,isPending:c}=ge({mutationFn:f=>j(void 0,[f],function*({createMessageInput:p}){let u=n==null?void 0:n.id,g=F(y({},p),{senderId:t==null?void 0:t.id,pageId:t==null?void 0:t.id,participants:[u,t==null?void 0:t.id].filter(Boolean)});return e(g),g}),onMutate({createMessageInput:p}){let f={conversationId:n==null?void 0:n.conversationId,body:p==null?void 0:p.body,senderId:t==null?void 0:t.id,createdAt:new Date,updatedAt:new Date};H3({conversationId:n==null?void 0:n.conversationId,message:f,queryClient:r}),O3({conversationId:n==null?void 0:n.conversationId,chatHeaderOption:a,pageId:t==null?void 0:t.id,message:f,queryClient:r});},onError(){r==null||r.invalidateQueries({queryKey:l}),r==null||r.invalidateQueries({queryKey:["page-conversations",t==null?void 0:t.id,a]});},onSuccess(){r==null||r.invalidateQueries({queryKey:l}),r==null||r.invalidateQueries({queryKey:["page-conversations",t==null?void 0:t.id,a]}),i==null||i("filter-all"),s==null||s(n),n!=null&&n.id&&rM(n.id);}});return {sendMessage:d,isSendingAMessage:c}};var lV=e=>e.type.startsWith("image/")?e.type==="image/gif"?"gif":"image":e.type.startsWith("video/")?"video":"file";function sM(){let{uploadMultipleFiles:e}=B2(),{onSelectChat:t,draftMessages:o,setDraftMessage:r,replyMessage:n,setReplyMessage:a,addTemporaryMessage:s,removeTemporaryMessage:i}=it(),{conversationExists:l}=G2(),{createANewConversation:d}=lm(),{sendMessage:c}=nM(),{locale:p,page:f}=M(),[u,g]=J.useState([]),[m,v]=J.useState(false),h=it(P=>P.selectedChat),b=(h==null?void 0:h.conversationId)||(h!=null&&h.id?`temp-${h.id}`:null),x=b&&o[b]||"",w=P=>{b&&r(b,P);},C=(P,S)=>{let D=P instanceof File?P:new File([P],"audio-message.webm",{type:"audio/webm"}),T={file:D,type:S,previewUrl:S==="media"||S==="audio"?URL.createObjectURL(D):void 0};g(L=>[...L,T]);},A=P=>{g(S=>S.filter((D,T)=>T!==P));},k=P=>{if(!b)return;let S=((P==null?void 0:P.convertedBody)||x).trim();if(!S&&u.length===0&&!n)return;let D=[];u.length>0&&u.forEach(L=>{let E=L.type==="media"?lV(L.file):L.type,B=`sending.${E}`,W=O(p||"pt",B),q=crypto.randomUUID();D.push(q),s(b,W,E,q);});let T=L=>{let E=B=>{let W={conversationId:L,body:S||void 0,attachments:B,replyMessageId:n==null?void 0:n.id,mentions:P==null?void 0:P.mentions};c({createMessageInput:W}),D.forEach(q=>i(L,q));};u.length>0?e({files:u.map(B=>B.file),path:`chat/${L}`,ownerType:"chat"},{onSuccess(B){let W=B.map((q,Y)=>({type:u[Y].type,url:q}));E(W);},onError(){D.forEach(B=>i(L,B));}}):E();};if(h!=null&&h.conversationId)T(h.conversationId);else if(l(b))T(b);else {let L=h!=null&&h.id?{id:h.id,name:h.name,avatar:h.avatar}:void 0;if(!(L!=null&&L.id)){console.error("N\xE3o \xE9 poss\xEDvel criar conversa: targetUser.id n\xE3o est\xE1 definido");return}d(L,E=>{var W;let B=(W=E==null?void 0:E.createConversation)==null?void 0:W.id;B&&(it.getState().replaceTempConversationId(b,B),t==null||t(F(y({},h),{conversationId:B})),T(B));});}w(""),g([]),a==null||a(null);},N=P=>{P.key==="Enter"&&!P.shiftKey&&(P.preventDefault(),k());};J.useEffect(()=>()=>{u.forEach(P=>P.previewUrl&&URL.revokeObjectURL(P.previewUrl));},[u]);let I=x.trim().length>0||u.length>0||!!n;return {message:x,attachedFiles:u,isRecording:m,setIsRecording:v,setDraft:w,attachFile:C,removeFile:A,send:k,handleKeyDown:N,hasMessageOrFiles:I,replyMessage:n,setReplyMessage:a}}function Ru(){let {isMobile:e}=Ne(),{selectedChat:t}=it(),o=J.useRef(null);J.useRef(null);let n=J.useRef(null),[a,s]=J.useState(false),[i,l]=J.useState(""),d=J.useMemo(()=>t!=null&&t.participants?t.participants.map(H=>{let z=(H==null?void 0:H.user)||H;return !(z!=null&&z.id)||!(z!=null&&z.name)?null:{id:z.id,name:z.name,avatar:z.avatar,slug:z.slug}}).filter(H=>H!==null):[],[t==null?void 0:t.participants]),c=J.useMemo(()=>{if(d.length!==0)return {participants:{type:"participants",trigger:"@",items:d,renderItem:(H,z)=>J__namespace.default.createElement("div",{className:`flex items-center gap-2 p-2 cursor-pointer ${z?"bg-blue-50 text-primary":"hover:bg-gray-50"}`},J__namespace.default.createElement(ae,{src:H.avatar,name:H.name,className:"w-6 h-6"}),J__namespace.default.createElement("span",{className:"text-sm font-medium"},H.name))}}},[d]),{message:p,attachedFiles:f,isRecording:u,setIsRecording:g,setDraft:m,attachFile:v,removeFile:h,send:b,handleKeyDown:x,hasMessageOrFiles:w,replyMessage:C}=sM(),A=d.length>0&&(t==null?void 0:t.isGroup)===true;W2({mentions:c,onSubmit:H=>{var z;if(H.content){let G=ec(H.content);m(G);let R=((z=H.participants)==null?void 0:z.map(V=>({mentionedId:V.id})))||[];b({mentions:R,convertedBody:G});}}});W2({onSubmit:H=>{H.content&&(m(H.content),b());}});let {showMentionDropdown:P,filteredParticipants:S,selectedMentionIndex:D,mentionPosition:T,handleMentionInput:L,insertMention:E,handleKeyNavigation:B}=Lp({participants:d,shouldUseMentions:A,textAreaRef:o,onInsertMention:(H,z)=>{l(H),m(H);}}),W=()=>{if(A&&c){let H=i.trim();if(H){let z=ec(H),G=d.filter(R=>H.includes(`@${R.name}`)).map(R=>({mentionedId:R.id}));b({mentions:G,convertedBody:z});}else (f.length>0||C)&&b();}else (p.trim()||f.length>0||C)&&b();},q=A?i.trim().length>0||f.length>0||!!C:w,Y=H=>{let z=H.emoji,G=o.current;if(!G)return;let R=G.selectionStart,V=G.selectionEnd;if(A){let _=i.substring(0,R)+z+i.substring(V),$=_.length>0?_.charAt(0).toUpperCase()+_.slice(1):_;l($),m($);}else {let _=p.substring(0,R)+z+p.substring(V);m(_.length>0?_.charAt(0).toUpperCase()+_.slice(1):_);}requestAnimationFrame(()=>{G.focus(),G.selectionStart=G.selectionEnd=R+z.length;});};return J__namespace.default.createElement("div",{className:"flex flex-col gap-2"},u&&J__namespace.default.createElement("div",{className:"flex items-center gap-2 p-2 bg-gray-50 rounded-lg"},J__namespace.default.createElement(Ip,{onSend:H=>{v(H,"audio"),g(false);},onCancel:()=>g(false)})),f.length>0&&J__namespace.default.createElement("div",{className:"flex gap-2 overflow-x-auto pb-2"},f.map((H,z)=>{var G;return J__namespace.default.createElement("div",{key:z,className:"relative flex-shrink-0"},H.type==="media"&&H.previewUrl&&J__namespace.default.createElement("div",{className:"relative w-20 h-20 rounded-lg overflow-hidden"},J__namespace.default.createElement("img",{src:H.previewUrl,alt:"Preview",className:"w-full h-full object-cover"}),J__namespace.default.createElement("button",{onClick:()=>h(z),className:"absolute top-1 right-1 bg-red-500 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs"},"\xD7")),H.type==="audio"&&J__namespace.default.createElement(K2,{src:(G=H.previewUrl)!=null?G:""}))})),J__namespace.default.createElement("div",{className:"flex items-end gap-2 w-full"},A?J__namespace.default.createElement(Rd,{ref:o,placeholder:"Digite sua mensagem...",value:i,onChange:H=>{let z=H.target.value,G=z.length>0?z.charAt(0).toUpperCase()+z.slice(1):z;l(G),m(G);},onMentionDetected:L,onKeyDown:H=>{let z=B(H);if(z==="select"){E(S[D],i);return}z||H.key==="Enter"&&!H.shiftKey&&(H.preventDefault(),W());},onFocus:()=>{e&&setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"});},300);},maxRows:8,className:e?"w-full max-h-26 shadow-xs !h-full gap-2 px-3 py-2 rounded-[1.5rem] border border-[#E4EBF1] flex items-center !bg-white flex-1":"w-full max-h-26 shadow-xs !h-full gap-[0.625rem] px-6 py-[1rem] rounded-[1rem] border border-[#E4EBF1] flex items-center !bg-white",inputClassName:"flex-1 w-full !h-auto leading-5 resize-none",leftIcon:J__namespace.default.createElement(U2,{onAttach:v}),rightIcon:J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement(q2,{showPicker:a,onTogglePicker:s,onSelect:Y}),!i.trim()&&J__namespace.default.createElement(_2,{hasMessage:q,onStart:()=>g(true)}),(i.trim()||f.length>0||!!C)&&J__namespace.default.createElement(V2,{hasMessage:q,onClick:W}))}):J__namespace.default.createElement(U1,{ref:o,placeholder:"Digite sua mensagem...",value:p,onChange:H=>{let z=H.target.value,G=z.length>0?z.charAt(0).toUpperCase()+z.slice(1):z;m(G);},onKeyDown:x,onFocus:()=>{e&&setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"});},300);},maxRows:8,className:e?"w-full max-h-26 shadow-xs !h-full gap-2 px-3 py-2 rounded-[1.5rem] border border-[#E4EBF1] flex items-center !bg-white flex-1":"w-full max-h-26 shadow-xs !h-full gap-[0.625rem] px-6 py-[1rem] rounded-[1rem] border border-[#E4EBF1] flex items-center !bg-white",inputClassName:"flex-1 w-full !h-auto leading-5 resize-none",leftIcon:J__namespace.default.createElement(U2,{onAttach:v}),rightIcon:J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement(q2,{showPicker:a,onTogglePicker:s,onSelect:Y}),!p.trim()&&J__namespace.default.createElement(_2,{hasMessage:q,onStart:()=>g(true)}),(p.trim()||f.length>0||!!C)&&J__namespace.default.createElement(V2,{hasMessage:q,onClick:W}))})),P&&A&&J__namespace.default.createElement(Dp,{participants:S,selectedIndex:D,position:T,onSelectParticipant:H=>{E(H,i);}}),J__namespace.default.createElement(react.AnimatePresence,null,a&&J__namespace.default.createElement(react.motion.div,{ref:n,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"absolute bottom-full right-0 mb-2 z-50"})))}function pV(){let{selectedChat:e}=it(),{isMobile:t}=Ne(),{page:o}=M();return J__namespace.default.createElement("div",{className:U("!w-full !h-full !flex !flex-col !gap-6 !p-6 !bg-white !border !border-[#E4EBF1] !rounded-xl !box-border !flex-1 !min-h-0","lg:!max-w-[44.188rem] lg:!max-h-[62.25rem]","md:!max-w-[90vw] md:!p-5 md:!gap-5","sm:!rounded-lg sm:!p-4 sm:!gap-4 sm:!h-auto sm:!max-h-[85vh]","max-sm:!max-w-full max-sm:!border-0 max-sm:!rounded-none max-sm:!h-[100vh] max-sm:!p-3 max-sm:!gap-3")},e?J__namespace.default.createElement(J__namespace.default.Fragment,null,!t&&J__namespace.default.createElement(Yu,null),J__namespace.default.createElement("div",{className:"!flex-1 !min-h-0 !overflow-y-auto !scroll-smooth !pb-24 scrollbar-hide"},J__namespace.default.createElement(Xu,null)),J__namespace.default.createElement(Ni,null),J__namespace.default.createElement(Ru,null)):J__namespace.default.createElement(om,null))}var dM={sharePost:"Share post",repostPost:"Repost post",addDescriptionToRepost:"Add a description to your repost...",startPost:"Start a post...",shareNow:"Share now",repost:"Repost",share:"Share",shareInChat:"Share in chat",searchContacts:"Search contacts",shareIn:"Share on",all:"All",connections:"Connections",communities:"Communities",facebook:"Facebook",linkedin:"LinkedIn",pages:"Pages",copyLink:"Copy link",linkCopied:"Link copied to clipboard!",selectPageToShare:"Select page to share",cancel:"Cancel",sharing:"Sharing...",errorSharingPost:"Error sharing post",errorSharingMessage:"An error occurred while sharing the post",noContactsFound:"No contacts found",tryDifferentSearch:"Try a different search",shareProfile:"Share profile",shareInCommunity:"Share in community",noCommunitiesAvailable:"No communities available to share.",noPagesAvailable:"No pages available to share.",shareProfilePersonalMessage:"Hello, I would like to share my profile with you.",shareProfileMessage:"Hello, I would like to share this profile with you. Check it out:",errorUploadTitle:"Upload error",errorUploadMessage:"Could not upload QR code.",errorUploadImageMessage:"Could not get image URL.",errorProfileInfo:"Profile information not available.",profileSharedTitle:"Profile shared",profileSharedMessage:"Profile shared successfully!",errorSharingProfileTitle:"Error sharing",errorSharingProfileMessage:"An error occurred while sharing the profile."};var cM={sharePost:"Partager la publication",repostPost:"Republier la publication",addDescriptionToRepost:"Ajouter une description \xE0 votre republication...",startPost:"Commencer une publication...",shareNow:"Partager maintenant",repost:"Republier",share:"Partager",shareInChat:"Partager dans le chat",searchContacts:"Rechercher des contacts",shareIn:"Partager sur",all:"Tous",connections:"Connexions",communities:"Communaut\xE9s",facebook:"Facebook",linkedin:"LinkedIn",pages:"Pages",copyLink:"Copier le lien",linkCopied:"Lien copi\xE9 dans le presse-papiers !",selectPageToShare:"S\xE9lectionner la page \xE0 partager",cancel:"Annuler",sharing:"Partage en cours...",errorSharingPost:"Erreur lors du partage de la publication",errorSharingMessage:"Une erreur s'est produite lors du partage de la publication",noContactsFound:"Aucun contact trouv\xE9",tryDifferentSearch:"Essayez une recherche diff\xE9rente",shareProfile:"Partager le profil",shareInCommunity:"Partager dans la communaut\xE9",noCommunitiesAvailable:"Aucune communaut\xE9 disponible pour partager.",noPagesAvailable:"Aucune page disponible pour partager.",shareProfilePersonalMessage:"Bonjour, j'aimerais partager mon profil avec vous.",shareProfileMessage:"Bonjour, j'aimerais partager ce profil avec vous. D\xE9couvrez-le :",errorUploadTitle:"Erreur de t\xE9l\xE9chargement",errorUploadMessage:"Impossible de t\xE9l\xE9charger le code QR.",errorUploadImageMessage:"Impossible d'obtenir l'URL de l'image.",errorProfileInfo:"Informations du profil non disponibles.",profileSharedTitle:"Profil partag\xE9",profileSharedMessage:"Profil partag\xE9 avec succ\xE8s !",errorSharingProfileTitle:"Erreur de partage",errorSharingProfileMessage:"Une erreur s'est produite lors du partage du profil."};var pM={sharePost:"Compartilhar publica\xE7\xE3o",repostPost:"Repostar publica\xE7\xE3o",addDescriptionToRepost:"Adicionar uma descri\xE7\xE3o ao seu repost...",startPost:"Comece uma publica\xE7\xE3o...",shareNow:"Compartilhar agora",repost:"Repost",share:"Compartilhar",shareInChat:"Compartilhar no chat",searchContacts:"Pesquisar contatos",shareIn:"Compartilhar em",all:"Todos",connections:"Conex\xF5es",communities:"Comunidades",facebook:"Facebook",linkedin:"LinkedIn",pages:"P\xE1ginas",copyLink:"Copiar link",linkCopied:"Link copiado para a \xE1rea de transfer\xEAncia!",selectPageToShare:"Selecionar p\xE1gina para partilhar",cancel:"Cancelar",sharing:"Partilhando...",errorSharingPost:"Erro ao compartilhar publica\xE7\xE3o",errorSharingMessage:"Ocorreu um erro ao compartilhar a publica\xE7\xE3o",noContactsFound:"Nenhum contato encontrado",tryDifferentSearch:"Tente uma pesquisa diferente",shareProfile:"Partilhar perfil",shareInCommunity:"Compartilhar na comunidade",noCommunitiesAvailable:"Nenhuma comunidade dispon\xEDvel para compartilhar.",noPagesAvailable:"Nenhuma p\xE1gina dispon\xEDvel para compartilhar.",shareProfilePersonalMessage:"Ol\xE1, gostaria de partilhar com voc\xEA o meu perfil.",shareProfileMessage:"Ol\xE1, gostaria de compartilhar este perfil com voc\xEA. Confira:",errorUploadTitle:"Erro ao fazer upload",errorUploadMessage:"N\xE3o foi poss\xEDvel fazer upload do QR code.",errorUploadImageMessage:"N\xE3o foi poss\xEDvel obter a URL da imagem.",errorProfileInfo:"Informa\xE7\xF5es do perfil n\xE3o dispon\xEDveis.",profileSharedTitle:"Perfil compartilhado",profileSharedMessage:"Perfil compartilhado com sucesso!",errorSharingProfileTitle:"Erro ao compartilhar",errorSharingProfileMessage:"Ocorreu um erro ao compartilhar o perfil."};var mV={pt:y({},pM),en:y({},dM),fr:y({},cM)};function se(e,t){return mV[e][t]}function t8({postId:e,onClose:t,searchTerm:o=""}){let[r,n]=J.useState(""),{isSendingMessageIntoChat:a,sendMessageIntoChat:s}=qx(),{user:i,locale:l}=M(),{conversationId:d,isCheckingConversation:c}=Yp(r),{createANewConversation:p,isCreatingANewConversation:f}=vp({avatar:"",id:r,name:""}),{contacts:u,isFetchingNextPage:g,fetchNextPage:m,hasNextPage:v,isGettingContacts:h}=zn({perPage:50,slug:i==null?void 0:i.slug,sort:"",sortDir:"",filter:{name:o.trim()||null,slug:null}}),b=J.useRef(null),x=J.useRef(null),w=J.useRef(false),C=J.useCallback(P=>{P[0].isIntersecting&&v&&!g&&m();},[m,v,g]);J.useEffect(()=>{let P={root:b.current,rootMargin:"0px",threshold:1},S=new IntersectionObserver(C,P);return x.current&&S.observe(x.current),()=>{x.current&&S.unobserve(x.current);}},[C]);let A=J.useCallback(P=>{c||a||f||n(P);},[c,a,f]);J.useEffect(()=>{if(!r||!e||w.current)return;j(this,null,function*(){if(w.current=true,d!=null&&d.length){s({conversationId:d,postId:e}),t==null||t(),w.current=false;return}p(void 0,{onSuccess(S){var D;s({conversationId:(D=S==null?void 0:S.createConversation)==null?void 0:D.id,postId:e}),t==null||t();},onSettled(){w.current=false;}});});},[r,d,e,p,s,t]);let k=()=>Array.from({length:6}).map((P,S)=>J__namespace.default.createElement("div",{key:S,className:"flex flex-col items-center text-center min-w-[64px] sm:min-w-[72px]"},J__namespace.default.createElement(Zt,{className:"h-12 w-12 rounded-full mb-1 sm:h-14 sm:w-14"}),J__namespace.default.createElement(Zt,{className:"h-3 w-[48px] sm:w-[56px]"}))),N=()=>J__namespace.default.createElement("div",{className:"flex flex-col items-center justify-center w-full text-center"},J__namespace.default.createElement("div",{className:"text-gray-shade8 mb-2"},J__namespace.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5"},J__namespace.default.createElement("path",{d:"M16 16l4 4"}),J__namespace.default.createElement("circle",{cx:"10",cy:"10",r:"6"}))),J__namespace.default.createElement("p",{className:"text-sm text-gray-shade8"},o.trim()?`${se(l!=null?l:"pt","noContactsFound")} "${o.trim()}"`:se(l!=null?l:"pt","noContactsFound")),o.trim()&&J__namespace.default.createElement("p",{className:"text-xs text-gray-shade8 mt-1"},se(l!=null?l:"pt","tryDifferentSearch"))),I=h||a||c||f;return J__namespace.default.createElement("div",{className:U("w-full overflow-x-auto scrollbar-thin scrollbar-thumb-muted scrollbar-track-transparent","hover:scrollbar-thumb-gray-shatext-gray-shade8 scroll-smooth snap-x","overflow-y-hidden touch-pan-x"),ref:b},J__namespace.default.createElement("div",{className:"flex gap-4 py-2 min-w-max"},h&&k(),!h&&(u==null?void 0:u.length)===0&&N(),!h&&(u==null?void 0:u.length)>0&&(u==null?void 0:u.map(P=>{var T;let S=(T=P==null?void 0:P.followed)!=null?T:P==null?void 0:P.follower,D=I;return J__namespace.default.createElement("div",{key:P.id,onClick:()=>!D&&A(S==null?void 0:S.id),className:U("flex flex-col items-center text-center min-w-[64px] sm:min-w-[72px]","transition-opacity select-none",D?"opacity-50 cursor-not-allowed":"cursor-pointer hover:opacity-80")},J__namespace.default.createElement(ae,{src:S==null?void 0:S.avatar,name:S==null?void 0:S.name,className:"mb-1"}),J__namespace.default.createElement("span",{className:"text-sm text-gray-shade8 truncate w-[64px] sm:w-[72px]"},S==null?void 0:S.name))})),!h&&(u==null?void 0:u.length)>0&&J__namespace.default.createElement("div",{ref:x,className:"flex items-center justify-center min-w-[80px]"},g&&k(),!g&&v&&J__namespace.default.createElement("span",{className:"text-xs text-gray-shade8 animate-pulse"},"\u22EF"))),J__namespace.default.createElement("div",{className:"absolute right-0 top-0 bottom-0 w-10 bg-gradient-to-l from-background pointer-events-none"}))}var Z1=zustand.create(e=>({isDownloadModalOpen:false,openDownloadModal:()=>e({isDownloadModalOpen:true}),closeDownloadModal:()=>e({isDownloadModalOpen:false}),toggleDownloadModal:()=>e(t=>({isDownloadModalOpen:!t.isDownloadModalOpen}))}));var ym=()=>{let{locale:e="pt"}=M(),t=o=>he(e,o);return {title:t("download.banner.title"),subtitle:t("download.banner.subtitle"),button:t("download.banner.button"),trigger:t("download.banner.trigger")}};function gV(e){let{fontSize:t=20}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 24 24",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M17.554 7.296c2.451 0 4.446 2.06 4.446 4.592v5.032c0 2.526-1.99 4.58-4.436 4.58H6.448C3.996 21.5 2 19.441 2 16.91v-5.033c0-2.525 1.991-4.58 4.438-4.58h11.116z",fill:"#fff"}),J__namespace.createElement("path",{d:"M12.546 16.037l2.91-2.967c.3-.307.3-.8-.003-1.107a.762.762 0 00-1.089.002l-1.593 1.626V3.282a.777.777 0 00-.77-.782.776.776 0 00-.77.782v10.309l-1.594-1.626a.762.762 0 00-1.089-.002.788.788 0 00-.002 1.107l2.91 2.967c.144.148.34.231.544.231a.766.766 0 00.546-.23z",fill:"#fff"}))}var hV=J__namespace.memo(gV),fM=hV;var vV="mirantes-b2c-app://",yV="https://apps.apple.com/br/app/mirantes/idYOUR_APP_ID",bV="https://play.google.com/store/apps/details?id=com.desenvolvimentomirantes.mirantes&hl=pt-BR";function gM(){if(typeof window=="undefined")return;let e=Date.now(),t=/iPhone|iPad|iPod/i.test(navigator.userAgent),o=/Android/i.test(navigator.userAgent),r=`${vV}home`;window.location.href=r,setTimeout(()=>{Date.now()-e<2e3&&(t?window.location.href=yV:o&&(window.location.href=bV));},1500);}var xV=e=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},J__namespace.createElement("g",{id:"freepik--background-complete--inject-10"},J__namespace.createElement("path",{fill:"#ebebeb",d:"M0 382.4h500v.25H0zM416.78 398.49h33.12v.25h-33.12zM322.53 401.21h8.69v.25h-8.69zM396.59 389.21h19.19v.25h-19.19zM52.46 390.89h43.19v.25H52.46zM104.56 390.89h6.33v.25h-6.33zM131.47 395.11h93.68v.25h-93.68zM237 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"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M280.25 96.3h148.01v98.39H280.25z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M283.54 96.3h148.01v98.39H283.54z"}),J__namespace.createElement("path",{fill:"#fff",d:"M425.65 102.93v85.13H289.44v-85.13z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M425.65 102.93v85.13h-2.49v-85.13z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M285.98 167.86h143.13v8.9H285.98z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M438 85.32H273.81a.91.91 0 0 0-.91.91.91.91 0 0 0 .91.91H438a.91.91 0 0 0 .91-.91.91.91 0 0 0-.91-.91"}),J__namespace.createElement("circle",{cx:"438.9",cy:"86.23",r:"2.27",fill:"#e6e6e6"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M281.48 91.32a1.23 1.23 0 0 1-1.23-1.22v-2.64a1.23 1.23 0 0 1 1.23-1.23 1.23 1.23 0 0 1 1.22 1.23v2.64a1.22 1.22 0 0 1-1.22 1.22M424.28 91.32a1.23 1.23 0 0 1-1.23-1.22v-2.64a1.24 1.24 0 0 1 1.23-1.23 1.23 1.23 0 0 1 1.23 1.23v2.64a1.23 1.23 0 0 1-1.23 1.22"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M285.98 86.23H437.7v95.6H285.98z",opacity:"0.4"}),J__namespace.createElement("circle",{cx:"296.09",cy:"86.23",r:"2.27",fill:"#e6e6e6"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M377.72 199.16c2.66 3.68-2 7 1.84 10.81s-1.21 7.33-2.09 11.37 5 5.9 5.51 10.9-8.65 11-8.65 11-6.53-1.6-8.89-6.36 2-8-1.09-11.48-9.79-5.48-8.39-10-3.67-6-5.51-10c-.62-1.36-.25-.38.52-1.91 1.93-3.84 5.29-10.72 9.53-11.43 8.92-1.56 13.5 1.94 17.22 7.1"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M379.16 193.1c-3.31 4 1.72 8-3 12.12s.78 8.38 1.44 13-6.13 6.37-7.12 12 8.9 13 8.9 13 7.52-1.39 10.58-6.63-1.62-9.16 2.18-12.94 11.53-5.56 10.31-10.77 4.64-6.52 7.06-11c.87-1.61.47-3.6-.39-5.5a13.88 13.88 0 0 0-10.64-7.82c-5.88-.92-14.67-1.07-19.32 4.54"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M410 227s-.81 22.85-31.58 22.85S346.88 227 346.88 227Z"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M279.68 256.14h29.04v119.73h-29.04zM285.26 375.88h143.2v6.52h-143.2z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M434.03 375.88H308.72V256.15h125.31z"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M423.12 330.31H319.63v-28.6h103.49Zm-102.49-1h101.49v-26.6H320.63ZM423.12 364.06H319.63v-28.59h103.49Zm-102.49-1h101.49v-26.59H320.63Z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M383.4 306.84h-24a2.32 2.32 0 0 1-2.31-2.31 2.32 2.32 0 0 1 2.31-2.32h24a2.32 2.32 0 0 1 2.31 2.32 2.32 2.32 0 0 1-2.31 2.31"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M423.12 296.56H319.63V268h103.49Zm-102.49-1h101.49V269H320.63Z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M383.4 273.09h-24a2.33 2.33 0 0 1-2.31-2.32 2.32 2.32 0 0 1 2.31-2.31h24a2.32 2.32 0 0 1 2.31 2.31 2.33 2.33 0 0 1-2.31 2.32M383.4 340.6h-24a2.33 2.33 0 0 1-2.31-2.32 2.32 2.32 0 0 1 2.31-2.31h24a2.32 2.32 0 0 1 2.31 2.31 2.33 2.33 0 0 1-2.31 2.32"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M308.72 249.85H437.9v6.3H308.72z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M308.72 256.14h-33.1v-6.3h33.1z"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M95.11 82h106.82v121.18H95.11z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M96.68 82h113.99v121.18H96.68z"}),J__namespace.createElement("path",{fill:"#fff",d:"M201.12 91.55v102.08h-94.89V91.55z"}),J__namespace.createElement("rect",{width:"52.6",height:"48.89",x:"127.37",y:"118.14",fill:"#f5f5f5",rx:"9.41",transform:"rotate(90 153.67 142.59)"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M197.47 287.61c-.53 0-1.07 0-1.61.05a23 23 0 0 0-20.55 28.86 114.8 114.8 0 0 1 3.6 29.89v29.34a3.86 3.86 0 0 0 3.85 3.86h93.16v-92Z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M298.86 310.55a22.94 22.94 0 1 0-45.1 6 114.8 114.8 0 0 1 3.6 29.89v29.34a3.85 3.85 0 0 0 3.85 3.86h29.41a3.86 3.86 0 0 0 3.86-3.86v-31.1a105 105 0 0 1 3.55-28 23 23 0 0 0 .83-6.13"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M160.69 323.75h83.61v55.86h-83.61z"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M108.95 250.57h77.18a17.36 17.36 0 0 1 17.36 17.36v68.45H91.58v-68.45a17.36 17.36 0 0 1 17.36-17.36Z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M130 250.57h78.86a16.53 16.53 0 0 1 16.53 16.53v69.28H113.45v-69.29A16.53 16.53 0 0 1 130 250.57"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M166.16 318.65h77.07a5 5 0 0 1 5 5v12.67a5 5 0 0 1-5 5h-77.07a1.51 1.51 0 0 1-1.51-1.51v-19.66a1.51 1.51 0 0 1 1.51-1.5"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M83.34 287.61c-.53 0-1.07 0-1.61.05a23 23 0 0 0-21.29 21.39 23.3 23.3 0 0 0 .74 7.47 114.8 114.8 0 0 1 3.6 29.89v29.34a3.85 3.85 0 0 0 3.85 3.86h93.15v-92Z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M184.73 310.55a22.94 22.94 0 1 0-45.1 6 115.2 115.2 0 0 1 3.59 29.89v29.34a3.86 3.86 0 0 0 3.86 3.86h29.41a3.85 3.85 0 0 0 3.85-3.86v-31.1a104.5 104.5 0 0 1 3.56-28 23 23 0 0 0 .83-6.13"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M274.28 382.4H85a2.79 2.79 0 0 1-2.8-2.79h194.87a2.79 2.79 0 0 1-2.79 2.79"})),J__namespace.createElement("g",{id:"freepik--Shadow--inject-10"},J__namespace.createElement("ellipse",{id:"freepik--path--inject-10",cx:"250",cy:"416.24",fill:"#f5f5f5",rx:"193.89",ry:"11.32"})),J__namespace.createElement("g",{id:"freepik--Character--inject-10"},J__namespace.createElement("path",{fill:"#263238",d:"M308.2 123.37c2.86 5.16 3.1 26.23-2.2 30.55-9.74-1.07-17.49-5.78-17.74-16.87s14.55-23.38 19.94-13.68"}),J__namespace.createElement("path",{fill:"#263238",d:"M297.9 151c-2.56-1.5-6.82 3.44-7.8 11.91-.7 6-12.46-4.14-16.29 5.68-3.94-3-6.21-14.69 5-11.57 7.93 2.19 6.26.87 9.92-4 3.84-5.1 6.73-4.74 9.17-2.02"}),J__namespace.createElement("path",{fill:"#803e3c",d:"m331.63 176.61.91 2.85c.32 1 .66 2 1 2.95.67 2 1.37 4 2.11 5.92s1.47 3.94 2.26 5.9l1.15 3 .29.74.07.17a1.4 1.4 0 0 0-.42-.25c-.22-.08-.31 0-.18 0a2.3 2.3 0 0 0 .71-.11 11 11 0 0 0 2.25-1 42.4 42.4 0 0 0 4.88-3.34c1.62-1.26 3.21-2.61 4.76-4s3.14-2.84 4.65-4.26l3.07 2.6c-1.28 1.84-2.64 3.52-4 5.23s-2.92 3.31-4.5 4.9a40 40 0 0 1-5.28 4.52 17.8 17.8 0 0 1-3.48 1.9 9.5 9.5 0 0 1-2.41.62 6.6 6.6 0 0 1-3.33-.45 6.9 6.9 0 0 1-3.2-3l-.26-.54-.36-.73c-.48-1-1-2-1.42-2.94-.91-2-1.82-4-2.64-6s-1.65-4.06-2.41-6.12c-.37-1-.72-2.09-1.07-3.14s-.66-2.08-1-3.31Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M329.27 167.73c3.44.88 5.85 15.06 5.85 15.06l-9.49 6.46s-9.11-14.31-6.46-18.1c2.76-3.94 5.07-4.7 10.1-3.42"}),J__namespace.createElement("path",{fill:"#263238",d:"M329.27 167.73c3.44.88 5.85 15.06 5.85 15.06l-9.49 6.46s-9.11-14.31-6.46-18.1c2.76-3.94 5.07-4.7 10.1-3.42"}),J__namespace.createElement("path",{d:"m328.96 170.9 2.64 14.29-5.33 3.62z",opacity:"0.3"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m355.91 185.52 3.17-7.64 3.91 7.64s-2.54 3.8-5.89 2.87Z"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m362.57 177.09 5.03 2.02-4.61 6.41-3.91-7.64z"}),J__namespace.createElement("rect",{width:"29.73",height:"29.73",x:"360.51",y:"171.77",fill:"#0B89CE",rx:"7.75",transform:"rotate(-38.93 375.37 186.633)"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M310.62 406.45h8.36l.56-19.37h-8.36zM254.5 381.5l7.69 3.28 10.06-16.76-7.69-3.28z"}),J__namespace.createElement("path",{fill:"#263238",d:"m263.66 383.64-8-4.92a.66.66 0 0 0-.87.14l-4.8 5.77a1.34 1.34 0 0 0 .36 2c2.82 1.67 4.27 2.33 7.79 4.49 2.16 1.34 5.19 3.5 8.18 5.34s5-1 3.89-2.05c-4.85-4.63-4.71-6.83-5.62-9.57a2.2 2.2 0 0 0-.93-1.2M319.27 405.48h-9.4a.66.66 0 0 0-.66.57l-1.07 7.44a1.33 1.33 0 0 0 1.34 1.48c3.27-.05 4.85-.25 9-.25 2.54 0 7.8.27 11.31.27s3.7-3.47 2.24-3.79c-6.56-1.41-9.14-3.35-11.34-5.2a2.17 2.17 0 0 0-1.42-.52"}),J__namespace.createElement("path",{d:"m319.54 387.09-.29 9.98h-8.36l.28-9.98zM264.55 364.75l7.7 3.27-5.19 8.64-7.7-3.28z",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#263238",d:"M329.27 167.73s4 1.4-4 50.47h-34c.57-13.82.58-22.34-6-50.71a100 100 0 0 1 14.42-1.9 107 107 0 0 1 15.42 0c6.65.6 14.16 2.14 14.16 2.14"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M301.24 148.22c1 5 1.94 14.06-1.53 17.37 0 0 1.36 5 10.58 5 10.13 0 4.84-5 4.84-5-5.53-1.32-5.39-5.43-4.43-9.28Z"}),J__namespace.createElement("path",{d:"m305.1 151.52 5.6 4.78a15.6 15.6 0 0 0-.47 2.74c-2.12-.31-5-2.63-5.25-4.84a7.5 7.5 0 0 1 .12-2.68",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M296.66 139.36c1.93 8.07 2.58 11.53 7.44 15 7.3 5.21 16.79 1.07 17.31-7.42.46-7.64-2.78-19.55-11.34-21.39a11.31 11.31 0 0 0-13.41 13.81"}),J__namespace.createElement("path",{fill:"#263238",d:"M319.67 134.09a.38.38 0 0 0 .33-.09.4.4 0 0 0 0-.56 4 4 0 0 0-3.39-1.26.41.41 0 0 0-.32.47.4.4 0 0 0 .47.31 3.15 3.15 0 0 1 2.67 1 .4.4 0 0 0 .24.13"}),J__namespace.createElement("path",{fill:"#fff",d:"M319.46 143.73a2.57 2.57 0 0 1-1.6-.6 7.8 7.8 0 0 1-2.32-5.32c-.31-3.6 1-6.65 3.09-6.95a2.43 2.43 0 0 1 1.91.58 7.8 7.8 0 0 1 2.32 5.32c.32 3.59-1 6.65-3.08 7a1.7 1.7 0 0 1-.32-.03m-.51-12.4h-.25c-1.76.26-2.95 3.14-2.67 6.42a7.28 7.28 0 0 0 2.14 5 1.94 1.94 0 0 0 1.53.48c1.76-.26 3-3.14 2.67-6.42a7.28 7.28 0 0 0-2.14-5 2.08 2.08 0 0 0-1.23-.48Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M325.27 218.2s6.6 64.42 6.05 89.92c-.57 26.52-10.29 87-10.29 87h-11.31s1.79-58.95.79-85c-1.09-28.4-10.11-91.94-10.11-91.94Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M325.27 218.2s6.6 64.42 6.05 89.92c-.57 26.52-10.29 87-10.29 87h-11.31s1.79-58.95.79-85c-1.09-28.4-10.11-91.94-10.11-91.94Z",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M308.74 395.54h13.27l.97-4.23-14.86-.52z"}),J__namespace.createElement("path",{d:"M310.62 234.23C319 251 312.3 281.62 309.35 293c-1.52-17.1-4.07-38-6.05-53.37 1.26-8.63 3.47-13.14 7.32-5.4",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M316.3 218.2s-7.69 67-13.5 88.47c-6.9 25.53-33.13 69-33.13 69l-10.49-4.46s16.24-49.36 21.51-62.81c11.26-28.7 1.62-71.47 10.62-90.2Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M316.3 218.2s-7.69 67-13.5 88.47c-6.9 25.53-33.13 69-33.13 69l-10.49-4.46s16.24-49.36 21.51-62.81c11.26-28.7 1.62-71.47 10.62-90.2Z",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m257.74 371.24 13.02 5.54 3.12-3.5-15.01-7.21z"}),J__namespace.createElement("path",{fill:"#263238",d:"M309.43 139.47c.12.66.57 1.14 1 1.06s.69-.68.58-1.34-.57-1.14-1-1.07-.69.68-.58 1.35M316.94 138.15c.12.66.57 1.14 1 1.06s.69-.68.57-1.34-.56-1.14-1-1.07-.68.68-.57 1.35"}),J__namespace.createElement("path",{fill:"#263238",d:"m317.33 136.88 1.52-.75s-.6 1.39-1.52.75"}),J__namespace.createElement("path",{fill:"#630f0f",d:"M315.16 139.64a18 18 0 0 0 3.11 3.82 2.91 2.91 0 0 1-2.29.86Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M313 147.45a6.5 6.5 0 0 0 1.13-.1.2.2 0 0 0 .16-.23.19.19 0 0 0-.29-.12 5.34 5.34 0 0 1-4.65-1.31.2.2 0 1 0-.29.27 5.56 5.56 0 0 0 3.94 1.49M308.89 127.46c.15 3.85-5.91 16.21-10.28 17.17-5.36-3.5-6.86-9.63-3.74-16.17s13.74-8.25 14.02-1"}),J__namespace.createElement("path",{fill:"#263238",d:"M311.65 121.25c-3.39-.53-15 1.42-8.78 5s11.17 4.55 14.19 4.19 2.05-8.03-5.41-9.19"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M295.64 145.27a6.06 6.06 0 0 0 3.28 3.27c2 .8 3.19-.91 2.84-2.89-.31-1.79-1.72-4.36-3.79-4.31a2.73 2.73 0 0 0-2.33 3.93"}),J__namespace.createElement("path",{fill:"#263238",d:"M306.75 137.19a.4.4 0 0 0 .24-.2 3.14 3.14 0 0 1 2.25-1.76.39.39 0 0 0 .35-.44.39.39 0 0 0-.44-.35 3.92 3.92 0 0 0-2.87 2.19.4.4 0 0 0 .18.54.42.42 0 0 0 .29.02"}),J__namespace.createElement("path",{fill:"#fff",d:"M311 145a2.6 2.6 0 0 1-1.6-.61 7.8 7.8 0 0 1-2.32-5.32c-.31-3.59 1-6.65 3.08-6.95a2.53 2.53 0 0 1 1.92.58 7.8 7.8 0 0 1 2.32 5.32c.31 3.6-1 6.65-3.08 7Zm-.51-12.41h-.25c-1.76.26-3 3.14-2.67 6.42a7.28 7.28 0 0 0 2.14 5 1.93 1.93 0 0 0 1.53.48c1.76-.25 2.95-3.13 2.67-6.42a7.3 7.3 0 0 0-2.14-5 2.08 2.08 0 0 0-1.3-.49Z"}),J__namespace.createElement("path",{fill:"#803e3c",d:"M289.62 178.33a109 109 0 0 1-1.95 14.25 77.5 77.5 0 0 1-4 14l-.75 1.73-.19.43a4 4 0 0 1-.22.44 3.5 3.5 0 0 1-.32.52 5 5 0 0 1-1 1.12 4.7 4.7 0 0 1-1.65.84 5 5 0 0 1-2.92-.08 6.2 6.2 0 0 1-1.57-.75 12.2 12.2 0 0 1-1.88-1.54 37.4 37.4 0 0 1-4.68-6 102 102 0 0 1-6.79-12.53l3.49-2c2.72 3.67 5.45 7.42 8.33 10.85a37 37 0 0 0 4.33 4.57 4.4 4.4 0 0 0 .87.59c.08 0 .14 0 0 0a2.1 2.1 0 0 0-1.21 0c-1.48.44-1.65 1.75-1.34.74l.55-1.51a90 90 0 0 0 3.11-12.87c.76-4.39 1.34-9 1.76-13.33Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M285.29 167.49c-3.4 1-7.49 12.75-7.49 12.75l13.2 9.44s4.81-9.78 3.38-14.18c-1.49-4.58-5.21-9.19-9.09-8.01"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M267.05 386.82a1.13 1.13 0 0 0 .7-.7.65.65 0 0 0 0-.68c-.6-.88-3.62-.81-4-.8a.2.2 0 0 0-.18.12.2.2 0 0 0 0 .21c.79.79 2.27 2.08 3.31 1.88Zm-2.81-1.82c1.21 0 2.83.17 3.14.64a.27.27 0 0 1 0 .3.75.75 0 0 1-.54.49c-.55.14-1.51-.43-2.6-1.43"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M265.13 384.79c.92-.29 1.89-.8 2.11-1.37a.7.7 0 0 0-.28-.82 1 1 0 0 0-.86-.21c-1.19.21-2.46 2.25-2.52 2.34a.23.23 0 0 0 0 .2.19.19 0 0 0 .17.1 4.9 4.9 0 0 0 1.38-.24m.92-2h.12a.65.65 0 0 1 .54.13c.2.16.19.28.15.37-.2.55-1.72 1.21-2.73 1.34a5 5 0 0 1 1.92-1.82ZM322.41 406.94a3.2 3.2 0 0 0 2-.51 1.1 1.1 0 0 0 .35-1 .63.63 0 0 0-.33-.52c-1-.56-4.36 1.14-4.74 1.33a.21.21 0 0 0-.1.21.18.18 0 0 0 .16.16 13.5 13.5 0 0 0 2.66.33m1.49-1.73a.8.8 0 0 1 .37.07.27.27 0 0 1 .13.22.71.71 0 0 1-.23.63c-.51.46-1.88.54-3.73.23a10.7 10.7 0 0 1 3.46-1.15"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M319.82 406.65h.08c1-.45 3-2.25 2.81-3.2 0-.23-.19-.5-.74-.56a1.43 1.43 0 0 0-1.1.34c-1.05.88-1.24 3.13-1.25 3.22a.18.18 0 0 0 .08.18.2.2 0 0 0 .12.02m2-3.39h.12c.36 0 .38.19.39.23.09.57-1.25 2-2.26 2.61a4.57 4.57 0 0 1 1.06-2.58 1 1 0 0 1 .68-.26Z"}),J__namespace.createElement("path",{fill:"#263238",d:"m290.8 216.21-.87 3c-.12.23.16.47.55.47h35c.3 0 .56-.15.58-.34l.3-3c0-.21-.24-.39-.58-.39h-34.43a.63.63 0 0 0-.55.26"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M295.42 220.05h-.92c-.19 0-.33-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.18.21-.36.21"}),J__namespace.createElement("path",{fill:"#fff",d:"M295.42 220.05h-.92c-.19 0-.33-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.18.21-.36.21",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M322.85 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.21.21-.36.21"}),J__namespace.createElement("path",{fill:"#fff",d:"M322.85 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.21.21-.36.21",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M309.13 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.18-.21.36-.21h.92c.19 0 .33.1.31.21l-.43 4c-.01.16-.17.21-.36.21"}),J__namespace.createElement("path",{fill:"#fff",d:"M309.13 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.18-.21.36-.21h.92c.19 0 .33.1.31.21l-.43 4c-.01.16-.17.21-.36.21",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#263238",d:"m309.82 138.19 1.52-.74s-.6 1.39-1.52.74"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m262.14 191.88-8-4.25 7.89-3.16s4.15 3.41 3.48 6.82Z"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m251.32 181.2 6.75-2.29 4.98 6.5-8.88 2.22z"})),J__namespace.createElement("g",{id:"freepik--Smartphone--inject-10"},J__namespace.createElement("path",{fill:"#263238",d:"M253.64 132.52H140a11.71 11.71 0 0 0-11.73 12l5.88 259.72a12.38 12.38 0 0 0 12.28 12h113.63a11.71 11.71 0 0 0 11.73-12l-5.88-259.72a12.37 12.37 0 0 0-12.27-12"}),J__namespace.createElement("path",{fill:"#263238",d:"M256.47 132.52H142.8a11.7 11.7 0 0 0-11.72 12L137 404.24a12.37 12.37 0 0 0 12.27 12H262.9a11.7 11.7 0 0 0 11.72-12l-5.88-259.72a12.37 12.37 0 0 0-12.27-12"}),J__namespace.createElement("path",{fill:"#fff",d:"m138.51 404.09-5.88-259.42a7.93 7.93 0 0 1 8-8.15h118.23a8.37 8.37 0 0 1 8.33 8.15l5.88 259.42a7.94 7.94 0 0 1-8 8.15H146.84a8.37 8.37 0 0 1-8.33-8.15"}),J__namespace.createElement("path",{fill:"#263238",d:"M178.12 401.65a1 1 0 0 1-.47-.12l-3.93-2.25a1 1 0 0 1-.49-.82.94.94 0 0 1 .48-.83l3.83-2.24a1 1 0 0 1 1.44.8l.1 4.48a1 1 0 0 1-1 1Zm-4.16-2.8 3.94 2.24a.45.45 0 0 0 .68-.4l-.1-4.49a.47.47 0 0 0-.69-.38l-3.79 2.24a.46.46 0 0 0-.23.4.48.48 0 0 0 .23.39ZM205.58 401.93a3.56 3.56 0 0 1-3.54-3.46 3.38 3.38 0 0 1 3.4-3.48 3.57 3.57 0 0 1 3.54 3.47 3.37 3.37 0 0 1-3.4 3.47m-.14-6.44a2.9 2.9 0 0 0-2.08.87 2.86 2.86 0 0 0-.82 2.1 3.06 3.06 0 0 0 3 3 2.87 2.87 0 0 0 2.9-3 3.06 3.06 0 0 0-3-2.97M237.81 401.58h-4.57a.85.85 0 0 1-.85-.83l-.1-4.57a.78.78 0 0 1 .23-.59.8.8 0 0 1 .59-.25h4.57a.85.85 0 0 1 .85.83l.1 4.57a.8.8 0 0 1-.82.84m-4.7-5.74a.33.33 0 0 0-.23.1.28.28 0 0 0-.09.23l.1 4.57a.35.35 0 0 0 .35.34h4.57a.32.32 0 0 0 .19-.08.34.34 0 0 0 .09-.24l-.1-4.57a.35.35 0 0 0-.35-.34ZM146.05 141.61a1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1 1 1 0 0 0-1-1M148.86 140.46a1 1 0 0 0-1 1v1.15a1 1 0 0 0 1 1 1 1 0 0 0 .95-1v-1.15a1 1 0 0 0-.95-1M151.67 139.28a1 1 0 0 0-.95 1l.05 2.33a1 1 0 0 0 1 1 1 1 0 0 0 1-1l-.06-2.33a1 1 0 0 0-1.04-1M250.75 138.78h-6.83a1.6 1.6 0 0 0-1.6 1.64v1.5a1.69 1.69 0 0 0 1.68 1.64h6.83a1.6 1.6 0 0 0 1.6-1.64v-1.5a1.7 1.7 0 0 0-1.68-1.64M253.49 139.82h-.37a.41.41 0 0 0-.42.43v1.84a.45.45 0 0 0 .44.43h.37a.42.42 0 0 0 .41-.43v-1.84a.43.43 0 0 0-.43-.43M229.47 143.56H170.3a6.93 6.93 0 0 1-6.94-5.14l-.72-3.42h74.11l-.56 3.42a6.56 6.56 0 0 1-6.72 5.14"}),J__namespace.createElement("path",{fill:"#263238",d:"M141.93 404.13a2.07 2.07 0 0 1-2.05-2L134.11 147a1.94 1.94 0 0 1 1.95-2 2.07 2.07 0 0 1 2.05 2l5.77 255.09a1.94 1.94 0 0 1-1.95 2.04M269.65 404.13a2.07 2.07 0 0 1-2-2L261.83 147a1.94 1.94 0 0 1 1.95-2 2.07 2.07 0 0 1 2.05 2l5.77 255.09a1.94 1.94 0 0 1-1.95 2.04",opacity:"0.1"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M172 211.4h-14.27a8 8 0 0 1-7.92-7.75l-.32-14.23a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.57 7.57 0 0 1-7.54 7.75M245.11 211.4h-14.23a8 8 0 0 1-7.92-7.75l-.32-14.23a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.92 7.75l.33 14.23a7.58 7.58 0 0 1-7.58 7.75M208.54 211.4h-14.23a8 8 0 0 1-7.93-7.75l-.32-14.23a7.56 7.56 0 0 1 7.58-7.75h14.22a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.57 7.75M172.8 248.21h-14.23a8 8 0 0 1-7.93-7.75l-.32-14.23a7.56 7.56 0 0 1 7.58-7.75h14.22a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.57 7.75M209.37 248.21h-14.23a8 8 0 0 1-7.92-7.75l-.32-14.23a7.56 7.56 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.92 7.75l.33 14.23a7.58 7.58 0 0 1-7.58 7.75M173.63 285H159.4a8 8 0 0 1-7.92-7.75l-.33-14.23a7.57 7.57 0 0 1 7.58-7.75H173a8 8 0 0 1 7.92 7.75l.33 14.23a7.58 7.58 0 0 1-7.62 7.75M246.78 285h-14.23a8 8 0 0 1-7.92-7.75l-.33-14.23a7.56 7.56 0 0 1 7.58-7.75h14.23a8 8 0 0 1 7.92 7.75l.32 14.23a7.56 7.56 0 0 1-7.57 7.75M210.21 285H196a8 8 0 0 1-7.93-7.75l-.32-14.23a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.59 7.75M174.46 321.84h-14.22a8 8 0 0 1-7.93-7.75l-.31-14.23a7.56 7.56 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.59 7.75M247.61 321.84h-14.23a8 8 0 0 1-7.92-7.75l-.32-14.23a7.56 7.56 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.57 7.57 0 0 1-7.58 7.75M211 321.84h-14.19a8 8 0 0 1-7.92-7.75l-.33-14.23a7.58 7.58 0 0 1 7.58-7.75h14.23a8 8 0 0 1 7.92 7.75l.32 14.23a7.56 7.56 0 0 1-7.61 7.75M175.87 383.8h-14.23a8 8 0 0 1-7.93-7.75l-.32-14.22a7.56 7.56 0 0 1 7.58-7.75h14.22a8 8 0 0 1 7.93 7.75l.32 14.22a7.55 7.55 0 0 1-7.57 7.75M249 383.8h-14.21a8 8 0 0 1-7.93-7.75l-.32-14.22a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.22a7.55 7.55 0 0 1-7.59 7.75M212.44 383.8h-14.23a8 8 0 0 1-7.92-7.75l-.29-14.22a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.92 7.75l.33 14.22a7.56 7.56 0 0 1-7.61 7.75M251.91 169.39H149.03l-.02-1.11h102.87zM250.44 156.81a4.07 4.07 0 0 0-5.76 0 4 4 0 0 0-.49 4.92l-1.48 1.5a1 1 0 0 0 1.48 1.45l1.47-1.51a4 4 0 0 0 4.78-6.36m-5 5.13a3.15 3.15 0 1 1 4.51 0 3.19 3.19 0 0 1-4.53 0Z"}))),hM=xV;var vM=({isOpen:e,onClose:t,children:o,hideCloseButton:r=false,closeOnClickOutside:n=true,className:a=""})=>{let[s]=J__namespace.default.useState(()=>{if(typeof window=="undefined")return null;let d=document.createElement("div");return d.setAttribute("id","mobile-modal-portal"),d});J.useEffect(()=>{if(s)return document.body.appendChild(s),()=>{s.parentNode&&s.parentNode.removeChild(s);}},[s]);let i=()=>{n&&t();},l=d=>d.stopPropagation();return !s||!e?null:RW.createPortal(J__namespace.default.createElement("div",{className:"fixed inset-0 z-[100] lg:hidden flex items-center justify-center bg-black/50",onClick:i},J__namespace.default.createElement("div",{className:`w-[90%] max-w-xs bg-white rounded-2xl p-6 shadow-lg flex flex-col gap-4 relative ${a}`,onClick:l},!r&&J__namespace.default.createElement("button",{onClick:t,className:"absolute top-4 right-4",type:"button"},J__namespace.default.createElement(lucideReact.X,{className:"h-6 w-6"})),o)),s)};var bm=()=>{let{isMobile:e}=Ne(),{isDownloadModalOpen:t,closeDownloadModal:o}=Z1(),{title:r,subtitle:n,button:a}=ym(),s=J__namespace.default.createElement("div",{className:"flex flex-col gap-4"},J__namespace.default.createElement("div",{className:"flex justify-center mb-4 w-[12.6rem] h-[12.6rem] mx-auto"},J__namespace.default.createElement(hM,null)),J__namespace.default.createElement("h2",{className:"text-[20px] font-bold text-gray-900 mb-2"},r),J__namespace.default.createElement("p",{className:"text-[#050910] text-[14px] mb-6"},n),J__namespace.default.createElement(le,{className:"w-full h-[48px] bg-primary hover:bg-primary/80 text-white text-[14px] font-bold rounded-[10px] py-2 border-0 outline-none flex items-center justify-center gap-2",onClick:gM},a,J__namespace.default.createElement(fM,{fontSize:24})));return e?J__namespace.default.createElement(vM,{isOpen:t,onClose:o,closeOnClickOutside:true,className:"text-center"},s):J__namespace.default.createElement(qe,{isOpen:t,onClose:o,closeOnClickOutside:true,disableFullScreen:true,hideCloseButton:false,className:"max-w-[327px] max-h-[512px] rounded-2xl bg-white p-6 shadow-lg text-center"},s)};var SV=()=>{let{openDownloadModal:e}=Z1(),{trigger:t}=ym();return J__namespace.default.createElement(le,{onClick:e,variant:"outline",className:"w-fit"},t)};var o8="mirantes_download_banner_last_shown",bc="mirantes_download_banner_count",xm="mirantes_download_banner_session_shown",r8=(e={})=>{let{maxShows:t=5,initialDelayMs:o=5e3,mobileOnly:r=true}=e,{openDownloadModal:n,isDownloadModalOpen:a}=Z1(),[s,i]=J.useState(false),l=()=>typeof window=="undefined"?false:window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),d=()=>!(typeof window=="undefined"||r&&!l()||sessionStorage.getItem(xm)==="true"||parseInt(sessionStorage.getItem(bc)||"0")>=t),c=()=>{if(typeof window=="undefined")return;let g=new Date().toISOString(),m=parseInt(sessionStorage.getItem(bc)||"0");sessionStorage.setItem(o8,g),sessionStorage.setItem(bc,(m+1).toString()),sessionStorage.setItem(xm,"true");},p=()=>{d()&&(i(true),setTimeout(()=>{n(),c(),i(false);},o));},f=()=>{typeof window!="undefined"&&(sessionStorage.removeItem(o8),sessionStorage.removeItem(bc),sessionStorage.removeItem(xm));},u=()=>{if(typeof window=="undefined")return {lastShown:null,showsCount:0,remainingShows:t,canShow:false,shownInCurrentSession:false};let g=sessionStorage.getItem(o8),m=parseInt(sessionStorage.getItem(bc)||"0"),v=sessionStorage.getItem(xm)==="true";return {lastShown:g?new Date(g):null,showsCount:m,remainingShows:Math.max(0,t-m),canShow:d(),shownInCurrentSession:v}};return J.useEffect(()=>{let g=setTimeout(()=>{p();},1e3);return ()=>clearTimeout(g)},[]),{shouldShow:s,showBanner:p,resetBannerData:f,getBannerStats:u,canShow:d(),isMobile:l()}};var IV=({maxShows:e=5,initialDelayMs:t=3e4,mobileOnly:o=true,enabled:r=true})=>{let{canShow:n}=r8({maxShows:e,initialDelayMs:t,mobileOnly:o});return !r||!n?J__namespace.default.createElement(bm,null):J__namespace.default.createElement(bm,null)};function EV(e){let{fontSize:t="20px"}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 20 21",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M1.667 9.732c.042 1.949.158 5.281.175 5.649.06.785.36 1.58.828 2.14.652.785 1.454 1.136 2.574 1.136 1.546.009 3.251.009 4.907.009 1.663 0 3.276 0 4.639-.009 1.103 0 1.93-.36 2.574-1.137.468-.56.769-1.362.811-2.14.017-.309.1-3.926.15-5.648H1.667z",fill:"#687588"}),J__namespace.createElement("path",{d:"M9.371 13.32v1.078a.625.625 0 001.25 0V13.32a.625.625 0 00-1.25 0z",fill:"#687588"}),J__namespace.createElement("path",{d:"M11.072 2.167c1.25 0 2.276.94 2.433 2.15h1.647a3.177 3.177 0 013.173 3.174v2.889c0 .21-.106.406-.28.521-1.718 1.138-3.758 1.895-5.898 2.19a.625.625 0 01-.692-.465A1.504 1.504 0 009.992 11.5c-.701 0-1.297.454-1.482 1.13a.626.626 0 01-.69.456c-2.125-.297-4.157-1.051-5.872-2.184a.624.624 0 01-.281-.521V7.49a3.18 3.18 0 013.18-3.174h1.64a2.46 2.46 0 012.433-2.15h2.152zM8.92 3.417c-.56 0-1.029.383-1.169.9h4.49c-.14-.517-.609-.9-1.169-.9H8.92z",fill:"#687588"}))}var kV=J__namespace.memo(EV),bM=kV;var xM=zustand.create(e=>({isOpen:false,openModal:()=>e({isOpen:true}),closeModal:()=>e({isOpen:false})}));function DV({onClick:e}){let{openModal:t}=xM(),{locale:o}=M();return J__namespace.default.createElement(re,{onClick:r=>{t(),e==null||e(r);},leftElement:J__namespace.default.createElement(bM,null),className:"text-gray-600 hover:opacity-90 h-auto !p-0 hover:bg-transparent",label:Je(o,"explore.oportunities.jobs")})}var n0=({rating:e})=>J__namespace.default.createElement("div",{className:"flex gap-[2px] my-1"},Array.from({length:5}).map((t,o)=>{let r=o+1,n=e>=r,a=!n&&e>=r-.5,s="M9.14692 0.511345L11.0023 4.23991C11.139 4.51004 11.3999 4.69764 11.7008 4.73933L15.8684 5.3463C16.1117 5.38049 16.3326 5.50889 16.4818 5.70482C16.6294 5.89825 16.6927 6.14338 16.6569 6.38433C16.6277 6.58443 16.5335 6.76953 16.3893 6.91127L13.3695 9.83859C13.1486 10.0429 13.0486 10.3455 13.1019 10.6415L13.8454 14.7569C13.9246 15.2538 13.5954 15.7224 13.1019 15.8166C12.8986 15.8491 12.6902 15.815 12.5068 15.7216L8.78934 13.7848C8.51345 13.6455 8.18755 13.6455 7.91165 13.7848L4.19419 15.7216C3.73742 15.9642 3.17147 15.7991 2.91725 15.3489C2.82306 15.1696 2.78972 14.9654 2.82056 14.7661L3.56405 10.6498C3.6174 10.3547 3.51654 10.0504 3.2965 9.84609L0.276681 6.92044C-0.0825632 6.57359 -0.0933988 6.00247 0.252509 5.64312C0.26001 5.63562 0.268345 5.62728 0.276681 5.61894C0.420045 5.47303 0.608418 5.38049 0.811795 5.35631L4.97936 4.7485C5.27942 4.70598 5.54031 4.52005 5.67784 4.24825L7.46656 0.511345C7.62576 0.191182 7.95583 -0.00808573 8.31424 0.000251838H8.42593C8.73683 0.0377709 9.00772 0.230369 9.14692 0.511345";return a?J__namespace.default.createElement("svg",{key:o,className:"w-5 h-5",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("defs",null,J__namespace.default.createElement("linearGradient",{id:`half-star-${o}`},J__namespace.default.createElement("stop",{offset:"50%",stopColor:"#EC991C"}),J__namespace.default.createElement("stop",{offset:"50%",stopColor:"rgba(236,153,28,0.3)"}))),J__namespace.default.createElement("path",{d:s,fill:`url(#half-star-${o})`})):J__namespace.default.createElement("svg",{key:o,className:"w-5 h-5",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:s,fill:n?"#EC991C":"rgba(236,153,28,0.3)"}))}));var xc=(e=0)=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString(),CM=e=>{let t=Math.floor((new Date().getTime()-new Date(e).getTime())/1e3);if(t<60)return `${t}s`;let o=Math.floor(t/60);if(o<60)return `${o}m`;let r=Math.floor(o/60);if(r<24)return `${r}h`;let n=Math.floor(r/24);if(n<7)return `${n}D`;let a=Math.floor(n/7);if(a<4)return `${a}W`;let s=Math.floor(n/30);return s<12?`${s}M`:`${Math.floor(n/365)}Y`};var MM=hf.gql`
|
|
994
994
|
query GET_RATING_STATS($userId: String, $pageId: String, $communityId: String) {
|
|
995
995
|
getRatingStats(userId: $userId, pageId: $pageId, communityId: $communityId) {
|
|
996
996
|
average
|
|
@@ -1806,7 +1806,7 @@ query Communities($options: SearchCommunityInput) {
|
|
|
1806
1806
|
id
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
1809
|
-
`;function ZP(){let{feedApi:e,user:t}=M(),{mutate:o,isPending:r}=ge({mutationKey:["createFollow"],mutationFn:a=>j(this,[a],function*({createFollowInput:n}){var s;try{return yield hf__default.default(e!=null?e:"",KP,{createFollowInput:n},{"x-access-token":(s=t==null?void 0:t.accessToken)!=null?s:""})}catch(i){throw i}})});return {createFollow:o,isCreatingFollow:r}}var YP=zustand.create(e=>({following:[],unfollowing:[],setFollowing:t=>e({following:t}),setUnfollowing:t=>e({unfollowing:t})}));function JP({user:e,className:t,insideClasse:o,icon:r,isFollowing:n}){var A,k,N,I,P;let{user:a}=M(),{setFollowing:s,following:i,setUnfollowing:l,unfollowing:d}=YP(),{isOpen:c,toggle:p}=ur(),{createFollow:f,isCreatingFollow:u}=ZP(),{dispatch:g}=WP(),[m,v]=J__namespace.default.useOptimistic({isFollowed:(A=n!=null?n:e==null?void 0:e.isFollowed)!=null?A:false,isFollowedBy:(k=e==null?void 0:e.isFollowedBy)!=null?k:false,isContact:(N=e==null?void 0:e.isContact)!=null?N:false},(S,D)=>D.type==="follow"?F(y({},S),{isFollowed:true,isContact:S.isFollowedBy}):F(y({},S),{isFollowed:false,isContact:false})),h=()=>{var L,E,B,W;if(!(e!=null&&e.id))return;let S=a==null?void 0:a.id;if((e==null?void 0:e.id)===S)return;let D=i==null?void 0:i.includes((L=e==null?void 0:e.id)!=null?L:""),T=!D;D?(s((E=i==null?void 0:i.filter(q=>q!==(e==null?void 0:e.id)))!=null?E:[]),l([...d!=null?d:[],e==null?void 0:e.id]),J.startTransition(()=>{v({type:"unfollow"});})):(s([...i!=null?i:[],e==null?void 0:e.id]),l((B=d==null?void 0:d.filter(q=>q!==(e==null?void 0:e.id)))!=null?B:[]),J.startTransition(()=>{v({type:"follow"});})),p(),f({createFollowInput:{followedId:(W=e==null?void 0:e.id)!=null?W:""}}),J.startTransition(()=>{e!=null&&e.id&&g({type:T?"follow":"unfollow",userId:e.id});});},b=()=>{let S="font-medium border rounded-[10px] flex justify-center";return m!=null&&m.isContact||m!=null&&m.isFollowedBy?`${S} bg-primary/10 text-primary border-primary/20`:`${S} bg-primary text-white border-transparent`},x=(i==null?void 0:i.includes((I=e==null?void 0:e.id)!=null?I:""))||c||(m==null?void 0:m.isFollowed),w=d==null?void 0:d.includes((P=e==null?void 0:e.id)!=null?P:""),C=()=>m!=null&&m.isContact||e!=null&&e.isContact?"Contacto":x&&!w?"Deixar de seguir":"Seguir";return J__namespace.default.createElement(le,{onClick:h,variant:"ghost",size:"sm",className:U(o?b():"h-auto p-2 text-primary hover:bg-transparent hover:text-primary/80 font-normal",t)},r||J__namespace.default.createElement(lucideReact.UserPlusIcon,{className:"h-3 w-3"}),u?J__namespace.default.createElement(lucideReact.CircleIcon,{className:"w-4 h-4 animate-spin"}):C())}var $P={AGREE:J__namespace.default.createElement(Wi,{size:20}),LIKE:J__namespace.default.createElement(w0,{size:20}),SUPPORT:J__namespace.default.createElement(Wi,{size:20}),DISLIKE:J__namespace.default.createElement(Qi,{size:20}),DISAGREE:J__namespace.default.createElement(Qi,{size:20}),EUREKA:J__namespace.default.createElement(b0,{fontSize:20}),NO_COMMENT:J__namespace.default.createElement(C0,{fontSize:20}),HAHA:J__namespace.default.createElement(M0,{size:20}),LOVE:J__namespace.default.createElement(P0,{size:20})};function RP({reactions:e,handleGoToProfile:t}){var p;let{user:o,locale:r}=M(),n=r||"pt",a=e!=null?e:[],s=J.useMemo(()=>a.reduce((f,u)=>{var m;let g=(m=u==null?void 0:u.reaction)!=null?m:"";return g&&(f[g]||(f[g]=[]),f[g].push(u)),f},{}),[a]),{reactions:i}=_m({currentReaction:"",onChange:()=>{},size:"normal"}),l=J.useMemo(()=>{let f=Object.keys(s).filter(Boolean),u={id:"all",label:rn(n,"allReactions"),emoji:null,count:a.length,users:a},g=f.map(m=>{var h,b,x,w,C;let v=i.find(A=>A.id===m);return {id:m,label:"",emoji:(b=(h=$P[m])!=null?h:v==null?void 0:v.emoji)!=null?b:null,count:(w=(x=s[m])==null?void 0:x.length)!=null?w:0,users:(C=s[m])!=null?C:[]}});return [u,...g]},[s,i,a]),[d,c]=J.useState("all");return a.length===0?J__namespace.default.createElement("div",{className:"py-8 text-center text-sm text-gray-500"},rn(n,"noReactionsYet")):J__namespace.default.createElement("div",null,J__namespace.default.createElement("div",{className:"bg-white"},J__namespace.default.createElement("div",{className:"flex gap-2 overflow-x-auto py-1 px-0 border-b"},l.map(f=>J__namespace.default.createElement("div",{key:f.id,className:"inline-block relative overflow-visible "},J__namespace.default.createElement("button",{onClick:()=>c(f.id),"aria-pressed":d===f.id,className:`pr-6 py-2 text-sm font-medium rounded-full transition-colors whitespace-nowrap ${d===f.id?"text-primary":"text-gray-500 hover:text-gray-700"}`},f.emoji&&J__namespace.default.createElement("span",{className:"w-2 h-2 inline-block mr-2 mb-2"},f.emoji),J__namespace.default.createElement("span",{className:"space-x-4"},J__namespace.default.createElement("span",{className:"text-[14px] font-medium"},f.label),f.count>0&&J__namespace.default.createElement("span",{className:"text-[#050910] text-[14px] font-semibold"},f.count))),d===f.id&&J__namespace.default.createElement("div",{className:"absolute -left-2 right-0 -bottom-1 h-[2px] bg-primary rounded-none"}))))),J__namespace.default.createElement("div",{className:"space-y-6 max-h-[60vh] overflow-y-auto pr-2 pt-4"},(d==="all"?a:(p=s[d])!=null?p:[]).map(f=>{var u,g,m,v,h,b,x,w,C,A;return J__namespace.default.createElement("div",{key:f==null?void 0:f.id,className:"flex items-center gap-2 group"},J__namespace.default.createElement("div",{className:"relative"},J__namespace.default.createElement(ae,{name:(g=(u=f==null?void 0:f.user)==null?void 0:u.name)!=null?g:"",src:(m=f==null?void 0:f.user)==null?void 0:m.avatar,className:"w-10 lg:w-12 h-10 lg:h-12",onClick:()=>t==null?void 0:t(f==null?void 0:f.user),type:"user"}),(f==null?void 0:f.reaction)&&J__namespace.default.createElement("div",{className:"absolute -bottom-1 -right-1 bg-white rounded-full p-[2px] shadow-sm transform transition-all duration-200 ease-out opacity-90 group-hover:scale-110 group-hover:opacity-100"},(b=(h=$P[f==null?void 0:f.reaction])!=null?h:(v=i.find(k=>k.id===(f==null?void 0:f.reaction)))==null?void 0:v.emoji)!=null?b:null)),J__namespace.default.createElement("div",{className:"flex-1"},J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement("h3",{className:"text-sm lg:text-base font-medium",onClick:()=>t==null?void 0:t(f==null?void 0:f.user)},(x=f==null?void 0:f.user)==null?void 0:x.name),(o==null?void 0:o.id)!==((w=f==null?void 0:f.user)==null?void 0:w.id)&&!((C=f==null?void 0:f.user)!=null&&C.isFollowed)&&J__namespace.default.createElement(JP,{user:f==null?void 0:f.user})),J__namespace.default.createElement("p",{className:"text-xs text-gray-600"},(A=f==null?void 0:f.user)==null?void 0:A.headline)))})))}function f8({onClose:e,post:t,comment:o,optimisticReactions:r}){var f,u;let{isMobile:n}=Eo(),{user:a,locale:s}=M(),i=s||"pt",l=(u=(f=r!=null?r:o==null?void 0:o.reactions)!=null?f:t==null?void 0:t.reactions)!=null?u:[],d=l.length,c=d===1?rn(i,"reactionsSingular"):rn(i,"reactionsPlural");return J__namespace.default.createElement(qe,{closeOnClickOutside:true,className:"flex flex-col w-full mt-[40px] md:mt-0 h-full md:w-[33rem] md:h-[25.625rem]",isOpen:true,onClose:e,hideCloseButton:true},J__namespace.default.createElement("div",{className:"w-full"},J__namespace.default.createElement("h2",{className:`text-lg h-[60px] font-semibold ${n?"border-b-8 border-[#F5F5F5]":""} flex items-center gap-4`},n?J__namespace.default.createElement("button",{onClick:e,className:"cursor-pointer flex-shrink-0",type:"button"},J__namespace.default.createElement(lucideReact.ChevronLeft,{className:"h-8 w-8"})):null,n?null:J__namespace.default.createElement("span",null,d," ",c)),J__namespace.default.createElement("div",{className:` ${n?"px-4":""}`},J__namespace.default.createElement(RP,{reactions:l,handleGoToProfile:g=>{Ae(),(g==null?void 0:g.id)===(a==null?void 0:a.id)?window.location.href=`/profile/${s}`:window.location.href=`/profile/${s}/${g==null?void 0:g.slug}`;}}))))}function nW(e){let{fontSize:t=30}=e;return J__namespace.createElement("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J__namespace.createElement("path",{d:"M19.4636 6.412C19.2625 6.15672 19.0152 5.9523 18.7381 5.8123C18.461 5.6723 18.1605 5.59993 17.8565 5.6H12.8567V4C12.8567 2.93913 12.4804 1.92172 11.8107 1.17157C11.1409 0.421428 10.2326 2.05102e-07 9.28539 2.05102e-07C9.15269 -0.0001062 9.0226 0.0411911 8.90968 0.119262C8.79677 0.197332 8.70551 0.309089 8.64613 0.442L5.27303 8H1.42852C1.04965 8 0.686304 8.16857 0.418404 8.46863C0.150504 8.76869 0 9.17565 0 9.6V18.4C0 18.8243 0.150504 19.2313 0.418404 19.5314C0.686304 19.8314 1.04965 20 1.42852 20H16.7851C17.3072 20.0002 17.8113 19.7869 18.2029 19.4003C18.5945 19.0136 18.8466 18.4801 18.9118 17.9L19.9832 8.3C20.0212 7.96202 19.9945 7.61886 19.9049 7.29334C19.8153 6.96781 19.6649 6.66737 19.4636 6.412ZM1.42852 9.6H4.99983V18.4H1.42852V9.6Z",fill:"#687588"}))}var aW=J__namespace.memo(nW),g8=aW;var jm={AGREE:"#B38FD8",DISLIKE:"#F87171",EUREKA:"#FACC15",LIKE:"#60A5FA",NO_COMMENT:"#9CA3AF",SUPPORT:"#60A5FA"};function oS(e){return e?e>=1e6?`${(e/1e6).toFixed(1).replace(/\.0$/,"")}M`:e>=1e3?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}K`:e.toString():""}function rS({currentReaction:e,onChange:t,size:o="normal",totalReactions:r=0,topReactions:n=[],isLoading:a,className:s,orientation:i="horizontal",post:l,comment:d,variant:c="default",optimisticReactions:p}){var oe;let{user:f}=M(),[u,g]=usehooks.useToggle(false),{handleReactionSelect:m,reactions:v,selectedReaction:h,isNormalSize:b}=_m({currentReaction:e,onChange:t,size:o}),[x,w]=J.useState(false),[C,A]=J.useState(false),{isOpen:k,onOpen:N,onClose:I}=ur(),{isOpen:P,onOpen:S,onClose:D}=ur(),T=J.useRef(null),L=J.useRef(null),E=h!=null&&h.id&&jm[h.id]?jm[h.id]:jm.LIKE,B=h?`${E}1A`:"transparent",W=`${E}15`,q=Array.isArray(n)?n.filter(K=>!!K&&!!K.id&&!!K.emoji&&!!K.label&&K.id!=="LOVE"&&K.id!=="HAHA"):[],Y=()=>{T.current&&clearTimeout(T.current),N();},H=()=>{T.current=setTimeout(()=>I(),200);},z=()=>{w(true),L.current=setTimeout(()=>{N();},300);},G=()=>{w(false),L.current&&clearTimeout(L.current);},R=K=>{K.stopPropagation(),I(),S();},V=()=>{if(f&&!f.isActive){g(true);return}if(typeof window!="undefined"&&"vibrate"in navigator&&navigator.vibrate(25),A(true),setTimeout(()=>A(false),180),h)m(null);else {let K=$[0];K&&m(K);}},_=K=>{if(f&&!f.isActive){g(true),I();return}m(K);},$=v.filter(K=>K.id!=="LOVE"&&K.id!=="HAHA");return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:U("relative group rounded-[3.125rem] border transition-all duration-200 p-[0.5rem] min-w-[37px] h-[42px] flex items-center",q.length===0?"justify-center":"justify-between",c==="comment"?"border-none bg-white":h?"":"border-gray-300 bg-transparent",s),style:{borderColor:c==="comment"?"transparent":h?E:void 0,backgroundColor:c==="comment"?"white":h?B:void 0,transform:x?"scale(0.97)":"scale(1)",transition:"transform 0.15s ease-out"},onMouseEnter:Y,onMouseLeave:H,onTouchStart:z,onTouchEnd:G},J__namespace.default.createElement("button",{disabled:a,onClick:V,className:U("button-empty font-normal flex items-center gap-x-2 transition-all duration-200 ease-out transform",b?"text-sm":"text-xs","hover:scale-[1.05] hover:shadow-md active:scale-[0.97]",h?"font-semibold":"text-gray-600 hover:text-gray-800"),style:{color:h?E:void 0}},J__namespace.default.createElement("div",{className:U("flex items-center justify-center transition-transform duration-150 ease-in-out",C&&"animate-emoji-flicker")},(oe=h==null?void 0:h.emoji)!=null?oe:J__namespace.default.createElement(g8,{fontSize:20,className:U(b?"h-5 w-5":"h-4 w-4")}))),q.length>0&&J__namespace.default.createElement("div",{className:"flex items-center relative ml-2 cursor-pointer select-none group/reactions active:scale-95 transition-transform duration-150 ease-out",onClick:R},J__namespace.default.createElement("span",{className:"h-4 border-l mx-2 transition-colors duration-200",style:{borderColor:E}}),J__namespace.default.createElement("div",{className:"flex items-center relative transition-transform duration-150 ease-out group-hover/reactions:scale-[1.05]"},q.slice(0,2).map((K,ne)=>{var Me;let me=jm[K.id]||"#9CA3AF";return J__namespace.default.createElement("span",{key:K.id,className:"relative transition-transform duration-150 ease-in-out group-hover/reactions:translate-y-[-2px]",style:{right:ne===0?0:6,zIndex:q.length-ne,color:me}},(Me=K.emoji)!=null?Me:J__namespace.default.createElement(g8,{className:"h-4 w-4"}))}),r>0&&J__namespace.default.createElement("span",{className:"ml-2 font-semibold transition-all duration-150 ease-in-out group-hover/reactions:scale-105 group-hover/reactions:brightness-110",style:{color:"#687588"}},oS(r)))),q.length===0&&r>0&&J__namespace.default.createElement("div",{className:"flex items-center relative ml-2 cursor-pointer select-none group/reactions active:scale-95 transition-transform duration-150 ease-out",onClick:R},J__namespace.default.createElement("span",{className:"h-4 border-l mx-2 transition-colors duration-200",style:{borderColor:E}}),J__namespace.default.createElement("span",{className:"font-semibold transition-all duration-150 ease-in-out group-hover/reactions:scale-105 group-hover/reactions:brightness-110",style:{color:"#687588"}},oS(r))),J__namespace.default.createElement("div",{className:U("absolute inset-0 rounded-[3.125rem] pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity duration-200"),style:{backgroundColor:W}}),k&&J__namespace.default.createElement(jP,{onClose:I,orientation:i,handleReactionSelect:_,reactions:$}),P&&J__namespace.default.createElement(f8,{onClose:D,post:l,comment:d,optimisticReactions:p})),J__namespace.default.createElement(ko,{isOpen:u,onClose:()=>g(false)}))}var lW={AGREE:J__namespace.default.createElement(Wi,null),LIKE:J__namespace.default.createElement(w0,null),SUPPORT:J__namespace.default.createElement(Wi,null),DISLIKE:J__namespace.default.createElement(Qi,null),DISAGREE:J__namespace.default.createElement(Qi,null),EUREKA:J__namespace.default.createElement(b0,null),NO_COMMENT:J__namespace.default.createElement(C0,null),HAHA:J__namespace.default.createElement(M0,null),LOVE:J__namespace.default.createElement(P0,null)};function dW({post:e,hideLabel:t,className:o,orientation:r}){let{reaction:n,handleCreateReaction:a,reactions:s,totalReactions:i}=GP({post:e}),{totalReactions:l,topReactions:d}=J.useMemo(()=>{if(!s||(s==null?void 0:s.length)===0)return {totalReactions:0,topReactions:[]};let c={};s==null||s.forEach(f=>{f!=null&&f.reaction&&(c[f.reaction]=(c[f.reaction]||0)+1);});let p=Object.entries(c).sort((f,u)=>u[1]-f[1]).slice(0,2).map(([f])=>({id:f,emoji:lW[f]||J__namespace.default.createElement("span",null,f),label:f,color:""}));return {totalReactions:i,topReactions:p}},[s,i]);return J__namespace.default.createElement(rS,{orientation:r,currentReaction:n,hideLabel:t,totalReactions:l,topReactions:d,className:o,post:e,optimisticReactions:s,onChange:(c,p)=>{a(c?c==null?void 0:c.id:(p==null?void 0:p.id)||"");}})}var cW=e=>J__namespace.createElement("svg",y({width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.19113 3.64286C3.73647 3.64286 3.30044 3.82347 2.97894 4.14496C2.65745 4.46645 2.47684 4.90249 2.47684 5.35714V9.92857C2.47684 10.3832 2.65745 10.8193 2.97894 11.1408C3.30044 11.4622 3.73647 11.6429 4.19113 11.6429H5.71494C5.86649 11.6429 6.01183 11.7031 6.119 11.8102L8.00065 13.6919L9.88231 11.8102C9.98947 11.7031 10.1348 11.6429 10.2864 11.6429H11.8102C12.2648 11.6429 12.7009 11.4622 13.0224 11.1408C13.3438 10.8193 13.5245 10.3832 13.5245 9.92857V5.35714C13.5245 4.90249 13.3438 4.46645 13.0224 4.14496C12.7009 3.82347 12.2648 3.64286 11.8102 3.64286H4.19113ZM2.17082 3.33684C2.70664 2.80102 3.43337 2.5 4.19113 2.5H11.8102C12.5679 2.5 13.2947 2.80102 13.8305 3.33684C14.3663 3.87266 14.6673 4.59938 14.6673 5.35714V9.92857C14.6673 10.6863 14.3663 11.4131 13.8305 11.9489C13.2947 12.4847 12.5679 12.7857 11.8102 12.7857H10.5231L8.40471 14.9041C8.18156 15.1272 7.81975 15.1272 7.59659 14.9041L5.47824 12.7857H4.19113C3.43337 12.7857 2.70664 12.4847 2.17082 11.9489C1.635 11.4131 1.33398 10.6863 1.33398 9.92857V5.35714C1.33398 4.59938 1.635 3.87266 2.17082 3.33684ZM4.3816 6.11905C4.3816 5.80346 4.63744 5.54762 4.95303 5.54762H11.0483C11.3639 5.54762 11.6197 5.80346 11.6197 6.11905C11.6197 6.43464 11.3639 6.69048 11.0483 6.69048H4.95303C4.63744 6.69048 4.3816 6.43464 4.3816 6.11905ZM4.3816 9.16667C4.3816 8.85108 4.63744 8.59524 4.95303 8.59524H9.52446C9.84005 8.59524 10.0959 8.85108 10.0959 9.16667C10.0959 9.48226 9.84005 9.7381 9.52446 9.7381H4.95303C4.63744 9.7381 4.3816 9.48226 4.3816 9.16667Z",fill:"#A0AEC0"})),nS=cW;var mW="pending_chat_data";function uW({user:e,label:t,className:o,disabled:r=false,onClick:n,variant:a="default"}){let{isMobile:s}=Ne(),{locale:i,page:l}=M(),{saveCookie:d}=im(),c=J.useMemo(()=>{var v,h;return e?{id:(v=e==null?void 0:e.id)!=null?v:"",name:e==null?void 0:e.name,avatar:e==null?void 0:e.avatar,slug:(h=e==null?void 0:e.slug)!=null?h:""}:null},[e]),p=J.useMemo(()=>{let v=a==="small";return o||`${v?"text-primary font-medium p-[1rem]":"border border-primary bg-white text-primary font-medium p-[1rem]"} ${s?"rounded-full":"rounded-[0.5rem]"}`},[a,s,o]),f=J.useMemo(()=>{let v=a==="small";return {icon:v?J__namespace.default.createElement(nS,null):J__namespace.default.createElement(Zp,null),label:!s&&!v?t||O(i,"message.label"):void 0}},[a,s,t,i]),u=J.useCallback(()=>{if(!(c!=null&&c.id)||!(l!=null&&l.slug))return;localStorage.removeItem("b2b-recruitment-trigger-open"),n==null||n();let v={id:c.id,name:c.name,avatar:c.avatar,slug:c.slug,openChat:true};try{let h=btoa(encodeURIComponent(JSON.stringify(v)));d(mW,h,{maxAge:oM});let b=`/company/${i}/${l==null?void 0:l.slug}/inbox`;window.location.assign(b);}catch(h){}},[c,l==null?void 0:l.slug,i,n,d]);if(!!!(e&&l))return null;let m=r;return J__namespace.default.createElement(re,{className:p,label:f.label,onClick:u,leftElement:f.icon,disabled:m,"aria-label":f.label||"Send message"})}var vW=({pdfName:e,currentPage:t,numPages:o,isHovered:r,variant:n="default",onOpenAccessibility:a,onDownload:s,onClose:i})=>{let l=n==="fullscreen",d=l&&(a||s||i),{locale:c}=M();return J__namespace.default.createElement("div",{className:`${l?"relative":"absolute top-0 left-0 right-0"} z-30 border-b ${l?"border-gray-700":"border-gray-200"} p-4 transition-all duration-300 ${l||r?"opacity-100 bg-black/50":"opacity-0 pointer-events-none"}`},J__namespace.default.createElement("div",{className:"flex items-center justify-between"},J__namespace.default.createElement("div",{className:"flex items-center gap-3"},J__namespace.default.createElement("h2",{className:"text-base font-semibold text-white"},e||jt(c,"pdfName")),J__namespace.default.createElement("div",{className:"rounded-full bg-white/70 w-1.5 h-1.5"}),J__namespace.default.createElement("p",{className:"text-sm text-white/90"},o," ",jt(c,"pages"))),d&&J__namespace.default.createElement("div",{className:"flex items-center gap-3"},a&&J__namespace.default.createElement("button",{onClick:a,className:"px-3 py-2 rounded-lg bg-white/10 text-white hover:bg-white/20 transition-all flex items-center gap-2","aria-label":"Abrir PDF em nova aba para acessibilidade"},J__namespace.default.createElement(lucideReact.Accessibility,{className:"w-4 h-4"}),J__namespace.default.createElement("span",{className:"text-sm"},jt(c,"accessibilityMode"))),s&&J__namespace.default.createElement("button",{onClick:s,className:"px-3 py-2 rounded-lg bg-white/10 text-white hover:bg-white/20 transition-all flex items-center gap-2","aria-label":"Baixar PDF"},J__namespace.default.createElement(lucideReact.Download,{className:"w-4 h-4"}),J__namespace.default.createElement("span",{className:"text-sm"},jt(c,"download"))),i&&J__namespace.default.createElement("button",{onClick:i,className:"p-2 rounded-lg bg-white/10 text-white hover:bg-white/20 transition-all","aria-label":jt(c,"closeFullscreen")},J__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5"})))))},Oc=vW;var xW=({onPrevious:e,onNext:t,canGoPrevious:o,canGoNext:r})=>{let{locale:n}=M();return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("button",{className:"w-16 h-16 p-2 rounded-full border border-gray-300 bg-primary backdrop-blur-sm hover:bg-primary/90 transition-all shadow-md hover:shadow-lg disabled:opacity-50 disabled:cursor-not-allowed pointer-events-auto",onClick:e,disabled:!o,"aria-label":jt(n,"previousPage")},J__namespace.default.createElement(lucideReact.ChevronLeft,{className:"w-8 h-8 text-white"})),J__namespace.default.createElement("button",{className:"w-16 h-16 p-2 rounded-full border border-gray-300 bg-primary backdrop-blur-sm hover:bg-primary/90 transition-all shadow-md hover:shadow-lg disabled:opacity-50 disabled:cursor-not-allowed pointer-events-auto",onClick:t,disabled:!r,"aria-label":jt(n,"nextPage")},J__namespace.default.createElement(lucideReact.ChevronRight,{className:"w-8 h-8 text-white"})))},A0=xW;var wW=({currentPage:e,totalPages:t})=>{let o=t>0?e/t*100:0;return J__namespace.default.createElement("div",{className:"w-full"},J__namespace.default.createElement("div",{className:"w-full h-1.5 bg-white/20 rounded-full overflow-hidden"},J__namespace.default.createElement("div",{className:"h-full bg-white rounded-full transition-all duration-300",style:{width:`${o}%`}})))},x8=wW;var SW=({currentPage:e,numPages:t,pdfUrl:o,isHovered:r,onToggleFullscreen:n,variant:a="default",zoom:s,onZoomIn:i,onZoomOut:l})=>{let d=a==="fullscreen",c=d&&s!==void 0&&i&&l,{locale:p}=M();return J__namespace.default.createElement("div",{className:`${d?"relative":"absolute bottom-0 left-0 right-0"} z-30 border-t ${d?"border-gray-700":"border-gray-200"} px-4 py-0 flex items-center justify-between transition-all duration-300 ${d||r?"opacity-100 bg-black/50":"opacity-0 pointer-events-none"}`},J__namespace.default.createElement("div",{className:"text-sm font-normal text-white m-4"},e,"/",t),J__namespace.default.createElement("div",{className:"flex-1 max-w-md mx-4"},J__namespace.default.createElement(x8,{currentPage:e,totalPages:t})),c?J__namespace.default.createElement("div",{className:"flex items-center gap-4"},J__namespace.default.createElement("button",{onClick:l,disabled:s<=50,className:"p-2 rounded-full bg-white/10 text-white hover:bg-white/20 transition-all disabled:opacity-50 disabled:cursor-not-allowed","aria-label":jt(p,"zoomOut")},J__namespace.default.createElement(lucideReact.Plus,{className:"w-5 h-5"})),J__namespace.default.createElement("span",{className:"text-sm text-white min-w-[60px] text-center"},s,"%"),J__namespace.default.createElement("button",{onClick:i,disabled:s>=200,className:"p-2 rounded-full bg-white/10 text-white hover:bg-white/20 transition-all disabled:opacity-50 disabled:cursor-not-allowed","aria-label":jt(p,"zoomIn")},J__namespace.default.createElement(lucideReact.Minus,{className:"w-5 h-5"}))):n&&J__namespace.default.createElement("div",{className:"text-sm font-normal text-white m-4"},J__namespace.default.createElement(lucideReact.Maximize,{className:"w-6 h-6 text-white pointer-events-auto hover:text-white/80 transition-all duration-300 cursor-pointer",onClick:n})))},Hc=SW;var NW=({pdfUrl:e,pdfUrlWithPage:t,currentPage:o,numPages:r,pdfName:n,zoom:a,onClose:s,onDownload:i,onOpenAccessibility:l,onZoomIn:d,onZoomOut:c,onPreviousPage:p,onNextPage:f,canGoPrevious:u,canGoNext:g})=>{let{locale:m}=M(),v=J__namespace.default.createElement("div",{className:"fixed inset-0 z-[9999] w-screen h-screen bg-black flex flex-col",style:{position:"fixed",top:0,left:0,right:0,bottom:0,width:"80vw",height:"100vh",margin:0,padding:0}},J__namespace.default.createElement(Oc,{pdfName:n,currentPage:o,numPages:r,isHovered:true,variant:"fullscreen",onOpenAccessibility:l,onDownload:i,onClose:s}),J__namespace.default.createElement("div",{className:"flex-1 relative overflow-hidden bg-gray-900"},J__namespace.default.createElement("embed",{key:`${o}-${a}`,src:t,type:"application/pdf",className:"w-full h-full",title:jt(m,"pdfViewerFullscreen"),style:{overflow:"hidden"}}),J__namespace.default.createElement("div",{className:"absolute inset-0 flex items-center justify-between px-4 pointer-events-none"},J__namespace.default.createElement(A0,{onPrevious:p,onNext:f,canGoPrevious:u,canGoNext:g}))),J__namespace.default.createElement(Hc,{currentPage:o,numPages:r,pdfUrl:e,isHovered:true,variant:"fullscreen",zoom:a,onZoomIn:d,onZoomOut:c}));return typeof window!="undefined"?$W.createPortal(v,document.body):null},w8=NW;var aS=({pdfUrl:e,initialTotalPages:t,initialPdfName:o,retryCount:r=3,retryDelay:n=1e3,enableCorsProxy:a=false}={})=>{let[s,i]=J.useState(t||null),[l,d]=J.useState(o||""),[c,p]=J.useState(false),[f,u]=J.useState(null),g=J.useRef(void 0),m=J.useRef(null),v=J.useRef(false),h=J.useCallback(w=>{if(!w)return "";try{let A=new URL(w).pathname;return decodeURIComponent(A.split("/").pop()||"documento.pdf").replace(".pdf","").replace(/%20/g," ").trim()}catch(C){let A=w.split("/").pop()||"documento.pdf";return decodeURIComponent(A).replace(".pdf","").replace(/%20/g," ").trim()}},[]),b=J.useCallback((I,...P)=>j(void 0,[I,...P],function*(w,C=1,A=r,k=n,N){try{let S;try{S=yield fetch(w,{method:"GET",headers:{Accept:"application/pdf"},credentials:"omit",cache:"no-cache",signal:N});}catch(L){throw new Error(`Erro ao fazer fetch do PDF: ${L.message}`)}if(!S.ok)throw new Error(`HTTP ${S.status}: ${S.statusText}`);let D=S.headers.get("content-type");D&&D.includes("application/pdf");let T=yield S.arrayBuffer();if(!T||T.byteLength===0)throw new Error("PDF vazio ou inv\xE1lido");return T}catch(S){if(S.name==="AbortError")throw S;if(C<A)return yield new Promise(D=>setTimeout(D,k*C)),b(w,C+1,A,k,N);throw S}}),[]),x=J.useCallback(w=>j(void 0,null,function*(){if(typeof window!="undefined"&&e){if(v.current=true,t){i(t),p(false),v.current=false;return}p(true),u(null);try{let C=h(e);C&&!o&&d(C);let A=yield b(e,1,r,n,w),N=(yield pdfLib.PDFDocument.load(A,{ignoreEncryption:!1})).getPageCount();if(N>0&&N<1e4)i(N),u(null);else {let I=new Error(`N\xFAmero de p\xE1ginas inv\xE1lido: ${N}`);u(I);}}catch(C){if(C.name==="AbortError")return;let A=(C==null?void 0:C.message)||"Erro desconhecido ao carregar metadados do PDF",k=new Error(A);u(k),i(null);}finally{p(false),v.current=false;}}}),[e,t,o,h,b,r,n]);return J.useEffect(()=>{if(!e){g.current=void 0;return}if(g.current!==e&&(v.current=false),v.current||g.current===e&&s!==null)return;m.current&&m.current.abort();let w=new AbortController;return m.current=w,g.current=e,x(w.signal),()=>{w.abort(),m.current=null;}},[e,x]),{totalPages:s,pdfName:l||o||"",isLoading:c,error:f}};var DW=({pdfUrl:e="https://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf",totalPages:t,pdfName:o,className:r,onMaximizeClicked:n})=>{let[a,s]=J.useState(1),[i,l]=J.useState(false),[d,c]=J.useState(false),[p,f]=J.useState(false),[u,g]=J.useState(100),{locale:m}=M(),{totalPages:v,pdfName:h,isLoading:b}=aS({pdfUrl:e,initialTotalPages:t,initialPdfName:o,retryCount:3,retryDelay:1e3});J.useEffect(()=>{if(typeof window=="undefined")return;let T=setTimeout(()=>{let L=document.querySelector('embed[title="PDF Viewer"]');L&&L.offsetHeight===0&&l(true);},2e3);return ()=>clearTimeout(T)},[a]);let x=()=>{a>1&&(s(a-1),l(false));},w=()=>{let T=v!=null?v:100;a<T&&(s(a+1),l(false));},C=()=>{if(typeof window!="undefined"){let T=`${e}#page=${a}&toolbar=0&navpanes=0&scrollbar=0`;window.open(T,"_blank");}},A=()=>{n?n():f(!p);},k=()=>j(void 0,null,function*(){try{let T=yield fetch(e);if(!T.ok)throw new Error("Erro ao baixar o PDF");let L=yield T.blob();if(typeof window=="undefined")return;let E=window.URL.createObjectURL(L),B=document.createElement("a");B.href=E,B.download=`${h||"documento"}.pdf`,document.body.appendChild(B),B.click(),document.body.removeChild(B),window.URL.revokeObjectURL(E);}catch(T){typeof window!="undefined"&&window.open(e,"_blank");}}),N=()=>{if(typeof window!="undefined"){let T=`${e}#page=${a}&toolbar=0&navpanes=0&scrollbar=0`;window.open(T,"_blank");}},I=()=>{g(T=>Math.min(T+25,200));},P=()=>{g(T=>Math.max(T-25,50));},S=T=>{T.preventDefault(),T.stopPropagation();},D=`${e}#page=${a}&toolbar=0&navpanes=0&scrollbar=0&view=FitH&zoom=${u}`;return J__namespace.default.createElement("div",{className:`relative w-full flex flex-col border border-gray-200 rounded-lg overflow-hidden shadow-sm ${r||""}`,onMouseEnter:()=>c(true),onMouseLeave:()=>c(false)},J__namespace.default.createElement("div",{className:"relative w-full bg-gray-50 pdf-container",style:{minHeight:"400px",aspectRatio:"16/9"},onWheel:S,onTouchMove:S},J__namespace.default.createElement("div",{className:"relative w-full overflow-hidden",style:{height:"calc(100% - 60px)",minHeight:"calc(100% - 60px)"}},J__namespace.default.createElement(Oc,{pdfName:h,currentPage:a,numPages:v!=null?v:100,isHovered:d}),b&&J__namespace.default.createElement("div",{className:"absolute top-16 left-1/2 transform -translate-x-1/2 z-30 px-3 py-1 bg-black/70 text-white text-xs rounded"},J__namespace.default.createElement(Ge,null)),i?J__namespace.default.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center p-8 bg-gray-50"},J__namespace.default.createElement("div",{className:"text-center max-w-md"},J__namespace.default.createElement("p",{className:"text-lg font-semibold text-gray-900 mb-2"},jt(m,"blockedPdfTitle")),J__namespace.default.createElement("p",{className:"text-sm text-gray-600 mb-6"},jt(m,"blockedPdfDescription")),J__namespace.default.createElement("button",{onClick:C,className:"px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition-all flex items-center gap-2 mx-auto"},J__namespace.default.createElement(lucideReact.ExternalLink,{className:"w-4 h-4"}),jt(m,"openPdfInNewTab"))),J__namespace.default.createElement("div",{className:"absolute inset-0 flex items-center justify-between px-4 pointer-events-none"},J__namespace.default.createElement(A0,{onPrevious:x,onNext:w,canGoPrevious:a>1,canGoNext:a<(v!=null?v:100)}))):J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("embed",{key:a,src:D,type:"application/pdf",className:"w-full h-full object-contain",title:"PDF Viewer",style:{overflow:"hidden",width:"100%",height:"100%"}}),J__namespace.default.createElement("div",{className:"absolute inset-0 z-10",onWheel:S,onTouchMove:S,style:{pointerEvents:"none"}},J__namespace.default.createElement("div",{className:"absolute inset-0 flex items-center justify-between px-4 pointer-events-none"},J__namespace.default.createElement(A0,{onPrevious:x,onNext:w,canGoPrevious:a>1,canGoNext:a<(v!=null?v:100)})))),J__namespace.default.createElement(Hc,{currentPage:a,numPages:v!=null?v:100,pdfUrl:e,isHovered:d,onToggleFullscreen:A}))),p&&J__namespace.default.createElement(w8,{pdfUrl:e,pdfUrlWithPage:D,currentPage:a,numPages:v!=null?v:100,pdfName:h,zoom:u,onClose:()=>f(false),onDownload:k,onOpenAccessibility:N,onZoomIn:I,onZoomOut:P,onPreviousPage:x,onNextPage:w,canGoPrevious:a>1,canGoNext:a<(v!=null?v:100)}))},Uc=DW;function P8(e,t){return t.split(".").reduce((o,r)=>o&&typeof o=="object"?o[r]:void 0,e)}function Wm(e,t){let{locale:o}=M(),r=e[o]||e.pt,n=(a,s)=>{let i=a,l=P8(r,i);return l===void 0?(console.warn(`Translation key "${i}" not found for locale "${o}"`),i):typeof l=="string"&&s?l.replace(/\{\{(\w+)\}\}/g,(d,c)=>{var p;return ((p=s[c])==null?void 0:p.toString())||d}):typeof l=="string"?l:i};return {translate:n,t:n,locale:o}}var sS={feed:{post:"Publica\xE7\xE3o","posts-not-found":{title:"Nenhuma publica\xE7\xE3o encontrada",description:"Crie uma publica\xE7\xE3o para come\xE7ar a interagir com a comunidade."},"post-filters":{all:"Todos",connections:"Conex\xF5es",contacts:"Contactos",communities:"Comunidades"},communities:{title:"Comunidades",explore:"Ver tudo",tabs:{explore:"Explorar comunidades",my:"Minhas comunidades",requests:"Solicita\xE7\xF5es","contact-communities":"Comunidades em seus contactos fazem parte","interested-communities":"Comunidades que podem te interessar","view-more-communities":"Ver mais comunidades",back:"Voltar","join-community":"Fazer parte","cancel-join":"Cancelar",loading:"Carregando...",loadMore:"Carregar mais"}},pages:{title:"P\xE1ginas para voc\xEA",explore:"Explorar",my:"Minhas p\xE1ginas","for-you":"P\xE1ginas para voc\xEA",popular:"P\xE1ginas populares","view-more":"Ver mais p\xE1ginas",follow:"Seguir",following:"Seguindo"},users:{title:"Pessoas",explore:"Ver todas",tabs:{explore:"Explorar pessoas",following:"Pessoas que sigo",followers:"Meus seguidores","contact-people":"Pessoas que seus contatos conhecem","suggested-people":"Pessoas que voc\xEA pode conhecer","view-more-people":"Ver mais pessoas",back:"Voltar",follow:"Seguir",unfollow:"Deixar de seguir",loading:"Carregando...",loadMore:"Carregar mais"}},"users-suggestion":{title:"Sugest\xF5es para voc\xEA","view-more":"Mais sugest\xF5es"},"suggestions-modal":{users:"Sugest\xF5es de pessoas",communities:"Sugest\xF5es de comunidades",pages:"Sugest\xF5es de p\xE1ginas",placeholder:"Pesquisar"},reels:{title:"Clips",button:"Criar clips","remaining-time":"Restante ","remaining-time-plural":"Restam ",expired:"Publica\xE7\xE3o expirada","remaining-time-seconds":"segundos","remaining-time-minutes":"minutos","remaining-time-hours":"horas","remaining-time-days":"dias","remaining-time-months":"meses","remaining-time-years":"anos",comments:{title:"Coment\xE1rios",reply:"Responder",like:"Curtiu",likes:"curtidas","add-comment":"Adicione um coment\xE1rio...",edited:"(Editado)","load-more-comments":"Carregar mais coment\xE1rios","show-less-comments":"Mostrar menos coment\xE1rios","load-more-answers":"Carregar mais respostas","show-less-answers":"Mostrar menos respostas",loading:"Carregando..."}},streaming:{"upcoming-streams":"Lives agendadas","browse-streams":"Explorar mais lives"},messages:{title:"Mensagens","view-all":"Ver todas"},respost:{title:"Repostar publica\xE7\xE3o"},"share-post":{title:"Compartilhar publica\xE7\xE3o","copy-link":{"post-card-label":"Copiar link da publica\xE7\xE3o",label:"Copiar link",success:{title:"Link copiado com sucesso!",description:"O link da publica\xE7\xE3o foi copiado. Agora voc\xEA pode compartilh\xE1-lo com seus amigos."},error:{title:"Erro ao copiar link!",description:"Ocorreu um erro ao copiar o link da publica\xE7\xE3o. Tente novamente."}}},"create-post":{title:"Criar publica\xE7\xE3o","start-a-post":"Comece uma publica\xE7\xE3o","add-description":"Adicione uma descri\xE7\xE3o...",options:{midia:"M\xEDdia",job:"Vaga",reels:"Clips",article:"Artigo",emoji:"Emoji",mention:"Mencionar",schedule:"Agendar","saved-items":"Itens salvos",scheduling:"Agendamentos"},schedule:{"base-on-your-location":"baseado na sua localiza\xE7\xE3o","select-date":"Selecionar data","select-time":"Selecionar hor\xE1rio","scheduled-for":"Agendado para",confirm:"Agendar publica\xE7\xE3o","set-date-time":"Defina o dia e a hora da publica\xE7\xE3o","cancel-button":"Cancelar","schedule-button":"Agendar","schedule-publication":"Agendar publica\xE7\xE3o","publish-ideal-time":"Publicar no hor\xE1rio ideal","publication-scheduled-for":"Publica\xE7\xE3o agendada para","no-post-scheduled":"Nenhuma publica\xE7\xE3o agendada","no-scheduled-posts-yet":"Voc\xEA ainda n\xE3o tem publica\xE7\xF5es agendadas","close-button":"Fechar","scheduled-publications":"Publica\xE7\xF5es agendadas","view-upcoming-publications":"Ver o que ser\xE1 publicado em breve","edit-button":"Editar","delete-button":"Excluir","loading-scheduled-posts":"Carregando publica\xE7\xF5es agendadas...","loading-pages":"Carregando p\xE1ginas..."},filters:{all:"Todos",connections:"Conex\xF5es",communities:"Comunidades"},buttons:{save:"Salvar",saving:"Salvando...",resume:"Retomar",publish:"Publicar",publishing:"Publicando..."},reel:{"upload-prompt":{title:"Arraste, solte e veja a m\xE1gica em 30 segundos! \u{1F680}\u{1F3A5}",button:"Selecionar v\xEDdeo"}}},"post-card":{community:{"published-in":"Tamb\xE9m publicado na comunidade",enter:"Entrar na comunidade"},page:{"published-by":"Publicado pela p\xE1gina"},"not-found":{"users-not-found":"Nenhum usu\xE1rio encontrado",title:"Publica\xE7\xE3o n\xE3o encontrada",description:"A publica\xE7\xE3o que voc\xEA procura n\xE3o existe."},user:{follow:"Seguir",unfollow:"Deixar de seguir","make-contact":"Fazer contato",following:"Seguindo",contact:"Contato"},content:{"view-more":"Ver mais","view-less":"Ver menos"},post:{options:{save:"Salvar","view-stats":"Ver estat\xEDsticas","copy-link":"Copiar link da publica\xE7\xE3o",delete:"Excluir publica\xE7\xE3o",edit:"Editar publica\xE7\xE3o"},reactions:{agree:"Apoio",dislike:"Discordo",love:"Amor",genial:"Genial",haha:"Haha",like:"Concordo","no-comments":"Sem coment\xE1rios"},stats:{reactions:"rea\xE7\xE3o(\xF5es)",comments:"coment\xE1rio(s)",shares:"compartilhamento(s)",stats:"Estat\xEDsticas"},audio:{listen:"Ouvir",pause:"Pausar",resume:"Retomar",restart:"Reiniciar",stop:"Parar"},actions:{react:"Reagir",comment:"Comentar",share:"Compartilhar",repost:"Recompartilhar"},timer:{extend:"Estender",reactivate:"Reativar",expired:"Expirou"},comments:{options:{edit:"Editar",delete:"Excluir","switch-profile":{title:"Trocar perfil",description:"Selecione o perfil que deseja usar para comentar nesta publica\xE7\xE3o.",button:{confirm:"Confirmar",cancel:"Cancelar"},"commenting-as":"Comentando como...",search:"Pesquisar","confirm-comment":"Voc\xEA realmente quer comentar usando esta p\xE1gina?","no-results":'Nenhum perfil encontrado para "{searchQuery}"'}},comment:"Comentar na publica\xE7\xE3o",answer:"Escreva sua resposta",actions:{answer:"Responder",react:"Reagir"},delete:{label:"Excluir",title:"Excluir coment\xE1rio",description:"Tem certeza de que deseja excluir este coment\xE1rio?",toasts:{error:{title:"Erro ao excluir coment\xE1rio!",label:"Ocorreu um erro ao excluir o coment\xE1rio. Tente novamente."}}},edit:{save:"Salvar",cancel:"Cancelar"}}}},"delete-modal":{title:"Excluir publica\xE7\xE3o",description:"Tem certeza de que deseja excluir esta publica\xE7\xE3o?"},"share-modal":{post:{"shared-by":"Compartilhado por","share-now":"Compartilhar agora",title:"Compartilhar publica\xE7\xE3o","in-community":{title:"Compartilhar na comunidade",empty:"Voc\xEA n\xE3o faz parte de nenhuma comunidade ainda."},"in-chat":{title:"Compartilhar no chat"},to:{title:"Compartilhar para",page:"P\xE1gina"},"empty-message":"Voc\xEA n\xE3o faz parte de nenhuma comunidade ainda."}},"medias-modal":{"loading-medias":"Carregando m\xEDdias...",added:{title:"M\xEDdia adicionada"},"edit-media":"Editar m\xEDdia"},done:"Conclu\xEDdo",toasts:{create:{creating:{title:"Criando publica\xE7\xE3o...",description:"Sua publica\xE7\xE3o est\xE1 sendo criada. Voc\xEA pode continuar editando enquanto isso."},success:{title:"Publica\xE7\xE3o criada com sucesso!",description:"Sua publica\xE7\xE3o foi criada com sucesso. Agora voc\xEA pode compartilh\xE1-la com seus amigos."},error:{title:"Erro ao criar publica\xE7\xE3o!",description:"Ocorreu um erro ao criar sua publica\xE7\xE3o. Tente novamente."}},edit:{editing:{title:"Editando publica\xE7\xE3o...",description:"Sua publica\xE7\xE3o est\xE1 sendo editada. Voc\xEA pode continuar trabalhando enquanto isso."},success:{title:"Publica\xE7\xE3o editada com sucesso!",description:"Sua publica\xE7\xE3o foi editada com sucesso. Agora voc\xEA pode compartilh\xE1-la com seus amigos."},error:{title:"Erro ao editar publica\xE7\xE3o!",description:"Ocorreu um erro ao editar sua publica\xE7\xE3o. Tente novamente."}},delete:{deleting:{title:"Excluindo publica\xE7\xE3o...",description:"Sua publica\xE7\xE3o est\xE1 sendo exclu\xEDda. Voc\xEA pode continuar navegando enquanto isso."},success:{title:"Publica\xE7\xE3o exclu\xEDda com sucesso!",description:"Sua publica\xE7\xE3o foi exclu\xEDda com sucesso."},error:{title:"Erro ao excluir publica\xE7\xE3o!",description:"Ocorreu um erro ao excluir sua publica\xE7\xE3o. Tente novamente."}},share:{success:{title:"Publica\xE7\xE3o compartilhada com sucesso!",description:"Sua publica\xE7\xE3o foi compartilhada com sucesso. Agora voc\xEA pode compartilh\xE1-la com seus amigos."},error:{title:"Erro ao compartilhar publica\xE7\xE3o!",description:"Ocorreu um erro ao compartilhar sua publica\xE7\xE3o. Tente novamente."}},extend:{success:{title:"Tempo estendido com sucesso!",description:"O tempo de expira\xE7\xE3o da sua publica\xE7\xE3o foi estendido com sucesso."},error:{title:"Erro ao estender tempo!",description:"N\xE3o foi poss\xEDvel estender o tempo de expira\xE7\xE3o da publica\xE7\xE3o. Tente novamente."}}},"post-stats-modal":{title:"Estat\xEDsticas da publica\xE7\xE3o",createdAt:"Publicado em",engagement:{options:{impressions:"Impress\xF5es",likes:"Curtidas",comments:"Coment\xE1rios",shares:"Compartilhamentos"},posts:{back:"Voltar","post-impressions":{title:"Impress\xF5es da publica\xE7\xE3o","posted-at":"Publicado em",remain:{label:"Restante",hours:"horas"},"social-media-impact":{title:"Impacto nas redes sociais",reactions:"Rea\xE7\xF5es",comments:"Coment\xE1rios",shares:"Compartilhamentos","no-impact":{comments:"Nenhuma altera\xE7\xE3o necess\xE1ria"}},views:{title:"Visualiza\xE7\xF5es","viewed-at":"Visualizado em","all-reactions":"Todas as rea\xE7\xF5es"}},title:"Publica\xE7\xF5es",tip:"Publica\xE7\xF5es frequentes podem aumentar suas chances de ser descoberto e destaque em at\xE9 3x.","create-post":"Criar publica\xE7\xE3o",discovers:{title:"Descobertas","users-reached":"Usu\xE1rios alcan\xE7ados"}}},stats:{reactions:"Rea\xE7\xF5es",comments:"Coment\xE1rios",shares:"Compartilhamentos",views:"Visualiza\xE7\xF5es","last-days":"nos \xFAltimos 7 dias"},schedule:{title:"Agendar publica\xE7\xE3o","select-date":"Selecionar data","select-time":"Selecionar hor\xE1rio","scheduled-for":"Agendado para",confirm:"Agendar publica\xE7\xE3o","scheduled-indicator":"Agendado para"}}}};var iS={feed:{post:"Post","posts-not-found":{title:"No posts found",description:"Create a post to start engaging with the community."},"post-filters":{all:"All",connections:"Connections",contacts:"Contacts",communities:"Communities"},communities:{title:"Communities",explore:"See all",tabs:{explore:"Explore communities",my:"My communities",requests:"Requests","contact-communities":"Communities your contacts are part of","interested-communities":"Communities that may interest you","view-more-communities":"View more communities",back:"Back","join-community":"Join community","cancel-join":"Cancel",loading:"Loading...",loadMore:"Load more"}},pages:{title:"Pages for you",explore:"Explore",my:"My pages","for-you":"Pages for you",popular:"Popular pages","view-more":"View more pages",follow:"Follow",following:"Following"},users:{title:"People",explore:"See all",tabs:{explore:"Explore people",following:"People I follow",followers:"My followers","contact-people":"People your contacts know","suggested-people":"People you may know","view-more-people":"View more people",back:"Back",follow:"Follow",unfollow:"Unfollow",loading:"Loading...",loadMore:"Load more"}},"users-suggestion":{title:"Suggestions for you","view-more":"More suggestions"},"suggestions-modal":{users:"People suggestions",communities:"Community suggestions",pages:"Page suggestions",placeholder:"Search"},reels:{title:"Clips",button:"Create a clip","remaining-time":"Remaining ","remaining-time-plural":"Remain ",expired:"Post expired","remaining-time-seconds":"seconds","remaining-time-minutes":"minutes","remaining-time-hours":"hours","remaining-time-days":"days","remaining-time-months":"months","remaining-time-years":"years",comments:{title:"Comments",reply:"Reply",like:"Liked",likes:"likes","add-comment":"Add a comment...",edited:"(Edited)","load-more-comments":"Load more comments","show-less-comments":"Show less comments","load-more-answers":"Load more answers","show-less-answers":"Show less answers",loading:"Loading..."}},streaming:{"upcoming-streams":"Scheduled lives","browse-streams":"Explore more lives"},messages:{title:"Messages","view-all":"View all"},"share-post":{title:"Share post","copy-link":{"post-card-label":"Copy post link",label:"Copy link",success:{title:"Link copied successfully!",description:"The post link was copied successfully. Now you can share it with your friends."},error:{title:"Error copying post link!",description:"An error occurred while copying the post link. Please try again."}}},"create-post":{title:"Create post","start-a-post":"Start a post","add-description":"Add a description...",options:{midia:"Media",job:"Jobs",reels:"Clips",article:"Article",emoji:"Emoji",mention:"Mention",schedule:"Schedule",scheduling:"Appoitments","saved-items":"Saved items"},schedule:{"base-on-your-location":"based on your location","select-date":"Select Date","select-time":"Select Time","scheduled-for":"Scheduled for",confirm:"Schedule Post","set-date-time":"Set the day and time for publication","cancel-button":"Cancel","schedule-button":"Schedule","schedule-publication":"Schedule Publication","publish-ideal-time":"Publish at the ideal time","publication-scheduled-for":"Post scheduled for","no-post-scheduled":"No post scheduled","no-scheduled-posts-yet":"You don\u2019t have any scheduled posts yet","close-button":"Close","scheduled-publications":"Scheduled posts","view-upcoming-publications":"See what will be published soon","edit-button":"Edit","delete-button":"Delete","loading-scheduled-posts":"Loading scheduled posts...","loading-pages":"Loading pages..."},filters:{all:"All",connections:"Connections",communities:"Communities"},buttons:{save:"Save",saving:"Saving...",resume:"Resume",publish:"Publish",publishing:"Publishing..."},reel:{"upload-prompt":{title:"Drag, drop, and see the magic in 30 seconds! \u{1F680}\u{1F3A5}",button:"Select video"}}},"post-card":{community:{"published-in":"Also published in the community",enter:"Join community"},page:{"published-by":"Published by page"},"not-found":{"users-not-found":"No users found",title:"Post not found",description:"The post you are looking for does not exist."},user:{follow:"Follow",unfollow:"Unfollow","make-contact":"Make contact",following:"Following",contact:"Contact"},content:{"view-more":"View more","view-less":"View less"},post:{options:{save:"Save","view-stats":"View stats","copy-link":"Copy post link",delete:"Delete post",edit:"Edit post"},reactions:{agree:"Support",dislike:"Disagree",love:"Love",genial:"Brilliant",haha:"Haha",like:"Like","no-comments":"No comments"},stats:{reactions:"reaction(s)",comments:"comment(s)",shares:"share(s)",stats:"Statistics"},audio:{listen:"Listen",pause:"Pause",resume:"Resume",restart:"Restart",stop:"Stop"},actions:{react:"React",comment:"Comment",share:"Share",repost:"Repost"},timer:{extend:"Extend",reactivate:"Reactivate",expired:"Expired"},comments:{options:{edit:"Edit",delete:"Delete","switch-profile":{title:"Switch profile",description:"Select the profile you want to use to comment on this post.",button:{confirm:"Confirm",cancel:"Cancel"},"commenting-as":"Commenting as...",search:"Search","confirm-comment":"Do you really want to comment using this page?","no-results":'No profiles found for "{searchQuery}"'}},comment:"Comment on post",answer:"Write your reply",actions:{answer:"Reply",react:"React"},delete:{label:"Delete",title:"Delete comment",description:"Are you sure you want to delete this comment?",toasts:{error:{title:"Error deleting comment!",label:"An error occurred while deleting the comment. Please try again."}}},edit:{save:"Save",cancel:"Cancel"}}}},"delete-modal":{title:"Delete post",description:"Are you sure you want to delete this post?"},"share-modal":{post:{"shared-by":"Shared by","share-now":"Share now",title:"Share post","in-community":{title:"Share in community"},"empty-message":"You are not part of any community yet.","in-chat":{title:"Share in chat"},to:{title:"Share to",page:"Page"}}},"medias-modal":{"loading-medias":"Loading media...",added:{title:"Media added"},"edit-media":"Edit media"},done:"Done",toasts:{create:{creating:{title:"Creating post...",description:"Your post is being created. You can keep editing in the meantime."},success:{title:"Post created successfully!",description:"Your post was created successfully. You can now share it with your friends."},error:{title:"Error creating post!",description:"An error occurred while creating your post. Please try again."}},edit:{editing:{title:"Editing post...",description:"Your post is being edited. You can keep working while it\u2019s updated."},success:{title:"Post edited successfully!",description:"Your post was edited successfully. You can now share it with your friends."},error:{title:"Error editing post!",description:"An error occurred while editing your post. Please try again."}},delete:{deleting:{title:"Deleting post...",description:"Your post is being deleted. You can keep browsing in the meantime."},success:{title:"Post deleted successfully!",description:"Your post was deleted successfully."},error:{title:"Error deleting post!",description:"An error occurred while deleting your post. Please try again."}},share:{success:{title:"Post shared successfully!",description:"Your post was shared successfully. You can now share it with your friends."},error:{title:"Error sharing post!",description:"An error occurred while sharing your post. Please try again."}},extend:{success:{title:"Time extended successfully!",description:"Your post expiration time has been extended successfully."},error:{title:"Error extending time!",description:"Could not extend the post expiration time. Please try again."}}},"post-stats-modal":{title:"Post statistics",createdAt:"Published on",engagement:{options:{impressions:"Impressions",likes:"Likes",comments:"Comments",shares:"Shares"},posts:{back:"Back","post-impressions":{title:"Post impressions","posted-at":"Posted on",remain:{label:"Remaining",hours:"hours"},"social-media-impact":{title:"Social media impact",reactions:"Reactions",comments:"Comments",shares:"Shares","no-impact":{comments:"No changes needed"}},views:{title:"Views","viewed-at":"Viewed on","all-reactions":"All reactions"}},title:"Posts",tip:"Frequent posts can increase your chances of being discovered and featured by up to 3x.","create-post":"Create post",discovers:{title:"Discoveries","users-reached":"Users reached"}}},stats:{reactions:"Reactions",comments:"Comments",shares:"Shares",views:"Views","last-days":"in the last 7 days"},schedule:{title:"Schedule Post","select-date":"Select Date","select-time":"Select Time","scheduled-for":"Scheduled for",confirm:"Schedule Post","scheduled-indicator":"Scheduled for"}}}};var lS={feed:{post:"Publication","posts-not-found":{title:"Aucune publication trouv\xE9e",description:"Cr\xE9ez une publication pour commencer \xE0 interagir avec la communaut\xE9."},"post-filters":{all:"Tous",connections:"Connexions",contacts:"Contacts",communities:"Communaut\xE9s"},communities:{title:"Communaut\xE9s",explore:"Voir tout",tabs:{explore:"Explorer les communaut\xE9s",my:"Mes communaut\xE9s",requests:"Demandes","contact-communities":"Communaut\xE9s dont vos contacts font partie","interested-communities":"Communaut\xE9s qui pourraient vous int\xE9resser","view-more-communities":"Voir plus de communaut\xE9s",back:"Retour","join-community":"Rejoindre"}},pages:{title:"Pages pour vous",explore:"Explorer",my:"Mes pages","for-you":"Pages pour vous",popular:"Pages populaires","view-more":"Voir plus de pages",follow:"Suivre",following:"Suivant"},users:{title:"Personnes",explore:"Voir tout",tabs:{explore:"Explorer les personnes",following:"Personnes que je suis",followers:"Mes abonn\xE9s","contact-people":"Personnes que vos contacts connaissent","suggested-people":"Personnes que vous pourriez conna\xEEtre","view-more-people":"Voir plus de personnes",back:"Retour",follow:"Suivre",unfollow:"Ne plus suivre",loading:"Chargement...",loadMore:"Charger plus"}},"users-suggestion":{title:"Suggestions pour vous","view-more":"Plus de suggestions"},"suggestions-modal":{users:"Suggestions de personnes",communities:"Suggestions de communaut\xE9s",pages:"Suggestions de pages",placeholder:"Rechercher"},reels:{title:"Clips",button:"Cr\xE9er un clip","remaining-time":"Il reste ","remaining-time-plural":"Restent ",expired:"Publication expir\xE9e","remaining-time-seconds":"secondes","remaining-time-minutes":"minutes","remaining-time-hours":"heures","remaining-time-days":"jours","remaining-time-months":"mois","remaining-time-years":"ann\xE9es",comments:{title:"Commentaires",reply:"R\xE9pondre",like:"Aim\xE9",likes:"mentions J'aime","add-comment":"Ajouter un commentaire...",edited:"(Modifi\xE9)","load-more-comments":"Charger plus de commentaires","show-less-comments":"Afficher moins de commentaires","load-more-answers":"Charger plus de r\xE9ponses","show-less-answers":"Afficher moins de r\xE9ponses",loading:"Chargement..."}},streaming:{"upcoming-streams":"Lives programm\xE9s","browse-streams":"Explorer plus de lives"},messages:{title:"Messages","view-all":"Voir tout"},"share-post":{title:"Partager la publication","copy-link":{"post-card-label":"Copier le lien de la publication",label:"Copier le lien",success:{title:"Lien copi\xE9 avec succ\xE8s !",description:"Le lien de la publication a \xE9t\xE9 copi\xE9 avec succ\xE8s. Vous pouvez maintenant le partager avec vos amis."},error:{title:"Erreur lors de la copie du lien !",description:"Une erreur s'est produite lors de la copie du lien de la publication. Veuillez r\xE9essayer."}}},"create-post":{title:"Cr\xE9er une publication","start-a-post":"Commencez une publication","add-description":"Ajoutez une description...",options:{midia:"M\xE9dia",job:"Offre d'emploi",reels:"Clips",article:"Article",emoji:"\xC9moji",mention:"Mentionner",schedule:"Programmer","saved-items":"\xC9l\xE9ments enregistr\xE9s"},schedule:{"base-on-your-location":"selon votre localisation","select-date":"S\xE9lectionner la date","select-time":"S\xE9lectionner l'heure","scheduled-for":"Pr\xE9vu pour",confirm:"Programmer la publication","set-date-time":"D\xE9finir la date et l'heure de publication","cancel-button":"Annuler","schedule-button":"Programmer","schedule-publication":"Programmer la publication","publish-ideal-time":"Publiez au moment id\xE9al","publication-scheduled-for":"Publication pr\xE9vue pour","no-post-scheduled":"Aucune publication programm\xE9e","no-scheduled-posts-yet":"Vous n'avez pas encore de publications programm\xE9es","close-button":"Fermer","scheduled-publications":"Publications programm\xE9es","view-upcoming-publications":"Voir les publications \xE0 venir","edit-button":"Modifier","delete-button":"Supprimer","loading-scheduled-posts":"Chargement des publications programm\xE9es...","loading-pages":"Chargement des pages..."},filters:{all:"Tous",connections:"Connexions",communities:"Communaut\xE9s"},buttons:{save:"Enregistrer",saving:"Enregistrement...",resume:"Reprendre",publish:"Publier",publishing:"Publication..."},reel:{"upload-prompt":{title:"Glissez, d\xE9posez et voyez le changement en 30 secondes ! \u{1F680}\u{1F3A5}",button:"S\xE9lectionner une vid\xE9o"}}},"post-card":{community:{"published-in":"\xC9galement publi\xE9 dans la communaut\xE9",enter:"Rejoindre la communaut\xE9"},page:{"published-by":"Publi\xE9 par la page"},"not-found":{"users-not-found":"Aucun utilisateur trouv\xE9",title:"Publication introuvable",description:"La publication que vous recherchez n'existe pas."},user:{follow:"Suivre",unfollow:"Ne plus suivre","make-contact":"Entrer en contact",following:"Suivi",contact:"Contact"},content:{"view-more":"Voir plus","view-less":"Voir moins"},post:{options:{save:"Enregistrer","view-stats":"Voir les statistiques","copy-link":"Copier le lien de la publication",delete:"Supprimer la publication",edit:"Modifier la publication"},reactions:{agree:"Soutien",dislike:"\xCAtre en d\xE9saccord",love:"J'adore",genial:"G\xE9nial",haha:"Rires",like:"J'aime","no-comments":"Aucun commentaire"},stats:{reactions:"r\xE9action(s)",comments:"commentaire(s)",shares:"partage(s)",stats:"Statistiques"},audio:{listen:"\xC9couter",pause:"Pause",resume:"Reprendre",restart:"Recommencer",stop:"Arr\xEAter"},actions:{react:"R\xE9agir",comment:"Commenter",share:"Partager",repost:"Reposter"},timer:{extend:"Prolonger",reactivate:"R\xE9activer",expired:"Expir\xE9"},comments:{options:{edit:"Modifier",delete:"Supprimer","switch-profile":{title:"Changer de profil",description:"S\xE9lectionnez le profil que vous souhaitez utiliser pour commenter cette publication.",button:{confirm:"Confirmer",cancel:"Annuler"},"commenting-as":"Commenter en tant que...",search:"Rechercher","confirm-comment":"Voulez-vous vraiment commenter avec cette page ?","no-results":"Aucun profil trouv\xE9 pour \xAB {searchQuery} \xBB"}},comment:"Commenter la publication",answer:"\xC9crivez votre r\xE9ponse",actions:{answer:"R\xE9pondre",react:"R\xE9agir"},delete:{label:"Supprimer",title:"Supprimer le commentaire",description:"\xCAtes-vous s\xFBr de vouloir supprimer ce commentaire ?",toasts:{error:{title:"Erreur lors de la suppression du commentaire !",label:"Une erreur s'est produite lors de la suppression du commentaire. Veuillez r\xE9essayer."}}},edit:{save:"Enregistrer",cancel:"Annuler"}}}},"delete-modal":{title:"Supprimer la publication",description:"\xCAtes-vous s\xFBr de vouloir supprimer cette publication ?"},"share-modal":{post:{"shared-by":"Partag\xE9 par","share-now":"Partager maintenant",title:"Partager la publication","in-community":{title:"Partager dans la communaut\xE9"},"empty-message":"Vous n'\xEAtes pas membre de aucune communaut\xE9 encore.","in-chat":{title:"Partager dans le chat"},to:{title:"Partager sur",page:"Page"}}},"medias-modal":{"loading-medias":"Chargement des m\xE9dias...",added:{title:"M\xE9dias ajout\xE9s"},"edit-media":"Modifier le m\xE9dia"},done:"Termin\xE9",toasts:{create:{creating:{title:"Cr\xE9ation de la publication...",description:"Votre publication est en cours de cr\xE9ation. Vous pouvez continuer \xE0 modifier pendant le processus."},success:{title:"Publication cr\xE9\xE9e avec succ\xE8s !",description:"Votre publication a \xE9t\xE9 cr\xE9\xE9e avec succ\xE8s. Vous pouvez maintenant la partager avec vos amis."},error:{title:"Erreur lors de la cr\xE9ation de la publication !",description:"Une erreur s'est produite lors de la cr\xE9ation de votre publication. Veuillez r\xE9essayer."}},edit:{editing:{title:"Modification de la publication...",description:"Votre publication est en cours de modification. Vous pouvez continuer \xE0 \xE9diter pendant le processus."},success:{title:"Publication modifi\xE9e avec succ\xE8s !",description:"Votre publication a \xE9t\xE9 modifi\xE9e avec succ\xE8s. Vous pouvez maintenant la partager avec vos amis."},error:{title:"Erreur lors de la modification de la publication !",description:"Une erreur s'est produite lors de la modification de votre publication. Veuillez r\xE9essayer."}},delete:{deleting:{title:"Suppression de la publication...",description:"Votre publication est en cours de suppression. Vous pouvez continuer \xE0 naviguer pendant le processus."},success:{title:"Publication supprim\xE9e avec succ\xE8s !",description:"Votre publication a \xE9t\xE9 supprim\xE9e avec succ\xE8s."},error:{title:"Erreur lors de la suppression de la publication !",description:"Une erreur s'est produite lors de la suppression de votre publication. Veuillez r\xE9essayer."}},share:{success:{title:"Publication partag\xE9e avec succ\xE8s !",description:"Votre publication a \xE9t\xE9 partag\xE9e avec succ\xE8s. Vous pouvez maintenant la partager avec vos amis."},error:{title:"Erreur lors du partage de la publication !",description:"Une erreur s'est produite lors du partage de votre publication. Veuillez r\xE9essayer."}},extend:{success:{title:"Dur\xE9e prolong\xE9e avec succ\xE8s !",description:"La dur\xE9e d'expiration de votre publication a \xE9t\xE9 prolong\xE9e avec succ\xE8s."},error:{title:"Erreur lors de la prolongation !",description:"Impossible de prolonger la dur\xE9e d'expiration de la publication. Veuillez r\xE9essayer."}}},"post-stats-modal":{title:"Statistiques de la publication",createdAt:"Publi\xE9 le",engagement:{options:{impressions:"Impressions",likes:"Mentions J'aime",comments:"Commentaires",shares:"Partages"},posts:{back:"Retour","post-impressions":{title:"Impressions de la publication","posted-at":"Publi\xE9 le",remain:{label:"Restant",hours:"heures"},"social-media-impact":{title:"Impact sur les r\xE9seaux sociaux",reactions:"R\xE9actions",comments:"Commentaires",shares:"Partages","no-impact":{comments:"Aucun changement n\xE9cessaire"}},views:{title:"Vues","viewed-at":"Vu le","all-reactions":"Toutes les r\xE9actions"}},title:"Publications",tip:"Publier fr\xE9quemment augmente jusqu'\xE0 3\xD7 vos chances d'\xEAtre d\xE9couvert et mis en avant.","create-post":"Cr\xE9er une publication",discovers:{title:"D\xE9couvertes","users-reached":"Utilisateurs atteints"}}},stats:{reactions:"R\xE9actions",comments:"Commentaires",shares:"Partages",views:"Vues","last-days":"des 7 derniers jours"},schedule:{title:"Programmer la publication","select-date":"S\xE9lectionner la date","select-time":"S\xE9lectionner l'heure","scheduled-for":"Pr\xE9vu pour",confirm:"Programmer la publication","scheduled-indicator":"Pr\xE9vu pour"}}}};var dS={article:{title:"Artigo",editor:{placeholder:"Comece a escrever seu artigo...","title-placeholder":"T\xEDtulo do artigo"},hashtags:{"suggested-title":"Hastags sugeridas:",default:{professionals:"Profissionais",companies:"Empresas",innovation:"Inova\xE7\xE3o",angola:"Angola"}},upload:{"uploading-single":"Enviando imagem...","uploading-multiple":"Enviando {{count}} imagens...","click-to-upload":"Clique para enviar","drag-and-drop":"ou arraste e solte","uploading-files":"Enviando {{count}} arquivos","clear-all":"Limpar tudo","no-file-selected":"Nenhum arquivo selecionado","no-files-to-upload":"Nenhum arquivo para enviar","max-files-error":"M\xE1ximo {{limit}} arquivo{{plural}} permitido{{plural}}","file-size-error":"Tamanho do arquivo excede o m\xE1ximo permitido ({{maxSize}}MB)","upload-failed":"Falha no upload","no-url-returned":"Falha no upload: Nenhuma URL retornada","upload-function-not-defined":"Fun\xE7\xE3o de upload n\xE3o definida"},buttons:{publish:"Publicar",publishing:"Publicando...",save:"Salvar",saving:"Salvando..."}}};var cS={article:{title:"Article",editor:{placeholder:"Start writing your article...","title-placeholder":"Article title"},hashtags:{"suggested-title":"Suggested hashtags:",default:{professionals:"Professionals",companies:"Companies",innovation:"Innovation",angola:"Angola"}},upload:{"uploading-single":"Uploading image...","uploading-multiple":"Uploading {{count}} images...","click-to-upload":"Click to upload","drag-and-drop":"or drag and drop","uploading-files":"Uploading {{count}} files","clear-all":"Clear All","no-file-selected":"No file selected","no-files-to-upload":"No files to upload","max-files-error":"Maximum {{limit}} file{{plural}} allowed","file-size-error":"File size exceeds maximum allowed ({{maxSize}}MB)","upload-failed":"Upload failed","no-url-returned":"Upload failed: No URL returned","upload-function-not-defined":"Upload function is not defined"},buttons:{publish:"Publish",publishing:"Publishing...",save:"Save",saving:"Saving..."}}};var pS={article:{title:"Article",editor:{placeholder:"Commencez \xE0 \xE9crire votre article...","title-placeholder":"Titre de l'article"},hashtags:{"suggested-title":"Hashtags sugg\xE9r\xE9s :",default:{professionals:"Professionnels",companies:"Entreprises",innovation:"Innovation",angola:"Angola"}},upload:{"uploading-single":"T\xE9l\xE9chargement de l'image...","uploading-multiple":"T\xE9l\xE9chargement de {{count}} images...","click-to-upload":"Cliquez pour t\xE9l\xE9charger","drag-and-drop":"ou glissez-d\xE9posez","uploading-files":"T\xE9l\xE9chargement de {{count}} fichiers","clear-all":"Tout effacer","no-file-selected":"Aucun fichier s\xE9lectionn\xE9","no-files-to-upload":"Aucun fichier \xE0 t\xE9l\xE9charger","max-files-error":"Maximum {{limit}} fichier{{plural}} autoris\xE9{{plural}}","file-size-error":"La taille du fichier d\xE9passe le maximum autoris\xE9 ({{maxSize}}MB)","upload-failed":"\xC9chec du t\xE9l\xE9chargement","no-url-returned":"\xC9chec du t\xE9l\xE9chargement : Aucune URL retourn\xE9e","upload-function-not-defined":"Fonction de t\xE9l\xE9chargement non d\xE9finie"},buttons:{publish:"Publier",publishing:"Publication...",save:"Sauvegarder",saving:"Sauvegarde..."}}};var mS={pt:sS,en:iS,fr:lS};var uS={pt:dS,en:cS,fr:pS};function Oe(){let{translate:e}=Wm(mS);return {translate:e}}function Ja(){let{translate:e}=Wm(uS);return {translate:e}}var Zi=hf.gql`
|
|
1809
|
+
`;function ZP(){let{feedApi:e,user:t}=M(),{mutate:o,isPending:r}=ge({mutationKey:["createFollow"],mutationFn:a=>j(this,[a],function*({createFollowInput:n}){var s;try{return yield hf__default.default(e!=null?e:"",KP,{createFollowInput:n},{"x-access-token":(s=t==null?void 0:t.accessToken)!=null?s:""})}catch(i){throw i}})});return {createFollow:o,isCreatingFollow:r}}var YP=zustand.create(e=>({following:[],unfollowing:[],setFollowing:t=>e({following:t}),setUnfollowing:t=>e({unfollowing:t})}));function JP({user:e,className:t,insideClasse:o,icon:r,isFollowing:n}){var A,k,N,I,P;let{user:a}=M(),{setFollowing:s,following:i,setUnfollowing:l,unfollowing:d}=YP(),{isOpen:c,toggle:p}=ur(),{createFollow:f,isCreatingFollow:u}=ZP(),{dispatch:g}=WP(),[m,v]=J__namespace.default.useOptimistic({isFollowed:(A=n!=null?n:e==null?void 0:e.isFollowed)!=null?A:false,isFollowedBy:(k=e==null?void 0:e.isFollowedBy)!=null?k:false,isContact:(N=e==null?void 0:e.isContact)!=null?N:false},(S,D)=>D.type==="follow"?F(y({},S),{isFollowed:true,isContact:S.isFollowedBy}):F(y({},S),{isFollowed:false,isContact:false})),h=()=>{var L,E,B,W;if(!(e!=null&&e.id))return;let S=a==null?void 0:a.id;if((e==null?void 0:e.id)===S)return;let D=i==null?void 0:i.includes((L=e==null?void 0:e.id)!=null?L:""),T=!D;D?(s((E=i==null?void 0:i.filter(q=>q!==(e==null?void 0:e.id)))!=null?E:[]),l([...d!=null?d:[],e==null?void 0:e.id]),J.startTransition(()=>{v({type:"unfollow"});})):(s([...i!=null?i:[],e==null?void 0:e.id]),l((B=d==null?void 0:d.filter(q=>q!==(e==null?void 0:e.id)))!=null?B:[]),J.startTransition(()=>{v({type:"follow"});})),p(),f({createFollowInput:{followedId:(W=e==null?void 0:e.id)!=null?W:""}}),J.startTransition(()=>{e!=null&&e.id&&g({type:T?"follow":"unfollow",userId:e.id});});},b=()=>{let S="font-medium border rounded-[10px] flex justify-center";return m!=null&&m.isContact||m!=null&&m.isFollowedBy?`${S} bg-primary/10 text-primary border-primary/20`:`${S} bg-primary text-white border-transparent`},x=(i==null?void 0:i.includes((I=e==null?void 0:e.id)!=null?I:""))||c||(m==null?void 0:m.isFollowed),w=d==null?void 0:d.includes((P=e==null?void 0:e.id)!=null?P:""),C=()=>m!=null&&m.isContact||e!=null&&e.isContact?"Contacto":x&&!w?"Deixar de seguir":"Seguir";return J__namespace.default.createElement(le,{onClick:h,variant:"ghost",size:"sm",className:U(o?b():"h-auto p-2 text-primary hover:bg-transparent hover:text-primary/80 font-normal",t)},r||J__namespace.default.createElement(lucideReact.UserPlusIcon,{className:"h-3 w-3"}),u?J__namespace.default.createElement(lucideReact.CircleIcon,{className:"w-4 h-4 animate-spin"}):C())}var $P={AGREE:J__namespace.default.createElement(Wi,{size:20}),LIKE:J__namespace.default.createElement(w0,{size:20}),SUPPORT:J__namespace.default.createElement(Wi,{size:20}),DISLIKE:J__namespace.default.createElement(Qi,{size:20}),DISAGREE:J__namespace.default.createElement(Qi,{size:20}),EUREKA:J__namespace.default.createElement(b0,{fontSize:20}),NO_COMMENT:J__namespace.default.createElement(C0,{fontSize:20}),HAHA:J__namespace.default.createElement(M0,{size:20}),LOVE:J__namespace.default.createElement(P0,{size:20})};function RP({reactions:e,handleGoToProfile:t}){var p;let{user:o,locale:r}=M(),n=r||"pt",a=e!=null?e:[],s=J.useMemo(()=>a.reduce((f,u)=>{var m;let g=(m=u==null?void 0:u.reaction)!=null?m:"";return g&&(f[g]||(f[g]=[]),f[g].push(u)),f},{}),[a]),{reactions:i}=_m({currentReaction:"",onChange:()=>{},size:"normal"}),l=J.useMemo(()=>{let f=Object.keys(s).filter(Boolean),u={id:"all",label:rn(n,"allReactions"),emoji:null,count:a.length,users:a},g=f.map(m=>{var h,b,x,w,C;let v=i.find(A=>A.id===m);return {id:m,label:"",emoji:(b=(h=$P[m])!=null?h:v==null?void 0:v.emoji)!=null?b:null,count:(w=(x=s[m])==null?void 0:x.length)!=null?w:0,users:(C=s[m])!=null?C:[]}});return [u,...g]},[s,i,a]),[d,c]=J.useState("all");return a.length===0?J__namespace.default.createElement("div",{className:"py-8 text-center text-sm text-gray-500"},rn(n,"noReactionsYet")):J__namespace.default.createElement("div",null,J__namespace.default.createElement("div",{className:"bg-white"},J__namespace.default.createElement("div",{className:"flex gap-2 overflow-x-auto py-1 px-0 border-b"},l.map(f=>J__namespace.default.createElement("div",{key:f.id,className:"inline-block relative overflow-visible "},J__namespace.default.createElement("button",{onClick:()=>c(f.id),"aria-pressed":d===f.id,className:`pr-6 py-2 text-sm font-medium rounded-full transition-colors whitespace-nowrap ${d===f.id?"text-primary":"text-gray-500 hover:text-gray-700"}`},f.emoji&&J__namespace.default.createElement("span",{className:"w-2 h-2 inline-block mr-2 mb-2"},f.emoji),J__namespace.default.createElement("span",{className:"space-x-4"},J__namespace.default.createElement("span",{className:"text-[14px] font-medium"},f.label),f.count>0&&J__namespace.default.createElement("span",{className:"text-[#050910] text-[14px] font-semibold"},f.count))),d===f.id&&J__namespace.default.createElement("div",{className:"absolute -left-2 right-0 -bottom-1 h-[2px] bg-primary rounded-none"}))))),J__namespace.default.createElement("div",{className:"space-y-6 max-h-[60vh] overflow-y-auto pr-2 pt-4"},(d==="all"?a:(p=s[d])!=null?p:[]).map(f=>{var u,g,m,v,h,b,x,w,C,A;return J__namespace.default.createElement("div",{key:f==null?void 0:f.id,className:"flex items-center gap-2 group"},J__namespace.default.createElement("div",{className:"relative"},J__namespace.default.createElement(ae,{name:(g=(u=f==null?void 0:f.user)==null?void 0:u.name)!=null?g:"",src:(m=f==null?void 0:f.user)==null?void 0:m.avatar,className:"w-10 lg:w-12 h-10 lg:h-12",onClick:()=>t==null?void 0:t(f==null?void 0:f.user),type:"user"}),(f==null?void 0:f.reaction)&&J__namespace.default.createElement("div",{className:"absolute -bottom-1 -right-1 bg-white rounded-full p-[2px] shadow-sm transform transition-all duration-200 ease-out opacity-90 group-hover:scale-110 group-hover:opacity-100"},(b=(h=$P[f==null?void 0:f.reaction])!=null?h:(v=i.find(k=>k.id===(f==null?void 0:f.reaction)))==null?void 0:v.emoji)!=null?b:null)),J__namespace.default.createElement("div",{className:"flex-1"},J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement("h3",{className:"text-sm lg:text-base font-medium",onClick:()=>t==null?void 0:t(f==null?void 0:f.user)},(x=f==null?void 0:f.user)==null?void 0:x.name),(o==null?void 0:o.id)!==((w=f==null?void 0:f.user)==null?void 0:w.id)&&!((C=f==null?void 0:f.user)!=null&&C.isFollowed)&&J__namespace.default.createElement(JP,{user:f==null?void 0:f.user})),J__namespace.default.createElement("p",{className:"text-xs text-gray-600"},(A=f==null?void 0:f.user)==null?void 0:A.headline)))})))}function f8({onClose:e,post:t,comment:o,optimisticReactions:r}){var f,u;let{isMobile:n}=Eo(),{user:a,locale:s}=M(),i=s||"pt",l=(u=(f=r!=null?r:o==null?void 0:o.reactions)!=null?f:t==null?void 0:t.reactions)!=null?u:[],d=l.length,c=d===1?rn(i,"reactionsSingular"):rn(i,"reactionsPlural");return J__namespace.default.createElement(qe,{closeOnClickOutside:true,className:"flex flex-col w-full mt-[40px] md:mt-0 h-full md:w-[33rem] md:h-[25.625rem]",isOpen:true,onClose:e,hideCloseButton:true},J__namespace.default.createElement("div",{className:"w-full"},J__namespace.default.createElement("h2",{className:`text-lg h-[60px] font-semibold ${n?"border-b-8 border-[#F5F5F5]":""} flex items-center gap-4`},n?J__namespace.default.createElement("button",{onClick:e,className:"cursor-pointer flex-shrink-0",type:"button"},J__namespace.default.createElement(lucideReact.ChevronLeft,{className:"h-8 w-8"})):null,n?null:J__namespace.default.createElement("span",null,d," ",c)),J__namespace.default.createElement("div",{className:` ${n?"px-4":""}`},J__namespace.default.createElement(RP,{reactions:l,handleGoToProfile:g=>{Ae(),(g==null?void 0:g.id)===(a==null?void 0:a.id)?window.location.href=`/profile/${s}`:window.location.href=`/profile/${s}/${g==null?void 0:g.slug}`;}}))))}function nW(e){let{fontSize:t=30}=e;return J__namespace.createElement("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J__namespace.createElement("path",{d:"M19.4636 6.412C19.2625 6.15672 19.0152 5.9523 18.7381 5.8123C18.461 5.6723 18.1605 5.59993 17.8565 5.6H12.8567V4C12.8567 2.93913 12.4804 1.92172 11.8107 1.17157C11.1409 0.421428 10.2326 2.05102e-07 9.28539 2.05102e-07C9.15269 -0.0001062 9.0226 0.0411911 8.90968 0.119262C8.79677 0.197332 8.70551 0.309089 8.64613 0.442L5.27303 8H1.42852C1.04965 8 0.686304 8.16857 0.418404 8.46863C0.150504 8.76869 0 9.17565 0 9.6V18.4C0 18.8243 0.150504 19.2313 0.418404 19.5314C0.686304 19.8314 1.04965 20 1.42852 20H16.7851C17.3072 20.0002 17.8113 19.7869 18.2029 19.4003C18.5945 19.0136 18.8466 18.4801 18.9118 17.9L19.9832 8.3C20.0212 7.96202 19.9945 7.61886 19.9049 7.29334C19.8153 6.96781 19.6649 6.66737 19.4636 6.412ZM1.42852 9.6H4.99983V18.4H1.42852V9.6Z",fill:"#687588"}))}var aW=J__namespace.memo(nW),g8=aW;var jm={AGREE:"#B38FD8",DISLIKE:"#F87171",EUREKA:"#FACC15",LIKE:"#60A5FA",NO_COMMENT:"#9CA3AF",SUPPORT:"#60A5FA"};function oS(e){return e?e>=1e6?`${(e/1e6).toFixed(1).replace(/\.0$/,"")}M`:e>=1e3?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}K`:e.toString():""}function rS({currentReaction:e,onChange:t,size:o="normal",totalReactions:r=0,topReactions:n=[],isLoading:a,className:s,orientation:i="horizontal",post:l,comment:d,variant:c="default",optimisticReactions:p}){var oe;let{user:f}=M(),[u,g]=usehooks.useToggle(false),{handleReactionSelect:m,reactions:v,selectedReaction:h,isNormalSize:b}=_m({currentReaction:e,onChange:t,size:o}),[x,w]=J.useState(false),[C,A]=J.useState(false),{isOpen:k,onOpen:N,onClose:I}=ur(),{isOpen:P,onOpen:S,onClose:D}=ur(),T=J.useRef(null),L=J.useRef(null),E=h!=null&&h.id&&jm[h.id]?jm[h.id]:jm.LIKE,B=h?`${E}1A`:"transparent",W=`${E}15`,q=Array.isArray(n)?n.filter(K=>!!K&&!!K.id&&!!K.emoji&&!!K.label&&K.id!=="LOVE"&&K.id!=="HAHA"):[],Y=()=>{T.current&&clearTimeout(T.current),N();},H=()=>{T.current=setTimeout(()=>I(),200);},z=()=>{w(true),L.current=setTimeout(()=>{N();},300);},G=()=>{w(false),L.current&&clearTimeout(L.current);},R=K=>{K.stopPropagation(),I(),S();},V=()=>{if(f&&!f.isActive){g(true);return}if(typeof window!="undefined"&&"vibrate"in navigator&&navigator.vibrate(25),A(true),setTimeout(()=>A(false),180),h)m(null);else {let K=$[0];K&&m(K);}},_=K=>{if(f&&!f.isActive){g(true),I();return}m(K);},$=v.filter(K=>K.id!=="LOVE"&&K.id!=="HAHA");return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:U("relative group rounded-[3.125rem] border transition-all duration-200 p-[0.5rem] min-w-[37px] h-[42px] flex items-center",q.length===0?"justify-center":"justify-between",c==="comment"?"border-none bg-white":h?"":"border-gray-300 bg-transparent",s),style:{borderColor:c==="comment"?"transparent":h?E:void 0,backgroundColor:c==="comment"?"white":h?B:void 0,transform:x?"scale(0.97)":"scale(1)",transition:"transform 0.15s ease-out"},onMouseEnter:Y,onMouseLeave:H,onTouchStart:z,onTouchEnd:G},J__namespace.default.createElement("button",{disabled:a,onClick:V,className:U("button-empty font-normal flex items-center gap-x-2 transition-all duration-200 ease-out transform",b?"text-sm":"text-xs","hover:scale-[1.05] hover:shadow-md active:scale-[0.97]",h?"font-semibold":"text-gray-600 hover:text-gray-800"),style:{color:h?E:void 0}},J__namespace.default.createElement("div",{className:U("flex items-center justify-center transition-transform duration-150 ease-in-out",C&&"animate-emoji-flicker")},(oe=h==null?void 0:h.emoji)!=null?oe:J__namespace.default.createElement(g8,{fontSize:20,className:U(b?"h-5 w-5":"h-4 w-4")}))),q.length>0&&J__namespace.default.createElement("div",{className:"flex items-center relative ml-2 cursor-pointer select-none group/reactions active:scale-95 transition-transform duration-150 ease-out",onClick:R},J__namespace.default.createElement("span",{className:"h-4 border-l mx-2 transition-colors duration-200",style:{borderColor:E}}),J__namespace.default.createElement("div",{className:"flex items-center relative transition-transform duration-150 ease-out group-hover/reactions:scale-[1.05]"},q.slice(0,2).map((K,ne)=>{var Me;let me=jm[K.id]||"#9CA3AF";return J__namespace.default.createElement("span",{key:K.id,className:"relative transition-transform duration-150 ease-in-out group-hover/reactions:translate-y-[-2px]",style:{right:ne===0?0:6,zIndex:q.length-ne,color:me}},(Me=K.emoji)!=null?Me:J__namespace.default.createElement(g8,{className:"h-4 w-4"}))}),r>0&&J__namespace.default.createElement("span",{className:"ml-2 font-semibold transition-all duration-150 ease-in-out group-hover/reactions:scale-105 group-hover/reactions:brightness-110",style:{color:"#687588"}},oS(r)))),q.length===0&&r>0&&J__namespace.default.createElement("div",{className:"flex items-center relative ml-2 cursor-pointer select-none group/reactions active:scale-95 transition-transform duration-150 ease-out",onClick:R},J__namespace.default.createElement("span",{className:"h-4 border-l mx-2 transition-colors duration-200",style:{borderColor:E}}),J__namespace.default.createElement("span",{className:"font-semibold transition-all duration-150 ease-in-out group-hover/reactions:scale-105 group-hover/reactions:brightness-110",style:{color:"#687588"}},oS(r))),J__namespace.default.createElement("div",{className:U("absolute inset-0 rounded-[3.125rem] pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity duration-200"),style:{backgroundColor:W}}),k&&J__namespace.default.createElement(jP,{onClose:I,orientation:i,handleReactionSelect:_,reactions:$}),P&&J__namespace.default.createElement(f8,{onClose:D,post:l,comment:d,optimisticReactions:p})),J__namespace.default.createElement(ko,{isOpen:u,onClose:()=>g(false)}))}var lW={AGREE:J__namespace.default.createElement(Wi,null),LIKE:J__namespace.default.createElement(w0,null),SUPPORT:J__namespace.default.createElement(Wi,null),DISLIKE:J__namespace.default.createElement(Qi,null),DISAGREE:J__namespace.default.createElement(Qi,null),EUREKA:J__namespace.default.createElement(b0,null),NO_COMMENT:J__namespace.default.createElement(C0,null),HAHA:J__namespace.default.createElement(M0,null),LOVE:J__namespace.default.createElement(P0,null)};function dW({post:e,hideLabel:t,className:o,orientation:r}){let{reaction:n,handleCreateReaction:a,reactions:s,totalReactions:i}=GP({post:e}),{totalReactions:l,topReactions:d}=J.useMemo(()=>{if(!s||(s==null?void 0:s.length)===0)return {totalReactions:0,topReactions:[]};let c={};s==null||s.forEach(f=>{f!=null&&f.reaction&&(c[f.reaction]=(c[f.reaction]||0)+1);});let p=Object.entries(c).sort((f,u)=>u[1]-f[1]).slice(0,2).map(([f])=>({id:f,emoji:lW[f]||J__namespace.default.createElement("span",null,f),label:f,color:""}));return {totalReactions:i,topReactions:p}},[s,i]);return J__namespace.default.createElement(rS,{orientation:r,currentReaction:n,hideLabel:t,totalReactions:l,topReactions:d,className:o,post:e,optimisticReactions:s,onChange:(c,p)=>{a(c?c==null?void 0:c.id:(p==null?void 0:p.id)||"");}})}var cW=e=>J__namespace.createElement("svg",y({width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.19113 3.64286C3.73647 3.64286 3.30044 3.82347 2.97894 4.14496C2.65745 4.46645 2.47684 4.90249 2.47684 5.35714V9.92857C2.47684 10.3832 2.65745 10.8193 2.97894 11.1408C3.30044 11.4622 3.73647 11.6429 4.19113 11.6429H5.71494C5.86649 11.6429 6.01183 11.7031 6.119 11.8102L8.00065 13.6919L9.88231 11.8102C9.98947 11.7031 10.1348 11.6429 10.2864 11.6429H11.8102C12.2648 11.6429 12.7009 11.4622 13.0224 11.1408C13.3438 10.8193 13.5245 10.3832 13.5245 9.92857V5.35714C13.5245 4.90249 13.3438 4.46645 13.0224 4.14496C12.7009 3.82347 12.2648 3.64286 11.8102 3.64286H4.19113ZM2.17082 3.33684C2.70664 2.80102 3.43337 2.5 4.19113 2.5H11.8102C12.5679 2.5 13.2947 2.80102 13.8305 3.33684C14.3663 3.87266 14.6673 4.59938 14.6673 5.35714V9.92857C14.6673 10.6863 14.3663 11.4131 13.8305 11.9489C13.2947 12.4847 12.5679 12.7857 11.8102 12.7857H10.5231L8.40471 14.9041C8.18156 15.1272 7.81975 15.1272 7.59659 14.9041L5.47824 12.7857H4.19113C3.43337 12.7857 2.70664 12.4847 2.17082 11.9489C1.635 11.4131 1.33398 10.6863 1.33398 9.92857V5.35714C1.33398 4.59938 1.635 3.87266 2.17082 3.33684ZM4.3816 6.11905C4.3816 5.80346 4.63744 5.54762 4.95303 5.54762H11.0483C11.3639 5.54762 11.6197 5.80346 11.6197 6.11905C11.6197 6.43464 11.3639 6.69048 11.0483 6.69048H4.95303C4.63744 6.69048 4.3816 6.43464 4.3816 6.11905ZM4.3816 9.16667C4.3816 8.85108 4.63744 8.59524 4.95303 8.59524H9.52446C9.84005 8.59524 10.0959 8.85108 10.0959 9.16667C10.0959 9.48226 9.84005 9.7381 9.52446 9.7381H4.95303C4.63744 9.7381 4.3816 9.48226 4.3816 9.16667Z",fill:"#A0AEC0"})),nS=cW;var mW="pending_chat_data",uW=100;function fW({user:e,label:t,className:o,disabled:r=false,onClick:n,variant:a="default"}){let{isMobile:s}=Ne(),{locale:i,page:l}=M(),{saveCookie:d}=im(),c=J.useMemo(()=>{var v,h;return e?{id:(v=e==null?void 0:e.id)!=null?v:"",name:e==null?void 0:e.name,avatar:e==null?void 0:e.avatar,slug:(h=e==null?void 0:e.slug)!=null?h:""}:null},[e]),p=J.useMemo(()=>{let v=a==="small";return o||`${v?"text-primary font-medium p-[1rem]":"border border-primary bg-white text-primary font-medium p-[1rem]"} ${s?"rounded-full":"rounded-[0.5rem]"}`},[a,s,o]),f=J.useMemo(()=>{let v=a==="small";return {icon:v?J__namespace.default.createElement(nS,null):J__namespace.default.createElement(Zp,null),label:!s&&!v?t||O(i,"message.label"):void 0}},[a,s,t,i]),u=J.useCallback(()=>{if(!(c!=null&&c.id)||!(l!=null&&l.slug))return;localStorage.removeItem("b2b-recruitment-trigger-open"),n==null||n();let v={id:c.id,name:c.name,avatar:c.avatar,slug:c.slug,openChat:true};try{let h=btoa(encodeURIComponent(JSON.stringify(v)));d(mW,h,{path:"/",secure:!0,maxAge:oM});let b=`/company/${i}/${l==null?void 0:l.slug}/inbox`;setTimeout(()=>{window.location.assign(b);},uW);}catch(h){}},[c,l==null?void 0:l.slug,i,n,d]);if(!!!(e&&l))return null;let m=r;return J__namespace.default.createElement(re,{className:p,label:f.label,onClick:u,leftElement:f.icon,disabled:m,"aria-label":f.label||"Send message"})}var yW=({pdfName:e,currentPage:t,numPages:o,isHovered:r,variant:n="default",onOpenAccessibility:a,onDownload:s,onClose:i})=>{let l=n==="fullscreen",d=l&&(a||s||i),{locale:c}=M();return J__namespace.default.createElement("div",{className:`${l?"relative":"absolute top-0 left-0 right-0"} z-30 border-b ${l?"border-gray-700":"border-gray-200"} p-4 transition-all duration-300 ${l||r?"opacity-100 bg-black/50":"opacity-0 pointer-events-none"}`},J__namespace.default.createElement("div",{className:"flex items-center justify-between"},J__namespace.default.createElement("div",{className:"flex items-center gap-3"},J__namespace.default.createElement("h2",{className:"text-base font-semibold text-white"},e||jt(c,"pdfName")),J__namespace.default.createElement("div",{className:"rounded-full bg-white/70 w-1.5 h-1.5"}),J__namespace.default.createElement("p",{className:"text-sm text-white/90"},o," ",jt(c,"pages"))),d&&J__namespace.default.createElement("div",{className:"flex items-center gap-3"},a&&J__namespace.default.createElement("button",{onClick:a,className:"px-3 py-2 rounded-lg bg-white/10 text-white hover:bg-white/20 transition-all flex items-center gap-2","aria-label":"Abrir PDF em nova aba para acessibilidade"},J__namespace.default.createElement(lucideReact.Accessibility,{className:"w-4 h-4"}),J__namespace.default.createElement("span",{className:"text-sm"},jt(c,"accessibilityMode"))),s&&J__namespace.default.createElement("button",{onClick:s,className:"px-3 py-2 rounded-lg bg-white/10 text-white hover:bg-white/20 transition-all flex items-center gap-2","aria-label":"Baixar PDF"},J__namespace.default.createElement(lucideReact.Download,{className:"w-4 h-4"}),J__namespace.default.createElement("span",{className:"text-sm"},jt(c,"download"))),i&&J__namespace.default.createElement("button",{onClick:i,className:"p-2 rounded-lg bg-white/10 text-white hover:bg-white/20 transition-all","aria-label":jt(c,"closeFullscreen")},J__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5"})))))},Oc=yW;var wW=({onPrevious:e,onNext:t,canGoPrevious:o,canGoNext:r})=>{let{locale:n}=M();return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("button",{className:"w-16 h-16 p-2 rounded-full border border-gray-300 bg-primary backdrop-blur-sm hover:bg-primary/90 transition-all shadow-md hover:shadow-lg disabled:opacity-50 disabled:cursor-not-allowed pointer-events-auto",onClick:e,disabled:!o,"aria-label":jt(n,"previousPage")},J__namespace.default.createElement(lucideReact.ChevronLeft,{className:"w-8 h-8 text-white"})),J__namespace.default.createElement("button",{className:"w-16 h-16 p-2 rounded-full border border-gray-300 bg-primary backdrop-blur-sm hover:bg-primary/90 transition-all shadow-md hover:shadow-lg disabled:opacity-50 disabled:cursor-not-allowed pointer-events-auto",onClick:t,disabled:!r,"aria-label":jt(n,"nextPage")},J__namespace.default.createElement(lucideReact.ChevronRight,{className:"w-8 h-8 text-white"})))},A0=wW;var CW=({currentPage:e,totalPages:t})=>{let o=t>0?e/t*100:0;return J__namespace.default.createElement("div",{className:"w-full"},J__namespace.default.createElement("div",{className:"w-full h-1.5 bg-white/20 rounded-full overflow-hidden"},J__namespace.default.createElement("div",{className:"h-full bg-white rounded-full transition-all duration-300",style:{width:`${o}%`}})))},x8=CW;var AW=({currentPage:e,numPages:t,pdfUrl:o,isHovered:r,onToggleFullscreen:n,variant:a="default",zoom:s,onZoomIn:i,onZoomOut:l})=>{let d=a==="fullscreen",c=d&&s!==void 0&&i&&l,{locale:p}=M();return J__namespace.default.createElement("div",{className:`${d?"relative":"absolute bottom-0 left-0 right-0"} z-30 border-t ${d?"border-gray-700":"border-gray-200"} px-4 py-0 flex items-center justify-between transition-all duration-300 ${d||r?"opacity-100 bg-black/50":"opacity-0 pointer-events-none"}`},J__namespace.default.createElement("div",{className:"text-sm font-normal text-white m-4"},e,"/",t),J__namespace.default.createElement("div",{className:"flex-1 max-w-md mx-4"},J__namespace.default.createElement(x8,{currentPage:e,totalPages:t})),c?J__namespace.default.createElement("div",{className:"flex items-center gap-4"},J__namespace.default.createElement("button",{onClick:l,disabled:s<=50,className:"p-2 rounded-full bg-white/10 text-white hover:bg-white/20 transition-all disabled:opacity-50 disabled:cursor-not-allowed","aria-label":jt(p,"zoomOut")},J__namespace.default.createElement(lucideReact.Plus,{className:"w-5 h-5"})),J__namespace.default.createElement("span",{className:"text-sm text-white min-w-[60px] text-center"},s,"%"),J__namespace.default.createElement("button",{onClick:i,disabled:s>=200,className:"p-2 rounded-full bg-white/10 text-white hover:bg-white/20 transition-all disabled:opacity-50 disabled:cursor-not-allowed","aria-label":jt(p,"zoomIn")},J__namespace.default.createElement(lucideReact.Minus,{className:"w-5 h-5"}))):n&&J__namespace.default.createElement("div",{className:"text-sm font-normal text-white m-4"},J__namespace.default.createElement(lucideReact.Maximize,{className:"w-6 h-6 text-white pointer-events-auto hover:text-white/80 transition-all duration-300 cursor-pointer",onClick:n})))},Hc=AW;var IW=({pdfUrl:e,pdfUrlWithPage:t,currentPage:o,numPages:r,pdfName:n,zoom:a,onClose:s,onDownload:i,onOpenAccessibility:l,onZoomIn:d,onZoomOut:c,onPreviousPage:p,onNextPage:f,canGoPrevious:u,canGoNext:g})=>{let{locale:m}=M(),v=J__namespace.default.createElement("div",{className:"fixed inset-0 z-[9999] w-screen h-screen bg-black flex flex-col",style:{position:"fixed",top:0,left:0,right:0,bottom:0,width:"80vw",height:"100vh",margin:0,padding:0}},J__namespace.default.createElement(Oc,{pdfName:n,currentPage:o,numPages:r,isHovered:true,variant:"fullscreen",onOpenAccessibility:l,onDownload:i,onClose:s}),J__namespace.default.createElement("div",{className:"flex-1 relative overflow-hidden bg-gray-900"},J__namespace.default.createElement("embed",{key:`${o}-${a}`,src:t,type:"application/pdf",className:"w-full h-full",title:jt(m,"pdfViewerFullscreen"),style:{overflow:"hidden"}}),J__namespace.default.createElement("div",{className:"absolute inset-0 flex items-center justify-between px-4 pointer-events-none"},J__namespace.default.createElement(A0,{onPrevious:p,onNext:f,canGoPrevious:u,canGoNext:g}))),J__namespace.default.createElement(Hc,{currentPage:o,numPages:r,pdfUrl:e,isHovered:true,variant:"fullscreen",zoom:a,onZoomIn:d,onZoomOut:c}));return typeof window!="undefined"?RW.createPortal(v,document.body):null},w8=IW;var aS=({pdfUrl:e,initialTotalPages:t,initialPdfName:o,retryCount:r=3,retryDelay:n=1e3,enableCorsProxy:a=false}={})=>{let[s,i]=J.useState(t||null),[l,d]=J.useState(o||""),[c,p]=J.useState(false),[f,u]=J.useState(null),g=J.useRef(void 0),m=J.useRef(null),v=J.useRef(false),h=J.useCallback(w=>{if(!w)return "";try{let A=new URL(w).pathname;return decodeURIComponent(A.split("/").pop()||"documento.pdf").replace(".pdf","").replace(/%20/g," ").trim()}catch(C){let A=w.split("/").pop()||"documento.pdf";return decodeURIComponent(A).replace(".pdf","").replace(/%20/g," ").trim()}},[]),b=J.useCallback((I,...P)=>j(void 0,[I,...P],function*(w,C=1,A=r,k=n,N){try{let S;try{S=yield fetch(w,{method:"GET",headers:{Accept:"application/pdf"},credentials:"omit",cache:"no-cache",signal:N});}catch(L){throw new Error(`Erro ao fazer fetch do PDF: ${L.message}`)}if(!S.ok)throw new Error(`HTTP ${S.status}: ${S.statusText}`);let D=S.headers.get("content-type");D&&D.includes("application/pdf");let T=yield S.arrayBuffer();if(!T||T.byteLength===0)throw new Error("PDF vazio ou inv\xE1lido");return T}catch(S){if(S.name==="AbortError")throw S;if(C<A)return yield new Promise(D=>setTimeout(D,k*C)),b(w,C+1,A,k,N);throw S}}),[]),x=J.useCallback(w=>j(void 0,null,function*(){if(typeof window!="undefined"&&e){if(v.current=true,t){i(t),p(false),v.current=false;return}p(true),u(null);try{let C=h(e);C&&!o&&d(C);let A=yield b(e,1,r,n,w),N=(yield pdfLib.PDFDocument.load(A,{ignoreEncryption:!1})).getPageCount();if(N>0&&N<1e4)i(N),u(null);else {let I=new Error(`N\xFAmero de p\xE1ginas inv\xE1lido: ${N}`);u(I);}}catch(C){if(C.name==="AbortError")return;let A=(C==null?void 0:C.message)||"Erro desconhecido ao carregar metadados do PDF",k=new Error(A);u(k),i(null);}finally{p(false),v.current=false;}}}),[e,t,o,h,b,r,n]);return J.useEffect(()=>{if(!e){g.current=void 0;return}if(g.current!==e&&(v.current=false),v.current||g.current===e&&s!==null)return;m.current&&m.current.abort();let w=new AbortController;return m.current=w,g.current=e,x(w.signal),()=>{w.abort(),m.current=null;}},[e,x]),{totalPages:s,pdfName:l||o||"",isLoading:c,error:f}};var LW=({pdfUrl:e="https://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf",totalPages:t,pdfName:o,className:r,onMaximizeClicked:n})=>{let[a,s]=J.useState(1),[i,l]=J.useState(false),[d,c]=J.useState(false),[p,f]=J.useState(false),[u,g]=J.useState(100),{locale:m}=M(),{totalPages:v,pdfName:h,isLoading:b}=aS({pdfUrl:e,initialTotalPages:t,initialPdfName:o,retryCount:3,retryDelay:1e3});J.useEffect(()=>{if(typeof window=="undefined")return;let T=setTimeout(()=>{let L=document.querySelector('embed[title="PDF Viewer"]');L&&L.offsetHeight===0&&l(true);},2e3);return ()=>clearTimeout(T)},[a]);let x=()=>{a>1&&(s(a-1),l(false));},w=()=>{let T=v!=null?v:100;a<T&&(s(a+1),l(false));},C=()=>{if(typeof window!="undefined"){let T=`${e}#page=${a}&toolbar=0&navpanes=0&scrollbar=0`;window.open(T,"_blank");}},A=()=>{n?n():f(!p);},k=()=>j(void 0,null,function*(){try{let T=yield fetch(e);if(!T.ok)throw new Error("Erro ao baixar o PDF");let L=yield T.blob();if(typeof window=="undefined")return;let E=window.URL.createObjectURL(L),B=document.createElement("a");B.href=E,B.download=`${h||"documento"}.pdf`,document.body.appendChild(B),B.click(),document.body.removeChild(B),window.URL.revokeObjectURL(E);}catch(T){typeof window!="undefined"&&window.open(e,"_blank");}}),N=()=>{if(typeof window!="undefined"){let T=`${e}#page=${a}&toolbar=0&navpanes=0&scrollbar=0`;window.open(T,"_blank");}},I=()=>{g(T=>Math.min(T+25,200));},P=()=>{g(T=>Math.max(T-25,50));},S=T=>{T.preventDefault(),T.stopPropagation();},D=`${e}#page=${a}&toolbar=0&navpanes=0&scrollbar=0&view=FitH&zoom=${u}`;return J__namespace.default.createElement("div",{className:`relative w-full flex flex-col border border-gray-200 rounded-lg overflow-hidden shadow-sm ${r||""}`,onMouseEnter:()=>c(true),onMouseLeave:()=>c(false)},J__namespace.default.createElement("div",{className:"relative w-full bg-gray-50 pdf-container",style:{minHeight:"400px",aspectRatio:"16/9"},onWheel:S,onTouchMove:S},J__namespace.default.createElement("div",{className:"relative w-full overflow-hidden",style:{height:"calc(100% - 60px)",minHeight:"calc(100% - 60px)"}},J__namespace.default.createElement(Oc,{pdfName:h,currentPage:a,numPages:v!=null?v:100,isHovered:d}),b&&J__namespace.default.createElement("div",{className:"absolute top-16 left-1/2 transform -translate-x-1/2 z-30 px-3 py-1 bg-black/70 text-white text-xs rounded"},J__namespace.default.createElement(Ge,null)),i?J__namespace.default.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center p-8 bg-gray-50"},J__namespace.default.createElement("div",{className:"text-center max-w-md"},J__namespace.default.createElement("p",{className:"text-lg font-semibold text-gray-900 mb-2"},jt(m,"blockedPdfTitle")),J__namespace.default.createElement("p",{className:"text-sm text-gray-600 mb-6"},jt(m,"blockedPdfDescription")),J__namespace.default.createElement("button",{onClick:C,className:"px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition-all flex items-center gap-2 mx-auto"},J__namespace.default.createElement(lucideReact.ExternalLink,{className:"w-4 h-4"}),jt(m,"openPdfInNewTab"))),J__namespace.default.createElement("div",{className:"absolute inset-0 flex items-center justify-between px-4 pointer-events-none"},J__namespace.default.createElement(A0,{onPrevious:x,onNext:w,canGoPrevious:a>1,canGoNext:a<(v!=null?v:100)}))):J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("embed",{key:a,src:D,type:"application/pdf",className:"w-full h-full object-contain",title:"PDF Viewer",style:{overflow:"hidden",width:"100%",height:"100%"}}),J__namespace.default.createElement("div",{className:"absolute inset-0 z-10",onWheel:S,onTouchMove:S,style:{pointerEvents:"none"}},J__namespace.default.createElement("div",{className:"absolute inset-0 flex items-center justify-between px-4 pointer-events-none"},J__namespace.default.createElement(A0,{onPrevious:x,onNext:w,canGoPrevious:a>1,canGoNext:a<(v!=null?v:100)})))),J__namespace.default.createElement(Hc,{currentPage:a,numPages:v!=null?v:100,pdfUrl:e,isHovered:d,onToggleFullscreen:A}))),p&&J__namespace.default.createElement(w8,{pdfUrl:e,pdfUrlWithPage:D,currentPage:a,numPages:v!=null?v:100,pdfName:h,zoom:u,onClose:()=>f(false),onDownload:k,onOpenAccessibility:N,onZoomIn:I,onZoomOut:P,onPreviousPage:x,onNextPage:w,canGoPrevious:a>1,canGoNext:a<(v!=null?v:100)}))},Uc=LW;function P8(e,t){return t.split(".").reduce((o,r)=>o&&typeof o=="object"?o[r]:void 0,e)}function Wm(e,t){let{locale:o}=M(),r=e[o]||e.pt,n=(a,s)=>{let i=a,l=P8(r,i);return l===void 0?(console.warn(`Translation key "${i}" not found for locale "${o}"`),i):typeof l=="string"&&s?l.replace(/\{\{(\w+)\}\}/g,(d,c)=>{var p;return ((p=s[c])==null?void 0:p.toString())||d}):typeof l=="string"?l:i};return {translate:n,t:n,locale:o}}var sS={feed:{post:"Publica\xE7\xE3o","posts-not-found":{title:"Nenhuma publica\xE7\xE3o encontrada",description:"Crie uma publica\xE7\xE3o para come\xE7ar a interagir com a comunidade."},"post-filters":{all:"Todos",connections:"Conex\xF5es",contacts:"Contactos",communities:"Comunidades"},communities:{title:"Comunidades",explore:"Ver tudo",tabs:{explore:"Explorar comunidades",my:"Minhas comunidades",requests:"Solicita\xE7\xF5es","contact-communities":"Comunidades em seus contactos fazem parte","interested-communities":"Comunidades que podem te interessar","view-more-communities":"Ver mais comunidades",back:"Voltar","join-community":"Fazer parte","cancel-join":"Cancelar",loading:"Carregando...",loadMore:"Carregar mais"}},pages:{title:"P\xE1ginas para voc\xEA",explore:"Explorar",my:"Minhas p\xE1ginas","for-you":"P\xE1ginas para voc\xEA",popular:"P\xE1ginas populares","view-more":"Ver mais p\xE1ginas",follow:"Seguir",following:"Seguindo"},users:{title:"Pessoas",explore:"Ver todas",tabs:{explore:"Explorar pessoas",following:"Pessoas que sigo",followers:"Meus seguidores","contact-people":"Pessoas que seus contatos conhecem","suggested-people":"Pessoas que voc\xEA pode conhecer","view-more-people":"Ver mais pessoas",back:"Voltar",follow:"Seguir",unfollow:"Deixar de seguir",loading:"Carregando...",loadMore:"Carregar mais"}},"users-suggestion":{title:"Sugest\xF5es para voc\xEA","view-more":"Mais sugest\xF5es"},"suggestions-modal":{users:"Sugest\xF5es de pessoas",communities:"Sugest\xF5es de comunidades",pages:"Sugest\xF5es de p\xE1ginas",placeholder:"Pesquisar"},reels:{title:"Clips",button:"Criar clips","remaining-time":"Restante ","remaining-time-plural":"Restam ",expired:"Publica\xE7\xE3o expirada","remaining-time-seconds":"segundos","remaining-time-minutes":"minutos","remaining-time-hours":"horas","remaining-time-days":"dias","remaining-time-months":"meses","remaining-time-years":"anos",comments:{title:"Coment\xE1rios",reply:"Responder",like:"Curtiu",likes:"curtidas","add-comment":"Adicione um coment\xE1rio...",edited:"(Editado)","load-more-comments":"Carregar mais coment\xE1rios","show-less-comments":"Mostrar menos coment\xE1rios","load-more-answers":"Carregar mais respostas","show-less-answers":"Mostrar menos respostas",loading:"Carregando..."}},streaming:{"upcoming-streams":"Lives agendadas","browse-streams":"Explorar mais lives"},messages:{title:"Mensagens","view-all":"Ver todas"},respost:{title:"Repostar publica\xE7\xE3o"},"share-post":{title:"Compartilhar publica\xE7\xE3o","copy-link":{"post-card-label":"Copiar link da publica\xE7\xE3o",label:"Copiar link",success:{title:"Link copiado com sucesso!",description:"O link da publica\xE7\xE3o foi copiado. Agora voc\xEA pode compartilh\xE1-lo com seus amigos."},error:{title:"Erro ao copiar link!",description:"Ocorreu um erro ao copiar o link da publica\xE7\xE3o. Tente novamente."}}},"create-post":{title:"Criar publica\xE7\xE3o","start-a-post":"Comece uma publica\xE7\xE3o","add-description":"Adicione uma descri\xE7\xE3o...",options:{midia:"M\xEDdia",job:"Vaga",reels:"Clips",article:"Artigo",emoji:"Emoji",mention:"Mencionar",schedule:"Agendar","saved-items":"Itens salvos",scheduling:"Agendamentos"},schedule:{"base-on-your-location":"baseado na sua localiza\xE7\xE3o","select-date":"Selecionar data","select-time":"Selecionar hor\xE1rio","scheduled-for":"Agendado para",confirm:"Agendar publica\xE7\xE3o","set-date-time":"Defina o dia e a hora da publica\xE7\xE3o","cancel-button":"Cancelar","schedule-button":"Agendar","schedule-publication":"Agendar publica\xE7\xE3o","publish-ideal-time":"Publicar no hor\xE1rio ideal","publication-scheduled-for":"Publica\xE7\xE3o agendada para","no-post-scheduled":"Nenhuma publica\xE7\xE3o agendada","no-scheduled-posts-yet":"Voc\xEA ainda n\xE3o tem publica\xE7\xF5es agendadas","close-button":"Fechar","scheduled-publications":"Publica\xE7\xF5es agendadas","view-upcoming-publications":"Ver o que ser\xE1 publicado em breve","edit-button":"Editar","delete-button":"Excluir","loading-scheduled-posts":"Carregando publica\xE7\xF5es agendadas...","loading-pages":"Carregando p\xE1ginas..."},filters:{all:"Todos",connections:"Conex\xF5es",communities:"Comunidades"},buttons:{save:"Salvar",saving:"Salvando...",resume:"Retomar",publish:"Publicar",publishing:"Publicando..."},reel:{"upload-prompt":{title:"Arraste, solte e veja a m\xE1gica em 30 segundos! \u{1F680}\u{1F3A5}",button:"Selecionar v\xEDdeo"}}},"post-card":{community:{"published-in":"Tamb\xE9m publicado na comunidade",enter:"Entrar na comunidade"},page:{"published-by":"Publicado pela p\xE1gina"},"not-found":{"users-not-found":"Nenhum usu\xE1rio encontrado",title:"Publica\xE7\xE3o n\xE3o encontrada",description:"A publica\xE7\xE3o que voc\xEA procura n\xE3o existe."},user:{follow:"Seguir",unfollow:"Deixar de seguir","make-contact":"Fazer contato",following:"Seguindo",contact:"Contato"},content:{"view-more":"Ver mais","view-less":"Ver menos"},post:{options:{save:"Salvar","view-stats":"Ver estat\xEDsticas","copy-link":"Copiar link da publica\xE7\xE3o",delete:"Excluir publica\xE7\xE3o",edit:"Editar publica\xE7\xE3o"},reactions:{agree:"Apoio",dislike:"Discordo",love:"Amor",genial:"Genial",haha:"Haha",like:"Concordo","no-comments":"Sem coment\xE1rios"},stats:{reactions:"rea\xE7\xE3o(\xF5es)",comments:"coment\xE1rio(s)",shares:"compartilhamento(s)",stats:"Estat\xEDsticas"},audio:{listen:"Ouvir",pause:"Pausar",resume:"Retomar",restart:"Reiniciar",stop:"Parar"},actions:{react:"Reagir",comment:"Comentar",share:"Compartilhar",repost:"Recompartilhar"},timer:{extend:"Estender",reactivate:"Reativar",expired:"Expirou"},comments:{options:{edit:"Editar",delete:"Excluir","switch-profile":{title:"Trocar perfil",description:"Selecione o perfil que deseja usar para comentar nesta publica\xE7\xE3o.",button:{confirm:"Confirmar",cancel:"Cancelar"},"commenting-as":"Comentando como...",search:"Pesquisar","confirm-comment":"Voc\xEA realmente quer comentar usando esta p\xE1gina?","no-results":'Nenhum perfil encontrado para "{searchQuery}"'}},comment:"Comentar na publica\xE7\xE3o",answer:"Escreva sua resposta",actions:{answer:"Responder",react:"Reagir"},delete:{label:"Excluir",title:"Excluir coment\xE1rio",description:"Tem certeza de que deseja excluir este coment\xE1rio?",toasts:{error:{title:"Erro ao excluir coment\xE1rio!",label:"Ocorreu um erro ao excluir o coment\xE1rio. Tente novamente."}}},edit:{save:"Salvar",cancel:"Cancelar"}}}},"delete-modal":{title:"Excluir publica\xE7\xE3o",description:"Tem certeza de que deseja excluir esta publica\xE7\xE3o?"},"share-modal":{post:{"shared-by":"Compartilhado por","share-now":"Compartilhar agora",title:"Compartilhar publica\xE7\xE3o","in-community":{title:"Compartilhar na comunidade",empty:"Voc\xEA n\xE3o faz parte de nenhuma comunidade ainda."},"in-chat":{title:"Compartilhar no chat"},to:{title:"Compartilhar para",page:"P\xE1gina"},"empty-message":"Voc\xEA n\xE3o faz parte de nenhuma comunidade ainda."}},"medias-modal":{"loading-medias":"Carregando m\xEDdias...",added:{title:"M\xEDdia adicionada"},"edit-media":"Editar m\xEDdia"},done:"Conclu\xEDdo",toasts:{create:{creating:{title:"Criando publica\xE7\xE3o...",description:"Sua publica\xE7\xE3o est\xE1 sendo criada. Voc\xEA pode continuar editando enquanto isso."},success:{title:"Publica\xE7\xE3o criada com sucesso!",description:"Sua publica\xE7\xE3o foi criada com sucesso. Agora voc\xEA pode compartilh\xE1-la com seus amigos."},error:{title:"Erro ao criar publica\xE7\xE3o!",description:"Ocorreu um erro ao criar sua publica\xE7\xE3o. Tente novamente."}},edit:{editing:{title:"Editando publica\xE7\xE3o...",description:"Sua publica\xE7\xE3o est\xE1 sendo editada. Voc\xEA pode continuar trabalhando enquanto isso."},success:{title:"Publica\xE7\xE3o editada com sucesso!",description:"Sua publica\xE7\xE3o foi editada com sucesso. Agora voc\xEA pode compartilh\xE1-la com seus amigos."},error:{title:"Erro ao editar publica\xE7\xE3o!",description:"Ocorreu um erro ao editar sua publica\xE7\xE3o. Tente novamente."}},delete:{deleting:{title:"Excluindo publica\xE7\xE3o...",description:"Sua publica\xE7\xE3o est\xE1 sendo exclu\xEDda. Voc\xEA pode continuar navegando enquanto isso."},success:{title:"Publica\xE7\xE3o exclu\xEDda com sucesso!",description:"Sua publica\xE7\xE3o foi exclu\xEDda com sucesso."},error:{title:"Erro ao excluir publica\xE7\xE3o!",description:"Ocorreu um erro ao excluir sua publica\xE7\xE3o. Tente novamente."}},share:{success:{title:"Publica\xE7\xE3o compartilhada com sucesso!",description:"Sua publica\xE7\xE3o foi compartilhada com sucesso. Agora voc\xEA pode compartilh\xE1-la com seus amigos."},error:{title:"Erro ao compartilhar publica\xE7\xE3o!",description:"Ocorreu um erro ao compartilhar sua publica\xE7\xE3o. Tente novamente."}},extend:{success:{title:"Tempo estendido com sucesso!",description:"O tempo de expira\xE7\xE3o da sua publica\xE7\xE3o foi estendido com sucesso."},error:{title:"Erro ao estender tempo!",description:"N\xE3o foi poss\xEDvel estender o tempo de expira\xE7\xE3o da publica\xE7\xE3o. Tente novamente."}}},"post-stats-modal":{title:"Estat\xEDsticas da publica\xE7\xE3o",createdAt:"Publicado em",engagement:{options:{impressions:"Impress\xF5es",likes:"Curtidas",comments:"Coment\xE1rios",shares:"Compartilhamentos"},posts:{back:"Voltar","post-impressions":{title:"Impress\xF5es da publica\xE7\xE3o","posted-at":"Publicado em",remain:{label:"Restante",hours:"horas"},"social-media-impact":{title:"Impacto nas redes sociais",reactions:"Rea\xE7\xF5es",comments:"Coment\xE1rios",shares:"Compartilhamentos","no-impact":{comments:"Nenhuma altera\xE7\xE3o necess\xE1ria"}},views:{title:"Visualiza\xE7\xF5es","viewed-at":"Visualizado em","all-reactions":"Todas as rea\xE7\xF5es"}},title:"Publica\xE7\xF5es",tip:"Publica\xE7\xF5es frequentes podem aumentar suas chances de ser descoberto e destaque em at\xE9 3x.","create-post":"Criar publica\xE7\xE3o",discovers:{title:"Descobertas","users-reached":"Usu\xE1rios alcan\xE7ados"}}},stats:{reactions:"Rea\xE7\xF5es",comments:"Coment\xE1rios",shares:"Compartilhamentos",views:"Visualiza\xE7\xF5es","last-days":"nos \xFAltimos 7 dias"},schedule:{title:"Agendar publica\xE7\xE3o","select-date":"Selecionar data","select-time":"Selecionar hor\xE1rio","scheduled-for":"Agendado para",confirm:"Agendar publica\xE7\xE3o","scheduled-indicator":"Agendado para"}}}};var iS={feed:{post:"Post","posts-not-found":{title:"No posts found",description:"Create a post to start engaging with the community."},"post-filters":{all:"All",connections:"Connections",contacts:"Contacts",communities:"Communities"},communities:{title:"Communities",explore:"See all",tabs:{explore:"Explore communities",my:"My communities",requests:"Requests","contact-communities":"Communities your contacts are part of","interested-communities":"Communities that may interest you","view-more-communities":"View more communities",back:"Back","join-community":"Join community","cancel-join":"Cancel",loading:"Loading...",loadMore:"Load more"}},pages:{title:"Pages for you",explore:"Explore",my:"My pages","for-you":"Pages for you",popular:"Popular pages","view-more":"View more pages",follow:"Follow",following:"Following"},users:{title:"People",explore:"See all",tabs:{explore:"Explore people",following:"People I follow",followers:"My followers","contact-people":"People your contacts know","suggested-people":"People you may know","view-more-people":"View more people",back:"Back",follow:"Follow",unfollow:"Unfollow",loading:"Loading...",loadMore:"Load more"}},"users-suggestion":{title:"Suggestions for you","view-more":"More suggestions"},"suggestions-modal":{users:"People suggestions",communities:"Community suggestions",pages:"Page suggestions",placeholder:"Search"},reels:{title:"Clips",button:"Create a clip","remaining-time":"Remaining ","remaining-time-plural":"Remain ",expired:"Post expired","remaining-time-seconds":"seconds","remaining-time-minutes":"minutes","remaining-time-hours":"hours","remaining-time-days":"days","remaining-time-months":"months","remaining-time-years":"years",comments:{title:"Comments",reply:"Reply",like:"Liked",likes:"likes","add-comment":"Add a comment...",edited:"(Edited)","load-more-comments":"Load more comments","show-less-comments":"Show less comments","load-more-answers":"Load more answers","show-less-answers":"Show less answers",loading:"Loading..."}},streaming:{"upcoming-streams":"Scheduled lives","browse-streams":"Explore more lives"},messages:{title:"Messages","view-all":"View all"},"share-post":{title:"Share post","copy-link":{"post-card-label":"Copy post link",label:"Copy link",success:{title:"Link copied successfully!",description:"The post link was copied successfully. Now you can share it with your friends."},error:{title:"Error copying post link!",description:"An error occurred while copying the post link. Please try again."}}},"create-post":{title:"Create post","start-a-post":"Start a post","add-description":"Add a description...",options:{midia:"Media",job:"Jobs",reels:"Clips",article:"Article",emoji:"Emoji",mention:"Mention",schedule:"Schedule",scheduling:"Appoitments","saved-items":"Saved items"},schedule:{"base-on-your-location":"based on your location","select-date":"Select Date","select-time":"Select Time","scheduled-for":"Scheduled for",confirm:"Schedule Post","set-date-time":"Set the day and time for publication","cancel-button":"Cancel","schedule-button":"Schedule","schedule-publication":"Schedule Publication","publish-ideal-time":"Publish at the ideal time","publication-scheduled-for":"Post scheduled for","no-post-scheduled":"No post scheduled","no-scheduled-posts-yet":"You don\u2019t have any scheduled posts yet","close-button":"Close","scheduled-publications":"Scheduled posts","view-upcoming-publications":"See what will be published soon","edit-button":"Edit","delete-button":"Delete","loading-scheduled-posts":"Loading scheduled posts...","loading-pages":"Loading pages..."},filters:{all:"All",connections:"Connections",communities:"Communities"},buttons:{save:"Save",saving:"Saving...",resume:"Resume",publish:"Publish",publishing:"Publishing..."},reel:{"upload-prompt":{title:"Drag, drop, and see the magic in 30 seconds! \u{1F680}\u{1F3A5}",button:"Select video"}}},"post-card":{community:{"published-in":"Also published in the community",enter:"Join community"},page:{"published-by":"Published by page"},"not-found":{"users-not-found":"No users found",title:"Post not found",description:"The post you are looking for does not exist."},user:{follow:"Follow",unfollow:"Unfollow","make-contact":"Make contact",following:"Following",contact:"Contact"},content:{"view-more":"View more","view-less":"View less"},post:{options:{save:"Save","view-stats":"View stats","copy-link":"Copy post link",delete:"Delete post",edit:"Edit post"},reactions:{agree:"Support",dislike:"Disagree",love:"Love",genial:"Brilliant",haha:"Haha",like:"Like","no-comments":"No comments"},stats:{reactions:"reaction(s)",comments:"comment(s)",shares:"share(s)",stats:"Statistics"},audio:{listen:"Listen",pause:"Pause",resume:"Resume",restart:"Restart",stop:"Stop"},actions:{react:"React",comment:"Comment",share:"Share",repost:"Repost"},timer:{extend:"Extend",reactivate:"Reactivate",expired:"Expired"},comments:{options:{edit:"Edit",delete:"Delete","switch-profile":{title:"Switch profile",description:"Select the profile you want to use to comment on this post.",button:{confirm:"Confirm",cancel:"Cancel"},"commenting-as":"Commenting as...",search:"Search","confirm-comment":"Do you really want to comment using this page?","no-results":'No profiles found for "{searchQuery}"'}},comment:"Comment on post",answer:"Write your reply",actions:{answer:"Reply",react:"React"},delete:{label:"Delete",title:"Delete comment",description:"Are you sure you want to delete this comment?",toasts:{error:{title:"Error deleting comment!",label:"An error occurred while deleting the comment. Please try again."}}},edit:{save:"Save",cancel:"Cancel"}}}},"delete-modal":{title:"Delete post",description:"Are you sure you want to delete this post?"},"share-modal":{post:{"shared-by":"Shared by","share-now":"Share now",title:"Share post","in-community":{title:"Share in community"},"empty-message":"You are not part of any community yet.","in-chat":{title:"Share in chat"},to:{title:"Share to",page:"Page"}}},"medias-modal":{"loading-medias":"Loading media...",added:{title:"Media added"},"edit-media":"Edit media"},done:"Done",toasts:{create:{creating:{title:"Creating post...",description:"Your post is being created. You can keep editing in the meantime."},success:{title:"Post created successfully!",description:"Your post was created successfully. You can now share it with your friends."},error:{title:"Error creating post!",description:"An error occurred while creating your post. Please try again."}},edit:{editing:{title:"Editing post...",description:"Your post is being edited. You can keep working while it\u2019s updated."},success:{title:"Post edited successfully!",description:"Your post was edited successfully. You can now share it with your friends."},error:{title:"Error editing post!",description:"An error occurred while editing your post. Please try again."}},delete:{deleting:{title:"Deleting post...",description:"Your post is being deleted. You can keep browsing in the meantime."},success:{title:"Post deleted successfully!",description:"Your post was deleted successfully."},error:{title:"Error deleting post!",description:"An error occurred while deleting your post. Please try again."}},share:{success:{title:"Post shared successfully!",description:"Your post was shared successfully. You can now share it with your friends."},error:{title:"Error sharing post!",description:"An error occurred while sharing your post. Please try again."}},extend:{success:{title:"Time extended successfully!",description:"Your post expiration time has been extended successfully."},error:{title:"Error extending time!",description:"Could not extend the post expiration time. Please try again."}}},"post-stats-modal":{title:"Post statistics",createdAt:"Published on",engagement:{options:{impressions:"Impressions",likes:"Likes",comments:"Comments",shares:"Shares"},posts:{back:"Back","post-impressions":{title:"Post impressions","posted-at":"Posted on",remain:{label:"Remaining",hours:"hours"},"social-media-impact":{title:"Social media impact",reactions:"Reactions",comments:"Comments",shares:"Shares","no-impact":{comments:"No changes needed"}},views:{title:"Views","viewed-at":"Viewed on","all-reactions":"All reactions"}},title:"Posts",tip:"Frequent posts can increase your chances of being discovered and featured by up to 3x.","create-post":"Create post",discovers:{title:"Discoveries","users-reached":"Users reached"}}},stats:{reactions:"Reactions",comments:"Comments",shares:"Shares",views:"Views","last-days":"in the last 7 days"},schedule:{title:"Schedule Post","select-date":"Select Date","select-time":"Select Time","scheduled-for":"Scheduled for",confirm:"Schedule Post","scheduled-indicator":"Scheduled for"}}}};var lS={feed:{post:"Publication","posts-not-found":{title:"Aucune publication trouv\xE9e",description:"Cr\xE9ez une publication pour commencer \xE0 interagir avec la communaut\xE9."},"post-filters":{all:"Tous",connections:"Connexions",contacts:"Contacts",communities:"Communaut\xE9s"},communities:{title:"Communaut\xE9s",explore:"Voir tout",tabs:{explore:"Explorer les communaut\xE9s",my:"Mes communaut\xE9s",requests:"Demandes","contact-communities":"Communaut\xE9s dont vos contacts font partie","interested-communities":"Communaut\xE9s qui pourraient vous int\xE9resser","view-more-communities":"Voir plus de communaut\xE9s",back:"Retour","join-community":"Rejoindre"}},pages:{title:"Pages pour vous",explore:"Explorer",my:"Mes pages","for-you":"Pages pour vous",popular:"Pages populaires","view-more":"Voir plus de pages",follow:"Suivre",following:"Suivant"},users:{title:"Personnes",explore:"Voir tout",tabs:{explore:"Explorer les personnes",following:"Personnes que je suis",followers:"Mes abonn\xE9s","contact-people":"Personnes que vos contacts connaissent","suggested-people":"Personnes que vous pourriez conna\xEEtre","view-more-people":"Voir plus de personnes",back:"Retour",follow:"Suivre",unfollow:"Ne plus suivre",loading:"Chargement...",loadMore:"Charger plus"}},"users-suggestion":{title:"Suggestions pour vous","view-more":"Plus de suggestions"},"suggestions-modal":{users:"Suggestions de personnes",communities:"Suggestions de communaut\xE9s",pages:"Suggestions de pages",placeholder:"Rechercher"},reels:{title:"Clips",button:"Cr\xE9er un clip","remaining-time":"Il reste ","remaining-time-plural":"Restent ",expired:"Publication expir\xE9e","remaining-time-seconds":"secondes","remaining-time-minutes":"minutes","remaining-time-hours":"heures","remaining-time-days":"jours","remaining-time-months":"mois","remaining-time-years":"ann\xE9es",comments:{title:"Commentaires",reply:"R\xE9pondre",like:"Aim\xE9",likes:"mentions J'aime","add-comment":"Ajouter un commentaire...",edited:"(Modifi\xE9)","load-more-comments":"Charger plus de commentaires","show-less-comments":"Afficher moins de commentaires","load-more-answers":"Charger plus de r\xE9ponses","show-less-answers":"Afficher moins de r\xE9ponses",loading:"Chargement..."}},streaming:{"upcoming-streams":"Lives programm\xE9s","browse-streams":"Explorer plus de lives"},messages:{title:"Messages","view-all":"Voir tout"},"share-post":{title:"Partager la publication","copy-link":{"post-card-label":"Copier le lien de la publication",label:"Copier le lien",success:{title:"Lien copi\xE9 avec succ\xE8s !",description:"Le lien de la publication a \xE9t\xE9 copi\xE9 avec succ\xE8s. Vous pouvez maintenant le partager avec vos amis."},error:{title:"Erreur lors de la copie du lien !",description:"Une erreur s'est produite lors de la copie du lien de la publication. Veuillez r\xE9essayer."}}},"create-post":{title:"Cr\xE9er une publication","start-a-post":"Commencez une publication","add-description":"Ajoutez une description...",options:{midia:"M\xE9dia",job:"Offre d'emploi",reels:"Clips",article:"Article",emoji:"\xC9moji",mention:"Mentionner",schedule:"Programmer","saved-items":"\xC9l\xE9ments enregistr\xE9s"},schedule:{"base-on-your-location":"selon votre localisation","select-date":"S\xE9lectionner la date","select-time":"S\xE9lectionner l'heure","scheduled-for":"Pr\xE9vu pour",confirm:"Programmer la publication","set-date-time":"D\xE9finir la date et l'heure de publication","cancel-button":"Annuler","schedule-button":"Programmer","schedule-publication":"Programmer la publication","publish-ideal-time":"Publiez au moment id\xE9al","publication-scheduled-for":"Publication pr\xE9vue pour","no-post-scheduled":"Aucune publication programm\xE9e","no-scheduled-posts-yet":"Vous n'avez pas encore de publications programm\xE9es","close-button":"Fermer","scheduled-publications":"Publications programm\xE9es","view-upcoming-publications":"Voir les publications \xE0 venir","edit-button":"Modifier","delete-button":"Supprimer","loading-scheduled-posts":"Chargement des publications programm\xE9es...","loading-pages":"Chargement des pages..."},filters:{all:"Tous",connections:"Connexions",communities:"Communaut\xE9s"},buttons:{save:"Enregistrer",saving:"Enregistrement...",resume:"Reprendre",publish:"Publier",publishing:"Publication..."},reel:{"upload-prompt":{title:"Glissez, d\xE9posez et voyez le changement en 30 secondes ! \u{1F680}\u{1F3A5}",button:"S\xE9lectionner une vid\xE9o"}}},"post-card":{community:{"published-in":"\xC9galement publi\xE9 dans la communaut\xE9",enter:"Rejoindre la communaut\xE9"},page:{"published-by":"Publi\xE9 par la page"},"not-found":{"users-not-found":"Aucun utilisateur trouv\xE9",title:"Publication introuvable",description:"La publication que vous recherchez n'existe pas."},user:{follow:"Suivre",unfollow:"Ne plus suivre","make-contact":"Entrer en contact",following:"Suivi",contact:"Contact"},content:{"view-more":"Voir plus","view-less":"Voir moins"},post:{options:{save:"Enregistrer","view-stats":"Voir les statistiques","copy-link":"Copier le lien de la publication",delete:"Supprimer la publication",edit:"Modifier la publication"},reactions:{agree:"Soutien",dislike:"\xCAtre en d\xE9saccord",love:"J'adore",genial:"G\xE9nial",haha:"Rires",like:"J'aime","no-comments":"Aucun commentaire"},stats:{reactions:"r\xE9action(s)",comments:"commentaire(s)",shares:"partage(s)",stats:"Statistiques"},audio:{listen:"\xC9couter",pause:"Pause",resume:"Reprendre",restart:"Recommencer",stop:"Arr\xEAter"},actions:{react:"R\xE9agir",comment:"Commenter",share:"Partager",repost:"Reposter"},timer:{extend:"Prolonger",reactivate:"R\xE9activer",expired:"Expir\xE9"},comments:{options:{edit:"Modifier",delete:"Supprimer","switch-profile":{title:"Changer de profil",description:"S\xE9lectionnez le profil que vous souhaitez utiliser pour commenter cette publication.",button:{confirm:"Confirmer",cancel:"Annuler"},"commenting-as":"Commenter en tant que...",search:"Rechercher","confirm-comment":"Voulez-vous vraiment commenter avec cette page ?","no-results":"Aucun profil trouv\xE9 pour \xAB {searchQuery} \xBB"}},comment:"Commenter la publication",answer:"\xC9crivez votre r\xE9ponse",actions:{answer:"R\xE9pondre",react:"R\xE9agir"},delete:{label:"Supprimer",title:"Supprimer le commentaire",description:"\xCAtes-vous s\xFBr de vouloir supprimer ce commentaire ?",toasts:{error:{title:"Erreur lors de la suppression du commentaire !",label:"Une erreur s'est produite lors de la suppression du commentaire. Veuillez r\xE9essayer."}}},edit:{save:"Enregistrer",cancel:"Annuler"}}}},"delete-modal":{title:"Supprimer la publication",description:"\xCAtes-vous s\xFBr de vouloir supprimer cette publication ?"},"share-modal":{post:{"shared-by":"Partag\xE9 par","share-now":"Partager maintenant",title:"Partager la publication","in-community":{title:"Partager dans la communaut\xE9"},"empty-message":"Vous n'\xEAtes pas membre de aucune communaut\xE9 encore.","in-chat":{title:"Partager dans le chat"},to:{title:"Partager sur",page:"Page"}}},"medias-modal":{"loading-medias":"Chargement des m\xE9dias...",added:{title:"M\xE9dias ajout\xE9s"},"edit-media":"Modifier le m\xE9dia"},done:"Termin\xE9",toasts:{create:{creating:{title:"Cr\xE9ation de la publication...",description:"Votre publication est en cours de cr\xE9ation. Vous pouvez continuer \xE0 modifier pendant le processus."},success:{title:"Publication cr\xE9\xE9e avec succ\xE8s !",description:"Votre publication a \xE9t\xE9 cr\xE9\xE9e avec succ\xE8s. Vous pouvez maintenant la partager avec vos amis."},error:{title:"Erreur lors de la cr\xE9ation de la publication !",description:"Une erreur s'est produite lors de la cr\xE9ation de votre publication. Veuillez r\xE9essayer."}},edit:{editing:{title:"Modification de la publication...",description:"Votre publication est en cours de modification. Vous pouvez continuer \xE0 \xE9diter pendant le processus."},success:{title:"Publication modifi\xE9e avec succ\xE8s !",description:"Votre publication a \xE9t\xE9 modifi\xE9e avec succ\xE8s. Vous pouvez maintenant la partager avec vos amis."},error:{title:"Erreur lors de la modification de la publication !",description:"Une erreur s'est produite lors de la modification de votre publication. Veuillez r\xE9essayer."}},delete:{deleting:{title:"Suppression de la publication...",description:"Votre publication est en cours de suppression. Vous pouvez continuer \xE0 naviguer pendant le processus."},success:{title:"Publication supprim\xE9e avec succ\xE8s !",description:"Votre publication a \xE9t\xE9 supprim\xE9e avec succ\xE8s."},error:{title:"Erreur lors de la suppression de la publication !",description:"Une erreur s'est produite lors de la suppression de votre publication. Veuillez r\xE9essayer."}},share:{success:{title:"Publication partag\xE9e avec succ\xE8s !",description:"Votre publication a \xE9t\xE9 partag\xE9e avec succ\xE8s. Vous pouvez maintenant la partager avec vos amis."},error:{title:"Erreur lors du partage de la publication !",description:"Une erreur s'est produite lors du partage de votre publication. Veuillez r\xE9essayer."}},extend:{success:{title:"Dur\xE9e prolong\xE9e avec succ\xE8s !",description:"La dur\xE9e d'expiration de votre publication a \xE9t\xE9 prolong\xE9e avec succ\xE8s."},error:{title:"Erreur lors de la prolongation !",description:"Impossible de prolonger la dur\xE9e d'expiration de la publication. Veuillez r\xE9essayer."}}},"post-stats-modal":{title:"Statistiques de la publication",createdAt:"Publi\xE9 le",engagement:{options:{impressions:"Impressions",likes:"Mentions J'aime",comments:"Commentaires",shares:"Partages"},posts:{back:"Retour","post-impressions":{title:"Impressions de la publication","posted-at":"Publi\xE9 le",remain:{label:"Restant",hours:"heures"},"social-media-impact":{title:"Impact sur les r\xE9seaux sociaux",reactions:"R\xE9actions",comments:"Commentaires",shares:"Partages","no-impact":{comments:"Aucun changement n\xE9cessaire"}},views:{title:"Vues","viewed-at":"Vu le","all-reactions":"Toutes les r\xE9actions"}},title:"Publications",tip:"Publier fr\xE9quemment augmente jusqu'\xE0 3\xD7 vos chances d'\xEAtre d\xE9couvert et mis en avant.","create-post":"Cr\xE9er une publication",discovers:{title:"D\xE9couvertes","users-reached":"Utilisateurs atteints"}}},stats:{reactions:"R\xE9actions",comments:"Commentaires",shares:"Partages",views:"Vues","last-days":"des 7 derniers jours"},schedule:{title:"Programmer la publication","select-date":"S\xE9lectionner la date","select-time":"S\xE9lectionner l'heure","scheduled-for":"Pr\xE9vu pour",confirm:"Programmer la publication","scheduled-indicator":"Pr\xE9vu pour"}}}};var dS={article:{title:"Artigo",editor:{placeholder:"Comece a escrever seu artigo...","title-placeholder":"T\xEDtulo do artigo"},hashtags:{"suggested-title":"Hastags sugeridas:",default:{professionals:"Profissionais",companies:"Empresas",innovation:"Inova\xE7\xE3o",angola:"Angola"}},upload:{"uploading-single":"Enviando imagem...","uploading-multiple":"Enviando {{count}} imagens...","click-to-upload":"Clique para enviar","drag-and-drop":"ou arraste e solte","uploading-files":"Enviando {{count}} arquivos","clear-all":"Limpar tudo","no-file-selected":"Nenhum arquivo selecionado","no-files-to-upload":"Nenhum arquivo para enviar","max-files-error":"M\xE1ximo {{limit}} arquivo{{plural}} permitido{{plural}}","file-size-error":"Tamanho do arquivo excede o m\xE1ximo permitido ({{maxSize}}MB)","upload-failed":"Falha no upload","no-url-returned":"Falha no upload: Nenhuma URL retornada","upload-function-not-defined":"Fun\xE7\xE3o de upload n\xE3o definida"},buttons:{publish:"Publicar",publishing:"Publicando...",save:"Salvar",saving:"Salvando..."}}};var cS={article:{title:"Article",editor:{placeholder:"Start writing your article...","title-placeholder":"Article title"},hashtags:{"suggested-title":"Suggested hashtags:",default:{professionals:"Professionals",companies:"Companies",innovation:"Innovation",angola:"Angola"}},upload:{"uploading-single":"Uploading image...","uploading-multiple":"Uploading {{count}} images...","click-to-upload":"Click to upload","drag-and-drop":"or drag and drop","uploading-files":"Uploading {{count}} files","clear-all":"Clear All","no-file-selected":"No file selected","no-files-to-upload":"No files to upload","max-files-error":"Maximum {{limit}} file{{plural}} allowed","file-size-error":"File size exceeds maximum allowed ({{maxSize}}MB)","upload-failed":"Upload failed","no-url-returned":"Upload failed: No URL returned","upload-function-not-defined":"Upload function is not defined"},buttons:{publish:"Publish",publishing:"Publishing...",save:"Save",saving:"Saving..."}}};var pS={article:{title:"Article",editor:{placeholder:"Commencez \xE0 \xE9crire votre article...","title-placeholder":"Titre de l'article"},hashtags:{"suggested-title":"Hashtags sugg\xE9r\xE9s :",default:{professionals:"Professionnels",companies:"Entreprises",innovation:"Innovation",angola:"Angola"}},upload:{"uploading-single":"T\xE9l\xE9chargement de l'image...","uploading-multiple":"T\xE9l\xE9chargement de {{count}} images...","click-to-upload":"Cliquez pour t\xE9l\xE9charger","drag-and-drop":"ou glissez-d\xE9posez","uploading-files":"T\xE9l\xE9chargement de {{count}} fichiers","clear-all":"Tout effacer","no-file-selected":"Aucun fichier s\xE9lectionn\xE9","no-files-to-upload":"Aucun fichier \xE0 t\xE9l\xE9charger","max-files-error":"Maximum {{limit}} fichier{{plural}} autoris\xE9{{plural}}","file-size-error":"La taille du fichier d\xE9passe le maximum autoris\xE9 ({{maxSize}}MB)","upload-failed":"\xC9chec du t\xE9l\xE9chargement","no-url-returned":"\xC9chec du t\xE9l\xE9chargement : Aucune URL retourn\xE9e","upload-function-not-defined":"Fonction de t\xE9l\xE9chargement non d\xE9finie"},buttons:{publish:"Publier",publishing:"Publication...",save:"Sauvegarder",saving:"Sauvegarde..."}}};var mS={pt:sS,en:iS,fr:lS};var uS={pt:dS,en:cS,fr:pS};function Oe(){let{translate:e}=Wm(mS);return {translate:e}}function Ja(){let{translate:e}=Wm(uS);return {translate:e}}var Zi=hf.gql`
|
|
1810
1810
|
mutation CreatePost($createPostInput: CreatePostInput!) {
|
|
1811
1811
|
createPost(createPostInput: $createPostInput) {
|
|
1812
1812
|
id
|
|
@@ -2047,7 +2047,7 @@ mutation CreatePost($createPostInput: CreatePostInput!) {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
|
-
`;var hS=(e={})=>{var s,i,l,d,c;let{profileApiUrl:t,user:o}=M(),r=p=>j(void 0,null,function*(){var f;if(!t||!(o!=null&&o.accessToken))throw new Error("Missing required API configuration");try{let u=yield hf.request(t,gS,{options:p},{"x-access-token":o.accessToken});return (f=u==null?void 0:u.getPageUsersByUser)!=null&&f.data?u.getPageUsersByUser.data:[]}catch(u){throw u}}),{data:n,isLoading:a}=Ve({queryKey:["page-users-by-user",o==null?void 0:o.id],queryFn:()=>r({filter:"",page:1,perPage:100}),enabled:(s=e.enabled)!=null?s:!!t&&!!(o!=null&&o.accessToken),retry:(i=e.retry)!=null?i:3,retryDelay:(l=e.retryDelay)!=null?l:p=>Math.min(1e3*Dl(2,p),3e4),staleTime:(d=e.staleTime)!=null?d:5*60*1e3,refetchOnWindowFocus:(c=e.refetchOnWindowFocus)!=null?c:false});return {pageUsers:n!=null?n:[],isGettingPageUsers:a}};function Qm({selectedProfileId:e,onProfileSelect:t}){let{user:o,isGettingUser:r}=M(),{pageUsers:n,isGettingPageUsers:a}=hS({enabled:!!(o!=null&&o.id)&&!r}),s=J.useMemo(()=>{if(!o)return [];let p={id:o.id||"",name:o.name||"",avatar:o.avatar||"",role:o.role||"",isPage:false},f=n.map(u=>({id:`page-${u.page.id}`,name:u.page.name||"P\xE1gina sem nome",avatar:u.page.logo||"",role:"P\xE1gina",isPage:true}));return [p,...f]},[o,n]),[i,l]=J.useState("");J.useEffect(()=>{var p;if(s.length>0){let f=e||((p=s[0])==null?void 0:p.id)||"";l(f);}},[s,e]);let d=p=>{l(p);let f=s.find(u=>u.id===p);f&&t(f);},c=r||a||!o||s.length===0;return o?{pagesProfiles:s,selectedValue:i,handleValueChange:d,isLoading:c}:{pagesProfiles:[],selectedValue:"",handleValueChange:()=>{},isLoading:true}}function vS({currentProfile:e,profiles:t,isLoading:o,onSelect:r,isSaved:n,isSavingDraft:a}){let[s,i]=J.useState(false),l=J.useRef(null);return J.useEffect(()=>{let c=p=>{l.current&&!l.current.contains(p.target)&&i(false);};return s&&document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[s]),J__namespace.default.createElement("div",{className:"relative",ref:l},J__namespace.default.createElement("div",{onClick:()=>i(!s),className:"flex items-start gap-3 cursor-pointer hover:bg-gray-100/80 p-2 rounded-lg transition-colors"},J__namespace.default.createElement(ae,{src:e==null?void 0:e.avatar,name:e==null?void 0:e.name,className:"h-10 w-10"}),J__namespace.default.createElement("div",{className:"flex flex-col"},J__namespace.default.createElement("div",{className:"flex gap-2 items-center"},J__namespace.default.createElement("span",{className:"font-medium text-[16px] text-[#050910]"},e==null?void 0:e.name),J__namespace.default.createElement(lucideReact.ChevronDown,{className:U("w-4 h-4 text-gray-500 transition-transform",s&&"rotate-180")})),J__namespace.default.createElement("span",{className:"text-[14px] font-medium text-[#687588]"},(e==null?void 0:e.role)||(e!=null&&e.isPage?"P\xE1gina":""))),a&&J__namespace.default.createElement("span",{className:"text-[14px] text-[#0B89CE] font-medium"},"Salvando..."),n&&!a&&J__namespace.default.createElement("span",{className:"text-[14px] text-[#687588] font-medium"},"Salvo")),s&&J__namespace.default.createElement("div",{className:"absolute top-full left-0 mt-2 w-80 bg-white border border-gray-200 rounded-lg shadow-lg z-[10000] max-h-80 overflow-y-auto"},J__namespace.default.createElement("div",{className:"py-2"},!o&&(t==null?void 0:t.length)===0&&J__namespace.default.createElement("div",{className:"px-4 py-3 text-sm text-gray-500"},"Nenhum perfil dispon\xEDvel"),t==null?void 0:t.map(c=>J__namespace.default.createElement("div",{key:c==null?void 0:c.id,onClick:()=>{r(c),i(false);},className:U("flex items-center gap-3 px-4 py-3 hover:bg-gray-50 cursor-pointer transition-colors",(e==null?void 0:e.id)===(c==null?void 0:c.id)&&"bg-primary/10 m-1 rounded-lg")},J__namespace.default.createElement(ae,{src:c==null?void 0:c.avatar,name:c==null?void 0:c.name,className:"h-8 w-8"}),J__namespace.default.createElement("div",{className:"flex flex-col flex-1"},J__namespace.default.createElement("span",{className:"font-medium text-sm text-gray-900"},c==null?void 0:c.name),J__namespace.default.createElement("span",{className:"text-xs text-gray-500"},(c==null?void 0:c.role)||(c!=null&&c.isPage?"P\xE1gina":""))))))))}var RW=({children:e})=>{let[t,o]=J.useState(false);return J.useEffect(()=>o(true),[]),t?$W__default.default.createPortal(e,document.body):null},eQ=({trigger:e,children:t,side:o="bottom",align:r="start",className:n,contentClassName:a,desktopWidthClass:s="w-56",sideOffset:i,alignOffset:l,open:d,defaultOpen:c=false,onOpenChange:p,closeOnSelect:f=true,mobileBreakpointPx:u=640,forceMobile:g=false,fullScreenOnMobile:m=true,lockScrollOnMobile:v=true,showMobileHeader:h=true,mobileHeaderTitle:b="Menu",renderMobileHeader:x,renderMobileFooter:w,mobileBodyClassName:C="px-4 py-4 sm:px-2 sm:py-2",onItemSelect:A,contentProps:k})=>{let N=typeof d=="boolean",[I,P]=J.useState(c),S=N?d:I,D=Y=>{N||P(Y),p==null||p(Y);},[T,L]=J.useState(false),E=J.useRef(null);J.useEffect(()=>{let Y=()=>L(g||window.innerWidth<u);return Y(),window.addEventListener("resize",Y),()=>window.removeEventListener("resize",Y)},[g,u]),J.useEffect(()=>{var Y;if(v&&T&&m)return S?E.current=d2():((Y=E.current)==null||Y.call(E),E.current=null),()=>{var H;(H=E.current)==null||H.call(E),E.current=null;}},[S,T,m,v]);let B=()=>{D(false),A&&A();},W=J.useMemo(()=>U("p-0 outline-none",a!=null?a:n),[a,n]),q=T&&m;return J__namespace.default.createElement(Tn,{open:S,onOpenChange:D},J__namespace.default.createElement(Dn,{asChild:true},e),J__namespace.default.createElement(RW,null,J__namespace.default.createElement(Ln,y({side:o,align:T?"start":r,sideOffset:i,alignOffset:l,className:U(W,q?"fixed inset-0 z-[9999] bg-white/95 backdrop-blur-sm":"z-[9999]",`sm:${s} sm:rounded-lg sm:shadow-lg sm:border sm:border-slate-100 sm:bg-white`,"overflow-auto")},k),q&&h&&J__namespace.default.createElement("div",{className:"sm:hidden flex items-center justify-between px-4 py-3 border-b border-slate-200"},x?x(B):J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"text-sm font-semibold"},b),J__namespace.default.createElement("button",{type:"button","aria-label":"Fechar",className:"p-2 rounded-md hover:bg-slate-100",onClick:B},"\u2715"))),J__namespace.default.createElement("div",{className:U(q?C:"sm:px-2 sm:py-2","space-y-1"),onClick:Y=>{if(!f)return;let H=Y.target;if(!H)return;let z=H.closest("button, a, [data-dropdown-close]");z&&!z.hasAttribute("data-dropdown-ignore")&&B();}},typeof t=="function"?t(B):t),q&&(w?J__namespace.default.createElement("div",{className:"sm:hidden"},w(B)):J__namespace.default.createElement("div",{className:"sm:hidden h-12"})))))},yS=eQ;function tQ(e){let{fontSize:t=16}=e;return J__namespace.createElement("svg",y({width:t,height:t,fill:"none"},e),J__namespace.createElement("path",{d:"M15.5 6.714v6.394c0 2.616-1.647 4.225-4.281 4.225H4.772C2.162 17.333.5 15.691.5 13.058V6.714h15zm-4.133 5.945a.692.692 0 00-.675.707c0 .383.304.7.683.708.387 0 .7-.316.7-.708a.703.703 0 00-.7-.707h-.008zm-6.775-.01a.712.712 0 00-.675.717c.016.383.33.685.708.667a.685.685 0 00.65-.716.682.682 0 00-.683-.668zm3.391 0a.713.713 0 00-.674.717c.016.383.329.685.708.667a.685.685 0 00.65-.716.682.682 0 00-.684-.668zM4.6 9.625a.713.713 0 00-.675.717c.016.382.33.683.708.666a.685.685 0 00.65-.717.681.681 0 00-.683-.666zm3.383 0a.713.713 0 00-.674.717c.016.382.329.683.708.666a.685.685 0 00.65-.717.681.681 0 00-.684-.666zm3.392.009a.692.692 0 00-.675.7v.008a.679.679 0 101.359-.041.692.692 0 00-.684-.667z",fill:"#687588"}),J__namespace.createElement("path",{opacity:.4,d:"M.502 6.714c.01-.49.052-1.46.13-1.772.394-1.758 1.736-2.875 3.655-3.034h7.425c1.902.168 3.26 1.292 3.656 3.034.076.304.117 1.282.128 1.772H.502z",fill:"#687588"}),J__namespace.createElement("path",{d:"M4.921 4.492a.622.622 0 00.634-.642V1.31A.623.623 0 004.92.666a.623.623 0 00-.634.642V3.85c0 .368.272.642.634.642zM11.08 4.492a.627.627 0 00.633-.642V1.31a.628.628 0 00-.634-.643.623.623 0 00-.634.642V3.85c0 .368.272.642.634.642z",fill:"#687588"}))}var oQ=J__namespace.memo(tQ),bS=oQ;var N0=zustand.create(e=>({selectedOption:null,isOpen:false,setSelectedOption:t=>e({selectedOption:t}),toggleOpen:()=>e(t=>({isOpen:!t.isOpen}))}));function wS({isSaved:e,isSavingDraft:t,isPublishing:o,onPublish:r,onProfileSelect:n,canPublish:a,selectedProfile:s}){var h,b,x,w;let{translate:i}=Oe(),{selectedOption:l,setSelectedOption:d}=N0(),{translate:c}=Ja(),{user:p}=M(),f=s||{id:(h=p==null?void 0:p.id)!=null?h:"",name:(b=p==null?void 0:p.name)!=null?b:"",avatar:(x=p==null?void 0:p.avatar)!=null?x:"",role:(w=p==null?void 0:p.headline)!=null?w:"",isPage:false},{pagesProfiles:u,isLoading:g}=Qm({selectedProfileId:f.id,onProfileSelect:()=>{}}),m=[{id:"article-drafts",label:"Hist\xF3rico de rascunhos",icon:J__namespace.default.createElement(bS,null)}],v=(C,A)=>{switch(C){case "article-drafts":d(C);break}A();};return J__namespace.default.createElement("div",{className:"flex items-center justify-between h-[78px] p-4 m-6 bg-white rounded-2xl border border-[#E4EBF1]"},J__namespace.default.createElement(vS,{currentProfile:f,profiles:u,isLoading:g,isSaved:e,isSavingDraft:t,onSelect:C=>n==null?void 0:n(C)}),J__namespace.default.createElement("div",{className:"flex items-center gap-3"},J__namespace.default.createElement(g0,{defaultValue:"all"},J__namespace.default.createElement(el,{className:"w-[100px] border border-gray-200 rounded-lg bg-white"},J__namespace.default.createElement(h0,{placeholder:"Todos"})),J__namespace.default.createElement(tl,{className:"z-[9999]"},J__namespace.default.createElement(xn,{value:"all"},"Todos"),J__namespace.default.createElement(xn,{value:"connections"},i("feed.create-post.filters.connections")),J__namespace.default.createElement(xn,{value:"communities"},i("feed.create-post.filters.communities")))),J__namespace.default.createElement(le,{disabled:!a||o,onClick:r,className:"bg-[#0B89CE] hover:bg-[#0B89CE]/90 text-white px-6 py-2 rounded-lg font-medium"},c(o?"article.buttons.publishing":"article.buttons.publish")),J__namespace.default.createElement(yS,{side:"bottom",align:"start",className:"mt-4 w-[15rem] rounded-[1rem] bg-white z-[9999]",trigger:J__namespace.default.createElement(lucideReact.EllipsisVertical,{className:"cursor-pointer",size:20,color:"#687588"})},C=>J__namespace.default.createElement(react.AnimatePresence,null,J__namespace.default.createElement(react.motion.div,{key:"dropdown",initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.2,ease:"easeOut"},className:"flex flex-col w-full"},m.map(A=>J__namespace.default.createElement(react.motion.button,{key:A.id,onClick:()=>v(A.id,C),className:"w-full flex items-center gap-2 p-2 text-left text-sm text-[#050910] hover:bg-slate-100 transition-colors",whileHover:{scale:1.02},whileTap:{scale:.97},disabled:A.id===l},A.icon,J__namespace.default.createElement("span",{className:"flex-1 truncate text-body-sm md:text-body-md text-[#687588] font-medium"},A.label))))))))}var PS=5*1024*1024,lQ={mod:"\u2318",command:"\u2318",meta:"\u2318",ctrl:"\u2303",control:"\u2303",alt:"\u2325",option:"\u2325",shift:"\u21E7",backspace:"Del",delete:"\u2326",enter:"\u23CE",escape:"\u238B",capslock:"\u21EA"};function ut(...e){return e.filter(Boolean).join(" ")}function dQ(){return typeof navigator!="undefined"&&navigator.platform.toLowerCase().includes("mac")}var cQ=(e,t,o=true)=>{if(t){let r=e.toLowerCase();return lQ[r]||(o?e.toUpperCase():e)}return o?e.charAt(0).toUpperCase()+e.slice(1):e},$o=e=>{let{shortcutKeys:t,delimiter:o="+",capitalize:r=true}=e;return t?t.split(o).map(n=>n.trim()).map(n=>cQ(n,dQ(),r)):[]},Yi=(e,t)=>t!=null&&t.schema?t.schema.spec.marks.get(e)!==void 0:false,fa=(e,t)=>t!=null&&t.schema?t.schema.spec.nodes.get(e)!==void 0:false;function SS(e){let{state:t,view:o}=e,{doc:r,selection:n}=t,a=state.Selection.findFrom(n.$to,1,true);if(a)return o.dispatch(t.tr.setSelection(a).scrollIntoView()),true;let s=t.schema.nodes.paragraph;if(!s)return console.warn("No paragraph node type found in schema."),false;let i=r.content.size,l=s.create(),d=t.tr.insert(i,l),c=d.doc.resolve(i+1);return d=d.setSelection(state.TextSelection.near(c)).scrollIntoView(),o.dispatch(d),true}function Os(e){return typeof e=="number"&&e>=0}function Hs(e,t){if(!e)return false;let o=Array.isArray(t)?t:[t],r=o.some(n=>e.extensionManager.extensions.some(a=>a.name===n));return r||console.warn(`None of the extensions [${o.join(", ")}] were found in the editor schema. Ensure they are included in the editor configuration.`),r}function pQ(e,t){try{let o=e.state.doc.nodeAt(t);return o||(console.warn(`No node found at position ${t}`),null)}catch(o){return console.error(`Error getting node at position ${t}:`,o),null}}function I0(e){var s;let{editor:t,node:o,nodePos:r}=e;if(!t||!((s=t.state)!=null&&s.doc))return null;let n=o!=null,a=Os(r);if(!n&&!a)return null;if(n){let i=-1,l=null;if(t.state.doc.descendants((d,c)=>d===o?(i=c,l=d,false):true),i!==-1&&l!==null)return {pos:i,node:l}}if(a){let i=pQ(t,r);if(i)return {pos:r,node:i}}return null}function wr(e,t=[],o=false){if(!e||!e.state.selection)return false;let{selection:r}=e.state;if(r.empty)return false;if(r instanceof state.NodeSelection){let n=r.node;return n?t.includes(n.type.name):false}if(o){let{$from:n}=r;for(let a=n.depth;a>0;a--){let s=n.node(a);if(t.includes(s.type.name))return true}}return false}function E0(e,t=[]){var a,s;if(!e||t.length===0)return false;let{state:o}=e,{selection:r}=o,n=new Set(t);if(r instanceof state.NodeSelection){let i=(s=(a=r.node)==null?void 0:a.type)==null?void 0:s.name;return !!i&&n.has(i)}if(r instanceof state.TextSelection||r instanceof state.AllSelection){let i=true;return o.doc.nodesBetween(r.from,r.to,l=>l.isTextblock&&!n.has(l.type.name)?(i=false,false):i),i}return false}var mQ=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function uQ(e,t){let o=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return !e||e.replace(mQ,"").match(new RegExp(`^(?:(?:${o.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}function AS(e,t,o){try{let r=new URL(e,t);if(uQ(r.href,o))return r.href}catch(r){}return "#"}var cl=J.forwardRef((a,n)=>{var s=a,{decorative:e,orientation:t="vertical",className:o}=s,r=Q(s,["decorative","orientation","className"]);let l=e?{role:"none"}:{"aria-orientation":t==="vertical"?t:void 0,role:"separator"},d=ut("flex-shrink-0 bg-[rgba(37,39,45,0.1)] dark:bg-[rgba(238,238,246,0.11)]",t==="horizontal"?"h-px w-full my-2":"h-6 w-px",o);return J__namespace.default.createElement("div",F(y(y({className:d,"data-orientation":t},l),r),{ref:n}))});cl.displayName="Separator";function Km({editor:e,containerRef:t,query:o,items:r,onSelect:n,onClose:a,orientation:s="vertical",autoSelectFirstItem:i=true}){let[l,d]=J.useState(i?0:-1);return J.useEffect(()=>{let c=f=>{if(!r.length)return false;let u=()=>d(m=>m===-1?0:(m+1)%r.length),g=()=>d(m=>m===-1?r.length-1:(m-1+r.length)%r.length);switch(f.key){case "ArrowUp":return s==="horizontal"?false:(f.preventDefault(),g(),true);case "ArrowDown":return s==="horizontal"?false:(f.preventDefault(),u(),true);case "ArrowLeft":return s==="vertical"?false:(f.preventDefault(),g(),true);case "ArrowRight":return s==="vertical"?false:(f.preventDefault(),u(),true);case "Tab":return f.preventDefault(),f.shiftKey?g():u(),true;case "Home":return f.preventDefault(),d(0),true;case "End":return f.preventDefault(),d(r.length-1),true;case "Enter":return f.isComposing?false:(f.preventDefault(),l!==-1&&r[l]&&(n==null||n(r[l])),true);case "Escape":return f.preventDefault(),a==null||a(),true;default:return false}},p=null;if(e?p=e.view.dom:t!=null&&t.current&&(p=t.current),p)return p.addEventListener("keydown",c,true),()=>{p==null||p.removeEventListener("keydown",c,true);}},[e,t,r,l,n,a,s]),J.useEffect(()=>{o&&d(i?0:-1);},[o,i]),{selectedIndex:r.length?l:void 0,setSelectedIndex:d}}var IS=(e,t)=>{typeof e=="function"?e(t):e&&typeof e=="object"&&"current"in e&&(e.current=t);},ES=(e,t)=>{let o=J.useRef(null);return J.useCallback(r=>{e&&"current"in e&&(e.current=r),o.current&&IS(o.current,null),o.current=t,t&&IS(t,r);},[e,t])};var CQ=e=>{let[t,o]=J.useState([]),r=J.useCallback(()=>e.current?Array.from(e.current.querySelectorAll('button:not([disabled]), [role="button"]:not([disabled]), [tabindex="0"]:not([disabled])')):[],[e]);J.useEffect(()=>{let a=e.current;if(!a)return;let s=()=>o(r());s();let i=new MutationObserver(s);return i.observe(a,{childList:true,subtree:true}),()=>i.disconnect()},[r,e]);let{selectedIndex:n}=Km({containerRef:e,items:t,orientation:"horizontal",onSelect:a=>a.click(),autoSelectFirstItem:false});J.useEffect(()=>{let a=e.current;if(!a)return;let s=l=>{let d=l.target;a.contains(d)&&d.setAttribute("data-focus-visible","true");},i=l=>{let d=l.target;a.contains(d)&&d.removeAttribute("data-focus-visible");};return a.addEventListener("focus",s,true),a.addEventListener("blur",i,true),()=>{a.removeEventListener("focus",s,true),a.removeEventListener("blur",i,true);}},[e]),J.useEffect(()=>{n!==void 0&&t[n]&&t[n].focus();},[n,t]);},k8=J.forwardRef((s,a)=>{var i=s,{children:e,className:t,variant:o="fixed",style:r}=i,n=Q(i,["children","className","variant","style"]);let l=J.useRef(null),d=ES(l,a);CQ(l);let c=ut("flex items-center gap-1",o==="fixed"?ut("sticky top-0 z-10 w-full min-h-[2.75rem] px-2","overflow-x-auto overscroll-x-contain [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden","bg-white dark:bg-black","border-b border-[rgba(15,22,36,0.05)] dark:border-[rgba(232,232,253,0.05)]","max-[480px]:absolute max-[480px]:top-auto max-[480px]:flex-nowrap max-[480px]:justify-start","max-[480px]:border-t max-[480px]:border-b-0","max-[480px]:px-2 max-[480px]:pb-[var(--tt-safe-area-bottom,0px)]","max-[480px]:h-[calc(2.75rem+var(--tt-safe-area-bottom,0px))]"):ut("p-[0.1875rem]","rounded-[calc(0.125rem+var(--tt-radius-lg,0.75rem)+1px)]","border border-[rgba(15,22,36,0.05)] dark:border-[rgba(232,232,253,0.05)]","bg-white dark:bg-black shadow-[0_16px_48px_0_rgba(17,24,39,0.04),0_12px_24px_0_rgba(17,24,39,0.04),0_6px_8px_0_rgba(17,24,39,0.02),0_2px_3px_0_rgba(17,24,39,0.02)]","outline-none overflow-hidden","max-[480px]:w-full max-[480px]:rounded-none max-[480px]:border-0 max-[480px]:shadow-none"),t),p=y({"--tt-safe-area-bottom":"env(safe-area-inset-bottom, 0px)"},r);return J__namespace.default.createElement("div",y({ref:d,role:"toolbar","aria-label":"toolbar","data-variant":o,className:c,style:p},n),e)});k8.displayName="Toolbar";var Gs=J.forwardRef((n,r)=>{var a=n,{children:e,className:t}=a,o=Q(a,["children","className"]);return J__namespace.default.createElement("div",y({ref:r,role:"group",className:ut("flex items-center gap-[0.125rem] empty:hidden",t)},o),e)});Gs.displayName="ToolbarGroup";var Ji=J.forwardRef((o,t)=>{var e=Q(o,[]);return J__namespace.default.createElement(cl,y({ref:t,orientation:"vertical",decorative:true},e))});Ji.displayName="ToolbarSeparator";function Xa(e="max",t=768){let[o,r]=J.useState(void 0);return J.useEffect(()=>{let n=e==="min"?`(min-width: ${t}px)`:`(max-width: ${t-1}px)`,a=window.matchMedia(n),s=i=>r(i.matches);return r(a.matches),a.addEventListener("change",s),()=>a.removeEventListener("change",s)},[e,t]),!!o}function kS({title:e,onTitleChange:t}){let{translate:o}=Ja();return J__namespace.default.createElement("input",{type:"text",value:e,onChange:r=>t(r.target.value),placeholder:o("article.editor.title-placeholder"),className:"text-[24px] font-bold text-[#050910] border-none outline-none placeholder:text-gray-400 w-full resize-none"})}function qQ({initialOpen:e=false,placement:t="top",open:o,onOpenChange:r,delay:n=600,closeDelay:a=0}={}){let[s,i]=J.useState(e),l=o!=null?o:s,d=r!=null?r:i,c=react$1.useFloating({placement:t,open:l,onOpenChange:d,whileElementsMounted:react$1.autoUpdate,middleware:[react$1.offset(4),react$1.flip({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:4}),react$1.shift({padding:4})]}),p=c.context,f=react$1.useHover(p,{mouseOnly:true,move:false,restMs:n,enabled:o==null,delay:{close:a}}),u=react$1.useFocus(p,{enabled:o==null}),g=react$1.useDismiss(p),m=react$1.useRole(p,{role:"tooltip"}),v=react$1.useInteractions([f,u,g,m]);return J.useMemo(()=>y(y({open:l,setOpen:d},v),c),[l,d,v,c])}var T8=J.createContext(null);function FS(){let e=J.useContext(T8);if(e==null)throw new Error("Tooltip components must be wrapped in <TooltipProvider />");return e}function D8(o){var r=o,{children:e}=r,t=Q(r,["children"]);var a,s;let n=qQ(t);return t.useDelayGroup?J__namespace.default.createElement(react$1.FloatingDelayGroup,{delay:{open:(a=t.delay)!=null?a:0,close:(s=t.closeDelay)!=null?s:0},timeoutMs:t.timeout},J__namespace.default.createElement(T8.Provider,{value:n},e)):J__namespace.default.createElement(T8.Provider,{value:n},e)}var L8=J.forwardRef(function(a,n){var s=a,{children:t,asChild:o=false}=s,r=Q(s,["children","asChild"]);let i=FS(),l=J.isValidElement(t)?parseInt(J.version,10)>=19?t.props.ref:t.ref:void 0,d=react$1.useMergeRefs([i.refs.setReference,n,l]);if(o&&J.isValidElement(t)){let c={"data-tooltip-state":i.open?"open":"closed"};return J.cloneElement(t,i.getReferenceProps(y(y(y({ref:d},r),typeof t.props=="object"?t.props:{}),c)))}return J__namespace.default.createElement("button",y({ref:d,"data-tooltip-state":i.open?"open":"closed"},i.getReferenceProps(r)),t)}),F8=J.forwardRef(function(l,i){var d=l,{style:t,className:o,children:r,portal:n=true,portalProps:a={}}=d,s=Q(d,["style","className","children","portal","portalProps"]);let c=FS(),p=react$1.useMergeRefs([c.refs.setFloating,i]);if(!c.open)return null;let f=ut("z-[200] overflow-hidden rounded-[var(--tt-radius-md,0.375rem)]","bg-[#222325] px-2 py-1.5 text-xs font-medium text-white","shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.1)] text-center","dark:bg-white dark:text-[color:#53565A]","[&>kbd]:inline-block [&>kbd]:text-center [&>kbd]:capitalize [&>kbd]:align-middle","[&>kbd]:text-[color:rgba(244,244,255,0.37)]","dark:[&>kbd]:text-[color:rgba(40,44,51,0.42)]",o),u=J__namespace.default.createElement("div",F(y({ref:p,style:y(y({},c.floatingStyles),t)},c.getFloatingProps(s)),{className:f}),r);return n?J__namespace.default.createElement(react$1.FloatingPortal,y({},a),u):u});D8.displayName="Tooltip";L8.displayName="TooltipTrigger";F8.displayName="TooltipContent";var KQ=({shortcuts:e})=>e.length===0?null:J__namespace.default.createElement("div",null,e.map((t,o)=>J__namespace.default.createElement(J.Fragment,{key:o},o>0&&J__namespace.default.createElement("kbd",null,"+"),J__namespace.default.createElement("kbd",null,t)))),wt=J.forwardRef((l,i)=>{var d=l,{className:e,children:t,tooltip:o,showTooltip:r=true,shortcutKeys:n,"aria-label":a}=d,s=Q(d,["className","children","tooltip","showTooltip","shortcutKeys","aria-label"]);let c=J.useMemo(()=>$o({shortcutKeys:n}),[n]),p=ut("inline-flex items-center justify-center gap-[0.25rem]","h-8 min-w-8 px-2 text-sm font-medium leading-[1.15]","border-0 rounded-[var(--tt-radius-lg,0.75rem)]","transition-[background,color,opacity]","duration-[var(--tt-transition-duration-default)]","ease-[var(--tt-transition-easing-default)]","focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-60","bg-[rgba(15,22,36,0.05)] text-[color:rgba(36,39,46,0.78)]","dark:bg-[rgba(231,231,243,0.07)] dark:text-[color:rgba(247,247,253,0.64)]","hover:bg-[#EAEAEB] hover:text-[color:rgba(29,30,32,0.98)]","dark:hover:bg-[#2D2D2F] dark:hover:text-[color:rgba(255,255,255,0.96)]","data-[active-state=on]:bg-[#D7EEFA] data-[active-state=on]:text-[color:rgba(29,30,32,0.98)]","dark:data-[active-state=on]:bg-[rgba(238,238,246,0.11)] dark:data-[active-state=on]:text-[color:rgba(255,255,255,0.96)]","data-[style=ghost]:bg-transparent","data-[style=ghost]:text-[color:rgba(36,39,46,0.78)]","dark:data-[style=ghost]:text-[color:rgba(247,247,253,0.64)]","data-[style=ghost]:hover:bg-[#EAEAEB]","dark:data-[style=ghost]:hover:bg-[#2D2D2F]","[&[data-style=ghost][data-active-state=on]]:bg-[rgba(15,22,36,0.05)]","dark:[&[data-style=ghost][data-active-state=on]]:bg-[rgba(231,231,243,0.07)]","[&[data-style=ghost][data-active-state=on]]:text-[color:rgba(29,30,32,0.98)]","dark:[&[data-style=ghost][data-active-state=on]]:text-[color:rgba(255,255,255,0.96)]","data-[style=primary]:bg-[#0B89CE]","data-[style=primary]:text-white","data-[style=primary]:hover:bg-[#097BB9]","[&[data-style=primary][data-active-state=on]]:bg-[#AFDBF5]","[&[data-style=primary][data-active-state=on]]:text-[color:rgba(29,30,32,0.98)]","dark:[&[data-style=primary][data-active-state=on]]:text-[color:rgba(255,255,255,0.96)]","disabled:bg-[rgba(56,56,56,0.04)] disabled:text-[color:rgba(40,44,51,0.42)]","dark:disabled:bg-[rgba(232,232,253,0.05)] dark:disabled:text-[color:rgba(239,239,245,0.22)]","[&_.tiptap-button-icon]:h-4 [&_.tiptap-button-icon]:w-4","[&_.tiptap-button-icon]:text-[rgba(36,39,46,0.78)]","dark:[&_.tiptap-button-icon]:text-[rgba(247,247,253,0.64)]","hover:[&_.tiptap-button-icon]:text-[rgba(29,30,32,0.98)]","dark:hover:[&_.tiptap-button-icon]:text-[rgba(255,255,255,0.96)]","data-[active-state=on]:[&_.tiptap-button-icon]:text-[#0B89CE]","dark:data-[active-state=on]:[&_.tiptap-button-icon]:text-[#5FB5EB]","disabled:[&_.tiptap-button-icon]:text-[rgba(40,44,51,0.42)]","dark:disabled:[&_.tiptap-button-icon]:text-[rgba(244,244,255,0.37)]","[&_.tiptap-button-icon-sub]:h-4 [&_.tiptap-button-icon-sub]:w-4","[&_.tiptap-button-dropdown-arrows]:h-3 [&_.tiptap-button-dropdown-arrows]:w-3","[&_.tiptap-button-dropdown-small]:h-2.5 [&_.tiptap-button-dropdown-small]:w-2.5","[&_.tiptap-button-text]:px-[0.125rem] [&_.tiptap-button-text]:flex-1 [&_.tiptap-button-text]:text-left [&_.tiptap-button-text]:leading-6","[&[data-text-trim=on]_.tiptap-button-text]:truncate","data-[size=large]:text-[0.9375rem] data-[size=large]:h-[2.375rem] data-[size=large]:min-w-[2.375rem] data-[size=large]:px-[0.625rem]","data-[size=large]:[&_.tiptap-button-icon]:h-[1.125rem] data-[size=large]:[&_.tiptap-button-icon]:w-[1.125rem]","data-[size=large]:[&_.tiptap-button-icon-sub]:h-[1.125rem] data-[size=large]:[&_.tiptap-button-icon-sub]:w-[1.125rem]","data-[size=large]:[&_.tiptap-button-dropdown-arrows]:h-[0.875rem] data-[size=large]:[&_.tiptap-button-dropdown-arrows]:w-[0.875rem]","data-[size=large]:[&_.tiptap-button-dropdown-small]:h-3 data-[size=large]:[&_.tiptap-button-dropdown-small]:w-3","data-[size=small]:text-xs data-[size=small]:h-6 data-[size=small]:min-w-6 data-[size=small]:px-[0.3125rem] data-[size=small]:rounded-[var(--tt-radius-md,0.5rem)]","data-[size=small]:[&_.tiptap-button-icon]:h-[0.875rem] data-[size=small]:[&_.tiptap-button-icon]:w-[0.875rem]","data-[size=small]:[&_.tiptap-button-icon-sub]:h-[0.875rem] data-[size=small]:[&_.tiptap-button-icon-sub]:w-[0.875rem]","data-[size=small]:[&_.tiptap-button-dropdown-arrows]:h-[0.625rem] data-[size=small]:[&_.tiptap-button-dropdown-arrows]:w-[0.625rem]","data-[size=small]:[&_.tiptap-button-dropdown-small]:h-[0.5rem] data-[size=small]:[&_.tiptap-button-dropdown-small]:w-[0.5rem]","data-[weight=small]:w-6 data-[weight=small]:min-w-6 data-[weight=small]:px-0","has-[>svg]:gap-[0.125rem]");return !o||!r?J__namespace.default.createElement("button",y({className:ut(p,e),ref:i,"aria-label":a},s),t):J__namespace.default.createElement(D8,{delay:200},J__namespace.default.createElement(L8,y({className:ut(p,e),ref:i,"aria-label":a},s),t),J__namespace.default.createElement(F8,null,o,J__namespace.default.createElement(KQ,{shortcuts:c})))});wt.displayName="Button";var ga=J.forwardRef((a,n)=>{var s=a,{className:e,children:t,orientation:o="vertical"}=s,r=Q(s,["className","children","orientation"]);let i=ut("relative flex",o==="vertical"?"flex-col items-start justify-center min-w-max [&>button]:w-full [&>button]:flex":"flex-row items-center gap-[0.125rem]",e);return J__namespace.default.createElement("div",y({ref:n,className:i,"data-orientation":o,role:"group"},r),t)});ga.displayName="ButtonGroup";function BS(n){var a=n,{orientation:e="horizontal",size:t,style:o={}}=a,r=Q(a,["orientation","size","style"]);let s=y(y(y({},o),e==="horizontal"&&!t&&{flex:1}),t&&{width:e==="vertical"?"1px":t,height:e==="horizontal"?"1px":t});return J__namespace.default.createElement("div",F(y({},r),{style:s}))}var _c=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z",fill:"currentColor"}))});_c.displayName="ChevronDownIcon";function je(e){let{editor:t}=react$2.useCurrentEditor(),o=J.useMemo(()=>e||t,[e,t]);return react$2.useEditorState({editor:o,selector(n){return n.editor?{editor:n.editor,editorState:n.editor.state,canCommand:n.editor.can}:{editor:null,editorState:void 0,canCommand:void 0}}})||{editor:null}}var tK={default:"bg-white text-[color:rgba(52,55,60,0.64)] border border-[rgba(37,39,45,0.1)] dark:bg-black dark:text-[color:rgba(236,238,253,0.5)] dark:border-[rgba(238,238,246,0.11)] [&_.tiptap-badge-icon]:text-[rgba(52,55,60,0.64)] dark:[&_.tiptap-badge-icon]:text-[rgba(236,238,253,0.5)]",ghost:"bg-transparent text-[color:rgba(52,55,60,0.64)] border border-[rgba(37,39,45,0.1)] dark:text-[color:rgba(236,238,253,0.5)] dark:border-[rgba(238,238,246,0.11)] [&_.tiptap-badge-icon]:text-[rgba(52,55,60,0.64)] dark:[&_.tiptap-badge-icon]:text-[rgba(236,238,253,0.5)]",white:"bg-white text-[color:rgba(36,39,46,0.78)] border border-[rgba(37,39,45,0.1)] dark:bg-white dark:text-[color:rgba(247,247,253,0.64)] dark:border-[rgba(238,238,246,0.11)] [&_.tiptap-badge-icon]:text-[rgba(36,39,46,0.78)] dark:[&_.tiptap-badge-icon]:text-[rgba(247,247,253,0.64)]",gray:"bg-[rgba(15,22,36,0.05)] text-[color:rgba(52,55,60,0.64)] border border-[rgba(37,39,45,0.1)] dark:bg-[rgba(231,231,243,0.07)] dark:text-[color:rgba(236,238,253,0.5)] dark:border-[rgba(238,238,246,0.11)] [&_.tiptap-badge-icon]:text-[rgba(52,55,60,0.64)] dark:[&_.tiptap-badge-icon]:text-[rgba(236,238,253,0.5)]",green:"bg-[hsl(129,100%,92%)] text-[color:hsl(146,100%,24%)] border border-[color:hsl(133,98%,78%)] [&_.tiptap-badge-icon]:text-[hsl(146,100%,24%)] dark:bg-[hsl(144,100%,16%)] dark:text-[color:hsl(131,100%,86%)] dark:border-[color:hsl(146,98%,32%)] dark:[&_.tiptap-badge-icon]:text-[hsl(131,100%,86%)]"},oK={default:"",subdued:"opacity-80",emphasized:"font-semibold"},ir=J.forwardRef((d,l)=>{var c=d,{variant:e="default",size:t="default",appearance:o="default",trimText:r=false,className:n,style:a,children:s}=c,i=Q(c,["variant","size","appearance","trimText","className","style","children"]);let p=t==="small"?"h-4 min-w-4 px-[0.1875rem] text-[0.5625rem] rounded-[var(--tt-radius-xs,0.25rem)] [&_.tiptap-badge-icon]:h-[0.5rem] [&_.tiptap-badge-icon]:w-[0.5rem]":"h-5 min-w-5 px-1 text-[0.625rem] rounded-[var(--tt-radius-sm,0.375rem)] [&_.tiptap-badge-icon]:h-[0.625rem] [&_.tiptap-badge-icon]:w-[0.625rem]",f=ut("inline-flex items-center justify-center","leading-[1.15] font-bold","transition-[background,color,opacity]","duration-[var(--tt-transition-duration-default)]","ease-[var(--tt-transition-easing-default)]","border","[&_.tiptap-badge-text]:px-[0.125rem] [&_.tiptap-badge-text]:flex-1 [&_.tiptap-badge-text]:text-left",r&&"[&_.tiptap-badge-text]:truncate",tK[e],oK[o],p,n);return J__namespace.default.createElement("div",y({ref:l,className:f,"data-style":e,"data-size":t,"data-appearance":o,"data-text-trim":r?"on":"off",style:y({fontFeatureSettings:'"salt" on, "cv01" on'},a)},i),s)});ir.displayName="Badge";function aK({level:e,shortcutKeys:t=B8[e]}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:t}))}var z8=J.forwardRef((c,d)=>{var p=c,{editor:e,level:t,text:o,hideWhenUnavailable:r=false,onToggled:n,showShortcut:a=false,onClick:s,children:i}=p,l=Q(p,["editor","level","text","hideWhenUnavailable","onToggled","showShortcut","onClick","children"]);let{editor:f}=je(e),{isVisible:u,canToggle:g,isActive:m,handleToggle:v,label:h,Icon:b,shortcutKeys:x}=HS({editor:f,level:t,hideWhenUnavailable:r,onToggled:n}),w=J.useCallback(C=>{s==null||s(C),!C.defaultPrevented&&v();},[v,s]);return u?J__namespace.default.createElement(wt,F(y({type:"button","data-style":"ghost","data-active-state":m?"on":"off",role:"button",tabIndex:-1,disabled:!g,"data-disabled":!g,"aria-label":h,"aria-pressed":m,tooltip:h,onClick:w},l),{ref:d}),i!=null?i:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(b,{className:"tiptap-button-icon"}),o&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},o),a&&J__namespace.default.createElement(aK,{level:t,shortcutKeys:x}))):null});z8.displayName="HeadingButton";var H8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M21.0001 10C21.0001 9.63121 20.7971 9.29235 20.472 9.11833C20.1468 8.94431 19.7523 8.96338 19.4454 9.16795L16.4454 11.168C15.9859 11.4743 15.8617 12.0952 16.1681 12.5547C16.4744 13.0142 17.0953 13.1384 17.5548 12.8321L19.0001 11.8685V18C19.0001 18.5523 19.4478 19 20.0001 19C20.5524 19 21.0001 18.5523 21.0001 18V10Z",fill:"currentColor"}))});H8.displayName="HeadingOneIcon";var U8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M22.0001 12C22.0001 10.7611 21.1663 9.79297 20.0663 9.42632C18.9547 9.05578 17.6171 9.28724 16.4001 10.2C15.9582 10.5314 15.8687 11.1582 16.2001 11.6C16.5314 12.0418 17.1582 12.1314 17.6001 11.8C18.383 11.2128 19.0455 11.1942 19.4338 11.3237C19.8339 11.457 20.0001 11.7389 20.0001 12C20.0001 12.4839 19.8554 12.7379 19.6537 12.9481C19.4275 13.1837 19.1378 13.363 18.7055 13.6307C18.6313 13.6767 18.553 13.7252 18.4701 13.777C17.9572 14.0975 17.3128 14.5261 16.8163 15.2087C16.3007 15.9177 16.0001 16.8183 16.0001 18C16.0001 18.5523 16.4478 19 17.0001 19H21.0001C21.5523 19 22.0001 18.5523 22.0001 18C22.0001 17.4477 21.5523 17 21.0001 17H18.131C18.21 16.742 18.3176 16.5448 18.4338 16.385C18.6873 16.0364 19.0429 15.7775 19.5301 15.473C19.5898 15.4357 19.6536 15.3966 19.7205 15.3556C20.139 15.0992 20.6783 14.7687 21.0964 14.3332C21.6447 13.7621 22.0001 13.0161 22.0001 12Z",fill:"currentColor"}))});U8.displayName="HeadingTwoIcon";var _8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4608 11.2169C19.1135 11.0531 18.5876 11.0204 18.0069 11.3619C17.5309 11.642 16.918 11.4831 16.638 11.007C16.358 10.531 16.5169 9.91809 16.9929 9.63807C18.1123 8.97962 19.3364 8.94691 20.314 9.40808C21.2839 9.86558 21.9999 10.818 21.9999 12C21.9999 12.7957 21.6838 13.5587 21.1212 14.1213C20.5586 14.6839 19.7956 15 18.9999 15C18.4476 15 17.9999 14.5523 17.9999 14C17.9999 13.4477 18.4476 13 18.9999 13C19.2651 13 19.5195 12.8947 19.707 12.7071C19.8946 12.5196 19.9999 12.2652 19.9999 12C19.9999 11.6821 19.8159 11.3844 19.4608 11.2169Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0001 14C18.0001 13.4477 18.4478 13 19.0001 13C19.7957 13 20.5588 13.3161 21.1214 13.8787C21.684 14.4413 22.0001 15.2043 22.0001 16C22.0001 17.2853 21.2767 18.3971 20.1604 18.8994C19.0257 19.41 17.642 19.2315 16.4001 18.3C15.9582 17.9686 15.8687 17.3418 16.2001 16.9C16.5314 16.4582 17.1582 16.3686 17.6001 16.7C18.3581 17.2685 18.9744 17.24 19.3397 17.0756C19.7234 16.9029 20.0001 16.5147 20.0001 16C20.0001 15.7348 19.8947 15.4804 19.7072 15.2929C19.5196 15.1054 19.2653 15 19.0001 15C18.4478 15 18.0001 14.5523 18.0001 14Z",fill:"currentColor"}))});_8.displayName="HeadingThreeIcon";var j8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M17 9C17.5523 9 18 9.44772 18 10V13H20V10C20 9.44772 20.4477 9 21 9C21.5523 9 22 9.44772 22 10V18C22 18.5523 21.5523 19 21 19C20.4477 19 20 18.5523 20 18V15H17C16.4477 15 16 14.5523 16 14V10C16 9.44772 16.4477 9 17 9Z",fill:"currentColor"}))});j8.displayName="HeadingFourIcon";var W8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M16 10C16 9.44772 16.4477 9 17 9H21C21.5523 9 22 9.44772 22 10C22 10.5523 21.5523 11 21 11H18V12H18.3C20.2754 12 22 13.4739 22 15.5C22 17.5261 20.2754 19 18.3 19C17.6457 19 17.0925 18.8643 16.5528 18.5944C16.0588 18.3474 15.8586 17.7468 16.1055 17.2528C16.3525 16.7588 16.9532 16.5586 17.4472 16.8056C17.7074 16.9357 17.9542 17 18.3 17C19.3246 17 20 16.2739 20 15.5C20 14.7261 19.3246 14 18.3 14H17C16.4477 14 16 13.5523 16 13L16 12.9928V10Z",fill:"currentColor"}))});W8.displayName="HeadingFiveIcon";var K8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 9.29289C21.0976 9.68342 21.0976 10.3166 20.7071 10.7071C19.8392 11.575 19.2179 12.2949 18.7889 13.0073C18.8587 13.0025 18.929 13 19 13C20.6569 13 22 14.3431 22 16C22 17.6569 20.6569 19 19 19C17.3431 19 16 17.6569 16 16C16 14.6007 16.2837 13.4368 16.8676 12.3419C17.4384 11.2717 18.2728 10.3129 19.2929 9.29289C19.6834 8.90237 20.3166 8.90237 20.7071 9.29289ZM19 17C18.4477 17 18 16.5523 18 16C18 15.4477 18.4477 15 19 15C19.5523 15 20 15.4477 20 16C20 16.5523 19.5523 17 19 17Z",fill:"currentColor"}))});K8.displayName="HeadingSixIcon";var Z8={1:H8,2:U8,3:_8,4:j8,5:W8,6:K8},B8={1:"ctrl+alt+1",2:"ctrl+alt+2",3:"ctrl+alt+3",4:"ctrl+alt+4",5:"ctrl+alt+5",6:"ctrl+alt+6"};function T0(e,t,o=true){return !e||!e.isEditable||!fa("heading",e)||wr(e,["image"])?false:o?E0(e,["paragraph","heading","bulletList","orderedList","taskList","blockquote","codeBlock"])?t?e.can().setNode("heading",{level:t})||e.can().clearNodes():e.can().setNode("heading")||e.can().clearNodes():false:t?e.can().setNode("heading",{level:t}):e.can().setNode("heading")}function Ym(e,t){return !e||!e.isEditable?false:Array.isArray(t)?t.some(o=>e.isActive("heading",{level:o})):t?e.isActive("heading",{level:t}):e.isActive("heading")}function gK(e,t){var n,a,s;if(!e||!e.isEditable)return false;let o=Array.isArray(t)?t:[t],r=o.find(i=>T0(e,i));if(!r)return false;try{let i=e.view,l=i.state,d=l.tr;if(l.selection.empty||l.selection instanceof state.TextSelection){let g=(n=I0({editor:e,node:l.selection.$anchor.node(1)}))==null?void 0:n.pos;if(!Os(g))return !1;d=d.setSelection(state.NodeSelection.create(l.doc,g)),i.dispatch(d),l=i.state;}let c=l.selection,p=e.chain().focus();if(c instanceof state.NodeSelection){let g=(a=c.node.firstChild)==null?void 0:a.firstChild,m=(s=c.node.lastChild)==null?void 0:s.lastChild,v=g?c.from+g.nodeSize:c.from+1,h=m?c.to-m.nodeSize:c.to-1,b=l.doc.resolve(v),x=l.doc.resolve(h);p=p.setTextSelection(state.TextSelection.between(b,x)).clearNodes();}return (o.some(g=>e.isActive("heading",{level:g}))?p.setNode("paragraph"):p.setNode("heading",{level:r})).run(),e.chain().focus().selectTextblockEnd().run(),!0}catch(i){return false}}function Y8(e){let{editor:t,level:o,hideWhenUnavailable:r}=e;return !t||!t.isEditable||!fa("heading",t)?false:r&&!t.isActive("code")?Array.isArray(o)?o.some(n=>T0(t,n)):T0(t,o):true}function HS(e){let{editor:t,level:o,hideWhenUnavailable:r=false,onToggled:n}=e,{editor:a}=je(t),[s,i]=J.useState(true),l=T0(a,o),d=Ym(a,o);J.useEffect(()=>{if(!a)return;let p=()=>{i(Y8({editor:a,level:o,hideWhenUnavailable:r}));};return p(),a.on("selectionUpdate",p),()=>{a.off("selectionUpdate",p);}},[a,o,r]);let c=J.useCallback(()=>{if(!a)return false;let p=gK(a,o);return p&&(n==null||n()),p},[a,o,n]);return {isVisible:s,isActive:d,handleToggle:c,canToggle:l,label:`Heading ${o}`,shortcutKeys:B8[o],Icon:Z8[o]}}function Jm(t){var e=Q(t,[]);return J__namespace.default.createElement(Go__namespace.Root,y({modal:false},e))}function _S(t){var e=Q(t,[]);return J__namespace.default.createElement(Go__namespace.Portal,y({},e))}var Vc=J.forwardRef((o,t)=>{var e=Q(o,[]);return J__namespace.default.createElement(Go__namespace.Trigger,y({ref:t},e))});Vc.displayName=Go__namespace.Trigger.displayName;var Xm=Go__namespace.Item;var hK=J.forwardRef((n,r)=>{var a=n,{className:e,portal:t=true}=a,o=Q(a,["className","portal"]);let s=J__namespace.default.createElement(Go__namespace.SubContent,y({ref:r,className:ut("z-50 outline-none","origin-[var(--radix-dropdown-menu-content-transform-origin)]","max-h-[var(--radix-dropdown-menu-content-available-height)]","bg-white text-[color:rgba(36,39,46,0.78)] border border-[rgba(15,22,36,0.05)]","dark:bg-[#19191A] dark:text-[color:rgba(247,247,253,0.64)] dark:border-[rgba(232,232,253,0.05)]","rounded-[var(--tt-radius-lg,0.75rem)] shadow-[0_10px_15px_-3px_rgb(23,23,23,0.1)]","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","[&>*]:max-h-[var(--radix-dropdown-menu-content-available-height)]",e)},o));return t?J__namespace.default.createElement(_S,y({},typeof t=="object"?t:{}),s):s});hK.displayName=Go__namespace.SubContent.displayName;var jc=J.forwardRef((a,n)=>{var s=a,{className:e,sideOffset:t=4,portal:o=false}=s,r=Q(s,["className","sideOffset","portal"]);let i=J__namespace.default.createElement(Go__namespace.Content,y({ref:n,sideOffset:t,onCloseAutoFocus:l=>l.preventDefault(),className:ut("z-50 outline-none","origin-[var(--radix-dropdown-menu-content-transform-origin)]","max-h-[var(--radix-dropdown-menu-content-available-height)]","bg-white text-[color:rgba(36,39,46,0.78)] border border-[rgba(15,22,36,0.05)]","dark:bg-[#19191A] dark:text-[color:rgba(247,247,253,0.64)] dark:border-[rgba(232,232,253,0.05)]","rounded-[var(--tt-radius-lg,0.75rem)] shadow-[0_10px_15px_-3px_rgb(23,23,23,0.1)]","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","[&>*]:max-h-[var(--radix-dropdown-menu-content-available-height)]",e)},r));return o?J__namespace.default.createElement(_S,y({},typeof o=="object"?o:{}),i):i});jc.displayName=Go__namespace.Content.displayName;var Us=J.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.default.createElement("div",y({ref:o,className:ut("relative flex min-w-0 flex-col items-center","rounded-[calc(0.375rem+var(--tt-radius-lg,0.75rem))]","border border-[rgba(15,22,36,0.05)] bg-white","dark:border-[rgba(231,231,243,0.07)] dark:bg-[#19191A]","shadow-[0_16px_48px_0_rgba(17,24,39,0.04),0_12px_24px_0_rgba(17,24,39,0.04),0_6px_8px_0_rgba(17,24,39,0.02),0_2px_3px_0_rgba(17,24,39,0.02)] outline-none bg-clip-border",e)},t))});Us.displayName="Card";var vK=J.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.default.createElement("div",y({ref:o,className:ut("flex w-full items-center justify-between","border-b border-[rgba(15,22,36,0.05)]","dark:border-[rgba(231,231,243,0.07)]","px-1.5 py-1.5",e)},t))});vK.displayName="CardHeader";var _s=J.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.default.createElement("div",y({ref:o,className:ut("w-full flex-1 overflow-y-auto px-1.5 py-1.5",e)},t))});_s.displayName="CardBody";var qc=J.forwardRef((n,r)=>{var a=n,{className:e,orientation:t="vertical"}=a,o=Q(a,["className","orientation"]);return J__namespace.default.createElement("div",y({ref:r,"data-orientation":t,className:ut("relative flex min-w-max",t==="vertical"?"flex-col justify-center":"flex-row items-center gap-1",e)},o))});qc.displayName="CardItemGroup";var yK=J.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.default.createElement("div",y({ref:o,className:ut("px-2 pb-1 pt-3 text-sm font-semibold capitalize","text-[color:rgba(30,32,36,0.95)]","dark:text-[color:rgba(253,253,253,0.88)]",e)},t))});yK.displayName="CardGroupLabel";var bK=J.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.default.createElement("div",y({ref:o,className:ut("w-full px-1.5 py-1.5",e)},t))});bK.displayName="CardFooter";var X8=J.forwardRef((i,s)=>{var l=i,{editor:e,levels:t=[1,2,3,4,5,6],hideWhenUnavailable:o=false,portal:r=false,onOpenChange:n}=l,a=Q(l,["editor","levels","hideWhenUnavailable","portal","onOpenChange"]);let{editor:d}=je(e),[c,p]=J.useState(false),{isVisible:f,isActive:u,canToggle:g,Icon:m}=VS({editor:d,levels:t,hideWhenUnavailable:o}),v=J.useCallback(h=>{!d||!g||(p(h),n==null||n(h));},[g,d,n]);return f?J__namespace.default.createElement(Jm,{modal:true,open:c,onOpenChange:v},J__namespace.default.createElement(Vc,{asChild:true},J__namespace.default.createElement(wt,F(y({type:"button","data-style":"ghost","data-active-state":u?"on":"off",role:"button",tabIndex:-1,disabled:!g,"data-disabled":!g,"aria-label":"Format text as heading","aria-pressed":u,tooltip:"Heading"},a),{ref:s}),J__namespace.default.createElement(m,{className:"tiptap-button-icon"}),J__namespace.default.createElement(_c,{className:"tiptap-button-dropdown-small"}))),J__namespace.default.createElement(jc,{align:"start",portal:r},J__namespace.default.createElement(Us,null,J__namespace.default.createElement(_s,null,J__namespace.default.createElement(ga,null,t.map(h=>J__namespace.default.createElement(Xm,{key:`heading-${h}`,asChild:true},J__namespace.default.createElement(z8,{editor:d,level:h,text:`Heading ${h}`,showTooltip:false})))))))):null});X8.displayName="HeadingDropdownMenu";var $8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M6 3C6.55228 3 7 3.44772 7 4V11H17V4C17 3.44772 17.4477 3 18 3C18.5523 3 19 3.44772 19 4V20C19 20.5523 18.5523 21 18 21C17.4477 21 17 20.5523 17 20V13H7V20C7 20.5523 6.55228 21 6 21C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3Z",fill:"currentColor"}))});$8.displayName="HeadingIcon";function AK(e,t=[1,2,3,4,5,6]){if(!(!e||!e.isEditable))return t.find(o=>Ym(e,o))}function VS(e){let{editor:t,levels:o=[1,2,3,4,5,6],hideWhenUnavailable:r=false}=e||{},{editor:n}=je(t),[a,s]=J.useState(true),i=AK(n,o),l=Ym(n),d=T0(n);return J.useEffect(()=>{if(!n)return;let c=()=>{s(Y8({editor:n,hideWhenUnavailable:r,level:o}));};return c(),n.on("selectionUpdate",c),()=>{n.off("selectionUpdate",c);}},[n,r,o]),{isVisible:a,activeLevel:i,isActive:l,canToggle:d,levels:o,label:"Heading",Icon:i?Z8[i]:$8}}function EK({shortcutKeys:e=$m}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:e}))}var R8=J.forwardRef((c,d)=>{var p=c,{editor:e,text:t,hideWhenUnavailable:o=false,onInserted:r,showShortcut:n=false,onClick:a,icon:s,children:i}=p,l=Q(p,["editor","text","hideWhenUnavailable","onInserted","showShortcut","onClick","icon","children"]);let{editor:f}=je(e),{isVisible:u,canInsert:g,handleImage:m,label:v,isActive:h,shortcutKeys:b,Icon:x}=qS({editor:f,hideWhenUnavailable:o,onInserted:r}),w=J.useCallback(A=>{a==null||a(A),!A.defaultPrevented&&m();},[m,a]);if(!u)return null;let C=s!=null?s:x;return J__namespace.default.createElement(wt,F(y({type:"button","data-style":"ghost","data-active-state":h?"on":"off",role:"button",tabIndex:-1,disabled:!g,"data-disabled":!g,"aria-label":v,"aria-pressed":h,tooltip:v,onClick:w},l),{ref:d}),i!=null?i:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(C,{className:"tiptap-button-icon"}),t&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},t),n&&J__namespace.default.createElement(EK,{shortcutKeys:b})))});R8.displayName="ImageUploadButton";var e7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 2C20 1.44772 19.5523 1 19 1C18.4477 1 18 1.44772 18 2V4H16C15.4477 4 15 4.44772 15 5C15 5.55228 15.4477 6 16 6H18V8C18 8.55228 18.4477 9 19 9C19.5523 9 20 8.55228 20 8V6H22C22.5523 6 23 5.55228 23 5C23 4.44772 22.5523 4 22 4H20V2ZM5 4C4.73478 4 4.48043 4.10536 4.29289 4.29289C4.10536 4.48043 4 4.73478 4 5V19C4 19.2652 4.10536 19.5196 4.29289 19.7071C4.48043 19.8946 4.73478 20 5 20H5.58579L14.379 11.2068C14.9416 10.6444 15.7045 10.3284 16.5 10.3284C17.2955 10.3284 18.0584 10.6444 18.621 11.2068L20 12.5858V12C20 11.4477 20.4477 11 21 11C21.5523 11 22 11.4477 22 12V14.998C22 14.9994 22 15.0007 22 15.002V19C22 19.7957 21.6839 20.5587 21.1213 21.1213C20.5587 21.6839 19.7957 22 19 22H6.00219C6.00073 22 5.99927 22 5.99781 22H5C4.20435 22 3.44129 21.6839 2.87868 21.1213C2.31607 20.5587 2 19.7957 2 19V5C2 4.20435 2.31607 3.44129 2.87868 2.87868C3.44129 2.31607 4.20435 2 5 2H12C12.5523 2 13 2.44772 13 3C13 3.55228 12.5523 4 12 4H5ZM8.41422 20H19C19.2652 20 19.5196 19.8946 19.7071 19.7071C19.8946 19.5196 20 19.2652 20 19V15.4142L17.207 12.6212C17.0195 12.4338 16.7651 12.3284 16.5 12.3284C16.2349 12.3284 15.9806 12.4337 15.7931 12.6211L8.41422 20ZM6.87868 6.87868C7.44129 6.31607 8.20435 6 9 6C9.79565 6 10.5587 6.31607 11.1213 6.87868C11.6839 7.44129 12 8.20435 12 9C12 9.79565 11.6839 10.5587 11.1213 11.1213C10.5587 11.6839 9.79565 12 9 12C8.20435 12 7.44129 11.6839 6.87868 11.1213C6.31607 10.5587 6 9.79565 6 9C6 8.20435 6.31607 7.44129 6.87868 6.87868ZM9 8C8.73478 8 8.48043 8.10536 8.29289 8.29289C8.10536 8.48043 8 8.73478 8 9C8 9.26522 8.10536 9.51957 8.29289 9.70711C8.48043 9.89464 8.73478 10 9 10C9.26522 10 9.51957 9.89464 9.70711 9.70711C9.89464 9.51957 10 9.26522 10 9C10 8.73478 9.89464 8.48043 9.70711 8.29289C9.51957 8.10536 9.26522 8 9 8Z",fill:"currentColor"}))});e7.displayName="ImagePlusIcon";var $m="mod+shift+i";function t7(e){return !e||!e.isEditable||!Hs(e,"imageUpload")?false:e.can().insertContent({type:"imageUpload"})}function zK(e){return !e||!e.isEditable?false:e.isActive("imageUpload")}function BK(e){if(!e||!e.isEditable||!t7(e))return false;try{return e.chain().focus().insertContent({type:"imageUpload"}).run()}catch(t){return false}}function OK(e){let{editor:t,hideWhenUnavailable:o}=e;return !t||!t.isEditable||!Hs(t,"imageUpload")?false:o&&!t.isActive("code")?t7(t):true}function qS(e){let{editor:t,hideWhenUnavailable:o=false,onInserted:r}=e||{},{editor:n}=je(t),a=Xa(),[s,i]=J.useState(true),l=t7(n),d=zK(n);J.useEffect(()=>{if(!n)return;let p=()=>{i(OK({editor:n,hideWhenUnavailable:o}));};return p(),n.on("selectionUpdate",p),()=>{n.off("selectionUpdate",p);}},[n,o]);let c=J.useCallback(()=>{if(!n)return false;let p=BK(n);return p&&(r==null||r()),p},[n,r]);return reactHotkeysHook.useHotkeys($m,p=>{p.preventDefault(),c();},{enabled:s&&l,enableOnContentEditable:!a,enableOnFormTags:true}),{isVisible:s,isActive:d,handleImage:c,canInsert:l,label:"Add image",shortcutKeys:$m,Icon:e7}}function UK({type:e,shortcutKeys:t=r7[e]}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:t}))}var o7=J.forwardRef((c,d)=>{var p=c,{editor:e,type:t,text:o,hideWhenUnavailable:r=false,onToggled:n,showShortcut:a=false,onClick:s,children:i}=p,l=Q(p,["editor","type","text","hideWhenUnavailable","onToggled","showShortcut","onClick","children"]);let{editor:f}=je(e),{isVisible:u,canToggle:g,isActive:m,handleToggle:v,label:h,shortcutKeys:b,Icon:x}=QS({editor:f,type:t,hideWhenUnavailable:r,onToggled:n}),w=J.useCallback(C=>{s==null||s(C),!C.defaultPrevented&&v();},[v,s]);return u?J__namespace.default.createElement(wt,F(y({type:"button","data-style":"ghost","data-active-state":m?"on":"off",role:"button",tabIndex:-1,disabled:!g,"data-disabled":!g,"aria-label":h,"aria-pressed":m,tooltip:h,onClick:w},l),{ref:d}),i!=null?i:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(x,{className:"tiptap-button-icon"}),o&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},o),a&&J__namespace.default.createElement(UK,{type:t,shortcutKeys:b}))):null});o7.displayName="ListButton";var F0=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 6C7 5.44772 7.44772 5 8 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H8C7.44772 7 7 6.55228 7 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 12C7 11.4477 7.44772 11 8 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H8C7.44772 13 7 12.5523 7 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 18C7 17.4477 7.44772 17 8 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H8C7.44772 19 7 18.5523 7 18Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H3.01C3.56228 5 4.01 5.44772 4.01 6C4.01 6.55228 3.56228 7 3.01 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H3.01C3.56228 11 4.01 11.4477 4.01 12C4.01 12.5523 3.56228 13 3.01 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H3.01C3.56228 17 4.01 17.4477 4.01 18C4.01 18.5523 3.56228 19 3.01 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor"}))});F0.displayName="ListIcon";var Wc=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 6C9 5.44772 9.44772 5 10 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H10C9.44772 7 9 6.55228 9 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 12C9 11.4477 9.44772 11 10 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H10C9.44772 13 9 12.5523 9 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 18C9 17.4477 9.44772 17 10 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H10C9.44772 19 9 18.5523 9 18Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6C3 5.44772 3.44772 5 4 5H5C5.55228 5 6 5.44772 6 6V10C6 10.5523 5.55228 11 5 11C4.44772 11 4 10.5523 4 10V7C3.44772 7 3 6.55228 3 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 10C3 9.44772 3.44772 9 4 9H6C6.55228 9 7 9.44772 7 10C7 10.5523 6.55228 11 6 11H4C3.44772 11 3 10.5523 3 10Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.82219 13.0431C6.54543 13.4047 6.99997 14.1319 6.99997 15C6.99997 15.5763 6.71806 16.0426 6.48747 16.35C6.31395 16.5814 6.1052 16.8044 5.91309 17H5.99997C6.55226 17 6.99997 17.4477 6.99997 18C6.99997 18.5523 6.55226 19 5.99997 19H3.99997C3.44769 19 2.99997 18.5523 2.99997 18C2.99997 17.4237 3.28189 16.9575 3.51247 16.65C3.74323 16.3424 4.03626 16.0494 4.26965 15.8161C4.27745 15.8083 4.2852 15.8006 4.29287 15.7929C4.55594 15.5298 4.75095 15.3321 4.88748 15.15C4.96287 15.0495 4.99021 14.9922 4.99911 14.9714C4.99535 14.9112 4.9803 14.882 4.9739 14.8715C4.96613 14.8588 4.95382 14.845 4.92776 14.8319C4.87723 14.8067 4.71156 14.7623 4.44719 14.8944C3.95321 15.1414 3.35254 14.9412 3.10555 14.4472C2.85856 13.9533 3.05878 13.3526 3.55276 13.1056C4.28839 12.7378 5.12272 12.6934 5.82219 13.0431Z",fill:"currentColor"}))});Wc.displayName="ListOrderedIcon";var Qc=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 4.89543 2.89543 4 4 4H8C9.10457 4 10 4.89543 10 6V10C10 11.1046 9.10457 12 8 12H4C2.89543 12 2 11.1046 2 10V6ZM8 6H4V10H8V6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.70711 14.2929C10.0976 14.6834 10.0976 15.3166 9.70711 15.7071L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071L2.29289 17.7071C1.90237 17.3166 1.90237 16.6834 2.29289 16.2929C2.68342 15.9024 3.31658 15.9024 3.70711 16.2929L5 17.5858L8.29289 14.2929C8.68342 13.9024 9.31658 13.9024 9.70711 14.2929Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6C12 5.44772 12.4477 5 13 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H13C12.4477 7 12 6.55228 12 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 12C12 11.4477 12.4477 11 13 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H13C12.4477 13 12 12.5523 12 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18C12 17.4477 12.4477 17 13 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H13C12.4477 19 12 18.5523 12 18Z",fill:"currentColor"}))});Qc.displayName="ListTodoIcon";var n7={bulletList:F0,orderedList:Wc,taskList:Qc},KK={bulletList:"Bullet List",orderedList:"Ordered List",taskList:"Task List"},r7={bulletList:"mod+shift+8",orderedList:"mod+shift+7",taskList:"mod+shift+9"};function Kc(e,t,o=true){if(!e||!e.isEditable||!fa(t,e)||wr(e,["image"]))return false;if(!o)switch(t){case "bulletList":return e.can().toggleBulletList();case "orderedList":return e.can().toggleOrderedList();case "taskList":return e.can().toggleList("taskList","taskItem");default:return false}if(!E0(e,["paragraph","heading","bulletList","orderedList","taskList","blockquote","codeBlock"]))return false;switch(t){case "bulletList":return e.can().toggleBulletList()||e.can().clearNodes();case "orderedList":return e.can().toggleOrderedList()||e.can().clearNodes();case "taskList":return e.can().toggleList("taskList","taskItem")||e.can().clearNodes();default:return false}}function Rm(e,t){if(!e||!e.isEditable)return false;switch(t){case "bulletList":return e.isActive("bulletList");case "orderedList":return e.isActive("orderedList");case "taskList":return e.isActive("taskList");default:return false}}function ZK(e,t){var o,r,n;if(!e||!e.isEditable||!Kc(e,t))return false;try{let a=e.view,s=a.state,i=s.tr;if(s.selection.empty||s.selection instanceof state.TextSelection){let c=(o=I0({editor:e,node:s.selection.$anchor.node(1)}))==null?void 0:o.pos;if(!Os(c))return !1;i=i.setSelection(state.NodeSelection.create(s.doc,c)),a.dispatch(i),s=a.state;}let l=s.selection,d=e.chain().focus();if(l instanceof state.NodeSelection){let c=(r=l.node.firstChild)==null?void 0:r.firstChild,p=(n=l.node.lastChild)==null?void 0:n.lastChild,f=c?l.from+c.nodeSize:l.from+1,u=p?l.to-p.nodeSize:l.to-1,g=s.doc.resolve(f),m=s.doc.resolve(u);d=d.setTextSelection(state.TextSelection.between(g,m)).clearNodes();}if(e.isActive(t))d.liftListItem("listItem").lift("bulletList").lift("orderedList").lift("taskList").run();else {let p={bulletList:()=>d.toggleBulletList(),orderedList:()=>d.toggleOrderedList(),taskList:()=>d.toggleList("taskList","taskItem")}[t];if(!p)return !1;p().run();}return e.chain().focus().selectTextblockEnd().run(),!0}catch(a){return false}}function YK(e){let{editor:t,type:o,hideWhenUnavailable:r}=e;return !t||!t.isEditable||!fa(o,t)?false:r&&!t.isActive("code")?Kc(t,o):true}function QS(e){let{editor:t,type:o,hideWhenUnavailable:r=false,onToggled:n}=e,{editor:a}=je(t),[s,i]=J.useState(true),l=Kc(a,o),d=Rm(a,o);J.useEffect(()=>{if(!a)return;let p=()=>{i(YK({editor:a,type:o,hideWhenUnavailable:r}));};return p(),a.on("selectionUpdate",p),()=>{a.off("selectionUpdate",p);}},[a,o,r]);let c=J.useCallback(()=>{if(!a)return false;let p=ZK(a,o);return p&&(n==null||n()),p},[a,o,n]);return {isVisible:s,isActive:d,handleToggle:c,canToggle:l,label:KK[o],shortcutKeys:r7[o],Icon:n7[o]}}var RK=[{label:"Bullet List",type:"bulletList",icon:F0},{label:"Ordered List",type:"orderedList",icon:Wc},{label:"Task List",type:"taskList",icon:Qc}];function eZ(e,t){return !e||!e.isEditable?false:t.some(o=>Kc(e,o))}function tZ(e,t){return !e||!e.isEditable?false:t.some(o=>Rm(e,o))}function oZ(e){return RK.filter(t=>!t.type||e.includes(t.type))}function rZ(e){let{editor:t,hideWhenUnavailable:o,listInSchema:r,canToggleAny:n}=e;return !r||!t?false:o&&!t.isActive("code")?n:true}function nZ(e,t){if(!(!e||!e.isEditable))return t.find(o=>Rm(e,o))}function YS(e){let{editor:t,types:o=["bulletList","orderedList","taskList"],hideWhenUnavailable:r=false}=e||{},{editor:n}=je(t),[a,s]=J.useState(true),i=o.some(u=>fa(u,n)),l=J.useMemo(()=>oZ(o),[o]),d=eZ(n,o),c=tZ(n,o),p=nZ(n,o),f=l.find(u=>u.type===p);return J.useEffect(()=>{if(!n)return;let u=()=>{s(rZ({editor:n,hideWhenUnavailable:r,listInSchema:i,canToggleAny:d}));};return u(),n.on("selectionUpdate",u),()=>{n.off("selectionUpdate",u);}},[d,n,r,i,o]),{isVisible:a,activeType:p,isActive:c,canToggle:d,types:o,filteredLists:l,label:"List",Icon:f?n7[f.type]:F0}}function JS(s){var i=s,{editor:e,types:t=["bulletList","orderedList","taskList"],hideWhenUnavailable:o=false,onOpenChange:r,portal:n=false}=i,a=Q(i,["editor","types","hideWhenUnavailable","onOpenChange","portal"]);let{editor:l}=je(e),[d,c]=J.useState(false),{filteredLists:p,canToggle:f,isActive:u,isVisible:g,Icon:m}=YS({editor:l,types:t,hideWhenUnavailable:o}),v=J.useCallback(h=>{c(h),r==null||r(h);},[r]);return g?J__namespace.default.createElement(Jm,{open:d,onOpenChange:v},J__namespace.default.createElement(Vc,{asChild:true},J__namespace.default.createElement(wt,y({type:"button","data-style":"ghost","data-active-state":u?"on":"off",role:"button",tabIndex:-1,disabled:!f,"data-disabled":!f,"aria-label":"List options",tooltip:"List"},a),J__namespace.default.createElement(m,{className:"tiptap-button-icon"}),J__namespace.default.createElement(_c,{className:"tiptap-button-dropdown-small"}))),J__namespace.default.createElement(jc,{align:"start",portal:n},J__namespace.default.createElement(Us,null,J__namespace.default.createElement(_s,null,J__namespace.default.createElement(ga,null,p.map(h=>J__namespace.default.createElement(Xm,{key:h.type,asChild:true},J__namespace.default.createElement(o7,{editor:l,type:h.type,text:h.label,showTooltip:false})))))))):null}function dZ({shortcutKeys:e=s7}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:e}))}var a7=J.forwardRef((d,l)=>{var c=d,{editor:e,text:t,hideWhenUnavailable:o=false,onToggled:r,showShortcut:n=false,onClick:a,children:s}=c,i=Q(c,["editor","text","hideWhenUnavailable","onToggled","showShortcut","onClick","children"]);let{editor:p}=je(e),{isVisible:f,canToggle:u,isActive:g,handleToggle:m,label:v,shortcutKeys:h,Icon:b}=XS({editor:p,hideWhenUnavailable:o,onToggled:r}),x=J.useCallback(w=>{a==null||a(w),!w.defaultPrevented&&m();},[m,a]);return f?J__namespace.default.createElement(wt,F(y({type:"button","data-style":"ghost","data-active-state":g?"on":"off",role:"button",tabIndex:-1,disabled:!u,"data-disabled":!u,"aria-label":v,"aria-pressed":g,tooltip:"Blockquote",onClick:x},i),{ref:l}),s!=null?s:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(b,{className:"tiptap-button-icon"}),t&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},t),n&&J__namespace.default.createElement(dZ,{shortcutKeys:h}))):null});a7.displayName="BlockquoteButton";var i7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 6C8 5.44772 8.44772 5 9 5H16C16.5523 5 17 5.44772 17 6C17 6.55228 16.5523 7 16 7H9C8.44772 7 8 6.55228 8 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C4.55228 3 5 3.44772 5 4L5 20C5 20.5523 4.55229 21 4 21C3.44772 21 3 20.5523 3 20L3 4C3 3.44772 3.44772 3 4 3Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 12C8 11.4477 8.44772 11 9 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H9C8.44772 13 8 12.5523 8 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 18C8 17.4477 8.44772 17 9 17H16C16.5523 17 17 17.4477 17 18C17 18.5523 16.5523 19 16 19H9C8.44772 19 8 18.5523 8 18Z",fill:"currentColor"}))});i7.displayName="BlockquoteIcon";var s7="mod+shift+b";function l7(e,t=true){return !e||!e.isEditable||!fa("blockquote",e)||wr(e,["image"])?false:t?E0(e,["paragraph","heading","bulletList","orderedList","taskList","blockquote","codeBlock"])?e.can().toggleWrap("blockquote")||e.can().clearNodes():false:e.can().toggleWrap("blockquote")}function fZ(e){var t,o,r;if(!e||!e.isEditable||!l7(e))return false;try{let n=e.view,a=n.state,s=a.tr;if(a.selection.empty||a.selection instanceof state.TextSelection){let c=(t=I0({editor:e,node:a.selection.$anchor.node(1)}))==null?void 0:t.pos;if(!Os(c))return !1;s=s.setSelection(state.NodeSelection.create(a.doc,c)),n.dispatch(s),a=n.state;}let i=a.selection,l=e.chain().focus();if(i instanceof state.NodeSelection){let c=(o=i.node.firstChild)==null?void 0:o.firstChild,p=(r=i.node.lastChild)==null?void 0:r.lastChild,f=c?i.from+c.nodeSize:i.from+1,u=p?i.to-p.nodeSize:i.to-1,g=a.doc.resolve(f),m=a.doc.resolve(u);l=l.setTextSelection(state.TextSelection.between(g,m)).clearNodes();}return (e.isActive("blockquote")?l.lift("blockquote"):l.wrapIn("blockquote")).run(),e.chain().focus().selectTextblockEnd().run(),!0}catch(n){return false}}function gZ(e){let{editor:t,hideWhenUnavailable:o}=e;return !t||!t.isEditable||!fa("blockquote",t)?false:o&&!t.isActive("code")?l7(t):true}function XS(e){let{editor:t,hideWhenUnavailable:o=false,onToggled:r}=e||{},{editor:n}=je(t),[a,s]=J.useState(true),i=l7(n),l=(n==null?void 0:n.isActive("blockquote"))||false;J.useEffect(()=>{if(!n)return;let c=()=>{s(gZ({editor:n,hideWhenUnavailable:o}));};return c(),n.on("selectionUpdate",c),()=>{n.off("selectionUpdate",c);}},[n,o]);let d=J.useCallback(()=>{if(!n)return false;let c=fZ(n);return c&&(r==null||r()),c},[n,r]);return {isVisible:a,isActive:l,handleToggle:d,canToggle:i,label:"Blockquote",shortcutKeys:s7,Icon:i7}}var d7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.43471 4.01458C4.34773 4.06032 4.26607 4.11977 4.19292 4.19292C4.11977 4.26607 4.06032 4.34773 4.01458 4.43471C2.14611 6.40628 1 9.0693 1 12C1 18.0751 5.92487 23 12 23C14.9306 23 17.5936 21.854 19.5651 19.9856C19.6522 19.9398 19.7339 19.8803 19.8071 19.8071C19.8803 19.7339 19.9398 19.6522 19.9856 19.5651C21.854 17.5936 23 14.9306 23 12C23 5.92487 18.0751 1 12 1C9.0693 1 6.40628 2.14611 4.43471 4.01458ZM6.38231 4.9681C7.92199 3.73647 9.87499 3 12 3C16.9706 3 21 7.02944 21 12C21 14.125 20.2635 16.078 19.0319 17.6177L6.38231 4.9681ZM17.6177 19.0319C16.078 20.2635 14.125 21 12 21C7.02944 21 3 16.9706 3 12C3 9.87499 3.73647 7.92199 4.9681 6.38231L17.6177 19.0319Z",fill:"currentColor"}))});d7.displayName="BanIcon";var yl=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7072 4.70711C15.0977 4.31658 15.0977 3.68342 14.7072 3.29289C14.3167 2.90237 13.6835 2.90237 13.293 3.29289L8.69294 7.89286L8.68594 7.9C8.13626 8.46079 7.82837 9.21474 7.82837 10C7.82837 10.2306 7.85491 10.4584 7.90631 10.6795L2.29289 16.2929C2.10536 16.4804 2 16.7348 2 17V20C2 20.5523 2.44772 21 3 21H12C12.2652 21 12.5196 20.8946 12.7071 20.7071L15.3205 18.0937C15.5416 18.1452 15.7695 18.1717 16.0001 18.1717C16.7853 18.1717 17.5393 17.8639 18.1001 17.3142L22.7072 12.7071C23.0977 12.3166 23.0977 11.6834 22.7072 11.2929C22.3167 10.9024 21.6835 10.9024 21.293 11.2929L16.6971 15.8887C16.5105 16.0702 16.2605 16.1717 16.0001 16.1717C15.7397 16.1717 15.4897 16.0702 15.303 15.8887L10.1113 10.697C9.92992 10.5104 9.82837 10.2604 9.82837 10C9.82837 9.73963 9.92992 9.48958 10.1113 9.30297L14.7072 4.70711ZM13.5858 17L9.00004 12.4142L4 17.4142V19H11.5858L13.5858 17Z",fill:"currentColor"}))});yl.displayName="HighlighterIcon";function t5(t){var e=Q(t,[]);return J__namespace.default.createElement(ms__namespace.Root,y({},e))}function o5(t){var e=Q(t,[]);return J__namespace.default.createElement(ms__namespace.Trigger,y({},e))}function r5(n){var a=n,{className:e,align:t="center",sideOffset:o=4}=a,r=Q(a,["className","align","sideOffset"]);return J__namespace.default.createElement(ms__namespace.Portal,null,J__namespace.default.createElement(ms__namespace.Content,y({align:t,sideOffset:o,className:ut("z-50 outline-none","origin-[var(--radix-popover-content-transform-origin)]","max-h-[var(--radix-popover-content-available-height)]","bg-white text-[color:rgba(36,39,46,0.78)] border border-[rgba(15,22,36,0.05)]","dark:bg-[#19191A] dark:text-[color:rgba(247,247,253,0.64)] dark:border-[rgba(232,232,253,0.05)]","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","[&>*]:max-h-[var(--radix-popover-content-available-height)]",e)},r)))}function wZ({shortcutKeys:e=n5}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:e}))}var c7=J.forwardRef((f,p)=>{var u=f,{editor:e,highlightColor:t,text:o,hideWhenUnavailable:r=false,mode:n="mark",onApplied:a,showShortcut:s=false,onClick:i,children:l,style:d}=u,c=Q(u,["editor","highlightColor","text","hideWhenUnavailable","mode","onApplied","showShortcut","onClick","children","style"]);let{editor:g}=je(e),{isVisible:m,canColorHighlight:v,isActive:h,handleColorHighlight:b,label:x,shortcutKeys:w}=Yc({editor:g,highlightColor:t,label:o||`Toggle highlight (${t})`,hideWhenUnavailable:r,mode:n,onApplied:a}),C=J.useCallback(k=>{i==null||i(k),!k.defaultPrevented&&b();},[b,i]),A=J.useMemo(()=>F(y({},d),{"--highlight-color":t}),[t,d]);return m?J__namespace.default.createElement(wt,F(y({type:"button","data-style":"ghost","data-active-state":h?"on":"off",role:"button",tabIndex:-1,disabled:!v,"data-disabled":!v,"aria-label":x,"aria-pressed":h,tooltip:x,onClick:C,style:A},c),{ref:p}),l!=null?l:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("span",{className:ut("relative h-5 w-5 rounded-[var(--tt-radius-xl)]","-mx-[0.175rem] bg-[color:var(--highlight-color)]","transition-transform duration-200 ease-out","after:absolute after:inset-0 after:rounded-inherit after:content-[''] after:box-border","after:border after:border-[color:var(--highlight-color)]","after:[filter:brightness(95%)] after:[mix-blend-mode:multiply]","dark:after:[filter:brightness(140%)] dark:after:[mix-blend-mode:lighten]","data-[active=on]:after:[filter:brightness(80%)]","dark:data-[active=on]:after:[filter:brightness(180%)]"),"data-active":h?"on":"off",style:{"--highlight-color":t}}),o&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},o),s&&J__namespace.default.createElement(wZ,{shortcutKeys:w}))):null});c7.displayName="ColorHighlightButton";var n5="mod+shift+h",SZ=[{label:"Default background",value:"#FFFFFF",border:"rgba(37,39,45,0.1)"},{label:"Gray background",value:"rgb(248,248,247)",border:"rgba(84,72,49,0.15)"},{label:"Brown background",value:"rgb(244,238,238)",border:"rgba(210,162,141,0.35)"},{label:"Orange background",value:"rgb(251,236,221)",border:"rgba(224,124,57,0.27)"},{label:"Yellow background",value:"#FEF9C3",border:"#FBE604"},{label:"Green background",value:"#DCFCE7",border:"#C7FAD8"},{label:"Blue background",value:"#E0F2FE",border:"#CEEAFD"},{label:"Purple background",value:"#F3E8FF",border:"#E4CCFF"},{label:"Pink background",value:"rgb(252,241,246)",border:"rgba(225,136,179,0.27)"},{label:"Red background",value:"#FFE4E6",border:"#FFCCD0"}];function p7(e){let t=new Map(SZ.map(o=>[o.value,o]));return e.map(o=>t.get(o)).filter(o=>!!o)}function m7(e,t="mark"){if(!e||!e.isEditable)return false;if(t==="mark")return !Yi("highlight",e)||wr(e,["image"])?false:e.can().setMark("highlight");if(!Hs(e,["nodeBackground"]))return false;try{return e.can().toggleNodeBackgroundColor("test")}catch(o){return false}}function AZ(e,t,o="mark"){var r;if(!e||!e.isEditable)return false;if(o==="mark")return t?e.isActive("highlight",{color:t}):e.isActive("highlight");if(!t)return false;try{let{state:n}=e,{selection:a}=n,s=a.$anchor;for(let i=s.depth;i>=0;i--){let l=s.node(i);if(l&&((r=l.attrs)==null?void 0:r.backgroundColor)===t)return !0}return !1}catch(n){return false}}function NZ(e,t="mark"){return !e||!e.isEditable||!m7(e,t)?false:t==="mark"?e.chain().focus().unsetMark("highlight").run():e.chain().focus().unsetNodeBackgroundColor().run()}function IZ(e){let{editor:t,hideWhenUnavailable:o,mode:r}=e;if(!t||!t.isEditable)return false;if(r==="mark"){if(!Yi("highlight",t))return false}else if(!Hs(t,["nodeBackground"]))return false;return o&&!t.isActive("code")?m7(t,r):true}function Yc(e){let{editor:t,label:o,highlightColor:r,hideWhenUnavailable:n=false,mode:a="mark",onApplied:s}=e,{editor:i}=je(t),l=Xa(),[d,c]=J.useState(true),p=m7(i,a),f=AZ(i,r,a);J.useEffect(()=>{if(!i)return;let m=()=>{c(IZ({editor:i,hideWhenUnavailable:n,mode:a}));};return m(),i.on("selectionUpdate",m),()=>{i.off("selectionUpdate",m);}},[i,n,a]);let u=J.useCallback(()=>{if(!i||!p||!r||!o)return false;if(a==="mark"){if(i.state.storedMarks){let m=i.schema.marks.highlight;m&&i.view.dispatch(i.state.tr.removeStoredMark(m));}return setTimeout(()=>{let m=i.chain().focus().toggleMark("highlight",{color:r}).run();return m&&(s==null||s({color:r,label:o,mode:a})),m},0),true}else {let m=i.chain().focus().toggleNodeBackgroundColor(r).run();return m&&(s==null||s({color:r,label:o,mode:a})),m}},[p,r,i,o,s,a]),g=J.useCallback(()=>{let m=NZ(i,a);return m&&(s==null||s({color:"",label:"Remove highlight",mode:a})),m},[i,s,a]);return reactHotkeysHook.useHotkeys(n5,m=>{m.preventDefault(),u();},{enabled:d&&p,enableOnContentEditable:!l,enableOnFormTags:true}),{isVisible:d,isActive:f,handleColorHighlight:u,handleRemoveHighlight:g,canColorHighlight:p,label:o||"Highlight",shortcutKeys:n5,Icon:yl,mode:a}}var a5=J.forwardRef((n,r)=>{var a=n,{className:e,children:t}=a,o=Q(a,["className","children"]);return J__namespace.default.createElement(wt,y({type:"button",className:e,"data-style":"ghost","data-appearance":"default",role:"button",tabIndex:-1,"aria-label":"Highlight text",tooltip:"Highlight",ref:r},o),t!=null?t:J__namespace.default.createElement(yl,{className:"tiptap-button-icon"}))});a5.displayName="ColorHighlightPopoverButton";function u7({editor:e,colors:t=p7(["#DCFCE7","#E0F2FE","#FFE4E6","#F3E8FF","#FEF9C3"])}){let{handleRemoveHighlight:o}=Yc({editor:e}),r=Xa(),n=J.useRef(null),a=J.useMemo(()=>[...t,{label:"Remove highlight",value:"none"}],[t]),{selectedIndex:s}=Km({containerRef:n,items:a,orientation:"both",onSelect:i=>{if(!n.current)return false;let l=n.current.querySelector('[data-highlighted="true"]');return l&&l.click(),i.value==="none"&&o(),true},autoSelectFirstItem:false});return J__namespace.default.createElement(Us,{ref:n,tabIndex:0,style:r?{boxShadow:"none",border:0,zIndex:9999}:{zIndex:9999}},J__namespace.default.createElement(_s,{style:r?{padding:0}:{}},J__namespace.default.createElement(qc,{orientation:"horizontal"},J__namespace.default.createElement(ga,{orientation:"horizontal"},t.map((i,l)=>J__namespace.default.createElement(c7,{key:i.value,editor:e,highlightColor:i.value,tooltip:i.label,"aria-label":`${i.label} highlight color`,tabIndex:l===s?0:-1,"data-highlighted":s===l}))),J__namespace.default.createElement(cl,null),J__namespace.default.createElement(ga,{orientation:"horizontal"},J__namespace.default.createElement(wt,{onClick:o,"aria-label":"Remove highlight",tooltip:"Remove highlight",tabIndex:s===t.length?0:-1,type:"button",role:"menuitem","data-style":"ghost","data-highlighted":s===t.length},J__namespace.default.createElement(d7,{className:"tiptap-button-icon"}))))))}function rA(a){var s=a,{editor:e,colors:t=p7(["#DCFCE7","#E0F2FE","#FFE4E6","#F3E8FF","#FEF9C3"]),hideWhenUnavailable:o=false,onApplied:r}=s,n=Q(s,["editor","colors","hideWhenUnavailable","onApplied"]);let{editor:i}=je(e),[l,d]=J.useState(false),{isVisible:c,canColorHighlight:p,isActive:f,label:u,Icon:g}=Yc({editor:i,hideWhenUnavailable:o,onApplied:r});return c?J__namespace.default.createElement(t5,{open:l,onOpenChange:d},J__namespace.default.createElement(o5,{asChild:true},J__namespace.default.createElement(a5,y({disabled:!p,"data-active-state":f?"on":"off","data-disabled":!p,"aria-pressed":f,"aria-label":u,tooltip:u},n),J__namespace.default.createElement(g,{className:"tiptap-button-icon"}))),J__namespace.default.createElement(r5,{"aria-label":"Highlight colors",className:"z-[9999]"},J__namespace.default.createElement(u7,{editor:i,colors:t}))):null}var f7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 4C21 3.44772 20.5523 3 20 3C19.4477 3 19 3.44772 19 4V11C19 11.7956 18.6839 12.5587 18.1213 13.1213C17.5587 13.6839 16.7956 14 16 14H6.41421L9.70711 10.7071C10.0976 10.3166 10.0976 9.68342 9.70711 9.29289C9.31658 8.90237 8.68342 8.90237 8.29289 9.29289L3.29289 14.2929C2.90237 14.6834 2.90237 15.3166 3.29289 15.7071L8.29289 20.7071C8.68342 21.0976 9.31658 21.0976 9.70711 20.7071C10.0976 20.3166 10.0976 19.6834 9.70711 19.2929L6.41421 16H16C17.3261 16 18.5979 15.4732 19.5355 14.5355C20.4732 13.5979 21 12.3261 21 11V4Z",fill:"currentColor"}))});f7.displayName="CornerDownLeftIcon";var h7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M14 3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55228 21.5523 10 21 10C20.4477 10 20 9.55228 20 9V5.41421L10.7071 14.7071C10.3166 15.0976 9.68342 15.0976 9.29289 14.7071C8.90237 14.3166 8.90237 13.6834 9.29289 13.2929L18.5858 4H15C14.4477 4 14 3.55228 14 3Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M4.29289 7.29289C4.48043 7.10536 4.73478 7 5 7H11C11.5523 7 12 6.55228 12 6C12 5.44772 11.5523 5 11 5H5C4.20435 5 3.44129 5.31607 2.87868 5.87868C2.31607 6.44129 2 7.20435 2 8V19C2 19.7957 2.31607 20.5587 2.87868 21.1213C3.44129 21.6839 4.20435 22 5 22H16C16.7957 22 17.5587 21.6839 18.1213 21.1213C18.6839 20.5587 19 19.7957 19 19V13C19 12.4477 18.5523 12 18 12C17.4477 12 17 12.4477 17 13V19C17 19.2652 16.8946 19.5196 16.7071 19.7071C16.5196 19.8946 16.2652 20 16 20H5C4.73478 20 4.48043 19.8946 4.29289 19.7071C4.10536 19.5196 4 19.2652 4 19V8C4 7.73478 4.10536 7.48043 4.29289 7.29289Z",fill:"currentColor"}))});h7.displayName="ExternalLinkIcon";var xl=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M16.9958 1.06669C15.4226 1.05302 13.907 1.65779 12.7753 2.75074L12.765 2.76086L11.045 4.47086C10.6534 4.86024 10.6515 5.49341 11.0409 5.88507C11.4303 6.27673 12.0634 6.27858 12.4551 5.88919L14.1697 4.18456C14.9236 3.45893 15.9319 3.05752 16.9784 3.06662C18.0272 3.07573 19.0304 3.49641 19.772 4.23804C20.5137 4.97967 20.9344 5.98292 20.9435 7.03171C20.9526 8.07776 20.5515 9.08563 19.8265 9.83941L16.833 12.8329C16.4274 13.2386 15.9393 13.5524 15.4019 13.7529C14.8645 13.9533 14.2903 14.0359 13.7181 13.9949C13.146 13.9539 12.5894 13.7904 12.0861 13.5154C11.5827 13.2404 11.1444 12.8604 10.8008 12.401C10.47 11.9588 9.84333 11.8685 9.40108 12.1993C8.95883 12.5301 8.86849 13.1568 9.1993 13.599C9.71464 14.288 10.3721 14.858 11.1272 15.2705C11.8822 15.683 12.7171 15.9283 13.5753 15.9898C14.4334 16.0513 15.2948 15.9274 16.1009 15.6267C16.907 15.326 17.639 14.8555 18.2473 14.247L21.2472 11.2471L21.2593 11.2347C22.3523 10.1031 22.9571 8.58751 22.9434 7.01433C22.9297 5.44115 22.2987 3.93628 21.1863 2.82383C20.0738 1.71138 18.5689 1.08036 16.9958 1.06669Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M10.4247 8.0102C9.56657 7.94874 8.70522 8.07256 7.89911 8.37326C7.09305 8.67395 6.36096 9.14458 5.75272 9.753L2.75285 12.7529L2.74067 12.7653C1.64772 13.8969 1.04295 15.4125 1.05662 16.9857C1.07029 18.5589 1.70131 20.0637 2.81376 21.1762C3.9262 22.2886 5.43108 22.9196 7.00426 22.9333C8.57744 22.947 10.0931 22.3422 11.2247 21.2493L11.2371 21.2371L12.9471 19.5271C13.3376 19.1366 13.3376 18.5034 12.9471 18.1129C12.5565 17.7223 11.9234 17.7223 11.5328 18.1129L9.82932 19.8164C9.07555 20.5414 8.06768 20.9425 7.02164 20.9334C5.97285 20.9243 4.9696 20.5036 4.22797 19.762C3.48634 19.0203 3.06566 18.0171 3.05655 16.9683C3.04746 15.9222 3.44851 14.9144 4.17355 14.1606L7.16719 11.167C7.5727 10.7613 8.06071 10.4476 8.59811 10.2471C9.13552 10.0467 9.70976 9.96412 10.2819 10.0051C10.854 10.0461 11.4106 10.2096 11.9139 10.4846C12.4173 10.7596 12.8556 11.1397 13.1992 11.599C13.53 12.0412 14.1567 12.1316 14.5989 11.8007C15.0412 11.4699 15.1315 10.8433 14.8007 10.401C14.2854 9.71205 13.6279 9.14198 12.8729 8.72948C12.1178 8.31697 11.2829 8.07166 10.4247 8.0102Z",fill:"currentColor"}))});xl.displayName="LinkIcon";var y7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 5V4C7 3.17477 7.40255 2.43324 7.91789 1.91789C8.43324 1.40255 9.17477 1 10 1H14C14.8252 1 15.5668 1.40255 16.0821 1.91789C16.5975 2.43324 17 3.17477 17 4V5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H20V20C20 20.8252 19.5975 21.5668 19.0821 22.0821C18.5668 22.5975 17.8252 23 17 23H7C6.17477 23 5.43324 22.5975 4.91789 22.0821C4.40255 21.5668 4 20.8252 4 20V7H3C2.44772 7 2 6.55228 2 6C2 5.44772 2.44772 5 3 5H7ZM9 4C9 3.82523 9.09745 3.56676 9.33211 3.33211C9.56676 3.09745 9.82523 3 10 3H14C14.1748 3 14.4332 3.09745 14.6679 3.33211C14.9025 3.56676 15 3.82523 15 4V5H9V4ZM6 7V20C6 20.1748 6.09745 20.4332 6.33211 20.6679C6.56676 20.9025 6.82523 21 7 21H17C17.1748 21 17.4332 20.9025 17.6679 20.6679C17.9025 20.4332 18 20.1748 18 20V7H6Z",fill:"currentColor"}))});y7.displayName="TrashIcon";function iA(r){var n=r,{className:e,type:t}=n,o=Q(n,["className","type"]);return J__namespace.default.createElement("input",y({type:t,className:ut("block h-8 w-full appearance-none rounded-md bg-transparent","px-2 py-1.5 text-sm font-normal leading-6 outline-none","placeholder:text-[color:rgba(40,44,51,0.42)]","dark:placeholder:text-[color:rgba(244,244,255,0.37)]",e)},o))}function lA(r){var n=r,{className:e,children:t}=n,o=Q(n,["className","children"]);return J__namespace.default.createElement("div",y({className:ut("relative flex flex-wrap items-stretch",e)},o),t)}var s5=J.forwardRef((n,r)=>{var a=n,{className:e,children:t}=a,o=Q(a,["className","children"]);return J__namespace.default.createElement(wt,y({type:"button",className:e,"data-style":"ghost",role:"button",tabIndex:-1,"aria-label":"Link",tooltip:"Link",ref:r},o),t||J__namespace.default.createElement(xl,{className:"tiptap-button-icon"}))});s5.displayName="LinkButton";var cA=({url:e,setUrl:t,setLink:o,removeLink:r,openLink:n,isActive:a})=>{let s=Xa(),i=l=>{l.key==="Enter"&&(l.preventDefault(),o());};return J__namespace.default.createElement(Us,{style:y({},s?{boxShadow:"none",border:0,zIndex:9999}:{zIndex:9999})},J__namespace.default.createElement(_s,{style:y({},s?{padding:0}:{})},J__namespace.default.createElement(qc,{orientation:"horizontal"},J__namespace.default.createElement(lA,null,J__namespace.default.createElement(iA,{type:"url",placeholder:"Paste a link...",value:e,onChange:l=>t(l.target.value),onKeyDown:i,autoFocus:true,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off"})),J__namespace.default.createElement(ga,{orientation:"horizontal"},J__namespace.default.createElement(wt,{type:"button",onClick:o,title:"Apply link",disabled:!e&&!a,"data-style":"ghost"},J__namespace.default.createElement(f7,{className:"tiptap-button-icon"}))),J__namespace.default.createElement(cl,null),J__namespace.default.createElement(ga,{orientation:"horizontal"},J__namespace.default.createElement(wt,{type:"button",onClick:n,title:"Open in new window",disabled:!e&&!a,"data-style":"ghost"},J__namespace.default.createElement(h7,{className:"tiptap-button-icon"})),J__namespace.default.createElement(wt,{type:"button",onClick:r,title:"Remove link",disabled:!e&&!a,"data-style":"ghost"},J__namespace.default.createElement(y7,{className:"tiptap-button-icon"}))))))},pA=({editor:e})=>{let t=w7({editor:e});return J__namespace.default.createElement(cA,y({},t))},x7=J.forwardRef((d,l)=>{var c=d,{editor:e,hideWhenUnavailable:t=false,onSetLink:o,onOpenChange:r,autoOpenOnLinkActive:n=true,onClick:a,children:s}=c,i=Q(c,["editor","hideWhenUnavailable","onSetLink","onOpenChange","autoOpenOnLinkActive","onClick","children"]);let{editor:p}=je(e),[f,u]=J.useState(false),{isVisible:g,canSet:m,isActive:v,url:h,setUrl:b,setLink:x,removeLink:w,openLink:C,label:A,Icon:k}=w7({editor:p,hideWhenUnavailable:t,onSetLink:o}),N=J.useCallback(S=>{u(S),r==null||r(S);},[r]),I=J.useCallback(()=>{x(),u(false);},[x]),P=J.useCallback(S=>{a==null||a(S),!S.defaultPrevented&&u(!f);},[a,f]);return J.useEffect(()=>{n&&v&&u(true);},[n,v]),g?J__namespace.default.createElement(t5,{open:f,onOpenChange:N},J__namespace.default.createElement(o5,{asChild:true},J__namespace.default.createElement(s5,F(y({disabled:!m,"data-active-state":v?"on":"off","data-disabled":!m,"aria-label":A,"aria-pressed":v,onClick:P},i),{ref:l}),s!=null?s:J__namespace.default.createElement(k,{className:"tiptap-button-icon"}))),J__namespace.default.createElement(r5,{className:"z-[9999]"},J__namespace.default.createElement(cA,{url:h,setUrl:b,setLink:I,removeLink:w,openLink:C,isActive:v}))):null});x7.displayName="LinkPopover";function uA(e){return !e||!e.isEditable||wr(e,["image"],true)?false:e.can().setMark("link")}function fA(e){return !e||!e.isEditable?false:e.isActive("link")}function GZ(e){let{editor:t,hideWhenUnavailable:o}=e;return !Yi("link",t)||!t?false:o&&!t.isActive("code")?uA(t):true}function UZ(e){let{editor:t,onSetLink:o}=e,[r,n]=J.useState(null);J.useEffect(()=>{if(!t)return;let{href:l}=t.getAttributes("link");fA(t)&&r===null&&n(l||"");},[t,r]),J.useEffect(()=>{if(!t)return;let l=()=>{let{href:d}=t.getAttributes("link");n(d||"");};return t.on("selectionUpdate",l),()=>{t.off("selectionUpdate",l);}},[t]);let a=J.useCallback(()=>{if(!r||!t)return;let{selection:l}=t.state,d=l.empty,c=t.chain().focus();c=c.extendMarkRange("link").setLink({href:r}),d&&(c=c.insertContent({type:"text",text:r})),c.run(),n(null),o==null||o();},[t,o,r]),s=J.useCallback(()=>{t&&(t.chain().focus().extendMarkRange("link").unsetLink().setMeta("preventAutolink",true).run(),n(""));},[t]),i=J.useCallback((l="_blank",d="noopener,noreferrer")=>{if(!r)return;let c=AS(r,window.location.href);c!=="#"&&window.open(c,l,d);},[r]);return {url:r||"",setUrl:n,setLink:a,removeLink:s,openLink:i}}function _Z(e){let{editor:t,hideWhenUnavailable:o=false}=e,r=uA(t),n=fA(t),[a,s]=J.useState(true);return J.useEffect(()=>{if(!t)return;let i=()=>{s(GZ({editor:t,hideWhenUnavailable:o}));};return i(),t.on("selectionUpdate",i),()=>{t.off("selectionUpdate",i);}},[t,o]),{isVisible:a,canSet:r,isActive:n}}function w7(e){let{editor:t,hideWhenUnavailable:o=false,onSetLink:r}=e||{},{editor:n}=je(t),{isVisible:a,canSet:s,isActive:i}=_Z({editor:n,hideWhenUnavailable:o}),l=UZ({editor:n,onSetLink:r});return y({isVisible:a,canSet:s,isActive:i,label:"Link",Icon:xl},l)}function qZ({type:e,shortcutKeys:t=P7[e]}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:t}))}var B0=J.forwardRef((c,d)=>{var p=c,{editor:e,type:t,text:o,hideWhenUnavailable:r=false,onToggled:n,showShortcut:a=false,onClick:s,children:i}=p,l=Q(p,["editor","type","text","hideWhenUnavailable","onToggled","showShortcut","onClick","children"]);let{editor:f}=je(e),{isVisible:u,handleMark:g,label:m,canToggle:v,isActive:h,Icon:b,shortcutKeys:x}=gA({editor:f,type:t,hideWhenUnavailable:r,onToggled:n}),w=J.useCallback(C=>{s==null||s(C),!C.defaultPrevented&&g();},[g,s]);return u?J__namespace.default.createElement(wt,F(y({type:"button",disabled:!v,"data-style":"ghost","data-active-state":h?"on":"off","data-disabled":!v,role:"button",tabIndex:-1,"aria-label":m,"aria-pressed":h,tooltip:m,onClick:w},l),{ref:d}),i!=null?i:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(b,{className:"tiptap-button-icon"}),o&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},o),a&&J__namespace.default.createElement(qZ,{type:t,shortcutKeys:x}))):null});B0.displayName="MarkButton";var S7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2.5C5.17157 2.5 4.5 3.17157 4.5 4V20C4.5 20.8284 5.17157 21.5 6 21.5H15C16.4587 21.5 17.8576 20.9205 18.8891 19.8891C19.9205 18.8576 20.5 17.4587 20.5 16C20.5 14.5413 19.9205 13.1424 18.8891 12.1109C18.6781 11.9 18.4518 11.7079 18.2128 11.5359C19.041 10.5492 19.5 9.29829 19.5 8C19.5 6.54131 18.9205 5.14236 17.8891 4.11091C16.8576 3.07946 15.4587 2.5 14 2.5H6ZM14 10.5C14.663 10.5 15.2989 10.2366 15.7678 9.76777C16.2366 9.29893 16.5 8.66304 16.5 8C16.5 7.33696 16.2366 6.70107 15.7678 6.23223C15.2989 5.76339 14.663 5.5 14 5.5H7.5V10.5H14ZM7.5 18.5V13.5H15C15.663 13.5 16.2989 13.7634 16.7678 14.2322C17.2366 14.7011 17.5 15.337 17.5 16C17.5 16.663 17.2366 17.2989 16.7678 17.7678C16.2989 18.2366 15.663 18.5 15 18.5H7.5Z",fill:"currentColor"}))});S7.displayName="BoldIcon";var A7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M15.4545 4.2983C15.6192 3.77115 15.3254 3.21028 14.7983 3.04554C14.2712 2.88081 13.7103 3.1746 13.5455 3.70175L8.54554 19.7017C8.38081 20.2289 8.6746 20.7898 9.20175 20.9545C9.72889 21.1192 10.2898 20.8254 10.4545 20.2983L15.4545 4.2983Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M6.70711 7.29289C7.09763 7.68342 7.09763 8.31658 6.70711 8.70711L3.41421 12L6.70711 15.2929C7.09763 15.6834 7.09763 16.3166 6.70711 16.7071C6.31658 17.0976 5.68342 17.0976 5.29289 16.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M17.2929 7.29289C17.6834 6.90237 18.3166 6.90237 18.7071 7.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L18.7071 16.7071C18.3166 17.0976 17.6834 17.0976 17.2929 16.7071C16.9024 16.3166 16.9024 15.6834 17.2929 15.2929L20.5858 12L17.2929 8.70711C16.9024 8.31658 16.9024 7.68342 17.2929 7.29289Z",fill:"currentColor"}))});A7.displayName="Code2Icon";var N7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M15.0222 3H19C19.5523 3 20 3.44772 20 4C20 4.55228 19.5523 5 19 5H15.693L10.443 19H14C14.5523 19 15 19.4477 15 20C15 20.5523 14.5523 21 14 21H9.02418C9.00802 21.0004 8.99181 21.0004 8.97557 21H5C4.44772 21 4 20.5523 4 20C4 19.4477 4.44772 19 5 19H8.30704L13.557 5H10C9.44772 5 9 4.55228 9 4C9 3.44772 9.44772 3 10 3H14.9782C14.9928 2.99968 15.0075 2.99967 15.0222 3Z",fill:"currentColor"}))});N7.displayName="ItalicIcon";var E7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M9.00039 3H16.0001C16.5524 3 17.0001 3.44772 17.0001 4C17.0001 4.55229 16.5524 5 16.0001 5H9.00011C8.68006 4.99983 8.36412 5.07648 8.07983 5.22349C7.79555 5.37051 7.55069 5.5836 7.36585 5.84487C7.181 6.10614 7.06155 6.40796 7.01754 6.72497C6.97352 7.04198 7.00623 7.36492 7.11292 7.66667C7.29701 8.18737 7.02414 8.75872 6.50344 8.94281C5.98274 9.1269 5.4114 8.85403 5.2273 8.33333C5.01393 7.72984 4.94851 7.08396 5.03654 6.44994C5.12456 5.81592 5.36346 5.21229 5.73316 4.68974C6.10285 4.1672 6.59256 3.74101 7.16113 3.44698C7.72955 3.15303 8.36047 2.99975 9.00039 3Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M18 13H20C20.5523 13 21 12.5523 21 12C21 11.4477 20.5523 11 20 11H4C3.44772 11 3 11.4477 3 12C3 12.5523 3.44772 13 4 13H14C14.7956 13 15.5587 13.3161 16.1213 13.8787C16.6839 14.4413 17 15.2044 17 16C17 16.7956 16.6839 17.5587 16.1213 18.1213C15.5587 18.6839 14.7956 19 14 19H6C5.44772 19 5 19.4477 5 20C5 20.5523 5.44772 21 6 21H14C15.3261 21 16.5979 20.4732 17.5355 19.5355C18.4732 18.5979 19 17.3261 19 16C19 14.9119 18.6453 13.8604 18 13Z",fill:"currentColor"}))});E7.displayName="StrikeIcon";var k7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L12.7071 15.2929C13.0976 15.6834 13.0976 16.3166 12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 7.29289C13.0976 7.68342 13.0976 8.31658 12.7071 8.70711L4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L11.2929 7.29289C11.6834 6.90237 12.3166 6.90237 12.7071 7.29289Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4079 14.3995C18.0284 14.0487 18.7506 13.9217 19.4536 14.0397C20.1566 14.1578 20.7977 14.5138 21.2696 15.0481L21.2779 15.0574L21.2778 15.0575C21.7439 15.5988 22 16.2903 22 17C22 18.0823 21.3962 18.8401 20.7744 19.3404C20.194 19.8073 19.4858 20.141 18.9828 20.378C18.9638 20.387 18.9451 20.3958 18.9266 20.4045C18.4473 20.6306 18.2804 20.7817 18.1922 20.918C18.1773 20.9412 18.1619 20.9681 18.1467 21H21C21.5523 21 22 21.4477 22 22C22 22.5523 21.5523 23 21 23H17C16.4477 23 16 22.5523 16 22C16 21.1708 16.1176 20.4431 16.5128 19.832C16.9096 19.2184 17.4928 18.8695 18.0734 18.5956C18.6279 18.334 19.138 18.0901 19.5207 17.7821C19.8838 17.49 20 17.2477 20 17C20 16.7718 19.9176 16.5452 19.7663 16.3672C19.5983 16.1792 19.3712 16.0539 19.1224 16.0121C18.8722 15.9701 18.6152 16.015 18.3942 16.1394C18.1794 16.2628 18.0205 16.4549 17.9422 16.675C17.7572 17.1954 17.1854 17.4673 16.665 17.2822C16.1446 17.0972 15.8728 16.5254 16.0578 16.005C16.2993 15.3259 16.7797 14.7584 17.4039 14.4018L17.4079 14.3995L17.4079 14.3995Z",fill:"currentColor"}))});k7.displayName="SubscriptIcon";var T7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 7.29289C13.0976 7.68342 13.0976 8.31658 12.7071 8.70711L4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L11.2929 7.29289C11.6834 6.90237 12.3166 6.90237 12.7071 7.29289Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L12.7071 15.2929C13.0976 15.6834 13.0976 16.3166 12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.405 1.40657C18.0246 1.05456 18.7463 0.92634 19.4492 1.04344C20.1521 1.16054 20.7933 1.51583 21.2652 2.0497L21.2697 2.05469L21.2696 2.05471C21.7431 2.5975 22 3.28922 22 4.00203C22 5.08579 21.3952 5.84326 20.7727 6.34289C20.1966 6.80531 19.4941 7.13675 18.9941 7.37261C18.9714 7.38332 18.9491 7.39383 18.9273 7.40415C18.4487 7.63034 18.2814 7.78152 18.1927 7.91844C18.1778 7.94155 18.1625 7.96834 18.1473 8.00003H21C21.5523 8.00003 22 8.44774 22 9.00003C22 9.55231 21.5523 10 21 10H17C16.4477 10 16 9.55231 16 9.00003C16 8.17007 16.1183 7.44255 16.5138 6.83161C16.9107 6.21854 17.4934 5.86971 18.0728 5.59591C18.6281 5.33347 19.1376 5.09075 19.5208 4.78316C19.8838 4.49179 20 4.25026 20 4.00203C20 3.77192 19.9178 3.54865 19.7646 3.37182C19.5968 3.18324 19.3696 3.05774 19.1205 3.01625C18.8705 2.97459 18.6137 3.02017 18.3933 3.14533C18.1762 3.26898 18.0191 3.45826 17.9406 3.67557C17.7531 4.19504 17.18 4.46414 16.6605 4.27662C16.141 4.0891 15.8719 3.51596 16.0594 2.99649C16.303 2.3219 16.7817 1.76125 17.4045 1.40689L17.405 1.40657Z",fill:"currentColor"}))});T7.displayName="SuperscriptIcon";var D7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 4C7 3.44772 6.55228 3 6 3C5.44772 3 5 3.44772 5 4V10C5 11.8565 5.7375 13.637 7.05025 14.9497C8.36301 16.2625 10.1435 17 12 17C13.8565 17 15.637 16.2625 16.9497 14.9497C18.2625 13.637 19 11.8565 19 10V4C19 3.44772 18.5523 3 18 3C17.4477 3 17 3.44772 17 4V10C17 11.3261 16.4732 12.5979 15.5355 13.5355C14.5979 14.4732 13.3261 15 12 15C10.6739 15 9.40215 14.4732 8.46447 13.5355C7.52678 12.5979 7 11.3261 7 10V4ZM4 19C3.44772 19 3 19.4477 3 20C3 20.5523 3.44772 21 4 21H20C20.5523 21 21 20.5523 21 20C21 19.4477 20.5523 19 20 19H4Z",fill:"currentColor"}))});D7.displayName="UnderlineIcon";var tY={bold:S7,italic:N7,underline:D7,strike:E7,code:A7,superscript:T7,subscript:k7},P7={bold:"mod+b",italic:"mod+i",underline:"mod+u",strike:"mod+shift+s",code:"mod+e",superscript:"mod+.",subscript:"mod+,"};function L7(e,t){return !e||!e.isEditable||!Yi(t,e)||wr(e,["image"])?false:e.can().toggleMark(t)}function oY(e,t){return !e||!e.isEditable?false:e.isActive(t)}function rY(e,t){return !e||!e.isEditable||!L7(e,t)?false:e.chain().focus().toggleMark(t).run()}function nY(e){let{editor:t,type:o,hideWhenUnavailable:r}=e;return !t||!t.isEditable||!Yi(o,t)?false:r&&!t.isActive("code")?L7(t,o):true}function aY(e){return e.charAt(0).toUpperCase()+e.slice(1)}function gA(e){let{editor:t,type:o,hideWhenUnavailable:r=false,onToggled:n}=e,{editor:a}=je(t),[s,i]=J.useState(true),l=L7(a,o),d=oY(a,o);J.useEffect(()=>{if(!a)return;let p=()=>{i(nY({editor:a,type:o,hideWhenUnavailable:r}));};return p(),a.on("selectionUpdate",p),()=>{a.off("selectionUpdate",p);}},[a,o,r]);let c=J.useCallback(()=>{if(!a)return false;let p=rY(a,o);return p&&(n==null||n()),p},[a,o,n]);return {isVisible:s,isActive:d,handleMark:c,canToggle:l,label:aY(o),shortcutKeys:P7[o],Icon:tY[o]}}function lY({align:e,shortcutKeys:t=F7[e]}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:t}))}var Jc=J.forwardRef((p,c)=>{var f=p,{editor:e,align:t,text:o,hideWhenUnavailable:r=false,onAligned:n,showShortcut:a=false,onClick:s,icon:i,children:l}=f,d=Q(f,["editor","align","text","hideWhenUnavailable","onAligned","showShortcut","onClick","icon","children"]);let{editor:u}=je(e),{isVisible:g,handleTextAlign:m,label:v,canAlign:h,isActive:b,Icon:x,shortcutKeys:w}=bA({editor:u,align:t,hideWhenUnavailable:r,onAligned:n}),C=J.useCallback(k=>{s==null||s(k),!k.defaultPrevented&&m();},[m,s]);if(!g)return null;let A=i!=null?i:x;return J__namespace.default.createElement(wt,F(y({type:"button",disabled:!h,"data-style":"ghost","data-active-state":b?"on":"off","data-disabled":!h,role:"button",tabIndex:-1,"aria-label":v,"aria-pressed":b,tooltip:v,onClick:C},d),{ref:c}),l!=null?l:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(A,{className:"tiptap-button-icon"}),o&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},o),a&&J__namespace.default.createElement(lY,{align:t,shortcutKeys:w})))});Jc.displayName="TextAlignButton";var z7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12C6 11.4477 6.44772 11 7 11H17C17.5523 11 18 11.4477 18 12C18 12.5523 17.5523 13 17 13H7C6.44772 13 6 12.5523 6 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 18C4 17.4477 4.44772 17 5 17H19C19.5523 17 20 17.4477 20 18C20 18.5523 19.5523 19 19 19H5C4.44772 19 4 18.5523 4 18Z",fill:"currentColor"}))});z7.displayName="AlignCenterIcon";var B7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor"}))});B7.displayName="AlignJustifyIcon";var O7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H15C15.5523 11 16 11.4477 16 12C16 12.5523 15.5523 13 15 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H17C17.5523 17 18 17.4477 18 18C18 18.5523 17.5523 19 17 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor"}))});O7.displayName="AlignLeftIcon";var H7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 12C8 11.4477 8.44772 11 9 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H9C8.44772 13 8 12.5523 8 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 18C6 17.4477 6.44772 17 7 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H7C6.44772 19 6 18.5523 6 18Z",fill:"currentColor"}))});H7.displayName="AlignRightIcon";var F7={left:"mod+shift+l",center:"mod+shift+e",right:"mod+shift+r",justify:"mod+shift+j"},hY={left:O7,center:z7,right:H7,justify:B7},vY={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"};function G7(e,t){return !e||!e.isEditable||!Hs(e,"textAlign")||wr(e,["image","horizontalRule"])?false:e.can().setTextAlign(t)}function yY(e){return "setTextAlign"in e}function bY(e,t){return !e||!e.isEditable?false:e.isActive({textAlign:t})}function xY(e,t){if(!e||!e.isEditable||!G7(e,t))return false;let o=e.chain().focus();return yY(o)?o.setTextAlign(t).run():false}function wY(e){let{editor:t,hideWhenUnavailable:o,align:r}=e;return !t||!t.isEditable||!Hs(t,"textAlign")?false:o&&!t.isActive("code")?G7(t,r):true}function bA(e){let{editor:t,align:o,hideWhenUnavailable:r=false,onAligned:n}=e,{editor:a}=je(t),[s,i]=J.useState(true),l=G7(a,o),d=bY(a,o);J.useEffect(()=>{if(!a)return;let p=()=>{i(wY({editor:a,align:o,hideWhenUnavailable:r}));};return p(),a.on("selectionUpdate",p),()=>{a.off("selectionUpdate",p);}},[a,r,o]);let c=J.useCallback(()=>{if(!a)return false;let p=xY(a,o);return p&&(n==null||n()),p},[a,o,n]);return {isVisible:s,isActive:d,handleTextAlign:c,canAlign:l,label:vY[o],shortcutKeys:F7[o],Icon:hY[o]}}function PY({action:e,shortcutKeys:t=U7[e]}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:t}))}var f5=J.forwardRef((c,d)=>{var p=c,{editor:e,action:t,text:o,hideWhenUnavailable:r=false,onExecuted:n,showShortcut:a=false,onClick:s,children:i}=p,l=Q(p,["editor","action","text","hideWhenUnavailable","onExecuted","showShortcut","onClick","children"]);let{editor:f}=je(e),{isVisible:u,handleAction:g,label:m,canExecute:v,Icon:h,shortcutKeys:b}=xA({editor:f,action:t,hideWhenUnavailable:r,onExecuted:n}),x=J.useCallback(w=>{s==null||s(w),!w.defaultPrevented&&g();},[g,s]);return u?J__namespace.default.createElement(wt,F(y({type:"button",disabled:!v,"data-style":"ghost","data-disabled":!v,role:"button",tabIndex:-1,"aria-label":m,tooltip:m,onClick:x},l),{ref:d}),i!=null?i:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(h,{className:"tiptap-button-icon"}),o&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},o),a&&J__namespace.default.createElement(PY,{action:t,shortcutKeys:b}))):null});f5.displayName="UndoRedoButton";var _7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7071 2.29289C15.3166 1.90237 14.6834 1.90237 14.2929 2.29289C13.9024 2.68342 13.9024 3.31658 14.2929 3.70711L17.5858 7H9.5C7.77609 7 6.12279 7.68482 4.90381 8.90381C3.68482 10.1228 3 11.7761 3 13.5C3 14.3536 3.16813 15.1988 3.49478 15.9874C3.82144 16.7761 4.30023 17.4926 4.90381 18.0962C6.12279 19.3152 7.77609 20 9.5 20H13C13.5523 20 14 19.5523 14 19C14 18.4477 13.5523 18 13 18H9.5C8.30653 18 7.16193 17.5259 6.31802 16.682C5.90016 16.2641 5.56869 15.768 5.34254 15.2221C5.1164 14.6761 5 14.0909 5 13.5C5 12.3065 5.47411 11.1619 6.31802 10.318C7.16193 9.47411 8.30653 9 9.5 9H17.5858L14.2929 12.2929C13.9024 12.6834 13.9024 13.3166 14.2929 13.7071C14.6834 14.0976 15.3166 14.0976 15.7071 13.7071L20.7071 8.70711C21.0976 8.31658 21.0976 7.68342 20.7071 7.29289L15.7071 2.29289Z",fill:"currentColor"}))});_7.displayName="Redo2Icon";var V7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.70711 3.70711C10.0976 3.31658 10.0976 2.68342 9.70711 2.29289C9.31658 1.90237 8.68342 1.90237 8.29289 2.29289L3.29289 7.29289C2.90237 7.68342 2.90237 8.31658 3.29289 8.70711L8.29289 13.7071C8.68342 14.0976 9.31658 14.0976 9.70711 13.7071C10.0976 13.3166 10.0976 12.6834 9.70711 12.2929L6.41421 9H14.5C15.0909 9 15.6761 9.1164 16.2221 9.34254C16.768 9.56869 17.2641 9.90016 17.682 10.318C18.0998 10.7359 18.4313 11.232 18.6575 11.7779C18.8836 12.3239 19 12.9091 19 13.5C19 14.0909 18.8836 14.6761 18.6575 15.2221C18.4313 15.768 18.0998 16.2641 17.682 16.682C17.2641 17.0998 16.768 17.4313 16.2221 17.6575C15.6761 17.8836 15.0909 18 14.5 18H11C10.4477 18 10 18.4477 10 19C10 19.5523 10.4477 20 11 20H14.5C15.3536 20 16.1988 19.8319 16.9874 19.5052C17.7761 19.1786 18.4926 18.6998 19.0962 18.0962C19.6998 17.4926 20.1786 16.7761 20.5052 15.9874C20.8319 15.1988 21 14.3536 21 13.5C21 12.6464 20.8319 11.8012 20.5052 11.0126C20.1786 10.2239 19.6998 9.50739 19.0962 8.90381C18.4926 8.30022 17.7761 7.82144 16.9874 7.49478C16.1988 7.16813 15.3536 7 14.5 7H6.41421L9.70711 3.70711Z",fill:"currentColor"}))});V7.displayName="Undo2Icon";var U7={undo:"mod+z",redo:"mod+shift+z"},kY={undo:"Undo",redo:"Redo"},TY={undo:V7,redo:_7};function j7(e,t){return !e||!e.isEditable||wr(e,["image"])?false:t==="undo"?e.can().undo():e.can().redo()}function DY(e,t){if(!e||!e.isEditable||!j7(e,t))return false;let o=e.chain().focus();return t==="undo"?o.undo().run():o.redo().run()}function LY(e){let{editor:t,hideWhenUnavailable:o,action:r}=e;return !t||!t.isEditable?false:o&&!t.isActive("code")?j7(t,r):true}function xA(e){let{editor:t,action:o,hideWhenUnavailable:r=false,onExecuted:n}=e,{editor:a}=je(t),[s,i]=J.useState(true),l=j7(a,o);J.useEffect(()=>{if(!a)return;let c=()=>{i(LY({editor:a,hideWhenUnavailable:r,action:o}));};return c(),a.on("transaction",c),()=>{a.off("transaction",c);}},[a,r,o]);let d=J.useCallback(()=>{if(!a)return false;let c=DY(a,o);return c&&(n==null||n()),c},[a,o,n]);return {isVisible:s,handleAction:d,canExecute:l,label:kY[o],shortcutKeys:U7[o],Icon:TY[o]}}var MA=e=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",fill:"none",viewBox:"0 0 20 21"},J__namespace.createElement("path",{stroke:"#050910",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M7.5 8.833h.008m4.992 0h.008M7.917 13a2.916 2.916 0 0 0 4.166 0m5.417-2.5a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0"}));function FY(e){return J__namespace.createElement("svg",y({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),J__namespace.createElement("path",{d:"M20 12.702v1.384c0 .23-.01.461-.03.69-.28 3.16-2.475 5.224-5.641 5.224H5.67c-1.603 0-2.956-.52-3.928-1.464a4.593 4.593 0 01-.952-1.232c.331-.402.702-.842 1.063-1.283a98.56 98.56 0 001.573-1.925c.55-.682 2.004-2.476 4.018-1.634.41.17.771.41 1.102.621.812.542 1.152.702 1.723.391.632-.34 1.043-1.012 1.473-1.714.23-.372.461-.732.712-1.063 1.092-1.423 2.775-1.804 4.178-.962.702.42 1.303.952 1.864 1.493.12.12.24.231.35.341.15.15.652.652 1.153 1.133z",fill:"#687588"}),J__namespace.createElement("path",{opacity:.4,d:"M14.339 0H5.67C2.275 0 0 2.376 0 5.914v8.172c0 1.232.28 2.326.792 3.218.33-.402.701-.842 1.062-1.284a95.981 95.981 0 001.573-1.924c.551-.682 2.004-2.476 4.018-1.634.41.17.771.41 1.102.621.812.542 1.152.702 1.723.39.632-.34 1.043-1.011 1.473-1.714.23-.37.461-.73.712-1.062 1.092-1.423 2.775-1.804 4.178-.962.702.42 1.303.952 1.864 1.493.12.12.24.231.35.342.151.149.652.65 1.153 1.133V5.914C20 2.376 17.726 0 14.339 0z",fill:"#687588"}),J__namespace.createElement("path",{d:"M9.454 6.797a2.604 2.604 0 01-2.58 2.581c-1.408 0-2.58-1.173-2.58-2.581s1.172-2.582 2.58-2.582c1.407 0 2.58 1.174 2.58 2.582z",fill:"#687588"}))}var zY=J__namespace.memo(FY),PA=zY;function SA({onHighlighterClick:e,onLinkClick:t,onEmojiClick:o,onMentionClick:r,isMobile:n}){return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(Gs,null,J__namespace.default.createElement(f5,{action:"undo"}),J__namespace.default.createElement(f5,{action:"redo"})),J__namespace.default.createElement(Ji,null),J__namespace.default.createElement(Gs,null,J__namespace.default.createElement(X8,{levels:[1,2,3],portal:n}),J__namespace.default.createElement(JS,{types:["bulletList","orderedList"],portal:n}),J__namespace.default.createElement(a7,null)),J__namespace.default.createElement(Ji,null),J__namespace.default.createElement(Gs,null,J__namespace.default.createElement(B0,{type:"bold"}),J__namespace.default.createElement(B0,{type:"italic"}),J__namespace.default.createElement(B0,{type:"strike"}),J__namespace.default.createElement(B0,{type:"underline"}),n?J__namespace.default.createElement(a5,{onClick:e}):J__namespace.default.createElement(rA,null),n?J__namespace.default.createElement(s5,{onClick:t}):J__namespace.default.createElement(x7,null)),J__namespace.default.createElement(Ji,null),J__namespace.default.createElement(Gs,null,J__namespace.default.createElement(Jc,{align:"left"}),J__namespace.default.createElement(Jc,{align:"center"}),J__namespace.default.createElement(Jc,{align:"right"})),J__namespace.default.createElement(Ji,null),J__namespace.default.createElement(Gs,null,J__namespace.default.createElement(R8,{text:"Imagem",icon:PA}),J__namespace.default.createElement(wt,{"data-style":"ghost",onClick:o,className:"flex items-center gap-1 px-2 py-1 hover:bg-gray-100 rounded"},J__namespace.default.createElement(MA,{className:"w-4 h-4"}),J__namespace.default.createElement("span",{className:"text-xs"},"Emoji"))),J__namespace.default.createElement(BS,null))}var W7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M12.7071 5.70711C13.0976 5.31658 13.0976 4.68342 12.7071 4.29289C12.3166 3.90237 11.6834 3.90237 11.2929 4.29289L4.29289 11.2929C3.90237 11.6834 3.90237 12.3166 4.29289 12.7071L11.2929 19.7071C11.6834 20.0976 12.3166 20.0976 12.7071 19.7071C13.0976 19.3166 13.0976 18.6834 12.7071 18.2929L7.41421 13L19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11L7.41421 11L12.7071 5.70711Z",fill:"currentColor"}))});W7.displayName="ArrowLeftIcon";function NA({type:e,onBack:t}){return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(Gs,null,J__namespace.default.createElement(wt,{"data-style":"ghost",onClick:t},J__namespace.default.createElement(W7,{className:"tiptap-button-icon"}),e==="highlighter"?J__namespace.default.createElement(yl,{className:"tiptap-button-icon"}):J__namespace.default.createElement(xl,{className:"tiptap-button-icon"}))),J__namespace.default.createElement(Ji,null),e==="highlighter"?J__namespace.default.createElement(u7,null):J__namespace.default.createElement(pA,null))}var Q7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z",fill:"currentColor"}))});Q7.displayName="CloseIcon";function UY(e,t){let[o,r]=J.useState([]),n=l=>j(this,null,function*(){var f,u,g;if(l.size>e.maxSize){let m=new Error(t("article.upload.file-size-error",{maxSize:e.maxSize/1024/1024}));return (f=e.onError)==null||f.call(e,m),null}let d=new AbortController,c=crypto.randomUUID(),p={id:c,file:l,progress:0,status:"uploading",abortController:d};r(m=>[...m,p]);try{if(!e.upload)throw new Error(t("article.upload.upload-function-not-defined"));let m=yield e.upload(l,v=>{r(h=>h.map(b=>b.id===c?F(y({},b),{progress:v.progress}):b));},d.signal);if(!m)throw new Error(t("article.upload.no-url-returned"));return d.signal.aborted?null:(r(v=>v.map(h=>h.id===c?F(y({},h),{status:"success",url:m,progress:100}):h)),(u=e.onSuccess)==null||u.call(e,m),m)}catch(m){return d.signal.aborted||(r(v=>v.map(h=>h.id===c?F(y({},h),{status:"error",progress:0}):h)),(g=e.onError)==null||g.call(e,m instanceof Error?m:new Error(t("article.upload.upload-failed")))),null}});return {fileItems:o,uploadFiles:l=>j(this,null,function*(){var p,f;if(!l||l.length===0)return (p=e.onError)==null||p.call(e,new Error(t("article.upload.no-files-to-upload"))),[];if(e.limit&&l.length>e.limit){let u=e.limit===1?"":"s";return (f=e.onError)==null||f.call(e,new Error(t("article.upload.max-files-error",{limit:e.limit,plural:u}))),[]}let d=l.map(u=>n(u));return (yield Promise.all(d)).filter(u=>u!==null)}),removeFileItem:l=>{r(d=>{let c=d.find(p=>p.id===l);return c!=null&&c.abortController&&c.abortController.abort(),c!=null&&c.url&&URL.revokeObjectURL(c.url),d.filter(p=>p.id!==l)});},clearAllFiles:()=>{o.forEach(l=>{l.abortController&&l.abortController.abort(),l.url&&URL.revokeObjectURL(l.url);}),r([]);}}}var EA=({className:e})=>J__namespace.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",className:ut("h-6 w-6",e),fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:"M11.1953 4.41771C10.3478 4.08499 9.43578 3.94949 8.5282 4.02147C7.62062 4.09345 6.74133 4.37102 5.95691 4.83316C5.1725 5.2953 4.50354 5.92989 4.00071 6.68886C3.49788 7.44783 3.17436 8.31128 3.05465 9.2138C2.93495 10.1163 3.0222 11.0343 3.3098 11.8981C3.5974 12.7619 4.07781 13.5489 4.71463 14.1995C5.10094 14.5942 5.09414 15.2274 4.69945 15.6137C4.30476 16 3.67163 15.9932 3.28532 15.5985C2.43622 14.731 1.79568 13.6816 1.41221 12.5299C1.02875 11.3781 0.91241 10.1542 1.07201 8.95084C1.23162 7.74748 1.66298 6.59621 2.33343 5.58425C3.00387 4.57229 3.89581 3.72617 4.9417 3.10998C5.98758 2.4938 7.15998 2.1237 8.37008 2.02773C9.58018 1.93176 10.7963 2.11243 11.9262 2.55605C13.0561 2.99968 14.0703 3.69462 14.8919 4.58825C15.5423 5.29573 16.0585 6.11304 16.4177 7.00002H17.4999C18.6799 6.99991 19.8288 7.37933 20.7766 8.08222C21.7245 8.78515 22.4212 9.7743 22.7637 10.9036C23.1062 12.0328 23.0765 13.2423 22.6788 14.3534C22.2812 15.4644 21.5367 16.4181 20.5554 17.0736C20.0962 17.3803 19.4752 17.2567 19.1684 16.7975C18.8617 16.3382 18.9853 15.7172 19.4445 15.4105C20.069 14.9934 20.5427 14.3865 20.7958 13.6794C21.0488 12.9724 21.0678 12.2027 20.8498 11.4841C20.6318 10.7655 20.1885 10.136 19.5853 9.6887C18.9821 9.24138 18.251 8.99993 17.5001 9.00002H15.71C15.2679 9.00002 14.8783 8.70973 14.7518 8.28611C14.4913 7.41374 14.0357 6.61208 13.4195 5.94186C12.8034 5.27164 12.0427 4.75043 11.1953 4.41771Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M11 14.4142V21C11 21.5523 11.4477 22 12 22C12.5523 22 13 21.5523 13 21V14.4142L15.2929 16.7071C15.6834 17.0976 16.3166 17.0976 16.7071 16.7071C17.0976 16.3166 17.0976 15.6834 16.7071 15.2929L12.7078 11.2936C12.7054 11.2912 12.703 11.2888 12.7005 11.2864C12.5208 11.1099 12.2746 11.0008 12.003 11L12 11L11.997 11C11.8625 11.0004 11.7343 11.0273 11.6172 11.0759C11.502 11.1236 11.3938 11.1937 11.2995 11.2864C11.297 11.2888 11.2946 11.2912 11.2922 11.2936L7.29289 15.2929C6.90237 15.6834 6.90237 16.3166 7.29289 16.7071C7.68342 17.0976 8.31658 17.0976 8.70711 16.7071L11 14.4142Z",fill:"currentColor"})),_Y=()=>J__namespace.default.createElement("svg",{width:"43",height:"57",viewBox:"0 0 43 57",fill:"currentColor",className:"absolute text-[color:rgba(37,39,45,0.1)] dark:text-[color:rgba(238,238,246,0.11)]",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:"M0.75 10.75C0.75 5.64137 4.89137 1.5 10 1.5H32.3431C33.2051 1.5 34.0317 1.84241 34.6412 2.4519L40.2981 8.10876C40.9076 8.71825 41.25 9.5449 41.25 10.4069V46.75C41.25 51.8586 37.1086 56 32 56H10C4.89137 56 0.75 51.8586 0.75 46.75V10.75Z",fill:"currentColor",fillOpacity:"0.11",stroke:"currentColor",strokeWidth:"1.5"})),VY=()=>J__namespace.default.createElement("svg",{width:"10",height:"10",className:"absolute right-1 top-0 h-full text-[color:#D5D6D7] dark:text-[color:#464649]",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:"M0 0.75H0.343146C1.40401 0.75 2.42143 1.17143 3.17157 1.92157L8.82843 7.57843C9.57857 8.32857 10 9.34599 10 10.4069V10.75H4C1.79086 10.75 0 8.95914 0 6.75V0.75Z",fill:"currentColor"})),jY=({onFile:e,children:t,isSelected:o=false})=>{let[r,n]=J.useState(false),[a,s]=J.useState(false),i=f=>{f.preventDefault(),f.stopPropagation(),s(true);},l=f=>{f.preventDefault(),f.stopPropagation(),f.currentTarget.contains(f.relatedTarget)||(s(false),n(false));},d=f=>{f.preventDefault(),f.stopPropagation(),n(true);},c=f=>{f.preventDefault(),f.stopPropagation(),s(false),n(false);let u=Array.from(f.dataTransfer.files);u.length>0&&e(u);},p=ut("relative flex w-full flex-col items-center justify-center gap-3","rounded-[var(--tt-radius-md,0.5rem)] border border-dashed border-[color:rgba(47,50,55,0.2)]","px-6 py-8 text-center transition-[background,border-color,box-shadow] duration-200 ease-out","cursor-pointer select-none","hover:border-[color:rgba(40,44,51,0.42)] hover:bg-[color:#EBF7FD]","dark:border-[color:rgba(239,239,245,0.22)] dark:hover:border-[color:rgba(244,244,255,0.37)] dark:hover:bg-[color:#04517A]",o&&"border-[color:#0B89CE] shadow-[0_0_0_1px_#0B89CE] dark:border-[color:#5FB5EB] dark:shadow-[0_0_0_1px_#5FB5EB]",(a||r)&&"border-[color:#0B89CE] bg-[color:#EBF7FD] dark:border-[color:#5FB5EB] dark:bg-[color:#04517A]");return J__namespace.default.createElement("div",{className:p,"data-drag-state":r?"over":a?"active":"idle",onDragEnter:i,onDragLeave:l,onDragOver:d,onDrop:c},t)},qY=({fileItem:e,onRemove:t})=>{let o=r=>{if(r===0)return "0 Bytes";let n=1024,a=["Bytes","KB","MB","GB"],s=Math.floor(Math.log(r)/Math.log(n));return `${parseFloat((r/Math.pow(n,s)).toFixed(2))} ${a[s]}`};return J__namespace.default.createElement("div",{className:"relative overflow-hidden rounded-[var(--tt-radius-md,0.5rem)]","data-status":e.status},e.status==="uploading"&&J__namespace.default.createElement("div",{className:"absolute left-0 top-0 z-0 h-full rounded-[inherit] bg-[color:#EBF7FD] transition-all duration-300 ease-out dark:bg-[color:#04517A]",style:{width:`${e.progress}%`}}),J__namespace.default.createElement("div",{className:ut("relative z-[1] flex items-center justify-between gap-3","rounded-[var(--tt-radius-md,0.5rem)] border border-[color:rgba(47,50,55,0.2)] bg-white p-4 text-left","transition-colors duration-150","dark:border-[color:rgba(239,239,245,0.22)] dark:bg-[#19191A]")},J__namespace.default.createElement("div",{className:"flex min-h-8 items-center gap-3"},J__namespace.default.createElement("div",{className:"flex h-8 w-8 items-center justify-center rounded-[var(--tt-radius-lg,0.75rem)] bg-[color:#0B89CE] text-white dark:bg-[color:#5FB5EB] dark:text-black"},J__namespace.default.createElement(EA,{className:"h-3.5 w-3.5"})),J__namespace.default.createElement("div",{className:"flex flex-col gap-0.5"},J__namespace.default.createElement("span",{className:"text-sm font-medium leading-normal text-[color:rgba(35,37,42,0.87)] dark:text-[color:rgba(251,251,254,0.75)]"},e.file.name),J__namespace.default.createElement("span",{className:"text-xs font-semibold text-[color:rgba(40,44,51,0.42)] dark:text-[color:rgba(244,244,255,0.37)]"},o(e.file.size)))),J__namespace.default.createElement("div",{className:"flex items-center gap-2"},e.status==="uploading"&&J__namespace.default.createElement("span",{className:"text-xs font-semibold text-[color:#0B89CE] dark:text-[color:#5FB5EB]"},e.progress,"%"),J__namespace.default.createElement(wt,{type:"button","data-style":"ghost",onClick:r=>{r.stopPropagation(),t();}},J__namespace.default.createElement(Q7,{className:"tiptap-button-icon"})))))},WY=({translate:e})=>J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"relative inline-flex h-[3.75rem] w-[3.125rem] select-none items-start justify-center"},J__namespace.default.createElement(_Y,null),J__namespace.default.createElement(VY,null),J__namespace.default.createElement("div",{className:"absolute bottom-0 right-0 flex h-7 w-7 items-center justify-center rounded-[var(--tt-radius-lg,0.75rem)] bg-[color:#0B89CE] text-white dark:bg-[color:#5FB5EB] dark:text-black"},J__namespace.default.createElement(EA,{className:"h-3.5 w-3.5"}))),J__namespace.default.createElement("div",{className:"flex flex-col items-center gap-1 text-center"},J__namespace.default.createElement("span",{className:"text-sm font-medium text-[color:rgba(35,37,42,0.87)] dark:text-[color:rgba(251,251,254,0.75)]"},J__namespace.default.createElement("em",{className:"not-italic underline"},e("article.upload.click-to-upload"))," ",e("article.upload.drag-and-drop")))),kA=e=>{let{accept:t,limit:o,maxSize:r}=e.node.attrs,n=J.useRef(null),a=e.extension,{translate:s}=Ja(),i={maxSize:r,limit:o,accept:t,upload:a.options.upload,onSuccess:a.options.onSuccess,onError:a.options.onError},{fileItems:l,uploadFiles:d,removeFileItem:c,clearAllFiles:p}=UY(i,s),f=h=>j(void 0,null,function*(){let b=yield d(h);if(b.length>0){let x=e.getPos();if(Os(x)){let w=b.map((C,A)=>{var N;let k=((N=h[A])==null?void 0:N.name.replace(/\.[^/.]+$/,""))||"unknown";return {type:a.options.type,attrs:F(y({},a.options),{src:C,alt:k,title:k})}});e.editor.chain().focus().deleteRange({from:x,to:x+e.node.nodeSize}).insertContentAt(x,w).run(),SS(e.editor);}}}),u=h=>{var x,w;let b=h.target.files;if(!b||b.length===0){(w=(x=a.options).onError)==null||w.call(x,new Error(s("article.upload.no-file-selected")));return}f(Array.from(b));},g=()=>{n.current&&l.length===0&&(n.current.value="",n.current.click());},m=l.length>0,v=ut("relative my-8 flex flex-col gap-4 rounded-[var(--tt-radius-md,0.5rem)] outline-none",!m&&"cursor-pointer",e.selected&&"ring-2 ring-[color:#AFDBF5] dark:ring-[color:#04517A]");return J__namespace.default.createElement(react$2.NodeViewWrapper,{className:v,tabIndex:0,onClick:g,"data-selected":e.selected?"true":"false"},!m&&J__namespace.default.createElement(jY,{onFile:f,isSelected:e.selected},J__namespace.default.createElement(WY,{translate:s})),m&&J__namespace.default.createElement("div",{className:"flex flex-col gap-3"},l.length>1&&J__namespace.default.createElement("div",{className:"flex items-center justify-between border-b border-[color:rgba(47,50,55,0.2)] pb-2 text-sm font-medium text-[color:rgba(35,37,42,0.87)] dark:border-[color:rgba(239,239,245,0.22)] dark:text-[color:rgba(251,251,254,0.75)]"},J__namespace.default.createElement("span",null,s("article.upload.uploading-files",{count:l.length})),J__namespace.default.createElement(wt,{type:"button","data-style":"ghost",onClick:h=>{h.stopPropagation(),p();}},s("article.upload.clear-all"))),l.map(h=>J__namespace.default.createElement(qY,{key:h.id,fileItem:h,onRemove:()=>c(h.id)}))),J__namespace.default.createElement("input",{ref:n,name:"file",accept:t,type:"file",multiple:o>1,onChange:u,onClick:h=>h.stopPropagation(),className:"hidden"}))};var TA=react$2.Node.create({name:"imageUpload",group:"block",draggable:true,selectable:true,atom:true,addOptions(){return {type:"image",accept:"image/*",limit:1,maxSize:0,upload:void 0,onError:void 0,onSuccess:void 0,HTMLAttributes:{}}},addAttributes(){return {accept:{default:this.options.accept},limit:{default:this.options.limit},maxSize:{default:this.options.maxSize}}},parseHTML(){return [{tag:'div[data-type="image-upload"]'}]},renderHTML({HTMLAttributes:e}){return ["div",react$2.mergeAttributes({"data-type":"image-upload"},e)]},addNodeView(){return react$2.ReactNodeViewRenderer(kA)},addCommands(){return {setImageUploadNode:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addKeyboardShortcuts(){return {Enter:({editor:e})=>{let{selection:t}=e.state,{nodeAfter:o}=t.$from;if(o&&o.type.name==="imageUpload"&&e.isActive("imageUpload")){let r=e.view.nodeDOM(t.$from.pos);if(r&&r instanceof HTMLElement){let n=r.firstChild;if(n&&n instanceof HTMLElement)return n.click(),true}}return false}}}});var DA=JY__default.default.extend({renderHTML(){return ["div",react$2.mergeAttributes(this.options.HTMLAttributes,{"data-type":this.name}),["hr"]]}});function FA(){let[e,t]=J.useState(false),[o,r]=J.useState(0),{uploadAssets:n}=u0();return {uploadHandler:J.useCallback((s,i,l)=>j(this,null,function*(){r(u=>u+1),t(true);let d=URL.createObjectURL(s),c=0,p=setInterval(()=>{if(l!=null&&l.aborted)return clearInterval(p);c=Math.min(c+Math.random()*15,90),i==null||i({progress:c});},300),f=new Promise((u,g)=>{n({file:s,owner_type:"user",is_public:true},{onSuccess:m=>{var h;clearInterval(p),i==null||i({progress:100});let v=((h=m==null?void 0:m.data)==null?void 0:h.url)||d;v!==d&&URL.revokeObjectURL(d),u(v);},onError:m=>{clearInterval(p),g(m);}});});try{return yield f}catch(u){return clearInterval(p),d}finally{r(u=>{let g=u-1;return g<=0&&t(false),g});}}),[n]),isUploading:e,uploadingCount:o}}function zA({content:e,onContentChange:t,placeholder:o,uploadHandler:r}){return react$2.useEditor({immediatelyRender:false,content:e||"",editorProps:{attributes:{class:"article-editor-content",autocomplete:"off",autocorrect:"off",autocapitalize:"off","aria-label":"\xC1rea de conte\xFAdo principal"}},extensions:[starterKit.StarterKit.configure({horizontalRule:false,link:{openOnClick:false,HTMLAttributes:{class:"text-[#0B89CE] underline hover:text-blue-600"}}}),DA,extensionTextAlign.TextAlign.configure({types:["heading","paragraph"]}),extensionList.TaskList,extensionList.TaskItem.configure({nested:true}),extensionHighlight.Highlight.configure({multicolor:true}),extensionTypography.Typography,extensionSuperscript.Superscript,extensionSubscript.Subscript,extensionImage.Image.configure({HTMLAttributes:{class:"max-w-full h-auto rounded-lg my-4"}}),extensionPlaceholder.Placeholder.configure({placeholder:({node:n})=>n.type.name==="heading"?"Adicione um t\xEDtulo...":o,emptyEditorClass:"is-editor-empty"}),TA.configure({accept:"image/*",maxSize:PS,limit:5,upload:r,onError:()=>reactToastify.toast.error("Erro ao processar imagem")})],onUpdate:({editor:n})=>{t(n.getHTML());}})}var BA=`
|
|
2050
|
+
`;var hS=(e={})=>{var s,i,l,d,c;let{profileApiUrl:t,user:o}=M(),r=p=>j(void 0,null,function*(){var f;if(!t||!(o!=null&&o.accessToken))throw new Error("Missing required API configuration");try{let u=yield hf.request(t,gS,{options:p},{"x-access-token":o.accessToken});return (f=u==null?void 0:u.getPageUsersByUser)!=null&&f.data?u.getPageUsersByUser.data:[]}catch(u){throw u}}),{data:n,isLoading:a}=Ve({queryKey:["page-users-by-user",o==null?void 0:o.id],queryFn:()=>r({filter:"",page:1,perPage:100}),enabled:(s=e.enabled)!=null?s:!!t&&!!(o!=null&&o.accessToken),retry:(i=e.retry)!=null?i:3,retryDelay:(l=e.retryDelay)!=null?l:p=>Math.min(1e3*Dl(2,p),3e4),staleTime:(d=e.staleTime)!=null?d:5*60*1e3,refetchOnWindowFocus:(c=e.refetchOnWindowFocus)!=null?c:false});return {pageUsers:n!=null?n:[],isGettingPageUsers:a}};function Qm({selectedProfileId:e,onProfileSelect:t}){let{user:o,isGettingUser:r}=M(),{pageUsers:n,isGettingPageUsers:a}=hS({enabled:!!(o!=null&&o.id)&&!r}),s=J.useMemo(()=>{if(!o)return [];let p={id:o.id||"",name:o.name||"",avatar:o.avatar||"",role:o.role||"",isPage:false},f=n.map(u=>({id:`page-${u.page.id}`,name:u.page.name||"P\xE1gina sem nome",avatar:u.page.logo||"",role:"P\xE1gina",isPage:true}));return [p,...f]},[o,n]),[i,l]=J.useState("");J.useEffect(()=>{var p;if(s.length>0){let f=e||((p=s[0])==null?void 0:p.id)||"";l(f);}},[s,e]);let d=p=>{l(p);let f=s.find(u=>u.id===p);f&&t(f);},c=r||a||!o||s.length===0;return o?{pagesProfiles:s,selectedValue:i,handleValueChange:d,isLoading:c}:{pagesProfiles:[],selectedValue:"",handleValueChange:()=>{},isLoading:true}}function vS({currentProfile:e,profiles:t,isLoading:o,onSelect:r,isSaved:n,isSavingDraft:a}){let[s,i]=J.useState(false),l=J.useRef(null);return J.useEffect(()=>{let c=p=>{l.current&&!l.current.contains(p.target)&&i(false);};return s&&document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[s]),J__namespace.default.createElement("div",{className:"relative",ref:l},J__namespace.default.createElement("div",{onClick:()=>i(!s),className:"flex items-start gap-3 cursor-pointer hover:bg-gray-100/80 p-2 rounded-lg transition-colors"},J__namespace.default.createElement(ae,{src:e==null?void 0:e.avatar,name:e==null?void 0:e.name,className:"h-10 w-10"}),J__namespace.default.createElement("div",{className:"flex flex-col"},J__namespace.default.createElement("div",{className:"flex gap-2 items-center"},J__namespace.default.createElement("span",{className:"font-medium text-[16px] text-[#050910]"},e==null?void 0:e.name),J__namespace.default.createElement(lucideReact.ChevronDown,{className:U("w-4 h-4 text-gray-500 transition-transform",s&&"rotate-180")})),J__namespace.default.createElement("span",{className:"text-[14px] font-medium text-[#687588]"},(e==null?void 0:e.role)||(e!=null&&e.isPage?"P\xE1gina":""))),a&&J__namespace.default.createElement("span",{className:"text-[14px] text-[#0B89CE] font-medium"},"Salvando..."),n&&!a&&J__namespace.default.createElement("span",{className:"text-[14px] text-[#687588] font-medium"},"Salvo")),s&&J__namespace.default.createElement("div",{className:"absolute top-full left-0 mt-2 w-80 bg-white border border-gray-200 rounded-lg shadow-lg z-[10000] max-h-80 overflow-y-auto"},J__namespace.default.createElement("div",{className:"py-2"},!o&&(t==null?void 0:t.length)===0&&J__namespace.default.createElement("div",{className:"px-4 py-3 text-sm text-gray-500"},"Nenhum perfil dispon\xEDvel"),t==null?void 0:t.map(c=>J__namespace.default.createElement("div",{key:c==null?void 0:c.id,onClick:()=>{r(c),i(false);},className:U("flex items-center gap-3 px-4 py-3 hover:bg-gray-50 cursor-pointer transition-colors",(e==null?void 0:e.id)===(c==null?void 0:c.id)&&"bg-primary/10 m-1 rounded-lg")},J__namespace.default.createElement(ae,{src:c==null?void 0:c.avatar,name:c==null?void 0:c.name,className:"h-8 w-8"}),J__namespace.default.createElement("div",{className:"flex flex-col flex-1"},J__namespace.default.createElement("span",{className:"font-medium text-sm text-gray-900"},c==null?void 0:c.name),J__namespace.default.createElement("span",{className:"text-xs text-gray-500"},(c==null?void 0:c.role)||(c!=null&&c.isPage?"P\xE1gina":""))))))))}var eQ=({children:e})=>{let[t,o]=J.useState(false);return J.useEffect(()=>o(true),[]),t?RW__default.default.createPortal(e,document.body):null},tQ=({trigger:e,children:t,side:o="bottom",align:r="start",className:n,contentClassName:a,desktopWidthClass:s="w-56",sideOffset:i,alignOffset:l,open:d,defaultOpen:c=false,onOpenChange:p,closeOnSelect:f=true,mobileBreakpointPx:u=640,forceMobile:g=false,fullScreenOnMobile:m=true,lockScrollOnMobile:v=true,showMobileHeader:h=true,mobileHeaderTitle:b="Menu",renderMobileHeader:x,renderMobileFooter:w,mobileBodyClassName:C="px-4 py-4 sm:px-2 sm:py-2",onItemSelect:A,contentProps:k})=>{let N=typeof d=="boolean",[I,P]=J.useState(c),S=N?d:I,D=Y=>{N||P(Y),p==null||p(Y);},[T,L]=J.useState(false),E=J.useRef(null);J.useEffect(()=>{let Y=()=>L(g||window.innerWidth<u);return Y(),window.addEventListener("resize",Y),()=>window.removeEventListener("resize",Y)},[g,u]),J.useEffect(()=>{var Y;if(v&&T&&m)return S?E.current=d2():((Y=E.current)==null||Y.call(E),E.current=null),()=>{var H;(H=E.current)==null||H.call(E),E.current=null;}},[S,T,m,v]);let B=()=>{D(false),A&&A();},W=J.useMemo(()=>U("p-0 outline-none",a!=null?a:n),[a,n]),q=T&&m;return J__namespace.default.createElement(Tn,{open:S,onOpenChange:D},J__namespace.default.createElement(Dn,{asChild:true},e),J__namespace.default.createElement(eQ,null,J__namespace.default.createElement(Ln,y({side:o,align:T?"start":r,sideOffset:i,alignOffset:l,className:U(W,q?"fixed inset-0 z-[9999] bg-white/95 backdrop-blur-sm":"z-[9999]",`sm:${s} sm:rounded-lg sm:shadow-lg sm:border sm:border-slate-100 sm:bg-white`,"overflow-auto")},k),q&&h&&J__namespace.default.createElement("div",{className:"sm:hidden flex items-center justify-between px-4 py-3 border-b border-slate-200"},x?x(B):J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"text-sm font-semibold"},b),J__namespace.default.createElement("button",{type:"button","aria-label":"Fechar",className:"p-2 rounded-md hover:bg-slate-100",onClick:B},"\u2715"))),J__namespace.default.createElement("div",{className:U(q?C:"sm:px-2 sm:py-2","space-y-1"),onClick:Y=>{if(!f)return;let H=Y.target;if(!H)return;let z=H.closest("button, a, [data-dropdown-close]");z&&!z.hasAttribute("data-dropdown-ignore")&&B();}},typeof t=="function"?t(B):t),q&&(w?J__namespace.default.createElement("div",{className:"sm:hidden"},w(B)):J__namespace.default.createElement("div",{className:"sm:hidden h-12"})))))},yS=tQ;function oQ(e){let{fontSize:t=16}=e;return J__namespace.createElement("svg",y({width:t,height:t,fill:"none"},e),J__namespace.createElement("path",{d:"M15.5 6.714v6.394c0 2.616-1.647 4.225-4.281 4.225H4.772C2.162 17.333.5 15.691.5 13.058V6.714h15zm-4.133 5.945a.692.692 0 00-.675.707c0 .383.304.7.683.708.387 0 .7-.316.7-.708a.703.703 0 00-.7-.707h-.008zm-6.775-.01a.712.712 0 00-.675.717c.016.383.33.685.708.667a.685.685 0 00.65-.716.682.682 0 00-.683-.668zm3.391 0a.713.713 0 00-.674.717c.016.383.329.685.708.667a.685.685 0 00.65-.716.682.682 0 00-.684-.668zM4.6 9.625a.713.713 0 00-.675.717c.016.382.33.683.708.666a.685.685 0 00.65-.717.681.681 0 00-.683-.666zm3.383 0a.713.713 0 00-.674.717c.016.382.329.683.708.666a.685.685 0 00.65-.717.681.681 0 00-.684-.666zm3.392.009a.692.692 0 00-.675.7v.008a.679.679 0 101.359-.041.692.692 0 00-.684-.667z",fill:"#687588"}),J__namespace.createElement("path",{opacity:.4,d:"M.502 6.714c.01-.49.052-1.46.13-1.772.394-1.758 1.736-2.875 3.655-3.034h7.425c1.902.168 3.26 1.292 3.656 3.034.076.304.117 1.282.128 1.772H.502z",fill:"#687588"}),J__namespace.createElement("path",{d:"M4.921 4.492a.622.622 0 00.634-.642V1.31A.623.623 0 004.92.666a.623.623 0 00-.634.642V3.85c0 .368.272.642.634.642zM11.08 4.492a.627.627 0 00.633-.642V1.31a.628.628 0 00-.634-.643.623.623 0 00-.634.642V3.85c0 .368.272.642.634.642z",fill:"#687588"}))}var rQ=J__namespace.memo(oQ),bS=rQ;var N0=zustand.create(e=>({selectedOption:null,isOpen:false,setSelectedOption:t=>e({selectedOption:t}),toggleOpen:()=>e(t=>({isOpen:!t.isOpen}))}));function wS({isSaved:e,isSavingDraft:t,isPublishing:o,onPublish:r,onProfileSelect:n,canPublish:a,selectedProfile:s}){var h,b,x,w;let{translate:i}=Oe(),{selectedOption:l,setSelectedOption:d}=N0(),{translate:c}=Ja(),{user:p}=M(),f=s||{id:(h=p==null?void 0:p.id)!=null?h:"",name:(b=p==null?void 0:p.name)!=null?b:"",avatar:(x=p==null?void 0:p.avatar)!=null?x:"",role:(w=p==null?void 0:p.headline)!=null?w:"",isPage:false},{pagesProfiles:u,isLoading:g}=Qm({selectedProfileId:f.id,onProfileSelect:()=>{}}),m=[{id:"article-drafts",label:"Hist\xF3rico de rascunhos",icon:J__namespace.default.createElement(bS,null)}],v=(C,A)=>{switch(C){case "article-drafts":d(C);break}A();};return J__namespace.default.createElement("div",{className:"flex items-center justify-between h-[78px] p-4 m-6 bg-white rounded-2xl border border-[#E4EBF1]"},J__namespace.default.createElement(vS,{currentProfile:f,profiles:u,isLoading:g,isSaved:e,isSavingDraft:t,onSelect:C=>n==null?void 0:n(C)}),J__namespace.default.createElement("div",{className:"flex items-center gap-3"},J__namespace.default.createElement(g0,{defaultValue:"all"},J__namespace.default.createElement(el,{className:"w-[100px] border border-gray-200 rounded-lg bg-white"},J__namespace.default.createElement(h0,{placeholder:"Todos"})),J__namespace.default.createElement(tl,{className:"z-[9999]"},J__namespace.default.createElement(xn,{value:"all"},"Todos"),J__namespace.default.createElement(xn,{value:"connections"},i("feed.create-post.filters.connections")),J__namespace.default.createElement(xn,{value:"communities"},i("feed.create-post.filters.communities")))),J__namespace.default.createElement(le,{disabled:!a||o,onClick:r,className:"bg-[#0B89CE] hover:bg-[#0B89CE]/90 text-white px-6 py-2 rounded-lg font-medium"},c(o?"article.buttons.publishing":"article.buttons.publish")),J__namespace.default.createElement(yS,{side:"bottom",align:"start",className:"mt-4 w-[15rem] rounded-[1rem] bg-white z-[9999]",trigger:J__namespace.default.createElement(lucideReact.EllipsisVertical,{className:"cursor-pointer",size:20,color:"#687588"})},C=>J__namespace.default.createElement(react.AnimatePresence,null,J__namespace.default.createElement(react.motion.div,{key:"dropdown",initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.2,ease:"easeOut"},className:"flex flex-col w-full"},m.map(A=>J__namespace.default.createElement(react.motion.button,{key:A.id,onClick:()=>v(A.id,C),className:"w-full flex items-center gap-2 p-2 text-left text-sm text-[#050910] hover:bg-slate-100 transition-colors",whileHover:{scale:1.02},whileTap:{scale:.97},disabled:A.id===l},A.icon,J__namespace.default.createElement("span",{className:"flex-1 truncate text-body-sm md:text-body-md text-[#687588] font-medium"},A.label))))))))}var PS=5*1024*1024,dQ={mod:"\u2318",command:"\u2318",meta:"\u2318",ctrl:"\u2303",control:"\u2303",alt:"\u2325",option:"\u2325",shift:"\u21E7",backspace:"Del",delete:"\u2326",enter:"\u23CE",escape:"\u238B",capslock:"\u21EA"};function ut(...e){return e.filter(Boolean).join(" ")}function cQ(){return typeof navigator!="undefined"&&navigator.platform.toLowerCase().includes("mac")}var pQ=(e,t,o=true)=>{if(t){let r=e.toLowerCase();return dQ[r]||(o?e.toUpperCase():e)}return o?e.charAt(0).toUpperCase()+e.slice(1):e},$o=e=>{let{shortcutKeys:t,delimiter:o="+",capitalize:r=true}=e;return t?t.split(o).map(n=>n.trim()).map(n=>pQ(n,cQ(),r)):[]},Yi=(e,t)=>t!=null&&t.schema?t.schema.spec.marks.get(e)!==void 0:false,fa=(e,t)=>t!=null&&t.schema?t.schema.spec.nodes.get(e)!==void 0:false;function SS(e){let{state:t,view:o}=e,{doc:r,selection:n}=t,a=state.Selection.findFrom(n.$to,1,true);if(a)return o.dispatch(t.tr.setSelection(a).scrollIntoView()),true;let s=t.schema.nodes.paragraph;if(!s)return console.warn("No paragraph node type found in schema."),false;let i=r.content.size,l=s.create(),d=t.tr.insert(i,l),c=d.doc.resolve(i+1);return d=d.setSelection(state.TextSelection.near(c)).scrollIntoView(),o.dispatch(d),true}function Os(e){return typeof e=="number"&&e>=0}function Hs(e,t){if(!e)return false;let o=Array.isArray(t)?t:[t],r=o.some(n=>e.extensionManager.extensions.some(a=>a.name===n));return r||console.warn(`None of the extensions [${o.join(", ")}] were found in the editor schema. Ensure they are included in the editor configuration.`),r}function mQ(e,t){try{let o=e.state.doc.nodeAt(t);return o||(console.warn(`No node found at position ${t}`),null)}catch(o){return console.error(`Error getting node at position ${t}:`,o),null}}function I0(e){var s;let{editor:t,node:o,nodePos:r}=e;if(!t||!((s=t.state)!=null&&s.doc))return null;let n=o!=null,a=Os(r);if(!n&&!a)return null;if(n){let i=-1,l=null;if(t.state.doc.descendants((d,c)=>d===o?(i=c,l=d,false):true),i!==-1&&l!==null)return {pos:i,node:l}}if(a){let i=mQ(t,r);if(i)return {pos:r,node:i}}return null}function wr(e,t=[],o=false){if(!e||!e.state.selection)return false;let{selection:r}=e.state;if(r.empty)return false;if(r instanceof state.NodeSelection){let n=r.node;return n?t.includes(n.type.name):false}if(o){let{$from:n}=r;for(let a=n.depth;a>0;a--){let s=n.node(a);if(t.includes(s.type.name))return true}}return false}function E0(e,t=[]){var a,s;if(!e||t.length===0)return false;let{state:o}=e,{selection:r}=o,n=new Set(t);if(r instanceof state.NodeSelection){let i=(s=(a=r.node)==null?void 0:a.type)==null?void 0:s.name;return !!i&&n.has(i)}if(r instanceof state.TextSelection||r instanceof state.AllSelection){let i=true;return o.doc.nodesBetween(r.from,r.to,l=>l.isTextblock&&!n.has(l.type.name)?(i=false,false):i),i}return false}var uQ=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function fQ(e,t){let o=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return !e||e.replace(uQ,"").match(new RegExp(`^(?:(?:${o.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}function AS(e,t,o){try{let r=new URL(e,t);if(fQ(r.href,o))return r.href}catch(r){}return "#"}var cl=J.forwardRef((a,n)=>{var s=a,{decorative:e,orientation:t="vertical",className:o}=s,r=Q(s,["decorative","orientation","className"]);let l=e?{role:"none"}:{"aria-orientation":t==="vertical"?t:void 0,role:"separator"},d=ut("flex-shrink-0 bg-[rgba(37,39,45,0.1)] dark:bg-[rgba(238,238,246,0.11)]",t==="horizontal"?"h-px w-full my-2":"h-6 w-px",o);return J__namespace.default.createElement("div",F(y(y({className:d,"data-orientation":t},l),r),{ref:n}))});cl.displayName="Separator";function Km({editor:e,containerRef:t,query:o,items:r,onSelect:n,onClose:a,orientation:s="vertical",autoSelectFirstItem:i=true}){let[l,d]=J.useState(i?0:-1);return J.useEffect(()=>{let c=f=>{if(!r.length)return false;let u=()=>d(m=>m===-1?0:(m+1)%r.length),g=()=>d(m=>m===-1?r.length-1:(m-1+r.length)%r.length);switch(f.key){case "ArrowUp":return s==="horizontal"?false:(f.preventDefault(),g(),true);case "ArrowDown":return s==="horizontal"?false:(f.preventDefault(),u(),true);case "ArrowLeft":return s==="vertical"?false:(f.preventDefault(),g(),true);case "ArrowRight":return s==="vertical"?false:(f.preventDefault(),u(),true);case "Tab":return f.preventDefault(),f.shiftKey?g():u(),true;case "Home":return f.preventDefault(),d(0),true;case "End":return f.preventDefault(),d(r.length-1),true;case "Enter":return f.isComposing?false:(f.preventDefault(),l!==-1&&r[l]&&(n==null||n(r[l])),true);case "Escape":return f.preventDefault(),a==null||a(),true;default:return false}},p=null;if(e?p=e.view.dom:t!=null&&t.current&&(p=t.current),p)return p.addEventListener("keydown",c,true),()=>{p==null||p.removeEventListener("keydown",c,true);}},[e,t,r,l,n,a,s]),J.useEffect(()=>{o&&d(i?0:-1);},[o,i]),{selectedIndex:r.length?l:void 0,setSelectedIndex:d}}var IS=(e,t)=>{typeof e=="function"?e(t):e&&typeof e=="object"&&"current"in e&&(e.current=t);},ES=(e,t)=>{let o=J.useRef(null);return J.useCallback(r=>{e&&"current"in e&&(e.current=r),o.current&&IS(o.current,null),o.current=t,t&&IS(t,r);},[e,t])};var MQ=e=>{let[t,o]=J.useState([]),r=J.useCallback(()=>e.current?Array.from(e.current.querySelectorAll('button:not([disabled]), [role="button"]:not([disabled]), [tabindex="0"]:not([disabled])')):[],[e]);J.useEffect(()=>{let a=e.current;if(!a)return;let s=()=>o(r());s();let i=new MutationObserver(s);return i.observe(a,{childList:true,subtree:true}),()=>i.disconnect()},[r,e]);let{selectedIndex:n}=Km({containerRef:e,items:t,orientation:"horizontal",onSelect:a=>a.click(),autoSelectFirstItem:false});J.useEffect(()=>{let a=e.current;if(!a)return;let s=l=>{let d=l.target;a.contains(d)&&d.setAttribute("data-focus-visible","true");},i=l=>{let d=l.target;a.contains(d)&&d.removeAttribute("data-focus-visible");};return a.addEventListener("focus",s,true),a.addEventListener("blur",i,true),()=>{a.removeEventListener("focus",s,true),a.removeEventListener("blur",i,true);}},[e]),J.useEffect(()=>{n!==void 0&&t[n]&&t[n].focus();},[n,t]);},k8=J.forwardRef((s,a)=>{var i=s,{children:e,className:t,variant:o="fixed",style:r}=i,n=Q(i,["children","className","variant","style"]);let l=J.useRef(null),d=ES(l,a);MQ(l);let c=ut("flex items-center gap-1",o==="fixed"?ut("sticky top-0 z-10 w-full min-h-[2.75rem] px-2","overflow-x-auto overscroll-x-contain [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden","bg-white dark:bg-black","border-b border-[rgba(15,22,36,0.05)] dark:border-[rgba(232,232,253,0.05)]","max-[480px]:absolute max-[480px]:top-auto max-[480px]:flex-nowrap max-[480px]:justify-start","max-[480px]:border-t max-[480px]:border-b-0","max-[480px]:px-2 max-[480px]:pb-[var(--tt-safe-area-bottom,0px)]","max-[480px]:h-[calc(2.75rem+var(--tt-safe-area-bottom,0px))]"):ut("p-[0.1875rem]","rounded-[calc(0.125rem+var(--tt-radius-lg,0.75rem)+1px)]","border border-[rgba(15,22,36,0.05)] dark:border-[rgba(232,232,253,0.05)]","bg-white dark:bg-black shadow-[0_16px_48px_0_rgba(17,24,39,0.04),0_12px_24px_0_rgba(17,24,39,0.04),0_6px_8px_0_rgba(17,24,39,0.02),0_2px_3px_0_rgba(17,24,39,0.02)]","outline-none overflow-hidden","max-[480px]:w-full max-[480px]:rounded-none max-[480px]:border-0 max-[480px]:shadow-none"),t),p=y({"--tt-safe-area-bottom":"env(safe-area-inset-bottom, 0px)"},r);return J__namespace.default.createElement("div",y({ref:d,role:"toolbar","aria-label":"toolbar","data-variant":o,className:c,style:p},n),e)});k8.displayName="Toolbar";var Gs=J.forwardRef((n,r)=>{var a=n,{children:e,className:t}=a,o=Q(a,["children","className"]);return J__namespace.default.createElement("div",y({ref:r,role:"group",className:ut("flex items-center gap-[0.125rem] empty:hidden",t)},o),e)});Gs.displayName="ToolbarGroup";var Ji=J.forwardRef((o,t)=>{var e=Q(o,[]);return J__namespace.default.createElement(cl,y({ref:t,orientation:"vertical",decorative:true},e))});Ji.displayName="ToolbarSeparator";function Xa(e="max",t=768){let[o,r]=J.useState(void 0);return J.useEffect(()=>{let n=e==="min"?`(min-width: ${t}px)`:`(max-width: ${t-1}px)`,a=window.matchMedia(n),s=i=>r(i.matches);return r(a.matches),a.addEventListener("change",s),()=>a.removeEventListener("change",s)},[e,t]),!!o}function kS({title:e,onTitleChange:t}){let{translate:o}=Ja();return J__namespace.default.createElement("input",{type:"text",value:e,onChange:r=>t(r.target.value),placeholder:o("article.editor.title-placeholder"),className:"text-[24px] font-bold text-[#050910] border-none outline-none placeholder:text-gray-400 w-full resize-none"})}function WQ({initialOpen:e=false,placement:t="top",open:o,onOpenChange:r,delay:n=600,closeDelay:a=0}={}){let[s,i]=J.useState(e),l=o!=null?o:s,d=r!=null?r:i,c=react$1.useFloating({placement:t,open:l,onOpenChange:d,whileElementsMounted:react$1.autoUpdate,middleware:[react$1.offset(4),react$1.flip({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:4}),react$1.shift({padding:4})]}),p=c.context,f=react$1.useHover(p,{mouseOnly:true,move:false,restMs:n,enabled:o==null,delay:{close:a}}),u=react$1.useFocus(p,{enabled:o==null}),g=react$1.useDismiss(p),m=react$1.useRole(p,{role:"tooltip"}),v=react$1.useInteractions([f,u,g,m]);return J.useMemo(()=>y(y({open:l,setOpen:d},v),c),[l,d,v,c])}var T8=J.createContext(null);function FS(){let e=J.useContext(T8);if(e==null)throw new Error("Tooltip components must be wrapped in <TooltipProvider />");return e}function D8(o){var r=o,{children:e}=r,t=Q(r,["children"]);var a,s;let n=WQ(t);return t.useDelayGroup?J__namespace.default.createElement(react$1.FloatingDelayGroup,{delay:{open:(a=t.delay)!=null?a:0,close:(s=t.closeDelay)!=null?s:0},timeoutMs:t.timeout},J__namespace.default.createElement(T8.Provider,{value:n},e)):J__namespace.default.createElement(T8.Provider,{value:n},e)}var L8=J.forwardRef(function(a,n){var s=a,{children:t,asChild:o=false}=s,r=Q(s,["children","asChild"]);let i=FS(),l=J.isValidElement(t)?parseInt(J.version,10)>=19?t.props.ref:t.ref:void 0,d=react$1.useMergeRefs([i.refs.setReference,n,l]);if(o&&J.isValidElement(t)){let c={"data-tooltip-state":i.open?"open":"closed"};return J.cloneElement(t,i.getReferenceProps(y(y(y({ref:d},r),typeof t.props=="object"?t.props:{}),c)))}return J__namespace.default.createElement("button",y({ref:d,"data-tooltip-state":i.open?"open":"closed"},i.getReferenceProps(r)),t)}),F8=J.forwardRef(function(l,i){var d=l,{style:t,className:o,children:r,portal:n=true,portalProps:a={}}=d,s=Q(d,["style","className","children","portal","portalProps"]);let c=FS(),p=react$1.useMergeRefs([c.refs.setFloating,i]);if(!c.open)return null;let f=ut("z-[200] overflow-hidden rounded-[var(--tt-radius-md,0.375rem)]","bg-[#222325] px-2 py-1.5 text-xs font-medium text-white","shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.1)] text-center","dark:bg-white dark:text-[color:#53565A]","[&>kbd]:inline-block [&>kbd]:text-center [&>kbd]:capitalize [&>kbd]:align-middle","[&>kbd]:text-[color:rgba(244,244,255,0.37)]","dark:[&>kbd]:text-[color:rgba(40,44,51,0.42)]",o),u=J__namespace.default.createElement("div",F(y({ref:p,style:y(y({},c.floatingStyles),t)},c.getFloatingProps(s)),{className:f}),r);return n?J__namespace.default.createElement(react$1.FloatingPortal,y({},a),u):u});D8.displayName="Tooltip";L8.displayName="TooltipTrigger";F8.displayName="TooltipContent";var ZQ=({shortcuts:e})=>e.length===0?null:J__namespace.default.createElement("div",null,e.map((t,o)=>J__namespace.default.createElement(J.Fragment,{key:o},o>0&&J__namespace.default.createElement("kbd",null,"+"),J__namespace.default.createElement("kbd",null,t)))),wt=J.forwardRef((l,i)=>{var d=l,{className:e,children:t,tooltip:o,showTooltip:r=true,shortcutKeys:n,"aria-label":a}=d,s=Q(d,["className","children","tooltip","showTooltip","shortcutKeys","aria-label"]);let c=J.useMemo(()=>$o({shortcutKeys:n}),[n]),p=ut("inline-flex items-center justify-center gap-[0.25rem]","h-8 min-w-8 px-2 text-sm font-medium leading-[1.15]","border-0 rounded-[var(--tt-radius-lg,0.75rem)]","transition-[background,color,opacity]","duration-[var(--tt-transition-duration-default)]","ease-[var(--tt-transition-easing-default)]","focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-60","bg-[rgba(15,22,36,0.05)] text-[color:rgba(36,39,46,0.78)]","dark:bg-[rgba(231,231,243,0.07)] dark:text-[color:rgba(247,247,253,0.64)]","hover:bg-[#EAEAEB] hover:text-[color:rgba(29,30,32,0.98)]","dark:hover:bg-[#2D2D2F] dark:hover:text-[color:rgba(255,255,255,0.96)]","data-[active-state=on]:bg-[#D7EEFA] data-[active-state=on]:text-[color:rgba(29,30,32,0.98)]","dark:data-[active-state=on]:bg-[rgba(238,238,246,0.11)] dark:data-[active-state=on]:text-[color:rgba(255,255,255,0.96)]","data-[style=ghost]:bg-transparent","data-[style=ghost]:text-[color:rgba(36,39,46,0.78)]","dark:data-[style=ghost]:text-[color:rgba(247,247,253,0.64)]","data-[style=ghost]:hover:bg-[#EAEAEB]","dark:data-[style=ghost]:hover:bg-[#2D2D2F]","[&[data-style=ghost][data-active-state=on]]:bg-[rgba(15,22,36,0.05)]","dark:[&[data-style=ghost][data-active-state=on]]:bg-[rgba(231,231,243,0.07)]","[&[data-style=ghost][data-active-state=on]]:text-[color:rgba(29,30,32,0.98)]","dark:[&[data-style=ghost][data-active-state=on]]:text-[color:rgba(255,255,255,0.96)]","data-[style=primary]:bg-[#0B89CE]","data-[style=primary]:text-white","data-[style=primary]:hover:bg-[#097BB9]","[&[data-style=primary][data-active-state=on]]:bg-[#AFDBF5]","[&[data-style=primary][data-active-state=on]]:text-[color:rgba(29,30,32,0.98)]","dark:[&[data-style=primary][data-active-state=on]]:text-[color:rgba(255,255,255,0.96)]","disabled:bg-[rgba(56,56,56,0.04)] disabled:text-[color:rgba(40,44,51,0.42)]","dark:disabled:bg-[rgba(232,232,253,0.05)] dark:disabled:text-[color:rgba(239,239,245,0.22)]","[&_.tiptap-button-icon]:h-4 [&_.tiptap-button-icon]:w-4","[&_.tiptap-button-icon]:text-[rgba(36,39,46,0.78)]","dark:[&_.tiptap-button-icon]:text-[rgba(247,247,253,0.64)]","hover:[&_.tiptap-button-icon]:text-[rgba(29,30,32,0.98)]","dark:hover:[&_.tiptap-button-icon]:text-[rgba(255,255,255,0.96)]","data-[active-state=on]:[&_.tiptap-button-icon]:text-[#0B89CE]","dark:data-[active-state=on]:[&_.tiptap-button-icon]:text-[#5FB5EB]","disabled:[&_.tiptap-button-icon]:text-[rgba(40,44,51,0.42)]","dark:disabled:[&_.tiptap-button-icon]:text-[rgba(244,244,255,0.37)]","[&_.tiptap-button-icon-sub]:h-4 [&_.tiptap-button-icon-sub]:w-4","[&_.tiptap-button-dropdown-arrows]:h-3 [&_.tiptap-button-dropdown-arrows]:w-3","[&_.tiptap-button-dropdown-small]:h-2.5 [&_.tiptap-button-dropdown-small]:w-2.5","[&_.tiptap-button-text]:px-[0.125rem] [&_.tiptap-button-text]:flex-1 [&_.tiptap-button-text]:text-left [&_.tiptap-button-text]:leading-6","[&[data-text-trim=on]_.tiptap-button-text]:truncate","data-[size=large]:text-[0.9375rem] data-[size=large]:h-[2.375rem] data-[size=large]:min-w-[2.375rem] data-[size=large]:px-[0.625rem]","data-[size=large]:[&_.tiptap-button-icon]:h-[1.125rem] data-[size=large]:[&_.tiptap-button-icon]:w-[1.125rem]","data-[size=large]:[&_.tiptap-button-icon-sub]:h-[1.125rem] data-[size=large]:[&_.tiptap-button-icon-sub]:w-[1.125rem]","data-[size=large]:[&_.tiptap-button-dropdown-arrows]:h-[0.875rem] data-[size=large]:[&_.tiptap-button-dropdown-arrows]:w-[0.875rem]","data-[size=large]:[&_.tiptap-button-dropdown-small]:h-3 data-[size=large]:[&_.tiptap-button-dropdown-small]:w-3","data-[size=small]:text-xs data-[size=small]:h-6 data-[size=small]:min-w-6 data-[size=small]:px-[0.3125rem] data-[size=small]:rounded-[var(--tt-radius-md,0.5rem)]","data-[size=small]:[&_.tiptap-button-icon]:h-[0.875rem] data-[size=small]:[&_.tiptap-button-icon]:w-[0.875rem]","data-[size=small]:[&_.tiptap-button-icon-sub]:h-[0.875rem] data-[size=small]:[&_.tiptap-button-icon-sub]:w-[0.875rem]","data-[size=small]:[&_.tiptap-button-dropdown-arrows]:h-[0.625rem] data-[size=small]:[&_.tiptap-button-dropdown-arrows]:w-[0.625rem]","data-[size=small]:[&_.tiptap-button-dropdown-small]:h-[0.5rem] data-[size=small]:[&_.tiptap-button-dropdown-small]:w-[0.5rem]","data-[weight=small]:w-6 data-[weight=small]:min-w-6 data-[weight=small]:px-0","has-[>svg]:gap-[0.125rem]");return !o||!r?J__namespace.default.createElement("button",y({className:ut(p,e),ref:i,"aria-label":a},s),t):J__namespace.default.createElement(D8,{delay:200},J__namespace.default.createElement(L8,y({className:ut(p,e),ref:i,"aria-label":a},s),t),J__namespace.default.createElement(F8,null,o,J__namespace.default.createElement(ZQ,{shortcuts:c})))});wt.displayName="Button";var ga=J.forwardRef((a,n)=>{var s=a,{className:e,children:t,orientation:o="vertical"}=s,r=Q(s,["className","children","orientation"]);let i=ut("relative flex",o==="vertical"?"flex-col items-start justify-center min-w-max [&>button]:w-full [&>button]:flex":"flex-row items-center gap-[0.125rem]",e);return J__namespace.default.createElement("div",y({ref:n,className:i,"data-orientation":o,role:"group"},r),t)});ga.displayName="ButtonGroup";function BS(n){var a=n,{orientation:e="horizontal",size:t,style:o={}}=a,r=Q(a,["orientation","size","style"]);let s=y(y(y({},o),e==="horizontal"&&!t&&{flex:1}),t&&{width:e==="vertical"?"1px":t,height:e==="horizontal"?"1px":t});return J__namespace.default.createElement("div",F(y({},r),{style:s}))}var _c=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z",fill:"currentColor"}))});_c.displayName="ChevronDownIcon";function je(e){let{editor:t}=react$2.useCurrentEditor(),o=J.useMemo(()=>e||t,[e,t]);return react$2.useEditorState({editor:o,selector(n){return n.editor?{editor:n.editor,editorState:n.editor.state,canCommand:n.editor.can}:{editor:null,editorState:void 0,canCommand:void 0}}})||{editor:null}}var oK={default:"bg-white text-[color:rgba(52,55,60,0.64)] border border-[rgba(37,39,45,0.1)] dark:bg-black dark:text-[color:rgba(236,238,253,0.5)] dark:border-[rgba(238,238,246,0.11)] [&_.tiptap-badge-icon]:text-[rgba(52,55,60,0.64)] dark:[&_.tiptap-badge-icon]:text-[rgba(236,238,253,0.5)]",ghost:"bg-transparent text-[color:rgba(52,55,60,0.64)] border border-[rgba(37,39,45,0.1)] dark:text-[color:rgba(236,238,253,0.5)] dark:border-[rgba(238,238,246,0.11)] [&_.tiptap-badge-icon]:text-[rgba(52,55,60,0.64)] dark:[&_.tiptap-badge-icon]:text-[rgba(236,238,253,0.5)]",white:"bg-white text-[color:rgba(36,39,46,0.78)] border border-[rgba(37,39,45,0.1)] dark:bg-white dark:text-[color:rgba(247,247,253,0.64)] dark:border-[rgba(238,238,246,0.11)] [&_.tiptap-badge-icon]:text-[rgba(36,39,46,0.78)] dark:[&_.tiptap-badge-icon]:text-[rgba(247,247,253,0.64)]",gray:"bg-[rgba(15,22,36,0.05)] text-[color:rgba(52,55,60,0.64)] border border-[rgba(37,39,45,0.1)] dark:bg-[rgba(231,231,243,0.07)] dark:text-[color:rgba(236,238,253,0.5)] dark:border-[rgba(238,238,246,0.11)] [&_.tiptap-badge-icon]:text-[rgba(52,55,60,0.64)] dark:[&_.tiptap-badge-icon]:text-[rgba(236,238,253,0.5)]",green:"bg-[hsl(129,100%,92%)] text-[color:hsl(146,100%,24%)] border border-[color:hsl(133,98%,78%)] [&_.tiptap-badge-icon]:text-[hsl(146,100%,24%)] dark:bg-[hsl(144,100%,16%)] dark:text-[color:hsl(131,100%,86%)] dark:border-[color:hsl(146,98%,32%)] dark:[&_.tiptap-badge-icon]:text-[hsl(131,100%,86%)]"},rK={default:"",subdued:"opacity-80",emphasized:"font-semibold"},ir=J.forwardRef((d,l)=>{var c=d,{variant:e="default",size:t="default",appearance:o="default",trimText:r=false,className:n,style:a,children:s}=c,i=Q(c,["variant","size","appearance","trimText","className","style","children"]);let p=t==="small"?"h-4 min-w-4 px-[0.1875rem] text-[0.5625rem] rounded-[var(--tt-radius-xs,0.25rem)] [&_.tiptap-badge-icon]:h-[0.5rem] [&_.tiptap-badge-icon]:w-[0.5rem]":"h-5 min-w-5 px-1 text-[0.625rem] rounded-[var(--tt-radius-sm,0.375rem)] [&_.tiptap-badge-icon]:h-[0.625rem] [&_.tiptap-badge-icon]:w-[0.625rem]",f=ut("inline-flex items-center justify-center","leading-[1.15] font-bold","transition-[background,color,opacity]","duration-[var(--tt-transition-duration-default)]","ease-[var(--tt-transition-easing-default)]","border","[&_.tiptap-badge-text]:px-[0.125rem] [&_.tiptap-badge-text]:flex-1 [&_.tiptap-badge-text]:text-left",r&&"[&_.tiptap-badge-text]:truncate",oK[e],rK[o],p,n);return J__namespace.default.createElement("div",y({ref:l,className:f,"data-style":e,"data-size":t,"data-appearance":o,"data-text-trim":r?"on":"off",style:y({fontFeatureSettings:'"salt" on, "cv01" on'},a)},i),s)});ir.displayName="Badge";function sK({level:e,shortcutKeys:t=B8[e]}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:t}))}var z8=J.forwardRef((c,d)=>{var p=c,{editor:e,level:t,text:o,hideWhenUnavailable:r=false,onToggled:n,showShortcut:a=false,onClick:s,children:i}=p,l=Q(p,["editor","level","text","hideWhenUnavailable","onToggled","showShortcut","onClick","children"]);let{editor:f}=je(e),{isVisible:u,canToggle:g,isActive:m,handleToggle:v,label:h,Icon:b,shortcutKeys:x}=HS({editor:f,level:t,hideWhenUnavailable:r,onToggled:n}),w=J.useCallback(C=>{s==null||s(C),!C.defaultPrevented&&v();},[v,s]);return u?J__namespace.default.createElement(wt,F(y({type:"button","data-style":"ghost","data-active-state":m?"on":"off",role:"button",tabIndex:-1,disabled:!g,"data-disabled":!g,"aria-label":h,"aria-pressed":m,tooltip:h,onClick:w},l),{ref:d}),i!=null?i:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(b,{className:"tiptap-button-icon"}),o&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},o),a&&J__namespace.default.createElement(sK,{level:t,shortcutKeys:x}))):null});z8.displayName="HeadingButton";var H8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M21.0001 10C21.0001 9.63121 20.7971 9.29235 20.472 9.11833C20.1468 8.94431 19.7523 8.96338 19.4454 9.16795L16.4454 11.168C15.9859 11.4743 15.8617 12.0952 16.1681 12.5547C16.4744 13.0142 17.0953 13.1384 17.5548 12.8321L19.0001 11.8685V18C19.0001 18.5523 19.4478 19 20.0001 19C20.5524 19 21.0001 18.5523 21.0001 18V10Z",fill:"currentColor"}))});H8.displayName="HeadingOneIcon";var U8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M22.0001 12C22.0001 10.7611 21.1663 9.79297 20.0663 9.42632C18.9547 9.05578 17.6171 9.28724 16.4001 10.2C15.9582 10.5314 15.8687 11.1582 16.2001 11.6C16.5314 12.0418 17.1582 12.1314 17.6001 11.8C18.383 11.2128 19.0455 11.1942 19.4338 11.3237C19.8339 11.457 20.0001 11.7389 20.0001 12C20.0001 12.4839 19.8554 12.7379 19.6537 12.9481C19.4275 13.1837 19.1378 13.363 18.7055 13.6307C18.6313 13.6767 18.553 13.7252 18.4701 13.777C17.9572 14.0975 17.3128 14.5261 16.8163 15.2087C16.3007 15.9177 16.0001 16.8183 16.0001 18C16.0001 18.5523 16.4478 19 17.0001 19H21.0001C21.5523 19 22.0001 18.5523 22.0001 18C22.0001 17.4477 21.5523 17 21.0001 17H18.131C18.21 16.742 18.3176 16.5448 18.4338 16.385C18.6873 16.0364 19.0429 15.7775 19.5301 15.473C19.5898 15.4357 19.6536 15.3966 19.7205 15.3556C20.139 15.0992 20.6783 14.7687 21.0964 14.3332C21.6447 13.7621 22.0001 13.0161 22.0001 12Z",fill:"currentColor"}))});U8.displayName="HeadingTwoIcon";var _8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4608 11.2169C19.1135 11.0531 18.5876 11.0204 18.0069 11.3619C17.5309 11.642 16.918 11.4831 16.638 11.007C16.358 10.531 16.5169 9.91809 16.9929 9.63807C18.1123 8.97962 19.3364 8.94691 20.314 9.40808C21.2839 9.86558 21.9999 10.818 21.9999 12C21.9999 12.7957 21.6838 13.5587 21.1212 14.1213C20.5586 14.6839 19.7956 15 18.9999 15C18.4476 15 17.9999 14.5523 17.9999 14C17.9999 13.4477 18.4476 13 18.9999 13C19.2651 13 19.5195 12.8947 19.707 12.7071C19.8946 12.5196 19.9999 12.2652 19.9999 12C19.9999 11.6821 19.8159 11.3844 19.4608 11.2169Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0001 14C18.0001 13.4477 18.4478 13 19.0001 13C19.7957 13 20.5588 13.3161 21.1214 13.8787C21.684 14.4413 22.0001 15.2043 22.0001 16C22.0001 17.2853 21.2767 18.3971 20.1604 18.8994C19.0257 19.41 17.642 19.2315 16.4001 18.3C15.9582 17.9686 15.8687 17.3418 16.2001 16.9C16.5314 16.4582 17.1582 16.3686 17.6001 16.7C18.3581 17.2685 18.9744 17.24 19.3397 17.0756C19.7234 16.9029 20.0001 16.5147 20.0001 16C20.0001 15.7348 19.8947 15.4804 19.7072 15.2929C19.5196 15.1054 19.2653 15 19.0001 15C18.4478 15 18.0001 14.5523 18.0001 14Z",fill:"currentColor"}))});_8.displayName="HeadingThreeIcon";var j8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M17 9C17.5523 9 18 9.44772 18 10V13H20V10C20 9.44772 20.4477 9 21 9C21.5523 9 22 9.44772 22 10V18C22 18.5523 21.5523 19 21 19C20.4477 19 20 18.5523 20 18V15H17C16.4477 15 16 14.5523 16 14V10C16 9.44772 16.4477 9 17 9Z",fill:"currentColor"}))});j8.displayName="HeadingFourIcon";var W8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M16 10C16 9.44772 16.4477 9 17 9H21C21.5523 9 22 9.44772 22 10C22 10.5523 21.5523 11 21 11H18V12H18.3C20.2754 12 22 13.4739 22 15.5C22 17.5261 20.2754 19 18.3 19C17.6457 19 17.0925 18.8643 16.5528 18.5944C16.0588 18.3474 15.8586 17.7468 16.1055 17.2528C16.3525 16.7588 16.9532 16.5586 17.4472 16.8056C17.7074 16.9357 17.9542 17 18.3 17C19.3246 17 20 16.2739 20 15.5C20 14.7261 19.3246 14 18.3 14H17C16.4477 14 16 13.5523 16 13L16 12.9928V10Z",fill:"currentColor"}))});W8.displayName="HeadingFiveIcon";var K8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 9.29289C21.0976 9.68342 21.0976 10.3166 20.7071 10.7071C19.8392 11.575 19.2179 12.2949 18.7889 13.0073C18.8587 13.0025 18.929 13 19 13C20.6569 13 22 14.3431 22 16C22 17.6569 20.6569 19 19 19C17.3431 19 16 17.6569 16 16C16 14.6007 16.2837 13.4368 16.8676 12.3419C17.4384 11.2717 18.2728 10.3129 19.2929 9.29289C19.6834 8.90237 20.3166 8.90237 20.7071 9.29289ZM19 17C18.4477 17 18 16.5523 18 16C18 15.4477 18.4477 15 19 15C19.5523 15 20 15.4477 20 16C20 16.5523 19.5523 17 19 17Z",fill:"currentColor"}))});K8.displayName="HeadingSixIcon";var Z8={1:H8,2:U8,3:_8,4:j8,5:W8,6:K8},B8={1:"ctrl+alt+1",2:"ctrl+alt+2",3:"ctrl+alt+3",4:"ctrl+alt+4",5:"ctrl+alt+5",6:"ctrl+alt+6"};function T0(e,t,o=true){return !e||!e.isEditable||!fa("heading",e)||wr(e,["image"])?false:o?E0(e,["paragraph","heading","bulletList","orderedList","taskList","blockquote","codeBlock"])?t?e.can().setNode("heading",{level:t})||e.can().clearNodes():e.can().setNode("heading")||e.can().clearNodes():false:t?e.can().setNode("heading",{level:t}):e.can().setNode("heading")}function Ym(e,t){return !e||!e.isEditable?false:Array.isArray(t)?t.some(o=>e.isActive("heading",{level:o})):t?e.isActive("heading",{level:t}):e.isActive("heading")}function hK(e,t){var n,a,s;if(!e||!e.isEditable)return false;let o=Array.isArray(t)?t:[t],r=o.find(i=>T0(e,i));if(!r)return false;try{let i=e.view,l=i.state,d=l.tr;if(l.selection.empty||l.selection instanceof state.TextSelection){let g=(n=I0({editor:e,node:l.selection.$anchor.node(1)}))==null?void 0:n.pos;if(!Os(g))return !1;d=d.setSelection(state.NodeSelection.create(l.doc,g)),i.dispatch(d),l=i.state;}let c=l.selection,p=e.chain().focus();if(c instanceof state.NodeSelection){let g=(a=c.node.firstChild)==null?void 0:a.firstChild,m=(s=c.node.lastChild)==null?void 0:s.lastChild,v=g?c.from+g.nodeSize:c.from+1,h=m?c.to-m.nodeSize:c.to-1,b=l.doc.resolve(v),x=l.doc.resolve(h);p=p.setTextSelection(state.TextSelection.between(b,x)).clearNodes();}return (o.some(g=>e.isActive("heading",{level:g}))?p.setNode("paragraph"):p.setNode("heading",{level:r})).run(),e.chain().focus().selectTextblockEnd().run(),!0}catch(i){return false}}function Y8(e){let{editor:t,level:o,hideWhenUnavailable:r}=e;return !t||!t.isEditable||!fa("heading",t)?false:r&&!t.isActive("code")?Array.isArray(o)?o.some(n=>T0(t,n)):T0(t,o):true}function HS(e){let{editor:t,level:o,hideWhenUnavailable:r=false,onToggled:n}=e,{editor:a}=je(t),[s,i]=J.useState(true),l=T0(a,o),d=Ym(a,o);J.useEffect(()=>{if(!a)return;let p=()=>{i(Y8({editor:a,level:o,hideWhenUnavailable:r}));};return p(),a.on("selectionUpdate",p),()=>{a.off("selectionUpdate",p);}},[a,o,r]);let c=J.useCallback(()=>{if(!a)return false;let p=hK(a,o);return p&&(n==null||n()),p},[a,o,n]);return {isVisible:s,isActive:d,handleToggle:c,canToggle:l,label:`Heading ${o}`,shortcutKeys:B8[o],Icon:Z8[o]}}function Jm(t){var e=Q(t,[]);return J__namespace.default.createElement(Go__namespace.Root,y({modal:false},e))}function _S(t){var e=Q(t,[]);return J__namespace.default.createElement(Go__namespace.Portal,y({},e))}var Vc=J.forwardRef((o,t)=>{var e=Q(o,[]);return J__namespace.default.createElement(Go__namespace.Trigger,y({ref:t},e))});Vc.displayName=Go__namespace.Trigger.displayName;var Xm=Go__namespace.Item;var vK=J.forwardRef((n,r)=>{var a=n,{className:e,portal:t=true}=a,o=Q(a,["className","portal"]);let s=J__namespace.default.createElement(Go__namespace.SubContent,y({ref:r,className:ut("z-50 outline-none","origin-[var(--radix-dropdown-menu-content-transform-origin)]","max-h-[var(--radix-dropdown-menu-content-available-height)]","bg-white text-[color:rgba(36,39,46,0.78)] border border-[rgba(15,22,36,0.05)]","dark:bg-[#19191A] dark:text-[color:rgba(247,247,253,0.64)] dark:border-[rgba(232,232,253,0.05)]","rounded-[var(--tt-radius-lg,0.75rem)] shadow-[0_10px_15px_-3px_rgb(23,23,23,0.1)]","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","[&>*]:max-h-[var(--radix-dropdown-menu-content-available-height)]",e)},o));return t?J__namespace.default.createElement(_S,y({},typeof t=="object"?t:{}),s):s});vK.displayName=Go__namespace.SubContent.displayName;var jc=J.forwardRef((a,n)=>{var s=a,{className:e,sideOffset:t=4,portal:o=false}=s,r=Q(s,["className","sideOffset","portal"]);let i=J__namespace.default.createElement(Go__namespace.Content,y({ref:n,sideOffset:t,onCloseAutoFocus:l=>l.preventDefault(),className:ut("z-50 outline-none","origin-[var(--radix-dropdown-menu-content-transform-origin)]","max-h-[var(--radix-dropdown-menu-content-available-height)]","bg-white text-[color:rgba(36,39,46,0.78)] border border-[rgba(15,22,36,0.05)]","dark:bg-[#19191A] dark:text-[color:rgba(247,247,253,0.64)] dark:border-[rgba(232,232,253,0.05)]","rounded-[var(--tt-radius-lg,0.75rem)] shadow-[0_10px_15px_-3px_rgb(23,23,23,0.1)]","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","[&>*]:max-h-[var(--radix-dropdown-menu-content-available-height)]",e)},r));return o?J__namespace.default.createElement(_S,y({},typeof o=="object"?o:{}),i):i});jc.displayName=Go__namespace.Content.displayName;var Us=J.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.default.createElement("div",y({ref:o,className:ut("relative flex min-w-0 flex-col items-center","rounded-[calc(0.375rem+var(--tt-radius-lg,0.75rem))]","border border-[rgba(15,22,36,0.05)] bg-white","dark:border-[rgba(231,231,243,0.07)] dark:bg-[#19191A]","shadow-[0_16px_48px_0_rgba(17,24,39,0.04),0_12px_24px_0_rgba(17,24,39,0.04),0_6px_8px_0_rgba(17,24,39,0.02),0_2px_3px_0_rgba(17,24,39,0.02)] outline-none bg-clip-border",e)},t))});Us.displayName="Card";var yK=J.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.default.createElement("div",y({ref:o,className:ut("flex w-full items-center justify-between","border-b border-[rgba(15,22,36,0.05)]","dark:border-[rgba(231,231,243,0.07)]","px-1.5 py-1.5",e)},t))});yK.displayName="CardHeader";var _s=J.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.default.createElement("div",y({ref:o,className:ut("w-full flex-1 overflow-y-auto px-1.5 py-1.5",e)},t))});_s.displayName="CardBody";var qc=J.forwardRef((n,r)=>{var a=n,{className:e,orientation:t="vertical"}=a,o=Q(a,["className","orientation"]);return J__namespace.default.createElement("div",y({ref:r,"data-orientation":t,className:ut("relative flex min-w-max",t==="vertical"?"flex-col justify-center":"flex-row items-center gap-1",e)},o))});qc.displayName="CardItemGroup";var bK=J.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.default.createElement("div",y({ref:o,className:ut("px-2 pb-1 pt-3 text-sm font-semibold capitalize","text-[color:rgba(30,32,36,0.95)]","dark:text-[color:rgba(253,253,253,0.88)]",e)},t))});bK.displayName="CardGroupLabel";var xK=J.forwardRef((r,o)=>{var n=r,{className:e}=n,t=Q(n,["className"]);return J__namespace.default.createElement("div",y({ref:o,className:ut("w-full px-1.5 py-1.5",e)},t))});xK.displayName="CardFooter";var X8=J.forwardRef((i,s)=>{var l=i,{editor:e,levels:t=[1,2,3,4,5,6],hideWhenUnavailable:o=false,portal:r=false,onOpenChange:n}=l,a=Q(l,["editor","levels","hideWhenUnavailable","portal","onOpenChange"]);let{editor:d}=je(e),[c,p]=J.useState(false),{isVisible:f,isActive:u,canToggle:g,Icon:m}=VS({editor:d,levels:t,hideWhenUnavailable:o}),v=J.useCallback(h=>{!d||!g||(p(h),n==null||n(h));},[g,d,n]);return f?J__namespace.default.createElement(Jm,{modal:true,open:c,onOpenChange:v},J__namespace.default.createElement(Vc,{asChild:true},J__namespace.default.createElement(wt,F(y({type:"button","data-style":"ghost","data-active-state":u?"on":"off",role:"button",tabIndex:-1,disabled:!g,"data-disabled":!g,"aria-label":"Format text as heading","aria-pressed":u,tooltip:"Heading"},a),{ref:s}),J__namespace.default.createElement(m,{className:"tiptap-button-icon"}),J__namespace.default.createElement(_c,{className:"tiptap-button-dropdown-small"}))),J__namespace.default.createElement(jc,{align:"start",portal:r},J__namespace.default.createElement(Us,null,J__namespace.default.createElement(_s,null,J__namespace.default.createElement(ga,null,t.map(h=>J__namespace.default.createElement(Xm,{key:`heading-${h}`,asChild:true},J__namespace.default.createElement(z8,{editor:d,level:h,text:`Heading ${h}`,showTooltip:false})))))))):null});X8.displayName="HeadingDropdownMenu";var $8=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M6 3C6.55228 3 7 3.44772 7 4V11H17V4C17 3.44772 17.4477 3 18 3C18.5523 3 19 3.44772 19 4V20C19 20.5523 18.5523 21 18 21C17.4477 21 17 20.5523 17 20V13H7V20C7 20.5523 6.55228 21 6 21C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3Z",fill:"currentColor"}))});$8.displayName="HeadingIcon";function NK(e,t=[1,2,3,4,5,6]){if(!(!e||!e.isEditable))return t.find(o=>Ym(e,o))}function VS(e){let{editor:t,levels:o=[1,2,3,4,5,6],hideWhenUnavailable:r=false}=e||{},{editor:n}=je(t),[a,s]=J.useState(true),i=NK(n,o),l=Ym(n),d=T0(n);return J.useEffect(()=>{if(!n)return;let c=()=>{s(Y8({editor:n,hideWhenUnavailable:r,level:o}));};return c(),n.on("selectionUpdate",c),()=>{n.off("selectionUpdate",c);}},[n,r,o]),{isVisible:a,activeLevel:i,isActive:l,canToggle:d,levels:o,label:"Heading",Icon:i?Z8[i]:$8}}function kK({shortcutKeys:e=$m}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:e}))}var R8=J.forwardRef((c,d)=>{var p=c,{editor:e,text:t,hideWhenUnavailable:o=false,onInserted:r,showShortcut:n=false,onClick:a,icon:s,children:i}=p,l=Q(p,["editor","text","hideWhenUnavailable","onInserted","showShortcut","onClick","icon","children"]);let{editor:f}=je(e),{isVisible:u,canInsert:g,handleImage:m,label:v,isActive:h,shortcutKeys:b,Icon:x}=qS({editor:f,hideWhenUnavailable:o,onInserted:r}),w=J.useCallback(A=>{a==null||a(A),!A.defaultPrevented&&m();},[m,a]);if(!u)return null;let C=s!=null?s:x;return J__namespace.default.createElement(wt,F(y({type:"button","data-style":"ghost","data-active-state":h?"on":"off",role:"button",tabIndex:-1,disabled:!g,"data-disabled":!g,"aria-label":v,"aria-pressed":h,tooltip:v,onClick:w},l),{ref:d}),i!=null?i:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(C,{className:"tiptap-button-icon"}),t&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},t),n&&J__namespace.default.createElement(kK,{shortcutKeys:b})))});R8.displayName="ImageUploadButton";var e7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 2C20 1.44772 19.5523 1 19 1C18.4477 1 18 1.44772 18 2V4H16C15.4477 4 15 4.44772 15 5C15 5.55228 15.4477 6 16 6H18V8C18 8.55228 18.4477 9 19 9C19.5523 9 20 8.55228 20 8V6H22C22.5523 6 23 5.55228 23 5C23 4.44772 22.5523 4 22 4H20V2ZM5 4C4.73478 4 4.48043 4.10536 4.29289 4.29289C4.10536 4.48043 4 4.73478 4 5V19C4 19.2652 4.10536 19.5196 4.29289 19.7071C4.48043 19.8946 4.73478 20 5 20H5.58579L14.379 11.2068C14.9416 10.6444 15.7045 10.3284 16.5 10.3284C17.2955 10.3284 18.0584 10.6444 18.621 11.2068L20 12.5858V12C20 11.4477 20.4477 11 21 11C21.5523 11 22 11.4477 22 12V14.998C22 14.9994 22 15.0007 22 15.002V19C22 19.7957 21.6839 20.5587 21.1213 21.1213C20.5587 21.6839 19.7957 22 19 22H6.00219C6.00073 22 5.99927 22 5.99781 22H5C4.20435 22 3.44129 21.6839 2.87868 21.1213C2.31607 20.5587 2 19.7957 2 19V5C2 4.20435 2.31607 3.44129 2.87868 2.87868C3.44129 2.31607 4.20435 2 5 2H12C12.5523 2 13 2.44772 13 3C13 3.55228 12.5523 4 12 4H5ZM8.41422 20H19C19.2652 20 19.5196 19.8946 19.7071 19.7071C19.8946 19.5196 20 19.2652 20 19V15.4142L17.207 12.6212C17.0195 12.4338 16.7651 12.3284 16.5 12.3284C16.2349 12.3284 15.9806 12.4337 15.7931 12.6211L8.41422 20ZM6.87868 6.87868C7.44129 6.31607 8.20435 6 9 6C9.79565 6 10.5587 6.31607 11.1213 6.87868C11.6839 7.44129 12 8.20435 12 9C12 9.79565 11.6839 10.5587 11.1213 11.1213C10.5587 11.6839 9.79565 12 9 12C8.20435 12 7.44129 11.6839 6.87868 11.1213C6.31607 10.5587 6 9.79565 6 9C6 8.20435 6.31607 7.44129 6.87868 6.87868ZM9 8C8.73478 8 8.48043 8.10536 8.29289 8.29289C8.10536 8.48043 8 8.73478 8 9C8 9.26522 8.10536 9.51957 8.29289 9.70711C8.48043 9.89464 8.73478 10 9 10C9.26522 10 9.51957 9.89464 9.70711 9.70711C9.89464 9.51957 10 9.26522 10 9C10 8.73478 9.89464 8.48043 9.70711 8.29289C9.51957 8.10536 9.26522 8 9 8Z",fill:"currentColor"}))});e7.displayName="ImagePlusIcon";var $m="mod+shift+i";function t7(e){return !e||!e.isEditable||!Hs(e,"imageUpload")?false:e.can().insertContent({type:"imageUpload"})}function BK(e){return !e||!e.isEditable?false:e.isActive("imageUpload")}function OK(e){if(!e||!e.isEditable||!t7(e))return false;try{return e.chain().focus().insertContent({type:"imageUpload"}).run()}catch(t){return false}}function HK(e){let{editor:t,hideWhenUnavailable:o}=e;return !t||!t.isEditable||!Hs(t,"imageUpload")?false:o&&!t.isActive("code")?t7(t):true}function qS(e){let{editor:t,hideWhenUnavailable:o=false,onInserted:r}=e||{},{editor:n}=je(t),a=Xa(),[s,i]=J.useState(true),l=t7(n),d=BK(n);J.useEffect(()=>{if(!n)return;let p=()=>{i(HK({editor:n,hideWhenUnavailable:o}));};return p(),n.on("selectionUpdate",p),()=>{n.off("selectionUpdate",p);}},[n,o]);let c=J.useCallback(()=>{if(!n)return false;let p=OK(n);return p&&(r==null||r()),p},[n,r]);return reactHotkeysHook.useHotkeys($m,p=>{p.preventDefault(),c();},{enabled:s&&l,enableOnContentEditable:!a,enableOnFormTags:true}),{isVisible:s,isActive:d,handleImage:c,canInsert:l,label:"Add image",shortcutKeys:$m,Icon:e7}}function _K({type:e,shortcutKeys:t=r7[e]}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:t}))}var o7=J.forwardRef((c,d)=>{var p=c,{editor:e,type:t,text:o,hideWhenUnavailable:r=false,onToggled:n,showShortcut:a=false,onClick:s,children:i}=p,l=Q(p,["editor","type","text","hideWhenUnavailable","onToggled","showShortcut","onClick","children"]);let{editor:f}=je(e),{isVisible:u,canToggle:g,isActive:m,handleToggle:v,label:h,shortcutKeys:b,Icon:x}=QS({editor:f,type:t,hideWhenUnavailable:r,onToggled:n}),w=J.useCallback(C=>{s==null||s(C),!C.defaultPrevented&&v();},[v,s]);return u?J__namespace.default.createElement(wt,F(y({type:"button","data-style":"ghost","data-active-state":m?"on":"off",role:"button",tabIndex:-1,disabled:!g,"data-disabled":!g,"aria-label":h,"aria-pressed":m,tooltip:h,onClick:w},l),{ref:d}),i!=null?i:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(x,{className:"tiptap-button-icon"}),o&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},o),a&&J__namespace.default.createElement(_K,{type:t,shortcutKeys:b}))):null});o7.displayName="ListButton";var F0=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 6C7 5.44772 7.44772 5 8 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H8C7.44772 7 7 6.55228 7 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 12C7 11.4477 7.44772 11 8 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H8C7.44772 13 7 12.5523 7 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 18C7 17.4477 7.44772 17 8 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H8C7.44772 19 7 18.5523 7 18Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H3.01C3.56228 5 4.01 5.44772 4.01 6C4.01 6.55228 3.56228 7 3.01 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H3.01C3.56228 11 4.01 11.4477 4.01 12C4.01 12.5523 3.56228 13 3.01 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H3.01C3.56228 17 4.01 17.4477 4.01 18C4.01 18.5523 3.56228 19 3.01 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor"}))});F0.displayName="ListIcon";var Wc=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 6C9 5.44772 9.44772 5 10 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H10C9.44772 7 9 6.55228 9 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 12C9 11.4477 9.44772 11 10 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H10C9.44772 13 9 12.5523 9 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 18C9 17.4477 9.44772 17 10 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H10C9.44772 19 9 18.5523 9 18Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6C3 5.44772 3.44772 5 4 5H5C5.55228 5 6 5.44772 6 6V10C6 10.5523 5.55228 11 5 11C4.44772 11 4 10.5523 4 10V7C3.44772 7 3 6.55228 3 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 10C3 9.44772 3.44772 9 4 9H6C6.55228 9 7 9.44772 7 10C7 10.5523 6.55228 11 6 11H4C3.44772 11 3 10.5523 3 10Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.82219 13.0431C6.54543 13.4047 6.99997 14.1319 6.99997 15C6.99997 15.5763 6.71806 16.0426 6.48747 16.35C6.31395 16.5814 6.1052 16.8044 5.91309 17H5.99997C6.55226 17 6.99997 17.4477 6.99997 18C6.99997 18.5523 6.55226 19 5.99997 19H3.99997C3.44769 19 2.99997 18.5523 2.99997 18C2.99997 17.4237 3.28189 16.9575 3.51247 16.65C3.74323 16.3424 4.03626 16.0494 4.26965 15.8161C4.27745 15.8083 4.2852 15.8006 4.29287 15.7929C4.55594 15.5298 4.75095 15.3321 4.88748 15.15C4.96287 15.0495 4.99021 14.9922 4.99911 14.9714C4.99535 14.9112 4.9803 14.882 4.9739 14.8715C4.96613 14.8588 4.95382 14.845 4.92776 14.8319C4.87723 14.8067 4.71156 14.7623 4.44719 14.8944C3.95321 15.1414 3.35254 14.9412 3.10555 14.4472C2.85856 13.9533 3.05878 13.3526 3.55276 13.1056C4.28839 12.7378 5.12272 12.6934 5.82219 13.0431Z",fill:"currentColor"}))});Wc.displayName="ListOrderedIcon";var Qc=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 4.89543 2.89543 4 4 4H8C9.10457 4 10 4.89543 10 6V10C10 11.1046 9.10457 12 8 12H4C2.89543 12 2 11.1046 2 10V6ZM8 6H4V10H8V6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.70711 14.2929C10.0976 14.6834 10.0976 15.3166 9.70711 15.7071L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071L2.29289 17.7071C1.90237 17.3166 1.90237 16.6834 2.29289 16.2929C2.68342 15.9024 3.31658 15.9024 3.70711 16.2929L5 17.5858L8.29289 14.2929C8.68342 13.9024 9.31658 13.9024 9.70711 14.2929Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6C12 5.44772 12.4477 5 13 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H13C12.4477 7 12 6.55228 12 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 12C12 11.4477 12.4477 11 13 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H13C12.4477 13 12 12.5523 12 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18C12 17.4477 12.4477 17 13 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H13C12.4477 19 12 18.5523 12 18Z",fill:"currentColor"}))});Qc.displayName="ListTodoIcon";var n7={bulletList:F0,orderedList:Wc,taskList:Qc},ZK={bulletList:"Bullet List",orderedList:"Ordered List",taskList:"Task List"},r7={bulletList:"mod+shift+8",orderedList:"mod+shift+7",taskList:"mod+shift+9"};function Kc(e,t,o=true){if(!e||!e.isEditable||!fa(t,e)||wr(e,["image"]))return false;if(!o)switch(t){case "bulletList":return e.can().toggleBulletList();case "orderedList":return e.can().toggleOrderedList();case "taskList":return e.can().toggleList("taskList","taskItem");default:return false}if(!E0(e,["paragraph","heading","bulletList","orderedList","taskList","blockquote","codeBlock"]))return false;switch(t){case "bulletList":return e.can().toggleBulletList()||e.can().clearNodes();case "orderedList":return e.can().toggleOrderedList()||e.can().clearNodes();case "taskList":return e.can().toggleList("taskList","taskItem")||e.can().clearNodes();default:return false}}function Rm(e,t){if(!e||!e.isEditable)return false;switch(t){case "bulletList":return e.isActive("bulletList");case "orderedList":return e.isActive("orderedList");case "taskList":return e.isActive("taskList");default:return false}}function YK(e,t){var o,r,n;if(!e||!e.isEditable||!Kc(e,t))return false;try{let a=e.view,s=a.state,i=s.tr;if(s.selection.empty||s.selection instanceof state.TextSelection){let c=(o=I0({editor:e,node:s.selection.$anchor.node(1)}))==null?void 0:o.pos;if(!Os(c))return !1;i=i.setSelection(state.NodeSelection.create(s.doc,c)),a.dispatch(i),s=a.state;}let l=s.selection,d=e.chain().focus();if(l instanceof state.NodeSelection){let c=(r=l.node.firstChild)==null?void 0:r.firstChild,p=(n=l.node.lastChild)==null?void 0:n.lastChild,f=c?l.from+c.nodeSize:l.from+1,u=p?l.to-p.nodeSize:l.to-1,g=s.doc.resolve(f),m=s.doc.resolve(u);d=d.setTextSelection(state.TextSelection.between(g,m)).clearNodes();}if(e.isActive(t))d.liftListItem("listItem").lift("bulletList").lift("orderedList").lift("taskList").run();else {let p={bulletList:()=>d.toggleBulletList(),orderedList:()=>d.toggleOrderedList(),taskList:()=>d.toggleList("taskList","taskItem")}[t];if(!p)return !1;p().run();}return e.chain().focus().selectTextblockEnd().run(),!0}catch(a){return false}}function JK(e){let{editor:t,type:o,hideWhenUnavailable:r}=e;return !t||!t.isEditable||!fa(o,t)?false:r&&!t.isActive("code")?Kc(t,o):true}function QS(e){let{editor:t,type:o,hideWhenUnavailable:r=false,onToggled:n}=e,{editor:a}=je(t),[s,i]=J.useState(true),l=Kc(a,o),d=Rm(a,o);J.useEffect(()=>{if(!a)return;let p=()=>{i(JK({editor:a,type:o,hideWhenUnavailable:r}));};return p(),a.on("selectionUpdate",p),()=>{a.off("selectionUpdate",p);}},[a,o,r]);let c=J.useCallback(()=>{if(!a)return false;let p=YK(a,o);return p&&(n==null||n()),p},[a,o,n]);return {isVisible:s,isActive:d,handleToggle:c,canToggle:l,label:ZK[o],shortcutKeys:r7[o],Icon:n7[o]}}var eZ=[{label:"Bullet List",type:"bulletList",icon:F0},{label:"Ordered List",type:"orderedList",icon:Wc},{label:"Task List",type:"taskList",icon:Qc}];function tZ(e,t){return !e||!e.isEditable?false:t.some(o=>Kc(e,o))}function oZ(e,t){return !e||!e.isEditable?false:t.some(o=>Rm(e,o))}function rZ(e){return eZ.filter(t=>!t.type||e.includes(t.type))}function nZ(e){let{editor:t,hideWhenUnavailable:o,listInSchema:r,canToggleAny:n}=e;return !r||!t?false:o&&!t.isActive("code")?n:true}function aZ(e,t){if(!(!e||!e.isEditable))return t.find(o=>Rm(e,o))}function YS(e){let{editor:t,types:o=["bulletList","orderedList","taskList"],hideWhenUnavailable:r=false}=e||{},{editor:n}=je(t),[a,s]=J.useState(true),i=o.some(u=>fa(u,n)),l=J.useMemo(()=>rZ(o),[o]),d=tZ(n,o),c=oZ(n,o),p=aZ(n,o),f=l.find(u=>u.type===p);return J.useEffect(()=>{if(!n)return;let u=()=>{s(nZ({editor:n,hideWhenUnavailable:r,listInSchema:i,canToggleAny:d}));};return u(),n.on("selectionUpdate",u),()=>{n.off("selectionUpdate",u);}},[d,n,r,i,o]),{isVisible:a,activeType:p,isActive:c,canToggle:d,types:o,filteredLists:l,label:"List",Icon:f?n7[f.type]:F0}}function JS(s){var i=s,{editor:e,types:t=["bulletList","orderedList","taskList"],hideWhenUnavailable:o=false,onOpenChange:r,portal:n=false}=i,a=Q(i,["editor","types","hideWhenUnavailable","onOpenChange","portal"]);let{editor:l}=je(e),[d,c]=J.useState(false),{filteredLists:p,canToggle:f,isActive:u,isVisible:g,Icon:m}=YS({editor:l,types:t,hideWhenUnavailable:o}),v=J.useCallback(h=>{c(h),r==null||r(h);},[r]);return g?J__namespace.default.createElement(Jm,{open:d,onOpenChange:v},J__namespace.default.createElement(Vc,{asChild:true},J__namespace.default.createElement(wt,y({type:"button","data-style":"ghost","data-active-state":u?"on":"off",role:"button",tabIndex:-1,disabled:!f,"data-disabled":!f,"aria-label":"List options",tooltip:"List"},a),J__namespace.default.createElement(m,{className:"tiptap-button-icon"}),J__namespace.default.createElement(_c,{className:"tiptap-button-dropdown-small"}))),J__namespace.default.createElement(jc,{align:"start",portal:n},J__namespace.default.createElement(Us,null,J__namespace.default.createElement(_s,null,J__namespace.default.createElement(ga,null,p.map(h=>J__namespace.default.createElement(Xm,{key:h.type,asChild:true},J__namespace.default.createElement(o7,{editor:l,type:h.type,text:h.label,showTooltip:false})))))))):null}function cZ({shortcutKeys:e=s7}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:e}))}var a7=J.forwardRef((d,l)=>{var c=d,{editor:e,text:t,hideWhenUnavailable:o=false,onToggled:r,showShortcut:n=false,onClick:a,children:s}=c,i=Q(c,["editor","text","hideWhenUnavailable","onToggled","showShortcut","onClick","children"]);let{editor:p}=je(e),{isVisible:f,canToggle:u,isActive:g,handleToggle:m,label:v,shortcutKeys:h,Icon:b}=XS({editor:p,hideWhenUnavailable:o,onToggled:r}),x=J.useCallback(w=>{a==null||a(w),!w.defaultPrevented&&m();},[m,a]);return f?J__namespace.default.createElement(wt,F(y({type:"button","data-style":"ghost","data-active-state":g?"on":"off",role:"button",tabIndex:-1,disabled:!u,"data-disabled":!u,"aria-label":v,"aria-pressed":g,tooltip:"Blockquote",onClick:x},i),{ref:l}),s!=null?s:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(b,{className:"tiptap-button-icon"}),t&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},t),n&&J__namespace.default.createElement(cZ,{shortcutKeys:h}))):null});a7.displayName="BlockquoteButton";var i7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 6C8 5.44772 8.44772 5 9 5H16C16.5523 5 17 5.44772 17 6C17 6.55228 16.5523 7 16 7H9C8.44772 7 8 6.55228 8 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C4.55228 3 5 3.44772 5 4L5 20C5 20.5523 4.55229 21 4 21C3.44772 21 3 20.5523 3 20L3 4C3 3.44772 3.44772 3 4 3Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 12C8 11.4477 8.44772 11 9 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H9C8.44772 13 8 12.5523 8 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 18C8 17.4477 8.44772 17 9 17H16C16.5523 17 17 17.4477 17 18C17 18.5523 16.5523 19 16 19H9C8.44772 19 8 18.5523 8 18Z",fill:"currentColor"}))});i7.displayName="BlockquoteIcon";var s7="mod+shift+b";function l7(e,t=true){return !e||!e.isEditable||!fa("blockquote",e)||wr(e,["image"])?false:t?E0(e,["paragraph","heading","bulletList","orderedList","taskList","blockquote","codeBlock"])?e.can().toggleWrap("blockquote")||e.can().clearNodes():false:e.can().toggleWrap("blockquote")}function gZ(e){var t,o,r;if(!e||!e.isEditable||!l7(e))return false;try{let n=e.view,a=n.state,s=a.tr;if(a.selection.empty||a.selection instanceof state.TextSelection){let c=(t=I0({editor:e,node:a.selection.$anchor.node(1)}))==null?void 0:t.pos;if(!Os(c))return !1;s=s.setSelection(state.NodeSelection.create(a.doc,c)),n.dispatch(s),a=n.state;}let i=a.selection,l=e.chain().focus();if(i instanceof state.NodeSelection){let c=(o=i.node.firstChild)==null?void 0:o.firstChild,p=(r=i.node.lastChild)==null?void 0:r.lastChild,f=c?i.from+c.nodeSize:i.from+1,u=p?i.to-p.nodeSize:i.to-1,g=a.doc.resolve(f),m=a.doc.resolve(u);l=l.setTextSelection(state.TextSelection.between(g,m)).clearNodes();}return (e.isActive("blockquote")?l.lift("blockquote"):l.wrapIn("blockquote")).run(),e.chain().focus().selectTextblockEnd().run(),!0}catch(n){return false}}function hZ(e){let{editor:t,hideWhenUnavailable:o}=e;return !t||!t.isEditable||!fa("blockquote",t)?false:o&&!t.isActive("code")?l7(t):true}function XS(e){let{editor:t,hideWhenUnavailable:o=false,onToggled:r}=e||{},{editor:n}=je(t),[a,s]=J.useState(true),i=l7(n),l=(n==null?void 0:n.isActive("blockquote"))||false;J.useEffect(()=>{if(!n)return;let c=()=>{s(hZ({editor:n,hideWhenUnavailable:o}));};return c(),n.on("selectionUpdate",c),()=>{n.off("selectionUpdate",c);}},[n,o]);let d=J.useCallback(()=>{if(!n)return false;let c=gZ(n);return c&&(r==null||r()),c},[n,r]);return {isVisible:a,isActive:l,handleToggle:d,canToggle:i,label:"Blockquote",shortcutKeys:s7,Icon:i7}}var d7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.43471 4.01458C4.34773 4.06032 4.26607 4.11977 4.19292 4.19292C4.11977 4.26607 4.06032 4.34773 4.01458 4.43471C2.14611 6.40628 1 9.0693 1 12C1 18.0751 5.92487 23 12 23C14.9306 23 17.5936 21.854 19.5651 19.9856C19.6522 19.9398 19.7339 19.8803 19.8071 19.8071C19.8803 19.7339 19.9398 19.6522 19.9856 19.5651C21.854 17.5936 23 14.9306 23 12C23 5.92487 18.0751 1 12 1C9.0693 1 6.40628 2.14611 4.43471 4.01458ZM6.38231 4.9681C7.92199 3.73647 9.87499 3 12 3C16.9706 3 21 7.02944 21 12C21 14.125 20.2635 16.078 19.0319 17.6177L6.38231 4.9681ZM17.6177 19.0319C16.078 20.2635 14.125 21 12 21C7.02944 21 3 16.9706 3 12C3 9.87499 3.73647 7.92199 4.9681 6.38231L17.6177 19.0319Z",fill:"currentColor"}))});d7.displayName="BanIcon";var yl=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7072 4.70711C15.0977 4.31658 15.0977 3.68342 14.7072 3.29289C14.3167 2.90237 13.6835 2.90237 13.293 3.29289L8.69294 7.89286L8.68594 7.9C8.13626 8.46079 7.82837 9.21474 7.82837 10C7.82837 10.2306 7.85491 10.4584 7.90631 10.6795L2.29289 16.2929C2.10536 16.4804 2 16.7348 2 17V20C2 20.5523 2.44772 21 3 21H12C12.2652 21 12.5196 20.8946 12.7071 20.7071L15.3205 18.0937C15.5416 18.1452 15.7695 18.1717 16.0001 18.1717C16.7853 18.1717 17.5393 17.8639 18.1001 17.3142L22.7072 12.7071C23.0977 12.3166 23.0977 11.6834 22.7072 11.2929C22.3167 10.9024 21.6835 10.9024 21.293 11.2929L16.6971 15.8887C16.5105 16.0702 16.2605 16.1717 16.0001 16.1717C15.7397 16.1717 15.4897 16.0702 15.303 15.8887L10.1113 10.697C9.92992 10.5104 9.82837 10.2604 9.82837 10C9.82837 9.73963 9.92992 9.48958 10.1113 9.30297L14.7072 4.70711ZM13.5858 17L9.00004 12.4142L4 17.4142V19H11.5858L13.5858 17Z",fill:"currentColor"}))});yl.displayName="HighlighterIcon";function t5(t){var e=Q(t,[]);return J__namespace.default.createElement(ms__namespace.Root,y({},e))}function o5(t){var e=Q(t,[]);return J__namespace.default.createElement(ms__namespace.Trigger,y({},e))}function r5(n){var a=n,{className:e,align:t="center",sideOffset:o=4}=a,r=Q(a,["className","align","sideOffset"]);return J__namespace.default.createElement(ms__namespace.Portal,null,J__namespace.default.createElement(ms__namespace.Content,y({align:t,sideOffset:o,className:ut("z-50 outline-none","origin-[var(--radix-popover-content-transform-origin)]","max-h-[var(--radix-popover-content-available-height)]","bg-white text-[color:rgba(36,39,46,0.78)] border border-[rgba(15,22,36,0.05)]","dark:bg-[#19191A] dark:text-[color:rgba(247,247,253,0.64)] dark:border-[rgba(232,232,253,0.05)]","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","[&>*]:max-h-[var(--radix-popover-content-available-height)]",e)},r)))}function CZ({shortcutKeys:e=n5}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:e}))}var c7=J.forwardRef((f,p)=>{var u=f,{editor:e,highlightColor:t,text:o,hideWhenUnavailable:r=false,mode:n="mark",onApplied:a,showShortcut:s=false,onClick:i,children:l,style:d}=u,c=Q(u,["editor","highlightColor","text","hideWhenUnavailable","mode","onApplied","showShortcut","onClick","children","style"]);let{editor:g}=je(e),{isVisible:m,canColorHighlight:v,isActive:h,handleColorHighlight:b,label:x,shortcutKeys:w}=Yc({editor:g,highlightColor:t,label:o||`Toggle highlight (${t})`,hideWhenUnavailable:r,mode:n,onApplied:a}),C=J.useCallback(k=>{i==null||i(k),!k.defaultPrevented&&b();},[b,i]),A=J.useMemo(()=>F(y({},d),{"--highlight-color":t}),[t,d]);return m?J__namespace.default.createElement(wt,F(y({type:"button","data-style":"ghost","data-active-state":h?"on":"off",role:"button",tabIndex:-1,disabled:!v,"data-disabled":!v,"aria-label":x,"aria-pressed":h,tooltip:x,onClick:C,style:A},c),{ref:p}),l!=null?l:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("span",{className:ut("relative h-5 w-5 rounded-[var(--tt-radius-xl)]","-mx-[0.175rem] bg-[color:var(--highlight-color)]","transition-transform duration-200 ease-out","after:absolute after:inset-0 after:rounded-inherit after:content-[''] after:box-border","after:border after:border-[color:var(--highlight-color)]","after:[filter:brightness(95%)] after:[mix-blend-mode:multiply]","dark:after:[filter:brightness(140%)] dark:after:[mix-blend-mode:lighten]","data-[active=on]:after:[filter:brightness(80%)]","dark:data-[active=on]:after:[filter:brightness(180%)]"),"data-active":h?"on":"off",style:{"--highlight-color":t}}),o&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},o),s&&J__namespace.default.createElement(CZ,{shortcutKeys:w}))):null});c7.displayName="ColorHighlightButton";var n5="mod+shift+h",AZ=[{label:"Default background",value:"#FFFFFF",border:"rgba(37,39,45,0.1)"},{label:"Gray background",value:"rgb(248,248,247)",border:"rgba(84,72,49,0.15)"},{label:"Brown background",value:"rgb(244,238,238)",border:"rgba(210,162,141,0.35)"},{label:"Orange background",value:"rgb(251,236,221)",border:"rgba(224,124,57,0.27)"},{label:"Yellow background",value:"#FEF9C3",border:"#FBE604"},{label:"Green background",value:"#DCFCE7",border:"#C7FAD8"},{label:"Blue background",value:"#E0F2FE",border:"#CEEAFD"},{label:"Purple background",value:"#F3E8FF",border:"#E4CCFF"},{label:"Pink background",value:"rgb(252,241,246)",border:"rgba(225,136,179,0.27)"},{label:"Red background",value:"#FFE4E6",border:"#FFCCD0"}];function p7(e){let t=new Map(AZ.map(o=>[o.value,o]));return e.map(o=>t.get(o)).filter(o=>!!o)}function m7(e,t="mark"){if(!e||!e.isEditable)return false;if(t==="mark")return !Yi("highlight",e)||wr(e,["image"])?false:e.can().setMark("highlight");if(!Hs(e,["nodeBackground"]))return false;try{return e.can().toggleNodeBackgroundColor("test")}catch(o){return false}}function NZ(e,t,o="mark"){var r;if(!e||!e.isEditable)return false;if(o==="mark")return t?e.isActive("highlight",{color:t}):e.isActive("highlight");if(!t)return false;try{let{state:n}=e,{selection:a}=n,s=a.$anchor;for(let i=s.depth;i>=0;i--){let l=s.node(i);if(l&&((r=l.attrs)==null?void 0:r.backgroundColor)===t)return !0}return !1}catch(n){return false}}function IZ(e,t="mark"){return !e||!e.isEditable||!m7(e,t)?false:t==="mark"?e.chain().focus().unsetMark("highlight").run():e.chain().focus().unsetNodeBackgroundColor().run()}function EZ(e){let{editor:t,hideWhenUnavailable:o,mode:r}=e;if(!t||!t.isEditable)return false;if(r==="mark"){if(!Yi("highlight",t))return false}else if(!Hs(t,["nodeBackground"]))return false;return o&&!t.isActive("code")?m7(t,r):true}function Yc(e){let{editor:t,label:o,highlightColor:r,hideWhenUnavailable:n=false,mode:a="mark",onApplied:s}=e,{editor:i}=je(t),l=Xa(),[d,c]=J.useState(true),p=m7(i,a),f=NZ(i,r,a);J.useEffect(()=>{if(!i)return;let m=()=>{c(EZ({editor:i,hideWhenUnavailable:n,mode:a}));};return m(),i.on("selectionUpdate",m),()=>{i.off("selectionUpdate",m);}},[i,n,a]);let u=J.useCallback(()=>{if(!i||!p||!r||!o)return false;if(a==="mark"){if(i.state.storedMarks){let m=i.schema.marks.highlight;m&&i.view.dispatch(i.state.tr.removeStoredMark(m));}return setTimeout(()=>{let m=i.chain().focus().toggleMark("highlight",{color:r}).run();return m&&(s==null||s({color:r,label:o,mode:a})),m},0),true}else {let m=i.chain().focus().toggleNodeBackgroundColor(r).run();return m&&(s==null||s({color:r,label:o,mode:a})),m}},[p,r,i,o,s,a]),g=J.useCallback(()=>{let m=IZ(i,a);return m&&(s==null||s({color:"",label:"Remove highlight",mode:a})),m},[i,s,a]);return reactHotkeysHook.useHotkeys(n5,m=>{m.preventDefault(),u();},{enabled:d&&p,enableOnContentEditable:!l,enableOnFormTags:true}),{isVisible:d,isActive:f,handleColorHighlight:u,handleRemoveHighlight:g,canColorHighlight:p,label:o||"Highlight",shortcutKeys:n5,Icon:yl,mode:a}}var a5=J.forwardRef((n,r)=>{var a=n,{className:e,children:t}=a,o=Q(a,["className","children"]);return J__namespace.default.createElement(wt,y({type:"button",className:e,"data-style":"ghost","data-appearance":"default",role:"button",tabIndex:-1,"aria-label":"Highlight text",tooltip:"Highlight",ref:r},o),t!=null?t:J__namespace.default.createElement(yl,{className:"tiptap-button-icon"}))});a5.displayName="ColorHighlightPopoverButton";function u7({editor:e,colors:t=p7(["#DCFCE7","#E0F2FE","#FFE4E6","#F3E8FF","#FEF9C3"])}){let{handleRemoveHighlight:o}=Yc({editor:e}),r=Xa(),n=J.useRef(null),a=J.useMemo(()=>[...t,{label:"Remove highlight",value:"none"}],[t]),{selectedIndex:s}=Km({containerRef:n,items:a,orientation:"both",onSelect:i=>{if(!n.current)return false;let l=n.current.querySelector('[data-highlighted="true"]');return l&&l.click(),i.value==="none"&&o(),true},autoSelectFirstItem:false});return J__namespace.default.createElement(Us,{ref:n,tabIndex:0,style:r?{boxShadow:"none",border:0,zIndex:9999}:{zIndex:9999}},J__namespace.default.createElement(_s,{style:r?{padding:0}:{}},J__namespace.default.createElement(qc,{orientation:"horizontal"},J__namespace.default.createElement(ga,{orientation:"horizontal"},t.map((i,l)=>J__namespace.default.createElement(c7,{key:i.value,editor:e,highlightColor:i.value,tooltip:i.label,"aria-label":`${i.label} highlight color`,tabIndex:l===s?0:-1,"data-highlighted":s===l}))),J__namespace.default.createElement(cl,null),J__namespace.default.createElement(ga,{orientation:"horizontal"},J__namespace.default.createElement(wt,{onClick:o,"aria-label":"Remove highlight",tooltip:"Remove highlight",tabIndex:s===t.length?0:-1,type:"button",role:"menuitem","data-style":"ghost","data-highlighted":s===t.length},J__namespace.default.createElement(d7,{className:"tiptap-button-icon"}))))))}function rA(a){var s=a,{editor:e,colors:t=p7(["#DCFCE7","#E0F2FE","#FFE4E6","#F3E8FF","#FEF9C3"]),hideWhenUnavailable:o=false,onApplied:r}=s,n=Q(s,["editor","colors","hideWhenUnavailable","onApplied"]);let{editor:i}=je(e),[l,d]=J.useState(false),{isVisible:c,canColorHighlight:p,isActive:f,label:u,Icon:g}=Yc({editor:i,hideWhenUnavailable:o,onApplied:r});return c?J__namespace.default.createElement(t5,{open:l,onOpenChange:d},J__namespace.default.createElement(o5,{asChild:true},J__namespace.default.createElement(a5,y({disabled:!p,"data-active-state":f?"on":"off","data-disabled":!p,"aria-pressed":f,"aria-label":u,tooltip:u},n),J__namespace.default.createElement(g,{className:"tiptap-button-icon"}))),J__namespace.default.createElement(r5,{"aria-label":"Highlight colors",className:"z-[9999]"},J__namespace.default.createElement(u7,{editor:i,colors:t}))):null}var f7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 4C21 3.44772 20.5523 3 20 3C19.4477 3 19 3.44772 19 4V11C19 11.7956 18.6839 12.5587 18.1213 13.1213C17.5587 13.6839 16.7956 14 16 14H6.41421L9.70711 10.7071C10.0976 10.3166 10.0976 9.68342 9.70711 9.29289C9.31658 8.90237 8.68342 8.90237 8.29289 9.29289L3.29289 14.2929C2.90237 14.6834 2.90237 15.3166 3.29289 15.7071L8.29289 20.7071C8.68342 21.0976 9.31658 21.0976 9.70711 20.7071C10.0976 20.3166 10.0976 19.6834 9.70711 19.2929L6.41421 16H16C17.3261 16 18.5979 15.4732 19.5355 14.5355C20.4732 13.5979 21 12.3261 21 11V4Z",fill:"currentColor"}))});f7.displayName="CornerDownLeftIcon";var h7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M14 3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55228 21.5523 10 21 10C20.4477 10 20 9.55228 20 9V5.41421L10.7071 14.7071C10.3166 15.0976 9.68342 15.0976 9.29289 14.7071C8.90237 14.3166 8.90237 13.6834 9.29289 13.2929L18.5858 4H15C14.4477 4 14 3.55228 14 3Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M4.29289 7.29289C4.48043 7.10536 4.73478 7 5 7H11C11.5523 7 12 6.55228 12 6C12 5.44772 11.5523 5 11 5H5C4.20435 5 3.44129 5.31607 2.87868 5.87868C2.31607 6.44129 2 7.20435 2 8V19C2 19.7957 2.31607 20.5587 2.87868 21.1213C3.44129 21.6839 4.20435 22 5 22H16C16.7957 22 17.5587 21.6839 18.1213 21.1213C18.6839 20.5587 19 19.7957 19 19V13C19 12.4477 18.5523 12 18 12C17.4477 12 17 12.4477 17 13V19C17 19.2652 16.8946 19.5196 16.7071 19.7071C16.5196 19.8946 16.2652 20 16 20H5C4.73478 20 4.48043 19.8946 4.29289 19.7071C4.10536 19.5196 4 19.2652 4 19V8C4 7.73478 4.10536 7.48043 4.29289 7.29289Z",fill:"currentColor"}))});h7.displayName="ExternalLinkIcon";var xl=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M16.9958 1.06669C15.4226 1.05302 13.907 1.65779 12.7753 2.75074L12.765 2.76086L11.045 4.47086C10.6534 4.86024 10.6515 5.49341 11.0409 5.88507C11.4303 6.27673 12.0634 6.27858 12.4551 5.88919L14.1697 4.18456C14.9236 3.45893 15.9319 3.05752 16.9784 3.06662C18.0272 3.07573 19.0304 3.49641 19.772 4.23804C20.5137 4.97967 20.9344 5.98292 20.9435 7.03171C20.9526 8.07776 20.5515 9.08563 19.8265 9.83941L16.833 12.8329C16.4274 13.2386 15.9393 13.5524 15.4019 13.7529C14.8645 13.9533 14.2903 14.0359 13.7181 13.9949C13.146 13.9539 12.5894 13.7904 12.0861 13.5154C11.5827 13.2404 11.1444 12.8604 10.8008 12.401C10.47 11.9588 9.84333 11.8685 9.40108 12.1993C8.95883 12.5301 8.86849 13.1568 9.1993 13.599C9.71464 14.288 10.3721 14.858 11.1272 15.2705C11.8822 15.683 12.7171 15.9283 13.5753 15.9898C14.4334 16.0513 15.2948 15.9274 16.1009 15.6267C16.907 15.326 17.639 14.8555 18.2473 14.247L21.2472 11.2471L21.2593 11.2347C22.3523 10.1031 22.9571 8.58751 22.9434 7.01433C22.9297 5.44115 22.2987 3.93628 21.1863 2.82383C20.0738 1.71138 18.5689 1.08036 16.9958 1.06669Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M10.4247 8.0102C9.56657 7.94874 8.70522 8.07256 7.89911 8.37326C7.09305 8.67395 6.36096 9.14458 5.75272 9.753L2.75285 12.7529L2.74067 12.7653C1.64772 13.8969 1.04295 15.4125 1.05662 16.9857C1.07029 18.5589 1.70131 20.0637 2.81376 21.1762C3.9262 22.2886 5.43108 22.9196 7.00426 22.9333C8.57744 22.947 10.0931 22.3422 11.2247 21.2493L11.2371 21.2371L12.9471 19.5271C13.3376 19.1366 13.3376 18.5034 12.9471 18.1129C12.5565 17.7223 11.9234 17.7223 11.5328 18.1129L9.82932 19.8164C9.07555 20.5414 8.06768 20.9425 7.02164 20.9334C5.97285 20.9243 4.9696 20.5036 4.22797 19.762C3.48634 19.0203 3.06566 18.0171 3.05655 16.9683C3.04746 15.9222 3.44851 14.9144 4.17355 14.1606L7.16719 11.167C7.5727 10.7613 8.06071 10.4476 8.59811 10.2471C9.13552 10.0467 9.70976 9.96412 10.2819 10.0051C10.854 10.0461 11.4106 10.2096 11.9139 10.4846C12.4173 10.7596 12.8556 11.1397 13.1992 11.599C13.53 12.0412 14.1567 12.1316 14.5989 11.8007C15.0412 11.4699 15.1315 10.8433 14.8007 10.401C14.2854 9.71205 13.6279 9.14198 12.8729 8.72948C12.1178 8.31697 11.2829 8.07166 10.4247 8.0102Z",fill:"currentColor"}))});xl.displayName="LinkIcon";var y7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 5V4C7 3.17477 7.40255 2.43324 7.91789 1.91789C8.43324 1.40255 9.17477 1 10 1H14C14.8252 1 15.5668 1.40255 16.0821 1.91789C16.5975 2.43324 17 3.17477 17 4V5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H20V20C20 20.8252 19.5975 21.5668 19.0821 22.0821C18.5668 22.5975 17.8252 23 17 23H7C6.17477 23 5.43324 22.5975 4.91789 22.0821C4.40255 21.5668 4 20.8252 4 20V7H3C2.44772 7 2 6.55228 2 6C2 5.44772 2.44772 5 3 5H7ZM9 4C9 3.82523 9.09745 3.56676 9.33211 3.33211C9.56676 3.09745 9.82523 3 10 3H14C14.1748 3 14.4332 3.09745 14.6679 3.33211C14.9025 3.56676 15 3.82523 15 4V5H9V4ZM6 7V20C6 20.1748 6.09745 20.4332 6.33211 20.6679C6.56676 20.9025 6.82523 21 7 21H17C17.1748 21 17.4332 20.9025 17.6679 20.6679C17.9025 20.4332 18 20.1748 18 20V7H6Z",fill:"currentColor"}))});y7.displayName="TrashIcon";function iA(r){var n=r,{className:e,type:t}=n,o=Q(n,["className","type"]);return J__namespace.default.createElement("input",y({type:t,className:ut("block h-8 w-full appearance-none rounded-md bg-transparent","px-2 py-1.5 text-sm font-normal leading-6 outline-none","placeholder:text-[color:rgba(40,44,51,0.42)]","dark:placeholder:text-[color:rgba(244,244,255,0.37)]",e)},o))}function lA(r){var n=r,{className:e,children:t}=n,o=Q(n,["className","children"]);return J__namespace.default.createElement("div",y({className:ut("relative flex flex-wrap items-stretch",e)},o),t)}var s5=J.forwardRef((n,r)=>{var a=n,{className:e,children:t}=a,o=Q(a,["className","children"]);return J__namespace.default.createElement(wt,y({type:"button",className:e,"data-style":"ghost",role:"button",tabIndex:-1,"aria-label":"Link",tooltip:"Link",ref:r},o),t||J__namespace.default.createElement(xl,{className:"tiptap-button-icon"}))});s5.displayName="LinkButton";var cA=({url:e,setUrl:t,setLink:o,removeLink:r,openLink:n,isActive:a})=>{let s=Xa(),i=l=>{l.key==="Enter"&&(l.preventDefault(),o());};return J__namespace.default.createElement(Us,{style:y({},s?{boxShadow:"none",border:0,zIndex:9999}:{zIndex:9999})},J__namespace.default.createElement(_s,{style:y({},s?{padding:0}:{})},J__namespace.default.createElement(qc,{orientation:"horizontal"},J__namespace.default.createElement(lA,null,J__namespace.default.createElement(iA,{type:"url",placeholder:"Paste a link...",value:e,onChange:l=>t(l.target.value),onKeyDown:i,autoFocus:true,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off"})),J__namespace.default.createElement(ga,{orientation:"horizontal"},J__namespace.default.createElement(wt,{type:"button",onClick:o,title:"Apply link",disabled:!e&&!a,"data-style":"ghost"},J__namespace.default.createElement(f7,{className:"tiptap-button-icon"}))),J__namespace.default.createElement(cl,null),J__namespace.default.createElement(ga,{orientation:"horizontal"},J__namespace.default.createElement(wt,{type:"button",onClick:n,title:"Open in new window",disabled:!e&&!a,"data-style":"ghost"},J__namespace.default.createElement(h7,{className:"tiptap-button-icon"})),J__namespace.default.createElement(wt,{type:"button",onClick:r,title:"Remove link",disabled:!e&&!a,"data-style":"ghost"},J__namespace.default.createElement(y7,{className:"tiptap-button-icon"}))))))},pA=({editor:e})=>{let t=w7({editor:e});return J__namespace.default.createElement(cA,y({},t))},x7=J.forwardRef((d,l)=>{var c=d,{editor:e,hideWhenUnavailable:t=false,onSetLink:o,onOpenChange:r,autoOpenOnLinkActive:n=true,onClick:a,children:s}=c,i=Q(c,["editor","hideWhenUnavailable","onSetLink","onOpenChange","autoOpenOnLinkActive","onClick","children"]);let{editor:p}=je(e),[f,u]=J.useState(false),{isVisible:g,canSet:m,isActive:v,url:h,setUrl:b,setLink:x,removeLink:w,openLink:C,label:A,Icon:k}=w7({editor:p,hideWhenUnavailable:t,onSetLink:o}),N=J.useCallback(S=>{u(S),r==null||r(S);},[r]),I=J.useCallback(()=>{x(),u(false);},[x]),P=J.useCallback(S=>{a==null||a(S),!S.defaultPrevented&&u(!f);},[a,f]);return J.useEffect(()=>{n&&v&&u(true);},[n,v]),g?J__namespace.default.createElement(t5,{open:f,onOpenChange:N},J__namespace.default.createElement(o5,{asChild:true},J__namespace.default.createElement(s5,F(y({disabled:!m,"data-active-state":v?"on":"off","data-disabled":!m,"aria-label":A,"aria-pressed":v,onClick:P},i),{ref:l}),s!=null?s:J__namespace.default.createElement(k,{className:"tiptap-button-icon"}))),J__namespace.default.createElement(r5,{className:"z-[9999]"},J__namespace.default.createElement(cA,{url:h,setUrl:b,setLink:I,removeLink:w,openLink:C,isActive:v}))):null});x7.displayName="LinkPopover";function uA(e){return !e||!e.isEditable||wr(e,["image"],true)?false:e.can().setMark("link")}function fA(e){return !e||!e.isEditable?false:e.isActive("link")}function UZ(e){let{editor:t,hideWhenUnavailable:o}=e;return !Yi("link",t)||!t?false:o&&!t.isActive("code")?uA(t):true}function _Z(e){let{editor:t,onSetLink:o}=e,[r,n]=J.useState(null);J.useEffect(()=>{if(!t)return;let{href:l}=t.getAttributes("link");fA(t)&&r===null&&n(l||"");},[t,r]),J.useEffect(()=>{if(!t)return;let l=()=>{let{href:d}=t.getAttributes("link");n(d||"");};return t.on("selectionUpdate",l),()=>{t.off("selectionUpdate",l);}},[t]);let a=J.useCallback(()=>{if(!r||!t)return;let{selection:l}=t.state,d=l.empty,c=t.chain().focus();c=c.extendMarkRange("link").setLink({href:r}),d&&(c=c.insertContent({type:"text",text:r})),c.run(),n(null),o==null||o();},[t,o,r]),s=J.useCallback(()=>{t&&(t.chain().focus().extendMarkRange("link").unsetLink().setMeta("preventAutolink",true).run(),n(""));},[t]),i=J.useCallback((l="_blank",d="noopener,noreferrer")=>{if(!r)return;let c=AS(r,window.location.href);c!=="#"&&window.open(c,l,d);},[r]);return {url:r||"",setUrl:n,setLink:a,removeLink:s,openLink:i}}function VZ(e){let{editor:t,hideWhenUnavailable:o=false}=e,r=uA(t),n=fA(t),[a,s]=J.useState(true);return J.useEffect(()=>{if(!t)return;let i=()=>{s(UZ({editor:t,hideWhenUnavailable:o}));};return i(),t.on("selectionUpdate",i),()=>{t.off("selectionUpdate",i);}},[t,o]),{isVisible:a,canSet:r,isActive:n}}function w7(e){let{editor:t,hideWhenUnavailable:o=false,onSetLink:r}=e||{},{editor:n}=je(t),{isVisible:a,canSet:s,isActive:i}=VZ({editor:n,hideWhenUnavailable:o}),l=_Z({editor:n,onSetLink:r});return y({isVisible:a,canSet:s,isActive:i,label:"Link",Icon:xl},l)}function WZ({type:e,shortcutKeys:t=P7[e]}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:t}))}var B0=J.forwardRef((c,d)=>{var p=c,{editor:e,type:t,text:o,hideWhenUnavailable:r=false,onToggled:n,showShortcut:a=false,onClick:s,children:i}=p,l=Q(p,["editor","type","text","hideWhenUnavailable","onToggled","showShortcut","onClick","children"]);let{editor:f}=je(e),{isVisible:u,handleMark:g,label:m,canToggle:v,isActive:h,Icon:b,shortcutKeys:x}=gA({editor:f,type:t,hideWhenUnavailable:r,onToggled:n}),w=J.useCallback(C=>{s==null||s(C),!C.defaultPrevented&&g();},[g,s]);return u?J__namespace.default.createElement(wt,F(y({type:"button",disabled:!v,"data-style":"ghost","data-active-state":h?"on":"off","data-disabled":!v,role:"button",tabIndex:-1,"aria-label":m,"aria-pressed":h,tooltip:m,onClick:w},l),{ref:d}),i!=null?i:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(b,{className:"tiptap-button-icon"}),o&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},o),a&&J__namespace.default.createElement(WZ,{type:t,shortcutKeys:x}))):null});B0.displayName="MarkButton";var S7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2.5C5.17157 2.5 4.5 3.17157 4.5 4V20C4.5 20.8284 5.17157 21.5 6 21.5H15C16.4587 21.5 17.8576 20.9205 18.8891 19.8891C19.9205 18.8576 20.5 17.4587 20.5 16C20.5 14.5413 19.9205 13.1424 18.8891 12.1109C18.6781 11.9 18.4518 11.7079 18.2128 11.5359C19.041 10.5492 19.5 9.29829 19.5 8C19.5 6.54131 18.9205 5.14236 17.8891 4.11091C16.8576 3.07946 15.4587 2.5 14 2.5H6ZM14 10.5C14.663 10.5 15.2989 10.2366 15.7678 9.76777C16.2366 9.29893 16.5 8.66304 16.5 8C16.5 7.33696 16.2366 6.70107 15.7678 6.23223C15.2989 5.76339 14.663 5.5 14 5.5H7.5V10.5H14ZM7.5 18.5V13.5H15C15.663 13.5 16.2989 13.7634 16.7678 14.2322C17.2366 14.7011 17.5 15.337 17.5 16C17.5 16.663 17.2366 17.2989 16.7678 17.7678C16.2989 18.2366 15.663 18.5 15 18.5H7.5Z",fill:"currentColor"}))});S7.displayName="BoldIcon";var A7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M15.4545 4.2983C15.6192 3.77115 15.3254 3.21028 14.7983 3.04554C14.2712 2.88081 13.7103 3.1746 13.5455 3.70175L8.54554 19.7017C8.38081 20.2289 8.6746 20.7898 9.20175 20.9545C9.72889 21.1192 10.2898 20.8254 10.4545 20.2983L15.4545 4.2983Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M6.70711 7.29289C7.09763 7.68342 7.09763 8.31658 6.70711 8.70711L3.41421 12L6.70711 15.2929C7.09763 15.6834 7.09763 16.3166 6.70711 16.7071C6.31658 17.0976 5.68342 17.0976 5.29289 16.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M17.2929 7.29289C17.6834 6.90237 18.3166 6.90237 18.7071 7.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L18.7071 16.7071C18.3166 17.0976 17.6834 17.0976 17.2929 16.7071C16.9024 16.3166 16.9024 15.6834 17.2929 15.2929L20.5858 12L17.2929 8.70711C16.9024 8.31658 16.9024 7.68342 17.2929 7.29289Z",fill:"currentColor"}))});A7.displayName="Code2Icon";var N7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M15.0222 3H19C19.5523 3 20 3.44772 20 4C20 4.55228 19.5523 5 19 5H15.693L10.443 19H14C14.5523 19 15 19.4477 15 20C15 20.5523 14.5523 21 14 21H9.02418C9.00802 21.0004 8.99181 21.0004 8.97557 21H5C4.44772 21 4 20.5523 4 20C4 19.4477 4.44772 19 5 19H8.30704L13.557 5H10C9.44772 5 9 4.55228 9 4C9 3.44772 9.44772 3 10 3H14.9782C14.9928 2.99968 15.0075 2.99967 15.0222 3Z",fill:"currentColor"}))});N7.displayName="ItalicIcon";var E7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M9.00039 3H16.0001C16.5524 3 17.0001 3.44772 17.0001 4C17.0001 4.55229 16.5524 5 16.0001 5H9.00011C8.68006 4.99983 8.36412 5.07648 8.07983 5.22349C7.79555 5.37051 7.55069 5.5836 7.36585 5.84487C7.181 6.10614 7.06155 6.40796 7.01754 6.72497C6.97352 7.04198 7.00623 7.36492 7.11292 7.66667C7.29701 8.18737 7.02414 8.75872 6.50344 8.94281C5.98274 9.1269 5.4114 8.85403 5.2273 8.33333C5.01393 7.72984 4.94851 7.08396 5.03654 6.44994C5.12456 5.81592 5.36346 5.21229 5.73316 4.68974C6.10285 4.1672 6.59256 3.74101 7.16113 3.44698C7.72955 3.15303 8.36047 2.99975 9.00039 3Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M18 13H20C20.5523 13 21 12.5523 21 12C21 11.4477 20.5523 11 20 11H4C3.44772 11 3 11.4477 3 12C3 12.5523 3.44772 13 4 13H14C14.7956 13 15.5587 13.3161 16.1213 13.8787C16.6839 14.4413 17 15.2044 17 16C17 16.7956 16.6839 17.5587 16.1213 18.1213C15.5587 18.6839 14.7956 19 14 19H6C5.44772 19 5 19.4477 5 20C5 20.5523 5.44772 21 6 21H14C15.3261 21 16.5979 20.4732 17.5355 19.5355C18.4732 18.5979 19 17.3261 19 16C19 14.9119 18.6453 13.8604 18 13Z",fill:"currentColor"}))});E7.displayName="StrikeIcon";var k7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L12.7071 15.2929C13.0976 15.6834 13.0976 16.3166 12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 7.29289C13.0976 7.68342 13.0976 8.31658 12.7071 8.70711L4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L11.2929 7.29289C11.6834 6.90237 12.3166 6.90237 12.7071 7.29289Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4079 14.3995C18.0284 14.0487 18.7506 13.9217 19.4536 14.0397C20.1566 14.1578 20.7977 14.5138 21.2696 15.0481L21.2779 15.0574L21.2778 15.0575C21.7439 15.5988 22 16.2903 22 17C22 18.0823 21.3962 18.8401 20.7744 19.3404C20.194 19.8073 19.4858 20.141 18.9828 20.378C18.9638 20.387 18.9451 20.3958 18.9266 20.4045C18.4473 20.6306 18.2804 20.7817 18.1922 20.918C18.1773 20.9412 18.1619 20.9681 18.1467 21H21C21.5523 21 22 21.4477 22 22C22 22.5523 21.5523 23 21 23H17C16.4477 23 16 22.5523 16 22C16 21.1708 16.1176 20.4431 16.5128 19.832C16.9096 19.2184 17.4928 18.8695 18.0734 18.5956C18.6279 18.334 19.138 18.0901 19.5207 17.7821C19.8838 17.49 20 17.2477 20 17C20 16.7718 19.9176 16.5452 19.7663 16.3672C19.5983 16.1792 19.3712 16.0539 19.1224 16.0121C18.8722 15.9701 18.6152 16.015 18.3942 16.1394C18.1794 16.2628 18.0205 16.4549 17.9422 16.675C17.7572 17.1954 17.1854 17.4673 16.665 17.2822C16.1446 17.0972 15.8728 16.5254 16.0578 16.005C16.2993 15.3259 16.7797 14.7584 17.4039 14.4018L17.4079 14.3995L17.4079 14.3995Z",fill:"currentColor"}))});k7.displayName="SubscriptIcon";var T7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 7.29289C13.0976 7.68342 13.0976 8.31658 12.7071 8.70711L4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L11.2929 7.29289C11.6834 6.90237 12.3166 6.90237 12.7071 7.29289Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L12.7071 15.2929C13.0976 15.6834 13.0976 16.3166 12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.405 1.40657C18.0246 1.05456 18.7463 0.92634 19.4492 1.04344C20.1521 1.16054 20.7933 1.51583 21.2652 2.0497L21.2697 2.05469L21.2696 2.05471C21.7431 2.5975 22 3.28922 22 4.00203C22 5.08579 21.3952 5.84326 20.7727 6.34289C20.1966 6.80531 19.4941 7.13675 18.9941 7.37261C18.9714 7.38332 18.9491 7.39383 18.9273 7.40415C18.4487 7.63034 18.2814 7.78152 18.1927 7.91844C18.1778 7.94155 18.1625 7.96834 18.1473 8.00003H21C21.5523 8.00003 22 8.44774 22 9.00003C22 9.55231 21.5523 10 21 10H17C16.4477 10 16 9.55231 16 9.00003C16 8.17007 16.1183 7.44255 16.5138 6.83161C16.9107 6.21854 17.4934 5.86971 18.0728 5.59591C18.6281 5.33347 19.1376 5.09075 19.5208 4.78316C19.8838 4.49179 20 4.25026 20 4.00203C20 3.77192 19.9178 3.54865 19.7646 3.37182C19.5968 3.18324 19.3696 3.05774 19.1205 3.01625C18.8705 2.97459 18.6137 3.02017 18.3933 3.14533C18.1762 3.26898 18.0191 3.45826 17.9406 3.67557C17.7531 4.19504 17.18 4.46414 16.6605 4.27662C16.141 4.0891 15.8719 3.51596 16.0594 2.99649C16.303 2.3219 16.7817 1.76125 17.4045 1.40689L17.405 1.40657Z",fill:"currentColor"}))});T7.displayName="SuperscriptIcon";var D7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 4C7 3.44772 6.55228 3 6 3C5.44772 3 5 3.44772 5 4V10C5 11.8565 5.7375 13.637 7.05025 14.9497C8.36301 16.2625 10.1435 17 12 17C13.8565 17 15.637 16.2625 16.9497 14.9497C18.2625 13.637 19 11.8565 19 10V4C19 3.44772 18.5523 3 18 3C17.4477 3 17 3.44772 17 4V10C17 11.3261 16.4732 12.5979 15.5355 13.5355C14.5979 14.4732 13.3261 15 12 15C10.6739 15 9.40215 14.4732 8.46447 13.5355C7.52678 12.5979 7 11.3261 7 10V4ZM4 19C3.44772 19 3 19.4477 3 20C3 20.5523 3.44772 21 4 21H20C20.5523 21 21 20.5523 21 20C21 19.4477 20.5523 19 20 19H4Z",fill:"currentColor"}))});D7.displayName="UnderlineIcon";var oY={bold:S7,italic:N7,underline:D7,strike:E7,code:A7,superscript:T7,subscript:k7},P7={bold:"mod+b",italic:"mod+i",underline:"mod+u",strike:"mod+shift+s",code:"mod+e",superscript:"mod+.",subscript:"mod+,"};function L7(e,t){return !e||!e.isEditable||!Yi(t,e)||wr(e,["image"])?false:e.can().toggleMark(t)}function rY(e,t){return !e||!e.isEditable?false:e.isActive(t)}function nY(e,t){return !e||!e.isEditable||!L7(e,t)?false:e.chain().focus().toggleMark(t).run()}function aY(e){let{editor:t,type:o,hideWhenUnavailable:r}=e;return !t||!t.isEditable||!Yi(o,t)?false:r&&!t.isActive("code")?L7(t,o):true}function sY(e){return e.charAt(0).toUpperCase()+e.slice(1)}function gA(e){let{editor:t,type:o,hideWhenUnavailable:r=false,onToggled:n}=e,{editor:a}=je(t),[s,i]=J.useState(true),l=L7(a,o),d=rY(a,o);J.useEffect(()=>{if(!a)return;let p=()=>{i(aY({editor:a,type:o,hideWhenUnavailable:r}));};return p(),a.on("selectionUpdate",p),()=>{a.off("selectionUpdate",p);}},[a,o,r]);let c=J.useCallback(()=>{if(!a)return false;let p=nY(a,o);return p&&(n==null||n()),p},[a,o,n]);return {isVisible:s,isActive:d,handleMark:c,canToggle:l,label:sY(o),shortcutKeys:P7[o],Icon:oY[o]}}function dY({align:e,shortcutKeys:t=F7[e]}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:t}))}var Jc=J.forwardRef((p,c)=>{var f=p,{editor:e,align:t,text:o,hideWhenUnavailable:r=false,onAligned:n,showShortcut:a=false,onClick:s,icon:i,children:l}=f,d=Q(f,["editor","align","text","hideWhenUnavailable","onAligned","showShortcut","onClick","icon","children"]);let{editor:u}=je(e),{isVisible:g,handleTextAlign:m,label:v,canAlign:h,isActive:b,Icon:x,shortcutKeys:w}=bA({editor:u,align:t,hideWhenUnavailable:r,onAligned:n}),C=J.useCallback(k=>{s==null||s(k),!k.defaultPrevented&&m();},[m,s]);if(!g)return null;let A=i!=null?i:x;return J__namespace.default.createElement(wt,F(y({type:"button",disabled:!h,"data-style":"ghost","data-active-state":b?"on":"off","data-disabled":!h,role:"button",tabIndex:-1,"aria-label":v,"aria-pressed":b,tooltip:v,onClick:C},d),{ref:c}),l!=null?l:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(A,{className:"tiptap-button-icon"}),o&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},o),a&&J__namespace.default.createElement(dY,{align:t,shortcutKeys:w})))});Jc.displayName="TextAlignButton";var z7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12C6 11.4477 6.44772 11 7 11H17C17.5523 11 18 11.4477 18 12C18 12.5523 17.5523 13 17 13H7C6.44772 13 6 12.5523 6 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 18C4 17.4477 4.44772 17 5 17H19C19.5523 17 20 17.4477 20 18C20 18.5523 19.5523 19 19 19H5C4.44772 19 4 18.5523 4 18Z",fill:"currentColor"}))});z7.displayName="AlignCenterIcon";var B7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor"}))});B7.displayName="AlignJustifyIcon";var O7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H15C15.5523 11 16 11.4477 16 12C16 12.5523 15.5523 13 15 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H17C17.5523 17 18 17.4477 18 18C18 18.5523 17.5523 19 17 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor"}))});O7.displayName="AlignLeftIcon";var H7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 12C8 11.4477 8.44772 11 9 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H9C8.44772 13 8 12.5523 8 12Z",fill:"currentColor"}),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 18C6 17.4477 6.44772 17 7 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H7C6.44772 19 6 18.5523 6 18Z",fill:"currentColor"}))});H7.displayName="AlignRightIcon";var F7={left:"mod+shift+l",center:"mod+shift+e",right:"mod+shift+r",justify:"mod+shift+j"},vY={left:O7,center:z7,right:H7,justify:B7},yY={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"};function G7(e,t){return !e||!e.isEditable||!Hs(e,"textAlign")||wr(e,["image","horizontalRule"])?false:e.can().setTextAlign(t)}function bY(e){return "setTextAlign"in e}function xY(e,t){return !e||!e.isEditable?false:e.isActive({textAlign:t})}function wY(e,t){if(!e||!e.isEditable||!G7(e,t))return false;let o=e.chain().focus();return bY(o)?o.setTextAlign(t).run():false}function CY(e){let{editor:t,hideWhenUnavailable:o,align:r}=e;return !t||!t.isEditable||!Hs(t,"textAlign")?false:o&&!t.isActive("code")?G7(t,r):true}function bA(e){let{editor:t,align:o,hideWhenUnavailable:r=false,onAligned:n}=e,{editor:a}=je(t),[s,i]=J.useState(true),l=G7(a,o),d=xY(a,o);J.useEffect(()=>{if(!a)return;let p=()=>{i(CY({editor:a,align:o,hideWhenUnavailable:r}));};return p(),a.on("selectionUpdate",p),()=>{a.off("selectionUpdate",p);}},[a,r,o]);let c=J.useCallback(()=>{if(!a)return false;let p=wY(a,o);return p&&(n==null||n()),p},[a,o,n]);return {isVisible:s,isActive:d,handleTextAlign:c,canAlign:l,label:yY[o],shortcutKeys:F7[o],Icon:vY[o]}}function SY({action:e,shortcutKeys:t=U7[e]}){return J__namespace.default.createElement(ir,null,$o({shortcutKeys:t}))}var f5=J.forwardRef((c,d)=>{var p=c,{editor:e,action:t,text:o,hideWhenUnavailable:r=false,onExecuted:n,showShortcut:a=false,onClick:s,children:i}=p,l=Q(p,["editor","action","text","hideWhenUnavailable","onExecuted","showShortcut","onClick","children"]);let{editor:f}=je(e),{isVisible:u,handleAction:g,label:m,canExecute:v,Icon:h,shortcutKeys:b}=xA({editor:f,action:t,hideWhenUnavailable:r,onExecuted:n}),x=J.useCallback(w=>{s==null||s(w),!w.defaultPrevented&&g();},[g,s]);return u?J__namespace.default.createElement(wt,F(y({type:"button",disabled:!v,"data-style":"ghost","data-disabled":!v,role:"button",tabIndex:-1,"aria-label":m,tooltip:m,onClick:x},l),{ref:d}),i!=null?i:J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(h,{className:"tiptap-button-icon"}),o&&J__namespace.default.createElement("span",{className:"tiptap-button-text"},o),a&&J__namespace.default.createElement(SY,{action:t,shortcutKeys:b}))):null});f5.displayName="UndoRedoButton";var _7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7071 2.29289C15.3166 1.90237 14.6834 1.90237 14.2929 2.29289C13.9024 2.68342 13.9024 3.31658 14.2929 3.70711L17.5858 7H9.5C7.77609 7 6.12279 7.68482 4.90381 8.90381C3.68482 10.1228 3 11.7761 3 13.5C3 14.3536 3.16813 15.1988 3.49478 15.9874C3.82144 16.7761 4.30023 17.4926 4.90381 18.0962C6.12279 19.3152 7.77609 20 9.5 20H13C13.5523 20 14 19.5523 14 19C14 18.4477 13.5523 18 13 18H9.5C8.30653 18 7.16193 17.5259 6.31802 16.682C5.90016 16.2641 5.56869 15.768 5.34254 15.2221C5.1164 14.6761 5 14.0909 5 13.5C5 12.3065 5.47411 11.1619 6.31802 10.318C7.16193 9.47411 8.30653 9 9.5 9H17.5858L14.2929 12.2929C13.9024 12.6834 13.9024 13.3166 14.2929 13.7071C14.6834 14.0976 15.3166 14.0976 15.7071 13.7071L20.7071 8.70711C21.0976 8.31658 21.0976 7.68342 20.7071 7.29289L15.7071 2.29289Z",fill:"currentColor"}))});_7.displayName="Redo2Icon";var V7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.70711 3.70711C10.0976 3.31658 10.0976 2.68342 9.70711 2.29289C9.31658 1.90237 8.68342 1.90237 8.29289 2.29289L3.29289 7.29289C2.90237 7.68342 2.90237 8.31658 3.29289 8.70711L8.29289 13.7071C8.68342 14.0976 9.31658 14.0976 9.70711 13.7071C10.0976 13.3166 10.0976 12.6834 9.70711 12.2929L6.41421 9H14.5C15.0909 9 15.6761 9.1164 16.2221 9.34254C16.768 9.56869 17.2641 9.90016 17.682 10.318C18.0998 10.7359 18.4313 11.232 18.6575 11.7779C18.8836 12.3239 19 12.9091 19 13.5C19 14.0909 18.8836 14.6761 18.6575 15.2221C18.4313 15.768 18.0998 16.2641 17.682 16.682C17.2641 17.0998 16.768 17.4313 16.2221 17.6575C15.6761 17.8836 15.0909 18 14.5 18H11C10.4477 18 10 18.4477 10 19C10 19.5523 10.4477 20 11 20H14.5C15.3536 20 16.1988 19.8319 16.9874 19.5052C17.7761 19.1786 18.4926 18.6998 19.0962 18.0962C19.6998 17.4926 20.1786 16.7761 20.5052 15.9874C20.8319 15.1988 21 14.3536 21 13.5C21 12.6464 20.8319 11.8012 20.5052 11.0126C20.1786 10.2239 19.6998 9.50739 19.0962 8.90381C18.4926 8.30022 17.7761 7.82144 16.9874 7.49478C16.1988 7.16813 15.3536 7 14.5 7H6.41421L9.70711 3.70711Z",fill:"currentColor"}))});V7.displayName="Undo2Icon";var U7={undo:"mod+z",redo:"mod+shift+z"},TY={undo:"Undo",redo:"Redo"},DY={undo:V7,redo:_7};function j7(e,t){return !e||!e.isEditable||wr(e,["image"])?false:t==="undo"?e.can().undo():e.can().redo()}function LY(e,t){if(!e||!e.isEditable||!j7(e,t))return false;let o=e.chain().focus();return t==="undo"?o.undo().run():o.redo().run()}function FY(e){let{editor:t,hideWhenUnavailable:o,action:r}=e;return !t||!t.isEditable?false:o&&!t.isActive("code")?j7(t,r):true}function xA(e){let{editor:t,action:o,hideWhenUnavailable:r=false,onExecuted:n}=e,{editor:a}=je(t),[s,i]=J.useState(true),l=j7(a,o);J.useEffect(()=>{if(!a)return;let c=()=>{i(FY({editor:a,hideWhenUnavailable:r,action:o}));};return c(),a.on("transaction",c),()=>{a.off("transaction",c);}},[a,r,o]);let d=J.useCallback(()=>{if(!a)return false;let c=LY(a,o);return c&&(n==null||n()),c},[a,o,n]);return {isVisible:s,handleAction:d,canExecute:l,label:TY[o],shortcutKeys:U7[o],Icon:DY[o]}}var MA=e=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",fill:"none",viewBox:"0 0 20 21"},J__namespace.createElement("path",{stroke:"#050910",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M7.5 8.833h.008m4.992 0h.008M7.917 13a2.916 2.916 0 0 0 4.166 0m5.417-2.5a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0"}));function zY(e){return J__namespace.createElement("svg",y({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),J__namespace.createElement("path",{d:"M20 12.702v1.384c0 .23-.01.461-.03.69-.28 3.16-2.475 5.224-5.641 5.224H5.67c-1.603 0-2.956-.52-3.928-1.464a4.593 4.593 0 01-.952-1.232c.331-.402.702-.842 1.063-1.283a98.56 98.56 0 001.573-1.925c.55-.682 2.004-2.476 4.018-1.634.41.17.771.41 1.102.621.812.542 1.152.702 1.723.391.632-.34 1.043-1.012 1.473-1.714.23-.372.461-.732.712-1.063 1.092-1.423 2.775-1.804 4.178-.962.702.42 1.303.952 1.864 1.493.12.12.24.231.35.341.15.15.652.652 1.153 1.133z",fill:"#687588"}),J__namespace.createElement("path",{opacity:.4,d:"M14.339 0H5.67C2.275 0 0 2.376 0 5.914v8.172c0 1.232.28 2.326.792 3.218.33-.402.701-.842 1.062-1.284a95.981 95.981 0 001.573-1.924c.551-.682 2.004-2.476 4.018-1.634.41.17.771.41 1.102.621.812.542 1.152.702 1.723.39.632-.34 1.043-1.011 1.473-1.714.23-.37.461-.73.712-1.062 1.092-1.423 2.775-1.804 4.178-.962.702.42 1.303.952 1.864 1.493.12.12.24.231.35.342.151.149.652.65 1.153 1.133V5.914C20 2.376 17.726 0 14.339 0z",fill:"#687588"}),J__namespace.createElement("path",{d:"M9.454 6.797a2.604 2.604 0 01-2.58 2.581c-1.408 0-2.58-1.173-2.58-2.581s1.172-2.582 2.58-2.582c1.407 0 2.58 1.174 2.58 2.582z",fill:"#687588"}))}var BY=J__namespace.memo(zY),PA=BY;function SA({onHighlighterClick:e,onLinkClick:t,onEmojiClick:o,onMentionClick:r,isMobile:n}){return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(Gs,null,J__namespace.default.createElement(f5,{action:"undo"}),J__namespace.default.createElement(f5,{action:"redo"})),J__namespace.default.createElement(Ji,null),J__namespace.default.createElement(Gs,null,J__namespace.default.createElement(X8,{levels:[1,2,3],portal:n}),J__namespace.default.createElement(JS,{types:["bulletList","orderedList"],portal:n}),J__namespace.default.createElement(a7,null)),J__namespace.default.createElement(Ji,null),J__namespace.default.createElement(Gs,null,J__namespace.default.createElement(B0,{type:"bold"}),J__namespace.default.createElement(B0,{type:"italic"}),J__namespace.default.createElement(B0,{type:"strike"}),J__namespace.default.createElement(B0,{type:"underline"}),n?J__namespace.default.createElement(a5,{onClick:e}):J__namespace.default.createElement(rA,null),n?J__namespace.default.createElement(s5,{onClick:t}):J__namespace.default.createElement(x7,null)),J__namespace.default.createElement(Ji,null),J__namespace.default.createElement(Gs,null,J__namespace.default.createElement(Jc,{align:"left"}),J__namespace.default.createElement(Jc,{align:"center"}),J__namespace.default.createElement(Jc,{align:"right"})),J__namespace.default.createElement(Ji,null),J__namespace.default.createElement(Gs,null,J__namespace.default.createElement(R8,{text:"Imagem",icon:PA}),J__namespace.default.createElement(wt,{"data-style":"ghost",onClick:o,className:"flex items-center gap-1 px-2 py-1 hover:bg-gray-100 rounded"},J__namespace.default.createElement(MA,{className:"w-4 h-4"}),J__namespace.default.createElement("span",{className:"text-xs"},"Emoji"))),J__namespace.default.createElement(BS,null))}var W7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M12.7071 5.70711C13.0976 5.31658 13.0976 4.68342 12.7071 4.29289C12.3166 3.90237 11.6834 3.90237 11.2929 4.29289L4.29289 11.2929C3.90237 11.6834 3.90237 12.3166 4.29289 12.7071L11.2929 19.7071C11.6834 20.0976 12.3166 20.0976 12.7071 19.7071C13.0976 19.3166 13.0976 18.6834 12.7071 18.2929L7.41421 13L19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11L7.41421 11L12.7071 5.70711Z",fill:"currentColor"}))});W7.displayName="ArrowLeftIcon";function NA({type:e,onBack:t}){return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(Gs,null,J__namespace.default.createElement(wt,{"data-style":"ghost",onClick:t},J__namespace.default.createElement(W7,{className:"tiptap-button-icon"}),e==="highlighter"?J__namespace.default.createElement(yl,{className:"tiptap-button-icon"}):J__namespace.default.createElement(xl,{className:"tiptap-button-icon"}))),J__namespace.default.createElement(Ji,null),e==="highlighter"?J__namespace.default.createElement(u7,null):J__namespace.default.createElement(pA,null))}var Q7=J.memo(o=>{var r=o,{className:e}=r,t=Q(r,["className"]);return J__namespace.default.createElement("svg",y({width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),J__namespace.default.createElement("path",{d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z",fill:"currentColor"}))});Q7.displayName="CloseIcon";function _Y(e,t){let[o,r]=J.useState([]),n=l=>j(this,null,function*(){var f,u,g;if(l.size>e.maxSize){let m=new Error(t("article.upload.file-size-error",{maxSize:e.maxSize/1024/1024}));return (f=e.onError)==null||f.call(e,m),null}let d=new AbortController,c=crypto.randomUUID(),p={id:c,file:l,progress:0,status:"uploading",abortController:d};r(m=>[...m,p]);try{if(!e.upload)throw new Error(t("article.upload.upload-function-not-defined"));let m=yield e.upload(l,v=>{r(h=>h.map(b=>b.id===c?F(y({},b),{progress:v.progress}):b));},d.signal);if(!m)throw new Error(t("article.upload.no-url-returned"));return d.signal.aborted?null:(r(v=>v.map(h=>h.id===c?F(y({},h),{status:"success",url:m,progress:100}):h)),(u=e.onSuccess)==null||u.call(e,m),m)}catch(m){return d.signal.aborted||(r(v=>v.map(h=>h.id===c?F(y({},h),{status:"error",progress:0}):h)),(g=e.onError)==null||g.call(e,m instanceof Error?m:new Error(t("article.upload.upload-failed")))),null}});return {fileItems:o,uploadFiles:l=>j(this,null,function*(){var p,f;if(!l||l.length===0)return (p=e.onError)==null||p.call(e,new Error(t("article.upload.no-files-to-upload"))),[];if(e.limit&&l.length>e.limit){let u=e.limit===1?"":"s";return (f=e.onError)==null||f.call(e,new Error(t("article.upload.max-files-error",{limit:e.limit,plural:u}))),[]}let d=l.map(u=>n(u));return (yield Promise.all(d)).filter(u=>u!==null)}),removeFileItem:l=>{r(d=>{let c=d.find(p=>p.id===l);return c!=null&&c.abortController&&c.abortController.abort(),c!=null&&c.url&&URL.revokeObjectURL(c.url),d.filter(p=>p.id!==l)});},clearAllFiles:()=>{o.forEach(l=>{l.abortController&&l.abortController.abort(),l.url&&URL.revokeObjectURL(l.url);}),r([]);}}}var EA=({className:e})=>J__namespace.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",className:ut("h-6 w-6",e),fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:"M11.1953 4.41771C10.3478 4.08499 9.43578 3.94949 8.5282 4.02147C7.62062 4.09345 6.74133 4.37102 5.95691 4.83316C5.1725 5.2953 4.50354 5.92989 4.00071 6.68886C3.49788 7.44783 3.17436 8.31128 3.05465 9.2138C2.93495 10.1163 3.0222 11.0343 3.3098 11.8981C3.5974 12.7619 4.07781 13.5489 4.71463 14.1995C5.10094 14.5942 5.09414 15.2274 4.69945 15.6137C4.30476 16 3.67163 15.9932 3.28532 15.5985C2.43622 14.731 1.79568 13.6816 1.41221 12.5299C1.02875 11.3781 0.91241 10.1542 1.07201 8.95084C1.23162 7.74748 1.66298 6.59621 2.33343 5.58425C3.00387 4.57229 3.89581 3.72617 4.9417 3.10998C5.98758 2.4938 7.15998 2.1237 8.37008 2.02773C9.58018 1.93176 10.7963 2.11243 11.9262 2.55605C13.0561 2.99968 14.0703 3.69462 14.8919 4.58825C15.5423 5.29573 16.0585 6.11304 16.4177 7.00002H17.4999C18.6799 6.99991 19.8288 7.37933 20.7766 8.08222C21.7245 8.78515 22.4212 9.7743 22.7637 10.9036C23.1062 12.0328 23.0765 13.2423 22.6788 14.3534C22.2812 15.4644 21.5367 16.4181 20.5554 17.0736C20.0962 17.3803 19.4752 17.2567 19.1684 16.7975C18.8617 16.3382 18.9853 15.7172 19.4445 15.4105C20.069 14.9934 20.5427 14.3865 20.7958 13.6794C21.0488 12.9724 21.0678 12.2027 20.8498 11.4841C20.6318 10.7655 20.1885 10.136 19.5853 9.6887C18.9821 9.24138 18.251 8.99993 17.5001 9.00002H15.71C15.2679 9.00002 14.8783 8.70973 14.7518 8.28611C14.4913 7.41374 14.0357 6.61208 13.4195 5.94186C12.8034 5.27164 12.0427 4.75043 11.1953 4.41771Z",fill:"currentColor"}),J__namespace.default.createElement("path",{d:"M11 14.4142V21C11 21.5523 11.4477 22 12 22C12.5523 22 13 21.5523 13 21V14.4142L15.2929 16.7071C15.6834 17.0976 16.3166 17.0976 16.7071 16.7071C17.0976 16.3166 17.0976 15.6834 16.7071 15.2929L12.7078 11.2936C12.7054 11.2912 12.703 11.2888 12.7005 11.2864C12.5208 11.1099 12.2746 11.0008 12.003 11L12 11L11.997 11C11.8625 11.0004 11.7343 11.0273 11.6172 11.0759C11.502 11.1236 11.3938 11.1937 11.2995 11.2864C11.297 11.2888 11.2946 11.2912 11.2922 11.2936L7.29289 15.2929C6.90237 15.6834 6.90237 16.3166 7.29289 16.7071C7.68342 17.0976 8.31658 17.0976 8.70711 16.7071L11 14.4142Z",fill:"currentColor"})),VY=()=>J__namespace.default.createElement("svg",{width:"43",height:"57",viewBox:"0 0 43 57",fill:"currentColor",className:"absolute text-[color:rgba(37,39,45,0.1)] dark:text-[color:rgba(238,238,246,0.11)]",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:"M0.75 10.75C0.75 5.64137 4.89137 1.5 10 1.5H32.3431C33.2051 1.5 34.0317 1.84241 34.6412 2.4519L40.2981 8.10876C40.9076 8.71825 41.25 9.5449 41.25 10.4069V46.75C41.25 51.8586 37.1086 56 32 56H10C4.89137 56 0.75 51.8586 0.75 46.75V10.75Z",fill:"currentColor",fillOpacity:"0.11",stroke:"currentColor",strokeWidth:"1.5"})),jY=()=>J__namespace.default.createElement("svg",{width:"10",height:"10",className:"absolute right-1 top-0 h-full text-[color:#D5D6D7] dark:text-[color:#464649]",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:"M0 0.75H0.343146C1.40401 0.75 2.42143 1.17143 3.17157 1.92157L8.82843 7.57843C9.57857 8.32857 10 9.34599 10 10.4069V10.75H4C1.79086 10.75 0 8.95914 0 6.75V0.75Z",fill:"currentColor"})),qY=({onFile:e,children:t,isSelected:o=false})=>{let[r,n]=J.useState(false),[a,s]=J.useState(false),i=f=>{f.preventDefault(),f.stopPropagation(),s(true);},l=f=>{f.preventDefault(),f.stopPropagation(),f.currentTarget.contains(f.relatedTarget)||(s(false),n(false));},d=f=>{f.preventDefault(),f.stopPropagation(),n(true);},c=f=>{f.preventDefault(),f.stopPropagation(),s(false),n(false);let u=Array.from(f.dataTransfer.files);u.length>0&&e(u);},p=ut("relative flex w-full flex-col items-center justify-center gap-3","rounded-[var(--tt-radius-md,0.5rem)] border border-dashed border-[color:rgba(47,50,55,0.2)]","px-6 py-8 text-center transition-[background,border-color,box-shadow] duration-200 ease-out","cursor-pointer select-none","hover:border-[color:rgba(40,44,51,0.42)] hover:bg-[color:#EBF7FD]","dark:border-[color:rgba(239,239,245,0.22)] dark:hover:border-[color:rgba(244,244,255,0.37)] dark:hover:bg-[color:#04517A]",o&&"border-[color:#0B89CE] shadow-[0_0_0_1px_#0B89CE] dark:border-[color:#5FB5EB] dark:shadow-[0_0_0_1px_#5FB5EB]",(a||r)&&"border-[color:#0B89CE] bg-[color:#EBF7FD] dark:border-[color:#5FB5EB] dark:bg-[color:#04517A]");return J__namespace.default.createElement("div",{className:p,"data-drag-state":r?"over":a?"active":"idle",onDragEnter:i,onDragLeave:l,onDragOver:d,onDrop:c},t)},WY=({fileItem:e,onRemove:t})=>{let o=r=>{if(r===0)return "0 Bytes";let n=1024,a=["Bytes","KB","MB","GB"],s=Math.floor(Math.log(r)/Math.log(n));return `${parseFloat((r/Math.pow(n,s)).toFixed(2))} ${a[s]}`};return J__namespace.default.createElement("div",{className:"relative overflow-hidden rounded-[var(--tt-radius-md,0.5rem)]","data-status":e.status},e.status==="uploading"&&J__namespace.default.createElement("div",{className:"absolute left-0 top-0 z-0 h-full rounded-[inherit] bg-[color:#EBF7FD] transition-all duration-300 ease-out dark:bg-[color:#04517A]",style:{width:`${e.progress}%`}}),J__namespace.default.createElement("div",{className:ut("relative z-[1] flex items-center justify-between gap-3","rounded-[var(--tt-radius-md,0.5rem)] border border-[color:rgba(47,50,55,0.2)] bg-white p-4 text-left","transition-colors duration-150","dark:border-[color:rgba(239,239,245,0.22)] dark:bg-[#19191A]")},J__namespace.default.createElement("div",{className:"flex min-h-8 items-center gap-3"},J__namespace.default.createElement("div",{className:"flex h-8 w-8 items-center justify-center rounded-[var(--tt-radius-lg,0.75rem)] bg-[color:#0B89CE] text-white dark:bg-[color:#5FB5EB] dark:text-black"},J__namespace.default.createElement(EA,{className:"h-3.5 w-3.5"})),J__namespace.default.createElement("div",{className:"flex flex-col gap-0.5"},J__namespace.default.createElement("span",{className:"text-sm font-medium leading-normal text-[color:rgba(35,37,42,0.87)] dark:text-[color:rgba(251,251,254,0.75)]"},e.file.name),J__namespace.default.createElement("span",{className:"text-xs font-semibold text-[color:rgba(40,44,51,0.42)] dark:text-[color:rgba(244,244,255,0.37)]"},o(e.file.size)))),J__namespace.default.createElement("div",{className:"flex items-center gap-2"},e.status==="uploading"&&J__namespace.default.createElement("span",{className:"text-xs font-semibold text-[color:#0B89CE] dark:text-[color:#5FB5EB]"},e.progress,"%"),J__namespace.default.createElement(wt,{type:"button","data-style":"ghost",onClick:r=>{r.stopPropagation(),t();}},J__namespace.default.createElement(Q7,{className:"tiptap-button-icon"})))))},QY=({translate:e})=>J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"relative inline-flex h-[3.75rem] w-[3.125rem] select-none items-start justify-center"},J__namespace.default.createElement(VY,null),J__namespace.default.createElement(jY,null),J__namespace.default.createElement("div",{className:"absolute bottom-0 right-0 flex h-7 w-7 items-center justify-center rounded-[var(--tt-radius-lg,0.75rem)] bg-[color:#0B89CE] text-white dark:bg-[color:#5FB5EB] dark:text-black"},J__namespace.default.createElement(EA,{className:"h-3.5 w-3.5"}))),J__namespace.default.createElement("div",{className:"flex flex-col items-center gap-1 text-center"},J__namespace.default.createElement("span",{className:"text-sm font-medium text-[color:rgba(35,37,42,0.87)] dark:text-[color:rgba(251,251,254,0.75)]"},J__namespace.default.createElement("em",{className:"not-italic underline"},e("article.upload.click-to-upload"))," ",e("article.upload.drag-and-drop")))),kA=e=>{let{accept:t,limit:o,maxSize:r}=e.node.attrs,n=J.useRef(null),a=e.extension,{translate:s}=Ja(),i={maxSize:r,limit:o,accept:t,upload:a.options.upload,onSuccess:a.options.onSuccess,onError:a.options.onError},{fileItems:l,uploadFiles:d,removeFileItem:c,clearAllFiles:p}=_Y(i,s),f=h=>j(void 0,null,function*(){let b=yield d(h);if(b.length>0){let x=e.getPos();if(Os(x)){let w=b.map((C,A)=>{var N;let k=((N=h[A])==null?void 0:N.name.replace(/\.[^/.]+$/,""))||"unknown";return {type:a.options.type,attrs:F(y({},a.options),{src:C,alt:k,title:k})}});e.editor.chain().focus().deleteRange({from:x,to:x+e.node.nodeSize}).insertContentAt(x,w).run(),SS(e.editor);}}}),u=h=>{var x,w;let b=h.target.files;if(!b||b.length===0){(w=(x=a.options).onError)==null||w.call(x,new Error(s("article.upload.no-file-selected")));return}f(Array.from(b));},g=()=>{n.current&&l.length===0&&(n.current.value="",n.current.click());},m=l.length>0,v=ut("relative my-8 flex flex-col gap-4 rounded-[var(--tt-radius-md,0.5rem)] outline-none",!m&&"cursor-pointer",e.selected&&"ring-2 ring-[color:#AFDBF5] dark:ring-[color:#04517A]");return J__namespace.default.createElement(react$2.NodeViewWrapper,{className:v,tabIndex:0,onClick:g,"data-selected":e.selected?"true":"false"},!m&&J__namespace.default.createElement(qY,{onFile:f,isSelected:e.selected},J__namespace.default.createElement(QY,{translate:s})),m&&J__namespace.default.createElement("div",{className:"flex flex-col gap-3"},l.length>1&&J__namespace.default.createElement("div",{className:"flex items-center justify-between border-b border-[color:rgba(47,50,55,0.2)] pb-2 text-sm font-medium text-[color:rgba(35,37,42,0.87)] dark:border-[color:rgba(239,239,245,0.22)] dark:text-[color:rgba(251,251,254,0.75)]"},J__namespace.default.createElement("span",null,s("article.upload.uploading-files",{count:l.length})),J__namespace.default.createElement(wt,{type:"button","data-style":"ghost",onClick:h=>{h.stopPropagation(),p();}},s("article.upload.clear-all"))),l.map(h=>J__namespace.default.createElement(WY,{key:h.id,fileItem:h,onRemove:()=>c(h.id)}))),J__namespace.default.createElement("input",{ref:n,name:"file",accept:t,type:"file",multiple:o>1,onChange:u,onClick:h=>h.stopPropagation(),className:"hidden"}))};var TA=react$2.Node.create({name:"imageUpload",group:"block",draggable:true,selectable:true,atom:true,addOptions(){return {type:"image",accept:"image/*",limit:1,maxSize:0,upload:void 0,onError:void 0,onSuccess:void 0,HTMLAttributes:{}}},addAttributes(){return {accept:{default:this.options.accept},limit:{default:this.options.limit},maxSize:{default:this.options.maxSize}}},parseHTML(){return [{tag:'div[data-type="image-upload"]'}]},renderHTML({HTMLAttributes:e}){return ["div",react$2.mergeAttributes({"data-type":"image-upload"},e)]},addNodeView(){return react$2.ReactNodeViewRenderer(kA)},addCommands(){return {setImageUploadNode:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addKeyboardShortcuts(){return {Enter:({editor:e})=>{let{selection:t}=e.state,{nodeAfter:o}=t.$from;if(o&&o.type.name==="imageUpload"&&e.isActive("imageUpload")){let r=e.view.nodeDOM(t.$from.pos);if(r&&r instanceof HTMLElement){let n=r.firstChild;if(n&&n instanceof HTMLElement)return n.click(),true}}return false}}}});var DA=XY__default.default.extend({renderHTML(){return ["div",react$2.mergeAttributes(this.options.HTMLAttributes,{"data-type":this.name}),["hr"]]}});function FA(){let[e,t]=J.useState(false),[o,r]=J.useState(0),{uploadAssets:n}=u0();return {uploadHandler:J.useCallback((s,i,l)=>j(this,null,function*(){r(u=>u+1),t(true);let d=URL.createObjectURL(s),c=0,p=setInterval(()=>{if(l!=null&&l.aborted)return clearInterval(p);c=Math.min(c+Math.random()*15,90),i==null||i({progress:c});},300),f=new Promise((u,g)=>{n({file:s,owner_type:"user",is_public:true},{onSuccess:m=>{var h;clearInterval(p),i==null||i({progress:100});let v=((h=m==null?void 0:m.data)==null?void 0:h.url)||d;v!==d&&URL.revokeObjectURL(d),u(v);},onError:m=>{clearInterval(p),g(m);}});});try{return yield f}catch(u){return clearInterval(p),d}finally{r(u=>{let g=u-1;return g<=0&&t(false),g});}}),[n]),isUploading:e,uploadingCount:o}}function zA({content:e,onContentChange:t,placeholder:o,uploadHandler:r}){return react$2.useEditor({immediatelyRender:false,content:e||"",editorProps:{attributes:{class:"article-editor-content",autocomplete:"off",autocorrect:"off",autocapitalize:"off","aria-label":"\xC1rea de conte\xFAdo principal"}},extensions:[starterKit.StarterKit.configure({horizontalRule:false,link:{openOnClick:false,HTMLAttributes:{class:"text-[#0B89CE] underline hover:text-blue-600"}}}),DA,extensionTextAlign.TextAlign.configure({types:["heading","paragraph"]}),extensionList.TaskList,extensionList.TaskItem.configure({nested:true}),extensionHighlight.Highlight.configure({multicolor:true}),extensionTypography.Typography,extensionSuperscript.Superscript,extensionSubscript.Subscript,extensionImage.Image.configure({HTMLAttributes:{class:"max-w-full h-auto rounded-lg my-4"}}),extensionPlaceholder.Placeholder.configure({placeholder:({node:n})=>n.type.name==="heading"?"Adicione um t\xEDtulo...":o,emptyEditorClass:"is-editor-empty"}),TA.configure({accept:"image/*",maxSize:PS,limit:5,upload:r,onError:()=>reactToastify.toast.error("Erro ao processar imagem")})],onUpdate:({editor:n})=>{t(n.getHTML());}})}var BA=`
|
|
2051
2051
|
outline-none focus:outline-none
|
|
2052
2052
|
[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none
|
|
2053
2053
|
[&_.ProseMirror]:min-h-[350px] [&_.ProseMirror]:font-normal
|
|
@@ -2296,7 +2296,7 @@ mutation CreatePost($createPostInput: CreatePostInput!) {
|
|
|
2296
2296
|
[&_.prosemirror-dropcursor-inline]:w-full
|
|
2297
2297
|
[&_.prosemirror-dropcursor-inline]:h-[0.188rem]
|
|
2298
2298
|
[&_.prosemirror-dropcursor-inline]:cursor-grabbing
|
|
2299
|
-
`;var
|
|
2299
|
+
`;var gJ=bt("relative","[&_.ProseMirror]:pt-4 [&_.ProseMirror]:pb-10","[&_.ProseMirror]:px-0","[&_.ProseMirror]:bg-transparent","[&_.ProseMirror]:transition-colors","[&_.ProseMirror]:text-[color:rgba(29,30,32,0.98)]","dark:[&_.ProseMirror]:text-[color:rgba(255,255,255,0.96)]"),hJ="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";function OA({title:e,content:t,onTitleChange:o,onContentChange:r,placeholder:n,onEmojiClick:a,onMentionClick:s}){let{translate:i}=Ja(),l=Xa(),[d,c]=J.useState("main"),{isUploadingAsset:p}=u0(),f=J.useRef(false),u=n||i("article.editor.placeholder"),{uploadHandler:g}=FA(),h=zA({content:t,onContentChange:r,placeholder:u,uploadHandler:g});return J.useEffect(()=>{h&&t!==h.getHTML()&&h.commands.setContent(t||"");},[t,h]),J.useEffect(()=>{!l&&d!=="main"&&c("main");},[l,d]),J.useEffect(()=>{if(typeof document=="undefined"||f.current)return;if(!document.querySelector("link[data-simple-editor-fonts='true']")){let x=document.createElement("link");x.rel="stylesheet",x.href=hJ,x.dataset.simpleEditorFonts="true",document.head.appendChild(x);}f.current=true;},[]),J.useEffect(()=>{if(typeof document=="undefined")return;let b=document.body.style.getPropertyValue("--tt-toolbar-height");return document.body.style.setProperty("--tt-toolbar-height","44px"),()=>{b?document.body.style.setProperty("--tt-toolbar-height",b):document.body.style.removeProperty("--tt-toolbar-height");}},[]),J__namespace.default.createElement("div",{className:"flex flex-col gap-4 bg-white rounded-lg p-6 min-h-[500px]"},J__namespace.default.createElement("div",{className:"flex-1 min-h-[400px] relative"},J__namespace.default.createElement(react$2.EditorContext.Provider,{value:{editor:h}},J__namespace.default.createElement(k8,{className:"mb-4 flex justify-start pb-8 border-none bg-white sticky top-0 z-[9998]"},J__namespace.default.createElement("div",{className:"w-max flex justify-start "},d==="main"?J__namespace.default.createElement(SA,{onHighlighterClick:()=>c("highlighter"),onLinkClick:()=>c("link"),onEmojiClick:a,onMentionClick:s,isMobile:l}):J__namespace.default.createElement(NA,{type:d==="highlighter"?"highlighter":"link",onBack:()=>c("main")}))),J__namespace.default.createElement("div",{className:"my-2"},J__namespace.default.createElement(kS,{title:e,onTitleChange:o}),J__namespace.default.createElement("div",{className:"w-16 h-1 bg-gray-200 rounded-full"})),J__namespace.default.createElement("div",{className:"prose prose-lg max-w-none"},J__namespace.default.createElement(react$2.EditorContent,{editor:h,className:bt(gJ,BA)})))))}var HA={title:"",content:"",post:null,selectedProfile:null,media:[],uploadedMedia:[],isUploading:false,selectedHashtags:[],viewMode:"create",currentStep:"create",isModalOpen:false,isSaved:false,isDraft:true,isPublishing:false,isSavingDraft:false,lastSavedAt:null,currentDraftId:null},Mo=zustand.create((e,t)=>F(y({},HA),{setTitle:o=>{e({title:o,isSaved:false});},setContent:o=>{e({content:o,isSaved:false});},setPost:o=>{e({post:o});},setSelectedProfile:o=>{e({selectedProfile:o,isSaved:false});},addMedia:o=>{e(r=>({media:[...r.media,o],uploadedMedia:[...r.uploadedMedia,o.url],isSaved:false}));},removeMedia:o=>{e(r=>({media:r.media.filter(n=>n.id!==o),uploadedMedia:r.uploadedMedia.filter(n=>{let a=r.media.find(s=>s.id===o);return a?n!==a.url:true}),isSaved:false}));},setIsUploading:o=>{e({isUploading:o});},toggleHashtag:o=>{e(r=>({selectedHashtags:r.selectedHashtags.includes(o)?r.selectedHashtags.filter(a=>a!==o):[...r.selectedHashtags,o],isSaved:false}));},setSelectedHashtags:o=>{e({selectedHashtags:o,isSaved:false});},setViewMode:o=>{e({viewMode:o});},setCurrentStep:o=>{e({currentStep:o});},openModal:()=>{e({isModalOpen:true});},closeModal:()=>{e({isModalOpen:false});},setIsSaved:o=>{e({isSaved:o});},setIsPublishing:o=>{e({isPublishing:o});},setIsSavingDraft:o=>{e({isSavingDraft:o});},markAsSaved:()=>{e({isSaved:true,lastSavedAt:new Date});},loadDraft:o=>{e({title:o.title||"",content:o.content||"",currentDraftId:o.id,isDraft:true,isSaved:true,viewMode:"create",currentStep:"create"});},clearDraft:()=>{e({currentDraftId:null,isSaved:false});},setCurrentDraftId:o=>{e({currentDraftId:o});},resetArticle:()=>{e(F(y({},HA),{selectedProfile:t().selectedProfile,isModalOpen:false}));}})),O0=()=>{let{title:e,content:t,media:o}=Mo();return !!(e.trim()||t.trim()||o.length>0)};var GA=()=>{let[e,t]=J.useState(null),o=J.useCallback(()=>{let r=window.getSelection();if(r&&r.toString().trim()){let a=r.getRangeAt(0).getBoundingClientRect();t({top:a.top+window.scrollY,left:a.left+a.width/2});}else t(null);},[]);return J.useEffect(()=>(document.addEventListener("mouseup",o),document.addEventListener("keyup",o),()=>{document.removeEventListener("mouseup",o),document.removeEventListener("keyup",o);}),[o]),{floatingToolbarPosition:e}};function UA(){let{user:e,feedApi:t,queryClient:o}=M(),{mutate:r,isPending:n}=ge({mutationKey:["saveDraft"],mutationFn:d=>j(this,[d],function*({title:a,content:s,selectedHashtags:i,pageId:l}){var f;let c=y({postType:"ARTICLE",content:s,title:a,isArticle:true,isDraft:true,tags:i},l&&{pageId:l});return yield hf__default.default(t!=null?t:"",Zi,{createPostInput:c},{"x-access-token":(f=e==null?void 0:e.accessToken)!=null?f:""})}),onMutate:()=>j(this,null,function*(){return {previousPosts:null}}),onSuccess(){o==null||o.invalidateQueries({queryKey:["drafts",e==null?void 0:e.id]});}});return {saveDraft:r,isSavingDraft:n}}var _A=hf.gql`
|
|
2300
2300
|
mutation UpdatePost($updatePostInput: UpdatePostInput!) {
|
|
2301
2301
|
updatePost(updatePostInput: $updatePostInput) {
|
|
2302
2302
|
videos {
|
|
@@ -2357,7 +2357,7 @@ query UserArticlesPosts($userId: String!) {
|
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
|
-
`;function qA(){let{user:e,feedApi:t,queryClient:o}=M(),{successToast:r,errorToast:n}=tt(),{mutate:a,isPending:s}=ge({mutationKey:["updateArticle"],mutationFn:l=>j(this,[l],function*({updatePostInput:i}){var c;return yield hf__default.default(t!=null?t:"",_A,{updatePostInput:i},{"x-access-token":(c=e==null?void 0:e.accessToken)!=null?c:""})}),onMutate:l=>j(this,[l],function*({updatePostInput:i}){o==null||o.invalidateQueries({queryKey:["posts",e==null?void 0:e.id]});let d=o==null?void 0:o.getQueryData(["posts",e==null?void 0:e.id]);return o==null||o.setQueryData(["posts",e==null?void 0:e.id],c=>{var f,u;if(!c)return c;let p=(u=(f=c==null?void 0:c.pages)==null?void 0:f.map(g=>{var v,h,b;let m=(b=(h=(v=g==null?void 0:g.recommendedPostsUser)==null?void 0:v.data)==null?void 0:h.map(x=>{var C,A;let w=k=>{var N;return (N=k==null?void 0:k.map(I=>{var P,S;return (I==null?void 0:I.id)!==(i==null?void 0:i.id)?I:F(y({},I),{title:(i==null?void 0:i.title)||(I==null?void 0:I.title),content:i.content||I.content,isArticle:(P=i.isArticle)!=null?P:I.isArticle,isDraft:(S=i.isDraft)!=null?S:I.isDraft,postType:i.postType||I.postType,images:i.images||I.images,videos:i.videos||I.videos})}))!=null?N:[]};return F(y({},x),{reels:w((C=x==null?void 0:x.reels)!=null?C:[]),normalPosts:w((A=x==null?void 0:x.normalPosts)!=null?A:[])})}))!=null?b:[];return F(y({},g),{recommendedPostsUser:F(y({},g==null?void 0:g.recommendedPostsUser),{data:m})})}))!=null?u:[];return F(y({},c),{pages:p})}),{previousPosts:d}}),onSuccess:(i,l)=>{o==null||o.invalidateQueries({queryKey:["posts",e==null?void 0:e.id]}),o==null||o.invalidateQueries({queryKey:["articles",e==null?void 0:e.id]}),o==null||o.invalidateQueries({queryKey:["drafts",e==null?void 0:e.id]});let d=l.updatePostInput.isDraft;r({title:d?"Rascunho salvo com sucesso":"Artigo atualizado com sucesso",message:d?"Seu rascunho foi salvo e voc\xEA pode continuar editando mais tarde.":"As altera\xE7\xF5es do seu artigo foram salvas com sucesso!"});},onError:(i,l,d)=>{d!=null&&d.previousPosts&&(o==null||o.setQueryData(["posts",e==null?void 0:e.id],d.previousPosts)),n({title:"Erro ao atualizar artigo",message:"N\xE3o foi poss\xEDvel salvar as altera\xE7\xF5es. Tente novamente."}),console.error("Erro ao atualizar artigo:",i);}});return {updateArticle:a,isUpdatingArticle:s}}var h5=()=>{let{title:e,content:t,selectedHashtags:o,selectedProfile:r,currentDraftId:n,setIsSaved:a,setIsSavingDraft:s,loadDraft:i}=Mo(),l=O0(),{saveDraft:d,isSavingDraft:c}=UA(),{updateArticle:p,isUpdatingArticle:f}=qA();return {saveDraft:J.useCallback(()=>j(void 0,null,function*(){if(l){s(true);try{let g;r!=null&&r.isPage&&(g=r.id.replace("page-","")),n?p({updatePostInput:{id:n,title:e,content:t,postType:"ARTICLE",isArticle:!0,isDraft:!0,tags:o}}):d(y({title:e,content:t,selectedHashtags:o},g&&{pageId:g})),a(!0);}catch(g){console.error("Erro ao salvar rascunho:",g);}finally{s(false);}}}),[l,e,t,o,r,n,d,p,a,s]),isSavingDraft:c||f}};var WA=()=>{let{title:e,content:t,isSaved:o}=Mo(),r=O0(),{saveDraft:n,isSavingDraft:a}=h5(),s=J.useRef();J.useEffect(()=>{if(!(!r||o||a))return s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{a||n();},3e3),()=>{s.current&&clearTimeout(s.current);}},[e,t,r,o,a,n]);};function QA(){let{user:e,feedApi:t,queryClient:o}=M(),{successToast:r,errorToast:n}=tt(),{mutate:a,isPending:s}=ge({mutationKey:["createArticle"],mutationFn:u=>j(this,[u],function*({title:i,content:l,selectedHashtags:d,isArticle:c=true,pageId:p,isDraft:f}){var v;let g=y({postType:"ARTICLE",content:l,title:i,isArticle:c,tags:d,isDraft:false},p&&{pageId:p});return yield hf__default.default(t!=null?t:"",Zi,{createPostInput:g},{"x-access-token":(v=e==null?void 0:e.accessToken)!=null?v:""})}),onMutate:u=>j(this,[u],function*({title:i,content:l,selectedHashtags:d,isArticle:c=true,pageId:p,isDraft:f}){if(f)return {previousPosts:null,optimisticArticle:null};o==null||o.invalidateQueries({queryKey:["posts",e==null?void 0:e.id]});let g=o==null?void 0:o.getQueryData(["posts",e==null?void 0:e.id]),m={id:`optimistic-article-${Date.now()}`,content:l,title:i,postType:"ARTICLE",createdAt:new Date().toISOString(),totalComments:0,totalReactions:0,totalShares:0,user:e,comments:[],reactions:[],images:[],videos:[],bio:"",link:{title:"",description:"",imageUrl:"",url:""},sharedPostId:"",sharedPost:null,isArticle:c,postTags:(d==null?void 0:d.length)>0?d==null?void 0:d.map(v=>({tag:{id:v,name:v}})):[]};return o==null||o.setQueryData(["posts",e==null?void 0:e.id],v=>{var b,x;if(!v)return v;let h=(x=(b=v==null?void 0:v.pages)==null?void 0:b.flatMap((w,C)=>{var A,k,N;if(C===0){let I=(N=(k=(A=w==null?void 0:w.recommendedPostsUser)==null?void 0:A.data)==null?void 0:k.flatMap(P=>{var D;let S=[m,...(D=P==null?void 0:P.normalPosts)!=null?D:[]];return F(y({},P),{normalPosts:S})}))!=null?N:[];return F(y({},w),{recommendedPostsUser:F(y({},w==null?void 0:w.recommendedPostsUser),{data:I})})}return w}))!=null?x:[];return F(y({},v),{pages:h})}),{previousPosts:g,optimisticArticle:m}}),onSuccess(i,l){o==null||o.invalidateQueries({queryKey:["posts",e==null?void 0:e.id]}),o==null||o.invalidateQueries({queryKey:["drafts",e==null?void 0:e.id]}),l.isDraft?console.log("Rascunho salvo com sucesso:"):r({title:"Artigo publicado com sucesso!",message:"Seu artigo foi publicado e est\xE1 dispon\xEDvel no seu feed."});},onError:(i,l,d)=>{o==null||o.setQueryData(["posts",e==null?void 0:e.id],d==null?void 0:d.previousPosts),n({title:"Erro ao publicar artigo",message:"Ocorreu um erro ao publicar seu artigo. Tente novamente."});}});return {createArticle:a,isCreatingArticle:s}}var KA=e=>{let{title:t,content:o,selectedHashtags:r,selectedProfile:n,setIsPublishing:a,resetArticle:s}=Mo(),i=O0(),{createArticle:l,isCreatingArticle:d}=QA();return {handlePublish:J.useCallback(()=>j(void 0,null,function*(){if(i){a(true);try{let p;n!=null&&n.isPage&&(p=n.id.replace("page-","")),l(y({title:t,content:o,selectedHashtags:r,isArticle:!0},p&&{pageId:p})),s(),e();}finally{a(false);}}}),[i,t,o,r,n,l,a,s,e]),isCreatingArticle:d}};var v5=e=>{let{resetArticle:t,toggleHashtag:o,setSelectedProfile:r}=Mo(),n=J.useCallback(()=>{t(),e();},[t,e]),a=J.useCallback(i=>o(i.id),[o]),s=J.useCallback(i=>r(i),[r]);return {handleClose:n,handleHashtagClick:a,handleProfileSelect:s}};function ZA(e={}){var c,p,f,u,g;let{user:t,feedApi:o}=M(),r=(c=t==null?void 0:t.id)!=null?c:"",n=()=>j(this,null,function*(){var m,v;if(!o||!(t!=null&&t.accessToken))throw new Error("Missing required API configuration");try{let h=yield hf__default.default(o,VA,{},{"x-access-token":t==null?void 0:t.accessToken});return (v=(m=h==null?void 0:h.userDraftPosts)==null?void 0:m.data)!=null?v:[]}catch(h){throw console.error("Erro ao buscar rascunhos:",h),h}}),{data:a,isLoading:s,refetch:i,isRefetching:l,error:d}=Ve({queryKey:["drafts",r],queryFn:n,enabled:(p=e.enabled)!=null?p:!!r&&!!o&&!!(t!=null&&t.accessToken),staleTime:(f=e.staleTime)!=null?f:5*60*1e3,refetchOnWindowFocus:(u=e.refetchOnWindowFocus)!=null?u:false});return {drafts:a!=null?a:[],isGettingDrafts:s,refetchDrafts:i,isRefetchingDrafts:l,error:d,hasDrafts:((g=a==null?void 0:a.length)!=null?g:0)>0}}var YA=()=>J__namespace.default.createElement("div",{className:"bg-primary/10 border border-[#F1F2F4] w-[282px] h-[344px] rounded-[16px] py-6 px-4 space-y-6"},J__namespace.default.createElement("section",{className:"w-full flex items-center justify-between mb-4"},J__namespace.default.createElement("div",{className:"h-[22px] w-[120px] bg-[#E6E9EF] rounded animate-pulse"}),J__namespace.default.createElement("div",{className:"h-[20px] w-[20px] bg-[#E6E9EF] rounded-md animate-pulse"})),J__namespace.default.createElement("section",{className:"w-full h-full flex flex-col gap-4 overflow-hidden"},[1,2,3].map((e,t)=>J__namespace.default.createElement("div",{key:t,className:"border border-[#E8EDFF] bg-white rounded-[12px] p-3 flex gap-3 items-start animate-pulse"},J__namespace.default.createElement("div",{className:"w-[50px] h-[50px] bg-[#F1F2F4] rounded-[8px]"}),J__namespace.default.createElement("div",{className:"flex flex-col gap-2"},J__namespace.default.createElement("div",{className:"h-[14px] w-[150px] bg-[#E6E9EF] rounded"}),J__namespace.default.createElement("div",{className:"h-[12px] w-[120px] bg-[#E6E9EF] rounded"}))))));function Xc({content:e}){let t=EJ__default.default.sanitize(e);return J__namespace.default.createElement("div",{className:"prose prose-lg max-w-none prose-img:rounded-lg prose-a:text-blue-600",dangerouslySetInnerHTML:{__html:t}})}var JA=()=>{let{currentDraftId:e,loadDraft:t,clearDraft:o}=Mo();return {currentDraftId:e,switchToDraft:i=>{t(i);},createNewArticle:()=>{o();},isCurrentDraft:i=>e===i,hasActiveDraft:()=>!!e}};var XA=()=>{let{switchToDraft:e,isCurrentDraft:t}=JA(),{drafts:o,isGettingDrafts:r,error:n}=ZA(),{setSelectedOption:a}=N0(),s=i=>{e(i),a(null);};return r?J__namespace.default.createElement(YA,null):J__namespace.default.createElement("div",{className:"bg-primary/10 border border-[#F1F2F4] w-[282px] h-[344px] rounded-[16px] py-6 px-4 space-y-6 overflow-y-auto scrollbar-hide"},J__namespace.default.createElement("section",{className:"w-full flex items-center justify-between mb-4 "},J__namespace.default.createElement("h2",{className:"text-[#000000] text-[20px] font-bold"},"Hist\xF3rico"),J__namespace.default.createElement(lucideReact.X,{size:20,className:"text-[#687588] cursor-pointer",onClick:()=>a(null)})),J__namespace.default.createElement("section",{className:"w-full h-full flex flex-col gap-4"},o.length===0||n||!o?J__namespace.default.createElement("div",{className:"w-full h-[200px] flex items-center justify-center"},J__namespace.default.createElement("p",{className:"text-center text-[12px] text-[#687588]"},"Sem artigos salvos")):o.map(i=>J__namespace.default.createElement("div",{key:i.id,className:`border rounded-[12px] p-3 flex gap-3 items-start cursor-pointer transition-all hover:shadow-sm relative ${t(i.id)?"border-primary bg-primary/5":"border-[#E8EDFF] bg-white hover:border-[#D1D9FF]"}`,onClick:()=>s(i)},J__namespace.default.createElement("div",{className:"w-[50px] h-[50px] flex items-center justify-center bg-white/80 rounded-[8px]"},J__namespace.default.createElement(v0,{fontSize:"50px"})),J__namespace.default.createElement("div",{className:"flex flex-col flex-1"},J__namespace.default.createElement("h3",{className:`text-[16px] font-semibold leading-tight ${t(i.id)?"text-primary":"text-[#111827]"}`},(i==null?void 0:i.title)||""),J__namespace.default.createElement("p",{className:"text-[14px] text-[#6B7280] leading-snug w-[170px] line-clamp-2 flex-shrink truncate"},J__namespace.default.createElement(Xc,{content:(i==null?void 0:i.content)||""})))))))};var RA=({onClose:e})=>{let {title:t,content:o,selectedProfile:r,selectedHashtags:n,isSaved:a,isPublishing:s,setTitle:i,setContent:l}=Mo(),{selectedOption:d}=N0(),c=J.useRef(null);GA();let {isSavingDraft:f}=h5();WA();let{handlePublish:u,isCreatingArticle:g}=KA(e),{handleProfileSelect:h}=v5(e);return J__namespace.default.createElement(react.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.35,ease:"easeOut"},className:"bg-white rounded-2xl flex-1 flex shadow-sm overflow-hidden"},d==="article-drafts"&&J__namespace.default.createElement(react.motion.div,{initial:{opacity:0,x:-15},animate:{opacity:1,x:0},transition:{duration:.3},className:"py-6 pl-9"},J__namespace.default.createElement(XA,null)),J__namespace.default.createElement("div",{className:"w-full h-full flex flex-col"},J__namespace.default.createElement(wS,{isSaved:a,isSavingDraft:f,isPublishing:s||g,selectedProfile:r,onPublish:u,onProfileSelect:h,canPublish:!!t&&!!o}),J__namespace.default.createElement("div",{ref:c,className:"flex-1 overflow-y-auto px-6 lg:px-1 py-6"},J__namespace.default.createElement(OA,{title:t,content:o,onTitleChange:i,onContentChange:l}))))};var eN=({name:e,role:t,avatarUrl:o})=>J__namespace.default.createElement("div",{className:"flex items-center gap-3 mb-6"},J__namespace.default.createElement(ae,{name:e,src:o,type:"user"}),J__namespace.default.createElement("div",null,J__namespace.default.createElement("h3",{className:"text-[16px] font-medium text-[#050910]"},e),J__namespace.default.createElement("p",{className:"text-[14px] font-medium text-[#687588] line-clamp-1 flex-shrink truncate"},t)));var tN=({articles:e})=>{var d,c,p;let{openModal:t,setViewMode:o,setPost:r,setTitle:n,setContent:a,clearDraft:s,resetArticle:i}=Mo();return J__namespace.default.createElement("div",{className:"bg-primary/10 rounded-[12px] p-4 shadow-sm cursor-pointer hover:shadow-md transition min-w-[350px] w-[350px]",onClick:()=>{s(),i(),n(e==null?void 0:e.title),a(e==null?void 0:e.content),r(e),o("view"),t();}},J__namespace.default.createElement("div",{className:"w-full h-[170px] flex items-center justify-center bg-white rounded-[8px] overflow-hidden mb-4"},J__namespace.default.createElement(v0,{fontSize:"200px"})),J__namespace.default.createElement("div",{className:"flex items-center gap-3 mb-3"},J__namespace.default.createElement(ae,{name:(d=e==null?void 0:e.user)==null?void 0:d.name,src:(c=e==null?void 0:e.user)==null?void 0:c.avatar,type:"user"}),J__namespace.default.createElement("p",{className:"text-[14px] font-medium text-[#050910]"},(p=e==null?void 0:e.user)==null?void 0:p.name)),J__namespace.default.createElement("h2",{className:"text-[22px] font-semibold text-[#3A4150] mb-2"},e==null?void 0:e.title))};var oN=({title:e,articles:t})=>J__namespace.default.createElement("div",{className:"mt-6 bg-white rounded-[8px] p-6 h-max"},J__namespace.default.createElement("h3",{className:"text-[24px] font-semibold text-[#3A4150] mb-6"},e),J__namespace.default.createElement("div",{className:"flex overflow-x-auto scrollbar-hide gap-6 "},t.slice(0,5).map((o,r)=>J__namespace.default.createElement(tN,{key:r,articles:o}))));function rN(e,t={}){var c,p;let{user:o,feedApi:r}=M(),n=()=>j(this,null,function*(){var f,u,g,m;if(!r||!(o!=null&&o.accessToken))throw new Error("Missing required API configuration");if(!e)throw new Error("userId is required");try{let v=yield hf__default.default(r,jA,{userId:e},{"x-access-token":o==null?void 0:o.accessToken});return (m=(g=(f=v==null?void 0:v.userArticlesPosts)==null?void 0:f.data)!=null?g:(u=v==null?void 0:v.userArticlesPosts)==null?void 0:u.data)!=null?m:[]}catch(v){throw console.error("Erro ao buscar artigos do usu\xE1rio:",v),v}}),{data:a,isLoading:s,refetch:i,isRefetching:l,error:d}=Ve({queryKey:["userArticles",e],queryFn:n,enabled:(c=t.enabled)!=null?c:!!e&&!!r&&!!(o!=null&&o.accessToken)});return {articles:a!=null?a:[],isGettingArticles:s,refetchArticles:i,isRefetchingArticles:l,error:d,hasArticles:((p=a==null?void 0:a.length)!=null?p:0)>0}}var nN=({children:e})=>{var l,d,c,p;let{commentComponents:t,user:o}=M(),{articles:r,isGettingArticles:n}=rN((o==null?void 0:o.id)||""),{setViewMode:a,setCurrentStep:s,post:i}=Mo();return J__namespace.default.createElement("div",{className:" w-full h-full flex gap-6 pb-6"},J__namespace.default.createElement("div",{className:"w-[65%] h-max"},J__namespace.default.createElement("div",{className:"bg-white rounded-[8px] p-6 h-max"},J__namespace.default.createElement(eN,{name:((l=i==null?void 0:i.user)==null?void 0:l.name)||"",role:((d=i==null?void 0:i.user)==null?void 0:d.headline)||"",avatarUrl:((c=i==null?void 0:i.user)==null?void 0:c.avatar)||""}),J__namespace.default.createElement("h1",{className:"text-[#3A4150] text-[32px] font-bold my-6"},(i==null?void 0:i.title)||""),J__namespace.default.createElement(Xc,{content:(i==null?void 0:i.content)||""}),n?null:r?J__namespace.default.createElement(oN,{title:`Mais artigos de ${((p=i==null?void 0:i.user)==null?void 0:p.name)||""}`,articles:r}):null)),J__namespace.default.createElement("div",{className:"bg-white rounded-[8px] p-6 w-[35%] h-full max-h-[85%]"},t))};var Rc=()=>{let{viewMode:e,currentStep:t,isModalOpen:o,setViewMode:r,setCurrentStep:n,openModal:a,closeModal:s,resetArticle:i,setPost:l,clearDraft:d}=Mo();return {viewMode:e,currentStep:t,isModalOpen:o,goToCreate:()=>{d(),r("create"),n("create");},goToPreview:()=>{r("view"),n("preview");},goToPublished:()=>{r("view"),n("published");},openModal:a,closeModal:s,resetAndClose:()=>{l(null),i(),s();}}};var LJ=({isOpen:e,onClose:t})=>{let {viewMode:o,resetAndClose:r}=Rc(),{translate:n}=Ja(),{post:a}=Mo();v5(t);let i=()=>{r(),t();},l=()=>{switch(o){case "create":return J__namespace.default.createElement(RA,{onClose:i});case "view":return J__namespace.default.createElement(nN,{onBack:i});default:return null}};return J__namespace.default.createElement(xi,{isOpen:e,onClose:i,variant:"expanded",className:"px-6 lg:px-[89px] pt-6 lg:pt-[49px]"},J__namespace.default.createElement("div",{className:"w-full min-h-full flex flex-col gap-4 overflow-y-auto"},J__namespace.default.createElement("h2",{className:"text-[#050910] text-[20px] font-bold"},n("article.title"),a!=null&&a.title?J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("span",{className:"text-[#050910] text-[20px] font-bold"},":"),J__namespace.default.createElement("span",{className:"text-[#687588] text-[20px] font-bold px-1"},a==null?void 0:a.title)):null),l()))};function FJ(e){let{fontSize:t="20px"}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 20 21",fill:"none"},e),J__namespace.createElement("path",{d:"M18.333 12.752v1.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"}),J__namespace.createElement("path",{opacity:.4,d:"M13.616 2.167H6.393c-2.83 0-4.726 1.98-4.726 4.928v6.81c0 1.027.234 1.938.66 2.682.275-.335.584-.702.885-1.07.51-.61 1.002-1.212 1.31-1.604.46-.568 1.67-2.063 3.35-1.361.341.142.642.342.918.518.676.45.96.584 1.436.325.526-.284.868-.843 1.227-1.429.192-.31.384-.61.593-.885.91-1.186 2.313-1.504 3.482-.802.585.351 1.086.794 1.553 1.244.1.1.2.193.292.285.126.124.543.542.96.944V7.095c0-2.948-1.895-4.928-4.717-4.928z",fill:"#687588"}),J__namespace.createElement("path",{d:"M9.545 7.83a2.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 H0=J__namespace.memo(FJ);function zJ(e){let{fontSize:t="20px"}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 20 21",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M17.775 6.702c-.349-.22-.778-.24-1.144-.053l-1.235.623c-.456.23-.74.696-.74 1.214v4.86c0 .519.284.983.74 1.215l1.234.623a1.143 1.143 0 001.145-.053c.35-.22.558-.599.558-1.015V7.718c0-.416-.208-.796-.558-1.016z",fill:"#687588"}),J__namespace.createElement("path",{d:"M9.921 17.167H5.095c-2.019 0-3.428-1.392-3.428-3.384V8.05c0-1.993 1.41-3.384 3.428-3.384H9.92c2.019 0 3.428 1.39 3.428 3.384v5.732c0 1.992-1.41 3.384-3.428 3.384z",fill:"#687588"}))}var BJ=J__namespace.memo(zJ),aN=BJ;function OJ(e){let{fontSize:t="20px"}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 20 21",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M18.334 10.5A8.333 8.333 0 0110 18.833a8.334 8.334 0 118.333-8.333z",fill:"#687588"}),J__namespace.createElement("path",{d:"M12.978 13.679a.63.63 0 01-.32-.088L9.386 11.64a.628.628 0 01-.304-.538V6.896a.625.625 0 011.25 0v3.851l2.967 1.77a.627.627 0 01-.321 1.162z",fill:"#687588"}))}var HJ=J__namespace.memo(OJ),Ri=HJ;function sN({children:e,footer:t,onClose:o,className:r,isOpen:n,hideCloseBlock:a,direction:s="bottom"}){return s==="right"||s==="left"?(J.useEffect(()=>(n?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset";}),[n]),n?J__namespace.default.createElement("div",{className:"fixed inset-0 z-[99999]"},J__namespace.default.createElement("div",{className:"fixed inset-0 bg-black/80 animate-in fade-in-0",onClick:o}),J__namespace.default.createElement("div",{className:U("fixed z-[99999] flex w-full flex-col bg-white","h-screen max-h-screen",s==="right"&&["right-0 top-0 bottom-0","animate-in slide-in-from-right duration-300",r!=null&&r.includes("rounded-none")?"!rounded-l-none":"!rounded-l-2xl"],s==="left"&&["left-0 top-0 bottom-0","animate-in slide-in-from-left duration-300",r!=null&&r.includes("rounded-none")?"!rounded-r-none":"!rounded-r-2xl"],"sm:w-96 sm:max-w-sm","max-sm:w-full",r)},J__namespace.default.createElement("div",{className:"mx-auto mt-1 h-2 w-[100px] rounded-full bg-muted"}),J__namespace.default.createElement(N1,{className:"!py-0"}),J__namespace.default.createElement("div",{className:"flex-1 overflow-y-auto min-h-0 flex flex-col"},J__namespace.default.createElement("div",{className:"flex-1 px-2 py-0"},e)),t&&J__namespace.default.createElement("div",{className:"border-t border-gray-200 flex-shrink-0 p-4",style:{paddingBottom:"max(1rem, env(safe-area-inset-bottom))"}},t))):null):J__namespace.default.createElement(Ia,{open:n,onOpenChange:i=>!i&&o()},J__namespace.default.createElement(Ea,{className:U("bg-white max-h-[calc(100vh-40px)] overflow-y-auto h-auto !p-6",(r==null?void 0:r.includes("!h-screen"))&&"!h-screen !max-h-screen !p-0",(r==null?void 0:r.includes("!h-100dvh"))&&"!h-screen !max-h-screen !p-0 !overflow-hidden",r!=null&&r.includes("rounded-none")?"!rounded-t-none":"!rounded-t-2xl",r)},J__namespace.default.createElement("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),J__namespace.default.createElement(N1,null),e,t&&J__namespace.default.createElement(l2,null,t)))}var iN=hf.gql`
|
|
2360
|
+
`;function qA(){let{user:e,feedApi:t,queryClient:o}=M(),{successToast:r,errorToast:n}=tt(),{mutate:a,isPending:s}=ge({mutationKey:["updateArticle"],mutationFn:l=>j(this,[l],function*({updatePostInput:i}){var c;return yield hf__default.default(t!=null?t:"",_A,{updatePostInput:i},{"x-access-token":(c=e==null?void 0:e.accessToken)!=null?c:""})}),onMutate:l=>j(this,[l],function*({updatePostInput:i}){o==null||o.invalidateQueries({queryKey:["posts",e==null?void 0:e.id]});let d=o==null?void 0:o.getQueryData(["posts",e==null?void 0:e.id]);return o==null||o.setQueryData(["posts",e==null?void 0:e.id],c=>{var f,u;if(!c)return c;let p=(u=(f=c==null?void 0:c.pages)==null?void 0:f.map(g=>{var v,h,b;let m=(b=(h=(v=g==null?void 0:g.recommendedPostsUser)==null?void 0:v.data)==null?void 0:h.map(x=>{var C,A;let w=k=>{var N;return (N=k==null?void 0:k.map(I=>{var P,S;return (I==null?void 0:I.id)!==(i==null?void 0:i.id)?I:F(y({},I),{title:(i==null?void 0:i.title)||(I==null?void 0:I.title),content:i.content||I.content,isArticle:(P=i.isArticle)!=null?P:I.isArticle,isDraft:(S=i.isDraft)!=null?S:I.isDraft,postType:i.postType||I.postType,images:i.images||I.images,videos:i.videos||I.videos})}))!=null?N:[]};return F(y({},x),{reels:w((C=x==null?void 0:x.reels)!=null?C:[]),normalPosts:w((A=x==null?void 0:x.normalPosts)!=null?A:[])})}))!=null?b:[];return F(y({},g),{recommendedPostsUser:F(y({},g==null?void 0:g.recommendedPostsUser),{data:m})})}))!=null?u:[];return F(y({},c),{pages:p})}),{previousPosts:d}}),onSuccess:(i,l)=>{o==null||o.invalidateQueries({queryKey:["posts",e==null?void 0:e.id]}),o==null||o.invalidateQueries({queryKey:["articles",e==null?void 0:e.id]}),o==null||o.invalidateQueries({queryKey:["drafts",e==null?void 0:e.id]});let d=l.updatePostInput.isDraft;r({title:d?"Rascunho salvo com sucesso":"Artigo atualizado com sucesso",message:d?"Seu rascunho foi salvo e voc\xEA pode continuar editando mais tarde.":"As altera\xE7\xF5es do seu artigo foram salvas com sucesso!"});},onError:(i,l,d)=>{d!=null&&d.previousPosts&&(o==null||o.setQueryData(["posts",e==null?void 0:e.id],d.previousPosts)),n({title:"Erro ao atualizar artigo",message:"N\xE3o foi poss\xEDvel salvar as altera\xE7\xF5es. Tente novamente."}),console.error("Erro ao atualizar artigo:",i);}});return {updateArticle:a,isUpdatingArticle:s}}var h5=()=>{let{title:e,content:t,selectedHashtags:o,selectedProfile:r,currentDraftId:n,setIsSaved:a,setIsSavingDraft:s,loadDraft:i}=Mo(),l=O0(),{saveDraft:d,isSavingDraft:c}=UA(),{updateArticle:p,isUpdatingArticle:f}=qA();return {saveDraft:J.useCallback(()=>j(void 0,null,function*(){if(l){s(true);try{let g;r!=null&&r.isPage&&(g=r.id.replace("page-","")),n?p({updatePostInput:{id:n,title:e,content:t,postType:"ARTICLE",isArticle:!0,isDraft:!0,tags:o}}):d(y({title:e,content:t,selectedHashtags:o},g&&{pageId:g})),a(!0);}catch(g){console.error("Erro ao salvar rascunho:",g);}finally{s(false);}}}),[l,e,t,o,r,n,d,p,a,s]),isSavingDraft:c||f}};var WA=()=>{let{title:e,content:t,isSaved:o}=Mo(),r=O0(),{saveDraft:n,isSavingDraft:a}=h5(),s=J.useRef();J.useEffect(()=>{if(!(!r||o||a))return s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{a||n();},3e3),()=>{s.current&&clearTimeout(s.current);}},[e,t,r,o,a,n]);};function QA(){let{user:e,feedApi:t,queryClient:o}=M(),{successToast:r,errorToast:n}=tt(),{mutate:a,isPending:s}=ge({mutationKey:["createArticle"],mutationFn:u=>j(this,[u],function*({title:i,content:l,selectedHashtags:d,isArticle:c=true,pageId:p,isDraft:f}){var v;let g=y({postType:"ARTICLE",content:l,title:i,isArticle:c,tags:d,isDraft:false},p&&{pageId:p});return yield hf__default.default(t!=null?t:"",Zi,{createPostInput:g},{"x-access-token":(v=e==null?void 0:e.accessToken)!=null?v:""})}),onMutate:u=>j(this,[u],function*({title:i,content:l,selectedHashtags:d,isArticle:c=true,pageId:p,isDraft:f}){if(f)return {previousPosts:null,optimisticArticle:null};o==null||o.invalidateQueries({queryKey:["posts",e==null?void 0:e.id]});let g=o==null?void 0:o.getQueryData(["posts",e==null?void 0:e.id]),m={id:`optimistic-article-${Date.now()}`,content:l,title:i,postType:"ARTICLE",createdAt:new Date().toISOString(),totalComments:0,totalReactions:0,totalShares:0,user:e,comments:[],reactions:[],images:[],videos:[],bio:"",link:{title:"",description:"",imageUrl:"",url:""},sharedPostId:"",sharedPost:null,isArticle:c,postTags:(d==null?void 0:d.length)>0?d==null?void 0:d.map(v=>({tag:{id:v,name:v}})):[]};return o==null||o.setQueryData(["posts",e==null?void 0:e.id],v=>{var b,x;if(!v)return v;let h=(x=(b=v==null?void 0:v.pages)==null?void 0:b.flatMap((w,C)=>{var A,k,N;if(C===0){let I=(N=(k=(A=w==null?void 0:w.recommendedPostsUser)==null?void 0:A.data)==null?void 0:k.flatMap(P=>{var D;let S=[m,...(D=P==null?void 0:P.normalPosts)!=null?D:[]];return F(y({},P),{normalPosts:S})}))!=null?N:[];return F(y({},w),{recommendedPostsUser:F(y({},w==null?void 0:w.recommendedPostsUser),{data:I})})}return w}))!=null?x:[];return F(y({},v),{pages:h})}),{previousPosts:g,optimisticArticle:m}}),onSuccess(i,l){o==null||o.invalidateQueries({queryKey:["posts",e==null?void 0:e.id]}),o==null||o.invalidateQueries({queryKey:["drafts",e==null?void 0:e.id]}),l.isDraft?console.log("Rascunho salvo com sucesso:"):r({title:"Artigo publicado com sucesso!",message:"Seu artigo foi publicado e est\xE1 dispon\xEDvel no seu feed."});},onError:(i,l,d)=>{o==null||o.setQueryData(["posts",e==null?void 0:e.id],d==null?void 0:d.previousPosts),n({title:"Erro ao publicar artigo",message:"Ocorreu um erro ao publicar seu artigo. Tente novamente."});}});return {createArticle:a,isCreatingArticle:s}}var KA=e=>{let{title:t,content:o,selectedHashtags:r,selectedProfile:n,setIsPublishing:a,resetArticle:s}=Mo(),i=O0(),{createArticle:l,isCreatingArticle:d}=QA();return {handlePublish:J.useCallback(()=>j(void 0,null,function*(){if(i){a(true);try{let p;n!=null&&n.isPage&&(p=n.id.replace("page-","")),l(y({title:t,content:o,selectedHashtags:r,isArticle:!0},p&&{pageId:p})),s(),e();}finally{a(false);}}}),[i,t,o,r,n,l,a,s,e]),isCreatingArticle:d}};var v5=e=>{let{resetArticle:t,toggleHashtag:o,setSelectedProfile:r}=Mo(),n=J.useCallback(()=>{t(),e();},[t,e]),a=J.useCallback(i=>o(i.id),[o]),s=J.useCallback(i=>r(i),[r]);return {handleClose:n,handleHashtagClick:a,handleProfileSelect:s}};function ZA(e={}){var c,p,f,u,g;let{user:t,feedApi:o}=M(),r=(c=t==null?void 0:t.id)!=null?c:"",n=()=>j(this,null,function*(){var m,v;if(!o||!(t!=null&&t.accessToken))throw new Error("Missing required API configuration");try{let h=yield hf__default.default(o,VA,{},{"x-access-token":t==null?void 0:t.accessToken});return (v=(m=h==null?void 0:h.userDraftPosts)==null?void 0:m.data)!=null?v:[]}catch(h){throw console.error("Erro ao buscar rascunhos:",h),h}}),{data:a,isLoading:s,refetch:i,isRefetching:l,error:d}=Ve({queryKey:["drafts",r],queryFn:n,enabled:(p=e.enabled)!=null?p:!!r&&!!o&&!!(t!=null&&t.accessToken),staleTime:(f=e.staleTime)!=null?f:5*60*1e3,refetchOnWindowFocus:(u=e.refetchOnWindowFocus)!=null?u:false});return {drafts:a!=null?a:[],isGettingDrafts:s,refetchDrafts:i,isRefetchingDrafts:l,error:d,hasDrafts:((g=a==null?void 0:a.length)!=null?g:0)>0}}var YA=()=>J__namespace.default.createElement("div",{className:"bg-primary/10 border border-[#F1F2F4] w-[282px] h-[344px] rounded-[16px] py-6 px-4 space-y-6"},J__namespace.default.createElement("section",{className:"w-full flex items-center justify-between mb-4"},J__namespace.default.createElement("div",{className:"h-[22px] w-[120px] bg-[#E6E9EF] rounded animate-pulse"}),J__namespace.default.createElement("div",{className:"h-[20px] w-[20px] bg-[#E6E9EF] rounded-md animate-pulse"})),J__namespace.default.createElement("section",{className:"w-full h-full flex flex-col gap-4 overflow-hidden"},[1,2,3].map((e,t)=>J__namespace.default.createElement("div",{key:t,className:"border border-[#E8EDFF] bg-white rounded-[12px] p-3 flex gap-3 items-start animate-pulse"},J__namespace.default.createElement("div",{className:"w-[50px] h-[50px] bg-[#F1F2F4] rounded-[8px]"}),J__namespace.default.createElement("div",{className:"flex flex-col gap-2"},J__namespace.default.createElement("div",{className:"h-[14px] w-[150px] bg-[#E6E9EF] rounded"}),J__namespace.default.createElement("div",{className:"h-[12px] w-[120px] bg-[#E6E9EF] rounded"}))))));function Xc({content:e}){let t=kJ__default.default.sanitize(e);return J__namespace.default.createElement("div",{className:"prose prose-lg max-w-none prose-img:rounded-lg prose-a:text-blue-600",dangerouslySetInnerHTML:{__html:t}})}var JA=()=>{let{currentDraftId:e,loadDraft:t,clearDraft:o}=Mo();return {currentDraftId:e,switchToDraft:i=>{t(i);},createNewArticle:()=>{o();},isCurrentDraft:i=>e===i,hasActiveDraft:()=>!!e}};var XA=()=>{let{switchToDraft:e,isCurrentDraft:t}=JA(),{drafts:o,isGettingDrafts:r,error:n}=ZA(),{setSelectedOption:a}=N0(),s=i=>{e(i),a(null);};return r?J__namespace.default.createElement(YA,null):J__namespace.default.createElement("div",{className:"bg-primary/10 border border-[#F1F2F4] w-[282px] h-[344px] rounded-[16px] py-6 px-4 space-y-6 overflow-y-auto scrollbar-hide"},J__namespace.default.createElement("section",{className:"w-full flex items-center justify-between mb-4 "},J__namespace.default.createElement("h2",{className:"text-[#000000] text-[20px] font-bold"},"Hist\xF3rico"),J__namespace.default.createElement(lucideReact.X,{size:20,className:"text-[#687588] cursor-pointer",onClick:()=>a(null)})),J__namespace.default.createElement("section",{className:"w-full h-full flex flex-col gap-4"},o.length===0||n||!o?J__namespace.default.createElement("div",{className:"w-full h-[200px] flex items-center justify-center"},J__namespace.default.createElement("p",{className:"text-center text-[12px] text-[#687588]"},"Sem artigos salvos")):o.map(i=>J__namespace.default.createElement("div",{key:i.id,className:`border rounded-[12px] p-3 flex gap-3 items-start cursor-pointer transition-all hover:shadow-sm relative ${t(i.id)?"border-primary bg-primary/5":"border-[#E8EDFF] bg-white hover:border-[#D1D9FF]"}`,onClick:()=>s(i)},J__namespace.default.createElement("div",{className:"w-[50px] h-[50px] flex items-center justify-center bg-white/80 rounded-[8px]"},J__namespace.default.createElement(v0,{fontSize:"50px"})),J__namespace.default.createElement("div",{className:"flex flex-col flex-1"},J__namespace.default.createElement("h3",{className:`text-[16px] font-semibold leading-tight ${t(i.id)?"text-primary":"text-[#111827]"}`},(i==null?void 0:i.title)||""),J__namespace.default.createElement("p",{className:"text-[14px] text-[#6B7280] leading-snug w-[170px] line-clamp-2 flex-shrink truncate"},J__namespace.default.createElement(Xc,{content:(i==null?void 0:i.content)||""})))))))};var RA=({onClose:e})=>{let {title:t,content:o,selectedProfile:r,selectedHashtags:n,isSaved:a,isPublishing:s,setTitle:i,setContent:l}=Mo(),{selectedOption:d}=N0(),c=J.useRef(null);GA();let {isSavingDraft:f}=h5();WA();let{handlePublish:u,isCreatingArticle:g}=KA(e),{handleProfileSelect:h}=v5(e);return J__namespace.default.createElement(react.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.35,ease:"easeOut"},className:"bg-white rounded-2xl flex-1 flex shadow-sm overflow-hidden"},d==="article-drafts"&&J__namespace.default.createElement(react.motion.div,{initial:{opacity:0,x:-15},animate:{opacity:1,x:0},transition:{duration:.3},className:"py-6 pl-9"},J__namespace.default.createElement(XA,null)),J__namespace.default.createElement("div",{className:"w-full h-full flex flex-col"},J__namespace.default.createElement(wS,{isSaved:a,isSavingDraft:f,isPublishing:s||g,selectedProfile:r,onPublish:u,onProfileSelect:h,canPublish:!!t&&!!o}),J__namespace.default.createElement("div",{ref:c,className:"flex-1 overflow-y-auto px-6 lg:px-1 py-6"},J__namespace.default.createElement(OA,{title:t,content:o,onTitleChange:i,onContentChange:l}))))};var eN=({name:e,role:t,avatarUrl:o})=>J__namespace.default.createElement("div",{className:"flex items-center gap-3 mb-6"},J__namespace.default.createElement(ae,{name:e,src:o,type:"user"}),J__namespace.default.createElement("div",null,J__namespace.default.createElement("h3",{className:"text-[16px] font-medium text-[#050910]"},e),J__namespace.default.createElement("p",{className:"text-[14px] font-medium text-[#687588] line-clamp-1 flex-shrink truncate"},t)));var tN=({articles:e})=>{var d,c,p;let{openModal:t,setViewMode:o,setPost:r,setTitle:n,setContent:a,clearDraft:s,resetArticle:i}=Mo();return J__namespace.default.createElement("div",{className:"bg-primary/10 rounded-[12px] p-4 shadow-sm cursor-pointer hover:shadow-md transition min-w-[350px] w-[350px]",onClick:()=>{s(),i(),n(e==null?void 0:e.title),a(e==null?void 0:e.content),r(e),o("view"),t();}},J__namespace.default.createElement("div",{className:"w-full h-[170px] flex items-center justify-center bg-white rounded-[8px] overflow-hidden mb-4"},J__namespace.default.createElement(v0,{fontSize:"200px"})),J__namespace.default.createElement("div",{className:"flex items-center gap-3 mb-3"},J__namespace.default.createElement(ae,{name:(d=e==null?void 0:e.user)==null?void 0:d.name,src:(c=e==null?void 0:e.user)==null?void 0:c.avatar,type:"user"}),J__namespace.default.createElement("p",{className:"text-[14px] font-medium text-[#050910]"},(p=e==null?void 0:e.user)==null?void 0:p.name)),J__namespace.default.createElement("h2",{className:"text-[22px] font-semibold text-[#3A4150] mb-2"},e==null?void 0:e.title))};var oN=({title:e,articles:t})=>J__namespace.default.createElement("div",{className:"mt-6 bg-white rounded-[8px] p-6 h-max"},J__namespace.default.createElement("h3",{className:"text-[24px] font-semibold text-[#3A4150] mb-6"},e),J__namespace.default.createElement("div",{className:"flex overflow-x-auto scrollbar-hide gap-6 "},t.slice(0,5).map((o,r)=>J__namespace.default.createElement(tN,{key:r,articles:o}))));function rN(e,t={}){var c,p;let{user:o,feedApi:r}=M(),n=()=>j(this,null,function*(){var f,u,g,m;if(!r||!(o!=null&&o.accessToken))throw new Error("Missing required API configuration");if(!e)throw new Error("userId is required");try{let v=yield hf__default.default(r,jA,{userId:e},{"x-access-token":o==null?void 0:o.accessToken});return (m=(g=(f=v==null?void 0:v.userArticlesPosts)==null?void 0:f.data)!=null?g:(u=v==null?void 0:v.userArticlesPosts)==null?void 0:u.data)!=null?m:[]}catch(v){throw console.error("Erro ao buscar artigos do usu\xE1rio:",v),v}}),{data:a,isLoading:s,refetch:i,isRefetching:l,error:d}=Ve({queryKey:["userArticles",e],queryFn:n,enabled:(c=t.enabled)!=null?c:!!e&&!!r&&!!(o!=null&&o.accessToken)});return {articles:a!=null?a:[],isGettingArticles:s,refetchArticles:i,isRefetchingArticles:l,error:d,hasArticles:((p=a==null?void 0:a.length)!=null?p:0)>0}}var nN=({children:e})=>{var l,d,c,p;let{commentComponents:t,user:o}=M(),{articles:r,isGettingArticles:n}=rN((o==null?void 0:o.id)||""),{setViewMode:a,setCurrentStep:s,post:i}=Mo();return J__namespace.default.createElement("div",{className:" w-full h-full flex gap-6 pb-6"},J__namespace.default.createElement("div",{className:"w-[65%] h-max"},J__namespace.default.createElement("div",{className:"bg-white rounded-[8px] p-6 h-max"},J__namespace.default.createElement(eN,{name:((l=i==null?void 0:i.user)==null?void 0:l.name)||"",role:((d=i==null?void 0:i.user)==null?void 0:d.headline)||"",avatarUrl:((c=i==null?void 0:i.user)==null?void 0:c.avatar)||""}),J__namespace.default.createElement("h1",{className:"text-[#3A4150] text-[32px] font-bold my-6"},(i==null?void 0:i.title)||""),J__namespace.default.createElement(Xc,{content:(i==null?void 0:i.content)||""}),n?null:r?J__namespace.default.createElement(oN,{title:`Mais artigos de ${((p=i==null?void 0:i.user)==null?void 0:p.name)||""}`,articles:r}):null)),J__namespace.default.createElement("div",{className:"bg-white rounded-[8px] p-6 w-[35%] h-full max-h-[85%]"},t))};var Rc=()=>{let{viewMode:e,currentStep:t,isModalOpen:o,setViewMode:r,setCurrentStep:n,openModal:a,closeModal:s,resetArticle:i,setPost:l,clearDraft:d}=Mo();return {viewMode:e,currentStep:t,isModalOpen:o,goToCreate:()=>{d(),r("create"),n("create");},goToPreview:()=>{r("view"),n("preview");},goToPublished:()=>{r("view"),n("published");},openModal:a,closeModal:s,resetAndClose:()=>{l(null),i(),s();}}};var FJ=({isOpen:e,onClose:t})=>{let {viewMode:o,resetAndClose:r}=Rc(),{translate:n}=Ja(),{post:a}=Mo();v5(t);let i=()=>{r(),t();},l=()=>{switch(o){case "create":return J__namespace.default.createElement(RA,{onClose:i});case "view":return J__namespace.default.createElement(nN,{onBack:i});default:return null}};return J__namespace.default.createElement(xi,{isOpen:e,onClose:i,variant:"expanded",className:"px-6 lg:px-[89px] pt-6 lg:pt-[49px]"},J__namespace.default.createElement("div",{className:"w-full min-h-full flex flex-col gap-4 overflow-y-auto"},J__namespace.default.createElement("h2",{className:"text-[#050910] text-[20px] font-bold"},n("article.title"),a!=null&&a.title?J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("span",{className:"text-[#050910] text-[20px] font-bold"},":"),J__namespace.default.createElement("span",{className:"text-[#687588] text-[20px] font-bold px-1"},a==null?void 0:a.title)):null),l()))};function zJ(e){let{fontSize:t="20px"}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 20 21",fill:"none"},e),J__namespace.createElement("path",{d:"M18.333 12.752v1.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"}),J__namespace.createElement("path",{opacity:.4,d:"M13.616 2.167H6.393c-2.83 0-4.726 1.98-4.726 4.928v6.81c0 1.027.234 1.938.66 2.682.275-.335.584-.702.885-1.07.51-.61 1.002-1.212 1.31-1.604.46-.568 1.67-2.063 3.35-1.361.341.142.642.342.918.518.676.45.96.584 1.436.325.526-.284.868-.843 1.227-1.429.192-.31.384-.61.593-.885.91-1.186 2.313-1.504 3.482-.802.585.351 1.086.794 1.553 1.244.1.1.2.193.292.285.126.124.543.542.96.944V7.095c0-2.948-1.895-4.928-4.717-4.928z",fill:"#687588"}),J__namespace.createElement("path",{d:"M9.545 7.83a2.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 H0=J__namespace.memo(zJ);function BJ(e){let{fontSize:t="20px"}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 20 21",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M17.775 6.702c-.349-.22-.778-.24-1.144-.053l-1.235.623c-.456.23-.74.696-.74 1.214v4.86c0 .519.284.983.74 1.215l1.234.623a1.143 1.143 0 001.145-.053c.35-.22.558-.599.558-1.015V7.718c0-.416-.208-.796-.558-1.016z",fill:"#687588"}),J__namespace.createElement("path",{d:"M9.921 17.167H5.095c-2.019 0-3.428-1.392-3.428-3.384V8.05c0-1.993 1.41-3.384 3.428-3.384H9.92c2.019 0 3.428 1.39 3.428 3.384v5.732c0 1.992-1.41 3.384-3.428 3.384z",fill:"#687588"}))}var OJ=J__namespace.memo(BJ),aN=OJ;function HJ(e){let{fontSize:t="20px"}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 20 21",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M18.334 10.5A8.333 8.333 0 0110 18.833a8.334 8.334 0 118.333-8.333z",fill:"#687588"}),J__namespace.createElement("path",{d:"M12.978 13.679a.63.63 0 01-.32-.088L9.386 11.64a.628.628 0 01-.304-.538V6.896a.625.625 0 011.25 0v3.851l2.967 1.77a.627.627 0 01-.321 1.162z",fill:"#687588"}))}var GJ=J__namespace.memo(HJ),Ri=GJ;function sN({children:e,footer:t,onClose:o,className:r,isOpen:n,hideCloseBlock:a,direction:s="bottom"}){return s==="right"||s==="left"?(J.useEffect(()=>(n?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset";}),[n]),n?J__namespace.default.createElement("div",{className:"fixed inset-0 z-[99999]"},J__namespace.default.createElement("div",{className:"fixed inset-0 bg-black/80 animate-in fade-in-0",onClick:o}),J__namespace.default.createElement("div",{className:U("fixed z-[99999] flex w-full flex-col bg-white","h-screen max-h-screen",s==="right"&&["right-0 top-0 bottom-0","animate-in slide-in-from-right duration-300",r!=null&&r.includes("rounded-none")?"!rounded-l-none":"!rounded-l-2xl"],s==="left"&&["left-0 top-0 bottom-0","animate-in slide-in-from-left duration-300",r!=null&&r.includes("rounded-none")?"!rounded-r-none":"!rounded-r-2xl"],"sm:w-96 sm:max-w-sm","max-sm:w-full",r)},J__namespace.default.createElement("div",{className:"mx-auto mt-1 h-2 w-[100px] rounded-full bg-muted"}),J__namespace.default.createElement(N1,{className:"!py-0"}),J__namespace.default.createElement("div",{className:"flex-1 overflow-y-auto min-h-0 flex flex-col"},J__namespace.default.createElement("div",{className:"flex-1 px-2 py-0"},e)),t&&J__namespace.default.createElement("div",{className:"border-t border-gray-200 flex-shrink-0 p-4",style:{paddingBottom:"max(1rem, env(safe-area-inset-bottom))"}},t))):null):J__namespace.default.createElement(Ia,{open:n,onOpenChange:i=>!i&&o()},J__namespace.default.createElement(Ea,{className:U("bg-white max-h-[calc(100vh-40px)] overflow-y-auto h-auto !p-6",(r==null?void 0:r.includes("!h-screen"))&&"!h-screen !max-h-screen !p-0",(r==null?void 0:r.includes("!h-100dvh"))&&"!h-screen !max-h-screen !p-0 !overflow-hidden",r!=null&&r.includes("rounded-none")?"!rounded-t-none":"!rounded-t-2xl",r)},J__namespace.default.createElement("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),J__namespace.default.createElement(N1,null),e,t&&J__namespace.default.createElement(l2,null,t)))}var iN=hf.gql`
|
|
2361
2361
|
mutation DeletePost($id: String!) {
|
|
2362
2362
|
deletePost(id: $id) {
|
|
2363
2363
|
success
|
|
@@ -2378,7 +2378,7 @@ query UserArticlesPosts($userId: String!) {
|
|
|
2378
2378
|
id
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
|
-
`;function lN({onClose:e,postId:t,postWasScheduled:o=false}){let{errorToast:r,successToast:n}=tt(),{feedApi:a,user:s,queryClient:i}=M(),{translate:l}=Oe(),{mutate:d,isPending:c}=ge({mutationKey:["deletePost",t],mutationFn:()=>j(this,null,function*(){var f;return yield hf__default.default(a!=null?a:"",iN,{id:t!=null?t:""},{"x-access-token":(f=s==null?void 0:s.accessToken)!=null?f:""})}),onSuccess:()=>{i==null||i.invalidateQueries({queryKey:["posts",s==null?void 0:s.id]}),o&&(i==null||i.invalidateQueries({queryKey:["scheduled-posts",s==null?void 0:s.id]})),e==null||e(),n({title:l("feed.toasts.delete.success.title"),message:l("feed.toasts.delete.success.description")});},onError:()=>{r({title:l("feed.toasts.delete.error.title"),message:l("feed.toasts.delete.error.description")});}});return {deleteAPost:d,isDeletingPost:c}}function b5(){let{translate:e}=Oe(),{errorToast:t,successToast:o}=tt(),{assetsToDelete:r}=zt(),{user:n,feedApi:a}=M(),{mutate:s,isPending:i}=ge({mutationKey:["updatePost"],mutationFn:d=>j(this,[d],function*({updatePostInput:l}){var p;return yield hf__default.default(a!=null?a:"",fS,{updatePostInput:l},{"x-access-token":(p=n==null?void 0:n.accessToken)!=null?p:""})}),onMutate:d=>j(this,[d],function*({updatePostInput:l}){Rn.invalidateQueries({queryKey:["posts",n==null?void 0:n.id]});let c=Rn.getQueryData(["posts",n==null?void 0:n.id]);return Rn.setQueryData(["posts",n==null?void 0:n.id],p=>{var u,g;if(!p)return p;let f=(g=(u=p==null?void 0:p.pages)==null?void 0:u.flatMap(m=>{var h,b,x;let v=(x=(b=(h=m==null?void 0:m.recommendedPostsUser)==null?void 0:h.data)==null?void 0:b.flatMap(w=>{var A,k;let C=N=>{var I;return (I=N==null?void 0:N.map(P=>{var T,L;if((P==null?void 0:P.id)!==(l==null?void 0:l.id))return P;let S=((T=P==null?void 0:P.images)!=null?T:[]).filter(E=>!(r!=null&&r.find(B=>(B==null?void 0:B.id)===(E==null?void 0:E.id)))).filter(E=>!(E!=null&&E.id)),D=((L=P==null?void 0:P.videos)!=null?L:[]).filter(E=>!(r!=null&&r.find(B=>(B==null?void 0:B.id)===(E==null?void 0:E.id)))).filter(E=>!(E!=null&&E.id));return F(y(y({},P),l),{images:S,videos:D})}))!=null?I:[]};return F(y({},w),{reels:C((A=w==null?void 0:w.reels)!=null?A:[]),normalPosts:C((k=w==null?void 0:w.normalPosts)!=null?k:[])})}))!=null?x:[];return F(y({},m),{recommendedPostsUser:F(y({},m==null?void 0:m.recommendedPostsUser),{data:v})})}))!=null?g:[];return F(y({},p),{pages:f})}),{previousPosts:c}}),onSuccess:(l,d)=>{var c;if(Rn.invalidateQueries({queryKey:["posts",n==null?void 0:n.id]}),d.updatePostInput.scheduledAt||d.updatePostInput.id&&Rn.getQueryData(["posts",n==null?void 0:n.id])){let p=Rn.getQueryData(["posts",n==null?void 0:n.id]),f=(c=p==null?void 0:p.pages)==null?void 0:c.some(u=>{var g,m;return (m=(g=u==null?void 0:u.recommendedPostsUser)==null?void 0:g.data)==null?void 0:m.some(v=>[...(v==null?void 0:v.reels)||[],...(v==null?void 0:v.normalPosts)||[]].some(h=>h.id===d.updatePostInput.id&&h.scheduledAt))});o({title:e("feed.toasts.edit.success.title"),message:e("feed.toasts.edit.success.description")}),(d.updatePostInput.scheduledAt||f)&&Rn.invalidateQueries({queryKey:["scheduled-posts",n==null?void 0:n.id]});}},onError:(l,d,c)=>{Rn.setQueryData(["posts",n==null?void 0:n.id],c==null?void 0:c.previousPosts),t({title:e("feed.toasts.edit.error.title"),message:e("feed.toasts.edit.error.description")});}});return {updatePost:s,isUpdatingPost:i}}function dN(){let{locale:e}=M(),{mutate:t,isPending:o}=ge({mutationFn:r=>j(this,null,function*(){let n=yield fetch("/api/resume-post",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postText:r,locale:e})});if(!n.ok)throw new Error("Failed to resume post");let a=yield n.json();return a==null?void 0:a.summary})});return {resumePost:t,isResumingPost:o}}function VJ(e){let{fontSize:t="20px"}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 24 24",fill:"none"},e),J__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 jJ=J__namespace.memo(VJ),X7=jJ;function qJ(e){return J__namespace.createElement("svg",y({width:"18px",height:"18px",viewBox:"0 0 12 14",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M8.794 0H3.207C1.18 0 0 1.187 0 3.22v6.887c0 2.066 1.18 3.226 3.207 3.226h5.587c2.06 0 3.206-1.16 3.206-3.226V3.22C12 1.187 10.853 0 8.794 0z",fill:"#687588"}),J__namespace.createElement("path",{d:"M3.387 9.16h5.226a.524.524 0 01.467.527c0 .265-.2.492-.467.52H3.387a.518.518 0 01-.5-.241.53.53 0 01.5-.807zm5.226-3.04a.52.52 0 010 1.04H3.387a.52.52 0 110-1.04h5.226zM5.38 3.1a.523.523 0 010 1.047H3.387a.521.521 0 010-1.04V3.1h1.992z",fill:"#687588"}))}var WJ=J__namespace.memo(qJ),x5=WJ;var w5=({color:e="#687588"})=>J__namespace.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J__namespace.createElement("path",{d:"M9.75 0C7.82164 0 5.93657 0.571828 4.33319 1.64317C2.72982 2.71451 1.48013 4.23726 0.742179 6.01884C0.00422452 7.80042 -0.188858 9.76082 0.187348 11.6521C0.563554 13.5434 1.49215 15.2807 2.85571 16.6443C4.21928 18.0079 5.95656 18.9365 7.84787 19.3127C9.73919 19.6889 11.6996 19.4958 13.4812 18.7578C15.2627 18.0199 16.7855 16.7702 17.8568 15.1668C18.9282 13.5634 19.5 11.6784 19.5 9.75C19.4973 7.16498 18.4692 4.68661 16.6413 2.85872C14.8134 1.03084 12.335 0.00272983 9.75 0ZM6.375 6.75C6.59751 6.75 6.81502 6.81598 7.00002 6.9396C7.18503 7.06321 7.32922 7.23891 7.41437 7.44448C7.49952 7.65005 7.5218 7.87625 7.47839 8.09448C7.43498 8.31271 7.32783 8.51316 7.1705 8.6705C7.01317 8.82783 6.81271 8.93498 6.59448 8.97838C6.37625 9.02179 6.15005 8.99951 5.94449 8.91436C5.73892 8.82922 5.56322 8.68502 5.4396 8.50002C5.31598 8.31501 5.25 8.0975 5.25 7.875C5.25 7.57663 5.36853 7.29048 5.57951 7.0795C5.79049 6.86853 6.07664 6.75 6.375 6.75ZM14.1488 12.375C13.1841 14.0428 11.5809 15 9.75 15C7.91907 15 6.31594 14.0437 5.35125 12.375C5.29699 12.2896 5.26055 12.1942 5.24413 12.0944C5.22772 11.9946 5.23166 11.8925 5.25573 11.7942C5.27979 11.696 5.32348 11.6036 5.38417 11.5227C5.44485 11.4417 5.52128 11.3739 5.60886 11.3233C5.69643 11.2727 5.79334 11.2403 5.89375 11.2281C5.99417 11.2159 6.09601 11.2242 6.19316 11.2523C6.2903 11.2805 6.38074 11.3281 6.45904 11.3921C6.53734 11.4562 6.60187 11.5354 6.64875 11.625C7.34907 12.8353 8.44969 13.5 9.75 13.5C11.0503 13.5 12.1509 12.8344 12.8513 11.625C12.8981 11.5354 12.9627 11.4562 13.041 11.3921C13.1193 11.3281 13.2097 11.2805 13.3069 11.2523C13.404 11.2242 13.5058 11.2159 13.6063 11.2281C13.7067 11.2403 13.8036 11.2727 13.8912 11.3233C13.9787 11.3739 14.0552 11.4417 14.1158 11.5227C14.1765 11.6036 14.2202 11.696 14.2443 11.7942C14.2683 11.8925 14.2723 11.9946 14.2559 12.0944C14.2395 12.1942 14.203 12.2896 14.1488 12.375ZM13.125 9C12.9025 9 12.685 8.93402 12.5 8.8104C12.315 8.68679 12.1708 8.51109 12.0856 8.30552C12.0005 8.09995 11.9782 7.87375 12.0216 7.65552C12.065 7.43729 12.1722 7.23684 12.3295 7.0795C12.4868 6.92217 12.6873 6.81502 12.9055 6.77162C13.1238 6.72821 13.35 6.75049 13.5555 6.83564C13.7611 6.92078 13.9368 7.06498 14.0604 7.24998C14.184 7.43499 14.25 7.6525 14.25 7.875C14.25 8.17337 14.1315 8.45952 13.9205 8.6705C13.7095 8.88147 13.4234 9 13.125 9Z",fill:e}));function R7(e){let{color:t="#111827",fontSize:o=20}=e;return J__namespace.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:"M21 9.25696V16.9308C21 20.0698 19.0237 22.0001 15.8623 22.0001H8.12695C4.99554 22 3.00012 20.0299 3 16.8702V9.25696H21ZM16.041 16.3907C15.5866 16.4007 15.2206 16.7804 15.2305 17.2404C15.2307 17.7002 15.5965 18.08 16.0508 18.09C16.5148 18.0898 16.8904 17.7101 16.8906 17.2404C16.8906 16.7715 16.515 16.3909 16.0508 16.3907H16.041ZM7.91016 16.38C7.45571 16.401 7.09961 16.7804 7.09961 17.2404C7.11956 17.7001 7.49503 18.061 7.94922 18.0402C8.39378 18.0212 8.74925 17.6408 8.72949 17.1808C8.71952 16.7309 8.35459 16.3801 7.91016 16.38ZM11.9805 16.38C11.526 16.401 11.1699 16.7804 11.1699 17.2404C11.1899 17.7001 11.5653 18.061 12.0195 18.0402C12.4641 18.0212 12.8196 17.6408 12.7998 17.1808C12.7898 16.7309 12.4249 16.3801 11.9805 16.38ZM7.91992 12.7501C7.46564 12.7711 7.10962 13.1507 7.10938 13.6105C7.12913 14.0693 7.50472 14.431 7.95898 14.4103C8.40355 14.3913 8.75999 14.0109 8.74023 13.5499C8.73034 13.101 8.36446 12.7502 7.91992 12.7501ZM11.9805 12.7501C11.5262 12.7711 11.1702 13.1507 11.1699 13.6105C11.1897 14.0694 11.5652 14.4311 12.0195 14.4103C12.4641 14.3913 12.8196 14.0109 12.7998 13.5499C12.7899 13.101 12.4249 12.7502 11.9805 12.7501ZM16.0508 12.7609C15.5964 12.7709 15.2404 13.1408 15.2402 13.6007V13.6105C15.2501 14.0695 15.6257 14.4202 16.0801 14.4103C16.5246 14.4013 16.88 14.0207 16.8701 13.5607C16.8502 13.1199 16.4951 12.761 16.0508 12.7609Z",fill:"#687588"}),J__namespace.default.createElement("path",{opacity:"0.4",d:"M3.00391 9.25687C3.01675 8.66987 3.06615 7.50487 3.15901 7.12987C3.63321 5.02087 5.24353 3.68087 7.5454 3.48987H16.4565C18.7386 3.69087 20.3687 5.03987 20.8429 7.12987C20.9348 7.49487 20.9841 8.66887 20.997 9.25687H3.00391Z",fill:"#687588"}),J__namespace.default.createElement("path",{d:"M8.30562 6.59C8.74031 6.59 9.06633 6.261 9.06633 5.82V2.771C9.06633 2.33 8.74031 2 8.30562 2C7.87094 2 7.54492 2.33 7.54492 2.771V5.82C7.54492 6.261 7.87094 6.59 8.30562 6.59Z",fill:"#687588"}),J__namespace.default.createElement("path",{d:"M15.6943 6.59C16.1191 6.59 16.455 6.261 16.455 5.82V2.771C16.455 2.33 16.1191 2 15.6943 2C15.2596 2 14.9336 2.33 14.9336 2.771V5.82C14.9336 6.261 15.2596 6.59 15.6943 6.59Z",fill:"#687588"}))}var ts=".jpeg,.pjpeg,.png,.webp,.pdf,.mp4,.mpeg,.quicktime,.x-msvideo,.x-ms-wmv,.webm";var o4=zustand.create((e,t)=>({isOpen:false,modalId:null,openModal:()=>e({isOpen:true}),closeModal:()=>e({isOpen:false,modalId:null}),toggleModal:()=>{let{isOpen:o}=t();e(o?{isOpen:false}:{isOpen:true});}}));function r4({onMediaSelect:e,isForReels:t,onScheduleClick:o,onMentionClick:r,showScheduleOption:n=true,hasMedia:a=false,onEmojiClick:s,onViewScheduledPosts:i}){let{pageTriggerComponents:l,user:d}=M(),{closeModal:c}=xo(),{openModal:p}=o4(),[f,u]=usehooks.useToggle(false),g=J.useRef(null),{translate:m}=Oe(),v=d==null?void 0:d.isActive,h=()=>{var w;(w=g.current)==null||w.click();},b=()=>{if(!v){u(true);return}window.dispatchEvent(new CustomEvent("closeCreatePostModal")),c(),setTimeout(()=>{p();},100);},x=J__namespace.default.isValidElement(l)?J__namespace.default.cloneElement(l,{onClick:w=>{var A;window.dispatchEvent(new CustomEvent("closeCreatePostModal")),c();let C=(A=l.props)==null?void 0:A.onClick;C&&C(w);}}):l;return J__namespace.default.createElement("div",{className:"flex !items-center !gap-4 sm:gap-1.5 lg:gap-2 flex-nowrap"},a&&s&&J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 rounded-full flex items-center hover:bg-transparent ![&_svg]:w-5 ![&_svg]:h-5 flex-shrink-0",onClick:s,title:"Emoji"},J__namespace.default.createElement(w5,{color:"#687588"})),!t&&J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 rounded-full flex items-center hover:bg-transparent ![&_svg]:w-5 ![&_svg]:h-5 flex-shrink-0",onClick:h,title:m("feed.create-post.options.midia")},J__namespace.default.createElement(H0,null),J__namespace.default.createElement("input",{type:"file",ref:g,className:"hidden",accept:ts,multiple:true,onChange:w=>e==null?void 0:e(w.target.files)})),x&&J__namespace.default.createElement("div",{className:"flex-shrink-0"},x),a&&i?J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 rounded-full flex items-center hover:bg-transparent ![&_svg]:w-5 ![&_svg]:h-5 flex-shrink-0",onClick:i,title:"Posts agendados"},J__namespace.default.createElement(R7,null)):J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 rounded-full flex items-center hover:bg-transparent ![&_svg]:w-5 ![&_svg]:h-5 flex-shrink-0",onClick:r,title:m("feed.create-post.options.mention")},J__namespace.default.createElement(X7,null)),a&&i?J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 rounded-full flex items-center hover:bg-transparent ![&_svg]:w-5 ![&_svg]:h-5 flex-shrink-0",onClick:r,title:m("feed.create-post.options.mention")},J__namespace.default.createElement(X7,null)):null,J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 rounded-full flex items-center hover:bg-transparent ![&_svg]:w-5 ![&_svg]:h-5 flex-shrink-0",onClick:b,title:"Artigo"},J__namespace.default.createElement(x5,null)),J__namespace.default.createElement(ko,{isOpen:f,onClose:()=>u(false)}))}function cN(){let{content:e,setContent:t,isUploading:o,selectedFiles:r,uploadedMedia:n,hashtags:a,setHashtags:s,removeMedia:i,mentions:l,setMentions:d,mentionedUsers:c,setMentionedUsers:p}=zt(),{postType:f}=xo();J.useEffect(()=>{let h=m(e);s(h);},[e]);let u=h=>{t(h);},g=()=>{switch(f){case "media":return "Adicione uma descri\xE7\xE3o para sua m\xEDdia...";case "job":return "Descreva a vaga que voc\xEA est\xE1 publicando...";case "reel":return "Adicione uma descri\xE7\xE3o para seu reel...";default:return "Comece uma publica\xE7\xE3o"}},m=h=>{let b=/#(\w+)/g,x=h.match(b);return x?Array.from(new Set(x)):[]};return {content:e,hashtags:a,isUploading:o,uploadedMedia:n,handleContentChange:u,removeMedia:i,getPlaceholder:g,addHashtag:h=>{h.startsWith("#")||(h=`#${h}`),a!=null&&a.includes(h)||t(`${e} ${h} `);},selectedFiles:r,mentions:l,setMentions:d,mentionedUsers:c,setMentionedUsers:p}}var JJ=e=>e.match(/\.(mp4|webm|ogg|mov)$/i)!==null?"video":e.match(/\.pdf$/i)!==null?"pdf":e.startsWith("blob:")?XJ(e):"image",XJ=e=>j(void 0,null,function*(){try{let r=(yield (yield fetch(e)).blob()).type;return r.startsWith("video")?"video":r.startsWith("image")?"image":r==="application/pdf"?"pdf":"unknown"}catch(t){return "unknown"}}),pN=e=>j(void 0,null,function*(){let t=e.map(o=>j(void 0,null,function*(){return {url:o,type:yield JJ(o)}}));return Promise.all(t)});function mN({media:e,onRemove:t,index:o=0}){let{translate:r}=Oe(),{replaceMedia:n}=zt(),a=J.useRef(null),s=e instanceof File,i=s?URL.createObjectURL(e):e.url,l=e.type,d=s?e.name:void 0,c=l.startsWith("video"),p=l==="pdf"||l==="application/pdf",f=()=>{var g;(g=a.current)==null||g.click();},u=g=>{let m=g.target.files;m&&m.length>0&&n(o,m[0]),a.current&&(a.current.value="");};return J__namespace.default.createElement("div",{className:"mt-4 relative"},J__namespace.default.createElement("div",{className:"relative aspect-video rounded-lg overflow-hidden"},p?J__namespace.default.createElement(Uc,{pdfUrl:i,pdfName:d}):c?J__namespace.default.createElement("div",{className:"relative w-full h-full bg-gray-100"},J__namespace.default.createElement("video",{src:i,className:"w-full h-full object-cover",controls:true})):J__namespace.default.createElement("img",{src:i,alt:"Media preview",className:"w-full h-full object-cover"}),J__namespace.default.createElement("button",{className:"absolute top-2 left-2 h-auto px-2 py-1.5 bg-white rounded-lg flex items-center gap-1.5 z-10 hover:bg-gray-50 transition-colors cursor-pointer shadow-sm",onClick:f,type:"button"},J__namespace.default.createElement("div",{className:"flex items-center gap-1.5"},J__namespace.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none"},J__namespace.default.createElement("path",{d:"M15.055 8.398l-6.553 6.585a1.8 1.8 0 01-1.256.517H4.958a.463.463 0 01-.331-.137.457.457 0 01-.127-.331l.058-2.313c.01-.458.195-.887.516-1.21L9.72 6.857a.212.212 0 01.292 0L11.64 8.48a.615.615 0 00.428.175c.36 0 .643-.293.643-.644a.661.661 0 00-.175-.449c-.03-.039-1.58-1.583-1.58-1.583a.26.26 0 010-.36l.652-.664a1.537 1.537 0 012.18 0l1.267 1.268a1.55 1.55 0 010 2.176z",fill:"#9CA3AF"})),J__namespace.default.createElement("span",{className:"text-sm font-medium text-gray-500"},r("feed.medias-modal.edit-media"))),J__namespace.default.createElement("input",{type:"file",ref:a,className:"hidden",accept:ts,onChange:u})),!c&&!p&&J__namespace.default.createElement("div",{className:"absolute inset-0 cursor-pointer z-[1]",onClick:f})))}var fN=J.createContext(void 0);function C5({children:e}){let[t,o]=J.useState(false),[r,n]=J.useState([]),a=i=>{n(i),o(true);},s=()=>{o(false),n([]);};return J__namespace.default.createElement(fN.Provider,{value:{isOpen:t,openModal:a,closeModal:s,mediaToManage:r}},e)}function n4(){let e=J.useContext(fN);if(e===void 0)throw new Error("useMediaManagementModal must be used within a MediaManagementModalProvider");return e}function gN({mediaItems:e,onRemove:t}){var g,m,v,h,b,x,w,C,A,k,N,I,P,S,D,T;let {openModal:o,closeModal:r}=n4(),{replaceMedia:n}=zt(),{closeModal:a}=xo(),{translate:s}=Oe(),i=J.useRef([]),l=L=>{var E;(E=i.current[L])==null||E.click();},d=(L,E)=>{let B=E.target.files;B&&B.length>0&&n(L,B[0]),i.current[L]&&(i.current[L].value="");},c=e.slice(0,3),p=Math.max(0,e.length-3),f=()=>{if(e.length>3){let L=e.map((E,B)=>({id:`media-${B}`,url:E.url,type:E.type==="pdf"?"image":E.type}));o(L),setTimeout(()=>{window.dispatchEvent(new CustomEvent("closeCreatePostModal")),a();},50);}};return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"mt-4 flex-shrink-0"},J__namespace.default.createElement("div",{className:"grid grid-cols-12 gap-2 h-[280px] max-h-[280px]"},J__namespace.default.createElement("div",{className:U("relative rounded-lg overflow-hidden",(c==null?void 0:c.length)>2?"col-span-7":"col-span-6","h-full max-h-[280px]")},((g=c[0])==null?void 0:g.type)==="pdf"?J__namespace.default.createElement("div",{className:"w-full h-full"},J__namespace.default.createElement(Uc,{pdfName:(m=c[0])==null?void 0:m.url,pdfUrl:(v=c[0])==null?void 0:v.url})):((h=c[0])==null?void 0:h.type)==="video"?J__namespace.default.createElement("div",{className:"relative w-full h-full bg-gray-100"},J__namespace.default.createElement("video",{src:(b=c[0])==null?void 0:b.url,className:"w-full h-full object-cover",controls:true})):J__namespace.default.createElement("img",{src:((x=c[0])==null?void 0:x.url)||"/placeholder.svg",alt:"Media preview",className:"w-full h-full object-cover"}),J__namespace.default.createElement("button",{className:"absolute top-2 left-2 h-auto px-2 py-1.5 bg-white rounded-lg flex items-center gap-1.5 z-10 hover:bg-gray-50 transition-colors cursor-pointer shadow-sm",onClick:()=>l(0),type:"button"},J__namespace.default.createElement("div",{className:"flex items-center gap-1.5"},J__namespace.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none"},J__namespace.default.createElement("path",{d:"M15.055 8.398l-6.553 6.585a1.8 1.8 0 01-1.256.517H4.958a.463.463 0 01-.331-.137.457.457 0 01-.127-.331l.058-2.313c.01-.458.195-.887.516-1.21L9.72 6.857a.212.212 0 01.292 0L11.64 8.48a.615.615 0 00.428.175c.36 0 .643-.293.643-.644a.661.661 0 00-.175-.449c-.03-.039-1.58-1.583-1.58-1.583a.26.26 0 010-.36l.652-.664a1.537 1.537 0 012.18 0l1.267 1.268a1.55 1.55 0 010 2.176z",fill:"#9CA3AF"})),J__namespace.default.createElement("span",{className:"text-sm font-medium text-gray-500"},s("feed.medias-modal.edit-media"))),J__namespace.default.createElement("input",{type:"file",ref:L=>{i.current[0]=L;},className:"hidden",accept:ts,onChange:L=>d(0,L)})),((w=c[0])==null?void 0:w.type)!=="video"&&((C=c[0])==null?void 0:C.type)!=="pdf"&&J__namespace.default.createElement("div",{className:"absolute inset-0 cursor-pointer z-[1]",onClick:()=>l(0)})),J__namespace.default.createElement("div",{className:U("flex flex-col gap-2 h-full max-h-[280px]",(c==null?void 0:c.length)>2?"col-span-5":"col-span-6")},c.length>1&&J__namespace.default.createElement("div",{className:U("relative rounded-lg overflow-hidden flex-1 min-h-0",(c==null?void 0:c.length)>2?"max-h-[calc(50%-4px)]":"h-full")},((A=c[1])==null?void 0:A.type)==="video"?J__namespace.default.createElement("div",{className:"relative w-full h-full bg-gray-100"},J__namespace.default.createElement("video",{src:(k=c[1])==null?void 0:k.url,className:"w-full h-full object-cover",controls:true})):J__namespace.default.createElement("img",{src:((N=c[1])==null?void 0:N.url)||"/placeholder.svg",alt:"Media preview",className:"w-full h-full object-cover"}),J__namespace.default.createElement("button",{className:"absolute top-2 left-2 h-auto px-2 py-1.5 bg-white rounded-lg flex items-center gap-1.5 z-10 hover:bg-gray-50 transition-colors cursor-pointer shadow-sm",onClick:()=>l(1),type:"button"},J__namespace.default.createElement("div",{className:"flex items-center gap-1.5"},J__namespace.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none"},J__namespace.default.createElement("path",{d:"M15.055 8.398l-6.553 6.585a1.8 1.8 0 01-1.256.517H4.958a.463.463 0 01-.331-.137.457.457 0 01-.127-.331l.058-2.313c.01-.458.195-.887.516-1.21L9.72 6.857a.212.212 0 01.292 0L11.64 8.48a.615.615 0 00.428.175c.36 0 .643-.293.643-.644a.661.661 0 00-.175-.449c-.03-.039-1.58-1.583-1.58-1.583a.26.26 0 010-.36l.652-.664a1.537 1.537 0 012.18 0l1.267 1.268a1.55 1.55 0 010 2.176z",fill:"#9CA3AF"})),J__namespace.default.createElement("span",{className:"text-sm font-medium text-gray-500"},s("feed.medias-modal.edit-media"))),J__namespace.default.createElement("input",{type:"file",ref:L=>{i.current[1]=L;},className:"hidden",accept:ts,onChange:L=>d(1,L)})),((I=c[1])==null?void 0:I.type)!=="video"&&J__namespace.default.createElement("div",{className:"absolute inset-0 cursor-pointer z-[1]",onClick:()=>l(1)})),c.length>2&&J__namespace.default.createElement("div",{className:"relative rounded-lg overflow-hidden flex-1 min-h-0 max-h-[calc(50%-4px)]"},((P=c[2])==null?void 0:P.type)==="video"?J__namespace.default.createElement("div",{className:"relative w-full h-full bg-gray-100"},J__namespace.default.createElement("video",{src:(S=c[2])==null?void 0:S.url,className:"w-full h-full object-cover",controls:true})):J__namespace.default.createElement("img",{src:((D=c[2])==null?void 0:D.url)||"/placeholder.svg",alt:"Media preview",className:"w-full h-full object-cover"}),e.length>3&&J__namespace.default.createElement("div",{className:"absolute inset-0 bg-black/40 flex items-center justify-center cursor-pointer z-[5]",onClick:f},J__namespace.default.createElement("span",{className:"text-white text-2xl font-medium"},"+",p)),J__namespace.default.createElement("button",{className:"absolute top-2 left-2 h-auto px-2 py-1.5 bg-white rounded-lg flex items-center gap-1.5 z-10 hover:bg-gray-50 transition-colors cursor-pointer shadow-sm",onClick:()=>l(2),type:"button"},J__namespace.default.createElement("div",{className:"flex items-center gap-1.5"},J__namespace.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none"},J__namespace.default.createElement("path",{d:"M15.055 8.398l-6.553 6.585a1.8 1.8 0 01-1.256.517H4.958a.463.463 0 01-.331-.137.457.457 0 01-.127-.331l.058-2.313c.01-.458.195-.887.516-1.21L9.72 6.857a.212.212 0 01.292 0L11.64 8.48a.615.615 0 00.428.175c.36 0 .643-.293.643-.644a.661.661 0 00-.175-.449c-.03-.039-1.58-1.583-1.58-1.583a.26.26 0 010-.36l.652-.664a1.537 1.537 0 012.18 0l1.267 1.268a1.55 1.55 0 010 2.176z",fill:"#9CA3AF"})),J__namespace.default.createElement("span",{className:"text-sm font-medium text-gray-500"},s("feed.medias-modal.edit-media"))),J__namespace.default.createElement("input",{type:"file",ref:L=>{i.current[2]=L;},className:"hidden",accept:ts,onChange:L=>d(2,L)})),e.length<=3&&((T=c[2])==null?void 0:T.type)!=="video"&&J__namespace.default.createElement("div",{className:"absolute inset-0 cursor-pointer z-[1]",onClick:()=>l(2)}))))))}function vN(){return J__namespace.default.createElement("div",{className:"mt-2 relative aspect-video bg-gray-100 rounded-lg flex items-center justify-center"},J__namespace.default.createElement("div",{className:"animate-pulse text-gray-400"},"Carregando..."))}function tf({media:e,onRemove:t,isUploading:o}){let[r,n]=J.useState([]);return J.useEffect(()=>{j(this,null,function*(){let s=yield pN(e);n(s);});},[e]),r.length===0&&!o?null:o&&(r==null?void 0:r.length)===0?J__namespace.default.createElement(vN,null):r.length===1?J__namespace.default.createElement(mN,{media:r[0],onRemove:()=>t(0),index:0}):J__namespace.default.createElement(gN,{mediaItems:r,onRemove:t})}var M5=()=>{let e=M(),{content:t,setContent:o}=zt(),{mutate:r,isPending:n}=ge({mutationFn:()=>j(void 0,null,function*(){return yield (yield fetch("/feed/api/resume-post",{method:"POST",body:JSON.stringify({postText:t,locale:e})})).json()}),onSuccess(a){o(a==null?void 0:a.summary);}});return {resumePost:r,isResumingThePost:n}};var yN=hf.gql`
|
|
2381
|
+
`;function lN({onClose:e,postId:t,postWasScheduled:o=false}){let{errorToast:r,successToast:n}=tt(),{feedApi:a,user:s,queryClient:i}=M(),{translate:l}=Oe(),{mutate:d,isPending:c}=ge({mutationKey:["deletePost",t],mutationFn:()=>j(this,null,function*(){var f;return yield hf__default.default(a!=null?a:"",iN,{id:t!=null?t:""},{"x-access-token":(f=s==null?void 0:s.accessToken)!=null?f:""})}),onSuccess:()=>{i==null||i.invalidateQueries({queryKey:["posts",s==null?void 0:s.id]}),o&&(i==null||i.invalidateQueries({queryKey:["scheduled-posts",s==null?void 0:s.id]})),e==null||e(),n({title:l("feed.toasts.delete.success.title"),message:l("feed.toasts.delete.success.description")});},onError:()=>{r({title:l("feed.toasts.delete.error.title"),message:l("feed.toasts.delete.error.description")});}});return {deleteAPost:d,isDeletingPost:c}}function b5(){let{translate:e}=Oe(),{errorToast:t,successToast:o}=tt(),{assetsToDelete:r}=zt(),{user:n,feedApi:a}=M(),{mutate:s,isPending:i}=ge({mutationKey:["updatePost"],mutationFn:d=>j(this,[d],function*({updatePostInput:l}){var p;return yield hf__default.default(a!=null?a:"",fS,{updatePostInput:l},{"x-access-token":(p=n==null?void 0:n.accessToken)!=null?p:""})}),onMutate:d=>j(this,[d],function*({updatePostInput:l}){Rn.invalidateQueries({queryKey:["posts",n==null?void 0:n.id]});let c=Rn.getQueryData(["posts",n==null?void 0:n.id]);return Rn.setQueryData(["posts",n==null?void 0:n.id],p=>{var u,g;if(!p)return p;let f=(g=(u=p==null?void 0:p.pages)==null?void 0:u.flatMap(m=>{var h,b,x;let v=(x=(b=(h=m==null?void 0:m.recommendedPostsUser)==null?void 0:h.data)==null?void 0:b.flatMap(w=>{var A,k;let C=N=>{var I;return (I=N==null?void 0:N.map(P=>{var T,L;if((P==null?void 0:P.id)!==(l==null?void 0:l.id))return P;let S=((T=P==null?void 0:P.images)!=null?T:[]).filter(E=>!(r!=null&&r.find(B=>(B==null?void 0:B.id)===(E==null?void 0:E.id)))).filter(E=>!(E!=null&&E.id)),D=((L=P==null?void 0:P.videos)!=null?L:[]).filter(E=>!(r!=null&&r.find(B=>(B==null?void 0:B.id)===(E==null?void 0:E.id)))).filter(E=>!(E!=null&&E.id));return F(y(y({},P),l),{images:S,videos:D})}))!=null?I:[]};return F(y({},w),{reels:C((A=w==null?void 0:w.reels)!=null?A:[]),normalPosts:C((k=w==null?void 0:w.normalPosts)!=null?k:[])})}))!=null?x:[];return F(y({},m),{recommendedPostsUser:F(y({},m==null?void 0:m.recommendedPostsUser),{data:v})})}))!=null?g:[];return F(y({},p),{pages:f})}),{previousPosts:c}}),onSuccess:(l,d)=>{var c;if(Rn.invalidateQueries({queryKey:["posts",n==null?void 0:n.id]}),d.updatePostInput.scheduledAt||d.updatePostInput.id&&Rn.getQueryData(["posts",n==null?void 0:n.id])){let p=Rn.getQueryData(["posts",n==null?void 0:n.id]),f=(c=p==null?void 0:p.pages)==null?void 0:c.some(u=>{var g,m;return (m=(g=u==null?void 0:u.recommendedPostsUser)==null?void 0:g.data)==null?void 0:m.some(v=>[...(v==null?void 0:v.reels)||[],...(v==null?void 0:v.normalPosts)||[]].some(h=>h.id===d.updatePostInput.id&&h.scheduledAt))});o({title:e("feed.toasts.edit.success.title"),message:e("feed.toasts.edit.success.description")}),(d.updatePostInput.scheduledAt||f)&&Rn.invalidateQueries({queryKey:["scheduled-posts",n==null?void 0:n.id]});}},onError:(l,d,c)=>{Rn.setQueryData(["posts",n==null?void 0:n.id],c==null?void 0:c.previousPosts),t({title:e("feed.toasts.edit.error.title"),message:e("feed.toasts.edit.error.description")});}});return {updatePost:s,isUpdatingPost:i}}function dN(){let{locale:e}=M(),{mutate:t,isPending:o}=ge({mutationFn:r=>j(this,null,function*(){let n=yield fetch("/api/resume-post",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postText:r,locale:e})});if(!n.ok)throw new Error("Failed to resume post");let a=yield n.json();return a==null?void 0:a.summary})});return {resumePost:t,isResumingPost:o}}function jJ(e){let{fontSize:t="20px"}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 24 24",fill:"none"},e),J__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 qJ=J__namespace.memo(jJ),X7=qJ;function WJ(e){return J__namespace.createElement("svg",y({width:"18px",height:"18px",viewBox:"0 0 12 14",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M8.794 0H3.207C1.18 0 0 1.187 0 3.22v6.887c0 2.066 1.18 3.226 3.207 3.226h5.587c2.06 0 3.206-1.16 3.206-3.226V3.22C12 1.187 10.853 0 8.794 0z",fill:"#687588"}),J__namespace.createElement("path",{d:"M3.387 9.16h5.226a.524.524 0 01.467.527c0 .265-.2.492-.467.52H3.387a.518.518 0 01-.5-.241.53.53 0 01.5-.807zm5.226-3.04a.52.52 0 010 1.04H3.387a.52.52 0 110-1.04h5.226zM5.38 3.1a.523.523 0 010 1.047H3.387a.521.521 0 010-1.04V3.1h1.992z",fill:"#687588"}))}var QJ=J__namespace.memo(WJ),x5=QJ;var w5=({color:e="#687588"})=>J__namespace.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J__namespace.createElement("path",{d:"M9.75 0C7.82164 0 5.93657 0.571828 4.33319 1.64317C2.72982 2.71451 1.48013 4.23726 0.742179 6.01884C0.00422452 7.80042 -0.188858 9.76082 0.187348 11.6521C0.563554 13.5434 1.49215 15.2807 2.85571 16.6443C4.21928 18.0079 5.95656 18.9365 7.84787 19.3127C9.73919 19.6889 11.6996 19.4958 13.4812 18.7578C15.2627 18.0199 16.7855 16.7702 17.8568 15.1668C18.9282 13.5634 19.5 11.6784 19.5 9.75C19.4973 7.16498 18.4692 4.68661 16.6413 2.85872C14.8134 1.03084 12.335 0.00272983 9.75 0ZM6.375 6.75C6.59751 6.75 6.81502 6.81598 7.00002 6.9396C7.18503 7.06321 7.32922 7.23891 7.41437 7.44448C7.49952 7.65005 7.5218 7.87625 7.47839 8.09448C7.43498 8.31271 7.32783 8.51316 7.1705 8.6705C7.01317 8.82783 6.81271 8.93498 6.59448 8.97838C6.37625 9.02179 6.15005 8.99951 5.94449 8.91436C5.73892 8.82922 5.56322 8.68502 5.4396 8.50002C5.31598 8.31501 5.25 8.0975 5.25 7.875C5.25 7.57663 5.36853 7.29048 5.57951 7.0795C5.79049 6.86853 6.07664 6.75 6.375 6.75ZM14.1488 12.375C13.1841 14.0428 11.5809 15 9.75 15C7.91907 15 6.31594 14.0437 5.35125 12.375C5.29699 12.2896 5.26055 12.1942 5.24413 12.0944C5.22772 11.9946 5.23166 11.8925 5.25573 11.7942C5.27979 11.696 5.32348 11.6036 5.38417 11.5227C5.44485 11.4417 5.52128 11.3739 5.60886 11.3233C5.69643 11.2727 5.79334 11.2403 5.89375 11.2281C5.99417 11.2159 6.09601 11.2242 6.19316 11.2523C6.2903 11.2805 6.38074 11.3281 6.45904 11.3921C6.53734 11.4562 6.60187 11.5354 6.64875 11.625C7.34907 12.8353 8.44969 13.5 9.75 13.5C11.0503 13.5 12.1509 12.8344 12.8513 11.625C12.8981 11.5354 12.9627 11.4562 13.041 11.3921C13.1193 11.3281 13.2097 11.2805 13.3069 11.2523C13.404 11.2242 13.5058 11.2159 13.6063 11.2281C13.7067 11.2403 13.8036 11.2727 13.8912 11.3233C13.9787 11.3739 14.0552 11.4417 14.1158 11.5227C14.1765 11.6036 14.2202 11.696 14.2443 11.7942C14.2683 11.8925 14.2723 11.9946 14.2559 12.0944C14.2395 12.1942 14.203 12.2896 14.1488 12.375ZM13.125 9C12.9025 9 12.685 8.93402 12.5 8.8104C12.315 8.68679 12.1708 8.51109 12.0856 8.30552C12.0005 8.09995 11.9782 7.87375 12.0216 7.65552C12.065 7.43729 12.1722 7.23684 12.3295 7.0795C12.4868 6.92217 12.6873 6.81502 12.9055 6.77162C13.1238 6.72821 13.35 6.75049 13.5555 6.83564C13.7611 6.92078 13.9368 7.06498 14.0604 7.24998C14.184 7.43499 14.25 7.6525 14.25 7.875C14.25 8.17337 14.1315 8.45952 13.9205 8.6705C13.7095 8.88147 13.4234 9 13.125 9Z",fill:e}));function R7(e){let{color:t="#111827",fontSize:o=20}=e;return J__namespace.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:"M21 9.25696V16.9308C21 20.0698 19.0237 22.0001 15.8623 22.0001H8.12695C4.99554 22 3.00012 20.0299 3 16.8702V9.25696H21ZM16.041 16.3907C15.5866 16.4007 15.2206 16.7804 15.2305 17.2404C15.2307 17.7002 15.5965 18.08 16.0508 18.09C16.5148 18.0898 16.8904 17.7101 16.8906 17.2404C16.8906 16.7715 16.515 16.3909 16.0508 16.3907H16.041ZM7.91016 16.38C7.45571 16.401 7.09961 16.7804 7.09961 17.2404C7.11956 17.7001 7.49503 18.061 7.94922 18.0402C8.39378 18.0212 8.74925 17.6408 8.72949 17.1808C8.71952 16.7309 8.35459 16.3801 7.91016 16.38ZM11.9805 16.38C11.526 16.401 11.1699 16.7804 11.1699 17.2404C11.1899 17.7001 11.5653 18.061 12.0195 18.0402C12.4641 18.0212 12.8196 17.6408 12.7998 17.1808C12.7898 16.7309 12.4249 16.3801 11.9805 16.38ZM7.91992 12.7501C7.46564 12.7711 7.10962 13.1507 7.10938 13.6105C7.12913 14.0693 7.50472 14.431 7.95898 14.4103C8.40355 14.3913 8.75999 14.0109 8.74023 13.5499C8.73034 13.101 8.36446 12.7502 7.91992 12.7501ZM11.9805 12.7501C11.5262 12.7711 11.1702 13.1507 11.1699 13.6105C11.1897 14.0694 11.5652 14.4311 12.0195 14.4103C12.4641 14.3913 12.8196 14.0109 12.7998 13.5499C12.7899 13.101 12.4249 12.7502 11.9805 12.7501ZM16.0508 12.7609C15.5964 12.7709 15.2404 13.1408 15.2402 13.6007V13.6105C15.2501 14.0695 15.6257 14.4202 16.0801 14.4103C16.5246 14.4013 16.88 14.0207 16.8701 13.5607C16.8502 13.1199 16.4951 12.761 16.0508 12.7609Z",fill:"#687588"}),J__namespace.default.createElement("path",{opacity:"0.4",d:"M3.00391 9.25687C3.01675 8.66987 3.06615 7.50487 3.15901 7.12987C3.63321 5.02087 5.24353 3.68087 7.5454 3.48987H16.4565C18.7386 3.69087 20.3687 5.03987 20.8429 7.12987C20.9348 7.49487 20.9841 8.66887 20.997 9.25687H3.00391Z",fill:"#687588"}),J__namespace.default.createElement("path",{d:"M8.30562 6.59C8.74031 6.59 9.06633 6.261 9.06633 5.82V2.771C9.06633 2.33 8.74031 2 8.30562 2C7.87094 2 7.54492 2.33 7.54492 2.771V5.82C7.54492 6.261 7.87094 6.59 8.30562 6.59Z",fill:"#687588"}),J__namespace.default.createElement("path",{d:"M15.6943 6.59C16.1191 6.59 16.455 6.261 16.455 5.82V2.771C16.455 2.33 16.1191 2 15.6943 2C15.2596 2 14.9336 2.33 14.9336 2.771V5.82C14.9336 6.261 15.2596 6.59 15.6943 6.59Z",fill:"#687588"}))}var ts=".jpeg,.pjpeg,.png,.webp,.pdf,.mp4,.mpeg,.quicktime,.x-msvideo,.x-ms-wmv,.webm";var o4=zustand.create((e,t)=>({isOpen:false,modalId:null,openModal:()=>e({isOpen:true}),closeModal:()=>e({isOpen:false,modalId:null}),toggleModal:()=>{let{isOpen:o}=t();e(o?{isOpen:false}:{isOpen:true});}}));function r4({onMediaSelect:e,isForReels:t,onScheduleClick:o,onMentionClick:r,showScheduleOption:n=true,hasMedia:a=false,onEmojiClick:s,onViewScheduledPosts:i}){let{pageTriggerComponents:l,user:d}=M(),{closeModal:c}=xo(),{openModal:p}=o4(),[f,u]=usehooks.useToggle(false),g=J.useRef(null),{translate:m}=Oe(),v=d==null?void 0:d.isActive,h=()=>{var w;(w=g.current)==null||w.click();},b=()=>{if(!v){u(true);return}window.dispatchEvent(new CustomEvent("closeCreatePostModal")),c(),setTimeout(()=>{p();},100);},x=J__namespace.default.isValidElement(l)?J__namespace.default.cloneElement(l,{onClick:w=>{var A;window.dispatchEvent(new CustomEvent("closeCreatePostModal")),c();let C=(A=l.props)==null?void 0:A.onClick;C&&C(w);}}):l;return J__namespace.default.createElement("div",{className:"flex !items-center !gap-4 sm:gap-1.5 lg:gap-2 flex-nowrap"},a&&s&&J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 rounded-full flex items-center hover:bg-transparent ![&_svg]:w-5 ![&_svg]:h-5 flex-shrink-0",onClick:s,title:"Emoji"},J__namespace.default.createElement(w5,{color:"#687588"})),!t&&J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 rounded-full flex items-center hover:bg-transparent ![&_svg]:w-5 ![&_svg]:h-5 flex-shrink-0",onClick:h,title:m("feed.create-post.options.midia")},J__namespace.default.createElement(H0,null),J__namespace.default.createElement("input",{type:"file",ref:g,className:"hidden",accept:ts,multiple:true,onChange:w=>e==null?void 0:e(w.target.files)})),x&&J__namespace.default.createElement("div",{className:"flex-shrink-0"},x),a&&i?J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 rounded-full flex items-center hover:bg-transparent ![&_svg]:w-5 ![&_svg]:h-5 flex-shrink-0",onClick:i,title:"Posts agendados"},J__namespace.default.createElement(R7,null)):J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 rounded-full flex items-center hover:bg-transparent ![&_svg]:w-5 ![&_svg]:h-5 flex-shrink-0",onClick:r,title:m("feed.create-post.options.mention")},J__namespace.default.createElement(X7,null)),a&&i?J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 rounded-full flex items-center hover:bg-transparent ![&_svg]:w-5 ![&_svg]:h-5 flex-shrink-0",onClick:r,title:m("feed.create-post.options.mention")},J__namespace.default.createElement(X7,null)):null,J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 rounded-full flex items-center hover:bg-transparent ![&_svg]:w-5 ![&_svg]:h-5 flex-shrink-0",onClick:b,title:"Artigo"},J__namespace.default.createElement(x5,null)),J__namespace.default.createElement(ko,{isOpen:f,onClose:()=>u(false)}))}function cN(){let{content:e,setContent:t,isUploading:o,selectedFiles:r,uploadedMedia:n,hashtags:a,setHashtags:s,removeMedia:i,mentions:l,setMentions:d,mentionedUsers:c,setMentionedUsers:p}=zt(),{postType:f}=xo();J.useEffect(()=>{let h=m(e);s(h);},[e]);let u=h=>{t(h);},g=()=>{switch(f){case "media":return "Adicione uma descri\xE7\xE3o para sua m\xEDdia...";case "job":return "Descreva a vaga que voc\xEA est\xE1 publicando...";case "reel":return "Adicione uma descri\xE7\xE3o para seu reel...";default:return "Comece uma publica\xE7\xE3o"}},m=h=>{let b=/#(\w+)/g,x=h.match(b);return x?Array.from(new Set(x)):[]};return {content:e,hashtags:a,isUploading:o,uploadedMedia:n,handleContentChange:u,removeMedia:i,getPlaceholder:g,addHashtag:h=>{h.startsWith("#")||(h=`#${h}`),a!=null&&a.includes(h)||t(`${e} ${h} `);},selectedFiles:r,mentions:l,setMentions:d,mentionedUsers:c,setMentionedUsers:p}}var XJ=e=>e.match(/\.(mp4|webm|ogg|mov)$/i)!==null?"video":e.match(/\.pdf$/i)!==null?"pdf":e.startsWith("blob:")?$J(e):"image",$J=e=>j(void 0,null,function*(){try{let r=(yield (yield fetch(e)).blob()).type;return r.startsWith("video")?"video":r.startsWith("image")?"image":r==="application/pdf"?"pdf":"unknown"}catch(t){return "unknown"}}),pN=e=>j(void 0,null,function*(){let t=e.map(o=>j(void 0,null,function*(){return {url:o,type:yield XJ(o)}}));return Promise.all(t)});function mN({media:e,onRemove:t,index:o=0}){let{translate:r}=Oe(),{replaceMedia:n}=zt(),a=J.useRef(null),s=e instanceof File,i=s?URL.createObjectURL(e):e.url,l=e.type,d=s?e.name:void 0,c=l.startsWith("video"),p=l==="pdf"||l==="application/pdf",f=()=>{var g;(g=a.current)==null||g.click();},u=g=>{let m=g.target.files;m&&m.length>0&&n(o,m[0]),a.current&&(a.current.value="");};return J__namespace.default.createElement("div",{className:"mt-4 relative"},J__namespace.default.createElement("div",{className:"relative aspect-video rounded-lg overflow-hidden"},p?J__namespace.default.createElement(Uc,{pdfUrl:i,pdfName:d}):c?J__namespace.default.createElement("div",{className:"relative w-full h-full bg-gray-100"},J__namespace.default.createElement("video",{src:i,className:"w-full h-full object-cover",controls:true})):J__namespace.default.createElement("img",{src:i,alt:"Media preview",className:"w-full h-full object-cover"}),J__namespace.default.createElement("button",{className:"absolute top-2 left-2 h-auto px-2 py-1.5 bg-white rounded-lg flex items-center gap-1.5 z-10 hover:bg-gray-50 transition-colors cursor-pointer shadow-sm",onClick:f,type:"button"},J__namespace.default.createElement("div",{className:"flex items-center gap-1.5"},J__namespace.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none"},J__namespace.default.createElement("path",{d:"M15.055 8.398l-6.553 6.585a1.8 1.8 0 01-1.256.517H4.958a.463.463 0 01-.331-.137.457.457 0 01-.127-.331l.058-2.313c.01-.458.195-.887.516-1.21L9.72 6.857a.212.212 0 01.292 0L11.64 8.48a.615.615 0 00.428.175c.36 0 .643-.293.643-.644a.661.661 0 00-.175-.449c-.03-.039-1.58-1.583-1.58-1.583a.26.26 0 010-.36l.652-.664a1.537 1.537 0 012.18 0l1.267 1.268a1.55 1.55 0 010 2.176z",fill:"#9CA3AF"})),J__namespace.default.createElement("span",{className:"text-sm font-medium text-gray-500"},r("feed.medias-modal.edit-media"))),J__namespace.default.createElement("input",{type:"file",ref:a,className:"hidden",accept:ts,onChange:u})),!c&&!p&&J__namespace.default.createElement("div",{className:"absolute inset-0 cursor-pointer z-[1]",onClick:f})))}var fN=J.createContext(void 0);function C5({children:e}){let[t,o]=J.useState(false),[r,n]=J.useState([]),a=i=>{n(i),o(true);},s=()=>{o(false),n([]);};return J__namespace.default.createElement(fN.Provider,{value:{isOpen:t,openModal:a,closeModal:s,mediaToManage:r}},e)}function n4(){let e=J.useContext(fN);if(e===void 0)throw new Error("useMediaManagementModal must be used within a MediaManagementModalProvider");return e}function gN({mediaItems:e,onRemove:t}){var g,m,v,h,b,x,w,C,A,k,N,I,P,S,D,T;let {openModal:o,closeModal:r}=n4(),{replaceMedia:n}=zt(),{closeModal:a}=xo(),{translate:s}=Oe(),i=J.useRef([]),l=L=>{var E;(E=i.current[L])==null||E.click();},d=(L,E)=>{let B=E.target.files;B&&B.length>0&&n(L,B[0]),i.current[L]&&(i.current[L].value="");},c=e.slice(0,3),p=Math.max(0,e.length-3),f=()=>{if(e.length>3){let L=e.map((E,B)=>({id:`media-${B}`,url:E.url,type:E.type==="pdf"?"image":E.type}));o(L),setTimeout(()=>{window.dispatchEvent(new CustomEvent("closeCreatePostModal")),a();},50);}};return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"mt-4 flex-shrink-0"},J__namespace.default.createElement("div",{className:"grid grid-cols-12 gap-2 h-[280px] max-h-[280px]"},J__namespace.default.createElement("div",{className:U("relative rounded-lg overflow-hidden",(c==null?void 0:c.length)>2?"col-span-7":"col-span-6","h-full max-h-[280px]")},((g=c[0])==null?void 0:g.type)==="pdf"?J__namespace.default.createElement("div",{className:"w-full h-full"},J__namespace.default.createElement(Uc,{pdfName:(m=c[0])==null?void 0:m.url,pdfUrl:(v=c[0])==null?void 0:v.url})):((h=c[0])==null?void 0:h.type)==="video"?J__namespace.default.createElement("div",{className:"relative w-full h-full bg-gray-100"},J__namespace.default.createElement("video",{src:(b=c[0])==null?void 0:b.url,className:"w-full h-full object-cover",controls:true})):J__namespace.default.createElement("img",{src:((x=c[0])==null?void 0:x.url)||"/placeholder.svg",alt:"Media preview",className:"w-full h-full object-cover"}),J__namespace.default.createElement("button",{className:"absolute top-2 left-2 h-auto px-2 py-1.5 bg-white rounded-lg flex items-center gap-1.5 z-10 hover:bg-gray-50 transition-colors cursor-pointer shadow-sm",onClick:()=>l(0),type:"button"},J__namespace.default.createElement("div",{className:"flex items-center gap-1.5"},J__namespace.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none"},J__namespace.default.createElement("path",{d:"M15.055 8.398l-6.553 6.585a1.8 1.8 0 01-1.256.517H4.958a.463.463 0 01-.331-.137.457.457 0 01-.127-.331l.058-2.313c.01-.458.195-.887.516-1.21L9.72 6.857a.212.212 0 01.292 0L11.64 8.48a.615.615 0 00.428.175c.36 0 .643-.293.643-.644a.661.661 0 00-.175-.449c-.03-.039-1.58-1.583-1.58-1.583a.26.26 0 010-.36l.652-.664a1.537 1.537 0 012.18 0l1.267 1.268a1.55 1.55 0 010 2.176z",fill:"#9CA3AF"})),J__namespace.default.createElement("span",{className:"text-sm font-medium text-gray-500"},s("feed.medias-modal.edit-media"))),J__namespace.default.createElement("input",{type:"file",ref:L=>{i.current[0]=L;},className:"hidden",accept:ts,onChange:L=>d(0,L)})),((w=c[0])==null?void 0:w.type)!=="video"&&((C=c[0])==null?void 0:C.type)!=="pdf"&&J__namespace.default.createElement("div",{className:"absolute inset-0 cursor-pointer z-[1]",onClick:()=>l(0)})),J__namespace.default.createElement("div",{className:U("flex flex-col gap-2 h-full max-h-[280px]",(c==null?void 0:c.length)>2?"col-span-5":"col-span-6")},c.length>1&&J__namespace.default.createElement("div",{className:U("relative rounded-lg overflow-hidden flex-1 min-h-0",(c==null?void 0:c.length)>2?"max-h-[calc(50%-4px)]":"h-full")},((A=c[1])==null?void 0:A.type)==="video"?J__namespace.default.createElement("div",{className:"relative w-full h-full bg-gray-100"},J__namespace.default.createElement("video",{src:(k=c[1])==null?void 0:k.url,className:"w-full h-full object-cover",controls:true})):J__namespace.default.createElement("img",{src:((N=c[1])==null?void 0:N.url)||"/placeholder.svg",alt:"Media preview",className:"w-full h-full object-cover"}),J__namespace.default.createElement("button",{className:"absolute top-2 left-2 h-auto px-2 py-1.5 bg-white rounded-lg flex items-center gap-1.5 z-10 hover:bg-gray-50 transition-colors cursor-pointer shadow-sm",onClick:()=>l(1),type:"button"},J__namespace.default.createElement("div",{className:"flex items-center gap-1.5"},J__namespace.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none"},J__namespace.default.createElement("path",{d:"M15.055 8.398l-6.553 6.585a1.8 1.8 0 01-1.256.517H4.958a.463.463 0 01-.331-.137.457.457 0 01-.127-.331l.058-2.313c.01-.458.195-.887.516-1.21L9.72 6.857a.212.212 0 01.292 0L11.64 8.48a.615.615 0 00.428.175c.36 0 .643-.293.643-.644a.661.661 0 00-.175-.449c-.03-.039-1.58-1.583-1.58-1.583a.26.26 0 010-.36l.652-.664a1.537 1.537 0 012.18 0l1.267 1.268a1.55 1.55 0 010 2.176z",fill:"#9CA3AF"})),J__namespace.default.createElement("span",{className:"text-sm font-medium text-gray-500"},s("feed.medias-modal.edit-media"))),J__namespace.default.createElement("input",{type:"file",ref:L=>{i.current[1]=L;},className:"hidden",accept:ts,onChange:L=>d(1,L)})),((I=c[1])==null?void 0:I.type)!=="video"&&J__namespace.default.createElement("div",{className:"absolute inset-0 cursor-pointer z-[1]",onClick:()=>l(1)})),c.length>2&&J__namespace.default.createElement("div",{className:"relative rounded-lg overflow-hidden flex-1 min-h-0 max-h-[calc(50%-4px)]"},((P=c[2])==null?void 0:P.type)==="video"?J__namespace.default.createElement("div",{className:"relative w-full h-full bg-gray-100"},J__namespace.default.createElement("video",{src:(S=c[2])==null?void 0:S.url,className:"w-full h-full object-cover",controls:true})):J__namespace.default.createElement("img",{src:((D=c[2])==null?void 0:D.url)||"/placeholder.svg",alt:"Media preview",className:"w-full h-full object-cover"}),e.length>3&&J__namespace.default.createElement("div",{className:"absolute inset-0 bg-black/40 flex items-center justify-center cursor-pointer z-[5]",onClick:f},J__namespace.default.createElement("span",{className:"text-white text-2xl font-medium"},"+",p)),J__namespace.default.createElement("button",{className:"absolute top-2 left-2 h-auto px-2 py-1.5 bg-white rounded-lg flex items-center gap-1.5 z-10 hover:bg-gray-50 transition-colors cursor-pointer shadow-sm",onClick:()=>l(2),type:"button"},J__namespace.default.createElement("div",{className:"flex items-center gap-1.5"},J__namespace.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none"},J__namespace.default.createElement("path",{d:"M15.055 8.398l-6.553 6.585a1.8 1.8 0 01-1.256.517H4.958a.463.463 0 01-.331-.137.457.457 0 01-.127-.331l.058-2.313c.01-.458.195-.887.516-1.21L9.72 6.857a.212.212 0 01.292 0L11.64 8.48a.615.615 0 00.428.175c.36 0 .643-.293.643-.644a.661.661 0 00-.175-.449c-.03-.039-1.58-1.583-1.58-1.583a.26.26 0 010-.36l.652-.664a1.537 1.537 0 012.18 0l1.267 1.268a1.55 1.55 0 010 2.176z",fill:"#9CA3AF"})),J__namespace.default.createElement("span",{className:"text-sm font-medium text-gray-500"},s("feed.medias-modal.edit-media"))),J__namespace.default.createElement("input",{type:"file",ref:L=>{i.current[2]=L;},className:"hidden",accept:ts,onChange:L=>d(2,L)})),e.length<=3&&((T=c[2])==null?void 0:T.type)!=="video"&&J__namespace.default.createElement("div",{className:"absolute inset-0 cursor-pointer z-[1]",onClick:()=>l(2)}))))))}function vN(){return J__namespace.default.createElement("div",{className:"mt-2 relative aspect-video bg-gray-100 rounded-lg flex items-center justify-center"},J__namespace.default.createElement("div",{className:"animate-pulse text-gray-400"},"Carregando..."))}function tf({media:e,onRemove:t,isUploading:o}){let[r,n]=J.useState([]);return J.useEffect(()=>{j(this,null,function*(){let s=yield pN(e);n(s);});},[e]),r.length===0&&!o?null:o&&(r==null?void 0:r.length)===0?J__namespace.default.createElement(vN,null):r.length===1?J__namespace.default.createElement(mN,{media:r[0],onRemove:()=>t(0),index:0}):J__namespace.default.createElement(gN,{mediaItems:r,onRemove:t})}var M5=()=>{let e=M(),{content:t,setContent:o}=zt(),{mutate:r,isPending:n}=ge({mutationFn:()=>j(void 0,null,function*(){return yield (yield fetch("/feed/api/resume-post",{method:"POST",body:JSON.stringify({postText:t,locale:e})})).json()}),onSuccess(a){o(a==null?void 0:a.summary);}});return {resumePost:r,isResumingThePost:n}};var yN=hf.gql`
|
|
2382
2382
|
query GetUsersPagesCommunities(
|
|
2383
2383
|
$optionsUser: SearchUserDto
|
|
2384
2384
|
$optionsPage: SearchPageInput
|
|
@@ -2427,11 +2427,11 @@ query UserArticlesPosts($userId: String!) {
|
|
|
2427
2427
|
}
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|
|
2430
|
-
`;var bN=e=>{var a,s,i,l,d,c,p,f,u,g,m,v,h,b,x;let t=(i=(s=(a=e==null?void 0:e.users)==null?void 0:a.data)==null?void 0:s.map(w=>F(y({},w),{type:"user"})))!=null?i:[],o=(c=(d=(l=e==null?void 0:e.pages)==null?void 0:l.data)==null?void 0:d.map(w=>F(y({},w),{type:"page"})))!=null?c:[],r=(u=(f=(p=e==null?void 0:e.communities)==null?void 0:p.data)==null?void 0:f.map(w=>F(y({},w),{type:"community"})))!=null?u:[];return {meta:(x=(b=(v=(g=e==null?void 0:e.users)==null?void 0:g.meta)!=null?v:(m=e==null?void 0:e.pages)==null?void 0:m.meta)!=null?b:(h=e==null?void 0:e.communities)==null?void 0:h.meta)!=null?x:{currentPage:1,perPage:15,lastPage:1,total:0},data:[...t,...r,...o]}};var
|
|
2430
|
+
`;var bN=e=>{var a,s,i,l,d,c,p,f,u,g,m,v,h,b,x;let t=(i=(s=(a=e==null?void 0:e.users)==null?void 0:a.data)==null?void 0:s.map(w=>F(y({},w),{type:"user"})))!=null?i:[],o=(c=(d=(l=e==null?void 0:e.pages)==null?void 0:l.data)==null?void 0:d.map(w=>F(y({},w),{type:"page"})))!=null?c:[],r=(u=(f=(p=e==null?void 0:e.communities)==null?void 0:p.data)==null?void 0:f.map(w=>F(y({},w),{type:"community"})))!=null?u:[];return {meta:(x=(b=(v=(g=e==null?void 0:e.users)==null?void 0:g.meta)!=null?v:(m=e==null?void 0:e.pages)==null?void 0:m.meta)!=null?b:(h=e==null?void 0:e.communities)==null?void 0:h.meta)!=null?x:{currentPage:1,perPage:15,lastPage:1,total:0},data:[...t,...r,...o]}};var lX=(e,t,o)=>j(void 0,null,function*(){var s;let r=y({page:(s=e==null?void 0:e.page)!=null?s:1,perPage:(e==null?void 0:e.perPage)||15},e!=null&&e.filter?{filter:{name:e.filter}}:{}),n=yield hf__default.default(t!=null?t:"",yN,{optionsUser:r,optionsPage:r,optionsCommunity:r},{"x-access-token":o!=null?o:""});return bN(n)});function xN(e){var p,f,u;let{user:t,feedApi:o}=M(),{hasNextPage:r,fetchNextPage:n,isFetchingNextPage:a,data:s,refetch:i,isLoading:l,isRefetching:d}=yt({queryKey:["mention","list",(p=e==null?void 0:e.filter)==null?void 0:p.name],queryFn:({pageParam:g=1})=>{var m,v,h;return lX({page:g,filter:(m=e==null?void 0:e.filter)==null?void 0:m.name,perPage:((v=e==null?void 0:e.filter)==null?void 0:v.perPage)||15},o!=null?o:"",(h=t==null?void 0:t.accessToken)!=null?h:"")},initialPageParam:1,staleTime:1/0,enabled:!!((f=e==null?void 0:e.filter)!=null&&f.name),getNextPageParam:g=>{var m,v;if((m=g==null?void 0:g.meta)!=null&&m.currentPage&&((v=g==null?void 0:g.meta)!=null&&v.lastPage)&&g.meta.currentPage<g.meta.lastPage)return g.meta.currentPage+1}});return {hasNextPage:r,isFetchingNextPage:a,refetchMentionList:i,loadMoreMentionList:()=>{r&&n();},isGettingMentionList:l,isRefetchingMentionList:d,mentionList:((u=s==null?void 0:s.pages)==null?void 0:u.flatMap(g=>g==null?void 0:g.data))||[]}}function CN({value:e,onChange:t,onMentionsChange:o,textareaRef:r}){let n=J.useRef(null),a=r||n,s=J.useRef(null),[i,l]=J.useState(false),[d,c]=J.useState(""),[p,f]=J.useState([]),[u,g]=J.useState({top:0,left:0}),[m,v]=J.useState(null),h=usehooks.useDebounce(d,400),{mentionList:b,isGettingMentionList:x,hasNextPage:w,loadMoreMentionList:C,isFetchingNextPage:A,isRefetchingMentionList:k}=xN({filter:h?{name:h}:void 0}),N=(b==null?void 0:b.map(T=>{let L;return (T==null?void 0:T.type)==="user"?L=T.avatar:(T==null?void 0:T.type)==="page"?L=T.logo:(T==null?void 0:T.type)==="community"&&(L=T.image),{id:(T==null?void 0:T.id)||"",name:(T==null?void 0:T.name)||"",slug:(T==null?void 0:T.slug)||"",image:L,type:(T==null?void 0:T.type)||"user",originalData:T}}))||[];J.useEffect(()=>{let T=p==null?void 0:p.filter(L=>e.includes(`@${L==null?void 0:L.name}`));if((T==null?void 0:T.length)!==(p==null?void 0:p.length)&&(f(T),o)){let L=T==null?void 0:T.map(E=>{var B;return y(y(y({id:E==null?void 0:E.id,mentionedId:E==null?void 0:E.id,mentionType:(B=E==null?void 0:E.type)==null?void 0:B.toUpperCase()},(E==null?void 0:E.type)==="user"&&{mentionedUser:{id:E==null?void 0:E.id,name:E==null?void 0:E.name,slug:E==null?void 0:E.slug,avatar:(E==null?void 0:E.image)||""}}),(E==null?void 0:E.type)==="community"&&{mentionedCommunity:{id:E==null?void 0:E.id,name:E==null?void 0:E.name,slug:E==null?void 0:E.slug,image:(E==null?void 0:E.image)||""}}),(E==null?void 0:E.type)==="page"&&{mentionedPage:{id:E==null?void 0:E.id,name:E==null?void 0:E.name,slug:E==null?void 0:E.slug,logo:(E==null?void 0:E.image)||""}})});o(L);}},[e,p,o]);let I=N.slice(0,10),P=()=>{let T=a.current;T&&(T.style.height="80px",T.style.height=`${Math.min(T.scrollHeight,320)}px`);};J.useEffect(()=>{P();},[e]);let S=T=>{let L=T.target.value,E=T.target.selectionStart;if(L[E-1]==="@"&&(E===1||L[E-2]===" "||L[E-2]===`
|
|
2431
2431
|
`)){l(true),c(""),v(E-1);let B=a.current;if(B){let q=L.substring(0,B.selectionStart).split(`
|
|
2432
2432
|
`),Y=20,H=q.length-1,z=(H+1)*Y,G=q[H].length%B.cols*8;g({top:z,left:G});}}else if(i&&m!==null)if(E<m)l(false),v(null),c("");else {let B=L.substring(m+1,E);B.includes(" ")||B.includes(`
|
|
2433
2433
|
`)?(l(false),v(null),c("")):c(B);}else i&&(l(false),v(null),c(""));t(L);},D=T=>{if(m!==null&&a.current){let L=e.substring(0,m),E=e.substring(a.current.selectionStart),B=`@${T==null?void 0:T.name}`,W=`${L}${B} ${E}`;if(t(W),!(p==null?void 0:p.find(Y=>Y.id===(T==null?void 0:T.id)))){let Y=[...p,T];if(f(Y),o){let H=Y==null?void 0:Y.map(z=>{var G;return y(y(y({id:z==null?void 0:z.id,mentionedId:z==null?void 0:z.id,mentionType:(G=z==null?void 0:z.type)==null?void 0:G.toUpperCase()},(z==null?void 0:z.type)==="user"&&{mentionedUser:{id:z==null?void 0:z.id,name:z==null?void 0:z.name,slug:z==null?void 0:z.slug,avatar:(z==null?void 0:z.image)||""}}),(z==null?void 0:z.type)==="community"&&{mentionedCommunity:{id:z==null?void 0:z.id,name:z==null?void 0:z.name,slug:z==null?void 0:z.slug,image:(z==null?void 0:z.image)||""}}),(z==null?void 0:z.type)==="page"&&{mentionedPage:{id:z==null?void 0:z.id,name:z==null?void 0:z.name,slug:z==null?void 0:z.slug,logo:(z==null?void 0:z.image)||""}})});o(H);}}l(false),setTimeout(()=>{if(a.current){a.current.focus();let Y=m+B.length+1;a.current.setSelectionRange(Y,Y);}},0);}};return J.useEffect(()=>{let T=L=>{s.current&&!s.current.contains(L.target)&&a.current!==L.target&&l(false);};return document.addEventListener("mousedown",T),()=>{document.removeEventListener("mousedown",T);}},[]),{textareaRef:a,dropdownRef:s,resizeTextarea:P,handleInputChange:S,showMentionDropdown:i,filteredItems:I,selectItem:D,cursorPosition:u,mentionedItems:p,isLoading:x,hasNextPage:w,loadMoreItems:C,isFetchingNextPage:A,isRefetching:k}}function MN({filteredItems:e,selectItem:t,hasNextPage:o,isFetchingNextPage:r,isRefetching:n,loadMoreItems:a}){let s=l=>{switch(l){case "user":return "Usu\xE1rio";case "page":return "P\xE1gina";case "community":return "Comunidade";default:return ""}},i=l=>{switch(l){case "user":return "user";case "page":return "page";case "community":return "community";default:return "user"}};return J__namespace.default.createElement("ul",{className:"py-1"},e==null?void 0:e.map(l=>{var d;return J__namespace.default.createElement("li",{key:l==null?void 0:l.id,className:"px-4 py-3 hover:bg-primary/5 cursor-pointer flex items-center justify-between transition-colors duration-150",onClick:()=>t(l)},J__namespace.default.createElement("div",{className:"flex items-center gap-x-3"},J__namespace.default.createElement(ae,{className:"w-8 h-8",name:l==null?void 0:l.name,src:(d=l==null?void 0:l.image)!=null?d:"",type:i(l==null?void 0:l.type)}),J__namespace.default.createElement("span",{className:"text-sm font-medium text-gray-900 truncate"},l==null?void 0:l.name)),J__namespace.default.createElement("span",{className:"text-xs text-gray-500 bg-gray-50 px-2 py-1 rounded-full"},s(l==null?void 0:l.type)))}),o&&J__namespace.default.createElement("li",{className:"px-4 py-2 text-center border-t border-gray-100"},J__namespace.default.createElement("button",{onClick:a,disabled:r,className:"text-primary text-sm hover:underline disabled:opacity-50"},r?"Carregando...":"Carregar mais")))}function PN(e,t){let o=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");for(let r of t){let n=new RegExp(`@${r.name}(?=\\s|$)`,"g");o=o.replace(n,`<span class="!text-primary font-medium">@${r.name}</span>`);}return o.replace(/\n/g,"<br/>")}var SN=({value:e,onChange:t,className:o,placeholder:r,disabled:n=false,onMentionsChange:a,onKeyDown:s,textareaRef:i})=>{let{translate:l}=Oe(),[d,c]=J__namespace.default.useState(80),{textareaRef:p,dropdownRef:f,handleInputChange:u,showMentionDropdown:g,filteredItems:m,selectItem:v,cursorPosition:h,hasNextPage:b,isLoading:x,loadMoreItems:w,isFetchingNextPage:C,isRefetching:A,mentionedItems:k}=CN({value:e,onChange:t,onMentionsChange:a,textareaRef:i}),N=I=>{let P=I.target;P.style.height="auto";let S=Math.min(P.scrollHeight,320);P.style.height=`${S}px`,c(S);};return J__namespace.default.createElement("div",{className:"relative"},e&&J__namespace.default.createElement("div",{className:U("absolute inset-0 pt-4 text-gray-700 pointer-events-none resize-none border-none overflow-y-auto leading-relaxed whitespace-pre-line break-words z-10",o),style:{height:d,maxHeight:320},dangerouslySetInnerHTML:{__html:PN(e,k)}}),J__namespace.default.createElement("textarea",{ref:p,value:e,onChange:I=>{u(I),N(I);},onKeyDown:s,disabled:n,placeholder:r!=null?r:l("feed.create-post.add-description"),className:U(e?"w-full pt-4 text-transparent resize-none border-none focus:outline-none focus:ring-0 min-h-[80px] max-h-[320px] overflow-y-auto leading-relaxed whitespace-pre-line break-words [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden scrollbar-hide bg-transparent caret-gray-700":"w-full pt-4 text-gray-700 resize-none border-none focus:outline-none focus:ring-0 min-h-[80px] max-h-[320px] overflow-y-auto leading-relaxed whitespace-pre-line break-words [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden scrollbar-hide caret-gray-700",o),style:{height:d,maxHeight:320}}),g&&J__namespace.default.createElement("div",{ref:f,className:"absolute z-10 bg-white rounded-md shadow-lg border border-gray-200 max-h-60 overflow-y-auto w-64",style:{top:`${h.top+25}px`,left:`${h.left}px`}},x||A?J__namespace.default.createElement("div",{className:"w-full flex items-center justify-center py-4"},J__namespace.default.createElement(Ge,{className:"w-4 h-4"})):(m==null?void 0:m.length)===0?J__namespace.default.createElement("div",{className:"w-full flex items-center justify-center py-4"},J__namespace.default.createElement("span",{className:"text-body-sm text-center text-gray-500"},l("feed.post-card.not-found.users-not-found"))):J__namespace.default.createElement(MN,{filteredItems:m,selectItem:v,hasNextPage:b,isFetchingNextPage:C,isRefetching:A,loadMoreItems:w})))};var IN=J.forwardRef((e,t)=>{let{isResumingThePost:o}=M5(),r=J.useRef(null),{content:n,isUploading:a,uploadedMedia:s,handleContentChange:i,removeMedia:l,getPlaceholder:d,setMentions:c}=cN(),{setContent:p}=zt(),[f,u]=J.useState(false),g=J.useRef(null),m=J.useRef(null);J__namespace.default.useImperativeHandle(t,()=>({insertMention:()=>{var h;if(r.current){let b=r.current,x=b.selectionStart,w=n.substring(0,x),C=n.substring(x),k=w.length>0&&!w.endsWith(" ")&&!w.endsWith(`
|
|
2434
|
-
`)?" @":"@",N=w+k+C,I=(h=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value"))==null?void 0:h.set;I==null||I.call(b,N);let P=new Event("input",{bubbles:true});b.dispatchEvent(P),setTimeout(()=>{let S=x+k.length;b.setSelectionRange(S,S),b.focus();},0);}},openEmojiPicker:()=>{u(true);}}),[n]),J.useEffect(()=>{let h=b=>{g.current&&!g.current.contains(b.target)&&m.current&&!m.current.contains(b.target)&&u(false);};if(f)return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h);}},[f]);let v=J.useCallback(h=>{let b=h.emoji,w=r.current||document.querySelector("textarea");if(w){let C=w.selectionStart||n.length,A=n.substring(0,C),k=n.substring(C),N=A+b+k;p(N),setTimeout(()=>{if(w){w.focus();let I=C+b.length;w.setSelectionRange(I,I);}},0);}else p(n+b);u(false);},[n,p]);return J__namespace.default.createElement("div",{className:"p-0 w-full lg:p-4 lg:pt-0 lg:border min-h-max h-full lg:h-auto border-gray-200 rounded-2xl flex flex-col relative"},J__namespace.default.createElement(SN,{className:"lg:min-h-[200px] placeholder:text-gray-400 overflow-y-scroll",placeholder:d(),value:n,disabled:o,onChange:i,onMentionsChange:h=>c(h),textareaRef:r}),s.length===0&&J__namespace.default.createElement("div",{className:"absolute bottom-2 left-2 z-10"},J__namespace.default.createElement("div",{className:"relative"},J__namespace.default.createElement(le,{ref:m,variant:"ghost",size:"sm",className:"!p-1.5 hover:bg-gray-100 rounded-full",onClick:()=>u(!f),type:"button"},J__namespace.default.createElement(w5,{color:"#687588"})),f&&J__namespace.default.createElement("div",{ref:g,className:"absolute bottom-full left-0 mb-2 z-50"},J__namespace.default.createElement(AN__default.default,{onEmojiClick:v,theme:AN.Theme.LIGHT,searchPlaceHolder:"Buscar emoji",width:320,height:400,previewConfig:{showPreview:false}})))),s.length>0&&f&&J__namespace.default.createElement("div",{ref:g,className:"absolute bottom-full left-2 mb-2 z-50"},J__namespace.default.createElement(AN__default.default,{onEmojiClick:v,theme:AN.Theme.LIGHT,searchPlaceHolder:"Buscar emoji",width:320,height:400,previewConfig:{showPreview:false}})),J__namespace.default.createElement("div",{className:"w-full flex-1"},s.length>0&&J__namespace.default.createElement(tf,{media:s,onRemove:l,isUploading:a})))});function s4({onSubmit:e,onScheduleClick:t,scheduledDate:o,showScheduleOption:r=true,onViewScheduledPosts:n}){let {translate:a}=Oe(),s=J.useRef(null),{content:i,uploadedMedia:l,isCreatingThePost:d,handleMediaUpload:c,resetForm:p,setIsCreatingThePost:f}=zt(),{operation:u,post:g}=xo(),{resumePost:m,isResumingThePost:v}=M5(),[h,b]=J.useState(false),x=l&&l.length>0,C=()=>{var N;(N=s.current)==null||N.insertMention();},A=()=>{e({content:i,media:l}),localStorage.removeItem("persona-phrase"),localStorage.removeItem("selectedPersona"),p();},k=!!((i==null?void 0:i.trim().length)>0||(l==null?void 0:l.length)>0||d);return J.useEffect(()=>{u==="update"&&g&&f(false);},[u,g,f]),J.useEffect(()=>{if(u==="update"&&d){let N=setTimeout(()=>{f(false);},3e3);return ()=>clearTimeout(N)}},[u,d,f]),J__namespace.default.createElement("div",{className:"lg:px-0 px-4 min-h-[78dvh] flex lg:block flex-col lg:justify-normal justify-between lg:min-h-0 mt-6 w-full"},J__namespace.default.createElement("div",{className:"w-full min-w-0"},J__namespace.default.createElement(IN,{ref:s})),J__namespace.default.createElement("div",{className:`lg:px-0 mt-4 flex flex-row items-center justify-between gap-1.5 sm:gap-2 lg:gap-3 w-full flex-wrap ${(l==null?void 0:l.length)>0&&"pb-8"}`},J__namespace.default.createElement("div",{className:"flex items-center gap-1 sm:gap-1.5 lg:gap-2 flex-1 min-w-0"},J__namespace.default.createElement(r4,{onMediaSelect:c,onScheduleClick:r?t:void 0,onMentionClick:C,showScheduleOption:r,hasMedia:x,onEmojiClick:()=>{var N;(N=s.current)==null||N.openEmojiPicker();},onViewScheduledPosts:x?n:void 0})),J__namespace.default.createElement("div",{className:"flex items-center gap-1 sm:gap-1.5 lg:gap-2 flex-shrink-0"},x&&J__namespace.default.createElement(le,{variant:"outline",size:"sm",disabled:v||!(i!=null&&i.trim()),className:"rounded-lg flex items-center gap-x-1 sm:gap-x-2 border-gray-300 text-gray-600 hover:bg-gray-50 hover:text-gray-700 hover:border-gray-400 px-2 sm:px-3 lg:px-4 py-1 sm:py-1.5 lg:py-2 whitespace-nowrap",onClick:()=>m()},J__namespace.default.createElement(lucideReact.Sparkles,{className:"h-4 w-4"}),J__namespace.default.createElement("span",{className:"text-xs sm:text-sm"},a("feed.create-post.buttons.resume"))),r&&t&&!o&&!x&&J__namespace.default.createElement(le,{variant:"outline",size:"sm",className:"rounded-lg flex items-center gap-x-1 sm:gap-x-2 border-gray-300 text-gray-600 hover:bg-gray-50 hover:text-gray-700 hover:border-gray-400 px-2 sm:px-3 lg:px-4 py-1 sm:py-1.5 lg:py-2 whitespace-nowrap",onClick:t},J__namespace.default.createElement(Ri,{className:"h-4 w-4"}),J__namespace.default.createElement("span",{className:"text-xs sm:text-sm"},a("feed.create-post.options.schedule"))),J__namespace.default.createElement(le,{disabled:!k||d,className:"px-2 sm:px-3 lg:px-6 py-1 sm:py-1.5 lg:py-2.5 text-xs sm:text-sm lg:text-base text-white whitespace-nowrap bg-primary hover:bg-primary/90",onClick:A},a(d?o?"feed.create-post.schedule.schedule-button":u==="update"?"feed.create-post.buttons.saving":"feed.create-post.buttons.publishing":o&&!x?"feed.create-post.schedule.schedule-button":u==="update"?"feed.create-post.buttons.save":"feed.create-post.buttons.publish")))))}function i4({selectedProfile:e,onProfileSelectClick:t}){var d,c,p,f,u,g,m,v,h,b,x;let{translate:o}=Oe(),{user:r,page:n,isPageFeed:a,isCommunityFeed:s,community:i}=M(),l=e||(s?{id:(d=i==null?void 0:i.id)!=null?d:"",name:(c=i==null?void 0:i.name)!=null?c:"",avatar:(p=i==null?void 0:i.image)!=null?p:"",role:"Comunidade"}:a?{id:(f=n==null?void 0:n.id)!=null?f:"",name:(u=n==null?void 0:n.name)!=null?u:"",avatar:(g=n==null?void 0:n.logo)!=null?g:"",role:(m=n==null?void 0:n.sector)!=null?m:""}:{id:(v=r==null?void 0:r.id)!=null?v:"",name:(h=r==null?void 0:r.name)!=null?h:"",avatar:(b=r==null?void 0:r.avatar)!=null?b:"",role:(x=r==null?void 0:r.role)!=null?x:""});return J__namespace.default.createElement("div",{className:"flex flex-col sm:flex-row lg:items-center mt-6 lg:mt-12 justify-between px-4 lg:px-0 gap-3 sm:gap-4"},J__namespace.default.createElement("div",{className:"flex items-center gap-2 sm:gap-3 min-w-0 flex-1"},J__namespace.default.createElement(ae,{src:l==null?void 0:l.avatar,name:l==null?void 0:l.name,className:"h-8 w-8 sm:h-9 sm:w-9 flex-shrink-0"}),J__namespace.default.createElement("div",{className:"flex min-w-0 flex-1"},J__namespace.default.createElement("div",{className:"flex flex-col min-w-0"},J__namespace.default.createElement("div",{className:"flex gap-1 items-center min-w-0"},J__namespace.default.createElement("span",{className:"font-medium text-sm sm:text-base truncate"},l==null?void 0:l.name),J__namespace.default.createElement("button",{onClick:t,className:`flex-shrink-0 ${a||s?"hidden":""}`,"aria-label":"Selecionar perfil"},J__namespace.default.createElement(lucideReact.ChevronDown,{className:"w-4 h-4 sm:w-5 sm:h-5"}))),J__namespace.default.createElement("span",{className:"text-xs sm:text-sm text-gray-6 truncate"},l.role||"")))),J__namespace.default.createElement("div",{className:`flex items-center gap-2 flex-shrink-0 ${a||s?"hidden":""}`},J__namespace.default.createElement(g0,{defaultValue:"all"},J__namespace.default.createElement(el,{className:"w-full sm:w-[120px] lg:w-[130px] border !outline-none border-gray-200 rounded-lg text-xs sm:text-sm"},J__namespace.default.createElement(h0,{placeholder:o("feed.create-post.filters.all")})),J__namespace.default.createElement(tl,{className:"z-[9999]"},J__namespace.default.createElement(xn,{value:"all"},o("feed.create-post.filters.all")),J__namespace.default.createElement(xn,{value:"connections"},o("feed.create-post.filters.connections")),J__namespace.default.createElement(xn,{value:"communities"},o("feed.create-post.filters.communities"))))))}function kN({onSubmit:e,scheduledDate:t,originalPost:o}){let{isCreatingThePost:r,content:n}=zt(),{operation:a}=xo(),{translate:s}=Oe(),i=!!(n&&n.trim().length>0),l=true;if(a==="update")if(o){let c=n.trim(),p=(o.content||"").trim(),f=c!==p,u=false;if(t||o.scheduledAt){let g=t?t.toISOString().split(".")[0]+"Z":null,m=o.scheduledAt?new Date(o.scheduledAt).toISOString().split(".")[0]+"Z":null;u=g!==m;}l=f||u;}else l=i;else l=i;let d=!!(i&&l);return a==="update"&&i&&(o!=null&&o.scheduledAt)&&(d=true),!d&&a==="update"&&i&&(d=true),J__namespace.default.createElement("div",{className:"flex-1 pl-14 justify-between flex items-center"},J__namespace.default.createElement("h4",{className:"text-sm font-bold"},s("feed.create-post.title")),J__namespace.default.createElement(le,{disabled:!d||r,variant:"default",onClick:e,className:"px-4 !bg-primary !text-sm font-bold text-white py-2 rounded-lg"},s(r?a==="update"?"feed.create-post.buttons.saving":"feed.create-post.buttons.publishing":a==="update"?"feed.create-post.buttons.save":"feed.create-post.buttons.publish")))}var TN=()=>J__namespace.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"174",height:"161",fill:"none",viewBox:"0 0 174 161"},J__namespace.default.createElement("path",{fill:"#263238",d:"m.21 149.792 21.72-.096 21.725-.036 43.444-.068 43.444.068 21.724.036 21.72.096-21.72.1-21.724.032-43.444.068-43.444-.068-21.724-.036z"}),J__namespace.default.createElement("path",{fill:"url(#paint0_linear_53604_15544)",d:"M156.358 122.471c.159-4.028.104-8.061-.164-12.084a154 154 0 0 0-3.788-24.62c-1.056-4.556-2.356-9.036-3.708-13.508-.044-.136-.26-.1-.22.04 4.188 15.776 7.624 32.052 7.388 48.448-.064 4.588-.596 9.096-1.032 13.656 0 .12.188.172.216.044.848-3.9 1.148-7.988 1.308-11.976"}),J__namespace.default.createElement("path",{fill:"url(#paint1_linear_53604_15544)",d:"M148.476 72.299s-6.348 16.108-4.924 19.896 4.344 4.592 4.344 4.592-3.884 5.544-1.168 10.744 8.74 4.952 9.14 10.848c.004 0 .34-24.648-7.392-46.08"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M155.186 108.218a.13.13 0 0 0 0-.084 147.5 147.5 0 0 0-6.156-32.4c0-.032-.06-.024-.052 0a238 238 0 0 1 3.332 14.212 7 7 0 0 0-3.028-1.688c-.02 0-.032.024 0 .032 1.172.508 2.3 1.096 3.128 2.092.184.932.368 1.864.54 2.8-1.42-1.6-3.384-2.372-5.352-3.116-.028 0-.044.032 0 .04 2.048.836 4.092 1.912 5.48 3.676q.723 4 1.272 8.048a7.65 7.65 0 0 0-3.784-2.168.04.04 0 0 0-.028.001.03.03 0 0 0-.018.021.03.03 0 0 0 .001.028.04.04 0 0 0 .021.018 8 8 0 0 1 3.84 2.456l.024.02q.183 1.416.356 2.84a9.8 9.8 0 0 0-2.652-1.6c-.024 0-.04.032 0 .04a9.2 9.2 0 0 1 2.656 1.76h.032c.108.904.212 1.804.304 2.708a12.9 12.9 0 0 0-5.384-3.84c-.04 0-.06.048-.02.064a14.06 14.06 0 0 1 5.304 4.08q.022.03.059.043a.12.12 0 0 0 .073.001c.136 1.384.26 2.772.36 4.164 0 .02.036.02.032 0-.128-1.42-.228-2.844-.34-4.248"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M150.086 86.647a7.9 7.9 0 0 0-3.812-1.2.03.03 0 0 0-.017.007.03.03 0 0 0-.007.017q0 .01.007.017a.03.03 0 0 0 .017.007c1.305.242 2.572.656 3.768 1.232a.1.1 0 0 0 .027-.007.1.1 0 0 0 .019-.02.1.1 0 0 0 .006-.026.05.05 0 0 0-.008-.027M150.856 103.701a8 8 0 0 0-2.864-.98c-.036 0-.036.048 0 .056.985.197 1.939.531 2.832.992.036.02.068-.044.032-.068"}),J__namespace.default.createElement("path",{fill:"url(#paint2_linear_53604_15544)",d:"M173.042 92.454a43.2 43.2 0 0 0-7.348 6.42 26.4 26.4 0 0 0-5.148 8.736 65.3 65.3 0 0 0-3.84 20.896 50.6 50.6 0 0 0 1.132 11.748.1.1 0 0 0 .048.071.1.1 0 0 0 .084.017.12.12 0 0 0 .072-.048.11.11 0 0 0 .016-.084 65.9 65.9 0 0 1 .116-20.536c1.088-6.664 2.8-13.912 7.036-19.328 2.308-2.948 5.2-5.268 8.024-7.664.152-.128-.04-.336-.192-.228"}),J__namespace.default.createElement("path",{fill:"url(#paint3_linear_53604_15544)",d:"M157.641 123.707a39.7 39.7 0 0 1 5.352-6.844c3.176-3.172 5.848-5.428 6.26-7.528s-3.18-3.644-3.18-3.644 4.4.8 5.6-1.056 1.784-12.52 1.784-12.52-7.996 5.704-11.72 13.704-4.096 17.888-4.096 17.888"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M170.596 102.129a7.3 7.3 0 0 0-1.6-.056c-.064 0-.06.112 0 .112.528 0 1.052-.024 1.58 0a.02.02 0 0 0 .013.007.02.02 0 0 0 .016 0 .03.03 0 0 0 .013-.007l.009-.013q.002-.007.002-.015l-.006-.015a.03.03 0 0 0-.012-.009.03.03 0 0 0-.015-.004M164.843 112.486a7.3 7.3 0 0 0-2.464.496v.036c.8-.196 1.636-.272 2.46-.4a.07.07 0 0 0 .047-.018.07.07 0 0 0 .021-.046.07.07 0 0 0-.018-.047.07.07 0 0 0-.046-.021M163.122 108.913q-.526-.009-1.044.092c-.036 0-.036.064 0 .064q.526.027 1.048-.048a.055.055 0 0 0 .039-.056.05.05 0 0 0-.013-.033.05.05 0 0 0-.03-.019"}),J__namespace.default.createElement("path",{fill:"url(#paint4_linear_53604_15544)",d:"M134.211 103.787c2.6.883 5.092 2.057 7.428 3.5a22.3 22.3 0 0 1 6.188 5.88 55 55 0 0 1 7.932 16.02 42.6 42.6 0 0 1 1.8 9.768.09.09 0 0 1-.02.068.1.1 0 0 1-.028.024.1.1 0 0 1-.034.01.1.1 0 0 1-.036-.003.1.1 0 0 1-.055-.044.1.1 0 0 1-.011-.035 55.4 55.4 0 0 0-4.844-16.596c-2.4-5.14-5.48-10.612-10.16-14-2.548-1.852-5.412-3.064-8.268-4.348-.148-.084-.044-.296.108-.244"}),J__namespace.default.createElement("path",{fill:"url(#paint5_linear_53604_15544)",d:"M153.897 125.519a33.3 33.3 0 0 0-5.916-4.3c-3.3-1.836-6-3.044-6.8-4.644s1.728-3.688 1.728-3.688-3.372 1.656-4.768.44-4.34-9.72-4.34-9.72 7.788 2.768 12.652 8.4 7.444 13.512 7.444 13.512"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M153.497 123.767c-3.896-7.312-9.092-13.924-16.212-18.288a35.7 35.7 0 0 1 5.2 4.076 8.3 8.3 0 0 0-4.195.894l-.005.008-.001.01.003.01.006.007.009.005h.01l.009-.002a11.5 11.5 0 0 1 4.356-.728q.377.358.748.728-1.13.051-2.236.296c-.02 0 0 .036 0 .032a11.4 11.4 0 0 1 2.364-.196 49 49 0 0 1 3.672 4.172 3.7 3.7 0 0 0-1.564.112.03.03 0 0 0-.015.011.03.03 0 0 0-.006.019q0 .009.006.018a.04.04 0 0 0 .015.012 8.3 8.3 0 0 1 1.668-.024q.323.409.64.8a15 15 0 0 0-4.708.48c-.024 0 0 .04 0 .036a19 19 0 0 1 4.852-.316c.2.264.4.536.584.8a10.3 10.3 0 0 0-2.8.324c-.032 0-.024.064 0 .056a10.8 10.8 0 0 1 2.912-.228 70 70 0 0 1 2.4 3.528 2.64 2.64 0 0 0-1.236.076c-.02 0 0 .036 0 .032a5.5 5.5 0 0 1 1.336.064 71 71 0 0 1 2 3.268c.084.072.236.004.188-.092"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M140.64 108.795a3.9 3.9 0 0 0-1.044.06c-.04 0-.028.064 0 .06.344-.036.684-.024 1.024-.032.076-.004.076-.084.02-.088"}),J__namespace.default.createElement("path",{fill:"#455A64",d:"M163.939 149.691h-17.576l2.504-18.356.64-4.708h11.284l.64 4.708z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M161.431 131.335h-12.564l.64-4.708h11.284z"}),J__namespace.default.createElement("path",{fill:"#455A64",d:"M162.41 124.994h-14.512v3.988h14.512z"}),J__namespace.default.createElement("path",{fill:"#37474F",d:"M119.983.818H54.207a6.716 6.716 0 0 0-6.656 6.8v135.4a6.72 6.72 0 0 0 6.656 6.776h65.776a6.72 6.72 0 0 0 6.664-6.776V7.598a6.7 6.7 0 0 0-1.927-4.77 6.73 6.73 0 0 0-4.737-2.01m2.504 138c0 3.564-2.668 6.448-5.96 6.448H57.675c-3.3 0-5.968-2.884-5.968-6.448V12.73c0-7.26 2.668-7.6 5.968-7.6h11.788c.684 0 1.244.8 1.244 1.744v.4c0 2.26 1.24 2.268 2.76 2.268h27.26c1.532 0 2.76 0 2.76-2.268v-.4c0-.964.552-1.744 1.248-1.744h11.792c3.292 0 5.96.964 5.96 7.6z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M90.814 6.718h-7.436a.46.46 0 0 1-.46-.46.46.46 0 0 1 .46-.44h7.436a.456.456 0 0 1 .46.456.456.456 0 0 1-.46.444"}),J__namespace.default.createElement("path",{fill:"#fff",d:"M122.487 12.731v126.096c0 3.564-2.668 6.448-5.96 6.448H57.679c-3.3 0-5.972-2.884-5.972-6.448V12.731c0-7.26 2.672-7.6 5.972-7.6h11.784c.684 0 1.244.8 1.244 1.744v.4c0 2.26 1.24 2.268 2.76 2.268h27.26c1.536 0 2.76 0 2.76-2.268v-.4c0-.964.552-1.744 1.248-1.744h11.792c3.292-.016 5.96.948 5.96 7.6"}),J__namespace.default.createElement("path",{fill:"url(#paint6_linear_53604_15544)",d:"M122.488 12.731v15.764h-70.8V12.731c0-7.26 2.667-7.6 5.968-7.6h11.792c.684 0 1.244.8 1.244 1.744v.4c0 2.26 1.236 2.268 2.756 2.268h27.259c1.532 0 2.764 0 2.764-2.268v-.4c0-.964.552-1.744 1.248-1.744h11.785c3.312-.016 5.984.948 5.984 7.6"}),J__namespace.default.createElement("path",{fill:"#fff",d:"m58.873 21.547-2.092-1.96 2.092-1.96.324.348-1.72 1.612 1.72 1.612zM117.007 18.367a.4.4 0 0 1-.792.078.397.397 0 0 1 .392-.478.4.4 0 0 1 .4.4M117.007 19.82a.4.4 0 1 1-.8.002.4.4 0 0 1 .8-.002M117.007 21.289a.4.4 0 0 1-.792.078.397.397 0 0 1 .392-.478.4.4 0 0 1 .4.4M67.43 7.948l-.115.116-.064.064a1.55 1.55 0 0 0-2.196 0l-.06-.064c-.04-.036-.076-.076-.112-.112l.144-.128q.153-.126.332-.212.212-.106.444-.148c.072 0 .144 0 .22-.032h.344a1.6 1.6 0 0 1 .4.096q.143.05.272.128.141.079.264.184l.12.108z"}),J__namespace.default.createElement("path",{fill:"#fff",d:"m65.414 8.482-.18-.176c.197-.202.457-.332.736-.368a1.28 1.28 0 0 1 1.1.364l-.18.18a1.05 1.05 0 0 0-1.476 0"}),J__namespace.default.createElement("path",{fill:"#fff",d:"m66.698 8.664-.18.18a.53.53 0 0 0-.582-.116.5.5 0 0 0-.174.116l-.176-.18a.8.8 0 0 1 1.112 0"}),J__namespace.default.createElement("path",{fill:"#fff",d:"M66.299 9.02a.164.164 0 1 1-.325-.052.164.164 0 0 1 .325.052M56.324 8.29a.472.472 0 1 1 .943 0 .472.472 0 0 1-.943 0M57.8 8.29a.472.472 0 1 1 .946 0 .472.472 0 0 1-.945 0M59.277 8.29a.468.468 0 1 1 .937.008.468.468 0 0 1-.937-.008M60.754 8.29a.472.472 0 1 1 .945 0 .472.472 0 0 1-.945 0M62.23 8.29a.472.472 0 1 1 .945 0 .472.472 0 0 1-.944 0M117.179 9.317h-3.824V7.541h3.824zm-3.624-.2h3.424V7.741h-3.424z"}),J__namespace.default.createElement("path",{fill:"#fff",d:"M116.136 7.846h-2.46v1.168h2.46zM117.52 7.959h-.34v.948h.34z"}),J__namespace.default.createElement("path",{fill:"#EBEBEB",d:"M62.462 137.565h-.54v2.468h-1.004v-1.256h-1.78v1.256h-1.004v-2.468h-.54l2.432-2.516zM116.606 135.049h-5.868v.84h5.868zM116.606 137.123h-5.868v.84h5.868zM116.606 139.197h-5.868v.84h5.868zM88.766 137.212l-1.668 1.78-1.668-1.78.292-.276 1.376 1.464 1.376-1.464z"}),J__namespace.default.createElement("path",{fill:"#EBEBEB",d:"M87.098 140.832a3.033 3.033 0 1 1 3.032-3.032 3.035 3.035 0 0 1-3.032 3.032m0-5.66a2.63 2.63 0 0 0-2.432 1.625 2.634 2.634 0 0 0 1.921 3.588 2.635 2.635 0 0 0 3.143-2.585 2.633 2.633 0 0 0-2.632-2.628"}),J__namespace.default.createElement("path",{fill:"url(#paint7_linear_53604_15544)",d:"M115.352 97.678h-1v-.4h.6v-.6h.4z"}),J__namespace.default.createElement("path",{fill:"url(#paint8_linear_53604_15544)",d:"M112.794 97.68h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.552v-.4h1.56zm-3.116 0h-1.556v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0H80.09v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.552zm-3.116 0H67.63v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.556z"}),J__namespace.default.createElement("path",{fill:"url(#paint9_linear_53604_15544)",d:"M59.848 97.678h-1v-1h.4v.6h.6z"}),J__namespace.default.createElement("path",{fill:"url(#paint10_linear_53604_15544)",d:"M59.248 95.086h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4z"}),J__namespace.default.createElement("path",{fill:"url(#paint11_linear_53604_15544)",d:"M59.248 53.709h-.4v-1h1v.4h-.6z"}),J__namespace.default.createElement("path",{fill:"url(#paint12_linear_53604_15544)",d:"M112.794 53.109h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.552v-.4h1.56zm-3.116 0h-1.556v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0H80.09v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.552zm-3.116 0H67.63v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.556z"}),J__namespace.default.createElement("path",{fill:"url(#paint13_linear_53604_15544)",d:"M115.352 53.709h-.4v-.6h-.6v-.4h1z"}),J__namespace.default.createElement("path",{fill:"url(#paint14_linear_53604_15544)",d:"M115.353 95.086h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4z"}),J__namespace.default.createElement("path",{fill:"url(#paint15_linear_53604_15544)",d:"M66.207 80.89a5.384 5.384 0 0 0 4.984 5.367h30.472a6.323 6.323 0 0 0 4.804-10.486 6.32 6.32 0 0 0-4.212-2.138 10.656 10.656 0 0 0-20.652-3.331 6.26 6.26 0 0 0-2.828-.669 6.32 6.32 0 0 0-6.312 5.933 5.384 5.384 0 0 0-6.256 5.324"}),J__namespace.default.createElement("path",{fill:"#fff",d:"M89.848 79.256h-5.5v7.02h5.5zM82.46 79.255h9.277L87.1 74.627zM74.14 21.05a1.106 1.106 0 0 1-1.109-1.113V18.57a.21.21 0 0 1 .212-.212.21.21 0 0 1 .212.212v1.367a.688.688 0 0 0 1.372 0V18.57a.21.21 0 0 1 .212-.212.21.21 0 0 1 .197.13.2.2 0 0 1 .015.082v1.367a1.11 1.11 0 0 1-1.112 1.112M77.06 20.003h-.476v.836a.212.212 0 0 1-.424 0v-2.268a.21.21 0 0 1 .208-.212h.692a.826.826 0 0 1 .882.822.824.824 0 0 1-.882.822m-.476-.424h.476a.4.4 0 1 0 0-.8h-.476zM78.398 20.837V18.57a.212.212 0 0 1 .364-.15c.04.04.063.094.064.15v2.048h1.044a.216.216 0 0 1 0 .428h-1.26a.213.213 0 0 1-.212-.208M82.533 18.695a1.41 1.41 0 0 1 0 1.944 1.27 1.27 0 0 1-1.43.296 1.3 1.3 0 0 1-.43-.296 1.43 1.43 0 0 1 0-1.944 1.27 1.27 0 0 1 .94-.4 1.24 1.24 0 0 1 .92.4m-.052.972a1 1 0 0 0-.26-.672.822.822 0 0 0-1.228 0 .96.96 0 0 0-.264.672.95.95 0 0 0 .264.668.82.82 0 0 0 1.228 0 .98.98 0 0 0 .26-.668M84.904 20.413h-.936l-.188.5a.22.22 0 0 1-.2.136.2.2 0 0 1-.072 0 .216.216 0 0 1-.128-.276l.848-2.268a.22.22 0 0 1 .204-.132.21.21 0 0 1 .204.132l.852 2.268a.22.22 0 0 1-.128.276.2.2 0 0 1-.072 0 .21.21 0 0 1-.196-.136zm-.16-.424-.312-.824-.312.824zM86.016 20.838V18.57a.21.21 0 0 1 .13-.198.2.2 0 0 1 .082-.014h.472a1.348 1.348 0 0 1 0 2.691h-.452a.21.21 0 0 1-.232-.212m.424-.216h.24a.92.92 0 0 0 0-1.837h-.24zM90.812 21.018h-.028l-.02-.02a.1.1 0 0 0 0-.032l-.944-2.244a.212.212 0 0 1 .276-.276.2.2 0 0 1 .112.112l.752 1.78.748-1.78a.216.216 0 1 1 .4.164l-.948 2.244a.1.1 0 0 1 0 .032v.02h-.024l-.032.02h-.156l-.032-.024zM92.656 18.57a.21.21 0 0 1 .212-.212.21.21 0 0 1 .212.212v2.267a.212.212 0 0 1-.293.197.21.21 0 0 1-.13-.197zM93.8 20.838V18.57a.21.21 0 0 1 .131-.198.2.2 0 0 1 .082-.014h.456a1.348 1.348 0 0 1 0 2.691h-.456a.21.21 0 0 1-.212-.212m.429-.216h.24a.92.92 0 0 0 0-1.837h-.24zM96.375 20.838V18.57a.21.21 0 0 1 .212-.212h1.256a.21.21 0 0 1 .212.212.216.216 0 0 1-.212.215h-1.044v.704h.9a.212.212 0 1 1 0 .424h-.9v.704h1.044a.215.215 0 0 1 .133.356.22.22 0 0 1-.133.073h-1.244a.213.213 0 0 1-.224-.209M100.78 18.695a1.41 1.41 0 0 1 0 1.944 1.28 1.28 0 0 1-.92.4 1.32 1.32 0 0 1-.944-.4 1.43 1.43 0 0 1 0-1.944 1.28 1.28 0 0 1 .944-.4 1.25 1.25 0 0 1 .92.4m-.052.972a1 1 0 0 0-.26-.672.84.84 0 0 0-.608-.276.83.83 0 0 0-.624.276.98.98 0 0 0-.26.672.96.96 0 0 0 .538.872.82.82 0 0 0 .954-.204 1 1 0 0 0 .26-.668"}),J__namespace.default.createElement("path",{fill:"#C7C7C7",d:"M81.322 105.144a.93.93 0 0 1-.652-.271.9.9 0 0 1-.268-.653v-1.136a.17.17 0 0 1 .176-.176.176.176 0 0 1 .176.176v1.136a.569.569 0 1 0 1.136 0v-1.136a.18.18 0 0 1 .112-.164.2.2 0 0 1 .136.001.17.17 0 0 1 .108.163v1.136a.925.925 0 0 1-.924.924M82.965 105.569v-1.8519999999999999a.17.17 0 0 1 .168-.168.17.17 0 0 1 .176.132.798.798 0 0 1 1.218.431.8.8 0 0 1-.782 1.029.73.73 0 0 1-.428-.132v.564a.18.18 0 0 1-.057.123.18.18 0 0 1-.127.049.18.18 0 0 1-.12-.054.18.18 0 0 1-.048-.122m.352-1.224a.42.42 0 0 0 .124.32.41.41 0 0 0 .604 0 .472.472 0 0 0-.136-.738.4.4 0 0 0-.164-.034.4.4 0 0 0-.304.132.43.43 0 0 0-.124.32M85.207 102.908a.176.176 0 0 1 .176.176v1.884a.176.176 0 0 1-.176.176.176.176 0 0 1-.176-.176v-1.884a.176.176 0 0 1 .176-.176M85.947 104.909a.8.8 0 0 1-.22-.564.84.84 0 0 1 .22-.56.75.75 0 0 1 .843-.177.7.7 0 0 1 .24.177.8.8 0 0 1 .225.56.8.8 0 0 1-.224.564.715.715 0 0 1-.833.177.8.8 0 0 1-.251-.177m.128-.564a.54.54 0 0 0 .116.34.43.43 0 0 0 .308.116.4.4 0 0 0 .292-.116.5.5 0 0 0 .124-.34.48.48 0 0 0-.124-.332.45.45 0 0 0-.292-.12.47.47 0 0 0-.308.12.52.52 0 0 0-.116.332M89.149 104.345v.628a.17.17 0 0 1-.152.163.17.17 0 0 1-.18-.131.742.742 0 0 1-.968-.096.8.8 0 0 1-.22-.564.8.8 0 0 1 .22-.56.73.73 0 0 1 .968-.1.169.169 0 0 1 .23-.127.17.17 0 0 1 .09.093.2.2 0 0 1 .012.066zm-.336 0a.47.47 0 0 0-.124-.328.4.4 0 0 0-.596 0 .51.51 0 0 0 0 .656.4.4 0 0 0 .296.124.43.43 0 0 0 .3-.124.47.47 0 0 0 .124-.328M91.22 104.972a.171.171 0 0 1-.154.17.172.172 0 0 1-.186-.134.8.8 0 0 1-.435.136.8.8 0 1 1 0-1.6.78.78 0 0 1 .428.132v-.6a.176.176 0 0 1 .176-.172.17.17 0 0 1 .121.051c.032.032.05.076.05.121v1.896m-.775-1.076a.4.4 0 0 0-.296.132.462.462 0 0 0 .134.734.41.41 0 0 0 .466-.098.467.467 0 0 0-.138-.735.4.4 0 0 0-.166-.033M92.084 104.686a.243.243 0 0 1 .24.24.237.237 0 0 1-.24.236.238.238 0 0 1-.168-.068.24.24 0 0 1-.068-.168.238.238 0 0 1 .236-.24M92.818 104.686a.242.242 0 0 1 .222.331.23.23 0 0 1-.13.128.26.26 0 0 1-.183 0 .24.24 0 0 1-.128-.129.242.242 0 0 1 .052-.259.24.24 0 0 1 .167-.071M93.552 104.686a.243.243 0 0 1 .24.24.24.24 0 0 1-.238.209.24.24 0 0 1-.238-.209.25.25 0 0 1 .07-.168.25.25 0 0 1 .166-.072"}),J__namespace.default.createElement("path",{fill:"#EBEBEB",d:"M111.938 107.471H62.254v3.136h49.684z"}),J__namespace.default.createElement("path",{fill:"url(#paint16_linear_53604_15544)",d:"M78.931 108.025H62.86v2.032h16.072z"}),J__namespace.default.createElement("path",{fill:"#000",d:"M66.095 108.025h-1.668l-1.568 2.028h1.668zM69.306 108.025h-1.664l-1.572 2.028h1.664zM72.525 108.025h-1.668l-1.568 2.028h1.664zM75.736 108.025h-1.668l-1.568 2.028h1.664zM78.947 108.025h-1.664l-1.572 2.028h1.664zM95.008 110.053v-.02l-.016.02z",opacity:"0.1"}),J__namespace.default.createElement("path",{fill:"url(#paint17_linear_53604_15544)",d:"m133.181 36.711-.956.948-.54.56a13 13 0 0 0-9.2-3.82 12.99 12.99 0 0 0-9.2 3.82c-.168-.176-.34-.36-.516-.536-.312-.32-.624-.632-.94-.948h-.028v-.024l.068-.056c.4-.36.8-.728 1.2-1.072.861-.699 1.8-1.295 2.8-1.776a14 14 0 0 1 3.7-1.244c.612-.112 1.232-.172 1.848-.248.212-.024 1.576-.028 1.62-.028.42.032.84.052 1.26.096 1.16.128 2.3.397 3.396.8q1.193.44 2.296 1.072c.775.445 1.509.96 2.192 1.536.34.296.672.604 1.008.908z"}),J__namespace.default.createElement("path",{fill:"url(#paint18_linear_53604_15544)",d:"m116.297 41.203-1.512-1.5a10.67 10.67 0 0 1 6.152-3.084c3.568-.484 6.632.6 9.232 3.06l-1.516 1.508a8.72 8.72 0 0 0-9.512-1.894 8.7 8.7 0 0 0-2.832 1.894z"}),J__namespace.default.createElement("path",{fill:"url(#paint19_linear_53604_15544)",d:"m127.144 42.706-1.5 1.512a4.45 4.45 0 0 0-3.162-1.316 4.45 4.45 0 0 0-3.162 1.316l-1.5-1.5a6.56 6.56 0 0 1 7.187-1.45 6.55 6.55 0 0 1 2.137 1.438"}),J__namespace.default.createElement("path",{fill:"url(#paint20_linear_53604_15544)",d:"M123.837 45.573a1.356 1.356 0 1 1-2.712-.002 1.356 1.356 0 0 1 2.712.002"}),J__namespace.default.createElement("path",{fill:"#774442",d:"m41.388 133.838-1.2 16.44c0 3.22.027 6.04.183 7.5a2.273 2.273 0 0 0 .232 1.016l.02.02c.957.656 26.664 1.536 27.572 1.264.909-.272.205-2.876-.767-3.708s-10.664-5.568-10.664-5.568l1.023-16.424z"}),J__namespace.default.createElement("path",{fill:"#EBEBEB",d:"M68.218 160.079c-.908.272-26.616-.608-27.572-1.264l-.02-.02a2.3 2.3 0 0 1-.232-1.016c-.156-1.46-.2-4.28-.184-7.496 0 0 .204-2.852.444-6.176l16.504.772-.368 5.924s9.688 4.74 10.664 5.568 1.672 3.448.764 3.708"}),J__namespace.default.createElement("path",{fill:"url(#paint21_linear_53604_15544)",d:"M68.33 160.125c-.92.268-27.032-.456-28-1.12-.368-.252-.452-9.008.072-13.444l16.816.66s-.024 4.512.18 4.616c1.652.844 9.288 4.768 10.168 5.524.98.84 1.688 3.492.764 3.764"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M67.995 159.062c-4.372-.272-22.02-.96-26.364-.9-.032 0-.036.028 0 .028 4.328.368 22 .912 26.36.944.092 0 .096-.068.004-.072M65.92 155.353a3.51 3.51 0 0 0-2.657.968 3.4 3.4 0 0 0-1.064 2.3c0 .024.048.028.052 0a4.06 4.06 0 0 1 3.668-3.2.04.04 0 0 0 .024-.01.03.03 0 0 0 .01-.024.03.03 0 0 0-.01-.024.03.03 0 0 0-.024-.01M58.438 151.164c-1.748-.092-3.804.448-4.944 1.84-.044.052.032.116.084.092 1.562-.744 3.2-1.32 4.884-1.716a.11.11 0 0 0 .041-.183.12.12 0 0 0-.065-.033M59.77 151.738c-1.748-.092-3.804.452-4.944 1.84-.044.056.032.116.084.092a24.3 24.3 0 0 1 4.88-1.716.1.1 0 0 0 .073-.038.108.108 0 0 0-.093-.178M61.098 152.321c-1.752-.092-3.804.448-4.944 1.84-.044.052.032.116.084.092a24 24 0 0 1 4.88-1.716.108.108 0 1 0-.02-.216M62.431 152.895c-1.752-.092-3.804.452-4.944 1.84-.048.056.032.116.084.092a24 24 0 0 1 4.88-1.716.109.109 0 0 0-.02-.216M43.098 147.284c-1.964-.068-2.072 2.984-.104 3.052s2.104-2.984.104-3.052"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M60.504 146.564c-.856-.768-2-.096-2.576.648a8 8 0 0 0-.708 1.1 9.5 9.5 0 0 0-.988 2.852 1.5 1.5 0 0 0-.028.228.1.1 0 0 0-.009.03q0 .017.009.03-.021.09-.032.18a.05.05 0 0 0 .018.04l.02.009a.04.04 0 0 0 .022-.001.22.22 0 0 0 .168.176.2.2 0 0 0 .068.014.2.2 0 0 0 .068-.014c.352-.224.724-.448 1.092-.668l.196-.12a9.5 9.5 0 0 0 2.448-1.928c.576-.708 1.044-1.852.232-2.576m-2.284 3.656q-.432.286-.864.56c-.288.184-.548.356-.8.548a1 1 0 0 0-.088.064l-.096.064.036-.096v-.02c.272-.68.524-1.376.848-2.04.056-.132.124-.264.192-.4q.3-.6.68-1.156c.4-.564 2.18-1.968 2.28-.056.052 1.04-1.456 2.02-2.188 2.532"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M56.547 151.542c.024-.024.032-.052 0-.076a1 1 0 0 0-.1-.096l-.036-.036-.172-.156a9.25 9.25 0 0 0-3.832-2c-.912-.216-2.224 0-2.4 1.12s.912 1.668 1.8 1.836a8.7 8.7 0 0 0 2.708 0c.636-.08 1.272-.184 1.888-.256a.2.2 0 0 0 .1-.043.212.212 0 0 0 .082-.191.2.2 0 0 0-.038-.102m-2.484.112c-.88.084-2.668.272-3.292-.576-1.124-1.552 1.132-1.6 1.8-1.404q.649.191 1.264.468 1.215.56 2.36 1.248l.084.048a.4.4 0 0 0-.092 0h-.264c-.616.076-1.228.156-1.86.216"}),J__namespace.default.createElement("path",{fill:"#37474F",d:"m40.176 143.154 18.4.756s.848-25.664.44-36.46c-.444-11.728-5.48-46.62-5.48-46.62h-15.2s3.884 35.028 3.968 46.76c.056 10.876-2.128 35.564-2.128 35.564"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M50.528 60.83 41.4 92.43c-1.08-14.948-3.084-31.6-3.084-31.6z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"m41.2 62.553.967 10.4.892 10.42c.572 6.952 1.116 13.904 1.528 20.868.104 1.744.164 3.492.14 5.24s-.108 3.492-.196 5.232a424 424 0 0 1-.672 10.444c-.264 3.476-1.236 13.716-1.236 13.716s.704-10.26.932-13.736.456-6.96.616-10.44c.084-1.74.148-3.48.176-5.22s-.048-3.472-.152-5.2c-.38-6.96-.932-13.912-1.436-20.868zM57.98 140.462c-2.8-.192-2-.176-4.8-.336-1.373-.076-10.4-.58-11.689-.428-.028 0-.032.052 0 .056 1.272.272 10.3.62 11.676.672 2.8.104 2 .044 4.8.116h.016l.014-.007.01-.012a.03.03 0 0 0 .006-.015v-.015l-.007-.015-.012-.01z"}),J__namespace.default.createElement("path",{fill:"#774442",d:"m12.19 124.521-8.4 14.192c-1.448 2.872-2.668 5.416-3.176 6.8v.024a2.2 2.2 0 0 0-.236.992l-.003.014q0 .008.003.014c.56 1.012 23.2 13.256 24.116 13.416s1.468-2.484.968-3.66-7.068-9.74-7.068-9.74l8.236-14.244z"}),J__namespace.default.createElement("path",{fill:"#EBEBEB",d:"M24.512 159.969c-.936-.16-23.556-12.4-24.12-13.416a2.239 2.239 0 0 1 .232-1.02.1.1 0 0 1 0-.024c.512-1.376 1.728-3.92 3.176-6.8l3.148-5.332 14.432 8.044-2.968 5.14s6.56 8.56 7.064 9.736-.032 3.836-.964 3.672"}),J__namespace.default.createElement("path",{fill:"url(#paint22_linear_53604_15544)",d:"M24.597 160.056c-.948-.168-24-12.452-24.572-13.48-.22-.4 3.6-8.264 6.052-12l14.764 8.084s-2.032 4.024-1.896 4.208c1.104 1.492 6.192 8.4 6.644 9.476.5 1.192-.048 3.876-.992 3.712"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M24.764 158.96c-3.788-2.192-19.284-10.672-23.2-12.552-.032 0-.044 0 0 .024 3.712 2.256 19.276 10.612 23.2 12.592.048.04.08-.004 0-.064M24.565 154.712a3.5 3.5 0 0 0-1.367-.45 3.5 3.5 0 0 0-1.433.134c-.84.26-1.547.833-1.976 1.6 0 .024.028.048.044.024a4.065 4.065 0 0 1 4.716-1.24.04.04 0 0 0 .026-.004.04.04 0 0 0 .016-.022.04.04 0 0 0-.004-.026.04.04 0 0 0-.022-.016M19.73 147.629c-1.524-.86-3.6-1.292-5.244-.556-.064.028-.024.12.036.12 1.728.025 3.449.235 5.132.628a.1.1 0 0 0 .065-.016.11.11 0 0 0 .047-.12.1.1 0 0 0-.036-.056M20.666 148.739c-1.524-.864-3.6-1.292-5.248-.556-.064.028 0 .116.036.12 1.73.027 3.452.241 5.136.636a.11.11 0 0 0 .125-.067.107.107 0 0 0-.05-.133M21.6 149.847c-1.527-.86-3.6-1.292-5.247-.556-.064.032-.024.12.036.12a24.4 24.4 0 0 1 5.132.64q.038.007.074-.013a.1.1 0 0 0 .049-.056.11.11 0 0 0-.043-.135M22.531 150.961c-1.524-.86-3.6-1.292-5.248-.556-.06.028 0 .12.04.12 1.729.029 3.45.243 5.132.64a.11.11 0 0 0 .14-.064.108.108 0 0 0-.064-.14M7.74 137.326c-1.729-.936-3.2 1.748-1.457 2.684s3.188-1.748 1.456-2.684"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M23.628 144.43c-.424-1.072-1.748-.976-2.592-.568a8 8 0 0 0-1.14.672 9.4 9.4 0 0 0-2.156 2.112q-.072.089-.128.188a.1.1 0 0 0-.022.022.1.1 0 0 0-.01.03q-.047.063-.084.132a.042.042 0 0 0-.004.041.1.1 0 0 0 .012.018l.02.009a.23.23 0 0 0 .076.232.2.2 0 0 0 .059.036q.034.011.069.008c.4-.044.848-.08 1.276-.112h.228a9.7 9.7 0 0 0 3.064-.632c.8-.364 1.74-1.18 1.332-2.188m-3.664 2.236-1.02.12c-.328.036-.652.072-.972.128a.5.5 0 0 0-.108 0h-.116a1 1 0 0 0 .076-.072c.548-.488 1.08-1 1.668-1.448.108-.096.228-.184.348-.272q.538-.404 1.124-.732c.612-.32 2.828-.8 2.064.968-.404.992-2.188 1.196-3.064 1.308"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M17.873 147.129c.032 0 .048-.032.04-.064l-.048-.132v-.048a.03.03 0 0 0 0-.02l-.084-.216a9.25 9.25 0 0 0-2.536-3.508c-.72-.6-2-1.004-2.652-.068s.076 1.9.8 2.444a8.7 8.7 0 0 0 2.428 1.2c.604.212 1.2.4 1.804.608a.217.217 0 0 0 .248-.196m-2.276-1.008c-.828-.32-2.512-.944-2.692-2-.312-1.888 1.724-.916 2.24-.452q.493.46.92.98a25 25 0 0 1 1.616 2.256l-.088-.032a2 2 0 0 0-.244-.104c-.576-.216-1.164-.42-1.752-.648"}),J__namespace.default.createElement("path",{fill:"#37474F",d:"M51.96 60.815c-.068.312-1.128 5.243-2.232 9.48-.8 3.091-1.624 5.811-2.096 6.095-.536.316-3.148 1.472-4.02 1.836 0 0-5.872 29.3-8.968 38.4-2.86 8.4-10.94 24.4-10.94 24.4l-16.692-9.208s9.176-15.8 10.584-19.884c2.184-6.324 10.372-37.2 10.372-37.2s-.064-9.668 3.2-13.892z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M24.415 137.215c-2.452-1.372-1.72-.996-4.196-2.356-1.2-.656-9.152-4.968-10.4-5.38-.028 0-.052.032-.028.048 1.036.8 9.048 4.964 10.268 5.6 2.496 1.296 1.792.896 4.3 2.164q.016.01.035.008a.05.05 0 0 0 .031-.018.05.05 0 0 0 .009-.036.05.05 0 0 0-.019-.03M32.371 72.02c.472-.12.972-.16 1.452-.235.4-.06.776-.128 1.156-.212a5.05 5.05 0 0 0 2.04-.86c.664-.516 1.004-1.3 1.324-2.056.192-.448.4-.892.588-1.336q.143-.32.292-.64.203-.378.364-.776c0-.036.072 0 .056 0q-.098.273-.164.556c-.064.216-.124.432-.192.648-.12.4-.236.768-.36 1.152a9.1 9.1 0 0 1-.82 2c-.708 1.128-1.976 1.6-3.244 1.744-.36.044-.728.072-1.092.092q-.691.06-1.384 0c-.068.04-.092-.056-.016-.076M49.015 75.717a34 34 0 0 0-5.38 2.503c-.068.036-.024.144.048.112 1.816-.78 3.664-1.524 5.428-2.4a.12.12 0 0 0-.096-.216M49.562 63.3c0-.063-.112-.075-.112 0 0 2.153-.124 4.045-.304 6.057-.084.932-.836 6.092-2.456 5.716-.268-.064-.4-.328-.452-.74a6.7 6.7 0 0 1 .216-1.58c.18-1.08.324-2.164.4-3.256.19-2.032.17-4.077-.064-6.104a.052.052 0 1 0-.104 0 56 56 0 0 1-.48 8.428c-.2 1.344-.876 3.364.528 3.568s2.352-3.172 2.528-4.1c.446-2.639.547-5.324.3-7.988"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M46.731 75.203a8 8 0 0 0-.364 1.068c-.104.281-.155.58-.152.88 0 .056.084.06.112.024.17-.264.296-.553.376-.856.124-.332.256-.66.368-.992a.18.18 0 0 0-.108-.232.18.18 0 0 0-.195.048.2.2 0 0 0-.037.06M11.168 129.507c2.444-4.6 6.284-11.78 7.472-14.056a41 41 0 0 0 2.716-7.028 478 478 0 0 0 4.296-14.8A457 457 0 0 0 29.46 78.68c.3-1.248.624-2.5.864-3.764a11.5 11.5 0 0 0 0-3.852 12.4 12.4 0 0 1-.028-3.6 24 24 0 0 1 .84-3.504c.188-.604.4-1.2.6-1.804.024-.064.128-.036.108.032-.74 2.424-1.496 4.872-1.34 7.436.076 1.232.4 2.444.4 3.684a18 18 0 0 1-.624 3.64 455 455 0 0 1-8.032 29.928c-.728 2.4-1.408 4.848-2.444 7.14s-4.948 9.332-7.576 13.804q-.495.86-1.004 1.704c-.02.056-.076.02-.056-.016"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M43.717 35.134c5.24 2.876 14.168 8.188 17.792 8.608 2.8.328 15.956-8.4 19.924-11.816 1.2-1.044-5.62-8.544-7.008-7.548-3.828 2.76-14.188 9.256-14.652 9.34-1.712.3-8.572-1.6-14.672-2.76-6.804-1.308-3.924 2.784-1.384 4.176"}),J__namespace.default.createElement("path",{fill:"#C7C7C7",d:"m53.24 41.103 4.145-7.684s-10.252-3.2-14.876-2.8-1.764 2.856.58 4.468 10.152 6.016 10.152 6.016"}),J__namespace.default.createElement("path",{fill:"url(#paint23_linear_53604_15544)",d:"m53.24 41.103 4.145-7.684s-10.252-3.2-14.876-2.8-1.764 2.856.58 4.468 10.152 6.016 10.152 6.016"}),J__namespace.default.createElement("path",{fill:"#fff",d:"m57.376 33.421-.036.064a4 4 0 0 0-.292-.12 5 5 0 0 0-.444-.168l-.452-.144c-.152-.044-.308-.072-.464-.108l-.232-.056-.236-.032a8.4 8.4 0 0 0-3.756.28c-1.21.386-2.365.924-3.44 1.6-.852.512-1.668 1.072-2.484 1.636l-.124.084-.084.056-.156-.096c.032 0 .06-.04.092-.06l.124-.084c.836-.572 1.676-1.148 2.552-1.668a15 15 0 0 1 3.484-1.6 8.6 8.6 0 0 1 3.696-.264c1.06.292 1.828.52 2.124.612zm-2.74 4.712c-1.128.364-2.22.8-3.316 1.252l-.656.256.192.108.528-.208c1.096-.44 2.184-.896 3.3-1.264l.096-.032.1-.188zm-9.096-1.76-.148-.1a4.6 4.6 0 0 0-1.276-.62l-.284-.068.4.252q.55.198 1.04.52l.148.1q.157.108.308.228c.1.08.192.152.284.236l.544.324a8.4 8.4 0 0 0-1.016-.876z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M51.72 39.871c.48-1.124 1.108-2.2 1.688-3.276s1.268-2.164 1.884-3.252c0-.032.072 0 .056.028-.56 1.096-1.072 2.212-1.676 3.284a35 35 0 0 1-1.924 3.232s-.036 0-.028-.016"}),J__namespace.default.createElement("path",{fill:"#000",d:"m55.367 37.153-2.128 3.952s-7.808-4.4-10.152-6c-1.428-.984-3.048-2.284-3.048-3.236z",opacity:"0.1"}),J__namespace.default.createElement("path",{fill:"url(#paint24_linear_53604_15544)",d:"M28.662 63.845c.064.068 25-.372 25.236-.648.328-.4-3.156-23.632-6.676-29.832-1.68-2.968-6.284-4.544-8.968.048-6.408 10.984-9.812 30.188-9.592 30.432"}),J__namespace.default.createElement("path",{fill:"#fff",d:"M53.87 62.35h-.831c-.16 0-.32 0-.48-.024l-.476-.06a5 5 0 0 1-.472-.092 8 8 0 0 1-.928-.244c-.3-.112-.6-.212-.892-.352s-.572-.28-.86-.424a6 6 0 0 1-.8-.496c-.248-.18-.528-.36-.8-.544s-.512-.4-.76-.584-.572-.472-.852-.72a1 1 0 0 1-.1-.092 56 56 0 0 1-1.884-1.756c-.92-.88-1.832-1.776-2.832-2.56a10.6 10.6 0 0 0-1.58-1.044 4 4 0 0 0-.344-.164 1 1 0 0 0-.164-.072 4.7 4.7 0 0 0-1.276-.344c-.156 0-.312-.024-.468-.028h-.476a5 5 0 0 0-.476 0l-.472.048-.236.028-.232.04-.484.152c-.304.088-.616.152-.912.268a8 8 0 0 0-.4.148q-.091.03-.176.072c-.4.164-.8.356-1.168.552-.532.268-1.068.536-1.628.756l.024-.1c.532-.216 1.044-.48 1.56-.744.356-.184.712-.364 1.08-.52l.168-.076q.247-.108.5-.192c.3-.12.612-.188.92-.28l.472-.092.236-.044.24-.028.476-.056c.16 0 .32 0 .48-.024h.48c.164 0 .324 0 .488.024a5 5 0 0 1 1.372.372l.156.076c.104.044.204.096.304.148q.848.465 1.6 1.072c1.004.8 1.908 1.704 2.82 2.592.636.62 1.272 1.236 1.932 1.824l.1.092q.384.343.78.668.732.615 1.536 1.132c.264.176.544.328.8.492s.564.296.86.4.588.232.888.34q.454.144.92.24c.156.024.308.068.468.084l.472.056c.156 0 .316 0 .476.024h.476c.116 0 .228 0 .344-.02q.018.037.032.076m-.755-5.536-.064.036a16.4 16.4 0 0 1-3.236 1.388c-1.13.332-2.3.505-3.476.512h-.724a12.7 12.7 0 0 1-2.764-.444 15 15 0 0 1-1.672-.568 18 18 0 0 1-1.6-.748c-.964-.496-1.884-1.068-2.8-1.64l-.148-.092-.096-.06a28 28 0 0 0-3.088-1.744h-.04a1 1 0 0 0-.14-.06 8.6 8.6 0 0 0-2.296-.676 1 1 0 0 0-.036.14q.404.056.8.152.696.152 1.36.408l.132.056.16.068q1.6.75 3.096 1.696l.072.044.152.088c.936.568 1.872 1.136 2.848 1.632a21 21 0 0 0 1.6.748q.82.341 1.676.58a12.7 12.7 0 0 0 2.88.476h.624c1.187.002 2.37-.161 3.512-.484a15.8 15.8 0 0 0 3.272-1.372zm-1.5-8.292c-.272-.124-.548-.22-.828-.32a9 9 0 0 0-.928-.248c-.16-.028-.312-.072-.472-.088l-.476-.06c-.16-.02-.32 0-.48-.028h-.48a8.5 8.5 0 0 0-3.696.948 14.7 14.7 0 0 0-3.136 2.196c-.764.672-1.484 1.392-2.196 2.104l-.112.112-.444.444c-.568.564-1.14 1.132-1.744 1.66a12.223 12.223 0 0 1-1.1.86 7.4 7.4 0 0 1-1.656.9 4.8 4.8 0 0 1-1.844.308 7.5 7.5 0 0 1-1.868-.26l-.244-.076c0 .044-.02.088-.028.132l.232.076c.62.172 1.26.268 1.904.284h.728l.24-.04.24-.04c.08 0 .156-.04.236-.06l.232-.064c.08-.024.152-.056.228-.084a7.5 7.5 0 0 0 1.696-.92q.565-.4 1.084-.856l.068-.056.324-.328c.472-.432.928-.88 1.38-1.332l.488-.492.104-.108c.7-.704 1.4-1.408 2.14-2.064a15.2 15.2 0 0 1 3.092-2.204 8.45 8.45 0 0 1 3.64-.968h.476c.16 0 .316 0 .476.024l.472.056c.156 0 .312.056.468.084q.465.095.92.236c.296.108.588.204.872.336zM47.85 34.654c-.844.508-1.652 1.06-2.46 1.6l-.124.084-.52.356c-1.03.743-2.12 1.4-3.256 1.964-.204.096-.4.18-.624.26l-.128.048q-.51.184-1.044.276a4.9 4.9 0 0 1-1.868-.04 7.4 7.4 0 0 1-1.788-.596 5 5 0 0 1-.308-.168c0 .04-.036.08-.052.12q.145.09.296.168a7.5 7.5 0 0 0 1.82.628l.236.052.244.032.24.032h.484l.244-.02h.244c.08 0 .156-.028.236-.04q.614-.104 1.2-.32l.132-.052q.265-.101.524-.22.871-.405 1.684-.92a36 36 0 0 0 1.6-1.056l.572-.4.124-.084c.78-.536 1.56-1.076 2.372-1.568zm1.784 5.352q-.343.119-.692.22l-.1.028q-.433.128-.872.22a7.6 7.6 0 0 1-3.476 0 9.3 9.3 0 0 1-3.248-1.284 3 3 0 0 1-.212-.144l-.168-.112a25 25 0 0 0-2.52-1.772 8.6 8.6 0 0 0-1.644-.704h-.052v.028l.068.02c.276.104.552.204.824.324q.41.18.8.4 1.273.797 2.432 1.752l.164.116c.092.068.184.128.28.192a9.5 9.5 0 0 0 3.28 1.336 7.7 7.7 0 0 0 3.544 0q.476-.1.94-.236l.1-.028q.319-.096.632-.204c-.048-.044-.064-.1-.08-.152m.496 1.896-.636-.924-.428-.604-.104-.148c-.56-.8-1.128-1.576-1.764-2.312q-.624-.736-1.372-1.344a4 4 0 0 0-.268-.204l-.148-.1a4.6 4.6 0 0 0-1.276-.62l-.472-.116-.476-.068c-.156-.02-.316-.052-.476-.064l-.48-.036h-.96q-.481.03-.956.108-.948.16-1.864.452c-.576.176-1.156.34-1.748.464l-.032.064v.028h.064a21 21 0 0 0 1.756-.448q.91-.285 1.852-.44.47-.072.944-.096h.712l.24.02.472.036c.156 0 .312.044.472.068l.468.072.456.112c.424.135.828.328 1.2.572l.148.1q.157.108.308.228.742.596 1.364 1.316c.628.716 1.2 1.484 1.756 2.26l.104.148.452.628.8 1.092a.7.7 0 0 1-.108-.244"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M45.546 35.329c-1.104.132-3.56-1.776-4.588-3.46-.068-.116.052-1.372.132-2.908.04-.932.068-1.968.024-2.916l6.02 1.168a15 15 0 0 0-.4 3.668q.01.202.056.4a.3.3 0 0 1 0 .064c.164.72.488 3.78-1.244 3.984"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M41.098 28.697c1.288 1.736 3.2 3.404 5.764 3.008 0-.156-.04-.284-.06-.372a.4.4 0 0 1 0-.064 1.7 1.7 0 0 1-.06-.4 15.2 15.2 0 0 1 .4-3.672l-6-1.164a42 42 0 0 1-.044 2.664"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M39.52 19.27c-.54 2.145.872 8.185 2.44 9.469 2.272 1.864 5.844 1.88 7.388-.8 1.5-2.616-.48-10.456-2.216-11.6-2.56-1.72-6.812-.228-7.612 2.932"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M45.496 22.361s-.028.028-.02.044c.12.4.196.88-.132 1.112v.024c.436-.188.332-.82.152-1.18"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M45.02 22.04c-.66.128-.356 1.444.256 1.323.612-.12.3-1.431-.256-1.323M47.898 21.717s.036 0 .036.028c.084.4.248.868.648.916v.024c-.476.04-.684-.564-.684-.968"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M48.15 21.207c.64-.204 1 1.096.4 1.284s-.94-1.116-.4-1.284M44.36 21.56q.243-.138.468-.3c.18-.117.332-.189.4-.4a.3.3 0 0 0-.124-.329.71.71 0 0 0-.712.092c-.226.126-.397.331-.48.576a.304.304 0 0 0 .448.36M48.483 20.587h-.552a.9.9 0 0 1-.564-.125.29.29 0 0 1-.064-.34.71.71 0 0 1 .656-.291c.258-.01.511.076.708.244a.303.303 0 0 1-.184.512"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M46.143 24.907a1.4 1.4 0 0 0 1.068.4 1.8 1.8 0 0 0 .596-.128l.088-.032a.11.11 0 0 0 .06-.112.2.2 0 0 0 0-.044v-.036c-.064-.316-.208-.8-.208-.8.128.028.772.156.728 0a21.6 21.6 0 0 0-1.516-4.064c-.024-.044-.088 0-.072.024.328 1.3.888 2.532 1.24 3.832a2.4 2.4 0 0 0-.7-.044c-.044.024.288.9.308 1.044a1.98 1.98 0 0 1-1.54-.108c-.06.008-.084.04-.052.068"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M47.498 25.1c-.12.264-.307.493-.54.665a.8.8 0 0 1-.444.131c-.344 0-.424-.308-.424-.576q.002-.215.056-.424c.418.21.89.281 1.352.204"}),J__namespace.default.createElement("path",{fill:"#FF99BA",d:"M46.958 25.764a.8.8 0 0 1-.444.132c-.344 0-.424-.308-.424-.576a.8.8 0 0 1 .868.444"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M39.895 24.4c-.236-.525-2.552-6.205-2.496-6.873.052-.608.732-.468.736-.5s-.06-.572.24-.824a.92.92 0 0 1 .72-.096s0-.58.344-.8a.72.72 0 0 1 .716.044.95.95 0 0 1 .46-.76.62.62 0 0 1 .724.156s.068-.56.42-.72.736.188.736.188.128-.52.576-.596a.72.72 0 0 1 .696.4s.192-.512.612-.588.644.424.644.424.1-.492.5-.524.58.512.58.512a.4.4 0 0 1 .516-.36c.752.12 1.636 3.816 2.028 5.276 0 0-.464-1.076-.772-1.056s-.46.54-1.008.752c-.78.3-2.268-.44-3.344-.032s-1.672 1.656-1.8 3.412c-.164 1.984-1.28 3.808-1.828 2.564"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M41.067 24.174s-1.512-1.872-2.372-1.32.372 3.336 1.448 3.652a1.065 1.065 0 0 0 1.388-.672z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M39.07 23.643v.028c.756.248 1.2.904 1.512 1.6a.59.59 0 0 0-.896-.1.024.024 0 0 0 .011.034q.006.002.013.002a.66.66 0 0 1 .74.18q.232.258.4.56c.04.064.156 0 .124-.052-.072-.964-.892-2.228-1.904-2.252M47.167 32.162h-.02c.26 1.152.8 3.844-1.068 3.972a3.94 3.94 0 0 1-2.124-.66 10.5 10.5 0 0 1-1.808-1.324 15.6 15.6 0 0 1-1.768-1.788c-.02-.028-.064 0-.04.04.548.64 1.028 1.324 1.64 1.916a9 9 0 0 0 1.952 1.472 3.96 3.96 0 0 0 2.252.616 1.496 1.496 0 0 0 1.32-1.352 6.6 6.6 0 0 0-.336-2.892M103.959 23.126l-56.076 5.231 4.173 44.734 56.077-5.231z"}),J__namespace.default.createElement("path",{fill:"#fff",d:"m71.449 57.323-1.476-15.856 17.032 6.408zM53.92 30.075l-3.318.31.217 2.334 3.318-.31zM54.365 34.814l-3.318.309.218 2.334 3.317-.31zM54.802 39.544l-3.318.31.218 2.333 3.318-.31zM55.247 44.278l-3.317.31.217 2.334 3.318-.31zM55.685 49.017l-3.318.31.218 2.333 3.318-.31zM56.126 53.747l-3.317.31.217 2.334 3.318-.31zM56.568 58.485l-3.318.31.218 2.334 3.317-.31zM57.009 63.22l-3.318.31.218 2.333 3.318-.31zM57.454 67.95l-3.317.31.218 2.334 3.317-.31zM101.657 25.622l-3.317.31.218 2.334 3.317-.31zM102.103 30.353l-3.318.31.218 2.333 3.317-.31zM102.54 35.09l-3.317.31.217 2.334 3.318-.31zM102.982 39.825l-3.318.31.218 2.334 3.317-.31zM103.423 44.56l-3.318.31.218 2.333 3.318-.31zM103.868 49.294l-3.317.31.218 2.333 3.317-.31zM104.31 54.028l-3.318.31.218 2.334 3.318-.31zM104.751 58.767l-3.317.31.217 2.333 3.318-.31zM105.193 63.501l-3.318.31.218 2.333 3.317-.31z"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M42.93 38.137c1.083 3.136 5.3 15.848 5.927 16.424 2.532 2.336 8.908 6.432 9.684 7.28 1.064 1.156-3.72 8.284-5.392 8.084-.692-.08-9.2-5.692-11.864-8.444-2.128-2.22-3.236-16.4-3.3-23.008-.056-5.66 2.848-6.416 4.944-.336"}),J__namespace.default.createElement("path",{fill:"url(#paint25_linear_53604_15544)",d:"m38.116 49.176 8.728-.584s-2.76-10.372-5.552-14.08-3.352.024-3.476 2.868.3 11.796.3 11.796"}),J__namespace.default.createElement("path",{fill:"#fff",d:"M46.697 48.006a8.3 8.3 0 0 0-2.204.744h-.312a1 1 0 0 1 .088-.048 8.8 8.8 0 0 1 2.4-.8c-.004.04.028.072.028.104m-3.564-10.224q-.79.49-1.628.888c-.204.096-.4.18-.624.26l-.128.048q-.511.182-1.044.276a4.9 4.9 0 0 1-1.868-.04h-.032v.16l.236.052.244.032.24.032h.484l.244-.02h.244c.08 0 .156-.028.236-.04q.614-.105 1.2-.32l.132-.052q.265-.101.524-.22a15 15 0 0 0 1.628-.888zm1.084 2.624a9 9 0 0 1-2.956-1.22 3 3 0 0 1-.212-.144l-.168-.112a25 25 0 0 0-2.52-1.772 8 8 0 0 0-.504-.26v.08q.243.11.472.248 1.273.796 2.432 1.752l.164.116c.092.068.184.128.28.192a9.2 9.2 0 0 0 3.084 1.288c-.04-.056-.06-.112-.084-.168zm-2.348-5.06h-.604q-.481.03-.956.108-.95.16-1.864.452l-.524.156a1 1 0 0 0 0 .1l.56-.16q.91-.285 1.852-.44.469-.072.944-.096h.672z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M38.347 47.231c1.2-.188 2.456-.232 3.676-.312s2.504-.076 3.756-.132c.036 0 .04.06 0 .064-1.224.108-2.444.264-3.672.328a36 36 0 0 1-3.76.084s-.016-.028 0-.032"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M37.443 41.82q.132.792.276 1.577c0-1.092 0-2.188.024-3.28 0-.028.048-.028.048 0 .116 1.52.184 3.048.236 4.568s.148 2.948.096 4.4l.328.024q.019 0 .031.013a.044.044 0 0 1 0 .062.04.04 0 0 1-.03.013l-.4.052a.08.08 0 0 1-.064-.016.08.08 0 0 1-.033-.056c-.18-1.508-.188-3.06-.22-4.576v-.744q-.242-1.007-.364-2.036a.04.04 0 0 1 .015-.017.04.04 0 0 1 .057.017M46.521 48.618l.32-.049-.024.033c-.248-.644-.468-1.296-.692-1.944s-.424-1.312-.624-1.973c-.2-.66-.4-1.32-.564-2s-.352-1.332-.492-2c.256.64.484 1.288.704 1.94q.33.98.636 1.968c.204.66.4 1.316.576 2s.356 1.332.508 2v.032h-.356z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M45.2 41.42c.166.646.203 1.32.108 1.98a4.9 4.9 0 0 1-.108-1.98"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M62.735 65.821c-.4-.528-.112-.736 1.012-.42s5.3 2.512 5.944.992-5.296-4.54-7.2-4.92-5.132-.328-5.132-.328c1.032.804 3.36 3.028 5.376 4.676"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M52.2 69.383c3.007 2.672 6.615 5.12 10.8 5.54.462.057.932-.043 1.331-.284 1.872.22 2.54-.596 2.54-.596 1.804-.328 2.372-1.26 2.372-1.26s1.524 0 1.6-1.072-2.352-1.868-4.084-2.96c-3.96-2.496-8.332-6.8-9.4-7.624z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M61.33 69.42a30 30 0 0 0 3.6 2c1.397.55 2.833.995 4.296 1.332q.016 0 .025.01a.036.036 0 0 1 0 .052.04.04 0 0 1-.025.01 15.9 15.9 0 0 1-7.908-3.344c-.072-.06-.048-.1.012-.06M59.473 71.587c1.2.628 3.28 1.72 7.408 2.4v.024a14.3 14.3 0 0 1-7.432-2.38c-.076-.032-.052-.084.024-.044M58.503 72.77c2.056.996 3.48 1.36 5.828 1.856v.028c-2.724-.288-3.68-.7-5.868-1.816-.08-.04-.044-.104.04-.068"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M73.36 24.118c1.503-.72 3.367-2.528 4.595-2.68a1.42 1.42 0 0 1 1.508.8s.604-1.228 1.744-1.2c.588.024 1.064.98 1.064.98a1.69 1.69 0 0 1 1.54-.86c.8.08 1.164 1.028 1.164 1.028s.94-.688 1.732-.344c1.6.704 1.636 7.648-.916 8.732-1.2.504-1.108-1.2-1.108-1.2s-.708 2.4-2.14 2.452-1.2-2.156-1.2-2.156-.712 2.332-2.2 2.228c-1.552-.112-.928-2.268-.928-2.268s-1.044 1.548-2.164 1.2c-1.852-.568.464-3.5.092-5.024l-2.52-.832z"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M75.546 22.72c-1.484.557-3.324-1.275-4.82-.943-2 .448-.028 2.716 2.912 3.2h2.352z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M85.053 22.322c0-.024.032-.028.036 0a12.04 12.04 0 0 1-.4 7.156c-.028.072-.16.056-.14-.028a24.6 24.6 0 0 0 .504-7.128M82.298 21.982c0-.029.04-.032.048 0 .634 2.62.308 5.38-.92 7.78-.044.084-.168.111-.124 0 .748-1.66 1.188-5.544.996-7.78M78.076 29.779c1.172-2.356 1.476-4.852 1.416-7.464 0-.032.048-.032.056 0 .376 1.268.24 2.936.024 4.224a6.94 6.94 0 0 1-1.416 3.288c-.028.032-.108-.008-.08-.048"}),J__namespace.default.createElement("defs",null,J__namespace.default.createElement("linearGradient",{id:"paint0_linear_53604_15544",x1:"152.46",x2:"152.46",y1:"72.174",y2:"134.522",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint1_linear_53604_15544",x1:"149.607",x2:"149.607",y1:"72.299",y2:"118.379",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint2_linear_53604_15544",x1:"164.993",x2:"164.993",y1:"92.424",y2:"140.344",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint3_linear_53604_15544",x1:"165.549",x2:"165.549",y1:"92.115",y2:"123.707",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint4_linear_53604_15544",x1:"145.795",x2:"145.795",y1:"103.779",y2:"139.058",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint5_linear_53604_15544",x1:"143.849",x2:"143.849",y1:"103.607",y2:"125.519",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint6_linear_53604_15544",x1:"87.088",x2:"87.088",y1:"5.131",y2:"28.495",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint7_linear_53604_15544",x1:"114.852",x2:"114.852",y1:"96.678",y2:"97.678",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint8_linear_53604_15544",x1:"87.098",x2:"87.098",y1:"97.279",y2:"97.679",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint9_linear_53604_15544",x1:"59.348",x2:"59.348",y1:"96.678",y2:"97.678",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint10_linear_53604_15544",x1:"59.048",x2:"59.048",y1:"55.166",y2:"95.086",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint11_linear_53604_15544",x1:"59.348",x2:"59.348",y1:"52.709",y2:"53.709",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint12_linear_53604_15544",x1:"87.098",x2:"87.098",y1:"52.709",y2:"53.109",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint13_linear_53604_15544",x1:"114.852",x2:"114.852",y1:"52.709",y2:"53.709",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint14_linear_53604_15544",x1:"115.153",x2:"115.153",y1:"55.166",y2:"95.086",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint15_linear_53604_15544",x1:"87.119",x2:"87.119",y1:"63.322",y2:"86.258",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint16_linear_53604_15544",x1:"70.895",x2:"70.895",y1:"108.025",y2:"110.057",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint17_linear_53604_15544",x1:"122.495",x2:"122.495",y1:"32.287",y2:"38.219",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint18_linear_53604_15544",x1:"122.477",x2:"122.477",y1:"36.506",y2:"41.203",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint19_linear_53604_15544",x1:"122.482",x2:"122.482",y1:"40.764",y2:"44.218",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint20_linear_53604_15544",x1:"122.481",x2:"122.481",y1:"44.217",y2:"46.929",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint21_linear_53604_15544",x1:"54.396",x2:"54.396",y1:"145.561",y2:"160.182",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint22_linear_53604_15544",x1:"12.897",x2:"12.897",y1:"134.576",y2:"160.063",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint23_linear_53604_15544",x1:"48.712",x2:"48.712",y1:"30.584",y2:"41.103",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint24_linear_53604_15544",x1:"41.286",x2:"41.286",y1:"30.525",y2:"63.852",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint25_linear_53604_15544",x1:"42.318",x2:"42.318",y1:"32.959",y2:"49.176",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"}))));function DN({onSelectVideo:e,fileInputRef:t,handleMediaUpload:o}){let{translate:r}=Oe();return J__namespace.default.createElement("div",{className:"flex flex-col items-center mt-32 lg:mt-0 justify-center text-center py-8"},J__namespace.default.createElement("div",{className:"mb-4 lg:mb-6"},J__namespace.default.createElement(TN,null)),J__namespace.default.createElement("p",{className:"text-xs lg:text-sm font-medium mb-4 lg:mb-8"},r("feed.create-post.reel.upload-prompt.title")),J__namespace.default.createElement(le,{className:"bg-primary hover:bg-primary/90 text-white px-8 py-2 lg:py-6 rounded-lg text-sm lg:text-base",onClick:e},r("feed.create-post.reel.upload-prompt.button")),J__namespace.default.createElement("input",{type:"file",ref:t,className:"hidden",accept:"video/*",onChange:n=>o(n.target.files)}))}var LN=({value:e,onChange:t,className:o})=>{let{translate:r}=Oe(),n=J.useRef(null),a=()=>{let s=n.current;s&&(s.style.height="80px",s.style.height=`${Math.min(s.scrollHeight,320)}px`);};return J.useEffect(()=>{a();},[e]),J__namespace.default.createElement("textarea",{ref:n,value:e,onChange:s=>t(s.target.value),onInput:a,placeholder:r("feed.create-post.add-description"),className:`w-full pt-4 text-gray-700 resize-none border-none focus:outline-none focus:ring-0 min-h-[80px] max-h-[320px] overflow-y-auto ${o}`,style:{height:"80px",maxHeight:"320px"}})};function FN({videoUrl:e,content:t,setContent:o,onSummarize:r,onPublish:n,onDelete:a}){let{translate:s}=Oe();return J__namespace.default.createElement("div",{className:"space-y-4 flex flex-col min-h-[78dvh] lg:min-h-0"},J__namespace.default.createElement(LN,{value:t,onChange:o}),J__namespace.default.createElement("div",{className:"flex-1 lg:flex-none"},J__namespace.default.createElement("div",{className:"relative rounded-lg overflow-hidden"},J__namespace.default.createElement("div",{className:"aspect-video w-full"},J__namespace.default.createElement("video",{src:e,className:"w-full h-full object-cover",controls:true})),J__namespace.default.createElement(le,{variant:"ghost",size:"icon",className:"absolute top-3 right-3 bg-black/50 hover:bg-black/70 text-white rounded-full h-10 w-10",onClick:a},J__namespace.default.createElement(lucideReact.Trash2,{className:"h-5 w-5"})))),J__namespace.default.createElement("div",{className:"flex items-center justify-between pt-4"},J__namespace.default.createElement(r4,{isForReels:true}),J__namespace.default.createElement("div",{className:"flex gap-3"},J__namespace.default.createElement(le,{variant:"outline",className:"bg-[#e6f4fb] border border-[#0b89ce] text-primary hover:bg-[#d6eef9] px-6",onClick:r},J__namespace.default.createElement(lucideReact.Sparkles,{className:"h-4 w-4 mr-2 fill-[#0b89ce]"}),s("feed.create-post.buttons.resume")),J__namespace.default.createElement(le,{className:"hidden lg:block bg-primary hover:bg-primary/90 text-white px-8",onClick:n},s("feed.create-post.buttons.publish")))))}function l4({onSubmit:e}){let{uploadedMedia:t,handleMediaUpload:o,resetForm:r}=zt(),n=J.useRef(null),{content:a,setContent:s}=zt(),i=()=>{var c;(c=n.current)==null||c.click();},l=()=>{e({content:a,media:t}),r(),s("");},d=()=>{s("V\xEDdeo sobre reuni\xE3o de trabalho com discuss\xE3o de documentos importantes.");};return J__namespace.default.createElement("div",{className:"lg:px-0 px-4 py-4"},t.length===0?J__namespace.default.createElement(DN,{onSelectVideo:i,fileInputRef:n,handleMediaUpload:o}):J__namespace.default.createElement(FN,{videoUrl:t[0],content:a,setContent:s,onSummarize:d,onPublish:l,onDelete:()=>r()}))}function lf({onCancel:e,onConfirm:t,isValidSchedule:o}){let{translate:r}=Oe();return J__namespace.default.createElement("div",{className:"flex gap-3 flex-shrink-0 justify-end w-full"},J__namespace.default.createElement(Vo,{onClick:e,className:"!flex-none text-primary bg-white hover:bg-gray-50 rounded-lg border border-primary py-2 px-4 font-medium text-sm whitespace-nowrap"},r("feed.create-post.schedule.cancel-button")),J__namespace.default.createElement(Vo,{onClick:t,disabled:!o,className:"!flex-none bg-primary hover:bg-primary/90 text-white disabled:opacity-50 rounded-lg py-2 px-4 font-medium text-sm whitespace-nowrap"},r("feed.create-post.schedule.schedule-button")))}var SX=e=>{let o=/(\d{1,2})h\s*(\d{1,2})m/.exec(e);return o?{hours:parseInt(o[1])||0,minutes:parseInt(o[2])||0}:{hours:0,minutes:0}},AX=(e,t)=>`${e.toString().padStart(2,"0")}h ${t.toString().padStart(2,"0")}m`;function BN({value:e,onChange:t,onFocus:o,placeholder:r="00h 00m"}){let[n,a]=J.useState(false),{hours:s,minutes:i}=SX(e),l=J.useRef(null),d=J.useRef(null);J.useEffect(()=>{n&&setTimeout(()=>{var m,v;let u=(m=l.current)==null?void 0:m.querySelector(`[data-hour="${s}"]`),g=(v=d.current)==null?void 0:v.querySelector(`[data-minute="${i}"]`);u==null||u.scrollIntoView({block:"center",behavior:"smooth"}),g==null||g.scrollIntoView({block:"center",behavior:"smooth"});},100);},[n,s,i]);let c=(u,g)=>{let v={target:{value:AX(u,g)}};t(v),a(false);},p=Array.from({length:24},(u,g)=>g),f=Array.from({length:60},(u,g)=>g);return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("style",null,`
|
|
2434
|
+
`)?" @":"@",N=w+k+C,I=(h=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value"))==null?void 0:h.set;I==null||I.call(b,N);let P=new Event("input",{bubbles:true});b.dispatchEvent(P),setTimeout(()=>{let S=x+k.length;b.setSelectionRange(S,S),b.focus();},0);}},openEmojiPicker:()=>{u(true);}}),[n]),J.useEffect(()=>{let h=b=>{g.current&&!g.current.contains(b.target)&&m.current&&!m.current.contains(b.target)&&u(false);};if(f)return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h);}},[f]);let v=J.useCallback(h=>{let b=h.emoji,w=r.current||document.querySelector("textarea");if(w){let C=w.selectionStart||n.length,A=n.substring(0,C),k=n.substring(C),N=A+b+k;p(N),setTimeout(()=>{if(w){w.focus();let I=C+b.length;w.setSelectionRange(I,I);}},0);}else p(n+b);u(false);},[n,p]);return J__namespace.default.createElement("div",{className:"p-0 w-full lg:p-4 lg:pt-0 lg:border min-h-max h-full lg:h-auto border-gray-200 rounded-2xl flex flex-col relative"},J__namespace.default.createElement(SN,{className:"lg:min-h-[200px] placeholder:text-gray-400 overflow-y-scroll",placeholder:d(),value:n,disabled:o,onChange:i,onMentionsChange:h=>c(h),textareaRef:r}),s.length===0&&J__namespace.default.createElement("div",{className:"absolute bottom-2 left-2 z-10"},J__namespace.default.createElement("div",{className:"relative"},J__namespace.default.createElement(le,{ref:m,variant:"ghost",size:"sm",className:"!p-1.5 hover:bg-gray-100 rounded-full",onClick:()=>u(!f),type:"button"},J__namespace.default.createElement(w5,{color:"#687588"})),f&&J__namespace.default.createElement("div",{ref:g,className:"absolute bottom-full left-0 mb-2 z-50"},J__namespace.default.createElement(AN__default.default,{onEmojiClick:v,theme:AN.Theme.LIGHT,searchPlaceHolder:"Buscar emoji",width:320,height:400,previewConfig:{showPreview:false}})))),s.length>0&&f&&J__namespace.default.createElement("div",{ref:g,className:"absolute bottom-full left-2 mb-2 z-50"},J__namespace.default.createElement(AN__default.default,{onEmojiClick:v,theme:AN.Theme.LIGHT,searchPlaceHolder:"Buscar emoji",width:320,height:400,previewConfig:{showPreview:false}})),J__namespace.default.createElement("div",{className:"w-full flex-1"},s.length>0&&J__namespace.default.createElement(tf,{media:s,onRemove:l,isUploading:a})))});function s4({onSubmit:e,onScheduleClick:t,scheduledDate:o,showScheduleOption:r=true,onViewScheduledPosts:n}){let {translate:a}=Oe(),s=J.useRef(null),{content:i,uploadedMedia:l,isCreatingThePost:d,handleMediaUpload:c,resetForm:p,setIsCreatingThePost:f}=zt(),{operation:u,post:g}=xo(),{resumePost:m,isResumingThePost:v}=M5(),[h,b]=J.useState(false),x=l&&l.length>0,C=()=>{var N;(N=s.current)==null||N.insertMention();},A=()=>{e({content:i,media:l}),localStorage.removeItem("persona-phrase"),localStorage.removeItem("selectedPersona"),p();},k=!!((i==null?void 0:i.trim().length)>0||(l==null?void 0:l.length)>0||d);return J.useEffect(()=>{u==="update"&&g&&f(false);},[u,g,f]),J.useEffect(()=>{if(u==="update"&&d){let N=setTimeout(()=>{f(false);},3e3);return ()=>clearTimeout(N)}},[u,d,f]),J__namespace.default.createElement("div",{className:"lg:px-0 px-4 min-h-[78dvh] flex lg:block flex-col lg:justify-normal justify-between lg:min-h-0 mt-6 w-full"},J__namespace.default.createElement("div",{className:"w-full min-w-0"},J__namespace.default.createElement(IN,{ref:s})),J__namespace.default.createElement("div",{className:`lg:px-0 mt-4 flex flex-row items-center justify-between gap-1.5 sm:gap-2 lg:gap-3 w-full flex-wrap ${(l==null?void 0:l.length)>0&&"pb-8"}`},J__namespace.default.createElement("div",{className:"flex items-center gap-1 sm:gap-1.5 lg:gap-2 flex-1 min-w-0"},J__namespace.default.createElement(r4,{onMediaSelect:c,onScheduleClick:r?t:void 0,onMentionClick:C,showScheduleOption:r,hasMedia:x,onEmojiClick:()=>{var N;(N=s.current)==null||N.openEmojiPicker();},onViewScheduledPosts:x?n:void 0})),J__namespace.default.createElement("div",{className:"flex items-center gap-1 sm:gap-1.5 lg:gap-2 flex-shrink-0"},x&&J__namespace.default.createElement(le,{variant:"outline",size:"sm",disabled:v||!(i!=null&&i.trim()),className:"rounded-lg flex items-center gap-x-1 sm:gap-x-2 border-gray-300 text-gray-600 hover:bg-gray-50 hover:text-gray-700 hover:border-gray-400 px-2 sm:px-3 lg:px-4 py-1 sm:py-1.5 lg:py-2 whitespace-nowrap",onClick:()=>m()},J__namespace.default.createElement(lucideReact.Sparkles,{className:"h-4 w-4"}),J__namespace.default.createElement("span",{className:"text-xs sm:text-sm"},a("feed.create-post.buttons.resume"))),r&&t&&!o&&!x&&J__namespace.default.createElement(le,{variant:"outline",size:"sm",className:"rounded-lg flex items-center gap-x-1 sm:gap-x-2 border-gray-300 text-gray-600 hover:bg-gray-50 hover:text-gray-700 hover:border-gray-400 px-2 sm:px-3 lg:px-4 py-1 sm:py-1.5 lg:py-2 whitespace-nowrap",onClick:t},J__namespace.default.createElement(Ri,{className:"h-4 w-4"}),J__namespace.default.createElement("span",{className:"text-xs sm:text-sm"},a("feed.create-post.options.schedule"))),J__namespace.default.createElement(le,{disabled:!k||d,className:"px-2 sm:px-3 lg:px-6 py-1 sm:py-1.5 lg:py-2.5 text-xs sm:text-sm lg:text-base text-white whitespace-nowrap bg-primary hover:bg-primary/90",onClick:A},a(d?o?"feed.create-post.schedule.schedule-button":u==="update"?"feed.create-post.buttons.saving":"feed.create-post.buttons.publishing":o&&!x?"feed.create-post.schedule.schedule-button":u==="update"?"feed.create-post.buttons.save":"feed.create-post.buttons.publish")))))}function i4({selectedProfile:e,onProfileSelectClick:t}){var d,c,p,f,u,g,m,v,h,b,x;let{translate:o}=Oe(),{user:r,page:n,isPageFeed:a,isCommunityFeed:s,community:i}=M(),l=e||(s?{id:(d=i==null?void 0:i.id)!=null?d:"",name:(c=i==null?void 0:i.name)!=null?c:"",avatar:(p=i==null?void 0:i.image)!=null?p:"",role:"Comunidade"}:a?{id:(f=n==null?void 0:n.id)!=null?f:"",name:(u=n==null?void 0:n.name)!=null?u:"",avatar:(g=n==null?void 0:n.logo)!=null?g:"",role:(m=n==null?void 0:n.sector)!=null?m:""}:{id:(v=r==null?void 0:r.id)!=null?v:"",name:(h=r==null?void 0:r.name)!=null?h:"",avatar:(b=r==null?void 0:r.avatar)!=null?b:"",role:(x=r==null?void 0:r.role)!=null?x:""});return J__namespace.default.createElement("div",{className:"flex flex-col sm:flex-row lg:items-center mt-6 lg:mt-12 justify-between px-4 lg:px-0 gap-3 sm:gap-4"},J__namespace.default.createElement("div",{className:"flex items-center gap-2 sm:gap-3 min-w-0 flex-1"},J__namespace.default.createElement(ae,{src:l==null?void 0:l.avatar,name:l==null?void 0:l.name,className:"h-8 w-8 sm:h-9 sm:w-9 flex-shrink-0"}),J__namespace.default.createElement("div",{className:"flex min-w-0 flex-1"},J__namespace.default.createElement("div",{className:"flex flex-col min-w-0"},J__namespace.default.createElement("div",{className:"flex gap-1 items-center min-w-0"},J__namespace.default.createElement("span",{className:"font-medium text-sm sm:text-base truncate"},l==null?void 0:l.name),J__namespace.default.createElement("button",{onClick:t,className:`flex-shrink-0 ${a||s?"hidden":""}`,"aria-label":"Selecionar perfil"},J__namespace.default.createElement(lucideReact.ChevronDown,{className:"w-4 h-4 sm:w-5 sm:h-5"}))),J__namespace.default.createElement("span",{className:"text-xs sm:text-sm text-gray-6 truncate"},l.role||"")))),J__namespace.default.createElement("div",{className:`flex items-center gap-2 flex-shrink-0 ${a||s?"hidden":""}`},J__namespace.default.createElement(g0,{defaultValue:"all"},J__namespace.default.createElement(el,{className:"w-full sm:w-[120px] lg:w-[130px] border !outline-none border-gray-200 rounded-lg text-xs sm:text-sm"},J__namespace.default.createElement(h0,{placeholder:o("feed.create-post.filters.all")})),J__namespace.default.createElement(tl,{className:"z-[9999]"},J__namespace.default.createElement(xn,{value:"all"},o("feed.create-post.filters.all")),J__namespace.default.createElement(xn,{value:"connections"},o("feed.create-post.filters.connections")),J__namespace.default.createElement(xn,{value:"communities"},o("feed.create-post.filters.communities"))))))}function kN({onSubmit:e,scheduledDate:t,originalPost:o}){let{isCreatingThePost:r,content:n}=zt(),{operation:a}=xo(),{translate:s}=Oe(),i=!!(n&&n.trim().length>0),l=true;if(a==="update")if(o){let c=n.trim(),p=(o.content||"").trim(),f=c!==p,u=false;if(t||o.scheduledAt){let g=t?t.toISOString().split(".")[0]+"Z":null,m=o.scheduledAt?new Date(o.scheduledAt).toISOString().split(".")[0]+"Z":null;u=g!==m;}l=f||u;}else l=i;else l=i;let d=!!(i&&l);return a==="update"&&i&&(o!=null&&o.scheduledAt)&&(d=true),!d&&a==="update"&&i&&(d=true),J__namespace.default.createElement("div",{className:"flex-1 pl-14 justify-between flex items-center"},J__namespace.default.createElement("h4",{className:"text-sm font-bold"},s("feed.create-post.title")),J__namespace.default.createElement(le,{disabled:!d||r,variant:"default",onClick:e,className:"px-4 !bg-primary !text-sm font-bold text-white py-2 rounded-lg"},s(r?a==="update"?"feed.create-post.buttons.saving":"feed.create-post.buttons.publishing":a==="update"?"feed.create-post.buttons.save":"feed.create-post.buttons.publish")))}var TN=()=>J__namespace.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"174",height:"161",fill:"none",viewBox:"0 0 174 161"},J__namespace.default.createElement("path",{fill:"#263238",d:"m.21 149.792 21.72-.096 21.725-.036 43.444-.068 43.444.068 21.724.036 21.72.096-21.72.1-21.724.032-43.444.068-43.444-.068-21.724-.036z"}),J__namespace.default.createElement("path",{fill:"url(#paint0_linear_53604_15544)",d:"M156.358 122.471c.159-4.028.104-8.061-.164-12.084a154 154 0 0 0-3.788-24.62c-1.056-4.556-2.356-9.036-3.708-13.508-.044-.136-.26-.1-.22.04 4.188 15.776 7.624 32.052 7.388 48.448-.064 4.588-.596 9.096-1.032 13.656 0 .12.188.172.216.044.848-3.9 1.148-7.988 1.308-11.976"}),J__namespace.default.createElement("path",{fill:"url(#paint1_linear_53604_15544)",d:"M148.476 72.299s-6.348 16.108-4.924 19.896 4.344 4.592 4.344 4.592-3.884 5.544-1.168 10.744 8.74 4.952 9.14 10.848c.004 0 .34-24.648-7.392-46.08"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M155.186 108.218a.13.13 0 0 0 0-.084 147.5 147.5 0 0 0-6.156-32.4c0-.032-.06-.024-.052 0a238 238 0 0 1 3.332 14.212 7 7 0 0 0-3.028-1.688c-.02 0-.032.024 0 .032 1.172.508 2.3 1.096 3.128 2.092.184.932.368 1.864.54 2.8-1.42-1.6-3.384-2.372-5.352-3.116-.028 0-.044.032 0 .04 2.048.836 4.092 1.912 5.48 3.676q.723 4 1.272 8.048a7.65 7.65 0 0 0-3.784-2.168.04.04 0 0 0-.028.001.03.03 0 0 0-.018.021.03.03 0 0 0 .001.028.04.04 0 0 0 .021.018 8 8 0 0 1 3.84 2.456l.024.02q.183 1.416.356 2.84a9.8 9.8 0 0 0-2.652-1.6c-.024 0-.04.032 0 .04a9.2 9.2 0 0 1 2.656 1.76h.032c.108.904.212 1.804.304 2.708a12.9 12.9 0 0 0-5.384-3.84c-.04 0-.06.048-.02.064a14.06 14.06 0 0 1 5.304 4.08q.022.03.059.043a.12.12 0 0 0 .073.001c.136 1.384.26 2.772.36 4.164 0 .02.036.02.032 0-.128-1.42-.228-2.844-.34-4.248"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M150.086 86.647a7.9 7.9 0 0 0-3.812-1.2.03.03 0 0 0-.017.007.03.03 0 0 0-.007.017q0 .01.007.017a.03.03 0 0 0 .017.007c1.305.242 2.572.656 3.768 1.232a.1.1 0 0 0 .027-.007.1.1 0 0 0 .019-.02.1.1 0 0 0 .006-.026.05.05 0 0 0-.008-.027M150.856 103.701a8 8 0 0 0-2.864-.98c-.036 0-.036.048 0 .056.985.197 1.939.531 2.832.992.036.02.068-.044.032-.068"}),J__namespace.default.createElement("path",{fill:"url(#paint2_linear_53604_15544)",d:"M173.042 92.454a43.2 43.2 0 0 0-7.348 6.42 26.4 26.4 0 0 0-5.148 8.736 65.3 65.3 0 0 0-3.84 20.896 50.6 50.6 0 0 0 1.132 11.748.1.1 0 0 0 .048.071.1.1 0 0 0 .084.017.12.12 0 0 0 .072-.048.11.11 0 0 0 .016-.084 65.9 65.9 0 0 1 .116-20.536c1.088-6.664 2.8-13.912 7.036-19.328 2.308-2.948 5.2-5.268 8.024-7.664.152-.128-.04-.336-.192-.228"}),J__namespace.default.createElement("path",{fill:"url(#paint3_linear_53604_15544)",d:"M157.641 123.707a39.7 39.7 0 0 1 5.352-6.844c3.176-3.172 5.848-5.428 6.26-7.528s-3.18-3.644-3.18-3.644 4.4.8 5.6-1.056 1.784-12.52 1.784-12.52-7.996 5.704-11.72 13.704-4.096 17.888-4.096 17.888"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M170.596 102.129a7.3 7.3 0 0 0-1.6-.056c-.064 0-.06.112 0 .112.528 0 1.052-.024 1.58 0a.02.02 0 0 0 .013.007.02.02 0 0 0 .016 0 .03.03 0 0 0 .013-.007l.009-.013q.002-.007.002-.015l-.006-.015a.03.03 0 0 0-.012-.009.03.03 0 0 0-.015-.004M164.843 112.486a7.3 7.3 0 0 0-2.464.496v.036c.8-.196 1.636-.272 2.46-.4a.07.07 0 0 0 .047-.018.07.07 0 0 0 .021-.046.07.07 0 0 0-.018-.047.07.07 0 0 0-.046-.021M163.122 108.913q-.526-.009-1.044.092c-.036 0-.036.064 0 .064q.526.027 1.048-.048a.055.055 0 0 0 .039-.056.05.05 0 0 0-.013-.033.05.05 0 0 0-.03-.019"}),J__namespace.default.createElement("path",{fill:"url(#paint4_linear_53604_15544)",d:"M134.211 103.787c2.6.883 5.092 2.057 7.428 3.5a22.3 22.3 0 0 1 6.188 5.88 55 55 0 0 1 7.932 16.02 42.6 42.6 0 0 1 1.8 9.768.09.09 0 0 1-.02.068.1.1 0 0 1-.028.024.1.1 0 0 1-.034.01.1.1 0 0 1-.036-.003.1.1 0 0 1-.055-.044.1.1 0 0 1-.011-.035 55.4 55.4 0 0 0-4.844-16.596c-2.4-5.14-5.48-10.612-10.16-14-2.548-1.852-5.412-3.064-8.268-4.348-.148-.084-.044-.296.108-.244"}),J__namespace.default.createElement("path",{fill:"url(#paint5_linear_53604_15544)",d:"M153.897 125.519a33.3 33.3 0 0 0-5.916-4.3c-3.3-1.836-6-3.044-6.8-4.644s1.728-3.688 1.728-3.688-3.372 1.656-4.768.44-4.34-9.72-4.34-9.72 7.788 2.768 12.652 8.4 7.444 13.512 7.444 13.512"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M153.497 123.767c-3.896-7.312-9.092-13.924-16.212-18.288a35.7 35.7 0 0 1 5.2 4.076 8.3 8.3 0 0 0-4.195.894l-.005.008-.001.01.003.01.006.007.009.005h.01l.009-.002a11.5 11.5 0 0 1 4.356-.728q.377.358.748.728-1.13.051-2.236.296c-.02 0 0 .036 0 .032a11.4 11.4 0 0 1 2.364-.196 49 49 0 0 1 3.672 4.172 3.7 3.7 0 0 0-1.564.112.03.03 0 0 0-.015.011.03.03 0 0 0-.006.019q0 .009.006.018a.04.04 0 0 0 .015.012 8.3 8.3 0 0 1 1.668-.024q.323.409.64.8a15 15 0 0 0-4.708.48c-.024 0 0 .04 0 .036a19 19 0 0 1 4.852-.316c.2.264.4.536.584.8a10.3 10.3 0 0 0-2.8.324c-.032 0-.024.064 0 .056a10.8 10.8 0 0 1 2.912-.228 70 70 0 0 1 2.4 3.528 2.64 2.64 0 0 0-1.236.076c-.02 0 0 .036 0 .032a5.5 5.5 0 0 1 1.336.064 71 71 0 0 1 2 3.268c.084.072.236.004.188-.092"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M140.64 108.795a3.9 3.9 0 0 0-1.044.06c-.04 0-.028.064 0 .06.344-.036.684-.024 1.024-.032.076-.004.076-.084.02-.088"}),J__namespace.default.createElement("path",{fill:"#455A64",d:"M163.939 149.691h-17.576l2.504-18.356.64-4.708h11.284l.64 4.708z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M161.431 131.335h-12.564l.64-4.708h11.284z"}),J__namespace.default.createElement("path",{fill:"#455A64",d:"M162.41 124.994h-14.512v3.988h14.512z"}),J__namespace.default.createElement("path",{fill:"#37474F",d:"M119.983.818H54.207a6.716 6.716 0 0 0-6.656 6.8v135.4a6.72 6.72 0 0 0 6.656 6.776h65.776a6.72 6.72 0 0 0 6.664-6.776V7.598a6.7 6.7 0 0 0-1.927-4.77 6.73 6.73 0 0 0-4.737-2.01m2.504 138c0 3.564-2.668 6.448-5.96 6.448H57.675c-3.3 0-5.968-2.884-5.968-6.448V12.73c0-7.26 2.668-7.6 5.968-7.6h11.788c.684 0 1.244.8 1.244 1.744v.4c0 2.26 1.24 2.268 2.76 2.268h27.26c1.532 0 2.76 0 2.76-2.268v-.4c0-.964.552-1.744 1.248-1.744h11.792c3.292 0 5.96.964 5.96 7.6z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M90.814 6.718h-7.436a.46.46 0 0 1-.46-.46.46.46 0 0 1 .46-.44h7.436a.456.456 0 0 1 .46.456.456.456 0 0 1-.46.444"}),J__namespace.default.createElement("path",{fill:"#fff",d:"M122.487 12.731v126.096c0 3.564-2.668 6.448-5.96 6.448H57.679c-3.3 0-5.972-2.884-5.972-6.448V12.731c0-7.26 2.672-7.6 5.972-7.6h11.784c.684 0 1.244.8 1.244 1.744v.4c0 2.26 1.24 2.268 2.76 2.268h27.26c1.536 0 2.76 0 2.76-2.268v-.4c0-.964.552-1.744 1.248-1.744h11.792c3.292-.016 5.96.948 5.96 7.6"}),J__namespace.default.createElement("path",{fill:"url(#paint6_linear_53604_15544)",d:"M122.488 12.731v15.764h-70.8V12.731c0-7.26 2.667-7.6 5.968-7.6h11.792c.684 0 1.244.8 1.244 1.744v.4c0 2.26 1.236 2.268 2.756 2.268h27.259c1.532 0 2.764 0 2.764-2.268v-.4c0-.964.552-1.744 1.248-1.744h11.785c3.312-.016 5.984.948 5.984 7.6"}),J__namespace.default.createElement("path",{fill:"#fff",d:"m58.873 21.547-2.092-1.96 2.092-1.96.324.348-1.72 1.612 1.72 1.612zM117.007 18.367a.4.4 0 0 1-.792.078.397.397 0 0 1 .392-.478.4.4 0 0 1 .4.4M117.007 19.82a.4.4 0 1 1-.8.002.4.4 0 0 1 .8-.002M117.007 21.289a.4.4 0 0 1-.792.078.397.397 0 0 1 .392-.478.4.4 0 0 1 .4.4M67.43 7.948l-.115.116-.064.064a1.55 1.55 0 0 0-2.196 0l-.06-.064c-.04-.036-.076-.076-.112-.112l.144-.128q.153-.126.332-.212.212-.106.444-.148c.072 0 .144 0 .22-.032h.344a1.6 1.6 0 0 1 .4.096q.143.05.272.128.141.079.264.184l.12.108z"}),J__namespace.default.createElement("path",{fill:"#fff",d:"m65.414 8.482-.18-.176c.197-.202.457-.332.736-.368a1.28 1.28 0 0 1 1.1.364l-.18.18a1.05 1.05 0 0 0-1.476 0"}),J__namespace.default.createElement("path",{fill:"#fff",d:"m66.698 8.664-.18.18a.53.53 0 0 0-.582-.116.5.5 0 0 0-.174.116l-.176-.18a.8.8 0 0 1 1.112 0"}),J__namespace.default.createElement("path",{fill:"#fff",d:"M66.299 9.02a.164.164 0 1 1-.325-.052.164.164 0 0 1 .325.052M56.324 8.29a.472.472 0 1 1 .943 0 .472.472 0 0 1-.943 0M57.8 8.29a.472.472 0 1 1 .946 0 .472.472 0 0 1-.945 0M59.277 8.29a.468.468 0 1 1 .937.008.468.468 0 0 1-.937-.008M60.754 8.29a.472.472 0 1 1 .945 0 .472.472 0 0 1-.945 0M62.23 8.29a.472.472 0 1 1 .945 0 .472.472 0 0 1-.944 0M117.179 9.317h-3.824V7.541h3.824zm-3.624-.2h3.424V7.741h-3.424z"}),J__namespace.default.createElement("path",{fill:"#fff",d:"M116.136 7.846h-2.46v1.168h2.46zM117.52 7.959h-.34v.948h.34z"}),J__namespace.default.createElement("path",{fill:"#EBEBEB",d:"M62.462 137.565h-.54v2.468h-1.004v-1.256h-1.78v1.256h-1.004v-2.468h-.54l2.432-2.516zM116.606 135.049h-5.868v.84h5.868zM116.606 137.123h-5.868v.84h5.868zM116.606 139.197h-5.868v.84h5.868zM88.766 137.212l-1.668 1.78-1.668-1.78.292-.276 1.376 1.464 1.376-1.464z"}),J__namespace.default.createElement("path",{fill:"#EBEBEB",d:"M87.098 140.832a3.033 3.033 0 1 1 3.032-3.032 3.035 3.035 0 0 1-3.032 3.032m0-5.66a2.63 2.63 0 0 0-2.432 1.625 2.634 2.634 0 0 0 1.921 3.588 2.635 2.635 0 0 0 3.143-2.585 2.633 2.633 0 0 0-2.632-2.628"}),J__namespace.default.createElement("path",{fill:"url(#paint7_linear_53604_15544)",d:"M115.352 97.678h-1v-.4h.6v-.6h.4z"}),J__namespace.default.createElement("path",{fill:"url(#paint8_linear_53604_15544)",d:"M112.794 97.68h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.552v-.4h1.56zm-3.116 0h-1.556v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0H80.09v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.552zm-3.116 0H67.63v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.556z"}),J__namespace.default.createElement("path",{fill:"url(#paint9_linear_53604_15544)",d:"M59.848 97.678h-1v-1h.4v.6h.6z"}),J__namespace.default.createElement("path",{fill:"url(#paint10_linear_53604_15544)",d:"M59.248 95.086h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4z"}),J__namespace.default.createElement("path",{fill:"url(#paint11_linear_53604_15544)",d:"M59.248 53.709h-.4v-1h1v.4h-.6z"}),J__namespace.default.createElement("path",{fill:"url(#paint12_linear_53604_15544)",d:"M112.794 53.109h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.552v-.4h1.56zm-3.116 0h-1.556v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0H80.09v-.4h1.556zm-3.116 0h-1.556v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.552zm-3.116 0H67.63v-.4h1.556zm-3.112 0h-1.56v-.4h1.56zm-3.116 0h-1.556v-.4h1.556z"}),J__namespace.default.createElement("path",{fill:"url(#paint13_linear_53604_15544)",d:"M115.352 53.709h-.4v-.6h-.6v-.4h1z"}),J__namespace.default.createElement("path",{fill:"url(#paint14_linear_53604_15544)",d:"M115.353 95.086h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.2h-.4v-1.6h.4zm0-3.18h-.4v-1.6h.4z"}),J__namespace.default.createElement("path",{fill:"url(#paint15_linear_53604_15544)",d:"M66.207 80.89a5.384 5.384 0 0 0 4.984 5.367h30.472a6.323 6.323 0 0 0 4.804-10.486 6.32 6.32 0 0 0-4.212-2.138 10.656 10.656 0 0 0-20.652-3.331 6.26 6.26 0 0 0-2.828-.669 6.32 6.32 0 0 0-6.312 5.933 5.384 5.384 0 0 0-6.256 5.324"}),J__namespace.default.createElement("path",{fill:"#fff",d:"M89.848 79.256h-5.5v7.02h5.5zM82.46 79.255h9.277L87.1 74.627zM74.14 21.05a1.106 1.106 0 0 1-1.109-1.113V18.57a.21.21 0 0 1 .212-.212.21.21 0 0 1 .212.212v1.367a.688.688 0 0 0 1.372 0V18.57a.21.21 0 0 1 .212-.212.21.21 0 0 1 .197.13.2.2 0 0 1 .015.082v1.367a1.11 1.11 0 0 1-1.112 1.112M77.06 20.003h-.476v.836a.212.212 0 0 1-.424 0v-2.268a.21.21 0 0 1 .208-.212h.692a.826.826 0 0 1 .882.822.824.824 0 0 1-.882.822m-.476-.424h.476a.4.4 0 1 0 0-.8h-.476zM78.398 20.837V18.57a.212.212 0 0 1 .364-.15c.04.04.063.094.064.15v2.048h1.044a.216.216 0 0 1 0 .428h-1.26a.213.213 0 0 1-.212-.208M82.533 18.695a1.41 1.41 0 0 1 0 1.944 1.27 1.27 0 0 1-1.43.296 1.3 1.3 0 0 1-.43-.296 1.43 1.43 0 0 1 0-1.944 1.27 1.27 0 0 1 .94-.4 1.24 1.24 0 0 1 .92.4m-.052.972a1 1 0 0 0-.26-.672.822.822 0 0 0-1.228 0 .96.96 0 0 0-.264.672.95.95 0 0 0 .264.668.82.82 0 0 0 1.228 0 .98.98 0 0 0 .26-.668M84.904 20.413h-.936l-.188.5a.22.22 0 0 1-.2.136.2.2 0 0 1-.072 0 .216.216 0 0 1-.128-.276l.848-2.268a.22.22 0 0 1 .204-.132.21.21 0 0 1 .204.132l.852 2.268a.22.22 0 0 1-.128.276.2.2 0 0 1-.072 0 .21.21 0 0 1-.196-.136zm-.16-.424-.312-.824-.312.824zM86.016 20.838V18.57a.21.21 0 0 1 .13-.198.2.2 0 0 1 .082-.014h.472a1.348 1.348 0 0 1 0 2.691h-.452a.21.21 0 0 1-.232-.212m.424-.216h.24a.92.92 0 0 0 0-1.837h-.24zM90.812 21.018h-.028l-.02-.02a.1.1 0 0 0 0-.032l-.944-2.244a.212.212 0 0 1 .276-.276.2.2 0 0 1 .112.112l.752 1.78.748-1.78a.216.216 0 1 1 .4.164l-.948 2.244a.1.1 0 0 1 0 .032v.02h-.024l-.032.02h-.156l-.032-.024zM92.656 18.57a.21.21 0 0 1 .212-.212.21.21 0 0 1 .212.212v2.267a.212.212 0 0 1-.293.197.21.21 0 0 1-.13-.197zM93.8 20.838V18.57a.21.21 0 0 1 .131-.198.2.2 0 0 1 .082-.014h.456a1.348 1.348 0 0 1 0 2.691h-.456a.21.21 0 0 1-.212-.212m.429-.216h.24a.92.92 0 0 0 0-1.837h-.24zM96.375 20.838V18.57a.21.21 0 0 1 .212-.212h1.256a.21.21 0 0 1 .212.212.216.216 0 0 1-.212.215h-1.044v.704h.9a.212.212 0 1 1 0 .424h-.9v.704h1.044a.215.215 0 0 1 .133.356.22.22 0 0 1-.133.073h-1.244a.213.213 0 0 1-.224-.209M100.78 18.695a1.41 1.41 0 0 1 0 1.944 1.28 1.28 0 0 1-.92.4 1.32 1.32 0 0 1-.944-.4 1.43 1.43 0 0 1 0-1.944 1.28 1.28 0 0 1 .944-.4 1.25 1.25 0 0 1 .92.4m-.052.972a1 1 0 0 0-.26-.672.84.84 0 0 0-.608-.276.83.83 0 0 0-.624.276.98.98 0 0 0-.26.672.96.96 0 0 0 .538.872.82.82 0 0 0 .954-.204 1 1 0 0 0 .26-.668"}),J__namespace.default.createElement("path",{fill:"#C7C7C7",d:"M81.322 105.144a.93.93 0 0 1-.652-.271.9.9 0 0 1-.268-.653v-1.136a.17.17 0 0 1 .176-.176.176.176 0 0 1 .176.176v1.136a.569.569 0 1 0 1.136 0v-1.136a.18.18 0 0 1 .112-.164.2.2 0 0 1 .136.001.17.17 0 0 1 .108.163v1.136a.925.925 0 0 1-.924.924M82.965 105.569v-1.8519999999999999a.17.17 0 0 1 .168-.168.17.17 0 0 1 .176.132.798.798 0 0 1 1.218.431.8.8 0 0 1-.782 1.029.73.73 0 0 1-.428-.132v.564a.18.18 0 0 1-.057.123.18.18 0 0 1-.127.049.18.18 0 0 1-.12-.054.18.18 0 0 1-.048-.122m.352-1.224a.42.42 0 0 0 .124.32.41.41 0 0 0 .604 0 .472.472 0 0 0-.136-.738.4.4 0 0 0-.164-.034.4.4 0 0 0-.304.132.43.43 0 0 0-.124.32M85.207 102.908a.176.176 0 0 1 .176.176v1.884a.176.176 0 0 1-.176.176.176.176 0 0 1-.176-.176v-1.884a.176.176 0 0 1 .176-.176M85.947 104.909a.8.8 0 0 1-.22-.564.84.84 0 0 1 .22-.56.75.75 0 0 1 .843-.177.7.7 0 0 1 .24.177.8.8 0 0 1 .225.56.8.8 0 0 1-.224.564.715.715 0 0 1-.833.177.8.8 0 0 1-.251-.177m.128-.564a.54.54 0 0 0 .116.34.43.43 0 0 0 .308.116.4.4 0 0 0 .292-.116.5.5 0 0 0 .124-.34.48.48 0 0 0-.124-.332.45.45 0 0 0-.292-.12.47.47 0 0 0-.308.12.52.52 0 0 0-.116.332M89.149 104.345v.628a.17.17 0 0 1-.152.163.17.17 0 0 1-.18-.131.742.742 0 0 1-.968-.096.8.8 0 0 1-.22-.564.8.8 0 0 1 .22-.56.73.73 0 0 1 .968-.1.169.169 0 0 1 .23-.127.17.17 0 0 1 .09.093.2.2 0 0 1 .012.066zm-.336 0a.47.47 0 0 0-.124-.328.4.4 0 0 0-.596 0 .51.51 0 0 0 0 .656.4.4 0 0 0 .296.124.43.43 0 0 0 .3-.124.47.47 0 0 0 .124-.328M91.22 104.972a.171.171 0 0 1-.154.17.172.172 0 0 1-.186-.134.8.8 0 0 1-.435.136.8.8 0 1 1 0-1.6.78.78 0 0 1 .428.132v-.6a.176.176 0 0 1 .176-.172.17.17 0 0 1 .121.051c.032.032.05.076.05.121v1.896m-.775-1.076a.4.4 0 0 0-.296.132.462.462 0 0 0 .134.734.41.41 0 0 0 .466-.098.467.467 0 0 0-.138-.735.4.4 0 0 0-.166-.033M92.084 104.686a.243.243 0 0 1 .24.24.237.237 0 0 1-.24.236.238.238 0 0 1-.168-.068.24.24 0 0 1-.068-.168.238.238 0 0 1 .236-.24M92.818 104.686a.242.242 0 0 1 .222.331.23.23 0 0 1-.13.128.26.26 0 0 1-.183 0 .24.24 0 0 1-.128-.129.242.242 0 0 1 .052-.259.24.24 0 0 1 .167-.071M93.552 104.686a.243.243 0 0 1 .24.24.24.24 0 0 1-.238.209.24.24 0 0 1-.238-.209.25.25 0 0 1 .07-.168.25.25 0 0 1 .166-.072"}),J__namespace.default.createElement("path",{fill:"#EBEBEB",d:"M111.938 107.471H62.254v3.136h49.684z"}),J__namespace.default.createElement("path",{fill:"url(#paint16_linear_53604_15544)",d:"M78.931 108.025H62.86v2.032h16.072z"}),J__namespace.default.createElement("path",{fill:"#000",d:"M66.095 108.025h-1.668l-1.568 2.028h1.668zM69.306 108.025h-1.664l-1.572 2.028h1.664zM72.525 108.025h-1.668l-1.568 2.028h1.664zM75.736 108.025h-1.668l-1.568 2.028h1.664zM78.947 108.025h-1.664l-1.572 2.028h1.664zM95.008 110.053v-.02l-.016.02z",opacity:"0.1"}),J__namespace.default.createElement("path",{fill:"url(#paint17_linear_53604_15544)",d:"m133.181 36.711-.956.948-.54.56a13 13 0 0 0-9.2-3.82 12.99 12.99 0 0 0-9.2 3.82c-.168-.176-.34-.36-.516-.536-.312-.32-.624-.632-.94-.948h-.028v-.024l.068-.056c.4-.36.8-.728 1.2-1.072.861-.699 1.8-1.295 2.8-1.776a14 14 0 0 1 3.7-1.244c.612-.112 1.232-.172 1.848-.248.212-.024 1.576-.028 1.62-.028.42.032.84.052 1.26.096 1.16.128 2.3.397 3.396.8q1.193.44 2.296 1.072c.775.445 1.509.96 2.192 1.536.34.296.672.604 1.008.908z"}),J__namespace.default.createElement("path",{fill:"url(#paint18_linear_53604_15544)",d:"m116.297 41.203-1.512-1.5a10.67 10.67 0 0 1 6.152-3.084c3.568-.484 6.632.6 9.232 3.06l-1.516 1.508a8.72 8.72 0 0 0-9.512-1.894 8.7 8.7 0 0 0-2.832 1.894z"}),J__namespace.default.createElement("path",{fill:"url(#paint19_linear_53604_15544)",d:"m127.144 42.706-1.5 1.512a4.45 4.45 0 0 0-3.162-1.316 4.45 4.45 0 0 0-3.162 1.316l-1.5-1.5a6.56 6.56 0 0 1 7.187-1.45 6.55 6.55 0 0 1 2.137 1.438"}),J__namespace.default.createElement("path",{fill:"url(#paint20_linear_53604_15544)",d:"M123.837 45.573a1.356 1.356 0 1 1-2.712-.002 1.356 1.356 0 0 1 2.712.002"}),J__namespace.default.createElement("path",{fill:"#774442",d:"m41.388 133.838-1.2 16.44c0 3.22.027 6.04.183 7.5a2.273 2.273 0 0 0 .232 1.016l.02.02c.957.656 26.664 1.536 27.572 1.264.909-.272.205-2.876-.767-3.708s-10.664-5.568-10.664-5.568l1.023-16.424z"}),J__namespace.default.createElement("path",{fill:"#EBEBEB",d:"M68.218 160.079c-.908.272-26.616-.608-27.572-1.264l-.02-.02a2.3 2.3 0 0 1-.232-1.016c-.156-1.46-.2-4.28-.184-7.496 0 0 .204-2.852.444-6.176l16.504.772-.368 5.924s9.688 4.74 10.664 5.568 1.672 3.448.764 3.708"}),J__namespace.default.createElement("path",{fill:"url(#paint21_linear_53604_15544)",d:"M68.33 160.125c-.92.268-27.032-.456-28-1.12-.368-.252-.452-9.008.072-13.444l16.816.66s-.024 4.512.18 4.616c1.652.844 9.288 4.768 10.168 5.524.98.84 1.688 3.492.764 3.764"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M67.995 159.062c-4.372-.272-22.02-.96-26.364-.9-.032 0-.036.028 0 .028 4.328.368 22 .912 26.36.944.092 0 .096-.068.004-.072M65.92 155.353a3.51 3.51 0 0 0-2.657.968 3.4 3.4 0 0 0-1.064 2.3c0 .024.048.028.052 0a4.06 4.06 0 0 1 3.668-3.2.04.04 0 0 0 .024-.01.03.03 0 0 0 .01-.024.03.03 0 0 0-.01-.024.03.03 0 0 0-.024-.01M58.438 151.164c-1.748-.092-3.804.448-4.944 1.84-.044.052.032.116.084.092 1.562-.744 3.2-1.32 4.884-1.716a.11.11 0 0 0 .041-.183.12.12 0 0 0-.065-.033M59.77 151.738c-1.748-.092-3.804.452-4.944 1.84-.044.056.032.116.084.092a24.3 24.3 0 0 1 4.88-1.716.1.1 0 0 0 .073-.038.108.108 0 0 0-.093-.178M61.098 152.321c-1.752-.092-3.804.448-4.944 1.84-.044.052.032.116.084.092a24 24 0 0 1 4.88-1.716.108.108 0 1 0-.02-.216M62.431 152.895c-1.752-.092-3.804.452-4.944 1.84-.048.056.032.116.084.092a24 24 0 0 1 4.88-1.716.109.109 0 0 0-.02-.216M43.098 147.284c-1.964-.068-2.072 2.984-.104 3.052s2.104-2.984.104-3.052"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M60.504 146.564c-.856-.768-2-.096-2.576.648a8 8 0 0 0-.708 1.1 9.5 9.5 0 0 0-.988 2.852 1.5 1.5 0 0 0-.028.228.1.1 0 0 0-.009.03q0 .017.009.03-.021.09-.032.18a.05.05 0 0 0 .018.04l.02.009a.04.04 0 0 0 .022-.001.22.22 0 0 0 .168.176.2.2 0 0 0 .068.014.2.2 0 0 0 .068-.014c.352-.224.724-.448 1.092-.668l.196-.12a9.5 9.5 0 0 0 2.448-1.928c.576-.708 1.044-1.852.232-2.576m-2.284 3.656q-.432.286-.864.56c-.288.184-.548.356-.8.548a1 1 0 0 0-.088.064l-.096.064.036-.096v-.02c.272-.68.524-1.376.848-2.04.056-.132.124-.264.192-.4q.3-.6.68-1.156c.4-.564 2.18-1.968 2.28-.056.052 1.04-1.456 2.02-2.188 2.532"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M56.547 151.542c.024-.024.032-.052 0-.076a1 1 0 0 0-.1-.096l-.036-.036-.172-.156a9.25 9.25 0 0 0-3.832-2c-.912-.216-2.224 0-2.4 1.12s.912 1.668 1.8 1.836a8.7 8.7 0 0 0 2.708 0c.636-.08 1.272-.184 1.888-.256a.2.2 0 0 0 .1-.043.212.212 0 0 0 .082-.191.2.2 0 0 0-.038-.102m-2.484.112c-.88.084-2.668.272-3.292-.576-1.124-1.552 1.132-1.6 1.8-1.404q.649.191 1.264.468 1.215.56 2.36 1.248l.084.048a.4.4 0 0 0-.092 0h-.264c-.616.076-1.228.156-1.86.216"}),J__namespace.default.createElement("path",{fill:"#37474F",d:"m40.176 143.154 18.4.756s.848-25.664.44-36.46c-.444-11.728-5.48-46.62-5.48-46.62h-15.2s3.884 35.028 3.968 46.76c.056 10.876-2.128 35.564-2.128 35.564"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M50.528 60.83 41.4 92.43c-1.08-14.948-3.084-31.6-3.084-31.6z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"m41.2 62.553.967 10.4.892 10.42c.572 6.952 1.116 13.904 1.528 20.868.104 1.744.164 3.492.14 5.24s-.108 3.492-.196 5.232a424 424 0 0 1-.672 10.444c-.264 3.476-1.236 13.716-1.236 13.716s.704-10.26.932-13.736.456-6.96.616-10.44c.084-1.74.148-3.48.176-5.22s-.048-3.472-.152-5.2c-.38-6.96-.932-13.912-1.436-20.868zM57.98 140.462c-2.8-.192-2-.176-4.8-.336-1.373-.076-10.4-.58-11.689-.428-.028 0-.032.052 0 .056 1.272.272 10.3.62 11.676.672 2.8.104 2 .044 4.8.116h.016l.014-.007.01-.012a.03.03 0 0 0 .006-.015v-.015l-.007-.015-.012-.01z"}),J__namespace.default.createElement("path",{fill:"#774442",d:"m12.19 124.521-8.4 14.192c-1.448 2.872-2.668 5.416-3.176 6.8v.024a2.2 2.2 0 0 0-.236.992l-.003.014q0 .008.003.014c.56 1.012 23.2 13.256 24.116 13.416s1.468-2.484.968-3.66-7.068-9.74-7.068-9.74l8.236-14.244z"}),J__namespace.default.createElement("path",{fill:"#EBEBEB",d:"M24.512 159.969c-.936-.16-23.556-12.4-24.12-13.416a2.239 2.239 0 0 1 .232-1.02.1.1 0 0 1 0-.024c.512-1.376 1.728-3.92 3.176-6.8l3.148-5.332 14.432 8.044-2.968 5.14s6.56 8.56 7.064 9.736-.032 3.836-.964 3.672"}),J__namespace.default.createElement("path",{fill:"url(#paint22_linear_53604_15544)",d:"M24.597 160.056c-.948-.168-24-12.452-24.572-13.48-.22-.4 3.6-8.264 6.052-12l14.764 8.084s-2.032 4.024-1.896 4.208c1.104 1.492 6.192 8.4 6.644 9.476.5 1.192-.048 3.876-.992 3.712"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M24.764 158.96c-3.788-2.192-19.284-10.672-23.2-12.552-.032 0-.044 0 0 .024 3.712 2.256 19.276 10.612 23.2 12.592.048.04.08-.004 0-.064M24.565 154.712a3.5 3.5 0 0 0-1.367-.45 3.5 3.5 0 0 0-1.433.134c-.84.26-1.547.833-1.976 1.6 0 .024.028.048.044.024a4.065 4.065 0 0 1 4.716-1.24.04.04 0 0 0 .026-.004.04.04 0 0 0 .016-.022.04.04 0 0 0-.004-.026.04.04 0 0 0-.022-.016M19.73 147.629c-1.524-.86-3.6-1.292-5.244-.556-.064.028-.024.12.036.12 1.728.025 3.449.235 5.132.628a.1.1 0 0 0 .065-.016.11.11 0 0 0 .047-.12.1.1 0 0 0-.036-.056M20.666 148.739c-1.524-.864-3.6-1.292-5.248-.556-.064.028 0 .116.036.12 1.73.027 3.452.241 5.136.636a.11.11 0 0 0 .125-.067.107.107 0 0 0-.05-.133M21.6 149.847c-1.527-.86-3.6-1.292-5.247-.556-.064.032-.024.12.036.12a24.4 24.4 0 0 1 5.132.64q.038.007.074-.013a.1.1 0 0 0 .049-.056.11.11 0 0 0-.043-.135M22.531 150.961c-1.524-.86-3.6-1.292-5.248-.556-.06.028 0 .12.04.12 1.729.029 3.45.243 5.132.64a.11.11 0 0 0 .14-.064.108.108 0 0 0-.064-.14M7.74 137.326c-1.729-.936-3.2 1.748-1.457 2.684s3.188-1.748 1.456-2.684"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M23.628 144.43c-.424-1.072-1.748-.976-2.592-.568a8 8 0 0 0-1.14.672 9.4 9.4 0 0 0-2.156 2.112q-.072.089-.128.188a.1.1 0 0 0-.022.022.1.1 0 0 0-.01.03q-.047.063-.084.132a.042.042 0 0 0-.004.041.1.1 0 0 0 .012.018l.02.009a.23.23 0 0 0 .076.232.2.2 0 0 0 .059.036q.034.011.069.008c.4-.044.848-.08 1.276-.112h.228a9.7 9.7 0 0 0 3.064-.632c.8-.364 1.74-1.18 1.332-2.188m-3.664 2.236-1.02.12c-.328.036-.652.072-.972.128a.5.5 0 0 0-.108 0h-.116a1 1 0 0 0 .076-.072c.548-.488 1.08-1 1.668-1.448.108-.096.228-.184.348-.272q.538-.404 1.124-.732c.612-.32 2.828-.8 2.064.968-.404.992-2.188 1.196-3.064 1.308"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M17.873 147.129c.032 0 .048-.032.04-.064l-.048-.132v-.048a.03.03 0 0 0 0-.02l-.084-.216a9.25 9.25 0 0 0-2.536-3.508c-.72-.6-2-1.004-2.652-.068s.076 1.9.8 2.444a8.7 8.7 0 0 0 2.428 1.2c.604.212 1.2.4 1.804.608a.217.217 0 0 0 .248-.196m-2.276-1.008c-.828-.32-2.512-.944-2.692-2-.312-1.888 1.724-.916 2.24-.452q.493.46.92.98a25 25 0 0 1 1.616 2.256l-.088-.032a2 2 0 0 0-.244-.104c-.576-.216-1.164-.42-1.752-.648"}),J__namespace.default.createElement("path",{fill:"#37474F",d:"M51.96 60.815c-.068.312-1.128 5.243-2.232 9.48-.8 3.091-1.624 5.811-2.096 6.095-.536.316-3.148 1.472-4.02 1.836 0 0-5.872 29.3-8.968 38.4-2.86 8.4-10.94 24.4-10.94 24.4l-16.692-9.208s9.176-15.8 10.584-19.884c2.184-6.324 10.372-37.2 10.372-37.2s-.064-9.668 3.2-13.892z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M24.415 137.215c-2.452-1.372-1.72-.996-4.196-2.356-1.2-.656-9.152-4.968-10.4-5.38-.028 0-.052.032-.028.048 1.036.8 9.048 4.964 10.268 5.6 2.496 1.296 1.792.896 4.3 2.164q.016.01.035.008a.05.05 0 0 0 .031-.018.05.05 0 0 0 .009-.036.05.05 0 0 0-.019-.03M32.371 72.02c.472-.12.972-.16 1.452-.235.4-.06.776-.128 1.156-.212a5.05 5.05 0 0 0 2.04-.86c.664-.516 1.004-1.3 1.324-2.056.192-.448.4-.892.588-1.336q.143-.32.292-.64.203-.378.364-.776c0-.036.072 0 .056 0q-.098.273-.164.556c-.064.216-.124.432-.192.648-.12.4-.236.768-.36 1.152a9.1 9.1 0 0 1-.82 2c-.708 1.128-1.976 1.6-3.244 1.744-.36.044-.728.072-1.092.092q-.691.06-1.384 0c-.068.04-.092-.056-.016-.076M49.015 75.717a34 34 0 0 0-5.38 2.503c-.068.036-.024.144.048.112 1.816-.78 3.664-1.524 5.428-2.4a.12.12 0 0 0-.096-.216M49.562 63.3c0-.063-.112-.075-.112 0 0 2.153-.124 4.045-.304 6.057-.084.932-.836 6.092-2.456 5.716-.268-.064-.4-.328-.452-.74a6.7 6.7 0 0 1 .216-1.58c.18-1.08.324-2.164.4-3.256.19-2.032.17-4.077-.064-6.104a.052.052 0 1 0-.104 0 56 56 0 0 1-.48 8.428c-.2 1.344-.876 3.364.528 3.568s2.352-3.172 2.528-4.1c.446-2.639.547-5.324.3-7.988"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M46.731 75.203a8 8 0 0 0-.364 1.068c-.104.281-.155.58-.152.88 0 .056.084.06.112.024.17-.264.296-.553.376-.856.124-.332.256-.66.368-.992a.18.18 0 0 0-.108-.232.18.18 0 0 0-.195.048.2.2 0 0 0-.037.06M11.168 129.507c2.444-4.6 6.284-11.78 7.472-14.056a41 41 0 0 0 2.716-7.028 478 478 0 0 0 4.296-14.8A457 457 0 0 0 29.46 78.68c.3-1.248.624-2.5.864-3.764a11.5 11.5 0 0 0 0-3.852 12.4 12.4 0 0 1-.028-3.6 24 24 0 0 1 .84-3.504c.188-.604.4-1.2.6-1.804.024-.064.128-.036.108.032-.74 2.424-1.496 4.872-1.34 7.436.076 1.232.4 2.444.4 3.684a18 18 0 0 1-.624 3.64 455 455 0 0 1-8.032 29.928c-.728 2.4-1.408 4.848-2.444 7.14s-4.948 9.332-7.576 13.804q-.495.86-1.004 1.704c-.02.056-.076.02-.056-.016"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M43.717 35.134c5.24 2.876 14.168 8.188 17.792 8.608 2.8.328 15.956-8.4 19.924-11.816 1.2-1.044-5.62-8.544-7.008-7.548-3.828 2.76-14.188 9.256-14.652 9.34-1.712.3-8.572-1.6-14.672-2.76-6.804-1.308-3.924 2.784-1.384 4.176"}),J__namespace.default.createElement("path",{fill:"#C7C7C7",d:"m53.24 41.103 4.145-7.684s-10.252-3.2-14.876-2.8-1.764 2.856.58 4.468 10.152 6.016 10.152 6.016"}),J__namespace.default.createElement("path",{fill:"url(#paint23_linear_53604_15544)",d:"m53.24 41.103 4.145-7.684s-10.252-3.2-14.876-2.8-1.764 2.856.58 4.468 10.152 6.016 10.152 6.016"}),J__namespace.default.createElement("path",{fill:"#fff",d:"m57.376 33.421-.036.064a4 4 0 0 0-.292-.12 5 5 0 0 0-.444-.168l-.452-.144c-.152-.044-.308-.072-.464-.108l-.232-.056-.236-.032a8.4 8.4 0 0 0-3.756.28c-1.21.386-2.365.924-3.44 1.6-.852.512-1.668 1.072-2.484 1.636l-.124.084-.084.056-.156-.096c.032 0 .06-.04.092-.06l.124-.084c.836-.572 1.676-1.148 2.552-1.668a15 15 0 0 1 3.484-1.6 8.6 8.6 0 0 1 3.696-.264c1.06.292 1.828.52 2.124.612zm-2.74 4.712c-1.128.364-2.22.8-3.316 1.252l-.656.256.192.108.528-.208c1.096-.44 2.184-.896 3.3-1.264l.096-.032.1-.188zm-9.096-1.76-.148-.1a4.6 4.6 0 0 0-1.276-.62l-.284-.068.4.252q.55.198 1.04.52l.148.1q.157.108.308.228c.1.08.192.152.284.236l.544.324a8.4 8.4 0 0 0-1.016-.876z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M51.72 39.871c.48-1.124 1.108-2.2 1.688-3.276s1.268-2.164 1.884-3.252c0-.032.072 0 .056.028-.56 1.096-1.072 2.212-1.676 3.284a35 35 0 0 1-1.924 3.232s-.036 0-.028-.016"}),J__namespace.default.createElement("path",{fill:"#000",d:"m55.367 37.153-2.128 3.952s-7.808-4.4-10.152-6c-1.428-.984-3.048-2.284-3.048-3.236z",opacity:"0.1"}),J__namespace.default.createElement("path",{fill:"url(#paint24_linear_53604_15544)",d:"M28.662 63.845c.064.068 25-.372 25.236-.648.328-.4-3.156-23.632-6.676-29.832-1.68-2.968-6.284-4.544-8.968.048-6.408 10.984-9.812 30.188-9.592 30.432"}),J__namespace.default.createElement("path",{fill:"#fff",d:"M53.87 62.35h-.831c-.16 0-.32 0-.48-.024l-.476-.06a5 5 0 0 1-.472-.092 8 8 0 0 1-.928-.244c-.3-.112-.6-.212-.892-.352s-.572-.28-.86-.424a6 6 0 0 1-.8-.496c-.248-.18-.528-.36-.8-.544s-.512-.4-.76-.584-.572-.472-.852-.72a1 1 0 0 1-.1-.092 56 56 0 0 1-1.884-1.756c-.92-.88-1.832-1.776-2.832-2.56a10.6 10.6 0 0 0-1.58-1.044 4 4 0 0 0-.344-.164 1 1 0 0 0-.164-.072 4.7 4.7 0 0 0-1.276-.344c-.156 0-.312-.024-.468-.028h-.476a5 5 0 0 0-.476 0l-.472.048-.236.028-.232.04-.484.152c-.304.088-.616.152-.912.268a8 8 0 0 0-.4.148q-.091.03-.176.072c-.4.164-.8.356-1.168.552-.532.268-1.068.536-1.628.756l.024-.1c.532-.216 1.044-.48 1.56-.744.356-.184.712-.364 1.08-.52l.168-.076q.247-.108.5-.192c.3-.12.612-.188.92-.28l.472-.092.236-.044.24-.028.476-.056c.16 0 .32 0 .48-.024h.48c.164 0 .324 0 .488.024a5 5 0 0 1 1.372.372l.156.076c.104.044.204.096.304.148q.848.465 1.6 1.072c1.004.8 1.908 1.704 2.82 2.592.636.62 1.272 1.236 1.932 1.824l.1.092q.384.343.78.668.732.615 1.536 1.132c.264.176.544.328.8.492s.564.296.86.4.588.232.888.34q.454.144.92.24c.156.024.308.068.468.084l.472.056c.156 0 .316 0 .476.024h.476c.116 0 .228 0 .344-.02q.018.037.032.076m-.755-5.536-.064.036a16.4 16.4 0 0 1-3.236 1.388c-1.13.332-2.3.505-3.476.512h-.724a12.7 12.7 0 0 1-2.764-.444 15 15 0 0 1-1.672-.568 18 18 0 0 1-1.6-.748c-.964-.496-1.884-1.068-2.8-1.64l-.148-.092-.096-.06a28 28 0 0 0-3.088-1.744h-.04a1 1 0 0 0-.14-.06 8.6 8.6 0 0 0-2.296-.676 1 1 0 0 0-.036.14q.404.056.8.152.696.152 1.36.408l.132.056.16.068q1.6.75 3.096 1.696l.072.044.152.088c.936.568 1.872 1.136 2.848 1.632a21 21 0 0 0 1.6.748q.82.341 1.676.58a12.7 12.7 0 0 0 2.88.476h.624c1.187.002 2.37-.161 3.512-.484a15.8 15.8 0 0 0 3.272-1.372zm-1.5-8.292c-.272-.124-.548-.22-.828-.32a9 9 0 0 0-.928-.248c-.16-.028-.312-.072-.472-.088l-.476-.06c-.16-.02-.32 0-.48-.028h-.48a8.5 8.5 0 0 0-3.696.948 14.7 14.7 0 0 0-3.136 2.196c-.764.672-1.484 1.392-2.196 2.104l-.112.112-.444.444c-.568.564-1.14 1.132-1.744 1.66a12.223 12.223 0 0 1-1.1.86 7.4 7.4 0 0 1-1.656.9 4.8 4.8 0 0 1-1.844.308 7.5 7.5 0 0 1-1.868-.26l-.244-.076c0 .044-.02.088-.028.132l.232.076c.62.172 1.26.268 1.904.284h.728l.24-.04.24-.04c.08 0 .156-.04.236-.06l.232-.064c.08-.024.152-.056.228-.084a7.5 7.5 0 0 0 1.696-.92q.565-.4 1.084-.856l.068-.056.324-.328c.472-.432.928-.88 1.38-1.332l.488-.492.104-.108c.7-.704 1.4-1.408 2.14-2.064a15.2 15.2 0 0 1 3.092-2.204 8.45 8.45 0 0 1 3.64-.968h.476c.16 0 .316 0 .476.024l.472.056c.156 0 .312.056.468.084q.465.095.92.236c.296.108.588.204.872.336zM47.85 34.654c-.844.508-1.652 1.06-2.46 1.6l-.124.084-.52.356c-1.03.743-2.12 1.4-3.256 1.964-.204.096-.4.18-.624.26l-.128.048q-.51.184-1.044.276a4.9 4.9 0 0 1-1.868-.04 7.4 7.4 0 0 1-1.788-.596 5 5 0 0 1-.308-.168c0 .04-.036.08-.052.12q.145.09.296.168a7.5 7.5 0 0 0 1.82.628l.236.052.244.032.24.032h.484l.244-.02h.244c.08 0 .156-.028.236-.04q.614-.104 1.2-.32l.132-.052q.265-.101.524-.22.871-.405 1.684-.92a36 36 0 0 0 1.6-1.056l.572-.4.124-.084c.78-.536 1.56-1.076 2.372-1.568zm1.784 5.352q-.343.119-.692.22l-.1.028q-.433.128-.872.22a7.6 7.6 0 0 1-3.476 0 9.3 9.3 0 0 1-3.248-1.284 3 3 0 0 1-.212-.144l-.168-.112a25 25 0 0 0-2.52-1.772 8.6 8.6 0 0 0-1.644-.704h-.052v.028l.068.02c.276.104.552.204.824.324q.41.18.8.4 1.273.797 2.432 1.752l.164.116c.092.068.184.128.28.192a9.5 9.5 0 0 0 3.28 1.336 7.7 7.7 0 0 0 3.544 0q.476-.1.94-.236l.1-.028q.319-.096.632-.204c-.048-.044-.064-.1-.08-.152m.496 1.896-.636-.924-.428-.604-.104-.148c-.56-.8-1.128-1.576-1.764-2.312q-.624-.736-1.372-1.344a4 4 0 0 0-.268-.204l-.148-.1a4.6 4.6 0 0 0-1.276-.62l-.472-.116-.476-.068c-.156-.02-.316-.052-.476-.064l-.48-.036h-.96q-.481.03-.956.108-.948.16-1.864.452c-.576.176-1.156.34-1.748.464l-.032.064v.028h.064a21 21 0 0 0 1.756-.448q.91-.285 1.852-.44.47-.072.944-.096h.712l.24.02.472.036c.156 0 .312.044.472.068l.468.072.456.112c.424.135.828.328 1.2.572l.148.1q.157.108.308.228.742.596 1.364 1.316c.628.716 1.2 1.484 1.756 2.26l.104.148.452.628.8 1.092a.7.7 0 0 1-.108-.244"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M45.546 35.329c-1.104.132-3.56-1.776-4.588-3.46-.068-.116.052-1.372.132-2.908.04-.932.068-1.968.024-2.916l6.02 1.168a15 15 0 0 0-.4 3.668q.01.202.056.4a.3.3 0 0 1 0 .064c.164.72.488 3.78-1.244 3.984"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M41.098 28.697c1.288 1.736 3.2 3.404 5.764 3.008 0-.156-.04-.284-.06-.372a.4.4 0 0 1 0-.064 1.7 1.7 0 0 1-.06-.4 15.2 15.2 0 0 1 .4-3.672l-6-1.164a42 42 0 0 1-.044 2.664"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M39.52 19.27c-.54 2.145.872 8.185 2.44 9.469 2.272 1.864 5.844 1.88 7.388-.8 1.5-2.616-.48-10.456-2.216-11.6-2.56-1.72-6.812-.228-7.612 2.932"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M45.496 22.361s-.028.028-.02.044c.12.4.196.88-.132 1.112v.024c.436-.188.332-.82.152-1.18"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M45.02 22.04c-.66.128-.356 1.444.256 1.323.612-.12.3-1.431-.256-1.323M47.898 21.717s.036 0 .036.028c.084.4.248.868.648.916v.024c-.476.04-.684-.564-.684-.968"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M48.15 21.207c.64-.204 1 1.096.4 1.284s-.94-1.116-.4-1.284M44.36 21.56q.243-.138.468-.3c.18-.117.332-.189.4-.4a.3.3 0 0 0-.124-.329.71.71 0 0 0-.712.092c-.226.126-.397.331-.48.576a.304.304 0 0 0 .448.36M48.483 20.587h-.552a.9.9 0 0 1-.564-.125.29.29 0 0 1-.064-.34.71.71 0 0 1 .656-.291c.258-.01.511.076.708.244a.303.303 0 0 1-.184.512"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M46.143 24.907a1.4 1.4 0 0 0 1.068.4 1.8 1.8 0 0 0 .596-.128l.088-.032a.11.11 0 0 0 .06-.112.2.2 0 0 0 0-.044v-.036c-.064-.316-.208-.8-.208-.8.128.028.772.156.728 0a21.6 21.6 0 0 0-1.516-4.064c-.024-.044-.088 0-.072.024.328 1.3.888 2.532 1.24 3.832a2.4 2.4 0 0 0-.7-.044c-.044.024.288.9.308 1.044a1.98 1.98 0 0 1-1.54-.108c-.06.008-.084.04-.052.068"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M47.498 25.1c-.12.264-.307.493-.54.665a.8.8 0 0 1-.444.131c-.344 0-.424-.308-.424-.576q.002-.215.056-.424c.418.21.89.281 1.352.204"}),J__namespace.default.createElement("path",{fill:"#FF99BA",d:"M46.958 25.764a.8.8 0 0 1-.444.132c-.344 0-.424-.308-.424-.576a.8.8 0 0 1 .868.444"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M39.895 24.4c-.236-.525-2.552-6.205-2.496-6.873.052-.608.732-.468.736-.5s-.06-.572.24-.824a.92.92 0 0 1 .72-.096s0-.58.344-.8a.72.72 0 0 1 .716.044.95.95 0 0 1 .46-.76.62.62 0 0 1 .724.156s.068-.56.42-.72.736.188.736.188.128-.52.576-.596a.72.72 0 0 1 .696.4s.192-.512.612-.588.644.424.644.424.1-.492.5-.524.58.512.58.512a.4.4 0 0 1 .516-.36c.752.12 1.636 3.816 2.028 5.276 0 0-.464-1.076-.772-1.056s-.46.54-1.008.752c-.78.3-2.268-.44-3.344-.032s-1.672 1.656-1.8 3.412c-.164 1.984-1.28 3.808-1.828 2.564"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M41.067 24.174s-1.512-1.872-2.372-1.32.372 3.336 1.448 3.652a1.065 1.065 0 0 0 1.388-.672z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M39.07 23.643v.028c.756.248 1.2.904 1.512 1.6a.59.59 0 0 0-.896-.1.024.024 0 0 0 .011.034q.006.002.013.002a.66.66 0 0 1 .74.18q.232.258.4.56c.04.064.156 0 .124-.052-.072-.964-.892-2.228-1.904-2.252M47.167 32.162h-.02c.26 1.152.8 3.844-1.068 3.972a3.94 3.94 0 0 1-2.124-.66 10.5 10.5 0 0 1-1.808-1.324 15.6 15.6 0 0 1-1.768-1.788c-.02-.028-.064 0-.04.04.548.64 1.028 1.324 1.64 1.916a9 9 0 0 0 1.952 1.472 3.96 3.96 0 0 0 2.252.616 1.496 1.496 0 0 0 1.32-1.352 6.6 6.6 0 0 0-.336-2.892M103.959 23.126l-56.076 5.231 4.173 44.734 56.077-5.231z"}),J__namespace.default.createElement("path",{fill:"#fff",d:"m71.449 57.323-1.476-15.856 17.032 6.408zM53.92 30.075l-3.318.31.217 2.334 3.318-.31zM54.365 34.814l-3.318.309.218 2.334 3.317-.31zM54.802 39.544l-3.318.31.218 2.333 3.318-.31zM55.247 44.278l-3.317.31.217 2.334 3.318-.31zM55.685 49.017l-3.318.31.218 2.333 3.318-.31zM56.126 53.747l-3.317.31.217 2.334 3.318-.31zM56.568 58.485l-3.318.31.218 2.334 3.317-.31zM57.009 63.22l-3.318.31.218 2.333 3.318-.31zM57.454 67.95l-3.317.31.218 2.334 3.317-.31zM101.657 25.622l-3.317.31.218 2.334 3.317-.31zM102.103 30.353l-3.318.31.218 2.333 3.317-.31zM102.54 35.09l-3.317.31.217 2.334 3.318-.31zM102.982 39.825l-3.318.31.218 2.334 3.317-.31zM103.423 44.56l-3.318.31.218 2.333 3.318-.31zM103.868 49.294l-3.317.31.218 2.333 3.317-.31zM104.31 54.028l-3.318.31.218 2.334 3.318-.31zM104.751 58.767l-3.317.31.217 2.333 3.318-.31zM105.193 63.501l-3.318.31.218 2.333 3.317-.31z"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M42.93 38.137c1.083 3.136 5.3 15.848 5.927 16.424 2.532 2.336 8.908 6.432 9.684 7.28 1.064 1.156-3.72 8.284-5.392 8.084-.692-.08-9.2-5.692-11.864-8.444-2.128-2.22-3.236-16.4-3.3-23.008-.056-5.66 2.848-6.416 4.944-.336"}),J__namespace.default.createElement("path",{fill:"url(#paint25_linear_53604_15544)",d:"m38.116 49.176 8.728-.584s-2.76-10.372-5.552-14.08-3.352.024-3.476 2.868.3 11.796.3 11.796"}),J__namespace.default.createElement("path",{fill:"#fff",d:"M46.697 48.006a8.3 8.3 0 0 0-2.204.744h-.312a1 1 0 0 1 .088-.048 8.8 8.8 0 0 1 2.4-.8c-.004.04.028.072.028.104m-3.564-10.224q-.79.49-1.628.888c-.204.096-.4.18-.624.26l-.128.048q-.511.182-1.044.276a4.9 4.9 0 0 1-1.868-.04h-.032v.16l.236.052.244.032.24.032h.484l.244-.02h.244c.08 0 .156-.028.236-.04q.614-.105 1.2-.32l.132-.052q.265-.101.524-.22a15 15 0 0 0 1.628-.888zm1.084 2.624a9 9 0 0 1-2.956-1.22 3 3 0 0 1-.212-.144l-.168-.112a25 25 0 0 0-2.52-1.772 8 8 0 0 0-.504-.26v.08q.243.11.472.248 1.273.796 2.432 1.752l.164.116c.092.068.184.128.28.192a9.2 9.2 0 0 0 3.084 1.288c-.04-.056-.06-.112-.084-.168zm-2.348-5.06h-.604q-.481.03-.956.108-.95.16-1.864.452l-.524.156a1 1 0 0 0 0 .1l.56-.16q.91-.285 1.852-.44.469-.072.944-.096h.672z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M38.347 47.231c1.2-.188 2.456-.232 3.676-.312s2.504-.076 3.756-.132c.036 0 .04.06 0 .064-1.224.108-2.444.264-3.672.328a36 36 0 0 1-3.76.084s-.016-.028 0-.032"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M37.443 41.82q.132.792.276 1.577c0-1.092 0-2.188.024-3.28 0-.028.048-.028.048 0 .116 1.52.184 3.048.236 4.568s.148 2.948.096 4.4l.328.024q.019 0 .031.013a.044.044 0 0 1 0 .062.04.04 0 0 1-.03.013l-.4.052a.08.08 0 0 1-.064-.016.08.08 0 0 1-.033-.056c-.18-1.508-.188-3.06-.22-4.576v-.744q-.242-1.007-.364-2.036a.04.04 0 0 1 .015-.017.04.04 0 0 1 .057.017M46.521 48.618l.32-.049-.024.033c-.248-.644-.468-1.296-.692-1.944s-.424-1.312-.624-1.973c-.2-.66-.4-1.32-.564-2s-.352-1.332-.492-2c.256.64.484 1.288.704 1.94q.33.98.636 1.968c.204.66.4 1.316.576 2s.356 1.332.508 2v.032h-.356z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M45.2 41.42c.166.646.203 1.32.108 1.98a4.9 4.9 0 0 1-.108-1.98"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M62.735 65.821c-.4-.528-.112-.736 1.012-.42s5.3 2.512 5.944.992-5.296-4.54-7.2-4.92-5.132-.328-5.132-.328c1.032.804 3.36 3.028 5.376 4.676"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M52.2 69.383c3.007 2.672 6.615 5.12 10.8 5.54.462.057.932-.043 1.331-.284 1.872.22 2.54-.596 2.54-.596 1.804-.328 2.372-1.26 2.372-1.26s1.524 0 1.6-1.072-2.352-1.868-4.084-2.96c-3.96-2.496-8.332-6.8-9.4-7.624z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M61.33 69.42a30 30 0 0 0 3.6 2c1.397.55 2.833.995 4.296 1.332q.016 0 .025.01a.036.036 0 0 1 0 .052.04.04 0 0 1-.025.01 15.9 15.9 0 0 1-7.908-3.344c-.072-.06-.048-.1.012-.06M59.473 71.587c1.2.628 3.28 1.72 7.408 2.4v.024a14.3 14.3 0 0 1-7.432-2.38c-.076-.032-.052-.084.024-.044M58.503 72.77c2.056.996 3.48 1.36 5.828 1.856v.028c-2.724-.288-3.68-.7-5.868-1.816-.08-.04-.044-.104.04-.068"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M73.36 24.118c1.503-.72 3.367-2.528 4.595-2.68a1.42 1.42 0 0 1 1.508.8s.604-1.228 1.744-1.2c.588.024 1.064.98 1.064.98a1.69 1.69 0 0 1 1.54-.86c.8.08 1.164 1.028 1.164 1.028s.94-.688 1.732-.344c1.6.704 1.636 7.648-.916 8.732-1.2.504-1.108-1.2-1.108-1.2s-.708 2.4-2.14 2.452-1.2-2.156-1.2-2.156-.712 2.332-2.2 2.228c-1.552-.112-.928-2.268-.928-2.268s-1.044 1.548-2.164 1.2c-1.852-.568.464-3.5.092-5.024l-2.52-.832z"}),J__namespace.default.createElement("path",{fill:"#774442",d:"M75.546 22.72c-1.484.557-3.324-1.275-4.82-.943-2 .448-.028 2.716 2.912 3.2h2.352z"}),J__namespace.default.createElement("path",{fill:"#263238",d:"M85.053 22.322c0-.024.032-.028.036 0a12.04 12.04 0 0 1-.4 7.156c-.028.072-.16.056-.14-.028a24.6 24.6 0 0 0 .504-7.128M82.298 21.982c0-.029.04-.032.048 0 .634 2.62.308 5.38-.92 7.78-.044.084-.168.111-.124 0 .748-1.66 1.188-5.544.996-7.78M78.076 29.779c1.172-2.356 1.476-4.852 1.416-7.464 0-.032.048-.032.056 0 .376 1.268.24 2.936.024 4.224a6.94 6.94 0 0 1-1.416 3.288c-.028.032-.108-.008-.08-.048"}),J__namespace.default.createElement("defs",null,J__namespace.default.createElement("linearGradient",{id:"paint0_linear_53604_15544",x1:"152.46",x2:"152.46",y1:"72.174",y2:"134.522",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint1_linear_53604_15544",x1:"149.607",x2:"149.607",y1:"72.299",y2:"118.379",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint2_linear_53604_15544",x1:"164.993",x2:"164.993",y1:"92.424",y2:"140.344",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint3_linear_53604_15544",x1:"165.549",x2:"165.549",y1:"92.115",y2:"123.707",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint4_linear_53604_15544",x1:"145.795",x2:"145.795",y1:"103.779",y2:"139.058",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint5_linear_53604_15544",x1:"143.849",x2:"143.849",y1:"103.607",y2:"125.519",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint6_linear_53604_15544",x1:"87.088",x2:"87.088",y1:"5.131",y2:"28.495",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint7_linear_53604_15544",x1:"114.852",x2:"114.852",y1:"96.678",y2:"97.678",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint8_linear_53604_15544",x1:"87.098",x2:"87.098",y1:"97.279",y2:"97.679",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint9_linear_53604_15544",x1:"59.348",x2:"59.348",y1:"96.678",y2:"97.678",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint10_linear_53604_15544",x1:"59.048",x2:"59.048",y1:"55.166",y2:"95.086",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint11_linear_53604_15544",x1:"59.348",x2:"59.348",y1:"52.709",y2:"53.709",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint12_linear_53604_15544",x1:"87.098",x2:"87.098",y1:"52.709",y2:"53.109",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint13_linear_53604_15544",x1:"114.852",x2:"114.852",y1:"52.709",y2:"53.709",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint14_linear_53604_15544",x1:"115.153",x2:"115.153",y1:"55.166",y2:"95.086",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint15_linear_53604_15544",x1:"87.119",x2:"87.119",y1:"63.322",y2:"86.258",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint16_linear_53604_15544",x1:"70.895",x2:"70.895",y1:"108.025",y2:"110.057",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint17_linear_53604_15544",x1:"122.495",x2:"122.495",y1:"32.287",y2:"38.219",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint18_linear_53604_15544",x1:"122.477",x2:"122.477",y1:"36.506",y2:"41.203",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint19_linear_53604_15544",x1:"122.482",x2:"122.482",y1:"40.764",y2:"44.218",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint20_linear_53604_15544",x1:"122.481",x2:"122.481",y1:"44.217",y2:"46.929",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint21_linear_53604_15544",x1:"54.396",x2:"54.396",y1:"145.561",y2:"160.182",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint22_linear_53604_15544",x1:"12.897",x2:"12.897",y1:"134.576",y2:"160.063",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint23_linear_53604_15544",x1:"48.712",x2:"48.712",y1:"30.584",y2:"41.103",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint24_linear_53604_15544",x1:"41.286",x2:"41.286",y1:"30.525",y2:"63.852",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"})),J__namespace.default.createElement("linearGradient",{id:"paint25_linear_53604_15544",x1:"42.318",x2:"42.318",y1:"32.959",y2:"49.176",gradientUnits:"userSpaceOnUse"},J__namespace.default.createElement("stop",{stopColor:"#0B89CE"}),J__namespace.default.createElement("stop",{offset:"1",stopColor:"#2C8EFE"}))));function DN({onSelectVideo:e,fileInputRef:t,handleMediaUpload:o}){let{translate:r}=Oe();return J__namespace.default.createElement("div",{className:"flex flex-col items-center mt-32 lg:mt-0 justify-center text-center py-8"},J__namespace.default.createElement("div",{className:"mb-4 lg:mb-6"},J__namespace.default.createElement(TN,null)),J__namespace.default.createElement("p",{className:"text-xs lg:text-sm font-medium mb-4 lg:mb-8"},r("feed.create-post.reel.upload-prompt.title")),J__namespace.default.createElement(le,{className:"bg-primary hover:bg-primary/90 text-white px-8 py-2 lg:py-6 rounded-lg text-sm lg:text-base",onClick:e},r("feed.create-post.reel.upload-prompt.button")),J__namespace.default.createElement("input",{type:"file",ref:t,className:"hidden",accept:"video/*",onChange:n=>o(n.target.files)}))}var LN=({value:e,onChange:t,className:o})=>{let{translate:r}=Oe(),n=J.useRef(null),a=()=>{let s=n.current;s&&(s.style.height="80px",s.style.height=`${Math.min(s.scrollHeight,320)}px`);};return J.useEffect(()=>{a();},[e]),J__namespace.default.createElement("textarea",{ref:n,value:e,onChange:s=>t(s.target.value),onInput:a,placeholder:r("feed.create-post.add-description"),className:`w-full pt-4 text-gray-700 resize-none border-none focus:outline-none focus:ring-0 min-h-[80px] max-h-[320px] overflow-y-auto ${o}`,style:{height:"80px",maxHeight:"320px"}})};function FN({videoUrl:e,content:t,setContent:o,onSummarize:r,onPublish:n,onDelete:a}){let{translate:s}=Oe();return J__namespace.default.createElement("div",{className:"space-y-4 flex flex-col min-h-[78dvh] lg:min-h-0"},J__namespace.default.createElement(LN,{value:t,onChange:o}),J__namespace.default.createElement("div",{className:"flex-1 lg:flex-none"},J__namespace.default.createElement("div",{className:"relative rounded-lg overflow-hidden"},J__namespace.default.createElement("div",{className:"aspect-video w-full"},J__namespace.default.createElement("video",{src:e,className:"w-full h-full object-cover",controls:true})),J__namespace.default.createElement(le,{variant:"ghost",size:"icon",className:"absolute top-3 right-3 bg-black/50 hover:bg-black/70 text-white rounded-full h-10 w-10",onClick:a},J__namespace.default.createElement(lucideReact.Trash2,{className:"h-5 w-5"})))),J__namespace.default.createElement("div",{className:"flex items-center justify-between pt-4"},J__namespace.default.createElement(r4,{isForReels:true}),J__namespace.default.createElement("div",{className:"flex gap-3"},J__namespace.default.createElement(le,{variant:"outline",className:"bg-[#e6f4fb] border border-[#0b89ce] text-primary hover:bg-[#d6eef9] px-6",onClick:r},J__namespace.default.createElement(lucideReact.Sparkles,{className:"h-4 w-4 mr-2 fill-[#0b89ce]"}),s("feed.create-post.buttons.resume")),J__namespace.default.createElement(le,{className:"hidden lg:block bg-primary hover:bg-primary/90 text-white px-8",onClick:n},s("feed.create-post.buttons.publish")))))}function l4({onSubmit:e}){let{uploadedMedia:t,handleMediaUpload:o,resetForm:r}=zt(),n=J.useRef(null),{content:a,setContent:s}=zt(),i=()=>{var c;(c=n.current)==null||c.click();},l=()=>{e({content:a,media:t}),r(),s("");},d=()=>{s("V\xEDdeo sobre reuni\xE3o de trabalho com discuss\xE3o de documentos importantes.");};return J__namespace.default.createElement("div",{className:"lg:px-0 px-4 py-4"},t.length===0?J__namespace.default.createElement(DN,{onSelectVideo:i,fileInputRef:n,handleMediaUpload:o}):J__namespace.default.createElement(FN,{videoUrl:t[0],content:a,setContent:s,onSummarize:d,onPublish:l,onDelete:()=>r()}))}function lf({onCancel:e,onConfirm:t,isValidSchedule:o}){let{translate:r}=Oe();return J__namespace.default.createElement("div",{className:"flex gap-3 flex-shrink-0 justify-end w-full"},J__namespace.default.createElement(Vo,{onClick:e,className:"!flex-none text-primary bg-white hover:bg-gray-50 rounded-lg border border-primary py-2 px-4 font-medium text-sm whitespace-nowrap"},r("feed.create-post.schedule.cancel-button")),J__namespace.default.createElement(Vo,{onClick:t,disabled:!o,className:"!flex-none bg-primary hover:bg-primary/90 text-white disabled:opacity-50 rounded-lg py-2 px-4 font-medium text-sm whitespace-nowrap"},r("feed.create-post.schedule.schedule-button")))}var AX=e=>{let o=/(\d{1,2})h\s*(\d{1,2})m/.exec(e);return o?{hours:parseInt(o[1])||0,minutes:parseInt(o[2])||0}:{hours:0,minutes:0}},NX=(e,t)=>`${e.toString().padStart(2,"0")}h ${t.toString().padStart(2,"0")}m`;function BN({value:e,onChange:t,onFocus:o,placeholder:r="00h 00m"}){let[n,a]=J.useState(false),{hours:s,minutes:i}=AX(e),l=J.useRef(null),d=J.useRef(null);J.useEffect(()=>{n&&setTimeout(()=>{var m,v;let u=(m=l.current)==null?void 0:m.querySelector(`[data-hour="${s}"]`),g=(v=d.current)==null?void 0:v.querySelector(`[data-minute="${i}"]`);u==null||u.scrollIntoView({block:"center",behavior:"smooth"}),g==null||g.scrollIntoView({block:"center",behavior:"smooth"});},100);},[n,s,i]);let c=(u,g)=>{let v={target:{value:NX(u,g)}};t(v),a(false);},p=Array.from({length:24},(u,g)=>g),f=Array.from({length:60},(u,g)=>g);return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("style",null,`
|
|
2435
2435
|
.time-picker-scroll::-webkit-scrollbar {
|
|
2436
2436
|
width: 4px;
|
|
2437
2437
|
}
|
|
@@ -2450,7 +2450,7 @@ query UserArticlesPosts($userId: String!) {
|
|
|
2450
2450
|
scrollbar-width: thin;
|
|
2451
2451
|
scrollbar-color: #E4EBF1 transparent;
|
|
2452
2452
|
}
|
|
2453
|
-
`),J__namespace.default.createElement(Tn,{open:n,onOpenChange:a},J__namespace.default.createElement(Dn,{asChild:true},J__namespace.default.createElement(le,{variant:"outline",className:"w-full justify-start h-[54px] px-4 border border-[#E4EBF1] rounded-[10px] bg-white hover:bg-white focus:bg-white"},J__namespace.default.createElement(Ri,{fontSize:"20px",className:"flex-shrink-0 mr-2"}),J__namespace.default.createElement("span",{className:"text-sm font-medium text-gray-900"},e||r))),J__namespace.default.createElement(Ln,{className:"w-auto p-0 border border-gray-200 shadow-lg rounded-lg !z-[10000] bg-white",align:"start",sideOffset:8},J__namespace.default.createElement("div",{className:"flex bg-white rounded-lg overflow-hidden"},J__namespace.default.createElement("div",{ref:l,className:"time-picker-scroll max-h-[240px] overflow-y-auto scroll-smooth py-3 bg-white",style:{width:"80px"}},p.map(u=>J__namespace.default.createElement("button",{key:u,"data-hour":u,type:"button",onClick:()=>c(u,i),className:`w-full px-4 py-2.5 text-sm transition-all duration-200 ease-in-out bg-white ${s===u?"bg-primary/10 text-primary font-semibold":"text-gray-700 hover:bg-gray-50"}`},u.toString().padStart(2,"0")))),J__namespace.default.createElement("div",{className:"border-l border-gray-200 my-2"}),J__namespace.default.createElement("div",{ref:d,className:"time-picker-scroll max-h-[240px] overflow-y-auto scroll-smooth py-3 bg-white",style:{width:"80px"}},f.map(u=>J__namespace.default.createElement("button",{key:u,"data-minute":u,type:"button",onClick:()=>c(s,u),className:`w-full px-4 py-2.5 text-sm transition-all duration-200 ease-in-out bg-white ${i===u?"bg-primary/10 text-primary font-semibold":"text-gray-700 hover:bg-gray-50"}`},u.toString().padStart(2,"0"))))))))}var ON={months:"flex flex-col space-y-2 w-full capitalize",month:"space-y-2 w-full",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-base sm:text-lg font-semibold",nav:"space-x-1 flex items-center",nav_button:"h-7 w-7 sm:h-8 sm:w-8 bg-transparent p-0 opacity-70 hover:opacity-100 rounded-md hover:bg-gray-100",nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex w-full",head_cell:"text-gray-500 rounded-md flex-1 font-medium text-xs sm:text-sm text-center",row:"flex w-full mt-1",cell:"flex-1 aspect-square text-center text-xs sm:text-sm p-0 relative first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:"h-full w-full p-0 font-normal aria-selected:opacity-100 rounded-[0.625rem] hover:bg-gray-100 transition-colors flex items-center justify-center aspect-square",day_selected:"bg-primary text-primary-foreground hover:bg-primary/90 focus:bg-primary/90 text-white",day_today:"bg-gray-100 text-white font-semibold",day_outside:"text-gray-400 opacity-50",day_disabled:"text-gray-400 opacity-50"},HN="rounded-md border-0 w-full max-w-sm sm:max-w-md bg-white";function UN(){let e=J.useMemo(()=>o=>{let r=new Date;r.setHours(0,0,0,0);let n=new Date(o);return n.setHours(0,0,0,0),n<r},[]),t=J.useMemo(()=>o=>!e(o),[e]);return {isDateDisabled:e,isDateValid:t}}function _N({selectedDate:e,setSelectedDate:t,calendarLocale:o}){let[r,n]=J.useState(false),{isDateDisabled:a}=UN();return J__namespace.default.createElement(Tn,{open:r,onOpenChange:n},J__namespace.default.createElement(Dn,{asChild:true},J__namespace.default.createElement(le,{variant:"outline",className:"w-full justify-between h-[54px] px-4 border border-[#E4EBF1] rounded-[10px] bg-white hover:bg-white focus:bg-white"},J__namespace.default.createElement("span",{className:"text-sm font-medium text-gray-900"},e?(i=>i?dateFns.format(i,"dd/MM/yyyy",{locale:locale.ptBR}):"")(e):"Selecione uma data"),J__namespace.default.createElement(lucideReact.ChevronDown,{className:"h-4 w-4 text-gray-400"}))),J__namespace.default.createElement(Ln,{className:"w-auto p-0 border border-gray-200 shadow-lg rounded-lg !z-[10000] bg-white",align:"start",sideOffset:8},J__namespace.default.createElement(j3,{locale:o,mode:"single",selected:e,onSelect:i=>{t(i),n(false);},disabled:a,className:HN,classNames:ON})))}function cf({selectedDate:e,setSelectedDate:t,timeInput:o,handleTimeInputChange:r,handleTimeInputFocus:n,calendarLocale:a}){Oe();return J__namespace.default.createElement("div",{className:"space-y-4"},J__namespace.default.createElement(_N,{selectedDate:e,setSelectedDate:t,calendarLocale:a}),J__namespace.default.createElement(BN,{value:o,onChange:r,onFocus:n}))}function VN(e){return e&&e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}var
|
|
2453
|
+
`),J__namespace.default.createElement(Tn,{open:n,onOpenChange:a},J__namespace.default.createElement(Dn,{asChild:true},J__namespace.default.createElement(le,{variant:"outline",className:"w-full justify-start h-[54px] px-4 border border-[#E4EBF1] rounded-[10px] bg-white hover:bg-white focus:bg-white"},J__namespace.default.createElement(Ri,{fontSize:"20px",className:"flex-shrink-0 mr-2"}),J__namespace.default.createElement("span",{className:"text-sm font-medium text-gray-900"},e||r))),J__namespace.default.createElement(Ln,{className:"w-auto p-0 border border-gray-200 shadow-lg rounded-lg !z-[10000] bg-white",align:"start",sideOffset:8},J__namespace.default.createElement("div",{className:"flex bg-white rounded-lg overflow-hidden"},J__namespace.default.createElement("div",{ref:l,className:"time-picker-scroll max-h-[240px] overflow-y-auto scroll-smooth py-3 bg-white",style:{width:"80px"}},p.map(u=>J__namespace.default.createElement("button",{key:u,"data-hour":u,type:"button",onClick:()=>c(u,i),className:`w-full px-4 py-2.5 text-sm transition-all duration-200 ease-in-out bg-white ${s===u?"bg-primary/10 text-primary font-semibold":"text-gray-700 hover:bg-gray-50"}`},u.toString().padStart(2,"0")))),J__namespace.default.createElement("div",{className:"border-l border-gray-200 my-2"}),J__namespace.default.createElement("div",{ref:d,className:"time-picker-scroll max-h-[240px] overflow-y-auto scroll-smooth py-3 bg-white",style:{width:"80px"}},f.map(u=>J__namespace.default.createElement("button",{key:u,"data-minute":u,type:"button",onClick:()=>c(s,u),className:`w-full px-4 py-2.5 text-sm transition-all duration-200 ease-in-out bg-white ${i===u?"bg-primary/10 text-primary font-semibold":"text-gray-700 hover:bg-gray-50"}`},u.toString().padStart(2,"0"))))))))}var ON={months:"flex flex-col space-y-2 w-full capitalize",month:"space-y-2 w-full",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-base sm:text-lg font-semibold",nav:"space-x-1 flex items-center",nav_button:"h-7 w-7 sm:h-8 sm:w-8 bg-transparent p-0 opacity-70 hover:opacity-100 rounded-md hover:bg-gray-100",nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex w-full",head_cell:"text-gray-500 rounded-md flex-1 font-medium text-xs sm:text-sm text-center",row:"flex w-full mt-1",cell:"flex-1 aspect-square text-center text-xs sm:text-sm p-0 relative first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:"h-full w-full p-0 font-normal aria-selected:opacity-100 rounded-[0.625rem] hover:bg-gray-100 transition-colors flex items-center justify-center aspect-square",day_selected:"bg-primary text-primary-foreground hover:bg-primary/90 focus:bg-primary/90 text-white",day_today:"bg-gray-100 text-white font-semibold",day_outside:"text-gray-400 opacity-50",day_disabled:"text-gray-400 opacity-50"},HN="rounded-md border-0 w-full max-w-sm sm:max-w-md bg-white";function UN(){let e=J.useMemo(()=>o=>{let r=new Date;r.setHours(0,0,0,0);let n=new Date(o);return n.setHours(0,0,0,0),n<r},[]),t=J.useMemo(()=>o=>!e(o),[e]);return {isDateDisabled:e,isDateValid:t}}function _N({selectedDate:e,setSelectedDate:t,calendarLocale:o}){let[r,n]=J.useState(false),{isDateDisabled:a}=UN();return J__namespace.default.createElement(Tn,{open:r,onOpenChange:n},J__namespace.default.createElement(Dn,{asChild:true},J__namespace.default.createElement(le,{variant:"outline",className:"w-full justify-between h-[54px] px-4 border border-[#E4EBF1] rounded-[10px] bg-white hover:bg-white focus:bg-white"},J__namespace.default.createElement("span",{className:"text-sm font-medium text-gray-900"},e?(i=>i?dateFns.format(i,"dd/MM/yyyy",{locale:locale.ptBR}):"")(e):"Selecione uma data"),J__namespace.default.createElement(lucideReact.ChevronDown,{className:"h-4 w-4 text-gray-400"}))),J__namespace.default.createElement(Ln,{className:"w-auto p-0 border border-gray-200 shadow-lg rounded-lg !z-[10000] bg-white",align:"start",sideOffset:8},J__namespace.default.createElement(j3,{locale:o,mode:"single",selected:e,onSelect:i=>{t(i),n(false);},disabled:a,className:HN,classNames:ON})))}function cf({selectedDate:e,setSelectedDate:t,timeInput:o,handleTimeInputChange:r,handleTimeInputFocus:n,calendarLocale:a}){Oe();return J__namespace.default.createElement("div",{className:"space-y-4"},J__namespace.default.createElement(_N,{selectedDate:e,setSelectedDate:t,calendarLocale:a}),J__namespace.default.createElement(BN,{value:o,onChange:r,onFocus:n}))}function VN(e){return e&&e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}var zX=new Date;function qN({initialDate:e,onScheduleSelect:t}){let [o,r]=J.useState(e||zX),[n,a]=J.useState("08h 00m");Oe();let {locale:i}=M();J.useEffect(()=>{if(e){let m=e.getHours(),v=e.getMinutes();a(`${m.toString().padStart(2,"0")}h ${v.toString().padStart(2,"0")}m`);}},[e]);let l=m=>{let v=m.replace(/\D/g,"");if(v.length===0)return "00h 00m";if(v.length<=2){let x=parseInt(v)||0;return x=Math.min(x,23),`${x.toString().padStart(2,"0")}h 00m`}let h=parseInt(v.slice(0,2))||0,b=parseInt(v.slice(2))||0;return h=Math.min(h,23),b=Math.min(b,59),`${h.toString().padStart(2,"0")}h ${b.toString().padStart(2,"0")}m`},d=m=>{let v=l(m.target.value);a(v);},c=m=>{m.target.select();},p=()=>{var C,A;let m=new Date,h={pt:"pt-BR",en:"en-US",fr:"fr-FR"}[i]||"pt-BR",{timeZone:b}=Intl.DateTimeFormat().resolvedOptions(),x=dateFns.format(m,"d 'de' MMM, HH:mm",{locale:locale.ptBR}),w=(A=(C=new Intl.DateTimeFormat(h,{timeZone:b,timeZoneName:"long"}).formatToParts(m).find(k=>k.type==="timeZoneName"))==null?void 0:C.value)!=null?A:b;return `Aqui, ${VN(x)} ${w}`},f=m=>{let h=/(\d{1,2})h\s*(\d{1,2})m/.exec(m);if(h){let b=parseInt(h[1],10),x=parseInt(h[2],10);if(b>=0&&b<24&&x>=0&&x<60)return {hours:b,minutes:x}}return null};return {selectedDate:o,setSelectedDate:r,timeInput:n,handleTimeInputChange:d,handleTimeInputFocus:c,getCurrentDateTime:p,handleConfirm:()=>{if(o){let m=f(n);if(m){let v=new Date(o);v.setHours(m.hours,m.minutes),t(v);}}},isValidSchedule:()=>{if(!o)return false;let m=f(n);if(!m)return false;let v=new Date(o);return v.setHours(m.hours,m.minutes),v>new Date}}}function QN(){let{translate:e}=Oe();return J__namespace.default.createElement("div",{className:"flex items-center justify-start"},J__namespace.default.createElement("h2",{className:"text-lg font-semibold text-gray-900"},e("feed.create-post.schedule.schedule-publication")))}var GX={pt:locale.ptBR,fr:locale.fr,en:locale.enUS};function KN({locale:e}){return GX[e]}function El({onBack:e,onScheduleSelect:t,onClose:o,initialDate:r,onViewScheduledPosts:n}){let {selectedDate:a,setSelectedDate:s,timeInput:i,handleTimeInputChange:l,handleTimeInputFocus:d,getCurrentDateTime:c,handleConfirm:p,isValidSchedule:f}=qN({initialDate:r,onScheduleSelect:t}),{locale:u}=M();Oe();let m=()=>{o?o():e();},v=KN({locale:u});return J__namespace.default.createElement("div",{className:"flex flex-col h-full px-4 lg:px-6 py-6"},J__namespace.default.createElement(QN,null),J__namespace.default.createElement("div",{className:"flex-shrink-0 mt-4 mb-6"},J__namespace.default.createElement("div",{className:"flex items-start gap-2"},J__namespace.default.createElement(Ri,{fontSize:"20px",className:"flex-shrink-0"}),J__namespace.default.createElement("p",{className:"text-xs text-[#687588] font-medium leading-relaxed"},c()))),J__namespace.default.createElement("div",{className:"flex-1 min-h-0"},J__namespace.default.createElement(cf,{selectedDate:a,setSelectedDate:s,timeInput:i,handleTimeInputChange:l,handleTimeInputFocus:d,calendarLocale:v})),J__namespace.default.createElement("div",{className:"mt-4 mb-4"},J__namespace.default.createElement("button",{onClick:n||(()=>{}),className:"text-primary text-sm hover:underline"},"Visualizar todas as publica\xE7\xF5es agendadas")),J__namespace.default.createElement("div",{className:"flex-shrink-0 bg-white pt-4"},J__namespace.default.createElement(lf,{onCancel:m,onConfirm:p,isValidSchedule:f()})))}var ZN=hf.gql`
|
|
2454
2454
|
query GetPosts($options: GetUserPostsQueryInput) {
|
|
2455
2455
|
recommendedPostsUser(options: $options) {
|
|
2456
2456
|
meta {
|
|
@@ -3135,5 +3135,5 @@ query UserArticlesPosts($userId: String!) {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
}
|
|
3137
3137
|
}
|
|
3138
|
-
`;var GX=e=>j(void 0,null,function*(){var r,n,a,s;let{user:t,feedApi:o}=M();try{return yield hf__default.default(o!=null?o:"",YN,{options:{page:e,perPage:2,sort:"scheduledAt",sortDir:"asc"}},{"x-access-token":(r=t==null?void 0:t.accessToken)!=null?r:""})}catch(i){let l=yield hf__default.default(o!=null?o:"",ZN,{options:{page:1,perPage:2,sort:"createdAt",sortDir:"desc"}},{"x-access-token":(n=t==null?void 0:t.accessToken)!=null?n:""}),c=(((s=(a=l==null?void 0:l.recommendedPostsUser)==null?void 0:a.data)==null?void 0:s.flatMap(b=>[...b.reels||[],...b.normalPosts||[]]))||[]).filter(b=>b.scheduledAt),p=2,f=e||1,u=(f-1)*p,g=u+p,m=c.slice(u,g),v=c.length,h=Math.ceil(v/p);return {scheduledPosts:{meta:{currentPage:f,perPage:p,lastPage:h,total:v},data:m}}}});function XN({enabled:e=false}={}){let{user:t}=M(),o=(t==null?void 0:t.id)||"",{data:r,isLoading:n,refetch:a,isRefetching:s,hasNextPage:i,fetchNextPage:l,isFetchingNextPage:d}=yt({queryFn:({pageParam:f})=>GX(f),enabled:!!o&&e,initialPageParam:1,queryKey:["scheduled-posts",o],getNextPageParam:f=>{var g;let u=(g=f==null?void 0:f.scheduledPosts)==null?void 0:g.meta;if(u&&u.currentPage<u.lastPage)return u.currentPage+1}});return {scheduledPosts:(r==null?void 0:r.pages.flatMap(f=>{var u;return ((u=f==null?void 0:f.scheduledPosts)==null?void 0:u.data)||[]}))||[],isLoadingScheduledPosts:n,refetchScheduledPosts:a,isRefetchingScheduledPosts:s,hasNextPage:i,fetchNextPage:l,isFetchingNextPage:d,loadMorePosts:()=>{i&&l();}}}function P5({enabled:e,onPostDeleted:t,onPostUpdated:o}){let[r,n]=J.useState(null),{scheduledPosts:a,isLoadingScheduledPosts:s,refetchScheduledPosts:i,isRefetchingScheduledPosts:l,hasNextPage:d,fetchNextPage:c,isFetchingNextPage:p,loadMorePosts:f}=XN({enabled:e}),[u,{rootRef:g}]=EM__default.default({loading:p,hasNextPage:d||false,onLoadMore:f,disabled:!e||s,rootMargin:"0px 0px 100px 0px"}),m=J.useCallback(()=>{n("delete"),t==null||t(),e&&i();},[e,t,i]),v=J.useCallback(()=>{n("update"),o==null||o(),e&&i();},[e,o,i]),h=J.useCallback(()=>{e&&i();},[e,i]);return {scheduledPosts:a,isLoadingScheduledPosts:s,isRefetchingScheduledPosts:l,hasNextPage:d,fetchNextPage:c,isFetchingNextPage:p,loadMorePosts:f,handlePostDeleted:m,handlePostUpdated:v,forceRefetch:h,lastAction:r,infiniteRef:u,rootRef:g}}var VX=e=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},J__namespace.createElement("path",{fill:"#E53E3E",d:"M13.096 6.326c0 .045-.356 4.539-.559 6.43-.127 1.16-.875 1.865-1.997 1.885q-1.293.027-2.537.026-1.324.001-2.582-.026c-1.084-.026-1.833-.744-1.954-1.885-.208-1.898-.557-6.385-.564-6.43a.53.53 0 0 1 .127-.372.47.47 0 0 1 .35-.156h9.246c.133 0 .254.058.349.156a.5.5 0 0 1 .12.372",opacity:"0.4"}),J__namespace.createElement("path",{fill:"#E53E3E",d:"M14 3.984a.48.48 0 0 0-.475-.488H11.58a.854.854 0 0 1-.827-.678l-.11-.486a1.32 1.32 0 0 0-1.268-.999H6.624c-.596 0-1.117.412-1.275 1.03l-.102.456a.855.855 0 0 1-.827.677H2.476A.48.48 0 0 0 2 3.984v.254c0 .267.216.488.476.488h11.049c.26 0 .475-.22.475-.488z"})),mf=VX;var jX=e=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},J__namespace.createElement("path",{fill:"#A8A8A8",d:"M13.328 12.636H9.532a.68.68 0 0 0-.671.682c0 .377.3.682.671.682h3.796c.37 0 .672-.305.672-.682a.68.68 0 0 0-.672-.682",opacity:"0.4"}),J__namespace.createElement("path",{fill:"#A8A8A8",d:"m6.873 4.603 3.597 2.906c.087.07.101.197.034.286l-4.265 5.557a1.4 1.4 0 0 1-1.086.545l-2.328.028a.265.265 0 0 1-.261-.207l-.53-2.3c-.091-.424 0-.86.269-1.198l4.285-5.583a.2.2 0 0 1 .285-.034"}),J__namespace.createElement("path",{fill:"#A8A8A8",d:"m12.08 5.777-.693.866a.2.2 0 0 1-.282.032L7.504 3.757a.206.206 0 0 1-.029-.288l.669-.831c.607-.781 1.665-.853 2.518-.172l.981.781c.402.316.67.731.762 1.168.106.481-.007.953-.325 1.362",opacity:"0.4"})),uf=jX;function j0({handleEditScheduledPost:e,handleDeleteScheduledPost:t,isSubmitting:o,selectedPostForAction:r,isDropdown:n=false,onClose:a}){let{translate:s}=Oe(),i=()=>{e(r),a==null||a();},l=()=>{t(r),a==null||a();};return n?J__namespace.default.createElement("div",{className:"absolute right-0 top-full mt-1 z-50 bg-white border border-gray-200 rounded-[16px] py-2 min-w-[140px] "},J__namespace.default.createElement("button",{onClick:i,className:"w-full flex items-center gap-3 px-4 py-2 text-left hover:bg-gray-50 transition-colors",disabled:o},J__namespace.default.createElement(uf,null),J__namespace.default.createElement("span",{className:"font-medium text-gray-900"},s("feed.create-post.schedule.edit-button"))),J__namespace.default.createElement("button",{onClick:l,className:"w-full flex items-center gap-3 px-4 py-2 text-left hover:bg-gray-50 transition-colors",disabled:o},J__namespace.default.createElement(mf,null),J__namespace.default.createElement("span",{className:"font-medium text-red-500"},s("feed.create-post.schedule.delete-button")))):J__namespace.default.createElement("div",{className:"flex flex-col items-center h-fit w-[110px] bg-white p-4"},J__namespace.default.createElement("div",{className:"flex-1 space-y-4 w-full flex flex-col items-center"},J__namespace.default.createElement("button",{onClick:i,className:"w-fit flex items-center gap-2 justify-between text-left rounded-lg",disabled:o},J__namespace.default.createElement(uf,null),J__namespace.default.createElement("div",null,J__namespace.default.createElement("p",{className:"font-medium text-gray-900"},s("feed.create-post.schedule.edit-button")))),J__namespace.default.createElement("button",{onClick:l,className:"w-fit flex items-center gap-2 justify-between text-left rounded-lg",disabled:o},J__namespace.default.createElement(mf,null),J__namespace.default.createElement("div",null,J__namespace.default.createElement("p",{className:"font-medium text-red-500"},s("feed.create-post.schedule.delete-button"))))))}var qX=e=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"55",height:"55",fill:"none",viewBox:"0 0 55 55"},J__namespace.createElement("rect",{width:"55",height:"55",fill:"#0B89CE",fillOpacity:"0.1",rx:"27.5"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M40.833 27.5c0 7.365-5.97 13.333-13.333 13.333S14.166 34.865 14.166 27.5c0-7.363 5.97-13.333 13.334-13.333s13.333 5.97 13.333 13.333",opacity:"0.4"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M32.265 32.586c-.175 0-.351-.045-.512-.14l-5.235-3.123a1 1 0 0 1-.487-.86v-6.73a1 1 0 0 1 2 0v6.162l4.747 2.83a1.002 1.002 0 0 1-.513 1.86"})),A5=qX;function $N(){let{translate:e}=Oe();return J__namespace.default.createElement("div",{className:"flex items-center justify-start p-6 gap-4 flex-shrink-0"},J__namespace.default.createElement("div",{className:""},J__namespace.default.createElement(A5,null)),J__namespace.default.createElement("div",{className:"flex flex-col gap-2 items-start"},J__namespace.default.createElement("h2",{className:"text-xl font-semibold text-[#050910] mb-1"},e("feed.create-post.schedule.scheduled-publications")),J__namespace.default.createElement("p",{className:"text-sm text-grey-6"},e("feed.create-post.schedule.view-upcoming-publications"))))}var RN=e=>{try{return dateFns.format(e,"dd/MM/yy HH:mm",{locale:locale.ptBR})}catch(t){return "Data inv\xE1lida"}};function N5(){let[e,t]=J.useState(false),[o,r]=J.useState(false),[n,a]=J.useState(false);return J.useEffect(()=>{let s=()=>{let i=window.innerWidth;t(i<768||i>=768&&i<1084),r(i>=768&&i<1084),a(i>=1084);};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),{isMobile:e,isTablet:o,isDesktop:n}}function eI({post:e,onPostActions:t,handleEditScheduledPost:o,handleDeleteScheduledPost:r,isSubmitting:n=false}){var m;let{translate:a}=Oe(),{isMobile:s}=N5(),[i,l]=J.useState(false),d=J.useRef(null);J.useEffect(()=>{let v=h=>{d.current&&!d.current.contains(h.target)&&l(false);};return i&&document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v);}},[i]);let c=()=>{s&&t?t(e.id):l(!i);},p=()=>{l(false);},f=!s&&o&&r,g=f||s&&t;return J__namespace.default.createElement("div",{key:e.id,className:"space-y-3 rounded-lg border border-gray-200 p-4 relative"},J__namespace.default.createElement("div",{className:"flex items-center justify-between"},J__namespace.default.createElement("span",{className:"text-sm text-gray-600 font-medium"},a("feed.create-post.schedule.publication-scheduled-for")," ",(()=>{try{return e.scheduledAt!=null?RN(new Date(e.scheduledAt)):"Data n\xE3o definida"}catch(v){return "Data inv\xE1lida"}})()),g&&J__namespace.default.createElement("div",{className:"relative",ref:d},J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-gray-100 rounded-full",onClick:c},J__namespace.default.createElement(lucideReact.MoreVertical,{className:"h-[1.125rem] w-[1.125rem] text-[#050910]"})),f&&i&&J__namespace.default.createElement(j0,{handleEditScheduledPost:o,handleDeleteScheduledPost:r,isSubmitting:n,selectedPostForAction:e.id,isDropdown:true,onClose:p}))),J__namespace.default.createElement("div",{className:"flex gap-3 items-start"},J__namespace.default.createElement("div",{className:"w-16 h-16 bg-gradient-to-br from-blue-400 to-purple-500 rounded-lg flex-shrink-0 flex items-center justify-center"},e.images&&e.images.length>0&&((m=e.images[0])!=null&&m.url)?J__namespace.default.createElement("img",{src:e.images[0].url,alt:"Post preview",className:"w-full h-full object-cover rounded-lg"}):J__namespace.default.createElement("img",{key:e.id,src:"./preview-scheduled-post-cover.png",alt:"Post preview",width:96,height:62,className:" rounded-lg"})),J__namespace.default.createElement("div",{className:"flex-1 min-w-0"},J__namespace.default.createElement("p",{className:"text-sm text-gray-700 leading-relaxed overflow-hidden break-words",style:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",wordBreak:"break-word",overflowWrap:"break-word"}},e.content||""))))}function I5({onClose:e,onScheduleMore:t,posts:o,onPostActions:r,handleEditScheduledPost:n,handleDeleteScheduledPost:a,isSubmitting:s=false,hasNextPage:i=false,isFetchingNextPage:l=false,isRefetchingPosts:d=false,loadMorePosts:c,infiniteRef:p,rootRef:f}){let{translate:u}=Oe();return J__namespace.default.createElement("div",{className:"flex flex-col h-full bg-white gap-8"},J__namespace.default.createElement($N,null),J__namespace.default.createElement("div",{ref:f,className:"flex-1 px-6 space-y-4 overflow-y-auto min-h-0 max-h-full"},o.length===0&&J__namespace.default.createElement("div",{className:"flex flex-col items-center py-12 text-gray-500"},J__namespace.default.createElement(A5,null),J__namespace.default.createElement("p",{className:"mt-4 text-lg font-medium"},u("feed.create-post.schedule.no-post-scheduled")),J__namespace.default.createElement("p",{className:"text-sm text-gray-400"},u("feed.create-post.schedule.no-scheduled-posts-yet"))),o.map(g=>J__namespace.default.createElement(eI,{key:g.id,post:g,onPostActions:r,handleEditScheduledPost:n,handleDeleteScheduledPost:a,isSubmitting:s})),i&&J__namespace.default.createElement("div",{ref:p,className:"flex justify-center py-4"},l&&J__namespace.default.createElement("div",{className:"flex items-center gap-2 text-gray-500"},J__namespace.default.createElement(Ge,{className:"w-32 h-32"})))),J__namespace.default.createElement("div",{className:"flex gap-3 px-6 py-4 flex-shrink-0 bg-white"},J__namespace.default.createElement(Vo,{onClick:e,className:"flex-1 text-primary bg-transparent hover:bg-transparent rounded-lg border-primary py-2 sm:py-3 px-[1.5rem] sm:px-[2rem] lg:px-[3rem] font-bold text-sm sm:text-base"},u("feed.create-post.schedule.close-button")),J__namespace.default.createElement(Vo,{onClick:t,className:"flex-1 bg-primary hover:bg-primary/90 text-white disabled:opacity-50 rounded-lg py-2 sm:py-3 px-[1.5rem] sm:px-[2rem] lg:px-[3rem] font-bold text-sm sm:text-base"},u("feed.create-post.schedule.schedule-button"))))}function E5(){return J__namespace.default.createElement("div",{className:"flex flex-col h-full bg-white"},J__namespace.default.createElement("div",{className:"flex items-center justify-start p-6 gap-4"},J__namespace.default.createElement("div",{className:"w-6 h-6 bg-gray-200 rounded animate-pulse"}),J__namespace.default.createElement("div",{className:"flex flex-col gap-2"},J__namespace.default.createElement("div",{className:"h-6 w-48 bg-gray-200 rounded animate-pulse"}),J__namespace.default.createElement("div",{className:"h-4 w-64 bg-gray-200 rounded animate-pulse"}))),J__namespace.default.createElement("div",{className:"flex-1 px-6 py-0 space-y-4 overflow-y-auto"},[1,2].map(e=>J__namespace.default.createElement("div",{key:e,className:"space-y-3 rounded-lg border border-gray-200 p-4 animate-pulse"},J__namespace.default.createElement("div",{className:"flex items-center justify-between"},J__namespace.default.createElement("div",{className:"h-4 w-40 bg-gray-200 rounded"}),J__namespace.default.createElement("div",{className:"h-6 w-6 bg-gray-200 rounded-full"})),J__namespace.default.createElement("div",{className:"flex gap-3 items-start"},J__namespace.default.createElement("div",{className:"w-16 h-16 bg-gray-200 rounded-lg flex-shrink-0"}),J__namespace.default.createElement("div",{className:"flex-1 space-y-2"},J__namespace.default.createElement("div",{className:"h-4 w-full bg-gray-200 rounded"}),J__namespace.default.createElement("div",{className:"h-3 w-3/4 bg-gray-200 rounded"}),J__namespace.default.createElement("div",{className:"h-3 w-1/2 bg-gray-200 rounded"})))))))}function tI({profile:e,isSelected:t,onSelect:o}){return J__namespace.default.createElement("div",{className:"flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-50 transition-colors cursor-pointer",onClick:()=>o(e.id)},J__namespace.default.createElement("div",{className:"flex items-center gap-3 flex-1"},J__namespace.default.createElement(ae,{src:e.avatar,name:e.name,className:"h-10 w-10"}),J__namespace.default.createElement("div",{className:"flex flex-col"},J__namespace.default.createElement("span",{className:"font-medium text-gray-900"},e.name),J__namespace.default.createElement("span",{className:"text-sm text-gray-500"},e.role))),J__namespace.default.createElement("input",{type:"radio",name:"profile-selector",value:e.id,checked:t,onChange:()=>o(e.id),className:U("h-5 w-5 rounded-full appearance-none cursor-pointer",t?"border-4 border-primary":"bg-white border border-[#D5DFE9]")}))}function oI(){return J__namespace.default.createElement("div",{className:"space-y-3"},[1,2,3].map(e=>J__namespace.default.createElement("div",{key:e,className:"flex items-center space-x-3 p-3 rounded-lg animate-pulse"},J__namespace.default.createElement("div",{className:"flex items-center gap-3 flex-1"},J__namespace.default.createElement("div",{className:"h-10 w-10 bg-gray-200 rounded-full"}),J__namespace.default.createElement("div",{className:"flex flex-col gap-2"},J__namespace.default.createElement("div",{className:"h-4 w-24 bg-gray-200 rounded"}),J__namespace.default.createElement("div",{className:"h-3 w-16 bg-gray-200 rounded"}))),J__namespace.default.createElement("div",{className:"h-5 w-5 bg-gray-200 rounded-full"}))))}var RX=({error:e})=>J__namespace.default.createElement("div",{className:"flex items-center justify-center py-8"},J__namespace.default.createElement("div",{className:"flex flex-col items-center gap-2 text-center"},J__namespace.default.createElement(lucideReact.AlertCircle,{className:"w-6 h-6 text-red-500"}),J__namespace.default.createElement("span",{className:"text-sm text-red-600"},e),J__namespace.default.createElement("button",{onClick:()=>window.location.reload(),className:"text-sm text-primary hover:underline"},"Tentar novamente"))),e$=()=>J__namespace.default.createElement("div",{className:"flex items-center justify-center py-8"},J__namespace.default.createElement("div",{className:"text-center"},J__namespace.default.createElement(lucideReact.AlertCircle,{className:"w-6 h-6 text-gray-400 mx-auto mb-2"}),J__namespace.default.createElement("p",{className:"text-sm text-gray-500"},"Nenhum perfil dispon\xEDvel")));function k5({onProfileSelect:e,selectedProfileId:t}){let{pagesProfiles:o,selectedValue:r,handleValueChange:n,isLoading:a}=Qm({selectedProfileId:t,onProfileSelect:e}),[s,i]=J.useState(null);return s?J__namespace.default.createElement(RX,{error:s}):a?J__namespace.default.createElement(oI,null):o.length===0?J__namespace.default.createElement(e$,null):J__namespace.default.createElement("div",{className:"space-y-3"},J__namespace.default.createElement(Hm,{value:r,onValueChange:n,className:"space-y-2 p-0",defaultValue:"1"},o.map(l=>J__namespace.default.createElement(tI,{key:l.id,profile:l,isSelected:r===l.id,onSelect:n}))))}var nI=e=>j(void 0,null,function*(){return yield Promise.all(e.map(o=>j(void 0,null,function*(){let n=yield (yield fetch(o)).blob(),a=o.split("/").pop()||"file";return new File([n],a,{type:n.type})})))}),aI=e=>{let t=new DataTransfer;return e.forEach(o=>t.items.add(o)),t.files};function gf({isOpen:e,header:t,onClose:o,isLoading:r,children:n,showCloseButton:a=true,closeOnClickOutside:s=true,className:i,disableFullScreen:l=false}){return J__namespace.default.createElement("div",{className:"absolute"},J__namespace.default.createElement(F4,{open:e,onOpenChange:d=>{!d&&s&&o();}},J__namespace.default.createElement(d6,null),J__namespace.default.createElement(cd,{showCloseButton:a,onClose:o,className:`px-0 py-6 lg:px-6 w-full ${!l&&"h-[100dvh]"} flex flex-col !justify-start overflow-hidden z-[210] !rounded-none lg:!rounded-2xl lg:h-auto pt-4 gap-0 ${i}`,onInteractOutside:d=>{s||d.preventDefault();}},r&&J__namespace.default.createElement("div",{className:"loading-bar"}),!l&&J__namespace.default.createElement("header",{className:"px-4 border-b-8 border-[#F6F6F6] py-4 lg:hidden flex items-center w-full"},J__namespace.default.createElement("button",{onClick:()=>o(),className:"cursor-pointer"},J__namespace.default.createElement(lucideReact.X,{className:"h-6 w-6"})),t),J__namespace.default.createElement(pd,null),n)))}function sI({postToShare:e}){let{user:t,feedApi:o,page:r,isPageFeed:n,isCommunityFeed:a,community:s,queryClient:i}=M(),{successToast:l}=tt(),{mutate:d,isPending:c}=ge({mutationKey:["createPost"],mutationFn:f=>j(this,[f],function*({createPostInput:p}){var m,h,b;if(console.log("Creating post with input:",p),a){let g=p,{userId:x,pageId:w}=g,C=Q(g,["userId","pageId"]);return yield hf__default.default(o!=null?o:"",Zi,{createPostInput:F(y({},C),{communityId:s==null?void 0:s.id})},{"x-access-token":(m=t==null?void 0:t.accessToken)!=null?m:""})}if(n){let v=p,{userId:x}=v,w=Q(v,["userId"]);return yield hf__default.default(o!=null?o:"",Zi,{createPostInput:F(y({},w),{pageId:r==null?void 0:r.id})},{"x-access-token":(h=t==null?void 0:t.accessToken)!=null?h:""})}let u=p.sharedPostId?F(y({},p),{pageId:void 0}):p;return yield hf__default.default(o!=null?o:"",Zi,{createPostInput:u},{"x-access-token":(b=t==null?void 0:t.accessToken)!=null?b:""})}),onMutate:f=>j(this,[f],function*({createPostInput:p}){var m,v,h,b,x,w,C,A,k,N,I,P,S,D,T,L,E,B;if(a){i==null||i.invalidateQueries({queryKey:["posts",s==null?void 0:s.id]}),i==null||i.invalidateQueries({queryKey:["post-community",s==null?void 0:s.id]}),i==null||i.invalidateQueries({predicate:z=>z.queryKey[0]==="posts-per-community"&&z.queryKey[1]===(s==null?void 0:s.id)});let W=i==null?void 0:i.getQueryData(["posts",s==null?void 0:s.id]),q=i==null?void 0:i.getQueryData(["post-community",s==null?void 0:s.id]),Y=i==null?void 0:i.getQueryData(["posts-per-community",s==null?void 0:s.id]),H=y({id:`optimistic-${Date.now()}`,content:(m=p==null?void 0:p.content)!=null?m:"",postType:(v=p==null?void 0:p.postType)!=null?v:"NORMAL",createdAt:new Date().toISOString(),totalComments:0,totalReactions:0,totalShares:0,communityId:s==null?void 0:s.id,comments:[],reactions:[],images:((h=p==null?void 0:p.images)!=null?h:[]).map(z=>{var G,R;return {id:(G=z==null?void 0:z.id)!=null?G:`temp-${Date.now()}`,url:(R=z==null?void 0:z.url)!=null?R:""}}),videos:((b=p==null?void 0:p.videos)!=null?b:[]).map(z=>{var G,R;return {id:(G=z==null?void 0:z.id)!=null?G:`temp-${Date.now()}`,url:(R=z==null?void 0:z.url)!=null?R:""}}),bio:(x=p==null?void 0:p.bio)!=null?x:"",link:{title:"",description:"",imageUrl:"",url:""},sharedPostId:(w=p==null?void 0:p.sharedPostId)!=null?w:"",user:t,community:s?{name:s.name,slug:s.slug}:void 0},e&&{sharedPost:e});return i==null||i.setQueryData(["community-posts",s==null?void 0:s.id],z=>z?[H,...z]:[H]),{previousPosts:W,previousCommunityPosts:q,previousCommunityPostsList:Y,optimisticPost:H}}if(n){i==null||i.invalidateQueries({queryKey:["posts",r==null?void 0:r.id]}),i==null||i.invalidateQueries({queryKey:["post-page",r==null?void 0:r.id]}),i==null||i.invalidateQueries({predicate:z=>z.queryKey[0]==="posts-per-page"&&z.queryKey[1]===(r==null?void 0:r.id)});let W=i==null?void 0:i.getQueryData(["posts",r==null?void 0:r.id]),q=i==null?void 0:i.getQueryData(["post-page",r==null?void 0:r.id]),Y=i==null?void 0:i.getQueryData(["posts-per-page",r==null?void 0:r.id]),H=y({id:`optimistic-${Date.now()}`,content:(C=p==null?void 0:p.content)!=null?C:"",postType:(A=p==null?void 0:p.postType)!=null?A:"NORMAL",createdAt:new Date().toISOString(),totalComments:0,totalReactions:0,totalShares:0,pageId:r==null?void 0:r.id,comments:[],reactions:[],images:((k=p==null?void 0:p.images)!=null?k:[]).map(z=>{var G,R;return {id:(G=z==null?void 0:z.id)!=null?G:`temp-${Date.now()}`,url:(R=z==null?void 0:z.url)!=null?R:""}}),videos:((N=p==null?void 0:p.videos)!=null?N:[]).map(z=>{var G,R;return {id:(G=z==null?void 0:z.id)!=null?G:`temp-${Date.now()}`,url:(R=z==null?void 0:z.url)!=null?R:""}}),bio:(I=p==null?void 0:p.bio)!=null?I:"",link:{title:"",description:"",imageUrl:"",url:""},sharedPostId:(P=p==null?void 0:p.sharedPostId)!=null?P:"",user:t,page:r?{name:r.name,sector:r.sector,logo:r.logo}:void 0},e&&{sharedPost:e});return i==null||i.setQueryData(["post-page",r==null?void 0:r.id],z=>z?[H,...z]:[H]),{previousPosts:W,previousPagePosts:q,previousPagePostsList:Y,optimisticPost:H}}i==null||i.invalidateQueries({queryKey:["posts",t==null?void 0:t.id]});let u=i==null?void 0:i.getQueryData(["posts",t==null?void 0:t.id]),g=y(y({id:`optimistic-${Date.now()}`,content:(S=p==null?void 0:p.content)!=null?S:"",postType:(D=p==null?void 0:p.postType)!=null?D:"NORMAL",createdAt:new Date().toISOString(),totalComments:0,totalReactions:0,totalShares:0,user:t,comments:[],reactions:[],images:((T=p==null?void 0:p.images)!=null?T:[]).map(W=>{var q,Y;return {id:(q=W==null?void 0:W.id)!=null?q:`temp-${Date.now()}`,url:(Y=W==null?void 0:W.url)!=null?Y:""}}),videos:((L=p==null?void 0:p.videos)!=null?L:[]).map(W=>{var q,Y;return {id:(q=W==null?void 0:W.id)!=null?q:`temp-${Date.now()}`,url:(Y=W==null?void 0:W.url)!=null?Y:""}}),bio:(E=p==null?void 0:p.bio)!=null?E:"",link:{title:"",description:"",imageUrl:"",url:""},sharedPostId:(B=p==null?void 0:p.sharedPostId)!=null?B:""},e&&{sharedPost:e}),(p==null?void 0:p.pageId)&&{pageId:p.pageId});return i==null||i.setQueryData(["posts",t==null?void 0:t.id],u),{previousPosts:u,optimisticPost:g}}),onSuccess(p,f){var u;a?(i==null||i.invalidateQueries({queryKey:["posts",s==null?void 0:s.id]}),i==null||i.invalidateQueries({queryKey:["post-community",s==null?void 0:s.id]}),i==null||i.invalidateQueries({predicate:g=>g.queryKey[0]==="posts-per-community"&&g.queryKey[1]===(s==null?void 0:s.id)})):n?(i==null||i.invalidateQueries({queryKey:["posts",r==null?void 0:r.id]}),i==null||i.invalidateQueries({queryKey:["post-page",r==null?void 0:r.id]})):i==null||i.invalidateQueries({queryKey:["posts",t==null?void 0:t.id]}),(u=f.createPostInput)!=null&&u.sharedPostId&&l({title:"Publica\xE7\xE3o compartilhada",message:"Compartilhada com sucesso!"});},onError(p,f,u){a?(u!=null&&u.previousPosts&&(i==null||i.setQueryData(["posts",s==null?void 0:s.id],u.previousPosts)),u!=null&&u.previousCommunityPosts&&(i==null||i.setQueryData(["community-posts",s==null?void 0:s.id],u.previousCommunityPosts))):n?(u!=null&&u.previousPosts&&(i==null||i.setQueryData(["posts",r==null?void 0:r.id],u.previousPosts)),u!=null&&u.previousPagePosts&&(i==null||i.setQueryData(["post-page",r==null?void 0:r.id],u.previousPagePosts))):i==null||i.setQueryData(["posts",t==null?void 0:t.id],u==null?void 0:u.previousPosts);}});return {createAPost:d,isCreatingThePost:c}}function lI(e){let t=J.useRef(null),o=J.useRef(false);J.useEffect(()=>{if(!e){if(o.current&&t.current)try{Object.defineProperty(window.location,"href",t.current),o.current=!1;}catch(a){}return}let r=a=>{let s=a.target,i=s==null?void 0:s.closest("a");if(i&&i.href){a.preventDefault();let l=i.href;window.confirm("A video upload is in progress. Leaving this page will cancel your upload. Continue?")&&(o.current=false,window.location.href=l);}};if(document.addEventListener("click",r,true),!o.current){let a=Object.getOwnPropertyDescriptor(window.location,"href");if(a&&a.configurable!==false){t.current=a;try{Object.defineProperty(window.location,"href",{configurable:!0,enumerable:!0,get(){var s,i,l;return (l=(i=(s=t.current)==null?void 0:s.get)==null?void 0:i.call(window.location))!=null?l:""},set(s){var l;window.confirm("A video upload is in progress. Leaving this page will cancel your upload. Continue?")&&((l=t.current)!=null&&l.set)&&t.current.set.call(window.location,s);}}),o.current=!0;}catch(s){console.warn("Could not override window.location.href:",s);}}}let n=a=>{a.preventDefault(),a.returnValue="";};return window.addEventListener("beforeunload",n),()=>{if(document.removeEventListener("click",r,true),window.removeEventListener("beforeunload",n),o.current&&t.current)try{Object.defineProperty(window.location,"href",t.current),o.current=!1;}catch(a){}}},[e]);}function dI(e,t){let o=e;return t.forEach(r=>{var c;let n=r$((r==null?void 0:r.name)||""),a=((c=r==null?void 0:r.type)==null?void 0:c.toUpperCase())||"USER",s=new RegExp(`@\\[uid:[^\\]]+\\]\\[[^\\]]+\\]${n}`,"gi");o=o.replace(s,`@${r.name}`);let i=new RegExp("@\\[uid:[^\\]]+\\]\\[[^\\]]+\\]\\s*","gi");o=o.replace(i,"@");let l=new RegExp(`${n}\\[uid:[^\\]]+\\]\\[[^\\]]+\\]`,"gi");o=o.replace(l,(r==null?void 0:r.name)||"");let d=new RegExp(`@${n}(?!\\[uid:)`,"g");o=o.replace(d,`@${r.name}[uid:${r.id}][${a}]`);}),o}function r$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var T5=e=>/\.(mp4|mov|webm|avi|mkv)$/i.test(e),D5=e=>/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/i.test(e),L5=e=>/\.pdf$/i.test(e),a$=(e,t,o,r=[])=>{var l;let n=e.filter(T5).map(d=>({url:d})),a=e.filter(D5).map(d=>({url:d})),s=e.filter(L5),i=s.length>0||r.length>0?{url:s[0]||((l=r[0])==null?void 0:l.url),type:"pdf",title:void 0,description:void 0,imageUrl:void 0}:void 0;return y({videos:n.length?[...n,...t]:[],images:a.length?[...a,...o]:[]},i&&{attachment:i})};function cI(e,t){let{translate:o}=Oe(),{errorToast:r,successToast:n,infoToast:a}=tt(),{uploadAssetsBulk:s,isUploadingBulk:i}=f0(),{createAPost:l}=sI({}),{updatePost:d}=b5(),{content:c,setContent:p,selectedFiles:f,setIsCreatingThePost:u,isCreatingThePost:g,assetsToDelete:m,hashtags:v,mentions:h,mentionedUsers:b}=zt(),{operation:x,post:w}=xo(),[C,A]=J.useState(false),k=f.length>0;lI(g||i||C);let N=J.useCallback(()=>{u(false),A(false);},[u]),I=J.useCallback(q=>{N(),r({title:o("feed.toasts.create.error.title"),message:q||o("feed.toasts.create.error.description")});},[N,r,o]),P=J.useCallback(()=>{let q=x==="update";n({title:o(q?"feed.toasts.edit.success.title":"feed.toasts.create.success.title"),message:o(q?"feed.toasts.edit.success.description":"feed.toasts.create.success.description")});},[n,x,o]),S=J.useCallback(()=>{let q=x==="update";a({title:o(q?"feed.toasts.edit.editing.title":"feed.toasts.create.creating.title"),message:o(q?"feed.toasts.edit.editing.description":"feed.toasts.create.creating.description")});},[a,x,o]),D=J.useCallback(()=>{p==null||p(""),P(),e==null||e(),N();},[p,P,e,N]),T=J.useCallback(()=>{let q=f.some(G=>T5(G==null?void 0:G.name)),Y=f.some(G=>D5(G==null?void 0:G.name)),H=f.some(G=>L5(G==null?void 0:G.name)),z=[q,Y,H].filter(Boolean).length;return z===0?(I("Formato de arquivo n\xE3o suportado. Use apenas imagens, v\xEDdeos ou PDFs."),false):z>1?(I("N\xE3o \xE9 poss\xEDvel enviar diferentes tipos de arquivo ao mesmo tempo. Escolha apenas um tipo: imagens, v\xEDdeos ou PDFs."),false):true},[f,I]),L=J.useCallback(q=>{if(!w)return;let Y=(h==null?void 0:h.map(H=>({mentionType:H.mentionType,mentionedId:H.mentionedId})))||[];d({updatePostInput:F(y({},q),{mentions:Y,id:w.id})},{onSuccess:D,onError:()=>I("Erro ao atualizar post. Tente novamente.")});},[d,w,D,I,h]),E=J.useCallback(q=>{var z;if(x==="update")return L(q);let Y=(h==null?void 0:h.map(G=>({mentionType:G.mentionType,mentionedId:G.mentionedId})))||[],H=(h==null?void 0:h.map(G=>{var V,_,$,oe,K,ne,me,Me,Se;return {id:G.mentionedId,name:((V=G.mentionedUser)==null?void 0:V.name)||((_=G.mentionedCommunity)==null?void 0:_.name)||(($=G.mentionedPage)==null?void 0:$.name)||"",slug:((oe=G.mentionedUser)==null?void 0:oe.slug)||((K=G.mentionedCommunity)==null?void 0:K.slug)||((ne=G.mentionedPage)==null?void 0:ne.slug)||"",image:((me=G.mentionedUser)==null?void 0:me.avatar)||((Me=G.mentionedCommunity)==null?void 0:Me.image)||((Se=G.mentionedPage)==null?void 0:Se.logo),type:G.mentionType.toLowerCase(),originalData:{}}}))||[];l({createPostInput:F(y({},q),{mentions:Y,content:dI((z=q.content)!=null?z:"",H)})},{onSuccess:(G,R)=>{R.createPostInput.scheduledAt&&t?t():D();},onError:()=>I("Erro ao criar post. Tente novamente.")});},[x,L,h,l,t,D,I]),B=J.useCallback((q,Y,H)=>{if(!T())return;let z=(m==null?void 0:m.filter(V=>T5(V==null?void 0:V.url)))||[],G=(m==null?void 0:m.filter(V=>D5(V==null?void 0:V.url)))||[],R=(m==null?void 0:m.filter(V=>L5(V==null?void 0:V.url)))||[];s({files:f,is_public:true,owner_type:"user"},{onSuccess(V){var K;let _=(K=V==null?void 0:V.results)==null?void 0:K.flatMap(ne=>{var me;return (me=ne==null?void 0:ne.data)==null?void 0:me.url}),$=_==null?void 0:_.filter(ne=>ne!=null),oe=a$($,z,G,R);E(y({postType:q,tags:v,mentions:h,content:c!=null?c:"",scheduledAt:Y,pageId:H},oe));},onError(){I("Erro ao fazer upload dos arquivos. Tente novamente.");}});},[m,f,s,I,E,v,h,c,T]);return {createPost:J.useCallback((q="NORMAL",Y,H)=>{var z;if(!C){if(u(true),A(true),Y||S(),!k){let G=(m==null?void 0:m.filter($=>T5($==null?void 0:$.url)))||[],R=(m==null?void 0:m.filter($=>D5($==null?void 0:$.url)))||[],V=(m==null?void 0:m.filter($=>L5($==null?void 0:$.url)))||[],_=V.length>0?{url:(z=V[0])==null?void 0:z.url,type:"pdf",title:void 0,description:void 0,imageUrl:void 0}:void 0;return E(F(y({content:c!=null?c:"",tags:v,videos:G,images:R},_&&{attachment:_}),{mentions:h,postType:q,scheduledAt:Y,pageId:H}))}B(q,Y,H);}},[C,k,m,c,v,h,E,B,u,A,S]),isCreatingThePost:g||C}}function pI({route:e,metadata:t={},enabled:o=true}){let{user:r,locale:n,environment:a}=M(),{userLocation:s}=jo(),{registerEvent:i}=Bo(),l=J.useRef(null);J.useEffect(()=>{var d,c;o&&e&&l.current!==e&&(l.current=e,i({input:{actor:{user_id:(d=r==null?void 0:r.id)!=null?d:""},source:{app:"mirantes-web",environment:a,platform:"web",version:"1.0.0"},context:{browser:{name:navigator.userAgent,version:""},country:(c=s==null?void 0:s.country_name)!=null?c:"",device:{model:"Desktop",os:navigator.platform},locale:n,referrer:document.referrer||"",route:e,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone},events:[{event_id:uuid.v4(),event_type:"PAGE_VIEW",occurred_at:new Date,metadata:F(y({},t),{timestamp:new Date().toISOString()})}]}}));},[e,o,n,a,r==null?void 0:r.id,s==null?void 0:s.country_name,i,t]);}function mI({media:e,onRemoveMedia:t,readOnly:o}){return e.length===0?J__namespace.default.createElement("div",{className:"flex flex-col items-center justify-center py-12 text-gray-shade8"},J__namespace.default.createElement(lucideReact.ImageIcon,{className:"h-16 w-16 mb-4 opacity-30"}),J__namespace.default.createElement("p",null,"Nenhuma m\xEDdia adicionada")):J__namespace.default.createElement("div",{className:"grid grid-cols-2 gap-3"},e.map((r,n)=>J__namespace.default.createElement("div",{key:r.id||n,className:"relative col-span-1 lg:h-[222px] h-[99.6px] rounded-md lg:rounded-lg overflow-hidden"},r.type==="video"?J__namespace.default.createElement("div",{className:"relative w-full h-full bg-gray-100"},J__namespace.default.createElement("video",{src:r.url,className:"w-full h-full object-cover",controls:true})):J__namespace.default.createElement("img",{src:r.url||"/placeholder.svg",alt:`Media ${n+1}`,className:"object-cover"}),!o&&J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"absolute top-2 right-2 h-8 w-8 p-0 bg-white hover:bg-gray-100 rounded-full shadow-md flex items-center justify-center",onClick:()=>t(n)},J__namespace.default.createElement("div",{className:"[&_svg]:w-4 [&_svg]:h-4"},J__namespace.default.createElement(Sr,{color:"#E03137"}))))))}function vf({isOpen:e,onClose:t,media:o,onRemoveMedia:r,onComplete:n,onAddMedia:a}){let s=J.useRef(null);return J__namespace.default.createElement(qe,{onClose:t,isOpen:e,className:"lg:!min-w-[800px] lg:min-h-[80vh]",showCloseButton:false},J__namespace.default.createElement("div",{className:"flex p-4 lg:p-0 flex-col w-full flex-1"},J__namespace.default.createElement("div",{className:"sticky top-0 z-10 p-4 lg:flex items-center justify-between border-b border-gray-200"},J__namespace.default.createElement(le,{variant:"ghost",size:"icon",onClick:t,className:"lg:hidden"},J__namespace.default.createElement(lucideReact.ChevronLeft,{className:"h-5 w-5"})),J__namespace.default.createElement("h2",{className:"text-xl font-semibold flex-1 text-center lg:text-left lg:ml-0"},"M\xEDdias adicionadas"),J__namespace.default.createElement(le,{variant:"ghost",size:"icon",onClick:t,className:"lg:flex"},J__namespace.default.createElement(lucideReact.X,{className:"h-5 w-5"}))),J__namespace.default.createElement("div",{className:"pt-6 lg:pt-8 flex-1"},J__namespace.default.createElement(mI,{media:o,onRemoveMedia:r||(()=>{}),readOnly:!r})),J__namespace.default.createElement("div",{className:"bg-white z-10 flex items-center justify-between p-4 border-t border-gray-200"},J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"gap-2",onClick:()=>{var l;(l=s.current)==null||l.click();}},J__namespace.default.createElement(H0,null),J__namespace.default.createElement("span",null,"M\xEDdia"),J__namespace.default.createElement("input",{type:"file",ref:s,className:"hidden",accept:ts,multiple:true,onChange:l=>a==null?void 0:a(l.target.files)})),J__namespace.default.createElement(le,{onClick:n,className:"bg-primary py-2 lg:py-6 text-sm lg:text-base font-bold hover:bg-primary/90 text-white px-4 lg:px-9 rounded-lg"},"Conclu\xEDdo"))))}function f$({inline:e}){var Ft,lo,Gr;let{isMobile:t}=N5(),{translate:o}=Oe(),{isOpen:r,closeModal:n,postType:a,post:s,operation:i,setPost:l,setOperation:d,initialStep:c,openModal:p}=xo(),{resetForm:f,setIsCreatingThePost:u,setContent:g,handleMediaUpload:m,setCurrentAssets:v,content:h,isCreatingThePost:b,selectedFiles:x}=zt(),[w,C]=J.useState(false),[A,k]=J.useState("main"),[N,I]=J.useState(null),[P,S]=J.useState(null),[D,T]=J.useState(null),[L,E]=J.useState(false),B=!!(h&&h.trim().length>0),W=true,q=window.location.pathname;if(pI({enabled:r,route:q,metadata:{modalName:"create_post",step:A,operation:i,postType:a,hasContent:!!(h!=null&&h.trim()),hasMedia:!!(x!=null&&x.length||(Ft=s==null?void 0:s.images)!=null&&Ft.length||(lo=s==null?void 0:s.videos)!=null&&lo.length),isScheduled:!!(P||s!=null&&s.scheduledAt),selectedProfileType:N?(Gr=N.id)!=null&&Gr.startsWith("page-")?"page":"user":"none",isEditingScheduledPost:i==="update"&&!!(s!=null&&s.scheduledAt)}}),i==="update")if(s){let He=h.trim(),Fe=(s.content||"").trim(),$e=He!==Fe,Io=false;if(P||s.scheduledAt){let vo=P?P.toISOString().split(".")[0]+"Z":null,Sn=s.scheduledAt?new Date(s.scheduledAt).toISOString().split(".")[0]+"Z":null;Io=vo!==Sn;}W=$e||Io;}else W=B;else W=B;!!(B&&W)||(x==null?void 0:x.length)>0;i==="update"&&B&&(s!=null&&s.scheduledAt)&&(true);let H=A==="scheduled-posts"||A==="post-actions-menu"||A==="edit-scheduled-post",{scheduledPosts:z,isLoadingScheduledPosts:G,handlePostDeleted:R,handlePostUpdated:V,forceRefetch:_,hasNextPage:$,isFetchingNextPage:oe,isRefetchingScheduledPosts:K,loadMorePosts:ne,infiniteRef:me,rootRef:Me}=P5({enabled:H,onPostDeleted:()=>{T(null),k("scheduled-posts");},onPostUpdated:()=>{(P||s!=null&&s.scheduledAt)&&k("scheduled-posts");}}),{deleteAPost:Se}=lN({postId:D||void 0,postWasScheduled:D?z.some(He=>He.id===D):false,onClose:R}),{updatePost:Ze}=b5();dN();let mt=J.useCallback(()=>{localStorage.removeItem("persona-phrase"),localStorage.removeItem("selectedPersona"),f(),u(false),k("main"),S(null),T(null),I(null),E(false),n();},[f,n,u]),Ct=J.useCallback(()=>{f(),g(""),u(false),E(false),k("scheduled-posts"),_(),S(null);},[_,f,g,u]),{createPost:Nt}=cI(mt,Ct),De=J.useCallback(He=>{I(He),k("main");},[]),At=J.useCallback(()=>{k("select-profile");},[]),It=J.useCallback(()=>{k("schedule");},[]),so=J.useCallback(He=>{S(He),k("main");},[]),io=J.useCallback(()=>{k("main");},[]),Et=J.useCallback(()=>{k("scheduled-posts");},[]),at=J.useCallback(He=>{T(He),k("post-actions-menu");},[]),lt=J.useCallback(He=>{let Fe=z.find($e=>$e.id===He);Fe&&(l(Fe),d("update"),T(He),k("main"));},[z,l,d]),Le=J.useCallback(He=>{He&&T(He),setTimeout(()=>{Se();},0);},[Se,T]),ke=J.useCallback((He,Fe,$e=true)=>{var Sn;if(!He||L)return;E(true),u(true);let vo={id:He,content:h||""};N&&((Sn=N.id)!=null&&Sn.startsWith("page-"))&&(vo.pageId=N.id.replace("page-","")),$e&&(Fe instanceof Date?vo.scheduledAt=Fe.toISOString():Fe===null&&(vo.scheduledAt=null)),Ze({updatePostInput:vo},{onSuccess:()=>{Fe||s!=null&&s.scheduledAt?V():mt(),f(),S(null),u(false),E(false);},onError:Tl=>{}});},[L,h,N,s==null?void 0:s.scheduledAt,Ze,V,mt,f,u]),ie=J.useCallback((He="NORMAL")=>{var Io,vo;if(L)return;if(i==="update"&&s){let Sn,Tl=P!==null;Tl&&(Sn=P),ke(s.id,Sn,Tl);return}let Fe=N&&(((Io=N.id)==null?void 0:Io.startsWith("page-"))||N.role==="P\xE1gina"),$e;if(Fe&&N&&((vo=N.id)!=null&&vo.startsWith("page-")?$e=N.id.replace("page-",""):$e=N.id),P){let Sn=P.toISOString();Nt(He,Sn,$e);}else n(true),Nt(He,void 0,$e);},[L,i,s,P,N,ke,Nt]);J.useEffect(()=>{r&&a==="schedule"&&k(c==="scheduled-posts"?"scheduled-posts":"schedule");},[r,a,c]),J.useEffect(()=>{if(!r)return;let He=()=>{mt();};return window.addEventListener("closeCreatePostModal",He),window.addEventListener("openCreateCompanyModal",He),window.addEventListener("openRecruitmentModal",He),window.addEventListener("setIsRecruitmentViewsOpened",He),()=>{window.removeEventListener("closeCreatePostModal",He),window.removeEventListener("openCreateCompanyModal",He),window.removeEventListener("openRecruitmentModal",He),window.removeEventListener("setIsRecruitmentViewsOpened",He);}},[r,mt]),J.useEffect(()=>()=>{u(false),E(false),C(false);},[u]),J.useEffect(()=>{var He,Fe,$e,Io,vo,Sn,Tl;if(i=="update"&&s){u(false),s.scheduledAt&&S(new Date(s.scheduledAt));let wf=(Fe=(He=s==null?void 0:s.videos)==null?void 0:He.map(K0=>K0.url))!=null?Fe:[],Cf=(Io=($e=s==null?void 0:s.images)==null?void 0:$e.map(K0=>K0.url))!=null?Io:[];if(wf.length>0||Cf.length>0){let K0=Array.from(new Set([...wf,...Cf]));j(this,null,function*(){var An;C(true);try{let Mf=yield nI(K0),fI=aI(Mf);m(fI,!0),g((An=s==null?void 0:s.content)!=null?An:"");}catch(Mf){}finally{setTimeout(()=>C(false),2e3);}}),v([...(vo=s==null?void 0:s.videos)==null?void 0:vo.map(An=>({id:An.id,url:An.url})),...(Sn=s==null?void 0:s.images)==null?void 0:Sn.map(An=>({id:An==null?void 0:An.id,url:An==null?void 0:An.url}))]);}else g((Tl=s==null?void 0:s.content)!=null?Tl:"");}},[i,s,u,m,g,v]);let _e=J.useCallback(He=>{let Fe={day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit",hour12:false};return He.toLocaleDateString("pt-BR",Fe).replace(",",",")},[]),ft=J.useCallback(()=>A==="select-profile"||A==="post-actions-menu"?"w-fit":A==="schedule"||A==="edit-scheduled-post"||A==="scheduled-posts"?"w-[500px]":"sm:max-w-[800px]",[A]),Lt=J.useCallback(()=>a==="reel"?J__namespace.default.createElement(l4,{onSubmit:()=>ie("REEL")}):J__namespace.default.createElement(s4,{onSubmit:()=>ie("NORMAL"),onScheduleClick:It,scheduledDate:P,onViewScheduledPosts:Et}),[a,ie,It,P]),Xe=J.useCallback(()=>()=>{if(A==="select-profile")return J__namespace.default.createElement("div",{className:"px-4 lg:px-6 py-6"},J__namespace.default.createElement(k5,{onProfileSelect:De,selectedProfileId:N==null?void 0:N.id}));if(A==="schedule")return J__namespace.default.createElement(El,{onBack:io,onScheduleSelect:so,onClose:mt,initialDate:P||void 0,onViewScheduledPosts:Et});if(A==="scheduled-posts")return G?J__namespace.default.createElement(E5,null):J__namespace.default.createElement(I5,{onClose:mt,onScheduleMore:Et,posts:z,onPostActions:at,handleEditScheduledPost:lt,handleDeleteScheduledPost:Le,isSubmitting:L,hasNextPage:$,isFetchingNextPage:oe,isRefetchingPosts:K,loadMorePosts:ne,infiniteRef:me,rootRef:Me});if(A==="post-actions-menu")return J__namespace.default.createElement(j0,{handleEditScheduledPost:lt,handleDeleteScheduledPost:Le,isSubmitting:L,selectedPostForAction:D});if(A==="edit-scheduled-post"){let He=z.find(Fe=>Fe.id===D);return J__namespace.default.createElement(El,{onBack:()=>k("scheduled-posts"),onScheduleSelect:Fe=>ke(D,Fe,true),onClose:mt,initialDate:He!=null&&He.scheduledAt?new Date(He.scheduledAt):void 0})}return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(i4,{selectedProfile:N,onProfileSelectClick:At}),P&&J__namespace.default.createElement("div",{className:"px-4 lg:px-6 py-4"},J__namespace.default.createElement("div",{className:"flex items-center gap-x-1"},J__namespace.default.createElement("p",{className:"font-medium text-sm"},o("feed.create-post.schedule.publication-scheduled-for")," ",_e(P)),J__namespace.default.createElement("button",{onClick:It,className:"text-primary border-primary p-0 border-none hover:border-none hover:bg-transparent hover:text-primary font-medium text-sm"},o("feed.create-post.schedule.edit-button")))),w?J__namespace.default.createElement("div",{className:"w-full flex items-center py-20 gap-y-10 flex-col"},J__namespace.default.createElement("h4",null,o("feed.medias-modal.loading-medias")),J__namespace.default.createElement(Ge,null)):Lt())},[A,De,N,so,P,io,G,o,z,mt,Et,at,lt,Le,L,D,ke,_e,It,At,w,Lt])();return t?J__namespace.default.createElement(g$,{isOpen:r,currentStep:A,handleClose:mt,handleSubmit:ie,postType:a||"NORMAL",scheduledDate:P,post:s||null,operation:i,translate:o,renderStepContent:Xe}):e?J__namespace.default.createElement(h$,{renderStepContent:Xe,currentStep:A}):J__namespace.default.createElement(v$,{isOpen:r,currentStep:A,getModalClassName:ft,handleClose:mt,handleSubmit:ie,postType:a||"NORMAL",scheduledDate:P,post:s||null,renderStepContent:Xe})}function yf({inline:e}){return J__namespace.default.createElement(C5,null,J__namespace.default.createElement(f$,{inline:e}))}function g$({isOpen:e,currentStep:t,handleClose:o,handleSubmit:r,postType:n,scheduledDate:a,post:s,operation:i,translate:l,renderStepContent:d}){let{isOpen:c,closeModal:p,mediaToManage:f}=n4(),{uploadedMedia:u,handleMediaUpload:g,removeMedia:m,content:v,isCreatingThePost:h,selectedFiles:b}=zt(),x=!!(v&&v.trim().length>0),w=!!x||(b==null?void 0:b.length)>0;return i==="update"&&x&&(s!=null&&s.scheduledAt)&&(w=true),!w&&i==="update"&&x&&(w=true),J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(sN,{onClose:o,isOpen:e,direction:"right",className:"z-[999] !rounded-none"},J__namespace.default.createElement("div",{className:"flex flex-col h-full"},!["scheduled-posts","post-actions-menu","edit-scheduled-post","schedule"].includes(t)&&J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"flex items-center justify-between px-4 py-4 border-b border-gray-200"},J__namespace.default.createElement(le,{variant:"ghost",size:"sm",onClick:o,className:"!p-2"},J__namespace.default.createElement(lucideReact.X,{className:"h-5 w-5"})),J__namespace.default.createElement("h2",{className:"text-lg font-semibold"},l("feed.create-post.title")),J__namespace.default.createElement(le,{disabled:!w||h,variant:"default",onClick:()=>n=="reel"?r("REEL"):r("NORMAL"),className:"px-4 !bg-primary !text-sm font-bold text-white py-2 rounded-lg"},l(h?i==="update"?"feed.create-post.buttons.saving":"feed.create-post.buttons.publishing":i==="update"?"feed.create-post.buttons.save":"feed.create-post.buttons.publish")))),J__namespace.default.createElement("div",{className:"flex-1 overflow-y-auto"},d()))),J__namespace.default.createElement(vf,{isOpen:c,onClose:p,media:f,onRemoveMedia:C=>m(C),onComplete:p,onAddMedia:g}))}function h$({renderStepContent:e,currentStep:t}){return J__namespace.default.createElement("div",{className:" w-full max-w-[540px] mx-auto border rounded-[8px] p-6 bg-white"},J__namespace.default.createElement("div",{className:`w-full h-full ${t==="scheduled-posts"?"overflow-hidden":t==="schedule"||t==="edit-scheduled-post"?"":"overflow-y-auto"}`},e()))}function v$({isOpen:e,currentStep:t,getModalClassName:o,handleClose:r,handleSubmit:n,postType:a,scheduledDate:s,post:i,renderStepContent:l}){let{isOpen:d,closeModal:c,mediaToManage:p}=n4(),{uploadedMedia:f,handleMediaUpload:u,removeMedia:g}=zt();return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(gf,{isOpen:e,closeOnClickOutside:t!=="main",showCloseButton:t==="main",header:J__namespace.default.createElement(kN,{onSubmit:()=>a=="reel"?n("REEL"):n("NORMAL"),scheduledDate:s,originalPost:i}),className:`${o()} flex flex-col z-[999] ${t==="scheduled-posts"||t==="schedule"||t==="edit-scheduled-post"?"lg:max-h-[90dvh]":"lg:max-h-[80dvh]"} lg:overflow-hidden justify-start gap-0 border-0 ${t==="schedule"||t==="edit-scheduled-post"?" bg-white":""}`,onClose:r},J__namespace.default.createElement("div",{className:`w-full h-full ${t==="scheduled-posts"?"overflow-hidden":t==="schedule"||t==="edit-scheduled-post"?"":"overflow-y-auto"}`},typeof l=="function"?l():l)),J__namespace.default.createElement(vf,{isOpen:d,onClose:c,media:p,onRemoveMedia:m=>g(m),onComplete:c,onAddMedia:u}))}function y$(e){let{fill:t="#687588",fontSize:o="18px"}=e;return J__namespace.createElement("svg",y({width:o,height:o,viewBox:"0 0 14 17",fill:"none"},e),J__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:t}),J__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08 0h5.145c2.256 0 4.086.888 4.108 3.161v12.645a.879.879 0 01-.103.407.84.84 0 01-1.169.34L6.66 13.851l-5.432-2.71C.338 10.728 0 10.358 0 9.758V3.161C0 .888 1.83 0 4.08 0zm-.56 6.352h6.27a.657.657 0 00.655-.659.657.657 0 00-.654-.659H3.52a.657.657 0 00-.654.659c0 .364.292.659.654.659z",fill:t}))}var b$=J__namespace.memo(y$),uI=b$;var bf=zustand.create(e=>({isOpen:false,openModal:()=>e({isOpen:true}),closeModal:()=>e({isOpen:false}),toggleModal:()=>e(t=>({isOpen:!t.isOpen}))}));function P$(){var I,P,S,D,T,L;let {openModal:e,isOpen:t}=o4(),{user:o,locale:r,page:n,isPageFeed:a,isCommunityFeed:s,community:i,pageTriggerComponents:l}=M(),{translate:d}=Oe(),{openModal:c,closeModal:p,isOpen:f}=xo(),{openModal:u}=bf(),g=J__namespace.default.isValidElement(l)?J__namespace.default.cloneElement(l,{onClick:E=>{var W;window.dispatchEvent(new CustomEvent("closeCreatePostModal")),p();let B=(W=l.props)==null?void 0:W.onClick;if(B){let q=()=>{xo.getState().isOpen?setTimeout(q,50):B(E);};setTimeout(q,50);}}}):l,[m,v]=usehooks.useToggle(false),{isModalOpen:h,openModal:b,closeModal:x}=Rc(),w=o==null?void 0:o.isActive,{isMobile:C}=Eo(),A=()=>{Ae(),s?window.location.href=`/community/${r}/${i==null?void 0:i.slug}`:a?window.location.href=`/company/${r}/${n==null?void 0:n.slug}`:window.location.href=`/profile/${r}`;},k=(E,B)=>{if(!w){v(true);return}c(E,B);};return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"bg-white p-4 !rounded-none lg:!rounded-2xl"},J__namespace.default.createElement("div",{className:"flex items-center gap-2 mb-4"},s?J__namespace.default.createElement(ae,{onClick:A,src:(I=i==null?void 0:i.image)!=null?I:"",name:(P=i==null?void 0:i.name)!=null?P:"",type:"community"}):a?J__namespace.default.createElement(ae,{onClick:A,src:(S=n==null?void 0:n.logo)!=null?S:"",name:(D=n==null?void 0:n.name)!=null?D:"",type:"page"}):J__namespace.default.createElement(ae,{onClick:A,src:(T=o==null?void 0:o.avatar)!=null?T:"",name:(L=o==null?void 0:o.name)!=null?L:"",type:"user"}),J__namespace.default.createElement("div",{className:"flex-1 relative"},J__namespace.default.createElement(le,{variant:"outline",className:"w-full border-gray-200 justify-start h-auto py-2.5 px-4 text-gray-shade8 font-normal bg-white hover:bg-[#F6F7F9]/80 border-[1px] rounded-lg text-[14px] ![&_svg]:size-[20px]",onClick:()=>k()},d("feed.create-post.start-a-post")),J__namespace.default.createElement(lucideReact.SmileIcon,{className:"absolute right-4 top-1/2 -translate-y-1/2 h-5 w-5 text-gray-400"}))),J__namespace.default.createElement("div",{className:"flex !gap-x-4"},J__namespace.default.createElement(le,{variant:"ghost",className:"gap-2 text-gray-600 hover:bg-gray-50 h-auto !p-0 hover:bg-transparent ![&_svg]:size-[20px]",onClick:()=>k("media")},J__namespace.default.createElement(H0,null),J__namespace.default.createElement("span",{className:"text-[14px]"},d("feed.create-post.options.midia"))),g,C?null:J__namespace.default.createElement(le,{variant:"ghost",className:"gap-2 text-gray-600 hover:opacity-90 h-auto !p-0 hover:bg-transparent ![&_svg]:size-[18px]",onClick:()=>{if(!w){v(true);return}e();}},J__namespace.default.createElement(x5,null),J__namespace.default.createElement("span",{className:"text-[14px]"},d("feed.create-post.options.article"))),J__namespace.default.createElement(le,{variant:"ghost",className:"gap-2 text-gray-600 hover:opacity-90 h-auto !p-0 hover:bg-transparent ![&_svg]:size-[20px]",onClick:()=>k("reel")},J__namespace.default.createElement(aN,null),J__namespace.default.createElement("span",{className:"text-[14px]"},d("feed.create-post.options.reels"))),J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 text-gray-600 hover:opacity-90 h-auto hover:bg-transparent ![&_svg]:size-[20px]",onClick:()=>k("schedule","scheduled-posts")},J__namespace.default.createElement(Ri,null),J__namespace.default.createElement("span",{className:"text-[14px]"},d("feed.create-post.options.scheduling"))),J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 text-gray-600 hover:opacity-90 h-auto hover:bg-transparent ![&_svg]:size-[20px]",onClick:()=>{if(!w){v(true);return}u();}},J__namespace.default.createElement(uI,null),J__namespace.default.createElement("span",{className:"text-[14px]"},d("feed.create-post.options.saved-items"))))),J__namespace.default.createElement(ko,{isOpen:m,onClose:()=>v(false)}),J__namespace.default.createElement(yf,null),J__namespace.default.createElement(reactToastify.ToastContainer,{className:"z-[99999]"}))}function S$({currentStep:e,selectedProfile:t,scheduledDate:o,selectedPostForAction:r,isSubmitting:n,isLoading:a,onProfileSelect:s,onGoToProfileSelection:i,onGoToSchedule:l,onScheduleSelect:d,onBackToMain:c,onScheduleMore:p,onPostActions:f,onEditScheduledPost:u,onDeleteScheduledPost:g,onEditPostSubmit:m,onSubmit:v,onClose:h,shouldLoadScheduledPosts:b=false,onPostDeleted:x,onPostUpdated:w,showScheduleOption:C=true}){let{translate:A}=Oe(),{postType:k,post:N,operation:I}=xo(),{content:P,selectedFiles:S}=zt(),{scheduledPosts:D,isLoadingScheduledPosts:T,hasNextPage:B,isFetchingNextPage:W,isRefetchingScheduledPosts:q,loadMorePosts:Y,infiniteRef:H,rootRef:z}=P5({enabled:b,onPostDeleted:()=>{x==null||x();},onPostUpdated:()=>{(o||N!=null&&N.scheduledAt)&&(w==null||w());}}),G=J.useCallback(_=>{g==null||g(_);},[g]),R=J.useCallback(_=>{let $={day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit",hour12:false};return _.toLocaleDateString("pt-BR",$).replace(",",",")},[]),V=J.useCallback(()=>k==="reel"?J__namespace.default.createElement(l4,{onSubmit:()=>v("REEL")}):J__namespace.default.createElement(s4,{onSubmit:()=>v("NORMAL"),onScheduleClick:C?l:void 0,scheduledDate:o,showScheduleOption:C,onViewScheduledPosts:p}),[k,v,l,o,C]);if(e==="select-profile")return J__namespace.default.createElement("div",{className:"px-4 lg:px-6 py-6"},J__namespace.default.createElement(k5,{onProfileSelect:s,selectedProfileId:t==null?void 0:t.id}));if(e==="schedule")return J__namespace.default.createElement(El,{onBack:c,onScheduleSelect:d,onClose:h||(()=>{}),initialDate:o||void 0,onViewScheduledPosts:p});if(e==="scheduled-posts")return T?J__namespace.default.createElement(E5,null):J__namespace.default.createElement(I5,{onClose:h||(()=>{}),onScheduleMore:p,posts:D,onPostActions:f,handleEditScheduledPost:u,handleDeleteScheduledPost:G,isSubmitting:n,hasNextPage:B,isFetchingNextPage:W,isRefetchingPosts:q,loadMorePosts:Y,infiniteRef:H,rootRef:z});if(e==="post-actions-menu")return J__namespace.default.createElement(j0,{handleEditScheduledPost:u,handleDeleteScheduledPost:G,isSubmitting:n,selectedPostForAction:r});if(e==="edit-scheduled-post"){let _=D.find($=>$.id===r);return J__namespace.default.createElement(El,{onBack:()=>{c();},onScheduleSelect:$=>m(r,$,true),onClose:h||(()=>{}),initialDate:_!=null&&_.scheduledAt?new Date(_.scheduledAt):void 0})}return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(i4,{selectedProfile:t,onProfileSelectClick:i}),C&&o&&J__namespace.default.createElement("div",{className:"px-4 lg:px-6 py-4"},J__namespace.default.createElement("div",{className:"flex items-center gap-x-1"},J__namespace.default.createElement("p",{className:"font-medium text-sm"},A("feed.create-post.schedule.publication-scheduled-for")," ",R(o)),J__namespace.default.createElement("button",{onClick:l,className:"text-primary border-primary p-0 border-none hover:border-none hover:bg-transparent hover:text-primary font-medium text-sm"},A("feed.create-post.schedule.edit-button")))),a?J__namespace.default.createElement("div",{className:"w-full flex items-center py-20 gap-y-10 flex-col"},J__namespace.default.createElement("h4",null,A("feed.medias-modal.loading-medias")),J__namespace.default.createElement(Ge,null)):V())}function A$(e){return J__namespace.default.createElement(C5,null,J__namespace.default.createElement(S$,y({},e)))}
|
|
3139
|
-
exports.ActivateAccountModal=ko;exports.AddRating=a8;exports.AddressAutocompleteInput=Y3;exports.AnimatedModal=xi;exports.ArticleContent=
|
|
3138
|
+
`;var UX=e=>j(void 0,null,function*(){var r,n,a,s;let{user:t,feedApi:o}=M();try{return yield hf__default.default(o!=null?o:"",YN,{options:{page:e,perPage:2,sort:"scheduledAt",sortDir:"asc"}},{"x-access-token":(r=t==null?void 0:t.accessToken)!=null?r:""})}catch(i){let l=yield hf__default.default(o!=null?o:"",ZN,{options:{page:1,perPage:2,sort:"createdAt",sortDir:"desc"}},{"x-access-token":(n=t==null?void 0:t.accessToken)!=null?n:""}),c=(((s=(a=l==null?void 0:l.recommendedPostsUser)==null?void 0:a.data)==null?void 0:s.flatMap(b=>[...b.reels||[],...b.normalPosts||[]]))||[]).filter(b=>b.scheduledAt),p=2,f=e||1,u=(f-1)*p,g=u+p,m=c.slice(u,g),v=c.length,h=Math.ceil(v/p);return {scheduledPosts:{meta:{currentPage:f,perPage:p,lastPage:h,total:v},data:m}}}});function XN({enabled:e=false}={}){let{user:t}=M(),o=(t==null?void 0:t.id)||"",{data:r,isLoading:n,refetch:a,isRefetching:s,hasNextPage:i,fetchNextPage:l,isFetchingNextPage:d}=yt({queryFn:({pageParam:f})=>UX(f),enabled:!!o&&e,initialPageParam:1,queryKey:["scheduled-posts",o],getNextPageParam:f=>{var g;let u=(g=f==null?void 0:f.scheduledPosts)==null?void 0:g.meta;if(u&&u.currentPage<u.lastPage)return u.currentPage+1}});return {scheduledPosts:(r==null?void 0:r.pages.flatMap(f=>{var u;return ((u=f==null?void 0:f.scheduledPosts)==null?void 0:u.data)||[]}))||[],isLoadingScheduledPosts:n,refetchScheduledPosts:a,isRefetchingScheduledPosts:s,hasNextPage:i,fetchNextPage:l,isFetchingNextPage:d,loadMorePosts:()=>{i&&l();}}}function P5({enabled:e,onPostDeleted:t,onPostUpdated:o}){let[r,n]=J.useState(null),{scheduledPosts:a,isLoadingScheduledPosts:s,refetchScheduledPosts:i,isRefetchingScheduledPosts:l,hasNextPage:d,fetchNextPage:c,isFetchingNextPage:p,loadMorePosts:f}=XN({enabled:e}),[u,{rootRef:g}]=EM__default.default({loading:p,hasNextPage:d||false,onLoadMore:f,disabled:!e||s,rootMargin:"0px 0px 100px 0px"}),m=J.useCallback(()=>{n("delete"),t==null||t(),e&&i();},[e,t,i]),v=J.useCallback(()=>{n("update"),o==null||o(),e&&i();},[e,o,i]),h=J.useCallback(()=>{e&&i();},[e,i]);return {scheduledPosts:a,isLoadingScheduledPosts:s,isRefetchingScheduledPosts:l,hasNextPage:d,fetchNextPage:c,isFetchingNextPage:p,loadMorePosts:f,handlePostDeleted:m,handlePostUpdated:v,forceRefetch:h,lastAction:r,infiniteRef:u,rootRef:g}}var jX=e=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},J__namespace.createElement("path",{fill:"#E53E3E",d:"M13.096 6.326c0 .045-.356 4.539-.559 6.43-.127 1.16-.875 1.865-1.997 1.885q-1.293.027-2.537.026-1.324.001-2.582-.026c-1.084-.026-1.833-.744-1.954-1.885-.208-1.898-.557-6.385-.564-6.43a.53.53 0 0 1 .127-.372.47.47 0 0 1 .35-.156h9.246c.133 0 .254.058.349.156a.5.5 0 0 1 .12.372",opacity:"0.4"}),J__namespace.createElement("path",{fill:"#E53E3E",d:"M14 3.984a.48.48 0 0 0-.475-.488H11.58a.854.854 0 0 1-.827-.678l-.11-.486a1.32 1.32 0 0 0-1.268-.999H6.624c-.596 0-1.117.412-1.275 1.03l-.102.456a.855.855 0 0 1-.827.677H2.476A.48.48 0 0 0 2 3.984v.254c0 .267.216.488.476.488h11.049c.26 0 .475-.22.475-.488z"})),mf=jX;var qX=e=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},J__namespace.createElement("path",{fill:"#A8A8A8",d:"M13.328 12.636H9.532a.68.68 0 0 0-.671.682c0 .377.3.682.671.682h3.796c.37 0 .672-.305.672-.682a.68.68 0 0 0-.672-.682",opacity:"0.4"}),J__namespace.createElement("path",{fill:"#A8A8A8",d:"m6.873 4.603 3.597 2.906c.087.07.101.197.034.286l-4.265 5.557a1.4 1.4 0 0 1-1.086.545l-2.328.028a.265.265 0 0 1-.261-.207l-.53-2.3c-.091-.424 0-.86.269-1.198l4.285-5.583a.2.2 0 0 1 .285-.034"}),J__namespace.createElement("path",{fill:"#A8A8A8",d:"m12.08 5.777-.693.866a.2.2 0 0 1-.282.032L7.504 3.757a.206.206 0 0 1-.029-.288l.669-.831c.607-.781 1.665-.853 2.518-.172l.981.781c.402.316.67.731.762 1.168.106.481-.007.953-.325 1.362",opacity:"0.4"})),uf=qX;function j0({handleEditScheduledPost:e,handleDeleteScheduledPost:t,isSubmitting:o,selectedPostForAction:r,isDropdown:n=false,onClose:a}){let{translate:s}=Oe(),i=()=>{e(r),a==null||a();},l=()=>{t(r),a==null||a();};return n?J__namespace.default.createElement("div",{className:"absolute right-0 top-full mt-1 z-50 bg-white border border-gray-200 rounded-[16px] py-2 min-w-[140px] "},J__namespace.default.createElement("button",{onClick:i,className:"w-full flex items-center gap-3 px-4 py-2 text-left hover:bg-gray-50 transition-colors",disabled:o},J__namespace.default.createElement(uf,null),J__namespace.default.createElement("span",{className:"font-medium text-gray-900"},s("feed.create-post.schedule.edit-button"))),J__namespace.default.createElement("button",{onClick:l,className:"w-full flex items-center gap-3 px-4 py-2 text-left hover:bg-gray-50 transition-colors",disabled:o},J__namespace.default.createElement(mf,null),J__namespace.default.createElement("span",{className:"font-medium text-red-500"},s("feed.create-post.schedule.delete-button")))):J__namespace.default.createElement("div",{className:"flex flex-col items-center h-fit w-[110px] bg-white p-4"},J__namespace.default.createElement("div",{className:"flex-1 space-y-4 w-full flex flex-col items-center"},J__namespace.default.createElement("button",{onClick:i,className:"w-fit flex items-center gap-2 justify-between text-left rounded-lg",disabled:o},J__namespace.default.createElement(uf,null),J__namespace.default.createElement("div",null,J__namespace.default.createElement("p",{className:"font-medium text-gray-900"},s("feed.create-post.schedule.edit-button")))),J__namespace.default.createElement("button",{onClick:l,className:"w-fit flex items-center gap-2 justify-between text-left rounded-lg",disabled:o},J__namespace.default.createElement(mf,null),J__namespace.default.createElement("div",null,J__namespace.default.createElement("p",{className:"font-medium text-red-500"},s("feed.create-post.schedule.delete-button"))))))}var WX=e=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"55",height:"55",fill:"none",viewBox:"0 0 55 55"},J__namespace.createElement("rect",{width:"55",height:"55",fill:"#0B89CE",fillOpacity:"0.1",rx:"27.5"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M40.833 27.5c0 7.365-5.97 13.333-13.333 13.333S14.166 34.865 14.166 27.5c0-7.363 5.97-13.333 13.334-13.333s13.333 5.97 13.333 13.333",opacity:"0.4"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M32.265 32.586c-.175 0-.351-.045-.512-.14l-5.235-3.123a1 1 0 0 1-.487-.86v-6.73a1 1 0 0 1 2 0v6.162l4.747 2.83a1.002 1.002 0 0 1-.513 1.86"})),A5=WX;function $N(){let{translate:e}=Oe();return J__namespace.default.createElement("div",{className:"flex items-center justify-start p-6 gap-4 flex-shrink-0"},J__namespace.default.createElement("div",{className:""},J__namespace.default.createElement(A5,null)),J__namespace.default.createElement("div",{className:"flex flex-col gap-2 items-start"},J__namespace.default.createElement("h2",{className:"text-xl font-semibold text-[#050910] mb-1"},e("feed.create-post.schedule.scheduled-publications")),J__namespace.default.createElement("p",{className:"text-sm text-grey-6"},e("feed.create-post.schedule.view-upcoming-publications"))))}var RN=e=>{try{return dateFns.format(e,"dd/MM/yy HH:mm",{locale:locale.ptBR})}catch(t){return "Data inv\xE1lida"}};function N5(){let[e,t]=J.useState(false),[o,r]=J.useState(false),[n,a]=J.useState(false);return J.useEffect(()=>{let s=()=>{let i=window.innerWidth;t(i<768||i>=768&&i<1084),r(i>=768&&i<1084),a(i>=1084);};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),{isMobile:e,isTablet:o,isDesktop:n}}function eI({post:e,onPostActions:t,handleEditScheduledPost:o,handleDeleteScheduledPost:r,isSubmitting:n=false}){var m;let{translate:a}=Oe(),{isMobile:s}=N5(),[i,l]=J.useState(false),d=J.useRef(null);J.useEffect(()=>{let v=h=>{d.current&&!d.current.contains(h.target)&&l(false);};return i&&document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v);}},[i]);let c=()=>{s&&t?t(e.id):l(!i);},p=()=>{l(false);},f=!s&&o&&r,g=f||s&&t;return J__namespace.default.createElement("div",{key:e.id,className:"space-y-3 rounded-lg border border-gray-200 p-4 relative"},J__namespace.default.createElement("div",{className:"flex items-center justify-between"},J__namespace.default.createElement("span",{className:"text-sm text-gray-600 font-medium"},a("feed.create-post.schedule.publication-scheduled-for")," ",(()=>{try{return e.scheduledAt!=null?RN(new Date(e.scheduledAt)):"Data n\xE3o definida"}catch(v){return "Data inv\xE1lida"}})()),g&&J__namespace.default.createElement("div",{className:"relative",ref:d},J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-gray-100 rounded-full",onClick:c},J__namespace.default.createElement(lucideReact.MoreVertical,{className:"h-[1.125rem] w-[1.125rem] text-[#050910]"})),f&&i&&J__namespace.default.createElement(j0,{handleEditScheduledPost:o,handleDeleteScheduledPost:r,isSubmitting:n,selectedPostForAction:e.id,isDropdown:true,onClose:p}))),J__namespace.default.createElement("div",{className:"flex gap-3 items-start"},J__namespace.default.createElement("div",{className:"w-16 h-16 bg-gradient-to-br from-blue-400 to-purple-500 rounded-lg flex-shrink-0 flex items-center justify-center"},e.images&&e.images.length>0&&((m=e.images[0])!=null&&m.url)?J__namespace.default.createElement("img",{src:e.images[0].url,alt:"Post preview",className:"w-full h-full object-cover rounded-lg"}):J__namespace.default.createElement("img",{key:e.id,src:"./preview-scheduled-post-cover.png",alt:"Post preview",width:96,height:62,className:" rounded-lg"})),J__namespace.default.createElement("div",{className:"flex-1 min-w-0"},J__namespace.default.createElement("p",{className:"text-sm text-gray-700 leading-relaxed overflow-hidden break-words",style:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",wordBreak:"break-word",overflowWrap:"break-word"}},e.content||""))))}function I5({onClose:e,onScheduleMore:t,posts:o,onPostActions:r,handleEditScheduledPost:n,handleDeleteScheduledPost:a,isSubmitting:s=false,hasNextPage:i=false,isFetchingNextPage:l=false,isRefetchingPosts:d=false,loadMorePosts:c,infiniteRef:p,rootRef:f}){let{translate:u}=Oe();return J__namespace.default.createElement("div",{className:"flex flex-col h-full bg-white gap-8"},J__namespace.default.createElement($N,null),J__namespace.default.createElement("div",{ref:f,className:"flex-1 px-6 space-y-4 overflow-y-auto min-h-0 max-h-full"},o.length===0&&J__namespace.default.createElement("div",{className:"flex flex-col items-center py-12 text-gray-500"},J__namespace.default.createElement(A5,null),J__namespace.default.createElement("p",{className:"mt-4 text-lg font-medium"},u("feed.create-post.schedule.no-post-scheduled")),J__namespace.default.createElement("p",{className:"text-sm text-gray-400"},u("feed.create-post.schedule.no-scheduled-posts-yet"))),o.map(g=>J__namespace.default.createElement(eI,{key:g.id,post:g,onPostActions:r,handleEditScheduledPost:n,handleDeleteScheduledPost:a,isSubmitting:s})),i&&J__namespace.default.createElement("div",{ref:p,className:"flex justify-center py-4"},l&&J__namespace.default.createElement("div",{className:"flex items-center gap-2 text-gray-500"},J__namespace.default.createElement(Ge,{className:"w-32 h-32"})))),J__namespace.default.createElement("div",{className:"flex gap-3 px-6 py-4 flex-shrink-0 bg-white"},J__namespace.default.createElement(Vo,{onClick:e,className:"flex-1 text-primary bg-transparent hover:bg-transparent rounded-lg border-primary py-2 sm:py-3 px-[1.5rem] sm:px-[2rem] lg:px-[3rem] font-bold text-sm sm:text-base"},u("feed.create-post.schedule.close-button")),J__namespace.default.createElement(Vo,{onClick:t,className:"flex-1 bg-primary hover:bg-primary/90 text-white disabled:opacity-50 rounded-lg py-2 sm:py-3 px-[1.5rem] sm:px-[2rem] lg:px-[3rem] font-bold text-sm sm:text-base"},u("feed.create-post.schedule.schedule-button"))))}function E5(){return J__namespace.default.createElement("div",{className:"flex flex-col h-full bg-white"},J__namespace.default.createElement("div",{className:"flex items-center justify-start p-6 gap-4"},J__namespace.default.createElement("div",{className:"w-6 h-6 bg-gray-200 rounded animate-pulse"}),J__namespace.default.createElement("div",{className:"flex flex-col gap-2"},J__namespace.default.createElement("div",{className:"h-6 w-48 bg-gray-200 rounded animate-pulse"}),J__namespace.default.createElement("div",{className:"h-4 w-64 bg-gray-200 rounded animate-pulse"}))),J__namespace.default.createElement("div",{className:"flex-1 px-6 py-0 space-y-4 overflow-y-auto"},[1,2].map(e=>J__namespace.default.createElement("div",{key:e,className:"space-y-3 rounded-lg border border-gray-200 p-4 animate-pulse"},J__namespace.default.createElement("div",{className:"flex items-center justify-between"},J__namespace.default.createElement("div",{className:"h-4 w-40 bg-gray-200 rounded"}),J__namespace.default.createElement("div",{className:"h-6 w-6 bg-gray-200 rounded-full"})),J__namespace.default.createElement("div",{className:"flex gap-3 items-start"},J__namespace.default.createElement("div",{className:"w-16 h-16 bg-gray-200 rounded-lg flex-shrink-0"}),J__namespace.default.createElement("div",{className:"flex-1 space-y-2"},J__namespace.default.createElement("div",{className:"h-4 w-full bg-gray-200 rounded"}),J__namespace.default.createElement("div",{className:"h-3 w-3/4 bg-gray-200 rounded"}),J__namespace.default.createElement("div",{className:"h-3 w-1/2 bg-gray-200 rounded"})))))))}function tI({profile:e,isSelected:t,onSelect:o}){return J__namespace.default.createElement("div",{className:"flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-50 transition-colors cursor-pointer",onClick:()=>o(e.id)},J__namespace.default.createElement("div",{className:"flex items-center gap-3 flex-1"},J__namespace.default.createElement(ae,{src:e.avatar,name:e.name,className:"h-10 w-10"}),J__namespace.default.createElement("div",{className:"flex flex-col"},J__namespace.default.createElement("span",{className:"font-medium text-gray-900"},e.name),J__namespace.default.createElement("span",{className:"text-sm text-gray-500"},e.role))),J__namespace.default.createElement("input",{type:"radio",name:"profile-selector",value:e.id,checked:t,onChange:()=>o(e.id),className:U("h-5 w-5 rounded-full appearance-none cursor-pointer",t?"border-4 border-primary":"bg-white border border-[#D5DFE9]")}))}function oI(){return J__namespace.default.createElement("div",{className:"space-y-3"},[1,2,3].map(e=>J__namespace.default.createElement("div",{key:e,className:"flex items-center space-x-3 p-3 rounded-lg animate-pulse"},J__namespace.default.createElement("div",{className:"flex items-center gap-3 flex-1"},J__namespace.default.createElement("div",{className:"h-10 w-10 bg-gray-200 rounded-full"}),J__namespace.default.createElement("div",{className:"flex flex-col gap-2"},J__namespace.default.createElement("div",{className:"h-4 w-24 bg-gray-200 rounded"}),J__namespace.default.createElement("div",{className:"h-3 w-16 bg-gray-200 rounded"}))),J__namespace.default.createElement("div",{className:"h-5 w-5 bg-gray-200 rounded-full"}))))}var e$=({error:e})=>J__namespace.default.createElement("div",{className:"flex items-center justify-center py-8"},J__namespace.default.createElement("div",{className:"flex flex-col items-center gap-2 text-center"},J__namespace.default.createElement(lucideReact.AlertCircle,{className:"w-6 h-6 text-red-500"}),J__namespace.default.createElement("span",{className:"text-sm text-red-600"},e),J__namespace.default.createElement("button",{onClick:()=>window.location.reload(),className:"text-sm text-primary hover:underline"},"Tentar novamente"))),t$=()=>J__namespace.default.createElement("div",{className:"flex items-center justify-center py-8"},J__namespace.default.createElement("div",{className:"text-center"},J__namespace.default.createElement(lucideReact.AlertCircle,{className:"w-6 h-6 text-gray-400 mx-auto mb-2"}),J__namespace.default.createElement("p",{className:"text-sm text-gray-500"},"Nenhum perfil dispon\xEDvel")));function k5({onProfileSelect:e,selectedProfileId:t}){let{pagesProfiles:o,selectedValue:r,handleValueChange:n,isLoading:a}=Qm({selectedProfileId:t,onProfileSelect:e}),[s,i]=J.useState(null);return s?J__namespace.default.createElement(e$,{error:s}):a?J__namespace.default.createElement(oI,null):o.length===0?J__namespace.default.createElement(t$,null):J__namespace.default.createElement("div",{className:"space-y-3"},J__namespace.default.createElement(Hm,{value:r,onValueChange:n,className:"space-y-2 p-0",defaultValue:"1"},o.map(l=>J__namespace.default.createElement(tI,{key:l.id,profile:l,isSelected:r===l.id,onSelect:n}))))}var nI=e=>j(void 0,null,function*(){return yield Promise.all(e.map(o=>j(void 0,null,function*(){let n=yield (yield fetch(o)).blob(),a=o.split("/").pop()||"file";return new File([n],a,{type:n.type})})))}),aI=e=>{let t=new DataTransfer;return e.forEach(o=>t.items.add(o)),t.files};function gf({isOpen:e,header:t,onClose:o,isLoading:r,children:n,showCloseButton:a=true,closeOnClickOutside:s=true,className:i,disableFullScreen:l=false}){return J__namespace.default.createElement("div",{className:"absolute"},J__namespace.default.createElement(F4,{open:e,onOpenChange:d=>{!d&&s&&o();}},J__namespace.default.createElement(d6,null),J__namespace.default.createElement(cd,{showCloseButton:a,onClose:o,className:`px-0 py-6 lg:px-6 w-full ${!l&&"h-[100dvh]"} flex flex-col !justify-start overflow-hidden z-[210] !rounded-none lg:!rounded-2xl lg:h-auto pt-4 gap-0 ${i}`,onInteractOutside:d=>{s||d.preventDefault();}},r&&J__namespace.default.createElement("div",{className:"loading-bar"}),!l&&J__namespace.default.createElement("header",{className:"px-4 border-b-8 border-[#F6F6F6] py-4 lg:hidden flex items-center w-full"},J__namespace.default.createElement("button",{onClick:()=>o(),className:"cursor-pointer"},J__namespace.default.createElement(lucideReact.X,{className:"h-6 w-6"})),t),J__namespace.default.createElement(pd,null),n)))}function sI({postToShare:e}){let{user:t,feedApi:o,page:r,isPageFeed:n,isCommunityFeed:a,community:s,queryClient:i}=M(),{successToast:l}=tt(),{mutate:d,isPending:c}=ge({mutationKey:["createPost"],mutationFn:f=>j(this,[f],function*({createPostInput:p}){var m,h,b;if(console.log("Creating post with input:",p),a){let g=p,{userId:x,pageId:w}=g,C=Q(g,["userId","pageId"]);return yield hf__default.default(o!=null?o:"",Zi,{createPostInput:F(y({},C),{communityId:s==null?void 0:s.id})},{"x-access-token":(m=t==null?void 0:t.accessToken)!=null?m:""})}if(n){let v=p,{userId:x}=v,w=Q(v,["userId"]);return yield hf__default.default(o!=null?o:"",Zi,{createPostInput:F(y({},w),{pageId:r==null?void 0:r.id})},{"x-access-token":(h=t==null?void 0:t.accessToken)!=null?h:""})}let u=p.sharedPostId?F(y({},p),{pageId:void 0}):p;return yield hf__default.default(o!=null?o:"",Zi,{createPostInput:u},{"x-access-token":(b=t==null?void 0:t.accessToken)!=null?b:""})}),onMutate:f=>j(this,[f],function*({createPostInput:p}){var m,v,h,b,x,w,C,A,k,N,I,P,S,D,T,L,E,B;if(a){i==null||i.invalidateQueries({queryKey:["posts",s==null?void 0:s.id]}),i==null||i.invalidateQueries({queryKey:["post-community",s==null?void 0:s.id]}),i==null||i.invalidateQueries({predicate:z=>z.queryKey[0]==="posts-per-community"&&z.queryKey[1]===(s==null?void 0:s.id)});let W=i==null?void 0:i.getQueryData(["posts",s==null?void 0:s.id]),q=i==null?void 0:i.getQueryData(["post-community",s==null?void 0:s.id]),Y=i==null?void 0:i.getQueryData(["posts-per-community",s==null?void 0:s.id]),H=y({id:`optimistic-${Date.now()}`,content:(m=p==null?void 0:p.content)!=null?m:"",postType:(v=p==null?void 0:p.postType)!=null?v:"NORMAL",createdAt:new Date().toISOString(),totalComments:0,totalReactions:0,totalShares:0,communityId:s==null?void 0:s.id,comments:[],reactions:[],images:((h=p==null?void 0:p.images)!=null?h:[]).map(z=>{var G,R;return {id:(G=z==null?void 0:z.id)!=null?G:`temp-${Date.now()}`,url:(R=z==null?void 0:z.url)!=null?R:""}}),videos:((b=p==null?void 0:p.videos)!=null?b:[]).map(z=>{var G,R;return {id:(G=z==null?void 0:z.id)!=null?G:`temp-${Date.now()}`,url:(R=z==null?void 0:z.url)!=null?R:""}}),bio:(x=p==null?void 0:p.bio)!=null?x:"",link:{title:"",description:"",imageUrl:"",url:""},sharedPostId:(w=p==null?void 0:p.sharedPostId)!=null?w:"",user:t,community:s?{name:s.name,slug:s.slug}:void 0},e&&{sharedPost:e});return i==null||i.setQueryData(["community-posts",s==null?void 0:s.id],z=>z?[H,...z]:[H]),{previousPosts:W,previousCommunityPosts:q,previousCommunityPostsList:Y,optimisticPost:H}}if(n){i==null||i.invalidateQueries({queryKey:["posts",r==null?void 0:r.id]}),i==null||i.invalidateQueries({queryKey:["post-page",r==null?void 0:r.id]}),i==null||i.invalidateQueries({predicate:z=>z.queryKey[0]==="posts-per-page"&&z.queryKey[1]===(r==null?void 0:r.id)});let W=i==null?void 0:i.getQueryData(["posts",r==null?void 0:r.id]),q=i==null?void 0:i.getQueryData(["post-page",r==null?void 0:r.id]),Y=i==null?void 0:i.getQueryData(["posts-per-page",r==null?void 0:r.id]),H=y({id:`optimistic-${Date.now()}`,content:(C=p==null?void 0:p.content)!=null?C:"",postType:(A=p==null?void 0:p.postType)!=null?A:"NORMAL",createdAt:new Date().toISOString(),totalComments:0,totalReactions:0,totalShares:0,pageId:r==null?void 0:r.id,comments:[],reactions:[],images:((k=p==null?void 0:p.images)!=null?k:[]).map(z=>{var G,R;return {id:(G=z==null?void 0:z.id)!=null?G:`temp-${Date.now()}`,url:(R=z==null?void 0:z.url)!=null?R:""}}),videos:((N=p==null?void 0:p.videos)!=null?N:[]).map(z=>{var G,R;return {id:(G=z==null?void 0:z.id)!=null?G:`temp-${Date.now()}`,url:(R=z==null?void 0:z.url)!=null?R:""}}),bio:(I=p==null?void 0:p.bio)!=null?I:"",link:{title:"",description:"",imageUrl:"",url:""},sharedPostId:(P=p==null?void 0:p.sharedPostId)!=null?P:"",user:t,page:r?{name:r.name,sector:r.sector,logo:r.logo}:void 0},e&&{sharedPost:e});return i==null||i.setQueryData(["post-page",r==null?void 0:r.id],z=>z?[H,...z]:[H]),{previousPosts:W,previousPagePosts:q,previousPagePostsList:Y,optimisticPost:H}}i==null||i.invalidateQueries({queryKey:["posts",t==null?void 0:t.id]});let u=i==null?void 0:i.getQueryData(["posts",t==null?void 0:t.id]),g=y(y({id:`optimistic-${Date.now()}`,content:(S=p==null?void 0:p.content)!=null?S:"",postType:(D=p==null?void 0:p.postType)!=null?D:"NORMAL",createdAt:new Date().toISOString(),totalComments:0,totalReactions:0,totalShares:0,user:t,comments:[],reactions:[],images:((T=p==null?void 0:p.images)!=null?T:[]).map(W=>{var q,Y;return {id:(q=W==null?void 0:W.id)!=null?q:`temp-${Date.now()}`,url:(Y=W==null?void 0:W.url)!=null?Y:""}}),videos:((L=p==null?void 0:p.videos)!=null?L:[]).map(W=>{var q,Y;return {id:(q=W==null?void 0:W.id)!=null?q:`temp-${Date.now()}`,url:(Y=W==null?void 0:W.url)!=null?Y:""}}),bio:(E=p==null?void 0:p.bio)!=null?E:"",link:{title:"",description:"",imageUrl:"",url:""},sharedPostId:(B=p==null?void 0:p.sharedPostId)!=null?B:""},e&&{sharedPost:e}),(p==null?void 0:p.pageId)&&{pageId:p.pageId});return i==null||i.setQueryData(["posts",t==null?void 0:t.id],u),{previousPosts:u,optimisticPost:g}}),onSuccess(p,f){var u;a?(i==null||i.invalidateQueries({queryKey:["posts",s==null?void 0:s.id]}),i==null||i.invalidateQueries({queryKey:["post-community",s==null?void 0:s.id]}),i==null||i.invalidateQueries({predicate:g=>g.queryKey[0]==="posts-per-community"&&g.queryKey[1]===(s==null?void 0:s.id)})):n?(i==null||i.invalidateQueries({queryKey:["posts",r==null?void 0:r.id]}),i==null||i.invalidateQueries({queryKey:["post-page",r==null?void 0:r.id]})):i==null||i.invalidateQueries({queryKey:["posts",t==null?void 0:t.id]}),(u=f.createPostInput)!=null&&u.sharedPostId&&l({title:"Publica\xE7\xE3o compartilhada",message:"Compartilhada com sucesso!"});},onError(p,f,u){a?(u!=null&&u.previousPosts&&(i==null||i.setQueryData(["posts",s==null?void 0:s.id],u.previousPosts)),u!=null&&u.previousCommunityPosts&&(i==null||i.setQueryData(["community-posts",s==null?void 0:s.id],u.previousCommunityPosts))):n?(u!=null&&u.previousPosts&&(i==null||i.setQueryData(["posts",r==null?void 0:r.id],u.previousPosts)),u!=null&&u.previousPagePosts&&(i==null||i.setQueryData(["post-page",r==null?void 0:r.id],u.previousPagePosts))):i==null||i.setQueryData(["posts",t==null?void 0:t.id],u==null?void 0:u.previousPosts);}});return {createAPost:d,isCreatingThePost:c}}function lI(e){let t=J.useRef(null),o=J.useRef(false);J.useEffect(()=>{if(!e){if(o.current&&t.current)try{Object.defineProperty(window.location,"href",t.current),o.current=!1;}catch(a){}return}let r=a=>{let s=a.target,i=s==null?void 0:s.closest("a");if(i&&i.href){a.preventDefault();let l=i.href;window.confirm("A video upload is in progress. Leaving this page will cancel your upload. Continue?")&&(o.current=false,window.location.href=l);}};if(document.addEventListener("click",r,true),!o.current){let a=Object.getOwnPropertyDescriptor(window.location,"href");if(a&&a.configurable!==false){t.current=a;try{Object.defineProperty(window.location,"href",{configurable:!0,enumerable:!0,get(){var s,i,l;return (l=(i=(s=t.current)==null?void 0:s.get)==null?void 0:i.call(window.location))!=null?l:""},set(s){var l;window.confirm("A video upload is in progress. Leaving this page will cancel your upload. Continue?")&&((l=t.current)!=null&&l.set)&&t.current.set.call(window.location,s);}}),o.current=!0;}catch(s){console.warn("Could not override window.location.href:",s);}}}let n=a=>{a.preventDefault(),a.returnValue="";};return window.addEventListener("beforeunload",n),()=>{if(document.removeEventListener("click",r,true),window.removeEventListener("beforeunload",n),o.current&&t.current)try{Object.defineProperty(window.location,"href",t.current),o.current=!1;}catch(a){}}},[e]);}function dI(e,t){let o=e;return t.forEach(r=>{var c;let n=n$((r==null?void 0:r.name)||""),a=((c=r==null?void 0:r.type)==null?void 0:c.toUpperCase())||"USER",s=new RegExp(`@\\[uid:[^\\]]+\\]\\[[^\\]]+\\]${n}`,"gi");o=o.replace(s,`@${r.name}`);let i=new RegExp("@\\[uid:[^\\]]+\\]\\[[^\\]]+\\]\\s*","gi");o=o.replace(i,"@");let l=new RegExp(`${n}\\[uid:[^\\]]+\\]\\[[^\\]]+\\]`,"gi");o=o.replace(l,(r==null?void 0:r.name)||"");let d=new RegExp(`@${n}(?!\\[uid:)`,"g");o=o.replace(d,`@${r.name}[uid:${r.id}][${a}]`);}),o}function n$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var T5=e=>/\.(mp4|mov|webm|avi|mkv)$/i.test(e),D5=e=>/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/i.test(e),L5=e=>/\.pdf$/i.test(e),s$=(e,t,o,r=[])=>{var l;let n=e.filter(T5).map(d=>({url:d})),a=e.filter(D5).map(d=>({url:d})),s=e.filter(L5),i=s.length>0||r.length>0?{url:s[0]||((l=r[0])==null?void 0:l.url),type:"pdf",title:void 0,description:void 0,imageUrl:void 0}:void 0;return y({videos:n.length?[...n,...t]:[],images:a.length?[...a,...o]:[]},i&&{attachment:i})};function cI(e,t){let{translate:o}=Oe(),{errorToast:r,successToast:n,infoToast:a}=tt(),{uploadAssetsBulk:s,isUploadingBulk:i}=f0(),{createAPost:l}=sI({}),{updatePost:d}=b5(),{content:c,setContent:p,selectedFiles:f,setIsCreatingThePost:u,isCreatingThePost:g,assetsToDelete:m,hashtags:v,mentions:h,mentionedUsers:b}=zt(),{operation:x,post:w}=xo(),[C,A]=J.useState(false),k=f.length>0;lI(g||i||C);let N=J.useCallback(()=>{u(false),A(false);},[u]),I=J.useCallback(q=>{N(),r({title:o("feed.toasts.create.error.title"),message:q||o("feed.toasts.create.error.description")});},[N,r,o]),P=J.useCallback(()=>{let q=x==="update";n({title:o(q?"feed.toasts.edit.success.title":"feed.toasts.create.success.title"),message:o(q?"feed.toasts.edit.success.description":"feed.toasts.create.success.description")});},[n,x,o]),S=J.useCallback(()=>{let q=x==="update";a({title:o(q?"feed.toasts.edit.editing.title":"feed.toasts.create.creating.title"),message:o(q?"feed.toasts.edit.editing.description":"feed.toasts.create.creating.description")});},[a,x,o]),D=J.useCallback(()=>{p==null||p(""),P(),e==null||e(),N();},[p,P,e,N]),T=J.useCallback(()=>{let q=f.some(G=>T5(G==null?void 0:G.name)),Y=f.some(G=>D5(G==null?void 0:G.name)),H=f.some(G=>L5(G==null?void 0:G.name)),z=[q,Y,H].filter(Boolean).length;return z===0?(I("Formato de arquivo n\xE3o suportado. Use apenas imagens, v\xEDdeos ou PDFs."),false):z>1?(I("N\xE3o \xE9 poss\xEDvel enviar diferentes tipos de arquivo ao mesmo tempo. Escolha apenas um tipo: imagens, v\xEDdeos ou PDFs."),false):true},[f,I]),L=J.useCallback(q=>{if(!w)return;let Y=(h==null?void 0:h.map(H=>({mentionType:H.mentionType,mentionedId:H.mentionedId})))||[];d({updatePostInput:F(y({},q),{mentions:Y,id:w.id})},{onSuccess:D,onError:()=>I("Erro ao atualizar post. Tente novamente.")});},[d,w,D,I,h]),E=J.useCallback(q=>{var z;if(x==="update")return L(q);let Y=(h==null?void 0:h.map(G=>({mentionType:G.mentionType,mentionedId:G.mentionedId})))||[],H=(h==null?void 0:h.map(G=>{var V,_,$,oe,K,ne,me,Me,Se;return {id:G.mentionedId,name:((V=G.mentionedUser)==null?void 0:V.name)||((_=G.mentionedCommunity)==null?void 0:_.name)||(($=G.mentionedPage)==null?void 0:$.name)||"",slug:((oe=G.mentionedUser)==null?void 0:oe.slug)||((K=G.mentionedCommunity)==null?void 0:K.slug)||((ne=G.mentionedPage)==null?void 0:ne.slug)||"",image:((me=G.mentionedUser)==null?void 0:me.avatar)||((Me=G.mentionedCommunity)==null?void 0:Me.image)||((Se=G.mentionedPage)==null?void 0:Se.logo),type:G.mentionType.toLowerCase(),originalData:{}}}))||[];l({createPostInput:F(y({},q),{mentions:Y,content:dI((z=q.content)!=null?z:"",H)})},{onSuccess:(G,R)=>{R.createPostInput.scheduledAt&&t?t():D();},onError:()=>I("Erro ao criar post. Tente novamente.")});},[x,L,h,l,t,D,I]),B=J.useCallback((q,Y,H)=>{if(!T())return;let z=(m==null?void 0:m.filter(V=>T5(V==null?void 0:V.url)))||[],G=(m==null?void 0:m.filter(V=>D5(V==null?void 0:V.url)))||[],R=(m==null?void 0:m.filter(V=>L5(V==null?void 0:V.url)))||[];s({files:f,is_public:true,owner_type:"user"},{onSuccess(V){var K;let _=(K=V==null?void 0:V.results)==null?void 0:K.flatMap(ne=>{var me;return (me=ne==null?void 0:ne.data)==null?void 0:me.url}),$=_==null?void 0:_.filter(ne=>ne!=null),oe=s$($,z,G,R);E(y({postType:q,tags:v,mentions:h,content:c!=null?c:"",scheduledAt:Y,pageId:H},oe));},onError(){I("Erro ao fazer upload dos arquivos. Tente novamente.");}});},[m,f,s,I,E,v,h,c,T]);return {createPost:J.useCallback((q="NORMAL",Y,H)=>{var z;if(!C){if(u(true),A(true),Y||S(),!k){let G=(m==null?void 0:m.filter($=>T5($==null?void 0:$.url)))||[],R=(m==null?void 0:m.filter($=>D5($==null?void 0:$.url)))||[],V=(m==null?void 0:m.filter($=>L5($==null?void 0:$.url)))||[],_=V.length>0?{url:(z=V[0])==null?void 0:z.url,type:"pdf",title:void 0,description:void 0,imageUrl:void 0}:void 0;return E(F(y({content:c!=null?c:"",tags:v,videos:G,images:R},_&&{attachment:_}),{mentions:h,postType:q,scheduledAt:Y,pageId:H}))}B(q,Y,H);}},[C,k,m,c,v,h,E,B,u,A,S]),isCreatingThePost:g||C}}function pI({route:e,metadata:t={},enabled:o=true}){let{user:r,locale:n,environment:a}=M(),{userLocation:s}=jo(),{registerEvent:i}=Bo(),l=J.useRef(null);J.useEffect(()=>{var d,c;o&&e&&l.current!==e&&(l.current=e,i({input:{actor:{user_id:(d=r==null?void 0:r.id)!=null?d:""},source:{app:"mirantes-web",environment:a,platform:"web",version:"1.0.0"},context:{browser:{name:navigator.userAgent,version:""},country:(c=s==null?void 0:s.country_name)!=null?c:"",device:{model:"Desktop",os:navigator.platform},locale:n,referrer:document.referrer||"",route:e,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone},events:[{event_id:uuid.v4(),event_type:"PAGE_VIEW",occurred_at:new Date,metadata:F(y({},t),{timestamp:new Date().toISOString()})}]}}));},[e,o,n,a,r==null?void 0:r.id,s==null?void 0:s.country_name,i,t]);}function mI({media:e,onRemoveMedia:t,readOnly:o}){return e.length===0?J__namespace.default.createElement("div",{className:"flex flex-col items-center justify-center py-12 text-gray-shade8"},J__namespace.default.createElement(lucideReact.ImageIcon,{className:"h-16 w-16 mb-4 opacity-30"}),J__namespace.default.createElement("p",null,"Nenhuma m\xEDdia adicionada")):J__namespace.default.createElement("div",{className:"grid grid-cols-2 gap-3"},e.map((r,n)=>J__namespace.default.createElement("div",{key:r.id||n,className:"relative col-span-1 lg:h-[222px] h-[99.6px] rounded-md lg:rounded-lg overflow-hidden"},r.type==="video"?J__namespace.default.createElement("div",{className:"relative w-full h-full bg-gray-100"},J__namespace.default.createElement("video",{src:r.url,className:"w-full h-full object-cover",controls:true})):J__namespace.default.createElement("img",{src:r.url||"/placeholder.svg",alt:`Media ${n+1}`,className:"object-cover"}),!o&&J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"absolute top-2 right-2 h-8 w-8 p-0 bg-white hover:bg-gray-100 rounded-full shadow-md flex items-center justify-center",onClick:()=>t(n)},J__namespace.default.createElement("div",{className:"[&_svg]:w-4 [&_svg]:h-4"},J__namespace.default.createElement(Sr,{color:"#E03137"}))))))}function vf({isOpen:e,onClose:t,media:o,onRemoveMedia:r,onComplete:n,onAddMedia:a}){let s=J.useRef(null);return J__namespace.default.createElement(qe,{onClose:t,isOpen:e,className:"lg:!min-w-[800px] lg:min-h-[80vh]",showCloseButton:false},J__namespace.default.createElement("div",{className:"flex p-4 lg:p-0 flex-col w-full flex-1"},J__namespace.default.createElement("div",{className:"sticky top-0 z-10 p-4 lg:flex items-center justify-between border-b border-gray-200"},J__namespace.default.createElement(le,{variant:"ghost",size:"icon",onClick:t,className:"lg:hidden"},J__namespace.default.createElement(lucideReact.ChevronLeft,{className:"h-5 w-5"})),J__namespace.default.createElement("h2",{className:"text-xl font-semibold flex-1 text-center lg:text-left lg:ml-0"},"M\xEDdias adicionadas"),J__namespace.default.createElement(le,{variant:"ghost",size:"icon",onClick:t,className:"lg:flex"},J__namespace.default.createElement(lucideReact.X,{className:"h-5 w-5"}))),J__namespace.default.createElement("div",{className:"pt-6 lg:pt-8 flex-1"},J__namespace.default.createElement(mI,{media:o,onRemoveMedia:r||(()=>{}),readOnly:!r})),J__namespace.default.createElement("div",{className:"bg-white z-10 flex items-center justify-between p-4 border-t border-gray-200"},J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"gap-2",onClick:()=>{var l;(l=s.current)==null||l.click();}},J__namespace.default.createElement(H0,null),J__namespace.default.createElement("span",null,"M\xEDdia"),J__namespace.default.createElement("input",{type:"file",ref:s,className:"hidden",accept:ts,multiple:true,onChange:l=>a==null?void 0:a(l.target.files)})),J__namespace.default.createElement(le,{onClick:n,className:"bg-primary py-2 lg:py-6 text-sm lg:text-base font-bold hover:bg-primary/90 text-white px-4 lg:px-9 rounded-lg"},"Conclu\xEDdo"))))}function g$({inline:e}){var Ft,lo,Gr;let{isMobile:t}=N5(),{translate:o}=Oe(),{isOpen:r,closeModal:n,postType:a,post:s,operation:i,setPost:l,setOperation:d,initialStep:c,openModal:p}=xo(),{resetForm:f,setIsCreatingThePost:u,setContent:g,handleMediaUpload:m,setCurrentAssets:v,content:h,isCreatingThePost:b,selectedFiles:x}=zt(),[w,C]=J.useState(false),[A,k]=J.useState("main"),[N,I]=J.useState(null),[P,S]=J.useState(null),[D,T]=J.useState(null),[L,E]=J.useState(false),B=!!(h&&h.trim().length>0),W=true,q=window.location.pathname;if(pI({enabled:r,route:q,metadata:{modalName:"create_post",step:A,operation:i,postType:a,hasContent:!!(h!=null&&h.trim()),hasMedia:!!(x!=null&&x.length||(Ft=s==null?void 0:s.images)!=null&&Ft.length||(lo=s==null?void 0:s.videos)!=null&&lo.length),isScheduled:!!(P||s!=null&&s.scheduledAt),selectedProfileType:N?(Gr=N.id)!=null&&Gr.startsWith("page-")?"page":"user":"none",isEditingScheduledPost:i==="update"&&!!(s!=null&&s.scheduledAt)}}),i==="update")if(s){let He=h.trim(),Fe=(s.content||"").trim(),$e=He!==Fe,Io=false;if(P||s.scheduledAt){let vo=P?P.toISOString().split(".")[0]+"Z":null,Sn=s.scheduledAt?new Date(s.scheduledAt).toISOString().split(".")[0]+"Z":null;Io=vo!==Sn;}W=$e||Io;}else W=B;else W=B;!!(B&&W)||(x==null?void 0:x.length)>0;i==="update"&&B&&(s!=null&&s.scheduledAt)&&(true);let H=A==="scheduled-posts"||A==="post-actions-menu"||A==="edit-scheduled-post",{scheduledPosts:z,isLoadingScheduledPosts:G,handlePostDeleted:R,handlePostUpdated:V,forceRefetch:_,hasNextPage:$,isFetchingNextPage:oe,isRefetchingScheduledPosts:K,loadMorePosts:ne,infiniteRef:me,rootRef:Me}=P5({enabled:H,onPostDeleted:()=>{T(null),k("scheduled-posts");},onPostUpdated:()=>{(P||s!=null&&s.scheduledAt)&&k("scheduled-posts");}}),{deleteAPost:Se}=lN({postId:D||void 0,postWasScheduled:D?z.some(He=>He.id===D):false,onClose:R}),{updatePost:Ze}=b5();dN();let mt=J.useCallback(()=>{localStorage.removeItem("persona-phrase"),localStorage.removeItem("selectedPersona"),f(),u(false),k("main"),S(null),T(null),I(null),E(false),n();},[f,n,u]),Ct=J.useCallback(()=>{f(),g(""),u(false),E(false),k("scheduled-posts"),_(),S(null);},[_,f,g,u]),{createPost:Nt}=cI(mt,Ct),De=J.useCallback(He=>{I(He),k("main");},[]),At=J.useCallback(()=>{k("select-profile");},[]),It=J.useCallback(()=>{k("schedule");},[]),so=J.useCallback(He=>{S(He),k("main");},[]),io=J.useCallback(()=>{k("main");},[]),Et=J.useCallback(()=>{k("scheduled-posts");},[]),at=J.useCallback(He=>{T(He),k("post-actions-menu");},[]),lt=J.useCallback(He=>{let Fe=z.find($e=>$e.id===He);Fe&&(l(Fe),d("update"),T(He),k("main"));},[z,l,d]),Le=J.useCallback(He=>{He&&T(He),setTimeout(()=>{Se();},0);},[Se,T]),ke=J.useCallback((He,Fe,$e=true)=>{var Sn;if(!He||L)return;E(true),u(true);let vo={id:He,content:h||""};N&&((Sn=N.id)!=null&&Sn.startsWith("page-"))&&(vo.pageId=N.id.replace("page-","")),$e&&(Fe instanceof Date?vo.scheduledAt=Fe.toISOString():Fe===null&&(vo.scheduledAt=null)),Ze({updatePostInput:vo},{onSuccess:()=>{Fe||s!=null&&s.scheduledAt?V():mt(),f(),S(null),u(false),E(false);},onError:Tl=>{}});},[L,h,N,s==null?void 0:s.scheduledAt,Ze,V,mt,f,u]),ie=J.useCallback((He="NORMAL")=>{var Io,vo;if(L)return;if(i==="update"&&s){let Sn,Tl=P!==null;Tl&&(Sn=P),ke(s.id,Sn,Tl);return}let Fe=N&&(((Io=N.id)==null?void 0:Io.startsWith("page-"))||N.role==="P\xE1gina"),$e;if(Fe&&N&&((vo=N.id)!=null&&vo.startsWith("page-")?$e=N.id.replace("page-",""):$e=N.id),P){let Sn=P.toISOString();Nt(He,Sn,$e);}else n(true),Nt(He,void 0,$e);},[L,i,s,P,N,ke,Nt]);J.useEffect(()=>{r&&a==="schedule"&&k(c==="scheduled-posts"?"scheduled-posts":"schedule");},[r,a,c]),J.useEffect(()=>{if(!r)return;let He=()=>{mt();};return window.addEventListener("closeCreatePostModal",He),window.addEventListener("openCreateCompanyModal",He),window.addEventListener("openRecruitmentModal",He),window.addEventListener("setIsRecruitmentViewsOpened",He),()=>{window.removeEventListener("closeCreatePostModal",He),window.removeEventListener("openCreateCompanyModal",He),window.removeEventListener("openRecruitmentModal",He),window.removeEventListener("setIsRecruitmentViewsOpened",He);}},[r,mt]),J.useEffect(()=>()=>{u(false),E(false),C(false);},[u]),J.useEffect(()=>{var He,Fe,$e,Io,vo,Sn,Tl;if(i=="update"&&s){u(false),s.scheduledAt&&S(new Date(s.scheduledAt));let wf=(Fe=(He=s==null?void 0:s.videos)==null?void 0:He.map(K0=>K0.url))!=null?Fe:[],Cf=(Io=($e=s==null?void 0:s.images)==null?void 0:$e.map(K0=>K0.url))!=null?Io:[];if(wf.length>0||Cf.length>0){let K0=Array.from(new Set([...wf,...Cf]));j(this,null,function*(){var An;C(true);try{let Mf=yield nI(K0),fI=aI(Mf);m(fI,!0),g((An=s==null?void 0:s.content)!=null?An:"");}catch(Mf){}finally{setTimeout(()=>C(false),2e3);}}),v([...(vo=s==null?void 0:s.videos)==null?void 0:vo.map(An=>({id:An.id,url:An.url})),...(Sn=s==null?void 0:s.images)==null?void 0:Sn.map(An=>({id:An==null?void 0:An.id,url:An==null?void 0:An.url}))]);}else g((Tl=s==null?void 0:s.content)!=null?Tl:"");}},[i,s,u,m,g,v]);let _e=J.useCallback(He=>{let Fe={day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit",hour12:false};return He.toLocaleDateString("pt-BR",Fe).replace(",",",")},[]),ft=J.useCallback(()=>A==="select-profile"||A==="post-actions-menu"?"w-fit":A==="schedule"||A==="edit-scheduled-post"||A==="scheduled-posts"?"w-[500px]":"sm:max-w-[800px]",[A]),Lt=J.useCallback(()=>a==="reel"?J__namespace.default.createElement(l4,{onSubmit:()=>ie("REEL")}):J__namespace.default.createElement(s4,{onSubmit:()=>ie("NORMAL"),onScheduleClick:It,scheduledDate:P,onViewScheduledPosts:Et}),[a,ie,It,P]),Xe=J.useCallback(()=>()=>{if(A==="select-profile")return J__namespace.default.createElement("div",{className:"px-4 lg:px-6 py-6"},J__namespace.default.createElement(k5,{onProfileSelect:De,selectedProfileId:N==null?void 0:N.id}));if(A==="schedule")return J__namespace.default.createElement(El,{onBack:io,onScheduleSelect:so,onClose:mt,initialDate:P||void 0,onViewScheduledPosts:Et});if(A==="scheduled-posts")return G?J__namespace.default.createElement(E5,null):J__namespace.default.createElement(I5,{onClose:mt,onScheduleMore:Et,posts:z,onPostActions:at,handleEditScheduledPost:lt,handleDeleteScheduledPost:Le,isSubmitting:L,hasNextPage:$,isFetchingNextPage:oe,isRefetchingPosts:K,loadMorePosts:ne,infiniteRef:me,rootRef:Me});if(A==="post-actions-menu")return J__namespace.default.createElement(j0,{handleEditScheduledPost:lt,handleDeleteScheduledPost:Le,isSubmitting:L,selectedPostForAction:D});if(A==="edit-scheduled-post"){let He=z.find(Fe=>Fe.id===D);return J__namespace.default.createElement(El,{onBack:()=>k("scheduled-posts"),onScheduleSelect:Fe=>ke(D,Fe,true),onClose:mt,initialDate:He!=null&&He.scheduledAt?new Date(He.scheduledAt):void 0})}return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(i4,{selectedProfile:N,onProfileSelectClick:At}),P&&J__namespace.default.createElement("div",{className:"px-4 lg:px-6 py-4"},J__namespace.default.createElement("div",{className:"flex items-center gap-x-1"},J__namespace.default.createElement("p",{className:"font-medium text-sm"},o("feed.create-post.schedule.publication-scheduled-for")," ",_e(P)),J__namespace.default.createElement("button",{onClick:It,className:"text-primary border-primary p-0 border-none hover:border-none hover:bg-transparent hover:text-primary font-medium text-sm"},o("feed.create-post.schedule.edit-button")))),w?J__namespace.default.createElement("div",{className:"w-full flex items-center py-20 gap-y-10 flex-col"},J__namespace.default.createElement("h4",null,o("feed.medias-modal.loading-medias")),J__namespace.default.createElement(Ge,null)):Lt())},[A,De,N,so,P,io,G,o,z,mt,Et,at,lt,Le,L,D,ke,_e,It,At,w,Lt])();return t?J__namespace.default.createElement(h$,{isOpen:r,currentStep:A,handleClose:mt,handleSubmit:ie,postType:a||"NORMAL",scheduledDate:P,post:s||null,operation:i,translate:o,renderStepContent:Xe}):e?J__namespace.default.createElement(v$,{renderStepContent:Xe,currentStep:A}):J__namespace.default.createElement(y$,{isOpen:r,currentStep:A,getModalClassName:ft,handleClose:mt,handleSubmit:ie,postType:a||"NORMAL",scheduledDate:P,post:s||null,renderStepContent:Xe})}function yf({inline:e}){return J__namespace.default.createElement(C5,null,J__namespace.default.createElement(g$,{inline:e}))}function h$({isOpen:e,currentStep:t,handleClose:o,handleSubmit:r,postType:n,scheduledDate:a,post:s,operation:i,translate:l,renderStepContent:d}){let{isOpen:c,closeModal:p,mediaToManage:f}=n4(),{uploadedMedia:u,handleMediaUpload:g,removeMedia:m,content:v,isCreatingThePost:h,selectedFiles:b}=zt(),x=!!(v&&v.trim().length>0),w=!!x||(b==null?void 0:b.length)>0;return i==="update"&&x&&(s!=null&&s.scheduledAt)&&(w=true),!w&&i==="update"&&x&&(w=true),J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(sN,{onClose:o,isOpen:e,direction:"right",className:"z-[999] !rounded-none"},J__namespace.default.createElement("div",{className:"flex flex-col h-full"},!["scheduled-posts","post-actions-menu","edit-scheduled-post","schedule"].includes(t)&&J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"flex items-center justify-between px-4 py-4 border-b border-gray-200"},J__namespace.default.createElement(le,{variant:"ghost",size:"sm",onClick:o,className:"!p-2"},J__namespace.default.createElement(lucideReact.X,{className:"h-5 w-5"})),J__namespace.default.createElement("h2",{className:"text-lg font-semibold"},l("feed.create-post.title")),J__namespace.default.createElement(le,{disabled:!w||h,variant:"default",onClick:()=>n=="reel"?r("REEL"):r("NORMAL"),className:"px-4 !bg-primary !text-sm font-bold text-white py-2 rounded-lg"},l(h?i==="update"?"feed.create-post.buttons.saving":"feed.create-post.buttons.publishing":i==="update"?"feed.create-post.buttons.save":"feed.create-post.buttons.publish")))),J__namespace.default.createElement("div",{className:"flex-1 overflow-y-auto"},d()))),J__namespace.default.createElement(vf,{isOpen:c,onClose:p,media:f,onRemoveMedia:C=>m(C),onComplete:p,onAddMedia:g}))}function v$({renderStepContent:e,currentStep:t}){return J__namespace.default.createElement("div",{className:" w-full max-w-[540px] mx-auto border rounded-[8px] p-6 bg-white"},J__namespace.default.createElement("div",{className:`w-full h-full ${t==="scheduled-posts"?"overflow-hidden":t==="schedule"||t==="edit-scheduled-post"?"":"overflow-y-auto"}`},e()))}function y$({isOpen:e,currentStep:t,getModalClassName:o,handleClose:r,handleSubmit:n,postType:a,scheduledDate:s,post:i,renderStepContent:l}){let{isOpen:d,closeModal:c,mediaToManage:p}=n4(),{uploadedMedia:f,handleMediaUpload:u,removeMedia:g}=zt();return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(gf,{isOpen:e,closeOnClickOutside:t!=="main",showCloseButton:t==="main",header:J__namespace.default.createElement(kN,{onSubmit:()=>a=="reel"?n("REEL"):n("NORMAL"),scheduledDate:s,originalPost:i}),className:`${o()} flex flex-col z-[999] ${t==="scheduled-posts"||t==="schedule"||t==="edit-scheduled-post"?"lg:max-h-[90dvh]":"lg:max-h-[80dvh]"} lg:overflow-hidden justify-start gap-0 border-0 ${t==="schedule"||t==="edit-scheduled-post"?" bg-white":""}`,onClose:r},J__namespace.default.createElement("div",{className:`w-full h-full ${t==="scheduled-posts"?"overflow-hidden":t==="schedule"||t==="edit-scheduled-post"?"":"overflow-y-auto"}`},typeof l=="function"?l():l)),J__namespace.default.createElement(vf,{isOpen:d,onClose:c,media:p,onRemoveMedia:m=>g(m),onComplete:c,onAddMedia:u}))}function b$(e){let{fill:t="#687588",fontSize:o="18px"}=e;return J__namespace.createElement("svg",y({width:o,height:o,viewBox:"0 0 14 17",fill:"none"},e),J__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:t}),J__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08 0h5.145c2.256 0 4.086.888 4.108 3.161v12.645a.879.879 0 01-.103.407.84.84 0 01-1.169.34L6.66 13.851l-5.432-2.71C.338 10.728 0 10.358 0 9.758V3.161C0 .888 1.83 0 4.08 0zm-.56 6.352h6.27a.657.657 0 00.655-.659.657.657 0 00-.654-.659H3.52a.657.657 0 00-.654.659c0 .364.292.659.654.659z",fill:t}))}var x$=J__namespace.memo(b$),uI=x$;var bf=zustand.create(e=>({isOpen:false,openModal:()=>e({isOpen:true}),closeModal:()=>e({isOpen:false}),toggleModal:()=>e(t=>({isOpen:!t.isOpen}))}));function S$(){var I,P,S,D,T,L;let {openModal:e,isOpen:t}=o4(),{user:o,locale:r,page:n,isPageFeed:a,isCommunityFeed:s,community:i,pageTriggerComponents:l}=M(),{translate:d}=Oe(),{openModal:c,closeModal:p,isOpen:f}=xo(),{openModal:u}=bf(),g=J__namespace.default.isValidElement(l)?J__namespace.default.cloneElement(l,{onClick:E=>{var W;window.dispatchEvent(new CustomEvent("closeCreatePostModal")),p();let B=(W=l.props)==null?void 0:W.onClick;if(B){let q=()=>{xo.getState().isOpen?setTimeout(q,50):B(E);};setTimeout(q,50);}}}):l,[m,v]=usehooks.useToggle(false),{isModalOpen:h,openModal:b,closeModal:x}=Rc(),w=o==null?void 0:o.isActive,{isMobile:C}=Eo(),A=()=>{Ae(),s?window.location.href=`/community/${r}/${i==null?void 0:i.slug}`:a?window.location.href=`/company/${r}/${n==null?void 0:n.slug}`:window.location.href=`/profile/${r}`;},k=(E,B)=>{if(!w){v(true);return}c(E,B);};return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"bg-white p-4 !rounded-none lg:!rounded-2xl"},J__namespace.default.createElement("div",{className:"flex items-center gap-2 mb-4"},s?J__namespace.default.createElement(ae,{onClick:A,src:(I=i==null?void 0:i.image)!=null?I:"",name:(P=i==null?void 0:i.name)!=null?P:"",type:"community"}):a?J__namespace.default.createElement(ae,{onClick:A,src:(S=n==null?void 0:n.logo)!=null?S:"",name:(D=n==null?void 0:n.name)!=null?D:"",type:"page"}):J__namespace.default.createElement(ae,{onClick:A,src:(T=o==null?void 0:o.avatar)!=null?T:"",name:(L=o==null?void 0:o.name)!=null?L:"",type:"user"}),J__namespace.default.createElement("div",{className:"flex-1 relative"},J__namespace.default.createElement(le,{variant:"outline",className:"w-full border-gray-200 justify-start h-auto py-2.5 px-4 text-gray-shade8 font-normal bg-white hover:bg-[#F6F7F9]/80 border-[1px] rounded-lg text-[14px] ![&_svg]:size-[20px]",onClick:()=>k()},d("feed.create-post.start-a-post")),J__namespace.default.createElement(lucideReact.SmileIcon,{className:"absolute right-4 top-1/2 -translate-y-1/2 h-5 w-5 text-gray-400"}))),J__namespace.default.createElement("div",{className:"flex !gap-x-4"},J__namespace.default.createElement(le,{variant:"ghost",className:"gap-2 text-gray-600 hover:bg-gray-50 h-auto !p-0 hover:bg-transparent ![&_svg]:size-[20px]",onClick:()=>k("media")},J__namespace.default.createElement(H0,null),J__namespace.default.createElement("span",{className:"text-[14px]"},d("feed.create-post.options.midia"))),g,C?null:J__namespace.default.createElement(le,{variant:"ghost",className:"gap-2 text-gray-600 hover:opacity-90 h-auto !p-0 hover:bg-transparent ![&_svg]:size-[18px]",onClick:()=>{if(!w){v(true);return}e();}},J__namespace.default.createElement(x5,null),J__namespace.default.createElement("span",{className:"text-[14px]"},d("feed.create-post.options.article"))),J__namespace.default.createElement(le,{variant:"ghost",className:"gap-2 text-gray-600 hover:opacity-90 h-auto !p-0 hover:bg-transparent ![&_svg]:size-[20px]",onClick:()=>k("reel")},J__namespace.default.createElement(aN,null),J__namespace.default.createElement("span",{className:"text-[14px]"},d("feed.create-post.options.reels"))),J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 text-gray-600 hover:opacity-90 h-auto hover:bg-transparent ![&_svg]:size-[20px]",onClick:()=>k("schedule","scheduled-posts")},J__namespace.default.createElement(Ri,null),J__namespace.default.createElement("span",{className:"text-[14px]"},d("feed.create-post.options.scheduling"))),J__namespace.default.createElement(le,{variant:"ghost",size:"sm",className:"!p-0 text-gray-600 hover:opacity-90 h-auto hover:bg-transparent ![&_svg]:size-[20px]",onClick:()=>{if(!w){v(true);return}u();}},J__namespace.default.createElement(uI,null),J__namespace.default.createElement("span",{className:"text-[14px]"},d("feed.create-post.options.saved-items"))))),J__namespace.default.createElement(ko,{isOpen:m,onClose:()=>v(false)}),J__namespace.default.createElement(yf,null),J__namespace.default.createElement(reactToastify.ToastContainer,{className:"z-[99999]"}))}function A$({currentStep:e,selectedProfile:t,scheduledDate:o,selectedPostForAction:r,isSubmitting:n,isLoading:a,onProfileSelect:s,onGoToProfileSelection:i,onGoToSchedule:l,onScheduleSelect:d,onBackToMain:c,onScheduleMore:p,onPostActions:f,onEditScheduledPost:u,onDeleteScheduledPost:g,onEditPostSubmit:m,onSubmit:v,onClose:h,shouldLoadScheduledPosts:b=false,onPostDeleted:x,onPostUpdated:w,showScheduleOption:C=true}){let{translate:A}=Oe(),{postType:k,post:N,operation:I}=xo(),{content:P,selectedFiles:S}=zt(),{scheduledPosts:D,isLoadingScheduledPosts:T,hasNextPage:B,isFetchingNextPage:W,isRefetchingScheduledPosts:q,loadMorePosts:Y,infiniteRef:H,rootRef:z}=P5({enabled:b,onPostDeleted:()=>{x==null||x();},onPostUpdated:()=>{(o||N!=null&&N.scheduledAt)&&(w==null||w());}}),G=J.useCallback(_=>{g==null||g(_);},[g]),R=J.useCallback(_=>{let $={day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit",hour12:false};return _.toLocaleDateString("pt-BR",$).replace(",",",")},[]),V=J.useCallback(()=>k==="reel"?J__namespace.default.createElement(l4,{onSubmit:()=>v("REEL")}):J__namespace.default.createElement(s4,{onSubmit:()=>v("NORMAL"),onScheduleClick:C?l:void 0,scheduledDate:o,showScheduleOption:C,onViewScheduledPosts:p}),[k,v,l,o,C]);if(e==="select-profile")return J__namespace.default.createElement("div",{className:"px-4 lg:px-6 py-6"},J__namespace.default.createElement(k5,{onProfileSelect:s,selectedProfileId:t==null?void 0:t.id}));if(e==="schedule")return J__namespace.default.createElement(El,{onBack:c,onScheduleSelect:d,onClose:h||(()=>{}),initialDate:o||void 0,onViewScheduledPosts:p});if(e==="scheduled-posts")return T?J__namespace.default.createElement(E5,null):J__namespace.default.createElement(I5,{onClose:h||(()=>{}),onScheduleMore:p,posts:D,onPostActions:f,handleEditScheduledPost:u,handleDeleteScheduledPost:G,isSubmitting:n,hasNextPage:B,isFetchingNextPage:W,isRefetchingPosts:q,loadMorePosts:Y,infiniteRef:H,rootRef:z});if(e==="post-actions-menu")return J__namespace.default.createElement(j0,{handleEditScheduledPost:u,handleDeleteScheduledPost:G,isSubmitting:n,selectedPostForAction:r});if(e==="edit-scheduled-post"){let _=D.find($=>$.id===r);return J__namespace.default.createElement(El,{onBack:()=>{c();},onScheduleSelect:$=>m(r,$,true),onClose:h||(()=>{}),initialDate:_!=null&&_.scheduledAt?new Date(_.scheduledAt):void 0})}return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement(i4,{selectedProfile:t,onProfileSelectClick:i}),C&&o&&J__namespace.default.createElement("div",{className:"px-4 lg:px-6 py-4"},J__namespace.default.createElement("div",{className:"flex items-center gap-x-1"},J__namespace.default.createElement("p",{className:"font-medium text-sm"},A("feed.create-post.schedule.publication-scheduled-for")," ",R(o)),J__namespace.default.createElement("button",{onClick:l,className:"text-primary border-primary p-0 border-none hover:border-none hover:bg-transparent hover:text-primary font-medium text-sm"},A("feed.create-post.schedule.edit-button")))),a?J__namespace.default.createElement("div",{className:"w-full flex items-center py-20 gap-y-10 flex-col"},J__namespace.default.createElement("h4",null,A("feed.medias-modal.loading-medias")),J__namespace.default.createElement(Ge,null)):V())}function N$(e){return J__namespace.default.createElement(C5,null,J__namespace.default.createElement(A$,y({},e)))}
|
|
3139
|
+
exports.ActivateAccountModal=ko;exports.AddRating=a8;exports.AddressAutocompleteInput=Y3;exports.AnimatedModal=xi;exports.ArticleContent=FJ;exports.ArticleViewer=Xc;exports.AutoDownloadBanner=IV;exports.AvatarRatingBadge=T1;exports.BaseInput=gt;exports.Button=Vo;exports.ChatContacts=t8;exports.ChatListWrapper=Yd;exports.ChatView=p_;exports.ChatViewDesktopPage=w_;exports.CheckBoxInput=Wo;exports.CloseLogoutChannel=yy;exports.ContactsModal=f3;exports.ControlButtons=A0;exports.CountryDisplay=cu;exports.CountryInput=lu;exports.CreatePostCard=S$;exports.CreatePostContent=N$;exports.CreatePostForm=s4;exports.CreatePostModal=yf;exports.CreatePostModalFilters=i4;exports.CreatePostReelForm=l4;exports.CreatePostScheduleStep=El;exports.CreatePostToolbar=r4;exports.CustomDateInput=ky;exports.CustomDrawer=ta;exports.CustomDropdown=kz;exports.CustomSelectInput=Nd;exports.DateInput=W3;exports.DownloadMobileVersionBanner=bm;exports.DownloadModalTrigger=SV;exports.GradientModal=My;exports.Header=hy;exports.MessageButton=us;exports.MessagesButtonFromPage=fW;exports.MirantesButton=re;exports.MirantesFoundationProvider=x9;exports.MobileWorkspaceBar=p3;exports.NoRecruitmentResponsiveIlustration=d8;exports.Onlogout=vy;exports.PageChatContent=pV;exports.PageChatContentHeader=Yu;exports.PageChatInput=Ru;exports.PageChatList=W_;exports.PageChatListWrapper=Zu;exports.PageChatUserSuggestions=fm;exports.PageFloatFooter=sq;exports.PageMessageWrapper=Xu;exports.PagesFeedTrigger=DV;exports.PdfFooter=Hc;exports.PdfFullscreenView=w8;exports.PdfReader=Uc;exports.PdfReaderHeader=Oc;exports.PostCardArticle=Gm;exports.ProgressBar=x8;exports.RadioButtonInput=M3;exports.RatingReviewsList=n8;exports.RatingUserCard=wc;exports.RatingsCard=cj;exports.RatingsSummary=a0;exports.RattingSuggestionCard=mj;exports.ReactPostButton=dW;exports.ResponsiveDrawer=ro;exports.SalaryInputWithButton=aF;exports.ScheduleCalendar=Pb;exports.SharePostModal=Nq;exports.ShareProfile=oq;exports.ShareProfileButton=gj;exports.ShareProfileModal=Xj;exports.Spinner=Ge;exports.WorkspacePanel=ph;exports.broadcastLogout=xd;exports.clearSettingsCookie=qz;exports.clearUserSession=kL;exports.closeLogoutChannel=yy;exports.createPersistentState=E4;exports.getInitials=f4;exports.getSettingsFromCookie=Bb;exports.joinUrlWithPathAndQuery=If;exports.onLogout=vy;exports.stringToObj=Ef;exports.useApiCheckRater=Cc;exports.useApiGetPage=Qz;exports.useArticleNavigation=Rc;exports.useArticleStore=Mo;exports.useAssetVersions=aP;exports.useBestAssetVersion=sP;exports.useCandidaciesTriggerStore=bd;exports.useCommunityTriggerStore=yd;exports.useCreatePostFormStore=zt;exports.useCreatePostStore=xo;exports.useJobTriggerStore=ea;exports.useLoadSettings=Wz;exports.useMessageAppStore=ce;exports.useMirantesFoundation=M;exports.useModalArticleStore=o4;exports.useModalStore=Z1;exports.useOportunitiesStore=x6;exports.usePeriodicDownloadBanner=r8;exports.usePersistentUIState=Ma;exports.useRegisterTracking=Bo;exports.useRestorePendingChat=Ku;exports.useSavedItemsStore=bf;exports.useSetChatVisibility=Ld;exports.useSignedUrl=nP;exports.useUploadAsset=u0;exports.useUploadAssetsBulk=f0;
|